@rune-kit/rune 2.18.1 → 2.20.0

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 (34) hide show
  1. package/README.md +22 -7
  2. package/compiler/__tests__/comprehension.test.js +916 -0
  3. package/compiler/__tests__/governance-collector.test.js +376 -0
  4. package/compiler/__tests__/setup.test.js +5 -0
  5. package/compiler/analytics.js +5 -0
  6. package/compiler/bin/rune.js +165 -1
  7. package/compiler/comprehension-client.js +2348 -0
  8. package/compiler/comprehension.js +1254 -0
  9. package/compiler/governance-collector.js +382 -0
  10. package/compiler/schemas/comprehension.schema.json +87 -0
  11. package/compiler/schemas/governance.schema.json +78 -0
  12. package/compiler/transforms/branding.js +1 -1
  13. package/hooks/context-watch/index.cjs +24 -13
  14. package/hooks/hooks.json +2 -2
  15. package/hooks/lib/context-key.cjs +37 -0
  16. package/hooks/metrics-collector/index.cjs +37 -8
  17. package/hooks/pre-tool-guard/index.cjs +44 -0
  18. package/hooks/session-start/index.cjs +4 -10
  19. package/package.json +1 -1
  20. package/skills/adversary/SKILL.md +36 -3
  21. package/skills/adversary/references/cross-model-escalation.md +85 -0
  22. package/skills/adversary/references/reasoning-modes.md +95 -0
  23. package/skills/autopsy/SKILL.md +41 -0
  24. package/skills/ba/SKILL.md +44 -2
  25. package/skills/ba/references/ears-format.md +91 -0
  26. package/skills/brainstorm/SKILL.md +32 -7
  27. package/skills/cook/SKILL.md +8 -1
  28. package/skills/debug/SKILL.md +4 -2
  29. package/skills/deploy/SKILL.md +20 -1
  30. package/skills/deploy/references/observability.md +146 -0
  31. package/skills/graft/SKILL.md +24 -8
  32. package/skills/onboard/SKILL.md +45 -0
  33. package/skills/perf/SKILL.md +4 -1
  34. package/skills/review/SKILL.md +4 -2
package/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  <p align="center">
6
6
  <strong>Less skills. Deeper connections.</strong><br>
7
7
  A lean, interconnected skill ecosystem for AI coding assistants.<br>
8
- 64 skills · 203 connections · 40 signals · 13 platforms · MIT
8
+ 64 skills · 204 connections · 40 signals · 13 platforms · MIT
9
9
  </p>
10
10
 
11
11
  <p align="center">
@@ -23,7 +23,7 @@
23
23
 
