toolroll 0.9.85 → 0.9.87

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 (220) hide show
  1. package/CHANGELOG.md +83 -0
  2. package/dist/agent-fence.d.ts +6 -2
  3. package/dist/agent-fence.js +3 -2
  4. package/dist/agents-board.d.ts +12 -0
  5. package/dist/agents-board.js +26 -0
  6. package/dist/approval-rules-ui.d.ts +4 -1
  7. package/dist/approval-rules-ui.js +31 -15
  8. package/dist/assignment-ui.js +1 -1
  9. package/dist/assignment.js +4 -3
  10. package/dist/backup-ui.d.ts +5 -4
  11. package/dist/backup-ui.js +65 -32
  12. package/dist/browser/terminal.css +1 -1
  13. package/dist/browser/terminal.js +57 -54
  14. package/dist/browser/workspace.css +2 -2
  15. package/dist/browser/workspace.js +35 -68
  16. package/dist/browser-crew.js +1 -1
  17. package/dist/browser-workspace.d.ts +363 -177
  18. package/dist/browser-workspace.js +10 -9
  19. package/dist/chat-actions.d.ts +11 -1
  20. package/dist/chat-actions.js +53 -1
  21. package/dist/chat-channel.js +1 -0
  22. package/dist/chat-controls.d.ts +1 -1
  23. package/dist/chat-controls.js +1 -1
  24. package/dist/chat-quiet.js +3 -2
  25. package/dist/chat-settings-page.d.ts +29 -9
  26. package/dist/chat-settings-page.js +59 -28
  27. package/dist/check-levels-ui.d.ts +2 -1
  28. package/dist/check-levels-ui.js +67 -58
  29. package/dist/claim.d.ts +3 -0
  30. package/dist/claim.js +4 -1
  31. package/dist/contracts/chat-actions.d.ts +9 -0
  32. package/dist/contracts/chat-actions.js +3 -0
  33. package/dist/contracts/cli.d.ts +43 -0
  34. package/dist/contracts/cli.js +4 -0
  35. package/dist/contracts/console-api.d.ts +4 -1
  36. package/dist/contracts/console-api.js +4 -1
  37. package/dist/contracts/flow-propose.d.ts +4 -1
  38. package/dist/contracts/flow-propose.js +1 -1
  39. package/dist/contracts/flow.d.ts +41 -0
  40. package/dist/contracts/flow.js +4 -2
  41. package/dist/contracts/lead-tools.d.ts +21 -0
  42. package/dist/contracts/lead-tools.js +2 -0
  43. package/dist/contracts/store-json.d.ts +2 -0
  44. package/dist/contracts/trigger-payloads.d.ts +20 -0
  45. package/dist/contracts/trigger-payloads.js +4 -0
  46. package/dist/coordinator.js +1 -0
  47. package/dist/credentials-ui.d.ts +5 -3
  48. package/dist/credentials-ui.js +58 -31
  49. package/dist/deploy-gate.js +4 -0
  50. package/dist/design/kit.css +685 -0
  51. package/dist/design/kit.d.ts +208 -0
  52. package/dist/design/kit.js +177 -0
  53. package/dist/design/tokens.css +19 -1
  54. package/dist/discord-settings.js +8 -4
  55. package/dist/dispatch.d.ts +3 -0
  56. package/dist/dispatch.js +4 -1
  57. package/dist/export-ui.d.ts +6 -4
  58. package/dist/export-ui.js +18 -8
  59. package/dist/flow-browser.d.ts +103 -0
  60. package/dist/flow-browser.js +204 -0
  61. package/dist/flow-changed.d.ts +14 -0
  62. package/dist/flow-changed.js +53 -0
  63. package/dist/flow-code.d.ts +5 -1
  64. package/dist/flow-code.js +4 -1
  65. package/dist/flow-engine.js +16 -0
  66. package/dist/flow-gallery-ui.d.ts +41 -4
  67. package/dist/flow-gallery-ui.js +95 -63
  68. package/dist/flow-live.js +9 -1
  69. package/dist/flow-pull-request.js +15 -7
  70. package/dist/flow-share.js +3 -1
  71. package/dist/flow-starters-ui.d.ts +3 -9
  72. package/dist/flow-starters-ui.js +12 -23
  73. package/dist/flow-steps.d.ts +9 -1
  74. package/dist/flow-steps.js +55 -5
  75. package/dist/flow-triggers.js +55 -0
  76. package/dist/flow-unattended-words.d.ts +20 -0
  77. package/dist/flow-unattended-words.js +24 -0
  78. package/dist/flow-unattended.d.ts +9 -5
  79. package/dist/flow-unattended.js +45 -23
  80. package/dist/flows-cli.d.ts +19 -0
  81. package/dist/flows-cli.js +54 -5
  82. package/dist/flows-ui.d.ts +12 -6
  83. package/dist/flows-ui.js +152 -32
  84. package/dist/flows.js +5 -2
  85. package/dist/integrations-ui.d.ts +6 -4
  86. package/dist/integrations-ui.js +34 -40
  87. package/dist/integrations.d.ts +2 -2
  88. package/dist/integrations.js +4 -4
  89. package/dist/kits-ui.d.ts +8 -10
  90. package/dist/kits-ui.js +29 -33
  91. package/dist/kits.js +1 -1
  92. package/dist/knowledge-ui.js +76 -19
  93. package/dist/lead-tools.js +35 -6
  94. package/dist/lead-voice.js +16 -5
  95. package/dist/ledger-view.d.ts +2 -0
  96. package/dist/ledger-view.js +41 -38
  97. package/dist/models-ui.d.ts +8 -3
  98. package/dist/models-ui.js +82 -59
  99. package/dist/monitoring-ui.d.ts +4 -2
  100. package/dist/monitoring-ui.js +44 -13
  101. package/dist/needs-you.d.ts +1 -1
  102. package/dist/needs-you.js +8 -0
  103. package/dist/operate-remote-arguments.js +1 -0
  104. package/dist/operate-remote.js +1 -1
  105. package/dist/operate.d.ts +1 -1
  106. package/dist/operate.js +249 -6
  107. package/dist/passwordless.d.ts +1 -1
  108. package/dist/passwordless.js +1 -1
  109. package/dist/people-audit-ui.d.ts +2 -1
  110. package/dist/people-audit-ui.js +25 -23
  111. package/dist/policy-ui.d.ts +3 -2
  112. package/dist/policy-ui.js +27 -21
  113. package/dist/policy.d.ts +3 -0
  114. package/dist/policy.js +14 -1
  115. package/dist/project-delete-ui.d.ts +4 -2
  116. package/dist/project-delete-ui.js +135 -126
  117. package/dist/project-delete.js +7 -3
  118. package/dist/project-knowledge.d.ts +10 -10
  119. package/dist/publish.d.ts +11 -0
  120. package/dist/publish.js +16 -3
  121. package/dist/pull-request-flow.js +35 -4
  122. package/dist/pull-request-ui.d.ts +2 -1
  123. package/dist/pull-request-ui.js +39 -28
  124. package/dist/recipe-ui.d.ts +4 -2
  125. package/dist/recipe-ui.js +14 -4
  126. package/dist/release-adapters.d.ts +3 -0
  127. package/dist/release-adapters.js +22 -2
  128. package/dist/release-cli.js +81 -9
  129. package/dist/release.d.ts +21 -0
  130. package/dist/release.js +40 -4
  131. package/dist/releases.js +1 -1
  132. package/dist/request-budget-ui.d.ts +4 -2
  133. package/dist/request-budget-ui.js +30 -19
  134. package/dist/result-follow-ups.js +4 -0
  135. package/dist/retention-ui.d.ts +4 -3
  136. package/dist/retention-ui.js +15 -12
  137. package/dist/scope.d.ts +8 -0
  138. package/dist/scope.js +13 -0
  139. package/dist/serve.d.ts +0 -1
  140. package/dist/serve.js +51 -7
  141. package/dist/server/agents-computers.d.ts +9 -0
  142. package/dist/server/agents-computers.js +67 -0
  143. package/dist/server/chat.js +20 -18
  144. package/dist/server/chrome.d.ts +1 -1
  145. package/dist/server/chrome.js +19 -9
  146. package/dist/server/console.css +31 -2
  147. package/dist/server/flows.js +79 -36
  148. package/dist/server/home.d.ts +35 -0
  149. package/dist/server/home.js +104 -0
  150. package/dist/server/http.d.ts +3 -0
  151. package/dist/server/http.js +5 -0
  152. package/dist/server/kit-standalone.d.ts +22 -0
  153. package/dist/server/kit-standalone.js +69 -0
  154. package/dist/server/kit.d.ts +405 -0
  155. package/dist/server/kit.js +361 -0
  156. package/dist/server/pages.d.ts +2 -1
  157. package/dist/server/pages.js +213 -174
  158. package/dist/server/people-tokens.js +26 -85
  159. package/dist/server/render-history.d.ts +51 -0
  160. package/dist/server/render-history.js +228 -0
  161. package/dist/server/render-new-task.d.ts +29 -0
  162. package/dist/server/render-new-task.js +96 -0
  163. package/dist/server/render-next.d.ts +63 -0
  164. package/dist/server/render-next.js +109 -0
  165. package/dist/server/render-pages.d.ts +35 -190
  166. package/dist/server/render-pages.js +154 -563
  167. package/dist/server/render-people.d.ts +24 -3
  168. package/dist/server/render-people.js +93 -72
  169. package/dist/server/render-projects.d.ts +103 -0
  170. package/dist/server/render-projects.js +247 -0
  171. package/dist/server/render-results.d.ts +5 -24
  172. package/dist/server/render-results.js +48 -185
  173. package/dist/server/render-settings.d.ts +5 -74
  174. package/dist/server/render-settings.js +102 -493
  175. package/dist/server/render-tasks.d.ts +43 -5
  176. package/dist/server/render-tasks.js +131 -91
  177. package/dist/server/route-table.js +31 -5
  178. package/dist/server/settings.js +276 -255
  179. package/dist/server/task-views.d.ts +8 -0
  180. package/dist/server/task-views.js +90 -2
  181. package/dist/server/tasks.d.ts +18 -0
  182. package/dist/server/tasks.js +148 -41
  183. package/dist/server/terminals.js +1 -1
  184. package/dist/server/welcome.d.ts +22 -0
  185. package/dist/server/welcome.js +69 -0
  186. package/dist/settings-groups-ui.d.ts +279 -0
  187. package/dist/settings-groups-ui.js +615 -0
  188. package/dist/settings-kit.d.ts +42 -6
  189. package/dist/settings-kit.js +69 -7
  190. package/dist/settings-proofs.js +1 -0
  191. package/dist/setup-guide.d.ts +2 -2
  192. package/dist/skills-ui.js +59 -7
  193. package/dist/slack-settings.js +12 -5
  194. package/dist/spend-ui.d.ts +45 -26
  195. package/dist/spend-ui.js +124 -56
  196. package/dist/sso-ui.d.ts +5 -2
  197. package/dist/sso-ui.js +63 -31
  198. package/dist/storage-ui.d.ts +3 -2
  199. package/dist/storage-ui.js +56 -50
  200. package/dist/store.d.ts +182 -5
  201. package/dist/store.js +512 -38
  202. package/dist/surface.js +23 -3
  203. package/dist/task-archive.d.ts +10 -0
  204. package/dist/task-archive.js +16 -0
  205. package/dist/task-control.d.ts +1 -1
  206. package/dist/teams-settings.d.ts +2 -1
  207. package/dist/teams-settings.js +24 -41
  208. package/dist/telegram-settings.d.ts +0 -4
  209. package/dist/telegram-settings.js +52 -25
  210. package/dist/tidy.d.ts +130 -0
  211. package/dist/tidy.js +503 -0
  212. package/dist/toolroll-update-ui.d.ts +8 -4
  213. package/dist/toolroll-update-ui.js +55 -45
  214. package/dist/tools-ui.d.ts +5 -3
  215. package/dist/tools-ui.js +107 -42
  216. package/dist/work-index.d.ts +24 -0
  217. package/dist/work-index.js +56 -30
  218. package/dist/workspace-ui.d.ts +1 -1
  219. package/dist/workspace-ui.js +8 -4
  220. package/package.json +1 -1
