@plexus-ms/cli 0.10.0 → 0.100.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/plx.js +42 -28
- package/package.json +3 -3
package/dist/plx.js
CHANGED
|
@@ -8248,7 +8248,7 @@ function nextMinor(version2) {
|
|
|
8248
8248
|
return `${major}.${Number(minor) + 1}.0`;
|
|
8249
8249
|
}
|
|
8250
8250
|
function latestTag(tags) {
|
|
8251
|
-
return tags.filter((t) => /^v?\d
|
|
8251
|
+
return tags.filter((t) => /^v?\d+(\.\d+){1,2}$/.test(t)).sort((a, b) => compareTrains(a.replace(/^v/, ""), b.replace(/^v/, ""))).at(-1);
|
|
8252
8252
|
}
|
|
8253
8253
|
async function readTrain(ctx, upstream) {
|
|
8254
8254
|
const repos2 = [];
|
|
@@ -8684,6 +8684,10 @@ import { join as join8, relative as relative3 } from "node:path";
|
|
|
8684
8684
|
var isClean = (s) => s.conflicted.length === 0 && s.failed.length === 0 && s.skipped.length === 0;
|
|
8685
8685
|
var BASE_TAG = "ship-base";
|
|
8686
8686
|
var trainBranch = (train) => `train/${train}`;
|
|
8687
|
+
var copierIn = (clone, args) => [
|
|
8688
|
+
"env",
|
|
8689
|
+
[`MISE_IGNORED_CONFIG_PATHS=${clone}`, "mise", ...copierVia(args)]
|
|
8690
|
+
];
|
|
8687
8691
|
async function propagate(ctx, workspace, train) {
|
|
8688
8692
|
const summary = {
|
|
8689
8693
|
train,
|
|
@@ -8758,11 +8762,21 @@ async function updateSite(ctx, consumer, site, clone, upstream, summary) {
|
|
|
8758
8762
|
const answers = await ctx.readFile(join8(target, ANSWERS_FILE));
|
|
8759
8763
|
await ctx.stage(write(join8(target, ANSWERS_FILE), answers.replace(/^_src_path: .*$/m, `_src_path: ${localPreset}`)));
|
|
8760
8764
|
await previewCommit(ctx, clone, `plx preview: ${site.rel} reads ${localPreset} from the local checkout`);
|
|
8761
|
-
await ctx.stage(run(
|
|
8765
|
+
await ctx.stage(run(...copierIn(clone, [
|
|
8766
|
+
"update",
|
|
8767
|
+
"--skip-answered",
|
|
8768
|
+
"--trust",
|
|
8769
|
+
"--defaults",
|
|
8770
|
+
"--skip-tasks",
|
|
8771
|
+
"--vcs-ref",
|
|
8772
|
+
"main"
|
|
8773
|
+
]), {
|
|
8774
|
+
cwd: target
|
|
8775
|
+
}));
|
|
8762
8776
|
} else {
|
|
8763
8777
|
ctx.say(`\u2192 ${site.rel}: copier update`);
|
|
8764
8778
|
const args = ["update", "--skip-answered", "--trust", "--skip-tasks", ...ctx.yes ? ["--defaults"] : []];
|
|
8765
|
-
await ctx.apply([run(
|
|
8779
|
+
await ctx.apply([run(...copierIn(clone, args), { cwd: target, interactive: true })]);
|
|
8766
8780
|
}
|
|
8767
8781
|
} catch (error) {
|
|
8768
8782
|
ctx.say(` \u2717 FAILED \u2014 copier update exited nonzero${detail(error)}`);
|
|
@@ -9192,7 +9206,7 @@ async function awaitPublished(ctx, next, wait) {
|
|
|
9192
9206
|
for (; ; ) {
|
|
9193
9207
|
const still = [];
|
|
9194
9208
|
for (const name of missing) {
|
|
9195
|
-
const seen = (await ctx.read("npm", ["view", `${name}@${next}`, "version"]).catch(() => "")).trim();
|
|
9209
|
+
const seen = (await ctx.read("npm", ["view", `${name}@${next}`, "version", "--prefer-online"]).catch(() => "")).trim();
|
|
9196
9210
|
if (seen !== next)
|
|
9197
9211
|
still.push(name);
|
|
9198
9212
|
}
|
|
@@ -9264,7 +9278,7 @@ async function planBookkeeping(ctx, train, repos2, next, today2) {
|
|
|
9264
9278
|
// src/program.ts
|
|
9265
9279
|
import { createRequire } from "node:module";
|
|
9266
9280
|
|
|
9267
|
-
// ../../node_modules/.pnpm/@inquirer+core@12.0.
|
|
9281
|
+
// ../../node_modules/.pnpm/@inquirer+core@12.0.6_@types+node@26.6.5/node_modules/@inquirer/core/dist/lib/key.js
|
|
9268
9282
|
var keybindings = ["emacs", "vim"];
|
|
9269
9283
|
var keybindingLookup = new Set(keybindings);
|
|
9270
9284
|
function isKeybinding(value) {
|
|
@@ -9279,7 +9293,7 @@ function getDefaultKeybindings() {
|
|
|
9279
9293
|
var isTabKey = (key) => key.name === "tab";
|
|
9280
9294
|
var isEnterKey = (key) => key.name === "enter" || key.name === "return";
|
|
9281
9295
|
|
|
9282
|
-
// ../../node_modules/.pnpm/@inquirer+core@12.0.
|
|
9296
|
+
// ../../node_modules/.pnpm/@inquirer+core@12.0.6_@types+node@26.6.5/node_modules/@inquirer/core/dist/lib/errors.js
|
|
9283
9297
|
var AbortPromptError = class extends Error {
|
|
9284
9298
|
name = "AbortPromptError";
|
|
9285
9299
|
message = "Prompt was aborted";
|
|
@@ -9302,10 +9316,10 @@ var ValidationError = class extends Error {
|
|
|
9302
9316
|
name = "ValidationError";
|
|
9303
9317
|
};
|
|
9304
9318
|
|
|
9305
|
-
// ../../node_modules/.pnpm/@inquirer+core@12.0.
|
|
9319
|
+
// ../../node_modules/.pnpm/@inquirer+core@12.0.6_@types+node@26.6.5/node_modules/@inquirer/core/dist/lib/use-state.js
|
|
9306
9320
|
import { AsyncResource as AsyncResource2 } from "node:async_hooks";
|
|
9307
9321
|
|
|
9308
|
-
// ../../node_modules/.pnpm/@inquirer+core@12.0.
|
|
9322
|
+
// ../../node_modules/.pnpm/@inquirer+core@12.0.6_@types+node@26.6.5/node_modules/@inquirer/core/dist/lib/hook-engine.js
|
|
9309
9323
|
import { AsyncLocalStorage, AsyncResource } from "node:async_hooks";
|
|
9310
9324
|
var hookStorage = new AsyncLocalStorage();
|
|
9311
9325
|
function createStore(rl) {
|
|
@@ -9409,7 +9423,7 @@ var effectScheduler = {
|
|
|
9409
9423
|
}
|
|
9410
9424
|
};
|
|
9411
9425
|
|
|
9412
|
-
// ../../node_modules/.pnpm/@inquirer+core@12.0.
|
|
9426
|
+
// ../../node_modules/.pnpm/@inquirer+core@12.0.6_@types+node@26.6.5/node_modules/@inquirer/core/dist/lib/use-state.js
|
|
9413
9427
|
function isFactory(value) {
|
|
9414
9428
|
return typeof value === "function";
|
|
9415
9429
|
}
|
|
@@ -9435,7 +9449,7 @@ function useState(defaultValue) {
|
|
|
9435
9449
|
});
|
|
9436
9450
|
}
|
|
9437
9451
|
|
|
9438
|
-
// ../../node_modules/.pnpm/@inquirer+core@12.0.
|
|
9452
|
+
// ../../node_modules/.pnpm/@inquirer+core@12.0.6_@types+node@26.6.5/node_modules/@inquirer/core/dist/lib/use-effect.js
|
|
9439
9453
|
function useEffect(cb, depArray) {
|
|
9440
9454
|
withPointer((pointer) => {
|
|
9441
9455
|
const oldDeps = pointer.get();
|
|
@@ -9447,10 +9461,10 @@ function useEffect(cb, depArray) {
|
|
|
9447
9461
|
});
|
|
9448
9462
|
}
|
|
9449
9463
|
|
|
9450
|
-
// ../../node_modules/.pnpm/@inquirer+core@12.0.
|
|
9464
|
+
// ../../node_modules/.pnpm/@inquirer+core@12.0.6_@types+node@26.6.5/node_modules/@inquirer/core/dist/lib/theme.js
|
|
9451
9465
|
import { styleText } from "node:util";
|
|
9452
9466
|
|
|
9453
|
-
// ../../node_modules/.pnpm/@inquirer+figures@2.0.
|
|
9467
|
+
// ../../node_modules/.pnpm/@inquirer+figures@2.0.10/node_modules/@inquirer/figures/dist/index.js
|
|
9454
9468
|
import process2 from "node:process";
|
|
9455
9469
|
function isUnicodeSupported() {
|
|
9456
9470
|
if (!process2.platform.startsWith("win")) {
|
|
@@ -9743,7 +9757,7 @@ var figures = shouldUseMain ? mainSymbols : fallbackSymbols;
|
|
|
9743
9757
|
var dist_default = figures;
|
|
9744
9758
|
var replacements = Object.entries(specialMainSymbols);
|
|
9745
9759
|
|
|
9746
|
-
// ../../node_modules/.pnpm/@inquirer+core@12.0.
|
|
9760
|
+
// ../../node_modules/.pnpm/@inquirer+core@12.0.6_@types+node@26.6.5/node_modules/@inquirer/core/dist/lib/theme.js
|
|
9747
9761
|
var defaultTheme = {
|
|
9748
9762
|
prefix: {
|
|
9749
9763
|
idle: styleText("blue", "?"),
|
|
@@ -9771,7 +9785,7 @@ function getDefaultTheme() {
|
|
|
9771
9785
|
};
|
|
9772
9786
|
}
|
|
9773
9787
|
|
|
9774
|
-
// ../../node_modules/.pnpm/@inquirer+core@12.0.
|
|
9788
|
+
// ../../node_modules/.pnpm/@inquirer+core@12.0.6_@types+node@26.6.5/node_modules/@inquirer/core/dist/lib/make-theme.js
|
|
9775
9789
|
function isPlainObject(value) {
|
|
9776
9790
|
if (typeof value !== "object" || value === null)
|
|
9777
9791
|
return false;
|
|
@@ -9799,7 +9813,7 @@ function makeTheme(...themes) {
|
|
|
9799
9813
|
return deepMerge(...themesToMerge);
|
|
9800
9814
|
}
|
|
9801
9815
|
|
|
9802
|
-
// ../../node_modules/.pnpm/@inquirer+core@12.0.
|
|
9816
|
+
// ../../node_modules/.pnpm/@inquirer+core@12.0.6_@types+node@26.6.5/node_modules/@inquirer/core/dist/lib/use-prefix.js
|
|
9803
9817
|
function usePrefix({ status = "idle", theme }) {
|
|
9804
9818
|
const [showLoader, setShowLoader] = useState(false);
|
|
9805
9819
|
const [tick, setTick] = useState(0);
|
|
@@ -9830,12 +9844,12 @@ function usePrefix({ status = "idle", theme }) {
|
|
|
9830
9844
|
return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
|
|
9831
9845
|
}
|
|
9832
9846
|
|
|
9833
|
-
// ../../node_modules/.pnpm/@inquirer+core@12.0.
|
|
9847
|
+
// ../../node_modules/.pnpm/@inquirer+core@12.0.6_@types+node@26.6.5/node_modules/@inquirer/core/dist/lib/use-ref.js
|
|
9834
9848
|
function useRef(val) {
|
|
9835
9849
|
return useState({ current: val })[0];
|
|
9836
9850
|
}
|
|
9837
9851
|
|
|
9838
|
-
// ../../node_modules/.pnpm/@inquirer+core@12.0.
|
|
9852
|
+
// ../../node_modules/.pnpm/@inquirer+core@12.0.6_@types+node@26.6.5/node_modules/@inquirer/core/dist/lib/use-keypress.js
|
|
9839
9853
|
function useKeypress(userHandler) {
|
|
9840
9854
|
const signal = useRef(userHandler);
|
|
9841
9855
|
signal.current = userHandler;
|
|
@@ -9854,7 +9868,7 @@ function useKeypress(userHandler) {
|
|
|
9854
9868
|
}, []);
|
|
9855
9869
|
}
|
|
9856
9870
|
|
|
9857
|
-
// ../../node_modules/.pnpm/@inquirer+core@12.0.
|
|
9871
|
+
// ../../node_modules/.pnpm/@inquirer+core@12.0.6_@types+node@26.6.5/node_modules/@inquirer/core/dist/lib/utils.js
|
|
9858
9872
|
var import_cli_width = __toESM(require_cli_width(), 1);
|
|
9859
9873
|
|
|
9860
9874
|
// ../../node_modules/.pnpm/fast-string-truncated-width@3.0.3/node_modules/fast-string-truncated-width/dist/utils.js
|
|
@@ -10193,7 +10207,7 @@ function wrapAnsi(string, columns, options) {
|
|
|
10193
10207
|
return String(string).normalize().split(CRLF_OR_LF).map((line) => exec(line, columns, options)).join("\n");
|
|
10194
10208
|
}
|
|
10195
10209
|
|
|
10196
|
-
// ../../node_modules/.pnpm/@inquirer+core@12.0.
|
|
10210
|
+
// ../../node_modules/.pnpm/@inquirer+core@12.0.6_@types+node@26.6.5/node_modules/@inquirer/core/dist/lib/utils.js
|
|
10197
10211
|
function breakLines(content, width) {
|
|
10198
10212
|
return content.split("\n").flatMap((line) => wrapAnsi(line, width, { trim: false, wordWrap: false }).split("\n").map((str) => str.trimEnd())).join("\n");
|
|
10199
10213
|
}
|
|
@@ -10201,11 +10215,11 @@ function readlineWidth() {
|
|
|
10201
10215
|
return (0, import_cli_width.default)({ defaultWidth: 80, output: readline().output });
|
|
10202
10216
|
}
|
|
10203
10217
|
|
|
10204
|
-
// ../../node_modules/.pnpm/@inquirer+core@12.0.
|
|
10218
|
+
// ../../node_modules/.pnpm/@inquirer+core@12.0.6_@types+node@26.6.5/node_modules/@inquirer/core/dist/lib/create-prompt.js
|
|
10205
10219
|
import * as readline2 from "node:readline";
|
|
10206
10220
|
import { AsyncResource as AsyncResource3 } from "node:async_hooks";
|
|
10207
10221
|
|
|
10208
|
-
// ../../node_modules/.pnpm/@inquirer+type@4.2.
|
|
10222
|
+
// ../../node_modules/.pnpm/@inquirer+type@4.2.1_@types+node@26.6.5/node_modules/@inquirer/type/dist/utils.js
|
|
10209
10223
|
function withResolver() {
|
|
10210
10224
|
let resolve10;
|
|
10211
10225
|
let reject;
|
|
@@ -10216,7 +10230,7 @@ function withResolver() {
|
|
|
10216
10230
|
return { promise, resolve: resolve10, reject };
|
|
10217
10231
|
}
|
|
10218
10232
|
|
|
10219
|
-
// ../../node_modules/.pnpm/@inquirer+core@12.0.
|
|
10233
|
+
// ../../node_modules/.pnpm/@inquirer+core@12.0.6_@types+node@26.6.5/node_modules/@inquirer/core/dist/lib/create-prompt.js
|
|
10220
10234
|
var import_mute_stream = __toESM(require_lib(), 1);
|
|
10221
10235
|
|
|
10222
10236
|
// ../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/signals.js
|
|
@@ -10470,10 +10484,10 @@ var {
|
|
|
10470
10484
|
unload
|
|
10471
10485
|
} = signalExitWrap(processOk(process3) ? new SignalExit(process3) : new SignalExitFallback());
|
|
10472
10486
|
|
|
10473
|
-
// ../../node_modules/.pnpm/@inquirer+core@12.0.
|
|
10487
|
+
// ../../node_modules/.pnpm/@inquirer+core@12.0.6_@types+node@26.6.5/node_modules/@inquirer/core/dist/lib/screen-manager.js
|
|
10474
10488
|
import { stripVTControlCharacters } from "node:util";
|
|
10475
10489
|
|
|
10476
|
-
// ../../node_modules/.pnpm/@inquirer+ansi@2.0.
|
|
10490
|
+
// ../../node_modules/.pnpm/@inquirer+ansi@2.0.10/node_modules/@inquirer/ansi/dist/index.js
|
|
10477
10491
|
var ESC2 = "\x1B[";
|
|
10478
10492
|
var cursorLeft = ESC2 + "G";
|
|
10479
10493
|
var cursorHide = ESC2 + "?25l";
|
|
@@ -10489,7 +10503,7 @@ var cursorTo = (x, y) => {
|
|
|
10489
10503
|
var eraseLine = ESC2 + "2K";
|
|
10490
10504
|
var eraseLines = (lines) => lines > 0 ? (eraseLine + cursorUp(1)).repeat(lines - 1) + eraseLine + cursorLeft : "";
|
|
10491
10505
|
|
|
10492
|
-
// ../../node_modules/.pnpm/@inquirer+core@12.0.
|
|
10506
|
+
// ../../node_modules/.pnpm/@inquirer+core@12.0.6_@types+node@26.6.5/node_modules/@inquirer/core/dist/lib/screen-manager.js
|
|
10493
10507
|
var height = (content) => content.split("\n").length;
|
|
10494
10508
|
var lastLine = (content) => content.split("\n").pop() ?? "";
|
|
10495
10509
|
var ScreenManager = class {
|
|
@@ -10550,7 +10564,7 @@ var ScreenManager = class {
|
|
|
10550
10564
|
}
|
|
10551
10565
|
};
|
|
10552
10566
|
|
|
10553
|
-
// ../../node_modules/.pnpm/@inquirer+core@12.0.
|
|
10567
|
+
// ../../node_modules/.pnpm/@inquirer+core@12.0.6_@types+node@26.6.5/node_modules/@inquirer/core/dist/lib/create-prompt.js
|
|
10554
10568
|
import path from "node:path";
|
|
10555
10569
|
var nativeSetImmediate = globalThis.setImmediate;
|
|
10556
10570
|
var nativeClearImmediate = globalThis.clearImmediate;
|
|
@@ -10658,7 +10672,7 @@ function createPrompt(view) {
|
|
|
10658
10672
|
}
|
|
10659
10673
|
});
|
|
10660
10674
|
};
|
|
10661
|
-
if ("readableFlowing" in input) {
|
|
10675
|
+
if ("readableFlowing" in input && input.isTTY) {
|
|
10662
10676
|
const immediate = nativeSetImmediate(startCycle);
|
|
10663
10677
|
cleanups.add(() => nativeClearImmediate(immediate));
|
|
10664
10678
|
} else {
|
|
@@ -10670,7 +10684,7 @@ function createPrompt(view) {
|
|
|
10670
10684
|
return prompt;
|
|
10671
10685
|
}
|
|
10672
10686
|
|
|
10673
|
-
// ../../node_modules/.pnpm/@inquirer+confirm@6.3.
|
|
10687
|
+
// ../../node_modules/.pnpm/@inquirer+confirm@6.3.5_@types+node@26.6.5/node_modules/@inquirer/confirm/dist/index.js
|
|
10674
10688
|
import { styleText as styleText2 } from "node:util";
|
|
10675
10689
|
var confirmTheme = {
|
|
10676
10690
|
keywords: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plexus-ms/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.100.0",
|
|
4
4
|
"description": "plx, the Plexus command-line tool: a single-script adapter over @plexus-ms/lib",
|
|
5
5
|
"license": "GPL-3.0-or-later",
|
|
6
6
|
"type": "module",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
],
|
|
13
13
|
"repository": {
|
|
14
14
|
"type": "git",
|
|
15
|
-
"url": "git+https://github.com/plexus-ms/
|
|
15
|
+
"url": "git+https://github.com/plexus-ms/primitives.git",
|
|
16
16
|
"directory": "packages/cli"
|
|
17
17
|
},
|
|
18
18
|
"publishConfig": {
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@inquirer/prompts": "^8.7.4",
|
|
27
|
-
"@plexus-ms/lib": "0.
|
|
27
|
+
"@plexus-ms/lib": "0.100.0",
|
|
28
28
|
"commander": "^15.0.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|