claude-flow 3.77.2 → 3.78.1

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.
Files changed (38) hide show
  1. package/.claude/helpers/learning-loop.cjs +21 -5
  2. package/README.md +1 -1
  3. package/node_modules/@claude-flow/mcp/dist/transport/http.d.ts +7 -0
  4. package/node_modules/@claude-flow/mcp/dist/transport/http.d.ts.map +1 -1
  5. package/node_modules/@claude-flow/mcp/dist/transport/http.js +33 -29
  6. package/node_modules/@claude-flow/mcp/dist/transport/http.js.map +1 -1
  7. package/node_modules/@claude-flow/mcp/package.json +1 -1
  8. package/node_modules/@claude-flow/plugin-agent-federation/dist/transport/midstream-aware-loader.d.ts +4 -0
  9. package/node_modules/@claude-flow/plugin-agent-federation/dist/transport/midstream-aware-loader.d.ts.map +1 -1
  10. package/node_modules/@claude-flow/plugin-agent-federation/dist/transport/midstream-aware-loader.js +5 -1
  11. package/node_modules/@claude-flow/plugin-agent-federation/dist/transport/midstream-aware-loader.js.map +1 -1
  12. package/node_modules/@claude-flow/security/dist/input-validator.d.ts +2 -2
  13. package/node_modules/@claude-flow/security/dist/input-validator.d.ts.map +1 -1
  14. package/node_modules/@claude-flow/security/dist/input-validator.js +4 -2
  15. package/node_modules/@claude-flow/security/dist/input-validator.js.map +1 -1
  16. package/node_modules/@claude-flow/security/package.json +1 -1
  17. package/package.json +7 -7
  18. package/v3/@claude-flow/cli/README.md +202 -81
  19. package/v3/@claude-flow/cli/catalog-manifest.json +6 -6
  20. package/v3/@claude-flow/cli/dist/src/init/executor.js +10 -4
  21. package/v3/@claude-flow/cli/dist/src/init/helper-companions.d.ts +1 -1
  22. package/v3/@claude-flow/cli/dist/src/init/helper-companions.js +25 -3
  23. package/v3/@claude-flow/cli/dist/src/init/helper-refresh.js +7 -0
  24. package/v3/@claude-flow/cli/dist/src/mcp-tools/agentbbs-federation.d.ts +5 -0
  25. package/v3/@claude-flow/cli/dist/src/mcp-tools/agentbbs-federation.js +36 -5
  26. package/v3/@claude-flow/cli/dist/src/mcp-tools/capability-brain.js +9 -2
  27. package/v3/@claude-flow/cli/dist/src/mcp-tools/hooks-tools.js +37 -1
  28. package/v3/@claude-flow/cli/dist/src/memory/memory-initializer.d.ts +4 -2
  29. package/v3/@claude-flow/cli/dist/src/memory/memory-initializer.js +239 -26
  30. package/v3/@claude-flow/cli/dist/src/memory/verified-outcomes.d.ts +10 -1
  31. package/v3/@claude-flow/cli/dist/src/memory/verified-outcomes.js +37 -3
  32. package/v3/@claude-flow/cli/dist/src/missions/schemas.d.ts +105 -561
  33. package/v3/@claude-flow/cli/dist/src/mods/command-registry/schema.d.ts +168 -729
  34. package/v3/@claude-flow/cli/dist/src/mods/command-registry/schema.js +1 -1
  35. package/v3/@claude-flow/cli/package.json +9 -9
  36. package/v3/@claude-flow/shared/dist/mcp/transport/http.d.ts +10 -0
  37. package/v3/@claude-flow/shared/dist/mcp/transport/http.js +44 -6
  38. package/v3/@claude-flow/shared/package.json +1 -1
@@ -25,10 +25,27 @@ export declare const MISSION_LIMITS: Readonly<{
25
25
  requestId: 128;
26
26
  eventsPage: 500;
27
27
  }>;
28
- export declare const missionStateSchema: z.ZodEnum<["draft", "planned", "awaitingAuthorization", "queued", "running", "pauseRequested", "paused", "blocked", "verifying", "completed", "failed", "cancelRequested", "cancelled"]>;
28
+ export declare const missionStateSchema: z.ZodEnum<{
29
+ draft: "draft";
30
+ planned: "planned";
31
+ awaitingAuthorization: "awaitingAuthorization";
32
+ queued: "queued";
33
+ running: "running";
34
+ pauseRequested: "pauseRequested";
35
+ paused: "paused";
36
+ blocked: "blocked";
37
+ verifying: "verifying";
38
+ completed: "completed";
39
+ failed: "failed";
40
+ cancelRequested: "cancelRequested";
41
+ cancelled: "cancelled";
42
+ }>;
29
43
  export type MissionState = z.infer<typeof missionStateSchema>;
