@ai-sdk/harness-deepagents 1.0.132 → 1.0.134
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 +20 -0
- package/dist/bridge/index.mjs +1343 -2393
- package/dist/bridge/index.mjs.map +1 -1
- package/dist/index.d.ts +131 -129
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +758 -931
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
- package/src/bridge/index.ts +1 -1
- package/src/deepagents-harness.ts +5 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,140 +1,142 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
import { SandboxChannelReconnectOptions } from '@ai-sdk/harness/utils';
|
|
5
|
-
|
|
1
|
+
import { HarnessV1, HarnessV1Authentication, HarnessV1BuiltinTool, HarnessV1CredentialForwarding, HarnessV1MintBridgeTokenCallback, HarnessV1PortEndpoint } from "@ai-sdk/harness";
|
|
2
|
+
import { SandboxChannelReconnectOptions } from "@ai-sdk/harness/utils";
|
|
3
|
+
//#region src/deepagents-auth.d.ts
|
|
6
4
|
type DeepAgentsAuthenticationMode = HarnessV1Authentication<'anthropic'>;
|
|
7
|
-
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region src/deepagents-harness.d.ts
|
|
8
7
|
type DeepAgentsThinkingConfig = {
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
readonly type: 'adaptive';
|
|
9
|
+
readonly display?: 'summarized' | 'omitted';
|
|
11
10
|
} | {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
readonly type: 'enabled';
|
|
12
|
+
readonly budget_tokens: number;
|
|
13
|
+
readonly display?: 'summarized' | 'omitted';
|
|
15
14
|
} | {
|
|
16
|
-
|
|
15
|
+
readonly type: 'disabled';
|
|
17
16
|
};
|
|
18
17
|
type DeepAgentsHarnessSettings = {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
18
|
+
readonly auth?: DeepAgentsAuthenticationMode;
|
|
19
|
+
/**
|
|
20
|
+
* Customizes each credential value before it is forwarded into a sandbox
|
|
21
|
+
* process. This does not restrict which credentials the harness adapter can
|
|
22
|
+
* discover, read, or otherwise access in the host process.
|
|
23
|
+
*/
|
|
24
|
+
readonly credentialForwarding?: HarnessV1CredentialForwarding;
|
|
25
|
+
/**
|
|
26
|
+
* Controls Anthropic extended thinking for the Deep Agents model. Unset
|
|
27
|
+
* preserves the Deep Agents runtime default.
|
|
28
|
+
*/
|
|
29
|
+
readonly thinking?: DeepAgentsThinkingConfig;
|
|
30
|
+
/**
|
|
31
|
+
* Controls how much effort Claude applies when adaptive thinking is enabled.
|
|
32
|
+
* Unset uses the LangChain Anthropic client default.
|
|
33
|
+
*/
|
|
34
|
+
readonly effort?: 'low' | 'medium' | 'high' | 'xhigh' | 'max';
|
|
35
|
+
/** Bridge port override; defaults to the sandbox's first declared port. */
|
|
36
|
+
readonly port?: number;
|
|
37
|
+
/**
|
|
38
|
+
* Override the host endpoint used to connect to the sandbox bridge. Required
|
|
39
|
+
* together with `port` when using a basic sandbox session.
|
|
40
|
+
*/
|
|
41
|
+
readonly portEndpoint?: HarnessV1PortEndpoint;
|
|
42
|
+
/** Maximum milliseconds to wait for the bridge to advertise its port. Defaults to 120000. */
|
|
43
|
+
readonly startupTimeoutMs?: number;
|
|
44
|
+
/**
|
|
45
|
+
* Configures reconnection attempts after an established bridge connection
|
|
46
|
+
* drops. The reconnect window includes connection establishment and
|
|
47
|
+
* backoff delays. Defaults to 30 seconds with exponential backoff from 50
|
|
48
|
+
* milliseconds up to 2 seconds.
|
|
49
|
+
*/
|
|
50
|
+
readonly reconnect?: SandboxChannelReconnectOptions;
|
|
51
|
+
/**
|
|
52
|
+
* Creates the authentication token used by the sandbox bridge. Defaults to
|
|
53
|
+
* a random 32-byte hexadecimal token.
|
|
54
|
+
*/
|
|
55
|
+
readonly mintBridgeToken?: HarnessV1MintBridgeTokenCallback;
|
|
56
|
+
/**
|
|
57
|
+
* Maximum LangGraph super-steps per turn before it errors.
|
|
58
|
+
* When omitted, the Deep Agents default applies.
|
|
59
|
+
*/
|
|
60
|
+
readonly recursionLimit?: number;
|
|
61
|
+
/**
|
|
62
|
+
* MCP server definitions keyed by server name. Each definition uses the
|
|
63
|
+
* underlying runtime's native MCP server configuration format.
|
|
64
|
+
*/
|
|
65
|
+
readonly mcpServers?: Record<string, unknown>;
|
|
67
66
|
};
|
|
68
67
|
declare const DEEPAGENTS_BUILTIN_TOOLS: {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
68
|
+
readonly read: HarnessV1BuiltinTool<{
|
|
69
|
+
file_path: string;
|
|
70
|
+
}, unknown>;
|
|
71
|
+
readonly write: HarnessV1BuiltinTool<{
|
|
72
|
+
file_path: string;
|
|
73
|
+
content: string;
|
|
74
|
+
}, unknown>;
|
|
75
|
+
readonly edit: HarnessV1BuiltinTool<{
|
|
76
|
+
file_path: string;
|
|
77
|
+
old_string: string;
|
|
78
|
+
new_string: string;
|
|
79
|
+
}, unknown>;
|
|
80
|
+
readonly bash: HarnessV1BuiltinTool<{
|
|
81
|
+
command: string;
|
|
82
|
+
}, unknown>;
|
|
83
|
+
readonly grep: HarnessV1BuiltinTool<{
|
|
84
|
+
pattern: string;
|
|
85
|
+
}, unknown>;
|
|
86
|
+
readonly glob: HarnessV1BuiltinTool<{
|
|
87
|
+
pattern: string;
|
|
88
|
+
}, unknown>;
|
|
89
|
+
readonly ls: import("@ai-sdk/provider-utils").Tool<{
|
|
90
|
+
path?: string | undefined;
|
|
91
|
+
}, any, any>;
|
|
92
|
+
readonly task: import("@ai-sdk/provider-utils").Tool<{
|
|
93
|
+
description?: string | undefined;
|
|
94
|
+
subagent_type?: string | undefined;
|
|
95
|
+
}, any, any>;
|
|
96
|
+
readonly write_todos: import("@ai-sdk/provider-utils").Tool<{
|
|
97
|
+
todos?: unknown[] | undefined;
|
|
98
|
+
}, any, any>;
|
|
100
99
|
};
|
|
101
|
-
declare function createDeepAgents(settings?: DeepAgentsHarnessSettings): HarnessV1<typeof DEEPAGENTS_BUILTIN_TOOLS>;
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
100
|
+
export declare function createDeepAgents(settings?: DeepAgentsHarnessSettings): HarnessV1<typeof DEEPAGENTS_BUILTIN_TOOLS>;
|
|
101
|
+
//#endregion
|
|
102
|
+
//#region src/version.d.ts
|
|
103
|
+
export declare const VERSION: string;
|
|
104
|
+
//#endregion
|
|
105
|
+
//#region src/index.d.ts
|
|
105
106
|
/** Default `deepagents` harness instance; equivalent to `createDeepAgents()`. */
|
|
106
|
-
declare const deepAgents:
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
107
|
+
export declare const deepAgents: import("@ai-sdk/harness").HarnessV1<{
|
|
108
|
+
readonly read: import("@ai-sdk/harness").HarnessV1BuiltinTool<{
|
|
109
|
+
file_path: string;
|
|
110
|
+
}, unknown>;
|
|
111
|
+
readonly write: import("@ai-sdk/harness").HarnessV1BuiltinTool<{
|
|
112
|
+
file_path: string;
|
|
113
|
+
content: string;
|
|
114
|
+
}, unknown>;
|
|
115
|
+
readonly edit: import("@ai-sdk/harness").HarnessV1BuiltinTool<{
|
|
116
|
+
file_path: string;
|
|
117
|
+
old_string: string;
|
|
118
|
+
new_string: string;
|
|
119
|
+
}, unknown>;
|
|
120
|
+
readonly bash: import("@ai-sdk/harness").HarnessV1BuiltinTool<{
|
|
121
|
+
command: string;
|
|
122
|
+
}, unknown>;
|
|
123
|
+
readonly grep: import("@ai-sdk/harness").HarnessV1BuiltinTool<{
|
|
124
|
+
pattern: string;
|
|
125
|
+
}, unknown>;
|
|
126
|
+
readonly glob: import("@ai-sdk/harness").HarnessV1BuiltinTool<{
|
|
127
|
+
pattern: string;
|
|
128
|
+
}, unknown>;
|
|
129
|
+
readonly ls: import("@ai-sdk/provider-utils").Tool<{
|
|
130
|
+
path?: string | undefined;
|
|
131
|
+
}, any, any>;
|
|
132
|
+
readonly task: import("@ai-sdk/provider-utils").Tool<{
|
|
133
|
+
description?: string | undefined;
|
|
134
|
+
subagent_type?: string | undefined;
|
|
135
|
+
}, any, any>;
|
|
136
|
+
readonly write_todos: import("@ai-sdk/provider-utils").Tool<{
|
|
137
|
+
todos?: unknown[] | undefined;
|
|
138
|
+
}, any, any>;
|
|
138
139
|
}>;
|
|
139
|
-
|
|
140
|
-
export {
|
|
140
|
+
//#endregion
|
|
141
|
+
export type { DeepAgentsAuthenticationMode, DeepAgentsHarnessSettings, DeepAgentsThinkingConfig };
|
|
142
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/deepagents-auth.ts","../src/deepagents-harness.ts","../src/version.ts","../src/index.ts"],"mappings":";;;KAmEY,+BAA+B;;;KCM/B;WAEG;WACA;;WAGA;WACA;WACA;;WAGA;;KAMH;WACD,OAAO;;;;;;WAMP,uBAAuB;;;;;WAKvB,WAAW;;;;;WAKX;;WAEA;;;;;WAKA,eAAe;;WAEf;;;;;;;WAOA,YAAY;;;;;WAKZ,kBAAkB;;;;;WAKlB;;;;;WAKA,aAAa;;cAIlB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAwEU,iBACd,WAAU,4BACT,iBAAiB;;;qBCtNP;;;;qBCCA,sCAAU"}
|