@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.
- package/CHANGELOG.md +17 -0
- package/README.md +9 -9
- package/THIRD_PARTY_NOTICES.md +2 -2
- package/node_modules/@herbertgao/pi-subagents/CHANGELOG.md +6 -0
- package/node_modules/@herbertgao/pi-subagents/README.md +2 -2
- package/node_modules/@herbertgao/pi-subagents/package.json +4 -4
- package/node_modules/@herbertgao/pi-subagents/src/ui/conversation-viewer.ts +10 -6
- package/node_modules/@herbertgao/pi-subagents/src/ui/viewer-keys.ts +47 -4
- package/node_modules/@narumitw/pi-btw/CHANGELOG.md +19 -0
- package/node_modules/@narumitw/pi-btw/dist/chunks/{main-tree-picker-WHRN26NJ.ts → main-tree-picker-3PXJARQW.ts} +59 -53
- package/node_modules/@narumitw/pi-btw/dist/chunks/main-tree-picker-3PXJARQW.ts.map +7 -0
- package/node_modules/@narumitw/pi-btw/dist/index.ts +1 -1
- package/node_modules/@narumitw/pi-btw/docs/main-tree-snapshots.md +39 -0
- package/node_modules/@narumitw/pi-btw/docs/workflows.md +1 -0
- package/node_modules/@narumitw/pi-btw/package.json +2 -2
- package/node_modules/@narumitw/pi-btw/src/main-tree-picker.ts +73 -63
- package/node_modules/@narumitw/pi-caffeinate/CHANGELOG.md +7 -0
- package/node_modules/@narumitw/pi-caffeinate/package.json +3 -3
- package/node_modules/pi-commandcode-provider/CHANGELOG.md +5 -0
- package/node_modules/pi-commandcode-provider/package.json +1 -1
- package/node_modules/pi-commandcode-provider/src/pricing.ts +4 -4
- package/node_modules/pi-lens/CHANGELOG-USER.md +6 -6
- package/node_modules/pi-lens/CHANGELOG.md +30 -0
- package/node_modules/pi-lens/README.md +1 -0
- package/node_modules/pi-lens/dist/{chunk-KDGKKK7A.js → chunk-2HWVG3IM.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-3QCI3V6C.js → chunk-3EIZMRXI.js} +5 -5
- package/node_modules/pi-lens/dist/{chunk-NWK7KKNO.js → chunk-3MHY4BQY.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-3NVGBFJS.js → chunk-3PMLYGJN.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-OP5BMZKK.js → chunk-3QMLB4TI.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-V7IPIAE5.js → chunk-3VWEZ6H2.js} +24 -26
- package/node_modules/pi-lens/dist/{chunk-NLRKB32C.js → chunk-5EEWCJG7.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-VDMF7Q2P.js → chunk-5FDUKJZO.js} +4 -4
- package/node_modules/pi-lens/dist/{chunk-KBSC5Z3G.js → chunk-5KLRCUDT.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-GL6J5R34.js → chunk-6EXGCXM5.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-OC4ZGVMH.js → chunk-6GWCYEP7.js} +5 -7
- package/node_modules/pi-lens/dist/{chunk-LXE7JAMV.js → chunk-6JLNZ6DP.js} +4 -4
- package/node_modules/pi-lens/dist/{chunk-TTGDTNSN.js → chunk-75TVYCQW.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-QAM2Q3VO.js → chunk-7BEADGAZ.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-R5BNSOIV.js → chunk-7KWI5UHL.js} +7 -8
- package/node_modules/pi-lens/dist/{chunk-5YTDZ5WP.js → chunk-7M64NTAK.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-B4K6OSLL.js → chunk-7T64QA5D.js} +25 -27
- package/node_modules/pi-lens/dist/{chunk-KDMJ2DJD.js → chunk-7ZVEFWOE.js} +5 -5
- package/node_modules/pi-lens/dist/{chunk-D5L7Q57Z.js → chunk-AAIVSSUU.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-LIDFFCZZ.js → chunk-AD7JDEI6.js} +9 -9
- package/node_modules/pi-lens/dist/{chunk-WBXCIRVI.js → chunk-AVBEPUCD.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-VTXJAO5R.js → chunk-AZXTLZHE.js} +9 -9
- package/node_modules/pi-lens/dist/{chunk-UELHWF5I.js → chunk-BEIPWPVR.js} +10 -10
- package/node_modules/pi-lens/dist/{chunk-SQBDX6IO.js → chunk-C6V2DSZZ.js} +6 -6
- package/node_modules/pi-lens/dist/{chunk-ZD4KVFXI.js → chunk-D2ZYRI7M.js} +172 -3
- package/node_modules/pi-lens/dist/{chunk-HIUVHRLM.js → chunk-D6ANA6YU.js} +20 -22
- package/node_modules/pi-lens/dist/{chunk-YUF4DRYB.js → chunk-D7OEGXDX.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-AOQKQWZU.js → chunk-DFAY7JUN.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-QUZYRDT6.js → chunk-DIIDMDZU.js} +6 -6
- package/node_modules/pi-lens/dist/{chunk-QBUSONNE.js → chunk-DZSQXG66.js} +45 -27
- package/node_modules/pi-lens/dist/{chunk-UY3WWW5R.js → chunk-E5SSUV2A.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-DNB4ZQGN.js → chunk-ET3DSSFZ.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-4WWPDMRA.js → chunk-F7AMFFVK.js} +4 -4
- package/node_modules/pi-lens/dist/{chunk-LHCDWFDB.js → chunk-FDLGJFAE.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-C4ICGFEO.js → chunk-FVQKX5KI.js} +12 -12
- package/node_modules/pi-lens/dist/{chunk-TRYOYWWU.js → chunk-G3LR6V6N.js} +4 -4
- package/node_modules/pi-lens/dist/{chunk-AVOUHMCS.js → chunk-GHATCG2A.js} +10 -10
- package/node_modules/pi-lens/dist/{chunk-R2UF54ON.js → chunk-HJWF7CGW.js} +9 -9
- package/node_modules/pi-lens/dist/chunk-HRQTYU2T.js +355 -0
- package/node_modules/pi-lens/dist/{chunk-NR4KQOXZ.js → chunk-HSTN27NR.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-YVPB5YGO.js → chunk-HWMNTQBJ.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-6XNVY3FW.js → chunk-HYDJUVOE.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-WXMUGUZV.js → chunk-HYR25MV3.js} +4 -4
- package/node_modules/pi-lens/dist/{chunk-AJ62EQIQ.js → chunk-IC4L65U7.js} +12 -9
- package/node_modules/pi-lens/dist/{chunk-R2VUZZPJ.js → chunk-ILC2B7IJ.js} +4 -4
- package/node_modules/pi-lens/dist/{chunk-E6Z3CJT2.js → chunk-IZ36G463.js} +5 -5
- package/node_modules/pi-lens/dist/{chunk-IBEYUBCM.js → chunk-JKAVKTMY.js} +6 -6
- package/node_modules/pi-lens/dist/{chunk-LHU6NG5Z.js → chunk-JLMS7EMD.js} +8 -8
- package/node_modules/pi-lens/dist/{chunk-6RXMQYNU.js → chunk-JRSS6KM4.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-HASJPQBC.js → chunk-K2LD6YNH.js} +4 -4
- package/node_modules/pi-lens/dist/{chunk-UQ6OZYTO.js → chunk-KUDUKKQE.js} +43 -45
- package/node_modules/pi-lens/dist/{chunk-34RXPR7M.js → chunk-KXDQD34C.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-QDZ3ZZMY.js → chunk-LD7SXICE.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-NQFXN5U7.js → chunk-MOEWCPMC.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-IJ55MYO6.js → chunk-MV6ST2KT.js} +4 -4
- package/node_modules/pi-lens/dist/{chunk-532X3OCZ.js → chunk-NCDH2JB7.js} +7 -9
- package/node_modules/pi-lens/dist/{chunk-ITAPXBIB.js → chunk-NRVWLTOY.js} +9 -9
- package/node_modules/pi-lens/dist/{chunk-DPDA3ILA.js → chunk-NZINZCHB.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-A4HKPAEN.js → chunk-OEPWTSUG.js} +6 -6
- package/node_modules/pi-lens/dist/{chunk-TBE4OLPA.js → chunk-OF2YGDUE.js} +21 -23
- package/node_modules/pi-lens/dist/{chunk-BLL4VYGZ.js → chunk-OHEUOWYT.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-PSUXESQ5.js → chunk-ORYQGVC3.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-FVEEEEIM.js → chunk-OVPR3GQ6.js} +4 -4
- package/node_modules/pi-lens/dist/{chunk-BN36MQW5.js → chunk-PCREZ4HJ.js} +20 -22
- package/node_modules/pi-lens/dist/{chunk-KNP4ENFT.js → chunk-PK3GDU4M.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-2SD2CGVH.js → chunk-PPYUBO6Y.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-4HNBY7S7.js → chunk-PTJXMYRY.js} +7 -9
- package/node_modules/pi-lens/dist/{chunk-VI3BJMZO.js → chunk-PXGVB2CY.js} +14 -18
- package/node_modules/pi-lens/dist/{chunk-3C6ZZAB2.js → chunk-QY6J2FTK.js} +10 -12
- package/node_modules/pi-lens/dist/{chunk-5RLEDUUE.js → chunk-R67WQ5RY.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-WMCAEP2K.js → chunk-S6ZQFPOX.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-LPM6NKVI.js → chunk-SF7KSXB5.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-ECYUBKYX.js → chunk-T6PPK3T6.js} +40 -37
- package/node_modules/pi-lens/dist/{chunk-RV5VX2XW.js → chunk-TM3A3K7T.js} +8 -9
- package/node_modules/pi-lens/dist/{chunk-AFNPNHJV.js → chunk-TOOXNL6M.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-BJDB7PXU.js → chunk-TS5EIWEF.js} +6 -6
- package/node_modules/pi-lens/dist/{chunk-UG4YLCJ5.js → chunk-VD7MQFEV.js} +21 -23
- package/node_modules/pi-lens/dist/{chunk-BBJXIZ3X.js → chunk-VU2PRGRI.js} +5 -34
- package/node_modules/pi-lens/dist/{chunk-GTNO6F6K.js → chunk-WTSQKJAR.js} +4 -4
- package/node_modules/pi-lens/dist/{chunk-TPMBNWHO.js → chunk-Y7XMKBFP.js} +16 -16
- package/node_modules/pi-lens/dist/{chunk-JSQK5DH3.js → chunk-YLHJWAQS.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-HTUG7ZFK.js → chunk-YLW26OHX.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-C2REOMPO.js → chunk-YTXFNCVN.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-F37CCZUA.js → chunk-YULIERZW.js} +8 -8
- package/node_modules/pi-lens/dist/{chunk-KX4DF6XX.js → chunk-Z2W5YJBW.js} +6 -6
- package/node_modules/pi-lens/dist/{chunk-DBAHJFBU.js → chunk-Z6WTLVUL.js} +13 -18
- package/node_modules/pi-lens/dist/{chunk-6K4X7IIF.js → chunk-ZWZD4TJ5.js} +23 -25
- package/node_modules/pi-lens/dist/index.js +1134 -618
- package/node_modules/pi-lens/dist/mcp/analyze-cli.js +5 -7
- package/node_modules/pi-lens/dist/mcp/cli.js +25 -27
- package/node_modules/pi-lens/dist/mcp/server.js +101 -100
- package/node_modules/pi-lens/dist/mcp/worker.js +43 -45
- package/node_modules/pi-lens/dist/probes/installer.js +11 -11
- package/node_modules/pi-lens/docs/agent-tools.md +54 -12
- package/node_modules/pi-lens/docs/configuration.md +3 -3
- package/node_modules/pi-lens/docs/globalconfig.md +8 -1
- package/node_modules/pi-lens/docs/invariants/lsp-trust-exec.md +7 -0
- package/node_modules/pi-lens/docs/mcp.md +2 -1
- package/node_modules/pi-lens/docs/usage.md +1 -1
- package/node_modules/pi-lens/package.json +1 -1
- package/package.json +7 -7
- package/node_modules/@narumitw/pi-btw/dist/chunks/main-tree-picker-WHRN26NJ.ts.map +0 -7
- package/node_modules/pi-lens/dist/chunk-3HZ6MNB2.js +0 -140
- package/node_modules/pi-lens/dist/chunk-43KD3PPM.js +0 -162
- 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-
|
|
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
|
-
|
|
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-
|
|
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-
|
|
11
|
+
} from "../chunk-QY6J2FTK.js";
|
|
12
12
|
import "../chunk-3MED75HT.js";
|
|
13
13
|
import "../chunk-PKLB2XJL.js";
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
14
|
+
import "../chunk-DZSQXG66.js";
|
|
15
|
+
import "../chunk-DFAY7JUN.js";
|
|
16
16
|
import "../chunk-XIMYZ3JA.js";
|
|
17
|
-
import "../chunk-
|
|
18
|
-
import "../chunk-
|
|
19
|
-
import "../chunk-
|
|
17
|
+
import "../chunk-Z6WTLVUL.js";
|
|
18
|
+
import "../chunk-PPYUBO6Y.js";
|
|
19
|
+
import "../chunk-5EEWCJG7.js";
|
|
20
20
|
import "../chunk-QJ4T73J5.js";
|
|
21
|
-
import "../chunk-
|
|
21
|
+
import "../chunk-YLW26OHX.js";
|
|
22
22
|
import "../chunk-HGEE5LDW.js";
|
|
23
23
|
import "../chunk-5W3R6LFT.js";
|
|
24
|
-
import "../chunk-
|
|
25
|
-
import "../chunk-
|
|
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-
|
|
30
|
+
} from "../chunk-6GWCYEP7.js";
|
|
31
31
|
import "../chunk-Z54ZSOBZ.js";
|
|
32
|
-
import "../chunk-
|
|
32
|
+
import "../chunk-7M64NTAK.js";
|
|
33
33
|
import "../chunk-E3PNZDPH.js";
|
|
34
34
|
import "../chunk-6HWVI6MI.js";
|
|
35
|
-
import "../chunk-
|
|
36
|
-
import "../chunk-
|
|
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-
|
|
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-
|
|
46
|
-
import "../chunk-
|
|
47
|
-
import "../chunk-
|
|
48
|
-
import "../chunk-
|
|
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-
|
|
51
|
-
import "../chunk-
|
|
52
|
-
import "../chunk-
|
|
53
|
-
import "../chunk-
|
|
54
|
-
import "../chunk-
|
|
55
|
-
import "../chunk-
|
|
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-
|
|
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-
|
|
10
|
+
} from "../chunk-JKAVKTMY.js";
|
|
11
11
|
import {
|
|
12
12
|
clearFormatterCache
|
|
13
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-AZXTLZHE.js";
|
|
14
14
|
import {
|
|
15
15
|
findNearestProjectRoot,
|
|
16
16
|
isStartupScanVerdictFresh,
|
|
17
17
|
resolveStartupScanContext
|
|
18
|
-
} from "../chunk-
|
|
18
|
+
} from "../chunk-S6ZQFPOX.js";
|
|
19
19
|
import {
|
|
20
20
|
loadCallGraph
|
|
21
|
-
} from "../chunk-
|
|
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-
|
|
31
|
+
} from "../chunk-DIIDMDZU.js";
|
|
32
32
|
import {
|
|
33
33
|
GovulncheckClient
|
|
34
|
-
} from "../chunk-
|
|
34
|
+
} from "../chunk-OEPWTSUG.js";
|
|
35
35
|
import {
|
|
36
36
|
GitleaksClient,
|
|
37
37
|
classifyAndFilterFindings
|
|
38
|
-
} from "../chunk-
|
|
39
|
-
import "../chunk-
|
|
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-
|
|
120
|
+
} from "../chunk-T6PPK3T6.js";
|
|
121
121
|
import {
|
|
122
122
|
resetLazyInstallAttempts
|
|
123
|
-
} from "../chunk-
|
|
123
|
+
} from "../chunk-6EXGCXM5.js";
|
|
124
124
|
import {
|
|
125
125
|
isTestRoleCollateral
|
|
126
126
|
} from "../chunk-ME6MF2N2.js";
|
|
127
|
-
import "../chunk-
|
|
127
|
+
import "../chunk-JRSS6KM4.js";
|
|
128
128
|
import {
|
|
129
129
|
resetGoAvailability
|
|
130
|
-
} from "../chunk-
|
|
130
|
+
} from "../chunk-MOEWCPMC.js";
|
|
131
131
|
import {
|
|
132
132
|
TrivyClient,
|
|
133
133
|
trivyEvidenceFiles
|
|
134
|
-
} from "../chunk-
|
|
135
|
-
import "../chunk-
|
|
136
|
-
import "../chunk-
|
|
137
|
-
import "../chunk-
|
|
138
|
-
import "../chunk-
|
|
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-
|
|
142
|
-
import "../chunk-
|
|
143
|
-
import "../chunk-
|
|
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-
|
|
147
|
+
} from "../chunk-BEIPWPVR.js";
|
|
148
148
|
import {
|
|
149
149
|
readFileContent
|
|
150
|
-
} from "../chunk-
|
|
151
|
-
import "../chunk-
|
|
152
|
-
import "../chunk-
|
|
153
|
-
import "../chunk-
|
|
154
|
-
import "../chunk-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
314
|
-
import "../chunk-
|
|
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-
|
|
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-
|
|
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-
|
|
363
|
-
import "../chunk-
|
|
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-
|
|
378
|
+
} from "../chunk-6GWCYEP7.js";
|
|
379
379
|
import "../chunk-Z54ZSOBZ.js";
|
|
380
380
|
import {
|
|
381
381
|
getUserRuleRoot
|
|
382
|
-
} from "../chunk-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
432
|
+
} from "../chunk-NRVWLTOY.js";
|
|
443
433
|
import {
|
|
444
434
|
resolveToolCwd
|
|
445
|
-
} from "../chunk-
|
|
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-
|
|
442
|
+
} from "../chunk-OVPR3GQ6.js";
|
|
453
443
|
import {
|
|
454
444
|
getIsolatedNpxSpawnOptions,
|
|
455
445
|
probeToolAsync
|
|
456
|
-
} from "../chunk-
|
|
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-
|
|
455
|
+
} from "../chunk-AVBEPUCD.js";
|
|
466
456
|
import {
|
|
467
457
|
canRunStartupHeavyScans,
|
|
468
458
|
detectProjectLanguageProfile,
|
|
469
459
|
getDefaultStartupTools
|
|
470
|
-
} from "../chunk-
|
|
471
|
-
import "../chunk-
|
|
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-
|
|
468
|
+
} from "../chunk-3PMLYGJN.js";
|
|
479
469
|
import {
|
|
480
470
|
shouldRecurseIntoDir,
|
|
481
471
|
walkTreeStackAsync
|
|
482
|
-
} from "../chunk-
|
|
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-
|
|
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-
|
|
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-
|
|
3185
|
-
load("biome", async () => new (await import("../chunk-
|
|
3186
|
-
load("knip", async () => new (await import("../chunk-
|
|
3187
|
-
load("todo", async () => new (await import("../chunk-
|
|
3188
|
-
load("jscpd", async () => new (await import("../chunk-
|
|
3189
|
-
load("dependency-checker", async () => new (await import("../chunk-
|
|
3190
|
-
load("test-runner", async () => new (await import("../chunk-
|
|
3191
|
-
load("complexity", async () => new (await import("../chunk-
|
|
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-
|
|
3198
|
-
load("govulncheck", async () => new (await import("../chunk-
|
|
3199
|
-
load("gitleaks", async () => new (await import("../chunk-
|
|
3200
|
-
load("trivy", async () => new (await import("../chunk-
|
|
3201
|
-
load("opengrep", async () => new (await import("../chunk-
|
|
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-
|
|
3204
|
-
load("agent-behavior", async () => (await import("../chunk-
|
|
3205
|
-
loadList("dead-code", async () => (await import("../chunk-
|
|
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-
|
|
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
|
-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
6945
|
-
const { buildCallGraph, saveCallGraph, loadCallGraph: loadCallGraph2 } = await import("../chunk-
|
|
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-
|
|
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-
|
|
7196
|
-
const languageProfileModule = await import("../chunk-
|
|
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-
|
|
12914
|
-
const { callGraphImpactToProjectDiagnostics } = await import("../chunk-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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."
|