30
44
  export declare const TERMINAL_STATES: ReadonlySet<MissionState>;
31
- export declare const executionModeSchema: z.ZodEnum<["durable-executor", "session-bound"]>;
45
+ export declare const executionModeSchema: z.ZodEnum<{
46
+ "durable-executor": "durable-executor";
47
+ "session-bound": "session-bound";
48
+ }>;
32
49
  export type ExecutionMode = z.infer<typeof executionModeSchema>;
33
50
  export declare const MISSION_ID: RegExp;
34
51
  /** §19.3, exactly. */
@@ -44,365 +61,118 @@ export declare const missionRecordSchema: z.ZodObject<{
44
61
  revision: z.ZodNumber;
45
62
  digest: z.ZodString;
46
63
  taskGraphRef: z.ZodString;
47
- }, "strict", z.ZodTypeAny, {
48
- digest: string;
49
- revision: number;
50
- taskGraphRef: string;
51
- }, {
52
- digest: string;
53
- revision: number;
54
- taskGraphRef: string;
55
- }>;
64
+ }, z.core.$strict>;
56
65
  policyRef: z.ZodString;
57
66
  authorizationRef: z.ZodOptional<z.ZodString>;
58
67
  budgetRef: z.ZodString;
59
- executionMode: z.ZodEnum<["durable-executor", "session-bound"]>;
60
- state: z.ZodEnum<["draft", "planned", "awaitingAuthorization", "queued", "running", "pauseRequested", "paused", "blocked", "verifying", "completed", "failed", "cancelRequested", "cancelled"]>;
61
- evidenceRefs: z.ZodArray<z.ZodString, "many">;
68
+ executionMode: z.ZodEnum<{
69
+ "durable-executor": "durable-executor";
70
+ "session-bound": "session-bound";
71
+ }>;
72
+ state: z.ZodEnum<{
73
+ draft: "draft";
74
+ planned: "planned";
75
+ awaitingAuthorization: "awaitingAuthorization";
76
+ queued: "queued";
77
+ running: "running";
78
+ pauseRequested: "pauseRequested";
79
+ paused: "paused";
80
+ blocked: "blocked";
81
+ verifying: "verifying";
82
+ completed: "completed";
83
+ failed: "failed";
84
+ cancelRequested: "cancelRequested";
85
+ cancelled: "cancelled";
86
+ }>;
87
+ evidenceRefs: z.ZodArray<z.ZodString>;
62
88
  acceptance: z.ZodObject<{
63
89
  revision: z.ZodNumber;
64
90
  criteriaDigest: z.ZodString;
65
- }, "strict", z.ZodTypeAny, {
66
- revision: number;
67
- criteriaDigest: string;
68
- }, {
69
- revision: number;
70
- criteriaDigest: string;
71
- }>;
91
+ }, z.core.$strict>;
72
92
  lastEventSequence: z.ZodNumber;
73
93
  createdAt: z.ZodString;
74
94
  updatedAt: z.ZodString;
