sneakoscope 0.6.3 → 0.6.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.
package/README.md CHANGED
@@ -16,8 +16,26 @@ Sneakoscope Codex is an update-aware, zero-runtime-dependency Node.js harness fo
16
16
 
17
17
  ```bash
18
18
  npm i -g sneakoscope
19
+ sks
19
20
  ```
20
21
 
22
+ `npm i -g sneakoscope` prints the next command without opening an interactive prompt, so CI and agent installs do not hang. Run `sks` in a real terminal to open the setup UI. The UI asks whether this project should use the global install or a project-only install, then offers to run setup, doctor, and selftest.
23
+
24
+ Default non-interactive setup:
25
+
26
+ ```bash
27
+ sks setup
28
+ sks doctor --fix
29
+ ```
30
+
31
+ Use local-only setup when the generated SKS files must never appear in git status:
32
+
33
+ ```bash
34
+ sks setup --local-only
35
+ ```
36
+
37
+ This writes repo-local excludes to `.git/info/exclude` for `.sneakoscope/`, `.codex/`, `.agents/`, and `AGENTS.md`. If `AGENTS.md` already exists, local-only setup does not modify it.
38
+
21
39
  The npm package name is `sneakoscope`; the command is branded as SKS and exposed as lowercase `sks` for shell portability. The package also exposes a `sneakoscope` command alias, so `sks setup` and `sneakoscope setup` are equivalent.
22
40
  Global installation is the default and recommended setup. During `sks setup` or `sks init`, SKS resolves the global binary when possible and writes that absolute path into `.codex/hooks.json`, which avoids PATH issues in GUI or hook execution environments. For a project-only install, use `npm i -D sneakoscope` and initialize hooks with `npx sks setup --install-scope project`; this writes hook commands that call the local `node_modules/sneakoscope` binary.
23
41
 
@@ -25,22 +43,20 @@ Global installation is the default and recommended setup. During `sks setup` or
25
43
 
26
44
  ## One-Prompt LLM Install
27
45
 
28
- If you are using Codex App, ChatGPT, Claude Code, Cursor, or another coding agent, copy the whole block below into the agent from your target project directory. The agent should install SKS, initialize the project, verify the setup, and show the available commands in one pass.
46
+ If you are using Codex App, ChatGPT, Claude Code, Cursor, or another coding agent, copy this short prompt from your target project directory. It intentionally avoids recovery branches and broad instructions so the agent does only the install and verification work.
29
47
 
30
48
  ````text
31
- Install Sneakoscope Codex in the current project end to end. Do not ask follow-up questions unless a command requires user approval.
32
-
33
- Repository:
34
- https://github.com/mandarange/Sneakoscope-Codex.git
49
+ Install Sneakoscope Codex in this project.
35
50
 
36
- Requirements:
37
- - Node.js must be >=20.11.
38
- - Codex CLI is installed separately. If it is missing, report that `@openai/codex` must be installed or `SKS_CODEX_BIN` must be set.
39
- - Use the published npm package for normal installs.
40
- - Do not modify application source files unless needed for SKS setup.
51
+ Rules:
52
+ - Do not modify application source files.
53
+ - Ask only when a command requires user approval.
54
+ - If Node.js is below 20.11, stop and report it.
55
+ - If Codex CLI is missing, report: install @openai/codex or set SKS_CODEX_BIN.
41
56
 
42
- Run:
57
+ Run exactly:
43
58
  ```bash
59
+ node -v
44
60
  npm i -g sneakoscope
45
61
  sks setup
46
62
  sks update-check
@@ -50,68 +66,16 @@ sks commands
50
66
  sks dollar-commands
51
67
  ```
52
68
 
53
- If npm reports `ENOTEMPTY`, `EEXIST`, or a broken old global package:
54
- ```bash
55
- npm uninstall -g sneakoscope
56
- npm i -g sneakoscope
57
- sks setup
58
- sks doctor --fix
59
- ```
60
-
61
- If `sks` is not on PATH:
62
- ```bash
63
- npx -y -p sneakoscope sks setup
64
- npx -y -p sneakoscope sks doctor --fix
65
- npx -y -p sneakoscope sks selftest --mock
66
- npx -y -p sneakoscope sks commands
67
- npx -y -p sneakoscope sks dollar-commands
68
- ```
69
-
70
- For project-only install:
71
- ```bash
72
- npm i -D sneakoscope
73
- npx sks setup --install-scope project
74
- npx sks update-check
75
- npx sks doctor --fix --install-scope project
76
- npx sks selftest --mock
77
- npx sks commands
78
- npx sks dollar-commands
79
- ```
80
-
81
- Finish by reporting pass/fail and explaining only these generated outputs:
82
- - `.sneakoscope/` mission state and policy
83
- - `.codex/config.toml` Codex App profiles
84
- - `.codex/hooks.json` SKS hook integration
85
- - `.codex/skills/` local Codex App skills
86
- - `.codex/agents/` local Codex App multi-agent roles
87
- - `.codex/SNEAKOSCOPE.md` Codex App quick reference
88
- - `AGENTS.md` repository rules
89
-
90
- Show command discovery:
91
- ```bash
92
- sks help
93
- sks update-check
94
- sks commands
95
- sks usage team
96
- sks usage ralph
97
- sks quickstart
98
- sks codex-app
99
- sks dollar-commands
100
- ```
69
+ If `sks` is unavailable after install, replace `sks` with `npx -y -p sneakoscope sks` and continue.
101
70
 
