@herbertgao/pi-extensions 2026.11.7 → 2026.11.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 (129) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/README.md +9 -9
  3. package/THIRD_PARTY_NOTICES.md +2 -2
  4. package/node_modules/@herbertgao/pi-subagents/CHANGELOG.md +6 -0
  5. package/node_modules/@herbertgao/pi-subagents/README.md +2 -2
  6. package/node_modules/@herbertgao/pi-subagents/package.json +4 -4
  7. package/node_modules/@herbertgao/pi-subagents/src/ui/conversation-viewer.ts +10 -6
  8. package/node_modules/@herbertgao/pi-subagents/src/ui/viewer-keys.ts +47 -4
  9. package/node_modules/@narumitw/pi-btw/CHANGELOG.md +19 -0
  10. package/node_modules/@narumitw/pi-btw/dist/chunks/{main-tree-picker-WHRN26NJ.ts → main-tree-picker-3PXJARQW.ts} +59 -53
  11. package/node_modules/@narumitw/pi-btw/dist/chunks/main-tree-picker-3PXJARQW.ts.map +7 -0
  12. package/node_modules/@narumitw/pi-btw/dist/index.ts +1 -1
  13. package/node_modules/@narumitw/pi-btw/docs/main-tree-snapshots.md +39 -0
  14. package/node_modules/@narumitw/pi-btw/docs/workflows.md +1 -0
  15. package/node_modules/@narumitw/pi-btw/package.json +2 -2
  16. package/node_modules/@narumitw/pi-btw/src/main-tree-picker.ts +73 -63
  17. package/node_modules/@narumitw/pi-caffeinate/CHANGELOG.md +7 -0
  18. package/node_modules/@narumitw/pi-caffeinate/package.json +3 -3
  19. package/node_modules/pi-commandcode-provider/CHANGELOG.md +5 -0
  20. package/node_modules/pi-commandcode-provider/package.json +1 -1
  21. package/node_modules/pi-commandcode-provider/src/pricing.ts +4 -4
  22. package/node_modules/pi-lens/CHANGELOG-USER.md +6 -6
  23. package/node_modules/pi-lens/CHANGELOG.md +30 -0
  24. package/node_modules/pi-lens/README.md +1 -0
  25. package/node_modules/pi-lens/dist/{chunk-KDGKKK7A.js → chunk-2HWVG3IM.js} +1 -1
  26. package/node_modules/pi-lens/dist/{chunk-3QCI3V6C.js → chunk-3EIZMRXI.js} +5 -5
  27. package/node_modules/pi-lens/dist/{chunk-NWK7KKNO.js → chunk-3MHY4BQY.js} +2 -2
  28. package/node_modules/pi-lens/dist/{chunk-3NVGBFJS.js → chunk-3PMLYGJN.js} +2 -2
  29. package/node_modules/pi-lens/dist/{chunk-OP5BMZKK.js → chunk-3QMLB4TI.js} +1 -1
  30. package/node_modules/pi-lens/dist/{chunk-V7IPIAE5.js → chunk-3VWEZ6H2.js} +24 -26
  31. package/node_modules/pi-lens/dist/{chunk-NLRKB32C.js → chunk-5EEWCJG7.js} +1 -1
  32. package/node_modules/pi-lens/dist/{chunk-VDMF7Q2P.js → chunk-5FDUKJZO.js} +4 -4
  33. package/node_modules/pi-lens/dist/{chunk-KBSC5Z3G.js → chunk-5KLRCUDT.js} +2 -2
  34. package/node_modules/pi-lens/dist/{chunk-GL6J5R34.js → chunk-6EXGCXM5.js} +3 -3
  35. package/node_modules/pi-lens/dist/{chunk-OC4ZGVMH.js → chunk-6GWCYEP7.js} +5 -7
  36. package/node_modules/pi-lens/dist/{chunk-LXE7JAMV.js → chunk-6JLNZ6DP.js} +4 -4
  37. package/node_modules/pi-lens/dist/{chunk-TTGDTNSN.js → chunk-75TVYCQW.js} +3 -3
  38. package/node_modules/pi-lens/dist/{chunk-QAM2Q3VO.js → chunk-7BEADGAZ.js} +2 -2
  39. package/node_modules/pi-lens/dist/{chunk-R5BNSOIV.js → chunk-7KWI5UHL.js} +7 -8
  40. package/node_modules/pi-lens/dist/{chunk-5YTDZ5WP.js → chunk-7M64NTAK.js} +1 -1
  41. package/node_modules/pi-lens/dist/{chunk-B4K6OSLL.js → chunk-7T64QA5D.js} +25 -27
  42. package/node_modules/pi-lens/dist/{chunk-KDMJ2DJD.js → chunk-7ZVEFWOE.js} +5 -5
  43. package/node_modules/pi-lens/dist/{chunk-D5L7Q57Z.js → chunk-AAIVSSUU.js} +1 -1
  44. package/node_modules/pi-lens/dist/{chunk-LIDFFCZZ.js → chunk-AD7JDEI6.js} +9 -9
  45. package/node_modules/pi-lens/dist/{chunk-WBXCIRVI.js → chunk-AVBEPUCD.js} +1 -1
  46. package/node_modules/pi-lens/dist/{chunk-VTXJAO5R.js → chunk-AZXTLZHE.js} +9 -9
  47. package/node_modules/pi-lens/dist/{chunk-UELHWF5I.js → chunk-BEIPWPVR.js} +10 -10
  48. package/node_modules/pi-lens/dist/{chunk-SQBDX6IO.js → chunk-C6V2DSZZ.js} +6 -6
  49. package/node_modules/pi-lens/dist/{chunk-ZD4KVFXI.js → chunk-D2ZYRI7M.js} +172 -3
  50. package/node_modules/pi-lens/dist/{chunk-HIUVHRLM.js → chunk-D6ANA6YU.js} +20 -22
  51. package/node_modules/pi-lens/dist/{chunk-YUF4DRYB.js → chunk-D7OEGXDX.js} +1 -1
  52. package/node_modules/pi-lens/dist/{chunk-AOQKQWZU.js → chunk-DFAY7JUN.js} +1 -1
  53. package/node_modules/pi-lens/dist/{chunk-QUZYRDT6.js → chunk-DIIDMDZU.js} +6 -6
  54. package/node_modules/pi-lens/dist/{chunk-QBUSONNE.js → chunk-DZSQXG66.js} +45 -27
  55. package/node_modules/pi-lens/dist/{chunk-UY3WWW5R.js → chunk-E5SSUV2A.js} +3 -3
  56. package/node_modules/pi-lens/dist/{chunk-DNB4ZQGN.js → chunk-ET3DSSFZ.js} +1 -1
  57. package/node_modules/pi-lens/dist/{chunk-4WWPDMRA.js → chunk-F7AMFFVK.js} +4 -4
  58. package/node_modules/pi-lens/dist/{chunk-LHCDWFDB.js → chunk-FDLGJFAE.js} +1 -1
  59. package/node_modules/pi-lens/dist/{chunk-C4ICGFEO.js → chunk-FVQKX5KI.js} +12 -12
  60. package/node_modules/pi-lens/dist/{chunk-TRYOYWWU.js → chunk-G3LR6V6N.js} +4 -4
  61. package/node_modules/pi-lens/dist/{chunk-AVOUHMCS.js → chunk-GHATCG2A.js} +10 -10
  62. package/node_modules/pi-lens/dist/{chunk-R2UF54ON.js → chunk-HJWF7CGW.js} +9 -9
  63. package/node_modules/pi-lens/dist/chunk-HRQTYU2T.js +355 -0
  64. package/node_modules/pi-lens/dist/{chunk-NR4KQOXZ.js → chunk-HSTN27NR.js} +1 -1
  65. package/node_modules/pi-lens/dist/{chunk-YVPB5YGO.js → chunk-HWMNTQBJ.js} +1 -1
  66. package/node_modules/pi-lens/dist/{chunk-6XNVY3FW.js → chunk-HYDJUVOE.js} +1 -1
  67. package/node_modules/pi-lens/dist/{chunk-WXMUGUZV.js → chunk-HYR25MV3.js} +4 -4
  68. package/node_modules/pi-lens/dist/{chunk-AJ62EQIQ.js → chunk-IC4L65U7.js} +12 -9
  69. package/node_modules/pi-lens/dist/{chunk-R2VUZZPJ.js → chunk-ILC2B7IJ.js} +4 -4
  70. package/node_modules/pi-lens/dist/{chunk-E6Z3CJT2.js → chunk-IZ36G463.js} +5 -5
  71. package/node_modules/pi-lens/dist/{chunk-IBEYUBCM.js → chunk-JKAVKTMY.js} +6 -6
  72. package/node_modules/pi-lens/dist/{chunk-LHU6NG5Z.js → chunk-JLMS7EMD.js} +8 -8
  73. package/node_modules/pi-lens/dist/{chunk-6RXMQYNU.js → chunk-JRSS6KM4.js} +1 -1
  74. package/node_modules/pi-lens/dist/{chunk-HASJPQBC.js → chunk-K2LD6YNH.js} +4 -4
  75. package/node_modules/pi-lens/dist/{chunk-UQ6OZYTO.js → chunk-KUDUKKQE.js} +43 -45
  76. package/node_modules/pi-lens/dist/{chunk-34RXPR7M.js → chunk-KXDQD34C.js} +1 -1
  77. package/node_modules/pi-lens/dist/{chunk-QDZ3ZZMY.js → chunk-LD7SXICE.js} +3 -3
  78. package/node_modules/pi-lens/dist/{chunk-NQFXN5U7.js → chunk-MOEWCPMC.js} +1 -1
  79. package/node_modules/pi-lens/dist/{chunk-IJ55MYO6.js → chunk-MV6ST2KT.js} +4 -4
  80. package/node_modules/pi-lens/dist/{chunk-532X3OCZ.js → chunk-NCDH2JB7.js} +7 -9
  81. package/node_modules/pi-lens/dist/{chunk-ITAPXBIB.js → chunk-NRVWLTOY.js} +9 -9
  82. package/node_modules/pi-lens/dist/{chunk-DPDA3ILA.js → chunk-NZINZCHB.js} +1 -1
  83. package/node_modules/pi-lens/dist/{chunk-A4HKPAEN.js → chunk-OEPWTSUG.js} +6 -6
  84. package/node_modules/pi-lens/dist/{chunk-TBE4OLPA.js → chunk-OF2YGDUE.js} +21 -23
  85. package/node_modules/pi-lens/dist/{chunk-BLL4VYGZ.js → chunk-OHEUOWYT.js} +1 -1
  86. package/node_modules/pi-lens/dist/{chunk-PSUXESQ5.js → chunk-ORYQGVC3.js} +1 -1
  87. package/node_modules/pi-lens/dist/{chunk-FVEEEEIM.js → chunk-OVPR3GQ6.js} +4 -4
  88. package/node_modules/pi-lens/dist/{chunk-BN36MQW5.js → chunk-PCREZ4HJ.js} +20 -22
  89. package/node_modules/pi-lens/dist/{chunk-KNP4ENFT.js → chunk-PK3GDU4M.js} +1 -1
  90. package/node_modules/pi-lens/dist/{chunk-2SD2CGVH.js → chunk-PPYUBO6Y.js} +1 -1
  91. package/node_modules/pi-lens/dist/{chunk-4HNBY7S7.js → chunk-PTJXMYRY.js} +7 -9
  92. package/node_modules/pi-lens/dist/{chunk-VI3BJMZO.js → chunk-PXGVB2CY.js} +14 -18
  93. package/node_modules/pi-lens/dist/{chunk-3C6ZZAB2.js → chunk-QY6J2FTK.js} +10 -12
  94. package/node_modules/pi-lens/dist/{chunk-5RLEDUUE.js → chunk-R67WQ5RY.js} +3 -3
  95. package/node_modules/pi-lens/dist/{chunk-WMCAEP2K.js → chunk-S6ZQFPOX.js} +2 -2
  96. package/node_modules/pi-lens/dist/{chunk-LPM6NKVI.js → chunk-SF7KSXB5.js} +2 -2
  97. package/node_modules/pi-lens/dist/{chunk-ECYUBKYX.js → chunk-T6PPK3T6.js} +40 -37
  98. package/node_modules/pi-lens/dist/{chunk-RV5VX2XW.js → chunk-TM3A3K7T.js} +8 -9
  99. package/node_modules/pi-lens/dist/{chunk-AFNPNHJV.js → chunk-TOOXNL6M.js} +3 -3
  100. package/node_modules/pi-lens/dist/{chunk-BJDB7PXU.js → chunk-TS5EIWEF.js} +6 -6
  101. package/node_modules/pi-lens/dist/{chunk-UG4YLCJ5.js → chunk-VD7MQFEV.js} +21 -23
  102. package/node_modules/pi-lens/dist/{chunk-BBJXIZ3X.js → chunk-VU2PRGRI.js} +5 -34
  103. package/node_modules/pi-lens/dist/{chunk-GTNO6F6K.js → chunk-WTSQKJAR.js} +4 -4
  104. package/node_modules/pi-lens/dist/{chunk-TPMBNWHO.js → chunk-Y7XMKBFP.js} +16 -16
  105. package/node_modules/pi-lens/dist/{chunk-JSQK5DH3.js → chunk-YLHJWAQS.js} +2 -2
  106. package/node_modules/pi-lens/dist/{chunk-HTUG7ZFK.js → chunk-YLW26OHX.js} +3 -3
  107. package/node_modules/pi-lens/dist/{chunk-C2REOMPO.js → chunk-YTXFNCVN.js} +1 -1
  108. package/node_modules/pi-lens/dist/{chunk-F37CCZUA.js → chunk-YULIERZW.js} +8 -8
  109. package/node_modules/pi-lens/dist/{chunk-KX4DF6XX.js → chunk-Z2W5YJBW.js} +6 -6
  110. package/node_modules/pi-lens/dist/{chunk-DBAHJFBU.js → chunk-Z6WTLVUL.js} +13 -18
  111. package/node_modules/pi-lens/dist/{chunk-6K4X7IIF.js → chunk-ZWZD4TJ5.js} +23 -25
  112. package/node_modules/pi-lens/dist/index.js +1134 -618
  113. package/node_modules/pi-lens/dist/mcp/analyze-cli.js +5 -7
  114. package/node_modules/pi-lens/dist/mcp/cli.js +25 -27
  115. package/node_modules/pi-lens/dist/mcp/server.js +101 -100
  116. package/node_modules/pi-lens/dist/mcp/worker.js +43 -45
  117. package/node_modules/pi-lens/dist/probes/installer.js +11 -11
  118. package/node_modules/pi-lens/docs/agent-tools.md +54 -12
  119. package/node_modules/pi-lens/docs/configuration.md +3 -3
  120. package/node_modules/pi-lens/docs/globalconfig.md +8 -1
  121. package/node_modules/pi-lens/docs/invariants/lsp-trust-exec.md +7 -0
  122. package/node_modules/pi-lens/docs/mcp.md +2 -1
  123. package/node_modules/pi-lens/docs/usage.md +1 -1
  124. package/node_modules/pi-lens/package.json +1 -1
  125. package/package.json +7 -7
  126. package/node_modules/@narumitw/pi-btw/dist/chunks/main-tree-picker-WHRN26NJ.ts.map +0 -7
  127. package/node_modules/pi-lens/dist/chunk-3HZ6MNB2.js +0 -140
  128. package/node_modules/pi-lens/dist/chunk-43KD3PPM.js +0 -162
  129. package/node_modules/pi-lens/dist/chunk-CKEQFGLT.js +0 -32
