C14: the generated Go and TypeScript of every seat follow the definitions
Written by seatgen at c62650e4 (GEN3) with mesh-sdk b19fc7fa (reader release): the seat mesh-grants new, every TypeScript contract as index.js with index.d.ts, events with subject and stream. mesh-watchdogs gains its family, which a definition with events needs. Written with the reader as it is: the field needs-approval (node-login-shell) and the section bodies (mesh-conditions) are unknown to it, so they were laid aside for the run; nothing generated carries either. Builds: design 47 G §339, §341, §261, §389 Claude-Session: https://claude.ai/code/session_01JG73KEq4zoDfM9WtYpcQgZ
This commit is contained in:
+149
-32
@@ -2,55 +2,77 @@
|
||||
|
||||
// The contract of the seat "mesh-broker", defined whole (seats/mesh-broker/seat.json): The mesh's bus, and the bus state modules ask of it in requires (design 25 § 12). create, apply, recreate and drop are granted to the bus module's own credential alone.
|
||||
|
||||
export const seat = "mesh-broker";
|
||||
export declare const seat: "mesh-broker";
|
||||
|
||||
export const verbs = {
|
||||
list: "list",
|
||||
show: "show",
|
||||
check: "check",
|
||||
orphans: "orphans",
|
||||
create: "create",
|
||||
apply: "apply",
|
||||
recreate: "recreate",
|
||||
drop: "drop",
|
||||
} as const;
|
||||
export declare const verbs: {
|
||||
readonly list: "list";
|
||||
readonly show: "show";
|
||||
readonly check: "check";
|
||||
readonly orphans: "orphans";
|
||||
readonly create: "create";
|
||||
readonly apply: "apply";
|
||||
readonly recreate: "recreate";
|
||||
readonly drop: "drop";
|
||||
readonly snapshotKept: "snapshot-kept";
|
||||
readonly restoreKept: "restore-kept";
|
||||
};
|
||||
|
||||
export const events = {
|
||||
created: "created",
|
||||
refused: "refused",
|
||||
drifted: "drifted",
|
||||
driftCleared: "drift-cleared",
|
||||
full: "full",
|
||||
fullCleared: "full-cleared",
|
||||
orphaned: "orphaned",
|
||||
recreated: "recreated",
|
||||
dropped: "dropped",
|
||||
} as const;
|
||||
export declare const events: {
|
||||
readonly created: "created";
|
||||
readonly refused: "refused";
|
||||
readonly drifted: "drifted";
|
||||
readonly driftCleared: "drift-cleared";
|
||||
readonly full: "full";
|
||||
readonly fullCleared: "full-cleared";
|
||||
readonly orphaned: "orphaned";
|
||||
readonly recreated: "recreated";
|
||||
readonly dropped: "dropped";
|
||||
};
|
||||
|
||||
export const family = { name: "mesh-broker.events", maxAgeDays: 7 } as const;
|
||||
export declare const family: { readonly name: "mesh-broker.events"; readonly maxAgeDays: 7 };
|
||||
|
||||
export const createdSubject = "mesh.seat.mesh-broker.event.created";
|
||||
export declare const createdSubject: "mesh.seat.mesh-broker.event.created";
|
||||
|
||||
export const refusedSubject = "mesh.seat.mesh-broker.event.refused";
|
||||
export declare const refusedSubject: "mesh.seat.mesh-broker.event.refused";
|
||||
|
||||
export const driftedSubject = "mesh.seat.mesh-broker.event.drifted";
|
||||
export declare const driftedSubject: "mesh.seat.mesh-broker.event.drifted";
|
||||
|
||||
export const driftClearedSubject = "mesh.seat.mesh-broker.event.drift-cleared";
|
||||
export declare const driftClearedSubject: "mesh.seat.mesh-broker.event.drift-cleared";
|
||||
|
||||
export const fullSubject = "mesh.seat.mesh-broker.event.full";
|
||||
export declare const fullSubject: "mesh.seat.mesh-broker.event.full";
|
||||
|
||||
export const fullClearedSubject = "mesh.seat.mesh-broker.event.full-cleared";
|
||||
export declare const fullClearedSubject: "mesh.seat.mesh-broker.event.full-cleared";
|
||||
|
||||
export const orphanedSubject = "mesh.seat.mesh-broker.event.orphaned";
|
||||
export declare const orphanedSubject: "mesh.seat.mesh-broker.event.orphaned";
|
||||
|
||||
export const recreatedSubject = "mesh.seat.mesh-broker.event.recreated";
|
||||
export declare const recreatedSubject: "mesh.seat.mesh-broker.event.recreated";
|
||||
|
||||
export const droppedSubject = "mesh.seat.mesh-broker.event.dropped";
|
||||
export declare const droppedSubject: "mesh.seat.mesh-broker.event.dropped";
|
||||
|
||||
/** live kept data a restore set aside, never removed but by discard-aside */
|
||||
export interface Aside {
|
||||
/** when it was set aside */
|
||||
"at"?: string;
|
||||
/** the form it held */
|
||||
"form"?: number;
|
||||
/** its id, for discard-aside */
|
||||
"id": string;
|
||||
/** the kept data */
|
||||
"kept": string;
|
||||
/** the module */
|
||||
"module": string;
|
||||
/** the name it is kept under on the bus */
|
||||
"name": string;
|
||||
/** its size in bytes */
|
||||
"size"?: number;
|
||||
}
|
||||
|
||||
/** the binding a module receives in its membership for one entry (ADR 0595 §1, §7) */
|
||||
export interface Binding {
|
||||
/** the entry's name on the bus */
|
||||
"bus-name": string;
|
||||
/** the bus name of the state's <state>-objects, where its large values go (design 47 G 58, 399) */
|
||||
"objects"?: string;
|
||||
/** how the bus keeps it */
|
||||
"storage-type": string;
|
||||
/** its subjects, for a stream */
|
||||
@@ -109,6 +131,43 @@ export interface Held {
|
||||
"why"?: string;
|
||||
}
|
||||
|
||||
/** the catch-up tool and its arguments the restore point records (design 47 G 406) */
|
||||
export interface KeptPointCatchUp {
|
||||
"arguments"?: Record<string, unknown>;
|
||||
"tool": string;
|
||||
}
|
||||
|
||||
export interface KeptPointConsumersItem {
|
||||
/** the durable consumer */
|
||||
"consumer": string;
|
||||
/** its acknowledged position */
|
||||
"sequence": number;
|
||||
/** the stream */
|
||||
"stream": string;
|
||||
}
|
||||
|
||||
/** a restore point of one module's kept data on the bus, whole, with its consumers' positions */
|
||||
export interface KeptPoint {
|
||||
/** when it was taken */
|
||||
"at"?: string;
|
||||
/** the catch-up tool and its arguments the restore point records (design 47 G 406) */
|
||||
"catch-up"?: KeptPointCatchUp;
|
||||
/** each durable consumer the module reads with, and its position */
|
||||
"consumers"?: KeptPointConsumersItem[];
|
||||
/** the fingerprint the restore point is taken before */
|
||||
"fingerprint": string;
|
||||
/** its form, the number the holder raises when it changes how it writes it (0 when undeclared) */
|
||||
"form": number;
|
||||
/** the kept data, its local name in the module's manifest */
|
||||
"kept": string;
|
||||
/** the module */
|
||||
"module": string;
|
||||
/** its size in bytes */
|
||||
"size"?: number;
|
||||
/** the restore point's name */
|
||||
"snapshot": string;
|
||||
}
|
||||
|
||||
export interface Named {
|
||||
/** the entry's local name */
|
||||
"local-name": string;
|
||||
@@ -239,6 +298,64 @@ export interface DropAnswer {
|
||||
"snapshot"?: string;
|
||||
}
|
||||
|
||||
/** the catch-up tool the newer manifest declares beside the kept data and its arguments whole, recorded in the restore point (design 47 G 299, 406) */
|
||||
export interface SnapshotKeptInputCatchUp {
|
||||
"arguments"?: Record<string, unknown>;
|
||||
"tool": string;
|
||||
}
|
||||
|
||||
/** is what snapshot-kept takes. */
|
||||
export interface SnapshotKeptInput {
|
||||
/** the catch-up tool the newer manifest declares beside the kept data and its arguments whole, recorded in the restore point (design 47 G 299, 406) */
|
||||
"catch-up"?: SnapshotKeptInputCatchUp;
|
||||
/** the fingerprint the restore point is taken before */
|
||||
"fingerprint": string;
|
||||
/** its form, the number the holder raises when it changes how it writes it (0 when undeclared) */
|
||||
"form": number;
|
||||
/** the kept data, its local name in the module's manifest */
|
||||
"kept": string;
|
||||
/** the module */
|
||||
"module": string;
|
||||
/** why it is taken */
|
||||
"why"?: string;
|
||||
}
|
||||
|
||||
/** is what snapshot-kept answers. */
|
||||
export interface SnapshotKeptAnswer {
|
||||
/** why it failed; set alone */
|
||||
"error"?: string;
|
||||
"point"?: KeptPoint;
|
||||
}
|
||||
|
||||
/** is what restore-kept takes. */
|
||||
export interface RestoreKeptInput {
|
||||
/** set the live data aside and restore nothing */
|
||||
"aside-only"?: boolean;
|
||||
/** the name of data set aside: remove it and restore nothing */
|
||||
"discard-aside"?: string;
|
||||
/** the fingerprint the restore point is taken before */
|
||||
"fingerprint": string;
|
||||
/** its form, the number the holder raises when it changes how it writes it (0 when undeclared) */
|
||||
"form": number;
|
||||
/** the kept data, its local name in the module's manifest */
|
||||
"kept": string;
|
||||
/** the module */
|
||||
"module": string;
|
||||
/** the restore point's name; not with aside-only or discard-aside */
|
||||
"snapshot"?: string;
|
||||
/** why */
|
||||
"why"?: string;
|
||||
}
|
||||
|
||||
/** is what restore-kept answers. */
|
||||
export interface RestoreKeptAnswer {
|
||||
"aside"?: Aside;
|
||||
/** why it failed; set alone */
|
||||
"error"?: string;
|
||||
/** the restore point is the live data now */
|
||||
"restored"?: boolean;
|
||||
}
|
||||
|
||||
/** is the body of the event created. */
|
||||
export type CreatedEvent = Said;
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
// Code generated by seatgen from the seat definitions; DO NOT EDIT.
|
||||
|
||||
// The contract of the seat "mesh-broker", defined whole (seats/mesh-broker/seat.json): The mesh's bus, and the bus state modules ask of it in requires (design 25 § 12). create, apply, recreate and drop are granted to the bus module's own credential alone.
|
||||
|
||||
export const seat = "mesh-broker";
|
||||
|
||||
export const verbs = {
|
||||
list: "list",
|
||||
show: "show",
|
||||
check: "check",
|
||||
orphans: "orphans",
|
||||
create: "create",
|
||||
apply: "apply",
|
||||
recreate: "recreate",
|
||||
drop: "drop",
|
||||
snapshotKept: "snapshot-kept",
|
||||
restoreKept: "restore-kept",
|
||||
};
|
||||
|
||||
export const events = {
|
||||
created: "created",
|
||||
refused: "refused",
|
||||
drifted: "drifted",
|
||||
driftCleared: "drift-cleared",
|
||||
full: "full",
|
||||
fullCleared: "full-cleared",
|
||||
orphaned: "orphaned",
|
||||
recreated: "recreated",
|
||||
dropped: "dropped",
|
||||
};
|
||||
|
||||
export const family = { name: "mesh-broker.events", maxAgeDays: 7 };
|
||||
|
||||
export const createdSubject = "mesh.seat.mesh-broker.event.created";
|
||||
|
||||
export const refusedSubject = "mesh.seat.mesh-broker.event.refused";
|
||||
|
||||
export const driftedSubject = "mesh.seat.mesh-broker.event.drifted";
|
||||
|
||||
export const driftClearedSubject = "mesh.seat.mesh-broker.event.drift-cleared";
|
||||
|
||||
export const fullSubject = "mesh.seat.mesh-broker.event.full";
|
||||
|
||||
export const fullClearedSubject = "mesh.seat.mesh-broker.event.full-cleared";
|
||||
|
||||
export const orphanedSubject = "mesh.seat.mesh-broker.event.orphaned";
|
||||
|
||||
export const recreatedSubject = "mesh.seat.mesh-broker.event.recreated";
|
||||
|
||||
export const droppedSubject = "mesh.seat.mesh-broker.event.dropped";
|
||||
|
||||
@@ -1,13 +1,18 @@
|
||||
{
|
||||
"description": "The contract of the seat mesh-broker, generated from its definition.",
|
||||
"exports": {
|
||||
".": "./src/index.ts"
|
||||
".": {
|
||||
"default": "./index.js",
|
||||
"types": "./index.d.ts"
|
||||
}
|
||||
},
|
||||
"files": [
|
||||
"src"
|
||||
"index.js",
|
||||
"index.d.ts",
|
||||
"parts"
|
||||
],
|
||||
"name": "@novox/mesh-contracts-mesh-broker",
|
||||
"type": "module",
|
||||
"types": "./src/index.ts",
|
||||
"types": "./index.d.ts",
|
||||
"version": "0.1.0"
|
||||
}
|
||||
|
||||
@@ -2,98 +2,44 @@
|
||||
|
||||
// The contract of the seat "mesh-config", defined whole (seats/mesh-config/seat.json): The mesh's config values: read and set one, and the renames still open. mesh-config's own events stay under its own subjects (ADR 0620 §2).
|
||||
|
||||
export const seat = "mesh-config";
|
||||
export declare const seat: "mesh-config";
|
||||
|
||||
export const verbs = {
|
||||
config: "config",
|
||||
renames: "renames",
|
||||
} as const;
|
||||
export declare const verbs: {
|
||||
readonly config: "config";
|
||||
readonly renames: "renames";
|
||||
};
|
||||
|
||||
export const holderEvents = {
|
||||
configChanged: "config-changed",
|
||||
renamed: "renamed",
|
||||
retiring: "retiring",
|
||||
retired: "retired",
|
||||
} as const;
|
||||
export declare const holderEvents: {
|
||||
readonly configChanged: "config-changed";
|
||||
readonly renamed: "renamed";
|
||||
readonly retiring: "retiring";
|
||||
readonly retired: "retired";
|
||||
};
|
||||
|
||||
export function configChangedHolderSubject(holder: string): string {
|
||||
return "mesh.mod." + holder + ".event.config-changed";
|
||||
}
|
||||
export declare function configChangedHolderSubject(holder: string): string;
|
||||
|
||||
export function renamedHolderSubject(holder: string): string {
|
||||
return "mesh.stream." + holder + ".event.renamed";
|
||||
}
|
||||
export declare function renamedHolderSubject(holder: string): string;
|
||||
|
||||
export function retiringHolderSubject(holder: string): string {
|
||||
return "mesh.stream." + holder + ".event.retiring";
|
||||
}
|
||||
export declare function retiringHolderSubject(holder: string): string;
|
||||
|
||||
export function retiredHolderSubject(holder: string): string {
|
||||
return "mesh.stream." + holder + ".event.retired";
|
||||
}
|
||||
export declare function retiredHolderSubject(holder: string): string;
|
||||
|
||||
export const states = {
|
||||
resolved: "resolved",
|
||||
kept: "kept",
|
||||
} as const;
|
||||
export declare const states: {
|
||||
readonly resolved: "resolved";
|
||||
readonly kept: "kept";
|
||||
};
|
||||
|
||||
/** The key of one value of the state resolved under the form "<node>.<module>.<key>". */
|
||||
export function resolvedByNodeModuleKeyKey(node: string, module: string, key: string): string {
|
||||
return node + "." + module + "." + key;
|
||||
}
|
||||
export declare function resolvedByNodeModuleKeyKey(node: string, module: string, key: string): string;
|
||||
|
||||
/** The parts of a key of the form "<node>.<module>.<key>", or undefined for a key of another form. */
|
||||
export function parseResolvedByNodeModuleKeyKey(_key: string): { node: string; module: string; key: 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 module = _rest.slice(0, _at2);
|
||||
_rest = _rest.slice(_at2 + 1);
|
||||
if (_rest === "") return undefined;
|
||||
const key = _rest;
|
||||
_rest = "";
|
||||
if (_rest !== "") return undefined;
|
||||
return { node, module, key };
|
||||
}
|
||||
export declare function parseResolvedByNodeModuleKeyKey(_key: string): { node: string; module: string; key: string } | undefined;
|
||||
|
||||
/** The key of one value of the state kept under the form "<owner>.<repository>.<number>.<node>.<module>.<key>". */
|
||||
export function keptByOwnerRepositoryNumberNodeModuleKeyKey(owner: string, repository: string, number: string, node: string, module: string, key: string): string {
|
||||
return owner + "." + repository + "." + number + "." + node + "." + module + "." + key;
|
||||
}
|
||||
export declare function keptByOwnerRepositoryNumberNodeModuleKeyKey(owner: string, repository: string, number: string, node: string, module: string, key: string): string;
|
||||
|
||||
/** The parts of a key of the form "<owner>.<repository>.<number>.<node>.<module>.<key>", or undefined for a key of another form. */
|
||||
export function parseKeptByOwnerRepositoryNumberNodeModuleKeyKey(_key: string): { owner: string; repository: string; number: string; node: string; module: string; key: string } | undefined {
|
||||
let _rest = _key;
|
||||
const _at0 = _rest.indexOf(".");
|
||||
if (_at0 <= 0) return undefined;
|
||||
const owner = _rest.slice(0, _at0);
|
||||
_rest = _rest.slice(_at0 + 1);
|
||||
const _at2 = _rest.indexOf(".");
|
||||
if (_at2 <= 0) return undefined;
|
||||
const repository = _rest.slice(0, _at2);
|
||||
_rest = _rest.slice(_at2 + 1);
|
||||
const _at4 = _rest.indexOf(".");
|
||||
if (_at4 <= 0) return undefined;
|
||||
const number = _rest.slice(0, _at4);
|
||||
_rest = _rest.slice(_at4 + 1);
|
||||
const _at6 = _rest.indexOf(".");
|
||||
if (_at6 <= 0) return undefined;
|
||||
const node = _rest.slice(0, _at6);
|
||||
_rest = _rest.slice(_at6 + 1);
|
||||
const _at8 = _rest.indexOf(".");
|
||||
if (_at8 <= 0) return undefined;
|
||||
const module = _rest.slice(0, _at8);
|
||||
_rest = _rest.slice(_at8 + 1);
|
||||
if (_rest === "") return undefined;
|
||||
const key = _rest;
|
||||
_rest = "";
|
||||
if (_rest !== "") return undefined;
|
||||
return { owner, repository, number, node, module, key };
|
||||
}
|
||||
export declare function parseKeptByOwnerRepositoryNumberNodeModuleKeyKey(_key: string): { owner: string; repository: string; number: string; node: string; module: string; key: string } | undefined;
|
||||
|
||||
/** is what config takes. */
|
||||
export interface ConfigInput {
|
||||
@@ -0,0 +1,97 @@
|
||||
// Code generated by seatgen from the seat definitions; DO NOT EDIT.
|
||||
|
||||
// The contract of the seat "mesh-config", defined whole (seats/mesh-config/seat.json): The mesh's config values: read and set one, and the renames still open. mesh-config's own events stay under its own subjects (ADR 0620 §2).
|
||||
|
||||
export const seat = "mesh-config";
|
||||
|
||||
export const verbs = {
|
||||
config: "config",
|
||||
renames: "renames",
|
||||
};
|
||||
|
||||
export const holderEvents = {
|
||||
configChanged: "config-changed",
|
||||
renamed: "renamed",
|
||||
retiring: "retiring",
|
||||
retired: "retired",
|
||||
};
|
||||
|
||||
export function configChangedHolderSubject(holder) {
|
||||
return "mesh.mod." + holder + ".event.config-changed";
|
||||
}
|
||||
|
||||
export function renamedHolderSubject(holder) {
|
||||
return "mesh.stream." + holder + ".event.renamed";
|
||||
}
|
||||
|
||||
export function retiringHolderSubject(holder) {
|
||||
return "mesh.stream." + holder + ".event.retiring";
|
||||
}
|
||||
|
||||
export function retiredHolderSubject(holder) {
|
||||
return "mesh.stream." + holder + ".event.retired";
|
||||
}
|
||||
|
||||
export const states = {
|
||||
resolved: "resolved",
|
||||
kept: "kept",
|
||||
};
|
||||
|
||||
/** The key of one value of the state resolved under the form "<node>.<module>.<key>". */
|
||||
export function resolvedByNodeModuleKeyKey(node, module, key) {
|
||||
return node + "." + module + "." + key;
|
||||
}
|
||||
|
||||
/** The parts of a key of the form "<node>.<module>.<key>", or undefined for a key of another form. */
|
||||
export function parseResolvedByNodeModuleKeyKey(_key) {
|
||||
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 module = _rest.slice(0, _at2);
|
||||
_rest = _rest.slice(_at2 + 1);
|
||||
if (_rest === "") return undefined;
|
||||
const key = _rest;
|
||||
_rest = "";
|
||||
if (_rest !== "") return undefined;
|
||||
return { node, module, key };
|
||||
}
|
||||
|
||||
/** The key of one value of the state kept under the form "<owner>.<repository>.<number>.<node>.<module>.<key>". */
|
||||
export function keptByOwnerRepositoryNumberNodeModuleKeyKey(owner, repository, number, node, module, key) {
|
||||
return owner + "." + repository + "." + number + "." + node + "." + module + "." + key;
|
||||
}
|
||||
|
||||
/** The parts of a key of the form "<owner>.<repository>.<number>.<node>.<module>.<key>", or undefined for a key of another form. */
|
||||
export function parseKeptByOwnerRepositoryNumberNodeModuleKeyKey(_key) {
|
||||
let _rest = _key;
|
||||
const _at0 = _rest.indexOf(".");
|
||||
if (_at0 <= 0) return undefined;
|
||||
const owner = _rest.slice(0, _at0);
|
||||
_rest = _rest.slice(_at0 + 1);
|
||||
const _at2 = _rest.indexOf(".");
|
||||
if (_at2 <= 0) return undefined;
|
||||
const repository = _rest.slice(0, _at2);
|
||||
_rest = _rest.slice(_at2 + 1);
|
||||
const _at4 = _rest.indexOf(".");
|
||||
if (_at4 <= 0) return undefined;
|
||||
const number = _rest.slice(0, _at4);
|
||||
_rest = _rest.slice(_at4 + 1);
|
||||
const _at6 = _rest.indexOf(".");
|
||||
if (_at6 <= 0) return undefined;
|
||||
const node = _rest.slice(0, _at6);
|
||||
_rest = _rest.slice(_at6 + 1);
|
||||
const _at8 = _rest.indexOf(".");
|
||||
if (_at8 <= 0) return undefined;
|
||||
const module = _rest.slice(0, _at8);
|
||||
_rest = _rest.slice(_at8 + 1);
|
||||
if (_rest === "") return undefined;
|
||||
const key = _rest;
|
||||
_rest = "";
|
||||
if (_rest !== "") return undefined;
|
||||
return { owner, repository, number, node, module, key };
|
||||
}
|
||||
|
||||
@@ -1,13 +1,18 @@
|
||||
{
|
||||
"description": "The contract of the seat mesh-config, generated from its definition.",
|
||||
"exports": {
|
||||
".": "./src/index.ts"
|
||||
".": {
|
||||
"default": "./index.js",
|
||||
"types": "./index.d.ts"
|
||||
}
|
||||
},
|
||||
"files": [
|
||||
"src"
|
||||
"index.js",
|
||||
"index.d.ts",
|
||||
"parts"
|
||||
],
|
||||
"name": "@novox/mesh-contracts-mesh-config",
|
||||
"type": "module",
|
||||
"types": "./src/index.ts",
|
||||
"types": "./index.d.ts",
|
||||
"version": "0.1.0"
|
||||
}
|
||||
|
||||
+50
-135
@@ -2,181 +2,88 @@
|
||||
|
||||
// The contract of the seat "mesh-module-assigner", defined whole (seats/mesh-module-assigner/seat.json): The seat that places modules on nodes (ADR 0567): the state of assignments and the proposals that change it.
|
||||
|
||||
export const seat = "mesh-module-assigner";
|
||||
export declare const seat: "mesh-module-assigner";
|
||||
|
||||
export const verbs = {
|
||||
assignments: "assignments",
|
||||
proposals: "proposals",
|
||||
propose: "propose",
|
||||
withdraw: "withdraw",
|
||||
again: "again",
|
||||
} as const;
|
||||
export declare const verbs: {
|
||||
readonly assignments: "assignments";
|
||||
readonly proposals: "proposals";
|
||||
readonly propose: "propose";
|
||||
readonly withdraw: "withdraw";
|
||||
readonly again: "again";
|
||||
};
|
||||
|
||||
export const events = {
|
||||
assignmentsProposed: "assignments-proposed",
|
||||
assignmentsWithdrawn: "assignments-withdrawn",
|
||||
assignmentsJudged: "assignments-judged",
|
||||
assignmentsChanged: "assignments-changed",
|
||||
} as const;
|
||||
export declare const events: {
|
||||
readonly assignmentsProposed: "assignments-proposed";
|
||||
readonly assignmentsWithdrawn: "assignments-withdrawn";
|
||||
readonly assignmentsJudged: "assignments-judged";
|
||||
readonly assignmentsChanged: "assignments-changed";
|
||||
};
|
||||
|
||||
export const family = { name: "mesh-module-assigner.events", maxAgeDays: 7 } as const;
|
||||
export declare const family: { readonly name: "mesh-module-assigner.events"; readonly maxAgeDays: 7 };
|
||||
|
||||
export const assignmentsProposedSubject = "mesh.seat.mesh-module-assigner.event.assignments-proposed";
|
||||
export declare const assignmentsProposedSubject: "mesh.seat.mesh-module-assigner.event.assignments-proposed";
|
||||
|
||||
export const assignmentsWithdrawnSubject = "mesh.seat.mesh-module-assigner.event.assignments-withdrawn";
|
||||
export declare const assignmentsWithdrawnSubject: "mesh.seat.mesh-module-assigner.event.assignments-withdrawn";
|
||||
|
||||
export const assignmentsJudgedSubject = "mesh.seat.mesh-module-assigner.event.assignments-judged";
|
||||
export declare const assignmentsJudgedSubject: "mesh.seat.mesh-module-assigner.event.assignments-judged";
|
||||
|
||||
export const assignmentsChangedSubject = "mesh.seat.mesh-module-assigner.event.assignments-changed";
|
||||
export declare const assignmentsChangedSubject: "mesh.seat.mesh-module-assigner.event.assignments-changed";
|
||||
|
||||
export const states = {
|
||||
assignments: "assignments",
|
||||
proposals: "proposals",
|
||||
candidates: "candidates",
|
||||
pulses: "pulses",
|
||||
seatHolders: "seat-holders",
|
||||
} as const;
|
||||
export declare const states: {
|
||||
readonly assignments: "assignments";
|
||||
readonly proposals: "proposals";
|
||||
readonly candidates: "candidates";
|
||||
readonly pulses: "pulses";
|
||||
readonly seatHolders: "seat-holders";
|
||||
};
|
||||
|
||||
/** The key of one value of the state assignments under the form "<node>.node". */
|
||||
export function assignmentsByNodeNodeKey(node: string): string {
|
||||
return node + ".node";
|
||||
}
|
||||
export declare function assignmentsByNodeNodeKey(node: string): string;
|
||||
|
||||
/** The parts of a key of the form "<node>.node", or undefined for a key of another form. */
|
||||
export function parseAssignmentsByNodeNodeKey(_key: string): { node: string } | undefined {
|
||||
let _rest = _key;
|
||||
const _at0 = _rest.indexOf(".node");
|
||||
if (_at0 <= 0) return undefined;
|
||||
const node = _rest.slice(0, _at0);
|
||||
_rest = _rest.slice(_at0 + 5);
|
||||
if (_rest !== "") return undefined;
|
||||
return { node };
|
||||
}
|
||||
export declare function parseAssignmentsByNodeNodeKey(_key: string): { node: string } | undefined;
|
||||
|
||||
/** The key of one value of the state assignments under the form "<node>.<module>". */
|
||||
export function assignmentsByNodeModuleKey(node: string, module: string): string {
|
||||
return node + "." + module;
|
||||
}
|
||||
export declare function assignmentsByNodeModuleKey(node: string, module: string): string;
|
||||
|
||||
/** The parts of a key of the form "<node>.<module>", or undefined for a key of another form. */
|
||||
export function parseAssignmentsByNodeModuleKey(_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 };
|
||||
}
|
||||
export declare function parseAssignmentsByNodeModuleKey(_key: string): { node: string; module: string } | undefined;
|
||||
|
||||
/** The key of one value of the state proposals under the form "<proposal>". */
|
||||
export function proposalsByProposalKey(proposal: string): string {
|
||||
return proposal;
|
||||
}
|
||||
export declare function proposalsByProposalKey(proposal: string): string;
|
||||
|
||||
/** The parts of a key of the form "<proposal>", or undefined for a key of another form. */
|
||||
export function parseProposalsByProposalKey(_key: string): { proposal: string } | undefined {
|
||||
let _rest = _key;
|
||||
if (_rest === "") return undefined;
|
||||
const proposal = _rest;
|
||||
_rest = "";
|
||||
if (_rest !== "") return undefined;
|
||||
return { proposal };
|
||||
}
|
||||
export declare function parseProposalsByProposalKey(_key: string): { proposal: string } | undefined;
|
||||
|
||||
/** The key of one value of the state candidates under the form "<proposal>.<node>". */
|
||||
export function candidatesByProposalNodeKey(proposal: string, node: string): string {
|
||||
return proposal + "." + node;
|
||||
}
|
||||
export declare function candidatesByProposalNodeKey(proposal: string, node: string): string;
|
||||
|
||||
/** The parts of a key of the form "<proposal>.<node>", or undefined for a key of another form. */
|
||||
export function parseCandidatesByProposalNodeKey(_key: string): { proposal: string; node: string } | undefined {
|
||||
let _rest = _key;
|
||||
const _at0 = _rest.indexOf(".");
|
||||
if (_at0 <= 0) return undefined;
|
||||
const proposal = _rest.slice(0, _at0);
|
||||
_rest = _rest.slice(_at0 + 1);
|
||||
if (_rest === "") return undefined;
|
||||
const node = _rest;
|
||||
_rest = "";
|
||||
if (_rest !== "") return undefined;
|
||||
return { proposal, node };
|
||||
}
|
||||
export declare function parseCandidatesByProposalNodeKey(_key: string): { proposal: string; node: string } | undefined;
|
||||
|
||||
/** The key of one value of the state pulses under the form "answer.<proposal>.<node>". */
|
||||
export function pulsesByAnswerProposalNodeKey(proposal: string, node: string): string {
|
||||
return "answer." + proposal + "." + node;
|
||||
}
|
||||
export declare function pulsesByAnswerProposalNodeKey(proposal: string, node: string): string;
|
||||
|
||||
/** The parts of a key of the form "answer.<proposal>.<node>", or undefined for a key of another form. */
|
||||
export function parsePulsesByAnswerProposalNodeKey(_key: string): { proposal: string; node: string } | undefined {
|
||||
let _rest = _key;
|
||||
if (!_rest.startsWith("answer.")) return undefined;
|
||||
_rest = _rest.slice(7);
|
||||
const _at1 = _rest.indexOf(".");
|
||||
if (_at1 <= 0) return undefined;
|
||||
const proposal = _rest.slice(0, _at1);
|
||||
_rest = _rest.slice(_at1 + 1);
|
||||
if (_rest === "") return undefined;
|
||||
const node = _rest;
|
||||
_rest = "";
|
||||
if (_rest !== "") return undefined;
|
||||
return { proposal, node };
|
||||
}
|
||||
export declare function parsePulsesByAnswerProposalNodeKey(_key: string): { proposal: string; node: string } | undefined;
|
||||
|
||||
/** The key of one value of the state pulses under the form "ask.<proposal>". */
|
||||
export function pulsesByAskProposalKey(proposal: string): string {
|
||||
return "ask." + proposal;
|
||||
}
|
||||
export declare function pulsesByAskProposalKey(proposal: string): string;
|
||||
|
||||
/** The parts of a key of the form "ask.<proposal>", or undefined for a key of another form. */
|
||||
export function parsePulsesByAskProposalKey(_key: string): { proposal: string } | undefined {
|
||||
let _rest = _key;
|
||||
if (!_rest.startsWith("ask.")) return undefined;
|
||||
_rest = _rest.slice(4);
|
||||
if (_rest === "") return undefined;
|
||||
const proposal = _rest;
|
||||
_rest = "";
|
||||
if (_rest !== "") return undefined;
|
||||
return { proposal };
|
||||
}
|
||||
export declare function parsePulsesByAskProposalKey(_key: string): { proposal: string } | undefined;
|
||||
|
||||
/** The key of one value of the state seat-holders under the form "<seat>". */
|
||||
export function seatHoldersBySeatKey(seat: string): string {
|
||||
return seat;
|
||||
}
|
||||
export declare function seatHoldersBySeatKey(seat: string): string;
|
||||
|
||||
/** The parts of a key of the form "<seat>", or undefined for a key of another form. */
|
||||
export function parseSeatHoldersBySeatKey(_key: string): { seat: string } | undefined {
|
||||
let _rest = _key;
|
||||
if (_rest === "") return undefined;
|
||||
const seat = _rest;
|
||||
_rest = "";
|
||||
if (_rest !== "") return undefined;
|
||||
return { seat };
|
||||
}
|
||||
export declare function parseSeatHoldersBySeatKey(_key: string): { seat: string } | undefined;
|
||||
|
||||
/** The key of one value of the state seat-holders under the form "<seat>.<node>". */
|
||||
export function seatHoldersBySeatNodeKey(seat: string, node: string): string {
|
||||
return seat + "." + node;
|
||||
}
|
||||
export declare function seatHoldersBySeatNodeKey(seat: string, node: string): string;
|
||||
|
||||
/** The parts of a key of the form "<seat>.<node>", or undefined for a key of another form. */
|
||||
export function parseSeatHoldersBySeatNodeKey(_key: string): { seat: string; node: string } | undefined {
|
||||
let _rest = _key;
|
||||
const _at0 = _rest.indexOf(".");
|
||||
if (_at0 <= 0) return undefined;
|
||||
const seat = _rest.slice(0, _at0);
|
||||
_rest = _rest.slice(_at0 + 1);
|
||||
if (_rest === "") return undefined;
|
||||
const node = _rest;
|
||||
_rest = "";
|
||||
if (_rest !== "") return undefined;
|
||||
return { seat, node };
|
||||
}
|
||||
export declare function parseSeatHoldersBySeatNodeKey(_key: string): { seat: string; node: string } | undefined;
|
||||
|
||||
/** one node's assignments assembled */
|
||||
export interface Assignments {
|
||||
@@ -259,6 +166,10 @@ export interface NodeDecided {
|
||||
export interface PlacedModule {
|
||||
/** by provision, the provider each requirement that keeps data is bound to */
|
||||
"bindings"?: Record<string, Provider>;
|
||||
/** the watched branch this node runs the module from; absent, the first watched branch of the module's registration (design 47 G 14) */
|
||||
"branch"?: string;
|
||||
/** the fingerprint of the build the node runs; absent, the newest delivered of the branch (design 47 G 78, 402) */
|
||||
"build"?: string;
|
||||
"has-layer"?: boolean;
|
||||
"has-mesh-wide"?: boolean;
|
||||
/** this node's settings layer of the module's assignments */
|
||||
@@ -310,6 +221,10 @@ export interface ProposalChangeKeys {
|
||||
/** one change of a proposal */
|
||||
export interface ProposalChange {
|
||||
"bindings"?: Record<string, Provider>;
|
||||
/** for place, the watched branch the node runs the module from; absent, the first watched branch of the module's registration (design 47 G 14) */
|
||||
"branch"?: string;
|
||||
/** for place, the build of that branch the node runs, a return to an earlier build being this one value; absent, the newest delivered of the branch (ADR 0666 section 24) */
|
||||
"build"?: string;
|
||||
"claim"?: string;
|
||||
"decided"?: NodeDecided;
|
||||
"field"?: string;
|
||||
@@ -0,0 +1,180 @@
|
||||
// Code generated by seatgen from the seat definitions; DO NOT EDIT.
|
||||
|
||||
// The contract of the seat "mesh-module-assigner", defined whole (seats/mesh-module-assigner/seat.json): The seat that places modules on nodes (ADR 0567): the state of assignments and the proposals that change it.
|
||||
|
||||
export const seat = "mesh-module-assigner";
|
||||
|
||||
export const verbs = {
|
||||
assignments: "assignments",
|
||||
proposals: "proposals",
|
||||
propose: "propose",
|
||||
withdraw: "withdraw",
|
||||
again: "again",
|
||||
};
|
||||
|
||||
export const events = {
|
||||
assignmentsProposed: "assignments-proposed",
|
||||
assignmentsWithdrawn: "assignments-withdrawn",
|
||||
assignmentsJudged: "assignments-judged",
|
||||
assignmentsChanged: "assignments-changed",
|
||||
};
|
||||
|
||||
export const family = { name: "mesh-module-assigner.events", maxAgeDays: 7 };
|
||||
|
||||
export const assignmentsProposedSubject = "mesh.seat.mesh-module-assigner.event.assignments-proposed";
|
||||
|
||||
export const assignmentsWithdrawnSubject = "mesh.seat.mesh-module-assigner.event.assignments-withdrawn";
|
||||
|
||||
export const assignmentsJudgedSubject = "mesh.seat.mesh-module-assigner.event.assignments-judged";
|
||||
|
||||
export const assignmentsChangedSubject = "mesh.seat.mesh-module-assigner.event.assignments-changed";
|
||||
|
||||
export const states = {
|
||||
assignments: "assignments",
|
||||
proposals: "proposals",
|
||||
candidates: "candidates",
|
||||
pulses: "pulses",
|
||||
seatHolders: "seat-holders",
|
||||
};
|
||||
|
||||
/** The key of one value of the state assignments under the form "<node>.node". */
|
||||
export function assignmentsByNodeNodeKey(node) {
|
||||
return node + ".node";
|
||||
}
|
||||
|
||||
/** The parts of a key of the form "<node>.node", or undefined for a key of another form. */
|
||||
export function parseAssignmentsByNodeNodeKey(_key) {
|
||||
let _rest = _key;
|
||||
const _at0 = _rest.indexOf(".node");
|
||||
if (_at0 <= 0) return undefined;
|
||||
const node = _rest.slice(0, _at0);
|
||||
_rest = _rest.slice(_at0 + 5);
|
||||
if (_rest !== "") return undefined;
|
||||
return { node };
|
||||
}
|
||||
|
||||
/** The key of one value of the state assignments under the form "<node>.<module>". */
|
||||
export function assignmentsByNodeModuleKey(node, module) {
|
||||
return node + "." + module;
|
||||
}
|
||||
|
||||
/** The parts of a key of the form "<node>.<module>", or undefined for a key of another form. */
|
||||
export function parseAssignmentsByNodeModuleKey(_key) {
|
||||
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 proposals under the form "<proposal>". */
|
||||
export function proposalsByProposalKey(proposal) {
|
||||
return proposal;
|
||||
}
|
||||
|
||||
/** The parts of a key of the form "<proposal>", or undefined for a key of another form. */
|
||||
export function parseProposalsByProposalKey(_key) {
|
||||
let _rest = _key;
|
||||
if (_rest === "") return undefined;
|
||||
const proposal = _rest;
|
||||
_rest = "";
|
||||
if (_rest !== "") return undefined;
|
||||
return { proposal };
|
||||
}
|
||||
|
||||
/** The key of one value of the state candidates under the form "<proposal>.<node>". */
|
||||
export function candidatesByProposalNodeKey(proposal, node) {
|
||||
return proposal + "." + node;
|
||||
}
|
||||
|
||||
/** The parts of a key of the form "<proposal>.<node>", or undefined for a key of another form. */
|
||||
export function parseCandidatesByProposalNodeKey(_key) {
|
||||
let _rest = _key;
|
||||
const _at0 = _rest.indexOf(".");
|
||||
if (_at0 <= 0) return undefined;
|
||||
const proposal = _rest.slice(0, _at0);
|
||||
_rest = _rest.slice(_at0 + 1);
|
||||
if (_rest === "") return undefined;
|
||||
const node = _rest;
|
||||
_rest = "";
|
||||
if (_rest !== "") return undefined;
|
||||
return { proposal, node };
|
||||
}
|
||||
|
||||
/** The key of one value of the state pulses under the form "answer.<proposal>.<node>". */
|
||||
export function pulsesByAnswerProposalNodeKey(proposal, node) {
|
||||
return "answer." + proposal + "." + node;
|
||||
}
|
||||
|
||||
/** The parts of a key of the form "answer.<proposal>.<node>", or undefined for a key of another form. */
|
||||
export function parsePulsesByAnswerProposalNodeKey(_key) {
|
||||
let _rest = _key;
|
||||
if (!_rest.startsWith("answer.")) return undefined;
|
||||
_rest = _rest.slice(7);
|
||||
const _at1 = _rest.indexOf(".");
|
||||
if (_at1 <= 0) return undefined;
|
||||
const proposal = _rest.slice(0, _at1);
|
||||
_rest = _rest.slice(_at1 + 1);
|
||||
if (_rest === "") return undefined;
|
||||
const node = _rest;
|
||||
_rest = "";
|
||||
if (_rest !== "") return undefined;
|
||||
return { proposal, node };
|
||||
}
|
||||
|
||||
/** The key of one value of the state pulses under the form "ask.<proposal>". */
|
||||
export function pulsesByAskProposalKey(proposal) {
|
||||
return "ask." + proposal;
|
||||
}
|
||||
|
||||
/** The parts of a key of the form "ask.<proposal>", or undefined for a key of another form. */
|
||||
export function parsePulsesByAskProposalKey(_key) {
|
||||
let _rest = _key;
|
||||
if (!_rest.startsWith("ask.")) return undefined;
|
||||
_rest = _rest.slice(4);
|
||||
if (_rest === "") return undefined;
|
||||
const proposal = _rest;
|
||||
_rest = "";
|
||||
if (_rest !== "") return undefined;
|
||||
return { proposal };
|
||||
}
|
||||
|
||||
/** The key of one value of the state seat-holders under the form "<seat>". */
|
||||
export function seatHoldersBySeatKey(seat) {
|
||||
return seat;
|
||||
}
|
||||
|
||||
/** The parts of a key of the form "<seat>", or undefined for a key of another form. */
|
||||
export function parseSeatHoldersBySeatKey(_key) {
|
||||
let _rest = _key;
|
||||
if (_rest === "") return undefined;
|
||||
const seat = _rest;
|
||||
_rest = "";
|
||||
if (_rest !== "") return undefined;
|
||||
return { seat };
|
||||
}
|
||||
|
||||
/** The key of one value of the state seat-holders under the form "<seat>.<node>". */
|
||||
export function seatHoldersBySeatNodeKey(seat, node) {
|
||||
return seat + "." + node;
|
||||
}
|
||||
|
||||
/** The parts of a key of the form "<seat>.<node>", or undefined for a key of another form. */
|
||||
export function parseSeatHoldersBySeatNodeKey(_key) {
|
||||
let _rest = _key;
|
||||
const _at0 = _rest.indexOf(".");
|
||||
if (_at0 <= 0) return undefined;
|
||||
const seat = _rest.slice(0, _at0);
|
||||
_rest = _rest.slice(_at0 + 1);
|
||||
if (_rest === "") return undefined;
|
||||
const node = _rest;
|
||||
_rest = "";
|
||||
if (_rest !== "") return undefined;
|
||||
return { seat, node };
|
||||
}
|
||||
|
||||
@@ -1,13 +1,18 @@
|
||||
{
|
||||
"description": "The contract of the seat mesh-module-assigner, generated from its definition.",
|
||||
"exports": {
|
||||
".": "./src/index.ts"
|
||||
".": {
|
||||
"default": "./index.js",
|
||||
"types": "./index.d.ts"
|
||||
}
|
||||
},
|
||||
"files": [
|
||||
"src"
|
||||
"index.js",
|
||||
"index.d.ts",
|
||||
"parts"
|
||||
],
|
||||
"name": "@novox/mesh-contracts-mesh-module-assigner",
|
||||
"type": "module",
|
||||
"types": "./src/index.ts",
|
||||
"types": "./index.d.ts",
|
||||
"version": "0.1.0"
|
||||
}
|
||||
|
||||
+160
-150
@@ -1,196 +1,116 @@
|
||||
// Code generated by seatgen from the seat definitions; DO NOT EDIT.
|
||||
|
||||
// The contract of the seat "node-engine", defined whole (seats/node-engine/seat.json): The node seat every node's engine holds (novox/hq ADR 0563, ADR 0618 §3, §4): its hand acts on the operator's warrant, its read-only judgements, its compositions and what it reads of a manifest. Each verb is answered on this node's subject, mesh.seat.node-engine.tool.<verb>.<node>, and each event is published on mesh.seat.node-engine.event.<event>.<node>, the node's name its last token.
|
||||
// The contract of the seat "node-engine", defined whole (seats/node-engine/seat.json): The node seat every node's engine holds (novox/hq ADR 0563, ADR 0618 §3, §4): its hand acts on the operator's warrant, its read-only judgements, its compositions and what it reads of a manifest. Each verb is answered on this node's subject, mesh.seat.node-engine.tool.<verb>.<node>, and each event is published on mesh.seat.node-engine.event.<event>.<node>, the node's name its last token, or, for an event whose subject names <node>, there (composed.<node>, running.<node>.<module>): the grants part grants a node's account only its own node's subjects (ADR 0363 §2).
|
||||
|
||||
export const seat = "node-engine";
|
||||
export declare const seat: "node-engine";
|
||||
|
||||
export const verbs = {
|
||||
handOver: "hand-over",
|
||||
accessAct: "access-act",
|
||||
judgeDirectories: "judge-directories",
|
||||
setuidSearch: "setuid-search",
|
||||
rootFree: "root-free",
|
||||
acts: "acts",
|
||||
packages: "packages",
|
||||
composition: "composition",
|
||||
compose: "compose",
|
||||
composeCandidate: "compose-candidate",
|
||||
manifestReads: "manifest-reads",
|
||||
seatList: "seat-list",
|
||||
seatListAgain: "seat-list-again",
|
||||
} as const;
|
||||
export declare const verbs: {
|
||||
readonly handOver: "hand-over";
|
||||
readonly accessAct: "access-act";
|
||||
readonly judgeDirectories: "judge-directories";
|
||||
readonly setuidSearch: "setuid-search";
|
||||
readonly rootFree: "root-free";
|
||||
readonly acts: "acts";
|
||||
readonly packages: "packages";
|
||||
readonly composition: "composition";
|
||||
readonly compose: "compose";
|
||||
readonly composeCandidate: "compose-candidate";
|
||||
readonly manifestReads: "manifest-reads";
|
||||
readonly seatList: "seat-list";
|
||||
readonly seatListAgain: "seat-list-again";
|
||||
readonly processBuilds: "process-builds";
|
||||
};
|
||||
|
||||
export const events = {
|
||||
asked: "asked",
|
||||
done: "done",
|
||||
refused: "refused",
|
||||
manifestReadsChanged: "manifest-reads-changed",
|
||||
} as const;
|
||||
export declare const events: {
|
||||
readonly asked: "asked";
|
||||
readonly done: "done";
|
||||
readonly refused: "refused";
|
||||
readonly manifestReadsChanged: "manifest-reads-changed";
|
||||
readonly composed: "composed";
|
||||
readonly running: "running";
|
||||
readonly capabilitiesChanged: "capabilities-changed";
|
||||
};
|
||||
|
||||
export const family = { name: "node-engine.events", maxAgeDays: 7 } as const;
|
||||
export declare const family: { readonly name: "node-engine.events"; readonly maxAgeDays: 7 };
|
||||
|
||||
export function askedSubject(caller: string): string {
|
||||
return "mesh.seat.node-engine.event.asked." + caller;
|
||||
}
|
||||
export declare function askedSubject(caller: string): string;
|
||||
|
||||
export function doneSubject(caller: string): string {
|
||||
return "mesh.seat.node-engine.event.done." + caller;
|
||||
}
|
||||
export declare function doneSubject(caller: string): string;
|
||||
|
||||
export function refusedSubject(caller: string): string {
|
||||
return "mesh.seat.node-engine.event.refused." + caller;
|
||||
}
|
||||
export declare function refusedSubject(caller: string): string;
|
||||
|
||||
export function manifestReadsChangedSubject(caller: string): string {
|
||||
return "mesh.seat.node-engine.event.manifest-reads-changed." + caller;
|
||||
}
|
||||
export declare function manifestReadsChangedSubject(caller: string): string;
|
||||
|
||||
export const states = {
|
||||
have: "have",
|
||||
composed: "composed",
|
||||
data: "data",
|
||||
packages: "packages",
|
||||
health: "health",
|
||||
findings: "findings",
|
||||
} as const;
|
||||
export declare function composedSubject(node: string): string;
|
||||
|
||||
export declare const composedSubjectAll: "mesh.seat.node-engine.event.composed.*";
|
||||
|
||||
export declare const runningStream: "SEAT_node-engine_running";
|
||||
|
||||
export declare function runningSubject(node: string, module: string): string;
|
||||
|
||||
export declare const runningSubjectAll: "mesh.seat.node-engine.event.running.*.*";
|
||||
|
||||
export declare function capabilitiesChangedSubject(node: string): string;
|
||||
|
||||
export declare const capabilitiesChangedSubjectAll: "mesh.seat.node-engine.event.capabilities-changed.*";
|
||||
|
||||
export declare const states: {
|
||||
readonly have: "have";
|
||||
readonly composed: "composed";
|
||||
readonly data: "data";
|
||||
readonly packages: "packages";
|
||||
readonly health: "health";
|
||||
readonly findings: "findings";
|
||||
};
|
||||
|
||||
/** The key of one value of the state have under the form "<node>.<module>". */
|
||||
export function haveByNodeModuleKey(node: string, module: string): string {
|
||||
return node + "." + module;
|
||||
}
|
||||
export declare function haveByNodeModuleKey(node: string, module: string): string;
|
||||
|
||||
/** The parts of a key of the form "<node>.<module>", or undefined for a key of another form. */
|
||||
export function parseHaveByNodeModuleKey(_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 };
|
||||
}
|
||||
export declare function parseHaveByNodeModuleKey(_key: string): { node: string; module: string } | undefined;
|
||||
|
||||
/** The key of one value of the state have under the form "<node>.node". */
|
||||
export function haveByNodeNodeKey(node: string): string {
|
||||
return node + ".node";
|
||||
}
|
||||
export declare function haveByNodeNodeKey(node: string): string;
|
||||
|
||||
/** The parts of a key of the form "<node>.node", or undefined for a key of another form. */
|
||||
export function parseHaveByNodeNodeKey(_key: string): { node: string } | undefined {
|
||||
let _rest = _key;
|
||||
const _at0 = _rest.indexOf(".node");
|
||||
if (_at0 <= 0) return undefined;
|
||||
const node = _rest.slice(0, _at0);
|
||||
_rest = _rest.slice(_at0 + 5);
|
||||
if (_rest !== "") return undefined;
|
||||
return { node };
|
||||
}
|
||||
export declare function parseHaveByNodeNodeKey(_key: string): { node: string } | undefined;
|
||||
|
||||
/** The key of one value of the state composed under the form "<node>.<module>.<fingerprint>". */
|
||||
export function composedByNodeModuleFingerprintKey(node: string, module: string, fingerprint: string): string {
|
||||
return node + "." + module + "." + fingerprint;
|
||||
}
|
||||
export declare function composedByNodeModuleFingerprintKey(node: string, module: string, fingerprint: string): string;
|
||||
|
||||
/** The parts of a key of the form "<node>.<module>.<fingerprint>", or undefined for a key of another form. */
|
||||
export function parseComposedByNodeModuleFingerprintKey(_key: string): { node: string; module: string; fingerprint: 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 module = _rest.slice(0, _at2);
|
||||
_rest = _rest.slice(_at2 + 1);
|
||||
if (_rest === "") return undefined;
|
||||
const fingerprint = _rest;
|
||||
_rest = "";
|
||||
if (_rest !== "") return undefined;
|
||||
return { node, module, fingerprint };
|
||||
}
|
||||
export declare function parseComposedByNodeModuleFingerprintKey(_key: string): { node: string; module: string; fingerprint: string } | undefined;
|
||||
|
||||
/** The key of one value of the state composed under the form "<node>.node". */
|
||||
export function composedByNodeNodeKey(node: string): string {
|
||||
return node + ".node";
|
||||
}
|
||||
export declare function composedByNodeNodeKey(node: string): string;
|
||||
|
||||
/** The parts of a key of the form "<node>.node", or undefined for a key of another form. */
|
||||
export function parseComposedByNodeNodeKey(_key: string): { node: string } | undefined {
|
||||
let _rest = _key;
|
||||
const _at0 = _rest.indexOf(".node");
|
||||
if (_at0 <= 0) return undefined;
|
||||
const node = _rest.slice(0, _at0);
|
||||
_rest = _rest.slice(_at0 + 5);
|
||||
if (_rest !== "") return undefined;
|
||||
return { node };
|
||||
}
|
||||
export declare function parseComposedByNodeNodeKey(_key: string): { node: string } | undefined;
|
||||
|
||||
/** The key of one value of the state data under the form "<node>.<module>". */
|
||||
export function dataByNodeModuleKey(node: string, module: string): string {
|
||||
return node + "." + module;
|
||||
}
|
||||
export declare function dataByNodeModuleKey(node: string, module: string): string;
|
||||
|
||||
/** The parts of a key of the form "<node>.<module>", or undefined for a key of another form. */
|
||||
export function parseDataByNodeModuleKey(_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 };
|
||||
}
|
||||
export declare function parseDataByNodeModuleKey(_key: string): { node: string; module: string } | undefined;
|
||||
|
||||
/** The key of one value of the state packages under the form "<node>". */
|
||||
export function packagesByNodeKey(node: string): string {
|
||||
return node;
|
||||
}
|
||||
export declare function packagesByNodeKey(node: string): string;
|
||||
|
||||
/** The parts of a key of the form "<node>", or undefined for a key of another form. */
|
||||
export function parsePackagesByNodeKey(_key: string): { node: string } | undefined {
|
||||
let _rest = _key;
|
||||
if (_rest === "") return undefined;
|
||||
const node = _rest;
|
||||
_rest = "";
|
||||
if (_rest !== "") return undefined;
|
||||
return { node };
|
||||
}
|
||||
export declare function parsePackagesByNodeKey(_key: string): { node: string } | undefined;
|
||||
|
||||
/** The key of one value of the state health under the form "<node>". */
|
||||
export function healthByNodeKey(node: string): string {
|
||||
return node;
|
||||
}
|
||||
export declare function healthByNodeKey(node: string): string;
|
||||
|
||||
/** The parts of a key of the form "<node>", or undefined for a key of another form. */
|
||||
export function parseHealthByNodeKey(_key: string): { node: string } | undefined {
|
||||
let _rest = _key;
|
||||
if (_rest === "") return undefined;
|
||||
const node = _rest;
|
||||
_rest = "";
|
||||
if (_rest !== "") return undefined;
|
||||
return { node };
|
||||
}
|
||||
export declare function parseHealthByNodeKey(_key: string): { node: string } | undefined;
|
||||
|
||||
/** The key of one value of the state findings under the form "<key>". */
|
||||
export function findingsByKeyKey(key: string): string {
|
||||
return key;
|
||||
}
|
||||
export declare function findingsByKeyKey(key: string): string;
|
||||
|
||||
/** The parts of a key of the form "<key>", or undefined for a key of another form. */
|
||||
export function parseFindingsByKeyKey(_key: string): { key: string } | undefined {
|
||||
let _rest = _key;
|
||||
if (_rest === "") return undefined;
|
||||
const key = _rest;
|
||||
_rest = "";
|
||||
if (_rest !== "") return undefined;
|
||||
return { key };
|
||||
}
|
||||
export declare function parseFindingsByKeyKey(_key: string): { key: string } | undefined;
|
||||
|
||||
/** the hashes of the users of the list, sealed to the vault */
|
||||
export interface AccountsHanded {
|
||||
@@ -347,6 +267,34 @@ export interface CandidateRefusal {
|
||||
"why": string;
|
||||
}
|
||||
|
||||
/** a node's capabilities changed, which the assigner places by */
|
||||
export interface CapabilitiesChanged {
|
||||
/** when, RFC 3339 */
|
||||
"at": string;
|
||||
/** its capabilities now */
|
||||
"capabilities": string[];
|
||||
/** the node */
|
||||
"node": string;
|
||||
/** the layout's version */
|
||||
"v": number;
|
||||
}
|
||||
|
||||
/** an entry composed on a node (design 47 *What each step says*) */
|
||||
export interface Composed {
|
||||
/** when, RFC 3339 */
|
||||
"at": string;
|
||||
/** the digest of the composition (design 47 G 404) */
|
||||
"digest": string;
|
||||
/** the fingerprint of the want composed */
|
||||
"fingerprint": string;
|
||||
/** the module */
|
||||
"module": string;
|
||||
/** the node */
|
||||
"node": string;
|
||||
/** the layout's version */
|
||||
"v": number;
|
||||
}
|
||||
|
||||
/** a group */
|
||||
export interface DeclaredGroup {
|
||||
"gid": number;
|
||||
@@ -547,6 +495,32 @@ export interface PlacedDataItem {
|
||||
"protection"?: string;
|
||||
}
|
||||
|
||||
/** the build one process of a module was started with */
|
||||
export interface ProcessBuild {
|
||||
/** the fingerprint handed to it in MESH_FINGERPRINT; empty when it was started without one */
|
||||
"fingerprint"?: string;
|
||||
/** service or container */
|
||||
"kind": "service" | "container";
|
||||
/** the module */
|
||||
"module": string;
|
||||
/** the service's unit or the container's name */
|
||||
"process": string;
|
||||
/** when it was started, RFC 3339 */
|
||||
"started"?: string;
|
||||
/** why its build is unknown: started before the node-engine handed MESH_FINGERPRINT, or the value could not be read */
|
||||
"unknown"?: string;
|
||||
}
|
||||
|
||||
/** what process-builds answers */
|
||||
export interface ProcessBuilds {
|
||||
/** why they could not be read */
|
||||
"error"?: string;
|
||||
/** the node */
|
||||
"node": string;
|
||||
/** every process the node-engine started, by module */
|
||||
"processes": ProcessBuild[];
|
||||
}
|
||||
|
||||
/** the pull from a store a failed apply waits on */
|
||||
export interface PullWait {
|
||||
/** when the pull began */
|
||||
@@ -601,6 +575,24 @@ export interface RootVerdict {
|
||||
"why": string;
|
||||
}
|
||||
|
||||
/** a module running healthy on a node at a build: what the node-engines of other nodes and the grants part decide a seat's pass from (ADR 0660 §2), kept last per subject with no age limit */
|
||||
export interface Running {
|
||||
/** when it was seen running healthy, RFC 3339 */
|
||||
"at": string;
|
||||
/** the fingerprint of the build it runs; none with stopped */
|
||||
"fingerprint"?: string;
|
||||
/** the digest of that build's manifest, the indexer's manifest of it, read by digest from the catalog half */
|
||||
"manifest"?: string;
|
||||
/** the module */
|
||||
"module": string;
|
||||
/** the node */
|
||||
"node": string;
|
||||
/** true when the module no longer runs on the node: no fingerprint or manifest then (design 47 G 365, 404); mesh-sdk's SeatsToPassOn counts such a module as not running there */
|
||||
"stopped"?: boolean;
|
||||
/** the layout's version */
|
||||
"v": number;
|
||||
}
|
||||
|
||||
/** the answer of a read-only judgement */
|
||||
export interface Said {
|
||||
/** the node */
|
||||
@@ -999,6 +991,15 @@ export interface SeatListAgainInput {
|
||||
/** is what seat-list-again answers. */
|
||||
export type SeatListAgainAnswer = SeatList;
|
||||
|
||||
/** is what process-builds takes. */
|
||||
export interface ProcessBuildsInput {
|
||||
/** only this module's processes */
|
||||
"module"?: string;
|
||||
}
|
||||
|
||||
/** is what process-builds answers. */
|
||||
export type ProcessBuildsAnswer = ProcessBuilds;
|
||||
|
||||
/** is the body of the event asked. */
|
||||
export type AskedEvent = ActSaid;
|
||||
|
||||
@@ -1011,6 +1012,15 @@ export type RefusedEvent = ActSaid;
|
||||
/** is the body of the event manifest-reads-changed. */
|
||||
export type ManifestReadsChangedEvent = ManifestReadsChanged;
|
||||
|
||||
/** is the body of the event composed. */
|
||||
export type ComposedEvent = Composed;
|
||||
|
||||
/** is the body of the event running. */
|
||||
export type RunningEvent = Running;
|
||||
|
||||
/** is the body of the event capabilities-changed. */
|
||||
export type CapabilitiesChangedEvent = CapabilitiesChanged;
|
||||
|
||||
/** is one value of the state have under the key <node>.<module>. */
|
||||
export interface HaveByNodeModuleValue {
|
||||
"build"?: string;
|
||||
@@ -0,0 +1,218 @@
|
||||
// Code generated by seatgen from the seat definitions; DO NOT EDIT.
|
||||
|
||||
// The contract of the seat "node-engine", defined whole (seats/node-engine/seat.json): The node seat every node's engine holds (novox/hq ADR 0563, ADR 0618 §3, §4): its hand acts on the operator's warrant, its read-only judgements, its compositions and what it reads of a manifest. Each verb is answered on this node's subject, mesh.seat.node-engine.tool.<verb>.<node>, and each event is published on mesh.seat.node-engine.event.<event>.<node>, the node's name its last token, or, for an event whose subject names <node>, there (composed.<node>, running.<node>.<module>): the grants part grants a node's account only its own node's subjects (ADR 0363 §2).
|
||||
|
||||
export const seat = "node-engine";
|
||||
|
||||
export const verbs = {
|
||||
handOver: "hand-over",
|
||||
accessAct: "access-act",
|
||||
judgeDirectories: "judge-directories",
|
||||
setuidSearch: "setuid-search",
|
||||
rootFree: "root-free",
|
||||
acts: "acts",
|
||||
packages: "packages",
|
||||
composition: "composition",
|
||||
compose: "compose",
|
||||
composeCandidate: "compose-candidate",
|
||||
manifestReads: "manifest-reads",
|
||||
seatList: "seat-list",
|
||||
seatListAgain: "seat-list-again",
|
||||
processBuilds: "process-builds",
|
||||
};
|
||||
|
||||
export const events = {
|
||||
asked: "asked",
|
||||
done: "done",
|
||||
refused: "refused",
|
||||
manifestReadsChanged: "manifest-reads-changed",
|
||||
composed: "composed",
|
||||
running: "running",
|
||||
capabilitiesChanged: "capabilities-changed",
|
||||
};
|
||||
|
||||
export const family = { name: "node-engine.events", maxAgeDays: 7 };
|
||||
|
||||
export function askedSubject(caller) {
|
||||
return "mesh.seat.node-engine.event.asked." + caller;
|
||||
}
|
||||
|
||||
export function doneSubject(caller) {
|
||||
return "mesh.seat.node-engine.event.done." + caller;
|
||||
}
|
||||
|
||||
export function refusedSubject(caller) {
|
||||
return "mesh.seat.node-engine.event.refused." + caller;
|
||||
}
|
||||
|
||||
export function manifestReadsChangedSubject(caller) {
|
||||
return "mesh.seat.node-engine.event.manifest-reads-changed." + caller;
|
||||
}
|
||||
|
||||
export function composedSubject(node) {
|
||||
return "mesh.seat.node-engine.event.composed." + node;
|
||||
}
|
||||
|
||||
export const composedSubjectAll = "mesh.seat.node-engine.event.composed.*";
|
||||
|
||||
export const runningStream = "SEAT_node-engine_running";
|
||||
|
||||
export function runningSubject(node, module) {
|
||||
return "mesh.seat.node-engine.event.running." + node + "." + module;
|
||||
}
|
||||
|
||||
export const runningSubjectAll = "mesh.seat.node-engine.event.running.*.*";
|
||||
|
||||
export function capabilitiesChangedSubject(node) {
|
||||
return "mesh.seat.node-engine.event.capabilities-changed." + node;
|
||||
}
|
||||
|
||||
export const capabilitiesChangedSubjectAll = "mesh.seat.node-engine.event.capabilities-changed.*";
|
||||
|
||||
export const states = {
|
||||
have: "have",
|
||||
composed: "composed",
|
||||
data: "data",
|
||||
packages: "packages",
|
||||
health: "health",
|
||||
findings: "findings",
|
||||
};
|
||||
|
||||
/** The key of one value of the state have under the form "<node>.<module>". */
|
||||
export function haveByNodeModuleKey(node, module) {
|
||||
return node + "." + module;
|
||||
}
|
||||
|
||||
/** The parts of a key of the form "<node>.<module>", or undefined for a key of another form. */
|
||||
export function parseHaveByNodeModuleKey(_key) {
|
||||
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 have under the form "<node>.node". */
|
||||
export function haveByNodeNodeKey(node) {
|
||||
return node + ".node";
|
||||
}
|
||||
|
||||
/** The parts of a key of the form "<node>.node", or undefined for a key of another form. */
|
||||
export function parseHaveByNodeNodeKey(_key) {
|
||||
let _rest = _key;
|
||||
const _at0 = _rest.indexOf(".node");
|
||||
if (_at0 <= 0) return undefined;
|
||||
const node = _rest.slice(0, _at0);
|
||||
_rest = _rest.slice(_at0 + 5);
|
||||
if (_rest !== "") return undefined;
|
||||
return { node };
|
||||
}
|
||||
|
||||
/** The key of one value of the state composed under the form "<node>.<module>.<fingerprint>". */
|
||||
export function composedByNodeModuleFingerprintKey(node, module, fingerprint) {
|
||||
return node + "." + module + "." + fingerprint;
|
||||
}
|
||||
|
||||
/** The parts of a key of the form "<node>.<module>.<fingerprint>", or undefined for a key of another form. */
|
||||
export function parseComposedByNodeModuleFingerprintKey(_key) {
|
||||
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 module = _rest.slice(0, _at2);
|
||||
_rest = _rest.slice(_at2 + 1);
|
||||
if (_rest === "") return undefined;
|
||||
const fingerprint = _rest;
|
||||
_rest = "";
|
||||
if (_rest !== "") return undefined;
|
||||
return { node, module, fingerprint };
|
||||
}
|
||||
|
||||
/** The key of one value of the state composed under the form "<node>.node". */
|
||||
export function composedByNodeNodeKey(node) {
|
||||
return node + ".node";
|
||||
}
|
||||
|
||||
/** The parts of a key of the form "<node>.node", or undefined for a key of another form. */
|
||||
export function parseComposedByNodeNodeKey(_key) {
|
||||
let _rest = _key;
|
||||
const _at0 = _rest.indexOf(".node");
|
||||
if (_at0 <= 0) return undefined;
|
||||
const node = _rest.slice(0, _at0);
|
||||
_rest = _rest.slice(_at0 + 5);
|
||||
if (_rest !== "") return undefined;
|
||||
return { node };
|
||||
}
|
||||
|
||||
/** The key of one value of the state data under the form "<node>.<module>". */
|
||||
export function dataByNodeModuleKey(node, module) {
|
||||
return node + "." + module;
|
||||
}
|
||||
|
||||
/** The parts of a key of the form "<node>.<module>", or undefined for a key of another form. */
|
||||
export function parseDataByNodeModuleKey(_key) {
|
||||
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 packages under the form "<node>". */
|
||||
export function packagesByNodeKey(node) {
|
||||
return node;
|
||||
}
|
||||
|
||||
/** The parts of a key of the form "<node>", or undefined for a key of another form. */
|
||||
export function parsePackagesByNodeKey(_key) {
|
||||
let _rest = _key;
|
||||
if (_rest === "") return undefined;
|
||||
const node = _rest;
|
||||
_rest = "";
|
||||
if (_rest !== "") return undefined;
|
||||
return { node };
|
||||
}
|
||||
|
||||
/** The key of one value of the state health under the form "<node>". */
|
||||
export function healthByNodeKey(node) {
|
||||
return node;
|
||||
}
|
||||
|
||||
/** The parts of a key of the form "<node>", or undefined for a key of another form. */
|
||||
export function parseHealthByNodeKey(_key) {
|
||||
let _rest = _key;
|
||||
if (_rest === "") return undefined;
|
||||
const node = _rest;
|
||||
_rest = "";
|
||||
if (_rest !== "") return undefined;
|
||||
return { node };
|
||||
}
|
||||
|
||||
/** The key of one value of the state findings under the form "<key>". */
|
||||
export function findingsByKeyKey(key) {
|
||||
return key;
|
||||
}
|
||||
|
||||
/** The parts of a key of the form "<key>", or undefined for a key of another form. */
|
||||
export function parseFindingsByKeyKey(_key) {
|
||||
let _rest = _key;
|
||||
if (_rest === "") return undefined;
|
||||
const key = _rest;
|
||||
_rest = "";
|
||||
if (_rest !== "") return undefined;
|
||||
return { key };
|
||||
}
|
||||
|
||||
@@ -1,13 +1,18 @@
|
||||
{
|
||||
"description": "The contract of the seat node-engine, generated from its definition.",
|
||||
"exports": {
|
||||
".": "./src/index.ts"
|
||||
".": {
|
||||
"default": "./index.js",
|
||||
"types": "./index.d.ts"
|
||||
}
|
||||
},
|
||||
"files": [
|
||||
"src"
|
||||
"index.js",
|
||||
"index.d.ts",
|
||||
"parts"
|
||||
],
|
||||
"name": "@novox/mesh-contracts-node-engine",
|
||||
"type": "module",
|
||||
"types": "./src/index.ts",
|
||||
"types": "./index.d.ts",
|
||||
"version": "0.1.0"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user