pi-lens 4.4.5 → 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 (159) hide show
  1. package/CHANGELOG.md +120 -0
  2. package/README.md +37 -1
  3. package/config/biome/core.jsonc +3 -3
  4. package/dist/{chunk-6XSESGWD.js → chunk-24BILSZW.js} +2 -2
  5. package/dist/{chunk-YXDCRUKQ.js → chunk-2PHMIAKO.js} +4 -4
  6. package/dist/{chunk-EN5AM7PX.js → chunk-2TF6RXWB.js} +10 -10
  7. package/dist/{chunk-XI34NWDI.js → chunk-3F6BMY53.js} +1 -1
  8. package/dist/{chunk-VUAVE3QC.js → chunk-3FRLWYBG.js} +36 -36
  9. package/dist/{chunk-THEXI2QO.js → chunk-3K2F6UDZ.js} +42 -42
  10. package/dist/{chunk-ZPJM7DID.js → chunk-3YY7IXIL.js} +3 -3
  11. package/dist/chunk-46TNM7XZ.js +88 -0
  12. package/dist/{chunk-TL2TCJYL.js → chunk-4L36HG27.js} +14 -14
  13. package/dist/{chunk-UCVMSOXF.js → chunk-4LM3VAZH.js} +2 -2
  14. package/dist/{chunk-AI3GP74G.js → chunk-4LOE5R5P.js} +15 -15
  15. package/dist/{chunk-AHWA4AKM.js → chunk-4YHYPW2G.js} +32 -9
  16. package/dist/{chunk-VITFDI3O.js → chunk-4ZYJHQMB.js} +12 -12
  17. package/dist/{chunk-KCBRHV5E.js → chunk-6IR3ZYIB.js} +3 -3
  18. package/dist/chunk-72OKUXSD.js +31 -0
  19. package/dist/{chunk-RCHO5W7M.js → chunk-75GAYVNO.js} +13 -12
  20. package/dist/{chunk-2SDHYHHO.js → chunk-7E2563GA.js} +13 -13
  21. package/dist/chunk-7GLOLOSH.js +57 -0
  22. package/dist/{chunk-CG5V25HX.js → chunk-ABPKUVA4.js} +1 -1
  23. package/dist/chunk-AKUUMGD5.js +26 -0
  24. package/dist/chunk-ASUXV767.js +22 -0
  25. package/dist/{chunk-Q42LJANT.js → chunk-AWDSEDER.js} +2 -2
  26. package/dist/{chunk-Y2TPADJR.js → chunk-BZARLRJW.js} +9 -9
  27. package/dist/{chunk-YKVDBNPO.js → chunk-CB4WHS4H.js} +3 -3
  28. package/dist/{chunk-YXGRRORB.js → chunk-CCV2EU7T.js} +13 -13
  29. package/dist/{chunk-PJXNTPB2.js → chunk-CE6VMBCB.js} +21 -21
  30. package/dist/{chunk-KPVLQHCZ.js → chunk-CPSR3AVL.js} +2 -2
  31. package/dist/chunk-CTADOKYM.js +25 -0
  32. package/dist/{chunk-CPZ5JJW6.js → chunk-DH5JPM3K.js} +4 -4
  33. package/dist/{chunk-4FHUGDKU.js → chunk-DPGEAHZT.js} +5 -5
  34. package/dist/{chunk-SNEUMLM7.js → chunk-DQZFQSR5.js} +4 -4
  35. package/dist/{chunk-RG3MXTRI.js → chunk-E7HJ56Y7.js} +7 -7
  36. package/dist/{chunk-YSDPVDFC.js → chunk-EAOK7MIZ.js} +3 -3
  37. package/dist/{chunk-PP2A5V2T.js → chunk-EKWX4WD3.js} +7 -7
  38. package/dist/{chunk-2LDMXL2M.js → chunk-F5Z6URKM.js} +2 -2
  39. package/dist/{chunk-72J27ICO.js → chunk-F6X3YJWD.js} +2 -2
  40. package/dist/{chunk-ELZRSR5N.js → chunk-F7K5IBZG.js} +41 -39
  41. package/dist/{chunk-EX4EXBW7.js → chunk-FB5SCCPT.js} +15 -15
  42. package/dist/{chunk-SJHC3BCZ.js → chunk-FZKFVUEC.js} +518 -233
  43. package/dist/{chunk-UVY4TOJH.js → chunk-GNSIWBAT.js} +3 -3
  44. package/dist/{chunk-EXVXBSGN.js → chunk-H7OR7DFZ.js} +20 -18
  45. package/dist/{chunk-NLIVE7L6.js → chunk-HO6LWE2E.js} +1 -1
  46. package/dist/{chunk-X3UTCXAA.js → chunk-HR3OJ3TH.js} +12 -12
  47. package/dist/{chunk-HYVXA3BB.js → chunk-HWDAVBFU.js} +23 -23
  48. package/dist/{chunk-ZSUX7KEM.js → chunk-J6JP25XU.js} +2 -2
  49. package/dist/{chunk-T4NGVFYI.js → chunk-JJ2RRESP.js} +8 -5
  50. package/dist/{chunk-RU34BA4D.js → chunk-JMEKXFOL.js} +34 -34
  51. package/dist/{chunk-IL7K66ZQ.js → chunk-KDX35VXP.js} +74 -18
  52. package/dist/{chunk-EDMLIW6W.js → chunk-KKCK636N.js} +12 -12
  53. package/dist/{chunk-KJJAVH3X.js → chunk-KPPJTH44.js} +6 -5
  54. package/dist/{chunk-5LRUKYFA.js → chunk-KW5JQPO5.js} +2 -2
  55. package/dist/{chunk-N3PLNNCW.js → chunk-KXF5R4UN.js} +1 -1
  56. package/dist/{chunk-YWNO5Q4R.js → chunk-L3CMBQMH.js} +17 -17
  57. package/dist/{chunk-YWWG4AQA.js → chunk-L5JYIU47.js} +24 -25
  58. package/dist/{chunk-K2GUZ4DN.js → chunk-LBLBAFG3.js} +4 -4
  59. package/dist/{chunk-APFJKOP6.js → chunk-LLS45EWB.js} +10 -2
  60. package/dist/{chunk-MKPCELNI.js → chunk-LS3QJRUB.js} +13 -13
  61. package/dist/chunk-LSC3VADM.js +23 -0
  62. package/dist/{chunk-F7BO6FWH.js → chunk-LUBPZN36.js} +11 -11
  63. package/dist/{chunk-ASRAO7KG.js → chunk-LV4UMYVH.js} +27 -27
  64. package/dist/{chunk-COOUUC5W.js → chunk-MB6PXBUA.js} +6 -6
  65. package/dist/{chunk-3WCEHYOI.js → chunk-MNJIXFX4.js} +1 -1
  66. package/dist/{chunk-FEDWAYDS.js → chunk-MPKRJBPK.js} +35 -15
  67. package/dist/{chunk-Q4BKKOVC.js → chunk-N5WSK2K7.js} +8 -8
  68. package/dist/{chunk-K4SZB56V.js → chunk-NA7SEXHE.js} +12 -8
  69. package/dist/{chunk-UL5SXQVX.js → chunk-O4BJFESU.js} +1 -1
  70. package/dist/{chunk-LMCTHJ2H.js → chunk-OE5ZBP7F.js} +18 -18
  71. package/dist/{chunk-NFNVDDGB.js → chunk-OSTKYB55.js} +1 -1
  72. package/dist/{chunk-27VWVB23.js → chunk-OXOI55RU.js} +10 -10
  73. package/dist/{chunk-7IYC4ENJ.js → chunk-PKES3ISE.js} +2 -2
  74. package/dist/{chunk-EWXXLS26.js → chunk-PQJFG24Z.js} +82 -12
  75. package/dist/{chunk-3SNDVPOR.js → chunk-PR6PO3ES.js} +8 -8
  76. package/dist/{chunk-63NMUNYP.js → chunk-PUZ3E2J4.js} +6 -6
  77. package/dist/{chunk-DS2USX5G.js → chunk-QHSNL7B2.js} +11 -11
  78. package/dist/{chunk-UO66IMVP.js → chunk-QOE342SU.js} +2 -2
  79. package/dist/{chunk-7ZS7MC24.js → chunk-R5MOQM2H.js} +107 -40
  80. package/dist/{chunk-JWOVP5BL.js → chunk-RC2Z6K47.js} +6 -6
  81. package/dist/{chunk-GLW3YDZZ.js → chunk-RORGS5II.js} +9 -9
  82. package/dist/{chunk-Y5KTA2OB.js → chunk-RQS4QQSD.js} +2 -2
  83. package/dist/{chunk-KFXCL4OV.js → chunk-RRV3FNNM.js} +22 -23
  84. package/dist/{chunk-GYRZ72R4.js → chunk-RZOXUSPC.js} +2 -2
  85. package/dist/chunk-SHLDT3OI.js +27 -0
  86. package/dist/{chunk-IEBJF3PN.js → chunk-SNDXCFRS.js} +15 -13
  87. package/dist/{chunk-XHLK33VM.js → chunk-T7A2HK2B.js} +16 -16
  88. package/dist/{chunk-WUY4BZEP.js → chunk-TIQJPRDD.js} +106 -50
  89. package/dist/{chunk-2FYKETQJ.js → chunk-U2SDMG7C.js} +5 -5
  90. package/dist/{chunk-EIKRZ32J.js → chunk-U5HPROLA.js} +2 -2
  91. package/dist/{chunk-2Y6OJRSI.js → chunk-U6VN4NVL.js} +3 -3
  92. package/dist/{chunk-OZNCKLOX.js → chunk-U7BD2QL7.js} +12 -12
  93. package/dist/chunk-UF7RTZSO.js +27 -0
  94. package/dist/{chunk-XHDBJODR.js → chunk-URCQWAQ4.js} +21 -21
  95. package/dist/{chunk-7FLRUH6B.js → chunk-V63BC55Q.js} +1 -1
  96. package/dist/{chunk-TVZRLTG6.js → chunk-VSFLRN5Y.js} +1 -1
  97. package/dist/{chunk-OMJ3OFBJ.js → chunk-VUZWQ7UG.js} +6 -6
  98. package/dist/chunk-W4WP2ERB.js +30 -0
  99. package/dist/{chunk-G224FADB.js → chunk-WDBICWH3.js} +1 -1
  100. package/dist/{chunk-4ODSZ35Z.js → chunk-WGRJOXED.js} +121 -155
  101. package/dist/{chunk-FWZRGGGY.js → chunk-WME2OQST.js} +39 -4
  102. package/dist/{chunk-MEFLGBCS.js → chunk-XT2HTCJ5.js} +3 -3
  103. package/dist/{chunk-VIDEKABZ.js → chunk-Y7F7IEE3.js} +55 -23
  104. package/dist/chunk-YES5CACN.js +73 -0
  105. package/dist/{chunk-ZAPSUBLU.js → chunk-YHC2O2WO.js} +7 -7
  106. package/dist/{chunk-GTDSYEA2.js → chunk-YISME6ON.js} +1 -1
  107. package/dist/{chunk-TPYYEDP5.js → chunk-YVHBNSME.js} +48 -29
  108. package/dist/{chunk-XWFIHYCH.js → chunk-Z2XAOKHK.js} +2 -2
  109. package/dist/{chunk-QT66NEYN.js → chunk-ZE3KXHS7.js} +3 -3
  110. package/dist/{chunk-S55TEC7I.js → chunk-ZGSJDWQU.js} +2 -2
  111. package/dist/{chunk-4U7GDSZQ.js → chunk-ZJTT47IG.js} +2 -2
  112. package/dist/{chunk-KX56K73G.js → chunk-ZKXQKGWZ.js} +2 -2
  113. package/dist/{chunk-5DKE4HGX.js → chunk-ZMAUPOMG.js} +34 -34
  114. package/dist/index.js +2446 -1303
  115. package/dist/mcp/analyze-cli.js +10 -10
  116. package/dist/mcp/cli.js +42 -42
  117. package/dist/mcp/server.js +724 -472
  118. package/dist/mcp/worker.js +61 -61
  119. package/dist/probes/installer.js +19 -19
  120. package/docs/agent-tools.md +39 -10
  121. package/docs/configuration.md +3 -1
  122. package/docs/defect-shapes.md +752 -0
  123. package/docs/dependencies.md +1 -0
  124. package/docs/environment-variables.md +14 -0
  125. package/docs/features.md +11 -1
  126. package/docs/globalconfig.md +12 -1
  127. package/docs/invariants/caches-stores.md +30 -0
  128. package/docs/invariants/dispatch-runners.md +164 -0
  129. package/docs/invariants/git-guard-host.md +87 -0
  130. package/docs/invariants/language-config.md +31 -0
  131. package/docs/invariants/lsp-trust-exec.md +292 -0
  132. package/docs/invariants/paths-os.md +59 -0
  133. package/docs/invariants/session-telemetry.md +114 -0
  134. package/docs/lsp-capability-matrix.md +89 -45
  135. package/docs/lsp-idle-eviction.md +3 -5
  136. package/docs/pi-lens-fixer.md +10 -2
  137. package/docs/pi-lens-merge-policy.md +17 -12
  138. package/docs/pi-lens-monitor.md +2 -2
  139. package/docs/pi-lens-orchestration.md +41 -0
  140. package/docs/pi-lens-release.md +20 -0
  141. package/docs/pi-lens-retro.md +3 -2
  142. package/docs/pi-lens-reviewer.md +6 -6
  143. package/docs/pi-lens-subagent.md +9 -6
  144. package/docs/schema/pi-lens-config-v1.json +23 -0
  145. package/docs/servercapabilities.md +1 -1
  146. package/docs/settings.md +5 -0
  147. package/docs/usage.md +5 -0
  148. package/package.json +3 -2
  149. package/dist/chunk-22Y2BM7H.js +0 -23
  150. package/dist/chunk-44X7VIKR.js +0 -73
  151. package/dist/chunk-54NIOJJZ.js +0 -25
  152. package/dist/chunk-7WWQAW5P.js +0 -30
  153. package/dist/chunk-EA2ZRG44.js +0 -27
  154. package/dist/chunk-EKNWOL2I.js +0 -27
  155. package/dist/chunk-G5UCJFT7.js +0 -26
  156. package/dist/chunk-N5FBM25N.js +0 -22
  157. package/dist/chunk-P5XUGPIX.js +0 -31
  158. package/dist/chunk-PKOXJIVT.js +0 -88
  159. package/dist/chunk-RG7OODGM.js +0 -57
