@staff0rd/assist 0.725.1 → 0.727.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/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.725.1",
9
+ version: "0.727.0",
10
10
  type: "module",
11
11
  main: "dist/index.js",
12
12
  bin: {
@@ -856,6 +856,9 @@ var assistConfigShape = {
856
856
  news: z3.strictObject({
857
857
  showInNav: z3.boolean().default(false)
858
858
  }).optional(),
859
+ next: z3.strictObject({
860
+ peers: z3.array(z3.string()).optional()
861
+ }).optional(),
859
862
  deny: z3.array(
860
863
  z3.strictObject({
861
864
  pattern: z3.string(),
@@ -10340,13 +10343,13 @@ function phaseNotes(entry, position) {
10340
10343
  }
10341
10344
  function renderDiffPhase(entry, idx) {
10342
10345
  const notes = phaseNotes(entry, idx + 1);
10343
- const section2 = renderPhaseSection(
10346
+ const section3 = renderPhaseSection(
10344
10347
  { ...entry.phase, name: `${entry.phase.name} (${notes.join(", ")})` },
10345
10348
  idx
10346
10349
  );
10347
- if (!entry.previousTasks) return section2;
10350
+ if (!entry.previousTasks) return section3;
10348
10351
  return [
10349
- section2,
10352
+ section3,
10350
10353
  "**Previously:**",
10351
10354
  entry.previousTasks.map((task) => `- ${task}`).join("\n")
10352
10355
  ].join("\n\n");
@@ -12553,6 +12556,15 @@ var newsConfigHelp = [
12553
12556
  }
12554
12557
  ];
12555
12558
 
12559
+ // src/commands/sessions/nextConfigHelp.ts
12560
+ var nextConfigHelp = [
12561
+ {
12562
+ key: "next.peers",
12563
+ setter: "assist config set next.peers alice,bob -g --repo",
12564
+ note: "GitHub logins whose open, non-draft PRs the web /next view lists for review alongside PRs requesting your review; PRs you approved with no newer commits are hidden"
12565
+ }
12566
+ ];
12567
+
12556
12568
  // src/commands/prs/prsConfigHelp.ts
12557
12569
  var prsRaiseConfigHelp = [
12558
12570
  {
@@ -12993,6 +13005,7 @@ var configHelpEntries = [
12993
13005
  ...mermaidConfigHelp,
12994
13006
  ...miroConfigHelp,
12995
13007
  ...newsConfigHelp,
13008
+ ...nextConfigHelp,
12996
13009
  ...prsConfigHelp,
12997
13010
  ...ravendbConfigHelp,
12998
13011
  ...readTimeConfigHelp,
@@ -13644,6 +13657,216 @@ function newsNavConfig(_req, res) {
13644
13657
  respondJson(res, 200, { showInNav });
13645
13658
  }
13646
13659
 
13660
+ // src/commands/sessions/web/releases/ghJson.ts
13661
+ import { execFile as execFile5 } from "child_process";
13662
+ import { promisify as promisify4 } from "util";
13663
+ var execFileAsync4 = promisify4(execFile5);
13664
+ var CACHE_TTL_MS4 = 3e4;
13665
+ var cache5 = /* @__PURE__ */ new Map();
13666
+ function partialGraphqlData(error) {
13667
+ const stdout = error.stdout;
13668
+ if (typeof stdout !== "string") return null;
13669
+ try {
13670
+ const parsed = JSON.parse(stdout);
13671
+ return parsed?.data ? parsed : null;
13672
+ } catch {
13673
+ return null;
13674
+ }
13675
+ }
13676
+ async function runGh(cwd, args) {
13677
+ try {
13678
+ const { stdout } = await execFileAsync4("gh", args, {
13679
+ encoding: "utf8",
13680
+ windowsHide: true,
13681
+ cwd,
13682
+ maxBuffer: 16 * 1024 * 1024
13683
+ });
13684
+ return JSON.parse(stdout);
13685
+ } catch (error) {
13686
+ const partial = partialGraphqlData(error);
13687
+ if (partial) return partial;
13688
+ throw error;
13689
+ }
13690
+ }
13691
+ function ghJson(cwd, args) {
13692
+ const key = [cwd, ...args].join("\0");
13693
+ const hit = cache5.get(key);
13694
+ if (hit && Date.now() - hit.at < CACHE_TTL_MS4)
13695
+ return hit.result;
13696
+ const result = runGh(cwd, args);
13697
+ cache5.set(key, { at: Date.now(), result });
13698
+ result.catch(() => cache5.delete(key));
13699
+ return result;
13700
+ }
13701
+
13702
+ // src/commands/sessions/web/next/fetchAssignedIssues.ts
13703
+ async function fetchAssignedIssues(cwd) {
13704
+ const issues = await ghJson(cwd, [
13705
+ "issue",
13706
+ "list",
13707
+ "--assignee",
13708
+ "@me",
13709
+ "--state",
13710
+ "open",
13711
+ "--limit",
13712
+ "100",
13713
+ "--json",
13714
+ "number,title,url,createdAt,author,labels"
13715
+ ]);
13716
+ return issues.map((issue) => ({
13717
+ number: issue.number,
13718
+ title: issue.title,
13719
+ url: issue.url,
13720
+ createdAt: issue.createdAt,
13721
+ author: issue.author?.login ?? "unknown",
13722
+ labels: (issue.labels ?? []).flatMap(
13723
+ (label2) => label2.name ? [label2.name] : []
13724
+ )
13725
+ })).sort((a, b) => a.createdAt.localeCompare(b.createdAt));
13726
+ }
13727
+
13728
+ // src/commands/sessions/web/next/peerPrsQuery.ts
13729
+ var peerPrsQuery = `query($owner: String!, $name: String!) {
13730
+ viewer { login }
13731
+ repository(owner: $owner, name: $name) {
13732
+ pullRequests(states: OPEN, first: 100, orderBy: { field: CREATED_AT, direction: ASC }) {
13733
+ nodes {
13734
+ number
13735
+ title
13736
+ url
13737
+ createdAt
13738
+ isDraft
13739
+ author { login }
13740
+ reviewRequests(first: 50) {
13741
+ nodes { requestedReviewer { ... on User { login } } }
13742
+ }
13743
+ latestReviews(first: 50) {
13744
+ nodes { author { login } state commit { oid } }
13745
+ }
13746
+ commits(last: 1) {
13747
+ nodes { commit { oid statusCheckRollup { state } } }
13748
+ }
13749
+ timelineItems(itemTypes: [REVIEW_REQUESTED_EVENT], last: 50) {
13750
+ nodes {
13751
+ ... on ReviewRequestedEvent {
13752
+ createdAt
13753
+ requestedReviewer { ... on User { login } }
13754
+ }
13755
+ }
13756
+ }
13757
+ }
13758
+ }
13759
+ }
13760
+ }`;
13761
+
13762
+ // src/commands/sessions/web/next/headCommit.ts
13763
+ function headCommit(node) {
13764
+ return node.commits?.nodes?.[0]?.commit ?? null;
13765
+ }
13766
+
13767
+ // src/commands/sessions/web/next/sameLogin.ts
13768
+ var sameLogin = (a, b) => a?.toLowerCase() === b.toLowerCase();
13769
+
13770
+ // src/commands/sessions/web/next/toNextPr.ts
13771
+ var CHECK_STATES = {
13772
+ SUCCESS: "success",
13773
+ FAILURE: "failure",
13774
+ ERROR: "failure",
13775
+ PENDING: "pending",
13776
+ EXPECTED: "pending"
13777
+ };
13778
+ function lastRequestedAt(node, viewer) {
13779
+ const events = (node.timelineItems?.nodes ?? []).filter(
13780
+ (event) => sameLogin(event?.requestedReviewer?.login, viewer)
13781
+ );
13782
+ return events.at(-1)?.createdAt ?? node.createdAt;
13783
+ }
13784
+ function toNextPr(node, author, requested, viewer) {
13785
+ const rollup = headCommit(node)?.statusCheckRollup?.state;
13786
+ return {
13787
+ number: node.number,
13788
+ title: node.title,
13789
+ author,
13790
+ createdAt: node.createdAt,
13791
+ url: node.url,
13792
+ requestedAt: requested ? lastRequestedAt(node, viewer) : node.createdAt,
13793
+ reason: requested ? "requested" : "peer",
13794
+ checks: rollup && CHECK_STATES[rollup] || null
13795
+ };
13796
+ }
13797
+
13798
+ // src/commands/sessions/web/next/selectPeerPrs.ts
13799
+ function isRequested(node, viewer) {
13800
+ return (node.reviewRequests?.nodes ?? []).some(
13801
+ (request) => sameLogin(request?.requestedReviewer?.login, viewer)
13802
+ );
13803
+ }
13804
+ function approvedHead(node, viewer) {
13805
+ const mine = (node.latestReviews?.nodes ?? []).find(
13806
+ (review2) => sameLogin(review2?.author?.login, viewer)
13807
+ );
13808
+ const headOid = headCommit(node)?.oid;
13809
+ return mine?.state === "APPROVED" && !!headOid && mine.commit?.oid === headOid;
13810
+ }
13811
+ function selectPeerPrs(nodes, viewer, peers) {
13812
+ const selected = [];
13813
+ for (const node of nodes) {
13814
+ const author = node.author?.login ?? "unknown";
13815
+ if (node.isDraft || sameLogin(author, viewer)) continue;
13816
+ const requested = isRequested(node, viewer);
13817
+ const byPeer = peers.some((peer) => sameLogin(author, peer));
13818
+ if (!requested && (!byPeer || approvedHead(node, viewer))) continue;
13819
+ selected.push(toNextPr(node, author, requested, viewer));
13820
+ }
13821
+ return selected.sort((a, b) => a.requestedAt.localeCompare(b.requestedAt));
13822
+ }
13823
+
13824
+ // src/commands/sessions/web/next/fetchPeerPrs.ts
13825
+ async function fetchPeerPrs(cwd, peers) {
13826
+ const response = await ghJson(cwd, [
13827
+ "api",
13828
+ "graphql",
13829
+ "-f",
13830
+ `query=${peerPrsQuery}`,
13831
+ "-F",
13832
+ "owner={owner}",
13833
+ "-F",
13834
+ "name={repo}"
13835
+ ]);
13836
+ const viewer = response.data?.viewer?.login;
13837
+ const repository = response.data?.repository;
13838
+ if (!viewer || !repository) throw new Error("Repository not readable");
13839
+ const nodes = (repository.pullRequests?.nodes ?? []).filter(
13840
+ (node) => !!node
13841
+ );
13842
+ return selectPeerPrs(nodes, viewer, peers);
13843
+ }
13844
+
13845
+ // src/commands/sessions/web/next/nextItems.ts
13846
+ function errorMessage(error) {
13847
+ const stderr = error.stderr;
13848
+ if (typeof stderr === "string" && stderr.trim()) return stderr.trim();
13849
+ return error instanceof Error ? error.message : String(error);
13850
+ }
13851
+ async function section(load3) {
13852
+ try {
13853
+ return { items: await load3(), error: null };
13854
+ } catch (error) {
13855
+ return { items: [], error: errorMessage(error) };
13856
+ }
13857
+ }
13858
+ async function nextItems(req, res) {
13859
+ const cwd = getCwdParam(req, res);
13860
+ if (!cwd) return;
13861
+ const peers = loadConfigFrom(cwd).next?.peers ?? [];
13862
+ const [peerPrs, assignedIssues] = await Promise.all([
13863
+ section(() => fetchPeerPrs(cwd, peers)),
13864
+ section(() => fetchAssignedIssues(cwd))
13865
+ ]);
13866
+ const body = { peerPrs, assignedIssues };
13867
+ respondJson(res, 200, body);
13868
+ }
13869
+
13647
13870
  // src/commands/sessions/web/listScopedRules.ts
13648
13871
  import path27 from "path";
13649
13872
 
@@ -14006,8 +14229,8 @@ function listUsageItems(req, res) {
14006
14229
 
14007
14230
  // src/commands/sessions/web/openInCode.ts
14008
14231
  import { exec } from "child_process";
14009
- import { promisify as promisify4 } from "util";
14010
- var execAsync = promisify4(exec);
14232
+ import { promisify as promisify5 } from "util";
14233
+ var execAsync = promisify5(exec);
14011
14234
  async function openInCode(req, res) {
14012
14235
  const cwd = getCwdParam(req, res);
14013
14236
  if (!cwd) return;
@@ -14023,10 +14246,10 @@ async function openInCode(req, res) {
14023
14246
  }
14024
14247
 
14025
14248
  // src/commands/sessions/web/createCachedGhJson.ts
14026
- import { execFile as execFile5 } from "child_process";
14027
- import { promisify as promisify5 } from "util";
14028
- var execFileAsync4 = promisify5(execFile5);
14029
- var CACHE_TTL_MS4 = 3e4;
14249
+ import { execFile as execFile6 } from "child_process";
14250
+ import { promisify as promisify6 } from "util";
14251
+ var execFileAsync5 = promisify6(execFile6);
14252
+ var CACHE_TTL_MS5 = 3e4;
14030
14253
  function createCachedGhJson(args, parse5, fallback, options2 = {}) {
14031
14254
  const { cacheFallback = true } = options2;
14032
14255
  const cache6 = /* @__PURE__ */ new Map();
@@ -14037,7 +14260,7 @@ function createCachedGhJson(args, parse5, fallback, options2 = {}) {
14037
14260
  if (cached && cached.expires > now) return cached.value;
14038
14261
  let value = fallback;
14039
14262
  try {
14040
- const { stdout } = await execFileAsync4("gh", [...args, ...extraArgs], {
14263
+ const { stdout } = await execFileAsync5("gh", [...args, ...extraArgs], {
14041
14264
  encoding: "utf8",
14042
14265
  windowsHide: true,
14043
14266
  cwd
@@ -14047,7 +14270,7 @@ function createCachedGhJson(args, parse5, fallback, options2 = {}) {
14047
14270
  value = fallback;
14048
14271
  }
14049
14272
  if (cacheFallback || value !== fallback)
14050
- cache6.set(key, { value, expires: now + CACHE_TTL_MS4 });
14273
+ cache6.set(key, { value, expires: now + CACHE_TTL_MS5 });
14051
14274
  return value;
14052
14275
  };
14053
14276
  }
@@ -14214,11 +14437,11 @@ async function proxyToNode(req, res) {
14214
14437
  }
14215
14438
 
14216
14439
  // src/commands/sessions/web/ghAuthToken.ts
14217
- import { execFile as execFile6 } from "child_process";
14218
- import { promisify as promisify6 } from "util";
14219
- var execFileAsync5 = promisify6(execFile6);
14440
+ import { execFile as execFile7 } from "child_process";
14441
+ import { promisify as promisify7 } from "util";
14442
+ var execFileAsync6 = promisify7(execFile7);
14220
14443
  async function ghAuthToken(cwd) {
14221
- const { stdout } = await execFileAsync5("gh", ["auth", "token"], {
14444
+ const { stdout } = await execFileAsync6("gh", ["auth", "token"], {
14222
14445
  cwd,
14223
14446
  windowsHide: true
14224
14447
  });
@@ -14268,9 +14491,9 @@ async function previewImage(req, res) {
14268
14491
  }
14269
14492
 
14270
14493
  // src/commands/sessions/web/prStatus.ts
14271
- import { execFile as execFile7 } from "child_process";
14272
- import { promisify as promisify7 } from "util";
14273
- var execFileAsync6 = promisify7(execFile7);
14494
+ import { execFile as execFile8 } from "child_process";
14495
+ import { promisify as promisify8 } from "util";
14496
+ var execFileAsync7 = promisify8(execFile8);
14274
14497
  function toPrSummary(parsed) {
14275
14498
  if (typeof parsed.number !== "number") return null;
14276
14499
  return {
@@ -14300,7 +14523,7 @@ var getOpenPrForBranch = createCachedGhJson(
14300
14523
  );
14301
14524
  async function getCurrentBranch(cwd) {
14302
14525
  try {
14303
- const { stdout } = await execFileAsync6(
14526
+ const { stdout } = await execFileAsync7(
14304
14527
  "git",
14305
14528
  ["rev-parse", "--abbrev-ref", "HEAD"],
14306
14529
  { encoding: "utf8", windowsHide: true, cwd }
@@ -14367,48 +14590,6 @@ function repoEnvironments(streams) {
14367
14590
  );
14368
14591
  }
14369
14592
 
14370
- // src/commands/sessions/web/releases/ghJson.ts
14371
- import { execFile as execFile8 } from "child_process";
14372
- import { promisify as promisify8 } from "util";
14373
- var execFileAsync7 = promisify8(execFile8);
14374
- var CACHE_TTL_MS5 = 3e4;
14375
- var cache5 = /* @__PURE__ */ new Map();
14376
- function partialGraphqlData(error) {
14377
- const stdout = error.stdout;
14378
- if (typeof stdout !== "string") return null;
14379
- try {
14380
- const parsed = JSON.parse(stdout);
14381
- return parsed?.data ? parsed : null;
14382
- } catch {
14383
- return null;
14384
- }
14385
- }
14386
- async function runGh(cwd, args) {
14387
- try {
14388
- const { stdout } = await execFileAsync7("gh", args, {
14389
- encoding: "utf8",
14390
- windowsHide: true,
14391
- cwd,
14392
- maxBuffer: 16 * 1024 * 1024
14393
- });
14394
- return JSON.parse(stdout);
14395
- } catch (error) {
14396
- const partial = partialGraphqlData(error);
14397
- if (partial) return partial;
14398
- throw error;
14399
- }
14400
- }
14401
- function ghJson(cwd, args) {
14402
- const key = [cwd, ...args].join("\0");
14403
- const hit = cache5.get(key);
14404
- if (hit && Date.now() - hit.at < CACHE_TTL_MS5)
14405
- return hit.result;
14406
- const result = runGh(cwd, args);
14407
- cache5.set(key, { at: Date.now(), result });
14408
- result.catch(() => cache5.delete(key));
14409
- return result;
14410
- }
14411
-
14412
14593
  // src/commands/sessions/web/releases/commitsBehind.ts
14413
14594
  function compareQuery(shas) {
14414
14595
  const compares = shas.map(
@@ -14548,7 +14729,7 @@ function deploymentsQuery(environments) {
14548
14729
  }
14549
14730
 
14550
14731
  // src/commands/sessions/web/releases/liveDeployments.ts
14551
- function headCommit(node) {
14732
+ function headCommit2(node) {
14552
14733
  return node?.oid ? releaseCommit(node.oid, node) : null;
14553
14734
  }
14554
14735
  function environmentNodes(repository, count8) {
@@ -14575,7 +14756,7 @@ async function liveDeployments(cwd, repo, environments) {
14575
14756
  if (!repository) throw new Error(`Repository not readable: ${repo}`);
14576
14757
  return {
14577
14758
  defaultBranch: repository.defaultBranchRef?.name ?? null,
14578
- head: headCommit(repository.defaultBranchRef?.target),
14759
+ head: headCommit2(repository.defaultBranchRef?.target),
14579
14760
  ...deploymentMaps(environmentNodes(repository, distinct.length))
14580
14761
  };
14581
14762
  }
@@ -14696,7 +14877,7 @@ async function streamRunState(cwd, stream) {
14696
14877
  }
14697
14878
 
14698
14879
  // src/commands/sessions/web/releases/streamState.ts
14699
- function errorMessage(error) {
14880
+ function errorMessage2(error) {
14700
14881
  if (!(error instanceof Error)) return "Failed to read release state";
14701
14882
  return error.message.trim().split("\n")[0] || "Failed to read release state";
14702
14883
  }
@@ -14734,7 +14915,7 @@ async function streamState(cwd, stream, repoEnvironments2 = streamEnvironments(s
14734
14915
  head: null,
14735
14916
  nodes: [],
14736
14917
  run: null,
14737
- error: errorMessage(error)
14918
+ error: errorMessage2(error)
14738
14919
  };
14739
14920
  }
14740
14921
  }
@@ -15977,6 +16158,7 @@ var routes2 = {
15977
16158
  "GET /api/pr-status": prStatus,
15978
16159
  "GET /api/server-runs": handleServerRuns,
15979
16160
  "GET /api/pr-list": prList,
16161
+ "GET /api/next": nextItems,
15980
16162
  "GET /api/news/items": listNewsItems,
15981
16163
  "GET /api/news/nav": newsNavConfig,
15982
16164
  "GET /api/releases/state": releasesState,
@@ -27559,9 +27741,9 @@ function parsePrBody(body) {
27559
27741
  return sections;
27560
27742
  }
27561
27743
  function serializePrBody(sections) {
27562
- return sections.map((section2) => `## ${section2.heading}
27744
+ return sections.map((section3) => `## ${section3.heading}
27563
27745
 
27564
- ${section2.content}`).join("\n\n");
27746
+ ${section3.content}`).join("\n\n");
27565
27747
  }
27566
27748
 
27567
27749
  // src/commands/prs/editPrBody.ts
@@ -27610,11 +27792,11 @@ function findWallOfText(body) {
27610
27792
  }
27611
27793
  function splitParagraphs(body) {
27612
27794
  const paragraphs = [];
27613
- let section2 = "(intro)";
27795
+ let section3 = "(intro)";
27614
27796
  let lines2 = [];
27615
27797
  const flush = () => {
27616
27798
  if (lines2.length > 0) {
27617
- paragraphs.push({ section: section2, lines: lines2 });
27799
+ paragraphs.push({ section: section3, lines: lines2 });
27618
27800
  lines2 = [];
27619
27801
  }
27620
27802
  };
@@ -27622,7 +27804,7 @@ function splitParagraphs(body) {
27622
27804
  const heading2 = line.match(/^#{1,6}\s+(.*)$/);
27623
27805
  if (heading2) {
27624
27806
  flush();
27625
- section2 = heading2[1].trim();
27807
+ section3 = heading2[1].trim();
27626
27808
  } else if (line.trim() === "") {
27627
27809
  flush();
27628
27810
  } else {
@@ -29633,12 +29815,12 @@ import fs27 from "fs";
29633
29815
 
29634
29816
  // src/commands/lint/shared.ts
29635
29817
  import chalk202 from "chalk";
29636
- function reportViolations2(violations, checkName2, errorMessage2, successMessage) {
29818
+ function reportViolations2(violations, checkName2, errorMessage3, successMessage) {
29637
29819
  if (violations.length > 0) {
29638
29820
  console.error(chalk202.red(`
29639
29821
  ${checkName2} failed:
29640
29822
  `));
29641
- console.error(chalk202.red(` ${errorMessage2}
29823
+ console.error(chalk202.red(` ${errorMessage3}
29642
29824
  `));
29643
29825
  for (const violation of violations) {
29644
29826
  console.error(chalk202.red(` ${violation.filePath}:${violation.line}`));
@@ -31024,13 +31206,13 @@ function buildPlan2(functionName, sourceFile, sourcePath, destPath, project) {
31024
31206
  // src/commands/refactor/extract/displayPlan.ts
31025
31207
  import path50 from "path";
31026
31208
  import chalk207 from "chalk";
31027
- function section(title) {
31209
+ function section2(title) {
31028
31210
  return `
31029
31211
  ${chalk207.cyan(title)}`;
31030
31212
  }
31031
31213
  function displayImporters(plan2, cwd) {
31032
31214
  if (plan2.importersToUpdate.length === 0) return;
31033
- console.log(section("Update importers:"));
31215
+ console.log(section2("Update importers:"));
31034
31216
  for (const imp of plan2.importersToUpdate) {
31035
31217
  const rel = path50.relative(cwd, imp.file.getFilePath());
31036
31218
  console.log(` ${chalk207.dim(rel)}: \u2192 import from "${imp.relPath}"`);
@@ -31044,18 +31226,18 @@ function displayPlan(functionName, relDest, plan2, cwd) {
31044
31226
  console.log(` ${name}`);
31045
31227
  }
31046
31228
  if (plan2.imports.length > 0) {
31047
- console.log(section("Imports to copy:"));
31229
+ console.log(section2("Imports to copy:"));
31048
31230
  for (const imp of plan2.imports) {
31049
31231
  console.log(` ${formatImportLine(imp)}`);
31050
31232
  }
31051
31233
  }
31052
31234
  if (plan2.exportedDeps.length > 0) {
31053
- console.log(section("New imports from source:"));
31235
+ console.log(section2("New imports from source:"));
31054
31236
  console.log(
31055
31237
  ` import { ${plan2.exportedDeps.join(", ")} } from "${plan2.sourceRelPath}";`
31056
31238
  );
31057
31239
  }
31058
- console.log(section("Source file changes:"));
31240
+ console.log(section2("Source file changes:"));
31059
31241
  console.log(` Remove: ${plan2.extractedNames.join(", ")}`);
31060
31242
  if (plan2.sourceNeedsReimport) {
31061
31243
  console.log(
@@ -31064,7 +31246,7 @@ function displayPlan(functionName, relDest, plan2, cwd) {
31064
31246
  }
31065
31247
  displayImporters(plan2, cwd);
31066
31248
  if (plan2.barrel) {
31067
- console.log(section("Barrel export:"));
31249
+ console.log(section2("Barrel export:"));
31068
31250
  console.log(
31069
31251
  ` Add: export { ${functionName} } from "${plan2.barrelRelPath}";`
31070
31252
  );
@@ -32822,10 +33004,10 @@ function checkDescriptionLinksIssue(body) {
32822
33004
 
32823
33005
  // src/commands/review/highLevel/checkDescriptionSections.ts
32824
33006
  function sectionContent(body, heading2) {
32825
- const section2 = parsePrBody(body).find(
33007
+ const section3 = parsePrBody(body).find(
32826
33008
  (candidate) => candidate.heading.trim().toLowerCase() === heading2
32827
33009
  );
32828
- return section2 ? section2.content.trim() : null;
33010
+ return section3 ? section3.content.trim() : null;
32829
33011
  }
32830
33012
  function describe5(heading2, content) {
32831
33013
  if (content === null) return `no \`## ${heading2}\` section`;
@@ -46960,9 +47142,10 @@ function registerSessions(program2) {
46960
47142
  const cmd = program2.command("sessions").description("Web dashboard for Claude Code sessions").option("--no-open", "Do not open a browser on startup").action(
46961
47143
  (_options, command) => web({ port: "3100", open: command.optsWithGlobals().open })
46962
47144
  );
46963
- cmd.command("web").description("Start the sessions web dashboard").option("-p, --port <number>", "Port to listen on", "3100").option("--no-open", "Do not open a browser on startup").action(
47145
+ const webCmd = cmd.command("web").description("Start the sessions web dashboard").option("-p, --port <number>", "Port to listen on", "3100").option("--no-open", "Do not open a browser on startup").action(
46964
47146
  (options2, command) => web({ ...options2, open: command.optsWithGlobals().open })
46965
47147
  );
47148
+ configHelp(webCmd, nextConfigHelp);
46966
47149
  cmd.command("summarise").description("Generate one-line summaries for Claude sessions").option("-f, --force", "Re-generate all summaries, even existing ones").option("-n, --limit <count>", "Maximum number of sessions to summarise").action(summarise2);
46967
47150
  cmd.command("close").description(
46968
47151
  "Dismiss the current daemon-managed session, ending it and reaping its worktree"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@staff0rd/assist",
3
- "version": "0.725.1",
3
+ "version": "0.727.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "bin": {