@staff0rd/assist 0.1069.1 → 0.1069.3

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/index.js CHANGED
@@ -6,7 +6,7 @@ import { Command } from "commander";
6
6
  // package.json
7
7
  var package_default = {
8
8
  name: "@staff0rd/assist",
9
- version: "0.1069.1",
9
+ version: "0.1069.3",
10
10
  type: "module",
11
11
  main: "dist/index.js",
12
12
  bin: {
@@ -27230,7 +27230,22 @@ function loadDevWeeks(repoName, devDir) {
27230
27230
  }
27231
27231
 
27232
27232
  // src/commands/devlog/next/displayNextEntry.ts
27233
- import chalk162 from "chalk";
27233
+ import chalk163 from "chalk";
27234
+
27235
+ // src/commands/devlog/resolveVersionSource.ts
27236
+ import { execFileSync as execFileSync8 } from "child_process";
27237
+
27238
+ // src/commands/devlog/sortedSemverVersions.ts
27239
+ import semver2 from "semver";
27240
+ function sortedSemverVersions(tags) {
27241
+ return tags.map((tag) => semver2.clean(tag)).filter((v) => v !== null).sort(semver2.compare);
27242
+ }
27243
+
27244
+ // src/commands/devlog/earliestSemverTag.ts
27245
+ function earliestSemverTag(tags) {
27246
+ const earliest2 = sortedSemverVersions(tags).at(0);
27247
+ return earliest2 ? `v${earliest2}` : null;
27248
+ }
27234
27249
 
27235
27250
  // src/commands/devlog/getVersionAtCommit.ts
27236
27251
  import { execSync as execSync37 } from "child_process";
@@ -27246,23 +27261,63 @@ function getVersionAtCommit(hash) {
27246
27261
  }
27247
27262
  }
27248
27263
 
27249
- // src/commands/devlog/next/repoHasTags.ts
27250
- import { execFileSync as execFileSync8 } from "child_process";
27251
- function repoHasTags() {
27252
- const output = execFileSync8("git", ["tag", "--list"], { encoding: "utf8" });
27253
- return output.trim().length > 0;
27264
+ // src/commands/devlog/isPackageVersionStale.ts
27265
+ import semver3 from "semver";
27266
+ function isPackageVersionStale(packageVersion, tags) {
27267
+ const versions = tags.map((tag) => semver3.clean(tag)).filter((v) => v !== null);
27268
+ if (versions.length === 0) return false;
27269
+ const latest2 = semver3.rsort(versions)[0];
27270
+ const current2 = packageVersion ? semver3.clean(packageVersion) : null;
27271
+ return current2 === null || semver3.lt(current2, latest2);
27272
+ }
27273
+
27274
+ // src/commands/devlog/latestSemverTag.ts
27275
+ function latestSemverTag(tags) {
27276
+ const latest2 = sortedSemverVersions(tags).at(-1);
27277
+ return latest2 ? `v${latest2}` : null;
27254
27278
  }
27255
27279
 
27256
27280
  // src/commands/devlog/stripToMinor.ts
27257
- import semver2 from "semver";
27281
+ import semver4 from "semver";
27258
27282
  function stripToMinor(version2) {
27259
- const parsed = semver2.parse(semver2.coerce(version2));
27283
+ const parsed = semver4.parse(semver4.coerce(version2));
27260
27284
  return parsed ? `v${parsed.major}.${parsed.minor}` : `v${version2}`;
27261
27285
  }
27262
27286
 
27287
+ // src/commands/devlog/resolveVersionSource.ts
27288
+ function gitTags(...args) {
27289
+ return execFileSync8("git", ["tag", "--list", ...args], { encoding: "utf8" }).split("\n").map((t) => t.trim()).filter(Boolean);
27290
+ }
27291
+ function resolveVersionSource() {
27292
+ const headVersion = getVersionAtCommit("HEAD");
27293
+ const mergedTags = gitTags("--merged", "HEAD");
27294
+ if (isPackageVersionStale(headVersion, mergedTags)) {
27295
+ return {
27296
+ kind: "tags",
27297
+ versionAt: (hash) => earliestSemverTag(gitTags("--contains", hash)),
27298
+ current: () => latestSemverTag(mergedTags)
27299
+ };
27300
+ }
27301
+ return {
27302
+ kind: "package",
27303
+ versionAt: getVersionAtCommit,
27304
+ current: () => headVersion ? stripToMinor(headVersion) : null
27305
+ };
27306
+ }
27307
+
27308
+ // src/commands/devlog/next/repoHasTags.ts
27309
+ import { execFileSync as execFileSync9 } from "child_process";
27310
+ function repoHasTags() {
27311
+ const output = execFileSync9("git", ["tag", "--list"], { encoding: "utf8" });
27312
+ return output.trim().length > 0;
27313
+ }
27314
+
27263
27315
  // src/commands/devlog/next/withVersions.ts
27264
- function withVersions(commits2, versionAt, hasTags) {
27265
- const raw = commits2.map((commit2) => versionAt(commit2.hash));
27316
+ function withVersions(commits2, source, hasTags) {
27317
+ const raw = commits2.map((commit2) => source.versionAt(commit2.hash));
27318
+ if (source.kind === "tags") {
27319
+ return commits2.map((commit2, i) => ({ ...commit2, version: raw[i] }));
27320
+ }
27266
27321
  const distinct = new Set(raw.filter((v) => v !== null));
27267
27322
  const unversioned = !hasTags && distinct.size <= 1;
27268
27323
  return commits2.map((commit2, i) => {
@@ -27274,17 +27329,8 @@ function withVersions(commits2, versionAt, hasTags) {
27274
27329
  });
27275
27330
  }
27276
27331
 
27277
- // src/commands/devlog/next/displayNextEntry.ts
27278
- function versionRange(commits2) {
27279
- const versions = commits2.map((c) => c.version).filter((v) => v !== null);
27280
- if (versions.length === 0) return null;
27281
- const first = versions[0];
27282
- const last = versions[versions.length - 1];
27283
- return first === last ? first : `${first} \u2013 ${last}`;
27284
- }
27285
- function printField(label, value) {
27286
- console.log(`${chalk162.bold(`${label}:`)} ${value}`);
27287
- }
27332
+ // src/commands/devlog/next/printCommits.ts
27333
+ import chalk162 from "chalk";
27288
27334
  function printCommits(commits2, ignore3, verbose) {
27289
27335
  for (const commit2 of commits2) {
27290
27336
  const version2 = commit2.version ? ` ${chalk162.cyan(commit2.version)}` : "";
@@ -27299,11 +27345,27 @@ function printCommits(commits2, ignore3, verbose) {
27299
27345
  }
27300
27346
  }
27301
27347
  }
27348
+
27349
+ // src/commands/devlog/next/displayNextEntry.ts
27350
+ function versionRange(commits2) {
27351
+ const versions = commits2.map((c) => c.version).filter((v) => v !== null);
27352
+ if (versions.length === 0) return null;
27353
+ const first = versions[0];
27354
+ const last = versions[versions.length - 1];
27355
+ return first === last ? first : `${first} \u2013 ${last}`;
27356
+ }
27357
+ function printField(label, value) {
27358
+ console.log(`${chalk163.bold(`${label}:`)} ${value}`);
27359
+ }
27302
27360
  function displayNextEntry(ctx, week, commits2) {
27303
- const versioned = withVersions(commits2, getVersionAtCommit, repoHasTags());
27361
+ const versioned = withVersions(
27362
+ commits2,
27363
+ resolveVersionSource(),
27364
+ repoHasTags()
27365
+ );
27304
27366
  const { start: start2, end } = isoWeekRange(week);
27305
27367
  printField("name", ctx.repoName);
27306
- printField("week", chalk162.bold.blue(week));
27368
+ printField("week", chalk163.bold.blue(week));
27307
27369
  printField("range", `${start2} \u2013 ${end}`);
27308
27370
  const dates = commits2.map((c) => c.date).sort();
27309
27371
  if (dates.length > 0) printField("dates", `${dates[0]} \u2013 ${dates.at(-1)}`);
@@ -27313,7 +27375,7 @@ function displayNextEntry(ctx, week, commits2) {
27313
27375
  }
27314
27376
  function logNoCommits(lastWeek) {
27315
27377
  console.log(
27316
- chalk162.dim(
27378
+ chalk163.dim(
27317
27379
  lastWeek ? `No completed weeks with commits after ${lastWeek}` : "No completed weeks with commits found"
27318
27380
  )
27319
27381
  );
@@ -27345,7 +27407,7 @@ function next2(options2) {
27345
27407
  }
27346
27408
 
27347
27409
  // src/commands/devlog/skip.ts
27348
- import chalk163 from "chalk";
27410
+ import chalk164 from "chalk";
27349
27411
  var SKIP_WEEKS_KEY = "devlog.skipWeeks";
27350
27412
  async function loadRepoSkipWeeks(cwd) {
27351
27413
  const { block } = await resolveSharedRepoBlock(await getDb(), void 0, cwd);
@@ -27354,12 +27416,12 @@ async function loadRepoSkipWeeks(cwd) {
27354
27416
  }
27355
27417
  async function skip2(week, cwd = process.cwd()) {
27356
27418
  if (!isValidWeek(week)) {
27357
- console.log(chalk163.red("Invalid week. Use YYYY-Www (e.g. 2026-W33)"));
27419
+ console.log(chalk164.red("Invalid week. Use YYYY-Www (e.g. 2026-W33)"));
27358
27420
  process.exit(1);
27359
27421
  }
27360
27422
  const existing = await loadRepoSkipWeeks(cwd);
27361
27423
  if (existing.includes(week)) {
27362
- console.log(chalk163.yellow(`${week} is already in ${SKIP_WEEKS_KEY}`));
27424
+ console.log(chalk164.yellow(`${week} is already in ${SKIP_WEEKS_KEY}`));
27363
27425
  return;
27364
27426
  }
27365
27427
  const result = await applySharedRepoConfigSet(
@@ -27369,11 +27431,11 @@ async function skip2(week, cwd = process.cwd()) {
27369
27431
  cwd
27370
27432
  );
27371
27433
  if (!result.ok) {
27372
- console.log(chalk163.red(result.errors.join("\n")));
27434
+ console.log(chalk164.red(result.errors.join("\n")));
27373
27435
  process.exit(1);
27374
27436
  }
27375
27437
  console.log(
27376
- chalk163.green(
27438
+ chalk164.green(
27377
27439
  `Added ${week} to ${SKIP_WEEKS_KEY} for repos.${result.label} (repo db)`
27378
27440
  )
27379
27441
  );
@@ -27382,7 +27444,7 @@ async function skip2(week, cwd = process.cwd()) {
27382
27444
  // src/commands/devlog/write.ts
27383
27445
  import { mkdirSync as mkdirSync20, writeFileSync as writeFileSync31 } from "fs";
27384
27446
  import { dirname as dirname32, join as join72 } from "path";
27385
- import chalk164 from "chalk";
27447
+ import chalk165 from "chalk";
27386
27448
 
27387
27449
  // src/commands/devlog/write/devEntryInputSchema.ts
27388
27450
  import { z as z19 } from "zod";
@@ -27460,7 +27522,7 @@ function parseInput(raw) {
27460
27522
  try {
27461
27523
  return JSON.parse(raw);
27462
27524
  } catch (error) {
27463
- console.error(chalk164.red(`Invalid JSON on stdin: ${String(error)}`));
27525
+ console.error(chalk165.red(`Invalid JSON on stdin: ${String(error)}`));
27464
27526
  process.exit(1);
27465
27527
  }
27466
27528
  }
@@ -27468,7 +27530,7 @@ async function write() {
27468
27530
  const result = devEntryInputSchema.safeParse(parseInput(await readStdin()));
27469
27531
  if (!result.success) {
27470
27532
  for (const issue of result.error.issues) {
27471
- console.error(chalk164.red(`${issue.path.join(".")}: ${issue.message}`));
27533
+ console.error(chalk165.red(`${issue.path.join(".")}: ${issue.message}`));
27472
27534
  }
27473
27535
  process.exit(1);
27474
27536
  }
@@ -27477,7 +27539,7 @@ async function write() {
27477
27539
  const path109 = join72(devDir, repoName, `${result.data.week.toLowerCase()}.md`);
27478
27540
  mkdirSync20(dirname32(path109), { recursive: true });
27479
27541
  writeFileSync31(path109, formatDevEntry(repoName, result.data));
27480
- console.log(chalk164.green(`Wrote ${path109}`));
27542
+ console.log(chalk165.green(`Wrote ${path109}`));
27481
27543
  }
27482
27544
 
27483
27545
  // src/commands/devlog/registerDevlogEntryCommands.ts
@@ -27526,11 +27588,11 @@ function getRepoStatus(lastPush, lastWeek, today) {
27526
27588
  }
27527
27589
 
27528
27590
  // src/commands/devlog/repos/printReposTable.ts
27529
- import chalk165 from "chalk";
27591
+ import chalk166 from "chalk";
27530
27592
  function colorStatus(status2) {
27531
- if (status2 === "missing") return chalk165.red(status2);
27532
- if (status2 === "outdated") return chalk165.yellow(status2);
27533
- return chalk165.green(status2);
27593
+ if (status2 === "missing") return chalk166.red(status2);
27594
+ if (status2 === "outdated") return chalk166.yellow(status2);
27595
+ return chalk166.green(status2);
27534
27596
  }
27535
27597
  function formatRow(row2, nameWidth) {
27536
27598
  const week = (row2.lastWeek ?? "-").padEnd(9);
@@ -27544,8 +27606,8 @@ function printReposTable(rows) {
27544
27606
  "Last Week".padEnd(9),
27545
27607
  "Status"
27546
27608
  ].join(" ");
27547
- console.log(chalk165.dim(header));
27548
- console.log(chalk165.dim("-".repeat(header.length)));
27609
+ console.log(chalk166.dim(header));
27610
+ console.log(chalk166.dim("-".repeat(header.length)));
27549
27611
  for (const row2 of rows) {
27550
27612
  console.log(formatRow(row2, nameWidth));
27551
27613
  }
@@ -27599,20 +27661,19 @@ function repos(options2) {
27599
27661
  }
27600
27662
 
27601
27663
  // src/commands/devlog/version.ts
27602
- import chalk166 from "chalk";
27664
+ import chalk167 from "chalk";
27603
27665
  function printField2(label, value) {
27604
- console.log(`${chalk166.bold(`${label}:`)} ${value ?? chalk166.dim("none")}`);
27666
+ console.log(`${chalk167.bold(`${label}:`)} ${value ?? chalk167.dim("none")}`);
27605
27667
  }
27606
27668
  function version() {
27607
27669
  const devDir = resolveDevDir();
27608
27670
  const name = getRepoName();
27609
27671
  const lastWeek = loadDevWeeks(name, devDir).at(-1) ?? null;
27610
27672
  const entry = lastWeek ? loadDevEntry(name, lastWeek, devDir) : null;
27611
- const current2 = getVersionAtCommit("HEAD");
27612
27673
  printField2("name", name);
27613
27674
  printField2("last week", lastWeek);
27614
27675
  printField2("last version", entry?.lastVersion);
27615
- printField2("current", current2 ? stripToMinor(current2) : null);
27676
+ printField2("current", resolveVersionSource().current());
27616
27677
  }
27617
27678
 
27618
27679
  // src/commands/registerDevlog.ts
@@ -27638,10 +27699,10 @@ function registerDevlog(program) {
27638
27699
 
27639
27700
  // src/commands/docs/docsConfirm.ts
27640
27701
  import { unlinkSync as unlinkSync9 } from "fs";
27641
- import chalk168 from "chalk";
27702
+ import chalk169 from "chalk";
27642
27703
 
27643
27704
  // src/commands/backlog/findPhaseUnlockItem.ts
27644
- import chalk167 from "chalk";
27705
+ import chalk168 from "chalk";
27645
27706
  async function findPhaseUnlockItem(itemId2, phase) {
27646
27707
  const found = await findOneItem(String(itemId2));
27647
27708
  if (!found) {
@@ -27651,7 +27712,7 @@ async function findPhaseUnlockItem(itemId2, phase) {
27651
27712
  const label = `${formatItemId(itemId2)} ${found.item.name}`;
27652
27713
  if ((found.item.currentPhase ?? 1) !== phase) {
27653
27714
  console.error(
27654
- chalk167.red(
27715
+ chalk168.red(
27655
27716
  `${label} has moved on from phase ${phase} since the unlock was requested. Nothing was approved; request a new unlock from the current phase.`
27656
27717
  )
27657
27718
  );
@@ -27705,7 +27766,7 @@ async function docsConfirm(pin2) {
27705
27766
  sweepRestrictedDir();
27706
27767
  const state = readDocsUnlockPinState(pin2);
27707
27768
  if (!state) {
27708
- console.error(chalk168.red(`No pending docs unlock for pin: ${pin2}`));
27769
+ console.error(chalk169.red(`No pending docs unlock for pin: ${pin2}`));
27709
27770
  process.exitCode = 1;
27710
27771
  return;
27711
27772
  }
@@ -27714,14 +27775,14 @@ async function docsConfirm(pin2) {
27714
27775
  if (!found) return;
27715
27776
  await recordDocsUnlock(found.orm, state.itemId, state.phase);
27716
27777
  console.log(
27717
- chalk168.green(
27778
+ chalk169.green(
27718
27779
  `Approved docs changes for phase ${state.phase} of ${found.label}. Its sessions may edit and commit docs pages and screenshots until the item moves on from that phase or is done or won't-do.`
27719
27780
  )
27720
27781
  );
27721
27782
  }
27722
27783
 
27723
27784
  // src/commands/docs/docsUnlock.ts
27724
- import chalk169 from "chalk";
27785
+ import chalk170 from "chalk";
27725
27786
 
27726
27787
  // src/commands/notify/issueUnlockPin.ts
27727
27788
  import { randomInt as randomInt2 } from "crypto";
@@ -27749,7 +27810,7 @@ async function issueUnlockPin({
27749
27810
 
27750
27811
  // src/commands/docs/docsUnlock.ts
27751
27812
  function fail7(message3) {
27752
- console.error(chalk169.red(message3));
27813
+ console.error(chalk170.red(message3));
27753
27814
  process.exitCode = 1;
27754
27815
  }
27755
27816
  async function docsUnlock() {
@@ -27782,7 +27843,7 @@ async function docsUnlock() {
27782
27843
  console.log(
27783
27844
  `A confirmation pin was sent to the user's desktop notifications${node ? ` on ${node}, the node controlling this session` : ""}.
27784
27845
  To let this phase of ${label} edit docs pages and screenshots, the user runs in this session:
27785
- ${chalk169.cyan(" assist docs confirm <PIN>")}
27846
+ ${chalk170.cyan(" assist docs confirm <PIN>")}
27786
27847
  Wait for the user to confirm before editing docs.`
27787
27848
  );
27788
27849
  }
@@ -27809,7 +27870,7 @@ function registerDocs(parent) {
27809
27870
 
27810
27871
  // src/commands/schema/schemaConfirm.ts
27811
27872
  import { mkdirSync as mkdirSync22, unlinkSync as unlinkSync11, writeFileSync as writeFileSync33 } from "fs";
27812
- import chalk170 from "chalk";
27873
+ import chalk171 from "chalk";
27813
27874
 
27814
27875
  // src/commands/schema/getSchemaUnlockPinPath.ts
27815
27876
  import { join as join74 } from "path";
@@ -27852,7 +27913,7 @@ async function approveItemPhase(itemId2, phase) {
27852
27913
  title: `Database schema files unlocked by PIN for phase ${phase}`
27853
27914
  });
27854
27915
  console.log(
27855
- chalk170.green(
27916
+ chalk171.green(
27856
27917
  `Approved schema changes for phase ${phase} of ${found.label}. Its sessions may edit and commit database schema files until the item moves on from that phase or is done or won't-do.`
27857
27918
  )
27858
27919
  );
@@ -27863,7 +27924,7 @@ function approveClaudeSession(claudeSessionId) {
27863
27924
  mkdirSync22(getSchemaSessionApprovalDir(), { recursive: true });
27864
27925
  writeFileSync33(path109, JSON.stringify({ claudeSessionId }));
27865
27926
  console.log(
27866
- chalk170.green(
27927
+ chalk171.green(
27867
27928
  `Approved schema changes for Claude session ${claudeSessionId}. It may edit and commit database schema files until the session ends.`
27868
27929
  )
27869
27930
  );
@@ -27872,7 +27933,7 @@ async function schemaConfirm(pin2) {
27872
27933
  sweepRestrictedDir();
27873
27934
  const state = readSchemaUnlockPinState(pin2);
27874
27935
  if (!state) {
27875
- console.error(chalk170.red(`No pending schema unlock for pin: ${pin2}`));
27936
+ console.error(chalk171.red(`No pending schema unlock for pin: ${pin2}`));
27876
27937
  process.exitCode = 1;
27877
27938
  return;
27878
27939
  }
@@ -27882,9 +27943,9 @@ async function schemaConfirm(pin2) {
27882
27943
  }
27883
27944
 
27884
27945
  // src/commands/schema/schemaUnlock.ts
27885
- import chalk171 from "chalk";
27946
+ import chalk172 from "chalk";
27886
27947
  function fail8(message3) {
27887
- console.error(chalk171.red(message3));
27948
+ console.error(chalk172.red(message3));
27888
27949
  process.exitCode = 1;
27889
27950
  }
27890
27951
  async function itemScope(itemId2) {
@@ -27930,7 +27991,7 @@ async function schemaUnlock() {
27930
27991
  console.log(
27931
27992
  `A confirmation pin was sent to the user's desktop notifications${node ? ` on ${node}, the node controlling this session` : ""}.
27932
27993
  To let ${scope.scope} change database schema files, the user runs in this session:
27933
- ${chalk171.cyan(" assist schema confirm <PIN>")}
27994
+ ${chalk172.cyan(" assist schema confirm <PIN>")}
27934
27995
  Wait for the user to confirm before changing the schema.`
27935
27996
  );
27936
27997
  }
@@ -27958,7 +28019,7 @@ function registerSchema(parent) {
27958
28019
  // src/commands/dotnet/checkBuildLocks.ts
27959
28020
  import { closeSync as closeSync5, openSync as openSync6, readdirSync as readdirSync12 } from "fs";
27960
28021
  import { join as join75 } from "path";
27961
- import chalk172 from "chalk";
28022
+ import chalk173 from "chalk";
27962
28023
  var SKIP_DIRS = /* @__PURE__ */ new Set(["node_modules", ".git", "packages"]);
27963
28024
  function isLockedDll(debugDir) {
27964
28025
  let files;
@@ -28005,14 +28066,14 @@ function checkBuildLocks(startDir) {
28005
28066
  const locked = findFirstLockedDll(startDir ?? getSearchRoot());
28006
28067
  if (locked) {
28007
28068
  console.error(
28008
- chalk172.red("Build output locked (is VS debugging?): ") + locked
28069
+ chalk173.red("Build output locked (is VS debugging?): ") + locked
28009
28070
  );
28010
28071
  process.exit(1);
28011
28072
  }
28012
28073
  }
28013
28074
  async function checkBuildLocksCommand() {
28014
28075
  checkBuildLocks();
28015
- console.log(chalk172.green("No build locks detected"));
28076
+ console.log(chalk173.green("No build locks detected"));
28016
28077
  }
28017
28078
 
28018
28079
  // src/commands/dotnet/buildTree.ts
@@ -28111,30 +28172,30 @@ function escapeRegex(s) {
28111
28172
  }
28112
28173
 
28113
28174
  // src/commands/dotnet/printTree.ts
28114
- import chalk173 from "chalk";
28175
+ import chalk174 from "chalk";
28115
28176
  function printNodes(nodes, prefix2) {
28116
28177
  for (let i = 0; i < nodes.length; i++) {
28117
28178
  const isLast = i === nodes.length - 1;
28118
28179
  const connector = isLast ? "\u2514\u2500\u2500 " : "\u251C\u2500\u2500 ";
28119
28180
  const childPrefix = isLast ? " " : "\u2502 ";
28120
28181
  const isMissing = nodes[i].relativePath.startsWith("[MISSING]");
28121
- const label = isMissing ? chalk173.red(nodes[i].relativePath) : nodes[i].relativePath;
28182
+ const label = isMissing ? chalk174.red(nodes[i].relativePath) : nodes[i].relativePath;
28122
28183
  console.log(`${prefix2}${connector}${label}`);
28123
28184
  printNodes(nodes[i].children, prefix2 + childPrefix);
28124
28185
  }
28125
28186
  }
28126
28187
  function printTree(tree, totalCount, solutions) {
28127
- console.log(chalk173.bold("\nProject Dependency Tree"));
28128
- console.log(chalk173.cyan(tree.relativePath));
28188
+ console.log(chalk174.bold("\nProject Dependency Tree"));
28189
+ console.log(chalk174.cyan(tree.relativePath));
28129
28190
  printNodes(tree.children, "");
28130
- console.log(chalk173.dim(`
28191
+ console.log(chalk174.dim(`
28131
28192
  ${totalCount} projects total (including root)`));
28132
- console.log(chalk173.bold("\nSolution Membership"));
28193
+ console.log(chalk174.bold("\nSolution Membership"));
28133
28194
  if (solutions.length === 0) {
28134
- console.log(chalk173.yellow(" Not found in any .sln"));
28195
+ console.log(chalk174.yellow(" Not found in any .sln"));
28135
28196
  } else {
28136
28197
  for (const sln of solutions) {
28137
- console.log(` ${chalk173.green(sln)}`);
28198
+ console.log(` ${chalk174.green(sln)}`);
28138
28199
  }
28139
28200
  }
28140
28201
  console.log();
@@ -28163,16 +28224,16 @@ function printJson(tree, totalCount, solutions) {
28163
28224
  // src/commands/dotnet/resolveCsproj.ts
28164
28225
  import { existsSync as existsSync61 } from "fs";
28165
28226
  import path38 from "path";
28166
- import chalk174 from "chalk";
28227
+ import chalk175 from "chalk";
28167
28228
  function resolveCsproj(csprojPath) {
28168
28229
  const resolved = path38.resolve(csprojPath);
28169
28230
  if (!existsSync61(resolved)) {
28170
- console.error(chalk174.red(`File not found: ${resolved}`));
28231
+ console.error(chalk175.red(`File not found: ${resolved}`));
28171
28232
  process.exit(1);
28172
28233
  }
28173
28234
  const repoRoot2 = findRepoRoot(path38.dirname(resolved));
28174
28235
  if (!repoRoot2) {
28175
- console.error(chalk174.red("Could not find git repository root"));
28236
+ console.error(chalk175.red("Could not find git repository root"));
28176
28237
  process.exit(1);
28177
28238
  }
28178
28239
  return { resolved, repoRoot: repoRoot2 };
@@ -28222,12 +28283,12 @@ function getChangedCsFiles(scope) {
28222
28283
  }
28223
28284
 
28224
28285
  // src/commands/dotnet/inSln.ts
28225
- import chalk175 from "chalk";
28286
+ import chalk176 from "chalk";
28226
28287
  async function inSln(csprojPath) {
28227
28288
  const { resolved, repoRoot: repoRoot2 } = resolveCsproj(csprojPath);
28228
28289
  const solutions = findContainingSolutions(resolved, repoRoot2);
28229
28290
  if (solutions.length === 0) {
28230
- console.log(chalk175.yellow("Not found in any .sln file"));
28291
+ console.log(chalk176.yellow("Not found in any .sln file"));
28231
28292
  process.exit(1);
28232
28293
  }
28233
28294
  for (const sln of solutions) {
@@ -28236,7 +28297,7 @@ async function inSln(csprojPath) {
28236
28297
  }
28237
28298
 
28238
28299
  // src/commands/dotnet/inspect.ts
28239
- import chalk181 from "chalk";
28300
+ import chalk182 from "chalk";
28240
28301
 
28241
28302
  // src/shared/formatElapsed.ts
28242
28303
  function formatElapsed(ms) {
@@ -28248,12 +28309,12 @@ function formatElapsed(ms) {
28248
28309
  }
28249
28310
 
28250
28311
  // src/commands/dotnet/displayIssues.ts
28251
- import chalk176 from "chalk";
28312
+ import chalk177 from "chalk";
28252
28313
  var SEVERITY_COLOR = {
28253
- ERROR: chalk176.red,
28254
- WARNING: chalk176.yellow,
28255
- SUGGESTION: chalk176.cyan,
28256
- HINT: chalk176.dim
28314
+ ERROR: chalk177.red,
28315
+ WARNING: chalk177.yellow,
28316
+ SUGGESTION: chalk177.cyan,
28317
+ HINT: chalk177.dim
28257
28318
  };
28258
28319
  function groupByFile(issues) {
28259
28320
  const byFile = /* @__PURE__ */ new Map();
@@ -28269,15 +28330,15 @@ function groupByFile(issues) {
28269
28330
  }
28270
28331
  function displayIssues(issues) {
28271
28332
  for (const [file, fileIssues] of groupByFile(issues)) {
28272
- console.log(chalk176.bold(file));
28333
+ console.log(chalk177.bold(file));
28273
28334
  for (const issue of fileIssues.sort((a, b) => a.line - b.line)) {
28274
- const color = SEVERITY_COLOR[issue.severity] ?? chalk176.white;
28335
+ const color = SEVERITY_COLOR[issue.severity] ?? chalk177.white;
28275
28336
  console.log(
28276
- ` ${chalk176.dim(`${issue.line}:`)} ${color(issue.severity)} [${issue.typeId}] ${issue.message}`
28337
+ ` ${chalk177.dim(`${issue.line}:`)} ${color(issue.severity)} [${issue.typeId}] ${issue.message}`
28277
28338
  );
28278
28339
  }
28279
28340
  }
28280
- console.log(chalk176.dim(`
28341
+ console.log(chalk177.dim(`
28281
28342
  ${issues.length} issue(s) found`));
28282
28343
  }
28283
28344
 
@@ -28336,12 +28397,12 @@ function filterIssues(issues, all, cliOnly, cliSuppress) {
28336
28397
  // src/commands/dotnet/resolveSolution.ts
28337
28398
  import { existsSync as existsSync62 } from "fs";
28338
28399
  import path39 from "path";
28339
- import chalk178 from "chalk";
28400
+ import chalk179 from "chalk";
28340
28401
 
28341
28402
  // src/commands/dotnet/findSolution.ts
28342
28403
  import { readdirSync as readdirSync14 } from "fs";
28343
28404
  import { dirname as dirname33, join as join76 } from "path";
28344
- import chalk177 from "chalk";
28405
+ import chalk178 from "chalk";
28345
28406
  function findSlnInDir(dir) {
28346
28407
  try {
28347
28408
  return readdirSync14(dir).filter((f) => f.endsWith(".sln")).map((f) => join76(dir, f));
@@ -28357,17 +28418,17 @@ function findSolution() {
28357
28418
  const slnFiles = findSlnInDir(current2);
28358
28419
  if (slnFiles.length === 1) return slnFiles[0];
28359
28420
  if (slnFiles.length > 1) {
28360
- console.error(chalk177.red(`Multiple .sln files found in ${current2}:`));
28421
+ console.error(chalk178.red(`Multiple .sln files found in ${current2}:`));
28361
28422
  for (const f of slnFiles) console.error(` ${f}`);
28362
28423
  console.error(
28363
- chalk177.yellow("Specify which one: assist dotnet inspect <sln>")
28424
+ chalk178.yellow("Specify which one: assist dotnet inspect <sln>")
28364
28425
  );
28365
28426
  process.exit(1);
28366
28427
  }
28367
28428
  if (current2 === ceiling) break;
28368
28429
  current2 = dirname33(current2);
28369
28430
  }
28370
- console.error(chalk177.red("No .sln file found between cwd and repo root"));
28431
+ console.error(chalk178.red("No .sln file found between cwd and repo root"));
28371
28432
  process.exit(1);
28372
28433
  }
28373
28434
 
@@ -28376,7 +28437,7 @@ function resolveSolution(sln) {
28376
28437
  if (sln) {
28377
28438
  const resolved = path39.resolve(sln);
28378
28439
  if (!existsSync62(resolved)) {
28379
- console.error(chalk178.red(`Solution file not found: ${resolved}`));
28440
+ console.error(chalk179.red(`Solution file not found: ${resolved}`));
28380
28441
  process.exit(1);
28381
28442
  }
28382
28443
  return resolved;
@@ -28418,14 +28479,14 @@ import { execSync as execSync40 } from "child_process";
28418
28479
  import { existsSync as existsSync63, readFileSync as readFileSync45, unlinkSync as unlinkSync12 } from "fs";
28419
28480
  import { tmpdir as tmpdir4 } from "os";
28420
28481
  import path40 from "path";
28421
- import chalk179 from "chalk";
28482
+ import chalk180 from "chalk";
28422
28483
  function assertJbInstalled() {
28423
28484
  try {
28424
28485
  execSync40("jb inspectcode --version", { stdio: "pipe" });
28425
28486
  } catch {
28426
- console.error(chalk179.red("jb is not installed. Install with:"));
28487
+ console.error(chalk180.red("jb is not installed. Install with:"));
28427
28488
  console.error(
28428
- chalk179.yellow(" dotnet tool install -g JetBrains.ReSharper.GlobalTools")
28489
+ chalk180.yellow(" dotnet tool install -g JetBrains.ReSharper.GlobalTools")
28429
28490
  );
28430
28491
  process.exit(1);
28431
28492
  }
@@ -28443,11 +28504,11 @@ function runInspectCode(slnPath, include, swea) {
28443
28504
  if (error && typeof error === "object" && "stderr" in error) {
28444
28505
  process.stderr.write(error.stderr);
28445
28506
  }
28446
- console.error(chalk179.red("jb inspectcode failed"));
28507
+ console.error(chalk180.red("jb inspectcode failed"));
28447
28508
  process.exit(1);
28448
28509
  }
28449
28510
  if (!existsSync63(reportPath)) {
28450
- console.error(chalk179.red("Report file not generated"));
28511
+ console.error(chalk180.red("Report file not generated"));
28451
28512
  process.exit(1);
28452
28513
  }
28453
28514
  const xml = readFileSync45(reportPath, "utf8");
@@ -28457,7 +28518,7 @@ function runInspectCode(slnPath, include, swea) {
28457
28518
 
28458
28519
  // src/commands/dotnet/runRoslynInspect.ts
28459
28520
  import { execSync as execSync41 } from "child_process";
28460
- import chalk180 from "chalk";
28521
+ import chalk181 from "chalk";
28461
28522
  function resolveMsbuildPath() {
28462
28523
  const { run: run4 } = loadConfig();
28463
28524
  const configs = resolveRunConfigs(run4, runConfigBaseDir());
@@ -28469,9 +28530,9 @@ function assertMsbuildInstalled() {
28469
28530
  try {
28470
28531
  execSync41(`"${msbuild}" -version`, { stdio: "pipe" });
28471
28532
  } catch {
28472
- console.error(chalk180.red(`msbuild not found at: ${msbuild}`));
28533
+ console.error(chalk181.red(`msbuild not found at: ${msbuild}`));
28473
28534
  console.error(
28474
- chalk180.yellow(
28535
+ chalk181.yellow(
28475
28536
  "Configure it via a 'build' run entry in .claude/assist.yml or add msbuild to PATH."
28476
28537
  )
28477
28538
  );
@@ -28518,17 +28579,17 @@ function runEngine(resolved, changedFiles2, options2) {
28518
28579
  // src/commands/dotnet/inspect.ts
28519
28580
  function logScope(changedFiles2) {
28520
28581
  if (changedFiles2 === null) {
28521
- console.log(chalk181.dim("Inspecting full solution..."));
28582
+ console.log(chalk182.dim("Inspecting full solution..."));
28522
28583
  } else {
28523
28584
  console.log(
28524
- chalk181.dim(`Inspecting ${changedFiles2.length} changed file(s)...`)
28585
+ chalk182.dim(`Inspecting ${changedFiles2.length} changed file(s)...`)
28525
28586
  );
28526
28587
  }
28527
28588
  }
28528
28589
  function reportResults(issues, elapsed) {
28529
28590
  if (issues.length > 0) displayIssues(issues);
28530
- else console.log(chalk181.green("No issues found"));
28531
- console.log(chalk181.dim(`Completed in ${formatElapsed(elapsed)}`));
28591
+ else console.log(chalk182.green("No issues found"));
28592
+ console.log(chalk182.dim(`Completed in ${formatElapsed(elapsed)}`));
28532
28593
  if (issues.length > 0) process.exit(1);
28533
28594
  }
28534
28595
  async function inspect(sln, options2) {
@@ -28539,7 +28600,7 @@ async function inspect(sln, options2) {
28539
28600
  const scope = parseScope(options2.scope);
28540
28601
  const changedFiles2 = getChangedCsFiles(scope);
28541
28602
  if (changedFiles2 !== null && changedFiles2.length === 0) {
28542
- console.log(chalk181.green("No changed .cs files found"));
28603
+ console.log(chalk182.green("No changed .cs files found"));
28543
28604
  return;
28544
28605
  }
28545
28606
  logScope(changedFiles2);
@@ -29438,25 +29499,25 @@ function fetchRepoCommitAuthors(org, repo, since) {
29438
29499
  }
29439
29500
 
29440
29501
  // src/commands/github/printCountTable.ts
29441
- import chalk182 from "chalk";
29502
+ import chalk183 from "chalk";
29442
29503
  function printCountTable(labelHeader, rows) {
29443
29504
  const labelWidth = Math.max(
29444
29505
  labelHeader.length,
29445
29506
  ...rows.map((row2) => row2.label.length)
29446
29507
  );
29447
29508
  const header = `${labelHeader.padEnd(labelWidth)} Commits`;
29448
- console.log(chalk182.dim(header));
29449
- console.log(chalk182.dim("-".repeat(header.length)));
29509
+ console.log(chalk183.dim(header));
29510
+ console.log(chalk183.dim("-".repeat(header.length)));
29450
29511
  for (const row2 of rows) {
29451
29512
  console.log(`${row2.label.padEnd(labelWidth)} ${row2.count}`);
29452
29513
  }
29453
29514
  }
29454
29515
 
29455
29516
  // src/commands/github/printRepoAuthorBreakdown.ts
29456
- import chalk183 from "chalk";
29517
+ import chalk184 from "chalk";
29457
29518
  function printRepoAuthorBreakdown(repos2) {
29458
29519
  for (const repo of repos2) {
29459
- console.log(chalk183.bold(repo.name));
29520
+ console.log(chalk184.bold(repo.name));
29460
29521
  const authorWidth = Math.max(
29461
29522
  0,
29462
29523
  ...repo.authors.map((a) => a.author.length)
@@ -29530,10 +29591,10 @@ function parseSinceDate(value) {
29530
29591
  }
29531
29592
 
29532
29593
  // src/commands/github/issue/fixStructure/applyAndVerifySubtree.ts
29533
- import chalk185 from "chalk";
29594
+ import chalk186 from "chalk";
29534
29595
 
29535
29596
  // src/commands/github/issue/fixStructure/applyFixStructurePlan.ts
29536
- import chalk184 from "chalk";
29597
+ import chalk185 from "chalk";
29537
29598
 
29538
29599
  // src/commands/github/issue/fixStructure/removeIssueLabels.ts
29539
29600
  var MUTATION2 = `mutation($labelableId: ID!, $labelIds: [ID!]!) {
@@ -29570,7 +29631,7 @@ function writeLineNow(line) {
29570
29631
  // src/commands/github/issue/fixStructure/applyFixStructurePlan.ts
29571
29632
  function applyFixStructurePlan(plan2) {
29572
29633
  for (const entry of plan2.entries) {
29573
- const where = chalk184.cyan(`${entry.issue.repo}#${entry.issue.number}`);
29634
+ const where = chalk185.cyan(`${entry.issue.repo}#${entry.issue.number}`);
29574
29635
  const { typeChange, labelRemovals } = entry;
29575
29636
  if (typeChange) {
29576
29637
  writeLineNow(
@@ -29840,12 +29901,12 @@ function planSubtree(root2, context) {
29840
29901
  function applyAndVerifySubtree(target, plan2, context) {
29841
29902
  if (plan2.typeChangeCount === 0 && plan2.labelRemovalCount === 0) return;
29842
29903
  applyFixStructurePlan(plan2);
29843
- writeLineNow(chalk185.dim("Re-walking the subtree to confirm"));
29904
+ writeLineNow(chalk186.dim("Re-walking the subtree to confirm"));
29844
29905
  assertNoResidualDrift(
29845
29906
  planSubtree(fetchRootIssue(target), context),
29846
29907
  context.chain
29847
29908
  );
29848
- writeLineNow(chalk185.green("Subtree normalised"));
29909
+ writeLineNow(chalk186.green("Subtree normalised"));
29849
29910
  }
29850
29911
 
29851
29912
  // src/commands/github/issue/fixStructure/assertChainTypesExist.ts
@@ -29881,22 +29942,22 @@ function parseTypeChain(value) {
29881
29942
  }
29882
29943
 
29883
29944
  // src/commands/github/issue/fixStructure/printFixStructurePlan.ts
29884
- import chalk186 from "chalk";
29945
+ import chalk187 from "chalk";
29885
29946
  function annotate(entry) {
29886
29947
  const notes = [];
29887
29948
  if (entry.level === null) {
29888
- notes.push(chalk186.red("deeper than the leaf level"));
29949
+ notes.push(chalk187.red("deeper than the leaf level"));
29889
29950
  } else if (entry.typeChange) {
29890
29951
  notes.push(
29891
- chalk186.yellow(
29952
+ chalk187.yellow(
29892
29953
  `${entry.typeChange.from ?? "no type"} -> ${entry.typeChange.to}`
29893
29954
  )
29894
29955
  );
29895
29956
  } else {
29896
- notes.push(chalk186.dim(entry.issue.typeName ?? "no type"));
29957
+ notes.push(chalk187.dim(entry.issue.typeName ?? "no type"));
29897
29958
  }
29898
29959
  for (const label of entry.labelRemovals) {
29899
- notes.push(chalk186.yellow(`-${label.name}`));
29960
+ notes.push(chalk187.yellow(`-${label.name}`));
29900
29961
  }
29901
29962
  return notes;
29902
29963
  }
@@ -29904,22 +29965,22 @@ function formatCount(count10, noun) {
29904
29965
  return `${count10} ${noun}${count10 === 1 ? "" : "s"}`;
29905
29966
  }
29906
29967
  function printFixStructurePlan(plan2, chain2, apply) {
29907
- writeLineNow(chalk186.dim(`chain: ${chain2.join(" > ")}`));
29968
+ writeLineNow(chalk187.dim(`chain: ${chain2.join(" > ")}`));
29908
29969
  for (const entry of plan2.entries) {
29909
29970
  const indent4 = " ".repeat(entry.issue.depth);
29910
- const name = chalk186.cyan(`${entry.issue.repo}#${entry.issue.number}`);
29971
+ const name = chalk187.cyan(`${entry.issue.repo}#${entry.issue.number}`);
29911
29972
  writeLineNow(
29912
29973
  `${indent4}${name} ${entry.issue.title} [${annotate(entry).join(", ")}]`
29913
29974
  );
29914
29975
  }
29915
29976
  if (plan2.typeChangeCount === 0 && plan2.labelRemovalCount === 0) {
29916
- writeLineNow(chalk186.green("Nothing to change"));
29977
+ writeLineNow(chalk187.green("Nothing to change"));
29917
29978
  return;
29918
29979
  }
29919
29980
  writeLineNow(
29920
29981
  `${formatCount(plan2.typeChangeCount, "type change")}, ${formatCount(plan2.labelRemovalCount, "label removal")} planned`
29921
29982
  );
29922
- if (!apply) writeLineNow(chalk186.dim("Dry run \u2014 nothing written"));
29983
+ if (!apply) writeLineNow(chalk187.dim("Dry run \u2014 nothing written"));
29923
29984
  }
29924
29985
 
29925
29986
  // src/commands/github/issue/parseRepoSlug.ts
@@ -30077,7 +30138,7 @@ Anything nested below the leaf level fails the run before a single write, naming
30077
30138
  }
30078
30139
 
30079
30140
  // src/commands/github/issue/commentIssue.ts
30080
- import { execFileSync as execFileSync9 } from "child_process";
30141
+ import { execFileSync as execFileSync10 } from "child_process";
30081
30142
 
30082
30143
  // src/shared/validateProposedContent.ts
30083
30144
  function validateProposedContent(labels, title, body) {
@@ -30138,7 +30199,7 @@ async function commentIssue(numberArg, options2) {
30138
30199
  const args = ["issue", "comment", String(number), "--body", body];
30139
30200
  if (options2.repo) args.push("--repo", options2.repo);
30140
30201
  try {
30141
- execFileSync9("gh", args, { stdio: "inherit" });
30202
+ execFileSync10("gh", args, { stdio: "inherit" });
30142
30203
  } catch {
30143
30204
  process.exit(1);
30144
30205
  }
@@ -30639,7 +30700,7 @@ function attachArgs(attachments) {
30639
30700
  }
30640
30701
 
30641
30702
  // src/commands/prs/runGhWithAttachments.ts
30642
- import { execFileSync as execFileSync10 } from "child_process";
30703
+ import { execFileSync as execFileSync11 } from "child_process";
30643
30704
  import { basename as basename18 } from "path";
30644
30705
 
30645
30706
  // src/shared/removeStagedAttachments.ts
@@ -30667,7 +30728,7 @@ function reportPartialFailure(attachments, stderr) {
30667
30728
  function runGhWithAttachments(args, attachments) {
30668
30729
  const attaching = attachments.length > 0;
30669
30730
  try {
30670
- const stdout = execFileSync10("gh", args, {
30731
+ const stdout = execFileSync11("gh", args, {
30671
30732
  encoding: "utf8",
30672
30733
  stdio: ["inherit", "pipe", attaching ? "pipe" : "inherit"]
30673
30734
  });
@@ -30778,7 +30839,7 @@ The project scope is needed for --project: gh auth refresh -h github.com -s proj
30778
30839
  }
30779
30840
 
30780
30841
  // src/commands/github/issue/fetchIssue.ts
30781
- import { execFileSync as execFileSync11 } from "child_process";
30842
+ import { execFileSync as execFileSync12 } from "child_process";
30782
30843
  function fetchIssue2(number, repo) {
30783
30844
  const args = [
30784
30845
  "issue",
@@ -30790,7 +30851,7 @@ function fetchIssue2(number, repo) {
30790
30851
  if (repo) args.push("--repo", repo);
30791
30852
  let raw;
30792
30853
  try {
30793
- raw = execFileSync11("gh", args, { encoding: "utf8" });
30854
+ raw = execFileSync12("gh", args, { encoding: "utf8" });
30794
30855
  } catch {
30795
30856
  console.error(`Could not fetch issue #${number} with gh issue view`);
30796
30857
  process.exit(1);
@@ -30900,12 +30961,12 @@ function prepareIssueEdit(number, repo, fresh, proposed) {
30900
30961
  }
30901
30962
 
30902
30963
  // src/commands/github/issue/pushIssueBody.ts
30903
- import { execFileSync as execFileSync12 } from "child_process";
30964
+ import { execFileSync as execFileSync13 } from "child_process";
30904
30965
  function pushIssueBody(number, repo, bodyPath) {
30905
30966
  const args = ["issue", "edit", String(number), "--body-file", bodyPath];
30906
30967
  if (repo) args.push("--repo", repo);
30907
30968
  try {
30908
- execFileSync12("gh", args, { stdio: "inherit" });
30969
+ execFileSync13("gh", args, { stdio: "inherit" });
30909
30970
  } catch {
30910
30971
  process.exit(1);
30911
30972
  }
@@ -30984,12 +31045,12 @@ function setIssueParent(number, repo, parentArg) {
30984
31045
  }
30985
31046
 
30986
31047
  // src/commands/github/issue/viewIssue.ts
30987
- import { execFileSync as execFileSync13 } from "child_process";
31048
+ import { execFileSync as execFileSync14 } from "child_process";
30988
31049
  function viewIssue(number, repo) {
30989
31050
  const args = ["issue", "view", String(number)];
30990
31051
  if (repo) args.push("--repo", repo);
30991
31052
  try {
30992
- execFileSync13("gh", args, { stdio: "inherit" });
31053
+ execFileSync14("gh", args, { stdio: "inherit" });
30993
31054
  } catch {
30994
31055
  process.exit(1);
30995
31056
  }
@@ -31043,7 +31104,7 @@ function registerEditIssue(issueCommand) {
31043
31104
  }
31044
31105
 
31045
31106
  // src/commands/github/issue/editIssueComment.ts
31046
- import { execFileSync as execFileSync14 } from "child_process";
31107
+ import { execFileSync as execFileSync15 } from "child_process";
31047
31108
  var USAGE4 = "Usage: assist github issue edit-comment <comment-id> --body <body> [-R <owner>/<repo>]";
31048
31109
  async function editIssueComment(commentIdArg, options2) {
31049
31110
  const commentId = Number.parseInt(commentIdArg, 10);
@@ -31070,7 +31131,7 @@ async function editIssueComment(commentIdArg, options2) {
31070
31131
  ];
31071
31132
  let raw;
31072
31133
  try {
31073
- raw = execFileSync14("gh", args, {
31134
+ raw = execFileSync15("gh", args, {
31074
31135
  input: JSON.stringify({ body }),
31075
31136
  encoding: "utf8"
31076
31137
  });
@@ -31315,25 +31376,25 @@ function registerGithub(program) {
31315
31376
  }
31316
31377
 
31317
31378
  // src/commands/inbox/list.ts
31318
- import chalk187 from "chalk";
31379
+ import chalk188 from "chalk";
31319
31380
  async function list3() {
31320
31381
  const messages = await listInboxMessages(await getDb());
31321
31382
  if (messages.length === 0) {
31322
- console.log(chalk187.dim("No flagged messages; run assist inbox scan"));
31383
+ console.log(chalk188.dim("No flagged messages; run assist inbox scan"));
31323
31384
  return;
31324
31385
  }
31325
31386
  for (const message3 of messages) {
31326
31387
  const when = (message3.receivedAt ?? message3.flaggedAt).toISOString();
31327
31388
  console.log(
31328
- `${chalk187.dim(when)} ${chalk187.cyan(message3.source)} ${chalk187.bold(message3.sender)}`
31389
+ `${chalk188.dim(when)} ${chalk188.cyan(message3.source)} ${chalk188.bold(message3.sender)}`
31329
31390
  );
31330
31391
  console.log(` ${message3.summary}`);
31331
- console.log(` ${chalk187.dim(message3.link)}`);
31392
+ console.log(` ${chalk188.dim(message3.link)}`);
31332
31393
  }
31333
31394
  }
31334
31395
 
31335
31396
  // src/commands/inbox/scan.ts
31336
- import chalk188 from "chalk";
31397
+ import chalk189 from "chalk";
31337
31398
 
31338
31399
  // src/shared/formatTokens.ts
31339
31400
  function formatTokens(n) {
@@ -31611,7 +31672,7 @@ async function scan() {
31611
31672
  )
31612
31673
  });
31613
31674
  console.log(
31614
- `Flagged ${flagged} message(s) needing a reply, ${chalk188.bold(added)} new. ${chalk188.dim(formatScanUsage(usage))}`
31675
+ `Flagged ${flagged} message(s) needing a reply, ${chalk189.bold(added)} new. ${chalk189.dim(formatScanUsage(usage))}`
31615
31676
  );
31616
31677
  }
31617
31678
 
@@ -31626,7 +31687,7 @@ function registerInbox(program) {
31626
31687
  }
31627
31688
 
31628
31689
  // src/commands/jira/acceptanceCriteria.ts
31629
- import chalk189 from "chalk";
31690
+ import chalk190 from "chalk";
31630
31691
 
31631
31692
  // src/commands/jira/adfToText.ts
31632
31693
  function renderInline(node) {
@@ -31693,7 +31754,7 @@ function acceptanceCriteria(issueKey) {
31693
31754
  const parsed = fetchIssue(issueKey, field);
31694
31755
  const acValue = parsed?.fields?.[field];
31695
31756
  if (!acValue) {
31696
- console.log(chalk189.yellow(`No acceptance criteria found on ${issueKey}.`));
31757
+ console.log(chalk190.yellow(`No acceptance criteria found on ${issueKey}.`));
31697
31758
  return;
31698
31759
  }
31699
31760
  if (typeof acValue === "string") {
@@ -31759,14 +31820,14 @@ async function jiraAuth() {
31759
31820
  }
31760
31821
 
31761
31822
  // src/commands/jira/viewIssue.ts
31762
- import chalk190 from "chalk";
31823
+ import chalk191 from "chalk";
31763
31824
  function viewIssue2(issueKey) {
31764
31825
  const parsed = fetchIssue(issueKey, "summary,description");
31765
31826
  const fields = parsed?.fields;
31766
31827
  const summary = fields?.summary;
31767
31828
  const description = fields?.description;
31768
31829
  if (summary) {
31769
- console.log(chalk190.bold(summary));
31830
+ console.log(chalk191.bold(summary));
31770
31831
  }
31771
31832
  if (description) {
31772
31833
  if (summary) console.log();
@@ -31780,7 +31841,7 @@ function viewIssue2(issueKey) {
31780
31841
  }
31781
31842
  if (!summary && !description) {
31782
31843
  console.log(
31783
- chalk190.yellow(`No summary or description found on ${issueKey}.`)
31844
+ chalk191.yellow(`No summary or description found on ${issueKey}.`)
31784
31845
  );
31785
31846
  }
31786
31847
  }
@@ -31814,7 +31875,7 @@ function registerRefineLaunch(program, resumeFlag) {
31814
31875
  import { randomUUID as randomUUID17 } from "crypto";
31815
31876
 
31816
31877
  // src/commands/review/checkoutPr.ts
31817
- import { execFileSync as execFileSync17 } from "child_process";
31878
+ import { execFileSync as execFileSync18 } from "child_process";
31818
31879
 
31819
31880
  // src/commands/review/clearStalePrBranch.ts
31820
31881
  var tipSetFromRemote = /^branch: (Created from|Reset to)|^fetch\b|: Fast-forward$/;
@@ -32464,13 +32525,13 @@ function prCliCommands(number, cwd) {
32464
32525
  }
32465
32526
 
32466
32527
  // src/commands/review/prHeadBranch.ts
32467
- import { execFileSync as execFileSync15 } from "child_process";
32528
+ import { execFileSync as execFileSync16 } from "child_process";
32468
32529
  function prHeadBranch({
32469
32530
  headBranch
32470
32531
  }) {
32471
32532
  try {
32472
32533
  return headBranch.parse(
32473
- execFileSync15(headBranch.file, headBranch.args, {
32534
+ execFileSync16(headBranch.file, headBranch.args, {
32474
32535
  encoding: "utf8",
32475
32536
  stdio: ["ignore", "pipe", "pipe"]
32476
32537
  })
@@ -32538,10 +32599,10 @@ function worktreeHoldingBranch(cwd, branch2) {
32538
32599
  }
32539
32600
 
32540
32601
  // src/commands/review/failCheckout.ts
32541
- import chalk191 from "chalk";
32602
+ import chalk192 from "chalk";
32542
32603
 
32543
32604
  // src/commands/review/azCliProblem.ts
32544
- import { execFileSync as execFileSync16 } from "child_process";
32605
+ import { execFileSync as execFileSync17 } from "child_process";
32545
32606
 
32546
32607
  // src/commands/review/azFailureProblem.ts
32547
32608
  var azProblems = {
@@ -32569,7 +32630,7 @@ function azFailureProblem(error) {
32569
32630
  // src/commands/review/azCliProblem.ts
32570
32631
  function runAz(args) {
32571
32632
  try {
32572
- execFileSync16("az", args, { stdio: "ignore" });
32633
+ execFileSync17("az", args, { stdio: "ignore" });
32573
32634
  return "ok";
32574
32635
  } catch (error) {
32575
32636
  return error.code === "ENOENT" ? "missing" : "failed";
@@ -32591,14 +32652,14 @@ function failCheckout(number, headRef, stale, from, checkout) {
32591
32652
  gitSyncOrNull(process.cwd(), ["checkout", "--quiet", from]);
32592
32653
  if (headRef && stale === "local-work")
32593
32654
  console.error(
32594
- chalk191.red(
32655
+ chalk192.red(
32595
32656
  `Local branch ${headRef} has commits that are not on the remote and cannot fast-forward to PR #${number}'s head; push or reset ${headRef}, then retry.`
32596
32657
  )
32597
32658
  );
32598
32659
  const problem = checkout.file === "az" ? azCliProblem() : null;
32599
- if (problem) console.error(chalk191.red(problem));
32660
+ if (problem) console.error(chalk192.red(problem));
32600
32661
  console.error(
32601
- chalk191.red(`${checkout.file} ${checkout.args.join(" ")} failed; aborting.`)
32662
+ chalk192.red(`${checkout.file} ${checkout.args.join(" ")} failed; aborting.`)
32602
32663
  );
32603
32664
  process.exit(1);
32604
32665
  }
@@ -32632,7 +32693,7 @@ async function checkoutPr(number) {
32632
32693
  const from = branch2 === "HEAD" ? gitSyncOrNull(process.cwd(), ["rev-parse", "HEAD"]) : branch2;
32633
32694
  const stale = headRef ? clearStalePrBranch(process.cwd(), headRef) : "absent";
32634
32695
  try {
32635
- execFileSync17(commands.checkout.file, commands.checkout.args, {
32696
+ execFileSync18(commands.checkout.file, commands.checkout.args, {
32636
32697
  stdio: "inherit"
32637
32698
  });
32638
32699
  } catch {
@@ -32780,18 +32841,18 @@ function registerList(program) {
32780
32841
  }
32781
32842
 
32782
32843
  // src/commands/litellm/listModels.ts
32783
- import chalk193 from "chalk";
32844
+ import chalk194 from "chalk";
32784
32845
 
32785
32846
  // src/commands/litellm/resolveLitellmConfig.ts
32786
- import chalk192 from "chalk";
32847
+ import chalk193 from "chalk";
32787
32848
  function resolveLitellmConfig() {
32788
32849
  const { config, missing } = readLitellmConfig();
32789
32850
  if (!config) {
32790
- console.error(chalk192.red("LiteLLM is not configured"));
32851
+ console.error(chalk193.red("LiteLLM is not configured"));
32791
32852
  for (const key of missing) {
32792
32853
  const entry = litellmConfigHelp.find((help) => help.key === key);
32793
32854
  console.error(
32794
- chalk192.red(` ${key} is not set. Set it with: ${entry?.setter}`)
32855
+ chalk193.red(` ${key} is not set. Set it with: ${entry?.setter}`)
32795
32856
  );
32796
32857
  }
32797
32858
  process.exit(1);
@@ -32817,13 +32878,13 @@ async function listModels(options2) {
32817
32878
  } catch (error) {
32818
32879
  const reason4 = error instanceof Error ? error.message : String(error);
32819
32880
  console.error(
32820
- chalk193.red(`Failed to reach LiteLLM at ${baseUrl}: ${reason4}`)
32881
+ chalk194.red(`Failed to reach LiteLLM at ${baseUrl}: ${reason4}`)
32821
32882
  );
32822
32883
  process.exit(1);
32823
32884
  }
32824
32885
  const body = await response.text();
32825
32886
  if (!response.ok) {
32826
- console.error(chalk193.red(`LiteLLM returned ${response.status}: ${body}`));
32887
+ console.error(chalk194.red(`LiteLLM returned ${response.status}: ${body}`));
32827
32888
  process.exit(1);
32828
32889
  }
32829
32890
  if (options2.json) {
@@ -32843,15 +32904,15 @@ function registerLitellm(program) {
32843
32904
  // src/commands/mermaidExport.ts
32844
32905
  import { mkdirSync as mkdirSync25, readdirSync as readdirSync15 } from "fs";
32845
32906
  import { resolve as resolve24 } from "path";
32846
- import chalk196 from "chalk";
32907
+ import chalk197 from "chalk";
32847
32908
 
32848
32909
  // src/commands/mermaid/exportFile.ts
32849
32910
  import { readFileSync as readFileSync47, writeFileSync as writeFileSync36 } from "fs";
32850
32911
  import { basename as basename21, extname as extname4, resolve as resolve23 } from "path";
32851
- import chalk195 from "chalk";
32912
+ import chalk196 from "chalk";
32852
32913
 
32853
32914
  // src/commands/mermaid/renderBlock.ts
32854
- import chalk194 from "chalk";
32915
+ import chalk195 from "chalk";
32855
32916
  async function renderBlock(krokiUrl, source) {
32856
32917
  const response = await fetch(`${krokiUrl}/mermaid/svg`, {
32857
32918
  method: "POST",
@@ -32860,7 +32921,7 @@ async function renderBlock(krokiUrl, source) {
32860
32921
  });
32861
32922
  if (!response.ok) {
32862
32923
  console.error(
32863
- chalk194.red(
32924
+ chalk195.red(
32864
32925
  `Kroki request failed: ${response.status} ${response.statusText}`
32865
32926
  )
32866
32927
  );
@@ -32878,19 +32939,19 @@ async function exportFile(file, outDir, krokiUrl, onlyIndex) {
32878
32939
  if (onlyIndex !== void 0) {
32879
32940
  if (onlyIndex < 1 || onlyIndex > blocks2.length) {
32880
32941
  console.error(
32881
- chalk195.red(
32942
+ chalk196.red(
32882
32943
  `${file}: --index ${onlyIndex} out of range (file has ${blocks2.length} diagram(s))`
32883
32944
  )
32884
32945
  );
32885
32946
  process.exit(1);
32886
32947
  }
32887
32948
  console.log(
32888
- chalk195.gray(
32949
+ chalk196.gray(
32889
32950
  `${file} \u2014 rendering diagram ${onlyIndex} of ${blocks2.length}`
32890
32951
  )
32891
32952
  );
32892
32953
  } else {
32893
- console.log(chalk195.gray(`${file} \u2014 ${blocks2.length} diagram(s)`));
32954
+ console.log(chalk196.gray(`${file} \u2014 ${blocks2.length} diagram(s)`));
32894
32955
  }
32895
32956
  for (const [i, source] of blocks2.entries()) {
32896
32957
  const idx = i + 1;
@@ -32898,7 +32959,7 @@ async function exportFile(file, outDir, krokiUrl, onlyIndex) {
32898
32959
  const outPath = resolve23(outDir, `${stem}-${idx}.svg`);
32899
32960
  const svg = await renderBlock(krokiUrl, source);
32900
32961
  writeFileSync36(outPath, svg, "utf8");
32901
- console.log(chalk195.green(` \u2192 ${outPath}`));
32962
+ console.log(chalk196.green(` \u2192 ${outPath}`));
32902
32963
  }
32903
32964
  }
32904
32965
  function extractMermaidBlocks(markdown) {
@@ -32914,18 +32975,18 @@ async function mermaidExport(file, options2 = {}) {
32914
32975
  if (options2.index !== void 0) {
32915
32976
  if (!Number.isInteger(options2.index) || options2.index < 1) {
32916
32977
  console.error(
32917
- chalk196.red(`--index must be a positive integer (got ${options2.index})`)
32978
+ chalk197.red(`--index must be a positive integer (got ${options2.index})`)
32918
32979
  );
32919
32980
  process.exit(1);
32920
32981
  }
32921
32982
  if (!file) {
32922
- console.error(chalk196.red("--index requires a file argument"));
32983
+ console.error(chalk197.red("--index requires a file argument"));
32923
32984
  process.exit(1);
32924
32985
  }
32925
32986
  }
32926
32987
  const files = file ? [file] : readdirSync15(process.cwd()).filter((name) => name.toLowerCase().endsWith(".md")).sort();
32927
32988
  if (files.length === 0) {
32928
- console.log(chalk196.gray("No markdown files found in current directory."));
32989
+ console.log(chalk197.gray("No markdown files found in current directory."));
32929
32990
  return;
32930
32991
  }
32931
32992
  for (const f of files) {
@@ -33071,7 +33132,7 @@ function extractToSave(details, cwd = process.cwd()) {
33071
33132
  }
33072
33133
 
33073
33134
  // src/commands/miro/keptTexts.ts
33074
- import chalk197 from "chalk";
33135
+ import chalk198 from "chalk";
33075
33136
 
33076
33137
  // src/commands/miro/applyIgnore.ts
33077
33138
  function applyIgnore(texts, ignore3) {
@@ -33110,7 +33171,7 @@ function warnUnmatched(file, unmatched) {
33110
33171
  if (unmatched.length === 0) return;
33111
33172
  const entries = unmatched.map((entry) => ` - ${entry}`).join("\n");
33112
33173
  console.error(
33113
- chalk197.yellow(
33174
+ chalk198.yellow(
33114
33175
  `${unmatched.length} ${unmatched.length === 1 ? "entry" : "entries"} in ${file} matched no box text:
33115
33176
  ${entries}`
33116
33177
  )
@@ -33311,7 +33372,7 @@ function readMiroItems(file) {
33311
33372
  }
33312
33373
 
33313
33374
  // src/commands/miro/resolveExtractOptions.ts
33314
- import chalk198 from "chalk";
33375
+ import chalk199 from "chalk";
33315
33376
 
33316
33377
  // src/commands/miro/extractLayers.ts
33317
33378
  function extractsIn(layer) {
@@ -33389,7 +33450,7 @@ function resolveExtractOptions(name, options2, paths) {
33389
33450
  paths.cwd,
33390
33451
  paths.globalConfigPath
33391
33452
  );
33392
- console.error(chalk198.dim(`Extract "${name}" from ${resolved.from}`));
33453
+ console.error(chalk199.dim(`Extract "${name}" from ${resolved.from}`));
33393
33454
  return resolved.options;
33394
33455
  }
33395
33456
 
@@ -33494,7 +33555,7 @@ function registerMiro(program) {
33494
33555
  import { mkdir as mkdir6 } from "fs/promises";
33495
33556
  import { createServer as createServer2 } from "http";
33496
33557
  import { dirname as dirname39 } from "path";
33497
- import chalk200 from "chalk";
33558
+ import chalk201 from "chalk";
33498
33559
 
33499
33560
  // src/commands/netcap/corsHeaders.ts
33500
33561
  var corsHeaders = {
@@ -33573,7 +33634,7 @@ function createNetcapHandler(options2) {
33573
33634
  import { cp as cp4, readFile as readFile7, writeFile as writeFile6 } from "fs/promises";
33574
33635
  import { networkInterfaces } from "os";
33575
33636
  import { join as join83 } from "path";
33576
- import chalk199 from "chalk";
33637
+ import chalk200 from "chalk";
33577
33638
 
33578
33639
  // src/commands/netcap/netcapExtensionDir.ts
33579
33640
  import { dirname as dirname38, join as join82 } from "path";
@@ -33617,7 +33678,7 @@ async function prepareExtensionForLoad(port, filter = "") {
33617
33678
  const host = lanIPv4();
33618
33679
  if (!host) {
33619
33680
  console.log(
33620
- chalk199.yellow("could not determine the WSL IP for the extension")
33681
+ chalk200.yellow("could not determine the WSL IP for the extension")
33621
33682
  );
33622
33683
  await configureBackground(source, "127.0.0.1", port, filter);
33623
33684
  return source;
@@ -33628,7 +33689,7 @@ async function prepareExtensionForLoad(port, filter = "") {
33628
33689
  return WSL_WINDOWS_PATH3;
33629
33690
  } catch {
33630
33691
  console.log(
33631
- chalk199.yellow(`could not copy extension to ${WSL_WINDOWS_PATH3}`)
33692
+ chalk200.yellow(`could not copy extension to ${WSL_WINDOWS_PATH3}`)
33632
33693
  );
33633
33694
  return source;
33634
33695
  }
@@ -33661,30 +33722,30 @@ async function netcap(options2) {
33661
33722
  let count10 = 0;
33662
33723
  const handler = createNetcapHandler({
33663
33724
  outPath,
33664
- onPing: () => console.log(chalk200.dim("ping from extension")),
33725
+ onPing: () => console.log(chalk201.dim("ping from extension")),
33665
33726
  onCapture: (entry) => {
33666
33727
  count10 += 1;
33667
33728
  console.log(
33668
- chalk200.green(`captured #${count10}`),
33669
- chalk200.dim(`${entry.method ?? "?"} ${entry.url ?? "?"}`)
33729
+ chalk201.green(`captured #${count10}`),
33730
+ chalk201.dim(`${entry.method ?? "?"} ${entry.url ?? "?"}`)
33670
33731
  );
33671
33732
  }
33672
33733
  });
33673
33734
  const server = createServer2(handler);
33674
33735
  server.listen(port, () => {
33675
33736
  console.log(
33676
- chalk200.bold(`netcap receiver listening on http://127.0.0.1:${port}`)
33737
+ chalk201.bold(`netcap receiver listening on http://127.0.0.1:${port}`)
33677
33738
  );
33678
- console.log(chalk200.dim(`appending captures to ${outPath}`));
33739
+ console.log(chalk201.dim(`appending captures to ${outPath}`));
33679
33740
  if (filter)
33680
- console.log(chalk200.dim(`forwarding only URLs matching "${filter}"`));
33681
- console.log(chalk200.dim(`load the unpacked extension from ${extensionPath}`));
33682
- console.log(chalk200.dim("press Ctrl-C to stop"));
33741
+ console.log(chalk201.dim(`forwarding only URLs matching "${filter}"`));
33742
+ console.log(chalk201.dim(`load the unpacked extension from ${extensionPath}`));
33743
+ console.log(chalk201.dim("press Ctrl-C to stop"));
33683
33744
  });
33684
33745
  process.on("SIGINT", () => {
33685
33746
  server.close();
33686
33747
  console.log(
33687
- chalk200.bold(
33748
+ chalk201.bold(
33688
33749
  `
33689
33750
  netcap stopped \u2014 captured ${count10} ${count10 === 1 ? "entry" : "entries"} to ${outPath}`
33690
33751
  )
@@ -33696,7 +33757,7 @@ netcap stopped \u2014 captured ${count10} ${count10 === 1 ? "entry" : "entries"}
33696
33757
  // src/commands/netcap/netcapExtract.ts
33697
33758
  import { writeFileSync as writeFileSync38 } from "fs";
33698
33759
  import { join as join86 } from "path";
33699
- import chalk201 from "chalk";
33760
+ import chalk202 from "chalk";
33700
33761
 
33701
33762
  // src/commands/netcap/extractPostsFromCapture.ts
33702
33763
  import { readFileSync as readFileSync50 } from "fs";
@@ -34144,8 +34205,8 @@ function netcapExtract(file) {
34144
34205
  writeFileSync38(outFile, `${JSON.stringify(posts, null, 2)}
34145
34206
  `);
34146
34207
  console.log(
34147
- chalk201.green(`extracted ${posts.length} posts`),
34148
- chalk201.dim(`-> ${outFile}`)
34208
+ chalk202.green(`extracted ${posts.length} posts`),
34209
+ chalk202.dim(`-> ${outFile}`)
34149
34210
  );
34150
34211
  }
34151
34212
 
@@ -34166,7 +34227,7 @@ function registerNetcap(program) {
34166
34227
  }
34167
34228
 
34168
34229
  // src/commands/news/add.ts
34169
- import chalk202 from "chalk";
34230
+ import chalk203 from "chalk";
34170
34231
  import enquirer8 from "enquirer";
34171
34232
  async function add2(url) {
34172
34233
  if (!url) {
@@ -34187,25 +34248,25 @@ async function add2(url) {
34187
34248
  }
34188
34249
  const added = await addFeed(await getDb(), url);
34189
34250
  if (!added) {
34190
- console.log(chalk202.yellow("Feed already exists"));
34251
+ console.log(chalk203.yellow("Feed already exists"));
34191
34252
  return;
34192
34253
  }
34193
- console.log(chalk202.green(`Added feed: ${url}`));
34254
+ console.log(chalk203.green(`Added feed: ${url}`));
34194
34255
  }
34195
34256
 
34196
34257
  // src/commands/news/list.ts
34197
- import chalk203 from "chalk";
34258
+ import chalk204 from "chalk";
34198
34259
  async function list4() {
34199
34260
  const urls = await listFeeds(await getDb());
34200
34261
  if (urls.length === 0) {
34201
- console.log(chalk203.dim("No feeds; add one with assist news add <url>"));
34262
+ console.log(chalk204.dim("No feeds; add one with assist news add <url>"));
34202
34263
  return;
34203
34264
  }
34204
34265
  for (const url of urls) console.log(url);
34205
34266
  }
34206
34267
 
34207
34268
  // src/commands/news/remove.ts
34208
- import chalk204 from "chalk";
34269
+ import chalk205 from "chalk";
34209
34270
 
34210
34271
  // src/commands/backlog/removeFeed.ts
34211
34272
  import { eq as eq56 } from "drizzle-orm";
@@ -34218,10 +34279,10 @@ async function removeFeed(db, url) {
34218
34279
  async function remove(url) {
34219
34280
  const removed = await removeFeed(await getDb(), url);
34220
34281
  if (!removed) {
34221
- console.log(chalk204.yellow(`No feed matches ${url}`));
34282
+ console.log(chalk205.yellow(`No feed matches ${url}`));
34222
34283
  return;
34223
34284
  }
34224
- console.log(chalk204.green(`Removed feed: ${url}`));
34285
+ console.log(chalk205.green(`Removed feed: ${url}`));
34225
34286
  }
34226
34287
 
34227
34288
  // src/commands/registerNews.ts
@@ -34274,7 +34335,7 @@ function registerPiHook(program) {
34274
34335
  }
34275
34336
 
34276
34337
  // src/commands/prompts/printPromptsTable.ts
34277
- import chalk205 from "chalk";
34338
+ import chalk206 from "chalk";
34278
34339
  function truncate2(str, max) {
34279
34340
  if (str.length <= max) return str;
34280
34341
  return `${str.slice(0, max - 1)}\u2026`;
@@ -34292,14 +34353,14 @@ function printPromptsTable(rows) {
34292
34353
  "Command".padEnd(commandWidth),
34293
34354
  "Repos"
34294
34355
  ].join(" ");
34295
- console.log(chalk205.dim(header));
34296
- console.log(chalk205.dim("-".repeat(header.length)));
34356
+ console.log(chalk206.dim(header));
34357
+ console.log(chalk206.dim("-".repeat(header.length)));
34297
34358
  for (const row2 of rows) {
34298
34359
  const count10 = String(row2.count).padStart(countWidth);
34299
34360
  const tool = row2.tool.padEnd(toolWidth);
34300
34361
  const command = truncate2(row2.command, 60).padEnd(commandWidth);
34301
34362
  console.log(
34302
- `${chalk205.yellow(count10)} ${tool} ${command} ${chalk205.dim(row2.repos)}`
34363
+ `${chalk206.yellow(count10)} ${tool} ${command} ${chalk206.dim(row2.repos)}`
34303
34364
  );
34304
34365
  }
34305
34366
  }
@@ -34337,13 +34398,13 @@ import { execSync as execSync44 } from "child_process";
34337
34398
  import enquirer9 from "enquirer";
34338
34399
 
34339
34400
  // src/commands/prs/prs/displayPaginated/printPr.ts
34340
- import chalk206 from "chalk";
34401
+ import chalk207 from "chalk";
34341
34402
  var STATUS_MAP = {
34342
- MERGED: (pr) => pr.mergedAt ? { label: chalk206.magenta("merged"), date: pr.mergedAt } : null,
34343
- CLOSED: (pr) => pr.closedAt ? { label: chalk206.red("closed"), date: pr.closedAt } : null
34403
+ MERGED: (pr) => pr.mergedAt ? { label: chalk207.magenta("merged"), date: pr.mergedAt } : null,
34404
+ CLOSED: (pr) => pr.closedAt ? { label: chalk207.red("closed"), date: pr.closedAt } : null
34344
34405
  };
34345
34406
  function defaultStatus(pr) {
34346
- return { label: chalk206.green("opened"), date: pr.createdAt };
34407
+ return { label: chalk207.green("opened"), date: pr.createdAt };
34347
34408
  }
34348
34409
  function getStatus(pr) {
34349
34410
  return STATUS_MAP[pr.state]?.(pr) ?? defaultStatus(pr);
@@ -34352,11 +34413,11 @@ function formatDate2(dateStr) {
34352
34413
  return new Date(dateStr).toISOString().split("T")[0];
34353
34414
  }
34354
34415
  function formatPrHeader(pr, status2) {
34355
- return `${chalk206.cyan(`#${pr.number}`)} ${pr.title} ${chalk206.dim(`(${pr.author.login},`)} ${status2.label} ${chalk206.dim(`${formatDate2(status2.date)})`)}`;
34416
+ return `${chalk207.cyan(`#${pr.number}`)} ${pr.title} ${chalk207.dim(`(${pr.author.login},`)} ${status2.label} ${chalk207.dim(`${formatDate2(status2.date)})`)}`;
34356
34417
  }
34357
34418
  function logPrDetails(pr) {
34358
34419
  console.log(
34359
- chalk206.dim(` ${pr.changedFiles.toLocaleString()} files | ${pr.url}`)
34420
+ chalk207.dim(` ${pr.changedFiles.toLocaleString()} files | ${pr.url}`)
34360
34421
  );
34361
34422
  console.log();
34362
34423
  }
@@ -34651,9 +34712,9 @@ var azureDevopsThreadRequests = {
34651
34712
  };
34652
34713
 
34653
34714
  // src/commands/prs/azureDevops/currentAzureDevopsPr.ts
34654
- import { execFileSync as execFileSync18 } from "child_process";
34715
+ import { execFileSync as execFileSync19 } from "child_process";
34655
34716
  function findPrForBranch(repo, branch2) {
34656
- const stdout = execFileSync18(
34717
+ const stdout = execFileSync19(
34657
34718
  "az",
34658
34719
  [
34659
34720
  "repos",
@@ -34700,7 +34761,7 @@ function failAzureDevops(error) {
34700
34761
  }
34701
34762
 
34702
34763
  // src/commands/prs/azureDevops/invokeAzDevops.ts
34703
- import { execFileSync as execFileSync19 } from "child_process";
34764
+ import { execFileSync as execFileSync20 } from "child_process";
34704
34765
  import { mkdtempSync as mkdtempSync2, rmSync as rmSync6, writeFileSync as writeFileSync40 } from "fs";
34705
34766
  import { tmpdir as tmpdir6 } from "os";
34706
34767
  import { join as join89 } from "path";
@@ -34729,7 +34790,7 @@ function azDevopsInvokeArgs(request, inFile) {
34729
34790
  ];
34730
34791
  }
34731
34792
  function runAz2(args) {
34732
- const stdout = execFileSync19("az", args, {
34793
+ const stdout = execFileSync20("az", args, {
34733
34794
  encoding: "utf8",
34734
34795
  stdio: ["ignore", "pipe", "pipe"],
34735
34796
  windowsHide: true
@@ -34798,10 +34859,10 @@ function listAzureDevopsComments(repo) {
34798
34859
  }
34799
34860
 
34800
34861
  // src/commands/prs/fetchThreadIds.ts
34801
- import { execFileSync as execFileSync20 } from "child_process";
34862
+ import { execFileSync as execFileSync21 } from "child_process";
34802
34863
  var THREAD_QUERY = `query($owner: String!, $repo: String!, $prNumber: Int!) { repository(owner: $owner, name: $repo) { pullRequest(number: $prNumber) { reviewThreads(first: 100) { nodes { id isResolved comments(first: 100) { nodes { databaseId } } } } } } }`;
34803
34864
  function fetchThreadIds(org, repo, prNumber) {
34804
- const result = execFileSync20(
34865
+ const result = execFileSync21(
34805
34866
  "gh",
34806
34867
  [
34807
34868
  "api",
@@ -34925,13 +34986,13 @@ function agentFooter(unresolvedCount) {
34925
34986
  }
34926
34987
 
34927
34988
  // src/commands/prs/listComments/commentStyle.ts
34928
- import chalk207 from "chalk";
34989
+ import chalk208 from "chalk";
34929
34990
  var plain = (text20) => text20;
34930
34991
  function colouredState(state) {
34931
34992
  const label = `[${state}]`;
34932
- if (state === "APPROVED") return chalk207.green(label);
34933
- if (state === "CHANGES_REQUESTED") return chalk207.red(label);
34934
- return chalk207.yellow(label);
34993
+ if (state === "APPROVED") return chalk208.green(label);
34994
+ if (state === "CHANGES_REQUESTED") return chalk208.red(label);
34995
+ return chalk208.yellow(label);
34935
34996
  }
34936
34997
  function commentStyle() {
34937
34998
  if (isClaudeCode()) {
@@ -34945,9 +35006,9 @@ function commentStyle() {
34945
35006
  };
34946
35007
  }
34947
35008
  return {
34948
- cyan: chalk207.cyan,
34949
- bold: chalk207.bold,
34950
- dim: chalk207.dim,
35009
+ cyan: chalk208.cyan,
35010
+ bold: chalk208.bold,
35011
+ dim: chalk208.dim,
34951
35012
  state: colouredState,
34952
35013
  diffHunk: true,
34953
35014
  agent: false
@@ -35082,7 +35143,7 @@ function printComments2(result) {
35082
35143
  import { execSync as execSync46 } from "child_process";
35083
35144
 
35084
35145
  // src/commands/prs/threadTarget.ts
35085
- import { execFileSync as execFileSync21 } from "child_process";
35146
+ import { execFileSync as execFileSync22 } from "child_process";
35086
35147
 
35087
35148
  // src/commands/prs/azureDevops/azureDevopsThreadActions.ts
35088
35149
  function attempt(run4) {
@@ -35130,7 +35191,7 @@ function replyToComment(org, repo, prNumber, commentId, message3) {
35130
35191
  // src/commands/prs/threadTarget.ts
35131
35192
  function resolveThread(threadId) {
35132
35193
  const mutation = `mutation($threadId: ID!) { resolveReviewThread(input: {threadId: $threadId}) { thread { isResolved } } }`;
35133
- execFileSync21(
35194
+ execFileSync22(
35134
35195
  "gh",
35135
35196
  ["api", "graphql", "-f", `query=${mutation}`, "-f", `threadId=${threadId}`],
35136
35197
  { stdio: ["inherit", "pipe", "inherit"] }
@@ -35770,7 +35831,7 @@ function buildValidatedBody(options2, usage) {
35770
35831
  }
35771
35832
 
35772
35833
  // src/commands/prs/placePr.ts
35773
- import { execFileSync as execFileSync22 } from "child_process";
35834
+ import { execFileSync as execFileSync23 } from "child_process";
35774
35835
 
35775
35836
  // src/commands/prs/buildCreateArgs.ts
35776
35837
  function buildCreateArgs(title, body, options2, attachments = []) {
@@ -35856,7 +35917,7 @@ function buildEditArgs(number, title, body, attachments = []) {
35856
35917
  // src/commands/prs/placePr.ts
35857
35918
  function hasUpstream2() {
35858
35919
  try {
35859
- execFileSync22(
35920
+ execFileSync23(
35860
35921
  "git",
35861
35922
  ["rev-parse", "--abbrev-ref", "--symbolic-full-name", "@{u}"],
35862
35923
  { stdio: "pipe" }
@@ -35868,7 +35929,7 @@ function hasUpstream2() {
35868
35929
  }
35869
35930
  function ensureBranchPushed() {
35870
35931
  const args = hasUpstream2() ? ["push"] : ["push", "--set-upstream", "origin", "HEAD"];
35871
- execFileSync22("git", args, { stdio: "inherit" });
35932
+ execFileSync23("git", args, { stdio: "inherit" });
35872
35933
  }
35873
35934
  async function placePr(prNumber, title, body, options2, attachments = []) {
35874
35935
  const args = prNumber !== null ? buildEditArgs(prNumber, title, body, attachments) : buildCreateArgs(title, body, options2, attachments);
@@ -35939,10 +36000,10 @@ function warn(reason4) {
35939
36000
  }
35940
36001
 
35941
36002
  // src/commands/prs/enableAutoMerge.ts
35942
- import { execFileSync as execFileSync23 } from "child_process";
36003
+ import { execFileSync as execFileSync24 } from "child_process";
35943
36004
  function enableAutoMerge() {
35944
36005
  try {
35945
- execFileSync23(
36006
+ execFileSync24(
35946
36007
  "gh",
35947
36008
  ["pr", "merge", getCurrentBranch2(), "--auto", "--squash"],
35948
36009
  { stdio: "inherit" }
@@ -36200,10 +36261,10 @@ function prsSlackChannel() {
36200
36261
  }
36201
36262
 
36202
36263
  // src/commands/prs/status/fetchReviewThreads.ts
36203
- import { execFileSync as execFileSync24 } from "child_process";
36264
+ import { execFileSync as execFileSync25 } from "child_process";
36204
36265
  var THREAD_QUERY2 = `query($owner: String!, $repo: String!, $prNumber: Int!) { repository(owner: $owner, name: $repo) { pullRequest(number: $prNumber) { reviewThreads(first: 100) { nodes { isResolved } } } } }`;
36205
36266
  function fetchReviewThreads(org, repo, prNumber) {
36206
- const output = execFileSync24(
36267
+ const output = execFileSync25(
36207
36268
  "gh",
36208
36269
  [
36209
36270
  "api",
@@ -36421,16 +36482,16 @@ function buildPrsStatusReport(repoArguments, now = Date.now()) {
36421
36482
  }
36422
36483
 
36423
36484
  // src/commands/prs/status/printPrsStatus.ts
36424
- import chalk209 from "chalk";
36485
+ import chalk210 from "chalk";
36425
36486
 
36426
36487
  // src/commands/prs/status/printPrStatus.ts
36427
- import chalk208 from "chalk";
36488
+ import chalk209 from "chalk";
36428
36489
  function flags(pr) {
36429
36490
  const markers = [];
36430
36491
  if (pr.isDraft) markers.push("draft");
36431
36492
  if (pr.isDoNotMerge) markers.push("do not merge");
36432
36493
  if (pr.isBot) markers.push("bot");
36433
- return markers.length ? ` ${chalk208.yellow(`[${markers.join(", ")}]`)}` : "";
36494
+ return markers.length ? ` ${chalk209.yellow(`[${markers.join(", ")}]`)}` : "";
36434
36495
  }
36435
36496
  function updated(pr) {
36436
36497
  return pr.ageHours === null ? "updated unknown" : `updated ${pr.age} ago`;
@@ -36444,35 +36505,35 @@ function reviewLine(pr) {
36444
36505
  function checkLines(pr) {
36445
36506
  const lines2 = [];
36446
36507
  if (pr.checks.failing.length) {
36447
- lines2.push(chalk208.red(`failing: ${pr.checks.failing.join(", ")}`));
36508
+ lines2.push(chalk209.red(`failing: ${pr.checks.failing.join(", ")}`));
36448
36509
  }
36449
36510
  if (pr.checks.pending.length) {
36450
- lines2.push(chalk208.yellow(`pending: ${pr.checks.pending.join(", ")}`));
36511
+ lines2.push(chalk209.yellow(`pending: ${pr.checks.pending.join(", ")}`));
36451
36512
  }
36452
36513
  return lines2;
36453
36514
  }
36454
36515
  function threadsLine(pr) {
36455
36516
  if (pr.unresolvedThreads === null) {
36456
- return chalk208.dim("unresolved comments: unknown");
36517
+ return chalk209.dim("unresolved comments: unknown");
36457
36518
  }
36458
36519
  if (pr.unresolvedThreads === 0) return null;
36459
- return chalk208.yellow(`unresolved comments: ${pr.unresolvedThreads}`);
36520
+ return chalk209.yellow(`unresolved comments: ${pr.unresolvedThreads}`);
36460
36521
  }
36461
36522
  function mergeableLine(pr) {
36462
- if (pr.mergeable === "CONFLICTING") return chalk208.red("conflicting");
36523
+ if (pr.mergeable === "CONFLICTING") return chalk209.red("conflicting");
36463
36524
  if (pr.mergeable === "MERGEABLE") return null;
36464
- return chalk208.dim(`mergeable: ${pr.mergeable.toLowerCase()}`);
36525
+ return chalk209.dim(`mergeable: ${pr.mergeable.toLowerCase()}`);
36465
36526
  }
36466
36527
  function printPrStatus(pr) {
36467
36528
  console.log(
36468
- ` ${chalk208.cyan(`#${pr.number}`)} ${pr.title} ${chalk208.dim(`(${pr.author}, ${updated(pr)})`)}${flags(pr)}`
36529
+ ` ${chalk209.cyan(`#${pr.number}`)} ${pr.title} ${chalk209.dim(`(${pr.author}, ${updated(pr)})`)}${flags(pr)}`
36469
36530
  );
36470
36531
  const details = [
36471
36532
  reviewLine(pr),
36472
36533
  ...checkLines(pr),
36473
36534
  threadsLine(pr),
36474
36535
  mergeableLine(pr),
36475
- chalk208.dim(pr.url)
36536
+ chalk209.dim(pr.url)
36476
36537
  ];
36477
36538
  for (const detail of details) {
36478
36539
  if (detail) console.log(` ${detail}`);
@@ -36483,17 +36544,17 @@ function printPrStatus(pr) {
36483
36544
  function printPrsStatus(report) {
36484
36545
  for (const repo of report.repos) {
36485
36546
  const count10 = repo.pullRequests.length;
36486
- console.log(`${chalk209.bold(repo.repo)} ${chalk209.dim(`(${count10} open)`)}`);
36547
+ console.log(`${chalk210.bold(repo.repo)} ${chalk210.dim(`(${count10} open)`)}`);
36487
36548
  for (const pr of repo.pullRequests) {
36488
36549
  printPrStatus(pr);
36489
36550
  }
36490
- if (count10 === 0) console.log(chalk209.dim(" no open pull requests"));
36551
+ if (count10 === 0) console.log(chalk210.dim(" no open pull requests"));
36491
36552
  console.log();
36492
36553
  }
36493
36554
  if (report.errors.length === 0) return;
36494
- console.log(chalk209.bold("Errors"));
36555
+ console.log(chalk210.bold("Errors"));
36495
36556
  for (const failure of report.errors) {
36496
- console.log(` ${chalk209.red(failure.repo)}: ${failure.error}`);
36557
+ console.log(` ${chalk210.red(failure.repo)}: ${failure.error}`);
36497
36558
  }
36498
36559
  console.log();
36499
36560
  }
@@ -36721,10 +36782,10 @@ function registerPrs(program) {
36721
36782
  }
36722
36783
 
36723
36784
  // src/commands/ravendb/ravendbAuth.ts
36724
- import chalk215 from "chalk";
36785
+ import chalk216 from "chalk";
36725
36786
 
36726
36787
  // src/shared/createConnectionAuth.ts
36727
- import chalk210 from "chalk";
36788
+ import chalk211 from "chalk";
36728
36789
  function listConnections(connections, format2) {
36729
36790
  if (connections.length === 0) {
36730
36791
  console.log("No connections configured.");
@@ -36737,7 +36798,7 @@ function listConnections(connections, format2) {
36737
36798
  function removeConnection(connections, name, save) {
36738
36799
  const filtered = connections.filter((c) => c.name !== name);
36739
36800
  if (filtered.length === connections.length) {
36740
- console.error(chalk210.red(`Connection "${name}" not found.`));
36801
+ console.error(chalk211.red(`Connection "${name}" not found.`));
36741
36802
  process.exit(1);
36742
36803
  }
36743
36804
  save(filtered);
@@ -36783,15 +36844,15 @@ function saveConnections(connections) {
36783
36844
  }
36784
36845
 
36785
36846
  // src/commands/ravendb/promptConnection.ts
36786
- import chalk213 from "chalk";
36847
+ import chalk214 from "chalk";
36787
36848
 
36788
36849
  // src/commands/ravendb/selectOpSecret.ts
36789
- import chalk212 from "chalk";
36850
+ import chalk213 from "chalk";
36790
36851
  import Enquirer2 from "enquirer";
36791
36852
 
36792
36853
  // src/commands/ravendb/searchItems.ts
36793
36854
  import { execSync as execSync51 } from "child_process";
36794
- import chalk211 from "chalk";
36855
+ import chalk212 from "chalk";
36795
36856
  function opExec(args) {
36796
36857
  return execSync51(`op ${args}`, {
36797
36858
  encoding: "utf8",
@@ -36804,7 +36865,7 @@ function searchItems(search2) {
36804
36865
  items3 = JSON.parse(opExec("item list --format=json"));
36805
36866
  } catch {
36806
36867
  console.error(
36807
- chalk211.red(
36868
+ chalk212.red(
36808
36869
  "Failed to search 1Password. Ensure the CLI is installed and you are signed in."
36809
36870
  )
36810
36871
  );
@@ -36818,7 +36879,7 @@ function getItemFields(itemId2) {
36818
36879
  const item = JSON.parse(opExec(`item get "${itemId2}" --format=json`));
36819
36880
  return item.fields.filter((f) => f.reference && f.label);
36820
36881
  } catch {
36821
- console.error(chalk211.red("Failed to get item details from 1Password."));
36882
+ console.error(chalk212.red("Failed to get item details from 1Password."));
36822
36883
  process.exit(1);
36823
36884
  }
36824
36885
  }
@@ -36837,7 +36898,7 @@ async function selectOpSecret(searchTerm) {
36837
36898
  }).run();
36838
36899
  const items3 = searchItems(search2);
36839
36900
  if (items3.length === 0) {
36840
- console.error(chalk212.red(`No items found matching "${search2}".`));
36901
+ console.error(chalk213.red(`No items found matching "${search2}".`));
36841
36902
  process.exit(1);
36842
36903
  }
36843
36904
  const itemId2 = await selectOne(
@@ -36846,7 +36907,7 @@ async function selectOpSecret(searchTerm) {
36846
36907
  );
36847
36908
  const fields = getItemFields(itemId2);
36848
36909
  if (fields.length === 0) {
36849
- console.error(chalk212.red("No fields with references found on this item."));
36910
+ console.error(chalk213.red("No fields with references found on this item."));
36850
36911
  process.exit(1);
36851
36912
  }
36852
36913
  const ref = await selectOne(
@@ -36860,7 +36921,7 @@ async function selectOpSecret(searchTerm) {
36860
36921
  async function promptConnection(existingNames) {
36861
36922
  const name = await promptInput("name", "Connection name:");
36862
36923
  if (existingNames.includes(name)) {
36863
- console.error(chalk213.red(`Connection "${name}" already exists.`));
36924
+ console.error(chalk214.red(`Connection "${name}" already exists.`));
36864
36925
  process.exit(1);
36865
36926
  }
36866
36927
  const url = await promptInput(
@@ -36869,22 +36930,22 @@ async function promptConnection(existingNames) {
36869
36930
  );
36870
36931
  const database = await promptInput("database", "Database name:");
36871
36932
  if (!name || !url || !database) {
36872
- console.error(chalk213.red("All fields are required."));
36933
+ console.error(chalk214.red("All fields are required."));
36873
36934
  process.exit(1);
36874
36935
  }
36875
36936
  const apiKeyRef = await selectOpSecret();
36876
- console.log(chalk213.dim(`Using: ${apiKeyRef}`));
36937
+ console.log(chalk214.dim(`Using: ${apiKeyRef}`));
36877
36938
  return { name, url, database, apiKeyRef };
36878
36939
  }
36879
36940
 
36880
36941
  // src/commands/ravendb/ravendbSetConnection.ts
36881
- import chalk214 from "chalk";
36942
+ import chalk215 from "chalk";
36882
36943
  function ravendbSetConnection(name) {
36883
36944
  const raw = loadGlobalConfigRaw();
36884
36945
  const ravendb = raw.ravendb ?? {};
36885
36946
  const connections = ravendb.connections ?? [];
36886
36947
  if (!connections.some((c) => c.name === name)) {
36887
- console.error(chalk214.red(`Connection "${name}" not found.`));
36948
+ console.error(chalk215.red(`Connection "${name}" not found.`));
36888
36949
  console.error(
36889
36950
  `Available: ${connections.map((c) => c.name).join(", ") || "(none)"}`
36890
36951
  );
@@ -36900,16 +36961,16 @@ function ravendbSetConnection(name) {
36900
36961
  var ravendbAuth = createConnectionAuth({
36901
36962
  load: loadConnections,
36902
36963
  save: saveConnections,
36903
- format: (c) => `${chalk215.bold(c.name)} ${c.url} db=${c.database} key=${c.apiKeyRef}`,
36964
+ format: (c) => `${chalk216.bold(c.name)} ${c.url} db=${c.database} key=${c.apiKeyRef}`,
36904
36965
  promptNew: promptConnection,
36905
36966
  onFirst: (c) => ravendbSetConnection(c.name)
36906
36967
  });
36907
36968
 
36908
36969
  // src/commands/ravendb/ravendbCollections.ts
36909
- import chalk219 from "chalk";
36970
+ import chalk220 from "chalk";
36910
36971
 
36911
36972
  // src/commands/ravendb/ravenFetch.ts
36912
- import chalk217 from "chalk";
36973
+ import chalk218 from "chalk";
36913
36974
 
36914
36975
  // src/commands/ravendb/getAccessToken.ts
36915
36976
  var OAUTH_URL = "https://amazon-useast-1-oauth.ravenhq.com/ApiKeys/OAuth/AccessToken";
@@ -36946,10 +37007,10 @@ ${errorText}`
36946
37007
 
36947
37008
  // src/commands/ravendb/resolveOpSecret.ts
36948
37009
  import { execSync as execSync52 } from "child_process";
36949
- import chalk216 from "chalk";
37010
+ import chalk217 from "chalk";
36950
37011
  function resolveOpSecret(reference) {
36951
37012
  if (!reference.startsWith("op://")) {
36952
- console.error(chalk216.red(`Invalid secret reference: must start with op://`));
37013
+ console.error(chalk217.red(`Invalid secret reference: must start with op://`));
36953
37014
  process.exit(1);
36954
37015
  }
36955
37016
  try {
@@ -36959,7 +37020,7 @@ function resolveOpSecret(reference) {
36959
37020
  }).trim();
36960
37021
  } catch {
36961
37022
  console.error(
36962
- chalk216.red(
37023
+ chalk217.red(
36963
37024
  "Failed to resolve secret reference. Ensure 1Password CLI is installed and you are signed in."
36964
37025
  )
36965
37026
  );
@@ -36986,7 +37047,7 @@ async function ravenFetch(connection, path109) {
36986
37047
  if (!response.ok) {
36987
37048
  const body = await response.text();
36988
37049
  console.error(
36989
- chalk217.red(`RavenDB error: ${response.status} ${response.statusText}`)
37050
+ chalk218.red(`RavenDB error: ${response.status} ${response.statusText}`)
36990
37051
  );
36991
37052
  console.error(body.substring(0, 500));
36992
37053
  process.exit(1);
@@ -36995,7 +37056,7 @@ async function ravenFetch(connection, path109) {
36995
37056
  }
36996
37057
 
36997
37058
  // src/commands/ravendb/resolveConnection.ts
36998
- import chalk218 from "chalk";
37059
+ import chalk219 from "chalk";
36999
37060
  function loadRavendb() {
37000
37061
  const raw = loadGlobalConfigRaw();
37001
37062
  const ravendb = raw.ravendb;
@@ -37009,7 +37070,7 @@ function resolveConnection(name) {
37009
37070
  const connectionName = name ?? defaultConnection;
37010
37071
  if (!connectionName) {
37011
37072
  console.error(
37012
- chalk218.red(
37073
+ chalk219.red(
37013
37074
  "No connection specified and no default set. Use assist ravendb set-connection <name> or pass a connection name."
37014
37075
  )
37015
37076
  );
@@ -37017,7 +37078,7 @@ function resolveConnection(name) {
37017
37078
  }
37018
37079
  const connection = connections.find((c) => c.name === connectionName);
37019
37080
  if (!connection) {
37020
- console.error(chalk218.red(`Connection "${connectionName}" not found.`));
37081
+ console.error(chalk219.red(`Connection "${connectionName}" not found.`));
37021
37082
  console.error(
37022
37083
  `Available: ${connections.map((c) => c.name).join(", ") || "(none)"}`
37023
37084
  );
@@ -37048,15 +37109,15 @@ async function ravendbCollections(connectionName) {
37048
37109
  return;
37049
37110
  }
37050
37111
  for (const c of collections) {
37051
- console.log(`${chalk219.bold(c.Name)} ${c.CountOfDocuments} docs`);
37112
+ console.log(`${chalk220.bold(c.Name)} ${c.CountOfDocuments} docs`);
37052
37113
  }
37053
37114
  }
37054
37115
 
37055
37116
  // src/commands/ravendb/ravendbQuery.ts
37056
- import chalk221 from "chalk";
37117
+ import chalk222 from "chalk";
37057
37118
 
37058
37119
  // src/commands/ravendb/fetchAllPages.ts
37059
- import chalk220 from "chalk";
37120
+ import chalk221 from "chalk";
37060
37121
 
37061
37122
  // src/commands/ravendb/buildQueryPath.ts
37062
37123
  function buildQueryPath(opts) {
@@ -37094,7 +37155,7 @@ async function fetchAllPages(connection, opts) {
37094
37155
  allResults.push(...results);
37095
37156
  start2 += results.length;
37096
37157
  process.stderr.write(
37097
- `\r${chalk220.dim(`Fetched ${allResults.length}/${totalResults}`)}`
37158
+ `\r${chalk221.dim(`Fetched ${allResults.length}/${totalResults}`)}`
37098
37159
  );
37099
37160
  if (start2 >= totalResults) break;
37100
37161
  if (opts.limit !== void 0 && allResults.length >= opts.limit) break;
@@ -37109,7 +37170,7 @@ async function fetchAllPages(connection, opts) {
37109
37170
  async function ravendbQuery(connectionName, collection, options2) {
37110
37171
  const resolved = resolveArgs(connectionName, collection);
37111
37172
  if (!resolved.collection && !options2.query) {
37112
- console.error(chalk221.red("Provide a collection name or --query filter."));
37173
+ console.error(chalk222.red("Provide a collection name or --query filter."));
37113
37174
  process.exit(1);
37114
37175
  }
37115
37176
  const { collection: col } = resolved;
@@ -37144,7 +37205,7 @@ function registerRavendb(program) {
37144
37205
  }
37145
37206
 
37146
37207
  // src/commands/releases/releasesConfigure.ts
37147
- import chalk223 from "chalk";
37208
+ import chalk224 from "chalk";
37148
37209
 
37149
37210
  // src/commands/config/parseRepoScopeFlag.ts
37150
37211
  var REPO_SCOPE_FLAGS = {
@@ -37215,26 +37276,26 @@ function readStreamsInput(source) {
37215
37276
  }
37216
37277
 
37217
37278
  // src/commands/releases/reportDerivedStreams.ts
37218
- import chalk222 from "chalk";
37279
+ import chalk223 from "chalk";
37219
37280
  function printDerived(stream) {
37220
37281
  const environments = stream.nodes.flatMap((n) => n.environment ?? []);
37221
37282
  const steps = stream.nodes.filter((n) => !n.environment);
37222
37283
  console.log(
37223
- `${chalk222.bold(stream.name)} ${chalk222.dim(`${stream.repo} \xB7 ${stream.workflow}`)}`
37284
+ `${chalk223.bold(stream.name)} ${chalk223.dim(`${stream.repo} \xB7 ${stream.workflow}`)}`
37224
37285
  );
37225
37286
  console.log(
37226
- ` environments: ${environments.join(", ") || chalk222.dim("none")}`
37287
+ ` environments: ${environments.join(", ") || chalk223.dim("none")}`
37227
37288
  );
37228
37289
  if (steps.length > 0)
37229
37290
  console.log(
37230
37291
  ` steps: ${steps.map((n) => `${n.id} [${n.kind ?? "step"}]`).join(", ")}`
37231
37292
  );
37232
37293
  const edges = stream.edges.map(([from, to]) => `${from} \u2192 ${to}`);
37233
- console.log(` edges: ${edges.join(", ") || chalk222.dim("none")}`);
37294
+ console.log(` edges: ${edges.join(", ") || chalk223.dim("none")}`);
37234
37295
  }
37235
37296
  function reportDerivedStreams(streams, target) {
37236
37297
  for (const stream of streams) printDerived(stream);
37237
- console.log(chalk222.dim(`Written to ${target}`));
37298
+ console.log(chalk223.dim(`Written to ${target}`));
37238
37299
  }
37239
37300
 
37240
37301
  // src/commands/releases/withCurrentRepo.ts
@@ -37325,8 +37386,8 @@ async function writeReleaseStreams(incoming, scope) {
37325
37386
 
37326
37387
  // src/commands/releases/releasesConfigure.ts
37327
37388
  function fail9(message3, details = []) {
37328
- console.error(chalk223.red(message3));
37329
- for (const detail of details) console.error(chalk223.red(` ${detail}`));
37389
+ console.error(chalk224.red(message3));
37390
+ for (const detail of details) console.error(chalk224.red(` ${detail}`));
37330
37391
  process.exitCode = 1;
37331
37392
  }
37332
37393
  function reportWritten(incoming, target) {
@@ -37359,23 +37420,23 @@ async function releasesConfigure(options2 = {}) {
37359
37420
  }
37360
37421
 
37361
37422
  // src/commands/releases/releasesList.ts
37362
- import chalk224 from "chalk";
37423
+ import chalk225 from "chalk";
37363
37424
  function describeNode(node) {
37364
37425
  if (node.environment) return `${node.id} \u2192 ${node.environment}`;
37365
37426
  return `${node.id} (${node.kind ?? "step"})`;
37366
37427
  }
37367
37428
  function printStream(stream) {
37368
- console.log(`${chalk224.bold(stream.name)} ${chalk224.dim(stream.repo)}`);
37369
- console.log(chalk224.dim(` workflow: ${stream.workflow}`));
37429
+ console.log(`${chalk225.bold(stream.name)} ${chalk225.dim(stream.repo)}`);
37430
+ console.log(chalk225.dim(` workflow: ${stream.workflow}`));
37370
37431
  for (const node of stream.nodes) console.log(` ${describeNode(node)}`);
37371
37432
  for (const [from, to] of stream.edges)
37372
- console.log(chalk224.dim(` ${from} \u2192 ${to}`));
37433
+ console.log(chalk225.dim(` ${from} \u2192 ${to}`));
37373
37434
  }
37374
37435
  function releasesList() {
37375
37436
  const streams = loadConfig().releases?.streams ?? [];
37376
37437
  if (streams.length === 0) {
37377
37438
  console.log(
37378
- chalk224.dim("No release streams configured under releases.streams.")
37439
+ chalk225.dim("No release streams configured under releases.streams.")
37379
37440
  );
37380
37441
  return;
37381
37442
  }
@@ -37423,7 +37484,7 @@ function coverage() {
37423
37484
 
37424
37485
  // src/commands/lint/lint/runFileNameCheck.ts
37425
37486
  import path46 from "path";
37426
- import chalk226 from "chalk";
37487
+ import chalk227 from "chalk";
37427
37488
 
37428
37489
  // src/commands/lint/lint/checkFileNames.ts
37429
37490
  import fs25 from "fs";
@@ -37503,7 +37564,7 @@ function checkFileNames() {
37503
37564
  }
37504
37565
 
37505
37566
  // src/commands/lint/lint/fixFileNameViolations.ts
37506
- import chalk225 from "chalk";
37567
+ import chalk226 from "chalk";
37507
37568
 
37508
37569
  // src/commands/lint/lint/applyMoves.ts
37509
37570
  import fs26 from "fs";
@@ -37588,25 +37649,25 @@ function fixFileNameViolations(moves) {
37588
37649
  const start2 = performance.now();
37589
37650
  const project = createLintProject();
37590
37651
  const cwd = process.cwd();
37591
- applyMoves(project, moves, cwd, (line) => console.log(chalk225.green(line)));
37652
+ applyMoves(project, moves, cwd, (line) => console.log(chalk226.green(line)));
37592
37653
  const ms = (performance.now() - start2).toFixed(0);
37593
- console.log(chalk225.dim(` Done in ${ms}ms`));
37654
+ console.log(chalk226.dim(` Done in ${ms}ms`));
37594
37655
  }
37595
37656
 
37596
37657
  // src/commands/lint/lint/runFileNameCheck.ts
37597
37658
  function reportViolations(violations) {
37598
- console.error(chalk226.red("\nFile name check failed:\n"));
37659
+ console.error(chalk227.red("\nFile name check failed:\n"));
37599
37660
  console.error(
37600
- chalk226.red(
37661
+ chalk227.red(
37601
37662
  " Files without classes or React components should not start with a capital letter.\n"
37602
37663
  )
37603
37664
  );
37604
37665
  for (const violation of violations) {
37605
- console.error(chalk226.red(` ${violation.filePath}`));
37606
- console.error(chalk226.gray(` Rename to: ${violation.suggestedName}
37666
+ console.error(chalk227.red(` ${violation.filePath}`));
37667
+ console.error(chalk227.gray(` Rename to: ${violation.suggestedName}
37607
37668
  `));
37608
37669
  }
37609
- console.error(chalk226.dim(" Run with -f to auto-fix.\n"));
37670
+ console.error(chalk227.dim(" Run with -f to auto-fix.\n"));
37610
37671
  }
37611
37672
  function runFileNameCheck(fix = false) {
37612
37673
  const violations = checkFileNames();
@@ -37635,17 +37696,17 @@ function runFileNameCheck(fix = false) {
37635
37696
  import fs28 from "fs";
37636
37697
 
37637
37698
  // src/commands/lint/shared.ts
37638
- import chalk227 from "chalk";
37699
+ import chalk228 from "chalk";
37639
37700
  function reportViolations2(violations, checkName2, errorMessage3, successMessage) {
37640
37701
  if (violations.length > 0) {
37641
- console.error(chalk227.red(`
37702
+ console.error(chalk228.red(`
37642
37703
  ${checkName2} failed:
37643
37704
  `));
37644
- console.error(chalk227.red(` ${errorMessage3}
37705
+ console.error(chalk228.red(` ${errorMessage3}
37645
37706
  `));
37646
37707
  for (const violation of violations) {
37647
- console.error(chalk227.red(` ${violation.filePath}:${violation.line}`));
37648
- console.error(chalk227.gray(` ${violation.content}
37708
+ console.error(chalk228.red(` ${violation.filePath}:${violation.line}`));
37709
+ console.error(chalk228.gray(` ${violation.content}
37649
37710
  `));
37650
37711
  }
37651
37712
  return false;
@@ -37870,7 +37931,7 @@ import { execSync as execSync54 } from "child_process";
37870
37931
  import { existsSync as existsSync70, mkdirSync as mkdirSync28, unlinkSync as unlinkSync16, writeFileSync as writeFileSync41 } from "fs";
37871
37932
  import { tmpdir as tmpdir7 } from "os";
37872
37933
  import { join as join90, resolve as resolve28 } from "path";
37873
- import chalk228 from "chalk";
37934
+ import chalk229 from "chalk";
37874
37935
 
37875
37936
  // src/commands/screenshot/captureWindowPs1.ts
37876
37937
  var captureWindowPs1 = `
@@ -38021,22 +38082,22 @@ function screenshot(processName) {
38021
38082
  const config = loadConfig();
38022
38083
  const outputDir = resolve28(config.screenshot.outputDir);
38023
38084
  const outputPath = buildOutputPath(outputDir, processName);
38024
- console.log(chalk228.gray(`Capturing window for process "${processName}" ...`));
38085
+ console.log(chalk229.gray(`Capturing window for process "${processName}" ...`));
38025
38086
  try {
38026
38087
  runPowerShellScript(processName, outputPath);
38027
- console.log(chalk228.green(`Screenshot saved: ${outputPath}`));
38088
+ console.log(chalk229.green(`Screenshot saved: ${outputPath}`));
38028
38089
  } catch (error) {
38029
38090
  const msg = error instanceof Error ? error.message : String(error);
38030
- console.error(chalk228.red(`Failed to capture screenshot: ${msg}`));
38091
+ console.error(chalk229.red(`Failed to capture screenshot: ${msg}`));
38031
38092
  process.exit(1);
38032
38093
  }
38033
38094
  }
38034
38095
 
38035
38096
  // src/commands/statusLine.ts
38036
- import chalk231 from "chalk";
38097
+ import chalk232 from "chalk";
38037
38098
 
38038
38099
  // src/commands/buildLimitsSegment.ts
38039
- import chalk229 from "chalk";
38100
+ import chalk230 from "chalk";
38040
38101
 
38041
38102
  // src/shared/rateLimitLevel.ts
38042
38103
  var FIVE_HOUR_SECONDS = 5 * 3600;
@@ -38074,9 +38135,9 @@ function rateLimitLevel(pct, resetsAt, windowSeconds, now) {
38074
38135
 
38075
38136
  // src/commands/buildLimitsSegment.ts
38076
38137
  var LEVEL_COLOR = {
38077
- ok: chalk229.green,
38078
- warn: chalk229.yellow,
38079
- over: chalk229.red
38138
+ ok: chalk230.green,
38139
+ warn: chalk230.yellow,
38140
+ over: chalk230.red
38080
38141
  };
38081
38142
  function formatLimit(pct, resetsAt, windowSeconds, fallbackLabel, now) {
38082
38143
  const level = rateLimitLevel(pct, resetsAt, windowSeconds, now);
@@ -38172,7 +38233,7 @@ async function relayUsage(claudeSessionId, transcriptPath2, usedPct) {
38172
38233
  }
38173
38234
 
38174
38235
  // src/commands/colorizePercent.ts
38175
- import chalk230 from "chalk";
38236
+ import chalk231 from "chalk";
38176
38237
 
38177
38238
  // src/shared/contextLevel.ts
38178
38239
  var THRESHOLDS = {
@@ -38192,16 +38253,16 @@ function colorizePercent(pct) {
38192
38253
  const label = `${Math.round(pct)}%`;
38193
38254
  switch (contextLevel(pct)) {
38194
38255
  case "red":
38195
- return chalk230.red(label);
38256
+ return chalk231.red(label);
38196
38257
  case "yellow":
38197
- return chalk230.yellow(label);
38258
+ return chalk231.yellow(label);
38198
38259
  default:
38199
38260
  return label;
38200
38261
  }
38201
38262
  }
38202
38263
 
38203
38264
  // src/commands/statusLine.ts
38204
- chalk231.level = 3;
38265
+ chalk232.level = 3;
38205
38266
  function formatNumber(num) {
38206
38267
  return num.toLocaleString("en-US");
38207
38268
  }
@@ -38213,7 +38274,7 @@ async function statusLine() {
38213
38274
  const usedPct = data.context_window.used_percentage ?? 0;
38214
38275
  const dir = data.workspace?.current_dir ?? data.cwd;
38215
38276
  const branch2 = dir ? readGitBranch(dir) : null;
38216
- const branchSegment = branch2 ? `\u{1F33F}\uFE0F ${chalk231.cyan(branch2)} | ` : "";
38277
+ const branchSegment = branch2 ? `\u{1F33F}\uFE0F ${chalk232.cyan(branch2)} | ` : "";
38217
38278
  const limitsSegment = process.env.ASSIST_SESSION === "1" ? "" : buildLimitsSegment(data.rate_limits);
38218
38279
  console.log(
38219
38280
  `${branchSegment}${model} | Tokens - ${formatNumber(totalIn)} \u2191 : ${formatNumber(totalOut)} \u2193 | Context - ${colorizePercent(usedPct)}${limitsSegment}`
@@ -38321,7 +38382,7 @@ import { spawn as spawn8 } from "child_process";
38321
38382
  import * as path49 from "path";
38322
38383
 
38323
38384
  // src/commands/refactor/logViolations.ts
38324
- import chalk232 from "chalk";
38385
+ import chalk233 from "chalk";
38325
38386
  var DEFAULT_MAX_LINES2 = 100;
38326
38387
  function logViolations(violations, maxLines = DEFAULT_MAX_LINES2) {
38327
38388
  if (violations.length === 0) {
@@ -38330,43 +38391,43 @@ function logViolations(violations, maxLines = DEFAULT_MAX_LINES2) {
38330
38391
  }
38331
38392
  return;
38332
38393
  }
38333
- console.error(chalk232.red(`
38394
+ console.error(chalk233.red(`
38334
38395
  Refactor check failed:
38335
38396
  `));
38336
- console.error(chalk232.red(` The following files exceed ${maxLines} lines:
38397
+ console.error(chalk233.red(` The following files exceed ${maxLines} lines:
38337
38398
  `));
38338
38399
  for (const violation of violations) {
38339
- console.error(chalk232.red(` ${violation.file} (${violation.lines} lines)`));
38400
+ console.error(chalk233.red(` ${violation.file} (${violation.lines} lines)`));
38340
38401
  }
38341
38402
  console.error(
38342
- chalk232.yellow(
38403
+ chalk233.yellow(
38343
38404
  `
38344
38405
  Each file needs to be sensibly refactored, or if there is no sensible
38345
38406
  way to refactor it, ignore it with:
38346
38407
  `
38347
38408
  )
38348
38409
  );
38349
- console.error(chalk232.gray(` assist refactor ignore <file>
38410
+ console.error(chalk233.gray(` assist refactor ignore <file>
38350
38411
  `));
38351
38412
  if (process.env.CLAUDECODE) {
38352
- console.error(chalk232.cyan(`
38413
+ console.error(chalk233.cyan(`
38353
38414
  ## Extracting Code to New Files
38354
38415
  `));
38355
38416
  console.error(
38356
- chalk232.cyan(
38417
+ chalk233.cyan(
38357
38418
  ` When extracting logic from one file to another, consider where the extracted code belongs:
38358
38419
  `
38359
38420
  )
38360
38421
  );
38361
38422
  console.error(
38362
- chalk232.cyan(
38423
+ chalk233.cyan(
38363
38424
  ` 1. Keep related logic together: If the extracted code is tightly coupled to the
38364
38425
  original file's domain, create a new folder containing both the original and extracted files.
38365
38426
  `
38366
38427
  )
38367
38428
  );
38368
38429
  console.error(
38369
- chalk232.cyan(
38430
+ chalk233.cyan(
38370
38431
  ` 2. Share common utilities: If the extracted code can be reused across multiple
38371
38432
  domains, move it to a common/shared folder.
38372
38433
  `
@@ -38522,7 +38583,7 @@ async function check(pattern2, options2) {
38522
38583
 
38523
38584
  // src/commands/refactor/extract.ts
38524
38585
  import path57 from "path";
38525
- import chalk235 from "chalk";
38586
+ import chalk236 from "chalk";
38526
38587
 
38527
38588
  // src/commands/refactor/extract/applyExtraction.ts
38528
38589
  import { SyntaxKind as SyntaxKind8 } from "ts-morph";
@@ -39130,23 +39191,23 @@ function buildPlan2(functionName, sourceFile, sourcePath, destPath, project) {
39130
39191
 
39131
39192
  // src/commands/refactor/extract/displayPlan.ts
39132
39193
  import path53 from "path";
39133
- import chalk233 from "chalk";
39194
+ import chalk234 from "chalk";
39134
39195
  function section(title) {
39135
39196
  return `
39136
- ${chalk233.cyan(title)}`;
39197
+ ${chalk234.cyan(title)}`;
39137
39198
  }
39138
39199
  function displayImporters(plan2, cwd) {
39139
39200
  if (plan2.importersToUpdate.length === 0) return;
39140
39201
  console.log(section("Update importers:"));
39141
39202
  for (const imp of plan2.importersToUpdate) {
39142
39203
  const rel = path53.relative(cwd, imp.file.getFilePath());
39143
- console.log(` ${chalk233.dim(rel)}: \u2192 import from "${imp.relPath}"`);
39204
+ console.log(` ${chalk234.dim(rel)}: \u2192 import from "${imp.relPath}"`);
39144
39205
  }
39145
39206
  }
39146
39207
  function displayPlan(functionName, relDest, plan2, cwd) {
39147
- console.log(chalk233.bold(`Extract: ${functionName} \u2192 ${relDest}
39208
+ console.log(chalk234.bold(`Extract: ${functionName} \u2192 ${relDest}
39148
39209
  `));
39149
- console.log(` ${chalk233.cyan("Functions to move:")}`);
39210
+ console.log(` ${chalk234.cyan("Functions to move:")}`);
39150
39211
  for (const name of plan2.extractedNames) {
39151
39212
  console.log(` ${name}`);
39152
39213
  }
@@ -39180,7 +39241,7 @@ function displayPlan(functionName, relDest, plan2, cwd) {
39180
39241
 
39181
39242
  // src/commands/refactor/extract/loadProjectFile.ts
39182
39243
  import path56 from "path";
39183
- import chalk234 from "chalk";
39244
+ import chalk235 from "chalk";
39184
39245
  import { Project as Project4 } from "ts-morph";
39185
39246
 
39186
39247
  // src/commands/refactor/extract/findTsConfig.ts
@@ -39272,7 +39333,7 @@ function loadProjectFile(file) {
39272
39333
  });
39273
39334
  const sourceFile = project.getSourceFile(sourcePath);
39274
39335
  if (!sourceFile) {
39275
- console.log(chalk234.red(`File not found in project: ${file}`));
39336
+ console.log(chalk235.red(`File not found in project: ${file}`));
39276
39337
  process.exit(1);
39277
39338
  }
39278
39339
  return { project, sourceFile };
@@ -39295,19 +39356,19 @@ async function extract(file, functionName, destination, options2 = {}) {
39295
39356
  displayPlan(functionName, relDest, plan2, cwd);
39296
39357
  if (options2.apply) {
39297
39358
  await applyExtraction(functionName, sourceFile, destPath, plan2, project);
39298
- console.log(chalk235.green("\nExtraction complete"));
39359
+ console.log(chalk236.green("\nExtraction complete"));
39299
39360
  } else {
39300
- console.log(chalk235.dim("\nDry run. Use --apply to execute."));
39361
+ console.log(chalk236.dim("\nDry run. Use --apply to execute."));
39301
39362
  }
39302
39363
  }
39303
39364
 
39304
39365
  // src/commands/refactor/ignore.ts
39305
39366
  import fs35 from "fs";
39306
- import chalk236 from "chalk";
39367
+ import chalk237 from "chalk";
39307
39368
  var REFACTOR_YML_PATH2 = "refactor.yml";
39308
39369
  function ignore2(file) {
39309
39370
  if (!fs35.existsSync(file)) {
39310
- console.error(chalk236.red(`Error: File does not exist: ${file}`));
39371
+ console.error(chalk237.red(`Error: File does not exist: ${file}`));
39311
39372
  process.exit(1);
39312
39373
  }
39313
39374
  const content = fs35.readFileSync(file, "utf8");
@@ -39323,7 +39384,7 @@ function ignore2(file) {
39323
39384
  fs35.writeFileSync(REFACTOR_YML_PATH2, entry);
39324
39385
  }
39325
39386
  console.log(
39326
- chalk236.green(
39387
+ chalk237.green(
39327
39388
  `Added ${file} to refactor ignore list (max ${maxLines} lines)`
39328
39389
  )
39329
39390
  );
@@ -39332,12 +39393,12 @@ function ignore2(file) {
39332
39393
  // src/commands/refactor/rename.ts
39333
39394
  import fs38 from "fs";
39334
39395
  import path63 from "path";
39335
- import chalk239 from "chalk";
39396
+ import chalk240 from "chalk";
39336
39397
 
39337
39398
  // src/commands/refactor/rename/applyRename.ts
39338
39399
  import fs37 from "fs";
39339
39400
  import path59 from "path";
39340
- import chalk237 from "chalk";
39401
+ import chalk238 from "chalk";
39341
39402
 
39342
39403
  // src/commands/refactor/restructure/computeRewrites.ts
39343
39404
  import path58 from "path";
@@ -39443,13 +39504,13 @@ function applyRename(rewrites, sourcePath, destPath, cwd) {
39443
39504
  const updatedContents = applyRewrites(rewrites);
39444
39505
  for (const [file, content] of updatedContents) {
39445
39506
  fs37.writeFileSync(file, content, "utf8");
39446
- console.log(chalk237.cyan(` Updated imports in ${path59.relative(cwd, file)}`));
39507
+ console.log(chalk238.cyan(` Updated imports in ${path59.relative(cwd, file)}`));
39447
39508
  }
39448
39509
  const destDir = path59.dirname(destPath);
39449
39510
  if (!fs37.existsSync(destDir)) fs37.mkdirSync(destDir, { recursive: true });
39450
39511
  fs37.renameSync(sourcePath, destPath);
39451
39512
  console.log(
39452
- chalk237.white(
39513
+ chalk238.white(
39453
39514
  ` Moved ${path59.relative(cwd, sourcePath)} \u2192 ${path59.relative(cwd, destPath)}`
39454
39515
  )
39455
39516
  );
@@ -39599,16 +39660,16 @@ function computeRenameRewrites(sourcePath, destPath) {
39599
39660
 
39600
39661
  // src/commands/refactor/rename/printRenamePreview.ts
39601
39662
  import path62 from "path";
39602
- import chalk238 from "chalk";
39663
+ import chalk239 from "chalk";
39603
39664
  function printRenamePreview(rewrites, cwd) {
39604
39665
  for (const rewrite of rewrites) {
39605
39666
  console.log(
39606
- chalk238.dim(
39667
+ chalk239.dim(
39607
39668
  ` ${path62.relative(cwd, rewrite.file)}: ${rewrite.oldSpecifier} \u2192 ${rewrite.newSpecifier}`
39608
39669
  )
39609
39670
  );
39610
39671
  }
39611
- console.log(chalk238.dim("Dry run. Use --apply to execute."));
39672
+ console.log(chalk239.dim("Dry run. Use --apply to execute."));
39612
39673
  }
39613
39674
 
39614
39675
  // src/commands/refactor/rename.ts
@@ -39619,20 +39680,20 @@ async function rename(source, destination, options2 = {}) {
39619
39680
  const relSource = path63.relative(cwd, sourcePath);
39620
39681
  const relDest = path63.relative(cwd, destPath);
39621
39682
  if (!fs38.existsSync(sourcePath)) {
39622
- console.log(chalk239.red(`File not found: ${source}`));
39683
+ console.log(chalk240.red(`File not found: ${source}`));
39623
39684
  process.exit(1);
39624
39685
  }
39625
39686
  if (destPath !== sourcePath && fs38.existsSync(destPath)) {
39626
- console.log(chalk239.red(`Destination already exists: ${destination}`));
39687
+ console.log(chalk240.red(`Destination already exists: ${destination}`));
39627
39688
  process.exit(1);
39628
39689
  }
39629
- console.log(chalk239.bold(`Rename: ${relSource} \u2192 ${relDest}`));
39630
- console.log(chalk239.dim("Loading project..."));
39631
- console.log(chalk239.dim("Scanning imports across the project..."));
39690
+ console.log(chalk240.bold(`Rename: ${relSource} \u2192 ${relDest}`));
39691
+ console.log(chalk240.dim("Loading project..."));
39692
+ console.log(chalk240.dim("Scanning imports across the project..."));
39632
39693
  const rewrites = computeRenameRewrites(sourcePath, destPath);
39633
39694
  const affectedFiles = new Set(rewrites.map((r) => r.file)).size;
39634
39695
  console.log(
39635
- chalk239.dim(
39696
+ chalk240.dim(
39636
39697
  `${rewrites.length} import path(s) to update across ${affectedFiles} file(s)`
39637
39698
  )
39638
39699
  );
@@ -39641,11 +39702,11 @@ async function rename(source, destination, options2 = {}) {
39641
39702
  return;
39642
39703
  }
39643
39704
  applyRename(rewrites, sourcePath, destPath, cwd);
39644
- console.log(chalk239.green("Done"));
39705
+ console.log(chalk240.green("Done"));
39645
39706
  }
39646
39707
 
39647
39708
  // src/commands/refactor/renameSymbol.ts
39648
- import chalk240 from "chalk";
39709
+ import chalk241 from "chalk";
39649
39710
 
39650
39711
  // src/commands/refactor/renameSymbol/findSymbol.ts
39651
39712
  import { SyntaxKind as SyntaxKind19 } from "ts-morph";
@@ -39691,34 +39752,34 @@ async function renameSymbol(file, oldName, newName, options2 = {}) {
39691
39752
  const { project, sourceFile } = loadProjectFile(file);
39692
39753
  const symbol = findSymbol(sourceFile, oldName);
39693
39754
  if (!symbol) {
39694
- console.log(chalk240.red(`Symbol "${oldName}" not found in ${file}`));
39755
+ console.log(chalk241.red(`Symbol "${oldName}" not found in ${file}`));
39695
39756
  process.exit(1);
39696
39757
  }
39697
39758
  const grouped = groupReferences(symbol, cwd);
39698
39759
  const totalRefs = [...grouped.values()].reduce((s, l) => s + l.length, 0);
39699
39760
  console.log(
39700
- chalk240.bold(`Rename: ${oldName} \u2192 ${newName} (${totalRefs} references)
39761
+ chalk241.bold(`Rename: ${oldName} \u2192 ${newName} (${totalRefs} references)
39701
39762
  `)
39702
39763
  );
39703
39764
  for (const [refFile, lines2] of grouped) {
39704
39765
  console.log(
39705
- ` ${chalk240.dim(refFile)}: lines ${chalk240.cyan(lines2.join(", "))}`
39766
+ ` ${chalk241.dim(refFile)}: lines ${chalk241.cyan(lines2.join(", "))}`
39706
39767
  );
39707
39768
  }
39708
39769
  if (options2.apply) {
39709
39770
  symbol.rename(newName);
39710
39771
  await project.save();
39711
- console.log(chalk240.green(`
39772
+ console.log(chalk241.green(`
39712
39773
  Renamed ${oldName} \u2192 ${newName}`));
39713
39774
  } else {
39714
- console.log(chalk240.dim("\nDry run. Use --apply to execute."));
39775
+ console.log(chalk241.dim("\nDry run. Use --apply to execute."));
39715
39776
  }
39716
39777
  }
39717
39778
 
39718
39779
  // src/commands/refactor/restructure.ts
39719
39780
  import fs40 from "fs";
39720
39781
  import path84 from "path";
39721
- import chalk250 from "chalk";
39782
+ import chalk251 from "chalk";
39722
39783
 
39723
39784
  // src/commands/refactor/restructure/buildPlan.ts
39724
39785
  import path74 from "path";
@@ -40055,7 +40116,7 @@ function buildPlan3(scopeRoot, files, ignored = [], pinnedModules = []) {
40055
40116
  }
40056
40117
 
40057
40118
  // src/commands/refactor/restructure/checkPlan.ts
40058
- import chalk245 from "chalk";
40119
+ import chalk246 from "chalk";
40059
40120
 
40060
40121
  // src/commands/refactor/restructure/applyCommand.ts
40061
40122
  import path75 from "path";
@@ -40066,13 +40127,13 @@ function applyCommand(scopeRoot) {
40066
40127
 
40067
40128
  // src/commands/refactor/restructure/displayDrift.ts
40068
40129
  import path76 from "path";
40069
- import chalk241 from "chalk";
40130
+ import chalk242 from "chalk";
40070
40131
  var shownMoves = 20;
40071
40132
  function displayDrift(plan2, listMoves) {
40072
40133
  const rel = (file) => path76.relative(process.cwd(), file);
40073
40134
  if (plan2.moves.length > 0) {
40074
40135
  console.log(
40075
- chalk241.red(
40136
+ chalk242.red(
40076
40137
  `${plan2.moves.length} file(s) drift from the plan${listMoves ? ":" : "."}`
40077
40138
  )
40078
40139
  );
@@ -40080,17 +40141,17 @@ function displayDrift(plan2, listMoves) {
40080
40141
  for (const move2 of plan2.moves.slice(0, shownMoves))
40081
40142
  console.log(` ${rel(move2.from)} \u2192 ${rel(move2.to)}`);
40082
40143
  if (plan2.moves.length > shownMoves)
40083
- console.log(chalk241.dim(` \u2026and ${plan2.moves.length - shownMoves} more`));
40144
+ console.log(chalk242.dim(` \u2026and ${plan2.moves.length - shownMoves} more`));
40084
40145
  }
40085
40146
  }
40086
- for (const error of plan2.errors) console.log(chalk241.red(error));
40147
+ for (const error of plan2.errors) console.log(chalk242.red(error));
40087
40148
  }
40088
40149
 
40089
40150
  // src/commands/refactor/restructure/displayLayoutLimits.ts
40090
- import chalk244 from "chalk";
40151
+ import chalk245 from "chalk";
40091
40152
 
40092
40153
  // src/commands/refactor/restructure/displayDeepChains.ts
40093
- import chalk242 from "chalk";
40154
+ import chalk243 from "chalk";
40094
40155
  var shownChains = 10;
40095
40156
  function formatChain(chain2) {
40096
40157
  const folders = chain2.folders.map((f) => `${f.name} (${f.files})`).join(" > ");
@@ -40100,28 +40161,28 @@ function displayDeepChains(chains, maxDepth) {
40100
40161
  if (chains.length === 0) return;
40101
40162
  const tooDeep = chains.reduce((sum3, c) => sum3 + c.tooDeep, 0);
40102
40163
  console.log(
40103
- chalk242.red(
40164
+ chalk243.red(
40104
40165
  `
40105
40166
  Plan exceeds restructure.maxDepth ${maxDepth}: ${tooDeep} file(s) deeper.`
40106
40167
  )
40107
40168
  );
40108
40169
  console.log(
40109
- chalk242.bold(
40170
+ chalk243.bold(
40110
40171
  "Deep chains, as folder (files beneath), most files too deep first:"
40111
40172
  )
40112
40173
  );
40113
40174
  for (const chain2 of chains.slice(0, shownChains))
40114
40175
  console.log(formatChain(chain2));
40115
40176
  if (chains.length > shownChains)
40116
- console.log(chalk242.dim(` \u2026and ${chains.length - shownChains} more`));
40177
+ console.log(chalk243.dim(` \u2026and ${chains.length - shownChains} more`));
40117
40178
  }
40118
40179
 
40119
40180
  // src/commands/refactor/restructure/displayLongPaths.ts
40120
- import chalk243 from "chalk";
40181
+ import chalk244 from "chalk";
40121
40182
  function displayLongPaths(longPaths, maxPathLength) {
40122
40183
  if (longPaths.length === 0) return;
40123
40184
  console.log(
40124
- chalk243.red(
40185
+ chalk244.red(
40125
40186
  `
40126
40187
  Plan exceeds restructure.maxPathLength ${maxPathLength}: ${longPaths.length} repo-relative path(s) longer.`
40127
40188
  )
@@ -40149,7 +40210,7 @@ function displayLayoutLimits(limits, apply) {
40149
40210
  displayDeepChains(limits.chains, limits.maxDepth);
40150
40211
  displayLongPaths(limits.longPaths, limits.maxPathLength);
40151
40212
  console.log("");
40152
- for (const line of pinSteps(apply)) console.log(chalk244.yellow(line));
40213
+ for (const line of pinSteps(apply)) console.log(chalk245.yellow(line));
40153
40214
  }
40154
40215
 
40155
40216
  // src/commands/refactor/restructure/checkPlan.ts
@@ -40161,14 +40222,14 @@ function checkPlan(plan2, limits) {
40161
40222
  if (exceeds || plan2.errors.length > 0) process.exit(1);
40162
40223
  if (plan2.moves.length > 0) {
40163
40224
  console.log(
40164
- chalk245.yellow(
40225
+ chalk246.yellow(
40165
40226
  `
40166
40227
  Run \`${apply}\` to move the files and rewrite their imports.`
40167
40228
  )
40168
40229
  );
40169
40230
  process.exit(1);
40170
40231
  }
40171
- console.log(chalk245.green("Layout matches the restructure plan"));
40232
+ console.log(chalk246.green("Layout matches the restructure plan"));
40172
40233
  }
40173
40234
 
40174
40235
  // src/commands/refactor/restructure/findDeepChains.ts
@@ -40238,15 +40299,15 @@ function partitionIgnored(files) {
40238
40299
  }
40239
40300
 
40240
40301
  // src/commands/refactor/restructure/runPlan.ts
40241
- import chalk249 from "chalk";
40302
+ import chalk250 from "chalk";
40242
40303
 
40243
40304
  // src/commands/refactor/restructure/applyPlan.ts
40244
- import chalk247 from "chalk";
40305
+ import chalk248 from "chalk";
40245
40306
 
40246
40307
  // src/commands/refactor/restructure/executePlan.ts
40247
40308
  import fs39 from "fs";
40248
40309
  import path80 from "path";
40249
- import chalk246 from "chalk";
40310
+ import chalk247 from "chalk";
40250
40311
  function relPath(file) {
40251
40312
  return path80.relative(process.cwd(), file);
40252
40313
  }
@@ -40263,14 +40324,14 @@ function moveFiles(moves) {
40263
40324
  fs39.mkdirSync(path80.dirname(move2.to), { recursive: true });
40264
40325
  fs39.renameSync(staging, move2.to);
40265
40326
  console.log(
40266
- chalk246.white(` Moved ${relPath(move2.from)} \u2192 ${relPath(move2.to)}`)
40327
+ chalk247.white(` Moved ${relPath(move2.from)} \u2192 ${relPath(move2.to)}`)
40267
40328
  );
40268
40329
  }
40269
40330
  }
40270
40331
  function removeIfEmpty(dir) {
40271
40332
  if (!fs39.existsSync(dir) || fs39.readdirSync(dir).length > 0) return false;
40272
40333
  fs39.rmdirSync(dir);
40273
- console.log(chalk246.dim(` Removed empty directory ${relPath(dir)}`));
40334
+ console.log(chalk247.dim(` Removed empty directory ${relPath(dir)}`));
40274
40335
  return true;
40275
40336
  }
40276
40337
  function removeEmptyDirectories(dirs, scopeRoot) {
@@ -40283,7 +40344,7 @@ function removeEmptyDirectories(dirs, scopeRoot) {
40283
40344
  function executePlan(plan2) {
40284
40345
  for (const [file, content] of applyRewrites(plan2.rewrites)) {
40285
40346
  fs39.writeFileSync(file, content, "utf8");
40286
- console.log(chalk246.cyan(` Rewrote imports in ${relPath(file)}`));
40347
+ console.log(chalk247.cyan(` Rewrote imports in ${relPath(file)}`));
40287
40348
  }
40288
40349
  moveFiles(plan2.moves);
40289
40350
  removeEmptyDirectories(
@@ -40295,17 +40356,17 @@ function executePlan(plan2) {
40295
40356
  // src/commands/refactor/restructure/applyPlan.ts
40296
40357
  function applyPlan(plan2) {
40297
40358
  if (plan2.errors.length > 0) {
40298
- console.log(chalk247.red("\nResolve the errors above before applying."));
40359
+ console.log(chalk248.red("\nResolve the errors above before applying."));
40299
40360
  process.exit(1);
40300
40361
  }
40301
- console.log(chalk247.bold("\nApplying changes..."));
40362
+ console.log(chalk248.bold("\nApplying changes..."));
40302
40363
  executePlan(plan2);
40303
- console.log(chalk247.green("\nRestructuring complete"));
40364
+ console.log(chalk248.green("\nRestructuring complete"));
40304
40365
  }
40305
40366
 
40306
40367
  // src/commands/refactor/restructure/displayPlan.ts
40307
40368
  import path83 from "path";
40308
- import chalk248 from "chalk";
40369
+ import chalk249 from "chalk";
40309
40370
 
40310
40371
  // src/commands/refactor/restructure/computeDepthStats.ts
40311
40372
  import path81 from "path";
@@ -40356,17 +40417,17 @@ function relPath2(filePath) {
40356
40417
  }
40357
40418
  function displayMoves(plan2) {
40358
40419
  if (plan2.moves.length === 0) return;
40359
- console.log(chalk248.bold("\nFile moves:"));
40420
+ console.log(chalk249.bold("\nFile moves:"));
40360
40421
  for (const move2 of plan2.moves) {
40361
40422
  console.log(
40362
- ` ${chalk248.red(relPath2(move2.from))} \u2192 ${chalk248.green(relPath2(move2.to))}`
40423
+ ` ${chalk249.red(relPath2(move2.from))} \u2192 ${chalk249.green(relPath2(move2.to))}`
40363
40424
  );
40364
- console.log(chalk248.dim(` ${move2.reason}`));
40425
+ console.log(chalk249.dim(` ${move2.reason}`));
40365
40426
  }
40366
40427
  }
40367
40428
  function displayTree(plan2) {
40368
40429
  console.log(
40369
- chalk248.bold(`
40430
+ chalk249.bold(`
40370
40431
  Resulting tree (${relPath2(plan2.scopeRoot) || "."}/):`)
40371
40432
  );
40372
40433
  for (const line of formatTree(plan2.targets.values(), plan2.scopeRoot))
@@ -40377,15 +40438,15 @@ function displayDepthStats(plan2) {
40377
40438
  plan2.targets.values(),
40378
40439
  plan2.scopeRoot
40379
40440
  );
40380
- console.log(chalk248.bold(`
40441
+ console.log(chalk249.bold(`
40381
40442
  Depth (max ${max}):`));
40382
40443
  for (const depth of [...distribution.keys()].sort((a, b) => a - b))
40383
40444
  console.log(` ${depth}: ${distribution.get(depth)} file(s)`);
40384
40445
  }
40385
40446
  function displayErrors(errors) {
40386
40447
  if (errors.length === 0) return;
40387
- console.log(chalk248.red("\nErrors:"));
40388
- for (const error of errors) console.log(chalk248.red(` ${error}`));
40448
+ console.log(chalk249.red("\nErrors:"));
40449
+ for (const error of errors) console.log(chalk249.red(` ${error}`));
40389
40450
  }
40390
40451
  function displayPlan2(plan2) {
40391
40452
  displayMoves(plan2);
@@ -40394,7 +40455,7 @@ function displayPlan2(plan2) {
40394
40455
  displayErrors(plan2.errors);
40395
40456
  const rewrittenFiles = new Set(plan2.rewrites.map((r) => r.file)).size;
40396
40457
  console.log(
40397
- chalk248.dim(
40458
+ chalk249.dim(
40398
40459
  `
40399
40460
  Summary: ${plan2.moves.length} file(s) moved, ${plan2.rewrites.length} imports rewritten across ${rewrittenFiles} file(s), ${plan2.errors.length} error(s)`
40400
40461
  )
@@ -40406,11 +40467,11 @@ function runPlan(plan2, limits, apply) {
40406
40467
  displayPlan2(plan2);
40407
40468
  displayLayoutLimits(limits, applyCommand(plan2.scopeRoot));
40408
40469
  if (plan2.moves.length === 0 && plan2.errors.length === 0) {
40409
- console.log(chalk249.green("No restructuring needed"));
40470
+ console.log(chalk250.green("No restructuring needed"));
40410
40471
  return;
40411
40472
  }
40412
40473
  if (!apply) {
40413
- console.log(chalk249.dim("\nDry run. Use --apply to execute."));
40474
+ console.log(chalk250.dim("\nDry run. Use --apply to execute."));
40414
40475
  return;
40415
40476
  }
40416
40477
  applyPlan(plan2);
@@ -40420,14 +40481,14 @@ function runPlan(plan2, limits, apply) {
40420
40481
  async function restructure(root2, options2 = {}) {
40421
40482
  const scopeRoot = path84.resolve(root2 ?? "src");
40422
40483
  if (!fs40.existsSync(scopeRoot) || !fs40.statSync(scopeRoot).isDirectory()) {
40423
- console.log(chalk250.red(`Not a directory: ${root2 ?? "src"}`));
40484
+ console.log(chalk251.red(`Not a directory: ${root2 ?? "src"}`));
40424
40485
  process.exit(1);
40425
40486
  }
40426
40487
  const found = [];
40427
40488
  walkSourceFiles(scopeRoot, found);
40428
40489
  const { scoped, ignored } = partitionIgnored(found);
40429
40490
  if (scoped.length === 0) {
40430
- console.log(chalk250.yellow("No files found under root"));
40491
+ console.log(chalk251.yellow("No files found under root"));
40431
40492
  return;
40432
40493
  }
40433
40494
  const {
@@ -40498,7 +40559,7 @@ async function checkoutPrSession(number, prompt = "") {
40498
40559
  }
40499
40560
 
40500
40561
  // src/commands/review/highLevel/configureHighLevelReview.ts
40501
- import chalk254 from "chalk";
40562
+ import chalk255 from "chalk";
40502
40563
 
40503
40564
  // src/commands/config/promptConfigScope.ts
40504
40565
  import Enquirer3 from "enquirer";
@@ -40524,7 +40585,7 @@ async function promptConfigScope() {
40524
40585
  }
40525
40586
 
40526
40587
  // src/commands/config/resolveConfigKeyAnswer.ts
40527
- import chalk251 from "chalk";
40588
+ import chalk252 from "chalk";
40528
40589
  async function resolveConfigKeyAnswer(question, supplied) {
40529
40590
  if (supplied !== void 0) return coerceSupplied(question.key, supplied);
40530
40591
  for (; ; ) {
@@ -40532,7 +40593,7 @@ async function resolveConfigKeyAnswer(question, supplied) {
40532
40593
  if (answer === "") return void 0;
40533
40594
  const coercion = coerceCliConfigValue(question.key, answer);
40534
40595
  if (coercion.ok) return coercion.value;
40535
- console.error(chalk251.red(coercion.error));
40596
+ console.error(chalk252.red(coercion.error));
40536
40597
  }
40537
40598
  }
40538
40599
  function coerceSupplied(key, supplied) {
@@ -40612,7 +40673,7 @@ function suggestGlobs(current2, proposed) {
40612
40673
  }
40613
40674
 
40614
40675
  // src/commands/review/highLevel/parseConfigureAnswers.ts
40615
- import chalk252 from "chalk";
40676
+ import chalk253 from "chalk";
40616
40677
  function parseConfigureAnswers(answers) {
40617
40678
  const known = Object.values(highLevelConfigKeys);
40618
40679
  const parsed = {};
@@ -40630,13 +40691,13 @@ function answersCoverEveryKey(answers) {
40630
40691
  return Object.values(highLevelConfigKeys).every((key) => key in answers);
40631
40692
  }
40632
40693
  function exitWith(message3) {
40633
- console.error(chalk252.red(`Error: ${message3}.`));
40694
+ console.error(chalk253.red(`Error: ${message3}.`));
40634
40695
  process.exit(1);
40635
40696
  }
40636
40697
 
40637
40698
  // src/commands/review/highLevel/proposeHighLevelGlobs.ts
40638
- import { execFileSync as execFileSync26 } from "child_process";
40639
- import chalk253 from "chalk";
40699
+ import { execFileSync as execFileSync27 } from "child_process";
40700
+ import chalk254 from "chalk";
40640
40701
 
40641
40702
  // src/commands/review/highLevel/buildGlobProposalPrompt.ts
40642
40703
  function buildGlobProposalPrompt(tree) {
@@ -40684,7 +40745,7 @@ function readGlobs(value) {
40684
40745
  }
40685
40746
 
40686
40747
  // src/commands/review/highLevel/summariseRepoTree.ts
40687
- import { execFileSync as execFileSync25 } from "child_process";
40748
+ import { execFileSync as execFileSync26 } from "child_process";
40688
40749
  import { dirname as dirname42, extname as extname6 } from "path";
40689
40750
  var MAX_DIRECTORIES = 200;
40690
40751
  var MAX_EXTENSIONS_PER_DIRECTORY = 6;
@@ -40700,7 +40761,7 @@ function summariseRepoTree(cwd = process.cwd()) {
40700
40761
  }
40701
40762
  function listTrackedFiles(cwd) {
40702
40763
  try {
40703
- return execFileSync25("git", ["ls-files"], {
40764
+ return execFileSync26("git", ["ls-files"], {
40704
40765
  cwd,
40705
40766
  encoding: "utf8",
40706
40767
  maxBuffer: 64 * 1024 * 1024
@@ -40730,12 +40791,12 @@ function proposeHighLevelGlobs(cwd = process.cwd()) {
40730
40791
  const tree = summariseRepoTree(cwd);
40731
40792
  if (tree === "") return NOTHING_PROPOSED;
40732
40793
  console.log(
40733
- chalk253.dim("Asking Claude to propose globs from the repo's own tree...")
40794
+ chalk254.dim("Asking Claude to propose globs from the repo's own tree...")
40734
40795
  );
40735
40796
  const output = askClaude(buildGlobProposalPrompt(tree), cwd);
40736
40797
  if (output === void 0) {
40737
40798
  console.log(
40738
- chalk253.yellow(
40799
+ chalk254.yellow(
40739
40800
  "Claude proposed nothing; answer each key from its current value."
40740
40801
  )
40741
40802
  );
@@ -40745,7 +40806,7 @@ function proposeHighLevelGlobs(cwd = process.cwd()) {
40745
40806
  }
40746
40807
  function askClaude(prompt, cwd) {
40747
40808
  try {
40748
- return execFileSync26("claude", ["-p", "--model", "sonnet", prompt], {
40809
+ return execFileSync27("claude", ["-p", "--model", "sonnet", prompt], {
40749
40810
  cwd,
40750
40811
  encoding: "utf8",
40751
40812
  timeout: 12e4,
@@ -40796,14 +40857,14 @@ async function configureHighLevelReview(options2 = {}) {
40796
40857
  function reportConfigured(result) {
40797
40858
  for (const write2 of result.written)
40798
40859
  console.log(
40799
- chalk254.green(`Set ${write2.key} = ${JSON.stringify(write2.value)}`)
40860
+ chalk255.green(`Set ${write2.key} = ${JSON.stringify(write2.value)}`)
40800
40861
  );
40801
- for (const key of result.skipped) console.log(chalk254.dim(`Left ${key} unset`));
40802
- console.log(chalk254.dim(`Written to ${result.target}`));
40862
+ for (const key of result.skipped) console.log(chalk255.dim(`Left ${key} unset`));
40863
+ console.log(chalk255.dim(`Written to ${result.target}`));
40803
40864
  }
40804
40865
 
40805
40866
  // src/commands/review/highLevel/announceSavedReview.ts
40806
- import chalk255 from "chalk";
40867
+ import chalk256 from "chalk";
40807
40868
  function savedMessage(subject) {
40808
40869
  const head = subject.headSha.slice(0, 7);
40809
40870
  if (subject.draft)
@@ -40814,10 +40875,10 @@ function savedMessage(subject) {
40814
40875
  }
40815
40876
  function announceSavedReview(subject, force) {
40816
40877
  const message3 = savedMessage(subject);
40817
- if (message3) console.log(chalk255.dim(message3));
40878
+ if (message3) console.log(chalk256.dim(message3));
40818
40879
  else if (force)
40819
40880
  console.log(
40820
- chalk255.dim(
40881
+ chalk256.dim(
40821
40882
  `Discarding any review saved for ${subject.headSha.slice(0, 7)} and starting fresh (--force).`
40822
40883
  )
40823
40884
  );
@@ -41179,7 +41240,7 @@ function evaluateHighLevelChecks(subject) {
41179
41240
  }
41180
41241
 
41181
41242
  // src/commands/review/highLevel/fetchHighLevelFiles.ts
41182
- import { execFileSync as execFileSync27 } from "child_process";
41243
+ import { execFileSync as execFileSync28 } from "child_process";
41183
41244
  import { createHash as createHash4 } from "crypto";
41184
41245
  var JQ = ".[] | {filename,status,additions,deletions,patch} | @json";
41185
41246
  function toStatus(status2) {
@@ -41192,7 +41253,7 @@ function diffUrl(repo, prNumber, path109) {
41192
41253
  return `https://github.com/${repo}/pull/${prNumber}/files#diff-${anchor}`;
41193
41254
  }
41194
41255
  function fetchHighLevelFiles(prNumber, repo) {
41195
- const out = execFileSync27(
41256
+ const out = execFileSync28(
41196
41257
  "gh",
41197
41258
  ["api", `repos/${repo}/pulls/${prNumber}/files`, "--paginate", "--jq", JQ],
41198
41259
  { encoding: "utf8", maxBuffer: 64 * 1024 * 1024 }
@@ -41715,11 +41776,11 @@ function collectHighLevelTests(files, testPaths, readSource4) {
41715
41776
  }
41716
41777
 
41717
41778
  // src/commands/review/highLevel/fetchFileAtSha.ts
41718
- import { execFileSync as execFileSync28 } from "child_process";
41779
+ import { execFileSync as execFileSync29 } from "child_process";
41719
41780
  function fetchFileAtSha(repo, sha, path109) {
41720
41781
  const encodedPath = path109.split("/").map(encodeURIComponent).join("/");
41721
41782
  try {
41722
- return execFileSync28(
41783
+ return execFileSync29(
41723
41784
  "gh",
41724
41785
  [
41725
41786
  "api",
@@ -42199,55 +42260,55 @@ async function openHighLevelOverlay(sessionId2, subject, onRestart = async () =>
42199
42260
  }
42200
42261
 
42201
42262
  // src/commands/review/highLevel/printHighLevelChecklist.ts
42202
- import chalk260 from "chalk";
42263
+ import chalk261 from "chalk";
42203
42264
 
42204
42265
  // src/commands/review/highLevel/formatCriticalDiffs.ts
42205
- import chalk256 from "chalk";
42266
+ import chalk257 from "chalk";
42206
42267
  var PATCH_LINE_COLOURS = {
42207
- "+": chalk256.green,
42208
- "-": chalk256.red,
42209
- "@": chalk256.cyan
42268
+ "+": chalk257.green,
42269
+ "-": chalk257.red,
42270
+ "@": chalk257.cyan
42210
42271
  };
42211
42272
  function formatPatch(patch2) {
42212
42273
  return patch2.split("\n").map(
42213
- (line) => ` ${(PATCH_LINE_COLOURS[line[0] ?? ""] ?? chalk256.dim)(line)}`
42274
+ (line) => ` ${(PATCH_LINE_COLOURS[line[0] ?? ""] ?? chalk257.dim)(line)}`
42214
42275
  );
42215
42276
  }
42216
42277
  function formatDiff(diff3) {
42217
42278
  return [
42218
42279
  "",
42219
- ` ${chalk256.bold(diff3.path)} ${chalk256.dim(`(${diff3.status})`)} ${chalk256.green(`+${diff3.additions}`)} ${chalk256.red(`-${diff3.deletions}`)}`,
42220
- ...diff3.patch === null ? [` ${chalk256.dim(`no diff available; see ${diff3.diffUrl}`)}`] : formatPatch(diff3.patch)
42280
+ ` ${chalk257.bold(diff3.path)} ${chalk257.dim(`(${diff3.status})`)} ${chalk257.green(`+${diff3.additions}`)} ${chalk257.red(`-${diff3.deletions}`)}`,
42281
+ ...diff3.patch === null ? [` ${chalk257.dim(`no diff available; see ${diff3.diffUrl}`)}`] : formatPatch(diff3.patch)
42221
42282
  ];
42222
42283
  }
42223
42284
  function formatCriticalDiffs(diffs, criticalPaths) {
42224
42285
  if (criticalPaths.length === 0)
42225
- return `${chalk256.bold.underline("Critical diffs")}
42226
- ${chalk256.dim("review.highLevel.criticalPaths is empty, so no diffs are shown")}`;
42286
+ return `${chalk257.bold.underline("Critical diffs")}
42287
+ ${chalk257.dim("review.highLevel.criticalPaths is empty, so no diffs are shown")}`;
42227
42288
  if (diffs.length === 0)
42228
- return `${chalk256.bold.underline("Critical diffs")}
42229
- ${chalk256.dim(`no changed file matches ${criticalPaths.join(", ")}`)}`;
42289
+ return `${chalk257.bold.underline("Critical diffs")}
42290
+ ${chalk257.dim(`no changed file matches ${criticalPaths.join(", ")}`)}`;
42230
42291
  return [
42231
- chalk256.bold.underline("Critical diffs"),
42292
+ chalk257.bold.underline("Critical diffs"),
42232
42293
  ...diffs.flatMap(formatDiff)
42233
42294
  ].join("\n");
42234
42295
  }
42235
42296
 
42236
42297
  // src/commands/review/highLevel/formatHighLevelChecklist.ts
42237
- import chalk257 from "chalk";
42298
+ import chalk258 from "chalk";
42238
42299
  var MARKERS = {
42239
- pass: () => chalk257.green("\u2714"),
42240
- fail: () => chalk257.red("\u2718"),
42241
- manual: () => chalk257.yellow("\u25A1")
42300
+ pass: () => chalk258.green("\u2714"),
42301
+ fail: () => chalk258.red("\u2718"),
42302
+ manual: () => chalk258.yellow("\u25A1")
42242
42303
  };
42243
42304
  function formatCheck(check2) {
42244
- const title = check2.status === "fail" ? chalk257.red(check2.title) : chalk257.bold(check2.title);
42305
+ const title = check2.status === "fail" ? chalk258.red(check2.title) : chalk258.bold(check2.title);
42245
42306
  return ` ${MARKERS[check2.status]()} ${title}
42246
- ${chalk257.dim(check2.reason)}`;
42307
+ ${chalk258.dim(check2.reason)}`;
42247
42308
  }
42248
42309
  function formatGroup(heading2, checks2) {
42249
42310
  if (checks2.length === 0) return [];
42250
- return ["", chalk257.bold.underline(heading2), ...checks2.map(formatCheck)];
42311
+ return ["", chalk258.bold.underline(heading2), ...checks2.map(formatCheck)];
42251
42312
  }
42252
42313
  function formatHighLevelChecklist(checks2) {
42253
42314
  const deterministic = checks2.filter(
@@ -42256,7 +42317,7 @@ function formatHighLevelChecklist(checks2) {
42256
42317
  const failed3 = deterministic.filter(
42257
42318
  (check2) => check2.status === "fail"
42258
42319
  ).length;
42259
- const summary = failed3 === 0 ? chalk257.green(`All ${deterministic.length} deterministic checks pass`) : chalk257.red(
42320
+ const summary = failed3 === 0 ? chalk258.green(`All ${deterministic.length} deterministic checks pass`) : chalk258.red(
42260
42321
  `${failed3} of ${deterministic.length} deterministic checks fail`
42261
42322
  );
42262
42323
  return [
@@ -42271,37 +42332,37 @@ function formatHighLevelChecklist(checks2) {
42271
42332
  }
42272
42333
 
42273
42334
  // src/commands/review/highLevel/formatHighLevelStructure.ts
42274
- import chalk258 from "chalk";
42335
+ import chalk259 from "chalk";
42275
42336
  var STATUS_MARKERS = {
42276
- added: () => chalk258.green("A"),
42277
- removed: () => chalk258.red("D"),
42278
- modified: () => chalk258.yellow("M")
42337
+ added: () => chalk259.green("A"),
42338
+ removed: () => chalk259.red("D"),
42339
+ modified: () => chalk259.yellow("M")
42279
42340
  };
42280
42341
  function counts(additions, deletions) {
42281
- return `${chalk258.green(`+${additions}`)} ${chalk258.red(`-${deletions}`)}`;
42342
+ return `${chalk259.green(`+${additions}`)} ${chalk259.red(`-${deletions}`)}`;
42282
42343
  }
42283
42344
  function formatNode(node, indent4) {
42284
42345
  if (node.kind === "file")
42285
42346
  return [
42286
- `${indent4}${STATUS_MARKERS[node.status]()} ${node.name} ${chalk258.dim(counts(node.additions, node.deletions))}`
42347
+ `${indent4}${STATUS_MARKERS[node.status]()} ${node.name} ${chalk259.dim(counts(node.additions, node.deletions))}`
42287
42348
  ];
42288
42349
  const dir = node;
42289
42350
  return [
42290
- `${indent4}${chalk258.bold(`${dir.name}/`)} ${chalk258.dim(counts(dir.additions, dir.deletions))}`,
42351
+ `${indent4}${chalk259.bold(`${dir.name}/`)} ${chalk259.dim(counts(dir.additions, dir.deletions))}`,
42291
42352
  ...dir.children.flatMap((child) => formatNode(child, `${indent4} `))
42292
42353
  ];
42293
42354
  }
42294
42355
  function formatHighLevelStructure(structure) {
42295
42356
  const summary = `${structure.added} added \xB7 ${structure.removed} deleted \xB7 ${structure.modified} modified \xB7 ${counts(structure.additions, structure.deletions)}`;
42296
42357
  return [
42297
- chalk258.bold.underline("Structure"),
42358
+ chalk259.bold.underline("Structure"),
42298
42359
  ` ${summary}`,
42299
42360
  ...structure.tree.flatMap((node) => formatNode(node, " "))
42300
42361
  ].join("\n");
42301
42362
  }
42302
42363
 
42303
42364
  // src/commands/review/highLevel/formatHighLevelTests.ts
42304
- import chalk259 from "chalk";
42365
+ import chalk260 from "chalk";
42305
42366
  function changeMarker(change) {
42306
42367
  if (change === "added") return "A";
42307
42368
  if (change === "modified") return "M";
@@ -42310,22 +42371,22 @@ function changeMarker(change) {
42310
42371
  function formatNode2(node, depth) {
42311
42372
  const indent4 = " ".repeat(depth + 2);
42312
42373
  if (node.kind === "it")
42313
- return [`${indent4}${chalk259.dim(changeMarker(node.change))} ${node.name}`];
42374
+ return [`${indent4}${chalk260.dim(changeMarker(node.change))} ${node.name}`];
42314
42375
  return [
42315
- `${indent4}${chalk259.bold(node.name)}`,
42376
+ `${indent4}${chalk260.bold(node.name)}`,
42316
42377
  ...node.children.flatMap((child) => formatNode2(child, depth + 1))
42317
42378
  ];
42318
42379
  }
42319
42380
  function formatHighLevelTests(files, testPaths) {
42320
- const heading2 = chalk259.bold.underline("Changed tests");
42381
+ const heading2 = chalk260.bold.underline("Changed tests");
42321
42382
  if (files.length === 0)
42322
42383
  return `${heading2}
42323
- ${chalk259.dim(`no changed test in files matching ${testPaths.join(", ")}`)}`;
42384
+ ${chalk260.dim(`no changed test in files matching ${testPaths.join(", ")}`)}`;
42324
42385
  return [
42325
42386
  heading2,
42326
42387
  ...files.flatMap((file) => [
42327
42388
  "",
42328
- ` ${chalk259.bold(file.path)} ${chalk259.dim(`(${file.status})`)}`,
42389
+ ` ${chalk260.bold(file.path)} ${chalk260.dim(`(${file.status})`)}`,
42329
42390
  ...file.tests.flatMap((node) => formatNode2(node, 0))
42330
42391
  ])
42331
42392
  ].join("\n");
@@ -42339,10 +42400,10 @@ function highLevelChangedFileCount(structure) {
42339
42400
  // src/commands/review/highLevel/printHighLevelChecklist.ts
42340
42401
  function printHighLevelChecklist(subject) {
42341
42402
  console.log(
42342
- chalk260.bold(
42403
+ chalk261.bold(
42343
42404
  `High-level review of ${subject.repo}#${subject.prNumber} \u2014 ${subject.title}`
42344
42405
  ),
42345
- chalk260.dim(
42406
+ chalk261.dim(
42346
42407
  `\xB7 ${highLevelChangedFileCount(subject.structure)} changed files`
42347
42408
  )
42348
42409
  );
@@ -42356,12 +42417,12 @@ function printHighLevelChecklist(subject) {
42356
42417
  console.log("");
42357
42418
  console.log(formatHighLevelTests(subject.tests, subject.testPaths));
42358
42419
  console.log(
42359
- chalk260.dim(
42420
+ chalk261.dim(
42360
42421
  "\nManual items are for the reviewer to judge; see docs/high-level-review.md."
42361
42422
  )
42362
42423
  );
42363
42424
  console.log(
42364
- chalk260.dim(
42425
+ chalk261.dim(
42365
42426
  "Run this inside an assist session to step through the checklist in the web overlay."
42366
42427
  )
42367
42428
  );
@@ -44201,18 +44262,18 @@ function partitionFindingsByDiff(findings2, index3) {
44201
44262
  }
44202
44263
 
44203
44264
  // src/commands/review/warnOutOfDiff.ts
44204
- import chalk261 from "chalk";
44265
+ import chalk262 from "chalk";
44205
44266
  function warnOutOfDiff(outOfDiff) {
44206
44267
  if (outOfDiff.length === 0) return;
44207
44268
  console.warn(
44208
- chalk261.yellow(
44269
+ chalk262.yellow(
44209
44270
  `Moved ${outOfDiff.length} finding(s) whose lines fall outside the PR diff into the review body (GitHub cannot anchor a comment on these):`
44210
44271
  )
44211
44272
  );
44212
44273
  for (const finding of outOfDiff) {
44213
44274
  const range = finding.startLine !== void 0 ? `${finding.startLine}-${finding.line}` : `${finding.line}`;
44214
44275
  console.warn(
44215
- ` ${chalk261.yellow("\xB7")} ${finding.title} ${chalk261.dim(
44276
+ ` ${chalk262.yellow("\xB7")} ${finding.title} ${chalk262.dim(
44216
44277
  `(${finding.file}:${range})`
44217
44278
  )}`
44218
44279
  );
@@ -44239,18 +44300,18 @@ function selectInDiffFindings(lineBound, prDiff) {
44239
44300
  }
44240
44301
 
44241
44302
  // src/commands/review/warnUnlocated.ts
44242
- import chalk262 from "chalk";
44303
+ import chalk263 from "chalk";
44243
44304
  function warnUnlocated(unlocated) {
44244
44305
  if (unlocated.length === 0) return;
44245
44306
  console.warn(
44246
- chalk262.yellow(
44307
+ chalk263.yellow(
44247
44308
  `Moved ${unlocated.length} finding(s) without a parseable file:line into the review body:`
44248
44309
  )
44249
44310
  );
44250
44311
  for (const finding of unlocated) {
44251
- const where = finding.location || chalk262.dim("missing");
44312
+ const where = finding.location || chalk263.dim("missing");
44252
44313
  console.warn(
44253
- ` ${chalk262.yellow("\xB7")} ${finding.title} ${chalk262.dim(`(${where})`)}`
44314
+ ` ${chalk263.yellow("\xB7")} ${finding.title} ${chalk263.dim(`(${where})`)}`
44254
44315
  );
44255
44316
  }
44256
44317
  }
@@ -44667,7 +44728,7 @@ function registerReview(program) {
44667
44728
 
44668
44729
  // src/commands/rules/indexRules.ts
44669
44730
  import path88 from "path";
44670
- import chalk263 from "chalk";
44731
+ import chalk264 from "chalk";
44671
44732
 
44672
44733
  // src/commands/rules/updateScopedRulesIndex.ts
44673
44734
  import { existsSync as existsSync75, readFileSync as readFileSync60, writeFileSync as writeFileSync45 } from "fs";
@@ -44754,24 +44815,24 @@ function indexRules() {
44754
44815
  const rootFile = path88.relative(process.cwd(), path88.join(root2, "CLAUDE.md"));
44755
44816
  if (directories.length === 0) {
44756
44817
  console.log(
44757
- chalk263.gray(`No directories carry their own \`## Rules\` under ${root2}`)
44818
+ chalk264.gray(`No directories carry their own \`## Rules\` under ${root2}`)
44758
44819
  );
44759
44820
  return;
44760
44821
  }
44761
44822
  console.log(`Recorded in ${rootFile || "CLAUDE.md"}`);
44762
44823
  for (const directory of directories)
44763
- console.log(` ${chalk263.cyan(directory)}`);
44824
+ console.log(` ${chalk264.cyan(directory)}`);
44764
44825
  }
44765
44826
 
44766
44827
  // src/commands/rules/listRules.ts
44767
44828
  import path89 from "path";
44768
- import chalk264 from "chalk";
44829
+ import chalk265 from "chalk";
44769
44830
  function listRules(target, options2 = {}) {
44770
44831
  const resolved = path89.resolve(target ?? process.cwd());
44771
44832
  const rules2 = readScopedRules(resolved);
44772
44833
  if (rules2.length === 0) {
44773
44834
  const label = path89.relative(process.cwd(), resolved) || ".";
44774
- console.log(chalk264.gray(`No rules in scope for ${label}`));
44835
+ console.log(chalk265.gray(`No rules in scope for ${label}`));
44775
44836
  return;
44776
44837
  }
44777
44838
  const base = findRepoRoot(scopeDirectory(resolved));
@@ -44781,21 +44842,21 @@ function listRules(target, options2 = {}) {
44781
44842
  if (rule.source !== shown) {
44782
44843
  shown = rule.source;
44783
44844
  console.log(
44784
- chalk264.dim(base ? path89.relative(base, rule.source) : rule.source)
44845
+ chalk265.dim(base ? path89.relative(base, rule.source) : rule.source)
44785
44846
  );
44786
44847
  }
44787
44848
  console.log(
44788
- ` ${chalk264.cyan(rule.code.padEnd(width2))} ${rule.title ?? rule.text}`
44849
+ ` ${chalk265.cyan(rule.code.padEnd(width2))} ${rule.title ?? rule.text}`
44789
44850
  );
44790
44851
  if (options2.full && rule.title)
44791
- console.log(` ${" ".repeat(width2)} ${chalk264.dim(rule.text)}`);
44852
+ console.log(` ${" ".repeat(width2)} ${chalk265.dim(rule.text)}`);
44792
44853
  }
44793
44854
  }
44794
44855
 
44795
44856
  // src/commands/rules/addRule.ts
44796
44857
  import { existsSync as existsSync77, readFileSync as readFileSync62, writeFileSync as writeFileSync46 } from "fs";
44797
44858
  import path91 from "path";
44798
- import chalk265 from "chalk";
44859
+ import chalk266 from "chalk";
44799
44860
 
44800
44861
  // src/commands/rules/insertRuleBullet.ts
44801
44862
  function ruleBullet({ code, title, text: text20 }) {
@@ -44854,7 +44915,7 @@ function read3(file) {
44854
44915
  function addRule(text20, options2) {
44855
44916
  const rule = text20.trim();
44856
44917
  if (rule === "") {
44857
- console.error(chalk265.red("Rule text is required"));
44918
+ console.error(chalk266.red("Rule text is required"));
44858
44919
  process.exitCode = 1;
44859
44920
  return;
44860
44921
  }
@@ -44872,14 +44933,14 @@ function addRule(text20, options2) {
44872
44933
  );
44873
44934
  updateScopedRulesIndex(root2);
44874
44935
  console.log(
44875
- `Added ${chalk265.cyan(code)} to ${path91.relative(process.cwd(), target) || target}`
44936
+ `Added ${chalk266.cyan(code)} to ${path91.relative(process.cwd(), target) || target}`
44876
44937
  );
44877
44938
  }
44878
44939
 
44879
44940
  // src/commands/rules/addUserRule.ts
44880
- import chalk266 from "chalk";
44941
+ import chalk267 from "chalk";
44881
44942
  function fail10(message3) {
44882
- console.error(chalk266.red(message3));
44943
+ console.error(chalk267.red(message3));
44883
44944
  process.exitCode = 1;
44884
44945
  }
44885
44946
  function asRules(value) {
@@ -44898,7 +44959,7 @@ async function addToUserDb(rule) {
44898
44959
  rule
44899
44960
  ]);
44900
44961
  if (!result.ok) return fail10(result.errors.join("\n"));
44901
- console.log(`Added ${chalk266.cyan(rule.title)} to advice.rules in user (db)`);
44962
+ console.log(`Added ${chalk267.cyan(rule.title)} to advice.rules in user (db)`);
44902
44963
  }
44903
44964
  function addToUserNode(rule, globalConfigPath) {
44904
44965
  const advice = loadGlobalConfigRaw(globalConfigPath).advice;
@@ -44911,7 +44972,7 @@ function addToUserNode(rule, globalConfigPath) {
44911
44972
  );
44912
44973
  if (!result.ok) return fail10(result.errors.join("\n"));
44913
44974
  console.log(
44914
- `Added ${chalk266.cyan(rule.title)} to advice.rules in user (node) (${globalConfigFileLabel(globalConfigPath)})`
44975
+ `Added ${chalk267.cyan(rule.title)} to advice.rules in user (node) (${globalConfigFileLabel(globalConfigPath)})`
44915
44976
  );
44916
44977
  }
44917
44978
  async function addUserRule(text20, options2, globalConfigPath = getGlobalConfigPath()) {
@@ -44966,7 +45027,7 @@ function registerRules(program) {
44966
45027
  }
44967
45028
 
44968
45029
  // src/commands/seq/seqAuth.ts
44969
- import chalk268 from "chalk";
45030
+ import chalk269 from "chalk";
44970
45031
 
44971
45032
  // src/commands/seq/loadConnections.ts
44972
45033
  function loadConnections2() {
@@ -44995,10 +45056,10 @@ function setDefaultConnection(name) {
44995
45056
  }
44996
45057
 
44997
45058
  // src/shared/assertUniqueName.ts
44998
- import chalk267 from "chalk";
45059
+ import chalk268 from "chalk";
44999
45060
  function assertUniqueName(existingNames, name) {
45000
45061
  if (existingNames.includes(name)) {
45001
- console.error(chalk267.red(`Connection "${name}" already exists.`));
45062
+ console.error(chalk268.red(`Connection "${name}" already exists.`));
45002
45063
  process.exit(1);
45003
45064
  }
45004
45065
  }
@@ -45016,16 +45077,16 @@ async function promptConnection2(existingNames) {
45016
45077
  var seqAuth = createConnectionAuth({
45017
45078
  load: loadConnections2,
45018
45079
  save: saveConnections2,
45019
- format: (c) => `${chalk268.bold(c.name)} ${c.url}`,
45080
+ format: (c) => `${chalk269.bold(c.name)} ${c.url}`,
45020
45081
  promptNew: promptConnection2,
45021
45082
  onFirst: (c) => setDefaultConnection(c.name)
45022
45083
  });
45023
45084
 
45024
45085
  // src/commands/seq/seqQuery.ts
45025
- import chalk272 from "chalk";
45086
+ import chalk273 from "chalk";
45026
45087
 
45027
45088
  // src/commands/seq/fetchSeq.ts
45028
- import chalk269 from "chalk";
45089
+ import chalk270 from "chalk";
45029
45090
  async function fetchSeq(conn, path109, params) {
45030
45091
  const url = `${conn.url}${path109}?${params}`;
45031
45092
  const response = await fetch(url, {
@@ -45036,7 +45097,7 @@ async function fetchSeq(conn, path109, params) {
45036
45097
  });
45037
45098
  if (!response.ok) {
45038
45099
  const body = await response.text();
45039
- console.error(chalk269.red(`Seq returned ${response.status}: ${body}`));
45100
+ console.error(chalk270.red(`Seq returned ${response.status}: ${body}`));
45040
45101
  process.exit(1);
45041
45102
  }
45042
45103
  return response;
@@ -45095,23 +45156,23 @@ async function fetchSeqEvents(conn, params) {
45095
45156
  }
45096
45157
 
45097
45158
  // src/commands/seq/formatEvent.ts
45098
- import chalk270 from "chalk";
45159
+ import chalk271 from "chalk";
45099
45160
  function levelColor(level) {
45100
45161
  switch (level) {
45101
45162
  case "Fatal":
45102
- return chalk270.bgRed.white;
45163
+ return chalk271.bgRed.white;
45103
45164
  case "Error":
45104
- return chalk270.red;
45165
+ return chalk271.red;
45105
45166
  case "Warning":
45106
- return chalk270.yellow;
45167
+ return chalk271.yellow;
45107
45168
  case "Information":
45108
- return chalk270.cyan;
45169
+ return chalk271.cyan;
45109
45170
  case "Debug":
45110
- return chalk270.gray;
45171
+ return chalk271.gray;
45111
45172
  case "Verbose":
45112
- return chalk270.dim;
45173
+ return chalk271.dim;
45113
45174
  default:
45114
- return chalk270.white;
45175
+ return chalk271.white;
45115
45176
  }
45116
45177
  }
45117
45178
  function levelAbbrev(level) {
@@ -45152,12 +45213,12 @@ function formatTimestamp(iso) {
45152
45213
  function formatEvent(event) {
45153
45214
  const color = levelColor(event.Level);
45154
45215
  const abbrev = levelAbbrev(event.Level);
45155
- const ts10 = chalk270.dim(formatTimestamp(event.Timestamp));
45216
+ const ts10 = chalk271.dim(formatTimestamp(event.Timestamp));
45156
45217
  const msg = renderMessage(event);
45157
45218
  const lines2 = [`${ts10} ${color(`[${abbrev}]`)} ${msg}`];
45158
45219
  if (event.Exception) {
45159
45220
  for (const line of event.Exception.split("\n")) {
45160
- lines2.push(chalk270.red(` ${line}`));
45221
+ lines2.push(chalk271.red(` ${line}`));
45161
45222
  }
45162
45223
  }
45163
45224
  return lines2.join("\n");
@@ -45190,11 +45251,11 @@ function rejectTimestampFilter(filter) {
45190
45251
  }
45191
45252
 
45192
45253
  // src/shared/resolveNamedConnection.ts
45193
- import chalk271 from "chalk";
45254
+ import chalk272 from "chalk";
45194
45255
  function resolveNamedConnection(connections, requested, defaultName, kind, authCommand) {
45195
45256
  if (connections.length === 0) {
45196
45257
  console.error(
45197
- chalk271.red(
45258
+ chalk272.red(
45198
45259
  `No ${kind} connections configured. Run '${authCommand}' first.`
45199
45260
  )
45200
45261
  );
@@ -45203,7 +45264,7 @@ function resolveNamedConnection(connections, requested, defaultName, kind, authC
45203
45264
  const target = requested ?? defaultName ?? connections[0].name;
45204
45265
  const connection = connections.find((c) => c.name === target);
45205
45266
  if (!connection) {
45206
- console.error(chalk271.red(`${kind} connection "${target}" not found.`));
45267
+ console.error(chalk272.red(`${kind} connection "${target}" not found.`));
45207
45268
  process.exit(1);
45208
45269
  }
45209
45270
  return connection;
@@ -45232,7 +45293,7 @@ async function seqQuery(filter, options2) {
45232
45293
  new URLSearchParams({ filter, count: String(count10) })
45233
45294
  );
45234
45295
  if (events.length === 0) {
45235
- console.log(chalk272.yellow("No events found."));
45296
+ console.log(chalk273.yellow("No events found."));
45236
45297
  return;
45237
45298
  }
45238
45299
  if (options2.json) {
@@ -45243,11 +45304,11 @@ async function seqQuery(filter, options2) {
45243
45304
  for (const event of chronological) {
45244
45305
  console.log(formatEvent(event));
45245
45306
  }
45246
- console.log(chalk272.dim(`
45307
+ console.log(chalk273.dim(`
45247
45308
  ${events.length} events`));
45248
45309
  if (events.length >= count10) {
45249
45310
  console.log(
45250
- chalk272.yellow(
45311
+ chalk273.yellow(
45251
45312
  `Results limited to ${count10}. Use --count to retrieve more.`
45252
45313
  )
45253
45314
  );
@@ -45255,10 +45316,10 @@ ${events.length} events`));
45255
45316
  }
45256
45317
 
45257
45318
  // src/shared/setNamedDefaultConnection.ts
45258
- import chalk273 from "chalk";
45319
+ import chalk274 from "chalk";
45259
45320
  function setNamedDefaultConnection(connections, name, setDefault, kind) {
45260
45321
  if (!connections.find((c) => c.name === name)) {
45261
- console.error(chalk273.red(`Connection "${name}" not found.`));
45322
+ console.error(chalk274.red(`Connection "${name}" not found.`));
45262
45323
  process.exit(1);
45263
45324
  }
45264
45325
  setDefault(name);
@@ -45669,7 +45730,7 @@ function registerSlack(program) {
45669
45730
  }
45670
45731
 
45671
45732
  // src/commands/sql/sqlAuth.ts
45672
- import chalk275 from "chalk";
45733
+ import chalk276 from "chalk";
45673
45734
 
45674
45735
  // src/commands/sql/loadConnections.ts
45675
45736
  function loadConnections3() {
@@ -45698,7 +45759,7 @@ function setDefaultConnection2(name) {
45698
45759
  }
45699
45760
 
45700
45761
  // src/commands/sql/promptConnection.ts
45701
- import chalk274 from "chalk";
45762
+ import chalk275 from "chalk";
45702
45763
  async function promptConnection3(existingNames) {
45703
45764
  const name = await promptInput("name", "Connection name:", "default");
45704
45765
  assertUniqueName(existingNames, name);
@@ -45706,7 +45767,7 @@ async function promptConnection3(existingNames) {
45706
45767
  const portStr = await promptInput("port", "Port:", "1433");
45707
45768
  const port = Number.parseInt(portStr, 10);
45708
45769
  if (!Number.isFinite(port)) {
45709
- console.error(chalk274.red(`Invalid port "${portStr}".`));
45770
+ console.error(chalk275.red(`Invalid port "${portStr}".`));
45710
45771
  process.exit(1);
45711
45772
  }
45712
45773
  const user = await promptInput("user", "User:");
@@ -45719,13 +45780,13 @@ async function promptConnection3(existingNames) {
45719
45780
  var sqlAuth = createConnectionAuth({
45720
45781
  load: loadConnections3,
45721
45782
  save: saveConnections3,
45722
- format: (c) => `${chalk275.bold(c.name)} ${c.server}:${c.port}/${c.database} (${c.user})`,
45783
+ format: (c) => `${chalk276.bold(c.name)} ${c.server}:${c.port}/${c.database} (${c.user})`,
45723
45784
  promptNew: promptConnection3,
45724
45785
  onFirst: (c) => setDefaultConnection2(c.name)
45725
45786
  });
45726
45787
 
45727
45788
  // src/commands/sql/printTable.ts
45728
- import chalk276 from "chalk";
45789
+ import chalk277 from "chalk";
45729
45790
  function formatCell(value) {
45730
45791
  if (value === null || value === void 0) return "";
45731
45792
  if (value instanceof Date) return value.toISOString();
@@ -45734,7 +45795,7 @@ function formatCell(value) {
45734
45795
  }
45735
45796
  function printTable(rows) {
45736
45797
  if (rows.length === 0) {
45737
- console.log(chalk276.yellow("(no rows)"));
45798
+ console.log(chalk277.yellow("(no rows)"));
45738
45799
  return;
45739
45800
  }
45740
45801
  const columns = Object.keys(rows[0]);
@@ -45742,13 +45803,13 @@ function printTable(rows) {
45742
45803
  (col) => Math.max(col.length, ...rows.map((r) => formatCell(r[col]).length))
45743
45804
  );
45744
45805
  const header = columns.map((c, i) => c.padEnd(widths[i])).join(" ");
45745
- console.log(chalk276.dim(header));
45746
- console.log(chalk276.dim("-".repeat(header.length)));
45806
+ console.log(chalk277.dim(header));
45807
+ console.log(chalk277.dim("-".repeat(header.length)));
45747
45808
  for (const row2 of rows) {
45748
45809
  const line = columns.map((c, i) => formatCell(row2[c]).padEnd(widths[i])).join(" ");
45749
45810
  console.log(line);
45750
45811
  }
45751
- console.log(chalk276.dim(`
45812
+ console.log(chalk277.dim(`
45752
45813
  ${rows.length} row${rows.length === 1 ? "" : "s"}`));
45753
45814
  }
45754
45815
 
@@ -45808,7 +45869,7 @@ async function sqlColumns(table, connectionName) {
45808
45869
  }
45809
45870
 
45810
45871
  // src/commands/sql/sqlMutate.ts
45811
- import chalk277 from "chalk";
45872
+ import chalk278 from "chalk";
45812
45873
 
45813
45874
  // src/commands/sql/isMutation.ts
45814
45875
  var MUTATION_KEYWORDS = [
@@ -45842,7 +45903,7 @@ function isMutation(sql33) {
45842
45903
  async function sqlMutate(query, connectionName) {
45843
45904
  if (!isMutation(query)) {
45844
45905
  console.error(
45845
- chalk277.red(
45906
+ chalk278.red(
45846
45907
  "assist sql mutate refuses non-mutating statements. Use `assist sql query` instead."
45847
45908
  )
45848
45909
  );
@@ -45852,18 +45913,18 @@ async function sqlMutate(query, connectionName) {
45852
45913
  const pool = await sqlConnect(conn);
45853
45914
  try {
45854
45915
  const result = await pool.request().query(query);
45855
- console.log(chalk277.dim(`${result.rowsAffected.join(", ")} row(s) affected`));
45916
+ console.log(chalk278.dim(`${result.rowsAffected.join(", ")} row(s) affected`));
45856
45917
  } finally {
45857
45918
  await pool.close();
45858
45919
  }
45859
45920
  }
45860
45921
 
45861
45922
  // src/commands/sql/sqlQuery.ts
45862
- import chalk278 from "chalk";
45923
+ import chalk279 from "chalk";
45863
45924
  async function sqlQuery(query, connectionName) {
45864
45925
  if (isMutation(query)) {
45865
45926
  console.error(
45866
- chalk278.red(
45927
+ chalk279.red(
45867
45928
  "assist sql query refuses mutating statements. Use `assist sql mutate` instead."
45868
45929
  )
45869
45930
  );
@@ -45878,7 +45939,7 @@ async function sqlQuery(query, connectionName) {
45878
45939
  printTable(rows);
45879
45940
  } else {
45880
45941
  console.log(
45881
- chalk278.dim(`${result.rowsAffected.join(", ")} row(s) affected`)
45942
+ chalk279.dim(`${result.rowsAffected.join(", ")} row(s) affected`)
45882
45943
  );
45883
45944
  }
45884
45945
  } finally {
@@ -46293,7 +46354,7 @@ function syncPi(claudeDir, options2) {
46293
46354
  // src/commands/sync/syncSettings.ts
46294
46355
  import * as fs49 from "fs";
46295
46356
  import * as path102 from "path";
46296
- import chalk279 from "chalk";
46357
+ import chalk280 from "chalk";
46297
46358
  async function syncSettings(claudeDir, targetBase, options2) {
46298
46359
  const source = path102.join(claudeDir, "settings.json");
46299
46360
  const target = path102.join(targetBase, "settings.json");
@@ -46312,7 +46373,7 @@ async function syncSettings(claudeDir, targetBase, options2) {
46312
46373
  if (mergedContent !== normalizedTarget) {
46313
46374
  if (!options2?.yes) {
46314
46375
  console.log(
46315
- chalk279.yellow(
46376
+ chalk280.yellow(
46316
46377
  "\n\u26A0\uFE0F Warning: settings.json differs from existing file"
46317
46378
  )
46318
46379
  );
@@ -46320,7 +46381,7 @@ async function syncSettings(claudeDir, targetBase, options2) {
46320
46381
  printDiff(targetContent, mergedContent);
46321
46382
  printAutoConfirmHint();
46322
46383
  const confirm = await promptConfirm(
46323
- chalk279.red("Overwrite existing settings.json?"),
46384
+ chalk280.red("Overwrite existing settings.json?"),
46324
46385
  false
46325
46386
  );
46326
46387
  if (!confirm) {
@@ -47493,13 +47554,13 @@ Total: ${violations.length} forbidden string(s).`);
47493
47554
  }
47494
47555
 
47495
47556
  // src/commands/verify/hardcodedColors.ts
47496
- import { execFileSync as execFileSync29 } from "child_process";
47557
+ import { execFileSync as execFileSync30 } from "child_process";
47497
47558
  import { minimatch as minimatch11 } from "minimatch";
47498
47559
  var pattern = "0x[0-9a-fA-F]{6}|#[0-9a-fA-F]{3,6}";
47499
47560
  function hardcodedColors() {
47500
47561
  const ignoreGlobs = loadConfig().hardcodedColors?.ignore ?? [];
47501
47562
  try {
47502
- const output = execFileSync29("grep", ["-rEnH", "-f", "-", "src/"], {
47563
+ const output = execFileSync30("grep", ["-rEnH", "-f", "-", "src/"], {
47503
47564
  encoding: "utf8",
47504
47565
  input: `${pattern}
47505
47566
  `
@@ -48397,11 +48458,11 @@ function consumeSimulatedDivergence(cwd) {
48397
48458
  }
48398
48459
 
48399
48460
  // src/commands/watch/fetchQuietly.ts
48400
- import { execFileSync as execFileSync30 } from "child_process";
48461
+ import { execFileSync as execFileSync31 } from "child_process";
48401
48462
  var MIN_FETCH_TIMEOUT_MS = 6e4;
48402
48463
  function fetchQuietly(cwd, intervalMs) {
48403
48464
  try {
48404
- execFileSync30("git", ["fetch", "--quiet"], {
48465
+ execFileSync31("git", ["fetch", "--quiet"], {
48405
48466
  stdio: ["pipe", "pipe", "pipe"],
48406
48467
  cwd,
48407
48468
  timeout: Math.max(intervalMs, MIN_FETCH_TIMEOUT_MS)
@@ -48657,7 +48718,7 @@ function registerWatch(program) {
48657
48718
  }
48658
48719
 
48659
48720
  // src/commands/roam/postRoamActivity.ts
48660
- import { execFileSync as execFileSync31 } from "child_process";
48721
+ import { execFileSync as execFileSync32 } from "child_process";
48661
48722
  import { readdirSync as readdirSync26, readFileSync as readFileSync72, statSync as statSync14 } from "fs";
48662
48723
  import { join as join109 } from "path";
48663
48724
  function findPortFile(roamDir) {
@@ -48696,7 +48757,7 @@ function postRoamActivity(app, event) {
48696
48757
  const pid = PID_BY_APP[app] ?? 99999;
48697
48758
  const url = `http://127.0.0.1:${port}/api/v1/activity/${app}/${event}?pid=${pid}`;
48698
48759
  try {
48699
- execFileSync31("curl", ["-sf", "--max-time", "0.2", "-X", "POST", url], {
48760
+ execFileSync32("curl", ["-sf", "--max-time", "0.2", "-X", "POST", url], {
48700
48761
  stdio: "ignore"
48701
48762
  });
48702
48763
  } catch {
@@ -49244,27 +49305,27 @@ function registerRun(program) {
49244
49305
  }
49245
49306
 
49246
49307
  // src/commands/sessions/nodes/formatLink.ts
49247
- import chalk280 from "chalk";
49308
+ import chalk281 from "chalk";
49248
49309
  var STATE_COLOURS = {
49249
- connected: chalk280.green,
49250
- connecting: chalk280.yellow,
49251
- disconnected: chalk280.red,
49252
- "version-blocked": chalk280.red
49310
+ connected: chalk281.green,
49311
+ connecting: chalk281.yellow,
49312
+ disconnected: chalk281.red,
49313
+ "version-blocked": chalk281.red
49253
49314
  };
49254
49315
  function formatLink(link3) {
49255
- const colour = STATE_COLOURS[link3.state] ?? chalk280.white;
49316
+ const colour = STATE_COLOURS[link3.state] ?? chalk281.white;
49256
49317
  const peer = link3.peerVersion ? ` peer ${link3.peerVersion}` : "";
49257
49318
  const error = link3.error ? `
49258
- ${chalk280.dim(`last error${link3.errorAt ? ` ${link3.errorAt}` : ""}: ${link3.error}`)}` : "";
49319
+ ${chalk281.dim(`last error${link3.errorAt ? ` ${link3.errorAt}` : ""}: ${link3.error}`)}` : "";
49259
49320
  return ` ${link3.name} ${colour(link3.state)} ${link3.url}${peer}${error}`;
49260
49321
  }
49261
49322
 
49262
49323
  // src/commands/sessions/daemon/listDaemonPids.ts
49263
- import { execFileSync as execFileSync32 } from "child_process";
49324
+ import { execFileSync as execFileSync33 } from "child_process";
49264
49325
  function listDaemonPids() {
49265
49326
  if (process.platform === "win32") return [];
49266
49327
  try {
49267
- const out = execFileSync32("ps", ["-eo", "pid=,args="], {
49328
+ const out = execFileSync33("ps", ["-eo", "pid=,args="], {
49268
49329
  encoding: "utf8"
49269
49330
  });
49270
49331
  return out.split("\n").filter((line) => line.includes("assist") && / daemon run\b/.test(line)).map((line) => Number.parseInt(line.trim(), 10)).filter((pid) => Number.isInteger(pid));
@@ -54330,7 +54391,7 @@ function releaseClient(client, clients, prPreview, verify) {
54330
54391
  }
54331
54392
 
54332
54393
  // src/commands/sessions/daemon/findPortHolderPid.ts
54333
- import { execFileSync as execFileSync33 } from "child_process";
54394
+ import { execFileSync as execFileSync34 } from "child_process";
54334
54395
  var PROBE_TIMEOUT_MS = 3e3;
54335
54396
  function findPortHolderPid(port) {
54336
54397
  try {
@@ -54340,7 +54401,7 @@ function findPortHolderPid(port) {
54340
54401
  }
54341
54402
  }
54342
54403
  function probe(command, args) {
54343
- return execFileSync33(command, args, {
54404
+ return execFileSync34(command, args, {
54344
54405
  encoding: "utf8",
54345
54406
  timeout: PROBE_TIMEOUT_MS,
54346
54407
  stdio: ["ignore", "pipe", "ignore"]
@@ -58298,7 +58359,7 @@ async function closeSession2() {
58298
58359
  }
58299
58360
 
58300
58361
  // src/commands/sessions/nodes/listNodes.ts
58301
- import chalk281 from "chalk";
58362
+ import chalk282 from "chalk";
58302
58363
  async function nodesReport() {
58303
58364
  const live = await queryNodes();
58304
58365
  if (live)
@@ -58315,10 +58376,10 @@ async function listNodes(options2) {
58315
58376
  console.log(JSON.stringify(report, null, 2));
58316
58377
  return;
58317
58378
  }
58318
- console.log(`${report.local} ${chalk281.dim("(this node)")}`);
58379
+ console.log(`${report.local} ${chalk282.dim("(this node)")}`);
58319
58380
  if (!report.daemonRunning)
58320
- console.log(chalk281.dim(" daemon not running; showing configured links"));
58321
- if (report.links.length === 0) console.log(chalk281.dim(" no links"));
58381
+ console.log(chalk282.dim(" daemon not running; showing configured links"));
58382
+ if (report.links.length === 0) console.log(chalk282.dim(" no links"));
58322
58383
  for (const link3 of report.links) console.log(formatLink(link3));
58323
58384
  }
58324
58385
 
@@ -58340,7 +58401,7 @@ async function findUnlinkedWindowsNode(health2, platform = detectPlatform()) {
58340
58401
  }
58341
58402
 
58342
58403
  // src/commands/sessions/nodes/printReport.ts
58343
- import chalk282 from "chalk";
58404
+ import chalk283 from "chalk";
58344
58405
  function printReport(report) {
58345
58406
  if (report.links.length === 0) {
58346
58407
  console.log(`${report.local} has no links`);
@@ -58354,11 +58415,11 @@ function printReport(report) {
58354
58415
  for (const diagnosis of report.links) printDiagnosis(diagnosis);
58355
58416
  }
58356
58417
  function printDiagnosis(diagnosis) {
58357
- console.log(`${chalk282.bold(diagnosis.name)} ${chalk282.dim(diagnosis.url)}`);
58418
+ console.log(`${chalk283.bold(diagnosis.name)} ${chalk283.dim(diagnosis.url)}`);
58358
58419
  for (const hop of diagnosis.hops) {
58359
- const mark = hop.ok ? chalk282.green("\u2713") : chalk282.red("\u2717");
58420
+ const mark = hop.ok ? chalk283.green("\u2713") : chalk283.red("\u2717");
58360
58421
  console.log(` ${mark} ${hop.hop.padEnd(9)} ${hop.detail ?? hop.error}`);
58361
- if (hop.remediation) console.log(` ${chalk282.yellow(hop.remediation)}`);
58422
+ if (hop.remediation) console.log(` ${chalk283.yellow(hop.remediation)}`);
58362
58423
  }
58363
58424
  }
58364
58425
 
@@ -58430,14 +58491,14 @@ function registerDiagnoseCommands(nodes, calledBy5) {
58430
58491
  }
58431
58492
 
58432
58493
  // src/commands/sessions/nodes/linkNode.ts
58433
- import chalk285 from "chalk";
58494
+ import chalk286 from "chalk";
58434
58495
 
58435
58496
  // src/commands/sessions/nodes/notifyDaemonLinks.ts
58436
- import chalk283 from "chalk";
58497
+ import chalk284 from "chalk";
58437
58498
  async function notifyDaemonLinks() {
58438
58499
  if (!await isDaemonRunning()) {
58439
58500
  console.log(
58440
- chalk283.yellow(
58501
+ chalk284.yellow(
58441
58502
  "The sessions daemon is not running; it loads the links when it starts."
58442
58503
  )
58443
58504
  );
@@ -58445,11 +58506,11 @@ async function notifyDaemonLinks() {
58445
58506
  }
58446
58507
  try {
58447
58508
  await sendToDaemonAwaitAck({ type: "reload-links" });
58448
- console.log(chalk283.dim("The sessions daemon reloaded its links."));
58509
+ console.log(chalk284.dim("The sessions daemon reloaded its links."));
58449
58510
  } catch (error) {
58450
58511
  const message3 = error instanceof Error ? error.message : String(error);
58451
58512
  console.log(
58452
- chalk283.yellow(
58513
+ chalk284.yellow(
58453
58514
  `Could not notify the sessions daemon (${message3}); run \`assist daemon restart\` to apply the change.`
58454
58515
  )
58455
58516
  );
@@ -58457,7 +58518,7 @@ async function notifyDaemonLinks() {
58457
58518
  }
58458
58519
 
58459
58520
  // src/commands/sessions/nodes/readLinks.ts
58460
- import chalk284 from "chalk";
58521
+ import chalk285 from "chalk";
58461
58522
 
58462
58523
  // src/commands/sessions/nodes/writeLinks.ts
58463
58524
  async function writeLinks(links2) {
@@ -58480,7 +58541,7 @@ async function readLinks() {
58480
58541
  await writeLinks(links2);
58481
58542
  const dropped = stored.filter((link3) => !link3.url).map((link3) => link3.name);
58482
58543
  console.log(
58483
- chalk284.yellow(`Removed ${dropped.join(", ")}: ${SSH_LINK_RETIRED}`)
58544
+ chalk285.yellow(`Removed ${dropped.join(", ")}: ${SSH_LINK_RETIRED}`)
58484
58545
  );
58485
58546
  return links2;
58486
58547
  }
@@ -58536,7 +58597,7 @@ async function linkNode(name, url, options2) {
58536
58597
  throw new Error(`${name} is this node; link to a different node`);
58537
58598
  const link3 = await buildLink(name, url, options2);
58538
58599
  await writeLinks([...others, link3]);
58539
- console.log(chalk285.green(`Linked ${name} (${link3.url})`));
58600
+ console.log(chalk286.green(`Linked ${name} (${link3.url})`));
58540
58601
  await notifyDaemonLinks();
58541
58602
  }
58542
58603
 
@@ -58719,16 +58780,16 @@ function registerPeerActionCommands(nodes, calledBy5) {
58719
58780
  }
58720
58781
 
58721
58782
  // src/commands/sessions/nodes/unlinkNode.ts
58722
- import chalk286 from "chalk";
58783
+ import chalk287 from "chalk";
58723
58784
  async function unlinkNode(name) {
58724
58785
  const links2 = await readLinks();
58725
58786
  const remaining = links2.filter((link3) => link3.name !== name);
58726
58787
  if (remaining.length === links2.length) {
58727
- console.log(chalk286.yellow(`No link named ${name}`));
58788
+ console.log(chalk287.yellow(`No link named ${name}`));
58728
58789
  return;
58729
58790
  }
58730
58791
  await writeLinks(remaining);
58731
- console.log(chalk286.green(`Unlinked ${name}`));
58792
+ console.log(chalk287.green(`Unlinked ${name}`));
58732
58793
  await notifyDaemonLinks();
58733
58794
  }
58734
58795
 
@@ -58976,10 +59037,10 @@ function createProgram() {
58976
59037
  }
58977
59038
 
58978
59039
  // src/reportCliError.ts
58979
- import chalk287 from "chalk";
59040
+ import chalk288 from "chalk";
58980
59041
  function reportCliError(error) {
58981
59042
  if (error instanceof InvalidItemIdError || error instanceof AmbiguousRepoConfigError || error instanceof UnknownRepoConfigError || error instanceof MissingRunCwdError || error instanceof MiroExtractError || error instanceof MissingDatabaseUrlError) {
58982
- console.error(chalk287.red(error.message));
59043
+ console.error(chalk288.red(error.message));
58983
59044
  } else {
58984
59045
  console.error(error);
58985
59046
  }