@astrosheep/keiyaku 4.5.8 → 4.5.9
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.
- package/README.md +1 -1
- package/build/integrations/marketplace/plugins/keiyaku/skills/keiyaku/SKILL.md +2 -2
- package/build/integrations/marketplace/plugins/keiyaku/skills/keiyaku-akuma/SKILL.md +15 -15
- package/build/src/akuma/akuma.d.ts +24 -4
- package/build/src/akuma/archetype.js +1 -1
- package/build/src/akuma/body.d.ts +2 -1
- package/build/src/akuma/body.js +7 -2
- package/build/src/akuma/call-request.js +1 -1
- package/build/src/akuma/heart/facts.d.ts +10 -0
- package/build/src/akuma/heart/facts.js +11 -0
- package/build/src/akuma/heart/index.d.ts +3 -2
- package/build/src/akuma/heart/index.js +4 -1
- package/build/src/akuma/projection.d.ts +63 -12
- package/build/src/akuma/projection.js +5 -11
- package/build/src/akuma/provider.js +8 -1
- package/build/src/akuma/providers/claude/events.d.ts +2 -2
- package/build/src/akuma/providers/claude/events.js +16 -3
- package/build/src/akuma/providers/codex-app-server/events.d.ts +2 -2
- package/build/src/akuma/providers/codex-app-server/events.js +25 -4
- package/build/src/akuma/providers/pi/index.js +55 -69
- package/build/src/akuma/request-lifecycle.d.ts +1 -1
- package/build/src/akuma/request-lifecycle.js +3 -1
- package/build/src/akuma/request-serve.d.ts +1 -1
- package/build/src/akuma/request-serve.js +4 -4
- package/build/src/akuma/turn-drive.js +8 -2
- package/build/src/body/amend.js +18 -19
- package/build/src/cli/commands/akuma.js +2 -2
- package/build/src/cli/commands/contract-invoke.js +27 -22
- package/build/src/cli/commands/contract.d.ts +6 -10
- package/build/src/cli/commands/contract.js +29 -11
- package/build/src/cli/commands/install.d.ts +1 -0
- package/build/src/cli/commands/install.js +2 -1
- package/build/src/cli/parse.js +23 -9
- package/build/src/cli/render/akuma-activity.d.ts +1 -1
- package/build/src/cli/render/akuma-activity.js +4 -3
- package/build/src/cli/render/akuma.js +1 -1
- package/build/src/cli/render/catalog.js +1 -1
- package/build/src/cli/render/contract.js +13 -0
- package/build/src/cli/render/kanshi-akuma.js +26 -5
- package/build/src/cli/render/kanshi.js +26 -3
- package/build/src/cli/render/terminal.d.ts +4 -1
- package/build/src/cli/render/terminal.js +12 -1
- package/build/src/cli/runtime.js +1 -1
- package/build/src/git/nuke.js +3 -3
- package/build/src/git/process.js +7 -4
- package/build/src/git/read-observation.js +1 -1
- package/build/src/git/reconcile.d.ts +2 -1
- package/build/src/git/reconcile.js +6 -0
- package/build/src/git/ref-migration.d.ts +22 -0
- package/build/src/git/ref-migration.js +55 -0
- package/build/src/git/repository.d.ts +4 -4
- package/build/src/git/repository.js +8 -8
- package/build/src/library/audit.d.ts +13 -5
- package/build/src/library/audit.js +9 -21
- package/build/src/library/composition.d.ts +41 -27
- package/build/src/library/composition.js +3 -3
- package/build/src/library/contract-forwarding-reconciliation-result.d.ts +17 -11
- package/build/src/library/contract-forwarding-reconciliation-result.js +11 -2
- package/build/src/library/contract-forwarding-result.d.ts +1628 -3887
- package/build/src/library/contract-forwarding-result.js +1 -1
- package/build/src/library/contract-forwarding.d.ts +12 -13
- package/build/src/library/contract-forwarding.js +17 -28
- package/build/src/library/contract-handle.d.ts +3 -1
- package/build/src/library/contract-handle.js +23 -22
- package/build/src/library/contract-operations.d.ts +61 -893
- package/build/src/library/contract-operations.js +2 -3
- package/build/src/library/contract-types.d.ts +7 -3
- package/build/src/library/contract.d.ts +12 -4
- package/build/src/library/contract.js +21 -6
- package/build/src/library/fleet-result.d.ts +138 -12
- package/build/src/library/fleet-result.js +2 -0
- package/build/src/library/input.d.ts +1 -1
- package/build/src/library/input.js +7 -1
- package/build/src/library/keiyaku.d.ts +44 -27
- package/build/src/library/keiyaku.js +6 -1
- package/build/src/runtime/proc/run.d.ts +1 -0
- package/build/src/runtime/proc/run.js +25 -5
- package/build/src/runtime/proc/windows-launch.exe +0 -0
- package/package.json +1 -1
|
@@ -3,31 +3,29 @@ import type { AuditReport } from "../protocol/audit.js";
|
|
|
3
3
|
import type { IntegrationConflictMaterialized } from "../protocol/deliver.js";
|
|
4
4
|
import type { DeliveryValue } from "./delivery.js";
|
|
5
5
|
import type { MutationResult } from "./mutation.js";
|
|
6
|
-
import type { Review } from "./contract-forwarding.js";
|
|
6
|
+
import type { DeliveryExecutionInput, Review } from "./contract-forwarding.js";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
type DeliveryResult = MutationResult<DeliveryValue> | IntegrationConflictMaterialized;
|
|
9
9
|
type ReviewResult = MutationResult<Review>;
|
|
10
10
|
type AuditResult = MutationResult<AuditReport>;
|
|
11
11
|
type ContractResult = DeliveryResult | ReviewResult | AuditResult;
|
|
12
|
+
type ContractRequester = NonNullable<DeliveryExecutionInput["actor"]>;
|
|
12
13
|
declare const auditRequestSchema: z.ZodPipe<z.ZodObject<{
|
|
13
14
|
repoRoot: z.ZodString;
|
|
14
15
|
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
|
|
15
16
|
includeDirty: z.ZodBoolean;
|
|
16
17
|
showDiff: z.ZodBoolean;
|
|
17
|
-
requireBranchesToBeUpToDate: z.ZodBoolean;
|
|
18
18
|
}, z.core.$strict>, z.ZodTransform<{
|
|
19
19
|
repoRoot: string;
|
|
20
20
|
contractId: import("../core/facts/types.js").ContractId;
|
|
21
21
|
includeDirty: boolean;
|
|
22
22
|
showDiff: boolean;
|
|
23
|
-
requireBranchesToBeUpToDate: boolean;
|
|
24
23
|
action: "contract.audit";
|
|
25
24
|
}, {
|
|
26
25
|
repoRoot: string;
|
|
27
26
|
contractId: import("../core/facts/types.js").ContractId;
|
|
28
27
|
includeDirty: boolean;
|
|
29
28
|
showDiff: boolean;
|
|
30
|
-
requireBranchesToBeUpToDate: boolean;
|
|
31
29
|
}>>;
|
|
32
30
|
declare const deliverRequestSchema: z.ZodPipe<z.ZodObject<{
|
|
33
31
|
repoRoot: z.ZodString;
|
|
@@ -87,921 +85,91 @@ declare const contractServiceSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
87
85
|
kind: z.ZodLiteral<"audit-report">;
|
|
88
86
|
repoRoot: z.ZodString;
|
|
89
87
|
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
|
|
90
|
-
report: z.
|
|
91
|
-
candidate:
|
|
92
|
-
kind:
|
|
93
|
-
refusal:
|
|
94
|
-
|
|
95
|
-
"worktree-missing": "worktree-missing";
|
|
96
|
-
"target-missing": "target-missing";
|
|
97
|
-
}>;
|
|
98
|
-
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
|
|
99
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
100
|
-
kind: z.ZodLiteral<"dirty-workspace">;
|
|
101
|
-
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
|
|
102
|
-
staged: z.ZodArray<z.ZodString>;
|
|
103
|
-
unstaged: z.ZodArray<z.ZodString>;
|
|
104
|
-
untracked: z.ZodArray<z.ZodString>;
|
|
105
|
-
submodules: z.ZodArray<z.ZodString>;
|
|
106
|
-
shortStat: z.ZodObject<{
|
|
107
|
-
filesChanged: z.ZodNumber;
|
|
108
|
-
insertions: z.ZodNumber;
|
|
109
|
-
deletions: z.ZodNumber;
|
|
110
|
-
}, z.core.$strict>;
|
|
111
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
112
|
-
kind: z.ZodLiteral<"unmerged-paths">;
|
|
113
|
-
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
|
|
114
|
-
paths: z.ZodArray<z.ZodString>;
|
|
115
|
-
}, z.core.$strict>, z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
116
|
-
kind: z.ZodLiteral<"integration-failed">;
|
|
117
|
-
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
|
|
118
|
-
reason: z.ZodEnum<{
|
|
119
|
-
conflict: "conflict";
|
|
120
|
-
"not-based-on-target": "not-based-on-target";
|
|
121
|
-
"unrelated-histories": "unrelated-histories";
|
|
122
|
-
}>;
|
|
123
|
-
targetHead: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
|
|
124
|
-
conflictPaths: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
125
|
-
}, z.core.$strict>, z.ZodTransform<{
|
|
126
|
-
kind: "integration-failed";
|
|
127
|
-
contractId: import("../core/facts/types.js").ContractId;
|
|
128
|
-
reason: "conflict" | "not-based-on-target" | "unrelated-histories";
|
|
129
|
-
targetHead: import("../core/facts/types.js").SnapshotId;
|
|
130
|
-
} | {
|
|
131
|
-
conflictPaths: string[];
|
|
132
|
-
kind: "integration-failed";
|
|
133
|
-
contractId: import("../core/facts/types.js").ContractId;
|
|
134
|
-
reason: "conflict" | "not-based-on-target" | "unrelated-histories";
|
|
135
|
-
targetHead: import("../core/facts/types.js").SnapshotId;
|
|
136
|
-
}, {
|
|
137
|
-
kind: "integration-failed";
|
|
138
|
-
contractId: import("../core/facts/types.js").ContractId;
|
|
139
|
-
reason: "conflict" | "not-based-on-target" | "unrelated-histories";
|
|
140
|
-
targetHead: import("../core/facts/types.js").SnapshotId;
|
|
141
|
-
conflictPaths?: string[] | undefined;
|
|
142
|
-
}>>, z.ZodObject<{
|
|
143
|
-
kind: z.ZodLiteral<"integration-unsupported">;
|
|
144
|
-
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
|
|
145
|
-
requiredGit: z.ZodLiteral<"2.38">;
|
|
146
|
-
}, z.core.$strict>]>, z.ZodObject<{
|
|
147
|
-
kind: z.ZodLiteral<"merge-state-present">;
|
|
148
|
-
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
|
|
149
|
-
workspace: z.ZodObject<{
|
|
150
|
-
kind: z.ZodLiteral<"worktree">;
|
|
151
|
-
path: z.ZodString;
|
|
152
|
-
}, z.core.$strict>;
|
|
153
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
154
|
-
kind: z.ZodLiteral<"checkout-not-followable">;
|
|
155
|
-
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
|
|
156
|
-
target: z.ZodString;
|
|
157
|
-
path: z.ZodString;
|
|
158
|
-
reason: z.ZodEnum<{
|
|
159
|
-
conflict: "conflict";
|
|
160
|
-
staged: "staged";
|
|
161
|
-
untracked: "untracked";
|
|
162
|
-
}>;
|
|
163
|
-
paths: z.ZodArray<z.ZodString>;
|
|
164
|
-
}, z.core.$strict>]>;
|
|
165
|
-
}, z.core.$strict>, z.ZodPipe<z.ZodObject<{
|
|
166
|
-
kind: z.ZodLiteral<"ready">;
|
|
167
|
-
workspace: z.ZodObject<{
|
|
168
|
-
kind: z.ZodLiteral<"worktree">;
|
|
169
|
-
path: z.ZodString;
|
|
170
|
-
}, z.core.$strict>;
|
|
171
|
-
identity: z.ZodObject<{
|
|
172
|
-
tenderSnapshot: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
|
|
173
|
-
integration: z.ZodObject<{
|
|
174
|
-
predecessor: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
|
|
175
|
-
snapshot: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
|
|
176
|
-
changeId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ChangeId, string>>;
|
|
177
|
-
}, z.core.$strict>;
|
|
178
|
-
method: z.ZodLiteral<"squash">;
|
|
179
|
-
policy: z.ZodObject<{
|
|
180
|
-
requireBranchesToBeUpToDate: z.ZodBoolean;
|
|
181
|
-
}, z.core.$strict>;
|
|
182
|
-
}, z.core.$strict>;
|
|
183
|
-
scope: z.ZodPipe<z.ZodObject<{
|
|
184
|
-
filesChanged: z.ZodNumber;
|
|
185
|
-
insertions: z.ZodNumber;
|
|
186
|
-
deletions: z.ZodNumber;
|
|
187
|
-
paths: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
188
|
-
}, z.core.$strict>, z.ZodTransform<{
|
|
189
|
-
filesChanged: number;
|
|
190
|
-
insertions: number;
|
|
191
|
-
deletions: number;
|
|
192
|
-
} | {
|
|
193
|
-
paths: string[];
|
|
194
|
-
filesChanged: number;
|
|
195
|
-
insertions: number;
|
|
196
|
-
deletions: number;
|
|
197
|
-
}, {
|
|
198
|
-
filesChanged: number;
|
|
199
|
-
insertions: number;
|
|
200
|
-
deletions: number;
|
|
201
|
-
paths?: string[] | undefined;
|
|
202
|
-
}>>;
|
|
203
|
-
diff: z.ZodOptional<z.ZodString>;
|
|
204
|
-
}, z.core.$strict>, z.ZodTransform<{
|
|
205
|
-
kind: "ready";
|
|
206
|
-
workspace: {
|
|
207
|
-
kind: "worktree";
|
|
208
|
-
path: string;
|
|
209
|
-
};
|
|
210
|
-
identity: {
|
|
211
|
-
tenderSnapshot: import("../core/facts/types.js").SnapshotId;
|
|
212
|
-
integration: {
|
|
213
|
-
predecessor: import("../core/facts/types.js").SnapshotId;
|
|
214
|
-
snapshot: import("../core/facts/types.js").SnapshotId;
|
|
215
|
-
changeId: import("../core/facts/types.js").ChangeId;
|
|
216
|
-
};
|
|
217
|
-
method: "squash";
|
|
218
|
-
policy: {
|
|
219
|
-
requireBranchesToBeUpToDate: boolean;
|
|
220
|
-
};
|
|
221
|
-
};
|
|
222
|
-
scope: {
|
|
223
|
-
filesChanged: number;
|
|
224
|
-
insertions: number;
|
|
225
|
-
deletions: number;
|
|
226
|
-
} | {
|
|
227
|
-
paths: string[];
|
|
228
|
-
filesChanged: number;
|
|
229
|
-
insertions: number;
|
|
230
|
-
deletions: number;
|
|
231
|
-
};
|
|
232
|
-
} | {
|
|
233
|
-
diff: string;
|
|
234
|
-
kind: "ready";
|
|
235
|
-
workspace: {
|
|
236
|
-
kind: "worktree";
|
|
237
|
-
path: string;
|
|
238
|
-
};
|
|
239
|
-
identity: {
|
|
240
|
-
tenderSnapshot: import("../core/facts/types.js").SnapshotId;
|
|
241
|
-
integration: {
|
|
242
|
-
predecessor: import("../core/facts/types.js").SnapshotId;
|
|
243
|
-
snapshot: import("../core/facts/types.js").SnapshotId;
|
|
244
|
-
changeId: import("../core/facts/types.js").ChangeId;
|
|
245
|
-
};
|
|
246
|
-
method: "squash";
|
|
247
|
-
policy: {
|
|
248
|
-
requireBranchesToBeUpToDate: boolean;
|
|
249
|
-
};
|
|
250
|
-
};
|
|
251
|
-
scope: {
|
|
252
|
-
filesChanged: number;
|
|
253
|
-
insertions: number;
|
|
254
|
-
deletions: number;
|
|
255
|
-
} | {
|
|
256
|
-
paths: string[];
|
|
257
|
-
filesChanged: number;
|
|
258
|
-
insertions: number;
|
|
259
|
-
deletions: number;
|
|
260
|
-
};
|
|
261
|
-
}, {
|
|
88
|
+
report: z.ZodType<Readonly<{
|
|
89
|
+
candidate: Readonly<{
|
|
90
|
+
kind: "blocked";
|
|
91
|
+
refusal: import("./contract.js").DeliveryPreparationRefusal;
|
|
92
|
+
}> | Readonly<{
|
|
262
93
|
kind: "ready";
|
|
263
|
-
workspace: {
|
|
94
|
+
workspace: Readonly<{
|
|
264
95
|
kind: "worktree";
|
|
265
96
|
path: string;
|
|
266
|
-
};
|
|
267
|
-
identity: {
|
|
268
|
-
tenderSnapshot: import("../core/facts/types.js").SnapshotId;
|
|
269
|
-
integration: {
|
|
270
|
-
predecessor: import("../core/facts/types.js").SnapshotId;
|
|
271
|
-
snapshot: import("../core/facts/types.js").SnapshotId;
|
|
272
|
-
changeId: import("../core/facts/types.js").ChangeId;
|
|
273
|
-
};
|
|
274
|
-
method: "squash";
|
|
275
|
-
policy: {
|
|
276
|
-
requireBranchesToBeUpToDate: boolean;
|
|
277
|
-
};
|
|
278
|
-
};
|
|
279
|
-
scope: {
|
|
280
|
-
filesChanged: number;
|
|
281
|
-
insertions: number;
|
|
282
|
-
deletions: number;
|
|
283
|
-
} | {
|
|
284
|
-
paths: string[];
|
|
285
|
-
filesChanged: number;
|
|
286
|
-
insertions: number;
|
|
287
|
-
deletions: number;
|
|
288
|
-
};
|
|
289
|
-
diff?: string | undefined;
|
|
290
|
-
}>>]>;
|
|
291
|
-
verification: z.ZodUnion<readonly [z.ZodObject<{
|
|
292
|
-
kind: z.ZodLiteral<"not-run">;
|
|
293
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
294
|
-
kind: z.ZodLiteral<"stopped">;
|
|
295
|
-
stop: z.ZodUnion<readonly [z.ZodObject<{
|
|
296
|
-
refusal: z.ZodUnion<readonly [z.ZodObject<{
|
|
297
|
-
kind: z.ZodEnum<{
|
|
298
|
-
terminal: "terminal";
|
|
299
|
-
"contract-missing": "contract-missing";
|
|
300
|
-
}>;
|
|
301
|
-
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
|
|
302
|
-
}, z.core.$strict>, z.ZodPipe<z.ZodObject<{
|
|
303
|
-
kind: z.ZodLiteral<"verification-declaration-invalid">;
|
|
304
|
-
contractId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>>;
|
|
305
|
-
}, z.core.$strict>, z.ZodTransform<{
|
|
306
|
-
kind: "verification-declaration-invalid";
|
|
307
|
-
} | {
|
|
308
|
-
contractId: import("../core/facts/types.js").ContractId;
|
|
309
|
-
kind: "verification-declaration-invalid";
|
|
310
|
-
}, {
|
|
311
|
-
kind: "verification-declaration-invalid";
|
|
312
|
-
contractId?: import("../core/facts/types.js").ContractId | undefined;
|
|
313
|
-
}>>]>;
|
|
314
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
315
|
-
retry: z.ZodUnion<readonly [z.ZodObject<{
|
|
316
|
-
kind: z.ZodLiteral<"exhausted">;
|
|
317
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
318
|
-
kind: z.ZodLiteral<"collision">;
|
|
319
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
320
|
-
kind: z.ZodLiteral<"publication-failed">;
|
|
321
|
-
diagnostic: z.ZodString;
|
|
322
|
-
}, z.core.$strict>]>;
|
|
323
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
324
|
-
failure: z.ZodEnum<{
|
|
325
|
-
cancelled: "cancelled";
|
|
326
|
-
"unknown-exit": "unknown-exit";
|
|
327
|
-
}>;
|
|
328
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
329
|
-
failure: z.ZodEnum<{
|
|
330
|
-
"spawn-error": "spawn-error";
|
|
331
|
-
"candidate-unavailable": "candidate-unavailable";
|
|
332
|
-
}>;
|
|
333
|
-
diagnostic: z.ZodString;
|
|
334
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
335
|
-
failure: z.ZodLiteral<"environment-failure">;
|
|
336
|
-
diagnostic: z.ZodString;
|
|
337
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
338
|
-
failure: z.ZodLiteral<"environment-failure">;
|
|
339
|
-
command: z.ZodNumber;
|
|
340
|
-
detail: z.ZodUnion<readonly [z.ZodObject<{
|
|
341
|
-
kind: z.ZodLiteral<"exit">;
|
|
342
|
-
code: z.ZodNumber;
|
|
343
|
-
stdout: z.ZodString;
|
|
344
|
-
stderr: z.ZodString;
|
|
345
|
-
truncated: z.ZodBoolean;
|
|
346
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
347
|
-
kind: z.ZodLiteral<"timeout">;
|
|
348
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
349
|
-
kind: z.ZodLiteral<"spawn-error">;
|
|
350
|
-
diagnostic: z.ZodString;
|
|
351
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
352
|
-
kind: z.ZodLiteral<"unknown-exit">;
|
|
353
|
-
}, z.core.$strict>]>;
|
|
354
|
-
}, z.core.$strict>]>;
|
|
355
|
-
}, z.core.$strict>, z.ZodPipe<z.ZodObject<{
|
|
356
|
-
kind: z.ZodEnum<{
|
|
357
|
-
satisfied: "satisfied";
|
|
358
|
-
unsatisfied: "unsatisfied";
|
|
359
|
-
}>;
|
|
360
|
-
passed: z.ZodNumber;
|
|
361
|
-
total: z.ZodNumber;
|
|
362
|
-
summary: z.ZodOptional<z.ZodString>;
|
|
363
|
-
}, z.core.$strict>, z.ZodTransform<{
|
|
364
|
-
kind: "satisfied" | "unsatisfied";
|
|
365
|
-
passed: number;
|
|
366
|
-
total: number;
|
|
367
|
-
} | {
|
|
368
|
-
summary: string;
|
|
369
|
-
kind: "satisfied" | "unsatisfied";
|
|
370
|
-
passed: number;
|
|
371
|
-
total: number;
|
|
372
|
-
}, {
|
|
373
|
-
kind: "satisfied" | "unsatisfied";
|
|
374
|
-
passed: number;
|
|
375
|
-
total: number;
|
|
376
|
-
summary?: string | undefined;
|
|
377
|
-
}>>]>;
|
|
378
|
-
target: z.ZodUnion<readonly [z.ZodObject<{
|
|
379
|
-
kind: z.ZodLiteral<"not-observed">;
|
|
380
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
381
|
-
kind: z.ZodLiteral<"placeable">;
|
|
382
|
-
ref: z.ZodString;
|
|
383
|
-
head: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
|
|
384
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
385
|
-
kind: z.ZodLiteral<"moved">;
|
|
386
|
-
ref: z.ZodString;
|
|
387
|
-
expected: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
|
|
388
|
-
observed: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>>;
|
|
389
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
390
|
-
kind: z.ZodLiteral<"refused">;
|
|
391
|
-
refusal: z.ZodObject<{
|
|
392
|
-
kind: z.ZodLiteral<"checkout-not-followable">;
|
|
393
|
-
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
|
|
394
|
-
target: z.ZodString;
|
|
395
|
-
path: z.ZodString;
|
|
396
|
-
reason: z.ZodEnum<{
|
|
397
|
-
conflict: "conflict";
|
|
398
|
-
staged: "staged";
|
|
399
|
-
untracked: "untracked";
|
|
400
|
-
}>;
|
|
401
|
-
paths: z.ZodArray<z.ZodString>;
|
|
402
|
-
}, z.core.$strict>;
|
|
403
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
404
|
-
kind: z.ZodLiteral<"failed">;
|
|
405
|
-
diagnostic: z.ZodString;
|
|
406
|
-
}, z.core.$strict>]>;
|
|
407
|
-
delivery: z.ZodOptional<z.ZodObject<{
|
|
408
|
-
changeId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ChangeId, string>>;
|
|
409
|
-
relation: z.ZodEnum<{
|
|
410
|
-
identical: "identical";
|
|
411
|
-
differs: "differs";
|
|
412
97
|
}>;
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
candidate: {
|
|
416
|
-
kind: "ready";
|
|
417
|
-
workspace: {
|
|
418
|
-
kind: "worktree";
|
|
419
|
-
path: string;
|
|
420
|
-
};
|
|
421
|
-
identity: {
|
|
422
|
-
tenderSnapshot: import("../core/facts/types.js").SnapshotId;
|
|
423
|
-
integration: {
|
|
424
|
-
predecessor: import("../core/facts/types.js").SnapshotId;
|
|
425
|
-
snapshot: import("../core/facts/types.js").SnapshotId;
|
|
426
|
-
changeId: import("../core/facts/types.js").ChangeId;
|
|
427
|
-
};
|
|
428
|
-
method: "squash";
|
|
429
|
-
policy: {
|
|
430
|
-
requireBranchesToBeUpToDate: boolean;
|
|
431
|
-
};
|
|
432
|
-
};
|
|
433
|
-
scope: {
|
|
98
|
+
identity: import("../core/facts/types.js").DeliverData;
|
|
99
|
+
scope: Readonly<{
|
|
434
100
|
filesChanged: number;
|
|
435
101
|
insertions: number;
|
|
436
102
|
deletions: number;
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
} | {
|
|
444
|
-
|
|
445
|
-
kind: "ready";
|
|
446
|
-
workspace: {
|
|
447
|
-
kind: "worktree";
|
|
448
|
-
path: string;
|
|
449
|
-
};
|
|
450
|
-
identity: {
|
|
451
|
-
tenderSnapshot: import("../core/facts/types.js").SnapshotId;
|
|
452
|
-
integration: {
|
|
453
|
-
predecessor: import("../core/facts/types.js").SnapshotId;
|
|
454
|
-
snapshot: import("../core/facts/types.js").SnapshotId;
|
|
455
|
-
changeId: import("../core/facts/types.js").ChangeId;
|
|
456
|
-
};
|
|
457
|
-
method: "squash";
|
|
458
|
-
policy: {
|
|
459
|
-
requireBranchesToBeUpToDate: boolean;
|
|
460
|
-
};
|
|
461
|
-
};
|
|
462
|
-
scope: {
|
|
463
|
-
filesChanged: number;
|
|
464
|
-
insertions: number;
|
|
465
|
-
deletions: number;
|
|
466
|
-
} | {
|
|
467
|
-
paths: string[];
|
|
468
|
-
filesChanged: number;
|
|
469
|
-
insertions: number;
|
|
470
|
-
deletions: number;
|
|
471
|
-
};
|
|
472
|
-
} | {
|
|
473
|
-
kind: "blocked";
|
|
474
|
-
refusal: {
|
|
475
|
-
kind: "integration-failed";
|
|
476
|
-
contractId: import("../core/facts/types.js").ContractId;
|
|
477
|
-
reason: "conflict" | "not-based-on-target" | "unrelated-histories";
|
|
478
|
-
targetHead: import("../core/facts/types.js").SnapshotId;
|
|
479
|
-
} | {
|
|
480
|
-
conflictPaths: string[];
|
|
481
|
-
kind: "integration-failed";
|
|
482
|
-
contractId: import("../core/facts/types.js").ContractId;
|
|
483
|
-
reason: "conflict" | "not-based-on-target" | "unrelated-histories";
|
|
484
|
-
targetHead: import("../core/facts/types.js").SnapshotId;
|
|
485
|
-
} | {
|
|
486
|
-
kind: "merge-state-present";
|
|
487
|
-
contractId: import("../core/facts/types.js").ContractId;
|
|
488
|
-
workspace: {
|
|
489
|
-
kind: "worktree";
|
|
490
|
-
path: string;
|
|
491
|
-
};
|
|
492
|
-
} | {
|
|
493
|
-
kind: "unmerged-paths";
|
|
494
|
-
contractId: import("../core/facts/types.js").ContractId;
|
|
495
|
-
paths: string[];
|
|
496
|
-
} | {
|
|
497
|
-
kind: "dirty-workspace";
|
|
498
|
-
contractId: import("../core/facts/types.js").ContractId;
|
|
499
|
-
staged: string[];
|
|
500
|
-
unstaged: string[];
|
|
501
|
-
untracked: string[];
|
|
502
|
-
submodules: string[];
|
|
503
|
-
shortStat: {
|
|
504
|
-
filesChanged: number;
|
|
505
|
-
insertions: number;
|
|
506
|
-
deletions: number;
|
|
507
|
-
};
|
|
508
|
-
} | {
|
|
509
|
-
kind: "integration-unsupported";
|
|
510
|
-
contractId: import("../core/facts/types.js").ContractId;
|
|
511
|
-
requiredGit: "2.38";
|
|
512
|
-
} | {
|
|
513
|
-
kind: "checkout-not-followable";
|
|
514
|
-
contractId: import("../core/facts/types.js").ContractId;
|
|
515
|
-
target: string;
|
|
516
|
-
path: string;
|
|
517
|
-
reason: "conflict" | "staged" | "untracked";
|
|
518
|
-
paths: string[];
|
|
519
|
-
} | {
|
|
520
|
-
kind: "worktree-missing" | "target-missing";
|
|
521
|
-
contractId: import("../core/facts/types.js").ContractId;
|
|
522
|
-
};
|
|
523
|
-
};
|
|
524
|
-
verification: {
|
|
525
|
-
kind: "satisfied" | "unsatisfied";
|
|
103
|
+
paths?: readonly string[];
|
|
104
|
+
}>;
|
|
105
|
+
diff?: string;
|
|
106
|
+
}>;
|
|
107
|
+
verification: Readonly<{
|
|
108
|
+
kind: "not-run";
|
|
109
|
+
}> | Readonly<{
|
|
110
|
+
kind: "satisfied";
|
|
526
111
|
passed: number;
|
|
527
112
|
total: number;
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
kind: "
|
|
113
|
+
summary?: string;
|
|
114
|
+
}> | Readonly<{
|
|
115
|
+
kind: "unsatisfied";
|
|
531
116
|
passed: number;
|
|
532
117
|
total: number;
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
} | {
|
|
118
|
+
summary?: string;
|
|
119
|
+
}> | Readonly<{
|
|
536
120
|
kind: "stopped";
|
|
537
|
-
stop:
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
} | {
|
|
541
|
-
contractId: import("../core/facts/types.js").ContractId;
|
|
542
|
-
kind: "verification-declaration-invalid";
|
|
543
|
-
} | {
|
|
544
|
-
kind: "terminal" | "contract-missing";
|
|
545
|
-
contractId: import("../core/facts/types.js").ContractId;
|
|
546
|
-
};
|
|
547
|
-
} | {
|
|
548
|
-
retry: {
|
|
549
|
-
kind: "exhausted";
|
|
550
|
-
} | {
|
|
551
|
-
kind: "collision";
|
|
552
|
-
} | {
|
|
553
|
-
kind: "publication-failed";
|
|
554
|
-
diagnostic: string;
|
|
555
|
-
};
|
|
556
|
-
} | {
|
|
557
|
-
failure: "cancelled" | "unknown-exit";
|
|
558
|
-
} | {
|
|
559
|
-
failure: "spawn-error" | "candidate-unavailable";
|
|
560
|
-
diagnostic: string;
|
|
561
|
-
} | {
|
|
562
|
-
failure: "environment-failure";
|
|
563
|
-
diagnostic: string;
|
|
564
|
-
} | {
|
|
565
|
-
failure: "environment-failure";
|
|
566
|
-
command: number;
|
|
567
|
-
detail: {
|
|
568
|
-
kind: "exit";
|
|
569
|
-
code: number;
|
|
570
|
-
stdout: string;
|
|
571
|
-
stderr: string;
|
|
572
|
-
truncated: boolean;
|
|
573
|
-
} | {
|
|
574
|
-
kind: "timeout";
|
|
575
|
-
} | {
|
|
576
|
-
kind: "spawn-error";
|
|
577
|
-
diagnostic: string;
|
|
578
|
-
} | {
|
|
579
|
-
kind: "unknown-exit";
|
|
580
|
-
};
|
|
581
|
-
};
|
|
582
|
-
};
|
|
583
|
-
target: {
|
|
121
|
+
stop: import("./contract.js").VerificationStop;
|
|
122
|
+
}>;
|
|
123
|
+
target: Readonly<{
|
|
584
124
|
kind: "not-observed";
|
|
585
|
-
} |
|
|
586
|
-
|
|
587
|
-
ref: string;
|
|
588
|
-
head: import("../core/facts/types.js").SnapshotId;
|
|
589
|
-
} | {
|
|
590
|
-
kind: "moved";
|
|
591
|
-
ref: string;
|
|
592
|
-
expected: import("../core/facts/types.js").SnapshotId;
|
|
593
|
-
observed: import("../core/facts/types.js").SnapshotId | null;
|
|
594
|
-
} | {
|
|
595
|
-
kind: "refused";
|
|
596
|
-
refusal: {
|
|
597
|
-
kind: "checkout-not-followable";
|
|
598
|
-
contractId: import("../core/facts/types.js").ContractId;
|
|
599
|
-
target: string;
|
|
600
|
-
path: string;
|
|
601
|
-
reason: "conflict" | "staged" | "untracked";
|
|
602
|
-
paths: string[];
|
|
603
|
-
};
|
|
604
|
-
} | {
|
|
605
|
-
kind: "failed";
|
|
606
|
-
diagnostic: string;
|
|
607
|
-
};
|
|
608
|
-
} | {
|
|
609
|
-
delivery: {
|
|
125
|
+
}> | import("../git/target-placement.js").AuditTargetAnswer;
|
|
126
|
+
delivery?: Readonly<{
|
|
610
127
|
changeId: import("../core/facts/types.js").ChangeId;
|
|
611
128
|
relation: "identical" | "differs";
|
|
612
|
-
}
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
workspace: {
|
|
616
|
-
kind: "worktree";
|
|
617
|
-
path: string;
|
|
618
|
-
};
|
|
619
|
-
identity: {
|
|
620
|
-
tenderSnapshot: import("../core/facts/types.js").SnapshotId;
|
|
621
|
-
integration: {
|
|
622
|
-
predecessor: import("../core/facts/types.js").SnapshotId;
|
|
623
|
-
snapshot: import("../core/facts/types.js").SnapshotId;
|
|
624
|
-
changeId: import("../core/facts/types.js").ChangeId;
|
|
625
|
-
};
|
|
626
|
-
method: "squash";
|
|
627
|
-
policy: {
|
|
628
|
-
requireBranchesToBeUpToDate: boolean;
|
|
629
|
-
};
|
|
630
|
-
};
|
|
631
|
-
scope: {
|
|
632
|
-
filesChanged: number;
|
|
633
|
-
insertions: number;
|
|
634
|
-
deletions: number;
|
|
635
|
-
} | {
|
|
636
|
-
paths: string[];
|
|
637
|
-
filesChanged: number;
|
|
638
|
-
insertions: number;
|
|
639
|
-
deletions: number;
|
|
640
|
-
};
|
|
641
|
-
} | {
|
|
642
|
-
diff: string;
|
|
643
|
-
kind: "ready";
|
|
644
|
-
workspace: {
|
|
645
|
-
kind: "worktree";
|
|
646
|
-
path: string;
|
|
647
|
-
};
|
|
648
|
-
identity: {
|
|
649
|
-
tenderSnapshot: import("../core/facts/types.js").SnapshotId;
|
|
650
|
-
integration: {
|
|
651
|
-
predecessor: import("../core/facts/types.js").SnapshotId;
|
|
652
|
-
snapshot: import("../core/facts/types.js").SnapshotId;
|
|
653
|
-
changeId: import("../core/facts/types.js").ChangeId;
|
|
654
|
-
};
|
|
655
|
-
method: "squash";
|
|
656
|
-
policy: {
|
|
657
|
-
requireBranchesToBeUpToDate: boolean;
|
|
658
|
-
};
|
|
659
|
-
};
|
|
660
|
-
scope: {
|
|
661
|
-
filesChanged: number;
|
|
662
|
-
insertions: number;
|
|
663
|
-
deletions: number;
|
|
664
|
-
} | {
|
|
665
|
-
paths: string[];
|
|
666
|
-
filesChanged: number;
|
|
667
|
-
insertions: number;
|
|
668
|
-
deletions: number;
|
|
669
|
-
};
|
|
670
|
-
} | {
|
|
129
|
+
}>;
|
|
130
|
+
}>, unknown, z.core.$ZodTypeInternals<Readonly<{
|
|
131
|
+
candidate: Readonly<{
|
|
671
132
|
kind: "blocked";
|
|
672
|
-
refusal:
|
|
673
|
-
|
|
674
|
-
contractId: import("../core/facts/types.js").ContractId;
|
|
675
|
-
reason: "conflict" | "not-based-on-target" | "unrelated-histories";
|
|
676
|
-
targetHead: import("../core/facts/types.js").SnapshotId;
|
|
677
|
-
} | {
|
|
678
|
-
conflictPaths: string[];
|
|
679
|
-
kind: "integration-failed";
|
|
680
|
-
contractId: import("../core/facts/types.js").ContractId;
|
|
681
|
-
reason: "conflict" | "not-based-on-target" | "unrelated-histories";
|
|
682
|
-
targetHead: import("../core/facts/types.js").SnapshotId;
|
|
683
|
-
} | {
|
|
684
|
-
kind: "merge-state-present";
|
|
685
|
-
contractId: import("../core/facts/types.js").ContractId;
|
|
686
|
-
workspace: {
|
|
687
|
-
kind: "worktree";
|
|
688
|
-
path: string;
|
|
689
|
-
};
|
|
690
|
-
} | {
|
|
691
|
-
kind: "unmerged-paths";
|
|
692
|
-
contractId: import("../core/facts/types.js").ContractId;
|
|
693
|
-
paths: string[];
|
|
694
|
-
} | {
|
|
695
|
-
kind: "dirty-workspace";
|
|
696
|
-
contractId: import("../core/facts/types.js").ContractId;
|
|
697
|
-
staged: string[];
|
|
698
|
-
unstaged: string[];
|
|
699
|
-
untracked: string[];
|
|
700
|
-
submodules: string[];
|
|
701
|
-
shortStat: {
|
|
702
|
-
filesChanged: number;
|
|
703
|
-
insertions: number;
|
|
704
|
-
deletions: number;
|
|
705
|
-
};
|
|
706
|
-
} | {
|
|
707
|
-
kind: "integration-unsupported";
|
|
708
|
-
contractId: import("../core/facts/types.js").ContractId;
|
|
709
|
-
requiredGit: "2.38";
|
|
710
|
-
} | {
|
|
711
|
-
kind: "checkout-not-followable";
|
|
712
|
-
contractId: import("../core/facts/types.js").ContractId;
|
|
713
|
-
target: string;
|
|
714
|
-
path: string;
|
|
715
|
-
reason: "conflict" | "staged" | "untracked";
|
|
716
|
-
paths: string[];
|
|
717
|
-
} | {
|
|
718
|
-
kind: "worktree-missing" | "target-missing";
|
|
719
|
-
contractId: import("../core/facts/types.js").ContractId;
|
|
720
|
-
};
|
|
721
|
-
};
|
|
722
|
-
verification: {
|
|
723
|
-
kind: "satisfied" | "unsatisfied";
|
|
724
|
-
passed: number;
|
|
725
|
-
total: number;
|
|
726
|
-
} | {
|
|
727
|
-
summary: string;
|
|
728
|
-
kind: "satisfied" | "unsatisfied";
|
|
729
|
-
passed: number;
|
|
730
|
-
total: number;
|
|
731
|
-
} | {
|
|
732
|
-
kind: "not-run";
|
|
733
|
-
} | {
|
|
734
|
-
kind: "stopped";
|
|
735
|
-
stop: {
|
|
736
|
-
refusal: {
|
|
737
|
-
kind: "verification-declaration-invalid";
|
|
738
|
-
} | {
|
|
739
|
-
contractId: import("../core/facts/types.js").ContractId;
|
|
740
|
-
kind: "verification-declaration-invalid";
|
|
741
|
-
} | {
|
|
742
|
-
kind: "terminal" | "contract-missing";
|
|
743
|
-
contractId: import("../core/facts/types.js").ContractId;
|
|
744
|
-
};
|
|
745
|
-
} | {
|
|
746
|
-
retry: {
|
|
747
|
-
kind: "exhausted";
|
|
748
|
-
} | {
|
|
749
|
-
kind: "collision";
|
|
750
|
-
} | {
|
|
751
|
-
kind: "publication-failed";
|
|
752
|
-
diagnostic: string;
|
|
753
|
-
};
|
|
754
|
-
} | {
|
|
755
|
-
failure: "cancelled" | "unknown-exit";
|
|
756
|
-
} | {
|
|
757
|
-
failure: "spawn-error" | "candidate-unavailable";
|
|
758
|
-
diagnostic: string;
|
|
759
|
-
} | {
|
|
760
|
-
failure: "environment-failure";
|
|
761
|
-
diagnostic: string;
|
|
762
|
-
} | {
|
|
763
|
-
failure: "environment-failure";
|
|
764
|
-
command: number;
|
|
765
|
-
detail: {
|
|
766
|
-
kind: "exit";
|
|
767
|
-
code: number;
|
|
768
|
-
stdout: string;
|
|
769
|
-
stderr: string;
|
|
770
|
-
truncated: boolean;
|
|
771
|
-
} | {
|
|
772
|
-
kind: "timeout";
|
|
773
|
-
} | {
|
|
774
|
-
kind: "spawn-error";
|
|
775
|
-
diagnostic: string;
|
|
776
|
-
} | {
|
|
777
|
-
kind: "unknown-exit";
|
|
778
|
-
};
|
|
779
|
-
};
|
|
780
|
-
};
|
|
781
|
-
target: {
|
|
782
|
-
kind: "not-observed";
|
|
783
|
-
} | {
|
|
784
|
-
kind: "placeable";
|
|
785
|
-
ref: string;
|
|
786
|
-
head: import("../core/facts/types.js").SnapshotId;
|
|
787
|
-
} | {
|
|
788
|
-
kind: "moved";
|
|
789
|
-
ref: string;
|
|
790
|
-
expected: import("../core/facts/types.js").SnapshotId;
|
|
791
|
-
observed: import("../core/facts/types.js").SnapshotId | null;
|
|
792
|
-
} | {
|
|
793
|
-
kind: "refused";
|
|
794
|
-
refusal: {
|
|
795
|
-
kind: "checkout-not-followable";
|
|
796
|
-
contractId: import("../core/facts/types.js").ContractId;
|
|
797
|
-
target: string;
|
|
798
|
-
path: string;
|
|
799
|
-
reason: "conflict" | "staged" | "untracked";
|
|
800
|
-
paths: string[];
|
|
801
|
-
};
|
|
802
|
-
} | {
|
|
803
|
-
kind: "failed";
|
|
804
|
-
diagnostic: string;
|
|
805
|
-
};
|
|
806
|
-
}, {
|
|
807
|
-
candidate: {
|
|
133
|
+
refusal: import("./contract.js").DeliveryPreparationRefusal;
|
|
134
|
+
}> | Readonly<{
|
|
808
135
|
kind: "ready";
|
|
809
|
-
workspace: {
|
|
136
|
+
workspace: Readonly<{
|
|
810
137
|
kind: "worktree";
|
|
811
138
|
path: string;
|
|
812
|
-
}
|
|
813
|
-
identity:
|
|
814
|
-
|
|
815
|
-
integration: {
|
|
816
|
-
predecessor: import("../core/facts/types.js").SnapshotId;
|
|
817
|
-
snapshot: import("../core/facts/types.js").SnapshotId;
|
|
818
|
-
changeId: import("../core/facts/types.js").ChangeId;
|
|
819
|
-
};
|
|
820
|
-
method: "squash";
|
|
821
|
-
policy: {
|
|
822
|
-
requireBranchesToBeUpToDate: boolean;
|
|
823
|
-
};
|
|
824
|
-
};
|
|
825
|
-
scope: {
|
|
826
|
-
filesChanged: number;
|
|
827
|
-
insertions: number;
|
|
828
|
-
deletions: number;
|
|
829
|
-
} | {
|
|
830
|
-
paths: string[];
|
|
831
|
-
filesChanged: number;
|
|
832
|
-
insertions: number;
|
|
833
|
-
deletions: number;
|
|
834
|
-
};
|
|
835
|
-
} | {
|
|
836
|
-
diff: string;
|
|
837
|
-
kind: "ready";
|
|
838
|
-
workspace: {
|
|
839
|
-
kind: "worktree";
|
|
840
|
-
path: string;
|
|
841
|
-
};
|
|
842
|
-
identity: {
|
|
843
|
-
tenderSnapshot: import("../core/facts/types.js").SnapshotId;
|
|
844
|
-
integration: {
|
|
845
|
-
predecessor: import("../core/facts/types.js").SnapshotId;
|
|
846
|
-
snapshot: import("../core/facts/types.js").SnapshotId;
|
|
847
|
-
changeId: import("../core/facts/types.js").ChangeId;
|
|
848
|
-
};
|
|
849
|
-
method: "squash";
|
|
850
|
-
policy: {
|
|
851
|
-
requireBranchesToBeUpToDate: boolean;
|
|
852
|
-
};
|
|
853
|
-
};
|
|
854
|
-
scope: {
|
|
855
|
-
filesChanged: number;
|
|
856
|
-
insertions: number;
|
|
857
|
-
deletions: number;
|
|
858
|
-
} | {
|
|
859
|
-
paths: string[];
|
|
139
|
+
}>;
|
|
140
|
+
identity: import("../core/facts/types.js").DeliverData;
|
|
141
|
+
scope: Readonly<{
|
|
860
142
|
filesChanged: number;
|
|
861
143
|
insertions: number;
|
|
862
144
|
deletions: number;
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
} | {
|
|
872
|
-
conflictPaths: string[];
|
|
873
|
-
kind: "integration-failed";
|
|
874
|
-
contractId: import("../core/facts/types.js").ContractId;
|
|
875
|
-
reason: "conflict" | "not-based-on-target" | "unrelated-histories";
|
|
876
|
-
targetHead: import("../core/facts/types.js").SnapshotId;
|
|
877
|
-
} | {
|
|
878
|
-
kind: "merge-state-present";
|
|
879
|
-
contractId: import("../core/facts/types.js").ContractId;
|
|
880
|
-
workspace: {
|
|
881
|
-
kind: "worktree";
|
|
882
|
-
path: string;
|
|
883
|
-
};
|
|
884
|
-
} | {
|
|
885
|
-
kind: "unmerged-paths";
|
|
886
|
-
contractId: import("../core/facts/types.js").ContractId;
|
|
887
|
-
paths: string[];
|
|
888
|
-
} | {
|
|
889
|
-
kind: "dirty-workspace";
|
|
890
|
-
contractId: import("../core/facts/types.js").ContractId;
|
|
891
|
-
staged: string[];
|
|
892
|
-
unstaged: string[];
|
|
893
|
-
untracked: string[];
|
|
894
|
-
submodules: string[];
|
|
895
|
-
shortStat: {
|
|
896
|
-
filesChanged: number;
|
|
897
|
-
insertions: number;
|
|
898
|
-
deletions: number;
|
|
899
|
-
};
|
|
900
|
-
} | {
|
|
901
|
-
kind: "integration-unsupported";
|
|
902
|
-
contractId: import("../core/facts/types.js").ContractId;
|
|
903
|
-
requiredGit: "2.38";
|
|
904
|
-
} | {
|
|
905
|
-
kind: "checkout-not-followable";
|
|
906
|
-
contractId: import("../core/facts/types.js").ContractId;
|
|
907
|
-
target: string;
|
|
908
|
-
path: string;
|
|
909
|
-
reason: "conflict" | "staged" | "untracked";
|
|
910
|
-
paths: string[];
|
|
911
|
-
} | {
|
|
912
|
-
kind: "worktree-missing" | "target-missing";
|
|
913
|
-
contractId: import("../core/facts/types.js").ContractId;
|
|
914
|
-
};
|
|
915
|
-
};
|
|
916
|
-
verification: {
|
|
917
|
-
kind: "satisfied" | "unsatisfied";
|
|
145
|
+
paths?: readonly string[];
|
|
146
|
+
}>;
|
|
147
|
+
diff?: string;
|
|
148
|
+
}>;
|
|
149
|
+
verification: Readonly<{
|
|
150
|
+
kind: "not-run";
|
|
151
|
+
}> | Readonly<{
|
|
152
|
+
kind: "satisfied";
|
|
918
153
|
passed: number;
|
|
919
154
|
total: number;
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
kind: "
|
|
155
|
+
summary?: string;
|
|
156
|
+
}> | Readonly<{
|
|
157
|
+
kind: "unsatisfied";
|
|
923
158
|
passed: number;
|
|
924
159
|
total: number;
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
} | {
|
|
160
|
+
summary?: string;
|
|
161
|
+
}> | Readonly<{
|
|
928
162
|
kind: "stopped";
|
|
929
|
-
stop:
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
} | {
|
|
933
|
-
contractId: import("../core/facts/types.js").ContractId;
|
|
934
|
-
kind: "verification-declaration-invalid";
|
|
935
|
-
} | {
|
|
936
|
-
kind: "terminal" | "contract-missing";
|
|
937
|
-
contractId: import("../core/facts/types.js").ContractId;
|
|
938
|
-
};
|
|
939
|
-
} | {
|
|
940
|
-
retry: {
|
|
941
|
-
kind: "exhausted";
|
|
942
|
-
} | {
|
|
943
|
-
kind: "collision";
|
|
944
|
-
} | {
|
|
945
|
-
kind: "publication-failed";
|
|
946
|
-
diagnostic: string;
|
|
947
|
-
};
|
|
948
|
-
} | {
|
|
949
|
-
failure: "cancelled" | "unknown-exit";
|
|
950
|
-
} | {
|
|
951
|
-
failure: "spawn-error" | "candidate-unavailable";
|
|
952
|
-
diagnostic: string;
|
|
953
|
-
} | {
|
|
954
|
-
failure: "environment-failure";
|
|
955
|
-
diagnostic: string;
|
|
956
|
-
} | {
|
|
957
|
-
failure: "environment-failure";
|
|
958
|
-
command: number;
|
|
959
|
-
detail: {
|
|
960
|
-
kind: "exit";
|
|
961
|
-
code: number;
|
|
962
|
-
stdout: string;
|
|
963
|
-
stderr: string;
|
|
964
|
-
truncated: boolean;
|
|
965
|
-
} | {
|
|
966
|
-
kind: "timeout";
|
|
967
|
-
} | {
|
|
968
|
-
kind: "spawn-error";
|
|
969
|
-
diagnostic: string;
|
|
970
|
-
} | {
|
|
971
|
-
kind: "unknown-exit";
|
|
972
|
-
};
|
|
973
|
-
};
|
|
974
|
-
};
|
|
975
|
-
target: {
|
|
163
|
+
stop: import("./contract.js").VerificationStop;
|
|
164
|
+
}>;
|
|
165
|
+
target: Readonly<{
|
|
976
166
|
kind: "not-observed";
|
|
977
|
-
} |
|
|
978
|
-
|
|
979
|
-
ref: string;
|
|
980
|
-
head: import("../core/facts/types.js").SnapshotId;
|
|
981
|
-
} | {
|
|
982
|
-
kind: "moved";
|
|
983
|
-
ref: string;
|
|
984
|
-
expected: import("../core/facts/types.js").SnapshotId;
|
|
985
|
-
observed: import("../core/facts/types.js").SnapshotId | null;
|
|
986
|
-
} | {
|
|
987
|
-
kind: "refused";
|
|
988
|
-
refusal: {
|
|
989
|
-
kind: "checkout-not-followable";
|
|
990
|
-
contractId: import("../core/facts/types.js").ContractId;
|
|
991
|
-
target: string;
|
|
992
|
-
path: string;
|
|
993
|
-
reason: "conflict" | "staged" | "untracked";
|
|
994
|
-
paths: string[];
|
|
995
|
-
};
|
|
996
|
-
} | {
|
|
997
|
-
kind: "failed";
|
|
998
|
-
diagnostic: string;
|
|
999
|
-
};
|
|
1000
|
-
delivery?: {
|
|
167
|
+
}> | import("../git/target-placement.js").AuditTargetAnswer;
|
|
168
|
+
delivery?: Readonly<{
|
|
1001
169
|
changeId: import("../core/facts/types.js").ChangeId;
|
|
1002
170
|
relation: "identical" | "differs";
|
|
1003
|
-
}
|
|
1004
|
-
}>>;
|
|
171
|
+
}>;
|
|
172
|
+
}>, unknown>>;
|
|
1005
173
|
}, z.core.$strict>, z.ZodObject<{
|
|
1006
174
|
kind: z.ZodLiteral<"accepted-reference">;
|
|
1007
175
|
repoRoot: z.ZodString;
|
|
@@ -1016,21 +184,21 @@ declare const contractServiceSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1016
184
|
export type ContractService = z.infer<typeof contractServiceSchema>;
|
|
1017
185
|
export type ContractRequestPort = Readonly<{
|
|
1018
186
|
audit(input: AuditRequest & Readonly<{
|
|
1019
|
-
requester:
|
|
187
|
+
requester: ContractRequester;
|
|
1020
188
|
signal: AbortSignal;
|
|
1021
189
|
}>): Promise<Readonly<{
|
|
1022
190
|
result: AuditResult;
|
|
1023
191
|
auditReport?: AuditReport;
|
|
1024
192
|
}>>;
|
|
1025
193
|
deliver(input: DeliverRequest & Readonly<{
|
|
1026
|
-
requester:
|
|
194
|
+
requester: ContractRequester;
|
|
1027
195
|
signal: AbortSignal;
|
|
1028
196
|
}>): Promise<Readonly<{
|
|
1029
197
|
result: DeliveryResult;
|
|
1030
198
|
deliveryFactId?: string;
|
|
1031
199
|
}>>;
|
|
1032
200
|
review(input: ReviewRequest & Readonly<{
|
|
1033
|
-
requester:
|
|
201
|
+
requester: ContractRequester;
|
|
1034
202
|
signal: AbortSignal;
|
|
1035
203
|
}>): Promise<Readonly<{
|
|
1036
204
|
result: ReviewResult;
|
|
@@ -1038,7 +206,7 @@ export type ContractRequestPort = Readonly<{
|
|
|
1038
206
|
}>>;
|
|
1039
207
|
}>;
|
|
1040
208
|
type ContractExecutionContext = Readonly<{
|
|
1041
|
-
requester:
|
|
209
|
+
requester: ContractRequester;
|
|
1042
210
|
signal: AbortSignal;
|
|
1043
211
|
upstream: ContractRequestPort;
|
|
1044
212
|
}>;
|