@open-tomato/rafa 0.47.0 → 0.48.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 (73) hide show
  1. package/README.md +5 -2
  2. package/dist/bugs/places.d.ts +1 -1
  3. package/dist/bundled/skills/dev-planner/SKILL.md +1 -1
  4. package/dist/cli.js +58833 -58857
  5. package/dist/config/index.js +4 -5
  6. package/dist/config/shape.d.ts +13 -11
  7. package/dist/config-schema-board-project.d.ts +3 -3
  8. package/dist/config-schema-checks.d.ts +3 -3
  9. package/dist/config-schema-hub.d.ts +3 -3
  10. package/dist/config-schema-issues.d.ts +4 -4
  11. package/dist/config-schema-loop-continue.d.ts +3 -3
  12. package/dist/config-schema-loop-retries.d.ts +4 -4
  13. package/dist/config-schema-release.d.ts +13 -13
  14. package/dist/config-schema-tests.d.ts +3 -3
  15. package/dist/config-schema-triage.d.ts +3 -3
  16. package/dist/config-schema-wrap-up.d.ts +4 -4
  17. package/dist/core/command/global-flags.d.ts +25 -0
  18. package/dist/core/command/index.d.ts +31 -25
  19. package/dist/core/command/registry-types.d.ts +4 -4
  20. package/dist/core/command/shared-flags.d.ts +6 -6
  21. package/dist/core/command/types.d.ts +3 -2
  22. package/dist/core/config/branch-template.d.ts +2 -0
  23. package/dist/core/config/config-items.d.ts +1 -1
  24. package/dist/core/config/config-schema.d.ts +6 -0
  25. package/dist/core/config/config-sections.d.ts +15 -14
  26. package/dist/core/config/config.d.ts +1 -1
  27. package/dist/core/config/core-section.d.ts +1 -1
  28. package/dist/core/config/default-routing.d.ts +1 -1
  29. package/dist/core/config/index.d.ts +4 -4
  30. package/dist/core/config/merge-method.d.ts +4 -4
  31. package/dist/core/config/sections.d.ts +6 -3
  32. package/dist/core/git/gh-runner.d.ts +1 -1
  33. package/dist/core/git/git.d.ts +34 -0
  34. package/dist/core/git/index.d.ts +13 -8
  35. package/dist/core/loop/claude.d.ts +11 -5
  36. package/dist/core/loop/index.d.ts +3 -2
  37. package/dist/core/loop/sessions.d.ts +1 -1
  38. package/dist/core/loop/suite-failure.d.ts +8 -6
  39. package/dist/core/output/active.d.ts +1 -1
  40. package/dist/core/runtime/identity.d.ts +13 -0
  41. package/dist/core/runtime/index.d.ts +12 -6
  42. package/dist/effort/store/check-rows.d.ts +1 -1
  43. package/dist/effort/store/commit-stats.d.ts +1 -1
  44. package/dist/effort/store/index.js +8 -9
  45. package/dist/effort/store/merge-commit-gaps.d.ts +1 -1
  46. package/dist/effort/store/plan-stubs.d.ts +1 -1
  47. package/dist/effort/store/session-row-types.d.ts +2 -2
  48. package/dist/{index-f1y86zbb.js → index-2a7nb3an.js} +31 -31
  49. package/dist/index-2xzkzwm6.js +670 -0
  50. package/dist/index-ajv88fkm.js +448 -0
  51. package/dist/{index-r5q2pdky.js → index-fpgmdmww.js} +4 -1
  52. package/dist/{index-pzpb1rf7.js → index-g91ys6kw.js} +97 -1
  53. package/dist/{index-eay1bd2w.js → index-jx3x70xh.js} +1090 -652
  54. package/dist/{index-cbqvgda6.js → index-m672ptpg.js} +3 -1
  55. package/dist/{index-nwzx41g1.js → index-w5qbpdtp.js} +416 -843
  56. package/dist/{index-7dgc5g1t.js → index-z4r20zwr.js} +8696 -11193
  57. package/dist/{index-n3e31fmw.js → index-zsak0jy6.js} +172 -254
  58. package/dist/index.js +24857 -18957
  59. package/dist/learning/index.js +221 -12
  60. package/dist/plan/index.js +11 -10
  61. package/dist/ports/index.d.ts +6 -6
  62. package/dist/ports/learning.d.ts +5 -4
  63. package/dist/ports/spec-review.d.ts +1 -1
  64. package/dist/ready-gax3hhtt.js +241 -0
  65. package/dist/release-templates/release-bot-fragment.yml +6 -6
  66. package/dist/release-templates/release-publish.yml +8 -8
  67. package/dist/release-templates/release-settle.yml +8 -7
  68. package/dist/release-templates/release-tag.yml +8 -7
  69. package/package.json +32 -2
  70. package/dist/index-38ktnyvz.js +0 -223
  71. package/dist/index-3mwsr6wg.js +0 -1070
  72. package/dist/index-z1w83f81.js +0 -4
  73. package/dist/ready-6p40c3gw.js +0 -2007
