mirror of
https://bitbucket.org/siakitem/my-pi.git
synced 2026-10-26 10:45:22 +00:00
feat: add pure ssh2 remote operations
This commit is contained in:
@@ -47,6 +47,8 @@ export interface ShellInvocation {
|
||||
command: string;
|
||||
/** The working directory the command runs in, if the tool projects one. */
|
||||
workdir: string | undefined;
|
||||
/** Optional minimum review decision imposed by a configured shell alias. */
|
||||
decisionFloor?: ShellToolsConfig[string]["decisionFloor"];
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -78,6 +80,7 @@ export function resolveShellInvocation(
|
||||
return {
|
||||
command: getNonEmptyString(record.command) ?? "",
|
||||
workdir: undefined,
|
||||
decisionFloor: undefined,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -88,6 +91,7 @@ export function resolveShellInvocation(
|
||||
workdir: alias.workdirArgument
|
||||
? (getNonEmptyString(record[alias.workdirArgument]) ?? undefined)
|
||||
: undefined,
|
||||
decisionFloor: alias.decisionFloor,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user