@staff0rd/assist 0.1209.7 → 0.1209.9

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.
Files changed (42) hide show
  1. package/dist/.build-files +35 -36
  2. package/dist/built-version +1 -1
  3. package/dist/{chunk-OJB7NJRI.js → chunk-4VJXZMG4.js} +1 -1
  4. package/dist/chunk-5PHEZZZO.js +186 -0
  5. package/dist/{chunk-MUHZ22VQ.js → chunk-7VTFCHIT.js} +1 -1
  6. package/dist/{chunk-2DMKXYGN.js → chunk-CGTWGF4R.js} +1 -1
  7. package/dist/{chunk-B5MQGARY.js → chunk-DOIDAWFX.js} +5 -5
  8. package/dist/{chunk-76IN2RPB.js → chunk-GCVGBOX5.js} +7 -25
  9. package/dist/{chunk-HHHJ6PEO.js → chunk-KU2IELJH.js} +179 -25
  10. package/dist/{chunk-3T5UPJSQ.js → chunk-KU2IRR7U.js} +1 -1
  11. package/dist/{chunk-2JSJQPC3.js → chunk-LCEKIRDI.js} +2 -2
  12. package/dist/{chunk-GXXGMQTW.js → chunk-NEC6OVBH.js} +3 -3
  13. package/dist/{chunk-3MZSXH2X.js → chunk-OSNDBX3R.js} +1 -1
  14. package/dist/{chunk-LO6MUDSE.js → chunk-PTOLRRVQ.js} +1 -1
  15. package/dist/{chunk-N4HYQKDE.js → chunk-SFB4YFAJ.js} +1 -1
  16. package/dist/{chunk-QAJUCN3A.js → chunk-UOYZCIWZ.js} +20 -1
  17. package/dist/{chunk-BCXWSOB3.js → chunk-WGQXKODT.js} +1 -1
  18. package/dist/{chunk-FYYZG4GY.js → chunk-YR3NOIK4.js} +20 -4
  19. package/dist/{chunk-ZWLBKWOG.js → chunk-ZZPDMUIS.js} +1 -1
  20. package/dist/commands/sessions/web/bundle.js +440 -440
  21. package/dist/{doctorNodes-75P5VYFP.js → doctorNodes-ILYR6LIB.js} +3 -3
  22. package/dist/{fixConflict-X4D2GILF.js → fixConflict-SHPVWNCI.js} +6 -7
  23. package/dist/index.js +23 -23
  24. package/dist/{launchMode-THX4GZUV.js → launchMode-E6C56QJ5.js} +6 -7
  25. package/dist/{next-TXZCR5SM.js → next-RU4CE65F.js} +5 -6
  26. package/dist/{pullIfConfigured-OZ5OPCR2.js → pullIfConfigured-2IBMXTYT.js} +2 -3
  27. package/dist/{refine-WFX7XY5B.js → refine-PM727EVL.js} +7 -8
  28. package/dist/{restartNode-7NLISQB4.js → restartNode-UQER2YEA.js} +5 -5
  29. package/dist/{review-PZWEAYOB.js → review-6QWY2FON.js} +87 -128
  30. package/dist/{reviewPrComments-VT3QPSKM.js → reviewPrComments-BOOP6SKN.js} +6 -7
  31. package/dist/{run-4SMOXOIS.js → run-T4LRCNGP.js} +2 -2
  32. package/dist/{run-TCKC6JKH.js → run-XKK6RIXT.js} +4 -5
  33. package/dist/{runDaemon-VNI7RMPE.js → runDaemon-HJT23FAG.js} +11 -13
  34. package/dist/{runRefine-J647JFTB.js → runRefine-U5VSEHLT.js} +7 -8
  35. package/dist/{signExtension-ZPQBWJPM.js → signExtension-R6ALW56Z.js} +1 -1
  36. package/dist/{updateNode-KEPO26SS.js → updateNode-WDASOL4N.js} +5 -5
  37. package/dist/{web-W33FHI2A.js → web-CADUUMQL.js} +10 -9
  38. package/dist/{web-5XUS5CKZ.js → web-VPM5E2E6.js} +10 -9
  39. package/package.json +1 -1
  40. package/dist/chunk-B3JSQA5D.js +0 -25
  41. package/dist/chunk-ZABRGL2F.js +0 -45
  42. package/dist/{chunk-KYJAT623.js → chunk-VIKP2CPB.js} +3 -3
@@ -29,8 +29,8 @@ import {
29
29
  } from "./chunk-RFMBA6WA.js";
30
30
  import {
31
31
  checkoutPr
32
- } from "./chunk-B5MQGARY.js";
33
- import "./chunk-76IN2RPB.js";
32
+ } from "./chunk-DOIDAWFX.js";
33
+ import "./chunk-GCVGBOX5.js";
34
34
  import "./chunk-2GTVP7JI.js";
35
35
  import "./chunk-V3AWLJ7P.js";
36
36
  import "./chunk-UN4ABKA7.js";
