@staff0rd/assist 0.725.1 → 0.726.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.726.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,188 @@ 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/peerPrsQuery.ts
13703
+ var peerPrsQuery = `query($owner: String!, $name: String!) {
13704
+ viewer { login }
13705
+ repository(owner: $owner, name: $name) {
13706
+ pullRequests(states: OPEN, first: 100, orderBy: { field: CREATED_AT, direction: ASC }) {
13707
+ nodes {
13708
+ number
13709
+ title
13710
+ url
13711
+ createdAt
13712
+ isDraft
13713
+ author { login }
13714
+ reviewRequests(first: 50) {
13715
+ nodes { requestedReviewer { ... on User { login } } }
13716
+ }
13717
+ latestReviews(first: 50) {
13718
+ nodes { author { login } state commit { oid } }
13719
+ }
13720
+ commits(last: 1) {
13721
+ nodes { commit { oid statusCheckRollup { state } } }
13722
+ }
13723
+ timelineItems(itemTypes: [REVIEW_REQUESTED_EVENT], last: 50) {
13724
+ nodes {
13725
+ ... on ReviewRequestedEvent {
13726
+ createdAt
13727
+ requestedReviewer { ... on User { login } }
13728
+ }
13729
+ }
13730
+ }
13731
+ }
13732
+ }
13733
+ }
13734
+ }`;
13735
+
13736
+ // src/commands/sessions/web/next/headCommit.ts
13737
+ function headCommit(node) {
13738
+ return node.commits?.nodes?.[0]?.commit ?? null;
13739
+ }
13740
+
13741
+ // src/commands/sessions/web/next/sameLogin.ts
13742
+ var sameLogin = (a, b) => a?.toLowerCase() === b.toLowerCase();
13743
+
13744
+ // src/commands/sessions/web/next/toNextPr.ts
13745
+ var CHECK_STATES = {
13746
+ SUCCESS: "success",
13747
+ FAILURE: "failure",
13748
+ ERROR: "failure",
13749
+ PENDING: "pending",
13750
+ EXPECTED: "pending"
13751
+ };
13752
+ function lastRequestedAt(node, viewer) {
13753
+ const events = (node.timelineItems?.nodes ?? []).filter(
13754
+ (event) => sameLogin(event?.requestedReviewer?.login, viewer)
13755
+ );
13756
+ return events.at(-1)?.createdAt ?? node.createdAt;
13757
+ }
13758
+ function toNextPr(node, author, requested, viewer) {
13759
+ const rollup = headCommit(node)?.statusCheckRollup?.state;
13760
+ return {
13761
+ number: node.number,
13762
+ title: node.title,
13763
+ author,
13764
+ createdAt: node.createdAt,
13765
+ url: node.url,
13766
+ requestedAt: requested ? lastRequestedAt(node, viewer) : node.createdAt,
13767
+ reason: requested ? "requested" : "peer",
13768
+ checks: rollup && CHECK_STATES[rollup] || null
13769
+ };
13770
+ }
13771
+
13772
+ // src/commands/sessions/web/next/selectPeerPrs.ts
13773
+ function isRequested(node, viewer) {
13774
+ return (node.reviewRequests?.nodes ?? []).some(
13775
+ (request) => sameLogin(request?.requestedReviewer?.login, viewer)
13776
+ );
13777
+ }
13778
+ function approvedHead(node, viewer) {
13779
+ const mine = (node.latestReviews?.nodes ?? []).find(
13780
+ (review2) => sameLogin(review2?.author?.login, viewer)
13781
+ );
13782
+ const headOid = headCommit(node)?.oid;
13783
+ return mine?.state === "APPROVED" && !!headOid && mine.commit?.oid === headOid;
13784
+ }
13785
+ function selectPeerPrs(nodes, viewer, peers) {
13786
+ const selected = [];
13787
+ for (const node of nodes) {
13788
+ const author = node.author?.login ?? "unknown";
13789
+ if (node.isDraft || sameLogin(author, viewer)) continue;
13790
+ const requested = isRequested(node, viewer);
13791
+ const byPeer = peers.some((peer) => sameLogin(author, peer));
13792
+ if (!requested && (!byPeer || approvedHead(node, viewer))) continue;
13793
+ selected.push(toNextPr(node, author, requested, viewer));
13794
+ }
13795
+ return selected.sort((a, b) => a.requestedAt.localeCompare(b.requestedAt));
13796
+ }
13797
+
13798
+ // src/commands/sessions/web/next/fetchPeerPrs.ts
13799
+ async function fetchPeerPrs(cwd, peers) {
13800
+ const response = await ghJson(cwd, [
13801
+ "api",
13802
+ "graphql",
13803
+ "-f",
13804
+ `query=${peerPrsQuery}`,
13805
+ "-F",
13806
+ "owner={owner}",
13807
+ "-F",
13808
+ "name={repo}"
13809
+ ]);
13810
+ const viewer = response.data?.viewer?.login;
13811
+ const repository = response.data?.repository;
13812
+ if (!viewer || !repository) throw new Error("Repository not readable");
13813
+ const nodes = (repository.pullRequests?.nodes ?? []).filter(
13814
+ (node) => !!node
13815
+ );
13816
+ return selectPeerPrs(nodes, viewer, peers);
13817
+ }
13818
+
13819
+ // src/commands/sessions/web/next/nextItems.ts
13820
+ function errorMessage(error) {
13821
+ const stderr = error.stderr;
13822
+ if (typeof stderr === "string" && stderr.trim()) return stderr.trim();
13823
+ return error instanceof Error ? error.message : String(error);
13824
+ }
13825
+ async function section(load3) {
13826
+ try {
13827
+ return { items: await load3(), error: null };
13828
+ } catch (error) {
13829
+ return { items: [], error: errorMessage(error) };
13830
+ }
13831
+ }
13832
+ async function nextItems(req, res) {
13833
+ const cwd = getCwdParam(req, res);
13834
+ if (!cwd) return;
13835
+ const peers = loadConfigFrom(cwd).next?.peers ?? [];
13836
+ const body = {
13837
+ peerPrs: await section(() => fetchPeerPrs(cwd, peers))
13838
+ };
13839
+ respondJson(res, 200, body);
13840
+ }
13841
+
13647
13842
  // src/commands/sessions/web/listScopedRules.ts
