@ai-sdk/harness 1.0.133 → 1.0.135
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 +25 -0
- package/agent/index.ts +1 -59
- package/bridge/index.ts +1 -15
- package/dist/agent/index.d.ts +1546 -1509
- package/dist/agent/index.d.ts.map +1 -0
- package/dist/agent/index.js +4419 -5044
- package/dist/agent/index.js.map +1 -1
- package/dist/bridge/index.d.ts +149 -148
- package/dist/bridge/index.d.ts.map +1 -0
- package/dist/bridge/index.js +579 -650
- package/dist/bridge/index.js.map +1 -1
- package/dist/index.d.ts +1447 -1422
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +703 -668
- package/dist/index.js.map +1 -1
- package/dist/utils/index.d.ts +551 -522
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +1910 -2465
- package/dist/utils/index.js.map +1 -1
- package/package.json +9 -9
- package/src/agent/index.ts +59 -0
- package/src/bridge/index.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-sdk/harness",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.135",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
}
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@ai-sdk/provider": "4.0.
|
|
48
|
-
"@ai-sdk/provider-utils": "5.0.
|
|
49
|
-
"ai": "7.0.
|
|
47
|
+
"@ai-sdk/provider": "4.0.21",
|
|
48
|
+
"@ai-sdk/provider-utils": "5.0.53",
|
|
49
|
+
"ai": "7.0.124"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"ws": "^8.21.0",
|
|
@@ -58,12 +58,12 @@
|
|
|
58
58
|
}
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
|
-
"@ai-sdk/otel": "1.0.
|
|
61
|
+
"@ai-sdk/otel": "1.0.124",
|
|
62
62
|
"@opentelemetry/sdk-trace-base": "2.7.1",
|
|
63
63
|
"@types/node": "22.19.19",
|
|
64
64
|
"@types/ws": "^8.5.13",
|
|
65
65
|
"@vercel/ai-tsconfig": "0.0.0",
|
|
66
|
-
"
|
|
66
|
+
"tsdown": "^0.23.0",
|
|
67
67
|
"typescript": "5.8.3",
|
|
68
68
|
"ws": "^8.21.0",
|
|
69
69
|
"zod": "3.25.76"
|
|
@@ -90,9 +90,9 @@
|
|
|
90
90
|
"agent"
|
|
91
91
|
],
|
|
92
92
|
"scripts": {
|
|
93
|
-
"build": "pnpm clean &&
|
|
94
|
-
"build:watch": "pnpm clean &&
|
|
95
|
-
"clean": "del-cli
|
|
93
|
+
"build": "pnpm clean && tsdown",
|
|
94
|
+
"build:watch": "pnpm clean && tsdown --watch",
|
|
95
|
+
"clean": "del-cli *.tsbuildinfo",
|
|
96
96
|
"type-check": "tsc --build",
|
|
97
97
|
"test": "pnpm test:node && pnpm test:edge",
|
|
98
98
|
"test:watch": "vitest --config vitest.node.config.js",
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
export { HarnessAgent } from './harness-agent';
|
|
2
|
+
export { createHarnessSandboxTemplate } from './create-harness-sandbox-template';
|
|
3
|
+
export type { HarnessAllTools } from './harness-agent-tool-types';
|
|
4
|
+
export type {
|
|
5
|
+
HarnessAgentSandboxConfig,
|
|
6
|
+
HarnessAgentSettings,
|
|
7
|
+
HarnessAgentToolApprovalConfiguration,
|
|
8
|
+
} from './harness-agent-settings';
|
|
9
|
+
export type {
|
|
10
|
+
HarnessAgentAdapter,
|
|
11
|
+
HarnessAgentAdapterSession,
|
|
12
|
+
HarnessAgentBuiltinTool,
|
|
13
|
+
HarnessAgentBuiltinToolName,
|
|
14
|
+
HarnessAgentBuiltinTools,
|
|
15
|
+
HarnessAgentBuiltinToolUseKind,
|
|
16
|
+
HarnessAgentContinueTurnOptions,
|
|
17
|
+
HarnessAgentContinueTurnState,
|
|
18
|
+
HarnessAgentLifecycleState,
|
|
19
|
+
HarnessAgentPendingToolApproval,
|
|
20
|
+
HarnessAgentPendingToolResult,
|
|
21
|
+
HarnessAgentPermissionMode,
|
|
22
|
+
HarnessAgentPrompt,
|
|
23
|
+
HarnessAgentPromptControl,
|
|
24
|
+
HarnessAgentPromptTurnOptions,
|
|
25
|
+
HarnessAgentResumeSessionState,
|
|
26
|
+
HarnessAgentSkill,
|
|
27
|
+
HarnessAgentStartOptions,
|
|
28
|
+
HarnessAgentStreamPart,
|
|
29
|
+
HarnessAgentToolSpec,
|
|
30
|
+
HarnessSandboxTemplate,
|
|
31
|
+
} from './harness-agent-types';
|
|
32
|
+
export { HarnessAgentSession } from './harness-agent-session';
|
|
33
|
+
export { collectHarnessAgentToolApprovalContinuations } from './harness-agent-tool-approval-continuation';
|
|
34
|
+
export { collectHarnessAgentToolResultContinuations } from './harness-agent-tool-result-continuation';
|
|
35
|
+
export {
|
|
36
|
+
prepareHarnessSandboxTemplate,
|
|
37
|
+
prewarmHarness,
|
|
38
|
+
} from './prepare-harness-sandbox-template';
|
|
39
|
+
export {
|
|
40
|
+
prepareSandboxForHarness,
|
|
41
|
+
type PrepareSandboxForHarnessResult,
|
|
42
|
+
} from './prepare-sandbox-for-harness';
|
|
43
|
+
export type {
|
|
44
|
+
HarnessDebugConfig,
|
|
45
|
+
HarnessDebugLevel,
|
|
46
|
+
HarnessDiagnostic,
|
|
47
|
+
HarnessDiagnosticConsumer,
|
|
48
|
+
} from './observability/types';
|
|
49
|
+
export { HarnessError } from '../errors/harness-error';
|
|
50
|
+
export { HarnessCapabilityUnsupportedError } from '../errors/harness-capability-unsupported-error';
|
|
51
|
+
export { HarnessSandboxAuthenticationError } from '../errors/harness-sandbox-authentication-error';
|
|
52
|
+
export { getHarnessErrorMessage } from './get-harness-error-message';
|
|
53
|
+
export {
|
|
54
|
+
createFileReporter,
|
|
55
|
+
createTraceTreeReporter,
|
|
56
|
+
type FileReporter,
|
|
57
|
+
type FileReporterOptions,
|
|
58
|
+
type TraceTreeReporterOptions,
|
|
59
|
+
} from './observability';
|
package/src/bridge/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Shared in-sandbox bridge runtime. Adapter `bridge.mjs` bundles re-bundle
|
|
2
|
-
// this module (
|
|
2
|
+
// this module (tsdown inlines it; `ws` stays external and resolves from the
|
|
3
3
|
// sandbox-installed node_modules). It owns everything generic to the bridge
|
|
4
4
|
// transport — the WebSocket server, token auth, the in-memory event log +
|
|
5
5
|
// monotonic `seq`, resume replay, and the lifecycle/meta files. Any number of
|