@rune-kit/rune 2.2.6 → 2.3.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 (91) hide show
  1. package/README.md +395 -389
  2. package/compiler/__tests__/tier-override.test.js +158 -0
  3. package/compiler/adapters/antigravity.js +3 -8
  4. package/compiler/adapters/codex.js +3 -8
  5. package/compiler/adapters/cursor.js +3 -8
  6. package/compiler/adapters/generic.js +3 -8
  7. package/compiler/adapters/openclaw.js +4 -9
  8. package/compiler/adapters/opencode.js +3 -8
  9. package/compiler/adapters/windsurf.js +3 -8
  10. package/compiler/bin/rune.js +34 -1
  11. package/compiler/emitter.js +94 -5
  12. package/compiler/transforms/branding.js +10 -3
  13. package/docs/ARCHITECTURE.md +3 -3
  14. package/docs/SKILL-TEMPLATE.md +15 -0
  15. package/docs/VISION.md +3 -3
  16. package/docs/guides/index.html +14 -14
  17. package/docs/index.html +82 -13
  18. package/docs/script.js +33 -6
  19. package/docs/skills/index.html +832 -832
  20. package/docs/style.css +62 -0
  21. package/extensions/ai-ml/PACK.md +7 -0
  22. package/extensions/content/PACK.md +7 -0
  23. package/extensions/mobile/PACK.md +9 -9
  24. package/extensions/zalo/PACK.md +9 -0
  25. package/package.json +8 -6
  26. package/skills/adversary/SKILL.md +12 -0
  27. package/skills/audit/SKILL.md +526 -467
  28. package/skills/autopsy/SKILL.md +12 -0
  29. package/skills/ba/SKILL.md +349 -342
  30. package/skills/brainstorm/SKILL.md +11 -0
  31. package/skills/completion-gate/SKILL.md +260 -249
  32. package/skills/context-engine/SKILL.md +77 -1
  33. package/skills/context-pack/SKILL.md +160 -0
  34. package/skills/cook/SKILL.md +648 -958
  35. package/skills/cook/references/deviation-rules.md +19 -0
  36. package/skills/cook/references/error-recovery.md +37 -0
  37. package/skills/cook/references/exit-conditions.md +31 -0
  38. package/skills/cook/references/loop-detection.md +39 -0
  39. package/skills/cook/references/mid-run-signals.md +31 -0
  40. package/skills/cook/references/output-format.md +40 -0
  41. package/skills/cook/references/pack-detection.md +82 -0
  42. package/skills/cook/references/pause-resume-template.md +38 -0
  43. package/skills/cook/references/rfc-template.md +52 -0
  44. package/skills/cook/references/sharp-edges.md +24 -0
  45. package/skills/cook/references/subagent-status.md +38 -0
  46. package/skills/db/SKILL.md +12 -0
  47. package/skills/debug/SKILL.md +392 -362
  48. package/skills/deploy/SKILL.md +10 -0
  49. package/skills/deploy/references/post-deploy-integration.md +192 -0
  50. package/skills/design/SKILL.md +9 -0
  51. package/skills/docs/SKILL.md +12 -0
  52. package/skills/docs-seeker/SKILL.md +11 -0
  53. package/skills/fix/SKILL.md +281 -249
  54. package/skills/incident/SKILL.md +10 -0
  55. package/skills/launch/SKILL.md +12 -0
  56. package/skills/logic-guardian/SKILL.md +11 -0
  57. package/skills/marketing/SKILL.md +13 -0
  58. package/skills/mcp-builder/SKILL.md +13 -0
  59. package/skills/onboard/SKILL.md +50 -2
  60. package/skills/perf/SKILL.md +11 -0
  61. package/skills/plan/SKILL.md +342 -688
  62. package/skills/plan/references/completeness-scoring.md +36 -0
  63. package/skills/plan/references/outcome-block.md +40 -0
  64. package/skills/plan/references/plan-templates.md +193 -0
  65. package/skills/plan/references/wave-planning.md +44 -0
  66. package/skills/plan/references/workflow-registry.md +52 -0
  67. package/skills/preflight/SKILL.md +360 -280
  68. package/skills/rescue/SKILL.md +11 -0
  69. package/skills/research/SKILL.md +149 -150
  70. package/skills/retro/SKILL.md +11 -0
  71. package/skills/review/SKILL.md +489 -396
  72. package/skills/review-intake/SKILL.md +11 -0
  73. package/skills/safeguard/SKILL.md +12 -0
  74. package/skills/scaffold/SKILL.md +10 -0
  75. package/skills/scope-guard/SKILL.md +11 -0
  76. package/skills/scout/SKILL.md +9 -0
  77. package/skills/sentinel/SKILL.md +296 -425
  78. package/skills/sentinel/references/config-protection.md +52 -0
  79. package/skills/sentinel/references/destructive-commands.md +39 -0
  80. package/skills/sentinel/references/domain-hooks.md +73 -0
  81. package/skills/sentinel/references/framework-patterns.md +46 -0
  82. package/skills/sentinel/references/owasp-patterns.md +69 -0
  83. package/skills/sentinel/references/secret-patterns.md +40 -0
  84. package/skills/sentinel/references/skill-content-guard.md +54 -0
  85. package/skills/session-bridge/SKILL.md +56 -2
  86. package/skills/skill-forge/SKILL.md +47 -2
  87. package/skills/skill-router/{SKILL.md → skill.md} +446 -365
  88. package/skills/surgeon/SKILL.md +12 -0
  89. package/skills/team/SKILL.md +34 -1
  90. package/skills/test/SKILL.md +585 -427
  91. package/skills/watchdog/references/webhook-health-checks.md +243 -0
