@leitwerk-dev/coding 0.1.0 → 0.1.2

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 (57) hide show
  1. package/dist/auto-work-branch.d.ts +11 -10
  2. package/dist/auto-work-branch.js +90 -90
  3. package/dist/auto-work-branch.js.map +1 -1
  4. package/dist/finalization-git.d.ts +11 -9
  5. package/dist/finalization-git.js +11 -532
  6. package/dist/finalization-git.js.map +1 -1
  7. package/dist/index.d.ts +61 -7
  8. package/dist/index.js +785 -6
  9. package/dist/index.js.map +1 -1
  10. package/dist/repository-change-launch.d.ts +17 -15
  11. package/dist/repository-change-launch.js +17 -182
  12. package/dist/repository-change-launch.js.map +1 -1
  13. package/dist/repository-change-state.d.ts +10 -8
  14. package/dist/repository-change-state.js +12 -50
  15. package/dist/repository-change-state.js.map +1 -1
  16. package/dist/turns/generate-commit-message.d.ts +6 -4
  17. package/dist/turns/generate-commit-message.js +9 -38
  18. package/dist/turns/generate-commit-message.js.map +1 -1
  19. package/dist/turns/generate-plan.d.ts +5 -3
  20. package/dist/turns/generate-plan.js +7 -19
  21. package/dist/turns/generate-plan.js.map +1 -1
  22. package/dist/turns/implement.d.ts +5 -3
  23. package/dist/turns/implement.js +7 -17
  24. package/dist/turns/implement.js.map +1 -1
  25. package/dist/turns/resolve-merge-conflict.d.ts +5 -3
  26. package/dist/turns/resolve-merge-conflict.js +7 -21
  27. package/dist/turns/resolve-merge-conflict.js.map +1 -1
  28. package/dist/turns/review-implementation.d.ts +7 -4
  29. package/dist/turns/review-implementation.js +9 -27
  30. package/dist/turns/review-implementation.js.map +1 -1
  31. package/dist/turns/review-plan.d.ts +7 -4
  32. package/dist/turns/review-plan.js +9 -21
  33. package/dist/turns/review-plan.js.map +1 -1
  34. package/dist/turns/simplify-implementation.d.ts +5 -3
  35. package/dist/turns/simplify-implementation.js +7 -7
  36. package/dist/turns/simplify-implementation.js.map +1 -1
  37. package/package.json +3 -3
  38. package/dist/actions.d.ts +0 -18
  39. package/dist/actions.d.ts.map +0 -1
  40. package/dist/actions.js +0 -45
  41. package/dist/actions.js.map +0 -1
  42. package/dist/auto-work-branch.d.ts.map +0 -1
  43. package/dist/finalization-git.d.ts.map +0 -1
  44. package/dist/index.d.ts.map +0 -1
  45. package/dist/repository-change-launch.d.ts.map +0 -1
  46. package/dist/repository-change-process.d.ts +0 -38
  47. package/dist/repository-change-process.d.ts.map +0 -1
  48. package/dist/repository-change-process.js +0 -751
  49. package/dist/repository-change-process.js.map +0 -1
  50. package/dist/repository-change-state.d.ts.map +0 -1
  51. package/dist/turns/generate-commit-message.d.ts.map +0 -1
  52. package/dist/turns/generate-plan.d.ts.map +0 -1
  53. package/dist/turns/implement.d.ts.map +0 -1
  54. package/dist/turns/resolve-merge-conflict.d.ts.map +0 -1
  55. package/dist/turns/review-implementation.d.ts.map +0 -1
  56. package/dist/turns/review-plan.d.ts.map +0 -1
  57. package/dist/turns/simplify-implementation.d.ts.map +0 -1