13648
13843
  import path27 from "path";
13649
13844
 
@@ -14006,8 +14201,8 @@ function listUsageItems(req, res) {
14006
14201
 
14007
14202
  // src/commands/sessions/web/openInCode.ts
14008
14203
  import { exec } from "child_process";
14009
- import { promisify as promisify4 } from "util";
14010
- var execAsync = promisify4(exec);
14204
+ import { promisify as promisify5 } from "util";
14205
+ var execAsync = promisify5(exec);
14011
14206
  async function openInCode(req, res) {
14012
14207
  const cwd = getCwdParam(req, res);
14013
14208
  if (!cwd) return;
@@ -14023,10 +14218,10 @@ async function openInCode(req, res) {
14023
14218
  }
14024
14219
 
14025
14220
  // 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;
14221
+ import { execFile as execFile6 } from "child_process";
14222
+ import { promisify as promisify6 } from "util";
14223
+ var execFileAsync5 = promisify6(execFile6);
14224
+ var CACHE_TTL_MS5 = 3e4;
14030
14225
  function createCachedGhJson(args, parse5, fallback, options2 = {}) {
14031
14226
  const { cacheFallback = true } = options2;
14032
14227
  const cache6 = /* @__PURE__ */ new Map();
@@ -14037,7 +14232,7 @@ function createCachedGhJson(args, parse5, fallback, options2 = {}) {
14037
14232
  if (cached && cached.expires > now) return cached.value;
14038
14233
  let value = fallback;
14039
14234
  try {
14040
- const { stdout } = await execFileAsync4("gh", [...args, ...extraArgs], {
14235
+ const { stdout } = await execFileAsync5("gh", [...args, ...extraArgs], {
14041
14236
  encoding: "utf8",
14042
14237
  windowsHide: true,
14043
14238
  cwd
@@ -14047,7 +14242,7 @@ function createCachedGhJson(args, parse5, fallback, options2 = {}) {
14047
14242
  value = fallback;
14048
14243
  }
14049
14244
  if (cacheFallback || value !== fallback)
14050
- cache6.set(key, { value, expires: now + CACHE_TTL_MS4 });
14245
+ cache6.set(key, { value, expires: now + CACHE_TTL_MS5 });
14051
14246
  return value;
14052
14247
  };
14053
14248
  }
@@ -14214,11 +14409,11 @@ async function proxyToNode(req, res) {
14214
14409
  }
14215
14410
 
14216
14411
  // 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);
14412
+ import { execFile as execFile7 } from "child_process";
14413
+ import { promisify as promisify7 } from "util";
14414
+ var execFileAsync6 = promisify7(execFile7);
14220
14415
  async function ghAuthToken(cwd) {
14221
- const { stdout } = await execFileAsync5("gh", ["auth", "token"], {
14416
+ const { stdout } = await execFileAsync6("gh", ["auth", "token"], {
14222
14417
  cwd,
14223
14418
  windowsHide: true
14224
14419
  });
@@ -14268,9 +14463,9 @@ async function previewImage(req, res) {
14268
14463
  }
14269
14464
 
14270
14465
  // 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);
14466
+ import { execFile as execFile8 } from "child_process";
14467
+ import { promisify as promisify8 } from "util";
14468
+ var execFileAsync7 = promisify8(execFile8);
14274
14469
  function toPrSummary(parsed) {
14275
14470
  if (typeof parsed.number !== "number") return null;
14276
14471
  return {
@@ -14300,7 +14495,7 @@ var getOpenPrForBranch = createCachedGhJson(
14300
14495
  );
14301
14496
  async function getCurrentBranch(cwd) {
14302
14497
  try {
14303
- const { stdout } = await execFileAsync6(
14498
+ const { stdout } = await execFileAsync7(
14304
14499
  "git",
14305
14500
  ["rev-parse", "--abbrev-ref", "HEAD"],
14306
14501
  { encoding: "utf8", windowsHide: true, cwd }
@@ -14367,48 +14562,6 @@ function repoEnvironments(streams) {
14367
14562
  );
14368
14563
  }
14369
14564
 
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
14565
  // src/commands/sessions/web/releases/commitsBehind.ts
14413
14566
  function compareQuery(shas) {
14414
14567
  const compares = shas.map(
@@ -14548,7 +14701,7 @@ function deploymentsQuery(environments) {
14548
14701
  }
14549
14702
 
14550
14703
  // src/commands/sessions/web/releases/liveDeployments.ts
14551
- function headCommit(node) {
14704
+ function headCommit2(node) {
14552
14705
  return node?.oid ? releaseCommit(node.oid, node) : null;
14553
14706
  }
14554
14707
  function environmentNodes(repository, count8) {
@@ -14575,7 +14728,7 @@ async function liveDeployments(cwd, repo, environments) {
14575
14728
  if (!repository) throw new Error(`Repository not readable: ${repo}`);
14576
14729
  return {
14577
14730
  defaultBranch: repository.defaultBranchRef?.name ?? null,
14578
- head: headCommit(repository.defaultBranchRef?.target),
14731
+ head: headCommit2(repository.defaultBranchRef?.target),
14579
14732
  ...deploymentMaps(environmentNodes(repository, distinct.length))
14580
14733
  };
14581
14734
  }
@@ -14696,7 +14849,7 @@ async function streamRunState(cwd, stream) {
14696
14849
  }
14697
14850
 
14698
14851
  // src/commands/sessions/web/releases/streamState.ts
14699
- function errorMessage(error) {
14852
+ function errorMessage2(error) {
14700
14853
  if (!(error instanceof Error)) return "Failed to read release state";
14701
14854
  return error.message.trim().split("\n")[0] || "Failed to read release state";
14702
14855
  }
@@ -14734,7 +14887,7 @@ async function streamState(cwd, stream, repoEnvironments2 = streamEnvironments(s
14734
14887
  head: null,
14735
14888
  nodes: [],
14736
14889
  run: null,
14737
- error: errorMessage(error)
14890
+ error: errorMessage2(error)
14738
14891
  };
14739
14892
  }
14740
14893
  }
@@ -15977,6 +16130,7 @@ var routes2 = {
15977
16130
  "GET /api/pr-status": prStatus,
15978
16131
  "GET /api/server-runs": handleServerRuns,
15979
16132
  "GET /api/pr-list": prList,
16133
+ "GET /api/next": nextItems,
15980
16134
  "GET /api/news/items": listNewsItems,
15981
16135
  "GET /api/news/nav": newsNavConfig,
15982
16136
  "GET /api/releases/state": releasesState,
@@ -27559,9 +27713,9 @@ function parsePrBody(body) {
27559
27713
  return sections;
27560
27714
  }
27561
27715
  function serializePrBody(sections) {
27562
- return sections.map((section2) => `## ${section2.heading}
27716
+ return sections.map((section3) => `## ${section3.heading}
27563
27717
 
27564
- ${section2.content}`).join("\n\n");
27718
+ ${section3.content}`).join("\n\n");
27565
27719
  }
27566
27720
 
27567
27721
  // src/commands/prs/editPrBody.ts
@@ -27610,11 +27764,11 @@ function findWallOfText(body) {
27610
27764
  }
27611
27765
  function splitParagraphs(body) {
27612
27766
  const paragraphs = [];
27613
- let section2 = "(intro)";
27767
+ let section3 = "(intro)";
27614
27768
  let lines2 = [];
27615
27769
  const flush = () => {
27616
27770
  if (lines2.length > 0) {
27617
- paragraphs.push({ section: section2, lines: lines2 });
27771
+ paragraphs.push({ section: section3, lines: lines2 });
27618
27772
  lines2 = [];
27619
27773
  }
27620
27774
  };
@@ -27622,7 +27776,7 @@ function splitParagraphs(body) {
27622
27776
  const heading2 = line.match(/^#{1,6}\s+(.*)$/);
27623
27777
  if (heading2) {
27624
27778
  flush();
27625
- section2 = heading2[1].trim();
27779
+ section3 = heading2[1].trim();
27626
27780
  } else if (line.trim() === "") {
27627
27781
  flush();
27628
27782
  } else {
@@ -29633,12 +29787,12 @@ import fs27 from "fs";
29633
29787
 
29634
29788
  // src/commands/lint/shared.ts
29635
29789
  import chalk202 from "chalk";
29636
- function reportViolations2(violations, checkName2, errorMessage2, successMessage) {
29790
+ function reportViolations2(violations, checkName2, errorMessage3, successMessage) {
29637
29791
  if (violations.length > 0) {
29638
29792
  console.error(chalk202.red(`
29639
29793
  ${checkName2} failed:
29640
29794
  `));
29641
- console.error(chalk202.red(` ${errorMessage2}
29795
+ console.error(chalk202.red(` ${errorMessage3}
29642
29796
  `));
29643
29797
  for (const violation of violations) {
29644
29798
  console.error(chalk202.red(` ${violation.filePath}:${violation.line}`));
@@ -31024,13 +31178,13 @@ function buildPlan2(functionName, sourceFile, sourcePath, destPath, project) {
31024
31178
  // src/commands/refactor/extract/displayPlan.ts
31025
31179
  import path50 from "path";
31026
31180
  import chalk207 from "chalk";
31027
- function section(title) {
31181
+ function section2(title) {
31028
31182
  return `
31029
31183
  ${chalk207.cyan(title)}`;
31030
31184
  }
31031
31185
  function displayImporters(plan2, cwd) {
31032
31186
  if (plan2.importersToUpdate.length === 0) return;
31033
- console.log(section("Update importers:"));
31187
+ console.log(section2("Update importers:"));
31034
31188
  for (const imp of plan2.importersToUpdate) {
31035
31189
  const rel = path50.relative(cwd, imp.file.getFilePath());
31036
31190
  console.log(` ${chalk207.dim(rel)}: \u2192 import from "${imp.relPath}"`);
@@ -31044,18 +31198,18 @@ function displayPlan(functionName, relDest, plan2, cwd) {
31044
31198
  console.log(` ${name}`);
31045
31199
  }
31046
31200
  if (plan2.imports.length > 0) {
31047
- console.log(section("Imports to copy:"));
31201
+ console.log(section2("Imports to copy:"));
31048
31202
  for (const imp of plan2.imports) {
31049
31203
  console.log(` ${formatImportLine(imp)}`);
31050
31204
  }
31051
31205
  }
31052
31206
  if (plan2.exportedDeps.length > 0) {
31053
- console.log(section("New imports from source:"));
31207
+ console.log(section2("New imports from source:"));
31054
31208
  console.log(
31055
31209
  ` import { ${plan2.exportedDeps.join(", ")} } from "${plan2.sourceRelPath}";`
31056
31210
  );
31057
31211
  }
31058
- console.log(section("Source file changes:"));
31212
+ console.log(section2("Source file changes:"));
31059
31213
  console.log(` Remove: ${plan2.extractedNames.join(", ")}`);
31060
31214
  if (plan2.sourceNeedsReimport) {
31061
31215
  console.log(
@@ -31064,7 +31218,7 @@ function displayPlan(functionName, relDest, plan2, cwd) {
31064
31218
  }
31065
31219
  displayImporters(plan2, cwd);
31066
31220
  if (plan2.barrel) {
31067
- console.log(section("Barrel export:"));
31221
+ console.log(section2("Barrel export:"));
31068
31222
  console.log(
31069
31223
  ` Add: export { ${functionName} } from "${plan2.barrelRelPath}";`
31070
31224
  );
@@ -32822,10 +32976,10 @@ function checkDescriptionLinksIssue(body) {
32822
32976
 
32823
32977
  // src/commands/review/highLevel/checkDescriptionSections.ts
32824
32978
  function sectionContent(body, heading2) {
32825
- const section2 = parsePrBody(body).find(
32979
+ const section3 = parsePrBody(body).find(
32826
32980
  (candidate) => candidate.heading.trim().toLowerCase() === heading2
32827
32981
  );
32828
- return section2 ? section2.content.trim() : null;
32982
+ return section3 ? section3.content.trim() : null;
32829
32983
  }
32830
32984
  function describe5(heading2, content) {
32831
32985
  if (content === null) return `no \`## ${heading2}\` section`;
@@ -46960,9 +47114,10 @@ function registerSessions(program2) {
46960
47114
  const cmd = program2.command("sessions").description("Web dashboard for Claude Code sessions").option("--no-open", "Do not open a browser on startup").action(
46961
47115
  (_options, command) => web({ port: "3100", open: command.optsWithGlobals().open })
46962
47116
  );
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(
47117
+ 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
47118
  (options2, command) => web({ ...options2, open: command.optsWithGlobals().open })
46965
47119
  );
47120
+ configHelp(webCmd, nextConfigHelp);
46966
47121
  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
47122
  cmd.command("close").description(
46968
47123
  "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.726.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "bin": {