@plexus-ms/lib 0.130.0 → 0.132.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/apply.d.ts +25 -0
- package/dist/apply.d.ts.map +1 -0
- package/dist/apply.js +204 -0
- package/dist/apply.js.map +1 -0
- package/dist/bookkeeping.js +3 -3
- package/dist/bookkeeping.js.map +1 -1
- package/dist/bundled.d.ts +15 -0
- package/dist/bundled.d.ts.map +1 -0
- package/dist/bundled.js +42 -0
- package/dist/bundled.js.map +1 -0
- package/dist/changeset.js +3 -3
- package/dist/changeset.js.map +1 -1
- package/dist/consumers.d.ts +6 -35
- package/dist/consumers.d.ts.map +1 -1
- package/dist/consumers.js +45 -83
- package/dist/consumers.js.map +1 -1
- package/dist/doctor.d.ts +17 -1
- package/dist/doctor.d.ts.map +1 -1
- package/dist/doctor.js +167 -11
- package/dist/doctor.js.map +1 -1
- package/dist/engine.d.ts +2 -0
- package/dist/engine.d.ts.map +1 -0
- package/dist/engine.js +9 -0
- package/dist/engine.js.map +1 -0
- package/dist/frontmatter.d.ts.map +1 -1
- package/dist/frontmatter.js +6 -5
- package/dist/frontmatter.js.map +1 -1
- package/dist/index.d.ts +13 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +14 -9
- package/dist/index.js.map +1 -1
- package/dist/io.d.ts +1 -1
- package/dist/marker.d.ts +38 -0
- package/dist/marker.d.ts.map +1 -1
- package/dist/marker.js +269 -16
- package/dist/marker.js.map +1 -1
- package/dist/model.d.ts +15 -17
- package/dist/model.d.ts.map +1 -1
- package/dist/model.js +19 -21
- package/dist/model.js.map +1 -1
- package/dist/need.d.ts +1 -1
- package/dist/need.d.ts.map +1 -1
- package/dist/need.js +2 -2
- package/dist/need.js.map +1 -1
- package/dist/newSite.d.ts +31 -0
- package/dist/newSite.d.ts.map +1 -0
- package/dist/newSite.js +184 -0
- package/dist/newSite.js.map +1 -0
- package/dist/overview.d.ts +5 -9
- package/dist/overview.d.ts.map +1 -1
- package/dist/overview.js +26 -51
- package/dist/overview.js.map +1 -1
- package/dist/pull.d.ts +48 -21
- package/dist/pull.d.ts.map +1 -1
- package/dist/pull.js +183 -67
- package/dist/pull.js.map +1 -1
- package/dist/recursive.d.ts.map +1 -1
- package/dist/recursive.js +7 -5
- package/dist/recursive.js.map +1 -1
- package/dist/requirements.d.ts +1 -1
- package/dist/requirements.d.ts.map +1 -1
- package/dist/requirements.js +11 -13
- package/dist/requirements.js.map +1 -1
- package/dist/siteTemplates.d.ts +14 -0
- package/dist/siteTemplates.d.ts.map +1 -0
- package/dist/siteTemplates.js +107 -0
- package/dist/siteTemplates.js.map +1 -0
- package/dist/sites.d.ts +24 -0
- package/dist/sites.d.ts.map +1 -0
- package/dist/sites.js +89 -0
- package/dist/sites.js.map +1 -0
- package/dist/standard-index.json +1 -1
- package/dist/summary.d.ts +1 -1
- package/dist/summary.d.ts.map +1 -1
- package/dist/summary.js +6 -1
- package/dist/summary.js.map +1 -1
- package/dist/sync.d.ts +86 -0
- package/dist/sync.d.ts.map +1 -0
- package/dist/sync.js +227 -0
- package/dist/sync.js.map +1 -0
- package/dist/take.d.ts +20 -25
- package/dist/take.d.ts.map +1 -1
- package/dist/take.js +48 -142
- package/dist/take.js.map +1 -1
- package/dist/templatesRoot.d.ts +5 -0
- package/dist/templatesRoot.d.ts.map +1 -0
- package/dist/templatesRoot.js +37 -0
- package/dist/templatesRoot.js.map +1 -0
- package/dist/update.d.ts +48 -10
- package/dist/update.d.ts.map +1 -1
- package/dist/update.js +173 -78
- package/dist/update.js.map +1 -1
- package/dist/version.d.ts +2 -2
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +2 -8
- package/dist/version.js.map +1 -1
- package/dist/versionTemplates.d.ts +24 -0
- package/dist/versionTemplates.d.ts.map +1 -0
- package/dist/versionTemplates.js +168 -0
- package/dist/versionTemplates.js.map +1 -0
- package/package.json +2 -1
- package/dist/copier.d.ts +0 -17
- package/dist/copier.d.ts.map +0 -1
- package/dist/copier.js +0 -35
- package/dist/copier.js.map +0 -1
- package/dist/templates.d.ts +0 -21
- package/dist/templates.d.ts.map +0 -1
- package/dist/templates.js +0 -55
- package/dist/templates.js.map +0 -1
package/dist/update.js
CHANGED
|
@@ -5,25 +5,59 @@
|
|
|
5
5
|
// Which version it takes, if any, is need.ts's decision, by the step of the
|
|
6
6
|
// version number: a patch (a hotfix) at once, a minor (routine) at the repo's
|
|
7
7
|
// next scheduled pull, once the oldest version it has not taken is as old as
|
|
8
|
-
// its interval (`update_max_age` in its
|
|
9
|
-
// say, zero for every version), a major (a changed contract) only when
|
|
10
|
-
// Asked (`--now`, or a version named), it takes the newest version, or
|
|
11
|
-
// named, whatever its step. Otherwise the repo rests: one line saying
|
|
12
|
-
// exit 0.
|
|
8
|
+
// its interval (`update_max_age` in its root marker, in days; 7 when it does
|
|
9
|
+
// not say, zero for every version), a major (a changed contract) only when
|
|
10
|
+
// asked. Asked (`--now`, or a version named), it takes the newest version, or
|
|
11
|
+
// the one named, whatever its step. Otherwise the repo rests: one line saying
|
|
12
|
+
// why, exit 0.
|
|
13
13
|
//
|
|
14
14
|
// The versions are the compendium's GitHub releases (every version tag is locked
|
|
15
15
|
// by one, § 1.6 PLX, and the compendium is released last, so a version shows
|
|
16
16
|
// there once it is cut everywhere), asked of the forge as an operator would
|
|
17
17
|
// (`gh api repos/plexus-ms/compendium/releases`): their numbers are the steps,
|
|
18
|
-
// and their dates are what the interval is measured against.
|
|
19
|
-
//
|
|
20
|
-
//
|
|
21
|
-
//
|
|
22
|
-
//
|
|
23
|
-
//
|
|
24
|
-
//
|
|
25
|
-
//
|
|
26
|
-
//
|
|
18
|
+
// and their dates are what the interval is measured against.
|
|
19
|
+
//
|
|
20
|
+
// The repo is judged by what origin has on the branch the version lands on
|
|
21
|
+
// (consumers.ts), never by the checkout, which may be behind it or on a branch
|
|
22
|
+
// of its own. Its markers there are its configuration (sites.ts): the root
|
|
23
|
+
// marker's `version` is the version the repo is on, and refusing a downgrade,
|
|
24
|
+
// the interval and readiness all read it. A repo that still tracks a copier
|
|
25
|
+
// answers file there has not crossed over to the markers, and is refused with
|
|
26
|
+
// the crossover runbook: that refusal is the only crossover code. So is a
|
|
27
|
+
// marker that cannot be read, and a root marker that names no version.
|
|
28
|
+
//
|
|
29
|
+
// Taking the version happens in a worktree of origin's branch, never in the
|
|
30
|
+
// checkout: a developer's branch and edits stay as they are, and in CI the
|
|
31
|
+
// worktree shares the checkout's credentials, so the push and the pull request
|
|
32
|
+
// need no second token. The template step, then `takeVersion` (take.ts):
|
|
33
|
+
// 1. A site is a marker in the worktree that lists at least one template
|
|
34
|
+
// (sites.ts); one that lists none, or names no `templates` at all, is
|
|
35
|
+
// valid and renders nothing, and is no site of the update. The root is
|
|
36
|
+
// rendered in any case, for the answers it gives the nested sites and for
|
|
37
|
+
// the `version` it is written, and merged only where it is a site. Each
|
|
38
|
+
// site, the root first, has two sides, its markers' answers and
|
|
39
|
+
// templates as they are: the old side rendered with the templates of the
|
|
40
|
+
// version the repo is on, the new side with those of the version it
|
|
41
|
+
// takes. The templates of the running plx's own version are the ones it
|
|
42
|
+
// bundles, rendered by its own engine; any other version's are fetched
|
|
43
|
+
// from the registry and rendered by that version's plx-template
|
|
44
|
+
// (versionTemplates.ts). A version that cannot be fetched or rendered
|
|
45
|
+
// fails the run, which pushes nothing.
|
|
46
|
+
// 2. The two renders are merged into each site by the engine's rules
|
|
47
|
+
// (sync.ts): a local edit merges, a conflict stays in the file between
|
|
48
|
+
// `<<<<<<< current` and `>>>>>>> new render`, a file the version drops and
|
|
49
|
+
// the user edited is kept without markers, named by the commit and the
|
|
50
|
+
// pull request since nothing in the file shows it, and a born-once file
|
|
51
|
+
// the old render holds stays as the user left it. The defaults of questions that became
|
|
52
|
+
// applicable and the new `version` are spliced into the markers in one
|
|
53
|
+
// write each. Birth commands are never run, and neither is `mise
|
|
54
|
+
// install`: tools serve a developer's checkout, not a pull request.
|
|
55
|
+
// 3. The lockfile where a manifest moved, the workflow refs, one commit on
|
|
56
|
+
// `plexus/<version>`, and one pull request (take.ts). The `plx` pin is a
|
|
57
|
+
// line of a template's mise.toml, and nothing writes it apart: where the
|
|
58
|
+
// line merges, it moves in the same commit as the version; where it does
|
|
59
|
+
// not (the line edited or deleted, mise.toml gone, a root without
|
|
60
|
+
// templates), the pull request waits, and its body says so (pull.ts).
|
|
27
61
|
//
|
|
28
62
|
// What the run came to is returned as data, one `Outcome` for the repo, which
|
|
29
63
|
// the caller folds into the summary (summary.ts). Run over many repos
|
|
@@ -35,93 +69,76 @@
|
|
|
35
69
|
// never moved, so a daily run never touches a branch somebody is working on;
|
|
36
70
|
// deleting the branch is how a pull is redone. With its pull request open, the
|
|
37
71
|
// run looks at it again (pull.ts): the branch read as origin has it, the body
|
|
38
|
-
// rewritten to what still needs a hand, ready once no conflict marker remains
|
|
39
|
-
//
|
|
72
|
+
// rewritten to what still needs a hand, ready once no conflict marker remains,
|
|
73
|
+
// the root marker names the version, and the root mise.toml pins plx at it.
|
|
40
74
|
// With no pull request in any state (opening it failed after the push), the
|
|
41
75
|
// run opens it then; a closed or merged one stays as a human left it.
|
|
42
|
-
// A repo whose
|
|
76
|
+
// A repo whose root marker already names the newest version does nothing at
|
|
43
77
|
// all.
|
|
44
78
|
//
|
|
45
79
|
// The pull request it opens asks for a review from the users the repo's root
|
|
46
|
-
//
|
|
80
|
+
// marker names (`pr_reviewers`), or from those `reviewers` names instead
|
|
47
81
|
// (pull.ts), once, when it is opened. The answer is read and checked only
|
|
48
|
-
// then, from the
|
|
49
|
-
//
|
|
50
|
-
//
|
|
51
|
-
// is opened all the same, with the refused answer reported.
|
|
82
|
+
// then, from the root marker as the pull request's branch has it: a bad one
|
|
83
|
+
// fails no run that opens nothing, and the pull request is opened all the
|
|
84
|
+
// same, with the refused answer reported.
|
|
52
85
|
//
|
|
53
86
|
// plx update # the version the repo's schedule takes, if any
|
|
54
87
|
// plx update --now # the newest version, whatever its step
|
|
55
88
|
// plx -n update --now # preview in a worktree, push nothing
|
|
56
89
|
// plx -y update --to 0.102.0 # unattended, an explicit version
|
|
57
90
|
// plx update --recursive ~/dev # every repo under a directory (recursive.ts)
|
|
58
|
-
import { basename, join
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
91
|
+
import { basename, join } from 'node:path';
|
|
92
|
+
import { CROSSOVER_RUNBOOK } from "./apply.js";
|
|
93
|
+
import { findRepos } from "./consumers.js";
|
|
61
94
|
import { run } from "./effects.js";
|
|
62
95
|
import { detailOf, ExecError } from "./io.js";
|
|
96
|
+
import { MARKER_FILE } from "./marker.js";
|
|
97
|
+
import { ANSWERS_FILE, crossedOver } from "./model.js";
|
|
63
98
|
import { maxAgeOf, needOf } from "./need.js";
|
|
64
99
|
import { overview } from "./overview.js";
|
|
65
|
-
import { openLate, pullOf, revisit, tipOnOrigin, versionBranch } from "./pull.js";
|
|
100
|
+
import { openLate, pullOf, revisit, tipOnOrigin, versionBranch, } from "./pull.js";
|
|
101
|
+
import { findSites, siteAnswers } from "./sites.js";
|
|
102
|
+
import { planSync } from "./sync.js";
|
|
66
103
|
import { takeVersion } from "./take.js";
|
|
67
|
-
import { TEMPLATES, templateSource } from "./templates.js";
|
|
68
104
|
import { COMPENDIUM, compareVersions, isPlexusVersion, preflightForge, UsageError } from "./version.js";
|
|
105
|
+
import { templatesOf } from "./versionTemplates.js";
|
|
69
106
|
export async function update(ctx, options, known) {
|
|
70
107
|
if (options.to !== undefined && !isPlexusVersion(options.to))
|
|
71
108
|
throw new UsageError(`'${options.to}' is not plain semver (X.Y.Z, no v)`);
|
|
72
109
|
const consumer = known?.consumer ?? (await repoAt(ctx, options.repo, options.name ?? basename(options.repo)));
|
|
73
110
|
const { path: repo, rel: name } = consumer;
|
|
74
|
-
const root = consumer.sites.find((s) => s.path === consumer.path);
|
|
75
|
-
if (!root)
|
|
76
|
-
throw new Error(`${name}: its root is not a site of a repo template`);
|
|
77
111
|
if (!known)
|
|
78
112
|
await preflightForge(ctx);
|
|
79
113
|
const releases = known?.releases ?? (options.to === undefined ? await releasesOf(ctx) : []);
|
|
80
114
|
const newest = options.to ?? newestOf(releases);
|
|
81
|
-
//
|
|
82
|
-
// on, not by the checkout, which may be behind it or on a branch of its own.
|
|
83
|
-
// Without that branch on origin there is nothing to take the version on.
|
|
115
|
+
// Without the branch the version lands on there is nothing to take it on.
|
|
84
116
|
if ((await onOrigin(ctx, repo, consumer.branch)) === false) {
|
|
85
117
|
const reason = `origin has no branch \`${consumer.branch}\`, the one the version lands on`;
|
|
86
118
|
ctx.say(`⚠ ${name}: ${reason} — skipped`);
|
|
87
119
|
return { repo: name, version: newest, kind: 'skipped', reason };
|
|
88
120
|
}
|
|
89
121
|
await ctx.read('git', ['fetch', '--quiet', 'origin', consumer.branch], { cwd: repo }).catch(() => '');
|
|
90
|
-
|
|
91
|
-
const
|
|
92
|
-
|
|
93
|
-
? onBranch.sites.map((s) => s.answers ?? { answers: {} })
|
|
94
|
-
: await Promise.all(consumer.sites.map(async (s) => {
|
|
95
|
-
const file = join(relative(consumer.path, s.path), ANSWERS_FILE);
|
|
96
|
-
const onOrigin = await ctx
|
|
97
|
-
.read('git', ['show', `origin/${consumer.branch}:${file}`], { cwd: repo })
|
|
98
|
-
.catch(() => undefined);
|
|
99
|
-
return parseAnswers(onOrigin ?? (await ctx.readFile(join(s.path, ANSWERS_FILE))));
|
|
100
|
-
}));
|
|
101
|
-
const rootAnswers = onBranch
|
|
102
|
-
? onBranch.sites.find((s) => s.dir === '.')?.answers
|
|
103
|
-
: answers[consumer.sites.indexOf(root)];
|
|
104
|
-
const recorded = answers.map((a) => a.commit);
|
|
105
|
-
if (recorded.every((c) => c === newest)) {
|
|
122
|
+
const base = `refs/remotes/origin/${consumer.branch}`;
|
|
123
|
+
const on = await versionOn(ctx, consumer, base);
|
|
124
|
+
if (on.version === newest) {
|
|
106
125
|
ctx.say(`• ${name}: already at ${newest}`);
|
|
107
126
|
return { repo: name, version: newest, kind: 'current' };
|
|
108
127
|
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
if (past)
|
|
112
|
-
throw new Error(`${name} is at ${past}, past ${newest}; a repo is never taken back to an older version`);
|
|
128
|
+
if (compareVersions(on.version, newest) > 0)
|
|
129
|
+
throw new Error(`${name} is at ${on.version}, past ${newest}; a repo is never taken back to an older version`);
|
|
113
130
|
const asked = options.to !== undefined || options.now === true;
|
|
114
131
|
const need = asked
|
|
115
132
|
? { take: true, version: newest, why: `asked for (${options.to !== undefined ? `--to ${newest}` : '--now'})` }
|
|
116
133
|
: needOf({
|
|
117
|
-
recorded,
|
|
134
|
+
recorded: [on.version],
|
|
118
135
|
releases,
|
|
119
|
-
maxAge: options.maxAge ?? maxAgeOf(
|
|
136
|
+
maxAge: options.maxAge ?? maxAgeOf(on.answers),
|
|
120
137
|
now: options.today === undefined ? new Date() : new Date(options.today),
|
|
121
138
|
});
|
|
122
139
|
if (need.held)
|
|
123
140
|
ctx.say(`• ${name}: ${need.held} (plx update --now takes it)`);
|
|
124
|
-
// Unless named, read where the pull request is opened, from its branch's
|
|
141
|
+
// Unless named, read where the pull request is opened, from its branch's root marker, and only then.
|
|
125
142
|
const reviewers = options.reviewers ? { named: options.reviewers } : undefined;
|
|
126
143
|
// A repo that rests is looked at for the newest version: one asked for earlier may be on origin.
|
|
127
144
|
const version = need.take ? need.version : newest;
|
|
@@ -144,6 +161,7 @@ export async function update(ctx, options, known) {
|
|
|
144
161
|
...(late.previewed ? { opening: true } : {}),
|
|
145
162
|
marked: late.marked,
|
|
146
163
|
behind: late.behind,
|
|
164
|
+
...(late.pin ? { pin: late.pin } : {}),
|
|
147
165
|
mergeable: late.pull !== undefined && !late.pull.draft && late.ready,
|
|
148
166
|
...(late.failed ? { failed: late.failed } : {}),
|
|
149
167
|
...(late.review ? { review: late.review } : {}),
|
|
@@ -198,19 +216,29 @@ export async function update(ctx, options, known) {
|
|
|
198
216
|
ctx.say(` ✗ FAILED — worktree of origin/${consumer.branch}${why ? `: ${why}` : ''}`);
|
|
199
217
|
return { repo: name, version, kind: 'failed', detail: `worktree of origin/${consumer.branch}: ${why}` };
|
|
200
218
|
}
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
219
|
+
try {
|
|
220
|
+
const taken = await takeVersion(ctx, consumer, dir, {
|
|
221
|
+
version,
|
|
222
|
+
opener: '`plx update`',
|
|
223
|
+
why: need.why,
|
|
224
|
+
sites: (ctx, consumer, dir) => renderSites(ctx, consumer, dir, { from: on.version, to: version }, async () => {
|
|
225
|
+
const of = (v) => templatesOf(ctx, v, {
|
|
226
|
+
plxVersion: options.plxVersion,
|
|
227
|
+
scratch: join(scratch, 'versions'),
|
|
228
|
+
...(options.templates ? { bundled: options.templates } : {}),
|
|
229
|
+
...(options.fetch ? { fetch: options.fetch } : {}),
|
|
230
|
+
});
|
|
231
|
+
return { old: await of(on.version), new: await of(version) };
|
|
232
|
+
}),
|
|
233
|
+
...(reviewers ? { reviewers } : {}),
|
|
234
|
+
});
|
|
235
|
+
return { repo: name, version, kind: 'taken', taken };
|
|
236
|
+
}
|
|
237
|
+
catch (error) {
|
|
238
|
+
const why = error.message;
|
|
239
|
+
ctx.say(` ✗ FAILED — ${name}: ${why}`);
|
|
240
|
+
return { repo: name, version, kind: 'failed', detail: why };
|
|
241
|
+
}
|
|
214
242
|
}
|
|
215
243
|
finally {
|
|
216
244
|
await ctx.stage(run('git', ['worktree', 'remove', '--force', dir], { cwd: repo })).catch(() => undefined);
|
|
@@ -219,21 +247,88 @@ export async function update(ctx, options, known) {
|
|
|
219
247
|
}
|
|
220
248
|
}
|
|
221
249
|
/**
|
|
222
|
-
* The repo at `
|
|
223
|
-
*
|
|
250
|
+
* The version the repo is on at `ref`, origin's branch: its root marker's
|
|
251
|
+
* `version`, with the root marker's answers. Refuses a repo that still tracks
|
|
252
|
+
* a copier answers file there, any marker that cannot be read, and a root
|
|
253
|
+
* marker that names no version.
|
|
254
|
+
*/
|
|
255
|
+
export async function versionOn(ctx, consumer, ref) {
|
|
256
|
+
const where = `on origin's \`${consumer.branch}\``;
|
|
257
|
+
const tracked = (await ctx.read('git', ['ls-tree', '-r', '-z', '--name-only', ref], { cwd: consumer.path }))
|
|
258
|
+
.split('\0')
|
|
259
|
+
.filter(Boolean);
|
|
260
|
+
if (!crossedOver(tracked))
|
|
261
|
+
throw new Error(`${consumer.rel} still tracks a ${ANSWERS_FILE} ${where}: it has not crossed over from copier to the markers, which plx update reads; follow ${CROSSOVER_RUNBOOK}`);
|
|
262
|
+
const sites = await findSites(ctx, consumer.path, ref);
|
|
263
|
+
const problems = sites.filter((s) => s.problem !== undefined);
|
|
264
|
+
if (problems.length > 0)
|
|
265
|
+
throw new Error(problems.map((s) => `${join(s.dir, MARKER_FILE)} ${where}: ${s.problem}`).join('\n'));
|
|
266
|
+
const root = sites.find((s) => s.dir === '.')?.config;
|
|
267
|
+
if (root?.version === undefined)
|
|
268
|
+
throw new Error(`the root ${MARKER_FILE} of ${consumer.rel} ${where} names no version, so plx update cannot tell which version it is on`);
|
|
269
|
+
return { version: root.version, answers: root.answers };
|
|
270
|
+
}
|
|
271
|
+
/**
|
|
272
|
+
* The template step of a version taken (the header's steps 1 and 2), in the
|
|
273
|
+
* worktree `dir`: every marker that lists at least one template, rendered at
|
|
274
|
+
* `from` and at `to` and merged, the root rendered for its answers whatever it
|
|
275
|
+
* lists, the defaults and the version written into the markers. What became of
|
|
276
|
+
* each site is what the merge reported. `templates` yields the two sides; it
|
|
277
|
+
* is asked once the step has said which versions it takes, so that a fetch
|
|
278
|
+
* follows the line that names them. The maintainers' preview of an unreleased
|
|
279
|
+
* version (preview.ts of @plexus-ms/dev) gives the new side as the templates
|
|
280
|
+
* of its own checkout.
|
|
224
281
|
*/
|
|
282
|
+
export async function renderSites(ctx, consumer, dir, versions, templates) {
|
|
283
|
+
const sites = await findSites(ctx, dir, 'HEAD');
|
|
284
|
+
const sourceOf = (site) => ({
|
|
285
|
+
templates: site.config?.templates ?? [],
|
|
286
|
+
answers: siteAnswers(sites, site.dir),
|
|
287
|
+
});
|
|
288
|
+
const lists = (site) => (site.config?.templates?.length ?? 0) > 0;
|
|
289
|
+
const taken = sites.filter((s) => s.dir === '.' || lists(s));
|
|
290
|
+
const sides = taken.map((s) => ({
|
|
291
|
+
dir: s.dir,
|
|
292
|
+
old: sourceOf(s),
|
|
293
|
+
new: sourceOf(s),
|
|
294
|
+
...(lists(s) ? {} : { contextOnly: true }),
|
|
295
|
+
}));
|
|
296
|
+
const siblings = sites
|
|
297
|
+
.filter((s) => s.dir !== '.')
|
|
298
|
+
.map((s) => ({ dir: s.dir, templates: s.config?.templates ?? [], answers: s.config?.answers ?? {} }));
|
|
299
|
+
ctx.say(`→ ${consumer.rel}: the templates of ${versions.from} and ${versions.to}, merged`);
|
|
300
|
+
const plan = await planSync(ctx, dir, await templates(), sides, {
|
|
301
|
+
labels: { old: `the templates of ${versions.from}`, new: `the templates of ${versions.to}` },
|
|
302
|
+
siblings,
|
|
303
|
+
version: versions.to,
|
|
304
|
+
});
|
|
305
|
+
await plan.perform();
|
|
306
|
+
return plan.sites.map((s) => {
|
|
307
|
+
const rel = s.dir === '.' ? consumer.rel : join(consumer.rel, s.dir);
|
|
308
|
+
const inRepo = (path) => (s.dir === '.' ? path : join(s.dir, path));
|
|
309
|
+
const dropped = plan.dropped[s.dir] ?? [];
|
|
310
|
+
const kept = dropped.map(inRepo);
|
|
311
|
+
const conflicts = s.report
|
|
312
|
+
.filter((e) => e.outcome === 'conflicted' && !dropped.includes(e.path))
|
|
313
|
+
.map((e) => inRepo(e.path));
|
|
314
|
+
const conflicted = conflicts.length + kept.length > 0;
|
|
315
|
+
ctx.say(conflicted
|
|
316
|
+
? ` ✗ CONFLICTS at ${rel}, ${ctx.dryRun ? 'to be committed' : 'committed'} with their markers`
|
|
317
|
+
: ` ✓ merged clean: ${rel}`);
|
|
318
|
+
for (const path of kept)
|
|
319
|
+
ctx.say(` kept although ${versions.to} drops it, since it was edited here: ${path}`);
|
|
320
|
+
return { rel, dir: s.dir, outcome: conflicted ? 'conflicted' : 'clean', conflicts, kept };
|
|
321
|
+
});
|
|
322
|
+
}
|
|
323
|
+
/** The repo at `path`, which must be generated from the templates, named `name` rather than from a workspace. */
|
|
225
324
|
async function repoAt(ctx, path, name) {
|
|
226
325
|
const tree = await overview(ctx, path);
|
|
227
|
-
const found = (await
|
|
326
|
+
const found = (await findRepos(ctx, tree)).find((c) => c.path === tree.path);
|
|
228
327
|
if (!found)
|
|
229
|
-
throw new Error(`${path} is not a repo generated from the templates:
|
|
328
|
+
throw new Error(`${path} is not a repo generated from the templates: its root ${MARKER_FILE} names no version and lists no templates`);
|
|
230
329
|
if (found.skipped)
|
|
231
330
|
throw new Error(`${name}: ${found.skipped}`);
|
|
232
|
-
return {
|
|
233
|
-
...found,
|
|
234
|
-
rel: name,
|
|
235
|
-
sites: found.sites.map((s) => ({ ...s, rel: s.rel === '.' ? name : join(name, s.rel) })),
|
|
236
|
-
};
|
|
331
|
+
return { ...found, rel: name };
|
|
237
332
|
}
|
|
238
333
|
/**
|
|
239
334
|
* Whether origin has the branch: true or false as `git ls-remote` answers,
|
package/dist/update.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update.js","sourceRoot":"","sources":["../src/update.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,+EAA+E;AAC/E,sDAAsD;AACtD,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,6EAA6E;AAC7E,8EAA8E;AAC9E,+EAA+E;AAC/E,2EAA2E;AAC3E,UAAU;AACV,EAAE;AACF,iFAAiF;AACjF,6EAA6E;AAC7E,4EAA4E;AAC5E,+EAA+E;AAC/E,mFAAmF;AACnF,+EAA+E;AAC/E,uEAAuE;AACvE,2EAA2E;AAC3E,kEAAkE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AC;AAC7D,CAAC;AAED,6CAA6C;AAC7C,SAAS,QAAQ,CAAC,QAAmB;IACnC,MAAM,MAAM,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,eAAe,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IAC9G,IAAI,CAAC,MAAM;QAAE,MAAM,IAAI,KAAK,CAAC,iBAAiB,aAAa,uDAAuD,CAAC,CAAC;IACpH,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
package/dist/version.d.ts
CHANGED
|
@@ -4,8 +4,8 @@ import type { Context } from './context.ts';
|
|
|
4
4
|
* them: it is released last, so a version shows there once it is cut everywhere.
|
|
5
5
|
*/
|
|
6
6
|
export declare const COMPENDIUM = "compendium";
|
|
7
|
-
/** The repos stamped with the version tag, in release order; the templates
|
|
8
|
-
export declare const VERSIONED_REPOS: readonly ["tooling", "
|
|
7
|
+
/** The repos stamped with the version tag, in release order; the templates a repo is generated from are in the first. */
|
|
8
|
+
export declare const VERSIONED_REPOS: readonly ["tooling", "compendium"];
|
|
9
9
|
/** A Plexus version is plain semver, no `v` prefix (§ 1.5 PLX). */
|
|
10
10
|
export declare const isPlexusVersion: (v: string) => boolean;
|
|
11
11
|
/** Numeric comparison of two Plexus versions; suffixes ignored. */
|
package/dist/version.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAE5C;;;GAGG;AACH,eAAO,MAAM,UAAU,eAAe,CAAC;AAEvC,
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAE5C;;;GAGG;AACH,eAAO,MAAM,UAAU,eAAe,CAAC;AAEvC,yHAAyH;AACzH,eAAO,MAAM,eAAe,oCAAmC,CAAC;AAEhE,mEAAmE;AACnE,eAAO,MAAM,eAAe,GAAI,GAAG,MAAM,KAAG,OAAoC,CAAC;AAEjF,mEAAmE;AACnE,wBAAgB,eAAe,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAS5D;AAED,+FAA+F;AAC/F,eAAO,MAAM,OAAO,uBAAuB,CAAC;AAE5C,mIAAmI;AACnI,eAAO,MAAM,QAAQ,GAAI,MAAM,MAAM,KAAG,MAAM,GAAG,SAC4C,CAAC;AAE9F;;;GAGG;AACH,wBAAsB,cAAc,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAMhE;AAED,sFAAsF;AACtF,qBAAa,UAAW,SAAQ,KAAK;CAAG"}
|
package/dist/version.js
CHANGED
|
@@ -3,14 +3,8 @@
|
|
|
3
3
|
* them: it is released last, so a version shows there once it is cut everywhere.
|
|
4
4
|
*/
|
|
5
5
|
export const COMPENDIUM = 'compendium';
|
|
6
|
-
/** The repos stamped with the version tag, in release order; the templates
|
|
7
|
-
export const VERSIONED_REPOS = [
|
|
8
|
-
'tooling',
|
|
9
|
-
'template-repo-turbo',
|
|
10
|
-
'template-app-nextjs',
|
|
11
|
-
'template-repo-operations',
|
|
12
|
-
COMPENDIUM,
|
|
13
|
-
];
|
|
6
|
+
/** The repos stamped with the version tag, in release order; the templates a repo is generated from are in the first. */
|
|
7
|
+
export const VERSIONED_REPOS = ['tooling', COMPENDIUM];
|
|
14
8
|
/** A Plexus version is plain semver, no `v` prefix (§ 1.5 PLX). */
|
|
15
9
|
export const isPlexusVersion = (v) => /^\d+\.\d+\.\d+$/.test(v);
|
|
16
10
|
/** Numeric comparison of two Plexus versions; suffixes ignored. */
|
package/dist/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAMA;;;GAGG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,YAAY,CAAC;AAEvC,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAMA;;;GAGG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,YAAY,CAAC;AAEvC,yHAAyH;AACzH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,SAAS,EAAE,UAAU,CAAU,CAAC;AAEhE,mEAAmE;AACnE,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAS,EAAW,EAAE,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAEjF,mEAAmE;AACnE,MAAM,UAAU,eAAe,CAAC,CAAS,EAAE,CAAS;IAClD,MAAM,IAAI,GAAG,CAAC,CAAS,EAAE,EAAE,CACzB,CAAC;SACE,KAAK,CAAC,GAAG,CAAC;SACV,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC;SACX,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;IAC7C,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;IAClC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE;QAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;YAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACvG,OAAO,CAAC,CAAC;AACX,CAAC;AAED,+FAA+F;AAC/F,MAAM,CAAC,MAAM,OAAO,GAAG,oBAAoB,CAAC;AAE5C,mIAAmI;AACnI,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,IAAY,EAAsB,EAAE,CAC3D,2EAA2E,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;AAE9F;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,cAAc,CAAC,GAAY;IAC/C,IAAI,CAAC;QACH,MAAM,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC;IAC3C,CAAC;IAAC,MAAM,CAAC;QACP,MAAM,IAAI,KAAK,CAAC,uEAAuE,CAAC,CAAC;IAC3F,CAAC;AACH,CAAC;AAED,sFAAsF;AACtF,MAAM,OAAO,UAAW,SAAQ,KAAK;CAAG"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { Context } from './context.ts';
|
|
2
|
+
import type { Templates } from './sync.ts';
|
|
3
|
+
/** What fetching a version brings: its plx-template, a script for node, and the root of the templates it bundles. */
|
|
4
|
+
export interface Fetched {
|
|
5
|
+
readonly plxTemplate: string;
|
|
6
|
+
readonly templates: string;
|
|
7
|
+
}
|
|
8
|
+
/** Fetches the version into the directory `into`, which the caller owns; rejects, saying why, where it cannot. */
|
|
9
|
+
export type FetchVersion = (ctx: Context, version: string, into: string) => Promise<Fetched>;
|
|
10
|
+
export interface VersionOptions {
|
|
11
|
+
/** The version of the running plx. */
|
|
12
|
+
plxVersion: string;
|
|
13
|
+
/** The templates this plx bundles; default `templatesRoot()`. */
|
|
14
|
+
bundled?: string;
|
|
15
|
+
/** How another version is fetched; default `fromRegistry`. */
|
|
16
|
+
fetch?: FetchVersion;
|
|
17
|
+
/** A directory the caller owns and removes, for what is fetched and rendered. */
|
|
18
|
+
scratch: string;
|
|
19
|
+
}
|
|
20
|
+
/** The templates of `version`, and how they are rendered, as the header says. */
|
|
21
|
+
export declare function templatesOf(ctx: Context, version: string, options: VersionOptions): Promise<Templates>;
|
|
22
|
+
/** The version's `@plexus-ms/cli` from the npm registry, installed below `into`, as the header says. */
|
|
23
|
+
export declare const fromRegistry: FetchVersion;
|
|
24
|
+
//# sourceMappingURL=versionTemplates.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"versionTemplates.d.ts","sourceRoot":"","sources":["../src/versionTemplates.ts"],"names":[],"mappings":"AAqCA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAK5C,OAAO,KAAK,EAAmB,SAAS,EAAE,MAAM,WAAW,CAAC;AAG5D,qHAAqH;AACrH,MAAM,WAAW,OAAO;IACtB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;CAC5B;AAED,kHAAkH;AAClH,MAAM,MAAM,YAAY,GAAG,CAAC,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;AAE7F,MAAM,WAAW,cAAc;IAC7B,sCAAsC;IACtC,UAAU,EAAE,MAAM,CAAC;IACnB,iEAAiE;IACjE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,8DAA8D;IAC9D,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB,iFAAiF;IACjF,OAAO,EAAE,MAAM,CAAC;CACjB;AAMD,iFAAiF;AACjF,wBAAsB,WAAW,CAAC,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,SAAS,CAAC,CAa5G;AAqDD,wGAAwG;AACxG,eAAO,MAAM,YAAY,EAAE,YAwC1B,CAAC"}
|