@plexus-ms/lib 0.117.0 → 0.119.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/ship.js DELETED
@@ -1,296 +0,0 @@
1
- // ship: the release train (§ 1.5 PLX). Every train repo ships under ONE
2
- // version, tagged identically whether or not it changed, in two phases:
3
- //
4
- // preflight (plx itself not behind its newest release, self.ts; every train
5
- // repo on main, clean, not behind origin, the latest tags in agreement; gh
6
- // logged in; no mutable release on any train repo)
7
- // → phase one: primitives' bookkeeping (galaxy versions, the train-versioned
8
- // packages' manifests, its own workflow refs), commit, tag, push, GitHub
9
- // release — which locks the tag and runs primitives' release workflow
10
- // → wait until the three packages are on npm at the train number
11
- // → phase two: the presets' and the compendium's bookkeeping (collection
12
- // pin, workflow refs, plx pins, the config pin and catalog entry, the map's version and
13
- // timestamp, `changed` on every standard module whose requirements moved),
14
- // commit, tag, push, release, repo by repo; the compendium last, its
15
- // release created as a draft, given the train manifest (manifest.ts) and
16
- // only then published, because an immutable release locks its assets
17
- //
18
- // and there it ends. Cutting a train and a repo taking it are separate events
19
- // (§ 3 PLX-Updates): ship looks for no consumer and opens no pull request; a
20
- // repo takes the train itself, when it needs it (update.ts). The dry run is
21
- // the one place consumers still appear: it previews the unreleased presets
22
- // against the workspace's consumers (preview.ts), a maintainer's test.
23
- //
24
- // The wait is what lets phase two pin the train number: the compendium's
25
- // commit hook installs plx at that pin, and the presets hand it to every
26
- // consumer. Substance commits stay human; ship writes only the mechanical
27
- // bookkeeping. A failure between the first tag and the last release leaves a
28
- // half-tagged train; the recovery is a re-run naming the same version, which
29
- // skips the repos already tagged and the releases that exist. A release is
30
- // never deleted: a deleted immutable release burns its number for good.
31
- //
32
- // plx ship ~/dev # next train = minor+1 over the latest
33
- // plx ship ~/dev --train 1.0.0 # explicit train version
34
- // plx -n ship ~/dev # preview: list the bookkeeping and tags, and
35
- // # try the presets on the consumers in scratch clones
36
- // plx -y ship ~/dev # unattended: no prompt
37
- import { join } from 'node:path';
38
- import { bumpCatalogPin, bumpCollectionPin, bumpConfigPin, bumpGalaxyVersion, bumpManifestVersion, bumpPlxPin, bumpRunnerImagePin, bumpWorkflowRefs, COLLECTIONS, CONFIG_PIN, galaxyFile, PLX_PIN, RUNNER_IMAGE_PIN_FILE, stampChanged, stampStandard, today as todayOf, WORKFLOW_REF, } from "./bookkeeping.js";
39
- import { readCatalog } from "./catalog.js";
40
- import { run, write } from "./effects.js";
41
- import { frontmatterField } from "./frontmatter.js";
42
- import { buildManifest, MANIFEST_FILE, renderManifest } from "./manifest.js";
43
- import { previewConsumers } from "./preview.js";
44
- import { extractRequirements, MAP_PAGE, modulePages } from "./requirements.js";
45
- import { preflightSelf } from "./self.js";
46
- import { emptySummary } from "./take.js";
47
- import { COMPENDIUM, PRIMITIVES, phasesOf, preflightForge, preflightRelease, readTrain, resolveVersion, TRAIN_PACKAGES, UPSTREAM, } from "./train.js";
48
- const DEFAULT_WAIT = { interval: 15_000, timeout: 20 * 60_000 };
49
- export async function ship(ctx, options) {
50
- const upstream = join(options.workspace, UPSTREAM);
51
- if (options.plx)
52
- await preflightSelf(ctx, options.plx);
53
- const train = await readTrain(ctx, upstream);
54
- await preflightForge(ctx);
55
- await preflightRelease(ctx, train);
56
- await preflightImmutable(ctx, train);
57
- const next = resolveVersion(train, options.train, false);
58
- await release(ctx, train, next, options.today ?? todayOf(), { ...DEFAULT_WAIT, ...options.wait });
59
- if (ctx.dryRun)
60
- return { ...(await previewConsumers(ctx, options.workspace, next)), released: true };
61
- ctx.say(`• train ${next} is cut; every repo takes it itself, when it needs it (plx update)`);
62
- return { ...emptySummary(next, false), released: true };
63
- }
64
- /**
65
- * The immutable-releases setting is not readable through the API, but every
66
- * release says whether it is immutable: a train repo whose newest release is
67
- * mutable had the setting off when it was cut, and the train stops before
68
- * another number is spent. A repo with no release yet is checked on its first
69
- * one, right after creation (tagAndRelease).
70
- */
71
- async function preflightImmutable(ctx, train) {
72
- for (const repo of train.repos) {
73
- const newest = (await ctx
74
- .read('gh', ['api', 'repos/{owner}/{repo}/releases?per_page=1', '--jq', '.[0].immutable'], { cwd: repo.path })
75
- .catch(() => '')).trim();
76
- if (newest === 'false')
77
- throw new Error(mutableRelease(`${repo.name}: its newest GitHub release is not immutable`));
78
- }
79
- }
80
- const mutableRelease = (what) => `${what} — enable immutable releases on the plexus-ms organisation (Settings → General → Releases); existing releases stay as they are (never delete one: a deleted immutable release burns its number)`;
81
- async function release(ctx, train, next, today, wait) {
82
- ctx.say(`→ train ${train.last ?? 'none'} → ${next}`);
83
- for (const repo of train.repos) {
84
- if (repo.pending.length === 0)
85
- ctx.say(` ${repo.name}: no changes since ${repo.latest} — tag only`);
86
- else {
87
- ctx.say(` ${repo.name} (since ${repo.latest ?? 'the beginning'}):`);
88
- for (const line of repo.pending.slice(0, PENDING_SHOWN))
89
- ctx.say(` ${line}`);
90
- if (repo.pending.length > PENDING_SHOWN)
91
- ctx.say(` … and ${repo.pending.length - PENDING_SHOWN} more`);
92
- }
93
- }
94
- if (!(await ctx.confirm(`tag all ${train.repos.length} repos as ${next}, release them and push?`)))
95
- throw new Error('aborted');
96
- const [one = [], two = []] = phasesOf(train);
97
- try {
98
- await releasePhase(ctx, train, one, next, today);
99
- await awaitPublished(ctx, next, wait);
100
- await releasePhase(ctx, train, two, next, today);
101
- }
102
- catch (error) {
103
- const message = error instanceof Error ? error.message : String(error);
104
- throw new Error(`${message}\n✗ ship stopped during the release; re-run with --train ${next} to finish it (tagged repos and existing releases are skipped; if the registry already has ${next}, update plx first: it is the same code, built from the commit phase one tagged)`);
105
- }
106
- }
107
- /** A repo never tagged lists its whole history as pending; this many lines of it are shown. */
108
- const PENDING_SHOWN = 20;
109
- /** One phase: the bookkeeping of its repos, then each tagged, pushed and released. */
110
- async function releasePhase(ctx, train, repos, next, today) {
111
- ctx.say(`→ phase: ${repos.map((r) => r.name).join(', ')}`);
112
- await ctx.apply(await planBookkeeping(ctx, train, repos, next, today));
113
- for (const repo of repos)
114
- await tagAndRelease(ctx, repo, next, today);
115
- }
116
- async function tagAndRelease(ctx, repo, next, today) {
117
- const tagged = await ctx
118
- .read('git', ['rev-parse', '-q', '--verify', `refs/tags/${next}`], { cwd: repo.path })
119
- .then(() => true)
120
- .catch(() => false);
121
- if (tagged)
122
- ctx.say(`• ${repo.name}: already tagged ${next}`);
123
- else
124
- await ctx.apply([run('git', ['tag', '-a', next, '-m', `train ${next}`], { cwd: repo.path })]);
125
- await ctx.apply([run('git', ['push', 'origin', 'main', next], { cwd: repo.path })]);
126
- // The GitHub release is what makes the tag immutable, and on primitives it
127
- // is what triggers the publish: nothing is ever published from a tag that
128
- // can still move. --verify-tag refuses to create a tag of its own.
129
- const create = ['release', 'create', next, '--verify-tag', '--generate-notes', '--title', next];
130
- if (repo.name === COMPENDIUM) {
131
- if (!(await releaseWithManifest(ctx, repo, next, today, create)))
132
- return;
133
- }
134
- else {
135
- const released = await ctx
136
- .read('gh', ['release', 'view', next], { cwd: repo.path })
137
- .then(() => true)
138
- .catch(() => false);
139
- if (released) {
140
- ctx.say(`• ${repo.name}: release ${next} exists`);
141
- return;
142
- }
143
- await ctx.apply([run('gh', create, { cwd: repo.path })]);
144
- }
145
- if (ctx.dryRun)
146
- return;
147
- const immutable = (await ctx.read('gh', ['api', `repos/{owner}/{repo}/releases/tags/${next}`, '--jq', '.immutable'], {
148
- cwd: repo.path,
149
- })).trim();
150
- if (immutable !== 'true')
151
- throw new Error(mutableRelease(`${repo.name}: release ${next} was created mutable, and its tag can still move`));
152
- }
153
- /**
154
- * The compendium's release carries the train manifest, and an immutable
155
- * release locks its assets: so the release is created as a draft, the manifest
156
- * uploaded to it, and only then published. Until then the train does not show
157
- * to a repo asking for the trains (update.ts). A draft left by a run that
158
- * stopped is taken up where it stands: the manifest uploaded again, then
159
- * published. Resolves false when the release was published already.
160
- */
161
- async function releaseWithManifest(ctx, repo, next, today, create) {
162
- const state = (await ctx
163
- .read('gh', ['release', 'view', next, '--json', 'isDraft', '--jq', '.isDraft'], { cwd: repo.path })
164
- .catch(() => '')).trim();
165
- if (state === 'false') {
166
- ctx.say(`• ${repo.name}: release ${next} exists`);
167
- return false;
168
- }
169
- if (state === 'true')
170
- ctx.say(`• ${repo.name}: release ${next} is still a draft — finishing it`);
171
- else
172
- await ctx.apply([run('gh', [...create, '--draft'], { cwd: repo.path })]);
173
- // Written from the checkout the tag was cut from, stamps included; under a
174
- // dry run the stamps are only announced, so the upload is too.
175
- const scratch = (await ctx.stage(run('mktemp', ['-d'])))?.trim() ?? '';
176
- const file = join(scratch, MANIFEST_FILE);
177
- try {
178
- const manifest = buildManifest(await readCatalog(ctx, repo.path), next, today);
179
- ctx.say(` ${repo.name}: ${MANIFEST_FILE}: train ${next}, ${manifest.modules.length} modules`);
180
- await ctx.stage(write(file, renderManifest(manifest)));
181
- await ctx.apply([
182
- run('gh', ['release', 'upload', next, file, '--clobber'], { cwd: repo.path }),
183
- run('gh', ['release', 'edit', next, '--draft=false'], { cwd: repo.path }),
184
- ]);
185
- }
186
- finally {
187
- if (scratch)
188
- await ctx.stage(run('rm', ['-rf', scratch]));
189
- }
190
- return true;
191
- }
192
- /**
193
- * Between the phases: primitives' release workflow publishes the three
194
- * train-versioned packages, and phase two pins them. Polled with the same
195
- * question an operator would ask (`npm view <name>@<train> version`); the dry
196
- * run names the wait and moves on.
197
- */
198
- async function awaitPublished(ctx, next, wait) {
199
- const names = TRAIN_PACKAGES.map((p) => p.name);
200
- const list = names.map((n) => `${n}@${next}`).join(', ');
201
- if (ctx.dryRun) {
202
- ctx.say(`⏳ [dry-run] would wait for ${list} on npm (${PRIMITIVES}' release workflow publishes them)`);
203
- return;
204
- }
205
- ctx.say(`⏳ waiting for ${list} on npm (${PRIMITIVES}' release workflow publishes them)`);
206
- const started = Date.now();
207
- let missing = [...names];
208
- for (;;) {
209
- const still = [];
210
- for (const name of missing) {
211
- // --prefer-online: npm otherwise answers from a packument it cached up to five minutes ago.
212
- const seen = (await ctx.read('npm', ['view', `${name}@${next}`, 'version', '--prefer-online']).catch(() => '')).trim();
213
- if (seen !== next)
214
- still.push(name);
215
- }
216
- missing = still;
217
- if (missing.length === 0)
218
- break;
219
- if (Date.now() - started >= wait.timeout)
220
- throw new Error(`${missing.join(', ')} not on npm at ${next} after ${Math.round(wait.timeout / 60_000)} min — check the release workflow (gh run list -R plexus-ms/${PRIMITIVES})`);
221
- await new Promise((resolve) => setTimeout(resolve, wait.interval));
222
- }
223
- ctx.say(` ✓ ${list} on npm`);
224
- }
225
- /** The bookkeeping writes of the given repos, then one commit per repo that has any. */
226
- async function planBookkeeping(ctx, train, repos, next, today) {
227
- const plan = [];
228
- const touched = new Set();
229
- const repo = (name) => repos.find((r) => r.name === name);
230
- /** Plan a write when the transform changes the file, saying what it does; a missing file is left alone. */
231
- const edit = async (r, rel, what, transform) => {
232
- const path = join(r.path, rel);
233
- const text = await ctx.readFile(path).catch(() => undefined);
234
- if (text === undefined)
235
- return;
236
- const edited = transform(text);
237
- if (edited === text)
238
- return;
239
- ctx.say(` ${r.name}: ${rel}: ${what}`);
240
- plan.push(write(path, edited));
241
- touched.add(r);
242
- };
243
- /** The tracked files of a repo containing a string, by pathspec. */
244
- const grep = async (r, needle, pathspecs) => (await ctx.read('git', ['grep', '-l', needle, '--', ...pathspecs], { cwd: r.path }).catch(() => ''))
245
- .split('\n')
246
- .filter(Boolean);
247
- const primitives = repo(PRIMITIVES);
248
- if (primitives) {
249
- for (const c of COLLECTIONS)
250
- await edit(primitives, galaxyFile(c), `plexus.${c} version → ${next}`, (t) => bumpGalaxyVersion(t, next));
251
- await edit(primitives, RUNNER_IMAGE_PIN_FILE, `runner image → ${next}`, (t) => bumpRunnerImagePin(t, next));
252
- for (const p of TRAIN_PACKAGES)
253
- await edit(primitives, `${p.dir}/package.json`, `${p.name} → ${next}`, (t) => bumpManifestVersion(t, next));
254
- }
255
- // Only the pins of the plexus.* collections: a collection from elsewhere in the same file stays untouched.
256
- const operationsPreset = repo('preset-repo-operations');
257
- if (operationsPreset)
258
- await edit(operationsPreset, 'template/requirements.yml', `plexus.* pins → ${next}`, (t) => bumpCollectionPin(t, next));
259
- for (const r of repos) {
260
- for (const f of await grep(r, WORKFLOW_REF, ['*.yml', '*.yaml', '*.jinja']))
261
- await edit(r, f, `workflow refs → @${next}`, (t) => bumpWorkflowRefs(t, next));
262
- for (const f of await grep(r, PLX_PIN, ['*.toml', '*.toml.jinja']))
263
- await edit(r, f, `plx pin → ${next}`, (t) => bumpPlxPin(t, next));
264
- for (const f of await grep(r, `"${CONFIG_PIN}"`, ['*package.json', '*package.json.jinja']))
265
- await edit(r, f, `${CONFIG_PIN} pin → ${next}`, (t) => bumpConfigPin(t, next));
266
- for (const f of await grep(r, `"${CONFIG_PIN}"`, ['*pnpm-workspace.yaml', '*pnpm-workspace.yaml.jinja']))
267
- await edit(r, f, `${CONFIG_PIN} catalog entry → ${next}`, (t) => bumpCatalogPin(t, next));
268
- }
269
- // The map carries the train version and the date it was cut (§ 1.5 PLX); a
270
- // standard module is stamped `changed` when its extracted requirement lines
271
- // differ from the previous train's, read with the same extractor the
272
- // compendium's check runs, so the two never disagree.
273
- const comp = repo('compendium');
274
- if (comp) {
275
- await edit(comp, MAP_PAGE, `version → ${next}, timestamp → ${today}`, (t) => stampStandard(t, next, today));
276
- for (const page of await modulePages(ctx, comp.path)) {
277
- const text = await ctx.readFile(join(comp.path, page));
278
- if (frontmatterField(text, 'maturity') !== 'standard')
279
- continue;
280
- const previous = comp.tag
281
- ? await ctx.read('git', ['show', `${comp.tag}:${page}`], { cwd: comp.path }).catch(() => '')
282
- : '';
283
- if (extractRequirements(text).join('\n') === extractRequirements(previous).join('\n'))
284
- continue;
285
- await edit(comp, page, `requirements changed since ${comp.latest ?? 'the beginning'} → changed: ${next}`, (t) => stampChanged(t, next));
286
- }
287
- }
288
- for (const r of train.repos) {
289
- if (!touched.has(r))
290
- continue;
291
- plan.push(run('git', ['add', '-A'], { cwd: r.path }));
292
- plan.push(run('git', ['commit', '--quiet', '-m', `chore: train ${next} bookkeeping`], { cwd: r.path }));
293
- }
294
- return plan;
295
- }
296
- //# sourceMappingURL=ship.js.map
package/dist/ship.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"ship.js","sourceRoot":"","sources":["../src/ship.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,wEAAwE;AACxE,EAAE;AACF,8EAA8E;AAC9E,6EAA6E;AAC7E,qDAAqD;AACrD,+EAA+E;AAC/E,6EAA6E;AAC7E,0EAA0E;AAC1E,mEAAmE;AACnE,2EAA2E;AAC3E,4FAA4F;AAC5F,+EAA+E;AAC/E,yEAAyE;AACzE,6EAA6E;AAC7E,yEAAyE;AACzE,EAAE;AACF,8EAA8E;AAC9E,6EAA6E;AAC7E,4EAA4E;AAC5E,2EAA2E;AAC3E,uEAAuE;AACvE,EAAE;AACF,yEAAyE;AACzE,yEAAyE;AACzE,0EAA0E;AAC1E,6EAA6E;AAC7E,6EAA6E;AAC7E,2EAA2E;AAC3E,wEAAwE;AACxE,EAAE;AACF,6EAA6E;AAC7E,+DAA+D;AAC/D,oFAAoF;AACpF,2FAA2F;AAC3F,8DAA8D;AAC9D,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EACL,cAAc,EACd,iBAAiB,EACjB,aAAa,EACb,iBAAiB,EACjB,mBAAmB,EACnB,UAAU,EACV,kBAAkB,EAClB,gBAAgB,EAChB,WAAW,EACX,UAAU,EACV,UAAU,EACV,OAAO,EACP,qBAAqB,EACrB,YAAY,EACZ,aAAa,EACb,KAAK,IAAI,OAAO,EAChB,YAAY,GACb,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,OAAO,EAAa,GAAG,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,aAAa,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