@ai-sdk/harness-cline 1.0.19 → 1.0.21
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/CHANGELOG.md +28 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +193 -98
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
- package/src/cline-harness.ts +15 -2
- package/src/cline-remote-ops.ts +5 -29
- package/src/cline-session.ts +65 -52
- package/src/cline-skills.ts +173 -48
- package/src/cline-tools.ts +5 -3
package/src/cline-tools.ts
CHANGED
|
@@ -24,6 +24,7 @@ export const CLINE_NATIVE_BUILTIN_NAMES = [
|
|
|
24
24
|
'grep',
|
|
25
25
|
'glob',
|
|
26
26
|
'ls',
|
|
27
|
+
'skills',
|
|
27
28
|
] as const;
|
|
28
29
|
|
|
29
30
|
export type ClineNativeBuiltinName =
|
|
@@ -39,6 +40,7 @@ export const CLINE_NATIVE_TOOL_KINDS: Readonly<
|
|
|
39
40
|
grep: 'readonly',
|
|
40
41
|
glob: 'readonly',
|
|
41
42
|
ls: 'readonly',
|
|
43
|
+
skills: 'readonly',
|
|
42
44
|
};
|
|
43
45
|
|
|
44
46
|
export function isClineBuiltinToolName(
|
|
@@ -127,9 +129,9 @@ async function guarded<T>(run: () => Promise<T>): Promise<ClineToolResult> {
|
|
|
127
129
|
}
|
|
128
130
|
|
|
129
131
|
/**
|
|
130
|
-
* Build the sandbox-backed
|
|
131
|
-
*
|
|
132
|
-
* (cline-harness.ts)
|
|
132
|
+
* Build the sandbox-backed coding tools handed to the Cline runtime. These
|
|
133
|
+
* schemas mirror their declarations in `CLINE_BUILTIN_TOOLS`
|
|
134
|
+
* (cline-harness.ts). The in-host skills tool is built separately.
|
|
133
135
|
*/
|
|
134
136
|
export function buildBuiltinAgentTools({
|
|
135
137
|
ops,
|