@cotal-ai/cli 0.105.1 → 0.106.1

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.
@@ -0,0 +1,42 @@
1
+ import { type InstalledExtension } from "@cotal-ai/workspace";
2
+ /**
3
+ * Why `cotal update` still has to reinstall a seeded built-in that is recorded at this generation, or
4
+ * undefined when its installed copy is proven to be the payload this binary ships.
5
+ *
6
+ * The proof is byte for byte, read from disk now: the shipped payload, the seed-store copy the
7
+ * manifest spec names, and the installed package hold the same files with the same contents, the
8
+ * installed package is a real directory inside the extensions prefix rather than a link out of it,
9
+ * and the entry is the seeded one at this generation. Any doubt is a reason, and a reason runs the
10
+ * ordinary reinstall; nothing here repairs, and nothing is skipped on a guess.
11
+ */
12
+ export declare function seededInstallDiffers(name: string, generation: string, entry: InstalledExtension): string | undefined;
13
+ /**
14
+ * Why the extensions prefix is not the tree its lock records, or undefined when every recorded
15
+ * package is on disk at its recorded version. This is the same comparison npm makes before it
16
+ * decides a reinstall changes nothing, made once for the whole prefix rather than once per
17
+ * built-in, so an update that skips a reinstall still leaves no missing or skewed dependency behind.
18
+ */
19
+ export declare function prefixLockDiffers(): string | undefined;
20
+ interface LockEntry {
21
+ readonly version?: unknown;
22
+ readonly link?: unknown;
23
+ readonly optional?: unknown;
24
+ readonly os?: unknown;
25
+ readonly cpu?: unknown;
26
+ readonly libc?: unknown;
27
+ }
28
+ /** npm's platform rule for a package (npm-install-checks `checkPlatform`): it is left out of this
29
+ * host when its `os`, `cpu` or `libc` list does not admit the host, and a `libc` requirement on a
30
+ * host whose libc npm cannot name is left out too. A list this function cannot read admits the host,
31
+ * so the absent package is reported rather than excused. */
32
+ export declare function platformExcludesHost(entry: Pick<LockEntry, "os" | "cpu" | "libc">, host?: {
33
+ platform: string;
34
+ arch: string;
35
+ libc: () => string | undefined;
36
+ }): boolean;
37
+ /** npm-install-checks `checkList`: a string is a one-entry list, `["any"]` admits everything, and
38
+ * the value must match none of the negated (`!x`) entries and, when a plain entry exists, at least
39
+ * one of them. Anything that is not a list of strings is read as admitting the host. */
40
+ export declare function admits(value: string, list: unknown): boolean;
41
+ export {};
42
+ //# sourceMappingURL=verify.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verify.d.ts","sourceRoot":"","sources":["../../src/seed/verify.ts"],"names":[],"mappings":"AAEA,OAAO,EAAyD,KAAK,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAGrH;;;;;;;;;GASG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,kBAAkB,GAAG,MAAM,GAAG,SAAS,CA6BpH;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,IAAI,MAAM,GAAG,SAAS,CAwBtD;AA4BD,UAAU,SAAS;IACjB,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAC5B,QAAQ,CAAC,EAAE,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,GAAG,CAAC,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC;CACzB;AAED;;;6DAG6D;AAC7D,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,GAAG,KAAK,GAAG,MAAM,CAAC,EAC7C,IAAI,GAAE;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,MAAM,GAAG,SAAS,CAAA;CAAuE,GAC5I,OAAO,CAQT;AAED;;yFAEyF;AACzF,wBAAgB,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,GAAG,OAAO,CAe5D"}
@@ -0,0 +1,194 @@
1
+ import { lstatSync, readdirSync, readFileSync, realpathSync, statSync } from "node:fs";
2
+ import { join, resolve, sep } from "node:path";
3
+ import { SEEDED_EXTENSIONS, extensionPackageDir, extensionsDir } from "@cotal-ai/workspace";
4
+ import { seedStorePath, shippedSourceDir } from "./paths.js";
5
+ /**
6
+ * Why `cotal update` still has to reinstall a seeded built-in that is recorded at this generation, or
7
+ * undefined when its installed copy is proven to be the payload this binary ships.
8
+ *
9
+ * The proof is byte for byte, read from disk now: the shipped payload, the seed-store copy the
10
+ * manifest spec names, and the installed package hold the same files with the same contents, the
11
+ * installed package is a real directory inside the extensions prefix rather than a link out of it,
12
+ * and the entry is the seeded one at this generation. Any doubt is a reason, and a reason runs the
13
+ * ordinary reinstall; nothing here repairs, and nothing is skipped on a guess.
14
+ */
15
+ export function seededInstallDiffers(name, generation, entry) {
16
+ const pkg = SEEDED_EXTENSIONS[name].pkg;
17
+ const store = seedStorePath(generation, name);
18
+ if (entry.source !== "seeded")
19
+ return "the installed entry is operator-managed";
20
+ if (entry.version !== generation)
21
+ return `recorded at ${entry.version}, not ${generation}`;
22
+ if (resolve(entry.spec) !== store)
23
+ return `recorded spec ${entry.spec} is not this generation's store payload`;
24
+ const installed = extensionPackageDir(pkg);
25
+ let kind;
26
+ try {
27
+ kind = lstatSync(installed);
28
+ }
29
+ catch {
30
+ return "not installed on disk";
31
+ }
32
+ if (kind.isSymbolicLink())
33
+ return "installed as a link, not a copy";
34
+ if (!kind.isDirectory())
35
+ return "the installed path is not a directory";
36
+ if (!realpathSync(installed).startsWith(realpathSync(extensionsDir()) + sep))
37
+ return "the installed copy resolves outside the extensions prefix";
38
+ const shipped = shippedSourceDir(name);
39
+ const files = payloadFiles(shipped);
40
+ if (typeof files === "string")
41
+ return `the shipped payload ${files}`;
42
+ for (const [copy, label] of [[store, "the seed store copy"], [installed, "the installed copy"]]) {
43
+ const have = payloadFiles(copy);
44
+ if (typeof have === "string")
45
+ return `${label} ${have}`;
46
+ if (have.length !== files.length)
47
+ return `${label} holds ${have.length} files, the shipped payload ${files.length}`;
48
+ for (let i = 0; i < files.length; i++) {
49
+ if (have[i] !== files[i])
50
+ return `${label} has ${have[i]} where the shipped payload has ${files[i]}`;
51
+ if (!sameBytes(join(shipped, files[i]), join(copy, files[i])))
52
+ return `${label} differs at ${files[i]}`;
53
+ }
54
+ }
55
+ return undefined;
56
+ }
57
+ /**
58
+ * Why the extensions prefix is not the tree its lock records, or undefined when every recorded
59
+ * package is on disk at its recorded version. This is the same comparison npm makes before it
60
+ * decides a reinstall changes nothing, made once for the whole prefix rather than once per
61
+ * built-in, so an update that skips a reinstall still leaves no missing or skewed dependency behind.
62
+ */
63
+ export function prefixLockDiffers() {
64
+ const prefix = extensionsDir();
65
+ let lock;
66
+ try {
67
+ lock = JSON.parse(readFileSync(join(prefix, "package-lock.json"), "utf8"));
68
+ }
69
+ catch (e) {
70
+ return `the prefix lock is unreadable: ${e.message}`;
71
+ }
72
+ if (!lock.packages || typeof lock.packages !== "object")
73
+ return "the prefix lock records no packages";
74
+ for (const [key, recorded] of Object.entries(lock.packages)) {
75
+ if (key === "" || recorded.link === true)
76
+ continue;
77
+ if (typeof recorded.version !== "string")
78
+ return `the prefix lock records no version for ${key}`;
79
+ let actual;
80
+ try {
81
+ actual = JSON.parse(readFileSync(join(prefix, key, "package.json"), "utf8")).version;
82
+ }
83
+ catch {
84
+ // npm installs an optional package only on a platform its `os`, `cpu` and `libc` lists admit; one
85
+ // the lock records for another platform is absent by npm's own rule, not missing.
86
+ if (recorded.optional === true && platformExcludesHost(recorded))
87
+ continue;
88
+ return `${key} is recorded in the prefix lock but not installed`;
89
+ }
90
+ if (actual !== recorded.version)
91
+ return `${key} is ${String(actual)} on disk and ${recorded.version} in the prefix lock`;
92
+ }
93
+ return undefined;
94
+ }
95
+ /** The payload's regular files, sorted, relative to `root`, with nested `node_modules` and `.git`
96
+ * left out the way the stager leaves them out; or why the tree cannot be compared. */
97
+ function payloadFiles(root) {
98
+ const files = [];
99
+ const walk = (dir, rel) => {
100
+ let entries;
101
+ try {
102
+ entries = readdirSync(dir, { withFileTypes: true });
103
+ }
104
+ catch (e) {
105
+ return `cannot be read at ${rel || "."}: ${e.message}`;
106
+ }
107
+ for (const entry of entries.sort((a, b) => (a.name < b.name ? -1 : a.name > b.name ? 1 : 0))) {
108
+ const path = join(rel, entry.name);
109
+ if (entry.isSymbolicLink())
110
+ return `contains a link at ${path}`;
111
+ if (entry.isDirectory()) {
112
+ if (entry.name === "node_modules" || entry.name === ".git")
113
+ continue;
114
+ const problem = walk(join(dir, entry.name), path);
115
+ if (problem)
116
+ return problem;
117
+ }
118
+ else if (entry.isFile())
119
+ files.push(path);
120
+ else
121
+ return `contains a special file at ${path}`;
122
+ }
123
+ return undefined;
124
+ };
125
+ return walk(root, "") ?? files;
126
+ }
127
+ /** npm's platform rule for a package (npm-install-checks `checkPlatform`): it is left out of this
128
+ * host when its `os`, `cpu` or `libc` list does not admit the host, and a `libc` requirement on a
129
+ * host whose libc npm cannot name is left out too. A list this function cannot read admits the host,
130
+ * so the absent package is reported rather than excused. */
131
+ export function platformExcludesHost(entry, host = { platform: process.platform, arch: process.arch, libc: hostLibc }) {
132
+ if (entry.os !== undefined && !admits(host.platform, entry.os))
133
+ return true;
134
+ if (entry.cpu !== undefined && !admits(host.arch, entry.cpu))
135
+ return true;
136
+ if (entry.libc !== undefined) {
137
+ const libc = host.libc();
138
+ if (!libc || !admits(libc, entry.libc))
139
+ return true;
140
+ }
141
+ return false;
142
+ }
143
+ /** npm-install-checks `checkList`: a string is a one-entry list, `["any"]` admits everything, and
144
+ * the value must match none of the negated (`!x`) entries and, when a plain entry exists, at least
145
+ * one of them. Anything that is not a list of strings is read as admitting the host. */
146
+ export function admits(value, list) {
147
+ const entries = typeof list === "string" ? [list] : Array.isArray(list) && list.every((entry) => typeof entry === "string") ? list : undefined;
148
+ if (entries === undefined)
149
+ return true;
150
+ if (entries.length === 1 && entries[0] === "any")
151
+ return true;
152
+ let negated = 0;
153
+ let match = false;
154
+ for (const entry of entries) {
155
+ const negate = entry.startsWith("!");
156
+ const test = negate ? entry.slice(1) : entry;
157
+ if (negate) {
158
+ negated++;
159
+ if (value === test)
160
+ return false;
161
+ }
162
+ else
163
+ match = match || value === test;
164
+ }
165
+ return match || negated === entries.length;
166
+ }
167
+ /** The host's libc family the way npm names it (npm-install-checks `current-env`): on Linux, read
168
+ * from `/usr/bin/ldd`, else from the process report; elsewhere there is none. */
169
+ function hostLibc() {
170
+ if (process.platform !== "linux")
171
+ return undefined;
172
+ try {
173
+ const ldd = readFileSync("/usr/bin/ldd", "utf8");
174
+ if (ldd.includes("musl"))
175
+ return "musl";
176
+ if (ldd.includes("GNU C Library"))
177
+ return "glibc";
178
+ return undefined;
179
+ }
180
+ catch {
181
+ const report = process.report?.getReport();
182
+ if (report?.header?.glibcVersionRuntime)
183
+ return "glibc";
184
+ if (Array.isArray(report?.sharedObjects) && report.sharedObjects.some((file) => typeof file === "string" && (file.includes("libc.musl-") || file.includes("ld-musl-"))))
185
+ return "musl";
186
+ return undefined;
187
+ }
188
+ }
189
+ function sameBytes(a, b) {
190
+ if (statSync(a).size !== statSync(b).size)
191
+ return false;
192
+ return readFileSync(a).equals(readFileSync(b));
193
+ }
194
+ //# sourceMappingURL=verify.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verify.js","sourceRoot":"","sources":["../../src/seed/verify.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,YAAY,EAAE,YAAY,EAAE,QAAQ,EAAe,MAAM,SAAS,CAAC;AACpG,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,aAAa,EAA2B,MAAM,qBAAqB,CAAC;AACrH,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAE7D;;;;;;;;;GASG;AACH,MAAM,UAAU,oBAAoB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,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC;YAAE,OAAO,MAAM,CAAC;QACvL,OAAO,SAAS,CAAC;IACnB,CAAC;AACH,CAAC;AAED,SAAS,SAAS,CAAC,CAAS,EAAE,CAAS;IACrC,IAAI,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI;QAAE,OAAO,KAAK,CAAC;IACxD,OAAO,YAAY,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;AACjD,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cotal-ai/cli",
3
3
  "description": "Cotal mesh CLI: up, join, watch, console, spawn, mint, channels, history, ext.",
4
- "version": "0.105.1",
4
+ "version": "0.106.1",
5
5
  "homepage": "https://cotal.ai",
6
6
  "license": "Apache-2.0",
7
7
  "repository": {
@@ -19,8 +19,8 @@
19
19
  }
20
20
  },
21
21
  "dependencies": {
22
- "@cotal-ai/core": "0.105.1",
23
- "@cotal-ai/workspace": "0.105.1",
22
+ "@cotal-ai/core": "0.106.1",
23
+ "@cotal-ai/workspace": "0.106.1",
24
24
  "@nats-io/jetstream": "^3.4.0",
25
25
  "@nats-io/kv": "^3.4.0",
26
26
  "@nats-io/obj": "^3.4.0",
@@ -41,7 +41,7 @@
41
41
  "@eplightning/nats-server-win32-x64": "^2.14.0"
42
42
  },
43
43
  "devDependencies": {
44
- "@cotal-ai/auth": "0.105.1",
44
+ "@cotal-ai/auth": "0.106.1",
45
45
  "@cotal-ai/smoke-kit": "0.0.0",
46
46
  "@types/react": "^19.0.0",
47
47
  "@types/ws": "^8.18.1"