toolroll 0.9.36 → 0.9.37

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 (165) hide show
  1. package/CHANGELOG.md +58 -0
  2. package/dist/assignment-adapters.d.ts +12 -48
  3. package/dist/assignment-adapters.js +33 -43
  4. package/dist/build-review.d.ts +1 -1
  5. package/dist/build-review.js +2 -1
  6. package/dist/chat-acceptance.d.ts +1 -1
  7. package/dist/chat-actions.d.ts +18 -12
  8. package/dist/chat-actions.js +15 -65
  9. package/dist/chat-ask.js +5 -5
  10. package/dist/chat-decide.d.ts +14 -1
  11. package/dist/chat-decide.js +12 -6
  12. package/dist/chat-delivery-state.d.ts +12 -70
  13. package/dist/chat-delivery-state.js +17 -135
  14. package/dist/chat-delivery.js +58 -30
  15. package/dist/chat-flow.js +8 -6
  16. package/dist/chat-inbox.js +1 -1
  17. package/dist/coding-context.d.ts +2 -39
  18. package/dist/coding-context.js +2 -1
  19. package/dist/coding-handoff.d.ts +6 -25
  20. package/dist/coding-handoff.js +11 -5
  21. package/dist/coding-types.d.ts +2 -26
  22. package/dist/coding-workspace.d.ts +2 -0
  23. package/dist/coding-workspace.js +50 -14
  24. package/dist/contracts/acceptance-terms.d.ts +14 -0
  25. package/dist/contracts/acceptance-terms.js +16 -0
  26. package/dist/contracts/chat-actions.d.ts +328 -0
  27. package/dist/contracts/chat-actions.js +133 -0
  28. package/dist/contracts/chat-callback-rows.d.ts +59 -0
  29. package/dist/contracts/chat-callback-rows.js +46 -0
  30. package/dist/contracts/chat-content.d.ts +276 -0
  31. package/dist/contracts/chat-content.js +127 -0
  32. package/dist/contracts/chat-tables.d.ts +6 -0
  33. package/dist/contracts/chat-tables.js +136 -0
  34. package/dist/contracts/coding-context.d.ts +97 -0
  35. package/dist/contracts/coding-context.js +60 -0
  36. package/dist/contracts/coding-handoff.d.ts +44 -0
  37. package/dist/contracts/coding-handoff.js +47 -0
  38. package/dist/contracts/coding-workspace.d.ts +165 -0
  39. package/dist/contracts/coding-workspace.js +71 -0
  40. package/dist/contracts/contract.d.ts +7 -2
  41. package/dist/contracts/contract.js +21 -12
  42. package/dist/contracts/decision.d.ts +45 -0
  43. package/dist/contracts/decision.js +45 -0
  44. package/dist/contracts/discord-callback.d.ts +45 -0
  45. package/dist/contracts/discord-callback.js +34 -0
  46. package/dist/contracts/flow-card.d.ts +50 -0
  47. package/dist/contracts/flow-card.js +46 -0
  48. package/dist/contracts/flow-send.d.ts +119 -0
  49. package/dist/contracts/flow-send.js +112 -0
  50. package/dist/contracts/flow.d.ts +5 -0
  51. package/dist/contracts/flow.js +5 -0
  52. package/dist/contracts/gateway-tools.d.ts +374 -0
  53. package/dist/contracts/gateway-tools.js +94 -0
  54. package/dist/contracts/lead-context.d.ts +165 -0
  55. package/dist/contracts/lead-context.js +73 -0
  56. package/dist/contracts/lead-tools.d.ts +1905 -0
  57. package/dist/contracts/lead-tools.js +265 -0
  58. package/dist/contracts/memory-pass.d.ts +158 -0
  59. package/dist/contracts/memory-pass.js +102 -0
  60. package/dist/contracts/project-knowledge.d.ts +126 -0
  61. package/dist/contracts/project-knowledge.js +93 -0
  62. package/dist/contracts/project-memory.d.ts +117 -0
  63. package/dist/contracts/project-memory.js +51 -0
  64. package/dist/contracts/project-skills.d.ts +121 -0
  65. package/dist/contracts/project-skills.js +76 -0
  66. package/dist/contracts/review-findings.d.ts +46 -0
  67. package/dist/contracts/review-findings.js +48 -0
  68. package/dist/contracts/route.d.ts +484 -0
  69. package/dist/contracts/route.js +128 -0
  70. package/dist/contracts/scope.d.ts +105 -0
  71. package/dist/contracts/scope.js +114 -0
  72. package/dist/contracts/scout-report.d.ts +234 -0
  73. package/dist/contracts/scout-report.js +141 -0
  74. package/dist/contracts/slack-callback.d.ts +43 -0
  75. package/dist/contracts/slack-callback.js +35 -0
  76. package/dist/contracts/sort-answer.d.ts +83 -0
  77. package/dist/contracts/sort-answer.js +77 -0
  78. package/dist/contracts/stage-output.d.ts +127 -0
  79. package/dist/contracts/stage-output.js +166 -0
  80. package/dist/contracts/task-sizing.d.ts +24 -0
  81. package/dist/contracts/task-sizing.js +28 -0
  82. package/dist/contracts/teammate-turn.d.ts +43 -0
  83. package/dist/contracts/teammate-turn.js +51 -0
  84. package/dist/contracts/teams-callback.d.ts +14 -0
  85. package/dist/contracts/teams-callback.js +14 -0
  86. package/dist/contracts/telegram-callback.d.ts +120 -0
  87. package/dist/contracts/telegram-callback.js +97 -0
  88. package/dist/decision.d.ts +11 -20
  89. package/dist/decision.js +86 -167
  90. package/dist/desktop-update.d.ts +2 -2
  91. package/dist/discord-chat.js +31 -20
  92. package/dist/flow-engine.js +14 -17
  93. package/dist/flow-items.d.ts +4 -13
  94. package/dist/flow-items.js +1 -15
  95. package/dist/flow-send.d.ts +6 -37
  96. package/dist/flow-send.js +18 -14
  97. package/dist/flow-share.js +7 -1
  98. package/dist/flow-sort.d.ts +7 -26
  99. package/dist/flow-sort.js +25 -20
  100. package/dist/flow-steps.js +3 -2
  101. package/dist/flows.d.ts +2 -4
  102. package/dist/flows.js +9 -5
  103. package/dist/invoke.js +4 -4
  104. package/dist/lead-context.d.ts +4 -2
  105. package/dist/lead-context.js +24 -17
  106. package/dist/mate-tools.d.ts +4 -0
  107. package/dist/mate-tools.js +108 -275
  108. package/dist/mcp-connect.d.ts +24 -4
  109. package/dist/mcp-connect.js +78 -15
  110. package/dist/mcp.js +84 -216
  111. package/dist/memory-pass.d.ts +17 -42
  112. package/dist/memory-pass.js +54 -26
  113. package/dist/phase-routing.d.ts +19 -72
  114. package/dist/phase-routing.js +34 -164
  115. package/dist/project-knowledge.d.ts +16 -35
  116. package/dist/project-knowledge.js +42 -21
  117. package/dist/project-memory.d.ts +2 -28
  118. package/dist/project-memory.js +28 -13
  119. package/dist/project-skills.d.ts +16 -38
  120. package/dist/project-skills.js +41 -32
  121. package/dist/project-tools.d.ts +1 -0
  122. package/dist/project-tools.js +4 -4
  123. package/dist/provider.d.ts +2 -0
  124. package/dist/provider.js +4 -16
  125. package/dist/result-shots.d.ts +1 -1
  126. package/dist/result-shots.js +2 -1
  127. package/dist/review-switch.d.ts +3 -8
  128. package/dist/reviewer.d.ts +8 -12
  129. package/dist/reviewer.js +11 -35
  130. package/dist/scope.d.ts +21 -43
  131. package/dist/scope.js +42 -128
  132. package/dist/scout-report.d.ts +9 -194
  133. package/dist/scout-report.js +113 -264
  134. package/dist/scout.js +15 -11
  135. package/dist/serve.js +9 -2
  136. package/dist/setup-guide.d.ts +2 -2
  137. package/dist/slack-chat.js +26 -20
  138. package/dist/slack-state.js +2 -1
  139. package/dist/store.d.ts +9 -32
  140. package/dist/store.js +18 -15
  141. package/dist/structured-output.js +2 -1
  142. package/dist/subscription-chat.d.ts +4 -0
  143. package/dist/subscription-chat.js +4 -1
  144. package/dist/task-review-brief.d.ts +1 -7
  145. package/dist/task-review-brief.js +6 -6
  146. package/dist/task-sizing.d.ts +3 -27
  147. package/dist/task-sizing.js +11 -26
  148. package/dist/task-text.d.ts +0 -5
  149. package/dist/task-text.js +1 -3
  150. package/dist/teammate-question.js +7 -5
  151. package/dist/teammate-work.js +9 -5
  152. package/dist/teammates.d.ts +13 -64
  153. package/dist/teammates.js +32 -33
  154. package/dist/teams-chat.js +20 -11
  155. package/dist/telegram-flow.js +4 -3
  156. package/dist/telegram-mate.d.ts +4 -14
  157. package/dist/telegram-mate.js +8 -7
  158. package/dist/telegram-team.d.ts +2 -19
  159. package/dist/telegram.d.ts +1 -1
  160. package/dist/telegram.js +52 -42
  161. package/dist/text-limits.d.ts +142 -1
  162. package/dist/text-limits.js +144 -1
  163. package/dist/tools-ui.d.ts +2 -1
  164. package/dist/tools-ui.js +7 -4
  165. package/package.json +1 -1
