pi-lens 4.4.6 → 4.4.7

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 (121) hide show
  1. package/CHANGELOG.md +83 -0
  2. package/README.md +5 -1
  3. package/dist/{chunk-JL6CXUMW.js → chunk-24BILSZW.js} +1 -1
  4. package/dist/{chunk-S67UJDGQ.js → chunk-2TF6RXWB.js} +5 -5
  5. package/dist/{chunk-ARD426WI.js → chunk-3F6BMY53.js} +1 -1
  6. package/dist/{chunk-5ZR3APIM.js → chunk-3FRLWYBG.js} +26 -26
  7. package/dist/{chunk-T7FTXGS3.js → chunk-3K2F6UDZ.js} +30 -30
  8. package/dist/{chunk-HK6JVFZC.js → chunk-3YY7IXIL.js} +2 -2
  9. package/dist/chunk-46TNM7XZ.js +88 -0
  10. package/dist/{chunk-4AVZ3TG7.js → chunk-4L36HG27.js} +8 -8
  11. package/dist/{chunk-PO45POGF.js → chunk-4LM3VAZH.js} +1 -1
  12. package/dist/{chunk-UN4TEBWN.js → chunk-4LOE5R5P.js} +9 -9
  13. package/dist/{chunk-KLQVC3XC.js → chunk-4YHYPW2G.js} +30 -7
  14. package/dist/{chunk-W5LGKNET.js → chunk-4ZYJHQMB.js} +6 -6
  15. package/dist/{chunk-W2V54OCL.js → chunk-6IR3ZYIB.js} +2 -2
  16. package/dist/{chunk-FJIVKLPH.js → chunk-72OKUXSD.js} +10 -10
  17. package/dist/{chunk-7RQXA5GG.js → chunk-75GAYVNO.js} +10 -9
  18. package/dist/{chunk-V3APN3DY.js → chunk-7E2563GA.js} +12 -12
  19. package/dist/{chunk-4WX4CTUE.js → chunk-7GLOLOSH.js} +25 -25
  20. package/dist/{chunk-BWYQUPOS.js → chunk-ABPKUVA4.js} +1 -1
  21. package/dist/{chunk-IPDG45G5.js → chunk-AKUUMGD5.js} +9 -9
  22. package/dist/{chunk-Q6D6VMI4.js → chunk-ASUXV767.js} +6 -6
  23. package/dist/{chunk-BM5GS6ZH.js → chunk-AWDSEDER.js} +2 -2
  24. package/dist/{chunk-MA77RSFN.js → chunk-BZARLRJW.js} +4 -4
  25. package/dist/{chunk-EVDGNG4F.js → chunk-CB4WHS4H.js} +3 -3
  26. package/dist/{chunk-FA5LDARD.js → chunk-CCV2EU7T.js} +7 -7
  27. package/dist/{chunk-U6OC3QEM.js → chunk-CE6VMBCB.js} +15 -15
  28. package/dist/{chunk-AMXIUN2R.js → chunk-CPSR3AVL.js} +2 -2
  29. package/dist/{chunk-SXGD4ANG.js → chunk-CTADOKYM.js} +7 -7
  30. package/dist/{chunk-63RIVFQI.js → chunk-DH5JPM3K.js} +1 -1
  31. package/dist/{chunk-MT6BVNFW.js → chunk-DPGEAHZT.js} +3 -3
  32. package/dist/{chunk-4PCQCU47.js → chunk-DQZFQSR5.js} +2 -2
  33. package/dist/{chunk-BHUWL2Y3.js → chunk-E7HJ56Y7.js} +5 -5
  34. package/dist/{chunk-DQXSPYRI.js → chunk-EAOK7MIZ.js} +2 -2
  35. package/dist/{chunk-2RLWJO5K.js → chunk-EKWX4WD3.js} +3 -3
  36. package/dist/{chunk-WIZWZR4C.js → chunk-F7K5IBZG.js} +30 -28
  37. package/dist/{chunk-VQH24FIP.js → chunk-FB5SCCPT.js} +9 -9
  38. package/dist/{chunk-GZE7WOI4.js → chunk-FZKFVUEC.js} +438 -140
  39. package/dist/{chunk-TIYGSODX.js → chunk-H7OR7DFZ.js} +15 -13
  40. package/dist/{chunk-CJYKEW2L.js → chunk-HO6LWE2E.js} +1 -1
  41. package/dist/{chunk-YSBHPOY6.js → chunk-HR3OJ3TH.js} +8 -8
  42. package/dist/{chunk-CFRQMBGP.js → chunk-HWDAVBFU.js} +14 -14
  43. package/dist/{chunk-2X4VLOCC.js → chunk-JJ2RRESP.js} +8 -5
  44. package/dist/{chunk-YBSONGSZ.js → chunk-JMEKXFOL.js} +24 -24
  45. package/dist/{chunk-MKVZQUEG.js → chunk-KDX35VXP.js} +69 -13
  46. package/dist/{chunk-75SY4F24.js → chunk-KKCK636N.js} +7 -7
  47. package/dist/{chunk-OLAWH5UQ.js → chunk-KPPJTH44.js} +2 -1
  48. package/dist/{chunk-5APMQ2IJ.js → chunk-KW5JQPO5.js} +1 -1
  49. package/dist/{chunk-SCIUNBPF.js → chunk-L3CMBQMH.js} +11 -11
  50. package/dist/{chunk-GAACZY6R.js → chunk-L5JYIU47.js} +7 -7
  51. package/dist/{chunk-2DDDCJDL.js → chunk-LBLBAFG3.js} +3 -3
  52. package/dist/{chunk-NNKXDXXS.js → chunk-LLS45EWB.js} +8 -0
  53. package/dist/{chunk-WQOIR3QY.js → chunk-LS3QJRUB.js} +7 -7
  54. package/dist/{chunk-XCUHKYCQ.js → chunk-LSC3VADM.js} +6 -6
  55. package/dist/{chunk-GMTFDAOK.js → chunk-LUBPZN36.js} +6 -6
  56. package/dist/{chunk-DMSLNKF7.js → chunk-LV4UMYVH.js} +19 -19
  57. package/dist/{chunk-XAIT2YGS.js → chunk-MB6PXBUA.js} +2 -2
  58. package/dist/{chunk-AE37FEGH.js → chunk-MNJIXFX4.js} +1 -1
  59. package/dist/{chunk-OJLTLYHB.js → chunk-MPKRJBPK.js} +30 -10
  60. package/dist/{chunk-QGSTQH4D.js → chunk-N5WSK2K7.js} +6 -6
  61. package/dist/{chunk-Z7IGUAXL.js → chunk-NA7SEXHE.js} +10 -6
  62. package/dist/{chunk-UHGF5UT5.js → chunk-O4BJFESU.js} +1 -1
  63. package/dist/{chunk-UCGQT677.js → chunk-OE5ZBP7F.js} +10 -10
  64. package/dist/{chunk-KSR7RGQY.js → chunk-OXOI55RU.js} +4 -4
  65. package/dist/{chunk-NDMCVUYK.js → chunk-PR6PO3ES.js} +2 -2
  66. package/dist/{chunk-NIU2IPC5.js → chunk-PUZ3E2J4.js} +3 -3
  67. package/dist/{chunk-2DMLM3ZO.js → chunk-QHSNL7B2.js} +8 -8
  68. package/dist/{chunk-ZYNI26MI.js → chunk-QOE342SU.js} +1 -1
  69. package/dist/{chunk-3WEPUD2V.js → chunk-R5MOQM2H.js} +98 -31
  70. package/dist/{chunk-PPIBVH4R.js → chunk-RC2Z6K47.js} +4 -4
  71. package/dist/{chunk-LEJOJDXL.js → chunk-RORGS5II.js} +4 -4
  72. package/dist/{chunk-K2YGBXOA.js → chunk-RQS4QQSD.js} +1 -1
  73. package/dist/{chunk-XQCSWV2G.js → chunk-RRV3FNNM.js} +10 -10
  74. package/dist/{chunk-GTAI2J6U.js → chunk-SHLDT3OI.js} +8 -8
  75. package/dist/{chunk-VPBIMOAQ.js → chunk-SNDXCFRS.js} +11 -9
  76. package/dist/{chunk-Q4FCYCRE.js → chunk-T7A2HK2B.js} +10 -10
  77. package/dist/{chunk-MN7MHUXQ.js → chunk-U5HPROLA.js} +1 -1
  78. package/dist/{chunk-ZUUI3ZSA.js → chunk-U6VN4NVL.js} +1 -1
  79. package/dist/{chunk-W5R5SABV.js → chunk-U7BD2QL7.js} +6 -6
  80. package/dist/{chunk-P4QNXS6I.js → chunk-UF7RTZSO.js} +8 -8
  81. package/dist/{chunk-A3YNG5KP.js → chunk-URCQWAQ4.js} +11 -11
  82. package/dist/{chunk-FFL3A2VP.js → chunk-VUZWQ7UG.js} +4 -4
  83. package/dist/{chunk-YRD4ISED.js → chunk-W4WP2ERB.js} +10 -10
  84. package/dist/{chunk-OOU2WZZE.js → chunk-WDBICWH3.js} +1 -1
  85. package/dist/{chunk-BI5LAQ3Y.js → chunk-WGRJOXED.js} +114 -148
  86. package/dist/{chunk-ZQ6NZZTB.js → chunk-WME2OQST.js} +33 -0
  87. package/dist/{chunk-DC4CFXM5.js → chunk-XT2HTCJ5.js} +1 -1
  88. package/dist/{chunk-SJJYRZB4.js → chunk-Y7F7IEE3.js} +55 -23
  89. package/dist/{chunk-2F47TQOA.js → chunk-YES5CACN.js} +29 -29
  90. package/dist/{chunk-H7HTEQUZ.js → chunk-YHC2O2WO.js} +7 -7
  91. package/dist/{chunk-Q3UZHW6N.js → chunk-YVHBNSME.js} +6 -10
  92. package/dist/{chunk-3MYEA7QD.js → chunk-ZE3KXHS7.js} +2 -2
  93. package/dist/{chunk-VG5JS5SW.js → chunk-ZGSJDWQU.js} +2 -2
  94. package/dist/{chunk-5CV5ITZF.js → chunk-ZJTT47IG.js} +1 -1
  95. package/dist/{chunk-Q4EMRFNA.js → chunk-ZMAUPOMG.js} +24 -24
  96. package/dist/index.js +1925 -944
  97. package/dist/mcp/analyze-cli.js +6 -6
  98. package/dist/mcp/cli.js +30 -30
  99. package/dist/mcp/server.js +707 -455
  100. package/dist/mcp/worker.js +48 -48
  101. package/dist/probes/installer.js +13 -13
  102. package/docs/agent-tools.md +11 -3
  103. package/docs/defect-shapes.md +15 -1
  104. package/docs/dependencies.md +1 -0
  105. package/docs/environment-variables.md +14 -0
  106. package/docs/features.md +11 -1
  107. package/docs/globalconfig.md +12 -1
  108. package/docs/invariants/git-guard-host.md +34 -0
  109. package/docs/invariants/lsp-trust-exec.md +6 -0
  110. package/docs/invariants/session-telemetry.md +42 -2
  111. package/docs/lsp-capability-matrix.md +89 -45
  112. package/docs/lsp-idle-eviction.md +3 -5
  113. package/docs/pi-lens-fixer.md +8 -1
  114. package/docs/pi-lens-merge-policy.md +7 -4
  115. package/docs/pi-lens-subagent.md +7 -4
  116. package/docs/schema/pi-lens-config-v1.json +23 -0
  117. package/docs/servercapabilities.md +1 -1
  118. package/docs/settings.md +5 -0
  119. package/docs/usage.md +5 -0
  120. package/package.json +1 -1
  121. package/dist/chunk-G2B7F6ZU.js +0 -88
