@herbertgao/pi-extensions 2026.11.11 → 2026.11.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/README.md +10 -10
- package/THIRD_PARTY_NOTICES.md +3 -3
- package/node_modules/@herbertgao/pi-cc-extensions/CHANGELOG.md +10 -0
- package/node_modules/@herbertgao/pi-cc-extensions/README.en.md +3 -4
- package/node_modules/@herbertgao/pi-cc-extensions/README.md +3 -4
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/feature/agent-summary/core.ts +22 -15
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/feature/agent-summary/index.ts +22 -8
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/feature/context.ts +0 -29
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/feature/shell/prompt-editor.ts +5 -2
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/compact-mode.ts +60 -39
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/mouse/interaction.ts +3 -2
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/codemode.ts +0 -40
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/diff/diff-parse.ts +4 -1
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/grouping.ts +21 -3
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/utils/format.ts +15 -0
- package/node_modules/@herbertgao/pi-cc-extensions/package.json +4 -4
- package/node_modules/@herbertgao/pi-impeccable/CHANGELOG.md +6 -0
- package/node_modules/@herbertgao/pi-impeccable/README.md +2 -2
- package/node_modules/@herbertgao/pi-impeccable/package.json +4 -4
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/SKILL.md +2 -2
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/adapt.md +1 -1
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/animate.md +17 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/critique-rubric.md +496 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/critique.md +12 -504
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/degraded/motion-reviewer.md +29 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/hooks.md +3 -3
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/new-work-comp.md +24 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/new-work-world.md +20 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/new-work.md +5 -34
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/typeset.md +6 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/VERSION +1 -1
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/engine-checksums.txt +5 -5
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/live-browser.js +17 -18
- package/node_modules/pi-antigravity/README.md +58 -9
- package/node_modules/pi-antigravity/docs/reader-guarantees.md +35 -0
- package/node_modules/pi-antigravity/package.json +15 -6
- package/node_modules/pi-antigravity/src/client/client.ts +63 -14
- package/node_modules/pi-antigravity/src/client/enterprise.ts +150 -0
- package/node_modules/pi-antigravity/src/client/index.ts +1 -0
- package/node_modules/pi-antigravity/src/diagnostics/diagnostics.ts +7 -0
- package/node_modules/pi-antigravity/src/features/generate-image.ts +56 -2
- package/node_modules/pi-antigravity/src/features/read-url-content.ts +124 -0
- package/node_modules/pi-antigravity/src/image/image.ts +16 -2
- package/node_modules/pi-antigravity/src/index.ts +145 -2
- package/node_modules/pi-antigravity/src/models/discovery.ts +3 -4
- package/node_modules/pi-antigravity/src/models/grouping.ts +39 -15
- package/node_modules/pi-antigravity/src/models/models.ts +126 -14
- package/node_modules/pi-antigravity/src/stream/stream.ts +189 -30
- package/node_modules/pi-antigravity/src/types/types.ts +30 -1
- package/node_modules/pi-antigravity/src/usage/usage.ts +58 -0
- package/node_modules/pi-antigravity/src/utils/address.ts +180 -0
- package/node_modules/pi-antigravity/src/utils/credits.ts +149 -0
- package/node_modules/pi-antigravity/src/utils/html.ts +31 -0
- package/node_modules/pi-antigravity/src/utils/index.ts +2 -0
- package/node_modules/pi-antigravity/src/utils/security.ts +172 -13
- package/node_modules/pi-antigravity/src/utils/text.ts +66 -0
- package/node_modules/pi-antigravity/src/utils/util.ts +5 -4
- package/node_modules/pi-antigravity/src/web-fetch/document.ts +83 -0
- package/node_modules/pi-antigravity/src/web-fetch/fences.ts +24 -0
- package/node_modules/pi-antigravity/src/web-fetch/header.ts +97 -0
- package/node_modules/pi-antigravity/src/web-fetch/index.ts +3 -0
- package/node_modules/pi-antigravity/src/web-fetch/inspect.ts +328 -0
- package/node_modules/pi-antigravity/src/web-fetch/limits.ts +4 -0
- package/node_modules/pi-antigravity/src/web-fetch/markdown.ts +744 -0
- package/node_modules/pi-antigravity/src/web-fetch/mdn.ts +164 -0
- package/node_modules/pi-antigravity/src/web-fetch/media.ts +11 -0
- package/node_modules/pi-antigravity/src/web-fetch/metadata.ts +9 -0
- package/node_modules/pi-antigravity/src/web-fetch/representation.ts +93 -0
- package/node_modules/pi-antigravity/src/web-fetch/save.ts +71 -0
- package/node_modules/pi-antigravity/src/web-fetch/sites.ts +138 -0
- package/node_modules/pi-antigravity/src/web-fetch/vendor.d.ts +9 -0
- package/node_modules/pi-antigravity/src/web-fetch/web-fetch.ts +957 -0
- package/node_modules/pi-antigravity/tsconfig.json +2 -2
- package/node_modules/pi-commandcode-provider/CHANGELOG.md +10 -0
- package/node_modules/pi-commandcode-provider/README.md +2 -2
- package/node_modules/pi-commandcode-provider/package.json +1 -1
- package/node_modules/pi-commandcode-provider/src/commandcode-catalog.ts +15 -9
- package/node_modules/pi-commandcode-provider/src/oauth.ts +69 -12
- package/node_modules/pi-lens/CHANGELOG-USER.md +6 -6
- package/node_modules/pi-lens/CHANGELOG.md +172 -0
- package/node_modules/pi-lens/README.md +103 -217
- package/node_modules/pi-lens/dist/{chunk-KXDQD34C.js → chunk-27JQHK7Y.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-W6VLB6LL.js → chunk-2APSZHHI.js} +61 -3
- package/node_modules/pi-lens/dist/{chunk-5EEWCJG7.js → chunk-2H5GHZKC.js} +8 -8
- package/node_modules/pi-lens/dist/{chunk-TS5EIWEF.js → chunk-2H7NFZ4Q.js} +11 -11
- package/node_modules/pi-lens/dist/{chunk-6GWCYEP7.js → chunk-37IDWT6O.js} +64 -16
- package/node_modules/pi-lens/dist/{chunk-OEPWTSUG.js → chunk-3PAS2ERX.js} +8 -8
- package/node_modules/pi-lens/dist/{chunk-ET3DSSFZ.js → chunk-3PO4YYOX.js} +9 -17
- package/node_modules/pi-lens/dist/{chunk-C6V2DSZZ.js → chunk-3QXFUP6T.js} +11 -11
- package/node_modules/pi-lens/dist/{chunk-HWMNTQBJ.js → chunk-3TSMQZG6.js} +32 -11
- package/node_modules/pi-lens/dist/{chunk-QY6J2FTK.js → chunk-4DAHGU3V.js} +15 -14
- package/node_modules/pi-lens/dist/{chunk-PCREZ4HJ.js → chunk-4IZZEN63.js} +33 -34
- package/node_modules/pi-lens/dist/{chunk-OYXD2MOM.js → chunk-5HBQL7DH.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-B4FAFEBP.js → chunk-5JB4WENL.js} +1 -1
- package/node_modules/pi-lens/dist/chunk-5YJXF2IS.js +56 -0
- package/node_modules/pi-lens/dist/{chunk-GHATCG2A.js → chunk-6CFSDLHE.js} +22 -18
- package/node_modules/pi-lens/dist/{chunk-FVQKX5KI.js → chunk-6E5QLMWI.js} +24 -22
- package/node_modules/pi-lens/dist/{chunk-AVBEPUCD.js → chunk-6GLMMGCX.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-YTXFNCVN.js → chunk-74AMPWNC.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-K2GV34T2.js → chunk-7CLWC2UH.js} +26 -37
- package/node_modules/pi-lens/dist/{chunk-MOEWCPMC.js → chunk-7DPXUPRF.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-7BEADGAZ.js → chunk-7U36VQL6.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-PPYUBO6Y.js → chunk-7WKVCZI4.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-ILC2B7IJ.js → chunk-7ZVTFLCC.js} +10 -10
- package/node_modules/pi-lens/dist/{chunk-IT7MFVGP.js → chunk-ADYQRETD.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-NCDH2JB7.js → chunk-ARTYCUGF.js} +25 -10
- package/node_modules/pi-lens/dist/{chunk-Z6WTLVUL.js → chunk-AXAR5ZW2.js} +225 -104
- package/node_modules/pi-lens/dist/{chunk-PK3GDU4M.js → chunk-AZG5UJYY.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-NRVWLTOY.js → chunk-B2OXE4AH.js} +60 -21
- package/node_modules/pi-lens/dist/{chunk-ORYQGVC3.js → chunk-B42AIWPJ.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-IC4L65U7.js → chunk-BBSDJTOV.js} +12 -13
- package/node_modules/pi-lens/dist/{chunk-HJWF7CGW.js → chunk-BKWFDWYM.js} +16 -16
- package/node_modules/pi-lens/dist/{chunk-D2ZYRI7M.js → chunk-C5PLBTNR.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-SRXYSLMW.js → chunk-CQY2HEH7.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-7424ANRU.js → chunk-CXQYK4YT.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-HYR25MV3.js → chunk-CZJGAOKL.js} +8 -7
- package/node_modules/pi-lens/dist/{chunk-DIIDMDZU.js → chunk-DCA2MXVQ.js} +11 -11
- package/node_modules/pi-lens/dist/{chunk-K2LD6YNH.js → chunk-DFKOA74L.js} +9 -9
- package/node_modules/pi-lens/dist/{chunk-AYDE7RFV.js → chunk-DI4AZZNY.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-6EXGCXM5.js → chunk-G53LBDNU.js} +99 -5
- package/node_modules/pi-lens/dist/chunk-GCSDF5IE.js +27 -0
- package/node_modules/pi-lens/dist/{chunk-5KLRCUDT.js → chunk-H5API74E.js} +6 -6
- package/node_modules/pi-lens/dist/chunk-HBX55MWO.js +27 -0
- package/node_modules/pi-lens/dist/{chunk-JRSS6KM4.js → chunk-HIJ4CHFF.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-3MHY4BQY.js → chunk-HIRBC72R.js} +4 -4
- package/node_modules/pi-lens/dist/{chunk-F7AMFFVK.js → chunk-HRLF35WL.js} +8 -8
- package/node_modules/pi-lens/dist/{chunk-HSTN27NR.js → chunk-I2FYOZNW.js} +9 -9
- package/node_modules/pi-lens/dist/{chunk-5FDUKJZO.js → chunk-I3NZVAMN.js} +9 -9
- package/node_modules/pi-lens/dist/{chunk-NZINZCHB.js → chunk-INBK3HIT.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-PXGVB2CY.js → chunk-J2ZB5MDS.js} +20 -18
- package/node_modules/pi-lens/dist/{chunk-HYDJUVOE.js → chunk-JGUDT5KD.js} +4 -4
- package/node_modules/pi-lens/dist/chunk-JOIKBUQN.js +88 -0
- package/node_modules/pi-lens/dist/{chunk-AZXTLZHE.js → chunk-K4Z7MK6T.js} +169 -165
- package/node_modules/pi-lens/dist/{chunk-WTSQKJAR.js → chunk-K7O6AHSJ.js} +10 -10
- package/node_modules/pi-lens/dist/{chunk-S6ZQFPOX.js → chunk-KNJH6WJQ.js} +6 -6
- package/node_modules/pi-lens/dist/{chunk-SUIZOCSY.js → chunk-KNSOA43J.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-3QMLB4TI.js → chunk-KXGTLAUW.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-OHEUOWYT.js → chunk-KZ732ZVW.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-G3LR6V6N.js → chunk-L6BDRYUK.js} +19 -17
- package/node_modules/pi-lens/dist/{chunk-OVPR3GQ6.js → chunk-LGH2HHZG.js} +24 -6
- package/node_modules/pi-lens/dist/{chunk-3R3Z54J7.js → chunk-LOEJFTF2.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-HGEE5LDW.js → chunk-LQQNFCQJ.js} +1 -1
- package/node_modules/pi-lens/dist/chunk-LVLPA32Q.js +810 -0
- package/node_modules/pi-lens/dist/chunk-M2YMBT5G.js +73 -0
- package/node_modules/pi-lens/dist/{chunk-Z2W5YJBW.js → chunk-MJRGPEQ5.js} +11 -11
- package/node_modules/pi-lens/dist/{chunk-3EIZMRXI.js → chunk-MOAVEPC4.js} +10 -10
- package/node_modules/pi-lens/dist/{chunk-TOOXNL6M.js → chunk-NGNBJIUO.js} +7 -7
- package/node_modules/pi-lens/dist/{chunk-AGEQRJ5A.js → chunk-NHA5K226.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-YLW26OHX.js → chunk-NNEQOC3U.js} +31 -59
- package/node_modules/pi-lens/dist/{chunk-ZWZD4TJ5.js → chunk-O2MHF7QM.js} +35 -36
- package/node_modules/pi-lens/dist/{chunk-PTJXMYRY.js → chunk-OLWGYBYT.js} +15 -16
- package/node_modules/pi-lens/dist/{chunk-JKAVKTMY.js → chunk-OZQQ3AIR.js} +17 -20
- package/node_modules/pi-lens/dist/{chunk-6JLNZ6DP.js → chunk-P5MSLVUW.js} +10 -10
- package/node_modules/pi-lens/dist/{chunk-OF2YGDUE.js → chunk-PFJLYRO3.js} +37 -38
- package/node_modules/pi-lens/dist/chunk-PKWEBMCA.js +2957 -0
- package/node_modules/pi-lens/dist/{chunk-JLMS7EMD.js → chunk-PPQHMSPH.js} +16 -15
- package/node_modules/pi-lens/dist/{chunk-6EIV3H7O.js → chunk-PQF6YGYB.js} +12 -5
- package/node_modules/pi-lens/dist/{chunk-VU2PRGRI.js → chunk-PQXUZYTQ.js} +4 -4
- package/node_modules/pi-lens/dist/{chunk-MV6ST2KT.js → chunk-Q7J3JYJ2.js} +13 -12
- package/node_modules/pi-lens/dist/{chunk-BMMRLJA4.js → chunk-QE5DJ7MX.js} +27 -10
- package/node_modules/pi-lens/dist/{chunk-IZ36G463.js → chunk-QE7BJQ6K.js} +7 -7
- package/node_modules/pi-lens/dist/{chunk-E5SSUV2A.js → chunk-QMWKSYWB.js} +4 -4
- package/node_modules/pi-lens/dist/{chunk-QJ4T73J5.js → chunk-QV3JPCMK.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-3PMLYGJN.js → chunk-R4L7KZ7R.js} +5 -5
- package/node_modules/pi-lens/dist/{chunk-7ZVEFWOE.js → chunk-RIH3UBK4.js} +10 -10
- package/node_modules/pi-lens/dist/{chunk-T5EGSBM2.js → chunk-RJ3APNIP.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-AAIVSSUU.js → chunk-S6MCMD27.js} +35 -12
- package/node_modules/pi-lens/dist/{chunk-SF7KSXB5.js → chunk-SCU62JLX.js} +6 -6
- package/node_modules/pi-lens/dist/{chunk-FDLGJFAE.js → chunk-SDYLT45T.js} +3 -3
- package/node_modules/pi-lens/dist/chunk-TFKN5EIR.js +27 -0
- package/node_modules/pi-lens/dist/{chunk-Y7XMKBFP.js → chunk-TKOFTLGB.js} +34 -26
- package/node_modules/pi-lens/dist/chunk-TQWRH25U.js +35 -0
- package/node_modules/pi-lens/dist/{chunk-DZSQXG66.js → chunk-TWEOJE3D.js} +277 -62
- package/node_modules/pi-lens/dist/{chunk-R67WQ5RY.js → chunk-UN72ZAJ5.js} +8 -8
- package/node_modules/pi-lens/dist/{chunk-AD7JDEI6.js → chunk-UNP6Y4JV.js} +16 -16
- package/node_modules/pi-lens/dist/{chunk-D6ANA6YU.js → chunk-VGRGW4UL.js} +63 -55
- package/node_modules/pi-lens/dist/{chunk-DFAY7JUN.js → chunk-VSQT6IHZ.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-7T64QA5D.js → chunk-VWEBZ2JV.js} +39 -38
- package/node_modules/pi-lens/dist/{chunk-HRQTYU2T.js → chunk-W26QZ3OM.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-2HWVG3IM.js → chunk-XDNWR7SG.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-75TVYCQW.js → chunk-XSC3BCN3.js} +5 -5
- package/node_modules/pi-lens/dist/{chunk-ME6MF2N2.js → chunk-YCR6ZYTE.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-LD7SXICE.js → chunk-ZI7YHV6I.js} +5 -5
- package/node_modules/pi-lens/dist/{chunk-E3PNZDPH.js → chunk-ZQSSO7LO.js} +33 -1
- package/node_modules/pi-lens/dist/{chunk-T6PPK3T6.js → chunk-ZULZS2I6.js} +385 -407
- package/node_modules/pi-lens/dist/index.js +6508 -5413
- package/node_modules/pi-lens/dist/mcp/analyze-cli.js +9 -9
- package/node_modules/pi-lens/dist/mcp/cli.js +39 -38
- package/node_modules/pi-lens/dist/mcp/server.js +602 -345
- package/node_modules/pi-lens/dist/mcp/worker.js +57 -58
- package/node_modules/pi-lens/dist/probes/installer.js +19 -17
- package/node_modules/pi-lens/docs/architecture.md +113 -0
- package/node_modules/pi-lens/docs/ast-grep_rules_catalog.md +2 -2
- package/node_modules/pi-lens/docs/ci.md +18 -4
- package/node_modules/pi-lens/docs/defect-shapes.md +41 -3
- package/node_modules/pi-lens/docs/dependencies.md +10 -10
- package/node_modules/pi-lens/docs/features.md +3 -3
- package/node_modules/pi-lens/docs/invariants/dispatch-runners.md +13 -1
- package/node_modules/pi-lens/docs/invariants/lsp-trust-exec.md +19 -0
- package/node_modules/pi-lens/docs/language-coverage.md +39 -0
- package/node_modules/pi-lens/docs/lsp-capability-matrix.md +10 -4
- package/node_modules/pi-lens/docs/lsp-idle-eviction.md +1 -1
- package/node_modules/pi-lens/docs/pi-lens-fixer.md +4 -0
- package/node_modules/pi-lens/docs/pi-lens-merge-policy.md +1 -1
- package/node_modules/pi-lens/docs/pi-lens-reviewer.md +4 -5
- package/node_modules/pi-lens/docs/pi-lens-subagent.md +5 -2
- package/node_modules/pi-lens/docs/prose-standard.md +112 -0
- package/node_modules/pi-lens/docs/servercapabilities.md +1 -1
- package/node_modules/pi-lens/docs/usage.md +50 -0
- package/node_modules/pi-lens/package.json +1 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/rule-tests/array-callback-return-js-test.yml +23 -0
- package/node_modules/pi-lens/rules/ast-grep-rules/rule-tests/array-callback-return-test.yml +23 -0
- package/node_modules/pi-lens/rules/ast-grep-rules/rule-tests/no-negation-in-equality-check-js-test.yml +8 -0
- package/node_modules/pi-lens/rules/ast-grep-rules/rule-tests/no-negation-in-equality-check-test.yml +8 -0
- package/node_modules/pi-lens/rules/ast-grep-rules/rule-tests/unchecked-throwing-call-js-test.yml +16 -0
- package/node_modules/pi-lens/rules/ast-grep-rules/rule-tests/unchecked-throwing-call-test.yml +16 -0
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/array-callback-return-js.yml +8 -0
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/array-callback-return.yml +8 -0
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/no-negation-in-equality-check-js.yml +17 -5
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/no-negation-in-equality-check.yml +17 -5
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/unchecked-throwing-call-js.yml +8 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/unchecked-throwing-call.yml +8 -1
- package/node_modules/pi-lens/rules/tree-sitter-queries/typescript/ts-react-antipatterns.yml +8 -0
- package/node_modules/pi-web-access/CHANGELOG.md +29 -0
- package/node_modules/pi-web-access/README.md +35 -15
- package/node_modules/pi-web-access/anysearch.ts +7 -3
- package/node_modules/pi-web-access/autom.ts +196 -0
- package/node_modules/pi-web-access/cloro.ts +254 -0
- package/node_modules/pi-web-access/curator-page.ts +7 -1
- package/node_modules/pi-web-access/curator-server.ts +3 -0
- package/node_modules/pi-web-access/dist/index.js +12931 -12111
- package/node_modules/pi-web-access/dist/mcp-cli.js +1188 -416
- package/node_modules/pi-web-access/domain-filter-normalization.ts +30 -0
- package/node_modules/pi-web-access/duckduckgo-rate-limit.ts +144 -34
- package/node_modules/pi-web-access/duckduckgo.ts +11 -3
- package/node_modules/pi-web-access/extract.ts +60 -4
- package/node_modules/pi-web-access/gemini-search.ts +25 -5
- package/node_modules/pi-web-access/index.ts +9 -1
- package/node_modules/pi-web-access/package.json +2 -2
- package/node_modules/pi-web-access/page-query.ts +12 -3
- package/node_modules/pi-web-access/specstream.ts +276 -0
- package/node_modules/pi-web-access/tool-activation.ts +21 -6
- package/node_modules/pi-web-access/utils.ts +4 -0
- package/node_modules/pi-web-access/video-extract.ts +2 -2
- package/node_modules/pi-web-access/web-tool-core.ts +24 -5
- package/node_modules/pi-web-access/youtube-extract.ts +2 -2
- package/package.json +10 -7
- package/node_modules/pi-lens/dist/chunk-3VWEZ6H2.js +0 -72
- package/node_modules/pi-lens/dist/chunk-7KWI5UHL.js +0 -28
- package/node_modules/pi-lens/dist/chunk-7M64NTAK.js +0 -38
- package/node_modules/pi-lens/dist/chunk-BEIPWPVR.js +0 -1037
- package/node_modules/pi-lens/dist/chunk-D7OEGXDX.js +0 -2417
- package/node_modules/pi-lens/dist/chunk-KUDUKKQE.js +0 -89
- package/node_modules/pi-lens/dist/chunk-TM3A3K7T.js +0 -28
- package/node_modules/pi-lens/dist/chunk-VD7MQFEV.js +0 -56
- package/node_modules/pi-lens/dist/chunk-YLHJWAQS.js +0 -256
- package/node_modules/pi-lens/dist/chunk-YULIERZW.js +0 -27
|
@@ -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";
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
} from "./chunk-3MED75HT.js";
|
|
5
5
|
import {
|
|
6
6
|
getProjectDataDir
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-3PO4YYOX.js";
|
|
8
8
|
import {
|
|
9
9
|
writeFileAtomic
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-W26QZ3OM.js";
|
|
11
11
|
import {
|
|
12
12
|
normalizeMapKey,
|
|
13
13
|
toProjectRelativePath
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
resolveOpengrepRulePack
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-AZG5UJYY.js";
|
|
5
5
|
import {
|
|
6
6
|
findLocalToolConfig
|
|
7
7
|
} from "./chunk-WLD6BGON.js";
|
|
@@ -12,18 +12,18 @@ import {
|
|
|
12
12
|
isStartupScanVerdictFresh,
|
|
13
13
|
resolveStartupScanContext,
|
|
14
14
|
resolveStartupScanContextAsync
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-KNJH6WJQ.js";
|
|
16
|
+
import "./chunk-ADYQRETD.js";
|
|
17
|
+
import "./chunk-74AMPWNC.js";
|
|
18
|
+
import "./chunk-3PO4YYOX.js";
|
|
19
19
|
import "./chunk-QYF5S6P6.js";
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-CQY2HEH7.js";
|
|
21
|
+
import "./chunk-PQF6YGYB.js";
|
|
22
|
+
import "./chunk-LOEJFTF2.js";
|
|
23
|
+
import "./chunk-W26QZ3OM.js";
|
|
24
|
+
import "./chunk-NHA5K226.js";
|
|
25
25
|
import "./chunk-S26LC76R.js";
|
|
26
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-7CLWC2UH.js";
|
|
27
27
|
import "./chunk-LJDODBBZ.js";
|
|
28
28
|
import "./chunk-WLD6BGON.js";
|
|
29
29
|
import "./chunk-NXL4FFQQ.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
loadPiLensProjectConfig
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-PQF6YGYB.js";
|
|
5
5
|
import {
|
|
6
6
|
lazyEnvNumber,
|
|
7
7
|
toPositiveFinite
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-7CLWC2UH.js";
|
|
9
9
|
|
|
10
10
|
// dist/clients/project-scale.js
|
|
11
11
|
var DEFAULT_PROJECT_SCALE_BASE = 2e3;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
buildModuleGraph
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-JGUDT5KD.js";
|
|
5
5
|
import {
|
|
6
6
|
aliasedImportTargets,
|
|
7
7
|
referencedProjectImportTarget
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-CXQYK4YT.js";
|
|
9
9
|
import {
|
|
10
10
|
getSharedTreeSitterClient,
|
|
11
11
|
loadWebTreeSitter,
|
|
12
12
|
logTreeSitterDiagnostic,
|
|
13
13
|
resolveTreeSitterLanguage,
|
|
14
14
|
wasmQueryInput
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-37IDWT6O.js";
|
|
16
16
|
import {
|
|
17
17
|
EXTENSION_TO_GRAMMAR,
|
|
18
18
|
KIND_TO_GRAMMAR
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-DI4AZZNY.js";
|
|
20
20
|
import {
|
|
21
21
|
toRunnerDisplayPath
|
|
22
22
|
} from "./chunk-ZRQMENT4.js";
|
|
@@ -24,30 +24,30 @@ import {
|
|
|
24
24
|
LSP_QUERY_MAX_FILE_LINES_MAX,
|
|
25
25
|
getGlobalLspQueryMaxFileLines,
|
|
26
26
|
loadPiLensGlobalConfig
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-3PO4YYOX.js";
|
|
28
28
|
import {
|
|
29
29
|
isFileKind
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-CQY2HEH7.js";
|
|
31
31
|
import {
|
|
32
32
|
isDeclarationFile
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-PQF6YGYB.js";
|
|
34
34
|
import {
|
|
35
35
|
hashContentBytes
|
|
36
36
|
} from "./chunk-CIA7X2PZ.js";
|
|
37
37
|
import {
|
|
38
38
|
HOOK_WALL_BUDGET_MS,
|
|
39
39
|
bounded
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-W26QZ3OM.js";
|
|
41
41
|
import {
|
|
42
42
|
incrementDegradationCount,
|
|
43
43
|
recordDegradationOnce
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-NHA5K226.js";
|
|
45
45
|
import {
|
|
46
46
|
freshnessFromMtime
|
|
47
47
|
} from "./chunk-S26LC76R.js";
|
|
48
48
|
import {
|
|
49
49
|
toPositiveFinite
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-7CLWC2UH.js";
|
|
51
51
|
import {
|
|
52
52
|
BoundedFifoMap,
|
|
53
53
|
BoundedLruCache,
|
|
@@ -1692,47 +1692,58 @@ var TreeSitterSymbolExtractor = class _TreeSitterSymbolExtractor {
|
|
|
1692
1692
|
let name;
|
|
1693
1693
|
let kind;
|
|
1694
1694
|
let params;
|
|
1695
|
+
let nameNode;
|
|
1695
1696
|
let defNode;
|
|
1696
1697
|
if (captures.funcName) {
|
|
1698
|
+
nameNode = captures.funcName.node;
|
|
1697
1699
|
name = captures.funcName.text;
|
|
1698
1700
|
kind = "function";
|
|
1699
1701
|
params = captures.funcParams?.text;
|
|
1700
1702
|
defNode = captures.funcDef?.node;
|
|
1701
1703
|
} else if (captures.arrowName) {
|
|
1704
|
+
nameNode = captures.arrowName.node;
|
|
1702
1705
|
name = captures.arrowName.text;
|
|
1703
1706
|
kind = "function";
|
|
1704
1707
|
params = captures.arrowParams?.text;
|
|
1705
1708
|
defNode = captures.arrowDef?.node;
|
|
1706
1709
|
} else if (captures.className) {
|
|
1710
|
+
nameNode = captures.className.node;
|
|
1707
1711
|
name = captures.className.text;
|
|
1708
1712
|
kind = "class";
|
|
1709
1713
|
defNode = captures.classDef?.node;
|
|
1710
1714
|
} else if (captures.methodName) {
|
|
1715
|
+
nameNode = captures.methodName.node;
|
|
1711
1716
|
name = captures.methodName.text;
|
|
1712
1717
|
kind = "method";
|
|
1713
1718
|
params = captures.methodParams?.text;
|
|
1714
1719
|
defNode = captures.methodDef?.node;
|
|
1715
1720
|
} else if (captures.interfaceName) {
|
|
1721
|
+
nameNode = captures.interfaceName.node;
|
|
1716
1722
|
name = captures.interfaceName.text;
|
|
1717
1723
|
kind = "interface";
|
|
1718
1724
|
defNode = captures.interfaceDef?.node;
|
|
1719
1725
|
} else if (captures.typeName) {
|
|
1726
|
+
nameNode = captures.typeName.node;
|
|
1720
1727
|
name = captures.typeName.text;
|
|
1721
1728
|
kind = "type";
|
|
1722
1729
|
defNode = captures.typeDef?.node;
|
|
1723
1730
|
} else if (captures.moduleName) {
|
|
1731
|
+
nameNode = captures.moduleName.node;
|
|
1724
1732
|
name = captures.moduleName.text;
|
|
1725
1733
|
kind = "class";
|
|
1726
1734
|
defNode = captures.moduleDef?.node;
|
|
1727
1735
|
} else if (captures.defName) {
|
|
1736
|
+
nameNode = captures.defName.node;
|
|
1728
1737
|
name = captures.defName.text;
|
|
1729
1738
|
kind = "type";
|
|
1730
1739
|
defNode = captures.defDef?.node;
|
|
1731
1740
|
} else if (captures.fieldName) {
|
|
1741
|
+
nameNode = captures.fieldName.node;
|
|
1732
1742
|
name = captures.fieldName.text;
|
|
1733
1743
|
kind = "property";
|
|
1734
1744
|
defNode = captures.fieldDef?.node;
|
|
1735
1745
|
} else if (captures.letName) {
|
|
1746
|
+
nameNode = captures.letName.node;
|
|
1736
1747
|
name = captures.letName.text;
|
|
1737
1748
|
kind = "variable";
|
|
1738
1749
|
defNode = captures.letDef?.node;
|
|
@@ -1754,6 +1765,10 @@ var TreeSitterSymbolExtractor = class _TreeSitterSymbolExtractor {
|
|
|
1754
1765
|
line: defNode.startPosition.row + 1,
|
|
1755
1766
|
endLine: defNode.endPosition.row + 1,
|
|
1756
1767
|
column: defNode.startPosition.column + 1,
|
|
1768
|
+
...nameNode ? {
|
|
1769
|
+
nameLine: nameNode.startPosition.row + 1,
|
|
1770
|
+
nameColumn: nameNode.startPosition.column + 1
|
|
1771
|
+
} : {},
|
|
1757
1772
|
signature,
|
|
1758
1773
|
isExported,
|
|
1759
1774
|
...local ? { local: true } : {},
|