@ai-dev-orchestrator/schemas 0.1.2 → 0.1.4

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.
@@ -12,8 +12,8 @@ export type StateType = z.infer<typeof stateTypeSchema>;
12
12
  export declare const TRANSITION_TRIGGERS: readonly ["completion", "failure", "review_approved", "review_rejected", "iteration_exhausted", "judge_approved", "judge_rejected", "escalation", "human_input", "human_approved", "human_rejected", "timeout"];
13
13
  export declare const transitionTriggerSchema: z.ZodEnum<{
14
14
  timeout: "timeout";
15
- failure: "failure";
16
15
  completion: "completion";
16
+ failure: "failure";
17
17
  review_approved: "review_approved";
18
18
  review_rejected: "review_rejected";
19
19
  iteration_exhausted: "iteration_exhausted";
@@ -58,8 +58,8 @@ export declare const actionTypeSchema: z.ZodEnum<{
58
58
  store_artifact: "store_artifact";
59
59
  record_journal: "record_journal";
60
60
  generate_agreement: "generate_agreement";
61
- produce_manifest: "produce_manifest";
62
61
  notify_human: "notify_human";
62
+ produce_manifest: "produce_manifest";
63
63
  }>;
64
64
  export type ActionType = z.infer<typeof actionTypeSchema>;
65
65
  export declare const artifactExistsGuardSchema: z.ZodObject<{
@@ -242,8 +242,8 @@ export declare const previousRunPatternGuardSchema: z.ZodObject<{
242
242
  outcome: z.ZodEnum<{
243
243
  escalated: "escalated";
244
244
  completed: "completed";
245
- failed: "failed";
246
245
  aborted: "aborted";
246
+ failed: "failed";
247
247
  }>;
248
248
  workflowVariant: z.ZodOptional<z.ZodString>;
249
249
  minOccurrences: z.ZodOptional<z.ZodNumber>;
@@ -424,8 +424,8 @@ export declare const guardSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
424
424
  outcome: z.ZodEnum<{
425
425
  escalated: "escalated";
426
426
  completed: "completed";
427
- failed: "failed";
428
427
  aborted: "aborted";
428
+ failed: "failed";
429
429
  }>;
430
430
  workflowVariant: z.ZodOptional<z.ZodString>;
431
431
  minOccurrences: z.ZodOptional<z.ZodNumber>;
@@ -975,8 +975,8 @@ export declare const transitionDefinitionSchema: z.ZodObject<{
975
975
  target: z.ZodString;
976
976
  trigger: z.ZodEnum<{
977
977
  timeout: "timeout";
978
- failure: "failure";
979
978
  completion: "completion";
979
+ failure: "failure";
980
980
  review_approved: "review_approved";
981
981
  review_rejected: "review_rejected";
982
982
  iteration_exhausted: "iteration_exhausted";
@@ -1132,8 +1132,8 @@ export declare const transitionDefinitionSchema: z.ZodObject<{
1132
1132
  outcome: z.ZodEnum<{
1133
1133
  escalated: "escalated";
1134
1134
  completed: "completed";
1135
- failed: "failed";
1136
1135
  aborted: "aborted";
1136
+ failed: "failed";
1137
1137
  }>;
1138
1138
  workflowVariant: z.ZodOptional<z.ZodString>;
1139
1139
  minOccurrences: z.ZodOptional<z.ZodNumber>;
@@ -1688,8 +1688,8 @@ export declare const stateDefinitionSchema: z.ZodObject<{
1688
1688
  target: z.ZodString;
1689
1689
  trigger: z.ZodEnum<{
1690
1690
  timeout: "timeout";
1691
- failure: "failure";
1692
1691
  completion: "completion";
1692
+ failure: "failure";
1693
1693
  review_approved: "review_approved";
1694
1694
  review_rejected: "review_rejected";
1695
1695
  iteration_exhausted: "iteration_exhausted";
@@ -1845,8 +1845,8 @@ export declare const stateDefinitionSchema: z.ZodObject<{
1845
1845
  outcome: z.ZodEnum<{
1846
1846
  escalated: "escalated";
1847
1847
  completed: "completed";
1848
- failed: "failed";
1849
1848
  aborted: "aborted";
1849
+ failed: "failed";
1850
1850
  }>;
1851
1851
  workflowVariant: z.ZodOptional<z.ZodString>;
1852
1852
  minOccurrences: z.ZodOptional<z.ZodNumber>;
@@ -2410,8 +2410,8 @@ export declare const workflowDefinitionSchema: z.ZodObject<{
2410
2410
  target: z.ZodString;
2411
2411
  trigger: z.ZodEnum<{
2412
2412
  timeout: "timeout";
2413
- failure: "failure";
2414
2413
  completion: "completion";
2414
+ failure: "failure";
2415
2415
  review_approved: "review_approved";
2416
2416
  review_rejected: "review_rejected";
2417
2417
  iteration_exhausted: "iteration_exhausted";
@@ -2567,8 +2567,8 @@ export declare const workflowDefinitionSchema: z.ZodObject<{
2567
2567
  outcome: z.ZodEnum<{
2568
2568
  escalated: "escalated";
2569
2569
  completed: "completed";
2570
- failed: "failed";
2571
2570
  aborted: "aborted";
2571
+ failed: "failed";
2572
2572
  }>;
2573
2573
  workflowVariant: z.ZodOptional<z.ZodString>;
2574
2574
  minOccurrences: z.ZodOptional<z.ZodNumber>;
@@ -2949,6 +2949,7 @@ export declare const runResultSchema: z.ZodObject<{
2949
2949
  }, z.core.$strip>>;
2950
2950
  reportPath: z.ZodOptional<z.ZodString>;
2951
2951
  }, z.core.$strip>;
2952
+ answerAccepted: z.ZodOptional<z.ZodBoolean>;
2952
2953
  }, z.core.$strip>;
2953
2954
  export type RunResult = z.infer<typeof runResultSchema>;
2954
2955
  export declare const humanInputSchema: z.ZodObject<{
@@ -2999,6 +3000,13 @@ export declare const humanInputSchema: z.ZodObject<{
2999
3000
  version: z.ZodNumber;
3000
3001
  checksum: z.ZodString;
3001
3002
  }, z.core.$strip>>;
3003
+ sessionId: z.ZodOptional<z.ZodString>;
3004
+ requestId: z.ZodOptional<z.ZodString>;
3005
+ waitIdentity: z.ZodOptional<z.ZodObject<{
3006
+ stateId: z.ZodString;
3007
+ requestingState: z.ZodString;
3008
+ waitingSince: z.ZodString;
3009
+ }, z.core.$strip>>;
3002
3010
  }, z.core.$strip>;
3003
3011
  export type HumanInput = z.infer<typeof humanInputSchema>;
3004
3012
  export declare const workflowRunConfigSchema: z.ZodObject<{
@@ -3505,8 +3513,8 @@ export declare const workflowRunConfigSchema: z.ZodObject<{
3505
3513
  target: z.ZodString;
3506
3514
  trigger: z.ZodEnum<{
3507
3515
  timeout: "timeout";
3508
- failure: "failure";
3509
3516
  completion: "completion";
3517
+ failure: "failure";
3510
3518
  review_approved: "review_approved";
3511
3519
  review_rejected: "review_rejected";
3512
3520
  iteration_exhausted: "iteration_exhausted";
@@ -3662,8 +3670,8 @@ export declare const workflowRunConfigSchema: z.ZodObject<{
3662
3670
  outcome: z.ZodEnum<{
3663
3671
  escalated: "escalated";
3664
3672
  completed: "completed";
3665
- failed: "failed";
3666
3673
  aborted: "aborted";
3674
+ failed: "failed";
3667
3675
  }>;
3668
3676
  workflowVariant: z.ZodOptional<z.ZodString>;
3669
3677
  minOccurrences: z.ZodOptional<z.ZodNumber>;
@@ -3992,8 +4000,8 @@ export declare const guardResultSchema: z.ZodObject<{
3992
4000
  outcome: z.ZodEnum<{
3993
4001
  escalated: "escalated";
3994
4002
  completed: "completed";
3995
- failed: "failed";
3996
4003
  aborted: "aborted";
4004
+ failed: "failed";
3997
4005
  }>;
3998
4006
  workflowVariant: z.ZodOptional<z.ZodString>;
3999
4007
  minOccurrences: z.ZodOptional<z.ZodNumber>;
@@ -4054,8 +4062,8 @@ export declare const evaluatedTransitionSchema: z.ZodObject<{
4054
4062
  target: z.ZodString;
4055
4063
  trigger: z.ZodEnum<{
4056
4064
  timeout: "timeout";
4057
- failure: "failure";
4058
4065
  completion: "completion";
4066
+ failure: "failure";
4059
4067
  review_approved: "review_approved";
4060
4068
  review_rejected: "review_rejected";
4061
4069
  iteration_exhausted: "iteration_exhausted";
@@ -4211,8 +4219,8 @@ export declare const evaluatedTransitionSchema: z.ZodObject<{
4211
4219
  outcome: z.ZodEnum<{
4212
4220
  escalated: "escalated";
4213
4221
  completed: "completed";
4214
- failed: "failed";
4215
4222
  aborted: "aborted";
4223
+ failed: "failed";
4216
4224
  }>;
4217
4225
  workflowVariant: z.ZodOptional<z.ZodString>;
4218
4226
  minOccurrences: z.ZodOptional<z.ZodNumber>;
@@ -4413,8 +4421,8 @@ export declare const evaluatedTransitionSchema: z.ZodObject<{
4413
4421
  outcome: z.ZodEnum<{
4414
4422
  escalated: "escalated";
4415
4423
  completed: "completed";
4416
- failed: "failed";
4417
4424
  aborted: "aborted";
4425
+ failed: "failed";
4418
4426
  }>;
4419
4427
  workflowVariant: z.ZodOptional<z.ZodString>;
4420
4428
  minOccurrences: z.ZodOptional<z.ZodNumber>;
@@ -4483,8 +4491,8 @@ export declare const transitionRecordSchema: z.ZodObject<{
4483
4491
  to: z.ZodString;
4484
4492
  trigger: z.ZodEnum<{
4485
4493
  timeout: "timeout";
4486
- failure: "failure";
4487
4494
  completion: "completion";
4495
+ failure: "failure";
4488
4496
  review_approved: "review_approved";
4489
4497
  review_rejected: "review_rejected";
4490
4498
  iteration_exhausted: "iteration_exhausted";
@@ -4641,8 +4649,8 @@ export declare const transitionRecordSchema: z.ZodObject<{
4641
4649
  outcome: z.ZodEnum<{
4642
4650
  escalated: "escalated";
4643
4651
  completed: "completed";
4644
- failed: "failed";
4645
4652
  aborted: "aborted";
4653
+ failed: "failed";
4646
4654
  }>;
4647
4655
  workflowVariant: z.ZodOptional<z.ZodString>;
4648
4656
  minOccurrences: z.ZodOptional<z.ZodNumber>;
@@ -5091,6 +5099,79 @@ export declare const transitionRecordSchema: z.ZodObject<{
5091
5099
  checksum: z.ZodString;
5092
5100
  }, z.core.$strip>>;
5093
5101
  model: z.ZodOptional<z.ZodString>;
5102
+ taskId: z.ZodOptional<z.ZodString>;
5103
+ sessionOutcome: z.ZodOptional<z.ZodEnum<{
5104
+ completed: "completed";
5105
+ awaiting_human: "awaiting_human";
5106
+ session_active: "session_active";
5107
+ }>>;
5108
+ sessionRef: z.ZodOptional<z.ZodObject<{
5109
+ sessionId: z.ZodString;
5110
+ runId: z.ZodString;
5111
+ stateId: z.ZodString;
5112
+ role: z.ZodEnum<{
5113
+ judge: "judge";
5114
+ requirements_analyst: "requirements_analyst";
5115
+ context_analyst: "context_analyst";
5116
+ codebase_analyst: "codebase_analyst";
5117
+ planner: "planner";
5118
+ plan_reviewer: "plan_reviewer";
5119
+ implementer: "implementer";
5120
+ test_engineer: "test_engineer";
5121
+ static_reviewer: "static_reviewer";
5122
+ security_reviewer: "security_reviewer";
5123
+ performance_reviewer: "performance_reviewer";
5124
+ adversarial_reviewer: "adversarial_reviewer";
5125
+ design_reviewer: "design_reviewer";
5126
+ docs_reviewer: "docs_reviewer";
5127
+ ux_reviewer: "ux_reviewer";
5128
+ report_synthesizer: "report_synthesizer";
5129
+ remediation_triage: "remediation_triage";
5130
+ verifier: "verifier";
5131
+ summary_writer: "summary_writer";
5132
+ review_findings_writer: "review_findings_writer";
5133
+ acceptance_validator: "acceptance_validator";
5134
+ breakdown_analyst: "breakdown_analyst";
5135
+ decomposer: "decomposer";
5136
+ decomposition_reviewer: "decomposition_reviewer";
5137
+ task_spec_writer: "task_spec_writer";
5138
+ }>;
5139
+ transport: z.ZodEnum<{
5140
+ stdio: "stdio";
5141
+ remote: "remote";
5142
+ }>;
5143
+ }, z.core.$strip>>;
5144
+ pendingRequest: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
5145
+ requestId: z.ZodString;
5146
+ kind: z.ZodLiteral<"permission">;
5147
+ createdAt: z.ZodString;
5148
+ payload: z.ZodObject<{
5149
+ action: z.ZodString;
5150
+ resource: z.ZodString;
5151
+ detail: z.ZodOptional<z.ZodString>;
5152
+ riskLevel: z.ZodOptional<z.ZodEnum<{
5153
+ high: "high";
5154
+ medium: "medium";
5155
+ low: "low";
5156
+ }>>;
5157
+ externalRequestId: z.ZodOptional<z.ZodString>;
5158
+ toolInput: z.ZodOptional<z.ZodString>;
5159
+ granted: z.ZodOptional<z.ZodBoolean>;
5160
+ reason: z.ZodOptional<z.ZodString>;
5161
+ timedOut: z.ZodOptional<z.ZodBoolean>;
5162
+ aborted: z.ZodOptional<z.ZodBoolean>;
5163
+ }, z.core.$catchall<z.ZodUnknown>>;
5164
+ }, z.core.$strip>, z.ZodObject<{
5165
+ requestId: z.ZodString;
5166
+ kind: z.ZodLiteral<"clarification">;
5167
+ createdAt: z.ZodString;
5168
+ payload: z.ZodObject<{
5169
+ question: z.ZodString;
5170
+ context: z.ZodOptional<z.ZodString>;
5171
+ options: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
5172
+ answer: z.ZodOptional<z.ZodString>;
5173
+ }, z.core.$catchall<z.ZodUnknown>>;
5174
+ }, z.core.$strip>], "kind">>;
5094
5175
  }, z.core.$strip>>>>;
5095
5176
  usageSnapshot: z.ZodOptional<z.ZodObject<{
5096
5177
  totalInputTokens: z.ZodNumber;
@@ -5102,8 +5183,8 @@ export declare const transitionRecordSchema: z.ZodObject<{
5102
5183
  }, z.core.$strip>>;
5103
5184
  }, z.core.$strip>>;
5104
5185
  sessionOutcome: z.ZodOptional<z.ZodEnum<{
5105
- awaiting_human: "awaiting_human";
5106
5186
  completed: "completed";
5187
+ awaiting_human: "awaiting_human";
5107
5188
  session_active: "session_active";
5108
5189
  }>>;
5109
5190
  sessionRef: z.ZodOptional<z.ZodObject<{
@@ -5252,6 +5333,79 @@ export declare const workerResultSchema: z.ZodObject<{
5252
5333
  checksum: z.ZodString;
5253
5334
  }, z.core.$strip>>;
5254
5335
  model: z.ZodOptional<z.ZodString>;
5336
+ taskId: z.ZodOptional<z.ZodString>;
5337
+ sessionOutcome: z.ZodOptional<z.ZodEnum<{
5338
+ completed: "completed";
5339
+ awaiting_human: "awaiting_human";
5340
+ session_active: "session_active";
5341
+ }>>;
5342
+ sessionRef: z.ZodOptional<z.ZodObject<{
5343
+ sessionId: z.ZodString;
5344
+ runId: z.ZodString;
5345
+ stateId: z.ZodString;
5346
+ role: z.ZodEnum<{
5347
+ judge: "judge";
5348
+ requirements_analyst: "requirements_analyst";
5349
+ context_analyst: "context_analyst";
5350
+ codebase_analyst: "codebase_analyst";
5351
+ planner: "planner";
5352
+ plan_reviewer: "plan_reviewer";
5353
+ implementer: "implementer";
5354
+ test_engineer: "test_engineer";
5355
+ static_reviewer: "static_reviewer";
5356
+ security_reviewer: "security_reviewer";
5357
+ performance_reviewer: "performance_reviewer";
5358
+ adversarial_reviewer: "adversarial_reviewer";
5359
+ design_reviewer: "design_reviewer";
5360
+ docs_reviewer: "docs_reviewer";
5361
+ ux_reviewer: "ux_reviewer";
5362
+ report_synthesizer: "report_synthesizer";
5363
+ remediation_triage: "remediation_triage";
5364
+ verifier: "verifier";
5365
+ summary_writer: "summary_writer";
5366
+ review_findings_writer: "review_findings_writer";
5367
+ acceptance_validator: "acceptance_validator";
5368
+ breakdown_analyst: "breakdown_analyst";
5369
+ decomposer: "decomposer";
5370
+ decomposition_reviewer: "decomposition_reviewer";
5371
+ task_spec_writer: "task_spec_writer";
5372
+ }>;
5373
+ transport: z.ZodEnum<{
5374
+ stdio: "stdio";
5375
+ remote: "remote";
5376
+ }>;
5377
+ }, z.core.$strip>>;
5378
+ pendingRequest: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
5379
+ requestId: z.ZodString;
5380
+ kind: z.ZodLiteral<"permission">;
5381
+ createdAt: z.ZodString;
5382
+ payload: z.ZodObject<{
5383
+ action: z.ZodString;
5384
+ resource: z.ZodString;
5385
+ detail: z.ZodOptional<z.ZodString>;
5386
+ riskLevel: z.ZodOptional<z.ZodEnum<{
5387
+ high: "high";
5388
+ medium: "medium";
5389
+ low: "low";
5390
+ }>>;
5391
+ externalRequestId: z.ZodOptional<z.ZodString>;
5392
+ toolInput: z.ZodOptional<z.ZodString>;
5393
+ granted: z.ZodOptional<z.ZodBoolean>;
5394
+ reason: z.ZodOptional<z.ZodString>;
5395
+ timedOut: z.ZodOptional<z.ZodBoolean>;
5396
+ aborted: z.ZodOptional<z.ZodBoolean>;
5397
+ }, z.core.$catchall<z.ZodUnknown>>;
5398
+ }, z.core.$strip>, z.ZodObject<{
5399
+ requestId: z.ZodString;
5400
+ kind: z.ZodLiteral<"clarification">;
5401
+ createdAt: z.ZodString;
5402
+ payload: z.ZodObject<{
5403
+ question: z.ZodString;
5404
+ context: z.ZodOptional<z.ZodString>;
5405
+ options: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
5406
+ answer: z.ZodOptional<z.ZodString>;
5407
+ }, z.core.$catchall<z.ZodUnknown>>;
5408
+ }, z.core.$strip>], "kind">>;
5255
5409
  }, z.core.$strip>;
5256
5410
  export type WorkerResult = z.infer<typeof workerResultSchema>;
5257
5411
  export declare const actionUsageSnapshotSchema: z.ZodObject<{
@@ -5681,6 +5835,79 @@ export declare const actionResultSchema: z.ZodObject<{
5681
5835
  checksum: z.ZodString;
5682
5836
  }, z.core.$strip>>;
5683
5837
  model: z.ZodOptional<z.ZodString>;
5838
+ taskId: z.ZodOptional<z.ZodString>;
5839
+ sessionOutcome: z.ZodOptional<z.ZodEnum<{
5840
+ completed: "completed";
5841
+ awaiting_human: "awaiting_human";
5842
+ session_active: "session_active";
5843
+ }>>;
5844
+ sessionRef: z.ZodOptional<z.ZodObject<{
5845
+ sessionId: z.ZodString;
5846
+ runId: z.ZodString;
5847
+ stateId: z.ZodString;
5848
+ role: z.ZodEnum<{
5849
+ judge: "judge";
5850
+ requirements_analyst: "requirements_analyst";
5851
+ context_analyst: "context_analyst";
5852
+ codebase_analyst: "codebase_analyst";
5853
+ planner: "planner";
5854
+ plan_reviewer: "plan_reviewer";
5855
+ implementer: "implementer";
5856
+ test_engineer: "test_engineer";
5857
+ static_reviewer: "static_reviewer";
5858
+ security_reviewer: "security_reviewer";
5859
+ performance_reviewer: "performance_reviewer";
5860
+ adversarial_reviewer: "adversarial_reviewer";
5861
+ design_reviewer: "design_reviewer";
5862
+ docs_reviewer: "docs_reviewer";
5863
+ ux_reviewer: "ux_reviewer";
5864
+ report_synthesizer: "report_synthesizer";
5865
+ remediation_triage: "remediation_triage";
5866
+ verifier: "verifier";
5867
+ summary_writer: "summary_writer";
5868
+ review_findings_writer: "review_findings_writer";
5869
+ acceptance_validator: "acceptance_validator";
5870
+ breakdown_analyst: "breakdown_analyst";
5871
+ decomposer: "decomposer";
5872
+ decomposition_reviewer: "decomposition_reviewer";
5873
+ task_spec_writer: "task_spec_writer";
5874
+ }>;
5875
+ transport: z.ZodEnum<{
5876
+ stdio: "stdio";
5877
+ remote: "remote";
5878
+ }>;
5879
+ }, z.core.$strip>>;
5880
+ pendingRequest: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
5881
+ requestId: z.ZodString;
5882
+ kind: z.ZodLiteral<"permission">;
5883
+ createdAt: z.ZodString;
5884
+ payload: z.ZodObject<{
5885
+ action: z.ZodString;
5886
+ resource: z.ZodString;
5887
+ detail: z.ZodOptional<z.ZodString>;
5888
+ riskLevel: z.ZodOptional<z.ZodEnum<{
5889
+ high: "high";
5890
+ medium: "medium";
5891
+ low: "low";
5892
+ }>>;
5893
+ externalRequestId: z.ZodOptional<z.ZodString>;
5894
+ toolInput: z.ZodOptional<z.ZodString>;
5895
+ granted: z.ZodOptional<z.ZodBoolean>;
5896
+ reason: z.ZodOptional<z.ZodString>;
5897
+ timedOut: z.ZodOptional<z.ZodBoolean>;
5898
+ aborted: z.ZodOptional<z.ZodBoolean>;
5899
+ }, z.core.$catchall<z.ZodUnknown>>;
5900
+ }, z.core.$strip>, z.ZodObject<{
5901
+ requestId: z.ZodString;
5902
+ kind: z.ZodLiteral<"clarification">;
5903
+ createdAt: z.ZodString;
5904
+ payload: z.ZodObject<{
5905
+ question: z.ZodString;
5906
+ context: z.ZodOptional<z.ZodString>;
5907
+ options: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
5908
+ answer: z.ZodOptional<z.ZodString>;
5909
+ }, z.core.$catchall<z.ZodUnknown>>;
5910
+ }, z.core.$strip>], "kind">>;
5684
5911
  }, z.core.$strip>>>>;
5685
5912
  usageSnapshot: z.ZodOptional<z.ZodObject<{
5686
5913
  totalInputTokens: z.ZodNumber;
@@ -5692,8 +5919,8 @@ export declare const actionResultSchema: z.ZodObject<{
5692
5919
  }, z.core.$strip>>;
5693
5920
  }, z.core.$strip>>;
5694
5921
  sessionOutcome: z.ZodOptional<z.ZodEnum<{
5695
- awaiting_human: "awaiting_human";
5696
5922
  completed: "completed";
5923
+ awaiting_human: "awaiting_human";
5697
5924
  session_active: "session_active";
5698
5925
  }>>;
5699
5926
  sessionRef: z.ZodOptional<z.ZodObject<{
@@ -303,11 +303,21 @@ export const runResultSchema = z.object({
303
303
  finalState: z.string(),
304
304
  artifactInventory: z.array(artifactRefSchema).readonly(),
305
305
  manifest: runManifestSchema,
306
+ answerAccepted: z.boolean().optional(),
306
307
  });
307
308
  export const humanInputSchema = z.object({
308
309
  type: z.enum(['text', 'approval', 'rejection']),
309
310
  content: z.string(),
310
311
  artifactRef: artifactRefSchema.optional(),
312
+ sessionId: z.string().min(1).optional(),
313
+ requestId: z.string().min(1).optional(),
314
+ waitIdentity: z
315
+ .object({
316
+ stateId: z.string(),
317
+ requestingState: z.string(),
318
+ waitingSince: z.string(),
319
+ })
320
+ .optional(),
311
321
  });
312
322
  export const workflowRunConfigSchema = z.object({
313
323
  runId: z.string(),
@@ -369,6 +379,10 @@ export const workerResultSchema = z.object({
369
379
  errorType: workerErrorTypeSchema.optional(),
370
380
  artifactRef: artifactRefSchema.optional(),
371
381
  model: z.string().optional(),
382
+ taskId: z.string().optional(),
383
+ sessionOutcome: sessionDispatchOutcomeSchema.optional(),
384
+ sessionRef: agentSessionRefSchema.optional(),
385
+ pendingRequest: sessionPendingRequestSchema.optional(),
372
386
  });
373
387
  export const actionUsageSnapshotSchema = z.object({
374
388
  totalInputTokens: z.number(),
@@ -24,8 +24,8 @@ export declare const workflowSchema: z.ZodObject<{
24
24
  store_artifact: "store_artifact";
25
25
  record_journal: "record_journal";
26
26
  generate_agreement: "generate_agreement";
27
- produce_manifest: "produce_manifest";
28
27
  notify_human: "notify_human";
28
+ produce_manifest: "produce_manifest";
29
29
  }>;
30
30
  params: z.ZodCatch<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
31
31
  }, z.core.$strip>, z.ZodTransform<{
@@ -49,6 +49,17 @@ export declare const workflowSchema: z.ZodObject<{
49
49
  sourceArtifact: "intake_requirements" | "canonical_specification" | "clarification_questions" | "clarification_answers" | "plan" | "plan_review" | "test_plan" | "implementation" | "static_review" | "security_review" | "performance_review" | "adversarial_review" | "design_review" | "docs_review" | "ux_review" | "review_report" | "remediation_plan" | "verification" | "judge_decision" | "planning_agreement" | "implementation_agreement" | "verification_agreement" | "release_summary" | "release_agreement" | "escalation_context" | "run_manifest" | "codebase_context" | "test_suite" | "acceptance_validation" | "review_findings" | "task_breakdown" | "decomposition_review" | "task_specifications" | "pr_diff_context";
50
50
  itemsPath: string;
51
51
  };
52
+ } | {
53
+ type: "run_script";
54
+ params: {
55
+ script: string;
56
+ timeout?: number | undefined;
57
+ env?: Record<string, string> | undefined;
58
+ storeOutput?: {
59
+ artifactType: string;
60
+ producedBy: string;
61
+ } | undefined;
62
+ };
52
63
  } | {
53
64
  type: "store_artifact";
54
65
  params: {
@@ -71,22 +82,11 @@ export declare const workflowSchema: z.ZodObject<{
71
82
  params: {
72
83
  reason?: string | undefined;
73
84
  };
74
- } | {
75
- type: "run_script";
76
- params: {
77
- script: string;
78
- timeout?: number | undefined;
79
- env?: Record<string, string> | undefined;
80
- storeOutput?: {
81
- artifactType: string;
82
- producedBy: string;
83
- } | undefined;
84
- };
85
85
  } | {
86
86
  type: "produce_manifest";
87
87
  params: Record<string, never>;
88
88
  }, {
89
- type: "dispatch_worker" | "dispatch_parallel_workers" | "dispatch_dynamic_workers" | "run_script" | "store_artifact" | "record_journal" | "generate_agreement" | "produce_manifest" | "notify_human";
89
+ type: "dispatch_worker" | "dispatch_parallel_workers" | "dispatch_dynamic_workers" | "run_script" | "store_artifact" | "record_journal" | "generate_agreement" | "notify_human" | "produce_manifest";
90
90
  params: Record<string, unknown>;
91
91
  }>>>>;
92
92
  exitActions: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodObject<{
@@ -98,8 +98,8 @@ export declare const workflowSchema: z.ZodObject<{
98
98
  store_artifact: "store_artifact";
99
99
  record_journal: "record_journal";
100
100
  generate_agreement: "generate_agreement";
101
- produce_manifest: "produce_manifest";
102
101
  notify_human: "notify_human";
102
+ produce_manifest: "produce_manifest";
103
103
  }>;
104
104
  params: z.ZodCatch<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
105
105
  }, z.core.$strip>, z.ZodTransform<{
@@ -123,6 +123,17 @@ export declare const workflowSchema: z.ZodObject<{
123
123
  sourceArtifact: "intake_requirements" | "canonical_specification" | "clarification_questions" | "clarification_answers" | "plan" | "plan_review" | "test_plan" | "implementation" | "static_review" | "security_review" | "performance_review" | "adversarial_review" | "design_review" | "docs_review" | "ux_review" | "review_report" | "remediation_plan" | "verification" | "judge_decision" | "planning_agreement" | "implementation_agreement" | "verification_agreement" | "release_summary" | "release_agreement" | "escalation_context" | "run_manifest" | "codebase_context" | "test_suite" | "acceptance_validation" | "review_findings" | "task_breakdown" | "decomposition_review" | "task_specifications" | "pr_diff_context";
124
124
  itemsPath: string;
125
125
  };
126
+ } | {
127
+ type: "run_script";
128
+ params: {
129
+ script: string;
130
+ timeout?: number | undefined;
131
+ env?: Record<string, string> | undefined;
132
+ storeOutput?: {
133
+ artifactType: string;
134
+ producedBy: string;
135
+ } | undefined;
136
+ };
126
137
  } | {
127
138
  type: "store_artifact";
128
139
  params: {
@@ -145,30 +156,19 @@ export declare const workflowSchema: z.ZodObject<{
145
156
  params: {
146
157
  reason?: string | undefined;
147
158
  };
148
- } | {
149
- type: "run_script";
150
- params: {
151
- script: string;
152
- timeout?: number | undefined;
153
- env?: Record<string, string> | undefined;
154
- storeOutput?: {
155
- artifactType: string;
156
- producedBy: string;
157
- } | undefined;
158
- };
159
159
  } | {
160
160
  type: "produce_manifest";
161
161
  params: Record<string, never>;
162
162
  }, {
163
- type: "dispatch_worker" | "dispatch_parallel_workers" | "dispatch_dynamic_workers" | "run_script" | "store_artifact" | "record_journal" | "generate_agreement" | "produce_manifest" | "notify_human";
163
+ type: "dispatch_worker" | "dispatch_parallel_workers" | "dispatch_dynamic_workers" | "run_script" | "store_artifact" | "record_journal" | "generate_agreement" | "notify_human" | "produce_manifest";
164
164
  params: Record<string, unknown>;
165
165
  }>>>>;
166
166
  transitions: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
167
167
  target: z.ZodString;
168
168
  trigger: z.ZodEnum<{
169
169
  timeout: "timeout";
170
- failure: "failure";
171
170
  completion: "completion";
171
+ failure: "failure";
172
172
  review_approved: "review_approved";
173
173
  review_rejected: "review_rejected";
174
174
  iteration_exhausted: "iteration_exhausted";
@@ -289,7 +289,7 @@ export declare const workflowSchema: z.ZodObject<{
289
289
  } | {
290
290
  type: "previous_run_pattern";
291
291
  params: {
292
- outcome: "escalated" | "completed" | "failed" | "aborted";
292
+ outcome: "escalated" | "completed" | "aborted" | "failed";
293
293
  waitForAll?: boolean | undefined;
294
294
  workflowVariant?: string | undefined;
295
295
  minOccurrences?: number | undefined;