@@ -6,11 +6,11 @@ import {
6
6
  buildReverseDependencyIndexFromGraph,
7
7
  getLSPService,
8
8
  rankFilesByReverseDependencyCentrality
9
- } from "./chunk-GZE7WOI4.js";
9
+ } from "./chunk-FZKFVUEC.js";
10
10
  import {
11
11
  notePersistWorkerMessageFault,
12
12
  readWorkerHeapStatistics
13
- } from "./chunk-PPIBVH4R.js";
13
+ } from "./chunk-RC2Z6K47.js";
14
14
  import {
15
15
  buildQualifiedName,
16
16
  findOwnerName
@@ -26,45 +26,45 @@ import {
26
26
  resolveProjectReferenceImport,
27
27
  resolveWorkspacePackageImport,
28
28
  symbolExtractionGrammar
29
- } from "./chunk-OJLTLYHB.js";
29
+ } from "./chunk-MPKRJBPK.js";
30
30
  import {
31
31
  classifyTreeSitterWasmError,
32
32
  getSharedTreeSitterClient,
33
33
  logTreeSitterCacheStats,
34
34
  withTreeSitterRoot
35
- } from "./chunk-GAACZY6R.js";
35
+ } from "./chunk-L5JYIU47.js";
36
36
  import {
37
37
  getReviewGraphMaxFilesDerived
38
- } from "./chunk-ZYNI26MI.js";
38
+ } from "./chunk-QOE342SU.js";
39
39
  import {
40
40
  readGzipStageWorkerResult,
41
41
  reapStageFile
42
42
  } from "./chunk-IJYGIDF4.js";