24
24
  Most skill ecosystems are either **too many isolated skills** (540+ that don't talk to each other) or **rigid pipelines** (A → B → C, if B fails everything stops).
25
25
 
26
- Rune is a **mesh** — 64 skills with 203 connections + 40 signals across a 5-layer architecture. Skills call each other bidirectionally, forming resilient workflows that adapt when things go wrong.
26
+ Rune is a **mesh** — 64 skills with 204 connections + 40 signals across a 5-layer architecture. Skills call each other bidirectionally, forming resilient workflows that adapt when things go wrong.
27
27
 
28
28
  ```
29
29
  Pipeline: A → B → C → D (B fails = stuck)
@@ -83,7 +83,13 @@ _Methodology: Claude Code CLI headless mode (`claude -p --output-format json`),
83
83
 
84
84
  ---
85
85
 
86
- ## What's New (v2.18.1Setup Installs Tier Skills, Not Just Hooks)
86
+ ## What's New (v2.20.0Spec Discipline)
87
+
88
+ > **v2.20.0 (2026-07-02):** Closes the "plan without spec" gap — a `brainstorm → plan → cook` chain no longer skips `ba`. Two new gates (`brainstorm` spec-presence + `cook` Phase 0 **Spec-Backfill Gate**) force requirements before code on every bypass path, not just brainstorm's. Batch also lands `ba` v1.1.0 (EARS `FR-n` functional-requirements layer), `adversary` v0.4.0 (reasoning-mode catalog + steelman-first), and a context-hook fix (session_id keying — no more false "100% compact"). Mesh **204 connections**, 1,559 tests.
89
+
90
+ > **v2.19.0 (2026-06-20):** New `rune dashboard` verb renders Rune's flagship **human-visible artifact** — a self-contained HTML "Codebase Briefing + Governance Scorecard" you can open in a meeting with no server, no CDN, no telemetry, nothing leaving the machine. The headline is the governance/value **verdict** (0-100 score with honest `—` empty-state), not a code graph — the buyer's codebase graph lives in the **Understand** tab (node/edge filters, domain view with flow steps, guided tour, node inspector, PNG/SVG/JSON export, keyboard-accessible canvas). Five-tab IA: Verdict → Govern / Measure / Understand / Improve. **Tier-aware** — Free sees verdict + measure, **Pro** adds a "My Lens" cost/ROI persona, **Business** unlocks the full Governance Scorecard (gate-outcome ledger + compliance coverage). Honest by design: empty states render `—` not fabricated numbers, and Free/Pro see an upsell that *describes* value rather than fake data. XSS-hardened + 100% self-contained. Internals: `comprehension.js` split 3584 → 1255 LOC (browser app extracted to `comprehension-client.js`, byte-identical output). Built on existing onboard / autopsy / analytics / mesh generators — original work, no external dependency. CI 1558/1558.
91
+
92
+ ### Previous (v2.18.1 — Setup Installs Tier Skills, Not Just Hooks)
87
93
 
88
94
  > **v2.18.1 (2026-05-17):** Bug fix — `rune setup --tier pro|business` now copies the tier's `skills/` directories into the Free plugin's `skills/` folder. Before this fix, paid tiers shipped hooks only, so `rune:autopilot` (Pro) returned `Unknown skill: rune:autopilot` because the SKILL.md was at `Pro/skills/autopilot/` but invisible to the Claude Code plugin runtime. New `installTierSkills` in `compiler/commands/setup.js` runs after `installHooks`, copies each `<tierRoot>/skills/<name>/` into `<runeRoot>/skills/`, idempotent (skips existing — protects Free skills from clobber and user-edited Pro skills from stomp), with path-traversal guard + symlink rejection + partial-copy cleanup + version-drift detection. Paired with Pro `autopilot-v1.5.0` (Step 0 LOAD now reads user-message context for plan path — same pattern cook uses). 25/26 setup tests pass (1 skipped on Windows — symlink test needs admin/dev-mode). Full CI 1444 tests.
89
95
 
@@ -588,7 +594,7 @@ How it works: `rune-pulse` (statusline) reads `context_window.used_percentage` f
588
594
 
589
595
  **Autopilot** — approve a plan, walk away. Autonomous multi-session execution with zero-HIGH-tolerance quality gates, baseline regression checks, cross-phase coherence review, and structured completion reports. `cook` gets the job done. `autopilot` gets it done while you sleep.
590
596
 
591
- **Department Packs** — 34 skills across 5 domains:
597
+ **Pro Packs** — 9 domain packs:
592
598
 
593
599
  | Pack | What it does |
594
600
  |------|-------------|
@@ -596,7 +602,11 @@ How it works: `rune-pulse` (statusline) reads `context_window.used_percentage` f
596
602
  | **Sales** | Account research briefs, call prep with objection handling, outreach sequences, pipeline health review |
597
603
  | **Data Science** | SQL exploration → visualization → statistical testing → ML eval, all in one flow |
598
604
  | **Support** | Ticket triage with SLA routing, KB article generation, escalation playbooks, support metrics |
599
- | **Growth** | Niche research, content scouting, SEO architecture, landing page generation, content health monitoring, data moats, content quality scoring, CRO psychology analysis, 74 marketing mental models |
605
+ | **Growth** | Niche research, content scouting, SEO architecture, landing pages, content health, data moats, quality scoring, CRO psychology, engagement ops (client intake + monthly retainer cycle), 74 marketing mental models |
606
+ | **Media** | Raster image generation across 5 providers (Codex/DALL-E/Replicate/Stability/local SD), prompt-safety gates, batch asset pipeline with multi-resolution + WebP/AVIF |
607
+ | **Personal Brand** | The operating system for founders/coaches/creators — brand identity → 12-month strategy → content engine (AI avatar video, podcast, long-form) → monetization ladder → community moat |
608
+ | **E-commerce** | Full dropshipping pipeline — winning-product scorecard, supplier sourcing, Shopify + 10-ads/week creative, BE-ROAS pricing gate, scaling playbook, FTC/EU compliance |
609
+ | **Vietnam** | VN market layer — Zalo/TikTok Shop/Shopee channel strategy, COD-dominant commerce + logistics (MoMo/VNPay/GHN/GHTK), content localization for the Tết-anchored sale calendar |
600
610
 
601
611
  All Pro packs plug into the core mesh — `cook` orchestrates them, `sentinel` gates them, `team` parallelizes them.
602
612
 
@@ -643,8 +653,13 @@ npx @rune-kit/rune build --platform windsurf
643
653
 
644
654
  # Validate compiled output
645
655
  npx @rune-kit/rune doctor
656
+
657
+ # Open comprehension dashboard (human-readable project health)
658
+ npx @rune-kit/rune dashboard
646
659
  ```
647
660
 
661
+ `rune dashboard` generates a self-contained HTML file (`.rune/comprehension.html`) with five tabs — Verdict, Govern, Measure, Understand, Improve — driven by real session, gate, and mesh data. No external requests, no CDN. Tier-aware: Pro unlocks My Lens persona; Business unlocks the full Govern panel (compliance, gate ledger, decision provenance).
662
+
648
663
  See [docs/MULTI-PLATFORM.md](docs/MULTI-PLATFORM.md) for the full architecture.
649
664
 
650
665
  ## Documentation
@@ -666,14 +681,14 @@ See [docs/MULTI-PLATFORM.md](docs/MULTI-PLATFORM.md) for the full architecture.
666
681
 
667
682
  ```
668
683
  Core Skills: 64 (L0: 1 │ L1: 5 │ L2: 30 │ L3: 28)
669
- Extension Packs: 14 free + 6 pro + 4 business
684
+ Extension Packs: 14 free + 9 pro + 4 business
670
685
  Mesh Connections: 203 sync calls (rune doctor)
671
686
  Mesh Signals: 40 signals · 50 emit/listen edges (rune doctor)
672
687
  Connections/Skill: 3.2 avg
673
688
  Platforms: 8 (Claude Code, Cursor, Windsurf, Antigravity, Codex, OpenCode, OpenClaw, Generic)
674
689
  Compiler: ~1400 LOC (parser + 8 transforms + 8 adapters + CLI)
675
690
  Tests: 1,152+ (compiler + signals + status + visualizer + hooks + scripts + tier-hooks)
676
- Pack Depth: 23 packs total (14 free + 5 pro + 4 business, all free packs rated Deep)
691
+ Pack Depth: 27 packs total (14 free + 9 pro + 4 business, all free packs rated Deep)
677
692
  ```
678
693
 
679
694
  ## Acknowledgments