pi-lens 4.4.7 → 4.4.8

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 (167) hide show
  1. package/CHANGELOG.md +149 -0
  2. package/README.md +12 -2
  3. package/config/markdownlint/run-no-fix.mjs +36 -0
  4. package/dist/{chunk-WME2OQST.js → chunk-2453RRJ2.js} +11 -6
  5. package/dist/{chunk-FZKFVUEC.js → chunk-2BKUFQKR.js} +276 -208
  6. package/dist/chunk-2TS4GLOJ.js +31 -0
  7. package/dist/{chunk-QHSNL7B2.js → chunk-2ZE3AUJQ.js} +12 -14
  8. package/dist/{chunk-MPKRJBPK.js → chunk-35WKJWO5.js} +28 -30
  9. package/dist/chunk-3JAHQBSY.js +27 -0
  10. package/dist/{chunk-4LM3VAZH.js → chunk-3O5EII3W.js} +2 -2
  11. package/dist/chunk-447YZL4S.js +25 -0
  12. package/dist/{chunk-H7OR7DFZ.js → chunk-4B2YFN4U.js} +25 -21
  13. package/dist/{chunk-OSTKYB55.js → chunk-4BKU7PV3.js} +1 -1
  14. package/dist/{chunk-RRV3FNNM.js → chunk-4LL2VRNY.js} +27 -28
  15. package/dist/{chunk-BZARLRJW.js → chunk-4NBWFYWW.js} +9 -9
  16. package/dist/{chunk-KKCK636N.js → chunk-4QG55RRC.js} +12 -12
  17. package/dist/{chunk-RQS4QQSD.js → chunk-4W52ZKZX.js} +2 -2
  18. package/dist/{chunk-Z2XAOKHK.js → chunk-565VRUP4.js} +2 -2
  19. package/dist/{chunk-HWDAVBFU.js → chunk-57X2CDRX.js} +23 -23
  20. package/dist/{chunk-MB6PXBUA.js → chunk-5F3XF3SX.js} +7 -15
  21. package/dist/{chunk-O4BJFESU.js → chunk-5RNB4HVK.js} +1 -1
  22. package/dist/{chunk-ZMAUPOMG.js → chunk-5T5A6YAJ.js} +35 -34
  23. package/dist/{chunk-4ZYJHQMB.js → chunk-6FIRFP6A.js} +12 -12
  24. package/dist/{chunk-4YHYPW2G.js → chunk-6GMGEKQN.js} +9 -5
  25. package/dist/{chunk-4LOE5R5P.js → chunk-6LJOJ6EO.js} +20 -15
  26. package/dist/{chunk-3YY7IXIL.js → chunk-6YUNI7B5.js} +3 -3
  27. package/dist/{chunk-PKES3ISE.js → chunk-7ANZ7XDD.js} +2 -2
  28. package/dist/{chunk-FB5SCCPT.js → chunk-7CGIDRIK.js} +16 -15
  29. package/dist/{chunk-L3CMBQMH.js → chunk-7MAD5ZAY.js} +16 -17
  30. package/dist/{chunk-WDBICWH3.js → chunk-7TNILKGY.js} +1 -1
  31. package/dist/{chunk-RORGS5II.js → chunk-A5GRLYPZ.js} +9 -9
  32. package/dist/{chunk-MNJIXFX4.js → chunk-AGGUWKRK.js} +1 -1
  33. package/dist/{chunk-ABPKUVA4.js → chunk-BBET6HD6.js} +1 -1
  34. package/dist/{chunk-L5JYIU47.js → chunk-BHWW6FAX.js} +14 -13
  35. package/dist/{chunk-URCQWAQ4.js → chunk-BOPDQ7AZ.js} +23 -21
  36. package/dist/{chunk-KDX35VXP.js → chunk-BQG2QFVO.js} +158 -133
  37. package/dist/{chunk-CB4WHS4H.js → chunk-BUZIQDFS.js} +3 -3
  38. package/dist/{chunk-2PHMIAKO.js → chunk-CM73PPGD.js} +4 -4
  39. package/dist/{chunk-DH5JPM3K.js → chunk-CUDD35TW.js} +10 -9
  40. package/dist/{chunk-AWDSEDER.js → chunk-CZL44WFN.js} +2 -2
  41. package/dist/{chunk-N5WSK2K7.js → chunk-DIWK3LBC.js} +12 -15
  42. package/dist/{chunk-24BILSZW.js → chunk-DYRZGUMA.js} +2 -2
  43. package/dist/{chunk-PR6PO3ES.js → chunk-FHEV6T4L.js} +22 -18
  44. package/dist/{chunk-DQZFQSR5.js → chunk-FRLAUP2B.js} +4 -4
  45. package/dist/{chunk-RZOXUSPC.js → chunk-G5GV2Q7K.js} +2 -2
  46. package/dist/{chunk-EKWX4WD3.js → chunk-G6JKM4O7.js} +7 -7
  47. package/dist/chunk-GGYOZWHW.js +27 -0
  48. package/dist/{chunk-XT2HTCJ5.js → chunk-GIRBSBGL.js} +6 -5
  49. package/dist/{chunk-PQJFG24Z.js → chunk-GMROJJRN.js} +1292 -946
  50. package/dist/{chunk-U6VN4NVL.js → chunk-HHR7WGCI.js} +3 -3
  51. package/dist/{chunk-TIQJPRDD.js → chunk-HKIL6DCL.js} +3 -2
  52. package/dist/{chunk-SNDXCFRS.js → chunk-HUAM7QG3.js} +11 -11
  53. package/dist/{chunk-QOE342SU.js → chunk-HXFUTMX2.js} +2 -2
  54. package/dist/{chunk-U7BD2QL7.js → chunk-I22THIHI.js} +12 -12
  55. package/dist/chunk-IE5D3RA5.js +58 -0
  56. package/dist/{chunk-DPGEAHZT.js → chunk-IYVYZQRL.js} +10 -16
  57. package/dist/{chunk-3F6BMY53.js → chunk-JBP7KESM.js} +1 -1
  58. package/dist/{chunk-U5HPROLA.js → chunk-JE6HKLC7.js} +2 -2
  59. package/dist/{chunk-ZE3KXHS7.js → chunk-JPRDTY5S.js} +85 -3
  60. package/dist/{chunk-HO6LWE2E.js → chunk-JYLOYTZD.js} +17 -1
  61. package/dist/{chunk-KW5JQPO5.js → chunk-JZRP4DGP.js} +2 -2
  62. package/dist/{chunk-CPSR3AVL.js → chunk-KZ4ALBCH.js} +2 -2
  63. package/dist/{chunk-6IR3ZYIB.js → chunk-L3CLUGDY.js} +3 -3
  64. package/dist/{chunk-LV4UMYVH.js → chunk-L4NEVZ4T.js} +28 -27
  65. package/dist/chunk-LPYTPNOJ.js +22 -0
  66. package/dist/{chunk-WGRJOXED.js → chunk-LSFXZLPW.js} +1016 -636
  67. package/dist/{chunk-LBLBAFG3.js → chunk-MC6VB2E5.js} +4 -4
  68. package/dist/{chunk-U2SDMG7C.js → chunk-NM2NWH55.js} +5 -5
  69. package/dist/{chunk-T7A2HK2B.js → chunk-NSPVR3FN.js} +19 -18
  70. package/dist/{chunk-ZGSJDWQU.js → chunk-O2ARHQKF.js} +2 -2
  71. package/dist/{chunk-OXOI55RU.js → chunk-O4N5BQ3T.js} +10 -10
  72. package/dist/{chunk-3FRLWYBG.js → chunk-OC7VWJBZ.js} +39 -40
  73. package/dist/chunk-OFNMHPBT.js +89 -0
  74. package/dist/{chunk-HR3OJ3TH.js → chunk-OWTG6UMO.js} +21 -21
  75. package/dist/{chunk-75GAYVNO.js → chunk-OY7WZI7Q.js} +6 -6
  76. package/dist/{chunk-ZJTT47IG.js → chunk-OZWXLJMX.js} +2 -2
  77. package/dist/{chunk-F6X3YJWD.js → chunk-PIQQM32Y.js} +2 -2
  78. package/dist/chunk-PKLB2XJL.js +8 -0
  79. package/dist/{chunk-EAOK7MIZ.js → chunk-PKSUMEPT.js} +17 -4
  80. package/dist/{chunk-YISME6ON.js → chunk-PPKECBPP.js} +1 -1
  81. package/dist/{chunk-4L36HG27.js → chunk-R2QQC33W.js} +14 -14
  82. package/dist/{chunk-LUBPZN36.js → chunk-R4QWJQ2H.js} +11 -11
  83. package/dist/{chunk-V63BC55Q.js → chunk-RGGH6M34.js} +1 -1
  84. package/dist/{chunk-Y7F7IEE3.js → chunk-RZG472YW.js} +65 -7
  85. package/dist/{chunk-PUZ3E2J4.js → chunk-SDFKOLSF.js} +6 -6
  86. package/dist/{chunk-YHC2O2WO.js → chunk-SFLHSL5R.js} +9 -9
  87. package/dist/{chunk-CCV2EU7T.js → chunk-SP4TFY5F.js} +14 -13
  88. package/dist/{chunk-J6JP25XU.js → chunk-SQC7K3SP.js} +4 -3
  89. package/dist/{chunk-3K2F6UDZ.js → chunk-T2S3FNNJ.js} +44 -42
  90. package/dist/{chunk-2TF6RXWB.js → chunk-TV6RXRYH.js} +10 -10
  91. package/dist/{chunk-GNSIWBAT.js → chunk-U3AS2FR6.js} +3 -3
  92. package/dist/{chunk-F7K5IBZG.js → chunk-UHHLR2VY.js} +40 -40
  93. package/dist/chunk-UYXV5NIS.js +20 -0
  94. package/dist/{chunk-VSFLRN5Y.js → chunk-VLQ7UKZH.js} +1 -1
  95. package/dist/{chunk-VUZWQ7UG.js → chunk-VN3L2JWZ.js} +46 -72
  96. package/dist/{chunk-NA7SEXHE.js → chunk-VOP4PJKA.js} +7 -7
  97. package/dist/{chunk-F5Z6URKM.js → chunk-VOXTCULR.js} +2 -2
  98. package/dist/{chunk-LLS45EWB.js → chunk-VPLBLWFO.js} +6 -8
  99. package/dist/chunk-W3BGKBBK.js +27 -0
  100. package/dist/{chunk-ZKXQKGWZ.js → chunk-WC6WRNQT.js} +4 -3
  101. package/dist/{chunk-YVHBNSME.js → chunk-WMDUT4KH.js} +1148 -1132
  102. package/dist/{chunk-KXF5R4UN.js → chunk-WQV6BI4Q.js} +1 -1
  103. package/dist/chunk-WXUDRAG6.js +24 -0
  104. package/dist/{chunk-KPPJTH44.js → chunk-X35S7HSB.js} +28 -10
  105. package/dist/{chunk-JMEKXFOL.js → chunk-X66YJ2SS.js} +40 -34
  106. package/dist/{chunk-CE6VMBCB.js → chunk-XOMGO63G.js} +22 -21
  107. package/dist/{chunk-LS3QJRUB.js → chunk-XWIME22V.js} +13 -13
  108. package/dist/{chunk-R5MOQM2H.js → chunk-XYLC35E4.js} +119 -87
  109. package/dist/{chunk-OE5ZBP7F.js → chunk-YHGYAEFH.js} +18 -18
  110. package/dist/{chunk-7E2563GA.js → chunk-ZFORSIED.js} +13 -13
  111. package/dist/{chunk-E7HJ56Y7.js → chunk-ZKLTNLAW.js} +64 -73
  112. package/dist/chunk-ZONZ6YY3.js +74 -0
  113. package/dist/chunk-ZSM35JF4.js +30 -0
  114. package/dist/{chunk-RC2Z6K47.js → chunk-ZZDIOAAJ.js} +15 -6
  115. package/dist/index.js +6993 -5396
  116. package/dist/mcp/analyze-cli.js +10 -10
  117. package/dist/mcp/cli.js +44 -42
  118. package/dist/mcp/server.js +1627 -504
  119. package/dist/mcp/worker.js +62 -61
  120. package/dist/probes/installer.js +20 -19
  121. package/docs/adr/0003-git-guard-latch-writer.md +11 -6
  122. package/docs/agent-tools.md +18 -8
  123. package/docs/alignment-families.md +29 -0
  124. package/docs/ast-grep_rules_catalog.md +6 -4
  125. package/docs/ci-bot-pr-checks.md +126 -0
  126. package/docs/configuration.md +99 -3
  127. package/docs/defect-shapes.md +55 -12
  128. package/docs/engineering-principles.md +27 -2
  129. package/docs/features.md +2 -2
  130. package/docs/invariants/git-guard-host.md +7 -3
  131. package/docs/invariants/language-config.md +15 -4
  132. package/docs/invariants/lsp-trust-exec.md +16 -2
  133. package/docs/invariants/paths-os.md +4 -2
  134. package/docs/lsp-capability-matrix.md +119 -39
  135. package/docs/merge-queue-rollout.md +1 -1
  136. package/docs/pi-lens-fixer.md +24 -17
  137. package/docs/pi-lens-merge-policy.md +20 -11
  138. package/docs/pi-lens-monitor.md +9 -0
  139. package/docs/pi-lens-orchestration.md +4 -1
  140. package/docs/pi-lens-reviewer.md +5 -5
  141. package/docs/pi-lens-subagent.md +6 -3
  142. package/docs/public-api-stability.md +18 -2
  143. package/docs/schema/pi-lens-config-v1.json +10 -0
  144. package/docs/settings.md +10 -6
  145. package/docs/word-index.md +17 -5
  146. package/package.json +5 -3
  147. package/rules/ast-grep-rules/rule-tests/no-accumulating-spread-js-test.yml +37 -0
  148. package/rules/ast-grep-rules/rule-tests/ts-redundant-filter-map-test.yml +12 -1
  149. package/rules/ast-grep-rules/rule-tests-disabled/filter-then-map-js-test.yml +12 -0
  150. package/rules/ast-grep-rules/rule-tests-disabled/filter-then-map-test.yml +25 -0
  151. package/rules/ast-grep-rules/rules/no-accumulating-spread-js.yml +49 -1
  152. package/rules/ast-grep-rules/rules/ts-redundant-filter-map.yml +9 -1
  153. package/rules/ast-grep-rules/rules-disabled/filter-then-map-js.yml +17 -0
  154. package/rules/ast-grep-rules/rules-disabled/filter-then-map.yml +36 -0
  155. package/rules/ast-grep-rules/self-scan-baseline.json +1 -1
  156. package/dist/chunk-46TNM7XZ.js +0 -88
  157. package/dist/chunk-72OKUXSD.js +0 -31
  158. package/dist/chunk-7GLOLOSH.js +0 -57
  159. package/dist/chunk-AKUUMGD5.js +0 -26
  160. package/dist/chunk-ASUXV767.js +0 -22
  161. package/dist/chunk-CTADOKYM.js +0 -25
  162. package/dist/chunk-JJ2RRESP.js +0 -58
  163. package/dist/chunk-LSC3VADM.js +0 -23
  164. package/dist/chunk-SHLDT3OI.js +0 -27
  165. package/dist/chunk-UF7RTZSO.js +0 -27
  166. package/dist/chunk-W4WP2ERB.js +0 -30
  167. package/dist/chunk-YES5CACN.js +0 -73
