@plexus-ms/lib 0.127.0 → 0.129.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/dist/bookkeeping.d.ts +0 -4
- package/dist/bookkeeping.d.ts.map +1 -1
- package/dist/bookkeeping.js +0 -4
- package/dist/bookkeeping.js.map +1 -1
- package/dist/compose.d.ts +14 -0
- package/dist/compose.d.ts.map +1 -1
- package/dist/compose.js +14 -0
- package/dist/compose.js.map +1 -1
- package/dist/conflicts.d.ts +12 -0
- package/dist/conflicts.d.ts.map +1 -0
- package/dist/conflicts.js +48 -0
- package/dist/conflicts.js.map +1 -0
- package/dist/consumers.d.ts +20 -0
- package/dist/consumers.d.ts.map +1 -1
- package/dist/consumers.js +34 -2
- package/dist/consumers.js.map +1 -1
- package/dist/copier.d.ts +2 -0
- package/dist/copier.d.ts.map +1 -1
- package/dist/copier.js +10 -2
- package/dist/copier.js.map +1 -1
- package/dist/deploy.d.ts +38 -0
- package/dist/deploy.d.ts.map +1 -1
- package/dist/deploy.js +194 -15
- package/dist/deploy.js.map +1 -1
- package/dist/deployTargets.d.ts +22 -5
- package/dist/deployTargets.d.ts.map +1 -1
- package/dist/deployTargets.js +53 -13
- package/dist/deployTargets.js.map +1 -1
- package/dist/doctor.d.ts +4 -2
- package/dist/doctor.d.ts.map +1 -1
- package/dist/doctor.js +19 -1
- package/dist/doctor.js.map +1 -1
- package/dist/index.d.ts +11 -9
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -8
- package/dist/index.js.map +1 -1
- package/dist/io.d.ts +6 -0
- package/dist/io.d.ts.map +1 -1
- package/dist/io.js +19 -0
- package/dist/io.js.map +1 -1
- package/dist/marker.d.ts.map +1 -1
- package/dist/marker.js +4 -2
- package/dist/marker.js.map +1 -1
- package/dist/overview.d.ts +13 -0
- package/dist/overview.d.ts.map +1 -1
- package/dist/overview.js +35 -2
- package/dist/overview.js.map +1 -1
- package/dist/pull.d.ts +153 -0
- package/dist/pull.d.ts.map +1 -0
- package/dist/pull.js +431 -0
- package/dist/pull.js.map +1 -0
- package/dist/recursive.d.ts +8 -0
- package/dist/recursive.d.ts.map +1 -0
- package/dist/recursive.js +60 -0
- package/dist/recursive.js.map +1 -0
- package/dist/standard-index.json +8 -1
- package/dist/summary.d.ts +35 -1
- package/dist/summary.d.ts.map +1 -1
- package/dist/summary.js +95 -8
- package/dist/summary.js.map +1 -1
- package/dist/take.d.ts +54 -43
- package/dist/take.d.ts.map +1 -1
- package/dist/take.js +152 -181
- package/dist/take.js.map +1 -1
- package/dist/update.d.ts +59 -2
- package/dist/update.d.ts.map +1 -1
- package/dist/update.js +146 -58
- package/dist/update.js.map +1 -1
- package/package.json +1 -1
- package/dist/propagate.d.ts +0 -16
- package/dist/propagate.d.ts.map +0 -1
- package/dist/propagate.js +0 -51
- package/dist/propagate.js.map +0 -1
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
// update --recursive: `update` in every repo generated from the templates
|
|
2
|
+
// under a directory, at any depth (§ 3 PLX-Updates). The operator's
|
|
3
|
+
// convenience over the verb, for whoever has many repos checked out side by
|
|
4
|
+
// side, the maintainers or a tenant's own operator: it needs no checkout of
|
|
5
|
+
// the upstream, reads the published versions like `update` does, and decides
|
|
6
|
+
// each repo by the same rule: a patch at once, a minor at the repo's next
|
|
7
|
+
// scheduled pull, a major only when asked. A repo that takes nothing rests;
|
|
8
|
+
// `now` or a named version asks for every repo at once.
|
|
9
|
+
//
|
|
10
|
+
// What every repo would read alike is read once: the directory is walked
|
|
11
|
+
// once, the login checked once, and the versions listed once, then handed to
|
|
12
|
+
// `update` (update.ts) with each repo as the walk found it. Each repo is
|
|
13
|
+
// updated in a worktree of the branch the version lands on, so the checkouts
|
|
14
|
+
// stay as they are. Nothing aborts the run: a repo that fails is recorded and
|
|
15
|
+
// the rest continues; the outcomes, one per repo, say what rests, what is
|
|
16
|
+
// clean, conflicted or failed, and the pull requests.
|
|
17
|
+
//
|
|
18
|
+
// plx update --recursive ~/dev # every repo, the version its schedule takes
|
|
19
|
+
// plx update -r ~/dev --now # every repo, the newest version whatever its step
|
|
20
|
+
// plx -n update -r ~/dev --now # preview in worktrees, push nothing
|
|
21
|
+
// plx -y update -r ~/dev --to 0.66.0
|
|
22
|
+
import { findConsumers } from "./consumers.js";
|
|
23
|
+
import { detailOf } from "./io.js";
|
|
24
|
+
import { overview } from "./overview.js";
|
|
25
|
+
import { TEMPLATES, templateSource } from "./templates.js";
|
|
26
|
+
import { releasesOf, update } from "./update.js";
|
|
27
|
+
import { isPlexusVersion, preflightForge, UsageError } from "./version.js";
|
|
28
|
+
export async function updateRecursive(ctx, options) {
|
|
29
|
+
const { dir, ...rest } = options;
|
|
30
|
+
if (options.to !== undefined && !isPlexusVersion(options.to))
|
|
31
|
+
throw new UsageError(`'${options.to}' is not plain semver (X.Y.Z, no v)`);
|
|
32
|
+
const consumers = await findConsumers(ctx, await overview(ctx, dir), TEMPLATES);
|
|
33
|
+
if (consumers.length === 0)
|
|
34
|
+
ctx.say(`• no repo generated from ${TEMPLATES.map(templateSource).join(', ')} found under ${dir}`);
|
|
35
|
+
let releases = [];
|
|
36
|
+
if (consumers.some((c) => !c.skipped)) {
|
|
37
|
+
await preflightForge(ctx);
|
|
38
|
+
if (options.to === undefined)
|
|
39
|
+
releases = await releasesOf(ctx);
|
|
40
|
+
}
|
|
41
|
+
const version = options.to ?? '';
|
|
42
|
+
const outcomes = [];
|
|
43
|
+
for (const consumer of consumers) {
|
|
44
|
+
if (consumer.skipped) {
|
|
45
|
+
ctx.say(`⚠ ${consumer.rel}: ${consumer.skipped} — skipped (fix it, then re-run plx update --recursive)`);
|
|
46
|
+
outcomes.push({ repo: consumer.rel, version, kind: 'skipped', reason: consumer.skipped });
|
|
47
|
+
continue;
|
|
48
|
+
}
|
|
49
|
+
try {
|
|
50
|
+
outcomes.push(await update(ctx, { repo: consumer.path, ...rest }, { consumer, releases }));
|
|
51
|
+
}
|
|
52
|
+
catch (error) {
|
|
53
|
+
const why = detailOf(error);
|
|
54
|
+
ctx.say(` ✗ FAILED — ${consumer.rel}${why ? `: ${why}` : ''}`);
|
|
55
|
+
outcomes.push({ repo: consumer.rel, version, kind: 'failed', detail: why });
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
return outcomes;
|
|
59
|
+
}
|
|
60
|
+
//# sourceMappingURL=recursive.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recursive.js","sourceRoot":"","sources":["../src/recursive.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,oEAAoE;AACpE,4EAA4E;AAC5E,4EAA4E;AAC5E,6EAA6E;AAC7E,0EAA0E;AAC1E,4EAA4E;AAC5E,wDAAwD;AACxD,EAAE;AACF,yEAAyE;AACzE,6EAA6E;AAC7E,yEAAyE;AACzE,6EAA6E;AAC7E,8EAA8E;AAC9E,0EAA0E;AAC1E,sDAAsD;AACtD,EAAE;AACF,4FAA4F;AAC5F,kGAAkG;AAClG,oFAAoF;AACpF,uCAAuC;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE/C,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEnC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAgB,UAAU,EAAsB,MAAM,EAAE,MAAM,aAAa,CAAC;AACnF,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAO3E,MAAM,CAAC,KAAK,UAAU,eAAe,CAAC,GAAY,EAAE,OAAyB;IAC3E,MAAM,EAAE,GAAG,EAAE,GAAG,IAAI,EAAE,GAAG,OAAO,CAAC;IACjC,IAAI,OAAO,CAAC,EAAE,KAAK,SAAS,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,EAAE,CAAC;QAC1D,MAAM,IAAI,U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,CAAC,IAAI,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC;QAC7F,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,GAAG,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;YAC5B,GAAG,CAAC,GAAG,CAAC,gBAAgB,QAAQ,CAAC,GAAG,GAAG,GAAG,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;YAChE,QAAQ,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,QAAQ,CAAC,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC;QAC9E,CAAC;IACH,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC"}
|
package/dist/standard-index.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.
|
|
2
|
+
"version": "0.129.0",
|
|
3
3
|
"citable": [
|
|
4
4
|
"§ 1 PLX",
|
|
5
5
|
"§ 1.1 PLX",
|
|
@@ -45,6 +45,7 @@
|
|
|
45
45
|
"§ 6.7 PLX",
|
|
46
46
|
"§ 6.8 PLX",
|
|
47
47
|
"§ 6.9 PLX",
|
|
48
|
+
"§ 6.10 PLX",
|
|
48
49
|
"§ 7 PLX",
|
|
49
50
|
"§ 7.1 PLX",
|
|
50
51
|
"§ 7.2 PLX",
|
|
@@ -210,6 +211,12 @@
|
|
|
210
211
|
"PLX-Platform/AppRecord",
|
|
211
212
|
"PLX-Platform/UniqueAppName",
|
|
212
213
|
"PLX-Platform/RecordValues",
|
|
214
|
+
"§ 1 PLX-Releases",
|
|
215
|
+
"§ 2 PLX-Releases",
|
|
216
|
+
"§ 3 PLX-Releases",
|
|
217
|
+
"§ 4 PLX-Releases",
|
|
218
|
+
"§ 5 PLX-Releases",
|
|
219
|
+
"§ 6 PLX-Releases",
|
|
213
220
|
"§ 1 PLX-Secrets",
|
|
214
221
|
"§ 2 PLX-Secrets",
|
|
215
222
|
"§ 3 PLX-Secrets",
|
package/dist/summary.d.ts
CHANGED
|
@@ -1,4 +1,38 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Outcome } from './update.ts';
|
|
2
|
+
export interface Summary {
|
|
3
|
+
version: string;
|
|
4
|
+
/** True for a dry run: nothing in the workspace changed. */
|
|
5
|
+
preview: boolean;
|
|
6
|
+
/** Sites, relative to the workspace. */
|
|
7
|
+
clean: string[];
|
|
8
|
+
/** Sites left with conflicts, and files that hold conflict markers outside them: in a pull request opened, or on a version branch found on origin. */
|
|
9
|
+
conflicted: string[];
|
|
10
|
+
/** Sites whose update exited nonzero or, on a version branch found on origin, whose answers do not record the version; consumers that could not be cloned or pushed, lockfiles that failed to refresh, and review requests the forge refused. */
|
|
11
|
+
failed: string[];
|
|
12
|
+
/** Consumers left untouched, with the reason. */
|
|
13
|
+
skipped: {
|
|
14
|
+
path: string;
|
|
15
|
+
reason: string;
|
|
16
|
+
}[];
|
|
17
|
+
/** Repos that need no version yet and rest on the one they have (need.ts), with what would end the rest. */
|
|
18
|
+
resting: {
|
|
19
|
+
path: string;
|
|
20
|
+
reason: string;
|
|
21
|
+
}[];
|
|
22
|
+
/** The pull requests opened or found, one per consumer that changed. */
|
|
23
|
+
pulls: string[];
|
|
24
|
+
/** Those of `pulls` that are no draft and need no hand: ready to merge once their checks pass. */
|
|
25
|
+
mergeable: string[];
|
|
26
|
+
/** The version branches on origin with no pull request that a dry run would open one of. */
|
|
27
|
+
opening: string[];
|
|
28
|
+
}
|
|
29
|
+
/** True when nothing in the summary needs a human but the pull requests. */
|
|
30
|
+
export declare const isClean: (s: Summary) => boolean;
|
|
31
|
+
/**
|
|
32
|
+
* The summary of what the repos' runs came to, in their order. Its version is
|
|
33
|
+
* the one given, else the first a run names.
|
|
34
|
+
*/
|
|
35
|
+
export declare function summarize(outcomes: readonly Outcome[], preview: boolean, version?: string): Summary;
|
|
2
36
|
/**
|
|
3
37
|
* One line to paste that merges the given pull requests, each with a merge
|
|
4
38
|
* commit and its branch deleted: `gh pr merge -md -R <org>/<repo> <number>`,
|
package/dist/summary.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"summary.d.ts","sourceRoot":"","sources":["../src/summary.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"summary.d.ts","sourceRoot":"","sources":["../src/summary.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE3C,MAAM,WAAW,OAAO;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,4DAA4D;IAC5D,OAAO,EAAE,OAAO,CAAC;IACjB,wCAAwC;IACxC,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,sJAAsJ;IACtJ,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,iPAAiP;IACjP,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,iDAAiD;IACjD,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC5C,4GAA4G;IAC5G,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC5C,wEAAwE;IACxE,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,kGAAkG;IAClG,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,4FAA4F;IAC5F,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAKD,4EAA4E;AAC5E,eAAO,MAAM,OAAO,GAAI,GAAG,OAAO,KAAG,OACyC,CAAC;AAE/E;;;GAGG;AACH,wBAAgB,SAAS,CACvB,QAAQ,EAAE,SAAS,OAAO,EAAE,EAC5B,OAAO,EAAE,OAAO,EAChB,OAAO,SAAiD,GACvD,OAAO,CA4DT;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,CAMhD;AAED,2EAA2E;AAC3E,wBAAgB,aAAa,CAAC,CAAC,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,IAAI,SAAW,GAAG,MAAM,CAsBtF"}
|
package/dist/summary.js
CHANGED
|
@@ -1,8 +1,93 @@
|
|
|
1
|
-
// The summary of a run that takes a version in one or more repos (update
|
|
2
|
-
//
|
|
3
|
-
//
|
|
4
|
-
//
|
|
5
|
-
|
|
1
|
+
// The summary of a run that takes a version in one or more repos (`update`,
|
|
2
|
+
// `update --recursive`) or previews one (the dry run of `plx-dev ship`): what
|
|
3
|
+
// each repo's run came to (`Outcome`, update.ts), folded into lists by
|
|
4
|
+
// `summarize` at the edge, where the run is rendered, and rendered for a
|
|
5
|
+
// human: one line per site, the pull requests, the line that merges the
|
|
6
|
+
// clean ones, then the verdict. Every tool that prints a Summary prints it
|
|
7
|
+
// this way.
|
|
8
|
+
import { versionBranch } from "./pull.js";
|
|
9
|
+
import { needsHand } from "./take.js";
|
|
10
|
+
/** A repo's file as the run names it: under the repo's name, `.` for a repo run from inside. */
|
|
11
|
+
const inRun = (repo, file) => (repo === '.' ? file : `${repo}/${file}`);
|
|
12
|
+
/** True when nothing in the summary needs a human but the pull requests. */
|
|
13
|
+
export const isClean = (s) => s.conflicted.length === 0 && s.failed.length === 0 && s.skipped.length === 0;
|
|
14
|
+
/**
|
|
15
|
+
* The summary of what the repos' runs came to, in their order. Its version is
|
|
16
|
+
* the one given, else the first a run names.
|
|
17
|
+
*/
|
|
18
|
+
export function summarize(outcomes, preview, version = outcomes.find((o) => o.version)?.version ?? '') {
|
|
19
|
+
const s = {
|
|
20
|
+
version,
|
|
21
|
+
preview,
|
|
22
|
+
clean: [],
|
|
23
|
+
conflicted: [],
|
|
24
|
+
failed: [],
|
|
25
|
+
skipped: [],
|
|
26
|
+
resting: [],
|
|
27
|
+
pulls: [],
|
|
28
|
+
mergeable: [],
|
|
29
|
+
opening: [],
|
|
30
|
+
};
|
|
31
|
+
for (const o of outcomes) {
|
|
32
|
+
switch (o.kind) {
|
|
33
|
+
case 'current':
|
|
34
|
+
break;
|
|
35
|
+
case 'skipped':
|
|
36
|
+
s.skipped.push({ path: o.repo, reason: o.reason });
|
|
37
|
+
break;
|
|
38
|
+
case 'resting':
|
|
39
|
+
s.resting.push({ path: o.repo, reason: o.reason });
|
|
40
|
+
break;
|
|
41
|
+
case 'failed':
|
|
42
|
+
s.failed.push(o.repo);
|
|
43
|
+
break;
|
|
44
|
+
case 'found':
|
|
45
|
+
// Files that still hold markers need a human, like a conflicted site.
|
|
46
|
+
for (const file of o.marked)
|
|
47
|
+
s.conflicted.push(inRun(o.repo, file));
|
|
48
|
+
// A site copier did not run at needs a human to run it.
|
|
49
|
+
for (const site of o.behind)
|
|
50
|
+
s.failed.push(`${site === '.' ? o.repo : inRun(o.repo, site)} (not at ${o.version})`);
|
|
51
|
+
if (o.failed !== undefined)
|
|
52
|
+
s.failed.push(o.repo);
|
|
53
|
+
if (o.pull)
|
|
54
|
+
s.pulls.push(o.pull);
|
|
55
|
+
if (o.opening)
|
|
56
|
+
s.opening.push(`${o.repo} ${versionBranch(o.version)}`);
|
|
57
|
+
if (o.pull && o.mergeable)
|
|
58
|
+
s.mergeable.push(o.pull);
|
|
59
|
+
if (o.review && 'failed' in o.review)
|
|
60
|
+
s.failed.push(`${o.repo} (review request)`);
|
|
61
|
+
break;
|
|
62
|
+
case 'taken': {
|
|
63
|
+
const t = o.taken;
|
|
64
|
+
for (const site of t.sites)
|
|
65
|
+
s[site.outcome].push(site.rel);
|
|
66
|
+
// A file that holds a marker makes the pull request a draft too: listed
|
|
67
|
+
// unless a conflicted site it lies in says so already.
|
|
68
|
+
const conflicted = t.sites.filter((x) => x.outcome === 'conflicted').map((x) => x.rel);
|
|
69
|
+
for (const file of t.marked ?? []) {
|
|
70
|
+
const path = inRun(t.rel, file);
|
|
71
|
+
if (!conflicted.some((site) => site === '.' || path === site || path.startsWith(`${site}/`)))
|
|
72
|
+
s.conflicted.push(path);
|
|
73
|
+
}
|
|
74
|
+
if (t.lockfile === 'failed')
|
|
75
|
+
s.failed.push(`${t.rel}/pnpm-lock.yaml`);
|
|
76
|
+
if (t.failed !== undefined)
|
|
77
|
+
s.failed.push(t.rel);
|
|
78
|
+
if (t.pull)
|
|
79
|
+
s.pulls.push(t.pull.url ?? `${t.rel} ${t.pull.branch}`);
|
|
80
|
+
if (t.pull?.url && !t.pull.draft && !needsHand(t))
|
|
81
|
+
s.mergeable.push(t.pull.url);
|
|
82
|
+
// The pull request stands; who was to review it needs a human to ask.
|
|
83
|
+
if (t.review && 'failed' in t.review)
|
|
84
|
+
s.failed.push(`${t.rel} (review request)`);
|
|
85
|
+
break;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
return s;
|
|
90
|
+
}
|
|
6
91
|
/**
|
|
7
92
|
* One line to paste that merges the given pull requests, each with a merge
|
|
8
93
|
* commit and its branch deleted: `gh pr merge -md -R <org>/<repo> <number>`,
|
|
@@ -16,7 +101,7 @@ export function mergeLine(urls) {
|
|
|
16
101
|
.join(' && ');
|
|
17
102
|
}
|
|
18
103
|
/** The summary: one line per site, the pull requests, then the verdict. */
|
|
19
|
-
export function renderSummary(s, realCommand, verb = '
|
|
104
|
+
export function renderSummary(s, realCommand, verb = 'update') {
|
|
20
105
|
const lines = ['── summary ──────────────────────────────────────────────────────────────'];
|
|
21
106
|
for (const p of s.clean)
|
|
22
107
|
lines.push(` ✓ clean: ${p}`);
|
|
@@ -30,12 +115,14 @@ export function renderSummary(s, realCommand, verb = 'propagate') {
|
|
|
30
115
|
lines.push(` • resting: ${path} (${reason})`);
|
|
31
116
|
for (const url of s.pulls)
|
|
32
117
|
lines.push(` → pull: ${url}`);
|
|
118
|
+
for (const branch of s.opening)
|
|
119
|
+
lines.push(` → to open: ${branch}`);
|
|
33
120
|
const merge = s.preview ? '' : mergeLine(s.mergeable);
|
|
34
121
|
if (merge)
|
|
35
122
|
lines.push(' the clean ones, to merge once their checks pass:', ` ${merge}`);
|
|
36
123
|
const clean = isClean(s);
|
|
37
|
-
// A run that took no version (resting, already there, its
|
|
38
|
-
const idle = clean && s.clean.length === 0;
|
|
124
|
+
// A run that took no version and opens nothing (resting, already there, its pull request found) has nothing to run for real.
|
|
125
|
+
const idle = clean && s.clean.length === 0 && s.opening.length === 0;
|
|
39
126
|
if (s.preview && !idle) {
|
|
40
127
|
lines.push(' (preview only — nothing was changed)');
|
|
41
128
|
if (clean)
|
package/dist/summary.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"summary.js","sourceRoot":"","sources":["../src/summary.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"summary.js","sourceRoot":"","sources":["../src/summary.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,8EAA8E;AAC9E,uEAAuE;AACvE,yEAAyE;AACzE,wEAAwE;AACxE,2EAA2E;AAC3E,YAAY;AACZ,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAyBtC,gGAAgG;AAChG,MAAM,KAAK,GAAG,CAAC,IAAY,EAAE,IAAY,EAAU,EAAE,CAAC,CAAC,IAAI,KAAK,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,IAAI,IAAI,IAAI,EAAE,CAAC,CAAC;AAEhG,4EAA4E;AAC5E,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,CAAU,EAAW,EAAE,CAC7C,CAAC,CAAC,UAAU,CAAC,MAAM,KAAK,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,MAAM,KAAK,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,MAAM,KAAK,CAAC,CAAC;AAE/E;;;GAGG;AACH,MAAM,UAAU,SAAS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,IAAI,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC"}
|
package/dist/take.d.ts
CHANGED
|
@@ -1,59 +1,70 @@
|
|
|
1
|
-
import type { Consumer } from './consumers.ts';
|
|
1
|
+
import type { Consumer, Site } from './consumers.ts';
|
|
2
2
|
import type { Context } from './context.ts';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
3
|
+
import { type Review, type Reviewers } from './pull.ts';
|
|
4
|
+
/** What became of one site: merged clean, left with conflicts, or its copier run failed (`detail` says why). */
|
|
5
|
+
export interface SiteResult {
|
|
6
|
+
rel: string;
|
|
7
|
+
outcome: 'clean' | 'conflicted' | 'failed';
|
|
8
|
+
detail?: string;
|
|
9
|
+
}
|
|
10
|
+
/** What one consumer's taking of the version came to, as data: the caller folds it into a summary. */
|
|
11
|
+
export interface Taken {
|
|
12
|
+
rel: string;
|
|
13
|
+
/** Every site, in the order they were updated. */
|
|
14
|
+
sites: SiteResult[];
|
|
15
|
+
/** The lockfile refresh, where manifests moved; undefined when nothing needed one. */
|
|
16
|
+
lockfile?: 'refreshed' | 'failed';
|
|
17
|
+
/** Tracked files of the scratch checkout that hold a conflict marker once the sites are updated. */
|
|
18
|
+
marked?: string[];
|
|
19
|
+
/** The pull request opened, a draft when something needs a hand and the forge took one; its URL unknown when the forge did not say it. */
|
|
20
|
+
pull?: {
|
|
21
|
+
branch: string;
|
|
22
|
+
url?: string;
|
|
23
|
+
draft: boolean;
|
|
24
|
+
};
|
|
25
|
+
/** Why the commit, the push or the pull request failed, when one did. */
|
|
26
|
+
failed?: string;
|
|
27
|
+
/** The users asked to review the pull request, or why asking them failed. */
|
|
28
|
+
review?: Review;
|
|
26
29
|
}
|
|
27
|
-
/**
|
|
28
|
-
export declare const
|
|
29
|
-
/**
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
30
|
+
/** Whether the consumer needs a hand beyond reviewing its pull request. */
|
|
31
|
+
export declare const needsHand: (t: Taken) => boolean;
|
|
32
|
+
/**
|
|
33
|
+
* How a site is brought to the version in the scratch checkout: `target` is
|
|
34
|
+
* the site's directory there, `dir` the checkout's root. The default runs
|
|
35
|
+
* copier against the published template; the maintainers' preview of an
|
|
36
|
+
* unreleased version (preview.ts of @plexus-ms/dev) brings its own, against
|
|
37
|
+
* the local template checkouts. Whatever it leaves is then judged and
|
|
38
|
+
* staged the same way.
|
|
39
|
+
*/
|
|
40
|
+
export type SiteUpdate = (ctx: Context, site: Site, target: string, dir: string) => Promise<void>;
|
|
41
|
+
/** How a consumer takes the version. */
|
|
36
42
|
export interface Take {
|
|
37
43
|
version: string;
|
|
38
|
-
/**
|
|
39
|
-
* Preview from the local template checkouts under this upstream directory at
|
|
40
|
-
* main (preview.ts of @plexus-ms/dev), instead of the published template.
|
|
41
|
-
*/
|
|
42
|
-
previewFrom?: string;
|
|
43
|
-
/** The template ref copier updates to; unset, copier takes the newest tag, which the version just cut. */
|
|
44
|
+
/** The template ref copier updates to; unset, copier takes the newest tag. */
|
|
44
45
|
ref?: string;
|
|
45
46
|
/** Who opened the pull request, named in its body. */
|
|
46
47
|
opener: string;
|
|
47
48
|
/** Why the repo takes the version now (need.ts), named in the body beside the opener. */
|
|
48
49
|
why?: string;
|
|
50
|
+
/** How each site is updated; default: copier against the published template, at `ref`. */
|
|
51
|
+
update?: SiteUpdate;
|
|
52
|
+
/** Who is asked to review the pull request when it is opened; default: the root answers' `pr_reviewers` after copier ran. */
|
|
53
|
+
reviewers?: Reviewers;
|
|
49
54
|
}
|
|
55
|
+
/**
|
|
56
|
+
* copier at the version plx pins, through mise, with the consumer's own mise
|
|
57
|
+
* config ignored: copier needs no project tool, and a root `mise.toml` left
|
|
58
|
+
* with conflict markers by the root site's update would otherwise fail every
|
|
59
|
+
* later mise call in the directory, the apps' updates first of all.
|
|
60
|
+
*/
|
|
61
|
+
export declare const copierIn: (dir: string, args: string[]) => [string, string[]];
|
|
50
62
|
/**
|
|
51
63
|
* One consumer takes the version in `dir`, a scratch checkout of its branch:
|
|
52
64
|
* every site updated, the lockfile refreshed, the workflow refs bumped, then
|
|
53
65
|
* the commit, the branch and the pull request.
|
|
54
66
|
*/
|
|
55
|
-
export declare function takeVersion(ctx: Context, consumer: Consumer, dir: string, take: Take
|
|
56
|
-
/**
|
|
57
|
-
export declare
|
|
58
|
-
export declare const detail: (error: unknown) => string;
|
|
67
|
+
export declare function takeVersion(ctx: Context, consumer: Consumer, dir: string, take: Take): Promise<Taken>;
|
|
68
|
+
/** A commit of plain plumbing on a scratch checkout: unsigned, no hooks, a stand-in identity. */
|
|
69
|
+
export declare const scratchCommit: (ctx: Context, dir: string, message: string) => Promise<string | undefined>;
|
|
59
70
|
//# sourceMappingURL=take.d.ts.map
|
package/dist/take.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"take.d.ts","sourceRoot":"","sources":["../src/take.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"take.d.ts","sourceRoot":"","sources":["../src/take.ts"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAI5C,OAAO,EAOL,KAAK,MAAM,EACX,KAAK,SAAS,EAEf,MAAM,WAAW,CAAC;AAGnB,gHAAgH;AAChH,MAAM,WAAW,UAAU;IACzB,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,OAAO,GAAG,YAAY,GAAG,QAAQ,CAAC;IAC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