sneakoscope 0.6.51 → 0.6.57
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 +106 -1
- package/package.json +1 -1
- package/src/cli/main.mjs +257 -21
- package/src/core/fsx.mjs +1 -1
- package/src/core/init.mjs +9 -9
- package/src/core/pipeline.mjs +161 -22
- package/src/core/questions.mjs +29 -4
- package/src/core/retention.mjs +20 -1
- package/src/core/routes.mjs +12 -5
- package/src/core/team-dag.mjs +464 -0
- package/src/core/triwiki-attention.mjs +67 -5
- package/src/core/wiki-coordinate.mjs +5 -2
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|

|
|
4
4
|
|
|
5
|
-
Codex CLI/App harness for `$` routes, Team/Ralph/QA/Research, Context7, Honest Mode, DB safety, and
|
|
5
|
+
Codex CLI/App harness for `$` routes, Team/Ralph/QA/Research, Context7, Honest Mode, DB safety, TriWiki, Codex App skills, and release readiness.
|
|
6
6
|
|
|
7
7
|
Install: `npm i -g sneakoscope && sks bootstrap`
|
|
8
8
|
Fallback: `npx -y -p sneakoscope sks bootstrap`
|
|
@@ -10,3 +10,108 @@ Project: `npm i -D sneakoscope && npx sks setup --install-scope project`
|
|
|
10
10
|
|
|
11
11
|
Discover: `sks commands`, `sks dollar-commands`, `sks usage <topic>`
|
|
12
12
|
Check: `sks deps check`, `sks doctor --fix`, `sks selftest --mock`
|
|
13
|
+
|
|
14
|
+
## What It Adds
|
|
15
|
+
|
|
16
|
+
Sneakoscope (`sks`, displayed as `ㅅㅋㅅ`) wraps Codex with a repeatable control surface:
|
|
17
|
+
|
|
18
|
+
| Area | What it does |
|
|
19
|
+
| --- | --- |
|
|
20
|
+
| Codex App commands | Installs generated skills so `$Team`, `$DFix`, `$QA-LOOP`, `$Ralph`, `$DB`, `$Wiki`, `$Help`, and related routes are discoverable in prompt workflows. |
|
|
21
|
+
| CLI commands | Provides `sks commands`, `sks dollar-commands`, `sks usage <topic>`, bootstrap, setup, doctor, deps, selftest, wiki, team, QA, Ralph, DB, and GX commands. |
|
|
22
|
+
| Team orchestration | Routes substantial code work through ambiguity removal, scouts, TriWiki refresh, debate, consensus, concrete runtime task graph/inboxes, implementation, review, integration, reflection, and Honest Mode. |
|
|
23
|
+
| Ralph | Seals a decision contract up front, then continues without more user questions by using the agreed decision ladder. |
|
|
24
|
+
| QA loop | Dogfoods UI/API behavior with safety boundaries, evidence capture, safe remediation, and focused rechecks. |
|
|
25
|
+
| TriWiki | Keeps `.sneakoscope/wiki/context-pack.json` as the context SSOT, with refresh, pack, prune, validate, active attention ranking, and hydratable source-backed claims. |
|
|
26
|
+
| Context7 | Requires current external library/API/framework docs for routes whose correctness depends on live package or platform behavior. |
|
|
27
|
+
| DB safety | Treats SQL, migrations, Supabase, RLS, and destructive operations as high risk; defaults to inspection and guarded local/branch-safe migration work. |
|
|
28
|
+
| Honest Mode | Finishes work with a claim/evidence pass that separates verified facts, unsupported claims, blocked checks, and not-applicable items. |
|
|
29
|
+
| GX visual context | Generates deterministic visual context cartridges for structured visual review and drift checks. |
|
|
30
|
+
| Research loops | Supports Research and AutoResearch workflows with hypotheses, experiments, falsification, novelty ledgers, SEO/GEO, and evidence-backed conclusions. |
|
|
31
|
+
| Release hygiene | Checks versioning, changelog, package contents, tarball size, syntax, selftests, and dry-run packaging before publish. |
|
|
32
|
+
|
|
33
|
+
## Prompt `$` Commands
|
|
34
|
+
|
|
35
|
+
Use these inside Codex App or another agent prompt. They are prompt commands, not terminal commands.
|
|
36
|
+
|
|
37
|
+
| Prompt | Purpose |
|
|
38
|
+
| --- | --- |
|
|
39
|
+
| `$Team` | Default route for code-changing work and substantial implementation. |
|
|
40
|
+
| `$From-Chat-IMG` | Team alias for chat screenshot plus original attachment intake. |
|
|
41
|
+
| `$DFix` | Tiny design/content fixes: labels, copy, colors, spacing, translation. |
|
|
42
|
+
| `$Answer` | Answer-only route when no implementation should start. |
|
|
43
|
+
| `$SKS` | Setup, status, usage, and Sneakoscope workflow help. |
|
|
44
|
+
| `$QA-LOOP` | UI/API dogfooding, safe fixes, and rechecks. |
|
|
45
|
+
| `$Ralph` | Clarify once, seal a decision contract, then execute. |
|
|
46
|
+
| `$Research` | Frontier-style research with hypotheses and falsification. |
|
|
47
|
+
| `$AutoResearch` | Iterative improve-test-keep/discard optimization loop. |
|
|
48
|
+
| `$DB` | Database and Supabase safety checks. |
|
|
49
|
+
| `$GX` | Deterministic visual context generation and validation. |
|
|
50
|
+
| `$Wiki` | TriWiki refresh, pack, prune, validate, and maintenance. |
|
|
51
|
+
| `$Help` | Installed command and workflow explanation. |
|
|
52
|
+
|
|
53
|
+
Run `sks dollar-commands` to verify the terminal and Codex App command surfaces agree.
|
|
54
|
+
|
|
55
|
+
## Terminal Examples
|
|
56
|
+
|
|
57
|
+
```sh
|
|
58
|
+
sks usage install
|
|
59
|
+
sks usage team
|
|
60
|
+
sks usage qa-loop
|
|
61
|
+
sks usage codex-app
|
|
62
|
+
sks setup --install-scope project
|
|
63
|
+
sks wiki refresh
|
|
64
|
+
sks wiki validate .sneakoscope/wiki/context-pack.json
|
|
65
|
+
sks versioning status
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
Route examples:
|
|
69
|
+
|
|
70
|
+
```sh
|
|
71
|
+
sks team "implement this" executor:3 reviewer:1
|
|
72
|
+
sks team watch <mission-id>
|
|
73
|
+
sks qa-loop prepare
|
|
74
|
+
sks qa-loop run
|
|
75
|
+
sks ralph prepare
|
|
76
|
+
sks ralph run
|
|
77
|
+
sks db scan
|
|
78
|
+
sks gx init
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
## Workflow Rules
|
|
82
|
+
|
|
83
|
+
For code work, Sneakoscope defaults to Team. The normal flow is: remove ambiguity that can change scope or safety, read/validate TriWiki, consume `attention.use_first` for compact high-trust context, hydrate `attention.hydrate_first` from source before risky decisions, gather current source evidence, synthesize consensus, compile a concrete runtime task graph plus worker inboxes, implement bounded changes, refresh/validate context after meaningful findings, run relevant checks, then finish with reflection and Honest Mode.
|
|
84
|
+
|
|
85
|
+
For tiny text/design edits use `$DFix`. For questions that should not change files use `$Answer`.
|
|
86
|
+
|
|
87
|
+
## Codex App Surface
|
|
88
|
+
|
|
89
|
+
`sks bootstrap` and `sks setup` install `.codex/SNEAKOSCOPE.md`, generated `.agents/skills`, `.codex/hooks.json`, route instructions for `$` commands, and user-home skill state for first-install discoverability.
|
|
90
|
+
|
|
91
|
+
After install, check:
|
|
92
|
+
|
|
93
|
+
```sh
|
|
94
|
+
sks dollar-commands
|
|
95
|
+
sks usage codex-app
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
## Release Checks
|
|
99
|
+
|
|
100
|
+
Before publish:
|
|
101
|
+
|
|
102
|
+
```sh
|
|
103
|
+
npm run publish:dry
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
This runs repo audit, changelog check, syntax packcheck, mock selftest, sizecheck, and `npm pack --dry-run`. A dry run proves the local package is packable; npm account ownership or OTP can still block the real registry upload.
|
|
107
|
+
|
|
108
|
+
## Requirements
|
|
109
|
+
|
|
110
|
+
- Node.js `>=20.11`
|
|
111
|
+
- npm
|
|
112
|
+
- Codex CLI/App for app-facing workflows
|
|
113
|
+
- Context7 MCP for current-docs-gated routes
|
|
114
|
+
|
|
115
|
+
## License
|
|
116
|
+
|
|
117
|
+
MIT
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sneakoscope",
|
|
3
3
|
"displayName": "ㅅㅋㅅ",
|
|
4
|
-
"version": "0.6.
|
|
4
|
+
"version": "0.6.57",
|
|
5
5
|
"description": "Sneakoscope Codex: database-safe Codex CLI/App harness with Team, Ralph, AutoResearch, TriWiki, and Honest Mode.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"homepage": "https://github.com/mandarange/Sneakoscope-Codex#readme",
|