@rungs/cli 0.3.0 → 0.4.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 (74) hide show
  1. package/README.md +6 -6
  2. package/dist/cli.js +2194 -488
  3. package/dist/cli.js.map +4 -4
  4. package/modules/README.md +25 -3
  5. package/modules/adr/files/{{path}}/README.md +1 -1
  6. package/modules/adr/gates/adr.toml +1 -1
  7. package/modules/adr/module.toml +1 -1
  8. package/modules/audit/fragments/AGENTS.md +2 -2
  9. package/modules/audit/module.toml +1 -1
  10. package/modules/audit/skills/assess/SKILL.md +1 -1
  11. package/modules/backlog/files/docs/{{root}}/BACKLOG.md +1 -1
  12. package/modules/backlog/files/docs/{{root}}/README.md +2 -2
  13. package/modules/backlog/files/docs/{{root}}/archive/README.md +1 -1
  14. package/modules/backlog/files/docs/{{root}}/items/README.md +1 -1
  15. package/modules/backlog/fragments/AGENTS.md +2 -2
  16. package/modules/backlog/module.toml +1 -1
  17. package/modules/backlog/skills/work-item/SKILL.md +1 -1
  18. package/modules/ci/files/{{workflow_path}} +3 -3
  19. package/modules/ci/module.toml +1 -1
  20. package/modules/concurrency/files/docs/concurrent-sessions.md +66 -18
  21. package/modules/concurrency/fragments/AGENTS.md +5 -4
  22. package/modules/concurrency/fragments/gitattributes +2 -2
  23. package/modules/concurrency/gates/concurrency.toml +3 -3
  24. package/modules/concurrency/module.toml +1 -1
  25. package/modules/doc-authority/files/{{registry_path}} +1 -1
  26. package/modules/doc-authority/module.toml +1 -1
  27. package/modules/findings/files/docs/{{backlog.root}}/FINDINGS.md +1 -1
  28. package/modules/findings/gates/findings.toml +5 -0
  29. package/modules/findings/module.toml +1 -1
  30. package/modules/findings/skills/record-finding/SKILL.md +1 -1
  31. package/modules/gates/files/.ai/gates.toml +1 -1
  32. package/modules/gates/fragments/AGENTS.md +6 -5
  33. package/modules/gates/module.toml +1 -1
  34. package/modules/instructions/files/.ai/rules/README.md +2 -2
  35. package/modules/instructions/files/.ai/rungs.mjs +52 -0
  36. package/modules/instructions/files/AGENTS.md +4 -2
  37. package/modules/instructions/files/CLAUDE.md +1 -1
  38. package/modules/instructions/fragments/AGENTS.md +2 -2
  39. package/modules/instructions/gates/core.toml +2 -2
  40. package/modules/instructions/module.toml +1 -1
  41. package/modules/release/files/{{changelog_dir}}/CONSUMED_THROUGH +1 -0
  42. package/modules/release/gates/release.toml +169 -17
  43. package/modules/release/module.toml +9 -5
  44. package/modules/release/skills/cut-release/SKILL.md +43 -15
  45. package/modules/session/files/{{archive}}/README.md +1 -1
  46. package/modules/session/files/{{path}} +2 -2
  47. package/modules/session/module.toml +1 -1
  48. package/modules/specs/files/{{path}}/README.md +2 -2
  49. package/modules/specs/module.toml +1 -1
  50. package/modules/workflows/module.toml +1 -1
  51. package/modules/workflows/rules/planning-tiers.md +1 -1
  52. package/package.json +3 -2
  53. package/src/add.ts +204 -48
  54. package/src/backlog.ts +354 -48
  55. package/src/check.ts +54 -33
  56. package/src/cli.ts +196 -69
  57. package/src/concurrency.ts +628 -42
  58. package/src/detect.ts +11 -3
  59. package/src/emitted-path.ts +274 -0
  60. package/src/engine-table.ts +66 -0
  61. package/src/engines.ts +40 -32
  62. package/src/engines2.ts +424 -29
  63. package/src/engines3.ts +115 -23
  64. package/src/explain.ts +3 -7
  65. package/src/help.ts +43 -0
  66. package/src/lifecycle.ts +95 -31
  67. package/src/manifest.ts +41 -5
  68. package/src/render.ts +106 -21
  69. package/src/selftest.ts +87 -10
  70. package/src/storage-key.ts +20 -0
  71. package/src/substitute.ts +47 -5
  72. package/src/text.ts +11 -0
  73. package/src/types.ts +16 -3
  74. package/src/version-source.ts +144 -0