@@ -513,6 +513,49 @@ export declare const COMMAND_OUTPUTS: {
513
513
  reason: z.ZodString;
514
514
  message: z.ZodOptional<z.ZodString>;
515
515
  }, z.core.$loose>], "ok">;
516
+ readonly "task ship": z.ZodDiscriminatedUnion<[z.ZodObject<{
517
+ envelopeVersion: z.ZodLiteral<1>;
518
+ ok: z.ZodLiteral<true>;
519
+ command: z.ZodLiteral<"task ship">;
520
+ task: z.ZodString;
521
+ pullRequest: z.ZodNumber;
522
+ githubRepo: z.ZodString;
523
+ head: z.ZodString;
524
+ observedAt: z.ZodString;
525
+ status: z.ZodEnum<{
526
+ failing: "failing";
527
+ none: "none";
528
+ passing: "passing";
529
+ running: "running";
530
+ }>;
531
+ checks: z.ZodArray<z.ZodObject<{
532
+ name: z.ZodString;
533
+ workflow: z.ZodNullable<z.ZodString>;
534
+ state: z.ZodEnum<{
535
+ cancelled: "cancelled";
536
+ failed: "failed";
537
+ neutral: "neutral";
538
+ passed: "passed";
539
+ queued: "queued";
540
+ running: "running";
541
+ skipped: "skipped";
542
+ }>;
543
+ startedAt: z.ZodNullable<z.ZodString>;
544
+ completedAt: z.ZodNullable<z.ZodString>;
545
+ url: z.ZodNullable<z.ZodString>;
546
+ kind: z.ZodEnum<{
547
+ run: "run";
548
+ status: "status";
549
+ }>;
550
+ seconds: z.ZodNullable<z.ZodNumber>;
551
+ }, z.core.$loose>>;
552
+ }, z.core.$loose>, z.ZodObject<{
553
+ envelopeVersion: z.ZodLiteral<1>;
554
+ ok: z.ZodLiteral<false>;
555
+ command: z.ZodLiteral<"task ship">;
556
+ reason: z.ZodString;
557
+ message: z.ZodOptional<z.ZodString>;
558
+ }, z.core.$loose>], "ok">;
516
559
  readonly "task hold": z.ZodDiscriminatedUnion<[z.ZodObject<{
517
560
  envelopeVersion: z.ZodLiteral<1>;
518
561
  ok: z.ZodLiteral<true>;
@@ -176,6 +176,10 @@ export const COMMAND_OUTPUTS = {
176
176
  ]),
177
177
  "task list": taskListOutput,
178
178
  "task show": taskShowOutput,
179
+ // The task's pull request checks (store.ts ci_check, v146): each with its state and seconds (null: not started).
180
+ // `status` is the observation's own answer (the one merges read); the rows are each check's timing.
181
+ "task ship": answers("task ship", { task: str, pullRequest: int, githubRepo: str, head: str, observedAt: str, status: z.enum(["passing", "failing", "running", "none"]),
182
+ checks: rows({ name: str, workflow: nullable(str), state: z.enum(["queued", "running", "passed", "failed", "skipped", "cancelled", "neutral"]), startedAt: nullable(str), completedAt: nullable(str), url: nullable(str), kind: z.enum(["run", "status"]), seconds: nullable(int) }) }),
179
183
  "task hold": answers("task hold", { id: str, reason: str, until: nullable(str) }),
180
184
  "task unhold": answers("task unhold", { id: str }),
181
185
  "task wait": answers("task wait", { task: str, outcome: str }),
@@ -79,7 +79,7 @@ export declare const CONSOLE_FORMS: {
79
79
  readonly kit: FormContract<"password" | "repo">;
80
80
  readonly subagents: FormContract<"choice" | "dailyTurns" | "id" | "manager" | "model" | "name" | "note" | "op" | "password" | "repo" | "schedule" | "soul" | "state" | "template" | "text" | "tool" | `field.${string}` | `over.${string}` | `undo.${string}` | `use.${string}`>;
81
81
  readonly galleryUse: FormContract<string>;
82
- readonly flows: FormContract<"about" | "address" | "answers" | "approve" | "body" | "budget" | "choice" | "confirm" | "days" | "decision" | "definition" | "description" | "document" | "draft" | "entry" | "file" | "include" | "key" | "label" | "language" | "name" | "note" | "owner" | "password" | "previewed" | "project" | "remove" | "repo" | "revision" | "runs" | "schedules" | "secret" | "sender" | "stage" | "team" | "template" | "timeoutMinutes" | "title" | "trigger" | "url" | "value" | "watching" | `param.${string}`>;
82
+ readonly flows: FormContract<"about" | "address" | "answers" | "approve" | "body" | "budget" | "choice" | "confirm" | "days" | "decision" | "definition" | "description" | "digest" | "document" | "draft" | "entry" | "file" | "include" | "key" | "label" | "language" | "name" | "note" | "owner" | "password" | "previewed" | "project" | "remove" | "repo" | "revision" | "runs" | "schedules" | "secret" | "sender" | "stage" | "team" | "template" | "timeoutMinutes" | "title" | "trigger" | "url" | "value" | "version" | "watching" | `param.${string}`>;
83
83
  readonly spendBudget: FormContract<"action" | "password" | "stop" | "target" | "usd">;
84
84
  readonly projectConcurrency: FormContract<"concurrency" | "repo">;
85
85
  readonly projectLiveView: FormContract<"act" | "nonce" | "password" | "repo">;
@@ -174,6 +174,9 @@ export declare const CONSOLE_FORMS: {
174
174
  readonly revise: FormContract<"batch" | "return" | "source">;
175
175
  readonly followUp: FormContract<"level" | "return">;
176
176
  readonly resolveIncident: FormContract<"return">;
177
+ readonly taskArchive: FormContract<"reason" | "return">;
178
+ readonly taskRestore: FormContract<"return">;
179
+ readonly tasksPutAway: FormContract<"days" | "digest" | "password" | "task">;
177
180
  readonly taskSteer: FormContract<"after" | "key" | "note" | "request" | "return" | "run">;
178
181
  readonly taskReply: FormContract<"answer" | "question">;
179
182
  readonly taskHold: FormContract<"reason">;
@@ -88,7 +88,7 @@ export const CONSOLE_FORMS = {
88
88
  kit: formContract("POST /kits/<kit>/<act>", ["repo", "password"]),
89
89
  subagents: formContract("POST /settings/lead/subagents/new, /settings/lead/subagents/<id>/<part>, /settings/lead/subagents/questions/<id>/answer", ["choice", "text", "repo", "template", "name", "soul", "op", "id", "schedule", "tool", "state", "note", "model", "dailyTurns", "manager", "password"], { prefixes: ["use.", "undo.", "field.", "over."] }),
90
90
  galleryUse: formContract("POST /flows/new/<template>", ["repo", "send-result", "name", "intent", "previewed", "password"], { dynamic: true }),
91
- flows: formContract("POST /flows/new, /flows/example, /flows/import, /flows/<id>/<act>, /flows/<id>/cards/<card>/<act>, /flows/<id>/triggers/<trigger>/<act>", ["repo", "document", "url", "confirm", "previewed", "template", "name", "answers", "password", "secret", "sender", "project", "team", "trigger", "approve", "remove", "about", "body", "timeoutMinutes", "language", "file", "address", "key", "definition", "owner", "revision", "value", "title", "description", "stage", "decision", "note", "draft", "choice", "entry", "label", "watching", "days", "budget", "runs", "include", "schedules"], { prefixes: ["param."] }),
91
+ flows: formContract("POST /flows/new, /flows/example, /flows/import, /flows/<id>/<act>, /flows/<id>/cards/<card>/<act>, /flows/<id>/triggers/<trigger>/<act>", ["repo", "document", "url", "confirm", "previewed", "template", "name", "answers", "password", "secret", "sender", "project", "team", "trigger", "approve", "remove", "about", "body", "timeoutMinutes", "language", "file", "address", "key", "definition", "owner", "revision", "value", "title", "description", "stage", "decision", "note", "draft", "choice", "entry", "label", "watching", "days", "budget", "runs", "include", "schedules", "digest", "version"], { prefixes: ["param."] }),
92
92
  spendBudget: formContract("POST /spend/budget", ["password", "target", "action", "usd", "stop"]),
93
93
  projectConcurrency: formContract("POST /settings/project/concurrency", ["repo", "concurrency"]),
94
94
  projectLiveView: formContract("POST /settings/project/live-view", ["repo", "act", "password", "nonce"]),
@@ -188,6 +188,9 @@ export const CONSOLE_FORMS = {
188
188
  revise: formContract("POST /r/<run>/revise", ["return", "batch", "source"]),
189
189
  followUp: formContract("POST /r/<run>/checks|add-tests", ["return", "level"]),
190
190
  resolveIncident: formContract("POST /i/<id>/resolve", ["return"]),
191
+ taskArchive: formContract("POST /t/<task>/archive", ["reason", "return"]),
192
+ taskRestore: formContract("POST /t/<task>/restore", ["return"]),
193
+ tasksPutAway: formContract("POST /work/put-away", ["digest", "days", "task", "password"]),
191
194
  // A task's verbs (/t/<task>/<verb>), one body each.
192
195
  taskSteer: formContract("POST /t/<task>/steer", ["note", "return", "run", "key", "after", "request"]),
193
196
  taskReply: formContract("POST /t/<task>/reply", ["question", "answer"]),
@@ -4,11 +4,12 @@
4
4
  * (mate-tools.ts). The lead-tools contract (item 5) imports it from here rather than restating it.
5
5
  */
6
6
  import { z } from "zod";
7
- export declare const PROPOSE_FLOW_OPERATIONS: readonly ["create", "edit", "add_card", "move_card", "approve", "send_back", "choose", "cancel_card", "comment", "assign", "follow", "unfollow", "save_script", "add_trigger", "pause_trigger", "resume_trigger", "remove_trigger", "kit", "starter"];
7
+ export declare const PROPOSE_FLOW_OPERATIONS: readonly ["create", "edit", "add_card", "move_card", "approve", "send_back", "choose", "cancel_card", "comment", "assign", "follow", "unfollow", "save_script", "add_trigger", "pause_trigger", "resume_trigger", "remove_trigger", "kit", "starter", "allow_browser", "turn_off_browser"];
8
8
  export declare const proposeFlowInputSchema: z.ZodObject<{
9
9
  operation: z.ZodEnum<{
10
10
  add_card: "add_card";
11
11
  add_trigger: "add_trigger";
12
+ allow_browser: "allow_browser";
12
13
  approve: "approve";
13
14
  assign: "assign";
14
15
  cancel_card: "cancel_card";
@@ -25,6 +26,7 @@ export declare const proposeFlowInputSchema: z.ZodObject<{
25
26
  save_script: "save_script";
26
27
  send_back: "send_back";
27
28
  starter: "starter";
29
+ turn_off_browser: "turn_off_browser";
28
30
  unfollow: "unfollow";
29
31
  }>;
30
32
  repo: z.ZodOptional<z.ZodString>;
@@ -87,6 +89,7 @@ export declare const proposeFlowInputSchema: z.ZodObject<{
87
89
  id: z.ZodOptional<z.ZodString>;
88
90
  title: z.ZodString;
89
91
  kind: z.ZodLiteral<"check">;
92
+ browser: z.ZodOptional<z.ZodBoolean>;
90
93
  ifFails: z.ZodOptional<z.ZodString>;
91
94
  next: z.ZodOptional<z.ZodString>;
92
95
  remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
@@ -11,7 +11,7 @@ import { KITS } from "../kits.js";
11
11
  import { TEXT_LIMITS } from "../text-limits.js";
12
12
  import { toModelSchema } from "./contract.js";
13
13
  import { flowStepsSchema, leadTriggerSchema, SCRIPT_LANGUAGES, SCRIPT_NAME } from "./flow.js";
14
- export const PROPOSE_FLOW_OPERATIONS = ["create", "edit", "add_card", "move_card", "approve", "send_back", "choose", "cancel_card", "comment", "assign", "follow", "unfollow", "save_script", "add_trigger", "pause_trigger", "resume_trigger", "remove_trigger", "kit", "starter"];
14
+ export const PROPOSE_FLOW_OPERATIONS = ["create", "edit", "add_card", "move_card", "approve", "send_back", "choose", "cancel_card", "comment", "assign", "follow", "unfollow", "save_script", "add_trigger", "pause_trigger", "resume_trigger", "remove_trigger", "kit", "starter", "allow_browser", "turn_off_browser"];
15
15
  const id = z.int().min(1);
16
16
  const enumOf = (values) => z.enum(values);
17
17
  export const proposeFlowInputSchema = z.strictObject({
@@ -332,6 +332,7 @@ export declare const flowDefinitionSchema: z.ZodObject<{
332
332
  to: z.ZodString;
333
333
  }, z.core.$strict>>>;
334
334
  secrets: z.ZodOptional<z.ZodArray<z.ZodString>>;
335
+ browser: z.ZodOptional<z.ZodLiteral<true>>;
335
336
  sort: z.ZodNull;
336
337
  limit: z.ZodOptional<z.ZodObject<{
337
338
  minutes: z.ZodInt;
@@ -971,6 +972,7 @@ export declare const savedFlowDefinitionSchema: z.ZodObject<{
971
972
  to: z.ZodString;
972
973
  }, z.core.$strict>>>;
973
974
  secrets: z.ZodOptional<z.ZodArray<z.ZodString>>;
975
+ browser: z.ZodOptional<z.ZodLiteral<true>>;
974
976
  sort: z.ZodNull;
975
977
  limit: z.ZodOptional<z.ZodObject<{
976
978
  minutes: z.ZodInt;
@@ -1606,6 +1608,7 @@ export declare const flowStageSchema: z.ZodDiscriminatedUnion<readonly [z.ZodObj
1606
1608
  to: z.ZodString;
1607
1609
  }, z.core.$strict>>>;
1608
1610
  secrets: z.ZodOptional<z.ZodArray<z.ZodString>>;
1611
+ browser: z.ZodOptional<z.ZodLiteral<true>>;
1609
1612
  sort: z.ZodNull;
1610
1613
  limit: z.ZodOptional<z.ZodObject<{
1611
1614
  minutes: z.ZodInt;
@@ -2180,6 +2183,7 @@ export declare const flowStepSchema: z.ZodDiscriminatedUnion<readonly [z.ZodObje
2180
2183
  id: z.ZodOptional<z.ZodString>;
2181
2184
  title: z.ZodString;
2182
2185
  kind: z.ZodLiteral<"check">;
2186
+ browser: z.ZodOptional<z.ZodBoolean>;
2183
2187
  ifFails: z.ZodOptional<z.ZodString>;
2184
2188
  next: z.ZodOptional<z.ZodString>;
2185
2189
  remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
@@ -2391,6 +2395,7 @@ export declare const flowStepsSchema: z.ZodObject<{
2391
2395
  id: z.ZodOptional<z.ZodString>;
2392
2396
  title: z.ZodString;
2393
2397
  kind: z.ZodLiteral<"check">;
2398
+ browser: z.ZodOptional<z.ZodBoolean>;
2394
2399
  ifFails: z.ZodOptional<z.ZodString>;
2395
2400
  next: z.ZodOptional<z.ZodString>;
2396
2401
  remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
@@ -2669,6 +2674,7 @@ export declare const flowFileZoneSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2669
2674
  violet: "violet";
2670
2675
  }>>;
2671
2676
  }, z.core.$strict>>;
2677
+ browser: z.ZodOptional<z.ZodBoolean>;
2672
2678
  ifFails: z.ZodOptional<z.ZodString>;
2673
2679
  next: z.ZodOptional<z.ZodString>;
2674
2680
  remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
@@ -3126,6 +3132,7 @@ export declare const flowFileZoneSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3126
3132
  violet: "violet";
3127
3133
  }>>;
3128
3134
  }, z.core.$strict>>;
3135
+ browser: z.ZodOptional<z.ZodBoolean>;
3129
3136
  ifFails: z.ZodOptional<z.ZodString>;
3130
3137
  next: z.ZodOptional<z.ZodString>;
3131
3138
  remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
@@ -3583,6 +3590,7 @@ export declare const flowFileZoneSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3583
3590
  violet: "violet";
3584
3591
  }>>;
3585
3592
  }, z.core.$strict>>;
3593
+ browser: z.ZodOptional<z.ZodBoolean>;
3586
3594
  ifFails: z.ZodOptional<z.ZodString>;
3587
3595
  next: z.ZodOptional<z.ZodString>;
3588
3596
  remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
@@ -4040,6 +4048,7 @@ export declare const flowFileZoneSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
4040
4048
  violet: "violet";
4041
4049
  }>>;
4042
4050
  }, z.core.$strict>>;
4051
+ browser: z.ZodOptional<z.ZodBoolean>;
4043
4052
  ifFails: z.ZodOptional<z.ZodString>;
4044
4053
  next: z.ZodOptional<z.ZodString>;
4045
4054
  remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
@@ -4497,6 +4506,7 @@ export declare const flowFileZoneSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
4497
4506
  violet: "violet";
4498
4507
  }>>;
4499
4508
  }, z.core.$strict>>;
4509
+ browser: z.ZodOptional<z.ZodBoolean>;
4500
4510
  ifFails: z.ZodOptional<z.ZodString>;
4501
4511
  next: z.ZodOptional<z.ZodString>;
4502
4512
  remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
@@ -4954,6 +4964,7 @@ export declare const flowFileZoneSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
4954
4964
  violet: "violet";
4955
4965
  }>>;
4956
4966
  }, z.core.$strict>>;
4967
+ browser: z.ZodOptional<z.ZodBoolean>;
4957
4968
  ifFails: z.ZodOptional<z.ZodString>;
4958
4969
  next: z.ZodOptional<z.ZodString>;
4959
4970
  remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
@@ -5411,6 +5422,7 @@ export declare const flowFileZoneSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
5411
5422
  violet: "violet";
5412
5423
  }>>;
5413
5424
  }, z.core.$strict>>;
5425
+ browser: z.ZodOptional<z.ZodBoolean>;
5414
5426
  ifFails: z.ZodOptional<z.ZodString>;
5415
5427
  next: z.ZodOptional<z.ZodString>;
5416
5428
  remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
@@ -5868,6 +5880,7 @@ export declare const flowFileZoneSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
5868
5880
  violet: "violet";
5869
5881
  }>>;
