@agentuity/core 3.0.0-alpha.6 → 3.0.0-beta.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/AGENTS.md +0 -1
- package/dist/index.d.ts +0 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -3
- package/dist/index.js.map +1 -1
- package/dist/services/coder/api-reference.d.ts.map +1 -1
- package/dist/services/coder/api-reference.js +30 -1
- 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 +186 -5
- package/dist/services/coder/protocol.d.ts.map +1 -1
- package/dist/services/coder/protocol.js +125 -0
- package/dist/services/coder/protocol.js.map +1 -1
- package/dist/services/coder/sessions.d.ts +22 -0
- 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 +627 -0
- package/dist/services/coder/types.d.ts.map +1 -1
- package/dist/services/coder/types.js +221 -1
- package/dist/services/coder/types.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/index.d.ts +0 -2
- package/dist/services/index.d.ts.map +1 -1
- package/dist/services/index.js +0 -2
- package/dist/services/index.js.map +1 -1
- package/dist/services/keyvalue/service.d.ts +9 -3
- package/dist/services/keyvalue/service.d.ts.map +1 -1
- package/dist/services/keyvalue/service.js +6 -3
- package/dist/services/keyvalue/service.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 +3 -0
- package/dist/services/sandbox/getStatus.d.ts.map +1 -1
- package/dist/services/sandbox/getStatus.js +19 -2
- 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 +244 -84
- 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/dist/services/vector/service.d.ts +11 -11
- package/dist/services/vector/service.d.ts.map +1 -1
- package/dist/services/vector/service.js.map +1 -1
- package/package.json +3 -17
- package/src/index.ts +0 -15
- package/src/services/coder/api-reference.ts +31 -0
- package/src/services/coder/client.ts +46 -0
- package/src/services/coder/index.ts +3 -0
- package/src/services/coder/protocol.ts +133 -0
- package/src/services/coder/sessions.ts +26 -0
- package/src/services/coder/sse.ts +343 -184
- package/src/services/coder/types.ts +273 -1
- package/src/services/coder/workspaces.ts +74 -0
- package/src/services/index.ts +0 -2
- package/src/services/keyvalue/service.ts +16 -7
- 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 +23 -2
- 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 +352 -105
- package/src/services/sandbox/types.ts +17 -2
- package/src/services/stream/namespaces.ts +2 -2
- package/src/services/vector/service.ts +11 -21
- package/dist/services/auth/index.d.ts +0 -7
- package/dist/services/auth/index.d.ts.map +0 -1
- package/dist/services/auth/index.js +0 -7
- package/dist/services/auth/index.js.map +0 -1
- package/dist/services/auth/types.d.ts +0 -192
- package/dist/services/auth/types.d.ts.map +0 -1
- package/dist/services/auth/types.js +0 -11
- package/dist/services/auth/types.js.map +0 -1
- package/dist/services/eval/api-reference.d.ts +0 -4
- package/dist/services/eval/api-reference.d.ts.map +0 -1
- package/dist/services/eval/api-reference.js +0 -121
- package/dist/services/eval/api-reference.js.map +0 -1
- package/dist/services/eval/events.d.ts +0 -93
- package/dist/services/eval/events.d.ts.map +0 -1
- package/dist/services/eval/events.js +0 -24
- package/dist/services/eval/events.js.map +0 -1
- package/dist/services/eval/get.d.ts +0 -36
- package/dist/services/eval/get.d.ts.map +0 -1
- package/dist/services/eval/get.js +0 -23
- package/dist/services/eval/get.js.map +0 -1
- package/dist/services/eval/index.d.ts +0 -6
- package/dist/services/eval/index.d.ts.map +0 -1
- package/dist/services/eval/index.js +0 -6
- package/dist/services/eval/index.js.map +0 -1
- package/dist/services/eval/list.d.ts +0 -50
- package/dist/services/eval/list.d.ts.map +0 -1
- package/dist/services/eval/list.js +0 -32
- package/dist/services/eval/list.js.map +0 -1
- package/dist/services/eval/run-get.d.ts +0 -48
- package/dist/services/eval/run-get.d.ts.map +0 -1
- package/dist/services/eval/run-get.js +0 -29
- package/dist/services/eval/run-get.js.map +0 -1
- package/dist/services/eval/run-list.d.ts +0 -70
- package/dist/services/eval/run-list.d.ts.map +0 -1
- package/dist/services/eval/run-list.js +0 -42
- package/dist/services/eval/run-list.js.map +0 -1
- package/dist/webrtc.d.ts +0 -243
- package/dist/webrtc.d.ts.map +0 -1
- package/dist/webrtc.js +0 -5
- package/dist/webrtc.js.map +0 -1
- package/dist/workbench-config.d.ts +0 -62
- package/dist/workbench-config.d.ts.map +0 -1
- package/dist/workbench-config.js +0 -58
- package/dist/workbench-config.js.map +0 -1
- package/dist/workbench.d.ts +0 -2
- package/dist/workbench.d.ts.map +0 -1
- package/dist/workbench.js +0 -2
- package/dist/workbench.js.map +0 -1
- package/src/services/auth/index.ts +0 -19
- package/src/services/auth/types.ts +0 -223
- package/src/services/eval/api-reference.ts +0 -124
- package/src/services/eval/events.ts +0 -92
- package/src/services/eval/get.ts +0 -33
- package/src/services/eval/index.ts +0 -29
- package/src/services/eval/list.ts +0 -49
- package/src/services/eval/run-get.ts +0 -39
- package/src/services/eval/run-list.ts +0 -59
- package/src/webrtc.ts +0 -259
- package/src/workbench-config.ts +0 -79
- package/src/workbench.ts +0 -1
|
@@ -26,6 +26,122 @@ export declare const CoderHubInitRoleSchema: z.ZodEnum<{
|
|
|
26
26
|
controller: "controller";
|
|
27
27
|
}>;
|
|
28
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
|
+
};
|
|
29
145
|
/** Tool definition provided by the server to clients */
|
|
30
146
|
export declare const CoderHubToolDefinitionSchema: z.ZodObject<{
|
|
31
147
|
name: z.ZodString;
|
|
@@ -45,6 +161,10 @@ export type CoderHubCommandDefinition = z.infer<typeof CoderHubCommandDefinition
|
|
|
45
161
|
export declare const AgentDefinitionSchema: z.ZodObject<{
|
|
46
162
|
name: z.ZodString;
|
|
47
163
|
displayName: z.ZodOptional<z.ZodString>;
|
|
164
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
165
|
+
custom: "custom";
|
|
166
|
+
builtin: "builtin";
|
|
167
|
+
}>>;
|
|
48
168
|
description: z.ZodString;
|
|
49
169
|
systemPrompt: z.ZodString;
|
|
50
170
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -62,6 +182,7 @@ export declare const AgentDefinitionSchema: z.ZodObject<{
|
|
|
62
182
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
63
183
|
}, z.core.$strip>>>;
|
|
64
184
|
capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
185
|
+
strictToolSelection: z.ZodOptional<z.ZodBoolean>;
|
|
65
186
|
status: z.ZodOptional<z.ZodEnum<{
|
|
66
187
|
available: "available";
|
|
67
188
|
busy: "busy";
|
|
@@ -104,6 +225,10 @@ export declare const CoderHubLeadInitMessageSchema: z.ZodObject<{
|
|
|
104
225
|
agents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
105
226
|
name: z.ZodString;
|
|
106
227
|
displayName: z.ZodOptional<z.ZodString>;
|
|
228
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
229
|
+
custom: "custom";
|
|
230
|
+
builtin: "builtin";
|
|
231
|
+
}>>;
|
|
107
232
|
description: z.ZodString;
|
|
108
233
|
systemPrompt: z.ZodString;
|
|
109
234
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -121,6 +246,7 @@ export declare const CoderHubLeadInitMessageSchema: z.ZodObject<{
|
|
|
121
246
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
122
247
|
}, z.core.$strip>>>;
|
|
123
248
|
capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
249
|
+
strictToolSelection: z.ZodOptional<z.ZodBoolean>;
|
|
124
250
|
status: z.ZodOptional<z.ZodEnum<{
|
|
125
251
|
available: "available";
|
|
126
252
|
busy: "busy";
|
|
@@ -165,6 +291,10 @@ export declare const CoderHubSubAgentInitMessageSchema: z.ZodObject<{
|
|
|
165
291
|
agents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
166
292
|
name: z.ZodString;
|
|
167
293
|
displayName: z.ZodOptional<z.ZodString>;
|
|
294
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
295
|
+
custom: "custom";
|
|
296
|
+
builtin: "builtin";
|
|
297
|
+
}>>;
|
|
168
298
|
description: z.ZodString;
|
|
169
299
|
systemPrompt: z.ZodString;
|
|
170
300
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -182,6 +312,7 @@ export declare const CoderHubSubAgentInitMessageSchema: z.ZodObject<{
|
|
|
182
312
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
183
313
|
}, z.core.$strip>>>;
|
|
184
314
|
capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
315
|
+
strictToolSelection: z.ZodOptional<z.ZodBoolean>;
|
|
185
316
|
status: z.ZodOptional<z.ZodEnum<{
|
|
186
317
|
available: "available";
|
|
187
318
|
busy: "busy";
|
|
@@ -226,6 +357,10 @@ export declare const CoderHubControllerInitMessageSchema: z.ZodObject<{
|
|
|
226
357
|
agents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
227
358
|
name: z.ZodString;
|
|
228
359
|
displayName: z.ZodOptional<z.ZodString>;
|
|
360
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
361
|
+
custom: "custom";
|
|
362
|
+
builtin: "builtin";
|
|
363
|
+
}>>;
|
|
229
364
|
description: z.ZodString;
|
|
230
365
|
systemPrompt: z.ZodString;
|
|
231
366
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -243,6 +378,7 @@ export declare const CoderHubControllerInitMessageSchema: z.ZodObject<{
|
|
|
243
378
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
244
379
|
}, z.core.$strip>>>;
|
|
245
380
|
capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
381
|
+
strictToolSelection: z.ZodOptional<z.ZodBoolean>;
|
|
246
382
|
status: z.ZodOptional<z.ZodEnum<{
|
|
247
383
|
available: "available";
|
|
248
384
|
busy: "busy";
|
|
@@ -287,6 +423,10 @@ export declare const CoderHubObserverInitMessageSchema: z.ZodObject<{
|
|
|
287
423
|
agents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
288
424
|
name: z.ZodString;
|
|
289
425
|
displayName: z.ZodOptional<z.ZodString>;
|
|
426
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
427
|
+
custom: "custom";
|
|
428
|
+
builtin: "builtin";
|
|
429
|
+
}>>;
|
|
290
430
|
description: z.ZodString;
|
|
291
431
|
systemPrompt: z.ZodString;
|
|
292
432
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -304,6 +444,7 @@ export declare const CoderHubObserverInitMessageSchema: z.ZodObject<{
|
|
|
304
444
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
305
445
|
}, z.core.$strip>>>;
|
|
306
446
|
capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
447
|
+
strictToolSelection: z.ZodOptional<z.ZodBoolean>;
|
|
307
448
|
status: z.ZodOptional<z.ZodEnum<{
|
|
308
449
|
available: "available";
|
|
309
450
|
busy: "busy";
|
|
@@ -348,6 +489,10 @@ export declare const CoderHubInitMessageSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
348
489
|
agents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
349
490
|
name: z.ZodString;
|
|
350
491
|
displayName: z.ZodOptional<z.ZodString>;
|
|
492
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
493
|
+
custom: "custom";
|
|
494
|
+
builtin: "builtin";
|
|
495
|
+
}>>;
|
|
351
496
|
description: z.ZodString;
|
|
352
497
|
systemPrompt: z.ZodString;
|
|
353
498
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -365,6 +510,7 @@ export declare const CoderHubInitMessageSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
365
510
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
366
511
|
}, z.core.$strip>>>;
|
|
367
512
|
capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
513
|
+
strictToolSelection: z.ZodOptional<z.ZodBoolean>;
|
|
368
514
|
status: z.ZodOptional<z.ZodEnum<{
|
|
369
515
|
available: "available";
|
|
370
516
|
busy: "busy";
|
|
@@ -407,6 +553,10 @@ export declare const CoderHubInitMessageSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
407
553
|
agents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
408
554
|
name: z.ZodString;
|
|
409
555
|
displayName: z.ZodOptional<z.ZodString>;
|
|
556
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
557
|
+
custom: "custom";
|
|
558
|
+
builtin: "builtin";
|
|
559
|
+
}>>;
|
|
410
560
|
description: z.ZodString;
|
|
411
561
|
systemPrompt: z.ZodString;
|
|
412
562
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -424,6 +574,7 @@ export declare const CoderHubInitMessageSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
424
574
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
425
575
|
}, z.core.$strip>>>;
|
|
426
576
|
capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
577
|
+
strictToolSelection: z.ZodOptional<z.ZodBoolean>;
|
|
427
578
|
status: z.ZodOptional<z.ZodEnum<{
|
|
428
579
|
available: "available";
|
|
429
580
|
busy: "busy";
|
|
@@ -466,6 +617,10 @@ export declare const CoderHubInitMessageSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
466
617
|
agents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
467
618
|
name: z.ZodString;
|
|
468
619
|
displayName: z.ZodOptional<z.ZodString>;
|
|
620
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
621
|
+
custom: "custom";
|
|
622
|
+
builtin: "builtin";
|
|
623
|
+
}>>;
|
|
469
624
|
description: z.ZodString;
|
|
470
625
|
systemPrompt: z.ZodString;
|
|
471
626
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -483,6 +638,7 @@ export declare const CoderHubInitMessageSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
483
638
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
484
639
|
}, z.core.$strip>>>;
|
|
485
640
|
capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
641
|
+
strictToolSelection: z.ZodOptional<z.ZodBoolean>;
|
|
486
642
|
status: z.ZodOptional<z.ZodEnum<{
|
|
487
643
|
available: "available";
|
|
488
644
|
busy: "busy";
|
|
@@ -525,6 +681,10 @@ export declare const CoderHubInitMessageSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
525
681
|
agents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
526
682
|
name: z.ZodString;
|
|
527
683
|
displayName: z.ZodOptional<z.ZodString>;
|
|
684
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
685
|
+
custom: "custom";
|
|
686
|
+
builtin: "builtin";
|
|
687
|
+
}>>;
|
|
528
688
|
description: z.ZodString;
|
|
529
689
|
systemPrompt: z.ZodString;
|
|
530
690
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -542,6 +702,7 @@ export declare const CoderHubInitMessageSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
542
702
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
543
703
|
}, z.core.$strip>>>;
|
|
544
704
|
capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
705
|
+
strictToolSelection: z.ZodOptional<z.ZodBoolean>;
|
|
545
706
|
status: z.ZodOptional<z.ZodEnum<{
|
|
546
707
|
available: "available";
|
|
547
708
|
busy: "busy";
|
|
@@ -786,9 +947,9 @@ export type PromptAttachmentDescriptor = z.infer<typeof PromptAttachmentDescript
|
|
|
786
947
|
export declare const ConversationEntrySchema: z.ZodObject<{
|
|
787
948
|
type: z.ZodEnum<{
|
|
788
949
|
message: "message";
|
|
789
|
-
thinking: "thinking";
|
|
790
950
|
tool_call: "tool_call";
|
|
791
951
|
tool_result: "tool_result";
|
|
952
|
+
thinking: "thinking";
|
|
792
953
|
task_result: "task_result";
|
|
793
954
|
runtime_status: "runtime_status";
|
|
794
955
|
runtime_output: "runtime_output";
|
|
@@ -896,9 +1057,9 @@ export declare const CoderHubHydrationMessageSchema: z.ZodObject<{
|
|
|
896
1057
|
entries: z.ZodArray<z.ZodObject<{
|
|
897
1058
|
type: z.ZodEnum<{
|
|
898
1059
|
message: "message";
|
|
899
|
-
thinking: "thinking";
|
|
900
1060
|
tool_call: "tool_call";
|
|
901
1061
|
tool_result: "tool_result";
|
|
1062
|
+
thinking: "thinking";
|
|
902
1063
|
task_result: "task_result";
|
|
903
1064
|
runtime_status: "runtime_status";
|
|
904
1065
|
runtime_output: "runtime_output";
|
|
@@ -1218,6 +1379,10 @@ export declare const ServerMessageSchema: z.ZodUnion<readonly [z.ZodDiscriminate
|
|
|
1218
1379
|
agents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1219
1380
|
name: z.ZodString;
|
|
1220
1381
|
displayName: z.ZodOptional<z.ZodString>;
|
|
1382
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
1383
|
+
custom: "custom";
|
|
1384
|
+
builtin: "builtin";
|
|
1385
|
+
}>>;
|
|
1221
1386
|
description: z.ZodString;
|
|
1222
1387
|
systemPrompt: z.ZodString;
|
|
1223
1388
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -1235,6 +1400,7 @@ export declare const ServerMessageSchema: z.ZodUnion<readonly [z.ZodDiscriminate
|
|
|
1235
1400
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
1236
1401
|
}, z.core.$strip>>>;
|
|
1237
1402
|
capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1403
|
+
strictToolSelection: z.ZodOptional<z.ZodBoolean>;
|
|
1238
1404
|
status: z.ZodOptional<z.ZodEnum<{
|
|
1239
1405
|
available: "available";
|
|
1240
1406
|
busy: "busy";
|
|
@@ -1277,6 +1443,10 @@ export declare const ServerMessageSchema: z.ZodUnion<readonly [z.ZodDiscriminate
|
|
|
1277
1443
|
agents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1278
1444
|
name: z.ZodString;
|
|
1279
1445
|
displayName: z.ZodOptional<z.ZodString>;
|
|
1446
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
1447
|
+
custom: "custom";
|
|
1448
|
+
builtin: "builtin";
|
|
1449
|
+
}>>;
|
|
1280
1450
|
description: z.ZodString;
|
|
1281
1451
|
systemPrompt: z.ZodString;
|
|
1282
1452
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -1294,6 +1464,7 @@ export declare const ServerMessageSchema: z.ZodUnion<readonly [z.ZodDiscriminate
|
|
|
1294
1464
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
1295
1465
|
}, z.core.$strip>>>;
|
|
1296
1466
|
capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1467
|
+
strictToolSelection: z.ZodOptional<z.ZodBoolean>;
|
|
1297
1468
|
status: z.ZodOptional<z.ZodEnum<{
|
|
1298
1469
|
available: "available";
|
|
1299
1470
|
busy: "busy";
|
|
@@ -1336,6 +1507,10 @@ export declare const ServerMessageSchema: z.ZodUnion<readonly [z.ZodDiscriminate
|
|
|
1336
1507
|
agents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1337
1508
|
name: z.ZodString;
|
|
1338
1509
|
displayName: z.ZodOptional<z.ZodString>;
|
|
1510
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
1511
|
+
custom: "custom";
|
|
1512
|
+
builtin: "builtin";
|
|
1513
|
+
}>>;
|
|
1339
1514
|
description: z.ZodString;
|
|
1340
1515
|
systemPrompt: z.ZodString;
|
|
1341
1516
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -1353,6 +1528,7 @@ export declare const ServerMessageSchema: z.ZodUnion<readonly [z.ZodDiscriminate
|
|
|
1353
1528
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
1354
1529
|
}, z.core.$strip>>>;
|
|
1355
1530
|
capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1531
|
+
strictToolSelection: z.ZodOptional<z.ZodBoolean>;
|
|
1356
1532
|
status: z.ZodOptional<z.ZodEnum<{
|
|
1357
1533
|
available: "available";
|
|
1358
1534
|
busy: "busy";
|
|
@@ -1395,6 +1571,10 @@ export declare const ServerMessageSchema: z.ZodUnion<readonly [z.ZodDiscriminate
|
|
|
1395
1571
|
agents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1396
1572
|
name: z.ZodString;
|
|
1397
1573
|
displayName: z.ZodOptional<z.ZodString>;
|
|
1574
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
1575
|
+
custom: "custom";
|
|
1576
|
+
builtin: "builtin";
|
|
1577
|
+
}>>;
|
|
1398
1578
|
description: z.ZodString;
|
|
1399
1579
|
systemPrompt: z.ZodString;
|
|
1400
1580
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -1412,6 +1592,7 @@ export declare const ServerMessageSchema: z.ZodUnion<readonly [z.ZodDiscriminate
|
|
|
1412
1592
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
1413
1593
|
}, z.core.$strip>>>;
|
|
1414
1594
|
capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1595
|
+
strictToolSelection: z.ZodOptional<z.ZodBoolean>;
|
|
1415
1596
|
status: z.ZodOptional<z.ZodEnum<{
|
|
1416
1597
|
available: "available";
|
|
1417
1598
|
busy: "busy";
|
|
@@ -1483,9 +1664,9 @@ export declare const ServerMessageSchema: z.ZodUnion<readonly [z.ZodDiscriminate
|
|
|
1483
1664
|
entries: z.ZodArray<z.ZodObject<{
|
|
1484
1665
|
type: z.ZodEnum<{
|
|
1485
1666
|
message: "message";
|
|
1486
|
-
thinking: "thinking";
|
|
1487
1667
|
tool_call: "tool_call";
|
|
1488
1668
|
tool_result: "tool_result";
|
|
1669
|
+
thinking: "thinking";
|
|
1489
1670
|
task_result: "task_result";
|
|
1490
1671
|
runtime_status: "runtime_status";
|
|
1491
1672
|
runtime_output: "runtime_output";
|
|
@@ -1713,9 +1894,9 @@ export declare const SseHydrationMessageSchema: z.ZodObject<{
|
|
|
1713
1894
|
entries: z.ZodArray<z.ZodObject<{
|
|
1714
1895
|
type: z.ZodEnum<{
|
|
1715
1896
|
message: "message";
|
|
1716
|
-
thinking: "thinking";
|
|
1717
1897
|
tool_call: "tool_call";
|
|
1718
1898
|
tool_result: "tool_result";
|
|
1899
|
+
thinking: "thinking";
|
|
1719
1900
|
task_result: "task_result";
|
|
1720
1901
|
runtime_status: "runtime_status";
|
|
1721
1902
|
runtime_output: "runtime_output";
|
|
@@ -1847,9 +2028,9 @@ export declare const ObserverSseMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
1847
2028
|
entries: z.ZodArray<z.ZodObject<{
|
|
1848
2029
|
type: z.ZodEnum<{
|
|
1849
2030
|
message: "message";
|
|
1850
|
-
thinking: "thinking";
|
|
1851
2031
|
tool_call: "tool_call";
|
|
1852
2032
|
tool_result: "tool_result";
|
|
2033
|
+
thinking: "thinking";
|
|
1853
2034
|
task_result: "task_result";
|
|
1854
2035
|
runtime_status: "runtime_status";
|
|
1855
2036
|
runtime_output: "runtime_output";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"protocol.d.ts","sourceRoot":"","sources":["../../../src/services/coder/protocol.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B,iEAAiE;AACjE,eAAO,MAAM,sBAAsB;;;;;EAIjC,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,wDAAwD;AACxD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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BASnC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA0DjC,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,OAAO,GAAG,aAAa,GAAG,IAAI,CAGtE;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,OAAO,GAAG,aAAa,GAAG,IAAI,CAGtE;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,OAAO,GAAG,kBAAkB,GAAG,IAAI,CAGhF"}
|
|
@@ -22,6 +22,123 @@ import { z } from 'zod/v4';
|
|
|
22
22
|
export const CoderHubInitRoleSchema = z
|
|
23
23
|
.enum(['lead', 'sub_agent', 'observer', 'controller'])
|
|
24
24
|
.describe('Role assigned to a connecting client, determining its permissions and message routing.');
|
|
25
|
+
export const CoderHubEventNames = [
|
|
26
|
+
'session_start',
|
|
27
|
+
'session_complete',
|
|
28
|
+
'session_error',
|
|
29
|
+
'session_shutdown',
|
|
30
|
+
'session_before_compact',
|
|
31
|
+
'session_compact',
|
|
32
|
+
'rpc_ready',
|
|
33
|
+
'agent_start',
|
|
34
|
+
'agent_end',
|
|
35
|
+
'agent_progress',
|
|
36
|
+
'before_agent_start',
|
|
37
|
+
'turn_start',
|
|
38
|
+
'turn_end',
|
|
39
|
+
'tool_call',
|
|
40
|
+
'tool_result',
|
|
41
|
+
'tool_execution_start',
|
|
42
|
+
'tool_execution_end',
|
|
43
|
+
'tool_execution_update',
|
|
44
|
+
'runtime_process_start',
|
|
45
|
+
'runtime_process_output',
|
|
46
|
+
'runtime_process_error',
|
|
47
|
+
'runtime_process_stop',
|
|
48
|
+
'runtime_preview_available',
|
|
49
|
+
'task_start',
|
|
50
|
+
'task_complete',
|
|
51
|
+
'task_error',
|
|
52
|
+
'message_start',
|
|
53
|
+
'message_update',
|
|
54
|
+
'message_end',
|
|
55
|
+
'thinking_start',
|
|
56
|
+
'thinking_end',
|
|
57
|
+
'session_join',
|
|
58
|
+
'session_leave',
|
|
59
|
+
'session_label_updated',
|
|
60
|
+
'presence_update',
|
|
61
|
+
'loop_state_updated',
|
|
62
|
+
'loop_started',
|
|
63
|
+
'loop_resumed',
|
|
64
|
+
'loop_paused',
|
|
65
|
+
'loop_blocked',
|
|
66
|
+
'loop_completed',
|
|
67
|
+
'loop_cancelled',
|
|
68
|
+
'coord_job_created',
|
|
69
|
+
'coord_job_completed',
|
|
70
|
+
'coord_job_failed',
|
|
71
|
+
'coord_task_ready',
|
|
72
|
+
'coord_task_claimed',
|
|
73
|
+
'coord_task_completed',
|
|
74
|
+
'coord_task_failed',
|
|
75
|
+
'coord_task_discovered',
|
|
76
|
+
'coord_file_reserved',
|
|
77
|
+
'coord_file_released',
|
|
78
|
+
'coord_file_conflict',
|
|
79
|
+
'coord_contract_provided',
|
|
80
|
+
'coord_worker_joined',
|
|
81
|
+
];
|
|
82
|
+
export const CoderHubEventNameSchema = z
|
|
83
|
+
.enum(CoderHubEventNames)
|
|
84
|
+
.describe('Known Coder Hub lifecycle event names.');
|
|
85
|
+
export const CoderHubEvents = {
|
|
86
|
+
SESSION_START: 'session_start',
|
|
87
|
+
SESSION_COMPLETE: 'session_complete',
|
|
88
|
+
SESSION_ERROR: 'session_error',
|
|
89
|
+
SESSION_SHUTDOWN: 'session_shutdown',
|
|
90
|
+
SESSION_BEFORE_COMPACT: 'session_before_compact',
|
|
91
|
+
SESSION_COMPACT: 'session_compact',
|
|
92
|
+
RPC_READY: 'rpc_ready',
|
|
93
|
+
AGENT_START: 'agent_start',
|
|
94
|
+
AGENT_END: 'agent_end',
|
|
95
|
+
AGENT_PROGRESS: 'agent_progress',
|
|
96
|
+
BEFORE_AGENT_START: 'before_agent_start',
|
|
97
|
+
TURN_START: 'turn_start',
|
|
98
|
+
TURN_END: 'turn_end',
|
|
99
|
+
TOOL_CALL: 'tool_call',
|
|
100
|
+
TOOL_RESULT: 'tool_result',
|
|
101
|
+
TOOL_EXECUTION_START: 'tool_execution_start',
|
|
102
|
+
TOOL_EXECUTION_END: 'tool_execution_end',
|
|
103
|
+
TOOL_EXECUTION_UPDATE: 'tool_execution_update',
|
|
104
|
+
RUNTIME_PROCESS_START: 'runtime_process_start',
|
|
105
|
+
RUNTIME_PROCESS_OUTPUT: 'runtime_process_output',
|
|
106
|
+
RUNTIME_PROCESS_ERROR: 'runtime_process_error',
|
|
107
|
+
RUNTIME_PROCESS_STOP: 'runtime_process_stop',
|
|
108
|
+
RUNTIME_PREVIEW_AVAILABLE: 'runtime_preview_available',
|
|
109
|
+
TASK_START: 'task_start',
|
|
110
|
+
TASK_COMPLETE: 'task_complete',
|
|
111
|
+
TASK_ERROR: 'task_error',
|
|
112
|
+
MESSAGE_START: 'message_start',
|
|
113
|
+
MESSAGE_UPDATE: 'message_update',
|
|
114
|
+
MESSAGE_END: 'message_end',
|
|
115
|
+
THINKING_START: 'thinking_start',
|
|
116
|
+
THINKING_END: 'thinking_end',
|
|
117
|
+
SESSION_JOIN: 'session_join',
|
|
118
|
+
SESSION_LEAVE: 'session_leave',
|
|
119
|
+
SESSION_LABEL_UPDATED: 'session_label_updated',
|
|
120
|
+
PRESENCE_UPDATE: 'presence_update',
|
|
121
|
+
LOOP_STATE_UPDATED: 'loop_state_updated',
|
|
122
|
+
LOOP_STARTED: 'loop_started',
|
|
123
|
+
LOOP_RESUMED: 'loop_resumed',
|
|
124
|
+
LOOP_PAUSED: 'loop_paused',
|
|
125
|
+
LOOP_BLOCKED: 'loop_blocked',
|
|
126
|
+
LOOP_COMPLETED: 'loop_completed',
|
|
127
|
+
LOOP_CANCELLED: 'loop_cancelled',
|
|
128
|
+
COORD_JOB_CREATED: 'coord_job_created',
|
|
129
|
+
COORD_JOB_COMPLETED: 'coord_job_completed',
|
|
130
|
+
COORD_JOB_FAILED: 'coord_job_failed',
|
|
131
|
+
COORD_TASK_READY: 'coord_task_ready',
|
|
132
|
+
COORD_TASK_CLAIMED: 'coord_task_claimed',
|
|
133
|
+
COORD_TASK_COMPLETED: 'coord_task_completed',
|
|
134
|
+
COORD_TASK_FAILED: 'coord_task_failed',
|
|
135
|
+
COORD_TASK_DISCOVERED: 'coord_task_discovered',
|
|
136
|
+
COORD_FILE_RESERVED: 'coord_file_reserved',
|
|
137
|
+
COORD_FILE_RELEASED: 'coord_file_released',
|
|
138
|
+
COORD_FILE_CONFLICT: 'coord_file_conflict',
|
|
139
|
+
COORD_CONTRACT_PROVIDED: 'coord_contract_provided',
|
|
140
|
+
COORD_WORKER_JOINED: 'coord_worker_joined',
|
|
141
|
+
};
|
|
25
142
|
/** Tool definition provided by the server to clients */
|
|
26
143
|
export const CoderHubToolDefinitionSchema = z
|
|
27
144
|
.object({
|
|
@@ -58,6 +175,10 @@ export const AgentDefinitionSchema = z
|
|
|
58
175
|
.string()
|
|
59
176
|
.optional()
|
|
60
177
|
.describe('Human-friendly name shown in UIs; defaults to name if omitted.'),
|
|
178
|
+
source: z
|
|
179
|
+
.enum(['builtin', 'custom'])
|
|
180
|
+
.optional()
|
|
181
|
+
.describe('Whether this agent is part of the built-in roster or a custom user-defined agent.'),
|
|
61
182
|
description: z.string().describe('Summary of the agent role and capabilities.'),
|
|
62
183
|
systemPrompt: z
|
|
63
184
|
.string()
|
|
@@ -87,6 +208,10 @@ export const AgentDefinitionSchema = z
|
|
|
87
208
|
.array(z.string())
|
|
88
209
|
.optional()
|
|
89
210
|
.describe('Capability tags advertising what this agent can do (e.g. "code", "review").'),
|
|
211
|
+
strictToolSelection: z
|
|
212
|
+
.boolean()
|
|
213
|
+
.optional()
|
|
214
|
+
.describe('When true, unknown or unmatched tool names should not widen the effective Pi tool allowlist.'),
|
|
90
215
|
status: z
|
|
91
216
|
.enum(['available', 'busy', 'offline'])
|
|
92
217
|
.optional()
|