@astrosheep/keiyaku 4.6.31 → 4.6.32
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 +34 -17
- package/build/plugins/claude/skills/keiyaku-akuma/SKILL.md +16 -11
- package/build/plugins/claude/skills/keiyaku-babysit/SKILL.md +5 -3
- package/build/plugins/claude/skills/keiyaku-bind/SKILL.md +4 -3
- package/build/plugins/claude/skills/keiyaku-debt/SKILL.md +17 -17
- package/build/plugins/claude/skills/keiyaku-workflow/SKILL.md +4 -3
- package/build/plugins/codex/skills/keiyaku-akuma/SKILL.md +16 -11
- package/build/plugins/codex/skills/keiyaku-babysit/SKILL.md +5 -3
- package/build/plugins/codex/skills/keiyaku-bind/SKILL.md +4 -3
- package/build/plugins/codex/skills/keiyaku-debt/SKILL.md +17 -17
- package/build/plugins/codex/skills/keiyaku-workflow/SKILL.md +4 -3
- package/build/plugins/opencode/skills/keiyaku-akuma/SKILL.md +16 -11
- package/build/plugins/opencode/skills/keiyaku-babysit/SKILL.md +5 -3
- package/build/plugins/opencode/skills/keiyaku-bind/SKILL.md +4 -3
- package/build/plugins/opencode/skills/keiyaku-debt/SKILL.md +17 -17
- package/build/plugins/opencode/skills/keiyaku-workflow/SKILL.md +4 -3
- package/build/plugins/pi/README.md +16 -18
- package/build/plugins/pi/akuma-tools.ts +31 -38
- package/build/plugins/pi/keiyaku.ts +15 -4
- package/build/skills/keiyaku-akuma/SKILL.md +16 -11
- package/build/skills/keiyaku-babysit/SKILL.md +5 -3
- package/build/skills/keiyaku-bind/SKILL.md +4 -3
- package/build/skills/keiyaku-debt/SKILL.md +17 -17
- package/build/skills/keiyaku-workflow/SKILL.md +4 -3
- package/build/src/akuma/akuma-call.d.ts +3 -5
- package/build/src/akuma/akuma-call.js +7 -10
- package/build/src/akuma/akuma-errors.d.ts +7 -4
- package/build/src/akuma/akuma-errors.js +16 -12
- package/build/src/akuma/akuma-instance.d.ts +39 -303
- package/build/src/akuma/akuma-instance.js +48 -48
- package/build/src/akuma/akuma-observe.d.ts +5 -4
- package/build/src/akuma/akuma-observe.js +1 -7
- package/build/src/akuma/akuma-owner.d.ts +14 -6
- package/build/src/akuma/akuma-owner.js +33 -27
- package/build/src/akuma/akuma-selection-execution.d.ts +22 -19
- package/build/src/akuma/akuma-selection-execution.js +71 -124
- package/build/src/akuma/akuma-wait.d.ts +3 -3
- package/build/src/akuma/akuma.d.ts +47 -384
- package/build/src/akuma/akuma.js +8 -58
- package/build/src/akuma/archetype.d.ts +16 -19
- package/build/src/akuma/archetype.js +48 -49
- package/build/src/akuma/body.js +31 -26
- package/build/src/akuma/call-initial-tell.d.ts +4 -1
- package/build/src/akuma/call-initial-tell.js +9 -1
- package/build/src/akuma/call-input.d.ts +8 -1
- package/build/src/akuma/call-input.js +27 -18
- package/build/src/akuma/caller.js +2 -1
- package/build/src/akuma/detached-body.js +1 -1
- package/build/src/akuma/heart/facts.d.ts +5 -4
- package/build/src/akuma/heart/facts.js +5 -5
- package/build/src/akuma/heart/soul.js +20 -4
- package/build/src/akuma/identity.d.ts +1 -1
- package/build/src/akuma/identity.js +9 -4
- package/build/src/akuma/index.d.ts +6 -7
- package/build/src/akuma/index.js +2 -3
- package/build/src/akuma/projection.d.ts +3 -0
- package/build/src/akuma/provider-recipe.js +3 -2
- package/build/src/akuma/providers/acp/config.js +11 -10
- package/build/src/akuma/providers/acp/index.js +2 -1
- package/build/src/akuma/providers/codex-app-server/index.js +7 -1
- package/build/src/akuma/providers/grok-build/index.js +2 -1
- package/build/src/akuma/providers/index.d.ts +0 -1
- package/build/src/akuma/providers/index.js +0 -8
- package/build/src/akuma/providers/paseo/index.js +7 -4
- package/build/src/akuma/providers/pi/index.js +4 -3
- package/build/src/akuma/publication.d.ts +1 -2
- package/build/src/akuma/publication.js +16 -14
- package/build/src/akuma/schema.d.ts +3 -49
- package/build/src/akuma/schema.js +6 -147
- package/build/src/akuma/selection-observation.d.ts +281 -240
- package/build/src/akuma/selection-observation.js +122 -68
- package/build/src/akuma/status-projection.d.ts +49 -285
- package/build/src/akuma/status-projection.js +178 -138
- package/build/src/body/amend.js +2 -1
- package/build/src/body/arc.js +3 -2
- package/build/src/body/criteria.js +4 -3
- package/build/src/body/decode.js +2 -1
- package/build/src/body/envelope.js +2 -1
- package/build/src/body/region.d.ts +1 -3
- package/build/src/body/region.js +3 -8
- package/build/src/body-host.d.ts +4 -11
- package/build/src/body-host.js +5 -4
- package/build/src/bounded-list.js +2 -1
- package/build/src/cli/commands/akuma-grammar.d.ts +109 -66
- package/build/src/cli/commands/akuma-grammar.js +75 -95
- package/build/src/cli/commands/akuma.d.ts +8 -3
- package/build/src/cli/commands/akuma.js +63 -122
- package/build/src/cli/commands/contract-grammar.d.ts +3 -135
- package/build/src/cli/commands/contract-grammar.js +125 -218
- package/build/src/cli/commands/contract-help.d.ts +24 -21
- package/build/src/cli/commands/contract-help.js +43 -35
- package/build/src/cli/commands/contract.d.ts +6 -18
- package/build/src/cli/commands/contract.js +65 -272
- package/build/src/cli/commands/debt-grammar.d.ts +2 -4
- package/build/src/cli/commands/debt-grammar.js +22 -190
- package/build/src/cli/commands/debt.js +10 -87
- package/build/src/cli/commands/report.d.ts +2 -4
- package/build/src/cli/coordinates.d.ts +1 -1
- package/build/src/cli/coordinates.js +1 -1
- package/build/src/cli/main.js +9 -3
- package/build/src/cli/parse.d.ts +80 -3
- package/build/src/cli/parse.js +76 -16
- package/build/src/cli/render/akuma-activity.d.ts +19 -24
- package/build/src/cli/render/akuma-activity.js +164 -259
- package/build/src/cli/render/akuma.d.ts +3 -3
- package/build/src/cli/render/akuma.js +36 -43
- package/build/src/cli/render/catalog.d.ts +2 -5
- package/build/src/cli/render/catalog.js +2 -33
- package/build/src/cli/render/contract-history.js +1 -2
- package/build/src/cli/render/contract-observation.d.ts +0 -7
- package/build/src/cli/render/contract-observation.js +0 -3
- package/build/src/cli/render/contract.d.ts +7 -9
- package/build/src/cli/render/contract.js +35 -64
- package/build/src/cli/render/debt.d.ts +3 -11
- package/build/src/cli/render/debt.js +17 -88
- package/build/src/cli/render/delivery-preview.js +4 -4
- package/build/src/cli/render/kanshi-akuma.d.ts +5 -3
- package/build/src/cli/render/kanshi-akuma.js +22 -18
- package/build/src/cli/render/kanshi.d.ts +1 -3
- package/build/src/cli/render/kanshi.js +16 -39
- package/build/src/cli/render/receipt.d.ts +21 -12
- package/build/src/cli/render/receipt.js +49 -44
- package/build/src/cli/render/refusal.d.ts +4 -3
- package/build/src/cli/render/refusal.js +15 -17
- package/build/src/cli/render/settings.d.ts +1 -1
- package/build/src/cli/render/terminal.d.ts +9 -8
- package/build/src/cli/render/terminal.js +48 -32
- package/build/src/cli/render/verbs.d.ts +3 -1
- package/build/src/cli/render/verbs.js +74 -116
- package/build/src/cli/runtime.js +66 -65
- package/build/src/cli/streams.d.ts +2 -9
- package/build/src/cli/streams.js +8 -1
- package/build/src/cli/usage.d.ts +2 -1
- package/build/src/cli/usage.js +3 -2
- package/build/src/contract-worktree.js +2 -10
- package/build/src/core/facts/codec.js +9 -23
- package/build/src/core/facts/errors.d.ts +2 -1
- package/build/src/core/facts/errors.js +3 -3
- package/build/src/core/facts/types.d.ts +2 -13
- package/build/src/core/facts/types.js +1 -6
- package/build/src/core/verbs/abandon.d.ts +1 -2
- package/build/src/core/verbs/amend.d.ts +1 -2
- package/build/src/core/verbs/arc.d.ts +1 -2
- package/build/src/core/verbs/attestation.d.ts +1 -2
- package/build/src/core/verbs/bind.d.ts +1 -2
- package/build/src/core/verbs/deliver.d.ts +1 -2
- package/build/src/core/verbs/placement.d.ts +1 -2
- package/build/src/core/verbs/reintegrate.d.ts +1 -2
- package/build/src/debt/board.d.ts +14 -94
- package/build/src/debt/board.js +25 -160
- package/build/src/debt/catalog.d.ts +0 -2
- package/build/src/debt/catalog.js +1 -22
- package/build/src/debt/document.d.ts +8 -11
- package/build/src/debt/document.js +19 -62
- package/build/src/debt/identity.d.ts +2 -14
- package/build/src/debt/identity.js +19 -49
- package/build/src/debt/index.d.ts +81 -219
- package/build/src/debt/index.js +61 -110
- package/build/src/debt/input.d.ts +19 -5
- package/build/src/debt/input.js +51 -177
- package/build/src/debt/lifecycle-operations.d.ts +1 -3
- package/build/src/debt/lifecycle-operations.js +1 -73
- package/build/src/debt/operation-types.d.ts +24 -128
- package/build/src/debt/operation-types.js +6 -62
- package/build/src/debt/operations.d.ts +8 -17
- package/build/src/debt/operations.js +58 -154
- package/build/src/debt/store.d.ts +0 -2
- package/build/src/debt/store.js +32 -87
- package/build/src/errors.d.ts +28 -0
- package/build/src/errors.js +26 -0
- package/build/src/git/hooks.d.ts +1 -1
- package/build/src/git/observe.d.ts +3 -0
- package/build/src/git/observe.js +19 -5
- package/build/src/git/reconcile.d.ts +3 -16
- package/build/src/git/reconcile.js +0 -18
- package/build/src/git/repository.d.ts +2 -1
- package/build/src/git/repository.js +3 -3
- package/build/src/git/target-placement.d.ts +4 -4
- package/build/src/git/target.d.ts +2 -2
- package/build/src/git/tender.d.ts +1 -2
- package/build/src/git/tender.js +5 -12
- package/build/src/identity/coordinates.d.ts +1 -1
- package/build/src/identity/coordinates.js +3 -2
- package/build/src/identity/normalize.js +2 -1
- package/build/src/identity/selector.js +4 -3
- package/build/src/index.d.ts +34 -57
- package/build/src/index.js +11 -36
- package/build/src/kanshi/counts.d.ts +3 -8
- package/build/src/kanshi/counts.js +6 -14
- package/build/src/kanshi/index.d.ts +22 -7
- package/build/src/kanshi/index.js +30 -4
- package/build/src/kanshi/read.d.ts +81 -270
- package/build/src/kanshi/read.js +39 -199
- package/build/src/kanshi/report.d.ts +340 -1619
- package/build/src/kanshi/report.js +19 -31
- package/build/src/library/address.d.ts +11 -11
- package/build/src/library/address.js +34 -27
- package/build/src/library/akuma-creation.d.ts +210 -79
- package/build/src/library/akuma-creation.js +201 -242
- package/build/src/library/akumas.d.ts +24 -5
- package/build/src/library/akumas.js +96 -29
- package/build/src/library/bind.d.ts +7 -10
- package/build/src/library/bind.js +2 -8
- package/build/src/library/continuation.d.ts +141 -231
- package/build/src/library/continuation.js +22 -31
- package/build/src/library/contract-address.d.ts +6 -9
- package/build/src/library/contract-address.js +11 -16
- package/build/src/library/contract-composition.d.ts +2 -3
- package/build/src/library/contract-composition.js +12 -19
- package/build/src/library/contract-creation.js +33 -34
- package/build/src/library/contract-outcomes.d.ts +1278 -806
- package/build/src/library/contract-outcomes.js +11 -37
- package/build/src/library/contract-settings.d.ts +1 -2
- package/build/src/library/contract-settings.js +5 -7
- package/build/src/library/contract-types.d.ts +42 -67
- package/build/src/library/contract-types.js +15 -56
- package/build/src/library/contract-wait.d.ts +40 -3
- package/build/src/library/contract-wait.js +28 -21
- package/build/src/library/delivery.d.ts +366 -389
- package/build/src/library/delivery.js +5 -25
- package/build/src/library/input.d.ts +31 -5
- package/build/src/library/input.js +40 -40
- package/build/src/library/invocation.d.ts +13 -11
- package/build/src/library/invocation.js +69 -58
- package/build/src/library/kei.d.ts +16 -8
- package/build/src/library/kei.js +459 -19
- package/build/src/library/keiyaku-attribution.d.ts +0 -8
- package/build/src/library/keiyaku-attribution.js +0 -11
- package/build/src/library/keiyaku-classify.d.ts +2 -2
- package/build/src/library/keiyaku-classify.js +40 -59
- package/build/src/library/keiyaku-coordinates.d.ts +3 -8
- package/build/src/library/keiyaku-coordinates.js +6 -26
- package/build/src/library/keiyaku-debt.d.ts +21 -93
- package/build/src/library/keiyaku-debt.js +8 -157
- package/build/src/library/keiyaku-identity.js +5 -4
- package/build/src/library/keiyaku-verbs.d.ts +4004 -3885
- package/build/src/library/keiyaku-verbs.js +309 -271
- package/build/src/library/keiyaku.d.ts +30 -860
- package/build/src/library/keiyaku.js +169 -256
- package/build/src/library/nuke.d.ts +4 -2
- package/build/src/library/nuke.js +5 -1
- package/build/src/library/outcome.d.ts +424 -307
- package/build/src/library/outcome.js +167 -362
- package/build/src/library/reconcile.d.ts +331 -143
- package/build/src/library/reconcile.js +38 -72
- package/build/src/library/refusal.d.ts +20 -28
- package/build/src/library/refusal.js +1 -11
- package/build/src/library/repo.js +4 -3
- package/build/src/library/selection.d.ts +32 -21
- package/build/src/library/selection.js +63 -87
- package/build/src/mcp/adapter.d.ts +6 -0
- package/build/src/mcp/adapter.js +177 -42
- package/build/src/mcp/help.d.ts +1 -1
- package/build/src/mcp/help.js +12 -7
- package/build/src/mcp/output.d.ts +385 -0
- package/build/src/mcp/output.js +193 -0
- package/build/src/plugin/public.d.ts +4 -0
- package/build/src/plugin/runtime.d.ts +1 -1
- package/build/src/plugin/runtime.js +2 -2
- package/build/src/protocol/amend.d.ts +1 -1
- package/build/src/protocol/amend.js +2 -2
- package/build/src/protocol/bind.d.ts +5 -7
- package/build/src/protocol/bind.js +3 -3
- package/build/src/protocol/completion.d.ts +158 -195
- package/build/src/protocol/completion.js +55 -19
- package/build/src/protocol/deliver.d.ts +11 -6
- package/build/src/protocol/deliver.js +30 -30
- package/build/src/protocol/delivery-preview.d.ts +13 -11
- package/build/src/protocol/delivery-preview.js +2 -2
- package/build/src/protocol/execution-observation.d.ts +5 -13
- package/build/src/protocol/intent.d.ts +6 -9
- package/build/src/protocol/intent.js +18 -31
- package/build/src/protocol/operations.d.ts +48 -53
- package/build/src/protocol/operations.js +16 -25
- package/build/src/protocol/outcome.d.ts +3 -1
- package/build/src/protocol/placement.d.ts +1 -2
- package/build/src/protocol/placement.js +1 -1
- package/build/src/protocol/progress.d.ts +1 -0
- package/build/src/protocol/read/status.d.ts +29 -112
- package/build/src/protocol/read/status.js +52 -78
- package/build/src/protocol/reintegrate.d.ts +1 -2
- package/build/src/protocol/reintegrate.js +0 -1
- package/build/src/protocol/result-leaves.d.ts +11 -32
- package/build/src/protocol/result-leaves.js +18 -57
- package/build/src/protocol/result-reasons.d.ts +6 -6
- package/build/src/protocol/review.js +0 -1
- package/build/src/protocol/verify.d.ts +192 -146
- package/build/src/protocol/verify.js +60 -47
- package/build/src/runtime/proc/windows-launch.exe +0 -0
- package/build/src/settings.d.ts +8 -9
- package/build/src/settings.js +16 -13
- package/build/src/settlement/holder.js +2 -2
- package/build/src/settlement/settle.d.ts +0 -6
- package/build/src/settlement/settle.js +0 -4
- package/build/src/verification/declaration.d.ts +3 -6
- package/build/src/verification/declaration.js +3 -5
- package/build/src/verification/observation.d.ts +2 -2
- package/build/src/world.d.ts +3 -2
- package/build/src/world.js +5 -6
- package/package.json +1 -1
- package/plugins/paseo/plugin/index.server.ts +1 -1
- package/plugins/paseo/plugin/server/attach.ts +74 -67
- package/plugins/paseo/plugin/server/keiyaku.ts +80 -14
- package/plugins/paseo/plugin/server/message.ts +2 -1
- package/plugins/paseo/plugin/server/mirror-identity.ts +6 -4
- package/plugins/paseo/plugin/server/sdk.ts +9 -11
- package/plugins/paseo/plugin/server/transport.ts +24 -1
- package/plugins/pi/README.md +16 -18
- package/plugins/pi/akuma-tools.ts +31 -38
- package/plugins/pi/keiyaku.ts +15 -4
- package/skills/keiyaku-akuma/SKILL.md +16 -11
- package/skills/keiyaku-babysit/SKILL.md +5 -3
- package/skills/keiyaku-bind/SKILL.md +4 -3
- package/skills/keiyaku-debt/SKILL.md +17 -17
- package/skills/keiyaku-workflow/SKILL.md +4 -3
- package/build/src/akuma/providers/codex-app-server/configuration.d.ts +0 -5
- package/build/src/akuma/providers/codex-app-server/configuration.js +0 -72
- package/build/src/cli/commands/debt-query.d.ts +0 -5
- package/build/src/cli/commands/debt-query.js +0 -194
- package/build/src/cli/render/akuma-tool-command.d.ts +0 -6
- package/build/src/cli/render/akuma-tool-command.js +0 -143
- package/build/src/cli/render/akuma-tool.d.ts +0 -29
- package/build/src/cli/render/akuma-tool.js +0 -225
- package/build/src/debt/context.d.ts +0 -28
- package/build/src/debt/context.js +0 -102
- package/build/src/debt/created-observation.d.ts +0 -26
- package/build/src/debt/created-observation.js +0 -38
- package/build/src/debt/query.d.ts +0 -80
- package/build/src/debt/query.js +0 -283
- package/build/src/library/contract-execution.d.ts +0 -28
- package/build/src/library/contract-execution.js +0 -506
- package/build/src/library/keiyaku-policy.d.ts +0 -27
- package/build/src/library/keiyaku-policy.js +0 -44
- package/build/src/library/keiyaku-status.d.ts +0 -1487
- package/build/src/library/keiyaku-status.js +0 -92
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import type { DecideInput, OfferDecision } from "../core/decide.js";
|
|
3
|
-
import type {
|
|
3
|
+
import type { ContractId, ContractState, DeliverData, DocumentKey } from "../core/facts/types.js";
|
|
4
4
|
export { deliverDataSchema, gateSchema, verdictSchema, candidateContentChangeSchema, gateCurrentSchema, requirementIdSchema, requirementReportSchema, gateReportSchema, } from "./result-leaves.js";
|
|
5
5
|
import type { IntegrationPreparationRefusal } from "../git/integration.js";
|
|
6
6
|
import type { GitRepository } from "../git/process.js";
|
|
@@ -16,21 +16,21 @@ import { type AcceptedProtocolStep, type IntentOutcome as ProtocolIntentOutcome
|
|
|
16
16
|
import type { PlacementProtocolResult } from "./placement.js";
|
|
17
17
|
import type { ProtocolProgress } from "./progress.js";
|
|
18
18
|
import { type ContractDocumentProjection } from "./read/documents.js";
|
|
19
|
-
import { type
|
|
19
|
+
import { type ContractMembership, type ContractCatalogue, type ContractObservation } from "./read/status.js";
|
|
20
20
|
import type { ProtocolTerminal } from "./run.js";
|
|
21
21
|
export { changeIdSchema, contractIdSchema, snapshotIdSchema } from "../git/identity.js";
|
|
22
22
|
export { entryUlidSchema } from "./attempt.js";
|
|
23
23
|
export declare const activeContractRefusalSchema: z.ZodReadonly<z.ZodObject<{
|
|
24
24
|
kind: z.ZodEnum<{
|
|
25
|
-
terminal: "terminal";
|
|
26
25
|
"contract-missing": "contract-missing";
|
|
26
|
+
terminal: "terminal";
|
|
27
27
|
}>;
|
|
28
28
|
}, z.core.$strict>>;
|
|
29
29
|
export declare const bindRefusalSchema: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
30
30
|
kind: z.ZodEnum<{
|
|
31
|
-
"unknown-prerequisite": "unknown-prerequisite";
|
|
32
31
|
"contract-exists": "contract-exists";
|
|
33
32
|
"invalid-after": "invalid-after";
|
|
33
|
+
"unknown-prerequisite": "unknown-prerequisite";
|
|
34
34
|
}>;
|
|
35
35
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
36
36
|
kind: z.ZodEnum<{
|
|
@@ -41,17 +41,17 @@ export declare const bindRefusalSchema: z.ZodUnion<readonly [z.ZodReadonly<z.Zod
|
|
|
41
41
|
}, z.core.$strict>>]>;
|
|
42
42
|
export declare const amendRefusalSchema: z.ZodReadonly<z.ZodObject<{
|
|
43
43
|
kind: z.ZodEnum<{
|
|
44
|
-
terminal: "terminal";
|
|
45
44
|
"contract-missing": "contract-missing";
|
|
46
|
-
|
|
45
|
+
terminal: "terminal";
|
|
47
46
|
"unknown-prerequisite": "unknown-prerequisite";
|
|
47
|
+
"terms-moved": "terms-moved";
|
|
48
48
|
"cyclic-prerequisite": "cyclic-prerequisite";
|
|
49
49
|
}>;
|
|
50
50
|
}, z.core.$strict>>;
|
|
51
51
|
export declare const deliverRefusalSchema: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
52
52
|
kind: z.ZodEnum<{
|
|
53
|
-
terminal: "terminal";
|
|
54
53
|
"contract-missing": "contract-missing";
|
|
54
|
+
terminal: "terminal";
|
|
55
55
|
}>;
|
|
56
56
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
57
57
|
kind: z.ZodEnum<{
|
|
@@ -63,12 +63,10 @@ export declare const deliverRefusalSchema: z.ZodUnion<readonly [z.ZodReadonly<z.
|
|
|
63
63
|
export declare const verificationDeclarationRefusalSchema: z.ZodReadonly<z.ZodObject<{
|
|
64
64
|
kind: z.ZodLiteral<"verification-declaration-invalid">;
|
|
65
65
|
}, z.core.$strict>>;
|
|
66
|
-
export declare const verifyRefusalSchema: z.
|
|
67
|
-
kind: z.ZodLiteral<"verification-not-selected">;
|
|
68
|
-
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
66
|
+
export declare const verifyRefusalSchema: z.ZodReadonly<z.ZodObject<{
|
|
69
67
|
kind: z.ZodLiteral<"verification-index-out-of-range">;
|
|
70
68
|
total: z.ZodNumber;
|
|
71
|
-
}, z.core.$strict
|
|
69
|
+
}, z.core.$strict>>;
|
|
72
70
|
export declare const placementRefusalSchema: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
73
71
|
kind: z.ZodEnum<{
|
|
74
72
|
"target-contract-missing": "target-contract-missing";
|
|
@@ -79,24 +77,24 @@ export declare const placementRefusalSchema: z.ZodUnion<readonly [z.ZodReadonly<
|
|
|
79
77
|
kind: z.ZodLiteral<"target-workspace-unavailable">;
|
|
80
78
|
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
|
|
81
79
|
reason: z.ZodEnum<{
|
|
82
|
-
missing: "missing";
|
|
83
|
-
replaced: "replaced";
|
|
84
80
|
unappointed: "unappointed";
|
|
81
|
+
missing: "missing";
|
|
85
82
|
association: "association";
|
|
83
|
+
replaced: "replaced";
|
|
86
84
|
attached: "attached";
|
|
87
85
|
uncommitted: "uncommitted";
|
|
88
86
|
operation: "operation";
|
|
89
87
|
}>;
|
|
90
88
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
91
89
|
kind: z.ZodEnum<{
|
|
92
|
-
terminal: "terminal";
|
|
93
|
-
"contract-missing": "contract-missing";
|
|
94
90
|
"delivery-missing": "delivery-missing";
|
|
91
|
+
"contract-missing": "contract-missing";
|
|
92
|
+
terminal: "terminal";
|
|
95
93
|
}>;
|
|
96
94
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
97
95
|
kind: z.ZodLiteral<"gates-unsatisfied">;
|
|
98
96
|
unmet: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
99
|
-
gate: z.ZodPipe<z.ZodString, z.ZodTransform<
|
|
97
|
+
gate: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
100
98
|
requirements: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
101
99
|
requirement: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").RequirementId, string>>;
|
|
102
100
|
current: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
@@ -153,9 +151,9 @@ export declare const placementRefusalSchema: z.ZodUnion<readonly [z.ZodReadonly<
|
|
|
153
151
|
unmet: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
154
152
|
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
|
|
155
153
|
state: z.ZodEnum<{
|
|
156
|
-
active: "active";
|
|
157
|
-
abandoned: "abandoned";
|
|
158
154
|
missing: "missing";
|
|
155
|
+
abandoned: "abandoned";
|
|
156
|
+
active: "active";
|
|
159
157
|
}>;
|
|
160
158
|
}, z.core.$strict>>>>;
|
|
161
159
|
}, z.core.$strict>>]>;
|
|
@@ -170,10 +168,10 @@ export declare const deliveryPreparationRefusalSchema: z.ZodUnion<readonly [z.Zo
|
|
|
170
168
|
kind: z.ZodLiteral<"target-workspace-unavailable">;
|
|
171
169
|
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
|
|
172
170
|
reason: z.ZodEnum<{
|
|
173
|
-
missing: "missing";
|
|
174
|
-
replaced: "replaced";
|
|
175
171
|
unappointed: "unappointed";
|
|
172
|
+
missing: "missing";
|
|
176
173
|
association: "association";
|
|
174
|
+
replaced: "replaced";
|
|
177
175
|
attached: "attached";
|
|
178
176
|
uncommitted: "uncommitted";
|
|
179
177
|
operation: "operation";
|
|
@@ -208,22 +206,22 @@ export type MechanicalPreparationRefusal = Exclude<DeliveryPreparationRefusal, {
|
|
|
208
206
|
}>;
|
|
209
207
|
export declare const intentRefusalSchema: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
210
208
|
kind: z.ZodEnum<{
|
|
211
|
-
terminal: "terminal";
|
|
212
209
|
"contract-missing": "contract-missing";
|
|
210
|
+
terminal: "terminal";
|
|
213
211
|
}>;
|
|
214
212
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
215
213
|
kind: z.ZodEnum<{
|
|
216
|
-
terminal: "terminal";
|
|
217
214
|
"contract-missing": "contract-missing";
|
|
218
|
-
|
|
215
|
+
terminal: "terminal";
|
|
219
216
|
"unknown-prerequisite": "unknown-prerequisite";
|
|
217
|
+
"terms-moved": "terms-moved";
|
|
220
218
|
"cyclic-prerequisite": "cyclic-prerequisite";
|
|
221
219
|
}>;
|
|
222
220
|
}, z.core.$strict>>, z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
223
221
|
kind: z.ZodEnum<{
|
|
224
|
-
"unknown-prerequisite": "unknown-prerequisite";
|
|
225
222
|
"contract-exists": "contract-exists";
|
|
226
223
|
"invalid-after": "invalid-after";
|
|
224
|
+
"unknown-prerequisite": "unknown-prerequisite";
|
|
227
225
|
}>;
|
|
228
226
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
229
227
|
kind: z.ZodEnum<{
|
|
@@ -235,8 +233,8 @@ export declare const intentRefusalSchema: z.ZodUnion<readonly [z.ZodReadonly<z.Z
|
|
|
235
233
|
kind: z.ZodLiteral<"fork-source-moved">;
|
|
236
234
|
}, z.core.$strict>>, z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
237
235
|
kind: z.ZodEnum<{
|
|
238
|
-
terminal: "terminal";
|
|
239
236
|
"contract-missing": "contract-missing";
|
|
237
|
+
terminal: "terminal";
|
|
240
238
|
}>;
|
|
241
239
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
242
240
|
kind: z.ZodEnum<{
|
|
@@ -248,10 +246,10 @@ export declare const intentRefusalSchema: z.ZodUnion<readonly [z.ZodReadonly<z.Z
|
|
|
248
246
|
kind: z.ZodLiteral<"target-workspace-unavailable">;
|
|
249
247
|
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
|
|
250
248
|
reason: z.ZodEnum<{
|
|
251
|
-
missing: "missing";
|
|
252
|
-
replaced: "replaced";
|
|
253
249
|
unappointed: "unappointed";
|
|
250
|
+
missing: "missing";
|
|
254
251
|
association: "association";
|
|
252
|
+
replaced: "replaced";
|
|
255
253
|
attached: "attached";
|
|
256
254
|
uncommitted: "uncommitted";
|
|
257
255
|
operation: "operation";
|
|
@@ -293,24 +291,24 @@ export declare const intentRefusalSchema: z.ZodUnion<readonly [z.ZodReadonly<z.Z
|
|
|
293
291
|
kind: z.ZodLiteral<"target-workspace-unavailable">;
|
|
294
292
|
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
|
|
295
293
|
reason: z.ZodEnum<{
|
|
296
|
-
missing: "missing";
|
|
297
|
-
replaced: "replaced";
|
|
298
294
|
unappointed: "unappointed";
|
|
295
|
+
missing: "missing";
|
|
299
296
|
association: "association";
|
|
297
|
+
replaced: "replaced";
|
|
300
298
|
attached: "attached";
|
|
301
299
|
uncommitted: "uncommitted";
|
|
302
300
|
operation: "operation";
|
|
303
301
|
}>;
|
|
304
302
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
305
303
|
kind: z.ZodEnum<{
|
|
306
|
-
terminal: "terminal";
|
|
307
|
-
"contract-missing": "contract-missing";
|
|
308
304
|
"delivery-missing": "delivery-missing";
|
|
305
|
+
"contract-missing": "contract-missing";
|
|
306
|
+
terminal: "terminal";
|
|
309
307
|
}>;
|
|
310
308
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
311
309
|
kind: z.ZodLiteral<"gates-unsatisfied">;
|
|
312
310
|
unmet: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
313
|
-
gate: z.ZodPipe<z.ZodString, z.ZodTransform<
|
|
311
|
+
gate: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
314
312
|
requirements: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
315
313
|
requirement: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").RequirementId, string>>;
|
|
316
314
|
current: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
@@ -367,44 +365,41 @@ export declare const intentRefusalSchema: z.ZodUnion<readonly [z.ZodReadonly<z.Z
|
|
|
367
365
|
unmet: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
368
366
|
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
|
|
369
367
|
state: z.ZodEnum<{
|
|
370
|
-
active: "active";
|
|
371
|
-
abandoned: "abandoned";
|
|
372
368
|
missing: "missing";
|
|
369
|
+
abandoned: "abandoned";
|
|
370
|
+
active: "active";
|
|
373
371
|
}>;
|
|
374
372
|
}, z.core.$strict>>>>;
|
|
375
373
|
}, z.core.$strict>>]>, z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
376
374
|
kind: z.ZodEnum<{
|
|
377
|
-
"unborn-head": "unborn-head";
|
|
378
375
|
"target-missing": "target-missing";
|
|
379
376
|
"invalid-target": "invalid-target";
|
|
377
|
+
"unborn-head": "unborn-head";
|
|
380
378
|
}>;
|
|
381
379
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
382
380
|
kind: z.ZodLiteral<"target-workspace-unavailable">;
|
|
383
381
|
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
|
|
384
382
|
reason: z.ZodEnum<{
|
|
385
|
-
missing: "missing";
|
|
386
|
-
replaced: "replaced";
|
|
387
383
|
unappointed: "unappointed";
|
|
384
|
+
missing: "missing";
|
|
388
385
|
association: "association";
|
|
386
|
+
replaced: "replaced";
|
|
389
387
|
attached: "attached";
|
|
390
388
|
uncommitted: "uncommitted";
|
|
391
389
|
operation: "operation";
|
|
392
390
|
}>;
|
|
393
391
|
}, z.core.$strict>>]>, z.ZodReadonly<z.ZodObject<{
|
|
394
392
|
kind: z.ZodLiteral<"verification-declaration-invalid">;
|
|
395
|
-
}, z.core.$strict>>, z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
396
|
-
kind: z.ZodLiteral<"verification-not-selected">;
|
|
397
393
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
398
394
|
kind: z.ZodLiteral<"verification-index-out-of-range">;
|
|
399
395
|
total: z.ZodNumber;
|
|
400
|
-
}, z.core.$strict>>]
|
|
396
|
+
}, z.core.$strict>>]>;
|
|
401
397
|
type IntentRefusal = z.infer<typeof intentRefusalSchema>;
|
|
402
398
|
export type IntentRetry = ProtocolTerminal;
|
|
403
399
|
export type IntentOutcome<Value, Refusal = IntentRefusal> = ProtocolIntentOutcome<Value, Refusal>;
|
|
404
400
|
type OperationInput = Readonly<{
|
|
405
401
|
scope: RepositoryScope;
|
|
406
402
|
contractId: ContractId;
|
|
407
|
-
actor?: import("../core/facts/types.js").ActorId;
|
|
408
403
|
}>;
|
|
409
404
|
export type MutationOperationInput = OperationInput & Readonly<{
|
|
410
405
|
channel: GitDecodeChannel;
|
|
@@ -413,11 +408,10 @@ export type MutationOperationInput = OperationInput & Readonly<{
|
|
|
413
408
|
/** The decision input of an intent whose verb contributes only its own payload. */
|
|
414
409
|
type VoidIntentDecision<Payload extends object> = Payload & Readonly<{
|
|
415
410
|
contractId: ContractId;
|
|
416
|
-
actor?: ActorId;
|
|
417
411
|
at: string;
|
|
418
412
|
}>;
|
|
419
413
|
/**
|
|
420
|
-
* Observe, decide, and atomically admit one intent over the
|
|
414
|
+
* Observe, decide, and atomically admit one intent over the invocation time, then complete it
|
|
421
415
|
* as a void outcome. The verb contributes only its own decision payload.
|
|
422
416
|
*/
|
|
423
417
|
export declare function admitVoidIntent<Payload extends object, Refusal>(input: MutationOperationInput, payload: Payload, decide: (input: DecideInput<VoidIntentDecision<Payload>>) => OfferDecision<Refusal>, options?: IntentAdmissionOptions<Refusal>): Promise<IntentOutcome<void, Refusal>>;
|
|
@@ -430,8 +424,8 @@ export type DocumentDerivation = Readonly<{
|
|
|
430
424
|
export declare const verificationStopSchema: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
431
425
|
refusal: z.ZodReadonly<z.ZodObject<{
|
|
432
426
|
kind: z.ZodEnum<{
|
|
433
|
-
terminal: "terminal";
|
|
434
427
|
"contract-missing": "contract-missing";
|
|
428
|
+
terminal: "terminal";
|
|
435
429
|
}>;
|
|
436
430
|
}, z.core.$strict>>;
|
|
437
431
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
@@ -452,8 +446,8 @@ export declare const verificationStopSchema: z.ZodUnion<readonly [z.ZodReadonly<
|
|
|
452
446
|
diagnostic: z.ZodExactOptional<z.ZodString>;
|
|
453
447
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
454
448
|
failure: z.ZodEnum<{
|
|
455
|
-
"spawn-error": "spawn-error";
|
|
456
449
|
"candidate-unavailable": "candidate-unavailable";
|
|
450
|
+
"spawn-error": "spawn-error";
|
|
457
451
|
}>;
|
|
458
452
|
diagnostic: z.ZodString;
|
|
459
453
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
@@ -476,24 +470,24 @@ export declare const placementStopSchema: z.ZodUnion<readonly [z.ZodReadonly<z.Z
|
|
|
476
470
|
kind: z.ZodLiteral<"target-workspace-unavailable">;
|
|
477
471
|
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
|
|
478
472
|
reason: z.ZodEnum<{
|
|
479
|
-
missing: "missing";
|
|
480
|
-
replaced: "replaced";
|
|
481
473
|
unappointed: "unappointed";
|
|
474
|
+
missing: "missing";
|
|
482
475
|
association: "association";
|
|
476
|
+
replaced: "replaced";
|
|
483
477
|
attached: "attached";
|
|
484
478
|
uncommitted: "uncommitted";
|
|
485
479
|
operation: "operation";
|
|
486
480
|
}>;
|
|
487
481
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
488
482
|
kind: z.ZodEnum<{
|
|
489
|
-
terminal: "terminal";
|
|
490
|
-
"contract-missing": "contract-missing";
|
|
491
483
|
"delivery-missing": "delivery-missing";
|
|
484
|
+
"contract-missing": "contract-missing";
|
|
485
|
+
terminal: "terminal";
|
|
492
486
|
}>;
|
|
493
487
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
494
488
|
kind: z.ZodLiteral<"gates-unsatisfied">;
|
|
495
489
|
unmet: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
496
|
-
gate: z.ZodPipe<z.ZodString, z.ZodTransform<
|
|
490
|
+
gate: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
497
491
|
requirements: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
498
492
|
requirement: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").RequirementId, string>>;
|
|
499
493
|
current: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
@@ -550,9 +544,9 @@ export declare const placementStopSchema: z.ZodUnion<readonly [z.ZodReadonly<z.Z
|
|
|
550
544
|
unmet: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
551
545
|
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
|
|
552
546
|
state: z.ZodEnum<{
|
|
553
|
-
active: "active";
|
|
554
|
-
abandoned: "abandoned";
|
|
555
547
|
missing: "missing";
|
|
548
|
+
abandoned: "abandoned";
|
|
549
|
+
active: "active";
|
|
556
550
|
}>;
|
|
557
551
|
}, z.core.$strict>>>>;
|
|
558
552
|
}, z.core.$strict>>]>, z.ZodReadonly<z.ZodObject<{
|
|
@@ -637,7 +631,8 @@ export declare function currentBranchOperation(input: Readonly<{
|
|
|
637
631
|
export declare function contractsOperation(input: Readonly<{
|
|
638
632
|
scope: RepositoryScope;
|
|
639
633
|
channel: GitDecodeChannel;
|
|
640
|
-
|
|
634
|
+
ids?: readonly ContractId[];
|
|
635
|
+
}>): Promise<readonly ContractMembership[]>;
|
|
641
636
|
export declare function contractCatalogueOperation(input: Readonly<{
|
|
642
637
|
scope: RepositoryScope;
|
|
643
638
|
channel: GitDecodeChannel;
|
|
@@ -16,7 +16,7 @@ import { admitIntent } from "./intent.js";
|
|
|
16
16
|
import { verificationRuntimeStopSchema } from "./intent.js";
|
|
17
17
|
import { complete } from "./outcome.js";
|
|
18
18
|
import { readDocuments } from "./read/documents.js";
|
|
19
|
-
import {
|
|
19
|
+
import { readContractMembershipAt, readContractCatalogue, readContractObservationAt, } from "./read/status.js";
|
|
20
20
|
import { protocolTerminalSchema } from "./run.js";
|
|
21
21
|
export { changeIdSchema, contractIdSchema, snapshotIdSchema } from "../git/identity.js";
|
|
22
22
|
export { entryUlidSchema } from "./attempt.js";
|
|
@@ -60,19 +60,13 @@ export const verificationDeclarationRefusalSchema = z
|
|
|
60
60
|
.object({ kind: z.literal("verification-declaration-invalid") })
|
|
61
61
|
.strict()
|
|
62
62
|
.readonly();
|
|
63
|
-
export const verifyRefusalSchema = z
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
kind: z.literal("verification-index-out-of-range"),
|
|
71
|
-
total: z.number().int().nonnegative(),
|
|
72
|
-
})
|
|
73
|
-
.strict()
|
|
74
|
-
.readonly(),
|
|
75
|
-
]);
|
|
63
|
+
export const verifyRefusalSchema = z
|
|
64
|
+
.object({
|
|
65
|
+
kind: z.literal("verification-index-out-of-range"),
|
|
66
|
+
total: z.number().int().nonnegative(),
|
|
67
|
+
})
|
|
68
|
+
.strict()
|
|
69
|
+
.readonly();
|
|
76
70
|
export const placementRefusalSchema = z.union([
|
|
77
71
|
z
|
|
78
72
|
.object({
|
|
@@ -145,13 +139,12 @@ export const intentRefusalSchema = z.union([
|
|
|
145
139
|
verifyRefusalSchema,
|
|
146
140
|
]);
|
|
147
141
|
/**
|
|
148
|
-
* Observe, decide, and atomically admit one intent over the
|
|
142
|
+
* Observe, decide, and atomically admit one intent over the invocation time, then complete it
|
|
149
143
|
* as a void outcome. The verb contributes only its own decision payload.
|
|
150
144
|
*/
|
|
151
145
|
export async function admitVoidIntent(input, payload, decide, options) {
|
|
152
146
|
const decisionInput = {
|
|
153
147
|
contractId: input.contractId,
|
|
154
|
-
...(input.actor === undefined ? {} : { actor: input.actor }),
|
|
155
148
|
at: timestamp(),
|
|
156
149
|
...payload,
|
|
157
150
|
};
|
|
@@ -213,14 +206,12 @@ function stepStop(result) {
|
|
|
213
206
|
}
|
|
214
207
|
export function unpackVerificationOutcome(verification) {
|
|
215
208
|
const step = verification.step;
|
|
216
|
-
const stop = "
|
|
217
|
-
?
|
|
218
|
-
: "
|
|
219
|
-
?
|
|
220
|
-
:
|
|
221
|
-
|
|
222
|
-
: stepStop(step);
|
|
223
|
-
const admission = !("failure" in step) && step.kind === "accepted" ? step : undefined;
|
|
209
|
+
const stop = step === undefined || ("kind" in step && step.kind === "reused")
|
|
210
|
+
? undefined
|
|
211
|
+
: "failure" in step
|
|
212
|
+
? step
|
|
213
|
+
: stepStop(step);
|
|
214
|
+
const admission = step !== undefined && !("failure" in step) && step.kind === "accepted" ? step : undefined;
|
|
224
215
|
return {
|
|
225
216
|
...(verification.cleanup === undefined ? {} : { cleanup: verification.cleanup }),
|
|
226
217
|
...(verification.leak === undefined ? {} : { leak: verification.leak }),
|
|
@@ -253,7 +244,7 @@ export async function currentBranchOperation(input) {
|
|
|
253
244
|
return await currentBranch(input.scope);
|
|
254
245
|
}
|
|
255
246
|
export async function contractsOperation(input) {
|
|
256
|
-
return
|
|
247
|
+
return readContractMembershipAt(input.scope, input.channel, input.ids);
|
|
257
248
|
}
|
|
258
249
|
export async function contractCatalogueOperation(input) {
|
|
259
250
|
const limit = input.limit === undefined ? undefined : boundedListLimit(input.limit);
|
|
@@ -35,7 +35,9 @@ export type IntentOutcome<Value, Refusal = never> = Readonly<{
|
|
|
35
35
|
kind: "retry";
|
|
36
36
|
reason: ProtocolTerminal;
|
|
37
37
|
}>;
|
|
38
|
-
export declare function accepted<Value, Refusal = never>(state: ContractState, facts: readonly JournalEntry[], value: Value, physical?: ReconcileResult, obligations?: AcceptedObligations): IntentOutcome<Value, Refusal
|
|
38
|
+
export declare function accepted<Value, Refusal = never>(state: ContractState, facts: readonly JournalEntry[], value: Value, physical?: ReconcileResult, obligations?: AcceptedObligations): Extract<IntentOutcome<Value, Refusal>, {
|
|
39
|
+
kind: "accepted";
|
|
40
|
+
}>;
|
|
39
41
|
export declare function admitted<Value, Refusal = never>(admission: AcceptedProtocolStep, value: Value): IntentOutcome<Value, Refusal>;
|
|
40
42
|
export declare function complete<Value, Refusal>(result: ProtocolResult<Refusal>, value: Value): IntentOutcome<Value, Refusal>;
|
|
41
43
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ProtocolProgress } from "./progress.js";
|
|
2
|
-
import { type
|
|
2
|
+
import { type ContractId, type ContractTarget, type SnapshotId } from "../core/facts/types.js";
|
|
3
3
|
import { type PlacementRefusal } from "../core/verbs/placement.js";
|
|
4
4
|
import type { GitDecodeChannel } from "../git/read-observation.js";
|
|
5
5
|
import { type ReconcileResult } from "../git/reconcile.js";
|
|
@@ -25,7 +25,6 @@ export type PlacementProtocolResult<ExtraRefusal = never> = (AcceptedAdmission &
|
|
|
25
25
|
}>) | Exclude<ProtocolResult<PlacementRefusal | TargetPlacementRefusal | ExtraRefusal>, AcceptedAdmission> | TargetMovedStop | PlacementExecutionFailure;
|
|
26
26
|
type PlacementProtocolInput = Readonly<{
|
|
27
27
|
contractId: ContractId;
|
|
28
|
-
actor?: ActorId;
|
|
29
28
|
at: string;
|
|
30
29
|
}>;
|
|
31
30
|
type PlacementAdmissionInput<ExtraRefusal> = Readonly<{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SqliteTransactionLockError } from "../coordination/sqlite-transaction-lock.js";
|
|
2
2
|
import { AuthorityCorruptionError } from "../core/facts/errors.js";
|
|
3
3
|
import { contractState } from "../core/facts/observation.js";
|
|
4
|
-
import { targetName
|
|
4
|
+
import { targetName } from "../core/facts/types.js";
|
|
5
5
|
import { decidePlacement } from "../core/verbs/placement.js";
|
|
6
6
|
import { observeContractsForAdmissionAt, observeGitForAdmissionAt } from "../git/observe.js";
|
|
7
7
|
import { withPrivateStatePublicationSeat } from "../git/private-state-seat.js";
|
|
@@ -62,6 +62,7 @@ export interface ProtocolProgress {
|
|
|
62
62
|
recordVerificationCheck(contractId: ContractId, snapshot: SnapshotId, check: VerificationCheck): void;
|
|
63
63
|
recordStop(stop: ExecutionStop): void;
|
|
64
64
|
recordDeliveryPreview(contractId: ContractId, report: Partial<import("./delivery-preview.js").DeliveryPreviewReport>): void;
|
|
65
|
+
recordDelivery(contractId: ContractId, value: import("./deliver.js").DeliveryIdentity): void;
|
|
65
66
|
/** Current candidate conclusions, retained before the next await can fail. */
|
|
66
67
|
recordCandidate(contractId: ContractId, evidence: CompletionEvidence): void;
|
|
67
68
|
/** The candidate's completion base, retained before an optional scope read can fail. */
|