@@ -233,6 +233,17 @@ How to push back:
233
233
  - Tests pass after each individual fix
234
234
  - Review Intake Report emitted
235
235
 
236
+ ## Returns
237
+
238
+ | Artifact | Format | Location |
239
+ |----------|--------|----------|
240
+ | Review Intake Report | Markdown table | inline |
241
+ | Categorized feedback (P0–P4) | Classified list | inline |
242
+ | Verdict per item (CORRECT/PUSHBACK/YAGNI/DEFER) | Table | inline |
243
+ | Action plan (changes applied) | File list with descriptions | inline |
244
+
236
245
  ## Cost Profile
237
246
 
238
247
  ~2000-5000 tokens depending on feedback volume. Sonnet for evaluation logic, haiku for scout/grep verification.
248
+
249
+ **Scope guardrail:** review-intake processes the feedback items provided — it does not pull new reviews, open PRs, or change architectural decisions without owner confirmation.
@@ -183,6 +183,18 @@ Known failure modes for this skill. Check these before declaring done.
183
183
  - Git tag `rune-safeguard-<module>` created
184
184
  - Safeguard Report emitted with test count, coverage, and rollback tag
185
185
 
186
+ ## Returns
187
+
188
+ | Artifact | Format | Location |
189
+ |----------|--------|----------|
190
+ | Characterization test file | TypeScript/JS/Python test | `tests/char/<module>.test.*` |
191
+ | Boundary markers | Code comments (@legacy, @bridge) | in-source |
192
+ | Frozen config snapshot | Copies of config files | `.rune/*.frozen.*` |
193
+ | Git rollback tag | Git tag | `rune-safeguard-<module>` |
194
+ | Safeguard Report | Markdown | inline |
195
+
186
196
  ## Cost Profile
187
197
 
188
198
  ~2000-5000 tokens input, ~1000-2000 tokens output. Sonnet for test writing quality.
199
+
200
+ **Scope guardrail:** safeguard builds safety nets only — it does not refactor code. All surgery is delegated to `surgeon` after the safeguard HARD-GATE passes.
@@ -247,6 +247,16 @@ Max 3 fix-verify loops. If still failing after 3 → report failures to user wit
247
247
  9. MUST respect user's existing project if scaffolding into non-empty directory — warn and ask before overwriting
248
248
  10. Generated files MUST be < 500 LOC each — split large files
249
249
 
250
+ ## Returns
251
+
252
+ | Artifact | Format | Location |
253
+ |----------|--------|----------|
254
+ | Project directory structure | Directories + files | Project root (per plan) |
255
+ | Source code | Source files | Per plan file list |
256
+ | Test suite | Source files | Co-located or `tests/` per framework convention |
257
+ | Documentation | Markdown | `README.md`, `ARCHITECTURE.md`, `docs/API.md` as applicable |
258
+ | Scaffold Report | Markdown (inline) | Emitted at session end |
259
+
250
260
  ## Sharp Edges
251
261
 
252
262
  | Failure Mode | Severity | Mitigation |
@@ -145,6 +145,17 @@ Known failure modes for this skill. Check these before declaring done.
145
145
  - Creep severity classified (IN_SCOPE / MINOR CREEP / SIGNIFICANT CREEP)
146
146
  - Scope Report emitted with recommendations
147
147
 
148
+ ## Returns
149
+
150
+ | Artifact | Format | Location |
151
+ |----------|--------|----------|
152
+ | Scope Report | Markdown (IN_SCOPE / MINOR CREEP / SIGNIFICANT CREEP) | inline |
153
+ | In-scope file list | Classified list | inline |
154
+ | Out-of-scope drift report | File list with reasons | inline |
155
+ | Recommendations | Actionable list | inline |
156
+
148
157
  ## Cost Profile
149
158
 
150
159
  ~200-500 tokens input, ~100-300 tokens output. Haiku. Lightweight monitor.
160
+
161
+ **Scope guardrail:** scope-guard reports drift and advises — it does not revert files, block commits, or modify code. Override decisions belong to the calling orchestrator or the user.
@@ -206,6 +206,13 @@ None — pure scanner using Glob, Grep, Read, and Bash tools directly. Does not
206
206
  - [pattern or potential issue noticed]
207
207
  ```
208
208
 
209
+ ## Returns
210
+
211
+ | Artifact | Format | Location |
212
+ |----------|--------|----------|
213
+ | Scout Report | Markdown (inline) | Emitted to calling skill |
214
+ | Codebase map | Markdown | `.rune/codebase-map.md` (when called by cook, team, onboard, autopsy) |
215
+
209
216
  ## Sharp Edges
210
217
 
211
218
  Known failure modes for this skill. Check these before declaring done.
@@ -230,3 +237,5 @@ Known failure modes for this skill. Check these before declaring done.
230
237
  ## Cost Profile
231
238
 
232
239
  ~500-2000 tokens input, ~200-500 tokens output. Always haiku. Cheapest skill in the mesh.
240
+
241
+ **Scope guardrail**: Do not expand the scan to unrelated modules or write files beyond `.rune/codebase-map.md` unless explicitly delegated by the parent agent.