@nurix/etna 0.19.17 → 0.19.19

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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "fingerprint": "a7791e9cf297",
2
+ "fingerprint": "8688786a5c30",
3
3
  "harnesses": {
4
4
  "code": {
5
5
  "plugin": "code",
@@ -7,5 +7,5 @@
7
7
  ".prettierrc.json",
8
8
  ".vscode/settings.json"
9
9
  ],
10
- "digest": "cc025f7950c3"
10
+ "digest": "7a392f55e225"
11
11
  }
@@ -6,7 +6,7 @@ correctly, the record stays readable at any pause, and the session ends with a h
6
6
  complete that the session folder is useless — it moves to history and the user deletes or
7
7
  commits it.
8
8
 
9
- > Spec (single source of truth): `docs/features/brainstorm-skill/` in the etna repo. The etna
9
+ > Spec (single source of truth): `docs/architecture/skills/brainstorm/` in the etna repo. The etna
10
10
  > copy of this skill (`skills/brainstorm/`) is canonical; the user-level path
11
11
  > `~/.claude/skills/brainstorm/` is a symlink to it.
12
12
 
@@ -36,6 +36,24 @@ Agent name = dimension name. ⚠ = gated (needs user authorization before dispat
36
36
 
37
37
  ---
38
38
 
39
+ ## Step 0 — first run (tooling check)
40
+
41
+ **Once per folder, before Mode 1.** Capture depth depends on host tooling most machines lack (`gron`, `trafilatura`, `mitmproxy`, `chrome-remote-interface`, …). On the first run in a corpus folder, check the state file `.claude/discover-tooling.json`:
42
+
43
+ - **It exists** → tooling was already reviewed here — skip straight to Mode 1. **Never re-prompt in the same folder.**
44
+ - **It's absent** → run the one-time check:
45
+ 1. Read [`tooling-recommendations.md`](tooling-recommendations.md) (beside this file at the project root) — the Tier 1 (clean) and Tier 2 (gated) tool lists + the AVOID list.
46
+ 2. **Validate what's already installed before recommending anything** — `command -v <tool>` per recommended tool (`npm ls -g <pkg>` for the Node libraries that ship no binary, e.g. `chrome-remote-interface`). Detection only — install nothing yourself.
47
+ 3. **Recommend only the missing tools**, grouped **clean** (safe to install freely — offer the Tier-1 one-paste block) vs **gated** (first-party / user-owned / opt-in — surface the command but **never run it for the user**; these need the user in the loop). Never suggest anything on the AVOID list. If nothing is missing, say so in one line.
48
+ 4. **Write `.claude/discover-tooling.json`** so the harness never asks again in this folder:
49
+ ```json
50
+ { "checked": "<ISO date>", "present": ["gron", "pandoc"], "missing": ["mitmproxy"], "recommended": true }
51
+ ```
52
+
53
+ The state file is **host-local** (tools live on the machine, not the repo) — gitignore it in a shared folder; delete it to force a fresh check after installing a batch. This step never blocks a run: a user who declines proceeds to Mode 1 on whatever tooling is present, and a genuinely missing *preferred* capability is re-surfaced at the Mode 2 capability-gap checkpoint.
54
+
55
+ ---
56
+
39
57
  ## Mode 1 — Discovery
40
58
 
41
59
  Cheap, read-only. Scope the target, grade its access, detect which dimensions it exposes.
@@ -5,7 +5,8 @@
5
5
  "files": [
6
6
  ".prettierignore",
7
7
  ".prettierrc.json",
8
- ".vscode/settings.json"
8
+ ".vscode/settings.json",
9
+ "tooling-recommendations.md"
9
10
  ],
10
- "digest": "a672787b9962"
11
+ "digest": "4e7fa848fe93"
11
12
  }
