@adamancyzhang/claude-orchestrator 0.3.0 → 0.3.2
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 +203 -201
- package/dist/cli/commands.d.ts +6 -17
- package/dist/cli/commands.js +133 -172
- package/dist/cli/commands.js.map +1 -1
- package/dist/config.d.ts +28 -14
- package/dist/config.js +51 -20
- package/dist/config.js.map +1 -1
- package/dist/executor/runner.d.ts +19 -0
- package/dist/executor/runner.js +59 -0
- package/dist/executor/runner.js.map +1 -0
- package/dist/executor/template.d.ts +12 -0
- package/dist/executor/template.js +42 -0
- package/dist/executor/template.js.map +1 -0
- package/dist/hooks/engine.d.ts +22 -0
- package/dist/hooks/engine.js +50 -0
- package/dist/hooks/engine.js.map +1 -0
- package/dist/index.js +115 -250
- package/dist/index.js.map +1 -1
- package/dist/leader/chain-router.d.ts +22 -0
- package/dist/leader/chain-router.js +163 -0
- package/dist/leader/chain-router.js.map +1 -0
- package/dist/leader/event-bus.d.ts +1 -1
- package/dist/leader/event-bus.js +1 -1
- package/dist/leader/event-bus.js.map +1 -1
- package/dist/leader/index.d.ts +1 -2
- package/dist/leader/index.js +35 -13
- package/dist/leader/index.js.map +1 -1
- package/dist/leader/recovery.d.ts +2 -0
- package/dist/leader/recovery.js +37 -22
- package/dist/leader/recovery.js.map +1 -1
- package/dist/leader/state.d.ts +2 -1
- package/dist/leader/state.js +48 -2
- package/dist/leader/state.js.map +1 -1
- package/dist/leader/tui.d.ts +8 -0
- package/dist/leader/tui.js +74 -9
- package/dist/leader/tui.js.map +1 -1
- package/dist/leader/watcher.d.ts +4 -3
- package/dist/leader/watcher.js +8 -13
- package/dist/leader/watcher.js.map +1 -1
- package/dist/models/schemas.d.ts +307 -87
- package/dist/models/schemas.js +51 -43
- package/dist/models/schemas.js.map +1 -1
- package/dist/modules/message-router.d.ts +1 -3
- package/dist/modules/message-router.js +3 -26
- package/dist/modules/message-router.js.map +1 -1
- package/dist/modules/registry.js +3 -3
- package/dist/modules/registry.js.map +1 -1
- package/dist/modules/task-queue.d.ts +1 -1
- package/dist/modules/task-queue.js +28 -2
- package/dist/modules/task-queue.js.map +1 -1
- package/dist/skills/CLAUDE.md +155 -0
- package/dist/skills/claude-code-developer/SKILL.md +325 -0
- package/dist/skills/claude-orchestrator/SKILL.md +244 -0
- package/dist/skills/task-acceptance/SKILL.md +201 -0
- package/dist/skills/task-execution/SKILL.md +142 -0
- package/dist/skills/task-planning/SKILL.md +188 -0
- package/dist/skills/task-review/SKILL.md +220 -0
- package/dist/skills/task-traceability/SKILL.md +154 -0
- package/dist/skills/task-verification/SKILL.md +194 -0
- package/dist/templates/worker-accept.md +46 -0
- package/dist/templates/worker-build.md +45 -0
- package/dist/templates/worker-decompose.md +67 -0
- package/dist/templates/worker-evaluate.md +41 -0
- package/dist/templates/worker-plan.md +43 -0
- package/dist/templates/worker-review.md +46 -0
- package/dist/templates/worker-verify.md +47 -0
- package/dist/utils/exec.d.ts +5 -0
- package/dist/utils/exec.js +27 -0
- package/dist/utils/exec.js.map +1 -1
- package/dist/utils/logger.d.ts +10 -0
- package/dist/utils/logger.js +22 -0
- package/dist/utils/logger.js.map +1 -0
- package/dist/worker/evaluator.d.ts +13 -0
- package/dist/worker/evaluator.js +112 -0
- package/dist/worker/evaluator.js.map +1 -0
- package/dist/worker/watcher.d.ts +13 -4
- package/dist/worker/watcher.js +108 -24
- package/dist/worker/watcher.js.map +1 -1
- package/dist/zk/client.d.ts +0 -5
- package/dist/zk/client.js +0 -27
- package/dist/zk/client.js.map +1 -1
- package/dist/zk/paths.d.ts +8 -10
- package/dist/zk/paths.js +1 -6
- package/dist/zk/paths.js.map +1 -1
- package/dist/zk/watcher.d.ts +0 -2
- package/dist/zk/watcher.js +0 -3
- package/dist/zk/watcher.js.map +1 -1
- package/package.json +2 -2
- package/dist/modules/context-store.d.ts +0 -10
- package/dist/modules/context-store.js +0 -25
- package/dist/modules/context-store.js.map +0 -1
- package/dist/templates/leader.md +0 -10
- package/dist/templates/worker.md +0 -8
package/dist/models/schemas.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const InstanceStatus: z.ZodEnum<["idle", "busy"]>;
|
|
3
3
|
export type InstanceStatus = z.infer<typeof InstanceStatus>;
|
|
4
|
-
export declare const InstanceRole: z.ZodEnum<["
|
|
4
|
+
export declare const InstanceRole: z.ZodEnum<["planner", "builder", "verifier", "reviewer", "accepter", "leader"]>;
|
|
5
5
|
export type InstanceRole = z.infer<typeof InstanceRole>;
|
|
6
|
-
export declare const
|
|
6
|
+
export declare const TaskLink: z.ZodEnum<["plan", "build", "verify", "review", "accept"]>;
|
|
7
|
+
export type TaskLink = z.infer<typeof TaskLink>;
|
|
8
|
+
export declare const TaskStatus: z.ZodEnum<["pending", "claimed", "completed", "blocked", "failed"]>;
|
|
7
9
|
export type TaskStatus = z.infer<typeof TaskStatus>;
|
|
8
10
|
export declare const TaskPriority: z.ZodNumber;
|
|
9
11
|
export type TaskPriority = z.infer<typeof TaskPriority>;
|
|
@@ -13,7 +15,7 @@ export type MessageType = z.infer<typeof MessageType>;
|
|
|
13
15
|
export declare const InstanceSchema: z.ZodObject<{
|
|
14
16
|
id: z.ZodString;
|
|
15
17
|
name: z.ZodString;
|
|
16
|
-
role: z.ZodDefault<z.ZodEnum<["
|
|
18
|
+
role: z.ZodDefault<z.ZodEnum<["planner", "builder", "verifier", "reviewer", "accepter", "leader"]>>;
|
|
17
19
|
status: z.ZodDefault<z.ZodEnum<["idle", "busy"]>>;
|
|
18
20
|
current_task_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
19
21
|
connected_since: z.ZodString;
|
|
@@ -22,7 +24,7 @@ export declare const InstanceSchema: z.ZodObject<{
|
|
|
22
24
|
status: "idle" | "busy";
|
|
23
25
|
id: string;
|
|
24
26
|
name: string;
|
|
25
|
-
role: "
|
|
27
|
+
role: "planner" | "builder" | "verifier" | "reviewer" | "accepter" | "leader";
|
|
26
28
|
current_task_id: string | null;
|
|
27
29
|
connected_since: string;
|
|
28
30
|
work_dir: string | null;
|
|
@@ -31,7 +33,7 @@ export declare const InstanceSchema: z.ZodObject<{
|
|
|
31
33
|
name: string;
|
|
32
34
|
connected_since: string;
|
|
33
35
|
status?: "idle" | "busy" | undefined;
|
|
34
|
-
role?: "
|
|
36
|
+
role?: "planner" | "builder" | "verifier" | "reviewer" | "accepter" | "leader" | undefined;
|
|
35
37
|
current_task_id?: string | null | undefined;
|
|
36
38
|
work_dir?: string | null | undefined;
|
|
37
39
|
}>;
|
|
@@ -41,7 +43,7 @@ export declare const TaskSchema: z.ZodObject<{
|
|
|
41
43
|
title: z.ZodString;
|
|
42
44
|
description: z.ZodDefault<z.ZodString>;
|
|
43
45
|
priority: z.ZodDefault<z.ZodNumber>;
|
|
44
|
-
status: z.ZodDefault<z.ZodEnum<["pending", "claimed", "
|
|
46
|
+
status: z.ZodDefault<z.ZodEnum<["pending", "claimed", "completed", "blocked", "failed"]>>;
|
|
45
47
|
created_by: z.ZodDefault<z.ZodString>;
|
|
46
48
|
assigned_to: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
47
49
|
created_at: z.ZodString;
|
|
@@ -49,6 +51,8 @@ export declare const TaskSchema: z.ZodObject<{
|
|
|
49
51
|
completed_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
50
52
|
claimed_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
51
53
|
result: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
54
|
+
link: z.ZodDefault<z.ZodNullable<z.ZodEnum<["plan", "build", "verify", "review", "accept"]>>>;
|
|
55
|
+
chain_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
52
56
|
retry_count: z.ZodDefault<z.ZodNumber>;
|
|
53
57
|
blocked_reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
54
58
|
fail_reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -56,8 +60,11 @@ export declare const TaskSchema: z.ZodObject<{
|
|
|
56
60
|
assigned_to_name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
57
61
|
completed_by_name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
58
62
|
duration_seconds: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
63
|
+
depends_on: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
64
|
+
blocked_by: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
59
65
|
}, "strip", z.ZodTypeAny, {
|
|
60
|
-
|
|
66
|
+
link: "plan" | "build" | "verify" | "review" | "accept" | null;
|
|
67
|
+
status: "pending" | "claimed" | "completed" | "blocked" | "failed";
|
|
61
68
|
id: string;
|
|
62
69
|
title: string;
|
|
63
70
|
description: string;
|
|
@@ -69,6 +76,7 @@ export declare const TaskSchema: z.ZodObject<{
|
|
|
69
76
|
completed_at: string | null;
|
|
70
77
|
claimed_by: string | null;
|
|
71
78
|
result: string | null;
|
|
79
|
+
chain_id: string | null;
|
|
72
80
|
retry_count: number;
|
|
73
81
|
blocked_reason: string | null;
|
|
74
82
|
fail_reason: string | null;
|
|
@@ -76,10 +84,13 @@ export declare const TaskSchema: z.ZodObject<{
|
|
|
76
84
|
assigned_to_name: string | null;
|
|
77
85
|
completed_by_name: string | null;
|
|
78
86
|
duration_seconds: number | null;
|
|
87
|
+
depends_on: string[];
|
|
88
|
+
blocked_by: string[];
|
|
79
89
|
}, {
|
|
80
90
|
title: string;
|
|
81
91
|
created_at: string;
|
|
82
|
-
|
|
92
|
+
link?: "plan" | "build" | "verify" | "review" | "accept" | null | undefined;
|
|
93
|
+
status?: "pending" | "claimed" | "completed" | "blocked" | "failed" | undefined;
|
|
83
94
|
id?: string | undefined;
|
|
84
95
|
description?: string | undefined;
|
|
85
96
|
priority?: number | undefined;
|
|
@@ -89,6 +100,7 @@ export declare const TaskSchema: z.ZodObject<{
|
|
|
89
100
|
completed_at?: string | null | undefined;
|
|
90
101
|
claimed_by?: string | null | undefined;
|
|
91
102
|
result?: string | null | undefined;
|
|
103
|
+
chain_id?: string | null | undefined;
|
|
92
104
|
retry_count?: number | undefined;
|
|
93
105
|
blocked_reason?: string | null | undefined;
|
|
94
106
|
fail_reason?: string | null | undefined;
|
|
@@ -96,6 +108,8 @@ export declare const TaskSchema: z.ZodObject<{
|
|
|
96
108
|
assigned_to_name?: string | null | undefined;
|
|
97
109
|
completed_by_name?: string | null | undefined;
|
|
98
110
|
duration_seconds?: number | null | undefined;
|
|
111
|
+
depends_on?: string[] | undefined;
|
|
112
|
+
blocked_by?: string[] | undefined;
|
|
99
113
|
}>;
|
|
100
114
|
export type Task = z.infer<typeof TaskSchema>;
|
|
101
115
|
export declare const MessageSchema: z.ZodObject<{
|
|
@@ -109,10 +123,15 @@ export declare const MessageSchema: z.ZodObject<{
|
|
|
109
123
|
content: z.ZodString;
|
|
110
124
|
created_at: z.ZodString;
|
|
111
125
|
read: z.ZodDefault<z.ZodBoolean>;
|
|
126
|
+
link: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
127
|
+
task_title: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
128
|
+
task_description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
129
|
+
task_criteria: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
112
130
|
task_doc_path: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
113
131
|
result_path: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
114
132
|
reply_to: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
115
133
|
}, "strip", z.ZodTypeAny, {
|
|
134
|
+
link: string | null;
|
|
116
135
|
type: "direct" | "broadcast" | "help";
|
|
117
136
|
id: string;
|
|
118
137
|
created_at: string;
|
|
@@ -123,12 +142,16 @@ export declare const MessageSchema: z.ZodObject<{
|
|
|
123
142
|
to_name: string | null;
|
|
124
143
|
content: string;
|
|
125
144
|
read: boolean;
|
|
145
|
+
task_title: string | null;
|
|
146
|
+
task_description: string | null;
|
|
147
|
+
task_criteria: string | null;
|
|
126
148
|
task_doc_path: string | null;
|
|
127
149
|
result_path: string | null;
|
|
128
150
|
reply_to: string | null;
|
|
129
151
|
}, {
|
|
130
152
|
created_at: string;
|
|
131
153
|
content: string;
|
|
154
|
+
link?: string | null | undefined;
|
|
132
155
|
type?: "direct" | "broadcast" | "help" | undefined;
|
|
133
156
|
id?: string | undefined;
|
|
134
157
|
from_instance?: string | undefined;
|
|
@@ -137,28 +160,14 @@ export declare const MessageSchema: z.ZodObject<{
|
|
|
137
160
|
to_instance?: string | null | undefined;
|
|
138
161
|
to_name?: string | null | undefined;
|
|
139
162
|
read?: boolean | undefined;
|
|
163
|
+
task_title?: string | null | undefined;
|
|
164
|
+
task_description?: string | null | undefined;
|
|
165
|
+
task_criteria?: string | null | undefined;
|
|
140
166
|
task_doc_path?: string | null | undefined;
|
|
141
167
|
result_path?: string | null | undefined;
|
|
142
168
|
reply_to?: string | null | undefined;
|
|
143
169
|
}>;
|
|
144
170
|
export type Message = z.infer<typeof MessageSchema>;
|
|
145
|
-
export declare const ContextEntrySchema: z.ZodObject<{
|
|
146
|
-
key: z.ZodString;
|
|
147
|
-
value: z.ZodString;
|
|
148
|
-
updated_by: z.ZodDefault<z.ZodString>;
|
|
149
|
-
updated_at: z.ZodString;
|
|
150
|
-
}, "strip", z.ZodTypeAny, {
|
|
151
|
-
value: string;
|
|
152
|
-
key: string;
|
|
153
|
-
updated_by: string;
|
|
154
|
-
updated_at: string;
|
|
155
|
-
}, {
|
|
156
|
-
value: string;
|
|
157
|
-
key: string;
|
|
158
|
-
updated_at: string;
|
|
159
|
-
updated_by?: string | undefined;
|
|
160
|
-
}>;
|
|
161
|
-
export type ContextEntry = z.infer<typeof ContextEntrySchema>;
|
|
162
171
|
export declare function createInstance(overrides: {
|
|
163
172
|
id?: string;
|
|
164
173
|
name: string;
|
|
@@ -173,6 +182,10 @@ export declare function createTask(overrides: {
|
|
|
173
182
|
assigned_to?: string | null;
|
|
174
183
|
created_by_name?: string;
|
|
175
184
|
assigned_to_name?: string | null;
|
|
185
|
+
link?: string | null;
|
|
186
|
+
chain_id?: string | null;
|
|
187
|
+
depends_on?: string[];
|
|
188
|
+
blocked_by?: string[];
|
|
176
189
|
}): Task;
|
|
177
190
|
export declare function createMessage(overrides: {
|
|
178
191
|
type?: MessageType;
|
|
@@ -185,54 +198,52 @@ export declare function createMessage(overrides: {
|
|
|
185
198
|
task_doc_path?: string | null;
|
|
186
199
|
result_path?: string | null;
|
|
187
200
|
reply_to?: string | null;
|
|
201
|
+
task_title?: string | null;
|
|
202
|
+
task_description?: string | null;
|
|
203
|
+
task_criteria?: string | null;
|
|
204
|
+
link?: string | null;
|
|
188
205
|
}): Message;
|
|
189
|
-
export declare function createContextEntry(overrides: {
|
|
190
|
-
key: string;
|
|
191
|
-
value: string;
|
|
192
|
-
updated_by?: string;
|
|
193
|
-
}): ContextEntry;
|
|
194
206
|
export declare const RegisterInstanceInput: z.ZodObject<{
|
|
195
207
|
name: z.ZodString;
|
|
196
|
-
role: z.
|
|
208
|
+
role: z.ZodEnum<["planner", "builder", "verifier", "reviewer", "accepter", "leader"]>;
|
|
197
209
|
instance_id: z.ZodOptional<z.ZodString>;
|
|
198
|
-
work_dir: z.ZodOptional<z.ZodString>;
|
|
199
210
|
}, "strip", z.ZodTypeAny, {
|
|
200
211
|
name: string;
|
|
201
|
-
role: "
|
|
202
|
-
work_dir?: string | undefined;
|
|
212
|
+
role: "planner" | "builder" | "verifier" | "reviewer" | "accepter" | "leader";
|
|
203
213
|
instance_id?: string | undefined;
|
|
204
214
|
}, {
|
|
205
215
|
name: string;
|
|
206
|
-
role
|
|
207
|
-
work_dir?: string | undefined;
|
|
216
|
+
role: "planner" | "builder" | "verifier" | "reviewer" | "accepter" | "leader";
|
|
208
217
|
instance_id?: string | undefined;
|
|
209
218
|
}>;
|
|
210
|
-
export declare const HeartbeatInput: z.ZodObject<{
|
|
211
|
-
instance_id: z.ZodString;
|
|
212
|
-
current_task: z.ZodOptional<z.ZodString>;
|
|
213
|
-
}, "strip", z.ZodTypeAny, {
|
|
214
|
-
instance_id: string;
|
|
215
|
-
current_task?: string | undefined;
|
|
216
|
-
}, {
|
|
217
|
-
instance_id: string;
|
|
218
|
-
current_task?: string | undefined;
|
|
219
|
-
}>;
|
|
220
219
|
export declare const PushTaskInput: z.ZodObject<{
|
|
221
220
|
title: z.ZodString;
|
|
222
221
|
description: z.ZodDefault<z.ZodString>;
|
|
223
222
|
priority: z.ZodDefault<z.ZodNumber>;
|
|
224
223
|
instance_id: z.ZodDefault<z.ZodString>;
|
|
225
224
|
assignee: z.ZodOptional<z.ZodString>;
|
|
225
|
+
link: z.ZodOptional<z.ZodString>;
|
|
226
|
+
chain_id: z.ZodOptional<z.ZodString>;
|
|
227
|
+
depends_on: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
228
|
+
blocked_by: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
226
229
|
}, "strip", z.ZodTypeAny, {
|
|
227
230
|
title: string;
|
|
228
231
|
description: string;
|
|
229
232
|
priority: number;
|
|
233
|
+
depends_on: string[];
|
|
234
|
+
blocked_by: string[];
|
|
230
235
|
instance_id: string;
|
|
236
|
+
link?: string | undefined;
|
|
237
|
+
chain_id?: string | undefined;
|
|
231
238
|
assignee?: string | undefined;
|
|
232
239
|
}, {
|
|
233
240
|
title: string;
|
|
241
|
+
link?: string | undefined;
|
|
234
242
|
description?: string | undefined;
|
|
235
243
|
priority?: number | undefined;
|
|
244
|
+
chain_id?: string | undefined;
|
|
245
|
+
depends_on?: string[] | undefined;
|
|
246
|
+
blocked_by?: string[] | undefined;
|
|
236
247
|
instance_id?: string | undefined;
|
|
237
248
|
assignee?: string | undefined;
|
|
238
249
|
}>;
|
|
@@ -269,8 +280,10 @@ export declare const SendMessageInput: z.ZodObject<{
|
|
|
269
280
|
to_instance: z.ZodOptional<z.ZodString>;
|
|
270
281
|
to_name: z.ZodOptional<z.ZodString>;
|
|
271
282
|
broadcast: z.ZodDefault<z.ZodBoolean>;
|
|
283
|
+
help: z.ZodDefault<z.ZodBoolean>;
|
|
272
284
|
}, "strip", z.ZodTypeAny, {
|
|
273
285
|
broadcast: boolean;
|
|
286
|
+
help: boolean;
|
|
274
287
|
content: string;
|
|
275
288
|
instance_id: string;
|
|
276
289
|
to_instance?: string | undefined;
|
|
@@ -279,6 +292,7 @@ export declare const SendMessageInput: z.ZodObject<{
|
|
|
279
292
|
content: string;
|
|
280
293
|
instance_id: string;
|
|
281
294
|
broadcast?: boolean | undefined;
|
|
295
|
+
help?: boolean | undefined;
|
|
282
296
|
to_instance?: string | undefined;
|
|
283
297
|
to_name?: string | undefined;
|
|
284
298
|
}>;
|
|
@@ -289,16 +303,6 @@ export declare const PollMessagesInput: z.ZodObject<{
|
|
|
289
303
|
}, {
|
|
290
304
|
instance_id: string;
|
|
291
305
|
}>;
|
|
292
|
-
export declare const WaitForMessageInput: z.ZodObject<{
|
|
293
|
-
instance_id: z.ZodString;
|
|
294
|
-
timeout_seconds: z.ZodDefault<z.ZodNumber>;
|
|
295
|
-
}, "strip", z.ZodTypeAny, {
|
|
296
|
-
instance_id: string;
|
|
297
|
-
timeout_seconds: number;
|
|
298
|
-
}, {
|
|
299
|
-
instance_id: string;
|
|
300
|
-
timeout_seconds?: number | undefined;
|
|
301
|
-
}>;
|
|
302
306
|
export declare const MarkReadInput: z.ZodObject<{
|
|
303
307
|
instance_id: z.ZodString;
|
|
304
308
|
message_id: z.ZodString;
|
|
@@ -319,43 +323,259 @@ export declare const DismissMessageInput: z.ZodObject<{
|
|
|
319
323
|
instance_id: string;
|
|
320
324
|
message_id: string;
|
|
321
325
|
}>;
|
|
322
|
-
export declare const
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
instance_id: string;
|
|
328
|
-
question: string;
|
|
329
|
-
context?: string | undefined;
|
|
330
|
-
}, {
|
|
331
|
-
instance_id: string;
|
|
332
|
-
question: string;
|
|
333
|
-
context?: string | undefined;
|
|
334
|
-
}>;
|
|
335
|
-
export declare const SetContextInput: z.ZodObject<{
|
|
336
|
-
key: z.ZodString;
|
|
337
|
-
value: z.ZodString;
|
|
338
|
-
instance_id: z.ZodDefault<z.ZodString>;
|
|
326
|
+
export declare const ChainTaskDefSchema: z.ZodObject<{
|
|
327
|
+
title: z.ZodString;
|
|
328
|
+
description: z.ZodString;
|
|
329
|
+
criteria: z.ZodString;
|
|
330
|
+
priority: z.ZodNumber;
|
|
339
331
|
}, "strip", z.ZodTypeAny, {
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
332
|
+
title: string;
|
|
333
|
+
description: string;
|
|
334
|
+
priority: number;
|
|
335
|
+
criteria: string;
|
|
343
336
|
}, {
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
337
|
+
title: string;
|
|
338
|
+
description: string;
|
|
339
|
+
priority: number;
|
|
340
|
+
criteria: string;
|
|
347
341
|
}>;
|
|
348
|
-
export
|
|
349
|
-
|
|
342
|
+
export type ChainTaskDef = z.infer<typeof ChainTaskDefSchema>;
|
|
343
|
+
export declare const ChainDefSchema: z.ZodObject<{
|
|
344
|
+
chain_id: z.ZodString;
|
|
345
|
+
chain_title: z.ZodString;
|
|
346
|
+
tasks: z.ZodObject<{
|
|
347
|
+
plan: z.ZodNullable<z.ZodObject<{
|
|
348
|
+
title: z.ZodString;
|
|
349
|
+
description: z.ZodString;
|
|
350
|
+
criteria: z.ZodString;
|
|
351
|
+
priority: z.ZodNumber;
|
|
352
|
+
}, "strip", z.ZodTypeAny, {
|
|
353
|
+
title: string;
|
|
354
|
+
description: string;
|
|
355
|
+
priority: number;
|
|
356
|
+
criteria: string;
|
|
357
|
+
}, {
|
|
358
|
+
title: string;
|
|
359
|
+
description: string;
|
|
360
|
+
priority: number;
|
|
361
|
+
criteria: string;
|
|
362
|
+
}>>;
|
|
363
|
+
build: z.ZodObject<{
|
|
364
|
+
title: z.ZodString;
|
|
365
|
+
description: z.ZodString;
|
|
366
|
+
criteria: z.ZodString;
|
|
367
|
+
priority: z.ZodNumber;
|
|
368
|
+
}, "strip", z.ZodTypeAny, {
|
|
369
|
+
title: string;
|
|
370
|
+
description: string;
|
|
371
|
+
priority: number;
|
|
372
|
+
criteria: string;
|
|
373
|
+
}, {
|
|
374
|
+
title: string;
|
|
375
|
+
description: string;
|
|
376
|
+
priority: number;
|
|
377
|
+
criteria: string;
|
|
378
|
+
}>;
|
|
379
|
+
verify: z.ZodObject<{
|
|
380
|
+
title: z.ZodString;
|
|
381
|
+
description: z.ZodString;
|
|
382
|
+
criteria: z.ZodString;
|
|
383
|
+
priority: z.ZodNumber;
|
|
384
|
+
}, "strip", z.ZodTypeAny, {
|
|
385
|
+
title: string;
|
|
386
|
+
description: string;
|
|
387
|
+
priority: number;
|
|
388
|
+
criteria: string;
|
|
389
|
+
}, {
|
|
390
|
+
title: string;
|
|
391
|
+
description: string;
|
|
392
|
+
priority: number;
|
|
393
|
+
criteria: string;
|
|
394
|
+
}>;
|
|
395
|
+
review: z.ZodObject<{
|
|
396
|
+
title: z.ZodString;
|
|
397
|
+
description: z.ZodString;
|
|
398
|
+
criteria: z.ZodString;
|
|
399
|
+
priority: z.ZodNumber;
|
|
400
|
+
}, "strip", z.ZodTypeAny, {
|
|
401
|
+
title: string;
|
|
402
|
+
description: string;
|
|
403
|
+
priority: number;
|
|
404
|
+
criteria: string;
|
|
405
|
+
}, {
|
|
406
|
+
title: string;
|
|
407
|
+
description: string;
|
|
408
|
+
priority: number;
|
|
409
|
+
criteria: string;
|
|
410
|
+
}>;
|
|
411
|
+
accept: z.ZodObject<{
|
|
412
|
+
title: z.ZodString;
|
|
413
|
+
description: z.ZodString;
|
|
414
|
+
criteria: z.ZodString;
|
|
415
|
+
priority: z.ZodNumber;
|
|
416
|
+
}, "strip", z.ZodTypeAny, {
|
|
417
|
+
title: string;
|
|
418
|
+
description: string;
|
|
419
|
+
priority: number;
|
|
420
|
+
criteria: string;
|
|
421
|
+
}, {
|
|
422
|
+
title: string;
|
|
423
|
+
description: string;
|
|
424
|
+
priority: number;
|
|
425
|
+
criteria: string;
|
|
426
|
+
}>;
|
|
427
|
+
}, "strip", z.ZodTypeAny, {
|
|
428
|
+
plan: {
|
|
429
|
+
title: string;
|
|
430
|
+
description: string;
|
|
431
|
+
priority: number;
|
|
432
|
+
criteria: string;
|
|
433
|
+
} | null;
|
|
434
|
+
build: {
|
|
435
|
+
title: string;
|
|
436
|
+
description: string;
|
|
437
|
+
priority: number;
|
|
438
|
+
criteria: string;
|
|
439
|
+
};
|
|
440
|
+
verify: {
|
|
441
|
+
title: string;
|
|
442
|
+
description: string;
|
|
443
|
+
priority: number;
|
|
444
|
+
criteria: string;
|
|
445
|
+
};
|
|
446
|
+
review: {
|
|
447
|
+
title: string;
|
|
448
|
+
description: string;
|
|
449
|
+
priority: number;
|
|
450
|
+
criteria: string;
|
|
451
|
+
};
|
|
452
|
+
accept: {
|
|
453
|
+
title: string;
|
|
454
|
+
description: string;
|
|
455
|
+
priority: number;
|
|
456
|
+
criteria: string;
|
|
457
|
+
};
|
|
458
|
+
}, {
|
|
459
|
+
plan: {
|
|
460
|
+
title: string;
|
|
461
|
+
description: string;
|
|
462
|
+
priority: number;
|
|
463
|
+
criteria: string;
|
|
464
|
+
} | null;
|
|
465
|
+
build: {
|
|
466
|
+
title: string;
|
|
467
|
+
description: string;
|
|
468
|
+
priority: number;
|
|
469
|
+
criteria: string;
|
|
470
|
+
};
|
|
471
|
+
verify: {
|
|
472
|
+
title: string;
|
|
473
|
+
description: string;
|
|
474
|
+
priority: number;
|
|
475
|
+
criteria: string;
|
|
476
|
+
};
|
|
477
|
+
review: {
|
|
478
|
+
title: string;
|
|
479
|
+
description: string;
|
|
480
|
+
priority: number;
|
|
481
|
+
criteria: string;
|
|
482
|
+
};
|
|
483
|
+
accept: {
|
|
484
|
+
title: string;
|
|
485
|
+
description: string;
|
|
486
|
+
priority: number;
|
|
487
|
+
criteria: string;
|
|
488
|
+
};
|
|
489
|
+
}>;
|
|
350
490
|
}, "strip", z.ZodTypeAny, {
|
|
351
|
-
|
|
491
|
+
chain_id: string;
|
|
492
|
+
chain_title: string;
|
|
493
|
+
tasks: {
|
|
494
|
+
plan: {
|
|
495
|
+
title: string;
|
|
496
|
+
description: string;
|
|
497
|
+
priority: number;
|
|
498
|
+
criteria: string;
|
|
499
|
+
} | null;
|
|
500
|
+
build: {
|
|
501
|
+
title: string;
|
|
502
|
+
description: string;
|
|
503
|
+
priority: number;
|
|
504
|
+
criteria: string;
|
|
505
|
+
};
|
|
506
|
+
verify: {
|
|
507
|
+
title: string;
|
|
508
|
+
description: string;
|
|
509
|
+
priority: number;
|
|
510
|
+
criteria: string;
|
|
511
|
+
};
|
|
512
|
+
review: {
|
|
513
|
+
title: string;
|
|
514
|
+
description: string;
|
|
515
|
+
priority: number;
|
|
516
|
+
criteria: string;
|
|
517
|
+
};
|
|
518
|
+
accept: {
|
|
519
|
+
title: string;
|
|
520
|
+
description: string;
|
|
521
|
+
priority: number;
|
|
522
|
+
criteria: string;
|
|
523
|
+
};
|
|
524
|
+
};
|
|
352
525
|
}, {
|
|
353
|
-
|
|
526
|
+
chain_id: string;
|
|
527
|
+
chain_title: string;
|
|
528
|
+
tasks: {
|
|
529
|
+
plan: {
|
|
530
|
+
title: string;
|
|
531
|
+
description: string;
|
|
532
|
+
priority: number;
|
|
533
|
+
criteria: string;
|
|
534
|
+
} | null;
|
|
535
|
+
build: {
|
|
536
|
+
title: string;
|
|
537
|
+
description: string;
|
|
538
|
+
priority: number;
|
|
539
|
+
criteria: string;
|
|
540
|
+
};
|
|
541
|
+
verify: {
|
|
542
|
+
title: string;
|
|
543
|
+
description: string;
|
|
544
|
+
priority: number;
|
|
545
|
+
criteria: string;
|
|
546
|
+
};
|
|
547
|
+
review: {
|
|
548
|
+
title: string;
|
|
549
|
+
description: string;
|
|
550
|
+
priority: number;
|
|
551
|
+
criteria: string;
|
|
552
|
+
};
|
|
553
|
+
accept: {
|
|
554
|
+
title: string;
|
|
555
|
+
description: string;
|
|
556
|
+
priority: number;
|
|
557
|
+
criteria: string;
|
|
558
|
+
};
|
|
559
|
+
};
|
|
354
560
|
}>;
|
|
355
|
-
export
|
|
356
|
-
|
|
561
|
+
export type ChainDef = z.infer<typeof ChainDefSchema>;
|
|
562
|
+
export declare const EvalDecisionSchema: z.ZodObject<{
|
|
563
|
+
decision: z.ZodEnum<["activate_next", "feedback", "close_chain"]>;
|
|
564
|
+
reason: z.ZodString;
|
|
565
|
+
feedback: z.ZodOptional<z.ZodString>;
|
|
566
|
+
nextLink: z.ZodOptional<z.ZodString>;
|
|
567
|
+
suggestedWorker: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
357
568
|
}, "strip", z.ZodTypeAny, {
|
|
358
|
-
|
|
569
|
+
decision: "activate_next" | "feedback" | "close_chain";
|
|
570
|
+
reason: string;
|
|
571
|
+
feedback?: string | undefined;
|
|
572
|
+
nextLink?: string | undefined;
|
|
573
|
+
suggestedWorker?: string | null | undefined;
|
|
359
574
|
}, {
|
|
360
|
-
|
|
575
|
+
decision: "activate_next" | "feedback" | "close_chain";
|
|
576
|
+
reason: string;
|
|
577
|
+
feedback?: string | undefined;
|
|
578
|
+
nextLink?: string | undefined;
|
|
579
|
+
suggestedWorker?: string | null | undefined;
|
|
361
580
|
}>;
|
|
581
|
+
export type EvalDecision = z.infer<typeof EvalDecisionSchema>;
|