@leitwerk-dev/coding 0.1.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.
- package/README.md +9 -0
- package/dist/LICENSE +13 -0
- package/dist/actions.d.ts +18 -0
- package/dist/actions.d.ts.map +1 -0
- package/dist/actions.js +45 -0
- package/dist/actions.js.map +1 -0
- package/dist/auto-work-branch.d.ts +17 -0
- package/dist/auto-work-branch.d.ts.map +1 -0
- package/dist/auto-work-branch.js +112 -0
- package/dist/auto-work-branch.js.map +1 -0
- package/dist/chunk-5LVPKVI2.js +27 -0
- package/dist/chunk-5LVPKVI2.js.map +1 -0
- package/dist/chunk-67YKGZLM.js +25 -0
- package/dist/chunk-67YKGZLM.js.map +1 -0
- package/dist/chunk-DSQX3ZHJ.js +60 -0
- package/dist/chunk-DSQX3ZHJ.js.map +1 -0
- package/dist/chunk-JZU3UVR6.js +573 -0
- package/dist/chunk-JZU3UVR6.js.map +1 -0
- package/dist/chunk-NIJCT4VK.js +45 -0
- package/dist/chunk-NIJCT4VK.js.map +1 -0
- package/dist/chunk-OFDNIT5X.js +13 -0
- package/dist/chunk-OFDNIT5X.js.map +1 -0
- package/dist/chunk-PX6F3LHL.js +40 -0
- package/dist/chunk-PX6F3LHL.js.map +1 -0
- package/dist/chunk-RWCLBBB2.js +34 -0
- package/dist/chunk-RWCLBBB2.js.map +1 -0
- package/dist/chunk-RZ54IVY5.js +28 -0
- package/dist/chunk-RZ54IVY5.js.map +1 -0
- package/dist/chunk-UBVLJV3V.js +23 -0
- package/dist/chunk-UBVLJV3V.js.map +1 -0
- package/dist/chunk-Y2S6JFVO.js +185 -0
- package/dist/chunk-Y2S6JFVO.js.map +1 -0
- package/dist/dist-CFKPEMX5.js +546 -0
- package/dist/dist-CFKPEMX5.js.map +1 -0
- package/dist/finalization-git.d.ts +34 -0
- package/dist/finalization-git.d.ts.map +1 -0
- package/dist/finalization-git.js +533 -0
- package/dist/finalization-git.js.map +1 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -0
- package/dist/magic-string.es-4IX5OHLL.js +1309 -0
- package/dist/magic-string.es-4IX5OHLL.js.map +1 -0
- package/dist/repository-change-launch.d.ts +65 -0
- package/dist/repository-change-launch.d.ts.map +1 -0
- package/dist/repository-change-launch.js +183 -0
- package/dist/repository-change-launch.js.map +1 -0
- package/dist/repository-change-process.d.ts +38 -0
- package/dist/repository-change-process.d.ts.map +1 -0
- package/dist/repository-change-process.js +751 -0
- package/dist/repository-change-process.js.map +1 -0
- package/dist/repository-change-state.d.ts +16 -0
- package/dist/repository-change-state.d.ts.map +1 -0
- package/dist/repository-change-state.js +52 -0
- package/dist/repository-change-state.js.map +1 -0
- package/dist/turns/generate-commit-message.d.ts +4 -0
- package/dist/turns/generate-commit-message.d.ts.map +1 -0
- package/dist/turns/generate-commit-message.js +39 -0
- package/dist/turns/generate-commit-message.js.map +1 -0
- package/dist/turns/generate-plan.d.ts +3 -0
- package/dist/turns/generate-plan.d.ts.map +1 -0
- package/dist/turns/generate-plan.js +20 -0
- package/dist/turns/generate-plan.js.map +1 -0
- package/dist/turns/implement.d.ts +3 -0
- package/dist/turns/implement.d.ts.map +1 -0
- package/dist/turns/implement.js +18 -0
- package/dist/turns/implement.js.map +1 -0
- package/dist/turns/resolve-merge-conflict.d.ts +3 -0
- package/dist/turns/resolve-merge-conflict.d.ts.map +1 -0
- package/dist/turns/resolve-merge-conflict.js +22 -0
- package/dist/turns/resolve-merge-conflict.js.map +1 -0
- package/dist/turns/review-implementation.d.ts +4 -0
- package/dist/turns/review-implementation.d.ts.map +1 -0
- package/dist/turns/review-implementation.js +28 -0
- package/dist/turns/review-implementation.js.map +1 -0
- package/dist/turns/review-plan.d.ts +4 -0
- package/dist/turns/review-plan.d.ts.map +1 -0
- package/dist/turns/review-plan.js +22 -0
- package/dist/turns/review-plan.js.map +1 -0
- package/dist/turns/simplify-implementation.d.ts +3 -0
- package/dist/turns/simplify-implementation.d.ts.map +1 -0
- package/dist/turns/simplify-implementation.js +8 -0
- package/dist/turns/simplify-implementation.js.map +1 -0
- package/package.json +72 -0
- package/src/actions.ts +60 -0
- package/src/auto-work-branch.ts +145 -0
- package/src/finalization-git.ts +741 -0
- package/src/index.ts +9 -0
- package/src/repository-change-launch.ts +264 -0
- package/src/repository-change-process.ts +933 -0
- package/src/repository-change-state.ts +75 -0
- package/src/turns/generate-commit-message.ts +49 -0
- package/src/turns/generate-plan.ts +23 -0
- package/src/turns/implement.ts +21 -0
- package/src/turns/resolve-merge-conflict.ts +25 -0
- package/src/turns/review-implementation.ts +32 -0
- package/src/turns/review-plan.ts +26 -0
- package/src/turns/simplify-implementation.ts +11 -0
package/README.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Coding
|
|
2
|
+
|
|
3
|
+
Shared repository-change process graph, action forms, prompts, state, and deterministic Git finalization used by Local Repo Change and Remote Repo Change.
|
|
4
|
+
|
|
5
|
+
Owning extensions provide process identity, launcher policy, finalization copy, and optional repository credential requirements while retaining their persisted process and turn ids.
|
|
6
|
+
|
|
7
|
+
After final implementation approval, `generate_commit_message` consumes the durable accepted `plan` without repository tools. It uses the model configured for `pi.process_title_generation.model_profile` (or the process's inherited model when title generation has no profile), applies the formatting rules pinned in project metadata at launch, and persists the normalized plain-text message in finalization state. Retries and merge-conflict recovery reuse that message.
|
|
8
|
+
|
|
9
|
+
Deterministic finalization passes the message directly to Git, disables hooks and signing, and uses the repository/global `user.name` and `user.email`. It fails before staging or a commit-producing merge when Git identity is unavailable; Leitwerk never supplies an author identity.
|
package/dist/LICENSE
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Copyright 2026 Leitwerk contributors.
|
|
2
|
+
|
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
you may not use this file except in compliance with the License.
|
|
5
|
+
You may obtain a copy of the License at
|
|
6
|
+
|
|
7
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
|
|
9
|
+
Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
See the License for the specific language governing permissions and
|
|
13
|
+
limitations under the License.
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
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
|
+
//# source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wBAAwB,CAAC,IAAuB;IAC/D,OAAO;QACN,EAAE,EAAE,eAAe,CAAC,cAAc;QAClC,KAAK,EAAE,IAAI,CAAC,KAAK;QACjB,MAAM,EAAE,EAAE;QACV,WAAW,EAAE,IAAI,CAAC,KAAK;KACvB,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface ResolveBaseBranchShaInput {
|
|
2
|
+
repoLocator: string;
|
|
3
|
+
baseBranch: string;
|
|
4
|
+
timeoutMs?: number;
|
|
5
|
+
}
|
|
6
|
+
export declare function slugifyBranchSourceForBranch(sourceText: string): string;
|
|
7
|
+
/** @deprecated Use slugifyBranchSourceForBranch. */
|
|
8
|
+
export declare const slugifyPromptForBranch: typeof slugifyBranchSourceForBranch;
|
|
9
|
+
/** @deprecated Use slugifyBranchSourceForBranch. */
|
|
10
|
+
export declare const slugifyTitleForBranch: typeof slugifyBranchSourceForBranch;
|
|
11
|
+
export declare function generateAutoWorkBranchRandomHex(): string;
|
|
12
|
+
export declare function buildAutoWorkBranch(sourceText: string, baseBranchSha: string, randomHex?: string): string;
|
|
13
|
+
/** Builds the same safe branch shape when authenticated remote SHA lookup must wait for a worker. */
|
|
14
|
+
export declare function gitShaLikeDigestFromSeed(seed: string): string;
|
|
15
|
+
export declare function buildAutoWorkBranchFromSeed(sourceText: string, seed: string, randomHex?: string): string;
|
|
16
|
+
export declare function resolveBaseBranchSha(input: ResolveBaseBranchShaInput): Promise<string>;
|
|
17
|
+
//# sourceMappingURL=auto-work-branch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auto-work-branch.d.ts","sourceRoot":"","sources":["../src/auto-work-branch.ts"],"names":[],"mappings":"AAcA,MAAM,WAAW,yBAAyB;IACzC,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAoBD,wBAAgB,4BAA4B,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAKvE;AAED,oDAAoD;AACpD,eAAO,MAAM,sBAAsB,qCAA+B,CAAC;AACnE,oDAAoD;AACpD,eAAO,MAAM,qBAAqB,qCAA+B,CAAC;AAUlE,wBAAgB,+BAA+B,IAAI,MAAM,CAExD;AAYD,wBAAgB,mBAAmB,CAClC,UAAU,EAAE,MAAM,EAClB,aAAa,EAAE,MAAM,EACrB,SAAS,SAAoC,GAC3C,MAAM,CAKR;AAED,qGAAqG;AACrG,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAE7D;AAED,wBAAgB,2BAA2B,CAC1C,UAAU,EAAE,MAAM,EAClB,IAAI,EAAE,MAAM,EACZ,SAAS,SAAoC,GAC3C,MAAM,CAER;AAcD,wBAAsB,oBAAoB,CAAC,KAAK,EAAE,yBAAyB,GAAG,OAAO,CAAC,MAAM,CAAC,CAoC5F"}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { execFile } from "node:child_process";
|
|
2
|
+
import { createHash, randomBytes } from "node:crypto";
|
|
3
|
+
import { promisify } from "node:util";
|
|
4
|
+
import { trimToNull } from "@leitwerk-dev/domain";
|
|
5
|
+
import { sanitizeWorkerSubprocessEnv } from "@leitwerk-dev/process-sdk";
|
|
6
|
+
import { resolveGitBinary } from "@leitwerk-dev/process-sdk/git-binary";
|
|
7
|
+
const DEFAULT_BASE_SHA_SUFFIX_LENGTH = 12;
|
|
8
|
+
const DEFAULT_MAX_BRANCH_SLUG_LENGTH = 48;
|
|
9
|
+
const DEFAULT_PROMPT_WORD_COUNT = 5;
|
|
10
|
+
const AUTO_BRANCH_RANDOM_HEX_LENGTH = 3;
|
|
11
|
+
const DEFAULT_GIT_TIMEOUT_MS = 15_000;
|
|
12
|
+
const execFileAsync = promisify(execFile);
|
|
13
|
+
function truncateSlugAtSeparator(value, maxLength) {
|
|
14
|
+
if (value.length <= maxLength) {
|
|
15
|
+
return value;
|
|
16
|
+
}
|
|
17
|
+
return value.slice(0, maxLength).replace(/-+$/g, "");
|
|
18
|
+
}
|
|
19
|
+
function normalizedBranchWords(value) {
|
|
20
|
+
return (value
|
|
21
|
+
.normalize("NFKD")
|
|
22
|
+
.replace(/[\u0300-\u036f]/g, "")
|
|
23
|
+
.toLowerCase()
|
|
24
|
+
.replace(/[’']/g, "")
|
|
25
|
+
.match(/[a-z0-9]+/g) ?? []);
|
|
26
|
+
}
|
|
27
|
+
export function slugifyBranchSourceForBranch(sourceText) {
|
|
28
|
+
const words = normalizedBranchWords(sourceText).slice(0, DEFAULT_PROMPT_WORD_COUNT);
|
|
29
|
+
const normalized = words.join("-");
|
|
30
|
+
const slug = truncateSlugAtSeparator(normalized, DEFAULT_MAX_BRANCH_SLUG_LENGTH);
|
|
31
|
+
return slug || "change";
|
|
32
|
+
}
|
|
33
|
+
/** @deprecated Use slugifyBranchSourceForBranch. */
|
|
34
|
+
export const slugifyPromptForBranch = slugifyBranchSourceForBranch;
|
|
35
|
+
/** @deprecated Use slugifyBranchSourceForBranch. */
|
|
36
|
+
export const slugifyTitleForBranch = slugifyBranchSourceForBranch;
|
|
37
|
+
function normalizeSha(value) {
|
|
38
|
+
const sha = value.trim().toLowerCase();
|
|
39
|
+
if (!/^[0-9a-f]{7,64}$/.test(sha)) {
|
|
40
|
+
throw new Error(`Expected a git object sha, got '${value}'`);
|
|
41
|
+
}
|
|
42
|
+
return sha;
|
|
43
|
+
}
|
|
44
|
+
export function generateAutoWorkBranchRandomHex() {
|
|
45
|
+
return randomBytes(2).toString("hex").slice(0, AUTO_BRANCH_RANDOM_HEX_LENGTH);
|
|
46
|
+
}
|
|
47
|
+
function normalizeRandomHex(value) {
|
|
48
|
+
const normalized = value.trim().toLowerCase();
|
|
49
|
+
if (!new RegExp(`^[0-9a-f]{${AUTO_BRANCH_RANDOM_HEX_LENGTH}}$`).test(normalized)) {
|
|
50
|
+
throw new Error(`Expected ${AUTO_BRANCH_RANDOM_HEX_LENGTH} random hex characters, got '${value}'`);
|
|
51
|
+
}
|
|
52
|
+
return normalized;
|
|
53
|
+
}
|
|
54
|
+
export function buildAutoWorkBranch(sourceText, baseBranchSha, randomHex = generateAutoWorkBranchRandomHex()) {
|
|
55
|
+
const slug = slugifyBranchSourceForBranch(sourceText);
|
|
56
|
+
const suffix = normalizeRandomHex(randomHex);
|
|
57
|
+
const sha = normalizeSha(baseBranchSha);
|
|
58
|
+
return `${slug}-${suffix}-${sha.slice(0, DEFAULT_BASE_SHA_SUFFIX_LENGTH)}`;
|
|
59
|
+
}
|
|
60
|
+
/** Builds the same safe branch shape when authenticated remote SHA lookup must wait for a worker. */
|
|
61
|
+
export function gitShaLikeDigestFromSeed(seed) {
|
|
62
|
+
return createHash("sha256").update(seed).digest("hex");
|
|
63
|
+
}
|
|
64
|
+
export function buildAutoWorkBranchFromSeed(sourceText, seed, randomHex = generateAutoWorkBranchRandomHex()) {
|
|
65
|
+
return buildAutoWorkBranch(sourceText, gitShaLikeDigestFromSeed(seed), randomHex);
|
|
66
|
+
}
|
|
67
|
+
function baseBranchRef(baseBranch) {
|
|
68
|
+
const trimmed = trimToNull(baseBranch);
|
|
69
|
+
if (!trimmed) {
|
|
70
|
+
throw new Error("baseBranch is required to resolve an automatic work branch");
|
|
71
|
+
}
|
|
72
|
+
return trimmed.startsWith("refs/heads/") ? trimmed : `refs/heads/${trimmed}`;
|
|
73
|
+
}
|
|
74
|
+
function outputToString(value) {
|
|
75
|
+
return typeof value === "string" ? value : Buffer.isBuffer(value) ? value.toString("utf8") : "";
|
|
76
|
+
}
|
|
77
|
+
export async function resolveBaseBranchSha(input) {
|
|
78
|
+
const repoLocator = trimToNull(input.repoLocator);
|
|
79
|
+
if (!repoLocator) {
|
|
80
|
+
throw new Error("repoLocator is required to resolve an automatic work branch");
|
|
81
|
+
}
|
|
82
|
+
const ref = baseBranchRef(input.baseBranch);
|
|
83
|
+
let stdout = "";
|
|
84
|
+
try {
|
|
85
|
+
const result = await execFileAsync(resolveGitBinary(), ["ls-remote", repoLocator, ref], {
|
|
86
|
+
encoding: "utf8",
|
|
87
|
+
env: sanitizeWorkerSubprocessEnv(process.env, { GIT_TERMINAL_PROMPT: "0" }),
|
|
88
|
+
timeout: input.timeoutMs ?? DEFAULT_GIT_TIMEOUT_MS,
|
|
89
|
+
});
|
|
90
|
+
stdout = outputToString(result.stdout);
|
|
91
|
+
}
|
|
92
|
+
catch (error) {
|
|
93
|
+
const errorOutput = error;
|
|
94
|
+
const message = trimToNull(outputToString(errorOutput.stderr)) ??
|
|
95
|
+
trimToNull(outputToString(errorOutput.stdout)) ??
|
|
96
|
+
errorOutput.message ??
|
|
97
|
+
"unknown git error";
|
|
98
|
+
throw new Error(`Failed to resolve '${ref}' from '${repoLocator}': ${message}`);
|
|
99
|
+
}
|
|
100
|
+
const match = stdout
|
|
101
|
+
.split(/\r?\n/)
|
|
102
|
+
.map((line) => line.trim())
|
|
103
|
+
.filter(Boolean)
|
|
104
|
+
.map((line) => line.split(/\s+/))
|
|
105
|
+
.find((parts) => parts[1] === ref);
|
|
106
|
+
const sha = match?.[0];
|
|
107
|
+
if (!sha) {
|
|
108
|
+
throw new Error(`Repository '${repoLocator}' does not expose base branch '${input.baseBranch}'`);
|
|
109
|
+
}
|
|
110
|
+
return normalizeSha(sha);
|
|
111
|
+
}
|
|
112
|
+
//# sourceMappingURL=auto-work-branch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auto-work-branch.js","sourceRoot":"","sources":["../src/auto-work-branch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,2BAA2B,EAAE,MAAM,2BAA2B,CAAC;AACxE,OAAO,EAAE,gB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AC,GAAG,CAAC,CAAC;AAC1B,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// src/turns/resolve-merge-conflict.ts
|
|
2
|
+
function buildResolveMergeConflictPrompt(ctx) {
|
|
3
|
+
const repo = ctx.repo.get("repo");
|
|
4
|
+
return `Resolve the current merge conflict so this requested change can be finalized:
|
|
5
|
+
${ctx.prompts.initial}
|
|
6
|
+
|
|
7
|
+
Repository root: . (the current working directory)
|
|
8
|
+
|
|
9
|
+
Branches:
|
|
10
|
+
- base branch: ${repo.baseBranch}
|
|
11
|
+
- work branch: ${repo.workBranch}
|
|
12
|
+
|
|
13
|
+
Rules:
|
|
14
|
+
- resolve only the current merge conflict inside the current working directory
|
|
15
|
+
- treat . as the repository root for file edits and git commands
|
|
16
|
+
- complete the merge commit so the repository is no longer in a merge-in-progress state
|
|
17
|
+
- leave the repository clean when you finish
|
|
18
|
+
- do not push
|
|
19
|
+
- do not read from or write to any original source repository path outside the process workspace
|
|
20
|
+
- publish a concise Markdown summary of the merge resolution
|
|
21
|
+
- then call clean with the final HEAD sha`;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export {
|
|
25
|
+
buildResolveMergeConflictPrompt
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=chunk-5LVPKVI2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/turns/resolve-merge-conflict.ts"],"sourcesContent":["import type { FlowPromptContext, StructuralProcessState } from \"@leitwerk-dev/process-sdk\";\n\nexport function buildResolveMergeConflictPrompt(\n\tctx: FlowPromptContext<unknown, StructuralProcessState, never>,\n): string {\n\tconst repo = ctx.repo.get(\"repo\");\n\treturn `Resolve the current merge conflict so this requested change can be finalized:\n${ctx.prompts.initial}\n\nRepository root: . (the current working directory)\n\nBranches:\n- base branch: ${repo.baseBranch}\n- work branch: ${repo.workBranch}\n\nRules:\n- resolve only the current merge conflict inside the current working directory\n- treat . as the repository root for file edits and git commands\n- complete the merge commit so the repository is no longer in a merge-in-progress state\n- leave the repository clean when you finish\n- do not push\n- do not read from or write to any original source repository path outside the process workspace\n- publish a concise Markdown summary of the merge resolution\n- then call clean with the final HEAD sha`;\n}\n"],"mappings":";AAEO,SAAS,gCACf,KACS;AACT,QAAM,OAAO,IAAI,KAAK,IAAI,MAAM;AAChC,SAAO;AAAA,EACN,IAAI,QAAQ,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA,iBAKJ,KAAK,UAAU;AAAA,iBACf,KAAK,UAAU;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAWhC;","names":[]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// src/turns/generate-plan.ts
|
|
2
|
+
function buildGeneratePlanPrompt(ctx) {
|
|
3
|
+
const repo = ctx.repo.get("repo");
|
|
4
|
+
return `Create an implementation plan for this repository change:
|
|
5
|
+
${ctx.prompts.initial}
|
|
6
|
+
|
|
7
|
+
Repository root: . (the current working directory)
|
|
8
|
+
|
|
9
|
+
Branches:
|
|
10
|
+
- base branch: ${repo.baseBranch}
|
|
11
|
+
- work branch: ${repo.workBranch}
|
|
12
|
+
|
|
13
|
+
Rules:
|
|
14
|
+
- analyze only the cloned repository in the current working directory
|
|
15
|
+
- treat . as the repository root for read-only inspection
|
|
16
|
+
- use bash only for read-only inspection (e.g. git log, git diff, rg, tree, file listing, read-only http/CLI calls)
|
|
17
|
+
- do not modify files
|
|
18
|
+
- do not read from or write to any original source repository path outside the process workspace
|
|
19
|
+
- publish the plan when done`;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export {
|
|
23
|
+
buildGeneratePlanPrompt
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=chunk-67YKGZLM.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/turns/generate-plan.ts"],"sourcesContent":["import type { FlowPromptContext, StructuralProcessState } from \"@leitwerk-dev/process-sdk\";\n\nexport function buildGeneratePlanPrompt(\n\tctx: FlowPromptContext<unknown, StructuralProcessState, never>,\n): string {\n\tconst repo = ctx.repo.get(\"repo\");\n\treturn `Create an implementation plan for this repository change:\n${ctx.prompts.initial}\n\nRepository root: . (the current working directory)\n\nBranches:\n- base branch: ${repo.baseBranch}\n- work branch: ${repo.workBranch}\n\nRules:\n- analyze only the cloned repository in the current working directory\n- treat . as the repository root for read-only inspection\n- use bash only for read-only inspection (e.g. git log, git diff, rg, tree, file listing, read-only http/CLI calls)\n- do not modify files\n- do not read from or write to any original source repository path outside the process workspace\n- publish the plan when done`;\n}\n"],"mappings":";AAEO,SAAS,wBACf,KACS;AACT,QAAM,OAAO,IAAI,KAAK,IAAI,MAAM;AAChC,SAAO;AAAA,EACN,IAAI,QAAQ,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA,iBAKJ,KAAK,UAAU;AAAA,iBACf,KAAK,UAAU;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAShC;","names":[]}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
// src/repository-change-state.ts
|
|
2
|
+
import { parseStructuralProcessState } from "@leitwerk-dev/process-sdk";
|
|
3
|
+
function createEmptyRepositoryChangeFinalizationState() {
|
|
4
|
+
return {
|
|
5
|
+
expectedPostConflictHeadSha: null,
|
|
6
|
+
usedConflictResolution: false,
|
|
7
|
+
finalizationSummaryMarkdown: null,
|
|
8
|
+
finalizedHeadSha: null,
|
|
9
|
+
generatedCommitMessage: null
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
function stringOrNull(value) {
|
|
13
|
+
return typeof value === "string" ? value : null;
|
|
14
|
+
}
|
|
15
|
+
function toRecord(value) {
|
|
16
|
+
return typeof value === "object" && value !== null ? value : {};
|
|
17
|
+
}
|
|
18
|
+
function parseFinalizationState(value) {
|
|
19
|
+
const record = toRecord(value);
|
|
20
|
+
return {
|
|
21
|
+
expectedPostConflictHeadSha: stringOrNull(record.expectedPostConflictHeadSha),
|
|
22
|
+
usedConflictResolution: record.usedConflictResolution === true,
|
|
23
|
+
finalizationSummaryMarkdown: stringOrNull(record.finalizationSummaryMarkdown),
|
|
24
|
+
finalizedHeadSha: stringOrNull(record.finalizedHeadSha),
|
|
25
|
+
// Backward-compatible decoding for state persisted before commit-message generation.
|
|
26
|
+
generatedCommitMessage: stringOrNull(record.generatedCommitMessage)
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
var repositoryChangeStateCodec = {
|
|
30
|
+
parse(value) {
|
|
31
|
+
const record = toRecord(value);
|
|
32
|
+
return {
|
|
33
|
+
...parseStructuralProcessState(record),
|
|
34
|
+
finalization: parseFinalizationState(record.finalization)
|
|
35
|
+
};
|
|
36
|
+
},
|
|
37
|
+
serialize(value) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
function clearReviewRefs(semanticEntryRefs) {
|
|
42
|
+
return {
|
|
43
|
+
...semanticEntryRefs,
|
|
44
|
+
review: null
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
function resetRepositoryChangeFinalizationState(overrides = {}) {
|
|
48
|
+
return {
|
|
49
|
+
...createEmptyRepositoryChangeFinalizationState(),
|
|
50
|
+
...overrides
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export {
|
|
55
|
+
createEmptyRepositoryChangeFinalizationState,
|
|
56
|
+
repositoryChangeStateCodec,
|
|
57
|
+
clearReviewRefs,
|
|
58
|
+
resetRepositoryChangeFinalizationState
|
|
59
|
+
};
|
|
60
|
+
//# sourceMappingURL=chunk-DSQX3ZHJ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/repository-change-state.ts"],"sourcesContent":["import type { Codec, StructuralProcessState } from \"@leitwerk-dev/process-sdk\";\nimport { parseStructuralProcessState } from \"@leitwerk-dev/process-sdk\";\n\nexport interface RepositoryChangeFinalizationState {\n\texpectedPostConflictHeadSha: string | null;\n\tusedConflictResolution: boolean;\n\tfinalizationSummaryMarkdown: string | null;\n\tfinalizedHeadSha: string | null;\n\tgeneratedCommitMessage: string | null;\n}\n\nexport interface RepositoryChangeState extends StructuralProcessState {\n\tfinalization: RepositoryChangeFinalizationState;\n}\n\nexport function createEmptyRepositoryChangeFinalizationState(): RepositoryChangeFinalizationState {\n\treturn {\n\t\texpectedPostConflictHeadSha: null,\n\t\tusedConflictResolution: false,\n\t\tfinalizationSummaryMarkdown: null,\n\t\tfinalizedHeadSha: null,\n\t\tgeneratedCommitMessage: null,\n\t};\n}\n\nfunction stringOrNull(value: unknown): string | null {\n\treturn typeof value === \"string\" ? value : null;\n}\n\nfunction toRecord(value: unknown): Record<string, unknown> {\n\treturn typeof value === \"object\" && value !== null ? (value as Record<string, unknown>) : {};\n}\n\nfunction parseFinalizationState(value: unknown): RepositoryChangeFinalizationState {\n\tconst record = toRecord(value);\n\treturn {\n\t\texpectedPostConflictHeadSha: stringOrNull(record.expectedPostConflictHeadSha),\n\t\tusedConflictResolution: record.usedConflictResolution === true,\n\t\tfinalizationSummaryMarkdown: stringOrNull(record.finalizationSummaryMarkdown),\n\t\tfinalizedHeadSha: stringOrNull(record.finalizedHeadSha),\n\t\t// Backward-compatible decoding for state persisted before commit-message generation.\n\t\tgeneratedCommitMessage: stringOrNull(record.generatedCommitMessage),\n\t};\n}\n\nexport const repositoryChangeStateCodec: Codec<RepositoryChangeState> = {\n\tparse(value) {\n\t\tconst record = toRecord(value);\n\t\treturn {\n\t\t\t...parseStructuralProcessState(record),\n\t\t\tfinalization: parseFinalizationState(record.finalization),\n\t\t};\n\t},\n\tserialize(value) {\n\t\treturn value;\n\t},\n};\n\nexport function clearReviewRefs(\n\tsemanticEntryRefs: RepositoryChangeState[\"semanticEntryRefs\"],\n): RepositoryChangeState[\"semanticEntryRefs\"] {\n\treturn {\n\t\t...semanticEntryRefs,\n\t\treview: null,\n\t};\n}\n\nexport function resetRepositoryChangeFinalizationState(\n\toverrides: Partial<RepositoryChangeFinalizationState> = {},\n): RepositoryChangeFinalizationState {\n\treturn {\n\t\t...createEmptyRepositoryChangeFinalizationState(),\n\t\t...overrides,\n\t};\n}\n"],"mappings":";AACA,SAAS,mCAAmC;AAcrC,SAAS,+CAAkF;AACjG,SAAO;AAAA,IACN,6BAA6B;AAAA,IAC7B,wBAAwB;AAAA,IACxB,6BAA6B;AAAA,IAC7B,kBAAkB;AAAA,IAClB,wBAAwB;AAAA,EACzB;AACD;AAEA,SAAS,aAAa,OAA+B;AACpD,SAAO,OAAO,UAAU,WAAW,QAAQ;AAC5C;AAEA,SAAS,SAAS,OAAyC;AAC1D,SAAO,OAAO,UAAU,YAAY,UAAU,OAAQ,QAAoC,CAAC;AAC5F;AAEA,SAAS,uBAAuB,OAAmD;AAClF,QAAM,SAAS,SAAS,KAAK;AAC7B,SAAO;AAAA,IACN,6BAA6B,aAAa,OAAO,2BAA2B;AAAA,IAC5E,wBAAwB,OAAO,2BAA2B;AAAA,IAC1D,6BAA6B,aAAa,OAAO,2BAA2B;AAAA,IAC5E,kBAAkB,aAAa,OAAO,gBAAgB;AAAA;AAAA,IAEtD,wBAAwB,aAAa,OAAO,sBAAsB;AAAA,EACnE;AACD;AAEO,IAAM,6BAA2D;AAAA,EACvE,MAAM,OAAO;AACZ,UAAM,SAAS,SAAS,KAAK;AAC7B,WAAO;AAAA,MACN,GAAG,4BAA4B,MAAM;AAAA,MACrC,cAAc,uBAAuB,OAAO,YAAY;AAAA,IACzD;AAAA,EACD;AAAA,EACA,UAAU,OAAO;AAChB,WAAO;AAAA,EACR;AACD;AAEO,SAAS,gBACf,mBAC6C;AAC7C,SAAO;AAAA,IACN,GAAG;AAAA,IACH,QAAQ;AAAA,EACT;AACD;AAEO,SAAS,uCACf,YAAwD,CAAC,GACrB;AACpC,SAAO;AAAA,IACN,GAAG,6CAA6C;AAAA,IAChD,GAAG;AAAA,EACJ;AACD;","names":[]}
|