43
43
  import {
44
44
  collectSourceFilesWithBudgetAsync
45
- } from "./chunk-2RLWJO5K.js";
45
+ } from "./chunk-EKWX4WD3.js";
46
46
  import {
47
47
  collectUntrackedIgnoredIds,
48
48
  createGitIdentityResolver,
49
49
  getProjectDataDir,
50
50
  isStaleStageFile,
51
51
  resolveGitIdentity
52
- } from "./chunk-Q3UZHW6N.js";
52
+ } from "./chunk-YVHBNSME.js";
53
53
  import {
54
54
  KIND_EXTENSIONS,
55
55
  detectFileKind
56
56
  } from "./chunk-RZOXUSPC.js";
57
57
  import {
58
58
  detectFileRole
59
- } from "./chunk-OLAWH5UQ.js";
59
+ } from "./chunk-KPPJTH44.js";
60
60
  import {
61
61
  writeFileAtomic
62
- } from "./chunk-MN7MHUXQ.js";
62
+ } from "./chunk-U5HPROLA.js";
63
63
  import {
64
64
  compareOrdinal,
65
65
  escapeRegExp,
66
66
  incrementDegradationCount
67
- } from "./chunk-ZQ6NZZTB.js";
67
+ } from "./chunk-WME2OQST.js";
68
68
  import {
69
69
  logLatency
70
70
  } from "./chunk-Z2XAOKHK.js";
@@ -86,12 +86,14 @@ import {
86
86
  isUnderDir,
87
87
  normalizeFilePath,
88
88
  normalizeMapKey,
89
+ realpathOrResolve,
89
90
  toProjectRelativePath
90
91
  } from "./chunk-PQJFG24Z.js";
91
92
 
92
93
  // dist/clients/review-graph/builder.js
93
94
  import { createHash as createHash2 } from "node:crypto";
94
95
  import * as fs2 from "node:fs";
96
+ import * as os from "node:os";
95
97
  import * as path2 from "node:path";
96
98
  import { Worker } from "node:worker_threads";
97
99
  import { constants as zlibConstants, gunzipSync, gzipSync } from "node:zlib";
@@ -2478,8 +2480,8 @@ async function ensureReviewGraphFacts(filePath, cwd, facts, contentOverride) {
2478
2480
  }
