pi-lens 4.4.7 → 4.4.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-USER.md +31 -0
- package/CHANGELOG.md +327 -0
- package/README.md +13 -2
- package/config/dependency-cruiser-eager-allowlist.json +1 -1
- package/config/markdownlint/run-no-fix.mjs +36 -0
- package/dist/{chunk-4LM3VAZH.js → chunk-2VZ3VN3N.js} +2 -2
- package/dist/{chunk-PUZ3E2J4.js → chunk-3HTZDY3C.js} +8 -6
- package/dist/{chunk-RORGS5II.js → chunk-3NPWO5UO.js} +7 -13
- package/dist/{chunk-MNJIXFX4.js → chunk-47UCC4MM.js} +1 -1
- package/dist/chunk-4ENEJHF4.js +198 -0
- package/dist/chunk-5GEYJJHG.js +22 -0
- package/dist/{chunk-U6VN4NVL.js → chunk-5YSEQHJN.js} +3 -3
- package/dist/{chunk-6IR3ZYIB.js → chunk-6GPB3JLL.js} +3 -3
- package/dist/{chunk-MB6PXBUA.js → chunk-7R5GZIA6.js} +7 -15
- package/dist/{chunk-DH5JPM3K.js → chunk-7UTSNTWM.js} +10 -9
- package/dist/{chunk-24BILSZW.js → chunk-7YTRG6YW.js} +2 -2
- package/dist/{chunk-KW5JQPO5.js → chunk-AACN5GNE.js} +2 -2
- package/dist/{chunk-PKES3ISE.js → chunk-ACRJ2GZ5.js} +2 -2
- package/dist/{chunk-4ZYJHQMB.js → chunk-C3YRO3EU.js} +10 -12
- package/dist/{chunk-PQJFG24Z.js → chunk-CB7PEVOJ.js} +1300 -946
- package/dist/{chunk-ABPKUVA4.js → chunk-CDFJF5YD.js} +1 -1
- package/dist/{chunk-T7A2HK2B.js → chunk-CJS6WE66.js} +17 -18
- package/dist/{chunk-3YY7IXIL.js → chunk-CM6BDY4E.js} +14 -60
- package/dist/{chunk-RZOXUSPC.js → chunk-CZCAZVTD.js} +16 -2
- package/dist/chunk-DGKFWQK4.js +23 -0
- package/dist/{chunk-NA7SEXHE.js → chunk-E65WJVI5.js} +7 -9
- package/dist/{chunk-2TF6RXWB.js → chunk-EKNYSXFB.js} +8 -10
- package/dist/{chunk-RRV3FNNM.js → chunk-EY6LY2HO.js} +27 -30
- package/dist/{chunk-LBLBAFG3.js → chunk-F6BEQWAK.js} +17 -5
- package/dist/{chunk-4L36HG27.js → chunk-FGNSESAC.js} +12 -14
- package/dist/{chunk-3FRLWYBG.js → chunk-FRUBVFXV.js} +39 -42
- package/dist/{chunk-FB5SCCPT.js → chunk-G22UNQID.js} +14 -15
- package/dist/{chunk-LV4UMYVH.js → chunk-GQTQUNCG.js} +26 -27
- package/dist/{chunk-E7HJ56Y7.js → chunk-H3BVMK47.js} +64 -73
- package/dist/chunk-H6FLQ5NW.js +28 -0
- package/dist/{chunk-QHSNL7B2.js → chunk-HEA3EM23.js} +15 -19
- package/dist/{chunk-AWDSEDER.js → chunk-HSOBIN22.js} +2 -2
- package/dist/{chunk-EAOK7MIZ.js → chunk-HYSKJMZK.js} +17 -4
- package/dist/{chunk-VUZWQ7UG.js → chunk-IICERRFF.js} +46 -72
- package/dist/{chunk-OXOI55RU.js → chunk-IILEH3ZC.js} +8 -10
- package/dist/{chunk-ZKXQKGWZ.js → chunk-J3Q2NYJR.js} +4 -3
- package/dist/{chunk-YHC2O2WO.js → chunk-JUZ67QZQ.js} +20 -9
- package/dist/chunk-KR5VGMVT.js +25 -0
- package/dist/{chunk-F7K5IBZG.js → chunk-KV6GQOGN.js} +41 -44
- package/dist/{chunk-SNDXCFRS.js → chunk-KXMJLOZF.js} +25 -23
- package/dist/{chunk-CB4WHS4H.js → chunk-L4Y3ROKQ.js} +3 -3
- package/dist/{chunk-3F6BMY53.js → chunk-L6WBJGQS.js} +1 -1
- package/dist/{chunk-MPKRJBPK.js → chunk-L7O774U7.js} +30 -32
- package/dist/{chunk-URCQWAQ4.js → chunk-LAHHGNAY.js} +21 -21
- package/dist/{chunk-V63BC55Q.js → chunk-LT62P654.js} +1 -1
- package/dist/{chunk-ZMAUPOMG.js → chunk-LWOM6LVS.js} +34 -34
- package/dist/{chunk-HO6LWE2E.js → chunk-MKPDIAZH.js} +21 -1
- package/dist/{chunk-2PHMIAKO.js → chunk-MN635QYA.js} +3 -4
- package/dist/{chunk-KDX35VXP.js → chunk-MQ4PPCJB.js} +166 -149
- package/dist/{chunk-QOE342SU.js → chunk-MRLH4MYU.js} +2 -2
- package/dist/{chunk-CE6VMBCB.js → chunk-N56BNAA6.js} +20 -21
- package/dist/{chunk-L3CMBQMH.js → chunk-N5CEGQPG.js} +14 -17
- package/dist/{chunk-7E2563GA.js → chunk-NCLO6E6N.js} +13 -33
- package/dist/{chunk-J6JP25XU.js → chunk-NL5LSKVD.js} +4 -3
- package/dist/{chunk-U7BD2QL7.js → chunk-NMUSOZ2D.js} +10 -12
- package/dist/{chunk-BZARLRJW.js → chunk-NOWH2VA2.js} +8 -33
- package/dist/{chunk-U2SDMG7C.js → chunk-NUSXS6YB.js} +6 -5
- package/dist/{chunk-ZJTT47IG.js → chunk-OSEKJEUU.js} +2 -2
- package/dist/{chunk-FZKFVUEC.js → chunk-OUYAUXAT.js} +647 -355
- package/dist/{chunk-ZE3KXHS7.js → chunk-PBZNYHMM.js} +84 -4
- package/dist/{chunk-U5HPROLA.js → chunk-PIIUNJIT.js} +2 -4
- package/dist/chunk-PKLB2XJL.js +8 -0
- package/dist/{chunk-RC2Z6K47.js → chunk-PRHYIA6X.js} +15 -6
- package/dist/{chunk-RQS4QQSD.js → chunk-PXQ45SGD.js} +2 -2
- package/dist/chunk-Q6JQKWPK.js +25 -0
- package/dist/{chunk-F6X3YJWD.js → chunk-QB7T2PHK.js} +2 -2
- package/dist/{chunk-TIQJPRDD.js → chunk-QGITU23N.js} +3 -2
- package/dist/chunk-QJJKOHLH.js +57 -0
- package/dist/{chunk-4LOE5R5P.js → chunk-QP33NKYC.js} +18 -15
- package/dist/{chunk-N5WSK2K7.js → chunk-QVBOXT3L.js} +12 -17
- package/dist/{chunk-DPGEAHZT.js → chunk-RNJFRXEN.js} +10 -18
- package/dist/{chunk-EKWX4WD3.js → chunk-RNXOWDM6.js} +10 -10
- package/dist/{chunk-O4BJFESU.js → chunk-RTFMDIKV.js} +1 -1
- package/dist/{chunk-LS3QJRUB.js → chunk-SIQHOB6P.js} +11 -13
- package/dist/{chunk-3K2F6UDZ.js → chunk-SLSMJPEF.js} +43 -42
- package/dist/chunk-T5QSLSMM.js +50 -0
- package/dist/chunk-TGQDAG4B.js +88 -0
- package/dist/{chunk-4YHYPW2G.js → chunk-THYHUIDR.js} +44 -13
- package/dist/{chunk-YVHBNSME.js → chunk-TMNUTMT5.js} +1099 -1100
- package/dist/{chunk-WDBICWH3.js → chunk-TOE2RRCS.js} +1 -1
- package/dist/chunk-TYHPVE5H.js +25 -0
- package/dist/chunk-UAKO2M6B.js +73 -0
- package/dist/chunk-UC5AXW5Z.js +20 -0
- package/dist/chunk-UTJP6WOS.js +28 -0
- package/dist/{chunk-DQZFQSR5.js → chunk-UXTQ3QPD.js} +4 -4
- package/dist/chunk-UYXV5NIS.js +20 -0
- package/dist/{chunk-KKCK636N.js → chunk-V2WDBOLZ.js} +10 -12
- package/dist/{chunk-PR6PO3ES.js → chunk-V67D6TMU.js} +22 -20
- package/dist/{chunk-VSFLRN5Y.js → chunk-VCRVNLE7.js} +135 -2
- package/dist/{chunk-CPSR3AVL.js → chunk-VO4JFPTV.js} +2 -2
- package/dist/{chunk-XT2HTCJ5.js → chunk-VWLSU3XV.js} +6 -5
- package/dist/{chunk-WME2OQST.js → chunk-W5E72HJA.js} +66 -24
- package/dist/{chunk-LLS45EWB.js → chunk-W7TY6HYX.js} +6 -8
- package/dist/{chunk-CCV2EU7T.js → chunk-WSSLVMDA.js} +12 -13
- package/dist/{chunk-YISME6ON.js → chunk-WTB4GKMH.js} +10 -1
- package/dist/{chunk-KPPJTH44.js → chunk-X5BJ3G2P.js} +64 -35
- package/dist/{chunk-JMEKXFOL.js → chunk-XKFO2SZV.js} +39 -34
- package/dist/{chunk-HR3OJ3TH.js → chunk-XLAI7UYY.js} +84 -31
- package/dist/{chunk-H7OR7DFZ.js → chunk-XO756WE5.js} +53 -37
- package/dist/{chunk-F5Z6URKM.js → chunk-XVB3Q2PG.js} +2 -4
- package/dist/{chunk-R5MOQM2H.js → chunk-YOXCCJDF.js} +607 -366
- package/dist/{chunk-ZGSJDWQU.js → chunk-ZCQBNPRH.js} +2 -2
- package/dist/chunk-ZD4KVFXI.js +234 -0
- package/dist/{chunk-WGRJOXED.js → chunk-ZDMFGACN.js} +1295 -966
- package/dist/{chunk-OSTKYB55.js → chunk-ZMMHHXSW.js} +1 -1
- package/dist/{chunk-75GAYVNO.js → chunk-ZPM7ZIFL.js} +6 -6
- package/dist/{chunk-LUBPZN36.js → chunk-ZVCDHYWZ.js} +9 -11
- package/dist/{chunk-Y7F7IEE3.js → chunk-ZZN74OGD.js} +102 -7
- package/dist/{chunk-L5JYIU47.js → chunk-ZZSJAR76.js} +39 -20
- package/dist/index.js +10933 -8644
- package/dist/mcp/analyze-cli.js +12 -17
- package/dist/mcp/cli.js +43 -42
- package/dist/mcp/server.js +3073 -1147
- package/dist/mcp/worker.js +61 -61
- package/dist/probes/installer.js +18 -19
- package/docs/adr/0003-git-guard-latch-writer.md +11 -6
- package/docs/agent-tools.md +58 -16
- package/docs/alignment-families.md +29 -0
- package/docs/analysisall.md +1 -1
- package/docs/ast-grep_rules_catalog.md +6 -4
- package/docs/ci-bot-pr-checks.md +128 -0
- package/docs/configuration.md +150 -12
- package/docs/defect-shapes.md +107 -15
- package/docs/engineering-principles.md +27 -2
- package/docs/environment-variables.md +18 -1
- package/docs/features.md +14 -7
- package/docs/globalconfig.md +11 -3
- package/docs/invariants/git-guard-host.md +7 -3
- package/docs/invariants/language-config.md +15 -4
- package/docs/invariants/lsp-trust-exec.md +25 -4
- package/docs/invariants/paths-os.md +4 -2
- package/docs/invariants/session-telemetry.md +2 -2
- package/docs/language-coverage.md +1 -0
- package/docs/lsp-capability-matrix.md +167 -65
- package/docs/lsp-idle-eviction.md +4 -1
- package/docs/merge-queue-rollout.md +10 -8
- package/docs/module-report-read-symbol.md +34 -23
- package/docs/pi-lens-fixer.md +34 -17
- package/docs/pi-lens-investigator.md +3 -0
- package/docs/pi-lens-merge-policy.md +34 -17
- package/docs/pi-lens-monitor.md +9 -0
- package/docs/pi-lens-orchestration.md +4 -1
- package/docs/pi-lens-reviewer.md +6 -6
- package/docs/pi-lens-subagent.md +19 -3
- package/docs/public-api-stability.md +57 -7
- package/docs/release-qa-baseline.md +7 -4
- package/docs/schema/pi-lens-config-v1.json +21 -2
- package/docs/servercapabilities.md +3 -1
- package/docs/settings.md +11 -7
- package/docs/word-index.md +20 -7
- package/package.json +11 -4
- package/rules/ast-grep-rules/rule-tests/no-accumulating-spread-js-test.yml +37 -0
- package/rules/ast-grep-rules/rule-tests/ts-redundant-filter-map-test.yml +12 -1
- package/rules/ast-grep-rules/rule-tests-disabled/filter-then-map-js-test.yml +12 -0
- package/rules/ast-grep-rules/rule-tests-disabled/filter-then-map-test.yml +25 -0
- package/rules/ast-grep-rules/rules/no-accumulating-spread-js.yml +49 -1
- package/rules/ast-grep-rules/rules/no-sql-in-code-execute-js.yml +1 -2
- package/rules/ast-grep-rules/rules/no-sql-in-code-execute.yml +1 -2
- package/rules/ast-grep-rules/rules/ts-redundant-filter-map.yml +9 -1
- package/rules/ast-grep-rules/rules-disabled/filter-then-map-js.yml +17 -0
- package/rules/ast-grep-rules/rules-disabled/filter-then-map.yml +36 -0
- package/rules/ast-grep-rules/self-scan-baseline.json +1 -1
- package/scripts/download-grammars.js +3 -2
- package/skills/pi-lens-lsp-navigation/SKILL.md +5 -1
- package/dist/chunk-46TNM7XZ.js +0 -88
- package/dist/chunk-72OKUXSD.js +0 -31
- package/dist/chunk-7GLOLOSH.js +0 -57
- package/dist/chunk-AKUUMGD5.js +0 -26
- package/dist/chunk-ASUXV767.js +0 -22
- package/dist/chunk-CTADOKYM.js +0 -25
- package/dist/chunk-GNSIWBAT.js +0 -106
- package/dist/chunk-HWDAVBFU.js +0 -49
- package/dist/chunk-JJ2RRESP.js +0 -58
- package/dist/chunk-KXF5R4UN.js +0 -48
- package/dist/chunk-LSC3VADM.js +0 -23
- package/dist/chunk-OE5ZBP7F.js +0 -443
- package/dist/chunk-SHLDT3OI.js +0 -27
- package/dist/chunk-UF7RTZSO.js +0 -27
- package/dist/chunk-W4WP2ERB.js +0 -30
- package/dist/chunk-YES5CACN.js +0 -73
- package/dist/chunk-Z2XAOKHK.js +0 -136
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
withTreeSitterRoot
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ZZSJAR76.js";
|
|
5
5
|
|
|
6
6
|
// dist/clients/dispatch/facts/tree-sitter-facts.js
|
|
7
7
|
var withFactTree = withTreeSitterRoot;
|
|
@@ -0,0 +1,25 @@
|
|
|
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-2VZ3VN3N.js";
|
|
7
|
+
import "./chunk-L4Y3ROKQ.js";
|
|
8
|
+
import "./chunk-L6WBJGQS.js";
|
|
9
|
+
import "./chunk-AACN5GNE.js";
|
|
10
|
+
import "./chunk-TMNUTMT5.js";
|
|
11
|
+
import "./chunk-AWQWXSW4.js";
|
|
12
|
+
import "./chunk-X5BJ3G2P.js";
|
|
13
|
+
import "./chunk-NL5LSKVD.js";
|
|
14
|
+
import "./chunk-PIIUNJIT.js";
|
|
15
|
+
import "./chunk-W5E72HJA.js";
|
|
16
|
+
import "./chunk-S26LC76R.js";
|
|
17
|
+
import "./chunk-VCRVNLE7.js";
|
|
18
|
+
import "./chunk-LJDODBBZ.js";
|
|
19
|
+
import "./chunk-CB7PEVOJ.js";
|
|
20
|
+
import "./chunk-NXL4FFQQ.js";
|
|
21
|
+
export {
|
|
22
|
+
GoClient,
|
|
23
|
+
goClient,
|
|
24
|
+
resetGoAvailability
|
|
25
|
+
};
|
|
@@ -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-OUYAUXAT.js";
|
|
13
|
+
import "./chunk-VWLSU3XV.js";
|
|
14
|
+
import "./chunk-XIMYZ3JA.js";
|
|
15
|
+
import "./chunk-YOXCCJDF.js";
|
|
16
|
+
import "./chunk-7YTRG6YW.js";
|
|
17
|
+
import "./chunk-V67D6TMU.js";
|
|
18
|
+
import "./chunk-LT62P654.js";
|
|
19
|
+
import "./chunk-PRHYIA6X.js";
|
|
20
|
+
import "./chunk-XVB3Q2PG.js";
|
|
21
|
+
import "./chunk-L7O774U7.js";
|
|
22
|
+
import "./chunk-7UTSNTWM.js";
|
|
23
|
+
import "./chunk-ACRJ2GZ5.js";
|
|
24
|
+
import "./chunk-J3Q2NYJR.js";
|
|
25
|
+
import "./chunk-ZZSJAR76.js";
|
|
26
|
+
import "./chunk-Z54ZSOBZ.js";
|
|
27
|
+
import "./chunk-5YSEQHJN.js";
|
|
28
|
+
import "./chunk-QGITU23N.js";
|
|
29
|
+
import "./chunk-WTB4GKMH.js";
|
|
30
|
+
import "./chunk-6HWVI6MI.js";
|
|
31
|
+
import "./chunk-RTFMDIKV.js";
|
|
32
|
+
import "./chunk-CKEQFGLT.js";
|
|
33
|
+
import "./chunk-KXMJLOZF.js";
|
|
34
|
+
import "./chunk-MRLH4MYU.js";
|
|
35
|
+
import "./chunk-HSOBIN22.js";
|
|
36
|
+
import "./chunk-W7TY6HYX.js";
|
|
37
|
+
import "./chunk-MKPDIAZH.js";
|
|
38
|
+
import "./chunk-2BEMIWEW.js";
|
|
39
|
+
import "./chunk-IJYGIDF4.js";
|
|
40
|
+
import "./chunk-MQ4PPCJB.js";
|
|
41
|
+
import "./chunk-RNJFRXEN.js";
|
|
42
|
+
import "./chunk-E65WJVI5.js";
|
|
43
|
+
import "./chunk-L6WBJGQS.js";
|
|
44
|
+
import "./chunk-UYXV5NIS.js";
|
|
45
|
+
import "./chunk-AACN5GNE.js";
|
|
46
|
+
import "./chunk-3HTZDY3C.js";
|
|
47
|
+
import "./chunk-CDFJF5YD.js";
|
|
48
|
+
import "./chunk-RNXOWDM6.js";
|
|
49
|
+
import "./chunk-ZCQBNPRH.js";
|
|
50
|
+
import "./chunk-TMNUTMT5.js";
|
|
51
|
+
import "./chunk-AWQWXSW4.js";
|
|
52
|
+
import "./chunk-QYF5S6P6.js";
|
|
53
|
+
import "./chunk-CZCAZVTD.js";
|
|
54
|
+
import "./chunk-X5BJ3G2P.js";
|
|
55
|
+
import "./chunk-NL5LSKVD.js";
|
|
56
|
+
import "./chunk-PIIUNJIT.js";
|
|
57
|
+
import "./chunk-W5E72HJA.js";
|
|
58
|
+
import "./chunk-S26LC76R.js";
|
|
59
|
+
import "./chunk-VCRVNLE7.js";
|
|
60
|
+
import "./chunk-LJDODBBZ.js";
|
|
61
|
+
import "./chunk-CB7PEVOJ.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
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
AgentBehaviorClient,
|
|
4
|
+
agentBehaviorClient
|
|
5
|
+
} from "./chunk-OSEKJEUU.js";
|
|
6
|
+
import "./chunk-VWLSU3XV.js";
|
|
7
|
+
import "./chunk-TMNUTMT5.js";
|
|
8
|
+
import "./chunk-X5BJ3G2P.js";
|
|
9
|
+
import "./chunk-NL5LSKVD.js";
|
|
10
|
+
import "./chunk-PIIUNJIT.js";
|
|
11
|
+
import "./chunk-W5E72HJA.js";
|
|
12
|
+
import "./chunk-S26LC76R.js";
|
|
13
|
+
import "./chunk-VCRVNLE7.js";
|
|
14
|
+
import "./chunk-LJDODBBZ.js";
|
|
15
|
+
import "./chunk-CB7PEVOJ.js";
|
|
16
|
+
import "./chunk-NXL4FFQQ.js";
|
|
17
|
+
export {
|
|
18
|
+
AgentBehaviorClient,
|
|
19
|
+
agentBehaviorClient
|
|
20
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
functionFactProvider
|
|
4
|
+
} from "./chunk-CM6BDY4E.js";
|
|
5
|
+
import "./chunk-ZD4KVFXI.js";
|
|
6
|
+
import "./chunk-TOE2RRCS.js";
|
|
7
|
+
import "./chunk-5W3R6LFT.js";
|
|
8
|
+
import "./chunk-ZZSJAR76.js";
|
|
9
|
+
import "./chunk-Z54ZSOBZ.js";
|
|
10
|
+
import "./chunk-5YSEQHJN.js";
|
|
11
|
+
import "./chunk-QGITU23N.js";
|
|
12
|
+
import "./chunk-WTB4GKMH.js";
|
|
13
|
+
import "./chunk-MKPDIAZH.js";
|
|
14
|
+
import "./chunk-AACN5GNE.js";
|
|
15
|
+
import "./chunk-TMNUTMT5.js";
|
|
16
|
+
import "./chunk-CZCAZVTD.js";
|
|
17
|
+
import "./chunk-X5BJ3G2P.js";
|
|
18
|
+
import "./chunk-NL5LSKVD.js";
|
|
19
|
+
import "./chunk-PIIUNJIT.js";
|
|
20
|
+
import "./chunk-W5E72HJA.js";
|
|
21
|
+
import "./chunk-S26LC76R.js";
|
|
22
|
+
import "./chunk-VCRVNLE7.js";
|
|
23
|
+
import "./chunk-LJDODBBZ.js";
|
|
24
|
+
import "./chunk-CB7PEVOJ.js";
|
|
25
|
+
import "./chunk-NXL4FFQQ.js";
|
|
26
|
+
export {
|
|
27
|
+
functionFactProvider
|
|
28
|
+
};
|
|
@@ -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-
|
|
4
|
+
} from "./chunk-TOE2RRCS.js";
|
|
5
5
|
import {
|
|
6
6
|
childrenOfType,
|
|
7
7
|
firstChildOfType,
|
|
8
8
|
walk
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ZZSJAR76.js";
|
|
10
10
|
import {
|
|
11
11
|
isJstsFactFile
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-CZCAZVTD.js";
|
|
13
13
|
import {
|
|
14
14
|
logLatency
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-VCRVNLE7.js";
|
|
16
16
|
|
|
17
17
|
// dist/clients/dispatch/facts/import-facts.js
|
|
18
18
|
function importFactsApplyTo(filePath) {
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
|
+
|
|
3
|
+
// dist/clients/background-write-drains.js
|
|
4
|
+
var REGISTRY_KEY = /* @__PURE__ */ Symbol.for("pi-lens.background-write-drains.v1");
|
|
5
|
+
var host = globalThis;
|
|
6
|
+
function registry() {
|
|
7
|
+
const existing = host[REGISTRY_KEY];
|
|
8
|
+
if (existing instanceof Set)
|
|
9
|
+
return existing;
|
|
10
|
+
const fresh = /* @__PURE__ */ new Set();
|
|
11
|
+
host[REGISTRY_KEY] = fresh;
|
|
12
|
+
return fresh;
|
|
13
|
+
}
|
|
14
|
+
function registerBackgroundWriteDrain(drain) {
|
|
15
|
+
registry().add(drain);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export {
|
|
19
|
+
registerBackgroundWriteDrain
|
|
20
|
+
};
|
|
@@ -12,21 +12,19 @@ import {
|
|
|
12
12
|
isStartupScanVerdictFresh,
|
|
13
13
|
resolveStartupScanContext,
|
|
14
14
|
resolveStartupScanContextAsync
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-ZPM7ZIFL.js";
|
|
16
|
+
import "./chunk-MRLH4MYU.js";
|
|
17
|
+
import "./chunk-ZCQBNPRH.js";
|
|
18
|
+
import "./chunk-TMNUTMT5.js";
|
|
19
19
|
import "./chunk-QYF5S6P6.js";
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-KXF5R4UN.js";
|
|
20
|
+
import "./chunk-X5BJ3G2P.js";
|
|
21
|
+
import "./chunk-NL5LSKVD.js";
|
|
22
|
+
import "./chunk-PIIUNJIT.js";
|
|
23
|
+
import "./chunk-W5E72HJA.js";
|
|
25
24
|
import "./chunk-S26LC76R.js";
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-VSFLRN5Y.js";
|
|
25
|
+
import "./chunk-VCRVNLE7.js";
|
|
28
26
|
import "./chunk-LJDODBBZ.js";
|
|
29
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-CB7PEVOJ.js";
|
|
30
28
|
import "./chunk-NXL4FFQQ.js";
|
|
31
29
|
export {
|
|
32
30
|
MAX_STARTUP_SCAN_ENTRIES,
|
|
@@ -1,37 +1,35 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
parseJsonc
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ACRJ2GZ5.js";
|
|
5
5
|
import {
|
|
6
6
|
extractTomlTableSection,
|
|
7
7
|
hasTomlTable,
|
|
8
8
|
parseTomlScalarString,
|
|
9
9
|
parseTomlStringArray
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-J3Q2NYJR.js";
|
|
11
11
|
import {
|
|
12
12
|
resolveLanguage
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-WTB4GKMH.js";
|
|
14
14
|
import {
|
|
15
15
|
getProjectTrustState
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-PIIUNJIT.js";
|
|
17
17
|
import {
|
|
18
18
|
incrementDegradationCount,
|
|
19
|
+
logExtension,
|
|
19
20
|
recordDegradationOnce
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import {
|
|
22
|
-
logExtension
|
|
23
|
-
} from "./chunk-KXF5R4UN.js";
|
|
21
|
+
} from "./chunk-W5E72HJA.js";
|
|
24
22
|
import {
|
|
25
23
|
logLatency
|
|
26
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-VCRVNLE7.js";
|
|
27
25
|
import {
|
|
28
26
|
UV_WORKSPACE_EXCLUDE_DIALECT,
|
|
29
27
|
UV_WORKSPACE_MEMBERS_DIALECT,
|
|
30
28
|
matchesWorkspaceMemberPattern,
|
|
31
29
|
realpathOrResolve,
|
|
32
|
-
|
|
30
|
+
relativeInside,
|
|
33
31
|
walkUpDirs
|
|
34
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-CB7PEVOJ.js";
|
|
35
33
|
|
|
36
34
|
// dist/clients/bounded-telemetry.js
|
|
37
35
|
var MAX_TRACKED_TURN_CAPS = 64;
|
|
@@ -145,10 +143,9 @@ async function findUvWorkspace(startDir, homeDir) {
|
|
|
145
143
|
} : void 0;
|
|
146
144
|
}
|
|
147
145
|
function isUvWorkspaceMember(workspace, projectRoot) {
|
|
148
|
-
const relative =
|
|
149
|
-
if (relative
|
|
146
|
+
const relative = relativeInside(workspace.root, projectRoot);
|
|
147
|
+
if (!relative)
|
|
150
148
|
return false;
|
|
151
|
-
}
|
|
152
149
|
const matches = (dialect) => (pattern) => matchesWorkspaceMemberPattern(pattern, relative, dialect, () => recordDegradationOnce({
|
|
153
150
|
kind: "workspace-glob-cap",
|
|
154
151
|
subject: String(pattern.length),
|
|
@@ -161,6 +158,11 @@ var PROJECT_SOURCED_PYTHON_SOURCES = /* @__PURE__ */ new Set([
|
|
|
161
158
|
"project-venv",
|
|
162
159
|
"uv-workspace"
|
|
163
160
|
]);
|
|
161
|
+
var PROJECT_VENV_DIRS = [
|
|
162
|
+
{ dir: ".venv", source: "project-dot-venv" },
|
|
163
|
+
{ dir: "venv", source: "project-venv" }
|
|
164
|
+
];
|
|
165
|
+
var PROJECT_VENV_DIR_NAMES = PROJECT_VENV_DIRS.map((venv) => venv.dir);
|
|
164
166
|
var AMBIENT_ENVIRONMENT_VARIABLES = {
|
|
165
167
|
"uv-project-environment": "UV_PROJECT_ENVIRONMENT",
|
|
166
168
|
"virtual-env": "VIRTUAL_ENV",
|
|
@@ -178,10 +180,7 @@ async function detectPythonEnvironment(projectRoot, homeDir = os.homedir(), opti
|
|
|
178
180
|
const uvProjectEnvironment = process.env.UV_PROJECT_ENVIRONMENT;
|
|
179
181
|
const allowAmbient = options.allowAmbient ?? true;
|
|
180
182
|
const isWithinProjectRoot = (candidateRoot) => {
|
|
181
|
-
|
|
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);
|
|
183
|
+
return relativeInside(root, realpathOrResolve(candidateRoot)) !== void 0;
|
|
185
184
|
};
|
|
186
185
|
const candidates = [
|
|
187
186
|
...uvEnvironmentRoot !== void 0 && uvProjectEnvironment ? [
|
|
@@ -200,8 +199,10 @@ async function detectPythonEnvironment(projectRoot, homeDir = os.homedir(), opti
|
|
|
200
199
|
] : [],
|
|
201
200
|
{ root: process.env.VIRTUAL_ENV, source: "virtual-env" },
|
|
202
201
|
{ root: process.env.CONDA_PREFIX, source: "conda" },
|
|
203
|
-
|
|
204
|
-
|
|
202
|
+
...PROJECT_VENV_DIRS.map((venv) => ({
|
|
203
|
+
root: path.join(root, venv.dir),
|
|
204
|
+
source: venv.source
|
|
205
|
+
}))
|
|
205
206
|
];
|
|
206
207
|
for (const candidate of candidates) {
|
|
207
208
|
if (!candidate.root)
|
|
@@ -493,6 +494,7 @@ async function detectPythonTargetVersion(filePath, homeDir = os.homedir()) {
|
|
|
493
494
|
export {
|
|
494
495
|
emitBounded,
|
|
495
496
|
resetBoundedTelemetry,
|
|
497
|
+
PROJECT_VENV_DIR_NAMES,
|
|
496
498
|
hasAmbientPythonEnvironment,
|
|
497
499
|
detectPythonEnvironment,
|
|
498
500
|
augmentPythonEnvironment,
|
|
@@ -2,8 +2,9 @@ import { createRequire as __pilensCreateRequire } from "node:module"; const requ
|
|
|
2
2
|
import {
|
|
3
3
|
isUnderDir,
|
|
4
4
|
normalizeFilePath,
|
|
5
|
+
normalizeLoggedPath,
|
|
5
6
|
pathsEqual
|
|
6
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-CB7PEVOJ.js";
|
|
7
8
|
|
|
8
9
|
// dist/clients/env-utils.js
|
|
9
10
|
function isTestMode() {
|
|
@@ -13,6 +14,12 @@ function isTestMode() {
|
|
|
13
14
|
return true;
|
|
14
15
|
return false;
|
|
15
16
|
}
|
|
17
|
+
function isToolInstallDisabled() {
|
|
18
|
+
return process.env.PI_LENS_DISABLE_TOOL_INSTALL === "1";
|
|
19
|
+
}
|
|
20
|
+
function isLspInstallDisabled() {
|
|
21
|
+
return process.env.PI_LENS_DISABLE_LSP_INSTALL === "1";
|
|
22
|
+
}
|
|
16
23
|
function toPositiveFinite(value) {
|
|
17
24
|
const num = typeof value === "number" ? value : Number(value);
|
|
18
25
|
return Number.isFinite(num) && num > 0 ? num : 0;
|
|
@@ -486,6 +493,9 @@ function nextModuleEvaluationOrdinal() {
|
|
|
486
493
|
return state2.evaluations;
|
|
487
494
|
}
|
|
488
495
|
|
|
496
|
+
// dist/clients/latency-logger.js
|
|
497
|
+
import * as path4 from "node:path";
|
|
498
|
+
|
|
489
499
|
// dist/clients/probe-home-state.js
|
|
490
500
|
import * as fs from "node:fs";
|
|
491
501
|
import * as os from "node:os";
|
|
@@ -1230,8 +1240,125 @@ function getTurnId() {
|
|
|
1230
1240
|
return sessionState(sessionId).turnId;
|
|
1231
1241
|
}
|
|
1232
1242
|
|
|
1243
|
+
// dist/clients/latency-logger.js
|
|
1244
|
+
var LATENCY_LOG_DIR = getGlobalPiLensLogDir();
|
|
1245
|
+
var LATENCY_LOG_FILE = path4.join(LATENCY_LOG_DIR, "latency.log");
|
|
1246
|
+
var writer = createNdjsonLogger({
|
|
1247
|
+
filePath: LATENCY_LOG_FILE,
|
|
1248
|
+
maxBytes: getMaxLogSizeMB() * 1024 * 1024
|
|
1249
|
+
});
|
|
1250
|
+
var RECENT_PHASE_CAP = 5;
|
|
1251
|
+
var recentPhases = [];
|
|
1252
|
+
var LAST_PHASE_EXCLUDED = /* @__PURE__ */ new Set([
|
|
1253
|
+
"loop_block",
|
|
1254
|
+
"lsp_typescript_project_identity",
|
|
1255
|
+
"advisory_provenance_decision",
|
|
1256
|
+
"authoritative_content_attachment_decision",
|
|
1257
|
+
"agent_end_deferred_mutation_drain",
|
|
1258
|
+
"agent_end_deferred_mutation_requeue",
|
|
1259
|
+
"session_end_bus_rollup",
|
|
1260
|
+
"cache_usage_summary",
|
|
1261
|
+
"test_runner_failed_target_state",
|
|
1262
|
+
"turn_end_test_selection",
|
|
1263
|
+
"lsp_aux_wait_outcome",
|
|
1264
|
+
"tool_set_mutation",
|
|
1265
|
+
"tool_set_decision",
|
|
1266
|
+
"availability_decision",
|
|
1267
|
+
"finding_dead_path_drop",
|
|
1268
|
+
"finding_stale_line_demote",
|
|
1269
|
+
"finding_path_stat_budget_exhausted",
|
|
1270
|
+
"lsp_scanner_coverage_gap",
|
|
1271
|
+
"lsp_notify_resync_deferred",
|
|
1272
|
+
"lsp_notify_write_late_landed",
|
|
1273
|
+
"lsp_notify_stall_cpu_busy",
|
|
1274
|
+
"degradation_ledger",
|
|
1275
|
+
"path_attribution_verified_rollup",
|
|
1276
|
+
"concurrent_session_bind_rollup",
|
|
1277
|
+
"auxiliary_readiness",
|
|
1278
|
+
"lsp_empty_first_publish_held",
|
|
1279
|
+
"lsp_diagnostics_fence",
|
|
1280
|
+
"lsp_rules_refreshed",
|
|
1281
|
+
"read_guard_conversation_read",
|
|
1282
|
+
"read_widening_note",
|
|
1283
|
+
"session_handoff_slot",
|
|
1284
|
+
"session_handoff_adopt",
|
|
1285
|
+
"session_store_action",
|
|
1286
|
+
"session_end_fence_rollup",
|
|
1287
|
+
"session_handoff_turn_state",
|
|
1288
|
+
"format_late_resync_chained",
|
|
1289
|
+
"lsp_created_import_scan_rollup"
|
|
1290
|
+
]);
|
|
1291
|
+
var liveBrackets = /* @__PURE__ */ new Map();
|
|
1292
|
+
var closedBrackets = [];
|
|
1293
|
+
function phaseStarted(phase) {
|
|
1294
|
+
const token = { phase, startedAt: (/* @__PURE__ */ new Date()).toISOString() };
|
|
1295
|
+
liveBrackets.set(token, true);
|
|
1296
|
+
return token;
|
|
1297
|
+
}
|
|
1298
|
+
function phaseFinished(token) {
|
|
1299
|
+
if (!liveBrackets.delete(token))
|
|
1300
|
+
return;
|
|
1301
|
+
closedBrackets = [
|
|
1302
|
+
{
|
|
1303
|
+
phase: token.phase,
|
|
1304
|
+
startedAt: token.startedAt,
|
|
1305
|
+
closedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
1306
|
+
},
|
|
1307
|
+
...closedBrackets
|
|
1308
|
+
].slice(0, RECENT_PHASE_CAP);
|
|
1309
|
+
}
|
|
1310
|
+
var oncePerSessionPhases = /* @__PURE__ */ new Set();
|
|
1311
|
+
var sessionRecordSeq = 0;
|
|
1312
|
+
function mintSessionRecordId() {
|
|
1313
|
+
sessionRecordSeq += 1;
|
|
1314
|
+
return `${process.pid.toString(36)}-${Date.now().toString(36)}-${sessionRecordSeq.toString(36)}`;
|
|
1315
|
+
}
|
|
1316
|
+
var sessionRecordId = mintSessionRecordId();
|
|
1317
|
+
function currentSessionRecordId() {
|
|
1318
|
+
return sessionRecordId;
|
|
1319
|
+
}
|
|
1320
|
+
function claimKey(phase, scope) {
|
|
1321
|
+
return `${phase}\0${scope}`;
|
|
1322
|
+
}
|
|
1323
|
+
function claimPhaseOncePerSession(phase, scope) {
|
|
1324
|
+
const key = claimKey(phase, scope);
|
|
1325
|
+
if (oncePerSessionPhases.has(key))
|
|
1326
|
+
return false;
|
|
1327
|
+
oncePerSessionPhases.add(key);
|
|
1328
|
+
return true;
|
|
1329
|
+
}
|
|
1330
|
+
function releasePhaseClaim(phase, scope) {
|
|
1331
|
+
oncePerSessionPhases.delete(claimKey(phase, scope));
|
|
1332
|
+
}
|
|
1333
|
+
function logLatency(entry) {
|
|
1334
|
+
const ts = (/* @__PURE__ */ new Date()).toISOString();
|
|
1335
|
+
if (entry.type === "phase" && entry.phase && !LAST_PHASE_EXCLUDED.has(entry.phase)) {
|
|
1336
|
+
recentPhases = [
|
|
1337
|
+
{
|
|
1338
|
+
phase: entry.phase,
|
|
1339
|
+
ts,
|
|
1340
|
+
...entry.toolName !== void 0 && { toolName: entry.toolName },
|
|
1341
|
+
...entry.metadata !== void 0 && { metadata: entry.metadata }
|
|
1342
|
+
},
|
|
1343
|
+
...recentPhases
|
|
1344
|
+
].slice(0, RECENT_PHASE_CAP);
|
|
1345
|
+
}
|
|
1346
|
+
if (isTestMode()) {
|
|
1347
|
+
return;
|
|
1348
|
+
}
|
|
1349
|
+
writer.log({
|
|
1350
|
+
...entry,
|
|
1351
|
+
ts,
|
|
1352
|
+
pid: process.pid,
|
|
1353
|
+
turnId: entry.turnId ?? getTurnId(),
|
|
1354
|
+
filePath: normalizeLoggedPath(entry.filePath)
|
|
1355
|
+
});
|
|
1356
|
+
}
|
|
1357
|
+
|
|
1233
1358
|
export {
|
|
1234
1359
|
isTestMode,
|
|
1360
|
+
isToolInstallDisabled,
|
|
1361
|
+
isLspInstallDisabled,
|
|
1235
1362
|
toPositiveFinite,
|
|
1236
1363
|
lazyEnvNumber,
|
|
1237
1364
|
getProbeHomeRedirectEvent,
|
|
@@ -1253,5 +1380,11 @@ export {
|
|
|
1253
1380
|
nextModuleEvaluationOrdinal,
|
|
1254
1381
|
setTurnContextSession,
|
|
1255
1382
|
beginTurnContext,
|
|
1256
|
-
getTurnId
|
|
1383
|
+
getTurnId,
|
|
1384
|
+
phaseStarted,
|
|
1385
|
+
phaseFinished,
|
|
1386
|
+
currentSessionRecordId,
|
|
1387
|
+
claimPhaseOncePerSession,
|
|
1388
|
+
releasePhaseClaim,
|
|
1389
|
+
logLatency
|
|
1257
1390
|
};
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
canonicalDirectory,
|
|
5
5
|
getExcludedDirGlobs,
|
|
6
6
|
listNestedLinkedWorktreeRoots
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-TMNUTMT5.js";
|
|
8
8
|
import {
|
|
9
9
|
escapeRegExp
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-W5E72HJA.js";
|
|
11
11
|
|
|
12
12
|
// dist/clients/scratch-tree-policy.js
|
|
13
13
|
import { relative } from "node:path";
|
|
@@ -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-
|
|
4
|
+
} from "./chunk-TMNUTMT5.js";
|
|
5
5
|
import {
|
|
6
6
|
createNdjsonLogger,
|
|
7
7
|
getGlobalPiLensLogDir,
|
|
8
8
|
getProcessSingleton,
|
|
9
9
|
getTurnId,
|
|
10
10
|
isTestMode
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-VCRVNLE7.js";
|
|
12
12
|
import {
|
|
13
13
|
BoundedFifoMap,
|
|
14
14
|
normalizeFilePath,
|
|
15
|
-
normalizeMapKey
|
|
16
|
-
|
|
15
|
+
normalizeMapKey,
|
|
16
|
+
toPosix
|
|
17
|
+
} from "./chunk-CB7PEVOJ.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)
|
|
162
|
+
const rel = toPosix(path2.relative(canonicalCwd, canonicalFile));
|
|
162
163
|
return rel && !rel.startsWith("..") ? rel : canonicalFile;
|
|
163
164
|
}
|
|
164
165
|
function stableFindingId(prefix, args) {
|