5870
5882
  }, z.core.$strict>>;
5883
+ browser: z.ZodOptional<z.ZodBoolean>;
5871
5884
  ifFails: z.ZodOptional<z.ZodString>;
5872
5885
  next: z.ZodOptional<z.ZodString>;
5873
5886
  remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
@@ -6325,6 +6338,7 @@ export declare const flowFileZoneSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
6325
6338
  violet: "violet";
6326
6339
  }>>;
6327
6340
  }, z.core.$strict>>;
6341
+ browser: z.ZodOptional<z.ZodBoolean>;
6328
6342
  ifFails: z.ZodOptional<z.ZodString>;
6329
6343
  next: z.ZodOptional<z.ZodString>;
6330
6344
  remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
@@ -6782,6 +6796,7 @@ export declare const flowFileZoneSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
6782
6796
  violet: "violet";
6783
6797
  }>>;
6784
6798
  }, z.core.$strict>>;
6799
+ browser: z.ZodOptional<z.ZodBoolean>;
6785
6800
  ifFails: z.ZodOptional<z.ZodString>;
6786
6801
  next: z.ZodOptional<z.ZodString>;
6787
6802
  remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
@@ -7239,6 +7254,7 @@ export declare const flowFileZoneSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7239
7254
  violet: "violet";
