@hearsay-tools/squawk 0.18.0-dev.6468 → 0.18.0-dev.6478

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 (142) hide show
  1. package/README.md +3 -5
  2. package/dist/contract/health.d.ts +0 -2
  3. package/dist/contract/index.d.ts +0 -1
  4. package/dist/contract/index.js +457 -595
  5. package/dist/contract/projects.d.ts +1 -9
  6. package/dist/data-gitignore.js +0 -2
  7. package/dist/data-gitignore.js.map +1 -1
  8. package/dist/delegation/routes.d.ts +11 -11
  9. package/dist/delegation/transport.d.ts +4 -4
  10. package/dist/server/capabilities.d.ts +0 -1
  11. package/dist/server/capabilities.js +0 -3
  12. package/dist/server/capabilities.js.map +1 -1
  13. package/dist/server/forge/github.d.ts +1 -2
  14. package/dist/server/forge/github.js +1 -2
  15. package/dist/server/forge/github.js.map +1 -1
  16. package/dist/server/forge/types.d.ts +1 -1
  17. package/dist/server/live-routes.d.ts +6 -6
  18. package/dist/server/project-context.d.ts +1 -3
  19. package/dist/server/project-context.js +1 -3
  20. package/dist/server/project-context.js.map +1 -1
  21. package/dist/server/server-deps.d.ts +1 -1
  22. package/dist/server/server-deps.js +1 -3
  23. package/dist/server/server-deps.js.map +1 -1
  24. package/dist/server/server.d.ts +1547 -1764
  25. package/dist/server/server.js +7 -23
  26. package/dist/server/server.js.map +1 -1
  27. package/dist/server/workspace-live-routes.d.ts +6 -6
  28. package/dist/workflows/continuation-admission.d.ts +72 -72
  29. package/dist/workflows/run/wait-engine.d.ts +72 -72
  30. package/package.json +4 -4
  31. package/web/dist/assets/activity-motion-Cd6HKRn5.js +2 -0
  32. package/web/dist/assets/{activity-route-su3KawLr.js → activity-route-Dgjznc_j.js} +1 -1
  33. package/web/dist/assets/agent-accounts-WZgtbThS.js +18 -0
  34. package/web/dist/assets/{alert-dialog-CPBKJTj_.js → alert-dialog-CH4SXGfX.js} +1 -1
  35. package/web/dist/assets/attention-C_kiJ1bk.js +1 -0
  36. package/web/dist/assets/button-DGwhwRuD.js +3 -0
  37. package/web/dist/assets/{centered-state-8l6wvu0C.js → centered-state-B5QmAy2y.js} +1 -1
  38. package/web/dist/assets/{cez-idle-xv7f96fc.js → cez-idle-TVRD1sce.js} +1 -1
  39. package/web/dist/assets/{commit-diff-panel-DmhrguZk.js → commit-diff-panel-Bsf9f2Cd.js} +1 -1
  40. package/web/dist/assets/{dialog-CkU56ywj.js → dialog-B7p5oc5r.js} +1 -1
  41. package/web/dist/assets/diff-BB8od2CB.js +3 -0
  42. package/web/dist/assets/{diff-controls-DzcrZF8L.js → diff-controls-CeYlCm_y.js} +1 -1
  43. package/web/dist/assets/{diff-view-BNL7l7Vp.js → diff-view-Bbf1guXZ.js} +4 -4
  44. package/web/dist/assets/{dist-D4TujV9O.js → dist-ClnpAEgV.js} +1 -1
  45. package/web/dist/assets/{dropdown-menu-BN2BI4R1.js → dropdown-menu-DPrTX-zi.js} +1 -1
  46. package/web/dist/assets/{es2015-DnySZnV4.js → es2015-DTn4s5Lh.js} +1 -1
  47. package/web/dist/assets/{file-preview-Cm1jWwBy.js → file-preview-DYaWK5Hi.js} +2 -2
  48. package/web/dist/assets/git-toolbar-CPxEOnk6.js +1 -0
  49. package/web/dist/assets/{github-wWGhoE3O.js → github-4ILuqTHS.js} +1 -1
  50. package/web/dist/assets/{global-activity-route-DpQr_eU9.js → global-activity-route-BaL40ikO.js} +1 -1
  51. package/web/dist/assets/{image-preview-DpaJAUA9.js → image-preview-cn57tA1m.js} +1 -1
  52. package/web/dist/assets/index-BXr2mRSZ.js +17 -0
  53. package/web/dist/assets/index-Bv_JpzCB.css +1 -0
  54. package/web/dist/assets/{live-protocol-DjH6ZQwI.js → live-protocol-aMLJJ0MQ.js} +1 -1
  55. package/web/dist/assets/{nav-row-styles-DoZBu-jT.js → nav-row-styles-DSBuSnEE.js} +1 -1
  56. package/web/dist/assets/preview-pane-connected-CVIYmAKK.js +3 -0
  57. package/web/dist/assets/project-router-_4jaKCY-.js +1 -0
  58. package/web/dist/assets/project-scope-context-BwaC58sQ.js +4 -0
  59. package/web/dist/assets/{prompt-template-menu-D5T9W-K3.js → prompt-template-menu-Q6yvBBX2.js} +1 -1
  60. package/web/dist/assets/queries-jqgF_s0L.js +1 -0
  61. package/web/dist/assets/{reference-chip-AZWOlSRV.js → reference-chip-BFXq2y0V.js} +1 -1
  62. package/web/dist/assets/repo-git-BXcJkKGQ.js +1 -0
  63. package/web/dist/assets/{report-reader-kzlovTso.js → report-reader-B2xFHTUH.js} +1 -1
  64. package/web/dist/assets/reports-JoaY6sCT.js +1 -0
  65. package/web/dist/assets/run-header-4CYT6aL6.js +2 -0
  66. package/web/dist/assets/skills-C1zxbSly.js +1 -0
  67. package/web/dist/assets/{tab-link-h4IjTsRH.js → tab-link-BmBr8sDS.js} +1 -1
  68. package/web/dist/assets/task-changes-DDHU2MYs.js +1 -0
  69. package/web/dist/assets/task-commits-ntmx-1wH.js +1 -0
  70. package/web/dist/assets/task-files-DlUIW3P5.js +1 -0
  71. package/web/dist/assets/task-github-item-Qg7SGfny.js +1 -0
  72. package/web/dist/assets/task-thread-BKdI_JXT.js +9 -0
  73. package/web/dist/assets/{thread-state-hhRCETQT.js → thread-state-D8yAejJN.js} +1 -1
  74. package/web/dist/assets/{toaster-2NK3PogQ.js → toaster-CoMJoQvk.js} +1 -1
  75. package/web/dist/assets/use-desktop-DpH_9i2n.js +1 -0
  76. package/web/dist/assets/use-hand-to-agent-state-DSRe0E7u.js +1 -0
  77. package/web/dist/assets/{useInfiniteQuery-BcY0ra-k.js → useInfiniteQuery-BK0ElV__.js} +1 -1
  78. package/web/dist/assets/useQuery-Qq5WoH8B.js +1 -0
  79. package/web/dist/assets/workflows-CK12d25D.js +7 -0
  80. package/web/dist/assets/ws-CayNmoGi.js +1 -0
  81. package/web/dist/assets/{zoomable-image-D0zshpve.js → zoomable-image-C7mEDZaS.js} +1 -1
  82. package/web/dist/index.html +24 -25
  83. package/web/dist/live-worker.js +1 -1
  84. package/dist/contract/voice.d.ts +0 -213
  85. package/dist/server/launch-key.d.ts +0 -5
  86. package/dist/server/launch-key.js +0 -35
  87. package/dist/server/launch-key.js.map +0 -1
  88. package/dist/voice/decide.d.ts +0 -35
  89. package/dist/voice/decide.js +0 -329
  90. package/dist/voice/decide.js.map +0 -1
  91. package/dist/voice/decision-log.d.ts +0 -48
  92. package/dist/voice/decision-log.js +0 -117
  93. package/dist/voice/decision-log.js.map +0 -1
  94. package/dist/voice/engine.d.ts +0 -119
  95. package/dist/voice/engine.js +0 -61
  96. package/dist/voice/engine.js.map +0 -1
  97. package/dist/voice/fake-engine.d.ts +0 -10
  98. package/dist/voice/fake-engine.js +0 -192
  99. package/dist/voice/fake-engine.js.map +0 -1
  100. package/dist/voice/jev-engine.d.ts +0 -17
  101. package/dist/voice/jev-engine.js +0 -110
  102. package/dist/voice/jev-engine.js.map +0 -1
  103. package/dist/voice/pending-ask.d.ts +0 -17
  104. package/dist/voice/pending-ask.js +0 -51
  105. package/dist/voice/pending-ask.js.map +0 -1
  106. package/dist/voice/routes.d.ts +0 -115
  107. package/dist/voice/routes.js +0 -92
  108. package/dist/voice/routes.js.map +0 -1
  109. package/dist/voice/sentence.d.ts +0 -21
  110. package/dist/voice/sentence.js +0 -61
  111. package/dist/voice/sentence.js.map +0 -1
  112. package/dist/voice/thresholds.d.ts +0 -28
  113. package/dist/voice/thresholds.js +0 -29
  114. package/dist/voice/thresholds.js.map +0 -1
  115. package/scripts/voice-replay.ts +0 -50
  116. package/web/dist/assets/activity-motion-BeswQRe1.js +0 -2
  117. package/web/dist/assets/agent-accounts-DseqHuGY.js +0 -18
  118. package/web/dist/assets/attention-DlfFfWoj.js +0 -1
  119. package/web/dist/assets/button-Czdi8NqC.js +0 -3
  120. package/web/dist/assets/diff-DDwr1gUX.js +0 -3
  121. package/web/dist/assets/git-toolbar-Dya9briW.js +0 -1
  122. package/web/dist/assets/index-DS1HIBHa.css +0 -1
  123. package/web/dist/assets/index-DYx21hr3.js +0 -17
  124. package/web/dist/assets/input-Dilvz-YI.js +0 -1
  125. package/web/dist/assets/preview-pane-connected-DSStovll.js +0 -3
  126. package/web/dist/assets/project-router-uJ3SkX70.js +0 -1
  127. package/web/dist/assets/project-scope-context-X6-LgbYE.js +0 -4
  128. package/web/dist/assets/queries-00V5jnAV.js +0 -1
  129. package/web/dist/assets/repo-git-DJPSn50o.js +0 -1
  130. package/web/dist/assets/reports-Ds7nog_M.js +0 -1
  131. package/web/dist/assets/run-header-skVwUvR-.js +0 -2
  132. package/web/dist/assets/skills-BJPLRZL5.js +0 -1
  133. package/web/dist/assets/task-changes-Db3dmYAT.js +0 -1
  134. package/web/dist/assets/task-commits-D4HdW5xE.js +0 -1
  135. package/web/dist/assets/task-files-sdaEBCfr.js +0 -1
  136. package/web/dist/assets/task-github-item-DyZdbhco.js +0 -1
  137. package/web/dist/assets/task-thread-QKAKHYiJ.js +0 -9
  138. package/web/dist/assets/use-desktop-C3yCutND.js +0 -1
  139. package/web/dist/assets/use-hand-to-agent-state-wGtVosbN.js +0 -1
  140. package/web/dist/assets/useQuery-C96hAjNV.js +0 -1
  141. package/web/dist/assets/workflows-DRO8PcD-.js +0 -7
  142. package/web/dist/assets/ws-BD6s7UXb.js +0 -1
@@ -1080,14 +1080,6 @@ var capabilitiesSchema = z12.object({
1080
1080
  * REQUIRED for the same reason as `tokenMetrics` below: this server always sends it.
1081
1081
  */
1082
1082
  preview: z12.boolean(),
1083
- /**
1084
- * `true` means `CEZ_VOICE=1` opted this server into voice mode and a way to decide exists:
1085
- * `TYPESAFE_API_KEY` is set, or `CEZ_DRY_RUN=1` supplies the fake engine. Off — the default —
1086
- * the `/api/v1/…/voice/*` family answers `409` and the ⌘K palette renders as before.
1087
- *
1088
- * REQUIRED for the same reason as `tokenMetrics` below: this server always sends it.
1089
- */
1090
- voice: z12.boolean(),
1091
1083
  /**
1092
1084
  * `false` means `CEZ_HIDE_TOKEN_METRICS=1` asks the browser to omit token counts and monetary
1093
1085
  * cost (#481). The telemetry itself still rides in run/event payloads — this is presentation
@@ -3662,9 +3654,6 @@ var fsBrowseResponseSchema = z22.object({
3662
3654
  * silently short list. */
3663
3655
  truncated: z22.boolean()
3664
3656
  });
3665
- var launchKeyResponseSchema = z22.object({
3666
- key: z22.string()
3667
- });
3668
3657
  var checkoutProgressParamsSchema = z22.object({ checkoutId: z22.string().min(1).max(128) });
3669
3658
  var checkoutProgressResponseSchema = z22.object({ progress: checkoutProgressEventSchema.nullable() });
