@herbertgao/pi-extensions 2026.11.11 → 2026.11.13
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 +26 -0
- package/README.md +13 -11
- 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/@herbertgao/pi-inline-skill-commands/LICENSE +21 -0
- package/node_modules/@herbertgao/pi-inline-skill-commands/README.md +33 -0
- package/node_modules/@herbertgao/pi-inline-skill-commands/package.json +53 -0
- package/node_modules/@herbertgao/pi-inline-skill-commands/src/index.ts +213 -0
- 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 +13 -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
|
@@ -2,28 +2,26 @@ import { createRequire as __pilensCreateRequire } from "node:module"; const requ
|
|
|
2
2
|
import {
|
|
3
3
|
resolveWebTreeSitterPackageDir
|
|
4
4
|
} from "./chunk-Z54ZSOBZ.js";
|
|
5
|
-
import {
|
|
6
|
-
getUserRuleRoot,
|
|
7
|
-
ruleCorpusFingerprintForCycle
|
|
8
|
-
} from "./chunk-7M64NTAK.js";
|
|
9
5
|
import {
|
|
10
6
|
getPackageRoot,
|
|
7
|
+
getUserRuleRoot,
|
|
11
8
|
js_yaml_default,
|
|
12
|
-
resolvePackagePath
|
|
13
|
-
|
|
9
|
+
resolvePackagePath,
|
|
10
|
+
ruleCorpusFingerprintForCycle
|
|
11
|
+
} from "./chunk-ZQSSO7LO.js";
|
|
14
12
|
import {
|
|
15
13
|
EXTENSION_TO_GRAMMAR
|
|
16
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-DI4AZZNY.js";
|
|
17
15
|
import {
|
|
18
16
|
transientRetryDelayMs
|
|
19
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-6GLMMGCX.js";
|
|
20
18
|
import {
|
|
21
19
|
getProjectIgnoreMatcher,
|
|
22
20
|
isExcludedDirName
|
|
23
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-3PO4YYOX.js";
|
|
24
22
|
import {
|
|
25
23
|
notifyUserDegradation
|
|
26
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-PQF6YGYB.js";
|
|
27
25
|
import {
|
|
28
26
|
hashContentBytes
|
|
29
27
|
} from "./chunk-CIA7X2PZ.js";
|
|
@@ -32,7 +30,7 @@ import {
|
|
|
32
30
|
getProjectTrustGeneration,
|
|
33
31
|
withTimeout,
|
|
34
32
|
writeFileAtomic
|
|
35
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-W26QZ3OM.js";
|
|
36
34
|
import {
|
|
37
35
|
compareOrdinal,
|
|
38
36
|
escapeRegExp,
|
|
@@ -40,14 +38,14 @@ import {
|
|
|
40
38
|
incrementDegradationCount,
|
|
41
39
|
recordDegradation,
|
|
42
40
|
recordDegradationOnce
|
|
43
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-NHA5K226.js";
|
|
44
42
|
import {
|
|
45
43
|
createNdjsonLogger,
|
|
46
44
|
getGlobalPiLensLogDir,
|
|
47
45
|
getMaxLogSizeMB,
|
|
48
46
|
isTestMode,
|
|
49
47
|
logLatency
|
|
50
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-7CLWC2UH.js";
|
|
51
49
|
import {
|
|
52
50
|
BoundedFifoMap,
|
|
53
51
|
normalizeFilePath,
|
|
@@ -2039,6 +2037,11 @@ function queryBatchIdentity(queryDefs) {
|
|
|
2039
2037
|
return crypto3.createHash("sha256").update(JSON.stringify(canonical)).digest("hex");
|
|
2040
2038
|
}
|
|
2041
2039
|
var NO_NESTED_ANCHOR_VISIT_CAP = 1e4;
|
|
2040
|
+
var REACT_FAMILY_MODULE_SEGMENT = /^(react|preact)(-[a-z0-9-]+)?$/;
|
|
2041
|
+
var REACT_JSX_NODE_TYPES = /* @__PURE__ */ new Set([
|
|
2042
|
+
"jsx_element",
|
|
2043
|
+
"jsx_self_closing_element"
|
|
2044
|
+
]);
|
|
2042
2045
|
var PYTHON_SQL_SINK_METHODS = /* @__PURE__ */ new Set([
|
|
2043
2046
|
"execute",
|
|
2044
2047
|
"executemany",
|
|
@@ -3610,6 +3613,7 @@ var TreeSitterClient = class _TreeSitterClient {
|
|
|
3610
3613
|
(tree) => {
|
|
3611
3614
|
try {
|
|
3612
3615
|
const rootNode = tree.rootNode;
|
|
3616
|
+
const invocationState = {};
|
|
3613
3617
|
for (const match of batch.query.matches(rootNode)) {
|
|
3614
3618
|
const owner = batch.ownerOfPattern[match.patternIndex];
|
|
3615
3619
|
if (owner === void 0)
|
|
@@ -3626,7 +3630,7 @@ var TreeSitterClient = class _TreeSitterClient {
|
|
|
3626
3630
|
}
|
|
3627
3631
|
if (!this.evaluatePredicates(batch.query, match))
|
|
3628
3632
|
continue;
|
|
3629
|
-
if (entry.postFilter && !this.applyPostFilter(entry.postFilter, entry.postFilterParams, captures, rootNode)) {
|
|
3633
|
+
if (entry.postFilter && !this.applyPostFilter(entry.postFilter, entry.postFilterParams, captures, rootNode, invocationState)) {
|
|
3630
3634
|
continue;
|
|
3631
3635
|
}
|
|
3632
3636
|
if (match.captures.length === 0)
|
|
@@ -4531,7 +4535,7 @@ var TreeSitterClient = class _TreeSitterClient {
|
|
|
4531
4535
|
* Each branch is an independent filter identified by name — flat dispatch, no nesting.
|
|
4532
4536
|
*/
|
|
4533
4537
|
// biome-ignore lint/suspicious/noExplicitAny: postFilterParams is untyped per-filter config
|
|
4534
|
-
applyPostFilter(postFilter, postFilterParams, captures, rootNode) {
|
|
4538
|
+
applyPostFilter(postFilter, postFilterParams, captures, rootNode, invocationState) {
|
|
4535
4539
|
function extractSlots(classNode) {
|
|
4536
4540
|
const classText = classNode.text ?? "";
|
|
4537
4541
|
if (!classText.includes("__slots__"))
|
|
@@ -4633,6 +4637,49 @@ var TreeSitterClient = class _TreeSitterClient {
|
|
|
4633
4637
|
return true;
|
|
4634
4638
|
}
|
|
4635
4639
|
}
|
|
4640
|
+
case "has_react_context": {
|
|
4641
|
+
if (invocationState?.reactContext !== void 0) {
|
|
4642
|
+
return invocationState.reactContext;
|
|
4643
|
+
}
|
|
4644
|
+
try {
|
|
4645
|
+
if (!rootNode)
|
|
4646
|
+
return true;
|
|
4647
|
+
for (const child of rootNode.children ?? []) {
|
|
4648
|
+
if (child.type !== "import_statement")
|
|
4649
|
+
continue;
|
|
4650
|
+
const source = child.childForFieldName?.("source")?.text ?? child.children?.find((node) => node.type === "string")?.text ?? "";
|
|
4651
|
+
const spec = source.replace(/^["'`]|["'`]$/g, "");
|
|
4652
|
+
const reactFamily = spec.startsWith("@preact/") || spec.split("/").some((segment) => REACT_FAMILY_MODULE_SEGMENT.test(segment));
|
|
4653
|
+
if (reactFamily) {
|
|
4654
|
+
if (invocationState)
|
|
4655
|
+
invocationState.reactContext = true;
|
|
4656
|
+
return true;
|
|
4657
|
+
}
|
|
4658
|
+
}
|
|
4659
|
+
const pending = [...rootNode.children ?? []];
|
|
4660
|
+
while (pending.length > 0) {
|
|
4661
|
+
const node = pending.pop();
|
|
4662
|
+
if (!node)
|
|
4663
|
+
continue;
|
|
4664
|
+
if (REACT_JSX_NODE_TYPES.has(node.type)) {
|
|
4665
|
+
if (invocationState)
|
|
4666
|
+
invocationState.reactContext = true;
|
|
4667
|
+
return true;
|
|
4668
|
+
}
|
|
4669
|
+
pending.push(...node.children);
|
|
4670
|
+
}
|
|
4671
|
+
if (invocationState)
|
|
4672
|
+
invocationState.reactContext = false;
|
|
4673
|
+
return false;
|
|
4674
|
+
} catch (thrown) {
|
|
4675
|
+
this.reportWasmAbort(thrown);
|
|
4676
|
+
const reason = thrown instanceof Error ? thrown.message : String(thrown);
|
|
4677
|
+
this.reportPostFilterFailure(postFilter, `context probe failed${reason ? `: ${reason}` : ""}`);
|
|
4678
|
+
if (invocationState)
|
|
4679
|
+
invocationState.reactContext = true;
|
|
4680
|
+
return true;
|
|
4681
|
+
}
|
|
4682
|
+
}
|
|
4636
4683
|
case "missing_mimetype_and_download_name": {
|
|
4637
4684
|
try {
|
|
4638
4685
|
const firstArg = captures.FIRST_ARG;
|
|
@@ -5763,6 +5810,7 @@ var TreeSitterClient = class _TreeSitterClient {
|
|
|
5763
5810
|
(tree) => {
|
|
5764
5811
|
try {
|
|
5765
5812
|
const rootNode = tree.rootNode;
|
|
5813
|
+
const invocationState = {};
|
|
5766
5814
|
const queryMatches = query.matches(rootNode);
|
|
5767
5815
|
for (const match of queryMatches) {
|
|
5768
5816
|
const captures = {};
|
|
@@ -5774,7 +5822,7 @@ var TreeSitterClient = class _TreeSitterClient {
|
|
|
5774
5822
|
if (!this.evaluatePredicates(query, match)) {
|
|
5775
5823
|
continue;
|
|
5776
5824
|
}
|
|
5777
|
-
if (postFilter && !this.applyPostFilter(postFilter, postFilterParams, captures, rootNode)) {
|
|
5825
|
+
if (postFilter && !this.applyPostFilter(postFilter, postFilterParams, captures, rootNode, invocationState)) {
|
|
5778
5826
|
continue;
|
|
5779
5827
|
}
|
|
5780
5828
|
if (match.captures.length > 0) {
|
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
SecurityScanClient
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ZI7YHV6I.js";
|
|
5
5
|
import {
|
|
6
6
|
firstOutputLine,
|
|
7
7
|
spawnFailedWithNoOutput
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-SDYLT45T.js";
|
|
9
9
|
import {
|
|
10
10
|
probeToolAsync
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-KXGTLAUW.js";
|
|
12
12
|
import {
|
|
13
13
|
INSTALL_TRANSIENT_MAX_ATTEMPTS,
|
|
14
14
|
classifyProbeFailure,
|
|
15
15
|
describeProbeEvidence,
|
|
16
16
|
logAvailabilityDecision,
|
|
17
17
|
startHostStallSampler
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-6GLMMGCX.js";
|
|
19
19
|
import {
|
|
20
20
|
isUntrustedProjectPath,
|
|
21
21
|
recordProjectCommandRefusal,
|
|
22
22
|
safeSpawnAsync
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-3PO4YYOX.js";
|
|
24
24
|
import {
|
|
25
25
|
assertInstallAllowed
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-W26QZ3OM.js";
|
|
27
27
|
import {
|
|
28
28
|
recordDegradationOnce
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-NHA5K226.js";
|
|
30
30
|
import {
|
|
31
31
|
isToolInstallDisabled
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-7CLWC2UH.js";
|
|
33
33
|
|
|
34
34
|
// dist/clients/govulncheck-client.js
|
|
35
35
|
import * as fs from "node:fs";
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
spawnAbortScope,
|
|
16
16
|
spawnCooldownScope,
|
|
17
17
|
warnIgnoredConfigOnce
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-PQF6YGYB.js";
|
|
19
19
|
import {
|
|
20
20
|
CANONICAL_GLOBAL_CONFIG_FILE,
|
|
21
21
|
FRESHNESS_CADENCE_MS,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
errorClassName,
|
|
26
26
|
getPiLensGlobalConfigPath,
|
|
27
27
|
getProductionGlobalConfigResolution
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-LOEJFTF2.js";
|
|
29
29
|
import {
|
|
30
30
|
DEFAULT_MAX_OUTPUT_BYTES,
|
|
31
31
|
createBoundedOutputSink,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
truncatedByOutputCap,
|
|
34
34
|
writeFileAtomic,
|
|
35
35
|
writeFileAtomicAsync
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-W26QZ3OM.js";
|
|
37
37
|
import {
|
|
38
38
|
GLOBAL_NON_FLAG_CONFIG_SECTIONS,
|
|
39
39
|
LENS_FLAGS,
|
|
@@ -50,13 +50,13 @@ import {
|
|
|
50
50
|
readToolConfig,
|
|
51
51
|
recordDegradation,
|
|
52
52
|
recordDegradationOnce
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-NHA5K226.js";
|
|
54
54
|
import {
|
|
55
55
|
getProcessSingleton,
|
|
56
56
|
isToolInstallDisabled,
|
|
57
57
|
logLatency,
|
|
58
58
|
machineStateDir
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-7CLWC2UH.js";
|
|
60
60
|
import {
|
|
61
61
|
STAGE_TMP_PATTERN,
|
|
62
62
|
stagePathFor,
|
|
@@ -932,19 +932,12 @@ function getResolvedGitDir(cwd) {
|
|
|
932
932
|
}
|
|
933
933
|
return resolved;
|
|
934
934
|
}
|
|
935
|
-
function canonicalDirectory(dir) {
|
|
936
|
-
try {
|
|
937
|
-
return fs.realpathSync.native(dir);
|
|
938
|
-
} catch {
|
|
939
|
-
return dir;
|
|
940
|
-
}
|
|
941
|
-
}
|
|
942
935
|
function resolveGitCheckout(startPath) {
|
|
943
936
|
const resolved = getResolvedGitDir(startPath);
|
|
944
937
|
return resolved ? {
|
|
945
|
-
root:
|
|
938
|
+
root: realpathOrResolve(resolved.worktreeRoot),
|
|
946
939
|
spelledRoot: resolved.worktreeRoot,
|
|
947
|
-
commonDir:
|
|
940
|
+
commonDir: realpathOrResolve(resolved.commonDir)
|
|
948
941
|
} : null;
|
|
949
942
|
}
|
|
950
943
|
function sameCheckoutOtherRoot(session, other) {
|
|
@@ -967,7 +960,7 @@ function listLinkedWorktreeRoots(commonDir) {
|
|
|
967
960
|
const entryDir = join2(commonDir, "worktrees", name);
|
|
968
961
|
const gitFile = fs.readFileSync(join2(entryDir, "gitdir"), "utf-8").trim();
|
|
969
962
|
if (gitFile) {
|
|
970
|
-
const root =
|
|
963
|
+
const root = realpathOrResolve(dirname(resolve2(entryDir, gitFile)));
|
|
971
964
|
if (fs.existsSync(join2(root, ".git")))
|
|
972
965
|
roots.push(root);
|
|
973
966
|
}
|
|
@@ -980,7 +973,7 @@ function listNestedLinkedWorktreeRoots(scanRoot) {
|
|
|
980
973
|
const checkout = resolveGitCheckout(scanRoot);
|
|
981
974
|
if (!checkout)
|
|
982
975
|
return [];
|
|
983
|
-
const base =
|
|
976
|
+
const base = realpathOrResolve(scanRoot);
|
|
984
977
|
const nested = [];
|
|
985
978
|
for (const root of listLinkedWorktreeRoots(checkout.commonDir)) {
|
|
986
979
|
if (!pathsEqual(root, base) && isUnderDir(root, base))
|
|
@@ -5944,7 +5937,6 @@ export {
|
|
|
5944
5937
|
isInSpawnTimeoutCooldown,
|
|
5945
5938
|
resetSpawnTimeoutCooldowns,
|
|
5946
5939
|
createGitIdentityResolver,
|
|
5947
|
-
canonicalDirectory,
|
|
5948
5940
|
resolveGitCheckout,
|
|
5949
5941
|
resolveLinkedWorktreeOwner,
|
|
5950
5942
|
listNestedLinkedWorktreeRoots,
|
|
@@ -8,19 +8,19 @@ 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-XSC3BCN3.js";
|
|
12
|
+
import "./chunk-27JQHK7Y.js";
|
|
13
|
+
import "./chunk-R4L7KZ7R.js";
|
|
14
|
+
import "./chunk-74AMPWNC.js";
|
|
15
|
+
import "./chunk-3PO4YYOX.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-CQY2HEH7.js";
|
|
18
|
+
import "./chunk-PQF6YGYB.js";
|
|
19
|
+
import "./chunk-LOEJFTF2.js";
|
|
20
|
+
import "./chunk-W26QZ3OM.js";
|
|
21
|
+
import "./chunk-NHA5K226.js";
|
|
22
22
|
import "./chunk-S26LC76R.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-7CLWC2UH.js";
|
|
24
24
|
import "./chunk-LJDODBBZ.js";
|
|
25
25
|
import "./chunk-WLD6BGON.js";
|
|
26
26
|
import "./chunk-NXL4FFQQ.js";
|
|
@@ -2,10 +2,10 @@ import { createRequire as __pilensCreateRequire } from "node:module"; const requ
|
|
|
2
2
|
import {
|
|
3
3
|
DEFAULT_MAX_OUTPUT_BYTES,
|
|
4
4
|
writeFileAtomic
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-W26QZ3OM.js";
|
|
6
6
|
import {
|
|
7
7
|
incrementDegradationCount
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-NHA5K226.js";
|
|
9
9
|
|
|
10
10
|
// dist/clients/mcp/ipc.js
|
|
11
11
|
import * as crypto from "node:crypto";
|
|
@@ -41,12 +41,19 @@ function boundUnixSocketPath(endpoint, platform = process.platform) {
|
|
|
41
41
|
return endpoint;
|
|
42
42
|
return bytes.subarray(0, limit).toString();
|
|
43
43
|
}
|
|
44
|
+
function boundUnixSocketKeepsIdentity(endpoint, options = {}) {
|
|
45
|
+
const bound = boundUnixSocketPath(endpoint, options.platform);
|
|
46
|
+
if (bound === endpoint)
|
|
47
|
+
return true;
|
|
48
|
+
const token = options.ownerPid === void 0 ? path.posix.basename(endpoint, ".sock") : `pi-lens-mcp-${options.ownerPid}-`;
|
|
49
|
+
return bound.startsWith(path.posix.join(path.posix.dirname(endpoint), token));
|
|
50
|
+
}
|
|
44
51
|
function unlinkStaleUnixSocket(endpoint, options = {}) {
|
|
45
52
|
if ((options.platform ?? process.platform) === "win32")
|
|
46
53
|
return "absent";
|
|
47
|
-
|
|
48
|
-
if (options.ownerPid !== void 0 && bound !== endpoint && !bound.includes(`${path.sep}pi-lens-mcp-${options.ownerPid}-`))
|
|
54
|
+
if (options.ownerPid !== void 0 && !boundUnixSocketKeepsIdentity(endpoint, options))
|
|
49
55
|
return "shared-name";
|
|
56
|
+
const bound = boundUnixSocketPath(endpoint, options.platform);
|
|
50
57
|
try {
|
|
51
58
|
if (!fs.lstatSync(bound).isSocket())
|
|
52
59
|
return "not-a-socket";
|
|
@@ -63,7 +70,10 @@ function isNoListenerError(error) {
|
|
|
63
70
|
function contentHash(content) {
|
|
64
71
|
return crypto.createHash("sha256").update(content).digest("hex");
|
|
65
72
|
}
|
|
66
|
-
function requestOverWarmIpc(
|
|
73
|
+
function requestOverWarmIpc(target, timeoutMs, buildRequest, validate) {
|
|
74
|
+
const { endpoint } = target;
|
|
75
|
+
if (!boundUnixSocketKeepsIdentity(endpoint, target))
|
|
76
|
+
return Promise.resolve({ available: false, reason: "no-listener" });
|
|
67
77
|
return new Promise((resolve2) => {
|
|
68
78
|
let settled = false;
|
|
69
79
|
const finish = (value) => {
|
|
@@ -75,7 +85,7 @@ function requestOverWarmIpc(endpoint, timeoutMs, buildRequest, validate) {
|
|
|
75
85
|
resolve2(value);
|
|
76
86
|
};
|
|
77
87
|
const deadlineAt = Date.now() + timeoutMs;
|
|
78
|
-
const socket = net.createConnection(endpoint);
|
|
88
|
+
const socket = net.createConnection(boundUnixSocketPath(endpoint));
|
|
79
89
|
socket.setEncoding("utf8");
|
|
80
90
|
const timer = setTimeout(() => finish({ available: false, reason: "timeout" }), timeoutMs);
|
|
81
91
|
timer.unref();
|
|
@@ -113,7 +123,10 @@ function requestOverWarmIpc(endpoint, timeoutMs, buildRequest, validate) {
|
|
|
113
123
|
}
|
|
114
124
|
function requestWarmDiagnostics(cwd, incumbentPid, file, content, timeoutMs) {
|
|
115
125
|
const expectedHash = contentHash(content);
|
|
116
|
-
return requestOverWarmIpc(
|
|
126
|
+
return requestOverWarmIpc({
|
|
127
|
+
endpoint: diagnosticsIpcPathForCwd(cwd, incumbentPid),
|
|
128
|
+
ownerPid: incumbentPid
|
|
129
|
+
}, timeoutMs, (deadlineAt) => ({
|
|
117
130
|
route: "diagnostics",
|
|
118
131
|
version: WARM_DIAGNOSTICS_SCHEMA_VERSION,
|
|
119
132
|
file,
|
|
@@ -132,7 +145,10 @@ function requestWarmDiagnostics(cwd, incumbentPid, file, content, timeoutMs) {
|
|
|
132
145
|
});
|
|
133
146
|
}
|
|
134
147
|
function requestWarmCodeActions(cwd, incumbentPid, file, expectedContentHash, ranges, timeoutMs) {
|
|
135
|
-
return requestOverWarmIpc(
|
|
148
|
+
return requestOverWarmIpc({
|
|
149
|
+
endpoint: diagnosticsIpcPathForCwd(cwd, incumbentPid),
|
|
150
|
+
ownerPid: incumbentPid
|
|
151
|
+
}, timeoutMs, (deadlineAt) => ({
|
|
136
152
|
route: "code-actions",
|
|
137
153
|
version: WARM_DIAGNOSTICS_SCHEMA_VERSION,
|
|
138
154
|
file,
|
|
@@ -153,7 +169,7 @@ function requestWarmCodeActions(cwd, incumbentPid, file, expectedContentHash, ra
|
|
|
153
169
|
var WARM_TURN_END_SCHEMA_VERSION = 2;
|
|
154
170
|
async function requestWarmTurnEnd(cwd, timeoutMs = 55e3) {
|
|
155
171
|
const startedAt = Date.now();
|
|
156
|
-
const first = await requestOverWarmIpc(ipcPathForCwd(cwd), timeoutMs, () => ({
|
|
172
|
+
const first = await requestOverWarmIpc({ endpoint: ipcPathForCwd(cwd) }, timeoutMs, () => ({
|
|
157
173
|
route: "turn-end",
|
|
158
174
|
version: WARM_TURN_END_SCHEMA_VERSION,
|
|
159
175
|
cwd
|
|
@@ -163,7 +179,7 @@ async function requestWarmTurnEnd(cwd, timeoutMs = 55e3) {
|
|
|
163
179
|
const remainingMs = timeoutMs - (Date.now() - startedAt);
|
|
164
180
|
if (remainingMs <= 0)
|
|
165
181
|
return { available: false, reason: "timeout" };
|
|
166
|
-
const ack = await requestOverWarmIpc(ipcPathForCwd(cwd), remainingMs, () => ({
|
|
182
|
+
const ack = await requestOverWarmIpc({ endpoint: ipcPathForCwd(cwd) }, remainingMs, () => ({
|
|
167
183
|
route: "turn-end-ack",
|
|
168
184
|
version: WARM_TURN_END_SCHEMA_VERSION,
|
|
169
185
|
cwd,
|
|
@@ -226,6 +242,9 @@ function recordTurnEndOutcome(cwd, outcome, platform = process.platform) {
|
|
|
226
242
|
}
|
|
227
243
|
}
|
|
228
244
|
function requestWarmAnalyze(cwd, file, timeoutMs = 3e4) {
|
|
245
|
+
const endpoint = ipcPathForCwd(cwd);
|
|
246
|
+
if (!boundUnixSocketKeepsIdentity(endpoint))
|
|
247
|
+
return Promise.resolve(void 0);
|
|
229
248
|
return new Promise((resolve2) => {
|
|
230
249
|
let settled = false;
|
|
231
250
|
const finish = (value) => {
|
|
@@ -235,7 +254,7 @@ function requestWarmAnalyze(cwd, file, timeoutMs = 3e4) {
|
|
|
235
254
|
clearTimeout(timer);
|
|
236
255
|
resolve2(value);
|
|
237
256
|
};
|
|
238
|
-
const socket = net.createConnection(
|
|
257
|
+
const socket = net.createConnection(boundUnixSocketPath(endpoint));
|
|
239
258
|
socket.setEncoding("utf8");
|
|
240
259
|
const timer = setTimeout(() => {
|
|
241
260
|
socket.destroy();
|
|
@@ -353,6 +372,8 @@ export {
|
|
|
353
372
|
WARM_CODE_ACTION_LOOKUP_LIMIT,
|
|
354
373
|
ipcPathForCwd,
|
|
355
374
|
diagnosticsIpcPathForCwd,
|
|
375
|
+
boundUnixSocketPath,
|
|
376
|
+
boundUnixSocketKeepsIdentity,
|
|
356
377
|
unlinkStaleUnixSocket,
|
|
357
378
|
contentHash,
|
|
358
379
|
requestWarmDiagnostics,
|
|
@@ -11,11 +11,11 @@ import {
|
|
|
11
11
|
getLSPService,
|
|
12
12
|
isLspRequestTimeoutError,
|
|
13
13
|
rankFilesByReverseDependencyCentrality
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-TWEOJE3D.js";
|
|
15
15
|
import {
|
|
16
16
|
notePersistWorkerMessageFault,
|
|
17
17
|
readWorkerHeapStatistics
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-NNEQOC3U.js";
|
|
19
19
|
import {
|
|
20
20
|
buildQualifiedName,
|
|
21
21
|
findOwnerName
|
|
@@ -31,37 +31,37 @@ import {
|
|
|
31
31
|
resolveProjectReferenceImport,
|
|
32
32
|
resolveWorkspacePackageImport,
|
|
33
33
|
symbolExtractionGrammar
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-ARTYCUGF.js";
|
|
35
35
|
import {
|
|
36
36
|
classifyTreeSitterWasmError,
|
|
37
37
|
getSharedTreeSitterClient,
|
|
38
38
|
logTreeSitterCacheStats,
|
|
39
39
|
withTreeSitterRoot
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-37IDWT6O.js";
|
|
41
41
|
import {
|
|
42
42
|
getReviewGraphMaxFilesDerived
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-ADYQRETD.js";
|
|
44
44
|
import {
|
|
45
45
|
readGzipStageWorkerResult,
|
|
46
46
|
reapStageFile
|
|
47
47
|
} from "./chunk-IJYGIDF4.js";
|
|
48
48
|
import {
|
|
49
49
|
collectSourceFilesWithBudgetAsync
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-R4L7KZ7R.js";
|
|
51
51
|
import {
|
|
52
52
|
collectUntrackedIgnoredIds,
|
|
53
53
|
createGitIdentityResolver,
|
|
54
54
|
getProjectDataDir,
|
|
55
55
|
isStaleStageFile,
|
|
56
56
|
resolveGitIdentity
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-3PO4YYOX.js";
|
|
58
58
|
import {
|
|
59
59
|
KIND_EXTENSIONS,
|
|
60
60
|
detectFileKind
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-CQY2HEH7.js";
|
|
62
62
|
import {
|
|
63
63
|
detectFileRole
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-PQF6YGYB.js";
|
|
65
65
|
import {
|
|
66
66
|
hashContentBytes,
|
|
67
67
|
hashFileBytes
|
|
@@ -69,12 +69,12 @@ import {
|
|
|
69
69
|
import {
|
|
70
70
|
withBudget,
|
|
71
71
|
writeFileAtomic
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-W26QZ3OM.js";
|
|
73
73
|
import {
|
|
74
74
|
compareOrdinal,
|
|
75
75
|
escapeRegExp,
|
|
76
76
|
incrementDegradationCount
|
|
77
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-NHA5K226.js";
|
|
78
78
|
import {
|
|
79
79
|
createNdjsonLogger,
|
|
80
80
|
getGlobalPiLensLogDir,
|
|
@@ -84,7 +84,7 @@ import {
|
|
|
84
84
|
lazyEnvNumber,
|
|
85
85
|
logLatency,
|
|
86
86
|
nonNegativeIntEnv
|
|
87
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-7CLWC2UH.js";
|
|
88
88
|
import {
|
|
89
89
|
FactStore
|
|
90
90
|
} from "./chunk-O6LCSHHI.js";
|
|
@@ -2486,8 +2486,8 @@ async function ensureReviewGraphFacts(filePath, cwd, facts, contentOverride) {
|
|
|
2486
2486
|
}
|
|
2487
2487
|
try {
|
|
2488
2488
|
const [{ importFactProvider }, { functionFactProvider }] = await Promise.all([
|
|
2489
|
-
import("./chunk-
|
|
2490
|
-
import("./chunk-
|
|
2489
|
+
import("./chunk-TFKN5EIR.js"),
|
|
2490
|
+
import("./chunk-HBX55MWO.js")
|
|
2491
2491
|
]);
|
|
2492
2492
|
await importFactProvider.run(ctx, facts);
|
|
2493
2493
|
await functionFactProvider.run(ctx, facts);
|
|
@@ -2852,6 +2852,7 @@ function addTreeSitterFile(graph, cwd, filePath, languageId, extracted, ignoredI
|
|
|
2852
2852
|
line: symbol.line,
|
|
2853
2853
|
endLine: symbol.endLine,
|
|
2854
2854
|
column: symbol.column,
|
|
2855
|
+
...symbol.nameLine !== void 0 && symbol.nameColumn !== void 0 ? { nameLine: symbol.nameLine, nameColumn: symbol.nameColumn } : {},
|
|
2855
2856
|
signature: symbol.signature,
|
|
2856
2857
|
...featureHintMetadata(`${symbol.name} ${hintPath}`)
|
|
2857
2858
|
}
|
|
@@ -1,70 +1,69 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
|
+
biomeConfigArgs,
|
|
3
4
|
resolveManagedToolClient
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-PK3GDU4M.js";
|
|
18
|
-
import "./chunk-6JLNZ6DP.js";
|
|
19
|
-
import "./chunk-IT7MFVGP.js";
|
|
20
|
-
import "./chunk-AYDE7RFV.js";
|
|
5
|
+
} from "./chunk-PKWEBMCA.js";
|
|
6
|
+
import "./chunk-AXAR5ZW2.js";
|
|
7
|
+
import "./chunk-7WKVCZI4.js";
|
|
8
|
+
import "./chunk-2H5GHZKC.js";
|
|
9
|
+
import "./chunk-QV3JPCMK.js";
|
|
10
|
+
import "./chunk-NNEQOC3U.js";
|
|
11
|
+
import "./chunk-CXQYK4YT.js";
|
|
12
|
+
import "./chunk-ZQSSO7LO.js";
|
|
13
|
+
import "./chunk-AZG5UJYY.js";
|
|
14
|
+
import "./chunk-P5MSLVUW.js";
|
|
15
|
+
import "./chunk-ADYQRETD.js";
|
|
16
|
+
import "./chunk-DI4AZZNY.js";
|
|
17
|
+
import "./chunk-2APSZHHI.js";
|
|
21
18
|
import "./chunk-2BEMIWEW.js";
|
|
22
19
|
import "./chunk-IJYGIDF4.js";
|
|
23
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-B2OXE4AH.js";
|
|
24
21
|
import {
|
|
25
22
|
resolveToolCwd
|
|
26
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-LVLPA32Q.js";
|
|
27
24
|
import {
|
|
28
25
|
findGlobalBinary,
|
|
29
26
|
findLocalBinAt,
|
|
30
27
|
localBinPath
|
|
31
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-LGH2HHZG.js";
|
|
32
29
|
import {
|
|
33
30
|
getIsolatedNpxSpawnOptions,
|
|
34
31
|
probeToolAsync
|
|
35
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-KXGTLAUW.js";
|
|
33
|
+
import "./chunk-TQWRH25U.js";
|
|
36
34
|
import "./chunk-UYXV5NIS.js";
|
|
35
|
+
import "./chunk-KNSOA43J.js";
|
|
37
36
|
import {
|
|
38
37
|
classifyProbeFailure,
|
|
39
38
|
createAvailabilityLatch,
|
|
40
39
|
describeInstallAttempt,
|
|
41
40
|
logAvailabilityDecision,
|
|
42
41
|
startHostStallSampler
|
|
43
|
-
} from "./chunk-
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
46
|
-
import "./chunk-
|
|
47
|
-
import "./chunk-
|
|
42
|
+
} from "./chunk-6GLMMGCX.js";
|
|
43
|
+
import "./chunk-XSC3BCN3.js";
|
|
44
|
+
import "./chunk-27JQHK7Y.js";
|
|
45
|
+
import "./chunk-R4L7KZ7R.js";
|
|
46
|
+
import "./chunk-74AMPWNC.js";
|
|
48
47
|
import {
|
|
49
48
|
getGlobalPiLensDir,
|
|
50
49
|
safeSpawnAsync
|
|
51
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-3PO4YYOX.js";
|
|
52
51
|
import {
|
|
53
52
|
createSingleFlight
|
|
54
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-5JB4WENL.js";
|
|
55
54
|
import "./chunk-QYF5S6P6.js";
|
|
56
55
|
import {
|
|
57
56
|
isFileKind
|
|
58
|
-
} from "./chunk-
|
|
59
|
-
import "./chunk-
|
|
60
|
-
import "./chunk-
|
|
57
|
+
} from "./chunk-CQY2HEH7.js";
|
|
58
|
+
import "./chunk-PQF6YGYB.js";
|
|
59
|
+
import "./chunk-LOEJFTF2.js";
|
|
61
60
|
import "./chunk-CIA7X2PZ.js";
|
|
62
|
-
import "./chunk-
|
|
61
|
+
import "./chunk-W26QZ3OM.js";
|
|
63
62
|
import {
|
|
64
63
|
createSubsystemLogger
|
|
65
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-NHA5K226.js";
|
|
66
65
|
import "./chunk-S26LC76R.js";
|
|
67
|
-
import "./chunk-
|
|
66
|
+
import "./chunk-7CLWC2UH.js";
|
|
68
67
|
import "./chunk-LJDODBBZ.js";
|
|
69
68
|
import "./chunk-WLD6BGON.js";
|
|
70
69
|
import "./chunk-NXL4FFQQ.js";
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
getOwnedLspService,
|
|
5
5
|
peekOwnedLspService,
|
|
6
6
|
resetOwnedLspService
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-LQQNFCQJ.js";
|
|
8
|
+
import "./chunk-7CLWC2UH.js";
|
|
9
9
|
import "./chunk-WLD6BGON.js";
|
|
10
10
|
import "./chunk-NXL4FFQQ.js";
|
|
11
11
|
export {
|
|
@@ -2,7 +2,7 @@ import { createRequire as __pilensCreateRequire } from "node:module"; const requ
|
|
|
2
2
|
import {
|
|
3
3
|
spawnAbortScope,
|
|
4
4
|
spawnCooldownScope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-PQF6YGYB.js";
|
|
6
6
|
|
|
7
7
|
// dist/clients/single-flight.js
|
|
8
8
|
function createSingleFlight(options = {}) {
|