@@ -1,13 +1,13 @@
1
1
  import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
2
2
  import {
3
3
  logExtension
4
- } from "./chunk-N3PLNNCW.js";
4
+ } from "./chunk-KXF5R4UN.js";
5
5
  import {
6
6
  DEPRECATED_CONFIG_SURFACES
7
7
  } from "./chunk-S26LC76R.js";
8
8
  import {
9
9
  logLatency
10
- } from "./chunk-XWFIHYCH.js";
10
+ } from "./chunk-Z2XAOKHK.js";
11
11
  import {
12
12
  PROCESS_SINGLETON_RESET_KIND,
13
13
  getProbeHomeRedirectEvent,
@@ -18,11 +18,11 @@ import {
18
18
  getSinkWriteFailures,
19
19
  resetSinkRotations,
20
20
  resetSinkWriteFailures
21
- } from "./chunk-TVZRLTG6.js";
21
+ } from "./chunk-VSFLRN5Y.js";
22
22
  import {
23
23
  getPathIdentityFallbacks,
24
24
  resetPathIdentityFallbacks
25
- } from "./chunk-EWXXLS26.js";
25
+ } from "./chunk-PQJFG24Z.js";
26
26
 
27
27
  // dist/clients/ledger-bounds.js
28
28
  var LEDGER_FIELD_MAX = 200;
