@herbertgao/pi-extensions 2026.11.10 → 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 +31 -0
- package/README.md +10 -10
- package/THIRD_PARTY_NOTICES.md +3 -3
- package/node_modules/@herbertgao/pi-cc-extensions/CHANGELOG.md +16 -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 +73 -47
- 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 +79 -18
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/tool-io.ts +0 -5
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/utils/ansi-text.ts +18 -4
- 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 +12 -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 +4 -2
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/adapt.md +2 -2
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/animate.md +17 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/audit.md +12 -1
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/audit.native.md +4 -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 +13 -505
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/degraded/documenter.md +1 -1
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/degraded/finish-reviewer.md +1 -1
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/degraded/motion-reviewer.md +29 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/distill.md +1 -1
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/document.md +3 -1
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/foundations.md +44 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/hooks.md +3 -3
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/live-setup.md +1 -1
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/live.md +26 -12
- 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 +9 -37
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/onboard.md +7 -6
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/overdrive.md +2 -2
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/quieter.md +1 -1
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/typeset.md +6 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/visualize.md +1 -1
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/VERSION +1 -1
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/engine-checksums.txt +5 -5
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/impeccable +69 -16
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/impeccable.cmd +55 -7
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/live-browser.js +51 -22
- package/node_modules/@herbertgao/pi-subagents/CHANGELOG.md +6 -0
- package/node_modules/@herbertgao/pi-subagents/README.md +27 -9
- package/node_modules/@herbertgao/pi-subagents/docs/workflows.md +11 -11
- package/node_modules/@herbertgao/pi-subagents/package.json +4 -4
- package/node_modules/@herbertgao/pi-subagents/src/agent-manager.ts +13 -0
- package/node_modules/@herbertgao/pi-subagents/src/agent-runner.ts +51 -32
- package/node_modules/@herbertgao/pi-subagents/src/default-agents.ts +7 -0
- package/node_modules/@herbertgao/pi-subagents/src/index.ts +334 -893
- package/node_modules/@herbertgao/pi-subagents/src/nested-tools.ts +4 -1
- package/node_modules/@herbertgao/pi-subagents/src/prompts.ts +13 -0
- package/node_modules/@herbertgao/pi-subagents/src/schedule-store.ts +18 -13
- package/node_modules/@herbertgao/pi-subagents/src/schedule.ts +25 -5
- package/node_modules/@herbertgao/pi-subagents/src/settings.ts +215 -69
- package/node_modules/@herbertgao/pi-subagents/src/types.ts +17 -0
- package/node_modules/@herbertgao/pi-subagents/src/ui/agent-widget.ts +9 -0
- package/node_modules/@herbertgao/pi-subagents/src/ui/agents-menu.ts +705 -0
- package/node_modules/@herbertgao/pi-subagents/src/ui/settings-menu.ts +361 -0
- package/node_modules/@herbertgao/pi-subagents/src/ui/viewer-keys.ts +1 -1
- 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 +21 -1
- package/node_modules/pi-commandcode-provider/README.md +2 -2
- package/node_modules/pi-commandcode-provider/index.ts +2 -1
- package/node_modules/pi-commandcode-provider/package.json +5 -4
- 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-commandcode-provider/src/pricing.ts +8 -1
- package/node_modules/pi-commandcode-provider/src/responses-compat.ts +137 -0
- 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 +11 -8
- 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
|
@@ -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 = {}) {
|
|
@@ -0,0 +1,56 @@
|
|
|
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-QE7BJQ6K.js";
|
|
7
|
+
import "./chunk-PKWEBMCA.js";
|
|
8
|
+
import {
|
|
9
|
+
mapWithConcurrency
|
|
10
|
+
} from "./chunk-XIMYZ3JA.js";
|
|
11
|
+
import "./chunk-AXAR5ZW2.js";
|
|
12
|
+
import "./chunk-7WKVCZI4.js";
|
|
13
|
+
import "./chunk-2H5GHZKC.js";
|
|
14
|
+
import "./chunk-QV3JPCMK.js";
|
|
15
|
+
import "./chunk-NNEQOC3U.js";
|
|
16
|
+
import "./chunk-CXQYK4YT.js";
|
|
17
|
+
import "./chunk-ZQSSO7LO.js";
|
|
18
|
+
import "./chunk-AZG5UJYY.js";
|
|
19
|
+
import "./chunk-P5MSLVUW.js";
|
|
20
|
+
import "./chunk-ADYQRETD.js";
|
|
21
|
+
import "./chunk-DI4AZZNY.js";
|
|
22
|
+
import "./chunk-2APSZHHI.js";
|
|
23
|
+
import "./chunk-2BEMIWEW.js";
|
|
24
|
+
import "./chunk-IJYGIDF4.js";
|
|
25
|
+
import "./chunk-B2OXE4AH.js";
|
|
26
|
+
import "./chunk-LVLPA32Q.js";
|
|
27
|
+
import "./chunk-LGH2HHZG.js";
|
|
28
|
+
import "./chunk-KXGTLAUW.js";
|
|
29
|
+
import "./chunk-TQWRH25U.js";
|
|
30
|
+
import "./chunk-UYXV5NIS.js";
|
|
31
|
+
import "./chunk-KNSOA43J.js";
|
|
32
|
+
import "./chunk-6GLMMGCX.js";
|
|
33
|
+
import "./chunk-XSC3BCN3.js";
|
|
34
|
+
import "./chunk-27JQHK7Y.js";
|
|
35
|
+
import "./chunk-R4L7KZ7R.js";
|
|
36
|
+
import "./chunk-74AMPWNC.js";
|
|
37
|
+
import "./chunk-3PO4YYOX.js";
|
|
38
|
+
import "./chunk-5JB4WENL.js";
|
|
39
|
+
import "./chunk-QYF5S6P6.js";
|
|
40
|
+
import "./chunk-CQY2HEH7.js";
|
|
41
|
+
import "./chunk-PQF6YGYB.js";
|
|
42
|
+
import "./chunk-LOEJFTF2.js";
|
|
43
|
+
import "./chunk-CIA7X2PZ.js";
|
|
44
|
+
import "./chunk-W26QZ3OM.js";
|
|
45
|
+
import "./chunk-NHA5K226.js";
|
|
46
|
+
import "./chunk-S26LC76R.js";
|
|
47
|
+
import "./chunk-7CLWC2UH.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,37 +1,37 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
getScratchTreeDirNames
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-S6MCMD27.js";
|
|
5
5
|
import {
|
|
6
6
|
SecurityScanClient
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ZI7YHV6I.js";
|
|
8
8
|
import {
|
|
9
9
|
runReportScan
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-INBK3HIT.js";
|
|
11
|
+
import "./chunk-SDYLT45T.js";
|
|
12
12
|
import {
|
|
13
13
|
resolveOpengrepConfig
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-7WKVCZI4.js";
|
|
15
|
+
import "./chunk-QV3JPCMK.js";
|
|
16
16
|
import {
|
|
17
17
|
stripPackRuleIdPrefix
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-AZG5UJYY.js";
|
|
19
|
+
import "./chunk-2APSZHHI.js";
|
|
20
|
+
import "./chunk-KXGTLAUW.js";
|
|
21
|
+
import "./chunk-6GLMMGCX.js";
|
|
22
22
|
import {
|
|
23
23
|
safeSpawnAsync
|
|
24
|
-
} from "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
24
|
+
} from "./chunk-3PO4YYOX.js";
|
|
25
|
+
import "./chunk-5JB4WENL.js";
|
|
26
|
+
import "./chunk-PQF6YGYB.js";
|
|
27
|
+
import "./chunk-LOEJFTF2.js";
|
|
28
|
+
import "./chunk-W26QZ3OM.js";
|
|
29
29
|
import {
|
|
30
30
|
LEDGER_FIELD_MAX,
|
|
31
31
|
recordDegradationOnce
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-NHA5K226.js";
|
|
33
33
|
import "./chunk-S26LC76R.js";
|
|
34
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-7CLWC2UH.js";
|
|
35
35
|
import "./chunk-LJDODBBZ.js";
|
|
36
36
|
import {
|
|
37
37
|
realpathOrResolve
|
|
@@ -119,7 +119,11 @@ var OpengrepClient = class _OpengrepClient extends SecurityScanClient {
|
|
|
119
119
|
"--exclude",
|
|
120
120
|
pattern
|
|
121
121
|
]),
|
|
122
|
-
|
|
122
|
+
// A relative target: opengrep matches `--exclude` against the
|
|
123
|
+
// path as scanned, so an absolute `cwd` made a scratch-named
|
|
124
|
+
// ANCESTOR of the project exclude every file (#5500). The spawn
|
|
125
|
+
// `cwd` below is the root, so `.` is the same tree.
|
|
126
|
+
"."
|
|
123
127
|
], { cwd, timeout: SCAN_TIMEOUT_MS }),
|
|
124
128
|
// The report's own content is the verdict, whatever the exit status
|
|
125
129
|
// (#5411: the policy `runReportScan` gives gitleaks and trivy): opengrep
|
|
@@ -9,31 +9,33 @@ import {
|
|
|
9
9
|
isExcludedTestTarget,
|
|
10
10
|
isRunnerErrorResult,
|
|
11
11
|
stripWrapperArgs
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-SUIZOCSY.js";
|
|
12
|
+
} from "./chunk-DCA2MXVQ.js";
|
|
13
|
+
import "./chunk-2H5GHZKC.js";
|
|
14
|
+
import "./chunk-QV3JPCMK.js";
|
|
15
|
+
import "./chunk-CXQYK4YT.js";
|
|
17
16
|
import "./chunk-6HWVI6MI.js";
|
|
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-
|
|
17
|
+
import "./chunk-DI4AZZNY.js";
|
|
18
|
+
import "./chunk-LVLPA32Q.js";
|
|
19
|
+
import "./chunk-LGH2HHZG.js";
|
|
20
|
+
import "./chunk-KXGTLAUW.js";
|
|
21
|
+
import "./chunk-TQWRH25U.js";
|
|
22
|
+
import "./chunk-UYXV5NIS.js";
|
|
23
|
+
import "./chunk-KNSOA43J.js";
|
|
24
|
+
import "./chunk-6GLMMGCX.js";
|
|
25
|
+
import "./chunk-XSC3BCN3.js";
|
|
26
|
+
import "./chunk-27JQHK7Y.js";
|
|
27
|
+
import "./chunk-R4L7KZ7R.js";
|
|
28
|
+
import "./chunk-74AMPWNC.js";
|
|
29
|
+
import "./chunk-3PO4YYOX.js";
|
|
30
|
+
import "./chunk-5JB4WENL.js";
|
|
29
31
|
import "./chunk-QYF5S6P6.js";
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-CQY2HEH7.js";
|
|
33
|
+
import "./chunk-PQF6YGYB.js";
|
|
34
|
+
import "./chunk-LOEJFTF2.js";
|
|
35
|
+
import "./chunk-W26QZ3OM.js";
|
|
36
|
+
import "./chunk-NHA5K226.js";
|
|
35
37
|
import "./chunk-S26LC76R.js";
|
|
36
|
-
import "./chunk-
|
|
38
|
+
import "./chunk-7CLWC2UH.js";
|
|
37
39
|
import "./chunk-LJDODBBZ.js";
|
|
38
40
|
import "./chunk-WLD6BGON.js";
|
|
39
41
|
import "./chunk-NXL4FFQQ.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
getProjectTrustGeneration
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-W26QZ3OM.js";
|
|
5
5
|
import {
|
|
6
6
|
logLatency
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-7CLWC2UH.js";
|
|
8
8
|
|
|
9
9
|
// dist/clients/dispatch/runners/utils/availability-policy.js
|
|
10
10
|
function describeProbeEvidence(result, command) {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
isExcludedDirName
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-3PO4YYOX.js";
|
|
5
5
|
import {
|
|
6
6
|
createDeadline,
|
|
7
7
|
yieldIfOverBudget
|
|
8
8
|
} from "./chunk-QYF5S6P6.js";
|
|
9
9
|
import {
|
|
10
10
|
isGeneratedArtifactDirectoryName
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-PQF6YGYB.js";
|
|
12
12
|
|
|
13
13
|
// dist/clients/source-walker.js
|
|
14
14
|
import * as fs from "node:fs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
|
-
|
|
3
|
+
isWithinIdentity,
|
|
4
4
|
normalizeFilePath,
|
|
5
5
|
normalizeLoggedPath,
|
|
6
6
|
pathsEqual
|
|
@@ -504,7 +504,6 @@ function nextModuleEvaluationOrdinal() {
|
|
|
504
504
|
import * as path4 from "node:path";
|
|
505
505
|
|
|
506
506
|
// dist/clients/probe-home-state.js
|
|
507
|
-
import * as fs from "node:fs";
|
|
508
507
|
import * as os from "node:os";
|
|
509
508
|
import * as path from "node:path";
|
|
510
509
|
var RESOLUTION_SLOT = /* @__PURE__ */ Symbol.for("pi-lens.probe-home-state.resolution");
|
|
@@ -529,7 +528,7 @@ function machineStateDir() {
|
|
|
529
528
|
function isTestProcessTargetingRealHome(file) {
|
|
530
529
|
if (!process.env.VITEST)
|
|
531
530
|
return false;
|
|
532
|
-
return
|
|
531
|
+
return isWithinIdentity(path.dirname(path.resolve(file)), path.join(os.homedir(), ".pi-lens"));
|
|
533
532
|
}
|
|
534
533
|
function resolveProbeHomeDir() {
|
|
535
534
|
const slot = globalThis;
|
|
@@ -551,7 +550,7 @@ function computeProbeHomeDir(cwd) {
|
|
|
551
550
|
const worktreeRoot = findAgentWorktreeRoot(cwd);
|
|
552
551
|
if (worktreeRoot)
|
|
553
552
|
return path.join(worktreeRoot, ".pi-lens-probe-home");
|
|
554
|
-
if (
|
|
553
|
+
if (isWithinIdentity(cwd, os.tmpdir())) {
|
|
555
554
|
return path.join(cwd, ".pi-lens-probe-home");
|
|
556
555
|
}
|
|
557
556
|
return void 0;
|
|
@@ -563,19 +562,9 @@ function findAgentWorktreeRoot(cwd) {
|
|
|
563
562
|
return void 0;
|
|
564
563
|
return normalized.slice(0, match.index + match[0].length).replace(/\/$/, "");
|
|
565
564
|
}
|
|
566
|
-
function isUnderRealDir(child, parent) {
|
|
567
|
-
return isUnderDir(toRealPath(child), toRealPath(parent));
|
|
568
|
-
}
|
|
569
|
-
function toRealPath(target) {
|
|
570
|
-
try {
|
|
571
|
-
return fs.realpathSync.native(target);
|
|
572
|
-
} catch {
|
|
573
|
-
return target;
|
|
574
|
-
}
|
|
575
|
-
}
|
|
576
565
|
|
|
577
566
|
// dist/clients/ndjson-logger.js
|
|
578
|
-
import * as
|
|
567
|
+
import * as fs from "node:fs";
|
|
579
568
|
import * as path2 from "node:path";
|
|
580
569
|
function resolve3(v) {
|
|
581
570
|
return typeof v === "function" ? v() : v;
|
|
@@ -721,11 +710,11 @@ function normalizeLogPath(file) {
|
|
|
721
710
|
}
|
|
722
711
|
function writeQueueItemSync(state2, item) {
|
|
723
712
|
if (item.kind === "truncate") {
|
|
724
|
-
|
|
713
|
+
fs.writeFileSync(state2.file, "");
|
|
725
714
|
noteTruncated(state2);
|
|
726
715
|
} else {
|
|
727
716
|
const plan = planBoundedWrite(state2, [item.line]);
|
|
728
|
-
|
|
717
|
+
fs.appendFileSync(state2.file, plan.joined);
|
|
729
718
|
noteWriteSucceeded(state2, plan.bytes);
|
|
730
719
|
}
|
|
731
720
|
}
|
|
@@ -817,7 +806,7 @@ function ensureDirSync(state2) {
|
|
|
817
806
|
if (state2.ensuredDir)
|
|
818
807
|
return;
|
|
819
808
|
runBestEffort(() => {
|
|
820
|
-
|
|
809
|
+
fs.mkdirSync(path2.dirname(state2.file), { recursive: true });
|
|
821
810
|
state2.ensuredDir = true;
|
|
822
811
|
});
|
|
823
812
|
}
|
|
@@ -825,7 +814,7 @@ async function ensureDirAsync(state2) {
|
|
|
825
814
|
if (state2.ensuredDir)
|
|
826
815
|
return;
|
|
827
816
|
try {
|
|
828
|
-
await
|
|
817
|
+
await fs.promises.mkdir(path2.dirname(state2.file), { recursive: true });
|
|
829
818
|
state2.ensuredDir = true;
|
|
830
819
|
} catch {
|
|
831
820
|
}
|
|
@@ -839,7 +828,7 @@ function syncKnownSizeIfDue(state2, now) {
|
|
|
839
828
|
state2.writesSinceStatSync = 0;
|
|
840
829
|
state2.lastStatSyncMs = now;
|
|
841
830
|
try {
|
|
842
|
-
state2.knownSize =
|
|
831
|
+
state2.knownSize = fs.statSync(state2.file).size;
|
|
843
832
|
} catch {
|
|
844
833
|
state2.knownSize = 0;
|
|
845
834
|
}
|
|
@@ -852,7 +841,7 @@ function rotateNow(state2, incomingBytes, now) {
|
|
|
852
841
|
return false;
|
|
853
842
|
let actualSize;
|
|
854
843
|
try {
|
|
855
|
-
actualSize =
|
|
844
|
+
actualSize = fs.statSync(state2.file).size;
|
|
856
845
|
} catch {
|
|
857
846
|
state2.knownSize = 0;
|
|
858
847
|
state2.writesSinceStatSync = 0;
|
|
@@ -868,8 +857,8 @@ function rotateNow(state2, incomingBytes, now) {
|
|
|
868
857
|
return false;
|
|
869
858
|
const backup = state2.backupPath ?? `${state2.file}.1`;
|
|
870
859
|
try {
|
|
871
|
-
runBestEffort(() =>
|
|
872
|
-
|
|
860
|
+
runBestEffort(() => fs.rmSync(backup, { force: true }));
|
|
861
|
+
fs.renameSync(state2.file, backup);
|
|
873
862
|
} catch {
|
|
874
863
|
state2.rotationFailures += 1;
|
|
875
864
|
state2.rotationRetryAfterMs = now + ROTATION_FAILURE_BACKOFF_MS;
|
|
@@ -926,11 +915,11 @@ function noteTruncated(state2) {
|
|
|
926
915
|
}
|
|
927
916
|
async function writeQueueItemAsync(state2, item) {
|
|
928
917
|
if (item.kind === "truncate") {
|
|
929
|
-
await
|
|
918
|
+
await fs.promises.writeFile(state2.file, "");
|
|
930
919
|
noteTruncated(state2);
|
|
931
920
|
} else {
|
|
932
921
|
const plan = planBoundedWrite(state2, [item.line]);
|
|
933
|
-
await
|
|
922
|
+
await fs.promises.appendFile(state2.file, plan.joined);
|
|
934
923
|
noteWriteSucceeded(state2, plan.bytes);
|
|
935
924
|
}
|
|
936
925
|
}
|
|
@@ -961,10 +950,10 @@ async function drainLoop(state2) {
|
|
|
961
950
|
state2.inFlightBatch = pending;
|
|
962
951
|
const writeBatch = async () => {
|
|
963
952
|
if (plan === null) {
|
|
964
|
-
await
|
|
953
|
+
await fs.promises.writeFile(state2.file, "");
|
|
965
954
|
noteTruncated(state2);
|
|
966
955
|
} else {
|
|
967
|
-
await
|
|
956
|
+
await fs.promises.appendFile(state2.file, plan.joined);
|
|
968
957
|
noteWriteSucceeded(state2, plan.bytes);
|
|
969
958
|
}
|
|
970
959
|
};
|
|
@@ -1072,7 +1061,7 @@ function createNdjsonLogger(options) {
|
|
|
1072
1061
|
}
|
|
1073
1062
|
|
|
1074
1063
|
// dist/clients/log-cleanup.js
|
|
1075
|
-
import * as
|
|
1064
|
+
import * as fs2 from "node:fs";
|
|
1076
1065
|
import * as path3 from "node:path";
|
|
1077
1066
|
var LOG_DIR = getGlobalPiLensLogDir();
|
|
1078
1067
|
var LOGS_SUBDIR = path3.join(LOG_DIR, "logs");
|
|
@@ -1084,8 +1073,8 @@ function getManagedLogFiles(dir = LOG_DIR) {
|
|
|
1084
1073
|
}
|
|
1085
1074
|
}
|
|
1086
1075
|
try {
|
|
1087
|
-
if (
|
|
1088
|
-
for (const entry of
|
|
1076
|
+
if (fs2.existsSync(dir)) {
|
|
1077
|
+
for (const entry of fs2.readdirSync(dir)) {
|
|
1089
1078
|
if (entry.endsWith(".log") && !ROTATED_BACKUP_RE.test(entry)) {
|
|
1090
1079
|
names.add(entry);
|
|
1091
1080
|
}
|
|
@@ -1107,7 +1096,7 @@ function getConfig() {
|
|
|
1107
1096
|
}
|
|
1108
1097
|
function getFileAgeDays(filePath) {
|
|
1109
1098
|
try {
|
|
1110
|
-
const stats =
|
|
1099
|
+
const stats = fs2.statSync(filePath);
|
|
1111
1100
|
const ageMs = Date.now() - stats.mtime.getTime();
|
|
1112
1101
|
return ageMs / (1e3 * 60 * 60 * 24);
|
|
1113
1102
|
} catch {
|
|
@@ -1116,7 +1105,7 @@ function getFileAgeDays(filePath) {
|
|
|
1116
1105
|
}
|
|
1117
1106
|
function getFileSizeMB(filePath) {
|
|
1118
1107
|
try {
|
|
1119
|
-
const stats =
|
|
1108
|
+
const stats = fs2.statSync(filePath);
|
|
1120
1109
|
return stats.size / (1024 * 1024);
|
|
1121
1110
|
} catch {
|
|
1122
1111
|
return 0;
|
|
@@ -1128,10 +1117,10 @@ function cleanupOldLogs(directory, pattern, retentionDays) {
|
|
|
1128
1117
|
const deleted = [];
|
|
1129
1118
|
const errors = [];
|
|
1130
1119
|
try {
|
|
1131
|
-
if (!
|
|
1120
|
+
if (!fs2.existsSync(directory)) {
|
|
1132
1121
|
return { deleted, errors };
|
|
1133
1122
|
}
|
|
1134
|
-
const files =
|
|
1123
|
+
const files = fs2.readdirSync(directory);
|
|
1135
1124
|
for (const file of files) {
|
|
1136
1125
|
if (!pattern.test(file))
|
|
1137
1126
|
continue;
|
|
@@ -1139,7 +1128,7 @@ function cleanupOldLogs(directory, pattern, retentionDays) {
|
|
|
1139
1128
|
const ageDays = getFileAgeDays(filePath);
|
|
1140
1129
|
if (ageDays > maxAge) {
|
|
1141
1130
|
try {
|
|
1142
|
-
|
|
1131
|
+
fs2.unlinkSync(filePath);
|
|
1143
1132
|
deleted.push(file);
|
|
1144
1133
|
} catch (err) {
|
|
1145
1134
|
errors.push(`${file}: ${err}`);
|
|
@@ -1163,8 +1152,8 @@ function rotateLogIfNeeded(logFile, maxSizeMB) {
|
|
|
1163
1152
|
const ext = path3.extname(logFile);
|
|
1164
1153
|
const base = logFile.slice(0, -ext.length);
|
|
1165
1154
|
const backupFile = `${base}.${timestamp}${ext}`;
|
|
1166
|
-
|
|
1167
|
-
|
|
1155
|
+
fs2.renameSync(logFile, backupFile);
|
|
1156
|
+
fs2.writeFileSync(logFile, "", "utf8");
|
|
1168
1157
|
return { rotated: true, newFile: backupFile };
|
|
1169
1158
|
} catch {
|
|
1170
1159
|
return { rotated: false };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
createToolchainAvailability
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-QMWKSYWB.js";
|
|
5
5
|
import {
|
|
6
6
|
createSubsystemLogger
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-NHA5K226.js";
|
|
8
8
|
|
|
9
9
|
// dist/clients/go-client.js
|
|
10
10
|
import * as path from "node:path";
|