@@ -2,18 +2,18 @@ import { createRequire as __pilensCreateRequire } from "node:module"; const requ
2
2
  import {
3
3
  createAvailabilityProbeFlight,
4
4
  probeToolAsync
5
- } from "./chunk-3F6BMY53.js";
5
+ } from "./chunk-JBP7KESM.js";
6
6
  import {
7
7
  classifyProbeFailure,
8
8
  createAvailabilityLatch,
9
9
  logAvailabilityDecision,
10
10
  startHostStallSampler
11
- } from "./chunk-KW5JQPO5.js";
11
+ } from "./chunk-JZRP4DGP.js";
12
12
  import {
13
13
  createGenerationSource,
14
14
  isUntrustedProjectPath,
15
15
  recordProjectCommandRefusal
16
- } from "./chunk-YVHBNSME.js";
16
+ } from "./chunk-WMDUT4KH.js";
17
17
  import {
18
18
  createSingleFlight
19
19
  } from "./chunk-AWQWXSW4.js";
@@ -4,10 +4,10 @@ import {
4
4
  getOwnedLspService,
5
5
  peekOwnedLspService,
6
6
  resetOwnedLspService
7
- } from "./chunk-F5Z6URKM.js";
8
- import "./chunk-Z2XAOKHK.js";
9
- import "./chunk-VSFLRN5Y.js";
10
- import "./chunk-PQJFG24Z.js";
7
+ } from "./chunk-VOXTCULR.js";
8
+ import "./chunk-565VRUP4.js";
9
+ import "./chunk-VLQ7UKZH.js";
10
+ import "./chunk-GMROJJRN.js";
11
11
  import "./chunk-NXL4FFQQ.js";