@@ -291,6 +291,8 @@ function isRenderableSummary(value) {
291
291
  }
292
292
  var INFORMATIONAL_DEGRADATION_KINDS = /* @__PURE__ */ new Set([
293
293
  "log-sink-rotated",
294
+ // Project-scoped autofix dedupe is intentional, not a failed fixer (#4862).
295
+ "deferred-autofix-duplicate-scope",
294
296
  // #2504 review round 8 (S1): both fire on the ordinary re-edit cadence
295
297
  // (a carry-forward window closing, or a session boundary) and are
296
298
  // self-healing -- the next turn's analysis or deferral re-observes the
@@ -476,6 +478,31 @@ var LENS_FLAGS = [
476
478
  default: false,
477
479
  scope: "global"
478
480
  },
481
+ {
482
+ name: "no-ast-grep",
483
+ description: "Disable the ast-grep auxiliary LSP server (default-on; serves the bundled and repo ast-grep rules). Also via astGrep.enabled=false in ~/.pi-lens/config.json.",
484
+ configKey: "astGrep.enabled",
485
+ negated: true,
486
+ default: false,
487
+ scope: "global"
488
+ },
489
+ {
490
+ name: "no-zizmor",
491
+ description: "Disable the zizmor auxiliary LSP server (default-on; audits GitHub Actions workflows). Also via zizmor.enabled=false in ~/.pi-lens/config.json.",
492
+ configKey: "zizmor.enabled",
493
+ negated: true,
494
+ default: false,
495
+ scope: "global"
496
+ },
497
+ {
498
+ name: "no-typos",
499
+ description: "Disable the typos auxiliary LSP server (default-on; flags known misspellings in source and Markdown). Also via typos.enabled=false in ~/.pi-lens/config.json.",
500
+ configKey: "typos.enabled",
501
+ negated: true,
502
+ default: false,
503
+ scope: "global"
504
+ },
505
+ globalOptInFlag("lens-spotbugs", "Opt-in: run SpotBugs on Java and Kotlin files when a Java build descriptor and a compiled .class directory exist (heavyweight: JVM cold start plus whole-tree analysis). Default off. Also via spotbugs.enabled=true in ~/.pi-lens/config.json.", "spotbugs.enabled"),
479
506
  {
480
507
  name: "no-read-guard",
481
508
  description: "Disable read-before-edit behavior monitor. Also via readGuard.enabled=false in ~/.pi-lens/config.json.",
@@ -567,6 +594,14 @@ var LENS_FLAGS = [
567
594
  default: false,
568
595
  scope: "global"
569
596
  },
597
+ {
598
+ name: "lens-fallow",
599
+ description: "Opt-in (#4929): run fallow-lsp beside the TypeScript server on JS/TS files, an advisory auxiliary LSP for unused code, duplication and cycles (auto-installs the pinned release; never blocks; knip, jscpd and madge keep running). Default off. Also via fallow.enabled=true in ~/.pi-lens/config.json.",
600
+ configKey: "fallow.enabled",
601
+ negated: false,
602
+ default: false,
603
+ scope: "global"
604
+ },
570
605
  ...[
571
606
  "knip",
572
607
  "jscpd",
@@ -1,19 +1,19 @@
1
1
  import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
2
2
  import {
3
3
  getProjectDataDir
4
- } from "./chunk-TPYYEDP5.js";
4
+ } from "./chunk-YVHBNSME.js";
5
5
  import {
6
6
  createNdjsonLogger,
7
7
  getGlobalPiLensLogDir,
8
8
  getProcessSingleton,
9
9
  getTurnId,
10
10
  isTestMode
11
- } from "./chunk-TVZRLTG6.js";
11
+ } from "./chunk-VSFLRN5Y.js";
12
12
  import {
13
13
  BoundedFifoMap,
14
14
  normalizeFilePath,
15
15
  normalizeMapKey
16
- } from "./chunk-EWXXLS26.js";
16
+ } from "./chunk-PQJFG24Z.js";
17
17
 
18
18
  // dist/clients/hashline-anchor.js
19
19
  var HASHLINE_ANCHOR_LENGTH = 3;
@@ -1,12 +1,13 @@
1
1
  import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
2
2
  import {
3
3
  classifyRunOutcome,
4
- firstOutputLine
5
- } from "./chunk-T4NGVFYI.js";
4
+ firstOutputLine,
5
+ processCutShort
6
+ } from "./chunk-JJ2RRESP.js";
6
7
  import {
7
8
  incrementDegradationCount,
8
9
  truncateForLedger
9
- } from "./chunk-FWZRGGGY.js";
10
+ } from "./chunk-WME2OQST.js";
10
11
 