7240
7255
  }>>;
7241
7256
  }, z.core.$strict>>;
7257
+ browser: z.ZodOptional<z.ZodBoolean>;
7242
7258
  ifFails: z.ZodOptional<z.ZodString>;
7243
7259
  next: z.ZodOptional<z.ZodString>;
7244
7260
  remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
@@ -7696,6 +7712,7 @@ export declare const flowFileZoneSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7696
7712
  violet: "violet";
7697
7713
  }>>;
7698
7714
  }, z.core.$strict>>;
7715
+ browser: z.ZodOptional<z.ZodBoolean>;
7699
7716
  ifFails: z.ZodOptional<z.ZodString>;
7700
7717
  next: z.ZodOptional<z.ZodString>;
7701
7718
  remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
@@ -8153,6 +8170,7 @@ export declare const flowFileZoneSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
8153
8170
  violet: "violet";
8154
8171
  }>>;
8155
8172
  }, z.core.$strict>>;
8173
+ browser: z.ZodOptional<z.ZodBoolean>;
8156
8174
  ifFails: z.ZodOptional<z.ZodString>;
8157
8175
  next: z.ZodOptional<z.ZodString>;
8158
8176
  remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
@@ -8610,6 +8628,7 @@ export declare const flowFileZoneSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
8610
8628
  violet: "violet";