12
12
  export {
13
13
  configureLspServiceLifecycle,
@@ -4,17 +4,18 @@ import {
4
4
  readCargoDependencyNames,
5
5
  readCargoPackageName,
6
6
  readCargoWorkspaceMembers
7
- } from "./chunk-ZKXQKGWZ.js";
7
+ } from "./chunk-WC6WRNQT.js";
8
8
  import {
9
9
  getProjectIgnoreMatcher,
10
10
  isExcludedDirName
11
- } from "./chunk-YVHBNSME.js";
11
+ } from "./chunk-WMDUT4KH.js";
12
12
  import {
13
13
  getWorkspaceManifestMarkers
14
- } from "./chunk-J6JP25XU.js";
14
+ } from "./chunk-SQC7K3SP.js";
15
15
  import {
16
- normalizeMapKey
17
- } from "./chunk-PQJFG24Z.js";
16
+ normalizeMapKey,
17
+ toPosix
18
+ } from "./chunk-GMROJJRN.js";
18
19
 
19
20
  // dist/clients/review-graph/workspace-modules.js
20
21
  import * as fs from "node:fs";
@@ -77,7 +78,7 @@ function normalizeWorkspacePatterns(value) {
77
78
  return [];
78
79
  }
79
80
  function expandWorkspacePattern(cwd, pattern) {
80
- const normalized = stripQuotes(pattern.trim()).replace(/\\/g, "/");
81
+ const normalized = toPosix(stripQuotes(pattern.trim()));
81
82
  if (!normalized || normalized.startsWith("!"))
82
83
  return [];
83
84
  const starIndex = normalized.indexOf("*");
@@ -136,7 +137,7 @@ function moduleFromPackageJson(cwd, pkgRoot) {
136
137
  return {
137
138
  name: pkgJson.name,
138
139
  root: normalizeMapKey(pkgRoot),
139
- relativePath: path.relative(cwd, pkgRoot).replace(/\\/g, "/"),
140
+ relativePath: toPosix(path.relative(cwd, pkgRoot)),
140
141
  entrypoints: pkgJson.main ? [pkgJson.main] : ["index.js"],
141
142
  internalDeps: [],
142
143
  externalDeps: depsFromPackageJson(pkgJson)
@@ -183,7 +184,7 @@ function scanCargoModules(cwd) {
183
184
  modules.push({
184
185
  name,
185
186
  root: normalizeMapKey(pkgRoot),
186
- relativePath: path.relative(cwd, pkgRoot).replace(/\\/g, "/"),
187
+ relativePath: toPosix(path.relative(cwd, pkgRoot)),
187
188
  entrypoints: ["src/lib.rs", "src/main.rs"],
188
189
  internalDeps: [],
189
190
  externalDeps: deps
@@ -216,7 +217,7 @@ function scanGoModules(cwd) {
216
217
  modules.push({
217
218
  name,
218
219
  root: normalizeMapKey(pkgRoot),
219
- relativePath: path.relative(cwd, pkgRoot).replace(/\\/g, "/"),
220
+ relativePath: toPosix(path.relative(cwd, pkgRoot)),
220
221
  entrypoints: ["."],
221
222
  internalDeps: [],
222
223
  externalDeps: []
@@ -2,10 +2,10 @@ import { createRequire as __pilensCreateRequire } from "node:module"; const requ
2
2
  import {
3
3
  DEFAULT_MAX_OUTPUT_BYTES,
4
4
  writeFileAtomic
5
- } from "./chunk-U5HPROLA.js";
5
+ } from "./chunk-JE6HKLC7.js";
6
6
  import {
7
7
  incrementDegradationCount
8
- } from "./chunk-WME2OQST.js";
8
+ } from "./chunk-2453RRJ2.js";
9
9
 
10
10
  // dist/clients/mcp/ipc.js
11
11
  import * as crypto from "node:crypto";
@@ -4,32 +4,33 @@ import {
4
4
  discoverManagedTool,
5
5
  getManagedToolEnvironment,
6
6
  resolveAvailableOrInstall
7
- } from "./chunk-7E2563GA.js";
7
+ } from "./chunk-ZFORSIED.js";
8
8
  import {
9
9
  mapWithConcurrency
10
10
  } from "./chunk-XIMYZ3JA.js";
11
11
  import {
12
12
  findNodeToolBinary
13
- } from "./chunk-NA7SEXHE.js";
13
+ } from "./chunk-VOP4PJKA.js";
14
14
  import {
15
15
  getIsolatedNpxSpawnOptions
16
- } from "./chunk-3F6BMY53.js";
16
+ } from "./chunk-JBP7KESM.js";
17
17
  import {
18
18
  createAvailabilityLatch
19
- } from "./chunk-KW5JQPO5.js";
19
+ } from "./chunk-JZRP4DGP.js";
20
20
  import {
21
21
  safeSpawnAsync
22
- } from "./chunk-YVHBNSME.js";
22
+ } from "./chunk-WMDUT4KH.js";
23
23
  import {
24
24
  compareOrdinal,
25
25
  recordDegradationOnce
26
- } from "./chunk-WME2OQST.js";
26
+ } from "./chunk-2453RRJ2.js";
27
27
  import {
28
28
  createSubsystemLogger
29
- } from "./chunk-KXF5R4UN.js";
29
+ } from "./chunk-WQV6BI4Q.js";
30
30
  import {
31
- isFullyQualified
32
- } from "./chunk-PQJFG24Z.js";
31
+ isFullyQualified,
32
+ isUnderDir
33
+ } from "./chunk-GMROJJRN.js";
33
34
 
