@staff0rd/assist 0.1069.0 → 0.1069.2

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.0",
9
+ version: "0.1069.2",
10
10
  type: "module",
11
11
  main: "dist/index.js",
12
12
  bin: {
@@ -27230,7 +27230,17 @@ 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/earliestSemverTag.ts
27239
+ import semver2 from "semver";
27240
+ function earliestSemverTag(tags) {
27241
+ const versions = tags.map((tag) => semver2.clean(tag)).filter((v) => v !== null).sort(semver2.compare);
27242
+ return versions.length > 0 ? `v${versions[0]}` : null;
27243
+ }
27234
27244
 
27235
27245
  // src/commands/devlog/getVersionAtCommit.ts
27236
27246
  import { execSync as execSync37 } from "child_process";
@@ -27246,23 +27256,50 @@ function getVersionAtCommit(hash) {
27246
27256
  }
27247
27257
  }
27248
27258
 
27259
+ // src/commands/devlog/isPackageVersionStale.ts
27260
+ import semver3 from "semver";
27261
+ function isPackageVersionStale(packageVersion, tags) {
27262
+ const versions = tags.map((tag) => semver3.clean(tag)).filter((v) => v !== null);
27263
+ if (versions.length === 0) return false;
27264
+ const latest2 = semver3.rsort(versions)[0];
27265
+ const current2 = packageVersion ? semver3.clean(packageVersion) : null;
27266
+ return current2 === null || semver3.lt(current2, latest2);
27267
+ }
27268
+
27269
+ // src/commands/devlog/resolveVersionSource.ts
27270
+ function gitTags(...args) {
27271
+ return execFileSync8("git", ["tag", "--list", ...args], { encoding: "utf8" }).split("\n").map((t) => t.trim()).filter(Boolean);
27272
+ }
27273
+ function resolveVersionSource() {
27274
+ if (isPackageVersionStale(getVersionAtCommit("HEAD"), gitTags())) {
27275
+ return {
27276
+ kind: "tags",
27277
+ versionAt: (hash) => earliestSemverTag(gitTags("--contains", hash))
27278
+ };
27279
+ }
27280
+ return { kind: "package", versionAt: getVersionAtCommit };
27281
+ }
27282
+
27249
27283
  // src/commands/devlog/next/repoHasTags.ts
27250
- import { execFileSync as execFileSync8 } from "child_process";
27284
+ import { execFileSync as execFileSync9 } from "child_process";
27251
27285
  function repoHasTags() {
27252
- const output = execFileSync8("git", ["tag", "--list"], { encoding: "utf8" });
27286
+ const output = execFileSync9("git", ["tag", "--list"], { encoding: "utf8" });
27253
27287
  return output.trim().length > 0;
27254
27288
  }
27255
27289
 
27256
27290
  // src/commands/devlog/stripToMinor.ts
27257
- import semver2 from "semver";
27291
+ import semver4 from "semver";
27258
27292
  function stripToMinor(version2) {
27259
- const parsed = semver2.parse(semver2.coerce(version2));
27293
+ const parsed = semver4.parse(semver4.coerce(version2));
27260
27294
  return parsed ? `v${parsed.major}.${parsed.minor}` : `v${version2}`;
27261
27295
  }
27262
27296
 
27263
27297
  // src/commands/devlog/next/withVersions.ts
