@herbertgao/pi-extensions 2026.11.6 → 2026.11.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.
- package/CHANGELOG.md +9 -0
- package/README.md +6 -6
- package/THIRD_PARTY_NOTICES.md +2 -2
- package/node_modules/@herbertgao/pi-impeccable/CHANGELOG.md +6 -0
- package/node_modules/@herbertgao/pi-impeccable/README.md +2 -2
- package/node_modules/@herbertgao/pi-impeccable/package.json +4 -4
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/SKILL.md +1 -1
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/VERSION +1 -1
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/engine-checksums.txt +5 -5
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/live-browser.js +71 -56
- package/node_modules/@pi-plugins/fast-mode/dist/index.d.mts +1 -4
- package/node_modules/@pi-plugins/fast-mode/dist/index.d.mts.map +1 -1
- package/node_modules/@pi-plugins/fast-mode/dist/index.mjs +5620 -2946
- package/node_modules/@pi-plugins/fast-mode/dist/index.mjs.map +1 -1
- package/node_modules/@pi-plugins/fast-mode/package.json +11 -11
- package/node_modules/pi-commandcode-provider/CHANGELOG.md +5 -0
- package/node_modules/pi-commandcode-provider/README.md +1 -1
- package/node_modules/pi-commandcode-provider/package.json +1 -1
- package/node_modules/pi-commandcode-provider/src/commandcode-catalog.ts +5 -4
- package/node_modules/pi-commandcode-provider/src/pricing.ts +8 -2
- package/node_modules/pi-lens/CHANGELOG-USER.md +6 -6
- package/node_modules/pi-lens/CHANGELOG.md +182 -0
- package/node_modules/pi-lens/dist/{chunk-NE4EFHJX.js → chunk-2SD2CGVH.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-7JX3RNG4.js → chunk-34RXPR7M.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-2LVJQU3I.js → chunk-3C6ZZAB2.js} +33 -27
- package/node_modules/pi-lens/dist/{chunk-WAA63ZJV.js → chunk-3HZ6MNB2.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-IDCTDKIA.js → chunk-3NVGBFJS.js} +6 -6
- package/node_modules/pi-lens/dist/{chunk-B2YUE6YD.js → chunk-3QCI3V6C.js} +11 -11
- package/node_modules/pi-lens/dist/{chunk-NL5LSKVD.js → chunk-3R3Z54J7.js} +10 -4
- package/node_modules/pi-lens/dist/{chunk-7WJ55KBN.js → chunk-43KD3PPM.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-DVRJBQOJ.js → chunk-4HNBY7S7.js} +20 -19
- package/node_modules/pi-lens/dist/chunk-4WWPDMRA.js +22 -0
- package/node_modules/pi-lens/dist/{chunk-QL37SGTS.js → chunk-532X3OCZ.js} +18 -16
- package/node_modules/pi-lens/dist/{chunk-ZZDVGCGG.js → chunk-5RLEDUUE.js} +9 -9
- package/node_modules/pi-lens/dist/{chunk-GUGKKGG7.js → chunk-5YTDZ5WP.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-FOEPIX76.js → chunk-6EIV3H7O.js} +158 -61
- package/node_modules/pi-lens/dist/{chunk-E4VXKTBR.js → chunk-6K4X7IIF.js} +164 -172
- package/node_modules/pi-lens/dist/{chunk-HSYFLOZY.js → chunk-6RXMQYNU.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-K6WIBVMK.js → chunk-6XNVY3FW.js} +8 -9
- package/node_modules/pi-lens/dist/{chunk-ACRJ2GZ5.js → chunk-7424ANRU.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-PTSA6QKL.js → chunk-A4HKPAEN.js} +8 -8
- package/node_modules/pi-lens/dist/{chunk-RQRKIRFY.js → chunk-AFNPNHJV.js} +8 -8
- package/node_modules/pi-lens/dist/{chunk-3FRI5H4T.js → chunk-AGEQRJ5A.js} +24 -10
- package/node_modules/pi-lens/dist/{chunk-MAD4QJTP.js → chunk-AJ62EQIQ.js} +15 -14
- package/node_modules/pi-lens/dist/{chunk-FCQSZQAT.js → chunk-AOQKQWZU.js} +14 -5
- package/node_modules/pi-lens/dist/{chunk-ZOPXB2KK.js → chunk-AVOUHMCS.js} +111 -107
- package/node_modules/pi-lens/dist/{chunk-OTSTS7L2.js → chunk-AYDE7RFV.js} +34 -3
- package/node_modules/pi-lens/dist/{chunk-AWQWXSW4.js → chunk-B4FAFEBP.js} +7 -2
- package/node_modules/pi-lens/dist/{chunk-SKVNHCT5.js → chunk-B4K6OSLL.js} +49 -42
- package/node_modules/pi-lens/dist/{chunk-2ADRLTM2.js → chunk-BBJXIZ3X.js} +3 -3
- package/node_modules/pi-lens/dist/chunk-BJDB7PXU.js +25 -0
- package/node_modules/pi-lens/dist/{chunk-GTTMQ6XB.js → chunk-BLL4VYGZ.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-CZAWWXP6.js → chunk-BMMRLJA4.js} +7 -5
- package/node_modules/pi-lens/dist/{chunk-TN5CWX5D.js → chunk-BN36MQW5.js} +35 -34
- package/node_modules/pi-lens/dist/{chunk-IL6PIV33.js → chunk-C2REOMPO.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-XAFZJEXY.js → chunk-C4ICGFEO.js} +23 -23
- package/node_modules/pi-lens/dist/chunk-CIA7X2PZ.js +26 -0
- package/node_modules/pi-lens/dist/{chunk-SJQUWQR6.js → chunk-D5L7Q57Z.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-XPGH5O74.js → chunk-DBAHJFBU.js} +31 -35
- package/node_modules/pi-lens/dist/{chunk-H65TYP6V.js → chunk-DNB4ZQGN.js} +37 -21
- package/node_modules/pi-lens/dist/chunk-DPDA3ILA.js +108 -0
- package/node_modules/pi-lens/dist/{chunk-QGITU23N.js → chunk-E3PNZDPH.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-KDCIG23C.js → chunk-E6Z3CJT2.js} +13 -9
- package/node_modules/pi-lens/dist/{chunk-V7F7JHS5.js → chunk-ECYUBKYX.js} +557 -551
- package/node_modules/pi-lens/dist/chunk-F37CCZUA.js +27 -0
- package/node_modules/pi-lens/dist/{chunk-KSTQ4VXT.js → chunk-FVEEEEIM.js} +10 -13
- package/node_modules/pi-lens/dist/{chunk-GMC4ZGYR.js → chunk-GL6J5R34.js} +5 -5
- package/node_modules/pi-lens/dist/{chunk-C6AODRNU.js → chunk-GTNO6F6K.js} +11 -10
- package/node_modules/pi-lens/dist/{chunk-KJ3AHOCK.js → chunk-HASJPQBC.js} +10 -10
- package/node_modules/pi-lens/dist/{chunk-XVB3Q2PG.js → chunk-HGEE5LDW.js} +3 -2
- package/node_modules/pi-lens/dist/{chunk-F6FT6BVQ.js → chunk-HIUVHRLM.js} +35 -34
- package/node_modules/pi-lens/dist/{chunk-BRESRQBE.js → chunk-HTUG7ZFK.js} +8 -8
- package/node_modules/pi-lens/dist/{chunk-ALIZWXHZ.js → chunk-IBEYUBCM.js} +9 -9
- package/node_modules/pi-lens/dist/{chunk-JZQGRARR.js → chunk-IJ55MYO6.js} +15 -12
- package/node_modules/pi-lens/dist/{chunk-BGLS5SDN.js → chunk-IT7MFVGP.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-AON2QIJF.js → chunk-ITAPXBIB.js} +20 -17
- package/node_modules/pi-lens/dist/{chunk-TLWFZ66Y.js → chunk-JSQK5DH3.js} +4 -4
- package/node_modules/pi-lens/dist/{chunk-VCRVNLE7.js → chunk-K2GV34T2.js} +9 -1
- package/node_modules/pi-lens/dist/{chunk-QUQY3IME.js → chunk-KBSC5Z3G.js} +9 -8
- package/node_modules/pi-lens/dist/{chunk-W4CUK5G6.js → chunk-KDGKKK7A.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-YQA34KAF.js → chunk-KDMJ2DJD.js} +11 -11
- package/node_modules/pi-lens/dist/{chunk-SG2JQ2YP.js → chunk-KNP4ENFT.js} +1 -1
- package/node_modules/pi-lens/dist/chunk-KX4DF6XX.js +25 -0
- package/node_modules/pi-lens/dist/{chunk-4ITEFRDH.js → chunk-LHCDWFDB.js} +37 -145
- package/node_modules/pi-lens/dist/{chunk-3HM4BUHR.js → chunk-LHU6NG5Z.js} +16 -15
- package/node_modules/pi-lens/dist/{chunk-6I44EDNQ.js → chunk-LIDFFCZZ.js} +17 -15
- package/node_modules/pi-lens/dist/{chunk-KFRDFAOE.js → chunk-LPM6NKVI.js} +7 -7
- package/node_modules/pi-lens/dist/{chunk-NBM7PNBP.js → chunk-LXE7JAMV.js} +37 -26
- package/node_modules/pi-lens/dist/{chunk-UY745U35.js → chunk-ME6MF2N2.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-YT2VR4SL.js → chunk-NLRKB32C.js} +7 -7
- package/node_modules/pi-lens/dist/{chunk-QHOTTC4A.js → chunk-NQFXN5U7.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-QUPYLQA4.js → chunk-NR4KQOXZ.js} +14 -9
- package/node_modules/pi-lens/dist/{chunk-Y3EHLUPL.js → chunk-NWK7KKNO.js} +4 -4
- package/node_modules/pi-lens/dist/{chunk-A5TEJZGJ.js → chunk-O6LCSHHI.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-CTB5BAJI.js → chunk-OC4ZGVMH.js} +17 -14
- package/node_modules/pi-lens/dist/{chunk-VPFRU5IG.js → chunk-OP5BMZKK.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-MN635QYA.js → chunk-OYXD2MOM.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-GVWIU7M7.js → chunk-PSUXESQ5.js} +41 -4
- package/node_modules/pi-lens/dist/{chunk-J6BR5XN2.js → chunk-QAM2Q3VO.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-6MDM5MQT.js → chunk-QBUSONNE.js} +367 -153
- package/node_modules/pi-lens/dist/{chunk-VGTBLTPN.js → chunk-QDZ3ZZMY.js} +18 -66
- package/node_modules/pi-lens/dist/{chunk-LT62P654.js → chunk-QJ4T73J5.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-DOUAWKLO.js → chunk-QUZYRDT6.js} +12 -12
- package/node_modules/pi-lens/dist/{chunk-UNBRHPHJ.js → chunk-R2UF54ON.js} +17 -15
- package/node_modules/pi-lens/dist/{chunk-I32RSMH6.js → chunk-R2VUZZPJ.js} +11 -10
- package/node_modules/pi-lens/dist/chunk-R5BNSOIV.js +29 -0
- package/node_modules/pi-lens/dist/chunk-RV5VX2XW.js +29 -0
- package/node_modules/pi-lens/dist/{chunk-QWTHFFU6.js → chunk-SQBDX6IO.js} +12 -12
- package/node_modules/pi-lens/dist/{chunk-CZCAZVTD.js → chunk-SRXYSLMW.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-WS3UFJOU.js → chunk-SUIZOCSY.js} +3 -2
- package/node_modules/pi-lens/dist/{chunk-NUSXS6YB.js → chunk-T5EGSBM2.js} +4 -4
- package/node_modules/pi-lens/dist/{chunk-QMV2APEH.js → chunk-TBE4OLPA.js} +37 -35
- package/node_modules/pi-lens/dist/{chunk-B6HXETWY.js → chunk-TPMBNWHO.js} +28 -26
- package/node_modules/pi-lens/dist/{chunk-CYUJB552.js → chunk-TRYOYWWU.js} +18 -12
- package/node_modules/pi-lens/dist/{chunk-TJQSYX3J.js → chunk-TTGDTNSN.js} +6 -6
- package/node_modules/pi-lens/dist/{chunk-S3WFVG5P.js → chunk-UELHWF5I.js} +137 -126
- package/node_modules/pi-lens/dist/chunk-UG4YLCJ5.js +58 -0
- package/node_modules/pi-lens/dist/chunk-UQ6OZYTO.js +91 -0
- package/node_modules/pi-lens/dist/{chunk-QSCZAP24.js → chunk-UY3WWW5R.js} +4 -4
- package/node_modules/pi-lens/dist/chunk-V7IPIAE5.js +74 -0
- package/node_modules/pi-lens/dist/{chunk-4NCDHTFI.js → chunk-VDMF7Q2P.js} +10 -10
- package/node_modules/pi-lens/dist/{chunk-TYHOEX4V.js → chunk-VI3BJMZO.js} +35 -34
- package/node_modules/pi-lens/dist/{chunk-UOO4D2TK.js → chunk-VTXJAO5R.js} +34 -35
- package/node_modules/pi-lens/dist/chunk-W6VLB6LL.js +145 -0
- package/node_modules/pi-lens/dist/{chunk-NPNFGYLV.js → chunk-WBXCIRVI.js} +19 -2
- package/node_modules/pi-lens/dist/{chunk-CB7PEVOJ.js → chunk-WLD6BGON.js} +176 -60
- package/node_modules/pi-lens/dist/{chunk-Q2VCKC3X.js → chunk-WMCAEP2K.js} +11 -8
- package/node_modules/pi-lens/dist/{chunk-OPFNQBS5.js → chunk-WXMUGUZV.js} +21 -25
- package/node_modules/pi-lens/dist/{chunk-46TQJSUE.js → chunk-X33QECRJ.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-HILZE4BQ.js → chunk-YUF4DRYB.js} +396 -306
- package/node_modules/pi-lens/dist/{chunk-YF4G5NN5.js → chunk-YVPB5YGO.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-W7TY6HYX.js → chunk-ZRQMENT4.js} +5 -27
- package/node_modules/pi-lens/dist/index.js +5573 -4181
- package/node_modules/pi-lens/dist/mcp/analyze-cli.js +17 -11
- package/node_modules/pi-lens/dist/mcp/cli.js +43 -42
- package/node_modules/pi-lens/dist/mcp/server.js +1521 -610
- package/node_modules/pi-lens/dist/mcp/worker.js +62 -59
- package/node_modules/pi-lens/dist/probes/installer.js +19 -18
- package/node_modules/pi-lens/docs/agent-guide.md +3 -1
- package/node_modules/pi-lens/docs/agent-tools.md +4 -2
- package/node_modules/pi-lens/docs/alignment-families.md +5 -1
- package/node_modules/pi-lens/docs/ci.md +120 -0
- package/node_modules/pi-lens/docs/configuration.md +21 -3
- package/node_modules/pi-lens/docs/custom-rules.md +1 -0
- package/node_modules/pi-lens/docs/defect-shapes.md +107 -71
- package/node_modules/pi-lens/docs/durable-store-audit-1202.md +1 -1
- package/node_modules/pi-lens/docs/engineering-principles.md +46 -12
- package/node_modules/pi-lens/docs/environment-variables.md +25 -2
- package/node_modules/pi-lens/docs/features.md +1 -1
- package/node_modules/pi-lens/docs/invariants/dispatch-runners.md +13 -0
- package/node_modules/pi-lens/docs/language-coverage.md +1 -1
- package/node_modules/pi-lens/docs/lsp-capability-matrix.md +15 -16
- package/node_modules/pi-lens/docs/lsp-idle-eviction.md +1 -1
- package/node_modules/pi-lens/docs/module-report-read-symbol.md +2 -2
- package/node_modules/pi-lens/docs/pi-lens-fixer.md +3 -2
- package/node_modules/pi-lens/docs/pi-lens-merge-policy.md +1 -0
- package/node_modules/pi-lens/docs/pi-lens-monitor.md +4 -1
- package/node_modules/pi-lens/docs/pi-lens-release.md +19 -0
- package/node_modules/pi-lens/docs/pi-lens-reviewer.md +8 -2
- package/node_modules/pi-lens/docs/public-api-stability.md +41 -6
- package/node_modules/pi-lens/docs/rfcs/5138-query-surface.md +121 -0
- package/node_modules/pi-lens/docs/servercapabilities.md +1 -1
- package/node_modules/pi-lens/docs/settings.md +9 -0
- package/node_modules/pi-lens/docs/word-index.md +9 -10
- package/node_modules/pi-lens/package.json +3 -3
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/README.md +2 -0
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/c/security/dont-call-system-c.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/c/security/file-access-before-action-c.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/c/security/file-stat-before-action-c.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/c/security/insecure-hash-c.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/c/security/libxml2-audit-parser-c.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/c/security/null-library-function-c.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/c/security/sizeof-this-c.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/c/security/small-key-size-c.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/c/security/world-writable-file-c.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/dont-call-system-cpp.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/file-access-before-action-cpp.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/file-stat-before-action-cpp.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/fix-format-security-error-cpp.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/insecure-hash-cpp.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/libxml2-audit-parser-cpp.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/missing-nul-cpp-string-memcpy-cpp.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/null-library-function-cpp.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/return-c-str-cpp.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/sizeof-this-cpp.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/small-key-size-cpp.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/std-return-data-cpp.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/std-vector-invalidation-cpp.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/string-view-temporary-string-cpp.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/world-writable-file-cpp.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/csharp/security/httponly-false-csharp.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/csharp/security/insecure-binaryformatter-deserialization-csharp.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/csharp/security/jwt-decode-without-verify-csharp.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/csharp/security/jwt-hardcoded-secret-csharp.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/csharp/security/jwt-tokenvalidationparameters-no-expiry-validation-csharp.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/csharp/security/networkcredential-hardcoded-secret-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/csharp/security/npgsqlconnectionstringbuilder-hardcoded-secret-csharp.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/csharp/security/oracleconnectionstringbuilder-hardcoded-secret-csharp.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/csharp/security/sqlconnectionstringbuilder-hardcoded-secret-csharp.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/csharp/security/stacktrace-disclosure-csharp.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/csharp/security/use-ecb-mode-csharp.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/go/security/avoid-bind-to-all-interfaces-go.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/go/security/gorilla-cookie-store-hardcoded-session-key-go.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/go/security/gorilla-csrf-hardcoded-auth-key-go.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/go/security/grpc-client-insecure-connection-go.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/go/security/jwt-go-none-algorithm-go.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/go/security/missing-ssl-minversion-go.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/go/security/openai-empty-secret-go.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/go/security/openai-hardcoded-secret-go.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/go/security/ssl-v3-is-insecure-go.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/go/security/tls-with-insecure-cipher-go.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/go/security/use-of-weak-rsa-key-go.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/html/security/plaintext-http-link-html.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/cbc-padding-oracle-java.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/cookie-httponly-false-java.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/cookie-missing-httponly-java.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/cookie-missing-samesite-java.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/cookie-missing-secure-flag-java.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/cookie-secure-flag-false-java.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/datanucleus-hardcoded-connection-password-java.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/des-is-deprecated-java.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/desede-is-deprecated-java.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/documentbuilderfactory-disallow-doctype-decl-false-java.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/documentbuilderfactory-external-general-entities-true-java.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/documentbuilderfactory-external-parameter-entities-true-java.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/drivermanager-hardcoded-secret-java.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/ecb-cipher-java.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/hardcoded-connection-password-java.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/hardcoded-secret-in-credentials-java.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/java-jwt-hardcoded-secret-java.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/jedis-jedisclientconfig-hardcoded-password-java.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/jedis-jedisfactory-hardcoded-password-java.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/missing-httponly-java.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/missing-secure-java.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/no-null-cipher-java.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/passwordauthentication-hardcoded-password-java.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/rsa-no-padding-java.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/simple-command-injection-direct-input-java.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/system-setproperty-hardcoded-secret-java.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/unencrypted-socket-java.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-aes-ecb-java.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-blowfish-java.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-default-aes-java.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-md5-digest-utils-java.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-md5-java.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-rc2-java.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-rc4-java.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-sha1-java.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/weak-ssl-context-java.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/javascript/security/detect-angular-sce-disabled-javascript.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/javascript/security/express-jwt-hardcoded-secret-javascript.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/javascript/security/express-session-hardcoded-secret-javascript.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/javascript/security/jwt-simple-noverify-javascript.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/javascript/security/node-rsa-weak-key-javascript.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/javascript/security/node-sequelize-empty-password-argument-javascript.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/javascript/security/node-sequelize-hardcoded-secret-argument-javascript.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/kotlin/security/des-is-deprecated-kotlin.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/kotlin/security/desede-is-deprecated-kotlin.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/kotlin/security/jwt-hardcode-kotlin.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/kotlin/security/rsa-no-padding-kotlin.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/kotlin/security/system-setproperty-hardcoded-secret-kotlin.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/php/security/openssl-cbc-static-iv-php.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/php/security/search-active-debug-php.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/avoid-mktemp-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/avoid_app_run_with_bad_host-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/debug-enabled-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/hashids-with-django-secret-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/hashids-with-flask-secret-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/insecure-cipher-algorithm-rc4-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/jwt-python-hardcoded-secret-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/openai-hardcoded-secret-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-cassandra-empty-password-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-cassandra-hardcoded-secret-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-couchbase-empty-password-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-couchbase-hardcoded-secret-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-elasticsearch-hardcoded-bearer-auth-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-ldap3-empty-password-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-ldap3-hardcoded-secret-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-mariadb-empty-password-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-mariadb-hardcoded-secret-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-mysql-empty-password-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-mysql-hardcoded-secret-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-mysqlclient-empty-password-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-mysqlclient-hardcoded-secret-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-neo4j-empty-password-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-neo4j-hardcoded-secret-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-peewee-mysql-empty-password-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-peewee-mysql-hardcoded-secret-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-peewee-pg-empty-password-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-peewee-pg-hardcoded-secret-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-pg8000-empty-password-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-pg8000-hardcoded-secret-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-psycopg2-empty-password-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-psycopg2-hardcoded-secret-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-pyjwt-hardcoded-secret-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-pymongo-empty-password-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-pymongo-hardcoded-secret-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-pymssql-empty-password-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-pymssql-hardcoded-secret-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-pymysql-empty-password-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-pymysql-hardcoded-secret-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-redis-empty-password-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-redis-hardcoded-secret-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-requests-empty-password-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-requests-hardcoded-secret-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-requests-oauth-hardcoded-secret-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-tormysql-empty-password-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-tormysql-hardcoded-secret-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-urllib3-hardcoded-secret-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-webrepl-empty-password-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-webrepl-hardcoded-secret-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/force-ssl-false-ruby.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/hardcoded-http-auth-in-controller-ruby.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/hardcoded-secret-rsa-passphrase-ruby.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/insufficient-rsa-key-size-ruby.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-aws-sdk-hardcoded-secret-ruby.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-cassandra-empty-password-ruby.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-cassandra-hardcoded-secret-ruby.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-excon-hardcoded-secret-ruby.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-faraday-hardcoded-secret-ruby.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-mongo-empty-password-ruby.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-mongo-hardcoded-secret-ruby.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-mysql2-empty-password-ruby.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-mysql2-hardcoded-secret-ruby.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-octokit-hardcoded-secret-ruby.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-pg-empty-password-ruby.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-pg-hardcoded-secret-ruby.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-redis-empty-password-ruby.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-redis-hardcoded-secret-ruby.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/rust/security/empty-password-rust.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/rust/security/hardcoded-password-rust.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/rust/security/postgres-empty-password-rust.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/rust/security/reqwest-accept-invalid-rust.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/rust/security/secrets-reqwest-hardcoded-auth-rust.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/rust/security/ssl-verify-none-rust.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/rust/security/tokio-postgres-empty-password-rust.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/rust/security/tokio-postgres-hardcoded-password-rust.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/scala/security/jwt-scala-hardcode-scala.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/scala/security/scala-jwt-hardcoded-secret-scala.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/swift/security/aes-hardcoded-secret-swift.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/swift/security/blowfish-hardcoded-secret-swift.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/swift/security/chacha20-hardcoded-secret-swift.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/swift/security/insecure-biometrics-swift.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/swift/security/rabbit-hardcoded-secret-swift.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/typescript/security/detect-angular-sce-disabled-typescript.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/typescript/security/express-session-hardcoded-secret-typescript.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/typescript/security/jwt-simple-noverify-typescript.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/typescript/security/node-rsa-weak-key-typescript.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/typescript/security/node-sequelize-empty-password-argument-typescript.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/typescript/security/node-sequelize-hardcoded-secret-argument-typescript.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/rule-schema.json +1 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/c-no-malloc-free.yml +13 -12
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/cpp-no-malloc-free.yml +11 -10
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/cpp-no-printf.yml +10 -9
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/go-defer-func-call-antipattern.yml +14 -13
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/go-no-fmt-println.yml +14 -13
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/go-no-panic-in-lib.yml +20 -19
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/go-no-underscore-func-name.yml +14 -13
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/go-prefer-errors-is.yml +14 -13
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/go-prefer-string-builder.yml +19 -18
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/go-test-functions.yml +14 -13
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/hyphenated-svg-attribute.yml +10 -9
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/kotlin-no-lateinit.yml +12 -11
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/kotlin-no-nullable-boolean.yml +11 -10
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/kotlin-no-println.yml +15 -14
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/kotlin-no-unnecessary-let.yml +10 -9
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/kotlin-no-unsafe-cast.yml +10 -9
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/kotlin-no-var.yml +11 -10
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/kotlin-prefer-data-class.yml +10 -9
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/kotlin-prefer-is-empty.yml +10 -9
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/no-aws-access-key-literal.yml +1 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/no-compile-call.yml +13 -12
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/no-flask-secret-key-literal.yml +1 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/no-hardcoded-password.yml +1 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/no-marshal-load.yml +12 -11
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/no-python-sql-string-concat.yml +12 -11
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/no-requests-verify-false.yml +13 -12
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/no-secret-in-env-var-name.yml +1 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/python-optional-type.yml +9 -8
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/reducible-list-comprehension.yml +8 -7
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/ruby-detect-path-traversal.yml +14 -13
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/ruby-symbol-to-proc-candidate.yml +8 -7
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/rust-no-chars-enumerate.yml +9 -8
- package/node_modules/pi-lens/rules/ast-grep-rules/rules-disabled/gorm-unbounded-preload.yml +7 -6
- package/node_modules/pi-lens/rules/ast-grep-rules/rules-disabled/shadow-err-variable.yml +6 -5
- package/node_modules/pi-lens/scripts/analyze-pi-lens-logs.mjs +262 -3
- package/node_modules/pi-lens/scripts/lib/latency-log-phases.mjs +125 -0
- package/package.json +6 -6
- package/node_modules/pi-lens/dist/chunk-3QWVOBZJ.js +0 -73
- package/node_modules/pi-lens/dist/chunk-BDR5MEZY.js +0 -25
- package/node_modules/pi-lens/dist/chunk-DBS736MA.js +0 -57
- package/node_modules/pi-lens/dist/chunk-I74RQGKA.js +0 -88
- package/node_modules/pi-lens/dist/chunk-IK4YS3KC.js +0 -25
- package/node_modules/pi-lens/dist/chunk-JKOZ2Z4U.js +0 -20
- package/node_modules/pi-lens/dist/chunk-TQHOKMVZ.js +0 -28
- package/node_modules/pi-lens/dist/chunk-VS2L7QDI.js +0 -25
- package/node_modules/pi-lens/dist/chunk-ZPFLHB3R.js +0 -28
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
createReadGuardEditBatchSummary,
|
|
4
|
+
displayedMessage,
|
|
4
5
|
findingIdentity,
|
|
5
6
|
getReadGuardCorrelationId,
|
|
6
7
|
logReadGuardEvent,
|
|
8
|
+
messageIsCutWhenDisplayed,
|
|
7
9
|
normalizeMessage,
|
|
8
10
|
sanitizeCorrelationId,
|
|
9
11
|
stableFindingId
|
|
10
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-AOQKQWZU.js";
|
|
11
13
|
import {
|
|
12
14
|
mapWithConcurrency
|
|
13
15
|
} from "./chunk-XIMYZ3JA.js";
|
|
14
16
|
import {
|
|
17
|
+
canWriteAnalysisRoot,
|
|
15
18
|
classifyCascadeWaitTier,
|
|
16
19
|
classifyServerWaitTier,
|
|
17
20
|
declinesLooseFileRoot,
|
|
@@ -38,24 +41,24 @@ import {
|
|
|
38
41
|
resolveLspServerCwd,
|
|
39
42
|
serverTraits,
|
|
40
43
|
withLspProjectCodePermission
|
|
41
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-DBAHJFBU.js";
|
|
42
45
|
import {
|
|
43
46
|
findLocalOpengrepConfig
|
|
44
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-2SD2CGVH.js";
|
|
45
48
|
import {
|
|
46
49
|
emitBounded
|
|
47
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-NLRKB32C.js";
|
|
48
51
|
import {
|
|
49
52
|
loadProjectSnapshot,
|
|
50
53
|
readJsonCache
|
|
51
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-HTUG7ZFK.js";
|
|
52
55
|
import {
|
|
53
56
|
acquireWorkspaceSweepHold,
|
|
54
57
|
configureLspServiceLifecycle,
|
|
55
58
|
getOwnedLspService,
|
|
56
59
|
peekOwnedLspService,
|
|
57
60
|
resetOwnedLspService
|
|
58
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-HGEE5LDW.js";
|
|
59
62
|
import {
|
|
60
63
|
RUNTIME_CONFIG,
|
|
61
64
|
collectForwardImportMtimes,
|
|
@@ -70,46 +73,40 @@ import {
|
|
|
70
73
|
lineTextAt,
|
|
71
74
|
pathBirthtimeMs,
|
|
72
75
|
scanDocumentContent
|
|
73
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-532X3OCZ.js";
|
|
74
77
|
import {
|
|
75
78
|
js_yaml_default
|
|
76
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-E3PNZDPH.js";
|
|
80
|
+
import {
|
|
81
|
+
HOOK_WALL_BUDGET_MS
|
|
82
|
+
} from "./chunk-CKEQFGLT.js";
|
|
77
83
|
import {
|
|
78
84
|
EXTENSION_TO_LSP_ID,
|
|
79
85
|
lspLanguageId,
|
|
80
86
|
resolveFilenameLanguage
|
|
81
|
-
} from "./chunk-
|
|
82
|
-
import {
|
|
83
|
-
HOOK_WALL_BUDGET_MS
|
|
84
|
-
} from "./chunk-CKEQFGLT.js";
|
|
87
|
+
} from "./chunk-AYDE7RFV.js";
|
|
85
88
|
import {
|
|
86
89
|
diagnosticsIpcPathForCwd,
|
|
87
90
|
requestWarmCodeActions,
|
|
88
91
|
requestWarmDiagnostics
|
|
89
|
-
} from "./chunk-
|
|
90
|
-
import {
|
|
91
|
-
CONTENT_HASH_MAX_BYTES,
|
|
92
|
-
hashContentBytes,
|
|
93
|
-
hashFileBytes,
|
|
94
|
-
stampContentBytes
|
|
95
|
-
} from "./chunk-W7TY6HYX.js";
|
|
92
|
+
} from "./chunk-YVPB5YGO.js";
|
|
96
93
|
import {
|
|
97
94
|
bounded,
|
|
98
95
|
untilAborted,
|
|
99
96
|
withDeadline,
|
|
100
97
|
withTimeout
|
|
101
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-3HZ6MNB2.js";
|
|
102
99
|
import {
|
|
103
100
|
findLocalZizmorConfig,
|
|
104
101
|
logSessionStart
|
|
105
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-ITAPXBIB.js";
|
|
106
103
|
import {
|
|
107
104
|
findLocalBinUpwards,
|
|
108
105
|
isProjectLocalBinPath
|
|
109
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-FVEEEEIM.js";
|
|
110
107
|
import {
|
|
111
108
|
getLspCapableKinds
|
|
112
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-TTGDTNSN.js";
|
|
113
110
|
import {
|
|
114
111
|
createGenerationMap,
|
|
115
112
|
createGenerationSource,
|
|
@@ -128,25 +125,31 @@ import {
|
|
|
128
125
|
sampleProcessTreeCpuPercent,
|
|
129
126
|
selectLivePeerInstances,
|
|
130
127
|
windowsExe
|
|
131
|
-
} from "./chunk-
|
|
128
|
+
} from "./chunk-DNB4ZQGN.js";
|
|
132
129
|
import {
|
|
133
130
|
createSingleFlight
|
|
134
|
-
} from "./chunk-
|
|
131
|
+
} from "./chunk-B4FAFEBP.js";
|
|
135
132
|
import {
|
|
136
133
|
SPECIAL_FILENAMES,
|
|
137
134
|
getLanguageId,
|
|
138
135
|
isJstsFactFile
|
|
139
|
-
} from "./chunk-
|
|
136
|
+
} from "./chunk-SRXYSLMW.js";
|
|
140
137
|
import {
|
|
141
138
|
PathKeyedMap,
|
|
142
139
|
detectFileRole
|
|
143
|
-
} from "./chunk-
|
|
140
|
+
} from "./chunk-6EIV3H7O.js";
|
|
141
|
+
import {
|
|
142
|
+
CONTENT_HASH_MAX_BYTES,
|
|
143
|
+
hashContentBytes,
|
|
144
|
+
hashFileBytes,
|
|
145
|
+
stampContentBytes
|
|
146
|
+
} from "./chunk-CIA7X2PZ.js";
|
|
144
147
|
import {
|
|
145
148
|
assertInstallAllowed,
|
|
146
149
|
isLspSpawnAllowedByTrust,
|
|
147
150
|
projectTrustDenialReason,
|
|
148
151
|
writeFileAtomic
|
|
149
|
-
} from "./chunk-
|
|
152
|
+
} from "./chunk-43KD3PPM.js";
|
|
150
153
|
import {
|
|
151
154
|
compareOrdinal,
|
|
152
155
|
incrementDegradationCount,
|
|
@@ -154,7 +157,7 @@ import {
|
|
|
154
157
|
recordDegradation,
|
|
155
158
|
recordDegradationOnce,
|
|
156
159
|
truncateForLedger
|
|
157
|
-
} from "./chunk-
|
|
160
|
+
} from "./chunk-AGEQRJ5A.js";
|
|
158
161
|
import {
|
|
159
162
|
freshnessFromMtime
|
|
160
163
|
} from "./chunk-S26LC76R.js";
|
|
@@ -167,9 +170,10 @@ import {
|
|
|
167
170
|
isTestMode,
|
|
168
171
|
logLatency,
|
|
169
172
|
nextModuleEvaluationOrdinal,
|
|
173
|
+
nonNegativeIntEnv,
|
|
170
174
|
phaseFinished,
|
|
171
175
|
phaseStarted
|
|
172
|
-
} from "./chunk-
|
|
176
|
+
} from "./chunk-K2GV34T2.js";
|
|
173
177
|
import {
|
|
174
178
|
BoundedFifoMap,
|
|
175
179
|
BoundedLruCache,
|
|
@@ -178,6 +182,7 @@ import {
|
|
|
178
182
|
isUnderDir,
|
|
179
183
|
isWindowsPath,
|
|
180
184
|
isWithinForm,
|
|
185
|
+
isWithinIdentity,
|
|
181
186
|
kernelPathIdentityAsync,
|
|
182
187
|
minimatch,
|
|
183
188
|
normalizeEphemeralMapKey,
|
|
@@ -192,7 +197,7 @@ import {
|
|
|
192
197
|
uriToDiskPath,
|
|
193
198
|
uriToPath,
|
|
194
199
|
walkUpDirs
|
|
195
|
-
} from "./chunk-
|
|
200
|
+
} from "./chunk-WLD6BGON.js";
|
|
196
201
|
import {
|
|
197
202
|
__commonJS,
|
|
198
203
|
__require,
|
|
@@ -3619,7 +3624,7 @@ var require_main = __commonJS({
|
|
|
3619
3624
|
ril_1.default.install();
|
|
3620
3625
|
var path18 = __importStar(__require("path"));
|
|
3621
3626
|
var os3 = __importStar(__require("os"));
|
|
3622
|
-
var
|
|
3627
|
+
var fs13 = __importStar(__require("fs"));
|
|
3623
3628
|
var crypto_1 = __require("crypto");
|
|
3624
3629
|
var net_1 = __require("net");
|
|
3625
3630
|
var api_1 = require_api();
|
|
@@ -3760,7 +3765,7 @@ var require_main = __commonJS({
|
|
|
3760
3765
|
}
|
|
3761
3766
|
let randomLength = 32;
|
|
3762
3767
|
const fixedLength = "/lsp-.sock".length;
|
|
3763
|
-
const tmpDir =
|
|
3768
|
+
const tmpDir = fs13.realpathSync(XDG_RUNTIME_DIR ?? os3.tmpdir());
|
|
3764
3769
|
const limit = safeIpcPathLengths.get(process.platform);
|
|
3765
3770
|
if (limit !== void 0) {
|
|
3766
3771
|
randomLength = Math.min(limit - tmpDir.length - fixedLength, randomLength);
|
|
@@ -3873,7 +3878,7 @@ var CASCADE_DIAGNOSTICS_TTL_MS = 24e4;
|
|
|
3873
3878
|
|
|
3874
3879
|
// dist/clients/lsp/index.js
|
|
3875
3880
|
import * as nodeFs2 from "node:fs";
|
|
3876
|
-
import
|
|
3881
|
+
import fs12 from "node:fs/promises";
|
|
3877
3882
|
import os2 from "node:os";
|
|
3878
3883
|
import path17 from "node:path";
|
|
3879
3884
|
import { pathToFileURL as pathToFileURL3, URL as URL3 } from "node:url";
|
|
@@ -4052,7 +4057,7 @@ async function importTargetsToAnnounce(cwd, importers, onScope) {
|
|
|
4052
4057
|
reason: `resolved the imports of ${CREATED_IMPORT_SCAN_MAX_FILES} of ${importers.length} files in one diagnostics call`
|
|
4053
4058
|
});
|
|
4054
4059
|
}
|
|
4055
|
-
const { extractForwardImports } = await import("./chunk-
|
|
4060
|
+
const { extractForwardImports } = await import("./chunk-4HNBY7S7.js");
|
|
4056
4061
|
const targets = /* @__PURE__ */ new Set();
|
|
4057
4062
|
const reexports = /* @__PURE__ */ new Map();
|
|
4058
4063
|
let resolved2 = 0;
|
|
@@ -4535,6 +4540,21 @@ function configDisabledAuxiliaryLspServerIds(getFlag) {
|
|
|
4535
4540
|
function enabledOptInAuxiliaryLspServerIds(getFlag) {
|
|
4536
4541
|
return new Set(AUXILIARY_LSP_PROFILES.flatMap((p) => !p.enabledByDefault && isEnabledByConfiguration(p, getFlag) ? [p.serverId] : []));
|
|
4537
4542
|
}
|
|
4543
|
+
function auxiliaryServersNotRun(getFlag) {
|
|
4544
|
+
return /* @__PURE__ */ new Set([
|
|
4545
|
+
...configDisabledAuxiliaryLspServerIds(getFlag),
|
|
4546
|
+
...enabledOptInAuxiliaryLspServerIds(getFlag)
|
|
4547
|
+
]);
|
|
4548
|
+
}
|
|
4549
|
+
function auxiliaryNotRunSentences(notRunServerIds, switchedOffLabel = "Switched off, not run") {
|
|
4550
|
+
const ids = [...notRunServerIds];
|
|
4551
|
+
const switchedOff = ids.filter((id) => !isOptInAuxiliaryServerId(id));
|
|
4552
|
+
const optIn = ids.filter((id) => isOptInAuxiliaryServerId(id));
|
|
4553
|
+
return [
|
|
4554
|
+
...switchedOff.length > 0 ? [`${switchedOffLabel}: ${switchedOff.join(", ")}.`] : [],
|
|
4555
|
+
...optIn.length > 0 ? [`Opt-in, not run by this check: ${optIn.join(", ")}.`] : []
|
|
4556
|
+
];
|
|
4557
|
+
}
|
|
4538
4558
|
function isEnabledByConfiguration(profile, getFlag) {
|
|
4539
4559
|
if (!profile.enabledByDefault) {
|
|
4540
4560
|
return profile.optInFlag !== void 0 && getFlag(profile.optInFlag) === true;
|
|
@@ -4674,10 +4694,7 @@ var DRIFT_TRACK_CAP = 512;
|
|
|
4674
4694
|
var DEFAULT_DRIFT_CHECK_INTERVAL_MS = 1e4;
|
|
4675
4695
|
var SWEEP_KEY = "open-document-drift";
|
|
4676
4696
|
function driftCheckIntervalMs() {
|
|
4677
|
-
|
|
4678
|
-
if (!Number.isFinite(raw) || raw < 0)
|
|
4679
|
-
return DEFAULT_DRIFT_CHECK_INTERVAL_MS;
|
|
4680
|
-
return Math.floor(raw);
|
|
4697
|
+
return nonNegativeIntEnv("PI_LENS_LSP_DRIFT_CHECK_MS", DEFAULT_DRIFT_CHECK_INTERVAL_MS);
|
|
4681
4698
|
}
|
|
4682
4699
|
var DocumentDriftTracker = class {
|
|
4683
4700
|
/** Insertion-ordered; the sweep cursor walks it round-robin. */
|
|
@@ -5320,7 +5337,6 @@ function restoreLineEndings(text, ending) {
|
|
|
5320
5337
|
|
|
5321
5338
|
// dist/clients/partial-edit-apply.js
|
|
5322
5339
|
import { createHash as createHash3 } from "node:crypto";
|
|
5323
|
-
import * as fs3 from "node:fs";
|
|
5324
5340
|
var MAX_APPLIED_RECORDS_PER_FILE = 8;
|
|
5325
5341
|
var MAX_APPLIED_RECORD_FILES = 64;
|
|
5326
5342
|
function editPairDigest(oldText, newText) {
|
|
@@ -5378,7 +5394,7 @@ var PartialApplyRecordStore = class {
|
|
|
5378
5394
|
};
|
|
5379
5395
|
function hashFile(filePath) {
|
|
5380
5396
|
try {
|
|
5381
|
-
return
|
|
5397
|
+
return hashFileBytes(filePath);
|
|
5382
5398
|
} catch {
|
|
5383
5399
|
return void 0;
|
|
5384
5400
|
}
|
|
@@ -5386,10 +5402,10 @@ function hashFile(filePath) {
|
|
|
5386
5402
|
|
|
5387
5403
|
// dist/clients/read-guard.js
|
|
5388
5404
|
import { constants as bufferConstants } from "node:buffer";
|
|
5389
|
-
import * as
|
|
5405
|
+
import * as fs4 from "node:fs";
|
|
5390
5406
|
|
|
5391
5407
|
// dist/clients/file-time.js
|
|
5392
|
-
import * as
|
|
5408
|
+
import * as fs3 from "node:fs";
|
|
5393
5409
|
import * as path4 from "node:path";
|
|
5394
5410
|
var globalState = {
|
|
5395
5411
|
reads: /* @__PURE__ */ new Map()
|
|
@@ -5482,7 +5498,7 @@ var FileTimeError = class extends Error {
|
|
|
5482
5498
|
};
|
|
5483
5499
|
function createStamp(filePath) {
|
|
5484
5500
|
try {
|
|
5485
|
-
const stats =
|
|
5501
|
+
const stats = fs3.statSync(filePath);
|
|
5486
5502
|
return {
|
|
5487
5503
|
readAt: /* @__PURE__ */ new Date(),
|
|
5488
5504
|
mtime: stats.mtime.getTime(),
|
|
@@ -5717,7 +5733,7 @@ var READ_BINDING_MAX_BYTES = 4 * 1024 * 1024;
|
|
|
5717
5733
|
var ABSENT_SIZE = -1;
|
|
5718
5734
|
function observeAuthoredBytes(filePath, knownHash, authoredRanges) {
|
|
5719
5735
|
try {
|
|
5720
|
-
const stat3 =
|
|
5736
|
+
const stat3 = fs4.statSync(filePath);
|
|
5721
5737
|
const hash = knownHash !== void 0 ? knownHash : stat3.size <= READ_BINDING_MAX_BYTES ? hashFileBytes(filePath) : void 0;
|
|
5722
5738
|
return {
|
|
5723
5739
|
size: stat3.size,
|
|
@@ -5726,7 +5742,7 @@ function observeAuthoredBytes(filePath, knownHash, authoredRanges) {
|
|
|
5726
5742
|
...hash !== void 0 && { hash },
|
|
5727
5743
|
...authoredRanges !== void 0 && { authoredRanges },
|
|
5728
5744
|
...authoredRanges !== void 0 && {
|
|
5729
|
-
authoredLineCount: splitLines(
|
|
5745
|
+
authoredLineCount: splitLines(fs4.readFileSync(filePath, "utf-8")).length
|
|
5730
5746
|
}
|
|
5731
5747
|
};
|
|
5732
5748
|
} catch {
|
|
@@ -5758,7 +5774,7 @@ function isValidAuthoredRanges(value) {
|
|
|
5758
5774
|
function authoredBytesIntact(filePath, authored) {
|
|
5759
5775
|
let stat3;
|
|
5760
5776
|
try {
|
|
5761
|
-
stat3 =
|
|
5777
|
+
stat3 = fs4.statSync(filePath);
|
|
5762
5778
|
} catch {
|
|
5763
5779
|
return authored.size === ABSENT_SIZE;
|
|
5764
5780
|
}
|
|
@@ -5816,7 +5832,7 @@ var READ_GUARD_MAX_CHECKED_PATHS_PER_CALL = 128;
|
|
|
5816
5832
|
var READ_GUARD_IDLE_EVICT_MS_DEFAULT = 30 * 6e4;
|
|
5817
5833
|
function _currentContentMatchesBindingForTests(filePath, binding) {
|
|
5818
5834
|
try {
|
|
5819
|
-
const content =
|
|
5835
|
+
const content = fs4.readFileSync(filePath, "utf-8");
|
|
5820
5836
|
const boundContent = binding.fullFile ? content : splitLines(content).slice(binding.offset - 1, binding.offset - 1 + binding.limit).join("\n");
|
|
5821
5837
|
return hashContentBytes(Buffer.from(boundContent, "utf8")) === binding.hash;
|
|
5822
5838
|
} catch {
|
|
@@ -5884,8 +5900,8 @@ function scanFileLines(filePath, ranges, opts) {
|
|
|
5884
5900
|
const lines = /* @__PURE__ */ new Map();
|
|
5885
5901
|
let fd;
|
|
5886
5902
|
try {
|
|
5887
|
-
fd =
|
|
5888
|
-
const size =
|
|
5903
|
+
fd = fs4.openSync(filePath, "r");
|
|
5904
|
+
const size = fs4.fstatSync(fd).size;
|
|
5889
5905
|
if (size > SCAN_MAX_BYTES)
|
|
5890
5906
|
return overByteGate(filePath, size);
|
|
5891
5907
|
const byteBudget = size > 0 ? size : SCAN_MAX_BYTES + 1;
|
|
@@ -5896,7 +5912,7 @@ function scanFileLines(filePath, ranges, opts) {
|
|
|
5896
5912
|
let parts = [];
|
|
5897
5913
|
const keepLine = () => lines.set(lineNo, Buffer.concat(parts).toString("utf8"));
|
|
5898
5914
|
while (consumed < byteBudget && !done(lineNo)) {
|
|
5899
|
-
const n =
|
|
5915
|
+
const n = fs4.readSync(fd, chunk, 0, Math.min(chunk.length, byteBudget - consumed), null);
|
|
5900
5916
|
if (n === 0)
|
|
5901
5917
|
break;
|
|
5902
5918
|
consumed += n;
|
|
@@ -5952,7 +5968,7 @@ function scanFileLines(filePath, ranges, opts) {
|
|
|
5952
5968
|
return void 0;
|
|
5953
5969
|
} finally {
|
|
5954
5970
|
if (fd !== void 0)
|
|
5955
|
-
|
|
5971
|
+
fs4.closeSync(fd);
|
|
5956
5972
|
}
|
|
5957
5973
|
}
|
|
5958
5974
|
function overByteGate(filePath, bytes) {
|
|
@@ -5984,7 +6000,7 @@ function currentLinesMatchReadSnapshot(filePath, read, [startLine, endLine]) {
|
|
|
5984
6000
|
}
|
|
5985
6001
|
let lines;
|
|
5986
6002
|
try {
|
|
5987
|
-
lines = splitLines(
|
|
6003
|
+
lines = splitLines(fs4.readFileSync(filePath, "utf-8"));
|
|
5988
6004
|
} catch {
|
|
5989
6005
|
return {
|
|
5990
6006
|
checked: true,
|
|
@@ -6752,7 +6768,7 @@ Re-read the relevant section, then retry the edit using the current line range/c
|
|
|
6752
6768
|
*/
|
|
6753
6769
|
isNewFile(filePath) {
|
|
6754
6770
|
try {
|
|
6755
|
-
return !
|
|
6771
|
+
return !fs4.existsSync(filePath);
|
|
6756
6772
|
} catch {
|
|
6757
6773
|
return true;
|
|
6758
6774
|
}
|
|
@@ -7127,7 +7143,7 @@ Re-read the relevant section, then retry the edit using the current line range/c
|
|
|
7127
7143
|
if (!Array.isArray(records) || records.length === 0)
|
|
7128
7144
|
continue;
|
|
7129
7145
|
const filePath = this.key(rawPath);
|
|
7130
|
-
const exists =
|
|
7146
|
+
const exists = fs4.existsSync(filePath);
|
|
7131
7147
|
for (const read of records) {
|
|
7132
7148
|
const id = read?.toolCallId;
|
|
7133
7149
|
if (!exists || typeof id !== "string" || !onBranch.has(id)) {
|
|
@@ -7199,7 +7215,7 @@ Re-read the relevant section, then retry the edit using the current line range/c
|
|
|
7199
7215
|
const observed = observeAuthoredBytes(filePath, opts?.contentHash, nextRanges);
|
|
7200
7216
|
const { authoredRanges: _observedRanges, ...observedWithoutRanges } = observed;
|
|
7201
7217
|
const composedRanges = nextRanges !== void 0 && keeps && existing?.authoredRanges !== void 0 ? composeAuthoredRanges(existing, nextRanges, observed.authoredLineCount) : nextRanges;
|
|
7202
|
-
const toolCallId = opts?.toolCallId ?? existing?.toolCallId;
|
|
7218
|
+
const toolCallId = sanitizeCorrelationId(opts?.toolCallId) ?? existing?.toolCallId;
|
|
7203
7219
|
this.writtenThisSession.delete(filePath);
|
|
7204
7220
|
this.writtenThisSession.set(filePath, {
|
|
7205
7221
|
...observedWithoutRanges,
|
|
@@ -7223,7 +7239,7 @@ Re-read the relevant section, then retry the edit using the current line range/c
|
|
|
7223
7239
|
let evidence;
|
|
7224
7240
|
try {
|
|
7225
7241
|
evidence = writtenContent !== void 0 ? deliveredLineEvidence(writtenContent, 1) : {
|
|
7226
|
-
lineCount: splitLines(
|
|
7242
|
+
lineCount: splitLines(fs4.readFileSync(filePath, "utf-8")).length,
|
|
7227
7243
|
lineHashes: void 0
|
|
7228
7244
|
};
|
|
7229
7245
|
} catch {
|
|
@@ -7249,7 +7265,7 @@ Re-read the relevant section, then retry the edit using the current line range/c
|
|
|
7249
7265
|
canIgnoreStalenessByHashes(filePath, reads, touchedLines, editRanges) {
|
|
7250
7266
|
let lines;
|
|
7251
7267
|
try {
|
|
7252
|
-
lines = splitLines(
|
|
7268
|
+
lines = splitLines(fs4.readFileSync(filePath, "utf-8"));
|
|
7253
7269
|
} catch {
|
|
7254
7270
|
return false;
|
|
7255
7271
|
}
|
|
@@ -7389,7 +7405,7 @@ Re-read the relevant section, then retry the edit using the current line range/c
|
|
|
7389
7405
|
}
|
|
7390
7406
|
let lines;
|
|
7391
7407
|
try {
|
|
7392
|
-
lines = splitLines(
|
|
7408
|
+
lines = splitLines(fs4.readFileSync(filePath, "utf-8"));
|
|
7393
7409
|
} catch {
|
|
7394
7410
|
return void 0;
|
|
7395
7411
|
}
|
|
@@ -7597,6 +7613,7 @@ var ANSI_C_ESCAPES = new Map(Object.entries({
|
|
|
7597
7613
|
'"': 34,
|
|
7598
7614
|
"?": 63
|
|
7599
7615
|
}).map(([escape, value]) => [escape.charCodeAt(0), value]));
|
|
7616
|
+
var MOVE_CLUSTER_LETTERS = new Set("abdfilnprRsvx");
|
|
7600
7617
|
|
|
7601
7618
|
// dist/clients/opaque-mutation-scan.js
|
|
7602
7619
|
var OPAQUE_HASH_BUDGET_BYTES = 8 * 1024 * 1024;
|
|
@@ -8304,7 +8321,7 @@ function recordLspMutationOutcome(context, status) {
|
|
|
8304
8321
|
|
|
8305
8322
|
// dist/clients/lsp/diagnostic-binding.js
|
|
8306
8323
|
import { createHash as createHash4 } from "node:crypto";
|
|
8307
|
-
import * as
|
|
8324
|
+
import * as fs5 from "node:fs";
|
|
8308
8325
|
function resolveTouchVerdict(input) {
|
|
8309
8326
|
const unavailableIds = [...new Set(input.unavailablePrimaryServerIds ?? [])];
|
|
8310
8327
|
if (unavailableIds.length > 0) {
|
|
@@ -8406,7 +8423,7 @@ function createDiskBindingCache() {
|
|
|
8406
8423
|
return "unknown";
|
|
8407
8424
|
let stat3;
|
|
8408
8425
|
try {
|
|
8409
|
-
stat3 =
|
|
8426
|
+
stat3 = fs5.statSync(filePath);
|
|
8410
8427
|
} catch {
|
|
8411
8428
|
return "unknown";
|
|
8412
8429
|
}
|
|
@@ -8414,7 +8431,7 @@ function createDiskBindingCache() {
|
|
|
8414
8431
|
if (!cached || cached.mtimeMs !== stat3.mtimeMs || cached.size !== stat3.size) {
|
|
8415
8432
|
let diskHash;
|
|
8416
8433
|
try {
|
|
8417
|
-
diskHash = hashDiagnosticContent(
|
|
8434
|
+
diskHash = hashDiagnosticContent(fs5.readFileSync(filePath, "utf-8"));
|
|
8418
8435
|
} catch {
|
|
8419
8436
|
return "unknown";
|
|
8420
8437
|
}
|
|
@@ -8507,12 +8524,12 @@ async function runPerServerGroups(groups, concurrency, processGroup, signal) {
|
|
|
8507
8524
|
import path13 from "node:path";
|
|
8508
8525
|
|
|
8509
8526
|
// dist/clients/widget-state.js
|
|
8510
|
-
import { readFileSync as
|
|
8527
|
+
import { readFileSync as readFileSync6 } from "node:fs";
|
|
8511
8528
|
import { stat } from "node:fs/promises";
|
|
8512
8529
|
import { pathToFileURL } from "node:url";
|
|
8513
8530
|
|
|
8514
8531
|
// dist/clients/diagnostic-line-freshness.js
|
|
8515
|
-
import * as
|
|
8532
|
+
import * as fs6 from "node:fs";
|
|
8516
8533
|
|
|
8517
8534
|
// dist/clients/stale-marker.js
|
|
8518
8535
|
var STALE_LINE_MARKER = "[stale \u2014 re-run to confirm]";
|
|
@@ -8529,13 +8546,13 @@ function rememberInSharedCache(cache, filePath, entry) {
|
|
|
8529
8546
|
cache.set(filePath, entry);
|
|
8530
8547
|
}
|
|
8531
8548
|
function countNewlinesChunked(filePath, sizeBytes) {
|
|
8532
|
-
const fd =
|
|
8549
|
+
const fd = fs6.openSync(filePath, "r");
|
|
8533
8550
|
try {
|
|
8534
8551
|
const buffer = Buffer.allocUnsafe(Math.min(NEWLINE_SCAN_CHUNK_BYTES, sizeBytes) || 1);
|
|
8535
8552
|
let newlineCount = 0;
|
|
8536
8553
|
let position = 0;
|
|
8537
8554
|
while (position < sizeBytes) {
|
|
8538
|
-
const bytesRead =
|
|
8555
|
+
const bytesRead = fs6.readSync(fd, buffer, 0, buffer.length, position);
|
|
8539
8556
|
if (bytesRead <= 0)
|
|
8540
8557
|
break;
|
|
8541
8558
|
for (let i = 0; i < bytesRead; i++) {
|
|
@@ -8546,13 +8563,13 @@ function countNewlinesChunked(filePath, sizeBytes) {
|
|
|
8546
8563
|
}
|
|
8547
8564
|
return newlineCount;
|
|
8548
8565
|
} finally {
|
|
8549
|
-
|
|
8566
|
+
fs6.closeSync(fd);
|
|
8550
8567
|
}
|
|
8551
8568
|
}
|
|
8552
8569
|
function getCachedLineCount(filePath, cache = sharedLineCountCache) {
|
|
8553
8570
|
let stat3;
|
|
8554
8571
|
try {
|
|
8555
|
-
stat3 =
|
|
8572
|
+
stat3 = fs6.statSync(filePath);
|
|
8556
8573
|
} catch {
|
|
8557
8574
|
return void 0;
|
|
8558
8575
|
}
|
|
@@ -8607,7 +8624,7 @@ function demotePastEofDiagnostics(args) {
|
|
|
8607
8624
|
}
|
|
8608
8625
|
let sizeBytes;
|
|
8609
8626
|
try {
|
|
8610
|
-
sizeBytes =
|
|
8627
|
+
sizeBytes = fs6.statSync(args.filePath).size;
|
|
8611
8628
|
} catch {
|
|
8612
8629
|
sizeBytes = 0;
|
|
8613
8630
|
}
|
|
@@ -8637,8 +8654,8 @@ function resyncDocumentOnPastEof(filePath) {
|
|
|
8637
8654
|
void (async () => {
|
|
8638
8655
|
try {
|
|
8639
8656
|
const [{ getOwnedLspService: getOwnedLspService2 }, content] = await Promise.all([
|
|
8640
|
-
import("./chunk-
|
|
8641
|
-
|
|
8657
|
+
import("./chunk-OYXD2MOM.js"),
|
|
8658
|
+
fs6.promises.readFile(filePath, "utf-8")
|
|
8642
8659
|
]);
|
|
8643
8660
|
await getOwnedLspService2().openFile(filePath, content, { preserveDiagnostics: false });
|
|
8644
8661
|
} catch {
|
|
@@ -8735,7 +8752,7 @@ function inlineBlockerPlaces(blockers, filePath) {
|
|
|
8735
8752
|
}
|
|
8736
8753
|
|
|
8737
8754
|
// dist/clients/diagnostic-dispositions.js
|
|
8738
|
-
import * as
|
|
8755
|
+
import * as fs7 from "node:fs";
|
|
8739
8756
|
import * as path9 from "node:path";
|
|
8740
8757
|
|
|
8741
8758
|
// dist/clients/disposition-logger.js
|
|
@@ -8825,7 +8842,7 @@ function statePath(cwd) {
|
|
|
8825
8842
|
return path9.join(getProjectDataDir(cwd), "cache", "diagnostic-dispositions.json");
|
|
8826
8843
|
}
|
|
8827
8844
|
var stateCache = null;
|
|
8828
|
-
var dispositionStatSync =
|
|
8845
|
+
var dispositionStatSync = fs7.statSync;
|
|
8829
8846
|
function hasAnyDispositionMarks(cwd) {
|
|
8830
8847
|
return Boolean(readState(cwd).dispositions) || hasDeferredThisSession(cwd);
|
|
8831
8848
|
}
|
|
@@ -8839,7 +8856,7 @@ function hasStrictDispositionMarks(cwd) {
|
|
|
8839
8856
|
}
|
|
8840
8857
|
return false;
|
|
8841
8858
|
}
|
|
8842
|
-
var multiFileReadFileSync =
|
|
8859
|
+
var multiFileReadFileSync = fs7.readFileSync;
|
|
8843
8860
|
function readState(cwd) {
|
|
8844
8861
|
const p = statePath(cwd);
|
|
8845
8862
|
let stat3;
|
|
@@ -8864,7 +8881,7 @@ function readState(cwd) {
|
|
|
8864
8881
|
}
|
|
8865
8882
|
let state4;
|
|
8866
8883
|
try {
|
|
8867
|
-
const parsed = JSON.parse(
|
|
8884
|
+
const parsed = JSON.parse(fs7.readFileSync(p, "utf-8"));
|
|
8868
8885
|
state4 = parsed && typeof parsed === "object" ? parsed : {};
|
|
8869
8886
|
} catch {
|
|
8870
8887
|
state4 = {};
|
|
@@ -8884,6 +8901,36 @@ function getDisposition(cwd, anchor) {
|
|
|
8884
8901
|
function resetDeferredDispositions() {
|
|
8885
8902
|
deferredByCwd.clear();
|
|
8886
8903
|
}
|
|
8904
|
+
function displayFormAliases(candidates) {
|
|
8905
|
+
const cut = /* @__PURE__ */ new Map();
|
|
8906
|
+
const owners = /* @__PURE__ */ new Map();
|
|
8907
|
+
for (const candidate of candidates) {
|
|
8908
|
+
if (!messageIsCutWhenDisplayed(candidate.message))
|
|
8909
|
+
continue;
|
|
8910
|
+
const form = displayedMessage(candidate.message);
|
|
8911
|
+
cut.set(candidate, form);
|
|
8912
|
+
const key = normalizeMessage2(form);
|
|
8913
|
+
const owner = owners.get(key);
|
|
8914
|
+
const message = normalizeMessage2(candidate.message);
|
|
8915
|
+
if (owner === void 0)
|
|
8916
|
+
owners.set(key, /* @__PURE__ */ new Set([message]));
|
|
8917
|
+
else
|
|
8918
|
+
owner.add(message);
|
|
8919
|
+
}
|
|
8920
|
+
if (cut.size === 0)
|
|
8921
|
+
return /* @__PURE__ */ new Map();
|
|
8922
|
+
for (const candidate of candidates) {
|
|
8923
|
+
const message = normalizeMessage2(candidate.message);
|
|
8924
|
+
owners.get(message)?.add(message);
|
|
8925
|
+
}
|
|
8926
|
+
const aliases = /* @__PURE__ */ new Map();
|
|
8927
|
+
for (const [candidate, form] of cut) {
|
|
8928
|
+
if ((owners.get(normalizeMessage2(form))?.size ?? 0) === 1) {
|
|
8929
|
+
aliases.set(candidate, form);
|
|
8930
|
+
}
|
|
8931
|
+
}
|
|
8932
|
+
return aliases;
|
|
8933
|
+
}
|
|
8887
8934
|
function applyDispositions(diagnostics, cwd, filePath, content) {
|
|
8888
8935
|
if (!diagnostics.length)
|
|
8889
8936
|
return diagnostics;
|
|
@@ -8891,15 +8938,26 @@ function applyDispositions(diagnostics, cwd, filePath, content) {
|
|
|
8891
8938
|
if (nothingToApply(dispositions, cwd))
|
|
8892
8939
|
return diagnostics;
|
|
8893
8940
|
const deferred = deferredAnchorsFor(cwd);
|
|
8941
|
+
const aliases = displayFormAliases(diagnostics);
|
|
8894
8942
|
return diagnostics.filter((d) => {
|
|
8895
8943
|
const { strict, weak } = anchorsForDiagnostic(cwd, filePath, d, content);
|
|
8896
8944
|
const isBlocking2 = d.semantic === "blocking";
|
|
8897
|
-
|
|
8945
|
+
const alias = aliases.get(d);
|
|
8946
|
+
let aliasStrict;
|
|
8947
|
+
let aliasWeak;
|
|
8948
|
+
if (alias !== void 0) {
|
|
8949
|
+
const aliasAnchors = anchorsForDiagnostic(cwd, filePath, { ...d, message: alias }, content);
|
|
8950
|
+
aliasStrict = aliasAnchors.strict;
|
|
8951
|
+
if (!isBlocking2)
|
|
8952
|
+
aliasWeak = aliasAnchors.weak;
|
|
8953
|
+
}
|
|
8954
|
+
if (!isBlocking2 && (deferred?.has(weak) || aliasWeak !== void 0 && deferred?.has(aliasWeak))) {
|
|
8898
8955
|
return false;
|
|
8899
8956
|
}
|
|
8900
|
-
if (dispositions?.[strict]?.disposition === "false-positive")
|
|
8957
|
+
if (dispositions?.[strict]?.disposition === "false-positive" || aliasStrict !== void 0 && dispositions?.[aliasStrict]?.disposition === "false-positive") {
|
|
8901
8958
|
return false;
|
|
8902
|
-
|
|
8959
|
+
}
|
|
8960
|
+
if (!isBlocking2 && (dispositions?.[weak]?.disposition === "suppress" || aliasWeak !== void 0 && dispositions?.[aliasWeak]?.disposition === "suppress")) {
|
|
8903
8961
|
return false;
|
|
8904
8962
|
}
|
|
8905
8963
|
return true;
|
|
@@ -8931,6 +8989,52 @@ function applyWeakDispositions(diagnostics, cwd, filePath) {
|
|
|
8931
8989
|
});
|
|
8932
8990
|
}
|
|
8933
8991
|
function applyDispositionsMultiFile(diagnostics, cwd, filePathOf) {
|
|
8992
|
+
return filterPerFileGroup(diagnostics, cwd, filePathOf, (group, filePath) => {
|
|
8993
|
+
let content = "";
|
|
8994
|
+
try {
|
|
8995
|
+
content = multiFileReadFileSync(filePath, "utf-8");
|
|
8996
|
+
} catch {
|
|
8997
|
+
}
|
|
8998
|
+
return applyDispositions(group, cwd, filePath, content);
|
|
8999
|
+
});
|
|
9000
|
+
}
|
|
9001
|
+
function applyWeakDispositionsMultiFile(diagnostics, cwd, filePathOf) {
|
|
9002
|
+
return filterPerFileGroup(diagnostics, cwd, filePathOf, (group, filePath) => applyWeakDispositions(group, cwd, filePath));
|
|
9003
|
+
}
|
|
9004
|
+
function trustedCitedOwnerContent(anchor, cwd, read) {
|
|
9005
|
+
if (!isWithinIdentity(anchor, cwd))
|
|
9006
|
+
return void 0;
|
|
9007
|
+
return read();
|
|
9008
|
+
}
|
|
9009
|
+
function cachedAnchorMarks(input) {
|
|
9010
|
+
const { anchor, cwd, rows, cited, strictAnchors } = input;
|
|
9011
|
+
if (!cited && !strictAnchors)
|
|
9012
|
+
return { marks: "weak-only" };
|
|
9013
|
+
let stat3;
|
|
9014
|
+
try {
|
|
9015
|
+
stat3 = fs7.statSync(anchor);
|
|
9016
|
+
} catch {
|
|
9017
|
+
return cited ? { marks: "refused" } : { marks: "weak-only" };
|
|
9018
|
+
}
|
|
9019
|
+
let content;
|
|
9020
|
+
if (cited) {
|
|
9021
|
+
content = trustedCitedOwnerContent(anchor, cwd, () => input.readContent(anchor, stat3));
|
|
9022
|
+
if (content === void 0)
|
|
9023
|
+
return { marks: "refused" };
|
|
9024
|
+
}
|
|
9025
|
+
if (!strictAnchors)
|
|
9026
|
+
return { marks: "weak-only" };
|
|
9027
|
+
const referenceMs = rows.reduce((latest, row) => Math.max(latest, row.observedAt ?? 0), 0);
|
|
9028
|
+
if (referenceMs > 0 && freshnessFromMtime({ mtimeMs: stat3.mtimeMs, referenceMs }).verdict === "stale") {
|
|
9029
|
+
return { marks: "weak-only" };
|
|
9030
|
+
}
|
|
9031
|
+
content ??= input.readContent(anchor, stat3);
|
|
9032
|
+
if (content === void 0) {
|
|
9033
|
+
return { marks: "weak-only" };
|
|
9034
|
+
}
|
|
9035
|
+
return { marks: "strict", content };
|
|
9036
|
+
}
|
|
9037
|
+
function filterPerFileGroup(diagnostics, cwd, filePathOf, applyGroup) {
|
|
8934
9038
|
if (!diagnostics.length)
|
|
8935
9039
|
return diagnostics;
|
|
8936
9040
|
const dispositions = readState(cwd).dispositions;
|
|
@@ -8947,12 +9051,7 @@ function applyDispositionsMultiFile(diagnostics, cwd, filePathOf) {
|
|
|
8947
9051
|
}
|
|
8948
9052
|
const kept = /* @__PURE__ */ new Set();
|
|
8949
9053
|
for (const [filePath, group] of groups) {
|
|
8950
|
-
|
|
8951
|
-
try {
|
|
8952
|
-
content = multiFileReadFileSync(filePath, "utf-8");
|
|
8953
|
-
} catch {
|
|
8954
|
-
}
|
|
8955
|
-
for (const d of applyDispositions(group, cwd, filePath, content)) {
|
|
9054
|
+
for (const d of applyGroup(group, filePath)) {
|
|
8956
9055
|
kept.add(d);
|
|
8957
9056
|
}
|
|
8958
9057
|
}
|
|
@@ -8960,11 +9059,11 @@ function applyDispositionsMultiFile(diagnostics, cwd, filePathOf) {
|
|
|
8960
9059
|
}
|
|
8961
9060
|
|
|
8962
9061
|
// dist/clients/session-state-store.js
|
|
8963
|
-
import { promises as
|
|
9062
|
+
import { promises as fs8 } from "node:fs";
|
|
8964
9063
|
async function dropStaleFiles(widget, savedAt) {
|
|
8965
9064
|
const checked = await Promise.all(widget.files.map(async (file) => {
|
|
8966
9065
|
try {
|
|
8967
|
-
const st = await
|
|
9066
|
+
const st = await fs8.stat(file.filePath);
|
|
8968
9067
|
return freshnessFromMtime({
|
|
8969
9068
|
mtimeMs: st.mtimeMs,
|
|
8970
9069
|
referenceMs: savedAt,
|
|
@@ -9113,7 +9212,7 @@ function reconcileWidgetDisposition(cwd, target, _disposition, content) {
|
|
|
9113
9212
|
let source = content ?? target.content;
|
|
9114
9213
|
if (source === void 0) {
|
|
9115
9214
|
try {
|
|
9116
|
-
source =
|
|
9215
|
+
source = readFileSync6(target.filePath, "utf8");
|
|
9117
9216
|
} catch {
|
|
9118
9217
|
recordDegradationOnce({
|
|
9119
9218
|
kind: "widget-disposition-reconcile-fallback",
|
|
@@ -9123,13 +9222,58 @@ function reconcileWidgetDisposition(cwd, target, _disposition, content) {
|
|
|
9123
9222
|
source = "";
|
|
9124
9223
|
}
|
|
9125
9224
|
}
|
|
9126
|
-
const
|
|
9225
|
+
const groups = /* @__PURE__ */ new Map();
|
|
9226
|
+
for (const diagnostic of current) {
|
|
9227
|
+
const anchor = diagnostic.citedFile ?? target.filePath;
|
|
9228
|
+
const group = groups.get(anchor);
|
|
9229
|
+
if (group)
|
|
9230
|
+
group.push(diagnostic);
|
|
9231
|
+
else
|
|
9232
|
+
groups.set(anchor, [diagnostic]);
|
|
9233
|
+
}
|
|
9234
|
+
const citedMarks = /* @__PURE__ */ new Map();
|
|
9235
|
+
const citedAnchorMarks = (anchor, group) => {
|
|
9236
|
+
const hit = citedMarks.get(anchor);
|
|
9237
|
+
if (hit)
|
|
9238
|
+
return hit;
|
|
9239
|
+
const decision = cachedAnchorMarks({
|
|
9240
|
+
cwd,
|
|
9241
|
+
anchor,
|
|
9242
|
+
rows: group,
|
|
9243
|
+
cited: true,
|
|
9244
|
+
strictAnchors: true,
|
|
9245
|
+
// Best-effort like `applyDispositionsMultiFile`'s read, and through
|
|
9246
|
+
// this module's own reader so an anchor whose bytes cannot be had
|
|
9247
|
+
// still leaves its bounded `widget-mark-anchor-unreadable` record.
|
|
9248
|
+
readContent: (filePath) => readContentOrUndefined(filePath)
|
|
9249
|
+
});
|
|
9250
|
+
citedMarks.set(anchor, decision);
|
|
9251
|
+
return decision;
|
|
9252
|
+
};
|
|
9253
|
+
const active = /* @__PURE__ */ new Set();
|
|
9254
|
+
for (const [anchor, group] of groups) {
|
|
9255
|
+
if (anchor === target.filePath) {
|
|
9256
|
+
for (const d of applyDispositions(group, cwd, anchor, source)) {
|
|
9257
|
+
active.add(d);
|
|
9258
|
+
}
|
|
9259
|
+
continue;
|
|
9260
|
+
}
|
|
9261
|
+
const decision = citedAnchorMarks(anchor, group);
|
|
9262
|
+
const anchorContent = decision.marks === "strict" ? decision.content : "";
|
|
9263
|
+
for (const d of applyDispositions(group, cwd, anchor, anchorContent)) {
|
|
9264
|
+
active.add(d);
|
|
9265
|
+
}
|
|
9266
|
+
}
|
|
9127
9267
|
const normalized = current.flatMap((diagnostic) => {
|
|
9128
|
-
const
|
|
9129
|
-
const
|
|
9268
|
+
const anchor = diagnostic.citedFile ?? target.filePath;
|
|
9269
|
+
const decision = anchor === target.filePath ? void 0 : citedMarks.get(anchor);
|
|
9270
|
+
const refused = decision?.marks === "refused";
|
|
9271
|
+
const anchorContent = decision === void 0 ? source : decision.marks === "strict" ? decision.content : "";
|
|
9272
|
+
const { strict, weak } = anchorsForDiagnostic(cwd, anchor, diagnostic, anchorContent);
|
|
9273
|
+
const entry = refused ? void 0 : getDisposition(cwd, strict) ?? getDisposition(cwd, weak);
|
|
9130
9274
|
if (!active.has(diagnostic) && (entry?.disposition === "false-positive" || entry?.disposition === "suppress")) {
|
|
9131
9275
|
const { anchorSpan: _previousSpan, ...base } = diagnostic;
|
|
9132
|
-
const span = entry.disposition === "false-positive" ? strictAnchorSpan(
|
|
9276
|
+
const span = entry.disposition === "false-positive" ? strictAnchorSpan(anchorContent, diagnostic.line) : void 0;
|
|
9133
9277
|
return [
|
|
9134
9278
|
{
|
|
9135
9279
|
...base,
|
|
@@ -9198,6 +9342,7 @@ function exportWidgetState() {
|
|
|
9198
9342
|
...rec.uncheckedReason !== void 0 && {
|
|
9199
9343
|
uncheckedReason: rec.uncheckedReason
|
|
9200
9344
|
},
|
|
9345
|
+
...rec.uncheckedInapplicable && { uncheckedInapplicable: true },
|
|
9201
9346
|
touchedAt: rec.touchedAt
|
|
9202
9347
|
}))
|
|
9203
9348
|
};
|
|
@@ -9232,7 +9377,10 @@ function importWidgetState(state4) {
|
|
|
9232
9377
|
diagnosticCounts: countDiagnostics(migratedAllDiagnostics),
|
|
9233
9378
|
hasFinalDiagnosticsSnapshot: f.hasFinalDiagnosticsSnapshot ?? false,
|
|
9234
9379
|
...typeof f.uncheckedReason === "string" && {
|
|
9235
|
-
uncheckedReason: f.uncheckedReason
|
|
9380
|
+
uncheckedReason: f.uncheckedReason,
|
|
9381
|
+
...f.uncheckedInapplicable === true && {
|
|
9382
|
+
uncheckedInapplicable: true
|
|
9383
|
+
}
|
|
9236
9384
|
},
|
|
9237
9385
|
touchedAt: recordTouchedAt
|
|
9238
9386
|
});
|
|
@@ -9319,10 +9467,16 @@ function recordDiagnostics(filePath, diagnostics, writeIndex, observedAt, unchec
|
|
|
9319
9467
|
const observedTs = observedAt ?? Date.now();
|
|
9320
9468
|
const rec = getOrCreate(filePath, key);
|
|
9321
9469
|
commitDiagnostics(rec, filePath, normalizeDiagnostics(filePath, diagnostics, observedTs), observedTs, key);
|
|
9322
|
-
if (unchecked === void 0)
|
|
9470
|
+
if (unchecked === void 0) {
|
|
9323
9471
|
delete rec.uncheckedReason;
|
|
9324
|
-
|
|
9325
|
-
|
|
9472
|
+
delete rec.uncheckedInapplicable;
|
|
9473
|
+
} else {
|
|
9474
|
+
rec.uncheckedReason = unchecked.reason;
|
|
9475
|
+
if (unchecked.inapplicable)
|
|
9476
|
+
rec.uncheckedInapplicable = true;
|
|
9477
|
+
else
|
|
9478
|
+
delete rec.uncheckedInapplicable;
|
|
9479
|
+
}
|
|
9326
9480
|
return true;
|
|
9327
9481
|
}
|
|
9328
9482
|
function normalizeDiagnostics(filePath, diagnostics, observedTs) {
|
|
@@ -9345,7 +9499,7 @@ function normalizeDiagnostics(filePath, diagnostics, observedTs) {
|
|
|
9345
9499
|
var retentionIdentity = findingIdentity;
|
|
9346
9500
|
function readContentOrUndefined(filePath) {
|
|
9347
9501
|
try {
|
|
9348
|
-
return
|
|
9502
|
+
return readFileSync6(filePath, "utf8");
|
|
9349
9503
|
} catch {
|
|
9350
9504
|
recordDegradationOnce({
|
|
9351
9505
|
kind: "widget-mark-anchor-unreadable",
|
|
@@ -9668,6 +9822,12 @@ function getFileDiagnosticSummaries() {
|
|
|
9668
9822
|
warnings: rec.diagnosticCounts.warnings,
|
|
9669
9823
|
advisories: countAdvisories(live),
|
|
9670
9824
|
hasFinalSnapshot: rec.hasFinalDiagnosticsSnapshot,
|
|
9825
|
+
...rec.uncheckedReason !== void 0 && {
|
|
9826
|
+
uncheckedReason: rec.uncheckedReason
|
|
9827
|
+
},
|
|
9828
|
+
...rec.uncheckedInapplicable === true && {
|
|
9829
|
+
uncheckedInapplicable: true
|
|
9830
|
+
},
|
|
9671
9831
|
diagnostics: live.map((d) => ({ ...d }))
|
|
9672
9832
|
};
|
|
9673
9833
|
});
|
|
@@ -9873,8 +10033,8 @@ async function raceToCompletion(promises3, shouldComplete, options = { timeoutMs
|
|
|
9873
10033
|
}
|
|
9874
10034
|
|
|
9875
10035
|
// dist/clients/lsp/edits.js
|
|
9876
|
-
import
|
|
9877
|
-
import { readFileSync as
|
|
10036
|
+
import fs9 from "node:fs/promises";
|
|
10037
|
+
import { readFileSync as readFileSync7, realpathSync, statSync as statSync7 } from "node:fs";
|
|
9878
10038
|
import path10 from "node:path";
|
|
9879
10039
|
import { URL as URL2 } from "node:url";
|
|
9880
10040
|
|
|
@@ -9901,7 +10061,44 @@ function convertCharacterOffset(encoding, lineText, utf16Character) {
|
|
|
9901
10061
|
return [...prefix].length;
|
|
9902
10062
|
}
|
|
9903
10063
|
|
|
10064
|
+
// dist/clients/write-source-file.js
|
|
10065
|
+
function refuseOutOfRootWrites(filePaths, sessionRoot, writer3) {
|
|
10066
|
+
return filePaths.filter((filePath) => {
|
|
10067
|
+
const mode = resolveAnalysisRoot(filePath, sessionRoot);
|
|
10068
|
+
if (canWriteAnalysisRoot(mode))
|
|
10069
|
+
return false;
|
|
10070
|
+
recordDegradationOnce({
|
|
10071
|
+
kind: "adopted-root-writer-skipped",
|
|
10072
|
+
subject: `${filePath}:${writer3}`,
|
|
10073
|
+
reason: `${writer3} refused: the file's identity is outside the session's writable roots (${mode})`,
|
|
10074
|
+
metadata: { writer: writer3, mode }
|
|
10075
|
+
});
|
|
10076
|
+
return true;
|
|
10077
|
+
});
|
|
10078
|
+
}
|
|
10079
|
+
async function writeSourceFile(target, write) {
|
|
10080
|
+
const exit = await withHostFileMutationQueues(target.filePaths, async () => {
|
|
10081
|
+
try {
|
|
10082
|
+
return { ok: true, value: await write() };
|
|
10083
|
+
} catch (error) {
|
|
10084
|
+
return { ok: false, error };
|
|
10085
|
+
}
|
|
10086
|
+
});
|
|
10087
|
+
await target.record(exit);
|
|
10088
|
+
if (!exit.ok)
|
|
10089
|
+
throw exit.error;
|
|
10090
|
+
return exit.value;
|
|
10091
|
+
}
|
|
10092
|
+
|
|
9904
10093
|
// dist/clients/lsp/edits.js
|
|
10094
|
+
var WorkspaceEditRefusedError = class extends Error {
|
|
10095
|
+
paths;
|
|
10096
|
+
constructor(paths) {
|
|
10097
|
+
super(`workspace edit refused: ${paths.join(", ")} ${paths.length === 1 ? "is" : "are"} outside the session's writable roots`);
|
|
10098
|
+
this.paths = paths;
|
|
10099
|
+
this.name = "WorkspaceEditRefusedError";
|
|
10100
|
+
}
|
|
10101
|
+
};
|
|
9905
10102
|
var StaleWorkspaceEditContentError = class extends Error {
|
|
9906
10103
|
};
|
|
9907
10104
|
function refuseStaleWorkspaceEdit(filePath, why) {
|
|
@@ -10304,7 +10501,7 @@ function captureRenameExpectedContent(edit, cwd, requestedAtMs, readTrackedSend,
|
|
|
10304
10501
|
let mtimeMs;
|
|
10305
10502
|
try {
|
|
10306
10503
|
realPath = realpathSync.native(diskPath);
|
|
10307
|
-
content =
|
|
10504
|
+
content = readFileSync7(realPath, "utf-8");
|
|
10308
10505
|
mtimeMs = statSync7(realPath).mtimeMs;
|
|
10309
10506
|
} catch {
|
|
10310
10507
|
continue;
|
|
@@ -10494,7 +10691,7 @@ function summarizeWorkspaceEdit(edit, cwd) {
|
|
|
10494
10691
|
}
|
|
10495
10692
|
async function lstatOrMissing(filePath) {
|
|
10496
10693
|
try {
|
|
10497
|
-
return await
|
|
10694
|
+
return await fs9.lstat(filePath);
|
|
10498
10695
|
} catch (err) {
|
|
10499
10696
|
if (err.code === "ENOENT")
|
|
10500
10697
|
return void 0;
|
|
@@ -10506,7 +10703,7 @@ function isSameFsIdentity(a, b) {
|
|
|
10506
10703
|
}
|
|
10507
10704
|
async function bigintLstatOrMissing(filePath) {
|
|
10508
10705
|
try {
|
|
10509
|
-
return await
|
|
10706
|
+
return await fs9.lstat(filePath, { bigint: true });
|
|
10510
10707
|
} catch (err) {
|
|
10511
10708
|
if (err.code === "ENOENT")
|
|
10512
10709
|
return void 0;
|
|
@@ -10626,7 +10823,7 @@ async function preflightWorkspaceEdit(planned, cwd, options) {
|
|
|
10626
10823
|
const physicalPath = resolveVirtualPath(filePath);
|
|
10627
10824
|
if (!physicalPath)
|
|
10628
10825
|
throw new Error(`text edit target does not exist: ${filePath}`);
|
|
10629
|
-
const content = await
|
|
10826
|
+
const content = await fs9.readFile(physicalPath, "utf-8");
|
|
10630
10827
|
const expected = options.expectedContent?.get(await realpathOrResolveAsync(physicalPath));
|
|
10631
10828
|
if (expected !== void 0 && expected !== content) {
|
|
10632
10829
|
refuseStaleWorkspaceEdit(filePath, "the file changed after the edit was computed from it");
|
|
@@ -10782,10 +10979,22 @@ async function applyWorkspaceEdit(edit, cwd, options = {}) {
|
|
|
10782
10979
|
operationCounts,
|
|
10783
10980
|
fileDetails
|
|
10784
10981
|
});
|
|
10982
|
+
const queuePaths = plannedDiskPaths(planned);
|
|
10983
|
+
const target = {
|
|
10984
|
+
filePaths: queuePaths,
|
|
10985
|
+
record: async (exit) => {
|
|
10986
|
+
await announceResourceOperations(resourceChanges, options.watchedFileSink);
|
|
10987
|
+
if (options.mutationContext && options.observe !== false) {
|
|
10988
|
+
recordLspMutation(options.mutationContext, {
|
|
10989
|
+
results: [makeResult()],
|
|
10990
|
+
status: !exit.ok ? "failed" : appliedOperationTotal > 0 ? "success" : "skipped"
|
|
10991
|
+
});
|
|
10992
|
+
}
|
|
10993
|
+
}
|
|
10994
|
+
};
|
|
10785
10995
|
try {
|
|
10786
|
-
const queuePaths = plannedDiskPaths(planned);
|
|
10787
10996
|
const queueStart = Date.now();
|
|
10788
|
-
await
|
|
10997
|
+
await writeSourceFile(target, async () => {
|
|
10789
10998
|
logLatency({
|
|
10790
10999
|
type: "phase",
|
|
10791
11000
|
filePath: cwd,
|
|
@@ -10794,6 +11003,9 @@ async function applyWorkspaceEdit(edit, cwd, options = {}) {
|
|
|
10794
11003
|
metadata: { paths: queuePaths.length }
|
|
10795
11004
|
});
|
|
10796
11005
|
prepared = await preflightWorkspaceEdit(planned, cwd, options);
|
|
11006
|
+
const refused = refuseOutOfRootWrites(queuePaths, options.sessionRoot ?? options.mutationContext?.runtime?.projectRoot ?? cwd, "lsp-edit");
|
|
11007
|
+
if (refused.length > 0)
|
|
11008
|
+
throw new WorkspaceEditRefusedError(refused);
|
|
10797
11009
|
for (const op of planned) {
|
|
10798
11010
|
const size = operationSize(op);
|
|
10799
11011
|
if (op.kind === "text")
|
|
@@ -10815,14 +11027,14 @@ async function applyWorkspaceEdit(edit, cwd, options = {}) {
|
|
|
10815
11027
|
skipOperation(op);
|
|
10816
11028
|
continue;
|
|
10817
11029
|
}
|
|
10818
|
-
const content = await
|
|
11030
|
+
const content = await fs9.readFile(diskPath, "utf-8");
|
|
10819
11031
|
const updated = applyTextEditsToString(content, edits, "utf-16");
|
|
10820
11032
|
const changesLineCount = edits.some((edit2) => {
|
|
10821
11033
|
const removedLines = edit2.range.end.line - edit2.range.start.line;
|
|
10822
11034
|
const insertedLines = (edit2.newText.match(/\r\n|\r|\n/g) ?? []).length;
|
|
10823
11035
|
return removedLines !== insertedLines;
|
|
10824
11036
|
});
|
|
10825
|
-
await
|
|
11037
|
+
await fs9.writeFile(diskPath, updated, "utf-8");
|
|
10826
11038
|
const start = Math.min(...edits.map((item) => item.range.start.line + 1));
|
|
10827
11039
|
const end = Math.max(...edits.map((item) => item.range.end.line + (item.range.end.character === 0 && item.range.end.line > item.range.start.line ? 0 : 1)));
|
|
10828
11040
|
touchedFiles.add(filePath);
|
|
@@ -10841,11 +11053,11 @@ async function applyWorkspaceEdit(edit, cwd, options = {}) {
|
|
|
10841
11053
|
} else if (op.kind === "create") {
|
|
10842
11054
|
const filePath = uriToPath(op.uri);
|
|
10843
11055
|
const diskPath = uriToDiskPath(op.uri);
|
|
10844
|
-
await
|
|
11056
|
+
await fs9.mkdir(path10.dirname(diskPath), { recursive: true });
|
|
10845
11057
|
if (op.options?.overwrite)
|
|
10846
|
-
await
|
|
11058
|
+
await fs9.writeFile(diskPath, "", "utf-8");
|
|
10847
11059
|
else
|
|
10848
|
-
await
|
|
11060
|
+
await fs9.writeFile(diskPath, "", { flag: "wx" });
|
|
10849
11061
|
resourceChanges.push({ filePath: diskPath, type: FILE_CREATED });
|
|
10850
11062
|
touchedFiles.add(filePath);
|
|
10851
11063
|
fileDetails.push({
|
|
@@ -10861,10 +11073,10 @@ async function applyWorkspaceEdit(edit, cwd, options = {}) {
|
|
|
10861
11073
|
const newPath = uriToPath(op.newUri);
|
|
10862
11074
|
const oldDisk = uriToDiskPath(op.oldUri);
|
|
10863
11075
|
const newDisk = uriToDiskPath(op.newUri);
|
|
10864
|
-
await
|
|
11076
|
+
await fs9.mkdir(path10.dirname(newDisk), { recursive: true });
|
|
10865
11077
|
if (op.options?.overwrite)
|
|
10866
|
-
await
|
|
10867
|
-
await
|
|
11078
|
+
await fs9.rm(newDisk, { recursive: true, force: true });
|
|
11079
|
+
await fs9.rename(oldDisk, newDisk);
|
|
10868
11080
|
resourceChanges.push({ filePath: oldDisk, type: FILE_DELETED }, { filePath: newDisk, type: FILE_CREATED });
|
|
10869
11081
|
touchedFiles.add(oldPath);
|
|
10870
11082
|
touchedFiles.add(newPath);
|
|
@@ -10884,7 +11096,7 @@ async function applyWorkspaceEdit(edit, cwd, options = {}) {
|
|
|
10884
11096
|
} else {
|
|
10885
11097
|
const filePath = uriToPath(op.uri);
|
|
10886
11098
|
const diskPath = uriToDiskPath(op.uri);
|
|
10887
|
-
await
|
|
11099
|
+
await fs9.rm(diskPath, {
|
|
10888
11100
|
recursive: op.options?.recursive === true,
|
|
10889
11101
|
force: false
|
|
10890
11102
|
});
|
|
@@ -10902,14 +11114,7 @@ async function applyWorkspaceEdit(edit, cwd, options = {}) {
|
|
|
10902
11114
|
}
|
|
10903
11115
|
});
|
|
10904
11116
|
} catch (err) {
|
|
10905
|
-
await announceResourceOperations(resourceChanges, options.watchedFileSink);
|
|
10906
11117
|
const partial = makeResult();
|
|
10907
|
-
if (options.mutationContext && options.observe !== false) {
|
|
10908
|
-
recordLspMutation(options.mutationContext, {
|
|
10909
|
-
results: [partial],
|
|
10910
|
-
status: "failed"
|
|
10911
|
-
});
|
|
10912
|
-
}
|
|
10913
11118
|
const already = [...touchedFiles];
|
|
10914
11119
|
if (already.length > 0) {
|
|
10915
11120
|
const alreadyList = already.map((f) => ` \u2022 ${relativeToCwd(f, cwd)}`).join("\n");
|
|
@@ -10921,15 +11126,7 @@ Cause: ${err instanceof Error ? err.message : String(err)}`);
|
|
|
10921
11126
|
}
|
|
10922
11127
|
throw err;
|
|
10923
11128
|
}
|
|
10924
|
-
|
|
10925
|
-
const applied = makeResult();
|
|
10926
|
-
if (options.mutationContext && options.observe !== false) {
|
|
10927
|
-
recordLspMutation(options.mutationContext, {
|
|
10928
|
-
results: [applied],
|
|
10929
|
-
status: appliedOperationTotal > 0 ? "success" : "skipped"
|
|
10930
|
-
});
|
|
10931
|
-
}
|
|
10932
|
-
return applied;
|
|
11129
|
+
return makeResult();
|
|
10933
11130
|
}
|
|
10934
11131
|
|
|
10935
11132
|
// dist/clients/lsp/sync-kind.js
|
|
@@ -11122,7 +11319,7 @@ async function attemptTsserverSyncDiagnostics(file, svc) {
|
|
|
11122
11319
|
}
|
|
11123
11320
|
|
|
11124
11321
|
// dist/clients/lsp/workspace-diagnostics-cache.js
|
|
11125
|
-
import * as
|
|
11322
|
+
import * as fs10 from "node:fs";
|
|
11126
11323
|
import * as path12 from "node:path";
|
|
11127
11324
|
|
|
11128
11325
|
// dist/clients/reverse-deps.js
|
|
@@ -11314,7 +11511,7 @@ function loadWorkspaceDiagnosticsCache(cwd) {
|
|
|
11314
11511
|
}
|
|
11315
11512
|
function saveWorkspaceDiagnosticsCache(cwd, cache) {
|
|
11316
11513
|
const filePath = cachePath(cwd);
|
|
11317
|
-
|
|
11514
|
+
fs10.mkdirSync(path12.dirname(filePath), { recursive: true });
|
|
11318
11515
|
writeFileAtomic(filePath, JSON.stringify(cache, null, 2), {
|
|
11319
11516
|
bestEffort: false
|
|
11320
11517
|
});
|
|
@@ -11348,7 +11545,7 @@ function classifyWorkspaceDiagnosticsCacheExpiry(entry, now, sessionStartedAt, f
|
|
|
11348
11545
|
function isEntryFresh(filePath, entry, getImports) {
|
|
11349
11546
|
let ownStat;
|
|
11350
11547
|
try {
|
|
11351
|
-
ownStat =
|
|
11548
|
+
ownStat = fs10.statSync(filePath);
|
|
11352
11549
|
} catch {
|
|
11353
11550
|
return false;
|
|
11354
11551
|
}
|
|
@@ -11372,7 +11569,7 @@ function isEntryFresh(filePath, entry, getImports) {
|
|
|
11372
11569
|
for (const dep of imports) {
|
|
11373
11570
|
let mtimeMs;
|
|
11374
11571
|
try {
|
|
11375
|
-
mtimeMs =
|
|
11572
|
+
mtimeMs = fs10.statSync(dep).mtimeMs;
|
|
11376
11573
|
} catch {
|
|
11377
11574
|
return false;
|
|
11378
11575
|
}
|
|
@@ -12488,7 +12685,9 @@ function setupIncomingHandlers(state4, initialization, onDiagnosticsPublished) {
|
|
|
12488
12685
|
type: "phase",
|
|
12489
12686
|
phase: "lsp_empty_first_publish_held",
|
|
12490
12687
|
filePath: normalizedPath,
|
|
12491
|
-
|
|
12688
|
+
// Time from didOpen to the server's first publish: an age, not
|
|
12689
|
+
// work this row did (#5379).
|
|
12690
|
+
ageMs: Math.max(0, publishReceivedAt - (state4.documentOpenedAt.get(normalizedPath) ?? publishReceivedAt)),
|
|
12492
12691
|
metadata: {
|
|
12493
12692
|
serverId: state4.serverId,
|
|
12494
12693
|
emptyFirstPublish: "indexing",
|
|
@@ -12576,7 +12775,9 @@ function setupIncomingHandlers(state4, initialization, onDiagnosticsPublished) {
|
|
|
12576
12775
|
type: "phase",
|
|
12577
12776
|
phase: "lsp_empty_first_publish_held",
|
|
12578
12777
|
filePath: normalizedPath,
|
|
12579
|
-
|
|
12778
|
+
// Time from didOpen to the server's first publish: an age, not work
|
|
12779
|
+
// this row did (#5379).
|
|
12780
|
+
ageMs: Math.max(0, publishReceivedAt - (state4.documentOpenedAt.get(normalizedPath) ?? publishReceivedAt)),
|
|
12580
12781
|
metadata: {
|
|
12581
12782
|
serverId: state4.serverId,
|
|
12582
12783
|
emptyFirstPublish: strategy.emptyFirstPublish,
|
|
@@ -16167,7 +16368,7 @@ function auxWaitBudgetMs(serverId, isCold, configuredCeilingMs, declaredWaitMs)
|
|
|
16167
16368
|
import * as path16 from "node:path";
|
|
16168
16369
|
|
|
16169
16370
|
// dist/clients/lsp/environment-gap.js
|
|
16170
|
-
import * as
|
|
16371
|
+
import * as fs11 from "node:fs";
|
|
16171
16372
|
import { isBuiltin } from "node:module";
|
|
16172
16373
|
import * as path15 from "node:path";
|
|
16173
16374
|
var ENVIRONMENT_GAP_MARKER = "no dependency install resolved for this workspace";
|
|
@@ -16231,7 +16432,7 @@ function declaredPackageNames(startDir) {
|
|
|
16231
16432
|
maxDepth: ENV_NODE_MODULES_WALK_MAX_LEVELS
|
|
16232
16433
|
})) {
|
|
16233
16434
|
try {
|
|
16234
|
-
const manifest = JSON.parse(
|
|
16435
|
+
const manifest = JSON.parse(fs11.readFileSync(path15.join(dir, "package.json"), "utf8"));
|
|
16235
16436
|
for (const field of DECLARING_FIELDS) {
|
|
16236
16437
|
const declared = manifest[field];
|
|
16237
16438
|
if (typeof declared !== "object" || declared === null)
|
|
@@ -16272,7 +16473,7 @@ function environmentGapKind(diagnostic) {
|
|
|
16272
16473
|
const name = MISSING_NAME.exec(message)?.[1];
|
|
16273
16474
|
return name !== void 0 && NODE_GLOBALS.has(name) ? { code } : void 0;
|
|
16274
16475
|
}
|
|
16275
|
-
function hasResolvableNodeModules(startDir, stat3 = (candidate) =>
|
|
16476
|
+
function hasResolvableNodeModules(startDir, stat3 = (candidate) => fs11.statSync(candidate)) {
|
|
16276
16477
|
let last;
|
|
16277
16478
|
for (const dir of walkUpDirs(startDir, {
|
|
16278
16479
|
maxDepth: ENV_NODE_MODULES_WALK_MAX_LEVELS
|
|
@@ -16493,7 +16694,7 @@ function createLazyImport(load) {
|
|
|
16493
16694
|
}
|
|
16494
16695
|
|
|
16495
16696
|
// dist/clients/lsp-lazy.js
|
|
16496
|
-
var lazyLsp = createLazyImport(() => import("./chunk-
|
|
16697
|
+
var lazyLsp = createLazyImport(() => import("./chunk-V7IPIAE5.js"));
|
|
16497
16698
|
function warmLspService() {
|
|
16498
16699
|
return lazyLsp.get();
|
|
16499
16700
|
}
|
|
@@ -16611,8 +16812,8 @@ function destinationUriPreservingSpelling(oldUri, oldFilePath, newFilePath) {
|
|
|
16611
16812
|
}
|
|
16612
16813
|
}
|
|
16613
16814
|
var NOTIFY_BACKPRESSURE_BROKEN_AFTER = 3;
|
|
16614
|
-
var NAV_CLIENT_WAIT_TIMEOUT_MS =
|
|
16615
|
-
var TOUCH_DEBOUNCE_MS =
|
|
16815
|
+
var NAV_CLIENT_WAIT_TIMEOUT_MS = nonNegativeIntEnv("PI_LENS_LSP_NAV_CLIENT_WAIT_MS", 1500) || 1500;
|
|
16816
|
+
var TOUCH_DEBOUNCE_MS = nonNegativeIntEnv("PI_LENS_LSP_TOUCH_DEBOUNCE_MS", 1500);
|
|
16616
16817
|
var RECENT_TOUCH_CAP = 800;
|
|
16617
16818
|
var SCOPED_DEPENDENCY_TOUCH_MAX = 32;
|
|
16618
16819
|
var RENAME_NOTIFY_TIMEOUT_MS = Math.max(50, Number.parseInt(process.env.PI_LENS_LSP_RENAME_NOTIFY_TIMEOUT_MS ?? "1500", 10) || 1500);
|
|
@@ -16672,9 +16873,9 @@ function readTsserverSyncGraceMs() {
|
|
|
16672
16873
|
return parsed;
|
|
16673
16874
|
}
|
|
16674
16875
|
var MAX_TOUCH_CANDIDATES = 8;
|
|
16675
|
-
var DIAGNOSTICS_SEMANTIC_SETTLE_THRESHOLD_MS =
|
|
16676
|
-
var DIAGNOSTICS_SEMANTIC_SETTLE_WAIT_MS =
|
|
16677
|
-
var EARLY_UNBLOCK_GRACE_MS =
|
|
16876
|
+
var DIAGNOSTICS_SEMANTIC_SETTLE_THRESHOLD_MS = nonNegativeIntEnv("PI_LENS_LSP_DIAGNOSTICS_SEMANTIC_THRESHOLD_MS", 250);
|
|
16877
|
+
var DIAGNOSTICS_SEMANTIC_SETTLE_WAIT_MS = nonNegativeIntEnv("PI_LENS_LSP_DIAGNOSTICS_SEMANTIC_SETTLE_MS", 400);
|
|
16878
|
+
var EARLY_UNBLOCK_GRACE_MS = nonNegativeIntEnv("PI_LENS_LSP_EARLY_UNBLOCK_GRACE_MS", 400);
|
|
16678
16879
|
function unansweredPrimaries(spawned, resolvedPrimaryRoots, filePath) {
|
|
16679
16880
|
const { disabledServerIds, fallbackServerIds } = disabledPrimaries(filePath);
|
|
16680
16881
|
const standIns = new Set(fallbackServerIds);
|
|
@@ -17433,7 +17634,8 @@ var LSPService = class _LSPService {
|
|
|
17433
17634
|
logNotifyStallCpuBusy(key, entry, filePath, outstandingMs, verdict, extra = {}) {
|
|
17434
17635
|
emitBounded("lsp_notify_stall_cpu_busy", `${key}:${normalizeMapKey(filePath)}`, {
|
|
17435
17636
|
type: "phase",
|
|
17436
|
-
|
|
17637
|
+
// A still-outstanding write's age at a stall sample (#5379).
|
|
17638
|
+
ageMs: outstandingMs,
|
|
17437
17639
|
metadata: {
|
|
17438
17640
|
serverId: entry.info.id,
|
|
17439
17641
|
clientKey: key,
|
|
@@ -18721,7 +18923,7 @@ var LSPService = class _LSPService {
|
|
|
18721
18923
|
const readStamp = performance.now();
|
|
18722
18924
|
let content;
|
|
18723
18925
|
try {
|
|
18724
|
-
content = await
|
|
18926
|
+
content = await fs12.readFile(filePath, "utf8");
|
|
18725
18927
|
} catch {
|
|
18726
18928
|
continue;
|
|
18727
18929
|
}
|
|
@@ -18891,7 +19093,8 @@ var LSPService = class _LSPService {
|
|
|
18891
19093
|
type: "phase",
|
|
18892
19094
|
phase: "lsp_document_drift",
|
|
18893
19095
|
filePath: event.filePath,
|
|
18894
|
-
|
|
19096
|
+
// An AGE (now minus the document's last sync), not a span (#5379).
|
|
19097
|
+
ageMs: event.driftAgeMs,
|
|
18895
19098
|
metadata: {
|
|
18896
19099
|
disposition: event.disposition,
|
|
18897
19100
|
driftAgeMs: event.driftAgeMs,
|
|
@@ -19215,7 +19418,9 @@ var LSPService = class _LSPService {
|
|
|
19215
19418
|
type: "phase",
|
|
19216
19419
|
phase: "lsp_notify_resync_deferred",
|
|
19217
19420
|
filePath: normalizedPath,
|
|
19218
|
-
|
|
19421
|
+
// The age of ANOTHER writer's outstanding write, not time this
|
|
19422
|
+
// caller spent (#5379).
|
|
19423
|
+
ageMs: claim.outstandingMs,
|
|
19219
19424
|
metadata: {
|
|
19220
19425
|
serverId: entry.info.id,
|
|
19221
19426
|
source,
|
|
@@ -20369,13 +20574,14 @@ var LSPService = class _LSPService {
|
|
|
20369
20574
|
};
|
|
20370
20575
|
});
|
|
20371
20576
|
const graceMs = diagnosticsMode === "document" ? 0 : EARLY_UNBLOCK_GRACE_MS;
|
|
20577
|
+
const earlyUnblockOn = diagnosticsMode === "document" || EARLY_UNBLOCK_GRACE_MS > 0;
|
|
20372
20578
|
const diagDescriptors = spawned.map((entry) => {
|
|
20373
20579
|
if (!isAuxiliary(entry.info))
|
|
20374
20580
|
return { role: entry.info.role };
|
|
20375
20581
|
const strategy = getStrategy(entry.info.id, entry.client.getLaunchVariant?.());
|
|
20376
20582
|
return { role: entry.info.role, budgetMs: strategy.aggregateWaitMs };
|
|
20377
20583
|
});
|
|
20378
|
-
const perServer = await raceToCompletion(clientWaits, (results) => results.some((r) => r.diagnosticCount > 0 || getStrategy(r.serverId, r.launchVariant).seedFirstPush), {
|
|
20584
|
+
const perServer = await raceToCompletion(clientWaits, (results) => earlyUnblockOn && results.some((r) => r.diagnosticCount > 0 || getStrategy(r.serverId, r.launchVariant).seedFirstPush), {
|
|
20379
20585
|
timeoutMs: Math.max(...spawned.map((entry) => getStrategy(entry.info.id, entry.client.getLaunchVariant?.()).aggregateWaitMs)),
|
|
20380
20586
|
graceMs,
|
|
20381
20587
|
descriptors: diagDescriptors,
|
|
@@ -21038,7 +21244,7 @@ var LSPService = class _LSPService {
|
|
|
21038
21244
|
status: "failed"
|
|
21039
21245
|
});
|
|
21040
21246
|
}
|
|
21041
|
-
const content = await
|
|
21247
|
+
const content = await fs12.readFile(oldFilePath, "utf-8");
|
|
21042
21248
|
const languageId = getLanguageId2(oldFilePath) ?? "plaintext";
|
|
21043
21249
|
const resyncFailures = [];
|
|
21044
21250
|
await Promise.all(openDocuments.map(async ({ serverId, client }) => {
|
|
@@ -21512,7 +21718,7 @@ var LSPService = class _LSPService {
|
|
|
21512
21718
|
await Promise.all(openImports.slice(0, SCOPED_DEPENDENCY_TOUCH_MAX).map(async (dependency) => {
|
|
21513
21719
|
let content;
|
|
21514
21720
|
try {
|
|
21515
|
-
content = await
|
|
21721
|
+
content = await fs12.readFile(dependency, "utf8");
|
|
21516
21722
|
} catch {
|
|
21517
21723
|
return;
|
|
21518
21724
|
}
|
|
@@ -21746,7 +21952,9 @@ var LSPService = class _LSPService {
|
|
|
21746
21952
|
type: "phase",
|
|
21747
21953
|
phase: "lsp_workspace_diagnostics_progress",
|
|
21748
21954
|
filePath: root,
|
|
21749
|
-
|
|
21955
|
+
// Cumulative elapsed at a heartbeat: the sweep has not finished, so
|
|
21956
|
+
// it is an age (#5379); the completed sweep logs the span.
|
|
21957
|
+
ageMs: Date.now() - startedAt,
|
|
21750
21958
|
metadata: {
|
|
21751
21959
|
completed,
|
|
21752
21960
|
total: files2.length,
|
|
@@ -22284,7 +22492,8 @@ export {
|
|
|
22284
22492
|
isOptInAuxiliaryServerId,
|
|
22285
22493
|
enabledAuxiliaryLspServerIds,
|
|
22286
22494
|
configDisabledAuxiliaryLspServerIds,
|
|
22287
|
-
|
|
22495
|
+
auxiliaryServersNotRun,
|
|
22496
|
+
auxiliaryNotRunSentences,
|
|
22288
22497
|
findAuxiliaryProfileForSource,
|
|
22289
22498
|
dropExcludedServers,
|
|
22290
22499
|
applyAuxiliarySuppressions,
|
|
@@ -22353,6 +22562,9 @@ export {
|
|
|
22353
22562
|
applyDispositions,
|
|
22354
22563
|
applyWeakDispositions,
|
|
22355
22564
|
applyDispositionsMultiFile,
|
|
22565
|
+
applyWeakDispositionsMultiFile,
|
|
22566
|
+
trustedCitedOwnerContent,
|
|
22567
|
+
cachedAnchorMarks,
|
|
22356
22568
|
isBlocking,
|
|
22357
22569
|
setSessionLanguages,
|
|
22358
22570
|
recordRunner,
|
|
@@ -22372,6 +22584,8 @@ export {
|
|
|
22372
22584
|
getSuppressedDiagnostics,
|
|
22373
22585
|
countRetainedSuppressedRows,
|
|
22374
22586
|
retireWidgetCitedRows,
|
|
22587
|
+
refuseOutOfRootWrites,
|
|
22588
|
+
writeSourceFile,
|
|
22375
22589
|
captureRenameExpectedContent,
|
|
22376
22590
|
summarizeWorkspaceEdit,
|
|
22377
22591
|
applyWorkspaceEdit,
|