@@ -10,15 +10,13 @@ import {
10
10
  recordTurnEndOutcome,
11
11
  requestWarmAnalyze,
12
12
  requestWarmTurnEnd
13
- } from "../chunk-YVPB5YGO.js";
13
+ } from "../chunk-HWMNTQBJ.js";
14
14
  import "../chunk-ZRQMENT4.js";
15
- import {
16
- withBudget
17
- } from "../chunk-3HZ6MNB2.js";
18
15
  import "../chunk-CIA7X2PZ.js";
19
16
  import {
20
- setProjectTrustState
21
- } from "../chunk-43KD3PPM.js";
17
+ setProjectTrustState,
18
+ withBudget
19
+ } from "../chunk-HRQTYU2T.js";
22
20
  import {
23
21
  flushExtensionLog,
24
22
  logExtension
@@ -200,7 +198,7 @@ async function main() {
200
198
  process.exit(0);
201
199
  let result = await requestWarmAnalyze(cwd, file);
202
200
  if (!result) {
203
- const { analyzeFile } = await import("../chunk-UQ6OZYTO.js");
201
+ const { analyzeFile } = await import("../chunk-KUDUKKQE.js");
204
202
  result = await analyzeFile(file, cwd, {
205
203
  flags: withLsp ? {} : { "no-lsp": true },
206
204
  record: false,
@@ -8,51 +8,49 @@ import {
8
8
  getLastReviewGraphBuildAttempt,
9
9
  graphWasmTrapDetail,
10
10
  reviewGraphCachePath
11
- } from "../chunk-3C6ZZAB2.js";
11
+ } from "../chunk-QY6J2FTK.js";
12
12
  import "../chunk-3MED75HT.js";
13
13
  import "../chunk-PKLB2XJL.js";
14
- import "../chunk-QBUSONNE.js";
15
- import "../chunk-AOQKQWZU.js";
14
+ import "../chunk-DZSQXG66.js";
15
+ import "../chunk-DFAY7JUN.js";
16
16
  import "../chunk-XIMYZ3JA.js";
17
- import "../chunk-DBAHJFBU.js";
18
- import "../chunk-2SD2CGVH.js";
19
- import "../chunk-NLRKB32C.js";
17
+ import "../chunk-Z6WTLVUL.js";
18
+ import "../chunk-PPYUBO6Y.js";
19
+ import "../chunk-5EEWCJG7.js";
20
20
  import "../chunk-QJ4T73J5.js";
21
- import "../chunk-HTUG7ZFK.js";
21
+ import "../chunk-YLW26OHX.js";
22
22
  import "../chunk-HGEE5LDW.js";
23
23
  import "../chunk-5W3R6LFT.js";
24
- import "../chunk-532X3OCZ.js";
25
- import "../chunk-6XNVY3FW.js";
24
+ import "../chunk-NCDH2JB7.js";
25
+ import "../chunk-HYDJUVOE.js";
26
26
  import "../chunk-7424ANRU.js";
27
27
  import "../chunk-SUIZOCSY.js";
28
28
  import {
29
29
  isTreeSitterWasmAborted
30
- } from "../chunk-OC4ZGVMH.js";
30
+ } from "../chunk-6GWCYEP7.js";
31
31
  import "../chunk-Z54ZSOBZ.js";
32
- import "../chunk-5YTDZ5WP.js";
32
+ import "../chunk-7M64NTAK.js";
33
33
  import "../chunk-E3PNZDPH.js";
34
34
  import "../chunk-6HWVI6MI.js";
35
- import "../chunk-KNP4ENFT.js";
36
- import "../chunk-CKEQFGLT.js";
37
- import "../chunk-LXE7JAMV.js";
35
+ import "../chunk-PK3GDU4M.js";
36
+ import "../chunk-6JLNZ6DP.js";
38
37
  import "../chunk-IT7MFVGP.js";
39
38
  import "../chunk-AYDE7RFV.js";
40
- import "../chunk-YVPB5YGO.js";
39
+ import "../chunk-HWMNTQBJ.js";
41
40
  import "../chunk-ZRQMENT4.js";
42
- import "../chunk-3HZ6MNB2.js";
43
41
  import "../chunk-2BEMIWEW.js";
44
42
  import "../chunk-IJYGIDF4.js";
45
- import "../chunk-ITAPXBIB.js";
46
- import "../chunk-JSQK5DH3.js";
47
- import "../chunk-FVEEEEIM.js";
48
- import "../chunk-OP5BMZKK.js";
43
+ import "../chunk-NRVWLTOY.js";
44
+ import "../chunk-YLHJWAQS.js";
45
+ import "../chunk-OVPR3GQ6.js";
46
+ import "../chunk-3QMLB4TI.js";
49
47
  import "../chunk-UYXV5NIS.js";
50
- import "../chunk-WBXCIRVI.js";
51
- import "../chunk-TTGDTNSN.js";
52
- import "../chunk-34RXPR7M.js";
53
- import "../chunk-3NVGBFJS.js";
54
- import "../chunk-C2REOMPO.js";
55
- import "../chunk-DNB4ZQGN.js";
48
+ import "../chunk-AVBEPUCD.js";
49
+ import "../chunk-75TVYCQW.js";
50
+ import "../chunk-KXDQD34C.js";
51
+ import "../chunk-3PMLYGJN.js";
52
+ import "../chunk-YTXFNCVN.js";
53
+ import "../chunk-ET3DSSFZ.js";
56
54
  import "../chunk-B4FAFEBP.js";
57
55
  import "../chunk-QYF5S6P6.js";
58
56
  import "../chunk-SRXYSLMW.js";
@@ -61,7 +59,7 @@ import "../chunk-3R3Z54J7.js";
61
59
  import "../chunk-CIA7X2PZ.js";
62
60
  import {
63
61
  setProjectTrustState
64
- } from "../chunk-43KD3PPM.js";
62
+ } from "../chunk-HRQTYU2T.js";
65
63
  import {
66
64
  logExtension
67
65
  } from "../chunk-AGEQRJ5A.js";
@@ -7,18 +7,18 @@ import {
7
7
  deadCodeIssues,
8
8
  formatDeadCodeDelta,
9
9
  stableFindingKey
10
- } from "../chunk-IBEYUBCM.js";
10
+ } from "../chunk-JKAVKTMY.js";
11
11
  import {
12
12
  clearFormatterCache
13
- } from "../chunk-VTXJAO5R.js";
13
+ } from "../chunk-AZXTLZHE.js";
14
14
  import {
15
15
  findNearestProjectRoot,
16
16
  isStartupScanVerdictFresh,
17
17
  resolveStartupScanContext
18
- } from "../chunk-WMCAEP2K.js";
18
+ } from "../chunk-S6ZQFPOX.js";
19
19
  import {
20
20
  loadCallGraph
21
- } from "../chunk-QAM2Q3VO.js";
21
+ } from "../chunk-7BEADGAZ.js";
22
22
  import {
23
23
  isHardFailureSummary
24
24
  } from "../chunk-7U2IDNXN.js";