@@ -49,8 +49,6 @@ import {
49
49
  exitWithConfigErrors
50
50
  } from "./chunk-JPRADR2E.js";
51
51
  import "./chunk-C3MGHR3N.js";
52
- import "./chunk-B3JSQA5D.js";
53
- import "./chunk-QWYSWWN5.js";
54
52
  import {
55
53
  launchBlocker
56
54
  } from "./chunk-LQMU4BUO.js";
@@ -89,8 +87,15 @@ import "./chunk-IXBA6TVF.js";
89
87
  import "./chunk-3VDV7VHX.js";
90
88
  import {
91
89
  configEntryLayers,
92
- ghFailure
93
- } from "./chunk-ZABRGL2F.js";
90
+ ghFailure,
91
+ highLevelProgressPath,
92
+ highLevelReviewPath,
93
+ loadHighLevelProgress,
94
+ readJsonFile,
95
+ readStoredHighLevelProgress,
96
+ saveHighLevelProgress,
97
+ writeJsonFile
98
+ } from "./chunk-5PHEZZZO.js";
94
99
  import {
95
100
  stripAnsi
96
101
  } from "./chunk-YJ72SXVD.js";
@@ -99,7 +104,7 @@ import {
99
104
  readRawConfigLayers
100
105
  } from "./chunk-XLFTF22D.js";
101
106
  import "./chunk-D3T6U7N4.js";
102
- import "./chunk-FYYZG4GY.js";
107
+ import "./chunk-YR3NOIK4.js";
103
108
  import "./chunk-WYNRHOR7.js";
104
109
  import "./chunk-PIDKNOD6.js";
105
110
  import "./chunk-ZFX4EZMW.js";
@@ -120,7 +125,8 @@ import "./chunk-AGBLLBXG.js";
120
125
  import "./chunk-B5ZOANOD.js";
121
126
  import "./chunk-YNHPTUHS.js";
122
127
  import "./chunk-FVUE7H5X.js";
123
- import "./chunk-QAJUCN3A.js";
128
+ import "./chunk-UOYZCIWZ.js";
129
+ import "./chunk-QWYSWWN5.js";
124
130
  import "./chunk-A2XSU5K6.js";
125
131
  import "./chunk-5H7EHZ3J.js";
