@fuzdev/fuz_gitops 0.78.0 → 0.79.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 (196) hide show
  1. package/README.md +91 -17
  2. package/dist/ModulesDetail.svelte +22 -27
  3. package/dist/ModulesDetail.svelte.d.ts.map +1 -1
  4. package/dist/ModulesNav.svelte +8 -5
  5. package/dist/ModulesNav.svelte.d.ts.map +1 -1
  6. package/dist/ModulesPage.svelte +3 -5
  7. package/dist/ModulesPage.svelte.d.ts.map +1 -1
  8. package/dist/PageFooter.svelte +2 -2
  9. package/dist/PageHeader.svelte +6 -6
  10. package/dist/PageHeader.svelte.d.ts +0 -3
  11. package/dist/PageHeader.svelte.d.ts.map +1 -1
  12. package/dist/PullRequestsDetail.svelte +29 -20
  13. package/dist/PullRequestsDetail.svelte.d.ts.map +1 -1
  14. package/dist/PullRequestsPage.svelte +4 -6
  15. package/dist/PullRequestsPage.svelte.d.ts.map +1 -1
  16. package/dist/ReposTable.svelte +43 -55
  17. package/dist/ReposTable.svelte.d.ts.map +1 -1
  18. package/dist/ReposTree.svelte +9 -21
  19. package/dist/ReposTree.svelte.d.ts.map +1 -1
  20. package/dist/ReposTreeNav.svelte +9 -12
  21. package/dist/ReposTreeNav.svelte.d.ts.map +1 -1
  22. package/dist/TablePage.svelte +3 -5
  23. package/dist/TablePage.svelte.d.ts.map +1 -1
  24. package/dist/TreeItemPage.svelte +3 -5
  25. package/dist/TreeItemPage.svelte.d.ts.map +1 -1
  26. package/dist/TreePage.svelte +3 -5
  27. package/dist/TreePage.svelte.d.ts.map +1 -1
  28. package/dist/changeset_generator.d.ts.map +1 -1
  29. package/dist/changeset_generator.js +2 -2
  30. package/dist/changeset_reader.d.ts.map +1 -1
  31. package/dist/changeset_reader.js +3 -3
  32. package/dist/ci_reconcile.d.ts +6 -10
  33. package/dist/ci_reconcile.d.ts.map +1 -1
  34. package/dist/ci_reconcile.js +6 -8
  35. package/dist/dependency_graph.d.ts +26 -49
  36. package/dist/dependency_graph.d.ts.map +1 -1
  37. package/dist/dependency_graph.js +40 -83
  38. package/dist/dependency_updater.d.ts +1 -1
  39. package/dist/dependency_updater.d.ts.map +1 -1
  40. package/dist/dependency_updater.js +14 -9
  41. package/dist/fetch_repo_data.d.ts +34 -8
  42. package/dist/fetch_repo_data.d.ts.map +1 -1
  43. package/dist/fetch_repo_data.js +44 -22
  44. package/dist/fs_fetch_value_cache.d.ts +1 -1
  45. package/dist/fs_fetch_value_cache.d.ts.map +1 -1
  46. package/dist/fs_fetch_value_cache.js +3 -3
  47. package/dist/git_operations.d.ts +6 -49
  48. package/dist/git_operations.d.ts.map +1 -1
  49. package/dist/git_operations.js +13 -126
  50. package/dist/github.d.ts +17 -2
  51. package/dist/github.d.ts.map +1 -1
  52. package/dist/github.js +17 -8
  53. package/dist/github_helpers.d.ts.map +1 -1
  54. package/dist/github_helpers.js +3 -11
  55. package/dist/gitops_analyze.task.d.ts +24 -2
  56. package/dist/gitops_analyze.task.d.ts.map +1 -1
  57. package/dist/gitops_analyze.task.js +47 -34
  58. package/dist/gitops_config.d.ts +34 -79
  59. package/dist/gitops_config.d.ts.map +1 -1
  60. package/dist/gitops_config.js +76 -53
  61. package/dist/gitops_constants.d.ts +6 -4
  62. package/dist/gitops_constants.d.ts.map +1 -1
  63. package/dist/gitops_constants.js +6 -4
  64. package/dist/gitops_plan.task.d.ts +29 -3
  65. package/dist/gitops_plan.task.d.ts.map +1 -1
  66. package/dist/gitops_plan.task.js +83 -61
  67. package/dist/gitops_publish.task.d.ts +62 -2
  68. package/dist/gitops_publish.task.d.ts.map +1 -1
  69. package/dist/gitops_publish.task.js +193 -105
  70. package/dist/gitops_run.task.d.ts +74 -0
  71. package/dist/gitops_run.task.d.ts.map +1 -1
  72. package/dist/gitops_run.task.js +176 -162
  73. package/dist/gitops_sync.task.d.ts +65 -3
  74. package/dist/gitops_sync.task.d.ts.map +1 -1
  75. package/dist/gitops_sync.task.js +163 -37
  76. package/dist/gitops_task_helpers.d.ts +86 -59
  77. package/dist/gitops_task_helpers.d.ts.map +1 -1
  78. package/dist/gitops_task_helpers.js +120 -79
  79. package/dist/gitops_validate.task.d.ts +1 -2
  80. package/dist/gitops_validate.task.d.ts.map +1 -1
  81. package/dist/gitops_validate.task.js +25 -32
  82. package/dist/graph_validation.d.ts +16 -27
  83. package/dist/graph_validation.d.ts.map +1 -1
  84. package/dist/graph_validation.js +24 -65
  85. package/dist/local_repo.d.ts +50 -62
  86. package/dist/local_repo.d.ts.map +1 -1
  87. package/dist/local_repo.js +83 -196
  88. package/dist/log_helpers.d.ts +8 -8
  89. package/dist/log_helpers.d.ts.map +1 -1
  90. package/dist/multi_repo_publisher.d.ts +10 -0
  91. package/dist/multi_repo_publisher.d.ts.map +1 -1
  92. package/dist/multi_repo_publisher.js +125 -61
  93. package/dist/npm_registry.d.ts +23 -19
  94. package/dist/npm_registry.d.ts.map +1 -1
  95. package/dist/npm_registry.js +21 -48
  96. package/dist/operations.d.ts +75 -180
  97. package/dist/operations.d.ts.map +1 -1
  98. package/dist/operations.js +15 -7
  99. package/dist/operations_defaults.d.ts +17 -2
  100. package/dist/operations_defaults.d.ts.map +1 -1
  101. package/dist/operations_defaults.js +111 -128
  102. package/dist/output_helpers.d.ts +36 -0
  103. package/dist/output_helpers.d.ts.map +1 -1
  104. package/dist/output_helpers.js +37 -3
  105. package/dist/preflight_checks.d.ts +20 -27
  106. package/dist/preflight_checks.d.ts.map +1 -1
  107. package/dist/preflight_checks.js +37 -126
  108. package/dist/publish_gate.d.ts.map +1 -1
  109. package/dist/publish_steps.d.ts +2 -4
  110. package/dist/publish_steps.d.ts.map +1 -1
  111. package/dist/publish_steps.js +4 -8
  112. package/dist/publishing_event.d.ts +2 -8
  113. package/dist/publishing_event.d.ts.map +1 -1
  114. package/dist/publishing_event.js +20 -17
  115. package/dist/publishing_event_handler.d.ts +10 -8
  116. package/dist/publishing_event_handler.d.ts.map +1 -1
  117. package/dist/publishing_event_handler.js +19 -17
  118. package/dist/publishing_plan.d.ts +16 -1
  119. package/dist/publishing_plan.d.ts.map +1 -1
  120. package/dist/publishing_plan.js +332 -254
  121. package/dist/publishing_plan_helpers.d.ts.map +1 -1
  122. package/dist/publishing_plan_helpers.js +3 -3
  123. package/dist/publishing_plan_logging.d.ts +1 -1
  124. package/dist/publishing_plan_logging.d.ts.map +1 -1
  125. package/dist/publishing_plan_logging.js +22 -15
  126. package/dist/repo.svelte.d.ts +7 -0
  127. package/dist/repo.svelte.d.ts.map +1 -1
  128. package/dist/repo.svelte.js +3 -0
  129. package/dist/repo_readiness.d.ts +210 -0
  130. package/dist/repo_readiness.d.ts.map +1 -0
  131. package/dist/repo_readiness.js +516 -0
  132. package/dist/repos_status.d.ts +3340 -0
  133. package/dist/repos_status.d.ts.map +1 -0
  134. package/dist/repos_status.js +555 -0
  135. package/dist/repos_status_load.d.ts +65 -0
  136. package/dist/repos_status_load.d.ts.map +1 -0
  137. package/dist/repos_status_load.js +131 -0
  138. package/dist/version_utils.js +1 -1
  139. package/package.json +15 -34
  140. package/src/lib/cargo_toml.ts +3 -3
  141. package/src/lib/changeset_generator.ts +19 -19
  142. package/src/lib/changeset_reader.ts +18 -18
  143. package/src/lib/ci_reconcile.ts +12 -16
  144. package/src/lib/dependency_graph.ts +61 -113
  145. package/src/lib/dependency_updater.ts +36 -30
  146. package/src/lib/fetch_repo_data.ts +71 -34
  147. package/src/lib/fs_fetch_value_cache.ts +15 -11
  148. package/src/lib/git_operations.ts +22 -194
  149. package/src/lib/github.ts +33 -21
  150. package/src/lib/github_helpers.ts +9 -16
  151. package/src/lib/gitops_analyze.task.ts +104 -66
  152. package/src/lib/gitops_config.ts +90 -139
  153. package/src/lib/gitops_constants.ts +6 -4
  154. package/src/lib/gitops_plan.task.ts +128 -76
  155. package/src/lib/gitops_publish.task.ts +280 -144
  156. package/src/lib/gitops_run.task.ts +265 -193
  157. package/src/lib/gitops_sync.task.ts +236 -52
  158. package/src/lib/gitops_task_helpers.ts +170 -114
  159. package/src/lib/gitops_validate.task.ts +44 -54
  160. package/src/lib/graph_validation.ts +28 -89
  161. package/src/lib/local_repo.ts +128 -335
  162. package/src/lib/log_helpers.ts +18 -28
  163. package/src/lib/multi_repo_publisher.ts +192 -110
  164. package/src/lib/npm_registry.ts +42 -67
  165. package/src/lib/operations.ts +99 -160
  166. package/src/lib/operations_defaults.ts +157 -201
  167. package/src/lib/output_helpers.ts +58 -6
  168. package/src/lib/preflight_checks.ts +52 -188
  169. package/src/lib/publish_gate.ts +7 -9
  170. package/src/lib/publish_steps.ts +27 -25
  171. package/src/lib/publishing_event.ts +26 -23
  172. package/src/lib/publishing_event_handler.ts +24 -22
  173. package/src/lib/publishing_plan.ts +474 -310
  174. package/src/lib/publishing_plan_helpers.ts +16 -12
  175. package/src/lib/publishing_plan_logging.ts +53 -44
  176. package/src/lib/repo.svelte.ts +16 -8
  177. package/src/lib/repo_readiness.ts +647 -0
  178. package/src/lib/repos_status.ts +671 -0
  179. package/src/lib/repos_status_load.ts +173 -0
  180. package/src/lib/version_utils.ts +3 -3
  181. package/dist/config_reconcile.d.ts +0 -46
  182. package/dist/config_reconcile.d.ts.map +0 -1
  183. package/dist/config_reconcile.js +0 -60
  184. package/dist/paths.d.ts +0 -7
  185. package/dist/paths.d.ts.map +0 -1
  186. package/dist/paths.js +0 -6
  187. package/dist/repo_ops.d.ts +0 -59
  188. package/dist/repo_ops.d.ts.map +0 -1
  189. package/dist/repo_ops.js +0 -170
  190. package/dist/resolved_gitops_config.d.ts +0 -9
  191. package/dist/resolved_gitops_config.d.ts.map +0 -1
  192. package/dist/resolved_gitops_config.js +0 -12
  193. package/src/lib/config_reconcile.ts +0 -94
  194. package/src/lib/paths.ts +0 -6
  195. package/src/lib/repo_ops.ts +0 -216
  196. package/src/lib/resolved_gitops_config.ts +0 -27
