sshlg-skills 1.74.1 → 1.74.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.
- package/CHANGELOG.md +9 -0
- package/bin/sshlg-skills.js +7 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## v1.74.2 (2026-10-22): an unread Codex is not a green step
|
|
2
|
+
|
|
3
|
+
- **B-252 closed:** the 1.74.1 `update` printed "11 of 11 steps, all green" beside "not read:
|
|
4
|
+
codex plugin list failed — spawnSync codex ETIMEDOUT", and Codex stayed at older pins. The
|
|
5
|
+
read took 31.5 s at a load average near 60 against a 30 s limit. A Codex read now has 120 s
|
|
6
|
+
(`SSHLG_CODEX_READ_TIMEOUT_MS` overrides, never below one second), and a Codex that cannot be
|
|
7
|
+
read makes the run PARTIAL instead of green. `test/codex_unread_test.js` (4 cases, red on
|
|
8
|
+
1.74.1).
|
|
9
|
+
|
|
1
10
|
## v1.74.1 (2026-10-22): a git worktree's local scope no longer fails the Claude update
|
|
2
11
|
|
|
3
12
|
- **B-251 closed:** the 1.74.0 `update` on the operator machine failed xr-dev (and rolled it
|
package/bin/sshlg-skills.js
CHANGED
|
@@ -875,11 +875,14 @@ function codexPinRef(s, opts) {
|
|
|
875
875
|
* counted like every other `update` step, and a failure lands in the closing summary; a
|
|
876
876
|
* read (`--version`, `plugin list`) is captured and stays quiet.
|
|
877
877
|
*/
|
|
878
|
+
// A read of Codex's plugin list took 31.5 s on a loaded machine (2026-10-22); 30 s timed it
|
|
879
|
+
// out. SSHLG_CODEX_READ_TIMEOUT_MS overrides, never below one second.
|
|
880
|
+
const CODEX_READ_TIMEOUT_MS = Math.max(1000, Number(process.env.SSHLG_CODEX_READ_TIMEOUT_MS) || 120000);
|
|
878
881
|
function codexRunner(cmd, args, opts) {
|
|
879
882
|
if (!opts || !opts.read || !(args.length === 1 && args[0] === '--version'
|
|
880
883
|
|| args[0] === 'plugin' && args[1] === 'list' && (args.length === 2 || args.length === 3 && args[2] === '--json'))) throw new Error('Codex native mutation is deferred');
|
|
881
884
|
const r = spawnSync(cmd, args, { encoding: 'utf8', shell: process.platform === 'win32',
|
|
882
|
-
stdio: ['ignore', 'pipe', 'pipe'], timeout:
|
|
885
|
+
stdio: ['ignore', 'pipe', 'pipe'], timeout: CODEX_READ_TIMEOUT_MS, maxBuffer: 32 * 1024 * 1024 });
|
|
883
886
|
return { status: r.status, signal: r.signal, stdout: r.stdout || '', stderr: r.stderr || '', error: r.error };
|
|
884
887
|
}
|
|
885
888
|
|
|
@@ -921,7 +924,8 @@ function refreshCodexPlugins(f) {
|
|
|
921
924
|
}
|
|
922
925
|
if (out.status === 'unread') {
|
|
923
926
|
log(` not read: codex plugin list failed — ${out.why}. Nothing in Codex was touched.`);
|
|
924
|
-
|
|
927
|
+
// Not looked is not green: the summary reads PARTIAL and names this section.
|
|
928
|
+
return false;
|
|
925
929
|
}
|
|
926
930
|
for (const it of out.items) {
|
|
927
931
|
if (it.action === 'skip') log(` ${it.pluginId}: left alone — ${it.why}`);
|
|
@@ -4090,4 +4094,4 @@ if (require.main === module) {
|
|
|
4090
4094
|
process.exit(main(process.argv));
|
|
4091
4095
|
}
|
|
4092
4096
|
|
|
4093
|
-
module.exports = { cliSpec, pinnedArgv, resolvePayloads, resolveProviders };
|
|
4097
|
+
module.exports = { cliSpec, pinnedArgv, resolvePayloads, resolveProviders, refreshCodexPlugins, CODEX_READ_TIMEOUT_MS };
|
package/package.json
CHANGED