@leitwerk-dev/coding 0.1.8 → 0.2.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 (50) hide show
  1. package/README.md +7 -2
  2. package/dist/auto-work-branch.js +86 -86
  3. package/dist/auto-work-branch.js.map +1 -1
  4. package/dist/{chunk-YWGLBUFT.js → chunk-73LKROYK.js} +162 -154
  5. package/dist/chunk-73LKROYK.js.map +1 -0
  6. package/dist/{chunk-RZ54IVY5.js → chunk-EP3ZC37F.js} +1 -4
  7. package/dist/chunk-EP3ZC37F.js.map +1 -0
  8. package/dist/{chunk-RWCLBBB2.js → chunk-WQEPA35Z.js} +1 -4
  9. package/dist/chunk-WQEPA35Z.js.map +1 -0
  10. package/dist/finalization-git.d.ts +6 -1
  11. package/dist/finalization-git.d.ts.map +1 -1
  12. package/dist/finalization-git.js +13 -559
  13. package/dist/finalization-git.js.map +1 -1
  14. package/dist/index.js +650 -6
  15. package/dist/index.js.map +1 -1
  16. package/dist/repository-change-launch.js +17 -182
  17. package/dist/repository-change-launch.js.map +1 -1
  18. package/dist/repository-change-process.d.ts.map +1 -1
  19. package/dist/repository-change-state.js +12 -51
  20. package/dist/repository-change-state.js.map +1 -1
  21. package/dist/turns/generate-commit-message.js +9 -38
  22. package/dist/turns/generate-commit-message.js.map +1 -1
  23. package/dist/turns/generate-plan.js +7 -19
  24. package/dist/turns/generate-plan.js.map +1 -1
  25. package/dist/turns/implement.js +7 -17
  26. package/dist/turns/implement.js.map +1 -1
  27. package/dist/turns/resolve-merge-conflict.js +7 -21
  28. package/dist/turns/resolve-merge-conflict.js.map +1 -1
  29. package/dist/turns/review-implementation.d.ts +0 -1
  30. package/dist/turns/review-implementation.d.ts.map +1 -1
  31. package/dist/turns/review-implementation.js +7 -27
  32. package/dist/turns/review-implementation.js.map +1 -1
  33. package/dist/turns/review-plan.d.ts +0 -1
  34. package/dist/turns/review-plan.d.ts.map +1 -1
  35. package/dist/turns/review-plan.js +7 -21
  36. package/dist/turns/review-plan.js.map +1 -1
  37. package/dist/turns/simplify-implementation.js +7 -7
  38. package/dist/turns/simplify-implementation.js.map +1 -1
  39. package/package.json +5 -4
  40. package/src/finalization-git.ts +209 -166
  41. package/src/repository-change-process.ts +85 -249
  42. package/src/turns/review-implementation.ts +0 -3
  43. package/src/turns/review-plan.ts +0 -3
  44. package/dist/actions.js +0 -45
  45. package/dist/actions.js.map +0 -1
  46. package/dist/chunk-RWCLBBB2.js.map +0 -1
  47. package/dist/chunk-RZ54IVY5.js.map +0 -1
  48. package/dist/chunk-YWGLBUFT.js.map +0 -1
  49. package/dist/repository-change-process.js +0 -757
  50. package/dist/repository-change-process.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"review-plan.d.ts","sourceRoot":"","sources":["../../src/turns/review-plan.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAE3F,eAAO,MAAM,iBAAiB,8CAA8B,CAAC;AAE7D,wBAAgB,qBAAqB,CACpC,GAAG,EAAE,iBAAiB,CAAC,OAAO,EAAE,sBAAsB,EAAE,MAAM,CAAC,GAC7D,MAAM,CAkBR"}