27264
- function withVersions(commits2, versionAt, hasTags) {
27265
- const raw = commits2.map((commit2) => versionAt(commit2.hash));
27298
+ function withVersions(commits2, source, hasTags) {
27299
+ const raw = commits2.map((commit2) => source.versionAt(commit2.hash));
27300
+ if (source.kind === "tags") {
27301
+ return commits2.map((commit2, i) => ({ ...commit2, version: raw[i] }));
27302
+ }
27266
27303
  const distinct = new Set(raw.filter((v) => v !== null));
27267
27304
  const unversioned = !hasTags && distinct.size <= 1;
27268
27305
  return commits2.map((commit2, i) => {
@@ -27274,17 +27311,8 @@ function withVersions(commits2, versionAt, hasTags) {
27274
27311
  });
27275
27312
  }
27276
27313
 
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
- }
27314
+ // src/commands/devlog/next/printCommits.ts
27315
+ import chalk162 from "chalk";
27288
27316
  function printCommits(commits2, ignore3, verbose) {
27289
27317
  for (const commit2 of commits2) {
27290
27318
  const version2 = commit2.version ? ` ${chalk162.cyan(commit2.version)}` : "";
@@ -27299,11 +27327,27 @@ function printCommits(commits2, ignore3, verbose) {
27299
27327
  }
27300
27328
  }
27301
27329
  }
27330
+
27331
+ // src/commands/devlog/next/displayNextEntry.ts
27332
+ function versionRange(commits2) {
27333
+ const versions = commits2.map((c) => c.version).filter((v) => v !== null);
27334
+ if (versions.length === 0) return null;
27335
+ const first = versions[0];
27336
+ const last = versions[versions.length - 1];
27337
+ return first === last ? first : `${first} \u2013 ${last}`;
27338
+ }
27339
+ function printField(label, value) {
27340
+ console.log(`${chalk163.bold(`${label}:`)} ${value}`);
27341
+ }
27302
27342
  function displayNextEntry(ctx, week, commits2) {
27303
- const versioned = withVersions(commits2, getVersionAtCommit, repoHasTags());
27343
+ const versioned = withVersions(
27344
+ commits2,
27345
+ resolveVersionSource(),
27346
+ repoHasTags()
27347
+ );
27304
27348
  const { start: start2, end } = isoWeekRange(week);
27305
27349
  printField("name", ctx.repoName);
27306
- printField("week", chalk162.bold.blue(week));
27350
+ printField("week", chalk163.bold.blue(week));
27307
27351
  printField("range", `${start2} \u2013 ${end}`);
27308
27352
  const dates = commits2.map((c) => c.date).sort();
27309
27353
  if (dates.length > 0) printField("dates", `${dates[0]} \u2013 ${dates.at(-1)}`);
@@ -27313,7 +27357,7 @@ function displayNextEntry(ctx, week, commits2) {
27313
27357
  }
27314
27358
  function logNoCommits(lastWeek) {
27315
27359
  console.log(
27316
- chalk162.dim(
27360
+ chalk163.dim(
27317
27361
  lastWeek ? `No completed weeks with commits after ${lastWeek}` : "No completed weeks with commits found"
27318
27362
  )
27319
27363
  );
@@ -27345,7 +27389,7 @@ function next2(options2) {
27345
27389
  }
27346
27390
 
27347
27391
  // src/commands/devlog/skip.ts
27348
- import chalk163 from "chalk";
27392
+ import chalk164 from "chalk";
27349
27393
  var SKIP_WEEKS_KEY = "devlog.skipWeeks";
27350
27394
  async function loadRepoSkipWeeks(cwd) {
27351
27395
  const { block } = await resolveSharedRepoBlock(await getDb(), void 0, cwd);
@@ -27354,12 +27398,12 @@ async function loadRepoSkipWeeks(cwd) {
27354
27398
  }
27355
27399
  async function skip2(week, cwd = process.cwd()) {
27356
27400
  if (!isValidWeek(week)) {
27357
- console.log(chalk163.red("Invalid week. Use YYYY-Www (e.g. 2026-W33)"));
27401
+ console.log(chalk164.red("Invalid week. Use YYYY-Www (e.g. 2026-W33)"));
27358
27402
  process.exit(1);
27359
27403
  }
27360
27404
  const existing = await loadRepoSkipWeeks(cwd);
27361
27405
  if (existing.includes(week)) {
27362
- console.log(chalk163.yellow(`${week} is already in ${SKIP_WEEKS_KEY}`));
27406
+ console.log(chalk164.yellow(`${week} is already in ${SKIP_WEEKS_KEY}`));
27363
27407
  return;
27364
27408
  }
27365
27409
  const result = await applySharedRepoConfigSet(
@@ -27369,11 +27413,11 @@ async function skip2(week, cwd = process.cwd()) {
27369
27413
  cwd
27370
27414
  );
27371
27415
  if (!result.ok) {
27372
- console.log(chalk163.red(result.errors.join("\n")));
27416
+ console.log(chalk164.red(result.errors.join("\n")));
27373
27417
  process.exit(1);
27374
27418
  }
27375
27419
  console.log(
27376
- chalk163.green(
27420
+ chalk164.green(
27377
27421
  `Added ${week} to ${SKIP_WEEKS_KEY} for repos.${result.label} (repo db)`
27378
27422
  )
27379
27423
  );
@@ -27382,7 +27426,7 @@ async function skip2(week, cwd = process.cwd()) {
27382
27426
  // src/commands/devlog/write.ts
27383
27427
  import { mkdirSync as mkdirSync20, writeFileSync as writeFileSync31 } from "fs";
27384
27428
  import { dirname as dirname32, join as join72 } from "path";
27385
- import chalk164 from "chalk";
27429
+ import chalk165 from "chalk";
27386
27430
 
27387
27431
  // src/commands/devlog/write/devEntryInputSchema.ts
27388
27432
  import { z as z19 } from "zod";
@@ -27460,7 +27504,7 @@ function parseInput(raw) {
27460
27504
  try {
27461
27505
  return JSON.parse(raw);
27462
27506
  } catch (error) {
27463
- console.error(chalk164.red(`Invalid JSON on stdin: ${String(error)}`));
27507
+ console.error(chalk165.red(`Invalid JSON on stdin: ${String(error)}`));
27464
27508
  process.exit(1);
27465
27509
  }
27466
27510
  }
@@ -27468,7 +27512,7 @@ async function write() {
27468
27512
  const result = devEntryInputSchema.safeParse(parseInput(await readStdin()));
27469
27513
  if (!result.success) {
27470
27514
  for (const issue of result.error.issues) {
27471
- console.error(chalk164.red(`${issue.path.join(".")}: ${issue.message}`));
27515
+ console.error(chalk165.red(`${issue.path.join(".")}: ${issue.message}`));
27472
27516
  }
27473
27517
  process.exit(1);
27474
27518
  }
@@ -27477,7 +27521,7 @@ async function write() {
27477
27521
  const path109 = join72(devDir, repoName, `${result.data.week.toLowerCase()}.md`);
27478
27522
  mkdirSync20(dirname32(path109), { recursive: true });
27479
27523
  writeFileSync31(path109, formatDevEntry(repoName, result.data));
27480
- console.log(chalk164.green(`Wrote ${path109}`));
27524
+ console.log(chalk165.green(`Wrote ${path109}`));
27481
27525
  }
27482
27526
 
27483
27527
  // src/commands/devlog/registerDevlogEntryCommands.ts
@@ -27526,11 +27570,11 @@ function getRepoStatus(lastPush, lastWeek, today) {
27526
27570
  }
27527
27571
 
27528
27572
  // src/commands/devlog/repos/printReposTable.ts
27529
- import chalk165 from "chalk";
27573
+ import chalk166 from "chalk";
27530
27574
  function colorStatus(status2) {
27531
- if (status2 === "missing") return chalk165.red(status2);
27532
- if (status2 === "outdated") return chalk165.yellow(status2);
27533
- return chalk165.green(status2);
27575
+ if (status2 === "missing") return chalk166.red(status2);
27576
+ if (status2 === "outdated") return chalk166.yellow(status2);
27577
+ return chalk166.green(status2);
27534
27578
  }
27535
27579
  function formatRow(row2, nameWidth) {
27536
27580
  const week = (row2.lastWeek ?? "-").padEnd(9);
@@ -27544,8 +27588,8 @@ function printReposTable(rows) {
27544
27588
  "Last Week".padEnd(9),
27545
27589
  "Status"
27546
27590
  ].join(" ");
27547
- console.log(chalk165.dim(header));
27548
- console.log(chalk165.dim("-".repeat(header.length)));
27591
+ console.log(chalk166.dim(header));
27592
+ console.log(chalk166.dim("-".repeat(header.length)));
27549
27593
  for (const row2 of rows) {
27550
27594
  console.log(formatRow(row2, nameWidth));
27551
27595
  }
@@ -27599,20 +27643,25 @@ function repos(options2) {
27599
27643
  }
27600
27644
 
27601
27645
  // src/commands/devlog/version.ts
27602
- import chalk166 from "chalk";
27646
+ import chalk167 from "chalk";
27603
27647
  function printField2(label, value) {
27604
- console.log(`${chalk166.bold(`${label}:`)} ${value ?? chalk166.dim("none")}`);
27648
+ console.log(`${chalk167.bold(`${label}:`)} ${value ?? chalk167.dim("none")}`);
27649
+ }
27650
+ function currentVersion() {
27651
+ const source = resolveVersionSource();
27652
+ const version2 = source.versionAt("HEAD");
27653
+ if (!version2) return null;
27654
+ return source.kind === "tags" ? version2 : stripToMinor(version2);
27605
27655
  }
27606
27656
  function version() {
27607
27657
  const devDir = resolveDevDir();
27608
27658
  const name = getRepoName();
27609
27659
  const lastWeek = loadDevWeeks(name, devDir).at(-1) ?? null;
27610
27660
  const entry = lastWeek ? loadDevEntry(name, lastWeek, devDir) : null;
27611
- const current2 = getVersionAtCommit("HEAD");
27612
27661
  printField2("name", name);
27613
27662
  printField2("last week", lastWeek);
27614
27663
  printField2("last version", entry?.lastVersion);
27615
- printField2("current", current2 ? stripToMinor(current2) : null);
27664
+ printField2("current", currentVersion());
27616
27665
  }
27617
27666
 
27618
27667
  // src/commands/registerDevlog.ts
@@ -27638,10 +27687,10 @@ function registerDevlog(program) {
27638
27687
 
27639
27688
  // src/commands/docs/docsConfirm.ts
27640
27689
  import { unlinkSync as unlinkSync9 } from "fs";
27641
- import chalk168 from "chalk";
27690
+ import chalk169 from "chalk";
27642
27691
 
27643
27692
  // src/commands/backlog/findPhaseUnlockItem.ts
27644
- import chalk167 from "chalk";
27693
+ import chalk168 from "chalk";
27645
27694
  async function findPhaseUnlockItem(itemId2, phase) {
27646
27695
  const found = await findOneItem(String(itemId2));
27647
27696
  if (!found) {
@@ -27651,7 +27700,7 @@ async function findPhaseUnlockItem(itemId2, phase) {
27651
27700
  const label = `${formatItemId(itemId2)} ${found.item.name}`;
27652
27701
  if ((found.item.currentPhase ?? 1) !== phase) {
27653
27702
  console.error(
27654
- chalk167.red(
27703
+ chalk168.red(
27655
27704
  `${label} has moved on from phase ${phase} since the unlock was requested. Nothing was approved; request a new unlock from the current phase.`
27656
27705
  )
27657
27706
  );
@@ -27705,7 +27754,7 @@ async function docsConfirm(pin2) {
27705
27754
  sweepRestrictedDir();
27706
27755
  const state = readDocsUnlockPinState(pin2);
27707
27756
  if (!state) {
27708
- console.error(chalk168.red(`No pending docs unlock for pin: ${pin2}`));
27757
+ console.error(chalk169.red(`No pending docs unlock for pin: ${pin2}`));
27709
27758
  process.exitCode = 1;
27710
27759
  return;
27711
27760
  }
@@ -27714,14 +27763,14 @@ async function docsConfirm(pin2) {
27714
27763
  if (!found) return;
27715
27764
  await recordDocsUnlock(found.orm, state.itemId, state.phase);
27716
27765
  console.log(
27717
- chalk168.green(
27766
+ chalk169.green(
27718
27767
  `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
27768
  )
27720
27769
  );
27721
27770
  }
27722
27771
 
27723
27772
  // src/commands/docs/docsUnlock.ts
27724
- import chalk169 from "chalk";
27773
+ import chalk170 from "chalk";
27725
27774
 
27726
27775
  // src/commands/notify/issueUnlockPin.ts
27727
27776
  import { randomInt as randomInt2 } from "crypto";
@@ -27749,7 +27798,7 @@ async function issueUnlockPin({
27749
27798
 
27750
27799
  // src/commands/docs/docsUnlock.ts
27751
27800
  function fail7(message3) {
27752
- console.error(chalk169.red(message3));
27801
+ console.error(chalk170.red(message3));
27753
27802
  process.exitCode = 1;
27754
27803
  }
27755
27804
  async function docsUnlock() {
@@ -27782,7 +27831,7 @@ async function docsUnlock() {
27782
27831
  console.log(
27783
27832
  `A confirmation pin was sent to the user's desktop notifications${node ? ` on ${node}, the node controlling this session` : ""}.
27784
27833
  To let this phase of ${label} edit docs pages and screenshots, the user runs in this session:
27785
- ${chalk169.cyan(" assist docs confirm <PIN>")}
27834
+ ${chalk170.cyan(" assist docs confirm <PIN>")}
27786
27835
  Wait for the user to confirm before editing docs.`
27787
27836
  );
27788
27837
  }
@@ -27809,7 +27858,7 @@ function registerDocs(parent) {
27809
27858
 
27810
27859
  // src/commands/schema/schemaConfirm.ts
27811
27860
  import { mkdirSync as mkdirSync22, unlinkSync as unlinkSync11, writeFileSync as writeFileSync33 } from "fs";
27812
- import chalk170 from "chalk";
27861
+ import chalk171 from "chalk";
27813
27862
 
27814
27863
  // src/commands/schema/getSchemaUnlockPinPath.ts
27815
27864
  import { join as join74 } from "path";
@@ -27852,7 +27901,7 @@ async function approveItemPhase(itemId2, phase) {
27852
27901
  title: `Database schema files unlocked by PIN for phase ${phase}`
27853
27902
  });
27854
27903
  console.log(
27855
- chalk170.green(
27904
+ chalk171.green(
27856
27905
  `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
27906
  )
27858
27907
  );
@@ -27863,7 +27912,7 @@ function approveClaudeSession(claudeSessionId) {
27863
27912
  mkdirSync22(getSchemaSessionApprovalDir(), { recursive: true });
27864
27913
  writeFileSync33(path109, JSON.stringify({ claudeSessionId }));
27865
27914
  console.log(
27866
- chalk170.green(
27915
+ chalk171.green(
27867
27916
  `Approved schema changes for Claude session ${claudeSessionId}. It may edit and commit database schema files until the session ends.`
27868
27917
  )
27869
27918
  );
@@ -27872,7 +27921,7 @@ async function schemaConfirm(pin2) {
27872
27921
  sweepRestrictedDir();
27873
27922
  const state = readSchemaUnlockPinState(pin2);
27874
27923
  if (!state) {
27875
- console.error(chalk170.red(`No pending schema unlock for pin: ${pin2}`));
27924
+ console.error(chalk171.red(`No pending schema unlock for pin: ${pin2}`));
27876
27925
  process.exitCode = 1;
27877
27926
  return;
27878
27927
  }
@@ -27882,9 +27931,9 @@ async function schemaConfirm(pin2) {
27882
27931
  }
27883
27932
 
27884
27933
  // src/commands/schema/schemaUnlock.ts
27885
- import chalk171 from "chalk";
27934
+ import chalk172 from "chalk";
27886
27935
  function fail8(message3) {
27887
- console.error(chalk171.red(message3));
27936
+ console.error(chalk172.red(message3));
27888
27937
  process.exitCode = 1;
27889
27938
  }
27890
27939
  async function itemScope(itemId2) {
@@ -27930,7 +27979,7 @@ async function schemaUnlock() {
27930
27979
  console.log(
27931
27980
  `A confirmation pin was sent to the user's desktop notifications${node ? ` on ${node}, the node controlling this session` : ""}.
27932
27981
  To let ${scope.scope} change database schema files, the user runs in this session:
27933
- ${chalk171.cyan(" assist schema confirm <PIN>")}
27982
+ ${chalk172.cyan(" assist schema confirm <PIN>")}
27934
27983
  Wait for the user to confirm before changing the schema.`
27935
27984
  );
27936
27985
  }
@@ -27958,7 +28007,7 @@ function registerSchema(parent) {
27958
28007
  // src/commands/dotnet/checkBuildLocks.ts
27959
28008
  import { closeSync as closeSync5, openSync as openSync6, readdirSync as readdirSync12 } from "fs";
27960
28009
  import { join as join75 } from "path";
27961
- import chalk172 from "chalk";
28010
+ import chalk173 from "chalk";
27962
28011
  var SKIP_DIRS = /* @__PURE__ */ new Set(["node_modules", ".git", "packages"]);
27963
28012
  function isLockedDll(debugDir) {
27964
28013
  let files;
@@ -28005,14 +28054,14 @@ function checkBuildLocks(startDir) {
28005
28054
  const locked = findFirstLockedDll(startDir ?? getSearchRoot());
28006
28055
  if (locked) {
28007
28056
  console.error(
28008
- chalk172.red("Build output locked (is VS debugging?): ") + locked
28057
+ chalk173.red("Build output locked (is VS debugging?): ") + locked
28009
28058
  );
28010
28059
  process.exit(1);
28011
28060
  }
28012
28061
  }
28013
28062
  async function checkBuildLocksCommand() {
28014
28063
  checkBuildLocks();
28015
- console.log(chalk172.green("No build locks detected"));
28064
+ console.log(chalk173.green("No build locks detected"));
28016
28065
  }
28017
28066
 
28018
28067
  // src/commands/dotnet/buildTree.ts
@@ -28111,30 +28160,30 @@ function escapeRegex(s) {
28111
28160
  }
28112
28161
 
28113
28162
  // src/commands/dotnet/printTree.ts
28114
- import chalk173 from "chalk";
28163
+ import chalk174 from "chalk";
28115
28164
  function printNodes(nodes, prefix2) {
28116
28165
  for (let i = 0; i < nodes.length; i++) {
28117
28166
  const isLast = i === nodes.length - 1;
28118
28167
  const connector = isLast ? "\u2514\u2500\u2500 " : "\u251C\u2500\u2500 ";
28119
28168
  const childPrefix = isLast ? " " : "\u2502 ";
28120
28169
  const isMissing = nodes[i].relativePath.startsWith("[MISSING]");
28121
- const label = isMissing ? chalk173.red(nodes[i].relativePath) : nodes[i].relativePath;
28170
+ const label = isMissing ? chalk174.red(nodes[i].relativePath) : nodes[i].relativePath;
28122
28171
  console.log(`${prefix2}${connector}${label}`);
28123
28172
  printNodes(nodes[i].children, prefix2 + childPrefix);
28124
28173
  }
28125
28174
  }
28126
28175
  function printTree(tree, totalCount, solutions) {
28127
- console.log(chalk173.bold("\nProject Dependency Tree"));
28128
- console.log(chalk173.cyan(tree.relativePath));
28176
+ console.log(chalk174.bold("\nProject Dependency Tree"));
28177
+ console.log(chalk174.cyan(tree.relativePath));
28129
28178
  printNodes(tree.children, "");
28130
- console.log(chalk173.dim(`
28179
+ console.log(chalk174.dim(`
28131
28180
  ${totalCount} projects total (including root)`));
28132
- console.log(chalk173.bold("\nSolution Membership"));
28181
+ console.log(chalk174.bold("\nSolution Membership"));
28133
28182
  if (solutions.length === 0) {
28134
- console.log(chalk173.yellow(" Not found in any .sln"));
28183
+ console.log(chalk174.yellow(" Not found in any .sln"));
28135
28184
  } else {
28136
28185
  for (const sln of solutions) {
28137
- console.log(` ${chalk173.green(sln)}`);
28186
+ console.log(` ${chalk174.green(sln)}`);
28138
28187
  }
28139
28188
  }
28140
28189
  console.log();
@@ -28163,16 +28212,16 @@ function printJson(tree, totalCount, solutions) {
28163
28212
  // src/commands/dotnet/resolveCsproj.ts
28164
28213
  import { existsSync as existsSync61 } from "fs";
28165
28214
  import path38 from "path";
28166
- import chalk174 from "chalk";
28215
+ import chalk175 from "chalk";
28167
28216
  function resolveCsproj(csprojPath) {
28168
28217
  const resolved = path38.resolve(csprojPath);
28169
28218
  if (!existsSync61(resolved)) {
28170
- console.error(chalk174.red(`File not found: ${resolved}`));
28219
+ console.error(chalk175.red(`File not found: ${resolved}`));
28171
28220
  process.exit(1);
28172
28221
  }
28173
28222
  const repoRoot2 = findRepoRoot(path38.dirname(resolved));
28174
28223
  if (!repoRoot2) {
28175
- console.error(chalk174.red("Could not find git repository root"));
28224
+ console.error(chalk175.red("Could not find git repository root"));
28176
28225
  process.exit(1);
28177
28226
  }
28178
28227
  return { resolved, repoRoot: repoRoot2 };
@@ -28222,12 +28271,12 @@ function getChangedCsFiles(scope) {
28222
28271
  }
28223
28272
 
28224
28273
  // src/commands/dotnet/inSln.ts
28225
- import chalk175 from "chalk";
28274
+ import chalk176 from "chalk";
28226
28275
  async function inSln(csprojPath) {
28227
28276
  const { resolved, repoRoot: repoRoot2 } = resolveCsproj(csprojPath);
28228
28277
  const solutions = findContainingSolutions(resolved, repoRoot2);
28229
28278
  if (solutions.length === 0) {
28230
- console.log(chalk175.yellow("Not found in any .sln file"));
28279
+ console.log(chalk176.yellow("Not found in any .sln file"));
28231
28280
  process.exit(1);
28232
28281
  }
28233
28282
  for (const sln of solutions) {
@@ -28236,7 +28285,7 @@ async function inSln(csprojPath) {
28236
28285
  }
28237
28286
 
28238
28287
  // src/commands/dotnet/inspect.ts
28239
- import chalk181 from "chalk";
28288
+ import chalk182 from "chalk";
28240
28289
 
28241
28290
  // src/shared/formatElapsed.ts
28242
28291
  function formatElapsed(ms) {
@@ -28248,12 +28297,12 @@ function formatElapsed(ms) {
28248
28297
  }
28249
28298
 
28250
28299
  // src/commands/dotnet/displayIssues.ts
28251
- import chalk176 from "chalk";
28300
+ import chalk177 from "chalk";
28252
28301
  var SEVERITY_COLOR = {
28253
- ERROR: chalk176.red,
28254
- WARNING: chalk176.yellow,
28255
- SUGGESTION: chalk176.cyan,
28256
- HINT: chalk176.dim
28302
+ ERROR: chalk177.red,
28303
+ WARNING: chalk177.yellow,
28304
+ SUGGESTION: chalk177.cyan,
28305
+ HINT: chalk177.dim
28257
28306
  };
28258
28307
  function groupByFile(issues) {
28259
28308
  const byFile = /* @__PURE__ */ new Map();
@@ -28269,15 +28318,15 @@ function groupByFile(issues) {
28269
28318
  }
28270
28319
  function displayIssues(issues) {
28271
28320
  for (const [file, fileIssues] of groupByFile(issues)) {
28272
- console.log(chalk176.bold(file));
28321
+ console.log(chalk177.bold(file));
28273
28322
  for (const issue of fileIssues.sort((a, b) => a.line - b.line)) {
28274
- const color = SEVERITY_COLOR[issue.severity] ?? chalk176.white;
28323
+ const color = SEVERITY_COLOR[issue.severity] ?? chalk177.white;
28275
28324
  console.log(
28276
- ` ${chalk176.dim(`${issue.line}:`)} ${color(issue.severity)} [${issue.typeId}] ${issue.message}`
28325
+ ` ${chalk177.dim(`${issue.line}:`)} ${color(issue.severity)} [${issue.typeId}] ${issue.message}`
28277
28326
  );
28278
28327
  }
28279
28328
  }
28280
- console.log(chalk176.dim(`
28329
+ console.log(chalk177.dim(`
28281
28330
  ${issues.length} issue(s) found`));
28282
28331
  }
28283
28332
 
@@ -28336,12 +28385,12 @@ function filterIssues(issues, all, cliOnly, cliSuppress) {
28336
28385
  // src/commands/dotnet/resolveSolution.ts
28337
28386
  import { existsSync as existsSync62 } from "fs";
28338
28387
  import path39 from "path";
28339
- import chalk178 from "chalk";
28388
+ import chalk179 from "chalk";
28340
28389
 
28341
28390
  // src/commands/dotnet/findSolution.ts
28342
28391
  import { readdirSync as readdirSync14 } from "fs";
28343
28392
  import { dirname as dirname33, join as join76 } from "path";
28344
- import chalk177 from "chalk";
28393
+ import chalk178 from "chalk";
28345
28394
  function findSlnInDir(dir) {
28346
28395
  try {
28347
28396
  return readdirSync14(dir).filter((f) => f.endsWith(".sln")).map((f) => join76(dir, f));
@@ -28357,17 +28406,17 @@ function findSolution() {
28357
28406
  const slnFiles = findSlnInDir(current2);
28358
28407
  if (slnFiles.length === 1) return slnFiles[0];
28359
28408
  if (slnFiles.length > 1) {
28360
- console.error(chalk177.red(`Multiple .sln files found in ${current2}:`));
28409
+ console.error(chalk178.red(`Multiple .sln files found in ${current2}:`));
28361
28410
  for (const f of slnFiles) console.error(` ${f}`);
28362
28411
  console.error(
28363
- chalk177.yellow("Specify which one: assist dotnet inspect <sln>")
28412
+ chalk178.yellow("Specify which one: assist dotnet inspect <sln>")
28364
28413
  );
28365
28414
  process.exit(1);
28366
28415
  }
28367
28416
  if (current2 === ceiling) break;
28368
28417
  current2 = dirname33(current2);
28369
28418
  }
28370
- console.error(chalk177.red("No .sln file found between cwd and repo root"));
28419
+ console.error(chalk178.red("No .sln file found between cwd and repo root"));
28371
28420
  process.exit(1);
28372
28421
  }
28373
28422
 
@@ -28376,7 +28425,7 @@ function resolveSolution(sln) {
28376
28425
  if (sln) {
28377
28426
  const resolved = path39.resolve(sln);
28378
28427
  if (!existsSync62(resolved)) {
28379
- console.error(chalk178.red(`Solution file not found: ${resolved}`));
28428
+ console.error(chalk179.red(`Solution file not found: ${resolved}`));
28380
28429
  process.exit(1);
28381
28430
  }
28382
28431
  return resolved;
@@ -28418,14 +28467,14 @@ import { execSync as execSync40 } from "child_process";
28418
28467
  import { existsSync as existsSync63, readFileSync as readFileSync45, unlinkSync as unlinkSync12 } from "fs";
28419
28468
  import { tmpdir as tmpdir4 } from "os";
28420
28469
  import path40 from "path";
28421
- import chalk179 from "chalk";
28470
+ import chalk180 from "chalk";
28422
28471
  function assertJbInstalled() {
28423
28472
  try {
28424
28473
  execSync40("jb inspectcode --version", { stdio: "pipe" });
28425
28474
  } catch {
28426
- console.error(chalk179.red("jb is not installed. Install with:"));
28475
+ console.error(chalk180.red("jb is not installed. Install with:"));
28427
28476
  console.error(
28428
- chalk179.yellow(" dotnet tool install -g JetBrains.ReSharper.GlobalTools")
28477
+ chalk180.yellow(" dotnet tool install -g JetBrains.ReSharper.GlobalTools")
28429
28478
  );
28430
28479
  process.exit(1);
28431
28480
  }
@@ -28443,11 +28492,11 @@ function runInspectCode(slnPath, include, swea) {
28443
28492
  if (error && typeof error === "object" && "stderr" in error) {
28444
28493
  process.stderr.write(error.stderr);
28445
28494
  }
28446
- console.error(chalk179.red("jb inspectcode failed"));
28495
+ console.error(chalk180.red("jb inspectcode failed"));
28447
28496
  process.exit(1);
28448
28497
  }
28449
28498
  if (!existsSync63(reportPath)) {
28450
- console.error(chalk179.red("Report file not generated"));
28499
+ console.error(chalk180.red("Report file not generated"));
28451
28500
  process.exit(1);
28452
28501
  }
28453
28502
  const xml = readFileSync45(reportPath, "utf8");
@@ -28457,7 +28506,7 @@ function runInspectCode(slnPath, include, swea) {
28457
28506
 
28458
28507
  // src/commands/dotnet/runRoslynInspect.ts
28459
28508
  import { execSync as execSync41 } from "child_process";
28460
- import chalk180 from "chalk";
28509
+ import chalk181 from "chalk";
28461
28510
  function resolveMsbuildPath() {
28462
28511
  const { run: run4 } = loadConfig();
28463
28512
  const configs = resolveRunConfigs(run4, runConfigBaseDir());
@@ -28469,9 +28518,9 @@ function assertMsbuildInstalled() {
28469
28518
  try {
28470
28519
  execSync41(`"${msbuild}" -version`, { stdio: "pipe" });
28471
28520
  } catch {
28472
- console.error(chalk180.red(`msbuild not found at: ${msbuild}`));
28521
+ console.error(chalk181.red(`msbuild not found at: ${msbuild}`));
28473
28522
  console.error(
28474
- chalk180.yellow(
28523
+ chalk181.yellow(
28475
28524
  "Configure it via a 'build' run entry in .claude/assist.yml or add msbuild to PATH."
28476
28525
  )
28477
28526
  );
@@ -28518,17 +28567,17 @@ function runEngine(resolved, changedFiles2, options2) {
28518
28567
  // src/commands/dotnet/inspect.ts
28519
28568
  function logScope(changedFiles2) {
28520
28569
  if (changedFiles2 === null) {
28521
- console.log(chalk181.dim("Inspecting full solution..."));
28570
+ console.log(chalk182.dim("Inspecting full solution..."));
28522
28571
  } else {
28523
28572
  console.log(
28524
- chalk181.dim(`Inspecting ${changedFiles2.length} changed file(s)...`)
28573
+ chalk182.dim(`Inspecting ${changedFiles2.length} changed file(s)...`)
28525
28574
  );
28526
28575
  }
28527
28576
  }
28528
28577
  function reportResults(issues, elapsed) {
28529
28578
  if (issues.length > 0) displayIssues(issues);
28530
- else console.log(chalk181.green("No issues found"));
28531
- console.log(chalk181.dim(`Completed in ${formatElapsed(elapsed)}`));
28579
+ else console.log(chalk182.green("No issues found"));
28580
+ console.log(chalk182.dim(`Completed in ${formatElapsed(elapsed)}`));
28532
28581
  if (issues.length > 0) process.exit(1);
28533
28582
  }
28534
28583
  async function inspect(sln, options2) {
@@ -28539,7 +28588,7 @@ async function inspect(sln, options2) {
28539
28588
  const scope = parseScope(options2.scope);
28540
28589
  const changedFiles2 = getChangedCsFiles(scope);
28541
28590
  if (changedFiles2 !== null && changedFiles2.length === 0) {
28542
- console.log(chalk181.green("No changed .cs files found"));
28591
+ console.log(chalk182.green("No changed .cs files found"));
28543
28592
  return;
28544
28593
  }
28545
28594
  logScope(changedFiles2);
@@ -29438,25 +29487,25 @@ function fetchRepoCommitAuthors(org, repo, since) {
29438
29487
  }
29439
29488
 
29440
29489
  // src/commands/github/printCountTable.ts
29441
- import chalk182 from "chalk";
29490
+ import chalk183 from "chalk";
29442
29491
  function printCountTable(labelHeader, rows) {
29443
29492
  const labelWidth = Math.max(
29444
29493
  labelHeader.length,
29445
29494
  ...rows.map((row2) => row2.label.length)
29446
29495
  );
29447
29496
  const header = `${labelHeader.padEnd(labelWidth)} Commits`;
29448
- console.log(chalk182.dim(header));
29449
- console.log(chalk182.dim("-".repeat(header.length)));
29497
+ console.log(chalk183.dim(header));
29498
+ console.log(chalk183.dim("-".repeat(header.length)));
29450
29499
  for (const row2 of rows) {
29451
29500
  console.log(`${row2.label.padEnd(labelWidth)} ${row2.count}`);
29452
29501
  }
29453
29502
  }
29454
29503
 
29455
29504
  // src/commands/github/printRepoAuthorBreakdown.ts
29456
- import chalk183 from "chalk";
29505
+ import chalk184 from "chalk";
29457
29506
  function printRepoAuthorBreakdown(repos2) {
29458
29507
  for (const repo of repos2) {
29459
- console.log(chalk183.bold(repo.name));
29508
+ console.log(chalk184.bold(repo.name));
29460
29509
  const authorWidth = Math.max(
29461
29510
  0,
29462
29511
  ...repo.authors.map((a) => a.author.length)
@@ -29530,10 +29579,10 @@ function parseSinceDate(value) {
29530
29579
  }
29531
29580
 
29532
29581
  // src/commands/github/issue/fixStructure/applyAndVerifySubtree.ts
29533
- import chalk185 from "chalk";
29582
+ import chalk186 from "chalk";
29534
29583
 
29535
29584
  // src/commands/github/issue/fixStructure/applyFixStructurePlan.ts
29536
- import chalk184 from "chalk";
29585
+ import chalk185 from "chalk";
29537
29586
 
29538
29587
  // src/commands/github/issue/fixStructure/removeIssueLabels.ts
29539
29588
  var MUTATION2 = `mutation($labelableId: ID!, $labelIds: [ID!]!) {
@@ -29570,7 +29619,7 @@ function writeLineNow(line) {
29570
29619
  // src/commands/github/issue/fixStructure/applyFixStructurePlan.ts
29571
29620
  function applyFixStructurePlan(plan2) {
29572
29621
  for (const entry of plan2.entries) {
29573
- const where = chalk184.cyan(`${entry.issue.repo}#${entry.issue.number}`);
29622
+ const where = chalk185.cyan(`${entry.issue.repo}#${entry.issue.number}`);
29574
29623
  const { typeChange, labelRemovals } = entry;
29575
29624
  if (typeChange) {
29576
29625
  writeLineNow(
@@ -29840,12 +29889,12 @@ function planSubtree(root2, context) {
29840
29889
  function applyAndVerifySubtree(target, plan2, context) {
29841
29890
  if (plan2.typeChangeCount === 0 && plan2.labelRemovalCount === 0) return;
29842
29891
  applyFixStructurePlan(plan2);
29843
- writeLineNow(chalk185.dim("Re-walking the subtree to confirm"));
29892
+ writeLineNow(chalk186.dim("Re-walking the subtree to confirm"));
29844
29893
  assertNoResidualDrift(
29845
29894
  planSubtree(fetchRootIssue(target), context),
29846
29895
  context.chain
29847
29896
  );
29848
- writeLineNow(chalk185.green("Subtree normalised"));
29897
+ writeLineNow(chalk186.green("Subtree normalised"));
29849
29898
  }
29850
29899
 
29851
29900
  // src/commands/github/issue/fixStructure/assertChainTypesExist.ts
@@ -29881,22 +29930,22 @@ function parseTypeChain(value) {
29881
29930
  }
29882
29931
 
29883
29932
  // src/commands/github/issue/fixStructure/printFixStructurePlan.ts
29884
- import chalk186 from "chalk";
29933
+ import chalk187 from "chalk";
29885
29934
  function annotate(entry) {
29886
29935
  const notes = [];
29887
29936
  if (entry.level === null) {
29888
- notes.push(chalk186.red("deeper than the leaf level"));
29937
+ notes.push(chalk187.red("deeper than the leaf level"));
29889
29938
  } else if (entry.typeChange) {
29890
29939
  notes.push(
29891
- chalk186.yellow(
29940
+ chalk187.yellow(
29892
29941
  `${entry.typeChange.from ?? "no type"} -> ${entry.typeChange.to}`
29893
29942
  )
29894
29943
  );
29895
29944
  } else {
29896
- notes.push(chalk186.dim(entry.issue.typeName ?? "no type"));
29945
+ notes.push(chalk187.dim(entry.issue.typeName ?? "no type"));
29897
29946
  }
29898
29947
  for (const label of entry.labelRemovals) {
29899
- notes.push(chalk186.yellow(`-${label.name}`));
29948
+ notes.push(chalk187.yellow(`-${label.name}`));
29900
29949
  }
29901
29950
  return notes;
29902
29951
  }
@@ -29904,22 +29953,22 @@ function formatCount(count10, noun) {
29904
29953
  return `${count10} ${noun}${count10 === 1 ? "" : "s"}`;
29905
29954
  }
29906
29955
  function printFixStructurePlan(plan2, chain2, apply) {
29907
- writeLineNow(chalk186.dim(`chain: ${chain2.join(" > ")}`));
29956
+ writeLineNow(chalk187.dim(`chain: ${chain2.join(" > ")}`));
29908
29957
  for (const entry of plan2.entries) {
29909
29958
  const indent4 = " ".repeat(entry.issue.depth);
29910
- const name = chalk186.cyan(`${entry.issue.repo}#${entry.issue.number}`);
29959
+ const name = chalk187.cyan(`${entry.issue.repo}#${entry.issue.number}`);
29911
29960
  writeLineNow(
29912
29961
  `${indent4}${name} ${entry.issue.title} [${annotate(entry).join(", ")}]`
29913
29962
  );
29914
29963
  }
29915
29964
  if (plan2.typeChangeCount === 0 && plan2.labelRemovalCount === 0) {
29916
- writeLineNow(chalk186.green("Nothing to change"));
29965
+ writeLineNow(chalk187.green("Nothing to change"));
29917
29966
  return;
29918
29967
  }
29919
29968
  writeLineNow(
29920
29969
  `${formatCount(plan2.typeChangeCount, "type change")}, ${formatCount(plan2.labelRemovalCount, "label removal")} planned`
29921
29970
  );
29922
- if (!apply) writeLineNow(chalk186.dim("Dry run \u2014 nothing written"));
29971
+ if (!apply) writeLineNow(chalk187.dim("Dry run \u2014 nothing written"));
29923
29972
  }
29924
29973
 
29925
29974
  // src/commands/github/issue/parseRepoSlug.ts
@@ -30077,7 +30126,7 @@ Anything nested below the leaf level fails the run before a single write, naming
30077
30126
  }
30078
30127
 
30079
30128
  // src/commands/github/issue/commentIssue.ts
30080
- import { execFileSync as execFileSync9 } from "child_process";
30129
+ import { execFileSync as execFileSync10 } from "child_process";
30081
30130
 
30082
30131
  // src/shared/validateProposedContent.ts
30083
30132
  function validateProposedContent(labels, title, body) {
@@ -30138,7 +30187,7 @@ async function commentIssue(numberArg, options2) {
30138
30187
  const args = ["issue", "comment", String(number), "--body", body];
30139
30188
  if (options2.repo) args.push("--repo", options2.repo);
30140
30189
  try {
30141
- execFileSync9("gh", args, { stdio: "inherit" });
30190
+ execFileSync10("gh", args, { stdio: "inherit" });
30142
30191
  } catch {
30143
30192
  process.exit(1);
30144
30193
  }
@@ -30639,7 +30688,7 @@ function attachArgs(attachments) {
30639
30688
  }
30640
30689
 
30641
30690
  // src/commands/prs/runGhWithAttachments.ts
30642
- import { execFileSync as execFileSync10 } from "child_process";
30691
+ import { execFileSync as execFileSync11 } from "child_process";
30643
30692
  import { basename as basename18 } from "path";
30644
30693
 
30645
30694
  // src/shared/removeStagedAttachments.ts
@@ -30667,7 +30716,7 @@ function reportPartialFailure(attachments, stderr) {
30667
30716
  function runGhWithAttachments(args, attachments) {
30668
30717
  const attaching = attachments.length > 0;
30669
30718
  try {
30670
- const stdout = execFileSync10("gh", args, {
30719
+ const stdout = execFileSync11("gh", args, {
30671
30720
  encoding: "utf8",
30672
30721
  stdio: ["inherit", "pipe", attaching ? "pipe" : "inherit"]
30673
30722
  });
@@ -30778,7 +30827,7 @@ The project scope is needed for --project: gh auth refresh -h github.com -s proj
30778
30827
  }
30779
30828
 
30780
30829
  // src/commands/github/issue/fetchIssue.ts
30781
- import { execFileSync as execFileSync11 } from "child_process";
30830
+ import { execFileSync as execFileSync12 } from "child_process";
30782
30831
  function fetchIssue2(number, repo) {
30783
30832
  const args = [
30784
30833
  "issue",
@@ -30790,7 +30839,7 @@ function fetchIssue2(number, repo) {
30790
30839
  if (repo) args.push("--repo", repo);
30791
30840
  let raw;
30792
30841
  try {
30793
- raw = execFileSync11("gh", args, { encoding: "utf8" });
30842
+ raw = execFileSync12("gh", args, { encoding: "utf8" });
30794
30843
  } catch {
30795
30844
  console.error(`Could not fetch issue #${number} with gh issue view`);
30796
30845
  process.exit(1);
@@ -30900,12 +30949,12 @@ function prepareIssueEdit(number, repo, fresh, proposed) {
30900
30949
  }
30901
30950
 
30902
30951
  // src/commands/github/issue/pushIssueBody.ts
30903
- import { execFileSync as execFileSync12 } from "child_process";
30952
+ import { execFileSync as execFileSync13 } from "child_process";
30904
30953
  function pushIssueBody(number, repo, bodyPath) {
30905
30954
  const args = ["issue", "edit", String(number), "--body-file", bodyPath];
30906
30955
  if (repo) args.push("--repo", repo);
30907
30956
  try {
30908
- execFileSync12("gh", args, { stdio: "inherit" });
30957
+ execFileSync13("gh", args, { stdio: "inherit" });
30909
30958
  } catch {
30910
30959
  process.exit(1);
30911
30960
  }
@@ -30984,12 +31033,12 @@ function setIssueParent(number, repo, parentArg) {
30984
31033
  }
30985
31034
 
30986
31035
  // src/commands/github/issue/viewIssue.ts
30987
- import { execFileSync as execFileSync13 } from "child_process";
31036
+ import { execFileSync as execFileSync14 } from "child_process";
30988
31037
  function viewIssue(number, repo) {
30989
31038
  const args = ["issue", "view", String(number)];
30990
31039
  if (repo) args.push("--repo", repo);
30991
31040
  try {
30992
- execFileSync13("gh", args, { stdio: "inherit" });
31041
+ execFileSync14("gh", args, { stdio: "inherit" });
30993
31042
  } catch {
30994
31043
  process.exit(1);
30995
31044
  }
@@ -31043,7 +31092,7 @@ function registerEditIssue(issueCommand) {
31043
31092
  }
31044
31093
 
31045
31094
  // src/commands/github/issue/editIssueComment.ts
31046
- import { execFileSync as execFileSync14 } from "child_process";
31095
+ import { execFileSync as execFileSync15 } from "child_process";
31047
31096
  var USAGE4 = "Usage: assist github issue edit-comment <comment-id> --body <body> [-R <owner>/<repo>]";
31048
31097
  async function editIssueComment(commentIdArg, options2) {
31049
31098
  const commentId = Number.parseInt(commentIdArg, 10);
@@ -31070,7 +31119,7 @@ async function editIssueComment(commentIdArg, options2) {
31070
31119
  ];
31071
31120
  let raw;
31072
31121
  try {
31073
- raw = execFileSync14("gh", args, {
31122
+ raw = execFileSync15("gh", args, {
31074
31123
  input: JSON.stringify({ body }),
31075
31124
  encoding: "utf8"
31076
31125
  });
@@ -31315,25 +31364,25 @@ function registerGithub(program) {
31315
31364
  }
31316
31365
 
31317
31366
  // src/commands/inbox/list.ts
31318
- import chalk187 from "chalk";
31367
+ import chalk188 from "chalk";
31319
31368
  async function list3() {
31320
31369
  const messages = await listInboxMessages(await getDb());
31321
31370
  if (messages.length === 0) {
31322
- console.log(chalk187.dim("No flagged messages; run assist inbox scan"));
31371
+ console.log(chalk188.dim("No flagged messages; run assist inbox scan"));
31323
31372
  return;
31324
31373
  }
31325
31374
  for (const message3 of messages) {
31326
31375
  const when = (message3.receivedAt ?? message3.flaggedAt).toISOString();
31327
31376
  console.log(
31328
- `${chalk187.dim(when)} ${chalk187.cyan(message3.source)} ${chalk187.bold(message3.sender)}`
31377
+ `${chalk188.dim(when)} ${chalk188.cyan(message3.source)} ${chalk188.bold(message3.sender)}`
31329
31378
  );
31330
31379
  console.log(` ${message3.summary}`);
31331
- console.log(` ${chalk187.dim(message3.link)}`);
31380
+ console.log(` ${chalk188.dim(message3.link)}`);
31332
31381
  }
31333
31382
  }
31334
31383
 
31335
31384
  // src/commands/inbox/scan.ts
31336
- import chalk188 from "chalk";
31385
+ import chalk189 from "chalk";
31337
31386
 
31338
31387
  // src/shared/formatTokens.ts
31339
31388
  function formatTokens(n) {
@@ -31611,7 +31660,7 @@ async function scan() {
31611
31660
  )
31612
31661
  });
31613
31662
  console.log(
31614
- `Flagged ${flagged} message(s) needing a reply, ${chalk188.bold(added)} new. ${chalk188.dim(formatScanUsage(usage))}`
31663
+ `Flagged ${flagged} message(s) needing a reply, ${chalk189.bold(added)} new. ${chalk189.dim(formatScanUsage(usage))}`
31615
31664
  );
31616
31665
  }
31617
31666
 
@@ -31626,7 +31675,7 @@ function registerInbox(program) {
31626
31675
  }
31627
31676
 
31628
31677
  // src/commands/jira/acceptanceCriteria.ts
31629
- import chalk189 from "chalk";
31678
+ import chalk190 from "chalk";
31630
31679
 
31631
31680
  // src/commands/jira/adfToText.ts
31632
31681
  function renderInline(node) {
@@ -31693,7 +31742,7 @@ function acceptanceCriteria(issueKey) {
31693
31742
  const parsed = fetchIssue(issueKey, field);
31694
31743
  const acValue = parsed?.fields?.[field];
31695
31744
  if (!acValue) {
31696
- console.log(chalk189.yellow(`No acceptance criteria found on ${issueKey}.`));
31745
+ console.log(chalk190.yellow(`No acceptance criteria found on ${issueKey}.`));
31697
31746
  return;
31698
31747
  }
31699
31748
  if (typeof acValue === "string") {
@@ -31759,14 +31808,14 @@ async function jiraAuth() {
31759
31808
  }
31760
31809
 
31761
31810
  // src/commands/jira/viewIssue.ts
31762
- import chalk190 from "chalk";
31811
+ import chalk191 from "chalk";
31763
31812
  function viewIssue2(issueKey) {
31764
31813
  const parsed = fetchIssue(issueKey, "summary,description");
31765
31814
  const fields = parsed?.fields;
31766
31815
  const summary = fields?.summary;
31767
31816
  const description = fields?.description;
31768
31817
  if (summary) {
31769
- console.log(chalk190.bold(summary));
31818
+ console.log(chalk191.bold(summary));
31770
31819
  }
31771
31820
  if (description) {
31772
31821
  if (summary) console.log();
@@ -31780,7 +31829,7 @@ function viewIssue2(issueKey) {
31780
31829
  }
31781
31830
  if (!summary && !description) {
31782
31831
  console.log(
31783
- chalk190.yellow(`No summary or description found on ${issueKey}.`)
31832
+ chalk191.yellow(`No summary or description found on ${issueKey}.`)
31784
31833
  );
31785
31834
  }
31786
31835
  }
@@ -31814,7 +31863,7 @@ function registerRefineLaunch(program, resumeFlag) {
31814
31863
  import { randomUUID as randomUUID17 } from "crypto";
31815
31864
 
31816
31865
  // src/commands/review/checkoutPr.ts
31817
- import { execFileSync as execFileSync17 } from "child_process";
31866
+ import { execFileSync as execFileSync18 } from "child_process";
31818
31867
 
31819
31868
  // src/commands/review/clearStalePrBranch.ts
31820
31869
  var tipSetFromRemote = /^branch: (Created from|Reset to)|^fetch\b|: Fast-forward$/;
@@ -32464,13 +32513,13 @@ function prCliCommands(number, cwd) {
32464
32513
  }
32465
32514
 
32466
32515
  // src/commands/review/prHeadBranch.ts
32467
- import { execFileSync as execFileSync15 } from "child_process";
32516
+ import { execFileSync as execFileSync16 } from "child_process";
32468
32517
  function prHeadBranch({
32469
32518
  headBranch
32470
32519
  }) {
32471
32520
  try {
32472
32521
  return headBranch.parse(
32473
- execFileSync15(headBranch.file, headBranch.args, {
32522
+ execFileSync16(headBranch.file, headBranch.args, {
32474
32523
  encoding: "utf8",
32475
32524
  stdio: ["ignore", "pipe", "pipe"]
32476
32525
  })
@@ -32538,10 +32587,10 @@ function worktreeHoldingBranch(cwd, branch2) {
32538
32587
  }
32539
32588
 
32540
32589
  // src/commands/review/failCheckout.ts
32541
- import chalk191 from "chalk";
32590
+ import chalk192 from "chalk";
32542
32591
 
32543
32592
  // src/commands/review/azCliProblem.ts
32544
- import { execFileSync as execFileSync16 } from "child_process";
32593
+ import { execFileSync as execFileSync17 } from "child_process";
32545
32594
 
32546
32595
  // src/commands/review/azFailureProblem.ts
32547
32596
  var azProblems = {
@@ -32569,7 +32618,7 @@ function azFailureProblem(error) {
32569
32618
  // src/commands/review/azCliProblem.ts
32570
32619
  function runAz(args) {
32571
32620
  try {
32572
- execFileSync16("az", args, { stdio: "ignore" });
32621
+ execFileSync17("az", args, { stdio: "ignore" });
32573
32622
  return "ok";
32574
32623
  } catch (error) {
32575
32624
  return error.code === "ENOENT" ? "missing" : "failed";
@@ -32591,14 +32640,14 @@ function failCheckout(number, headRef, stale, from, checkout) {
32591
32640
  gitSyncOrNull(process.cwd(), ["checkout", "--quiet", from]);
32592
32641
  if (headRef && stale === "local-work")
32593
32642
  console.error(
32594
- chalk191.red(
32643
+ chalk192.red(
32595
32644
  `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
32645
  )
32597
32646
  );
32598
32647
  const problem = checkout.file === "az" ? azCliProblem() : null;
32599
- if (problem) console.error(chalk191.red(problem));
32648
+ if (problem) console.error(chalk192.red(problem));
32600
32649
  console.error(
32601
- chalk191.red(`${checkout.file} ${checkout.args.join(" ")} failed; aborting.`)
32650
+ chalk192.red(`${checkout.file} ${checkout.args.join(" ")} failed; aborting.`)
32602
32651
  );
32603
32652
  process.exit(1);
32604
32653
  }
@@ -32632,7 +32681,7 @@ async function checkoutPr(number) {
32632
32681
  const from = branch2 === "HEAD" ? gitSyncOrNull(process.cwd(), ["rev-parse", "HEAD"]) : branch2;
32633
32682
  const stale = headRef ? clearStalePrBranch(process.cwd(), headRef) : "absent";
32634
32683
  try {
32635
- execFileSync17(commands.checkout.file, commands.checkout.args, {
32684
+ execFileSync18(commands.checkout.file, commands.checkout.args, {
32636
32685
  stdio: "inherit"
32637
32686
  });
32638
32687
  } catch {
@@ -32780,18 +32829,18 @@ function registerList(program) {
32780
32829
  }
32781
32830
 
32782
32831
  // src/commands/litellm/listModels.ts
32783
- import chalk193 from "chalk";
32832
+ import chalk194 from "chalk";
32784
32833
 
32785
32834
  // src/commands/litellm/resolveLitellmConfig.ts
32786
- import chalk192 from "chalk";
32835
+ import chalk193 from "chalk";
32787
32836
  function resolveLitellmConfig() {
32788
32837
  const { config, missing } = readLitellmConfig();
32789
32838
  if (!config) {
32790
- console.error(chalk192.red("LiteLLM is not configured"));
32839
+ console.error(chalk193.red("LiteLLM is not configured"));
32791
32840
  for (const key of missing) {
32792
32841
  const entry = litellmConfigHelp.find((help) => help.key === key);
32793
32842
  console.error(
32794
- chalk192.red(` ${key} is not set. Set it with: ${entry?.setter}`)
32843
+ chalk193.red(` ${key} is not set. Set it with: ${entry?.setter}`)
32795
32844
  );
32796
32845
  }
32797
32846
  process.exit(1);
@@ -32817,13 +32866,13 @@ async function listModels(options2) {
32817
32866
  } catch (error) {
32818
32867
  const reason4 = error instanceof Error ? error.message : String(error);
32819
32868
  console.error(
32820
- chalk193.red(`Failed to reach LiteLLM at ${baseUrl}: ${reason4}`)
32869
+ chalk194.red(`Failed to reach LiteLLM at ${baseUrl}: ${reason4}`)
32821
32870
  );
32822
32871
  process.exit(1);
32823
32872
  }
32824
32873
  const body = await response.text();
32825
32874
  if (!response.ok) {
32826
- console.error(chalk193.red(`LiteLLM returned ${response.status}: ${body}`));
32875
+ console.error(chalk194.red(`LiteLLM returned ${response.status}: ${body}`));
32827
32876
  process.exit(1);
32828
32877
  }
32829
32878
  if (options2.json) {
@@ -32843,15 +32892,15 @@ function registerLitellm(program) {
32843
32892
  // src/commands/mermaidExport.ts
32844
32893
  import { mkdirSync as mkdirSync25, readdirSync as readdirSync15 } from "fs";
32845
32894
  import { resolve as resolve24 } from "path";
32846
- import chalk196 from "chalk";
32895
+ import chalk197 from "chalk";
32847
32896
 
32848
32897
  // src/commands/mermaid/exportFile.ts
32849
32898
  import { readFileSync as readFileSync47, writeFileSync as writeFileSync36 } from "fs";
32850
32899
  import { basename as basename21, extname as extname4, resolve as resolve23 } from "path";
32851
- import chalk195 from "chalk";
32900
+ import chalk196 from "chalk";
32852
32901
 
32853
32902
  // src/commands/mermaid/renderBlock.ts
32854
- import chalk194 from "chalk";
32903
+ import chalk195 from "chalk";
32855
32904
  async function renderBlock(krokiUrl, source) {
32856
32905
  const response = await fetch(`${krokiUrl}/mermaid/svg`, {
32857
32906
  method: "POST",
@@ -32860,7 +32909,7 @@ async function renderBlock(krokiUrl, source) {
32860
32909
  });
32861
32910
  if (!response.ok) {
32862
32911
  console.error(
32863
- chalk194.red(
32912
+ chalk195.red(
32864
32913
  `Kroki request failed: ${response.status} ${response.statusText}`
32865
32914
  )
32866
32915
  );
@@ -32878,19 +32927,19 @@ async function exportFile(file, outDir, krokiUrl, onlyIndex) {
32878
32927
  if (onlyIndex !== void 0) {
32879
32928
  if (onlyIndex < 1 || onlyIndex > blocks2.length) {
32880
32929
  console.error(
32881
- chalk195.red(
32930
+ chalk196.red(
32882
32931
  `${file}: --index ${onlyIndex} out of range (file has ${blocks2.length} diagram(s))`
32883
32932
  )
32884
32933
  );
32885
32934
  process.exit(1);
32886
32935
  }
32887
32936
  console.log(
32888
- chalk195.gray(
32937
+ chalk196.gray(
32889
32938
  `${file} \u2014 rendering diagram ${onlyIndex} of ${blocks2.length}`
32890
32939
  )
32891
32940
  );
32892
32941
  } else {
32893
- console.log(chalk195.gray(`${file} \u2014 ${blocks2.length} diagram(s)`));
32942
+ console.log(chalk196.gray(`${file} \u2014 ${blocks2.length} diagram(s)`));
32894
32943
  }
32895
32944
  for (const [i, source] of blocks2.entries()) {
32896
32945
  const idx = i + 1;
@@ -32898,7 +32947,7 @@ async function exportFile(file, outDir, krokiUrl, onlyIndex) {
32898
32947
  const outPath = resolve23(outDir, `${stem}-${idx}.svg`);
32899
32948
  const svg = await renderBlock(krokiUrl, source);
32900
32949
  writeFileSync36(outPath, svg, "utf8");
32901
- console.log(chalk195.green(` \u2192 ${outPath}`));
32950
+ console.log(chalk196.green(` \u2192 ${outPath}`));
32902
32951
  }
32903
32952
  }
32904
32953
  function extractMermaidBlocks(markdown) {
@@ -32914,18 +32963,18 @@ async function mermaidExport(file, options2 = {}) {
32914
32963
  if (options2.index !== void 0) {
32915
32964
  if (!Number.isInteger(options2.index) || options2.index < 1) {
32916
32965
  console.error(
32917
- chalk196.red(`--index must be a positive integer (got ${options2.index})`)
32966
+ chalk197.red(`--index must be a positive integer (got ${options2.index})`)
32918
32967
  );
32919
32968
  process.exit(1);
32920
32969
  }
32921
32970
  if (!file) {
32922
- console.error(chalk196.red("--index requires a file argument"));
32971
+ console.error(chalk197.red("--index requires a file argument"));
32923
32972
  process.exit(1);
32924
32973
  }
32925
32974
  }
32926
32975
  const files = file ? [file] : readdirSync15(process.cwd()).filter((name) => name.toLowerCase().endsWith(".md")).sort();
32927
32976
  if (files.length === 0) {
32928
- console.log(chalk196.gray("No markdown files found in current directory."));
32977
+ console.log(chalk197.gray("No markdown files found in current directory."));
32929
32978
  return;
32930
32979
  }
32931
32980
  for (const f of files) {
@@ -33071,7 +33120,7 @@ function extractToSave(details, cwd = process.cwd()) {
33071
33120
  }
33072
33121
 
33073
33122
  // src/commands/miro/keptTexts.ts
33074
- import chalk197 from "chalk";
33123
+ import chalk198 from "chalk";
33075
33124
 
33076
33125
  // src/commands/miro/applyIgnore.ts
33077
33126
  function applyIgnore(texts, ignore3) {
@@ -33110,7 +33159,7 @@ function warnUnmatched(file, unmatched) {
33110
33159
  if (unmatched.length === 0) return;
33111
33160
  const entries = unmatched.map((entry) => ` - ${entry}`).join("\n");
33112
33161
  console.error(
33113
- chalk197.yellow(
33162
+ chalk198.yellow(
33114
33163
  `${unmatched.length} ${unmatched.length === 1 ? "entry" : "entries"} in ${file} matched no box text:
33115
33164
  ${entries}`
33116
33165
  )
@@ -33311,7 +33360,7 @@ function readMiroItems(file) {
33311
33360
  }
33312
33361
 
33313
33362
  // src/commands/miro/resolveExtractOptions.ts
33314
- import chalk198 from "chalk";
33363
+ import chalk199 from "chalk";
33315
33364
 
33316
33365
  // src/commands/miro/extractLayers.ts
33317
33366
  function extractsIn(layer) {
@@ -33389,7 +33438,7 @@ function resolveExtractOptions(name, options2, paths) {
33389
33438
  paths.cwd,
33390
33439
  paths.globalConfigPath
33391
33440
  );
33392
- console.error(chalk198.dim(`Extract "${name}" from ${resolved.from}`));
33441
+ console.error(chalk199.dim(`Extract "${name}" from ${resolved.from}`));
33393
33442
  return resolved.options;
33394
33443
  }
33395
33444
 
@@ -33494,7 +33543,7 @@ function registerMiro(program) {
33494
33543
  import { mkdir as mkdir6 } from "fs/promises";
33495
33544
  import { createServer as createServer2 } from "http";
33496
33545
  import { dirname as dirname39 } from "path";
33497
- import chalk200 from "chalk";
33546
+ import chalk201 from "chalk";
33498
33547
 
33499
33548
  // src/commands/netcap/corsHeaders.ts
33500
33549
  var corsHeaders = {
@@ -33573,7 +33622,7 @@ function createNetcapHandler(options2) {
33573
33622
  import { cp as cp4, readFile as readFile7, writeFile as writeFile6 } from "fs/promises";
33574
33623
  import { networkInterfaces } from "os";
33575
33624
  import { join as join83 } from "path";
33576
- import chalk199 from "chalk";
33625
+ import chalk200 from "chalk";
33577
33626
 
33578
33627
  // src/commands/netcap/netcapExtensionDir.ts
33579
33628
  import { dirname as dirname38, join as join82 } from "path";
@@ -33617,7 +33666,7 @@ async function prepareExtensionForLoad(port, filter = "") {
33617
33666
  const host = lanIPv4();
33618
33667
  if (!host) {
33619
33668
  console.log(
33620
- chalk199.yellow("could not determine the WSL IP for the extension")
33669
+ chalk200.yellow("could not determine the WSL IP for the extension")
33621
33670
  );
33622
33671
  await configureBackground(source, "127.0.0.1", port, filter);
33623
33672
  return source;
@@ -33628,7 +33677,7 @@ async function prepareExtensionForLoad(port, filter = "") {
33628
33677
  return WSL_WINDOWS_PATH3;
33629
33678
  } catch {
33630
33679
  console.log(
33631
- chalk199.yellow(`could not copy extension to ${WSL_WINDOWS_PATH3}`)
33680
+ chalk200.yellow(`could not copy extension to ${WSL_WINDOWS_PATH3}`)
33632
33681
  );
33633
33682
  return source;
33634
33683
  }
@@ -33661,30 +33710,30 @@ async function netcap(options2) {
33661
33710
  let count10 = 0;
33662
33711
  const handler = createNetcapHandler({
33663
33712
  outPath,
33664
- onPing: () => console.log(chalk200.dim("ping from extension")),
33713
+ onPing: () => console.log(chalk201.dim("ping from extension")),
33665
33714
  onCapture: (entry) => {
33666
33715
  count10 += 1;
33667
33716
  console.log(
33668
- chalk200.green(`captured #${count10}`),
33669
- chalk200.dim(`${entry.method ?? "?"} ${entry.url ?? "?"}`)
33717
+ chalk201.green(`captured #${count10}`),
33718
+ chalk201.dim(`${entry.method ?? "?"} ${entry.url ?? "?"}`)
33670
33719
  );
33671
33720
  }
33672
33721
  });
33673
33722
  const server = createServer2(handler);
33674
33723
  server.listen(port, () => {
33675
33724
  console.log(
33676
- chalk200.bold(`netcap receiver listening on http://127.0.0.1:${port}`)
33725
+ chalk201.bold(`netcap receiver listening on http://127.0.0.1:${port}`)
33677
33726
  );
33678
- console.log(chalk200.dim(`appending captures to ${outPath}`));
33727
+ console.log(chalk201.dim(`appending captures to ${outPath}`));
33679
33728
  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"));
33729
+ console.log(chalk201.dim(`forwarding only URLs matching "${filter}"`));
33730
+ console.log(chalk201.dim(`load the unpacked extension from ${extensionPath}`));
33731
+ console.log(chalk201.dim("press Ctrl-C to stop"));
33683
33732
  });
33684
33733
  process.on("SIGINT", () => {
33685
33734
  server.close();
33686
33735
  console.log(
33687
- chalk200.bold(
33736
+ chalk201.bold(
33688
33737
  `
33689
33738
  netcap stopped \u2014 captured ${count10} ${count10 === 1 ? "entry" : "entries"} to ${outPath}`
33690
33739
  )
@@ -33696,7 +33745,7 @@ netcap stopped \u2014 captured ${count10} ${count10 === 1 ? "entry" : "entries"}
33696
33745
  // src/commands/netcap/netcapExtract.ts
33697
33746
  import { writeFileSync as writeFileSync38 } from "fs";
33698
33747
  import { join as join86 } from "path";
33699
- import chalk201 from "chalk";
33748
+ import chalk202 from "chalk";
33700
33749
 
33701
33750
  // src/commands/netcap/extractPostsFromCapture.ts
33702
33751
  import { readFileSync as readFileSync50 } from "fs";
@@ -34144,8 +34193,8 @@ function netcapExtract(file) {
34144
34193
  writeFileSync38(outFile, `${JSON.stringify(posts, null, 2)}
34145
34194
  `);
34146
34195
  console.log(
34147
- chalk201.green(`extracted ${posts.length} posts`),
34148
- chalk201.dim(`-> ${outFile}`)
34196
+ chalk202.green(`extracted ${posts.length} posts`),
34197
+ chalk202.dim(`-> ${outFile}`)
34149
34198
  );
34150
34199
  }
34151
34200
 
@@ -34166,7 +34215,7 @@ function registerNetcap(program) {
34166
34215
  }
34167
34216
 
34168
34217
  // src/commands/news/add.ts
34169
- import chalk202 from "chalk";
34218
+ import chalk203 from "chalk";
34170
34219
  import enquirer8 from "enquirer";
34171
34220
  async function add2(url) {
34172
34221
  if (!url) {
@@ -34187,25 +34236,25 @@ async function add2(url) {
34187
34236
  }
34188
34237
  const added = await addFeed(await getDb(), url);
34189
34238
  if (!added) {
34190
- console.log(chalk202.yellow("Feed already exists"));
34239
+ console.log(chalk203.yellow("Feed already exists"));
34191
34240
  return;
34192
34241
  }
34193
- console.log(chalk202.green(`Added feed: ${url}`));
34242
+ console.log(chalk203.green(`Added feed: ${url}`));
34194
34243
  }
34195
34244
 
34196
34245
  // src/commands/news/list.ts
34197
- import chalk203 from "chalk";
34246
+ import chalk204 from "chalk";
34198
34247
  async function list4() {
34199
34248
  const urls = await listFeeds(await getDb());
34200
34249
  if (urls.length === 0) {
34201
- console.log(chalk203.dim("No feeds; add one with assist news add <url>"));
34250
+ console.log(chalk204.dim("No feeds; add one with assist news add <url>"));
34202
34251
  return;
34203
34252
  }
34204
34253
  for (const url of urls) console.log(url);
34205
34254
  }
34206
34255
 
34207
34256
  // src/commands/news/remove.ts
34208
- import chalk204 from "chalk";
34257
+ import chalk205 from "chalk";
34209
34258
 
34210
34259
  // src/commands/backlog/removeFeed.ts
34211
34260
  import { eq as eq56 } from "drizzle-orm";
@@ -34218,10 +34267,10 @@ async function removeFeed(db, url) {
34218
34267
  async function remove(url) {
34219
34268
  const removed = await removeFeed(await getDb(), url);
34220
34269
  if (!removed) {
34221
- console.log(chalk204.yellow(`No feed matches ${url}`));
34270
+ console.log(chalk205.yellow(`No feed matches ${url}`));
34222
34271
  return;
34223
34272
  }
34224
- console.log(chalk204.green(`Removed feed: ${url}`));
34273
+ console.log(chalk205.green(`Removed feed: ${url}`));
34225
34274
  }
34226
34275
 
34227
34276
  // src/commands/registerNews.ts
@@ -34274,7 +34323,7 @@ function registerPiHook(program) {
34274
34323
  }
34275
34324
 
34276
34325
  // src/commands/prompts/printPromptsTable.ts
34277
- import chalk205 from "chalk";
34326
+ import chalk206 from "chalk";
34278
34327
  function truncate2(str, max) {
34279
34328
  if (str.length <= max) return str;
34280
34329
  return `${str.slice(0, max - 1)}\u2026`;
@@ -34292,14 +34341,14 @@ function printPromptsTable(rows) {
34292
34341
  "Command".padEnd(commandWidth),
34293
34342
  "Repos"
34294
34343
  ].join(" ");
34295
- console.log(chalk205.dim(header));
34296
- console.log(chalk205.dim("-".repeat(header.length)));
34344
+ console.log(chalk206.dim(header));
34345
+ console.log(chalk206.dim("-".repeat(header.length)));
34297
34346
  for (const row2 of rows) {
34298
34347
  const count10 = String(row2.count).padStart(countWidth);
34299
34348
  const tool = row2.tool.padEnd(toolWidth);
34300
34349
  const command = truncate2(row2.command, 60).padEnd(commandWidth);
34301
34350
  console.log(
34302
- `${chalk205.yellow(count10)} ${tool} ${command} ${chalk205.dim(row2.repos)}`
34351
+ `${chalk206.yellow(count10)} ${tool} ${command} ${chalk206.dim(row2.repos)}`
34303
34352
  );
34304
34353
  }
34305
34354
  }
@@ -34337,13 +34386,13 @@ import { execSync as execSync44 } from "child_process";
34337
34386
  import enquirer9 from "enquirer";
34338
34387
 
34339
34388
  // src/commands/prs/prs/displayPaginated/printPr.ts
34340
- import chalk206 from "chalk";
34389
+ import chalk207 from "chalk";
34341
34390
  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
34391
+ MERGED: (pr) => pr.mergedAt ? { label: chalk207.magenta("merged"), date: pr.mergedAt } : null,
34392
+ CLOSED: (pr) => pr.closedAt ? { label: chalk207.red("closed"), date: pr.closedAt } : null
34344
34393
  };
34345
34394
  function defaultStatus(pr) {
34346
- return { label: chalk206.green("opened"), date: pr.createdAt };
34395
+ return { label: chalk207.green("opened"), date: pr.createdAt };
34347
34396
  }
34348
34397
  function getStatus(pr) {
34349
34398
  return STATUS_MAP[pr.state]?.(pr) ?? defaultStatus(pr);
@@ -34352,11 +34401,11 @@ function formatDate2(dateStr) {
34352
34401
  return new Date(dateStr).toISOString().split("T")[0];
34353
34402
  }
34354
34403
  function formatPrHeader(pr, status2) {
34355
- return `${chalk206.cyan(`#${pr.number}`)} ${pr.title} ${chalk206.dim(`(${pr.author.login},`)} ${status2.label} ${chalk206.dim(`${formatDate2(status2.date)})`)}`;
34404
+ return `${chalk207.cyan(`#${pr.number}`)} ${pr.title} ${chalk207.dim(`(${pr.author.login},`)} ${status2.label} ${chalk207.dim(`${formatDate2(status2.date)})`)}`;
34356
34405
  }
34357
34406
  function logPrDetails(pr) {
34358
34407
  console.log(
34359
- chalk206.dim(` ${pr.changedFiles.toLocaleString()} files | ${pr.url}`)
34408
+ chalk207.dim(` ${pr.changedFiles.toLocaleString()} files | ${pr.url}`)
34360
34409
  );
34361
34410
  console.log();
34362
34411
  }
@@ -34651,9 +34700,9 @@ var azureDevopsThreadRequests = {
34651
34700
  };
34652
34701
 
34653
34702
  // src/commands/prs/azureDevops/currentAzureDevopsPr.ts
34654
- import { execFileSync as execFileSync18 } from "child_process";
34703
+ import { execFileSync as execFileSync19 } from "child_process";
34655
34704
  function findPrForBranch(repo, branch2) {
34656
- const stdout = execFileSync18(
34705
+ const stdout = execFileSync19(
34657
34706
  "az",
34658
34707
  [
34659
34708
  "repos",
@@ -34700,7 +34749,7 @@ function failAzureDevops(error) {
34700
34749
  }
34701
34750
 
34702
34751
  // src/commands/prs/azureDevops/invokeAzDevops.ts
34703
- import { execFileSync as execFileSync19 } from "child_process";
34752
+ import { execFileSync as execFileSync20 } from "child_process";
34704
34753
  import { mkdtempSync as mkdtempSync2, rmSync as rmSync6, writeFileSync as writeFileSync40 } from "fs";
34705
34754
  import { tmpdir as tmpdir6 } from "os";
34706
34755
  import { join as join89 } from "path";
@@ -34729,7 +34778,7 @@ function azDevopsInvokeArgs(request, inFile) {
34729
34778
  ];
34730
34779
  }
34731
34780
  function runAz2(args) {
34732
- const stdout = execFileSync19("az", args, {
34781
+ const stdout = execFileSync20("az", args, {
34733
34782
  encoding: "utf8",
34734
34783
  stdio: ["ignore", "pipe", "pipe"],
34735
34784
  windowsHide: true
@@ -34798,10 +34847,10 @@ function listAzureDevopsComments(repo) {
34798
34847
  }
34799
34848
 
34800
34849
  // src/commands/prs/fetchThreadIds.ts
34801
- import { execFileSync as execFileSync20 } from "child_process";
34850
+ import { execFileSync as execFileSync21 } from "child_process";
34802
34851
  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
34852
  function fetchThreadIds(org, repo, prNumber) {
34804
- const result = execFileSync20(
34853
+ const result = execFileSync21(
34805
34854
  "gh",
34806
34855
  [
34807
34856
  "api",
@@ -34925,13 +34974,13 @@ function agentFooter(unresolvedCount) {
34925
34974
  }
34926
34975
 
34927
34976
  // src/commands/prs/listComments/commentStyle.ts
34928
- import chalk207 from "chalk";
34977
+ import chalk208 from "chalk";
34929
34978
  var plain = (text20) => text20;
34930
34979
  function colouredState(state) {
34931
34980
  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);
34981
+ if (state === "APPROVED") return chalk208.green(label);
34982
+ if (state === "CHANGES_REQUESTED") return chalk208.red(label);
34983
+ return chalk208.yellow(label);
34935
34984
  }
34936
34985
  function commentStyle() {
34937
34986
  if (isClaudeCode()) {
@@ -34945,9 +34994,9 @@ function commentStyle() {
34945
34994
  };
34946
34995
  }
34947
34996
  return {
34948
- cyan: chalk207.cyan,
34949
- bold: chalk207.bold,
34950
- dim: chalk207.dim,
34997
+ cyan: chalk208.cyan,
34998
+ bold: chalk208.bold,
34999
+ dim: chalk208.dim,
34951
35000
  state: colouredState,
34952
35001
  diffHunk: true,
34953
35002
  agent: false
@@ -35082,7 +35131,7 @@ function printComments2(result) {
35082
35131
  import { execSync as execSync46 } from "child_process";
35083
35132
 
35084
35133
  // src/commands/prs/threadTarget.ts
35085
- import { execFileSync as execFileSync21 } from "child_process";
35134
+ import { execFileSync as execFileSync22 } from "child_process";
35086
35135
 
35087
35136
  // src/commands/prs/azureDevops/azureDevopsThreadActions.ts
35088
35137
  function attempt(run4) {
@@ -35130,7 +35179,7 @@ function replyToComment(org, repo, prNumber, commentId, message3) {
35130
35179
  // src/commands/prs/threadTarget.ts
35131
35180
  function resolveThread(threadId) {
35132
35181
  const mutation = `mutation($threadId: ID!) { resolveReviewThread(input: {threadId: $threadId}) { thread { isResolved } } }`;
35133
- execFileSync21(
35182
+ execFileSync22(
35134
35183
  "gh",
35135
35184
  ["api", "graphql", "-f", `query=${mutation}`, "-f", `threadId=${threadId}`],
35136
35185
  { stdio: ["inherit", "pipe", "inherit"] }
@@ -35770,7 +35819,7 @@ function buildValidatedBody(options2, usage) {
35770
35819
  }
35771
35820
 
35772
35821
  // src/commands/prs/placePr.ts
35773
- import { execFileSync as execFileSync22 } from "child_process";
35822
+ import { execFileSync as execFileSync23 } from "child_process";
35774
35823
 
35775
35824
  // src/commands/prs/buildCreateArgs.ts
35776
35825
  function buildCreateArgs(title, body, options2, attachments = []) {
@@ -35856,7 +35905,7 @@ function buildEditArgs(number, title, body, attachments = []) {
35856
35905
  // src/commands/prs/placePr.ts
35857
35906
  function hasUpstream2() {
35858
35907
  try {
35859
- execFileSync22(
35908
+ execFileSync23(
35860
35909
  "git",
35861
35910
  ["rev-parse", "--abbrev-ref", "--symbolic-full-name", "@{u}"],
35862
35911
  { stdio: "pipe" }
@@ -35868,7 +35917,7 @@ function hasUpstream2() {
35868
35917
  }
35869
35918
  function ensureBranchPushed() {
35870
35919
  const args = hasUpstream2() ? ["push"] : ["push", "--set-upstream", "origin", "HEAD"];
35871
- execFileSync22("git", args, { stdio: "inherit" });
35920
+ execFileSync23("git", args, { stdio: "inherit" });
35872
35921
  }
35873
35922
  async function placePr(prNumber, title, body, options2, attachments = []) {
35874
35923
  const args = prNumber !== null ? buildEditArgs(prNumber, title, body, attachments) : buildCreateArgs(title, body, options2, attachments);
@@ -35939,10 +35988,10 @@ function warn(reason4) {
35939
35988
  }
35940
35989
 
35941
35990
  // src/commands/prs/enableAutoMerge.ts
35942
- import { execFileSync as execFileSync23 } from "child_process";
35991
+ import { execFileSync as execFileSync24 } from "child_process";
35943
35992
  function enableAutoMerge() {
35944
35993
  try {
35945
- execFileSync23(
35994
+ execFileSync24(
35946
35995
  "gh",
35947
35996
  ["pr", "merge", getCurrentBranch2(), "--auto", "--squash"],
35948
35997
  { stdio: "inherit" }
@@ -36200,10 +36249,10 @@ function prsSlackChannel() {
36200
36249
  }
36201
36250
 
36202
36251
  // src/commands/prs/status/fetchReviewThreads.ts
36203
- import { execFileSync as execFileSync24 } from "child_process";
36252
+ import { execFileSync as execFileSync25 } from "child_process";
36204
36253
  var THREAD_QUERY2 = `query($owner: String!, $repo: String!, $prNumber: Int!) { repository(owner: $owner, name: $repo) { pullRequest(number: $prNumber) { reviewThreads(first: 100) { nodes { isResolved } } } } }`;
36205
36254
  function fetchReviewThreads(org, repo, prNumber) {
36206
- const output = execFileSync24(
36255
+ const output = execFileSync25(
36207
36256
  "gh",
36208
36257
  [
36209
36258
  "api",
@@ -36421,16 +36470,16 @@ function buildPrsStatusReport(repoArguments, now = Date.now()) {
36421
36470
  }
36422
36471
 
36423
36472
  // src/commands/prs/status/printPrsStatus.ts
36424
- import chalk209 from "chalk";
36473
+ import chalk210 from "chalk";
36425
36474
 
36426
36475
  // src/commands/prs/status/printPrStatus.ts
36427
- import chalk208 from "chalk";
36476
+ import chalk209 from "chalk";
36428
36477
  function flags(pr) {
36429
36478
  const markers = [];
36430
36479
  if (pr.isDraft) markers.push("draft");
36431
36480
  if (pr.isDoNotMerge) markers.push("do not merge");
36432
36481
  if (pr.isBot) markers.push("bot");
36433
- return markers.length ? ` ${chalk208.yellow(`[${markers.join(", ")}]`)}` : "";
36482
+ return markers.length ? ` ${chalk209.yellow(`[${markers.join(", ")}]`)}` : "";
36434
36483
  }
36435
36484
  function updated(pr) {
36436
36485
  return pr.ageHours === null ? "updated unknown" : `updated ${pr.age} ago`;
@@ -36444,35 +36493,35 @@ function reviewLine(pr) {
36444
36493
  function checkLines(pr) {
36445
36494
  const lines2 = [];
36446
36495
  if (pr.checks.failing.length) {
36447
- lines2.push(chalk208.red(`failing: ${pr.checks.failing.join(", ")}`));
36496
+ lines2.push(chalk209.red(`failing: ${pr.checks.failing.join(", ")}`));
36448
36497
  }
36449
36498
  if (pr.checks.pending.length) {
36450
- lines2.push(chalk208.yellow(`pending: ${pr.checks.pending.join(", ")}`));
36499
+ lines2.push(chalk209.yellow(`pending: ${pr.checks.pending.join(", ")}`));
36451
36500
  }
36452
36501
  return lines2;
36453
36502
  }
36454
36503
  function threadsLine(pr) {
36455
36504
  if (pr.unresolvedThreads === null) {
36456
- return chalk208.dim("unresolved comments: unknown");
36505
+ return chalk209.dim("unresolved comments: unknown");
36457
36506
  }
36458
36507
  if (pr.unresolvedThreads === 0) return null;
36459
- return chalk208.yellow(`unresolved comments: ${pr.unresolvedThreads}`);
36508
+ return chalk209.yellow(`unresolved comments: ${pr.unresolvedThreads}`);
36460
36509
  }
36461
36510
  function mergeableLine(pr) {
36462
- if (pr.mergeable === "CONFLICTING") return chalk208.red("conflicting");
36511
+ if (pr.mergeable === "CONFLICTING") return chalk209.red("conflicting");
36463
36512
  if (pr.mergeable === "MERGEABLE") return null;
36464
- return chalk208.dim(`mergeable: ${pr.mergeable.toLowerCase()}`);
36513
+ return chalk209.dim(`mergeable: ${pr.mergeable.toLowerCase()}`);
36465
36514
  }
36466
36515
  function printPrStatus(pr) {
36467
36516
  console.log(
36468
- ` ${chalk208.cyan(`#${pr.number}`)} ${pr.title} ${chalk208.dim(`(${pr.author}, ${updated(pr)})`)}${flags(pr)}`
36517
+ ` ${chalk209.cyan(`#${pr.number}`)} ${pr.title} ${chalk209.dim(`(${pr.author}, ${updated(pr)})`)}${flags(pr)}`
36469
36518
  );
36470
36519
  const details = [
36471
36520
  reviewLine(pr),
36472
36521
  ...checkLines(pr),
36473
36522
  threadsLine(pr),
36474
36523
  mergeableLine(pr),
36475
- chalk208.dim(pr.url)
36524
+ chalk209.dim(pr.url)
36476
36525
  ];
36477
36526
  for (const detail of details) {
36478
36527
  if (detail) console.log(` ${detail}`);
@@ -36483,17 +36532,17 @@ function printPrStatus(pr) {
36483
36532
  function printPrsStatus(report) {
36484
36533
  for (const repo of report.repos) {
36485
36534
  const count10 = repo.pullRequests.length;
36486
- console.log(`${chalk209.bold(repo.repo)} ${chalk209.dim(`(${count10} open)`)}`);
36535
+ console.log(`${chalk210.bold(repo.repo)} ${chalk210.dim(`(${count10} open)`)}`);
36487
36536
  for (const pr of repo.pullRequests) {
36488
36537
  printPrStatus(pr);
36489
36538
  }
36490
- if (count10 === 0) console.log(chalk209.dim(" no open pull requests"));
36539
+ if (count10 === 0) console.log(chalk210.dim(" no open pull requests"));
36491
36540
  console.log();
36492
36541
  }
36493
36542
  if (report.errors.length === 0) return;
36494
- console.log(chalk209.bold("Errors"));
36543
+ console.log(chalk210.bold("Errors"));
36495
36544
  for (const failure of report.errors) {
36496
- console.log(` ${chalk209.red(failure.repo)}: ${failure.error}`);
36545
+ console.log(` ${chalk210.red(failure.repo)}: ${failure.error}`);
36497
36546
  }
36498
36547
  console.log();
36499
36548
  }
@@ -36721,10 +36770,10 @@ function registerPrs(program) {
36721
36770
  }
36722
36771
 
36723
36772
  // src/commands/ravendb/ravendbAuth.ts
36724
- import chalk215 from "chalk";
36773
+ import chalk216 from "chalk";
36725
36774
 
36726
36775
  // src/shared/createConnectionAuth.ts
36727
- import chalk210 from "chalk";
36776
+ import chalk211 from "chalk";
36728
36777
  function listConnections(connections, format2) {
36729
36778
  if (connections.length === 0) {
36730
36779
  console.log("No connections configured.");
@@ -36737,7 +36786,7 @@ function listConnections(connections, format2) {
36737
36786
  function removeConnection(connections, name, save) {
36738
36787
  const filtered = connections.filter((c) => c.name !== name);
36739
36788
  if (filtered.length === connections.length) {
36740
- console.error(chalk210.red(`Connection "${name}" not found.`));
36789
+ console.error(chalk211.red(`Connection "${name}" not found.`));
36741
36790
  process.exit(1);
36742
36791
  }
36743
36792
  save(filtered);
@@ -36783,15 +36832,15 @@ function saveConnections(connections) {
36783
36832
  }
36784
36833
 
36785
36834
  // src/commands/ravendb/promptConnection.ts
36786
- import chalk213 from "chalk";
36835
+ import chalk214 from "chalk";
36787
36836
 
36788
36837
  // src/commands/ravendb/selectOpSecret.ts
36789
- import chalk212 from "chalk";
36838
+ import chalk213 from "chalk";
36790
36839
  import Enquirer2 from "enquirer";
36791
36840
 
36792
36841
  // src/commands/ravendb/searchItems.ts
36793
36842
  import { execSync as execSync51 } from "child_process";
36794
- import chalk211 from "chalk";
36843
+ import chalk212 from "chalk";
36795
36844
  function opExec(args) {
36796
36845
  return execSync51(`op ${args}`, {
36797
36846
  encoding: "utf8",
@@ -36804,7 +36853,7 @@ function searchItems(search2) {
36804
36853
  items3 = JSON.parse(opExec("item list --format=json"));
36805
36854
  } catch {
36806
36855
  console.error(
36807
- chalk211.red(
36856
+ chalk212.red(
36808
36857
  "Failed to search 1Password. Ensure the CLI is installed and you are signed in."
36809
36858
  )
36810
36859
  );
@@ -36818,7 +36867,7 @@ function getItemFields(itemId2) {
36818
36867
  const item = JSON.parse(opExec(`item get "${itemId2}" --format=json`));
36819
36868
  return item.fields.filter((f) => f.reference && f.label);
36820
36869
  } catch {
36821
- console.error(chalk211.red("Failed to get item details from 1Password."));
36870
+ console.error(chalk212.red("Failed to get item details from 1Password."));
36822
36871
  process.exit(1);
36823
36872
  }
36824
36873
  }
@@ -36837,7 +36886,7 @@ async function selectOpSecret(searchTerm) {
36837
36886
  }).run();
36838
36887
  const items3 = searchItems(search2);
36839
36888
  if (items3.length === 0) {
36840
- console.error(chalk212.red(`No items found matching "${search2}".`));
36889
+ console.error(chalk213.red(`No items found matching "${search2}".`));
36841
36890
  process.exit(1);
36842
36891
  }
36843
36892
  const itemId2 = await selectOne(
@@ -36846,7 +36895,7 @@ async function selectOpSecret(searchTerm) {
36846
36895
  );
36847
36896
  const fields = getItemFields(itemId2);
36848
36897
  if (fields.length === 0) {
36849
- console.error(chalk212.red("No fields with references found on this item."));
36898
+ console.error(chalk213.red("No fields with references found on this item."));
36850
36899
  process.exit(1);
36851
36900
  }
36852
36901
  const ref = await selectOne(
@@ -36860,7 +36909,7 @@ async function selectOpSecret(searchTerm) {
36860
36909
  async function promptConnection(existingNames) {
36861
36910
  const name = await promptInput("name", "Connection name:");
36862
36911
  if (existingNames.includes(name)) {
36863
- console.error(chalk213.red(`Connection "${name}" already exists.`));
36912
+ console.error(chalk214.red(`Connection "${name}" already exists.`));
36864
36913
  process.exit(1);
36865
36914
  }
36866
36915
  const url = await promptInput(
@@ -36869,22 +36918,22 @@ async function promptConnection(existingNames) {
36869
36918
  );
36870
36919
  const database = await promptInput("database", "Database name:");
36871
36920
  if (!name || !url || !database) {
36872
- console.error(chalk213.red("All fields are required."));
36921
+ console.error(chalk214.red("All fields are required."));
36873
36922
  process.exit(1);
36874
36923
  }
36875
36924
  const apiKeyRef = await selectOpSecret();
36876
- console.log(chalk213.dim(`Using: ${apiKeyRef}`));
36925
+ console.log(chalk214.dim(`Using: ${apiKeyRef}`));
36877
36926
  return { name, url, database, apiKeyRef };
36878
36927
  }
36879
36928
 
36880
36929
  // src/commands/ravendb/ravendbSetConnection.ts
36881
- import chalk214 from "chalk";
36930
+ import chalk215 from "chalk";
36882
36931
  function ravendbSetConnection(name) {
36883
36932
  const raw = loadGlobalConfigRaw();
36884
36933
  const ravendb = raw.ravendb ?? {};
36885
36934
  const connections = ravendb.connections ?? [];
36886
36935
  if (!connections.some((c) => c.name === name)) {
36887
- console.error(chalk214.red(`Connection "${name}" not found.`));
36936
+ console.error(chalk215.red(`Connection "${name}" not found.`));
36888
36937
  console.error(
36889
36938
  `Available: ${connections.map((c) => c.name).join(", ") || "(none)"}`
36890
36939
  );
@@ -36900,16 +36949,16 @@ function ravendbSetConnection(name) {
36900
36949
  var ravendbAuth = createConnectionAuth({
36901
36950
  load: loadConnections,
36902
36951
  save: saveConnections,
36903
- format: (c) => `${chalk215.bold(c.name)} ${c.url} db=${c.database} key=${c.apiKeyRef}`,
36952
+ format: (c) => `${chalk216.bold(c.name)} ${c.url} db=${c.database} key=${c.apiKeyRef}`,
36904
36953
  promptNew: promptConnection,
36905
36954
  onFirst: (c) => ravendbSetConnection(c.name)
36906
36955
  });
36907
36956
 
36908
36957
  // src/commands/ravendb/ravendbCollections.ts
36909
- import chalk219 from "chalk";
36958
+ import chalk220 from "chalk";
36910
36959
 
36911
36960
  // src/commands/ravendb/ravenFetch.ts
36912
- import chalk217 from "chalk";
36961
+ import chalk218 from "chalk";
36913
36962
 
36914
36963
  // src/commands/ravendb/getAccessToken.ts
36915
36964
  var OAUTH_URL = "https://amazon-useast-1-oauth.ravenhq.com/ApiKeys/OAuth/AccessToken";
@@ -36946,10 +36995,10 @@ ${errorText}`
36946
36995
 
36947
36996
  // src/commands/ravendb/resolveOpSecret.ts
36948
36997
  import { execSync as execSync52 } from "child_process";
36949
- import chalk216 from "chalk";
36998
+ import chalk217 from "chalk";
36950
36999
  function resolveOpSecret(reference) {
36951
37000
  if (!reference.startsWith("op://")) {
36952
- console.error(chalk216.red(`Invalid secret reference: must start with op://`));
37001
+ console.error(chalk217.red(`Invalid secret reference: must start with op://`));
36953
37002
  process.exit(1);
36954
37003
  }
36955
37004
  try {
@@ -36959,7 +37008,7 @@ function resolveOpSecret(reference) {
36959
37008
  }).trim();
36960
37009
  } catch {
36961
37010
  console.error(
36962
- chalk216.red(
37011
+ chalk217.red(
36963
37012
  "Failed to resolve secret reference. Ensure 1Password CLI is installed and you are signed in."
36964
37013
  )
36965
37014
  );
@@ -36986,7 +37035,7 @@ async function ravenFetch(connection, path109) {
36986
37035
  if (!response.ok) {
36987
37036
  const body = await response.text();
36988
37037
  console.error(
36989
- chalk217.red(`RavenDB error: ${response.status} ${response.statusText}`)
37038
+ chalk218.red(`RavenDB error: ${response.status} ${response.statusText}`)
36990
37039
  );
36991
37040
  console.error(body.substring(0, 500));
36992
37041
  process.exit(1);
@@ -36995,7 +37044,7 @@ async function ravenFetch(connection, path109) {
36995
37044
  }
36996
37045
 
36997
37046
  // src/commands/ravendb/resolveConnection.ts
36998
- import chalk218 from "chalk";
37047
+ import chalk219 from "chalk";
36999
37048
  function loadRavendb() {
37000
37049
  const raw = loadGlobalConfigRaw();
37001
37050
  const ravendb = raw.ravendb;
@@ -37009,7 +37058,7 @@ function resolveConnection(name) {
37009
37058
  const connectionName = name ?? defaultConnection;
37010
37059
  if (!connectionName) {
37011
37060
  console.error(
37012
- chalk218.red(
37061
+ chalk219.red(
37013
37062
  "No connection specified and no default set. Use assist ravendb set-connection <name> or pass a connection name."
37014
37063
  )
37015
37064
  );
@@ -37017,7 +37066,7 @@ function resolveConnection(name) {
37017
37066
  }
37018
37067
  const connection = connections.find((c) => c.name === connectionName);
37019
37068
  if (!connection) {
37020
- console.error(chalk218.red(`Connection "${connectionName}" not found.`));
37069
+ console.error(chalk219.red(`Connection "${connectionName}" not found.`));
37021
37070
  console.error(
37022
37071
  `Available: ${connections.map((c) => c.name).join(", ") || "(none)"}`
37023
37072
  );
@@ -37048,15 +37097,15 @@ async function ravendbCollections(connectionName) {
37048
37097
  return;
37049
37098
  }
37050
37099
  for (const c of collections) {
37051
- console.log(`${chalk219.bold(c.Name)} ${c.CountOfDocuments} docs`);
37100
+ console.log(`${chalk220.bold(c.Name)} ${c.CountOfDocuments} docs`);
37052
37101
  }
37053
37102
  }
37054
37103
 
37055
37104
  // src/commands/ravendb/ravendbQuery.ts
37056
- import chalk221 from "chalk";
37105
+ import chalk222 from "chalk";
37057
37106
 
37058
37107
  // src/commands/ravendb/fetchAllPages.ts
37059
- import chalk220 from "chalk";
37108
+ import chalk221 from "chalk";
37060
37109
 
37061
37110
  // src/commands/ravendb/buildQueryPath.ts
37062
37111
  function buildQueryPath(opts) {
@@ -37094,7 +37143,7 @@ async function fetchAllPages(connection, opts) {
37094
37143
  allResults.push(...results);
37095
37144
  start2 += results.length;
37096
37145
  process.stderr.write(
37097
- `\r${chalk220.dim(`Fetched ${allResults.length}/${totalResults}`)}`
37146
+ `\r${chalk221.dim(`Fetched ${allResults.length}/${totalResults}`)}`
37098
37147
  );
37099
37148
  if (start2 >= totalResults) break;
37100
37149
  if (opts.limit !== void 0 && allResults.length >= opts.limit) break;
@@ -37109,7 +37158,7 @@ async function fetchAllPages(connection, opts) {
37109
37158
  async function ravendbQuery(connectionName, collection, options2) {
37110
37159
  const resolved = resolveArgs(connectionName, collection);
37111
37160
  if (!resolved.collection && !options2.query) {
37112
- console.error(chalk221.red("Provide a collection name or --query filter."));
37161
+ console.error(chalk222.red("Provide a collection name or --query filter."));
37113
37162
  process.exit(1);
37114
37163
  }
37115
37164
  const { collection: col } = resolved;
@@ -37144,7 +37193,7 @@ function registerRavendb(program) {
37144
37193
  }
37145
37194
 
37146
37195
  // src/commands/releases/releasesConfigure.ts
37147
- import chalk223 from "chalk";
37196
+ import chalk224 from "chalk";
37148
37197
 
37149
37198
  // src/commands/config/parseRepoScopeFlag.ts
37150
37199
  var REPO_SCOPE_FLAGS = {
@@ -37215,26 +37264,26 @@ function readStreamsInput(source) {
37215
37264
  }
37216
37265
 
37217
37266
  // src/commands/releases/reportDerivedStreams.ts
37218
- import chalk222 from "chalk";
37267
+ import chalk223 from "chalk";
37219
37268
  function printDerived(stream) {
37220
37269
  const environments = stream.nodes.flatMap((n) => n.environment ?? []);
37221
37270
  const steps = stream.nodes.filter((n) => !n.environment);
37222
37271
  console.log(
37223
- `${chalk222.bold(stream.name)} ${chalk222.dim(`${stream.repo} \xB7 ${stream.workflow}`)}`
37272
+ `${chalk223.bold(stream.name)} ${chalk223.dim(`${stream.repo} \xB7 ${stream.workflow}`)}`
37224
37273
  );
37225
37274
  console.log(
37226
- ` environments: ${environments.join(", ") || chalk222.dim("none")}`
37275
+ ` environments: ${environments.join(", ") || chalk223.dim("none")}`
37227
37276
  );
37228
37277
  if (steps.length > 0)
37229
37278
  console.log(
37230
37279
  ` steps: ${steps.map((n) => `${n.id} [${n.kind ?? "step"}]`).join(", ")}`
37231
37280
  );
37232
37281
  const edges = stream.edges.map(([from, to]) => `${from} \u2192 ${to}`);
37233
- console.log(` edges: ${edges.join(", ") || chalk222.dim("none")}`);
37282
+ console.log(` edges: ${edges.join(", ") || chalk223.dim("none")}`);
37234
37283
  }
37235
37284
  function reportDerivedStreams(streams, target) {
37236
37285
  for (const stream of streams) printDerived(stream);
37237
- console.log(chalk222.dim(`Written to ${target}`));
37286
+ console.log(chalk223.dim(`Written to ${target}`));
37238
37287
  }
37239
37288
 
37240
37289
  // src/commands/releases/withCurrentRepo.ts
@@ -37325,8 +37374,8 @@ async function writeReleaseStreams(incoming, scope) {
37325
37374
 
37326
37375
  // src/commands/releases/releasesConfigure.ts
37327
37376
  function fail9(message3, details = []) {
37328
- console.error(chalk223.red(message3));
37329
- for (const detail of details) console.error(chalk223.red(` ${detail}`));
37377
+ console.error(chalk224.red(message3));
37378
+ for (const detail of details) console.error(chalk224.red(` ${detail}`));
37330
37379
  process.exitCode = 1;
37331
37380
  }
37332
37381
  function reportWritten(incoming, target) {
@@ -37359,23 +37408,23 @@ async function releasesConfigure(options2 = {}) {
37359
37408
  }
37360
37409
 
37361
37410
  // src/commands/releases/releasesList.ts
37362
- import chalk224 from "chalk";
37411
+ import chalk225 from "chalk";
37363
37412
  function describeNode(node) {
37364
37413
  if (node.environment) return `${node.id} \u2192 ${node.environment}`;
37365
37414
  return `${node.id} (${node.kind ?? "step"})`;
37366
37415
  }
37367
37416
  function printStream(stream) {
37368
- console.log(`${chalk224.bold(stream.name)} ${chalk224.dim(stream.repo)}`);
37369
- console.log(chalk224.dim(` workflow: ${stream.workflow}`));
37417
+ console.log(`${chalk225.bold(stream.name)} ${chalk225.dim(stream.repo)}`);
37418
+ console.log(chalk225.dim(` workflow: ${stream.workflow}`));
37370
37419
  for (const node of stream.nodes) console.log(` ${describeNode(node)}`);
37371
37420
  for (const [from, to] of stream.edges)
37372
- console.log(chalk224.dim(` ${from} \u2192 ${to}`));
37421
+ console.log(chalk225.dim(` ${from} \u2192 ${to}`));
37373
37422
  }
37374
37423
  function releasesList() {
37375
37424
  const streams = loadConfig().releases?.streams ?? [];
37376
37425
  if (streams.length === 0) {
37377
37426
  console.log(
37378
- chalk224.dim("No release streams configured under releases.streams.")
37427
+ chalk225.dim("No release streams configured under releases.streams.")
37379
37428
  );
37380
37429
  return;
37381
37430
  }
@@ -37423,7 +37472,7 @@ function coverage() {
37423
37472
 
37424
37473
  // src/commands/lint/lint/runFileNameCheck.ts
37425
37474
  import path46 from "path";
37426
- import chalk226 from "chalk";
37475
+ import chalk227 from "chalk";
37427
37476
 
37428
37477
  // src/commands/lint/lint/checkFileNames.ts
37429
37478
  import fs25 from "fs";
@@ -37503,7 +37552,7 @@ function checkFileNames() {
37503
37552
  }
37504
37553
 
37505
37554
  // src/commands/lint/lint/fixFileNameViolations.ts
37506
- import chalk225 from "chalk";
37555
+ import chalk226 from "chalk";
37507
37556
 
37508
37557
  // src/commands/lint/lint/applyMoves.ts
37509
37558
  import fs26 from "fs";
@@ -37588,25 +37637,25 @@ function fixFileNameViolations(moves) {
37588
37637
  const start2 = performance.now();
37589
37638
  const project = createLintProject();
37590
37639
  const cwd = process.cwd();
37591
- applyMoves(project, moves, cwd, (line) => console.log(chalk225.green(line)));
37640
+ applyMoves(project, moves, cwd, (line) => console.log(chalk226.green(line)));
37592
37641
  const ms = (performance.now() - start2).toFixed(0);
37593
- console.log(chalk225.dim(` Done in ${ms}ms`));
37642
+ console.log(chalk226.dim(` Done in ${ms}ms`));
37594
37643
  }
37595
37644
 
37596
37645
  // src/commands/lint/lint/runFileNameCheck.ts
37597
37646
  function reportViolations(violations) {
37598
- console.error(chalk226.red("\nFile name check failed:\n"));
37647
+ console.error(chalk227.red("\nFile name check failed:\n"));
37599
37648
  console.error(
37600
- chalk226.red(
37649
+ chalk227.red(
37601
37650
  " Files without classes or React components should not start with a capital letter.\n"
37602
37651
  )
37603
37652
  );
37604
37653
  for (const violation of violations) {
37605
- console.error(chalk226.red(` ${violation.filePath}`));
37606
- console.error(chalk226.gray(` Rename to: ${violation.suggestedName}
37654
+ console.error(chalk227.red(` ${violation.filePath}`));
37655
+ console.error(chalk227.gray(` Rename to: ${violation.suggestedName}
37607
37656
  `));
37608
37657
  }
37609
- console.error(chalk226.dim(" Run with -f to auto-fix.\n"));
37658
+ console.error(chalk227.dim(" Run with -f to auto-fix.\n"));
37610
37659
  }
37611
37660
  function runFileNameCheck(fix = false) {
37612
37661
  const violations = checkFileNames();
@@ -37635,17 +37684,17 @@ function runFileNameCheck(fix = false) {
37635
37684
  import fs28 from "fs";
37636
37685
 
37637
37686
  // src/commands/lint/shared.ts
37638
- import chalk227 from "chalk";
37687
+ import chalk228 from "chalk";
37639
37688
  function reportViolations2(violations, checkName2, errorMessage3, successMessage) {
37640
37689
  if (violations.length > 0) {
37641
- console.error(chalk227.red(`
37690
+ console.error(chalk228.red(`
37642
37691
  ${checkName2} failed:
37643
37692
  `));
37644
- console.error(chalk227.red(` ${errorMessage3}
37693
+ console.error(chalk228.red(` ${errorMessage3}
37645
37694
  `));
37646
37695
  for (const violation of violations) {
37647
- console.error(chalk227.red(` ${violation.filePath}:${violation.line}`));
37648
- console.error(chalk227.gray(` ${violation.content}
37696
+ console.error(chalk228.red(` ${violation.filePath}:${violation.line}`));
37697
+ console.error(chalk228.gray(` ${violation.content}
37649
37698
  `));
37650
37699
  }
37651
37700
  return false;
@@ -37870,7 +37919,7 @@ import { execSync as execSync54 } from "child_process";
37870
37919
  import { existsSync as existsSync70, mkdirSync as mkdirSync28, unlinkSync as unlinkSync16, writeFileSync as writeFileSync41 } from "fs";
37871
37920
  import { tmpdir as tmpdir7 } from "os";
37872
37921
  import { join as join90, resolve as resolve28 } from "path";
37873
- import chalk228 from "chalk";
37922
+ import chalk229 from "chalk";
37874
37923
 
37875
37924
  // src/commands/screenshot/captureWindowPs1.ts
37876
37925
  var captureWindowPs1 = `
@@ -38021,22 +38070,22 @@ function screenshot(processName) {
38021
38070
  const config = loadConfig();
38022
38071
  const outputDir = resolve28(config.screenshot.outputDir);
38023
38072
  const outputPath = buildOutputPath(outputDir, processName);
38024
- console.log(chalk228.gray(`Capturing window for process "${processName}" ...`));
38073
+ console.log(chalk229.gray(`Capturing window for process "${processName}" ...`));
38025
38074
  try {
38026
38075
  runPowerShellScript(processName, outputPath);
38027
- console.log(chalk228.green(`Screenshot saved: ${outputPath}`));
38076
+ console.log(chalk229.green(`Screenshot saved: ${outputPath}`));
38028
38077
  } catch (error) {
38029
38078
  const msg = error instanceof Error ? error.message : String(error);
38030
- console.error(chalk228.red(`Failed to capture screenshot: ${msg}`));
38079
+ console.error(chalk229.red(`Failed to capture screenshot: ${msg}`));
38031
38080
  process.exit(1);
38032
38081
  }
38033
38082
  }
38034
38083
 
38035
38084
  // src/commands/statusLine.ts
38036
- import chalk231 from "chalk";
38085
+ import chalk232 from "chalk";
38037
38086
 
38038
38087
  // src/commands/buildLimitsSegment.ts
38039
- import chalk229 from "chalk";
38088
+ import chalk230 from "chalk";
38040
38089
 
38041
38090
  // src/shared/rateLimitLevel.ts
38042
38091
  var FIVE_HOUR_SECONDS = 5 * 3600;
@@ -38074,9 +38123,9 @@ function rateLimitLevel(pct, resetsAt, windowSeconds, now) {
38074
38123
 
38075
38124
  // src/commands/buildLimitsSegment.ts
38076
38125
  var LEVEL_COLOR = {
38077
- ok: chalk229.green,
38078
- warn: chalk229.yellow,
38079
- over: chalk229.red
38126
+ ok: chalk230.green,
38127
+ warn: chalk230.yellow,
38128
+ over: chalk230.red
38080
38129
  };
38081
38130
  function formatLimit(pct, resetsAt, windowSeconds, fallbackLabel, now) {
38082
38131
  const level = rateLimitLevel(pct, resetsAt, windowSeconds, now);
@@ -38172,7 +38221,7 @@ async function relayUsage(claudeSessionId, transcriptPath2, usedPct) {
38172
38221
  }
38173
38222
 
38174
38223
  // src/commands/colorizePercent.ts
38175
- import chalk230 from "chalk";
38224
+ import chalk231 from "chalk";
38176
38225
 
38177
38226
  // src/shared/contextLevel.ts
38178
38227
  var THRESHOLDS = {
@@ -38192,16 +38241,16 @@ function colorizePercent(pct) {
38192
38241
  const label = `${Math.round(pct)}%`;
38193
38242
  switch (contextLevel(pct)) {
38194
38243
  case "red":
38195
- return chalk230.red(label);
38244
+ return chalk231.red(label);
38196
38245
  case "yellow":
38197
- return chalk230.yellow(label);
38246
+ return chalk231.yellow(label);
38198
38247
  default:
38199
38248
  return label;
38200
38249
  }
38201
38250
  }
38202
38251
 
38203
38252
  // src/commands/statusLine.ts
38204
- chalk231.level = 3;
38253
+ chalk232.level = 3;
38205
38254
  function formatNumber(num) {
38206
38255
  return num.toLocaleString("en-US");
38207
38256
  }
@@ -38213,7 +38262,7 @@ async function statusLine() {
38213
38262
  const usedPct = data.context_window.used_percentage ?? 0;
38214
38263
  const dir = data.workspace?.current_dir ?? data.cwd;
38215
38264
  const branch2 = dir ? readGitBranch(dir) : null;
38216
- const branchSegment = branch2 ? `\u{1F33F}\uFE0F ${chalk231.cyan(branch2)} | ` : "";
38265
+ const branchSegment = branch2 ? `\u{1F33F}\uFE0F ${chalk232.cyan(branch2)} | ` : "";
38217
38266
  const limitsSegment = process.env.ASSIST_SESSION === "1" ? "" : buildLimitsSegment(data.rate_limits);
38218
38267
  console.log(
38219
38268
  `${branchSegment}${model} | Tokens - ${formatNumber(totalIn)} \u2191 : ${formatNumber(totalOut)} \u2193 | Context - ${colorizePercent(usedPct)}${limitsSegment}`
@@ -38321,7 +38370,7 @@ import { spawn as spawn8 } from "child_process";
38321
38370
  import * as path49 from "path";
38322
38371
 
38323
38372
  // src/commands/refactor/logViolations.ts
38324
- import chalk232 from "chalk";
38373
+ import chalk233 from "chalk";
38325
38374
  var DEFAULT_MAX_LINES2 = 100;
38326
38375
  function logViolations(violations, maxLines = DEFAULT_MAX_LINES2) {
38327
38376
  if (violations.length === 0) {
@@ -38330,43 +38379,43 @@ function logViolations(violations, maxLines = DEFAULT_MAX_LINES2) {
38330
38379
  }
38331
38380
  return;
38332
38381
  }
38333
- console.error(chalk232.red(`
38382
+ console.error(chalk233.red(`
38334
38383
  Refactor check failed:
38335
38384
  `));
38336
- console.error(chalk232.red(` The following files exceed ${maxLines} lines:
38385
+ console.error(chalk233.red(` The following files exceed ${maxLines} lines:
38337
38386
  `));
38338
38387
  for (const violation of violations) {
38339
- console.error(chalk232.red(` ${violation.file} (${violation.lines} lines)`));
38388
+ console.error(chalk233.red(` ${violation.file} (${violation.lines} lines)`));
38340
38389
  }
38341
38390
  console.error(
38342
- chalk232.yellow(
38391
+ chalk233.yellow(
38343
38392
  `
38344
38393
  Each file needs to be sensibly refactored, or if there is no sensible
38345
38394
  way to refactor it, ignore it with:
38346
38395
  `
38347
38396
  )
38348
38397
  );
38349
- console.error(chalk232.gray(` assist refactor ignore <file>
38398
+ console.error(chalk233.gray(` assist refactor ignore <file>
38350
38399
  `));
38351
38400
  if (process.env.CLAUDECODE) {
38352
- console.error(chalk232.cyan(`
38401
+ console.error(chalk233.cyan(`
38353
38402
  ## Extracting Code to New Files
38354
38403
  `));
38355
38404
  console.error(
38356
- chalk232.cyan(
38405
+ chalk233.cyan(
38357
38406
  ` When extracting logic from one file to another, consider where the extracted code belongs:
38358
38407
  `
38359
38408
  )
38360
38409
  );
38361
38410
  console.error(
38362
- chalk232.cyan(
38411
+ chalk233.cyan(
38363
38412
  ` 1. Keep related logic together: If the extracted code is tightly coupled to the
38364
38413
  original file's domain, create a new folder containing both the original and extracted files.
38365
38414
  `
38366
38415
  )
38367
38416
  );
38368
38417
  console.error(
38369
- chalk232.cyan(
38418
+ chalk233.cyan(
38370
38419
  ` 2. Share common utilities: If the extracted code can be reused across multiple
38371
38420
  domains, move it to a common/shared folder.
38372
38421
  `
@@ -38522,7 +38571,7 @@ async function check(pattern2, options2) {
38522
38571
 
38523
38572
  // src/commands/refactor/extract.ts
38524
38573
  import path57 from "path";
38525
- import chalk235 from "chalk";
38574
+ import chalk236 from "chalk";
38526
38575
 
38527
38576
  // src/commands/refactor/extract/applyExtraction.ts
38528
38577
  import { SyntaxKind as SyntaxKind8 } from "ts-morph";
@@ -39130,23 +39179,23 @@ function buildPlan2(functionName, sourceFile, sourcePath, destPath, project) {
39130
39179
 
39131
39180
  // src/commands/refactor/extract/displayPlan.ts
39132
39181
  import path53 from "path";
39133
- import chalk233 from "chalk";
39182
+ import chalk234 from "chalk";
39134
39183
  function section(title) {
39135
39184
  return `
39136
- ${chalk233.cyan(title)}`;
39185
+ ${chalk234.cyan(title)}`;
39137
39186
  }
39138
39187
  function displayImporters(plan2, cwd) {
39139
39188
  if (plan2.importersToUpdate.length === 0) return;
39140
39189
  console.log(section("Update importers:"));
39141
39190
  for (const imp of plan2.importersToUpdate) {
39142
39191
  const rel = path53.relative(cwd, imp.file.getFilePath());
39143
- console.log(` ${chalk233.dim(rel)}: \u2192 import from "${imp.relPath}"`);
39192
+ console.log(` ${chalk234.dim(rel)}: \u2192 import from "${imp.relPath}"`);
39144
39193
  }
39145
39194
  }
39146
39195
  function displayPlan(functionName, relDest, plan2, cwd) {
39147
- console.log(chalk233.bold(`Extract: ${functionName} \u2192 ${relDest}
39196
+ console.log(chalk234.bold(`Extract: ${functionName} \u2192 ${relDest}
39148
39197
  `));
39149
- console.log(` ${chalk233.cyan("Functions to move:")}`);
39198
+ console.log(` ${chalk234.cyan("Functions to move:")}`);
39150
39199
  for (const name of plan2.extractedNames) {
39151
39200
  console.log(` ${name}`);
39152
39201
  }
@@ -39180,7 +39229,7 @@ function displayPlan(functionName, relDest, plan2, cwd) {
39180
39229
 
39181
39230
  // src/commands/refactor/extract/loadProjectFile.ts
39182
39231
  import path56 from "path";
39183
- import chalk234 from "chalk";
39232
+ import chalk235 from "chalk";
39184
39233
  import { Project as Project4 } from "ts-morph";
39185
39234
 
39186
39235
  // src/commands/refactor/extract/findTsConfig.ts
@@ -39272,7 +39321,7 @@ function loadProjectFile(file) {
39272
39321
  });
39273
39322
  const sourceFile = project.getSourceFile(sourcePath);
39274
39323
  if (!sourceFile) {
39275
- console.log(chalk234.red(`File not found in project: ${file}`));
39324
+ console.log(chalk235.red(`File not found in project: ${file}`));
39276
39325
  process.exit(1);
39277
39326
  }
39278
39327
  return { project, sourceFile };
@@ -39295,19 +39344,19 @@ async function extract(file, functionName, destination, options2 = {}) {
39295
39344
  displayPlan(functionName, relDest, plan2, cwd);
39296
39345
  if (options2.apply) {
39297
39346
  await applyExtraction(functionName, sourceFile, destPath, plan2, project);
39298
- console.log(chalk235.green("\nExtraction complete"));
39347
+ console.log(chalk236.green("\nExtraction complete"));
39299
39348
  } else {
39300
- console.log(chalk235.dim("\nDry run. Use --apply to execute."));
39349
+ console.log(chalk236.dim("\nDry run. Use --apply to execute."));
39301
39350
  }
39302
39351
  }
39303
39352
 
39304
39353
  // src/commands/refactor/ignore.ts
39305
39354
  import fs35 from "fs";
39306
- import chalk236 from "chalk";
39355
+ import chalk237 from "chalk";
39307
39356
  var REFACTOR_YML_PATH2 = "refactor.yml";
39308
39357
  function ignore2(file) {
39309
39358
  if (!fs35.existsSync(file)) {
39310
- console.error(chalk236.red(`Error: File does not exist: ${file}`));
39359
+ console.error(chalk237.red(`Error: File does not exist: ${file}`));
39311
39360
  process.exit(1);
39312
39361
  }
39313
39362
  const content = fs35.readFileSync(file, "utf8");
@@ -39323,7 +39372,7 @@ function ignore2(file) {
39323
39372
  fs35.writeFileSync(REFACTOR_YML_PATH2, entry);
39324
39373
  }
39325
39374
  console.log(
39326
- chalk236.green(
39375
+ chalk237.green(
39327
39376
  `Added ${file} to refactor ignore list (max ${maxLines} lines)`
39328
39377
  )
39329
39378
  );
@@ -39332,12 +39381,12 @@ function ignore2(file) {
39332
39381
  // src/commands/refactor/rename.ts
39333
39382
  import fs38 from "fs";
39334
39383
  import path63 from "path";
39335
- import chalk239 from "chalk";
39384
+ import chalk240 from "chalk";
39336
39385
 
39337
39386
  // src/commands/refactor/rename/applyRename.ts
39338
39387
  import fs37 from "fs";
39339
39388
  import path59 from "path";
39340
- import chalk237 from "chalk";
39389
+ import chalk238 from "chalk";
39341
39390
 
39342
39391
  // src/commands/refactor/restructure/computeRewrites.ts
39343
39392
  import path58 from "path";
@@ -39443,13 +39492,13 @@ function applyRename(rewrites, sourcePath, destPath, cwd) {
39443
39492
  const updatedContents = applyRewrites(rewrites);
39444
39493
  for (const [file, content] of updatedContents) {
39445
39494
  fs37.writeFileSync(file, content, "utf8");
39446
- console.log(chalk237.cyan(` Updated imports in ${path59.relative(cwd, file)}`));
39495
+ console.log(chalk238.cyan(` Updated imports in ${path59.relative(cwd, file)}`));
39447
39496
  }
39448
39497
  const destDir = path59.dirname(destPath);
39449
39498
  if (!fs37.existsSync(destDir)) fs37.mkdirSync(destDir, { recursive: true });
39450
39499
  fs37.renameSync(sourcePath, destPath);
39451
39500
  console.log(
39452
- chalk237.white(
39501
+ chalk238.white(
39453
39502
  ` Moved ${path59.relative(cwd, sourcePath)} \u2192 ${path59.relative(cwd, destPath)}`
39454
39503
  )
39455
39504
  );
@@ -39599,16 +39648,16 @@ function computeRenameRewrites(sourcePath, destPath) {
39599
39648
 
39600
39649
  // src/commands/refactor/rename/printRenamePreview.ts
39601
39650
  import path62 from "path";
39602
- import chalk238 from "chalk";
39651
+ import chalk239 from "chalk";
39603
39652
  function printRenamePreview(rewrites, cwd) {
39604
39653
  for (const rewrite of rewrites) {
39605
39654
  console.log(
39606
- chalk238.dim(
39655
+ chalk239.dim(
39607
39656
  ` ${path62.relative(cwd, rewrite.file)}: ${rewrite.oldSpecifier} \u2192 ${rewrite.newSpecifier}`
39608
39657
  )
39609
39658
  );
39610
39659
  }
39611
- console.log(chalk238.dim("Dry run. Use --apply to execute."));
39660
+ console.log(chalk239.dim("Dry run. Use --apply to execute."));
39612
39661
  }
39613
39662
 
39614
39663
  // src/commands/refactor/rename.ts
@@ -39619,20 +39668,20 @@ async function rename(source, destination, options2 = {}) {
39619
39668
  const relSource = path63.relative(cwd, sourcePath);
39620
39669
  const relDest = path63.relative(cwd, destPath);
39621
39670
  if (!fs38.existsSync(sourcePath)) {
39622
- console.log(chalk239.red(`File not found: ${source}`));
39671
+ console.log(chalk240.red(`File not found: ${source}`));
39623
39672
  process.exit(1);
39624
39673
  }
39625
39674
  if (destPath !== sourcePath && fs38.existsSync(destPath)) {
39626
- console.log(chalk239.red(`Destination already exists: ${destination}`));
39675
+ console.log(chalk240.red(`Destination already exists: ${destination}`));
39627
39676
  process.exit(1);
39628
39677
  }
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..."));
39678
+ console.log(chalk240.bold(`Rename: ${relSource} \u2192 ${relDest}`));
39679
+ console.log(chalk240.dim("Loading project..."));
39680
+ console.log(chalk240.dim("Scanning imports across the project..."));
39632
39681
  const rewrites = computeRenameRewrites(sourcePath, destPath);
39633
39682
  const affectedFiles = new Set(rewrites.map((r) => r.file)).size;
39634
39683
  console.log(
39635
- chalk239.dim(
39684
+ chalk240.dim(
39636
39685
  `${rewrites.length} import path(s) to update across ${affectedFiles} file(s)`
39637
39686
  )
39638
39687
  );
@@ -39641,11 +39690,11 @@ async function rename(source, destination, options2 = {}) {
39641
39690
  return;
39642
39691
  }
39643
39692
  applyRename(rewrites, sourcePath, destPath, cwd);
39644
- console.log(chalk239.green("Done"));
39693
+ console.log(chalk240.green("Done"));
39645
39694
  }
39646
39695
 
39647
39696
  // src/commands/refactor/renameSymbol.ts
39648
- import chalk240 from "chalk";
39697
+ import chalk241 from "chalk";
39649
39698
 
39650
39699
  // src/commands/refactor/renameSymbol/findSymbol.ts
39651
39700
  import { SyntaxKind as SyntaxKind19 } from "ts-morph";
@@ -39691,34 +39740,34 @@ async function renameSymbol(file, oldName, newName, options2 = {}) {
39691
39740
  const { project, sourceFile } = loadProjectFile(file);
39692
39741
  const symbol = findSymbol(sourceFile, oldName);
39693
39742
  if (!symbol) {
39694
- console.log(chalk240.red(`Symbol "${oldName}" not found in ${file}`));
39743
+ console.log(chalk241.red(`Symbol "${oldName}" not found in ${file}`));
39695
39744
  process.exit(1);
39696
39745
  }
39697
39746
  const grouped = groupReferences(symbol, cwd);
39698
39747
  const totalRefs = [...grouped.values()].reduce((s, l) => s + l.length, 0);
39699
39748
  console.log(
39700
- chalk240.bold(`Rename: ${oldName} \u2192 ${newName} (${totalRefs} references)
39749
+ chalk241.bold(`Rename: ${oldName} \u2192 ${newName} (${totalRefs} references)
39701
39750
  `)
39702
39751
  );
39703
39752
  for (const [refFile, lines2] of grouped) {
39704
39753
  console.log(
39705
- ` ${chalk240.dim(refFile)}: lines ${chalk240.cyan(lines2.join(", "))}`
39754
+ ` ${chalk241.dim(refFile)}: lines ${chalk241.cyan(lines2.join(", "))}`
39706
39755
  );
39707
39756
  }
39708
39757
  if (options2.apply) {
39709
39758
  symbol.rename(newName);
39710
39759
  await project.save();
39711
- console.log(chalk240.green(`
39760
+ console.log(chalk241.green(`
39712
39761
  Renamed ${oldName} \u2192 ${newName}`));
39713
39762
  } else {
39714
- console.log(chalk240.dim("\nDry run. Use --apply to execute."));
39763
+ console.log(chalk241.dim("\nDry run. Use --apply to execute."));
39715
39764
  }
39716
39765
  }
39717
39766
 
39718
39767
  // src/commands/refactor/restructure.ts
39719
39768
  import fs40 from "fs";
39720
39769
  import path84 from "path";
39721
- import chalk250 from "chalk";
39770
+ import chalk251 from "chalk";
39722
39771
 
39723
39772
  // src/commands/refactor/restructure/buildPlan.ts
39724
39773
  import path74 from "path";
@@ -40055,7 +40104,7 @@ function buildPlan3(scopeRoot, files, ignored = [], pinnedModules = []) {
40055
40104
  }
40056
40105
 
40057
40106
  // src/commands/refactor/restructure/checkPlan.ts
40058
- import chalk245 from "chalk";
40107
+ import chalk246 from "chalk";
40059
40108
 
40060
40109
  // src/commands/refactor/restructure/applyCommand.ts
40061
40110
  import path75 from "path";
@@ -40066,13 +40115,13 @@ function applyCommand(scopeRoot) {
40066
40115
 
40067
40116
  // src/commands/refactor/restructure/displayDrift.ts
40068
40117
  import path76 from "path";
40069
- import chalk241 from "chalk";
40118
+ import chalk242 from "chalk";
40070
40119
  var shownMoves = 20;
40071
40120
  function displayDrift(plan2, listMoves) {
40072
40121
  const rel = (file) => path76.relative(process.cwd(), file);
40073
40122
  if (plan2.moves.length > 0) {
40074
40123
  console.log(
40075
- chalk241.red(
40124
+ chalk242.red(
40076
40125
  `${plan2.moves.length} file(s) drift from the plan${listMoves ? ":" : "."}`
40077
40126
  )
40078
40127
  );
@@ -40080,17 +40129,17 @@ function displayDrift(plan2, listMoves) {
40080
40129
  for (const move2 of plan2.moves.slice(0, shownMoves))
40081
40130
  console.log(` ${rel(move2.from)} \u2192 ${rel(move2.to)}`);
40082
40131
  if (plan2.moves.length > shownMoves)
40083
- console.log(chalk241.dim(` \u2026and ${plan2.moves.length - shownMoves} more`));
40132
+ console.log(chalk242.dim(` \u2026and ${plan2.moves.length - shownMoves} more`));
40084
40133
  }
40085
40134
  }
40086
- for (const error of plan2.errors) console.log(chalk241.red(error));
40135
+ for (const error of plan2.errors) console.log(chalk242.red(error));
40087
40136
  }
40088
40137
 
40089
40138
  // src/commands/refactor/restructure/displayLayoutLimits.ts
40090
- import chalk244 from "chalk";
40139
+ import chalk245 from "chalk";
40091
40140
 
40092
40141
  // src/commands/refactor/restructure/displayDeepChains.ts
40093
- import chalk242 from "chalk";
40142
+ import chalk243 from "chalk";
40094
40143
  var shownChains = 10;
40095
40144
  function formatChain(chain2) {
40096
40145
  const folders = chain2.folders.map((f) => `${f.name} (${f.files})`).join(" > ");
@@ -40100,28 +40149,28 @@ function displayDeepChains(chains, maxDepth) {
40100
40149
  if (chains.length === 0) return;
40101
40150
  const tooDeep = chains.reduce((sum3, c) => sum3 + c.tooDeep, 0);
40102
40151
  console.log(
40103
- chalk242.red(
40152
+ chalk243.red(
40104
40153
  `
40105
40154
  Plan exceeds restructure.maxDepth ${maxDepth}: ${tooDeep} file(s) deeper.`
40106
40155
  )
40107
40156
  );
40108
40157
  console.log(
40109
- chalk242.bold(
40158
+ chalk243.bold(
40110
40159
  "Deep chains, as folder (files beneath), most files too deep first:"
40111
40160
  )
40112
40161
  );
40113
40162
  for (const chain2 of chains.slice(0, shownChains))
40114
40163
  console.log(formatChain(chain2));
40115
40164
  if (chains.length > shownChains)
40116
- console.log(chalk242.dim(` \u2026and ${chains.length - shownChains} more`));
40165
+ console.log(chalk243.dim(` \u2026and ${chains.length - shownChains} more`));
40117
40166
  }
40118
40167
 
40119
40168
  // src/commands/refactor/restructure/displayLongPaths.ts
40120
- import chalk243 from "chalk";
40169
+ import chalk244 from "chalk";
40121
40170
  function displayLongPaths(longPaths, maxPathLength) {
40122
40171
  if (longPaths.length === 0) return;
40123
40172
  console.log(
40124
- chalk243.red(
40173
+ chalk244.red(
40125
40174
  `
40126
40175
  Plan exceeds restructure.maxPathLength ${maxPathLength}: ${longPaths.length} repo-relative path(s) longer.`
40127
40176
  )
@@ -40149,7 +40198,7 @@ function displayLayoutLimits(limits, apply) {
40149
40198
  displayDeepChains(limits.chains, limits.maxDepth);
40150
40199
  displayLongPaths(limits.longPaths, limits.maxPathLength);
40151
40200
  console.log("");
40152
- for (const line of pinSteps(apply)) console.log(chalk244.yellow(line));
40201
+ for (const line of pinSteps(apply)) console.log(chalk245.yellow(line));
40153
40202
  }
40154
40203
 
40155
40204
  // src/commands/refactor/restructure/checkPlan.ts
@@ -40161,14 +40210,14 @@ function checkPlan(plan2, limits) {
40161
40210
  if (exceeds || plan2.errors.length > 0) process.exit(1);
40162
40211
  if (plan2.moves.length > 0) {
40163
40212
  console.log(
40164
- chalk245.yellow(
40213
+ chalk246.yellow(
40165
40214
  `
40166
40215
  Run \`${apply}\` to move the files and rewrite their imports.`
40167
40216
  )
40168
40217
  );
40169
40218
  process.exit(1);
40170
40219
  }
40171
- console.log(chalk245.green("Layout matches the restructure plan"));
40220
+ console.log(chalk246.green("Layout matches the restructure plan"));
40172
40221
  }
40173
40222
 
40174
40223
  // src/commands/refactor/restructure/findDeepChains.ts
@@ -40238,15 +40287,15 @@ function partitionIgnored(files) {
40238
40287
  }
40239
40288
 
40240
40289
  // src/commands/refactor/restructure/runPlan.ts
40241
- import chalk249 from "chalk";
40290
+ import chalk250 from "chalk";
40242
40291
 
40243
40292
  // src/commands/refactor/restructure/applyPlan.ts
40244
- import chalk247 from "chalk";
40293
+ import chalk248 from "chalk";
40245
40294
 
40246
40295
  // src/commands/refactor/restructure/executePlan.ts
40247
40296
  import fs39 from "fs";
40248
40297
  import path80 from "path";
40249
- import chalk246 from "chalk";
40298
+ import chalk247 from "chalk";
40250
40299
  function relPath(file) {
40251
40300
  return path80.relative(process.cwd(), file);
40252
40301
  }
@@ -40263,14 +40312,14 @@ function moveFiles(moves) {
40263
40312
  fs39.mkdirSync(path80.dirname(move2.to), { recursive: true });
40264
40313
  fs39.renameSync(staging, move2.to);
40265
40314
  console.log(
40266
- chalk246.white(` Moved ${relPath(move2.from)} \u2192 ${relPath(move2.to)}`)
40315
+ chalk247.white(` Moved ${relPath(move2.from)} \u2192 ${relPath(move2.to)}`)
40267
40316
  );
40268
40317
  }
40269
40318
  }
40270
40319
  function removeIfEmpty(dir) {
40271
40320
  if (!fs39.existsSync(dir) || fs39.readdirSync(dir).length > 0) return false;
40272
40321
  fs39.rmdirSync(dir);
40273
- console.log(chalk246.dim(` Removed empty directory ${relPath(dir)}`));
40322
+ console.log(chalk247.dim(` Removed empty directory ${relPath(dir)}`));
40274
40323
  return true;
40275
40324
  }
40276
40325
  function removeEmptyDirectories(dirs, scopeRoot) {
@@ -40283,7 +40332,7 @@ function removeEmptyDirectories(dirs, scopeRoot) {
40283
40332
  function executePlan(plan2) {
40284
40333
  for (const [file, content] of applyRewrites(plan2.rewrites)) {
40285
40334
  fs39.writeFileSync(file, content, "utf8");
40286
- console.log(chalk246.cyan(` Rewrote imports in ${relPath(file)}`));
40335
+ console.log(chalk247.cyan(` Rewrote imports in ${relPath(file)}`));
40287
40336
  }
40288
40337
  moveFiles(plan2.moves);
40289
40338
  removeEmptyDirectories(
@@ -40295,17 +40344,17 @@ function executePlan(plan2) {
40295
40344
  // src/commands/refactor/restructure/applyPlan.ts
40296
40345
  function applyPlan(plan2) {
40297
40346
  if (plan2.errors.length > 0) {
40298
- console.log(chalk247.red("\nResolve the errors above before applying."));
40347
+ console.log(chalk248.red("\nResolve the errors above before applying."));
40299
40348
  process.exit(1);
40300
40349
  }
40301
- console.log(chalk247.bold("\nApplying changes..."));
40350
+ console.log(chalk248.bold("\nApplying changes..."));
40302
40351
  executePlan(plan2);
40303
- console.log(chalk247.green("\nRestructuring complete"));
40352
+ console.log(chalk248.green("\nRestructuring complete"));
40304
40353
  }
40305
40354
 
40306
40355
  // src/commands/refactor/restructure/displayPlan.ts
40307
40356
  import path83 from "path";
40308
- import chalk248 from "chalk";
40357
+ import chalk249 from "chalk";
40309
40358
 
40310
40359
  // src/commands/refactor/restructure/computeDepthStats.ts
40311
40360
  import path81 from "path";
@@ -40356,17 +40405,17 @@ function relPath2(filePath) {
40356
40405
  }
40357
40406
  function displayMoves(plan2) {
40358
40407
  if (plan2.moves.length === 0) return;
40359
- console.log(chalk248.bold("\nFile moves:"));
40408
+ console.log(chalk249.bold("\nFile moves:"));
40360
40409
  for (const move2 of plan2.moves) {
40361
40410
  console.log(
40362
- ` ${chalk248.red(relPath2(move2.from))} \u2192 ${chalk248.green(relPath2(move2.to))}`
40411
+ ` ${chalk249.red(relPath2(move2.from))} \u2192 ${chalk249.green(relPath2(move2.to))}`
40363
40412
  );
40364
- console.log(chalk248.dim(` ${move2.reason}`));
40413
+ console.log(chalk249.dim(` ${move2.reason}`));
40365
40414
  }
40366
40415
  }
40367
40416
  function displayTree(plan2) {
40368
40417
  console.log(
40369
- chalk248.bold(`
40418
+ chalk249.bold(`
40370
40419
  Resulting tree (${relPath2(plan2.scopeRoot) || "."}/):`)
40371
40420
  );
40372
40421
  for (const line of formatTree(plan2.targets.values(), plan2.scopeRoot))
@@ -40377,15 +40426,15 @@ function displayDepthStats(plan2) {
40377
40426
  plan2.targets.values(),
40378
40427
  plan2.scopeRoot
40379
40428
  );
40380
- console.log(chalk248.bold(`
40429
+ console.log(chalk249.bold(`
40381
40430
  Depth (max ${max}):`));
40382
40431
  for (const depth of [...distribution.keys()].sort((a, b) => a - b))
40383
40432
  console.log(` ${depth}: ${distribution.get(depth)} file(s)`);
40384
40433
  }
40385
40434
  function displayErrors(errors) {
40386
40435
  if (errors.length === 0) return;
40387
- console.log(chalk248.red("\nErrors:"));
40388
- for (const error of errors) console.log(chalk248.red(` ${error}`));
40436
+ console.log(chalk249.red("\nErrors:"));
40437
+ for (const error of errors) console.log(chalk249.red(` ${error}`));
40389
40438
  }
40390
40439
  function displayPlan2(plan2) {
40391
40440
  displayMoves(plan2);
@@ -40394,7 +40443,7 @@ function displayPlan2(plan2) {
40394
40443
  displayErrors(plan2.errors);
40395
40444
  const rewrittenFiles = new Set(plan2.rewrites.map((r) => r.file)).size;
40396
40445
  console.log(
40397
- chalk248.dim(
40446
+ chalk249.dim(
40398
40447
  `
40399
40448
  Summary: ${plan2.moves.length} file(s) moved, ${plan2.rewrites.length} imports rewritten across ${rewrittenFiles} file(s), ${plan2.errors.length} error(s)`
40400
40449
  )
@@ -40406,11 +40455,11 @@ function runPlan(plan2, limits, apply) {
40406
40455
  displayPlan2(plan2);
40407
40456
  displayLayoutLimits(limits, applyCommand(plan2.scopeRoot));
40408
40457
  if (plan2.moves.length === 0 && plan2.errors.length === 0) {
40409
- console.log(chalk249.green("No restructuring needed"));
40458
+ console.log(chalk250.green("No restructuring needed"));
40410
40459
  return;
40411
40460
  }
40412
40461
  if (!apply) {
40413
- console.log(chalk249.dim("\nDry run. Use --apply to execute."));
40462
+ console.log(chalk250.dim("\nDry run. Use --apply to execute."));
40414
40463
  return;
40415
40464
  }
40416
40465
  applyPlan(plan2);
@@ -40420,14 +40469,14 @@ function runPlan(plan2, limits, apply) {
40420
40469
  async function restructure(root2, options2 = {}) {
40421
40470
  const scopeRoot = path84.resolve(root2 ?? "src");
40422
40471
  if (!fs40.existsSync(scopeRoot) || !fs40.statSync(scopeRoot).isDirectory()) {
40423
- console.log(chalk250.red(`Not a directory: ${root2 ?? "src"}`));
40472
+ console.log(chalk251.red(`Not a directory: ${root2 ?? "src"}`));
40424
40473
  process.exit(1);
40425
40474
  }
40426
40475
  const found = [];
40427
40476
  walkSourceFiles(scopeRoot, found);
40428
40477
  const { scoped, ignored } = partitionIgnored(found);
40429
40478
  if (scoped.length === 0) {
40430
- console.log(chalk250.yellow("No files found under root"));
40479
+ console.log(chalk251.yellow("No files found under root"));
40431
40480
  return;
40432
40481
  }
40433
40482
  const {
@@ -40498,7 +40547,7 @@ async function checkoutPrSession(number, prompt = "") {
40498
40547
  }
40499
40548
 
40500
40549
  // src/commands/review/highLevel/configureHighLevelReview.ts
40501
- import chalk254 from "chalk";
40550
+ import chalk255 from "chalk";
40502
40551
 
40503
40552
  // src/commands/config/promptConfigScope.ts
40504
40553
  import Enquirer3 from "enquirer";
@@ -40524,7 +40573,7 @@ async function promptConfigScope() {
40524
40573
  }
40525
40574
 
40526
40575
  // src/commands/config/resolveConfigKeyAnswer.ts
40527
- import chalk251 from "chalk";
40576
+ import chalk252 from "chalk";
40528
40577
  async function resolveConfigKeyAnswer(question, supplied) {
40529
40578
  if (supplied !== void 0) return coerceSupplied(question.key, supplied);
40530
40579
  for (; ; ) {
@@ -40532,7 +40581,7 @@ async function resolveConfigKeyAnswer(question, supplied) {
40532
40581
  if (answer === "") return void 0;
40533
40582
  const coercion = coerceCliConfigValue(question.key, answer);
40534
40583
  if (coercion.ok) return coercion.value;
40535
- console.error(chalk251.red(coercion.error));
40584
+ console.error(chalk252.red(coercion.error));
40536
40585
  }
40537
40586
  }
40538
40587
  function coerceSupplied(key, supplied) {
@@ -40612,7 +40661,7 @@ function suggestGlobs(current2, proposed) {
40612
40661
  }
40613
40662
 
40614
40663
  // src/commands/review/highLevel/parseConfigureAnswers.ts
40615
- import chalk252 from "chalk";
40664
+ import chalk253 from "chalk";
40616
40665
  function parseConfigureAnswers(answers) {
40617
40666
  const known = Object.values(highLevelConfigKeys);
40618
40667
  const parsed = {};
@@ -40630,13 +40679,13 @@ function answersCoverEveryKey(answers) {
40630
40679
  return Object.values(highLevelConfigKeys).every((key) => key in answers);
40631
40680
  }
40632
40681
  function exitWith(message3) {
40633
- console.error(chalk252.red(`Error: ${message3}.`));
40682
+ console.error(chalk253.red(`Error: ${message3}.`));
40634
40683
  process.exit(1);
40635
40684
  }
40636
40685
 
40637
40686
  // src/commands/review/highLevel/proposeHighLevelGlobs.ts
40638
- import { execFileSync as execFileSync26 } from "child_process";
40639
- import chalk253 from "chalk";
40687
+ import { execFileSync as execFileSync27 } from "child_process";
40688
+ import chalk254 from "chalk";
40640
40689
 
40641
40690
  // src/commands/review/highLevel/buildGlobProposalPrompt.ts
40642
40691
  function buildGlobProposalPrompt(tree) {
@@ -40684,7 +40733,7 @@ function readGlobs(value) {
40684
40733
  }
40685
40734
 
40686
40735
  // src/commands/review/highLevel/summariseRepoTree.ts
40687
- import { execFileSync as execFileSync25 } from "child_process";
40736
+ import { execFileSync as execFileSync26 } from "child_process";
40688
40737
  import { dirname as dirname42, extname as extname6 } from "path";
40689
40738
  var MAX_DIRECTORIES = 200;
40690
40739
  var MAX_EXTENSIONS_PER_DIRECTORY = 6;
@@ -40700,7 +40749,7 @@ function summariseRepoTree(cwd = process.cwd()) {
40700
40749
  }
40701
40750
  function listTrackedFiles(cwd) {
40702
40751
  try {
40703
- return execFileSync25("git", ["ls-files"], {
40752
+ return execFileSync26("git", ["ls-files"], {
40704
40753
  cwd,
40705
40754
  encoding: "utf8",
40706
40755
  maxBuffer: 64 * 1024 * 1024
@@ -40730,12 +40779,12 @@ function proposeHighLevelGlobs(cwd = process.cwd()) {
40730
40779
  const tree = summariseRepoTree(cwd);
40731
40780
  if (tree === "") return NOTHING_PROPOSED;
40732
40781
  console.log(
40733
- chalk253.dim("Asking Claude to propose globs from the repo's own tree...")
40782
+ chalk254.dim("Asking Claude to propose globs from the repo's own tree...")
40734
40783
  );
40735
40784
  const output = askClaude(buildGlobProposalPrompt(tree), cwd);
40736
40785
  if (output === void 0) {
40737
40786
  console.log(
40738
- chalk253.yellow(
40787
+ chalk254.yellow(
40739
40788
  "Claude proposed nothing; answer each key from its current value."
40740
40789
  )
40741
40790
  );
@@ -40745,7 +40794,7 @@ function proposeHighLevelGlobs(cwd = process.cwd()) {
40745
40794
  }
40746
40795
  function askClaude(prompt, cwd) {
40747
40796
  try {
40748
- return execFileSync26("claude", ["-p", "--model", "sonnet", prompt], {
40797
+ return execFileSync27("claude", ["-p", "--model", "sonnet", prompt], {
40749
40798
  cwd,
40750
40799
  encoding: "utf8",
40751
40800
  timeout: 12e4,
@@ -40796,14 +40845,14 @@ async function configureHighLevelReview(options2 = {}) {
40796
40845
  function reportConfigured(result) {
40797
40846
  for (const write2 of result.written)
40798
40847
  console.log(
40799
- chalk254.green(`Set ${write2.key} = ${JSON.stringify(write2.value)}`)
40848
+ chalk255.green(`Set ${write2.key} = ${JSON.stringify(write2.value)}`)
40800
40849
  );
40801
- for (const key of result.skipped) console.log(chalk254.dim(`Left ${key} unset`));
40802
- console.log(chalk254.dim(`Written to ${result.target}`));
40850
+ for (const key of result.skipped) console.log(chalk255.dim(`Left ${key} unset`));
40851
+ console.log(chalk255.dim(`Written to ${result.target}`));
40803
40852
  }
40804
40853
 
40805
40854
  // src/commands/review/highLevel/announceSavedReview.ts
40806
- import chalk255 from "chalk";
40855
+ import chalk256 from "chalk";
40807
40856
  function savedMessage(subject) {
40808
40857
  const head = subject.headSha.slice(0, 7);
40809
40858
  if (subject.draft)
@@ -40814,10 +40863,10 @@ function savedMessage(subject) {
40814
40863
  }
40815
40864
  function announceSavedReview(subject, force) {
40816
40865
  const message3 = savedMessage(subject);
40817
- if (message3) console.log(chalk255.dim(message3));
40866
+ if (message3) console.log(chalk256.dim(message3));
40818
40867
  else if (force)
40819
40868
  console.log(
40820
- chalk255.dim(
40869
+ chalk256.dim(
40821
40870
  `Discarding any review saved for ${subject.headSha.slice(0, 7)} and starting fresh (--force).`
40822
40871
  )
40823
40872
  );
@@ -41179,7 +41228,7 @@ function evaluateHighLevelChecks(subject) {
41179
41228
  }
41180
41229
 
41181
41230
  // src/commands/review/highLevel/fetchHighLevelFiles.ts
41182
- import { execFileSync as execFileSync27 } from "child_process";
41231
+ import { execFileSync as execFileSync28 } from "child_process";
41183
41232
  import { createHash as createHash4 } from "crypto";
41184
41233
  var JQ = ".[] | {filename,status,additions,deletions,patch} | @json";
41185
41234
  function toStatus(status2) {
@@ -41192,7 +41241,7 @@ function diffUrl(repo, prNumber, path109) {
41192
41241
  return `https://github.com/${repo}/pull/${prNumber}/files#diff-${anchor}`;
41193
41242
  }
41194
41243
  function fetchHighLevelFiles(prNumber, repo) {
41195
- const out = execFileSync27(
41244
+ const out = execFileSync28(
41196
41245
  "gh",
41197
41246
  ["api", `repos/${repo}/pulls/${prNumber}/files`, "--paginate", "--jq", JQ],
41198
41247
  { encoding: "utf8", maxBuffer: 64 * 1024 * 1024 }
@@ -41715,11 +41764,11 @@ function collectHighLevelTests(files, testPaths, readSource4) {
41715
41764
  }
41716
41765
 
41717
41766
  // src/commands/review/highLevel/fetchFileAtSha.ts
41718
- import { execFileSync as execFileSync28 } from "child_process";
41767
+ import { execFileSync as execFileSync29 } from "child_process";
41719
41768
  function fetchFileAtSha(repo, sha, path109) {
41720
41769
  const encodedPath = path109.split("/").map(encodeURIComponent).join("/");
41721
41770
  try {
41722
- return execFileSync28(
41771
+ return execFileSync29(
41723
41772
  "gh",
41724
41773
  [
41725
41774
  "api",
@@ -42199,55 +42248,55 @@ async function openHighLevelOverlay(sessionId2, subject, onRestart = async () =>
42199
42248
  }
42200
42249
 
42201
42250
  // src/commands/review/highLevel/printHighLevelChecklist.ts
42202
- import chalk260 from "chalk";
42251
+ import chalk261 from "chalk";
42203
42252
 
42204
42253
  // src/commands/review/highLevel/formatCriticalDiffs.ts
42205
- import chalk256 from "chalk";
42254
+ import chalk257 from "chalk";
42206
42255
  var PATCH_LINE_COLOURS = {
42207
- "+": chalk256.green,
42208
- "-": chalk256.red,
42209
- "@": chalk256.cyan
42256
+ "+": chalk257.green,
42257
+ "-": chalk257.red,
42258
+ "@": chalk257.cyan
42210
42259
  };
42211
42260
  function formatPatch(patch2) {
42212
42261
  return patch2.split("\n").map(
42213
- (line) => ` ${(PATCH_LINE_COLOURS[line[0] ?? ""] ?? chalk256.dim)(line)}`
42262
+ (line) => ` ${(PATCH_LINE_COLOURS[line[0] ?? ""] ?? chalk257.dim)(line)}`
42214
42263
  );
42215
42264
  }
42216
42265
  function formatDiff(diff3) {
42217
42266
  return [
42218
42267
  "",
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)
42268
+ ` ${chalk257.bold(diff3.path)} ${chalk257.dim(`(${diff3.status})`)} ${chalk257.green(`+${diff3.additions}`)} ${chalk257.red(`-${diff3.deletions}`)}`,
42269
+ ...diff3.patch === null ? [` ${chalk257.dim(`no diff available; see ${diff3.diffUrl}`)}`] : formatPatch(diff3.patch)
42221
42270
  ];
42222
42271
  }
42223
42272
  function formatCriticalDiffs(diffs, criticalPaths) {
42224
42273
  if (criticalPaths.length === 0)
42225
- return `${chalk256.bold.underline("Critical diffs")}
42226
- ${chalk256.dim("review.highLevel.criticalPaths is empty, so no diffs are shown")}`;
42274
+ return `${chalk257.bold.underline("Critical diffs")}
42275
+ ${chalk257.dim("review.highLevel.criticalPaths is empty, so no diffs are shown")}`;
42227
42276
  if (diffs.length === 0)
42228
- return `${chalk256.bold.underline("Critical diffs")}
42229
- ${chalk256.dim(`no changed file matches ${criticalPaths.join(", ")}`)}`;
42277
+ return `${chalk257.bold.underline("Critical diffs")}
42278
+ ${chalk257.dim(`no changed file matches ${criticalPaths.join(", ")}`)}`;
42230
42279
  return [
42231
- chalk256.bold.underline("Critical diffs"),
42280
+ chalk257.bold.underline("Critical diffs"),
42232
42281
  ...diffs.flatMap(formatDiff)
42233
42282
  ].join("\n");
42234
42283
  }
42235
42284
 
42236
42285
  // src/commands/review/highLevel/formatHighLevelChecklist.ts
42237
- import chalk257 from "chalk";
42286
+ import chalk258 from "chalk";
42238
42287
  var MARKERS = {
42239
- pass: () => chalk257.green("\u2714"),
42240
- fail: () => chalk257.red("\u2718"),
42241
- manual: () => chalk257.yellow("\u25A1")
42288
+ pass: () => chalk258.green("\u2714"),
42289
+ fail: () => chalk258.red("\u2718"),
42290
+ manual: () => chalk258.yellow("\u25A1")
42242
42291
  };
42243
42292
  function formatCheck(check2) {
42244
- const title = check2.status === "fail" ? chalk257.red(check2.title) : chalk257.bold(check2.title);
42293
+ const title = check2.status === "fail" ? chalk258.red(check2.title) : chalk258.bold(check2.title);
42245
42294
  return ` ${MARKERS[check2.status]()} ${title}
42246
- ${chalk257.dim(check2.reason)}`;
42295
+ ${chalk258.dim(check2.reason)}`;
42247
42296
  }
42248
42297
  function formatGroup(heading2, checks2) {
42249
42298
  if (checks2.length === 0) return [];
42250
- return ["", chalk257.bold.underline(heading2), ...checks2.map(formatCheck)];
42299
+ return ["", chalk258.bold.underline(heading2), ...checks2.map(formatCheck)];
42251
42300
  }
42252
42301
  function formatHighLevelChecklist(checks2) {
42253
42302
  const deterministic = checks2.filter(
@@ -42256,7 +42305,7 @@ function formatHighLevelChecklist(checks2) {
42256
42305
  const failed3 = deterministic.filter(
42257
42306
  (check2) => check2.status === "fail"
42258
42307
  ).length;
42259
- const summary = failed3 === 0 ? chalk257.green(`All ${deterministic.length} deterministic checks pass`) : chalk257.red(
42308
+ const summary = failed3 === 0 ? chalk258.green(`All ${deterministic.length} deterministic checks pass`) : chalk258.red(
42260
42309
  `${failed3} of ${deterministic.length} deterministic checks fail`
42261
42310
  );
42262
42311
  return [
@@ -42271,37 +42320,37 @@ function formatHighLevelChecklist(checks2) {
42271
42320
  }
42272
42321
 
42273
42322
  // src/commands/review/highLevel/formatHighLevelStructure.ts
42274
- import chalk258 from "chalk";
42323
+ import chalk259 from "chalk";
42275
42324
  var STATUS_MARKERS = {
42276
- added: () => chalk258.green("A"),
42277
- removed: () => chalk258.red("D"),
42278
- modified: () => chalk258.yellow("M")
42325
+ added: () => chalk259.green("A"),
42326
+ removed: () => chalk259.red("D"),
42327
+ modified: () => chalk259.yellow("M")
42279
42328
  };
42280
42329
  function counts(additions, deletions) {
42281
- return `${chalk258.green(`+${additions}`)} ${chalk258.red(`-${deletions}`)}`;
42330
+ return `${chalk259.green(`+${additions}`)} ${chalk259.red(`-${deletions}`)}`;
42282
42331
  }
42283
42332
  function formatNode(node, indent4) {
42284
42333
  if (node.kind === "file")
42285
42334
  return [
42286
- `${indent4}${STATUS_MARKERS[node.status]()} ${node.name} ${chalk258.dim(counts(node.additions, node.deletions))}`
42335
+ `${indent4}${STATUS_MARKERS[node.status]()} ${node.name} ${chalk259.dim(counts(node.additions, node.deletions))}`
42287
42336
  ];
42288
42337
  const dir = node;
42289
42338
  return [
42290
- `${indent4}${chalk258.bold(`${dir.name}/`)} ${chalk258.dim(counts(dir.additions, dir.deletions))}`,
42339
+ `${indent4}${chalk259.bold(`${dir.name}/`)} ${chalk259.dim(counts(dir.additions, dir.deletions))}`,
42291
42340
  ...dir.children.flatMap((child) => formatNode(child, `${indent4} `))
42292
42341
  ];
42293
42342
  }
42294
42343
  function formatHighLevelStructure(structure) {
42295
42344
  const summary = `${structure.added} added \xB7 ${structure.removed} deleted \xB7 ${structure.modified} modified \xB7 ${counts(structure.additions, structure.deletions)}`;
42296
42345
  return [
42297
- chalk258.bold.underline("Structure"),
42346
+ chalk259.bold.underline("Structure"),
42298
42347
  ` ${summary}`,
42299
42348
  ...structure.tree.flatMap((node) => formatNode(node, " "))
42300
42349
  ].join("\n");
42301
42350
  }
42302
42351
 
42303
42352
  // src/commands/review/highLevel/formatHighLevelTests.ts
42304
- import chalk259 from "chalk";
42353
+ import chalk260 from "chalk";
42305
42354
  function changeMarker(change) {
42306
42355
  if (change === "added") return "A";
42307
42356
  if (change === "modified") return "M";
@@ -42310,22 +42359,22 @@ function changeMarker(change) {
42310
42359
  function formatNode2(node, depth) {
42311
42360
  const indent4 = " ".repeat(depth + 2);
42312
42361
  if (node.kind === "it")
42313
- return [`${indent4}${chalk259.dim(changeMarker(node.change))} ${node.name}`];
42362
+ return [`${indent4}${chalk260.dim(changeMarker(node.change))} ${node.name}`];
42314
42363
  return [
42315
- `${indent4}${chalk259.bold(node.name)}`,
42364
+ `${indent4}${chalk260.bold(node.name)}`,
42316
42365
  ...node.children.flatMap((child) => formatNode2(child, depth + 1))
42317
42366
  ];
42318
42367
  }
42319
42368
  function formatHighLevelTests(files, testPaths) {
42320
- const heading2 = chalk259.bold.underline("Changed tests");
42369
+ const heading2 = chalk260.bold.underline("Changed tests");
42321
42370
  if (files.length === 0)
42322
42371
  return `${heading2}
42323
- ${chalk259.dim(`no changed test in files matching ${testPaths.join(", ")}`)}`;
42372
+ ${chalk260.dim(`no changed test in files matching ${testPaths.join(", ")}`)}`;
42324
42373
  return [
42325
42374
  heading2,
42326
42375
  ...files.flatMap((file) => [
42327
42376
  "",
42328
- ` ${chalk259.bold(file.path)} ${chalk259.dim(`(${file.status})`)}`,
42377
+ ` ${chalk260.bold(file.path)} ${chalk260.dim(`(${file.status})`)}`,
42329
42378
  ...file.tests.flatMap((node) => formatNode2(node, 0))
42330
42379
  ])
42331
42380
  ].join("\n");
@@ -42339,10 +42388,10 @@ function highLevelChangedFileCount(structure) {
42339
42388
  // src/commands/review/highLevel/printHighLevelChecklist.ts
42340
42389
  function printHighLevelChecklist(subject) {
42341
42390
  console.log(
42342
- chalk260.bold(
42391
+ chalk261.bold(
42343
42392
  `High-level review of ${subject.repo}#${subject.prNumber} \u2014 ${subject.title}`
42344
42393
  ),
42345
- chalk260.dim(
42394
+ chalk261.dim(
42346
42395
  `\xB7 ${highLevelChangedFileCount(subject.structure)} changed files`
42347
42396
  )
42348
42397
  );
@@ -42356,12 +42405,12 @@ function printHighLevelChecklist(subject) {
42356
42405
  console.log("");
42357
42406
  console.log(formatHighLevelTests(subject.tests, subject.testPaths));
42358
42407
  console.log(
42359
- chalk260.dim(
42408
+ chalk261.dim(
42360
42409
  "\nManual items are for the reviewer to judge; see docs/high-level-review.md."
42361
42410
  )
42362
42411
  );
42363
42412
  console.log(
42364
- chalk260.dim(
42413
+ chalk261.dim(
42365
42414
  "Run this inside an assist session to step through the checklist in the web overlay."
42366
42415
  )
42367
42416
  );
@@ -44201,18 +44250,18 @@ function partitionFindingsByDiff(findings2, index3) {
44201
44250
  }
44202
44251
 
44203
44252
  // src/commands/review/warnOutOfDiff.ts
44204
- import chalk261 from "chalk";
44253
+ import chalk262 from "chalk";
44205
44254
  function warnOutOfDiff(outOfDiff) {
44206
44255
  if (outOfDiff.length === 0) return;
44207
44256
  console.warn(
44208
- chalk261.yellow(
44257
+ chalk262.yellow(
44209
44258
  `Moved ${outOfDiff.length} finding(s) whose lines fall outside the PR diff into the review body (GitHub cannot anchor a comment on these):`
44210
44259
  )
44211
44260
  );
44212
44261
  for (const finding of outOfDiff) {
44213
44262
  const range = finding.startLine !== void 0 ? `${finding.startLine}-${finding.line}` : `${finding.line}`;
44214
44263
  console.warn(
44215
- ` ${chalk261.yellow("\xB7")} ${finding.title} ${chalk261.dim(
44264
+ ` ${chalk262.yellow("\xB7")} ${finding.title} ${chalk262.dim(
44216
44265
  `(${finding.file}:${range})`
44217
44266
  )}`
44218
44267
  );
@@ -44239,18 +44288,18 @@ function selectInDiffFindings(lineBound, prDiff) {
44239
44288
  }
44240
44289
 
44241
44290
  // src/commands/review/warnUnlocated.ts
44242
- import chalk262 from "chalk";
44291
+ import chalk263 from "chalk";
44243
44292
  function warnUnlocated(unlocated) {
44244
44293
  if (unlocated.length === 0) return;
44245
44294
  console.warn(
44246
- chalk262.yellow(
44295
+ chalk263.yellow(
44247
44296
  `Moved ${unlocated.length} finding(s) without a parseable file:line into the review body:`
44248
44297
  )
44249
44298
  );
44250
44299
  for (const finding of unlocated) {
44251
- const where = finding.location || chalk262.dim("missing");
44300
+ const where = finding.location || chalk263.dim("missing");
44252
44301
  console.warn(
44253
- ` ${chalk262.yellow("\xB7")} ${finding.title} ${chalk262.dim(`(${where})`)}`
44302
+ ` ${chalk263.yellow("\xB7")} ${finding.title} ${chalk263.dim(`(${where})`)}`
44254
44303
  );
44255
44304
  }
44256
44305
  }
@@ -44667,7 +44716,7 @@ function registerReview(program) {
44667
44716
 
44668
44717
  // src/commands/rules/indexRules.ts
44669
44718
  import path88 from "path";
44670
- import chalk263 from "chalk";
44719
+ import chalk264 from "chalk";
44671
44720
 
44672
44721
  // src/commands/rules/updateScopedRulesIndex.ts
44673
44722
  import { existsSync as existsSync75, readFileSync as readFileSync60, writeFileSync as writeFileSync45 } from "fs";
@@ -44754,24 +44803,24 @@ function indexRules() {
44754
44803
  const rootFile = path88.relative(process.cwd(), path88.join(root2, "CLAUDE.md"));
44755
44804
  if (directories.length === 0) {
44756
44805
  console.log(
44757
- chalk263.gray(`No directories carry their own \`## Rules\` under ${root2}`)
44806
+ chalk264.gray(`No directories carry their own \`## Rules\` under ${root2}`)
44758
44807
  );
44759
44808
  return;
44760
44809
  }
44761
44810
  console.log(`Recorded in ${rootFile || "CLAUDE.md"}`);
44762
44811
  for (const directory of directories)
44763
- console.log(` ${chalk263.cyan(directory)}`);
44812
+ console.log(` ${chalk264.cyan(directory)}`);
44764
44813
  }
44765
44814
 
44766
44815
  // src/commands/rules/listRules.ts
44767
44816
  import path89 from "path";
44768
- import chalk264 from "chalk";
44817
+ import chalk265 from "chalk";
44769
44818
  function listRules(target, options2 = {}) {
44770
44819
  const resolved = path89.resolve(target ?? process.cwd());
44771
44820
  const rules2 = readScopedRules(resolved);
44772
44821
  if (rules2.length === 0) {
44773
44822
  const label = path89.relative(process.cwd(), resolved) || ".";
44774
- console.log(chalk264.gray(`No rules in scope for ${label}`));
44823
+ console.log(chalk265.gray(`No rules in scope for ${label}`));
44775
44824
  return;
44776
44825
  }
44777
44826
  const base = findRepoRoot(scopeDirectory(resolved));
@@ -44781,21 +44830,21 @@ function listRules(target, options2 = {}) {
44781
44830
  if (rule.source !== shown) {
44782
44831
  shown = rule.source;
44783
44832
  console.log(
44784
- chalk264.dim(base ? path89.relative(base, rule.source) : rule.source)
44833
+ chalk265.dim(base ? path89.relative(base, rule.source) : rule.source)
44785
44834
  );
44786
44835
  }
44787
44836
  console.log(
44788
- ` ${chalk264.cyan(rule.code.padEnd(width2))} ${rule.title ?? rule.text}`
44837
+ ` ${chalk265.cyan(rule.code.padEnd(width2))} ${rule.title ?? rule.text}`
44789
44838
  );
44790
44839
  if (options2.full && rule.title)
44791
- console.log(` ${" ".repeat(width2)} ${chalk264.dim(rule.text)}`);
44840
+ console.log(` ${" ".repeat(width2)} ${chalk265.dim(rule.text)}`);
44792
44841
  }
44793
44842
  }
44794
44843
 
44795
44844
  // src/commands/rules/addRule.ts
44796
44845
  import { existsSync as existsSync77, readFileSync as readFileSync62, writeFileSync as writeFileSync46 } from "fs";
44797
44846
  import path91 from "path";
44798
- import chalk265 from "chalk";
44847
+ import chalk266 from "chalk";
44799
44848
 
44800
44849
  // src/commands/rules/insertRuleBullet.ts
44801
44850
  function ruleBullet({ code, title, text: text20 }) {
@@ -44854,7 +44903,7 @@ function read3(file) {
44854
44903
  function addRule(text20, options2) {
44855
44904
  const rule = text20.trim();
44856
44905
  if (rule === "") {
44857
- console.error(chalk265.red("Rule text is required"));
44906
+ console.error(chalk266.red("Rule text is required"));
44858
44907
  process.exitCode = 1;
44859
44908
  return;
44860
44909
  }
@@ -44872,14 +44921,14 @@ function addRule(text20, options2) {
44872
44921
  );
44873
44922
  updateScopedRulesIndex(root2);
44874
44923
  console.log(
44875
- `Added ${chalk265.cyan(code)} to ${path91.relative(process.cwd(), target) || target}`
44924
+ `Added ${chalk266.cyan(code)} to ${path91.relative(process.cwd(), target) || target}`
44876
44925
  );
44877
44926
  }
44878
44927
 
44879
44928
  // src/commands/rules/addUserRule.ts
44880
- import chalk266 from "chalk";
44929
+ import chalk267 from "chalk";
44881
44930
  function fail10(message3) {
44882
- console.error(chalk266.red(message3));
44931
+ console.error(chalk267.red(message3));
44883
44932
  process.exitCode = 1;
44884
44933
  }
44885
44934
  function asRules(value) {
@@ -44898,7 +44947,7 @@ async function addToUserDb(rule) {
44898
44947
  rule
44899
44948
  ]);
44900
44949
  if (!result.ok) return fail10(result.errors.join("\n"));
44901
- console.log(`Added ${chalk266.cyan(rule.title)} to advice.rules in user (db)`);
44950
+ console.log(`Added ${chalk267.cyan(rule.title)} to advice.rules in user (db)`);
44902
44951
  }
44903
44952
  function addToUserNode(rule, globalConfigPath) {
44904
44953
  const advice = loadGlobalConfigRaw(globalConfigPath).advice;
@@ -44911,7 +44960,7 @@ function addToUserNode(rule, globalConfigPath) {
44911
44960
  );
44912
44961
  if (!result.ok) return fail10(result.errors.join("\n"));
44913
44962
  console.log(
44914
- `Added ${chalk266.cyan(rule.title)} to advice.rules in user (node) (${globalConfigFileLabel(globalConfigPath)})`
44963
+ `Added ${chalk267.cyan(rule.title)} to advice.rules in user (node) (${globalConfigFileLabel(globalConfigPath)})`
44915
44964
  );
44916
44965
  }
44917
44966
  async function addUserRule(text20, options2, globalConfigPath = getGlobalConfigPath()) {
@@ -44966,7 +45015,7 @@ function registerRules(program) {
44966
45015
  }
44967
45016
 
44968
45017
  // src/commands/seq/seqAuth.ts
44969
- import chalk268 from "chalk";
45018
+ import chalk269 from "chalk";
44970
45019
 
44971
45020
  // src/commands/seq/loadConnections.ts
44972
45021
  function loadConnections2() {
@@ -44995,10 +45044,10 @@ function setDefaultConnection(name) {
44995
45044
  }
44996
45045
 
44997
45046
  // src/shared/assertUniqueName.ts
44998
- import chalk267 from "chalk";
45047
+ import chalk268 from "chalk";
44999
45048
  function assertUniqueName(existingNames, name) {
45000
45049
  if (existingNames.includes(name)) {
45001
- console.error(chalk267.red(`Connection "${name}" already exists.`));
45050
+ console.error(chalk268.red(`Connection "${name}" already exists.`));
45002
45051
  process.exit(1);
45003
45052
  }
45004
45053
  }
@@ -45016,16 +45065,16 @@ async function promptConnection2(existingNames) {
45016
45065
  var seqAuth = createConnectionAuth({
45017
45066
  load: loadConnections2,
45018
45067
  save: saveConnections2,
45019
- format: (c) => `${chalk268.bold(c.name)} ${c.url}`,
45068
+ format: (c) => `${chalk269.bold(c.name)} ${c.url}`,
45020
45069
  promptNew: promptConnection2,
45021
45070
  onFirst: (c) => setDefaultConnection(c.name)
45022
45071
  });
45023
45072
 
45024
45073
  // src/commands/seq/seqQuery.ts
45025
- import chalk272 from "chalk";
45074
+ import chalk273 from "chalk";
45026
45075
 
45027
45076
  // src/commands/seq/fetchSeq.ts
45028
- import chalk269 from "chalk";
45077
+ import chalk270 from "chalk";
45029
45078
  async function fetchSeq(conn, path109, params) {
45030
45079
  const url = `${conn.url}${path109}?${params}`;
45031
45080
  const response = await fetch(url, {
@@ -45036,7 +45085,7 @@ async function fetchSeq(conn, path109, params) {
45036
45085
  });
45037
45086
  if (!response.ok) {
45038
45087
  const body = await response.text();
45039
- console.error(chalk269.red(`Seq returned ${response.status}: ${body}`));
45088
+ console.error(chalk270.red(`Seq returned ${response.status}: ${body}`));
45040
45089
  process.exit(1);
45041
45090
  }
45042
45091
  return response;
@@ -45095,23 +45144,23 @@ async function fetchSeqEvents(conn, params) {
45095
45144
  }
45096
45145
 
45097
45146
  // src/commands/seq/formatEvent.ts
45098
- import chalk270 from "chalk";
45147
+ import chalk271 from "chalk";
45099
45148
  function levelColor(level) {
45100
45149
  switch (level) {
45101
45150
  case "Fatal":
45102
- return chalk270.bgRed.white;
45151
+ return chalk271.bgRed.white;
45103
45152
  case "Error":
45104
- return chalk270.red;
45153
+ return chalk271.red;
45105
45154
  case "Warning":
45106
- return chalk270.yellow;
45155
+ return chalk271.yellow;
45107
45156
  case "Information":
45108
- return chalk270.cyan;
45157
+ return chalk271.cyan;
45109
45158
  case "Debug":
45110
- return chalk270.gray;
45159
+ return chalk271.gray;
45111
45160
  case "Verbose":
45112
- return chalk270.dim;
45161
+ return chalk271.dim;
45113
45162
  default:
45114
- return chalk270.white;
45163
+ return chalk271.white;
45115
45164
  }
45116
45165
  }
45117
45166
  function levelAbbrev(level) {
@@ -45152,12 +45201,12 @@ function formatTimestamp(iso) {
45152
45201
  function formatEvent(event) {
45153
45202
  const color = levelColor(event.Level);
45154
45203
  const abbrev = levelAbbrev(event.Level);
45155
- const ts10 = chalk270.dim(formatTimestamp(event.Timestamp));
45204
+ const ts10 = chalk271.dim(formatTimestamp(event.Timestamp));
45156
45205
  const msg = renderMessage(event);
45157
45206
  const lines2 = [`${ts10} ${color(`[${abbrev}]`)} ${msg}`];
45158
45207
  if (event.Exception) {
45159
45208
  for (const line of event.Exception.split("\n")) {
45160
- lines2.push(chalk270.red(` ${line}`));
45209
+ lines2.push(chalk271.red(` ${line}`));
45161
45210
  }
45162
45211
  }
45163
45212
  return lines2.join("\n");
@@ -45190,11 +45239,11 @@ function rejectTimestampFilter(filter) {
45190
45239
  }
45191
45240
 
45192
45241
  // src/shared/resolveNamedConnection.ts
45193
- import chalk271 from "chalk";
45242
+ import chalk272 from "chalk";
45194
45243
  function resolveNamedConnection(connections, requested, defaultName, kind, authCommand) {
45195
45244
  if (connections.length === 0) {
45196
45245
  console.error(
45197
- chalk271.red(
45246
+ chalk272.red(
45198
45247
  `No ${kind} connections configured. Run '${authCommand}' first.`
45199
45248
  )
45200
45249
  );
@@ -45203,7 +45252,7 @@ function resolveNamedConnection(connections, requested, defaultName, kind, authC
45203
45252
  const target = requested ?? defaultName ?? connections[0].name;
45204
45253
  const connection = connections.find((c) => c.name === target);
45205
45254
  if (!connection) {
45206
- console.error(chalk271.red(`${kind} connection "${target}" not found.`));
45255
+ console.error(chalk272.red(`${kind} connection "${target}" not found.`));
45207
45256
  process.exit(1);
45208
45257
  }
45209
45258
  return connection;
@@ -45232,7 +45281,7 @@ async function seqQuery(filter, options2) {
45232
45281
  new URLSearchParams({ filter, count: String(count10) })
45233
45282
  );
45234
45283
  if (events.length === 0) {
45235
- console.log(chalk272.yellow("No events found."));
45284
+ console.log(chalk273.yellow("No events found."));
45236
45285
  return;
45237
45286
  }
45238
45287
  if (options2.json) {
@@ -45243,11 +45292,11 @@ async function seqQuery(filter, options2) {
45243
45292
  for (const event of chronological) {
45244
45293
  console.log(formatEvent(event));
45245
45294
  }
45246
- console.log(chalk272.dim(`
45295
+ console.log(chalk273.dim(`
45247
45296
  ${events.length} events`));
45248
45297
  if (events.length >= count10) {
45249
45298
  console.log(
45250
- chalk272.yellow(
45299
+ chalk273.yellow(
45251
45300
  `Results limited to ${count10}. Use --count to retrieve more.`
45252
45301
  )
45253
45302
  );
@@ -45255,10 +45304,10 @@ ${events.length} events`));
45255
45304
  }
45256
45305
 
45257
45306
  // src/shared/setNamedDefaultConnection.ts
45258
- import chalk273 from "chalk";
45307
+ import chalk274 from "chalk";
45259
45308
  function setNamedDefaultConnection(connections, name, setDefault, kind) {
45260
45309
  if (!connections.find((c) => c.name === name)) {
45261
- console.error(chalk273.red(`Connection "${name}" not found.`));
45310
+ console.error(chalk274.red(`Connection "${name}" not found.`));
45262
45311
  process.exit(1);
45263
45312
  }
45264
45313
  setDefault(name);
@@ -45669,7 +45718,7 @@ function registerSlack(program) {
45669
45718
  }
45670
45719
 
45671
45720
  // src/commands/sql/sqlAuth.ts
45672
- import chalk275 from "chalk";
45721
+ import chalk276 from "chalk";
45673
45722
 
45674
45723
  // src/commands/sql/loadConnections.ts
45675
45724
  function loadConnections3() {
@@ -45698,7 +45747,7 @@ function setDefaultConnection2(name) {
45698
45747
  }
45699
45748
 
45700
45749
  // src/commands/sql/promptConnection.ts
45701
- import chalk274 from "chalk";
45750
+ import chalk275 from "chalk";
45702
45751
  async function promptConnection3(existingNames) {
45703
45752
  const name = await promptInput("name", "Connection name:", "default");
45704
45753
  assertUniqueName(existingNames, name);
@@ -45706,7 +45755,7 @@ async function promptConnection3(existingNames) {
45706
45755
  const portStr = await promptInput("port", "Port:", "1433");
45707
45756
  const port = Number.parseInt(portStr, 10);
45708
45757
  if (!Number.isFinite(port)) {
45709
- console.error(chalk274.red(`Invalid port "${portStr}".`));
45758
+ console.error(chalk275.red(`Invalid port "${portStr}".`));
45710
45759
  process.exit(1);
45711
45760
  }
45712
45761
  const user = await promptInput("user", "User:");
@@ -45719,13 +45768,13 @@ async function promptConnection3(existingNames) {
45719
45768
  var sqlAuth = createConnectionAuth({
45720
45769
  load: loadConnections3,
45721
45770
  save: saveConnections3,
45722
- format: (c) => `${chalk275.bold(c.name)} ${c.server}:${c.port}/${c.database} (${c.user})`,
45771
+ format: (c) => `${chalk276.bold(c.name)} ${c.server}:${c.port}/${c.database} (${c.user})`,
45723
45772
  promptNew: promptConnection3,
45724
45773
  onFirst: (c) => setDefaultConnection2(c.name)
45725
45774
  });
45726
45775
 
45727
45776
  // src/commands/sql/printTable.ts
45728
- import chalk276 from "chalk";
45777
+ import chalk277 from "chalk";
45729
45778
  function formatCell(value) {
45730
45779
  if (value === null || value === void 0) return "";
45731
45780
  if (value instanceof Date) return value.toISOString();
@@ -45734,7 +45783,7 @@ function formatCell(value) {
45734
45783
  }
45735
45784
  function printTable(rows) {
45736
45785
  if (rows.length === 0) {
45737
- console.log(chalk276.yellow("(no rows)"));
45786
+ console.log(chalk277.yellow("(no rows)"));
45738
45787
  return;
45739
45788
  }
45740
45789
  const columns = Object.keys(rows[0]);
@@ -45742,13 +45791,13 @@ function printTable(rows) {
45742
45791
  (col) => Math.max(col.length, ...rows.map((r) => formatCell(r[col]).length))
45743
45792
  );
45744
45793
  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)));
45794
+ console.log(chalk277.dim(header));
45795
+ console.log(chalk277.dim("-".repeat(header.length)));
45747
45796
  for (const row2 of rows) {
45748
45797
  const line = columns.map((c, i) => formatCell(row2[c]).padEnd(widths[i])).join(" ");
45749
45798
  console.log(line);
45750
45799
  }
45751
- console.log(chalk276.dim(`
45800
+ console.log(chalk277.dim(`
45752
45801
  ${rows.length} row${rows.length === 1 ? "" : "s"}`));
45753
45802
  }
45754
45803
 
@@ -45808,7 +45857,7 @@ async function sqlColumns(table, connectionName) {
45808
45857
  }
45809
45858
 
45810
45859
  // src/commands/sql/sqlMutate.ts
45811
- import chalk277 from "chalk";
45860
+ import chalk278 from "chalk";
45812
45861
 
45813
45862
  // src/commands/sql/isMutation.ts
45814
45863
  var MUTATION_KEYWORDS = [
@@ -45842,7 +45891,7 @@ function isMutation(sql33) {
45842
45891
  async function sqlMutate(query, connectionName) {
45843
45892
  if (!isMutation(query)) {
45844
45893
  console.error(
45845
- chalk277.red(
45894
+ chalk278.red(
45846
45895
  "assist sql mutate refuses non-mutating statements. Use `assist sql query` instead."
45847
45896
  )
45848
45897
  );
@@ -45852,18 +45901,18 @@ async function sqlMutate(query, connectionName) {
45852
45901
  const pool = await sqlConnect(conn);
45853
45902
  try {
45854
45903
  const result = await pool.request().query(query);
45855
- console.log(chalk277.dim(`${result.rowsAffected.join(", ")} row(s) affected`));
45904
+ console.log(chalk278.dim(`${result.rowsAffected.join(", ")} row(s) affected`));
45856
45905
  } finally {
45857
45906
  await pool.close();
45858
45907
  }
45859
45908
  }
45860
45909
 
45861
45910
  // src/commands/sql/sqlQuery.ts
45862
- import chalk278 from "chalk";
45911
+ import chalk279 from "chalk";
45863
45912
  async function sqlQuery(query, connectionName) {
45864
45913
  if (isMutation(query)) {
45865
45914
  console.error(
45866
- chalk278.red(
45915
+ chalk279.red(
45867
45916
  "assist sql query refuses mutating statements. Use `assist sql mutate` instead."
45868
45917
  )
45869
45918
  );
@@ -45878,7 +45927,7 @@ async function sqlQuery(query, connectionName) {
45878
45927
  printTable(rows);
45879
45928
  } else {
45880
45929
  console.log(
45881
- chalk278.dim(`${result.rowsAffected.join(", ")} row(s) affected`)
45930
+ chalk279.dim(`${result.rowsAffected.join(", ")} row(s) affected`)
45882
45931
  );
45883
45932
  }
45884
45933
  } finally {
@@ -46293,7 +46342,7 @@ function syncPi(claudeDir, options2) {
46293
46342
  // src/commands/sync/syncSettings.ts
46294
46343
  import * as fs49 from "fs";
46295
46344
  import * as path102 from "path";
46296
- import chalk279 from "chalk";
46345
+ import chalk280 from "chalk";
46297
46346
  async function syncSettings(claudeDir, targetBase, options2) {
46298
46347
  const source = path102.join(claudeDir, "settings.json");
46299
46348
  const target = path102.join(targetBase, "settings.json");
@@ -46312,7 +46361,7 @@ async function syncSettings(claudeDir, targetBase, options2) {
46312
46361
  if (mergedContent !== normalizedTarget) {
46313
46362
  if (!options2?.yes) {
46314
46363
  console.log(
46315
- chalk279.yellow(
46364
+ chalk280.yellow(
46316
46365
  "\n\u26A0\uFE0F Warning: settings.json differs from existing file"
46317
46366
  )
46318
46367
  );
@@ -46320,7 +46369,7 @@ async function syncSettings(claudeDir, targetBase, options2) {
46320
46369
  printDiff(targetContent, mergedContent);
46321
46370
  printAutoConfirmHint();
46322
46371
  const confirm = await promptConfirm(
46323
- chalk279.red("Overwrite existing settings.json?"),
46372
+ chalk280.red("Overwrite existing settings.json?"),
46324
46373
  false
46325
46374
  );
46326
46375
  if (!confirm) {
@@ -47493,13 +47542,13 @@ Total: ${violations.length} forbidden string(s).`);
47493
47542
  }
47494
47543
 
47495
47544
  // src/commands/verify/hardcodedColors.ts
47496
- import { execFileSync as execFileSync29 } from "child_process";
47545
+ import { execFileSync as execFileSync30 } from "child_process";
47497
47546
  import { minimatch as minimatch11 } from "minimatch";
47498
47547
  var pattern = "0x[0-9a-fA-F]{6}|#[0-9a-fA-F]{3,6}";
47499
47548
  function hardcodedColors() {
47500
47549
  const ignoreGlobs = loadConfig().hardcodedColors?.ignore ?? [];
47501
47550
  try {
47502
- const output = execFileSync29("grep", ["-rEnH", "-f", "-", "src/"], {
47551
+ const output = execFileSync30("grep", ["-rEnH", "-f", "-", "src/"], {
47503
47552
  encoding: "utf8",
47504
47553
  input: `${pattern}
47505
47554
  `
@@ -48397,11 +48446,11 @@ function consumeSimulatedDivergence(cwd) {
48397
48446
  }
48398
48447
 
48399
48448
  // src/commands/watch/fetchQuietly.ts
48400
- import { execFileSync as execFileSync30 } from "child_process";
48449
+ import { execFileSync as execFileSync31 } from "child_process";
48401
48450
  var MIN_FETCH_TIMEOUT_MS = 6e4;
48402
48451
  function fetchQuietly(cwd, intervalMs) {
48403
48452
  try {
48404
- execFileSync30("git", ["fetch", "--quiet"], {
48453
+ execFileSync31("git", ["fetch", "--quiet"], {
48405
48454
  stdio: ["pipe", "pipe", "pipe"],
48406
48455
  cwd,
48407
48456
  timeout: Math.max(intervalMs, MIN_FETCH_TIMEOUT_MS)
@@ -48657,7 +48706,7 @@ function registerWatch(program) {
48657
48706
  }
48658
48707
 
48659
48708
  // src/commands/roam/postRoamActivity.ts
48660
- import { execFileSync as execFileSync31 } from "child_process";
48709
+ import { execFileSync as execFileSync32 } from "child_process";
48661
48710
  import { readdirSync as readdirSync26, readFileSync as readFileSync72, statSync as statSync14 } from "fs";
48662
48711
  import { join as join109 } from "path";
48663
48712
  function findPortFile(roamDir) {
@@ -48696,7 +48745,7 @@ function postRoamActivity(app, event) {
48696
48745
  const pid = PID_BY_APP[app] ?? 99999;
48697
48746
  const url = `http://127.0.0.1:${port}/api/v1/activity/${app}/${event}?pid=${pid}`;
48698
48747
  try {
48699
- execFileSync31("curl", ["-sf", "--max-time", "0.2", "-X", "POST", url], {
48748
+ execFileSync32("curl", ["-sf", "--max-time", "0.2", "-X", "POST", url], {
48700
48749
  stdio: "ignore"
48701
48750
  });
48702
48751
  } catch {
@@ -49244,27 +49293,27 @@ function registerRun(program) {
49244
49293
  }
49245
49294
 
49246
49295
  // src/commands/sessions/nodes/formatLink.ts
49247
- import chalk280 from "chalk";
49296
+ import chalk281 from "chalk";
49248
49297
  var STATE_COLOURS = {
49249
- connected: chalk280.green,
49250
- connecting: chalk280.yellow,
49251
- disconnected: chalk280.red,
49252
- "version-blocked": chalk280.red
49298
+ connected: chalk281.green,
49299
+ connecting: chalk281.yellow,
49300
+ disconnected: chalk281.red,
49301
+ "version-blocked": chalk281.red
49253
49302
  };
49254
49303
  function formatLink(link3) {
49255
- const colour = STATE_COLOURS[link3.state] ?? chalk280.white;
49304
+ const colour = STATE_COLOURS[link3.state] ?? chalk281.white;
49256
49305
  const peer = link3.peerVersion ? ` peer ${link3.peerVersion}` : "";
49257
49306
  const error = link3.error ? `
49258
- ${chalk280.dim(`last error${link3.errorAt ? ` ${link3.errorAt}` : ""}: ${link3.error}`)}` : "";
49307
+ ${chalk281.dim(`last error${link3.errorAt ? ` ${link3.errorAt}` : ""}: ${link3.error}`)}` : "";
49259
49308
  return ` ${link3.name} ${colour(link3.state)} ${link3.url}${peer}${error}`;
49260
49309
  }
49261
49310
 
49262
49311
  // src/commands/sessions/daemon/listDaemonPids.ts
49263
- import { execFileSync as execFileSync32 } from "child_process";
49312
+ import { execFileSync as execFileSync33 } from "child_process";
49264
49313
  function listDaemonPids() {
49265
49314
  if (process.platform === "win32") return [];
49266
49315
  try {
49267
- const out = execFileSync32("ps", ["-eo", "pid=,args="], {
49316
+ const out = execFileSync33("ps", ["-eo", "pid=,args="], {
49268
49317
  encoding: "utf8"
49269
49318
  });
49270
49319
  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 +54379,7 @@ function releaseClient(client, clients, prPreview, verify) {
54330
54379
  }
54331
54380
 
54332
54381
  // src/commands/sessions/daemon/findPortHolderPid.ts
54333
- import { execFileSync as execFileSync33 } from "child_process";
54382
+ import { execFileSync as execFileSync34 } from "child_process";
54334
54383
  var PROBE_TIMEOUT_MS = 3e3;
54335
54384
  function findPortHolderPid(port) {
54336
54385
  try {
@@ -54340,7 +54389,7 @@ function findPortHolderPid(port) {
54340
54389
  }
54341
54390
  }
54342
54391
  function probe(command, args) {
54343
- return execFileSync33(command, args, {
54392
+ return execFileSync34(command, args, {
54344
54393
  encoding: "utf8",
54345
54394
  timeout: PROBE_TIMEOUT_MS,
54346
54395
  stdio: ["ignore", "pipe", "ignore"]
@@ -58298,7 +58347,7 @@ async function closeSession2() {
58298
58347
  }
58299
58348
 
58300
58349
  // src/commands/sessions/nodes/listNodes.ts
58301
- import chalk281 from "chalk";
58350
+ import chalk282 from "chalk";
58302
58351
  async function nodesReport() {
58303
58352
  const live = await queryNodes();
58304
58353
  if (live)
@@ -58315,10 +58364,10 @@ async function listNodes(options2) {
58315
58364
  console.log(JSON.stringify(report, null, 2));
58316
58365
  return;
58317
58366
  }
58318
- console.log(`${report.local} ${chalk281.dim("(this node)")}`);
58367
+ console.log(`${report.local} ${chalk282.dim("(this node)")}`);
58319
58368
  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"));
58369
+ console.log(chalk282.dim(" daemon not running; showing configured links"));
58370
+ if (report.links.length === 0) console.log(chalk282.dim(" no links"));
58322
58371
  for (const link3 of report.links) console.log(formatLink(link3));
58323
58372
  }
58324
58373
 
@@ -58340,7 +58389,7 @@ async function findUnlinkedWindowsNode(health2, platform = detectPlatform()) {
58340
58389
  }
58341
58390
 
58342
58391
  // src/commands/sessions/nodes/printReport.ts
58343
- import chalk282 from "chalk";
58392
+ import chalk283 from "chalk";
58344
58393
  function printReport(report) {
58345
58394
  if (report.links.length === 0) {
58346
58395
  console.log(`${report.local} has no links`);
@@ -58354,11 +58403,11 @@ function printReport(report) {
58354
58403
  for (const diagnosis of report.links) printDiagnosis(diagnosis);
58355
58404
  }
58356
58405
  function printDiagnosis(diagnosis) {
58357
- console.log(`${chalk282.bold(diagnosis.name)} ${chalk282.dim(diagnosis.url)}`);
58406
+ console.log(`${chalk283.bold(diagnosis.name)} ${chalk283.dim(diagnosis.url)}`);
58358
58407
  for (const hop of diagnosis.hops) {
58359
- const mark = hop.ok ? chalk282.green("\u2713") : chalk282.red("\u2717");
58408
+ const mark = hop.ok ? chalk283.green("\u2713") : chalk283.red("\u2717");
58360
58409
  console.log(` ${mark} ${hop.hop.padEnd(9)} ${hop.detail ?? hop.error}`);
58361
- if (hop.remediation) console.log(` ${chalk282.yellow(hop.remediation)}`);
58410
+ if (hop.remediation) console.log(` ${chalk283.yellow(hop.remediation)}`);
58362
58411
  }
58363
58412
  }
58364
58413
 
@@ -58430,14 +58479,14 @@ function registerDiagnoseCommands(nodes, calledBy5) {
58430
58479
  }
58431
58480
 
58432
58481
  // src/commands/sessions/nodes/linkNode.ts
58433
- import chalk285 from "chalk";
58482
+ import chalk286 from "chalk";
58434
58483
 
58435
58484
  // src/commands/sessions/nodes/notifyDaemonLinks.ts
58436
- import chalk283 from "chalk";
58485
+ import chalk284 from "chalk";
58437
58486
  async function notifyDaemonLinks() {
58438
58487
  if (!await isDaemonRunning()) {
58439
58488
  console.log(
58440
- chalk283.yellow(
58489
+ chalk284.yellow(
58441
58490
  "The sessions daemon is not running; it loads the links when it starts."
58442
58491
  )
58443
58492
  );
@@ -58445,11 +58494,11 @@ async function notifyDaemonLinks() {
58445
58494
  }
58446
58495
  try {
58447
58496
  await sendToDaemonAwaitAck({ type: "reload-links" });
58448
- console.log(chalk283.dim("The sessions daemon reloaded its links."));
58497
+ console.log(chalk284.dim("The sessions daemon reloaded its links."));
58449
58498
  } catch (error) {
58450
58499
  const message3 = error instanceof Error ? error.message : String(error);
58451
58500
  console.log(
58452
- chalk283.yellow(
58501
+ chalk284.yellow(
58453
58502
  `Could not notify the sessions daemon (${message3}); run \`assist daemon restart\` to apply the change.`
58454
58503
  )
58455
58504
  );
@@ -58457,7 +58506,7 @@ async function notifyDaemonLinks() {
58457
58506
  }
58458
58507
 
58459
58508
  // src/commands/sessions/nodes/readLinks.ts
58460
- import chalk284 from "chalk";
58509
+ import chalk285 from "chalk";
58461
58510
 
58462
58511
  // src/commands/sessions/nodes/writeLinks.ts
58463
58512
  async function writeLinks(links2) {
@@ -58480,7 +58529,7 @@ async function readLinks() {
58480
58529
  await writeLinks(links2);
58481
58530
  const dropped = stored.filter((link3) => !link3.url).map((link3) => link3.name);
58482
58531
  console.log(
58483
- chalk284.yellow(`Removed ${dropped.join(", ")}: ${SSH_LINK_RETIRED}`)
58532
+ chalk285.yellow(`Removed ${dropped.join(", ")}: ${SSH_LINK_RETIRED}`)
58484
58533
  );
58485
58534
  return links2;
58486
58535
  }
@@ -58536,7 +58585,7 @@ async function linkNode(name, url, options2) {
58536
58585
  throw new Error(`${name} is this node; link to a different node`);
58537
58586
  const link3 = await buildLink(name, url, options2);
58538
58587
  await writeLinks([...others, link3]);
58539
- console.log(chalk285.green(`Linked ${name} (${link3.url})`));
58588
+ console.log(chalk286.green(`Linked ${name} (${link3.url})`));
58540
58589
  await notifyDaemonLinks();
58541
58590
  }
58542
58591
 
@@ -58719,16 +58768,16 @@ function registerPeerActionCommands(nodes, calledBy5) {
58719
58768
  }
58720
58769
 
58721
58770
  // src/commands/sessions/nodes/unlinkNode.ts
58722
- import chalk286 from "chalk";
58771
+ import chalk287 from "chalk";
58723
58772
  async function unlinkNode(name) {
58724
58773
  const links2 = await readLinks();
58725
58774
  const remaining = links2.filter((link3) => link3.name !== name);
58726
58775
  if (remaining.length === links2.length) {
58727
- console.log(chalk286.yellow(`No link named ${name}`));
58776
+ console.log(chalk287.yellow(`No link named ${name}`));
58728
58777
  return;
58729
58778
  }
58730
58779
  await writeLinks(remaining);
58731
- console.log(chalk286.green(`Unlinked ${name}`));
58780
+ console.log(chalk287.green(`Unlinked ${name}`));
58732
58781
  await notifyDaemonLinks();
58733
58782
  }
58734
58783
 
@@ -58976,10 +59025,10 @@ function createProgram() {
58976
59025
  }
58977
59026
 
58978
59027
  // src/reportCliError.ts
58979
- import chalk287 from "chalk";
59028
+ import chalk288 from "chalk";
58980
59029
  function reportCliError(error) {
58981
59030
  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));
59031
+ console.error(chalk288.red(error.message));
58983
59032
  } else {
58984
59033
  console.error(error);
58985
59034
  }