@ai-sdk/harness-cline 1.0.51 → 1.0.53

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 CHANGED
@@ -1,5 +1,24 @@
1
1
  # @ai-sdk/harness-cline
2
2
 
3
+ ## 1.0.53
4
+
5
+ ### Patch Changes
6
+
7
+ - af9597b: Compile packages for ES2022 runtime target
8
+ - Updated dependencies [af9597b]
9
+ - Updated dependencies [31742b9]
10
+ - Updated dependencies [bc49f78]
11
+ - @ai-sdk/harness@1.0.126
12
+ - @ai-sdk/provider-utils@5.0.49
13
+
14
+ ## 1.0.52
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies [be877ff]
19
+ - @ai-sdk/provider-utils@5.0.48
20
+ - @ai-sdk/harness@1.0.125
21
+
3
22
  ## 1.0.51
4
23
 
5
24
  ### Patch Changes
package/README.md CHANGED
@@ -13,14 +13,13 @@ npm i @ai-sdk/harness-cline @ai-sdk/harness @ai-sdk/sandbox-vercel
13
13
  ```ts
14
14
  import { HarnessAgent } from '@ai-sdk/harness/agent';
15
15
  import { createCline } from '@ai-sdk/harness-cline';
16
- import { createVercelSandbox } from '@ai-sdk/sandbox-vercel';
16
+ import { createVercelNetworkSandboxSession } from '@ai-sdk/sandbox-vercel';
17
17
  import { tool } from 'ai';
18
18
  import { z } from 'zod/v4';
19
19
 
20
20
  const agent = new HarnessAgent({
21
21
  harness: createCline({ reasoningEffort: 'medium' }),
22
22
  id: 'demo',
23
- sandbox: createVercelSandbox({ runtime: 'node24' }),
24
23
  skills: [
25
24
  {
26
25
  name: 'careful-refactors',
@@ -37,7 +36,10 @@ const agent = new HarnessAgent({
37
36
  },
38
37
  });
39
38
 
40
- const session = await agent.createSession();
39
+ const sandboxSession = await createVercelNetworkSandboxSession({
40
+ runtime: 'node24',
41
+ });
42
+ const session = await agent.createSession({ sandboxSession });
41
43
  try {
42
44
  const result = await agent.generate({
43
45
  session,
@@ -46,10 +48,12 @@ try {
46
48
  console.log(result.text);
47
49
  } finally {
48
50
  await session.destroy();
51
+ await sandboxSession.destroy();
49
52
  }
50
53
  ```
51
54
 
52
- The adapter requires a `HarnessV1SandboxProvider`. Cline has no in-sandbox bridge, so the sandbox does not need to expose any ports. Its built-in tools operate on the session sandbox remotely from the host process.
55
+ The adapter has no in-sandbox bridge, so the supplied session does not need
56
+ exposed ports. Its built-in tools operate on the sandbox from the host process.
53
57
 
54
58
  ## Authentication
55
59
 
package/dist/index.js CHANGED
@@ -1996,7 +1996,7 @@ ${rebuildInput.instructions}` : baseSystemPrompt;
1996
1996
  }
1997
1997
 
1998
1998
  // src/version.ts
1999
- var VERSION = true ? "1.0.51" : "0.0.0-test";
1999
+ var VERSION = true ? "1.0.53" : "0.0.0-test";
2000
2000
 
2001
2001
  // src/cline-harness.ts
2002
2002
  var CLINE_CLIENT_APP = `ai-sdk/harness-cline/${VERSION}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/harness-cline",
3
- "version": "1.0.51",
3
+ "version": "1.0.53",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "sideEffects": false,
@@ -26,9 +26,9 @@
26
26
  }
27
27
  },
28
28
  "dependencies": {
29
- "@ai-sdk/harness": "1.0.124",
29
+ "@ai-sdk/harness": "1.0.126",
30
30
  "@ai-sdk/provider": "4.0.18",
31
- "@ai-sdk/provider-utils": "5.0.47",
31
+ "@ai-sdk/provider-utils": "5.0.49",
32
32
  "@cline/agents": "^0.0.83",
33
33
  "@cline/core": "^0.0.83"
34
34
  },