126
132
  import {
@@ -183,9 +189,7 @@ import {
183
189
  import "./chunk-QCKZ4DFR.js";
184
190
  import "./chunk-GRXFWFGP.js";
185
191
  import "./chunk-TVQY3HPZ.js";
186
- import {
187
- getStoreDir
188
- } from "./chunk-CGYVYHMM.js";
192
+ import "./chunk-CGYVYHMM.js";
189
193
  import {
190
194
  findRepoRoot
191
195
  } from "./chunk-WXQ3EA5H.js";
@@ -528,8 +532,8 @@ function reportConfigured(result) {
528
532
  import chalk5 from "chalk";
529
533
  function savedMessage(subject) {
530
534
  const head = subject.headSha.slice(0, 7);
531
- if (subject.draft)
532
- return `Reopening the review left open for ${head} at ${subject.draft.savedAt}; pass --force to start fresh.`;
535
+ if (subject.progress)
536
+ return `Reopening the review left open for #${subject.prNumber} at ${subject.progress.updatedAt}; Start fresh in the pane discards it.`;
533
537
  if (subject.saved)
534
538
  return `Reopening the review saved for ${head} at ${subject.saved.reviewedAt} (${subject.saved.verdict}); pass --force to start fresh.`;
535
539
  return void 0;
@@ -540,7 +544,7 @@ function announceSavedReview(subject, force) {
540
544
  else if (force)
541
545
  console.log(
542
546
  chalk5.dim(
543
- `Discarding any review saved for ${subject.headSha.slice(0, 7)} and starting fresh (--force).`
547
+ `Discarding any verdict saved for ${subject.headSha.slice(0, 7)} and starting fresh (--force).`
544
548
  )
545
549
  );
546
550
  }
@@ -998,7 +1002,7 @@ function fetchHighLevelPr(prNumber, repo) {
998
1002
  }
999
1003
 
1000
1004
  // src/commands/review/highLevel/gatherHighLevelSlices.ts
1001
- import { readFileSync as readFileSync2 } from "fs";
1005
+ import { readFileSync } from "fs";
1002
1006
 
1003
1007
  // src/commands/review/highLevel/formatSlicingRequest.ts
1004
1008
  var RULES = [
@@ -1058,20 +1062,6 @@ function formatSlicingRequest(hunks) {
1058
1062
  ].join("\n");
1059
1063
  }
1060
1064
 
1061
- // src/commands/review/highLevel/highLevelReviewPath.ts
1062
- import { join } from "path";
1063
- function slug(value) {
1064
- return value.replace(/[^\w.-]+/g, "-");
1065
- }
1066
- function highLevelReviewPath(repo, headRef, headSha) {
1067
- return join(
1068
- getStoreDir(),
1069
- "high-level-reviews",
1070
- slug(repo),
1071
- `${slug(headRef)}-${headSha}.json`
1072
- );
1073
- }
1074
-
1075
1065
  // src/commands/review/highLevel/highLevelSlicesPath.ts
1076
1066
  function highLevelSlicesPath(repo, headRef, headSha) {
1077
1067
  return highLevelReviewPath(repo, headRef, headSha).replace(
@@ -1115,17 +1105,6 @@ function listHighLevelHunks(files) {
1115
1105
  return files.flatMap(hunksOfFile);
1116
1106
  }
1117
1107
 
1118
- // src/commands/review/highLevel/readJsonFile.ts
1119
- import { existsSync, readFileSync } from "fs";
1120
- function readJsonFile(path) {
1121
- if (!existsSync(path)) return void 0;
1122
- try {
1123
- return JSON.parse(readFileSync(path, "utf8"));
1124
- } catch {
1125
- return void 0;
1126
- }
1127
- }
1128
-
1129
1108
  // src/commands/review/highLevel/parseHighLevelSlicesInput.ts
1130
1109
  import { z } from "zod";
1131
1110
  var slicesSchema = z.array(
@@ -1198,20 +1177,10 @@ function resolveHighLevelSlices(raw, hunks) {
1198
1177
  return { slices, ...manualTesting ? { manualTesting } : {}, warnings };
1199
1178
  }
1200
1179
 
1201
- // src/commands/review/highLevel/writeJsonFile.ts
1202
- import { mkdirSync, writeFileSync } from "fs";
1203
- import { dirname as dirname2 } from "path";
1204
- function writeJsonFile(path, data) {
1205
- mkdirSync(dirname2(path), { recursive: true });
1206
- writeFileSync(path, `${JSON.stringify(data, null, 2)}
1207
- `);
1208
- return path;
1209
- }
1210
-
1211
1180
  // src/commands/review/highLevel/gatherHighLevelSlices.ts
1212
1181
  function readSlicesFile(file) {
1213
1182
  try {
1214
- return JSON.parse(readFileSync2(file, "utf8"));
1183
+ return JSON.parse(readFileSync(file, "utf8"));
1215
1184
  } catch (error) {
1216
1185
  throw new Error(
1217
1186
  `could not read slices from ${file}: ${error instanceof Error ? error.message : String(error)}`
@@ -1494,31 +1463,18 @@ function gatherHighLevelTests(files, testPaths, repo, headSha) {
1494
1463
  );
1495
1464
  }
1496
1465
 
1497
- // src/commands/review/highLevel/highLevelDraftPath.ts
1498
- function highLevelDraftPath(repo, headRef, headSha) {
1499
- return highLevelReviewPath(repo, headRef, headSha).replace(
1500
- /\.json$/,
1501
- ".draft.json"
1502
- );
1503
- }
1504
-
1505
- // src/commands/review/highLevel/loadHighLevelDraft.ts
1506
- function loadHighLevelDraft(repo, headRef, headSha) {
1507
- return readJsonFile(highLevelDraftPath(repo, headRef, headSha));
1508
- }
1509
-
1510
1466
  // src/commands/review/highLevel/loadHighLevelReview.ts
1511
1467
  function loadHighLevelReview(repo, headRef, headSha) {
1512
1468
  return readJsonFile(highLevelReviewPath(repo, headRef, headSha));
1513
1469
  }
1514
1470
 
1515
1471
  // src/commands/review/highLevel/loadReopenedReview.ts
1516
- function loadReopenedReview(repo, headRef, headSha) {
1517
- const saved = loadHighLevelReview(repo, headRef, headSha);
1518
- const draft = loadHighLevelDraft(repo, headRef, headSha);
1472
+ function loadReopenedReview({ repo, prNumber, headRef, headSha }, force) {
1473
+ const saved = force ? void 0 : loadHighLevelReview(repo, headRef, headSha);
1474
+ const progress = loadHighLevelProgress(repo, prNumber, headSha);
1519
1475
  return {
1520
1476
  ...saved ? { saved } : {},
1521
- ...draft ? { draft } : {}
1477
+ ...progress ? { progress } : {}
1522
1478
  };
1523
1479
  }
1524
1480
 
@@ -1542,12 +1498,12 @@ function selectCriticalDiffs(files, criticalPaths) {
1542
1498
  // src/commands/review/highLevel/gatherHighLevelSubject.ts
1543
1499
  function gatherHighLevelSubject(prNumber, force, slicing) {
1544
1500
  const { org, repo } = getRepoInfo();
1545
- const slug2 = `${org}/${repo}`;
1501
+ const slug = `${org}/${repo}`;
1546
1502
  const pr = fetchHighLevelPr(prNumber, { org, repo });
1547
1503
  const config = resolveHighLevelConfig(loadConfig());
1548
- const fetched = fetchHighLevelFiles(prNumber, slug2);
1504
+ const fetched = fetchHighLevelFiles(prNumber, slug);
1549
1505
  const files = capHighLevelPatches(fetched, config.criticalPaths);
1550
- const head = { repo: slug2, headRef: pr.headRef, headSha: pr.headSha };
1506
+ const head = { repo: slug, headRef: pr.headRef, headSha: pr.headSha };
1551
1507
  const sliced = slicing ? gatherHighLevelSlices({ ...head, prNumber }, files, slicing) : void 0;
1552
1508
  return {
1553
1509
  ...head,
@@ -1563,11 +1519,11 @@ function gatherHighLevelSubject(prNumber, force, slicing) {
1563
1519
  structure: buildHighLevelStructure(files),
1564
1520
  criticalDiffs: selectCriticalDiffs(files, config.criticalPaths),
1565
1521
  criticalPaths: config.criticalPaths,
1566
- tests: gatherHighLevelTests(fetched, config.testPaths, slug2, pr.headSha),
1522
+ tests: gatherHighLevelTests(fetched, config.testPaths, slug, pr.headSha),
1567
1523
  testPaths: config.testPaths,
1568
1524
  collapsedPaths: config.collapsedPaths,
1569
1525
  ...sliced,
1570
- ...force ? {} : loadReopenedReview(slug2, pr.headRef, pr.headSha)
1526
+ ...loadReopenedReview({ ...head, prNumber }, force)
1571
1527
  };
1572
1528
  }
1573
1529
 
@@ -1616,19 +1572,6 @@ function highLevelProgress(checks, decision, slices) {
1616
1572
  };
1617
1573
  }
1618
1574
 
1619
- // src/commands/review/highLevel/buildHighLevelDraft.ts
1620
- function buildHighLevelDraft(subject, decision) {
1621
- const { checks, repo, prNumber, headRef, headSha } = subject;
1622
- return {
1623
- repo,
1624
- prNumber,
1625
- headRef,
1626
- headSha,
1627
- savedAt: (/* @__PURE__ */ new Date()).toISOString(),
1628
- ...highLevelProgress(checks, decision, subject.slices)
1629
- };
1630
- }
1631
-
1632
1575
  // src/commands/review/highLevel/highLevelReviewEvent.ts
1633
1576
  function highLevelReviewEvent(decision) {
1634
1577
  if (decision.reviewEvent) return decision.reviewEvent;
@@ -1654,30 +1597,41 @@ function buildHighLevelRecord(subject, decision) {
1654
1597
  };
1655
1598
  }
1656
1599
 
1657
- // src/commands/review/highLevel/clearHighLevelDraft.ts
1600
+ // src/commands/review/highLevel/discardHighLevelProgress.ts
1658
1601
  import { rmSync } from "fs";
1659
- function clearHighLevelDraft(repo, headRef, headSha) {
1660
- rmSync(highLevelDraftPath(repo, headRef, headSha), { force: true });
1661
- }
1662
1602
 
1663
- // src/commands/review/highLevel/discardHighLevelProgress.ts
1664
- import { rmSync as rmSync2 } from "fs";
1665
- function discardHighLevelProgress(repo, headRef, headSha) {
1666
- clearHighLevelDraft(repo, headRef, headSha);
1667
- rmSync2(highLevelReviewPath(repo, headRef, headSha), { force: true });
1603
+ // src/commands/review/highLevel/progressStore/clearHighLevelProgress.ts
1604
+ var CLEAR_REASONS = /* @__PURE__ */ new Set(["verdict", "restart"]);
1605
+ var KEPT_CLOSED_REQUESTS = 20;
1606
+ function clearHighLevelProgress(repo, prNumber, reason, requestId) {
1607
+ if (!CLEAR_REASONS.has(reason))
1608
+ throw new Error(
1609
+ `High-level review progress is cleared only by a verdict or a restart, not \`${reason}\`.`
1610
+ );
1611
+ const previous = readStoredHighLevelProgress(repo, prNumber)?.closedRequests ?? [];
1612
+ writeJsonFile(highLevelProgressPath(repo, prNumber), {
1613
+ repo,
1614
+ prNumber,
1615
+ updatedAt: (/* @__PURE__ */ new Date()).toISOString(),
1616
+ closedRequests: [...previous, ...requestId ? [requestId] : []].slice(
1617
+ -KEPT_CLOSED_REQUESTS
1618
+ ),
1619
+ items: [],
1620
+ reviewComments: []
1621
+ });
1668
1622
  }
1669
1623
 
1670
- // src/commands/review/highLevel/saveHighLevelDraft.ts
1671
- function saveHighLevelDraft(draft) {
1672
- return writeJsonFile(
1673
- highLevelDraftPath(draft.repo, draft.headRef, draft.headSha),
1674
- draft
1675
- );
1624
+ // src/commands/review/highLevel/discardHighLevelProgress.ts
1625
+ function discardHighLevelProgress(subject, requestId) {
1626
+ clearHighLevelProgress(subject.repo, subject.prNumber, "restart", requestId);
1627
+ rmSync(highLevelReviewPath(subject.repo, subject.headRef, subject.headSha), {
1628
+ force: true
1629
+ });
1676
1630
  }
1677
1631
 
1678
1632
  // src/commands/review/highLevel/highLevelPreviewMetadata.ts
1679
1633
  function reopenedFrom(subject) {
1680
- const at = subject.draft?.savedAt ?? subject.saved?.reviewedAt;
1634
+ const at = subject.progress?.updatedAt ?? subject.saved?.reviewedAt;
1681
1635
  return at ? [{ label: "Reopened from", value: at }] : [];
1682
1636
  }
1683
1637
  function highLevelPreviewMetadata(subject) {
@@ -1705,7 +1659,7 @@ function highLevelPreviewPayload(subject) {
1705
1659
  slices,
1706
1660
  manualTesting,
1707
1661
  saved,
1708
- draft
1662
+ progress
1709
1663
  } = subject;
1710
1664
  return {
1711
1665
  repo,
@@ -1722,7 +1676,7 @@ function highLevelPreviewPayload(subject) {
1722
1676
  ...slices ? { slices } : {},
1723
1677
  ...manualTesting ? { manualTesting } : {},
1724
1678
  ...saved ? { saved } : {},
1725
- ...draft ? { draft } : {}
1679
+ ...progress ? { progress } : {}
1726
1680
  };
1727
1681
  }
1728
1682
 
@@ -1911,11 +1865,12 @@ function submitHighLevelReview(record) {
1911
1865
  // src/commands/review/highLevel/openHighLevelOverlay.ts
1912
1866
  async function openHighLevelOverlay(sessionId2, subject, onRestart = async () => {
1913
1867
  }) {
1868
+ const requestId = randomUUID();
1914
1869
  const decision = await awaitPreviewApproval(
1915
1870
  "High-level review",
1916
1871
  {
1917
1872
  sessionId: sessionId2,
1918
- requestId: randomUUID(),
1873
+ requestId,
1919
1874
  title: `${subject.repo}#${subject.prNumber} \u2014 ${subject.title}`,
1920
1875
  body: JSON.stringify(highLevelPreviewPayload(subject)),
1921
1876
  prNumber: subject.prNumber,
@@ -1925,12 +1880,16 @@ async function openHighLevelOverlay(sessionId2, subject, onRestart = async () =>
1925
1880
  { rejectIsOutcome: true }
1926
1881
  );
1927
1882
  if (decision.restart) {
1928
- discardHighLevelProgress(subject.repo, subject.headRef, subject.headSha);
1883
+ discardHighLevelProgress(subject, requestId);
1929
1884
  await onRestart();
1930
1885
  return void 0;
1931
1886
  }
1932
1887
  if (decision.dismissed) {
1933
- saveHighLevelDraft(buildHighLevelDraft(subject, decision));
1888
+ if (decision.checklist)
1889
+ saveHighLevelProgress(
1890
+ subject,
1891
+ highLevelProgress(subject.checks, decision, subject.slices)
1892
+ );
1934
1893
  console.log(
1935
1894
  "Review closed without a verdict. Your progress is kept for when you reopen it; nothing was posted."
1936
1895
  );
@@ -1938,7 +1897,7 @@ async function openHighLevelOverlay(sessionId2, subject, onRestart = async () =>
1938
1897
  }
1939
1898
  const record = buildHighLevelRecord(subject, decision);
1940
1899
  saveHighLevelReview(record);
1941
- clearHighLevelDraft(record.repo, record.headRef, record.headSha);
1900
+ clearHighLevelProgress(record.repo, record.prNumber, "verdict", requestId);
1942
1901
  console.log(`Verdict: ${record.verdict}`);
1943
1902
  submitHighLevelReview(record);
1944
1903
  return record;
@@ -2237,8 +2196,8 @@ function renderEntry(entry, frame) {
2237
2196
  import { format } from "util";
2238
2197
 
2239
2198
  // src/commands/review/createReviewLogSink.ts
2240
- import { appendFileSync, mkdirSync as mkdirSync2 } from "fs";
2241
- import { join as join2 } from "path";
2199
+ import { appendFileSync, mkdirSync } from "fs";
2200
+ import { join } from "path";
2242
2201
  var LOG_FILE = "review.log";
2243
2202
  function createReviewLogSink() {
2244
2203
  let logPath;
@@ -2254,8 +2213,8 @@ function createReviewLogSink() {
2254
2213
  `);
2255
2214
  },
2256
2215
  attach(reviewDir) {
2257
- mkdirSync2(reviewDir, { recursive: true });
2258
- logPath = join2(reviewDir, LOG_FILE);
2216
+ mkdirSync(reviewDir, { recursive: true });
2217
+ logPath = join(reviewDir, LOG_FILE);
2259
2218
  const lines = [
2260
2219
  "",
2261
2220
  `=== ${(/* @__PURE__ */ new Date()).toISOString()} ===`,
@@ -2594,10 +2553,10 @@ async function runReviewers(reviewers, context) {
2594
2553
  }
2595
2554
 
2596
2555
  // src/commands/review/synthesiseAfterReviewers.ts
2597
- import { existsSync as existsSync2, unlinkSync } from "fs";
2556
+ import { existsSync, unlinkSync } from "fs";
2598
2557
 
2599
2558
  // src/commands/review/synthesise.ts
2600
- import { readFileSync as readFileSync3 } from "fs";
2559
+ import { readFileSync as readFileSync2 } from "fs";
2601
2560
 
2602
2561
  // src/commands/review/carriedUnanchoredFindings.ts
2603
2562
  function carriedUnanchoredFindings(unanchored) {
@@ -2799,7 +2758,7 @@ Files:
2799
2758
 
2800
2759
  // src/commands/review/synthesise.ts
2801
2760
  function printSummary(synthesisPath) {
2802
- const markdown = readFileSync3(synthesisPath, "utf8");
2761
+ const markdown = readFileSync2(synthesisPath, "utf8");
2803
2762
  console.log("");
2804
2763
  console.log(buildReviewSummary(markdown));
2805
2764
  console.log("");
@@ -2828,7 +2787,7 @@ async function synthesise(paths, options) {
2828
2787
  // src/commands/review/synthesiseAfterReviewers.ts
2829
2788
  async function synthesiseAfterReviewers(input) {
2830
2789
  const { paths, failures } = input;
2831
- if (input.anyFresh && existsSync2(paths.synthesisPath)) {
2790
+ if (input.anyFresh && existsSync(paths.synthesisPath)) {
2832
2791
  unlinkSync(paths.synthesisPath);
2833
2792
  }
2834
2793
  const synthesisResult = await synthesise(paths, { multi: input.multi });
@@ -3042,9 +3001,9 @@ ${annotateDiffWithLineNumbers(context.diff.trimEnd())}
3042
3001
 
3043
3002
  // src/commands/review/buildReviewPaths.ts
3044
3003
  import { homedir } from "os";
3045
- import { basename as basename2, join as join3 } from "path";
3004
+ import { basename as basename2, join as join2 } from "path";
3046
3005
  function buildReviewPaths(repoRoot, key) {
3047
- const reviewDir = join3(
3006
+ const reviewDir = join2(
3048
3007
  homedir(),
3049
3008
  ".assist",
3050
3009
  "reviews",
@@ -3053,10 +3012,10 @@ function buildReviewPaths(repoRoot, key) {
3053
3012
  );
3054
3013
  return {
3055
3014
  reviewDir,
3056
- requestPath: join3(reviewDir, "request.md"),
3057
- claudePath: join3(reviewDir, "claude.md"),
3058
- codexPath: join3(reviewDir, "codex.md"),
3059
- synthesisPath: join3(reviewDir, "synthesis.md")
3015
+ requestPath: join2(reviewDir, "request.md"),
3016
+ claudePath: join2(reviewDir, "claude.md"),
3017
+ codexPath: join2(reviewDir, "codex.md"),
3018
+ synthesisPath: join2(reviewDir, "synthesis.md")
3060
3019
  };
3061
3020
  }
3062
3021
 
@@ -3095,16 +3054,16 @@ function fetchExistingComments() {
3095
3054
  }
3096
3055
 
3097
3056
  // src/commands/review/prepareReviewDir.ts
3098
- import { existsSync as existsSync3, mkdirSync as mkdirSync3, unlinkSync as unlinkSync2, writeFileSync as writeFileSync2 } from "fs";
3057
+ import { existsSync as existsSync2, mkdirSync as mkdirSync2, unlinkSync as unlinkSync2, writeFileSync } from "fs";
3099
3058
  function clearReviewFiles(paths) {
3100
3059
  for (const path of [paths.claudePath, paths.codexPath, paths.synthesisPath]) {
3101
- if (existsSync3(path)) unlinkSync2(path);
3060
+ if (existsSync2(path)) unlinkSync2(path);
3102
3061
  }
3103
3062
  }
3104
3063
  function prepareReviewDir(paths, requestBody, force) {
3105
- mkdirSync3(paths.reviewDir, { recursive: true });
3064
+ mkdirSync2(paths.reviewDir, { recursive: true });
3106
3065
  if (force) clearReviewFiles(paths);
3107
- writeFileSync2(paths.requestPath, requestBody);
3066
+ writeFileSync(paths.requestPath, requestBody);
3108
3067
  }
3109
3068
 
3110
3069
  // src/commands/review/setupReviewDir.ts
@@ -3372,7 +3331,7 @@ function postSynthesisSession(modes) {
3372
3331
  }
3373
3332
 
3374
3333
  // src/commands/review/postReviewToPr.ts
3375
- import { readFileSync as readFileSync4 } from "fs";
3334
+ import { readFileSync as readFileSync3 } from "fs";
3376
3335
 
3377
3336
  // src/commands/review/chainAddressComments.ts
3378
3337
  function chainAddressComments(prNumber, announce, harness) {
@@ -3727,7 +3686,7 @@ async function confirmPost(prNumber, work, options) {
3727
3686
  return promptConfirm(`Post ${work} to PR #${prNumber}?`, false);
3728
3687
  }
3729
3688
  async function postFindingsToPr(prInfo, synthesisPath, options) {
3730
- const markdown = readFileSync4(synthesisPath, "utf8");
3689
+ const markdown = readFileSync3(synthesisPath, "utf8");
3731
3690
  const { inDiff, unanchored } = selectPostableFindings(markdown, prInfo);
3732
3691
  const carried = carriedUnanchoredFindings(unanchored);
3733
3692
  if (inDiff.length === 0 && carried.length === 0) return NOTHING_POSTED;
@@ -1,14 +1,12 @@
1
1
  import {
2
2
  launchPrSkill
3
- } from "./chunk-OJB7NJRI.js";
4
- import "./chunk-B5MQGARY.js";
5
- import "./chunk-76IN2RPB.js";
3
+ } from "./chunk-4VJXZMG4.js";
4
+ import "./chunk-DOIDAWFX.js";
5
+ import "./chunk-GCVGBOX5.js";
6
6
  import "./chunk-2GTVP7JI.js";
7
7
  import "./chunk-V3AWLJ7P.js";
8
8
  import "./chunk-UN4ABKA7.js";
9
9
  import "./chunk-XT3AOF2P.js";
10
- import "./chunk-B3JSQA5D.js";
11
- import "./chunk-QWYSWWN5.js";
12
10
  import "./chunk-LQMU4BUO.js";
13
11
  import "./chunk-HKGCLAZ7.js";
14
12
  import "./chunk-7NZOH4LN.js";
@@ -16,10 +14,11 @@ import "./chunk-F7QYFJB2.js";
16
14
  import "./chunk-ZYK7V4PG.js";
17
15
  import "./chunk-W23SGDCN.js";
18
16
  import "./chunk-3DNFNT2L.js";
19
- import "./chunk-FYYZG4GY.js";
17
+ import "./chunk-YR3NOIK4.js";
20
18
  import "./chunk-WYNRHOR7.js";
21
19
  import "./chunk-PIDKNOD6.js";
22
- import "./chunk-QAJUCN3A.js";
20
+ import "./chunk-UOYZCIWZ.js";
21
+ import "./chunk-QWYSWWN5.js";
23
22
  import "./chunk-5H7EHZ3J.js";
24
23
  import "./chunk-LKDW2GWH.js";
25
24
  import "./chunk-2F2IKQDM.js";
@@ -1,8 +1,7 @@
1
1
  import {
2
2
  run
3
- } from "./chunk-KYJAT623.js";
3
+ } from "./chunk-VIKP2CPB.js";
4
4
  import "./chunk-BXGPF3TG.js";
5
- import "./chunk-QWYSWWN5.js";
6
5
  import "./chunk-LQMU4BUO.js";
7
6
  import "./chunk-734KE2N6.js";
8
7
  import "./chunk-3COAWQ2J.js";
@@ -24,6 +23,7 @@ import "./chunk-NZOSFASH.js";
24
23
  import "./chunk-4QFHJHT2.js";
25
24
  import "./chunk-FPWL4VRC.js";
26
25
  import "./chunk-NGYZK6AF.js";
26
+ import "./chunk-QWYSWWN5.js";
27
27
  import "./chunk-QV2GMC3R.js";
28
28
  import "./chunk-A2XSU5K6.js";
29
29
  import "./chunk-5H7EHZ3J.js";
@@ -16,13 +16,11 @@ import {
16
16
  } from "./chunk-YKVLG4SZ.js";
17
17
  import {
18
18
  pullIfConfigured
19
- } from "./chunk-MUHZ22VQ.js";
20
- import "./chunk-B3JSQA5D.js";
19
+ } from "./chunk-7VTFCHIT.js";
21
20
  import {
22
21
  run
23
- } from "./chunk-KYJAT623.js";
22
+ } from "./chunk-VIKP2CPB.js";
24
23
  import "./chunk-BXGPF3TG.js";
25
- import "./chunk-QWYSWWN5.js";
26
24
  import "./chunk-LQMU4BUO.js";
27
25
  import "./chunk-734KE2N6.js";
28
26
  import "./chunk-3COAWQ2J.js";
@@ -47,7 +45,8 @@ import "./chunk-NGYZK6AF.js";
47
45
  import {
48
46
  runCommandToCompletion
49
47
  } from "./chunk-Z2YQQYCQ.js";
50
- import "./chunk-QAJUCN3A.js";
48
+ import "./chunk-UOYZCIWZ.js";
49
+ import "./chunk-QWYSWWN5.js";
51
50
  import "./chunk-QV2GMC3R.js";
52
51
  import "./chunk-A2XSU5K6.js";
53
52
  import "./chunk-5H7EHZ3J.js";
@@ -31,7 +31,7 @@ import {
31
31
  seedWorktree,
32
32
  stopInstall,
33
33
  worktreeWithBranch
34
- } from "./chunk-76IN2RPB.js";
34
+ } from "./chunk-GCVGBOX5.js";
35
35
  import {
36
36
  describePersistedSession,
37
37
  loadPersistedSessions,
@@ -42,9 +42,6 @@ import {
42
42
  showNotification
43
43
  } from "./chunk-5SDSC2UT.js";
44
44
  import "./chunk-2JYMVJGZ.js";
45
- import {
46
- remoteDefaultBranch
47
- } from "./chunk-B3JSQA5D.js";
48
45
  import {
49
46
  clearPause,
50
47
  duplicateRunExitCode,
@@ -54,9 +51,6 @@ import {
54
51
  releaseLock,
55
52
  requestPause
56
53
  } from "./chunk-BXGPF3TG.js";
57
- import {
58
- worktreeConfigFor
59
- } from "./chunk-QWYSWWN5.js";
60
54
  import {
61
55
  launchBlocker
62
56
  } from "./chunk-LQMU4BUO.js";
@@ -121,7 +115,7 @@ import {
121
115
  toNodeSessionId,
122
116
  usageWindowKey,
123
117
  watcherLogPath
124
- } from "./chunk-ZWLBKWOG.js";
118
+ } from "./chunk-ZZPDMUIS.js";
125
119
  import {
126
120
  newTraceId
127
121
  } from "./chunk-4HKB2TAG.js";
@@ -133,7 +127,7 @@ import {
133
127
  isHello,
134
128
  linkVersionCheck,
135
129
  negotiateProtocol
136
- } from "./chunk-LO6MUDSE.js";
130
+ } from "./chunk-PTOLRRVQ.js";
137
131
  import {
138
132
  loadLinkSpecs
139
133
  } from "./chunk-HPBO553P.js";
@@ -163,7 +157,7 @@ import {
163
157
  gitCommonDir,
164
158
  listLocalBranches,
165
159
  mainWorktree
166
- } from "./chunk-FYYZG4GY.js";
160
+ } from "./chunk-YR3NOIK4.js";
167
161
  import {
168
162
  clearLeftover,
169
163
  forgetWorktree,
@@ -182,8 +176,12 @@ import {
182
176
  git,
183
177
  gitOrNull,
184
178
  gitResult,
185
- gitSyncResult
186
- } from "./chunk-QAJUCN3A.js";
179
+ gitSyncResult,
180
+ remoteDefaultBranch
181
+ } from "./chunk-UOYZCIWZ.js";
182
+ import {
183
+ worktreeConfigFor
184
+ } from "./chunk-QWYSWWN5.js";
187
185
  import {
188
186
  resolvePlan
189
187
  } from "./chunk-3EPOPLVB.js";
@@ -270,7 +268,7 @@ import {
270
268
  import "./chunk-APZ6ZTDA.js";
271
269
  import "./chunk-DZBQRJLT.js";
272
270
  import "./chunk-D7UZLH36.js";
273
- import "./chunk-3T5UPJSQ.js";
271
+ import "./chunk-KU2IRR7U.js";
274
272
  import "./chunk-EW2ZM2PC.js";
275
273
  import "./chunk-MYH4MQX2.js";
276
274
  import {
@@ -1,16 +1,14 @@
1
1
  import {
2
2
  refine
3
- } from "./chunk-2DMKXYGN.js";
3
+ } from "./chunk-CGTWGF4R.js";
4
4
  import {
5
5
  resolveHarness
6
6
  } from "./chunk-BU4APYZF.js";
7
- import "./chunk-GXXGMQTW.js";
8
- import "./chunk-2JSJQPC3.js";
9
- import "./chunk-MUHZ22VQ.js";
10
- import "./chunk-B3JSQA5D.js";
11
- import "./chunk-KYJAT623.js";
7
+ import "./chunk-NEC6OVBH.js";
8
+ import "./chunk-LCEKIRDI.js";
9
+ import "./chunk-7VTFCHIT.js";
10
+ import "./chunk-VIKP2CPB.js";
12
11
  import "./chunk-BXGPF3TG.js";
13
- import "./chunk-QWYSWWN5.js";
14
12
  import "./chunk-LQMU4BUO.js";
15
13
  import "./chunk-734KE2N6.js";
16
14
  import "./chunk-3COAWQ2J.js";
@@ -35,7 +33,8 @@ import "./chunk-FPWL4VRC.js";
35
33
  import "./chunk-NGYZK6AF.js";
36
34
  import "./chunk-5B6YWHDU.js";
37
35
  import "./chunk-ZWIWBQO2.js";
38
- import "./chunk-QAJUCN3A.js";
36
+ import "./chunk-UOYZCIWZ.js";
37
+ import "./chunk-QWYSWWN5.js";
39
38
  import "./chunk-QV2GMC3R.js";
40
39
  import "./chunk-A2XSU5K6.js";
41
40
  import "./chunk-5H7EHZ3J.js";
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-W7TRZLEM.js";
10
10
  import {
11
11
  package_default
12
- } from "./chunk-3T5UPJSQ.js";
12
+ } from "./chunk-KU2IRR7U.js";
13
13
 
14
14
  // src/commands/extension/signExtension.ts
15
15
  import { rm as rm2 } from "fs/promises";