package/README.md CHANGED
@@ -151,6 +151,7 @@ reported as diverged and left alone.
151
151
  | `--set <module>.<param>=<value>` | `add` / `init`: override a module parameter. Repeatable, and `--set m.p=v` works too |
152
152
  | `--confirm-threshold` | `add`: install a module whose rung is above this repo |
153
153
  | `--confirm-paradigm` | `add`: install a module this repo already solves another way |
154
+ | `--confirm-conflict` | `add`: install a module that declares a conflict with one already there |
154
155
  | `--apply` | `upgrade`: write the changes rather than preview them |
155
156
  | `--fast` / `--full` | `check`: pick the gate tier, as the positional also does |
156
157
  | `--copilot` | Also emit Copilot instruction files |
@@ -220,7 +221,7 @@ Four promises that shape everything else:
220
221
 
221
222
  ## Status
222
223
 
223
- **Current release: v0.3.0** — that number is checked against [`package.json`](package.json) by the
224
+ **Current release: v0.4.0** — that number is checked against [`package.json`](package.json) by the
224
225
  `docs-version-claims` gate, so this sentence cannot drift from what ships — and the gate fails if
225
226
  the sentence is reworded out of existence, because a claim nothing checks any more should not look
226
227
  the same as a claim that passes.
@@ -234,13 +235,12 @@ Whether a release is **pending**, and what npm currently serves, live on
234
235
  file and the roadmap both carried their own copy and both said `v0.1.2` for two days after v0.1.3
235
236
  went to npm. Cutting the next one follows the [release runbook](docs/design/release-runbook.md).
236
237
 
237
- rungs is installed in its own repo and its 29 gates run on every change — 29 pass,
238
- 0 fail (`rungs check`, 2026-08-17). A clean consumer has installed from the **public
238
+ rungs is installed in its own repo and its 30 gates run on every change — 30 pass,
239
+ 0 fail (`rungs check`, 2026-09-05). A clean consumer has installed from the **public
239
240
  registry** and run the binary, and another completed the doctor → init → add → check →
240
241
  render → upgrade/eject journey from a packed artifact. Detection is
241
242
  [verified against all four source repos](docs/design/detection-verification.md).
242
- Not yet done: a cross-platform release matrix only Windows is verified — and writing
243
- to a repo rungs did not scaffold.
243
+ Not yet done: writing to a maintained repo rungs did not scaffold.
244
244
 
245
245
  Expect module *contents* to move. The command surface is settled.
246
246
 
@@ -261,7 +261,7 @@ nobody paid for does not ship.
261
261
  | [`docs/design/`](docs/design/README.md) | Product brief, module catalogue, verification |
262
262
  | [`docs/decisions/`](docs/decisions/README.md) | ADRs |
263
263
  | [`modules/`](modules/README.md) | The fifteen modules |
264
- | [`src/`](src/) | The CLI, ~5,100 lines (`wc -l src/*.ts`, 2026-08-17; held within 10% by `docs-version-claims`) |
264
+ | [`src/`](src/) | The CLI, ~7,847 lines (`wc -l src/*.ts`, 2026-09-05; held within 10% by `docs-version-claims`) |
265
265
 
266
266
  ## Licence
267
267