@ai-sdk/harness-github-copilot 1.0.19 → 1.0.22
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 +29 -0
- package/README.md +8 -6
- package/dist/index.js +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
# @ai-sdk/harness-github-copilot
|
|
2
2
|
|
|
3
|
+
## 1.0.22
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- @ai-sdk/harness@1.0.127
|
|
8
|
+
- @ai-sdk/harness-acp@1.0.65
|
|
9
|
+
|
|
10
|
+
## 1.0.21
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- af9597b: Compile packages for ES2022 runtime target
|
|
15
|
+
- Updated dependencies [af9597b]
|
|
16
|
+
- Updated dependencies [31742b9]
|
|
17
|
+
- Updated dependencies [be13602]
|
|
18
|
+
- Updated dependencies [bc49f78]
|
|
19
|
+
- @ai-sdk/harness@1.0.126
|
|
20
|
+
- @ai-sdk/harness-acp@1.0.64
|
|
21
|
+
- @ai-sdk/provider-utils@5.0.49
|
|
22
|
+
|
|
23
|
+
## 1.0.20
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- Updated dependencies [be877ff]
|
|
28
|
+
- @ai-sdk/provider-utils@5.0.48
|
|
29
|
+
- @ai-sdk/harness@1.0.125
|
|
30
|
+
- @ai-sdk/harness-acp@1.0.63
|
|
31
|
+
|
|
3
32
|
## 1.0.19
|
|
4
33
|
|
|
5
34
|
### 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 {
|
|
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
|
|
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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-sdk/harness-github-copilot",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.22",
|
|
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.
|
|
30
|
-
"@ai-sdk/harness-acp": "1.0.
|
|
31
|
-
"@ai-sdk/provider-utils": "5.0.
|
|
29
|
+
"@ai-sdk/harness": "1.0.127",
|
|
30
|
+
"@ai-sdk/harness-acp": "1.0.65",
|
|
31
|
+
"@ai-sdk/provider-utils": "5.0.49",
|
|
32
32
|
"jsonc-parser": "3.3.1"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|