@nexus-cortex/cli 4.124.36 → 4.124.37

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.
Files changed (2) hide show
  1. package/.env.defaults +13 -0
  2. package/package.json +3 -3
package/.env.defaults CHANGED
@@ -949,6 +949,19 @@ CORTEX_ENDTURN_GATE=true
949
949
  # unchanged low | medium | high) | legacy: the pre-R153c steps. reasoning_exhaustion events now carry {ladder, provider}.
950
950
  # [LEDGER 2026-09-30 @4.124.34] ON (bug fix) — unit-tested (effortLevers.test.ts). NO bench arm.
951
951
  #CORTEX_REASONING_EXHAUST_LADDER=
952
+ # CORTEX_KILL_GUARD — HB-KILL-GUARD (2026-09-30, DEFAULT ON). The Bash tool runs every command as `bash -c "<command>"`, so a model's
953
+ # `pkill -f "<pattern>"` always matches its OWN shell, and `pkill -f node` / `killall node` / `kill $(pgrep -f node)` reaches the harness
954
+ # server. TB4.0 c21ba cumulative-layout-shift r3 (4.124.36): `pkill -f "next-server"; pkill -f "next start"; ...` → the tool shell got
955
+ # SIGTERM and the run ended NonZeroAgentExitCodeError 29 min in. on (default): pkill / killall / pgrep wrappers first on the Bash tool's
956
+ # PATH (foreground + run_in_background spawns); targets resolved with the real pgrep, then PROTECTED pids dropped — the calling shell +
957
+ # its ancestors, the harness server (CORTEX_SERVER_PID) + its ancestors, and every process descended from those ancestors other than
958
+ # through the server (bench adapter request, process recorder); anything the model started stays killable. Skips are reported on stderr
959
+ # ("[harness] pkill: left N protected process(es) alone"). Not covered: `kill <literal pid>`, `ps | xargs kill`, TmuxSession panes.
960
+ # off: no wrappers, spawn env unchanged.
961
+ # [LEDGER 2026-09-30 @next] ON (bug fix) — tested on live processes (executors killGuard.test.ts 7/7: self-match shell survives, harness
962
+ # server + adapter sibling survive a matching pattern, killall spares the sibling, pgrep hides the harness, the c21ba command shape through
963
+ # the real Bash tool); ShellTool/BashOutput/KillShell suites unchanged (145 tests).
964
+ #CORTEX_KILL_GUARD=
952
965
  # (no lever) R154 HB-IMAGE-REJECTION-HEAL (4.109.0, 2026-09-16): retro-console-soc generated a 128x128 8-bit GRAYSCALE PNG, called
953
966
  # ReadImage, and DeepSeek answered the next continuation with `400 .messages[290].image[0]: You have uploaded an unsupported image`;
954
967
  # the exception escaped after the tool batch, the already-executed guard left the loop, and the R29a synthesis failed on the same block —
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@nexus-cortex/cli",
3
- "version": "4.124.36",
3
+ "version": "4.124.37",
4
4
  "description": "Nexus Cortex CLI - Terminal interface for multi-provider LLM orchestration",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
7
7
  "bin": {
8
- "cortex": "./bin/cortex.js"
8
+ "cortex": "bin/cortex.js"
9
9
  },
10
10
  "scripts": {
11
11
  "build": "cp ../../.env.defaults ./.env.defaults && tsc",
@@ -19,7 +19,7 @@
19
19
  "prepack": "node ../../scripts/copy-pkg-cortex-scaffold.mjs"
20
20
  },
21
21
  "dependencies": {
22
- "@nexus-cortex/core": "4.124.36",
22
+ "@nexus-cortex/core": "4.124.37",
23
23
  "chalk": "^4.1.2",
24
24
  "cli-spinners": "^2.9.0",
25
25
  "commander": "^11.0.0",