@wjarka/cezarion 0.13.4 → 0.13.5-pr355.546

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 (104) hide show
  1. package/dist/agent-config/catalog.d.ts +4 -1
  2. package/dist/agent-config/catalog.js +50 -3
  3. package/dist/agent-config/catalog.js.map +1 -1
  4. package/dist/agent-config/model-settings/pi.d.ts +0 -10
  5. package/dist/agent-config/model-settings/pi.js +28 -8
  6. package/dist/agent-config/model-settings/pi.js.map +1 -1
  7. package/dist/agent-config/model-settings/shared.d.ts +2 -0
  8. package/dist/agent-config/model-settings/shared.js +4 -0
  9. package/dist/agent-config/model-settings/shared.js.map +1 -1
  10. package/dist/contract/index.js +7 -1
  11. package/dist/contract/runs.d.ts +17 -0
  12. package/dist/contract/skills.d.ts +3 -0
  13. package/dist/core/agent-runner.d.ts +26 -0
  14. package/dist/core/agent-runner.js +22 -0
  15. package/dist/core/agent-runner.js.map +1 -1
  16. package/dist/core/claude-cli-runner.d.ts +9 -1
  17. package/dist/core/claude-cli-runner.js +23 -0
  18. package/dist/core/claude-cli-runner.js.map +1 -1
  19. package/dist/core/codex-app-server-runner.d.ts +11 -1
  20. package/dist/core/codex-app-server-runner.js +25 -0
  21. package/dist/core/codex-app-server-runner.js.map +1 -1
  22. package/dist/core/host-model-catalog.d.ts +14 -0
  23. package/dist/core/host-model-catalog.js +24 -0
  24. package/dist/core/host-model-catalog.js.map +1 -0
  25. package/dist/core/opencode-server-runner.d.ts +11 -1
  26. package/dist/core/opencode-server-runner.js +25 -0
  27. package/dist/core/opencode-server-runner.js.map +1 -1
  28. package/dist/core/pi-runner.d.ts +10 -1
  29. package/dist/core/pi-runner.js +34 -1
  30. package/dist/core/pi-runner.js.map +1 -1
  31. package/dist/core/pi-ui-mapper.d.ts +15 -0
  32. package/dist/core/pi-ui-mapper.js +29 -4
  33. package/dist/core/pi-ui-mapper.js.map +1 -1
  34. package/dist/core/process-usage.d.ts +3 -0
  35. package/dist/core/process-usage.js +5 -0
  36. package/dist/core/process-usage.js.map +1 -1
  37. package/dist/core/runner-model-catalog.js +7 -2
  38. package/dist/core/runner-model-catalog.js.map +1 -1
  39. package/dist/delegation/routes.d.ts +50 -50
  40. package/dist/delegation/transport.d.ts +50 -50
  41. package/dist/paths.d.ts +2 -1
  42. package/dist/paths.js +3 -1
  43. package/dist/paths.js.map +1 -1
  44. package/dist/runs/store.d.ts +7 -2
  45. package/dist/runs/store.js +6 -0
  46. package/dist/runs/store.js.map +1 -1
  47. package/dist/server/server.d.ts +66 -0
  48. package/dist/server/server.js +5 -13
  49. package/dist/server/server.js.map +1 -1
  50. package/dist/workflows/run.d.ts +13 -2
  51. package/dist/workflows/run.js +259 -38
  52. package/dist/workflows/run.js.map +1 -1
  53. package/package.json +3 -3
  54. package/scripts/mock-pi-rpc.mjs +10 -0
  55. package/web/dist/assets/agent-accounts-0XE1H17O.js +1 -0
  56. package/web/dist/assets/{alert-dialog-Duzl27Ie.js → alert-dialog-DFJbVtBQ.js} +12 -12
  57. package/web/dist/assets/{collapsible-O6Tjzyk-.js → collapsible-CY3Kzhe7.js} +1 -1
  58. package/web/dist/assets/{commit-list-B4XC1ODn.js → commit-list-DGa1MVRq.js} +1 -1
  59. package/web/dist/assets/{compare-variants-BVL8TqP9.js → compare-variants-CSpVrnYN.js} +1 -1
  60. package/web/dist/assets/{diff-BHmZWDtg2.js → diff-DDUpEMjA2.js} +2 -2
  61. package/web/dist/assets/{diff-controls-BoL-cEfC.js → diff-controls-C_7Ket1G.js} +1 -1
  62. package/web/dist/assets/{diff-stat-BinS5K0X.js → diff-stat-Cq4juy0u.js} +1 -1
  63. package/web/dist/assets/{diff-view-BogZS6qH.js → diff-view-Coyp_Kst.js} +1 -1
  64. package/web/dist/assets/{dropdown-menu-Da0G_FSk.js → dropdown-menu-D_AapbCA.js} +1 -1
  65. package/web/dist/assets/{git-toolbar-CYFkDz1s.js → git-toolbar-Ctck--gW.js} +1 -1
  66. package/web/dist/assets/github-D4F_Ux2B.js +1 -0
  67. package/web/dist/assets/github-DTIn5Tro.css +1 -0
  68. package/web/dist/assets/{image-preview-DpJkIJow.js → image-preview-DXIixdjJ.js} +1 -1
  69. package/web/dist/assets/index-1w-3-ebj.css +1 -0
  70. package/web/dist/assets/index-BWdizKd9.js +7 -0
  71. package/web/dist/assets/{markdown-Ni-GM0ra.js → markdown-zVtbO9Y3.js} +1 -1
  72. package/web/dist/assets/pill-D7x-JgPk.js +1 -0
  73. package/web/dist/assets/{project-router-B8sUN_Ka.js → project-router-_NlWrr1u.js} +1 -1
  74. package/web/dist/assets/prompt-templates-BAHuEV4s.js +15 -0
  75. package/web/dist/assets/repo-git-C9XN3mXu.js +1 -0
  76. package/web/dist/assets/{run-diff-DanadyNi.js → run-diff-BqNutNWV.js} +2 -2
  77. package/web/dist/assets/run-header-C3oNFHTw.js +1 -0
  78. package/web/dist/assets/{skills-Cyk33xfz.js → skills-DUsxmcGu.js} +1 -1
  79. package/web/dist/assets/{tab-link-DAMk-HDQ.js → tab-link-CjkLjjTf.js} +1 -1
  80. package/web/dist/assets/{task-changes-DI4_6Wp4.js → task-changes-Brwkn3tJ.js} +1 -1
  81. package/web/dist/assets/task-commits-DskL6rzX.js +1 -0
  82. package/web/dist/assets/{task-files-Bc1H59kO.js → task-files-BJD8fAX4.js} +2 -2
  83. package/web/dist/assets/task-thread-BaIlrXIF.js +9 -0
  84. package/web/dist/assets/task-thread-DMRD0IVt.css +1 -0
  85. package/web/dist/assets/{textarea-Bl6llqoA.js → textarea-DZV_YYw9.js} +1 -1
  86. package/web/dist/assets/thread-loading-Bet4X9Ow.js +1 -0
  87. package/web/dist/assets/{token-metrics-CWXw3O9q.js → token-metrics-C_zRfWAP.js} +1 -1
  88. package/web/dist/assets/{utils-9-zDpWwO.js → utils-B8qbBJrk.js} +1 -1
  89. package/web/dist/assets/{workflows-CfPTxrDw.js → workflows-C0RXiAAC.js} +4 -4
  90. package/web/dist/assets/{zoomable-image-CQuBDcJD.js → zoomable-image-Idq840Ej.js} +1 -1
  91. package/web/dist/index.html +14 -14
  92. package/web/dist/assets/github-BvQUJN1z.js +0 -1
  93. package/web/dist/assets/github-CSE-ePaX.css +0 -1
  94. package/web/dist/assets/index-CDG8WjQr.js +0 -7
  95. package/web/dist/assets/index-DZ8KZzHE.css +0 -1
  96. package/web/dist/assets/pill-Ba99DOJ9.js +0 -1
  97. package/web/dist/assets/popover-ClNt8Xa0.js +0 -1
  98. package/web/dist/assets/prompt-templates-BmXStVbF.js +0 -15
  99. package/web/dist/assets/repo-git-BKB_uTPT.js +0 -1
  100. package/web/dist/assets/run-header-BZ6IlgXy.js +0 -1
  101. package/web/dist/assets/task-commits-CGosUb8O.js +0 -1
  102. package/web/dist/assets/task-thread-C8ssWDxr.css +0 -1
  103. package/web/dist/assets/task-thread-CVJ8_hAS.js +0 -9
  104. package/web/dist/assets/thread-loading-L-UhMGht.js +0 -1