8611
8629
  }>>;
8612
8630
  }, z.core.$strict>>;
8631
+ browser: z.ZodOptional<z.ZodBoolean>;
8613
8632
  ifFails: z.ZodOptional<z.ZodString>;
8614
8633
  next: z.ZodOptional<z.ZodString>;
8615
8634
  remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
@@ -9067,6 +9086,7 @@ export declare const flowFileZoneSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
9067
9086
  violet: "violet";
9068
9087
  }>>;
9069
9088
  }, z.core.$strict>>;
9089
+ browser: z.ZodOptional<z.ZodBoolean>;
9070
9090
  ifFails: z.ZodOptional<z.ZodString>;
9071
9091
  next: z.ZodOptional<z.ZodString>;
9072
9092
  remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
@@ -9524,6 +9544,7 @@ export declare const flowFileZoneSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
9524
9544
  violet: "violet";
9525
9545
  }>>;
9526
9546
  }, z.core.$strict>>;
9547
+ browser: z.ZodOptional<z.ZodBoolean>;
9527
9548
  ifFails: z.ZodOptional<z.ZodString>;
9528
9549
  next: z.ZodOptional<z.ZodString>;
9529
9550
  remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
@@ -9981,6 +10002,7 @@ export declare const flowFileZoneSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
9981
10002
  violet: "violet";
