@tablation/crew 0.148.0 → 0.149.1
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/cli.js +84 -74
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1185,6 +1185,11 @@ function render(e) {
|
|
|
1185
1185
|
const level = e.level === "info" ? "" : `${e.level.toUpperCase()}: `;
|
|
1186
1186
|
return `${e.at} ${scope}:${ticket} ${level}${e.message}`;
|
|
1187
1187
|
}
|
|
1188
|
+
function renderPlain(e) {
|
|
1189
|
+
const level = e.level === "info" ? "" : `${e.level === "warn" ? "warning" : e.level}: `;
|
|
1190
|
+
const ticket = e.ticket ? `${e.ticket}: ` : "";
|
|
1191
|
+
return `${level}${ticket}${e.message}`;
|
|
1192
|
+
}
|
|
1188
1193
|
var DEFAULT_EVENTS_ROTATE_BYTES = 64 * 1024 * 1024;
|
|
1189
1194
|
var ROTATED_EVENTS_RE = /^events\.\d{8}T\d{6}Z(?:-\d+)?\.jsonl$/;
|
|
1190
1195
|
var ROTATE_LOCK_STALE_MS = 6e4;
|
|
@@ -1254,7 +1259,8 @@ var Emitter = class _Emitter {
|
|
|
1254
1259
|
message,
|
|
1255
1260
|
...extra.role ?? this.role ? { role: extra.role ?? this.role } : {},
|
|
1256
1261
|
...extra.ticket ? { ticket: extra.ticket } : {},
|
|
1257
|
-
...extra.data ? { data: extra.data } : {}
|
|
1262
|
+
...extra.data ? { data: extra.data } : {},
|
|
1263
|
+
...extra.routine ? { routine: true } : {}
|
|
1258
1264
|
};
|
|
1259
1265
|
const line = render(e);
|
|
1260
1266
|
try {
|
|
@@ -1271,13 +1277,19 @@ var Emitter = class _Emitter {
|
|
|
1271
1277
|
`);
|
|
1272
1278
|
} catch {
|
|
1273
1279
|
}
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1280
|
+
if (!e.routine || this.opts.verbose) {
|
|
1281
|
+
try {
|
|
1282
|
+
(this.opts.console ?? ((l) => process.stderr.write(`${l}
|
|
1283
|
+
`)))(this.opts.plain ? renderPlain(e) : line);
|
|
1284
|
+
} catch {
|
|
1285
|
+
}
|
|
1278
1286
|
}
|
|
1279
1287
|
return e;
|
|
1280
1288
|
}
|
|
1289
|
+
/** Routine progress: logged, but shown on the console only under `--verbose`. */
|
|
1290
|
+
note(message, extra = {}) {
|
|
1291
|
+
return this.emit(message, { ...extra, routine: true });
|
|
1292
|
+
}
|
|
1281
1293
|
warn(message, extra = {}) {
|
|
1282
1294
|
return this.emit(message, { ...extra, level: "warn" });
|
|
1283
1295
|
}
|
|
@@ -25582,6 +25594,20 @@ function routeAvatarFailures(stateDir, route2) {
|
|
|
25582
25594
|
// src/agents-sync-run.ts
|
|
25583
25595
|
import { existsSync as existsSync53, mkdirSync as mkdirSync39, readFileSync as readFileSync51, writeFileSync as writeFileSync41 } from "fs";
|
|
25584
25596
|
import { dirname as dirname31 } from "path";
|
|
25597
|
+
|
|
25598
|
+
// src/cli-output.ts
|
|
25599
|
+
function summarizeOutcomes(outcomes, describe2, isRoutine, noun, verbose) {
|
|
25600
|
+
if (verbose) return outcomes.map(describe2);
|
|
25601
|
+
const lines2 = outcomes.filter((o) => !isRoutine(o)).map(describe2);
|
|
25602
|
+
const routine = outcomes.length - lines2.length;
|
|
25603
|
+
if (routine > 0) lines2.push(`${routine} ${noun}${routine === 1 ? "" : "s"} already in sync`);
|
|
25604
|
+
return lines2;
|
|
25605
|
+
}
|
|
25606
|
+
function withFix(message, fix) {
|
|
25607
|
+
return `${message.replace(/[.\s]+$/, "")} \u2014 try: ${fix}`;
|
|
25608
|
+
}
|
|
25609
|
+
|
|
25610
|
+
// src/agents-sync-run.ts
|
|
25585
25611
|
async function runAgentsSync(target, o) {
|
|
25586
25612
|
const dryRun = o.dryRun ?? false;
|
|
25587
25613
|
const force = o.force ?? false;
|
|
@@ -25597,7 +25623,7 @@ async function runAgentsSync(target, o) {
|
|
|
25597
25623
|
personaResult = await runPersonas(true);
|
|
25598
25624
|
}
|
|
25599
25625
|
o.say(`route: ${target.route}`);
|
|
25600
|
-
for (const
|
|
25626
|
+
for (const l of summarizeOutcomes(personaResult.outcomes, describeSyncOutcome, (p) => p.action === "unchanged", "persona", o.verbose ?? false)) o.say(l);
|
|
25601
25627
|
for (const l of personaResult.crewLinks) o.say(describeCrewLink(l));
|
|
25602
25628
|
if (personaResult.releaseNote) o.say(personaResult.releaseNote);
|
|
25603
25629
|
if (personaResult.chatNote) o.say(personaResult.chatNote);
|
|
@@ -25612,7 +25638,7 @@ async function runAgentsSync(target, o) {
|
|
|
25612
25638
|
else throw e;
|
|
25613
25639
|
}
|
|
25614
25640
|
}
|
|
25615
|
-
for (const
|
|
25641
|
+
for (const l of summarizeOutcomes(skillResult?.outcomes ?? [], describeSkillSyncOutcome, (s) => s.action === "unchanged", "skill", o.verbose ?? false)) o.say(l);
|
|
25616
25642
|
for (const w of skillResult?.warnings ?? []) o.warn(`warning: ${w}`);
|
|
25617
25643
|
const avatarFailures2 = {};
|
|
25618
25644
|
if (!readOnly && !dryRun) {
|
|
@@ -26776,7 +26802,7 @@ import { dirname as dirOf2, resolve as resolvePath } from "path";
|
|
|
26776
26802
|
import { existsSync as existsSync56, readdirSync as readdirSync18, statSync as statSync17 } from "fs";
|
|
26777
26803
|
import { join as join58 } from "path";
|
|
26778
26804
|
function builtVersion() {
|
|
26779
|
-
return true ? "0.
|
|
26805
|
+
return true ? "0.149.1" : null;
|
|
26780
26806
|
}
|
|
26781
26807
|
var REBUILD_HINT = "rebuild with npm run build";
|
|
26782
26808
|
function newestMtime(path) {
|
|
@@ -29167,7 +29193,10 @@ if (command === "passenger-sync-daemon") {
|
|
|
29167
29193
|
}
|
|
29168
29194
|
await runBridge(stateDir, bridgeRoute, bridgeTicket);
|
|
29169
29195
|
} else {
|
|
29170
|
-
let
|
|
29196
|
+
let die = function(command2, message, fix, code = 2) {
|
|
29197
|
+
emit.error(withFix(`${command2}: ${message}`, fix));
|
|
29198
|
+
return process.exit(code);
|
|
29199
|
+
}, requireArmed = function(what) {
|
|
29171
29200
|
if (dryRun || route2.enabled) return;
|
|
29172
29201
|
process.stderr.write(
|
|
29173
29202
|
`crew: route "${route2.route}" is not enabled in ${cfg.configFile} \u2014 refusing to ${what}.
|
|
@@ -29361,7 +29390,7 @@ if (command === "passenger-sync-daemon") {
|
|
|
29361
29390
|
log: (m) => emit2.emit(m)
|
|
29362
29391
|
};
|
|
29363
29392
|
};
|
|
29364
|
-
requireArmed2 = requireArmed, parseTicketNumber2 = parseTicketNumber, routeRelayUrl2 = routeRelayUrl, previewRelayFor2 = previewRelayFor, passengerApiKeys2 = passengerApiKeys, endpointApiFor2 = endpointApiFor, periscopeEndpointDeps2 = periscopeEndpointDeps, periscopeMcpDeps2 = periscopeMcpDeps, endpointReconcileDeps2 = endpointReconcileDeps, releaseRefused2 = releaseRefused, doctorMachineId2 = doctorMachineId, baseHealth2 = baseHealth, sandboxCacheRepos2 = sandboxCacheRepos, buildSandboxCachePass2 = buildSandboxCachePass, sandboxTickDeps2 = sandboxTickDeps;
|
|
29393
|
+
die2 = die, requireArmed2 = requireArmed, parseTicketNumber2 = parseTicketNumber, routeRelayUrl2 = routeRelayUrl, previewRelayFor2 = previewRelayFor, passengerApiKeys2 = passengerApiKeys, endpointApiFor2 = endpointApiFor, periscopeEndpointDeps2 = periscopeEndpointDeps, periscopeMcpDeps2 = periscopeMcpDeps, endpointReconcileDeps2 = endpointReconcileDeps, releaseRefused2 = releaseRefused, doctorMachineId2 = doctorMachineId, baseHealth2 = baseHealth, sandboxCacheRepos2 = sandboxCacheRepos, buildSandboxCachePass2 = buildSandboxCachePass, sandboxTickDeps2 = sandboxTickDeps;
|
|
29365
29394
|
async function failDaemonStart(o) {
|
|
29366
29395
|
const failEmit = new Emitter({
|
|
29367
29396
|
route: "",
|
|
@@ -29536,7 +29565,12 @@ if (command === "passenger-sync-daemon") {
|
|
|
29536
29565
|
rotateBytes: cfg.ship.eventsRotateBytes,
|
|
29537
29566
|
logFile: dryRun ? void 0 : cfg.ship.logFile,
|
|
29538
29567
|
console: (l) => process.stderr.write(`${l}
|
|
29539
|
-
`)
|
|
29568
|
+
`),
|
|
29569
|
+
// CREW-3266: a person at a terminal gets terse, untimestamped lines and routine
|
|
29570
|
+
// progress only under --verbose. The daemon and timer units are not a TTY and
|
|
29571
|
+
// keep the full log form.
|
|
29572
|
+
verbose: flag("verbose"),
|
|
29573
|
+
plain: !!process.stderr.isTTY
|
|
29540
29574
|
});
|
|
29541
29575
|
async function materializePassengerMirrors(emit2) {
|
|
29542
29576
|
const specs = passengerCheckoutSyncSpecs(cfg).filter((s) => s.mirror);
|
|
@@ -29801,8 +29835,7 @@ if (command === "passenger-sync-daemon") {
|
|
|
29801
29835
|
try {
|
|
29802
29836
|
ensureImage(image);
|
|
29803
29837
|
} catch (e) {
|
|
29804
|
-
|
|
29805
|
-
`);
|
|
29838
|
+
emit.warn(withFix(`crew install: could not pull Host Passengers image ${image}: ${e.message}`, "`crew doctor`"));
|
|
29806
29839
|
process.exitCode = 1;
|
|
29807
29840
|
}
|
|
29808
29841
|
}
|
|
@@ -31649,18 +31682,10 @@ ${f.tail.trimEnd()}
|
|
|
31649
31682
|
try {
|
|
31650
31683
|
target = findSyncRoute(cfg, positional[2]);
|
|
31651
31684
|
} catch (e) {
|
|
31652
|
-
if (e instanceof ConfigError)
|
|
31653
|
-
process.stderr.write(`crew: ${e.message}
|
|
31654
|
-
`);
|
|
31655
|
-
process.exit(2);
|
|
31656
|
-
}
|
|
31685
|
+
if (e instanceof ConfigError) die("crew agents sync", e.message, "`crew doctor`");
|
|
31657
31686
|
throw e;
|
|
31658
31687
|
}
|
|
31659
|
-
if (!target.resolved) {
|
|
31660
|
-
process.stderr.write(`crew agents sync: route "${target.route}" has no resolved ids \u2014 run \`crew connect\` first
|
|
31661
|
-
`);
|
|
31662
|
-
process.exit(2);
|
|
31663
|
-
}
|
|
31688
|
+
if (!target.resolved) die("crew agents sync", `route "${target.route}" has no resolved ids`, "`crew connect`");
|
|
31664
31689
|
let run4;
|
|
31665
31690
|
try {
|
|
31666
31691
|
run4 = await runAgentsSync(target, {
|
|
@@ -31668,17 +31693,13 @@ ${f.tail.trimEnd()}
|
|
|
31668
31693
|
stateDir: cfg.ship.stateDir,
|
|
31669
31694
|
dryRun,
|
|
31670
31695
|
force,
|
|
31696
|
+
verbose: flag("verbose"),
|
|
31671
31697
|
say: (l) => process.stdout.write(`${l}
|
|
31672
31698
|
`),
|
|
31673
|
-
warn: (l) =>
|
|
31674
|
-
`)
|
|
31699
|
+
warn: (l) => emit.warn(`crew agents sync: ${l}`)
|
|
31675
31700
|
});
|
|
31676
31701
|
} catch (e) {
|
|
31677
|
-
if (e instanceof AgentsSyncError || e instanceof SkillSyncError)
|
|
31678
|
-
process.stderr.write(`crew agents sync: ${e.message}
|
|
31679
|
-
`);
|
|
31680
|
-
process.exit(2);
|
|
31681
|
-
}
|
|
31702
|
+
if (e instanceof AgentsSyncError || e instanceof SkillSyncError) die("crew agents sync", e.message, "`crew doctor`, then `crew agents sync --verbose`");
|
|
31682
31703
|
throw e;
|
|
31683
31704
|
}
|
|
31684
31705
|
const { personaResult, skillResult } = run4;
|
|
@@ -31715,35 +31736,22 @@ ${f.tail.trimEnd()}
|
|
|
31715
31736
|
try {
|
|
31716
31737
|
target = findSyncRoute(cfg, positional[2]);
|
|
31717
31738
|
} catch (e) {
|
|
31718
|
-
if (e instanceof ConfigError)
|
|
31719
|
-
process.stderr.write(`crew: ${e.message}
|
|
31720
|
-
`);
|
|
31721
|
-
process.exit(2);
|
|
31722
|
-
}
|
|
31739
|
+
if (e instanceof ConfigError) die("crew skills sync", e.message, "`crew doctor`");
|
|
31723
31740
|
throw e;
|
|
31724
31741
|
}
|
|
31725
|
-
if (!target.resolved) {
|
|
31726
|
-
process.stderr.write(`crew skills sync: route "${target.route}" has no resolved ids \u2014 run \`crew connect\` first
|
|
31727
|
-
`);
|
|
31728
|
-
process.exit(2);
|
|
31729
|
-
}
|
|
31742
|
+
if (!target.resolved) die("crew skills sync", `route "${target.route}" has no resolved ids`, "`crew connect`");
|
|
31730
31743
|
let result;
|
|
31731
31744
|
try {
|
|
31732
31745
|
result = await syncSkills(target, { userAgent: cfg.ship.userAgent, dryRun });
|
|
31733
31746
|
} catch (e) {
|
|
31734
|
-
if (e instanceof SkillSyncError)
|
|
31735
|
-
process.stderr.write(`crew skills sync: ${e.message}
|
|
31736
|
-
`);
|
|
31737
|
-
process.exit(2);
|
|
31738
|
-
}
|
|
31747
|
+
if (e instanceof SkillSyncError) die("crew skills sync", e.message, "`crew doctor`, then `crew skills sync --verbose`");
|
|
31739
31748
|
throw e;
|
|
31740
31749
|
}
|
|
31741
31750
|
process.stdout.write(`route: ${target.route}
|
|
31742
31751
|
`);
|
|
31743
|
-
for (const
|
|
31744
|
-
`);
|
|
31745
|
-
for (const w of result.warnings) process.stderr.write(`warning: ${w}
|
|
31752
|
+
for (const l of summarizeOutcomes(result.outcomes, describeSkillSyncOutcome, (o) => o.action === "unchanged", "skill", flag("verbose"))) process.stdout.write(`${l}
|
|
31746
31753
|
`);
|
|
31754
|
+
for (const w of result.warnings) emit.warn(w);
|
|
31747
31755
|
if (!dryRun) {
|
|
31748
31756
|
const resolvedPath = resolvedPathFor(cfg.ship.stateDir, target.route);
|
|
31749
31757
|
const raw = existsSync60(resolvedPath) ? JSON.parse(readFileSync56(resolvedPath, "utf8")) : {};
|
|
@@ -33276,8 +33284,7 @@ Signed in as ${result.identity.email} \u2014 minted an API key in workspace "${r
|
|
|
33276
33284
|
const raw = positional[2] ?? positional[1];
|
|
33277
33285
|
const n = raw ? parseTicketNumber(raw) : null;
|
|
33278
33286
|
if (!n) {
|
|
33279
|
-
|
|
33280
|
-
process.exit(2);
|
|
33287
|
+
die("crew drop", "need a ticket number (326, ISSUE-326, or TABL-326)", "`crew drop 326`");
|
|
33281
33288
|
}
|
|
33282
33289
|
const num2 = Number(n);
|
|
33283
33290
|
const repos = await resolvedRepos(route2);
|
|
@@ -33402,8 +33409,7 @@ Signed in as ${result.identity.email} \u2014 minted an API key in workspace "${r
|
|
|
33402
33409
|
const rawWt = worktreeArgs?.ticket;
|
|
33403
33410
|
const nWt = rawWt ? parseTicketNumber(rawWt) : null;
|
|
33404
33411
|
if (!nWt) {
|
|
33405
|
-
|
|
33406
|
-
process.exit(2);
|
|
33412
|
+
die("crew worktree", "need a ticket number (326, ISSUE-326, or TABL-326)", "`crew worktree 326`");
|
|
33407
33413
|
}
|
|
33408
33414
|
const candidatesWt = !named && cfg.routes.length > 1 ? cfg.routes.filter((r) => r.enabled) : [route2];
|
|
33409
33415
|
let ticketWt;
|
|
@@ -33421,17 +33427,14 @@ Signed in as ${result.identity.email} \u2014 minted an API key in workspace "${r
|
|
|
33421
33427
|
}
|
|
33422
33428
|
const pickedWt = pickWorktreeRoute(Number(nWt), lookedWt);
|
|
33423
33429
|
if ("error" in pickedWt) {
|
|
33424
|
-
|
|
33425
|
-
`);
|
|
33426
|
-
process.exit(2);
|
|
33430
|
+
die("crew worktree", pickedWt.error, "`crew doctor`");
|
|
33427
33431
|
}
|
|
33428
33432
|
const routeWt = candidatesWt.find((r) => r.route === pickedWt.route) ?? route2;
|
|
33429
33433
|
ticketWt = hitsWt.get(pickedWt.route);
|
|
33430
33434
|
if (!ticketWt) process.exit(2);
|
|
33431
33435
|
const repoWt = (await resolvedRepos(routeWt)).find((r) => r.id === ticketWt.repo_id) ?? (await resolvedRepos(routeWt))[0];
|
|
33432
33436
|
if (!repoWt) {
|
|
33433
|
-
|
|
33434
|
-
process.exit(2);
|
|
33437
|
+
die("crew worktree", "this route has no repository", "`crew repos add`");
|
|
33435
33438
|
}
|
|
33436
33439
|
const roleWt = positional.find((p) => p === "dev" || p === "design" || p === "qa");
|
|
33437
33440
|
let resumeWt = false;
|
|
@@ -33452,7 +33455,8 @@ Signed in as ${result.identity.email} \u2014 minted an API key in workspace "${r
|
|
|
33452
33455
|
break;
|
|
33453
33456
|
}
|
|
33454
33457
|
const pathWt = applyRunWorktree(repoWt.dir, repoWt.config, planWt);
|
|
33455
|
-
emit.
|
|
33458
|
+
if (planIsUsable(planWt)) emit.note(describeRunWorktreePlan(planWt));
|
|
33459
|
+
else emit.warn(describeRunWorktreePlan(planWt));
|
|
33456
33460
|
if (pathWt && planIsUsable(planWt) && wantsCodeBridge(repoWt.config.hooks.intel)) {
|
|
33457
33461
|
const shellWt = resolveShell(repoWt.config.shell ?? cfg.ship.shell);
|
|
33458
33462
|
const paragraph = await startWorktreeIntel({
|
|
@@ -33487,7 +33491,7 @@ Signed in as ${result.identity.email} \u2014 minted an API key in workspace "${r
|
|
|
33487
33491
|
return script ? runScript(script, { cwd, env, shell: shellWt, timeoutMs: name === "intel" ? 6e4 : void 0 }) : null;
|
|
33488
33492
|
}
|
|
33489
33493
|
});
|
|
33490
|
-
emit.
|
|
33494
|
+
emit.note(paragraph);
|
|
33491
33495
|
}
|
|
33492
33496
|
if (pathWt) process.stdout.write(`${pathWt}
|
|
33493
33497
|
`);
|
|
@@ -33933,8 +33937,7 @@ ${where.join("\n")}`);
|
|
|
33933
33937
|
const rawUnassign = positional[2] ?? positional[1];
|
|
33934
33938
|
const n = rawUnassign ? parseTicketNumber(rawUnassign) : null;
|
|
33935
33939
|
if (!n) {
|
|
33936
|
-
|
|
33937
|
-
process.exit(2);
|
|
33940
|
+
die("crew unassign", "need a ticket number (326, ISSUE-326, or TABL-326)", "`crew unassign 326`");
|
|
33938
33941
|
}
|
|
33939
33942
|
const tracker3 = new Tracker(route2, cfg.ship);
|
|
33940
33943
|
const c = tracker3.contract;
|
|
@@ -33976,6 +33979,8 @@ ${where.join("\n")}`);
|
|
|
33976
33979
|
let baseChecked = 0;
|
|
33977
33980
|
let baseActed = 0;
|
|
33978
33981
|
let baseUnsafe = 0;
|
|
33982
|
+
let fastForwarded = 0;
|
|
33983
|
+
const prunable = [];
|
|
33979
33984
|
for (const r of await resolvedRepos(route2)) {
|
|
33980
33985
|
const base = refreshBaseBranch(r.dir, r.config.branch.remote, r.config.branch.base, dryRun);
|
|
33981
33986
|
const att = dryRun ? null : baseAttention(r.name, base, r.config.branch.remote, r.config.branch.base);
|
|
@@ -33997,7 +34002,8 @@ ${where.join("\n")}`);
|
|
|
33997
34002
|
for (const w of worktrees(r.dir)) {
|
|
33998
34003
|
if (!w.branch) continue;
|
|
33999
34004
|
if (w.prunable) {
|
|
34000
|
-
emit.
|
|
34005
|
+
emit.note(`${w.branch}: worktree at ${w.path} no longer exists \u2014 skipping`);
|
|
34006
|
+
prunable.push(r.dir);
|
|
34001
34007
|
continue;
|
|
34002
34008
|
}
|
|
34003
34009
|
let s2;
|
|
@@ -34012,8 +34018,13 @@ ${where.join("\n")}`);
|
|
|
34012
34018
|
tracked2++;
|
|
34013
34019
|
if (s2.canFastForward) {
|
|
34014
34020
|
acted++;
|
|
34015
|
-
if (dryRun)
|
|
34016
|
-
|
|
34021
|
+
if (dryRun) {
|
|
34022
|
+
emit.note(`would fast-forward ${w.branch}: ${s2.detail}`);
|
|
34023
|
+
fastForwarded++;
|
|
34024
|
+
} else if (fastForward(w.path, w.branch)) {
|
|
34025
|
+
emit.note(`fast-forwarded ${w.branch}`);
|
|
34026
|
+
fastForwarded++;
|
|
34027
|
+
} else emit.warn(`could not fast-forward ${w.branch}`);
|
|
34017
34028
|
} else if (s2.behind > 0 || s2.ahead > 0) {
|
|
34018
34029
|
acted++;
|
|
34019
34030
|
emit.warn(`${w.branch}: ${s2.detail}`);
|
|
@@ -34021,8 +34032,12 @@ ${where.join("\n")}`);
|
|
|
34021
34032
|
}
|
|
34022
34033
|
}
|
|
34023
34034
|
if (baseUnsafe > 0) process.exitCode = 1;
|
|
34024
|
-
if (baseChecked > 0 && baseActed === 0) emit.
|
|
34035
|
+
if (baseChecked > 0 && baseActed === 0) emit.note(`${baseChecked} base branch(es) checked, all level with the remote`);
|
|
34036
|
+
if (prunable.length > 0) {
|
|
34037
|
+
emit.warn(`${prunable.length} worktree(s) no longer exist on disk and were skipped \u2014 run \`git worktree prune\` in ${[...new Set(prunable)].join(", ")} to clear them`);
|
|
34038
|
+
}
|
|
34025
34039
|
if (tracked2 === 0) emit.emit("no worktree tracks a remote branch \u2014 nothing to sync");
|
|
34040
|
+
else if (fastForwarded > 0) emit.emit(`${dryRun ? "would fast-forward" : "fast-forwarded"} ${fastForwarded} of ${tracked2} worktree(s)${acted > fastForwarded ? `; ${acted - fastForwarded} need attention` : ""}`);
|
|
34026
34041
|
else if (acted === 0) emit.emit(`${tracked2} worktree(s) tracking a remote, all level with it`);
|
|
34027
34042
|
break;
|
|
34028
34043
|
}
|
|
@@ -34376,9 +34391,7 @@ ${where.join("\n")}`);
|
|
|
34376
34391
|
process.exit(2);
|
|
34377
34392
|
}
|
|
34378
34393
|
if (!route2.resolved) {
|
|
34379
|
-
|
|
34380
|
-
`);
|
|
34381
|
-
process.exit(2);
|
|
34394
|
+
die("crew selftest", `route ${route2.route} is not connected`, "`crew connect`");
|
|
34382
34395
|
}
|
|
34383
34396
|
const seatKey = await resolveSeatKey(route2, "dev");
|
|
34384
34397
|
const keychainDown = seatKey.kind === "ship" && /keychain/i.test(seatKey.reason);
|
|
@@ -34432,9 +34445,7 @@ ${where.join("\n")}`);
|
|
|
34432
34445
|
const only = value("route") ?? positional[1];
|
|
34433
34446
|
const wanted = only ? cfg.routes.filter((r) => r.route === only) : cfg.routes;
|
|
34434
34447
|
if (only && wanted.length === 0) {
|
|
34435
|
-
|
|
34436
|
-
`);
|
|
34437
|
-
process.exit(2);
|
|
34448
|
+
die("crew whoami", `no route "${only}" (have: ${cfg.routes.map((r) => r.route).join(", ")})`, "`crew status`");
|
|
34438
34449
|
}
|
|
34439
34450
|
const report = await buildWhoami(wanted, {
|
|
34440
34451
|
userAgent: cfg.ship.userAgent,
|
|
@@ -34449,9 +34460,7 @@ ${where.join("\n")}`);
|
|
|
34449
34460
|
const only = value("route") ?? positional[1];
|
|
34450
34461
|
const wanted = only ? cfg.routes.filter((r) => r.route === only) : cfg.routes;
|
|
34451
34462
|
if (only && wanted.length === 0) {
|
|
34452
|
-
|
|
34453
|
-
`);
|
|
34454
|
-
process.exit(2);
|
|
34463
|
+
die("crew projects", `no route "${only}" (have: ${cfg.routes.map((r) => r.route).join(", ")})`, "`crew status`");
|
|
34455
34464
|
}
|
|
34456
34465
|
const report = await buildProjectsReport(
|
|
34457
34466
|
wanted.map((r) => ({ route: r.route, areaId: r.resolved?.areaId })),
|
|
@@ -35489,6 +35498,7 @@ ${foreign.join("\n")}
|
|
|
35489
35498
|
}
|
|
35490
35499
|
lock?.release();
|
|
35491
35500
|
}
|
|
35501
|
+
var die2;
|
|
35492
35502
|
var requireArmed2;
|
|
35493
35503
|
var parseTicketNumber2;
|
|
35494
35504
|
var routeRelayUrl2;
|
package/package.json
CHANGED