@kana-ai/edgar-ext-github 0.0.0-stage → 0.1.0

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 (136) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +469 -2
  3. package/agents/dismiss/agent.toml +4 -0
  4. package/agents/dismiss/instructions.md +25 -0
  5. package/dist/src/api/app.d.ts +16 -0
  6. package/dist/src/api/app.js +32 -0
  7. package/dist/src/api/client.d.ts +26 -0
  8. package/dist/src/api/client.js +103 -0
  9. package/dist/src/api/failures.d.ts +8 -0
  10. package/dist/src/api/failures.js +31 -0
  11. package/dist/src/feed/alerts.d.ts +26 -0
  12. package/dist/src/feed/alerts.js +117 -0
  13. package/dist/src/feed/cards.d.ts +32 -0
  14. package/dist/src/feed/cards.js +164 -0
  15. package/dist/src/feed/service.d.ts +28 -0
  16. package/dist/src/feed/service.js +163 -0
  17. package/dist/src/index.d.ts +490 -0
  18. package/dist/src/index.js +62 -0
  19. package/dist/src/schemas/config.d.ts +57 -0
  20. package/dist/src/schemas/config.js +89 -0
  21. package/dist/src/schemas/github.d.ts +417 -0
  22. package/dist/src/schemas/github.js +216 -0
  23. package/dist/src/schemas/tools.d.ts +620 -0
  24. package/dist/src/schemas/tools.js +501 -0
  25. package/dist/src/tools/alerts.d.ts +45 -0
  26. package/dist/src/tools/alerts.js +100 -0
  27. package/dist/src/tools/branch.d.ts +9 -0
  28. package/dist/src/tools/branch.js +48 -0
  29. package/dist/src/tools/checks.d.ts +118 -0
  30. package/dist/src/tools/checks.js +223 -0
  31. package/dist/src/tools/discussion.d.ts +41 -0
  32. package/dist/src/tools/discussion.js +66 -0
  33. package/dist/src/tools/pull-request.d.ts +195 -0
  34. package/dist/src/tools/pull-request.js +537 -0
  35. package/dist/src/tools/repository.d.ts +53 -0
  36. package/dist/src/tools/repository.js +134 -0
  37. package/dist/src/tools/screenshot.d.ts +21 -0
  38. package/dist/src/tools/screenshot.js +99 -0
  39. package/dist/src/tracker/assignee.d.ts +15 -0
  40. package/dist/src/tracker/assignee.js +65 -0
  41. package/dist/src/tracker/cards.d.ts +41 -0
  42. package/dist/src/tracker/cards.js +361 -0
  43. package/dist/src/tracker/comments.d.ts +9 -0
  44. package/dist/src/tracker/comments.js +68 -0
  45. package/dist/src/tracker/description.d.ts +19 -0
  46. package/dist/src/tracker/description.js +55 -0
  47. package/dist/src/tracker/hand-back.d.ts +8 -0
  48. package/dist/src/tracker/hand-back.js +60 -0
  49. package/dist/src/tracker/port.d.ts +2 -0
  50. package/dist/src/tracker/port.js +42 -0
  51. package/dist/src/tracker/states.d.ts +77 -0
  52. package/dist/src/tracker/states.js +189 -0
  53. package/dist/src/tracker/tools.d.ts +143 -0
  54. package/dist/src/tracker/tools.js +131 -0
  55. package/dist/src/tracker/transitions.d.ts +12 -0
  56. package/dist/src/tracker/transitions.js +101 -0
  57. package/edgar-extension.json +507 -0
  58. package/package.json +43 -3
  59. package/schemas/assign.in.json +15 -0
  60. package/schemas/assign.out.json +14 -0
  61. package/schemas/attach_screenshot.in.json +44 -0
  62. package/schemas/attach_screenshot.out.json +31 -0
  63. package/schemas/batch_cards.in.json +27 -0
  64. package/schemas/batch_cards.out.json +37 -0
  65. package/schemas/branch_protection.in.json +15 -0
  66. package/schemas/branch_protection.out.json +67 -0
  67. package/schemas/ci_run.in.json +12 -0
  68. package/schemas/ci_run.out.json +109 -0
  69. package/schemas/close.in.json +14 -0
  70. package/schemas/close.out.json +10 -0
  71. package/schemas/close_pull_request.in.json +21 -0
  72. package/schemas/close_pull_request.out.json +14 -0
  73. package/schemas/comment.in.json +19 -0
  74. package/schemas/comment.out.json +10 -0
  75. package/schemas/config.json +202 -0
  76. package/schemas/count_sighting.in.json +17 -0
  77. package/schemas/count_sighting.out.json +10 -0
  78. package/schemas/create_card.in.json +108 -0
  79. package/schemas/create_card.out.json +13 -0
  80. package/schemas/dependabot_alerts.in.json +49 -0
  81. package/schemas/dependabot_alerts.out.json +75 -0
  82. package/schemas/dismiss_dependabot_alert.in.json +26 -0
  83. package/schemas/dismiss_dependabot_alert.out.json +27 -0
  84. package/schemas/find_assignee.in.json +15 -0
  85. package/schemas/find_assignee.out.json +10 -0
  86. package/schemas/find_cards.in.json +18 -0
  87. package/schemas/find_cards.out.json +33 -0
  88. package/schemas/find_dependabot_dismissal.in.json +12 -0
  89. package/schemas/find_dependabot_dismissal.out.json +27 -0
  90. package/schemas/find_description.in.json +15 -0
  91. package/schemas/find_description.out.json +10 -0
  92. package/schemas/find_pull_request.in.json +25 -0
  93. package/schemas/find_pull_request.out.json +14 -0
  94. package/schemas/hand_back.in.json +11 -0
  95. package/schemas/hand_back.out.json +18 -0
  96. package/schemas/linked_pull_requests.in.json +15 -0
  97. package/schemas/linked_pull_requests.out.json +44 -0
  98. package/schemas/list_pull_requests.in.json +26 -0
  99. package/schemas/list_pull_requests.out.json +42 -0
  100. package/schemas/merge_pull_request.in.json +22 -0
  101. package/schemas/merge_pull_request.out.json +16 -0
  102. package/schemas/move.in.json +15 -0
  103. package/schemas/move.out.json +10 -0
  104. package/schemas/note_pull_request.in.json +15 -0
  105. package/schemas/note_pull_request.out.json +10 -0
  106. package/schemas/open_pull_request.in.json +113 -0
  107. package/schemas/open_pull_request.out.json +15 -0
  108. package/schemas/pull_request_checks.in.json +11 -0
  109. package/schemas/pull_request_checks.out.json +72 -0
  110. package/schemas/pull_request_discussion.in.json +11 -0
  111. package/schemas/pull_request_discussion.out.json +107 -0
  112. package/schemas/pull_request_state.in.json +11 -0
  113. package/schemas/pull_request_state.out.json +52 -0
  114. package/schemas/push_branch.in.json +21 -0
  115. package/schemas/push_branch.out.json +13 -0
  116. package/schemas/release_follow_ups.in.json +15 -0
  117. package/schemas/release_follow_ups.out.json +13 -0
  118. package/schemas/reopen_dependabot_alert.in.json +33 -0
  119. package/schemas/reopen_dependabot_alert.out.json +22 -0
  120. package/schemas/restore_assignee.in.json +20 -0
  121. package/schemas/restore_assignee.out.json +10 -0
  122. package/schemas/restore_description.in.json +20 -0
  123. package/schemas/restore_description.out.json +10 -0
  124. package/schemas/update_description.in.json +15 -0
  125. package/schemas/update_description.out.json +14 -0
  126. package/schemas/update_pull_request.in.json +81 -0
  127. package/schemas/update_pull_request.out.json +10 -0
  128. package/schemas/wait_for_checks.in.json +11 -0
  129. package/schemas/wait_for_checks.out.json +72 -0
  130. package/schemas/wait_for_merge.in.json +11 -0
  131. package/schemas/wait_for_merge.out.json +17 -0
  132. package/schemas/wait_for_passed_checks.in.json +11 -0
  133. package/schemas/wait_for_passed_checks.out.json +72 -0
  134. package/schemas/wait_for_review.in.json +11 -0
  135. package/schemas/wait_for_review.out.json +52 -0
  136. package/workflows/resume.toml +17 -0
