@astrosheep/keiyaku 4.1.0 → 4.1.2
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 +3 -0
- package/build/integrations/marketplace/plugins/keiyaku/skills/keiyaku-akuma/SKILL.md +3 -0
- package/build/integrations/marketplace/plugins/keiyaku/skills/keiyaku-workflow/SKILL.md +3 -6
- package/build/src/akuma/akuma-errors.d.ts +6 -0
- package/build/src/akuma/akuma-errors.js +9 -0
- package/build/src/akuma/akuma-handle.d.ts +39 -0
- package/build/src/akuma/akuma-handle.js +263 -0
- package/build/src/akuma/akuma-observe.d.ts +19 -0
- package/build/src/akuma/akuma-observe.js +74 -0
- package/build/src/akuma/akuma-product-symbols.d.ts +1 -0
- package/build/src/akuma/akuma-product-symbols.js +1 -0
- package/build/src/akuma/akuma-product.d.ts +18 -0
- package/build/src/akuma/akuma-product.js +154 -0
- package/build/src/akuma/akuma.d.ts +37 -81
- package/build/src/akuma/akuma.js +39 -447
- package/build/src/akuma/allowed.d.ts +1 -0
- package/build/src/akuma/allowed.js +6 -0
- package/build/src/akuma/archetype.js +8 -5
- package/build/src/akuma/body-supervisor.d.ts +26 -0
- package/build/src/akuma/body-supervisor.js +89 -0
- package/build/src/akuma/body.d.ts +45 -4
- package/build/src/akuma/body.js +145 -35
- package/build/src/akuma/coordinate.js +17 -7
- package/build/src/akuma/heart/facts.js +1 -1
- package/build/src/akuma/heart/index.d.ts +1 -1
- package/build/src/akuma/heart/index.js +2 -4
- package/build/src/akuma/heart/request-authority.js +4 -4
- package/build/src/akuma/heart/request-rows.js +27 -16
- package/build/src/akuma/heart/rows.js +79 -41
- package/build/src/akuma/heart/soul.js +1 -1
- package/build/src/akuma/heart/storage.d.ts +1 -0
- package/build/src/akuma/heart/storage.js +76 -11
- package/build/src/akuma/heart/tells.js +35 -18
- package/build/src/akuma/heart/timeline.js +19 -11
- package/build/src/akuma/identity.d.ts +1 -0
- package/build/src/akuma/identity.js +1 -0
- package/build/src/akuma/index.d.ts +3 -3
- package/build/src/akuma/index.js +1 -1
- package/build/src/akuma/nuke.js +106 -14
- package/build/src/akuma/projection-read.d.ts +17 -0
- package/build/src/akuma/projection-read.js +135 -0
- package/build/src/akuma/projection.d.ts +1 -16
- package/build/src/akuma/projection.js +77 -154
- package/build/src/akuma/provider-recipe.js +11 -5
- package/build/src/akuma/provider.js +105 -62
- package/build/src/akuma/providers/acp/config.js +5 -6
- package/build/src/akuma/providers/acp/core.js +17 -10
- package/build/src/akuma/providers/acp/events.js +38 -29
- package/build/src/akuma/providers/acp/index.js +13 -9
- package/build/src/akuma/providers/claude/events.js +8 -12
- package/build/src/akuma/providers/claude/index.d.ts +1 -0
- package/build/src/akuma/providers/claude/index.js +55 -26
- package/build/src/akuma/providers/claude/input.js +6 -2
- package/build/src/akuma/providers/codex-app-server/events.js +61 -36
- package/build/src/akuma/providers/codex-app-server/index.js +25 -13
- package/build/src/akuma/providers/grok-build/index.js +22 -25
- package/build/src/akuma/providers/index.js +2 -18
- package/build/src/akuma/providers/opencode-sdk/events.js +32 -18
- package/build/src/akuma/providers/opencode-sdk/index.js +26 -17
- package/build/src/akuma/providers/opencode-sdk/session.js +21 -5
- package/build/src/akuma/providers/pi/events.js +26 -19
- package/build/src/akuma/providers/pi/index.js +58 -40
- package/build/src/akuma/publication.js +9 -9
- package/build/src/akuma/request-execution.d.ts +6 -0
- package/build/src/akuma/request-execution.js +86 -0
- package/build/src/akuma/request-serve.d.ts +12 -1
- package/build/src/akuma/request-serve.js +19 -122
- package/build/src/akuma/request-wire.d.ts +2 -2
- package/build/src/akuma/request-wire.js +75 -102
- package/build/src/akuma/requests.js +2 -2
- package/build/src/akuma/{body-turn.d.ts → turn-drive.d.ts} +2 -25
- package/build/src/akuma/{body-turn.js → turn-drive.js} +20 -103
- package/build/src/akuma-body.js +6 -5
- package/build/src/body/amend.d.ts +4 -1
- package/build/src/body/amend.js +14 -6
- package/build/src/body/decode.js +2 -4
- package/build/src/body/envelope.js +2 -4
- package/build/src/body/region.d.ts +1 -2
- package/build/src/body/region.js +2 -70
- package/build/src/body/render.js +17 -12
- package/build/src/body/shape.js +1 -7
- package/build/src/cli/accepted.d.ts +1 -1
- package/build/src/cli/accepted.js +8 -1
- package/build/src/cli/commands/akuma-invoke.js +18 -6
- package/build/src/cli/commands/akuma.d.ts +0 -6
- package/build/src/cli/commands/akuma.js +11 -24
- package/build/src/cli/commands/amend.d.ts +2 -2
- package/build/src/cli/commands/amend.js +2 -4
- package/build/src/cli/commands/bind.d.ts +4 -4
- package/build/src/cli/commands/bind.js +16 -6
- package/build/src/cli/commands/contract-invoke.d.ts +25 -0
- package/build/src/cli/commands/contract-invoke.js +193 -0
- package/build/src/cli/commands/contract.d.ts +109 -10
- package/build/src/cli/commands/contract.js +339 -16
- package/build/src/cli/commands/install.d.ts +1 -1
- package/build/src/cli/commands/install.js +23 -15
- package/build/src/cli/commands/task-invoke.js +187 -67
- package/build/src/cli/commands/task-query.js +48 -24
- package/build/src/cli/commands/task.js +150 -38
- package/build/src/cli/coordinates.js +2 -4
- package/build/src/cli/invoke.js +92 -208
- package/build/src/cli/main.js +4 -2
- package/build/src/cli/parse.d.ts +3 -90
- package/build/src/cli/parse.js +27 -233
- package/build/src/cli/render/akuma-activity.d.ts +38 -0
- package/build/src/cli/render/akuma-activity.js +362 -0
- package/build/src/cli/render/akuma-tool-command.js +6 -7
- package/build/src/cli/render/akuma-tool.js +10 -8
- package/build/src/cli/render/akuma.d.ts +1 -1
- package/build/src/cli/render/akuma.js +61 -353
- package/build/src/cli/render/audit.js +5 -15
- package/build/src/cli/render/board.d.ts +1 -0
- package/build/src/cli/render/board.js +17 -0
- package/build/src/cli/render/catalog.js +81 -8
- package/build/src/cli/render/contract-history.d.ts +2 -0
- package/build/src/cli/render/contract-history.js +83 -0
- package/build/src/cli/render/contract-observation.d.ts +10 -0
- package/build/src/cli/render/contract-observation.js +58 -0
- package/build/src/cli/render/contract.d.ts +1 -2
- package/build/src/cli/render/contract.js +41 -142
- package/build/src/cli/render/kanshi.js +239 -215
- package/build/src/cli/render/receipt.js +2 -9
- package/build/src/cli/render/refusal.js +10 -15
- package/build/src/cli/render/region.js +22 -6
- package/build/src/cli/render/settings.js +4 -4
- package/build/src/cli/render/task.js +34 -14
- package/build/src/cli/render/terminal.js +16 -5
- package/build/src/cli/result.d.ts +3 -3
- package/build/src/cli/runtime.d.ts +6 -1
- package/build/src/cli/runtime.js +84 -63
- package/build/src/cli/selectors.js +2 -4
- package/build/src/cli/usage.js +6 -5
- package/build/src/contract-worktree.d.ts +1 -23
- package/build/src/contract-worktree.js +79 -155
- package/build/src/coordination/durable-file.js +7 -3
- package/build/src/coordination/sqlite-transaction-lock.js +29 -12
- package/build/src/core/facts/codec.js +7 -3
- package/build/src/core/facts/types.d.ts +1 -1
- package/build/src/core/subject.js +16 -9
- package/build/src/core/verbs/abandon.d.ts +1 -1
- package/build/src/core/verbs/abandon.js +1 -1
- package/build/src/core/verbs/amend.d.ts +1 -1
- package/build/src/core/verbs/amend.js +7 -7
- package/build/src/core/verbs/attestation.js +4 -1
- package/build/src/core/verbs/bind.d.ts +1 -1
- package/build/src/core/verbs/bind.js +1 -1
- package/build/src/core/verbs/placement.d.ts +1 -1
- package/build/src/core/verbs/placement.js +10 -8
- package/build/src/dispatch/index.js +8 -6
- package/build/src/duration.js +5 -1
- package/build/src/git/admission.js +5 -3
- package/build/src/git/hooks.d.ts +8 -0
- package/build/src/git/hooks.js +63 -14
- package/build/src/git/identity.js +1 -4
- package/build/src/git/integration.d.ts +2 -3
- package/build/src/git/integration.js +32 -39
- package/build/src/git/nuke.d.ts +1 -1
- package/build/src/git/nuke.js +110 -57
- package/build/src/git/observe.d.ts +13 -1
- package/build/src/git/observe.js +51 -44
- package/build/src/git/process.js +4 -2
- package/build/src/git/read-observation.js +10 -8
- package/build/src/git/reconcile.d.ts +22 -2
- package/build/src/git/reconcile.js +38 -274
- package/build/src/git/repository.d.ts +2 -0
- package/build/src/git/repository.js +13 -22
- package/build/src/git/scratch.d.ts +8 -5
- package/build/src/git/scratch.js +29 -2
- package/build/src/git/target-placement.d.ts +9 -10
- package/build/src/git/target-placement.js +59 -62
- package/build/src/git/tender.js +13 -46
- package/build/src/git/terminal-reconcile.d.ts +21 -0
- package/build/src/git/terminal-reconcile.js +278 -0
- package/build/src/git/terminal-seal.js +15 -12
- package/build/src/git/tree.js +5 -2
- package/build/src/git/workspace.d.ts +24 -2
- package/build/src/git/workspace.js +120 -16
- package/build/src/identity/coordinates.js +3 -1
- package/build/src/identity/selector.js +6 -3
- package/build/src/kanshi/fleet.d.ts +6 -0
- package/build/src/kanshi/fleet.js +27 -0
- package/build/src/kanshi/index.d.ts +1 -1
- package/build/src/kanshi/read.js +60 -48
- package/build/src/kanshi/report.d.ts +11 -23
- package/build/src/kanshi/select.js +25 -24
- package/build/src/library/address.d.ts +2 -1
- package/build/src/library/address.js +7 -8
- package/build/src/library/akuma-creation.js +20 -12
- package/build/src/library/audit.d.ts +0 -1
- package/build/src/library/audit.js +1 -2
- package/build/src/library/bind.d.ts +53 -5
- package/build/src/library/bind.js +98 -22
- package/build/src/library/catalog.d.ts +1 -0
- package/build/src/library/catalog.js +6 -3
- package/build/src/library/configuration.js +3 -1
- package/build/src/library/continuation.d.ts +15 -4
- package/build/src/library/continuation.js +24 -16
- package/build/src/library/contract-bind.d.ts +26 -0
- package/build/src/library/contract-bind.js +106 -0
- package/build/src/library/contract-operations.d.ts +77 -0
- package/build/src/library/contract-operations.js +130 -0
- package/build/src/library/contract-types.d.ts +95 -0
- package/build/src/library/contract-types.js +1 -0
- package/build/src/library/contract.d.ts +19 -154
- package/build/src/library/contract.js +46 -261
- package/build/src/library/fleet.d.ts +1 -1
- package/build/src/library/fleet.js +19 -11
- package/build/src/library/input.d.ts +2 -0
- package/build/src/library/input.js +14 -0
- package/build/src/library/keiyaku.d.ts +8 -7
- package/build/src/library/keiyaku.js +3 -3
- package/build/src/library/nuke.js +14 -5
- package/build/src/library/reconcile.d.ts +9 -4
- package/build/src/library/reconcile.js +30 -24
- package/build/src/library/refusal.d.ts +13 -5
- package/build/src/library/refusal.js +7 -0
- package/build/src/library/region.d.ts +8 -7
- package/build/src/library/region.js +31 -11
- package/build/src/library/repo.js +2 -2
- package/build/src/markdown/lex.js +9 -2
- package/build/src/markdown/parse.js +11 -7
- package/build/src/markdown/query.js +4 -2
- package/build/src/protocol/amend.js +3 -1
- package/build/src/protocol/attempt.d.ts +7 -3
- package/build/src/protocol/attempt.js +9 -5
- package/build/src/protocol/audit.d.ts +1 -1
- package/build/src/protocol/audit.js +4 -14
- package/build/src/protocol/bind.d.ts +19 -6
- package/build/src/protocol/bind.js +28 -13
- package/build/src/protocol/completion.d.ts +0 -1
- package/build/src/protocol/completion.js +1 -3
- package/build/src/protocol/deliver.d.ts +1 -3
- package/build/src/protocol/deliver.js +15 -39
- package/build/src/protocol/intent.d.ts +1 -0
- package/build/src/protocol/intent.js +9 -7
- package/build/src/protocol/operations.d.ts +3 -7
- package/build/src/protocol/operations.js +5 -3
- package/build/src/protocol/placement.d.ts +0 -1
- package/build/src/protocol/placement.js +6 -6
- package/build/src/protocol/read/observation.d.ts +11 -0
- package/build/src/protocol/read/observation.js +37 -0
- package/build/src/protocol/read/status.d.ts +23 -12
- package/build/src/protocol/read/status.js +90 -72
- package/build/src/protocol/reconcile.d.ts +1 -0
- package/build/src/protocol/reconcile.js +2 -3
- package/build/src/protocol/reintegrate.js +1 -1
- package/build/src/protocol/review.d.ts +0 -1
- package/build/src/protocol/review.js +15 -22
- package/build/src/protocol/run.d.ts +1 -0
- package/build/src/protocol/run.js +4 -5
- package/build/src/runtime/proc/launch.d.ts +33 -0
- package/build/src/runtime/proc/launch.js +98 -0
- package/build/src/runtime/proc/line-rpc.js +9 -3
- package/build/src/runtime/proc/run.d.ts +12 -6
- package/build/src/runtime/proc/run.js +78 -21
- package/build/src/runtime/proc/stdio.js +7 -10
- package/build/src/settings.js +6 -2
- package/build/src/settlement/holder.js +13 -10
- package/build/src/settlement/settle.js +39 -6
- package/build/src/task/board.js +12 -6
- package/build/src/task/compose.js +85 -22
- package/build/src/task/context.js +21 -8
- package/build/src/task/document.js +46 -10
- package/build/src/task/identity.js +5 -2
- package/build/src/task/index.d.ts +0 -1
- package/build/src/task/index.js +119 -34
- package/build/src/task/input.js +29 -7
- package/build/src/task/mutation.js +61 -19
- package/build/src/task/operations.d.ts +6 -1
- package/build/src/task/operations.js +83 -29
- package/build/src/task/query.js +55 -26
- package/build/src/task/store.d.ts +3 -1
- package/build/src/task/store.js +81 -17
- package/build/src/verification/execution.js +14 -11
- package/build/src/workspace-place.js +19 -7
- package/build/src/world.js +16 -6
- package/package.json +8 -3
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import type { ContractId, JournalEntry, SnapshotId } from "../core/facts/types.js";
|
|
2
|
+
import type { ContractFileEffect, ContractFileLag } from "../contract-worktree.js";
|
|
3
|
+
import type { ReconcileReport as ProtocolReconcileReport } from "../protocol/reconcile.js";
|
|
4
|
+
import type { Dispatch } from "../dispatch/index.js";
|
|
5
|
+
import type { Gate, WorktreeHooks } from "./configuration.js";
|
|
6
|
+
import type { AmendRegionObservation, RegionObservation } from "./region.js";
|
|
7
|
+
import type { Repo } from "./repo.js";
|
|
8
|
+
import type { MutationResult } from "./mutation.js";
|
|
9
|
+
import type { SettlementReport } from "../settlement/settle.js";
|
|
10
|
+
import type { Keiyaku, AttestationVerdict } from "./contract.js";
|
|
11
|
+
import type { TaskId } from "../task/identity.js";
|
|
12
|
+
export type BindResult = Readonly<Omit<MutationResult<Keiyaku>, "value"> & {
|
|
13
|
+
keiyaku: Keiyaku;
|
|
14
|
+
} & RegionObservation>;
|
|
15
|
+
export type Fact = JournalEntry;
|
|
16
|
+
export type ContractHistoryEvent = Readonly<{
|
|
17
|
+
source: "journal";
|
|
18
|
+
fact: Fact;
|
|
19
|
+
}> | Readonly<{
|
|
20
|
+
source: "dispatch";
|
|
21
|
+
dispatch: Dispatch;
|
|
22
|
+
}>;
|
|
23
|
+
export type ContractHistory = Readonly<{
|
|
24
|
+
id: ContractId;
|
|
25
|
+
state: SnapshotId;
|
|
26
|
+
events: readonly ContractHistoryEvent[];
|
|
27
|
+
}>;
|
|
28
|
+
export type TopologyEffect = ProtocolReconcileReport["effects"][number] | ContractFileEffect;
|
|
29
|
+
export type Lag = ProtocolReconcileReport["lag"][number] | ContractFileLag;
|
|
30
|
+
export type AmendResult = Readonly<MutationResult<void> & {
|
|
31
|
+
documentDiff: string;
|
|
32
|
+
}> & AmendRegionObservation;
|
|
33
|
+
export type ReconcileReport = Readonly<{
|
|
34
|
+
effects: readonly (ProtocolReconcileReport["effects"][number] | ContractFileEffect)[];
|
|
35
|
+
lag: readonly (ProtocolReconcileReport["lag"][number] | ContractFileLag)[];
|
|
36
|
+
settlement: SettlementReport;
|
|
37
|
+
}>;
|
|
38
|
+
export type MarkdownBindInput = Readonly<{
|
|
39
|
+
repo: Repo;
|
|
40
|
+
markdown: string;
|
|
41
|
+
task?: TaskId;
|
|
42
|
+
target?: string;
|
|
43
|
+
workspace?: "worktree";
|
|
44
|
+
actor?: string;
|
|
45
|
+
after?: readonly ContractId[];
|
|
46
|
+
gates?: readonly Gate[];
|
|
47
|
+
hooks?: WorktreeHooks;
|
|
48
|
+
}>;
|
|
49
|
+
export type ForkBindInput = Readonly<{
|
|
50
|
+
repo: Repo;
|
|
51
|
+
forkOf: ContractId;
|
|
52
|
+
target?: string;
|
|
53
|
+
workspace?: "worktree";
|
|
54
|
+
actor?: string;
|
|
55
|
+
hooks?: WorktreeHooks;
|
|
56
|
+
}>;
|
|
57
|
+
export type BindInput = MarkdownBindInput | ForkBindInput;
|
|
58
|
+
type ActorOptions = Readonly<{
|
|
59
|
+
actor?: string;
|
|
60
|
+
hooks?: WorktreeHooks;
|
|
61
|
+
}>;
|
|
62
|
+
export type AmendInput = ActorOptions & Readonly<{
|
|
63
|
+
markdown?: string;
|
|
64
|
+
after?: readonly ContractId[];
|
|
65
|
+
gates?: readonly Gate[];
|
|
66
|
+
}>;
|
|
67
|
+
export type ArcInput = ActorOptions & Readonly<{
|
|
68
|
+
markdown: string;
|
|
69
|
+
}>;
|
|
70
|
+
export type ContractListInput = Readonly<{
|
|
71
|
+
repo: Repo;
|
|
72
|
+
}>;
|
|
73
|
+
export type ContractObservationInput = Readonly<{
|
|
74
|
+
repo: Repo;
|
|
75
|
+
id: ContractId;
|
|
76
|
+
}>;
|
|
77
|
+
export type KeiyakuOfInput = Readonly<{
|
|
78
|
+
repo: Repo;
|
|
79
|
+
id: ContractId;
|
|
80
|
+
}>;
|
|
81
|
+
export type ReviewInput = ActorOptions & Readonly<{
|
|
82
|
+
verdict: AttestationVerdict;
|
|
83
|
+
summary?: string;
|
|
84
|
+
}>;
|
|
85
|
+
export type AbandonInput = ActorOptions & Readonly<{
|
|
86
|
+
note?: string;
|
|
87
|
+
}>;
|
|
88
|
+
export type DeliverInput = ActorOptions & Readonly<{
|
|
89
|
+
message?: string;
|
|
90
|
+
requireBranchesToBeUpToDate?: boolean;
|
|
91
|
+
includeDirty?: boolean;
|
|
92
|
+
materializeConflict?: boolean;
|
|
93
|
+
signal?: AbortSignal;
|
|
94
|
+
}>;
|
|
95
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,168 +1,31 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
import { type
|
|
3
|
-
import { type Gate, type WorktreeHooks } from "./configuration.js";
|
|
4
|
-
import { type ChangeId, type ContractId, type ContractState, type JournalEntry, type SnapshotId } from "../core/facts/types.js";
|
|
1
|
+
import { type RegionOverlap } from "./region.js";
|
|
2
|
+
import { type ChangeId, type FactKind, type ContractId, type ContractState, type SnapshotId } from "../core/facts/types.js";
|
|
5
3
|
export { AuthorityCorruptionError } from "../core/facts/errors.js";
|
|
6
4
|
import { type PlacementStop, type RepositoryScope, type VerificationStop, type DeliveryPreparationRefusal } from "../protocol/operations.js";
|
|
7
|
-
import type { ContractBoard, ContractDisposition, ContractGateCurrent, ContractGateReport, ContractObservation, ContractPhase, ContractRow } from "../protocol/read/status.js";
|
|
5
|
+
import type { ContractBoard, ContractDisposition, ContractGateCurrent, ContractGateReport, ContractObservation, ContractPhase, ContractRow, AfterEndpointObservation, ContractAfterEdge, ContractDependent, ContractWorkspaceObservation } from "../protocol/read/status.js";
|
|
8
6
|
import type { AuditReport } from "../protocol/audit.js";
|
|
9
|
-
import {
|
|
10
|
-
import type {
|
|
11
|
-
import { type
|
|
12
|
-
import type { FactKind } from "../core/facts/types.js";
|
|
13
|
-
import { type Dispatch } from "../dispatch/index.js";
|
|
14
|
-
import { type SettlementReport } from "../settlement/settle.js";
|
|
15
|
-
import { type TaskId } from "../task/identity.js";
|
|
16
|
-
import { Repo, type ReconcileInput } from "./repo.js";
|
|
7
|
+
import type { IntegrationConflictMaterialized, VerificationReuse } from "../protocol/deliver.js";
|
|
8
|
+
import type { TaskId } from "../task/identity.js";
|
|
9
|
+
import { type ReconcileInput } from "./repo.js";
|
|
17
10
|
import { type AuditInput } from "./audit.js";
|
|
18
|
-
import { Delivery
|
|
11
|
+
import { Delivery } from "./delivery.js";
|
|
19
12
|
import { type ContinuationReport } from "./continuation.js";
|
|
20
13
|
import { type MutationResult } from "./mutation.js";
|
|
14
|
+
import type { AbandonInput, AmendInput, AmendResult, ArcInput, BindInput, BindResult, ContractListInput, ContractObservationInput, DeliverInput, ForkBindInput, KeiyakuOfInput, MarkdownBindInput, ReconcileReport, ReviewInput, ContractHistory, ContractHistoryEvent, Fact, Lag, TopologyEffect } from "./contract-types.js";
|
|
15
|
+
import { type AttestationVerdict as OperationAttestationVerdict, type Review as OperationReview } from "./contract-operations.js";
|
|
21
16
|
import { KeiyakuRetry, type KeiyakuRefusal, type KeiyakuRetryReason } from "./refusal.js";
|
|
22
|
-
export { KeiyakuRefused
|
|
23
|
-
export { KeiyakuRetry };
|
|
24
|
-
export
|
|
17
|
+
export { KeiyakuRefused } from "./refusal.js";
|
|
18
|
+
export { KeiyakuRetry, type KeiyakuRefusal, type KeiyakuRetryReason };
|
|
19
|
+
export { executeForwardedDeliver, executeForwardedReview } from "./contract-operations.js";
|
|
25
20
|
export { gatesFrom, requireBranchesToBeUpToDateFrom, SettingsError } from "./configuration.js";
|
|
26
|
-
export type { Gate, GatesFromInput, HookCommand, RequireBranchesToBeUpToDateFromInput, WorktreeHooks } from "./configuration.js";
|
|
27
|
-
export type {
|
|
28
|
-
export type {
|
|
29
|
-
export type { RegionOverlap };
|
|
30
|
-
export type Fact = JournalEntry;
|
|
31
|
-
export type ContractHistoryEvent = Readonly<{
|
|
32
|
-
source: "journal";
|
|
33
|
-
fact: Fact;
|
|
34
|
-
}> | Readonly<{
|
|
35
|
-
source: "dispatch";
|
|
36
|
-
dispatch: Dispatch;
|
|
37
|
-
}>;
|
|
38
|
-
export type ContractHistory = Readonly<{
|
|
39
|
-
id: ContractId;
|
|
40
|
-
state: SnapshotId;
|
|
41
|
-
events: readonly ContractHistoryEvent[];
|
|
42
|
-
}>;
|
|
21
|
+
export type { Gate, GatesFromInput, HookCommand, RequireBranchesToBeUpToDateFromInput, WorktreeHooks, } from "./configuration.js";
|
|
22
|
+
export type { AbandonInput, AmendInput, AmendResult, ArcInput, AuditInput, AuditReport, ChangeId, ContinuationReport, ContractBoard, ContractDisposition, ContractGateCurrent, ContractGateReport, ContractAfterEdge, ContractId, ContractHistory, ContractHistoryEvent, ContractDependent, ContractObservation, ContractPhase, ContractRow, ContractState, ContractWorkspaceObservation, BindInput, BindResult, ContractListInput, ContractObservationInput, DeliverInput, ForkBindInput, KeiyakuOfInput, MarkdownBindInput, ReconcileReport, ReviewInput, DeliveryPreparationRefusal, Fact, FactKind, IntegrationConflictMaterialized, Lag, MutationResult, PlacementStop, RegionOverlap, SnapshotId, TaskId, TopologyEffect, VerificationReuse, VerificationStop, };
|
|
23
|
+
export type { AfterEndpointObservation };
|
|
43
24
|
export type ActorId = string;
|
|
44
|
-
export type AttestationVerdict =
|
|
45
|
-
export type Review =
|
|
46
|
-
continuation?: ContinuationReport;
|
|
47
|
-
}>;
|
|
48
|
-
export type { PlacementStop, VerificationReuse, VerificationStop, IntegrationConflictMaterialized };
|
|
49
|
-
export type { ContinuationReport };
|
|
50
|
-
export type TopologyEffect = ProtocolReconcileReport["effects"][number] | ContractFileEffect;
|
|
51
|
-
export type Lag = ProtocolReconcileReport["lag"][number] | ContractFileLag;
|
|
52
|
-
export type { MutationResult };
|
|
25
|
+
export type AttestationVerdict = OperationAttestationVerdict;
|
|
26
|
+
export type Review = OperationReview;
|
|
53
27
|
export { Delivery };
|
|
54
|
-
export type BindResult = Readonly<Omit<MutationResult<Keiyaku>, "value"> & {
|
|
55
|
-
keiyaku: Keiyaku;
|
|
56
|
-
} & RegionObservation>;
|
|
57
|
-
export type AmendResult = Readonly<MutationResult<void> & RegionObservation & {
|
|
58
|
-
documentDiff: string;
|
|
59
|
-
}>;
|
|
60
|
-
export type ReconcileReport = Readonly<{
|
|
61
|
-
effects: readonly TopologyEffect[];
|
|
62
|
-
lag: readonly Lag[];
|
|
63
|
-
settlement: SettlementReport;
|
|
64
|
-
}>;
|
|
65
28
|
export type { SettlementAction, SettlementLag, SettlementReport } from "../settlement/settle.js";
|
|
66
|
-
export type BindInput = Readonly<{
|
|
67
|
-
repo: Repo;
|
|
68
|
-
markdown: string;
|
|
69
|
-
task?: TaskId;
|
|
70
|
-
target?: string;
|
|
71
|
-
workspace?: "worktree" | "here";
|
|
72
|
-
actor?: ActorId;
|
|
73
|
-
after?: readonly ContractId[];
|
|
74
|
-
gates?: readonly Gate[];
|
|
75
|
-
hooks?: WorktreeHooks;
|
|
76
|
-
}>;
|
|
77
|
-
export type AmendInput = Readonly<{
|
|
78
|
-
markdown?: string;
|
|
79
|
-
actor?: ActorId;
|
|
80
|
-
after?: readonly ContractId[];
|
|
81
|
-
gates?: readonly Gate[];
|
|
82
|
-
hooks?: WorktreeHooks;
|
|
83
|
-
}>;
|
|
84
|
-
export type ArcInput = Readonly<{
|
|
85
|
-
markdown: string;
|
|
86
|
-
actor?: ActorId;
|
|
87
|
-
hooks?: WorktreeHooks;
|
|
88
|
-
}>;
|
|
89
|
-
type HookOptions = Readonly<{
|
|
90
|
-
hooks?: WorktreeHooks;
|
|
91
|
-
}>;
|
|
92
|
-
type ActorOptions = Readonly<{
|
|
93
|
-
actor?: ActorId;
|
|
94
|
-
}> & HookOptions;
|
|
95
|
-
export type ContractListInput = Readonly<{
|
|
96
|
-
repo: Repo;
|
|
97
|
-
}>;
|
|
98
|
-
export type ContractObservationInput = Readonly<{
|
|
99
|
-
repo: Repo;
|
|
100
|
-
id: ContractId;
|
|
101
|
-
}>;
|
|
102
|
-
export type KeiyakuOfInput = Readonly<{
|
|
103
|
-
repo: Repo;
|
|
104
|
-
id: ContractId;
|
|
105
|
-
}>;
|
|
106
|
-
export type ReviewInput = ActorOptions & Readonly<{
|
|
107
|
-
verdict: AttestationVerdict;
|
|
108
|
-
summary?: string;
|
|
109
|
-
}>;
|
|
110
|
-
export type AbandonInput = ActorOptions & Readonly<{
|
|
111
|
-
note?: string;
|
|
112
|
-
}>;
|
|
113
|
-
export type DeliverInput = ActorOptions & Readonly<{
|
|
114
|
-
message?: string;
|
|
115
|
-
requireBranchesToBeUpToDate?: boolean;
|
|
116
|
-
includeDirty?: boolean;
|
|
117
|
-
materializeConflict?: boolean;
|
|
118
|
-
signal?: AbortSignal;
|
|
119
|
-
}>;
|
|
120
|
-
type ForwardedDeliveryReceipt = Readonly<{
|
|
121
|
-
kind: "accepted";
|
|
122
|
-
result: MutationResult<DeliveryValue>;
|
|
123
|
-
}> | Readonly<{
|
|
124
|
-
kind: "refused";
|
|
125
|
-
refusal: KeiyakuRefusal;
|
|
126
|
-
}> | Readonly<{
|
|
127
|
-
kind: "retry";
|
|
128
|
-
reason: KeiyakuRetryReason;
|
|
129
|
-
}> | IntegrationConflictMaterialized;
|
|
130
|
-
type ForwardedReviewReceipt = Readonly<{
|
|
131
|
-
kind: "accepted";
|
|
132
|
-
result: MutationResult<Review>;
|
|
133
|
-
}> | Readonly<{
|
|
134
|
-
kind: "refused";
|
|
135
|
-
refusal: KeiyakuRefusal;
|
|
136
|
-
}> | Readonly<{
|
|
137
|
-
kind: "retry";
|
|
138
|
-
reason: KeiyakuRetryReason;
|
|
139
|
-
}>;
|
|
140
|
-
export type { AuditInput };
|
|
141
|
-
export declare function executeForwardedDeliver(input: Readonly<{
|
|
142
|
-
repo: Repo;
|
|
143
|
-
contractId: string;
|
|
144
|
-
requester: string;
|
|
145
|
-
message?: string;
|
|
146
|
-
includeDirty: boolean;
|
|
147
|
-
materializeConflict: boolean;
|
|
148
|
-
requireBranchesToBeUpToDate: boolean;
|
|
149
|
-
hooks: WorktreeHooks;
|
|
150
|
-
signal?: AbortSignal;
|
|
151
|
-
}>): Promise<Readonly<{
|
|
152
|
-
result: ForwardedDeliveryReceipt;
|
|
153
|
-
deliveryFactId?: string;
|
|
154
|
-
}>>;
|
|
155
|
-
export declare function executeForwardedReview(input: Readonly<{
|
|
156
|
-
repo: Repo;
|
|
157
|
-
contractId: string;
|
|
158
|
-
requester: string;
|
|
159
|
-
verdict: AttestationVerdict;
|
|
160
|
-
summary?: string;
|
|
161
|
-
hooks: WorktreeHooks;
|
|
162
|
-
}>): Promise<Readonly<{
|
|
163
|
-
result: ForwardedReviewReceipt;
|
|
164
|
-
reviewFactId?: string;
|
|
165
|
-
}>>;
|
|
166
29
|
export declare class KeiyakuHandle {
|
|
167
30
|
private readonly id;
|
|
168
31
|
private readonly scope;
|
|
@@ -190,3 +53,5 @@ export declare function keiyakuOf(input: KeiyakuOfInput): Keiyaku;
|
|
|
190
53
|
export declare function listKeiyaku(input: ContractListInput): Promise<ContractBoard>;
|
|
191
54
|
export declare function observeKeiyaku(input: ContractObservationInput): Promise<ContractObservation>;
|
|
192
55
|
export declare function bindKeiyaku(input: BindInput): Promise<BindResult>;
|
|
56
|
+
/** Internal CLI composition; not exported from the package root. */
|
|
57
|
+
export declare function bindFromCli(input: BindInput): Promise<BindResult>;
|