11
12
  // dist/clients/dispatch/types.js
12
13
  function spanOverlapsModifiedRanges(startLine, endLine, ranges) {
@@ -38,6 +39,30 @@ function findingsResult(diagnostics, verdict) {
38
39
  }
39
40
  return { ...verdict, diagnostics };
40
41
  }
42
+ function faultResult(fault, diagnostic) {
43
+ return {
44
+ status: "failed",
45
+ diagnostics: [
46
+ {
47
+ ...diagnostic,
48
+ severity: "warning",
49
+ semantic: "warning",
50
+ runnerFault: true
51
+ }
52
+ ],
53
+ semantic: "warning",
54
+ failureKind: fault.kind,
55
+ failureMessage: fault.failureMessage.slice(0, 200)
56
+ };
57
+ }
58
+ function faultSkip(fault) {
59
+ return {
60
+ status: "skipped",
61
+ diagnostics: [],
62
+ semantic: "none",
63
+ skipFault: fault
64
+ };
65
+ }
41
66
  function hasUsableResult(result) {
42
67
  return result.status === "succeeded" || result.status === "failed" && result.failureKind === BLOCKING_DIAGNOSTICS_FAILURE_KIND;
43
68
  }
@@ -87,14 +112,28 @@ function formatRunOutcomeFailure(tool, outcome, fields) {
87
112
  }