2479
2481
  try {
2480
2482
  const [{ importFactProvider }, { functionFactProvider }] = await Promise.all([
2481
- import("./chunk-YRD4ISED.js"),
2482
- import("./chunk-FJIVKLPH.js")
2483
+ import("./chunk-W4WP2ERB.js"),
2484
+ import("./chunk-72OKUXSD.js")
2483
2485
  ]);
2484
2486
  await importFactProvider.run(ctx, facts);
2485
2487
  await functionFactProvider.run(ctx, facts);
@@ -3604,7 +3606,7 @@ async function _doBuildGraph(cwd, changedFiles, facts, seqHint, buildId) {
3604
3606
  const normalizedChanged = changedFiles.map((file) => normalizeMapKey(file));
3605
3607
  const normalizedChangedSet = new Set(normalizedChanged);
3606
3608
  logCwdWorktreeMismatchOnce(cwd, resolveIdentity);
3607
- if (isAtOrAboveHomeDir(path2.resolve(cwd))) {
3609
+ if (isAtOrAboveHomeDir(normalizedCwd, realpathOrResolve(os.homedir()))) {
3608
3610
  const graph2 = createEmptyGraph();
3609
3611
  for (const file of normalizedChanged) {
3610
3612
  upsertChangedSymbols(graph2, facts, file);
@@ -1,7 +1,7 @@
1
1
  import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
2
2
  import {
3
3
  recordDegradationOnce
4
- } from "./chunk-ZQ6NZZTB.js";
4
+ } from "./chunk-WME2OQST.js";
5
5
 
6
6
  // dist/clients/deadline-utils.js
7
7
  function combineAbortSignals(...signals) {
@@ -3,29 +3,29 @@ import {
3
3
  augmentPythonEnvironment,
4
4
  detectPythonEnvironment,
5
5
  emitBounded
6
- } from "./chunk-NDMCVUYK.js";
6
+ } from "./chunk-PR6PO3ES.js";
7
7
  import {
8
8
  stripAnsi
9
9
  } from "./chunk-6HWVI6MI.js";
10
10
  import {
11
11
  resolveToolCwd
12
- } from "./chunk-MT6BVNFW.js";
12
+ } from "./chunk-DPGEAHZT.js";
13
13
  import {
14
14
  findGlobalBinary,
15
15
  findLocalBinAt,
16
16
  localBinPath
17
- } from "./chunk-Z7IGUAXL.js";
17
+ } from "./chunk-NA7SEXHE.js";
18
18
  import {
19
19
  getIsolatedNpxSpawnOptions
20
- } from "./chunk-ARD426WI.js";
20
+ } from "./chunk-3F6BMY53.js";
21
21
  import {
22
22
  resolveLanguageRootForFile
23
- } from "./chunk-NIU2IPC5.js";
23
+ } from "./chunk-PUZ3E2J4.js";
24
24
  import {
25
25
  resolveGitCheckout,
26
26
  safeSpawn,
27
27
  safeSpawnAsync
28
- } from "./chunk-Q3UZHW6N.js";
28
+ } from "./chunk-YVHBNSME.js";
29
29
  import {
30
30
  DOTNET_CSHARP_ROOT_MARKERS,
31
31
  detectFileKind
@@ -33,14 +33,14 @@ import {
33
33
  import {
34
34
  PathKeyedMap,
35
35
  detectFileRole
36
- } from "./chunk-OLAWH5UQ.js";
36
+ } from "./chunk-KPPJTH44.js";
37
37
  import {
38
38
  findNearestDirWithAnyBasename
39
39
  } from "./chunk-J6JP25XU.js";
40
40
  import {
41
41
  LEDGER_FIELD_MAX,
42
42
  recordDegradationOnce
43
- } from "./chunk-ZQ6NZZTB.js";
43
+ } from "./chunk-WME2OQST.js";
44
44
  import {
45
45
  createSubsystemLogger
46
46
  } from "./chunk-KXF5R4UN.js";
@@ -8,28 +8,28 @@ import {
8
8
  isExcludedTestTarget,
9
9
  isRunnerErrorResult,
10
10
  stripWrapperArgs
11
- } from "./chunk-YSBHPOY6.js";
12
- import "./chunk-NDMCVUYK.js";
11
+ } from "./chunk-HR3OJ3TH.js";
12
+ import "./chunk-PR6PO3ES.js";
13
13
  import "./chunk-PKES3ISE.js";
14
14
  import "./chunk-ZKXQKGWZ.js";
15
15
  import "./chunk-YISME6ON.js";
16
16
  import "./chunk-6HWVI6MI.js";
17
- import "./chunk-MT6BVNFW.js";
18
- import "./chunk-Z7IGUAXL.js";
19
- import "./chunk-ARD426WI.js";
20
- import "./chunk-5APMQ2IJ.js";
21
- import "./chunk-NIU2IPC5.js";
22
- import "./chunk-BWYQUPOS.js";
23
- import "./chunk-2RLWJO5K.js";
24
- import "./chunk-VG5JS5SW.js";
25
- import "./chunk-Q3UZHW6N.js";
17
+ import "./chunk-DPGEAHZT.js";
18
+ import "./chunk-NA7SEXHE.js";
19
+ import "./chunk-3F6BMY53.js";
20
+ import "./chunk-KW5JQPO5.js";
21
+ import "./chunk-PUZ3E2J4.js";
22
+ import "./chunk-ABPKUVA4.js";
23
+ import "./chunk-EKWX4WD3.js";
24
+ import "./chunk-ZGSJDWQU.js";
25
+ import "./chunk-YVHBNSME.js";
26
26
  import "./chunk-AWQWXSW4.js";
27
27
  import "./chunk-QYF5S6P6.js";
28
28
  import "./chunk-RZOXUSPC.js";
29
- import "./chunk-OLAWH5UQ.js";
29
+ import "./chunk-KPPJTH44.js";
30
30
  import "./chunk-J6JP25XU.js";
31
- import "./chunk-MN7MHUXQ.js";
32
- import "./chunk-ZQ6NZZTB.js";
31
+ import "./chunk-U5HPROLA.js";
32
+ import "./chunk-WME2OQST.js";
33
33
  import "./chunk-KXF5R4UN.js";
34
34
  import "./chunk-S26LC76R.js";
35
35
  import "./chunk-Z2XAOKHK.js";
@@ -1,10 +1,10 @@
1
1
  import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
2
2
  import {
3
3
  truncatedByOutputCap
4
- } from "./chunk-MN7MHUXQ.js";
4
+ } from "./chunk-U5HPROLA.js";
5
5
  import {
6
6
  LEDGER_FIELD_MAX
7
- } from "./chunk-ZQ6NZZTB.js";
7
+ } from "./chunk-WME2OQST.js";
8
8
 
9
9
  // dist/clients/dispatch/runners/utils/spawn-outcome.js
10
10
  function firstOutputLine(text, max = LEDGER_FIELD_MAX) {
@@ -16,6 +16,9 @@ function firstOutputLine(text, max = LEDGER_FIELD_MAX) {
16
16
  }
17
17
  return "";
18
18
  }