@@ -286,6 +286,18 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
286
286
  } & {
287
287
  "/:workerId": {
288
288
  $get: {
289
+ output: {
290
+ error: string;
291
+ code?: "invalid_input" | undefined;
292
+ };
293
+ outputFormat: "json";
294
+ status: 400;
295
+ input: {
296
+ param: {
297
+ workerId: string;
298
+ };
299
+ };
300
+ } | {
289
301
  output: {
290
302
  workerId: string;
291
303
  parentRunId: string;
@@ -362,7 +374,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
362
374
  workerId: string;
363
375
  };
364
376
  };
365
- } | {
377
+ };
378
+ };
379
+ } & {
380
+ "/:workerId/collect": {
381
+ $post: {
366
382
  output: {
367
383
  error: string;
368
384
  code?: "invalid_input" | undefined;
@@ -373,12 +389,10 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
373
389
  param: {
374
390
  workerId: string;
375
391
  };
392
+ } & {
393
+ json: Record<string, never>;
376
394
  };
377
- };
378
- };
379
- } & {
380
- "/:workerId/collect": {
381
- $post: {
395
+ } | {
382
396
  output: {
383
397
  workerId: string;
384
398
  parentRunId: string;
@@ -480,7 +494,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
480
494
  } & {
481
495
  json: Record<string, never>;
482
496
  };
483
- } | {
497
+ };
498
+ };
499
+ } & {
500
+ "/:workerId/steer": {
501
+ $post: {
484
502
  output: {
485
503
  error: string;
486
504
  code?: "invalid_input" | undefined;
@@ -492,13 +510,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
492
510
  workerId: string;
493
511
  };
494
512
  } & {
495
- json: Record<string, never>;
513
+ json: {
514
+ text: string;
515
+ };
496
516
  };
497
- };
498
- };
499
- } & {
500
- "/:workerId/steer": {
501
- $post: {
517
+ } | {
502
518
  output: {
503
519
  workerId: string;
504
520
  state: "delivered" | "queued";
@@ -514,7 +530,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
514
530
  text: string;
515
531
  };
516
532
  };
517
- } | {
533
+ };
534
+ };
535
+ } & {
536
+ "/:workerId/stop": {
537
+ $post: {
518
538
  output: {
519
539
  error: string;
520
540
  code?: "invalid_input" | undefined;
@@ -526,15 +546,9 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
526
546
  workerId: string;
527
547
  };
528
548
  } & {
529
- json: {
530
- text: string;
531
- };
549
+ json: Record<string, never>;
532
550
  };
533
- };
534
- };
535
- } & {
536
- "/:workerId/stop": {
537
- $post: {
551
+ } | {
538
552
  output: {
539
553
  workerId: string;
540
554
  state: "stopping" | "terminated";
@@ -548,7 +562,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
548
562
  } & {
549
563
  json: Record<string, never>;
550
564
  };
551
- } | {
565
+ };
566
+ };
567
+ } & {
568
+ "/:workerId/destroy": {
569
+ $post: {
552
570
  output: {
553
571
  error: string;
554
572
  code?: "invalid_input" | undefined;
@@ -562,11 +580,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
562
580
  } & {
563
581
  json: Record<string, never>;
564
582
  };
565
- };
566
- };
567
- } & {
568
- "/:workerId/destroy": {
569
- $post: {
583
+ } | {
570
584
  output: {
571
585
  workerId: string;
572
586
  state: "complete" | "incomplete";
@@ -589,20 +603,6 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
589
603
  } & {
590
604
  json: Record<string, never>;
591
605
  };
592
- } | {
593
- output: {
594
- error: string;
595
- code?: "invalid_input" | undefined;
596
- };
597
- outputFormat: "json";
598
- status: 400;
599
- input: {
600
- param: {
601
- workerId: string;
602
- };
603
- } & {
604
- json: Record<string, never>;
605
- };
606
606
  } | {
607
607
  output: {
608
608
  workerId: string;
@@ -632,13 +632,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
632
632
  "/:workerId/diff": {
633
633
  $get: {
634
634
  output: {
635
- workerId: string;
636
- baselineSha: string;
637
- diff: string;
638
- truncated: boolean;
635
+ error: string;
636
+ code?: "invalid_input" | undefined;
639
637
  };
640
638
  outputFormat: "json";
641
- status: 200;
639
+ status: 400;
642
640
  input: {
643
641
  param: {
644
642
  workerId: string;
@@ -646,11 +644,13 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
646
644
  };
647
645
  } | {
648
646
  output: {
649
- error: string;
650
- code?: "invalid_input" | undefined;
647
+ workerId: string;
648
+ baselineSha: string;
649
+ diff: string;
650
+ truncated: boolean;
651
651
  };
652
652
  outputFormat: "json";
653
- status: 400;
653
+ status: 200;
654
654
  input: {
655
655
  param: {
656
656
  workerId: string;
package/dist/paths.d.ts CHANGED
@@ -102,7 +102,8 @@ export declare function serverLockPath(instance?: string): string;
102
102
  * Where each coding agent keeps its per-user config, honouring the env vars the
103
103
  * vendors document: `$CLAUDE_CONFIG_DIR` relocates Claude Code's home;
104
104
  * `$CODEX_HOME` relocates Codex's; `$XDG_CONFIG_HOME` relocates OpenCode's config
105
- * dir (falling back to `~/.config`). Read per call so tests and ops can set env live.
105
+ * dir (falling back to `~/.config`); `$PI_CODING_AGENT_DIR` relocates Pi's agent dir
106
+ * (default `~/.pi/agent`). Read per call so tests and ops can set env live.
106
107
  *
107
108
  * These are the DEFAULT profile's dirs. A second login of the same CLI is an
108
109
  * agent profile (`src/core/agent-profiles.ts`) and resolves through
package/dist/paths.js CHANGED
@@ -141,7 +141,8 @@ export function serverLockPath(instance = DEFAULT_SERVER_INSTANCE) {
141
141
  * Where each coding agent keeps its per-user config, honouring the env vars the
142
142
  * vendors document: `$CLAUDE_CONFIG_DIR` relocates Claude Code's home;
143
143
  * `$CODEX_HOME` relocates Codex's; `$XDG_CONFIG_HOME` relocates OpenCode's config
144
- * dir (falling back to `~/.config`). Read per call so tests and ops can set env live.
144
+ * dir (falling back to `~/.config`); `$PI_CODING_AGENT_DIR` relocates Pi's agent dir
145
+ * (default `~/.pi/agent`). Read per call so tests and ops can set env live.
145
146
  *
146
147
  * These are the DEFAULT profile's dirs. A second login of the same CLI is an
147
148
  * agent profile (`src/core/agent-profiles.ts`) and resolves through
@@ -155,6 +156,7 @@ export function agentHomePaths(env = process.env) {
155
156
  claude: env.CLAUDE_CONFIG_DIR?.trim() || join(home, '.claude'),
156
157
  codex: env.CODEX_HOME?.trim() || join(home, '.codex'),
157
158
  opencodeConfig: join(xdgConfig, 'opencode'),
159
+ pi: env.PI_CODING_AGENT_DIR?.trim() || join(home, '.pi', 'agent'),
158
160
  };
159
161
  }
160
162
  /**
package/dist/paths.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"paths.js","sourceRoot":"","sources":["../src/paths.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAG/C;;;;;;;;;;GAUG;AACH,MAAM,UAAU,YAAY,CAAC,GAAG,GAAsB,OAAO,CAAC,GAAG;IAC/D,4EAA4E;IAC5E,gEAAgE;IAChE,OAAO,CAAC,GAAG,CAAC,QAAQ,IAAI,SAAS,CAAC,IAAI,IAAI,CAAC,OAAO,EAAE,E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CAAC;QACrD,cAAc,EAAE,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC;QAC3C,EAAE,EAAE,GAAG,CAAC,mBAAmB,EAAE,IAAI,EAAE,IAAI,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,CAAC;KAClE,CAAC;AACJ,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,UAAU,mBAAmB,CAAC,UAAkB,EAAE,GAAG,GAAsB,OAAO,CAAC,GAAG;IAC1F,MAAM,YAAY,GAAG,CAAC,GAAG,CAAC,iBAAiB,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,KAAK,EAAE;WAC5D,UAAU,KAAK,IAAI,CAAC,GAAG,CAAC,IAAI,IAAI,GAAG,CAAC,WAAW,IAAI,OAAO,EAAE,EAAE,SAAS,CAAC,CAAC;IAC9E,OAAO,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,cAAc,CAAC,CAAC;AACrG,CAAC"}
@@ -32,6 +32,7 @@ declare const stepStateSchema: z.ZodObject<{
32
32
  waiting: "waiting";
33
33
  }>;
34
34
  iterations: z.ZodNumber;
35
+ retriesUsed: z.ZodOptional<z.ZodNumber>;
35
36
  tokensUsed: z.ZodNumber;
36
37
  inputTokens: z.ZodOptional<z.ZodNumber>;
37
38
  outputTokens: z.ZodOptional<z.ZodNumber>;
@@ -53,6 +54,7 @@ declare const stepStateSchema: z.ZodObject<{
53
54
  }>, z.ZodTransform<"claude" | "codex" | "opencode" | "pi", "claude" | "claude-cli" | "codex" | "opencode" | "pi">>>;
54
55
  profileId: z.ZodOptional<z.ZodString>;
55
56
  costUsd: z.ZodOptional<z.ZodNumber>;
57
+ synthetic: z.ZodOptional<z.ZodLiteral<"continuation">>;
56
58
  }, z.core.$strip>;
57
59
  /** One prompt message stacked onto a run while it waits for a free agent slot
58
60
  * (#472). Folded into `{{task}}` at dequeue by `hydrateQueuedInput`; never
@@ -94,6 +96,7 @@ export declare const runRecordSchema: z.ZodObject<{
94
96
  lifecycle: "lifecycle";
95
97
  }>>;
96
98
  }, z.core.$strip>>;
99
+ invalidAsk: z.ZodOptional<z.ZodBoolean>;
97
100
  delegation: z.ZodCatch<z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
98
101
  role: z.ZodLiteral<"root">;
99
102
  conversation: z.ZodOptional<z.ZodObject<{
@@ -578,6 +581,7 @@ export declare const runRecordSchema: z.ZodObject<{
578
581
  waiting: "waiting";
579
582
  }>;
580
583
  iterations: z.ZodNumber;
584
+ retriesUsed: z.ZodOptional<z.ZodNumber>;
581
585
  tokensUsed: z.ZodNumber;
582
586
  inputTokens: z.ZodOptional<z.ZodNumber>;
583
587
  outputTokens: z.ZodOptional<z.ZodNumber>;
@@ -599,6 +603,7 @@ export declare const runRecordSchema: z.ZodObject<{
599
603
  }>, z.ZodTransform<"claude" | "codex" | "opencode" | "pi", "claude" | "claude-cli" | "codex" | "opencode" | "pi">>>;
600
604
  profileId: z.ZodOptional<z.ZodString>;
601
605
  costUsd: z.ZodOptional<z.ZodNumber>;
606
+ synthetic: z.ZodOptional<z.ZodLiteral<"continuation">>;
602
607
  }, z.core.$strip>>;
603
608
  workflowDef: z.ZodCatch<z.ZodOptional<z.ZodObject<{
604
609
  name: z.ZodString;
@@ -755,7 +760,7 @@ export declare class RunStore extends EventEmitter {
755
760
  delegation: DelegationState;
756
761
  }>): void;
757
762
  /** Accepted execution revision is public lifecycle identity, separate from process generations. */
758
- commitWorkerContinuation(id: string, patch: Partial<Omit<RunRecord, 'id' | 'steps' | 'delegation'>>, step?: Pick<StepState, 'id' | 'name' | 'kind'>): void;
763
+ commitWorkerContinuation(id: string, patch: Partial<Omit<RunRecord, 'id' | 'steps' | 'delegation'>>, step?: Pick<StepState, 'id' | 'name' | 'kind' | 'synthetic'>): void;
759
764
  private workerResultsDir;
760
765
  workerResultSnapshotPath(parentId: string, workerId: string, snapshotId: string): string;
761
766
  private readWorkerResultFile;
@@ -799,7 +804,7 @@ export declare class RunStore extends EventEmitter {
799
804
  */
800
805
  private redactStepPatch;
801
806
  /** Append a step to an existing run (used by "Continue" — spec 003). */
802
- addStep(runId: string, step: Pick<StepState, 'id' | 'name' | 'kind'>): void;
807
+ addStep(runId: string, step: Pick<StepState, 'id' | 'name' | 'kind' | 'synthetic'>): void;
803
808
  updateStep(runId: string, stepId: string, patch: Partial<Omit<StepState, 'id'>>): void;
804
809
  setArchived(id: string, archived: boolean): RunRecord | undefined;
805
810
  /** Parent + owned workers; returns how many records flipped `archived`. */
@@ -44,6 +44,8 @@ const stepStateSchema = z.object({
44
44
  kind: z.enum(['agent', 'check']),
45
45
  status: z.enum(['pending', 'running', 'waiting', 'review', 'done', 'failed', 'cancelled', 'skipped']),
46
46
  iterations: z.number(),
47
+ /** Durable count of onFail retry loops consumed by this check. */
48
+ retriesUsed: z.number().int().nonnegative().optional(),
47
49
  tokensUsed: z.number(),
48
50
  inputTokens: usageCounterSchema.optional(),
49
51
  outputTokens: usageCounterSchema.optional(),
@@ -68,6 +70,8 @@ const stepStateSchema = z.object({
68
70
  profileId: z.string().optional(),
69
71
  /** Dollar cost reported by the claude CLI for this step's turns. */
70
72
  costUsd: z.number().optional(),
73
+ /** Explicit provenance for engine-generated continuation steps. */
74
+ synthetic: z.literal('continuation').optional(),
71
75
  });
72
76
  /** One prompt message stacked onto a run while it waits for a free agent slot
73
77
  * (#472). Folded into `{{task}}` at dequeue by `hydrateQueuedInput`; never
@@ -114,6 +118,8 @@ export const runRecordSchema = z.object({
114
118
  queuedMessages: z.array(queuedMessageSchema).optional(),
115
119
  /** Durable Continue opening message; id is its synthetic step id. No base64 in the index. */
116
120
  continuationMessage: continuationMessageSchema.optional(),
121
+ /** A malformed explicit ASK must never be collected as worker success. */
122
+ invalidAsk: z.boolean().optional(),
117
123
  delegation: storedDelegationStateSchema,
118
124
  /** Non-human input must retain attribution through restart, separately from human answers. */
119
125
  agentInputs: z.array(agentInputSchema).optional(),