@astrosheep/keiyaku 4.6.32 → 4.6.34
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 +18 -7
- package/build/plugins/claude/skills/keiyaku-akuma/SKILL.md +18 -11
- package/build/plugins/claude/skills/keiyaku-babysit/SKILL.md +8 -6
- package/build/plugins/claude/skills/keiyaku-debt/SKILL.md +2 -1
- package/build/plugins/claude/skills/keiyaku-workflow/SKILL.md +2 -1
- package/build/plugins/codex/skills/keiyaku-akuma/SKILL.md +18 -11
- package/build/plugins/codex/skills/keiyaku-babysit/SKILL.md +8 -6
- package/build/plugins/codex/skills/keiyaku-debt/SKILL.md +2 -1
- package/build/plugins/codex/skills/keiyaku-workflow/SKILL.md +2 -1
- package/build/plugins/opencode/skills/keiyaku-akuma/SKILL.md +18 -11
- package/build/plugins/opencode/skills/keiyaku-babysit/SKILL.md +8 -6
- package/build/plugins/opencode/skills/keiyaku-debt/SKILL.md +2 -1
- package/build/plugins/opencode/skills/keiyaku-workflow/SKILL.md +2 -1
- package/build/plugins/pi/README.md +55 -97
- package/build/plugins/pi/keiyaku.ts +1 -142
- package/build/skills/keiyaku-akuma/SKILL.md +18 -11
- package/build/skills/keiyaku-babysit/SKILL.md +8 -6
- package/build/skills/keiyaku-debt/SKILL.md +2 -1
- package/build/skills/keiyaku-workflow/SKILL.md +2 -1
- package/build/src/akuma/akuma-instance.d.ts +11 -0
- package/build/src/akuma/akuma-instance.js +1 -2
- package/build/src/akuma/akuma-observe.d.ts +8 -0
- package/build/src/akuma/akuma-observe.js +81 -14
- package/build/src/akuma/akuma-owner.d.ts +1 -0
- package/build/src/akuma/akuma-owner.js +3 -5
- package/build/src/akuma/akuma-selection-execution.d.ts +82 -7
- package/build/src/akuma/akuma-selection-execution.js +26 -27
- package/build/src/akuma/akuma-wait.d.ts +155 -1
- package/build/src/akuma/akuma-wait.js +94 -34
- package/build/src/akuma/akuma.d.ts +17 -1
- package/build/src/akuma/akuma.js +37 -18
- package/build/src/akuma/body.js +13 -18
- package/build/src/akuma/call-initial-tell.d.ts +0 -1
- package/build/src/akuma/call-initial-tell.js +0 -1
- package/build/src/akuma/heart/activity-schema.d.ts +16 -0
- package/build/src/akuma/heart/activity-schema.js +7 -0
- package/build/src/akuma/heart/facts.d.ts +1 -0
- package/build/src/akuma/heart/facts.js +14 -0
- package/build/src/akuma/heart/index.d.ts +7 -1
- package/build/src/akuma/heart/index.js +35 -9
- package/build/src/akuma/heart/rows.d.ts +1 -0
- package/build/src/akuma/heart/rows.js +4 -0
- package/build/src/akuma/heart/timeline.js +4 -4
- package/build/src/akuma/lineage-cache.d.ts +7 -2
- package/build/src/akuma/lineage-cache.js +48 -24
- package/build/src/akuma/projection-read.d.ts +4 -2
- package/build/src/akuma/projection-read.js +25 -23
- package/build/src/akuma/projection.d.ts +94 -2
- package/build/src/akuma/projection.js +47 -47
- package/build/src/akuma/provider.d.ts +2 -2
- package/build/src/akuma/provider.js +27 -20
- package/build/src/akuma/providers/acp/core.js +2 -5
- package/build/src/akuma/providers/opencode-sdk/events.d.ts +2 -1
- package/build/src/akuma/providers/opencode-sdk/events.js +31 -1
- package/build/src/akuma/publication.js +3 -2
- package/build/src/akuma/selection-observation.d.ts +645 -0
- package/build/src/akuma/selection-observation.js +22 -7
- package/build/src/akuma/status-projection.d.ts +14 -1
- package/build/src/akuma/status-projection.js +40 -2
- package/build/src/akuma/turn-drive.js +21 -15
- package/build/src/body/amend.js +5 -17
- package/build/src/body/decode.js +11 -1
- package/build/src/body/envelope.d.ts +5 -1
- package/build/src/body/envelope.js +4 -2
- package/build/src/body/render.js +4 -6
- package/build/src/bounded-list.d.ts +8 -0
- package/build/src/bounded-list.js +10 -0
- package/build/src/cli/commands/akuma-grammar.d.ts +5 -8
- package/build/src/cli/commands/akuma-grammar.js +52 -77
- package/build/src/cli/commands/akuma.d.ts +1 -2
- package/build/src/cli/commands/akuma.js +12 -61
- package/build/src/cli/commands/contract-grammar.d.ts +1 -0
- package/build/src/cli/commands/contract-grammar.js +39 -42
- package/build/src/cli/commands/contract-help.d.ts +6 -5
- package/build/src/cli/commands/contract-help.js +21 -13
- package/build/src/cli/commands/contract.d.ts +3 -3
- package/build/src/cli/commands/contract.js +13 -9
- package/build/src/cli/commands/debt-grammar.js +2 -4
- package/build/src/cli/parse.d.ts +4 -10
- package/build/src/cli/parse.js +2 -5
- package/build/src/cli/render/akuma-activity.d.ts +12 -34
- package/build/src/cli/render/akuma-activity.js +99 -180
- package/build/src/cli/render/akuma.d.ts +5 -11
- package/build/src/cli/render/akuma.js +22 -30
- package/build/src/cli/render/catalog.js +4 -6
- package/build/src/cli/render/contract-history.d.ts +1 -3
- package/build/src/cli/render/contract-history.js +70 -49
- package/build/src/cli/render/contract-observation.d.ts +2 -1
- package/build/src/cli/render/contract-observation.js +25 -1
- package/build/src/cli/render/contract-wait.d.ts +2 -2
- package/build/src/cli/render/contract-wait.js +21 -17
- package/build/src/cli/render/contract.js +12 -9
- package/build/src/cli/render/debt.js +1 -2
- package/build/src/cli/render/execution-progress.js +1 -3
- package/build/src/cli/render/kanshi-akuma.d.ts +4 -3
- package/build/src/cli/render/kanshi-akuma.js +27 -23
- package/build/src/cli/render/kanshi.js +45 -60
- package/build/src/cli/render/receipt.d.ts +1 -1
- package/build/src/cli/render/receipt.js +33 -28
- package/build/src/cli/render/reconcile.js +2 -5
- package/build/src/cli/render/refusal.js +3 -6
- package/build/src/cli/render/terminal.d.ts +2 -4
- package/build/src/cli/render/terminal.js +10 -17
- package/build/src/cli/render/verbs.d.ts +1 -0
- package/build/src/cli/render/verbs.js +39 -34
- package/build/src/cli/runtime.js +12 -32
- package/build/src/core/facts/codec.js +7 -2
- package/build/src/core/facts/eligibility.d.ts +4 -4
- package/build/src/core/facts/eligibility.js +11 -0
- package/build/src/core/facts/fold.js +9 -5
- package/build/src/core/facts/gate.d.ts +5 -1
- package/build/src/core/facts/gate.js +14 -10
- package/build/src/core/facts/types.d.ts +5 -1
- package/build/src/core/facts/types.js +7 -0
- package/build/src/core/subject.d.ts +4 -1
- package/build/src/core/subject.js +10 -2
- package/build/src/core/verbs/amend.d.ts +15 -4
- package/build/src/core/verbs/amend.js +19 -9
- package/build/src/debt/board.d.ts +2 -1
- package/build/src/debt/board.js +3 -3
- package/build/src/debt/catalog.js +2 -1
- package/build/src/debt/document.d.ts +1 -0
- package/build/src/debt/document.js +3 -0
- package/build/src/debt/index.d.ts +2 -2
- package/build/src/debt/index.js +9 -14
- package/build/src/debt/input.d.ts +2 -1
- package/build/src/debt/input.js +6 -4
- package/build/src/debt/operations.d.ts +2 -1
- package/build/src/dispatch/index.d.ts +0 -17
- package/build/src/dispatch/index.js +1 -10
- package/build/src/git/identity.js +16 -45
- package/build/src/git/nuke.js +13 -23
- package/build/src/git/observe.d.ts +7 -3
- package/build/src/git/observe.js +29 -26
- package/build/src/git/process.js +11 -18
- package/build/src/git/read-observation.d.ts +5 -4
- package/build/src/git/repository.d.ts +2 -0
- package/build/src/git/repository.js +13 -1
- package/build/src/git/scratch.js +2 -14
- package/build/src/git/terminal-reconcile.js +1 -13
- package/build/src/history.d.ts +26 -0
- package/build/src/history.js +43 -0
- package/build/src/index.d.ts +6 -3
- package/build/src/kanshi/counts.d.ts +15 -1
- package/build/src/kanshi/counts.js +14 -3
- package/build/src/kanshi/index.d.ts +3 -4
- package/build/src/kanshi/index.js +2 -3
- package/build/src/kanshi/read.d.ts +21 -0
- package/build/src/kanshi/read.js +7 -3
- package/build/src/kanshi/report.d.ts +94 -0
- package/build/src/library/address.d.ts +12 -5
- package/build/src/library/address.js +18 -32
- package/build/src/library/akuma-creation.d.ts +39 -0
- package/build/src/library/akuma-creation.js +3 -9
- package/build/src/library/akumas.d.ts +5 -1
- package/build/src/library/akumas.js +11 -5
- package/build/src/library/continuation.d.ts +10 -0
- package/build/src/library/contract-composition.js +10 -10
- package/build/src/library/contract-creation.js +12 -13
- package/build/src/library/contract-outcomes.d.ts +72 -1
- package/build/src/library/contract-outcomes.js +1 -0
- package/build/src/library/contract-types.d.ts +233 -25
- package/build/src/library/contract-types.js +32 -12
- package/build/src/library/contract-wait.d.ts +212 -0
- package/build/src/library/contract-wait.js +65 -49
- package/build/src/library/delivery.d.ts +25 -0
- package/build/src/library/input.d.ts +8 -26
- package/build/src/library/input.js +17 -12
- package/build/src/library/kei.js +167 -90
- package/build/src/library/keiyaku-attribution.d.ts +1 -1
- package/build/src/library/keiyaku-attribution.js +3 -1
- package/build/src/library/keiyaku-classify.js +8 -4
- package/build/src/library/keiyaku-debt.d.ts +8 -7
- package/build/src/library/keiyaku-debt.js +1 -2
- package/build/src/library/keiyaku-identity.d.ts +4 -3
- package/build/src/library/keiyaku-identity.js +35 -7
- package/build/src/library/keiyaku-verbs.d.ts +974 -1409
- package/build/src/library/keiyaku-verbs.js +154 -161
- package/build/src/library/keiyaku-wait.d.ts +753 -0
- package/build/src/library/keiyaku-wait.js +230 -0
- package/build/src/library/keiyaku.d.ts +3110 -29
- package/build/src/library/keiyaku.js +342 -438
- package/build/src/library/model-tools.d.ts +754 -0
- package/build/src/library/model-tools.js +362 -0
- package/build/src/library/outcome.js +5 -6
- package/build/src/library/refusal.d.ts +25 -1
- package/build/src/library/refusal.js +4 -5
- package/build/src/library/selection.d.ts +18 -5
- package/build/src/library/selection.js +11 -5
- package/build/src/mcp/adapter.d.ts +0 -6
- package/build/src/mcp/adapter.js +11 -160
- package/build/src/mcp/description.d.ts +2 -0
- package/build/src/mcp/description.js +2 -0
- package/build/src/mcp/help.d.ts +1 -1
- package/build/src/mcp/help.js +10 -7
- package/build/src/pi/index.d.ts +5 -0
- package/build/src/pi/index.js +99 -0
- package/build/src/pi/status.d.ts +12 -0
- package/build/src/pi/status.js +140 -0
- package/build/src/protocol/amend.d.ts +14 -3
- package/build/src/protocol/amend.js +113 -46
- package/build/src/protocol/bind.d.ts +1 -1
- package/build/src/protocol/bind.js +5 -16
- package/build/src/protocol/completion.d.ts +30 -0
- package/build/src/protocol/completion.js +8 -5
- package/build/src/protocol/deliver.js +7 -20
- package/build/src/protocol/delivery-preview.d.ts +5 -0
- package/build/src/protocol/execution-observation.d.ts +8 -0
- package/build/src/protocol/intent.d.ts +1 -0
- package/build/src/protocol/intent.js +4 -1
- package/build/src/protocol/operations.d.ts +56 -16
- package/build/src/protocol/operations.js +18 -32
- package/build/src/protocol/placement.js +7 -1
- package/build/src/protocol/progress.js +0 -6
- package/build/src/protocol/read/status.d.ts +52 -4
- package/build/src/protocol/read/status.js +26 -22
- package/build/src/protocol/reintegrate.js +2 -2
- package/build/src/protocol/result-leaves.d.ts +56 -8
- package/build/src/protocol/result-leaves.js +11 -2
- package/build/src/protocol/run.js +1 -4
- package/build/src/protocol/verify.d.ts +10 -0
- package/build/src/protocol/verify.js +1 -0
- package/build/src/runtime/proc/windows-launch.exe +0 -0
- package/build/src/settlement/settle.js +19 -68
- package/package.json +7 -3
- package/plugins/paseo/plugin/index.server.ts +6 -2
- package/plugins/paseo/plugin/server/attach.ts +68 -48
- package/plugins/paseo/plugin/server/directory.ts +259 -0
- package/plugins/paseo/plugin/server/mirror-identity.ts +3 -32
- package/plugins/paseo/plugin/server/reopen.ts +52 -38
- package/plugins/pi/README.md +55 -97
- package/plugins/pi/keiyaku.ts +1 -142
- package/skills/keiyaku-akuma/SKILL.md +18 -11
- package/skills/keiyaku-babysit/SKILL.md +8 -6
- package/skills/keiyaku-debt/SKILL.md +2 -1
- package/skills/keiyaku-workflow/SKILL.md +2 -1
- package/build/plugins/pi/akuma-tools.ts +0 -283
- package/build/src/body/keys.d.ts +0 -4
- package/build/src/body/keys.js +0 -11
- package/build/src/kanshi/roster.d.ts +0 -2
- package/build/src/kanshi/roster.js +0 -2
- package/build/src/mcp/output.d.ts +0 -385
- package/build/src/mcp/output.js +0 -193
- package/plugins/pi/akuma-tools.ts +0 -283
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/** @architectureCompositionRoot */
|
|
2
2
|
import { decodeCanonicalContractDocument } from "../body/render.js";
|
|
3
|
+
import { targetName } from "../core/facts/types.js";
|
|
3
4
|
import { KeiyakuError } from "../errors.js";
|
|
4
5
|
import { withGitDecodeChannel } from "../git/read-observation.js";
|
|
5
6
|
import { executionStop, isOperationalFailure, isOperationalStop } from "../protocol/progress.js";
|
|
@@ -21,13 +22,13 @@ function bindTargetSelection(target) {
|
|
|
21
22
|
}
|
|
22
23
|
function bindInput(input, composition) {
|
|
23
24
|
const values = validated(() => requireInput(input, "Keis.bind input"));
|
|
24
|
-
const allowed = values.forkOf === undefined ? ["
|
|
25
|
+
const allowed = values.forkOf === undefined ? ["terms", "debt", "target", "after", "gates"] : ["forkOf", "target"];
|
|
25
26
|
requireInput(values, "Keis.bind input", allowed);
|
|
26
27
|
return validated(() => {
|
|
27
28
|
const forkOf = values.forkOf;
|
|
28
29
|
if (values.target !== undefined && values.target !== null && typeof values.target !== "string")
|
|
29
30
|
throw new KeiyakuError("invalid-input", "target must be a string or null");
|
|
30
|
-
const document = forkOf === undefined ? parseMarkdown(requireMarkdown(values.
|
|
31
|
+
const document = forkOf === undefined ? parseMarkdown(requireMarkdown(values.terms, "terms")) : undefined;
|
|
31
32
|
if (forkOf !== undefined && typeof forkOf !== "string")
|
|
32
33
|
throw new KeiyakuError("invalid-input", "forkOf must be a ContractId");
|
|
33
34
|
const derived = forkOf === undefined ? derivedGates(composition, gateNames(values.gates)) : undefined;
|
|
@@ -75,10 +76,7 @@ export async function bindKei(scope, input, createHandle, composition = captureL
|
|
|
75
76
|
const id = admission.value.contractId;
|
|
76
77
|
retainBindCoordinates(accumulator, admission);
|
|
77
78
|
const value = await bindComplete(accumulator, id, scope, channel, admission, hooks, () => observeRegion(scope, channel, id, fork.document.region).then((region) => bindValue(handle(id), region)));
|
|
78
|
-
return
|
|
79
|
-
value: value.kei,
|
|
80
|
-
enumerable: false,
|
|
81
|
-
});
|
|
79
|
+
return acceptedBind(id, value);
|
|
82
80
|
}
|
|
83
81
|
if (document === undefined)
|
|
84
82
|
throw new Error("Markdown bind requires its prepared document");
|
|
@@ -109,6 +107,12 @@ export async function bindKei(scope, input, createHandle, composition = captureL
|
|
|
109
107
|
throw projected.error;
|
|
110
108
|
return projected.outcome;
|
|
111
109
|
}
|
|
110
|
+
function acceptedBind(id, value) {
|
|
111
|
+
return Object.defineProperty({ kind: "accepted", contractId: id, ...value }, "kei", {
|
|
112
|
+
value: value.kei,
|
|
113
|
+
enumerable: false,
|
|
114
|
+
});
|
|
115
|
+
}
|
|
112
116
|
function bindValue(kei, region) {
|
|
113
117
|
const value = { ...region, kei };
|
|
114
118
|
Object.defineProperty(value, "kei", { value: kei, enumerable: false });
|
|
@@ -160,10 +164,7 @@ async function markdownBind(prepared, document, hooks, scope, channel, accumulat
|
|
|
160
164
|
const id = leading.value.contractId;
|
|
161
165
|
retainBindCoordinates(accumulator, leading);
|
|
162
166
|
const value = await bindComplete(accumulator, id, scope, channel, leading, hooks, async () => bindValue(handle(id), await observeRegion(scope, channel, id, document.region)));
|
|
163
|
-
return
|
|
164
|
-
value: value.kei,
|
|
165
|
-
enumerable: false,
|
|
166
|
-
});
|
|
167
|
+
return acceptedBind(id, value);
|
|
167
168
|
}
|
|
168
169
|
function retainBindCoordinates(accumulator, leading) {
|
|
169
170
|
const bind = leading.facts.find((fact) => fact.kind === "bind");
|
|
@@ -171,9 +172,7 @@ function retainBindCoordinates(accumulator, leading) {
|
|
|
171
172
|
throw new Error("bind receipt requires its admitted coordinates");
|
|
172
173
|
const target = bind.data.coordinates.target;
|
|
173
174
|
if (target !== undefined)
|
|
174
|
-
accumulator.extendConclusions(bind.contract, {
|
|
175
|
-
target: typeof target === "string" ? target : target.contractId,
|
|
176
|
-
});
|
|
175
|
+
accumulator.extendConclusions(bind.contract, { target: targetName(target) });
|
|
177
176
|
}
|
|
178
177
|
function parseMarkdown(markdown) {
|
|
179
178
|
return decodeCanonicalContractDocument(markdown, { requireTimeout: true });
|
|
@@ -36,6 +36,7 @@ declare const amendValueSchema: z.ZodReadonly<z.ZodObject<{
|
|
|
36
36
|
}, z.core.$strict>>>>;
|
|
37
37
|
}, z.core.$strict>>>>>;
|
|
38
38
|
overlapError: z.ZodExactOptional<z.ZodString>;
|
|
39
|
+
target: z.ZodExactOptional<z.ZodString>;
|
|
39
40
|
changedSections: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
40
41
|
gatesChanged: z.ZodExactOptional<z.ZodLiteral<true>>;
|
|
41
42
|
afterChanged: z.ZodExactOptional<z.ZodLiteral<true>>;
|
|
@@ -426,22 +427,47 @@ export declare const amendOutcomeSchema: z.ZodUnion<readonly [z.ZodReadonly<z.Zo
|
|
|
426
427
|
}, z.core.$strict>>>>;
|
|
427
428
|
}, z.core.$strict>>>>>;
|
|
428
429
|
overlapError: z.ZodExactOptional<z.ZodString>;
|
|
430
|
+
target: z.ZodExactOptional<z.ZodString>;
|
|
429
431
|
changedSections: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
430
432
|
gatesChanged: z.ZodExactOptional<z.ZodLiteral<true>>;
|
|
431
433
|
afterChanged: z.ZodExactOptional<z.ZodLiteral<true>>;
|
|
432
434
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
433
435
|
kind: z.ZodLiteral<"refused">;
|
|
434
436
|
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
|
|
435
|
-
reason: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
437
|
+
reason: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
436
438
|
kind: z.ZodEnum<{
|
|
437
439
|
"contract-missing": "contract-missing";
|
|
438
440
|
terminal: "terminal";
|
|
439
441
|
"unknown-prerequisite": "unknown-prerequisite";
|
|
440
442
|
"terms-moved": "terms-moved";
|
|
441
443
|
"cyclic-prerequisite": "cyclic-prerequisite";
|
|
444
|
+
"cyclic-target": "cyclic-target";
|
|
445
|
+
}>;
|
|
446
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
447
|
+
kind: z.ZodEnum<{
|
|
448
|
+
"target-contract-missing": "target-contract-missing";
|
|
449
|
+
"target-contract-terminal": "target-contract-terminal";
|
|
450
|
+
}>;
|
|
451
|
+
targetContractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
|
|
452
|
+
}, z.core.$strict>>]>, z.ZodReadonly<z.ZodObject<{
|
|
453
|
+
kind: z.ZodEnum<{
|
|
454
|
+
"target-missing": "target-missing";
|
|
455
|
+
"invalid-target": "invalid-target";
|
|
442
456
|
}>;
|
|
443
457
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
444
458
|
kind: z.ZodLiteral<"verification-declaration-invalid">;
|
|
459
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
460
|
+
kind: z.ZodLiteral<"target-workspace-unavailable">;
|
|
461
|
+
targetContractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
|
|
462
|
+
reason: z.ZodEnum<{
|
|
463
|
+
unappointed: "unappointed";
|
|
464
|
+
missing: "missing";
|
|
465
|
+
association: "association";
|
|
466
|
+
replaced: "replaced";
|
|
467
|
+
attached: "attached";
|
|
468
|
+
uncommitted: "uncommitted";
|
|
469
|
+
operation: "operation";
|
|
470
|
+
}>;
|
|
445
471
|
}, z.core.$strict>>]>;
|
|
446
472
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
447
473
|
kind: z.ZodLiteral<"retry">;
|
|
@@ -614,6 +640,11 @@ export declare const deliverOutcomeSchema: z.ZodUnion<readonly [z.ZodUnion<reado
|
|
|
614
640
|
requirement: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").RequirementId, string>>;
|
|
615
641
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
616
642
|
state: z.ZodLiteral<"stale">;
|
|
643
|
+
reason: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
|
|
644
|
+
kind: z.ZodLiteral<"snapshot-changed">;
|
|
645
|
+
previousSnapshot: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
|
|
646
|
+
currentSnapshot: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
|
|
647
|
+
}, z.core.$strict>>>;
|
|
617
648
|
previousContentId: z.ZodExactOptional<z.ZodString>;
|
|
618
649
|
currentContentId: z.ZodExactOptional<z.ZodString>;
|
|
619
650
|
gate: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
@@ -723,6 +754,11 @@ export declare const deliverOutcomeSchema: z.ZodUnion<readonly [z.ZodUnion<reado
|
|
|
723
754
|
requirement: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").RequirementId, string>>;
|
|
724
755
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
725
756
|
state: z.ZodLiteral<"stale">;
|
|
757
|
+
reason: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
|
|
758
|
+
kind: z.ZodLiteral<"snapshot-changed">;
|
|
759
|
+
previousSnapshot: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
|
|
760
|
+
currentSnapshot: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
|
|
761
|
+
}, z.core.$strict>>>;
|
|
726
762
|
previousContentId: z.ZodExactOptional<z.ZodString>;
|
|
727
763
|
currentContentId: z.ZodExactOptional<z.ZodString>;
|
|
728
764
|
gate: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
@@ -989,6 +1025,11 @@ export declare const verifyNormalOutcomeSchema: z.ZodReadonly<z.ZodObject<{
|
|
|
989
1025
|
requirement: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").RequirementId, string>>;
|
|
990
1026
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
991
1027
|
state: z.ZodLiteral<"stale">;
|
|
1028
|
+
reason: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
|
|
1029
|
+
kind: z.ZodLiteral<"snapshot-changed">;
|
|
1030
|
+
previousSnapshot: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
|
|
1031
|
+
currentSnapshot: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
|
|
1032
|
+
}, z.core.$strict>>>;
|
|
992
1033
|
previousContentId: z.ZodExactOptional<z.ZodString>;
|
|
993
1034
|
currentContentId: z.ZodExactOptional<z.ZodString>;
|
|
994
1035
|
gate: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
@@ -1054,6 +1095,11 @@ export declare const verifyNormalOutcomeSchema: z.ZodReadonly<z.ZodObject<{
|
|
|
1054
1095
|
requirement: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").RequirementId, string>>;
|
|
1055
1096
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
1056
1097
|
state: z.ZodLiteral<"stale">;
|
|
1098
|
+
reason: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
|
|
1099
|
+
kind: z.ZodLiteral<"snapshot-changed">;
|
|
1100
|
+
previousSnapshot: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
|
|
1101
|
+
currentSnapshot: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
|
|
1102
|
+
}, z.core.$strict>>>;
|
|
1057
1103
|
previousContentId: z.ZodExactOptional<z.ZodString>;
|
|
1058
1104
|
currentContentId: z.ZodExactOptional<z.ZodString>;
|
|
1059
1105
|
gate: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
@@ -1214,6 +1260,11 @@ export declare const verifyOutcomeSchema: z.ZodUnion<readonly [z.ZodReadonly<z.Z
|
|
|
1214
1260
|
requirement: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").RequirementId, string>>;
|
|
1215
1261
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
1216
1262
|
state: z.ZodLiteral<"stale">;
|
|
1263
|
+
reason: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
|
|
1264
|
+
kind: z.ZodLiteral<"snapshot-changed">;
|
|
1265
|
+
previousSnapshot: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
|
|
1266
|
+
currentSnapshot: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
|
|
1267
|
+
}, z.core.$strict>>>;
|
|
1217
1268
|
previousContentId: z.ZodExactOptional<z.ZodString>;
|
|
1218
1269
|
currentContentId: z.ZodExactOptional<z.ZodString>;
|
|
1219
1270
|
gate: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
@@ -1414,6 +1465,11 @@ export declare const verifyOutcomeSchema: z.ZodUnion<readonly [z.ZodReadonly<z.Z
|
|
|
1414
1465
|
requirement: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").RequirementId, string>>;
|
|
1415
1466
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
1416
1467
|
state: z.ZodLiteral<"stale">;
|
|
1468
|
+
reason: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
|
|
1469
|
+
kind: z.ZodLiteral<"snapshot-changed">;
|
|
1470
|
+
previousSnapshot: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
|
|
1471
|
+
currentSnapshot: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
|
|
1472
|
+
}, z.core.$strict>>>;
|
|
1417
1473
|
previousContentId: z.ZodExactOptional<z.ZodString>;
|
|
1418
1474
|
currentContentId: z.ZodExactOptional<z.ZodString>;
|
|
1419
1475
|
gate: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
@@ -1702,6 +1758,11 @@ export declare const reviewOutcomeSchema: z.ZodUnion<readonly [z.ZodReadonly<z.Z
|
|
|
1702
1758
|
requirement: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").RequirementId, string>>;
|
|
1703
1759
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
1704
1760
|
state: z.ZodLiteral<"stale">;
|
|
1761
|
+
reason: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
|
|
1762
|
+
kind: z.ZodLiteral<"snapshot-changed">;
|
|
1763
|
+
previousSnapshot: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
|
|
1764
|
+
currentSnapshot: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
|
|
1765
|
+
}, z.core.$strict>>>;
|
|
1705
1766
|
previousContentId: z.ZodExactOptional<z.ZodString>;
|
|
1706
1767
|
currentContentId: z.ZodExactOptional<z.ZodString>;
|
|
1707
1768
|
gate: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
@@ -1817,6 +1878,11 @@ export declare const reviewOutcomeSchema: z.ZodUnion<readonly [z.ZodReadonly<z.Z
|
|
|
1817
1878
|
requirement: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").RequirementId, string>>;
|
|
1818
1879
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
1819
1880
|
state: z.ZodLiteral<"stale">;
|
|
1881
|
+
reason: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
|
|
1882
|
+
kind: z.ZodLiteral<"snapshot-changed">;
|
|
1883
|
+
previousSnapshot: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
|
|
1884
|
+
currentSnapshot: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
|
|
1885
|
+
}, z.core.$strict>>>;
|
|
1820
1886
|
previousContentId: z.ZodExactOptional<z.ZodString>;
|
|
1821
1887
|
currentContentId: z.ZodExactOptional<z.ZodString>;
|
|
1822
1888
|
gate: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
@@ -2222,6 +2288,11 @@ export declare const deliveryPreviewOutcomeSchema: z.ZodUnion<readonly [z.ZodRea
|
|
|
2222
2288
|
requirement: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").RequirementId, string>>;
|
|
2223
2289
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
2224
2290
|
state: z.ZodLiteral<"stale">;
|
|
2291
|
+
reason: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
|
|
2292
|
+
kind: z.ZodLiteral<"snapshot-changed">;
|
|
2293
|
+
previousSnapshot: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
|
|
2294
|
+
currentSnapshot: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
|
|
2295
|
+
}, z.core.$strict>>>;
|
|
2225
2296
|
previousContentId: z.ZodExactOptional<z.ZodString>;
|
|
2226
2297
|
currentContentId: z.ZodExactOptional<z.ZodString>;
|
|
2227
2298
|
gate: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
@@ -20,6 +20,7 @@ const bindFields = {
|
|
|
20
20
|
...regionFields,
|
|
21
21
|
};
|
|
22
22
|
const amendFields = {
|
|
23
|
+
target: z.string().exactOptional(),
|
|
23
24
|
changedSections: z.array(z.string()).min(1).readonly().exactOptional(),
|
|
24
25
|
gatesChanged: z.literal(true).exactOptional(),
|
|
25
26
|
afterChanged: z.literal(true).exactOptional(),
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
/** @architectureCompositionRoot */
|
|
2
2
|
import { z } from "zod";
|
|
3
|
+
import type { LifecycleSelection } from "../bounded-list.js";
|
|
3
4
|
import type { AttestationData, ContractId } from "../core/facts/types.js";
|
|
4
5
|
import type { ContractCatalogue } from "../protocol/read/status.js";
|
|
5
6
|
import type { Settings } from "../settings.js";
|
|
6
7
|
import type { DebtId } from "../debt/identity.js";
|
|
7
8
|
/** Public gate words remain ordinary strings; private policy interprets them. */
|
|
8
9
|
export type { Gate } from "../core/facts/types.js";
|
|
9
|
-
|
|
10
|
+
/** A page row keeps the semantic fact; an exact read adds that record's complete retained terms. */
|
|
11
|
+
export declare const contractJournalRowSchema: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
10
12
|
kind: z.ZodLiteral<"bind">;
|
|
11
|
-
id: z.
|
|
13
|
+
id: z.ZodString;
|
|
12
14
|
at: z.ZodString;
|
|
13
15
|
start: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
|
|
14
16
|
target: z.ZodExactOptional<z.ZodUnion<readonly [z.ZodString, z.ZodReadonly<z.ZodObject<{
|
|
@@ -24,15 +26,23 @@ export declare const contractHistoryEventSchema: z.ZodUnion<readonly [z.ZodReado
|
|
|
24
26
|
}, z.core.$strict>>>;
|
|
25
27
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
26
28
|
kind: z.ZodLiteral<"amend">;
|
|
27
|
-
id: z.
|
|
29
|
+
id: z.ZodString;
|
|
28
30
|
at: z.ZodString;
|
|
31
|
+
target: z.ZodExactOptional<z.ZodUnion<readonly [z.ZodString, z.ZodReadonly<z.ZodObject<{
|
|
32
|
+
kind: z.ZodLiteral<"contract">;
|
|
33
|
+
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
|
|
34
|
+
}, z.core.$strict>>]>>;
|
|
35
|
+
targetIncarnation: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
|
|
36
|
+
id: z.ZodString;
|
|
37
|
+
identity: z.ZodString;
|
|
38
|
+
}, z.core.$strict>>>;
|
|
29
39
|
changedSections: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
30
40
|
gates: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>>;
|
|
31
41
|
after: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>>>;
|
|
32
42
|
document: z.ZodExactOptional<z.ZodString>;
|
|
33
43
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
34
44
|
kind: z.ZodLiteral<"deliver">;
|
|
35
|
-
id: z.
|
|
45
|
+
id: z.ZodString;
|
|
36
46
|
at: z.ZodString;
|
|
37
47
|
candidate: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
|
|
38
48
|
integration: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
|
|
@@ -42,13 +52,13 @@ export declare const contractHistoryEventSchema: z.ZodUnion<readonly [z.ZodReado
|
|
|
42
52
|
requireBranchesToBeUpToDate: z.ZodExactOptional<z.ZodBoolean>;
|
|
43
53
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
44
54
|
kind: z.ZodLiteral<"reintegrated">;
|
|
45
|
-
id: z.
|
|
55
|
+
id: z.ZodString;
|
|
46
56
|
at: z.ZodString;
|
|
47
57
|
predecessor: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
|
|
48
58
|
integration: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
|
|
49
59
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
50
60
|
kind: z.ZodLiteral<"attestation">;
|
|
51
|
-
id: z.
|
|
61
|
+
id: z.ZodString;
|
|
52
62
|
at: z.ZodString;
|
|
53
63
|
gate: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
54
64
|
requirement: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").RequirementId, string>>;
|
|
@@ -60,22 +70,106 @@ export declare const contractHistoryEventSchema: z.ZodUnion<readonly [z.ZodReado
|
|
|
60
70
|
summary: z.ZodExactOptional<z.ZodString>;
|
|
61
71
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
62
72
|
kind: z.ZodLiteral<"claimed">;
|
|
63
|
-
id: z.
|
|
73
|
+
id: z.ZodString;
|
|
64
74
|
at: z.ZodString;
|
|
65
|
-
deliveryId: z.
|
|
75
|
+
deliveryId: z.ZodString;
|
|
66
76
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
67
77
|
kind: z.ZodLiteral<"arc">;
|
|
68
|
-
id: z.
|
|
78
|
+
id: z.ZodString;
|
|
69
79
|
at: z.ZodString;
|
|
70
80
|
chapter: z.ZodNumber;
|
|
71
81
|
title: z.ZodString;
|
|
72
82
|
body: z.ZodExactOptional<z.ZodString>;
|
|
73
83
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
74
84
|
kind: z.ZodLiteral<"abandoned">;
|
|
75
|
-
id: z.
|
|
85
|
+
id: z.ZodString;
|
|
86
|
+
at: z.ZodString;
|
|
87
|
+
note: z.ZodExactOptional<z.ZodString>;
|
|
88
|
+
}, z.core.$strict>>]>;
|
|
89
|
+
/** One available Dispatch association, presented after the journal row it enriches. */
|
|
90
|
+
export declare const contractDispatchRowSchema: z.ZodReadonly<z.ZodObject<{
|
|
91
|
+
kind: z.ZodLiteral<"dispatch">;
|
|
92
|
+
at: z.ZodString;
|
|
93
|
+
akumaId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../akuma/identity.js").AkumaId, string>>;
|
|
94
|
+
}, z.core.$strict>>;
|
|
95
|
+
export declare const contractHistoryEventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
96
|
+
kind: z.ZodLiteral<"bind">;
|
|
97
|
+
id: z.ZodString;
|
|
98
|
+
at: z.ZodString;
|
|
99
|
+
start: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
|
|
100
|
+
target: z.ZodExactOptional<z.ZodUnion<readonly [z.ZodString, z.ZodReadonly<z.ZodObject<{
|
|
101
|
+
kind: z.ZodLiteral<"contract">;
|
|
102
|
+
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
|
|
103
|
+
}, z.core.$strict>>]>>;
|
|
104
|
+
gates: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>>;
|
|
105
|
+
after: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>>>;
|
|
106
|
+
document: z.ZodExactOptional<z.ZodString>;
|
|
107
|
+
targetIncarnation: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
|
|
108
|
+
id: z.ZodString;
|
|
109
|
+
identity: z.ZodString;
|
|
110
|
+
}, z.core.$strict>>>;
|
|
111
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
112
|
+
kind: z.ZodLiteral<"amend">;
|
|
113
|
+
id: z.ZodString;
|
|
114
|
+
at: z.ZodString;
|
|
115
|
+
target: z.ZodExactOptional<z.ZodUnion<readonly [z.ZodString, z.ZodReadonly<z.ZodObject<{
|
|
116
|
+
kind: z.ZodLiteral<"contract">;
|
|
117
|
+
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
|
|
118
|
+
}, z.core.$strict>>]>>;
|
|
119
|
+
targetIncarnation: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
|
|
120
|
+
id: z.ZodString;
|
|
121
|
+
identity: z.ZodString;
|
|
122
|
+
}, z.core.$strict>>>;
|
|
123
|
+
changedSections: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
124
|
+
gates: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>>;
|
|
125
|
+
after: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>>>;
|
|
126
|
+
document: z.ZodExactOptional<z.ZodString>;
|
|
127
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
128
|
+
kind: z.ZodLiteral<"deliver">;
|
|
129
|
+
id: z.ZodString;
|
|
76
130
|
at: z.ZodString;
|
|
131
|
+
candidate: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
|
|
132
|
+
integration: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
|
|
133
|
+
contentId: z.ZodString;
|
|
134
|
+
predecessor: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
|
|
77
135
|
note: z.ZodExactOptional<z.ZodString>;
|
|
136
|
+
requireBranchesToBeUpToDate: z.ZodExactOptional<z.ZodBoolean>;
|
|
137
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
138
|
+
kind: z.ZodLiteral<"reintegrated">;
|
|
139
|
+
id: z.ZodString;
|
|
140
|
+
at: z.ZodString;
|
|
141
|
+
predecessor: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
|
|
142
|
+
integration: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
|
|
143
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
144
|
+
kind: z.ZodLiteral<"attestation">;
|
|
145
|
+
id: z.ZodString;
|
|
146
|
+
at: z.ZodString;
|
|
147
|
+
gate: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
148
|
+
requirement: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").RequirementId, string>>;
|
|
149
|
+
verdict: z.ZodEnum<{
|
|
150
|
+
satisfied: "satisfied";
|
|
151
|
+
unsatisfied: "unsatisfied";
|
|
152
|
+
}>;
|
|
153
|
+
subject: z.ZodString;
|
|
154
|
+
summary: z.ZodExactOptional<z.ZodString>;
|
|
78
155
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
156
|
+
kind: z.ZodLiteral<"claimed">;
|
|
157
|
+
id: z.ZodString;
|
|
158
|
+
at: z.ZodString;
|
|
159
|
+
deliveryId: z.ZodString;
|
|
160
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
161
|
+
kind: z.ZodLiteral<"arc">;
|
|
162
|
+
id: z.ZodString;
|
|
163
|
+
at: z.ZodString;
|
|
164
|
+
chapter: z.ZodNumber;
|
|
165
|
+
title: z.ZodString;
|
|
166
|
+
body: z.ZodExactOptional<z.ZodString>;
|
|
167
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
168
|
+
kind: z.ZodLiteral<"abandoned">;
|
|
169
|
+
id: z.ZodString;
|
|
170
|
+
at: z.ZodString;
|
|
171
|
+
note: z.ZodExactOptional<z.ZodString>;
|
|
172
|
+
}, z.core.$strict>>]>, z.ZodReadonly<z.ZodObject<{
|
|
79
173
|
kind: z.ZodLiteral<"dispatch">;
|
|
80
174
|
at: z.ZodString;
|
|
81
175
|
akumaId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../akuma/identity.js").AkumaId, string>>;
|
|
@@ -83,9 +177,9 @@ export declare const contractHistoryEventSchema: z.ZodUnion<readonly [z.ZodReado
|
|
|
83
177
|
export declare const contractHistorySchema: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
84
178
|
kind: z.ZodLiteral<"contract">;
|
|
85
179
|
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
|
|
86
|
-
events: z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
180
|
+
events: z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
87
181
|
kind: z.ZodLiteral<"bind">;
|
|
88
|
-
id: z.
|
|
182
|
+
id: z.ZodString;
|
|
89
183
|
at: z.ZodString;
|
|
90
184
|
start: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
|
|
91
185
|
target: z.ZodExactOptional<z.ZodUnion<readonly [z.ZodString, z.ZodReadonly<z.ZodObject<{
|
|
@@ -101,15 +195,23 @@ export declare const contractHistorySchema: z.ZodUnion<readonly [z.ZodReadonly<z
|
|
|
101
195
|
}, z.core.$strict>>>;
|
|
102
196
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
103
197
|
kind: z.ZodLiteral<"amend">;
|
|
104
|
-
id: z.
|
|
198
|
+
id: z.ZodString;
|
|
105
199
|
at: z.ZodString;
|
|
200
|
+
target: z.ZodExactOptional<z.ZodUnion<readonly [z.ZodString, z.ZodReadonly<z.ZodObject<{
|
|
201
|
+
kind: z.ZodLiteral<"contract">;
|
|
202
|
+
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
|
|
203
|
+
}, z.core.$strict>>]>>;
|
|
204
|
+
targetIncarnation: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
|
|
205
|
+
id: z.ZodString;
|
|
206
|
+
identity: z.ZodString;
|
|
207
|
+
}, z.core.$strict>>>;
|
|
106
208
|
changedSections: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
107
209
|
gates: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>>;
|
|
108
210
|
after: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>>>;
|
|
109
211
|
document: z.ZodExactOptional<z.ZodString>;
|
|
110
212
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
111
213
|
kind: z.ZodLiteral<"deliver">;
|
|
112
|
-
id: z.
|
|
214
|
+
id: z.ZodString;
|
|
113
215
|
at: z.ZodString;
|
|
114
216
|
candidate: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
|
|
115
217
|
integration: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
|
|
@@ -119,13 +221,13 @@ export declare const contractHistorySchema: z.ZodUnion<readonly [z.ZodReadonly<z
|
|
|
119
221
|
requireBranchesToBeUpToDate: z.ZodExactOptional<z.ZodBoolean>;
|
|
120
222
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
121
223
|
kind: z.ZodLiteral<"reintegrated">;
|
|
122
|
-
id: z.
|
|
224
|
+
id: z.ZodString;
|
|
123
225
|
at: z.ZodString;
|
|
124
226
|
predecessor: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
|
|
125
227
|
integration: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
|
|
126
228
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
127
229
|
kind: z.ZodLiteral<"attestation">;
|
|
128
|
-
id: z.
|
|
230
|
+
id: z.ZodString;
|
|
129
231
|
at: z.ZodString;
|
|
130
232
|
gate: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
131
233
|
requirement: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").RequirementId, string>>;
|
|
@@ -137,26 +239,29 @@ export declare const contractHistorySchema: z.ZodUnion<readonly [z.ZodReadonly<z
|
|
|
137
239
|
summary: z.ZodExactOptional<z.ZodString>;
|
|
138
240
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
139
241
|
kind: z.ZodLiteral<"claimed">;
|
|
140
|
-
id: z.
|
|
242
|
+
id: z.ZodString;
|
|
141
243
|
at: z.ZodString;
|
|
142
|
-
deliveryId: z.
|
|
244
|
+
deliveryId: z.ZodString;
|
|
143
245
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
144
246
|
kind: z.ZodLiteral<"arc">;
|
|
145
|
-
id: z.
|
|
247
|
+
id: z.ZodString;
|
|
146
248
|
at: z.ZodString;
|
|
147
249
|
chapter: z.ZodNumber;
|
|
148
250
|
title: z.ZodString;
|
|
149
251
|
body: z.ZodExactOptional<z.ZodString>;
|
|
150
252
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
151
253
|
kind: z.ZodLiteral<"abandoned">;
|
|
152
|
-
id: z.
|
|
254
|
+
id: z.ZodString;
|
|
153
255
|
at: z.ZodString;
|
|
154
256
|
note: z.ZodExactOptional<z.ZodString>;
|
|
155
|
-
}, z.core.$strict
|
|
257
|
+
}, z.core.$strict>>]>, z.ZodReadonly<z.ZodObject<{
|
|
156
258
|
kind: z.ZodLiteral<"dispatch">;
|
|
157
259
|
at: z.ZodString;
|
|
158
260
|
akumaId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../akuma/identity.js").AkumaId, string>>;
|
|
159
261
|
}, z.core.$strict>>]>>>;
|
|
262
|
+
omitted: z.ZodExactOptional<z.ZodNumber>;
|
|
263
|
+
lowestRetainedSequence: z.ZodExactOptional<z.ZodNumber>;
|
|
264
|
+
highestSequence: z.ZodExactOptional<z.ZodNumber>;
|
|
160
265
|
dispatches: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
|
|
161
266
|
kind: z.ZodLiteral<"unavailable">;
|
|
162
267
|
category: z.ZodEnum<{
|
|
@@ -165,17 +270,117 @@ export declare const contractHistorySchema: z.ZodUnion<readonly [z.ZodReadonly<z
|
|
|
165
270
|
}>;
|
|
166
271
|
diagnostic: z.ZodString;
|
|
167
272
|
}, z.core.$strict>>>;
|
|
273
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
274
|
+
kind: z.ZodLiteral<"contract-exact">;
|
|
275
|
+
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
|
|
276
|
+
event: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
277
|
+
kind: z.ZodLiteral<"bind">;
|
|
278
|
+
id: z.ZodString;
|
|
279
|
+
at: z.ZodString;
|
|
280
|
+
start: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
|
|
281
|
+
target: z.ZodExactOptional<z.ZodUnion<readonly [z.ZodString, z.ZodReadonly<z.ZodObject<{
|
|
282
|
+
kind: z.ZodLiteral<"contract">;
|
|
283
|
+
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
|
|
284
|
+
}, z.core.$strict>>]>>;
|
|
285
|
+
gates: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>>;
|
|
286
|
+
after: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>>>;
|
|
287
|
+
document: z.ZodExactOptional<z.ZodString>;
|
|
288
|
+
targetIncarnation: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
|
|
289
|
+
id: z.ZodString;
|
|
290
|
+
identity: z.ZodString;
|
|
291
|
+
}, z.core.$strict>>>;
|
|
292
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
293
|
+
kind: z.ZodLiteral<"amend">;
|
|
294
|
+
id: z.ZodString;
|
|
295
|
+
at: z.ZodString;
|
|
296
|
+
target: z.ZodExactOptional<z.ZodUnion<readonly [z.ZodString, z.ZodReadonly<z.ZodObject<{
|
|
297
|
+
kind: z.ZodLiteral<"contract">;
|
|
298
|
+
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
|
|
299
|
+
}, z.core.$strict>>]>>;
|
|
300
|
+
targetIncarnation: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
|
|
301
|
+
id: z.ZodString;
|
|
302
|
+
identity: z.ZodString;
|
|
303
|
+
}, z.core.$strict>>>;
|
|
304
|
+
changedSections: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
305
|
+
gates: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>>;
|
|
306
|
+
after: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>>>;
|
|
307
|
+
document: z.ZodExactOptional<z.ZodString>;
|
|
308
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
309
|
+
kind: z.ZodLiteral<"deliver">;
|
|
310
|
+
id: z.ZodString;
|
|
311
|
+
at: z.ZodString;
|
|
312
|
+
candidate: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
|
|
313
|
+
integration: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
|
|
314
|
+
contentId: z.ZodString;
|
|
315
|
+
predecessor: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
|
|
316
|
+
note: z.ZodExactOptional<z.ZodString>;
|
|
317
|
+
requireBranchesToBeUpToDate: z.ZodExactOptional<z.ZodBoolean>;
|
|
318
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
319
|
+
kind: z.ZodLiteral<"reintegrated">;
|
|
320
|
+
id: z.ZodString;
|
|
321
|
+
at: z.ZodString;
|
|
322
|
+
predecessor: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
|
|
323
|
+
integration: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
|
|
324
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
325
|
+
kind: z.ZodLiteral<"attestation">;
|
|
326
|
+
id: z.ZodString;
|
|
327
|
+
at: z.ZodString;
|
|
328
|
+
gate: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
329
|
+
requirement: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").RequirementId, string>>;
|
|
330
|
+
verdict: z.ZodEnum<{
|
|
331
|
+
satisfied: "satisfied";
|
|
332
|
+
unsatisfied: "unsatisfied";
|
|
333
|
+
}>;
|
|
334
|
+
subject: z.ZodString;
|
|
335
|
+
summary: z.ZodExactOptional<z.ZodString>;
|
|
336
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
337
|
+
kind: z.ZodLiteral<"claimed">;
|
|
338
|
+
id: z.ZodString;
|
|
339
|
+
at: z.ZodString;
|
|
340
|
+
deliveryId: z.ZodString;
|
|
341
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
342
|
+
kind: z.ZodLiteral<"arc">;
|
|
343
|
+
id: z.ZodString;
|
|
344
|
+
at: z.ZodString;
|
|
345
|
+
chapter: z.ZodNumber;
|
|
346
|
+
title: z.ZodString;
|
|
347
|
+
body: z.ZodExactOptional<z.ZodString>;
|
|
348
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
349
|
+
kind: z.ZodLiteral<"abandoned">;
|
|
350
|
+
id: z.ZodString;
|
|
351
|
+
at: z.ZodString;
|
|
352
|
+
note: z.ZodExactOptional<z.ZodString>;
|
|
353
|
+
}, z.core.$strict>>]>;
|
|
354
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
355
|
+
kind: z.ZodLiteral<"contract-unknown-history">;
|
|
356
|
+
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
|
|
168
357
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
169
358
|
kind: z.ZodLiteral<"contract-missing">;
|
|
170
359
|
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
|
|
171
360
|
}, z.core.$strict>>]>;
|
|
361
|
+
/** A page, one exact journal record, an unknown address, or absent Contract authority. */
|
|
172
362
|
export type ContractHistoryEvent = z.output<typeof contractHistoryEventSchema>;
|
|
363
|
+
export type ContractDispatchRow = z.output<typeof contractDispatchRowSchema>;
|
|
364
|
+
export type ContractJournalRow = z.output<typeof contractJournalRowSchema>;
|
|
173
365
|
export type ContractHistory = z.output<typeof contractHistorySchema>;
|
|
366
|
+
/** One exact address or one page window; the family's schema rejects contradictory intent. */
|
|
367
|
+
export declare const contractHistoryInputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
368
|
+
item: z.ZodString;
|
|
369
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
370
|
+
before: z.ZodExactOptional<z.ZodNumber>;
|
|
371
|
+
limit: z.ZodExactOptional<z.ZodNumber>;
|
|
372
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
373
|
+
since: z.ZodNumber;
|
|
374
|
+
limit: z.ZodExactOptional<z.ZodNumber>;
|
|
375
|
+
}, z.core.$strict>]>;
|
|
174
376
|
export type ContractHistoryInput = Readonly<{
|
|
175
|
-
|
|
377
|
+
item?: string;
|
|
378
|
+
before?: number;
|
|
379
|
+
since?: number;
|
|
380
|
+
limit?: number;
|
|
176
381
|
}>;
|
|
177
382
|
type MarkdownBindInput = Readonly<{
|
|
178
|
-
|
|
383
|
+
terms: string;
|
|
179
384
|
debt?: DebtId;
|
|
180
385
|
/** A literal target branch; `null` is deliberately targetless; omitted is the Repo worktree's current branch. */
|
|
181
386
|
target?: string | null;
|
|
@@ -193,14 +398,17 @@ export type KeisOptions = Readonly<{
|
|
|
193
398
|
settings?: Settings;
|
|
194
399
|
}>;
|
|
195
400
|
export type AmendInput = Readonly<{
|
|
196
|
-
|
|
401
|
+
/** Explicit existing branch or active Contract; omission retains the target. */
|
|
402
|
+
target?: string;
|
|
403
|
+
edits?: string;
|
|
197
404
|
after?: readonly ContractId[];
|
|
198
405
|
gates?: readonly string[];
|
|
199
406
|
}>;
|
|
200
407
|
export type ArcInput = Readonly<{
|
|
201
|
-
|
|
408
|
+
body: string;
|
|
202
409
|
}>;
|
|
203
410
|
export type ContractListInput = Readonly<{
|
|
411
|
+
selection?: LifecycleSelection;
|
|
204
412
|
limit?: number;
|
|
205
413
|
}>;
|
|
206
414
|
export type ContractList = ContractCatalogue;
|