34
35
  // dist/clients/dependency-checker.js
35
36
  import * as fs from "node:fs";
@@ -73,16 +74,12 @@ function parseMadgeCycles(stdout, baseDir, projectRoot) {
73
74
  var MADGE_BATCH_CONCURRENCY = 6;
74
75
  var MADGE_STATS_TARGET_CAP = 12;
75
76
  var MADGE_STATS_TARGET_MIN_DURATION_MS = 100;
76
- function isWithin(dir, target) {
77
- const rel = path.relative(dir, target);
78
- return rel !== "" && !rel.startsWith("..") && !path.isAbsolute(rel);
79
- }
80
77
  function classifyMadgeKind(resolved, managedToolsDir, projectRoot) {
81
78
  if (!isFullyQualified(resolved))
82
79
  return "path";
83
- if (isWithin(managedToolsDir, resolved))
80
+ if (isUnderDir(resolved, managedToolsDir))
84
81
  return "managed";
85
- if (isWithin(projectRoot, resolved))
82
+ if (isUnderDir(resolved, projectRoot))
86
83
  return "local";
87
84
  return "global";
88
85
  }
@@ -1,10 +1,10 @@
1
1
  import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
2
2
  import {
3
3
  resolveOpengrepRulePack
4
- } from "./chunk-O4BJFESU.js";
4
+ } from "./chunk-5RNB4HVK.js";
5
5
  import {
6
6
  findLocalToolConfig
7
- } from "./chunk-PQJFG24Z.js";
7
+ } from "./chunk-GMROJJRN.js";
8
8
 