@@ -28,15 +28,15 @@ import {
28
28
  isCompletedPassResult,
29
29
  isExcludedTestTarget,
30
30
  isRunnerErrorResult
31
- } from "../chunk-QUZYRDT6.js";
31
+ } from "../chunk-DIIDMDZU.js";
32
32
  import {
33
33
  GovulncheckClient
34
- } from "../chunk-A4HKPAEN.js";
34
+ } from "../chunk-OEPWTSUG.js";
35
35
  import {
36
36
  GitleaksClient,
37
37
  classifyAndFilterFindings
38
- } from "../chunk-TRYOYWWU.js";
39
- import "../chunk-PSUXESQ5.js";
38
+ } from "../chunk-G3LR6V6N.js";
39
+ import "../chunk-ORYQGVC3.js";
40
40
  import {
41
41
  resetManagedToolRefreshSession
42
42
  } from "../chunk-UXVNL3D7.js";
@@ -117,48 +117,48 @@ import {
117
117
  resetPsScriptAnalyzerAvailability,
118
118
  runProviders,
119
119
  stampLineHashes
120
- } from "../chunk-ECYUBKYX.js";
120
+ } from "../chunk-T6PPK3T6.js";
121
121
  import {
122
122
  resetLazyInstallAttempts
123
- } from "../chunk-GL6J5R34.js";
123
+ } from "../chunk-6EXGCXM5.js";
124
124
  import {
125
125
  isTestRoleCollateral
126
126
  } from "../chunk-ME6MF2N2.js";