package/README.md CHANGED
@@ -889,15 +889,18 @@ sort out what happened.
889
889
  | Key | Default | What it sets |
890
890
  |---|---|---|
891
891
  | `loop.worktreeDir` | `.rafa/worktrees` | the directory where `--as-worktree` creates worktrees, absolute or relative to the project root |
892
+ | `loop.worktreeSetup` | `null` | a shell command run in a new or reused `--as-worktree` worktree before the first session; null runs nothing |
892
893
  | `dangerous.selfUpdateDuringLoop` | `false` | whether `rafa self-update` runs while a loop of this project is live |
893
894
 
894
- Both take a string and a boolean as written; quoted values are refused.
895
+ All three take a string or a boolean as written; a boolean in quotes is refused.
895
896
 
896
897
  ```yaml
897
898
  # empty: loops run in the current checkout, guarded
898
899
  # --as-worktree puts them in .rafa/worktrees (the default)
899
900
 
900
901
  loop:
902
+ # worktreeSetup: null # the default: nothing runs in a new worktree
903
+ # worktreeSetup: bun install --frozen-lockfile # installs the packages before the first session
901
904
  worktreeDir: ../rafa-loops # worktrees beside the repository
902
905
 
903
906
  dangerous:
@@ -1078,7 +1081,7 @@ builds. `bun run snapshot` in this checkout, or `rafa self-update` run
1078
1081
  inside it, builds, copies `dist/` into `~/.rafa/runtime/<version>/` with
1079
1082
  the version from `package.json`, points `~/.rafa/bin/rafa` at the copied
1080
1083
  `cli.js`, and prints the path the link resolves to, exiting 0. Both
1081
- install the same way (`src/runtime/install.ts`). The bin is not in
1084
+ install the same way (`packages/rafa-run/src/runtime/install.ts`). The bin is not in
1082
1085
  `~/.bun/bin`, where `bun link` in this checkout re-points `rafa` at the
1083
1086
  checkout's `dist/` with no message, so put `~/.rafa/bin` on `PATH` ahead
1084
1087
  of `~/.bun/bin`; both warn when it is not, and `rafa doctor` checks it.
@@ -11,7 +11,7 @@
11
11
  * over the suggestion.
12
12
  *
13
13
  * This module imports nothing, so the config schema
14
- * (`src/config-schema-issues.ts`) reads the built-in places without
14
+ * (`packages/rafa/src/config-schema-issues.ts`) reads the built-in places without
15
15
  * reaching the modules that read the config.
16
16
  */
17
17
  /** The places every project has, in the order a refusal lists them. */
@@ -554,7 +554,7 @@ The wrap-up session always receives `full` regardless of the configured mode.
554
554
 
555
555
  ## PREREQUISITES.md format
556
556
 
557
- `<plan.dir>/PREREQUISITES-<stub>.md` lists the setup a plan needs that no task can put in place. It is parsed: `src/preflight/prerequisites-md.ts` reads it and merges its items into the configured `prerequisites` for the plan beside it, `<plan.dir>/PLAN-<stub>.md`, and for no other plan.
557
+ `<plan.dir>/PREREQUISITES-<stub>.md` lists the setup a plan needs that no task can put in place. It is parsed: `packages/rafa/src/preflight/prerequisites-md.ts` reads it and merges its items into the configured `prerequisites` for the plan beside it, `<plan.dir>/PLAN-<stub>.md`, and for no other plan.
558
558
 
559
559
  ```markdown
560
560
  # Prerequisites