9982
10003
  }>>;
9983
10004
  }, z.core.$strict>>;
10005
+ browser: z.ZodOptional<z.ZodBoolean>;
9984
10006
  ifFails: z.ZodOptional<z.ZodString>;
9985
10007
  next: z.ZodOptional<z.ZodString>;
9986
10008
  remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
@@ -10438,6 +10460,7 @@ export declare const flowFileZoneSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
10438
10460
  violet: "violet";
10439
10461
  }>>;
10440
10462
  }, z.core.$strict>>;
10463
+ browser: z.ZodOptional<z.ZodBoolean>;
10441
10464
  ifFails: z.ZodOptional<z.ZodString>;
10442
10465
  next: z.ZodOptional<z.ZodString>;
10443
10466
  remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
@@ -11302,6 +11325,7 @@ export declare const flowFileSchema: z.ZodObject<{
11302
11325
  violet: "violet";
11303
11326
  }>>;
11304
11327
  }, z.core.$strict>>;
11328
+ browser: z.ZodOptional<z.ZodBoolean>;
11305
11329
  ifFails: z.ZodOptional<z.ZodString>;
11306
11330
  next: z.ZodOptional<z.ZodString>;
11307
11331
  remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
@@ -11759,6 +11783,7 @@ export declare const flowFileSchema: z.ZodObject<{
11759
11783
  violet: "violet";
11760
11784
  }>>;
11761
11785
  }, z.core.$strict>>;
11786
+ browser: z.ZodOptional<z.ZodBoolean>;
11762
11787
  ifFails: z.ZodOptional<z.ZodString>;
11763
11788
  next: z.ZodOptional<z.ZodString>;
11764
11789
  remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
@@ -12216,6 +12241,7 @@ export declare const flowFileSchema: z.ZodObject<{
12216
12241
  violet: "violet";
12217
12242
  }>>;
12218
12243
  }, z.core.$strict>>;
12244
+ browser: z.ZodOptional<z.ZodBoolean>;
12219
12245
  ifFails: z.ZodOptional<z.ZodString>;
12220
12246
  next: z.ZodOptional<z.ZodString>;
12221
12247
  remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
@@ -12673,6 +12699,7 @@ export declare const flowFileSchema: z.ZodObject<{
12673
12699
  violet: "violet";
12674
12700
  }>>;
12675
12701
  }, z.core.$strict>>;
12702
+ browser: z.ZodOptional<z.ZodBoolean>;
12676
12703
  ifFails: z.ZodOptional<z.ZodString>;
12677
12704
  next: z.ZodOptional<z.ZodString>;
12678
12705
  remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
@@ -13130,6 +13157,7 @@ export declare const flowFileSchema: z.ZodObject<{
13130
13157
  violet: "violet";
13131
13158
  }>>;
13132
13159
  }, z.core.$strict>>;
13160
+ browser: z.ZodOptional<z.ZodBoolean>;
13133
13161
  ifFails: z.ZodOptional<z.ZodString>;
13134
13162
  next: z.ZodOptional<z.ZodString>;
13135
13163
  remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
@@ -13587,6 +13615,7 @@ export declare const flowFileSchema: z.ZodObject<{
13587
13615
  violet: "violet";
13588
13616
  }>>;
13589
13617
  }, z.core.$strict>>;
13618
+ browser: z.ZodOptional<z.ZodBoolean>;
13590
13619
  ifFails: z.ZodOptional<z.ZodString>;
13591
13620
  next: z.ZodOptional<z.ZodString>;
13592
13621
  remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
@@ -14044,6 +14073,7 @@ export declare const flowFileSchema: z.ZodObject<{
14044
14073
  violet: "violet";
14045
14074
  }>>;
14046
14075
  }, z.core.$strict>>;
14076
+ browser: z.ZodOptional<z.ZodBoolean>;
14047
14077
  ifFails: z.ZodOptional<z.ZodString>;
14048
14078
  next: z.ZodOptional<z.ZodString>;
14049
14079
  remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
@@ -14501,6 +14531,7 @@ export declare const flowFileSchema: z.ZodObject<{
14501
14531
  violet: "violet";
14502
14532
  }>>;
14503
14533
  }, z.core.$strict>>;
14534
+ browser: z.ZodOptional<z.ZodBoolean>;
14504
14535
  ifFails: z.ZodOptional<z.ZodString>;
14505
14536
  next: z.ZodOptional<z.ZodString>;
14506
14537
  remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
@@ -14958,6 +14989,7 @@ export declare const flowFileSchema: z.ZodObject<{
14958
14989
  violet: "violet";
14959
14990
  }>>;
14960
14991
  }, z.core.$strict>>;
14992
+ browser: z.ZodOptional<z.ZodBoolean>;
14961
14993
  ifFails: z.ZodOptional<z.ZodString>;
14962
14994
  next: z.ZodOptional<z.ZodString>;
14963
14995
  remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
@@ -15415,6 +15447,7 @@ export declare const flowFileSchema: z.ZodObject<{
15415
15447
  violet: "violet";
15416
15448
  }>>;
15417
15449
  }, z.core.$strict>>;
15450
+ browser: z.ZodOptional<z.ZodBoolean>;
15418
15451
  ifFails: z.ZodOptional<z.ZodString>;
15419
15452
  next: z.ZodOptional<z.ZodString>;
15420
15453
  remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
@@ -15872,6 +15905,7 @@ export declare const flowFileSchema: z.ZodObject<{
15872
15905
  violet: "violet";
15873
15906
  }>>;
15874
15907
  }, z.core.$strict>>;
15908
+ browser: z.ZodOptional<z.ZodBoolean>;
15875
15909
  ifFails: z.ZodOptional<z.ZodString>;
15876
15910
  next: z.ZodOptional<z.ZodString>;
15877
15911
  remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
@@ -16329,6 +16363,7 @@ export declare const flowFileSchema: z.ZodObject<{
16329
16363
  violet: "violet";
16330
16364
  }>>;
16331
16365
  }, z.core.$strict>>;