@@ -0,0 +1,3340 @@
1
+ /**
2
+ * Zod schemas for the `repos status --json` document, the report the Rust
3
+ * `repos` tool (`crates/fuz_repos`) prints, and the error document it prints
4
+ * in place of the report on a fatal error.
5
+ *
6
+ * The schemas mirror the Rust types by hand, each named as its Rust type
7
+ * prefixed `Repos` (`EntryStatus` is `ReposEntryStatus`), with fields as
8
+ * serde writes them: snake_case, a tagged enum as an object whose `kind`
9
+ * names its variant, an `Option` as `null` (never omitted), counts as
10
+ * integers, and times as unix seconds. A flattened enum's `kind`
11
+ * and payload sit beside its struct's own fields, so those structs are
12
+ * unions here (`ReposUnregisteredClone`, `ReposStatusErrorBody`) — or, for
13
+ * an enum with no payloads, an object whose `kind` is an enum
14
+ * (`ReposProbeError`). Where a
15
+ * Rust enum holds variants the status document never carries, the mirror
16
+ * leaves them out: `ReposFetchFailure` has no push rejection, and
17
+ * `ReposStatusErrorBody` holds only the errors `repos status --json` can
18
+ * print.
19
+ *
20
+ * Every object is strict and every union closed, so a field or variant the
21
+ * mirror doesn't know fails the parse. The Rust side bumps `version` on any
22
+ * change to the document's shape; a consumer checks it first, and on a
23
+ * mismatch reports both versions and how to install the binary this repo
24
+ * builds (`cargo install --path crates/fuz_repos --locked`) rather than a
25
+ * parse error.
26
+ *
27
+ * Drift is caught by the golden fixtures: a Rust test writes every status
28
+ * document shape to `src/test/fixtures/repos_status/`, covering every
29
+ * variant the status report and its error document can hold, and a TS test
30
+ * parses each with these schemas. The field semantics live in the Rust
31
+ * rustdoc and the JSON contract in `docs/repos.md`. The `repos sync --json`
32
+ * and `repos push --json` documents have no TS consumer and aren't
33
+ * mirrored here.
34
+ *
35
+ * @module
36
+ */
37
+ import { z } from 'zod';
38
+ /**
39
+ * The `repos status --json` document's format version, Rust's
40
+ * `STATUS_FORMAT_VERSION`: the one these schemas parse.
41
+ */
42
+ export declare const REPOS_STATUS_FORMAT_VERSION = 18;
43
+ /** Where a live Claude Code session was recorded. */
44
+ export declare const ReposSessionSource: z.ZodEnum<{
45
+ session_file: "session_file";
46
+ roster_worker: "roster_worker";
47
+ }>;
48
+ export type ReposSessionSource = z.infer<typeof ReposSessionSource>;
49
+ /** A live Claude Code session: its process, and where it works. */
50
+ export declare const ReposSession: z.ZodObject<{
51
+ pid: z.ZodNumber;
52
+ cwd: z.ZodString;
53
+ worktree: z.ZodNullable<z.ZodString>;
54
+ process_cwd: z.ZodNullable<z.ZodString>;
55
+ source: z.ZodEnum<{
56
+ session_file: "session_file";
57
+ roster_worker: "roster_worker";
58
+ }>;
59
+ }, z.core.$strict>;
60
+ export type ReposSession = z.infer<typeof ReposSession>;
61
+ /** Why busy detection can't vouch for every live session. */
62
+ export declare const ReposUnavailable: z.ZodDiscriminatedUnion<[z.ZodObject<{
63
+ kind: z.ZodLiteral<"home_unknown">;
64
+ }, z.core.$strict>, z.ZodObject<{
65
+ kind: z.ZodLiteral<"relative_config_dir">;
66
+ path: z.ZodString;
67
+ }, z.core.$strict>, z.ZodObject<{
68
+ kind: z.ZodLiteral<"unreadable">;
69
+ path: z.ZodString;
70
+ error: z.ZodString;
71
+ }, z.core.$strict>, z.ZodObject<{
72
+ kind: z.ZodLiteral<"unparseable">;
73
+ path: z.ZodString;
74
+ error: z.ZodString;
75
+ }, z.core.$strict>, z.ZodObject<{
76
+ kind: z.ZodLiteral<"foreign_pid_domain">;
77
+ path: z.ZodString;
78
+ pid_domain: z.ZodString;
79
+ source: z.ZodEnum<{
80
+ session_file: "session_file";
81
+ roster_worker: "roster_worker";
82
+ }>;
83
+ }, z.core.$strict>], "kind">;
84
+ export type ReposUnavailable = z.infer<typeof ReposUnavailable>;
85
+ /** Busy detection as the report carries it. */
86
+ export declare const ReposSessions: z.ZodDiscriminatedUnion<[z.ZodObject<{
87
+ kind: z.ZodLiteral<"available">;
88
+ unscoped: z.ZodArray<z.ZodObject<{
89
+ pid: z.ZodNumber;
90
+ cwd: z.ZodString;
91
+ worktree: z.ZodNullable<z.ZodString>;
92
+ process_cwd: z.ZodNullable<z.ZodString>;
93
+ source: z.ZodEnum<{
94
+ session_file: "session_file";
95
+ roster_worker: "roster_worker";
96
+ }>;
97
+ }, z.core.$strict>>;
98
+ }, z.core.$strict>, z.ZodObject<{
99
+ kind: z.ZodLiteral<"unavailable">;
100
+ reason: z.ZodDiscriminatedUnion<[z.ZodObject<{
101
+ kind: z.ZodLiteral<"home_unknown">;
102
+ }, z.core.$strict>, z.ZodObject<{
103
+ kind: z.ZodLiteral<"relative_config_dir">;
104
+ path: z.ZodString;
105
+ }, z.core.$strict>, z.ZodObject<{
106
+ kind: z.ZodLiteral<"unreadable">;
107
+ path: z.ZodString;
108
+ error: z.ZodString;
109
+ }, z.core.$strict>, z.ZodObject<{
110
+ kind: z.ZodLiteral<"unparseable">;
111
+ path: z.ZodString;
112
+ error: z.ZodString;
113
+ }, z.core.$strict>, z.ZodObject<{
114
+ kind: z.ZodLiteral<"foreign_pid_domain">;
115
+ path: z.ZodString;
116
+ pid_domain: z.ZodString;
117
+ source: z.ZodEnum<{
118
+ session_file: "session_file";
119
+ roster_worker: "roster_worker";
120
+ }>;
121
+ }, z.core.$strict>], "kind">;
122
+ }, z.core.$strict>], "kind">;
123
+ export type ReposSessions = z.infer<typeof ReposSessions>;
124
+ /** Which registry table an entry comes from. */
125
+ export declare const ReposEntryKind: z.ZodEnum<{
126
+ repo: "repo";
127
+ reference: "reference";
128
+ }>;
129
+ export type ReposEntryKind = z.infer<typeof ReposEntryKind>;
130
+ /** A repo's declared visibility on its host. */
131
+ export declare const ReposVisibility: z.ZodEnum<{
132
+ private: "private";
133
+ public: "public";
134
+ }>;
135
+ export type ReposVisibility = z.infer<typeof ReposVisibility>;
136
+ /** A repo's list of the sibling checkouts it uses. */
137
+ export declare const ReposCheckoutList: z.ZodEnum<{
138
+ requires: "requires";
139
+ consults: "consults";
140
+ }>;
141
+ export type ReposCheckoutList = z.infer<typeof ReposCheckoutList>;
142
+ /** An entry by table and key. */
143
+ export declare const ReposEntryName: z.ZodObject<{
144
+ kind: z.ZodEnum<{
145
+ repo: "repo";
146
+ reference: "reference";
147
+ }>;
148
+ key: z.ZodString;
149
+ }, z.core.$strict>;
150
+ export type ReposEntryName = z.infer<typeof ReposEntryName>;
151
+ /** A registry integrity rule broken. */
152
+ export declare const ReposRegistryIssue: z.ZodDiscriminatedUnion<[z.ZodObject<{
153
+ kind: z.ZodLiteral<"repo_not_owned">;
154
+ key: z.ZodString;
155
+ account: z.ZodString;
156
+ }, z.core.$strict>, z.ZodObject<{
157
+ kind: z.ZodLiteral<"fork_not_owned">;
158
+ key: z.ZodString;
159
+ }, z.core.$strict>, z.ZodObject<{
160
+ kind: z.ZodLiteral<"dir_not_a_name">;
161
+ entry: z.ZodObject<{
162
+ kind: z.ZodEnum<{
163
+ repo: "repo";
164
+ reference: "reference";
165
+ }>;
166
+ key: z.ZodString;
167
+ }, z.core.$strict>;
168
+ dir: z.ZodString;
169
+ }, z.core.$strict>, z.ZodObject<{
170
+ kind: z.ZodLiteral<"dir_claimed_twice">;
171
+ dir: z.ZodString;
172
+ first: z.ZodObject<{
173
+ kind: z.ZodEnum<{
174
+ repo: "repo";
175
+ reference: "reference";
176
+ }>;
177
+ key: z.ZodString;
178
+ }, z.core.$strict>;
179
+ second: z.ZodObject<{
180
+ kind: z.ZodEnum<{
181
+ repo: "repo";
182
+ reference: "reference";
183
+ }>;
184
+ key: z.ZodString;
185
+ }, z.core.$strict>;
186
+ }, z.core.$strict>, z.ZodObject<{
187
+ kind: z.ZodLiteral<"key_in_both">;
188
+ key: z.ZodString;
189
+ }, z.core.$strict>, z.ZodObject<{
190
+ kind: z.ZodLiteral<"key_is_other_dir">;
191
+ key: z.ZodString;
192
+ entry: z.ZodObject<{
193
+ kind: z.ZodEnum<{
194
+ repo: "repo";
195
+ reference: "reference";
196
+ }>;
197
+ key: z.ZodString;
198
+ }, z.core.$strict>;
199
+ }, z.core.$strict>, z.ZodObject<{
200
+ kind: z.ZodLiteral<"unknown_checkout_ref">;
201
+ key: z.ZodString;
202
+ field: z.ZodEnum<{
203
+ requires: "requires";
204
+ consults: "consults";
205
+ }>;
206
+ target: z.ZodString;
207
+ }, z.core.$strict>, z.ZodObject<{
208
+ kind: z.ZodLiteral<"self_ref">;
209
+ key: z.ZodString;
210
+ field: z.ZodEnum<{
211
+ requires: "requires";
212
+ consults: "consults";
213
+ }>;
214
+ }, z.core.$strict>, z.ZodObject<{
215
+ kind: z.ZodLiteral<"requires_and_consults">;
216
+ key: z.ZodString;
217
+ target: z.ZodString;
218
+ }, z.core.$strict>], "kind">;
219
+ export type ReposRegistryIssue = z.infer<typeof ReposRegistryIssue>;
220
+ /** What holds a branch's action back. */
221
+ export declare const ReposBranchHold: z.ZodEnum<{
222
+ entry: "entry";
223
+ pinned: "pinned";
224
+ push_url: "push_url";
225
+ fetch_failed: "fetch_failed";
226
+ dirty_checkout: "dirty_checkout";
227
+ unprobed_worktree: "unprobed_worktree";
228
+ several_checkouts: "several_checkouts";
229
+ busy: "busy";
230
+ busy_unknown: "busy_unknown";
231
+ }>;
232
+ export type ReposBranchHold = z.infer<typeof ReposBranchHold>;
233
+ /** What holds a reference's refresh back. */
234
+ export declare const ReposRefreshHold: z.ZodEnum<{
235
+ entry: "entry";
236
+ pinned: "pinned";
237
+ origin_not_https: "origin_not_https";
238
+ }>;
239
+ export type ReposRefreshHold = z.infer<typeof ReposRefreshHold>;
240
+ /** What holds a missing entry's clone back. */
241
+ export declare const ReposCloneHold: z.ZodEnum<{
242
+ entry: "entry";
243
+ unprobed_worktree: "unprobed_worktree";
244
+ busy: "busy";
245
+ }>;
246
+ export type ReposCloneHold = z.infer<typeof ReposCloneHold>;
247
+ /** What a run does about refreshing a third-party reference or a pin. */
248
+ export declare const ReposRefreshVerdict: z.ZodDiscriminatedUnion<[z.ZodObject<{
249
+ kind: z.ZodLiteral<"act">;
250
+ }, z.core.$strict>, z.ZodObject<{
251
+ kind: z.ZodLiteral<"held">;
252
+ by: z.ZodEnum<{
253
+ entry: "entry";
254
+ pinned: "pinned";
255
+ origin_not_https: "origin_not_https";
256
+ }>;
257
+ }, z.core.$strict>], "kind">;
258
+ export type ReposRefreshVerdict = z.infer<typeof ReposRefreshVerdict>;
259
+ /** Whether a repo is at the entry's dir. */
260
+ export declare const ReposPresence: z.ZodDiscriminatedUnion<[z.ZodObject<{
261
+ kind: z.ZodLiteral<"present">;
262
+ }, z.core.$strict>, z.ZodObject<{
263
+ kind: z.ZodLiteral<"missing">;
264
+ }, z.core.$strict>, z.ZodObject<{
265
+ kind: z.ZodLiteral<"not_a_repo">;
266
+ }, z.core.$strict>], "kind">;
267
+ export type ReposPresence = z.infer<typeof ReposPresence>;
268
+ /** How sync would clone a missing entry. */
269
+ export declare const ReposCloneRecipe: z.ZodObject<{
270
+ url: z.ZodString;
271
+ branch: z.ZodNullable<z.ZodString>;
272
+ shallow: z.ZodBoolean;
273
+ sparse: z.ZodNullable<z.ZodString>;
274
+ }, z.core.$strict>;
275
+ export type ReposCloneRecipe = z.infer<typeof ReposCloneRecipe>;
276
+ /** What sync does about a missing entry: clone it, or why not yet. */
277
+ export declare const ReposCloneVerdict: z.ZodDiscriminatedUnion<[z.ZodObject<{
278
+ kind: z.ZodLiteral<"act">;
279
+ recipe: z.ZodObject<{
280
+ url: z.ZodString;
281
+ branch: z.ZodNullable<z.ZodString>;
282
+ shallow: z.ZodBoolean;
283
+ sparse: z.ZodNullable<z.ZodString>;
284
+ }, z.core.$strict>;
285
+ }, z.core.$strict>, z.ZodObject<{
286
+ kind: z.ZodLiteral<"held">;
287
+ recipe: z.ZodObject<{
288
+ url: z.ZodString;
289
+ branch: z.ZodNullable<z.ZodString>;
290
+ shallow: z.ZodBoolean;
291
+ sparse: z.ZodNullable<z.ZodString>;
292
+ }, z.core.$strict>;
293
+ by: z.ZodEnum<{
294
+ entry: "entry";
295
+ unprobed_worktree: "unprobed_worktree";
296
+ busy: "busy";
297
+ }>;
298
+ }, z.core.$strict>], "kind">;
299
+ export type ReposCloneVerdict = z.infer<typeof ReposCloneVerdict>;
300
+ /** A sync action on a branch. */
301
+ export declare const ReposSyncAction: z.ZodDiscriminatedUnion<[z.ZodObject<{
302
+ kind: z.ZodLiteral<"push">;
303
+ commits: z.ZodNumber;
304
+ }, z.core.$strict>, z.ZodObject<{
305
+ kind: z.ZodLiteral<"fast_forward">;
306
+ commits: z.ZodNumber;
307
+ }, z.core.$strict>, z.ZodObject<{
308
+ kind: z.ZodLiteral<"move">;
309
+ }, z.core.$strict>], "kind">;
310
+ export type ReposSyncAction = z.infer<typeof ReposSyncAction>;
311
+ /** Why a branch is left to a person. */
312
+ export declare const ReposBranchNeedsHuman: z.ZodEnum<{
313
+ diverged: "diverged";
314
+ unmapped: "unmapped";
315
+ archived_ahead: "archived_ahead";
316
+ shallow_local_work: "shallow_local_work";
317
+ upstream_not_a_branch: "upstream_not_a_branch";
318
+ }>;
319
+ export type ReposBranchNeedsHuman = z.infer<typeof ReposBranchNeedsHuman>;
320
+ /** Why a branch reads as cleanup. */
321
+ export declare const ReposCleanupReason: z.ZodEnum<{
322
+ merged: "merged";
323
+ upstream_gone: "upstream_gone";
324
+ }>;
325
+ export type ReposCleanupReason = z.infer<typeof ReposCleanupReason>;
326
+ /** What sync does about a branch. */
327
+ export declare const ReposVerdict: z.ZodDiscriminatedUnion<[z.ZodObject<{
328
+ kind: z.ZodLiteral<"quiet">;
329
+ }, z.core.$strict>, z.ZodObject<{
330
+ kind: z.ZodLiteral<"act">;
331
+ action: z.ZodDiscriminatedUnion<[z.ZodObject<{
332
+ kind: z.ZodLiteral<"push">;
333
+ commits: z.ZodNumber;
334
+ }, z.core.$strict>, z.ZodObject<{
335
+ kind: z.ZodLiteral<"fast_forward">;
336
+ commits: z.ZodNumber;
337
+ }, z.core.$strict>, z.ZodObject<{
338
+ kind: z.ZodLiteral<"move">;
339
+ }, z.core.$strict>], "kind">;
340
+ }, z.core.$strict>, z.ZodObject<{
341
+ kind: z.ZodLiteral<"held">;
342
+ action: z.ZodDiscriminatedUnion<[z.ZodObject<{
343
+ kind: z.ZodLiteral<"push">;
344
+ commits: z.ZodNumber;
345
+ }, z.core.$strict>, z.ZodObject<{
346
+ kind: z.ZodLiteral<"fast_forward">;
347
+ commits: z.ZodNumber;
348
+ }, z.core.$strict>, z.ZodObject<{
349
+ kind: z.ZodLiteral<"move">;
350
+ }, z.core.$strict>], "kind">;
351
+ by: z.ZodEnum<{
352
+ entry: "entry";
353
+ pinned: "pinned";
354
+ push_url: "push_url";
355
+ fetch_failed: "fetch_failed";
356
+ dirty_checkout: "dirty_checkout";
357
+ unprobed_worktree: "unprobed_worktree";
358
+ several_checkouts: "several_checkouts";
359
+ busy: "busy";
360
+ busy_unknown: "busy_unknown";
361
+ }>;
362
+ }, z.core.$strict>, z.ZodObject<{
363
+ kind: z.ZodLiteral<"needs_human">;
364
+ reason: z.ZodEnum<{
365
+ diverged: "diverged";
366
+ unmapped: "unmapped";
367
+ archived_ahead: "archived_ahead";
368
+ shallow_local_work: "shallow_local_work";
369
+ upstream_not_a_branch: "upstream_not_a_branch";
370
+ }>;
371
+ }, z.core.$strict>, z.ZodObject<{
372
+ kind: z.ZodLiteral<"local_only">;
373
+ }, z.core.$strict>, z.ZodObject<{
374
+ kind: z.ZodLiteral<"cleanup">;
375
+ reason: z.ZodEnum<{
376
+ merged: "merged";
377
+ upstream_gone: "upstream_gone";
378
+ }>;
379
+ removable_worktree: z.ZodNullable<z.ZodString>;
380
+ }, z.core.$strict>], "kind">;
381
+ export type ReposVerdict = z.infer<typeof ReposVerdict>;
382
+ /** A clone's shape: shallow, sparse, or partial. */
383
+ export declare const ReposLayout: z.ZodObject<{
384
+ shallow: z.ZodBoolean;
385
+ sparse: z.ZodBoolean;
386
+ partial_filter: z.ZodNullable<z.ZodString>;
387
+ }, z.core.$strict>;
388
+ export type ReposLayout = z.infer<typeof ReposLayout>;
389
+ /**
390
+ * A checkout's HEAD: a probed checkout's, an unprobed worktree's, or an
391
+ * unlisted git dir's — the last two `null` when it can't be read.
392
+ */
393
+ export declare const ReposHead: z.ZodDiscriminatedUnion<[z.ZodObject<{
394
+ kind: z.ZodLiteral<"branch">;
395
+ name: z.ZodString;
396
+ }, z.core.$strict>, z.ZodObject<{
397
+ kind: z.ZodLiteral<"detached">;
398
+ commit: z.ZodString;
399
+ }, z.core.$strict>], "kind">;
400
+ export type ReposHead = z.infer<typeof ReposHead>;
401
+ /** A checkout's uncommitted work, by kind. */
402
+ export declare const ReposUncommitted: z.ZodObject<{
403
+ staged: z.ZodNumber;
404
+ unstaged: z.ZodNumber;
405
+ untracked: z.ZodNumber;
406
+ conflicted: z.ZodNumber;
407
+ }, z.core.$strict>;
408
+ export type ReposUncommitted = z.infer<typeof ReposUncommitted>;
409
+ /** A git operation in progress. */
410
+ export declare const ReposInProgressOp: z.ZodEnum<{
411
+ rebase: "rebase";
412
+ merge: "merge";
413
+ cherry_pick: "cherry_pick";
414
+ revert: "revert";
415
+ bisect: "bisect";
416
+ sequencer: "sequencer";
417
+ am: "am";
418
+ }>;
419
+ export type ReposInProgressOp = z.infer<typeof ReposInProgressOp>;
420
+ /** One checkout of a repo: its primary, or a linked worktree probed. */
421
+ export declare const ReposCheckout: z.ZodObject<{
422
+ path: z.ZodString;
423
+ primary: z.ZodBoolean;
424
+ head: z.ZodDiscriminatedUnion<[z.ZodObject<{
425
+ kind: z.ZodLiteral<"branch">;
426
+ name: z.ZodString;
427
+ }, z.core.$strict>, z.ZodObject<{
428
+ kind: z.ZodLiteral<"detached">;
429
+ commit: z.ZodString;
430
+ }, z.core.$strict>], "kind">;
431
+ uncommitted: z.ZodObject<{
432
+ staged: z.ZodNumber;
433
+ unstaged: z.ZodNumber;
434
+ untracked: z.ZodNumber;
435
+ conflicted: z.ZodNumber;
436
+ }, z.core.$strict>;
437
+ in_progress: z.ZodNullable<z.ZodEnum<{
438
+ rebase: "rebase";
439
+ merge: "merge";
440
+ cherry_pick: "cherry_pick";
441
+ revert: "revert";
442
+ bisect: "bisect";
443
+ sequencer: "sequencer";
444
+ am: "am";
445
+ }>>;
446
+ locked: z.ZodBoolean;
447
+ linked: z.ZodBoolean;
448
+ submodules: z.ZodNullable<z.ZodBoolean>;
449
+ busy: z.ZodArray<z.ZodObject<{
450
+ pid: z.ZodNumber;
451
+ cwd: z.ZodString;
452
+ worktree: z.ZodNullable<z.ZodString>;
453
+ process_cwd: z.ZodNullable<z.ZodString>;
454
+ source: z.ZodEnum<{
455
+ session_file: "session_file";
456
+ roster_worker: "roster_worker";
457
+ }>;
458
+ }, z.core.$strict>>;
459
+ }, z.core.$strict>;
460
+ export type ReposCheckout = z.infer<typeof ReposCheckout>;
461
+ /** A branch's relation to its upstream. */
462
+ export declare const ReposRelation: z.ZodDiscriminatedUnion<[z.ZodObject<{
463
+ kind: z.ZodLiteral<"in_sync">;
464
+ }, z.core.$strict>, z.ZodObject<{
465
+ kind: z.ZodLiteral<"ahead">;
466
+ commits: z.ZodNumber;
467
+ }, z.core.$strict>, z.ZodObject<{
468
+ kind: z.ZodLiteral<"behind">;
469
+ commits: z.ZodNumber;
470
+ }, z.core.$strict>, z.ZodObject<{
471
+ kind: z.ZodLiteral<"diverged">;
472
+ ahead: z.ZodNumber;
473
+ behind: z.ZodNumber;
474
+ }, z.core.$strict>, z.ZodObject<{
475
+ kind: z.ZodLiteral<"shallow">;
476
+ }, z.core.$strict>, z.ZodObject<{
477
+ kind: z.ZodLiteral<"gone">;
478
+ }, z.core.$strict>, z.ZodObject<{
479
+ kind: z.ZodLiteral<"unmapped">;
480
+ }, z.core.$strict>, z.ZodObject<{
481
+ kind: z.ZodLiteral<"untracked">;
482
+ }, z.core.$strict>], "kind">;
483
+ export type ReposRelation = z.infer<typeof ReposRelation>;
484
+ /** One local branch and its verdict. */
485
+ export declare const ReposBranchStatus: z.ZodObject<{
486
+ name: z.ZodString;
487
+ upstream: z.ZodNullable<z.ZodString>;
488
+ worktree: z.ZodNullable<z.ZodString>;
489
+ symref: z.ZodNullable<z.ZodString>;
490
+ unique_commits: z.ZodNumber;
491
+ newest_commit_at: z.ZodNumber;
492
+ relation: z.ZodDiscriminatedUnion<[z.ZodObject<{
493
+ kind: z.ZodLiteral<"in_sync">;
494
+ }, z.core.$strict>, z.ZodObject<{
495
+ kind: z.ZodLiteral<"ahead">;
496
+ commits: z.ZodNumber;
497
+ }, z.core.$strict>, z.ZodObject<{
498
+ kind: z.ZodLiteral<"behind">;
499
+ commits: z.ZodNumber;
500
+ }, z.core.$strict>, z.ZodObject<{
501
+ kind: z.ZodLiteral<"diverged">;
502
+ ahead: z.ZodNumber;
503
+ behind: z.ZodNumber;
504
+ }, z.core.$strict>, z.ZodObject<{
505
+ kind: z.ZodLiteral<"shallow">;
506
+ }, z.core.$strict>, z.ZodObject<{
507
+ kind: z.ZodLiteral<"gone">;
508
+ }, z.core.$strict>, z.ZodObject<{
509
+ kind: z.ZodLiteral<"unmapped">;
510
+ }, z.core.$strict>, z.ZodObject<{
511
+ kind: z.ZodLiteral<"untracked">;
512
+ }, z.core.$strict>], "kind">;
513
+ verdict: z.ZodDiscriminatedUnion<[z.ZodObject<{
514
+ kind: z.ZodLiteral<"quiet">;
515
+ }, z.core.$strict>, z.ZodObject<{
516
+ kind: z.ZodLiteral<"act">;
517
+ action: z.ZodDiscriminatedUnion<[z.ZodObject<{
518
+ kind: z.ZodLiteral<"push">;
519
+ commits: z.ZodNumber;
520
+ }, z.core.$strict>, z.ZodObject<{
521
+ kind: z.ZodLiteral<"fast_forward">;
522
+ commits: z.ZodNumber;
523
+ }, z.core.$strict>, z.ZodObject<{
524
+ kind: z.ZodLiteral<"move">;
525
+ }, z.core.$strict>], "kind">;
526
+ }, z.core.$strict>, z.ZodObject<{
527
+ kind: z.ZodLiteral<"held">;
528
+ action: z.ZodDiscriminatedUnion<[z.ZodObject<{
529
+ kind: z.ZodLiteral<"push">;
530
+ commits: z.ZodNumber;
531
+ }, z.core.$strict>, z.ZodObject<{
532
+ kind: z.ZodLiteral<"fast_forward">;
533
+ commits: z.ZodNumber;
534
+ }, z.core.$strict>, z.ZodObject<{
535
+ kind: z.ZodLiteral<"move">;
536
+ }, z.core.$strict>], "kind">;
537
+ by: z.ZodEnum<{
538
+ entry: "entry";
539
+ pinned: "pinned";
540
+ push_url: "push_url";
541
+ fetch_failed: "fetch_failed";
542
+ dirty_checkout: "dirty_checkout";
543
+ unprobed_worktree: "unprobed_worktree";
544
+ several_checkouts: "several_checkouts";
545
+ busy: "busy";
546
+ busy_unknown: "busy_unknown";
547
+ }>;
548
+ }, z.core.$strict>, z.ZodObject<{
549
+ kind: z.ZodLiteral<"needs_human">;
550
+ reason: z.ZodEnum<{
551
+ diverged: "diverged";
552
+ unmapped: "unmapped";
553
+ archived_ahead: "archived_ahead";
554
+ shallow_local_work: "shallow_local_work";
555
+ upstream_not_a_branch: "upstream_not_a_branch";
556
+ }>;
557
+ }, z.core.$strict>, z.ZodObject<{
558
+ kind: z.ZodLiteral<"local_only">;
559
+ }, z.core.$strict>, z.ZodObject<{
560
+ kind: z.ZodLiteral<"cleanup">;
561
+ reason: z.ZodEnum<{
562
+ merged: "merged";
563
+ upstream_gone: "upstream_gone";
564
+ }>;
565
+ removable_worktree: z.ZodNullable<z.ZodString>;
566
+ }, z.core.$strict>], "kind">;
567
+ }, z.core.$strict>;
568
+ export type ReposBranchStatus = z.infer<typeof ReposBranchStatus>;
569
+ /** Whether an entry's primary checkout sits where the registry puts it. */
570
+ export declare const ReposAtRest: z.ZodObject<{
571
+ on_branch: z.ZodNullable<z.ZodBoolean>;
572
+ clean: z.ZodBoolean;
573
+ idle: z.ZodBoolean;
574
+ followed: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
575
+ kind: z.ZodLiteral<"in_sync">;
576
+ }, z.core.$strict>, z.ZodObject<{
577
+ kind: z.ZodLiteral<"ahead">;
578
+ commits: z.ZodNumber;
579
+ }, z.core.$strict>, z.ZodObject<{
580
+ kind: z.ZodLiteral<"behind">;
581
+ commits: z.ZodNumber;
582
+ }, z.core.$strict>, z.ZodObject<{
583
+ kind: z.ZodLiteral<"diverged">;
584
+ ahead: z.ZodNumber;
585
+ behind: z.ZodNumber;
586
+ }, z.core.$strict>, z.ZodObject<{
587
+ kind: z.ZodLiteral<"shallow">;
588
+ }, z.core.$strict>, z.ZodObject<{
589
+ kind: z.ZodLiteral<"gone">;
590
+ }, z.core.$strict>, z.ZodObject<{
591
+ kind: z.ZodLiteral<"unmapped">;
592
+ }, z.core.$strict>, z.ZodObject<{
593
+ kind: z.ZodLiteral<"untracked">;
594
+ }, z.core.$strict>], "kind">>;
595
+ }, z.core.$strict>;
596
+ export type ReposAtRest = z.infer<typeof ReposAtRest>;
597
+ /** Why a worktree wasn't probed. */
598
+ export declare const ReposUnprobedWhy: z.ZodDiscriminatedUnion<[z.ZodObject<{
599
+ kind: z.ZodLiteral<"prunable">;
600
+ }, z.core.$strict>, z.ZodObject<{
601
+ kind: z.ZodLiteral<"missing">;
602
+ }, z.core.$strict>, z.ZodObject<{
603
+ kind: z.ZodLiteral<"failed">;
604
+ error: z.ZodString;
605
+ }, z.core.$strict>], "kind">;
606
+ export type ReposUnprobedWhy = z.infer<typeof ReposUnprobedWhy>;
607
+ /** What an unprobed worktree's git dir holds that a prune would lose. */
608
+ export declare const ReposGitDirHolds: z.ZodObject<{
609
+ submodules: z.ZodBoolean;
610
+ worktree_refs: z.ZodBoolean;
611
+ staged: z.ZodNullable<z.ZodBoolean>;
612
+ }, z.core.$strict>;
613
+ export type ReposGitDirHolds = z.infer<typeof ReposGitDirHolds>;
614
+ /** What pruning an unprobed worktree would lose. */
615
+ export declare const ReposPruneLoss: z.ZodDiscriminatedUnion<[z.ZodObject<{
616
+ kind: z.ZodLiteral<"operation">;
617
+ op: z.ZodEnum<{
618
+ rebase: "rebase";
619
+ merge: "merge";
620
+ cherry_pick: "cherry_pick";
621
+ revert: "revert";
622
+ bisect: "bisect";
623
+ sequencer: "sequencer";
624
+ am: "am";
625
+ }>;
626
+ }, z.core.$strict>, z.ZodObject<{
627
+ kind: z.ZodLiteral<"detached_head">;
628
+ }, z.core.$strict>, z.ZodObject<{
629
+ kind: z.ZodLiteral<"unknown_head">;
630
+ }, z.core.$strict>, z.ZodObject<{
631
+ kind: z.ZodLiteral<"missing_branch">;
632
+ name: z.ZodString;
633
+ }, z.core.$strict>, z.ZodObject<{
634
+ kind: z.ZodLiteral<"submodules">;
635
+ }, z.core.$strict>, z.ZodObject<{
636
+ kind: z.ZodLiteral<"worktree_refs">;
637
+ }, z.core.$strict>, z.ZodObject<{
638
+ kind: z.ZodLiteral<"staged_changes">;
639
+ }, z.core.$strict>, z.ZodObject<{
640
+ kind: z.ZodLiteral<"unmatched_git_dir">;
641
+ }, z.core.$strict>, z.ZodObject<{
642
+ kind: z.ZodLiteral<"relative_gitdir">;
643
+ git_dir: z.ZodString;
644
+ }, z.core.$strict>], "kind">;
645
+ export type ReposPruneLoss = z.infer<typeof ReposPruneLoss>;
646
+ /** Whether pruning an unprobed worktree is safe. */
647
+ export declare const ReposPrune: z.ZodDiscriminatedUnion<[z.ZodObject<{
648
+ kind: z.ZodLiteral<"safe">;
649
+ }, z.core.$strict>, z.ZodObject<{
650
+ kind: z.ZodLiteral<"loses">;
651
+ losses: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
652
+ kind: z.ZodLiteral<"operation">;
653
+ op: z.ZodEnum<{
654
+ rebase: "rebase";
655
+ merge: "merge";
656
+ cherry_pick: "cherry_pick";
657
+ revert: "revert";
658
+ bisect: "bisect";
659
+ sequencer: "sequencer";
660
+ am: "am";
661
+ }>;
662
+ }, z.core.$strict>, z.ZodObject<{
663
+ kind: z.ZodLiteral<"detached_head">;
664
+ }, z.core.$strict>, z.ZodObject<{
665
+ kind: z.ZodLiteral<"unknown_head">;
666
+ }, z.core.$strict>, z.ZodObject<{
667
+ kind: z.ZodLiteral<"missing_branch">;
668
+ name: z.ZodString;
669
+ }, z.core.$strict>, z.ZodObject<{
670
+ kind: z.ZodLiteral<"submodules">;
671
+ }, z.core.$strict>, z.ZodObject<{
672
+ kind: z.ZodLiteral<"worktree_refs">;
673
+ }, z.core.$strict>, z.ZodObject<{
674
+ kind: z.ZodLiteral<"staged_changes">;
675
+ }, z.core.$strict>, z.ZodObject<{
676
+ kind: z.ZodLiteral<"unmatched_git_dir">;
677
+ }, z.core.$strict>, z.ZodObject<{
678
+ kind: z.ZodLiteral<"relative_gitdir">;
679
+ git_dir: z.ZodString;
680
+ }, z.core.$strict>], "kind">>;
681
+ }, z.core.$strict>, z.ZodObject<{
682
+ kind: z.ZodLiteral<"moved">;
683
+ to: z.ZodArray<z.ZodString>;
684
+ }, z.core.$strict>], "kind">;
685
+ export type ReposPrune = z.infer<typeof ReposPrune>;
686
+ /** A worktree of the repo that couldn't be probed. */
687
+ export declare const ReposUnprobedWorktree: z.ZodObject<{
688
+ path: z.ZodString;
689
+ git_dir: z.ZodNullable<z.ZodString>;
690
+ head: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
691
+ kind: z.ZodLiteral<"branch">;
692
+ name: z.ZodString;
693
+ }, z.core.$strict>, z.ZodObject<{
694
+ kind: z.ZodLiteral<"detached">;
695
+ commit: z.ZodString;
696
+ }, z.core.$strict>], "kind">>;
697
+ locked: z.ZodBoolean;
698
+ in_progress: z.ZodNullable<z.ZodEnum<{
699
+ rebase: "rebase";
700
+ merge: "merge";
701
+ cherry_pick: "cherry_pick";
702
+ revert: "revert";
703
+ bisect: "bisect";
704
+ sequencer: "sequencer";
705
+ am: "am";
706
+ }>>;
707
+ why: z.ZodDiscriminatedUnion<[z.ZodObject<{
708
+ kind: z.ZodLiteral<"prunable">;
709
+ }, z.core.$strict>, z.ZodObject<{
710
+ kind: z.ZodLiteral<"missing">;
711
+ }, z.core.$strict>, z.ZodObject<{
712
+ kind: z.ZodLiteral<"failed">;
713
+ error: z.ZodString;
714
+ }, z.core.$strict>], "kind">;
715
+ holds: z.ZodNullable<z.ZodObject<{
716
+ submodules: z.ZodBoolean;
717
+ worktree_refs: z.ZodBoolean;
718
+ staged: z.ZodNullable<z.ZodBoolean>;
719
+ }, z.core.$strict>>;
720
+ }, z.core.$strict>;
721
+ export type ReposUnprobedWorktree = z.infer<typeof ReposUnprobedWorktree>;
722
+ /** An unprobed worktree (flattened) with its prune verdict and live sessions. */
723
+ export declare const ReposUnprobedWorktreeStatus: z.ZodObject<{
724
+ path: z.ZodString;
725
+ git_dir: z.ZodNullable<z.ZodString>;
726
+ head: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
727
+ kind: z.ZodLiteral<"branch">;
728
+ name: z.ZodString;
729
+ }, z.core.$strict>, z.ZodObject<{
730
+ kind: z.ZodLiteral<"detached">;
731
+ commit: z.ZodString;
732
+ }, z.core.$strict>], "kind">>;
733
+ locked: z.ZodBoolean;
734
+ in_progress: z.ZodNullable<z.ZodEnum<{
735
+ rebase: "rebase";
736
+ merge: "merge";
737
+ cherry_pick: "cherry_pick";
738
+ revert: "revert";
739
+ bisect: "bisect";
740
+ sequencer: "sequencer";
741
+ am: "am";
742
+ }>>;
743
+ why: z.ZodDiscriminatedUnion<[z.ZodObject<{
744
+ kind: z.ZodLiteral<"prunable">;
745
+ }, z.core.$strict>, z.ZodObject<{
746
+ kind: z.ZodLiteral<"missing">;
747
+ }, z.core.$strict>, z.ZodObject<{
748
+ kind: z.ZodLiteral<"failed">;
749
+ error: z.ZodString;
750
+ }, z.core.$strict>], "kind">;
751
+ holds: z.ZodNullable<z.ZodObject<{
752
+ submodules: z.ZodBoolean;
753
+ worktree_refs: z.ZodBoolean;
754
+ staged: z.ZodNullable<z.ZodBoolean>;
755
+ }, z.core.$strict>>;
756
+ prune: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
757
+ kind: z.ZodLiteral<"safe">;
758
+ }, z.core.$strict>, z.ZodObject<{
759
+ kind: z.ZodLiteral<"loses">;
760
+ losses: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
761
+ kind: z.ZodLiteral<"operation">;
762
+ op: z.ZodEnum<{
763
+ rebase: "rebase";
764
+ merge: "merge";
765
+ cherry_pick: "cherry_pick";
766
+ revert: "revert";
767
+ bisect: "bisect";
768
+ sequencer: "sequencer";
769
+ am: "am";
770
+ }>;
771
+ }, z.core.$strict>, z.ZodObject<{
772
+ kind: z.ZodLiteral<"detached_head">;
773
+ }, z.core.$strict>, z.ZodObject<{
774
+ kind: z.ZodLiteral<"unknown_head">;
775
+ }, z.core.$strict>, z.ZodObject<{
776
+ kind: z.ZodLiteral<"missing_branch">;
777
+ name: z.ZodString;
778
+ }, z.core.$strict>, z.ZodObject<{
779
+ kind: z.ZodLiteral<"submodules">;
780
+ }, z.core.$strict>, z.ZodObject<{
781
+ kind: z.ZodLiteral<"worktree_refs">;
782
+ }, z.core.$strict>, z.ZodObject<{
783
+ kind: z.ZodLiteral<"staged_changes">;
784
+ }, z.core.$strict>, z.ZodObject<{
785
+ kind: z.ZodLiteral<"unmatched_git_dir">;
786
+ }, z.core.$strict>, z.ZodObject<{
787
+ kind: z.ZodLiteral<"relative_gitdir">;
788
+ git_dir: z.ZodString;
789
+ }, z.core.$strict>], "kind">>;
790
+ }, z.core.$strict>, z.ZodObject<{
791
+ kind: z.ZodLiteral<"moved">;
792
+ to: z.ZodArray<z.ZodString>;
793
+ }, z.core.$strict>], "kind">>;
794
+ busy: z.ZodArray<z.ZodObject<{
795
+ pid: z.ZodNumber;
796
+ cwd: z.ZodString;
797
+ worktree: z.ZodNullable<z.ZodString>;
798
+ process_cwd: z.ZodNullable<z.ZodString>;
799
+ source: z.ZodEnum<{
800
+ session_file: "session_file";
801
+ roster_worker: "roster_worker";
802
+ }>;
803
+ }, z.core.$strict>>;
804
+ }, z.core.$strict>;
805
+ export type ReposUnprobedWorktreeStatus = z.infer<typeof ReposUnprobedWorktreeStatus>;
806
+ /** The `origin` remote as git sees it, when it isn't the registry's `url`. */
807
+ export declare const ReposOriginRemote: z.ZodDiscriminatedUnion<[z.ZodObject<{
808
+ kind: z.ZodLiteral<"url">;
809
+ url: z.ZodString;
810
+ }, z.core.$strict>, z.ZodObject<{
811
+ kind: z.ZodLiteral<"no_url">;
812
+ }, z.core.$strict>, z.ZodObject<{
813
+ kind: z.ZodLiteral<"missing">;
814
+ }, z.core.$strict>], "kind">;
815
+ export type ReposOriginRemote = z.infer<typeof ReposOriginRemote>;
816
+ /** Why no `git remote` command fits an origin's fix. */
817
+ export declare const ReposOriginByHand: z.ZodEnum<{
818
+ outside_repo_file: "outside_repo_file";
819
+ valueless_url: "valueless_url";
820
+ empty_value: "empty_value";
821
+ several_urls: "several_urls";
822
+ }>;
823
+ export type ReposOriginByHand = z.infer<typeof ReposOriginByHand>;
824
+ /** How to point `origin` at the registry's URL. */
825
+ export declare const ReposOriginFix: z.ZodDiscriminatedUnion<[z.ZodObject<{
826
+ kind: z.ZodLiteral<"add">;
827
+ }, z.core.$strict>, z.ZodObject<{
828
+ kind: z.ZodLiteral<"set_url">;
829
+ }, z.core.$strict>, z.ZodObject<{
830
+ kind: z.ZodLiteral<"by_hand">;
831
+ reason: z.ZodEnum<{
832
+ outside_repo_file: "outside_repo_file";
833
+ valueless_url: "valueless_url";
834
+ empty_value: "empty_value";
835
+ several_urls: "several_urls";
836
+ }>;
837
+ }, z.core.$strict>], "kind">;
838
+ export type ReposOriginFix = z.infer<typeof ReposOriginFix>;
839
+ /** Why a remote couldn't be reached. */
840
+ export declare const ReposUnreachableCause: z.ZodEnum<{
841
+ dns: "dns";
842
+ connection: "connection";
843
+ host_key: "host_key";
844
+ auth: "auth";
845
+ }>;
846
+ export type ReposUnreachableCause = z.infer<typeof ReposUnreachableCause>;
847
+ /** How to repair a fetch refspec naming a ref gone from origin. */
848
+ export declare const ReposRefGoneFix: z.ZodDiscriminatedUnion<[z.ZodObject<{
849
+ kind: z.ZodLiteral<"unset_refspec">;
850
+ pattern: z.ZodString;
851
+ }, z.core.$strict>, z.ZodObject<{
852
+ kind: z.ZodLiteral<"set_branches">;
853
+ branch: z.ZodNullable<z.ZodString>;
854
+ }, z.core.$strict>, z.ZodObject<{
855
+ kind: z.ZodLiteral<"by_hand">;
856
+ }, z.core.$strict>], "kind">;
857
+ export type ReposRefGoneFix = z.infer<typeof ReposRefGoneFix>;
858
+ /**
859
+ * Why a fetch or the visibility check failed, or why the tool refused to
860
+ * fetch: Rust's `RemoteFailure` without `rejected`, which only a push meets.
861
+ */
862
+ export declare const ReposFetchFailure: z.ZodDiscriminatedUnion<[z.ZodObject<{
863
+ kind: z.ZodLiteral<"ref_gone">;
864
+ refname: z.ZodString;
865
+ fix: z.ZodDiscriminatedUnion<[z.ZodObject<{
866
+ kind: z.ZodLiteral<"unset_refspec">;
867
+ pattern: z.ZodString;
868
+ }, z.core.$strict>, z.ZodObject<{
869
+ kind: z.ZodLiteral<"set_branches">;
870
+ branch: z.ZodNullable<z.ZodString>;
871
+ }, z.core.$strict>, z.ZodObject<{
872
+ kind: z.ZodLiteral<"by_hand">;
873
+ }, z.core.$strict>], "kind">;
874
+ }, z.core.$strict>, z.ZodObject<{
875
+ kind: z.ZodLiteral<"unreachable">;
876
+ cause: z.ZodEnum<{
877
+ dns: "dns";
878
+ connection: "connection";
879
+ host_key: "host_key";
880
+ auth: "auth";
881
+ }>;
882
+ message: z.ZodString;
883
+ }, z.core.$strict>, z.ZodObject<{
884
+ kind: z.ZodLiteral<"repo_not_found">;
885
+ message: z.ZodString;
886
+ }, z.core.$strict>, z.ZodObject<{
887
+ kind: z.ZodLiteral<"timed_out">;
888
+ after_secs: z.ZodNumber;
889
+ }, z.core.$strict>, z.ZodObject<{
890
+ kind: z.ZodLiteral<"failed">;
891
+ message: z.ZodString;
892
+ }, z.core.$strict>, z.ZodObject<{
893
+ kind: z.ZodLiteral<"refspec_outside_origin">;
894
+ refspec: z.ZodString;
895
+ }, z.core.$strict>, z.ZodObject<{
896
+ kind: z.ZodLiteral<"origin_refs_shared">;
897
+ remote: z.ZodString;
898
+ refspec: z.ZodString;
899
+ }, z.core.$strict>, z.ZodObject<{
900
+ kind: z.ZodLiteral<"legacy_remotes_unreadable">;
901
+ path: z.ZodString;
902
+ }, z.core.$strict>], "kind">;
903
+ export type ReposFetchFailure = z.infer<typeof ReposFetchFailure>;
904
+ /** What an anonymous read of a repo declared private found. */
905
+ export declare const ReposVisibilityCheck: z.ZodDiscriminatedUnion<[z.ZodObject<{
906
+ kind: z.ZodLiteral<"leak">;
907
+ }, z.core.$strict>, z.ZodObject<{
908
+ kind: z.ZodLiteral<"private">;
909
+ }, z.core.$strict>, z.ZodObject<{
910
+ kind: z.ZodLiteral<"unknown">;
911
+ failure: z.ZodDiscriminatedUnion<[z.ZodObject<{
912
+ kind: z.ZodLiteral<"ref_gone">;
913
+ refname: z.ZodString;
914
+ fix: z.ZodDiscriminatedUnion<[z.ZodObject<{
915
+ kind: z.ZodLiteral<"unset_refspec">;
916
+ pattern: z.ZodString;
917
+ }, z.core.$strict>, z.ZodObject<{
918
+ kind: z.ZodLiteral<"set_branches">;
919
+ branch: z.ZodNullable<z.ZodString>;
920
+ }, z.core.$strict>, z.ZodObject<{
921
+ kind: z.ZodLiteral<"by_hand">;
922
+ }, z.core.$strict>], "kind">;
923
+ }, z.core.$strict>, z.ZodObject<{
924
+ kind: z.ZodLiteral<"unreachable">;
925
+ cause: z.ZodEnum<{
926
+ dns: "dns";
927
+ connection: "connection";
928
+ host_key: "host_key";
929
+ auth: "auth";
930
+ }>;
931
+ message: z.ZodString;
932
+ }, z.core.$strict>, z.ZodObject<{
933
+ kind: z.ZodLiteral<"repo_not_found">;
934
+ message: z.ZodString;
935
+ }, z.core.$strict>, z.ZodObject<{
936
+ kind: z.ZodLiteral<"timed_out">;
937
+ after_secs: z.ZodNumber;
938
+ }, z.core.$strict>, z.ZodObject<{
939
+ kind: z.ZodLiteral<"failed">;
940
+ message: z.ZodString;
941
+ }, z.core.$strict>, z.ZodObject<{
942
+ kind: z.ZodLiteral<"refspec_outside_origin">;
943
+ refspec: z.ZodString;
944
+ }, z.core.$strict>, z.ZodObject<{
945
+ kind: z.ZodLiteral<"origin_refs_shared">;
946
+ remote: z.ZodString;
947
+ refspec: z.ZodString;
948
+ }, z.core.$strict>, z.ZodObject<{
949
+ kind: z.ZodLiteral<"legacy_remotes_unreadable">;
950
+ path: z.ZodString;
951
+ }, z.core.$strict>], "kind">;
952
+ }, z.core.$strict>], "kind">;
953
+ export type ReposVisibilityCheck = z.infer<typeof ReposVisibilityCheck>;
954
+ /** What kind of failure stopped an entry's probe. */
955
+ export declare const ReposProbeErrorKind: z.ZodEnum<{
956
+ path_unreadable: "path_unreadable";
957
+ non_utf8_path: "non_utf8_path";
958
+ config_unreadable: "config_unreadable";
959
+ fetch_url_unreadable: "fetch_url_unreadable";
960
+ push_urls_unreadable: "push_urls_unreadable";
961
+ git_not_run: "git_not_run";
962
+ git_timed_out: "git_timed_out";
963
+ git_failed: "git_failed";
964
+ unexpected_output: "unexpected_output";
965
+ }>;
966
+ export type ReposProbeErrorKind = z.infer<typeof ReposProbeErrorKind>;
967
+ /** Why an entry's probe failed: its kind, and a message for display. */
968
+ export declare const ReposProbeError: z.ZodObject<{
969
+ kind: z.ZodEnum<{
970
+ path_unreadable: "path_unreadable";
971
+ non_utf8_path: "non_utf8_path";
972
+ config_unreadable: "config_unreadable";
973
+ fetch_url_unreadable: "fetch_url_unreadable";
974
+ push_urls_unreadable: "push_urls_unreadable";
975
+ git_not_run: "git_not_run";
976
+ git_timed_out: "git_timed_out";
977
+ git_failed: "git_failed";
978
+ unexpected_output: "unexpected_output";
979
+ }>;
980
+ message: z.ZodString;
981
+ }, z.core.$strict>;
982
+ export type ReposProbeError = z.infer<typeof ReposProbeError>;
983
+ /** Why sync would stop on an entry and leave it to a person. */
984
+ export declare const ReposNeedsHuman: z.ZodDiscriminatedUnion<[z.ZodObject<{
985
+ kind: z.ZodLiteral<"not_a_repo">;
986
+ detail: z.ZodString;
987
+ }, z.core.$strict>, z.ZodObject<{
988
+ kind: z.ZodLiteral<"operation_in_progress">;
989
+ checkout: z.ZodString;
990
+ op: z.ZodEnum<{
991
+ rebase: "rebase";
992
+ merge: "merge";
993
+ cherry_pick: "cherry_pick";
994
+ revert: "revert";
995
+ bisect: "bisect";
996
+ sequencer: "sequencer";
997
+ am: "am";
998
+ }>;
999
+ }, z.core.$strict>, z.ZodObject<{
1000
+ kind: z.ZodLiteral<"origin_mismatch">;
1001
+ origin: z.ZodDiscriminatedUnion<[z.ZodObject<{
1002
+ kind: z.ZodLiteral<"url">;
1003
+ url: z.ZodString;
1004
+ }, z.core.$strict>, z.ZodObject<{
1005
+ kind: z.ZodLiteral<"no_url">;
1006
+ }, z.core.$strict>, z.ZodObject<{
1007
+ kind: z.ZodLiteral<"missing">;
1008
+ }, z.core.$strict>], "kind">;
1009
+ expected: z.ZodString;
1010
+ fix: z.ZodDiscriminatedUnion<[z.ZodObject<{
1011
+ kind: z.ZodLiteral<"add">;
1012
+ }, z.core.$strict>, z.ZodObject<{
1013
+ kind: z.ZodLiteral<"set_url">;
1014
+ }, z.core.$strict>, z.ZodObject<{
1015
+ kind: z.ZodLiteral<"by_hand">;
1016
+ reason: z.ZodEnum<{
1017
+ outside_repo_file: "outside_repo_file";
1018
+ valueless_url: "valueless_url";
1019
+ empty_value: "empty_value";
1020
+ several_urls: "several_urls";
1021
+ }>;
1022
+ }, z.core.$strict>], "kind">;
1023
+ }, z.core.$strict>, z.ZodObject<{
1024
+ kind: z.ZodLiteral<"origin_not_https">;
1025
+ fetch_url: z.ZodString;
1026
+ expected: z.ZodString;
1027
+ fix: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
1028
+ kind: z.ZodLiteral<"add">;
1029
+ }, z.core.$strict>, z.ZodObject<{
1030
+ kind: z.ZodLiteral<"set_url">;
1031
+ }, z.core.$strict>, z.ZodObject<{
1032
+ kind: z.ZodLiteral<"by_hand">;
1033
+ reason: z.ZodEnum<{
1034
+ outside_repo_file: "outside_repo_file";
1035
+ valueless_url: "valueless_url";
1036
+ empty_value: "empty_value";
1037
+ several_urls: "several_urls";
1038
+ }>;
1039
+ }, z.core.$strict>], "kind">>;
1040
+ }, z.core.$strict>, z.ZodObject<{
1041
+ kind: z.ZodLiteral<"fetch_url_mismatch">;
1042
+ fetch_url: z.ZodString;
1043
+ expected: z.ZodString;
1044
+ fix: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
1045
+ kind: z.ZodLiteral<"add">;
1046
+ }, z.core.$strict>, z.ZodObject<{
1047
+ kind: z.ZodLiteral<"set_url">;
1048
+ }, z.core.$strict>, z.ZodObject<{
1049
+ kind: z.ZodLiteral<"by_hand">;
1050
+ reason: z.ZodEnum<{
1051
+ outside_repo_file: "outside_repo_file";
1052
+ valueless_url: "valueless_url";
1053
+ empty_value: "empty_value";
1054
+ several_urls: "several_urls";
1055
+ }>;
1056
+ }, z.core.$strict>], "kind">>;
1057
+ }, z.core.$strict>, z.ZodObject<{
1058
+ kind: z.ZodLiteral<"worktree_unreadable">;
1059
+ path: z.ZodString;
1060
+ }, z.core.$strict>, z.ZodObject<{
1061
+ kind: z.ZodLiteral<"default_branch_missing">;
1062
+ branch: z.ZodString;
1063
+ }, z.core.$strict>, z.ZodObject<{
1064
+ kind: z.ZodLiteral<"default_branch_no_upstream">;
1065
+ branch: z.ZodString;
1066
+ }, z.core.$strict>, z.ZodObject<{
1067
+ kind: z.ZodLiteral<"default_branch_gone">;
1068
+ branch: z.ZodString;
1069
+ }, z.core.$strict>, z.ZodObject<{
1070
+ kind: z.ZodLiteral<"unexpected_detached">;
1071
+ checkout: z.ZodString;
1072
+ }, z.core.$strict>, z.ZodObject<{
1073
+ kind: z.ZodLiteral<"checkout_unresolvable">;
1074
+ checkout: z.ZodString;
1075
+ path: z.ZodString;
1076
+ error: z.ZodString;
1077
+ }, z.core.$strict>, z.ZodObject<{
1078
+ kind: z.ZodLiteral<"unlisted_git_dir">;
1079
+ git_dir: z.ZodString;
1080
+ head: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
1081
+ kind: z.ZodLiteral<"branch">;
1082
+ name: z.ZodString;
1083
+ }, z.core.$strict>, z.ZodObject<{
1084
+ kind: z.ZodLiteral<"detached">;
1085
+ commit: z.ZodString;
1086
+ }, z.core.$strict>], "kind">>;
1087
+ busy: z.ZodArray<z.ZodObject<{
1088
+ pid: z.ZodNumber;
1089
+ cwd: z.ZodString;
1090
+ worktree: z.ZodNullable<z.ZodString>;
1091
+ process_cwd: z.ZodNullable<z.ZodString>;
1092
+ source: z.ZodEnum<{
1093
+ session_file: "session_file";
1094
+ roster_worker: "roster_worker";
1095
+ }>;
1096
+ }, z.core.$strict>>;
1097
+ }, z.core.$strict>, z.ZodObject<{
1098
+ kind: z.ZodLiteral<"push_url_mismatch">;
1099
+ push_urls: z.ZodArray<z.ZodString>;
1100
+ expected: z.ZodString;
1101
+ }, z.core.$strict>, z.ZodObject<{
1102
+ kind: z.ZodLiteral<"clone_shares_repo">;
1103
+ with: z.ZodString;
1104
+ }, z.core.$strict>, z.ZodObject<{
1105
+ kind: z.ZodLiteral<"cloned_unregistered">;
1106
+ dir: z.ZodString;
1107
+ }, z.core.$strict>], "kind">;
1108
+ export type ReposNeedsHuman = z.infer<typeof ReposNeedsHuman>;
1109
+ /** One registry entry's state. */
1110
+ export declare const ReposEntryStatus: z.ZodObject<{
1111
+ key: z.ZodString;
1112
+ kind: z.ZodEnum<{
1113
+ repo: "repo";
1114
+ reference: "reference";
1115
+ }>;
1116
+ dir: z.ZodString;
1117
+ url: z.ZodString;
1118
+ writable: z.ZodBoolean;
1119
+ archived: z.ZodBoolean;
1120
+ visibility: z.ZodNullable<z.ZodEnum<{
1121
+ private: "private";
1122
+ public: "public";
1123
+ }>>;
1124
+ ci: z.ZodBoolean;
1125
+ branch: z.ZodNullable<z.ZodString>;
1126
+ pinned: z.ZodBoolean;
1127
+ refresh: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
1128
+ kind: z.ZodLiteral<"act">;
1129
+ }, z.core.$strict>, z.ZodObject<{
1130
+ kind: z.ZodLiteral<"held">;
1131
+ by: z.ZodEnum<{
1132
+ entry: "entry";
1133
+ pinned: "pinned";
1134
+ origin_not_https: "origin_not_https";
1135
+ }>;
1136
+ }, z.core.$strict>], "kind">>;
1137
+ presence: z.ZodDiscriminatedUnion<[z.ZodObject<{
1138
+ kind: z.ZodLiteral<"present">;
1139
+ }, z.core.$strict>, z.ZodObject<{
1140
+ kind: z.ZodLiteral<"missing">;
1141
+ }, z.core.$strict>, z.ZodObject<{
1142
+ kind: z.ZodLiteral<"not_a_repo">;
1143
+ }, z.core.$strict>], "kind">;
1144
+ clone: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
1145
+ kind: z.ZodLiteral<"act">;
1146
+ recipe: z.ZodObject<{
1147
+ url: z.ZodString;
1148
+ branch: z.ZodNullable<z.ZodString>;
1149
+ shallow: z.ZodBoolean;
1150
+ sparse: z.ZodNullable<z.ZodString>;
1151
+ }, z.core.$strict>;
1152
+ }, z.core.$strict>, z.ZodObject<{
1153
+ kind: z.ZodLiteral<"held">;
1154
+ recipe: z.ZodObject<{
1155
+ url: z.ZodString;
1156
+ branch: z.ZodNullable<z.ZodString>;
1157
+ shallow: z.ZodBoolean;
1158
+ sparse: z.ZodNullable<z.ZodString>;
1159
+ }, z.core.$strict>;
1160
+ by: z.ZodEnum<{
1161
+ entry: "entry";
1162
+ unprobed_worktree: "unprobed_worktree";
1163
+ busy: "busy";
1164
+ }>;
1165
+ }, z.core.$strict>], "kind">>;
1166
+ layout: z.ZodNullable<z.ZodObject<{
1167
+ shallow: z.ZodBoolean;
1168
+ sparse: z.ZodBoolean;
1169
+ partial_filter: z.ZodNullable<z.ZodString>;
1170
+ }, z.core.$strict>>;
1171
+ checkouts: z.ZodArray<z.ZodObject<{
1172
+ path: z.ZodString;
1173
+ primary: z.ZodBoolean;
1174
+ head: z.ZodDiscriminatedUnion<[z.ZodObject<{
1175
+ kind: z.ZodLiteral<"branch">;
1176
+ name: z.ZodString;
1177
+ }, z.core.$strict>, z.ZodObject<{
1178
+ kind: z.ZodLiteral<"detached">;
1179
+ commit: z.ZodString;
1180
+ }, z.core.$strict>], "kind">;
1181
+ uncommitted: z.ZodObject<{
1182
+ staged: z.ZodNumber;
1183
+ unstaged: z.ZodNumber;
1184
+ untracked: z.ZodNumber;
1185
+ conflicted: z.ZodNumber;
1186
+ }, z.core.$strict>;
1187
+ in_progress: z.ZodNullable<z.ZodEnum<{
1188
+ rebase: "rebase";
1189
+ merge: "merge";
1190
+ cherry_pick: "cherry_pick";
1191
+ revert: "revert";
1192
+ bisect: "bisect";
1193
+ sequencer: "sequencer";
1194
+ am: "am";
1195
+ }>>;
1196
+ locked: z.ZodBoolean;
1197
+ linked: z.ZodBoolean;
1198
+ submodules: z.ZodNullable<z.ZodBoolean>;
1199
+ busy: z.ZodArray<z.ZodObject<{
1200
+ pid: z.ZodNumber;
1201
+ cwd: z.ZodString;
1202
+ worktree: z.ZodNullable<z.ZodString>;
1203
+ process_cwd: z.ZodNullable<z.ZodString>;
1204
+ source: z.ZodEnum<{
1205
+ session_file: "session_file";
1206
+ roster_worker: "roster_worker";
1207
+ }>;
1208
+ }, z.core.$strict>>;
1209
+ }, z.core.$strict>>;
1210
+ branches: z.ZodArray<z.ZodObject<{
1211
+ name: z.ZodString;
1212
+ upstream: z.ZodNullable<z.ZodString>;
1213
+ worktree: z.ZodNullable<z.ZodString>;
1214
+ symref: z.ZodNullable<z.ZodString>;
1215
+ unique_commits: z.ZodNumber;
1216
+ newest_commit_at: z.ZodNumber;
1217
+ relation: z.ZodDiscriminatedUnion<[z.ZodObject<{
1218
+ kind: z.ZodLiteral<"in_sync">;
1219
+ }, z.core.$strict>, z.ZodObject<{
1220
+ kind: z.ZodLiteral<"ahead">;
1221
+ commits: z.ZodNumber;
1222
+ }, z.core.$strict>, z.ZodObject<{
1223
+ kind: z.ZodLiteral<"behind">;
1224
+ commits: z.ZodNumber;
1225
+ }, z.core.$strict>, z.ZodObject<{
1226
+ kind: z.ZodLiteral<"diverged">;
1227
+ ahead: z.ZodNumber;
1228
+ behind: z.ZodNumber;
1229
+ }, z.core.$strict>, z.ZodObject<{
1230
+ kind: z.ZodLiteral<"shallow">;
1231
+ }, z.core.$strict>, z.ZodObject<{
1232
+ kind: z.ZodLiteral<"gone">;
1233
+ }, z.core.$strict>, z.ZodObject<{
1234
+ kind: z.ZodLiteral<"unmapped">;
1235
+ }, z.core.$strict>, z.ZodObject<{
1236
+ kind: z.ZodLiteral<"untracked">;
1237
+ }, z.core.$strict>], "kind">;
1238
+ verdict: z.ZodDiscriminatedUnion<[z.ZodObject<{
1239
+ kind: z.ZodLiteral<"quiet">;
1240
+ }, z.core.$strict>, z.ZodObject<{
1241
+ kind: z.ZodLiteral<"act">;
1242
+ action: z.ZodDiscriminatedUnion<[z.ZodObject<{
1243
+ kind: z.ZodLiteral<"push">;
1244
+ commits: z.ZodNumber;
1245
+ }, z.core.$strict>, z.ZodObject<{
1246
+ kind: z.ZodLiteral<"fast_forward">;
1247
+ commits: z.ZodNumber;
1248
+ }, z.core.$strict>, z.ZodObject<{
1249
+ kind: z.ZodLiteral<"move">;
1250
+ }, z.core.$strict>], "kind">;
1251
+ }, z.core.$strict>, z.ZodObject<{
1252
+ kind: z.ZodLiteral<"held">;
1253
+ action: z.ZodDiscriminatedUnion<[z.ZodObject<{
1254
+ kind: z.ZodLiteral<"push">;
1255
+ commits: z.ZodNumber;
1256
+ }, z.core.$strict>, z.ZodObject<{
1257
+ kind: z.ZodLiteral<"fast_forward">;
1258
+ commits: z.ZodNumber;
1259
+ }, z.core.$strict>, z.ZodObject<{
1260
+ kind: z.ZodLiteral<"move">;
1261
+ }, z.core.$strict>], "kind">;
1262
+ by: z.ZodEnum<{
1263
+ entry: "entry";
1264
+ pinned: "pinned";
1265
+ push_url: "push_url";
1266
+ fetch_failed: "fetch_failed";
1267
+ dirty_checkout: "dirty_checkout";
1268
+ unprobed_worktree: "unprobed_worktree";
1269
+ several_checkouts: "several_checkouts";
1270
+ busy: "busy";
1271
+ busy_unknown: "busy_unknown";
1272
+ }>;
1273
+ }, z.core.$strict>, z.ZodObject<{
1274
+ kind: z.ZodLiteral<"needs_human">;
1275
+ reason: z.ZodEnum<{
1276
+ diverged: "diverged";
1277
+ unmapped: "unmapped";
1278
+ archived_ahead: "archived_ahead";
1279
+ shallow_local_work: "shallow_local_work";
1280
+ upstream_not_a_branch: "upstream_not_a_branch";
1281
+ }>;
1282
+ }, z.core.$strict>, z.ZodObject<{
1283
+ kind: z.ZodLiteral<"local_only">;
1284
+ }, z.core.$strict>, z.ZodObject<{
1285
+ kind: z.ZodLiteral<"cleanup">;
1286
+ reason: z.ZodEnum<{
1287
+ merged: "merged";
1288
+ upstream_gone: "upstream_gone";
1289
+ }>;
1290
+ removable_worktree: z.ZodNullable<z.ZodString>;
1291
+ }, z.core.$strict>], "kind">;
1292
+ }, z.core.$strict>>;
1293
+ at_rest: z.ZodNullable<z.ZodObject<{
1294
+ on_branch: z.ZodNullable<z.ZodBoolean>;
1295
+ clean: z.ZodBoolean;
1296
+ idle: z.ZodBoolean;
1297
+ followed: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
1298
+ kind: z.ZodLiteral<"in_sync">;
1299
+ }, z.core.$strict>, z.ZodObject<{
1300
+ kind: z.ZodLiteral<"ahead">;
1301
+ commits: z.ZodNumber;
1302
+ }, z.core.$strict>, z.ZodObject<{
1303
+ kind: z.ZodLiteral<"behind">;
1304
+ commits: z.ZodNumber;
1305
+ }, z.core.$strict>, z.ZodObject<{
1306
+ kind: z.ZodLiteral<"diverged">;
1307
+ ahead: z.ZodNumber;
1308
+ behind: z.ZodNumber;
1309
+ }, z.core.$strict>, z.ZodObject<{
1310
+ kind: z.ZodLiteral<"shallow">;
1311
+ }, z.core.$strict>, z.ZodObject<{
1312
+ kind: z.ZodLiteral<"gone">;
1313
+ }, z.core.$strict>, z.ZodObject<{
1314
+ kind: z.ZodLiteral<"unmapped">;
1315
+ }, z.core.$strict>, z.ZodObject<{
1316
+ kind: z.ZodLiteral<"untracked">;
1317
+ }, z.core.$strict>], "kind">>;
1318
+ }, z.core.$strict>>;
1319
+ stashes: z.ZodNumber;
1320
+ fetched_at: z.ZodNullable<z.ZodNumber>;
1321
+ needs_human: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1322
+ kind: z.ZodLiteral<"not_a_repo">;
1323
+ detail: z.ZodString;
1324
+ }, z.core.$strict>, z.ZodObject<{
1325
+ kind: z.ZodLiteral<"operation_in_progress">;
1326
+ checkout: z.ZodString;
1327
+ op: z.ZodEnum<{
1328
+ rebase: "rebase";
1329
+ merge: "merge";
1330
+ cherry_pick: "cherry_pick";
1331
+ revert: "revert";
1332
+ bisect: "bisect";
1333
+ sequencer: "sequencer";
1334
+ am: "am";
1335
+ }>;
1336
+ }, z.core.$strict>, z.ZodObject<{
1337
+ kind: z.ZodLiteral<"origin_mismatch">;
1338
+ origin: z.ZodDiscriminatedUnion<[z.ZodObject<{
1339
+ kind: z.ZodLiteral<"url">;
1340
+ url: z.ZodString;
1341
+ }, z.core.$strict>, z.ZodObject<{
1342
+ kind: z.ZodLiteral<"no_url">;
1343
+ }, z.core.$strict>, z.ZodObject<{
1344
+ kind: z.ZodLiteral<"missing">;
1345
+ }, z.core.$strict>], "kind">;
1346
+ expected: z.ZodString;
1347
+ fix: z.ZodDiscriminatedUnion<[z.ZodObject<{
1348
+ kind: z.ZodLiteral<"add">;
1349
+ }, z.core.$strict>, z.ZodObject<{
1350
+ kind: z.ZodLiteral<"set_url">;
1351
+ }, z.core.$strict>, z.ZodObject<{
1352
+ kind: z.ZodLiteral<"by_hand">;
1353
+ reason: z.ZodEnum<{
1354
+ outside_repo_file: "outside_repo_file";
1355
+ valueless_url: "valueless_url";
1356
+ empty_value: "empty_value";
1357
+ several_urls: "several_urls";
1358
+ }>;
1359
+ }, z.core.$strict>], "kind">;
1360
+ }, z.core.$strict>, z.ZodObject<{
1361
+ kind: z.ZodLiteral<"origin_not_https">;
1362
+ fetch_url: z.ZodString;
1363
+ expected: z.ZodString;
1364
+ fix: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
1365
+ kind: z.ZodLiteral<"add">;
1366
+ }, z.core.$strict>, z.ZodObject<{
1367
+ kind: z.ZodLiteral<"set_url">;
1368
+ }, z.core.$strict>, z.ZodObject<{
1369
+ kind: z.ZodLiteral<"by_hand">;
1370
+ reason: z.ZodEnum<{
1371
+ outside_repo_file: "outside_repo_file";
1372
+ valueless_url: "valueless_url";
1373
+ empty_value: "empty_value";
1374
+ several_urls: "several_urls";
1375
+ }>;
1376
+ }, z.core.$strict>], "kind">>;
1377
+ }, z.core.$strict>, z.ZodObject<{
1378
+ kind: z.ZodLiteral<"fetch_url_mismatch">;
1379
+ fetch_url: z.ZodString;
1380
+ expected: z.ZodString;
1381
+ fix: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
1382
+ kind: z.ZodLiteral<"add">;
1383
+ }, z.core.$strict>, z.ZodObject<{
1384
+ kind: z.ZodLiteral<"set_url">;
1385
+ }, z.core.$strict>, z.ZodObject<{
1386
+ kind: z.ZodLiteral<"by_hand">;
1387
+ reason: z.ZodEnum<{
1388
+ outside_repo_file: "outside_repo_file";
1389
+ valueless_url: "valueless_url";
1390
+ empty_value: "empty_value";
1391
+ several_urls: "several_urls";
1392
+ }>;
1393
+ }, z.core.$strict>], "kind">>;
1394
+ }, z.core.$strict>, z.ZodObject<{
1395
+ kind: z.ZodLiteral<"worktree_unreadable">;
1396
+ path: z.ZodString;
1397
+ }, z.core.$strict>, z.ZodObject<{
1398
+ kind: z.ZodLiteral<"default_branch_missing">;
1399
+ branch: z.ZodString;
1400
+ }, z.core.$strict>, z.ZodObject<{
1401
+ kind: z.ZodLiteral<"default_branch_no_upstream">;
1402
+ branch: z.ZodString;
1403
+ }, z.core.$strict>, z.ZodObject<{
1404
+ kind: z.ZodLiteral<"default_branch_gone">;
1405
+ branch: z.ZodString;
1406
+ }, z.core.$strict>, z.ZodObject<{
1407
+ kind: z.ZodLiteral<"unexpected_detached">;
1408
+ checkout: z.ZodString;
1409
+ }, z.core.$strict>, z.ZodObject<{
1410
+ kind: z.ZodLiteral<"checkout_unresolvable">;
1411
+ checkout: z.ZodString;
1412
+ path: z.ZodString;
1413
+ error: z.ZodString;
1414
+ }, z.core.$strict>, z.ZodObject<{
1415
+ kind: z.ZodLiteral<"unlisted_git_dir">;
1416
+ git_dir: z.ZodString;
1417
+ head: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
1418
+ kind: z.ZodLiteral<"branch">;
1419
+ name: z.ZodString;
1420
+ }, z.core.$strict>, z.ZodObject<{
1421
+ kind: z.ZodLiteral<"detached">;
1422
+ commit: z.ZodString;
1423
+ }, z.core.$strict>], "kind">>;
1424
+ busy: z.ZodArray<z.ZodObject<{
1425
+ pid: z.ZodNumber;
1426
+ cwd: z.ZodString;
1427
+ worktree: z.ZodNullable<z.ZodString>;
1428
+ process_cwd: z.ZodNullable<z.ZodString>;
1429
+ source: z.ZodEnum<{
1430
+ session_file: "session_file";
1431
+ roster_worker: "roster_worker";
1432
+ }>;
1433
+ }, z.core.$strict>>;
1434
+ }, z.core.$strict>, z.ZodObject<{
1435
+ kind: z.ZodLiteral<"push_url_mismatch">;
1436
+ push_urls: z.ZodArray<z.ZodString>;
1437
+ expected: z.ZodString;
1438
+ }, z.core.$strict>, z.ZodObject<{
1439
+ kind: z.ZodLiteral<"clone_shares_repo">;
1440
+ with: z.ZodString;
1441
+ }, z.core.$strict>, z.ZodObject<{
1442
+ kind: z.ZodLiteral<"cloned_unregistered">;
1443
+ dir: z.ZodString;
1444
+ }, z.core.$strict>], "kind">>;
1445
+ probe_error: z.ZodNullable<z.ZodObject<{
1446
+ kind: z.ZodEnum<{
1447
+ path_unreadable: "path_unreadable";
1448
+ non_utf8_path: "non_utf8_path";
1449
+ config_unreadable: "config_unreadable";
1450
+ fetch_url_unreadable: "fetch_url_unreadable";
1451
+ push_urls_unreadable: "push_urls_unreadable";
1452
+ git_not_run: "git_not_run";
1453
+ git_timed_out: "git_timed_out";
1454
+ git_failed: "git_failed";
1455
+ unexpected_output: "unexpected_output";
1456
+ }>;
1457
+ message: z.ZodString;
1458
+ }, z.core.$strict>>;
1459
+ unprobed_worktrees: z.ZodArray<z.ZodObject<{
1460
+ path: z.ZodString;
1461
+ git_dir: z.ZodNullable<z.ZodString>;
1462
+ head: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
1463
+ kind: z.ZodLiteral<"branch">;
1464
+ name: z.ZodString;
1465
+ }, z.core.$strict>, z.ZodObject<{
1466
+ kind: z.ZodLiteral<"detached">;
1467
+ commit: z.ZodString;
1468
+ }, z.core.$strict>], "kind">>;
1469
+ locked: z.ZodBoolean;
1470
+ in_progress: z.ZodNullable<z.ZodEnum<{
1471
+ rebase: "rebase";
1472
+ merge: "merge";
1473
+ cherry_pick: "cherry_pick";
1474
+ revert: "revert";
1475
+ bisect: "bisect";
1476
+ sequencer: "sequencer";
1477
+ am: "am";
1478
+ }>>;
1479
+ why: z.ZodDiscriminatedUnion<[z.ZodObject<{
1480
+ kind: z.ZodLiteral<"prunable">;
1481
+ }, z.core.$strict>, z.ZodObject<{
1482
+ kind: z.ZodLiteral<"missing">;
1483
+ }, z.core.$strict>, z.ZodObject<{
1484
+ kind: z.ZodLiteral<"failed">;
1485
+ error: z.ZodString;
1486
+ }, z.core.$strict>], "kind">;
1487
+ holds: z.ZodNullable<z.ZodObject<{
1488
+ submodules: z.ZodBoolean;
1489
+ worktree_refs: z.ZodBoolean;
1490
+ staged: z.ZodNullable<z.ZodBoolean>;
1491
+ }, z.core.$strict>>;
1492
+ prune: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
1493
+ kind: z.ZodLiteral<"safe">;
1494
+ }, z.core.$strict>, z.ZodObject<{
1495
+ kind: z.ZodLiteral<"loses">;
1496
+ losses: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1497
+ kind: z.ZodLiteral<"operation">;
1498
+ op: z.ZodEnum<{
1499
+ rebase: "rebase";
1500
+ merge: "merge";
1501
+ cherry_pick: "cherry_pick";
1502
+ revert: "revert";
1503
+ bisect: "bisect";
1504
+ sequencer: "sequencer";
1505
+ am: "am";
1506
+ }>;
1507
+ }, z.core.$strict>, z.ZodObject<{
1508
+ kind: z.ZodLiteral<"detached_head">;
1509
+ }, z.core.$strict>, z.ZodObject<{
1510
+ kind: z.ZodLiteral<"unknown_head">;
1511
+ }, z.core.$strict>, z.ZodObject<{
1512
+ kind: z.ZodLiteral<"missing_branch">;
1513
+ name: z.ZodString;
1514
+ }, z.core.$strict>, z.ZodObject<{
1515
+ kind: z.ZodLiteral<"submodules">;
1516
+ }, z.core.$strict>, z.ZodObject<{
1517
+ kind: z.ZodLiteral<"worktree_refs">;
1518
+ }, z.core.$strict>, z.ZodObject<{
1519
+ kind: z.ZodLiteral<"staged_changes">;
1520
+ }, z.core.$strict>, z.ZodObject<{
1521
+ kind: z.ZodLiteral<"unmatched_git_dir">;
1522
+ }, z.core.$strict>, z.ZodObject<{
1523
+ kind: z.ZodLiteral<"relative_gitdir">;
1524
+ git_dir: z.ZodString;
1525
+ }, z.core.$strict>], "kind">>;
1526
+ }, z.core.$strict>, z.ZodObject<{
1527
+ kind: z.ZodLiteral<"moved">;
1528
+ to: z.ZodArray<z.ZodString>;
1529
+ }, z.core.$strict>], "kind">>;
1530
+ busy: z.ZodArray<z.ZodObject<{
1531
+ pid: z.ZodNumber;
1532
+ cwd: z.ZodString;
1533
+ worktree: z.ZodNullable<z.ZodString>;
1534
+ process_cwd: z.ZodNullable<z.ZodString>;
1535
+ source: z.ZodEnum<{
1536
+ session_file: "session_file";
1537
+ roster_worker: "roster_worker";
1538
+ }>;
1539
+ }, z.core.$strict>>;
1540
+ }, z.core.$strict>>;
1541
+ fetch_error: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
1542
+ kind: z.ZodLiteral<"ref_gone">;
1543
+ refname: z.ZodString;
1544
+ fix: z.ZodDiscriminatedUnion<[z.ZodObject<{
1545
+ kind: z.ZodLiteral<"unset_refspec">;
1546
+ pattern: z.ZodString;
1547
+ }, z.core.$strict>, z.ZodObject<{
1548
+ kind: z.ZodLiteral<"set_branches">;
1549
+ branch: z.ZodNullable<z.ZodString>;
1550
+ }, z.core.$strict>, z.ZodObject<{
1551
+ kind: z.ZodLiteral<"by_hand">;
1552
+ }, z.core.$strict>], "kind">;
1553
+ }, z.core.$strict>, z.ZodObject<{
1554
+ kind: z.ZodLiteral<"unreachable">;
1555
+ cause: z.ZodEnum<{
1556
+ dns: "dns";
1557
+ connection: "connection";
1558
+ host_key: "host_key";
1559
+ auth: "auth";
1560
+ }>;
1561
+ message: z.ZodString;
1562
+ }, z.core.$strict>, z.ZodObject<{
1563
+ kind: z.ZodLiteral<"repo_not_found">;
1564
+ message: z.ZodString;
1565
+ }, z.core.$strict>, z.ZodObject<{
1566
+ kind: z.ZodLiteral<"timed_out">;
1567
+ after_secs: z.ZodNumber;
1568
+ }, z.core.$strict>, z.ZodObject<{
1569
+ kind: z.ZodLiteral<"failed">;
1570
+ message: z.ZodString;
1571
+ }, z.core.$strict>, z.ZodObject<{
1572
+ kind: z.ZodLiteral<"refspec_outside_origin">;
1573
+ refspec: z.ZodString;
1574
+ }, z.core.$strict>, z.ZodObject<{
1575
+ kind: z.ZodLiteral<"origin_refs_shared">;
1576
+ remote: z.ZodString;
1577
+ refspec: z.ZodString;
1578
+ }, z.core.$strict>, z.ZodObject<{
1579
+ kind: z.ZodLiteral<"legacy_remotes_unreadable">;
1580
+ path: z.ZodString;
1581
+ }, z.core.$strict>], "kind">>;
1582
+ visibility_check: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
1583
+ kind: z.ZodLiteral<"leak">;
1584
+ }, z.core.$strict>, z.ZodObject<{
1585
+ kind: z.ZodLiteral<"private">;
1586
+ }, z.core.$strict>, z.ZodObject<{
1587
+ kind: z.ZodLiteral<"unknown">;
1588
+ failure: z.ZodDiscriminatedUnion<[z.ZodObject<{
1589
+ kind: z.ZodLiteral<"ref_gone">;
1590
+ refname: z.ZodString;
1591
+ fix: z.ZodDiscriminatedUnion<[z.ZodObject<{
1592
+ kind: z.ZodLiteral<"unset_refspec">;
1593
+ pattern: z.ZodString;
1594
+ }, z.core.$strict>, z.ZodObject<{
1595
+ kind: z.ZodLiteral<"set_branches">;
1596
+ branch: z.ZodNullable<z.ZodString>;
1597
+ }, z.core.$strict>, z.ZodObject<{
1598
+ kind: z.ZodLiteral<"by_hand">;
1599
+ }, z.core.$strict>], "kind">;
1600
+ }, z.core.$strict>, z.ZodObject<{
1601
+ kind: z.ZodLiteral<"unreachable">;
1602
+ cause: z.ZodEnum<{
1603
+ dns: "dns";
1604
+ connection: "connection";
1605
+ host_key: "host_key";
1606
+ auth: "auth";
1607
+ }>;
1608
+ message: z.ZodString;
1609
+ }, z.core.$strict>, z.ZodObject<{
1610
+ kind: z.ZodLiteral<"repo_not_found">;
1611
+ message: z.ZodString;
1612
+ }, z.core.$strict>, z.ZodObject<{
1613
+ kind: z.ZodLiteral<"timed_out">;
1614
+ after_secs: z.ZodNumber;
1615
+ }, z.core.$strict>, z.ZodObject<{
1616
+ kind: z.ZodLiteral<"failed">;
1617
+ message: z.ZodString;
1618
+ }, z.core.$strict>, z.ZodObject<{
1619
+ kind: z.ZodLiteral<"refspec_outside_origin">;
1620
+ refspec: z.ZodString;
1621
+ }, z.core.$strict>, z.ZodObject<{
1622
+ kind: z.ZodLiteral<"origin_refs_shared">;
1623
+ remote: z.ZodString;
1624
+ refspec: z.ZodString;
1625
+ }, z.core.$strict>, z.ZodObject<{
1626
+ kind: z.ZodLiteral<"legacy_remotes_unreadable">;
1627
+ path: z.ZodString;
1628
+ }, z.core.$strict>], "kind">;
1629
+ }, z.core.$strict>], "kind">>;
1630
+ }, z.core.$strict>;
1631
+ export type ReposEntryStatus = z.infer<typeof ReposEntryStatus>;
1632
+ /** What keeps a moved worktree's repair from being offered. */
1633
+ export declare const ReposRepairBlock: z.ZodDiscriminatedUnion<[z.ZodObject<{
1634
+ kind: z.ZodLiteral<"rewrites">;
1635
+ path: z.ZodString;
1636
+ git_dir: z.ZodString;
1637
+ }, z.core.$strict>, z.ZodObject<{
1638
+ kind: z.ZodLiteral<"claimed_dir">;
1639
+ git_dir: z.ZodString;
1640
+ }, z.core.$strict>, z.ZodObject<{
1641
+ kind: z.ZodLiteral<"swapped">;
1642
+ git_dir: z.ZodString;
1643
+ with: z.ZodString;
1644
+ }, z.core.$strict>, z.ZodObject<{
1645
+ kind: z.ZodLiteral<"relative_gitdir">;
1646
+ git_dir: z.ZodString;
1647
+ }, z.core.$strict>, z.ZodObject<{
1648
+ kind: z.ZodLiteral<"unreadable_gitdir">;
1649
+ git_dir: z.ZodString;
1650
+ }, z.core.$strict>, z.ZodObject<{
1651
+ kind: z.ZodLiteral<"non_utf8_path">;
1652
+ }, z.core.$strict>, z.ZodObject<{
1653
+ kind: z.ZodLiteral<"nul_in_gitdir">;
1654
+ git_dir: z.ZodString;
1655
+ }, z.core.$strict>], "kind">;
1656
+ export type ReposRepairBlock = z.infer<typeof ReposRepairBlock>;
1657
+ /**
1658
+ * A child of the workspace root holding a `.git` that no registry entry
1659
+ * claims, its `kind` flattened beside its own fields.
1660
+ */
1661
+ export declare const ReposUnregisteredClone: z.ZodDiscriminatedUnion<[z.ZodObject<{
1662
+ kind: z.ZodLiteral<"clone">;
1663
+ dir: z.ZodString;
1664
+ origin: z.ZodNullable<z.ZodString>;
1665
+ owned: z.ZodBoolean;
1666
+ }, z.core.$strict>, z.ZodObject<{
1667
+ kind: z.ZodLiteral<"worktree">;
1668
+ dir: z.ZodString;
1669
+ origin: z.ZodNullable<z.ZodString>;
1670
+ owned: z.ZodBoolean;
1671
+ }, z.core.$strict>, z.ZodObject<{
1672
+ kind: z.ZodLiteral<"moved_worktree">;
1673
+ entry: z.ZodString;
1674
+ blocked_by: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
1675
+ kind: z.ZodLiteral<"rewrites">;
1676
+ path: z.ZodString;
1677
+ git_dir: z.ZodString;
1678
+ }, z.core.$strict>, z.ZodObject<{
1679
+ kind: z.ZodLiteral<"claimed_dir">;
1680
+ git_dir: z.ZodString;
1681
+ }, z.core.$strict>, z.ZodObject<{
1682
+ kind: z.ZodLiteral<"swapped">;
1683
+ git_dir: z.ZodString;
1684
+ with: z.ZodString;
1685
+ }, z.core.$strict>, z.ZodObject<{
1686
+ kind: z.ZodLiteral<"relative_gitdir">;
1687
+ git_dir: z.ZodString;
1688
+ }, z.core.$strict>, z.ZodObject<{
1689
+ kind: z.ZodLiteral<"unreadable_gitdir">;
1690
+ git_dir: z.ZodString;
1691
+ }, z.core.$strict>, z.ZodObject<{
1692
+ kind: z.ZodLiteral<"non_utf8_path">;
1693
+ }, z.core.$strict>, z.ZodObject<{
1694
+ kind: z.ZodLiteral<"nul_in_gitdir">;
1695
+ git_dir: z.ZodString;
1696
+ }, z.core.$strict>], "kind">>;
1697
+ exit_noise: z.ZodNullable<z.ZodString>;
1698
+ dir: z.ZodString;
1699
+ origin: z.ZodNullable<z.ZodString>;
1700
+ owned: z.ZodBoolean;
1701
+ }, z.core.$strict>, z.ZodObject<{
1702
+ kind: z.ZodLiteral<"orphaned_worktree">;
1703
+ entry: z.ZodString;
1704
+ dir: z.ZodString;
1705
+ origin: z.ZodNullable<z.ZodString>;
1706
+ owned: z.ZodBoolean;
1707
+ }, z.core.$strict>, z.ZodObject<{
1708
+ kind: z.ZodLiteral<"shared_git_dir">;
1709
+ entry: z.ZodString;
1710
+ with: z.ZodNullable<z.ZodString>;
1711
+ dir: z.ZodString;
1712
+ origin: z.ZodNullable<z.ZodString>;
1713
+ owned: z.ZodBoolean;
1714
+ }, z.core.$strict>, z.ZodObject<{
1715
+ kind: z.ZodLiteral<"unfinished_clone">;
1716
+ dir: z.ZodString;
1717
+ origin: z.ZodNullable<z.ZodString>;
1718
+ owned: z.ZodBoolean;
1719
+ }, z.core.$strict>], "kind">;
1720
+ export type ReposUnregisteredClone = z.infer<typeof ReposUnregisteredClone>;
1721
+ /** The `repos status --json` report. */
1722
+ export declare const ReposStatusReport: z.ZodObject<{
1723
+ version: z.ZodLiteral<18>;
1724
+ workspace: z.ZodString;
1725
+ registry: z.ZodString;
1726
+ fetched: z.ZodBoolean;
1727
+ sessions: z.ZodDiscriminatedUnion<[z.ZodObject<{
1728
+ kind: z.ZodLiteral<"available">;
1729
+ unscoped: z.ZodArray<z.ZodObject<{
1730
+ pid: z.ZodNumber;
1731
+ cwd: z.ZodString;
1732
+ worktree: z.ZodNullable<z.ZodString>;
1733
+ process_cwd: z.ZodNullable<z.ZodString>;
1734
+ source: z.ZodEnum<{
1735
+ session_file: "session_file";
1736
+ roster_worker: "roster_worker";
1737
+ }>;
1738
+ }, z.core.$strict>>;
1739
+ }, z.core.$strict>, z.ZodObject<{
1740
+ kind: z.ZodLiteral<"unavailable">;
1741
+ reason: z.ZodDiscriminatedUnion<[z.ZodObject<{
1742
+ kind: z.ZodLiteral<"home_unknown">;
1743
+ }, z.core.$strict>, z.ZodObject<{
1744
+ kind: z.ZodLiteral<"relative_config_dir">;
1745
+ path: z.ZodString;
1746
+ }, z.core.$strict>, z.ZodObject<{
1747
+ kind: z.ZodLiteral<"unreadable">;
1748
+ path: z.ZodString;
1749
+ error: z.ZodString;
1750
+ }, z.core.$strict>, z.ZodObject<{
1751
+ kind: z.ZodLiteral<"unparseable">;
1752
+ path: z.ZodString;
1753
+ error: z.ZodString;
1754
+ }, z.core.$strict>, z.ZodObject<{
1755
+ kind: z.ZodLiteral<"foreign_pid_domain">;
1756
+ path: z.ZodString;
1757
+ pid_domain: z.ZodString;
1758
+ source: z.ZodEnum<{
1759
+ session_file: "session_file";
1760
+ roster_worker: "roster_worker";
1761
+ }>;
1762
+ }, z.core.$strict>], "kind">;
1763
+ }, z.core.$strict>], "kind">;
1764
+ entries: z.ZodArray<z.ZodObject<{
1765
+ key: z.ZodString;
1766
+ kind: z.ZodEnum<{
1767
+ repo: "repo";
1768
+ reference: "reference";
1769
+ }>;
1770
+ dir: z.ZodString;
1771
+ url: z.ZodString;
1772
+ writable: z.ZodBoolean;
1773
+ archived: z.ZodBoolean;
1774
+ visibility: z.ZodNullable<z.ZodEnum<{
1775
+ private: "private";
1776
+ public: "public";
1777
+ }>>;
1778
+ ci: z.ZodBoolean;
1779
+ branch: z.ZodNullable<z.ZodString>;
1780
+ pinned: z.ZodBoolean;
1781
+ refresh: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
1782
+ kind: z.ZodLiteral<"act">;
1783
+ }, z.core.$strict>, z.ZodObject<{
1784
+ kind: z.ZodLiteral<"held">;
1785
+ by: z.ZodEnum<{
1786
+ entry: "entry";
1787
+ pinned: "pinned";
1788
+ origin_not_https: "origin_not_https";
1789
+ }>;
1790
+ }, z.core.$strict>], "kind">>;
1791
+ presence: z.ZodDiscriminatedUnion<[z.ZodObject<{
1792
+ kind: z.ZodLiteral<"present">;
1793
+ }, z.core.$strict>, z.ZodObject<{
1794
+ kind: z.ZodLiteral<"missing">;
1795
+ }, z.core.$strict>, z.ZodObject<{
1796
+ kind: z.ZodLiteral<"not_a_repo">;
1797
+ }, z.core.$strict>], "kind">;
1798
+ clone: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
1799
+ kind: z.ZodLiteral<"act">;
1800
+ recipe: z.ZodObject<{
1801
+ url: z.ZodString;
1802
+ branch: z.ZodNullable<z.ZodString>;
1803
+ shallow: z.ZodBoolean;
1804
+ sparse: z.ZodNullable<z.ZodString>;
1805
+ }, z.core.$strict>;
1806
+ }, z.core.$strict>, z.ZodObject<{
1807
+ kind: z.ZodLiteral<"held">;
1808
+ recipe: z.ZodObject<{
1809
+ url: z.ZodString;
1810
+ branch: z.ZodNullable<z.ZodString>;
1811
+ shallow: z.ZodBoolean;
1812
+ sparse: z.ZodNullable<z.ZodString>;
1813
+ }, z.core.$strict>;
1814
+ by: z.ZodEnum<{
1815
+ entry: "entry";
1816
+ unprobed_worktree: "unprobed_worktree";
1817
+ busy: "busy";
1818
+ }>;
1819
+ }, z.core.$strict>], "kind">>;
1820
+ layout: z.ZodNullable<z.ZodObject<{
1821
+ shallow: z.ZodBoolean;
1822
+ sparse: z.ZodBoolean;
1823
+ partial_filter: z.ZodNullable<z.ZodString>;
1824
+ }, z.core.$strict>>;
1825
+ checkouts: z.ZodArray<z.ZodObject<{
1826
+ path: z.ZodString;
1827
+ primary: z.ZodBoolean;
1828
+ head: z.ZodDiscriminatedUnion<[z.ZodObject<{
1829
+ kind: z.ZodLiteral<"branch">;
1830
+ name: z.ZodString;
1831
+ }, z.core.$strict>, z.ZodObject<{
1832
+ kind: z.ZodLiteral<"detached">;
1833
+ commit: z.ZodString;
1834
+ }, z.core.$strict>], "kind">;
1835
+ uncommitted: z.ZodObject<{
1836
+ staged: z.ZodNumber;
1837
+ unstaged: z.ZodNumber;
1838
+ untracked: z.ZodNumber;
1839
+ conflicted: z.ZodNumber;
1840
+ }, z.core.$strict>;
1841
+ in_progress: z.ZodNullable<z.ZodEnum<{
1842
+ rebase: "rebase";
1843
+ merge: "merge";
1844
+ cherry_pick: "cherry_pick";
1845
+ revert: "revert";
1846
+ bisect: "bisect";
1847
+ sequencer: "sequencer";
1848
+ am: "am";
1849
+ }>>;
1850
+ locked: z.ZodBoolean;
1851
+ linked: z.ZodBoolean;
1852
+ submodules: z.ZodNullable<z.ZodBoolean>;
1853
+ busy: z.ZodArray<z.ZodObject<{
1854
+ pid: z.ZodNumber;
1855
+ cwd: z.ZodString;
1856
+ worktree: z.ZodNullable<z.ZodString>;
1857
+ process_cwd: z.ZodNullable<z.ZodString>;
1858
+ source: z.ZodEnum<{
1859
+ session_file: "session_file";
1860
+ roster_worker: "roster_worker";
1861
+ }>;
1862
+ }, z.core.$strict>>;
1863
+ }, z.core.$strict>>;
1864
+ branches: z.ZodArray<z.ZodObject<{
1865
+ name: z.ZodString;
1866
+ upstream: z.ZodNullable<z.ZodString>;
1867
+ worktree: z.ZodNullable<z.ZodString>;
1868
+ symref: z.ZodNullable<z.ZodString>;
1869
+ unique_commits: z.ZodNumber;
1870
+ newest_commit_at: z.ZodNumber;
1871
+ relation: z.ZodDiscriminatedUnion<[z.ZodObject<{
1872
+ kind: z.ZodLiteral<"in_sync">;
1873
+ }, z.core.$strict>, z.ZodObject<{
1874
+ kind: z.ZodLiteral<"ahead">;
1875
+ commits: z.ZodNumber;
1876
+ }, z.core.$strict>, z.ZodObject<{
1877
+ kind: z.ZodLiteral<"behind">;
1878
+ commits: z.ZodNumber;
1879
+ }, z.core.$strict>, z.ZodObject<{
1880
+ kind: z.ZodLiteral<"diverged">;
1881
+ ahead: z.ZodNumber;
1882
+ behind: z.ZodNumber;
1883
+ }, z.core.$strict>, z.ZodObject<{
1884
+ kind: z.ZodLiteral<"shallow">;
1885
+ }, z.core.$strict>, z.ZodObject<{
1886
+ kind: z.ZodLiteral<"gone">;
1887
+ }, z.core.$strict>, z.ZodObject<{
1888
+ kind: z.ZodLiteral<"unmapped">;
1889
+ }, z.core.$strict>, z.ZodObject<{
1890
+ kind: z.ZodLiteral<"untracked">;
1891
+ }, z.core.$strict>], "kind">;
1892
+ verdict: z.ZodDiscriminatedUnion<[z.ZodObject<{
1893
+ kind: z.ZodLiteral<"quiet">;
1894
+ }, z.core.$strict>, z.ZodObject<{
1895
+ kind: z.ZodLiteral<"act">;
1896
+ action: z.ZodDiscriminatedUnion<[z.ZodObject<{
1897
+ kind: z.ZodLiteral<"push">;
1898
+ commits: z.ZodNumber;
1899
+ }, z.core.$strict>, z.ZodObject<{
1900
+ kind: z.ZodLiteral<"fast_forward">;
1901
+ commits: z.ZodNumber;
1902
+ }, z.core.$strict>, z.ZodObject<{
1903
+ kind: z.ZodLiteral<"move">;
1904
+ }, z.core.$strict>], "kind">;
1905
+ }, z.core.$strict>, z.ZodObject<{
1906
+ kind: z.ZodLiteral<"held">;
1907
+ action: z.ZodDiscriminatedUnion<[z.ZodObject<{
1908
+ kind: z.ZodLiteral<"push">;
1909
+ commits: z.ZodNumber;
1910
+ }, z.core.$strict>, z.ZodObject<{
1911
+ kind: z.ZodLiteral<"fast_forward">;
1912
+ commits: z.ZodNumber;
1913
+ }, z.core.$strict>, z.ZodObject<{
1914
+ kind: z.ZodLiteral<"move">;
1915
+ }, z.core.$strict>], "kind">;
1916
+ by: z.ZodEnum<{
1917
+ entry: "entry";
1918
+ pinned: "pinned";
1919
+ push_url: "push_url";
1920
+ fetch_failed: "fetch_failed";
1921
+ dirty_checkout: "dirty_checkout";
1922
+ unprobed_worktree: "unprobed_worktree";
1923
+ several_checkouts: "several_checkouts";
1924
+ busy: "busy";
1925
+ busy_unknown: "busy_unknown";
1926
+ }>;
1927
+ }, z.core.$strict>, z.ZodObject<{
1928
+ kind: z.ZodLiteral<"needs_human">;
1929
+ reason: z.ZodEnum<{
1930
+ diverged: "diverged";
1931
+ unmapped: "unmapped";
1932
+ archived_ahead: "archived_ahead";
1933
+ shallow_local_work: "shallow_local_work";
1934
+ upstream_not_a_branch: "upstream_not_a_branch";
1935
+ }>;
1936
+ }, z.core.$strict>, z.ZodObject<{
1937
+ kind: z.ZodLiteral<"local_only">;
1938
+ }, z.core.$strict>, z.ZodObject<{
1939
+ kind: z.ZodLiteral<"cleanup">;
1940
+ reason: z.ZodEnum<{
1941
+ merged: "merged";
1942
+ upstream_gone: "upstream_gone";
1943
+ }>;
1944
+ removable_worktree: z.ZodNullable<z.ZodString>;
1945
+ }, z.core.$strict>], "kind">;
1946
+ }, z.core.$strict>>;
1947
+ at_rest: z.ZodNullable<z.ZodObject<{
1948
+ on_branch: z.ZodNullable<z.ZodBoolean>;
1949
+ clean: z.ZodBoolean;
1950
+ idle: z.ZodBoolean;
1951
+ followed: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
1952
+ kind: z.ZodLiteral<"in_sync">;
1953
+ }, z.core.$strict>, z.ZodObject<{
1954
+ kind: z.ZodLiteral<"ahead">;
1955
+ commits: z.ZodNumber;
1956
+ }, z.core.$strict>, z.ZodObject<{
1957
+ kind: z.ZodLiteral<"behind">;
1958
+ commits: z.ZodNumber;
1959
+ }, z.core.$strict>, z.ZodObject<{
1960
+ kind: z.ZodLiteral<"diverged">;
1961
+ ahead: z.ZodNumber;
1962
+ behind: z.ZodNumber;
1963
+ }, z.core.$strict>, z.ZodObject<{
1964
+ kind: z.ZodLiteral<"shallow">;
1965
+ }, z.core.$strict>, z.ZodObject<{
1966
+ kind: z.ZodLiteral<"gone">;
1967
+ }, z.core.$strict>, z.ZodObject<{
1968
+ kind: z.ZodLiteral<"unmapped">;
1969
+ }, z.core.$strict>, z.ZodObject<{
1970
+ kind: z.ZodLiteral<"untracked">;
1971
+ }, z.core.$strict>], "kind">>;
1972
+ }, z.core.$strict>>;
1973
+ stashes: z.ZodNumber;
1974
+ fetched_at: z.ZodNullable<z.ZodNumber>;
1975
+ needs_human: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1976
+ kind: z.ZodLiteral<"not_a_repo">;
1977
+ detail: z.ZodString;
1978
+ }, z.core.$strict>, z.ZodObject<{
1979
+ kind: z.ZodLiteral<"operation_in_progress">;
1980
+ checkout: z.ZodString;
1981
+ op: z.ZodEnum<{
1982
+ rebase: "rebase";
1983
+ merge: "merge";
1984
+ cherry_pick: "cherry_pick";
1985
+ revert: "revert";
1986
+ bisect: "bisect";
1987
+ sequencer: "sequencer";
1988
+ am: "am";
1989
+ }>;
1990
+ }, z.core.$strict>, z.ZodObject<{
1991
+ kind: z.ZodLiteral<"origin_mismatch">;
1992
+ origin: z.ZodDiscriminatedUnion<[z.ZodObject<{
1993
+ kind: z.ZodLiteral<"url">;
1994
+ url: z.ZodString;
1995
+ }, z.core.$strict>, z.ZodObject<{
1996
+ kind: z.ZodLiteral<"no_url">;
1997
+ }, z.core.$strict>, z.ZodObject<{
1998
+ kind: z.ZodLiteral<"missing">;
1999
+ }, z.core.$strict>], "kind">;
2000
+ expected: z.ZodString;
2001
+ fix: z.ZodDiscriminatedUnion<[z.ZodObject<{
2002
+ kind: z.ZodLiteral<"add">;
2003
+ }, z.core.$strict>, z.ZodObject<{
2004
+ kind: z.ZodLiteral<"set_url">;
2005
+ }, z.core.$strict>, z.ZodObject<{
2006
+ kind: z.ZodLiteral<"by_hand">;
2007
+ reason: z.ZodEnum<{
2008
+ outside_repo_file: "outside_repo_file";
2009
+ valueless_url: "valueless_url";
2010
+ empty_value: "empty_value";
2011
+ several_urls: "several_urls";
2012
+ }>;
2013
+ }, z.core.$strict>], "kind">;
2014
+ }, z.core.$strict>, z.ZodObject<{
2015
+ kind: z.ZodLiteral<"origin_not_https">;
2016
+ fetch_url: z.ZodString;
2017
+ expected: z.ZodString;
2018
+ fix: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
2019
+ kind: z.ZodLiteral<"add">;
2020
+ }, z.core.$strict>, z.ZodObject<{
2021
+ kind: z.ZodLiteral<"set_url">;
2022
+ }, z.core.$strict>, z.ZodObject<{
2023
+ kind: z.ZodLiteral<"by_hand">;
2024
+ reason: z.ZodEnum<{
2025
+ outside_repo_file: "outside_repo_file";
2026
+ valueless_url: "valueless_url";
2027
+ empty_value: "empty_value";
2028
+ several_urls: "several_urls";
2029
+ }>;
2030
+ }, z.core.$strict>], "kind">>;
2031
+ }, z.core.$strict>, z.ZodObject<{
2032
+ kind: z.ZodLiteral<"fetch_url_mismatch">;
2033
+ fetch_url: z.ZodString;
2034
+ expected: z.ZodString;
2035
+ fix: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
2036
+ kind: z.ZodLiteral<"add">;
2037
+ }, z.core.$strict>, z.ZodObject<{
2038
+ kind: z.ZodLiteral<"set_url">;
2039
+ }, z.core.$strict>, z.ZodObject<{
2040
+ kind: z.ZodLiteral<"by_hand">;
2041
+ reason: z.ZodEnum<{
2042
+ outside_repo_file: "outside_repo_file";
2043
+ valueless_url: "valueless_url";
2044
+ empty_value: "empty_value";
2045
+ several_urls: "several_urls";
2046
+ }>;
2047
+ }, z.core.$strict>], "kind">>;
2048
+ }, z.core.$strict>, z.ZodObject<{
2049
+ kind: z.ZodLiteral<"worktree_unreadable">;
2050
+ path: z.ZodString;
2051
+ }, z.core.$strict>, z.ZodObject<{
2052
+ kind: z.ZodLiteral<"default_branch_missing">;
2053
+ branch: z.ZodString;
2054
+ }, z.core.$strict>, z.ZodObject<{
2055
+ kind: z.ZodLiteral<"default_branch_no_upstream">;
2056
+ branch: z.ZodString;
2057
+ }, z.core.$strict>, z.ZodObject<{
2058
+ kind: z.ZodLiteral<"default_branch_gone">;
2059
+ branch: z.ZodString;
2060
+ }, z.core.$strict>, z.ZodObject<{
2061
+ kind: z.ZodLiteral<"unexpected_detached">;
2062
+ checkout: z.ZodString;
2063
+ }, z.core.$strict>, z.ZodObject<{
2064
+ kind: z.ZodLiteral<"checkout_unresolvable">;
2065
+ checkout: z.ZodString;
2066
+ path: z.ZodString;
2067
+ error: z.ZodString;
2068
+ }, z.core.$strict>, z.ZodObject<{
2069
+ kind: z.ZodLiteral<"unlisted_git_dir">;
2070
+ git_dir: z.ZodString;
2071
+ head: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
2072
+ kind: z.ZodLiteral<"branch">;
2073
+ name: z.ZodString;
2074
+ }, z.core.$strict>, z.ZodObject<{
2075
+ kind: z.ZodLiteral<"detached">;
2076
+ commit: z.ZodString;
2077
+ }, z.core.$strict>], "kind">>;
2078
+ busy: z.ZodArray<z.ZodObject<{
2079
+ pid: z.ZodNumber;
2080
+ cwd: z.ZodString;
2081
+ worktree: z.ZodNullable<z.ZodString>;
2082
+ process_cwd: z.ZodNullable<z.ZodString>;
2083
+ source: z.ZodEnum<{
2084
+ session_file: "session_file";
2085
+ roster_worker: "roster_worker";
2086
+ }>;
2087
+ }, z.core.$strict>>;
2088
+ }, z.core.$strict>, z.ZodObject<{
2089
+ kind: z.ZodLiteral<"push_url_mismatch">;
2090
+ push_urls: z.ZodArray<z.ZodString>;
2091
+ expected: z.ZodString;
2092
+ }, z.core.$strict>, z.ZodObject<{
2093
+ kind: z.ZodLiteral<"clone_shares_repo">;
2094
+ with: z.ZodString;
2095
+ }, z.core.$strict>, z.ZodObject<{
2096
+ kind: z.ZodLiteral<"cloned_unregistered">;
2097
+ dir: z.ZodString;
2098
+ }, z.core.$strict>], "kind">>;
2099
+ probe_error: z.ZodNullable<z.ZodObject<{
2100
+ kind: z.ZodEnum<{
2101
+ path_unreadable: "path_unreadable";
2102
+ non_utf8_path: "non_utf8_path";
2103
+ config_unreadable: "config_unreadable";
2104
+ fetch_url_unreadable: "fetch_url_unreadable";
2105
+ push_urls_unreadable: "push_urls_unreadable";
2106
+ git_not_run: "git_not_run";
2107
+ git_timed_out: "git_timed_out";
2108
+ git_failed: "git_failed";
2109
+ unexpected_output: "unexpected_output";
2110
+ }>;
2111
+ message: z.ZodString;
2112
+ }, z.core.$strict>>;
2113
+ unprobed_worktrees: z.ZodArray<z.ZodObject<{
2114
+ path: z.ZodString;
2115
+ git_dir: z.ZodNullable<z.ZodString>;
2116
+ head: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
2117
+ kind: z.ZodLiteral<"branch">;
2118
+ name: z.ZodString;
2119
+ }, z.core.$strict>, z.ZodObject<{
2120
+ kind: z.ZodLiteral<"detached">;
2121
+ commit: z.ZodString;
2122
+ }, z.core.$strict>], "kind">>;
2123
+ locked: z.ZodBoolean;
2124
+ in_progress: z.ZodNullable<z.ZodEnum<{
2125
+ rebase: "rebase";
2126
+ merge: "merge";
2127
+ cherry_pick: "cherry_pick";
2128
+ revert: "revert";
2129
+ bisect: "bisect";
2130
+ sequencer: "sequencer";
2131
+ am: "am";
2132
+ }>>;
2133
+ why: z.ZodDiscriminatedUnion<[z.ZodObject<{
2134
+ kind: z.ZodLiteral<"prunable">;
2135
+ }, z.core.$strict>, z.ZodObject<{
2136
+ kind: z.ZodLiteral<"missing">;
2137
+ }, z.core.$strict>, z.ZodObject<{
2138
+ kind: z.ZodLiteral<"failed">;
2139
+ error: z.ZodString;
2140
+ }, z.core.$strict>], "kind">;
2141
+ holds: z.ZodNullable<z.ZodObject<{
2142
+ submodules: z.ZodBoolean;
2143
+ worktree_refs: z.ZodBoolean;
2144
+ staged: z.ZodNullable<z.ZodBoolean>;
2145
+ }, z.core.$strict>>;
2146
+ prune: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
2147
+ kind: z.ZodLiteral<"safe">;
2148
+ }, z.core.$strict>, z.ZodObject<{
2149
+ kind: z.ZodLiteral<"loses">;
2150
+ losses: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2151
+ kind: z.ZodLiteral<"operation">;
2152
+ op: z.ZodEnum<{
2153
+ rebase: "rebase";
2154
+ merge: "merge";
2155
+ cherry_pick: "cherry_pick";
2156
+ revert: "revert";
2157
+ bisect: "bisect";
2158
+ sequencer: "sequencer";
2159
+ am: "am";
2160
+ }>;
2161
+ }, z.core.$strict>, z.ZodObject<{
2162
+ kind: z.ZodLiteral<"detached_head">;
2163
+ }, z.core.$strict>, z.ZodObject<{
2164
+ kind: z.ZodLiteral<"unknown_head">;
2165
+ }, z.core.$strict>, z.ZodObject<{
2166
+ kind: z.ZodLiteral<"missing_branch">;
2167
+ name: z.ZodString;
2168
+ }, z.core.$strict>, z.ZodObject<{
2169
+ kind: z.ZodLiteral<"submodules">;
2170
+ }, z.core.$strict>, z.ZodObject<{
2171
+ kind: z.ZodLiteral<"worktree_refs">;
2172
+ }, z.core.$strict>, z.ZodObject<{
2173
+ kind: z.ZodLiteral<"staged_changes">;
2174
+ }, z.core.$strict>, z.ZodObject<{
2175
+ kind: z.ZodLiteral<"unmatched_git_dir">;
2176
+ }, z.core.$strict>, z.ZodObject<{
2177
+ kind: z.ZodLiteral<"relative_gitdir">;
2178
+ git_dir: z.ZodString;
2179
+ }, z.core.$strict>], "kind">>;
2180
+ }, z.core.$strict>, z.ZodObject<{
2181
+ kind: z.ZodLiteral<"moved">;
2182
+ to: z.ZodArray<z.ZodString>;
2183
+ }, z.core.$strict>], "kind">>;
2184
+ busy: z.ZodArray<z.ZodObject<{
2185
+ pid: z.ZodNumber;
2186
+ cwd: z.ZodString;
2187
+ worktree: z.ZodNullable<z.ZodString>;
2188
+ process_cwd: z.ZodNullable<z.ZodString>;
2189
+ source: z.ZodEnum<{
2190
+ session_file: "session_file";
2191
+ roster_worker: "roster_worker";
2192
+ }>;
2193
+ }, z.core.$strict>>;
2194
+ }, z.core.$strict>>;
2195
+ fetch_error: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
2196
+ kind: z.ZodLiteral<"ref_gone">;
2197
+ refname: z.ZodString;
2198
+ fix: z.ZodDiscriminatedUnion<[z.ZodObject<{
2199
+ kind: z.ZodLiteral<"unset_refspec">;
2200
+ pattern: z.ZodString;
2201
+ }, z.core.$strict>, z.ZodObject<{
2202
+ kind: z.ZodLiteral<"set_branches">;
2203
+ branch: z.ZodNullable<z.ZodString>;
2204
+ }, z.core.$strict>, z.ZodObject<{
2205
+ kind: z.ZodLiteral<"by_hand">;
2206
+ }, z.core.$strict>], "kind">;
2207
+ }, z.core.$strict>, z.ZodObject<{
2208
+ kind: z.ZodLiteral<"unreachable">;
2209
+ cause: z.ZodEnum<{
2210
+ dns: "dns";
2211
+ connection: "connection";
2212
+ host_key: "host_key";
2213
+ auth: "auth";
2214
+ }>;
2215
+ message: z.ZodString;
2216
+ }, z.core.$strict>, z.ZodObject<{
2217
+ kind: z.ZodLiteral<"repo_not_found">;
2218
+ message: z.ZodString;
2219
+ }, z.core.$strict>, z.ZodObject<{
2220
+ kind: z.ZodLiteral<"timed_out">;
2221
+ after_secs: z.ZodNumber;
2222
+ }, z.core.$strict>, z.ZodObject<{
2223
+ kind: z.ZodLiteral<"failed">;
2224
+ message: z.ZodString;
2225
+ }, z.core.$strict>, z.ZodObject<{
2226
+ kind: z.ZodLiteral<"refspec_outside_origin">;
2227
+ refspec: z.ZodString;
2228
+ }, z.core.$strict>, z.ZodObject<{
2229
+ kind: z.ZodLiteral<"origin_refs_shared">;
2230
+ remote: z.ZodString;
2231
+ refspec: z.ZodString;
2232
+ }, z.core.$strict>, z.ZodObject<{
2233
+ kind: z.ZodLiteral<"legacy_remotes_unreadable">;
2234
+ path: z.ZodString;
2235
+ }, z.core.$strict>], "kind">>;
2236
+ visibility_check: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
2237
+ kind: z.ZodLiteral<"leak">;
2238
+ }, z.core.$strict>, z.ZodObject<{
2239
+ kind: z.ZodLiteral<"private">;
2240
+ }, z.core.$strict>, z.ZodObject<{
2241
+ kind: z.ZodLiteral<"unknown">;
2242
+ failure: z.ZodDiscriminatedUnion<[z.ZodObject<{
2243
+ kind: z.ZodLiteral<"ref_gone">;
2244
+ refname: z.ZodString;
2245
+ fix: z.ZodDiscriminatedUnion<[z.ZodObject<{
2246
+ kind: z.ZodLiteral<"unset_refspec">;
2247
+ pattern: z.ZodString;
2248
+ }, z.core.$strict>, z.ZodObject<{
2249
+ kind: z.ZodLiteral<"set_branches">;
2250
+ branch: z.ZodNullable<z.ZodString>;
2251
+ }, z.core.$strict>, z.ZodObject<{
2252
+ kind: z.ZodLiteral<"by_hand">;
2253
+ }, z.core.$strict>], "kind">;
2254
+ }, z.core.$strict>, z.ZodObject<{
2255
+ kind: z.ZodLiteral<"unreachable">;
2256
+ cause: z.ZodEnum<{
2257
+ dns: "dns";
2258
+ connection: "connection";
2259
+ host_key: "host_key";
2260
+ auth: "auth";
2261
+ }>;
2262
+ message: z.ZodString;
2263
+ }, z.core.$strict>, z.ZodObject<{
2264
+ kind: z.ZodLiteral<"repo_not_found">;
2265
+ message: z.ZodString;
2266
+ }, z.core.$strict>, z.ZodObject<{
2267
+ kind: z.ZodLiteral<"timed_out">;
2268
+ after_secs: z.ZodNumber;
2269
+ }, z.core.$strict>, z.ZodObject<{
2270
+ kind: z.ZodLiteral<"failed">;
2271
+ message: z.ZodString;
2272
+ }, z.core.$strict>, z.ZodObject<{
2273
+ kind: z.ZodLiteral<"refspec_outside_origin">;
2274
+ refspec: z.ZodString;
2275
+ }, z.core.$strict>, z.ZodObject<{
2276
+ kind: z.ZodLiteral<"origin_refs_shared">;
2277
+ remote: z.ZodString;
2278
+ refspec: z.ZodString;
2279
+ }, z.core.$strict>, z.ZodObject<{
2280
+ kind: z.ZodLiteral<"legacy_remotes_unreadable">;
2281
+ path: z.ZodString;
2282
+ }, z.core.$strict>], "kind">;
2283
+ }, z.core.$strict>], "kind">>;
2284
+ }, z.core.$strict>>;
2285
+ unregistered: z.ZodNullable<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2286
+ kind: z.ZodLiteral<"clone">;
2287
+ dir: z.ZodString;
2288
+ origin: z.ZodNullable<z.ZodString>;
2289
+ owned: z.ZodBoolean;
2290
+ }, z.core.$strict>, z.ZodObject<{
2291
+ kind: z.ZodLiteral<"worktree">;
2292
+ dir: z.ZodString;
2293
+ origin: z.ZodNullable<z.ZodString>;
2294
+ owned: z.ZodBoolean;
2295
+ }, z.core.$strict>, z.ZodObject<{
2296
+ kind: z.ZodLiteral<"moved_worktree">;
2297
+ entry: z.ZodString;
2298
+ blocked_by: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
2299
+ kind: z.ZodLiteral<"rewrites">;
2300
+ path: z.ZodString;
2301
+ git_dir: z.ZodString;
2302
+ }, z.core.$strict>, z.ZodObject<{
2303
+ kind: z.ZodLiteral<"claimed_dir">;
2304
+ git_dir: z.ZodString;
2305
+ }, z.core.$strict>, z.ZodObject<{
2306
+ kind: z.ZodLiteral<"swapped">;
2307
+ git_dir: z.ZodString;
2308
+ with: z.ZodString;
2309
+ }, z.core.$strict>, z.ZodObject<{
2310
+ kind: z.ZodLiteral<"relative_gitdir">;
2311
+ git_dir: z.ZodString;
2312
+ }, z.core.$strict>, z.ZodObject<{
2313
+ kind: z.ZodLiteral<"unreadable_gitdir">;
2314
+ git_dir: z.ZodString;
2315
+ }, z.core.$strict>, z.ZodObject<{
2316
+ kind: z.ZodLiteral<"non_utf8_path">;
2317
+ }, z.core.$strict>, z.ZodObject<{
2318
+ kind: z.ZodLiteral<"nul_in_gitdir">;
2319
+ git_dir: z.ZodString;
2320
+ }, z.core.$strict>], "kind">>;
2321
+ exit_noise: z.ZodNullable<z.ZodString>;
2322
+ dir: z.ZodString;
2323
+ origin: z.ZodNullable<z.ZodString>;
2324
+ owned: z.ZodBoolean;
2325
+ }, z.core.$strict>, z.ZodObject<{
2326
+ kind: z.ZodLiteral<"orphaned_worktree">;
2327
+ entry: z.ZodString;
2328
+ dir: z.ZodString;
2329
+ origin: z.ZodNullable<z.ZodString>;
2330
+ owned: z.ZodBoolean;
2331
+ }, z.core.$strict>, z.ZodObject<{
2332
+ kind: z.ZodLiteral<"shared_git_dir">;
2333
+ entry: z.ZodString;
2334
+ with: z.ZodNullable<z.ZodString>;
2335
+ dir: z.ZodString;
2336
+ origin: z.ZodNullable<z.ZodString>;
2337
+ owned: z.ZodBoolean;
2338
+ }, z.core.$strict>, z.ZodObject<{
2339
+ kind: z.ZodLiteral<"unfinished_clone">;
2340
+ dir: z.ZodString;
2341
+ origin: z.ZodNullable<z.ZodString>;
2342
+ owned: z.ZodBoolean;
2343
+ }, z.core.$strict>], "kind">>>;
2344
+ }, z.core.$strict>;
2345
+ export type ReposStatusReport = z.infer<typeof ReposStatusReport>;
2346
+ /**
2347
+ * A fatal error as `repos status --json` prints it, its `kind` flattened
2348
+ * beside `message` and `hint`. Only the kinds `status` can print: the rest
2349
+ * of Rust's `ErrorKind` are `repos push`'s, or precede knowing `--json`.
2350
+ */
2351
+ export declare const ReposStatusErrorBody: z.ZodDiscriminatedUnion<[z.ZodObject<{
2352
+ kind: z.ZodLiteral<"references_with_targets">;
2353
+ message: z.ZodString;
2354
+ hint: z.ZodNullable<z.ZodString>;
2355
+ }, z.core.$strict>, z.ZodObject<{
2356
+ kind: z.ZodLiteral<"root_not_found">;
2357
+ message: z.ZodString;
2358
+ hint: z.ZodNullable<z.ZodString>;
2359
+ }, z.core.$strict>, z.ZodObject<{
2360
+ kind: z.ZodLiteral<"registry_not_found">;
2361
+ message: z.ZodString;
2362
+ hint: z.ZodNullable<z.ZodString>;
2363
+ }, z.core.$strict>, z.ZodObject<{
2364
+ kind: z.ZodLiteral<"root_in_entry">;
2365
+ key: z.ZodString;
2366
+ message: z.ZodString;
2367
+ hint: z.ZodNullable<z.ZodString>;
2368
+ }, z.core.$strict>, z.ZodObject<{
2369
+ kind: z.ZodLiteral<"registry_read">;
2370
+ message: z.ZodString;
2371
+ hint: z.ZodNullable<z.ZodString>;
2372
+ }, z.core.$strict>, z.ZodObject<{
2373
+ kind: z.ZodLiteral<"registry_parse">;
2374
+ message: z.ZodString;
2375
+ hint: z.ZodNullable<z.ZodString>;
2376
+ }, z.core.$strict>, z.ZodObject<{
2377
+ kind: z.ZodLiteral<"registry_invalid">;
2378
+ issues: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2379
+ kind: z.ZodLiteral<"repo_not_owned">;
2380
+ key: z.ZodString;
2381
+ account: z.ZodString;
2382
+ }, z.core.$strict>, z.ZodObject<{
2383
+ kind: z.ZodLiteral<"fork_not_owned">;
2384
+ key: z.ZodString;
2385
+ }, z.core.$strict>, z.ZodObject<{
2386
+ kind: z.ZodLiteral<"dir_not_a_name">;
2387
+ entry: z.ZodObject<{
2388
+ kind: z.ZodEnum<{
2389
+ repo: "repo";
2390
+ reference: "reference";
2391
+ }>;
2392
+ key: z.ZodString;
2393
+ }, z.core.$strict>;
2394
+ dir: z.ZodString;
2395
+ }, z.core.$strict>, z.ZodObject<{
2396
+ kind: z.ZodLiteral<"dir_claimed_twice">;
2397
+ dir: z.ZodString;
2398
+ first: z.ZodObject<{
2399
+ kind: z.ZodEnum<{
2400
+ repo: "repo";
2401
+ reference: "reference";
2402
+ }>;
2403
+ key: z.ZodString;
2404
+ }, z.core.$strict>;
2405
+ second: z.ZodObject<{
2406
+ kind: z.ZodEnum<{
2407
+ repo: "repo";
2408
+ reference: "reference";
2409
+ }>;
2410
+ key: z.ZodString;
2411
+ }, z.core.$strict>;
2412
+ }, z.core.$strict>, z.ZodObject<{
2413
+ kind: z.ZodLiteral<"key_in_both">;
2414
+ key: z.ZodString;
2415
+ }, z.core.$strict>, z.ZodObject<{
2416
+ kind: z.ZodLiteral<"key_is_other_dir">;
2417
+ key: z.ZodString;
2418
+ entry: z.ZodObject<{
2419
+ kind: z.ZodEnum<{
2420
+ repo: "repo";
2421
+ reference: "reference";
2422
+ }>;
2423
+ key: z.ZodString;
2424
+ }, z.core.$strict>;
2425
+ }, z.core.$strict>, z.ZodObject<{
2426
+ kind: z.ZodLiteral<"unknown_checkout_ref">;
2427
+ key: z.ZodString;
2428
+ field: z.ZodEnum<{
2429
+ requires: "requires";
2430
+ consults: "consults";
2431
+ }>;
2432
+ target: z.ZodString;
2433
+ }, z.core.$strict>, z.ZodObject<{
2434
+ kind: z.ZodLiteral<"self_ref">;
2435
+ key: z.ZodString;
2436
+ field: z.ZodEnum<{
2437
+ requires: "requires";
2438
+ consults: "consults";
2439
+ }>;
2440
+ }, z.core.$strict>, z.ZodObject<{
2441
+ kind: z.ZodLiteral<"requires_and_consults">;
2442
+ key: z.ZodString;
2443
+ target: z.ZodString;
2444
+ }, z.core.$strict>], "kind">>;
2445
+ message: z.ZodString;
2446
+ hint: z.ZodNullable<z.ZodString>;
2447
+ }, z.core.$strict>, z.ZodObject<{
2448
+ kind: z.ZodLiteral<"git_not_found">;
2449
+ message: z.ZodString;
2450
+ hint: z.ZodNullable<z.ZodString>;
2451
+ }, z.core.$strict>, z.ZodObject<{
2452
+ kind: z.ZodLiteral<"git_too_old">;
2453
+ found: z.ZodString;
2454
+ required: z.ZodString;
2455
+ message: z.ZodString;
2456
+ hint: z.ZodNullable<z.ZodString>;
2457
+ }, z.core.$strict>, z.ZodObject<{
2458
+ kind: z.ZodLiteral<"unknown_entry">;
2459
+ name: z.ZodString;
2460
+ suggestions: z.ZodArray<z.ZodString>;
2461
+ message: z.ZodString;
2462
+ hint: z.ZodNullable<z.ZodString>;
2463
+ }, z.core.$strict>, z.ZodObject<{
2464
+ kind: z.ZodLiteral<"io">;
2465
+ message: z.ZodString;
2466
+ hint: z.ZodNullable<z.ZodString>;
2467
+ }, z.core.$strict>], "kind">;
2468
+ export type ReposStatusErrorBody = z.infer<typeof ReposStatusErrorBody>;
2469
+ /** The document `repos status --json` prints on a fatal error, in place of the report. */
2470
+ export declare const ReposStatusErrorReport: z.ZodObject<{
2471
+ version: z.ZodLiteral<18>;
2472
+ error: z.ZodDiscriminatedUnion<[z.ZodObject<{
2473
+ kind: z.ZodLiteral<"references_with_targets">;
2474
+ message: z.ZodString;
2475
+ hint: z.ZodNullable<z.ZodString>;
2476
+ }, z.core.$strict>, z.ZodObject<{
2477
+ kind: z.ZodLiteral<"root_not_found">;
2478
+ message: z.ZodString;
2479
+ hint: z.ZodNullable<z.ZodString>;
2480
+ }, z.core.$strict>, z.ZodObject<{
2481
+ kind: z.ZodLiteral<"registry_not_found">;
2482
+ message: z.ZodString;
2483
+ hint: z.ZodNullable<z.ZodString>;
2484
+ }, z.core.$strict>, z.ZodObject<{
2485
+ kind: z.ZodLiteral<"root_in_entry">;
2486
+ key: z.ZodString;
2487
+ message: z.ZodString;
2488
+ hint: z.ZodNullable<z.ZodString>;
2489
+ }, z.core.$strict>, z.ZodObject<{
2490
+ kind: z.ZodLiteral<"registry_read">;
2491
+ message: z.ZodString;
2492
+ hint: z.ZodNullable<z.ZodString>;
2493
+ }, z.core.$strict>, z.ZodObject<{
2494
+ kind: z.ZodLiteral<"registry_parse">;
2495
+ message: z.ZodString;
2496
+ hint: z.ZodNullable<z.ZodString>;
2497
+ }, z.core.$strict>, z.ZodObject<{
2498
+ kind: z.ZodLiteral<"registry_invalid">;
2499
+ issues: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2500
+ kind: z.ZodLiteral<"repo_not_owned">;
2501
+ key: z.ZodString;
2502
+ account: z.ZodString;
2503
+ }, z.core.$strict>, z.ZodObject<{
2504
+ kind: z.ZodLiteral<"fork_not_owned">;
2505
+ key: z.ZodString;
2506
+ }, z.core.$strict>, z.ZodObject<{
2507
+ kind: z.ZodLiteral<"dir_not_a_name">;
2508
+ entry: z.ZodObject<{
2509
+ kind: z.ZodEnum<{
2510
+ repo: "repo";
2511
+ reference: "reference";
2512
+ }>;
2513
+ key: z.ZodString;
2514
+ }, z.core.$strict>;
2515
+ dir: z.ZodString;
2516
+ }, z.core.$strict>, z.ZodObject<{
2517
+ kind: z.ZodLiteral<"dir_claimed_twice">;
2518
+ dir: z.ZodString;
2519
+ first: z.ZodObject<{
2520
+ kind: z.ZodEnum<{
2521
+ repo: "repo";
2522
+ reference: "reference";
2523
+ }>;
2524
+ key: z.ZodString;
2525
+ }, z.core.$strict>;
2526
+ second: z.ZodObject<{
2527
+ kind: z.ZodEnum<{
2528
+ repo: "repo";
2529
+ reference: "reference";
2530
+ }>;
2531
+ key: z.ZodString;
2532
+ }, z.core.$strict>;
2533
+ }, z.core.$strict>, z.ZodObject<{
2534
+ kind: z.ZodLiteral<"key_in_both">;
2535
+ key: z.ZodString;
2536
+ }, z.core.$strict>, z.ZodObject<{
2537
+ kind: z.ZodLiteral<"key_is_other_dir">;
2538
+ key: z.ZodString;
2539
+ entry: z.ZodObject<{
2540
+ kind: z.ZodEnum<{
2541
+ repo: "repo";
2542
+ reference: "reference";
2543
+ }>;
2544
+ key: z.ZodString;
2545
+ }, z.core.$strict>;
2546
+ }, z.core.$strict>, z.ZodObject<{
2547
+ kind: z.ZodLiteral<"unknown_checkout_ref">;
2548
+ key: z.ZodString;
2549
+ field: z.ZodEnum<{
2550
+ requires: "requires";
2551
+ consults: "consults";
2552
+ }>;
2553
+ target: z.ZodString;
2554
+ }, z.core.$strict>, z.ZodObject<{
2555
+ kind: z.ZodLiteral<"self_ref">;
2556
+ key: z.ZodString;
2557
+ field: z.ZodEnum<{
2558
+ requires: "requires";
2559
+ consults: "consults";
2560
+ }>;
2561
+ }, z.core.$strict>, z.ZodObject<{
2562
+ kind: z.ZodLiteral<"requires_and_consults">;
2563
+ key: z.ZodString;
2564
+ target: z.ZodString;
2565
+ }, z.core.$strict>], "kind">>;
2566
+ message: z.ZodString;
2567
+ hint: z.ZodNullable<z.ZodString>;
2568
+ }, z.core.$strict>, z.ZodObject<{
2569
+ kind: z.ZodLiteral<"git_not_found">;
2570
+ message: z.ZodString;
2571
+ hint: z.ZodNullable<z.ZodString>;
2572
+ }, z.core.$strict>, z.ZodObject<{
2573
+ kind: z.ZodLiteral<"git_too_old">;
2574
+ found: z.ZodString;
2575
+ required: z.ZodString;
2576
+ message: z.ZodString;
2577
+ hint: z.ZodNullable<z.ZodString>;
2578
+ }, z.core.$strict>, z.ZodObject<{
2579
+ kind: z.ZodLiteral<"unknown_entry">;
2580
+ name: z.ZodString;
2581
+ suggestions: z.ZodArray<z.ZodString>;
2582
+ message: z.ZodString;
2583
+ hint: z.ZodNullable<z.ZodString>;
2584
+ }, z.core.$strict>, z.ZodObject<{
2585
+ kind: z.ZodLiteral<"io">;
2586
+ message: z.ZodString;
2587
+ hint: z.ZodNullable<z.ZodString>;
2588
+ }, z.core.$strict>], "kind">;
2589
+ }, z.core.$strict>;
2590
+ export type ReposStatusErrorReport = z.infer<typeof ReposStatusErrorReport>;
2591
+ /**
2592
+ * Either document `repos status --json` prints. No tag is needed: `error`
2593
+ * is the error document's alone, and each side's strictness refuses the
2594
+ * other's fields. A consumer wanting a sharper parse error branches on
2595
+ * `error` first and parses with that side's schema.
2596
+ */
2597
+ export declare const ReposStatusDocument: z.ZodUnion<readonly [z.ZodObject<{
2598
+ version: z.ZodLiteral<18>;
2599
+ workspace: z.ZodString;
2600
+ registry: z.ZodString;
2601
+ fetched: z.ZodBoolean;
2602
+ sessions: z.ZodDiscriminatedUnion<[z.ZodObject<{
2603
+ kind: z.ZodLiteral<"available">;
2604
+ unscoped: z.ZodArray<z.ZodObject<{
2605
+ pid: z.ZodNumber;
2606
+ cwd: z.ZodString;
2607
+ worktree: z.ZodNullable<z.ZodString>;
2608
+ process_cwd: z.ZodNullable<z.ZodString>;
2609
+ source: z.ZodEnum<{
2610
+ session_file: "session_file";
2611
+ roster_worker: "roster_worker";
2612
+ }>;
2613
+ }, z.core.$strict>>;
2614
+ }, z.core.$strict>, z.ZodObject<{
2615
+ kind: z.ZodLiteral<"unavailable">;
2616
+ reason: z.ZodDiscriminatedUnion<[z.ZodObject<{
2617
+ kind: z.ZodLiteral<"home_unknown">;
2618
+ }, z.core.$strict>, z.ZodObject<{
2619
+ kind: z.ZodLiteral<"relative_config_dir">;
2620
+ path: z.ZodString;
2621
+ }, z.core.$strict>, z.ZodObject<{
2622
+ kind: z.ZodLiteral<"unreadable">;
2623
+ path: z.ZodString;
2624
+ error: z.ZodString;
2625
+ }, z.core.$strict>, z.ZodObject<{
2626
+ kind: z.ZodLiteral<"unparseable">;
2627
+ path: z.ZodString;
2628
+ error: z.ZodString;
2629
+ }, z.core.$strict>, z.ZodObject<{
2630
+ kind: z.ZodLiteral<"foreign_pid_domain">;
2631
+ path: z.ZodString;
2632
+ pid_domain: z.ZodString;
2633
+ source: z.ZodEnum<{
2634
+ session_file: "session_file";
2635
+ roster_worker: "roster_worker";
2636
+ }>;
2637
+ }, z.core.$strict>], "kind">;
2638
+ }, z.core.$strict>], "kind">;
2639
+ entries: z.ZodArray<z.ZodObject<{
2640
+ key: z.ZodString;
2641
+ kind: z.ZodEnum<{
2642
+ repo: "repo";
2643
+ reference: "reference";
2644
+ }>;
2645
+ dir: z.ZodString;
2646
+ url: z.ZodString;
2647
+ writable: z.ZodBoolean;
2648
+ archived: z.ZodBoolean;
2649
+ visibility: z.ZodNullable<z.ZodEnum<{
2650
+ private: "private";
2651
+ public: "public";
2652
+ }>>;
2653
+ ci: z.ZodBoolean;
2654
+ branch: z.ZodNullable<z.ZodString>;
2655
+ pinned: z.ZodBoolean;
2656
+ refresh: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
2657
+ kind: z.ZodLiteral<"act">;
2658
+ }, z.core.$strict>, z.ZodObject<{
2659
+ kind: z.ZodLiteral<"held">;
2660
+ by: z.ZodEnum<{
2661
+ entry: "entry";
2662
+ pinned: "pinned";
2663
+ origin_not_https: "origin_not_https";
2664
+ }>;
2665
+ }, z.core.$strict>], "kind">>;
2666
+ presence: z.ZodDiscriminatedUnion<[z.ZodObject<{
2667
+ kind: z.ZodLiteral<"present">;
2668
+ }, z.core.$strict>, z.ZodObject<{
2669
+ kind: z.ZodLiteral<"missing">;
2670
+ }, z.core.$strict>, z.ZodObject<{
2671
+ kind: z.ZodLiteral<"not_a_repo">;
2672
+ }, z.core.$strict>], "kind">;
2673
+ clone: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
2674
+ kind: z.ZodLiteral<"act">;
2675
+ recipe: z.ZodObject<{
2676
+ url: z.ZodString;
2677
+ branch: z.ZodNullable<z.ZodString>;
2678
+ shallow: z.ZodBoolean;
2679
+ sparse: z.ZodNullable<z.ZodString>;
2680
+ }, z.core.$strict>;
2681
+ }, z.core.$strict>, z.ZodObject<{
2682
+ kind: z.ZodLiteral<"held">;
2683
+ recipe: z.ZodObject<{
2684
+ url: z.ZodString;
2685
+ branch: z.ZodNullable<z.ZodString>;
2686
+ shallow: z.ZodBoolean;
2687
+ sparse: z.ZodNullable<z.ZodString>;
2688
+ }, z.core.$strict>;
2689
+ by: z.ZodEnum<{
2690
+ entry: "entry";
2691
+ unprobed_worktree: "unprobed_worktree";
2692
+ busy: "busy";
2693
+ }>;
2694
+ }, z.core.$strict>], "kind">>;
2695
+ layout: z.ZodNullable<z.ZodObject<{
2696
+ shallow: z.ZodBoolean;
2697
+ sparse: z.ZodBoolean;
2698
+ partial_filter: z.ZodNullable<z.ZodString>;
2699
+ }, z.core.$strict>>;
2700
+ checkouts: z.ZodArray<z.ZodObject<{
2701
+ path: z.ZodString;
2702
+ primary: z.ZodBoolean;
2703
+ head: z.ZodDiscriminatedUnion<[z.ZodObject<{
2704
+ kind: z.ZodLiteral<"branch">;
2705
+ name: z.ZodString;
2706
+ }, z.core.$strict>, z.ZodObject<{
2707
+ kind: z.ZodLiteral<"detached">;
2708
+ commit: z.ZodString;
2709
+ }, z.core.$strict>], "kind">;
2710
+ uncommitted: z.ZodObject<{
2711
+ staged: z.ZodNumber;
2712
+ unstaged: z.ZodNumber;
2713
+ untracked: z.ZodNumber;
2714
+ conflicted: z.ZodNumber;
2715
+ }, z.core.$strict>;
2716
+ in_progress: z.ZodNullable<z.ZodEnum<{
2717
+ rebase: "rebase";
2718
+ merge: "merge";
2719
+ cherry_pick: "cherry_pick";
2720
+ revert: "revert";
2721
+ bisect: "bisect";
2722
+ sequencer: "sequencer";
2723
+ am: "am";
2724
+ }>>;
2725
+ locked: z.ZodBoolean;
2726
+ linked: z.ZodBoolean;
2727
+ submodules: z.ZodNullable<z.ZodBoolean>;
2728
+ busy: z.ZodArray<z.ZodObject<{
2729
+ pid: z.ZodNumber;
2730
+ cwd: z.ZodString;
2731
+ worktree: z.ZodNullable<z.ZodString>;
2732
+ process_cwd: z.ZodNullable<z.ZodString>;
2733
+ source: z.ZodEnum<{
2734
+ session_file: "session_file";
2735
+ roster_worker: "roster_worker";
2736
+ }>;
2737
+ }, z.core.$strict>>;
2738
+ }, z.core.$strict>>;
2739
+ branches: z.ZodArray<z.ZodObject<{
2740
+ name: z.ZodString;
2741
+ upstream: z.ZodNullable<z.ZodString>;
2742
+ worktree: z.ZodNullable<z.ZodString>;
2743
+ symref: z.ZodNullable<z.ZodString>;
2744
+ unique_commits: z.ZodNumber;
2745
+ newest_commit_at: z.ZodNumber;
2746
+ relation: z.ZodDiscriminatedUnion<[z.ZodObject<{
2747
+ kind: z.ZodLiteral<"in_sync">;
2748
+ }, z.core.$strict>, z.ZodObject<{
2749
+ kind: z.ZodLiteral<"ahead">;
2750
+ commits: z.ZodNumber;
2751
+ }, z.core.$strict>, z.ZodObject<{
2752
+ kind: z.ZodLiteral<"behind">;
2753
+ commits: z.ZodNumber;
2754
+ }, z.core.$strict>, z.ZodObject<{
2755
+ kind: z.ZodLiteral<"diverged">;
2756
+ ahead: z.ZodNumber;
2757
+ behind: z.ZodNumber;
2758
+ }, z.core.$strict>, z.ZodObject<{
2759
+ kind: z.ZodLiteral<"shallow">;
2760
+ }, z.core.$strict>, z.ZodObject<{
2761
+ kind: z.ZodLiteral<"gone">;
2762
+ }, z.core.$strict>, z.ZodObject<{
2763
+ kind: z.ZodLiteral<"unmapped">;
2764
+ }, z.core.$strict>, z.ZodObject<{
2765
+ kind: z.ZodLiteral<"untracked">;
2766
+ }, z.core.$strict>], "kind">;
2767
+ verdict: z.ZodDiscriminatedUnion<[z.ZodObject<{
2768
+ kind: z.ZodLiteral<"quiet">;
2769
+ }, z.core.$strict>, z.ZodObject<{
2770
+ kind: z.ZodLiteral<"act">;
2771
+ action: z.ZodDiscriminatedUnion<[z.ZodObject<{
2772
+ kind: z.ZodLiteral<"push">;
2773
+ commits: z.ZodNumber;
2774
+ }, z.core.$strict>, z.ZodObject<{
2775
+ kind: z.ZodLiteral<"fast_forward">;
2776
+ commits: z.ZodNumber;
2777
+ }, z.core.$strict>, z.ZodObject<{
2778
+ kind: z.ZodLiteral<"move">;
2779
+ }, z.core.$strict>], "kind">;
2780
+ }, z.core.$strict>, z.ZodObject<{
2781
+ kind: z.ZodLiteral<"held">;
2782
+ action: z.ZodDiscriminatedUnion<[z.ZodObject<{
2783
+ kind: z.ZodLiteral<"push">;
2784
+ commits: z.ZodNumber;
2785
+ }, z.core.$strict>, z.ZodObject<{
2786
+ kind: z.ZodLiteral<"fast_forward">;
2787
+ commits: z.ZodNumber;
2788
+ }, z.core.$strict>, z.ZodObject<{
2789
+ kind: z.ZodLiteral<"move">;
2790
+ }, z.core.$strict>], "kind">;
2791
+ by: z.ZodEnum<{
2792
+ entry: "entry";
2793
+ pinned: "pinned";
2794
+ push_url: "push_url";
2795
+ fetch_failed: "fetch_failed";
2796
+ dirty_checkout: "dirty_checkout";
2797
+ unprobed_worktree: "unprobed_worktree";
2798
+ several_checkouts: "several_checkouts";
2799
+ busy: "busy";
2800
+ busy_unknown: "busy_unknown";
2801
+ }>;
2802
+ }, z.core.$strict>, z.ZodObject<{
2803
+ kind: z.ZodLiteral<"needs_human">;
2804
+ reason: z.ZodEnum<{
2805
+ diverged: "diverged";
2806
+ unmapped: "unmapped";
2807
+ archived_ahead: "archived_ahead";
2808
+ shallow_local_work: "shallow_local_work";
2809
+ upstream_not_a_branch: "upstream_not_a_branch";
2810
+ }>;
2811
+ }, z.core.$strict>, z.ZodObject<{
2812
+ kind: z.ZodLiteral<"local_only">;
2813
+ }, z.core.$strict>, z.ZodObject<{
2814
+ kind: z.ZodLiteral<"cleanup">;
2815
+ reason: z.ZodEnum<{
2816
+ merged: "merged";
2817
+ upstream_gone: "upstream_gone";
2818
+ }>;
2819
+ removable_worktree: z.ZodNullable<z.ZodString>;
2820
+ }, z.core.$strict>], "kind">;
2821
+ }, z.core.$strict>>;
2822
+ at_rest: z.ZodNullable<z.ZodObject<{
2823
+ on_branch: z.ZodNullable<z.ZodBoolean>;
2824
+ clean: z.ZodBoolean;
2825
+ idle: z.ZodBoolean;
2826
+ followed: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
2827
+ kind: z.ZodLiteral<"in_sync">;
2828
+ }, z.core.$strict>, z.ZodObject<{
2829
+ kind: z.ZodLiteral<"ahead">;
2830
+ commits: z.ZodNumber;
2831
+ }, z.core.$strict>, z.ZodObject<{
2832
+ kind: z.ZodLiteral<"behind">;
2833
+ commits: z.ZodNumber;
2834
+ }, z.core.$strict>, z.ZodObject<{
2835
+ kind: z.ZodLiteral<"diverged">;
2836
+ ahead: z.ZodNumber;
2837
+ behind: z.ZodNumber;
2838
+ }, z.core.$strict>, z.ZodObject<{
2839
+ kind: z.ZodLiteral<"shallow">;
2840
+ }, z.core.$strict>, z.ZodObject<{
2841
+ kind: z.ZodLiteral<"gone">;
2842
+ }, z.core.$strict>, z.ZodObject<{
2843
+ kind: z.ZodLiteral<"unmapped">;
2844
+ }, z.core.$strict>, z.ZodObject<{
2845
+ kind: z.ZodLiteral<"untracked">;
2846
+ }, z.core.$strict>], "kind">>;
2847
+ }, z.core.$strict>>;
2848
+ stashes: z.ZodNumber;
2849
+ fetched_at: z.ZodNullable<z.ZodNumber>;
2850
+ needs_human: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2851
+ kind: z.ZodLiteral<"not_a_repo">;
2852
+ detail: z.ZodString;
2853
+ }, z.core.$strict>, z.ZodObject<{
2854
+ kind: z.ZodLiteral<"operation_in_progress">;
2855
+ checkout: z.ZodString;
2856
+ op: z.ZodEnum<{
2857
+ rebase: "rebase";
2858
+ merge: "merge";
2859
+ cherry_pick: "cherry_pick";
2860
+ revert: "revert";
2861
+ bisect: "bisect";
2862
+ sequencer: "sequencer";
2863
+ am: "am";
2864
+ }>;
2865
+ }, z.core.$strict>, z.ZodObject<{
2866
+ kind: z.ZodLiteral<"origin_mismatch">;
2867
+ origin: z.ZodDiscriminatedUnion<[z.ZodObject<{
2868
+ kind: z.ZodLiteral<"url">;
2869
+ url: z.ZodString;
2870
+ }, z.core.$strict>, z.ZodObject<{
2871
+ kind: z.ZodLiteral<"no_url">;
2872
+ }, z.core.$strict>, z.ZodObject<{
2873
+ kind: z.ZodLiteral<"missing">;
2874
+ }, z.core.$strict>], "kind">;
2875
+ expected: z.ZodString;
2876
+ fix: z.ZodDiscriminatedUnion<[z.ZodObject<{
2877
+ kind: z.ZodLiteral<"add">;
2878
+ }, z.core.$strict>, z.ZodObject<{
2879
+ kind: z.ZodLiteral<"set_url">;
2880
+ }, z.core.$strict>, z.ZodObject<{
2881
+ kind: z.ZodLiteral<"by_hand">;
2882
+ reason: z.ZodEnum<{
2883
+ outside_repo_file: "outside_repo_file";
2884
+ valueless_url: "valueless_url";
2885
+ empty_value: "empty_value";
2886
+ several_urls: "several_urls";
2887
+ }>;
2888
+ }, z.core.$strict>], "kind">;
2889
+ }, z.core.$strict>, z.ZodObject<{
2890
+ kind: z.ZodLiteral<"origin_not_https">;
2891
+ fetch_url: z.ZodString;
2892
+ expected: z.ZodString;
2893
+ fix: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
2894
+ kind: z.ZodLiteral<"add">;
2895
+ }, z.core.$strict>, z.ZodObject<{
2896
+ kind: z.ZodLiteral<"set_url">;
2897
+ }, z.core.$strict>, z.ZodObject<{
2898
+ kind: z.ZodLiteral<"by_hand">;
2899
+ reason: z.ZodEnum<{
2900
+ outside_repo_file: "outside_repo_file";
2901
+ valueless_url: "valueless_url";
2902
+ empty_value: "empty_value";
2903
+ several_urls: "several_urls";
2904
+ }>;
2905
+ }, z.core.$strict>], "kind">>;
2906
+ }, z.core.$strict>, z.ZodObject<{
2907
+ kind: z.ZodLiteral<"fetch_url_mismatch">;
2908
+ fetch_url: z.ZodString;
2909
+ expected: z.ZodString;
2910
+ fix: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
2911
+ kind: z.ZodLiteral<"add">;
2912
+ }, z.core.$strict>, z.ZodObject<{
2913
+ kind: z.ZodLiteral<"set_url">;
2914
+ }, z.core.$strict>, z.ZodObject<{
2915
+ kind: z.ZodLiteral<"by_hand">;
2916
+ reason: z.ZodEnum<{
2917
+ outside_repo_file: "outside_repo_file";
2918
+ valueless_url: "valueless_url";
2919
+ empty_value: "empty_value";
2920
+ several_urls: "several_urls";
2921
+ }>;
2922
+ }, z.core.$strict>], "kind">>;
2923
+ }, z.core.$strict>, z.ZodObject<{
2924
+ kind: z.ZodLiteral<"worktree_unreadable">;
2925
+ path: z.ZodString;
2926
+ }, z.core.$strict>, z.ZodObject<{
2927
+ kind: z.ZodLiteral<"default_branch_missing">;
2928
+ branch: z.ZodString;
2929
+ }, z.core.$strict>, z.ZodObject<{
2930
+ kind: z.ZodLiteral<"default_branch_no_upstream">;
2931
+ branch: z.ZodString;
2932
+ }, z.core.$strict>, z.ZodObject<{
2933
+ kind: z.ZodLiteral<"default_branch_gone">;
2934
+ branch: z.ZodString;
2935
+ }, z.core.$strict>, z.ZodObject<{
2936
+ kind: z.ZodLiteral<"unexpected_detached">;
2937
+ checkout: z.ZodString;
2938
+ }, z.core.$strict>, z.ZodObject<{
2939
+ kind: z.ZodLiteral<"checkout_unresolvable">;
2940
+ checkout: z.ZodString;
2941
+ path: z.ZodString;
2942
+ error: z.ZodString;
2943
+ }, z.core.$strict>, z.ZodObject<{
2944
+ kind: z.ZodLiteral<"unlisted_git_dir">;
2945
+ git_dir: z.ZodString;
2946
+ head: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
2947
+ kind: z.ZodLiteral<"branch">;
2948
+ name: z.ZodString;
2949
+ }, z.core.$strict>, z.ZodObject<{
2950
+ kind: z.ZodLiteral<"detached">;
2951
+ commit: z.ZodString;
2952
+ }, z.core.$strict>], "kind">>;
2953
+ busy: z.ZodArray<z.ZodObject<{
2954
+ pid: z.ZodNumber;
2955
+ cwd: z.ZodString;
2956
+ worktree: z.ZodNullable<z.ZodString>;
2957
+ process_cwd: z.ZodNullable<z.ZodString>;
2958
+ source: z.ZodEnum<{
2959
+ session_file: "session_file";
2960
+ roster_worker: "roster_worker";
2961
+ }>;
2962
+ }, z.core.$strict>>;
2963
+ }, z.core.$strict>, z.ZodObject<{
2964
+ kind: z.ZodLiteral<"push_url_mismatch">;
2965
+ push_urls: z.ZodArray<z.ZodString>;
2966
+ expected: z.ZodString;
2967
+ }, z.core.$strict>, z.ZodObject<{
2968
+ kind: z.ZodLiteral<"clone_shares_repo">;
2969
+ with: z.ZodString;
2970
+ }, z.core.$strict>, z.ZodObject<{
2971
+ kind: z.ZodLiteral<"cloned_unregistered">;
2972
+ dir: z.ZodString;
2973
+ }, z.core.$strict>], "kind">>;
2974
+ probe_error: z.ZodNullable<z.ZodObject<{
2975
+ kind: z.ZodEnum<{
2976
+ path_unreadable: "path_unreadable";
2977
+ non_utf8_path: "non_utf8_path";
2978
+ config_unreadable: "config_unreadable";
2979
+ fetch_url_unreadable: "fetch_url_unreadable";
2980
+ push_urls_unreadable: "push_urls_unreadable";
2981
+ git_not_run: "git_not_run";
2982
+ git_timed_out: "git_timed_out";
2983
+ git_failed: "git_failed";
2984
+ unexpected_output: "unexpected_output";
2985
+ }>;
2986
+ message: z.ZodString;
2987
+ }, z.core.$strict>>;
2988
+ unprobed_worktrees: z.ZodArray<z.ZodObject<{
2989
+ path: z.ZodString;
2990
+ git_dir: z.ZodNullable<z.ZodString>;
2991
+ head: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
2992
+ kind: z.ZodLiteral<"branch">;
2993
+ name: z.ZodString;
2994
+ }, z.core.$strict>, z.ZodObject<{
2995
+ kind: z.ZodLiteral<"detached">;
2996
+ commit: z.ZodString;
2997
+ }, z.core.$strict>], "kind">>;
2998
+ locked: z.ZodBoolean;
2999
+ in_progress: z.ZodNullable<z.ZodEnum<{
3000
+ rebase: "rebase";
3001
+ merge: "merge";
3002
+ cherry_pick: "cherry_pick";
3003
+ revert: "revert";
3004
+ bisect: "bisect";
3005
+ sequencer: "sequencer";
3006
+ am: "am";
3007
+ }>>;
3008
+ why: z.ZodDiscriminatedUnion<[z.ZodObject<{
3009
+ kind: z.ZodLiteral<"prunable">;
3010
+ }, z.core.$strict>, z.ZodObject<{
3011
+ kind: z.ZodLiteral<"missing">;
3012
+ }, z.core.$strict>, z.ZodObject<{
3013
+ kind: z.ZodLiteral<"failed">;
3014
+ error: z.ZodString;
3015
+ }, z.core.$strict>], "kind">;
3016
+ holds: z.ZodNullable<z.ZodObject<{
3017
+ submodules: z.ZodBoolean;
3018
+ worktree_refs: z.ZodBoolean;
3019
+ staged: z.ZodNullable<z.ZodBoolean>;
3020
+ }, z.core.$strict>>;
3021
+ prune: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
3022
+ kind: z.ZodLiteral<"safe">;
3023
+ }, z.core.$strict>, z.ZodObject<{
3024
+ kind: z.ZodLiteral<"loses">;
3025
+ losses: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
3026
+ kind: z.ZodLiteral<"operation">;
3027
+ op: z.ZodEnum<{
3028
+ rebase: "rebase";
3029
+ merge: "merge";
3030
+ cherry_pick: "cherry_pick";
3031
+ revert: "revert";
3032
+ bisect: "bisect";
3033
+ sequencer: "sequencer";
3034
+ am: "am";
3035
+ }>;
3036
+ }, z.core.$strict>, z.ZodObject<{
3037
+ kind: z.ZodLiteral<"detached_head">;
3038
+ }, z.core.$strict>, z.ZodObject<{
3039
+ kind: z.ZodLiteral<"unknown_head">;
3040
+ }, z.core.$strict>, z.ZodObject<{
3041
+ kind: z.ZodLiteral<"missing_branch">;
3042
+ name: z.ZodString;
3043
+ }, z.core.$strict>, z.ZodObject<{
3044
+ kind: z.ZodLiteral<"submodules">;
3045
+ }, z.core.$strict>, z.ZodObject<{
3046
+ kind: z.ZodLiteral<"worktree_refs">;
3047
+ }, z.core.$strict>, z.ZodObject<{
3048
+ kind: z.ZodLiteral<"staged_changes">;
3049
+ }, z.core.$strict>, z.ZodObject<{
3050
+ kind: z.ZodLiteral<"unmatched_git_dir">;
3051
+ }, z.core.$strict>, z.ZodObject<{
3052
+ kind: z.ZodLiteral<"relative_gitdir">;
3053
+ git_dir: z.ZodString;
3054
+ }, z.core.$strict>], "kind">>;
3055
+ }, z.core.$strict>, z.ZodObject<{
3056
+ kind: z.ZodLiteral<"moved">;
3057
+ to: z.ZodArray<z.ZodString>;
3058
+ }, z.core.$strict>], "kind">>;
3059
+ busy: z.ZodArray<z.ZodObject<{
3060
+ pid: z.ZodNumber;
3061
+ cwd: z.ZodString;
3062
+ worktree: z.ZodNullable<z.ZodString>;
3063
+ process_cwd: z.ZodNullable<z.ZodString>;
3064
+ source: z.ZodEnum<{
3065
+ session_file: "session_file";
3066
+ roster_worker: "roster_worker";
3067
+ }>;
3068
+ }, z.core.$strict>>;
3069
+ }, z.core.$strict>>;
3070
+ fetch_error: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
3071
+ kind: z.ZodLiteral<"ref_gone">;
3072
+ refname: z.ZodString;
3073
+ fix: z.ZodDiscriminatedUnion<[z.ZodObject<{
3074
+ kind: z.ZodLiteral<"unset_refspec">;
3075
+ pattern: z.ZodString;
3076
+ }, z.core.$strict>, z.ZodObject<{
3077
+ kind: z.ZodLiteral<"set_branches">;
3078
+ branch: z.ZodNullable<z.ZodString>;
3079
+ }, z.core.$strict>, z.ZodObject<{
3080
+ kind: z.ZodLiteral<"by_hand">;
3081
+ }, z.core.$strict>], "kind">;
3082
+ }, z.core.$strict>, z.ZodObject<{
3083
+ kind: z.ZodLiteral<"unreachable">;
3084
+ cause: z.ZodEnum<{
3085
+ dns: "dns";
3086
+ connection: "connection";
3087
+ host_key: "host_key";
3088
+ auth: "auth";
3089
+ }>;
3090
+ message: z.ZodString;
3091
+ }, z.core.$strict>, z.ZodObject<{
3092
+ kind: z.ZodLiteral<"repo_not_found">;
3093
+ message: z.ZodString;
3094
+ }, z.core.$strict>, z.ZodObject<{
3095
+ kind: z.ZodLiteral<"timed_out">;
3096
+ after_secs: z.ZodNumber;
3097
+ }, z.core.$strict>, z.ZodObject<{
3098
+ kind: z.ZodLiteral<"failed">;
3099
+ message: z.ZodString;
3100
+ }, z.core.$strict>, z.ZodObject<{
3101
+ kind: z.ZodLiteral<"refspec_outside_origin">;
3102
+ refspec: z.ZodString;
3103
+ }, z.core.$strict>, z.ZodObject<{
3104
+ kind: z.ZodLiteral<"origin_refs_shared">;
3105
+ remote: z.ZodString;
3106
+ refspec: z.ZodString;
3107
+ }, z.core.$strict>, z.ZodObject<{
3108
+ kind: z.ZodLiteral<"legacy_remotes_unreadable">;
3109
+ path: z.ZodString;
3110
+ }, z.core.$strict>], "kind">>;
3111
+ visibility_check: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
3112
+ kind: z.ZodLiteral<"leak">;
3113
+ }, z.core.$strict>, z.ZodObject<{
3114
+ kind: z.ZodLiteral<"private">;
3115
+ }, z.core.$strict>, z.ZodObject<{
3116
+ kind: z.ZodLiteral<"unknown">;
3117
+ failure: z.ZodDiscriminatedUnion<[z.ZodObject<{
3118
+ kind: z.ZodLiteral<"ref_gone">;
3119
+ refname: z.ZodString;
3120
+ fix: z.ZodDiscriminatedUnion<[z.ZodObject<{
3121
+ kind: z.ZodLiteral<"unset_refspec">;
3122
+ pattern: z.ZodString;
3123
+ }, z.core.$strict>, z.ZodObject<{
3124
+ kind: z.ZodLiteral<"set_branches">;
3125
+ branch: z.ZodNullable<z.ZodString>;
3126
+ }, z.core.$strict>, z.ZodObject<{
3127
+ kind: z.ZodLiteral<"by_hand">;
3128
+ }, z.core.$strict>], "kind">;
3129
+ }, z.core.$strict>, z.ZodObject<{
3130
+ kind: z.ZodLiteral<"unreachable">;
3131
+ cause: z.ZodEnum<{
3132
+ dns: "dns";
3133
+ connection: "connection";
3134
+ host_key: "host_key";
3135
+ auth: "auth";
3136
+ }>;
3137
+ message: z.ZodString;
3138
+ }, z.core.$strict>, z.ZodObject<{
3139
+ kind: z.ZodLiteral<"repo_not_found">;
3140
+ message: z.ZodString;
3141
+ }, z.core.$strict>, z.ZodObject<{
3142
+ kind: z.ZodLiteral<"timed_out">;
3143
+ after_secs: z.ZodNumber;
3144
+ }, z.core.$strict>, z.ZodObject<{
3145
+ kind: z.ZodLiteral<"failed">;
3146
+ message: z.ZodString;
3147
+ }, z.core.$strict>, z.ZodObject<{
3148
+ kind: z.ZodLiteral<"refspec_outside_origin">;
3149
+ refspec: z.ZodString;
3150
+ }, z.core.$strict>, z.ZodObject<{
3151
+ kind: z.ZodLiteral<"origin_refs_shared">;
3152
+ remote: z.ZodString;
3153
+ refspec: z.ZodString;
3154
+ }, z.core.$strict>, z.ZodObject<{
3155
+ kind: z.ZodLiteral<"legacy_remotes_unreadable">;
3156
+ path: z.ZodString;
3157
+ }, z.core.$strict>], "kind">;
3158
+ }, z.core.$strict>], "kind">>;
3159
+ }, z.core.$strict>>;
3160
+ unregistered: z.ZodNullable<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
3161
+ kind: z.ZodLiteral<"clone">;
3162
+ dir: z.ZodString;
3163
+ origin: z.ZodNullable<z.ZodString>;
3164
+ owned: z.ZodBoolean;
3165
+ }, z.core.$strict>, z.ZodObject<{
3166
+ kind: z.ZodLiteral<"worktree">;
3167
+ dir: z.ZodString;
3168
+ origin: z.ZodNullable<z.ZodString>;
3169
+ owned: z.ZodBoolean;
3170
+ }, z.core.$strict>, z.ZodObject<{
3171
+ kind: z.ZodLiteral<"moved_worktree">;
3172
+ entry: z.ZodString;
3173
+ blocked_by: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
3174
+ kind: z.ZodLiteral<"rewrites">;
3175
+ path: z.ZodString;
3176
+ git_dir: z.ZodString;
3177
+ }, z.core.$strict>, z.ZodObject<{
3178
+ kind: z.ZodLiteral<"claimed_dir">;
3179
+ git_dir: z.ZodString;
3180
+ }, z.core.$strict>, z.ZodObject<{
3181
+ kind: z.ZodLiteral<"swapped">;
3182
+ git_dir: z.ZodString;
3183
+ with: z.ZodString;
3184
+ }, z.core.$strict>, z.ZodObject<{
3185
+ kind: z.ZodLiteral<"relative_gitdir">;
3186
+ git_dir: z.ZodString;
3187
+ }, z.core.$strict>, z.ZodObject<{
3188
+ kind: z.ZodLiteral<"unreadable_gitdir">;
3189
+ git_dir: z.ZodString;
3190
+ }, z.core.$strict>, z.ZodObject<{
3191
+ kind: z.ZodLiteral<"non_utf8_path">;
3192
+ }, z.core.$strict>, z.ZodObject<{
3193
+ kind: z.ZodLiteral<"nul_in_gitdir">;
3194
+ git_dir: z.ZodString;
3195
+ }, z.core.$strict>], "kind">>;
3196
+ exit_noise: z.ZodNullable<z.ZodString>;
3197
+ dir: z.ZodString;
3198
+ origin: z.ZodNullable<z.ZodString>;
3199
+ owned: z.ZodBoolean;
3200
+ }, z.core.$strict>, z.ZodObject<{
3201
+ kind: z.ZodLiteral<"orphaned_worktree">;
3202
+ entry: z.ZodString;
3203
+ dir: z.ZodString;
3204
+ origin: z.ZodNullable<z.ZodString>;
3205
+ owned: z.ZodBoolean;
3206
+ }, z.core.$strict>, z.ZodObject<{
3207
+ kind: z.ZodLiteral<"shared_git_dir">;
3208
+ entry: z.ZodString;
3209
+ with: z.ZodNullable<z.ZodString>;
3210
+ dir: z.ZodString;
3211
+ origin: z.ZodNullable<z.ZodString>;
3212
+ owned: z.ZodBoolean;
3213
+ }, z.core.$strict>, z.ZodObject<{
3214
+ kind: z.ZodLiteral<"unfinished_clone">;
3215
+ dir: z.ZodString;
3216
+ origin: z.ZodNullable<z.ZodString>;
3217
+ owned: z.ZodBoolean;
3218
+ }, z.core.$strict>], "kind">>>;
3219
+ }, z.core.$strict>, z.ZodObject<{
3220
+ version: z.ZodLiteral<18>;
3221
+ error: z.ZodDiscriminatedUnion<[z.ZodObject<{
3222
+ kind: z.ZodLiteral<"references_with_targets">;
3223
+ message: z.ZodString;
3224
+ hint: z.ZodNullable<z.ZodString>;
3225
+ }, z.core.$strict>, z.ZodObject<{
3226
+ kind: z.ZodLiteral<"root_not_found">;
3227
+ message: z.ZodString;
3228
+ hint: z.ZodNullable<z.ZodString>;
3229
+ }, z.core.$strict>, z.ZodObject<{
3230
+ kind: z.ZodLiteral<"registry_not_found">;
3231
+ message: z.ZodString;
3232
+ hint: z.ZodNullable<z.ZodString>;
3233
+ }, z.core.$strict>, z.ZodObject<{
3234
+ kind: z.ZodLiteral<"root_in_entry">;
3235
+ key: z.ZodString;
3236
+ message: z.ZodString;
3237
+ hint: z.ZodNullable<z.ZodString>;
3238
+ }, z.core.$strict>, z.ZodObject<{
3239
+ kind: z.ZodLiteral<"registry_read">;
3240
+ message: z.ZodString;
3241
+ hint: z.ZodNullable<z.ZodString>;
3242
+ }, z.core.$strict>, z.ZodObject<{
3243
+ kind: z.ZodLiteral<"registry_parse">;
3244
+ message: z.ZodString;
3245
+ hint: z.ZodNullable<z.ZodString>;
3246
+ }, z.core.$strict>, z.ZodObject<{
3247
+ kind: z.ZodLiteral<"registry_invalid">;
3248
+ issues: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
3249
+ kind: z.ZodLiteral<"repo_not_owned">;
3250
+ key: z.ZodString;
3251
+ account: z.ZodString;
3252
+ }, z.core.$strict>, z.ZodObject<{
3253
+ kind: z.ZodLiteral<"fork_not_owned">;
3254
+ key: z.ZodString;
3255
+ }, z.core.$strict>, z.ZodObject<{
3256
+ kind: z.ZodLiteral<"dir_not_a_name">;
3257
+ entry: z.ZodObject<{
3258
+ kind: z.ZodEnum<{
3259
+ repo: "repo";
3260
+ reference: "reference";
3261
+ }>;
3262
+ key: z.ZodString;
3263
+ }, z.core.$strict>;
3264
+ dir: z.ZodString;
3265
+ }, z.core.$strict>, z.ZodObject<{
3266
+ kind: z.ZodLiteral<"dir_claimed_twice">;
3267
+ dir: z.ZodString;
3268
+ first: z.ZodObject<{
3269
+ kind: z.ZodEnum<{
3270
+ repo: "repo";
3271
+ reference: "reference";
3272
+ }>;
3273
+ key: z.ZodString;
3274
+ }, z.core.$strict>;
3275
+ second: z.ZodObject<{
3276
+ kind: z.ZodEnum<{
3277
+ repo: "repo";
3278
+ reference: "reference";
3279
+ }>;
3280
+ key: z.ZodString;
3281
+ }, z.core.$strict>;
3282
+ }, z.core.$strict>, z.ZodObject<{
3283
+ kind: z.ZodLiteral<"key_in_both">;
3284
+ key: z.ZodString;
3285
+ }, z.core.$strict>, z.ZodObject<{
3286
+ kind: z.ZodLiteral<"key_is_other_dir">;
3287
+ key: z.ZodString;
3288
+ entry: z.ZodObject<{
3289
+ kind: z.ZodEnum<{
3290
+ repo: "repo";
3291
+ reference: "reference";
3292
+ }>;
3293
+ key: z.ZodString;
3294
+ }, z.core.$strict>;
3295
+ }, z.core.$strict>, z.ZodObject<{
3296
+ kind: z.ZodLiteral<"unknown_checkout_ref">;
3297
+ key: z.ZodString;
3298
+ field: z.ZodEnum<{
3299
+ requires: "requires";
3300
+ consults: "consults";
3301
+ }>;
3302
+ target: z.ZodString;
3303
+ }, z.core.$strict>, z.ZodObject<{
3304
+ kind: z.ZodLiteral<"self_ref">;
3305
+ key: z.ZodString;
3306
+ field: z.ZodEnum<{
3307
+ requires: "requires";
3308
+ consults: "consults";
3309
+ }>;
3310
+ }, z.core.$strict>, z.ZodObject<{
3311
+ kind: z.ZodLiteral<"requires_and_consults">;
3312
+ key: z.ZodString;
3313
+ target: z.ZodString;
3314
+ }, z.core.$strict>], "kind">>;
3315
+ message: z.ZodString;
3316
+ hint: z.ZodNullable<z.ZodString>;
3317
+ }, z.core.$strict>, z.ZodObject<{
3318
+ kind: z.ZodLiteral<"git_not_found">;
3319
+ message: z.ZodString;
3320
+ hint: z.ZodNullable<z.ZodString>;
3321
+ }, z.core.$strict>, z.ZodObject<{
3322
+ kind: z.ZodLiteral<"git_too_old">;
3323
+ found: z.ZodString;
3324
+ required: z.ZodString;
3325
+ message: z.ZodString;
3326
+ hint: z.ZodNullable<z.ZodString>;
3327
+ }, z.core.$strict>, z.ZodObject<{
3328
+ kind: z.ZodLiteral<"unknown_entry">;
3329
+ name: z.ZodString;
3330
+ suggestions: z.ZodArray<z.ZodString>;
3331
+ message: z.ZodString;
3332
+ hint: z.ZodNullable<z.ZodString>;
3333
+ }, z.core.$strict>, z.ZodObject<{
3334
+ kind: z.ZodLiteral<"io">;
3335
+ message: z.ZodString;
3336
+ hint: z.ZodNullable<z.ZodString>;
3337
+ }, z.core.$strict>], "kind">;
3338
+ }, z.core.$strict>]>;
3339
+ export type ReposStatusDocument = z.infer<typeof ReposStatusDocument>;
3340
+ //# sourceMappingURL=repos_status.d.ts.map