@ai-sdk/harness-pi 1.0.126 → 1.0.128

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-pi
2
2
 
3
+ ## 1.0.128
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.127
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.126
4
23
 
5
24
  ### Patch Changes
package/README.md CHANGED
@@ -13,14 +13,13 @@ npm i @ai-sdk/harness-pi @ai-sdk/harness @ai-sdk/sandbox-vercel
13
13
  ```ts
14
14
  import { HarnessAgent } from '@ai-sdk/harness/agent';
15
15
  import { createPi } from '@ai-sdk/harness-pi';
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: createPi({ thinkingLevel: '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`. Pi has no in-sandbox bridge, so the sandbox doesn't need to expose any ports — `@ai-sdk/sandbox-vercel` or `@ai-sdk/sandbox-just-bash` both work.
55
+ Pi has no in-sandbox bridge, so the supplied sandbox session does not need
56
+ exposed ports. Vercel and just-bash sessions both work.
53
57
 
54
58
  ## Stateless session configuration
55
59
 
package/dist/index.js CHANGED
@@ -136,7 +136,7 @@ import {
136
136
  import { access } from "fs/promises";
137
137
 
138
138
  // src/version.ts
139
- var VERSION = true ? "1.0.126" : "0.0.0-test";
139
+ var VERSION = true ? "1.0.128" : "0.0.0-test";
140
140
 
141
141
  // src/pi-auth.ts
142
142
  var DEFAULT_GATEWAY_BASE_URL = "https://ai-gateway.vercel.sh";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/harness-pi",
3
- "version": "1.0.126",
3
+ "version": "1.0.128",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "sideEffects": false,
@@ -26,8 +26,8 @@
26
26
  }
27
27
  },
28
28
  "dependencies": {
29
- "@ai-sdk/harness": "1.0.124",
30
- "@ai-sdk/provider-utils": "5.0.47",
29
+ "@ai-sdk/harness": "1.0.126",
30
+ "@ai-sdk/provider-utils": "5.0.49",
31
31
  "@earendil-works/pi-ai": "0.74.2",
32
32
  "@earendil-works/pi-coding-agent": "^0.85.1",
33
33
  "pi-mcp-adapter": "2.12.1",
@@ -37,7 +37,7 @@
37
37
  "zod": "^3.25.76 || ^4.1.8"
38
38
  },
39
39
  "devDependencies": {
40
- "@ai-sdk/sandbox-just-bash": "1.0.124",
40
+ "@ai-sdk/sandbox-just-bash": "1.0.126",
41
41
  "@types/node": "22.19.19",
42
42
  "@vercel/ai-tsconfig": "0.0.0",
43
43
  "tsup": "^8.5.1",