@@ -0,0 +1,119 @@
1
+ # Tooling recommendations — what to install to improve capture & synthesis
2
+
3
+ > The `discover` harness reads this file on **first run** (Step 0 in [`CLAUDE.md`](CLAUDE.md)): it detects which of these tools are already on the host, recommends only the **missing** ones (the gated ones only with you in the loop), and records the result in `.claude/discover-tooling.json` so it never re-prompts in this folder. Nothing here is installed automatically — the harness recommends, you decide.
4
+
5
+ The host almost always arrives strong on languages and package managers (node, pnpm, python, uv, cargo, gh, jq, ripgrep) but **bare on capture/analysis tooling** — the tools below are what turn a shallow capture into a deep one.
6
+
7
+ ## How to read this
8
+
9
+ - **clean** — passive / local-only; always in-bounds. Install freely.
10
+ - **gated** — fine, but only **first-party / user-owned / opt-in** (you install the CA, you route _your own_ client, you own the keys). mitmproxy, websocat, CDP, subfinder/tlsx, frida-on-your-own-device.
11
+ - **avoid** — crosses the harness bright line (active scanning / exploitation / third-party packet capture). Listed so they're _not_ added by reflex.
12
+
13
+ The harness is for **spec-writing / integration / competitive analysis** — passive or first-party only, respect TOS/robots. No tool below changes that; the gated ones just need the user in the loop.
14
+
15
+ ---
16
+
17
+ ## Tier 1 — install now (clean, broad leverage)
18
+
19
+ The highest-consensus, always-in-bounds tools. One paste:
20
+
21
+ ```bash
22
+ # Homebrew (CLI analysis + data-wrangling + web→text)
23
+ brew install gron pandoc ast-grep scc universal-ctags oasdiff fd yq dasel monolith tokei sevenzip
24
+ # Rust
25
+ cargo install htmlq
26
+ # Python (via uv — pipx is absent; uv tool install is the path)
27
+ uv tool install trafilatura && uv tool install griffe
28
+ # Node global (JS/TS surface + bundle de-obfuscation + spec lint)
29
+ npm i -g webcrack source-map-explorer @arethetypeswrong/cli publint @electron/asar typescript @stoplight/spectral-cli
30
+ # Headless browser for JS-rendered docs/marketing (clean — your own headless instance)
31
+ npm i -g playwright && npx playwright install chromium
32
+ ```
33
+
34
+ | Tool | Unlocks | Dimensions served |
35
+ | --- | --- | --- |
36
+ | **gron** | flatten any JSON → greppable/diffable `path = value` (specs, captures, manifests, HAR, configs) | **7** (codebase, api, session, bundle, infra, wire, cross-cutting) |
37
+ | **trafilatura** | boilerplate-stripped main-content + dates from HTML → clean markdown; feed/sitemap discovery | **4** (docs, website, community, infra) |
38
+ | **pandoc** | deterministic HTML→GFM (headings, tables, code fences) at scale | 3 (docs, website, community) |
39
+ | **ast-grep** | tree-sitter structural search/count across many files+langs (call sites, routes, exports) — catches what regex misses | 2 (codebase, bundle) |
40
+ | **oasdiff** | structured breaking-vs-non-breaking OpenAPI diff — makes the published-vs-app-own diff machine-checked | 2 (api, cross-cutting) |
41
+ | **webcrack** | un-minify / un-webpack / de-obfuscate SPA & Electron JS into readable modules | 2 (bundle, distribution) |
42
+ | **scc** | instant LOC-by-language + complexity census of a fresh clone (JSON) — the codebase opening move | 1 (codebase) |
43
+ | **universal-ctags** | real multi-lang JSON symbol index (the host's BSD ctags is broken for this) | 1 (codebase) |
44
+ | **htmlq** | surgical CSS-selector extraction (pricing cards, feature tables) instead of regex | 1 (website) |
45
+ | **source-map-explorer** | reassemble shipped `.map` → original `src/` tree (the `source-map-reassembly` method) | 1 (bundle) |
46
+ | **spectral** | validate/resolve an OpenAPI/AsyncAPI spec → structured endpoint/security/$ref catalog | 1 (api) |
47
+ | **griffe** | extract a PyPI package's full public API (the `.d.ts`-equivalent for Python) | 1 (packages) |
48
+ | **@arethetypeswrong/cli + typescript + publint** | parse the real `.d.ts`/exports type graph + grade the publish surface (verbatim, not string-mined) | 1 (packages) |
49
+ | **@electron/asar** | extract Electron `app.asar` → JS module tree (the distribution step the playbook names but can't run) | 1 (distribution) |
50
+ | **fd / yq / dasel / monolith / tokei / sevenzip** | gitignore-aware file discovery · YAML/XML/TOML query · RSS/XML→JSON · single-file page archive · LOC cross-check · multi-format extract | several |
51
+
52
+ ---
53
+
54
+ ## Tier 2 — install when a run needs them (gated: first-party / passive-care)
55
+
56
+ The capture lanes. In-bounds **only** for your own session / first-party clients / passive sources.
57
+
58
+ ```bash
59
+ brew install mitmproxy websocat grpcurl subfinder tlsx testssl jadx apktool
60
+ npm i -g chrome-remote-interface get-graphql-schema
61
+ # one-time, user-run: expose a CDP port on your own Chrome (closes the WS-frame blind spot)
62
+ # open -na "Google Chrome" --args --remote-debugging-port=9222
63
+ # mobile-only, your own device + opt-in: uv tool install frida-tools
64
+ ```
65
+
66
+ | Tool | Unlocks | Ethics note |
67
+ | --- | --- | --- |
68
+ | **mitmproxy** | decode full HTTPS + WebSocket flows of any **first-party** client (CLI/desktop/mobile/SDK) — wire-capture rung 3 keystone | user installs CA + routes _their own_ client only |
69
+ | **chrome-remote-interface** | raw CDP client → `Network.webSocketFrameReceived`/`Created`, SSE, full bodies — **captures the on-load WS frames the browser MCP's HTTP-only `read_network_requests` drops** | your own logged-in session |
70
+ | **websocat** | curl-for-WebSockets: connect/frame/replay/hexdump a realtime endpoint outside the browser | first-party endpoint |
71
+ | **grpcurl** | list services + invoke RPCs via gRPC server reflection → readable op/message catalog | first-party endpoint |
72
+ | **get-graphql-schema** | introspect a first-party GraphQL endpoint → full SDL | first-party endpoint |
73
+ | **subfinder / tlsx / testssl.sh** | passive CT/DNS subdomain breadth + structured TLS posture (vs hand-rolled crt.sh + openssl text) | passive aggregation; respect rate limits |
74
+ | **jadx / apktool** | decompile Android `.apk`/`.dex` → Java + decode `AndroidManifest`/resources (capability map) | public binary, read EULA |
75
+ | **frida-tools** | cert-pinning bypass to capture **your own** mobile client's wire | your own device + opt-in only |
76
+
77
+ **The single biggest unlock** for realtime targets: `chrome-remote-interface` + a Chrome `--remote-debugging-port` + `websocat` + `mitmproxy` together give `session`/`wire-capture` a real WebSocket/SSE capture path, instead of a client-side-remount workaround. The browser-MCP `read_network_requests` is HTTP-only — that's _why_ a realtime tap comes back empty until the remount trick.
78
+
79
+ ---
80
+
81
+ ## AVOID — do NOT install (crosses the harness bright line)
82
+
83
+ Out-of-bounds for a spec-writing/competitive-analysis harness — listed so they aren't added by reflex:
84
+
85
+ - **`nmap`, `masscan`, `naabu`** — active port sweeps / service-version probing of remote hosts.
86
+ - **`nuclei`** — template-based remote vuln scanning.
87
+ - **`sqlmap`** — injection/exploitation.
88
+ - **`amass` (active mode)** — active DNS brute-forcing (its _passive_ mode overlaps subfinder; prefer subfinder).
89
+ - **third-party `mitmproxy`, `frida` on devices you don't own, `socat` as a public relay** — third-party traffic interception is the line this harness will not cross.
90
+
91
+ These stay absent by design; the recon ethics depend on it.
92
+
93
+ ---
94
+
95
+ ## Per-dimension view (gap → top pick)
96
+
97
+ | Dimension | Biggest capability gap on a bare host | Top addition(s) |
98
+ | --- | --- | --- |
99
+ | **codebase** | no LOC census, no AST search; BSD ctags is broken | scc · ast-grep · universal-ctags (+ fd) |
100
+ | **docs** | no HTML/MDX→md, no JS-render → client-rendered docs come back empty | pandoc · trafilatura · playwright |
101
+ | **packages** | the real `.d.ts`/exports surface is string-mined, not parsed | typescript+attw+publint · griffe (Py) · yq |
102
+ | **api** | can fetch a spec but can't lint/diff/introspect/exercise it | spectral · oasdiff · get-graphql-schema · grpcurl · websocat |
103
+ | **website** | no JS-render, no clean table/text extraction → misses pricing/feature grids | trafilatura · htmlq · playwright |
104
+ | **community** | no clean changelog/blog→text, no RSS→JSON | trafilatura · pandoc · dasel |
105
+ | **session** | **structurally blind to WebSocket/SSE frames** (HTTP-only MCP, no CDP port) | chrome-remote-interface · mitmproxy · websocat |
106
+ | **deployed-client-bundle** | minified/obfuscated blob stays opaque; no source-map reassembly | webcrack · source-map-explorer · ast-grep · gron |
107
+ | **infra-backend-fingerprint** | shallow CT coverage, TLS posture by hand, sub-processor pages scraped raw | subfinder · tlsx · trafilatura (passive only) |
108
+ | **wire-capture** | keystone mitmproxy + all non-browser replay/decode clients absent | mitmproxy · websocat · grpcurl |
109
+ | **distribution-artifacts** | only CRX/Mach-O readable; no Electron/Android decoders | @electron/asar · jadx · apktool · webcrack · sevenzip |
110
+ | **cross-cutting (synthesis)** | no structured diff for the N-way seam reconciliation; no out-of-band WS capture | gron · oasdiff · chrome-remote-interface · yq |
111
+
112
+ ---
113
+
114
+ ## Known install caveats
115
+
116
+ - **`webcrack` needs Node 22.** Its hard dependency `isolated-vm` is a native (node-gyp) addon that fails to build against Node 26 (and `--omit=optional` doesn't help — the dep is non-optional). If it won't install, run it under a Node 22 LTS shim (`npx -y webcrack@latest …` in a Node-22 env), or lean on the already-clean `source-map-explorer` (the preferred `source-map-reassembly` path whenever the SPA ships `.map` files) + `ast-grep`. De-obfuscation of a _no-maps, minified_ bundle is the only gap this leaves.
117
+ - **`chrome-remote-interface` is a library, not a CLI** — it installs as a Node module and is invoked from a script, not a shell binary. Detect it with `npm ls -g chrome-remote-interface`, not `command -v`.
118
+ - **`pipx` is typically absent; use `uv tool install`** for Python CLIs (uv is present) — simpler than adding pipx.
119
+ - **`playwright` is clean** (your own headless instance) and unblocks JS-rendered docs/marketing for `docs`+`website` without contending for the gated `session` Chrome.
@@ -7,5 +7,5 @@
7
7
  ".prettierrc.json",
8
8
  ".vscode/settings.json"
9
9
  ],
10
- "digest": "b93279e6959d"
10
+ "digest": "dbc9b25ecc8f"
11
11
  }
@@ -6,7 +6,7 @@ correctly, the record stays readable at any pause, and the session ends with a h
6
6
  complete that the session folder is useless — it moves to history and the user deletes or
7
7
  commits it.
8
8
 
9
- > Spec (single source of truth): `docs/features/brainstorm-skill/` in the etna repo. The etna
9
+ > Spec (single source of truth): `docs/architecture/skills/brainstorm/` in the etna repo. The etna
10
10
  > copy of this skill (`skills/brainstorm/`) is canonical; the user-level path
11
11
  > `~/.claude/skills/brainstorm/` is a symlink to it.
12
12
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nurix/etna",
3
- "version": "0.19.17",
3
+ "version": "0.19.19",
4
4
  "description": "Bootstrap a project with a Nurix harness — copies the harness's CLAUDE.md, skills, agents, rules, and hooks directly into the project from a bundled payload (no marketplace fetch, no network).",
5
5
  "type": "module",
6
6
  "bin": {