75
- }, "strict", z.ZodTypeAny, {
76
- createdAt: string;
77
- updatedAt: string;
78
- schemaVersion: 1;
79
- state: "completed" | "cancelled" | "failed" | "blocked" | "running" | "paused" | "queued" | "draft" | "planned" | "awaitingAuthorization" | "pauseRequested" | "verifying" | "cancelRequested";
80
- plan: {
81
- digest: string;
82
- revision: number;
83
- taskGraphRef: string;
84
- };
85
- acceptance: {
86
- revision: number;
87
- criteriaDigest: string;
88
- };
89
- objective: string;
90
- missionId: string;
91
- tenantId: string;
92
- workspaceId: string;
93
- ownerPrincipalId: string;
94
- revision: number;
95
- policyRef: string;
96
- budgetRef: string;
97
- executionMode: "durable-executor" | "session-bound";
98
- evidenceRefs: string[];
99
- lastEventSequence: number;
100
- authorizationRef?: string | undefined;
101
- }, {
102
- createdAt: string;
103
- updatedAt: string;
104
- schemaVersion: 1;
105
- state: "completed" | "cancelled" | "failed" | "blocked" | "running" | "paused" | "queued" | "draft" | "planned" | "awaitingAuthorization" | "pauseRequested" | "verifying" | "cancelRequested";
106
- plan: {
107
- digest: string;
108
- revision: number;
109
- taskGraphRef: string;
110
- };
111
- acceptance: {
112
- revision: number;
113
- criteriaDigest: string;
114
- };
115
- objective: string;
116
- missionId: string;
117
- tenantId: string;
118
- workspaceId: string;
119
- ownerPrincipalId: string;
120
- revision: number;
121
- policyRef: string;
122
- budgetRef: string;
123
- executionMode: "durable-executor" | "session-bound";
124
- evidenceRefs: string[];
125
- lastEventSequence: number;
126
- authorizationRef?: string | undefined;
127
- }>;
95
+ }, z.core.$strict>;
128
96
  export type MissionRecord = z.infer<typeof missionRecordSchema>;
129
97
  export declare const taskSpecSchema: z.ZodObject<{
130
98
  id: z.ZodString;
131
99
  title: z.ZodString;
132
- dependsOn: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
100
+ dependsOn: z.ZodDefault<z.ZodArray<z.ZodString>>;
133
101
  executor: z.ZodObject<{
134
- mode: z.ZodEnum<["durable-executor", "session-bound"]>;
102
+ mode: z.ZodEnum<{
103
+ "durable-executor": "durable-executor";
104
+ "session-bound": "session-bound";
105
+ }>;
135
106
  requirement: z.ZodString;
136
- }, "strict", z.ZodTypeAny, {
137
- mode: "durable-executor" | "session-bound";
138
- requirement: string;
139
- }, {
140
- mode: "durable-executor" | "session-bound";
141
- requirement: string;
142
- }>;
143
- capabilityCeiling: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
107
+ }, z.core.$strict>;
108
+ capabilityCeiling: z.ZodDefault<z.ZodArray<z.ZodString>>;
144
109
  estimatedCostMinor: z.ZodDefault<z.ZodNumber>;
145
110
  checkpoint: z.ZodOptional<z.ZodString>;