88
113
  function skipUnlessToolRan(tool, input, fields) {
89
114
  const outcome = classifyRunOutcome(input);
90
- if (outcome.kind === "ran")
115
+ const kind = outcome.kind;
116
+ if (kind === "ran")
91
117
  return null;
92
118
  incrementDegradationCount({
93
119
  kind: "runner-empty-result",
94
120
  subject: tool,
95
121
  reason: formatRunOutcomeFailure(tool, outcome, fields)
96
122
  });
97
- return { status: "skipped", diagnostics: [], semantic: "none" };
123
+ return faultSkip(kind);
124
+ }
125
+ function faultIfCutShort(result, diagnostics) {
126
+ if (!processCutShort(result))
127
+ return null;
128
+ if (diagnostics.length === 0)
129
+ return faultSkip("did-not-run");
130
+ const hasBlocking = diagnostics.some((d) => d.semantic === "blocking");
131
+ return {
132
+ status: "failed",
133
+ diagnostics: [...diagnostics],
134
+ semantic: hasBlocking ? "blocking" : "warning",
135
+ failureKind: "did-not-run"
136
+ };
98
137
  }
99
138
  function recordParsedNothing(input) {
100
139
  const { tool, status, output, parsedCount } = input;
@@ -142,24 +181,14 @@ function finishParsedRun(input) {
142
181
  if (input.diagnostics.length === 0) {
143
182
  if (status !== 0 && raw.trim().length > 0) {
144
183
  const message = `${input.tool} exited ${status} but its output could not be parsed`;
145
- return {
146
- status: "failed",
147
- diagnostics: [
148
- {
149
- id: `${input.tool}:parse-error:1`,
150
- message,
151
- filePath: input.ctx.filePath,
152
- line: 1,
153
- column: 1,
154
- severity: "warning",
155
- semantic: "warning",
156
- tool: input.tool
157
- }
158
- ],
159
- semantic: "warning",
160
- failureKind: "parser_error",
161
- failureMessage: message
162
- };
184
+ return faultResult({ kind: "parser_error", failureMessage: message }, {
185
+ id: `${input.tool}:parse-error:1`,
186
+ message,
187
+ filePath: input.ctx.filePath,
188
+ line: 1,
189
+ column: 1,
190
+ tool: input.tool
191
+ });
163
192
  }
164
193
  return { status: "succeeded", diagnostics: [], semantic: "none" };
165
194
  }
@@ -179,10 +208,13 @@ export {
179
208
  isRunnerSkipReason,
180
209
  isRunnerClaimSource,
181
210
  findingsResult,
211
+ faultResult,
212
+ faultSkip,
182
213
  hasUsableResult,
183
214
  reachedNoVerdict,
184
215
  formatToolFailure,
185
216
  skipUnlessToolRan,
217
+ faultIfCutShort,
186
218
  parseToolRun,
187
219
  finishParsedRun
188
220
  };
@@ -0,0 +1,73 @@
1
+ import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
2
+ import {
3
+ adaptLspService,
4
+ getLSPService,
5
+ groupFilesByPrimaryServer,
6
+ hasAuxiliaryLspPublishedForRoot,
7
+ notifyExternalFileChange,
8
+ peekLSPService,
9
+ resetLSPService,
10
+ resyncGitChangedFiles,
11
+ runPerServerGroups
12
+ } from "./chunk-FZKFVUEC.js";
13
+ import "./chunk-XT2HTCJ5.js";
14
+ import "./chunk-XIMYZ3JA.js";
15
+ import "./chunk-R5MOQM2H.js";
16
+ import "./chunk-24BILSZW.js";
17
+ import "./chunk-PR6PO3ES.js";
18
+ import "./chunk-RC2Z6K47.js";
19
+ import "./chunk-F5Z6URKM.js";
20
+ import "./chunk-MPKRJBPK.js";
21
+ import "./chunk-DH5JPM3K.js";
22
+ import "./chunk-PKES3ISE.js";
23
+ import "./chunk-ZKXQKGWZ.js";
24
+ import "./chunk-L5JYIU47.js";
25
+ import "./chunk-Z54ZSOBZ.js";
26
+ import "./chunk-U6VN4NVL.js";
27
+ import "./chunk-TIQJPRDD.js";
28
+ import "./chunk-YISME6ON.js";
29
+ import "./chunk-6HWVI6MI.js";
30
+ import "./chunk-O4BJFESU.js";
31
+ import "./chunk-CKEQFGLT.js";
32
+ import "./chunk-HO6LWE2E.js";
33
+ import "./chunk-SNDXCFRS.js";
34
+ import "./chunk-QOE342SU.js";
35
+ import "./chunk-AWDSEDER.js";
36
+ import "./chunk-LLS45EWB.js";
37
+ import "./chunk-2BEMIWEW.js";
38
+ import "./chunk-IJYGIDF4.js";
39
+ import "./chunk-KDX35VXP.js";
40
+ import "./chunk-DPGEAHZT.js";
41
+ import "./chunk-NA7SEXHE.js";
42
+ import "./chunk-3F6BMY53.js";
43
+ import "./chunk-KW5JQPO5.js";
44
+ import "./chunk-PUZ3E2J4.js";
45
+ import "./chunk-ABPKUVA4.js";
46
+ import "./chunk-EKWX4WD3.js";
47
+ import "./chunk-ZGSJDWQU.js";
48
+ import "./chunk-YVHBNSME.js";
49
+ import "./chunk-AWQWXSW4.js";
50
+ import "./chunk-QYF5S6P6.js";
51
+ import "./chunk-RZOXUSPC.js";
52
+ import "./chunk-KPPJTH44.js";
53
+ import "./chunk-J6JP25XU.js";
54
+ import "./chunk-U5HPROLA.js";
55
+ import "./chunk-WME2OQST.js";
56
+ import "./chunk-KXF5R4UN.js";
57
+ import "./chunk-S26LC76R.js";
58
+ import "./chunk-Z2XAOKHK.js";
59
+ import "./chunk-VSFLRN5Y.js";
60
+ import "./chunk-LJDODBBZ.js";
61
+ import "./chunk-PQJFG24Z.js";
62
+ import "./chunk-NXL4FFQQ.js";
63
+ export {
64
+ adaptLspService,
65
+ getLSPService,
66
+ groupFilesByPrimaryServer,
67
+ hasAuxiliaryLspPublishedForRoot,
68
+ notifyExternalFileChange,
69
+ peekLSPService,
70
+ resetLSPService,
71
+ resyncGitChangedFiles,
72
+ runPerServerGroups
73
+ };
@@ -2,31 +2,31 @@ import { createRequire as __pilensCreateRequire } from "node:module"; const requ
2
2
  import {
3
3
  firstOutputLine,
4
4
  spawnFailedWithNoOutput
5
- } from "./chunk-T4NGVFYI.js";
5
+ } from "./chunk-JJ2RRESP.js";
6
6
  import {
7
7
  SecurityScanClient
8
- } from "./chunk-QT66NEYN.js";
8
+ } from "./chunk-ZE3KXHS7.js";
9
9
  import {
10
10
  probeToolAsync
11
- } from "./chunk-XI34NWDI.js";
11
+ } from "./chunk-3F6BMY53.js";
12
12
  import {
13
13
  INSTALL_TRANSIENT_MAX_ATTEMPTS,
14
14
  classifyProbeFailure,
15
15
  describeProbeEvidence,
16
16
  logAvailabilityDecision,
17
17
  startHostStallSampler
18
- } from "./chunk-5LRUKYFA.js";
18
+ } from "./chunk-KW5JQPO5.js";
19
19
  import {
20
20
  isUntrustedProjectPath,
21
21
  recordProjectCommandRefusal,
22
22
  safeSpawnAsync
23
- } from "./chunk-TPYYEDP5.js";
23
+ } from "./chunk-YVHBNSME.js";
24
24
  import {
25
25
  assertInstallAllowed
26
- } from "./chunk-EIKRZ32J.js";
26
+ } from "./chunk-U5HPROLA.js";
27
27
  import {
28
28
  recordDegradationOnce
29
- } from "./chunk-FWZRGGGY.js";
29
+ } from "./chunk-WME2OQST.js";
30
30
 