127
- import "../chunk-6RXMQYNU.js";
127
+ import "../chunk-JRSS6KM4.js";
128
128
  import {
129
129
  resetGoAvailability
130
- } from "../chunk-NQFXN5U7.js";
130
+ } from "../chunk-MOEWCPMC.js";
131
131
  import {
132
132
  TrivyClient,
133
133
  trivyEvidenceFiles
134
- } from "../chunk-WXMUGUZV.js";
135
- import "../chunk-D5L7Q57Z.js";
136
- import "../chunk-QDZ3ZZMY.js";
137
- import "../chunk-DPDA3ILA.js";
138
- import "../chunk-LHCDWFDB.js";
134
+ } from "../chunk-HYR25MV3.js";
135
+ import "../chunk-AAIVSSUU.js";
136
+ import "../chunk-LD7SXICE.js";
137
+ import "../chunk-NZINZCHB.js";
138
+ import "../chunk-FDLGJFAE.js";
139
139
  import {
140
140
  resetRustAvailability
141
- } from "../chunk-KDGKKK7A.js";
142
- import "../chunk-UY3WWW5R.js";
143
- import "../chunk-E6Z3CJT2.js";
141
+ } from "../chunk-2HWVG3IM.js";
142
+ import "../chunk-E5SSUV2A.js";
143
+ import "../chunk-IZ36G463.js";
144
144
  import {
145
145
  resetDispatchAvailabilityState,
146
146
  resolveManagedToolClient
147
- } from "../chunk-UELHWF5I.js";
147
+ } from "../chunk-BEIPWPVR.js";
148
148
  import {
149
149
  readFileContent
150
- } from "../chunk-YUF4DRYB.js";
151
- import "../chunk-NWK7KKNO.js";
152
- import "../chunk-BBJXIZ3X.js";
153
- import "../chunk-ZD4KVFXI.js";
154
- import "../chunk-BLL4VYGZ.js";
150
+ } from "../chunk-D7OEGXDX.js";
151
+ import "../chunk-3MHY4BQY.js";
152
+ import "../chunk-VU2PRGRI.js";
153
+ import "../chunk-D2ZYRI7M.js";
154
+ import "../chunk-OHEUOWYT.js";
155
155
  import {
156
156
  SYMBOL_KIND_NAMES,
157
157
  captureReviewGraphStructuralIr,
158
158
  formatReviewGraphRevisionDriftNote,
159
159
  publishReviewGraphFileIr,
160
160
  reviewGraphIrContentHash
161
- } from "../chunk-3C6ZZAB2.js";
161
+ } from "../chunk-QY6J2FTK.js";
162
162
  import {
163
163
  buildSymbolId
164
164
  } from "../chunk-3MED75HT.js";
@@ -274,7 +274,7 @@ import {
274
274
  widgetDiagnosticUri,
275
275
  writeOrderToken,
276
276
  writeSourceFile
277
- } from "../chunk-QBUSONNE.js";
277
+ } from "../chunk-DZSQXG66.js";
278
278
  import {
279
279
  ANY_POSITION,
280
280
  foldedFindingIdentity,
@@ -284,7 +284,7 @@ import {
284
284
  resetMutationAttribution,
285
285
  retainRecordedFindings,
286
286
  stableFindingId
287
- } from "../chunk-AOQKQWZU.js";
287
+ } from "../chunk-DFAY7JUN.js";
288
288
  import {
289
289
  mapWithConcurrency
290
290
  } from "../chunk-XIMYZ3JA.js";
@@ -310,8 +310,8 @@ import {
310
310
  resetLSPCaseSensitivityState,
311
311
  resolveLspCwdForFile,
312
312
  shouldInitializeSessionRoot
313
- } from "../chunk-DBAHJFBU.js";
314
- import "../chunk-2SD2CGVH.js";
313
+ } from "../chunk-Z6WTLVUL.js";
314
+ import "../chunk-PPYUBO6Y.js";
315
315
  import {
316
316
  PROJECT_VENV_DIR_NAMES,
317
317
  PYTHON_DECLARATION_CONCURRENCY,
@@ -323,7 +323,7 @@ import {
323
323
  partitionOutrankedPythonCompileVerdicts,
324
324
  recordPythonCompileVerdictDrop,
325
325
  resetBoundedTelemetry
326
- } from "../chunk-NLRKB32C.js";
326
+ } from "../chunk-5EEWCJG7.js";
327
327
  import {
328
328
  scannerReportParentDir
329
329
  } from "../chunk-QJ4T73J5.js";
