@slowcook-ai/cli 0.19.0-alpha.1 → 0.19.0-alpha.8

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 (38) hide show
  1. package/dist/cli.js +27 -1
  2. package/dist/cli.js.map +1 -1
  3. package/dist/commands/brew/agent.d.ts +129 -0
  4. package/dist/commands/brew/agent.d.ts.map +1 -1
  5. package/dist/commands/brew/agent.js +132 -0
  6. package/dist/commands/brew/agent.js.map +1 -1
  7. package/dist/commands/chef/orchestrate.d.ts +34 -0
  8. package/dist/commands/chef/orchestrate.d.ts.map +1 -0
  9. package/dist/commands/chef/orchestrate.js +385 -0
  10. package/dist/commands/chef/orchestrate.js.map +1 -0
  11. package/dist/commands/init/mock.d.ts +46 -0
  12. package/dist/commands/init/mock.d.ts.map +1 -1
  13. package/dist/commands/init/mock.js +142 -2
  14. package/dist/commands/init/mock.js.map +1 -1
  15. package/dist/commands/recon/index.d.ts.map +1 -1
  16. package/dist/commands/recon/index.js +108 -5
  17. package/dist/commands/recon/index.js.map +1 -1
  18. package/dist/commands/recon/reuse.d.ts +118 -0
  19. package/dist/commands/recon/reuse.d.ts.map +1 -0
  20. package/dist/commands/recon/reuse.js +269 -0
  21. package/dist/commands/recon/reuse.js.map +1 -0
  22. package/dist/commands/recon/shape-preserve.d.ts +46 -0
  23. package/dist/commands/recon/shape-preserve.d.ts.map +1 -1
  24. package/dist/commands/recon/shape-preserve.js +126 -0
  25. package/dist/commands/recon/shape-preserve.js.map +1 -1
  26. package/dist/commands/refactor/index.d.ts +15 -0
  27. package/dist/commands/refactor/index.d.ts.map +1 -0
  28. package/dist/commands/refactor/index.js +126 -0
  29. package/dist/commands/refactor/index.js.map +1 -0
  30. package/dist/commands/refactor/score.d.ts +38 -0
  31. package/dist/commands/refactor/score.d.ts.map +1 -0
  32. package/dist/commands/refactor/score.js +79 -0
  33. package/dist/commands/refactor/score.js.map +1 -0
  34. package/dist/commands/refactor/types.d.ts +64 -0
  35. package/dist/commands/refactor/types.d.ts.map +1 -0
  36. package/dist/commands/refactor/types.js +26 -0
  37. package/dist/commands/refactor/types.js.map +1 -0
  38. package/package.json +5 -5
@@ -0,0 +1,26 @@
1
+ /**
2
+ * 0.19.0-alpha.7 (#64) — refactor command data shapes.
3
+ *
4
+ * The refactor command takes a list of candidate refactors (proposals)
5
+ * + computes per-proposal cost/benefit, filters by codebase scope,
6
+ * and ranks them. Proposals come from a source the cli treats as
7
+ * opaque today — could be hand-authored JSON, recon emissions, or a
8
+ * future LLM proposer agent. The scoring + filtering logic stays
9
+ * separate so any source feeds into the same ranking.
10
+ *
11
+ * Goals:
12
+ * - Boundedness: caller specifies scope (e.g. `src/components/**`)
13
+ * so refactors don't sprawl across the repo.
14
+ * - Cheapness-first: prefer high-value low-cost proposals; defer
15
+ * expensive ones until they pay back.
16
+ * - Auditability: each proposal carries a rationale + estimated
17
+ * deltas so the cli can show its work + a PM can sanity-check.
18
+ *
19
+ * Out of scope for α.7 (deferred):
20
+ * - LLM-backed proposer that READS the codebase + suggests
21
+ * refactors. The pure ranking layer ships first; proposer comes
22
+ * when the data shape has settled empirically.
23
+ * - Auto-application. α.7 ranks + reports; a future α may apply.
24
+ */
25
+ export {};
26
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/commands/refactor/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slowcook-ai/cli",
3
- "version": "0.19.0-alpha.1",
3
+ "version": "0.19.0-alpha.8",
4
4
  "description": "CLI for the slowcook brewing harness",
5
5
  "license": "MIT",
6
6
  "author": "aminazar",
@@ -38,12 +38,12 @@
38
38
  "ts-morph": "^24.0.0",
39
39
  "yaml": "^2.6.0",
40
40
  "zod": "^3.23.8",
41
- "@slowcook-ai/core": "^0.13.0",
42
41
  "@slowcook-ai/stack-ts": "^0.9.9-alpha.0",
43
- "@slowcook-ai/forge-github": "^0.12.0",
44
- "@slowcook-ai/llm-anthropic": "^0.16.0-alpha.0",
42
+ "@slowcook-ai/recorder": "^0.9.1",
43
+ "@slowcook-ai/llm-anthropic": "^0.16.0-alpha.1",
45
44
  "@slowcook-ai/review-overlay": "^0.5.5",
46
- "@slowcook-ai/recorder": "^0.9.1"
45
+ "@slowcook-ai/core": "^0.13.0",
46
+ "@slowcook-ai/forge-github": "^0.12.0"
47
47
  },
48
48
  "publishConfig": {
49
49
  "access": "public"