@herbertgao/pi-extensions 2026.11.11 → 2026.11.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.md +20 -0
- package/README.md +10 -10
- package/THIRD_PARTY_NOTICES.md +3 -3
- package/node_modules/@herbertgao/pi-cc-extensions/CHANGELOG.md +10 -0
- package/node_modules/@herbertgao/pi-cc-extensions/README.en.md +3 -4
- package/node_modules/@herbertgao/pi-cc-extensions/README.md +3 -4
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/feature/agent-summary/core.ts +22 -15
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/feature/agent-summary/index.ts +22 -8
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/feature/context.ts +0 -29
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/feature/shell/prompt-editor.ts +5 -2
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/compact-mode.ts +60 -39
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/mouse/interaction.ts +3 -2
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/codemode.ts +0 -40
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/diff/diff-parse.ts +4 -1
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/grouping.ts +21 -3
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/utils/format.ts +15 -0
- package/node_modules/@herbertgao/pi-cc-extensions/package.json +4 -4
- 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 +2 -2
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/adapt.md +1 -1
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/animate.md +17 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/critique-rubric.md +496 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/critique.md +12 -504
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/degraded/motion-reviewer.md +29 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/hooks.md +3 -3
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/new-work-comp.md +24 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/new-work-world.md +20 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/new-work.md +5 -34
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/typeset.md +6 -0
- 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 +17 -18
- package/node_modules/pi-antigravity/README.md +58 -9
- package/node_modules/pi-antigravity/docs/reader-guarantees.md +35 -0
- package/node_modules/pi-antigravity/package.json +15 -6
- package/node_modules/pi-antigravity/src/client/client.ts +63 -14
- package/node_modules/pi-antigravity/src/client/enterprise.ts +150 -0
- package/node_modules/pi-antigravity/src/client/index.ts +1 -0
- package/node_modules/pi-antigravity/src/diagnostics/diagnostics.ts +7 -0
- package/node_modules/pi-antigravity/src/features/generate-image.ts +56 -2
- package/node_modules/pi-antigravity/src/features/read-url-content.ts +124 -0
- package/node_modules/pi-antigravity/src/image/image.ts +16 -2
- package/node_modules/pi-antigravity/src/index.ts +145 -2
- package/node_modules/pi-antigravity/src/models/discovery.ts +3 -4
- package/node_modules/pi-antigravity/src/models/grouping.ts +39 -15
- package/node_modules/pi-antigravity/src/models/models.ts +126 -14
- package/node_modules/pi-antigravity/src/stream/stream.ts +189 -30
- package/node_modules/pi-antigravity/src/types/types.ts +30 -1
- package/node_modules/pi-antigravity/src/usage/usage.ts +58 -0
- package/node_modules/pi-antigravity/src/utils/address.ts +180 -0
- package/node_modules/pi-antigravity/src/utils/credits.ts +149 -0
- package/node_modules/pi-antigravity/src/utils/html.ts +31 -0
- package/node_modules/pi-antigravity/src/utils/index.ts +2 -0
- package/node_modules/pi-antigravity/src/utils/security.ts +172 -13
- package/node_modules/pi-antigravity/src/utils/text.ts +66 -0
- package/node_modules/pi-antigravity/src/utils/util.ts +5 -4
- package/node_modules/pi-antigravity/src/web-fetch/document.ts +83 -0
- package/node_modules/pi-antigravity/src/web-fetch/fences.ts +24 -0
- package/node_modules/pi-antigravity/src/web-fetch/header.ts +97 -0
- package/node_modules/pi-antigravity/src/web-fetch/index.ts +3 -0
- package/node_modules/pi-antigravity/src/web-fetch/inspect.ts +328 -0
- package/node_modules/pi-antigravity/src/web-fetch/limits.ts +4 -0
- package/node_modules/pi-antigravity/src/web-fetch/markdown.ts +744 -0
- package/node_modules/pi-antigravity/src/web-fetch/mdn.ts +164 -0
- package/node_modules/pi-antigravity/src/web-fetch/media.ts +11 -0
- package/node_modules/pi-antigravity/src/web-fetch/metadata.ts +9 -0
- package/node_modules/pi-antigravity/src/web-fetch/representation.ts +93 -0
- package/node_modules/pi-antigravity/src/web-fetch/save.ts +71 -0
- package/node_modules/pi-antigravity/src/web-fetch/sites.ts +138 -0
- package/node_modules/pi-antigravity/src/web-fetch/vendor.d.ts +9 -0
- package/node_modules/pi-antigravity/src/web-fetch/web-fetch.ts +957 -0
- package/node_modules/pi-antigravity/tsconfig.json +2 -2
- package/node_modules/pi-commandcode-provider/CHANGELOG.md +10 -0
- package/node_modules/pi-commandcode-provider/README.md +2 -2
- package/node_modules/pi-commandcode-provider/package.json +1 -1
- package/node_modules/pi-commandcode-provider/src/commandcode-catalog.ts +15 -9
- package/node_modules/pi-commandcode-provider/src/oauth.ts +69 -12
- package/node_modules/pi-lens/CHANGELOG-USER.md +6 -6
- package/node_modules/pi-lens/CHANGELOG.md +172 -0
- package/node_modules/pi-lens/README.md +103 -217
- package/node_modules/pi-lens/dist/{chunk-KXDQD34C.js → chunk-27JQHK7Y.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-W6VLB6LL.js → chunk-2APSZHHI.js} +61 -3
- package/node_modules/pi-lens/dist/{chunk-5EEWCJG7.js → chunk-2H5GHZKC.js} +8 -8
- package/node_modules/pi-lens/dist/{chunk-TS5EIWEF.js → chunk-2H7NFZ4Q.js} +11 -11
- package/node_modules/pi-lens/dist/{chunk-6GWCYEP7.js → chunk-37IDWT6O.js} +64 -16
- package/node_modules/pi-lens/dist/{chunk-OEPWTSUG.js → chunk-3PAS2ERX.js} +8 -8
- package/node_modules/pi-lens/dist/{chunk-ET3DSSFZ.js → chunk-3PO4YYOX.js} +9 -17
- package/node_modules/pi-lens/dist/{chunk-C6V2DSZZ.js → chunk-3QXFUP6T.js} +11 -11
- package/node_modules/pi-lens/dist/{chunk-HWMNTQBJ.js → chunk-3TSMQZG6.js} +32 -11
- package/node_modules/pi-lens/dist/{chunk-QY6J2FTK.js → chunk-4DAHGU3V.js} +15 -14
- package/node_modules/pi-lens/dist/{chunk-PCREZ4HJ.js → chunk-4IZZEN63.js} +33 -34
- package/node_modules/pi-lens/dist/{chunk-OYXD2MOM.js → chunk-5HBQL7DH.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-B4FAFEBP.js → chunk-5JB4WENL.js} +1 -1
- package/node_modules/pi-lens/dist/chunk-5YJXF2IS.js +56 -0
- package/node_modules/pi-lens/dist/{chunk-GHATCG2A.js → chunk-6CFSDLHE.js} +22 -18
- package/node_modules/pi-lens/dist/{chunk-FVQKX5KI.js → chunk-6E5QLMWI.js} +24 -22
- package/node_modules/pi-lens/dist/{chunk-AVBEPUCD.js → chunk-6GLMMGCX.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-YTXFNCVN.js → chunk-74AMPWNC.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-K2GV34T2.js → chunk-7CLWC2UH.js} +26 -37
- package/node_modules/pi-lens/dist/{chunk-MOEWCPMC.js → chunk-7DPXUPRF.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-7BEADGAZ.js → chunk-7U36VQL6.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-PPYUBO6Y.js → chunk-7WKVCZI4.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-ILC2B7IJ.js → chunk-7ZVTFLCC.js} +10 -10
- package/node_modules/pi-lens/dist/{chunk-IT7MFVGP.js → chunk-ADYQRETD.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-NCDH2JB7.js → chunk-ARTYCUGF.js} +25 -10
- package/node_modules/pi-lens/dist/{chunk-Z6WTLVUL.js → chunk-AXAR5ZW2.js} +225 -104
- package/node_modules/pi-lens/dist/{chunk-PK3GDU4M.js → chunk-AZG5UJYY.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-NRVWLTOY.js → chunk-B2OXE4AH.js} +60 -21
- package/node_modules/pi-lens/dist/{chunk-ORYQGVC3.js → chunk-B42AIWPJ.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-IC4L65U7.js → chunk-BBSDJTOV.js} +12 -13
- package/node_modules/pi-lens/dist/{chunk-HJWF7CGW.js → chunk-BKWFDWYM.js} +16 -16
- package/node_modules/pi-lens/dist/{chunk-D2ZYRI7M.js → chunk-C5PLBTNR.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-SRXYSLMW.js → chunk-CQY2HEH7.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-7424ANRU.js → chunk-CXQYK4YT.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-HYR25MV3.js → chunk-CZJGAOKL.js} +8 -7
- package/node_modules/pi-lens/dist/{chunk-DIIDMDZU.js → chunk-DCA2MXVQ.js} +11 -11
- package/node_modules/pi-lens/dist/{chunk-K2LD6YNH.js → chunk-DFKOA74L.js} +9 -9
- package/node_modules/pi-lens/dist/{chunk-AYDE7RFV.js → chunk-DI4AZZNY.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-6EXGCXM5.js → chunk-G53LBDNU.js} +99 -5
- package/node_modules/pi-lens/dist/chunk-GCSDF5IE.js +27 -0
- package/node_modules/pi-lens/dist/{chunk-5KLRCUDT.js → chunk-H5API74E.js} +6 -6
- package/node_modules/pi-lens/dist/chunk-HBX55MWO.js +27 -0
- package/node_modules/pi-lens/dist/{chunk-JRSS6KM4.js → chunk-HIJ4CHFF.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-3MHY4BQY.js → chunk-HIRBC72R.js} +4 -4
- package/node_modules/pi-lens/dist/{chunk-F7AMFFVK.js → chunk-HRLF35WL.js} +8 -8
- package/node_modules/pi-lens/dist/{chunk-HSTN27NR.js → chunk-I2FYOZNW.js} +9 -9
- package/node_modules/pi-lens/dist/{chunk-5FDUKJZO.js → chunk-I3NZVAMN.js} +9 -9
- package/node_modules/pi-lens/dist/{chunk-NZINZCHB.js → chunk-INBK3HIT.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-PXGVB2CY.js → chunk-J2ZB5MDS.js} +20 -18
- package/node_modules/pi-lens/dist/{chunk-HYDJUVOE.js → chunk-JGUDT5KD.js} +4 -4
- package/node_modules/pi-lens/dist/chunk-JOIKBUQN.js +88 -0
- package/node_modules/pi-lens/dist/{chunk-AZXTLZHE.js → chunk-K4Z7MK6T.js} +169 -165
- package/node_modules/pi-lens/dist/{chunk-WTSQKJAR.js → chunk-K7O6AHSJ.js} +10 -10
- package/node_modules/pi-lens/dist/{chunk-S6ZQFPOX.js → chunk-KNJH6WJQ.js} +6 -6
- package/node_modules/pi-lens/dist/{chunk-SUIZOCSY.js → chunk-KNSOA43J.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-3QMLB4TI.js → chunk-KXGTLAUW.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-OHEUOWYT.js → chunk-KZ732ZVW.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-G3LR6V6N.js → chunk-L6BDRYUK.js} +19 -17
- package/node_modules/pi-lens/dist/{chunk-OVPR3GQ6.js → chunk-LGH2HHZG.js} +24 -6
- package/node_modules/pi-lens/dist/{chunk-3R3Z54J7.js → chunk-LOEJFTF2.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-HGEE5LDW.js → chunk-LQQNFCQJ.js} +1 -1
- package/node_modules/pi-lens/dist/chunk-LVLPA32Q.js +810 -0
- package/node_modules/pi-lens/dist/chunk-M2YMBT5G.js +73 -0
- package/node_modules/pi-lens/dist/{chunk-Z2W5YJBW.js → chunk-MJRGPEQ5.js} +11 -11
- package/node_modules/pi-lens/dist/{chunk-3EIZMRXI.js → chunk-MOAVEPC4.js} +10 -10
- package/node_modules/pi-lens/dist/{chunk-TOOXNL6M.js → chunk-NGNBJIUO.js} +7 -7
- package/node_modules/pi-lens/dist/{chunk-AGEQRJ5A.js → chunk-NHA5K226.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-YLW26OHX.js → chunk-NNEQOC3U.js} +31 -59
- package/node_modules/pi-lens/dist/{chunk-ZWZD4TJ5.js → chunk-O2MHF7QM.js} +35 -36
- package/node_modules/pi-lens/dist/{chunk-PTJXMYRY.js → chunk-OLWGYBYT.js} +15 -16
- package/node_modules/pi-lens/dist/{chunk-JKAVKTMY.js → chunk-OZQQ3AIR.js} +17 -20
- package/node_modules/pi-lens/dist/{chunk-6JLNZ6DP.js → chunk-P5MSLVUW.js} +10 -10
- package/node_modules/pi-lens/dist/{chunk-OF2YGDUE.js → chunk-PFJLYRO3.js} +37 -38
- package/node_modules/pi-lens/dist/chunk-PKWEBMCA.js +2957 -0
- package/node_modules/pi-lens/dist/{chunk-JLMS7EMD.js → chunk-PPQHMSPH.js} +16 -15
- package/node_modules/pi-lens/dist/{chunk-6EIV3H7O.js → chunk-PQF6YGYB.js} +12 -5
- package/node_modules/pi-lens/dist/{chunk-VU2PRGRI.js → chunk-PQXUZYTQ.js} +4 -4
- package/node_modules/pi-lens/dist/{chunk-MV6ST2KT.js → chunk-Q7J3JYJ2.js} +13 -12
- package/node_modules/pi-lens/dist/{chunk-BMMRLJA4.js → chunk-QE5DJ7MX.js} +27 -10
- package/node_modules/pi-lens/dist/{chunk-IZ36G463.js → chunk-QE7BJQ6K.js} +7 -7
- package/node_modules/pi-lens/dist/{chunk-E5SSUV2A.js → chunk-QMWKSYWB.js} +4 -4
- package/node_modules/pi-lens/dist/{chunk-QJ4T73J5.js → chunk-QV3JPCMK.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-3PMLYGJN.js → chunk-R4L7KZ7R.js} +5 -5
- package/node_modules/pi-lens/dist/{chunk-7ZVEFWOE.js → chunk-RIH3UBK4.js} +10 -10
- package/node_modules/pi-lens/dist/{chunk-T5EGSBM2.js → chunk-RJ3APNIP.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-AAIVSSUU.js → chunk-S6MCMD27.js} +35 -12
- package/node_modules/pi-lens/dist/{chunk-SF7KSXB5.js → chunk-SCU62JLX.js} +6 -6
- package/node_modules/pi-lens/dist/{chunk-FDLGJFAE.js → chunk-SDYLT45T.js} +3 -3
- package/node_modules/pi-lens/dist/chunk-TFKN5EIR.js +27 -0
- package/node_modules/pi-lens/dist/{chunk-Y7XMKBFP.js → chunk-TKOFTLGB.js} +34 -26
- package/node_modules/pi-lens/dist/chunk-TQWRH25U.js +35 -0
- package/node_modules/pi-lens/dist/{chunk-DZSQXG66.js → chunk-TWEOJE3D.js} +277 -62
- package/node_modules/pi-lens/dist/{chunk-R67WQ5RY.js → chunk-UN72ZAJ5.js} +8 -8
- package/node_modules/pi-lens/dist/{chunk-AD7JDEI6.js → chunk-UNP6Y4JV.js} +16 -16
- package/node_modules/pi-lens/dist/{chunk-D6ANA6YU.js → chunk-VGRGW4UL.js} +63 -55
- package/node_modules/pi-lens/dist/{chunk-DFAY7JUN.js → chunk-VSQT6IHZ.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-7T64QA5D.js → chunk-VWEBZ2JV.js} +39 -38
- package/node_modules/pi-lens/dist/{chunk-HRQTYU2T.js → chunk-W26QZ3OM.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-2HWVG3IM.js → chunk-XDNWR7SG.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-75TVYCQW.js → chunk-XSC3BCN3.js} +5 -5
- package/node_modules/pi-lens/dist/{chunk-ME6MF2N2.js → chunk-YCR6ZYTE.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-LD7SXICE.js → chunk-ZI7YHV6I.js} +5 -5
- package/node_modules/pi-lens/dist/{chunk-E3PNZDPH.js → chunk-ZQSSO7LO.js} +33 -1
- package/node_modules/pi-lens/dist/{chunk-T6PPK3T6.js → chunk-ZULZS2I6.js} +385 -407
- package/node_modules/pi-lens/dist/index.js +6508 -5413
- package/node_modules/pi-lens/dist/mcp/analyze-cli.js +9 -9
- package/node_modules/pi-lens/dist/mcp/cli.js +39 -38
- package/node_modules/pi-lens/dist/mcp/server.js +602 -345
- package/node_modules/pi-lens/dist/mcp/worker.js +57 -58
- package/node_modules/pi-lens/dist/probes/installer.js +19 -17
- package/node_modules/pi-lens/docs/architecture.md +113 -0
- package/node_modules/pi-lens/docs/ast-grep_rules_catalog.md +2 -2
- package/node_modules/pi-lens/docs/ci.md +18 -4
- package/node_modules/pi-lens/docs/defect-shapes.md +41 -3
- package/node_modules/pi-lens/docs/dependencies.md +10 -10
- package/node_modules/pi-lens/docs/features.md +3 -3
- package/node_modules/pi-lens/docs/invariants/dispatch-runners.md +13 -1
- package/node_modules/pi-lens/docs/invariants/lsp-trust-exec.md +19 -0
- package/node_modules/pi-lens/docs/language-coverage.md +39 -0
- package/node_modules/pi-lens/docs/lsp-capability-matrix.md +10 -4
- package/node_modules/pi-lens/docs/lsp-idle-eviction.md +1 -1
- package/node_modules/pi-lens/docs/pi-lens-fixer.md +4 -0
- package/node_modules/pi-lens/docs/pi-lens-merge-policy.md +1 -1
- package/node_modules/pi-lens/docs/pi-lens-reviewer.md +4 -5
- package/node_modules/pi-lens/docs/pi-lens-subagent.md +5 -2
- package/node_modules/pi-lens/docs/prose-standard.md +112 -0
- package/node_modules/pi-lens/docs/servercapabilities.md +1 -1
- package/node_modules/pi-lens/docs/usage.md +50 -0
- package/node_modules/pi-lens/package.json +1 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/rule-tests/array-callback-return-js-test.yml +23 -0
- package/node_modules/pi-lens/rules/ast-grep-rules/rule-tests/array-callback-return-test.yml +23 -0
- package/node_modules/pi-lens/rules/ast-grep-rules/rule-tests/no-negation-in-equality-check-js-test.yml +8 -0
- package/node_modules/pi-lens/rules/ast-grep-rules/rule-tests/no-negation-in-equality-check-test.yml +8 -0
- package/node_modules/pi-lens/rules/ast-grep-rules/rule-tests/unchecked-throwing-call-js-test.yml +16 -0
- package/node_modules/pi-lens/rules/ast-grep-rules/rule-tests/unchecked-throwing-call-test.yml +16 -0
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/array-callback-return-js.yml +8 -0
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/array-callback-return.yml +8 -0
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/no-negation-in-equality-check-js.yml +17 -5
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/no-negation-in-equality-check.yml +17 -5
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/unchecked-throwing-call-js.yml +8 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/unchecked-throwing-call.yml +8 -1
- package/node_modules/pi-lens/rules/tree-sitter-queries/typescript/ts-react-antipatterns.yml +8 -0
- package/node_modules/pi-web-access/CHANGELOG.md +29 -0
- package/node_modules/pi-web-access/README.md +35 -15
- package/node_modules/pi-web-access/anysearch.ts +7 -3
- package/node_modules/pi-web-access/autom.ts +196 -0
- package/node_modules/pi-web-access/cloro.ts +254 -0
- package/node_modules/pi-web-access/curator-page.ts +7 -1
- package/node_modules/pi-web-access/curator-server.ts +3 -0
- package/node_modules/pi-web-access/dist/index.js +12931 -12111
- package/node_modules/pi-web-access/dist/mcp-cli.js +1188 -416
- package/node_modules/pi-web-access/domain-filter-normalization.ts +30 -0
- package/node_modules/pi-web-access/duckduckgo-rate-limit.ts +144 -34
- package/node_modules/pi-web-access/duckduckgo.ts +11 -3
- package/node_modules/pi-web-access/extract.ts +60 -4
- package/node_modules/pi-web-access/gemini-search.ts +25 -5
- package/node_modules/pi-web-access/index.ts +9 -1
- package/node_modules/pi-web-access/package.json +2 -2
- package/node_modules/pi-web-access/page-query.ts +12 -3
- package/node_modules/pi-web-access/specstream.ts +276 -0
- package/node_modules/pi-web-access/tool-activation.ts +21 -6
- package/node_modules/pi-web-access/utils.ts +4 -0
- package/node_modules/pi-web-access/video-extract.ts +2 -2
- package/node_modules/pi-web-access/web-tool-core.ts +24 -5
- package/node_modules/pi-web-access/youtube-extract.ts +2 -2
- package/package.json +10 -7
- package/node_modules/pi-lens/dist/chunk-3VWEZ6H2.js +0 -72
- package/node_modules/pi-lens/dist/chunk-7KWI5UHL.js +0 -28
- package/node_modules/pi-lens/dist/chunk-7M64NTAK.js +0 -38
- package/node_modules/pi-lens/dist/chunk-BEIPWPVR.js +0 -1037
- package/node_modules/pi-lens/dist/chunk-D7OEGXDX.js +0 -2417
- package/node_modules/pi-lens/dist/chunk-KUDUKKQE.js +0 -89
- package/node_modules/pi-lens/dist/chunk-TM3A3K7T.js +0 -28
- package/node_modules/pi-lens/dist/chunk-VD7MQFEV.js +0 -56
- package/node_modules/pi-lens/dist/chunk-YLHJWAQS.js +0 -256
- package/node_modules/pi-lens/dist/chunk-YULIERZW.js +0 -27
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
resolveToolCwd
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-LVLPA32Q.js";
|
|
5
5
|
import {
|
|
6
6
|
allAvailableGlobalBinDirs,
|
|
7
7
|
installArgs,
|
|
8
8
|
pmBinary,
|
|
9
9
|
resolveNodePackageManager
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-LGH2HHZG.js";
|
|
11
11
|
import {
|
|
12
12
|
probeToolAsync
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-KXGTLAUW.js";
|
|
14
14
|
import {
|
|
15
15
|
registerBackgroundWriteDrain
|
|
16
16
|
} from "./chunk-UYXV5NIS.js";
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
createAvailabilityLatch,
|
|
21
21
|
logAvailabilityDecision,
|
|
22
22
|
startHostStallSampler
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-6GLMMGCX.js";
|
|
24
24
|
import {
|
|
25
25
|
acquireBoundedPidFileLock,
|
|
26
26
|
acquireQuarantinePidFileLock,
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
startGenerationHeartbeat,
|
|
41
41
|
tryAcquireGeneration,
|
|
42
42
|
windowsExe
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-3PO4YYOX.js";
|
|
44
44
|
import {
|
|
45
45
|
hashContentBytes
|
|
46
46
|
} from "./chunk-CIA7X2PZ.js";
|
|
@@ -50,20 +50,20 @@ import {
|
|
|
50
50
|
projectTrustDenialReason,
|
|
51
51
|
writeFileAtomic,
|
|
52
52
|
writeFileAtomicAsync
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-W26QZ3OM.js";
|
|
54
54
|
import {
|
|
55
55
|
getDegradationLedgerGeneration,
|
|
56
56
|
incrementDegradationCount,
|
|
57
57
|
logExtension,
|
|
58
58
|
recordDegradationOnce
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-NHA5K226.js";
|
|
60
60
|
import {
|
|
61
61
|
createNdjsonLogger,
|
|
62
62
|
getGlobalPiLensLogDir,
|
|
63
63
|
getMaxLogSizeMB,
|
|
64
64
|
isTestMode,
|
|
65
65
|
isToolInstallDisabled
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-7CLWC2UH.js";
|
|
67
67
|
import {
|
|
68
68
|
BoundedLruCache,
|
|
69
69
|
findLocalToolConfig,
|
|
@@ -864,7 +864,7 @@ var TOOLS = [
|
|
|
864
864
|
checkCommand: "cmake-language-server",
|
|
865
865
|
checkArgs: ["--version"],
|
|
866
866
|
installStrategy: "pip",
|
|
867
|
-
packageName: "cmake-language-server",
|
|
867
|
+
packageName: "cmake-language-server>=0.1.11",
|
|
868
868
|
binaryName: "cmake-language-server",
|
|
869
869
|
// Upstream 0.1.11 (the latest release) imports `LanguageServer` from
|
|
870
870
|
// `pygls.server`, a symbol pygls 2 removed, while declaring only
|
|
@@ -3747,14 +3747,21 @@ exec "${resolvedInner}" "$@"
|
|
|
3747
3747
|
return void 0;
|
|
3748
3748
|
}
|
|
3749
3749
|
}
|
|
3750
|
-
function recordPackageManagerInstallException(toolId, strategyLabel, packageName, err) {
|
|
3750
|
+
function recordPackageManagerInstallException(toolId, strategyLabel, packageName, err, recordManagedToolInstall = true) {
|
|
3751
3751
|
const message = boundInstallError(err.message);
|
|
3752
|
+
if (recordManagedToolInstall && !(err instanceof InstallLockLostError))
|
|
3753
|
+
recordDegradationOnce({
|
|
3754
|
+
kind: "managed-tool-install",
|
|
3755
|
+
subject: toolId,
|
|
3756
|
+
reason: message
|
|
3757
|
+
});
|
|
3752
3758
|
logSessionStart(`auto-install ${strategyLabel} ${packageName}: exception: ${message}`);
|
|
3753
3759
|
installFailureReasons.set(toolId, message);
|
|
3754
3760
|
return void 0;
|
|
3755
3761
|
}
|
|
3756
|
-
var INSTALL_ERROR_LINE_LIMIT =
|
|
3762
|
+
var INSTALL_ERROR_LINE_LIMIT = 5e3;
|
|
3757
3763
|
var INSTALL_CANDIDATE_ERROR_LIMIT = 200;
|
|
3764
|
+
var PEP668_LOG_ERROR_LIMIT = 1e3;
|
|
3758
3765
|
function boundInstallError(value, limit = INSTALL_ERROR_LINE_LIMIT) {
|
|
3759
3766
|
const line = value.replace(/[\r\n]+/g, " ").trim();
|
|
3760
3767
|
return line.length > limit ? `${line.slice(0, limit - 3)}...` : line;
|
|
@@ -3877,7 +3884,15 @@ async function installNpmTool(toolId, packageName, binaryName, verificationArgs
|
|
|
3877
3884
|
}
|
|
3878
3885
|
return binPath;
|
|
3879
3886
|
} catch (err) {
|
|
3880
|
-
return recordPackageManagerInstallException(
|
|
3887
|
+
return recordPackageManagerInstallException(
|
|
3888
|
+
toolId,
|
|
3889
|
+
"npm",
|
|
3890
|
+
packageName,
|
|
3891
|
+
err,
|
|
3892
|
+
// Pass lock loss through the shared helper so its dedicated exclusion
|
|
3893
|
+
// remains the single guard against a duplicate managed-install row.
|
|
3894
|
+
err instanceof InstallLockLostError
|
|
3895
|
+
);
|
|
3881
3896
|
}
|
|
3882
3897
|
}
|
|
3883
3898
|
function pipCommandCandidates() {
|
|
@@ -3944,7 +3959,7 @@ async function installPipTool(toolId, packageName, binaryName, options = {}) {
|
|
|
3944
3959
|
const logKey = `${getDegradationLedgerGeneration()}:${subject}`;
|
|
3945
3960
|
if (pipPep668LoggedRefusals.current(logKey) === 0) {
|
|
3946
3961
|
pipPep668LoggedRefusals.bump(logKey);
|
|
3947
|
-
logSessionStart(`auto-install pip ${packageName}: ${strategy} refused by PEP 668 (${boundInstallError(reason)})`);
|
|
3962
|
+
logSessionStart(`auto-install pip ${packageName}: ${strategy} refused by PEP 668 (${boundInstallError(reason, PEP668_LOG_ERROR_LIMIT)})`);
|
|
3948
3963
|
}
|
|
3949
3964
|
};
|
|
3950
3965
|
const succeeded = (strategy, binaryPath) => {
|
|
@@ -3968,6 +3983,32 @@ async function installPipTool(toolId, packageName, binaryName, options = {}) {
|
|
|
3968
3983
|
...spawnEnv ? { env: spawnEnv } : {}
|
|
3969
3984
|
});
|
|
3970
3985
|
};
|
|
3986
|
+
const pythonReleaseFor = async (command) => {
|
|
3987
|
+
const interpreter = command === "pip3" ? "python3" : command === "pip" ? "python" : command;
|
|
3988
|
+
const pipProbe = await run(command, ["--version"]);
|
|
3989
|
+
const pipRelease = `${pipProbe.stdout}
|
|
3990
|
+
${pipProbe.stderr}`.match(/(?:python|Python)\s+([0-9]+(?:\.[0-9]+){1,2})/)?.[1];
|
|
3991
|
+
if (pipRelease)
|
|
3992
|
+
return pipRelease;
|
|
3993
|
+
if (interpreter === command)
|
|
3994
|
+
return void 0;
|
|
3995
|
+
const interpreterProbe = await run(interpreter, ["--version"]);
|
|
3996
|
+
return `${interpreterProbe.stdout}
|
|
3997
|
+
${interpreterProbe.stderr}`.match(/^Python\s+([0-9]+(?:\.[0-9]+){1,2})/m)?.[1];
|
|
3998
|
+
};
|
|
3999
|
+
const candidateFailure = async (command, args, failureText) => {
|
|
4000
|
+
const pythonRelease = await pythonReleaseFor(command);
|
|
4001
|
+
const error = failureText;
|
|
4002
|
+
const requiresPython = error.match(/ERROR:\s+Ignored[^\r\n]*Requires-Python[^\r\n]*/i)?.[0];
|
|
4003
|
+
const tail = requiresPython ? error.replace(requiresPython, "").trim() : error;
|
|
4004
|
+
const evidence = [];
|
|
4005
|
+
if (pythonRelease)
|
|
4006
|
+
evidence.push(`Python ${pythonRelease}`);
|
|
4007
|
+
if (requiresPython)
|
|
4008
|
+
evidence.push(boundInstallError(requiresPython, INSTALL_CANDIDATE_ERROR_LIMIT));
|
|
4009
|
+
evidence.push(boundInstallError(tail, INSTALL_CANDIDATE_ERROR_LIMIT));
|
|
4010
|
+
return `${command} ${args.join(" ")}: ${evidence.join(" | ")}`;
|
|
4011
|
+
};
|
|
3971
4012
|
const addBinToPath = async (binDir) => {
|
|
3972
4013
|
try {
|
|
3973
4014
|
await fs2.access(binDir);
|
|
@@ -4058,8 +4099,7 @@ async function installPipTool(toolId, packageName, binaryName, options = {}) {
|
|
|
4058
4099
|
const binaryPath = base ? await addBinToPath(pipScriptsDir(base, installerPlatform())) : void 0;
|
|
4059
4100
|
return succeeded("user", binaryPath ?? packageName);
|
|
4060
4101
|
}
|
|
4061
|
-
|
|
4062
|
-
candidateErrors.push(candidateError);
|
|
4102
|
+
candidateErrors.push(await candidateFailure(candidate.command, args, error));
|
|
4063
4103
|
if (pep668.test(error)) {
|
|
4064
4104
|
userRefused = true;
|
|
4065
4105
|
refuse("user", error);
|
|
@@ -4081,8 +4121,7 @@ async function installPipTool(toolId, packageName, binaryName, options = {}) {
|
|
|
4081
4121
|
const result = await run(candidate.command, args, privateEnv);
|
|
4082
4122
|
const error = (result.error?.message ?? result.stderr).trim();
|
|
4083
4123
|
if (result.status !== 0) {
|
|
4084
|
-
|
|
4085
|
-
candidateErrors.push(candidateError);
|
|
4124
|
+
candidateErrors.push(await candidateFailure(candidate.command, args, error));
|
|
4086
4125
|
continue;
|
|
4087
4126
|
}
|
|
4088
4127
|
const binaryPath = await addBinToPath(pipScriptsDir(privateBase, installerPlatform()));
|
|
@@ -4111,7 +4150,7 @@ async function installGemTool(toolId, packageName) {
|
|
|
4111
4150
|
}
|
|
4112
4151
|
return packageName;
|
|
4113
4152
|
} catch (err) {
|
|
4114
|
-
return recordPackageManagerInstallException(toolId, "gem", packageName, err);
|
|
4153
|
+
return recordPackageManagerInstallException(toolId, "gem", packageName, err, err instanceof InstallLockLostError);
|
|
4115
4154
|
}
|
|
4116
4155
|
}
|
|
4117
4156
|
async function stampInstallResolution(toolId) {
|
|
@@ -4120,7 +4159,7 @@ async function stampInstallResolution(toolId) {
|
|
|
4120
4159
|
return;
|
|
4121
4160
|
try {
|
|
4122
4161
|
const resolutionId = lastInstallResolutionId.get(toolId);
|
|
4123
|
-
const refresh = await import("./chunk-
|
|
4162
|
+
const refresh = await import("./chunk-J2ZB5MDS.js");
|
|
4124
4163
|
await refresh.stampManagedToolInstall(toolId, resolutionId);
|
|
4125
4164
|
} catch {
|
|
4126
4165
|
}
|
|
@@ -4133,7 +4172,7 @@ async function finishInstallAttempt(toolId, ok, startedAt) {
|
|
|
4133
4172
|
if (ok) {
|
|
4134
4173
|
resetSafeSpawnWindowsCommandCache();
|
|
4135
4174
|
try {
|
|
4136
|
-
const { resetMadgeManagedPathMemo } = await import("./chunk-
|
|
4175
|
+
const { resetMadgeManagedPathMemo } = await import("./chunk-5YJXF2IS.js");
|
|
4137
4176
|
resetMadgeManagedPathMemo();
|
|
4138
4177
|
} catch (err) {
|
|
4139
4178
|
logSessionStart(`auto-install ${toolId}: madge memo reset failed: ${err.message}`);
|
|
@@ -4163,7 +4202,7 @@ async function installTool(toolId, ownsLock) {
|
|
|
4163
4202
|
return false;
|
|
4164
4203
|
const npmPath = await installNpmTool(tool.id, tool.packageName, tool.binaryName, tool.checkArgs, getToolVerificationTimeout(tool), packageEntryVerification(tool), ownsLock);
|
|
4165
4204
|
if (npmPath !== void 0) {
|
|
4166
|
-
await import("./chunk-
|
|
4205
|
+
await import("./chunk-J2ZB5MDS.js").then((m) => m.stampManagedToolInstalled(tool.id, tool.packageName)).catch(() => {
|
|
4167
4206
|
});
|
|
4168
4207
|
}
|
|
4169
4208
|
return finishInstallAttempt(tool.id, npmPath !== void 0, startedAt);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
isMutatingToolName
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-VSQT6IHZ.js";
|
|
5
5
|
import {
|
|
6
6
|
logLatency
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-7CLWC2UH.js";
|
|
8
8
|
import {
|
|
9
9
|
normalizeMapKey
|
|
10
10
|
} from "./chunk-WLD6BGON.js";
|
|
@@ -2,7 +2,7 @@ import { createRequire as __pilensCreateRequire } from "node:module"; const requ
|
|
|
2
2
|
import {
|
|
3
3
|
MAX_MEASURED_BYTES,
|
|
4
4
|
measureFile
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-C5PLBTNR.js";
|
|
6
6
|
import "./chunk-5W3R6LFT.js";
|
|
7
7
|
import {
|
|
8
8
|
isComplexityLanguageId,
|
|
@@ -10,23 +10,22 @@ import {
|
|
|
10
10
|
resolveTreeSitterLanguage,
|
|
11
11
|
walk,
|
|
12
12
|
withTreeSitterRoot
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-37IDWT6O.js";
|
|
14
14
|
import "./chunk-Z54ZSOBZ.js";
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-3R3Z54J7.js";
|
|
15
|
+
import "./chunk-ZQSSO7LO.js";
|
|
16
|
+
import "./chunk-DI4AZZNY.js";
|
|
17
|
+
import "./chunk-6GLMMGCX.js";
|
|
18
|
+
import "./chunk-3PO4YYOX.js";
|
|
19
|
+
import "./chunk-CQY2HEH7.js";
|
|
20
|
+
import "./chunk-PQF6YGYB.js";
|
|
21
|
+
import "./chunk-LOEJFTF2.js";
|
|
23
22
|
import "./chunk-CIA7X2PZ.js";
|
|
24
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-W26QZ3OM.js";
|
|
25
24
|
import {
|
|
26
25
|
createSubsystemLogger
|
|
27
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-NHA5K226.js";
|
|
28
27
|
import "./chunk-S26LC76R.js";
|
|
29
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-7CLWC2UH.js";
|
|
30
29
|
import "./chunk-LJDODBBZ.js";
|
|
31
30
|
import "./chunk-WLD6BGON.js";
|
|
32
31
|
import "./chunk-NXL4FFQQ.js";
|
|
@@ -11,23 +11,23 @@ import {
|
|
|
11
11
|
shouldScanTrivy,
|
|
12
12
|
trivyEvidenceFiles,
|
|
13
13
|
worktreeSkipDirs
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-CZJGAOKL.js";
|
|
15
|
+
import "./chunk-S6MCMD27.js";
|
|
16
|
+
import "./chunk-ZI7YHV6I.js";
|
|
17
|
+
import "./chunk-INBK3HIT.js";
|
|
18
|
+
import "./chunk-SDYLT45T.js";
|
|
19
|
+
import "./chunk-QV3JPCMK.js";
|
|
20
|
+
import "./chunk-2APSZHHI.js";
|
|
21
|
+
import "./chunk-KXGTLAUW.js";
|
|
22
|
+
import "./chunk-6GLMMGCX.js";
|
|
23
|
+
import "./chunk-3PO4YYOX.js";
|
|
24
|
+
import "./chunk-5JB4WENL.js";
|
|
25
|
+
import "./chunk-PQF6YGYB.js";
|
|
26
|
+
import "./chunk-LOEJFTF2.js";
|
|
27
|
+
import "./chunk-W26QZ3OM.js";
|
|
28
|
+
import "./chunk-NHA5K226.js";
|
|
29
29
|
import "./chunk-S26LC76R.js";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-7CLWC2UH.js";
|
|
31
31
|
import "./chunk-LJDODBBZ.js";
|
|
32
32
|
import "./chunk-WLD6BGON.js";
|
|
33
33
|
import "./chunk-NXL4FFQQ.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
findNearestDirWithMarker
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-LOEJFTF2.js";
|
|
5
5
|
import {
|
|
6
6
|
isWindowsPath
|
|
7
7
|
} from "./chunk-WLD6BGON.js";
|
|
@@ -2,25 +2,26 @@ import { createRequire as __pilensCreateRequire } from "node:module"; const requ
|
|
|
2
2
|
import {
|
|
3
3
|
getScratchTreeGlobPatterns,
|
|
4
4
|
nestedWorktreeOffsets
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-S6MCMD27.js";
|
|
6
6
|
import {
|
|
7
7
|
SecurityScanClient
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ZI7YHV6I.js";
|
|
9
9
|
import {
|
|
10
10
|
parseReportJson
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-INBK3HIT.js";
|
|
12
12
|
import {
|
|
13
13
|
safeSpawnAsync
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-3PO4YYOX.js";
|
|
15
15
|
import {
|
|
16
16
|
loadPiLensProjectConfig
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-PQF6YGYB.js";
|
|
18
18
|
import {
|
|
19
19
|
incrementDegradationCount
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-NHA5K226.js";
|
|
21
21
|
import {
|
|
22
22
|
isUnderDir,
|
|
23
23
|
normalizeMapKey,
|
|
24
|
+
realpathOrResolve,
|
|
24
25
|
toPosix
|
|
25
26
|
} from "./chunk-WLD6BGON.js";
|
|
26
27
|
|
|
@@ -179,7 +180,7 @@ var TrivyClient = class extends SecurityScanClient {
|
|
|
179
180
|
* same root share a single process.
|
|
180
181
|
*/
|
|
181
182
|
async scan(cwd) {
|
|
182
|
-
const targetDir =
|
|
183
|
+
const targetDir = realpathOrResolve(cwd);
|
|
183
184
|
const scannedAt = (/* @__PURE__ */ new Date()).toISOString();
|
|
184
185
|
if (!shouldScanTrivy(targetDir)) {
|
|
185
186
|
return {
|
|
@@ -3,48 +3,48 @@ import {
|
|
|
3
3
|
augmentPythonEnvironment,
|
|
4
4
|
detectPythonEnvironment,
|
|
5
5
|
emitBounded
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-2H5GHZKC.js";
|
|
7
7
|
import {
|
|
8
8
|
scannerReportParentDir
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-QV3JPCMK.js";
|
|
10
10
|
import {
|
|
11
11
|
stripAnsi
|
|
12
12
|
} from "./chunk-6HWVI6MI.js";
|
|
13
13
|
import {
|
|
14
14
|
resolveToolCwd
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-LVLPA32Q.js";
|
|
16
16
|
import {
|
|
17
17
|
findGlobalBinary,
|
|
18
18
|
findLocalBinAt,
|
|
19
19
|
localBinPath
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-LGH2HHZG.js";
|
|
21
21
|
import {
|
|
22
22
|
getIsolatedNpxSpawnOptions
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-KXGTLAUW.js";
|
|
24
24
|
import {
|
|
25
25
|
resolveLanguageRootForFile
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-XSC3BCN3.js";
|
|
27
27
|
import {
|
|
28
28
|
resolveGitCheckout,
|
|
29
29
|
safeSpawn,
|
|
30
30
|
safeSpawnAsync
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-3PO4YYOX.js";
|
|
32
32
|
import {
|
|
33
33
|
DOTNET_CSHARP_ROOT_MARKERS,
|
|
34
34
|
detectFileKind
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-CQY2HEH7.js";
|
|
36
36
|
import {
|
|
37
37
|
PathKeyedMap,
|
|
38
38
|
detectFileRole
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-PQF6YGYB.js";
|
|
40
40
|
import {
|
|
41
41
|
findNearestDirWithAnyBasename
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-LOEJFTF2.js";
|
|
43
43
|
import {
|
|
44
44
|
LEDGER_FIELD_MAX,
|
|
45
45
|
createSubsystemLogger,
|
|
46
46
|
recordDegradationOnce
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-NHA5K226.js";
|
|
48
48
|
import {
|
|
49
49
|
BoundedFifoMap,
|
|
50
50
|
direntsHaveMarkerGlobMatch,
|
|
@@ -15,17 +15,17 @@ import {
|
|
|
15
15
|
getFilterStats,
|
|
16
16
|
isBuildArtifact,
|
|
17
17
|
sourceTwinCandidates
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-R4L7KZ7R.js";
|
|
19
|
+
import "./chunk-74AMPWNC.js";
|
|
20
|
+
import "./chunk-3PO4YYOX.js";
|
|
21
21
|
import "./chunk-QYF5S6P6.js";
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-CQY2HEH7.js";
|
|
23
|
+
import "./chunk-PQF6YGYB.js";
|
|
24
|
+
import "./chunk-LOEJFTF2.js";
|
|
25
|
+
import "./chunk-W26QZ3OM.js";
|
|
26
|
+
import "./chunk-NHA5K226.js";
|
|
27
27
|
import "./chunk-S26LC76R.js";
|
|
28
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-7CLWC2UH.js";
|
|
29
29
|
import "./chunk-LJDODBBZ.js";
|
|
30
30
|
import "./chunk-WLD6BGON.js";
|
|
31
31
|
import "./chunk-NXL4FFQQ.js";
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
GROOVY_FILENAMES,
|
|
4
4
|
KIND_EXTENSIONS,
|
|
5
5
|
SPECIAL_FILENAMES
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-CQY2HEH7.js";
|
|
7
7
|
import {
|
|
8
8
|
compareOrdinal
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-NHA5K226.js";
|
|
10
10
|
|
|
11
11
|
// dist/clients/language-registry.js
|
|
12
12
|
var LANGUAGES = [
|
|
@@ -2,20 +2,106 @@ import { createRequire as __pilensCreateRequire } from "node:module"; const requ
|
|
|
2
2
|
import {
|
|
3
3
|
classifyProbeFailure,
|
|
4
4
|
installRetryDelayMs
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-6GLMMGCX.js";
|
|
6
6
|
import {
|
|
7
7
|
safeSpawnAsync
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-3PO4YYOX.js";
|
|
9
9
|
import {
|
|
10
10
|
assertInstallAllowed
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-W26QZ3OM.js";
|
|
12
12
|
import {
|
|
13
13
|
logExtension,
|
|
14
14
|
recordDegradationOnce
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-NHA5K226.js";
|
|
16
16
|
import {
|
|
17
17
|
isToolInstallDisabled
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-7CLWC2UH.js";
|
|
19
|
+
import {
|
|
20
|
+
normalizeMapKey
|
|
21
|
+
} from "./chunk-WLD6BGON.js";
|
|
22
|
+
|
|
23
|
+
// dist/clients/dispatch/collect-later-tier.js
|
|
24
|
+
var COLLECT_LATER_THRESHOLD_MS = 5e3;
|
|
25
|
+
var slowRunners = /* @__PURE__ */ new Map();
|
|
26
|
+
function runnerFlightKey(projectRoot, runnerId) {
|
|
27
|
+
return `${normalizeMapKey(projectRoot)}\0${runnerId}`;
|
|
28
|
+
}
|
|
29
|
+
function classifyObservedRunner(projectRoot, runnerId, dispatch) {
|
|
30
|
+
const runnerKey = runnerFlightKey(projectRoot, runnerId);
|
|
31
|
+
const flight = flights.get(runnerKey);
|
|
32
|
+
return slowRunners.has(runnerKey) || flight !== void 0 && (flight.owner === void 0 || flight.owner !== dispatch) ? "collect-later" : "inline";
|
|
33
|
+
}
|
|
34
|
+
function observeRunnerLatency(options) {
|
|
35
|
+
const normalizedProjectRoot = normalizeMapKey(options.projectRoot);
|
|
36
|
+
const runnerKey = runnerFlightKey(normalizedProjectRoot, options.runnerId);
|
|
37
|
+
if (options.timedOut === true || options.durationMs > COLLECT_LATER_THRESHOLD_MS) {
|
|
38
|
+
slowRunners.set(runnerKey, {
|
|
39
|
+
projectRoot: normalizedProjectRoot,
|
|
40
|
+
runnerId: options.runnerId
|
|
41
|
+
});
|
|
42
|
+
return "collect-later";
|
|
43
|
+
}
|
|
44
|
+
slowRunners.delete(runnerKey);
|
|
45
|
+
return "inline";
|
|
46
|
+
}
|
|
47
|
+
var flights = /* @__PURE__ */ new Map();
|
|
48
|
+
var DROPPED_BY_RESET = {
|
|
49
|
+
status: "skipped",
|
|
50
|
+
diagnostics: [],
|
|
51
|
+
semantic: "none"
|
|
52
|
+
};
|
|
53
|
+
function runCollectLater(options) {
|
|
54
|
+
const flightKey = runnerFlightKey(options.projectRoot, options.runnerId);
|
|
55
|
+
const flight = flights.get(flightKey);
|
|
56
|
+
if (flight) {
|
|
57
|
+
const fileKey = normalizeMapKey(options.filePath);
|
|
58
|
+
const queued = flight.queued.get(fileKey);
|
|
59
|
+
if (queued) {
|
|
60
|
+
queued.start = options.start;
|
|
61
|
+
return { promise: queued.promise, coalesced: true };
|
|
62
|
+
}
|
|
63
|
+
const slot = {
|
|
64
|
+
start: options.start,
|
|
65
|
+
promise: Promise.allSettled([flight.tail]).then(() => startQueued(flightKey, flight, fileKey, slot))
|
|
66
|
+
};
|
|
67
|
+
flight.queued.set(fileKey, slot);
|
|
68
|
+
chain(flightKey, flight, slot.promise);
|
|
69
|
+
return { promise: slot.promise, coalesced: true };
|
|
70
|
+
}
|
|
71
|
+
const promise = options.start();
|
|
72
|
+
holdFlight(flightKey, promise);
|
|
73
|
+
return { promise, coalesced: false };
|
|
74
|
+
}
|
|
75
|
+
function holdFlight(flightKey, promise, owner) {
|
|
76
|
+
const held = flights.get(flightKey);
|
|
77
|
+
if (held) {
|
|
78
|
+
chain(flightKey, held, Promise.allSettled([held.tail, promise]));
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
const started = { tail: promise, queued: /* @__PURE__ */ new Map(), owner };
|
|
82
|
+
flights.set(flightKey, started);
|
|
83
|
+
chain(flightKey, started, promise);
|
|
84
|
+
}
|
|
85
|
+
function flightTail(flightKey) {
|
|
86
|
+
return flights.get(flightKey)?.tail;
|
|
87
|
+
}
|
|
88
|
+
function startQueued(flightKey, flight, fileKey, slot) {
|
|
89
|
+
if (flights.get(flightKey) !== flight)
|
|
90
|
+
return DROPPED_BY_RESET;
|
|
91
|
+
flight.queued.delete(fileKey);
|
|
92
|
+
return slot.start();
|
|
93
|
+
}
|
|
94
|
+
function chain(flightKey, flight, run) {
|
|
95
|
+
flight.tail = run;
|
|
96
|
+
void Promise.allSettled([run]).then(() => {
|
|
97
|
+
if (flight.tail === run && flights.get(flightKey) === flight)
|
|
98
|
+
flights.delete(flightKey);
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
function resetObservedRunnerLatency() {
|
|
102
|
+
slowRunners.clear();
|
|
103
|
+
flights.clear();
|
|
104
|
+
}
|
|
19
105
|
|
|
20
106
|
// dist/clients/dispatch/runners/utils/lazy-installer.js
|
|
21
107
|
var LAZY_INSTALL_SPECS = {
|
|
@@ -154,6 +240,14 @@ async function tryLazyInstallForFormatter(tool, cwd) {
|
|
|
154
240
|
}
|
|
155
241
|
|
|
156
242
|
export {
|
|
243
|
+
COLLECT_LATER_THRESHOLD_MS,
|
|
244
|
+
runnerFlightKey,
|
|
245
|
+
classifyObservedRunner,
|
|
246
|
+
observeRunnerLatency,
|
|
247
|
+
runCollectLater,
|
|
248
|
+
holdFlight,
|
|
249
|
+
flightTail,
|
|
250
|
+
resetObservedRunnerLatency,
|
|
157
251
|
getLazyInstallAttempt,
|
|
158
252
|
resetLazyInstallAttempts,
|
|
159
253
|
tryLazyInstall,
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
GovulncheckClient,
|
|
4
|
+
parseGovulncheckJson
|
|
5
|
+
} from "./chunk-3PAS2ERX.js";
|
|
6
|
+
import "./chunk-ZI7YHV6I.js";
|
|
7
|
+
import "./chunk-INBK3HIT.js";
|
|
8
|
+
import "./chunk-SDYLT45T.js";
|
|
9
|
+
import "./chunk-QV3JPCMK.js";
|
|
10
|
+
import "./chunk-2APSZHHI.js";
|
|
11
|
+
import "./chunk-KXGTLAUW.js";
|
|
12
|
+
import "./chunk-6GLMMGCX.js";
|
|
13
|
+
import "./chunk-3PO4YYOX.js";
|
|
14
|
+
import "./chunk-5JB4WENL.js";
|
|
15
|
+
import "./chunk-PQF6YGYB.js";
|
|
16
|
+
import "./chunk-LOEJFTF2.js";
|
|
17
|
+
import "./chunk-W26QZ3OM.js";
|
|
18
|
+
import "./chunk-NHA5K226.js";
|
|
19
|
+
import "./chunk-S26LC76R.js";
|
|
20
|
+
import "./chunk-7CLWC2UH.js";
|
|
21
|
+
import "./chunk-LJDODBBZ.js";
|
|
22
|
+
import "./chunk-WLD6BGON.js";
|
|
23
|
+
import "./chunk-NXL4FFQQ.js";
|
|
24
|
+
export {
|
|
25
|
+
GovulncheckClient,
|
|
26
|
+
parseGovulncheckJson
|
|
27
|
+
};
|
|
@@ -25,15 +25,15 @@ import {
|
|
|
25
25
|
statIsFile,
|
|
26
26
|
trustScopedEnvironment,
|
|
27
27
|
trustScopedSearchPath
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-3PO4YYOX.js";
|
|
29
29
|
import {
|
|
30
30
|
spawnAbortScope
|
|
31
|
-
} from "./chunk-
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
31
|
+
} from "./chunk-PQF6YGYB.js";
|
|
32
|
+
import "./chunk-LOEJFTF2.js";
|
|
33
|
+
import "./chunk-W26QZ3OM.js";
|
|
34
|
+
import "./chunk-NHA5K226.js";
|
|
35
35
|
import "./chunk-S26LC76R.js";
|
|
36
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-7CLWC2UH.js";
|
|
37
37
|
import "./chunk-LJDODBBZ.js";
|
|
38
38
|
import "./chunk-WLD6BGON.js";
|
|
39
39
|
import "./chunk-NXL4FFQQ.js";
|