@@ -1,20 +1,8 @@
1
- export function buildGeneratePlanPrompt(ctx) {
2
- const repo = ctx.repo.get("repo");
3
- return `Create an implementation plan for this repository change:
4
- ${ctx.prompts.initial}
5
-
6
- Repository root: . (the current working directory)
7
-
8
- Branches:
9
- - base branch: ${repo.baseBranch}
10
- - work branch: ${repo.workBranch}
11
-
12
- Rules:
13
- - analyze only the cloned repository in the current working directory
14
- - treat . as the repository root for read-only inspection
15
- - use bash only for read-only inspection (e.g. git log, git diff, rg, tree, file listing, read-only http/CLI calls)
16
- - do not modify files
17
- - do not read from or write to any original source repository path outside the process workspace
18
- - publish the plan when done`;
19
- }
1
+ import {
2
+ buildGeneratePlanPrompt
3
+ } from "../chunk-67YKGZLM.js";
4
+ import "../chunk-PX6F3LHL.js";
5
+ export {
6
+ buildGeneratePlanPrompt
7
+ };
20
8
  //# sourceMappingURL=generate-plan.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"generate-plan.js","sourceRoot":"","sources":["../../src/turns/generate-plan.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,uBAAuB,CACtC,GAA8D;IAE9D,MAAM,IAAI,GAAG,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IAClC,OAAO;EACN,GAAG,CAAC,OAAO,CAAC,OAAO;;;;;iBAKJ,IAAI,CAAC,UAAU;iBACf,IAAI,CAAC,UAAU;;;;;;;;6BAQH,CAAC;AAC9B,CAAC"}
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,3 +1,5 @@
1
- import type { FlowPromptContext, StructuralProcessState } from "@leitwerk-dev/process-sdk";
2
- export declare function buildImplementPrompt(ctx: FlowPromptContext<unknown, StructuralProcessState, "plan">): string;
3
- //# sourceMappingURL=implement.d.ts.map
1
+ import { FlowPromptContext, StructuralProcessState } from '@leitwerk-dev/process-sdk';
2
+
3
+ declare function buildImplementPrompt(ctx: FlowPromptContext<unknown, StructuralProcessState, "plan">): string;
4
+
5
+ export { buildImplementPrompt };
@@ -1,18 +1,8 @@
1
- export function buildImplementPrompt(ctx) {
2
- return `Implement this requested change:
3
- ${ctx.prompts.initial}
4
-
5
- Repository root: . (the current working directory)
6
-
7
- Follow this plan:
8
- ${ctx.input.plan}
9
-
10
- Rules:
11
- - keep going until the change is complete; do any necessary additional passes without asking
12
- - make repository changes only inside the current working directory
13
- - treat . as the repository root for file edits and git commands
14
- - do not read from or write to any original source repository path outside the process workspace
15
- - keep the implementation coherent and complete
16
- - publish the implementation summary when done`;
17
- }
1
+ import {
2
+ buildImplementPrompt
3
+ } from "../chunk-UBVLJV3V.js";
4
+ import "../chunk-PX6F3LHL.js";
5
+ export {
6
+ buildImplementPrompt
7
+ };
18
8
  //# sourceMappingURL=implement.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"implement.js","sourceRoot":"","sources":["../../src/turns/implement.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,oBAAoB,CACnC,GAA+D;IAE/D,OAAO;EACN,GAAG,CAAC,OAAO,CAAC,OAAO;;;;;EAKnB,GAAG,CAAC,KAAK,CAAC,IAAI;;;;;;;;+CAQ+B,CAAC;AAChD,CAAC"}
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,3 +1,5 @@
1
- import type { FlowPromptContext, StructuralProcessState } from "@leitwerk-dev/process-sdk";
2
- export declare function buildResolveMergeConflictPrompt(ctx: FlowPromptContext<unknown, StructuralProcessState, never>): string;
3
- //# sourceMappingURL=resolve-merge-conflict.d.ts.map
1
+ import { FlowPromptContext, StructuralProcessState } from '@leitwerk-dev/process-sdk';
2
+
3
+ declare function buildResolveMergeConflictPrompt(ctx: FlowPromptContext<unknown, StructuralProcessState, never>): string;
4
+
5
+ export { buildResolveMergeConflictPrompt };
@@ -1,22 +1,8 @@
1
- export function buildResolveMergeConflictPrompt(ctx) {
2
- const repo = ctx.repo.get("repo");
3
- return `Resolve the current merge conflict so this requested change can be finalized:
4
- ${ctx.prompts.initial}
5
-
6
- Repository root: . (the current working directory)
7
-
8
- Branches:
9
- - base branch: ${repo.baseBranch}
10
- - work branch: ${repo.workBranch}
11
-
12
- Rules:
13
- - resolve only the current merge conflict inside the current working directory
14
- - treat . as the repository root for file edits and git commands
15
- - complete the merge commit so the repository is no longer in a merge-in-progress state
16
- - leave the repository clean when you finish
17
- - do not push
18
- - do not read from or write to any original source repository path outside the process workspace
19
- - publish a concise Markdown summary of the merge resolution
20
- - then call clean with the final HEAD sha`;
21
- }
1
+ import {
2
+ buildResolveMergeConflictPrompt
3
+ } from "../chunk-5LVPKVI2.js";
4
+ import "../chunk-PX6F3LHL.js";
5
+ export {
6
+ buildResolveMergeConflictPrompt
7
+ };
22
8
  //# sourceMappingURL=resolve-merge-conflict.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"resolve-merge-conflict.js","sourceRoot":"","sources":["../../src/turns/resolve-merge-conflict.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,+BAA+B,CAC9C,GAA8D;IAE9D,MAAM,IAAI,GAAG,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IAClC,OAAO;EACN,GAAG,CAAC,OAAO,CAAC,OAAO;;;;;iBAKJ,IAAI,CAAC,UAAU;iBACf,IAAI,CAAC,UAAU;;;;;;;;;;0CAUU,CAAC;AAC3C,CAAC"}
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,4 +1,7 @@
1
- import type { FlowPromptContext, StructuralProcessState } from "@leitwerk-dev/process-sdk";
2
- export declare const implementationReviewSubject: import("@leitwerk-dev/domain").ReviewSubject;
3
- export declare function buildReviewImplementationPrompt(ctx: FlowPromptContext<unknown, StructuralProcessState>): string;
4
- //# sourceMappingURL=review-implementation.d.ts.map
1
+ import * as _leitwerk_dev_domain from '@leitwerk-dev/domain';
2
+ import { FlowPromptContext, StructuralProcessState } from '@leitwerk-dev/process-sdk';
3
+
4
+ declare const implementationReviewSubject: _leitwerk_dev_domain.ReviewSubject;
5
+ declare function buildReviewImplementationPrompt(ctx: FlowPromptContext<unknown, StructuralProcessState>): string;
6
+
7
+ export { buildReviewImplementationPrompt, implementationReviewSubject };
@@ -1,28 +1,10 @@
1
- import { createReviewSubject } from "@leitwerk-dev/domain";
2
- export const implementationReviewSubject = createReviewSubject("implementation");
3
- export function buildReviewImplementationPrompt(ctx) {
4
- const repo = ctx.repo.get("repo");
5
- return `Repository root: . (the current working directory)
6
-
7
- Review the current implementation of this requested change:
8
- ${ctx.prompts.initial}
9
-
10
- Inspect the changes with \`git diff --stat $(git merge-base ${repo.baseBranch} HEAD)\`. Check for:
11
- - bugs and logic errors
12
- - security issues
13
- - error handling gaps
14
- - missing or misplaced tests
15
- - unnecessary abstractions, duplication, and other avoidable complexity
16
-
17
- For each issue, give a concise fix.
18
-
19
- Rules:
20
- - inspect code only inside the current working directory
21
- - treat . as the repository root for read-only inspection
22
- - use bash only for read-only inspection (e.g. git diff, git status, rg, tree, file listing, read-only http/CLI calls)
23
- - do not modify files, branches, commits, or git index state
24
- - do not read from or write to any original source repository path outside the process workspace
25
- - publish a short Markdown approval note if the implementation is ready
26
- - publish concise, actionable Markdown feedback if the implementation needs changes`;
27
- }
1
+ import {
2
+ buildReviewImplementationPrompt,
3
+ implementationReviewSubject
4
+ } from "../chunk-RWCLBBB2.js";
5
+ import "../chunk-PX6F3LHL.js";
6
+ export {
7
+ buildReviewImplementationPrompt,
8
+ implementationReviewSubject
9
+ };
28
10
  //# sourceMappingURL=review-implementation.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"review-implementation.js","sourceRoot":"","sources":["../../src/turns/review-implementation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAG3D,MAAM,CAAC,MAAM,2BAA2B,GAAG,mBAAmB,CAAC,gBAAgB,CAAC,CAAC;AAEjF,MAAM,UAAU,+BAA+B,CAC9C,GAAuD;IAEvD,MAAM,IAAI,GAAG,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IAClC,OAAO;;;EAGN,GAAG,CAAC,OAAO,CAAC,OAAO;;8DAEyC,IAAI,CAAC,UAAU;;;;;;;;;;;;;;;;oFAgBO,CAAC;AACrF,CAAC"}
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,4 +1,7 @@
1
- import type { FlowPromptContext, StructuralProcessState } from "@leitwerk-dev/process-sdk";
2
- export declare const planReviewSubject: import("@leitwerk-dev/domain").ReviewSubject;
3
- export declare function buildReviewPlanPrompt(ctx: FlowPromptContext<unknown, StructuralProcessState, "plan">): string;
4
- //# sourceMappingURL=review-plan.d.ts.map
1
+ import * as _leitwerk_dev_domain from '@leitwerk-dev/domain';
2
+ import { FlowPromptContext, StructuralProcessState } from '@leitwerk-dev/process-sdk';
3
+
4
+ declare const planReviewSubject: _leitwerk_dev_domain.ReviewSubject;
5
+ declare function buildReviewPlanPrompt(ctx: FlowPromptContext<unknown, StructuralProcessState, "plan">): string;
6
+
7
+ export { buildReviewPlanPrompt, planReviewSubject };
@@ -1,22 +1,10 @@
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
+ planReviewSubject
4
+ } from "../chunk-RZ54IVY5.js";
5
+ import "../chunk-PX6F3LHL.js";
6
+ export {
7
+ buildReviewPlanPrompt,
8
+ planReviewSubject
9
+ };
22
10
  //# 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,3 +1,5 @@