9
9
  // dist/clients/opengrep-config.js
10
10
  import * as path from "node:path";
@@ -1,37 +1,37 @@
1
1
  import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
2
2
  import {
3
3
  parseJsonc
4
- } from "./chunk-PKES3ISE.js";
4
+ } from "./chunk-7ANZ7XDD.js";
5
5
  import {
6
6
  extractTomlTableSection,
7
7
  hasTomlTable,
8
8
  parseTomlScalarString,
9
9
  parseTomlStringArray
10
- } from "./chunk-ZKXQKGWZ.js";
10
+ } from "./chunk-WC6WRNQT.js";
11
11
  import {
12
12
  resolveLanguage
13
- } from "./chunk-YISME6ON.js";
13
+ } from "./chunk-PPKECBPP.js";
14
14
  import {
15
15
  getProjectTrustState
16
- } from "./chunk-U5HPROLA.js";
16
+ } from "./chunk-JE6HKLC7.js";
17
17
  import {
18
18
  incrementDegradationCount,
19
19
  recordDegradationOnce
20
- } from "./chunk-WME2OQST.js";
20
+ } from "./chunk-2453RRJ2.js";
21
21
  import {
22
22
  logExtension
23
- } from "./chunk-KXF5R4UN.js";
23
+ } from "./chunk-WQV6BI4Q.js";
24
24
  import {
25
25
  logLatency
26
- } from "./chunk-Z2XAOKHK.js";
26
+ } from "./chunk-565VRUP4.js";
27
27
  import {
28
28
  UV_WORKSPACE_EXCLUDE_DIALECT,
29
29
  UV_WORKSPACE_MEMBERS_DIALECT,
30
30
  matchesWorkspaceMemberPattern,
31
31
  realpathOrResolve,
32
- toPosix,
32
+ relativeInside,
33
33
  walkUpDirs
34
- } from "./chunk-PQJFG24Z.js";
34
+ } from "./chunk-GMROJJRN.js";
35
35
 