@@ -341,7 +341,7 @@ import {
341
341
  readJsonCache,
342
342
  readProjectSnapshotMeta,
343
343
  saveRuntimeProjectSnapshot
344
- } from "../chunk-HTUG7ZFK.js";
344
+ } from "../chunk-YLW26OHX.js";
345
345
  import {
346
346
  SWEEP_IDLE_SAFETY_MARGIN_MS,
347
347
  getFullScanWallClockMs,
@@ -359,8 +359,8 @@ import {
359
359
  resolveImportToFiles,
360
360
  sweepInlineBlockerFreshness,
361
361
  symbolExtractionGrammar
362
- } from "../chunk-532X3OCZ.js";
363
- import "../chunk-6XNVY3FW.js";
362
+ } from "../chunk-NCDH2JB7.js";
363
+ import "../chunk-HYDJUVOE.js";
364
364
  import "../chunk-7424ANRU.js";
365
365
  import "../chunk-SUIZOCSY.js";
366
366
  import {
@@ -375,20 +375,17 @@ import {
375
375
  queryLoader,
376
376
  reportBundledResourceDirHealth,
377
377
  resolveTreeSitterLanguage
378
- } from "../chunk-OC4ZGVMH.js";
378
+ } from "../chunk-6GWCYEP7.js";
379
379
  import "../chunk-Z54ZSOBZ.js";
380
380
  import {
381
381
  getUserRuleRoot
382
- } from "../chunk-5YTDZ5WP.js";
382
+ } from "../chunk-7M64NTAK.js";
383
383
  import {
384
384
  dump,
385
385
  resolvePackagePath
386
386
  } from "../chunk-E3PNZDPH.js";
387
387
  import "../chunk-6HWVI6MI.js";
388
- import "../chunk-KNP4ENFT.js";
389
- import {
390
- HOOK_WALL_BUDGET_MS
391
- } from "../chunk-CKEQFGLT.js";
388
+ import "../chunk-PK3GDU4M.js";
392
389
  import {
393
390
  centralityFromReverseDeps,
394
391
  getWordIndexBuildStatus,
@@ -397,7 +394,7 @@ import {
397
394
  parseWordIndexQuery,
398
395
  searchWordIndex,
399
396
  triggerBackgroundWordIndexBuild
400
- } from "../chunk-LXE7JAMV.js";
397
+ } from "../chunk-6JLNZ6DP.js";
401
398
  import {
402
399
  getProjectDiagnosticsScannerMaxFiles
403
400
  } from "../chunk-IT7MFVGP.js";
@@ -421,39 +418,32 @@ import {
421
418
  ipcPathForCwd,
422
419
  readTurnEndStatus,
423
420
  unlinkStaleUnixSocket
424
- } from "../chunk-YVPB5YGO.js";
421
+ } from "../chunk-HWMNTQBJ.js";
425
422
  import {
426
423
  resolveRunnerPath,
427
424
  toRunnerDisplayPath
428
425
  } from "../chunk-ZRQMENT4.js";
429
- import {
430
- bounded,
431
- combineAbortSignals,
432
- untilAborted,
433
- withBudget,
434
- withDeadline
435
- } from "../chunk-3HZ6MNB2.js";
436
426
  import "../chunk-2BEMIWEW.js";
437
427
  import "../chunk-IJYGIDF4.js";
438
428
  import {
439
429
  commitDurableStore,
440
430
  resetResolvedPathCache,
441
431
  resetZizmorTokenAvailability
442
- } from "../chunk-ITAPXBIB.js";
432
+ } from "../chunk-NRVWLTOY.js";
443
433
  import {
444
434
  resolveToolCwd
445
- } from "../chunk-JSQK5DH3.js";
435
+ } from "../chunk-YLHJWAQS.js";
446
436
  import {
447
437
  _resetPackageManagerCache,
448
438
  findGlobalBinary,
449
439
  pmBinary,
450
440
  resolveNodePackageManager,
451
441
  runScriptArgs
452
- } from "../chunk-FVEEEEIM.js";
442
+ } from "../chunk-OVPR3GQ6.js";
453
443
  import {
454
444
  getIsolatedNpxSpawnOptions,
455
445
  probeToolAsync
456
- } from "../chunk-OP5BMZKK.js";
446
+ } from "../chunk-3QMLB4TI.js";
457
447
  import "../chunk-UYXV5NIS.js";
458
448
  import {
459
449
  classifyProbeFailure,
@@ -462,24 +452,24 @@ import {
462
452
  logAvailabilityDecision,
463
453
  resetInstallRetryLatches,
464
454
  startHostStallSampler
465
- } from "../chunk-WBXCIRVI.js";
455
+ } from "../chunk-AVBEPUCD.js";
466
456
  import {
467
457
  canRunStartupHeavyScans,
468
458
  detectProjectLanguageProfile,
469
459
  getDefaultStartupTools
470
- } from "../chunk-TTGDTNSN.js";
471
- import "../chunk-34RXPR7M.js";
460
+ } from "../chunk-75TVYCQW.js";
461
+ import "../chunk-KXDQD34C.js";
472
462
  import {
473
463
  DEFAULT_MAX_SCAN_ENTRIES,
474
464
  collectSourceFilesWithBudgetAsync,
475
465
  getSlowFsVerdict,
476
466
  isSlowFs,
477
467
  slowFsDegradationNotice
478
- } from "../chunk-3NVGBFJS.js";
468
+ } from "../chunk-3PMLYGJN.js";
479
469
  import {
480
470
  shouldRecurseIntoDir,
481
471
  walkTreeStackAsync
482
- } from "../chunk-C2REOMPO.js";
472
+ } from "../chunk-YTXFNCVN.js";
483
473
  import {
484
474
  displayProjectDataPath,
485
475
  drainProjectDataDirMigrations,
@@ -509,7 +499,7 @@ import {
509
499
  sweepDeadEphemeralDataDirs,
510
500
  updateHeartbeat,
511
501
  withGenerationLockSync
512
- } from "../chunk-DNB4ZQGN.js";
502
+ } from "../chunk-ET3DSSFZ.js";
513
503
  import {
514
504
  createSingleFlight
515
505
  } from "../chunk-B4FAFEBP.js";
@@ -543,14 +533,20 @@ import {
543
533
  } from "../chunk-CIA7X2PZ.js";
544
534
  import {
545
535
  DEFAULT_MAX_OUTPUT_BYTES,
536
+ HOOK_WALL_BUDGET_MS,
537
+ bounded,
538
+ combineAbortSignals,
546
539
  createBoundedOutputSink,
547
540
  getProjectTrustState,
548
541
  isToolInstallAllowedByTrust,
549
542
  projectTrustDenialReason,
550
543
  setProjectTrustState,
551
544
  truncatedByOutputCap,
545
+ untilAborted,
546
+ withBudget,
547
+ withDeadline,
552
548
  writeFileAtomic
553
- } from "../chunk-43KD3PPM.js";
549
+ } from "../chunk-HRQTYU2T.js";
554
550
  import {
555
551
  LENS_TOOL_NAMES,
556
552
  TOOL_REGISTRY,
@@ -3181,28 +3177,28 @@ async function buildBootstrapClients() {
3181
3177
  }
3182
3178
  }
