sneakoscope 6.4.0 → 6.5.1

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 (120) hide show
  1. package/README.md +24 -34
  2. package/config/codex-releases/{rust-v0.144.1.json → rust-v0.144.5.json} +5 -5
  3. package/crates/sks-core/Cargo.lock +1 -1
  4. package/crates/sks-core/Cargo.toml +1 -1
  5. package/dist/bin/install.js +1 -1
  6. package/dist/cli/command-manifest-lite.js +0 -1
  7. package/dist/cli/command-registry.js +4 -2
  8. package/dist/cli/help-fast.js +0 -1
  9. package/dist/cli/router.js +24 -3
  10. package/dist/commands/zellij.js +18 -29
  11. package/dist/config/skills-manifest.json +52 -52
  12. package/dist/core/agent-bridge/agent-manifest.js +22 -1
  13. package/dist/core/agents/agent-codex-cockpit.js +1 -81
  14. package/dist/core/agents/agent-proof-evidence.js +0 -6
  15. package/dist/core/agents/native-cli-worker-runtime.js +1 -16
  16. package/dist/core/codex-app/codex-app-fast-ui-repair.js +11 -17
  17. package/dist/core/codex-app/codex-app-ui-state-snapshot.js +34 -6
  18. package/dist/core/codex-app/menubar/constants.js +0 -1
  19. package/dist/core/codex-app.js +1 -1
  20. package/dist/core/codex-compat/codex-release-manifest.js +5 -5
  21. package/dist/core/codex-control/codex-0139-image-path-real-probe.js +1 -1
  22. package/dist/core/codex-control/codex-0139-web-search-probe.js +1 -1
  23. package/dist/core/codex-lb/codex-lb-tool-catalog.js +3 -3
  24. package/dist/core/commands/agent-bridge-command.js +46 -15
  25. package/dist/core/commands/basic-cli.js +1 -1
  26. package/dist/core/commands/mad-sks-command.js +0 -2
  27. package/dist/core/commands/naruto-command.js +49 -43
  28. package/dist/core/doctor/current-project-guidance.js +1 -1
  29. package/dist/core/doctor/doctor-dirty-planner.js +1 -1
  30. package/dist/core/doctor/retired-managed-residue-missions.js +26 -11
  31. package/dist/core/doctor/retired-managed-residue-private.js +1 -1
  32. package/dist/core/doctor/retired-managed-residue-runtime.js +12 -2
  33. package/dist/core/doctor/retired-managed-residue-state.js +7 -7
  34. package/dist/core/feature-fixtures.js +1 -5
  35. package/dist/core/feature-registry.js +0 -1
  36. package/dist/core/fsx.js +29 -3
  37. package/dist/core/install/installed-package-smoke.js +1 -1
  38. package/dist/core/locks/file-lock.js +70 -18
  39. package/dist/core/managed-assets/managed-assets-manifest.js +1 -1
  40. package/dist/core/mcp-config/health-check.js +7 -2
  41. package/dist/core/ops/upgrade-migration-fixtures.js +30 -2
  42. package/dist/core/recallpulse.js +1 -1
  43. package/dist/core/release/release-gate-contract.js +4 -0
  44. package/dist/core/release/release-pack-content-scanner.js +7 -6
  45. package/dist/core/release/release-pack-receipt.js +33 -12
  46. package/dist/core/retention.js +5 -15
  47. package/dist/core/routes/constants.js +1 -1
  48. package/dist/core/routes.js +1 -2
  49. package/dist/core/safety/command-contract/contracts.js +33 -0
  50. package/dist/core/safety/command-contract/types.js +1 -1
  51. package/dist/core/strategy/adhd-orchestrating-gate.js +2 -2
  52. package/dist/core/subagents/naruto-help-contract.js +2 -1
  53. package/dist/core/subagents/naruto-proof-projection.js +418 -0
  54. package/dist/core/subagents/official-subagent-preparation.js +302 -0
  55. package/dist/core/subagents/official-subagent-runner.js +10 -1
  56. package/dist/core/update-check.js +13 -4
  57. package/dist/core/version.js +1 -1
  58. package/dist/core/zellij/zellij-lane-renderer.js +19 -19
  59. package/dist/core/zellij/zellij-official-subagent-activity.js +2 -0
  60. package/dist/core/zellij/zellij-right-column-manager.js +6 -55
  61. package/dist/core/zellij/zellij-slot-column-anchor.js +4 -5
  62. package/dist/core/zellij/zellij-slot-pane-renderer.js +1 -1
  63. package/dist/core/zellij/zellij-ui-mode.js +0 -7
  64. package/dist/core/zellij/zellij-worker-pane-manager.js +3 -11
  65. package/dist/native/sks-menubar/Sources/AppDelegate.swift +0 -1
  66. package/dist/native/sks-menubar/Sources/NotificationCoordinator.swift +1 -3
  67. package/dist/native/sks-menubar/Sources/ProcessClient.swift +4 -1
  68. package/dist/native/sks-menubar/Sources/ProvidersViewController.swift +38 -10
  69. package/dist/native/sks-menubar/Sources/StatusItemController.swift +73 -11
  70. package/dist/native/sks-menubar/Sources/UpdatesViewController.swift +27 -2
  71. package/dist/scripts/check-architecture.js +11 -1
  72. package/dist/scripts/cli-output-consistency-check.js +0 -2
  73. package/dist/scripts/codex-0144-app-server-v2-check.js +4 -4
  74. package/dist/scripts/codex-0144-capability-check.js +5 -5
  75. package/dist/scripts/codex-control-all-pipelines-check.js +2 -1
  76. package/dist/scripts/codex-lb-gpt56-fast-profile-check.js +3 -3
  77. package/dist/scripts/codex-sdk-all-pipelines-check.js +2 -1
  78. package/dist/scripts/current-command-surface-check.js +4 -2
  79. package/dist/scripts/current-surface-update-e2e-check.js +2 -2
  80. package/dist/scripts/docs-truthfulness-check.js +6 -6
  81. package/dist/scripts/doctor-fixes-codex-app-fast-ui-check.js +3 -2
  82. package/dist/scripts/harness-benchmark-check.js +4 -4
  83. package/dist/scripts/hook-latency-quantum-check.js +2 -2
  84. package/dist/scripts/legacy-gate-purge-check.js +4 -2
  85. package/dist/scripts/naruto-codex-e2e-check.js +2 -2
  86. package/dist/scripts/naruto-ssot-gate-aliases-check.js +9 -0
  87. package/dist/scripts/naruto-ssot-pipeline-default-check.js +10 -0
  88. package/dist/scripts/naruto-ssot-route-normalization-check.js +8 -0
  89. package/dist/scripts/naruto-ssot-routing-check.js +12 -0
  90. package/dist/scripts/release-metadata-1-19-check.js +4 -0
  91. package/dist/scripts/sks-menubar-install-check.js +5 -5
  92. package/dist/scripts/upgrade-migration-matrix-check.js +278 -5
  93. package/dist/scripts/zellij-developer-controls-check.js +3 -5
  94. package/dist/scripts/zellij-initial-main-only-blackbox.js +3 -8
  95. package/dist/scripts/zellij-pane-lock-open-worker-integration-blackbox.js +1 -2
  96. package/dist/scripts/zellij-right-column-headless-overflow-check.js +1 -1
  97. package/dist/scripts/zellij-right-column-manager-check.js +3 -4
  98. package/dist/scripts/zellij-slot-only-ui-check.js +2 -2
  99. package/dist/scripts/zellij-stacked-fallback-integration-blackbox.js +1 -2
  100. package/docs/demo.tape +1 -1
  101. package/infra-harness-gates.json +0 -27
  102. package/package.json +11 -6
  103. package/release-gates.v2.json +131 -2
  104. package/schemas/codex/app-server-0.144/codex_app_server_protocol.v2.schemas.json +1 -18812
  105. package/schemas/codex/codex-0139-real-probe-result.schema.json +2 -2
  106. package/schemas/zellij/zellij-right-column-state.schema.json +0 -1
  107. package/dist/core/commands/ui-command.js +0 -198
  108. package/dist/core/naruto/naruto-allocation-policy.js +0 -98
  109. package/dist/core/naruto/naruto-finalizer.js +0 -22
  110. package/dist/core/naruto/naruto-gpt-final-pack.js +0 -50
  111. package/dist/core/naruto/naruto-real-worker-child.js +0 -209
  112. package/dist/core/naruto/naruto-real-worker-runtime.js +0 -178
  113. package/dist/core/naruto/naruto-rebalance-policy.js +0 -47
  114. package/dist/core/naruto/naruto-verification-pool.js +0 -17
  115. package/dist/core/ui/dashboard-html.js +0 -110
  116. package/dist/core/zellij/zellij-dashboard-pane.js +0 -70
  117. package/dist/core/zellij/zellij-dashboard-renderer.js +0 -59
  118. package/dist/core/zellij/zellij-naruto-dashboard.js +0 -44
  119. package/dist/scripts/zellij-dashboard-pane-check.js +0 -69
  120. package/dist/scripts/zellij-dashboard-watch.js +0 -40
