Regenerate the domain contracts; hand-acts and conditions clients; operator-channel client moves; the seat-set package ends (ADR 0634, ADR 0635; issue 1966)

Claude-Session: https://claude.ai/code/session_01JG73KJNrH5EgFXMKKYSrig
This commit is contained in:
2026-11-05 13:19:37 +01:00
parent 23a759c78b
commit 211bdcaa5e
62 changed files with 3808 additions and 8976 deletions
@@ -0,0 +1,19 @@
{
"description": "The contract of the seat mesh-provisioner, generated from its definition.",
"devDependencies": {
"typescript": "^5.6.0"
},
"exports": {
".": "./dist/index.js"
},
"files": [
"dist"
],
"name": "@novox/mesh-provisioning-contracts-mesh-provisioner",
"scripts": {
"build": "tsc",
"prepare": "tsc"
},
"type": "module",
"version": "0.1.0"
}
@@ -0,0 +1,188 @@
// Code generated by seatgen from the seat definitions; DO NOT EDIT.
// The contract of the seat "mesh-provisioner", defined whole (seats/mesh-provisioner/seat.json): The provisioner (ADR 0349): which domain answers which kind of placeholder, what each module needs, what is applied where.
export const seat = "mesh-provisioner";
export const verbs = {
provisioning: "provisioning",
} as const;
export const states = {
plans: "plans",
provisions: "provisions",
} as const;
/** The key of one value of the state plans under the form "<node>.<module>". */
export function plansByNodeModuleKey(node: string, module: string): string {
return node + "." + module;
}
/** The parts of a key of the form "<node>.<module>", or undefined for a key of another form. */
export function parsePlansByNodeModuleKey(key: string): { node: string; module: string } | undefined {
let rest = key;
const at0 = rest.indexOf(".");
if (at0 <= 0) return undefined;
const node = rest.slice(0, at0);
rest = rest.slice(at0 + 1);
if (rest === "") return undefined;
const module = rest;
rest = "";
if (rest !== "") return undefined;
return { node, module };
}
/** The key of one value of the state provisions under the form "<node>.<consumer>.<provision>". */
export function provisionsByNodeConsumerProvisionKey(node: string, consumer: string, provision: string): string {
return node + "." + consumer + "." + provision;
}
/** The parts of a key of the form "<node>.<consumer>.<provision>", or undefined for a key of another form. */
export function parseProvisionsByNodeConsumerProvisionKey(key: string): { node: string; consumer: string; provision: string } | undefined {
let rest = key;
const at0 = rest.indexOf(".");
if (at0 <= 0) return undefined;
const node = rest.slice(0, at0);
rest = rest.slice(at0 + 1);
const at2 = rest.indexOf(".");
if (at2 <= 0) return undefined;
const consumer = rest.slice(0, at2);
rest = rest.slice(at2 + 1);
if (rest === "") return undefined;
const provision = rest;
rest = "";
if (rest !== "") return undefined;
return { node, consumer, provision };
}
/** The key of one value of the state provisions under the form "<node>.<consumer>.<provision>.<local>". */
export function provisionsByNodeConsumerProvisionLocalKey(node: string, consumer: string, provision: string, local: string): string {
return node + "." + consumer + "." + provision + "." + local;
}
/** The parts of a key of the form "<node>.<consumer>.<provision>.<local>", or undefined for a key of another form. */
export function parseProvisionsByNodeConsumerProvisionLocalKey(key: string): { node: string; consumer: string; provision: string; local: string } | undefined {
let rest = key;
const at0 = rest.indexOf(".");
if (at0 <= 0) return undefined;
const node = rest.slice(0, at0);
rest = rest.slice(at0 + 1);
const at2 = rest.indexOf(".");
if (at2 <= 0) return undefined;
const consumer = rest.slice(0, at2);
rest = rest.slice(at2 + 1);
const at4 = rest.indexOf(".");
if (at4 <= 0) return undefined;
const provision = rest.slice(0, at4);
rest = rest.slice(at4 + 1);
if (rest === "") return undefined;
const local = rest;
rest = "";
if (rest !== "") return undefined;
return { node, consumer, provision, local };
}
/** is what provisioning takes. */
export interface ProvisioningInput {
/** for collect: a collection */
"collection"?: string;
/** a module: for collect, a contributor */
"module"?: string;
/** a node */
"node"?: string;
/** registry (when not given), needs, applied or collect */
"what"?: string;
}
/** is what provisioning answers. */
export type ProvisioningAnswer = Record<string, unknown>;
/** is one value of the state plans under the key <node>.<module>. */
export interface PlansByNodeModuleValue {
"module": string;
"node": string;
/** the module's plan */
"plan": Record<string, unknown>;
"v"?: number;
}
export interface ProvisionsByNodeConsumerProvisionValueConsumer {
"module"?: string;
"node"?: string;
}
export interface ProvisionsByNodeConsumerProvisionValueProvider {
"module"?: string;
"node"?: string;
}
export interface ProvisionsByNodeConsumerProvisionValueReference {
"generation"?: number;
"id"?: string;
}
export interface ProvisionsByNodeConsumerProvisionValueWarrant {
"ask"?: string;
"at"?: string;
"by"?: string;
"option"?: string;
}
/** is one value of the state provisions under the key <node>.<consumer>.<provision>. */
export interface ProvisionsByNodeConsumerProvisionValue {
"ask"?: string;
"at": string;
"consumer": ProvisionsByNodeConsumerProvisionValueConsumer;
"depends-on"?: string[];
"local"?: string;
/** the plan's provision */
"plan"?: Record<string, unknown>;
"provider": ProvisionsByNodeConsumerProvisionValueProvider;
"provision": string;
"reference"?: ProvisionsByNodeConsumerProvisionValueReference;
"state": "asked" | "provided" | "waits" | "failed" | "retiring";
"v"?: number;
"warrant"?: ProvisionsByNodeConsumerProvisionValueWarrant;
"why"?: string;
}
export interface ProvisionsByNodeConsumerProvisionLocalValueConsumer {
"module"?: string;
"node"?: string;
}
export interface ProvisionsByNodeConsumerProvisionLocalValueProvider {
"module"?: string;
"node"?: string;
}
export interface ProvisionsByNodeConsumerProvisionLocalValueReference {
"generation"?: number;
"id"?: string;
}
export interface ProvisionsByNodeConsumerProvisionLocalValueWarrant {
"ask"?: string;
"at"?: string;
"by"?: string;
"option"?: string;
}
/** is one value of the state provisions under the key <node>.<consumer>.<provision>.<local>. */
export interface ProvisionsByNodeConsumerProvisionLocalValue {
"ask"?: string;
"at": string;
"consumer": ProvisionsByNodeConsumerProvisionLocalValueConsumer;
"depends-on"?: string[];
"local"?: string;
/** the plan's provision */
"plan"?: Record<string, unknown>;
"provider": ProvisionsByNodeConsumerProvisionLocalValueProvider;
"provision": string;
"reference"?: ProvisionsByNodeConsumerProvisionLocalValueReference;
"state": "asked" | "provided" | "waits" | "failed" | "retiring";
"v"?: number;
"warrant"?: ProvisionsByNodeConsumerProvisionLocalValueWarrant;
"why"?: string;
}
@@ -0,0 +1,14 @@
{
"compilerOptions": {
"target": "ES2022",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"declaration": true,
"outDir": "dist",
"rootDir": "src",
"strict": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true
},
"include": ["src/**/*.ts"]
}