@agentuity/core 2.0.11 → 2.0.13
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/services/api.d.ts +1 -1
- package/dist/services/api.d.ts.map +1 -1
- package/dist/services/api.js +4 -6
- package/dist/services/api.js.map +1 -1
- package/dist/services/coder/agents.d.ts +6 -4
- package/dist/services/coder/agents.d.ts.map +1 -1
- package/dist/services/coder/api-reference.d.ts.map +1 -1
- package/dist/services/coder/api-reference.js +78 -10
- package/dist/services/coder/api-reference.js.map +1 -1
- package/dist/services/coder/client.d.ts +17 -1
- package/dist/services/coder/client.d.ts.map +1 -1
- package/dist/services/coder/client.js +30 -2
- package/dist/services/coder/client.js.map +1 -1
- package/dist/services/coder/index.d.ts +2 -2
- package/dist/services/coder/index.d.ts.map +1 -1
- package/dist/services/coder/index.js +1 -1
- package/dist/services/coder/index.js.map +1 -1
- package/dist/services/coder/protocol.d.ts +385 -15
- package/dist/services/coder/protocol.d.ts.map +1 -1
- package/dist/services/coder/protocol.js +148 -2
- package/dist/services/coder/protocol.js.map +1 -1
- package/dist/services/coder/sessions.d.ts +24 -2
- package/dist/services/coder/sessions.d.ts.map +1 -1
- package/dist/services/coder/sessions.js +10 -1
- package/dist/services/coder/sessions.js.map +1 -1
- package/dist/services/coder/sse.d.ts +2 -2
- package/dist/services/coder/sse.d.ts.map +1 -1
- package/dist/services/coder/sse.js +290 -178
- package/dist/services/coder/sse.js.map +1 -1
- package/dist/services/coder/types.d.ts +680 -42
- package/dist/services/coder/types.d.ts.map +1 -1
- package/dist/services/coder/types.js +284 -40
- package/dist/services/coder/types.js.map +1 -1
- package/dist/services/coder/websocket.d.ts +13 -1
- package/dist/services/coder/websocket.d.ts.map +1 -1
- package/dist/services/coder/websocket.js +91 -19
- package/dist/services/coder/websocket.js.map +1 -1
- package/dist/services/coder/workspaces.d.ts +11 -1
- package/dist/services/coder/workspaces.d.ts.map +1 -1
- package/dist/services/coder/workspaces.js +34 -1
- package/dist/services/coder/workspaces.js.map +1 -1
- package/dist/services/sandbox/api-reference.js +8 -8
- package/dist/services/sandbox/api-reference.js.map +1 -1
- package/dist/services/sandbox/client.d.ts +3 -2
- package/dist/services/sandbox/client.d.ts.map +1 -1
- package/dist/services/sandbox/client.js.map +1 -1
- package/dist/services/sandbox/create.d.ts +5 -0
- package/dist/services/sandbox/create.d.ts.map +1 -1
- package/dist/services/sandbox/create.js +8 -0
- package/dist/services/sandbox/create.js.map +1 -1
- package/dist/services/sandbox/get.d.ts +8 -4
- package/dist/services/sandbox/get.d.ts.map +1 -1
- package/dist/services/sandbox/get.js +28 -3
- package/dist/services/sandbox/get.js.map +1 -1
- package/dist/services/sandbox/getStatus.d.ts +2 -0
- package/dist/services/sandbox/getStatus.d.ts.map +1 -1
- package/dist/services/sandbox/getStatus.js +17 -1
- package/dist/services/sandbox/getStatus.js.map +1 -1
- package/dist/services/sandbox/index.d.ts +1 -1
- package/dist/services/sandbox/index.d.ts.map +1 -1
- package/dist/services/sandbox/list.d.ts +3 -0
- package/dist/services/sandbox/list.d.ts.map +1 -1
- package/dist/services/sandbox/list.js +5 -0
- package/dist/services/sandbox/list.js.map +1 -1
- package/dist/services/sandbox/pause.d.ts +17 -1
- package/dist/services/sandbox/pause.d.ts.map +1 -1
- package/dist/services/sandbox/pause.js +21 -3
- package/dist/services/sandbox/pause.js.map +1 -1
- package/dist/services/sandbox/run.d.ts +3 -2
- package/dist/services/sandbox/run.d.ts.map +1 -1
- package/dist/services/sandbox/run.js +145 -85
- package/dist/services/sandbox/run.js.map +1 -1
- package/dist/services/sandbox/types.d.ts +11 -4
- package/dist/services/sandbox/types.d.ts.map +1 -1
- package/dist/services/sandbox/types.js +12 -0
- package/dist/services/sandbox/types.js.map +1 -1
- package/dist/services/stream/namespaces.d.ts +2 -2
- package/dist/services/stream/namespaces.js +2 -2
- package/dist/services/stream/namespaces.js.map +1 -1
- package/package.json +2 -2
- package/src/services/api.ts +6 -7
- package/src/services/coder/api-reference.ts +79 -9
- package/src/services/coder/client.ts +46 -0
- package/src/services/coder/index.ts +3 -0
- package/src/services/coder/protocol.ts +166 -2
- package/src/services/coder/sessions.ts +26 -0
- package/src/services/coder/sse.ts +343 -184
- package/src/services/coder/types.ts +350 -44
- package/src/services/coder/websocket.ts +120 -21
- package/src/services/coder/workspaces.ts +74 -0
- package/src/services/sandbox/api-reference.ts +8 -8
- package/src/services/sandbox/client.ts +4 -4
- package/src/services/sandbox/create.ts +10 -0
- package/src/services/sandbox/get.ts +32 -3
- package/src/services/sandbox/getStatus.ts +20 -1
- package/src/services/sandbox/index.ts +1 -1
- package/src/services/sandbox/list.ts +5 -0
- package/src/services/sandbox/pause.ts +38 -4
- package/src/services/sandbox/run.ts +202 -108
- package/src/services/sandbox/types.ts +17 -2
- package/src/services/stream/namespaces.ts +2 -2
|
@@ -22,9 +22,126 @@ import { z } from 'zod/v4';
|
|
|
22
22
|
export declare const CoderHubInitRoleSchema: z.ZodEnum<{
|
|
23
23
|
lead: "lead";
|
|
24
24
|
sub_agent: "sub_agent";
|
|
25
|
+
observer: "observer";
|
|
25
26
|
controller: "controller";
|
|
26
27
|
}>;
|
|
27
28
|
export type CoderHubInitRole = z.infer<typeof CoderHubInitRoleSchema>;
|
|
29
|
+
export declare const CoderHubEventNames: readonly ["session_start", "session_complete", "session_error", "session_shutdown", "session_before_compact", "session_compact", "rpc_ready", "agent_start", "agent_end", "agent_progress", "before_agent_start", "turn_start", "turn_end", "tool_call", "tool_result", "tool_execution_start", "tool_execution_end", "tool_execution_update", "runtime_process_start", "runtime_process_output", "runtime_process_error", "runtime_process_stop", "runtime_preview_available", "task_start", "task_complete", "task_error", "message_start", "message_update", "message_end", "thinking_start", "thinking_end", "session_join", "session_leave", "session_label_updated", "presence_update", "loop_state_updated", "loop_started", "loop_resumed", "loop_paused", "loop_blocked", "loop_completed", "loop_cancelled", "coord_job_created", "coord_job_completed", "coord_job_failed", "coord_task_ready", "coord_task_claimed", "coord_task_completed", "coord_task_failed", "coord_task_discovered", "coord_file_reserved", "coord_file_released", "coord_file_conflict", "coord_contract_provided", "coord_worker_joined"];
|
|
30
|
+
export type CoderHubEventName = (typeof CoderHubEventNames)[number];
|
|
31
|
+
export declare const CoderHubEventNameSchema: z.ZodEnum<{
|
|
32
|
+
session_start: "session_start";
|
|
33
|
+
session_complete: "session_complete";
|
|
34
|
+
session_error: "session_error";
|
|
35
|
+
session_shutdown: "session_shutdown";
|
|
36
|
+
session_before_compact: "session_before_compact";
|
|
37
|
+
session_compact: "session_compact";
|
|
38
|
+
rpc_ready: "rpc_ready";
|
|
39
|
+
agent_start: "agent_start";
|
|
40
|
+
agent_end: "agent_end";
|
|
41
|
+
agent_progress: "agent_progress";
|
|
42
|
+
before_agent_start: "before_agent_start";
|
|
43
|
+
turn_start: "turn_start";
|
|
44
|
+
turn_end: "turn_end";
|
|
45
|
+
tool_call: "tool_call";
|
|
46
|
+
tool_result: "tool_result";
|
|
47
|
+
tool_execution_start: "tool_execution_start";
|
|
48
|
+
tool_execution_end: "tool_execution_end";
|
|
49
|
+
tool_execution_update: "tool_execution_update";
|
|
50
|
+
runtime_process_start: "runtime_process_start";
|
|
51
|
+
runtime_process_output: "runtime_process_output";
|
|
52
|
+
runtime_process_error: "runtime_process_error";
|
|
53
|
+
runtime_process_stop: "runtime_process_stop";
|
|
54
|
+
runtime_preview_available: "runtime_preview_available";
|
|
55
|
+
task_start: "task_start";
|
|
56
|
+
task_complete: "task_complete";
|
|
57
|
+
task_error: "task_error";
|
|
58
|
+
message_start: "message_start";
|
|
59
|
+
message_update: "message_update";
|
|
60
|
+
message_end: "message_end";
|
|
61
|
+
thinking_start: "thinking_start";
|
|
62
|
+
thinking_end: "thinking_end";
|
|
63
|
+
session_join: "session_join";
|
|
64
|
+
session_leave: "session_leave";
|
|
65
|
+
session_label_updated: "session_label_updated";
|
|
66
|
+
presence_update: "presence_update";
|
|
67
|
+
loop_state_updated: "loop_state_updated";
|
|
68
|
+
loop_started: "loop_started";
|
|
69
|
+
loop_resumed: "loop_resumed";
|
|
70
|
+
loop_paused: "loop_paused";
|
|
71
|
+
loop_blocked: "loop_blocked";
|
|
72
|
+
loop_completed: "loop_completed";
|
|
73
|
+
loop_cancelled: "loop_cancelled";
|
|
74
|
+
coord_job_created: "coord_job_created";
|
|
75
|
+
coord_job_completed: "coord_job_completed";
|
|
76
|
+
coord_job_failed: "coord_job_failed";
|
|
77
|
+
coord_task_ready: "coord_task_ready";
|
|
78
|
+
coord_task_claimed: "coord_task_claimed";
|
|
79
|
+
coord_task_completed: "coord_task_completed";
|
|
80
|
+
coord_task_failed: "coord_task_failed";
|
|
81
|
+
coord_task_discovered: "coord_task_discovered";
|
|
82
|
+
coord_file_reserved: "coord_file_reserved";
|
|
83
|
+
coord_file_released: "coord_file_released";
|
|
84
|
+
coord_file_conflict: "coord_file_conflict";
|
|
85
|
+
coord_contract_provided: "coord_contract_provided";
|
|
86
|
+
coord_worker_joined: "coord_worker_joined";
|
|
87
|
+
}>;
|
|
88
|
+
export declare const CoderHubEvents: {
|
|
89
|
+
readonly SESSION_START: "session_start";
|
|
90
|
+
readonly SESSION_COMPLETE: "session_complete";
|
|
91
|
+
readonly SESSION_ERROR: "session_error";
|
|
92
|
+
readonly SESSION_SHUTDOWN: "session_shutdown";
|
|
93
|
+
readonly SESSION_BEFORE_COMPACT: "session_before_compact";
|
|
94
|
+
readonly SESSION_COMPACT: "session_compact";
|
|
95
|
+
readonly RPC_READY: "rpc_ready";
|
|
96
|
+
readonly AGENT_START: "agent_start";
|
|
97
|
+
readonly AGENT_END: "agent_end";
|
|
98
|
+
readonly AGENT_PROGRESS: "agent_progress";
|
|
99
|
+
readonly BEFORE_AGENT_START: "before_agent_start";
|
|
100
|
+
readonly TURN_START: "turn_start";
|
|
101
|
+
readonly TURN_END: "turn_end";
|
|
102
|
+
readonly TOOL_CALL: "tool_call";
|
|
103
|
+
readonly TOOL_RESULT: "tool_result";
|
|
104
|
+
readonly TOOL_EXECUTION_START: "tool_execution_start";
|
|
105
|
+
readonly TOOL_EXECUTION_END: "tool_execution_end";
|
|
106
|
+
readonly TOOL_EXECUTION_UPDATE: "tool_execution_update";
|
|
107
|
+
readonly RUNTIME_PROCESS_START: "runtime_process_start";
|
|
108
|
+
readonly RUNTIME_PROCESS_OUTPUT: "runtime_process_output";
|
|
109
|
+
readonly RUNTIME_PROCESS_ERROR: "runtime_process_error";
|
|
110
|
+
readonly RUNTIME_PROCESS_STOP: "runtime_process_stop";
|
|
111
|
+
readonly RUNTIME_PREVIEW_AVAILABLE: "runtime_preview_available";
|
|
112
|
+
readonly TASK_START: "task_start";
|
|
113
|
+
readonly TASK_COMPLETE: "task_complete";
|
|
114
|
+
readonly TASK_ERROR: "task_error";
|
|
115
|
+
readonly MESSAGE_START: "message_start";
|
|
116
|
+
readonly MESSAGE_UPDATE: "message_update";
|
|
117
|
+
readonly MESSAGE_END: "message_end";
|
|
118
|
+
readonly THINKING_START: "thinking_start";
|
|
119
|
+
readonly THINKING_END: "thinking_end";
|
|
120
|
+
readonly SESSION_JOIN: "session_join";
|
|
121
|
+
readonly SESSION_LEAVE: "session_leave";
|
|
122
|
+
readonly SESSION_LABEL_UPDATED: "session_label_updated";
|
|
123
|
+
readonly PRESENCE_UPDATE: "presence_update";
|
|
124
|
+
readonly LOOP_STATE_UPDATED: "loop_state_updated";
|
|
125
|
+
readonly LOOP_STARTED: "loop_started";
|
|
126
|
+
readonly LOOP_RESUMED: "loop_resumed";
|
|
127
|
+
readonly LOOP_PAUSED: "loop_paused";
|
|
128
|
+
readonly LOOP_BLOCKED: "loop_blocked";
|
|
129
|
+
readonly LOOP_COMPLETED: "loop_completed";
|
|
130
|
+
readonly LOOP_CANCELLED: "loop_cancelled";
|
|
131
|
+
readonly COORD_JOB_CREATED: "coord_job_created";
|
|
132
|
+
readonly COORD_JOB_COMPLETED: "coord_job_completed";
|
|
133
|
+
readonly COORD_JOB_FAILED: "coord_job_failed";
|
|
134
|
+
readonly COORD_TASK_READY: "coord_task_ready";
|
|
135
|
+
readonly COORD_TASK_CLAIMED: "coord_task_claimed";
|
|
136
|
+
readonly COORD_TASK_COMPLETED: "coord_task_completed";
|
|
137
|
+
readonly COORD_TASK_FAILED: "coord_task_failed";
|
|
138
|
+
readonly COORD_TASK_DISCOVERED: "coord_task_discovered";
|
|
139
|
+
readonly COORD_FILE_RESERVED: "coord_file_reserved";
|
|
140
|
+
readonly COORD_FILE_RELEASED: "coord_file_released";
|
|
141
|
+
readonly COORD_FILE_CONFLICT: "coord_file_conflict";
|
|
142
|
+
readonly COORD_CONTRACT_PROVIDED: "coord_contract_provided";
|
|
143
|
+
readonly COORD_WORKER_JOINED: "coord_worker_joined";
|
|
144
|
+
};
|
|
28
145
|
/** Tool definition provided by the server to clients */
|
|
29
146
|
export declare const CoderHubToolDefinitionSchema: z.ZodObject<{
|
|
30
147
|
name: z.ZodString;
|
|
@@ -44,6 +161,10 @@ export type CoderHubCommandDefinition = z.infer<typeof CoderHubCommandDefinition
|
|
|
44
161
|
export declare const AgentDefinitionSchema: z.ZodObject<{
|
|
45
162
|
name: z.ZodString;
|
|
46
163
|
displayName: z.ZodOptional<z.ZodString>;
|
|
164
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
165
|
+
custom: "custom";
|
|
166
|
+
builtin: "builtin";
|
|
167
|
+
}>>;
|
|
47
168
|
description: z.ZodString;
|
|
48
169
|
systemPrompt: z.ZodString;
|
|
49
170
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -61,6 +182,7 @@ export declare const AgentDefinitionSchema: z.ZodObject<{
|
|
|
61
182
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
62
183
|
}, z.core.$strip>>>;
|
|
63
184
|
capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
185
|
+
strictToolSelection: z.ZodOptional<z.ZodBoolean>;
|
|
64
186
|
status: z.ZodOptional<z.ZodEnum<{
|
|
65
187
|
available: "available";
|
|
66
188
|
busy: "busy";
|
|
@@ -103,6 +225,10 @@ export declare const CoderHubLeadInitMessageSchema: z.ZodObject<{
|
|
|
103
225
|
agents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
104
226
|
name: z.ZodString;
|
|
105
227
|
displayName: z.ZodOptional<z.ZodString>;
|
|
228
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
229
|
+
custom: "custom";
|
|
230
|
+
builtin: "builtin";
|
|
231
|
+
}>>;
|
|
106
232
|
description: z.ZodString;
|
|
107
233
|
systemPrompt: z.ZodString;
|
|
108
234
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -120,6 +246,7 @@ export declare const CoderHubLeadInitMessageSchema: z.ZodObject<{
|
|
|
120
246
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
121
247
|
}, z.core.$strip>>>;
|
|
122
248
|
capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
249
|
+
strictToolSelection: z.ZodOptional<z.ZodBoolean>;
|
|
123
250
|
status: z.ZodOptional<z.ZodEnum<{
|
|
124
251
|
available: "available";
|
|
125
252
|
busy: "busy";
|
|
@@ -164,6 +291,10 @@ export declare const CoderHubSubAgentInitMessageSchema: z.ZodObject<{
|
|
|
164
291
|
agents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
165
292
|
name: z.ZodString;
|
|
166
293
|
displayName: z.ZodOptional<z.ZodString>;
|
|
294
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
295
|
+
custom: "custom";
|
|
296
|
+
builtin: "builtin";
|
|
297
|
+
}>>;
|
|
167
298
|
description: z.ZodString;
|
|
168
299
|
systemPrompt: z.ZodString;
|
|
169
300
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -181,6 +312,7 @@ export declare const CoderHubSubAgentInitMessageSchema: z.ZodObject<{
|
|
|
181
312
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
182
313
|
}, z.core.$strip>>>;
|
|
183
314
|
capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
315
|
+
strictToolSelection: z.ZodOptional<z.ZodBoolean>;
|
|
184
316
|
status: z.ZodOptional<z.ZodEnum<{
|
|
185
317
|
available: "available";
|
|
186
318
|
busy: "busy";
|
|
@@ -225,6 +357,10 @@ export declare const CoderHubControllerInitMessageSchema: z.ZodObject<{
|
|
|
225
357
|
agents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
226
358
|
name: z.ZodString;
|
|
227
359
|
displayName: z.ZodOptional<z.ZodString>;
|
|
360
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
361
|
+
custom: "custom";
|
|
362
|
+
builtin: "builtin";
|
|
363
|
+
}>>;
|
|
228
364
|
description: z.ZodString;
|
|
229
365
|
systemPrompt: z.ZodString;
|
|
230
366
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -242,6 +378,7 @@ export declare const CoderHubControllerInitMessageSchema: z.ZodObject<{
|
|
|
242
378
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
243
379
|
}, z.core.$strip>>>;
|
|
244
380
|
capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
381
|
+
strictToolSelection: z.ZodOptional<z.ZodBoolean>;
|
|
245
382
|
status: z.ZodOptional<z.ZodEnum<{
|
|
246
383
|
available: "available";
|
|
247
384
|
busy: "busy";
|
|
@@ -262,6 +399,72 @@ export declare const CoderHubControllerInitMessageSchema: z.ZodObject<{
|
|
|
262
399
|
role: z.ZodLiteral<"controller">;
|
|
263
400
|
}, z.core.$strip>;
|
|
264
401
|
export type CoderHubControllerInitMessage = z.infer<typeof CoderHubControllerInitMessageSchema>;
|
|
402
|
+
export declare const CoderHubObserverInitMessageSchema: z.ZodObject<{
|
|
403
|
+
type: z.ZodLiteral<"init">;
|
|
404
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
405
|
+
resume: z.ZodOptional<z.ZodObject<{
|
|
406
|
+
sessionFile: z.ZodString;
|
|
407
|
+
piSessionId: z.ZodOptional<z.ZodString>;
|
|
408
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
409
|
+
}, z.core.$strip>>;
|
|
410
|
+
tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
411
|
+
name: z.ZodString;
|
|
412
|
+
label: z.ZodString;
|
|
413
|
+
description: z.ZodString;
|
|
414
|
+
parameters: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
415
|
+
promptSnippet: z.ZodOptional<z.ZodString>;
|
|
416
|
+
promptGuidelines: z.ZodOptional<z.ZodString>;
|
|
417
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
418
|
+
}, z.core.$strip>>>;
|
|
419
|
+
commands: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
420
|
+
name: z.ZodString;
|
|
421
|
+
description: z.ZodString;
|
|
422
|
+
}, z.core.$strip>>>;
|
|
423
|
+
agents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
424
|
+
name: z.ZodString;
|
|
425
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
426
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
427
|
+
custom: "custom";
|
|
428
|
+
builtin: "builtin";
|
|
429
|
+
}>>;
|
|
430
|
+
description: z.ZodString;
|
|
431
|
+
systemPrompt: z.ZodString;
|
|
432
|
+
model: z.ZodOptional<z.ZodString>;
|
|
433
|
+
tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
434
|
+
temperature: z.ZodOptional<z.ZodNumber>;
|
|
435
|
+
thinkingLevel: z.ZodOptional<z.ZodString>;
|
|
436
|
+
readOnly: z.ZodOptional<z.ZodBoolean>;
|
|
437
|
+
hubTools: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
438
|
+
name: z.ZodString;
|
|
439
|
+
label: z.ZodString;
|
|
440
|
+
description: z.ZodString;
|
|
441
|
+
parameters: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
442
|
+
promptSnippet: z.ZodOptional<z.ZodString>;
|
|
443
|
+
promptGuidelines: z.ZodOptional<z.ZodString>;
|
|
444
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
445
|
+
}, z.core.$strip>>>;
|
|
446
|
+
capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
447
|
+
strictToolSelection: z.ZodOptional<z.ZodBoolean>;
|
|
448
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
449
|
+
available: "available";
|
|
450
|
+
busy: "busy";
|
|
451
|
+
offline: "offline";
|
|
452
|
+
}>>;
|
|
453
|
+
}, z.core.$strip>>>;
|
|
454
|
+
config: z.ZodOptional<z.ZodObject<{
|
|
455
|
+
systemPromptPrefix: z.ZodOptional<z.ZodString>;
|
|
456
|
+
systemPromptSuffix: z.ZodOptional<z.ZodString>;
|
|
457
|
+
}, z.core.$strip>>;
|
|
458
|
+
model: z.ZodOptional<z.ZodObject<{
|
|
459
|
+
provider: z.ZodString;
|
|
460
|
+
id: z.ZodString;
|
|
461
|
+
}, z.core.$strip>>;
|
|
462
|
+
thinkingLevel: z.ZodOptional<z.ZodString>;
|
|
463
|
+
task: z.ZodOptional<z.ZodString>;
|
|
464
|
+
agentRole: z.ZodOptional<z.ZodString>;
|
|
465
|
+
role: z.ZodLiteral<"observer">;
|
|
466
|
+
}, z.core.$strip>;
|
|
467
|
+
export type CoderHubObserverInitMessage = z.infer<typeof CoderHubObserverInitMessageSchema>;
|
|
265
468
|
export declare const CoderHubInitMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
266
469
|
type: z.ZodLiteral<"init">;
|
|
267
470
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
@@ -286,6 +489,10 @@ export declare const CoderHubInitMessageSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
286
489
|
agents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
287
490
|
name: z.ZodString;
|
|
288
491
|
displayName: z.ZodOptional<z.ZodString>;
|
|
492
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
493
|
+
custom: "custom";
|
|
494
|
+
builtin: "builtin";
|
|
495
|
+
}>>;
|
|
289
496
|
description: z.ZodString;
|
|
290
497
|
systemPrompt: z.ZodString;
|
|
291
498
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -303,6 +510,7 @@ export declare const CoderHubInitMessageSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
303
510
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
304
511
|
}, z.core.$strip>>>;
|
|
305
512
|
capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
513
|
+
strictToolSelection: z.ZodOptional<z.ZodBoolean>;
|
|
306
514
|
status: z.ZodOptional<z.ZodEnum<{
|
|
307
515
|
available: "available";
|
|
308
516
|
busy: "busy";
|
|
@@ -345,6 +553,10 @@ export declare const CoderHubInitMessageSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
345
553
|
agents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
346
554
|
name: z.ZodString;
|
|
347
555
|
displayName: z.ZodOptional<z.ZodString>;
|
|
556
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
557
|
+
custom: "custom";
|
|
558
|
+
builtin: "builtin";
|
|
559
|
+
}>>;
|
|
348
560
|
description: z.ZodString;
|
|
349
561
|
systemPrompt: z.ZodString;
|
|
350
562
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -362,6 +574,7 @@ export declare const CoderHubInitMessageSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
362
574
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
363
575
|
}, z.core.$strip>>>;
|
|
364
576
|
capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
577
|
+
strictToolSelection: z.ZodOptional<z.ZodBoolean>;
|
|
365
578
|
status: z.ZodOptional<z.ZodEnum<{
|
|
366
579
|
available: "available";
|
|
367
580
|
busy: "busy";
|
|
@@ -404,6 +617,10 @@ export declare const CoderHubInitMessageSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
404
617
|
agents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
405
618
|
name: z.ZodString;
|
|
406
619
|
displayName: z.ZodOptional<z.ZodString>;
|
|
620
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
621
|
+
custom: "custom";
|
|
622
|
+
builtin: "builtin";
|
|
623
|
+
}>>;
|
|
407
624
|
description: z.ZodString;
|
|
408
625
|
systemPrompt: z.ZodString;
|
|
409
626
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -421,6 +638,71 @@ export declare const CoderHubInitMessageSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
421
638
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
422
639
|
}, z.core.$strip>>>;
|
|
423
640
|
capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
641
|
+
strictToolSelection: z.ZodOptional<z.ZodBoolean>;
|
|
642
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
643
|
+
available: "available";
|
|
644
|
+
busy: "busy";
|
|
645
|
+
offline: "offline";
|
|
646
|
+
}>>;
|
|
647
|
+
}, z.core.$strip>>>;
|
|
648
|
+
config: z.ZodOptional<z.ZodObject<{
|
|
649
|
+
systemPromptPrefix: z.ZodOptional<z.ZodString>;
|
|
650
|
+
systemPromptSuffix: z.ZodOptional<z.ZodString>;
|
|
651
|
+
}, z.core.$strip>>;
|
|
652
|
+
model: z.ZodOptional<z.ZodObject<{
|
|
653
|
+
provider: z.ZodString;
|
|
654
|
+
id: z.ZodString;
|
|
655
|
+
}, z.core.$strip>>;
|
|
656
|
+
thinkingLevel: z.ZodOptional<z.ZodString>;
|
|
657
|
+
task: z.ZodOptional<z.ZodString>;
|
|
658
|
+
agentRole: z.ZodOptional<z.ZodString>;
|
|
659
|
+
role: z.ZodLiteral<"observer">;
|
|
660
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
661
|
+
type: z.ZodLiteral<"init">;
|
|
662
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
663
|
+
resume: z.ZodOptional<z.ZodObject<{
|
|
664
|
+
sessionFile: z.ZodString;
|
|
665
|
+
piSessionId: z.ZodOptional<z.ZodString>;
|
|
666
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
667
|
+
}, z.core.$strip>>;
|
|
668
|
+
tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
669
|
+
name: z.ZodString;
|
|
670
|
+
label: z.ZodString;
|
|
671
|
+
description: z.ZodString;
|
|
672
|
+
parameters: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
673
|
+
promptSnippet: z.ZodOptional<z.ZodString>;
|
|
674
|
+
promptGuidelines: z.ZodOptional<z.ZodString>;
|
|
675
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
676
|
+
}, z.core.$strip>>>;
|
|
677
|
+
commands: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
678
|
+
name: z.ZodString;
|
|
679
|
+
description: z.ZodString;
|
|
680
|
+
}, z.core.$strip>>>;
|
|
681
|
+
agents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
682
|
+
name: z.ZodString;
|
|
683
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
684
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
685
|
+
custom: "custom";
|
|
686
|
+
builtin: "builtin";
|
|
687
|
+
}>>;
|
|
688
|
+
description: z.ZodString;
|
|
689
|
+
systemPrompt: z.ZodString;
|
|
690
|
+
model: z.ZodOptional<z.ZodString>;
|
|
691
|
+
tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
692
|
+
temperature: z.ZodOptional<z.ZodNumber>;
|
|
693
|
+
thinkingLevel: z.ZodOptional<z.ZodString>;
|
|
694
|
+
readOnly: z.ZodOptional<z.ZodBoolean>;
|
|
695
|
+
hubTools: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
696
|
+
name: z.ZodString;
|
|
697
|
+
label: z.ZodString;
|
|
698
|
+
description: z.ZodString;
|
|
699
|
+
parameters: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
700
|
+
promptSnippet: z.ZodOptional<z.ZodString>;
|
|
701
|
+
promptGuidelines: z.ZodOptional<z.ZodString>;
|
|
702
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
703
|
+
}, z.core.$strip>>>;
|
|
704
|
+
capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
705
|
+
strictToolSelection: z.ZodOptional<z.ZodBoolean>;
|
|
424
706
|
status: z.ZodOptional<z.ZodEnum<{
|
|
425
707
|
available: "available";
|
|
426
708
|
busy: "busy";
|
|
@@ -665,9 +947,9 @@ export type PromptAttachmentDescriptor = z.infer<typeof PromptAttachmentDescript
|
|
|
665
947
|
export declare const ConversationEntrySchema: z.ZodObject<{
|
|
666
948
|
type: z.ZodEnum<{
|
|
667
949
|
message: "message";
|
|
668
|
-
thinking: "thinking";
|
|
669
950
|
tool_call: "tool_call";
|
|
670
951
|
tool_result: "tool_result";
|
|
952
|
+
thinking: "thinking";
|
|
671
953
|
task_result: "task_result";
|
|
672
954
|
runtime_status: "runtime_status";
|
|
673
955
|
runtime_output: "runtime_output";
|
|
@@ -775,9 +1057,9 @@ export declare const CoderHubHydrationMessageSchema: z.ZodObject<{
|
|
|
775
1057
|
entries: z.ZodArray<z.ZodObject<{
|
|
776
1058
|
type: z.ZodEnum<{
|
|
777
1059
|
message: "message";
|
|
778
|
-
thinking: "thinking";
|
|
779
1060
|
tool_call: "tool_call";
|
|
780
1061
|
tool_result: "tool_result";
|
|
1062
|
+
thinking: "thinking";
|
|
781
1063
|
task_result: "task_result";
|
|
782
1064
|
runtime_status: "runtime_status";
|
|
783
1065
|
runtime_output: "runtime_output";
|
|
@@ -874,6 +1156,11 @@ export declare const BootstrapReadyMessageSchema: z.ZodObject<{
|
|
|
874
1156
|
type: z.ZodLiteral<"bootstrap_ready">;
|
|
875
1157
|
}, z.core.$strip>;
|
|
876
1158
|
export type BootstrapReadyMessage = z.infer<typeof BootstrapReadyMessageSchema>;
|
|
1159
|
+
export declare const ObserverSubscribeMessageSchema: z.ZodObject<{
|
|
1160
|
+
type: z.ZodLiteral<"subscribe">;
|
|
1161
|
+
patterns: z.ZodArray<z.ZodString>;
|
|
1162
|
+
}, z.core.$strip>;
|
|
1163
|
+
export type ObserverSubscribeMessage = z.infer<typeof ObserverSubscribeMessageSchema>;
|
|
877
1164
|
export declare const SessionEntryMessageSchema: z.ZodObject<{
|
|
878
1165
|
type: z.ZodLiteral<"session_entry">;
|
|
879
1166
|
path: z.ZodString;
|
|
@@ -890,8 +1177,8 @@ export declare const SessionParticipantSchema: z.ZodObject<{
|
|
|
890
1177
|
id: z.ZodString;
|
|
891
1178
|
role: z.ZodEnum<{
|
|
892
1179
|
lead: "lead";
|
|
893
|
-
controller: "controller";
|
|
894
1180
|
observer: "observer";
|
|
1181
|
+
controller: "controller";
|
|
895
1182
|
}>;
|
|
896
1183
|
transport: z.ZodEnum<{
|
|
897
1184
|
ws: "ws";
|
|
@@ -914,8 +1201,8 @@ export declare const PresenceEventMessageSchema: z.ZodObject<{
|
|
|
914
1201
|
id: z.ZodString;
|
|
915
1202
|
role: z.ZodEnum<{
|
|
916
1203
|
lead: "lead";
|
|
917
|
-
controller: "controller";
|
|
918
1204
|
observer: "observer";
|
|
1205
|
+
controller: "controller";
|
|
919
1206
|
}>;
|
|
920
1207
|
transport: z.ZodEnum<{
|
|
921
1208
|
ws: "ws";
|
|
@@ -930,8 +1217,8 @@ export declare const PresenceEventMessageSchema: z.ZodObject<{
|
|
|
930
1217
|
id: z.ZodString;
|
|
931
1218
|
role: z.ZodEnum<{
|
|
932
1219
|
lead: "lead";
|
|
933
|
-
controller: "controller";
|
|
934
1220
|
observer: "observer";
|
|
1221
|
+
controller: "controller";
|
|
935
1222
|
}>;
|
|
936
1223
|
transport: z.ZodEnum<{
|
|
937
1224
|
ws: "ws";
|
|
@@ -1048,6 +1335,9 @@ export declare const ClientMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1048
1335
|
content: z.ZodString;
|
|
1049
1336
|
}, z.core.$strip>, z.ZodObject<{
|
|
1050
1337
|
type: z.ZodLiteral<"bootstrap_ready">;
|
|
1338
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1339
|
+
type: z.ZodLiteral<"subscribe">;
|
|
1340
|
+
patterns: z.ZodArray<z.ZodString>;
|
|
1051
1341
|
}, z.core.$strip>, z.ZodObject<{
|
|
1052
1342
|
type: z.ZodLiteral<"rpc_command">;
|
|
1053
1343
|
command: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -1065,7 +1355,7 @@ export type ClientMessage = z.infer<typeof ClientMessageSchema>;
|
|
|
1065
1355
|
*
|
|
1066
1356
|
* Messages the Coder Hub server can send to connected clients.
|
|
1067
1357
|
*/
|
|
1068
|
-
export declare const ServerMessageSchema: z.
|
|
1358
|
+
export declare const ServerMessageSchema: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1069
1359
|
type: z.ZodLiteral<"init">;
|
|
1070
1360
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
1071
1361
|
resume: z.ZodOptional<z.ZodObject<{
|
|
@@ -1089,6 +1379,10 @@ export declare const ServerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodDiscrimi
|
|
|
1089
1379
|
agents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1090
1380
|
name: z.ZodString;
|
|
1091
1381
|
displayName: z.ZodOptional<z.ZodString>;
|
|
1382
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
1383
|
+
custom: "custom";
|
|
1384
|
+
builtin: "builtin";
|
|
1385
|
+
}>>;
|
|
1092
1386
|
description: z.ZodString;
|
|
1093
1387
|
systemPrompt: z.ZodString;
|
|
1094
1388
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -1106,6 +1400,7 @@ export declare const ServerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodDiscrimi
|
|
|
1106
1400
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
1107
1401
|
}, z.core.$strip>>>;
|
|
1108
1402
|
capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1403
|
+
strictToolSelection: z.ZodOptional<z.ZodBoolean>;
|
|
1109
1404
|
status: z.ZodOptional<z.ZodEnum<{
|
|
1110
1405
|
available: "available";
|
|
1111
1406
|
busy: "busy";
|
|
@@ -1148,6 +1443,10 @@ export declare const ServerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodDiscrimi
|
|
|
1148
1443
|
agents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1149
1444
|
name: z.ZodString;
|
|
1150
1445
|
displayName: z.ZodOptional<z.ZodString>;
|
|
1446
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
1447
|
+
custom: "custom";
|
|
1448
|
+
builtin: "builtin";
|
|
1449
|
+
}>>;
|
|
1151
1450
|
description: z.ZodString;
|
|
1152
1451
|
systemPrompt: z.ZodString;
|
|
1153
1452
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -1165,6 +1464,7 @@ export declare const ServerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodDiscrimi
|
|
|
1165
1464
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
1166
1465
|
}, z.core.$strip>>>;
|
|
1167
1466
|
capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1467
|
+
strictToolSelection: z.ZodOptional<z.ZodBoolean>;
|
|
1168
1468
|
status: z.ZodOptional<z.ZodEnum<{
|
|
1169
1469
|
available: "available";
|
|
1170
1470
|
busy: "busy";
|
|
@@ -1207,6 +1507,74 @@ export declare const ServerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodDiscrimi
|
|
|
1207
1507
|
agents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1208
1508
|
name: z.ZodString;
|
|
1209
1509
|
displayName: z.ZodOptional<z.ZodString>;
|
|
1510
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
1511
|
+
custom: "custom";
|
|
1512
|
+
builtin: "builtin";
|
|
1513
|
+
}>>;
|
|
1514
|
+
description: z.ZodString;
|
|
1515
|
+
systemPrompt: z.ZodString;
|
|
1516
|
+
model: z.ZodOptional<z.ZodString>;
|
|
1517
|
+
tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1518
|
+
temperature: z.ZodOptional<z.ZodNumber>;
|
|
1519
|
+
thinkingLevel: z.ZodOptional<z.ZodString>;
|
|
1520
|
+
readOnly: z.ZodOptional<z.ZodBoolean>;
|
|
1521
|
+
hubTools: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1522
|
+
name: z.ZodString;
|
|
1523
|
+
label: z.ZodString;
|
|
1524
|
+
description: z.ZodString;
|
|
1525
|
+
parameters: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1526
|
+
promptSnippet: z.ZodOptional<z.ZodString>;
|
|
1527
|
+
promptGuidelines: z.ZodOptional<z.ZodString>;
|
|
1528
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
1529
|
+
}, z.core.$strip>>>;
|
|
1530
|
+
capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1531
|
+
strictToolSelection: z.ZodOptional<z.ZodBoolean>;
|
|
1532
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
1533
|
+
available: "available";
|
|
1534
|
+
busy: "busy";
|
|
1535
|
+
offline: "offline";
|
|
1536
|
+
}>>;
|
|
1537
|
+
}, z.core.$strip>>>;
|
|
1538
|
+
config: z.ZodOptional<z.ZodObject<{
|
|
1539
|
+
systemPromptPrefix: z.ZodOptional<z.ZodString>;
|
|
1540
|
+
systemPromptSuffix: z.ZodOptional<z.ZodString>;
|
|
1541
|
+
}, z.core.$strip>>;
|
|
1542
|
+
model: z.ZodOptional<z.ZodObject<{
|
|
1543
|
+
provider: z.ZodString;
|
|
1544
|
+
id: z.ZodString;
|
|
1545
|
+
}, z.core.$strip>>;
|
|
1546
|
+
thinkingLevel: z.ZodOptional<z.ZodString>;
|
|
1547
|
+
task: z.ZodOptional<z.ZodString>;
|
|
1548
|
+
agentRole: z.ZodOptional<z.ZodString>;
|
|
1549
|
+
role: z.ZodLiteral<"observer">;
|
|
1550
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1551
|
+
type: z.ZodLiteral<"init">;
|
|
1552
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
1553
|
+
resume: z.ZodOptional<z.ZodObject<{
|
|
1554
|
+
sessionFile: z.ZodString;
|
|
1555
|
+
piSessionId: z.ZodOptional<z.ZodString>;
|
|
1556
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
1557
|
+
}, z.core.$strip>>;
|
|
1558
|
+
tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1559
|
+
name: z.ZodString;
|
|
1560
|
+
label: z.ZodString;
|
|
1561
|
+
description: z.ZodString;
|
|
1562
|
+
parameters: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1563
|
+
promptSnippet: z.ZodOptional<z.ZodString>;
|
|
1564
|
+
promptGuidelines: z.ZodOptional<z.ZodString>;
|
|
1565
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
1566
|
+
}, z.core.$strip>>>;
|
|
1567
|
+
commands: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1568
|
+
name: z.ZodString;
|
|
1569
|
+
description: z.ZodString;
|
|
1570
|
+
}, z.core.$strip>>>;
|
|
1571
|
+
agents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1572
|
+
name: z.ZodString;
|
|
1573
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
1574
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
1575
|
+
custom: "custom";
|
|
1576
|
+
builtin: "builtin";
|
|
1577
|
+
}>>;
|
|
1210
1578
|
description: z.ZodString;
|
|
1211
1579
|
systemPrompt: z.ZodString;
|
|
1212
1580
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -1224,6 +1592,7 @@ export declare const ServerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodDiscrimi
|
|
|
1224
1592
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
1225
1593
|
}, z.core.$strip>>>;
|
|
1226
1594
|
capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1595
|
+
strictToolSelection: z.ZodOptional<z.ZodBoolean>;
|
|
1227
1596
|
status: z.ZodOptional<z.ZodEnum<{
|
|
1228
1597
|
available: "available";
|
|
1229
1598
|
busy: "busy";
|
|
@@ -1295,9 +1664,9 @@ export declare const ServerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodDiscrimi
|
|
|
1295
1664
|
entries: z.ZodArray<z.ZodObject<{
|
|
1296
1665
|
type: z.ZodEnum<{
|
|
1297
1666
|
message: "message";
|
|
1298
|
-
thinking: "thinking";
|
|
1299
1667
|
tool_call: "tool_call";
|
|
1300
1668
|
tool_result: "tool_result";
|
|
1669
|
+
thinking: "thinking";
|
|
1301
1670
|
task_result: "task_result";
|
|
1302
1671
|
runtime_status: "runtime_status";
|
|
1303
1672
|
runtime_output: "runtime_output";
|
|
@@ -1426,8 +1795,8 @@ export declare const ServerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodDiscrimi
|
|
|
1426
1795
|
id: z.ZodString;
|
|
1427
1796
|
role: z.ZodEnum<{
|
|
1428
1797
|
lead: "lead";
|
|
1429
|
-
controller: "controller";
|
|
1430
1798
|
observer: "observer";
|
|
1799
|
+
controller: "controller";
|
|
1431
1800
|
}>;
|
|
1432
1801
|
transport: z.ZodEnum<{
|
|
1433
1802
|
ws: "ws";
|
|
@@ -1442,8 +1811,8 @@ export declare const ServerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodDiscrimi
|
|
|
1442
1811
|
id: z.ZodString;
|
|
1443
1812
|
role: z.ZodEnum<{
|
|
1444
1813
|
lead: "lead";
|
|
1445
|
-
controller: "controller";
|
|
1446
1814
|
observer: "observer";
|
|
1815
|
+
controller: "controller";
|
|
1447
1816
|
}>;
|
|
1448
1817
|
transport: z.ZodEnum<{
|
|
1449
1818
|
ws: "ws";
|
|
@@ -1475,7 +1844,7 @@ export declare const ServerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodDiscrimi
|
|
|
1475
1844
|
id: z.ZodString;
|
|
1476
1845
|
method: z.ZodString;
|
|
1477
1846
|
params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1478
|
-
}, z.core.$strip>]
|
|
1847
|
+
}, z.core.$strip>]>;
|
|
1479
1848
|
export type ServerMessage = z.infer<typeof ServerMessageSchema>;
|
|
1480
1849
|
/**
|
|
1481
1850
|
* Initial session snapshot sent via SSE after connection.
|
|
@@ -1525,9 +1894,9 @@ export declare const SseHydrationMessageSchema: z.ZodObject<{
|
|
|
1525
1894
|
entries: z.ZodArray<z.ZodObject<{
|
|
1526
1895
|
type: z.ZodEnum<{
|
|
1527
1896
|
message: "message";
|
|
1528
|
-
thinking: "thinking";
|
|
1529
1897
|
tool_call: "tool_call";
|
|
1530
1898
|
tool_result: "tool_result";
|
|
1899
|
+
thinking: "thinking";
|
|
1531
1900
|
task_result: "task_result";
|
|
1532
1901
|
runtime_status: "runtime_status";
|
|
1533
1902
|
runtime_output: "runtime_output";
|
|
@@ -1659,9 +2028,9 @@ export declare const ObserverSseMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
1659
2028
|
entries: z.ZodArray<z.ZodObject<{
|
|
1660
2029
|
type: z.ZodEnum<{
|
|
1661
2030
|
message: "message";
|
|
1662
|
-
thinking: "thinking";
|
|
1663
2031
|
tool_call: "tool_call";
|
|
1664
2032
|
tool_result: "tool_result";
|
|
2033
|
+
thinking: "thinking";
|
|
1665
2034
|
task_result: "task_result";
|
|
1666
2035
|
runtime_status: "runtime_status";
|
|
1667
2036
|
runtime_output: "runtime_output";
|
|
@@ -1755,8 +2124,8 @@ export declare const ObserverSseMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
1755
2124
|
id: z.ZodString;
|
|
1756
2125
|
role: z.ZodEnum<{
|
|
1757
2126
|
lead: "lead";
|
|
1758
|
-
controller: "controller";
|
|
1759
2127
|
observer: "observer";
|
|
2128
|
+
controller: "controller";
|
|
1760
2129
|
}>;
|
|
1761
2130
|
transport: z.ZodEnum<{
|
|
1762
2131
|
ws: "ws";
|
|
@@ -1771,8 +2140,8 @@ export declare const ObserverSseMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
1771
2140
|
id: z.ZodString;
|
|
1772
2141
|
role: z.ZodEnum<{
|
|
1773
2142
|
lead: "lead";
|
|
1774
|
-
controller: "controller";
|
|
1775
2143
|
observer: "observer";
|
|
2144
|
+
controller: "controller";
|
|
1776
2145
|
}>;
|
|
1777
2146
|
transport: z.ZodEnum<{
|
|
1778
2147
|
ws: "ws";
|
|
@@ -1810,9 +2179,10 @@ export declare const ConnectionParamsSchema: z.ZodObject<{
|
|
|
1810
2179
|
}>>;
|
|
1811
2180
|
role: z.ZodOptional<z.ZodEnum<{
|
|
1812
2181
|
lead: "lead";
|
|
1813
|
-
controller: "controller";
|
|
1814
2182
|
observer: "observer";
|
|
2183
|
+
controller: "controller";
|
|
1815
2184
|
}>>;
|
|
2185
|
+
subscribe: z.ZodOptional<z.ZodString>;
|
|
1816
2186
|
coordJobId: z.ZodOptional<z.ZodString>;
|
|
1817
2187
|
coordRole: z.ZodOptional<z.ZodString>;
|
|
1818
2188
|
driverMode: z.ZodOptional<z.ZodEnum<{
|