@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.
- package/dist/cli.js +27 -1
- package/dist/cli.js.map +1 -1
- package/dist/commands/brew/agent.d.ts +129 -0
- package/dist/commands/brew/agent.d.ts.map +1 -1
- package/dist/commands/brew/agent.js +132 -0
- package/dist/commands/brew/agent.js.map +1 -1
- package/dist/commands/chef/orchestrate.d.ts +34 -0
- package/dist/commands/chef/orchestrate.d.ts.map +1 -0
- package/dist/commands/chef/orchestrate.js +385 -0
- package/dist/commands/chef/orchestrate.js.map +1 -0
- package/dist/commands/init/mock.d.ts +46 -0
- package/dist/commands/init/mock.d.ts.map +1 -1
- package/dist/commands/init/mock.js +142 -2
- package/dist/commands/init/mock.js.map +1 -1
- package/dist/commands/recon/index.d.ts.map +1 -1
- package/dist/commands/recon/index.js +108 -5
- package/dist/commands/recon/index.js.map +1 -1
- package/dist/commands/recon/reuse.d.ts +118 -0
- package/dist/commands/recon/reuse.d.ts.map +1 -0
- package/dist/commands/recon/reuse.js +269 -0
- package/dist/commands/recon/reuse.js.map +1 -0
- package/dist/commands/recon/shape-preserve.d.ts +46 -0
- package/dist/commands/recon/shape-preserve.d.ts.map +1 -1
- package/dist/commands/recon/shape-preserve.js +126 -0
- package/dist/commands/recon/shape-preserve.js.map +1 -1
- package/dist/commands/refactor/index.d.ts +15 -0
- package/dist/commands/refactor/index.d.ts.map +1 -0
- package/dist/commands/refactor/index.js +126 -0
- package/dist/commands/refactor/index.js.map +1 -0
- package/dist/commands/refactor/score.d.ts +38 -0
- package/dist/commands/refactor/score.d.ts.map +1 -0
- package/dist/commands/refactor/score.js +79 -0
- package/dist/commands/refactor/score.js.map +1 -0
- package/dist/commands/refactor/types.d.ts +64 -0
- package/dist/commands/refactor/types.d.ts.map +1 -0
- package/dist/commands/refactor/types.js +26 -0
- package/dist/commands/refactor/types.js.map +1 -0
- 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.
|
|
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/
|
|
44
|
-
"@slowcook-ai/llm-anthropic": "^0.16.0-alpha.
|
|
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/
|
|
45
|
+
"@slowcook-ai/core": "^0.13.0",
|
|
46
|
+
"@slowcook-ai/forge-github": "^0.12.0"
|
|
47
47
|
},
|
|
48
48
|
"publishConfig": {
|
|
49
49
|
"access": "public"
|