@astrosheep/keiyaku 4.5.11 → 4.5.13
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/build/integrations/marketplace/plugins/keiyaku/skills/keiyaku-workflow/SKILL.md +135 -377
- package/build/integrations/pi/keiyaku.ts +11 -116
- package/build/src/akuma/akuma-errors.d.ts +1 -0
- package/build/src/akuma/akuma-errors.js +1 -0
- package/build/src/akuma/akuma-handle.d.ts +1 -0
- package/build/src/akuma/akuma-handle.js +6 -7
- package/build/src/akuma/akuma-product.d.ts +6 -8
- package/build/src/akuma/akuma-product.js +141 -57
- package/build/src/akuma/akuma.d.ts +5 -7
- package/build/src/akuma/akuma.js +1 -22
- package/build/src/akuma/archetype.d.ts +6 -5
- package/build/src/akuma/archetype.js +137 -38
- package/build/src/akuma/body.d.ts +5 -5
- package/build/src/akuma/body.js +223 -63
- package/build/src/akuma/call-input.d.ts +4 -0
- package/build/src/akuma/call-input.js +21 -0
- package/build/src/akuma/call-request.d.ts +5 -8
- package/build/src/akuma/call-request.js +28 -73
- package/build/src/akuma/fleet-execution.d.ts +26 -0
- package/build/src/akuma/fleet-execution.js +109 -0
- package/build/src/{library/fleet-result.d.ts → akuma/fleet-observation.d.ts} +13 -57
- package/build/src/{library/fleet-result.js → akuma/fleet-observation.js} +4 -25
- package/build/src/akuma/fleet-request.d.ts +122 -0
- package/build/src/akuma/fleet-request.js +168 -0
- package/build/src/akuma/heart/facts.d.ts +23 -0
- package/build/src/akuma/heart/facts.js +7 -0
- package/build/src/akuma/heart/index.d.ts +43 -4
- package/build/src/akuma/heart/index.js +107 -7
- package/build/src/akuma/heart/request-authority.d.ts +2 -0
- package/build/src/akuma/heart/request-authority.js +28 -3
- package/build/src/akuma/heart/request-rows.d.ts +2 -0
- package/build/src/akuma/heart/request-rows.js +24 -5
- package/build/src/akuma/heart/rows.d.ts +4 -1
- package/build/src/akuma/heart/rows.js +46 -19
- package/build/src/akuma/heart/schema.d.ts +1 -1
- package/build/src/akuma/heart/schema.js +28 -6
- package/build/src/akuma/heart/storage.d.ts +1 -1
- package/build/src/akuma/heart/tells.d.ts +29 -0
- package/build/src/akuma/heart/tells.js +136 -5
- package/build/src/akuma/heart/timeline.js +9 -3
- package/build/src/akuma/projection-read.js +36 -3
- package/build/src/akuma/projection.js +3 -4
- package/build/src/akuma/provider.d.ts +4 -0
- package/build/src/akuma/provider.js +56 -3
- package/build/src/akuma/providers/claude/index.js +3 -0
- package/build/src/akuma/providers/codex-app-server/index.js +14 -12
- package/build/src/akuma/providers/pi/index.js +7 -1
- package/build/src/akuma/publication.js +65 -49
- package/build/src/akuma/request-lifecycle.d.ts +5 -4
- package/build/src/akuma/request-lifecycle.js +29 -16
- package/build/src/akuma/request-rendezvous.d.ts +15 -12
- package/build/src/akuma/request-rendezvous.js +80 -51
- package/build/src/akuma/request-serve.d.ts +1 -2
- package/build/src/akuma/request-serve.js +94 -39
- package/build/src/akuma/request-wire.d.ts +57 -26
- package/build/src/akuma/request-wire.js +64 -25
- package/build/src/akuma/turn-drive.d.ts +5 -4
- package/build/src/akuma/turn-drive.js +27 -11
- package/build/src/akuma-body.d.ts +4 -6
- package/build/src/akuma-body.js +19 -17
- package/build/src/bounded-list.d.ts +8 -0
- package/build/src/bounded-list.js +14 -0
- package/build/src/cli/accepted.d.ts +1 -1
- package/build/src/cli/accepted.js +1 -0
- package/build/src/cli/commands/akuma-invoke.js +1 -25
- package/build/src/cli/commands/contract-help.d.ts +5 -2
- package/build/src/cli/commands/contract-help.js +62 -12
- package/build/src/cli/commands/contract-invoke.d.ts +5 -0
- package/build/src/cli/commands/contract-invoke.js +26 -1
- package/build/src/cli/commands/contract.js +50 -18
- package/build/src/cli/commands/task-invoke.js +10 -2
- package/build/src/cli/commands/task-query.js +3 -4
- package/build/src/cli/coordinates.d.ts +13 -0
- package/build/src/cli/coordinates.js +38 -24
- package/build/src/cli/draft.d.ts +1 -1
- package/build/src/cli/invoke.js +14 -1
- package/build/src/cli/render/akuma-activity.d.ts +0 -1
- package/build/src/cli/render/akuma-activity.js +5 -38
- package/build/src/cli/render/akuma.js +4 -1
- package/build/src/cli/render/audit.js +4 -1
- package/build/src/cli/render/catalog.js +13 -39
- package/build/src/cli/render/contract.js +4 -14
- package/build/src/cli/render/kanshi-akuma.js +3 -8
- package/build/src/cli/render/kanshi.js +8 -34
- package/build/src/cli/render/nuke.js +7 -3
- package/build/src/cli/render/receipt.d.ts +1 -0
- package/build/src/cli/render/receipt.js +8 -0
- package/build/src/cli/render/refusal.js +4 -3
- package/build/src/cli/render/task.js +4 -37
- package/build/src/cli/render/terminal.d.ts +2 -6
- package/build/src/cli/render/terminal.js +4 -9
- package/build/src/cli/result.d.ts +2 -1
- package/build/src/contract-guidance.js +13 -3
- package/build/src/contract-worktree.d.ts +1 -0
- package/build/src/contract-worktree.js +26 -2
- package/build/src/core/facts/codec.d.ts +2 -1
- package/build/src/core/facts/codec.js +3 -0
- package/build/src/core/facts/gate.d.ts +2 -1
- package/build/src/core/facts/gate.js +63 -0
- package/build/src/core/verbs/abandon.d.ts +2 -1
- package/build/src/core/verbs/abandon.js +16 -0
- package/build/src/core/verbs/amend.d.ts +2 -1
- package/build/src/core/verbs/amend.js +20 -0
- package/build/src/core/verbs/arc.d.ts +2 -1
- package/build/src/core/verbs/arc.js +16 -0
- package/build/src/core/verbs/attestation.d.ts +2 -1
- package/build/src/core/verbs/attestation.js +16 -0
- package/build/src/core/verbs/bind.d.ts +2 -1
- package/build/src/core/verbs/bind.js +16 -0
- package/build/src/core/verbs/deliver.d.ts +2 -1
- package/build/src/core/verbs/deliver.js +16 -0
- package/build/src/core/verbs/placement.d.ts +2 -1
- package/build/src/core/verbs/placement.js +58 -1
- package/build/src/dispatch/association.d.ts +13 -0
- package/build/src/dispatch/association.js +20 -0
- package/build/src/dispatch/index.d.ts +6 -0
- package/build/src/dispatch/index.js +27 -3
- package/build/src/git/hooks.d.ts +9 -1
- package/build/src/git/hooks.js +79 -1
- package/build/src/git/nuke.d.ts +2 -1
- package/build/src/git/nuke.js +6 -11
- package/build/src/git/private-state-seat.d.ts +26 -1
- package/build/src/git/private-state-seat.js +78 -13
- package/build/src/git/process.d.ts +2 -0
- package/build/src/git/reconcile.d.ts +1 -2
- package/build/src/git/reconcile.js +0 -6
- package/build/src/git/repository.d.ts +0 -2
- package/build/src/git/repository.js +27 -25
- package/build/src/git/result-codec.d.ts +29 -0
- package/build/src/git/result-codec.js +306 -0
- package/build/src/git/target-placement.js +2 -8
- package/build/src/git/workspace.d.ts +2 -0
- package/build/src/git/workspace.js +4 -0
- package/build/src/index.d.ts +1 -0
- package/build/src/kanshi/fleet.js +1 -1
- package/build/src/kanshi/read.js +55 -28
- package/build/src/kanshi/report.d.ts +4 -3
- package/build/src/kanshi/select.js +14 -1
- package/build/src/library/address.d.ts +1 -0
- package/build/src/library/address.js +4 -7
- package/build/src/library/akuma-creation.d.ts +5 -3
- package/build/src/library/akuma-creation.js +90 -33
- package/build/src/library/audit.js +2 -1
- package/build/src/library/catalog.d.ts +10 -2
- package/build/src/library/catalog.js +65 -25
- package/build/src/library/composition.d.ts +1 -0
- package/build/src/library/composition.js +1 -0
- package/build/src/library/configuration.d.ts +4 -21
- package/build/src/library/configuration.js +2 -158
- package/build/src/library/continuation.d.ts +20 -1
- package/build/src/library/continuation.js +36 -0
- package/build/src/library/contract-bind.d.ts +1 -0
- package/build/src/library/contract-bind.js +16 -5
- package/build/src/library/contract-forwarding.d.ts +2 -2
- package/build/src/library/contract-forwarding.js +18 -4
- package/build/src/library/contract-handle.js +4 -3
- package/build/src/library/contract-operations.d.ts +5 -9
- package/build/src/library/contract-operations.js +34 -47
- package/build/src/library/contract.d.ts +11 -2
- package/build/src/library/contract.js +21 -1
- package/build/src/library/delivery.d.ts +4 -1
- package/build/src/library/delivery.js +47 -0
- package/build/src/library/fleet.d.ts +4 -136
- package/build/src/library/fleet.js +31 -315
- package/build/src/library/keiyaku.d.ts +7 -3
- package/build/src/library/keiyaku.js +1 -0
- package/build/src/library/mutation.d.ts +431 -3
- package/build/src/library/mutation.js +192 -19
- package/build/src/library/nuke.d.ts +7 -1
- package/build/src/library/nuke.js +18 -4
- package/build/src/library/reconcile.d.ts +14 -0
- package/build/src/library/reconcile.js +22 -8
- package/build/src/library/refusal.d.ts +9 -1
- package/build/src/library/refusal.js +76 -0
- package/build/src/library/region.d.ts +0 -8
- package/build/src/library/region.js +1 -29
- package/build/src/library/result-codec.d.ts +2 -0
- package/build/src/library/result-codec.js +12 -0
- package/build/src/markdown/lex.js +9 -2
- package/build/src/markdown/types.d.ts +2 -1
- package/build/src/markdown/types.js +3 -1
- package/build/src/plugin/akuma-signals.d.ts +12 -0
- package/build/src/plugin/akuma-signals.js +14 -0
- package/build/src/plugin/public.d.ts +51 -0
- package/build/src/plugin/public.js +1 -0
- package/build/src/plugin/runtime.d.ts +14 -0
- package/build/src/plugin/runtime.js +357 -0
- package/build/src/protocol/amend.js +3 -3
- package/build/src/protocol/attempt.d.ts +2 -1
- package/build/src/protocol/attempt.js +1 -1
- package/build/src/protocol/audit.d.ts +1 -1
- package/build/src/protocol/audit.js +1 -1
- package/build/src/protocol/bind.d.ts +3 -1
- package/build/src/protocol/bind.js +26 -0
- package/build/src/protocol/completion.js +0 -1
- package/build/src/protocol/deliver.d.ts +1 -1
- package/build/src/protocol/deliver.js +136 -57
- package/build/src/protocol/intent.d.ts +0 -1
- package/build/src/protocol/intent.js +0 -1
- package/build/src/protocol/operations.d.ts +9 -2
- package/build/src/protocol/operations.js +16 -1
- package/build/src/protocol/outcome.d.ts +3 -0
- package/build/src/protocol/outcome.js +17 -1
- package/build/src/protocol/placement.js +10 -3
- package/build/src/protocol/read/status.d.ts +8 -0
- package/build/src/protocol/read/status.js +49 -0
- package/build/src/protocol/reintegrate.js +10 -3
- package/build/src/protocol/result-codec.d.ts +22 -0
- package/build/src/protocol/result-codec.js +442 -0
- package/build/src/protocol/review.d.ts +1 -1
- package/build/src/protocol/review.js +81 -46
- package/build/src/protocol/run.d.ts +22 -2
- package/build/src/protocol/run.js +119 -29
- package/build/src/runtime/proc/lifecycle.js +1 -1
- package/build/src/runtime/proc/line-rpc.d.ts +7 -1
- package/build/src/runtime/proc/line-rpc.js +49 -9
- package/build/src/runtime/proc/run.d.ts +0 -1
- package/build/src/runtime/proc/run.js +1 -11
- package/build/src/runtime/proc/termination.d.ts +1 -0
- package/build/src/runtime/proc/termination.js +63 -18
- package/build/src/runtime/proc/windows-launch.exe +0 -0
- package/build/src/settings.d.ts +10 -0
- package/build/src/settings.js +88 -2
- package/build/src/settlement/result-codec.d.ts +2 -0
- package/build/src/settlement/result-codec.js +56 -0
- package/build/src/settlement/settle.d.ts +5 -12
- package/build/src/settlement/settle.js +60 -55
- package/build/src/task/board.d.ts +3 -0
- package/build/src/task/board.js +22 -4
- package/build/src/task/catalog.d.ts +13 -2
- package/build/src/task/catalog.js +59 -5
- package/build/src/task/compose.d.ts +4 -2
- package/build/src/task/compose.js +56 -30
- package/build/src/task/created-observation.d.ts +39 -0
- package/build/src/task/created-observation.js +26 -0
- package/build/src/task/identity.d.ts +6 -0
- package/build/src/task/identity.js +48 -7
- package/build/src/task/index.d.ts +4 -3
- package/build/src/task/index.js +19 -16
- package/build/src/task/input.d.ts +3 -1
- package/build/src/task/input.js +7 -4
- package/build/src/task/lifecycle-operations.d.ts +6 -0
- package/build/src/task/lifecycle-operations.js +116 -0
- package/build/src/task/mutation-result.d.ts +762 -20
- package/build/src/task/mutation-result.js +34 -9
- package/build/src/task/mutation.d.ts +4 -9
- package/build/src/task/mutation.js +17 -52
- package/build/src/task/operation-types.d.ts +114 -0
- package/build/src/task/operation-types.js +1 -0
- package/build/src/task/operations.d.ts +6 -113
- package/build/src/task/operations.js +75 -117
- package/build/src/task/query.d.ts +8 -11
- package/build/src/task/query.js +7 -14
- package/build/src/task/store.d.ts +11 -1
- package/build/src/task/store.js +169 -55
- package/build/src/task/view.d.ts +4 -0
- package/build/src/task/view.js +7 -0
- package/build/src/verification/declaration.d.ts +1 -0
- package/build/src/verification/declaration.js +18 -1
- package/build/src/verification/execution.d.ts +0 -1
- package/build/src/verification/execution.js +5 -5
- package/build/src/world.d.ts +0 -2
- package/build/src/world.js +3 -7
- package/package.json +17 -5
- package/build/src/cli/square-edge.d.ts +0 -7
- package/build/src/cli/square-edge.js +0 -159
- package/build/src/git/ref-migration.d.ts +0 -22
- package/build/src/git/ref-migration.js +0 -55
- package/build/src/library/contract-forwarding-reconciliation-result.d.ts +0 -102
- package/build/src/library/contract-forwarding-reconciliation-result.js +0 -92
- package/build/src/library/contract-forwarding-result.d.ts +0 -4270
- package/build/src/library/contract-forwarding-result.js +0 -521
|
@@ -1,13 +1,431 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type ContractHead, type ContractId, type JournalEntry, type SnapshotId } from "../core/facts/types.js";
|
|
2
|
+
import { type PrivateStateSeatCloseLag } from "../git/private-state-seat.js";
|
|
2
3
|
import type { GitDecodeChannel } from "../git/read-observation.js";
|
|
3
4
|
import type { ReconcileReport } from "../protocol/reconcile.js";
|
|
4
5
|
import type { RepositoryScope } from "../protocol/operations.js";
|
|
5
6
|
import type { IntentOutcome } from "../protocol/operations.js";
|
|
6
7
|
import type { AcceptedObligations } from "../protocol/outcome.js";
|
|
7
|
-
import {
|
|
8
|
+
import type { SettlementReport } from "../settlement/settle.js";
|
|
8
9
|
import type { TaskHolderAdmission } from "../settlement/holder.js";
|
|
9
10
|
import type { WorktreeHooks } from "./configuration.js";
|
|
10
11
|
import { type ReconcileCompletion } from "./reconcile.js";
|
|
12
|
+
import { type AuditReport } from "../protocol/audit.js";
|
|
13
|
+
import { type IntegrationConflictMaterialized } from "../protocol/deliver.js";
|
|
14
|
+
import { type ReviewValue } from "../protocol/review.js";
|
|
15
|
+
import { type ContinuationReport } from "./continuation.js";
|
|
16
|
+
import { type DeliveryValue } from "./delivery.js";
|
|
17
|
+
import type { KeiyakuRefused, KeiyakuRetry } from "./refusal.js";
|
|
18
|
+
import { z } from "zod";
|
|
19
|
+
export type MutationFinalitySurface = "verification" | "placement" | "continuation" | "reconciliation" | "settlement" | "cleanup";
|
|
20
|
+
export type MutationFinality = Readonly<{
|
|
21
|
+
kind: "complete";
|
|
22
|
+
}> | Readonly<{
|
|
23
|
+
kind: "accepted-pending";
|
|
24
|
+
pending: readonly Readonly<{
|
|
25
|
+
surface: MutationFinalitySurface;
|
|
26
|
+
required: boolean;
|
|
27
|
+
}>[];
|
|
28
|
+
}> | Readonly<{
|
|
29
|
+
kind: "not-admitted";
|
|
30
|
+
}>;
|
|
31
|
+
type AcceptedFinalityInput = Readonly<{
|
|
32
|
+
kind: "accepted";
|
|
33
|
+
lags: MutationResult<unknown>["lags"];
|
|
34
|
+
settlementLags: MutationResult<unknown>["settlementLags"];
|
|
35
|
+
value?: unknown;
|
|
36
|
+
cleanup?: AcceptedObligations["cleanup"];
|
|
37
|
+
leak?: AcceptedObligations["leak"];
|
|
38
|
+
seatClose?: AcceptedObligations["seatClose"];
|
|
39
|
+
/** Transport/display convenience only; never finality authority. */
|
|
40
|
+
pending?: readonly MutationPendingSurface[];
|
|
41
|
+
}>;
|
|
42
|
+
export type MutationFinalityInput = AcceptedFinalityInput | IntegrationConflictMaterialized | KeiyakuRefused | KeiyakuRetry;
|
|
43
|
+
export type MutationPendingSurface = Readonly<{
|
|
44
|
+
surface: MutationFinalitySurface;
|
|
45
|
+
required: boolean;
|
|
46
|
+
}>;
|
|
47
|
+
export declare function decodeMutationPendingSurface(value: unknown): MutationPendingSurface;
|
|
48
|
+
export declare const mutationPendingSurfaceSchema: z.ZodType<Readonly<{
|
|
49
|
+
surface: MutationFinalitySurface;
|
|
50
|
+
required: boolean;
|
|
51
|
+
}>, unknown, z.core.$ZodTypeInternals<Readonly<{
|
|
52
|
+
surface: MutationFinalitySurface;
|
|
53
|
+
required: boolean;
|
|
54
|
+
}>, unknown>>;
|
|
55
|
+
export type Review = ReviewValue & Readonly<{
|
|
56
|
+
continuation?: ContinuationReport;
|
|
57
|
+
}>;
|
|
58
|
+
export declare function decodeReview(value: unknown): Review;
|
|
59
|
+
export declare const auditReportSchema: z.ZodType<Readonly<{
|
|
60
|
+
candidate: Readonly<{
|
|
61
|
+
kind: "blocked";
|
|
62
|
+
refusal: import("../protocol/operations.js").DeliveryPreparationRefusal;
|
|
63
|
+
}> | Readonly<{
|
|
64
|
+
kind: "ready";
|
|
65
|
+
workspace: Readonly<{
|
|
66
|
+
kind: "worktree";
|
|
67
|
+
path: string;
|
|
68
|
+
}>;
|
|
69
|
+
identity: import("../core/facts/types.js").DeliverData;
|
|
70
|
+
scope: Readonly<{
|
|
71
|
+
filesChanged: number;
|
|
72
|
+
insertions: number;
|
|
73
|
+
deletions: number;
|
|
74
|
+
paths?: readonly string[];
|
|
75
|
+
}>;
|
|
76
|
+
diff?: string;
|
|
77
|
+
}>;
|
|
78
|
+
verification: Readonly<{
|
|
79
|
+
kind: "not-run";
|
|
80
|
+
}> | Readonly<{
|
|
81
|
+
kind: "satisfied";
|
|
82
|
+
passed: number;
|
|
83
|
+
total: number;
|
|
84
|
+
summary?: string;
|
|
85
|
+
}> | Readonly<{
|
|
86
|
+
kind: "unsatisfied";
|
|
87
|
+
passed: number;
|
|
88
|
+
total: number;
|
|
89
|
+
summary?: string;
|
|
90
|
+
}> | Readonly<{
|
|
91
|
+
kind: "stopped";
|
|
92
|
+
stop: import("../protocol/operations.js").VerificationStop;
|
|
93
|
+
}>;
|
|
94
|
+
target: Readonly<{
|
|
95
|
+
kind: "not-observed";
|
|
96
|
+
}> | import("../git/target-placement.js").AuditTargetAnswer;
|
|
97
|
+
delivery?: Readonly<{
|
|
98
|
+
changeId: import("../core/facts/types.js").ChangeId;
|
|
99
|
+
relation: "identical" | "differs";
|
|
100
|
+
}>;
|
|
101
|
+
}>, unknown, z.core.$ZodTypeInternals<Readonly<{
|
|
102
|
+
candidate: Readonly<{
|
|
103
|
+
kind: "blocked";
|
|
104
|
+
refusal: import("../protocol/operations.js").DeliveryPreparationRefusal;
|
|
105
|
+
}> | Readonly<{
|
|
106
|
+
kind: "ready";
|
|
107
|
+
workspace: Readonly<{
|
|
108
|
+
kind: "worktree";
|
|
109
|
+
path: string;
|
|
110
|
+
}>;
|
|
111
|
+
identity: import("../core/facts/types.js").DeliverData;
|
|
112
|
+
scope: Readonly<{
|
|
113
|
+
filesChanged: number;
|
|
114
|
+
insertions: number;
|
|
115
|
+
deletions: number;
|
|
116
|
+
paths?: readonly string[];
|
|
117
|
+
}>;
|
|
118
|
+
diff?: string;
|
|
119
|
+
}>;
|
|
120
|
+
verification: Readonly<{
|
|
121
|
+
kind: "not-run";
|
|
122
|
+
}> | Readonly<{
|
|
123
|
+
kind: "satisfied";
|
|
124
|
+
passed: number;
|
|
125
|
+
total: number;
|
|
126
|
+
summary?: string;
|
|
127
|
+
}> | Readonly<{
|
|
128
|
+
kind: "unsatisfied";
|
|
129
|
+
passed: number;
|
|
130
|
+
total: number;
|
|
131
|
+
summary?: string;
|
|
132
|
+
}> | Readonly<{
|
|
133
|
+
kind: "stopped";
|
|
134
|
+
stop: import("../protocol/operations.js").VerificationStop;
|
|
135
|
+
}>;
|
|
136
|
+
target: Readonly<{
|
|
137
|
+
kind: "not-observed";
|
|
138
|
+
}> | import("../git/target-placement.js").AuditTargetAnswer;
|
|
139
|
+
delivery?: Readonly<{
|
|
140
|
+
changeId: import("../core/facts/types.js").ChangeId;
|
|
141
|
+
relation: "identical" | "differs";
|
|
142
|
+
}>;
|
|
143
|
+
}>, unknown>>;
|
|
144
|
+
export declare const mutationResultSchema: <Value>(value: z.ZodType<Value>) => z.ZodType<MutationResult<Value>>;
|
|
145
|
+
export declare const deliveryResultSchema: z.ZodUnion<readonly [z.ZodType<Readonly<{
|
|
146
|
+
kind: "accepted";
|
|
147
|
+
facts: readonly JournalEntry[];
|
|
148
|
+
head: ContractHead;
|
|
149
|
+
value: DeliveryValue;
|
|
150
|
+
lags: readonly (import("../git/reconcile.js").ReconcileLag | Readonly<{
|
|
151
|
+
kind: "contract-file-failed";
|
|
152
|
+
worktree: string;
|
|
153
|
+
path: string;
|
|
154
|
+
diagnostic: string;
|
|
155
|
+
}>)[];
|
|
156
|
+
settlementLags: readonly Readonly<{
|
|
157
|
+
kind: "settlement-failed";
|
|
158
|
+
surface: "task-holder" | "task";
|
|
159
|
+
contractId: ContractId;
|
|
160
|
+
taskId?: import("./contract.js").TaskId;
|
|
161
|
+
path?: string;
|
|
162
|
+
diagnostic: string;
|
|
163
|
+
}>[];
|
|
164
|
+
recoverySnapshot?: SnapshotId;
|
|
165
|
+
pending: readonly Readonly<{
|
|
166
|
+
surface: MutationFinalitySurface;
|
|
167
|
+
required: boolean;
|
|
168
|
+
}>[];
|
|
169
|
+
} & Readonly<{
|
|
170
|
+
cleanup?: import("../protocol/intent.js").VerificationCleanupFailure;
|
|
171
|
+
leak?: import("../git/scratch.js").WorktreeLeak;
|
|
172
|
+
seatClose?: readonly PrivateStateSeatCloseLag[];
|
|
173
|
+
}>>, unknown, z.core.$ZodTypeInternals<Readonly<{
|
|
174
|
+
kind: "accepted";
|
|
175
|
+
facts: readonly JournalEntry[];
|
|
176
|
+
head: ContractHead;
|
|
177
|
+
value: DeliveryValue;
|
|
178
|
+
lags: readonly (import("../git/reconcile.js").ReconcileLag | Readonly<{
|
|
179
|
+
kind: "contract-file-failed";
|
|
180
|
+
worktree: string;
|
|
181
|
+
path: string;
|
|
182
|
+
diagnostic: string;
|
|
183
|
+
}>)[];
|
|
184
|
+
settlementLags: readonly Readonly<{
|
|
185
|
+
kind: "settlement-failed";
|
|
186
|
+
surface: "task-holder" | "task";
|
|
187
|
+
contractId: ContractId;
|
|
188
|
+
taskId?: import("./contract.js").TaskId;
|
|
189
|
+
path?: string;
|
|
190
|
+
diagnostic: string;
|
|
191
|
+
}>[];
|
|
192
|
+
recoverySnapshot?: SnapshotId;
|
|
193
|
+
pending: readonly Readonly<{
|
|
194
|
+
surface: MutationFinalitySurface;
|
|
195
|
+
required: boolean;
|
|
196
|
+
}>[];
|
|
197
|
+
} & Readonly<{
|
|
198
|
+
cleanup?: import("../protocol/intent.js").VerificationCleanupFailure;
|
|
199
|
+
leak?: import("../git/scratch.js").WorktreeLeak;
|
|
200
|
+
seatClose?: readonly PrivateStateSeatCloseLag[];
|
|
201
|
+
}>>, unknown>>, z.ZodType<Readonly<{
|
|
202
|
+
kind: "integration-conflict-materialized";
|
|
203
|
+
targetHead: SnapshotId;
|
|
204
|
+
conflictPaths: readonly string[];
|
|
205
|
+
workspace: import("../protocol/deliver.js").AppointedWorkspace;
|
|
206
|
+
}>, unknown, z.core.$ZodTypeInternals<Readonly<{
|
|
207
|
+
kind: "integration-conflict-materialized";
|
|
208
|
+
targetHead: SnapshotId;
|
|
209
|
+
conflictPaths: readonly string[];
|
|
210
|
+
workspace: import("../protocol/deliver.js").AppointedWorkspace;
|
|
211
|
+
}>, unknown>>]>;
|
|
212
|
+
export declare const reviewResultSchema: z.ZodType<Readonly<{
|
|
213
|
+
kind: "accepted";
|
|
214
|
+
facts: readonly JournalEntry[];
|
|
215
|
+
head: ContractHead;
|
|
216
|
+
value: Review;
|
|
217
|
+
lags: readonly (import("../git/reconcile.js").ReconcileLag | Readonly<{
|
|
218
|
+
kind: "contract-file-failed";
|
|
219
|
+
worktree: string;
|
|
220
|
+
path: string;
|
|
221
|
+
diagnostic: string;
|
|
222
|
+
}>)[];
|
|
223
|
+
settlementLags: readonly Readonly<{
|
|
224
|
+
kind: "settlement-failed";
|
|
225
|
+
surface: "task-holder" | "task";
|
|
226
|
+
contractId: ContractId;
|
|
227
|
+
taskId?: import("./contract.js").TaskId;
|
|
228
|
+
path?: string;
|
|
229
|
+
diagnostic: string;
|
|
230
|
+
}>[];
|
|
231
|
+
recoverySnapshot?: SnapshotId;
|
|
232
|
+
pending: readonly Readonly<{
|
|
233
|
+
surface: MutationFinalitySurface;
|
|
234
|
+
required: boolean;
|
|
235
|
+
}>[];
|
|
236
|
+
} & Readonly<{
|
|
237
|
+
cleanup?: import("../protocol/intent.js").VerificationCleanupFailure;
|
|
238
|
+
leak?: import("../git/scratch.js").WorktreeLeak;
|
|
239
|
+
seatClose?: readonly PrivateStateSeatCloseLag[];
|
|
240
|
+
}>>, unknown, z.core.$ZodTypeInternals<Readonly<{
|
|
241
|
+
kind: "accepted";
|
|
242
|
+
facts: readonly JournalEntry[];
|
|
243
|
+
head: ContractHead;
|
|
244
|
+
value: Review;
|
|
245
|
+
lags: readonly (import("../git/reconcile.js").ReconcileLag | Readonly<{
|
|
246
|
+
kind: "contract-file-failed";
|
|
247
|
+
worktree: string;
|
|
248
|
+
path: string;
|
|
249
|
+
diagnostic: string;
|
|
250
|
+
}>)[];
|
|
251
|
+
settlementLags: readonly Readonly<{
|
|
252
|
+
kind: "settlement-failed";
|
|
253
|
+
surface: "task-holder" | "task";
|
|
254
|
+
contractId: ContractId;
|
|
255
|
+
taskId?: import("./contract.js").TaskId;
|
|
256
|
+
path?: string;
|
|
257
|
+
diagnostic: string;
|
|
258
|
+
}>[];
|
|
259
|
+
recoverySnapshot?: SnapshotId;
|
|
260
|
+
pending: readonly Readonly<{
|
|
261
|
+
surface: MutationFinalitySurface;
|
|
262
|
+
required: boolean;
|
|
263
|
+
}>[];
|
|
264
|
+
} & Readonly<{
|
|
265
|
+
cleanup?: import("../protocol/intent.js").VerificationCleanupFailure;
|
|
266
|
+
leak?: import("../git/scratch.js").WorktreeLeak;
|
|
267
|
+
seatClose?: readonly PrivateStateSeatCloseLag[];
|
|
268
|
+
}>>, unknown>>;
|
|
269
|
+
export declare const auditResultSchema: z.ZodType<Readonly<{
|
|
270
|
+
kind: "accepted";
|
|
271
|
+
facts: readonly JournalEntry[];
|
|
272
|
+
head: ContractHead;
|
|
273
|
+
value: Readonly<{
|
|
274
|
+
candidate: Readonly<{
|
|
275
|
+
kind: "blocked";
|
|
276
|
+
refusal: import("../protocol/operations.js").DeliveryPreparationRefusal;
|
|
277
|
+
}> | Readonly<{
|
|
278
|
+
kind: "ready";
|
|
279
|
+
workspace: Readonly<{
|
|
280
|
+
kind: "worktree";
|
|
281
|
+
path: string;
|
|
282
|
+
}>;
|
|
283
|
+
identity: import("../core/facts/types.js").DeliverData;
|
|
284
|
+
scope: Readonly<{
|
|
285
|
+
filesChanged: number;
|
|
286
|
+
insertions: number;
|
|
287
|
+
deletions: number;
|
|
288
|
+
paths?: readonly string[];
|
|
289
|
+
}>;
|
|
290
|
+
diff?: string;
|
|
291
|
+
}>;
|
|
292
|
+
verification: Readonly<{
|
|
293
|
+
kind: "not-run";
|
|
294
|
+
}> | Readonly<{
|
|
295
|
+
kind: "satisfied";
|
|
296
|
+
passed: number;
|
|
297
|
+
total: number;
|
|
298
|
+
summary?: string;
|
|
299
|
+
}> | Readonly<{
|
|
300
|
+
kind: "unsatisfied";
|
|
301
|
+
passed: number;
|
|
302
|
+
total: number;
|
|
303
|
+
summary?: string;
|
|
304
|
+
}> | Readonly<{
|
|
305
|
+
kind: "stopped";
|
|
306
|
+
stop: import("../protocol/operations.js").VerificationStop;
|
|
307
|
+
}>;
|
|
308
|
+
target: Readonly<{
|
|
309
|
+
kind: "not-observed";
|
|
310
|
+
}> | import("../git/target-placement.js").AuditTargetAnswer;
|
|
311
|
+
delivery?: Readonly<{
|
|
312
|
+
changeId: import("../core/facts/types.js").ChangeId;
|
|
313
|
+
relation: "identical" | "differs";
|
|
314
|
+
}>;
|
|
315
|
+
}>;
|
|
316
|
+
lags: readonly (import("../git/reconcile.js").ReconcileLag | Readonly<{
|
|
317
|
+
kind: "contract-file-failed";
|
|
318
|
+
worktree: string;
|
|
319
|
+
path: string;
|
|
320
|
+
diagnostic: string;
|
|
321
|
+
}>)[];
|
|
322
|
+
settlementLags: readonly Readonly<{
|
|
323
|
+
kind: "settlement-failed";
|
|
324
|
+
surface: "task-holder" | "task";
|
|
325
|
+
contractId: ContractId;
|
|
326
|
+
taskId?: import("./contract.js").TaskId;
|
|
327
|
+
path?: string;
|
|
328
|
+
diagnostic: string;
|
|
329
|
+
}>[];
|
|
330
|
+
recoverySnapshot?: SnapshotId;
|
|
331
|
+
pending: readonly Readonly<{
|
|
332
|
+
surface: MutationFinalitySurface;
|
|
333
|
+
required: boolean;
|
|
334
|
+
}>[];
|
|
335
|
+
} & Readonly<{
|
|
336
|
+
cleanup?: import("../protocol/intent.js").VerificationCleanupFailure;
|
|
337
|
+
leak?: import("../git/scratch.js").WorktreeLeak;
|
|
338
|
+
seatClose?: readonly PrivateStateSeatCloseLag[];
|
|
339
|
+
}>>, unknown, z.core.$ZodTypeInternals<Readonly<{
|
|
340
|
+
kind: "accepted";
|
|
341
|
+
facts: readonly JournalEntry[];
|
|
342
|
+
head: ContractHead;
|
|
343
|
+
value: Readonly<{
|
|
344
|
+
candidate: Readonly<{
|
|
345
|
+
kind: "blocked";
|
|
346
|
+
refusal: import("../protocol/operations.js").DeliveryPreparationRefusal;
|
|
347
|
+
}> | Readonly<{
|
|
348
|
+
kind: "ready";
|
|
349
|
+
workspace: Readonly<{
|
|
350
|
+
kind: "worktree";
|
|
351
|
+
path: string;
|
|
352
|
+
}>;
|
|
353
|
+
identity: import("../core/facts/types.js").DeliverData;
|
|
354
|
+
scope: Readonly<{
|
|
355
|
+
filesChanged: number;
|
|
356
|
+
insertions: number;
|
|
357
|
+
deletions: number;
|
|
358
|
+
paths?: readonly string[];
|
|
359
|
+
}>;
|
|
360
|
+
diff?: string;
|
|
361
|
+
}>;
|
|
362
|
+
verification: Readonly<{
|
|
363
|
+
kind: "not-run";
|
|
364
|
+
}> | Readonly<{
|
|
365
|
+
kind: "satisfied";
|
|
366
|
+
passed: number;
|
|
367
|
+
total: number;
|
|
368
|
+
summary?: string;
|
|
369
|
+
}> | Readonly<{
|
|
370
|
+
kind: "unsatisfied";
|
|
371
|
+
passed: number;
|
|
372
|
+
total: number;
|
|
373
|
+
summary?: string;
|
|
374
|
+
}> | Readonly<{
|
|
375
|
+
kind: "stopped";
|
|
376
|
+
stop: import("../protocol/operations.js").VerificationStop;
|
|
377
|
+
}>;
|
|
378
|
+
target: Readonly<{
|
|
379
|
+
kind: "not-observed";
|
|
380
|
+
}> | import("../git/target-placement.js").AuditTargetAnswer;
|
|
381
|
+
delivery?: Readonly<{
|
|
382
|
+
changeId: import("../core/facts/types.js").ChangeId;
|
|
383
|
+
relation: "identical" | "differs";
|
|
384
|
+
}>;
|
|
385
|
+
}>;
|
|
386
|
+
lags: readonly (import("../git/reconcile.js").ReconcileLag | Readonly<{
|
|
387
|
+
kind: "contract-file-failed";
|
|
388
|
+
worktree: string;
|
|
389
|
+
path: string;
|
|
390
|
+
diagnostic: string;
|
|
391
|
+
}>)[];
|
|
392
|
+
settlementLags: readonly Readonly<{
|
|
393
|
+
kind: "settlement-failed";
|
|
394
|
+
surface: "task-holder" | "task";
|
|
395
|
+
contractId: ContractId;
|
|
396
|
+
taskId?: import("./contract.js").TaskId;
|
|
397
|
+
path?: string;
|
|
398
|
+
diagnostic: string;
|
|
399
|
+
}>[];
|
|
400
|
+
recoverySnapshot?: SnapshotId;
|
|
401
|
+
pending: readonly Readonly<{
|
|
402
|
+
surface: MutationFinalitySurface;
|
|
403
|
+
required: boolean;
|
|
404
|
+
}>[];
|
|
405
|
+
} & Readonly<{
|
|
406
|
+
cleanup?: import("../protocol/intent.js").VerificationCleanupFailure;
|
|
407
|
+
leak?: import("../git/scratch.js").WorktreeLeak;
|
|
408
|
+
seatClose?: readonly PrivateStateSeatCloseLag[];
|
|
409
|
+
}>>, unknown>>;
|
|
410
|
+
type ObligationPendingInput = Readonly<{
|
|
411
|
+
lags: MutationResult<unknown>["lags"];
|
|
412
|
+
settlementLags: MutationResult<unknown>["settlementLags"];
|
|
413
|
+
cleanup?: AcceptedObligations["cleanup"];
|
|
414
|
+
leak?: AcceptedObligations["leak"];
|
|
415
|
+
seatClose?: AcceptedObligations["seatClose"];
|
|
416
|
+
}>;
|
|
417
|
+
type CompletionPendingValue = Readonly<{
|
|
418
|
+
verification?: unknown | undefined;
|
|
419
|
+
placement?: unknown | undefined;
|
|
420
|
+
continuation?: ContinuationReport | undefined;
|
|
421
|
+
}>;
|
|
422
|
+
export declare function noValuePending(_value?: unknown): readonly MutationPendingSurface[];
|
|
423
|
+
export declare function auditPending(value: AuditReport): readonly MutationPendingSurface[];
|
|
424
|
+
export declare function completionPending(value: CompletionPendingValue): readonly MutationPendingSurface[];
|
|
425
|
+
export declare function obligationPending(input: ObligationPendingInput): readonly MutationPendingSurface[];
|
|
426
|
+
export declare function collectAcceptedPending(valuePending: readonly MutationPendingSurface[], obligations: ObligationPendingInput): readonly MutationPendingSurface[];
|
|
427
|
+
/** Purely projects the leading mutation's finality without changing its details. */
|
|
428
|
+
export declare function projectMutationFinality(input: MutationFinalityInput): MutationFinality;
|
|
11
429
|
export type AcceptedIntent<Value> = Readonly<{
|
|
12
430
|
kind: "accepted";
|
|
13
431
|
facts: readonly JournalEntry[];
|
|
@@ -16,12 +434,14 @@ export type AcceptedIntent<Value> = Readonly<{
|
|
|
16
434
|
physical?: ReconcileReport;
|
|
17
435
|
} & AcceptedObligations>;
|
|
18
436
|
export type MutationResult<Value> = Readonly<{
|
|
437
|
+
kind: "accepted";
|
|
19
438
|
facts: readonly JournalEntry[];
|
|
20
439
|
head: ContractHead;
|
|
21
440
|
value: Value;
|
|
22
441
|
lags: ReconcileCompletion["lag"];
|
|
23
442
|
settlementLags: SettlementReport["lags"];
|
|
24
443
|
recoverySnapshot?: SnapshotId;
|
|
444
|
+
pending: readonly MutationPendingSurface[];
|
|
25
445
|
} & AcceptedObligations>;
|
|
26
446
|
type Completion<Value, PublicValue> = Readonly<{
|
|
27
447
|
scope: RepositoryScope;
|
|
@@ -29,9 +449,17 @@ type Completion<Value, PublicValue> = Readonly<{
|
|
|
29
449
|
contractId: ContractId;
|
|
30
450
|
accepted: AcceptedIntent<Value>;
|
|
31
451
|
value: (result: Value) => PublicValue;
|
|
452
|
+
valuePending?: (value: PublicValue) => readonly MutationPendingSurface[];
|
|
32
453
|
hooks: WorktreeHooks;
|
|
33
454
|
}>;
|
|
34
|
-
export declare function completionInput<Value, PublicValue>(
|
|
455
|
+
export declare function completionInput<Value, PublicValue>(input: Readonly<{
|
|
456
|
+
scope: RepositoryScope;
|
|
457
|
+
channel: GitDecodeChannel;
|
|
458
|
+
contractId: ContractId;
|
|
459
|
+
value: (result: Value) => PublicValue;
|
|
460
|
+
hooks: WorktreeHooks;
|
|
461
|
+
valuePending?: (value: PublicValue) => readonly MutationPendingSurface[];
|
|
462
|
+
}>): Omit<Completion<Value, PublicValue>, "accepted">;
|
|
35
463
|
export declare function completeMutation<Value, PublicValue>(input: Completion<Value, PublicValue>): Promise<MutationResult<PublicValue>>;
|
|
36
464
|
export declare function completeHolderMutation<Value, PublicValue, Refusal>(input: Readonly<{
|
|
37
465
|
completion: Omit<Completion<Value, PublicValue>, "accepted">;
|