16366
+ browser: z.ZodOptional<z.ZodBoolean>;
16332
16367
  ifFails: z.ZodOptional<z.ZodString>;
16333
16368
  next: z.ZodOptional<z.ZodString>;
16334
16369
  remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
@@ -16786,6 +16821,7 @@ export declare const flowFileSchema: z.ZodObject<{
16786
16821
  violet: "violet";
16787
16822
  }>>;
16788
16823
  }, z.core.$strict>>;
16824
+ browser: z.ZodOptional<z.ZodBoolean>;
16789
16825
  ifFails: z.ZodOptional<z.ZodString>;
16790
16826
  next: z.ZodOptional<z.ZodString>;
16791
16827
  remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
@@ -17243,6 +17279,7 @@ export declare const flowFileSchema: z.ZodObject<{
17243
17279
  violet: "violet";
17244
17280
  }>>;
17245
17281
  }, z.core.$strict>>;
17282
+ browser: z.ZodOptional<z.ZodBoolean>;
17246
17283
  ifFails: z.ZodOptional<z.ZodString>;
17247
17284
  next: z.ZodOptional<z.ZodString>;
17248
17285
  remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
@@ -17700,6 +17737,7 @@ export declare const flowFileSchema: z.ZodObject<{
17700
17737
  violet: "violet";
17701
17738
  }>>;
17702
17739
  }, z.core.$strict>>;
17740
+ browser: z.ZodOptional<z.ZodBoolean>;
17703
17741
  ifFails: z.ZodOptional<z.ZodString>;
17704
17742
  next: z.ZodOptional<z.ZodString>;
17705
17743
  remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
@@ -18157,6 +18195,7 @@ export declare const flowFileSchema: z.ZodObject<{
18157
18195
  violet: "violet";
18158
18196
  }>>;
18159
18197
  }, z.core.$strict>>;
18198
+ browser: z.ZodOptional<z.ZodBoolean>;
18160
18199
  ifFails: z.ZodOptional<z.ZodString>;
18161
18200
  next: z.ZodOptional<z.ZodString>;
18162
18201
  remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
@@ -18614,6 +18653,7 @@ export declare const flowFileSchema: z.ZodObject<{
18614
18653
  violet: "violet";
18615
18654
  }>>;
18616
18655
  }, z.core.$strict>>;
18656
+ browser: z.ZodOptional<z.ZodBoolean>;
18617
18657
  ifFails: z.ZodOptional<z.ZodString>;
18618
18658
  next: z.ZodOptional<z.ZodString>;
18619
18659
  remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
@@ -19071,6 +19111,7 @@ export declare const flowFileSchema: z.ZodObject<{
19071
19111
  violet: "violet";
19072
19112
  }>>;
19073
19113
  }, z.core.$strict>>;
19114
+ browser: z.ZodOptional<z.ZodBoolean>;
19074
19115
  ifFails: z.ZodOptional<z.ZodString>;
19075
19116
  next: z.ZodOptional<z.ZodString>;
19076
19117
  remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