@@ -0,0 +1,620 @@
1
+ import { z } from "zod";
2
+ /** The state of a pull request as a tool answers it. */
3
+ export declare const state: z.ZodEnum<{
4
+ closed: "closed";
5
+ merged: "merged";
6
+ open: "open";
7
+ }>;
8
+ /** The review state from each reviewer's latest deciding review. */
9
+ export declare const reviewStates: z.ZodEnum<{
10
+ approved: "approved";
11
+ changes_requested: "changes_requested";
12
+ pending: "pending";
13
+ }>;
14
+ /** The input and output of `push_branch`. */
15
+ export declare const pushBranch: {
16
+ input: z.ZodObject<{
17
+ repo: z.ZodString;
18
+ branch: z.ZodOptional<z.ZodString>;
19
+ to: z.ZodOptional<z.ZodString>;
20
+ }, z.core.$strip>;
21
+ output: z.ZodObject<{
22
+ branch: z.ZodString;
23
+ commit: z.ZodString;
24
+ }, z.core.$strip>;
25
+ };
26
+ /** The input and output of `open_pull_request`. */
27
+ export declare const openPullRequest: {
28
+ input: z.ZodObject<{
29
+ repo: z.ZodString;
30
+ branch: z.ZodString;
31
+ title: z.ZodString;
32
+ body: z.ZodString;
33
+ review: z.ZodString;
34
+ labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
35
+ large_diff_lines: z.ZodOptional<z.ZodNumber>;
36
+ path_notices: z.ZodOptional<z.ZodArray<z.ZodObject<{
37
+ prefix: z.ZodString;
38
+ notice: z.ZodString;
39
+ }, z.core.$strip>>>;
40
+ checks: z.ZodOptional<z.ZodObject<{
41
+ results: z.ZodArray<z.ZodObject<{
42
+ check: z.ZodString;
43
+ exit_code: z.ZodNullable<z.ZodNumber>;
44
+ }, z.core.$strip>>;
45
+ }, z.core.$strip>>;
46
+ not_verified: z.ZodOptional<z.ZodArray<z.ZodString>>;
47
+ related: z.ZodOptional<z.ZodUnion<readonly [z.ZodURL, z.ZodArray<z.ZodURL>]>>;
48
+ }, z.core.$strip>;
49
+ output: z.ZodObject<{
50
+ url: z.ZodString;
51
+ number: z.ZodNumber;
52
+ }, z.core.$strip>;
53
+ };
54
+ /** The input and output of `close_pull_request`, which the engine calls with the output of the `open_pull_request` call that it undoes. The sweep adds `text`, the line that says why, when a person closed the card of the pull request. */
55
+ export declare const closePullRequest: {
56
+ input: z.ZodObject<{
57
+ stage_output: z.ZodObject<{
58
+ url: z.ZodString;
59
+ }, z.core.$strip>;
60
+ text: z.ZodOptional<z.ZodString>;
61
+ }, z.core.$strip>;
62
+ output: z.ZodObject<{
63
+ url: z.ZodString;
64
+ state: z.ZodEnum<{
65
+ closed: "closed";
66
+ merged: "merged";
67
+ open: "open";
68
+ }>;
69
+ }, z.core.$strip>;
70
+ };
71
+ /** The input and output of `note_pull_request`: `text` is one new line of EDGAR's note on the pull request, and `url` in the output is the note. */
72
+ export declare const notePullRequest: {
73
+ input: z.ZodObject<{
74
+ url: z.ZodString;
75
+ text: z.ZodString;
76
+ }, z.core.$strip>;
77
+ output: z.ZodObject<{
78
+ url: z.ZodString;
79
+ }, z.core.$strip>;
80
+ };
81
+ /** The input and output of `attach_screenshot`: `shot` is the output of a stage that took a picture, a PNG of the sandbox with what it shows, or why there is none. */
82
+ export declare const attachScreenshot: {
83
+ input: z.ZodObject<{
84
+ url: z.ZodString;
85
+ shot: z.ZodUnion<readonly [z.ZodObject<{
86
+ path: z.ZodString;
87
+ bytes: z.ZodInt;
88
+ caption: z.ZodString;
89
+ }, z.core.$strip>, z.ZodObject<{
90
+ missing: z.ZodString;
91
+ }, z.core.$strip>]>;
92
+ }, z.core.$strip>;
93
+ output: z.ZodUnion<readonly [z.ZodObject<{
94
+ attached: z.ZodLiteral<true>;
95
+ image: z.ZodString;
96
+ }, z.core.$strip>, z.ZodObject<{
97
+ attached: z.ZodLiteral<false>;
98
+ missing: z.ZodString;
99
+ }, z.core.$strip>]>;
100
+ };
101
+ /** The input and output of `update_pull_request`: a new `title` and `body` for an open pull request whose text a later change made untrue. The body gets its notices and proof again, as `open_pull_request` gives them. */
102
+ export declare const updatePullRequest: {
103
+ input: z.ZodObject<{
104
+ url: z.ZodString;
105
+ title: z.ZodString;
106
+ body: z.ZodString;
107
+ large_diff_lines: z.ZodOptional<z.ZodNumber>;
108
+ path_notices: z.ZodOptional<z.ZodArray<z.ZodObject<{
109
+ prefix: z.ZodString;
110
+ notice: z.ZodString;
111
+ }, z.core.$strip>>>;
112
+ checks: z.ZodOptional<z.ZodObject<{
113
+ results: z.ZodArray<z.ZodObject<{
114
+ check: z.ZodString;
115
+ exit_code: z.ZodNullable<z.ZodNumber>;
116
+ }, z.core.$strip>>;
117
+ }, z.core.$strip>>;
118
+ not_verified: z.ZodOptional<z.ZodArray<z.ZodString>>;
119
+ }, z.core.$strip>;
120
+ output: z.ZodObject<{
121
+ url: z.ZodString;
122
+ }, z.core.$strip>;
123
+ };
124
+ /** The input and output of `linked_pull_requests`: the pull requests of `repo` that `text` links, each with what it changes, so a role with no access to GitHub can tell whether one already fixes a card. */
125
+ export declare const linkedPullRequests: {
126
+ input: z.ZodObject<{
127
+ text: z.ZodString;
128
+ repo: z.ZodString;
129
+ }, z.core.$strip>;
130
+ output: z.ZodObject<{
131
+ pull_requests: z.ZodArray<z.ZodObject<{
132
+ url: z.ZodString;
133
+ state: z.ZodEnum<{
134
+ closed: "closed";
135
+ merged: "merged";
136
+ open: "open";
137
+ }>;
138
+ title: z.ZodString;
139
+ body: z.ZodString;
140
+ files: z.ZodArray<z.ZodObject<{
141
+ path: z.ZodString;
142
+ patch: z.ZodString;
143
+ }, z.core.$strip>>;
144
+ }, z.core.$strip>>;
145
+ }, z.core.$strip>;
146
+ };
147
+ /** The input and output of `find_pull_request`, which the engine calls with the input of the `open_pull_request` call whose end it did not see. */
148
+ export declare const findPullRequest: {
149
+ input: z.ZodObject<{
150
+ operation_id: z.ZodString;
151
+ input: z.ZodObject<{
152
+ repo: z.ZodString;
153
+ branch: z.ZodString;
154
+ }, z.core.$strip>;
155
+ }, z.core.$strip>;
156
+ output: z.ZodObject<{
157
+ url: z.ZodString;
158
+ state: z.ZodEnum<{
159
+ closed: "closed";
160
+ merged: "merged";
161
+ open: "open";
162
+ }>;
163
+ }, z.core.$strip>;
164
+ };
165
+ /** The input and output of `list_pull_requests`. */
166
+ export declare const listPullRequests: {
167
+ input: z.ZodObject<{
168
+ services: z.ZodArray<z.ZodObject<{
169
+ repo: z.ZodString;
170
+ }, z.core.$strip>>;
171
+ merged_within_hours: z.ZodOptional<z.ZodNumber>;
172
+ }, z.core.$strip>;
173
+ output: z.ZodObject<{
174
+ pull_requests: z.ZodArray<z.ZodObject<{
175
+ url: z.ZodString;
176
+ branch: z.ZodString;
177
+ card: z.ZodString;
178
+ unmerged: z.ZodArray<z.ZodObject<{
179
+ url: z.ZodString;
180
+ state: z.ZodEnum<{
181
+ closed: "closed";
182
+ open: "open";
183
+ }>;
184
+ }, z.core.$strip>>;
185
+ }, z.core.$strip>>;
186
+ }, z.core.$strip>;
187
+ };
188
+ /** The input and output of `wait_for_merge`. */
189
+ export declare const waitForMerge: {
190
+ input: z.ZodObject<{
191
+ url: z.ZodString;
192
+ }, z.core.$strip>;
193
+ output: z.ZodObject<{
194
+ url: z.ZodString;
195
+ merged: z.ZodBoolean;
196
+ sha: z.ZodOptional<z.ZodString>;
197
+ }, z.core.$strip>;
198
+ };
199
+ /** The input and output of `pull_request_state`. */
200
+ export declare const pullRequestState: {
201
+ input: z.ZodObject<{
202
+ url: z.ZodString;
203
+ }, z.core.$strip>;
204
+ output: z.ZodObject<{
205
+ url: z.ZodString;
206
+ state: z.ZodEnum<{
207
+ closed: "closed";
208
+ merged: "merged";
209
+ open: "open";
210
+ }>;
211
+ merged: z.ZodBoolean;
212
+ review_state: z.ZodEnum<{
213
+ approved: "approved";
214
+ changes_requested: "changes_requested";
215
+ pending: "pending";
216
+ }>;
217
+ approved_by: z.ZodArray<z.ZodString>;
218
+ card: z.ZodNullable<z.ZodString>;
219
+ commit: z.ZodString;
220
+ branch: z.ZodString;
221
+ head_repo: z.ZodNullable<z.ZodString>;
222
+ }, z.core.$strip>;
223
+ };
224
+ /** The input and output of `merge_pull_request`. */
225
+ export declare const mergePullRequest: {
226
+ input: z.ZodObject<{
227
+ url: z.ZodString;
228
+ commit: z.ZodString;
229
+ changed_files: z.ZodOptional<z.ZodNumber>;
230
+ }, z.core.$strip>;
231
+ output: z.ZodObject<{
232
+ url: z.ZodString;
233
+ merged: z.ZodBoolean;
234
+ commit: z.ZodString;
235
+ }, z.core.$strip>;
236
+ };
237
+ /** The state of a commit's checks: `pending` while one runs, `failed` once one failed, else `passed`; `closed` when the pull request is closed or merged, whatever its checks. */
238
+ export declare const checksState: z.ZodEnum<{
239
+ closed: "closed";
240
+ failed: "failed";
241
+ passed: "passed";
242
+ pending: "pending";
243
+ }>;
244
+ /** The input and output of `pull_request_checks` and `wait_for_checks`. */
245
+ export declare const pullRequestChecks: {
246
+ input: z.ZodObject<{
247
+ url: z.ZodString;
248
+ }, z.core.$strip>;
249
+ output: z.ZodObject<{
250
+ url: z.ZodString;
251
+ commit: z.ZodString;
252
+ state: z.ZodEnum<{
253
+ closed: "closed";
254
+ failed: "failed";
255
+ passed: "passed";
256
+ pending: "pending";
257
+ }>;
258
+ merged: z.ZodBoolean;
259
+ checks: z.ZodNumber;
260
+ failed: z.ZodArray<z.ZodObject<{
261
+ name: z.ZodString;
262
+ url: z.ZodNullable<z.ZodString>;
263
+ }, z.core.$strip>>;
264
+ retry_after_seconds: z.ZodNullable<z.ZodNumber>;
265
+ summary: z.ZodString;
266
+ changed_files: z.ZodNumber;
267
+ }, z.core.$strip>;
268
+ };
269
+ /** The states of a Dependabot alert. */
270
+ export declare const alertStates: z.ZodEnum<{
271
+ auto_dismissed: "auto_dismissed";
272
+ dismissed: "dismissed";
273
+ fixed: "fixed";
274
+ open: "open";
275
+ }>;
276
+ /** The input and output of `dependabot_alerts`. */
277
+ export declare const dependabotAlerts: {
278
+ input: z.ZodObject<{
279
+ repo: z.ZodString;
280
+ number: z.ZodOptional<z.ZodNumber>;
281
+ state: z.ZodOptional<z.ZodArray<z.ZodEnum<{
282
+ auto_dismissed: "auto_dismissed";
283
+ dismissed: "dismissed";
284
+ fixed: "fixed";
285
+ open: "open";
286
+ }>>>;
287
+ package: z.ZodOptional<z.ZodString>;
288
+ ghsa: z.ZodOptional<z.ZodArray<z.ZodString>>;
289
+ cve: z.ZodOptional<z.ZodArray<z.ZodString>>;
290
+ limit: z.ZodOptional<z.ZodNumber>;
291
+ }, z.core.$strip>;
292
+ output: z.ZodObject<{
293
+ alerts: z.ZodArray<z.ZodObject<{
294
+ number: z.ZodNumber;
295
+ url: z.ZodString;
296
+ state: z.ZodString;
297
+ package: z.ZodNullable<z.ZodString>;
298
+ ecosystem: z.ZodNullable<z.ZodString>;
299
+ severity: z.ZodString;
300
+ vulnerable_range: z.ZodString;
301
+ first_patched: z.ZodNullable<z.ZodString>;
302
+ manifest: z.ZodNullable<z.ZodString>;
303
+ scope: z.ZodNullable<z.ZodString>;
304
+ ghsa: z.ZodString;
305
+ cve: z.ZodNullable<z.ZodString>;
306
+ summary: z.ZodString;
307
+ }, z.core.$strip>>;
308
+ complete: z.ZodBoolean;
309
+ }, z.core.$strip>;
310
+ };
311
+ /** The input and output of `dismiss_dependabot_alert`. */
312
+ export declare const dismissDependabotAlert: {
313
+ input: z.ZodObject<{
314
+ repo: z.ZodString;
315
+ number: z.ZodNumber;
316
+ reason: z.ZodEnum<{
317
+ fix_started: "fix_started";
318
+ inaccurate: "inaccurate";
319
+ no_bandwidth: "no_bandwidth";
320
+ not_used: "not_used";
321
+ tolerable_risk: "tolerable_risk";
322
+ }>;
323
+ comment: z.ZodString;
324
+ }, z.core.$strip>;
325
+ output: z.ZodObject<{
326
+ repo: z.ZodString;
327
+ number: z.ZodNumber;
328
+ url: z.ZodString;
329
+ reason: z.ZodString;
330
+ reopen: z.ZodBoolean;
331
+ }, z.core.$strip>;
332
+ };
333
+ /** The input and output of `reopen_dependabot_alert`, which the engine calls with the output of the call it undoes. */
334
+ export declare const reopenDependabotAlert: {
335
+ input: z.ZodObject<{
336
+ stage_output: z.ZodObject<{
337
+ repo: z.ZodString;
338
+ number: z.ZodNumber;
339
+ url: z.ZodString;
340
+ reason: z.ZodString;
341
+ reopen: z.ZodBoolean;
342
+ }, z.core.$strip>;
343
+ }, z.core.$strip>;
344
+ output: z.ZodObject<{
345
+ repo: z.ZodString;
346
+ number: z.ZodNumber;
347
+ url: z.ZodString;
348
+ reopened: z.ZodBoolean;
349
+ }, z.core.$strip>;
350
+ };
351
+ /** The input and output of `find_dependabot_dismissal`: the operation and the input of a `dismiss_dependabot_alert` call. */
352
+ export declare const findDependabotDismissal: {
353
+ input: z.ZodObject<{
354
+ operation_id: z.ZodString;
355
+ input: z.ZodUnknown;
356
+ }, z.core.$strip>;
357
+ output: z.ZodObject<{
358
+ repo: z.ZodString;
359
+ number: z.ZodNumber;
360
+ url: z.ZodString;
361
+ reason: z.ZodString;
362
+ reopen: z.ZodBoolean;
363
+ }, z.core.$strip>;
364
+ };
365
+ /** The input and output of `pull_request_discussion`. */
366
+ export declare const pullRequestDiscussion: {
367
+ input: z.ZodObject<{
368
+ url: z.ZodString;
369
+ }, z.core.$strip>;
370
+ output: z.ZodObject<{
371
+ url: z.ZodString;
372
+ reviews: z.ZodArray<z.ZodObject<{
373
+ by: z.ZodNullable<z.ZodString>;
374
+ at: z.ZodNullable<z.ZodString>;
375
+ body: z.ZodString;
376
+ state: z.ZodString;
377
+ }, z.core.$strip>>;
378
+ threads: z.ZodArray<z.ZodObject<{
379
+ by: z.ZodNullable<z.ZodString>;
380
+ at: z.ZodNullable<z.ZodString>;
381
+ body: z.ZodString;
382
+ path: z.ZodString;
383
+ line: z.ZodNullable<z.ZodNumber>;
384
+ hunk: z.ZodString;
385
+ replies: z.ZodArray<z.ZodObject<{
386
+ by: z.ZodNullable<z.ZodString>;
387
+ at: z.ZodNullable<z.ZodString>;
388
+ body: z.ZodString;
389
+ }, z.core.$strip>>;
390
+ }, z.core.$strip>>;
391
+ conversation: z.ZodArray<z.ZodObject<{
392
+ by: z.ZodNullable<z.ZodString>;
393
+ at: z.ZodNullable<z.ZodString>;
394
+ body: z.ZodString;
395
+ }, z.core.$strip>>;
396
+ complete: z.ZodBoolean;
397
+ }, z.core.$strip>;
398
+ };
399
+ /** The input and output of `ci_run`. */
400
+ export declare const ciRun: {
401
+ input: z.ZodObject<{
402
+ url: z.ZodString;
403
+ }, z.core.$strip>;
404
+ output: z.ZodObject<{
405
+ url: z.ZodString;
406
+ workflow: z.ZodNullable<z.ZodString>;
407
+ status: z.ZodNullable<z.ZodString>;
408
+ conclusion: z.ZodNullable<z.ZodString>;
409
+ commit: z.ZodString;
410
+ branch: z.ZodNullable<z.ZodString>;
411
+ attempt: z.ZodNumber;
412
+ jobs: z.ZodArray<z.ZodObject<{
413
+ id: z.ZodNumber;
414
+ name: z.ZodString;
415
+ status: z.ZodString;
416
+ conclusion: z.ZodNullable<z.ZodString>;
417
+ failed_steps: z.ZodArray<z.ZodString>;
418
+ }, z.core.$strip>>;
419
+ logs: z.ZodArray<z.ZodObject<{
420
+ job: z.ZodNumber;
421
+ name: z.ZodString;
422
+ gone: z.ZodBoolean;
423
+ errors: z.ZodArray<z.ZodString>;
424
+ excerpt: z.ZodString;
425
+ }, z.core.$strip>>;
426
+ unread: z.ZodArray<z.ZodNumber>;
427
+ }, z.core.$strip>;
428
+ };
429
+ /** The input and output of `branch_protection`. */
430
+ export declare const branchProtection: {
431
+ input: z.ZodObject<{
432
+ repo: z.ZodString;
433
+ branch: z.ZodString;
434
+ }, z.core.$strip>;
435
+ output: z.ZodObject<{
436
+ branch: z.ZodString;
437
+ protected: z.ZodBoolean;
438
+ pull_request_required: z.ZodNullable<z.ZodBoolean>;
439
+ required_approvals: z.ZodNullable<z.ZodNumber>;
440
+ required_checks: z.ZodArray<z.ZodString>;
441
+ rules: z.ZodArray<z.ZodObject<{
442
+ type: z.ZodString;
443
+ ruleset_id: z.ZodNumber;
444
+ source: z.ZodString;
445
+ }, z.core.$strip>>;
446
+ classic: z.ZodEnum<{
447
+ none: "none";
448
+ read: "read";
449
+ unreadable: "unreadable";
450
+ }>;
451
+ }, z.core.$strip>;
452
+ };
453
+ /** The input and output of `comment`. */
454
+ export declare const commentTool: {
455
+ input: z.ZodObject<{
456
+ card: z.ZodString;
457
+ text: z.ZodString;
458
+ link: z.ZodExactOptional<z.ZodString>;
459
+ }, z.core.$strip>;
460
+ output: z.ZodObject<{
461
+ id: z.ZodString;
462
+ }, z.core.$strip>;
463
+ };
464
+ /** The input and output of `move`. */
465
+ export declare const moveTool: {
466
+ input: z.ZodObject<{
467
+ card: z.ZodString;
468
+ column: z.ZodString;
469
+ }, z.core.$strip>;
470
+ output: z.ZodObject<{
471
+ column: z.ZodString;
472
+ }, z.core.$strip>;
473
+ };
474
+ /** The input and output of `close`. */
475
+ export declare const closeTool: {
476
+ input: z.ZodObject<{
477
+ card: z.ZodString;
478
+ reason: z.ZodString;
479
+ }, z.core.$strip>;
480
+ output: z.ZodObject<{
481
+ state: z.ZodString;
482
+ }, z.core.$strip>;
483
+ };
484
+ /** The input and output of `create_card`. */
485
+ export declare const createCardTool: {
486
+ input: z.ZodObject<{
487
+ spec: z.ZodObject<{
488
+ title: z.ZodString;
489
+ description: z.ZodString;
490
+ column: z.ZodExactOptional<z.ZodString>;
491
+ labels: z.ZodExactOptional<z.ZodArray<z.ZodString>>;
492
+ block: z.ZodObject<{
493
+ kind: z.ZodEnum<{
494
+ defect: "defect";
495
+ investigation: "investigation";
496
+ question: "question";
497
+ request: "request";
498
+ }>;
499
+ service: z.ZodExactOptional<z.ZodString>;
500
+ environment: z.ZodExactOptional<z.ZodString>;
501
+ fingerprint: z.ZodExactOptional<z.ZodString>;
502
+ first_seen: z.ZodExactOptional<z.ZodISODateTime>;
503
+ last_seen: z.ZodExactOptional<z.ZodISODateTime>;
504
+ occurrences: z.ZodExactOptional<z.ZodNumber>;
505
+ severity: z.ZodExactOptional<z.ZodString>;
506
+ window: z.ZodExactOptional<z.ZodString>;
507
+ waits_for: z.ZodExactOptional<z.ZodString>;
508
+ decided: z.ZodExactOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
509
+ origin: z.ZodExactOptional<z.ZodObject<{
510
+ extension: z.ZodString;
511
+ channel: z.ZodString;
512
+ thread: z.ZodString;
513
+ }, z.core.$strict>>;
514
+ }, z.core.$strict>;
515
+ }, z.core.$strict>;
516
+ parent: z.ZodExactOptional<z.ZodString>;
517
+ }, z.core.$strip>;
518
+ output: z.ZodObject<{
519
+ id: z.ZodString;
520
+ url: z.ZodString;
521
+ }, z.core.$strip>;
522
+ };
523
+ /** The input and output of `release_follow_ups`. */
524
+ export declare const releaseFollowUpsTool: {
525
+ input: z.ZodObject<{
526
+ card: z.ZodString;
527
+ pull_request: z.ZodString;
528
+ }, z.core.$strip>;
529
+ output: z.ZodObject<{
530
+ released: z.ZodArray<z.ZodString>;
531
+ }, z.core.$strip>;
532
+ };
533
+ /** The input and output of `find_cards`. */
534
+ export declare const findCardsTool: {
535
+ input: z.ZodObject<{
536
+ text: z.ZodString;
537
+ except: z.ZodExactOptional<z.ZodString>;
538
+ }, z.core.$strip>;
539
+ output: z.ZodObject<{
540
+ cards: z.ZodArray<z.ZodObject<{
541
+ id: z.ZodString;
542
+ title: z.ZodString;
543
+ url: z.ZodString;
544
+ state: z.ZodString;
545
+ created_at: z.ZodString;
546
+ }, z.core.$strip>>;
547
+ }, z.core.$strip>;
548
+ };
549
+ /** The input and output of `batch_cards`. */
550
+ export declare const batchCardsTool: {
551
+ input: z.ZodObject<{
552
+ batch: z.ZodString;
553
+ except: z.ZodString;
554
+ only: z.ZodOptional<z.ZodArray<z.ZodString>>;
555
+ }, z.core.$strip>;
556
+ output: z.ZodObject<{
557
+ cards: z.ZodArray<z.ZodObject<{
558
+ id: z.ZodString;
559
+ title: z.ZodString;
560
+ url: z.ZodString;
561
+ description: z.ZodString;
562
+ }, z.core.$strip>>;
563
+ skipped: z.ZodOptional<z.ZodArray<z.ZodString>>;
564
+ }, z.core.$strip>;
565
+ };
566
+ /** The input and output of `count_sighting`. */
567
+ export declare const countSightingTool: {
568
+ input: z.ZodObject<{
569
+ card: z.ZodString;
570
+ seen_at: z.ZodExactOptional<z.ZodISODateTime>;
571
+ }, z.core.$strip>;
572
+ output: z.ZodObject<{
573
+ id: z.ZodString;
574
+ }, z.core.$strip>;
575
+ };
576
+ /** The input and output of `update_description` and of its lookup, `find_description`. */
577
+ export declare const descriptionTool: {
578
+ input: z.ZodObject<{
579
+ card: z.ZodString;
580
+ description: z.ZodString;
581
+ }, z.core.$strip>;
582
+ output: z.ZodObject<{
583
+ id: z.ZodString;
584
+ previous: z.ZodOptional<z.ZodString>;
585
+ }, z.core.$strip>;
586
+ };
587
+ /** The input and output of `assign` and of its lookup, `find_assignee`. */
588
+ export declare const assignTool: {
589
+ input: z.ZodObject<{
590
+ card: z.ZodString;
591
+ user: z.ZodString;
592
+ }, z.core.$strip>;
593
+ output: z.ZodObject<{
594
+ id: z.ZodString;
595
+ previous: z.ZodOptional<z.ZodString>;
596
+ }, z.core.$strip>;
597
+ };
598
+ /** The input and output of `restore_description` and of `restore_assignee`, which the engine calls with the undone call's output. */
599
+ export declare const restoreTool: {
600
+ input: z.ZodObject<{
601
+ stage_output: z.ZodObject<{
602
+ id: z.ZodString;
603
+ previous: z.ZodOptional<z.ZodString>;
604
+ }, z.core.$strip>;
605
+ }, z.core.$strip>;
606
+ output: z.ZodObject<{
607
+ id: z.ZodString;
608
+ }, z.core.$strip>;
609
+ };
610
+ /** The input and output of `hand_back`. */
611
+ export declare const handBackTool: {
612
+ input: z.ZodObject<{
613
+ card: z.ZodString;
614
+ }, z.core.$strip>;
615
+ output: z.ZodObject<{
616
+ id: z.ZodString;
617
+ to: z.ZodString;
618
+ previous: z.ZodString;
619
+ }, z.core.$strip>;
620
+ };