31
31
  // dist/clients/govulncheck-client.js
32
32
  import * as fs from "node:fs";
@@ -1,7 +1,7 @@
1
1
  import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
2
2
  import {
3
3
  SPECIAL_FILENAMES
4
- } from "./chunk-GYRZ72R4.js";
4
+ } from "./chunk-RZOXUSPC.js";
5
5
 
6
6
  // dist/clients/language-registry.js
7
7
  var LANGUAGES = [
@@ -13,7 +13,7 @@ import {
13
13
  reportPiLensConfigRecords,
14
14
  resolveOnePiLensConfigDocument,
15
15
  warnIgnoredConfigOnce
16
- } from "./chunk-KJJAVH3X.js";
16
+ } from "./chunk-KPPJTH44.js";
17
17
  import {
18
18
  CANONICAL_GLOBAL_CONFIG_FILE,
19
19
  FRESHNESS_CADENCE_MS,
@@ -23,7 +23,7 @@ import {
23
23
  errorClassName,
24
24
  getPiLensGlobalConfigPath,
25
25
  getProductionGlobalConfigResolution
26
- } from "./chunk-ZSUX7KEM.js";
26
+ } from "./chunk-J6JP25XU.js";
27
27
  import {
28
28
  DEFAULT_MAX_OUTPUT_BYTES,
29
29
  createBoundedOutputSink,
@@ -31,7 +31,7 @@ import {
31
31
  truncatedByOutputCap,
32
32
  writeFileAtomic,
33
33
  writeFileAtomicAsync
34
- } from "./chunk-EIKRZ32J.js";
34
+ } from "./chunk-U5HPROLA.js";
35
35
  import {
36
36
  GLOBAL_NON_FLAG_CONFIG_SECTIONS,
37
37
  LENS_FLAGS,
@@ -47,17 +47,17 @@ import {
47
47
  readToolConfig,
48
48
  recordDegradation,
49
49
  recordDegradationOnce
50
- } from "./chunk-FWZRGGGY.js";
50
+ } from "./chunk-WME2OQST.js";
51
51
  import {
52
52
  logExtension
53
- } from "./chunk-N3PLNNCW.js";
53
+ } from "./chunk-KXF5R4UN.js";
54
54
  import {
55
55
  logLatency
56
- } from "./chunk-XWFIHYCH.js";
56
+ } from "./chunk-Z2XAOKHK.js";
57
57
  import {
58
58
  getProcessSingleton,
59
59
  machineStateDir
60
- } from "./chunk-TVZRLTG6.js";
60
+ } from "./chunk-VSFLRN5Y.js";
61
61
  import {
62
62
  STAGE_TMP_PATTERN,
63
63
  stagePathFor,
@@ -73,6 +73,7 @@ import {
73
73
  isFullyQualifiedWin32,
74
74
  isRealGitMarker,
75
75
  isUnderDir,
76
+ isWindowsPath,
76
77
  isWithinForm,
77
78
  normalizeEphemeralMapKey,
78
79
  normalizeFilePath,
@@ -81,9 +82,10 @@ import {
81
82
  normalizePathSpelling,
82
83
  pathsEqual,
83
84
  realpathOrResolve,
85
+ toPosix,
84
86
  toProjectRelativePath,
85
87
  walkUpDirs
86
- } from "./chunk-EWXXLS26.js";
88
+ } from "./chunk-PQJFG24Z.js";
87
89
  import {
88
90
  __commonJS,
89
91
  __require,
@@ -2088,7 +2090,9 @@ function classifyTmpDir(dir) {
2088
2090
  const real = realpathOrResolve(dir);
2089
2091
  let result = NOT_EPHEMERAL;
2090
2092
  if (isUnderDir(real, tmpRoot)) {
2091
- for (let current = real; current !== tmpRoot && path7.dirname(current) !== current; current = path7.dirname(current)) {
2093
+ for (const current of walkUpDirs(real)) {
2094
+ if (current === tmpRoot)
2095
+ break;
2092
2096
  if (isRealGitMarker(path7.join(current, ".git"))) {
2093
2097
  result = { checkout: true };
2094
2098
  break;
@@ -2325,12 +2329,7 @@ function projectDataDirReadableSlug(canonicalRoot) {
2325
2329
  function dataDirCanonicalRoot(cwd, platform = process.platform) {
2326
2330
  const resolved = path8.resolve(cwd);
2327
2331
  const root = platform === "win32" ? resolved : realpathOrResolve(resolved);
2328
- try {
2329
- fs5.realpathSync(resolved);
2330
- } catch {
2331
- return { root, fallback: true };
2332
- }
2333
- return { root, fallback: false };
2332
+ return { root, fallback: !fs5.existsSync(resolved) };
2334
2333
  }
2335
2334
  function projectDataDirRootHash(canonicalRoot) {
2336
2335
  return createHash("sha256").update(canonicalRoot).digest("hex").slice(0, 8);
@@ -2588,10 +2587,16 @@ function readGitignorePatterns(rootDir, layer = "gitignore") {
2588
2587
  return [];
2589
2588
  }
2590
2589
  }
2590
+ function containmentForm(value) {
2591
+ return isWindowsPath(value) ? toPosix(value).toLowerCase() : value;
2592
+ }
2593
+ function isWithinPathForm(child, parent) {
2594
+ return isWithinForm(containmentForm(child), containmentForm(parent));
2595
+ }
2591
2596
  function ancestorDirsBetween(rootDir, targetDir) {
2592
- const relative3 = path8.relative(rootDir, targetDir);
2593
- if (relative3.startsWith("..") || path8.isAbsolute(relative3))
2597
+ if (!isWithinPathForm(targetDir, rootDir))
2594
2598
  return [];
2599
+ const relative3 = path8.relative(rootDir, targetDir);
2595
2600
  const dirs = [rootDir];
2596
2601
  if (!relative3)
2597
2602
  return dirs;
@@ -2645,11 +2650,10 @@ function buildProjectIgnoreMatcher(resolvedRoot, patterns) {
2645
2650
  };
2646
2651
  const patternMemo = /* @__PURE__ */ new Map();
2647
2652
  function dropVerdictsUnder(subtree) {
2648
- const resolvedSubtree = path8.resolve(subtree);
2653
+ const subtreeForm = path8.resolve(subtree);
2649
2654
  for (const key of patternMemo.keys()) {
2650
2655
  const memoPath = key.slice(2);
2651
- const relative3 = path8.relative(resolvedSubtree, memoPath);
2652
- if (!relative3 || !relative3.startsWith("..") && !path8.isAbsolute(relative3)) {
2656
+ if (isWithinPathForm(memoPath, subtreeForm)) {
2653
2657
  patternMemo.delete(key);
2654
2658
  }
2655
2659
  }
@@ -2663,11 +2667,27 @@ function buildProjectIgnoreMatcher(resolvedRoot, patterns) {
2663
2667
  }
2664
2668
  return identity;
2665
2669
  };
2666
- const rootPrefix = resolvedRoot.endsWith(path8.sep) ? resolvedRoot : resolvedRoot + path8.sep;
2667
- const isUnderRootText = (absolute) => absolute === resolvedRoot || absolute.startsWith(rootPrefix);
2670
+ const hasDotSegment = (spelling) => /(^|[\\/])\.\.?([\\/]|$)/.test(spelling);
2671
+ const projectPathKey = (spelling) => {
2672
+ const absolute = path8.resolve(spelling);
2673
+ if (!hasDotSegment(spelling)) {
2674
+ if (isUnderRootText(absolute))
2675
+ return absolute;
2676
+ return path8.join(identityOfDir(path8.dirname(absolute)), path8.basename(absolute));
2677
+ }
2678
+ const tail = path8.basename(spelling);
2679
+ if (tail === "." || tail === "..")
2680
+ return identityOfDir(spelling);
2681
+ return path8.join(identityOfDir(path8.dirname(spelling)), tail);
2682
+ };
2683
+ const isUnderRootText = (absolute) => isWithinPathForm(absolute, resolvedRoot);
2668
2684
  const invalidateSubtree = (subtree) => {
2669
2685
  const absolute = path8.resolve(subtree);
2670
- const local = isUnderRootText(absolute) ? absolute : identityOfDir(absolute);
2686
+ let local = absolute;
2687
+ if (hasDotSegment(subtree))
2688
+ local = identityOfDir(subtree);
2689
+ else if (!isUnderRootText(absolute))
2690
+ local = identityOfDir(absolute);
2671
2691
  dropVerdictsUnder(local);
2672
2692
  nestedCache.delete(local);
2673
2693
  };
@@ -2703,13 +2723,11 @@ function buildProjectIgnoreMatcher(resolvedRoot, patterns) {
2703
2723
  return collectTrackedFiles(resolvedRoot).then(() => void 0);
2704
2724
  },
2705
2725
  isIgnored(filePath, isDirectory2 = false) {
2706
- const spelled = path8.resolve(filePath);
2707
- const resolved = isUnderRootText(spelled) ? spelled : path8.join(identityOfDir(path8.dirname(spelled)), path8.basename(spelled));
2726
+ const resolved = projectPathKey(filePath);
2708
2727
  const memoKey = (isDirectory2 ? "D:" : "F:") + resolved;
2709
2728
  let verdict = patternMemo.get(memoKey);
2710
2729
  if (verdict === void 0) {
2711
- const rootRelative = path8.relative(resolvedRoot, resolved);
2712
- if (!rootRelative || rootRelative.startsWith("..") || path8.isAbsolute(rootRelative)) {
2730
+ if (resolved === resolvedRoot || !isWithinPathForm(resolved, resolvedRoot)) {
2713
2731
  verdict = { ignored: false, layer: void 0 };
2714
2732
  } else {
2715
2733
  let ignored = false;
@@ -2835,7 +2853,7 @@ function invalidateProjectIgnoreMatcherForPath(filePath) {
2835
2853
  projectIgnoreMatcherCache.delete(cachedRoot);
2836
2854
  continue;
2837
2855
  }
2838
- cached.matcher.invalidateSubtree(path8.dirname(resolvedPath));
2856
+ cached.matcher.invalidateSubtree(path8.dirname(filePath));
2839
2857
  }
2840
2858
  }
2841
2859
  function isPathIgnoredByProject(filePath, rootDir, isDirectory2 = false) {
@@ -4982,7 +5000,8 @@ function resolveWindowsCommand(command, cwd, env) {
4982
5000
  return resolveWindowsCommandForEnvironment(command, cwd, env);
4983
5001
  }
4984
5002
  function getSpawnEnvironment(overrides, stripNpmConfig) {
4985
- const merged = process.platform === "win32" ? mergeWindowsEnvironment(process.env, overrides) : { ...process.env, ...overrides };
5003
+ const ambient = { ...process.env, GIT_OPTIONAL_LOCKS: "0" };
5004
+ const merged = process.platform === "win32" ? mergeWindowsEnvironment(ambient, overrides) : { ...ambient, ...overrides };
4986
5005
  if (!stripNpmConfig)
4987
5006
  return merged;
4988
5007
  const stripped = {};
@@ -5,10 +5,10 @@ import {
5
5
  getMaxLogSizeMB,
6
6
  getTurnId,
7
7
  isTestMode
8
- } from "./chunk-TVZRLTG6.js";
8
+ } from "./chunk-VSFLRN5Y.js";
9
9
  import {
10
10
  normalizeLoggedPath
11
- } from "./chunk-EWXXLS26.js";
11
+ } from "./chunk-PQJFG24Z.js";
12
12
 
13
13
  // dist/clients/latency-logger.js
14
14
  import * as path from "node:path";
@@ -2,7 +2,7 @@ import { createRequire as __pilensCreateRequire } from "node:module"; const requ
2
2
  import {
3
3
  createAvailabilityProbeFlight,
4
4
  probeToolAsync
5
- } from "./chunk-XI34NWDI.js";
5
+ } from "./chunk-3F6BMY53.js";
6
6
  import {
7
7
  classifyProbeFailure,
8
8
  createAvailabilityLatch,
@@ -10,13 +10,13 @@ import {
10
10
  describeProbeEvidence,
11
11
  logAvailabilityDecision,
12
12
  startHostStallSampler
13
- } from "./chunk-5LRUKYFA.js";
13
+ } from "./chunk-KW5JQPO5.js";
14
14
  import {
15
15
  createSingleFlight
16
16
  } from "./chunk-AWQWXSW4.js";
17
17
  import {
18
18
  createSubsystemLogger
19
- } from "./chunk-N3PLNNCW.js";
19
+ } from "./chunk-KXF5R4UN.js";
20
20
 
21
21
  // dist/clients/security-scan-client.js
22
22
  import * as path from "node:path";
@@ -1,14 +1,14 @@
1
1
  import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
2
2
  import {
3
3
  isExcludedDirName
4
- } from "./chunk-TPYYEDP5.js";
4
+ } from "./chunk-YVHBNSME.js";
5
5
  import {
6
6
  createDeadline,
7
7
  yieldIfOverBudget
8
8
  } from "./chunk-QYF5S6P6.js";
9
9
  import {
10
10
  isGeneratedArtifactDirectoryName
11
- } from "./chunk-KJJAVH3X.js";
11
+ } from "./chunk-KPPJTH44.js";
12
12
 
13
13
  // dist/clients/source-walker.js
14
14
  import * as fs from "node:fs";
@@ -1,10 +1,10 @@
1
1
  import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
2
2
  import {
3
3
  isMutatingToolName
4
- } from "./chunk-MEFLGBCS.js";
4
+ } from "./chunk-XT2HTCJ5.js";
5
5
  import {
6
6
  normalizeMapKey
7
- } from "./chunk-EWXXLS26.js";
7
+ } from "./chunk-PQJFG24Z.js";
8
8
 
9
9
  // dist/clients/agent-behavior-client.js
10
10
  var READ_OPS = /* @__PURE__ */ new Set(["read", "bash", "grep", "glob", "find", "rg"]);
@@ -1,11 +1,11 @@
1
1
  import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
2
2
  import {
3
3
  logExtension
4
- } from "./chunk-N3PLNNCW.js";
4
+ } from "./chunk-KXF5R4UN.js";
5
5
  import {
6
6
  findNearestMarkerRoot,
7
7
  walkUpDirs
8
- } from "./chunk-EWXXLS26.js";
8
+ } from "./chunk-PQJFG24Z.js";
9
9
 
10
10
  // dist/clients/cargo-manifest.js
11
11
  import { readFile } from "node:fs/promises";