3183
3179
  const [ruffClient, biomeClient, knipClient, todoScanner, jscpdClient, depChecker, testRunnerClient, complexityClient, goClient, govulncheckClient, gitleaksClient, trivyClient, opengrepClient, rustClient, agentBehaviorClient2, deadCodeClients] = await Promise.all([
3184
- load("ruff", async () => new (await import("../chunk-HIUVHRLM.js")).RuffClient()),
3185
- load("biome", async () => new (await import("../chunk-BN36MQW5.js")).BiomeClient()),
3186
- load("knip", async () => new (await import("../chunk-TBE4OLPA.js")).KnipClient()),
3187
- load("todo", async () => new (await import("../chunk-VDMF7Q2P.js")).TodoScanner()),
3188
- load("jscpd", async () => new (await import("../chunk-6K4X7IIF.js")).JscpdClient()),
3189
- load("dependency-checker", async () => new (await import("../chunk-UG4YLCJ5.js")).DependencyChecker()),
3190
- load("test-runner", async () => new (await import("../chunk-C4ICGFEO.js")).TestRunnerClient()),
3191
- load("complexity", async () => new (await import("../chunk-AJ62EQIQ.js")).ComplexityClient()),
3180
+ load("ruff", async () => new (await import("../chunk-D6ANA6YU.js")).RuffClient()),
3181
+ load("biome", async () => new (await import("../chunk-PCREZ4HJ.js")).BiomeClient()),
3182
+ load("knip", async () => new (await import("../chunk-OF2YGDUE.js")).KnipClient()),
3183
+ load("todo", async () => new (await import("../chunk-5FDUKJZO.js")).TodoScanner()),
3184
+ load("jscpd", async () => new (await import("../chunk-ZWZD4TJ5.js")).JscpdClient()),
3185
+ load("dependency-checker", async () => new (await import("../chunk-VD7MQFEV.js")).DependencyChecker()),
3186
+ load("test-runner", async () => new (await import("../chunk-FVQKX5KI.js")).TestRunnerClient()),
3187
+ load("complexity", async () => new (await import("../chunk-IC4L65U7.js")).ComplexityClient()),
3192
3188
  // The process-wide singleton, NOT a fresh instance (#2455 fix round 4,
3193
3189
  // F2). `handleSessionStart` reads this object for its "Active tools"
3194
3190
  // line while `resetGoAvailability` re-arms the singleton's latch; a
3195
3191
  // second instance here meant the reset never reached the surface a
3196
3192
  // user actually sees.
3197
- load("go", async () => (await import("../chunk-BJDB7PXU.js")).goClient),
3198
- load("govulncheck", async () => new (await import("../chunk-F37CCZUA.js")).GovulncheckClient()),
3199
- load("gitleaks", async () => new (await import("../chunk-LIDFFCZZ.js")).GitleaksClient()),
3200
- load("trivy", async () => new (await import("../chunk-R2UF54ON.js")).TrivyClient()),
3201
- load("opengrep", async () => new (await import("../chunk-AVOUHMCS.js")).OpengrepClient()),
3193
+ load("go", async () => (await import("../chunk-TS5EIWEF.js")).goClient),
3194
+ load("govulncheck", async () => new (await import("../chunk-YULIERZW.js")).GovulncheckClient()),
3195
+ load("gitleaks", async () => new (await import("../chunk-AD7JDEI6.js")).GitleaksClient()),
3196
+ load("trivy", async () => new (await import("../chunk-HJWF7CGW.js")).TrivyClient()),
3197
+ load("opengrep", async () => new (await import("../chunk-GHATCG2A.js")).OpengrepClient()),
3202
3198
  // The process-wide singleton, for the same reason as "go" above.
3203
- load("rust", async () => (await import("../chunk-KX4DF6XX.js")).rustClient),
3204
- load("agent-behavior", async () => (await import("../chunk-4WWPDMRA.js")).agentBehaviorClient),
3205
- loadList("dead-code", async () => (await import("../chunk-LHU6NG5Z.js")).getDeadCodeClients())
3199
+ load("rust", async () => (await import("../chunk-Z2W5YJBW.js")).rustClient),
3200
+ load("agent-behavior", async () => (await import("../chunk-F7AMFFVK.js")).agentBehaviorClient),
3201
+ loadList("dead-code", async () => (await import("../chunk-JLMS7EMD.js")).getDeadCodeClients())
3206
3202
  ]);
3207
3203
  if (failures.length > 0)
3208
3204
  await logBootstrapFailures(failures);
@@ -3288,7 +3284,7 @@ function resetAnalyzerBootstrapSessionState() {
3288
3284
  }
3289
3285
 
3290
3286
  // dist/clients/formatters-lazy.js
3291
- var lazyFormatters = createLazyImport(() => import("../chunk-TPMBNWHO.js"));
3287
+ var lazyFormatters = createLazyImport(() => import("../chunk-Y7XMKBFP.js"));
3292
3288
  function warmFormatters() {
3293
3289
  return lazyFormatters.get();
3294
3290
  }
@@ -3468,6 +3464,10 @@ function appendProjectChangesAllocated(cwd, buildAll) {
3468
3464
  append(false);
3469
3465
  }
3470
3466
 
3467
+ // dist/clients/metrics/complexity-baseline.js
3468
+ var MAX_BASELINE_FILES = 256;
3469
+ var MAX_BLOB_BYTES = 2 * 1024 * 1024;
3470
+
3471
3471
  // dist/clients/turn-summary.js
