@leitwerk-dev/coding 0.3.1 → 0.4.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 +86 -1
- package/dist/chunk-ABQH2WZT.js +36 -0
- package/dist/chunk-ABQH2WZT.js.map +1 -0
- package/dist/{chunk-YSC5GEQJ.js → chunk-BI45R2FH.js} +7 -3
- package/dist/chunk-BI45R2FH.js.map +1 -0
- package/dist/chunk-DNG7D77K.js +65 -0
- package/dist/chunk-DNG7D77K.js.map +1 -0
- package/dist/chunk-L2TFD72B.js +16320 -0
- package/dist/chunk-L2TFD72B.js.map +1 -0
- package/dist/chunk-M2VTUPFO.js +265 -0
- package/dist/chunk-M2VTUPFO.js.map +1 -0
- package/dist/chunk-OM2AMDTJ.js +347 -0
- package/dist/chunk-OM2AMDTJ.js.map +1 -0
- package/dist/chunk-Q24RPXOA.js +159 -0
- package/dist/chunk-Q24RPXOA.js.map +1 -0
- package/dist/chunk-SKGB4CZS.js +14 -0
- package/dist/chunk-SKGB4CZS.js.map +1 -0
- package/dist/chunk-SZ4WOGV2.js +120 -0
- package/dist/chunk-SZ4WOGV2.js.map +1 -0
- package/dist/finalization-git-internal.d.ts +3 -0
- package/dist/finalization-git-internal.d.ts.map +1 -1
- package/dist/finalization-git.d.ts +1 -1
- package/dist/finalization-git.d.ts.map +1 -1
- package/dist/finalization-git.js +5 -3
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +17 -591
- package/dist/index.js.map +1 -1
- package/dist/pull-request-publication-internal.d.ts +26 -24
- package/dist/pull-request-publication-internal.d.ts.map +1 -1
- package/dist/repository-change-launch-internal-BudnAfL7.d.ts +88 -0
- package/dist/repository-change-launch-internal.d.ts +32 -11
- package/dist/repository-change-launch-internal.d.ts.map +1 -1
- package/dist/repository-change-launch.d.ts +4 -3
- package/dist/repository-change-launch.d.ts.map +1 -1
- package/dist/repository-change-launch.js +162 -34
- package/dist/repository-change-launch.js.map +1 -1
- package/dist/repository-change-process-DlgF04fU.d.ts +69 -0
- package/dist/repository-change-process.d.ts +30 -25
- package/dist/repository-change-process.d.ts.map +1 -1
- package/dist/repository-change-publication.d.ts +62 -6
- package/dist/repository-change-publication.d.ts.map +1 -1
- package/dist/repository-change-publication.js +364 -90
- package/dist/repository-change-publication.js.map +1 -1
- package/dist/repository-change-state-internal.d.ts +18 -4
- package/dist/repository-change-state-internal.d.ts.map +1 -1
- package/dist/repository-change-ui-launcher-internal.d.ts +34 -22
- package/dist/repository-change-ui-launcher-internal.d.ts.map +1 -1
- package/dist/settings.d.ts +15 -0
- package/dist/settings.d.ts.map +1 -0
- package/dist/turns/commit-message-evidence.d.ts +35 -0
- package/dist/turns/commit-message-evidence.d.ts.map +1 -0
- package/dist/turns/commit-message-evidence.js +9 -0
- package/dist/turns/generate-commit-message.d.ts +4 -1
- package/dist/turns/generate-commit-message.d.ts.map +1 -1
- package/dist/turns/generate-commit-message.js +7 -5
- package/dist/turns/generate-plan.d.ts.map +1 -1
- package/dist/turns/generate-plan.js +1 -1
- package/dist/turns/git-inspection-profile.d.ts +25 -0
- package/dist/turns/git-inspection-profile.d.ts.map +1 -0
- package/dist/turns/git-inspection-profile.js +8 -0
- package/dist/turns/implement.d.ts.map +1 -1
- package/dist/turns/implement.js +1 -1
- package/dist/turns/simplify-implementation.d.ts +1 -1
- package/dist/turns/simplify-implementation.d.ts.map +1 -1
- package/dist/turns/simplify-implementation.js +3 -3
- package/package.json +5 -9
- package/src/finalization-git-internal.ts +117 -114
- package/src/finalization-git.ts +1 -1
- package/src/index.ts +4 -1
- package/src/pull-request-publication-internal.ts +156 -78
- package/src/repository-change-launch-internal.ts +119 -12
- package/src/repository-change-launch.ts +8 -4
- package/src/repository-change-process.ts +234 -523
- package/src/repository-change-publication.ts +516 -121
- package/src/repository-change-state-internal.ts +34 -20
- package/src/repository-change-ui-launcher-internal.ts +139 -56
- package/src/settings.ts +79 -0
- package/src/turns/commit-message-evidence.ts +241 -0
- package/src/turns/generate-commit-message.ts +53 -23
- package/src/turns/generate-plan.ts +26 -12
- package/src/turns/git-inspection-profile.ts +134 -0
- package/src/turns/implement.ts +9 -2
- package/src/turns/simplify-implementation.ts +10 -6
- package/dist/chunk-34B3Q75M.js +0 -25
- package/dist/chunk-34B3Q75M.js.map +0 -1
- package/dist/chunk-F6CEEAFE.js +0 -13
- package/dist/chunk-F6CEEAFE.js.map +0 -1
- package/dist/chunk-GO44KCUS.js +0 -154
- package/dist/chunk-GO44KCUS.js.map +0 -1
- package/dist/chunk-R3UCUGY6.js +0 -31
- package/dist/chunk-R3UCUGY6.js.map +0 -1
- package/dist/chunk-W7VJT6AN.js +0 -25
- package/dist/chunk-W7VJT6AN.js.map +0 -1
- package/dist/chunk-WKHVLLKE.js +0 -45
- package/dist/chunk-WKHVLLKE.js.map +0 -1
- package/dist/chunk-YSC5GEQJ.js.map +0 -1
- package/dist/repository-change-launch-internal-Dd-AONUs.d.ts +0 -67
- package/dist/turns/review-implementation.d.ts +0 -4
- package/dist/turns/review-implementation.d.ts.map +0 -1
- package/dist/turns/review-implementation.js +0 -8
- package/dist/turns/review-plan.d.ts +0 -4
- package/dist/turns/review-plan.d.ts.map +0 -1
- package/dist/turns/review-plan.js +0 -8
- package/src/turns/review-implementation.ts +0 -30
- package/src/turns/review-plan.ts +0 -24
- /package/dist/turns/{review-implementation.js.map → commit-message-evidence.js.map} +0 -0
- /package/dist/turns/{review-plan.js.map → git-inspection-profile.js.map} +0 -0
|
@@ -1,10 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
|
-
commitAndPushWorkBranch
|
|
3
|
-
|
|
2
|
+
commitAndPushWorkBranch,
|
|
3
|
+
repositoryHasChanges
|
|
4
|
+
} from "./chunk-Q24RPXOA.js";
|
|
5
|
+
import {
|
|
6
|
+
createRepositoryChangeProcess
|
|
7
|
+
} from "./chunk-OM2AMDTJ.js";
|
|
8
|
+
import "./chunk-DNG7D77K.js";
|
|
9
|
+
import "./chunk-ABQH2WZT.js";
|
|
10
|
+
import "./chunk-BI45R2FH.js";
|
|
11
|
+
import "./chunk-SKGB4CZS.js";
|
|
4
12
|
import {
|
|
5
13
|
conflictKey,
|
|
6
14
|
validateConflict
|
|
7
15
|
} from "./chunk-KFELB7ZC.js";
|
|
16
|
+
import {
|
|
17
|
+
codingPurposes
|
|
18
|
+
} from "./chunk-M2VTUPFO.js";
|
|
19
|
+
import "./chunk-SZ4WOGV2.js";
|
|
8
20
|
import "./chunk-PX6F3LHL.js";
|
|
9
21
|
|
|
10
22
|
// src/repository-change-publication.ts
|
|
@@ -224,14 +236,49 @@ function publishRebase(input) {
|
|
|
224
236
|
var rebasePrompt = `Repair only the recorded pull request merge conflict or behind-base condition. Deterministic preparation has fetched and verified the tracked head and current base, retained the original head and lease in .git/leitwerk-rebase.json, and started the rebase if the conflict or missing base commits are confirmed locally. Inspect that metadata and git status first. For behind-base evidence, incorporate the fetched base even when merging would be clean. A clean preparation result means no rewrite is needed. Resolve conflicts preserving the requested behavior, original authors, and existing Signed-off-by trailers. You may use git add and GIT_EDITOR=true git rebase --continue until finished. This explicitly overrides the prohibition on creating commits only for rebase continuation. Do not create unrelated commits, reset the branch, skip commits, abort the rebase, or push. Run focused repository checks after resolution. Delivery verifies the completed rebase and publishes with the recorded pre-repair lease. If blocked, retain the workspace and explain the failure for retry or abort. Record a concise repair result.`;
|
|
225
237
|
|
|
226
238
|
// src/pull-request-publication-internal.ts
|
|
239
|
+
function createPullRequestChangeProcess(provider, label, docker, config) {
|
|
240
|
+
const { watcher, publication: adapter, ...definition } = config;
|
|
241
|
+
const publication = createRepositoryChangePublication(adapter);
|
|
242
|
+
publication.fragment.watcher({
|
|
243
|
+
...watcher,
|
|
244
|
+
id: "use_leitwerk",
|
|
245
|
+
label: `${label} use-leitwerk issues`,
|
|
246
|
+
description: `Launch a remote repository change for ${label} issues carrying the trigger label`
|
|
247
|
+
});
|
|
248
|
+
const { process } = createRepositoryChangeProcess({
|
|
249
|
+
...definition,
|
|
250
|
+
publication,
|
|
251
|
+
processId: `${provider}_repo_change_process`,
|
|
252
|
+
displayName: `${label} Repo Change`,
|
|
253
|
+
repositoryCredentials: ({ params }) => [
|
|
254
|
+
{ projectKey: "repo", kind: "git_ssh", credentialRef: params.sshCredentialRef }
|
|
255
|
+
]
|
|
256
|
+
});
|
|
257
|
+
process.runtime = { ...process.runtime, docker };
|
|
258
|
+
return process;
|
|
259
|
+
}
|
|
260
|
+
function pullRequestDeliveryTools(provider) {
|
|
261
|
+
return [
|
|
262
|
+
"get_pull_request",
|
|
263
|
+
"add_pull_request_comment",
|
|
264
|
+
"resolve_git_identity",
|
|
265
|
+
"ensure_pull_request",
|
|
266
|
+
"add_issue_comment",
|
|
267
|
+
"add_pull_request_feedback_reaction",
|
|
268
|
+
"reply_to_pull_request_feedback",
|
|
269
|
+
"get_issue",
|
|
270
|
+
"ensure_label",
|
|
271
|
+
"update_issue"
|
|
272
|
+
].map((name) => `${provider}_${name}`);
|
|
273
|
+
}
|
|
227
274
|
var callFor = (ctx, provider) => (name, args) => ctx.callIntegrationTool(`${provider}_${name}`, { projectKey: "repo", ...args });
|
|
228
|
-
async function resolvePullRequestGitIdentity(ctx, provider, profile) {
|
|
229
|
-
const project = ctx.
|
|
230
|
-
const
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
))
|
|
275
|
+
async function resolvePullRequestGitIdentity(ctx, provider, profile, allowLookup = true) {
|
|
276
|
+
const project = ctx.repo.get("repo");
|
|
277
|
+
const metadata = ctx.projects.find((candidate) => candidate.key === project.key)?.metadata;
|
|
278
|
+
const identity = publicationObject(metadata?.["leitwerk.gitIdentity"]);
|
|
279
|
+
if (identity.provider === provider && identity.profile === profile && (!allowLookup || typeof identity.login === "string" && identity.login.trim()) && [identity.name, identity.email].every((value) => typeof value === "string" && value.trim()))
|
|
234
280
|
return identity;
|
|
281
|
+
if (!allowLookup) throw new Error(`Pinned ${provider} Git identity is unavailable`);
|
|
235
282
|
return callFor(ctx, provider)("resolve_git_identity", {});
|
|
236
283
|
}
|
|
237
284
|
function readPullRequestFeedback(current, event) {
|
|
@@ -245,34 +292,7 @@ function readPullRequestFeedback(current, event) {
|
|
|
245
292
|
feedbackIds: value.feedbackIds ?? []
|
|
246
293
|
};
|
|
247
294
|
}
|
|
248
|
-
function
|
|
249
|
-
return async (ctx, _current, pr) => {
|
|
250
|
-
const params = issueOrigin(ctx.params);
|
|
251
|
-
if (!params) return;
|
|
252
|
-
const call = callFor(ctx, provider);
|
|
253
|
-
const issue = await call("get_issue", {
|
|
254
|
-
issueNumber: params.issueNumber
|
|
255
|
-
});
|
|
256
|
-
let labels = issue.labels.filter((label) => label.name !== params.triggerLabel).map((label) => label[labelKey]);
|
|
257
|
-
if (pr.merged) {
|
|
258
|
-
const done = await call("ensure_label", {
|
|
259
|
-
name: params.doneLabel
|
|
260
|
-
});
|
|
261
|
-
labels = [.../* @__PURE__ */ new Set([...labels, done[labelKey]])];
|
|
262
|
-
}
|
|
263
|
-
await call("update_issue", {
|
|
264
|
-
issueNumber: params.issueNumber,
|
|
265
|
-
patch: { labels, ...pr.merged ? { state: "closed" } : {} },
|
|
266
|
-
writeKey: `${provider}:${ctx.process.id}:${pr.merged ? "complete-source-issue" : "remove-source-trigger"}`
|
|
267
|
-
});
|
|
268
|
-
await call("add_issue_comment", {
|
|
269
|
-
issueNumber: params.issueNumber,
|
|
270
|
-
body: pr.merged ? `Merged ${pr.html_url}${pr.merge_commit_sha ? ` at ${pr.merge_commit_sha}` : ""}.` : `Leitwerk stopped because ${pr.html_url} was closed without merge.`,
|
|
271
|
-
writeKey: `${provider}:${ctx.process.id}:${pr.merged ? "merged" : "closed"}-pr-comment`
|
|
272
|
-
});
|
|
273
|
-
};
|
|
274
|
-
}
|
|
275
|
-
function pullRequestPublicationSources(provider, label, external, profile, issueOrigin) {
|
|
295
|
+
function pullRequestPublicationDefaults(provider, label, external, profile, issueOrigin, labelKey, ci) {
|
|
276
296
|
const remote = (state) => readPublicationState(state, `${provider}RepoChange`);
|
|
277
297
|
function requirePr(state) {
|
|
278
298
|
const value = remote(state);
|
|
@@ -343,20 +363,70 @@ function pullRequestPublicationSources(provider, label, external, profile, issue
|
|
|
343
363
|
}),
|
|
344
364
|
read: () => ({ kind: "cancelled" })
|
|
345
365
|
};
|
|
346
|
-
|
|
366
|
+
async function finalizeIssue(ctx, pr) {
|
|
367
|
+
const params = issueOrigin(ctx.params);
|
|
368
|
+
if (!params) return;
|
|
369
|
+
const call2 = callFor(ctx, provider);
|
|
370
|
+
const issue = await call2("get_issue", {
|
|
371
|
+
issueNumber: params.issueNumber
|
|
372
|
+
});
|
|
373
|
+
let labels = issue.labels.filter((label2) => label2.name !== params.triggerLabel).map((label2) => label2[labelKey]);
|
|
374
|
+
if (pr?.merged) {
|
|
375
|
+
const done = await call2("ensure_label", {
|
|
376
|
+
name: params.doneLabel
|
|
377
|
+
});
|
|
378
|
+
labels = [.../* @__PURE__ */ new Set([...labels, done[labelKey]])];
|
|
379
|
+
}
|
|
380
|
+
await call2("update_issue", {
|
|
381
|
+
issueNumber: params.issueNumber,
|
|
382
|
+
patch: { labels, ...pr?.merged ? { state: "closed" } : {} },
|
|
383
|
+
writeKey: `${provider}:${ctx.process.id}:${pr?.merged ? "complete-source-issue" : pr ? "remove-source-trigger" : "no-changes-trigger"}`
|
|
384
|
+
});
|
|
385
|
+
await call2("add_issue_comment", {
|
|
386
|
+
issueNumber: params.issueNumber,
|
|
387
|
+
body: !pr ? "No repository changes were needed. No pull request was opened." : pr.merged ? `Merged ${pr.html_url}${pr.merge_commit_sha ? ` at ${pr.merge_commit_sha}` : ""}.` : `Leitwerk stopped because ${pr.html_url} was closed without merge.`,
|
|
388
|
+
writeKey: `${provider}:${ctx.process.id}:${pr ? `${pr.merged ? "merged" : "closed"}-pr-comment` : "no-changes-comment"}`
|
|
389
|
+
});
|
|
390
|
+
}
|
|
391
|
+
const call = (ctx) => callFor(ctx, provider);
|
|
392
|
+
const adapter = {
|
|
347
393
|
/** @internal */
|
|
348
|
-
|
|
394
|
+
namespace: `${provider}RepoChange`,
|
|
349
395
|
/** @internal */
|
|
350
|
-
|
|
396
|
+
label: `${label} PR`,
|
|
351
397
|
/** @internal */
|
|
352
|
-
|
|
398
|
+
ids: {
|
|
399
|
+
/** @internal */
|
|
400
|
+
deliver: "deliver_change",
|
|
401
|
+
/** @internal */
|
|
402
|
+
feedback: "revise_from_pull_request_feedback",
|
|
403
|
+
/** @internal */
|
|
404
|
+
ciRepair: ci.id,
|
|
405
|
+
/** @internal */
|
|
406
|
+
operator: "ci_operator_action"
|
|
407
|
+
},
|
|
353
408
|
/** @internal */
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
409
|
+
tools: {
|
|
410
|
+
/** @internal */
|
|
411
|
+
delivery: pullRequestDeliveryTools(provider),
|
|
412
|
+
/** @internal */
|
|
413
|
+
feedback: [
|
|
414
|
+
`${provider}_get_pull_request`,
|
|
415
|
+
`${provider}_list_pull_request_feedback`
|
|
416
|
+
],
|
|
417
|
+
/** @internal */
|
|
418
|
+
ci: ci.tools
|
|
419
|
+
},
|
|
420
|
+
/** @internal */
|
|
421
|
+
commitMessage: (kind) => kind === "feedback" ? `fix: address ${label} review feedback` : `fix: repair ${ci.label}`,
|
|
422
|
+
/** @internal */
|
|
423
|
+
prompt: (kind, current) => kind === "feedback" ? `Address the unseen ${label} pull-request feedback batch for PR #${current.prNumber}. Feedback identifiers: ${JSON.stringify(current.feedbackIds)}. Inspect the current checkout and use ${label} tools to read the full feedback. Do not rely on an earlier plan or conversation. Make only justified repository changes. Call changes_ready if files need publishing, no_changes after an explicit diagnosis that no repository change is needed, or cannot_repair when operator action is required.` : ci.prompt(current),
|
|
424
|
+
/** @internal */
|
|
425
|
+
identity: (ctx) => resolvePullRequestGitIdentity(ctx, provider, profile(ctx.params)),
|
|
426
|
+
/** @internal */
|
|
427
|
+
reconcileTerminal: (ctx, _current, pr) => finalizeIssue(ctx, pr),
|
|
428
|
+
/** @internal */
|
|
429
|
+
unchanged: (ctx) => finalizeIssue(ctx, null),
|
|
360
430
|
async ensureRequest(ctx) {
|
|
361
431
|
const project = ctx.repo.get("repo");
|
|
362
432
|
const issue = issueOrigin(ctx.params);
|
|
@@ -382,24 +452,24 @@ Leitwerk process: ${ctx.process.id}` : `Leitwerk process: ${ctx.process.id}`,
|
|
|
382
452
|
},
|
|
383
453
|
async reply(ctx, current) {
|
|
384
454
|
const invoke = call(ctx);
|
|
385
|
-
for (const
|
|
455
|
+
for (const feedback2 of current.feedbackIds)
|
|
386
456
|
await invoke("reply_to_pull_request_feedback", {
|
|
387
457
|
pullRequestNumber: current.prNumber,
|
|
388
|
-
feedbackKind:
|
|
389
|
-
feedbackId:
|
|
458
|
+
feedbackKind: feedback2.kind,
|
|
459
|
+
feedbackId: feedback2.id,
|
|
390
460
|
body: `Addressed in ${current.headSha?.slice(0, 8) ?? "the current revision"}.`,
|
|
391
|
-
writeKey: `${provider}:${ctx.process.id}:feedback-reply:${
|
|
461
|
+
writeKey: `${provider}:${ctx.process.id}:feedback-reply:${feedback2.kind}:${feedback2.id}:${current.headSha}`
|
|
392
462
|
});
|
|
393
463
|
},
|
|
394
464
|
async acknowledge(ctx, current) {
|
|
395
465
|
const invoke = call(ctx);
|
|
396
|
-
for (const
|
|
397
|
-
if (
|
|
466
|
+
for (const feedback2 of current.feedbackIds) {
|
|
467
|
+
if (feedback2.kind === "review") continue;
|
|
398
468
|
await invoke("add_pull_request_feedback_reaction", {
|
|
399
469
|
pullRequestNumber: current.prNumber,
|
|
400
|
-
feedbackKind:
|
|
401
|
-
feedbackId:
|
|
402
|
-
writeKey: `${provider}:${ctx.process.id}:feedback-eyes:${
|
|
470
|
+
feedbackKind: feedback2.kind,
|
|
471
|
+
feedbackId: feedback2.id,
|
|
472
|
+
writeKey: `${provider}:${ctx.process.id}:feedback-eyes:${feedback2.kind}:${feedback2.id}`
|
|
403
473
|
});
|
|
404
474
|
}
|
|
405
475
|
},
|
|
@@ -416,9 +486,41 @@ Leitwerk process: ${ctx.process.id}` : `Leitwerk process: ${ctx.process.id}`,
|
|
|
416
486
|
});
|
|
417
487
|
}
|
|
418
488
|
};
|
|
489
|
+
return {
|
|
490
|
+
/** @internal */
|
|
491
|
+
adapter,
|
|
492
|
+
/** @internal */
|
|
493
|
+
conflict(source) {
|
|
494
|
+
return {
|
|
495
|
+
id: `${provider}_merge_conflict`,
|
|
496
|
+
kind: "conflict",
|
|
497
|
+
label: "Rebase conflicting pull request",
|
|
498
|
+
source,
|
|
499
|
+
read: ({ event }) => ({
|
|
500
|
+
kind: "conflict",
|
|
501
|
+
conflict: publicationObject(event).conflict
|
|
502
|
+
})
|
|
503
|
+
};
|
|
504
|
+
},
|
|
505
|
+
/** @internal */
|
|
506
|
+
requirePr,
|
|
507
|
+
/** @internal */
|
|
508
|
+
feedback,
|
|
509
|
+
/** @internal */
|
|
510
|
+
terminal,
|
|
511
|
+
/** @internal */
|
|
512
|
+
cancelled
|
|
513
|
+
};
|
|
419
514
|
}
|
|
420
515
|
|
|
421
516
|
// src/repository-change-publication.ts
|
|
517
|
+
function requirePublicationParams(params) {
|
|
518
|
+
const value = asUnknownRecord(params);
|
|
519
|
+
for (const key of ["owner", "repo", "workBranch", "baseBranch"])
|
|
520
|
+
if (typeof value?.[key] !== "string" || !value[key])
|
|
521
|
+
throw new Error("Repository binding is not resolved");
|
|
522
|
+
return params;
|
|
523
|
+
}
|
|
422
524
|
var initialDeliveryState = {
|
|
423
525
|
stage: "not_started",
|
|
424
526
|
issueLinked: false,
|
|
@@ -438,6 +540,21 @@ var initialPublicationState = {
|
|
|
438
540
|
delivery: initialDeliveryState
|
|
439
541
|
};
|
|
440
542
|
var publicationObject = (value) => asUnknownRecord(value) ?? {};
|
|
543
|
+
function createPublicationSelection(namespace) {
|
|
544
|
+
return {
|
|
545
|
+
/** @internal */
|
|
546
|
+
activeKey: (state) => publicationObject(state.extensionState?.[`${namespace()}.coordination`]).activeKey,
|
|
547
|
+
/** @internal */
|
|
548
|
+
select: (state, key) => ({
|
|
549
|
+
...state,
|
|
550
|
+
extensionState: {
|
|
551
|
+
...state.extensionState,
|
|
552
|
+
[`${namespace()}.coordination`]: { activeKey: key }
|
|
553
|
+
}
|
|
554
|
+
})
|
|
555
|
+
};
|
|
556
|
+
}
|
|
557
|
+
var publicationFinished = (current) => !!(current.stopped || current.noChanges || current.delivery.terminalPullRequest);
|
|
441
558
|
function readPublicationState(state, namespace) {
|
|
442
559
|
const stored = publicationObject(publicationObject(state.extensionState)[namespace]);
|
|
443
560
|
return {
|
|
@@ -479,15 +596,16 @@ function applyPublicationEvidence(params, current, evidence, countFailure = true
|
|
|
479
596
|
ciRecoveryCycles: current.ciRecoveryCycles + (countFailure ? 1 : 0)
|
|
480
597
|
};
|
|
481
598
|
case "conflict": {
|
|
599
|
+
const repository = requirePublicationParams(params);
|
|
482
600
|
const conflict = validateConflict(
|
|
483
601
|
evidence.conflict,
|
|
484
602
|
{
|
|
485
|
-
owner:
|
|
486
|
-
repo:
|
|
603
|
+
owner: repository.owner,
|
|
604
|
+
repo: repository.repo,
|
|
487
605
|
prNumber: current.prNumber ?? 0,
|
|
488
606
|
headSha: current.headSha ?? "",
|
|
489
|
-
headBranch:
|
|
490
|
-
baseBranch:
|
|
607
|
+
headBranch: repository.workBranch,
|
|
608
|
+
baseBranch: repository.baseBranch
|
|
491
609
|
},
|
|
492
610
|
current.lastConflictKey
|
|
493
611
|
);
|
|
@@ -549,18 +667,35 @@ function deliveryProgress(value, label, activeStepId) {
|
|
|
549
667
|
function createRepositoryChangePublication(adapter) {
|
|
550
668
|
const ids = adapter.ids;
|
|
551
669
|
const publication = flow.fragment(`${adapter.namespace}-publication`);
|
|
552
|
-
const
|
|
553
|
-
const
|
|
670
|
+
const { activeKey, select } = createPublicationSelection(() => adapter.namespace);
|
|
671
|
+
const namespace = (state) => adapter.repositories ? `${adapter.namespace}:${activeKey(state)}` : adapter.namespace;
|
|
672
|
+
const remote = (state) => readPublicationState(state, namespace(state));
|
|
673
|
+
const repositoryContext = (ctx) => {
|
|
674
|
+
if (!adapter.repositories) return ctx;
|
|
675
|
+
const selected = adapter.repositories(ctx.params).find((repo) => repo.key === activeKey(ctx.state));
|
|
676
|
+
if (!selected) throw new Error("Missing coordinated repository selection");
|
|
677
|
+
return {
|
|
678
|
+
...ctx,
|
|
679
|
+
params: selected.params,
|
|
680
|
+
repo: { ...ctx.repo, get: (key) => ctx.repo.get(key === "repo" ? selected.key : key) },
|
|
681
|
+
callIntegrationTool: (name, args) => ctx.callIntegrationTool(name, { ...args, projectKey: selected.key })
|
|
682
|
+
};
|
|
683
|
+
};
|
|
684
|
+
const patchRemote = (state, patch) => patchPublicationState(state, namespace(state), patch);
|
|
554
685
|
async function commitWorkBranch(ctx, commitMessage) {
|
|
555
686
|
const repo = ctx.repo.get("repo");
|
|
687
|
+
const gitIdentity = await adapter.identity(ctx);
|
|
688
|
+
if (adapter.maintenance)
|
|
689
|
+
await ctx.callIntegrationTool(adapter.maintenance.ownershipTool, { projectKey: repo.key });
|
|
556
690
|
return commitAndPushWorkBranch({
|
|
557
691
|
repoPath: repo.fsPath,
|
|
692
|
+
projectKey: repo.key,
|
|
558
693
|
workBranch: repo.workBranch,
|
|
559
694
|
commitMessage,
|
|
560
|
-
gitIdentity
|
|
695
|
+
gitIdentity
|
|
561
696
|
});
|
|
562
697
|
}
|
|
563
|
-
const
|
|
698
|
+
const runRepository = async (ctx) => {
|
|
564
699
|
let current = remote(ctx.state);
|
|
565
700
|
const update = (patch) => {
|
|
566
701
|
current = { ...current, ...patch, delivery: { ...current.delivery, ...patch.delivery } };
|
|
@@ -569,6 +704,7 @@ function createRepositoryChangePublication(adapter) {
|
|
|
569
704
|
outcome: outcome2,
|
|
570
705
|
params: { nextState: patchRemote(ctx.state, current) }
|
|
571
706
|
});
|
|
707
|
+
if (current.stopped) return result("aborted");
|
|
572
708
|
if (current.pendingEvidence) {
|
|
573
709
|
const evidence = current.pendingEvidence;
|
|
574
710
|
const needsOperator = evidence.kind === "failure" && current.ciRecoveryCycles >= 3;
|
|
@@ -587,11 +723,20 @@ function createRepositoryChangePublication(adapter) {
|
|
|
587
723
|
ctx.reportProgress(deliveryProgress(current, adapter.label));
|
|
588
724
|
return result(pr.merged ? "completed" : "aborted");
|
|
589
725
|
}
|
|
726
|
+
if (!current.headSha && (adapter.repositories || adapter.unchanged) && !repositoryHasChanges(
|
|
727
|
+
ctx.repo.get("repo").fsPath,
|
|
728
|
+
ctx.repo.get("repo").baseBranch,
|
|
729
|
+
ctx.repo.get("repo").key
|
|
730
|
+
)) {
|
|
731
|
+
update({ noChanges: true });
|
|
732
|
+
await adapter.unchanged?.(ctx);
|
|
733
|
+
return result("completed");
|
|
734
|
+
}
|
|
590
735
|
if (!current.headSha) {
|
|
591
736
|
ctx.reportProgress(deliveryProgress(current, adapter.label, "publish_branch"));
|
|
592
737
|
const published = await commitWorkBranch(
|
|
593
738
|
ctx,
|
|
594
|
-
ctx.state.finalization.generatedCommitMessage ?? ""
|
|
739
|
+
ctx.state.finalization.commitMessages?.[ctx.repo.get("repo").key] ?? ctx.state.finalization.generatedCommitMessage ?? ""
|
|
595
740
|
);
|
|
596
741
|
update({ headSha: published.headSha, pipeline: null });
|
|
597
742
|
}
|
|
@@ -609,6 +754,10 @@ function createRepositoryChangePublication(adapter) {
|
|
|
609
754
|
const adjustment = current.delivery.adjustment;
|
|
610
755
|
if (adjustment.publishRequired || adjustment.origin === "rebase") {
|
|
611
756
|
ctx.reportProgress(deliveryProgress(current, adapter.label, "publish_adjustment"));
|
|
757
|
+
if (adapter.maintenance)
|
|
758
|
+
await ctx.callIntegrationTool(adapter.maintenance.ownershipTool, {
|
|
759
|
+
projectKey: ctx.repo.get("repo").key
|
|
760
|
+
});
|
|
612
761
|
const published = adjustment.origin === "rebase" ? publishRebase(rebaseInput(ctx)) : await commitWorkBranch(ctx, adapter.commitMessage(adjustment.origin));
|
|
613
762
|
if (adjustment.origin === "rebase") {
|
|
614
763
|
const head = await adapter.head(ctx, current);
|
|
@@ -618,16 +767,25 @@ function createRepositoryChangePublication(adapter) {
|
|
|
618
767
|
update({ headSha: published.headSha, pipeline: null });
|
|
619
768
|
}
|
|
620
769
|
if (adjustment.origin === "rebase") await adapter.afterRebase(ctx, current);
|
|
621
|
-
if (adjustment.origin === "feedback") {
|
|
770
|
+
if (adjustment.origin === "feedback" && !adapter.maintenance) {
|
|
622
771
|
ctx.reportProgress(deliveryProgress(current, adapter.label, "reply_feedback"));
|
|
623
772
|
await adapter.reply(ctx, current);
|
|
624
773
|
}
|
|
625
774
|
update({
|
|
626
|
-
...adjustment.origin === "feedback" ? { feedbackIds: [] } : {},
|
|
627
|
-
|
|
775
|
+
...adjustment.origin === "feedback" && !adapter.maintenance ? { feedbackIds: [] } : {},
|
|
776
|
+
...adjustment.origin === "rebase" ? { conflict: null } : {},
|
|
777
|
+
delivery: {
|
|
778
|
+
adjustment: null,
|
|
779
|
+
...adjustment.origin === "feedback" && adapter.maintenance ? {
|
|
780
|
+
feedbackResult: {
|
|
781
|
+
published: adjustment.publishRequired,
|
|
782
|
+
summary: "Review adjustment published"
|
|
783
|
+
}
|
|
784
|
+
} : {}
|
|
785
|
+
}
|
|
628
786
|
});
|
|
629
787
|
}
|
|
630
|
-
if (current.feedbackIds.length > 0) {
|
|
788
|
+
if (current.feedbackIds.length > 0 && !adapter.maintenance) {
|
|
631
789
|
ctx.reportProgress(deliveryProgress(current, adapter.label, "reply_feedback"));
|
|
632
790
|
await adapter.acknowledge(ctx, current);
|
|
633
791
|
return result("feedback_ready");
|
|
@@ -635,16 +793,77 @@ function createRepositoryChangePublication(adapter) {
|
|
|
635
793
|
update({ delivery: { stage: "awaiting" } });
|
|
636
794
|
ctx.reportProgress(deliveryProgress(current, adapter.label, "await_evidence"));
|
|
637
795
|
return result("awaiting");
|
|
796
|
+
};
|
|
797
|
+
const delivery = flow.automatic(ids.deliver).description("Deliver").waitFor(({ state, params }) => {
|
|
798
|
+
const states = adapter.repositories ? adapter.repositories(params).map(({ key }) => select(state, key)) : [state];
|
|
799
|
+
return states.some((state2) => {
|
|
800
|
+
const current = remote(state2);
|
|
801
|
+
if (adapter.maintenance)
|
|
802
|
+
return !current.stopped && !current.noChanges && !current.delivery.terminalPullRequest && (current.delivery.stage !== "awaiting" || !!(current.delivery.adjustment && (current.delivery.adjustment.publishRequired || current.delivery.adjustment.origin === "rebase")));
|
|
803
|
+
return current.delivery.stage !== "awaiting" || !!current.pendingEvidence || !!current.delivery.adjustment || current.feedbackIds.length > 0 || !!current.delivery.terminalPullRequest;
|
|
804
|
+
});
|
|
805
|
+
}).integrationTools(...adapter.tools.delivery).run(async (ctx) => {
|
|
806
|
+
if (!adapter.repositories) return runRepository(ctx);
|
|
807
|
+
let state = ctx.state;
|
|
808
|
+
const repositories = adapter.repositories(ctx.params);
|
|
809
|
+
if (!repositories.length) throw new Error("No repositories are bound");
|
|
810
|
+
const results = () => repositories.map(({ key }) => ({ key, current: remote(select(state, key)) }));
|
|
811
|
+
const finished = () => results().every(({ current }) => publicationFinished(current));
|
|
812
|
+
const reconcileTerminals = async () => {
|
|
813
|
+
for (const { key } of repositories) {
|
|
814
|
+
state = select(state, key);
|
|
815
|
+
const current = remote(state);
|
|
816
|
+
if (publicationFinished(current)) continue;
|
|
817
|
+
const terminal = await adapter.observeTerminal?.(
|
|
818
|
+
repositoryContext({ ...ctx, state }),
|
|
819
|
+
current
|
|
820
|
+
);
|
|
821
|
+
if (terminal)
|
|
822
|
+
state = patchRemote(state, {
|
|
823
|
+
prNumber: terminal.number,
|
|
824
|
+
prUrl: terminal.html_url,
|
|
825
|
+
delivery: { terminalPullRequest: terminal }
|
|
826
|
+
});
|
|
827
|
+
}
|
|
828
|
+
};
|
|
829
|
+
await reconcileTerminals();
|
|
830
|
+
let cancelled = false;
|
|
831
|
+
for (const { key } of repositories) {
|
|
832
|
+
state = select(state, key);
|
|
833
|
+
if (publicationFinished(remote(state))) continue;
|
|
834
|
+
if (await adapter.sourceCancelled?.({ ...ctx, state })) {
|
|
835
|
+
await reconcileTerminals();
|
|
836
|
+
cancelled = !finished();
|
|
837
|
+
break;
|
|
838
|
+
}
|
|
839
|
+
const result = await runRepository(repositoryContext({ ...ctx, state }));
|
|
840
|
+
state = result.params.nextState;
|
|
841
|
+
if (!["awaiting", "completed", "aborted"].includes(result.outcome))
|
|
842
|
+
return { ...result, params: { nextState: state } };
|
|
843
|
+
}
|
|
844
|
+
if (cancelled || finished()) {
|
|
845
|
+
await adapter.reconcileAll?.({ ...ctx, state }, results(), cancelled);
|
|
846
|
+
const requests = results().flatMap(
|
|
847
|
+
({ current }) => current.delivery.terminalPullRequest ? [current.delivery.terminalPullRequest] : []
|
|
848
|
+
);
|
|
849
|
+
return {
|
|
850
|
+
outcome: cancelled || requests.length > 0 && requests.every((request) => !request.merged) ? "aborted" : "completed",
|
|
851
|
+
params: { nextState: state }
|
|
852
|
+
};
|
|
853
|
+
}
|
|
854
|
+
return { outcome: "awaiting", params: { nextState: state } };
|
|
638
855
|
});
|
|
639
856
|
const outcome = (o, description) => o.description(description).object("nextState").state(({ event }) => event.params.nextState);
|
|
640
|
-
delivery.outcome("awaiting", (o) => outcome(o, "Delivery is waiting for external evidence").wait()).outcome(
|
|
641
|
-
"feedback_ready",
|
|
642
|
-
(o) => outcome(o, "Pull request feedback is acknowledged and ready for revision").to(ids.feedback)
|
|
643
|
-
).outcome("completed", (o) => outcome(o, "Merged pull request was reconciled").complete()).outcome(
|
|
857
|
+
delivery.outcome("awaiting", (o) => outcome(o, "Delivery is waiting for external evidence").wait()).outcome("completed", (o) => outcome(o, "Merged pull request was reconciled").complete()).outcome(
|
|
644
858
|
"aborted",
|
|
645
859
|
(o) => outcome(o, "Closed pull request was reconciled").lifecycleStatus("aborted")
|
|
646
860
|
);
|
|
647
|
-
|
|
861
|
+
if (!adapter.maintenance)
|
|
862
|
+
delivery.outcome(
|
|
863
|
+
"feedback_ready",
|
|
864
|
+
(o) => outcome(o, "Pull request feedback is acknowledged and ready for revision").to(ids.feedback)
|
|
865
|
+
);
|
|
866
|
+
for (const [name, target] of adapter.maintenance ? [] : [
|
|
648
867
|
["ci_ready", ids.ciRepair],
|
|
649
868
|
["conflict_ready", ids.feedback],
|
|
650
869
|
["operator_action", ids.operator]
|
|
@@ -652,9 +871,12 @@ function createRepositoryChangePublication(adapter) {
|
|
|
652
871
|
delivery.outcome(name, (o) => outcome(o, "Route observed delivery evidence").to(target));
|
|
653
872
|
}
|
|
654
873
|
for (const source of adapter.sources) {
|
|
874
|
+
if (adapter.maintenance && source.kind === "observation") continue;
|
|
655
875
|
const attach = (id, operator) => delivery.externalAction(id, source.source, (external) => {
|
|
656
876
|
external.label(source.label).when(
|
|
657
|
-
({ params, state }) => (!source.enabled || source.enabled(params)) && (source.kind
|
|
877
|
+
({ params, state }) => (!source.enabled || source.enabled(params, state)) && (source.kind === "cancelled" || (adapter.repositories ? adapter.repositories(params).map(({ key }) => remote(select(state, key))) : [remote(state)]).every(
|
|
878
|
+
(current) => current.noChanges || current.delivery.terminalPullRequest || !!(current.headSha && current.prNumber && current.prUrl)
|
|
879
|
+
)) && (source.kind !== "failure" || remote(state).ciRecoveryCycles >= 3 === operator)
|
|
658
880
|
);
|
|
659
881
|
if (source.kind === "cancelled") return external.lifecycleStatus("aborted");
|
|
660
882
|
external.to(
|
|
@@ -662,10 +884,11 @@ function createRepositoryChangePublication(adapter) {
|
|
|
662
884
|
);
|
|
663
885
|
return external.effect((input) => {
|
|
664
886
|
const evidence = source.read(input);
|
|
665
|
-
const
|
|
887
|
+
const state = adapter.repositories && evidence.projectKey ? select(input.state, evidence.projectKey) : input.state;
|
|
888
|
+
const current = remote(state);
|
|
666
889
|
return {
|
|
667
890
|
state: patchRemote(
|
|
668
|
-
|
|
891
|
+
state,
|
|
669
892
|
source.kind === "observation" ? { pendingEvidence: evidence } : applyPublicationEvidence(input.params, current, evidence, !operator)
|
|
670
893
|
)
|
|
671
894
|
};
|
|
@@ -674,12 +897,30 @@ function createRepositoryChangePublication(adapter) {
|
|
|
674
897
|
attach(source.id, false);
|
|
675
898
|
if (source.kind === "failure") attach(source.operatorId ?? `${source.id}_operator`, true);
|
|
676
899
|
}
|
|
900
|
+
if (adapter.maintenance) {
|
|
901
|
+
for (const [id, target] of [
|
|
902
|
+
["feedback", ids.feedback],
|
|
903
|
+
["conflict", ids.feedback],
|
|
904
|
+
["ci", ids.ciRepair],
|
|
905
|
+
["operator", ids.operator]
|
|
906
|
+
])
|
|
907
|
+
delivery.externalAction(
|
|
908
|
+
`maintenance_${id}`,
|
|
909
|
+
adapter.maintenance.source,
|
|
910
|
+
(action) => action.label("Maintain MR").to(target).effect(({ event }) => ({ state: event.state }))
|
|
911
|
+
);
|
|
912
|
+
}
|
|
677
913
|
publication.turn(delivery);
|
|
678
914
|
function rebaseInput(ctx) {
|
|
679
|
-
const project = ctx.repo.get("repo");
|
|
915
|
+
const project = ctx.repo.get(activeKey(ctx.state) ?? "repo");
|
|
680
916
|
const conflict = remote(ctx.state).conflict;
|
|
681
917
|
if (!conflict) throw new Error("Missing conflict evidence");
|
|
682
|
-
return {
|
|
918
|
+
return {
|
|
919
|
+
projectKey: activeKey(ctx.state) ?? "repo",
|
|
920
|
+
path: project.fsPath,
|
|
921
|
+
workBranch: project.workBranch,
|
|
922
|
+
conflict
|
|
923
|
+
};
|
|
683
924
|
}
|
|
684
925
|
function repairReason(state, kind) {
|
|
685
926
|
return kind === "feedback" && remote(state).repairReason === "rebase" ? "rebase" : kind;
|
|
@@ -689,11 +930,14 @@ function createRepositoryChangePublication(adapter) {
|
|
|
689
930
|
const current = remote(ctx.state);
|
|
690
931
|
if (repairReason(ctx.state, kind) === "rebase")
|
|
691
932
|
return `${rebasePrompt} Evidence: ${JSON.stringify(current.conflict)}. Call changes_ready or no_changes when verified complete, cannot_repair when blocked.`;
|
|
692
|
-
return adapter.prompt(kind, current)
|
|
933
|
+
return `${adapter.repositories ? `Repository: ${activeKey(ctx.state)}. Apply changes only to this checkout. ` : ""}${adapter.prompt(kind, current)}`;
|
|
693
934
|
};
|
|
694
935
|
}
|
|
695
936
|
function revisionTurn(id, kind) {
|
|
696
|
-
const turn = flow.llm(id).description(kind === "feedback" ? "Address Feedback" : "Fix CI").
|
|
937
|
+
const turn = flow.llm(id).description(kind === "feedback" ? "Address Feedback" : "Fix CI").waitFor(({ state }) => {
|
|
938
|
+
const current = remote(state);
|
|
939
|
+
return !current.stopped && !current.delivery.terminalPullRequest && (kind === "feedback" ? current.feedbackIds.length > 0 || !!current.conflict : current.repairReason === "ci" && current.pipeline !== null);
|
|
940
|
+
}).executionPurpose(codingPurposes.implementation).tools("read", "bash", "edit", "write").resolveIntegrationTools(
|
|
697
941
|
(_params, state) => repairReason(state, kind) === "rebase" ? [] : adapter.tools[kind]
|
|
698
942
|
).prepare(
|
|
699
943
|
(ctx) => repairReason(ctx.state, kind) === "rebase" ? startRebase(rebaseInput(ctx)) : {}
|
|
@@ -705,25 +949,53 @@ function createRepositoryChangePublication(adapter) {
|
|
|
705
949
|
turn.outcomeTool(
|
|
706
950
|
name,
|
|
707
951
|
(tool) => tool.resultSummary().description(description).to(ids.deliver).state(
|
|
708
|
-
({ ctx }) => patchRemote(ctx.state, {
|
|
709
|
-
|
|
952
|
+
({ ctx, event }) => patchRemote(ctx.state, {
|
|
953
|
+
repairPending: false,
|
|
954
|
+
delivery: {
|
|
955
|
+
adjustment: { origin: repairReason(ctx.state, kind), publishRequired },
|
|
956
|
+
...!publishRequired && adapter.maintenance && repairReason(ctx.state, kind) !== "rebase" ? {
|
|
957
|
+
feedbackResult: {
|
|
958
|
+
published: false,
|
|
959
|
+
summary: String(
|
|
960
|
+
event.params.resultSummary ?? "No repository change was required"
|
|
961
|
+
)
|
|
962
|
+
}
|
|
963
|
+
} : {}
|
|
964
|
+
}
|
|
710
965
|
})
|
|
711
966
|
)
|
|
712
967
|
);
|
|
713
968
|
}
|
|
714
|
-
return turn.outcomeTool(
|
|
715
|
-
"
|
|
716
|
-
(
|
|
717
|
-
);
|
|
969
|
+
return turn.outcomeTool("cannot_repair", (tool) => {
|
|
970
|
+
const outcome2 = tool.description("The adjustment requires operator action").to(ids.operator);
|
|
971
|
+
return adapter.maintenance ? outcome2.state(({ ctx }) => patchRemote(ctx.state, { repairPending: false })) : outcome2;
|
|
972
|
+
});
|
|
718
973
|
}
|
|
719
974
|
publication.turn(revisionTurn(ids.feedback, "feedback"));
|
|
720
975
|
publication.turn(revisionTurn(ids.ciRepair, "ci"));
|
|
976
|
+
const maintenanceSource = adapter.maintenance?.source;
|
|
721
977
|
publication.turn({
|
|
722
978
|
id: ids.operator,
|
|
723
979
|
definition: {
|
|
724
980
|
kind: "human",
|
|
725
981
|
description: "Repository repair needs operator action",
|
|
726
982
|
operatorAttention: "required",
|
|
983
|
+
...maintenanceSource ? {
|
|
984
|
+
externalActions: Object.fromEntries(
|
|
985
|
+
["feedback", "conflict"].map((id) => [
|
|
986
|
+
`maintenance_${id}`,
|
|
987
|
+
{
|
|
988
|
+
id: `maintenance_${id}`,
|
|
989
|
+
source: maintenanceSource,
|
|
990
|
+
to: ids.feedback,
|
|
991
|
+
label: "Maintain MR",
|
|
992
|
+
effect: ({ event }) => ({
|
|
993
|
+
state: event.state
|
|
994
|
+
})
|
|
995
|
+
}
|
|
996
|
+
])
|
|
997
|
+
)
|
|
998
|
+
} : {},
|
|
727
999
|
actions: {
|
|
728
1000
|
retry_repair: {
|
|
729
1001
|
label: "Retry repair",
|
|
@@ -737,6 +1009,7 @@ function createRepositoryChangePublication(adapter) {
|
|
|
737
1009
|
to: ids.deliver,
|
|
738
1010
|
effect: ({ ctx }) => ({
|
|
739
1011
|
state: patchRemote(ctx.state, {
|
|
1012
|
+
repairPending: false,
|
|
740
1013
|
feedbackIds: [],
|
|
741
1014
|
delivery: { adjustment: null }
|
|
742
1015
|
})
|
|
@@ -757,14 +1030,15 @@ function createRepositoryChangePublication(adapter) {
|
|
|
757
1030
|
}
|
|
758
1031
|
export {
|
|
759
1032
|
applyPublicationEvidence,
|
|
1033
|
+
createPublicationSelection,
|
|
1034
|
+
createPullRequestChangeProcess,
|
|
760
1035
|
createRepositoryChangePublication,
|
|
761
1036
|
patchPublicationState,
|
|
1037
|
+
publicationFinished,
|
|
762
1038
|
publicationObject,
|
|
763
|
-
|
|
764
|
-
pullRequestPublicationSources,
|
|
1039
|
+
pullRequestPublicationDefaults,
|
|
765
1040
|
readPublicationState,
|
|
766
|
-
|
|
767
|
-
reconcilePullRequestSourceIssue,
|
|
1041
|
+
requirePublicationParams,
|
|
768
1042
|
resolvePullRequestGitIdentity
|
|
769
1043
|
};
|
|
770
1044
|
//# sourceMappingURL=repository-change-publication.js.map
|