3670
3659
  var registerProjectInputSchema = z22.object({
@@ -4509,118 +4498,6 @@ var scheduledTasksAnswerSchema = z29.union([
4509
4498
  refusal
4510
4499
  ]);
4511
4500
 
4512
- // ../contract/src/voice.ts
4513
- import { z as z30 } from "zod";
4514
- var VOICE_TEXT_MAX = 500;
4515
- var VOICE_STATUS_IDS = [
4516
- "needs-you",
4517
- "working",
4518
- "finished",
4519
- "archived",
4520
- "needs-review",
4521
- "needs-permission",
4522
- "failed",
4523
- "running",
4524
- "waiting-for-ci",
4525
- "monitoring",
4526
- "waiting-for-capacity",
4527
- "queued",
4528
- "scheduled",
4529
- "waiting-on-workers",
4530
- "done",
4531
- "cancelled",
4532
- "unread"
4533
- ];
4534
- var voiceStatusSchema = z30.enum(VOICE_STATUS_IDS);
4535
- var VOICE_STATUS_DESCRIPTIONS = {
4536
- "needs-you": "Tasks that wait for the user: a question, a permission or a review.",
4537
- working: "Tasks that are running or waiting on something other than the user.",
4538
- finished: "Done, failed or cancelled tasks the user has not archived.",
4539
- archived: "Tasks the user has archived.",
4540
- "needs-review": "Tasks that stopped at the review gate and wait for the user to review the change.",
4541
- "needs-permission": "Tasks that wait for the user to allow or deny a tool call.",
4542
- failed: "Tasks that ended with an error.",
4543
- running: "Tasks whose agent is working right now.",
4544
- "waiting-for-ci": "Tasks that wait for the checks of a pull request.",
4545
- monitoring: "Tasks that parked to watch something and will wake later.",
4546
- "waiting-for-capacity": "Tasks that wait for a free parallel slot or for memory.",
4547
- queued: "Tasks that have not started yet.",
4548
- scheduled: "Tasks that a timer will start or wake at a set time.",
4549
- "waiting-on-workers": "Tasks that wait on other tasks: for the workers they started, for replies from their workers, or for a reply from their parent task.",
4550
- done: "Tasks that finished their work without error.",
4551
- cancelled: "Tasks the user stopped.",
4552
- unread: "Tasks with news the user has not seen yet."
4553
- };
4554
- var voicePositionSchema = z30.union([z30.enum(["next", "previous", "last"]), z30.number().int().min(1).max(10)]);
4555
- var voiceSidebarViewSchema = z30.enum(["active", "automations"]);
4556
- var VOICE_VIEWS = ["task", "new-task", "github", "git", "automations", "inbox", "settings", "other"];
4557
- var voiceViewSchema = z30.enum(VOICE_VIEWS);
4558
- var voiceDecideRequestSchema = z30.object({
4559
- text: z30.string().trim().min(1).max(VOICE_TEXT_MAX),
4560
- sidebarView: voiceSidebarViewSchema,
4561
- openRunId: runIdParamSchema.shape.id.optional(),
4562
- view: voiceViewSchema.optional(),
4563
- /**
4564
- * The question card the palette shows for `openRunId`: its request id, `null` when it shows none,
4565
- * absent when it does not know yet (the thread is still loading). A reply decided against another
4566
- * card than the server's pending one is stale.
4567
- */
4568
- askRequestId: z30.string().min(1).max(200).nullable().optional(),
4569
- proposal: z30.object({
4570
- decisionId: z30.uuid(),
4571
- action: z30.enum(["answer", "tell"])
4572
- }).strict().optional()
4573
- }).strict();
4574
- var voiceAnswerSchema = z30.discriminatedUnion("kind", [
4575
- z30.object({
4576
- question: z30.number().int().min(0).max(3),
4577
- kind: z30.literal("option"),
4578
- labels: z30.array(z30.string()).min(1).max(4)
4579
- }),
4580
- z30.object({
4581
- question: z30.number().int().min(0).max(3),
4582
- kind: z30.literal("other"),
4583
- text: z30.string().min(1).max(VOICE_TEXT_MAX)
4584
- })
4585
- ]);
4586
- var decisionId = z30.uuid();
4587
- var confidence = z30.number().min(0).max(1);
4588
- var voiceDecisionSchema = z30.discriminatedUnion("action", [
4589
- z30.object({
4590
- action: z30.literal("open"),
4591
- decisionId,
4592
- status: voiceStatusSchema,
4593
- position: voicePositionSchema,
4594
- confidence,
4595
- alternatives: z30.array(z30.object({ status: voiceStatusSchema, position: voicePositionSchema })).max(3).optional()
4596
- }),
4597
- z30.object({
4598
- action: z30.literal("answer"),
4599
- decisionId,
4600
- runId: runIdParamSchema.shape.id,
4601
- askRequestId: z30.string(),
4602
- answers: z30.array(voiceAnswerSchema).min(1).max(4),
4603
- confidence
4604
- }),
4605
- z30.object({
4606
- action: z30.literal("tell"),
4607
- decisionId,
4608
- runId: runIdParamSchema.shape.id,
4609
- text: z30.string().min(1).max(VOICE_TEXT_MAX),
4610
- confidence
4611
- }),
4612
- z30.object({ action: z30.literal("confirm"), decisionId }),
4613
- z30.object({ action: z30.literal("cancel"), decisionId }),
4614
- z30.object({
4615
- action: z30.literal("none"),
4616
- decisionId,
4617
- reason: z30.enum(["not-a-command", "no-open-task", "no-open-question", "unclear", "ambiguous", "stale-context", "unsupported"])
4618
- })
4619
- ]);
4620
- var voiceOutcomeSchema = z30.enum(["executed", "confirmed", "cancelled", "replaced", "abandoned"]);
4621
- var voiceOutcomeRequestSchema = z30.object({ decisionId: z30.uuid(), outcome: voiceOutcomeSchema }).strict();
4622
- var voiceOutcomeResponseSchema = z30.object({ ok: z30.literal(true) });
4623
-
4624
4501
  // ../contract/src/run-predicates.ts
4625
4502
  var LIVE_STATUSES = /* @__PURE__ */ new Set(["queued", "running", "waiting"]);
4626
4503
  function isLiveStatus(status) {
@@ -4776,73 +4653,73 @@ function sqlPrefilterTokens(query, options = {}) {
4776
4653
  }
4777
4654
 
4778
4655
  // ../contract/src/artifacts.ts
4779
- import { z as z31 } from "zod";
4780
- var pathSchema = z31.string().min(1).max(8192).refine((value) => !value.includes("\0"), "Path contains NUL");
4781
- var publishedArtifactSchema = z31.object({
4782
- id: z31.uuid(),
4783
- runId: z31.uuid(),
4784
- name: z31.string().min(1).max(255),
4785
- title: z31.string().max(200).optional(),
4656
+ import { z as z30 } from "zod";
4657
+ var pathSchema = z30.string().min(1).max(8192).refine((value) => !value.includes("\0"), "Path contains NUL");
4658
+ var publishedArtifactSchema = z30.object({
4659
+ id: z30.uuid(),
4660
+ runId: z30.uuid(),
4661
+ name: z30.string().min(1).max(255),
4662
+ title: z30.string().max(200).optional(),
4786
4663
  sourcePath: pathSchema.refine((value) => /^(?:\/|[A-Za-z]:[\\/]|\\\\)/.test(value), "Expected an absolute source path"),
4787
- createdAt: z31.iso.datetime(),
4788
- size: z31.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER),
4789
- sha256: z31.string().regex(/^[a-f0-9]{64}$/)
4664
+ createdAt: z30.iso.datetime(),
4665
+ size: z30.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER),
4666
+ sha256: z30.string().regex(/^[a-f0-9]{64}$/)
4790
4667
  }).strict();
4791
- var filePreviewDataSchema = z31.object({
4792
- type: z31.literal("file"),
4668
+ var filePreviewDataSchema = z30.object({
4669
+ type: z30.literal("file"),
4793
4670
  path: pathSchema,
4794
- size: z31.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER),
4795
- binary: z31.boolean(),
4796
- tooLarge: z31.boolean(),
4797
- content: z31.string().optional(),
4798
- source: z31.enum(["worktree", "project", "artifact"]),
4671
+ size: z30.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER),
4672
+ binary: z30.boolean(),
4673
+ tooLarge: z30.boolean(),
4674
+ content: z30.string().optional(),
4675
+ source: z30.enum(["worktree", "project", "artifact"]),
4799
4676
  artifact: publishedArtifactSchema.optional()
4800
4677
  }).strict();
4801
- var fileLinkResultSchema = z31.union([
4678
+ var fileLinkResultSchema = z30.union([
4802
4679
  filePreviewDataSchema,
4803
- z31.object({
4804
- type: z31.enum(["unavailable", "unpublished"]),
4680
+ z30.object({
4681
+ type: z30.enum(["unavailable", "unpublished"]),
4805
4682
  path: pathSchema,
4806
- reason: z31.string().min(1).max(4096)
4683
+ reason: z30.string().min(1).max(4096)
4807
4684
  }).strict()
4808
4685
  ]);
4809
- var artifactMetadataResponseSchema = z31.object({ artifact: publishedArtifactSchema }).strict();
4810
- var artifactListSchema = z31.object({ artifacts: z31.array(publishedArtifactSchema).max(64) }).strict();
4811
- var fileLinkQuerySchema = z31.object({ path: pathSchema, raw: z31.literal("1").optional() }).strict();
4812
- var artifactParamsSchema = z31.object({ id: z31.uuid(), artifactId: z31.uuid() });
4686
+ var artifactMetadataResponseSchema = z30.object({ artifact: publishedArtifactSchema }).strict();
4687
+ var artifactListSchema = z30.object({ artifacts: z30.array(publishedArtifactSchema).max(64) }).strict();
4688
+ var fileLinkQuerySchema = z30.object({ path: pathSchema, raw: z30.literal("1").optional() }).strict();
4689
+ var artifactParamsSchema = z30.object({ id: z30.uuid(), artifactId: z30.uuid() });
4813
4690
 
4814
4691
  // ../contract/src/discovery.ts
4815
- import { z as z32 } from "zod";
4816
- var hostDiscoveryRequestSchema = z32.discriminatedUnion("kind", [
4817
- z32.object({ kind: z32.literal("runners") }).strict(),
4818
- z32.object({ kind: z32.literal("models"), runner: modelDiscoveryRunnerSchema }).strict()
4692
+ import { z as z31 } from "zod";
4693
+ var hostDiscoveryRequestSchema = z31.discriminatedUnion("kind", [
4694
+ z31.object({ kind: z31.literal("runners") }).strict(),
4695
+ z31.object({ kind: z31.literal("models"), runner: modelDiscoveryRunnerSchema }).strict()
4819
4696
  ]);
4820
- var discoveryRequestSchema = z32.discriminatedUnion("kind", [
4697
+ var discoveryRequestSchema = z31.discriminatedUnion("kind", [
4821
4698
  ...hostDiscoveryRequestSchema.options,
4822
- z32.object({ kind: z32.literal("tasks"), all: z32.boolean().optional(), offset: z32.number().int().min(0).max(Number.MAX_SAFE_INTEGER).optional() }).strict()
4699
+ z31.object({ kind: z31.literal("tasks"), all: z31.boolean().optional(), offset: z31.number().int().min(0).max(Number.MAX_SAFE_INTEGER).optional() }).strict()
4823
4700
  ]);
4824
4701
  var discoveredRunnerSchema = providerStatusSchema.omit({ provider: true, profileId: true }).extend({ runner: modelDiscoveryRunnerSchema });
4825
- var discoveredRunnersSchema = z32.object({
4826
- scope: z32.literal("host-default-account"),
4827
- runners: z32.array(discoveredRunnerSchema)
4828
- });
4829
- var discoveredTasksSchema = z32.object({
4830
- tasks: z32.array(z32.object({
4831
- id: z32.string(),
4832
- title: z32.string(),
4702
+ var discoveredRunnersSchema = z31.object({
4703
+ scope: z31.literal("host-default-account"),
4704
+ runners: z31.array(discoveredRunnerSchema)
4705
+ });
4706
+ var discoveredTasksSchema = z31.object({
4707
+ tasks: z31.array(z31.object({
4708
+ id: z31.string(),
4709
+ title: z31.string(),
4833
4710
  runner: runnerSchema.optional(),
4834
4711
  status: runStatusSchema,
4835
- attention: z32.enum(["permission", "error", "waiting", "running", "unseen", "none"]),
4836
- attentionLabel: z32.string(),
4837
- accepts: z32.boolean(),
4838
- reason: z32.string().optional()
4712
+ attention: z31.enum(["permission", "error", "waiting", "running", "unseen", "none"]),
4713
+ attentionLabel: z31.string(),
4714
+ accepts: z31.boolean(),
4715
+ reason: z31.string().optional()
4839
4716
  })).max(32),
4840
- nextOffset: z32.number().int().nonnegative().optional()
4717
+ nextOffset: z31.number().int().nonnegative().optional()
4841
4718
  });
4842
- var discoveryResponseSchema = z32.union([discoveredRunnersSchema, runnerModelCatalogResponseSchema, discoveredTasksSchema]);
4719
+ var discoveryResponseSchema = z31.union([discoveredRunnersSchema, runnerModelCatalogResponseSchema, discoveredTasksSchema]);
4843
4720
 
4844
4721
  // ../contract/src/live.ts
4845
- import { z as z33 } from "zod";
4722
+ import { z as z32 } from "zod";
4846
4723
 
4847
4724
  // ../contract/src/live-limits.ts
4848
4725
  var LIVE_RUN_LIMIT = 32;
@@ -4850,44 +4727,44 @@ var LIVE_EVENT_LIMIT = 256;
4850
4727
  var LIVE_BYTE_LIMIT = 1024 * 1024;
4851
4728
 
4852
4729
  // ../contract/src/live.ts
4853
- var liveRunDemandSchema = z33.object({
4854
- projectId: z33.string().min(1).max(128).regex(/^[a-zA-Z0-9_-]+$/),
4730
+ var liveRunDemandSchema = z32.object({
4731
+ projectId: z32.string().min(1).max(128).regex(/^[a-zA-Z0-9_-]+$/),
4855
4732
  runId: runIdParamSchema.shape.id,
4856
4733
  cursor: runHistoryCursorSchema.optional(),
4857
- afterSeq: z33.number().int().nonnegative().safe()
4734
+ afterSeq: z32.number().int().nonnegative().safe()
4858
4735
  });
4859
- var liveRunsRequestSchema = z33.object({
4860
- runs: z33.array(liveRunDemandSchema).min(1).max(LIVE_RUN_LIMIT)
4736
+ var liveRunsRequestSchema = z32.object({
4737
+ runs: z32.array(liveRunDemandSchema).min(1).max(LIVE_RUN_LIMIT)
4861
4738
  }).refine(({ runs }) => new Set(runs.map((r) => `${r.projectId}/${r.runId}`)).size === runs.length, {
4862
4739
  message: "duplicate run demand"
4863
4740
  });
4864
4741
  var identity = liveRunDemandSchema.pick({ projectId: true, runId: true });
4865
4742
  var liveRunErrorSchema = identity.extend({
4866
- type: z33.enum(["error", "reset"]),
4867
- status: z33.union([z33.literal(400), z33.literal(404), z33.literal(409), z33.literal(413), z33.literal(503)]),
4868
- error: z33.string()
4743
+ type: z32.enum(["error", "reset"]),
4744
+ status: z32.union([z32.literal(400), z32.literal(404), z32.literal(409), z32.literal(413), z32.literal(503)]),
4745
+ error: z32.string()
4869
4746
  });
4870
4747
  var liveRunBatchSchema = identity.extend({
4871
- type: z33.literal("batch"),
4872
- events: z33.array(runHistoryEventSchema).max(LIVE_EVENT_LIMIT),
4748
+ type: z32.literal("batch"),
4749
+ events: z32.array(runHistoryEventSchema).max(LIVE_EVENT_LIMIT),
4873
4750
  cursor: runHistoryCursorSchema,
4874
- afterSeq: z33.number().int().nonnegative(),
4875
- hasMore: z33.boolean()
4876
- });
4877
- var liveRunBatchResultSchema = z33.union([liveRunBatchSchema, liveRunErrorSchema]);
4878
- var liveRunBatchResponseSchema = z33.object({
4879
- generation: z33.string(),
4880
- results: z33.array(liveRunBatchResultSchema)
4881
- });
4882
- var liveRunFrameSchema = z33.union([
4883
- z33.object({ type: z33.literal("ready"), generation: z33.string() }),
4884
- z33.object({ type: z33.literal("ping") }),
4885
- identity.extend({ type: z33.literal("event"), name: z33.enum(["run-event", "ui-event"]), event: runHistoryEventSchema }),
4751
+ afterSeq: z32.number().int().nonnegative(),
4752
+ hasMore: z32.boolean()
4753
+ });
4754
+ var liveRunBatchResultSchema = z32.union([liveRunBatchSchema, liveRunErrorSchema]);
4755
+ var liveRunBatchResponseSchema = z32.object({
4756
+ generation: z32.string(),
4757
+ results: z32.array(liveRunBatchResultSchema)
4758
+ });
4759
+ var liveRunFrameSchema = z32.union([
4760
+ z32.object({ type: z32.literal("ready"), generation: z32.string() }),
4761
+ z32.object({ type: z32.literal("ping") }),
4762
+ identity.extend({ type: z32.literal("event"), name: z32.enum(["run-event", "ui-event"]), event: runHistoryEventSchema }),
4886
4763
  liveRunErrorSchema
4887
4764
  ]);
4888
4765
 
4889
4766
  // ../contract/src/activity.ts
4890
- import { z as z34 } from "zod";
4767
+ import { z as z33 } from "zod";
4891
4768
  var ACTIVITY_RATE_SECONDS = 30;
4892
4769
  var ACTIVITY_TEXT_MAX = 500;
4893
4770
  var ACTIVITY_ERROR_MAX = 200;
@@ -4895,144 +4772,144 @@ var ACTIVITY_TOOL_TITLE_MAX = 160;
4895
4772
  var ACTIVITY_CHECKS_MAX = 100;
4896
4773
  var ACTIVITY_CHECK_NAME_MAX = 100;
4897
4774
  var ACTIVITY_CLOSED_WINDOW_MS = 3e4;
4898
- var iso = z34.iso.datetime();
4899
- var count = z34.number().int().nonnegative();
4900
- var runId = z34.string().min(1);
4775
+ var iso = z33.iso.datetime();
4776
+ var count = z33.number().int().nonnegative();
4777
+ var runId = z33.string().min(1);
4901
4778
  var ACTIVITY_TOOL_KINDS = ["read", "edit", "delete", "move", "search", "execute", "think", "fetch", "task", "plan", "other"];
4902
- var activityToolSchema = z34.object({
4903
- title: z34.string().max(ACTIVITY_TOOL_TITLE_MAX),
4904
- toolKind: z34.enum(ACTIVITY_TOOL_KINDS),
4905
- status: z34.enum(["pending", "running", "completed", "failed", "declined"]),
4779
+ var activityToolSchema = z33.object({
4780
+ title: z33.string().max(ACTIVITY_TOOL_TITLE_MAX),
4781
+ toolKind: z33.enum(ACTIVITY_TOOL_KINDS),
4782
+ status: z33.enum(["pending", "running", "completed", "failed", "declined"]),
4906
4783
  startedAt: iso,
4907
4784
  endedAt: iso.optional()
4908
4785
  }).strict();
4909
- var activityCheckBucketSchema = z34.enum(["pass", "fail", "pending", "skipping", "cancel"]);
4910
- var activityPrProgressSchema = z34.object({
4911
- checks: z34.array(z34.object({ name: z34.string().max(ACTIVITY_CHECK_NAME_MAX), bucket: activityCheckBucketSchema }).strict()).max(ACTIVITY_CHECKS_MAX),
4912
- counts: z34.object({ pass: count, fail: count, pending: count, skipping: count, cancel: count }).strict(),
4913
- truncated: z34.literal(true).optional()
4786
+ var activityCheckBucketSchema = z33.enum(["pass", "fail", "pending", "skipping", "cancel"]);
4787
+ var activityPrProgressSchema = z33.object({
4788
+ checks: z33.array(z33.object({ name: z33.string().max(ACTIVITY_CHECK_NAME_MAX), bucket: activityCheckBucketSchema }).strict()).max(ACTIVITY_CHECKS_MAX),
4789
+ counts: z33.object({ pass: count, fail: count, pending: count, skipping: count, cancel: count }).strict(),
4790
+ truncated: z33.literal(true).optional()
4914
4791
  }).strict();
4915
- var activityWaitSchema = z34.discriminatedUnion("kind", [
4916
- z34.object({
4917
- kind: z34.literal("human"),
4792
+ var activityWaitSchema = z33.discriminatedUnion("kind", [
4793
+ z33.object({
4794
+ kind: z33.literal("human"),
4918
4795
  since: iso,
4919
- detail: z34.object({
4796
+ detail: z33.object({
4920
4797
  /** The ask card's first question. */
4921
- question: z34.string().max(ACTIVITY_TEXT_MAX).optional(),
4798
+ question: z33.string().max(ACTIVITY_TEXT_MAX).optional(),
4922
4799
  /** `question`: an open question; `turn-end`: Squawk's `no-wait` wait; `budget`: the
4923
4800
  * automatic-wake budget is spent; `completion`: Squawk's completion gate. */
4924
- reason: z34.enum(["question", "turn-end", "budget", "completion"]),
4801
+ reason: z33.enum(["question", "turn-end", "budget", "completion"]),
4925
4802
  /** Inputs not delivered yet, when there are any. */
4926
- queuedMessages: z34.number().int().positive().optional()
4803
+ queuedMessages: z33.number().int().positive().optional()
4927
4804
  }).strict()
4928
4805
  }).strict(),
4929
- z34.object({ kind: z34.literal("usage-limit"), detail: z34.object({ resumeAt: z34.string() }).strict() }).strict(),
4930
- z34.object({
4931
- kind: z34.literal("workers"),
4806
+ z33.object({ kind: z33.literal("usage-limit"), detail: z33.object({ resumeAt: z33.string() }).strict() }).strict(),
4807
+ z33.object({
4808
+ kind: z33.literal("workers"),
4932
4809
  since: iso,
4933
4810
  deadline: iso.optional(),
4934
- detail: z34.object({
4811
+ detail: z33.object({
4935
4812
  /** `computeWaitingOn`'s count: the unanswered targets, summed over the entries. */
4936
4813
  owed: count,
4937
4814
  /** Targets named and targets settled, summed over the entries. */
4938
4815
  total: count,
4939
4816
  settled: count,
4940
4817
  /** Every open entry waits on request replies. */
4941
- replies: z34.literal(true).optional(),
4818
+ replies: z33.literal(true).optional(),
4942
4819
  /** Only when one entry is open. */
4943
4820
  mode: workerWaitModeSchema.optional(),
4944
4821
  /** Who owes the awaited replies, each once. */
4945
- recipientRunIds: z34.array(runId)
4822
+ recipientRunIds: z33.array(runId)
4946
4823
  }).strict()
4947
4824
  }).strict(),
4948
- z34.object({ kind: z34.literal("peers"), since: iso, deadline: iso, detail: z34.object({ peerRunIds: z34.array(runId) }).strict() }).strict(),
4949
- z34.object({ kind: z34.literal("subagents"), since: iso, deadline: iso, detail: z34.object({ running: count }).strict() }).strict(),
4950
- z34.object({
4951
- kind: z34.literal("pr"),
4825
+ z33.object({ kind: z33.literal("peers"), since: iso, deadline: iso, detail: z33.object({ peerRunIds: z33.array(runId) }).strict() }).strict(),
4826
+ z33.object({ kind: z33.literal("subagents"), since: iso, deadline: iso, detail: z33.object({ running: count }).strict() }).strict(),
4827
+ z33.object({
4828
+ kind: z33.literal("pr"),
4952
4829
  since: iso,
4953
4830
  deadline: iso,
4954
- detail: z34.object({
4955
- number: z34.number().int().positive(),
4831
+ detail: z33.object({
4832
+ number: z33.number().int().positive(),
4956
4833
  target: prWaitUntilSchema,
4957
4834
  /** Check progress, while the CI progress registry holds some for this wait. */
4958
4835
  checks: activityPrProgressSchema.shape.checks.optional(),
4959
4836
  counts: activityPrProgressSchema.shape.counts.optional(),
4960
- truncated: z34.literal(true).optional()
4837
+ truncated: z33.literal(true).optional()
4961
4838
  }).strict()
4962
4839
  }).strict(),
4963
- z34.object({ kind: z34.literal("process"), since: iso, deadline: iso, detail: z34.object({ pid: z34.number().int(), note: z34.string().optional() }).strict() }).strict(),
4964
- z34.object({ kind: z34.literal("timer"), since: iso, deadline: iso, detail: z34.object({ wakeAt: iso, note: z34.string().optional() }).strict() }).strict()
4840
+ z33.object({ kind: z33.literal("process"), since: iso, deadline: iso, detail: z33.object({ pid: z33.number().int(), note: z33.string().optional() }).strict() }).strict(),
4841
+ z33.object({ kind: z33.literal("timer"), since: iso, deadline: iso, detail: z33.object({ wakeAt: iso, note: z33.string().optional() }).strict() }).strict()
4965
4842
  ]);
4966
4843
  var activityRunShape = {
4967
4844
  runId,
4968
4845
  /** The display title: `titleSummary ?? title`. */
4969
- title: z34.string(),
4846
+ title: z33.string(),
4970
4847
  status: runStatusSchema,
4971
4848
  /** The `deriveAttention` rung id, never a label. */
4972
- rung: z34.enum(ATTENTION_RUNGS),
4849
+ rung: z33.enum(ATTENTION_RUNGS),
4973
4850
  runner: runnerSchema.optional(),
4974
- model: z34.string().optional(),
4975
- currentStepId: z34.string().optional(),
4976
- startedAt: z34.string().optional(),
4851
+ model: z33.string().optional(),
4852
+ currentStepId: z33.string().optional(),
4853
+ startedAt: z33.string().optional(),
4977
4854
  wait: activityWaitSchema.optional(),
4978
4855
  tool: activityToolSchema.optional(),
4979
4856
  /** Tool calls started per second, oldest first. */
4980
- rate: z34.array(count).length(ACTIVITY_RATE_SECONDS),
4857
+ rate: z33.array(count).length(ACTIVITY_RATE_SECONDS),
4981
4858
  /** One line of `RunRecord.error`. */
4982
- error: z34.string().max(ACTIVITY_ERROR_MAX).optional()
4859
+ error: z33.string().max(ACTIVITY_ERROR_MAX).optional()
4983
4860
  };
4984
- var activityWorkerSchema = z34.object({
4861
+ var activityWorkerSchema = z33.object({
4985
4862
  ...activityRunShape,
4986
4863
  /** The worker's current execution revision. */
4987
4864
  revision: count,
4988
4865
  /** The parent holds a collected result for this revision. */
4989
- collected: z34.boolean()
4866
+ collected: z33.boolean()
4990
4867
  }).strict();
4991
- var activityRunSchema = z34.object({ ...activityRunShape, workers: z34.array(activityWorkerSchema) }).strict();
4992
- var activityRequestSchema = z34.object({
4993
- requestId: z34.uuid(),
4994
- relationship: z34.enum(["family", "peer"]),
4868
+ var activityRunSchema = z33.object({ ...activityRunShape, workers: z33.array(activityWorkerSchema) }).strict();
4869
+ var activityRequestSchema = z33.object({
4870
+ requestId: z33.uuid(),
4871
+ relationship: z33.enum(["family", "peer"]),
4995
4872
  senderRunId: runId,
4996
4873
  recipientRunId: runId,
4997
- text: z34.string().max(ACTIVITY_TEXT_MAX),
4998
- senderTitle: z34.string().optional(),
4999
- recipientTitle: z34.string().optional(),
4874
+ text: z33.string().max(ACTIVITY_TEXT_MAX),
4875
+ senderTitle: z33.string().optional(),
4876
+ recipientTitle: z33.string().optional(),
5000
4877
  createdAt: iso,
5001
4878
  deadline: iso.optional()
5002
4879
  }).strict();
5003
- var activityClosedRequestSchema = z34.object({
5004
- requestId: z34.uuid(),
4880
+ var activityClosedRequestSchema = z33.object({
4881
+ requestId: z33.uuid(),
5005
4882
  senderRunId: runId,
5006
4883
  recipientRunId: runId,
5007
4884
  status: requestOutcomeSchema.shape.status,
5008
4885
  observedAt: iso
5009
4886
  }).strict();
5010
- var activityProjectSchema = z34.object({
5011
- projectId: z34.string(),
5012
- name: z34.string(),
4887
+ var activityProjectSchema = z33.object({
4888
+ projectId: z33.string(),
4889
+ name: z33.string(),
5013
4890
  /** False for a project this process has not loaded: its lists are empty because nothing was read. */
5014
- loaded: z34.boolean(),
4891
+ loaded: z33.boolean(),
5015
4892
  /** The project is loaded but its run store cannot open: the failure its project routes answer.
5016
4893
  * The lists are empty because nothing could be read, not because nothing runs. */
5017
- unavailable: z34.object({ status: z34.union([z34.literal(404), z34.literal(409), z34.literal(503)]), error: z34.string() }).strict().optional(),
4894
+ unavailable: z33.object({ status: z33.union([z33.literal(404), z33.literal(409), z33.literal(503)]), error: z33.string() }).strict().optional(),
5018
4895
  /** Root tasks in review: the summary chip (D8). */
5019
4896
  inReview: count,
5020
- tasks: z34.array(activityRunSchema),
5021
- requests: z34.array(activityRequestSchema),
5022
- closed: z34.array(activityClosedRequestSchema)
4897
+ tasks: z33.array(activityRunSchema),
4898
+ requests: z33.array(activityRequestSchema),
4899
+ closed: z33.array(activityClosedRequestSchema)
5023
4900
  }).strict();
5024
- var activitySnapshotSchema = z34.object({
4901
+ var activitySnapshotSchema = z33.object({
5025
4902
  /** The server clock; the client ticks ages from it. */
5026
4903
  generatedAt: iso,
5027
4904
  /** One entry, or every visible project for the global read. */
5028
- projects: z34.array(activityProjectSchema)
4905
+ projects: z33.array(activityProjectSchema)
5029
4906
  }).strict();
5030
- var activityQuerySchema = z34.object({
5031
- project: z34.union([z34.literal("default"), z34.string().regex(PROJECT_ID_PATTERN)]).optional()
4907
+ var activityQuerySchema = z33.object({
4908
+ project: z33.union([z33.literal("default"), z33.string().regex(PROJECT_ID_PATTERN)]).optional()
5032
4909
  });
5033
4910
 
5034
4911
  // ../contract/src/live-coordination.ts
5035
- import { z as z35 } from "zod";
4912
+ import { z as z34 } from "zod";
5036
4913
  var LIVE_PROTOCOL = 3;
5037
4914
  var LIVE_WORKER_NAME = "cezar-live-v3";
5038
4915
  var LEASE_MS = 15e3;
@@ -5041,111 +4918,111 @@ function allowedLiveRead(path) {
5041
4918
  if (!path.startsWith("/api/v1/") || path.includes("#") || /[\\\r\n]/.test(path)) return false;
5042
4919
  return /^\/api\/v1\/(?:workspace\/(?:runs-index|activity)|p\/[a-zA-Z0-9_-]+\/(?:reports\/state|runs\/[a-zA-Z0-9._-]+\/(?:changes|commits)|github(?:\/(?:checks|ref-status))?))(?:\?[^#]*)?$/.test(path);
5043
4920
  }
5044
- var liveDemandSchema = z35.discriminatedUnion("kind", [
5045
- z35.object({ kind: z35.literal("workspace") }),
5046
- liveRunDemandSchema.extend({ kind: z35.literal("run") }),
5047
- z35.object({ kind: z35.literal("topic"), topic: z35.string().min(1).max(128) }),
4921
+ var liveDemandSchema = z34.discriminatedUnion("kind", [
4922
+ z34.object({ kind: z34.literal("workspace") }),
4923
+ liveRunDemandSchema.extend({ kind: z34.literal("run") }),
4924
+ z34.object({ kind: z34.literal("topic"), topic: z34.string().min(1).max(128) }),
5048
4925
  // Preserve server-directed cadence (settled references use ten minutes). Only
5049
4926
  // bound the timer itself: larger delays overflow setTimeout into a tight loop.
5050
- z35.object({ kind: z35.literal("read"), path: z35.string().max(4096).refine(allowedLiveRead), intervalMs: z35.number().int().min(1e3).max(2147483647) })
4927
+ z34.object({ kind: z34.literal("read"), path: z34.string().max(4096).refine(allowedLiveRead), intervalMs: z34.number().int().min(1e3).max(2147483647) })
5051
4928
  ]);
5052
- var liveEntrySchema = z35.object({ id: z35.string().min(1).max(128), demand: liveDemandSchema });
5053
- var envelope = z35.object({ version: z35.literal(LIVE_PROTOCOL), documentId: z35.string().min(1).max(128), epoch: z35.number().int().nonnegative() });
5054
- var ownerInputSchema = z35.discriminatedUnion("type", [
4929
+ var liveEntrySchema = z34.object({ id: z34.string().min(1).max(128), demand: liveDemandSchema });
4930
+ var envelope = z34.object({ version: z34.literal(LIVE_PROTOCOL), documentId: z34.string().min(1).max(128), epoch: z34.number().int().nonnegative() });
4931
+ var ownerInputSchema = z34.discriminatedUnion("type", [
5055
4932
  envelope.extend({
5056
- type: z35.literal("sync"),
5057
- entries: z35.array(liveEntrySchema).max(64),
4933
+ type: z34.literal("sync"),
4934
+ entries: z34.array(liveEntrySchema).max(64),
5058
4935
  /** The document knows no workspace stream generation (its `ready` was lost, for example to
5059
4936
  * an epoch change): send it the stream's `ready` again (hearsay-tools/cezarion#2729). */
5060
- workspaceReady: z35.literal(true).optional()
4937
+ workspaceReady: z34.literal(true).optional()
5061
4938
  }).refine((value) => new Set(value.entries.map((e) => e.id)).size === value.entries.length),
5062
- envelope.extend({ type: z35.literal("ack"), id: z35.string(), seq: z35.number().int().nonnegative() }),
5063
- envelope.extend({ type: z35.literal("refresh"), id: z35.string() })
4939
+ envelope.extend({ type: z34.literal("ack"), id: z34.string(), seq: z34.number().int().nonnegative() }),
4940
+ envelope.extend({ type: z34.literal("refresh"), id: z34.string() })
5064
4941
  ]);
5065
- var wireFrameSchema = z35.object({ event: z35.string(), data: z35.string(), id: z35.string() });
5066
- var ownerOutputSchema = z35.discriminatedUnion("type", [
5067
- z35.object({ type: z35.literal("unavailable"), version: z35.literal(LIVE_PROTOCOL), epoch: z35.number(), reason: z35.string() }),
5068
- z35.object({ type: z35.literal("hello"), version: z35.literal(LIVE_PROTOCOL) }),
5069
- z35.object({ type: z35.literal("alive"), version: z35.literal(LIVE_PROTOCOL), epoch: z35.number() }),
5070
- z35.object({ type: z35.literal("frame"), version: z35.literal(LIVE_PROTOCOL), epoch: z35.number(), id: z35.string(), frame: z35.union([wireFrameSchema, liveRunFrameSchema]) }),
5071
- z35.object({ type: z35.literal("value"), version: z35.literal(LIVE_PROTOCOL), epoch: z35.number(), id: z35.string(), value: z35.unknown(), error: z35.string().optional() }),
5072
- z35.object({ type: z35.literal("reset"), version: z35.literal(LIVE_PROTOCOL), epoch: z35.number(), id: z35.string(), reason: z35.string() })
4942
+ var wireFrameSchema = z34.object({ event: z34.string(), data: z34.string(), id: z34.string() });
4943
+ var ownerOutputSchema = z34.discriminatedUnion("type", [
4944
+ z34.object({ type: z34.literal("unavailable"), version: z34.literal(LIVE_PROTOCOL), epoch: z34.number(), reason: z34.string() }),
4945
+ z34.object({ type: z34.literal("hello"), version: z34.literal(LIVE_PROTOCOL) }),
4946
+ z34.object({ type: z34.literal("alive"), version: z34.literal(LIVE_PROTOCOL), epoch: z34.number() }),
4947
+ z34.object({ type: z34.literal("frame"), version: z34.literal(LIVE_PROTOCOL), epoch: z34.number(), id: z34.string(), frame: z34.union([wireFrameSchema, liveRunFrameSchema]) }),
4948
+ z34.object({ type: z34.literal("value"), version: z34.literal(LIVE_PROTOCOL), epoch: z34.number(), id: z34.string(), value: z34.unknown(), error: z34.string().optional() }),
4949
+ z34.object({ type: z34.literal("reset"), version: z34.literal(LIVE_PROTOCOL), epoch: z34.number(), id: z34.string(), reason: z34.string() })
5073
4950
  ]);
5074
4951
  var runKey = (run) => `${run.projectId}/${run.runId}`;
5075
4952
 
5076
4953
  // ../contract/src/workspace-events.ts
5077
- import { z as z36 } from "zod";
5078
- var workspaceEventsQuerySchema = z36.object({
5079
- runs: z36.literal("summary").optional()
4954
+ import { z as z35 } from "zod";
4955
+ var workspaceEventsQuerySchema = z35.object({
4956
+ runs: z35.literal("summary").optional()
5080
4957
  });
5081
- var projectStamp = z36.string().min(1);
5082
- var frameSeq = z36.number().int().positive();
5083
- var workspaceRunSummaryEventSchema = z36.object({
4958
+ var projectStamp = z35.string().min(1);
4959
+ var frameSeq = z35.number().int().positive();
4960
+ var workspaceRunSummaryEventSchema = z35.object({
5084
4961
  project: projectStamp,
5085
4962
  seq: frameSeq,
5086
4963
  run: runSummarySchema,
5087
- relationships: z36.string().min(1)
4964
+ relationships: z35.string().min(1)
5088
4965
  });
5089
- var workspaceRunDeletedEventSchema = z36.object({
4966
+ var workspaceRunDeletedEventSchema = z35.object({
5090
4967
  project: projectStamp,
5091
4968
  seq: frameSeq,
5092
- id: z36.string().min(1)
4969
+ id: z35.string().min(1)
5093
4970
  });
5094
- var workspaceReadyEventSchema = z36.object({
5095
- generation: z36.string().min(1),
5096
- seq: z36.number().int().nonnegative()
4971
+ var workspaceReadyEventSchema = z35.object({
4972
+ generation: z35.string().min(1),
4973
+ seq: z35.number().int().nonnegative()
5097
4974
  });
5098
- var workspaceUsageEventSchema = z36.object({
4975
+ var workspaceUsageEventSchema = z35.object({
5099
4976
  project: projectStamp,
5100
- usage: z36.record(z36.string(), processUsageSchema)
4977
+ usage: z35.record(z35.string(), processUsageSchema)
5101
4978
  });
5102
- var runsIndexResponseSchema = z36.object({
4979
+ var runsIndexResponseSchema = z35.object({
5103
4980
  /** Newest first, across every registered project: each project's window
5104
4981
  * (hearsay-tools/cezarion#864) — every unarchived root run, plus its newest `perProjectLimit`
5105
4982
  * archived root runs. Owned workers are never included. Older archived runs are reached
5106
4983
  * through `GET /workspace/runs-search`. */
5107
- runs: z36.array(runIndexEntrySchema),
4984
+ runs: z35.array(runIndexEntrySchema),
5108
4985
  /** Additive: absent statuses mean "nothing warm", never "nothing to show". */
5109
4986
  referenceStatuses: referenceStatusesByProjectSchema,
5110
4987
  /** How many archived root runs each project contributes at most. Unarchived roots are never cut. */
5111
- perProjectLimit: z36.number(),
4988
+ perProjectLimit: z35.number(),
5112
4989
  /** Ids of the projects that had more archived root runs than `perProjectLimit`. */
5113
- truncated: z36.array(z36.string()),
4990
+ truncated: z35.array(z35.string()),
5114
4991
  /** The server process that answered: the workspace stream's `ready.generation`. An `eventSeq`
5115
4992
  * compares only within one generation. */
5116
- generation: z36.string().min(1),
4993
+ generation: z35.string().min(1),
5117
4994
  /** The last workspace stream `seq` this answer includes: every `run-summary` and `run-deleted`
5118
4995
  * frame at or below it is already in `runs`; a frame above it is newer than the snapshot. */
5119
- eventSeq: z36.number().int().nonnegative()
4996
+ eventSeq: z35.number().int().nonnegative()
5120
4997
  });
5121
4998
 
5122
4999
  // ../contract/src/permissions.ts
5123
- import { z as z37 } from "zod";
5124
- var permissionOptionKindSchema = z37.enum(["allow_once", "allow_always", "reject_once", "reject_always"]);
5125
- var permissionOptionSchema = z37.object({
5126
- id: z37.string().min(1).max(128),
5127
- label: z37.string().min(1),
5000
+ import { z as z36 } from "zod";
5001
+ var permissionOptionKindSchema = z36.enum(["allow_once", "allow_always", "reject_once", "reject_always"]);
5002
+ var permissionOptionSchema = z36.object({
5003
+ id: z36.string().min(1).max(128),
5004
+ label: z36.string().min(1),
5128
5005
  kind: permissionOptionKindSchema
5129
5006
  }).strict();
5130
- var permissionRequestedSchema = z37.object({
5131
- type: z37.literal("permission.requested"),
5132
- requestId: z37.string().min(1).max(128),
5133
- itemId: z37.string().optional(),
5134
- title: z37.string().min(1),
5135
- details: z37.string().optional(),
5136
- options: z37.array(permissionOptionSchema).min(1).refine((options) => new Set(options.map((option) => option.id)).size === options.length)
5007
+ var permissionRequestedSchema = z36.object({
5008
+ type: z36.literal("permission.requested"),
5009
+ requestId: z36.string().min(1).max(128),
5010
+ itemId: z36.string().optional(),
5011
+ title: z36.string().min(1),
5012
+ details: z36.string().optional(),
5013
+ options: z36.array(permissionOptionSchema).min(1).refine((options) => new Set(options.map((option) => option.id)).size === options.length)
5137
5014
  }).strict();
5138
- var permissionResolvedSchema = z37.object({
5139
- type: z37.literal("permission.resolved"),
5140
- requestId: z37.string().min(1).max(128),
5141
- optionId: z37.string().optional(),
5142
- reason: z37.string().optional()
5015
+ var permissionResolvedSchema = z36.object({
5016
+ type: z36.literal("permission.resolved"),
5017
+ requestId: z36.string().min(1).max(128),
5018
+ optionId: z36.string().optional(),
5019
+ reason: z36.string().optional()
5143
5020
  }).strict();
5144
- var permissionDecisionSchema = z37.object({
5145
- requestId: z37.string().min(1).max(128),
5146
- optionId: z37.string().min(1).max(128)
5021
+ var permissionDecisionSchema = z36.object({
5022
+ requestId: z36.string().min(1).max(128),
5023
+ optionId: z36.string().min(1).max(128)
5147
5024
  }).strict();
5148
- var permissionDecisionResponseSchema = z37.object({ delivered: z37.literal(true) });
5025
+ var permissionDecisionResponseSchema = z36.object({ delivered: z36.literal(true) });
5149
5026
 
5150
5027
  // ../contract/src/defined.ts
5151
5028
  function defined(value) {
@@ -5370,85 +5247,85 @@ function isImagePath(path) {
5370
5247
  }
5371
5248
 
5372
5249
  // ../contract/src/provider-requests.ts
5373
- import { z as z38 } from "zod";
5250
+ import { z as z37 } from "zod";
5374
5251
  var PROVIDER_IDS = runnerSchema.options;
5375
- var providerConnectSchema = z38.object({
5376
- provider: z38.enum(PROVIDER_IDS),
5252
+ var providerConnectSchema = z37.object({
5253
+ provider: z37.enum(PROVIDER_IDS),
5377
5254
  /** Which agent account to sign in (spec 2026-07-29-agent-profiles). Absent = the discovered
5378
5255
  * default, which is what every pre-profiles client sends. Without this, "Connect" on a second
5379
5256
  * Claude account would open a login for the FIRST one and report success. */
5380
- profileId: z38.string().max(64).optional()
5257
+ profileId: z37.string().max(64).optional()
5381
5258
  }).strict();
5382
- var createAgentProfileSchema = z38.object({
5383
- provider: z38.enum(PROVIDER_IDS),
5384
- label: z38.string().trim().max(200).optional(),
5385
- configDir: z38.string().trim().min(1).max(4096)
5259
+ var createAgentProfileSchema = z37.object({
5260
+ provider: z37.enum(PROVIDER_IDS),
5261
+ label: z37.string().trim().max(200).optional(),
5262
+ configDir: z37.string().trim().min(1).max(4096)
5386
5263
  }).strict();
5387
- var openAgentAccountFileSchema = z38.object({
5388
- file: z38.string().min(1).max(200),
5389
- target: z38.string().min(1).max(64).optional()
5264
+ var openAgentAccountFileSchema = z37.object({
5265
+ file: z37.string().min(1).max(200),
5266
+ target: z37.string().min(1).max(64).optional()
5390
5267
  }).strict();
5391
- var updateAgentProfileSchema = z38.object({
5392
- label: z38.string().trim().max(200).optional(),
5393
- configDir: z38.string().trim().min(1).max(4096).optional()
5268
+ var updateAgentProfileSchema = z37.object({
5269
+ label: z37.string().trim().max(200).optional(),
5270
+ configDir: z37.string().trim().min(1).max(4096).optional()
5394
5271
  }).strict().refine(
5395
5272
  (value) => value.label !== void 0 || value.configDir !== void 0,
5396
5273
  "send label or configDir"
5397
5274
  );
5398
- var selectAgentProfileSchema = z38.object({
5275
+ var selectAgentProfileSchema = z37.object({
5399
5276
  /** `null` targets the machine-wide default rather than one repo. */
5400
- projectId: z38.string().min(1).max(64).nullable(),
5401
- provider: z38.enum(PROVIDER_IDS),
5402
- profileId: z38.string().max(64).nullable()
5277
+ projectId: z37.string().min(1).max(64).nullable(),
5278
+ provider: z37.enum(PROVIDER_IDS),
5279
+ profileId: z37.string().max(64).nullable()
5403
5280
  }).strict();
5404
- var providerParamSchema = z38.enum(PROVIDER_IDS);
5405
- var providerEnabledSchema = z38.object({ enabled: z38.boolean() }).strict();
5406
- var providerRetrySchema = z38.object({
5407
- authFailureId: z38.string().min(1).max(128)
5281
+ var providerParamSchema = z37.enum(PROVIDER_IDS);
5282
+ var providerEnabledSchema = z37.object({ enabled: z37.boolean() }).strict();
5283
+ var providerRetrySchema = z37.object({
5284
+ authFailureId: z37.string().min(1).max(128)
5408
5285
  }).strict();
5409
- var providerRouteParamsSchema = z38.object({ provider: providerParamSchema });
5410
- var agentProfileRouteParamsSchema = z38.object({ id: z38.string() });
5286
+ var providerRouteParamsSchema = z37.object({ provider: providerParamSchema });
5287
+ var agentProfileRouteParamsSchema = z37.object({ id: z37.string() });
5411
5288
 
5412
5289
  // ../contract/src/automation-requests.ts
5413
- import { z as z40 } from "zod";
5290
+ import { z as z39 } from "zod";
5414
5291
 
5415
5292
  // ../contract/src/automation-storage.ts
5416
- import { z as z39 } from "zod";
5293
+ import { z as z38 } from "zod";
5417
5294
  var RUNNER_IDS = runnerSchema.options;
5418
- var storedAutomationEventSchema = z39.enum([
5295
+ var storedAutomationEventSchema = z38.enum([
5419
5296
  "pull_request.opened",
5420
5297
  "issue.opened",
5421
5298
  "issue.labeled",
5422
5299
  "issue.unlabeled"
5423
5300
  ]);
5424
- var boundedString = z39.string().trim().min(1).max(200);
5425
- var stringList = z39.array(boundedString).max(100).optional();
5426
- var storedAutomationFiltersSchema = z39.object({
5427
- includeExisting: z39.boolean().optional(),
5301
+ var boundedString = z38.string().trim().min(1).max(200);
5302
+ var stringList = z38.array(boundedString).max(100).optional();
5303
+ var storedAutomationFiltersSchema = z38.object({
5304
+ includeExisting: z38.boolean().optional(),
5428
5305
  /** Require an open item and matching live labels before reservation and launch. */
5429
- requireCurrentLabels: z39.boolean().optional(),
5306
+ requireCurrentLabels: z38.boolean().optional(),
5430
5307
  authors: stringList,
5431
5308
  assignees: stringList,
5432
5309
  allLabels: stringList,
5433
5310
  anyLabels: stringList,
5434
5311
  excludeLabels: stringList,
5435
5312
  changedLabels: stringList,
5436
- lookbackDays: z39.number().int().min(1).max(90).default(7),
5437
- maxRecords: z39.number().int().min(1).max(100).default(25)
5313
+ lookbackDays: z38.number().int().min(1).max(90).default(7),
5314
+ maxRecords: z38.number().int().min(1).max(100).default(25)
5438
5315
  }).passthrough();
5439
- var storedAutomationTaskSchema = z39.object({
5440
- prompt: z39.string().min(1).max(1e5),
5441
- workflow: z39.string().trim().min(1).max(200).optional(),
5442
- steps: z39.array(workflowStepDefSchema).min(1).max(100).optional(),
5443
- runner: z39.enum(RUNNER_IDS).optional(),
5444
- model: z39.string().trim().min(1).max(200).optional(),
5445
- effort: z39.string().trim().min(1).max(32).optional(),
5446
- variants: z39.union([z39.literal(1), z39.literal(2), z39.literal(3)]).optional(),
5447
- worktree: z39.boolean().optional(),
5448
- autonomous: z39.boolean().optional(),
5316
+ var storedAutomationTaskSchema = z38.object({
5317
+ prompt: z38.string().min(1).max(1e5),
5318
+ workflow: z38.string().trim().min(1).max(200).optional(),
5319
+ steps: z38.array(workflowStepDefSchema).min(1).max(100).optional(),
5320
+ runner: z38.enum(RUNNER_IDS).optional(),
5321
+ model: z38.string().trim().min(1).max(200).optional(),
5322
+ effort: z38.string().trim().min(1).max(32).optional(),
5323
+ variants: z38.union([z38.literal(1), z38.literal(2), z38.literal(3)]).optional(),
5324
+ worktree: z38.boolean().optional(),
5325
+ autonomous: z38.boolean().optional(),
5449
5326
  ...completionControlsShape,
5450
5327
  ...taskAccessShape,
5451
- systemPrompt: z39.string().max(1e5).optional()
5328
+ systemPrompt: z38.string().max(1e5).optional()
5452
5329
  }).passthrough().refine((task) => !(task.workflow && task.steps), {
5453
5330
  message: "task selects either a named workflow or inline steps, not both"
5454
5331
  });
@@ -5462,122 +5339,122 @@ var fillGithubDefaults = (raw) => {
5462
5339
  filters: record.filters ?? {}
5463
5340
  };
5464
5341
  };
5465
- var storedAutomationDefinitionObjectSchema = z39.object({
5466
- id: z39.string().min(1).max(100),
5467
- revision: z39.number().int().positive(),
5468
- name: z39.string().trim().min(1).max(200),
5469
- description: z39.string().max(2e3).optional(),
5470
- enabled: z39.boolean().default(false),
5342
+ var storedAutomationDefinitionObjectSchema = z38.object({
5343
+ id: z38.string().min(1).max(100),
5344
+ revision: z38.number().int().positive(),
5345
+ name: z38.string().trim().min(1).max(200),
5346
+ description: z38.string().max(2e3).optional(),
5347
+ enabled: z38.boolean().default(false),
5471
5348
  /** A definition written before schedules has no `kind`: it is a poll. */
5472
5349
  kind: automationKindSchema.default("github"),
5473
- events: z39.array(storedAutomationEventSchema).min(1).max(4).optional(),
5474
- intervalSeconds: z39.number().int().min(60).max(86400).optional(),
5350
+ events: z38.array(storedAutomationEventSchema).min(1).max(4).optional(),
5351
+ intervalSeconds: z38.number().int().min(60).max(86400).optional(),
5475
5352
  filters: storedAutomationFiltersSchema.optional(),
5476
5353
  // Passthrough like every other persisted layer: a schedule key a later build adds survives a save here.
5477
5354
  schedule: automationScheduleSchema.passthrough().optional(),
5478
5355
  task: storedAutomationTaskSchema,
5479
5356
  /** `once` schedules only (hearsay-tools/cezarion#1465): the archive record. */
5480
- archived: z39.object({
5481
- at: z39.string().datetime(),
5482
- outcome: z39.enum(["launched", "cancelled"]),
5483
- runId: z39.string().optional(),
5484
- receiptId: z39.string().optional(),
5485
- trigger: z39.enum(["schedule", "late", "manual", "retry"]).optional()
5357
+ archived: z38.object({
5358
+ at: z38.string().datetime(),
5359
+ outcome: z38.enum(["launched", "cancelled"]),
5360
+ runId: z38.string().optional(),
5361
+ receiptId: z38.string().optional(),
5362
+ trigger: z38.enum(["schedule", "late", "manual", "retry"]).optional()
5486
5363
  }).passthrough().optional(),
5487
- createdAt: z39.string().datetime(),
5488
- updatedAt: z39.string().datetime()
5364
+ createdAt: z38.string().datetime(),
5365
+ updatedAt: z38.string().datetime()
5489
5366
  }).passthrough().superRefine((definition, ctx) => {
5490
5367
  if (definition.kind === "schedule") {
5491
5368
  if (!definition.schedule) {
5492
- ctx.addIssue({ code: z39.ZodIssueCode.custom, path: ["schedule"], message: "a scheduled automation needs a schedule" });
5369
+ ctx.addIssue({ code: z38.ZodIssueCode.custom, path: ["schedule"], message: "a scheduled automation needs a schedule" });
5493
5370
  }
5494
5371
  return;
5495
5372
  }
5496
5373
  if (!definition.events?.length) {
5497
- ctx.addIssue({ code: z39.ZodIssueCode.custom, path: ["events"], message: "a GitHub automation needs at least one event" });
5374
+ ctx.addIssue({ code: z38.ZodIssueCode.custom, path: ["events"], message: "a GitHub automation needs at least one event" });
5498
5375
  }
5499
5376
  if (definition.intervalSeconds === void 0) {
5500
- ctx.addIssue({ code: z39.ZodIssueCode.custom, path: ["intervalSeconds"], message: "a GitHub automation needs a poll interval" });
5377
+ ctx.addIssue({ code: z38.ZodIssueCode.custom, path: ["intervalSeconds"], message: "a GitHub automation needs a poll interval" });
5501
5378
  }
5502
5379
  if (!definition.filters) {
5503
- ctx.addIssue({ code: z39.ZodIssueCode.custom, path: ["filters"], message: "a GitHub automation needs its bounded filter" });
5380
+ ctx.addIssue({ code: z38.ZodIssueCode.custom, path: ["filters"], message: "a GitHub automation needs its bounded filter" });
5504
5381
  }
5505
5382
  if (definition.events?.some((event) => event === "issue.labeled" || event === "issue.unlabeled") && !definition.filters?.changedLabels?.length) {
5506
5383
  ctx.addIssue({
5507
- code: z39.ZodIssueCode.custom,
5384
+ code: z38.ZodIssueCode.custom,
5508
5385
  path: ["filters", "changedLabels"],
5509
5386
  message: "changedLabels is required for issue label events"
5510
5387
  });
5511
5388
  }
5512
5389
  });
5513
- var storedAutomationDefinitionSchema = z39.preprocess(fillGithubDefaults, storedAutomationDefinitionObjectSchema);
5514
- var storedAutomationDefinitionsFileSchema = z39.object({
5515
- version: z39.literal(1).default(1),
5516
- automations: z39.array(z39.unknown()).default([]),
5517
- tombstones: z39.record(z39.string(), z39.string().datetime()).optional()
5390
+ var storedAutomationDefinitionSchema = z38.preprocess(fillGithubDefaults, storedAutomationDefinitionObjectSchema);
5391
+ var storedAutomationDefinitionsFileSchema = z38.object({
5392
+ version: z38.literal(1).default(1),
5393
+ automations: z38.array(z38.unknown()).default([]),
5394
+ tombstones: z38.record(z38.string(), z38.string().datetime()).optional()
5518
5395
  }).passthrough();
5519
- var storedAutomationCursorSchema = z39.object({
5520
- timestamp: z39.string().datetime(),
5521
- tieBreaker: z39.string().optional()
5396
+ var storedAutomationCursorSchema = z38.object({
5397
+ timestamp: z38.string().datetime(),
5398
+ tieBreaker: z38.string().optional()
5522
5399
  }).passthrough();
5523
5400
  var storedAutomationHistoryScanSchema = automationHistoryScanSchema.extend({
5524
5401
  cursor: storedAutomationCursorSchema.optional()
5525
5402
  });
5526
- var storedAutomationRuntimeStateSchema = z39.object({
5527
- revision: z39.number().int().positive().optional(),
5528
- baselineAt: z39.string().datetime().optional(),
5403
+ var storedAutomationRuntimeStateSchema = z38.object({
5404
+ revision: z38.number().int().positive().optional(),
5405
+ baselineAt: z38.string().datetime().optional(),
5529
5406
  /** Arming time, independent of a history window's older lower bound. */
5530
- armedAt: z39.string().datetime().optional(),
5407
+ armedAt: z38.string().datetime().optional(),
5531
5408
  historyScan: storedAutomationHistoryScanSchema.optional(),
5532
5409
  cursor: storedAutomationCursorSchema.optional(),
5533
- frozenHighWatermark: storedAutomationCursorSchema.extend({ tieBreaker: z39.string() }).optional(),
5534
- backlogAfter: storedAutomationCursorSchema.extend({ tieBreaker: z39.string() }).optional(),
5535
- nextCheckAt: z39.string().datetime().optional(),
5536
- lastSuccessAt: z39.string().datetime().optional(),
5410
+ frozenHighWatermark: storedAutomationCursorSchema.extend({ tieBreaker: z38.string() }).optional(),
5411
+ backlogAfter: storedAutomationCursorSchema.extend({ tieBreaker: z38.string() }).optional(),
5412
+ nextCheckAt: z38.string().datetime().optional(),
5413
+ lastSuccessAt: z38.string().datetime().optional(),
5537
5414
  /** schedule kind: the next occurrence's instant and the last fired one's. */
5538
- nextRunAt: z39.string().datetime().optional(),
5539
- lastRunAt: z39.string().datetime().optional(),
5540
- etags: z39.record(z39.string(), z39.string()).optional(),
5541
- backoffUntil: z39.string().datetime().optional(),
5542
- consecutiveFailures: z39.number().int().nonnegative().optional(),
5415
+ nextRunAt: z38.string().datetime().optional(),
5416
+ lastRunAt: z38.string().datetime().optional(),
5417
+ etags: z38.record(z38.string(), z38.string()).optional(),
5418
+ backoffUntil: z38.string().datetime().optional(),
5419
+ consecutiveFailures: z38.number().int().nonnegative().optional(),
5543
5420
  ...automationLastErrorShape,
5544
5421
  /** once schedule: it stopped without a task — the launch failed, or it started past its cutoff. */
5545
- onceOutcome: z39.enum(["failed", "missed"]).optional()
5422
+ onceOutcome: z38.enum(["failed", "missed"]).optional()
5546
5423
  }).passthrough();
5547
- var storedAutomationStateFileSchema = z39.object({
5548
- version: z39.literal(1).default(1),
5549
- states: z39.record(z39.string(), storedAutomationRuntimeStateSchema).default({})
5424
+ var storedAutomationStateFileSchema = z38.object({
5425
+ version: z38.literal(1).default(1),
5426
+ states: z38.record(z38.string(), storedAutomationRuntimeStateSchema).default({})
5550
5427
  }).passthrough();
5551
- var storedAutomationReceiptSchema = z39.object({
5552
- receiptId: z39.string().min(1),
5553
- receiptKey: z39.string().min(1),
5554
- eventId: z39.string().min(1),
5555
- automationId: z39.string().min(1),
5556
- revision: z39.number().int().positive(),
5557
- status: z39.enum(["reserved", "launched", "launch-error", "released"]),
5558
- runId: z39.string().optional(),
5559
- observedAt: z39.string().datetime(),
5560
- updatedAt: z39.string().datetime(),
5561
- error: z39.string().max(2e3).optional(),
5428
+ var storedAutomationReceiptSchema = z38.object({
5429
+ receiptId: z38.string().min(1),
5430
+ receiptKey: z38.string().min(1),
5431
+ eventId: z38.string().min(1),
5432
+ automationId: z38.string().min(1),
5433
+ revision: z38.number().int().positive(),
5434
+ status: z38.enum(["reserved", "launched", "launch-error", "released"]),
5435
+ runId: z38.string().optional(),
5436
+ observedAt: z38.string().datetime(),
5437
+ updatedAt: z38.string().datetime(),
5438
+ error: z38.string().max(2e3).optional(),
5562
5439
  /** schedule kind: the occurrence this receipt reserved, so a retry can fire it again. */
5563
- occurrenceAt: z39.string().datetime().optional(),
5564
- candidate: z39.object({
5565
- eventId: z39.string(),
5440
+ occurrenceAt: z38.string().datetime().optional(),
5441
+ candidate: z38.object({
5442
+ eventId: z38.string(),
5566
5443
  event: storedAutomationEventSchema,
5567
- timestamp: z39.string().datetime(),
5568
- tieBreaker: z39.string(),
5569
- repo: z39.string(),
5570
- nodeId: z39.string(),
5571
- number: z39.number().int().positive(),
5572
- title: z39.string().max(500),
5573
- url: z39.string().url(),
5574
- author: z39.string().max(200),
5575
- assignees: z39.array(z39.string().max(200)).max(100),
5576
- labels: z39.array(z39.string().max(200)).max(100),
5577
- changedLabel: z39.string().max(200).optional()
5444
+ timestamp: z38.string().datetime(),
5445
+ tieBreaker: z38.string(),
5446
+ repo: z38.string(),
5447
+ nodeId: z38.string(),
5448
+ number: z38.number().int().positive(),
5449
+ title: z38.string().max(500),
5450
+ url: z38.string().url(),
5451
+ author: z38.string().max(200),
5452
+ assignees: z38.array(z38.string().max(200)).max(100),
5453
+ labels: z38.array(z38.string().max(200)).max(100),
5454
+ changedLabel: z38.string().max(200).optional()
5578
5455
  }).passthrough().optional()
5579
5456
  }).passthrough();
5580
- var storedAutomationLogResultSchema = z39.enum([
5457
+ var storedAutomationLogResultSchema = z38.enum([
5581
5458
  "launched",
5582
5459
  "no-match",
5583
5460
  "duplicate",
@@ -5593,24 +5470,24 @@ var storedAutomationLogResultSchema = z39.enum([
5593
5470
  // once schedule
5594
5471
  "missed"
5595
5472
  ]);
5596
- var storedAutomationLogRecordSchema = z39.object({
5597
- seq: z39.number().int().positive(),
5598
- ts: z39.string().datetime(),
5599
- automationId: z39.string().min(1),
5600
- revision: z39.number().int().positive(),
5473
+ var storedAutomationLogRecordSchema = z38.object({
5474
+ seq: z38.number().int().positive(),
5475
+ ts: z38.string().datetime(),
5476
+ automationId: z38.string().min(1),
5477
+ revision: z38.number().int().positive(),
5601
5478
  event: storedAutomationEventSchema.optional(),
5602
5479
  result: storedAutomationLogResultSchema,
5603
- reason: z39.string().max(2e3).optional(),
5604
- durationMs: z39.number().int().nonnegative().optional(),
5605
- receiptId: z39.string().optional(),
5606
- runId: z39.string().optional(),
5607
- githubNumber: z39.number().int().positive().optional(),
5608
- githubTitle: z39.string().max(500).optional(),
5609
- githubUrl: z39.string().url().optional(),
5610
- rateLimit: z39.object({
5611
- bucket: z39.enum(["core", "search"]),
5612
- remaining: z39.number().int().nonnegative().optional(),
5613
- resetAt: z39.string().datetime().optional()
5480
+ reason: z38.string().max(2e3).optional(),
5481
+ durationMs: z38.number().int().nonnegative().optional(),
5482
+ receiptId: z38.string().optional(),
5483
+ runId: z38.string().optional(),
5484
+ githubNumber: z38.number().int().positive().optional(),
5485
+ githubTitle: z38.string().max(500).optional(),
5486
+ githubUrl: z38.string().url().optional(),
5487
+ rateLimit: z38.object({
5488
+ bucket: z38.enum(["core", "search"]),
5489
+ remaining: z38.number().int().nonnegative().optional(),
5490
+ resetAt: z38.string().datetime().optional()
5614
5491
  }).passthrough().optional()
5615
5492
  }).passthrough();
5616
5493
  function storedIsOnceSchedule(definition) {
@@ -5624,208 +5501,208 @@ function storedIsScheduleAutomation(definition) {
5624
5501
  }
5625
5502
 
5626
5503
  // ../contract/src/automation-requests.ts
5627
- var automationEditableSchema = z40.object({
5628
- name: z40.string().trim().min(1).max(200),
5629
- description: z40.string().max(2e3).optional(),
5630
- enabled: z40.boolean().optional(),
5504
+ var automationEditableSchema = z39.object({
5505
+ name: z39.string().trim().min(1).max(200),
5506
+ description: z39.string().max(2e3).optional(),
5507
+ enabled: z39.boolean().optional(),
5631
5508
  kind: automationKindSchema.optional(),
5632
- events: z40.array(automationEventSchema).min(1).max(4).optional(),
5633
- intervalSeconds: z40.number().int().min(60).max(86400).optional(),
5509
+ events: z39.array(automationEventSchema).min(1).max(4).optional(),
5510
+ intervalSeconds: z39.number().int().min(60).max(86400).optional(),
5634
5511
  filters: storedAutomationFiltersSchema.optional(),
5635
5512
  schedule: automationScheduleSchema.optional(),
5636
5513
  task: storedAutomationTaskSchema.safeExtend({ variants: singleRunVariantsSchema })
5637
5514
  }).strict();
5638
- var automationCreateSchema = automationEditableSchema.extend({ enable: z40.boolean().optional() });
5639
- var automationUpdateSchema = automationEditableSchema.extend({ expectedRevision: z40.number().int().positive() });
5640
- var automationCheckRequestSchema = z40.object({ mode: z40.enum(["preview", "execute"]) }).strict();
5641
- var automationLogQuerySchema = z40.object({
5642
- automationId: z40.string().optional(),
5515
+ var automationCreateSchema = automationEditableSchema.extend({ enable: z39.boolean().optional() });
5516
+ var automationUpdateSchema = automationEditableSchema.extend({ expectedRevision: z39.number().int().positive() });
5517
+ var automationCheckRequestSchema = z39.object({ mode: z39.enum(["preview", "execute"]) }).strict();
5518
+ var automationLogQuerySchema = z39.object({
5519
+ automationId: z39.string().optional(),
5643
5520
  result: automationLogResultSchema.optional(),
5644
5521
  event: automationEventSchema.optional(),
5645
- since: z40.string().datetime().optional(),
5646
- cursor: z40.coerce.number().int().positive().optional(),
5522
+ since: z39.string().datetime().optional(),
5523
+ cursor: z39.coerce.number().int().positive().optional(),
5647
5524
  // Optional, not `.default(100)`: `AutomationStore.logs` already clamps `limit ?? 100` into
5648
5525
  // 1..100, so the default here was a second copy of it — and a defaulted key is REQUIRED in the
5649
5526
  // request type `queryZodValidator` publishes (see validators.ts on why the request side falls
5650
5527
  // back to the schema's output), which would have made every caller send a `?limit=` this route
5651
5528
  // never needed.
5652
- limit: z40.coerce.number().int().min(1).max(100).optional()
5529
+ limit: z39.coerce.number().int().min(1).max(100).optional()
5653
5530
  });
5654
5531
 
5655
5532
  // ../contract/src/workflow-requests.ts
5656
- import { z as z41 } from "zod";
5657
- var planSchema = z41.object({
5533
+ import { z as z40 } from "zod";
5534
+ var planSchema = z40.object({
5658
5535
  // Same bound as `createRunInputSchema.task` — this flows into `planChain` (legacy reference 429).
5659
- task: z41.string().trim().min(1).max(1e5, "must be at most 100000 characters")
5536
+ task: z40.string().trim().min(1).max(1e5, "must be at most 100000 characters")
5660
5537
  });
5661
- var parseWorkflowSchema = z41.object({
5662
- yaml: z41.string().min(1).max(1e5)
5538
+ var parseWorkflowSchema = z40.object({
5539
+ yaml: z40.string().min(1).max(1e5)
5663
5540
  });
5664
5541
 
5665
5542
  // ../contract/src/ui-state-requests.ts
5666
- import { z as z42 } from "zod";
5543
+ import { z as z41 } from "zod";
5667
5544
  var SKILL_USAGE_MAX_ENTRIES = 200;
5668
5545
  var UI_STATE_MAX_KEYS = 200;
5669
5546
  var uiStateSchema2 = uiStateSchema.extend({
5670
5547
  // null records a quick task with no selected skill or workflow.
5671
- lastTask: z42.object({
5672
- source: z42.enum(["workflow", "skill"]),
5673
- ref: z42.string().min(1).max(200)
5548
+ lastTask: z41.object({
5549
+ source: z41.enum(["workflow", "skill"]),
5550
+ ref: z41.string().min(1).max(200)
5674
5551
  }).nullable().optional(),
5675
5552
  // Most recent source choices, newest first.
5676
- recentSources: z42.array(
5677
- z42.object({
5678
- source: z42.enum(["workflow", "skill"]),
5679
- ref: z42.string().min(1).max(200)
5553
+ recentSources: z41.array(
5554
+ z41.object({
5555
+ source: z41.enum(["workflow", "skill"]),
5556
+ ref: z41.string().min(1).max(200)
5680
5557
  })
5681
5558
  ).max(50).optional(),
5682
- skillUsage: z42.record(z42.string().min(1).max(200), z42.number().int().min(0).max(1e6)).refine((usage) => Object.keys(usage).length <= SKILL_USAGE_MAX_ENTRIES, {
5559
+ skillUsage: z41.record(z41.string().min(1).max(200), z41.number().int().min(0).max(1e6)).refine((usage) => Object.keys(usage).length <= SKILL_USAGE_MAX_ENTRIES, {
5683
5560
  message: `skillUsage must have at most ${SKILL_USAGE_MAX_ENTRIES} entries`
5684
5561
  }).optional(),
5685
- promptTemplates: z42.array(
5686
- z42.object({
5687
- id: z42.string().min(1).max(64),
5688
- label: z42.string().trim().min(1).max(80),
5689
- text: z42.string().trim().min(1).max(2e3),
5562
+ promptTemplates: z41.array(
5563
+ z41.object({
5564
+ id: z41.string().min(1).max(64),
5565
+ label: z41.string().trim().min(1).max(80),
5566
+ text: z41.string().trim().min(1).max(2e3),
5690
5567
  // Skill names this template auto-applies for. Optional and additive: templates
5691
5568
  // written before this key existed keep validating, and stay manual-only.
5692
- skills: z42.array(z42.string().trim().min(1).max(200)).max(50).optional()
5569
+ skills: z41.array(z41.string().trim().min(1).max(200)).max(50).optional()
5693
5570
  })
5694
5571
  ).max(50).optional()
5695
5572
  }).passthrough();
5696
5573
  function capUiStateKeys(data, ctx) {
5697
5574
  if (Object.keys(data).length > UI_STATE_MAX_KEYS) {
5698
- ctx.addIssue({ code: z42.ZodIssueCode.custom, message: `ui-state has too many keys (max ${UI_STATE_MAX_KEYS})` });
5575
+ ctx.addIssue({ code: z41.ZodIssueCode.custom, message: `ui-state has too many keys (max ${UI_STATE_MAX_KEYS})` });
5699
5576
  }
5700
5577
  }
5701
5578
  var uiStateBody = uiStateSchema2.superRefine(capUiStateKeys);
5702
5579
 
5703
5580
  // ../contract/src/run-requests.ts
5704
- import { z as z43 } from "zod";
5581
+ import { z as z42 } from "zod";
5705
5582
  var RUNNER_IDS2 = runnerSchema.options;
5706
- var queuedMessagePatchSchema = z43.object({
5707
- text: z43.string().max(1e5).optional(),
5708
- images: z43.array(attachmentInputSchema).max(4).optional()
5583
+ var queuedMessagePatchSchema = z42.object({
5584
+ text: z42.string().max(1e5).optional(),
5585
+ images: z42.array(attachmentInputSchema).max(4).optional()
5709
5586
  }).refine((m) => m.text !== void 0 || m.images !== void 0, {
5710
5587
  message: "message edit needs text or attachments"
5711
5588
  });
5712
- var continueSchema = z43.object({
5713
- text: z43.string().max(1e5, "must be at most 100000 characters").optional(),
5714
- images: z43.array(attachmentInputSchema).max(4).optional(),
5715
- runner: z43.enum(RUNNER_IDS2).optional(),
5716
- model: z43.string().max(200).optional(),
5589
+ var continueSchema = z42.object({
5590
+ text: z42.string().max(1e5, "must be at most 100000 characters").optional(),
5591
+ images: z42.array(attachmentInputSchema).max(4).optional(),
5592
+ runner: z42.enum(RUNNER_IDS2).optional(),
5593
+ model: z42.string().max(200).optional(),
5717
5594
  /** Reasoning-effort pin (legacy reference 45). Omitted keeps the run's pin; empty string clears it. */
5718
- effort: z43.string().max(32).optional(),
5595
+ effort: z42.string().max(32).optional(),
5719
5596
  /** Agent account for the reopened session (spec 2026-07-29-agent-profiles). Bound mirrors
5720
5597
  * `POST /runs`' own `agentProfile`. Omitted = keep the account the run is already on. */
5721
- agentProfile: z43.string().max(64).optional()
5598
+ agentProfile: z42.string().max(64).optional()
5722
5599
  });
5723
- var archiveSchema = z43.object({
5724
- archived: z43.boolean().optional()
5600
+ var archiveSchema = z42.object({
5601
+ archived: z42.boolean().optional()
5725
5602
  });
5726
- var openInSchema = z43.object({
5603
+ var openInSchema = z42.object({
5727
5604
  // A short bound (legacy reference 429): matched against a downstream allowlist, so an editor id is never long.
5728
- target: z43.string().trim().min(1, "target required").max(200),
5729
- path: z43.string().max(1e3).optional()
5605
+ target: z42.string().trim().min(1, "target required").max(200),
5606
+ path: z42.string().max(1e3).optional()
5730
5607
  });
5731
5608
 
5732
5609
  // ../contract/src/query-requests.ts
5733
- import { z as z44 } from "zod";
5734
- var queryValue = z44.union([z44.string(), z44.array(z44.string()).transform((v) => v[0])]).optional();
5735
- var refreshQuery = z44.object({ refresh: queryValue });
5736
- var waitQuery = z44.object({ wait: queryValue });
5737
- var modelDiscoveryQuerySchema = z44.object({ runner: z44.union([z44.string(), z44.array(z44.string()).transform((v) => v[0])]).pipe(modelDiscoveryRunnerSchema) });
5738
- var strictRefreshQuerySchema = z44.object({ refresh: queryValue.refine((v) => v === void 0 || v === "1") });
5739
- var browseQuerySchema = z44.object({ path: queryValue, showHidden: queryValue });
5740
- var worktreeFilesQuerySchema = z44.object({ path: queryValue, raw: queryValue });
5741
- var commitQuerySchema = z44.object({ structured: queryValue });
5610
+ import { z as z43 } from "zod";
5611
+ var queryValue = z43.union([z43.string(), z43.array(z43.string()).transform((v) => v[0])]).optional();
5612
+ var refreshQuery = z43.object({ refresh: queryValue });
5613
+ var waitQuery = z43.object({ wait: queryValue });
5614
+ var modelDiscoveryQuerySchema = z43.object({ runner: z43.union([z43.string(), z43.array(z43.string()).transform((v) => v[0])]).pipe(modelDiscoveryRunnerSchema) });
5615
+ var strictRefreshQuerySchema = z43.object({ refresh: queryValue.refine((v) => v === void 0 || v === "1") });
5616
+ var browseQuerySchema = z43.object({ path: queryValue, showHidden: queryValue });
5617
+ var worktreeFilesQuerySchema = z43.object({ path: queryValue, raw: queryValue });
5618
+ var commitQuerySchema = z43.object({ structured: queryValue });
5742
5619
 
5743
5620
  // ../contract/src/github-requests.ts
5744
- import { z as z45 } from "zod";
5745
- var mergeNumberParams = z45.object({ number: z45.coerce.number().int().positive() });
5746
- var prChangesParams = z45.object({ number: z45.coerce.number().int().positive().safe() });
5747
- var prChangesQuery = z45.object({ refresh: queryValue.refine((v) => v === void 0 || v === "1") });
5748
- var mergeBodySchema = z45.object({
5749
- method: z45.enum(["merge", "squash", "rebase"]),
5750
- expectedHeadSha: z45.string().regex(/^[0-9a-f]{40}$/),
5751
- overrideRules: z45.boolean().optional().default(false)
5621
+ import { z as z44 } from "zod";
5622
+ var mergeNumberParams = z44.object({ number: z44.coerce.number().int().positive() });
5623
+ var prChangesParams = z44.object({ number: z44.coerce.number().int().positive().safe() });
5624
+ var prChangesQuery = z44.object({ refresh: queryValue.refine((v) => v === void 0 || v === "1") });
5625
+ var mergeBodySchema = z44.object({
5626
+ method: z44.enum(["merge", "squash", "rebase"]),
5627
+ expectedHeadSha: z44.string().regex(/^[0-9a-f]{40}$/),
5628
+ overrideRules: z44.boolean().optional().default(false)
5752
5629
  }).strict();
5753
- var githubChecksQuerySchema = z45.object({ prs: z45.string().min(1) });
5754
- var githubRefsQuerySchema = z45.object({ prs: z45.string().optional(), issues: z45.string().optional() });
5630
+ var githubChecksQuerySchema = z44.object({ prs: z44.string().min(1) });
5631
+ var githubRefsQuerySchema = z44.object({ prs: z44.string().optional(), issues: z44.string().optional() });
5755
5632
 
5756
5633
  // ../contract/src/repo-requests.ts
5757
- import { z as z46 } from "zod";
5758
- var gitCommitSchema = z46.object({
5759
- message: z46.string().trim().min(1, "must not be empty").max(5e3)
5634
+ import { z as z45 } from "zod";
5635
+ var gitCommitSchema = z45.object({
5636
+ message: z45.string().trim().min(1, "must not be empty").max(5e3)
5760
5637
  });
5761
- var reclaimBodySchema = z46.object({}).passthrough();
5762
- var repoBranchSchema = z46.object({
5763
- name: z46.string().trim().min(1).max(200),
5764
- from: z46.string().trim().min(1).max(200).optional()
5638
+ var reclaimBodySchema = z45.object({}).passthrough();
5639
+ var repoBranchSchema = z45.object({
5640
+ name: z45.string().trim().min(1).max(200),
5641
+ from: z45.string().trim().min(1).max(200).optional()
5765
5642
  });
5766
- var reclaimRunParamsSchema = z46.object({ runId: z46.string().min(1) });
5643
+ var reclaimRunParamsSchema = z45.object({ runId: z45.string().min(1) });
5767
5644
 
5768
5645
  // ../contract/src/config-requests.ts
5769
- import { z as z47 } from "zod";
5646
+ import { z as z46 } from "zod";
5770
5647
  var setConfigSchema = setConfigInputSchema.extend({
5771
- systemPrompt: z47.string().trim().max(2e4, "must be at most 20000 characters").nullable().optional()
5648
+ systemPrompt: z46.string().trim().max(2e4, "must be at most 20000 characters").nullable().optional()
5772
5649
  });
5773
- var setAgentConfigSchema = z47.object({
5774
- content: z47.string().max(2e6),
5775
- version: z47.string().nullable()
5650
+ var setAgentConfigSchema = z46.object({
5651
+ content: z46.string().max(2e6),
5652
+ version: z46.string().nullable()
5776
5653
  });
5777
5654
 
5778
5655
  // ../contract/src/workflow-file.ts
5779
- import { z as z48 } from "zod";
5780
- var workflowFileSchema = z48.object({
5781
- name: z48.string().min(1),
5782
- description: z48.string().optional(),
5783
- steps: z48.array(workflowStepDefSchema).min(1).optional(),
5784
- skills: z48.array(z48.string().trim().min(1)).min(1).optional()
5656
+ import { z as z47 } from "zod";
5657
+ var workflowFileSchema = z47.object({
5658
+ name: z47.string().min(1),
5659
+ description: z47.string().optional(),
5660
+ steps: z47.array(workflowStepDefSchema).min(1).optional(),
5661
+ skills: z47.array(z47.string().trim().min(1)).min(1).optional()
5785
5662
  }).refine((d) => Boolean(d.steps) !== Boolean(d.skills), {
5786
5663
  message: 'a workflow lists either "steps" or "skills", not both'
5787
5664
  });
5788
5665
 
5789
5666
  // ../contract/src/reports.ts
5790
- import { z as z49 } from "zod";
5667
+ import { z as z48 } from "zod";
5791
5668
  var REPORTS_QUERY_MAX = 1e3;
5792
- var cursorSchema = z49.string().min(1).max(1024);
5793
- var reportsQuerySchema = z49.object({
5794
- q: z49.string().max(REPORTS_QUERY_MAX).optional(),
5669
+ var cursorSchema = z48.string().min(1).max(1024);
5670
+ var reportsQuerySchema = z48.object({
5671
+ q: z48.string().max(REPORTS_QUERY_MAX).optional(),
5795
5672
  before: cursorSchema.optional(),
5796
- limit: z49.string().regex(/^(?:[1-9]|[1-9][0-9]|100)$/).transform(Number).optional()
5673
+ limit: z48.string().regex(/^(?:[1-9]|[1-9][0-9]|100)$/).transform(Number).optional()
5797
5674
  }).strict();
5798
- var reportSchema = z49.object({
5799
- id: z49.uuid(),
5800
- runId: z49.uuid(),
5801
- name: z49.string(),
5802
- title: z49.string(),
5803
- createdAt: z49.iso.datetime(),
5804
- size: z49.number().int().nonnegative(),
5805
- taskTitle: z49.string(),
5675
+ var reportSchema = z48.object({
5676
+ id: z48.uuid(),
5677
+ runId: z48.uuid(),
5678
+ name: z48.string(),
5679
+ title: z48.string(),
5680
+ createdAt: z48.iso.datetime(),
5681
+ size: z48.number().int().nonnegative(),
5682
+ taskTitle: z48.string(),
5806
5683
  taskStatus: runStatusSchema
5807
5684
  }).strict();
5808
- var reportsResponseSchema = z49.object({
5809
- reports: z49.array(reportSchema),
5685
+ var reportsResponseSchema = z48.object({
5686
+ reports: z48.array(reportSchema),
5810
5687
  nextCursor: cursorSchema.nullable(),
5811
5688
  // Counts all matching cached rows with readable source summaries before page content checks.
5812
5689
  // A missing-content row dropped while filling this page can lower total on the next request.
5813
- total: z49.number().int().nonnegative()
5690
+ total: z48.number().int().nonnegative()
5814
5691
  }).strict();
5815
- var reportsStateSchema = z49.object({
5816
- epoch: z49.uuid(),
5817
- generation: z49.number().int().nonnegative(),
5818
- metadataGeneration: z49.number().int().nonnegative()
5692
+ var reportsStateSchema = z48.object({
5693
+ epoch: z48.uuid(),
5694
+ generation: z48.number().int().nonnegative(),
5695
+ metadataGeneration: z48.number().int().nonnegative()
5819
5696
  }).strict();
5820
- var reportsMetadataSchema = z49.object({
5821
- runId: z49.uuid(),
5822
- taskTitle: z49.string(),
5697
+ var reportsMetadataSchema = z48.object({
5698
+ runId: z48.uuid(),
5699
+ taskTitle: z48.string(),
5823
5700
  taskStatus: runStatusSchema
5824
5701
  }).strict();
5825
- var reportsFrameSchema = z49.discriminatedUnion("type", [
5826
- reportsStateSchema.extend({ type: z49.literal("snapshot") }),
5827
- reportsStateSchema.extend({ type: z49.literal("content") }),
5828
- reportsStateSchema.extend({ type: z49.literal("metadata"), runs: z49.array(reportsMetadataSchema) })
5702
+ var reportsFrameSchema = z48.discriminatedUnion("type", [
5703
+ reportsStateSchema.extend({ type: z48.literal("snapshot") }),
5704
+ reportsStateSchema.extend({ type: z48.literal("content") }),
5705
+ reportsStateSchema.extend({ type: z48.literal("metadata"), runs: z48.array(reportsMetadataSchema) })
5829
5706
  ]);
5830
5707
 
5831
5708
  // ../contract/src/report-title.ts
@@ -5847,30 +5724,30 @@ function controlLocation(control, separator = " \u2192 ") {
5847
5724
  }
5848
5725
 
5849
5726
  // ../contract/src/home-recovery.ts
5850
- import { z as z50 } from "zod";
5727
+ import { z as z49 } from "zod";
5851
5728
  var HOME_FILE_PATTERN = /^(?:(?:config\.json(?:\.bak)?|agent-accounts\.json|ui-state\.json|server\.json|server\.install\.lock)|(?:remote-settings|server-instances)\/[a-zA-Z0-9-]+\.(?:json|install\.lock))$/;
5852
- var homeFileSchema = z50.string().regex(HOME_FILE_PATTERN);
5853
- var recoveryFile = z50.object({
5729
+ var homeFileSchema = z49.string().regex(HOME_FILE_PATTERN);
5730
+ var recoveryFile = z49.object({
5854
5731
  file: homeFileSchema,
5855
- detectedAt: z50.iso.datetime(),
5856
- canRestore: z50.boolean()
5732
+ detectedAt: z49.iso.datetime(),
5733
+ canRestore: z49.boolean()
5857
5734
  });
5858
5735
  var HOME_RECOVERY_REASONS = ["reset", "outside-write", "legacy-change"];
5859
- var homeRecoveryFileSchema = z50.discriminatedUnion("reason", [
5860
- recoveryFile.extend({ reason: z50.literal("reset") }),
5861
- recoveryFile.extend({ reason: z50.literal("outside-write") }),
5862
- recoveryFile.extend({ reason: z50.literal("legacy-change"), canImport: z50.boolean() })
5736
+ var homeRecoveryFileSchema = z49.discriminatedUnion("reason", [
5737
+ recoveryFile.extend({ reason: z49.literal("reset") }),
5738
+ recoveryFile.extend({ reason: z49.literal("outside-write") }),
5739
+ recoveryFile.extend({ reason: z49.literal("legacy-change"), canImport: z49.boolean() })
5863
5740
  ]);
5864
- var homeRecoverySchema = z50.object({ files: z50.array(homeRecoveryFileSchema) });
5741
+ var homeRecoverySchema = z49.object({ files: z49.array(homeRecoveryFileSchema) });
5865
5742
  function filterHomeRecoveryReasons(value, reasons) {
5866
5743
  if (!value || typeof value !== "object" || !("files" in value) || !Array.isArray(value.files)) return value;
5867
5744
  return { ...value, files: value.files.filter((row) => !(row && typeof row === "object" && "reason" in row && typeof row.reason === "string" && !reasons.includes(row.reason))) };
5868
5745
  }
5869
- var homeRecoveryReaderSchema = z50.preprocess(
5746
+ var homeRecoveryReaderSchema = z49.preprocess(
5870
5747
  (value) => filterHomeRecoveryReasons(value, HOME_RECOVERY_REASONS),
5871
5748
  homeRecoverySchema
5872
5749
  );
5873
- var homeRecoveryActionSchema = z50.object({ file: homeFileSchema, detectedAt: z50.iso.datetime() }).strict();
5750
+ var homeRecoveryActionSchema = z49.object({ file: homeFileSchema, detectedAt: z49.iso.datetime() }).strict();
5874
5751
  export {
5875
5752
  ACTIVITY_CHECKS_MAX,
5876
5753
  ACTIVITY_CHECK_NAME_MAX,
@@ -5957,10 +5834,6 @@ export {
5957
5834
  TIMER_MIN_SECONDS,
5958
5835
  UNREAD_RUN_RULE,
5959
5836
  UTC_MINUTE_PATTERN,
5960
- VOICE_STATUS_DESCRIPTIONS,
5961
- VOICE_STATUS_IDS,
5962
- VOICE_TEXT_MAX,
5963
- VOICE_VIEWS,
5964
5837
  WAIT_LIMIT,
5965
5838
  WAIT_MESSAGE_MAX,
5966
5839
  WEBHOOK_TRIGGERS,
@@ -6230,7 +6103,6 @@ export {
6230
6103
  isUsageLimitHold,
6231
6104
  isValidTimeZone,
6232
6105
  isoWeekday,
6233
- launchKeyResponseSchema,
6234
6106
  liveDemandSchema,
6235
6107
  liveEntrySchema,
6236
6108
  liveRunBatchResponseSchema,
@@ -6505,16 +6377,6 @@ export {
6505
6377
  updateProjectWebhookInputSchema,
6506
6378
  userMcpListingSchema,
6507
6379
  utcMinute,
6508
- voiceAnswerSchema,
6509
- voiceDecideRequestSchema,
6510
- voiceDecisionSchema,
6511
- voiceOutcomeRequestSchema,
6512
- voiceOutcomeResponseSchema,
6513
- voiceOutcomeSchema,
6514
- voicePositionSchema,
6515
- voiceSidebarViewSchema,
6516
- voiceStatusSchema,
6517
- voiceViewSchema,
6518
6380
  waitErrorCodeSchema,
6519
6381
  waitPhaseSchema,
6520
6382
  waitQuery,