3472
3472
  var TurnSummaryCollector = class {
3473
3473
  filesByKey = /* @__PURE__ */ new Map();
@@ -3634,7 +3634,12 @@ var RuntimeCoordinator = class {
3634
3634
  diagnosticsSurfaced: 0,
3635
3635
  coldSnapshotTouches: 0
3636
3636
  };
3637
- _complexityBaselines = /* @__PURE__ */ new Set();
3637
+ /**
3638
+ * #5087: per-file complexity baselines, keyed by
3639
+ * `complexityBaselineKey`. Bounded (LRU), and every write goes through a
3640
+ * session handle captured before the write's first await (#4220).
3641
+ */
3642
+ _complexityBaselines = new BoundedLruCache(MAX_BASELINE_FILES);
3638
3643
  _fixedThisTurn = new PathKeyedMap(normalizeMapKey);
3639
3644
  _writtenThisTurn = new PathKeyedMap(normalizeMapKey);
3640
3645
  _autofixDemotedThisTurn = new PathKeyedMap(normalizeMapKey);
@@ -6334,7 +6339,7 @@ async function igniteDominantLanguageWarm(cwd, runtime, sessionGeneration, dbg)
6334
6339
  if (!runtime.isCurrentSession(sessionGeneration))
6335
6340
  return;
6336
6341
  const lspService = (await loadLspService()).getLSPService();
6337
- const { collectSourceFilesAsync } = await import("../chunk-HASJPQBC.js");
6342
+ const { collectSourceFilesAsync } = await import("../chunk-K2LD6YNH.js");
6338
6343
  const { CODE_KINDS, detectFileKind: detectFileKind2 } = await import("../chunk-T5EGSBM2.js");
6339
6344
  const files = await collectSourceFilesAsync(cwd, {
6340
6345
  inspectGeneratedHeaders: false
@@ -6409,7 +6414,7 @@ function scheduleManagedToolRefresh(dbg, rulePack) {
6409
6414
  managedToolRefreshTimer = void 0;
6410
6415
  void (async () => {
6411
6416
  try {
6412
- const refresh = await import("../chunk-VI3BJMZO.js");
6417
+ const refresh = await import("../chunk-PXGVB2CY.js");
6413
6418
  const outcome = await refresh.runManagedToolRefresh(void 0, {
6414
6419
  rulePack
6415
6420
  });
@@ -6459,7 +6464,7 @@ function scanOneTodoFile(scanner, filePath, items) {
6459
6464
  async function collectTodoBaselineItems(scanner, analysisRoot, stillCurrent) {
6460
6465
  const items = [];
6461
6466
  try {
6462
- const { getSourceFilesAsync } = await import("../chunk-3QCI3V6C.js");
6467
+ const { getSourceFilesAsync } = await import("../chunk-3EIZMRXI.js");
6463
6468
  const files = await getSourceFilesAsync(analysisRoot, true);
6464
6469
  if (!stillCurrent())
6465
6470
  return items;
@@ -6488,7 +6493,7 @@ async function buildOrRefreshWordIndex(args) {
6488
6493
  const snapshot = loadProjectSnapshot(snapshotRoot);
6489
6494
  const snapshotLoadMs = Date.now() - snapshotLoadStartMs;
6490
6495
  if (snapshot?.wordIndex) {
6491
- const { deserializeWordIndex, refreshWordIndexIncrementally, countWordIndexPostingEntries: countWordIndexPostingEntries2, estimateWordIndexResidentBytes: estimateWordIndexResidentBytes2, notifyWordIndexPublished: notifyWordIndexPublished2 } = await import("../chunk-NR4KQOXZ.js");
6496
+ const { deserializeWordIndex, refreshWordIndexIncrementally, countWordIndexPostingEntries: countWordIndexPostingEntries2, estimateWordIndexResidentBytes: estimateWordIndexResidentBytes2, notifyWordIndexPublished: notifyWordIndexPublished2 } = await import("../chunk-HSTN27NR.js");
6492
6497
  const deserializeStartMs = Date.now();
6493
6498
  const index = deserializeWordIndex(snapshot.wordIndex);
6494
6499
  const deserializeMs = Date.now() - deserializeStartMs;
@@ -6561,7 +6566,7 @@ async function buildOrRefreshWordIndex(args) {
6561
6566
  }
6562
6567
  }
6563
6568
  }
6564
- const { buildWordIndexAsync, collectWordIndexDocs, countWordIndexPostingEntries, estimateWordIndexResidentBytes, notifyWordIndexPublished } = await import("../chunk-NR4KQOXZ.js");
6569
+ const { buildWordIndexAsync, collectWordIndexDocs, countWordIndexPostingEntries, estimateWordIndexResidentBytes, notifyWordIndexPublished } = await import("../chunk-HSTN27NR.js");
6565
6570
  const docs = await collectWordIndexDocs(analysisRoot, () => runtime.isCurrentSession(sessionGeneration), rebuildPreflightFiles);
6566
6571
  if (!runtime.isCurrentSession(sessionGeneration))
6567
6572
  return;
@@ -6941,8 +6946,8 @@ function scheduleStartupScansWithClients(deps, runtime, sessionGeneration, analy
6941
6946
  let callGraphIdentity;
6942
6947
  const callGraphTask = runTask("call-graph", async () => {
6943
6948
  const { FactStore: FactStore2 } = await import("../chunk-X33QECRJ.js");
6944
- const { buildOrUpdateGraph, extractSymbolsAndRefsFromGraph, getReviewGraphCacheIdentity } = await import("../chunk-B4K6OSLL.js");
6945
- const { buildCallGraph, saveCallGraph, loadCallGraph: loadCallGraph2 } = await import("../chunk-AFNPNHJV.js");
6949
+ const { buildOrUpdateGraph, extractSymbolsAndRefsFromGraph, getReviewGraphCacheIdentity } = await import("../chunk-7T64QA5D.js");
6950
+ const { buildCallGraph, saveCallGraph, loadCallGraph: loadCallGraph2 } = await import("../chunk-TOOXNL6M.js");
6946
6951
  if (!runtime.isCurrentSession(sessionGeneration))
6947
6952
  return;
6948
6953
  const startMs = Date.now();
@@ -6983,7 +6988,7 @@ function scheduleStartupScansWithClients(deps, runtime, sessionGeneration, analy
6983
6988
  return;
6984
6989
  if (!runtime.callGraph)
6985
6990
  return;
6986
- const { buildCodebaseModel, saveCodebaseModel, DEFAULT_CODEBASE_MODEL_TOKEN_BUDGET } = await import("../chunk-KDMJ2DJD.js");
6991
+ const { buildCodebaseModel, saveCodebaseModel, DEFAULT_CODEBASE_MODEL_TOKEN_BUDGET } = await import("../chunk-7ZVEFWOE.js");
6987
6992
  if (!callGraphIdentity)
6988
6993
  return;
6989
6994
  const model = buildCodebaseModel(runtime.callGraph, analysisRoot, DEFAULT_CODEBASE_MODEL_TOKEN_BUDGET, callGraphIdentity);
@@ -7192,8 +7197,8 @@ async function handleSessionStart(deps) {
7192
7197
  try {
7193
7198
  warmupDbg("warmup: starting background warmup");
7194
7199
  const scanContextStartedAt = Date.now();
7195
- const startupScanModule = await import("../chunk-R2VUZZPJ.js");
7196
- const languageProfileModule = await import("../chunk-SQBDX6IO.js");
7200
+ const startupScanModule = await import("../chunk-ILC2B7IJ.js");
7201
+ const languageProfileModule = await import("../chunk-C6V2DSZZ.js");
7197
7202
  const warmupSnapshotRoot = resolveSnapshotRoot(warmupCwd);
7198
7203
  const cachedSnapshot = loadProjectSnapshot(warmupSnapshotRoot);
7199
7204
  warmupOwnSnapshotRead = cachedSnapshot ? {
@@ -12910,8 +12915,8 @@ ${lines.join("\n")}`;
12910
12915
  } else {
12911
12916
  const callGraphStart = Date.now();
12912
12917
  try {
12913
- const { impact, formatImpact, parseSymbolKey } = await import("../chunk-AFNPNHJV.js");
12914
- const { callGraphImpactToProjectDiagnostics } = await import("../chunk-5RLEDUUE.js");
12918
+ const { impact, formatImpact, parseSymbolKey } = await import("../chunk-TOOXNL6M.js");
12919
+ const { callGraphImpactToProjectDiagnostics } = await import("../chunk-R67WQ5RY.js");
12915
12920
  const impactLines = [];
12916
12921
  let callGraphDispositionSuppressed = 0;
12917
12922
  const impactFindings = [];
@@ -14693,7 +14698,7 @@ function blastReadArgs(graph, normalizedFile) {
14693
14698
  return { path: normalizedFile, offset: 1, limit };
14694
14699
  }
14695
14700
  async function computeBlastRadius(graph, normalizedPath, projectRoot, maxDepth) {
14696
- const { computeTransitiveImpact } = await import("../chunk-GTNO6F6K.js");
14701
+ const { computeTransitiveImpact } = await import("../chunk-WTSQKJAR.js");
14697
14702
  const result = computeTransitiveImpact(graph, normalizedPath, { maxDepth });
14698
14703
  const byFile = /* @__PURE__ */ new Map();
14699
14704
  for (const hit of result.hits) {
@@ -15310,7 +15315,7 @@ async function moduleReport(file, cwd, options) {
15310
15315
  let callGraphIdentity;
15311
15316
  let revisionDriftNote;
15312
15317
  try {
15313
- const { getCachedReviewGraph, getReviewGraphCacheIdentity, getReviewGraphSizeSkipVerdict, getReviewGraphRevisionDrift, formatReviewGraphRevisionDriftNote: formatReviewGraphRevisionDriftNote2 } = await import("../chunk-B4K6OSLL.js");
15318
+ const { getCachedReviewGraph, getReviewGraphCacheIdentity, getReviewGraphSizeSkipVerdict, getReviewGraphRevisionDrift, formatReviewGraphRevisionDriftNote: formatReviewGraphRevisionDriftNote2 } = await import("../chunk-7T64QA5D.js");
15314
15319
  graph = getCachedReviewGraph(cwd);
15315
15320
  graphFileCap = getReviewGraphSizeSkipVerdict(cwd)?.maxFileCount;
15316
15321
  const drift = graph ? getReviewGraphRevisionDrift(cwd) : void 0;
@@ -16221,7 +16226,7 @@ function roleFor(graph, filePath) {
16221
16226
  return top.length > 0 ? top.map((s) => s.name).join(", ") : void 0;
16222
16227
  }
16223
16228
  async function computeHubs(graph, degrees, cwd, limit, focusTerms) {
16224
- const { computeTransitiveImpact } = await import("../chunk-GTNO6F6K.js");
16229
+ const { computeTransitiveImpact } = await import("../chunk-WTSQKJAR.js");
16225
16230
  const ranked = [...graph.fileNodes.entries()].map(([filePath, fileNodeId]) => ({
16226
16231
  filePath,
16227
16232
  fileNodeId,
@@ -16472,7 +16477,7 @@ function triggerBackgroundGraphBuild(cwd, deps) {
16472
16477
  async function projectReport(cwd, options) {
16473
16478
  const limit = clampLimit(options?.limit);
16474
16479
  const focusTerms = normalizeFocus2(options?.focus);
16475
- const { getCachedReviewGraph, getReviewGraphSizeSkipVerdict, getLastReviewGraphBuildAttempt, buildOrUpdateGraph, isGraphBuildInFlight, getReviewGraphRevisionDrift } = await import("../chunk-B4K6OSLL.js");
16480
+ const { getCachedReviewGraph, getReviewGraphSizeSkipVerdict, getLastReviewGraphBuildAttempt, buildOrUpdateGraph, isGraphBuildInFlight, getReviewGraphRevisionDrift } = await import("../chunk-7T64QA5D.js");
16476
16481
  let graph;
16477
16482
  try {
16478
16483
  graph = getCachedReviewGraph(cwd);
@@ -17081,7 +17086,7 @@ async function symbolSearch(query, cwd, limit = 20, options = {}) {
17081
17086
  warmLease.release();
17082
17087
  }
17083
17088
  const hits = results.map(toSymbolSearchHit);
17084
- const { getCachedReviewGraph } = await import("../chunk-B4K6OSLL.js");
17089
+ const { getCachedReviewGraph } = await import("../chunk-7T64QA5D.js");
17085
17090
  const graph = getCachedReviewGraph(cwd);
17086
17091
  if (graph)
17087
17092
  annotateSymbolSearchHitsWithGraph(hits, centrality, graph);
@@ -17609,7 +17614,6 @@ function createAstGrepReplaceTool(astGrepClient2, captureLineage, getFlag) {
17609
17614
  const state = details?.applied ? "applied" : "preview";
17610
17615
  return `ast_grep_replace \u2014 ${n} match${n === 1 ? "" : "es"}, ${state}`;
17611
17616
  }),
17612
- constrainedSampling: CONSTRAINED_JSON_SCHEMA_SAMPLING,
17613
17617
  parameters: Type.Object({
17614
17618
  pattern: Type.String({
17615
17619
  description: "AST pattern to match (be specific with context)"
@@ -18110,7 +18114,6 @@ function createAstGrepSearchTool(astGrepClient2) {
18110
18114
  const applied = details?.applied ? " (applied)" : "";
18111
18115
  return `ast_grep_search \u2014 ${count}${ofTotal} match${count === 1 && !ofTotal ? "" : "es"}${applied}`;
18112
18116
  }),
18113
- constrainedSampling: CONSTRAINED_JSON_SCHEMA_SAMPLING,
18114
18117
  parameters: Type.Object({
18115
18118
  dump: Type.Optional(Type.Boolean()),
18116
18119
  pattern: Type.Optional(Type.String({ description: "AST pattern." })),
@@ -21567,7 +21570,6 @@ function createLensDiagnosticsTool(cacheManager2, getCwd, getLspService = getLSP
21567
21570
  parts.push(`${w} warnings`);
21568
21571
  return `lens_diagnostics ${mode} \u2014 ${parts.join(" \xB7 ")}${cacheVerdict === "inconclusive" || cacheVerdict === "unverified" ? ` \xB7 ${cacheVerdict}` : ""}${uncheckedSuffix} (${files} files)${coldSuffix}${failedSuffix}`;
21569
21572
  }),
21570
- constrainedSampling: CONSTRAINED_JSON_SCHEMA_SAMPLING,
21571
21573
  parameters: Type.Object({
21572
21574
  source: Type.Optional(Type.String({
21573
21575
  enum: ["session", "lsp"],
@@ -23663,7 +23665,6 @@ function createReadEnclosingTool(getProjectRoot, recordSymbolRead) {
23663
23665
  const range = details?.startLine && details?.endLine ? `:${details.startLine}-${details.endLine}` : "";
23664
23666
  return `read_enclosing ${details?.kind ?? ""} ${details?.name ?? ""} ${base}${range}`.replace(/\s+/g, " ");
23665
23667
  }),
23666
- constrainedSampling: CONSTRAINED_JSON_SCHEMA_SAMPLING,
23667
23668
  parameters: Type.Object({
23668
23669
  path: Type.String({
23669
23670
  description: "Absolute or workspace-relative path to the source file."