@nexus-cortex/cli 4.108.4 → 4.108.7

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 +9 -0
  2. package/package.json +2 -2
package/.env.defaults CHANGED
@@ -768,6 +768,15 @@ CORTEX_ENDTURN_GATE=true
768
768
  # proof (/tmp/claude-1000/cmp-test/run.sh, deepseek-flash, threshold 14000, rung 0.6): checkpoint fired, 6 proactive compactions in 17
769
769
  # iterations (5 reused the checkpoint at $0), task pinned verbatim in every reminder, final answer 4/4 planted facts — mechanism proven.
770
770
  #CORTEX_COMPACTION_THRESHOLD_TOKENS=
771
+ # CORTEX_STATE_DIR — explicit runtime-state root (4.108.6, HB-READONLY-WORKDIR / R131). Unset (default) = <project>/.cortex, but the root
772
+ # is PROBED for writability once per project: a read-only or foreign-owned working directory (a task image that runs the agent as `nobody`
773
+ # in a root-owned /app) falls back to ~/.cortex/projects/<hash>, then <tmpdir>/nexus-cortex/<hash>, with ONE warning. Every runtime writer
774
+ # (tmux metadata/locks, artifact registry, sessions, decisions.jsonl, training samples, resume memory) routes through it, so state
775
+ # persistence is never a boot precondition. Set it to pin the root explicitly (containers, benches, shared checkouts).
776
+ # [LEDGER 2026-09-12 @4.108.6] BUILT + unit-tested (utils/__tests__/stateDir.test.ts); field cause = TB4.0 risk-scorer-replay: cortex-server
777
+ # died at boot (EACCES mkdir /app/.cortex/tmux-sessions/metadata) → empty session. Verify = boot the server as an unprivileged user in a
778
+ # root-owned cwd (docker probe) → boots with the fallback warning.
779
+ #CORTEX_STATE_DIR=
771
780
 
772
781
  # CORTEX_DELEGATION_HINT — DARK (4.108.1, HB-DELEGATION-DOCTRINE). true = the boot-minimal prompt gains ONE clause naming the Task tool for
773
782
  # large / independent / output-heavy sub-tasks (delegate with a self-contained prompt, continue from the summary). The Task tool is
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nexus-cortex/cli",
3
- "version": "4.108.4",
3
+ "version": "4.108.7",
4
4
  "description": "Nexus Cortex CLI - Terminal interface for multi-provider LLM orchestration",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -19,7 +19,7 @@
19
19
  "prepack": "node ../../scripts/copy-pkg-cortex-scaffold.mjs"
20
20
  },
21
21
  "dependencies": {
22
- "@nexus-cortex/core": "4.108.4",
22
+ "@nexus-cortex/core": "4.108.7",
23
23
  "chalk": "^4.1.2",
24
24
  "cli-spinners": "^2.9.0",
25
25
  "commander": "^11.0.0",