19
+ function processCutShort(result) {
20
+ return Boolean(result.error || result.signal) || (result.status ?? null) === null;
21
+ }
19
22
  function classifyRunOutcome(input) {
20
23
  const { result, exitCodes, reportMissing } = input;
21
24
  const status = result.status ?? null;
@@ -29,10 +32,9 @@ function classifyRunOutcome(input) {
29
32
  // branches below are byte-for-byte the pre-#2100 rules.
30
33
  outputCapped: truncatedByOutputCap(result)
31
34
  };
32
- if (result.error || signal)
33
- return { kind: "did-not-run", ...base };
34
- if (status === null)
35
+ if (processCutShort(result) || status === null) {
35
36
  return { kind: "did-not-run", ...base };
37
+ }
36
38
  if (reportMissing) {
37
39
  return status === 0 ? { kind: "ran", ...base } : { kind: "report-missing", ...base };
38
40
  }
@@ -50,6 +52,7 @@ function spawnFailedWithNoOutput(result, output = result.stdout) {
50
52
 
51
53
  export {
52
54
  firstOutputLine,
55
+ processCutShort,
53
56
  classifyRunOutcome,
54
57
  spawnFailedWithNoOutput
55
58
  };
@@ -2,49 +2,49 @@ import { createRequire as __pilensCreateRequire } from "node:module"; const requ
2
2
  import {
3
3
  createAvailabilityChecker,
4
4
  resolveAvailableOrInstall
5
- } from "./chunk-V3APN3DY.js";
5
+ } from "./chunk-7E2563GA.js";
6
6
  import {
7
7
  ruffConfigArgs
8
- } from "./chunk-XAIT2YGS.js";
9
- import "./chunk-3WEPUD2V.js";
10
- import "./chunk-JL6CXUMW.js";
11
- import "./chunk-NDMCVUYK.js";
12
- import "./chunk-PPIBVH4R.js";
8
+ } from "./chunk-MB6PXBUA.js";
9
+ import "./chunk-R5MOQM2H.js";
10
+ import "./chunk-24BILSZW.js";
11
+ import "./chunk-PR6PO3ES.js";
12
+ import "./chunk-RC2Z6K47.js";
13
13
  import "./chunk-PKES3ISE.js";
14
14
  import "./chunk-ZKXQKGWZ.js";
15
- import "./chunk-ZUUI3ZSA.js";
15
+ import "./chunk-U6VN4NVL.js";
16
16
  import "./chunk-TIQJPRDD.js";
17
17
  import "./chunk-YISME6ON.js";
18
- import "./chunk-UHGF5UT5.js";
18
+ import "./chunk-O4BJFESU.js";
19
19
  import "./chunk-CKEQFGLT.js";
20
- import "./chunk-CJYKEW2L.js";
21
- import "./chunk-VPBIMOAQ.js";
22
- import "./chunk-ZYNI26MI.js";
20
+ import "./chunk-HO6LWE2E.js";
21
+ import "./chunk-SNDXCFRS.js";
22
+ import "./chunk-QOE342SU.js";
23
23
  import "./chunk-2BEMIWEW.js";
24
24
  import "./chunk-IJYGIDF4.js";
25
- import "./chunk-MKVZQUEG.js";
25
+ import "./chunk-KDX35VXP.js";
26
26
  import {
27
27
  resolveToolCwd
28
- } from "./chunk-MT6BVNFW.js";
29
- import "./chunk-Z7IGUAXL.js";
30
- import "./chunk-ARD426WI.js";
31
- import "./chunk-5APMQ2IJ.js";
32
- import "./chunk-NIU2IPC5.js";
33
- import "./chunk-BWYQUPOS.js";
34
- import "./chunk-2RLWJO5K.js";
35
- import "./chunk-VG5JS5SW.js";
28
+ } from "./chunk-DPGEAHZT.js";
29
+ import "./chunk-NA7SEXHE.js";
30
+ import "./chunk-3F6BMY53.js";
31
+ import "./chunk-KW5JQPO5.js";
32
+ import "./chunk-PUZ3E2J4.js";
33
+ import "./chunk-ABPKUVA4.js";
34
+ import "./chunk-EKWX4WD3.js";
35
+ import "./chunk-ZGSJDWQU.js";
36
36
  import {
37
37
  safeSpawnAsync
38
- } from "./chunk-Q3UZHW6N.js";
38
+ } from "./chunk-YVHBNSME.js";
39
39
  import "./chunk-AWQWXSW4.js";
40
40
  import "./chunk-QYF5S6P6.js";
41
41
  import {
42
42
  isFileKind
43
43
  } from "./chunk-RZOXUSPC.js";
44
- import "./chunk-OLAWH5UQ.js";
44
+ import "./chunk-KPPJTH44.js";
45
45
  import "./chunk-J6JP25XU.js";
46
- import "./chunk-MN7MHUXQ.js";
47
- import "./chunk-ZQ6NZZTB.js";
46
+ import "./chunk-U5HPROLA.js";
47
+ import "./chunk-WME2OQST.js";
48
48
  import {
49
49
  createSubsystemLogger
50
50
  } from "./chunk-KXF5R4UN.js";
@@ -1,23 +1,23 @@
1
1
  import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
