@deepagents/experimental 5.0.0 → 6.0.0
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/README.md +22 -11
- package/dist/index.js +1315 -433
- package/dist/index.js.map +4 -4
- package/dist/zukhruf/agent.d.ts +4 -3
- package/dist/zukhruf/agent.d.ts.map +1 -1
- package/dist/zukhruf/collaboration/agent-tool-context.d.ts +6 -0
- package/dist/zukhruf/collaboration/agent-tool-context.d.ts.map +1 -0
- package/dist/zukhruf/collaboration/collaboration-tools.d.ts +4 -0
- package/dist/zukhruf/collaboration/collaboration-tools.d.ts.map +1 -0
- package/dist/zukhruf/collaboration/interrupt-agent.d.ts +234 -0
- package/dist/zukhruf/collaboration/interrupt-agent.d.ts.map +1 -0
- package/dist/zukhruf/{list-agents.d.ts → collaboration/list-agents.d.ts} +1 -1
- package/dist/zukhruf/collaboration/list-agents.d.ts.map +1 -0
- package/dist/zukhruf/{message-tools.d.ts → collaboration/message-tools.d.ts} +84 -88
- package/dist/zukhruf/collaboration/message-tools.d.ts.map +1 -0
- package/dist/zukhruf/{spawn-agent.d.ts → collaboration/spawn-agent.d.ts} +55 -43
- package/dist/zukhruf/collaboration/spawn-agent.d.ts.map +1 -0
- package/dist/zukhruf/collaboration/wait-agent.d.ts +253 -0
- package/dist/zukhruf/collaboration/wait-agent.d.ts.map +1 -0
- package/dist/zukhruf/{agent-control-plane.d.ts → control-plane/agent-control-plane.d.ts} +17 -5
- package/dist/zukhruf/control-plane/agent-control-plane.d.ts.map +1 -0
- package/dist/zukhruf/{agent-declaration-registry.d.ts → control-plane/agent-declaration-registry.d.ts} +1 -1
- package/dist/zukhruf/control-plane/agent-declaration-registry.d.ts.map +1 -0
- package/dist/zukhruf/{agent-directory.d.ts → control-plane/agent-directory.d.ts} +2 -1
- package/dist/zukhruf/control-plane/agent-directory.d.ts.map +1 -0
- package/dist/zukhruf/control-plane/agent-history-forker.d.ts +10 -0
- package/dist/zukhruf/control-plane/agent-history-forker.d.ts.map +1 -0
- package/dist/zukhruf/control-plane/agent-path.d.ts.map +1 -0
- package/dist/zukhruf/control-plane/agent-status-projector.d.ts +50 -0
- package/dist/zukhruf/control-plane/agent-status-projector.d.ts.map +1 -0
- package/dist/zukhruf/{agent-thread.d.ts → control-plane/agent-thread.d.ts} +1 -1
- package/dist/zukhruf/control-plane/agent-thread.d.ts.map +1 -0
- package/dist/zukhruf/{agent-turn-id.d.ts → control-plane/agent-turn-id.d.ts} +2 -1
- package/dist/zukhruf/control-plane/agent-turn-id.d.ts.map +1 -0
- package/dist/zukhruf/control-plane/fork-turns.d.ts +4 -0
- package/dist/zukhruf/control-plane/fork-turns.d.ts.map +1 -0
- package/dist/zukhruf/index.d.ts +6 -6
- package/dist/zukhruf/index.d.ts.map +1 -1
- package/dist/zukhruf/index.js +1316 -434
- package/dist/zukhruf/index.js.map +4 -4
- package/dist/zukhruf/mailbox/coordinator.d.ts +4 -0
- package/dist/zukhruf/mailbox/coordinator.d.ts.map +1 -1
- package/dist/zukhruf/multi-agent-v2-config.d.ts +32 -0
- package/dist/zukhruf/multi-agent-v2-config.d.ts.map +1 -0
- package/dist/zukhruf/queue/pg-boss.turn-queue.d.ts +16 -4
- package/dist/zukhruf/queue/pg-boss.turn-queue.d.ts.map +1 -1
- package/dist/zukhruf/queue/turn-queue.d.ts +35 -6
- package/dist/zukhruf/queue/turn-queue.d.ts.map +1 -1
- package/dist/zukhruf/render-turn.d.ts +9 -0
- package/dist/zukhruf/render-turn.d.ts.map +1 -0
- package/dist/zukhruf/{agent-runtime.d.ts → runtime/agent-runtime.d.ts} +23 -12
- package/dist/zukhruf/runtime/agent-runtime.d.ts.map +1 -0
- package/dist/zukhruf/{agent-turn-executor.d.ts → runtime/agent-turn-executor.d.ts} +5 -3
- package/dist/zukhruf/runtime/agent-turn-executor.d.ts.map +1 -0
- package/dist/zukhruf/{approval-controller.d.ts → runtime/approval-controller.d.ts} +19 -8
- package/dist/zukhruf/runtime/approval-controller.d.ts.map +1 -0
- package/dist/zukhruf/runtime/approval-job-id.d.ts +3 -0
- package/dist/zukhruf/runtime/approval-job-id.d.ts.map +1 -0
- package/dist/zukhruf/tool.d.ts +18 -6
- package/dist/zukhruf/tool.d.ts.map +1 -1
- package/package.json +9 -9
- package/dist/zukhruf/agent-control-plane.d.ts.map +0 -1
- package/dist/zukhruf/agent-declaration-registry.d.ts.map +0 -1
- package/dist/zukhruf/agent-directory.d.ts.map +0 -1
- package/dist/zukhruf/agent-path.d.ts.map +0 -1
- package/dist/zukhruf/agent-runtime.d.ts.map +0 -1
- package/dist/zukhruf/agent-status-projector.d.ts +0 -32
- package/dist/zukhruf/agent-status-projector.d.ts.map +0 -1
- package/dist/zukhruf/agent-thread.d.ts.map +0 -1
- package/dist/zukhruf/agent-tool-context.d.ts +0 -6
- package/dist/zukhruf/agent-tool-context.d.ts.map +0 -1
- package/dist/zukhruf/agent-turn-executor.d.ts.map +0 -1
- package/dist/zukhruf/agent-turn-id.d.ts.map +0 -1
- package/dist/zukhruf/approval-controller.d.ts.map +0 -1
- package/dist/zukhruf/approval-mutex.d.ts +0 -5
- package/dist/zukhruf/approval-mutex.d.ts.map +0 -1
- package/dist/zukhruf/list-agents.d.ts.map +0 -1
- package/dist/zukhruf/message-tools.d.ts.map +0 -1
- package/dist/zukhruf/spawn-agent.d.ts.map +0 -1
- package/dist/zukhruf/sqlite-approval-mutex.d.ts +0 -17
- package/dist/zukhruf/sqlite-approval-mutex.d.ts.map +0 -1
- /package/dist/zukhruf/{agent-path.d.ts → control-plane/agent-path.d.ts} +0 -0
|
@@ -1,18 +1,22 @@
|
|
|
1
1
|
import type { AgentToolContext } from './agent-tool-context.ts';
|
|
2
|
-
export declare
|
|
2
|
+
export declare function createSpawnAgentTool(options?: {
|
|
3
|
+
usageHintText?: string;
|
|
4
|
+
}): ({
|
|
3
5
|
title?: string;
|
|
4
6
|
providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
|
|
5
7
|
metadata?: import("@ai-sdk/provider").JSONObject;
|
|
6
8
|
inputSchema: import("ai").FlexibleSchema<{
|
|
7
9
|
agent_type: string;
|
|
8
|
-
message: string;
|
|
9
10
|
task_name: string;
|
|
11
|
+
message: string;
|
|
12
|
+
fork_turns: string;
|
|
10
13
|
}>;
|
|
11
14
|
contextSchema?: import("ai").FlexibleSchema<AgentToolContext> | undefined;
|
|
12
15
|
needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
|
|
13
16
|
agent_type: string;
|
|
14
|
-
message: string;
|
|
15
17
|
task_name: string;
|
|
18
|
+
message: string;
|
|
19
|
+
fork_turns: string;
|
|
16
20
|
}, NoInfer<AgentToolContext>> | undefined;
|
|
17
21
|
onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<AgentToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
18
22
|
onInputDelta?: ((options: {
|
|
@@ -21,34 +25,34 @@ export declare const spawnAgentTool: ({
|
|
|
21
25
|
onInputAvailable?: ((options: {
|
|
22
26
|
input: {
|
|
23
27
|
agent_type: string;
|
|
24
|
-
message: string;
|
|
25
28
|
task_name: string;
|
|
29
|
+
message: string;
|
|
30
|
+
fork_turns: string;
|
|
26
31
|
};
|
|
27
32
|
} & import("ai").ToolExecutionOptions<NoInfer<AgentToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
28
33
|
toModelOutput?: ((options: {
|
|
29
34
|
toolCallId: string;
|
|
30
35
|
input: {
|
|
31
36
|
agent_type: string;
|
|
32
|
-
message: string;
|
|
33
37
|
task_name: string;
|
|
38
|
+
message: string;
|
|
39
|
+
fork_turns: string;
|
|
34
40
|
};
|
|
35
41
|
output: NoInfer<{
|
|
36
42
|
task_name: string;
|
|
37
|
-
agent_path: string;
|
|
38
43
|
}>;
|
|
39
44
|
}) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
|
|
40
45
|
} & {
|
|
41
46
|
outputSchema?: import("ai").FlexibleSchema<{
|
|
42
47
|
task_name: string;
|
|
43
|
-
agent_path: string;
|
|
44
48
|
}> | undefined;
|
|
45
49
|
execute: import("ai").ToolExecuteFunction<{
|
|
46
50
|
agent_type: string;
|
|
47
|
-
message: string;
|
|
48
51
|
task_name: string;
|
|
52
|
+
message: string;
|
|
53
|
+
fork_turns: string;
|
|
49
54
|
}, {
|
|
50
55
|
task_name: string;
|
|
51
|
-
agent_path: string;
|
|
52
56
|
}, NoInfer<AgentToolContext>>;
|
|
53
57
|
} & {
|
|
54
58
|
description?: string | ((options: {
|
|
@@ -59,8 +63,9 @@ export declare const spawnAgentTool: ({
|
|
|
59
63
|
inputExamples?: {
|
|
60
64
|
input: NoInfer<{
|
|
61
65
|
agent_type: string;
|
|
62
|
-
message: string;
|
|
63
66
|
task_name: string;
|
|
67
|
+
message: string;
|
|
68
|
+
fork_turns: string;
|
|
64
69
|
}>;
|
|
65
70
|
}[] | undefined;
|
|
66
71
|
id?: never;
|
|
@@ -72,11 +77,11 @@ export declare const spawnAgentTool: ({
|
|
|
72
77
|
} & {
|
|
73
78
|
execute: import("ai").ToolExecuteFunction<{
|
|
74
79
|
agent_type: string;
|
|
75
|
-
message: string;
|
|
76
80
|
task_name: string;
|
|
81
|
+
message: string;
|
|
82
|
+
fork_turns: string;
|
|
77
83
|
}, {
|
|
78
84
|
task_name: string;
|
|
79
|
-
agent_path: string;
|
|
80
85
|
}, NoInfer<AgentToolContext>>;
|
|
81
86
|
}) | ({
|
|
82
87
|
title?: string;
|
|
@@ -84,14 +89,16 @@ export declare const spawnAgentTool: ({
|
|
|
84
89
|
metadata?: import("@ai-sdk/provider").JSONObject;
|
|
85
90
|
inputSchema: import("ai").FlexibleSchema<{
|
|
86
91
|
agent_type: string;
|
|
87
|
-
message: string;
|
|
88
92
|
task_name: string;
|
|
93
|
+
message: string;
|
|
94
|
+
fork_turns: string;
|
|
89
95
|
}>;
|
|
90
96
|
contextSchema?: import("ai").FlexibleSchema<AgentToolContext> | undefined;
|
|
91
97
|
needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
|
|
92
98
|
agent_type: string;
|
|
93
|
-
message: string;
|
|
94
99
|
task_name: string;
|
|
100
|
+
message: string;
|
|
101
|
+
fork_turns: string;
|
|
95
102
|
}, NoInfer<AgentToolContext>> | undefined;
|
|
96
103
|
onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<AgentToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
97
104
|
onInputDelta?: ((options: {
|
|
@@ -100,34 +107,34 @@ export declare const spawnAgentTool: ({
|
|
|
100
107
|
onInputAvailable?: ((options: {
|
|
101
108
|
input: {
|
|
102
109
|
agent_type: string;
|
|
103
|
-
message: string;
|
|
104
110
|
task_name: string;
|
|
111
|
+
message: string;
|
|
112
|
+
fork_turns: string;
|
|
105
113
|
};
|
|
106
114
|
} & import("ai").ToolExecutionOptions<NoInfer<AgentToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
107
115
|
toModelOutput?: ((options: {
|
|
108
116
|
toolCallId: string;
|
|
109
117
|
input: {
|
|
110
118
|
agent_type: string;
|
|
111
|
-
message: string;
|
|
112
119
|
task_name: string;
|
|
120
|
+
message: string;
|
|
121
|
+
fork_turns: string;
|
|
113
122
|
};
|
|
114
123
|
output: NoInfer<{
|
|
115
124
|
task_name: string;
|
|
116
|
-
agent_path: string;
|
|
117
125
|
}>;
|
|
118
126
|
}) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
|
|
119
127
|
} & {
|
|
120
128
|
outputSchema?: import("ai").FlexibleSchema<{
|
|
121
129
|
task_name: string;
|
|
122
|
-
agent_path: string;
|
|
123
130
|
}> | undefined;
|
|
124
131
|
execute: import("ai").ToolExecuteFunction<{
|
|
125
132
|
agent_type: string;
|
|
126
|
-
message: string;
|
|
127
133
|
task_name: string;
|
|
134
|
+
message: string;
|
|
135
|
+
fork_turns: string;
|
|
128
136
|
}, {
|
|
129
137
|
task_name: string;
|
|
130
|
-
agent_path: string;
|
|
131
138
|
}, NoInfer<AgentToolContext>>;
|
|
132
139
|
} & {
|
|
133
140
|
description?: string | ((options: {
|
|
@@ -138,8 +145,9 @@ export declare const spawnAgentTool: ({
|
|
|
138
145
|
inputExamples?: {
|
|
139
146
|
input: NoInfer<{
|
|
140
147
|
agent_type: string;
|
|
141
|
-
message: string;
|
|
142
148
|
task_name: string;
|
|
149
|
+
message: string;
|
|
150
|
+
fork_turns: string;
|
|
143
151
|
}>;
|
|
144
152
|
}[] | undefined;
|
|
145
153
|
id?: never;
|
|
@@ -151,11 +159,11 @@ export declare const spawnAgentTool: ({
|
|
|
151
159
|
} & {
|
|
152
160
|
execute: import("ai").ToolExecuteFunction<{
|
|
153
161
|
agent_type: string;
|
|
154
|
-
message: string;
|
|
155
162
|
task_name: string;
|
|
163
|
+
message: string;
|
|
164
|
+
fork_turns: string;
|
|
156
165
|
}, {
|
|
157
166
|
task_name: string;
|
|
158
|
-
agent_path: string;
|
|
159
167
|
}, NoInfer<AgentToolContext>>;
|
|
160
168
|
}) | ({
|
|
161
169
|
title?: string;
|
|
@@ -163,14 +171,16 @@ export declare const spawnAgentTool: ({
|
|
|
163
171
|
metadata?: import("@ai-sdk/provider").JSONObject;
|
|
164
172
|
inputSchema: import("ai").FlexibleSchema<{
|
|
165
173
|
agent_type: string;
|
|
166
|
-
message: string;
|
|
167
174
|
task_name: string;
|
|
175
|
+
message: string;
|
|
176
|
+
fork_turns: string;
|
|
168
177
|
}>;
|
|
169
178
|
contextSchema?: import("ai").FlexibleSchema<AgentToolContext> | undefined;
|
|
170
179
|
needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
|
|
171
180
|
agent_type: string;
|
|
172
|
-
message: string;
|
|
173
181
|
task_name: string;
|
|
182
|
+
message: string;
|
|
183
|
+
fork_turns: string;
|
|
174
184
|
}, NoInfer<AgentToolContext>> | undefined;
|
|
175
185
|
onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<AgentToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
176
186
|
onInputDelta?: ((options: {
|
|
@@ -179,34 +189,34 @@ export declare const spawnAgentTool: ({
|
|
|
179
189
|
onInputAvailable?: ((options: {
|
|
180
190
|
input: {
|
|
181
191
|
agent_type: string;
|
|
182
|
-
message: string;
|
|
183
192
|
task_name: string;
|
|
193
|
+
message: string;
|
|
194
|
+
fork_turns: string;
|
|
184
195
|
};
|
|
185
196
|
} & import("ai").ToolExecutionOptions<NoInfer<AgentToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
186
197
|
toModelOutput?: ((options: {
|
|
187
198
|
toolCallId: string;
|
|
188
199
|
input: {
|
|
189
200
|
agent_type: string;
|
|
190
|
-
message: string;
|
|
191
201
|
task_name: string;
|
|
202
|
+
message: string;
|
|
203
|
+
fork_turns: string;
|
|
192
204
|
};
|
|
193
205
|
output: NoInfer<{
|
|
194
206
|
task_name: string;
|
|
195
|
-
agent_path: string;
|
|
196
207
|
}>;
|
|
197
208
|
}) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
|
|
198
209
|
} & {
|
|
199
210
|
outputSchema?: import("ai").FlexibleSchema<{
|
|
200
211
|
task_name: string;
|
|
201
|
-
agent_path: string;
|
|
202
212
|
}> | undefined;
|
|
203
213
|
execute: import("ai").ToolExecuteFunction<{
|
|
204
214
|
agent_type: string;
|
|
205
|
-
message: string;
|
|
206
215
|
task_name: string;
|
|
216
|
+
message: string;
|
|
217
|
+
fork_turns: string;
|
|
207
218
|
}, {
|
|
208
219
|
task_name: string;
|
|
209
|
-
agent_path: string;
|
|
210
220
|
}, NoInfer<AgentToolContext>>;
|
|
211
221
|
} & {
|
|
212
222
|
type: "provider";
|
|
@@ -221,11 +231,11 @@ export declare const spawnAgentTool: ({
|
|
|
221
231
|
} & {
|
|
222
232
|
execute: import("ai").ToolExecuteFunction<{
|
|
223
233
|
agent_type: string;
|
|
224
|
-
message: string;
|
|
225
234
|
task_name: string;
|
|
235
|
+
message: string;
|
|
236
|
+
fork_turns: string;
|
|
226
237
|
}, {
|
|
227
238
|
task_name: string;
|
|
228
|
-
agent_path: string;
|
|
229
239
|
}, NoInfer<AgentToolContext>>;
|
|
230
240
|
}) | ({
|
|
231
241
|
title?: string;
|
|
@@ -233,14 +243,16 @@ export declare const spawnAgentTool: ({
|
|
|
233
243
|
metadata?: import("@ai-sdk/provider").JSONObject;
|
|
234
244
|
inputSchema: import("ai").FlexibleSchema<{
|
|
235
245
|
agent_type: string;
|
|
236
|
-
message: string;
|
|
237
246
|
task_name: string;
|
|
247
|
+
message: string;
|
|
248
|
+
fork_turns: string;
|
|
238
249
|
}>;
|
|
239
250
|
contextSchema?: import("ai").FlexibleSchema<AgentToolContext> | undefined;
|
|
240
251
|
needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
|
|
241
252
|
agent_type: string;
|
|
242
|
-
message: string;
|
|
243
253
|
task_name: string;
|
|
254
|
+
message: string;
|
|
255
|
+
fork_turns: string;
|
|
244
256
|
}, NoInfer<AgentToolContext>> | undefined;
|
|
245
257
|
onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<AgentToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
246
258
|
onInputDelta?: ((options: {
|
|
@@ -249,34 +261,34 @@ export declare const spawnAgentTool: ({
|
|
|
249
261
|
onInputAvailable?: ((options: {
|
|
250
262
|
input: {
|
|
251
263
|
agent_type: string;
|
|
252
|
-
message: string;
|
|
253
264
|
task_name: string;
|
|
265
|
+
message: string;
|
|
266
|
+
fork_turns: string;
|
|
254
267
|
};
|
|
255
268
|
} & import("ai").ToolExecutionOptions<NoInfer<AgentToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
256
269
|
toModelOutput?: ((options: {
|
|
257
270
|
toolCallId: string;
|
|
258
271
|
input: {
|
|
259
272
|
agent_type: string;
|
|
260
|
-
message: string;
|
|
261
273
|
task_name: string;
|
|
274
|
+
message: string;
|
|
275
|
+
fork_turns: string;
|
|
262
276
|
};
|
|
263
277
|
output: NoInfer<{
|
|
264
278
|
task_name: string;
|
|
265
|
-
agent_path: string;
|
|
266
279
|
}>;
|
|
267
280
|
}) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
|
|
268
281
|
} & {
|
|
269
282
|
outputSchema?: import("ai").FlexibleSchema<{
|
|
270
283
|
task_name: string;
|
|
271
|
-
agent_path: string;
|
|
272
284
|
}> | undefined;
|
|
273
285
|
execute: import("ai").ToolExecuteFunction<{
|
|
274
286
|
agent_type: string;
|
|
275
|
-
message: string;
|
|
276
287
|
task_name: string;
|
|
288
|
+
message: string;
|
|
289
|
+
fork_turns: string;
|
|
277
290
|
}, {
|
|
278
291
|
task_name: string;
|
|
279
|
-
agent_path: string;
|
|
280
292
|
}, NoInfer<AgentToolContext>>;
|
|
281
293
|
} & {
|
|
282
294
|
type: "provider";
|
|
@@ -291,11 +303,11 @@ export declare const spawnAgentTool: ({
|
|
|
291
303
|
} & {
|
|
292
304
|
execute: import("ai").ToolExecuteFunction<{
|
|
293
305
|
agent_type: string;
|
|
294
|
-
message: string;
|
|
295
306
|
task_name: string;
|
|
307
|
+
message: string;
|
|
308
|
+
fork_turns: string;
|
|
296
309
|
}, {
|
|
297
310
|
task_name: string;
|
|
298
|
-
agent_path: string;
|
|
299
311
|
}, NoInfer<AgentToolContext>>;
|
|
300
312
|
});
|
|
301
313
|
//# sourceMappingURL=spawn-agent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spawn-agent.d.ts","sourceRoot":"","sources":["../../../src/zukhruf/collaboration/spawn-agent.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAmChE,wBAAgB,oBAAoB,CAAC,OAAO,CAAC,EAAE;IAAE,aAAa,CAAC,EAAE,MAAM,CAAA;CAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAC7B,MAAM;;;;;mBAAN,MAAM;;;;;;;;mBAAN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAAN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAAN,MAAM;;;;;mBAAN,MAAM;;;;;;;;mBAAN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAAN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAAN,MAAM;;;;;mBAAN,MAAM;;;;;;;;mBAAN,MAAM;;;;;;;;;;;;;;;;;;;mBAAN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAAN,MAAM;;;;;mBAAN,MAAM;;;;;;;;mBAAN,MAAM;;;;;;;;;;;;;;;;;;;mBAAN,MAAM;;GA4BjD"}
|
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
import type { AgentToolContext } from './agent-tool-context.ts';
|
|
2
|
+
export declare function createWaitAgentTool(options: {
|
|
3
|
+
minTimeoutMs: number;
|
|
4
|
+
defaultTimeoutMs: number;
|
|
5
|
+
maxTimeoutMs: number;
|
|
6
|
+
}): ({
|
|
7
|
+
title?: string;
|
|
8
|
+
providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
|
|
9
|
+
metadata?: import("@ai-sdk/provider").JSONObject;
|
|
10
|
+
inputSchema: import("ai").FlexibleSchema<{
|
|
11
|
+
timeout_ms?: number | undefined;
|
|
12
|
+
}>;
|
|
13
|
+
contextSchema?: import("ai").FlexibleSchema<AgentToolContext> | undefined;
|
|
14
|
+
needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
|
|
15
|
+
timeout_ms?: number | undefined;
|
|
16
|
+
}, NoInfer<AgentToolContext>> | undefined;
|
|
17
|
+
onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<AgentToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
18
|
+
onInputDelta?: ((options: {
|
|
19
|
+
inputTextDelta: string;
|
|
20
|
+
} & import("ai").ToolExecutionOptions<NoInfer<AgentToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
21
|
+
onInputAvailable?: ((options: {
|
|
22
|
+
input: {
|
|
23
|
+
timeout_ms?: number | undefined;
|
|
24
|
+
};
|
|
25
|
+
} & import("ai").ToolExecutionOptions<NoInfer<AgentToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
26
|
+
toModelOutput?: ((options: {
|
|
27
|
+
toolCallId: string;
|
|
28
|
+
input: {
|
|
29
|
+
timeout_ms?: number | undefined;
|
|
30
|
+
};
|
|
31
|
+
output: NoInfer<{
|
|
32
|
+
message: string;
|
|
33
|
+
timed_out: boolean;
|
|
34
|
+
}>;
|
|
35
|
+
}) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
|
|
36
|
+
} & {
|
|
37
|
+
outputSchema?: import("ai").FlexibleSchema<{
|
|
38
|
+
message: string;
|
|
39
|
+
timed_out: boolean;
|
|
40
|
+
}> | undefined;
|
|
41
|
+
execute: import("ai").ToolExecuteFunction<{
|
|
42
|
+
timeout_ms?: number | undefined;
|
|
43
|
+
}, {
|
|
44
|
+
message: string;
|
|
45
|
+
timed_out: boolean;
|
|
46
|
+
}, NoInfer<AgentToolContext>>;
|
|
47
|
+
} & {
|
|
48
|
+
description?: string | ((options: {
|
|
49
|
+
context: NoInfer<AgentToolContext>;
|
|
50
|
+
experimental_sandbox?: import("ai").Experimental_SandboxSession;
|
|
51
|
+
}) => string) | undefined;
|
|
52
|
+
strict?: boolean;
|
|
53
|
+
inputExamples?: {
|
|
54
|
+
input: NoInfer<{
|
|
55
|
+
timeout_ms?: number | undefined;
|
|
56
|
+
}>;
|
|
57
|
+
}[] | undefined;
|
|
58
|
+
id?: never;
|
|
59
|
+
isProviderExecuted?: never;
|
|
60
|
+
args?: never;
|
|
61
|
+
supportsDeferredResults?: never;
|
|
62
|
+
} & {
|
|
63
|
+
type?: undefined | "function";
|
|
64
|
+
} & {
|
|
65
|
+
execute: import("ai").ToolExecuteFunction<{
|
|
66
|
+
timeout_ms?: number | undefined;
|
|
67
|
+
}, {
|
|
68
|
+
message: string;
|
|
69
|
+
timed_out: boolean;
|
|
70
|
+
}, NoInfer<AgentToolContext>>;
|
|
71
|
+
}) | ({
|
|
72
|
+
title?: string;
|
|
73
|
+
providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
|
|
74
|
+
metadata?: import("@ai-sdk/provider").JSONObject;
|
|
75
|
+
inputSchema: import("ai").FlexibleSchema<{
|
|
76
|
+
timeout_ms?: number | undefined;
|
|
77
|
+
}>;
|
|
78
|
+
contextSchema?: import("ai").FlexibleSchema<AgentToolContext> | undefined;
|
|
79
|
+
needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
|
|
80
|
+
timeout_ms?: number | undefined;
|
|
81
|
+
}, NoInfer<AgentToolContext>> | undefined;
|
|
82
|
+
onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<AgentToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
83
|
+
onInputDelta?: ((options: {
|
|
84
|
+
inputTextDelta: string;
|
|
85
|
+
} & import("ai").ToolExecutionOptions<NoInfer<AgentToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
86
|
+
onInputAvailable?: ((options: {
|
|
87
|
+
input: {
|
|
88
|
+
timeout_ms?: number | undefined;
|
|
89
|
+
};
|
|
90
|
+
} & import("ai").ToolExecutionOptions<NoInfer<AgentToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
91
|
+
toModelOutput?: ((options: {
|
|
92
|
+
toolCallId: string;
|
|
93
|
+
input: {
|
|
94
|
+
timeout_ms?: number | undefined;
|
|
95
|
+
};
|
|
96
|
+
output: NoInfer<{
|
|
97
|
+
message: string;
|
|
98
|
+
timed_out: boolean;
|
|
99
|
+
}>;
|
|
100
|
+
}) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
|
|
101
|
+
} & {
|
|
102
|
+
outputSchema?: import("ai").FlexibleSchema<{
|
|
103
|
+
message: string;
|
|
104
|
+
timed_out: boolean;
|
|
105
|
+
}> | undefined;
|
|
106
|
+
execute: import("ai").ToolExecuteFunction<{
|
|
107
|
+
timeout_ms?: number | undefined;
|
|
108
|
+
}, {
|
|
109
|
+
message: string;
|
|
110
|
+
timed_out: boolean;
|
|
111
|
+
}, NoInfer<AgentToolContext>>;
|
|
112
|
+
} & {
|
|
113
|
+
description?: string | ((options: {
|
|
114
|
+
context: NoInfer<AgentToolContext>;
|
|
115
|
+
experimental_sandbox?: import("ai").Experimental_SandboxSession;
|
|
116
|
+
}) => string) | undefined;
|
|
117
|
+
strict?: boolean;
|
|
118
|
+
inputExamples?: {
|
|
119
|
+
input: NoInfer<{
|
|
120
|
+
timeout_ms?: number | undefined;
|
|
121
|
+
}>;
|
|
122
|
+
}[] | undefined;
|
|
123
|
+
id?: never;
|
|
124
|
+
isProviderExecuted?: never;
|
|
125
|
+
args?: never;
|
|
126
|
+
supportsDeferredResults?: never;
|
|
127
|
+
} & {
|
|
128
|
+
type: "dynamic";
|
|
129
|
+
} & {
|
|
130
|
+
execute: import("ai").ToolExecuteFunction<{
|
|
131
|
+
timeout_ms?: number | undefined;
|
|
132
|
+
}, {
|
|
133
|
+
message: string;
|
|
134
|
+
timed_out: boolean;
|
|
135
|
+
}, NoInfer<AgentToolContext>>;
|
|
136
|
+
}) | ({
|
|
137
|
+
title?: string;
|
|
138
|
+
providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
|
|
139
|
+
metadata?: import("@ai-sdk/provider").JSONObject;
|
|
140
|
+
inputSchema: import("ai").FlexibleSchema<{
|
|
141
|
+
timeout_ms?: number | undefined;
|
|
142
|
+
}>;
|
|
143
|
+
contextSchema?: import("ai").FlexibleSchema<AgentToolContext> | undefined;
|
|
144
|
+
needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
|
|
145
|
+
timeout_ms?: number | undefined;
|
|
146
|
+
}, NoInfer<AgentToolContext>> | undefined;
|
|
147
|
+
onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<AgentToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
148
|
+
onInputDelta?: ((options: {
|
|
149
|
+
inputTextDelta: string;
|
|
150
|
+
} & import("ai").ToolExecutionOptions<NoInfer<AgentToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
151
|
+
onInputAvailable?: ((options: {
|
|
152
|
+
input: {
|
|
153
|
+
timeout_ms?: number | undefined;
|
|
154
|
+
};
|
|
155
|
+
} & import("ai").ToolExecutionOptions<NoInfer<AgentToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
156
|
+
toModelOutput?: ((options: {
|
|
157
|
+
toolCallId: string;
|
|
158
|
+
input: {
|
|
159
|
+
timeout_ms?: number | undefined;
|
|
160
|
+
};
|
|
161
|
+
output: NoInfer<{
|
|
162
|
+
message: string;
|
|
163
|
+
timed_out: boolean;
|
|
164
|
+
}>;
|
|
165
|
+
}) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
|
|
166
|
+
} & {
|
|
167
|
+
outputSchema?: import("ai").FlexibleSchema<{
|
|
168
|
+
message: string;
|
|
169
|
+
timed_out: boolean;
|
|
170
|
+
}> | undefined;
|
|
171
|
+
execute: import("ai").ToolExecuteFunction<{
|
|
172
|
+
timeout_ms?: number | undefined;
|
|
173
|
+
}, {
|
|
174
|
+
message: string;
|
|
175
|
+
timed_out: boolean;
|
|
176
|
+
}, NoInfer<AgentToolContext>>;
|
|
177
|
+
} & {
|
|
178
|
+
type: "provider";
|
|
179
|
+
id: `${string}.${string}`;
|
|
180
|
+
args: Record<string, unknown>;
|
|
181
|
+
description?: never;
|
|
182
|
+
strict?: never;
|
|
183
|
+
inputExamples?: never;
|
|
184
|
+
} & {
|
|
185
|
+
isProviderExecuted: false;
|
|
186
|
+
supportsDeferredResults?: never;
|
|
187
|
+
} & {
|
|
188
|
+
execute: import("ai").ToolExecuteFunction<{
|
|
189
|
+
timeout_ms?: number | undefined;
|
|
190
|
+
}, {
|
|
191
|
+
message: string;
|
|
192
|
+
timed_out: boolean;
|
|
193
|
+
}, NoInfer<AgentToolContext>>;
|
|
194
|
+
}) | ({
|
|
195
|
+
title?: string;
|
|
196
|
+
providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
|
|
197
|
+
metadata?: import("@ai-sdk/provider").JSONObject;
|
|
198
|
+
inputSchema: import("ai").FlexibleSchema<{
|
|
199
|
+
timeout_ms?: number | undefined;
|
|
200
|
+
}>;
|
|
201
|
+
contextSchema?: import("ai").FlexibleSchema<AgentToolContext> | undefined;
|
|
202
|
+
needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
|
|
203
|
+
timeout_ms?: number | undefined;
|
|
204
|
+
}, NoInfer<AgentToolContext>> | undefined;
|
|
205
|
+
onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<AgentToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
206
|
+
onInputDelta?: ((options: {
|
|
207
|
+
inputTextDelta: string;
|
|
208
|
+
} & import("ai").ToolExecutionOptions<NoInfer<AgentToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
209
|
+
onInputAvailable?: ((options: {
|
|
210
|
+
input: {
|
|
211
|
+
timeout_ms?: number | undefined;
|
|
212
|
+
};
|
|
213
|
+
} & import("ai").ToolExecutionOptions<NoInfer<AgentToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
214
|
+
toModelOutput?: ((options: {
|
|
215
|
+
toolCallId: string;
|
|
216
|
+
input: {
|
|
217
|
+
timeout_ms?: number | undefined;
|
|
218
|
+
};
|
|
219
|
+
output: NoInfer<{
|
|
220
|
+
message: string;
|
|
221
|
+
timed_out: boolean;
|
|
222
|
+
}>;
|
|
223
|
+
}) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
|
|
224
|
+
} & {
|
|
225
|
+
outputSchema?: import("ai").FlexibleSchema<{
|
|
226
|
+
message: string;
|
|
227
|
+
timed_out: boolean;
|
|
228
|
+
}> | undefined;
|
|
229
|
+
execute: import("ai").ToolExecuteFunction<{
|
|
230
|
+
timeout_ms?: number | undefined;
|
|
231
|
+
}, {
|
|
232
|
+
message: string;
|
|
233
|
+
timed_out: boolean;
|
|
234
|
+
}, NoInfer<AgentToolContext>>;
|
|
235
|
+
} & {
|
|
236
|
+
type: "provider";
|
|
237
|
+
id: `${string}.${string}`;
|
|
238
|
+
args: Record<string, unknown>;
|
|
239
|
+
description?: never;
|
|
240
|
+
strict?: never;
|
|
241
|
+
inputExamples?: never;
|
|
242
|
+
} & {
|
|
243
|
+
isProviderExecuted: true;
|
|
244
|
+
supportsDeferredResults?: boolean;
|
|
245
|
+
} & {
|
|
246
|
+
execute: import("ai").ToolExecuteFunction<{
|
|
247
|
+
timeout_ms?: number | undefined;
|
|
248
|
+
}, {
|
|
249
|
+
message: string;
|
|
250
|
+
timed_out: boolean;
|
|
251
|
+
}, NoInfer<AgentToolContext>>;
|
|
252
|
+
});
|
|
253
|
+
//# sourceMappingURL=wait-agent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wait-agent.d.ts","sourceRoot":"","sources":["../../../src/zukhruf/collaboration/wait-agent.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAMhE,wBAAgB,mBAAmB,CAAC,OAAO,EAAE;IAC3C,YAAY,EAAE,MAAM,CAAC;IACrB,gBAAgB,EAAE,MAAM,CAAC;IACzB,YAAY,EAAE,MAAM,CAAC;CACtB;;;;;;;;;;;;;;;;;;;;;;;;;;qBAcc,MAAM;uBAAa,OAAO;;;;;iBAA1B,MAAM;mBAAa,OAAO;;;;;iBAA1B,MAAM;mBAAa,OAAO;;;;;;;;;;;;;;;;;;;;;;;iBAA1B,MAAM;mBAAa,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAA1B,MAAM;uBAAa,OAAO;;;;;iBAA1B,MAAM;mBAAa,OAAO;;;;;iBAA1B,MAAM;mBAAa,OAAO;;;;;;;;;;;;;;;;;;;;;;;iBAA1B,MAAM;mBAAa,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAA1B,MAAM;uBAAa,OAAO;;;;;iBAA1B,MAAM;mBAAa,OAAO;;;;;iBAA1B,MAAM;mBAAa,OAAO;;;;;;;;;;;;;;;;iBAA1B,MAAM;mBAAa,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAA1B,MAAM;uBAAa,OAAO;;;;;iBAA1B,MAAM;mBAAa,OAAO;;;;;iBAA1B,MAAM;mBAAa,OAAO;;;;;;;;;;;;;;;;iBAA1B,MAAM;mBAAa,OAAO;;GAoBxC"}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import type { StreamManager } from '@deepagents/context';
|
|
2
|
+
import type { AgentDeclaration } from '../agent.ts';
|
|
3
|
+
import type { MailboxCoordinator } from '../mailbox/coordinator.ts';
|
|
4
|
+
import type { ConversationId } from '../mailbox/types.ts';
|
|
5
|
+
import type { TurnQueue, TurnRef } from '../queue/turn-queue.ts';
|
|
2
6
|
import { AgentDeclarationRegistry } from './agent-declaration-registry.ts';
|
|
3
7
|
import { AgentDirectory } from './agent-directory.ts';
|
|
8
|
+
import { AgentHistoryForker } from './agent-history-forker.ts';
|
|
4
9
|
import { type AgentStatusProjector, type ListedAgent } from './agent-status-projector.ts';
|
|
5
10
|
import type { AgentThread } from './agent-thread.ts';
|
|
6
|
-
import type {
|
|
7
|
-
import type { MailboxCoordinator } from './mailbox/coordinator.ts';
|
|
8
|
-
import type { ConversationId } from './mailbox/types.ts';
|
|
9
|
-
import type { TurnQueue, TurnRef } from './queue/turn-queue.ts';
|
|
11
|
+
import type { ForkTurns } from './fork-turns.ts';
|
|
10
12
|
export interface AgentControlPlaneOptions {
|
|
11
13
|
root: AgentDeclaration;
|
|
12
14
|
streams: StreamManager;
|
|
@@ -15,6 +17,7 @@ export interface AgentControlPlaneOptions {
|
|
|
15
17
|
declarations: AgentDeclarationRegistry;
|
|
16
18
|
directory: AgentDirectory;
|
|
17
19
|
statusProjector: AgentStatusProjector;
|
|
20
|
+
historyForker: AgentHistoryForker;
|
|
18
21
|
}
|
|
19
22
|
export interface AgentActor {
|
|
20
23
|
turn: TurnRef;
|
|
@@ -30,10 +33,10 @@ export interface SpawnAgentInput {
|
|
|
30
33
|
agentType: string;
|
|
31
34
|
taskName: string;
|
|
32
35
|
message: string;
|
|
36
|
+
forkTurns: ForkTurns;
|
|
33
37
|
}
|
|
34
38
|
export interface SpawnAgentOutput {
|
|
35
39
|
task_name: string;
|
|
36
|
-
agent_path: string;
|
|
37
40
|
}
|
|
38
41
|
export type { ListedAgent, ListedAgentStatus, } from './agent-status-projector.ts';
|
|
39
42
|
/** Application-level coordination for one declared agent tree. */
|
|
@@ -63,6 +66,15 @@ export declare class AgentControlPlane {
|
|
|
63
66
|
listAgents(actor: AgentActor, pathPrefix?: string): Promise<{
|
|
64
67
|
agents: ListedAgent[];
|
|
65
68
|
}>;
|
|
69
|
+
interruptAgent(actor: AgentActor, input: {
|
|
70
|
+
target: string;
|
|
71
|
+
}): Promise<{
|
|
72
|
+
previous_status: ListedAgent['agent_status'];
|
|
73
|
+
}>;
|
|
74
|
+
waitForMailbox(actor: AgentActor, options: {
|
|
75
|
+
timeoutMs: number;
|
|
76
|
+
signal?: AbortSignal;
|
|
77
|
+
}): Promise<boolean>;
|
|
66
78
|
projectTerminal(turn: TurnRef, thread: AgentThread): Promise<void>;
|
|
67
79
|
}
|
|
68
80
|
//# sourceMappingURL=agent-control-plane.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-control-plane.d.ts","sourceRoot":"","sources":["../../../src/zukhruf/control-plane/agent-control-plane.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-declaration-registry.d.ts","sourceRoot":"","sources":["../../../src/zukhruf/control-plane/agent-declaration-registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAEpD,wEAAwE;AACxE,qBAAa,wBAAwB;;IACnC,QAAQ,CAAC,IAAI,EAAE,gBAAgB,CAAC;gBAIpB,IAAI,EAAE,gBAAgB;IAKlC,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,gBAAgB,GAAG,SAAS;CAgChD"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ContextStore } from '@deepagents/context';
|
|
2
|
+
import type { ConversationId } from '../mailbox/types.ts';
|
|
2
3
|
import { AgentThread } from './agent-thread.ts';
|
|
3
|
-
import type { ConversationId } from './mailbox/types.ts';
|
|
4
4
|
/** ContextStore-backed directory of durable agent instances. */
|
|
5
5
|
export declare class AgentDirectory {
|
|
6
6
|
#private;
|
|
@@ -12,6 +12,7 @@ export declare class AgentDirectory {
|
|
|
12
12
|
recordLatestTurnIfCurrent(conversation: ConversationId, streamId: string, expectedLastTurnId: string | undefined): Promise<AgentThread | undefined>;
|
|
13
13
|
listTree(thread: AgentThread): Promise<AgentThread[]>;
|
|
14
14
|
resolve(thread: AgentThread, target: string): Promise<AgentThread>;
|
|
15
|
+
find(thread: AgentThread, target: string): Promise<AgentThread | undefined>;
|
|
15
16
|
createChild(options: {
|
|
16
17
|
parent: AgentThread;
|
|
17
18
|
taskName: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-directory.d.ts","sourceRoot":"","sources":["../../../src/zukhruf/control-plane/agent-directory.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,gEAAgE;AAChE,qBAAa,cAAc;;gBAGb,KAAK,EAAE,YAAY;IAIzB,mBAAmB,CAAC,YAAY,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;IAQhE,IAAI,CAAC,YAAY,EAAE,cAAc,GAAG,OAAO,CAAC,WAAW,GAAG,SAAS,CAAC;IASpE,gBAAgB,CACpB,YAAY,EAAE,cAAc,EAC5B,eAAe,EAAE,MAAM,GACtB,OAAO,CAAC,WAAW,CAAC;IAyBjB,gBAAgB,CACpB,YAAY,EAAE,cAAc,EAC5B,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,WAAW,CAAC;IAIjB,yBAAyB,CAC7B,YAAY,EAAE,cAAc,EAC5B,QAAQ,EAAE,MAAM,EAChB,kBAAkB,EAAE,MAAM,GAAG,SAAS,GACrC,OAAO,CAAC,WAAW,GAAG,SAAS,CAAC;IAI7B,QAAQ,CAAC,MAAM,EAAE,WAAW,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;IAoBrD,OAAO,CAAC,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC;IAOlE,IAAI,CACR,MAAM,EAAE,WAAW,EACnB,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,WAAW,GAAG,SAAS,CAAC;IAO7B,WAAW,CAAC,OAAO,EAAE;QACzB,MAAM,EAAE,WAAW,CAAC;QACpB,QAAQ,EAAE,MAAM,CAAC;QACjB,eAAe,EAAE,MAAM,CAAC;KACzB,GAAG,OAAO,CAAC,WAAW,CAAC;CA6IzB"}
|