146
- acceptanceEvidence: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
147
- }, "strict", z.ZodTypeAny, {
148
- id: string;
149
- title: string;
150
- dependsOn: string[];
151
- executor: {
152
- mode: "durable-executor" | "session-bound";
153
- requirement: string;
154
- };
155
- capabilityCeiling: string[];
156
- estimatedCostMinor: number;
157
- acceptanceEvidence: string[];
158
- checkpoint?: string | undefined;
159
- }, {
160
- id: string;
161
- title: string;
162
- executor: {
163
- mode: "durable-executor" | "session-bound";
164
- requirement: string;
165
- };
166
- checkpoint?: string | undefined;
167
- dependsOn?: string[] | undefined;
168
- capabilityCeiling?: string[] | undefined;
169
- estimatedCostMinor?: number | undefined;
170
- acceptanceEvidence?: string[] | undefined;
171
- }>;
111
+ acceptanceEvidence: z.ZodDefault<z.ZodArray<z.ZodString>>;
112
+ }, z.core.$strict>;
172
113
  export declare const acceptanceCriterionSchema: z.ZodObject<{
173
114
  id: z.ZodString;
174
115
  check: z.ZodString;
175
- inputs: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
116
+ inputs: z.ZodDefault<z.ZodArray<z.ZodString>>;
176
117
  baseline: z.ZodOptional<z.ZodString>;
177
118
  threshold: z.ZodOptional<z.ZodString>;
178
119
  producer: z.ZodString;
179
120
  independent: z.ZodDefault<z.ZodBoolean>;
180
121
  mandatory: z.ZodDefault<z.ZodBoolean>;
181
- }, "strict", z.ZodTypeAny, {
182
- id: string;
183
- check: string;
184
- inputs: string[];
185
- producer: string;
186
- independent: boolean;
187
- mandatory: boolean;
188
- threshold?: string | undefined;
189
- baseline?: string | undefined;
190
- }, {
191
- id: string;
192
- check: string;
193
- producer: string;
194
- threshold?: string | undefined;
195
- baseline?: string | undefined;
196
- inputs?: string[] | undefined;
197
- independent?: boolean | undefined;
198
- mandatory?: boolean | undefined;
199
- }>;
122
+ }, z.core.$strict>;
200
123
  export declare const budgetSpecSchema: z.ZodObject<{
201
124
  currency: z.ZodString;
202
- ceilingMinor: z.ZodEffects<z.ZodNumber, number, number>;
125
+ ceilingMinor: z.ZodNumber;
203
126
  tokens: z.ZodOptional<z.ZodNumber>;
204
127
  wallTimeSeconds: z.ZodOptional<z.ZodNumber>;
205
128
  concurrency: z.ZodOptional<z.ZodNumber>;
206
129
  retries: z.ZodOptional<z.ZodNumber>;
207
- }, "strict", z.ZodTypeAny, {
208
- currency: string;
209
- ceilingMinor: number;
210
- concurrency?: number | undefined;
211
- tokens?: number | undefined;
212
- wallTimeSeconds?: number | undefined;
213
- retries?: number | undefined;
214
- }, {
215
- currency: string;
216
- ceilingMinor: number;
217
- concurrency?: number | undefined;
218
- tokens?: number | undefined;
219
- wallTimeSeconds?: number | undefined;
220
- retries?: number | undefined;
221
- }>;
130
+ }, z.core.$strict>;
222
131
  export declare const planBodySchema: z.ZodObject<{
223
132
  tasks: z.ZodArray<z.ZodObject<{
224
133
  id: z.ZodString;
225
134
  title: z.ZodString;
226
- dependsOn: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
135
+ dependsOn: z.ZodDefault<z.ZodArray<z.ZodString>>;
227
136
  executor: z.ZodObject<{
228
- mode: z.ZodEnum<["durable-executor", "session-bound"]>;
137
+ mode: z.ZodEnum<{
138
+ "durable-executor": "durable-executor";
139
+ "session-bound": "session-bound";
140
+ }>;
229
141
  requirement: z.ZodString;
230
- }, "strict", z.ZodTypeAny, {
231
- mode: "durable-executor" | "session-bound";
232
- requirement: string;
233
- }, {
234
- mode: "durable-executor" | "session-bound";
235
- requirement: string;
236
- }>;
237
- capabilityCeiling: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
142
+ }, z.core.$strict>;
143
+ capabilityCeiling: z.ZodDefault<z.ZodArray<z.ZodString>>;
238
144
  estimatedCostMinor: z.ZodDefault<z.ZodNumber>;
239
145
  checkpoint: z.ZodOptional<z.ZodString>;
240
- acceptanceEvidence: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
241
- }, "strict", z.ZodTypeAny, {
242
- id: string;
243
- title: string;
244
- dependsOn: string[];
245
- executor: {
246
- mode: "durable-executor" | "session-bound";
247
- requirement: string;
248
- };
249
- capabilityCeiling: string[];
250
- estimatedCostMinor: number;
251
- acceptanceEvidence: string[];
252
- checkpoint?: string | undefined;
253
- }, {
254
- id: string;
255
- title: string;
256
- executor: {
257
- mode: "durable-executor" | "session-bound";
258
- requirement: string;
259
- };
260
- checkpoint?: string | undefined;
261
- dependsOn?: string[] | undefined;
262
- capabilityCeiling?: string[] | undefined;
263
- estimatedCostMinor?: number | undefined;
264
- acceptanceEvidence?: string[] | undefined;
265
- }>, "many">;
146
+ acceptanceEvidence: z.ZodDefault<z.ZodArray<z.ZodString>>;
147
+ }, z.core.$strict>>;
266
148
  acceptance: z.ZodArray<z.ZodObject<{
267
149
  id: z.ZodString;
268
150
  check: z.ZodString;
269
- inputs: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
151
+ inputs: z.ZodDefault<z.ZodArray<z.ZodString>>;
270
152
  baseline: z.ZodOptional<z.ZodString>;
271
153
  threshold: z.ZodOptional<z.ZodString>;
272
154
  producer: z.ZodString;
273
155
  independent: z.ZodDefault<z.ZodBoolean>;
274
156
  mandatory: z.ZodDefault<z.ZodBoolean>;
275
- }, "strict", z.ZodTypeAny, {
276
- id: string;
277
- check: string;
278
- inputs: string[];
279
- producer: string;
280
- independent: boolean;
281
- mandatory: boolean;
282
- threshold?: string | undefined;
283
- baseline?: string | undefined;
284
- }, {
285
- id: string;
286
- check: string;
287
- producer: string;
288
- threshold?: string | undefined;
289
- baseline?: string | undefined;
290
- inputs?: string[] | undefined;
291
- independent?: boolean | undefined;
292
- mandatory?: boolean | undefined;
293
- }>, "many">;
157
+ }, z.core.$strict>>;
294
158
  budget: z.ZodObject<{
295
159
  currency: z.ZodString;
296
- ceilingMinor: z.ZodEffects<z.ZodNumber, number, number>;
160
+ ceilingMinor: z.ZodNumber;
297
161
  tokens: z.ZodOptional<z.ZodNumber>;
298
162
  wallTimeSeconds: z.ZodOptional<z.ZodNumber>;
299
163
  concurrency: z.ZodOptional<z.ZodNumber>;
300
164
  retries: z.ZodOptional<z.ZodNumber>;
301
- }, "strict", z.ZodTypeAny, {
302
- currency: string;
303
- ceilingMinor: number;
304
- concurrency?: number | undefined;
305
- tokens?: number | undefined;
306
- wallTimeSeconds?: number | undefined;
307
- retries?: number | undefined;
308
- }, {
309
- currency: string;
310
- ceilingMinor: number;
311
- concurrency?: number | undefined;
312
- tokens?: number | undefined;
313
- wallTimeSeconds?: number | undefined;
314
- retries?: number | undefined;
315
- }>;
165
+ }, z.core.$strict>;
316
166
  scope: z.ZodDefault<z.ZodObject<{
317
- capabilities: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
318
- }, "strict", z.ZodTypeAny, {
319
- capabilities: string[];
320
- }, {
321
- capabilities?: string[] | undefined;
322
- }>>;
323
- }, "strict", z.ZodTypeAny, {
324
- tasks: {
325
- id: string;
326
- title: string;
327
- dependsOn: string[];
328
- executor: {
329
- mode: "durable-executor" | "session-bound";
330
- requirement: string;
331
- };
332
- capabilityCeiling: string[];
333
- estimatedCostMinor: number;
334
- acceptanceEvidence: string[];
335
- checkpoint?: string | undefined;
336
- }[];
337
- scope: {
338
- capabilities: string[];
339
- };
340
- budget: {
341
- currency: string;
342
- ceilingMinor: number;
343
- concurrency?: number | undefined;
344
- tokens?: number | undefined;
345
- wallTimeSeconds?: number | undefined;
346
- retries?: number | undefined;
347
- };
348
- acceptance: {
349
- id: string;
350
- check: string;
351
- inputs: string[];
352
- producer: string;
353
- independent: boolean;
354
- mandatory: boolean;
355
- threshold?: string | undefined;
356
- baseline?: string | undefined;
357
- }[];
358
- }, {
359
- tasks: {
360
- id: string;
361
- title: string;
362
- executor: {
363
- mode: "durable-executor" | "session-bound";
364
- requirement: string;
365
- };
366
- checkpoint?: string | undefined;
367
- dependsOn?: string[] | undefined;
368
- capabilityCeiling?: string[] | undefined;
369
- estimatedCostMinor?: number | undefined;
370
- acceptanceEvidence?: string[] | undefined;
371
- }[];
372
- budget: {
373
- currency: string;
374
- ceilingMinor: number;
375
- concurrency?: number | undefined;
376
- tokens?: number | undefined;
377
- wallTimeSeconds?: number | undefined;
378
- retries?: number | undefined;
379
- };
380
- acceptance: {
381
- id: string;
382
- check: string;
383
- producer: string;
384
- threshold?: string | undefined;
385
- baseline?: string | undefined;
386
- inputs?: string[] | undefined;
387
- independent?: boolean | undefined;
388
- mandatory?: boolean | undefined;
389
- }[];
390
- scope?: {
391
- capabilities?: string[] | undefined;
392
- } | undefined;
393
- }>;
167
+ capabilities: z.ZodDefault<z.ZodArray<z.ZodString>>;
168
+ }, z.core.$strict>>;
169
+ }, z.core.$strict>;
394
170
  export type PlanBody = z.infer<typeof planBodySchema>;