@@ -128,7 +128,7 @@ function zoneSchemas(instructions) {
128
128
  z.strictObject({ id, title, kind: z.literal("task"), zone, instructions: text, planning: z.enum(FLOW_PLANNING), approver: nil, message: message.nullable(), close: nil, script: nil, sort: nil, repo: words("repo", "flowRepo").min(1).optional(), limit: remind, next, onFail }),
129
129
  z.strictObject({ id, title, kind: z.literal("report"), zone, instructions: text, planning: nil, approver: nil, message: message.nullable(), close: nil, script: nil, sort: nil, limit: remind, next, onFail }),
130
130
  z.strictObject({ id, title, kind: z.literal("approval"), zone, instructions: said, planning: nil, approver: words("approver", "flowDecider").min(1).nullable(), toOwner: z.literal(true).optional(), message: message.nullable(), close: nil, script: nil, sort: nil, subagent: zoneId.optional(), limit: move, next, onFail }),
131
- z.strictObject({ id, title, kind: z.literal("check"), zone, instructions: said, planning: nil, approver: nil, message: message.nullable(), close: nil, script: scriptName, runIn: z.enum(FLOW_RUN_IN).optional(), routes, secrets: z.array(secretName).min(1).max(SECRETS_MAX).optional(), sort: nil, limit: remind, next, onFail }),
131
+ z.strictObject({ id, title, kind: z.literal("check"), zone, instructions: said, planning: nil, approver: nil, message: message.nullable(), close: nil, script: scriptName, runIn: z.enum(FLOW_RUN_IN).optional(), routes, secrets: z.array(secretName).min(1).max(SECRETS_MAX).optional(), browser: z.literal(true).optional(), sort: nil, limit: remind, next, onFail }),
132
132
  z.strictObject({ id, title, kind: z.literal("pull-request"), zone, instructions: said, planning: nil, approver: nil, message: message.nullable(), close: nil, script: nil, sort: nil, merge: z.enum(FLOW_MERGE_METHODS).optional(), limit: remind, next, onFail }),
133
133
  z.strictObject({ id, title, kind: z.literal("update"), zone, instructions: said, planning: nil, approver: nil, message: message.nullable(), close: z.boolean(), script: nil, sort: nil, limit: remind, next, onFail }),
134
134
  z.strictObject({ id, title, kind: z.literal("notify"), zone, instructions: said, planning: nil, approver: nil, message, close: nil, script: nil, sort: nil, limit: remind, next, onFail }),
@@ -184,6 +184,8 @@ const STEP_FIELDS = {
184
184
  runIn: z.enum(FLOW_RUN_IN),
185
185
  routes: z.array(flowStepRouteSchema).max(ROUTES_MAX),
186
186
  secrets: z.array(secretName).max(SECRETS_MAX),
187
+ /** check: the script starts a browser (Playwright's Chromium); it runs only once a person approves browser use for the flow (flow-browser.ts). */
188
+ browser: z.boolean(),
187
189
  question: short("flowSortQuestion"),
188
190
  answers: z.array(flowStepAnswerSchema).min(SORT_ANSWERS_MIN).max(SORT_ANSWERS_MAX),
189
191
  /** A percentage (80) or a fraction (0.8). */
@@ -230,7 +232,7 @@ const STEP_KINDS = {
230
232
  task: ["instructions", "planning", "repo", "next", "ifFails", "remindAfter"],
231
233
  report: ["instructions", "next", "ifFails", "remindAfter"],
232
234
  approval: ["decider", "subagent", "next", "ifFails", "remindAfter", "thenMoveTo"],
233
- check: ["script", "runIn", "routes", "secrets", "next", "ifFails", "remindAfter"],
235
+ check: ["script", "runIn", "routes", "secrets", "browser", "next", "ifFails", "remindAfter"],
234
236
  "pull-request": ["merge", "next", "ifFails", "remindAfter"],
235
237
  update: ["message", "close", "next", "ifFails", "remindAfter"],
236
238
  notify: ["message", "next", "ifFails", "remindAfter"],
@@ -155,6 +155,7 @@ export declare const LEAD_TOOL_INPUTS: {
155
155
  operation: z.ZodEnum<{
156
156
  add_card: "add_card";
157
157
  add_trigger: "add_trigger";
158
+ allow_browser: "allow_browser";
158
159
  approve: "approve";
159
160
  assign: "assign";
160
161
  cancel_card: "cancel_card";
@@ -171,6 +172,7 @@ export declare const LEAD_TOOL_INPUTS: {
171
172
  save_script: "save_script";
172
173
  send_back: "send_back";
173
174
  starter: "starter";
175
+ turn_off_browser: "turn_off_browser";
174
176
  unfollow: "unfollow";
175
177
  }>;
176
178
  repo: z.ZodOptional<z.ZodString>;
@@ -233,6 +235,7 @@ export declare const LEAD_TOOL_INPUTS: {
233
235
  id: z.ZodOptional<z.ZodString>;
234
236
  title: z.ZodString;
235
237
  kind: z.ZodLiteral<"check">;
238
+ browser: z.ZodOptional<z.ZodBoolean>;
236
239
  ifFails: z.ZodOptional<z.ZodString>;
237
240
  next: z.ZodOptional<z.ZodString>;
238
241
  remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
@@ -610,6 +613,9 @@ export declare const LEAD_TOOL_INPUTS: {
610
613
  limit: z.ZodOptional<z.ZodInt>;
611
614
  search: z.ZodOptional<z.ZodString>;
612
615
  }, z.core.$strict>;
616
+ readonly tidy_preview: z.ZodObject<{
617
+ days: z.ZodOptional<z.ZodInt>;
618
+ }, z.core.$strict>;
613
619
  readonly get_task: z.ZodObject<{
614
620
  task: z.ZodString;
615
621
  }, z.core.$strict>;
@@ -886,6 +892,7 @@ export declare const LEAD_TOOL_READ_INPUTS: {
886
892
  operation: z.ZodEnum<{
887
893
  add_card: "add_card";
888
894
  add_trigger: "add_trigger";
895
+ allow_browser: "allow_browser";
889
896
  approve: "approve";
890
897
  assign: "assign";
891
898
  cancel_card: "cancel_card";
@@ -902,6 +909,7 @@ export declare const LEAD_TOOL_READ_INPUTS: {
902
909
  save_script: "save_script";
903
910
  send_back: "send_back";
904
911
  starter: "starter";
912
+ turn_off_browser: "turn_off_browser";
905
913
  unfollow: "unfollow";
906
914
  }>;
907
915
  repo: z.ZodOptional<z.ZodString>;
@@ -964,6 +972,7 @@ export declare const LEAD_TOOL_READ_INPUTS: {
964
972
  id: z.ZodOptional<z.ZodString>;
965
973
  title: z.ZodString;
966
974
  kind: z.ZodLiteral<"check">;
975
+ browser: z.ZodOptional<z.ZodBoolean>;
967
976
  ifFails: z.ZodOptional<z.ZodString>;
968
977
  next: z.ZodOptional<z.ZodString>;
969
978
  remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
@@ -1314,6 +1323,9 @@ export declare const LEAD_TOOL_READ_INPUTS: {
1314
1323
  repo: z.ZodOptional<z.ZodString>;
1315
1324
  }, z.core.$strict>;
1316
1325
  readonly get_models: z.ZodObject<{}, z.core.$strict>;
1326
+ readonly tidy_preview: z.ZodObject<{
1327
+ days: z.ZodOptional<z.ZodInt>;
1328
+ }, z.core.$strict>;
1317
1329
  readonly get_task: z.ZodObject<{
1318
1330
  task: z.ZodString;
1319
1331
  }, z.core.$strict>;
@@ -1892,6 +1904,15 @@ export declare const LEAD_TOOL_OUTPUTS: {
1892
1904
  }, z.core.$loose>>;
1893
1905
  truncated: z.ZodBoolean;
1894
1906
  }, z.core.$loose>;
1907
+ readonly tidy_preview: z.ZodObject<{
1908
+ count: z.ZodNumber;
1909
+ days: z.ZodNumber;
1910
+ groups: z.ZodArray<z.ZodObject<{
1911
+ label: z.ZodString;
1912
+ }, z.core.$loose>>;
1913
+ digest: z.ZodString;
1914
+ apply: z.ZodString;
1915
+ }, z.core.$loose>;
1895
1916
  readonly get_task: z.ZodObject<{
1896
1917
  repo: z.ZodString;
1897
1918
  task: z.ZodString;
@@ -118,6 +118,7 @@ export const LEAD_TOOL_INPUTS = {
118
118
  search_project_memory: z.strictObject({ query: text("memorySearch").min(2), repo: repoId.optional() }),
119
119
  get_models: z.strictObject({}),
120
120
  list_tasks: z.strictObject({ repo: repoId.optional(), state: z.enum(LISTED_TASK_STATES).optional(), limit: z.int().min(1).max(50).optional(), search: text("taskSearch").optional() }),
121
+ tidy_preview: z.strictObject({ days: z.int().min(1).max(365).optional() }),
121
122
  get_task: z.strictObject({ task: taskRef }),
122
123
  get_agents: z.strictObject({ task: taskRef }),
123
124
  list_decisions: z.strictObject({}),
@@ -251,6 +252,7 @@ export const LEAD_TOOL_OUTPUTS = {
251
252
  search_project_memory: z.looseObject({ hits: list, notice: str }),
252
253
  get_models: z.looseObject({ roles: rows({ role: str }), tools: list, newModels: list, change: str }),
253
254
  list_tasks: z.looseObject({ tasks: rows({ repo: str, task: str, execution: str, title: str, state: str, ageHours: z.number(), strikes: int }), truncated: z.boolean() }),
255
+ tidy_preview: z.looseObject({ count: int, days: int, groups: rows({ label: str }), digest: str, apply: str }),
254
256
  get_task: z.looseObject({
255
257
  repo: str, task: str, root: str, currentExecution: str, title: str, state: str, deliverable: str, scope: str,
256
258
  queue: nullable(z.looseObject({ position: int, of: int, column: str })), holds: list, attempts: int, decisionsOpen: int, dependencies: list,
@@ -168,6 +168,8 @@ declare const STORE_COLUMN_VALUES: {
168
168
  operation: z.ZodEnum<{
169
169
  decision_record: "decision_record";
170
170
  decision_retire: "decision_retire";
171
+ flow_browser: "flow_browser";
172
+ flow_browser_off: "flow_browser_off";
171
173
  flow_card_add: "flow_card_add";
172
174
  flow_card_approve: "flow_card_approve";
173
175
  flow_card_assign: "flow_card_assign";