1
- import type { FlowPromptContext, StructuralProcessState } from "@leitwerk-dev/process-sdk";
2
- export declare function buildSimplifyImplementationPrompt(_ctx: FlowPromptContext<unknown, StructuralProcessState>): string;
3
- //# sourceMappingURL=simplify-implementation.d.ts.map
1
+ import { FlowPromptContext, StructuralProcessState } from '@leitwerk-dev/process-sdk';
2
+
3
+ declare function buildSimplifyImplementationPrompt(_ctx: FlowPromptContext<unknown, StructuralProcessState>): string;
4
+
5
+ export { buildSimplifyImplementationPrompt };
@@ -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.0",
3
+ "version": "0.1.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/leitwerk-dev/leitwerk.git",
@@ -50,8 +50,8 @@
50
50
  "build": "tsup --silent"
51
51
  },
52
52
  "dependencies": {
53
- "@leitwerk-dev/domain": "0.1.0",
54
- "@leitwerk-dev/process-sdk": "0.1.0"
53
+ "@leitwerk-dev/domain": "0.1.2",
54
+ "@leitwerk-dev/process-sdk": "0.1.2"
55
55
  },
56
56
  "devDependencies": {
57
57
  "tsup": "^8.5.1"
package/dist/actions.d.ts DELETED
@@ -1,18 +0,0 @@
1
- import type { FormDefinition } from "@leitwerk-dev/process-sdk";
2
- export declare const codingActionIds: {
3
- readonly approvePlan: "approve_plan";
4
- readonly requestRevision: "request_revision";
5
- readonly runReview: "run_review";
6
- readonly simplify: "simplify";
7
- readonly acceptReview: "accept_review";
8
- readonly requestReviewChanges: "request_review_changes";
9
- readonly dismissReview: "dismiss_review";
10
- readonly finalizeChange: "finalize_change";
11
- };
12
- export declare const requestRevisionForm: FormDefinition;
13
- export declare const requestReviewChangesForm: FormDefinition;
14
- export declare const acceptReviewForm: FormDefinition;
15
- export declare function createFinalizeChangeForm(copy: {
16
- title: string;
17
- }): FormDefinition;
18
- //# sourceMappingURL=actions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../src/actions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAEhE,eAAO,MAAM,eAAe;;;;;;;;;CASlB,CAAC;AAaX,eAAO,MAAM,mBAAmB,gBAK/B,CAAC;AACF,eAAO,MAAM,wBAAwB,gBAKpC,CAAC;AACF,eAAO,MAAM,gBAAgB,EAAE,cAc9B,CAAC;AAEF,wBAAgB,wBAAwB,CAAC,IAAI,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,cAAc,CAOhF"}
package/dist/actions.js DELETED
@@ -1,45 +0,0 @@
1
- export const codingActionIds = {
2
- approvePlan: "approve_plan",
3
- requestRevision: "request_revision",
4
- runReview: "run_review",
5
- simplify: "simplify",
6
- acceptReview: "accept_review",
7
- requestReviewChanges: "request_review_changes",
8
- dismissReview: "dismiss_review",
9
- finalizeChange: "finalize_change",
10
- };
11
- function notesForm(id, title, label, description) {
12
- return {
13
- id,
14
- title,
15
- fields: [
16
- { id: "message", label, kind: "textarea", primaryPrompt: true, required: true, description },
17
- ],
18
- submitLabel: title,
19
- };
20
- }
21
- export const requestRevisionForm = notesForm(codingActionIds.requestRevision, "Request revision", "Revision notes", "Instructions for the next implementation pass.");
22
- export const requestReviewChangesForm = notesForm(codingActionIds.requestReviewChanges, "Request review changes", "Review notes", "Instructions for the next review pass.");
23
- export const acceptReviewForm = {
24
- id: codingActionIds.acceptReview,
25
- title: "Accept review",
26
- fields: [
27
- {
28
- id: "message",
29
- label: "Review adjustment",
30
- kind: "textarea",
31
- primaryPrompt: true,
32
- description: "Optional instructions to apply with the accepted review, such as dropping one finding.",
33
- },
34
- ],
35
- submitLabel: "Accept review",
36
- };
37
- export function createFinalizeChangeForm(copy) {
38
- return {
39
- id: codingActionIds.finalizeChange,
40
- title: copy.title,
41
- fields: [],
42
- submitLabel: copy.title,
43
- };
44
- }
45
- //# sourceMappingURL=actions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"actions.js","sourceRoot":"","sources":["../src/actions.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,eAAe,GAAG;IAC9B,WAAW,EAAE,cAAc;IAC3B,eAAe,EAAE,kBAAkB;IACnC,SAAS,EAAE,YAAY;IACvB,QAAQ,EAAE,UAAU;IACpB,YAAY,EAAE,eAAe;IAC7B,oBAAoB,EAAE,wBAAwB;IAC9C,aAAa,EAAE,gBAAgB;IAC/B,cAAc,EAAE,iBAAiB;CACxB,CAAC;AAEX,SAAS,SAAS,CAAC,EAAU,EAAE,KAAa,EAAE,KAAa,EAAE,WAAmB;IAC/E,OAAO;QACN,EAAE;QACF,KAAK;QACL,MAAM,EAAE;YACP,EAAE,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,aAAa,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE;SAC5F;QACD,WAAW,EAAE,KAAK;KAClB,CAAC;AACH,CAAC;AAED,MAAM,CAAC,MAAM,mBAAmB,GAAG,SAAS,CAC3C,eAAe,C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GAAG,IAAI,CAAC;QAC3C,sBAAsB,EAAE,OAAO,CAAC;QAChC,sBAAsB,EAAE,MAAM,GAAG,IAAI,CAAC;KACtC,CAAC;CACF;AAED,wBAAgB,4BAA4B,CAC3C,OAAO,EACP,MAAM,SAAS,wCAAwC,EACtD,GAAG,EAAE,uBAAuB,CAAC,OAAO,EAAE,MAAM,CAAC,GAAG,+BAA+B,CA0HhF;AAED,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAMhE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAEzE,eAAO,MAAM,QAAQ;;;CAA8C,CAAC;AACpE,QAAA,MAAM,SAAS,EAAE,uBAAsC,CAAC;AACxD,eAAe,SAAS,CAAC;AAEzB,cAAc,cAAc,CAAC;AAC7B,cAAc,+BAA+B,CAAC;AAC9C,cAAc,gCAAgC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"repository-change-launch.d.ts","sourceRoot":"","sources":["../src/repository-change-launch.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACX,KAAK,EACL,uBAAuB,EACvB,mBAAmB,EACnB,yBAAyB,EACzB,oBAAoB,EACpB,MAAM,2BAA2B,CAAC;AAEnC,MAAM,MAAM,0BAA0B,GAAG,kBAAkB,GAAG,eAAe,CAAC;AAE9E,MAAM,WAAW,0BAA0B;IAC1C,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,0BAA0B,CAAC;IACvC,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED,MAAM,MAAM,4BAA4B,CAAC,MAAM,SAAS,MAAM,GAAG,MAAM,CAAC,KAAK,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AAC,CAAC;CACpE,GAAG,yBAAyB,CAAC,CAAC,CAAC,CAwE/B"}
@@ -1,38 +0,0 @@
1
- import { type Codec, type FormDefinition, type HumanTurnDefinition, type ProcessLauncherDefinition, type RepositoryCredentialProject, type RepositoryCredentialRequirement } from "@leitwerk-dev/process-sdk";
2
- import { type RepositoryChangeState } from "./repository-change-state.js";
3
- export type RepositoryChangeParams = {
4
- launchKind: "requested_change" | "imported_plan";
5
- importedPlanMarkdown?: string;
6
- };
7
- export interface RepositoryChangeProcessConfig<TParams extends RepositoryChangeParams> {
8
- processId: string;
9
- displayName: string;
10
- paramsCodec: Codec<TParams>;
11
- launcher: ProcessLauncherDefinition<TParams>;
12
- finalizeLabel: string;
13
- finalizeForm: FormDefinition;
14
- finalizationDescription: string;
15
- repositoryCredentials?(input: {
16
- params: TParams;
17
- projects: readonly RepositoryCredentialProject[];
18
- }): readonly RepositoryCredentialRequirement[];
19
- }
20
- export declare function createRepositoryChangeProcess<TParams extends RepositoryChangeParams>(config: RepositoryChangeProcessConfig<TParams>): {
21
- process: import("@leitwerk-dev/process-sdk").ProcessDefinition<TParams, RepositoryChangeState>;
22
- planDecision: HumanTurnDefinition<unknown, unknown> & {
23
- id: string;
24
- };
25
- planReviewFeedback: HumanTurnDefinition<unknown, unknown> & {
26
- id: string;
27
- };
28
- implementationDecision: HumanTurnDefinition<unknown, unknown> & {
29
- id: string;
30
- };
31
- implementationReviewFeedback: HumanTurnDefinition<unknown, unknown> & {
32
- id: string;
33
- };
34
- simplificationDecision: HumanTurnDefinition<unknown, unknown> & {
35
- id: string;
36
- };
37
- };
38
- //# sourceMappingURL=repository-change-process.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"repository-change-process.d.ts","sourceRoot":"","sources":["../src/repository-change-process.ts"],"names":[],"mappings":"AACA,OAAO,EAEN,KAAK,KAAK,EAEV,KAAK,cAAc,EAEnB,KAAK,mBAAmB,EAExB,KAAK,yBAAyB,EAC9B,KAAK,2BAA2B,EAChC,KAAK,+BAA+B,EAEpC,MAAM,2BAA2B,CAAC;AAQnC,OAAO,EAGN,KAAK,qBAAqB,EAG1B,MAAM,8BAA8B,CAAC;AAYtC,MAAM,MAAM,sBAAsB,GAAG;IACpC,UAAU,EAAE,kBAAkB,GAAG,eAAe,CAAC;IACjD,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC9B,CAAC;AAEF,MAAM,WAAW,6BAA6B,CAAC,OAAO,SAAS,sBAAsB;IACpF,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IAC5B,QAAQ,EAAE,yBAAyB,CAAC,OAAO,CAAC,CAAC;IAC7C,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,cAAc,CAAC;IAC7B,uBAAuB,EAAE,MAAM,CAAC;IAChC,qBAAqB,CAAC,CAAC,KAAK,EAAE;QAC7B,MAAM,EAAE,OAAO,CAAC;QAChB,QAAQ,EAAE,SAAS,2BAA2B,EAAE,CAAC;KACjD,GAAG,SAAS,+BAA+B,EAAE,CAAC;CAC/C;AAED,wBAAgB,6BAA6B,CAAC,OAAO,SAAS,sBAAsB,EACnF,MAAM,EAAE,6BAA6B,CAAC,OAAO,CAAC;;;YAg2BX,MAAM;;;YAAN,MAAM;;;YAAN,MAAM;;;YAAN,MAAM;;;YAAN,MAAM;;EASzC"}