36
36
  // dist/clients/bounded-telemetry.js
37
37
  var MAX_TRACKED_TURN_CAPS = 64;
@@ -145,10 +145,9 @@ async function findUvWorkspace(startDir, homeDir) {
145
145
  } : void 0;
146
146
  }
147
147
  function isUvWorkspaceMember(workspace, projectRoot) {
148
- const relative = toPosix(path.relative(workspace.root, projectRoot));
149
- if (relative.length === 0 || relative === ".." || relative.startsWith("../") || path.isAbsolute(relative)) {
148
+ const relative = relativeInside(workspace.root, projectRoot);
149
+ if (!relative)
150
150
  return false;
151
- }
152
151
  const matches = (dialect) => (pattern) => matchesWorkspaceMemberPattern(pattern, relative, dialect, () => recordDegradationOnce({
153
152
  kind: "workspace-glob-cap",
154
153
  subject: String(pattern.length),
@@ -161,6 +160,11 @@ var PROJECT_SOURCED_PYTHON_SOURCES = /* @__PURE__ */ new Set([
161
160
  "project-venv",
162
161
  "uv-workspace"
163
162
  ]);
163
+ var PROJECT_VENV_DIRS = [
164
+ { dir: ".venv", source: "project-dot-venv" },
165
+ { dir: "venv", source: "project-venv" }
166
+ ];
167
+ var PROJECT_VENV_DIR_NAMES = PROJECT_VENV_DIRS.map((venv) => venv.dir);
164
168
  var AMBIENT_ENVIRONMENT_VARIABLES = {
165
169
  "uv-project-environment": "UV_PROJECT_ENVIRONMENT",
166
170
  "virtual-env": "VIRTUAL_ENV",
@@ -178,10 +182,7 @@ async function detectPythonEnvironment(projectRoot, homeDir = os.homedir(), opti
178
182
  const uvProjectEnvironment = process.env.UV_PROJECT_ENVIRONMENT;
179
183
  const allowAmbient = options.allowAmbient ?? true;
180
184
  const isWithinProjectRoot = (candidateRoot) => {
181
- const relative = path.relative(root, realpathOrResolve(candidateRoot));
182
- return relative !== ".." && !relative.startsWith(`..${path.sep}`) && // #3871 V1: another Windows drive has no relative path, so
183
- // `path.relative` returns the absolute target: no `..`, not inside.
184
- !path.isAbsolute(relative);
185
+ return relativeInside(root, realpathOrResolve(candidateRoot)) !== void 0;
185
186
  };
186
187
  const candidates = [
187
188
  ...uvEnvironmentRoot !== void 0 && uvProjectEnvironment ? [
@@ -200,8 +201,10 @@ async function detectPythonEnvironment(projectRoot, homeDir = os.homedir(), opti
200
201
  ] : [],
201
202
  { root: process.env.VIRTUAL_ENV, source: "virtual-env" },
202
203
  { root: process.env.CONDA_PREFIX, source: "conda" },
203
- { root: path.join(root, ".venv"), source: "project-dot-venv" },
204
- { root: path.join(root, "venv"), source: "project-venv" }
204
+ ...PROJECT_VENV_DIRS.map((venv) => ({
205
+ root: path.join(root, venv.dir),
206
+ source: venv.source
207
+ }))
205
208
  ];
206
209
  for (const candidate of candidates) {
207
210
  if (!candidate.root)
@@ -493,6 +496,7 @@ async function detectPythonTargetVersion(filePath, homeDir = os.homedir()) {
493
496
  export {
494
497
  emitBounded,
495
498
  resetBoundedTelemetry,
499
+ PROJECT_VENV_DIR_NAMES,
496
500
  hasAmbientPythonEnvironment,
497
501
  detectPythonEnvironment,
498
502
  augmentPythonEnvironment,
@@ -1,18 +1,18 @@
1
1
  import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
2
2
  import {
3
3
  withFactTree
4
- } from "./chunk-WDBICWH3.js";
4
+ } from "./chunk-7TNILKGY.js";
5
5
  import {
6
6
  childrenOfType,
7
7
  firstChildOfType,
8
8
  walk
9
- } from "./chunk-L5JYIU47.js";
9
+ } from "./chunk-BHWW6FAX.js";
10
10
  import {
11
11
  isJstsFactFile
12
- } from "./chunk-RZOXUSPC.js";
12
+ } from "./chunk-G5GV2Q7K.js";
13
13
  import {
14
14
  logLatency
15
- } from "./chunk-Z2XAOKHK.js";
15
+ } from "./chunk-565VRUP4.js";
16
16
 
17
17
  // dist/clients/dispatch/facts/import-facts.js
18
18
  function importFactsApplyTo(filePath) {
@@ -1,10 +1,10 @@
1
1
  import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
2
2
  import {
3
3
  findNearestDirWithMarker
4
- } from "./chunk-J6JP25XU.js";
4
+ } from "./chunk-SQC7K3SP.js";
5
5
  import {
6
6
  isWindowsPath
7
- } from "./chunk-PQJFG24Z.js";
7
+ } from "./chunk-GMROJJRN.js";
8
8
 
9
9
  // dist/clients/file-kinds.js
10
10
  import { basename, extname, win32 } from "node:path";
@@ -3,29 +3,29 @@ import {
3
3
  shouldRecurseIntoDir,
4
4
  walkTreeRecursiveSync,
5
5
  walkTreeStackAsync
6
- } from "./chunk-ZGSJDWQU.js";
6
+ } from "./chunk-O2ARHQKF.js";
7
7
  import {
8
8
  getProjectIgnoreMatcher
9
- } from "./chunk-YVHBNSME.js";
9
+ } from "./chunk-WMDUT4KH.js";
10
10
  import {
11
11
  KIND_EXTENSIONS,
12
12
  isCodeKindFile
13
- } from "./chunk-RZOXUSPC.js";
13
+ } from "./chunk-G5GV2Q7K.js";
14
14
  import {
15
15
  classifyGeneratedOrArtifactDetailed,
16
16
  isDeclarationFile
17
- } from "./chunk-KPPJTH44.js";
17
+ } from "./chunk-X35S7HSB.js";
18
18
  import {
19
19
  logLatency
20
- } from "./chunk-Z2XAOKHK.js";
20
+ } from "./chunk-565VRUP4.js";
21
21
  import {
22
22
  toPositiveFinite
23
- } from "./chunk-VSFLRN5Y.js";
23
+ } from "./chunk-VLQ7UKZH.js";
24
24
  import {
25
25
  BoundedLruCache,
26
26
  normalizeEphemeralMapKey,
27
27
  normalizeFilePath
28
- } from "./chunk-PQJFG24Z.js";
28
+ } from "./chunk-GMROJJRN.js";
29
29
 
