pi-lens 4.4.10 → 4.4.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG-USER.md +12 -12
- package/CHANGELOG.md +212 -0
- package/README.md +1 -0
- package/dist/{chunk-W4CUK5G6.js → chunk-2HWVG3IM.js} +2 -2
- package/dist/{chunk-B2YUE6YD.js → chunk-3EIZMRXI.js} +11 -11
- package/dist/{chunk-Y3EHLUPL.js → chunk-3MHY4BQY.js} +4 -4
- package/dist/{chunk-IDCTDKIA.js → chunk-3PMLYGJN.js} +6 -6
- package/dist/{chunk-VPFRU5IG.js → chunk-3QMLB4TI.js} +3 -3
- package/dist/{chunk-NL5LSKVD.js → chunk-3R3Z54J7.js} +10 -4
- package/dist/chunk-3VWEZ6H2.js +72 -0
- package/dist/{chunk-YT2VR4SL.js → chunk-5EEWCJG7.js} +7 -7
- package/dist/{chunk-4NCDHTFI.js → chunk-5FDUKJZO.js} +10 -10
- package/dist/{chunk-QUQY3IME.js → chunk-5KLRCUDT.js} +9 -8
- package/dist/{chunk-FOEPIX76.js → chunk-6EIV3H7O.js} +158 -61
- package/dist/{chunk-GMC4ZGYR.js → chunk-6EXGCXM5.js} +5 -5
- package/dist/{chunk-CTB5BAJI.js → chunk-6GWCYEP7.js} +17 -16
- package/dist/{chunk-NBM7PNBP.js → chunk-6JLNZ6DP.js} +37 -26
- package/dist/{chunk-ACRJ2GZ5.js → chunk-7424ANRU.js} +2 -2
- package/dist/{chunk-TJQSYX3J.js → chunk-75TVYCQW.js} +6 -6
- package/dist/{chunk-J6BR5XN2.js → chunk-7BEADGAZ.js} +3 -3
- package/dist/chunk-7KWI5UHL.js +28 -0
- package/dist/{chunk-GUGKKGG7.js → chunk-7M64NTAK.js} +3 -3
- package/dist/{chunk-SKVNHCT5.js → chunk-7T64QA5D.js} +48 -43
- package/dist/{chunk-YQA34KAF.js → chunk-7ZVEFWOE.js} +11 -11
- package/dist/{chunk-SJQUWQR6.js → chunk-AAIVSSUU.js} +2 -2
- package/dist/{chunk-6I44EDNQ.js → chunk-AD7JDEI6.js} +17 -15
- package/dist/{chunk-3FRI5H4T.js → chunk-AGEQRJ5A.js} +24 -10
- package/dist/{chunk-NPNFGYLV.js → chunk-AVBEPUCD.js} +19 -2
- package/dist/{chunk-OTSTS7L2.js → chunk-AYDE7RFV.js} +34 -3
- package/dist/{chunk-UOO4D2TK.js → chunk-AZXTLZHE.js} +34 -35
- package/dist/{chunk-AWQWXSW4.js → chunk-B4FAFEBP.js} +7 -2
- package/dist/{chunk-S3WFVG5P.js → chunk-BEIPWPVR.js} +137 -126
- package/dist/{chunk-CZAWWXP6.js → chunk-BMMRLJA4.js} +7 -5
- package/dist/{chunk-QWTHFFU6.js → chunk-C6V2DSZZ.js} +12 -12
- package/dist/chunk-CIA7X2PZ.js +26 -0
- package/dist/{chunk-ZD4KVFXI.js → chunk-D2ZYRI7M.js} +172 -3
- package/dist/{chunk-F6FT6BVQ.js → chunk-D6ANA6YU.js} +34 -35
- package/dist/{chunk-HILZE4BQ.js → chunk-D7OEGXDX.js} +396 -306
- package/dist/{chunk-FCQSZQAT.js → chunk-DFAY7JUN.js} +14 -5
- package/dist/{chunk-DOUAWKLO.js → chunk-DIIDMDZU.js} +12 -12
- package/dist/{chunk-6MDM5MQT.js → chunk-DZSQXG66.js} +394 -162
- package/dist/{chunk-QGITU23N.js → chunk-E3PNZDPH.js} +1 -1
- package/dist/{chunk-QSCZAP24.js → chunk-E5SSUV2A.js} +4 -4
- package/dist/{chunk-H65TYP6V.js → chunk-ET3DSSFZ.js} +37 -21
- package/dist/chunk-F7AMFFVK.js +22 -0
- package/dist/{chunk-4ITEFRDH.js → chunk-FDLGJFAE.js} +37 -145
- package/dist/{chunk-XAFZJEXY.js → chunk-FVQKX5KI.js} +23 -23
- package/dist/{chunk-CYUJB552.js → chunk-G3LR6V6N.js} +18 -12
- package/dist/{chunk-ZOPXB2KK.js → chunk-GHATCG2A.js} +111 -107
- package/dist/{chunk-XVB3Q2PG.js → chunk-HGEE5LDW.js} +3 -2
- package/dist/{chunk-UNBRHPHJ.js → chunk-HJWF7CGW.js} +17 -15
- package/dist/chunk-HRQTYU2T.js +355 -0
- package/dist/{chunk-QUPYLQA4.js → chunk-HSTN27NR.js} +14 -9
- package/dist/{chunk-YF4G5NN5.js → chunk-HWMNTQBJ.js} +2 -2
- package/dist/{chunk-K6WIBVMK.js → chunk-HYDJUVOE.js} +8 -9
- package/dist/{chunk-OPFNQBS5.js → chunk-HYR25MV3.js} +21 -25
- package/dist/{chunk-MAD4QJTP.js → chunk-IC4L65U7.js} +21 -17
- package/dist/{chunk-I32RSMH6.js → chunk-ILC2B7IJ.js} +11 -10
- package/dist/{chunk-BGLS5SDN.js → chunk-IT7MFVGP.js} +2 -2
- package/dist/{chunk-KDCIG23C.js → chunk-IZ36G463.js} +13 -9
- package/dist/{chunk-ALIZWXHZ.js → chunk-JKAVKTMY.js} +9 -9
- package/dist/{chunk-3HM4BUHR.js → chunk-JLMS7EMD.js} +16 -15
- package/dist/{chunk-HSYFLOZY.js → chunk-JRSS6KM4.js} +3 -3
- package/dist/{chunk-VCRVNLE7.js → chunk-K2GV34T2.js} +9 -1
- package/dist/{chunk-KJ3AHOCK.js → chunk-K2LD6YNH.js} +10 -10
- package/dist/chunk-KUDUKKQE.js +89 -0
- package/dist/{chunk-7JX3RNG4.js → chunk-KXDQD34C.js} +1 -1
- package/dist/{chunk-VGTBLTPN.js → chunk-LD7SXICE.js} +18 -66
- package/dist/{chunk-UY745U35.js → chunk-ME6MF2N2.js} +1 -1
- package/dist/{chunk-QHOTTC4A.js → chunk-MOEWCPMC.js} +2 -2
- package/dist/{chunk-JZQGRARR.js → chunk-MV6ST2KT.js} +15 -12
- package/dist/{chunk-QL37SGTS.js → chunk-NCDH2JB7.js} +18 -18
- package/dist/{chunk-AON2QIJF.js → chunk-NRVWLTOY.js} +20 -17
- package/dist/chunk-NZINZCHB.js +108 -0
- package/dist/{chunk-A5TEJZGJ.js → chunk-O6LCSHHI.js} +1 -1
- package/dist/{chunk-PTSA6QKL.js → chunk-OEPWTSUG.js} +8 -8
- package/dist/{chunk-QMV2APEH.js → chunk-OF2YGDUE.js} +36 -36
- package/dist/{chunk-GTTMQ6XB.js → chunk-OHEUOWYT.js} +1 -1
- package/dist/{chunk-GVWIU7M7.js → chunk-ORYQGVC3.js} +41 -4
- package/dist/{chunk-KSTQ4VXT.js → chunk-OVPR3GQ6.js} +10 -13
- package/dist/{chunk-MN635QYA.js → chunk-OYXD2MOM.js} +3 -3
- package/dist/{chunk-TN5CWX5D.js → chunk-PCREZ4HJ.js} +34 -35
- package/dist/{chunk-SG2JQ2YP.js → chunk-PK3GDU4M.js} +1 -1
- package/dist/{chunk-NE4EFHJX.js → chunk-PPYUBO6Y.js} +2 -2
- package/dist/{chunk-DVRJBQOJ.js → chunk-PTJXMYRY.js} +19 -20
- package/dist/{chunk-TYHOEX4V.js → chunk-PXGVB2CY.js} +36 -39
- package/dist/{chunk-LT62P654.js → chunk-QJ4T73J5.js} +1 -1
- package/dist/{chunk-2LVJQU3I.js → chunk-QY6J2FTK.js} +33 -29
- package/dist/{chunk-ZZDVGCGG.js → chunk-R67WQ5RY.js} +9 -9
- package/dist/{chunk-Q2VCKC3X.js → chunk-S6ZQFPOX.js} +11 -8
- package/dist/{chunk-KFRDFAOE.js → chunk-SF7KSXB5.js} +7 -7
- package/dist/{chunk-CZCAZVTD.js → chunk-SRXYSLMW.js} +2 -2
- package/dist/{chunk-WS3UFJOU.js → chunk-SUIZOCSY.js} +3 -2
- package/dist/{chunk-NUSXS6YB.js → chunk-T5EGSBM2.js} +4 -4
- package/dist/{chunk-V7F7JHS5.js → chunk-T6PPK3T6.js} +563 -554
- package/dist/chunk-TM3A3K7T.js +28 -0
- package/dist/{chunk-RQRKIRFY.js → chunk-TOOXNL6M.js} +8 -8
- package/dist/chunk-TS5EIWEF.js +25 -0
- package/dist/chunk-VD7MQFEV.js +56 -0
- package/dist/{chunk-2ADRLTM2.js → chunk-VU2PRGRI.js} +6 -35
- package/dist/chunk-W6VLB6LL.js +145 -0
- package/dist/{chunk-CB7PEVOJ.js → chunk-WLD6BGON.js} +176 -60
- package/dist/{chunk-C6AODRNU.js → chunk-WTSQKJAR.js} +11 -10
- package/dist/{chunk-46TQJSUE.js → chunk-X33QECRJ.js} +2 -2
- package/dist/{chunk-B6HXETWY.js → chunk-Y7XMKBFP.js} +28 -26
- package/dist/{chunk-TLWFZ66Y.js → chunk-YLHJWAQS.js} +4 -4
- package/dist/{chunk-BRESRQBE.js → chunk-YLW26OHX.js} +8 -8
- package/dist/{chunk-IL6PIV33.js → chunk-YTXFNCVN.js} +2 -2
- package/dist/chunk-YULIERZW.js +27 -0
- package/dist/chunk-Z2W5YJBW.js +25 -0
- package/dist/{chunk-XPGH5O74.js → chunk-Z6WTLVUL.js} +30 -39
- package/dist/{chunk-W7TY6HYX.js → chunk-ZRQMENT4.js} +5 -27
- package/dist/{chunk-E4VXKTBR.js → chunk-ZWZD4TJ5.js} +163 -173
- package/dist/index.js +6405 -4497
- package/dist/mcp/analyze-cli.js +17 -13
- package/dist/mcp/cli.js +42 -43
- package/dist/mcp/server.js +1520 -608
- package/dist/mcp/worker.js +62 -61
- package/dist/probes/installer.js +19 -18
- package/docs/agent-guide.md +3 -1
- package/docs/agent-tools.md +57 -13
- package/docs/alignment-families.md +5 -1
- package/docs/ci.md +120 -0
- package/docs/configuration.md +24 -6
- package/docs/custom-rules.md +1 -0
- package/docs/defect-shapes.md +107 -71
- package/docs/durable-store-audit-1202.md +1 -1
- package/docs/engineering-principles.md +46 -12
- package/docs/environment-variables.md +25 -2
- package/docs/features.md +1 -1
- package/docs/globalconfig.md +8 -1
- package/docs/invariants/dispatch-runners.md +13 -0
- package/docs/invariants/lsp-trust-exec.md +7 -0
- package/docs/language-coverage.md +1 -1
- package/docs/lsp-capability-matrix.md +15 -16
- package/docs/lsp-idle-eviction.md +1 -1
- package/docs/mcp.md +2 -1
- package/docs/module-report-read-symbol.md +2 -2
- package/docs/pi-lens-fixer.md +3 -2
- package/docs/pi-lens-merge-policy.md +1 -0
- package/docs/pi-lens-monitor.md +4 -1
- package/docs/pi-lens-release.md +19 -0
- package/docs/pi-lens-reviewer.md +8 -2
- package/docs/public-api-stability.md +41 -6
- package/docs/rfcs/5138-query-surface.md +121 -0
- package/docs/servercapabilities.md +1 -1
- package/docs/settings.md +9 -0
- package/docs/usage.md +1 -1
- package/docs/word-index.md +9 -10
- package/package.json +3 -3
- package/rules/ast-grep-rules/coderabbit/README.md +2 -0
- package/rules/ast-grep-rules/coderabbit/rules/c/security/dont-call-system-c.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/c/security/file-access-before-action-c.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/c/security/file-stat-before-action-c.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/c/security/insecure-hash-c.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/c/security/libxml2-audit-parser-c.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/c/security/null-library-function-c.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/c/security/sizeof-this-c.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/c/security/small-key-size-c.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/c/security/world-writable-file-c.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/cpp/security/dont-call-system-cpp.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/cpp/security/file-access-before-action-cpp.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/cpp/security/file-stat-before-action-cpp.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/cpp/security/fix-format-security-error-cpp.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/cpp/security/insecure-hash-cpp.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/cpp/security/libxml2-audit-parser-cpp.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/cpp/security/missing-nul-cpp-string-memcpy-cpp.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/cpp/security/null-library-function-cpp.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/cpp/security/return-c-str-cpp.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/cpp/security/sizeof-this-cpp.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/cpp/security/small-key-size-cpp.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/cpp/security/std-return-data-cpp.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/cpp/security/std-vector-invalidation-cpp.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/cpp/security/string-view-temporary-string-cpp.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/cpp/security/world-writable-file-cpp.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/csharp/security/httponly-false-csharp.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/csharp/security/insecure-binaryformatter-deserialization-csharp.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/csharp/security/jwt-decode-without-verify-csharp.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/csharp/security/jwt-hardcoded-secret-csharp.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/csharp/security/jwt-tokenvalidationparameters-no-expiry-validation-csharp.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/csharp/security/networkcredential-hardcoded-secret-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/csharp/security/npgsqlconnectionstringbuilder-hardcoded-secret-csharp.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/csharp/security/oracleconnectionstringbuilder-hardcoded-secret-csharp.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/csharp/security/sqlconnectionstringbuilder-hardcoded-secret-csharp.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/csharp/security/stacktrace-disclosure-csharp.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/csharp/security/use-ecb-mode-csharp.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/go/security/avoid-bind-to-all-interfaces-go.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/go/security/gorilla-cookie-store-hardcoded-session-key-go.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/go/security/gorilla-csrf-hardcoded-auth-key-go.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/go/security/grpc-client-insecure-connection-go.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/go/security/jwt-go-none-algorithm-go.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/go/security/missing-ssl-minversion-go.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/go/security/openai-empty-secret-go.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/go/security/openai-hardcoded-secret-go.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/go/security/ssl-v3-is-insecure-go.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/go/security/tls-with-insecure-cipher-go.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/go/security/use-of-weak-rsa-key-go.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/html/security/plaintext-http-link-html.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/java/security/cbc-padding-oracle-java.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/java/security/cookie-httponly-false-java.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/java/security/cookie-missing-httponly-java.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/java/security/cookie-missing-samesite-java.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/java/security/cookie-missing-secure-flag-java.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/java/security/cookie-secure-flag-false-java.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/java/security/datanucleus-hardcoded-connection-password-java.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/java/security/des-is-deprecated-java.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/java/security/desede-is-deprecated-java.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/java/security/documentbuilderfactory-disallow-doctype-decl-false-java.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/java/security/documentbuilderfactory-external-general-entities-true-java.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/java/security/documentbuilderfactory-external-parameter-entities-true-java.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/java/security/drivermanager-hardcoded-secret-java.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/java/security/ecb-cipher-java.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/java/security/hardcoded-connection-password-java.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/java/security/hardcoded-secret-in-credentials-java.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/java/security/java-jwt-hardcoded-secret-java.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/java/security/jedis-jedisclientconfig-hardcoded-password-java.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/java/security/jedis-jedisfactory-hardcoded-password-java.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/java/security/missing-httponly-java.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/java/security/missing-secure-java.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/java/security/no-null-cipher-java.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/java/security/passwordauthentication-hardcoded-password-java.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/java/security/rsa-no-padding-java.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/java/security/simple-command-injection-direct-input-java.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/java/security/system-setproperty-hardcoded-secret-java.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/java/security/unencrypted-socket-java.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-aes-ecb-java.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-blowfish-java.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-default-aes-java.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-md5-digest-utils-java.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-md5-java.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-rc2-java.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-rc4-java.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-sha1-java.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/java/security/weak-ssl-context-java.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/javascript/security/detect-angular-sce-disabled-javascript.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/javascript/security/express-jwt-hardcoded-secret-javascript.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/javascript/security/express-session-hardcoded-secret-javascript.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/javascript/security/jwt-simple-noverify-javascript.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/javascript/security/node-rsa-weak-key-javascript.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/javascript/security/node-sequelize-empty-password-argument-javascript.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/javascript/security/node-sequelize-hardcoded-secret-argument-javascript.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/kotlin/security/des-is-deprecated-kotlin.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/kotlin/security/desede-is-deprecated-kotlin.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/kotlin/security/jwt-hardcode-kotlin.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/kotlin/security/rsa-no-padding-kotlin.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/kotlin/security/system-setproperty-hardcoded-secret-kotlin.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/php/security/openssl-cbc-static-iv-php.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/php/security/search-active-debug-php.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/avoid-mktemp-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/avoid_app_run_with_bad_host-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/debug-enabled-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/hashids-with-django-secret-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/hashids-with-flask-secret-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/insecure-cipher-algorithm-rc4-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/jwt-python-hardcoded-secret-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/openai-hardcoded-secret-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-cassandra-empty-password-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-cassandra-hardcoded-secret-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-couchbase-empty-password-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-couchbase-hardcoded-secret-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-elasticsearch-hardcoded-bearer-auth-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-ldap3-empty-password-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-ldap3-hardcoded-secret-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-mariadb-empty-password-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-mariadb-hardcoded-secret-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-mysql-empty-password-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-mysql-hardcoded-secret-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-mysqlclient-empty-password-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-mysqlclient-hardcoded-secret-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-neo4j-empty-password-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-neo4j-hardcoded-secret-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-peewee-mysql-empty-password-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-peewee-mysql-hardcoded-secret-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-peewee-pg-empty-password-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-peewee-pg-hardcoded-secret-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-pg8000-empty-password-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-pg8000-hardcoded-secret-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-psycopg2-empty-password-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-psycopg2-hardcoded-secret-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-pyjwt-hardcoded-secret-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-pymongo-empty-password-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-pymongo-hardcoded-secret-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-pymssql-empty-password-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-pymssql-hardcoded-secret-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-pymysql-empty-password-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-pymysql-hardcoded-secret-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-redis-empty-password-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-redis-hardcoded-secret-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-requests-empty-password-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-requests-hardcoded-secret-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-requests-oauth-hardcoded-secret-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-tormysql-empty-password-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-tormysql-hardcoded-secret-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-urllib3-hardcoded-secret-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-webrepl-empty-password-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-webrepl-hardcoded-secret-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/ruby/security/force-ssl-false-ruby.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/ruby/security/hardcoded-http-auth-in-controller-ruby.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/ruby/security/hardcoded-secret-rsa-passphrase-ruby.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/ruby/security/insufficient-rsa-key-size-ruby.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-aws-sdk-hardcoded-secret-ruby.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-cassandra-empty-password-ruby.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-cassandra-hardcoded-secret-ruby.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-excon-hardcoded-secret-ruby.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-faraday-hardcoded-secret-ruby.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-mongo-empty-password-ruby.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-mongo-hardcoded-secret-ruby.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-mysql2-empty-password-ruby.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-mysql2-hardcoded-secret-ruby.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-octokit-hardcoded-secret-ruby.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-pg-empty-password-ruby.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-pg-hardcoded-secret-ruby.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-redis-empty-password-ruby.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-redis-hardcoded-secret-ruby.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/rust/security/empty-password-rust.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/rust/security/hardcoded-password-rust.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/rust/security/postgres-empty-password-rust.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/rust/security/reqwest-accept-invalid-rust.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/rust/security/secrets-reqwest-hardcoded-auth-rust.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/rust/security/ssl-verify-none-rust.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/rust/security/tokio-postgres-empty-password-rust.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/rust/security/tokio-postgres-hardcoded-password-rust.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/scala/security/jwt-scala-hardcode-scala.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/scala/security/scala-jwt-hardcoded-secret-scala.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/swift/security/aes-hardcoded-secret-swift.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/swift/security/blowfish-hardcoded-secret-swift.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/swift/security/chacha20-hardcoded-secret-swift.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/swift/security/insecure-biometrics-swift.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/swift/security/rabbit-hardcoded-secret-swift.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/typescript/security/detect-angular-sce-disabled-typescript.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/typescript/security/express-session-hardcoded-secret-typescript.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/typescript/security/jwt-simple-noverify-typescript.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/typescript/security/node-rsa-weak-key-typescript.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/typescript/security/node-sequelize-empty-password-argument-typescript.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/typescript/security/node-sequelize-hardcoded-secret-argument-typescript.yml +2 -1
- package/rules/ast-grep-rules/rule-schema.json +1 -1
- package/rules/ast-grep-rules/rules/c-no-malloc-free.yml +13 -12
- package/rules/ast-grep-rules/rules/cpp-no-malloc-free.yml +11 -10
- package/rules/ast-grep-rules/rules/cpp-no-printf.yml +10 -9
- package/rules/ast-grep-rules/rules/go-defer-func-call-antipattern.yml +14 -13
- package/rules/ast-grep-rules/rules/go-no-fmt-println.yml +14 -13
- package/rules/ast-grep-rules/rules/go-no-panic-in-lib.yml +20 -19
- package/rules/ast-grep-rules/rules/go-no-underscore-func-name.yml +14 -13
- package/rules/ast-grep-rules/rules/go-prefer-errors-is.yml +14 -13
- package/rules/ast-grep-rules/rules/go-prefer-string-builder.yml +19 -18
- package/rules/ast-grep-rules/rules/go-test-functions.yml +14 -13
- package/rules/ast-grep-rules/rules/hyphenated-svg-attribute.yml +10 -9
- package/rules/ast-grep-rules/rules/kotlin-no-lateinit.yml +12 -11
- package/rules/ast-grep-rules/rules/kotlin-no-nullable-boolean.yml +11 -10
- package/rules/ast-grep-rules/rules/kotlin-no-println.yml +15 -14
- package/rules/ast-grep-rules/rules/kotlin-no-unnecessary-let.yml +10 -9
- package/rules/ast-grep-rules/rules/kotlin-no-unsafe-cast.yml +10 -9
- package/rules/ast-grep-rules/rules/kotlin-no-var.yml +11 -10
- package/rules/ast-grep-rules/rules/kotlin-prefer-data-class.yml +10 -9
- package/rules/ast-grep-rules/rules/kotlin-prefer-is-empty.yml +10 -9
- package/rules/ast-grep-rules/rules/no-aws-access-key-literal.yml +1 -1
- package/rules/ast-grep-rules/rules/no-compile-call.yml +13 -12
- package/rules/ast-grep-rules/rules/no-flask-secret-key-literal.yml +1 -1
- package/rules/ast-grep-rules/rules/no-hardcoded-password.yml +1 -1
- package/rules/ast-grep-rules/rules/no-marshal-load.yml +12 -11
- package/rules/ast-grep-rules/rules/no-python-sql-string-concat.yml +12 -11
- package/rules/ast-grep-rules/rules/no-requests-verify-false.yml +13 -12
- package/rules/ast-grep-rules/rules/no-secret-in-env-var-name.yml +1 -1
- package/rules/ast-grep-rules/rules/python-optional-type.yml +9 -8
- package/rules/ast-grep-rules/rules/reducible-list-comprehension.yml +8 -7
- package/rules/ast-grep-rules/rules/ruby-detect-path-traversal.yml +14 -13
- package/rules/ast-grep-rules/rules/ruby-symbol-to-proc-candidate.yml +8 -7
- package/rules/ast-grep-rules/rules/rust-no-chars-enumerate.yml +9 -8
- package/rules/ast-grep-rules/rules-disabled/gorm-unbounded-preload.yml +7 -6
- package/rules/ast-grep-rules/rules-disabled/shadow-err-variable.yml +6 -5
- package/scripts/analyze-pi-lens-logs.mjs +262 -3
- package/scripts/lib/latency-log-phases.mjs +125 -0
- package/dist/chunk-3QWVOBZJ.js +0 -73
- package/dist/chunk-7WJ55KBN.js +0 -162
- package/dist/chunk-BDR5MEZY.js +0 -25
- package/dist/chunk-CKEQFGLT.js +0 -32
- package/dist/chunk-DBS736MA.js +0 -57
- package/dist/chunk-I74RQGKA.js +0 -88
- package/dist/chunk-IK4YS3KC.js +0 -25
- package/dist/chunk-JKOZ2Z4U.js +0 -20
- package/dist/chunk-TQHOKMVZ.js +0 -28
- package/dist/chunk-VS2L7QDI.js +0 -25
- package/dist/chunk-WAA63ZJV.js +0 -140
- package/dist/chunk-ZPFLHB3R.js +0 -28
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
spawnAbortScope,
|
|
4
|
+
spawnCooldownScope
|
|
5
|
+
} from "./chunk-6EIV3H7O.js";
|
|
2
6
|
|
|
3
7
|
// dist/clients/single-flight.js
|
|
4
8
|
function createSingleFlight(options = {}) {
|
|
@@ -28,11 +32,12 @@ function createSingleFlight(options = {}) {
|
|
|
28
32
|
generation: currentGeneration(),
|
|
29
33
|
rerunRequested: false
|
|
30
34
|
};
|
|
35
|
+
const pass = () => spawnAbortScope.exit(() => spawnCooldownScope.exit(fn));
|
|
31
36
|
const chain = async () => {
|
|
32
|
-
let result = await
|
|
37
|
+
let result = await pass();
|
|
33
38
|
while (flight.rerunRequested) {
|
|
34
39
|
flight.rerunRequested = false;
|
|
35
|
-
result = await
|
|
40
|
+
result = await pass();
|
|
36
41
|
}
|
|
37
42
|
return result;
|
|
38
43
|
};
|
|
@@ -2,16 +2,16 @@ import { createRequire as __pilensCreateRequire } from "node:module"; const requ
|
|
|
2
2
|
import {
|
|
3
3
|
getToolCommandSpec,
|
|
4
4
|
shouldAutoInstallTool
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-D7OEGXDX.js";
|
|
6
6
|
import {
|
|
7
7
|
BUILTIN_SERVER_RUNNER_COVERS,
|
|
8
8
|
getServersForFileWithConfig,
|
|
9
9
|
isAuxiliary,
|
|
10
10
|
resolveAnalysisRootPath
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-Z6WTLVUL.js";
|
|
12
12
|
import {
|
|
13
13
|
emitBounded
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-5EEWCJG7.js";
|
|
15
15
|
import {
|
|
16
16
|
ensureTool,
|
|
17
17
|
findManagedToolBinary,
|
|
@@ -21,20 +21,20 @@ import {
|
|
|
21
21
|
isSpawnableCommand,
|
|
22
22
|
logSessionStart,
|
|
23
23
|
resetPathWalkMemo
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-NRVWLTOY.js";
|
|
25
25
|
import {
|
|
26
26
|
resolveToolCwd
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-YLHJWAQS.js";
|
|
28
28
|
import {
|
|
29
29
|
findGlobalBinary,
|
|
30
30
|
findLocalBinAt,
|
|
31
31
|
findLocalBinUpwards,
|
|
32
32
|
localBinPath
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-OVPR3GQ6.js";
|
|
34
34
|
import {
|
|
35
35
|
createAvailabilityProbeFlight,
|
|
36
36
|
probeToolAsync
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-3QMLB4TI.js";
|
|
38
38
|
import {
|
|
39
39
|
classifyProbeFailure,
|
|
40
40
|
createAvailabilityLatch,
|
|
@@ -42,10 +42,10 @@ import {
|
|
|
42
42
|
describeProbeEvidence,
|
|
43
43
|
isLatchingOutcome,
|
|
44
44
|
logAvailabilityDecision,
|
|
45
|
-
startHostStallSampler
|
|
46
|
-
|
|
47
|
-
} from "./chunk-NPNFGYLV.js";
|
|
45
|
+
startHostStallSampler
|
|
46
|
+
} from "./chunk-AVBEPUCD.js";
|
|
48
47
|
import {
|
|
48
|
+
NODE_MODULES_BIN_DIRS,
|
|
49
49
|
VENDOR_BIN_DIRS,
|
|
50
50
|
VENV_BIN_DIRS,
|
|
51
51
|
createGenerationSource,
|
|
@@ -53,22 +53,22 @@ import {
|
|
|
53
53
|
isInSpawnTimeoutCooldown,
|
|
54
54
|
resolveWindowsCommandForEnvironment,
|
|
55
55
|
safeSpawnAsync
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-ET3DSSFZ.js";
|
|
57
57
|
import {
|
|
58
58
|
PathKeyedMap
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-6EIV3H7O.js";
|
|
60
60
|
import {
|
|
61
61
|
getProjectTrustState
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-HRQTYU2T.js";
|
|
63
63
|
import {
|
|
64
64
|
compareOrdinal,
|
|
65
65
|
incrementDegradationCount
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-AGEQRJ5A.js";
|
|
67
67
|
import {
|
|
68
68
|
isUnderDir,
|
|
69
69
|
normalizeEphemeralMapKey,
|
|
70
70
|
normalizeMapKey
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-WLD6BGON.js";
|
|
72
72
|
|
|
73
73
|
// dist/clients/dispatch/runners/utils/runner-helpers.js
|
|
74
74
|
import * as fs from "node:fs";
|
|
@@ -231,12 +231,12 @@ function resolveAdoptedRootCommand(command, ctx, cwd) {
|
|
|
231
231
|
return null;
|
|
232
232
|
}
|
|
233
233
|
}
|
|
234
|
-
function createVenvFinder(command, windowsExt = "", verificationArgs = ["--version"], allowProjectLocal = true) {
|
|
234
|
+
function createVenvFinder(command, windowsExt = "", verificationArgs = ["--version"], allowProjectLocal = true, projectBinDirs = VENV_BIN_DIRS) {
|
|
235
235
|
return async (cwd) => {
|
|
236
236
|
if (allowProjectLocal) {
|
|
237
237
|
const venvBin = localBinPath(findLocalBinAt(command, cwd, {
|
|
238
238
|
windowsExt,
|
|
239
|
-
binDirs:
|
|
239
|
+
binDirs: projectBinDirs
|
|
240
240
|
}));
|
|
241
241
|
if (venvBin)
|
|
242
242
|
return { path: venvBin, rung: "venv" };
|
|
@@ -480,7 +480,8 @@ function createAvailabilityChecker(command, windowsExt = "", versionArgs = ["--v
|
|
|
480
480
|
const inFlightByCwd = new PathKeyedMap(normalizeEphemeralMapKey);
|
|
481
481
|
let checkerGeneration = availabilityGeneration.current();
|
|
482
482
|
let checkerFlightGeneration = 0;
|
|
483
|
-
const findCommand = createVenvFinder(command, windowsExt, versionArgs, options.allowProjectLocal !== false);
|
|
483
|
+
const findCommand = options.pathOnly ? async () => ({ path: command, rung: "path" }) : createVenvFinder(command, windowsExt, versionArgs, options.allowProjectLocal !== false, options.projectBinDirs);
|
|
484
|
+
const findBeyondProject = createVenvFinder(command, windowsExt, versionArgs, false);
|
|
484
485
|
function ensureCurrentGeneration() {
|
|
485
486
|
if (checkerGeneration === availabilityGeneration.current())
|
|
486
487
|
return;
|
|
@@ -502,33 +503,23 @@ function createAvailabilityChecker(command, windowsExt = "", versionArgs = ["--v
|
|
|
502
503
|
if (existing)
|
|
503
504
|
return existing;
|
|
504
505
|
const created = {
|
|
505
|
-
|
|
506
|
+
latch: createAvailabilityLatch(),
|
|
506
507
|
command: null,
|
|
507
|
-
|
|
508
|
-
cause: null,
|
|
509
|
-
elapsedMs: 0,
|
|
510
|
-
retryAtMs: 0,
|
|
511
|
-
transientAttempts: 0
|
|
508
|
+
elapsedMs: 0
|
|
512
509
|
};
|
|
513
510
|
cacheByCwd.set(key, created);
|
|
514
511
|
return created;
|
|
515
512
|
}
|
|
516
513
|
function noteDecision(cache, resolvedCwd, verdict) {
|
|
517
|
-
cache.available = verdict.available;
|
|
518
|
-
cache.outcome = verdict.outcome;
|
|
519
|
-
cache.cause = verdict.cause;
|
|
520
514
|
cache.elapsedMs = verdict.elapsedMs;
|
|
521
515
|
let retryAfterMs;
|
|
522
516
|
if (verdict.available) {
|
|
523
|
-
cache.
|
|
524
|
-
cache.transientAttempts = 0;
|
|
525
|
-
} else if (isLatchingOutcome(verdict.outcome)) {
|
|
526
|
-
cache.retryAtMs = 0;
|
|
527
|
-
cache.transientAttempts = 0;
|
|
517
|
+
cache.latch.noteAvailable(verdict.cause);
|
|
528
518
|
} else {
|
|
529
|
-
cache.
|
|
530
|
-
|
|
531
|
-
|
|
519
|
+
cache.command = null;
|
|
520
|
+
const delay = cache.latch.noteUnavailable(verdict.outcome, verdict.cause);
|
|
521
|
+
if (delay > 0)
|
|
522
|
+
retryAfterMs = delay;
|
|
532
523
|
}
|
|
533
524
|
const latched = verdict.available || isLatchingOutcome(verdict.outcome);
|
|
534
525
|
if (!verdict.available && latched) {
|
|
@@ -558,20 +549,15 @@ function createAvailabilityChecker(command, windowsExt = "", versionArgs = ["--v
|
|
|
558
549
|
ensureCurrentGeneration();
|
|
559
550
|
const resolvedCwd = cwd || process.cwd();
|
|
560
551
|
const cache = getCache(resolvedCwd);
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
cache.available = null;
|
|
567
|
-
}
|
|
568
|
-
if (cache.available === true && cache.command) {
|
|
569
|
-
if (await isSpawnableCommand(cache.command))
|
|
552
|
+
const answer = cache.latch.read();
|
|
553
|
+
if (answer === false)
|
|
554
|
+
return false;
|
|
555
|
+
if (answer === true) {
|
|
556
|
+
if (cache.command && await isSpawnableCommand(cache.command)) {
|
|
570
557
|
return true;
|
|
571
|
-
|
|
558
|
+
}
|
|
559
|
+
cache.latch.reset();
|
|
572
560
|
cache.command = null;
|
|
573
|
-
cache.outcome = null;
|
|
574
|
-
cache.cause = null;
|
|
575
561
|
}
|
|
576
562
|
const key = path.resolve(resolvedCwd);
|
|
577
563
|
const existing = inFlightByCwd.get(key);
|
|
@@ -619,76 +605,92 @@ function createAvailabilityChecker(command, windowsExt = "", versionArgs = ["--v
|
|
|
619
605
|
return false;
|
|
620
606
|
}
|
|
621
607
|
const resolveStartedAt = Date.now();
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
608
|
+
let resolution = await findCommand(resolvedCwd);
|
|
609
|
+
let resolveMs = Date.now() - resolveStartedAt;
|
|
610
|
+
for (; ; ) {
|
|
611
|
+
const cmd = resolution.path;
|
|
612
|
+
if (isInSpawnTimeoutCooldown(cmd)) {
|
|
613
|
+
noteDecision(cache, resolvedCwd, {
|
|
614
|
+
available: false,
|
|
615
|
+
outcome: "transient",
|
|
616
|
+
cause: "probe-timeout",
|
|
617
|
+
elapsedMs: 0,
|
|
618
|
+
classifiedBy: "caller",
|
|
619
|
+
evidence: {
|
|
620
|
+
command: cmd,
|
|
621
|
+
status: null
|
|
622
|
+
}
|
|
623
|
+
});
|
|
624
|
+
return false;
|
|
625
|
+
}
|
|
626
|
+
const env = await options.environment?.(resolvedCwd);
|
|
627
|
+
const stallSampler = startHostStallSampler();
|
|
628
|
+
const startedAt = Date.now();
|
|
629
|
+
let result;
|
|
630
|
+
let hostStallMs;
|
|
631
|
+
let probeJoined = false;
|
|
632
|
+
try {
|
|
633
|
+
const shared = checkerProbeFlights.run(`checker:${command}|${versionArgs.join("|")}|${key}|${checkerFlightGeneration}|${windowsExt}|${cmd}|${JSON.stringify(Object.entries(env ?? {}).sort(([a], [b]) => compareOrdinal(a, b)))}`, () => (
|
|
634
|
+
// A bare PATH-only probe goes through the cwd-less probe seam
|
|
635
|
+
// (#2894): nothing it answers is read out of a project.
|
|
636
|
+
options.pathOnly ? probeToolAsync(cmd, versionArgs, {
|
|
637
|
+
timeout: options.probeTimeout ?? 5e3,
|
|
638
|
+
...env !== void 0 && { env },
|
|
639
|
+
input: ""
|
|
640
|
+
}) : safeSpawnAsync(cmd, versionArgs, {
|
|
641
|
+
timeout: options.probeTimeout ?? 5e3,
|
|
642
|
+
cwd: resolvedCwd,
|
|
643
|
+
env,
|
|
644
|
+
input: ""
|
|
645
|
+
})
|
|
646
|
+
));
|
|
647
|
+
probeJoined = shared.joined;
|
|
648
|
+
result = await shared.promise;
|
|
649
|
+
} finally {
|
|
650
|
+
hostStallMs = stallSampler.stop();
|
|
651
|
+
}
|
|
652
|
+
const elapsedMs = Date.now() - startedAt;
|
|
653
|
+
recordAvailabilityProbeOverrun(command, resolvedCwd, elapsedMs, options.probeTimeout ?? 5e3, result.failure);
|
|
654
|
+
if (!result.error && result.status === 0) {
|
|
655
|
+
cache.command = cmd;
|
|
656
|
+
noteDecision(cache, resolvedCwd, {
|
|
657
|
+
available: true,
|
|
658
|
+
outcome: "success",
|
|
659
|
+
cause: "ok",
|
|
660
|
+
elapsedMs,
|
|
661
|
+
hostStallMs,
|
|
662
|
+
classifiedBy: probeJoined ? "joined" : "probe",
|
|
663
|
+
evidence: {
|
|
664
|
+
...describeProbeEvidence(result),
|
|
665
|
+
...describeManagedResolution(command, resolution),
|
|
666
|
+
resolveMs
|
|
667
|
+
}
|
|
668
|
+
});
|
|
669
|
+
return true;
|
|
670
|
+
}
|
|
671
|
+
const { outcome, cause, evidence } = classifyProbeFailure(result, {
|
|
672
|
+
hostStallMs,
|
|
673
|
+
unclassifiedFailureOutcome: options.unclassifiedFailureOutcome
|
|
636
674
|
});
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
try {
|
|
646
|
-
const shared = checkerProbeFlights.run(`checker:${command}|${versionArgs.join("|")}|${key}|${checkerFlightGeneration}|${windowsExt}|${cmd}|${JSON.stringify(Object.entries(env ?? {}).sort(([a], [b]) => compareOrdinal(a, b)))}`, () => safeSpawnAsync(cmd, versionArgs, {
|
|
647
|
-
timeout: options.probeTimeout ?? 5e3,
|
|
648
|
-
cwd: resolvedCwd,
|
|
649
|
-
env,
|
|
650
|
-
input: ""
|
|
651
|
-
}));
|
|
652
|
-
probeJoined = shared.joined;
|
|
653
|
-
result = await shared.promise;
|
|
654
|
-
} finally {
|
|
655
|
-
hostStallMs = stallSampler.stop();
|
|
656
|
-
}
|
|
657
|
-
const elapsedMs = Date.now() - startedAt;
|
|
658
|
-
recordAvailabilityProbeOverrun(command, resolvedCwd, elapsedMs, options.probeTimeout ?? 5e3, result.failure);
|
|
659
|
-
if (!result.error && result.status === 0) {
|
|
660
|
-
cache.command = cmd;
|
|
675
|
+
if (resolution.rung === "venv" && isLatchingOutcome(outcome)) {
|
|
676
|
+
const fallStartedAt = Date.now();
|
|
677
|
+
resolution = await findBeyondProject(resolvedCwd);
|
|
678
|
+
resolveMs += Date.now() - fallStartedAt;
|
|
679
|
+
continue;
|
|
680
|
+
}
|
|
681
|
+
if (result.spawnFailure?.kind === "tool-not-found")
|
|
682
|
+
resetPathWalkMemo();
|
|
661
683
|
noteDecision(cache, resolvedCwd, {
|
|
662
|
-
available:
|
|
663
|
-
outcome
|
|
664
|
-
cause
|
|
684
|
+
available: false,
|
|
685
|
+
outcome,
|
|
686
|
+
cause,
|
|
665
687
|
elapsedMs,
|
|
666
688
|
hostStallMs,
|
|
667
689
|
classifiedBy: probeJoined ? "joined" : "probe",
|
|
668
|
-
evidence
|
|
669
|
-
...describeProbeEvidence(result),
|
|
670
|
-
...describeManagedResolution(command, resolution),
|
|
671
|
-
resolveMs
|
|
672
|
-
}
|
|
690
|
+
evidence
|
|
673
691
|
});
|
|
674
|
-
return
|
|
692
|
+
return false;
|
|
675
693
|
}
|
|
676
|
-
const { outcome, cause, evidence } = classifyProbeFailure(result, {
|
|
677
|
-
hostStallMs,
|
|
678
|
-
unclassifiedFailureOutcome: options.unclassifiedFailureOutcome
|
|
679
|
-
});
|
|
680
|
-
if (result.spawnFailure?.kind === "tool-not-found")
|
|
681
|
-
resetPathWalkMemo();
|
|
682
|
-
noteDecision(cache, resolvedCwd, {
|
|
683
|
-
available: false,
|
|
684
|
-
outcome,
|
|
685
|
-
cause,
|
|
686
|
-
elapsedMs,
|
|
687
|
-
hostStallMs,
|
|
688
|
-
classifiedBy: probeJoined ? "joined" : "probe",
|
|
689
|
-
evidence
|
|
690
|
-
});
|
|
691
|
-
return false;
|
|
692
694
|
})().finally(() => {
|
|
693
695
|
if (checkerGeneration === promiseGeneration && inFlightByCwd.get(key) === promise) {
|
|
694
696
|
inFlightByCwd.delete(key);
|
|
@@ -704,17 +706,18 @@ function createAvailabilityChecker(command, windowsExt = "", versionArgs = ["--v
|
|
|
704
706
|
}
|
|
705
707
|
function getOutcome(cwd) {
|
|
706
708
|
ensureCurrentGeneration();
|
|
707
|
-
return getCache(cwd || process.cwd()).
|
|
709
|
+
return getCache(cwd || process.cwd()).latch.getOutcome();
|
|
708
710
|
}
|
|
709
711
|
function getVerdict(cwd) {
|
|
710
712
|
ensureCurrentGeneration();
|
|
711
|
-
const
|
|
713
|
+
const { latch, elapsedMs } = getCache(cwd || process.cwd());
|
|
714
|
+
const outcome = latch.getOutcome();
|
|
712
715
|
return {
|
|
713
|
-
outcome
|
|
714
|
-
cause:
|
|
715
|
-
elapsedMs
|
|
716
|
-
latched:
|
|
717
|
-
retryAtMs:
|
|
716
|
+
outcome,
|
|
717
|
+
cause: latch.getCause(),
|
|
718
|
+
elapsedMs,
|
|
719
|
+
latched: outcome === null || isLatchingOutcome(outcome),
|
|
720
|
+
retryAtMs: latch.getRetryAtMs()
|
|
718
721
|
};
|
|
719
722
|
}
|
|
720
723
|
return { isAvailableAsync, getCommand, getOutcome, getVerdict, reset };
|
|
@@ -881,11 +884,23 @@ function resolveVendorToolCommand(cwd, toolName, windowsExt = ".bat") {
|
|
|
881
884
|
binDirs: VENDOR_BIN_DIRS
|
|
882
885
|
})) ?? null;
|
|
883
886
|
}
|
|
884
|
-
|
|
887
|
+
var toolBinaryCheckers = /* @__PURE__ */ new Map();
|
|
888
|
+
function toolBinaryChecker(toolId) {
|
|
889
|
+
const existing = toolBinaryCheckers.get(toolId);
|
|
890
|
+
if (existing)
|
|
891
|
+
return existing;
|
|
885
892
|
const spec = getToolCommandSpec(toolId);
|
|
886
893
|
if (!spec)
|
|
887
894
|
return null;
|
|
888
|
-
|
|
895
|
+
const checker = createAvailabilityChecker(spec.command, spec.windowsExt ?? "", spec.versionArgs ?? ["--version"], { projectBinDirs: [...VENV_BIN_DIRS, ...NODE_MODULES_BIN_DIRS] });
|
|
896
|
+
toolBinaryCheckers.set(toolId, checker);
|
|
897
|
+
return checker;
|
|
898
|
+
}
|
|
899
|
+
async function resolveToolCommandWithInstallFallback(cwd, toolId) {
|
|
900
|
+
const checker = toolBinaryChecker(toolId);
|
|
901
|
+
if (!checker)
|
|
902
|
+
return null;
|
|
903
|
+
return resolveAvailableOrInstall(checker, getToolCommandSpec(toolId)?.managedToolId ?? toolId, cwd);
|
|
889
904
|
}
|
|
890
905
|
async function verifyOrInstallCommand(command, toolId, cwd, versionArgs = ["--version"], timeout = 5e3) {
|
|
891
906
|
const spawnable = await isSpawnableCommand(command);
|
|
@@ -893,7 +908,8 @@ async function verifyOrInstallCommand(command, toolId, cwd, versionArgs = ["--ve
|
|
|
893
908
|
const versionCheck = await safeSpawnAsync(command, versionArgs, {
|
|
894
909
|
timeout,
|
|
895
910
|
cwd,
|
|
896
|
-
input: ""
|
|
911
|
+
input: "",
|
|
912
|
+
cooldown: false
|
|
897
913
|
});
|
|
898
914
|
if (!versionCheck.error && versionCheck.status === 0) {
|
|
899
915
|
return command;
|
|
@@ -916,7 +932,7 @@ async function verifyOrInstallCommand(command, toolId, cwd, versionArgs = ["--ve
|
|
|
916
932
|
return null;
|
|
917
933
|
}
|
|
918
934
|
async function resolveCommandArgsWithInstallFallback(command, toolId, cwd, versionArgs = ["--version"], timeout = 5e3) {
|
|
919
|
-
const versionCheck = await safeSpawnAsync(command.cmd, [...command.args, ...versionArgs], { timeout, cwd, input: "" });
|
|
935
|
+
const versionCheck = await safeSpawnAsync(command.cmd, [...command.args, ...versionArgs], { timeout, cwd, input: "", cooldown: false });
|
|
920
936
|
if (!versionCheck.error && versionCheck.status === 0) {
|
|
921
937
|
return command;
|
|
922
938
|
}
|
|
@@ -929,9 +945,6 @@ async function resolveCommandArgsWithInstallFallback(command, toolId, cwd, versi
|
|
|
929
945
|
}
|
|
930
946
|
return { cmd: installed, args: [] };
|
|
931
947
|
}
|
|
932
|
-
async function resolveCommandWithInstallFallback(command, toolId, cwd, versionArgs = ["--version"], timeout = 5e3) {
|
|
933
|
-
return verifyOrInstallCommand(command, toolId, cwd, versionArgs, timeout);
|
|
934
|
-
}
|
|
935
948
|
async function resolveAvailableOrInstallUnshared(checker, toolId, cwd) {
|
|
936
949
|
const available = await checker.isAvailableAsync(cwd);
|
|
937
950
|
if (available) {
|
|
@@ -1011,8 +1024,6 @@ export {
|
|
|
1011
1024
|
resolveManagedToolClient,
|
|
1012
1025
|
getManagedToolEnvironment,
|
|
1013
1026
|
discoverManagedTool,
|
|
1014
|
-
getDispatchAvailabilityGeneration,
|
|
1015
|
-
recordAvailabilityProbeOverrun,
|
|
1016
1027
|
resetDispatchAvailabilityState,
|
|
1017
1028
|
createAvailabilityChecker,
|
|
1018
1029
|
createCwdCachedProbe,
|
|
@@ -1,23 +1,25 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
|
-
hashFileBytes,
|
|
4
3
|
resolveRunnerPath
|
|
5
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ZRQMENT4.js";
|
|
5
|
+
import {
|
|
6
|
+
hashFileBytes
|
|
7
|
+
} from "./chunk-CIA7X2PZ.js";
|
|
6
8
|
import {
|
|
7
9
|
recordDegradationOnce,
|
|
8
10
|
resolveLensToolName,
|
|
9
11
|
translateGuidanceToolNames
|
|
10
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-AGEQRJ5A.js";
|
|
11
13
|
import {
|
|
12
14
|
freshnessFromMtime
|
|
13
15
|
} from "./chunk-S26LC76R.js";
|
|
14
16
|
import {
|
|
15
17
|
logLatency
|
|
16
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-K2GV34T2.js";
|
|
17
19
|
import {
|
|
18
20
|
normalizeMapKey,
|
|
19
21
|
toProjectRelativePath
|
|
20
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-WLD6BGON.js";
|
|
21
23
|
|
|
22
24
|
// dist/clients/advisory-provenance.js
|
|
23
25
|
import * as fs from "node:fs";
|
|
@@ -8,21 +8,21 @@ import {
|
|
|
8
8
|
getDefaultStartupTools,
|
|
9
9
|
resolveLanguageRootForFile,
|
|
10
10
|
rootMarkersForFile
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-75TVYCQW.js";
|
|
12
|
+
import "./chunk-KXDQD34C.js";
|
|
13
|
+
import "./chunk-3PMLYGJN.js";
|
|
14
|
+
import "./chunk-YTXFNCVN.js";
|
|
15
|
+
import "./chunk-ET3DSSFZ.js";
|
|
16
16
|
import "./chunk-QYF5S6P6.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-SRXYSLMW.js";
|
|
18
|
+
import "./chunk-6EIV3H7O.js";
|
|
19
|
+
import "./chunk-3R3Z54J7.js";
|
|
20
|
+
import "./chunk-HRQTYU2T.js";
|
|
21
|
+
import "./chunk-AGEQRJ5A.js";
|
|
22
22
|
import "./chunk-S26LC76R.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-K2GV34T2.js";
|
|
24
24
|
import "./chunk-LJDODBBZ.js";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-WLD6BGON.js";
|
|
26
26
|
import "./chunk-NXL4FFQQ.js";
|
|
27
27
|
export {
|
|
28
28
|
SUPPORTED_FILE_KINDS,
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
|
+
|
|
3
|
+
// dist/clients/content-stamp.js
|
|
4
|
+
import { createHash } from "node:crypto";
|
|
5
|
+
import * as fs from "node:fs";
|
|
6
|
+
var CONTENT_HASH_MAX_BYTES = 4 * 1024 * 1024;
|
|
7
|
+
function hashContentBytes(bytes) {
|
|
8
|
+
return createHash("sha256").update(bytes).digest("hex");
|
|
9
|
+
}
|
|
10
|
+
function hashFileBytes(filePath) {
|
|
11
|
+
return hashContentBytes(fs.readFileSync(filePath));
|
|
12
|
+
}
|
|
13
|
+
function stampContentBytes(bytes, mtimeMs) {
|
|
14
|
+
return {
|
|
15
|
+
size: bytes.byteLength,
|
|
16
|
+
mtimeMs,
|
|
17
|
+
...bytes.byteLength <= CONTENT_HASH_MAX_BYTES ? { sha256: hashContentBytes(bytes) } : {}
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export {
|
|
22
|
+
CONTENT_HASH_MAX_BYTES,
|
|
23
|
+
hashContentBytes,
|
|
24
|
+
hashFileBytes,
|
|
25
|
+
stampContentBytes
|
|
26
|
+
};
|