@open-tomato/rafa 0.17.0 → 0.19.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 (33) hide show
  1. package/NOTICE +9 -1
  2. package/README.md +40 -26
  3. package/dist/PROMPT.md +2 -1
  4. package/dist/bundled/agents/build-error-resolver.md +144 -0
  5. package/dist/bundled/agents/code-reviewer.md +335 -0
  6. package/dist/bundled/agents/doc-updater.md +108 -0
  7. package/dist/bundled/agents/loop-implementer.md +57 -0
  8. package/dist/bundled/agents/qa-bug-reporter.md +164 -0
  9. package/dist/bundled/agents/tdd-guide.md +121 -0
  10. package/dist/bundled/bin/ts-symbols +272 -0
  11. package/dist/{SKILL.md → bundled/skills/dev-planner/SKILL.md} +7 -5
  12. package/dist/bundled/skills/documentation/SKILL.md +93 -0
  13. package/dist/bundled/skills/git-workflow/SKILL.md +242 -0
  14. package/dist/bundled/skills/ts-symbols/SKILL.md +82 -0
  15. package/dist/cli.js +6952 -4721
  16. package/dist/{describe-wbn759vf.js → describe-cenk70n5.js} +4 -3
  17. package/dist/effort/store/index.js +6 -4
  18. package/dist/{index-64wec0k7.js → index-09p41s0n.js} +11 -224
  19. package/dist/{index-qzhpqmfy.js → index-c5cecsga.js} +2 -2
  20. package/dist/{index-4qd537z6.js → index-ca0fccvr.js} +3527 -1402
  21. package/dist/{index-n3rw8rhr.js → index-cedghpva.js} +78 -2
  22. package/dist/index-d6d0942q.js +218 -0
  23. package/dist/{index-7t0qz29r.js → index-gb51x34c.js} +1020 -58
  24. package/dist/{index-r7cnr44m.js → index-mh5hyw8g.js} +1681 -3101
  25. package/dist/index-pqrpcfaz.js +1020 -0
  26. package/dist/{index-p901zs2p.js → index-vg7ycs94.js} +1 -1
  27. package/dist/index-wp8c28fd.js +18 -0
  28. package/dist/index.js +13 -11
  29. package/dist/learning/index.js +25 -0
  30. package/dist/plan/index.js +8 -7
  31. package/dist/plan-prompt.md +2 -0
  32. package/package.json +4 -3
  33. package/dist/index-ps5sac9p.js +0 -531
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  describeValue
4
- } from "./index-n3rw8rhr.js";
4
+ } from "./index-cedghpva.js";
5
5
 
6
6
  // src/cli/spends.ts
7
7
  var SPENDS_GLYPH = "\uD83E\uDE99";