395
171
  export type TaskSpec = z.infer<typeof taskSpecSchema>;
396
172
  export declare const createInputSchema: z.ZodObject<{
397
173
  requestId: z.ZodString;
398
174
  objective: z.ZodString;
399
- }, "strict", z.ZodTypeAny, {
400
- requestId: string;
401
- objective: string;
402
- }, {
403
- requestId: string;
404
- objective: string;
405
- }>;
175
+ }, z.core.$strict>;
406
176
  export declare const planInputSchema: z.ZodObject<{
407
177
  requestId: z.ZodString;
408
178
  missionId: z.ZodString;
@@ -411,294 +181,63 @@ export declare const planInputSchema: z.ZodObject<{
411
181
  tasks: z.ZodArray<z.ZodObject<{
412
182
  id: z.ZodString;
413
183
  title: z.ZodString;
414
- dependsOn: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
184
+ dependsOn: z.ZodDefault<z.ZodArray<z.ZodString>>;
415
185
  executor: z.ZodObject<{
416
- mode: z.ZodEnum<["durable-executor", "session-bound"]>;
186
+ mode: z.ZodEnum<{
187
+ "durable-executor": "durable-executor";
188
+ "session-bound": "session-bound";
189
+ }>;
417
190
  requirement: z.ZodString;
418
- }, "strict", z.ZodTypeAny, {
419
- mode: "durable-executor" | "session-bound";
420
- requirement: string;
421
- }, {
422
- mode: "durable-executor" | "session-bound";
423
- requirement: string;
424
- }>;
425
- capabilityCeiling: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
191
+ }, z.core.$strict>;
192
+ capabilityCeiling: z.ZodDefault<z.ZodArray<z.ZodString>>;
426
193
  estimatedCostMinor: z.ZodDefault<z.ZodNumber>;
427
194
  checkpoint: z.ZodOptional<z.ZodString>;
428
- acceptanceEvidence: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
429
- }, "strict", z.ZodTypeAny, {
430
- id: string;
431
- title: string;
432
- dependsOn: string[];
433
- executor: {
434
- mode: "durable-executor" | "session-bound";
435
- requirement: string;
436
- };
437
- capabilityCeiling: string[];
438
- estimatedCostMinor: number;
439
- acceptanceEvidence: string[];
440
- checkpoint?: string | undefined;
441
- }, {
442
- id: string;
443
- title: string;
444
- executor: {
445
- mode: "durable-executor" | "session-bound";
446
- requirement: string;
447
- };
448
- checkpoint?: string | undefined;
449
- dependsOn?: string[] | undefined;
450
- capabilityCeiling?: string[] | undefined;
451
- estimatedCostMinor?: number | undefined;
452
- acceptanceEvidence?: string[] | undefined;
453
- }>, "many">;
195
+ acceptanceEvidence: z.ZodDefault<z.ZodArray<z.ZodString>>;
196
+ }, z.core.$strict>>;
454
197
  acceptance: z.ZodArray<z.ZodObject<{
455
198
  id: z.ZodString;
456
199
  check: z.ZodString;
457
- inputs: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
200
+ inputs: z.ZodDefault<z.ZodArray<z.ZodString>>;
458
201
  baseline: z.ZodOptional<z.ZodString>;
459
202
  threshold: z.ZodOptional<z.ZodString>;
460
203
  producer: z.ZodString;
461
204
  independent: z.ZodDefault<z.ZodBoolean>;
462
205
  mandatory: z.ZodDefault<z.ZodBoolean>;
463
- }, "strict", z.ZodTypeAny, {
464
- id: string;
465
- check: string;
466
- inputs: string[];
467
- producer: string;
468
- independent: boolean;
469
- mandatory: boolean;
470
- threshold?: string | undefined;
471
- baseline?: string | undefined;
472
- }, {
473
- id: string;
474
- check: string;
475
- producer: string;
476
- threshold?: string | undefined;
477
- baseline?: string | undefined;
478
- inputs?: string[] | undefined;
479
- independent?: boolean | undefined;
480
- mandatory?: boolean | undefined;
481
- }>, "many">;
206
+ }, z.core.$strict>>;
482
207
  budget: z.ZodObject<{
483
208
  currency: z.ZodString;
484
- ceilingMinor: z.ZodEffects<z.ZodNumber, number, number>;
209
+ ceilingMinor: z.ZodNumber;
485
210
  tokens: z.ZodOptional<z.ZodNumber>;
486
211
  wallTimeSeconds: z.ZodOptional<z.ZodNumber>;
487
212
  concurrency: z.ZodOptional<z.ZodNumber>;
488
213
  retries: z.ZodOptional<z.ZodNumber>;
489
- }, "strict", z.ZodTypeAny, {
490
- currency: string;
491
- ceilingMinor: number;
492
- concurrency?: number | undefined;
493
- tokens?: number | undefined;
494
- wallTimeSeconds?: number | undefined;
495
- retries?: number | undefined;
496
- }, {
497
- currency: string;
498
- ceilingMinor: number;
499
- concurrency?: number | undefined;
500
- tokens?: number | undefined;
501
- wallTimeSeconds?: number | undefined;
502
- retries?: number | undefined;
503
- }>;
214
+ }, z.core.$strict>;
504
215
  scope: z.ZodDefault<z.ZodObject<{
505
- capabilities: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
506
- }, "strict", z.ZodTypeAny, {
507
- capabilities: string[];
508
- }, {
509
- capabilities?: string[] | undefined;
510
- }>>;
511
- }, "strict", z.ZodTypeAny, {
512
- tasks: {
513
- id: string;
514
- title: string;
515
- dependsOn: string[];
516
- executor: {
517
- mode: "durable-executor" | "session-bound";
518
- requirement: string;
519
- };
520
- capabilityCeiling: string[];
521
- estimatedCostMinor: number;
522
- acceptanceEvidence: string[];
523
- checkpoint?: string | undefined;
524
- }[];
525
- scope: {
526
- capabilities: string[];
527
- };
528
- budget: {
529
- currency: string;
530
- ceilingMinor: number;
531
- concurrency?: number | undefined;
532
- tokens?: number | undefined;
533
- wallTimeSeconds?: number | undefined;
534
- retries?: number | undefined;
535
- };
536
- acceptance: {
537
- id: string;
538
- check: string;
539
- inputs: string[];
540
- producer: string;
541
- independent: boolean;
542
- mandatory: boolean;
543
- threshold?: string | undefined;
544
- baseline?: string | undefined;
545
- }[];
546
- }, {
547
- tasks: {
548
- id: string;
549
- title: string;
550
- executor: {
551
- mode: "durable-executor" | "session-bound";
552
- requirement: string;
553
- };
554
- checkpoint?: string | undefined;
555
- dependsOn?: string[] | undefined;
556
- capabilityCeiling?: string[] | undefined;
557
- estimatedCostMinor?: number | undefined;
558
- acceptanceEvidence?: string[] | undefined;
559
- }[];
560
- budget: {
561
- currency: string;
562
- ceilingMinor: number;
563
- concurrency?: number | undefined;
564
- tokens?: number | undefined;
565
- wallTimeSeconds?: number | undefined;
566
- retries?: number | undefined;
567
- };
568
- acceptance: {
569
- id: string;
570
- check: string;
571
- producer: string;
572
- threshold?: string | undefined;
573
- baseline?: string | undefined;
574
- inputs?: string[] | undefined;
575
- independent?: boolean | undefined;
576
- mandatory?: boolean | undefined;
577
- }[];
578
- scope?: {
579
- capabilities?: string[] | undefined;
580
- } | undefined;
581
- }>;
582
- }, "strict", z.ZodTypeAny, {
583
- plan: {
584
- tasks: {
585
- id: string;
586
- title: string;
587
- dependsOn: string[];
588
- executor: {
589
- mode: "durable-executor" | "session-bound";
590
- requirement: string;
591
- };
592
- capabilityCeiling: string[];
593
- estimatedCostMinor: number;
594
- acceptanceEvidence: string[];
595
- checkpoint?: string | undefined;
596
- }[];
597
- scope: {
598
- capabilities: string[];
599
- };
600
- budget: {
601
- currency: string;
602
- ceilingMinor: number;
603
- concurrency?: number | undefined;
604
- tokens?: number | undefined;
605
- wallTimeSeconds?: number | undefined;
606
- retries?: number | undefined;
607
- };
608
- acceptance: {
609
- id: string;
610
- check: string;
611
- inputs: string[];
612
- producer: string;
613
- independent: boolean;
614
- mandatory: boolean;
615
- threshold?: string | undefined;
616
- baseline?: string | undefined;
617
- }[];
618
- };
619
- requestId: string;
620
- missionId: string;
621
- expectedRevision: number;
622
- }, {
623
- plan: {
624
- tasks: {
625
- id: string;
626
- title: string;
627
- executor: {
628
- mode: "durable-executor" | "session-bound";
629
- requirement: string;
630
- };
631
- checkpoint?: string | undefined;
632
- dependsOn?: string[] | undefined;
633
- capabilityCeiling?: string[] | undefined;
634
- estimatedCostMinor?: number | undefined;
635
- acceptanceEvidence?: string[] | undefined;
636
- }[];
637
- budget: {
638
- currency: string;
639
- ceilingMinor: number;
640
- concurrency?: number | undefined;
641
- tokens?: number | undefined;
642
- wallTimeSeconds?: number | undefined;
643
- retries?: number | undefined;
644
- };
645
- acceptance: {
646
- id: string;
647
- check: string;
648
- producer: string;
649
- threshold?: string | undefined;
650
- baseline?: string | undefined;
651
- inputs?: string[] | undefined;
652
- independent?: boolean | undefined;
653
- mandatory?: boolean | undefined;
654
- }[];
655
- scope?: {
656
- capabilities?: string[] | undefined;
657
- } | undefined;
658
- };
659
- requestId: string;
660
- missionId: string;
661
- expectedRevision: number;
662
- }>;
216
+ capabilities: z.ZodDefault<z.ZodArray<z.ZodString>>;
217
+ }, z.core.$strict>>;
218
+ }, z.core.$strict>;
219
+ }, z.core.$strict>;
663
220
  export declare const getInputSchema: z.ZodObject<{
664
221
  missionId: z.ZodOptional<z.ZodString>;
665
- }, "strict", z.ZodTypeAny, {
666
- missionId?: string | undefined;
667
- }, {
668
- missionId?: string | undefined;
669
- }>;
222
+ }, z.core.$strict>;
670
223
  export declare const eventsInputSchema: z.ZodObject<{
671
224
  missionId: z.ZodString;
672
225
  afterSequence: z.ZodDefault<z.ZodNumber>;
673
226
  limit: z.ZodDefault<z.ZodNumber>;
674
- }, "strict", z.ZodTypeAny, {
675
- limit: number;
676
- missionId: string;
677
- afterSequence: number;
678
- }, {
679
- missionId: string;
680
- limit?: number | undefined;
681
- afterSequence?: number | undefined;
682
- }>;
227
+ }, z.core.$strict>;
683
228
  export declare const requestActionInputSchema: z.ZodObject<{
684
229
  requestId: z.ZodString;
685
230
  missionId: z.ZodString;
686
231
  expectedRevision: z.ZodNumber;
687
- action: z.ZodEnum<["pause", "resume", "cancel", "requestAuthorization", "admit"]>;
232
+ action: z.ZodEnum<{
233
+ pause: "pause";
234
+ resume: "resume";
235
+ cancel: "cancel";
236
+ requestAuthorization: "requestAuthorization";
237
+ admit: "admit";
238
+ }>;
688
239
  reason: z.ZodOptional<z.ZodString>;
689
- }, "strict", z.ZodTypeAny, {
690
- action: "pause" | "resume" | "cancel" | "requestAuthorization" | "admit";
691
- requestId: string;
692
- missionId: string;
693
- expectedRevision: number;
694
- reason?: string | undefined;
695
- }, {
696
- action: "pause" | "resume" | "cancel" | "requestAuthorization" | "admit";
697
- requestId: string;
698
- missionId: string;
699
- expectedRevision: number;
700
- reason?: string | undefined;
701
- }>;
240
+ }, z.core.$strict>;
702
241
  export type CreateInput = z.infer<typeof createInputSchema>;
703
242
  export type PlanInput = z.infer<typeof planInputSchema>;
704
243
  export type GetInput = z.infer<typeof getInputSchema>;
@@ -730,6 +269,11 @@ export interface MissionEvent {
730
269
  readonly prevHash: string;
731
270
  readonly hash: string;
732
271
  }
733
- export declare const executorConnectionSchema: z.ZodEnum<["healthy", "stale", "disconnected", "unknown"]>;
272
+ export declare const executorConnectionSchema: z.ZodEnum<{
273
+ unknown: "unknown";
274
+ healthy: "healthy";
275
+ stale: "stale";
276
+ disconnected: "disconnected";
277
+ }>;
734
278
  export type ExecutorConnection = z.infer<typeof executorConnectionSchema>;
735
279
  //# sourceMappingURL=schemas.d.ts.map