@@ -0,0 +1,1905 @@
1
+ /**
2
+ * The lead's tools (docs/plans/zod-revamp.md, item 5): one input schema per tool, and one output schema for what each
3
+ * returns when it succeeds. The input schema supplies the JSON Schema the lead is given (`toModelSchema`) and the
4
+ * compatible reader used before any handler runs (mate-tools.ts), so a refusal names the paths it reads next step.
5
+ * What JSON Schema can't say — a repo the operator may reach, plain text without secrets, an ISO time, a decision read
6
+ * in an earlier step — is still checked in plain code after parsing, with its own words.
7
+ *
8
+ * Output schemas describe a result's top level. They are checked in tests and logged when a result disagrees; a call
9
+ * that succeeds is never refused because of one (an output schema is a record of the contract, not a gate).
10
+ */
11
+ import { z } from "zod";
12
+ import { type ContractOptions } from "./contract.js";
13
+ /** A task as a tool names it: its id. */
14
+ export declare const taskRef: z.ZodString;
15
+ /** A project as list_repos names it (r1, r2). */
16
+ export declare const repoId: z.ZodString;
17
+ /** A task's goal or what it leaves out: the length a model is told before it writes, and refused (not cut) beyond. */
18
+ export declare const scopeText: z.ZodString;
19
+ /** The paths a task expects to touch. */
20
+ export declare const touches: z.ZodArray<z.ZodString>;
21
+ /** The rubric a task is accepted against: the plan's own criterion schema; duplicate ids and byte limits are checked after. */
22
+ export declare const acceptance: z.ZodArray<z.ZodObject<{
23
+ id: z.ZodString;
24
+ statement: z.ZodString;
25
+ how: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ evidence: z.ZodArray<z.ZodEnum<{
27
+ "changed-path": "changed-path";
28
+ check: "check";
29
+ "manual-review": "manual-review";
30
+ screenshot: "screenshot";
31
+ }>>;
32
+ }, z.core.$strict>>;
33
+ /** Task states a list filters by. */
34
+ export declare const LISTED_TASK_STATES: readonly ["queued", "running", "done", "failed", "cancelled"];
35
+ export declare const LEAD_TOOL_INPUTS: {
36
+ readonly get_brief: z.ZodObject<{
37
+ repo: z.ZodOptional<z.ZodString>;
38
+ }, z.core.$strict>;
39
+ readonly get_project_context: z.ZodObject<{
40
+ repo: z.ZodString;
41
+ query: z.ZodString;
42
+ mode: z.ZodOptional<z.ZodEnum<{
43
+ impact: "impact";
44
+ search: "search";
45
+ }>>;
46
+ }, z.core.$strict>;
47
+ readonly get_action_status: z.ZodObject<{
48
+ proposal: z.ZodInt;
49
+ }, z.core.$strict>;
50
+ readonly get_actions: z.ZodObject<{}, z.core.$strict>;
51
+ readonly propose_action: z.ZodObject<{
52
+ operation: z.ZodEnum<{
53
+ [x: string]: string;
54
+ }>;
55
+ repo: z.ZodOptional<z.ZodString>;
56
+ task: z.ZodOptional<z.ZodString>;
57
+ version: z.ZodOptional<z.ZodString>;
58
+ restore: z.ZodOptional<z.ZodInt>;
59
+ sample: z.ZodOptional<z.ZodString>;
60
+ content: z.ZodOptional<z.ZodString>;
61
+ instructions: z.ZodOptional<z.ZodString>;
62
+ title: z.ZodOptional<z.ZodString>;
63
+ id: z.ZodOptional<z.ZodString>;
64
+ run: z.ZodOptional<z.ZodInt>;
65
+ note: z.ZodOptional<z.ZodString>;
66
+ catalog: z.ZodOptional<z.ZodString>;
67
+ name: z.ZodOptional<z.ZodString>;
68
+ command: z.ZodOptional<z.ZodString>;
69
+ args: z.ZodOptional<z.ZodArray<z.ZodString>>;
70
+ url: z.ZodOptional<z.ZodString>;
71
+ secrets: z.ZodOptional<z.ZodArray<z.ZodString>>;
72
+ about: z.ZodOptional<z.ZodString>;
73
+ }, z.core.$strict>;
74
+ readonly propose_task_action: z.ZodObject<{
75
+ task: z.ZodString;
76
+ operation: z.ZodEnum<{
77
+ [x: string]: string;
78
+ }>;
79
+ dependency: z.ZodOptional<z.ZodString>;
80
+ run: z.ZodOptional<z.ZodInt>;
81
+ }, z.core.$strict>;
82
+ readonly get_controls: z.ZodObject<{}, z.core.$strict>;
83
+ readonly show_control: z.ZodObject<{
84
+ control: z.ZodEnum<{
85
+ [x: string]: string;
86
+ }>;
87
+ task: z.ZodOptional<z.ZodString>;
88
+ repo: z.ZodOptional<z.ZodString>;
89
+ run: z.ZodOptional<z.ZodInt>;
90
+ }, z.core.$strict>;
91
+ readonly get_result: z.ZodObject<{
92
+ task: z.ZodString;
93
+ run: z.ZodOptional<z.ZodInt>;
94
+ feedback_offset: z.ZodOptional<z.ZodInt>;
95
+ }, z.core.$strict>;
96
+ readonly get_diff: z.ZodObject<{
97
+ task: z.ZodString;
98
+ run: z.ZodOptional<z.ZodInt>;
99
+ file: z.ZodOptional<z.ZodString>;
100
+ offset: z.ZodOptional<z.ZodInt>;
101
+ }, z.core.$strict>;
102
+ readonly get_check_log: z.ZodObject<{
103
+ task: z.ZodString;
104
+ run: z.ZodOptional<z.ZodInt>;
105
+ search: z.ZodOptional<z.ZodString>;
106
+ offset: z.ZodOptional<z.ZodInt>;
107
+ }, z.core.$strict>;
108
+ readonly get_acceptance_evidence: z.ZodObject<{
109
+ task: z.ZodString;
110
+ run: z.ZodOptional<z.ZodInt>;
111
+ offset: z.ZodOptional<z.ZodInt>;
112
+ }, z.core.$strict>;
113
+ readonly get_result_images: z.ZodObject<{
114
+ task: z.ZodString;
115
+ run: z.ZodOptional<z.ZodInt>;
116
+ offset: z.ZodOptional<z.ZodInt>;
117
+ images: z.ZodOptional<z.ZodArray<z.ZodInt>>;
118
+ }, z.core.$strict>;
119
+ readonly propose_review: z.ZodObject<{
120
+ run: z.ZodInt;
121
+ operation: z.ZodEnum<{
122
+ note: "note";
123
+ revise: "revise";
124
+ }>;
125
+ note: z.ZodOptional<z.ZodNullable<z.ZodString>>;
126
+ path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
127
+ line: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
128
+ saved_notes: z.ZodOptional<z.ZodArray<z.ZodInt>>;
129
+ }, z.core.$strict>;
130
+ readonly recap: z.ZodObject<{
131
+ since: z.ZodOptional<z.ZodString>;
132
+ }, z.core.$strict>;
133
+ readonly list_repos: z.ZodObject<{}, z.core.$strict>;
134
+ readonly get_project_tools: z.ZodObject<{
135
+ repo: z.ZodString;
136
+ }, z.core.$strict>;
137
+ readonly get_flows: z.ZodObject<{
138
+ repo: z.ZodOptional<z.ZodString>;
139
+ flow: z.ZodOptional<z.ZodInt>;
140
+ card: z.ZodOptional<z.ZodInt>;
141
+ }, z.core.$strict>;
142
+ readonly propose_flow: z.ZodObject<{
143
+ operation: z.ZodEnum<{
144
+ add_card: "add_card";
145
+ add_trigger: "add_trigger";
146
+ approve: "approve";
147
+ assign: "assign";
148
+ cancel_card: "cancel_card";
149
+ choose: "choose";
150
+ comment: "comment";
151
+ create: "create";
152
+ edit: "edit";
153
+ follow: "follow";
154
+ kit: "kit";
155
+ move_card: "move_card";
156
+ pause_trigger: "pause_trigger";
157
+ remove_trigger: "remove_trigger";
158
+ resume_trigger: "resume_trigger";
159
+ save_script: "save_script";
160
+ send_back: "send_back";
161
+ starter: "starter";
162
+ unfollow: "unfollow";
163
+ }>;
164
+ repo: z.ZodOptional<z.ZodString>;
165
+ flow: z.ZodOptional<z.ZodInt>;
166
+ card: z.ZodOptional<z.ZodInt>;
167
+ kit: z.ZodOptional<z.ZodEnum<{
168
+ [x: string]: string;
169
+ }>>;
170
+ starter: z.ZodOptional<z.ZodEnum<{
171
+ "ci-fix": "ci-fix";
172
+ "issue-task": "issue-task";
173
+ overnight: "overnight";
174
+ "plane-review": "plane-review";
175
+ }>>;
176
+ name: z.ZodOptional<z.ZodString>;
177
+ template: z.ZodOptional<z.ZodEnum<{
178
+ [x: string]: string;
179
+ }>>;
180
+ steps: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<readonly [z.ZodObject<{
181
+ id: z.ZodOptional<z.ZodString>;
182
+ title: z.ZodString;
183
+ kind: z.ZodLiteral<"inbox">;
184
+ ifFails: z.ZodOptional<z.ZodString>;
185
+ next: z.ZodOptional<z.ZodString>;
186
+ remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
187
+ thenMoveTo: z.ZodOptional<z.ZodString>;
188
+ }, z.core.$strict>, z.ZodObject<{
189
+ id: z.ZodOptional<z.ZodString>;
190
+ title: z.ZodString;
191
+ kind: z.ZodLiteral<"task">;
192
+ ifFails: z.ZodOptional<z.ZodString>;
193
+ instructions: z.ZodOptional<z.ZodString>;
194
+ next: z.ZodOptional<z.ZodString>;
195
+ planning: z.ZodOptional<z.ZodEnum<{
196
+ auto: "auto";
197
+ required: "required";
198
+ skip: "skip";
199
+ }>>;
200
+ remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
201
+ repo: z.ZodOptional<z.ZodString>;
202
+ }, z.core.$strict>, z.ZodObject<{
203
+ id: z.ZodOptional<z.ZodString>;
204
+ title: z.ZodString;
205
+ kind: z.ZodLiteral<"report">;
206
+ ifFails: z.ZodOptional<z.ZodString>;
207
+ instructions: z.ZodOptional<z.ZodString>;
208
+ next: z.ZodOptional<z.ZodString>;
209
+ remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
210
+ }, z.core.$strict>, z.ZodObject<{
211
+ id: z.ZodOptional<z.ZodString>;
212
+ title: z.ZodString;
213
+ kind: z.ZodLiteral<"approval">;
214
+ decider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
215
+ ifFails: z.ZodOptional<z.ZodString>;
216
+ next: z.ZodOptional<z.ZodString>;
217
+ remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
218
+ teammate: z.ZodOptional<z.ZodString>;
219
+ thenMoveTo: z.ZodOptional<z.ZodString>;
220
+ }, z.core.$strict>, z.ZodObject<{
221
+ id: z.ZodOptional<z.ZodString>;
222
+ title: z.ZodString;
223
+ kind: z.ZodLiteral<"check">;
224
+ ifFails: z.ZodOptional<z.ZodString>;
225
+ next: z.ZodOptional<z.ZodString>;
226
+ remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
227
+ routes: z.ZodOptional<z.ZodArray<z.ZodObject<{
228
+ answer: z.ZodString;
229
+ goesTo: z.ZodString;
230
+ }, z.core.$strict>>>;
231
+ runIn: z.ZodOptional<z.ZodEnum<{
232
+ copy: "copy";
233
+ folder: "folder";
234
+ }>>;
235
+ script: z.ZodOptional<z.ZodString>;
236
+ secrets: z.ZodOptional<z.ZodArray<z.ZodString>>;
237
+ }, z.core.$strict>, z.ZodObject<{
238
+ id: z.ZodOptional<z.ZodString>;
239
+ title: z.ZodString;
240
+ kind: z.ZodLiteral<"pull-request">;
241
+ ifFails: z.ZodOptional<z.ZodString>;
242
+ merge: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
243
+ merge: "merge";
244
+ rebase: "rebase";
245
+ squash: "squash";
246
+ }>]>>;
247
+ next: z.ZodOptional<z.ZodString>;
248
+ remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
249
+ }, z.core.$strict>, z.ZodObject<{
250
+ id: z.ZodOptional<z.ZodString>;
251
+ title: z.ZodString;
252
+ kind: z.ZodLiteral<"update">;
253
+ close: z.ZodOptional<z.ZodBoolean>;
254
+ ifFails: z.ZodOptional<z.ZodString>;
255
+ message: z.ZodOptional<z.ZodString>;
256
+ next: z.ZodOptional<z.ZodString>;
257
+ remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
258
+ }, z.core.$strict>, z.ZodObject<{
259
+ id: z.ZodOptional<z.ZodString>;
260
+ title: z.ZodString;
261
+ kind: z.ZodLiteral<"notify">;
262
+ ifFails: z.ZodOptional<z.ZodString>;
263
+ message: z.ZodOptional<z.ZodString>;
264
+ next: z.ZodOptional<z.ZodString>;
265
+ remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
266
+ }, z.core.$strict>, z.ZodObject<{
267
+ id: z.ZodOptional<z.ZodString>;
268
+ title: z.ZodString;
269
+ kind: z.ZodLiteral<"sort">;
270
+ alsoNote: z.ZodOptional<z.ZodArray<z.ZodObject<{
271
+ id: z.ZodOptional<z.ZodString>;
272
+ question: z.ZodString;
273
+ kind: z.ZodOptional<z.ZodEnum<{
274
+ score: "score";
275
+ "yes-no": "yes-no";
276
+ }>>;
277
+ levels: z.ZodOptional<z.ZodArray<z.ZodString>>;
278
+ }, z.core.$strict>>>;
279
+ answers: z.ZodOptional<z.ZodArray<z.ZodObject<{
280
+ answer: z.ZodString;
281
+ means: z.ZodOptional<z.ZodString>;
282
+ goesTo: z.ZodString;
283
+ }, z.core.$strict>>>;
284
+ ifNotSure: z.ZodOptional<z.ZodString>;
285
+ question: z.ZodOptional<z.ZodString>;
286
+ remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
287
+ sureAt: z.ZodOptional<z.ZodNumber>;
288
+ }, z.core.$strict>, z.ZodObject<{
289
+ id: z.ZodOptional<z.ZodString>;
290
+ title: z.ZodString;
291
+ kind: z.ZodLiteral<"draft">;
292
+ ifFails: z.ZodOptional<z.ZodString>;
293
+ instructions: z.ZodOptional<z.ZodString>;
294
+ next: z.ZodOptional<z.ZodString>;
295
+ remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
296
+ }, z.core.$strict>, z.ZodObject<{
297
+ id: z.ZodOptional<z.ZodString>;
298
+ title: z.ZodString;
299
+ kind: z.ZodLiteral<"request">;
300
+ body: z.ZodOptional<z.ZodString>;
301
+ headers: z.ZodOptional<z.ZodObject<{}, z.core.$catchall<z.ZodString>>>;
302
+ ifFails: z.ZodOptional<z.ZodString>;
303
+ method: z.ZodOptional<z.ZodEnum<{
304
+ DELETE: "DELETE";
305
+ GET: "GET";
306
+ PATCH: "PATCH";
307
+ POST: "POST";
308
+ PUT: "PUT";
309
+ }>>;
310
+ next: z.ZodOptional<z.ZodString>;
311
+ remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
312
+ url: z.ZodOptional<z.ZodString>;
313
+ }, z.core.$strict>, z.ZodObject<{
314
+ id: z.ZodOptional<z.ZodString>;
315
+ title: z.ZodString;
316
+ kind: z.ZodLiteral<"email">;
317
+ body: z.ZodOptional<z.ZodString>;
318
+ ifFails: z.ZodOptional<z.ZodString>;
319
+ next: z.ZodOptional<z.ZodString>;
320
+ remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
321
+ subject: z.ZodOptional<z.ZodString>;
322
+ to: z.ZodOptional<z.ZodString>;
323
+ }, z.core.$strict>, z.ZodObject<{
324
+ id: z.ZodOptional<z.ZodString>;
325
+ title: z.ZodString;
326
+ kind: z.ZodLiteral<"tool">;
327
+ args: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>, z.ZodString]>>;
328
+ ifFails: z.ZodOptional<z.ZodString>;
329
+ next: z.ZodOptional<z.ZodString>;
330
+ remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
331
+ server: z.ZodOptional<z.ZodString>;
332
+ tool: z.ZodOptional<z.ZodString>;
333
+ }, z.core.$strict>, z.ZodObject<{
334
+ id: z.ZodOptional<z.ZodString>;
335
+ title: z.ZodString;
336
+ kind: z.ZodLiteral<"wait">;
337
+ from: z.ZodOptional<z.ZodString>;
338
+ ifNoReply: z.ZodOptional<z.ZodString>;
339
+ next: z.ZodOptional<z.ZodString>;
340
+ timeZone: z.ZodOptional<z.ZodString>;
341
+ until: z.ZodOptional<z.ZodString>;
342
+ wait: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
343
+ waitFor: z.ZodOptional<z.ZodEnum<{
344
+ hours: "hours";
345
+ reply: "reply";
346
+ time: "time";
347
+ }>>;
348
+ }, z.core.$strict>, z.ZodObject<{
349
+ id: z.ZodOptional<z.ZodString>;
350
+ title: z.ZodString;
351
+ kind: z.ZodLiteral<"teammate">;
352
+ ifFails: z.ZodOptional<z.ZodString>;
353
+ instructions: z.ZodOptional<z.ZodString>;
354
+ next: z.ZodOptional<z.ZodString>;
355
+ remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
356
+ reply: z.ZodOptional<z.ZodBoolean>;
357
+ routes: z.ZodOptional<z.ZodArray<z.ZodObject<{
358
+ answer: z.ZodString;
359
+ goesTo: z.ZodString;
360
+ }, z.core.$strict>>>;
361
+ teammate: z.ZodOptional<z.ZodString>;
362
+ }, z.core.$strict>, z.ZodObject<{
363
+ id: z.ZodOptional<z.ZodString>;
364
+ title: z.ZodString;
365
+ kind: z.ZodLiteral<"send">;
366
+ ifFails: z.ZodOptional<z.ZodString>;
367
+ next: z.ZodOptional<z.ZodString>;
368
+ remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
369
+ }, z.core.$strict>, z.ZodObject<{
370
+ id: z.ZodOptional<z.ZodString>;
371
+ title: z.ZodString;
372
+ kind: z.ZodLiteral<"choose">;
373
+ ifNoReply: z.ZodOptional<z.ZodString>;
374
+ ifReplied: z.ZodOptional<z.ZodString>;
375
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
376
+ label: z.ZodString;
377
+ goesTo: z.ZodOptional<z.ZodString>;
378
+ }, z.core.$strict>>>;
379
+ remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
380
+ thenMoveTo: z.ZodOptional<z.ZodString>;
381
+ }, z.core.$strict>, z.ZodObject<{
382
+ id: z.ZodOptional<z.ZodString>;
383
+ title: z.ZodString;
384
+ kind: z.ZodLiteral<"done">;
385
+ }, z.core.$strict>], "kind">>>;
386
+ title: z.ZodOptional<z.ZodString>;
387
+ description: z.ZodOptional<z.ZodString>;
388
+ zone: z.ZodOptional<z.ZodString>;
389
+ note: z.ZodOptional<z.ZodString>;
390
+ choice: z.ZodOptional<z.ZodInt>;
391
+ trigger: z.ZodOptional<z.ZodInt>;
392
+ owner: z.ZodOptional<z.ZodString>;
393
+ script: z.ZodOptional<z.ZodObject<{
394
+ name: z.ZodOptional<z.ZodString>;
395
+ about: z.ZodOptional<z.ZodString>;
396
+ body: z.ZodOptional<z.ZodString>;
397
+ timeoutMinutes: z.ZodOptional<z.ZodInt>;
398
+ language: z.ZodOptional<z.ZodEnum<{
399
+ node: "node";
400
+ python: "python";
401
+ shell: "shell";
402
+ }>>;
403
+ file: z.ZodOptional<z.ZodString>;
404
+ }, z.core.$strict>>;
405
+ settings: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
406
+ zone: z.ZodOptional<z.ZodString>;
407
+ kind: z.ZodLiteral<"button">;
408
+ label: z.ZodString;
409
+ questions: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodString]>>;
410
+ }, z.core.$strict>, z.ZodObject<{
411
+ zone: z.ZodOptional<z.ZodString>;
412
+ kind: z.ZodLiteral<"schedule">;
413
+ schedule: z.ZodString;
414
+ title: z.ZodOptional<z.ZodString>;
415
+ description: z.ZodOptional<z.ZodString>;
416
+ script: z.ZodOptional<z.ZodString>;
417
+ secrets: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodString]>>;
418
+ }, z.core.$strict>, z.ZodObject<{
419
+ zone: z.ZodOptional<z.ZodString>;
420
+ kind: z.ZodLiteral<"github">;
421
+ repo: z.ZodOptional<z.ZodString>;
422
+ watch: z.ZodOptional<z.ZodEnum<{
423
+ checks: "checks";
424
+ issues: "issues";
425
+ pulls: "pulls";
426
+ }>>;
427
+ label: z.ZodOptional<z.ZodString>;
428
+ branch: z.ZodOptional<z.ZodString>;
429
+ from: z.ZodOptional<z.ZodEnum<{
430
+ anyone: "anyone";
431
+ team: "team";
432
+ }>>;
433
+ }, z.core.$strict>, z.ZodObject<{
434
+ zone: z.ZodOptional<z.ZodString>;
435
+ kind: z.ZodLiteral<"linear">;
436
+ team: z.ZodOptional<z.ZodString>;
437
+ state: z.ZodOptional<z.ZodString>;
438
+ label: z.ZodOptional<z.ZodString>;
439
+ }, z.core.$strict>, z.ZodObject<{
440
+ zone: z.ZodOptional<z.ZodString>;
441
+ kind: z.ZodLiteral<"flow">;
442
+ when: z.ZodOptional<z.ZodString>;
443
+ follow: z.ZodInt;
444
+ }, z.core.$strict>, z.ZodObject<{
445
+ zone: z.ZodOptional<z.ZodString>;
446
+ kind: z.ZodLiteral<"email">;
447
+ folder: z.ZodOptional<z.ZodString>;
448
+ sender: z.ZodOptional<z.ZodString>;
449
+ subject: z.ZodOptional<z.ZodString>;
450
+ }, z.core.$strict>, z.ZodObject<{
451
+ zone: z.ZodOptional<z.ZodString>;
452
+ kind: z.ZodLiteral<"plane-review">;
453
+ at: z.ZodOptional<z.ZodString>;
454
+ timeZone: z.ZodOptional<z.ZodString>;
455
+ }, z.core.$strict>], "kind">>;
456
+ }, z.core.$strict>;
457
+ readonly get_teammates: z.ZodObject<{
458
+ repo: z.ZodOptional<z.ZodString>;
459
+ teammate: z.ZodOptional<z.ZodInt>;
460
+ }, z.core.$strict>;
461
+ readonly propose_teammate: z.ZodObject<{
462
+ operation: z.ZodEnum<{
463
+ add_routine: "add_routine";
464
+ answer: "answer";
465
+ create: "create";
466
+ edit_memory: "edit_memory";
467
+ edit_section: "edit_section";
468
+ edit_soul: "edit_soul";
469
+ forget: "forget";
470
+ note: "note";
471
+ pause: "pause";
472
+ remove: "remove";
473
+ resume: "resume";
474
+ stop_routine: "stop_routine";
475
+ stop_tool: "stop_tool";
476
+ tool_rule: "tool_rule";
477
+ undo: "undo";
478
+ use_tool: "use_tool";
479
+ }>;
480
+ section: z.ZodOptional<z.ZodString>;
481
+ schedule: z.ZodOptional<z.ZodString>;
482
+ routine: z.ZodOptional<z.ZodInt>;
483
+ memory: z.ZodOptional<z.ZodInt>;
484
+ tool: z.ZodOptional<z.ZodString>;
485
+ action: z.ZodOptional<z.ZodString>;
486
+ undoWith: z.ZodOptional<z.ZodString>;
487
+ call: z.ZodOptional<z.ZodInt>;
488
+ use: z.ZodOptional<z.ZodEnum<{
489
+ ask: "ask";
490
+ free: "free";
491
+ never: "never";
492
+ }>>;
493
+ limitField: z.ZodOptional<z.ZodString>;
494
+ limitOver: z.ZodOptional<z.ZodNumber>;
495
+ repo: z.ZodOptional<z.ZodString>;
496
+ teammate: z.ZodOptional<z.ZodInt>;
497
+ template: z.ZodOptional<z.ZodEnum<{
498
+ [x: string]: string;
499
+ }>>;
500
+ name: z.ZodOptional<z.ZodString>;
501
+ soul: z.ZodOptional<z.ZodString>;
502
+ note: z.ZodOptional<z.ZodString>;
503
+ question: z.ZodOptional<z.ZodInt>;
504
+ choice: z.ZodOptional<z.ZodString>;
505
+ text: z.ZodOptional<z.ZodString>;
506
+ }, z.core.$strict>;
507
+ readonly get_flow_insights: z.ZodObject<{
508
+ repo: z.ZodOptional<z.ZodString>;
509
+ flow: z.ZodOptional<z.ZodInt>;
510
+ days: z.ZodOptional<z.ZodInt>;
511
+ card: z.ZodOptional<z.ZodInt>;
512
+ entry: z.ZodOptional<z.ZodInt>;
513
+ }, z.core.$strict>;
514
+ readonly get_skills: z.ZodObject<{
515
+ repo: z.ZodString;
516
+ version: z.ZodOptional<z.ZodString>;
517
+ offset: z.ZodOptional<z.ZodInt>;
518
+ }, z.core.$strict>;
519
+ readonly get_project_knowledge: z.ZodObject<{
520
+ repo: z.ZodString;
521
+ reference: z.ZodOptional<z.ZodString>;
522
+ decision: z.ZodOptional<z.ZodInt>;
523
+ }, z.core.$strict>;
524
+ readonly get_task_conversation: z.ZodObject<{
525
+ task: z.ZodString;
526
+ limit: z.ZodOptional<z.ZodInt>;
527
+ }, z.core.$strict>;
528
+ readonly commit_to: z.ZodObject<{
529
+ what: z.ZodString;
530
+ when: z.ZodEnum<{
531
+ check: "check";
532
+ run: "run";
533
+ task: "task";
534
+ time: "time";
535
+ }>;
536
+ task: z.ZodOptional<z.ZodString>;
537
+ run: z.ZodOptional<z.ZodInt>;
538
+ states: z.ZodOptional<z.ZodArray<z.ZodEnum<{
539
+ [x: string]: string;
540
+ }>>>;
541
+ outcome: z.ZodOptional<z.ZodEnum<{
542
+ built: "built";
543
+ failed: "failed";
544
+ finished: "finished";
545
+ }>>;
546
+ result: z.ZodOptional<z.ZodEnum<{
547
+ either: "either";
548
+ failed: "failed";
549
+ passed: "passed";
550
+ }>>;
551
+ at: z.ZodOptional<z.ZodString>;
552
+ checkAfter: z.ZodOptional<z.ZodString>;
553
+ }, z.core.$strict>;
554
+ readonly release_commitment: z.ZodObject<{
555
+ commitment: z.ZodInt;
556
+ reason: z.ZodString;
557
+ }, z.core.$strict>;
558
+ readonly remember: z.ZodObject<{
559
+ repo: z.ZodOptional<z.ZodString>;
560
+ kind: z.ZodEnum<{
561
+ "about-you": "about-you";
562
+ decision: "decision";
563
+ instruction: "instruction";
564
+ }>;
565
+ text: z.ZodString;
566
+ why: z.ZodOptional<z.ZodString>;
567
+ source: z.ZodOptional<z.ZodString>;
568
+ revision: z.ZodOptional<z.ZodInt>;
569
+ replaces: z.ZodOptional<z.ZodInt>;
570
+ }, z.core.$strict>;
571
+ readonly get_person: z.ZodObject<{
572
+ id: z.ZodOptional<z.ZodString>;
573
+ name: z.ZodOptional<z.ZodString>;
574
+ }, z.core.$strict>;
575
+ readonly get_integrations: z.ZodObject<{}, z.core.$strict>;
576
+ readonly get_capabilities: z.ZodObject<{
577
+ repo: z.ZodOptional<z.ZodString>;
578
+ }, z.core.$strict>;
579
+ readonly ask_owner: z.ZodObject<{
580
+ question: z.ZodString;
581
+ options: z.ZodArray<z.ZodString>;
582
+ }, z.core.$strict>;
583
+ readonly search_project_memory: z.ZodObject<{
584
+ query: z.ZodString;
585
+ repo: z.ZodOptional<z.ZodString>;
586
+ }, z.core.$strict>;
587
+ readonly get_models: z.ZodObject<{}, z.core.$strict>;
588
+ readonly list_tasks: z.ZodObject<{
589
+ repo: z.ZodOptional<z.ZodString>;
590
+ state: z.ZodOptional<z.ZodEnum<{
591
+ cancelled: "cancelled";
592
+ done: "done";
593
+ failed: "failed";
594
+ queued: "queued";
595
+ running: "running";
596
+ }>>;
597
+ limit: z.ZodOptional<z.ZodInt>;
598
+ search: z.ZodOptional<z.ZodString>;
599
+ }, z.core.$strict>;
600
+ readonly get_task: z.ZodObject<{
601
+ task: z.ZodString;
602
+ }, z.core.$strict>;
603
+ readonly get_agents: z.ZodObject<{
604
+ task: z.ZodString;
605
+ }, z.core.$strict>;
606
+ readonly list_decisions: z.ZodObject<{}, z.core.$strict>;
607
+ readonly get_decision: z.ZodObject<{
608
+ decision: z.ZodInt;
609
+ }, z.core.$strict>;
610
+ readonly queue: z.ZodObject<{
611
+ repo: z.ZodString;
612
+ }, z.core.$strict>;
613
+ readonly propose_task: z.ZodObject<{
614
+ repo: z.ZodString;
615
+ title: z.ZodString;
616
+ goal: z.ZodString;
617
+ not: z.ZodOptional<z.ZodNullable<z.ZodString>>;
618
+ touches: z.ZodOptional<z.ZodArray<z.ZodString>>;
619
+ acceptance: z.ZodArray<z.ZodObject<{
620
+ id: z.ZodString;
621
+ statement: z.ZodString;
622
+ how: z.ZodOptional<z.ZodNullable<z.ZodString>>;
623
+ evidence: z.ZodArray<z.ZodEnum<{
624
+ "changed-path": "changed-path";
625
+ check: "check";
626
+ "manual-review": "manual-review";
627
+ screenshot: "screenshot";
628
+ }>>;
629
+ }, z.core.$strict>>;
630
+ planning: z.ZodOptional<z.ZodEnum<{
631
+ auto: "auto";
632
+ required: "required";
633
+ skip: "skip";
634
+ }>>;
635
+ report: z.ZodOptional<z.ZodBoolean>;
636
+ checks: z.ZodOptional<z.ZodString>;
637
+ }, z.core.$strict>;
638
+ readonly propose_next: z.ZodObject<{
639
+ task: z.ZodString;
640
+ }, z.core.$strict>;
641
+ readonly propose_reserve: z.ZodObject<{
642
+ task: z.ZodString;
643
+ worker: z.ZodNullable<z.ZodString>;
644
+ }, z.core.$strict>;
645
+ readonly propose_hold: z.ZodObject<{
646
+ task: z.ZodString;
647
+ reason: z.ZodString;
648
+ }, z.core.$strict>;
649
+ readonly propose_unhold: z.ZodObject<{
650
+ task: z.ZodString;
651
+ }, z.core.$strict>;
652
+ readonly propose_steer: z.ZodObject<{
653
+ task: z.ZodString;
654
+ note: z.ZodString;
655
+ }, z.core.$strict>;
656
+ readonly propose_dependency_repair: z.ZodObject<{
657
+ task: z.ZodString;
658
+ blocker: z.ZodString;
659
+ operation: z.ZodEnum<{
660
+ replace: "replace";
661
+ retry: "retry";
662
+ unlink: "unlink";
663
+ }>;
664
+ replacement: z.ZodOptional<z.ZodString>;
665
+ }, z.core.$strict>;
666
+ readonly propose_scope: z.ZodObject<{
667
+ task: z.ZodString;
668
+ goal: z.ZodString;
669
+ not: z.ZodOptional<z.ZodNullable<z.ZodString>>;
670
+ touches: z.ZodOptional<z.ZodArray<z.ZodString>>;
671
+ acceptance: z.ZodArray<z.ZodObject<{
672
+ id: z.ZodString;
673
+ statement: z.ZodString;
674
+ how: z.ZodOptional<z.ZodNullable<z.ZodString>>;
675
+ evidence: z.ZodArray<z.ZodEnum<{
676
+ "changed-path": "changed-path";
677
+ check: "check";
678
+ "manual-review": "manual-review";
679
+ screenshot: "screenshot";
680
+ }>>;
681
+ }, z.core.$strict>>;
682
+ }, z.core.$strict>;
683
+ readonly propose_agents: z.ZodObject<{
684
+ task: z.ZodString;
685
+ risk: z.ZodOptional<z.ZodEnum<{
686
+ elevated: "elevated";
687
+ high: "high";
688
+ routine: "routine";
689
+ }>>;
690
+ size: z.ZodOptional<z.ZodEnum<{
691
+ large: "large";
692
+ medium: "medium";
693
+ small: "small";
694
+ }>>;
695
+ risky: z.ZodOptional<z.ZodBoolean>;
696
+ role: z.ZodOptional<z.ZodEnum<{
697
+ builder: "builder";
698
+ planner: "planner";
699
+ repair: "repair";
700
+ }>>;
701
+ agent: z.ZodOptional<z.ZodObject<{
702
+ provider: z.ZodString;
703
+ model: z.ZodString;
704
+ }, z.core.$strict>>;
705
+ clear: z.ZodOptional<z.ZodBoolean>;
706
+ why: z.ZodOptional<z.ZodString>;
707
+ }, z.core.$strict>;
708
+ readonly propose_answer: z.ZodObject<{
709
+ decision: z.ZodInt;
710
+ option: z.ZodString;
711
+ rationale: z.ZodString;
712
+ }, z.core.$strict>;
713
+ readonly propose_cancel: z.ZodObject<{
714
+ task: z.ZodString;
715
+ reason: z.ZodString;
716
+ }, z.core.$strict>;
717
+ };
718
+ export type LeadToolName = keyof typeof LEAD_TOOL_INPUTS;
719
+ /**
720
+ * Read the same calls the 0.9.36 handlers accepted. Derive readers from the advertised contracts, leaving these
721
+ * optional values to their existing clamp/fallback code. Unknown top-level keys are stripped by the tool registry,
722
+ * except for flow proposals, whose strict contract predates item 5. The gateway also keeps its strict schemas.
723
+ */
724
+ export declare const LEAD_TOOL_READ_INPUTS: {
725
+ readonly get_brief: z.ZodObject<{
726
+ repo: z.ZodOptional<z.ZodString>;
727
+ }, z.core.$strict>;
728
+ readonly get_project_context: z.ZodObject<{
729
+ repo: z.ZodString;
730
+ query: z.ZodString;
731
+ mode: z.ZodOptional<z.ZodEnum<{
732
+ impact: "impact";
733
+ search: "search";
734
+ }>>;
735
+ }, z.core.$strict>;
736
+ readonly get_action_status: z.ZodObject<{
737
+ proposal: z.ZodInt;
738
+ }, z.core.$strict>;
739
+ readonly get_actions: z.ZodObject<{}, z.core.$strict>;
740
+ readonly propose_action: z.ZodObject<{
741
+ operation: z.ZodEnum<{
742
+ [x: string]: string;
743
+ }>;
744
+ repo: z.ZodOptional<z.ZodString>;
745
+ task: z.ZodOptional<z.ZodString>;
746
+ version: z.ZodOptional<z.ZodString>;
747
+ restore: z.ZodOptional<z.ZodInt>;
748
+ sample: z.ZodOptional<z.ZodString>;
749
+ content: z.ZodOptional<z.ZodString>;
750
+ instructions: z.ZodOptional<z.ZodString>;
751
+ title: z.ZodOptional<z.ZodString>;
752
+ id: z.ZodOptional<z.ZodString>;
753
+ run: z.ZodOptional<z.ZodInt>;
754
+ note: z.ZodOptional<z.ZodString>;
755
+ catalog: z.ZodOptional<z.ZodString>;
756
+ name: z.ZodOptional<z.ZodString>;
757
+ command: z.ZodOptional<z.ZodString>;
758
+ args: z.ZodOptional<z.ZodArray<z.ZodString>>;
759
+ url: z.ZodOptional<z.ZodString>;
760
+ secrets: z.ZodOptional<z.ZodArray<z.ZodString>>;
761
+ about: z.ZodOptional<z.ZodString>;
762
+ }, z.core.$strict>;
763
+ readonly propose_task_action: z.ZodObject<{
764
+ task: z.ZodString;
765
+ operation: z.ZodEnum<{
766
+ [x: string]: string;
767
+ }>;
768
+ dependency: z.ZodOptional<z.ZodString>;
769
+ run: z.ZodOptional<z.ZodInt>;
770
+ }, z.core.$strict>;
771
+ readonly get_controls: z.ZodObject<{}, z.core.$strict>;
772
+ readonly show_control: z.ZodObject<{
773
+ control: z.ZodEnum<{
774
+ [x: string]: string;
775
+ }>;
776
+ task: z.ZodOptional<z.ZodString>;
777
+ repo: z.ZodOptional<z.ZodString>;
778
+ run: z.ZodOptional<z.ZodInt>;
779
+ }, z.core.$strict>;
780
+ readonly get_result: z.ZodObject<{
781
+ task: z.ZodString;
782
+ run: z.ZodOptional<z.ZodInt>;
783
+ feedback_offset: z.ZodOptional<z.ZodInt>;
784
+ }, z.core.$strict>;
785
+ readonly get_diff: z.ZodObject<{
786
+ task: z.ZodString;
787
+ run: z.ZodOptional<z.ZodInt>;
788
+ file: z.ZodOptional<z.ZodString>;
789
+ offset: z.ZodOptional<z.ZodInt>;
790
+ }, z.core.$strict>;
791
+ readonly get_check_log: z.ZodObject<{
792
+ task: z.ZodString;
793
+ run: z.ZodOptional<z.ZodInt>;
794
+ search: z.ZodOptional<z.ZodString>;
795
+ offset: z.ZodOptional<z.ZodInt>;
796
+ }, z.core.$strict>;
797
+ readonly get_acceptance_evidence: z.ZodObject<{
798
+ task: z.ZodString;
799
+ run: z.ZodOptional<z.ZodInt>;
800
+ offset: z.ZodOptional<z.ZodInt>;
801
+ }, z.core.$strict>;
802
+ readonly get_result_images: z.ZodObject<{
803
+ task: z.ZodString;
804
+ run: z.ZodOptional<z.ZodInt>;
805
+ offset: z.ZodOptional<z.ZodInt>;
806
+ images: z.ZodOptional<z.ZodArray<z.ZodInt>>;
807
+ }, z.core.$strict>;
808
+ readonly propose_review: z.ZodObject<{
809
+ run: z.ZodInt;
810
+ operation: z.ZodEnum<{
811
+ note: "note";
812
+ revise: "revise";
813
+ }>;
814
+ note: z.ZodOptional<z.ZodNullable<z.ZodString>>;
815
+ path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
816
+ line: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
817
+ saved_notes: z.ZodOptional<z.ZodArray<z.ZodInt>>;
818
+ }, z.core.$strict>;
819
+ readonly recap: z.ZodObject<{
820
+ since: z.ZodOptional<z.ZodString>;
821
+ }, z.core.$strict>;
822
+ readonly list_repos: z.ZodObject<{}, z.core.$strict>;
823
+ readonly get_project_tools: z.ZodObject<{
824
+ repo: z.ZodString;
825
+ }, z.core.$strict>;
826
+ readonly get_flows: z.ZodObject<{
827
+ repo: z.ZodOptional<z.ZodString>;
828
+ flow: z.ZodOptional<z.ZodInt>;
829
+ card: z.ZodOptional<z.ZodInt>;
830
+ }, z.core.$strict>;
831
+ readonly propose_flow: z.ZodObject<{
832
+ operation: z.ZodEnum<{
833
+ add_card: "add_card";
834
+ add_trigger: "add_trigger";
835
+ approve: "approve";
836
+ assign: "assign";
837
+ cancel_card: "cancel_card";
838
+ choose: "choose";
839
+ comment: "comment";
840
+ create: "create";
841
+ edit: "edit";
842
+ follow: "follow";
843
+ kit: "kit";
844
+ move_card: "move_card";
845
+ pause_trigger: "pause_trigger";
846
+ remove_trigger: "remove_trigger";
847
+ resume_trigger: "resume_trigger";
848
+ save_script: "save_script";
849
+ send_back: "send_back";
850
+ starter: "starter";
851
+ unfollow: "unfollow";
852
+ }>;
853
+ repo: z.ZodOptional<z.ZodString>;
854
+ flow: z.ZodOptional<z.ZodInt>;
855
+ card: z.ZodOptional<z.ZodInt>;
856
+ kit: z.ZodOptional<z.ZodEnum<{
857
+ [x: string]: string;
858
+ }>>;
859
+ starter: z.ZodOptional<z.ZodEnum<{
860
+ "ci-fix": "ci-fix";
861
+ "issue-task": "issue-task";
862
+ overnight: "overnight";
863
+ "plane-review": "plane-review";
864
+ }>>;
865
+ name: z.ZodOptional<z.ZodString>;
866
+ template: z.ZodOptional<z.ZodEnum<{
867
+ [x: string]: string;
868
+ }>>;
869
+ steps: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<readonly [z.ZodObject<{
870
+ id: z.ZodOptional<z.ZodString>;
871
+ title: z.ZodString;
872
+ kind: z.ZodLiteral<"inbox">;
873
+ ifFails: z.ZodOptional<z.ZodString>;
874
+ next: z.ZodOptional<z.ZodString>;
875
+ remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
876
+ thenMoveTo: z.ZodOptional<z.ZodString>;
877
+ }, z.core.$strict>, z.ZodObject<{
878
+ id: z.ZodOptional<z.ZodString>;
879
+ title: z.ZodString;
880
+ kind: z.ZodLiteral<"task">;
881
+ ifFails: z.ZodOptional<z.ZodString>;
882
+ instructions: z.ZodOptional<z.ZodString>;
883
+ next: z.ZodOptional<z.ZodString>;
884
+ planning: z.ZodOptional<z.ZodEnum<{
885
+ auto: "auto";
886
+ required: "required";
887
+ skip: "skip";
888
+ }>>;
889
+ remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
890
+ repo: z.ZodOptional<z.ZodString>;
891
+ }, z.core.$strict>, z.ZodObject<{
892
+ id: z.ZodOptional<z.ZodString>;
893
+ title: z.ZodString;
894
+ kind: z.ZodLiteral<"report">;
895
+ ifFails: z.ZodOptional<z.ZodString>;
896
+ instructions: z.ZodOptional<z.ZodString>;
897
+ next: z.ZodOptional<z.ZodString>;
898
+ remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
899
+ }, z.core.$strict>, z.ZodObject<{
900
+ id: z.ZodOptional<z.ZodString>;
901
+ title: z.ZodString;
902
+ kind: z.ZodLiteral<"approval">;
903
+ decider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
904
+ ifFails: z.ZodOptional<z.ZodString>;
905
+ next: z.ZodOptional<z.ZodString>;
906
+ remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
907
+ teammate: z.ZodOptional<z.ZodString>;
908
+ thenMoveTo: z.ZodOptional<z.ZodString>;
909
+ }, z.core.$strict>, z.ZodObject<{
910
+ id: z.ZodOptional<z.ZodString>;
911
+ title: z.ZodString;
912
+ kind: z.ZodLiteral<"check">;
913
+ ifFails: z.ZodOptional<z.ZodString>;
914
+ next: z.ZodOptional<z.ZodString>;
915
+ remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
916
+ routes: z.ZodOptional<z.ZodArray<z.ZodObject<{
917
+ answer: z.ZodString;
918
+ goesTo: z.ZodString;
919
+ }, z.core.$strict>>>;
920
+ runIn: z.ZodOptional<z.ZodEnum<{
921
+ copy: "copy";
922
+ folder: "folder";
923
+ }>>;
924
+ script: z.ZodOptional<z.ZodString>;
925
+ secrets: z.ZodOptional<z.ZodArray<z.ZodString>>;
926
+ }, z.core.$strict>, z.ZodObject<{
927
+ id: z.ZodOptional<z.ZodString>;
928
+ title: z.ZodString;
929
+ kind: z.ZodLiteral<"pull-request">;
930
+ ifFails: z.ZodOptional<z.ZodString>;
931
+ merge: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
932
+ merge: "merge";
933
+ rebase: "rebase";
934
+ squash: "squash";
935
+ }>]>>;
936
+ next: z.ZodOptional<z.ZodString>;
937
+ remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
938
+ }, z.core.$strict>, z.ZodObject<{
939
+ id: z.ZodOptional<z.ZodString>;
940
+ title: z.ZodString;
941
+ kind: z.ZodLiteral<"update">;
942
+ close: z.ZodOptional<z.ZodBoolean>;
943
+ ifFails: z.ZodOptional<z.ZodString>;
944
+ message: z.ZodOptional<z.ZodString>;
945
+ next: z.ZodOptional<z.ZodString>;
946
+ remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
947
+ }, z.core.$strict>, z.ZodObject<{
948
+ id: z.ZodOptional<z.ZodString>;
949
+ title: z.ZodString;
950
+ kind: z.ZodLiteral<"notify">;
951
+ ifFails: z.ZodOptional<z.ZodString>;
952
+ message: z.ZodOptional<z.ZodString>;
953
+ next: z.ZodOptional<z.ZodString>;
954
+ remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
955
+ }, z.core.$strict>, z.ZodObject<{
956
+ id: z.ZodOptional<z.ZodString>;
957
+ title: z.ZodString;
958
+ kind: z.ZodLiteral<"sort">;
959
+ alsoNote: z.ZodOptional<z.ZodArray<z.ZodObject<{
960
+ id: z.ZodOptional<z.ZodString>;
961
+ question: z.ZodString;
962
+ kind: z.ZodOptional<z.ZodEnum<{
963
+ score: "score";
964
+ "yes-no": "yes-no";
965
+ }>>;
966
+ levels: z.ZodOptional<z.ZodArray<z.ZodString>>;
967
+ }, z.core.$strict>>>;
968
+ answers: z.ZodOptional<z.ZodArray<z.ZodObject<{
969
+ answer: z.ZodString;
970
+ means: z.ZodOptional<z.ZodString>;
971
+ goesTo: z.ZodString;
972
+ }, z.core.$strict>>>;
973
+ ifNotSure: z.ZodOptional<z.ZodString>;
974
+ question: z.ZodOptional<z.ZodString>;
975
+ remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
976
+ sureAt: z.ZodOptional<z.ZodNumber>;
977
+ }, z.core.$strict>, z.ZodObject<{
978
+ id: z.ZodOptional<z.ZodString>;
979
+ title: z.ZodString;
980
+ kind: z.ZodLiteral<"draft">;
981
+ ifFails: z.ZodOptional<z.ZodString>;
982
+ instructions: z.ZodOptional<z.ZodString>;
983
+ next: z.ZodOptional<z.ZodString>;
984
+ remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
985
+ }, z.core.$strict>, z.ZodObject<{
986
+ id: z.ZodOptional<z.ZodString>;
987
+ title: z.ZodString;
988
+ kind: z.ZodLiteral<"request">;
989
+ body: z.ZodOptional<z.ZodString>;
990
+ headers: z.ZodOptional<z.ZodObject<{}, z.core.$catchall<z.ZodString>>>;
991
+ ifFails: z.ZodOptional<z.ZodString>;
992
+ method: z.ZodOptional<z.ZodEnum<{
993
+ DELETE: "DELETE";
994
+ GET: "GET";
995
+ PATCH: "PATCH";
996
+ POST: "POST";
997
+ PUT: "PUT";
998
+ }>>;
999
+ next: z.ZodOptional<z.ZodString>;
1000
+ remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
1001
+ url: z.ZodOptional<z.ZodString>;
1002
+ }, z.core.$strict>, z.ZodObject<{
1003
+ id: z.ZodOptional<z.ZodString>;
1004
+ title: z.ZodString;
1005
+ kind: z.ZodLiteral<"email">;
1006
+ body: z.ZodOptional<z.ZodString>;
1007
+ ifFails: z.ZodOptional<z.ZodString>;
1008
+ next: z.ZodOptional<z.ZodString>;
1009
+ remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
1010
+ subject: z.ZodOptional<z.ZodString>;
1011
+ to: z.ZodOptional<z.ZodString>;
1012
+ }, z.core.$strict>, z.ZodObject<{
1013
+ id: z.ZodOptional<z.ZodString>;
1014
+ title: z.ZodString;
1015
+ kind: z.ZodLiteral<"tool">;
1016
+ args: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>, z.ZodString]>>;
1017
+ ifFails: z.ZodOptional<z.ZodString>;
1018
+ next: z.ZodOptional<z.ZodString>;
1019
+ remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
1020
+ server: z.ZodOptional<z.ZodString>;
1021
+ tool: z.ZodOptional<z.ZodString>;
1022
+ }, z.core.$strict>, z.ZodObject<{
1023
+ id: z.ZodOptional<z.ZodString>;
1024
+ title: z.ZodString;
1025
+ kind: z.ZodLiteral<"wait">;
1026
+ from: z.ZodOptional<z.ZodString>;
1027
+ ifNoReply: z.ZodOptional<z.ZodString>;
1028
+ next: z.ZodOptional<z.ZodString>;
1029
+ timeZone: z.ZodOptional<z.ZodString>;
1030
+ until: z.ZodOptional<z.ZodString>;
1031
+ wait: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
1032
+ waitFor: z.ZodOptional<z.ZodEnum<{
1033
+ hours: "hours";
1034
+ reply: "reply";
1035
+ time: "time";
1036
+ }>>;
1037
+ }, z.core.$strict>, z.ZodObject<{
1038
+ id: z.ZodOptional<z.ZodString>;
1039
+ title: z.ZodString;
1040
+ kind: z.ZodLiteral<"teammate">;
1041
+ ifFails: z.ZodOptional<z.ZodString>;
1042
+ instructions: z.ZodOptional<z.ZodString>;
1043
+ next: z.ZodOptional<z.ZodString>;
1044
+ remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
1045
+ reply: z.ZodOptional<z.ZodBoolean>;
1046
+ routes: z.ZodOptional<z.ZodArray<z.ZodObject<{
1047
+ answer: z.ZodString;
1048
+ goesTo: z.ZodString;
1049
+ }, z.core.$strict>>>;
1050
+ teammate: z.ZodOptional<z.ZodString>;
1051
+ }, z.core.$strict>, z.ZodObject<{
1052
+ id: z.ZodOptional<z.ZodString>;
1053
+ title: z.ZodString;
1054
+ kind: z.ZodLiteral<"send">;
1055
+ ifFails: z.ZodOptional<z.ZodString>;
1056
+ next: z.ZodOptional<z.ZodString>;
1057
+ remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
1058
+ }, z.core.$strict>, z.ZodObject<{
1059
+ id: z.ZodOptional<z.ZodString>;
1060
+ title: z.ZodString;
1061
+ kind: z.ZodLiteral<"choose">;
1062
+ ifNoReply: z.ZodOptional<z.ZodString>;
1063
+ ifReplied: z.ZodOptional<z.ZodString>;
1064
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
1065
+ label: z.ZodString;
1066
+ goesTo: z.ZodOptional<z.ZodString>;
1067
+ }, z.core.$strict>>>;
1068
+ remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
1069
+ thenMoveTo: z.ZodOptional<z.ZodString>;
1070
+ }, z.core.$strict>, z.ZodObject<{
1071
+ id: z.ZodOptional<z.ZodString>;
1072
+ title: z.ZodString;
1073
+ kind: z.ZodLiteral<"done">;
1074
+ }, z.core.$strict>], "kind">>>;
1075
+ title: z.ZodOptional<z.ZodString>;
1076
+ description: z.ZodOptional<z.ZodString>;
1077
+ zone: z.ZodOptional<z.ZodString>;
1078
+ note: z.ZodOptional<z.ZodString>;
1079
+ choice: z.ZodOptional<z.ZodInt>;
1080
+ trigger: z.ZodOptional<z.ZodInt>;
1081
+ owner: z.ZodOptional<z.ZodString>;
1082
+ script: z.ZodOptional<z.ZodObject<{
1083
+ name: z.ZodOptional<z.ZodString>;
1084
+ about: z.ZodOptional<z.ZodString>;
1085
+ body: z.ZodOptional<z.ZodString>;
1086
+ timeoutMinutes: z.ZodOptional<z.ZodInt>;
1087
+ language: z.ZodOptional<z.ZodEnum<{
1088
+ node: "node";
1089
+ python: "python";
1090
+ shell: "shell";
1091
+ }>>;
1092
+ file: z.ZodOptional<z.ZodString>;
1093
+ }, z.core.$strict>>;
1094
+ settings: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1095
+ zone: z.ZodOptional<z.ZodString>;
1096
+ kind: z.ZodLiteral<"button">;
1097
+ label: z.ZodString;
1098
+ questions: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodString]>>;
1099
+ }, z.core.$strict>, z.ZodObject<{
1100
+ zone: z.ZodOptional<z.ZodString>;
1101
+ kind: z.ZodLiteral<"schedule">;
1102
+ schedule: z.ZodString;
1103
+ title: z.ZodOptional<z.ZodString>;
1104
+ description: z.ZodOptional<z.ZodString>;
1105
+ script: z.ZodOptional<z.ZodString>;
1106
+ secrets: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodString]>>;
1107
+ }, z.core.$strict>, z.ZodObject<{
1108
+ zone: z.ZodOptional<z.ZodString>;
1109
+ kind: z.ZodLiteral<"github">;
1110
+ repo: z.ZodOptional<z.ZodString>;
1111
+ watch: z.ZodOptional<z.ZodEnum<{
1112
+ checks: "checks";
1113
+ issues: "issues";
1114
+ pulls: "pulls";
1115
+ }>>;
1116
+ label: z.ZodOptional<z.ZodString>;
1117
+ branch: z.ZodOptional<z.ZodString>;
1118
+ from: z.ZodOptional<z.ZodEnum<{
1119
+ anyone: "anyone";
1120
+ team: "team";
1121
+ }>>;
1122
+ }, z.core.$strict>, z.ZodObject<{
1123
+ zone: z.ZodOptional<z.ZodString>;
1124
+ kind: z.ZodLiteral<"linear">;
1125
+ team: z.ZodOptional<z.ZodString>;
1126
+ state: z.ZodOptional<z.ZodString>;
1127
+ label: z.ZodOptional<z.ZodString>;
1128
+ }, z.core.$strict>, z.ZodObject<{
1129
+ zone: z.ZodOptional<z.ZodString>;
1130
+ kind: z.ZodLiteral<"flow">;
1131
+ when: z.ZodOptional<z.ZodString>;
1132
+ follow: z.ZodInt;
1133
+ }, z.core.$strict>, z.ZodObject<{
1134
+ zone: z.ZodOptional<z.ZodString>;
1135
+ kind: z.ZodLiteral<"email">;
1136
+ folder: z.ZodOptional<z.ZodString>;
1137
+ sender: z.ZodOptional<z.ZodString>;
1138
+ subject: z.ZodOptional<z.ZodString>;
1139
+ }, z.core.$strict>, z.ZodObject<{
1140
+ zone: z.ZodOptional<z.ZodString>;
1141
+ kind: z.ZodLiteral<"plane-review">;
1142
+ at: z.ZodOptional<z.ZodString>;
1143
+ timeZone: z.ZodOptional<z.ZodString>;
1144
+ }, z.core.$strict>], "kind">>;
1145
+ }, z.core.$strict>;
1146
+ readonly get_teammates: z.ZodObject<{
1147
+ repo: z.ZodOptional<z.ZodString>;
1148
+ teammate: z.ZodOptional<z.ZodInt>;
1149
+ }, z.core.$strict>;
1150
+ readonly propose_teammate: z.ZodObject<{
1151
+ operation: z.ZodEnum<{
1152
+ add_routine: "add_routine";
1153
+ answer: "answer";
1154
+ create: "create";
1155
+ edit_memory: "edit_memory";
1156
+ edit_section: "edit_section";
1157
+ edit_soul: "edit_soul";
1158
+ forget: "forget";
1159
+ note: "note";
1160
+ pause: "pause";
1161
+ remove: "remove";
1162
+ resume: "resume";
1163
+ stop_routine: "stop_routine";
1164
+ stop_tool: "stop_tool";
1165
+ tool_rule: "tool_rule";
1166
+ undo: "undo";
1167
+ use_tool: "use_tool";
1168
+ }>;
1169
+ section: z.ZodOptional<z.ZodString>;
1170
+ schedule: z.ZodOptional<z.ZodString>;
1171
+ routine: z.ZodOptional<z.ZodInt>;
1172
+ memory: z.ZodOptional<z.ZodInt>;
1173
+ tool: z.ZodOptional<z.ZodString>;
1174
+ action: z.ZodOptional<z.ZodString>;
1175
+ undoWith: z.ZodOptional<z.ZodString>;
1176
+ call: z.ZodOptional<z.ZodInt>;
1177
+ use: z.ZodOptional<z.ZodEnum<{
1178
+ ask: "ask";
1179
+ free: "free";
1180
+ never: "never";
1181
+ }>>;
1182
+ limitField: z.ZodOptional<z.ZodString>;
1183
+ limitOver: z.ZodOptional<z.ZodNumber>;
1184
+ repo: z.ZodOptional<z.ZodString>;
1185
+ teammate: z.ZodOptional<z.ZodInt>;
1186
+ template: z.ZodOptional<z.ZodEnum<{
1187
+ [x: string]: string;
1188
+ }>>;
1189
+ name: z.ZodOptional<z.ZodString>;
1190
+ soul: z.ZodOptional<z.ZodString>;
1191
+ note: z.ZodOptional<z.ZodString>;
1192
+ question: z.ZodOptional<z.ZodInt>;
1193
+ choice: z.ZodOptional<z.ZodString>;
1194
+ text: z.ZodOptional<z.ZodString>;
1195
+ }, z.core.$strict>;
1196
+ readonly get_skills: z.ZodObject<{
1197
+ repo: z.ZodString;
1198
+ version: z.ZodOptional<z.ZodString>;
1199
+ offset: z.ZodOptional<z.ZodInt>;
1200
+ }, z.core.$strict>;
1201
+ readonly get_project_knowledge: z.ZodObject<{
1202
+ repo: z.ZodString;
1203
+ reference: z.ZodOptional<z.ZodString>;
1204
+ decision: z.ZodOptional<z.ZodInt>;
1205
+ }, z.core.$strict>;
1206
+ readonly commit_to: z.ZodObject<{
1207
+ what: z.ZodString;
1208
+ when: z.ZodEnum<{
1209
+ check: "check";
1210
+ run: "run";
1211
+ task: "task";
1212
+ time: "time";
1213
+ }>;
1214
+ task: z.ZodOptional<z.ZodString>;
1215
+ run: z.ZodOptional<z.ZodInt>;
1216
+ states: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1217
+ [x: string]: string;
1218
+ }>>>;
1219
+ outcome: z.ZodOptional<z.ZodEnum<{
1220
+ built: "built";
1221
+ failed: "failed";
1222
+ finished: "finished";
1223
+ }>>;
1224
+ result: z.ZodOptional<z.ZodEnum<{
1225
+ either: "either";
1226
+ failed: "failed";
1227
+ passed: "passed";
1228
+ }>>;
1229
+ at: z.ZodOptional<z.ZodString>;
1230
+ checkAfter: z.ZodOptional<z.ZodString>;
1231
+ }, z.core.$strict>;
1232
+ readonly release_commitment: z.ZodObject<{
1233
+ commitment: z.ZodInt;
1234
+ reason: z.ZodString;
1235
+ }, z.core.$strict>;
1236
+ readonly remember: z.ZodObject<{
1237
+ repo: z.ZodOptional<z.ZodString>;
1238
+ kind: z.ZodEnum<{
1239
+ "about-you": "about-you";
1240
+ decision: "decision";
1241
+ instruction: "instruction";
1242
+ }>;
1243
+ text: z.ZodString;
1244
+ why: z.ZodOptional<z.ZodString>;
1245
+ source: z.ZodOptional<z.ZodString>;
1246
+ revision: z.ZodOptional<z.ZodInt>;
1247
+ replaces: z.ZodOptional<z.ZodInt>;
1248
+ }, z.core.$strict>;
1249
+ readonly get_integrations: z.ZodObject<{}, z.core.$strict>;
1250
+ readonly get_capabilities: z.ZodObject<{
1251
+ repo: z.ZodOptional<z.ZodString>;
1252
+ }, z.core.$strict>;
1253
+ readonly ask_owner: z.ZodObject<{
1254
+ question: z.ZodString;
1255
+ options: z.ZodArray<z.ZodString>;
1256
+ }, z.core.$strict>;
1257
+ readonly search_project_memory: z.ZodObject<{
1258
+ query: z.ZodString;
1259
+ repo: z.ZodOptional<z.ZodString>;
1260
+ }, z.core.$strict>;
1261
+ readonly get_models: z.ZodObject<{}, z.core.$strict>;
1262
+ readonly get_task: z.ZodObject<{
1263
+ task: z.ZodString;
1264
+ }, z.core.$strict>;
1265
+ readonly get_agents: z.ZodObject<{
1266
+ task: z.ZodString;
1267
+ }, z.core.$strict>;
1268
+ readonly list_decisions: z.ZodObject<{}, z.core.$strict>;
1269
+ readonly get_decision: z.ZodObject<{
1270
+ decision: z.ZodInt;
1271
+ }, z.core.$strict>;
1272
+ readonly queue: z.ZodObject<{
1273
+ repo: z.ZodString;
1274
+ }, z.core.$strict>;
1275
+ readonly propose_task: z.ZodObject<{
1276
+ repo: z.ZodString;
1277
+ title: z.ZodString;
1278
+ goal: z.ZodString;
1279
+ not: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1280
+ touches: z.ZodOptional<z.ZodArray<z.ZodString>>;
1281
+ acceptance: z.ZodArray<z.ZodObject<{
1282
+ id: z.ZodString;
1283
+ statement: z.ZodString;
1284
+ how: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1285
+ evidence: z.ZodArray<z.ZodEnum<{
1286
+ "changed-path": "changed-path";
1287
+ check: "check";
1288
+ "manual-review": "manual-review";
1289
+ screenshot: "screenshot";
1290
+ }>>;
1291
+ }, z.core.$strict>>;
1292
+ planning: z.ZodOptional<z.ZodEnum<{
1293
+ auto: "auto";
1294
+ required: "required";
1295
+ skip: "skip";
1296
+ }>>;
1297
+ report: z.ZodOptional<z.ZodBoolean>;
1298
+ checks: z.ZodOptional<z.ZodString>;
1299
+ }, z.core.$strict>;
1300
+ readonly propose_next: z.ZodObject<{
1301
+ task: z.ZodString;
1302
+ }, z.core.$strict>;
1303
+ readonly propose_reserve: z.ZodObject<{
1304
+ task: z.ZodString;
1305
+ worker: z.ZodNullable<z.ZodString>;
1306
+ }, z.core.$strict>;
1307
+ readonly propose_hold: z.ZodObject<{
1308
+ task: z.ZodString;
1309
+ reason: z.ZodString;
1310
+ }, z.core.$strict>;
1311
+ readonly propose_unhold: z.ZodObject<{
1312
+ task: z.ZodString;
1313
+ }, z.core.$strict>;
1314
+ readonly propose_steer: z.ZodObject<{
1315
+ task: z.ZodString;
1316
+ note: z.ZodString;
1317
+ }, z.core.$strict>;
1318
+ readonly propose_dependency_repair: z.ZodObject<{
1319
+ task: z.ZodString;
1320
+ blocker: z.ZodString;
1321
+ operation: z.ZodEnum<{
1322
+ replace: "replace";
1323
+ retry: "retry";
1324
+ unlink: "unlink";
1325
+ }>;
1326
+ replacement: z.ZodOptional<z.ZodString>;
1327
+ }, z.core.$strict>;
1328
+ readonly propose_scope: z.ZodObject<{
1329
+ task: z.ZodString;
1330
+ goal: z.ZodString;
1331
+ not: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1332
+ touches: z.ZodOptional<z.ZodArray<z.ZodString>>;
1333
+ acceptance: z.ZodArray<z.ZodObject<{
1334
+ id: z.ZodString;
1335
+ statement: z.ZodString;
1336
+ how: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1337
+ evidence: z.ZodArray<z.ZodEnum<{
1338
+ "changed-path": "changed-path";
1339
+ check: "check";
1340
+ "manual-review": "manual-review";
1341
+ screenshot: "screenshot";
1342
+ }>>;
1343
+ }, z.core.$strict>>;
1344
+ }, z.core.$strict>;
1345
+ readonly propose_answer: z.ZodObject<{
1346
+ decision: z.ZodInt;
1347
+ option: z.ZodString;
1348
+ rationale: z.ZodString;
1349
+ }, z.core.$strict>;
1350
+ readonly propose_cancel: z.ZodObject<{
1351
+ task: z.ZodString;
1352
+ reason: z.ZodString;
1353
+ }, z.core.$strict>;
1354
+ readonly list_tasks: z.ZodObject<{
1355
+ repo: z.ZodOptional<z.ZodString>;
1356
+ state: z.ZodOptional<z.ZodEnum<{
1357
+ cancelled: "cancelled";
1358
+ done: "done";
1359
+ failed: "failed";
1360
+ queued: "queued";
1361
+ running: "running";
1362
+ }>>;
1363
+ search: z.ZodOptional<z.ZodString>;
1364
+ limit: z.ZodOptional<z.ZodUnknown>;
1365
+ }, z.core.$strict>;
1366
+ readonly get_task_conversation: z.ZodObject<{
1367
+ task: z.ZodString;
1368
+ limit: z.ZodOptional<z.ZodUnknown>;
1369
+ }, z.core.$strict>;
1370
+ readonly get_flow_insights: z.ZodObject<{
1371
+ flow: z.ZodOptional<z.ZodInt>;
1372
+ card: z.ZodOptional<z.ZodInt>;
1373
+ entry: z.ZodOptional<z.ZodInt>;
1374
+ repo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1375
+ days: z.ZodOptional<z.ZodUnknown>;
1376
+ }, z.core.$strict>;
1377
+ readonly get_person: z.ZodObject<{
1378
+ id: z.ZodOptional<z.ZodUnknown>;
1379
+ name: z.ZodOptional<z.ZodUnknown>;
1380
+ }, z.core.$strict>;
1381
+ readonly propose_agents: z.ZodObject<{
1382
+ task: z.ZodString;
1383
+ risk: z.ZodOptional<z.ZodEnum<{
1384
+ elevated: "elevated";
1385
+ high: "high";
1386
+ routine: "routine";
1387
+ }>>;
1388
+ size: z.ZodOptional<z.ZodEnum<{
1389
+ large: "large";
1390
+ medium: "medium";
1391
+ small: "small";
1392
+ }>>;
1393
+ risky: z.ZodOptional<z.ZodBoolean>;
1394
+ role: z.ZodOptional<z.ZodEnum<{
1395
+ builder: "builder";
1396
+ planner: "planner";
1397
+ repair: "repair";
1398
+ }>>;
1399
+ clear: z.ZodOptional<z.ZodBoolean>;
1400
+ why: z.ZodOptional<z.ZodString>;
1401
+ agent: z.ZodOptional<z.ZodObject<{
1402
+ provider: z.ZodString;
1403
+ model: z.ZodString;
1404
+ }, z.core.$strip>>;
1405
+ }, z.core.$strict>;
1406
+ };
1407
+ export type LeadToolInput<N extends LeadToolName> = z.infer<(typeof LEAD_TOOL_READ_INPUTS)[N]>;
1408
+ /** How a tool's call names a key it doesn't know: propose_flow suggests the flow vocabulary's own words. */
1409
+ export declare const LEAD_TOOL_OPTIONS: Partial<Record<LeadToolName, ContractOptions>>;
1410
+ /** A repository-context read (repository-context.ts `RepositoryContext`). */
1411
+ export declare const repositoryContextOutput: z.ZodObject<{
1412
+ version: z.ZodLiteral<1>;
1413
+ readOnly: z.ZodBoolean;
1414
+ query: z.ZodString;
1415
+ mode: z.ZodEnum<{
1416
+ impact: "impact";
1417
+ search: "search";
1418
+ }>;
1419
+ asOf: z.ZodString;
1420
+ excerpts: z.ZodArray<z.ZodUnknown>;
1421
+ }, z.core.$loose>;
1422
+ /** The local catch-up (assignment-brief.ts `AssignmentCatchUp`). */
1423
+ export declare const catchUpOutput: z.ZodObject<{
1424
+ version: z.ZodLiteral<1>;
1425
+ asOf: z.ZodString;
1426
+ readOnly: z.ZodLiteral<true>;
1427
+ assignments: z.ZodArray<z.ZodUnknown>;
1428
+ projects: z.ZodArray<z.ZodUnknown>;
1429
+ omissions: z.ZodObject<{}, z.core.$loose>;
1430
+ }, z.core.$loose>;
1431
+ /** How things stand per repository (mate-tools.ts `recapOver`), its repos labelled. */
1432
+ export declare const recapOutput: z.ZodObject<{
1433
+ since: z.ZodNullable<z.ZodString>;
1434
+ repos: z.ZodArray<z.ZodUnknown>;
1435
+ waitsOnYou: z.ZodObject<{
1436
+ decisions: z.ZodArray<z.ZodUnknown>;
1437
+ incidents: z.ZodNumber;
1438
+ scopesAwaitingApproval: z.ZodArray<z.ZodUnknown>;
1439
+ }, z.core.$loose>;
1440
+ running: z.ZodArray<z.ZodUnknown>;
1441
+ truncated: z.ZodBoolean;
1442
+ }, z.core.$loose>;
1443
+ /** Open decisions (`decisionsOver`). */
1444
+ export declare const decisionsOutput: z.ZodObject<{
1445
+ decisions: z.ZodArray<z.ZodObject<{
1446
+ decision: z.ZodNumber;
1447
+ task: z.ZodString;
1448
+ question: z.ZodString;
1449
+ options: z.ZodArray<z.ZodUnknown>;
1450
+ ageHours: z.ZodNumber;
1451
+ }, z.core.$loose>>;
1452
+ truncated: z.ZodBoolean;
1453
+ }, z.core.$loose>;
1454
+ /** One decision in full (`decisionOver`), without the builder's recommendation. */
1455
+ export declare const decisionOutput: z.ZodObject<{
1456
+ repo: z.ZodString;
1457
+ decision: z.ZodNumber;
1458
+ task: z.ZodString;
1459
+ state: z.ZodString;
1460
+ question: z.ZodString;
1461
+ options: z.ZodArray<z.ZodObject<{
1462
+ id: z.ZodString;
1463
+ label: z.ZodString;
1464
+ reversible: z.ZodBoolean;
1465
+ consequence: z.ZodString;
1466
+ }, z.core.$loose>>;
1467
+ ageHours: z.ZodNumber;
1468
+ }, z.core.$loose>;
1469
+ /** One repository's queue by column (`queueOver`). */
1470
+ export declare const queueColumnsOutput: {
1471
+ columns: z.ZodArray<z.ZodObject<{
1472
+ column: z.ZodString;
1473
+ tasks: z.ZodArray<z.ZodUnknown>;
1474
+ }, z.core.$loose>>;
1475
+ };
1476
+ export declare const LEAD_TOOL_OUTPUTS: {
1477
+ readonly get_brief: z.ZodObject<{
1478
+ version: z.ZodLiteral<1>;
1479
+ asOf: z.ZodString;
1480
+ readOnly: z.ZodLiteral<true>;
1481
+ assignments: z.ZodArray<z.ZodUnknown>;
1482
+ projects: z.ZodArray<z.ZodUnknown>;
1483
+ omissions: z.ZodObject<{}, z.core.$loose>;
1484
+ }, z.core.$loose>;
1485
+ readonly get_project_context: z.ZodObject<{
1486
+ version: z.ZodLiteral<1>;
1487
+ readOnly: z.ZodBoolean;
1488
+ query: z.ZodString;
1489
+ mode: z.ZodEnum<{
1490
+ impact: "impact";
1491
+ search: "search";
1492
+ }>;
1493
+ asOf: z.ZodString;
1494
+ excerpts: z.ZodArray<z.ZodUnknown>;
1495
+ }, z.core.$loose>;
1496
+ readonly get_action_status: z.ZodObject<{
1497
+ proposal: z.ZodNumber;
1498
+ operation: z.ZodString;
1499
+ state: z.ZodString;
1500
+ outcome: z.ZodUnknown;
1501
+ finishedAt: z.ZodNullable<z.ZodString>;
1502
+ }, z.core.$loose>;
1503
+ readonly get_actions: z.ZodObject<{
1504
+ actions: z.ZodArray<z.ZodObject<{
1505
+ operation: z.ZodString;
1506
+ label: z.ZodString;
1507
+ secureReview: z.ZodBoolean;
1508
+ inputs: z.ZodArray<z.ZodString>;
1509
+ }, z.core.$loose>>;
1510
+ notice: z.ZodString;
1511
+ }, z.core.$loose>;
1512
+ readonly propose_action: z.ZodObject<{
1513
+ proposal: z.ZodNumber;
1514
+ label: z.ZodString;
1515
+ awaiting: z.ZodString;
1516
+ executed: z.ZodLiteral<false>;
1517
+ }, z.core.$loose>;
1518
+ readonly propose_task_action: z.ZodObject<{
1519
+ proposal: z.ZodNumber;
1520
+ action: z.ZodString;
1521
+ awaiting: z.ZodString;
1522
+ }, z.core.$loose>;
1523
+ readonly get_controls: z.ZodObject<{
1524
+ confirmedInChat: z.ZodArray<z.ZodString>;
1525
+ existingControls: z.ZodArray<z.ZodObject<{
1526
+ id: z.ZodString;
1527
+ label: z.ZodString;
1528
+ needsTask: z.ZodBoolean;
1529
+ needsProject: z.ZodBoolean;
1530
+ }, z.core.$loose>>;
1531
+ rule: z.ZodString;
1532
+ }, z.core.$loose>;
1533
+ readonly show_control: z.ZodObject<{
1534
+ card: z.ZodNumber;
1535
+ label: z.ZodString;
1536
+ action: z.ZodString;
1537
+ }, z.core.$loose>;
1538
+ readonly get_result: z.ZodObject<{
1539
+ task: z.ZodString;
1540
+ root: z.ZodString;
1541
+ currentExecution: z.ZodString;
1542
+ run: z.ZodNumber;
1543
+ title: z.ZodString;
1544
+ feedback: z.ZodArray<z.ZodUnknown>;
1545
+ feedbackTotal: z.ZodNumber;
1546
+ nextFeedbackOffset: z.ZodNullable<z.ZodNumber>;
1547
+ changes: z.ZodString;
1548
+ changesShortened: z.ZodBoolean;
1549
+ verification: z.ZodString;
1550
+ accepted: z.ZodBoolean;
1551
+ evidenceTool: z.ZodString;
1552
+ canRevise: z.ZodBoolean;
1553
+ }, z.core.$loose>;
1554
+ readonly get_diff: z.ZodObject<{
1555
+ task: z.ZodString;
1556
+ run: z.ZodNumber;
1557
+ files: z.ZodOptional<z.ZodArray<z.ZodObject<{
1558
+ path: z.ZodString;
1559
+ added: z.ZodNumber;
1560
+ removed: z.ZodNumber;
1561
+ }, z.core.$loose>>>;
1562
+ file: z.ZodOptional<z.ZodString>;
1563
+ diff: z.ZodOptional<z.ZodString>;
1564
+ nextOffset: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1565
+ notice: z.ZodNullable<z.ZodString>;
1566
+ }, z.core.$loose>;
1567
+ readonly get_check_log: z.ZodObject<{
1568
+ task: z.ZodString;
1569
+ run: z.ZodNumber;
1570
+ log: z.ZodString;
1571
+ notice: z.ZodNullable<z.ZodString>;
1572
+ }, z.core.$loose>;
1573
+ readonly get_acceptance_evidence: z.ZodObject<{
1574
+ task: z.ZodString;
1575
+ run: z.ZodNumber;
1576
+ }, z.core.$loose>;
1577
+ readonly get_result_images: z.ZodObject<{
1578
+ task: z.ZodString;
1579
+ run: z.ZodNumber;
1580
+ imageCount: z.ZodNumber;
1581
+ images: z.ZodArray<z.ZodObject<{
1582
+ id: z.ZodNumber;
1583
+ position: z.ZodNumber;
1584
+ selected: z.ZodBoolean;
1585
+ }, z.core.$loose>>;
1586
+ selected: z.ZodArray<z.ZodNumber>;
1587
+ selectedCount: z.ZodNumber;
1588
+ sendCount: z.ZodNumber;
1589
+ nextImageOffset: z.ZodNullable<z.ZodNumber>;
1590
+ nextImageIds: z.ZodArray<z.ZodNumber>;
1591
+ unavailable: z.ZodArray<z.ZodUnknown>;
1592
+ delivery: z.ZodString;
1593
+ }, z.core.$loose>;
1594
+ readonly propose_review: z.ZodObject<{
1595
+ proposal: z.ZodNumber;
1596
+ kind: z.ZodLiteral<"review">;
1597
+ awaiting: z.ZodString;
1598
+ }, z.core.$loose>;
1599
+ readonly recap: z.ZodObject<{
1600
+ since: z.ZodNullable<z.ZodString>;
1601
+ repos: z.ZodArray<z.ZodUnknown>;
1602
+ waitsOnYou: z.ZodObject<{
1603
+ decisions: z.ZodArray<z.ZodUnknown>;
1604
+ incidents: z.ZodNumber;
1605
+ scopesAwaitingApproval: z.ZodArray<z.ZodUnknown>;
1606
+ }, z.core.$loose>;
1607
+ running: z.ZodArray<z.ZodUnknown>;
1608
+ truncated: z.ZodBoolean;
1609
+ }, z.core.$loose>;
1610
+ readonly list_repos: z.ZodObject<{
1611
+ repos: z.ZodArray<z.ZodObject<{
1612
+ repo: z.ZodString;
1613
+ }, z.core.$loose>>;
1614
+ }, z.core.$loose>;
1615
+ readonly get_project_tools: z.ZodObject<{
1616
+ rule: z.ZodString;
1617
+ tools: z.ZodArray<z.ZodObject<{
1618
+ name: z.ZodString;
1619
+ }, z.core.$loose>>;
1620
+ connectBySigningIn: z.ZodArray<z.ZodUnknown>;
1621
+ commonTools: z.ZodArray<z.ZodUnknown>;
1622
+ foundOnThisComputer: z.ZodArray<z.ZodUnknown>;
1623
+ notice: z.ZodString;
1624
+ }, z.core.$loose>;
1625
+ readonly get_flows: z.ZodUnion<readonly [z.ZodObject<{
1626
+ flow: z.ZodNumber;
1627
+ name: z.ZodString;
1628
+ steps: z.ZodArray<z.ZodObject<{
1629
+ id: z.ZodString;
1630
+ title: z.ZodString;
1631
+ kind: z.ZodString;
1632
+ }, z.core.$loose>>;
1633
+ cards: z.ZodArray<z.ZodObject<{
1634
+ card: z.ZodNumber;
1635
+ title: z.ZodString;
1636
+ }, z.core.$loose>>;
1637
+ scripts: z.ZodArray<z.ZodUnknown>;
1638
+ triggers: z.ZodArray<z.ZodUnknown>;
1639
+ rule: z.ZodString;
1640
+ }, z.core.$loose>, z.ZodObject<{
1641
+ flows: z.ZodArray<z.ZodObject<{
1642
+ flow: z.ZodNumber;
1643
+ name: z.ZodString;
1644
+ cards: z.ZodNumber;
1645
+ needYou: z.ZodNumber;
1646
+ triggers: z.ZodNumber;
1647
+ }, z.core.$loose>>;
1648
+ templates: z.ZodArray<z.ZodUnknown>;
1649
+ scripts: z.ZodArray<z.ZodUnknown>;
1650
+ rule: z.ZodString;
1651
+ }, z.core.$loose>]>;
1652
+ readonly propose_flow: z.ZodObject<{
1653
+ proposal: z.ZodNumber;
1654
+ label: z.ZodString;
1655
+ awaiting: z.ZodString;
1656
+ executed: z.ZodLiteral<false>;
1657
+ }, z.core.$loose>;
1658
+ readonly get_teammates: z.ZodObject<{
1659
+ teammates: z.ZodArray<z.ZodObject<{
1660
+ teammate: z.ZodNumber;
1661
+ name: z.ZodString;
1662
+ working: z.ZodBoolean;
1663
+ soul: z.ZodString;
1664
+ }, z.core.$loose>>;
1665
+ templates: z.ZodArray<z.ZodUnknown>;
1666
+ rule: z.ZodString;
1667
+ }, z.core.$loose>;
1668
+ readonly propose_teammate: z.ZodObject<{
1669
+ proposal: z.ZodNumber;
1670
+ label: z.ZodString;
1671
+ awaiting: z.ZodString;
1672
+ executed: z.ZodLiteral<false>;
1673
+ }, z.core.$loose>;
1674
+ readonly get_flow_insights: z.ZodUnion<readonly [z.ZodObject<{
1675
+ days: z.ZodNumber;
1676
+ flows: z.ZodArray<z.ZodObject<{
1677
+ flow: z.ZodNumber;
1678
+ name: z.ZodString;
1679
+ }, z.core.$loose>>;
1680
+ }, z.core.$loose>, z.ZodObject<{
1681
+ card: z.ZodNumber;
1682
+ entry: z.ZodNumber;
1683
+ state: z.ZodString;
1684
+ log: z.ZodString;
1685
+ }, z.core.$loose>, z.ZodObject<{
1686
+ runs: z.ZodArray<z.ZodUnknown>;
1687
+ rule: z.ZodString;
1688
+ }, z.core.$loose>]>;
1689
+ readonly get_skills: z.ZodUnion<readonly [z.ZodObject<{
1690
+ version: z.ZodString;
1691
+ instructions: z.ZodString;
1692
+ nextOffset: z.ZodNullable<z.ZodNumber>;
1693
+ notice: z.ZodString;
1694
+ }, z.core.$loose>, z.ZodObject<{
1695
+ skills: z.ZodArray<z.ZodUnknown>;
1696
+ nextOffset: z.ZodNullable<z.ZodNumber>;
1697
+ }, z.core.$loose>]>;
1698
+ readonly get_project_knowledge: z.ZodObject<{
1699
+ revision: z.ZodNumber;
1700
+ }, z.core.$loose>;
1701
+ readonly get_task_conversation: z.ZodObject<{
1702
+ task: z.ZodString;
1703
+ messages: z.ZodArray<z.ZodObject<{
1704
+ from: z.ZodEnum<{
1705
+ lead: "lead";
1706
+ operator: "operator";
1707
+ }>;
1708
+ text: z.ZodString;
1709
+ at: z.ZodString;
1710
+ }, z.core.$loose>>;
1711
+ notice: z.ZodNullable<z.ZodString>;
1712
+ }, z.core.$loose>;
1713
+ readonly commit_to: z.ZodObject<{
1714
+ commitment: z.ZodNumber;
1715
+ condition: z.ZodString;
1716
+ expires: z.ZodString;
1717
+ report: z.ZodString;
1718
+ }, z.core.$loose>;
1719
+ readonly release_commitment: z.ZodObject<{
1720
+ commitment: z.ZodNumber;
1721
+ state: z.ZodLiteral<"cancelled">;
1722
+ }, z.core.$loose>;
1723
+ readonly remember: z.ZodObject<{
1724
+ proposal: z.ZodNumber;
1725
+ label: z.ZodString;
1726
+ awaiting: z.ZodString;
1727
+ executed: z.ZodLiteral<false>;
1728
+ next: z.ZodString;
1729
+ }, z.core.$loose>;
1730
+ readonly get_person: z.ZodUnion<readonly [z.ZodObject<{
1731
+ person: z.ZodObject<{}, z.core.$loose>;
1732
+ }, z.core.$loose>, z.ZodObject<{
1733
+ several: z.ZodArray<z.ZodUnknown>;
1734
+ next: z.ZodString;
1735
+ }, z.core.$loose>]>;
1736
+ readonly get_integrations: z.ZodObject<{
1737
+ integrations: z.ZodArray<z.ZodObject<{
1738
+ name: z.ZodString;
1739
+ kind: z.ZodString;
1740
+ state: z.ZodString;
1741
+ }, z.core.$loose>>;
1742
+ settings: z.ZodString;
1743
+ }, z.core.$loose>;
1744
+ readonly get_capabilities: z.ZodObject<{
1745
+ projects: z.ZodArray<z.ZodObject<{
1746
+ repo: z.ZodString;
1747
+ }, z.core.$loose>>;
1748
+ workers: z.ZodUnknown;
1749
+ integrations: z.ZodUnknown;
1750
+ rule: z.ZodString;
1751
+ }, z.core.$loose>;
1752
+ readonly ask_owner: z.ZodObject<{
1753
+ asked: z.ZodString;
1754
+ options: z.ZodArray<z.ZodString>;
1755
+ shown: z.ZodString;
1756
+ }, z.core.$loose>;
1757
+ readonly search_project_memory: z.ZodObject<{
1758
+ hits: z.ZodArray<z.ZodUnknown>;
1759
+ notice: z.ZodString;
1760
+ }, z.core.$loose>;
1761
+ readonly get_models: z.ZodObject<{
1762
+ roles: z.ZodArray<z.ZodObject<{
1763
+ role: z.ZodString;
1764
+ }, z.core.$loose>>;
1765
+ tools: z.ZodArray<z.ZodUnknown>;
1766
+ newModels: z.ZodArray<z.ZodUnknown>;
1767
+ change: z.ZodString;
1768
+ }, z.core.$loose>;
1769
+ readonly list_tasks: z.ZodObject<{
1770
+ tasks: z.ZodArray<z.ZodObject<{
1771
+ repo: z.ZodString;
1772
+ task: z.ZodString;
1773
+ execution: z.ZodString;
1774
+ title: z.ZodString;
1775
+ state: z.ZodString;
1776
+ ageHours: z.ZodNumber;
1777
+ strikes: z.ZodNumber;
1778
+ }, z.core.$loose>>;
1779
+ truncated: z.ZodBoolean;
1780
+ }, z.core.$loose>;
1781
+ readonly get_task: z.ZodObject<{
1782
+ repo: z.ZodString;
1783
+ task: z.ZodString;
1784
+ root: z.ZodString;
1785
+ currentExecution: z.ZodString;
1786
+ title: z.ZodString;
1787
+ state: z.ZodString;
1788
+ deliverable: z.ZodString;
1789
+ scope: z.ZodString;
1790
+ queue: z.ZodNullable<z.ZodObject<{
1791
+ position: z.ZodNumber;
1792
+ of: z.ZodNumber;
1793
+ column: z.ZodString;
1794
+ }, z.core.$loose>>;
1795
+ holds: z.ZodArray<z.ZodUnknown>;
1796
+ attempts: z.ZodNumber;
1797
+ decisionsOpen: z.ZodNumber;
1798
+ dependencies: z.ZodArray<z.ZodUnknown>;
1799
+ }, z.core.$loose>;
1800
+ readonly get_agents: z.ZodObject<{
1801
+ repo: z.ZodString;
1802
+ task: z.ZodString;
1803
+ risk: z.ZodObject<{
1804
+ level: z.ZodString;
1805
+ }, z.core.$loose>;
1806
+ standing: z.ZodString;
1807
+ agents: z.ZodArray<z.ZodUnknown>;
1808
+ choices: z.ZodObject<{}, z.core.$loose>;
1809
+ approval: z.ZodString;
1810
+ organisationPolicy: z.ZodObject<{}, z.core.$loose>;
1811
+ }, z.core.$loose>;
1812
+ readonly list_decisions: z.ZodObject<{
1813
+ decisions: z.ZodArray<z.ZodObject<{
1814
+ decision: z.ZodNumber;
1815
+ task: z.ZodString;
1816
+ question: z.ZodString;
1817
+ options: z.ZodArray<z.ZodUnknown>;
1818
+ ageHours: z.ZodNumber;
1819
+ }, z.core.$loose>>;
1820
+ truncated: z.ZodBoolean;
1821
+ }, z.core.$loose>;
1822
+ readonly get_decision: z.ZodObject<{
1823
+ repo: z.ZodString;
1824
+ decision: z.ZodNumber;
1825
+ task: z.ZodString;
1826
+ state: z.ZodString;
1827
+ question: z.ZodString;
1828
+ options: z.ZodArray<z.ZodObject<{
1829
+ id: z.ZodString;
1830
+ label: z.ZodString;
1831
+ reversible: z.ZodBoolean;
1832
+ consequence: z.ZodString;
1833
+ }, z.core.$loose>>;
1834
+ ageHours: z.ZodNumber;
1835
+ }, z.core.$loose>;
1836
+ readonly queue: z.ZodObject<{
1837
+ columns: z.ZodArray<z.ZodObject<{
1838
+ column: z.ZodString;
1839
+ tasks: z.ZodArray<z.ZodUnknown>;
1840
+ }, z.core.$loose>>;
1841
+ repo: z.ZodString;
1842
+ queueRevision: z.ZodNumber;
1843
+ }, z.core.$loose>;
1844
+ readonly propose_task: z.ZodObject<{
1845
+ proposal: z.ZodNumber;
1846
+ kind: z.ZodLiteral<"task">;
1847
+ awaiting: z.ZodString;
1848
+ }, z.core.$loose>;
1849
+ readonly propose_next: z.ZodObject<{
1850
+ proposal: z.ZodNumber;
1851
+ kind: z.ZodLiteral<"next">;
1852
+ awaiting: z.ZodString;
1853
+ }, z.core.$loose>;
1854
+ readonly propose_reserve: z.ZodObject<{
1855
+ proposal: z.ZodNumber;
1856
+ kind: z.ZodLiteral<"reserve">;
1857
+ awaiting: z.ZodString;
1858
+ }, z.core.$loose>;
1859
+ readonly propose_hold: z.ZodObject<{
1860
+ proposal: z.ZodNumber;
1861
+ kind: z.ZodLiteral<"hold">;
1862
+ awaiting: z.ZodString;
1863
+ }, z.core.$loose>;
1864
+ readonly propose_unhold: z.ZodObject<{
1865
+ proposal: z.ZodNumber;
1866
+ kind: z.ZodLiteral<"unhold">;
1867
+ awaiting: z.ZodString;
1868
+ }, z.core.$loose>;
1869
+ readonly propose_steer: z.ZodObject<{
1870
+ proposal: z.ZodNumber;
1871
+ kind: z.ZodLiteral<"steer">;
1872
+ awaiting: z.ZodString;
1873
+ }, z.core.$loose>;
1874
+ readonly propose_dependency_repair: z.ZodObject<{
1875
+ proposal: z.ZodNumber;
1876
+ kind: z.ZodLiteral<"repair">;
1877
+ awaiting: z.ZodString;
1878
+ }, z.core.$loose>;
1879
+ readonly propose_scope: z.ZodObject<{
1880
+ proposal: z.ZodNumber;
1881
+ kind: z.ZodLiteral<"scope">;
1882
+ awaiting: z.ZodString;
1883
+ }, z.core.$loose>;
1884
+ readonly propose_agents: z.ZodObject<{
1885
+ proposal: z.ZodNumber;
1886
+ kind: z.ZodLiteral<"agents">;
1887
+ awaiting: z.ZodString;
1888
+ }, z.core.$loose>;
1889
+ readonly propose_answer: z.ZodObject<{
1890
+ proposal: z.ZodNumber;
1891
+ kind: z.ZodLiteral<"answer">;
1892
+ awaiting: z.ZodString;
1893
+ }, z.core.$loose>;
1894
+ readonly propose_cancel: z.ZodObject<{
1895
+ proposal: z.ZodNumber;
1896
+ kind: z.ZodLiteral<"cancel">;
1897
+ awaiting: z.ZodString;
1898
+ }, z.core.$loose>;
1899
+ };
1900
+ export type LeadToolOutput<N extends LeadToolName> = z.infer<(typeof LEAD_TOOL_OUTPUTS)[N]>;
1901
+ /**
1902
+ * Report a result that disagrees with its output schema without hiding the actual result, including under Vitest.
1903
+ * Contract tests assert output shapes directly; executing a tool always writes the diagnostic and returns its result.
1904
+ */
1905
+ export declare function reportToolOutput(surface: "lead" | "gateway", tool: string, schema: z.ZodType, body: unknown): void;