30
30
  // dist/clients/source-filter.js
31
31
  import * as fs2 from "node:fs";
@@ -0,0 +1,27 @@
1
+ import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
2
+ import {
3
+ GoClient,
4
+ goClient,
5
+ resetGoAvailability
6
+ } from "./chunk-3O5EII3W.js";
7
+ import "./chunk-BUZIQDFS.js";
8
+ import "./chunk-JBP7KESM.js";
9
+ import "./chunk-JZRP4DGP.js";
10
+ import "./chunk-WMDUT4KH.js";
11
+ import "./chunk-AWQWXSW4.js";
12
+ import "./chunk-X35S7HSB.js";
13
+ import "./chunk-SQC7K3SP.js";
14
+ import "./chunk-JE6HKLC7.js";
15
+ import "./chunk-2453RRJ2.js";
16
+ import "./chunk-WQV6BI4Q.js";
17
+ import "./chunk-S26LC76R.js";
18
+ import "./chunk-565VRUP4.js";
19
+ import "./chunk-VLQ7UKZH.js";
20
+ import "./chunk-LJDODBBZ.js";
21
+ import "./chunk-GMROJJRN.js";
22
+ import "./chunk-NXL4FFQQ.js";
23
+ export {
24
+ GoClient,
25
+ goClient,
26
+ resetGoAvailability
27
+ };
@@ -1,19 +1,20 @@
1
1
  import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
