@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
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
adaptLspService,
|
|
4
|
+
getLSPService,
|
|
5
|
+
groupFilesByPrimaryServer,
|
|
6
|
+
hasAuxiliaryLspPublishedForRoot,
|
|
7
|
+
notifyExternalFileChange,
|
|
8
|
+
peekLSPService,
|
|
9
|
+
resetLSPService,
|
|
10
|
+
resyncGitChangedFiles,
|
|
11
|
+
runPerServerGroups
|
|
12
|
+
} from "./chunk-TWEOJE3D.js";
|
|
13
|
+
import "./chunk-VSQT6IHZ.js";
|
|
14
|
+
import "./chunk-XIMYZ3JA.js";
|
|
15
|
+
import "./chunk-AXAR5ZW2.js";
|
|
16
|
+
import "./chunk-7WKVCZI4.js";
|
|
17
|
+
import "./chunk-2H5GHZKC.js";
|
|
18
|
+
import "./chunk-QV3JPCMK.js";
|
|
19
|
+
import "./chunk-NNEQOC3U.js";
|
|
20
|
+
import "./chunk-LQQNFCQJ.js";
|
|
21
|
+
import "./chunk-ARTYCUGF.js";
|
|
22
|
+
import "./chunk-JGUDT5KD.js";
|
|
23
|
+
import "./chunk-CXQYK4YT.js";
|
|
24
|
+
import "./chunk-37IDWT6O.js";
|
|
25
|
+
import "./chunk-Z54ZSOBZ.js";
|
|
26
|
+
import "./chunk-ZQSSO7LO.js";
|
|
27
|
+
import "./chunk-6HWVI6MI.js";
|
|
28
|
+
import "./chunk-AZG5UJYY.js";
|
|
29
|
+
import "./chunk-P5MSLVUW.js";
|
|
30
|
+
import "./chunk-ADYQRETD.js";
|
|
31
|
+
import "./chunk-DI4AZZNY.js";
|
|
32
|
+
import "./chunk-3TSMQZG6.js";
|
|
33
|
+
import "./chunk-2APSZHHI.js";
|
|
34
|
+
import "./chunk-ZRQMENT4.js";
|
|
35
|
+
import "./chunk-2BEMIWEW.js";
|
|
36
|
+
import "./chunk-IJYGIDF4.js";
|
|
37
|
+
import "./chunk-B2OXE4AH.js";
|
|
38
|
+
import "./chunk-LVLPA32Q.js";
|
|
39
|
+
import "./chunk-LGH2HHZG.js";
|
|
40
|
+
import "./chunk-KXGTLAUW.js";
|
|
41
|
+
import "./chunk-TQWRH25U.js";
|
|
42
|
+
import "./chunk-UYXV5NIS.js";
|
|
43
|
+
import "./chunk-KNSOA43J.js";
|
|
44
|
+
import "./chunk-6GLMMGCX.js";
|
|
45
|
+
import "./chunk-XSC3BCN3.js";
|
|
46
|
+
import "./chunk-27JQHK7Y.js";
|
|
47
|
+
import "./chunk-R4L7KZ7R.js";
|
|
48
|
+
import "./chunk-74AMPWNC.js";
|
|
49
|
+
import "./chunk-3PO4YYOX.js";
|
|
50
|
+
import "./chunk-5JB4WENL.js";
|
|
51
|
+
import "./chunk-QYF5S6P6.js";
|
|
52
|
+
import "./chunk-CQY2HEH7.js";
|
|
53
|
+
import "./chunk-PQF6YGYB.js";
|
|
54
|
+
import "./chunk-LOEJFTF2.js";
|
|
55
|
+
import "./chunk-CIA7X2PZ.js";
|
|
56
|
+
import "./chunk-W26QZ3OM.js";
|
|
57
|
+
import "./chunk-NHA5K226.js";
|
|
58
|
+
import "./chunk-S26LC76R.js";
|
|
59
|
+
import "./chunk-7CLWC2UH.js";
|
|
60
|
+
import "./chunk-LJDODBBZ.js";
|
|
61
|
+
import "./chunk-WLD6BGON.js";
|
|
62
|
+
import "./chunk-NXL4FFQQ.js";
|
|
63
|
+
export {
|
|
64
|
+
adaptLspService,
|
|
65
|
+
getLSPService,
|
|
66
|
+
groupFilesByPrimaryServer,
|
|
67
|
+
hasAuxiliaryLspPublishedForRoot,
|
|
68
|
+
notifyExternalFileChange,
|
|
69
|
+
peekLSPService,
|
|
70
|
+
resetLSPService,
|
|
71
|
+
resyncGitChangedFiles,
|
|
72
|
+
runPerServerGroups
|
|
73
|
+
};
|
|
@@ -3,18 +3,18 @@ import {
|
|
|
3
3
|
RustClient,
|
|
4
4
|
resetRustAvailability,
|
|
5
5
|
rustClient
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-XDNWR7SG.js";
|
|
7
|
+
import "./chunk-QMWKSYWB.js";
|
|
8
|
+
import "./chunk-KXGTLAUW.js";
|
|
9
|
+
import "./chunk-6GLMMGCX.js";
|
|
10
|
+
import "./chunk-3PO4YYOX.js";
|
|
11
|
+
import "./chunk-5JB4WENL.js";
|
|
12
|
+
import "./chunk-PQF6YGYB.js";
|
|
13
|
+
import "./chunk-LOEJFTF2.js";
|
|
14
|
+
import "./chunk-W26QZ3OM.js";
|
|
15
|
+
import "./chunk-NHA5K226.js";
|
|
16
16
|
import "./chunk-S26LC76R.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-7CLWC2UH.js";
|
|
18
18
|
import "./chunk-LJDODBBZ.js";
|
|
19
19
|
import "./chunk-WLD6BGON.js";
|
|
20
20
|
import "./chunk-NXL4FFQQ.js";
|
|
@@ -2,18 +2,18 @@ import { createRequire as __pilensCreateRequire } from "node:module"; const requ
|
|
|
2
2
|
import {
|
|
3
3
|
getSourceFiles,
|
|
4
4
|
getSourceFilesAsync
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-27JQHK7Y.js";
|
|
6
|
+
import "./chunk-R4L7KZ7R.js";
|
|
7
|
+
import "./chunk-74AMPWNC.js";
|
|
8
|
+
import "./chunk-3PO4YYOX.js";
|
|
9
9
|
import "./chunk-QYF5S6P6.js";
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-CQY2HEH7.js";
|
|
11
|
+
import "./chunk-PQF6YGYB.js";
|
|
12
|
+
import "./chunk-LOEJFTF2.js";
|
|
13
|
+
import "./chunk-W26QZ3OM.js";
|
|
14
|
+
import "./chunk-NHA5K226.js";
|
|
15
15
|
import "./chunk-S26LC76R.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-7CLWC2UH.js";
|
|
17
17
|
import "./chunk-LJDODBBZ.js";
|
|
18
18
|
import "./chunk-WLD6BGON.js";
|
|
19
19
|
import "./chunk-NXL4FFQQ.js";
|
|
@@ -7,15 +7,15 @@ import {
|
|
|
7
7
|
loadCallGraph,
|
|
8
8
|
parseSymbolKey,
|
|
9
9
|
saveCallGraph
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-7U36VQL6.js";
|
|
11
11
|
import "./chunk-3MED75HT.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-3PO4YYOX.js";
|
|
13
|
+
import "./chunk-PQF6YGYB.js";
|
|
14
|
+
import "./chunk-LOEJFTF2.js";
|
|
15
|
+
import "./chunk-W26QZ3OM.js";
|
|
16
|
+
import "./chunk-NHA5K226.js";
|
|
17
17
|
import "./chunk-S26LC76R.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-7CLWC2UH.js";
|
|
19
19
|
import "./chunk-LJDODBBZ.js";
|
|
20
20
|
import "./chunk-WLD6BGON.js";
|
|
21
21
|
import "./chunk-NXL4FFQQ.js";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
deserializeWordIndex,
|
|
4
4
|
recordPersistedWordIndexWireBytes,
|
|
5
5
|
serializeWordIndex
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-P5MSLVUW.js";
|
|
7
7
|
import {
|
|
8
8
|
fingerprintProjectSnapshotJson
|
|
9
9
|
} from "./chunk-2BEMIWEW.js";
|
|
@@ -11,6 +11,9 @@ import {
|
|
|
11
11
|
readGzipStageWorkerResult,
|
|
12
12
|
reapStageFile
|
|
13
13
|
} from "./chunk-IJYGIDF4.js";
|
|
14
|
+
import {
|
|
15
|
+
readJsonCache
|
|
16
|
+
} from "./chunk-TQWRH25U.js";
|
|
14
17
|
import {
|
|
15
18
|
registerBackgroundWriteDrain
|
|
16
19
|
} from "./chunk-UYXV5NIS.js";
|
|
@@ -18,64 +21,35 @@ import {
|
|
|
18
21
|
getProjectDataDir,
|
|
19
22
|
isStaleStageFile,
|
|
20
23
|
withGenerationLockSync
|
|
21
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-3PO4YYOX.js";
|
|
22
25
|
import {
|
|
23
26
|
writeFileAtomic
|
|
24
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-W26QZ3OM.js";
|
|
25
28
|
import {
|
|
26
29
|
incrementDegradationCount
|
|
27
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-NHA5K226.js";
|
|
28
31
|
import {
|
|
29
32
|
logLatency
|
|
30
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-7CLWC2UH.js";
|
|
31
34
|
import {
|
|
32
35
|
BoundedFifoMap,
|
|
33
36
|
normalizeMapKey
|
|
34
37
|
} from "./chunk-WLD6BGON.js";
|
|
35
38
|
|
|
36
39
|
// dist/clients/project-snapshot.js
|
|
37
|
-
import * as
|
|
40
|
+
import * as fs2 from "node:fs";
|
|
38
41
|
import * as path2 from "node:path";
|
|
39
42
|
import { fileURLToPath } from "node:url";
|
|
40
43
|
import { Worker } from "node:worker_threads";
|
|
41
44
|
import { gunzipSync, gzipSync } from "node:zlib";
|
|
42
45
|
|
|
43
|
-
// dist/clients/json-cache-read.js
|
|
44
|
-
import * as fs from "node:fs";
|
|
45
|
-
import { promises as fsPromises } from "node:fs";
|
|
46
|
-
function readJsonCache(path3, validate, onError) {
|
|
47
|
-
try {
|
|
48
|
-
const parsed = JSON.parse(fs.readFileSync(path3, "utf-8"));
|
|
49
|
-
return validate(parsed);
|
|
50
|
-
} catch (err) {
|
|
51
|
-
try {
|
|
52
|
-
onError?.(err);
|
|
53
|
-
} catch {
|
|
54
|
-
}
|
|
55
|
-
return void 0;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
async function readJsonCacheAsync(path3, validate, onError) {
|
|
59
|
-
try {
|
|
60
|
-
const raw = await fsPromises.readFile(path3, "utf-8");
|
|
61
|
-
const parsed = JSON.parse(raw);
|
|
62
|
-
return validate(parsed);
|
|
63
|
-
} catch (err) {
|
|
64
|
-
try {
|
|
65
|
-
onError?.(err);
|
|
66
|
-
} catch {
|
|
67
|
-
}
|
|
68
|
-
return void 0;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
46
|
// dist/clients/project-conventions.js
|
|
73
|
-
import * as
|
|
47
|
+
import * as fs from "node:fs";
|
|
74
48
|
import * as path from "node:path";
|
|
75
49
|
function readPackageJson(cwd) {
|
|
76
50
|
const pkgPath = path.join(cwd, "package.json");
|
|
77
51
|
try {
|
|
78
|
-
const raw =
|
|
52
|
+
const raw = fs.readFileSync(pkgPath, "utf-8");
|
|
79
53
|
return JSON.parse(raw);
|
|
80
54
|
} catch {
|
|
81
55
|
return void 0;
|
|
@@ -88,7 +62,7 @@ function hasDep(pkg, name) {
|
|
|
88
62
|
}
|
|
89
63
|
function fileExists(cwd, ...segments) {
|
|
90
64
|
try {
|
|
91
|
-
return
|
|
65
|
+
return fs.existsSync(path.join(cwd, ...segments));
|
|
92
66
|
} catch {
|
|
93
67
|
return false;
|
|
94
68
|
}
|
|
@@ -96,7 +70,7 @@ function fileExists(cwd, ...segments) {
|
|
|
96
70
|
function dirExists(cwd, ...segments) {
|
|
97
71
|
try {
|
|
98
72
|
const target = path.join(cwd, ...segments);
|
|
99
|
-
const stat =
|
|
73
|
+
const stat = fs.statSync(target);
|
|
100
74
|
return stat.isDirectory();
|
|
101
75
|
} catch {
|
|
102
76
|
return false;
|
|
@@ -186,7 +160,7 @@ function summarizeAgentDocs(cwd) {
|
|
|
186
160
|
for (const candidate of AGENT_DOC_CANDIDATES) {
|
|
187
161
|
const abs = path.join(cwd, candidate);
|
|
188
162
|
try {
|
|
189
|
-
const raw =
|
|
163
|
+
const raw = fs.readFileSync(abs, "utf-8");
|
|
190
164
|
const lineCount = raw.split(/\r?\n/).length;
|
|
191
165
|
docs.push({ filePath: candidate, lineCount });
|
|
192
166
|
} catch {
|
|
@@ -197,7 +171,7 @@ function summarizeAgentDocs(cwd) {
|
|
|
197
171
|
function detectProjectConventions(cwd) {
|
|
198
172
|
let cwdExists = false;
|
|
199
173
|
try {
|
|
200
|
-
cwdExists =
|
|
174
|
+
cwdExists = fs.statSync(cwd).isDirectory();
|
|
201
175
|
} catch {
|
|
202
176
|
cwdExists = false;
|
|
203
177
|
}
|
|
@@ -414,13 +388,13 @@ function _projectSnapshotParseCacheRetainsWordIndexForTests() {
|
|
|
414
388
|
function resolveSnapshotBodyPath(cwd) {
|
|
415
389
|
const gzPath = getProjectSnapshotPath(cwd);
|
|
416
390
|
try {
|
|
417
|
-
const stat =
|
|
391
|
+
const stat = fs2.statSync(gzPath);
|
|
418
392
|
return { path: gzPath, gz: true, mtimeMs: stat.mtimeMs, size: stat.size };
|
|
419
393
|
} catch {
|
|
420
394
|
}
|
|
421
395
|
const legacyPath = getProjectSnapshotLegacyPath(cwd);
|
|
422
396
|
try {
|
|
423
|
-
const stat =
|
|
397
|
+
const stat = fs2.statSync(legacyPath);
|
|
424
398
|
return {
|
|
425
399
|
path: legacyPath,
|
|
426
400
|
gz: false,
|
|
@@ -444,13 +418,13 @@ function readSnapshotBody(bodyPath, gz) {
|
|
|
444
418
|
const snapshot = readJsonCache(bodyPath, (parsed) => parseSnapshot(parsed) ?? void 0) ?? null;
|
|
445
419
|
let rawBytes = 0;
|
|
446
420
|
try {
|
|
447
|
-
rawBytes =
|
|
421
|
+
rawBytes = fs2.statSync(bodyPath).size;
|
|
448
422
|
} catch {
|
|
449
423
|
}
|
|
450
424
|
return { snapshot, rawBytes };
|
|
451
425
|
}
|
|
452
426
|
try {
|
|
453
|
-
const json = gunzipSync(
|
|
427
|
+
const json = gunzipSync(fs2.readFileSync(bodyPath)).toString("utf-8");
|
|
454
428
|
const snapshot = parseSnapshot(JSON.parse(json)) ?? null;
|
|
455
429
|
return { snapshot, rawBytes: Buffer.byteLength(json) };
|
|
456
430
|
} catch (err) {
|
|
@@ -606,7 +580,7 @@ function parseExportsAndRulesOnly(json) {
|
|
|
606
580
|
}
|
|
607
581
|
function readSnapshotExportsAndRulesBody(bodyPath, gz) {
|
|
608
582
|
try {
|
|
609
|
-
const json = gz ? gunzipSync(
|
|
583
|
+
const json = gz ? gunzipSync(fs2.readFileSync(bodyPath)).toString("utf-8") : fs2.readFileSync(bodyPath, "utf-8");
|
|
610
584
|
return parseExportsAndRulesOnly(json);
|
|
611
585
|
} catch (err) {
|
|
612
586
|
logLatency({
|
|
@@ -886,7 +860,7 @@ function reconcileAuthoritativeAfterWrite(pending, rawBytes) {
|
|
|
886
860
|
return;
|
|
887
861
|
if (pending.snapshot.wordIndex) {
|
|
888
862
|
try {
|
|
889
|
-
const stat =
|
|
863
|
+
const stat = fs2.statSync(pending.gzPath);
|
|
890
864
|
cacheParsedSnapshot(pending.gzPath, {
|
|
891
865
|
mtimeMs: stat.mtimeMs,
|
|
892
866
|
size: stat.size,
|
|
@@ -916,7 +890,7 @@ function reconcileAuthoritativeAfterWrite(pending, rawBytes) {
|
|
|
916
890
|
return;
|
|
917
891
|
}
|
|
918
892
|
try {
|
|
919
|
-
const stat =
|
|
893
|
+
const stat = fs2.statSync(pending.gzPath);
|
|
920
894
|
entry.knownMtime = stat.mtimeMs;
|
|
921
895
|
entry.knownSize = stat.size;
|
|
922
896
|
} catch {
|
|
@@ -959,7 +933,7 @@ function withSnapshotCacheLock(gzPath, purpose, op) {
|
|
|
959
933
|
function promoteSnapshotBody(pending, body, record) {
|
|
960
934
|
const dropStage = () => {
|
|
961
935
|
if ("stagePath" in body)
|
|
962
|
-
|
|
936
|
+
fs2.rmSync(body.stagePath, { force: true });
|
|
963
937
|
};
|
|
964
938
|
const locked = withSnapshotCacheLock(pending.gzPath, "body promotion", () => {
|
|
965
939
|
const onDisk = readProjectSnapshotMeta(pending.cwd);
|
|
@@ -968,10 +942,10 @@ function promoteSnapshotBody(pending, body, record) {
|
|
|
968
942
|
return onDisk.seq;
|
|
969
943
|
}
|
|
970
944
|
if ("stagePath" in body)
|
|
971
|
-
|
|
945
|
+
fs2.renameSync(body.stagePath, pending.gzPath);
|
|
972
946
|
else
|
|
973
947
|
writeFileAtomic(pending.gzPath, body.gzip, { bestEffort: false });
|
|
974
|
-
|
|
948
|
+
fs2.rmSync(pending.legacyPath, { force: true });
|
|
975
949
|
return finalizeProjectSnapshotMeta(pending, record);
|
|
976
950
|
});
|
|
977
951
|
if (!locked.held) {
|
|
@@ -1072,7 +1046,7 @@ function writeSnapshotBodyOnMainThread(pending, reason) {
|
|
|
1072
1046
|
}
|
|
1073
1047
|
const writeStarted = performance.now();
|
|
1074
1048
|
const gzip = gzipSync(bytes);
|
|
1075
|
-
|
|
1049
|
+
fs2.mkdirSync(path2.dirname(pending.gzPath), { recursive: true });
|
|
1076
1050
|
const promoted = promoteSnapshotBody(pending, { gzip }, {
|
|
1077
1051
|
fingerprint,
|
|
1078
1052
|
generatedAt: pending.snapshot.generatedAt,
|
|
@@ -1184,7 +1158,7 @@ function handleSnapshotWorkerResult(result) {
|
|
|
1184
1158
|
});
|
|
1185
1159
|
completeSnapshotPersist(pending);
|
|
1186
1160
|
} catch (err) {
|
|
1187
|
-
|
|
1161
|
+
fs2.rm(pending.stagePath, { force: true }, () => {
|
|
1188
1162
|
});
|
|
1189
1163
|
dispatchMainThreadWriteThroughSeam(pending, err instanceof Error ? err.message : String(err));
|
|
1190
1164
|
}
|
|
@@ -1256,7 +1230,7 @@ function resolveSnapshotPersistWorkerPath() {
|
|
|
1256
1230
|
for (const url of candidates) {
|
|
1257
1231
|
try {
|
|
1258
1232
|
const resolved = fileURLToPath(url);
|
|
1259
|
-
if (
|
|
1233
|
+
if (fs2.existsSync(resolved))
|
|
1260
1234
|
return resolved;
|
|
1261
1235
|
} catch {
|
|
1262
1236
|
}
|
|
@@ -1320,13 +1294,13 @@ function sweepStaleSnapshotStageFiles(cacheDir) {
|
|
|
1320
1294
|
if (_sweptSnapshotStageDirs.has(cacheDir))
|
|
1321
1295
|
return;
|
|
1322
1296
|
_sweptSnapshotStageDirs.add(cacheDir);
|
|
1323
|
-
|
|
1297
|
+
fs2.readdir(cacheDir, (err, entries) => {
|
|
1324
1298
|
if (err)
|
|
1325
1299
|
return;
|
|
1326
1300
|
for (const entry of entries) {
|
|
1327
1301
|
if (!isStaleStageFile(entry, "project-snapshot.json.gz.stage-"))
|
|
1328
1302
|
continue;
|
|
1329
|
-
|
|
1303
|
+
fs2.rm(path2.join(cacheDir, entry), { force: true }, () => {
|
|
1330
1304
|
});
|
|
1331
1305
|
}
|
|
1332
1306
|
});
|
|
@@ -1367,7 +1341,7 @@ function saveProjectSnapshot(cwd, snapshot) {
|
|
|
1367
1341
|
const metaPath = getProjectSnapshotMetaPath(cwd);
|
|
1368
1342
|
const cacheDir = path2.dirname(gzPath);
|
|
1369
1343
|
const key = normalizeMapKey(cwd);
|
|
1370
|
-
|
|
1344
|
+
fs2.mkdirSync(cacheDir, { recursive: true });
|
|
1371
1345
|
const baselines = snapshotPersistBaselinesFor(cwd, key);
|
|
1372
1346
|
const priorPersist = baselines.durable;
|
|
1373
1347
|
logSnapshotPersistDecision({
|
|
@@ -1598,8 +1572,6 @@ function saveRuntimeProjectSnapshot(args) {
|
|
|
1598
1572
|
}
|
|
1599
1573
|
|
|
1600
1574
|
export {
|
|
1601
|
-
readJsonCache,
|
|
1602
|
-
readJsonCacheAsync,
|
|
1603
1575
|
readWorkerHeapStatistics,
|
|
1604
1576
|
notePersistWorkerMessageFault,
|
|
1605
1577
|
PROJECT_SNAPSHOT_VERSION,
|
|
@@ -1,76 +1,75 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
nestedWorktreeOffsets
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-S6MCMD27.js";
|
|
5
5
|
import {
|
|
6
6
|
parseReportJson,
|
|
7
7
|
runReportScan
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-INBK3HIT.js";
|
|
9
|
+
import "./chunk-SDYLT45T.js";
|
|
10
10
|
import {
|
|
11
11
|
createAvailabilityChecker,
|
|
12
12
|
findManagedNodeToolBinary,
|
|
13
13
|
resolveAvailableOrInstall
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-E3PNZDPH.js";
|
|
25
|
-
import "./chunk-PK3GDU4M.js";
|
|
26
|
-
import "./chunk-6JLNZ6DP.js";
|
|
14
|
+
} from "./chunk-PKWEBMCA.js";
|
|
15
|
+
import "./chunk-AXAR5ZW2.js";
|
|
16
|
+
import "./chunk-7WKVCZI4.js";
|
|
17
|
+
import "./chunk-2H5GHZKC.js";
|
|
18
|
+
import "./chunk-QV3JPCMK.js";
|
|
19
|
+
import "./chunk-NNEQOC3U.js";
|
|
20
|
+
import "./chunk-CXQYK4YT.js";
|
|
21
|
+
import "./chunk-ZQSSO7LO.js";
|
|
22
|
+
import "./chunk-AZG5UJYY.js";
|
|
23
|
+
import "./chunk-P5MSLVUW.js";
|
|
27
24
|
import {
|
|
28
25
|
getJscpdMaxEntriesDerived
|
|
29
|
-
} from "./chunk-
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
26
|
+
} from "./chunk-ADYQRETD.js";
|
|
27
|
+
import "./chunk-DI4AZZNY.js";
|
|
28
|
+
import "./chunk-2APSZHHI.js";
|
|
32
29
|
import "./chunk-2BEMIWEW.js";
|
|
33
30
|
import "./chunk-IJYGIDF4.js";
|
|
34
|
-
import "./chunk-
|
|
35
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-B2OXE4AH.js";
|
|
32
|
+
import "./chunk-LVLPA32Q.js";
|
|
36
33
|
import {
|
|
37
34
|
findNodeToolBinary
|
|
38
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-LGH2HHZG.js";
|
|
39
36
|
import {
|
|
40
37
|
getIsolatedNpxSpawnOptions
|
|
41
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-KXGTLAUW.js";
|
|
39
|
+
import "./chunk-TQWRH25U.js";
|
|
42
40
|
import "./chunk-UYXV5NIS.js";
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
46
|
-
import "./chunk-
|
|
41
|
+
import "./chunk-KNSOA43J.js";
|
|
42
|
+
import "./chunk-6GLMMGCX.js";
|
|
43
|
+
import "./chunk-XSC3BCN3.js";
|
|
44
|
+
import "./chunk-27JQHK7Y.js";
|
|
45
|
+
import "./chunk-R4L7KZ7R.js";
|
|
47
46
|
import {
|
|
48
47
|
shouldRecurseIntoDir,
|
|
49
48
|
walkTreeStackSync
|
|
50
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-74AMPWNC.js";
|
|
51
50
|
import {
|
|
52
51
|
getExcludedDirGlobs,
|
|
53
52
|
getProjectIgnoreGlobs,
|
|
54
53
|
getProjectIgnoreMatcher,
|
|
55
54
|
safeSpawnAsync
|
|
56
|
-
} from "./chunk-
|
|
57
|
-
import "./chunk-
|
|
55
|
+
} from "./chunk-3PO4YYOX.js";
|
|
56
|
+
import "./chunk-5JB4WENL.js";
|
|
58
57
|
import "./chunk-QYF5S6P6.js";
|
|
59
58
|
import {
|
|
60
59
|
isJstsFactFile
|
|
61
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-CQY2HEH7.js";
|
|
62
61
|
import {
|
|
63
62
|
isDeclarationFile
|
|
64
|
-
} from "./chunk-
|
|
65
|
-
import "./chunk-
|
|
63
|
+
} from "./chunk-PQF6YGYB.js";
|
|
64
|
+
import "./chunk-LOEJFTF2.js";
|
|
66
65
|
import "./chunk-CIA7X2PZ.js";
|
|
67
|
-
import "./chunk-
|
|
66
|
+
import "./chunk-W26QZ3OM.js";
|
|
68
67
|
import {
|
|
69
68
|
createSubsystemLogger,
|
|
70
69
|
incrementDegradationCount
|
|
71
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-NHA5K226.js";
|
|
72
71
|
import "./chunk-S26LC76R.js";
|
|
73
|
-
import "./chunk-
|
|
72
|
+
import "./chunk-7CLWC2UH.js";
|
|
74
73
|
import "./chunk-LJDODBBZ.js";
|
|
75
74
|
import {
|
|
76
75
|
isAtOrAboveHomeDir,
|
|
@@ -7,28 +7,27 @@ import {
|
|
|
7
7
|
extractForwardImportPaths,
|
|
8
8
|
extractForwardImports,
|
|
9
9
|
sweepInlineBlockerFreshness
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-6GWCYEP7.js";
|
|
10
|
+
} from "./chunk-ARTYCUGF.js";
|
|
11
|
+
import "./chunk-JGUDT5KD.js";
|
|
12
|
+
import "./chunk-CXQYK4YT.js";
|
|
13
|
+
import "./chunk-37IDWT6O.js";
|
|
15
14
|
import "./chunk-Z54ZSOBZ.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-AYDE7RFV.js";
|
|
15
|
+
import "./chunk-ZQSSO7LO.js";
|
|
16
|
+
import "./chunk-DI4AZZNY.js";
|
|
19
17
|
import "./chunk-ZRQMENT4.js";
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-KNSOA43J.js";
|
|
19
|
+
import "./chunk-6GLMMGCX.js";
|
|
20
|
+
import "./chunk-3PO4YYOX.js";
|
|
21
|
+
import "./chunk-CQY2HEH7.js";
|
|
22
|
+
import "./chunk-PQF6YGYB.js";
|
|
23
|
+
import "./chunk-LOEJFTF2.js";
|
|
25
24
|
import "./chunk-CIA7X2PZ.js";
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-W26QZ3OM.js";
|
|
26
|
+
import "./chunk-NHA5K226.js";
|
|
28
27
|
import {
|
|
29
28
|
MTIME_DRIFT_TOLERANCE_MS
|
|
30
29
|
} from "./chunk-S26LC76R.js";
|
|
31
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-7CLWC2UH.js";
|
|
32
31
|
import "./chunk-LJDODBBZ.js";
|
|
33
32
|
import "./chunk-WLD6BGON.js";
|
|
34
33
|
import "./chunk-NXL4FFQQ.js";
|
|
@@ -3,38 +3,39 @@ import {
|
|
|
3
3
|
HardFailureStamps
|
|
4
4
|
} from "./chunk-7U2IDNXN.js";
|
|
5
5
|
import {
|
|
6
|
+
escapeFnmatchLiteral,
|
|
6
7
|
getScratchTreeFnmatchPatterns
|
|
7
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-S6MCMD27.js";
|
|
8
9
|
import {
|
|
9
10
|
firstOutputLine,
|
|
10
11
|
formatToolFailure,
|
|
11
12
|
spawnFailedWithNoOutput
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import {
|
|
14
|
-
extractTomlTableSection,
|
|
15
|
-
parseTomlStringArray
|
|
16
|
-
} from "./chunk-SUIZOCSY.js";
|
|
13
|
+
} from "./chunk-SDYLT45T.js";
|
|
17
14
|
import {
|
|
18
15
|
findLocalBinsAt
|
|
19
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-LGH2HHZG.js";
|
|
20
17
|
import {
|
|
21
18
|
probeToolAsync
|
|
22
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-KXGTLAUW.js";
|
|
20
|
+
import {
|
|
21
|
+
extractTomlTableSection,
|
|
22
|
+
parseTomlStringArray
|
|
23
|
+
} from "./chunk-KNSOA43J.js";
|
|
23
24
|
import {
|
|
24
25
|
classifyProbeFailure,
|
|
25
26
|
createAvailabilityLatch,
|
|
26
27
|
logAvailabilityDecision,
|
|
27
28
|
startHostStallSampler
|
|
28
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-6GLMMGCX.js";
|
|
29
30
|
import {
|
|
30
31
|
VENV_BIN_DIRS,
|
|
31
32
|
listNestedLinkedWorktreeRoots,
|
|
32
33
|
safeSpawnAsync
|
|
33
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-3PO4YYOX.js";
|
|
34
35
|
import {
|
|
35
36
|
createSubsystemLogger,
|
|
36
37
|
incrementDegradationCount
|
|
37
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-NHA5K226.js";
|
|
38
39
|
import {
|
|
39
40
|
findNearestMarkerRoot
|
|
40
41
|
} from "./chunk-WLD6BGON.js";
|
|
@@ -54,11 +55,7 @@ function emptyResult(language) {
|
|
|
54
55
|
};
|
|
55
56
|
}
|
|
56
57
|
var ANALYSIS_TIMEOUT_MS = 3e4;
|
|
57
|
-
var
|
|
58
|
-
var VULTURE_EXCLUDES = [
|
|
59
|
-
...getScratchTreeFnmatchPatterns(),
|
|
60
|
-
...VULTURE_PYTHON_ONLY_EXCLUDES
|
|
61
|
-
];
|
|
58
|
+
var VULTURE_PYTHON_ONLY_DIRS = ["site-packages", ".eggs"];
|
|
62
59
|
var VULTURE_IGNORE_DECORATORS = [
|
|
63
60
|
"@pytest.fixture",
|
|
64
61
|
"@pytest.fixture(*",
|
|
@@ -95,9 +92,6 @@ function parseVultureOutput(output, root) {
|
|
|
95
92
|
}
|
|
96
93
|
return issues;
|
|
97
94
|
}
|
|
98
|
-
function escapeFnmatchLiteral(text) {
|
|
99
|
-
return text.replace(/[*?[]/g, (ch) => `[${ch}]`);
|
|
100
|
-
}
|
|
101
95
|
var PythonDeadCodeClient = class {
|
|
102
96
|
id = "python";
|
|
103
97
|
language = "Python";
|
|
@@ -375,7 +369,10 @@ var PythonDeadCodeClient = class {
|
|
|
375
369
|
const worktrees = this.worktreeExcludes(root);
|
|
376
370
|
let exclude;
|
|
377
371
|
if (config === null) {
|
|
378
|
-
exclude = [
|
|
372
|
+
exclude = [
|
|
373
|
+
...getScratchTreeFnmatchPatterns(root, VULTURE_PYTHON_ONLY_DIRS),
|
|
374
|
+
...worktrees.patterns
|
|
375
|
+
];
|
|
379
376
|
} else if (worktrees.patterns.length > 0) {
|
|
380
377
|
if (config.exclude === null) {
|
|
381
378
|
incrementDegradationCount({
|