@nexus-cortex/cli 4.124.35 → 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 +21 -6
  2. package/package.json +3 -3
package/.env.defaults CHANGED
@@ -887,12 +887,14 @@ CORTEX_ENDTURN_GATE=true
887
887
  #CORTEX_TURN_STATUS=
888
888
  # CORTEX_EFFORT_RAMP — HB-EFFORT-RAMP (DARK, 2026-09-30). TB4.0 t4cw traces: the action model hit the 65,536-token output wall right
889
889
  # after reading the task (photonic r2 call 3, protein r1 call 6), trying to solve the routing plan / hidden rule in its head before writing
890
- # code; it only started acting once forced to low. The first N MAIN action calls of a turn (0 = initial request; retry/synthesis calls
891
- # don't count) run at the ramp level, then the configured effort. off (default) | <level>[:<calls>] (low:8) | on (= low:8). DeepSeek
892
- # levels are low | high | max (medium = high). Precedence: R153 backoff > effort pulse > ramp > request param > card. Events: effort_ramp
893
- # {phase start|end}. CAUTION: GLOBAL low was harmful on TB4.0 (e6: 3/29 vs high 10/29) — this lever only covers the opening calls.
894
- # [LEDGER 2026-09-30 @4.124.34] DARK — BUILT + tested (effortLevers.test.ts; effortLevers.integration.test.ts both loops: calls 0..N-1 at
895
- # the ramp level, then the configured effort; unset = untouched). NO bench arm yet.
890
+ # code; it only started acting once forced to low. A window of MAIN action calls (counted from 1 per turn, 1 = initial request; retry/
891
+ # synthesis calls don't count) runs at the ramp level, then the configured effort returns. off (default) | <level>:<from>-<to> (low:2-8)
892
+ # | <level>:<n> (calls 2..n+1) | on (= low:2-8). The initial call is NEVER ramped: with the window at call 1 the 4.124.35 smoke skipped
893
+ # the boot prompt's orient step in 2 of 3 runs (0 of 1 without). DeepSeek levels are low | high | max (medium = high). Precedence: R153
894
+ # backoff > effort pulse > ramp > request param > card. Events: effort_ramp {phase start|end}. CAUTION: GLOBAL low was harmful on TB4.0
895
+ # (e6: 3/29 vs high 10/29) — this lever covers only the window.
896
+ # [LEDGER 2026-09-30 @4.124.36] DARK — BUILT + tested (effortLevers.test.ts; effortLevers.integration.test.ts both loops: low:2-3 → call 1
897
+ # configured, calls 2-3 low, then configured; unset = untouched). NO bench arm yet (c21 arm C runs low:2-8).
896
898
  #CORTEX_EFFORT_RAMP=
897
899
  # CORTEX_COMPUTE_NUDGE / _TOKENS / _COOLDOWN / _MAX — HB-COMPUTE-NUDGE (DARK, 2026-09-30). Same traces: steps that DID act often carried
898
900
  # 35K-52K reasoning tokens first; photonic r2's productive stretch began when it ran the task's checker. After a round whose response
@@ -947,6 +949,19 @@ CORTEX_ENDTURN_GATE=true
947
949
  # unchanged low | medium | high) | legacy: the pre-R153c steps. reasoning_exhaustion events now carry {ladder, provider}.
948
950
  # [LEDGER 2026-09-30 @4.124.34] ON (bug fix) — unit-tested (effortLevers.test.ts). NO bench arm.
949
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=
950
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
951
966
  # ReadImage, and DeepSeek answered the next continuation with `400 .messages[290].image[0]: You have uploaded an unsupported image`;
952
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.35",
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.35",
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",