@ours.network/fleet-codex 2.1.0 → 2.1.2
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.
|
@@ -11,6 +11,14 @@ const run = (command, args, { optional = false } = {}) => {
|
|
|
11
11
|
return true;
|
|
12
12
|
};
|
|
13
13
|
|
|
14
|
+
// Floors match src/security-versions.ts; refuse before any command, network access or write.
|
|
15
|
+
const floors = { 22: [23, 4], 24: [22, 1], 26: [12, 1] };
|
|
16
|
+
const node = process.versions.node, parsed = /^(\d+)\.(\d+)\.(\d+)$/.exec(node)?.slice(1).map(Number), floor = parsed && floors[parsed[0]];
|
|
17
|
+
if (!floor || parsed[1] < floor[0] || (parsed[1] === floor[0] && parsed[2] < floor[1])) {
|
|
18
|
+
console.error(`ours-fleet-codex-install: Node.js ${/^[0-9A-Za-z.+-]{1,64}$/.test(node) ? node : 'unrecognized'} is not permitted. Ours requires a patched supported Node.js release: 22.23.4+, 24.22.1+, 26.12.1+ within those release lines; prerelease, end-of-life and unreviewed release lines are refused. Earlier patch levels are affected by CVE-2026-111497 (Brotli decompression out-of-bounds write): https://nodejs.org/en/blog/vulnerability/october-2026-security-releases Update Node.js from https://nodejs.org/en/download or your package manager, then retry.`);
|
|
19
|
+
process.exit(1);
|
|
20
|
+
}
|
|
21
|
+
|
|
14
22
|
try {
|
|
15
23
|
if (!run('codex', ['--version'], { optional: true }))
|
|
16
24
|
throw new Error('Codex CLI is not installed or not on PATH');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ours.network/fleet-codex",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.2",
|
|
4
4
|
"description": "Native Codex plugin for spawning, configuring, and overseeing ours-fleet agents.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "FSL-1.1-Apache-2.0",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"bin": {
|
|
17
17
|
"ours-fleet-codex-install": "bin/ours-fleet-codex-install.mjs"
|
|
18
18
|
},
|
|
19
|
-
"engines": { "node": ">=22" },
|
|
19
|
+
"engines": { "node": ">=22.23.4 <23 || >=24.22.1 <25 || >=26.12.1 <27" },
|
|
20
20
|
"publishConfig": { "access": "public" },
|
|
21
21
|
"scripts": {
|
|
22
22
|
"test": "node --test"
|