1
+ {"version":3,"file":"review-plan.d.ts","sourceRoot":"","sources":["../../src/turns/review-plan.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAE3F,wBAAgB,qBAAqB,CACpC,GAAG,EAAE,iBAAiB,CAAC,OAAO,EAAE,sBAAsB,EAAE,MAAM,CAAC,GAC7D,MAAM,CAkBR"}
@@ -1,22 +1,8 @@
1
- import { createReviewSubject } from "@leitwerk-dev/domain";
2
- export const planReviewSubject = createReviewSubject("plan");
3
- export function buildReviewPlanPrompt(ctx) {
4
- return `Review the plan against this requested change:
5
- ${ctx.prompts.initial}
6
-
7
- Repository root: . (the current working directory)
8
-
9
- Plan:
10
- ${ctx.input.plan}
11
-
12
- Rules:
13
- - review the plan only; do not rewrite the plan
14
- - if you inspect repository files for context, read only inside the current working directory
15
- - use bash only for read-only inspection (e.g. git diff, git status, rg, tree, file listing, read-only http/CLI calls)
16
- - do not modify files, branches, commits, or git index state
17
- - do not read from or write to any original source repository path outside the process workspace
18
- - evaluate scope, sequencing, risks, and acceptance criteria
19
- - publish a short Markdown approval note when the plan is solid
20
- - publish concise, actionable Markdown feedback when the plan needs changes`;
21
- }
1
+ import {
2
+ buildReviewPlanPrompt
3
+ } from "../chunk-EP3ZC37F.js";
4
+ import "../chunk-PX6F3LHL.js";
5
+ export {
6
+ buildReviewPlanPrompt
7
+ };
22
8
  //# sourceMappingURL=review-plan.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"review-plan.js","sourceRoot":"","sources":["../../src/turns/review-plan.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAG3D,MAAM,CAAC,MAAM,iBAAiB,GAAG,mBAAmB,CAAC,MAAM,CAAC,CAAC;AAE7D,MAAM,UAAU,qBAAqB,CACpC,GAA+D;IAE/D,OAAO;EACN,GAAG,CAAC,OAAO,CAAC,OAAO;;;;;EAKnB,GAAG,CAAC,KAAK,CAAC,IAAI;;;;;;;;;;4EAU4D,CAAC;AAC7E,CAAC"}
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,8 +1,8 @@
1
- export function buildSimplifyImplementationPrompt(_ctx) {
2
- return `Repository root: . (the current working directory)
3
-
4
- Find worthwhile ways to simplify the current implementation and nearby code, reducing lines without reducing clarity or behavior. If the implementation is already appropriately simple, say so.
5
-
6
- Inspect the repository read-only and publish a concise simplification plan. Do not modify any files.`;
7
- }
1
+ import {
2
+ buildSimplifyImplementationPrompt
3
+ } from "../chunk-OFDNIT5X.js";
4
+ import "../chunk-PX6F3LHL.js";
5
+ export {
6
+ buildSimplifyImplementationPrompt
7
+ };
8
8
  //# sourceMappingURL=simplify-implementation.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"simplify-implementation.js","sourceRoot":"","sources":["../../src/turns/simplify-implementation.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,iCAAiC,CAChD,IAAwD;IAExD,OAAO;;;;qGAI6F,CAAC;AACtG,CAAC"}
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leitwerk-dev/coding",
3
- "version": "0.1.8",
3
+ "version": "0.2.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/leitwerk-dev/leitwerk.git",
@@ -50,10 +50,11 @@
50
50
  "build": "tsup --silent"
51
51
  },
52
52
  "dependencies": {
53
- "@leitwerk-dev/domain": "0.1.8",
54
- "@leitwerk-dev/process-sdk": "0.1.8"
53
+ "@leitwerk-dev/domain": "0.2.0",
54
+ "@leitwerk-dev/process-sdk": "0.2.0"
55
55
  },
56
56
  "devDependencies": {
57
+ "@leitwerk-dev/test-support": "0.2.0",
57
58
  "tsup": "^8.5.1"
58
59
  },
59
60
  "license": "Apache-2.0",
@@ -61,7 +62,7 @@
61
62
  "access": "public"
62
63
  },
63
64
  "engines": {
64
- "node": ">=22"
65
+ "node": ">=26 <27"
65
66
  },
66
67
  "files": [
67
68
  "dist/**",