2
2
  import {
3
3
  getProjectDataDir
4
- } from "./chunk-YVHBNSME.js";
4
+ } from "./chunk-WMDUT4KH.js";
5
5
  import {
6
6
  createNdjsonLogger,
7
7
  getGlobalPiLensLogDir,
8
8
  getProcessSingleton,
9
9
  getTurnId,
10
10
  isTestMode
11
- } from "./chunk-VSFLRN5Y.js";
11
+ } from "./chunk-VLQ7UKZH.js";
12
12
  import {
13
13
  BoundedFifoMap,
14
14
  normalizeFilePath,
15
- normalizeMapKey
16
- } from "./chunk-PQJFG24Z.js";
15
+ normalizeMapKey,
16
+ toPosix
17
+ } from "./chunk-GMROJJRN.js";
17
18
 
18
19
  // dist/clients/hashline-anchor.js
19
20
  var HASHLINE_ANCHOR_LENGTH = 3;
@@ -158,7 +159,7 @@ function hashText(value, length = FINDING_ID_HASH_LENGTH) {
158
159
  function relativeFile(filePath, cwd) {
159
160
  const canonicalCwd = normalizeMapKey(cwd);
160
161
  const canonicalFile = normalizeMapKey(filePath);
161
- const rel = path2.relative(canonicalCwd, canonicalFile).replace(/\\/g, "/");
162
+ const rel = toPosix(path2.relative(canonicalCwd, canonicalFile));
162
163
  return rel && !rel.startsWith("..") ? rel : canonicalFile;
163
164
  }
164
165
  function stableFindingId(prefix, args) {