@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
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
_getWarmWordIndexCacheStateForTests,
|
|
4
|
-
_resetWarmWordIndexCacheForTests,
|
|
5
|
-
acquireWarmWordIndex,
|
|
6
|
-
analyzeFile,
|
|
7
|
-
summarizeWarningTiers
|
|
8
|
-
} from "./chunk-T6PPK3T6.js";
|
|
9
|
-
import "./chunk-6EXGCXM5.js";
|
|
10
|
-
import "./chunk-ME6MF2N2.js";
|
|
11
|
-
import "./chunk-JRSS6KM4.js";
|
|
12
|
-
import "./chunk-MOEWCPMC.js";
|
|
13
|
-
import "./chunk-HYR25MV3.js";
|
|
14
|
-
import "./chunk-AAIVSSUU.js";
|
|
15
|
-
import "./chunk-LD7SXICE.js";
|
|
16
|
-
import "./chunk-NZINZCHB.js";
|
|
17
|
-
import "./chunk-FDLGJFAE.js";
|
|
18
|
-
import "./chunk-2HWVG3IM.js";
|
|
19
|
-
import "./chunk-E5SSUV2A.js";
|
|
20
|
-
import "./chunk-IZ36G463.js";
|
|
21
|
-
import "./chunk-BEIPWPVR.js";
|
|
22
|
-
import "./chunk-D7OEGXDX.js";
|
|
23
|
-
import "./chunk-3MHY4BQY.js";
|
|
24
|
-
import "./chunk-VU2PRGRI.js";
|
|
25
|
-
import "./chunk-D2ZYRI7M.js";
|
|
26
|
-
import "./chunk-OHEUOWYT.js";
|
|
27
|
-
import "./chunk-QY6J2FTK.js";
|
|
28
|
-
import "./chunk-3MED75HT.js";
|
|
29
|
-
import "./chunk-PKLB2XJL.js";
|
|
30
|
-
import "./chunk-DZSQXG66.js";
|
|
31
|
-
import "./chunk-DFAY7JUN.js";
|
|
32
|
-
import "./chunk-XIMYZ3JA.js";
|
|
33
|
-
import "./chunk-Z6WTLVUL.js";
|
|
34
|
-
import "./chunk-PPYUBO6Y.js";
|
|
35
|
-
import "./chunk-5EEWCJG7.js";
|
|
36
|
-
import "./chunk-QJ4T73J5.js";
|
|
37
|
-
import "./chunk-YLW26OHX.js";
|
|
38
|
-
import "./chunk-HGEE5LDW.js";
|
|
39
|
-
import "./chunk-5W3R6LFT.js";
|
|
40
|
-
import "./chunk-NCDH2JB7.js";
|
|
41
|
-
import "./chunk-HYDJUVOE.js";
|
|
42
|
-
import "./chunk-7424ANRU.js";
|
|
43
|
-
import "./chunk-SUIZOCSY.js";
|
|
44
|
-
import "./chunk-6GWCYEP7.js";
|
|
45
|
-
import "./chunk-Z54ZSOBZ.js";
|
|
46
|
-
import "./chunk-7M64NTAK.js";
|
|
47
|
-
import "./chunk-E3PNZDPH.js";
|
|
48
|
-
import "./chunk-6HWVI6MI.js";
|
|
49
|
-
import "./chunk-PK3GDU4M.js";
|
|
50
|
-
import "./chunk-6JLNZ6DP.js";
|
|
51
|
-
import "./chunk-IT7MFVGP.js";
|
|
52
|
-
import "./chunk-AYDE7RFV.js";
|
|
53
|
-
import "./chunk-W6VLB6LL.js";
|
|
54
|
-
import "./chunk-HWMNTQBJ.js";
|
|
55
|
-
import "./chunk-ZRQMENT4.js";
|
|
56
|
-
import "./chunk-2BEMIWEW.js";
|
|
57
|
-
import "./chunk-IJYGIDF4.js";
|
|
58
|
-
import "./chunk-NRVWLTOY.js";
|
|
59
|
-
import "./chunk-YLHJWAQS.js";
|
|
60
|
-
import "./chunk-OVPR3GQ6.js";
|
|
61
|
-
import "./chunk-3QMLB4TI.js";
|
|
62
|
-
import "./chunk-UYXV5NIS.js";
|
|
63
|
-
import "./chunk-AVBEPUCD.js";
|
|
64
|
-
import "./chunk-75TVYCQW.js";
|
|
65
|
-
import "./chunk-KXDQD34C.js";
|
|
66
|
-
import "./chunk-3PMLYGJN.js";
|
|
67
|
-
import "./chunk-YTXFNCVN.js";
|
|
68
|
-
import "./chunk-ET3DSSFZ.js";
|
|
69
|
-
import "./chunk-B4FAFEBP.js";
|
|
70
|
-
import "./chunk-QYF5S6P6.js";
|
|
71
|
-
import "./chunk-SRXYSLMW.js";
|
|
72
|
-
import "./chunk-6EIV3H7O.js";
|
|
73
|
-
import "./chunk-3R3Z54J7.js";
|
|
74
|
-
import "./chunk-CIA7X2PZ.js";
|
|
75
|
-
import "./chunk-HRQTYU2T.js";
|
|
76
|
-
import "./chunk-AGEQRJ5A.js";
|
|
77
|
-
import "./chunk-S26LC76R.js";
|
|
78
|
-
import "./chunk-K2GV34T2.js";
|
|
79
|
-
import "./chunk-LJDODBBZ.js";
|
|
80
|
-
import "./chunk-O6LCSHHI.js";
|
|
81
|
-
import "./chunk-WLD6BGON.js";
|
|
82
|
-
import "./chunk-NXL4FFQQ.js";
|
|
83
|
-
export {
|
|
84
|
-
_getWarmWordIndexCacheStateForTests,
|
|
85
|
-
_resetWarmWordIndexCacheForTests,
|
|
86
|
-
acquireWarmWordIndex,
|
|
87
|
-
analyzeFile,
|
|
88
|
-
summarizeWarningTiers
|
|
89
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
functionFactProvider
|
|
4
|
-
} from "./chunk-VU2PRGRI.js";
|
|
5
|
-
import "./chunk-D2ZYRI7M.js";
|
|
6
|
-
import "./chunk-OHEUOWYT.js";
|
|
7
|
-
import "./chunk-5W3R6LFT.js";
|
|
8
|
-
import "./chunk-6GWCYEP7.js";
|
|
9
|
-
import "./chunk-Z54ZSOBZ.js";
|
|
10
|
-
import "./chunk-7M64NTAK.js";
|
|
11
|
-
import "./chunk-E3PNZDPH.js";
|
|
12
|
-
import "./chunk-AYDE7RFV.js";
|
|
13
|
-
import "./chunk-AVBEPUCD.js";
|
|
14
|
-
import "./chunk-ET3DSSFZ.js";
|
|
15
|
-
import "./chunk-SRXYSLMW.js";
|
|
16
|
-
import "./chunk-6EIV3H7O.js";
|
|
17
|
-
import "./chunk-3R3Z54J7.js";
|
|
18
|
-
import "./chunk-CIA7X2PZ.js";
|
|
19
|
-
import "./chunk-HRQTYU2T.js";
|
|
20
|
-
import "./chunk-AGEQRJ5A.js";
|
|
21
|
-
import "./chunk-S26LC76R.js";
|
|
22
|
-
import "./chunk-K2GV34T2.js";
|
|
23
|
-
import "./chunk-LJDODBBZ.js";
|
|
24
|
-
import "./chunk-WLD6BGON.js";
|
|
25
|
-
import "./chunk-NXL4FFQQ.js";
|
|
26
|
-
export {
|
|
27
|
-
functionFactProvider
|
|
28
|
-
};
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
DependencyChecker,
|
|
4
|
-
buildMadgeArgs,
|
|
5
|
-
resetMadgeManagedPathMemo
|
|
6
|
-
} from "./chunk-IZ36G463.js";
|
|
7
|
-
import "./chunk-BEIPWPVR.js";
|
|
8
|
-
import "./chunk-D7OEGXDX.js";
|
|
9
|
-
import {
|
|
10
|
-
mapWithConcurrency
|
|
11
|
-
} from "./chunk-XIMYZ3JA.js";
|
|
12
|
-
import "./chunk-Z6WTLVUL.js";
|
|
13
|
-
import "./chunk-PPYUBO6Y.js";
|
|
14
|
-
import "./chunk-5EEWCJG7.js";
|
|
15
|
-
import "./chunk-QJ4T73J5.js";
|
|
16
|
-
import "./chunk-YLW26OHX.js";
|
|
17
|
-
import "./chunk-7424ANRU.js";
|
|
18
|
-
import "./chunk-SUIZOCSY.js";
|
|
19
|
-
import "./chunk-7M64NTAK.js";
|
|
20
|
-
import "./chunk-E3PNZDPH.js";
|
|
21
|
-
import "./chunk-PK3GDU4M.js";
|
|
22
|
-
import "./chunk-6JLNZ6DP.js";
|
|
23
|
-
import "./chunk-IT7MFVGP.js";
|
|
24
|
-
import "./chunk-AYDE7RFV.js";
|
|
25
|
-
import "./chunk-2BEMIWEW.js";
|
|
26
|
-
import "./chunk-IJYGIDF4.js";
|
|
27
|
-
import "./chunk-NRVWLTOY.js";
|
|
28
|
-
import "./chunk-YLHJWAQS.js";
|
|
29
|
-
import "./chunk-OVPR3GQ6.js";
|
|
30
|
-
import "./chunk-3QMLB4TI.js";
|
|
31
|
-
import "./chunk-UYXV5NIS.js";
|
|
32
|
-
import "./chunk-AVBEPUCD.js";
|
|
33
|
-
import "./chunk-75TVYCQW.js";
|
|
34
|
-
import "./chunk-KXDQD34C.js";
|
|
35
|
-
import "./chunk-3PMLYGJN.js";
|
|
36
|
-
import "./chunk-YTXFNCVN.js";
|
|
37
|
-
import "./chunk-ET3DSSFZ.js";
|
|
38
|
-
import "./chunk-B4FAFEBP.js";
|
|
39
|
-
import "./chunk-QYF5S6P6.js";
|
|
40
|
-
import "./chunk-SRXYSLMW.js";
|
|
41
|
-
import "./chunk-6EIV3H7O.js";
|
|
42
|
-
import "./chunk-3R3Z54J7.js";
|
|
43
|
-
import "./chunk-CIA7X2PZ.js";
|
|
44
|
-
import "./chunk-HRQTYU2T.js";
|
|
45
|
-
import "./chunk-AGEQRJ5A.js";
|
|
46
|
-
import "./chunk-S26LC76R.js";
|
|
47
|
-
import "./chunk-K2GV34T2.js";
|
|
48
|
-
import "./chunk-LJDODBBZ.js";
|
|
49
|
-
import "./chunk-WLD6BGON.js";
|
|
50
|
-
import "./chunk-NXL4FFQQ.js";
|
|
51
|
-
export {
|
|
52
|
-
DependencyChecker,
|
|
53
|
-
buildMadgeArgs,
|
|
54
|
-
mapWithConcurrency,
|
|
55
|
-
resetMadgeManagedPathMemo
|
|
56
|
-
};
|
|
@@ -1,256 +0,0 @@
|
|
|
1
|
-
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
rootMarkersForFile
|
|
4
|
-
} from "./chunk-75TVYCQW.js";
|
|
5
|
-
import {
|
|
6
|
-
createGenerationMap,
|
|
7
|
-
createGenerationSource
|
|
8
|
-
} from "./chunk-ET3DSSFZ.js";
|
|
9
|
-
import {
|
|
10
|
-
getDegradationLedgerGeneration,
|
|
11
|
-
logExtension,
|
|
12
|
-
recordDegradationOnce
|
|
13
|
-
} from "./chunk-AGEQRJ5A.js";
|
|
14
|
-
import {
|
|
15
|
-
isRealGitMarker,
|
|
16
|
-
isUnderDir,
|
|
17
|
-
isWindowsPath,
|
|
18
|
-
nameMatchesMarkerGlob,
|
|
19
|
-
normalizeEphemeralMapKey,
|
|
20
|
-
realpathOrResolve,
|
|
21
|
-
toPosix,
|
|
22
|
-
walkUpDirs
|
|
23
|
-
} from "./chunk-WLD6BGON.js";
|
|
24
|
-
|
|
25
|
-
// dist/clients/tool-cwd.js
|
|
26
|
-
import * as os from "node:os";
|
|
27
|
-
import { existsSync, readdirSync } from "node:fs";
|
|
28
|
-
import * as path from "node:path";
|
|
29
|
-
var FORMATTER_MARKERS = {
|
|
30
|
-
biome: ["biome.json", "biome.jsonc", "package.json", ".gitignore"],
|
|
31
|
-
prettier: [
|
|
32
|
-
".prettierrc",
|
|
33
|
-
".prettierrc.json",
|
|
34
|
-
".prettierrc.yaml",
|
|
35
|
-
".prettierrc.yml",
|
|
36
|
-
".prettierrc.js",
|
|
37
|
-
".prettierrc.cjs",
|
|
38
|
-
".prettierrc.mjs",
|
|
39
|
-
"prettier.config.js",
|
|
40
|
-
"prettier.config.cjs",
|
|
41
|
-
"prettier.config.mjs",
|
|
42
|
-
".prettierignore",
|
|
43
|
-
"package.json",
|
|
44
|
-
".gitignore"
|
|
45
|
-
],
|
|
46
|
-
ruff: ["pyproject.toml", "ruff.toml", ".ruff.toml", ".gitignore"],
|
|
47
|
-
black: ["pyproject.toml", "black.toml", ".black", ".gitignore"],
|
|
48
|
-
"php-cs-fixer": [".php-cs-fixer.php", ".php-cs-fixer.dist.php", ".gitignore"],
|
|
49
|
-
sqlfluff: [".sqlfluff", "pyproject.toml", "setup.cfg", ".gitignore"],
|
|
50
|
-
oxfmt: [
|
|
51
|
-
"oxfmt.toml",
|
|
52
|
-
".oxfmtrc.json",
|
|
53
|
-
"vite-plus.json",
|
|
54
|
-
"package.json",
|
|
55
|
-
".gitignore"
|
|
56
|
-
],
|
|
57
|
-
rustfmt: ["rustfmt.toml", ".rustfmt.toml", "Cargo.toml", ".gitignore"],
|
|
58
|
-
rubocop: [".rubocop.yml", ".rubocop.yaml", ".gitignore"],
|
|
59
|
-
standardrb: [".standard.yml", ".standard.yaml", ".gitignore"],
|
|
60
|
-
"clang-format": [".clang-format", "_clang-format", ".gitignore"],
|
|
61
|
-
stylua: ["stylua.toml", ".stylua.toml", ".gitignore"],
|
|
62
|
-
ocamlformat: [".ocamlformat", ".gitignore"],
|
|
63
|
-
"google-java-format": [".google-java-format", ".editorconfig", ".gitignore"],
|
|
64
|
-
cljfmt: [".cljfmt.edn", "cljfmt.edn", ".cljfmt", ".gitignore"],
|
|
65
|
-
"cmake-format": [
|
|
66
|
-
".cmake-format",
|
|
67
|
-
".cmake-format.yaml",
|
|
68
|
-
".cmake-format.yml",
|
|
69
|
-
".cmake-format.json",
|
|
70
|
-
".cmake-format.py",
|
|
71
|
-
"cmake-format.yaml",
|
|
72
|
-
"cmake-format.yml",
|
|
73
|
-
".editorconfig",
|
|
74
|
-
".gitignore"
|
|
75
|
-
],
|
|
76
|
-
"psscriptanalyzer-format": [
|
|
77
|
-
"PSScriptAnalyzerSettings.psd1",
|
|
78
|
-
"ScriptAnalyzerSettings.psd1",
|
|
79
|
-
".gitignore"
|
|
80
|
-
],
|
|
81
|
-
csharpier: [
|
|
82
|
-
".csharpierrc",
|
|
83
|
-
".csharpierrc.json",
|
|
84
|
-
".csharpierrc.yaml",
|
|
85
|
-
".csharpierrc.yml",
|
|
86
|
-
".gitignore"
|
|
87
|
-
],
|
|
88
|
-
ormolu: [".ormolu", ".gitignore"],
|
|
89
|
-
taplo: ["taplo.toml", ".taplo.toml", ".gitignore"],
|
|
90
|
-
terraform: [".terraform.lock.hcl", ".gitignore"],
|
|
91
|
-
swiftformat: [".swiftformat", ".gitignore"],
|
|
92
|
-
fantomas: [".fantomasignore", ".editorconfig", ".gitignore"],
|
|
93
|
-
mix: [".formatter.exs", ".gitignore"],
|
|
94
|
-
shfmt: [".editorconfig", ".gitignore"],
|
|
95
|
-
ktlint: [".editorconfig", ".gitignore"],
|
|
96
|
-
ktfmt: [
|
|
97
|
-
".editorconfig",
|
|
98
|
-
".ktfmt",
|
|
99
|
-
".ktfmt.kts",
|
|
100
|
-
"build.gradle",
|
|
101
|
-
"build.gradle.kts",
|
|
102
|
-
"settings.gradle",
|
|
103
|
-
"settings.gradle.kts",
|
|
104
|
-
".gitignore"
|
|
105
|
-
],
|
|
106
|
-
typstyle: [".gitignore"]
|
|
107
|
-
};
|
|
108
|
-
var toolCwdGeneration = createGenerationSource("tool-cwd");
|
|
109
|
-
var logged = createGenerationMap("tool-cwd-resolution-log");
|
|
110
|
-
function _toolCwdEphemeralKey(parts) {
|
|
111
|
-
return parts.map(normalizeEphemeralMapKey).join("\0");
|
|
112
|
-
}
|
|
113
|
-
function syncGeneration() {
|
|
114
|
-
if (toolCwdGeneration.current() === getDegradationLedgerGeneration())
|
|
115
|
-
return;
|
|
116
|
-
logged.clear();
|
|
117
|
-
while (toolCwdGeneration.current() < getDegradationLedgerGeneration()) {
|
|
118
|
-
toolCwdGeneration.bump();
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
function walkMarkerRoot(startDir, markers, homeDir) {
|
|
122
|
-
for (const current of walkUpDirs(startDir, { homeDir, maxDepth: 64 })) {
|
|
123
|
-
for (const marker of markers) {
|
|
124
|
-
const slash = toPosix(marker).lastIndexOf("/");
|
|
125
|
-
const parent = slash >= 0 ? marker.slice(0, slash) : "";
|
|
126
|
-
const basename = slash >= 0 ? marker.slice(slash + 1) : marker;
|
|
127
|
-
const target = parent ? path.join(current, ...parent.split("/").filter(Boolean)) : current;
|
|
128
|
-
let found = false;
|
|
129
|
-
if (basename.includes("*")) {
|
|
130
|
-
try {
|
|
131
|
-
found = readdirSync(target, { withFileTypes: true }).some((entry) => (entry.isFile() || entry.isSymbolicLink()) && nameMatchesMarkerGlob(entry.name, basename));
|
|
132
|
-
} catch {
|
|
133
|
-
found = false;
|
|
134
|
-
}
|
|
135
|
-
} else {
|
|
136
|
-
found = existsSync(path.join(target, basename));
|
|
137
|
-
}
|
|
138
|
-
if (found)
|
|
139
|
-
return { root: current, marker };
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
return { root: null };
|
|
143
|
-
}
|
|
144
|
-
function findMarkerRoot(startDir, markers, homeDir) {
|
|
145
|
-
syncGeneration();
|
|
146
|
-
return walkMarkerRoot(startDir, markers, homeDir);
|
|
147
|
-
}
|
|
148
|
-
function markersFor(kind, tool, file, ctx) {
|
|
149
|
-
if (kind === "lsp")
|
|
150
|
-
return ctx.rootMarkers ?? [];
|
|
151
|
-
if (kind === "runner")
|
|
152
|
-
return ctx.rootMarkers ?? rootMarkersForFile(file, tool);
|
|
153
|
-
return FORMATTER_MARKERS[tool] ?? [".gitignore"];
|
|
154
|
-
}
|
|
155
|
-
function emitResolution(kind, tool, cwd, reason) {
|
|
156
|
-
syncGeneration();
|
|
157
|
-
const key = _toolCwdEphemeralKey([kind, tool, cwd, reason]);
|
|
158
|
-
if (logged.current(key) !== 0)
|
|
159
|
-
return;
|
|
160
|
-
logged.bump(key);
|
|
161
|
-
logExtension({
|
|
162
|
-
subsystem: "tool-cwd",
|
|
163
|
-
level: "debug",
|
|
164
|
-
message: `cwd ${kind} ${tool} cwd=${cwd} reason=${reason}`
|
|
165
|
-
});
|
|
166
|
-
}
|
|
167
|
-
function logRunnerAdvisoryOnce(ctx, tool, root, message) {
|
|
168
|
-
syncGeneration();
|
|
169
|
-
const key = _toolCwdEphemeralKey(["runner-advisory", tool, root]);
|
|
170
|
-
if (logged.current(key) !== 0)
|
|
171
|
-
return;
|
|
172
|
-
logged.bump(key);
|
|
173
|
-
ctx.log(message, "debug");
|
|
174
|
-
}
|
|
175
|
-
function resolveToolCwd(kind, tool, file, ctx) {
|
|
176
|
-
if (ctx.serverRoot) {
|
|
177
|
-
const rootPath = isWindowsPath(ctx.serverRoot) ? path.win32 : path;
|
|
178
|
-
const serverRoot = rootPath.resolve(ctx.serverRoot);
|
|
179
|
-
if (!ctx.suppressTelemetry)
|
|
180
|
-
emitResolution(kind, tool, serverRoot, "server-root");
|
|
181
|
-
return { cwd: serverRoot };
|
|
182
|
-
}
|
|
183
|
-
const dispatchRoot = path.resolve(ctx.cwd ?? process.cwd());
|
|
184
|
-
const absoluteFile = realpathOrResolve(file);
|
|
185
|
-
const fileDir = path.dirname(absoluteFile);
|
|
186
|
-
const homeDir = ctx.homeDir ?? os.homedir();
|
|
187
|
-
const homeCeiling = realpathOrResolve(homeDir);
|
|
188
|
-
const insideDispatch = isUnderDir(absoluteFile, dispatchRoot);
|
|
189
|
-
const markers = markersFor(kind, tool, absoluteFile, ctx);
|
|
190
|
-
const markerResult = markers.length ? findMarkerRoot(fileDir, markers, ctx.allowHomeMarker ? path.parse(homeCeiling).root : homeCeiling) : { root: null };
|
|
191
|
-
const markerRoot = markerResult.root;
|
|
192
|
-
if (markerRoot && (insideDispatch ? isUnderDir(markerRoot, dispatchRoot) : true)) {
|
|
193
|
-
const finalReason = `marker:${markerResult.marker ?? markers[0]}`;
|
|
194
|
-
if (!ctx.suppressTelemetry)
|
|
195
|
-
emitResolution(kind, tool, markerRoot, finalReason);
|
|
196
|
-
return {
|
|
197
|
-
cwd: markerRoot,
|
|
198
|
-
...markerResult.marker !== void 0 ? { marker: markerResult.marker } : {}
|
|
199
|
-
};
|
|
200
|
-
}
|
|
201
|
-
const memo = ctx.toolCwdMemo;
|
|
202
|
-
if (memo && memo.gitRoot === void 0) {
|
|
203
|
-
const gitResult = findMarkerRoot(fileDir, [".git"], homeCeiling);
|
|
204
|
-
memo.gitRoot = gitResult.root && isRealGitMarker(path.join(gitResult.root, ".git")) ? gitResult.root : null;
|
|
205
|
-
}
|
|
206
|
-
const gitRoot = memo && memo.gitRoot !== void 0 ? memo.gitRoot : (() => {
|
|
207
|
-
const gitResult = findMarkerRoot(fileDir, [".git"], homeCeiling);
|
|
208
|
-
return gitResult.root && isRealGitMarker(path.join(gitResult.root, ".git")) ? gitResult.root : null;
|
|
209
|
-
})();
|
|
210
|
-
if (gitRoot && (insideDispatch ? isUnderDir(gitRoot, dispatchRoot) : true)) {
|
|
211
|
-
if (!ctx.suppressTelemetry)
|
|
212
|
-
emitResolution(kind, tool, gitRoot, "git-root");
|
|
213
|
-
return { cwd: gitRoot, marker: ".git" };
|
|
214
|
-
}
|
|
215
|
-
if (insideDispatch) {
|
|
216
|
-
if (kind === "formatter") {
|
|
217
|
-
if (!ctx.suppressTelemetry)
|
|
218
|
-
emitResolution(kind, tool, fileDir, "file-dir-fallback");
|
|
219
|
-
if (!ctx.suppressTelemetry && !isUnderDir(fileDir, homeDir)) {
|
|
220
|
-
recordDegradationOnce({
|
|
221
|
-
kind: "tool-cwd-resolution",
|
|
222
|
-
subject: tool,
|
|
223
|
-
reason: `${kind}:home-cap:${absoluteFile}`
|
|
224
|
-
});
|
|
225
|
-
}
|
|
226
|
-
return { cwd: fileDir };
|
|
227
|
-
}
|
|
228
|
-
if (!ctx.suppressTelemetry)
|
|
229
|
-
emitResolution(kind, tool, dispatchRoot, "dispatch-root");
|
|
230
|
-
return { cwd: dispatchRoot };
|
|
231
|
-
}
|
|
232
|
-
const reason = isUnderDir(fileDir, homeDir) ? "file-dir-fallback" : "home-cap";
|
|
233
|
-
const fallback = isUnderDir(fileDir, homeDir) ? fileDir : homeDir;
|
|
234
|
-
if (!ctx.suppressTelemetry)
|
|
235
|
-
recordDegradationOnce({
|
|
236
|
-
kind: "tool-cwd-resolution",
|
|
237
|
-
subject: tool,
|
|
238
|
-
reason: `${kind}:${reason}:${absoluteFile}`
|
|
239
|
-
});
|
|
240
|
-
if (!ctx.suppressTelemetry)
|
|
241
|
-
emitResolution(kind, tool, fallback, reason);
|
|
242
|
-
return { cwd: fallback };
|
|
243
|
-
}
|
|
244
|
-
function resolveRunnerCwd(ctx, tool) {
|
|
245
|
-
return resolveToolCwd("runner", tool, ctx.filePath, ctx).cwd;
|
|
246
|
-
}
|
|
247
|
-
function resolveRunnerCwdWithReason(ctx, tool) {
|
|
248
|
-
return resolveToolCwd("runner", tool, ctx.filePath, ctx);
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
export {
|
|
252
|
-
logRunnerAdvisoryOnce,
|
|
253
|
-
resolveToolCwd,
|
|
254
|
-
resolveRunnerCwd,
|
|
255
|
-
resolveRunnerCwdWithReason
|
|
256
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
GovulncheckClient,
|
|
4
|
-
parseGovulncheckJson
|
|
5
|
-
} from "./chunk-OEPWTSUG.js";
|
|
6
|
-
import "./chunk-LD7SXICE.js";
|
|
7
|
-
import "./chunk-NZINZCHB.js";
|
|
8
|
-
import "./chunk-FDLGJFAE.js";
|
|
9
|
-
import "./chunk-QJ4T73J5.js";
|
|
10
|
-
import "./chunk-W6VLB6LL.js";
|
|
11
|
-
import "./chunk-3QMLB4TI.js";
|
|
12
|
-
import "./chunk-AVBEPUCD.js";
|
|
13
|
-
import "./chunk-ET3DSSFZ.js";
|
|
14
|
-
import "./chunk-B4FAFEBP.js";
|
|
15
|
-
import "./chunk-6EIV3H7O.js";
|
|
16
|
-
import "./chunk-3R3Z54J7.js";
|
|
17
|
-
import "./chunk-HRQTYU2T.js";
|
|
18
|
-
import "./chunk-AGEQRJ5A.js";
|
|
19
|
-
import "./chunk-S26LC76R.js";
|
|
20
|
-
import "./chunk-K2GV34T2.js";
|
|
21
|
-
import "./chunk-LJDODBBZ.js";
|
|
22
|
-
import "./chunk-WLD6BGON.js";
|
|
23
|
-
import "./chunk-NXL4FFQQ.js";
|
|
24
|
-
export {
|
|
25
|
-
GovulncheckClient,
|
|
26
|
-
parseGovulncheckJson
|
|
27
|
-
};
|