2
2
  import {
3
3
  resolveToolCwd
4
- } from "./chunk-MT6BVNFW.js";
4
+ } from "./chunk-DPGEAHZT.js";
5
5
  import {
6
6
  allAvailableGlobalBinDirs,
7
7
  installArgs,
8
8
  pmBinary,
9
9
  resolveNodePackageManager
10
- } from "./chunk-Z7IGUAXL.js";
10
+ } from "./chunk-NA7SEXHE.js";
11
11
  import {
12
12
  probeToolAsync
13
- } from "./chunk-ARD426WI.js";
13
+ } from "./chunk-3F6BMY53.js";
14
14
  import {
15
15
  TRANSIENT_MAX_COOLDOWN_MS,
16
16
  classifyProbeFailure,
17
17
  createAvailabilityLatch,
18
18
  logAvailabilityDecision,
19
19
  startHostStallSampler
20
- } from "./chunk-5APMQ2IJ.js";
20
+ } from "./chunk-KW5JQPO5.js";
21
21
  import {
22
22
  acquireBoundedPidFileLock,
23
23
  acquireQuarantinePidFileLock,
@@ -35,19 +35,19 @@ import {
35
35
  safeSpawnAsync,
36
36
  startGenerationHeartbeat,
37
37
  tryAcquireGeneration
38
- } from "./chunk-Q3UZHW6N.js";
38
+ } from "./chunk-YVHBNSME.js";
39
39
  import {
40
40
  assertInstallAllowed,
41
41
  getProjectTrustGeneration,
42
42
  projectTrustDenialReason,
43
43
  writeFileAtomic,
44
44
  writeFileAtomicAsync
45
- } from "./chunk-MN7MHUXQ.js";
45
+ } from "./chunk-U5HPROLA.js";
46
46
  import {
47
47
  getDegradationLedgerGeneration,
48
48
  incrementDegradationCount,
49
49
  recordDegradationOnce
50
- } from "./chunk-ZQ6NZZTB.js";
50
+ } from "./chunk-WME2OQST.js";
51
51
  import {
52
52
  logExtension
53
53
  } from "./chunk-KXF5R4UN.js";
@@ -1472,6 +1472,54 @@ var TOOLS = [
1472
1472
  binaryInArchive: "typos-lsp"
1473
1473
  }
1474
1474
  },