package/README.md CHANGED
@@ -1,39 +1,41 @@
1
1
  <div align="center">
2
2
 
3
-
4
- <!-- BEGIN SKS SEARCH VISIBILITY MARKETING -->
5
- ## Search Visibility Positioning
6
-
7
- sneakoscope is a proof-first Codex trust layer for bounded agent workflows, search visibility, and evidence-backed release gates.
8
-
9
- - Source-ledger claims are kept in SKS marketing research and strategy artifacts.
10
- - SEO/GEO mutation plans update only package metadata and this managed README block in this release.
11
- - External visibility outcomes require separate measured evidence.
12
- <!-- END SKS SEARCH VISIBILITY MARKETING -->
13
-
14
3
  # Sneakoscope Codex
15
4
 
16
- **The proof-first workflow harness for Codex. Machine-verified completion, not vibes.**
5
+ **Stop trusting “done.” Make Codex prove it.**
6
+
7
+ Proof-first orchestration for Codex CLI, ChatGPT Desktop, AI coding agents, multi-agent workflows, release verification, and the macOS menu bar.
17
8
 
18
9
  [![npm version](https://img.shields.io/npm/v/sneakoscope?color=cb3837&logo=npm)](https://www.npmjs.com/package/sneakoscope)
19
10
  [![node](https://img.shields.io/badge/node-%3E%3D20.11-339933?logo=node.js&logoColor=white)](#requirements)
20
11
  [![license](https://img.shields.io/badge/license-MIT-blue)](#license)
21
12
 
22
- ![SKS live dashboard preview](https://raw.githubusercontent.com/mandarange/Sneakoscope-Codex/main/docs/assets/sneakoscope-architecture-pipeline.jpg)
13
+ ![SKS architecture pipeline](https://raw.githubusercontent.com/mandarange/Sneakoscope-Codex/main/docs/assets/sneakoscope-architecture-pipeline.jpg)
23
14
 
24
15
  </div>
25
16
 
26
- Sneakoscope Codex (`sks`) is a Codex CLI and Codex App harness for people who want parallel AI coding without losing proof. It gives Codex a simple front door, an official subagent workflow, a local dashboard, TriWiki project memory, and release gates that separate machine evidence from LLM opinion.
17
+ <!-- BEGIN SKS SEARCH VISIBILITY MARKETING -->
18
+ Sneakoscope Codex (`sks`) is an open-source trust layer for Codex CLI and ChatGPT Desktop. It coordinates bounded AI coding agents, records machine-verifiable evidence, preserves project memory, and blocks release claims that are not supported by current tests or artifacts. Search visibility outcomes are measured separately; SKS does not promise rankings or traffic.
19
+ <!-- END SKS SEARCH VISIBILITY MARKETING -->
20
+
21
+ Current release: **SKS 6.5.1**, validated against the official stable **Codex CLI 0.144.5** release from July 16, 2026. It keeps the Control Center alive through self-update completion, restores SKS-hidden Chat/Pro model access in the latest Codex desktop surface, makes Fast mode independently visible and selectable from the menu bar, and stabilizes same-mission Naruto admission, deterministic proof receipts, and project-scoped MCP inheritance. The `0.145.0-alpha` line is intentionally excluded from the stable release baseline. See [CHANGELOG.md](CHANGELOG.md).
27
22
 
28
- Current release: SKS **6.4.0**. `$sks-naruto` is the canonical SKS execution route for the Codex official subagent workflow; `$sks-work` is its intended execution alias. The parent runs on GPT-5.6 Sol Max. Child routing is fixed to Luna Max for tiny short-context mechanical work, Sol High for ordinary UI/logic/backend/native implementation, Sol Max for review/debugging/planning/security and other judgment, and Terra Medium for long-context analysis plus Computer Use, Browser/Chrome, and image-generation execution. Official `SubagentStart`/`SubagentStop` events prove lifecycle only; successful completion additionally requires a structured parent summary with an explicit outcome for every thread. Preparation context alone is never completion proof. Normal non-Naruto Codex sessions continue to preserve explicit user model choices. See [CHANGELOG.md](CHANGELOG.md).
23
+ ## What 6.5.1 Fixes
24
+
25
+ | Problem | 6.5.1 behavior |
26
+ | --- | --- |
27
+ | Control Center disappeared during an update | The new package is installed and verified without killing the active Control Center; the final receipt is synchronized before a detached menu-bar relaunch. |
28
+ | Chat entry and Pro model access disappeared in Codex Desktop | SKS removes only provenance-marked global provider/model locks that it owns, while preserving user-owned providers, credentials, and explicit settings. |
29
+ | Fast mode was missing from Codex Desktop and the menu bar | Desktop Fast selection is repaired without conflating it with reasoning effort, and the menu bar exposes current Fast status plus direct On/Off actions. |
30
+ | Concurrent hosts could duplicate a Naruto mission or reinterpret its proof | One mission admits one standalone Codex parent, terminal bundles are reused immutably, proof returns a deterministic six-artifact fingerprint, and trusted project MCP configuration is inherited by the parent. |
29
31
 
30
- ## Install
32
+ ## Install In One Command
31
33
 
32
34
  ```sh
33
35
  npx sneakoscope install --yes
34
36
  ```
35
37
 
36
- That one line installs/repairs the global package, runs `sks doctor --fix`, and leaves the Codex App surface ready. The plugin marketplace path is also prepared through `plugins/sks/.codex-plugin/plugin.json`.
38
+ That installs or repairs SKS, runs `sks doctor --fix`, and prepares the Codex App integration. The plugin marketplace path is also prepared through `plugins/sks/.codex-plugin/plugin.json`.
37
39
 
38
40
  For package-managed installs:
39
41
 
@@ -42,7 +44,7 @@ npm i -g sneakoscope
42
44
  sks doctor --fix
43
45
  ```
44
46
 
45
- The SKS menu bar shows the installed Codex CLI version and latest known version. An `⬆` marker appears when an update is available; **Update Codex CLI Now** uses native `codex update` when the selected CLI advertises it, otherwise it verifies the installation provenance and invokes the matching official standalone-installer, npm-global, or Homebrew-cask update method. If the method cannot be verified, it fails closed instead of guessing. This is an explicit global tool mutation. **Run sks doctor --fix** performs the global-only menu repair flow without treating the user's home directory as a project.
47
+ The SKS menu bar shows the installed Codex CLI version and latest known version. An `⬆` marker appears when an update is available; **Update Codex CLI Now** uses native `codex update` when the selected CLI advertises it, otherwise it verifies the installation provenance and invokes the matching official standalone-installer, npm-global, or Homebrew-cask update method. If the method cannot be verified, it fails closed instead of guessing. Control Center updates keep the active UI alive until the operation receipt is durable, then relaunch the companion out of process. This is an explicit global tool mutation. **Run sks doctor --fix** performs the global-only menu repair flow without treating the user's home directory as a project.
46
48
 
47
49
  **Manage MCP Servers…** opens a native macOS manager for the global `~/.codex/config.toml`. It can add remote URL or local stdio servers, enable/disable existing entries, remove entries after confirmation, and refresh the current state. Mutations are lock-protected, backed up, TOML-validated, and written with mode `0600`; configured environment values and command arguments are never rendered in the list. Changes apply to new Codex sessions. The same plumbing is available through the canonical `sks mcp config list|get|add|edit|duplicate|enable|disable|remove|test|login|logout|backups|restore` surface for diagnostics and automation.
48
50
 
@@ -55,7 +57,6 @@ The SKS menu bar shows the installed Codex CLI version and latest known version.
55
57
  | `$sks-naruto "task"` | Runs the Codex official subagent workflow with parent-owned integration and evidence. |
56
58
  | `$sks-mad-sks` / `sks mad-sks` | Single high-risk MAD route for scoped permission widening plus SQL-plane execution, including read-back proof and profile closure. |
57
59
  | `$sks-review` / `sks review --staged` | Reviews diffs with `evidence: machine` findings sorted above `evidence: llm`. |
58
- | `sks ui` | Opens the local live dashboard at `http://127.0.0.1:4477`. |
59
60
 
60
61
  `sks --mad` now prioritizes the interactive ready path: independent macOS config probes run concurrently, failed read-only preflight does not repeat mutation-capable repair inspection, verified Zellij/codex-lb evidence is reused, and the remote Zellij update lookup runs after the UI is ready. Existing unreadable or malformed config still blocks safely; pass an explicit repair flag such as `--repair-config` when repair is intended.
61
62
 
@@ -69,7 +70,7 @@ Gates are task-profile aware: greetings and answer-only turns create no mission
69
70
 
70
71
  Every installed Codex hook runs one common Naruto decision gate. The gate records `none`, `generic_naruto`, or `route_owned`: Answer, DFix, Wiki, Computer Use, Goal, and simple Git/control turns stay lightweight; ordinary non-trivial work defaults to two independent official subagents; critical work spanning at least three risk domains may use three. Research, AutoResearch, and QA-Loop retain their own exact orchestration contracts instead of receiving a second generic fan-out. Explicit `--agents N` remains authoritative.
71
72
 
72
- SKS installs twenty-five narrow project custom agents, including native AppKit, toolchain, protocol, runtime-reliability, TriWiki-evidence, long-context, Computer Use, Browser/Chrome, and image-generation specialists. Delegation prompts inject at most the three roles recommended for the current goal rather than serializing the full catalog, so expanding role coverage does not serialize the full inventory into every prompt. TriWiki context is also bounded and query-aware: ordinary work receives up to four trust/hydration anchors and complex, parallel, or high-risk work receives up to six, with source hydration required before relying on lower-trust hints. In CLI Zellij mode, the right side is a live observability surface rather than a static lane reservation: one monitor plus one viewport by default (maximum three) shows official thread role/model, redacted live phase/task/file updates from exact-agent Codex 0.144.1+ rollouts, `running`, `verifying`, and trustworthy parent-verdict completion/failure states. Rollout activity is display-only and never completion proof.
73
+ SKS installs twenty-five narrow project custom agents, including native AppKit, toolchain, protocol, runtime-reliability, TriWiki-evidence, long-context, Computer Use, Browser/Chrome, and image-generation specialists. Delegation prompts inject at most the three roles recommended for the current goal rather than serializing the full catalog, so expanding role coverage does not serialize the full inventory into every prompt. TriWiki context is also bounded and query-aware: ordinary work receives up to four trust/hydration anchors and complex, parallel, or high-risk work receives up to six, with source hydration required before relying on lower-trust hints. In CLI Zellij mode, the right side is a live observability surface rather than a static lane reservation: one monitor plus one viewport by default (maximum three) shows official thread role/model, redacted live phase/task/file updates from rollout-compatible Codex 0.144.1+ sessions while the current release baseline remains 0.144.5, plus `running`, `verifying`, and trustworthy parent-verdict completion/failure states. Rollout activity is display-only and never completion proof.
73
74
 
74
75
  Official subagent requests use `--agents`; removed scheduler, pool, backend, and model flags fail closed.
75
76
 
@@ -80,19 +81,7 @@ Official subagent requests use `--agents`; removed scheduler, pool, backend, and
80
81
  | Did tests/typecheck fail? | Another model may say so. | Machine check output is tagged `evidence: machine`. |
81
82
  | Are findings ranked? | Usually one blended opinion. | Machine evidence sorts before LLM findings. |
82
83
  | Can work stop? | The model decides. | Stop gates, Completion Proof, and Honest Mode decide. |
83
- | Can I inspect agent-thread progress? | Usually no runtime UI. | `sks ui` plus the official Codex subagent/thread surfaces. |
84
-
85
- ## Dashboard
86
-
87
- `sks ui` serves a dependency-free localhost dashboard with:
88
-
89
- - mission, route, elapsed time, and gate badge
90
- - live official subagent thread grid with role/model badge, progress, and current task
91
- - run/verify/queue/done/fail counters
92
- - recent mission events
93
- - current gate checklist
94
-
95
- The dashboard binds to `127.0.0.1` only and exposes telemetry/gates/events, not config secrets.
84
+ | Can I inspect agent-thread progress? | Usually no runtime UI. | Use the official Codex subagent/thread surfaces and SKS Zellij monitor/viewport panes. |
96
85
 
97
86
  ## Demo
98
87
 
@@ -102,7 +91,7 @@ The reproducible VHS script lives at [docs/demo.tape](docs/demo.tape).
102
91
  vhs docs/demo.tape
103
92
  ```
104
93
 
105
- It shows the current quickstart flow: one-line install, `$sks-plan`, `sks review`, `sks ui`, and an official `$sks-naruto` subagent run.
94
+ It shows the current quickstart flow: one-line install, `$sks-plan`, `sks review`, `sks status --json`, and an official `$sks-naruto` subagent run.
106
95
 
107
96
  ## Proof Surfaces
108
97
 
@@ -132,6 +121,7 @@ It shows the current quickstart flow: one-line install, `$sks-plan`, `sks review
132
121
  - `Manage MCP Servers…` provides a resizable native table and add/remove/enable/disable controls for global Codex MCP configuration. Secret environment values and command arguments are accepted through native dialogs/stdin but omitted from list output and logs.
133
122
  - `sks menubar status --json` reports a `codex_sync` object with `bundle_id`, `codex_running`, and `icon_visible_expected` to show Codex-lifecycle detection state.
134
123
  - The menu displays the installed Codex CLI version, adds an `⬆` status icon when `sks codex update-status` sees a newer release, runs the official self-updater through `Update Codex CLI Now`, and exposes `Run sks doctor --fix` as a background repair action.
124
+ - Fast mode has a verified status row and direct On/Off actions. Status failures render as unavailable with neither choice falsely selected.
135
125
  - If Codex shows `[No tool output found for custom tool call ...]`, SKS blocks reuse of that structurally ambiguous thread. Upgrade codex-lb (or explicitly run `sks codex-lb use-oauth`), inspect possible side effects, then continue the persisted mission in a fresh Codex task. SKS never rewrites session JSONL or fabricates a successful tool output.
136
126
  - Zellij optional but recommended for terminal worker panes
137
127
 
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "schema": "sks.codex-release-manifest.v1",
3
- "targetTag": "rust-v0.144.1",
4
- "requiredCliVersion": "0.144.1",
5
- "sdkVersion": "0.144.1",
6
- "minimumSupportedVersion": "0.144.1",
3
+ "targetTag": "rust-v0.144.5",
4
+ "requiredCliVersion": "0.144.5",
5
+ "sdkVersion": "0.144.5",
6
+ "minimumSupportedVersion": "0.144.5",
7
7
  "protocolMode": "app-server-v2",
8
8
  "generatedSchemaSha256": "2b3f14fa2e728f77a16385ff39f3a1d85ab255c1020498a85c1c0fb24f3d2f3c",
9
- "upstreamCommit": "rust-v0.144.1",
9
+ "upstreamCommit": "rust-v0.144.5",
10
10
  "featurePolicies": {
11
11
  "multiAgentMode": "probe",
12
12
  "indexedWebSearch": "probe",
@@ -76,7 +76,7 @@ dependencies = [
76
76
 
77
77
  [[package]]
78
78
  name = "sks-core"
79
- version = "6.4.0"
79
+ version = "6.5.1"
80
80
  dependencies = [
81
81
  "serde_json",
82
82
  ]
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "sks-core"
3
- version = "6.4.0"
3
+ version = "6.5.1"
4
4
  edition = "2021"
5
5
 
6
6
  [dependencies]
@@ -29,5 +29,5 @@ console.log(`
29
29
  SKS ready. 다음 3개만 기억하세요 (Codex 입력창에서):
30
30
  $sks-plan "무엇을 만들지" - 계획만 세움 (코드 안 건드림)
31
31
  $sks-work - 계획을 증거 기반으로 실행
32
- 실시간 화면: sks ui (웹 대시보드) / zellij 세션은 자동
32
+ 실행 상태: sks status --json / zellij 세션은 자동
33
33
  `);
@@ -12,7 +12,6 @@ export const COMMAND_MANIFEST_LITE = [
12
12
  { name: 'plan', summary: 'Write a planning-only SKS plan artifact without code edits', maturity: 'stable' },
13
13
  { name: 'status', summary: 'Show concise active mission and trust status', maturity: 'stable', readonly: true, skipMigrationGate: true, allowedDuringActiveRoute: true, diagnostic: true },
14
14
  { name: 'review', summary: 'Review a git diff with machine evidence first', maturity: 'stable', allowedDuringActiveRoute: true },
15
- { name: 'ui', summary: 'Open the localhost SKS agent dashboard', maturity: 'stable', readonly: true, skipMigrationGate: true, allowedDuringActiveRoute: true, diagnostic: true },
16
15
  { name: 'root', summary: 'Show active SKS root', maturity: 'stable', readonly: true, skipMigrationGate: true, allowedDuringActiveRoute: true, diagnostic: true },
17
16
  { name: 'update', summary: 'Inspect, review, apply, or roll back the global SKS update', maturity: 'stable' },
18
17
  { name: 'uninstall', summary: 'Uninstall SKS global skills, hooks, config, menu bar, and optional project residue', maturity: 'stable', allowedDuringActiveRoute: true },
@@ -128,7 +128,6 @@ const COMMAND_DEFINITIONS = {
128
128
  allowedDuringActiveRoute: true,
129
129
  activeRoutePolicy: 'always'
130
130
  }),
131
- ui: readOnly(entry('stable', 'Open the localhost SKS agent dashboard', 'dist/core/commands/ui-command.js', argsCommand(() => import('../core/commands/ui-command.js'), 'uiCommand', 'dist/core/commands/ui-command.js'))),
132
131
  root: readOnly(entry('stable', 'Show active SKS root', 'dist/commands/root.js', directCommand(() => import('../commands/root.js'), 'dist/commands/root.js'))),
133
132
  update: skipMigrationGate(entry('stable', 'Inspect, review, apply, or roll back the global SKS update', 'dist/core/commands/basic-cli.js', subcommand(() => import(basicModule), 'updateCommand', 'dist/core/commands/basic-cli.js', 'now'))),
134
133
  uninstall: entry('stable', 'Uninstall SKS global skills, hooks, config, menu bar, and optional project residue', 'dist/core/commands/uninstall-command.js', argsCommand(() => import('../core/commands/uninstall-command.js'), 'uninstallCommand', 'dist/core/commands/uninstall-command.js'), {
@@ -244,7 +243,10 @@ export const COMMANDS = applyCommandContractOverrides(COMMAND_DEFINITIONS, {
244
243
  loop: { latency: 'long' },
245
244
  'mad-sks': { risk: 'R3', latency: 'long' },
246
245
  mcp: { risk: 'R2', latency: 'long', supportsJson: true, inputProfile: 'json-only' },
247
- naruto: { latency: 'long' },
246
+ naruto: {
247
+ risk: 'R2', latency: 'long', supportsJson: true, remoteAllowed: false, telegramAllowed: false,
248
+ inputProfile: 'naruto'
249
+ },
248
250
  paths: {
249
251
  supportsJson: true, remoteAllowed: true, inputProfile: 'paths',
250
252
  requiredCapabilities: ['project.fs.read']
@@ -11,7 +11,6 @@ SNEAKOSCOPE CODEX v${PACKAGE_VERSION}
11
11
 
12
12
  Local surfaces
13
13
 
14
- sks ui localhost live dashboard
15
14
  sks review --staged machine-first diff review
16
15
  sks doctor --fix repair/validate the harness
17
16
 
@@ -215,7 +215,16 @@ export function safeReadOnlySubcommand(command, args) {
215
215
  return false;
216
216
  return !args.some((arg) => ['--fix', '--yes', '-y', '--write', '--apply', '--execute', '--force', '--real'].includes(String(arg)));
217
217
  }
218
- function safeActiveRouteContinuation(command, args, state = {}) {
218
+ export function safeActiveRouteContinuation(command, args, state = {}) {
219
+ const subcommand = String(args[0] || '').toLowerCase();
220
+ const activeRoute = String(state.route || state.route_command || state.mode || '').replace(/^\$/, '').replace(/[-_]/g, '').toUpperCase();
221
+ if (command === 'naruto') {
222
+ if (activeRoute !== 'NARUTO' || subcommand !== 'run')
223
+ return false;
224
+ const requestedMission = optionValue(args, ['--mission', '--mission-id']);
225
+ return Boolean(state.mission_id)
226
+ && (requestedMission === String(state.mission_id) || requestedMission === 'latest');
227
+ }
219
228
  const expectedRoutes = new Map([
220
229
  ['research', ['RESEARCH']],
221
230
  ['autoresearch', ['AUTORESEARCH', 'RESEARCH']],
@@ -223,8 +232,6 @@ function safeActiveRouteContinuation(command, args, state = {}) {
223
232
  ]).get(command);
224
233
  if (!expectedRoutes)
225
234
  return false;
226
- const subcommand = String(args[0] || '').toLowerCase();
227
- const activeRoute = String(state.route || state.route_command || state.mode || '').replace(/^\$/, '').replace(/[-_]/g, '').toUpperCase();
228
235
  if (!expectedRoutes.includes(activeRoute))
229
236
  return false;
230
237
  if (subcommand === 'prepare') {
@@ -240,6 +247,20 @@ function safeActiveRouteContinuation(command, args, state = {}) {
240
247
  const requestedMission = String(args[1] || '').trim();
241
248
  return Boolean(state.mission_id) && (requestedMission === String(state.mission_id) || requestedMission === 'latest');
242
249
  }
250
+ function optionValue(args, names) {
251
+ for (let index = 0; index < args.length; index += 1) {
252
+ const arg = String(args[index] || '');
253
+ for (const name of names) {
254
+ if (arg === name) {
255
+ const next = String(args[index + 1] || '').trim();
256
+ return next && !next.startsWith('-') ? next : '';
257
+ }
258
+ if (arg.startsWith(name + '='))
259
+ return arg.slice(name.length + 1).trim();
260
+ }
261
+ }
262
+ return '';
263
+ }
243
264
  function activeRouteStateBlocksCommand(state = {}) {
244
265
  if (!state?.mission_id || state.route_closed === true)
245
266
  return false;
@@ -7,7 +7,6 @@ import { checkZellijCapability } from '../core/zellij/zellij-capability.js';
7
7
  import { checkZellijUpdateNotice, upgradeZellijToLatest } from '../core/zellij/zellij-update.js';
8
8
  import { runZellij } from '../core/zellij/zellij-command.js';
9
9
  import { appendZellijLaneCommand, normalizeZellijSlot } from '../core/zellij/zellij-lane-runtime.js';
10
- import { buildZellijDashboardSnapshot, renderZellijDashboardText } from '../core/zellij/zellij-dashboard-renderer.js';
11
10
  import { readZellijSlotTelemetrySnapshot } from '../core/zellij/zellij-slot-telemetry.js';
12
11
  export const ZELLIJ_COMMAND_SCHEMA = 'sks.zellij-command.v1';
13
12
  export const ZELLIJ_REPAIR_SCHEMA = 'sks.zellij-repair.v1';
@@ -34,14 +33,29 @@ export async function run(_command = 'zellij', args = []) {
34
33
  return zellijFocusWorker(root, args, json);
35
34
  if (sub === 'worker-logs')
36
35
  return zellijWorkerLogs(root, args, json);
37
- if (sub === 'dashboard')
38
- return zellijDashboard(root, args, json);
39
36
  if (sub === 'close-drained')
40
37
  return zellijCloseDrained(root, args, json);
41
38
  if (sub === 'pin' || sub === 'unpin')
42
39
  return zellijViewportPin(root, sub, args, json);
40
+ if (sub !== 'status' && sub !== 'capability')
41
+ return zellijUnknownSubcommand(sub, json);
43
42
  return zellijStatus(root, args, json);
44
43
  }
44
+ function zellijUnknownSubcommand(subcommand, json) {
45
+ const result = {
46
+ schema: ZELLIJ_COMMAND_SCHEMA,
47
+ subcommand,
48
+ ok: false,
49
+ status: 'unsupported_subcommand',
50
+ blockers: [`unsupported_zellij_subcommand:${subcommand}`]
51
+ };
52
+ if (json)
53
+ printJson(result);
54
+ else
55
+ console.error(`Unsupported Zellij subcommand: ${subcommand}. Run \`sks zellij help\` for the current surface.`);
56
+ process.exitCode = 1;
57
+ return result;
58
+ }
45
59
  async function zellijStatus(root, args, json) {
46
60
  const requireReal = flag(args, '--require-real') || process.env.SKS_REQUIRE_ZELLIJ === '1';
47
61
  const capability = await checkZellijCapability({ root, require: requireReal });
@@ -186,29 +200,6 @@ async function zellijWorkerLogs(root, args, json) {
186
200
  if (!out.ok)
187
201
  process.exitCode = 1;
188
202
  }
189
- async function zellijDashboard(root, args, json) {
190
- const missionId = resolveMissionId(root, readOption(args, '--mission', readOption(args, '--mission-id', 'latest') || 'latest') || 'latest');
191
- const snapshot = await readJson(path.join(root, '.sneakoscope', 'missions', missionId, 'zellij-dashboard-snapshot.json'), null);
192
- const state = await readJson(path.join(root, '.sneakoscope', 'missions', missionId, 'zellij-right-column-state.json'), null);
193
- const watch = flag(args, '--watch');
194
- const out = {
195
- schema: 'sks.zellij-dashboard-command.v1',
196
- ok: Boolean(snapshot || state),
197
- mission_id: missionId,
198
- snapshot,
199
- right_column_state: state,
200
- watch,
201
- watch_command: `sks zellij dashboard --mission ${missionId} --watch`
202
- };
203
- if (json)
204
- printJson(out);
205
- else if (snapshot)
206
- console.log(renderZellijDashboardText(buildZellijDashboardSnapshot({ ...snapshot, mission_id: snapshot.mission_id || missionId })));
207
- else
208
- console.log(JSON.stringify(state || out, null, 2));
209
- if (!out.ok)
210
- process.exitCode = 1;
211
- }
212
203
  async function zellijCloseDrained(root, args, json) {
213
204
  const missionId = resolveMissionId(root, readOption(args, '--mission', readOption(args, '--mission-id', 'latest') || 'latest') || 'latest');
214
205
  const state = await readJson(path.join(root, '.sneakoscope', 'missions', missionId, 'zellij-right-column-state.json'), null);
@@ -358,7 +349,7 @@ function printHelp(json) {
358
349
  schema: ZELLIJ_COMMAND_SCHEMA,
359
350
  subcommand: 'help',
360
351
  ok: true,
361
- usage: 'sks zellij status|update|repair|dispatch|send|focus-worker|worker-logs|dashboard|pin|unpin|close-drained [--json]',
352
+ usage: 'sks zellij status|update|repair|dispatch|send|focus-worker|worker-logs|pin|unpin|close-drained [--json]',
362
353
  subcommands: {
363
354
  status: 'Report Zellij runtime capability and interactive-route readiness.',
364
355
  update: 'Check the latest stable Zellij release; apply the upgrade with --yes (Homebrew).',
@@ -367,7 +358,6 @@ function printHelp(json) {
367
358
  send: 'Alias for dispatch.',
368
359
  'focus-worker': 'Focus a visible right-column worker pane by slot.',
369
360
  'worker-logs': 'Print stdout/stderr log paths for worker slots.',
370
- dashboard: 'Render the latest dashboard snapshot; --watch prints watch metadata.',
371
361
  pin: 'Pin a dynamic worker slot to a viewport.',
372
362
  unpin: 'Remove a worker slot pin from a viewport.',
373
363
  'close-drained': 'Close drained right-column panes.',
@@ -384,7 +374,6 @@ function printHelp(json) {
384
374
  console.log(' sks zellij dispatch --mission M --slot slot-001 --text "..." [--write-pane] [--json]');
385
375
  console.log(' sks zellij focus-worker slot-001 [--mission M] [--json]');
386
376
  console.log(' sks zellij worker-logs [slot-001] [--mission M] [--json]');
387
- console.log(' sks zellij dashboard [--mission M] [--watch] [--json]');
388
377
  console.log(' sks zellij pin slot-001 [--viewport 2] [--mission M] [--json]');
389
378
  console.log(' sks zellij unpin slot-001 [--viewport 2] [--mission M] [--json]');
390
379
  console.log(' sks zellij close-drained [--mission M] [--json]');