@ai-sdk/harness-deepagents 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/dist/index.d.ts CHANGED
@@ -1,140 +1,142 @@
1
- import * as _ai_sdk_provider_utils from '@ai-sdk/provider-utils';
2
- import * as _ai_sdk_harness from '@ai-sdk/harness';
3
- import { HarnessV1Authentication, HarnessV1CredentialForwarding, HarnessV1PortEndpoint, HarnessV1MintBridgeTokenCallback, HarnessV1, HarnessV1BuiltinTool } from '@ai-sdk/harness';
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
- readonly type: 'adaptive';
10
- readonly display?: 'summarized' | 'omitted';
8
+ readonly type: 'adaptive';
9
+ readonly display?: 'summarized' | 'omitted';
11
10
  } | {
12
- readonly type: 'enabled';
13
- readonly budget_tokens: number;
14
- readonly display?: 'summarized' | 'omitted';
11
+ readonly type: 'enabled';
12
+ readonly budget_tokens: number;
13
+ readonly display?: 'summarized' | 'omitted';
15
14
  } | {
16
- readonly type: 'disabled';
15
+ readonly type: 'disabled';
17
16
  };
18
17
  type DeepAgentsHarnessSettings = {
19
- readonly auth?: DeepAgentsAuthenticationMode;
20
- /**
21
- * Customizes each credential value before it is forwarded into a sandbox
22
- * process. This does not restrict which credentials the harness adapter can
23
- * discover, read, or otherwise access in the host process.
24
- */
25
- readonly credentialForwarding?: HarnessV1CredentialForwarding;
26
- /**
27
- * Controls Anthropic extended thinking for the Deep Agents model. Unset
28
- * preserves the Deep Agents runtime default.
29
- */
30
- readonly thinking?: DeepAgentsThinkingConfig;
31
- /**
32
- * Controls how much effort Claude applies when adaptive thinking is enabled.
33
- * Unset uses the LangChain Anthropic client default.
34
- */
35
- readonly effort?: 'low' | 'medium' | 'high' | 'xhigh' | 'max';
36
- /** Bridge port override; defaults to the sandbox's first declared port. */
37
- readonly port?: number;
38
- /**
39
- * Override the host endpoint used to connect to the sandbox bridge. Required
40
- * together with `port` when using a basic sandbox session.
41
- */
42
- readonly portEndpoint?: HarnessV1PortEndpoint;
43
- /** Maximum milliseconds to wait for the bridge to advertise its port. Defaults to 120000. */
44
- readonly startupTimeoutMs?: number;
45
- /**
46
- * Configures reconnection attempts after an established bridge connection
47
- * drops. The reconnect window includes connection establishment and
48
- * backoff delays. Defaults to 30 seconds with exponential backoff from 50
49
- * milliseconds up to 2 seconds.
50
- */
51
- readonly reconnect?: SandboxChannelReconnectOptions;
52
- /**
53
- * Creates the authentication token used by the sandbox bridge. Defaults to
54
- * a random 32-byte hexadecimal token.
55
- */
56
- readonly mintBridgeToken?: HarnessV1MintBridgeTokenCallback;
57
- /**
58
- * Maximum LangGraph super-steps per turn before it errors.
59
- * When omitted, the Deep Agents default applies.
60
- */
61
- readonly recursionLimit?: number;
62
- /**
63
- * MCP server definitions keyed by server name. Each definition uses the
64
- * underlying runtime's native MCP server configuration format.
65
- */
66
- readonly mcpServers?: Record<string, unknown>;
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
- readonly read: HarnessV1BuiltinTool<{
70
- file_path: string;
71
- }, unknown>;
72
- readonly write: HarnessV1BuiltinTool<{
73
- file_path: string;
74
- content: string;
75
- }, unknown>;
76
- readonly edit: HarnessV1BuiltinTool<{
77
- file_path: string;
78
- old_string: string;
79
- new_string: string;
80
- }, unknown>;
81
- readonly bash: HarnessV1BuiltinTool<{
82
- command: string;
83
- }, unknown>;
84
- readonly grep: HarnessV1BuiltinTool<{
85
- pattern: string;
86
- }, unknown>;
87
- readonly glob: HarnessV1BuiltinTool<{
88
- pattern: string;
89
- }, unknown>;
90
- readonly ls: _ai_sdk_provider_utils.Tool<{
91
- path?: string | undefined;
92
- }, any, any>;
93
- readonly task: _ai_sdk_provider_utils.Tool<{
94
- description?: string | undefined;
95
- subagent_type?: string | undefined;
96
- }, any, any>;
97
- readonly write_todos: _ai_sdk_provider_utils.Tool<{
98
- todos?: unknown[] | undefined;
99
- }, any, any>;
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
- declare const VERSION: string;
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: _ai_sdk_harness.HarnessV1<{
107
- readonly read: _ai_sdk_harness.HarnessV1BuiltinTool<{
108
- file_path: string;
109
- }, unknown>;
110
- readonly write: _ai_sdk_harness.HarnessV1BuiltinTool<{
111
- file_path: string;
112
- content: string;
113
- }, unknown>;
114
- readonly edit: _ai_sdk_harness.HarnessV1BuiltinTool<{
115
- file_path: string;
116
- old_string: string;
117
- new_string: string;
118
- }, unknown>;
119
- readonly bash: _ai_sdk_harness.HarnessV1BuiltinTool<{
120
- command: string;
121
- }, unknown>;
122
- readonly grep: _ai_sdk_harness.HarnessV1BuiltinTool<{
123
- pattern: string;
124
- }, unknown>;
125
- readonly glob: _ai_sdk_harness.HarnessV1BuiltinTool<{
126
- pattern: string;
127
- }, unknown>;
128
- readonly ls: _ai_sdk_provider_utils.Tool<{
129
- path?: string | undefined;
130
- }, any, any>;
131
- readonly task: _ai_sdk_provider_utils.Tool<{
132
- description?: string | undefined;
133
- subagent_type?: string | undefined;
134
- }, any, any>;
135
- readonly write_todos: _ai_sdk_provider_utils.Tool<{
136
- todos?: unknown[] | undefined;
137
- }, any, any>;
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 { type DeepAgentsAuthenticationMode, type DeepAgentsHarnessSettings, type DeepAgentsThinkingConfig, VERSION, createDeepAgents, deepAgents };
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"}