@@ -0,0 +1,18 @@
1
+ // @bun
2
+ var __require = import.meta.require;
3
+
4
+ // src/learning/identity.ts
5
+ import { createHash } from "crypto";
6
+ var GAP = 0.1;
7
+ var SOURCE_STEP = 0.05;
8
+ var CONFIDENCE_MIN = 0.3;
9
+ var CONFIDENCE_MAX = 0.9;
10
+ var WHITESPACE_RUN = /\s+/g;
11
+ function actionHash(action) {
12
+ return createHash("sha256").update(action.trim().toLowerCase()).digest("hex");
13
+ }
14
+ function triggerKey(trigger) {
15
+ return trigger.trim().toLowerCase().replace(WHITESPACE_RUN, " ");
16
+ }
17
+
18
+ export { __require, GAP, SOURCE_STEP, CONFIDENCE_MIN, CONFIDENCE_MAX, actionHash, triggerKey };
package/dist/index.js CHANGED
@@ -20,25 +20,21 @@ import {
20
20
  start,
21
21
  usage,
22
22
  validateManifest
23
- } from "./index-4qd537z6.js";
23
+ } from "./index-ca0fccvr.js";
24
24
  import {
25
- FINDING_KINDS,
26
- FINDING_SIGNALS,
27
25
  PLAN_BLOCK_KINDS,
28
26
  PLAN_HEADER_FIELDS,
29
27
  PROBE_TIMEOUT_MS,
30
- REPORT_STATUSES,
31
28
  loadPlanPrerequisites,
32
29
  mergePlanPrerequisites,
33
30
  parsePlan,
34
31
  parsePrerequisites,
35
- parseReport,
36
32
  planPrerequisites,
37
33
  prerequisitesPathForPlan,
38
34
  renderInjection,
39
35
  runPreflight,
40
36
  runShellProbe
41
- } from "./index-64wec0k7.js";
37
+ } from "./index-09p41s0n.js";
42
38
  import {
43
39
  CORE_ADAPTER_REGISTRY,
44
40
  EFFORT_KEY_PROJECTIONS,
@@ -47,20 +43,25 @@ import {
47
43
  openNdjsonStore,
48
44
  openSqliteStore,
49
45
  selectEffortStore
50
- } from "./index-7t0qz29r.js";
46
+ } from "./index-gb51x34c.js";
51
47
  import {
52
48
  CONFIG_DEFAULTS,
53
49
  CONFIG_FILE,
54
50
  ConfigError,
51
+ FINDING_KINDS,
52
+ FINDING_SIGNALS,
55
53
  RAFA_BLOCK_KINDS,
54
+ REPORT_STATUSES,
56
55
  configFilePath,
57
56
  isRafaBlockKind,
58
57
  parseConfigText,
58
+ parseReport,
59
59
  readRafaBlocks,
60
60
  resolveConfig
61
- } from "./index-ps5sac9p.js";
62
- import"./index-qzhpqmfy.js";
63
- import"./index-p901zs2p.js";
61
+ } from "./index-pqrpcfaz.js";
62
+ import"./index-d6d0942q.js";
63
+ import"./index-c5cecsga.js";
64
+ import"./index-vg7ycs94.js";
64
65
  import {
65
66
  CLAUDE_SETTING_SOURCES,
66
67
  CONFIG_VERSIONS,
@@ -71,7 +72,8 @@ import {
71
72
  PR_PROVIDERS,
72
73
  RELEASE_AUTO,
73
74
  STORE_BACKENDS
74
- } from "./index-n3rw8rhr.js";
75
+ } from "./index-cedghpva.js";
76
+ import"./index-wp8c28fd.js";
75
77
  export {
76
78
  validateManifest,
77
79
  usage as usageCommand,
@@ -0,0 +1,25 @@
1
+ // @bun
2
+ import {
3
+ bless,
4
+ merge,
5
+ promotable
6
+ } from "../index-d6d0942q.js";
7
+ import {
8
+ CONFIDENCE_MAX,
9
+ CONFIDENCE_MIN,
10
+ GAP,
11
+ SOURCE_STEP,
12
+ actionHash,
13
+ triggerKey
14
+ } from "../index-wp8c28fd.js";
15
+ export {
16
+ triggerKey,
17
+ promotable,
18
+ merge,
19
+ bless,
20
+ actionHash,
21
+ SOURCE_STEP,
22
+ GAP,
23
+ CONFIDENCE_MIN,
24
+ CONFIDENCE_MAX
25
+ };
@@ -1,30 +1,31 @@
1
1
  // @bun
2
2
  import {
3
- FINDING_KINDS,
4
- FINDING_SIGNALS,
5
3
  PLAN_BLOCK_KINDS,
6
4
  PLAN_HEADER_FIELDS,
7
5
  PROBE_TIMEOUT_MS,
8
- REPORT_STATUSES,
9
6
  loadPlanPrerequisites,
10
7
  mergePlanPrerequisites,
11
8
  parsePlan,
12
9
  parsePrerequisites,
13
- parseReport,
14
10
  planPrerequisites,
15
11
  prerequisitesPathForPlan,
16
12
  renderInjection,
17
13
  runPreflight,
18
14
  runShellProbe
19
- } from "../index-64wec0k7.js";
15
+ } from "../index-09p41s0n.js";
20
16
  import {
17
+ FINDING_KINDS,
18
+ FINDING_SIGNALS,
21
19
  RAFA_BLOCK_KINDS,
20
+ REPORT_STATUSES,
22
21
  isRafaBlockKind,
22
+ parseReport,
23
23
  readRafaBlocks
24
- } from "../index-ps5sac9p.js";
24
+ } from "../index-pqrpcfaz.js";
25
25
  import {
26
26
  INJECT_MODES
27
- } from "../index-n3rw8rhr.js";
27
+ } from "../index-cedghpva.js";
28
+ import"../index-wp8c28fd.js";
28
29
  export {
29
30
  runShellProbe,
30
31
  runPreflight,
@@ -73,6 +73,8 @@ criteria — **do not execute the plan**.
73
73
 
74
74
  {PLAN_FORMAT}
75
75
 
76
+ {ROUTING}
77
+
76
78
  ## Spec
77
79
 
78
80
  {SPEC_CONTENT}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tomato/rafa",
3
- "version": "0.17.0",
3
+ "version": "0.19.0",
4
4
  "description": "Alpha. Runs a plan through the ralph loop: one Claude Code session per task, one commit per task, then a pull request and a CI wait.",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -37,7 +37,8 @@
37
37
  "./cli": "./dist/cli.js",
38
38
  "./plan": "./dist/plan/index.js",
39
39
  "./store": "./dist/effort/store/index.js",
40
- "./ports": "./dist/ports/index.js"
40
+ "./ports": "./dist/ports/index.js",
41
+ "./learning": "./dist/learning/index.js"
41
42
  },
42
43
  "files": [
43
44
  "dist",
@@ -47,7 +48,7 @@
47
48
  "bun": ">=1.3.14"
48
49
  },
49
50
  "scripts": {
50
- "build": "rm -rf dist && bun build src/rafa.ts --target=bun --outfile=dist/cli.js && bun build src/index.ts src/plan/index.ts src/effort/store/index.ts src/ports/index.ts --target=bun --splitting --root=src --outdir=dist && cp src/PROMPT.md src/plan-prompt.md .claude/skills/dev-planner/SKILL.md dist/ && for tree in pr/plans:plans board/templates:templates; do src=src/${tree%:*}; out=dist/${tree#*:}; [ -d \"$src\" ] || continue; mkdir -p \"$out\" && cp \"$src\"/*.md \"$out\"/ || exit 1; done",
51
+ "build": "rm -rf dist && bun build src/rafa.ts --target=bun --outfile=dist/cli.js && bun build src/index.ts src/plan/index.ts src/effort/store/index.ts src/ports/index.ts src/learning/index.ts --target=bun --splitting --root=src --outdir=dist && cp src/PROMPT.md src/plan-prompt.md dist/ && cp -R src/bundled dist/bundled && bun build src/tools/ts-symbols/cli.ts --target=bun --outfile=dist/bundled/bin/ts-symbols && for tree in pr/plans:plans board/templates:templates; do src=src/${tree%:*}; out=dist/${tree#*:}; [ -d \"$src\" ] || continue; mkdir -p \"$out\" && cp \"$src\"/*.md \"$out\"/ || exit 1; done",
51
52
  "prepack": "bun run build",
52
53
  "test": "bun test",
53
54
  "lint": "eslint .",