@cline/shared 0.0.64 → 0.0.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agents/types.d.ts +8 -0
- package/dist/index.browser.d.ts +1 -1
- package/dist/index.browser.js +16 -16
- package/dist/index.d.ts +1 -1
- package/dist/index.js +29 -29
- package/dist/parse/shell.d.ts +14 -0
- package/package.json +1 -1
package/dist/parse/shell.d.ts
CHANGED
|
@@ -1,2 +1,16 @@
|
|
|
1
1
|
export declare function getDefaultShell(platform: string): string;
|
|
2
|
+
/**
|
|
3
|
+
* Shell families that differ in invocation flags and command syntax.
|
|
4
|
+
* "wsl" is the wsl.exe launcher (which runs bash in the default distro);
|
|
5
|
+
* "posix" covers bash/zsh/sh and other `-c`-style shells.
|
|
6
|
+
*/
|
|
7
|
+
export type ShellKind = "powershell" | "cmd" | "wsl" | "posix";
|
|
8
|
+
/**
|
|
9
|
+
* Classify a shell executable (name or full path) into its family.
|
|
10
|
+
*
|
|
11
|
+
* This is the single classification used both for building spawn arguments
|
|
12
|
+
* (getShellArgs) and for shell-specific prompting, so the syntax the model is
|
|
13
|
+
* told to use always matches the syntax the executor actually accepts.
|
|
14
|
+
*/
|
|
15
|
+
export declare function getShellKind(shell: string): ShellKind;
|
|
2
16
|
export declare function getShellArgs(shell: string, command: string): string[];
|