102
- Tell the user they can use these prompt commands inside Codex App:
103
- ```text
104
- $DF 글자 바꿔줘
105
- $DF 내용을 영어로 바꿔줘
106
- $SKS show me available workflows
107
- $Team agree on the best plan and implement with specialists
108
- $Ralph implement this with mandatory clarification
109
- $Research investigate this idea
110
- $AutoResearch improve this workflow with experiments
111
- $DB check this migration safely
112
- ```
71
+ Finish with only:
72
+ - setup passed/failed
73
+ - Codex CLI present/missing
74
+ - generated files: `.sneakoscope/`, `.codex/config.toml`, `.codex/hooks.json`, `.codex/skills/`, `.codex/agents/`, `.codex/SNEAKOSCOPE.md`, `AGENTS.md`
113
75
  ````
114
76
 
77
+ Run `sks install-prompt --project` for a project-only prompt, or `sks install-prompt --full` for the longer recovery-oriented installer prompt.
78
+
115
79
  ## Repository
116
80
 
117
81
  ```bash
@@ -409,10 +373,11 @@ All terminal examples below use `sks`, but the same commands can be run with the
409
373
  ```bash
410
374
  sks help [topic]
411
375
  sks update-check [--json]
376
+ sks wizard
412
377
  sks commands [--json]
413
- sks usage [install|setup|team|ralph|research|db|codex-app|df|dollar|eval|gx]
378
+ sks usage [install|setup|team|ralph|research|db|codex-app|df|dollar|eval|gx|wiki]
414
379
  sks quickstart
415
- sks install-prompt [--project]
380
+ sks install-prompt [--project] [--full]
416
381
  sks codex-app
417
382
  sks dollar-commands [--json]
418
383
  sks df
@@ -421,10 +386,10 @@ sks aliases
421
386
  sks --help
422
387
  sneakoscope --help
423
388
 
424
- sks setup [--install-scope global|project] [--force] [--json]
389
+ sks setup [--install-scope global|project] [--local-only] [--force] [--json]
425
390
  sks fix-path [--install-scope global|project] [--json]
426
- sks doctor [--fix] [--json] [--install-scope global|project]
427
- sks init [--force] [--install-scope global|project]
391
+ sks doctor [--fix] [--local-only] [--json] [--install-scope global|project]
392
+ sks init [--force] [--local-only] [--install-scope global|project]
428
393
  sks selftest [--mock]
429
394
 
430
395
  sks ralph prepare "task"
@@ -449,6 +414,10 @@ sks eval run [--json] [--out report.json] [--iterations N]
449
414
  sks eval compare --baseline old.json --candidate new.json [--json]
450
415
  sks eval thresholds
451
416
 
417
+ sks wiki coords --rgba 12,34,56,255
418
+ sks wiki pack [--json] [--role worker|verifier] [--max-anchors N]
419
+ sks wiki validate [context-pack.json]
420
+
452
421
  sks hproof check [mission-id|latest]
453
422
  sks team "task" [--json]
454
423
  sks gx init [name]
@@ -622,7 +591,7 @@ sks hproof check latest
622
591
  `sks init` creates the local control surface:
623
592
 
