@astrosheep/keiyaku 4.6.33 → 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 +10 -1
- package/build/plugins/claude/skills/keiyaku-akuma/SKILL.md +5 -2
- package/build/plugins/claude/skills/keiyaku-debt/SKILL.md +2 -1
- package/build/plugins/codex/skills/keiyaku-akuma/SKILL.md +5 -2
- package/build/plugins/codex/skills/keiyaku-debt/SKILL.md +2 -1
- package/build/plugins/opencode/skills/keiyaku-akuma/SKILL.md +5 -2
- package/build/plugins/opencode/skills/keiyaku-debt/SKILL.md +2 -1
- package/build/plugins/pi/keiyaku.ts +1 -135
- package/build/skills/keiyaku-akuma/SKILL.md +5 -2
- package/build/skills/keiyaku-debt/SKILL.md +2 -1
- package/build/src/akuma/akuma-observe.d.ts +8 -0
- package/build/src/akuma/akuma-observe.js +8 -0
- package/build/src/akuma/akuma-owner.d.ts +1 -0
- package/build/src/akuma/akuma-owner.js +3 -5
- package/build/src/akuma/akuma-wait.d.ts +117 -2
- package/build/src/akuma/akuma-wait.js +53 -22
- package/build/src/akuma/akuma.d.ts +6 -1
- package/build/src/akuma/akuma.js +37 -18
- 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 +6 -0
- package/build/src/akuma/heart/index.js +27 -9
- package/build/src/akuma/heart/rows.d.ts +1 -0
- package/build/src/akuma/heart/rows.js +4 -0
- 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.js +4 -9
- package/build/src/akuma/selection-observation.d.ts +622 -0
- package/build/src/akuma/selection-observation.js +7 -3
- 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 +2 -3
- package/build/src/cli/commands/akuma-grammar.js +32 -39
- package/build/src/cli/commands/akuma.js +6 -3
- package/build/src/cli/commands/contract-grammar.js +32 -31
- package/build/src/cli/commands/contract-help.d.ts +3 -3
- package/build/src/cli/commands/contract-help.js +10 -8
- package/build/src/cli/commands/contract.d.ts +3 -3
- package/build/src/cli/commands/contract.js +11 -10
- package/build/src/cli/parse.d.ts +4 -10
- package/build/src/cli/parse.js +1 -1
- package/build/src/cli/render/akuma-activity.d.ts +9 -19
- package/build/src/cli/render/akuma-activity.js +83 -110
- package/build/src/cli/render/catalog.js +3 -2
- package/build/src/cli/render/contract-history.d.ts +1 -3
- package/build/src/cli/render/contract-history.js +68 -49
- package/build/src/cli/render/contract-wait.js +9 -1
- package/build/src/cli/render/kanshi-akuma.d.ts +4 -3
- package/build/src/cli/render/kanshi-akuma.js +26 -21
- package/build/src/cli/render/kanshi.js +34 -43
- package/build/src/cli/render/verbs.js +20 -17
- package/build/src/cli/runtime.js +9 -23
- 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 -1
- package/build/src/debt/index.js +3 -3
- package/build/src/debt/operations.d.ts +2 -1
- package/build/src/git/observe.d.ts +4 -3
- package/build/src/git/observe.js +8 -7
- package/build/src/history.d.ts +26 -0
- package/build/src/history.js +43 -0
- package/build/src/index.d.ts +4 -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 -3
- package/build/src/kanshi/index.js +2 -2
- package/build/src/kanshi/read.js +5 -2
- package/build/src/library/akumas.d.ts +5 -1
- package/build/src/library/akumas.js +11 -5
- package/build/src/library/contract-composition.js +10 -10
- package/build/src/library/contract-creation.js +2 -2
- package/build/src/library/contract-types.d.ts +215 -25
- package/build/src/library/contract-types.js +31 -13
- package/build/src/library/contract-wait.d.ts +205 -0
- package/build/src/library/contract-wait.js +15 -3
- package/build/src/library/input.d.ts +3 -3
- package/build/src/library/input.js +5 -5
- package/build/src/library/kei.js +134 -76
- 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 +5 -1
- package/build/src/library/keiyaku-debt.d.ts +8 -7
- package/build/src/library/keiyaku-identity.d.ts +4 -3
- package/build/src/library/keiyaku-identity.js +30 -7
- package/build/src/library/keiyaku-verbs.d.ts +515 -44
- package/build/src/library/keiyaku-verbs.js +84 -79
- package/build/src/library/keiyaku-wait.d.ts +570 -0
- package/build/src/library/keiyaku-wait.js +25 -8
- package/build/src/library/keiyaku.d.ts +3110 -31
- package/build/src/library/keiyaku.js +335 -407
- package/build/src/library/model-tools.d.ts +268 -70
- package/build/src/library/model-tools.js +110 -95
- package/build/src/library/selection.d.ts +6 -5
- package/build/src/library/selection.js +10 -3
- package/build/src/mcp/adapter.js +1 -1
- package/build/src/mcp/help.d.ts +1 -1
- package/build/src/mcp/help.js +4 -3
- package/build/src/pi/index.d.ts +2 -0
- package/build/src/pi/index.js +23 -7
- package/build/src/pi/status.d.ts +12 -0
- package/build/src/pi/status.js +140 -0
- package/build/src/protocol/operations.d.ts +2 -0
- package/build/src/protocol/operations.js +1 -1
- package/build/src/protocol/read/status.d.ts +12 -4
- package/build/src/protocol/read/status.js +19 -12
- package/build/src/runtime/proc/windows-launch.exe +0 -0
- package/package.json +1 -1
- 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/keiyaku.ts +1 -135
- package/skills/keiyaku-akuma/SKILL.md +5 -2
- package/skills/keiyaku-debt/SKILL.md +2 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ContractId } from "../core/facts/types.js";
|
|
2
|
-
import { type KanshiCountsReport } from "./counts.js";
|
|
2
|
+
import { type KanshiCountsOptions, type KanshiCountsReport } from "./counts.js";
|
|
3
3
|
import { type KanshiBoardOptions, type KanshiScopeInput } from "./read.js";
|
|
4
4
|
import type { KanshiContractReport, KanshiRegionSelection, KanshiReport, RegionRead } from "./report.js";
|
|
5
5
|
export type Kanshi = KanshiHandle;
|
|
@@ -7,7 +7,7 @@ declare class KanshiHandle {
|
|
|
7
7
|
#private;
|
|
8
8
|
constructor(scope: KanshiScopeInput);
|
|
9
9
|
board(options?: KanshiBoardOptions): Promise<KanshiReport>;
|
|
10
|
-
counts(): Promise<KanshiCountsReport>;
|
|
10
|
+
counts(options?: KanshiCountsOptions): Promise<KanshiCountsReport>;
|
|
11
11
|
region(selection?: KanshiRegionSelection | Readonly<Record<string, never>>): Promise<RegionRead>;
|
|
12
12
|
contract(id: ContractId): Promise<KanshiContractReport>;
|
|
13
13
|
}
|
|
@@ -15,7 +15,7 @@ export declare const Kanshi: Readonly<{
|
|
|
15
15
|
of(scope: KanshiScopeInput): Kanshi;
|
|
16
16
|
}>;
|
|
17
17
|
export { kanshiObservationSchema } from "./read.js";
|
|
18
|
-
export type { KanshiCountsReport } from "./counts.js";
|
|
18
|
+
export type { KanshiCountsOptions, KanshiCountsReport } from "./counts.js";
|
|
19
19
|
export { regionReadSchema, kanshiReportSchema, kanshiContractReportSchema, kanshiResultSchema } from "./report.js";
|
|
20
20
|
export type { KanshiBoardOptions, KanshiScopeInput } from "./read.js";
|
|
21
21
|
export type { AkumaKanshiRow, AkumaKanshiWorld, ContractEndpointObservation, ContractHolderObservation, ContractKanshiBoard, ContractKanshiDetail, KanshiContractReport, KanshiResult, KanshiReport, Section, DebtKanshiRow, DebtKanshiWorld, KanshiRegionSelection, RegionDeclaration, RegionOverlap, RegionRead, } from "./report.js";
|
|
@@ -10,8 +10,8 @@ class KanshiHandle {
|
|
|
10
10
|
async board(options = {}) {
|
|
11
11
|
return (await observeKanshi(this.#scope, options)).report;
|
|
12
12
|
}
|
|
13
|
-
counts() {
|
|
14
|
-
return kanshiCounts(this.#scope);
|
|
13
|
+
counts(options = {}) {
|
|
14
|
+
return kanshiCounts(this.#scope, options);
|
|
15
15
|
}
|
|
16
16
|
region(selection = {}) {
|
|
17
17
|
return readKanshiRegion(this.#scope.repo, selection);
|
package/build/src/kanshi/read.js
CHANGED
|
@@ -183,7 +183,7 @@ function contractAssociations(id, holders, dispatches, aliases) {
|
|
|
183
183
|
}
|
|
184
184
|
async function contractsAt(observation, limit, holders, dispatches, aliases) {
|
|
185
185
|
try {
|
|
186
|
-
const source = await readContractCatalogue(observation, limit);
|
|
186
|
+
const source = await readContractCatalogue(observation, limit, "active");
|
|
187
187
|
const rows = (source.rows ?? []).map((row) => {
|
|
188
188
|
const associations = contractAssociations(row.id, holders, dispatches, aliases);
|
|
189
189
|
return { ...row, ...(associations.length === 0 ? {} : { associations }) };
|
|
@@ -267,7 +267,10 @@ export async function observeKanshi(input, options = {}) {
|
|
|
267
267
|
const [aliases, akumaProduct, debts] = await Promise.all([
|
|
268
268
|
aliasesAt(world),
|
|
269
269
|
contract === undefined && world !== null
|
|
270
|
-
? akumaRowsAt(world, akumaLimit, undefined, undefined,
|
|
270
|
+
? akumaRowsAt(world, akumaLimit, undefined, undefined, {
|
|
271
|
+
selection: "active",
|
|
272
|
+
snapshotRows: ROSTER_SNAPSHOT_ROWS,
|
|
273
|
+
}).then(({ kind: _kind, observedAt: _observedAt, ...rows }) => ({
|
|
271
274
|
kind: "present",
|
|
272
275
|
...rows,
|
|
273
276
|
}), boardFailure)
|
|
@@ -3,6 +3,7 @@ import { type AkumaHostOptions } from "../akuma/akuma-instance.js";
|
|
|
3
3
|
import { listAkumaNameDefinitions, type AkumaNameCatalog, type AkumaNameCatalogInput } from "../akuma/archetype.js";
|
|
4
4
|
import type { AkumaCaller } from "../akuma/caller.js";
|
|
5
5
|
import type { AkumaRosterInput } from "../akuma/akuma.js";
|
|
6
|
+
import { type LifecycleSelection } from "../bounded-list.js";
|
|
6
7
|
import { type Dispatch } from "../dispatch/index.js";
|
|
7
8
|
import { type GitReadObservation } from "../git/read-observation.js";
|
|
8
9
|
import { Repo } from "./repo.js";
|
|
@@ -58,7 +59,10 @@ export declare function diagnostic(error: unknown): string;
|
|
|
58
59
|
export declare function aliasesAt(world: WorldRoot | null): Promise<Section<readonly AliasBinding[]>>;
|
|
59
60
|
export declare function dispatchesAt(observation: GitReadObservation): Promise<Section<readonly Dispatch[]>>;
|
|
60
61
|
/** Shared catalogue projection; World bounds snapshots by original roster position. */
|
|
61
|
-
export declare function akumaRowsAt(world: WorldRoot, limit: number, name?: string, caller?: AkumaCaller,
|
|
62
|
+
export declare function akumaRowsAt(world: WorldRoot, limit: number, name?: string, caller?: AkumaCaller, options?: Readonly<{
|
|
63
|
+
snapshotRows?: number;
|
|
64
|
+
selection?: LifecycleSelection;
|
|
65
|
+
}>): Promise<AkumaList>;
|
|
62
66
|
export declare function joinedAkumas<T extends AkumaKanshiWorld>(product: T, aliases: Section<readonly AliasBinding[]>, dispatches: Section<readonly Dispatch[]>): T;
|
|
63
67
|
/** Internal host composition for an explicitly owned launcher. */
|
|
64
68
|
export declare function akumasWithLauncher(world: WorldRoot, spawn: BodyLauncher, host?: AkumaHostOptions): Akumas;
|
|
@@ -34,14 +34,20 @@ class AkumasHandle {
|
|
|
34
34
|
return listAkumaNameDefinitions({ ...values, cwd: this.#world });
|
|
35
35
|
}
|
|
36
36
|
async list(input = {}) {
|
|
37
|
-
const { repo, ...native } = requireInput(input, "Akumas.list input", [
|
|
37
|
+
const { repo, ...native } = requireInput(input, "Akumas.list input", [
|
|
38
|
+
"repo",
|
|
39
|
+
"akumaName",
|
|
40
|
+
"caller",
|
|
41
|
+
"selection",
|
|
42
|
+
"limit",
|
|
43
|
+
]);
|
|
38
44
|
if (repo !== undefined && !(repo instanceof Repo))
|
|
39
45
|
throw new KeiyakuError("invalid-input", "Akumas.list repo must be a Repo");
|
|
40
46
|
const selection = rosterInput(native, true);
|
|
41
47
|
const limit = boundedListLimit(native.limit);
|
|
42
48
|
const path = await World.prove(this.#world);
|
|
43
49
|
const [roster, aliases] = await Promise.all([
|
|
44
|
-
akumaRowsAt(path, limit, selection.akumaName, selection.caller),
|
|
50
|
+
akumaRowsAt(path, limit, selection.akumaName, selection.caller, { selection: selection.selection ?? "active" }),
|
|
45
51
|
aliasesAt(path),
|
|
46
52
|
]);
|
|
47
53
|
if (repo === undefined)
|
|
@@ -149,8 +155,8 @@ export async function dispatchesAt(observation) {
|
|
|
149
155
|
}
|
|
150
156
|
}
|
|
151
157
|
/** Shared catalogue projection; World bounds snapshots by original roster position. */
|
|
152
|
-
export async function akumaRowsAt(world, limit, name, caller,
|
|
153
|
-
const source = await observeAkumaRoster(world, limit, name, caller);
|
|
158
|
+
export async function akumaRowsAt(world, limit, name, caller, options = {}) {
|
|
159
|
+
const source = await observeAkumaRoster(world, limit, name, caller, options.selection);
|
|
154
160
|
const rows = await boundedMap([...(source.rows ?? []).entries()], async ([index, row]) => {
|
|
155
161
|
if (row.kind === "unborn") {
|
|
156
162
|
const { kind: _kind, ...summary } = row;
|
|
@@ -158,7 +164,7 @@ export async function akumaRowsAt(world, limit, name, caller, snapshotRows = 0)
|
|
|
158
164
|
}
|
|
159
165
|
const { kind: _kind, caller, ...facts } = row;
|
|
160
166
|
const summary = { ...facts, ...(caller?.kind === "akuma" ? { parentAkumaId: caller.akumaId } : {}) };
|
|
161
|
-
if (index >= snapshotRows)
|
|
167
|
+
if (index >= (options.snapshotRows ?? 0))
|
|
162
168
|
return summary;
|
|
163
169
|
try {
|
|
164
170
|
return { ...summary, work: projectCurrentWork(await readAkumaTimeline(world, row.id)) };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { KeiyakuError } from "../errors.js";
|
|
2
|
+
import { lifecycleSelection } from "../bounded-list.js";
|
|
2
3
|
import { withGitDecodeChannel } from "../git/read-observation.js";
|
|
3
4
|
import { contractCatalogueOperation, contractObservationOperation, } from "../protocol/operations.js";
|
|
4
5
|
import { resolveContract } from "./contract-address.js";
|
|
@@ -67,18 +68,17 @@ async function reconcileKeiyaku(scope, input, composition = captureLocalContract
|
|
|
67
68
|
}
|
|
68
69
|
}
|
|
69
70
|
export async function listKeis(scope, input) {
|
|
70
|
-
const values = requireInput(input, "Keis.list input");
|
|
71
|
-
|
|
72
|
-
if (key !== "limit")
|
|
73
|
-
throw new KeiyakuError("invalid-input", `Keis.list input has unknown field: ${key}`);
|
|
74
|
-
}
|
|
71
|
+
const values = requireInput(input, "Keis.list input", ["selection", "limit"]);
|
|
72
|
+
const selection = lifecycleSelection(values.selection);
|
|
75
73
|
const limit = values.limit;
|
|
76
|
-
if (limit
|
|
77
|
-
return readContractValue(() => withGitDecodeChannel(scope, (channel) => contractCatalogueOperation({ scope, channel })));
|
|
78
|
-
}
|
|
79
|
-
if (typeof limit !== "number")
|
|
74
|
+
if (limit !== undefined && typeof limit !== "number")
|
|
80
75
|
throw new KeiyakuError("invalid-input", "Contract list limit must be a number");
|
|
81
|
-
return readContractValue(() => withGitDecodeChannel(scope, (channel) => contractCatalogueOperation({
|
|
76
|
+
return readContractValue(() => withGitDecodeChannel(scope, (channel) => contractCatalogueOperation({
|
|
77
|
+
scope,
|
|
78
|
+
channel,
|
|
79
|
+
selection,
|
|
80
|
+
...(limit === undefined ? {} : { limit }),
|
|
81
|
+
})));
|
|
82
82
|
}
|
|
83
83
|
export async function observeKei(scope, input) {
|
|
84
84
|
const values = requireInput(input, "Keis.observe input");
|
|
@@ -22,13 +22,13 @@ function bindTargetSelection(target) {
|
|
|
22
22
|
}
|
|
23
23
|
function bindInput(input, composition) {
|
|
24
24
|
const values = validated(() => requireInput(input, "Keis.bind input"));
|
|
25
|
-
const allowed = values.forkOf === undefined ? ["
|
|
25
|
+
const allowed = values.forkOf === undefined ? ["terms", "debt", "target", "after", "gates"] : ["forkOf", "target"];
|
|
26
26
|
requireInput(values, "Keis.bind input", allowed);
|
|
27
27
|
return validated(() => {
|
|
28
28
|
const forkOf = values.forkOf;
|
|
29
29
|
if (values.target !== undefined && values.target !== null && typeof values.target !== "string")
|
|
30
30
|
throw new KeiyakuError("invalid-input", "target must be a string or null");
|
|
31
|
-
const document = forkOf === undefined ? parseMarkdown(requireMarkdown(values.
|
|
31
|
+
const document = forkOf === undefined ? parseMarkdown(requireMarkdown(values.terms, "terms")) : undefined;
|
|
32
32
|
if (forkOf !== undefined && typeof forkOf !== "string")
|
|
33
33
|
throw new KeiyakuError("invalid-input", "forkOf must be a ContractId");
|
|
34
34
|
const derived = forkOf === undefined ? derivedGates(composition, gateNames(values.gates)) : undefined;
|
|
@@ -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,7 +26,7 @@ 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;
|
|
29
31
|
target: z.ZodExactOptional<z.ZodUnion<readonly [z.ZodString, z.ZodReadonly<z.ZodObject<{
|
|
30
32
|
kind: z.ZodLiteral<"contract">;
|
|
@@ -40,7 +42,7 @@ export declare const contractHistoryEventSchema: z.ZodUnion<readonly [z.ZodReado
|
|
|
40
42
|
document: z.ZodExactOptional<z.ZodString>;
|
|
41
43
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
42
44
|
kind: z.ZodLiteral<"deliver">;
|
|
43
|
-
id: z.
|
|
45
|
+
id: z.ZodString;
|
|
44
46
|
at: z.ZodString;
|
|
45
47
|
candidate: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
|
|
46
48
|
integration: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
|
|
@@ -50,13 +52,13 @@ export declare const contractHistoryEventSchema: z.ZodUnion<readonly [z.ZodReado
|
|
|
50
52
|
requireBranchesToBeUpToDate: z.ZodExactOptional<z.ZodBoolean>;
|
|
51
53
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
52
54
|
kind: z.ZodLiteral<"reintegrated">;
|
|
53
|
-
id: z.
|
|
55
|
+
id: z.ZodString;
|
|
54
56
|
at: z.ZodString;
|
|
55
57
|
predecessor: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
|
|
56
58
|
integration: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
|
|
57
59
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
58
60
|
kind: z.ZodLiteral<"attestation">;
|
|
59
|
-
id: z.
|
|
61
|
+
id: z.ZodString;
|
|
60
62
|
at: z.ZodString;
|
|
61
63
|
gate: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
62
64
|
requirement: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").RequirementId, string>>;
|
|
@@ -68,22 +70,106 @@ export declare const contractHistoryEventSchema: z.ZodUnion<readonly [z.ZodReado
|
|
|
68
70
|
summary: z.ZodExactOptional<z.ZodString>;
|
|
69
71
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
70
72
|
kind: z.ZodLiteral<"claimed">;
|
|
71
|
-
id: z.
|
|
73
|
+
id: z.ZodString;
|
|
72
74
|
at: z.ZodString;
|
|
73
|
-
deliveryId: z.
|
|
75
|
+
deliveryId: z.ZodString;
|
|
74
76
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
75
77
|
kind: z.ZodLiteral<"arc">;
|
|
76
|
-
id: z.
|
|
78
|
+
id: z.ZodString;
|
|
77
79
|
at: z.ZodString;
|
|
78
80
|
chapter: z.ZodNumber;
|
|
79
81
|
title: z.ZodString;
|
|
80
82
|
body: z.ZodExactOptional<z.ZodString>;
|
|
81
83
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
82
84
|
kind: z.ZodLiteral<"abandoned">;
|
|
83
|
-
id: z.
|
|
85
|
+
id: z.ZodString;
|
|
84
86
|
at: z.ZodString;
|
|
85
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;
|
|
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>>;
|
|
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>;
|
|
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>;
|
|
86
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<{
|
|
87
173
|
kind: z.ZodLiteral<"dispatch">;
|
|
88
174
|
at: z.ZodString;
|
|
89
175
|
akumaId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../akuma/identity.js").AkumaId, string>>;
|
|
@@ -91,9 +177,9 @@ export declare const contractHistoryEventSchema: z.ZodUnion<readonly [z.ZodReado
|
|
|
91
177
|
export declare const contractHistorySchema: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
92
178
|
kind: z.ZodLiteral<"contract">;
|
|
93
179
|
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
|
|
94
|
-
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<{
|
|
95
181
|
kind: z.ZodLiteral<"bind">;
|
|
96
|
-
id: z.
|
|
182
|
+
id: z.ZodString;
|
|
97
183
|
at: z.ZodString;
|
|
98
184
|
start: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
|
|
99
185
|
target: z.ZodExactOptional<z.ZodUnion<readonly [z.ZodString, z.ZodReadonly<z.ZodObject<{
|
|
@@ -109,7 +195,7 @@ export declare const contractHistorySchema: z.ZodUnion<readonly [z.ZodReadonly<z
|
|
|
109
195
|
}, z.core.$strict>>>;
|
|
110
196
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
111
197
|
kind: z.ZodLiteral<"amend">;
|
|
112
|
-
id: z.
|
|
198
|
+
id: z.ZodString;
|
|
113
199
|
at: z.ZodString;
|
|
114
200
|
target: z.ZodExactOptional<z.ZodUnion<readonly [z.ZodString, z.ZodReadonly<z.ZodObject<{
|
|
115
201
|
kind: z.ZodLiteral<"contract">;
|
|
@@ -125,7 +211,7 @@ export declare const contractHistorySchema: z.ZodUnion<readonly [z.ZodReadonly<z
|
|
|
125
211
|
document: z.ZodExactOptional<z.ZodString>;
|
|
126
212
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
127
213
|
kind: z.ZodLiteral<"deliver">;
|
|
128
|
-
id: z.
|
|
214
|
+
id: z.ZodString;
|
|
129
215
|
at: z.ZodString;
|
|
130
216
|
candidate: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
|
|
131
217
|
integration: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
|
|
@@ -135,13 +221,13 @@ export declare const contractHistorySchema: z.ZodUnion<readonly [z.ZodReadonly<z
|
|
|
135
221
|
requireBranchesToBeUpToDate: z.ZodExactOptional<z.ZodBoolean>;
|
|
136
222
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
137
223
|
kind: z.ZodLiteral<"reintegrated">;
|
|
138
|
-
id: z.
|
|
224
|
+
id: z.ZodString;
|
|
139
225
|
at: z.ZodString;
|
|
140
226
|
predecessor: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
|
|
141
227
|
integration: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
|
|
142
228
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
143
229
|
kind: z.ZodLiteral<"attestation">;
|
|
144
|
-
id: z.
|
|
230
|
+
id: z.ZodString;
|
|
145
231
|
at: z.ZodString;
|
|
146
232
|
gate: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
147
233
|
requirement: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").RequirementId, string>>;
|
|
@@ -153,26 +239,29 @@ export declare const contractHistorySchema: z.ZodUnion<readonly [z.ZodReadonly<z
|
|
|
153
239
|
summary: z.ZodExactOptional<z.ZodString>;
|
|
154
240
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
155
241
|
kind: z.ZodLiteral<"claimed">;
|
|
156
|
-
id: z.
|
|
242
|
+
id: z.ZodString;
|
|
157
243
|
at: z.ZodString;
|
|
158
|
-
deliveryId: z.
|
|
244
|
+
deliveryId: z.ZodString;
|
|
159
245
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
160
246
|
kind: z.ZodLiteral<"arc">;
|
|
161
|
-
id: z.
|
|
247
|
+
id: z.ZodString;
|
|
162
248
|
at: z.ZodString;
|
|
163
249
|
chapter: z.ZodNumber;
|
|
164
250
|
title: z.ZodString;
|
|
165
251
|
body: z.ZodExactOptional<z.ZodString>;
|
|
166
252
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
167
253
|
kind: z.ZodLiteral<"abandoned">;
|
|
168
|
-
id: z.
|
|
254
|
+
id: z.ZodString;
|
|
169
255
|
at: z.ZodString;
|
|
170
256
|
note: z.ZodExactOptional<z.ZodString>;
|
|
171
|
-
}, z.core.$strict
|
|
257
|
+
}, z.core.$strict>>]>, z.ZodReadonly<z.ZodObject<{
|
|
172
258
|
kind: z.ZodLiteral<"dispatch">;
|
|
173
259
|
at: z.ZodString;
|
|
174
260
|
akumaId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../akuma/identity.js").AkumaId, string>>;
|
|
175
261
|
}, z.core.$strict>>]>>>;
|
|
262
|
+
omitted: z.ZodExactOptional<z.ZodNumber>;
|
|
263
|
+
lowestRetainedSequence: z.ZodExactOptional<z.ZodNumber>;
|
|
264
|
+
highestSequence: z.ZodExactOptional<z.ZodNumber>;
|
|
176
265
|
dispatches: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
|
|
177
266
|
kind: z.ZodLiteral<"unavailable">;
|
|
178
267
|
category: z.ZodEnum<{
|
|
@@ -181,17 +270,117 @@ export declare const contractHistorySchema: z.ZodUnion<readonly [z.ZodReadonly<z
|
|
|
181
270
|
}>;
|
|
182
271
|
diagnostic: z.ZodString;
|
|
183
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>>;
|
|
184
357
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
185
358
|
kind: z.ZodLiteral<"contract-missing">;
|
|
186
359
|
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
|
|
187
360
|
}, z.core.$strict>>]>;
|
|
361
|
+
/** A page, one exact journal record, an unknown address, or absent Contract authority. */
|
|
188
362
|
export type ContractHistoryEvent = z.output<typeof contractHistoryEventSchema>;
|
|
363
|
+
export type ContractDispatchRow = z.output<typeof contractDispatchRowSchema>;
|
|
364
|
+
export type ContractJournalRow = z.output<typeof contractJournalRowSchema>;
|
|
189
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>]>;
|
|
190
376
|
export type ContractHistoryInput = Readonly<{
|
|
191
|
-
|
|
377
|
+
item?: string;
|
|
378
|
+
before?: number;
|
|
379
|
+
since?: number;
|
|
380
|
+
limit?: number;
|
|
192
381
|
}>;
|
|
193
382
|
type MarkdownBindInput = Readonly<{
|
|
194
|
-
|
|
383
|
+
terms: string;
|
|
195
384
|
debt?: DebtId;
|
|
196
385
|
/** A literal target branch; `null` is deliberately targetless; omitted is the Repo worktree's current branch. */
|
|
197
386
|
target?: string | null;
|
|
@@ -211,14 +400,15 @@ export type KeisOptions = Readonly<{
|
|
|
211
400
|
export type AmendInput = Readonly<{
|
|
212
401
|
/** Explicit existing branch or active Contract; omission retains the target. */
|
|
213
402
|
target?: string;
|
|
214
|
-
|
|
403
|
+
edits?: string;
|
|
215
404
|
after?: readonly ContractId[];
|
|
216
405
|
gates?: readonly string[];
|
|
217
406
|
}>;
|
|
218
407
|
export type ArcInput = Readonly<{
|
|
219
|
-
|
|
408
|
+
body: string;
|
|
220
409
|
}>;
|
|
221
410
|
export type ContractListInput = Readonly<{
|
|
411
|
+
selection?: LifecycleSelection;
|
|
222
412
|
limit?: number;
|
|
223
413
|
}>;
|
|
224
414
|
export type ContractList = ContractCatalogue;
|