@inventarch/runtime 3.4.1 → 3.5.0
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/SPEC.md +7 -1
- package/dist/method/bindings.d.ts +51 -0
- package/dist/method/bindings.d.ts.map +1 -0
- package/dist/method/bindings.js +166 -0
- package/dist/method/bindings.js.map +1 -0
- package/dist/method/catalogue.d.ts +39 -0
- package/dist/method/catalogue.d.ts.map +1 -0
- package/dist/method/catalogue.js +126 -0
- package/dist/method/catalogue.js.map +1 -0
- package/dist/method/errors.d.ts +28 -0
- package/dist/method/errors.d.ts.map +1 -0
- package/dist/method/errors.js +39 -0
- package/dist/method/errors.js.map +1 -0
- package/dist/method/index.d.ts +30 -0
- package/dist/method/index.d.ts.map +1 -0
- package/dist/method/index.js +16 -0
- package/dist/method/index.js.map +1 -0
- package/dist/method/installed-kits.d.ts +49 -0
- package/dist/method/installed-kits.d.ts.map +1 -0
- package/dist/method/installed-kits.js +194 -0
- package/dist/method/installed-kits.js.map +1 -0
- package/dist/method/kit-root.d.ts +31 -0
- package/dist/method/kit-root.d.ts.map +1 -0
- package/dist/method/kit-root.js +120 -0
- package/dist/method/kit-root.js.map +1 -0
- package/dist/method/kits.d.ts +130 -0
- package/dist/method/kits.d.ts.map +1 -0
- package/dist/method/kits.js +381 -0
- package/dist/method/kits.js.map +1 -0
- package/dist/method/packet.d.ts +51 -0
- package/dist/method/packet.d.ts.map +1 -0
- package/dist/method/packet.js +62 -0
- package/dist/method/packet.js.map +1 -0
- package/dist/method/pin.d.ts +71 -0
- package/dist/method/pin.d.ts.map +1 -0
- package/dist/method/pin.js +164 -0
- package/dist/method/pin.js.map +1 -0
- package/dist/method/reader.d.ts +38 -0
- package/dist/method/reader.d.ts.map +1 -0
- package/dist/method/reader.js +97 -0
- package/dist/method/reader.js.map +1 -0
- package/dist/method/registry.d.ts +39 -0
- package/dist/method/registry.d.ts.map +1 -0
- package/dist/method/registry.js +129 -0
- package/dist/method/registry.js.map +1 -0
- package/dist/method/releases.d.ts +47 -0
- package/dist/method/releases.d.ts.map +1 -0
- package/dist/method/releases.js +104 -0
- package/dist/method/releases.js.map +1 -0
- package/dist/method/resolve.d.ts +44 -0
- package/dist/method/resolve.d.ts.map +1 -0
- package/dist/method/resolve.js +448 -0
- package/dist/method/resolve.js.map +1 -0
- package/dist/method/retained.d.ts +8 -0
- package/dist/method/retained.d.ts.map +1 -0
- package/dist/method/retained.js +182 -0
- package/dist/method/retained.js.map +1 -0
- package/dist/method/root.d.ts +12 -0
- package/dist/method/root.d.ts.map +1 -0
- package/dist/method/root.js +43 -0
- package/dist/method/root.js.map +1 -0
- package/dist/method/session.d.ts +64 -0
- package/dist/method/session.d.ts.map +1 -0
- package/dist/method/session.js +109 -0
- package/dist/method/session.js.map +1 -0
- package/dist/packet-host.d.ts +1 -1
- package/dist/packet-host.d.ts.map +1 -1
- package/dist/packet.d.ts +1 -1
- package/dist/packet.d.ts.map +1 -1
- package/dist/packet.js +3 -2
- package/dist/packet.js.map +1 -1
- package/package.json +8 -4
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import type { ReleaseRow } from './releases.js';
|
|
2
|
+
/**
|
|
3
|
+
* Method kits as text sources. A kit folder holds `.ia/release.json` (its id and version), `.ia/src` (the records),
|
|
4
|
+
* `.ia/distributions.lock.json` (the language base it pins), `releases.json` (format 1 or 2) and optionally the
|
|
5
|
+
* sidecars `checks.json`, `delivery.json`, `bindings.json` and `onwrite.json`. Files `.ia/release.json` declares under
|
|
6
|
+
* `assets` sit beside `.ia/`. Kits are found in two places: a bundled folder of kit folders, then the IA home's
|
|
7
|
+
* `kits/<folder>/<version>/`. A workspace whose lock installs kits from an npm package of kits also reads them from its
|
|
8
|
+
* store (installed-kits.ts), origin `installed`.
|
|
9
|
+
*/
|
|
10
|
+
export type KitOrigin = 'bundled' | 'home' | 'installed';
|
|
11
|
+
export interface Kit {
|
|
12
|
+
readonly folder: string;
|
|
13
|
+
readonly dir: string;
|
|
14
|
+
readonly id: string;
|
|
15
|
+
readonly version: string | undefined;
|
|
16
|
+
readonly latest: ReleaseRow | null;
|
|
17
|
+
readonly releases: readonly ReleaseRow[];
|
|
18
|
+
readonly origin: KitOrigin;
|
|
19
|
+
/** The folder whose `scripts/` the implementation digest covers beside the kit: the carrying plugin, or a retained copy of it. */
|
|
20
|
+
readonly carrier?: string;
|
|
21
|
+
/** The retained method bytes this kit was read from. */
|
|
22
|
+
readonly retained?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface KitSources {
|
|
25
|
+
/** A folder of kit folders: the `IA_KITS_DIR` or `--kits` a host names. */
|
|
26
|
+
readonly bundled?: string;
|
|
27
|
+
/** The IA home's kit store, `<IA home>/kits`; null reads none. */
|
|
28
|
+
readonly home?: string | null;
|
|
29
|
+
}
|
|
30
|
+
export declare const SIDECARS: readonly ["checks.json", "delivery.json", "bindings.json", "onwrite.json"];
|
|
31
|
+
/** The IA home: IA_HOME when absolute, else `~/.ia`. A relative value is refused, never resolved against the working directory. */
|
|
32
|
+
export declare function iaHome(env?: NodeJS.ProcessEnv, home?: string): string;
|
|
33
|
+
export declare function walk(dir: string): string[];
|
|
34
|
+
export declare const isText: (path: string) => boolean;
|
|
35
|
+
export declare const lf: (bytes: Buffer) => Buffer;
|
|
36
|
+
export declare const sha256File: (path: string) => string;
|
|
37
|
+
/** The files `.ia/release.json` declares beside `.ia/`, sorted by path; one that escapes the kit or is missing refuses. */
|
|
38
|
+
export declare function declaredAssets(kitDir: string): readonly {
|
|
39
|
+
readonly rel: string;
|
|
40
|
+
readonly abs: string;
|
|
41
|
+
}[];
|
|
42
|
+
/** One digest over a kit's sources (paths and LF-normalized bytes): `.ia/`, the declared assets, then each sidecar present. */
|
|
43
|
+
export declare function sourcesDigest(kitDir: string): string;
|
|
44
|
+
/**
|
|
45
|
+
* A fail-closed execution fingerprint: every carried kit file but its release history, then the carrier's `scripts/`
|
|
46
|
+
* when the kit has a carrier. Appending a release never changes it.
|
|
47
|
+
*/
|
|
48
|
+
export declare function implementationDigest(kit: Pick<Kit, 'dir' | 'carrier'>, carrier?: string | undefined): string;
|
|
49
|
+
export declare function readDescriptor(kitDir: string): Record<string, unknown>;
|
|
50
|
+
export declare function kitAt(kitDir: string, folder: string, origin: KitOrigin, carrier?: string): Kit;
|
|
51
|
+
/** One flat folder of kits: each subfolder holding a releases.json. */
|
|
52
|
+
export declare function folderKits(dir: string, origin?: KitOrigin, carrier?: string): Kit[];
|
|
53
|
+
/** The kits installed in the IA home: for each `<folder>`, every `<version>` whose descriptor names that version, newest first. */
|
|
54
|
+
export declare function homeKits(dir: string | null | undefined): Kit[];
|
|
55
|
+
/**
|
|
56
|
+
* The carrier of a bundled kit folder: the plugin that sets `IA_KITS_DIR` to its `config/kits`, when that folder sits in
|
|
57
|
+
* a plugin with `scripts/`. Its scripts are part of the implementation digest the plugin's own resolver records.
|
|
58
|
+
*/
|
|
59
|
+
export declare function carrierOf(bundled: string | undefined): string | undefined;
|
|
60
|
+
/** The kits a resolve can read: the bundled folder first, then the newest home version of each kit it does not carry. */
|
|
61
|
+
export declare function listKits(sources: KitSources): Kit[];
|
|
62
|
+
/** A kit by id or by folder. */
|
|
63
|
+
export declare function findKit(ref: string, kits: readonly Kit[]): Kit;
|
|
64
|
+
export interface KitRecordName {
|
|
65
|
+
readonly system: string;
|
|
66
|
+
readonly word: string;
|
|
67
|
+
readonly name: string;
|
|
68
|
+
}
|
|
69
|
+
/** A kit's record names as (system, word, name), read from its text sources. */
|
|
70
|
+
export declare function kitRecordNames(kitDir: string): KitRecordName[];
|
|
71
|
+
/** The identity a kit record of a fixed-placement word resolves to; a name holding a slash is already an identity. */
|
|
72
|
+
export declare function identityOf(word: string, name: string): string | undefined;
|
|
73
|
+
export interface KitCheck {
|
|
74
|
+
readonly argv: readonly string[];
|
|
75
|
+
readonly cwd: string;
|
|
76
|
+
readonly record: string;
|
|
77
|
+
readonly timeout: number;
|
|
78
|
+
readonly arguments: unknown;
|
|
79
|
+
}
|
|
80
|
+
/** The checks a kit's runner may run (`checks.json`); a name that is not a @check record of the kit is dropped into `undeclared`. */
|
|
81
|
+
export declare function kitChecks(kit: Pick<Kit, 'dir'>): {
|
|
82
|
+
readonly checks: Readonly<Record<string, KitCheck>>;
|
|
83
|
+
readonly undeclared: readonly string[];
|
|
84
|
+
};
|
|
85
|
+
/** The capabilities a kit delivers whole (`delivery.json`); a name that is not a @capability record goes to `undeclared`. */
|
|
86
|
+
export declare function kitDelivery(kit: Pick<Kit, 'dir'>): {
|
|
87
|
+
readonly whole: readonly string[];
|
|
88
|
+
readonly undeclared: readonly string[];
|
|
89
|
+
};
|
|
90
|
+
export interface Recommendation {
|
|
91
|
+
readonly kit: string;
|
|
92
|
+
readonly capability: string;
|
|
93
|
+
readonly profile?: string;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* What a kit recommends a repository bind, and what it resolves outside a workspace (`bindings.json`). A key whose
|
|
97
|
+
* capability or profile is not a record of the kit is dropped into `undeclared`; `unbound` is null when the kit lists none.
|
|
98
|
+
*/
|
|
99
|
+
export declare function kitBindings(kit: Pick<Kit, 'dir' | 'id'>): {
|
|
100
|
+
readonly recommend: Readonly<Record<string, Recommendation>>;
|
|
101
|
+
readonly unbound: readonly string[] | null;
|
|
102
|
+
readonly undeclared: readonly string[];
|
|
103
|
+
};
|
|
104
|
+
export interface LockedPackage {
|
|
105
|
+
readonly id: string;
|
|
106
|
+
readonly version: string;
|
|
107
|
+
readonly archive?: string;
|
|
108
|
+
readonly dependencies?: readonly string[];
|
|
109
|
+
}
|
|
110
|
+
/** The distribution lock of the IA workspace at root, or undefined; `entries` holds its non-release rows (installed-kits.ts). */
|
|
111
|
+
export declare function readLock(root: string): {
|
|
112
|
+
readonly packages?: readonly LockedPackage[];
|
|
113
|
+
readonly entries?: readonly unknown[];
|
|
114
|
+
} | undefined;
|
|
115
|
+
/**
|
|
116
|
+
* The installed kit: the lock's release row for the kit's id, or the kit row of a package entry that names it, which the
|
|
117
|
+
* engine installs as an ordinary release (contract C7b).
|
|
118
|
+
*/
|
|
119
|
+
export declare function installedKit(root: string, kitId: string): LockedPackage | undefined;
|
|
120
|
+
/**
|
|
121
|
+
* A pin is usable only while the kit's release, source digest and implementation still match it; historical release
|
|
122
|
+
* metadata is not historical bytes, so drift refuses rather than relabelling current instructions.
|
|
123
|
+
*/
|
|
124
|
+
export declare function assertPinnedKit(kit: Kit, pinned: {
|
|
125
|
+
readonly version?: string | null | undefined;
|
|
126
|
+
readonly archive?: string | null | undefined;
|
|
127
|
+
readonly sources?: string | null | undefined;
|
|
128
|
+
readonly implementation?: string | null | undefined;
|
|
129
|
+
}): void;
|
|
130
|
+
//# sourceMappingURL=kits.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kits.d.ts","sourceRoot":"","sources":["../../src/method/kits.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD;;;;;;;GAOG;AACH,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,WAAW,CAAC;AACzD,MAAM,WAAW,GAAG;IAClB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC,QAAQ,CAAC,MAAM,EAAE,UAAU,GAAG,IAAI,CAAC;IACnC,QAAQ,CAAC,QAAQ,EAAE,SAAS,UAAU,EAAE,CAAC;IACzC,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAC;IAC3B,kIAAkI;IAClI,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,wDAAwD;IACxD,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;CAC5B;AACD,MAAM,WAAW,UAAU;IACzB,2EAA2E;IA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AAQ,CAAC,OAAO,CAAC,EAAE,SAAS,OAAO,EAAE,CAAA;CAAE,GAAG,SAAS,CAIrG;AACD;;;GAGG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,aAAa,GAAG,SAAS,CAWnF;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAC7B,GAAG,EAAE,GAAG,EACR,MAAM,EAAE;IACN,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC7C,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC7C,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC7C,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACrD,GACA,IAAI,CAyBN"}
|
|
@@ -0,0 +1,381 @@
|
|
|
1
|
+
import { createHash } from 'node:crypto';
|
|
2
|
+
import { existsSync, lstatSync, readdirSync, readFileSync, statSync } from 'node:fs';
|
|
3
|
+
import { homedir } from 'node:os';
|
|
4
|
+
import { isAbsolute, join, relative, resolve, sep } from 'node:path';
|
|
5
|
+
import { ENTRIES } from './bindings.js';
|
|
6
|
+
import { MethodError } from './errors.js';
|
|
7
|
+
import { compareVersions, readReleases } from './releases.js';
|
|
8
|
+
const TEXT = /\.(?:ia|json|md|mjs|txt)$/i;
|
|
9
|
+
const NUL = String.fromCharCode(0);
|
|
10
|
+
export const SIDECARS = ['checks.json', 'delivery.json', 'bindings.json', 'onwrite.json'];
|
|
11
|
+
const driveRelative = (value) => process.platform === 'win32' && /^[A-Za-z]:/.test(value) && value[2] !== '/' && value[2] !== sep;
|
|
12
|
+
/** The IA home: IA_HOME when absolute, else `~/.ia`. A relative value is refused, never resolved against the working directory. */
|
|
13
|
+
export function iaHome(env = process.env, home = homedir()) {
|
|
14
|
+
const value = env['IA_HOME'];
|
|
15
|
+
if (!value)
|
|
16
|
+
return join(home, '.ia');
|
|
17
|
+
if (!isAbsolute(value) || driveRelative(value))
|
|
18
|
+
throw new MethodError(`IA_HOME must be an absolute path: ${value}`, 'IA-CORE-HOME-RELATIVE');
|
|
19
|
+
return resolve(value);
|
|
20
|
+
}
|
|
21
|
+
export function walk(dir) {
|
|
22
|
+
return readdirSync(dir)
|
|
23
|
+
.sort()
|
|
24
|
+
.flatMap((name) => {
|
|
25
|
+
const path = join(dir, name);
|
|
26
|
+
const entry = lstatSync(path);
|
|
27
|
+
if (entry.isSymbolicLink() || (!entry.isDirectory() && !entry.isFile()))
|
|
28
|
+
throw new MethodError(`method content must be regular files and directories: ${path}`, 'IA-CORE-CLOSURE-INTEGRITY');
|
|
29
|
+
return entry.isDirectory() ? walk(path) : [path];
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
export const isText = (path) => TEXT.test(path);
|
|
33
|
+
export const lf = (bytes) => Buffer.from(bytes.toString('utf8').replace(/\r\n/g, '\n'));
|
|
34
|
+
export const sha256File = (path) => createHash('sha256').update(readFileSync(path)).digest('hex');
|
|
35
|
+
/** The files `.ia/release.json` declares beside `.ia/`, sorted by path; one that escapes the kit or is missing refuses. */
|
|
36
|
+
export function declaredAssets(kitDir) {
|
|
37
|
+
const descriptorPath = join(kitDir, '.ia', 'release.json');
|
|
38
|
+
if (!existsSync(descriptorPath))
|
|
39
|
+
return [];
|
|
40
|
+
const assets = (JSON.parse(readFileSync(descriptorPath, 'utf8')).assets ??
|
|
41
|
+
[]);
|
|
42
|
+
const root = resolve(kitDir);
|
|
43
|
+
return assets
|
|
44
|
+
.map((asset) => asset?.path)
|
|
45
|
+
.sort()
|
|
46
|
+
.map((path) => {
|
|
47
|
+
if (typeof path !== 'string' || path === '')
|
|
48
|
+
throw new MethodError(`${descriptorPath}: an asset needs a path`, 'IA-CORE-KIT');
|
|
49
|
+
const abs = resolve(root, path);
|
|
50
|
+
const rel = relative(root, abs).replace(/\\/g, '/');
|
|
51
|
+
if (isAbsolute(path) ||
|
|
52
|
+
/^[A-Za-z]:/.test(path) ||
|
|
53
|
+
rel === '' ||
|
|
54
|
+
rel === '..' ||
|
|
55
|
+
rel.startsWith('../') ||
|
|
56
|
+
isAbsolute(rel))
|
|
57
|
+
throw new MethodError(`declared asset ${path} is absolute or leaves the kit`, 'IA-CORE-KIT');
|
|
58
|
+
if (!existsSync(abs) || !statSync(abs).isFile())
|
|
59
|
+
throw new MethodError(`declared asset ${path} is missing from ${kitDir}`, 'IA-CORE-KIT');
|
|
60
|
+
return { rel, abs };
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
/** One digest over a kit's sources (paths and LF-normalized bytes): `.ia/`, the declared assets, then each sidecar present. */
|
|
64
|
+
export function sourcesDigest(kitDir) {
|
|
65
|
+
const hash = createHash('sha256');
|
|
66
|
+
const ia = join(kitDir, '.ia');
|
|
67
|
+
const feed = (rel, path) => {
|
|
68
|
+
hash.update(rel + NUL);
|
|
69
|
+
const bytes = readFileSync(path);
|
|
70
|
+
hash.update(isText(path) ? lf(bytes) : bytes);
|
|
71
|
+
hash.update(NUL);
|
|
72
|
+
};
|
|
73
|
+
for (const path of walk(ia).filter((p) => !relative(ia, p).startsWith('distributions') && !relative(ia, p).startsWith('work')))
|
|
74
|
+
feed(relative(kitDir, path).replace(/\\/g, '/'), path);
|
|
75
|
+
for (const { rel, abs } of declaredAssets(kitDir))
|
|
76
|
+
feed(rel, abs);
|
|
77
|
+
for (const name of SIDECARS)
|
|
78
|
+
if (existsSync(join(kitDir, name)))
|
|
79
|
+
feed(name, join(kitDir, name));
|
|
80
|
+
return hash.digest('hex');
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* A fail-closed execution fingerprint: every carried kit file but its release history, then the carrier's `scripts/`
|
|
84
|
+
* when the kit has a carrier. Appending a release never changes it.
|
|
85
|
+
*/
|
|
86
|
+
export function implementationDigest(kit, carrier = kit.carrier) {
|
|
87
|
+
const hash = createHash('sha256');
|
|
88
|
+
const roots = [
|
|
89
|
+
['kit', kit.dir],
|
|
90
|
+
['scripts', carrier === undefined ? undefined : join(carrier, 'scripts')],
|
|
91
|
+
];
|
|
92
|
+
for (const [label, root] of roots) {
|
|
93
|
+
if (root === undefined || !existsSync(root))
|
|
94
|
+
continue;
|
|
95
|
+
for (const file of walk(root)) {
|
|
96
|
+
const path = relative(root, file).replace(/\\/g, '/');
|
|
97
|
+
if (path.startsWith('.ia/distributions/') || path.startsWith('.ia/work/'))
|
|
98
|
+
continue;
|
|
99
|
+
if (label === 'kit' && (path === 'releases.json' || path.startsWith('releases/')))
|
|
100
|
+
continue;
|
|
101
|
+
hash
|
|
102
|
+
.update(label + '/' + path + NUL)
|
|
103
|
+
.update(readFileSync(file))
|
|
104
|
+
.update(NUL);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
return hash.digest('hex');
|
|
108
|
+
}
|
|
109
|
+
export function readDescriptor(kitDir) {
|
|
110
|
+
const path = join(kitDir, '.ia', 'release.json');
|
|
111
|
+
if (!existsSync(path))
|
|
112
|
+
throw new MethodError(`${kitDir} carries no .ia/release.json`, 'IA-CORE-KIT');
|
|
113
|
+
return JSON.parse(readFileSync(path, 'utf8'));
|
|
114
|
+
}
|
|
115
|
+
export function kitAt(kitDir, folder, origin, carrier) {
|
|
116
|
+
const releases = readReleases(kitDir);
|
|
117
|
+
const descriptor = existsSync(join(kitDir, '.ia', 'release.json')) ? readDescriptor(kitDir) : {};
|
|
118
|
+
const latest = (releases.latest
|
|
119
|
+
? releases.releases.find((release) => release.version === releases.latest)
|
|
120
|
+
: releases.releases.at(-1)) ?? null;
|
|
121
|
+
const version = typeof descriptor['version'] === 'string' ? descriptor['version'] : undefined;
|
|
122
|
+
return {
|
|
123
|
+
folder,
|
|
124
|
+
dir: kitDir,
|
|
125
|
+
id: releases.kit,
|
|
126
|
+
version,
|
|
127
|
+
latest,
|
|
128
|
+
releases: releases.releases,
|
|
129
|
+
origin,
|
|
130
|
+
...(carrier === undefined ? {} : { carrier }),
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
/** One flat folder of kits: each subfolder holding a releases.json. */
|
|
134
|
+
export function folderKits(dir, origin = 'bundled', carrier) {
|
|
135
|
+
if (!existsSync(dir))
|
|
136
|
+
return [];
|
|
137
|
+
return readdirSync(dir)
|
|
138
|
+
.sort()
|
|
139
|
+
.filter((name) => existsSync(join(dir, name, 'releases.json')))
|
|
140
|
+
.map((folder) => kitAt(join(dir, folder), folder, origin, carrier));
|
|
141
|
+
}
|
|
142
|
+
/** The kits installed in the IA home: for each `<folder>`, every `<version>` whose descriptor names that version, newest first. */
|
|
143
|
+
export function homeKits(dir) {
|
|
144
|
+
if (!dir || !existsSync(dir))
|
|
145
|
+
return [];
|
|
146
|
+
const found = [];
|
|
147
|
+
for (const folder of readdirSync(dir).sort()) {
|
|
148
|
+
const base = join(dir, folder);
|
|
149
|
+
if (!statSync(base).isDirectory())
|
|
150
|
+
continue;
|
|
151
|
+
const versions = readdirSync(base)
|
|
152
|
+
.filter((version) => existsSync(join(base, version, 'releases.json')))
|
|
153
|
+
.sort((x, y) => compareVersions(y, x));
|
|
154
|
+
for (const version of versions) {
|
|
155
|
+
const kit = kitAt(join(base, version), folder, 'home');
|
|
156
|
+
if (kit.version === version)
|
|
157
|
+
found.push(kit);
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
return found;
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* The carrier of a bundled kit folder: the plugin that sets `IA_KITS_DIR` to its `config/kits`, when that folder sits in
|
|
164
|
+
* a plugin with `scripts/`. Its scripts are part of the implementation digest the plugin's own resolver records.
|
|
165
|
+
*/
|
|
166
|
+
export function carrierOf(bundled) {
|
|
167
|
+
if (bundled === undefined)
|
|
168
|
+
return undefined;
|
|
169
|
+
const dir = resolve(bundled);
|
|
170
|
+
const plugin = resolve(dir, '..', '..');
|
|
171
|
+
return dir === join(plugin, 'config', 'kits') && existsSync(join(plugin, 'scripts')) ? plugin : undefined;
|
|
172
|
+
}
|
|
173
|
+
/** The kits a resolve can read: the bundled folder first, then the newest home version of each kit it does not carry. */
|
|
174
|
+
export function listKits(sources) {
|
|
175
|
+
const carried = sources.bundled === undefined ? [] : folderKits(sources.bundled, 'bundled', carrierOf(sources.bundled));
|
|
176
|
+
const ids = new Set(carried.map((kit) => kit.id));
|
|
177
|
+
const carrier = carrierOf(sources.bundled);
|
|
178
|
+
const fromHome = [];
|
|
179
|
+
for (const kit of homeKits(sources.home))
|
|
180
|
+
if (!ids.has(kit.id)) {
|
|
181
|
+
ids.add(kit.id);
|
|
182
|
+
fromHome.push(carrier === undefined ? kit : { ...kit, carrier });
|
|
183
|
+
}
|
|
184
|
+
return [...carried, ...fromHome];
|
|
185
|
+
}
|
|
186
|
+
/** A kit by id or by folder. */
|
|
187
|
+
export function findKit(ref, kits) {
|
|
188
|
+
const kit = kits.find((k) => k.id === ref) ?? kits.find((k) => k.folder === ref);
|
|
189
|
+
if (!kit)
|
|
190
|
+
throw new MethodError(`no kit ${ref} is carried by this plugin or installed in the IA home; known: ${kits.map((k) => k.id).join(', ') || 'none'}`, 'IA-CORE-KIT-UNKNOWN');
|
|
191
|
+
return kit;
|
|
192
|
+
}
|
|
193
|
+
/** A kit's record names as (system, word, name), read from its text sources. */
|
|
194
|
+
export function kitRecordNames(kitDir) {
|
|
195
|
+
const systems = join(kitDir, '.ia', 'src', 'systems');
|
|
196
|
+
const names = [];
|
|
197
|
+
if (!existsSync(systems))
|
|
198
|
+
return names;
|
|
199
|
+
for (const system of readdirSync(systems).sort()) {
|
|
200
|
+
const dir = join(systems, system);
|
|
201
|
+
const records = join(dir, 'records');
|
|
202
|
+
const files = [
|
|
203
|
+
join(dir, 'system.ia'),
|
|
204
|
+
...(existsSync(records)
|
|
205
|
+
? readdirSync(records)
|
|
206
|
+
.filter((f) => f.endsWith('.ia'))
|
|
207
|
+
.sort()
|
|
208
|
+
.map((f) => join(records, f))
|
|
209
|
+
: []),
|
|
210
|
+
].filter((f) => existsSync(f));
|
|
211
|
+
for (const file of files)
|
|
212
|
+
for (const m of readFileSync(file, 'utf8').matchAll(/^@([a-z][a-z-]*) ([a-z0-9][a-z0-9-]*)/gm))
|
|
213
|
+
names.push({ system, word: m[1], name: m[2] });
|
|
214
|
+
}
|
|
215
|
+
const key = (r) => `${r.system}/${r.word}/${r.name}`;
|
|
216
|
+
return names.sort((a, b) => (key(a) < key(b) ? -1 : 1));
|
|
217
|
+
}
|
|
218
|
+
const PLACEMENTS = {
|
|
219
|
+
capability: 'agent-composition-system/definition/capability/',
|
|
220
|
+
'agent-profile': 'agent-composition-system/binding/agent-profile/',
|
|
221
|
+
playbook: 'governance-system/definition/procedure/',
|
|
222
|
+
convention: 'governance-system/governance/convention/',
|
|
223
|
+
principle: 'governance-system/governance/principle/',
|
|
224
|
+
law: 'governance-system/governance/law/',
|
|
225
|
+
check: 'compliance-system/check/gate/',
|
|
226
|
+
contract: 'compliance-system/contract/signature/',
|
|
227
|
+
mandate: 'agent-system/policy/mandate/',
|
|
228
|
+
};
|
|
229
|
+
/** The identity a kit record of a fixed-placement word resolves to; a name holding a slash is already an identity. */
|
|
230
|
+
export function identityOf(word, name) {
|
|
231
|
+
if (name.includes('/'))
|
|
232
|
+
return name;
|
|
233
|
+
const prefix = PLACEMENTS[word];
|
|
234
|
+
return prefix === undefined ? undefined : prefix + name;
|
|
235
|
+
}
|
|
236
|
+
const plainObject = (value) => typeof value === 'object' && value !== null && !Array.isArray(value);
|
|
237
|
+
const readSidecar = (kit, name) => {
|
|
238
|
+
const path = join(kit.dir, name);
|
|
239
|
+
return existsSync(path) ? JSON.parse(readFileSync(path, 'utf8')) : undefined;
|
|
240
|
+
};
|
|
241
|
+
/** The checks a kit's runner may run (`checks.json`); a name that is not a @check record of the kit is dropped into `undeclared`. */
|
|
242
|
+
export function kitChecks(kit) {
|
|
243
|
+
const path = join(kit.dir, 'checks.json');
|
|
244
|
+
const parsed = readSidecar(kit, 'checks.json');
|
|
245
|
+
if (parsed === undefined)
|
|
246
|
+
return { checks: {}, undeclared: [] };
|
|
247
|
+
if (parsed['format'] !== 1 || !plainObject(parsed['checks']))
|
|
248
|
+
throw new MethodError(`${path} is malformed (format 1 with a checks object)`, 'IA-CORE-KIT');
|
|
249
|
+
const declared = new Set(kitRecordNames(kit.dir)
|
|
250
|
+
.filter((r) => r.word === 'check')
|
|
251
|
+
.map((r) => r.name));
|
|
252
|
+
const checks = {}, undeclared = [];
|
|
253
|
+
for (const [name, value] of Object.entries(parsed['checks'])) {
|
|
254
|
+
if (!declared.has(name)) {
|
|
255
|
+
undeclared.push(name);
|
|
256
|
+
continue;
|
|
257
|
+
}
|
|
258
|
+
const spec = (value ?? {});
|
|
259
|
+
const argv = spec['argv'];
|
|
260
|
+
if (!Array.isArray(argv) || argv.length === 0 || !argv.every((a) => typeof a === 'string'))
|
|
261
|
+
throw new MethodError(`${path}: check ${name} needs a non-empty argv of strings`, 'IA-CORE-KIT');
|
|
262
|
+
const timeout = spec['timeout'];
|
|
263
|
+
if (timeout !== undefined && !(Number.isInteger(timeout) && timeout > 0))
|
|
264
|
+
throw new MethodError(`${path}: check ${name} needs a timeout that is a positive integer of seconds`, 'IA-CORE-KIT');
|
|
265
|
+
checks[name] = {
|
|
266
|
+
argv: argv,
|
|
267
|
+
cwd: spec['cwd'] ?? 'workspace',
|
|
268
|
+
record: spec['record'] ?? `compliance-system/check/gate/${name}`,
|
|
269
|
+
timeout: timeout ?? 600,
|
|
270
|
+
arguments: spec['arguments'],
|
|
271
|
+
};
|
|
272
|
+
}
|
|
273
|
+
return { checks, undeclared };
|
|
274
|
+
}
|
|
275
|
+
/** The capabilities a kit delivers whole (`delivery.json`); a name that is not a @capability record goes to `undeclared`. */
|
|
276
|
+
export function kitDelivery(kit) {
|
|
277
|
+
const path = join(kit.dir, 'delivery.json');
|
|
278
|
+
const parsed = readSidecar(kit, 'delivery.json');
|
|
279
|
+
if (parsed === undefined)
|
|
280
|
+
return { whole: [], undeclared: [] };
|
|
281
|
+
const listed = parsed['whole'];
|
|
282
|
+
if (parsed['format'] !== 1 ||
|
|
283
|
+
!Array.isArray(listed) ||
|
|
284
|
+
!listed.every((name) => typeof name === 'string' && name !== ''))
|
|
285
|
+
throw new MethodError(`${path} is malformed (format 1 with a whole list of capability names)`, 'IA-CORE-KIT');
|
|
286
|
+
const declared = new Set(kitRecordNames(kit.dir)
|
|
287
|
+
.filter((r) => r.word === 'capability')
|
|
288
|
+
.map((r) => r.name));
|
|
289
|
+
const whole = [], undeclared = [];
|
|
290
|
+
for (const name of listed)
|
|
291
|
+
(declared.has(name) ? whole : undeclared).push(name);
|
|
292
|
+
return { whole, undeclared };
|
|
293
|
+
}
|
|
294
|
+
/**
|
|
295
|
+
* What a kit recommends a repository bind, and what it resolves outside a workspace (`bindings.json`). A key whose
|
|
296
|
+
* capability or profile is not a record of the kit is dropped into `undeclared`; `unbound` is null when the kit lists none.
|
|
297
|
+
*/
|
|
298
|
+
export function kitBindings(kit) {
|
|
299
|
+
const path = join(kit.dir, 'bindings.json');
|
|
300
|
+
const parsed = readSidecar(kit, 'bindings.json');
|
|
301
|
+
if (parsed === undefined)
|
|
302
|
+
return { recommend: {}, unbound: null, undeclared: [] };
|
|
303
|
+
const keyPattern = new RegExp(`^(?:${ENTRIES.join('|')})\\.(?:[a-z][a-z0-9-]*|\\*)$`);
|
|
304
|
+
const listed = parsed['unbound'];
|
|
305
|
+
if (parsed['format'] !== 1 ||
|
|
306
|
+
!plainObject(parsed['recommend']) ||
|
|
307
|
+
(listed !== undefined &&
|
|
308
|
+
!(Array.isArray(listed) && listed.every((name) => typeof name === 'string' && name !== ''))))
|
|
309
|
+
throw new MethodError(`${path} is malformed (format 1 with a recommend object and an optional unbound list of capability names)`, 'IA-CORE-KIT');
|
|
310
|
+
const names = kitRecordNames(kit.dir);
|
|
311
|
+
const capabilities = new Set(names.filter((r) => r.word === 'capability').map((r) => r.name));
|
|
312
|
+
const profiles = new Set(names.filter((r) => r.word === 'agent-profile').map((r) => r.name));
|
|
313
|
+
const recommend = {}, undeclared = [];
|
|
314
|
+
for (const [key, value] of Object.entries(parsed['recommend'])) {
|
|
315
|
+
const row = value;
|
|
316
|
+
if (!keyPattern.test(key) ||
|
|
317
|
+
!plainObject(value) ||
|
|
318
|
+
typeof row['capability'] !== 'string' ||
|
|
319
|
+
(row['profile'] !== undefined && typeof row['profile'] !== 'string'))
|
|
320
|
+
throw new MethodError(`${path}: ${key} needs an <entry>.<activity> key (entry ${ENTRIES.join(', ')}) and { capability, profile? }`, 'IA-CORE-KIT');
|
|
321
|
+
const capability = row['capability'], profile = row['profile'];
|
|
322
|
+
if (!capabilities.has(capability) || (profile && !profiles.has(profile))) {
|
|
323
|
+
undeclared.push(key);
|
|
324
|
+
continue;
|
|
325
|
+
}
|
|
326
|
+
recommend[key] = { kit: kit.id, capability, ...(profile ? { profile } : {}) };
|
|
327
|
+
}
|
|
328
|
+
let unbound = null;
|
|
329
|
+
if (listed) {
|
|
330
|
+
unbound = [];
|
|
331
|
+
for (const name of listed)
|
|
332
|
+
(capabilities.has(name) ? unbound : undeclared).push(name);
|
|
333
|
+
}
|
|
334
|
+
return { recommend, unbound, undeclared };
|
|
335
|
+
}
|
|
336
|
+
/** The distribution lock of the IA workspace at root, or undefined; `entries` holds its non-release rows (installed-kits.ts). */
|
|
337
|
+
export function readLock(root) {
|
|
338
|
+
const lockPath = join(root, '.ia', 'distributions.lock.json');
|
|
339
|
+
if (!existsSync(lockPath))
|
|
340
|
+
return undefined;
|
|
341
|
+
return JSON.parse(readFileSync(lockPath, 'utf8'));
|
|
342
|
+
}
|
|
343
|
+
/**
|
|
344
|
+
* The installed kit: the lock's release row for the kit's id, or the kit row of a package entry that names it, which the
|
|
345
|
+
* engine installs as an ordinary release (contract C7b).
|
|
346
|
+
*/
|
|
347
|
+
export function installedKit(root, kitId) {
|
|
348
|
+
const lock = readLock(root);
|
|
349
|
+
const row = (lock?.packages ?? []).find((pkg) => pkg.id === kitId);
|
|
350
|
+
if (row !== undefined)
|
|
351
|
+
return row;
|
|
352
|
+
for (const entry of Array.isArray(lock?.entries) ? lock.entries : []) {
|
|
353
|
+
const kits = entry.kits;
|
|
354
|
+
if (entry.kind !== 'package' || !Array.isArray(kits))
|
|
355
|
+
continue;
|
|
356
|
+
const kit = kits.find((candidate) => candidate?.id === kitId);
|
|
357
|
+
if (kit !== undefined)
|
|
358
|
+
return kit;
|
|
359
|
+
}
|
|
360
|
+
return undefined;
|
|
361
|
+
}
|
|
362
|
+
/**
|
|
363
|
+
* A pin is usable only while the kit's release, source digest and implementation still match it; historical release
|
|
364
|
+
* metadata is not historical bytes, so drift refuses rather than relabelling current instructions.
|
|
365
|
+
*/
|
|
366
|
+
export function assertPinnedKit(kit, pinned) {
|
|
367
|
+
if (!pinned || !/^[a-f0-9]{64}$/.test(pinned.sources ?? ''))
|
|
368
|
+
throw new MethodError(`kit ${kit.id} has no verifiable source pin; explicitly rebind it`, 'IA-CORE-PIN-UNAVAILABLE');
|
|
369
|
+
const current = {
|
|
370
|
+
version: kit.latest?.version ?? kit.version ?? null,
|
|
371
|
+
archive: kit.latest?.archive ?? null,
|
|
372
|
+
sources: sourcesDigest(kit.dir),
|
|
373
|
+
};
|
|
374
|
+
if (current.version !== pinned.version ||
|
|
375
|
+
current.archive !== (pinned.archive ?? null) ||
|
|
376
|
+
current.sources !== pinned.sources)
|
|
377
|
+
throw new MethodError(`kit ${kit.id} no longer matches its pinned release and source bytes; restore the exact release or explicitly rebind`, 'IA-CORE-PIN-UNAVAILABLE');
|
|
378
|
+
if (!pinned.implementation || pinned.implementation !== implementationDigest(kit))
|
|
379
|
+
throw new MethodError(`kit ${kit.id} runner/helper bytes are not verified against this pin; restore the exact implementation or explicitly rebind`, 'IA-CORE-PIN-UNAVAILABLE');
|
|
380
|
+
}
|
|
381
|
+
//# sourceMappingURL=kits.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":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AAI,CAAC,MAAM,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,IAAI,EAAE,CAAC;QACzD,MAAM,IAAI,WAAW,CACnB,OAAO,GAAG,CAAC,EAAE,qDAAqD,EAClE,yBAAyB,CAC1B,CAAC;IACJ,MAAM,OAAO,GAAG;QACd,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,IAAI,GAAG,CAAC,OAAO,IAAI,IAAI;QACnD,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,IAAI,IAAI;QACpC,OAAO,EAAE,aAAa,CAAC,GAAG,CAAC,GAAG,CAAC;KAChC,CAAC;IACF,IACE,OAAO,CAAC,OAAO,KAAK,MAAM,CAAC,OAAO;QAClC,OAAO,CAAC,OAAO,KAAK,CAAC,MAAM,CAAC,OAAO,IAAI,IAAI,CAAC;QAC5C,OAAO,CAAC,OAAO,KAAK,MAAM,CAAC,OAAO;QAElC,MAAM,IAAI,WAAW,CACnB,OAAO,GAAG,CAAC,EAAE,wGAAwG,EACrH,yBAAyB,CAC1B,CAAC;IACJ,IAAI,CAAC,MAAM,CAAC,cAAc,IAAI,MAAM,CAAC,cAAc,KAAK,oBAAoB,CAAC,GAAG,CAAC;QAC/E,MAAM,IAAI,WAAW,CACnB,OAAO,GAAG,CAAC,EAAE,+GAA+G,EAC5H,yBAAyB,CAC1B,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The method packet and its canonical digest. The digest covers what the agent acts on (closure, scope, instructions,
|
|
3
|
+
* references, role, requested operations, evidence and effective operations), serialized with sorted keys; the
|
|
4
|
+
* envelope (host, CLI, kit root, latency) and the binding are excluded, so one resolution digests the same everywhere.
|
|
5
|
+
*/
|
|
6
|
+
export declare const PACKET_CONTRACT = 1;
|
|
7
|
+
export declare const EVIDENCE_STATES: readonly ["proposed", "attempted", "executed", "verified", "accepted"];
|
|
8
|
+
export declare const DIGESTED: readonly ["closure", "scope", "instructions", "references", "role", "requestedOperations", "evidence", "effectiveOperations"];
|
|
9
|
+
/** JSON with every object's keys sorted, recursively; undefined members dropped. */
|
|
10
|
+
export declare function canonical(value: unknown): string;
|
|
11
|
+
export declare function packetDigest(packet: Readonly<Record<string, unknown>>): string;
|
|
12
|
+
export interface MethodPacket {
|
|
13
|
+
contract: number;
|
|
14
|
+
resolver: string;
|
|
15
|
+
binding: unknown;
|
|
16
|
+
closure: unknown;
|
|
17
|
+
scope: unknown;
|
|
18
|
+
instructions: readonly unknown[];
|
|
19
|
+
references: readonly unknown[];
|
|
20
|
+
role: unknown;
|
|
21
|
+
requestedOperations: readonly unknown[];
|
|
22
|
+
effectiveOperations: {
|
|
23
|
+
readonly status: 'host-determined';
|
|
24
|
+
readonly runner: readonly string[];
|
|
25
|
+
};
|
|
26
|
+
missing: readonly unknown[];
|
|
27
|
+
evidence: {
|
|
28
|
+
readonly required: readonly string[];
|
|
29
|
+
readonly states: readonly string[];
|
|
30
|
+
};
|
|
31
|
+
kitUpdateAvailable: unknown;
|
|
32
|
+
envelope: Record<string, unknown>;
|
|
33
|
+
digest?: string;
|
|
34
|
+
}
|
|
35
|
+
/** Assembles a packet and stamps its digest; `required` is the capability's checks, the runner's by default. */
|
|
36
|
+
export declare function assemblePacket(parts: {
|
|
37
|
+
readonly resolver: string;
|
|
38
|
+
readonly binding: unknown;
|
|
39
|
+
readonly closure: unknown;
|
|
40
|
+
readonly scope: unknown;
|
|
41
|
+
readonly instructions: readonly unknown[];
|
|
42
|
+
readonly references: readonly unknown[];
|
|
43
|
+
readonly role: unknown;
|
|
44
|
+
readonly requestedOperations: readonly unknown[];
|
|
45
|
+
readonly runner: readonly string[];
|
|
46
|
+
readonly required?: readonly string[];
|
|
47
|
+
readonly missing: readonly unknown[];
|
|
48
|
+
readonly envelope: Record<string, unknown>;
|
|
49
|
+
readonly kitUpdateAvailable?: unknown;
|
|
50
|
+
}): MethodPacket;
|
|
51
|
+
//# sourceMappingUR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