624
593
  ```text
625
- .sneakoscope/ mission state, policy, retention, logs, GX cartridges
594
+ .sneakoscope/ mission state, policy, retention, logs, wiki packs, GX cartridges
626
595
  .codex/config.toml Codex profiles used by Sneakoscope Codex
627
596
  .codex/hooks.json hook entrypoints
628
597
  .codex/skills/ Codex App local project skills
@@ -684,7 +653,28 @@ vgraph.json
684
653
 
685
654
  ## TriWiki Context Compression
686
655
 
687
- TriWiki is a harness-level context selection strategy, not a model-internal modification. It scores claims and memory entries by geometric distance, authority, freshness, risk, and token cost, then builds small context capsules for the current mission.
656
+ TriWiki is a harness-level context selection strategy, not a model-internal modification. It scores claims and memory entries by geometric distance, authority, freshness, risk, and token cost, then builds context capsules for the current mission.
657
+
658
+ The default model is anchor-first rather than lossy-summary-first. Selected claims are included as text, while non-selected claims are preserved as LLM Wiki anchors with id, source path, hash, RGBA key, and a compact coordinate tuple. Later turns can hydrate the missing context from the project wiki instead of depending on a one-way summary.
659
+
660
+ RGBA wiki coordinates use four channels:
661
+
662
+ ```text
663
+ R -> domain angle
664
+ G -> layer radius through sin()
665
+ B -> phase angle
666
+ A -> concentration/confidence
667
+ ```
668
+
669
+ The derived coordinate is `[domain, layer, phase, concentration]`, with an internal `xyzw` vector computed through sine/cosine. GX renders expose the same anchors through SVG data attributes and an RGBA coordinate strip, so visual context and text claims share one retrieval space.
670
+
671
+ Useful commands:
672
+
673
+ ```bash
674
+ sks wiki coords --rgba 12,34,56,255
675
+ sks wiki pack
676
+ sks wiki validate
677
+ ```
688
678
 
689
679
  Default context layers:
690
680
 
@@ -6,8 +6,8 @@ Sneakoscope Codex v0.6 is designed to keep runtime, package size, RAM, and stora
6
6
 
7
7
  - `codex exec` output is streamed to files and only a bounded tail is retained in memory.
8
8
  - Ralph cycles run under a timeout and bounded max cycles.
9
- - TriWiki claim selection uses bounded top-K selection instead of sorting unbounded context into prompts.
10
- - GX visual context renders deterministic SVG/HTML from JSON sources, avoiding external image-generation latency, cost, and nondeterminism.
9
+ - TriWiki claim selection uses bounded top-K selection plus RGBA/trig wiki anchors instead of sorting unbounded context into prompts.
10
+ - GX visual context renders deterministic SVG/HTML from JSON sources, avoiding external image-generation latency, cost, and nondeterminism. Rendered nodes expose the same RGBA wiki-coordinate anchors used by TriWiki.
11
11
  - `sks gc` runs after Ralph cycles by default.
12
12
 
13
13
  ## Evaluation metrics
@@ -30,6 +30,19 @@ Default meaningful-improvement thresholds are intentionally explicit: at least 2
30
30
 
31
31
  The accuracy metric is not a live model task score. It is a deterministic proxy for whether the context handed to a model is smaller, better supported, and less contaminated by unsupported critical claims.
32
32
 
33
+ ## LLM Wiki coordinate continuity
34
+
35
+ TriWiki does not treat compression as permanent deletion. The visible context pack includes selected claim text plus a compact LLM Wiki coordinate index:
36
+
37
+ ```text
38
+ R channel -> domain angle
39
+ G channel -> layer radius via sin()
40
+ B channel -> phase angle
41
+ A channel -> concentration/confidence
42
+ ```
43
+
44
+ Each anchor stores id, RGBA key, `[domain, layer, phase, concentration]`, source path, status/risk, and a text hash. This keeps non-selected claims hydratable across turns while keeping raw Q0 logs and large Q1 evidence out of the prompt until verification needs them.
45
+
33
46
  ## Package size
34
47
 
35
48
  - The npm package has zero runtime dependencies.
@@ -66,3 +79,5 @@ Blocked classes include destructive SQL, direct remote SQL mutation, `supabase d
66
79
  Sneakoscope Codex v0.4 replaces model-rendered visual cartridges with deterministic code-rendered context sheets. `vgraph.json` and `beta.json` are the inputs, `render.svg` and `render.html` are reproducible outputs, and `drift.json` records whether the rendered source hash still matches the current graph.
67
80
 
68
81
  This keeps visual context cheap to regenerate, diffable in normal tooling, and safe to validate during npm packaging without network calls or model access.
82
+
83
+ GX snapshots include `wiki_coordinates`, and `render.svg` nodes include `data-wiki-rgba` and `data-wiki-coord` attributes. This makes the visual context sheet and LLM Wiki pack share one deterministic coordinate system.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "sneakoscope",
3
3
  "displayName": "Sneakoscope Codex",
4
- "version": "0.6.3",
4
+ "version": "0.6.7",
5
5
  "description": "Sneakoscope Codex: update-aware, database-safe Codex CLI harness with multi-agent Team orchestration, Ralph no-question execution, autoresearch-style loops, and H-Proof gates.",
6
6
  "type": "module",
7
7
  "homepage": "https://github.com/mandarange/Sneakoscope-Codex#readme",
@@ -32,6 +32,7 @@
32
32
  },
33
33
  "scripts": {
34
34
  "repo-audit": "node ./scripts/repo-audit.mjs",
35
+ "postinstall": "node ./bin/sks.mjs postinstall",
35
36
  "selftest": "node ./bin/sks.mjs selftest --mock",
36
37
  "doctor": "node ./bin/sks.mjs doctor",
37
38
  "packcheck": "find bin src scripts -name '*.mjs' -print0 | xargs -0 -n1 node --check",
@@ -63,6 +64,8 @@
63
64
  "hypothesis",
64
65
  "discovery",
65
66
  "llm-wiki",
67
+ "wiki-coordinate",
68
+ "context-compression",
66
69
  "gx",
67
70
  "svg",
68
71
  "deterministic",