1475
+ {
1476
+ // fallow-lsp (#4929): the TS/JS dead-code, duplication and cycle analyzer's
1477
+ // LSP server, an OPT-IN language-scoped auxiliary (`--lens-fallow`). One
1478
+ // release archive per target holds four sibling binaries (`fallow`,
1479
+ // `fallow-lsp`, `fallow-mcp`, `fallow-similar-code`) at the archive root
1480
+ // (verified on the 3.37.0 tar.gz and zip listings), so this is a native TREE
1481
+ // BUNDLE like clangd and FallowServer launches `<bundle>/fallow-lsp`. The
1482
+ // version is pinned and every archive is checked against its sha256 before
1483
+ // extraction (a mismatch or an unpinned URL refuses the install). The
1484
+ // release's `SHA256SUMS` lists only the VS Code extension files, so the pins
1485
+ // are the per-asset digests GitHub publishes (`gh api
1486
+ // repos/fallow-rs/fallow/releases/tags/v3.37.0 --jq
1487
+ // '.assets[]|[.name,.digest]|@tsv'`), each re-computed here from the
1488
+ // downloaded bytes. The tree marker is the `fallow-lsp` binary itself
1489
+ // (`fallow-lsp.exe` on Windows). Linux uses the gnu build (needs glibc 2.30);
1490
+ // Windows arm64 has its own build.
1491
+ id: "fallow-lsp",
1492
+ name: "fallow-lsp",
1493
+ checkCommand: "fallow-lsp",
1494
+ checkArgs: ["--version"],
1495
+ installStrategy: "archive",
1496
+ binaryName: "fallow-lsp",
1497
+ archive: {
1498
+ url: (platform, arch) => {
1499
+ const base = "https://github.com/fallow-rs/fallow/releases/download/v3.37.0";
1500
+ if (arch !== "x64" && arch !== "arm64")
1501
+ return void 0;
1502
+ if (platform === "linux")
1503
+ return arch === "arm64" ? `${base}/fallow-aarch64-unknown-linux-gnu.tar.gz` : `${base}/fallow-x86_64-unknown-linux-gnu.tar.gz`;
1504
+ if (platform === "darwin")
1505
+ return arch === "arm64" ? `${base}/fallow-aarch64-apple-darwin.tar.gz` : `${base}/fallow-x86_64-apple-darwin.tar.gz`;
1506
+ if (platform === "win32")
1507
+ return arch === "arm64" ? `${base}/fallow-aarch64-pc-windows-msvc.zip` : `${base}/fallow-x86_64-pc-windows-msvc.zip`;
1508
+ return void 0;
1509
+ },
1510
+ kind: (platform) => platform === "win32" ? "zip" : "tgz",
1511
+ stripComponents: 0,
1512
+ treeMarker: (platform) => platform === "win32" ? "fallow-lsp.exe" : "fallow-lsp",
1513
+ sha256: {
1514
+ "https://github.com/fallow-rs/fallow/releases/download/v3.37.0/fallow-aarch64-unknown-linux-gnu.tar.gz": "cbbf98681687fd2f43be852f15aab8ad34fb51cf6f7e354d3bdc1a9b7cba9c5a",
1515
+ "https://github.com/fallow-rs/fallow/releases/download/v3.37.0/fallow-x86_64-unknown-linux-gnu.tar.gz": "7c09d9b7812be030951f75ebfdd98a4e23ecaee6260c34d7e7f3a6c28a0c3cf0",
1516
+ "https://github.com/fallow-rs/fallow/releases/download/v3.37.0/fallow-aarch64-apple-darwin.tar.gz": "02caed6d3da52ea5ffff84b8619bc399a9302c5c6748633177db64005895a159",
1517
+ "https://github.com/fallow-rs/fallow/releases/download/v3.37.0/fallow-x86_64-apple-darwin.tar.gz": "abf1897d6521dbd8fbfb01a4add5070538fdb7cde049090f991780fd3576acc6",
1518
+ "https://github.com/fallow-rs/fallow/releases/download/v3.37.0/fallow-aarch64-pc-windows-msvc.zip": "26529ecf3a031c01d13adbdbf831ba627c20cf5e4ff95000a1b6ec1497513c83",
1519
+ "https://github.com/fallow-rs/fallow/releases/download/v3.37.0/fallow-x86_64-pc-windows-msvc.zip": "f20ad53eb2190e9ab04288a58068f568699757744fccf5adca216a5250789134"
1520
+ }
1521
+ }
1522
+ },
1475
1523
  {
1476
1524
  id: "tflint",
1477
1525
  name: "tflint",
@@ -2266,9 +2314,12 @@ ${result.stderr}`;
2266
2314
  return false;
2267
2315
  }
2268
2316
  }
2269
- async function getAllToolStatuses() {
2317
+ async function getAllToolStatuses(toolIds) {
2270
2318
  const statuses = [];
2319
+ const only = toolIds ? new Set(toolIds) : void 0;
2271
2320
  for (const tool of TOOLS) {
2321
+ if (only && !only.has(tool.id))
2322
+ continue;
2272
2323
  const status = {
2273
2324
  id: tool.id,
2274
2325
  name: tool.name,
@@ -2357,7 +2408,8 @@ async function getArchiveTreeBundlePath(tool) {
2357
2408
  return void 0;
2358
2409
  }
2359
2410
  const extractDir = path3.join(TOOLS_DIR, tool.id);
2360
- const marker = tool.archive?.treeMarker ? path3.join(extractDir, ...tool.archive.treeMarker.split("/")) : extractDir;
2411
+ const treeMarker = tool.archive && resolveTreeMarker(tool.archive);
2412
+ const marker = treeMarker ? path3.join(extractDir, ...treeMarker.split("/")) : extractDir;
2361
2413
  try {
2362
2414
  await fs2.access(marker);
2363
2415
  return extractDir;
@@ -3449,6 +3501,9 @@ exec java -jar "$(dirname "$0")/${tool.id}.jar" "$@"
3449
3501
  function resolveArchiveUrl(spec, platform = installerPlatform(), arch = process.arch) {
3450
3502
  return typeof spec.url === "function" ? spec.url(platform, arch) : spec.url;
3451
3503
  }
3504
+ function resolveTreeMarker(spec, platform = installerPlatform()) {
3505
+ return typeof spec.treeMarker === "function" ? spec.treeMarker(platform) : spec.treeMarker;
3506
+ }
3452
3507
  function resolveArchiveKind(spec, platform = installerPlatform(), arch = process.arch) {
3453
3508
  return typeof spec.kind === "function" ? spec.kind(platform, arch) : spec.kind;
3454
3509
  }
@@ -3609,7 +3664,8 @@ async function installArchiveTool(tool) {
3609
3664
  return void 0;
3610
3665
  }
3611
3666
  if (!spec.launcher) {
3612
- const tmpMarker = spec.treeMarker ? path3.join(tmpExtractDir, ...spec.treeMarker.split("/")) : tmpExtractDir;
3667
+ const treeMarker = resolveTreeMarker(spec, platform);
3668
+ const tmpMarker = treeMarker ? path3.join(tmpExtractDir, ...treeMarker.split("/")) : tmpExtractDir;
3613
3669
  try {
3614
3670
  await fs2.access(tmpMarker);
3615
3671
  } catch {
@@ -4049,7 +4105,7 @@ async function stampInstallResolution(toolId) {
4049
4105
  return;
4050
4106
  try {
4051
4107
  const resolutionId = lastInstallResolutionId.get(toolId);
4052
- const refresh = await import("./chunk-U6OC3QEM.js");
4108
+ const refresh = await import("./chunk-CE6VMBCB.js");
4053
4109
  await refresh.stampManagedToolInstall(toolId, resolutionId);
4054
4110
  } catch {
4055
4111
  }
@@ -4062,7 +4118,7 @@ async function finishInstallAttempt(toolId, ok, startedAt) {
4062
4118
  if (ok) {
4063
4119
  resetSafeSpawnWindowsCommandCache();
4064
4120
  try {
4065
- const { resetMadgeManagedPathMemo } = await import("./chunk-4WX4CTUE.js");
4121
+ const { resetMadgeManagedPathMemo } = await import("./chunk-7GLOLOSH.js");
4066
4122
  resetMadgeManagedPathMemo();
4067
4123
  } catch (err) {
4068
4124
  logSessionStart(`auto-install ${toolId}: madge memo reset failed: ${err.message}`);
@@ -4092,7 +4148,7 @@ async function installTool(toolId, ownsLock) {
4092
4148
  return false;
4093
4149
  const npmPath = await installNpmTool(tool.id, tool.packageName, tool.binaryName, tool.checkArgs, getToolVerificationTimeout(tool), packageEntryVerification(tool), ownsLock);
4094
4150
  if (npmPath !== void 0) {
4095
- await import("./chunk-U6OC3QEM.js").then((m) => m.stampManagedToolInstalled(tool.id, tool.packageName)).catch(() => {
4151
+ await import("./chunk-CE6VMBCB.js").then((m) => m.stampManagedToolInstalled(tool.id, tool.packageName)).catch(() => {
4096
4152
  });
4097
4153
  }
4098
4154
  return finishInstallAttempt(tool.id, npmPath !== void 0, startedAt);
@@ -12,15 +12,15 @@ import {
12
12
  isStartupScanVerdictFresh,
13
13
  resolveStartupScanContext,
14
14
  resolveStartupScanContextAsync
15
- } from "./chunk-7RQXA5GG.js";
16
- import "./chunk-ZYNI26MI.js";
17
- import "./chunk-VG5JS5SW.js";
18
- import "./chunk-Q3UZHW6N.js";
15
+ } from "./chunk-75GAYVNO.js";
16
+ import "./chunk-QOE342SU.js";
17
+ import "./chunk-ZGSJDWQU.js";
18
+ import "./chunk-YVHBNSME.js";
19
19
  import "./chunk-QYF5S6P6.js";
20
- import "./chunk-OLAWH5UQ.js";
20
+ import "./chunk-KPPJTH44.js";
21
21
  import "./chunk-J6JP25XU.js";
22
- import "./chunk-MN7MHUXQ.js";
23
- import "./chunk-ZQ6NZZTB.js";
22
+ import "./chunk-U5HPROLA.js";
23
+ import "./chunk-WME2OQST.js";
24
24
  import "./chunk-KXF5R4UN.js";
25
25
  import "./chunk-S26LC76R.js";
26
26
  import "./chunk-Z2XAOKHK.js";
@@ -31,7 +31,7 @@ import {
31
31
  readFlagConfigValue,
32
32
  readToolConfig,
33
33
  recordDegradationOnce
34
- } from "./chunk-ZQ6NZZTB.js";
34
+ } from "./chunk-WME2OQST.js";
35
35
  import {
36
36
  logExtension
37
37
  } from "./chunk-KXF5R4UN.js";
@@ -1612,6 +1612,7 @@ function buildConfigSchema() {
1612
1612
  properties[key] ??= opaque("experimental");
1613
1613
  }
1614
1614
  for (const key of [
1615
+ "fallow",
1615
1616
  "knip",
1616
1617
  "jscpd",
1617
1618
  "madge",
@@ -1,7 +1,7 @@
1
1
  import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
2
2
  import {
3
3
  getProjectTrustGeneration
4
- } from "./chunk-MN7MHUXQ.js";
4
+ } from "./chunk-U5HPROLA.js";
5
5
  import {
6
6
  logLatency
7
7
  } from "./chunk-Z2XAOKHK.js";
@@ -9,21 +9,21 @@ import {
9
9
  getDeadCodeClients,
10
10
  parseVultureOutput,
11
11
  stableFindingKey
12
- } from "./chunk-2DMLM3ZO.js";
12
+ } from "./chunk-QHSNL7B2.js";
13
13
  import "./chunk-7U2IDNXN.js";
14
- import "./chunk-SJJYRZB4.js";
15
- import "./chunk-2X4VLOCC.js";
16
- import "./chunk-AMXIUN2R.js";
14
+ import "./chunk-Y7F7IEE3.js";
15
+ import "./chunk-JJ2RRESP.js";
16
+ import "./chunk-CPSR3AVL.js";
17
17
  import "./chunk-ZKXQKGWZ.js";
18
- import "./chunk-Z7IGUAXL.js";
19
- import "./chunk-ARD426WI.js";
20
- import "./chunk-5APMQ2IJ.js";
21
- import "./chunk-Q3UZHW6N.js";
18
+ import "./chunk-NA7SEXHE.js";
19
+ import "./chunk-3F6BMY53.js";
20
+ import "./chunk-KW5JQPO5.js";
21
+ import "./chunk-YVHBNSME.js";
22
22
  import "./chunk-AWQWXSW4.js";
23
- import "./chunk-OLAWH5UQ.js";
23
+ import "./chunk-KPPJTH44.js";
24
24
  import "./chunk-J6JP25XU.js";
25
- import "./chunk-MN7MHUXQ.js";
26
- import "./chunk-ZQ6NZZTB.js";
25
+ import "./chunk-U5HPROLA.js";
26
+ import "./chunk-WME2OQST.js";
27
27
  import "./chunk-KXF5R4UN.js";
28
28
  import "./chunk-S26LC76R.js";
29
29
  import "./chunk-Z2XAOKHK.js";
@@ -5,7 +5,7 @@ import {
5
5
  import {
6
6
  getUserRuleRoot,
7
7
  ruleCorpusFingerprintForCycle
8
- } from "./chunk-ZUUI3ZSA.js";
8
+ } from "./chunk-U6VN4NVL.js";
9
9
  import {
10
10
  getPackageRoot,
11
11
  js_yaml_default,
@@ -16,22 +16,22 @@ import {
16
16
  } from "./chunk-YISME6ON.js";
17
17
  import {
18
18
  withTimeout
19
- } from "./chunk-CJYKEW2L.js";
19
+ } from "./chunk-HO6LWE2E.js";
20
20
  import {
21
21
  transientRetryDelayMs
22
- } from "./chunk-5APMQ2IJ.js";
22
+ } from "./chunk-KW5JQPO5.js";
23
23
  import {
24
24
  getProjectIgnoreMatcher,
25
25
  isExcludedDirName
26
- } from "./chunk-Q3UZHW6N.js";
26
+ } from "./chunk-YVHBNSME.js";
27
27
  import {
28
28
  notifyUserDegradation
29
- } from "./chunk-OLAWH5UQ.js";
29
+ } from "./chunk-KPPJTH44.js";
30
30
  import {
31
31
  assertInstallAllowed,
32
32
  getProjectTrustGeneration,
33
33
  writeFileAtomic
34
- } from "./chunk-MN7MHUXQ.js";
34
+ } from "./chunk-U5HPROLA.js";
35
35
  import {
36
36
  compareOrdinal,
37
37
  escapeRegExp,
@@ -39,7 +39,7 @@ import {
39
39
  incrementDegradationCount,
40
40
  recordDegradation,
41
41
  recordDegradationOnce
42
- } from "./chunk-ZQ6NZZTB.js";
42
+ } from "./chunk-WME2OQST.js";
43
43
  import {
44
44
  logLatency
45
45
  } from "./chunk-Z2XAOKHK.js";
@@ -2,13 +2,13 @@ import { createRequire as __pilensCreateRequire } from "node:module"; const requ
2
2
  import {
3
3
  classifyProbeFailure,
4
4
  installRetryDelayMs
5
- } from "./chunk-5APMQ2IJ.js";
5
+ } from "./chunk-KW5JQPO5.js";
6
6
  import {
7
7
  safeSpawnAsync
8
- } from "./chunk-Q3UZHW6N.js";
8
+ } from "./chunk-YVHBNSME.js";
9
9
  import {
10
10
  assertInstallAllowed
11
- } from "./chunk-MN7MHUXQ.js";
11
+ } from "./chunk-U5HPROLA.js";
12
12
  import {
13
13
  logExtension
14
14
  } from "./chunk-KXF5R4UN.js";