@ai-sdk/harness-github-copilot 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 CHANGED
@@ -1,5 +1,27 @@
1
1
  # @ai-sdk/harness-github-copilot
2
2
 
3
+ ## 1.0.21
4
+
5
+ ### Patch Changes
6
+
7
+ - af9597b: Compile packages for ES2022 runtime target
8
+ - Updated dependencies [af9597b]
9
+ - Updated dependencies [31742b9]
10
+ - Updated dependencies [be13602]
11
+ - Updated dependencies [bc49f78]
12
+ - @ai-sdk/harness@1.0.126
13
+ - @ai-sdk/harness-acp@1.0.64
14
+ - @ai-sdk/provider-utils@5.0.49
15
+
16
+ ## 1.0.20
17
+
18
+ ### Patch Changes
19
+
20
+ - Updated dependencies [be877ff]
21
+ - @ai-sdk/provider-utils@5.0.48
22
+ - @ai-sdk/harness@1.0.125
23
+ - @ai-sdk/harness-acp@1.0.63
24
+
3
25
  ## 1.0.19
4
26
 
5
27
  ### Patch Changes
package/README.md CHANGED
@@ -13,17 +13,18 @@ npm install @ai-sdk/harness @ai-sdk/harness-github-copilot @ai-sdk/sandbox-verce
13
13
  ```ts
14
14
  import { HarnessAgent } from '@ai-sdk/harness/agent';
15
15
  import { githubCopilot } from '@ai-sdk/harness-github-copilot';
16
- import { createVercelSandbox } from '@ai-sdk/sandbox-vercel';
16
+ import { createVercelNetworkSandboxSession } from '@ai-sdk/sandbox-vercel';
17
17
 
18
18
  const agent = new HarnessAgent({
19
19
  harness: githubCopilot,
20
- sandbox: createVercelSandbox({
21
- runtime: 'node24',
22
- ports: [4000],
23
- }),
24
20
  });
25
21
 
26
- const session = await agent.createSession();
22
+ const sandboxSession = await createVercelNetworkSandboxSession({
23
+ runtime: 'node24',
24
+ ports: [4000],
25
+ template: await agent.getSandboxTemplate(),
26
+ });
27
+ const session = await agent.createSession({ sandboxSession });
27
28
 
28
29
  try {
29
30
  const result = await agent.generate({
@@ -33,6 +34,7 @@ try {
33
34
  console.log(result.text);
34
35
  } finally {
35
36
  await session.destroy();
37
+ await sandboxSession.destroy();
36
38
  }
37
39
  ```
38
40
 
package/dist/index.js CHANGED
@@ -215,7 +215,7 @@ function isNonEmptyString(value) {
215
215
  }
216
216
 
217
217
  // src/version.ts
218
- var VERSION = true ? "1.0.19" : "0.0.0-test";
218
+ var VERSION = true ? "1.0.21" : "0.0.0-test";
219
219
 
220
220
  // src/github-copilot-harness.ts
221
221
  var GITHUB_COPILOT_CLIENT_APP = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/harness-github-copilot",
3
- "version": "1.0.19",
3
+ "version": "1.0.21",
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",
30
- "@ai-sdk/harness-acp": "1.0.62",
31
- "@ai-sdk/provider-utils": "5.0.47",
29
+ "@ai-sdk/harness": "1.0.126",
30
+ "@ai-sdk/harness-acp": "1.0.64",
31
+ "@ai-sdk/provider-utils": "5.0.49",
32
32
  "jsonc-parser": "3.3.1"
33
33
  },
34
34
  "peerDependencies": {