@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
|
@@ -9,23 +9,24 @@ import {
|
|
|
9
9
|
getDeadCodeClients,
|
|
10
10
|
parseVultureOutput,
|
|
11
11
|
stableFindingKey
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-OZQQ3AIR.js";
|
|
13
13
|
import "./chunk-7U2IDNXN.js";
|
|
14
|
-
import "./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-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-S6MCMD27.js";
|
|
15
|
+
import "./chunk-SDYLT45T.js";
|
|
16
|
+
import "./chunk-2APSZHHI.js";
|
|
17
|
+
import "./chunk-LGH2HHZG.js";
|
|
18
|
+
import "./chunk-KXGTLAUW.js";
|
|
19
|
+
import "./chunk-UYXV5NIS.js";
|
|
20
|
+
import "./chunk-KNSOA43J.js";
|
|
21
|
+
import "./chunk-6GLMMGCX.js";
|
|
22
|
+
import "./chunk-3PO4YYOX.js";
|
|
23
|
+
import "./chunk-5JB4WENL.js";
|
|
24
|
+
import "./chunk-PQF6YGYB.js";
|
|
25
|
+
import "./chunk-LOEJFTF2.js";
|
|
26
|
+
import "./chunk-W26QZ3OM.js";
|
|
27
|
+
import "./chunk-NHA5K226.js";
|
|
27
28
|
import "./chunk-S26LC76R.js";
|
|
28
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-7CLWC2UH.js";
|
|
29
30
|
import "./chunk-LJDODBBZ.js";
|
|
30
31
|
import "./chunk-WLD6BGON.js";
|
|
31
32
|
import "./chunk-NXL4FFQQ.js";
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
findPiLensConfigMarkerInDir,
|
|
15
15
|
getPiLensGlobalConfigPath,
|
|
16
16
|
isResolvedGlobalConfigPath
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-LOEJFTF2.js";
|
|
18
18
|
import {
|
|
19
19
|
DEGRADATION_ENTRIES_PER_KIND,
|
|
20
20
|
GLOBAL_NON_FLAG_CONFIG_SECTIONS,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
readFlagConfigValue,
|
|
33
33
|
readToolConfig,
|
|
34
34
|
recordDegradationOnce
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-NHA5K226.js";
|
|
36
36
|
import {
|
|
37
37
|
CONFIG_SCHEMA_ANCHOR_KEY,
|
|
38
38
|
CONFIG_SCHEMA_ID,
|
|
@@ -41,9 +41,10 @@ import {
|
|
|
41
41
|
withConfigDiagnosticCode
|
|
42
42
|
} from "./chunk-S26LC76R.js";
|
|
43
43
|
import {
|
|
44
|
+
getProcessSingleton,
|
|
44
45
|
redactSecrets,
|
|
45
46
|
toPositiveFinite
|
|
46
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-7CLWC2UH.js";
|
|
47
48
|
import {
|
|
48
49
|
BoundedFifoMap,
|
|
49
50
|
BoundedLruCache,
|
|
@@ -381,8 +382,14 @@ var PathKeyedMap = class {
|
|
|
381
382
|
|
|
382
383
|
// dist/clients/spawn-abort-scope.js
|
|
383
384
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
384
|
-
var
|
|
385
|
-
var
|
|
385
|
+
var FAMILY = "spawn-abort-scope";
|
|
386
|
+
var VERSION = 1;
|
|
387
|
+
var scopes = getProcessSingleton(FAMILY, VERSION, () => ({
|
|
388
|
+
abort: new AsyncLocalStorage(),
|
|
389
|
+
cooldown: new AsyncLocalStorage()
|
|
390
|
+
}));
|
|
391
|
+
var spawnAbortScope = scopes.abort;
|
|
392
|
+
var spawnCooldownScope = scopes.cooldown;
|
|
386
393
|
|
|
387
394
|
// dist/clients/user-notify.js
|
|
388
395
|
var notifierGetter;
|
|
@@ -2,20 +2,20 @@ import { createRequire as __pilensCreateRequire } from "node:module"; const requ
|
|
|
2
2
|
import {
|
|
3
3
|
functionName,
|
|
4
4
|
measureFunction
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-C5PLBTNR.js";
|
|
6
6
|
import {
|
|
7
7
|
extractFactsFromTree
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-KZ732ZVW.js";
|
|
9
9
|
import {
|
|
10
10
|
findOwnerName
|
|
11
11
|
} from "./chunk-5W3R6LFT.js";
|
|
12
12
|
import {
|
|
13
13
|
firstChildOfType,
|
|
14
14
|
walk
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-37IDWT6O.js";
|
|
16
16
|
import {
|
|
17
17
|
isJstsFactFile
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-CQY2HEH7.js";
|
|
19
19
|
|
|
20
20
|
// dist/clients/dispatch/facts/function-facts.js
|
|
21
21
|
var BOUNDARY_PREFIXES = [
|
|
@@ -45,23 +45,24 @@ import {
|
|
|
45
45
|
snapshotWorkerEnabled,
|
|
46
46
|
terminateProjectSnapshotPersistWorkerForTests,
|
|
47
47
|
waitForProjectSnapshotPersistsForTests
|
|
48
|
-
} from "./chunk-
|
|
49
|
-
import "./chunk-
|
|
50
|
-
import "./chunk-
|
|
51
|
-
import "./chunk-
|
|
48
|
+
} from "./chunk-NNEQOC3U.js";
|
|
49
|
+
import "./chunk-P5MSLVUW.js";
|
|
50
|
+
import "./chunk-ADYQRETD.js";
|
|
51
|
+
import "./chunk-DI4AZZNY.js";
|
|
52
52
|
import "./chunk-2BEMIWEW.js";
|
|
53
53
|
import "./chunk-IJYGIDF4.js";
|
|
54
|
+
import "./chunk-TQWRH25U.js";
|
|
54
55
|
import "./chunk-UYXV5NIS.js";
|
|
55
|
-
import "./chunk-
|
|
56
|
-
import "./chunk-
|
|
56
|
+
import "./chunk-3PO4YYOX.js";
|
|
57
|
+
import "./chunk-5JB4WENL.js";
|
|
57
58
|
import "./chunk-QYF5S6P6.js";
|
|
58
|
-
import "./chunk-
|
|
59
|
-
import "./chunk-
|
|
60
|
-
import "./chunk-
|
|
61
|
-
import "./chunk-
|
|
62
|
-
import "./chunk-
|
|
59
|
+
import "./chunk-CQY2HEH7.js";
|
|
60
|
+
import "./chunk-PQF6YGYB.js";
|
|
61
|
+
import "./chunk-LOEJFTF2.js";
|
|
62
|
+
import "./chunk-W26QZ3OM.js";
|
|
63
|
+
import "./chunk-NHA5K226.js";
|
|
63
64
|
import "./chunk-S26LC76R.js";
|
|
64
|
-
import "./chunk-
|
|
65
|
+
import "./chunk-7CLWC2UH.js";
|
|
65
66
|
import "./chunk-LJDODBBZ.js";
|
|
66
67
|
import "./chunk-WLD6BGON.js";
|
|
67
68
|
import "./chunk-NXL4FFQQ.js";
|
|
@@ -9,13 +9,13 @@ import {
|
|
|
9
9
|
recordDegradationOnce,
|
|
10
10
|
resolveLensToolName,
|
|
11
11
|
translateGuidanceToolNames
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-NHA5K226.js";
|
|
13
13
|
import {
|
|
14
14
|
freshnessFromMtime
|
|
15
15
|
} from "./chunk-S26LC76R.js";
|
|
16
16
|
import {
|
|
17
17
|
logLatency
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-7CLWC2UH.js";
|
|
19
19
|
import {
|
|
20
20
|
normalizeMapKey,
|
|
21
21
|
toProjectRelativePath
|
|
@@ -407,11 +407,15 @@ function provenanceStamp(provenance) {
|
|
|
407
407
|
// dist/clients/runtime-context.js
|
|
408
408
|
var AUTOMATION_FRAMING = "[pi-lens automated check \u2014 not a user request] ";
|
|
409
409
|
var BLOCKER_REPEAT_HEADING = "Still unresolved (already reported on an earlier turn, not new):";
|
|
410
|
-
function blockerRepeatContent(blockers) {
|
|
411
|
-
return `${BLOCKER_REPEAT_HEADING}
|
|
410
|
+
function blockerRepeatContent(blockers, pointerOnly) {
|
|
411
|
+
return pointerOnly ? blockers : `${BLOCKER_REPEAT_HEADING}
|
|
412
412
|
|
|
413
413
|
${blockers}`;
|
|
414
414
|
}
|
|
415
|
+
var BLOCKER_CAPPED_MARK = "older blocker still open";
|
|
416
|
+
function cappedBlockerLine(displayPath) {
|
|
417
|
+
return `${displayPath}: ${BLOCKER_CAPPED_MARK} (already reported, not new). ${blockerRepeatPointer()}`;
|
|
418
|
+
}
|
|
415
419
|
function blockerRepeatPointer() {
|
|
416
420
|
const tool = resolveLensToolName("lens_diagnostics", "pi");
|
|
417
421
|
return `Every unresolved \u{1F534} blocker: ${tool} {source: "session", mode: "all", severity: "error"}`;
|
|
@@ -506,15 +510,27 @@ function consumeTurnEndFindings(cacheManager, cwd, runtime, sessionId, address,
|
|
|
506
510
|
return;
|
|
507
511
|
if (findings.data.repeat === true && !repeat.blockersLive)
|
|
508
512
|
return;
|
|
513
|
+
const staged = findings.data.content;
|
|
514
|
+
const current = validation.status === "current";
|
|
515
|
+
const onlyCappedLines = staged.split("\n\n").every((paragraph) => paragraph.includes(BLOCKER_CAPPED_MARK));
|
|
516
|
+
const lines = (content) => [
|
|
517
|
+
{ role: "user", content: `${AUTOMATION_FRAMING}${content}` }
|
|
518
|
+
];
|
|
519
|
+
if (Array.isArray(findings.data.blockerDeliveries))
|
|
520
|
+
for (const delivery of findings.data.blockerDeliveries)
|
|
521
|
+
runtime?.recordBlockerDelivery(delivery.filePath, delivery.shown, delivery.displayPath);
|
|
522
|
+
if (findings.data.repeat !== true)
|
|
523
|
+
return {
|
|
524
|
+
messages: onlyCappedLines ? lines(staged) : [turnEndMessage(staged, current, findings.data.provenance)]
|
|
525
|
+
};
|
|
526
|
+
const repeatBodies = Array.isArray(findings.data.repeatBodies) ? { repeatBodies: findings.data.repeatBodies } : {};
|
|
509
527
|
return {
|
|
510
|
-
messages: [
|
|
511
|
-
turnEndMessage(
|
|
528
|
+
messages: onlyCappedLines ? lines(staged) : [
|
|
529
|
+
turnEndMessage(staged.includes(BLOCKER_CAPPED_MARK) ? staged : `${staged}
|
|
512
530
|
|
|
513
|
-
${blockerRepeatPointer()}
|
|
531
|
+
${blockerRepeatPointer()}`, current, findings.data.provenance)
|
|
514
532
|
],
|
|
515
|
-
...
|
|
516
|
-
repeatBody: findings.data.content.slice(BLOCKER_REPEAT_HEADING.length + 2)
|
|
517
|
-
} : {}
|
|
533
|
+
...repeatBodies
|
|
518
534
|
};
|
|
519
535
|
}
|
|
520
536
|
function settleStagedTurnEnd(cacheManager, cwd, data) {
|
|
@@ -614,6 +630,7 @@ export {
|
|
|
614
630
|
gateFindingsByPathFreshness,
|
|
615
631
|
AUTOMATION_FRAMING,
|
|
616
632
|
blockerRepeatContent,
|
|
633
|
+
cappedBlockerLine,
|
|
617
634
|
peekTurnEndFindings,
|
|
618
635
|
consumeTurnEndFindings,
|
|
619
636
|
peekTestFindings,
|
|
@@ -4,30 +4,30 @@ import {
|
|
|
4
4
|
discoverManagedTool,
|
|
5
5
|
getManagedToolEnvironment,
|
|
6
6
|
resolveAvailableOrInstall
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-PKWEBMCA.js";
|
|
8
8
|
import {
|
|
9
9
|
mapWithConcurrency
|
|
10
10
|
} from "./chunk-XIMYZ3JA.js";
|
|
11
11
|
import {
|
|
12
12
|
findNodeToolBinary
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-LGH2HHZG.js";
|
|
14
14
|
import {
|
|
15
15
|
getIsolatedNpxSpawnOptions
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-KXGTLAUW.js";
|
|
17
17
|
import {
|
|
18
18
|
createAvailabilityLatch
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-6GLMMGCX.js";
|
|
20
20
|
import {
|
|
21
21
|
safeSpawnAsync
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-3PO4YYOX.js";
|
|
23
23
|
import {
|
|
24
24
|
isDeclarationFile
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-PQF6YGYB.js";
|
|
26
26
|
import {
|
|
27
27
|
compareOrdinal,
|
|
28
28
|
createSubsystemLogger,
|
|
29
29
|
recordDegradationOnce
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-NHA5K226.js";
|
|
31
31
|
import {
|
|
32
32
|
isFullyQualified,
|
|
33
33
|
isUnderDir
|
|
@@ -2,21 +2,21 @@ import { createRequire as __pilensCreateRequire } from "node:module"; const requ
|
|
|
2
2
|
import {
|
|
3
3
|
createAvailabilityProbeFlight,
|
|
4
4
|
probeToolAsync
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-KXGTLAUW.js";
|
|
6
6
|
import {
|
|
7
7
|
classifyProbeFailure,
|
|
8
8
|
createAvailabilityLatch,
|
|
9
9
|
logAvailabilityDecision,
|
|
10
10
|
startHostStallSampler
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-6GLMMGCX.js";
|
|
12
12
|
import {
|
|
13
13
|
createGenerationSource,
|
|
14
14
|
isUntrustedProjectPath,
|
|
15
15
|
recordProjectCommandRefusal
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-3PO4YYOX.js";
|
|
17
17
|
import {
|
|
18
18
|
createSingleFlight
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-5JB4WENL.js";
|
|
20
20
|
|
|
21
21
|
// dist/clients/dispatch/runners/utils/candidate-probe.js
|
|
22
22
|
import * as fs from "node:fs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
isTestMode
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-7CLWC2UH.js";
|
|
5
5
|
|
|
6
6
|
// dist/clients/scanner-temp-root.js
|
|
7
7
|
import * as os from "node:os";
|
|
@@ -3,23 +3,23 @@ import {
|
|
|
3
3
|
shouldRecurseIntoDir,
|
|
4
4
|
walkTreeRecursiveSync,
|
|
5
5
|
walkTreeStackAsync
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-74AMPWNC.js";
|
|
7
7
|
import {
|
|
8
8
|
getProjectIgnoreMatcher
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-3PO4YYOX.js";
|
|
10
10
|
import {
|
|
11
11
|
KIND_EXTENSIONS,
|
|
12
12
|
SPECIAL_FILENAMES,
|
|
13
13
|
isCodeKindFile
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-CQY2HEH7.js";
|
|
15
15
|
import {
|
|
16
16
|
classifyGeneratedOrArtifactDetailed,
|
|
17
17
|
isDeclarationFile
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-PQF6YGYB.js";
|
|
19
19
|
import {
|
|
20
20
|
logLatency,
|
|
21
21
|
toPositiveFinite
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-7CLWC2UH.js";
|
|
23
23
|
import {
|
|
24
24
|
BoundedLruCache,
|
|
25
25
|
normalizeEphemeralMapKey,
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
parseSymbolKey
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-7U36VQL6.js";
|
|
5
5
|
import "./chunk-3MED75HT.js";
|
|
6
6
|
import {
|
|
7
7
|
isBuildArtifact
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-R4L7KZ7R.js";
|
|
9
|
+
import "./chunk-74AMPWNC.js";
|
|
10
10
|
import {
|
|
11
11
|
getProjectDataDir
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-3PO4YYOX.js";
|
|
13
13
|
import "./chunk-QYF5S6P6.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-CQY2HEH7.js";
|
|
15
15
|
import {
|
|
16
16
|
detectFileRole
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-PQF6YGYB.js";
|
|
18
|
+
import "./chunk-LOEJFTF2.js";
|
|
19
19
|
import {
|
|
20
20
|
writeFileAtomic
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
import "./chunk-
|
|
21
|
+
} from "./chunk-W26QZ3OM.js";
|
|
22
|
+
import "./chunk-NHA5K226.js";
|
|
23
23
|
import "./chunk-S26LC76R.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-7CLWC2UH.js";
|
|
25
25
|
import "./chunk-LJDODBBZ.js";
|
|
26
26
|
import {
|
|
27
27
|
isExternalOrVendorFile,
|
|
@@ -20,10 +20,10 @@ import {
|
|
|
20
20
|
isHelmYamlTemplatePath,
|
|
21
21
|
isJstsFactFile,
|
|
22
22
|
isReadableSourceFile
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import "./chunk-
|
|
23
|
+
} from "./chunk-CQY2HEH7.js";
|
|
24
|
+
import "./chunk-LOEJFTF2.js";
|
|
25
25
|
import "./chunk-S26LC76R.js";
|
|
26
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-7CLWC2UH.js";
|
|
27
27
|
import "./chunk-WLD6BGON.js";
|
|
28
28
|
import "./chunk-NXL4FFQQ.js";
|
|
29
29
|
export {
|
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
EXCLUDED_DIRS,
|
|
4
|
-
canonicalDirectory,
|
|
5
4
|
getExcludedDirGlobs,
|
|
6
5
|
listNestedLinkedWorktreeRoots
|
|
7
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-3PO4YYOX.js";
|
|
8
7
|
import {
|
|
9
8
|
escapeRegExp
|
|
10
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-NHA5K226.js";
|
|
10
|
+
import {
|
|
11
|
+
realpathOrResolve,
|
|
12
|
+
relativeInside
|
|
13
|
+
} from "./chunk-WLD6BGON.js";
|
|
11
14
|
|
|
12
15
|
// dist/clients/scratch-tree-policy.js
|
|
13
|
-
import { relative } from "node:path";
|
|
16
|
+
import { relative, resolve } from "node:path";
|
|
14
17
|
function nestedWorktreeOffsets(cwd) {
|
|
15
|
-
const base =
|
|
18
|
+
const base = realpathOrResolve(cwd);
|
|
16
19
|
return listNestedLinkedWorktreeRoots(cwd).map((root) => relative(base, root));
|
|
17
20
|
}
|
|
18
21
|
function literalExcludedDirNames() {
|
|
@@ -24,8 +27,15 @@ function getScratchTreeGlobPatterns() {
|
|
|
24
27
|
function getScratchTreeDirNames() {
|
|
25
28
|
return literalExcludedDirNames();
|
|
26
29
|
}
|
|
27
|
-
function
|
|
28
|
-
return
|
|
30
|
+
function escapeFnmatchLiteral(text) {
|
|
31
|
+
return text.replace(/[*?[]/g, (ch) => `[${ch}]`);
|
|
32
|
+
}
|
|
33
|
+
function getScratchTreeFnmatchPatterns(root, extraDirNames = []) {
|
|
34
|
+
const prefix = escapeFnmatchLiteral(realpathOrResolve(root)).replace(/,/g, "?").replace(/[/\\]+$/, "");
|
|
35
|
+
return [...literalExcludedDirNames(), ...extraDirNames].flatMap((name) => [
|
|
36
|
+
`${prefix}/${name}/*`,
|
|
37
|
+
`${prefix}/*/${name}/*`
|
|
38
|
+
]);
|
|
29
39
|
}
|
|
30
40
|
var SECRETS_LANE_SCRATCH_DIR_NAMES = [
|
|
31
41
|
// pi-ecosystem / coding-agent data + cache directories.
|
|
@@ -74,23 +84,36 @@ var SECRETS_LANE_SCRATCH_DIR_NAMES = [
|
|
|
74
84
|
".venv",
|
|
75
85
|
"__pycache__"
|
|
76
86
|
];
|
|
77
|
-
function
|
|
87
|
+
function rootPathRegexSource(root) {
|
|
88
|
+
const segments = resolve(root).split(/[/\\]/);
|
|
89
|
+
while (segments.length > 1 && segments[segments.length - 1] === "") {
|
|
90
|
+
segments.pop();
|
|
91
|
+
}
|
|
92
|
+
return segments.map(escapeRegExp).join("[/\\\\]");
|
|
93
|
+
}
|
|
94
|
+
function getSecretsLaneAllowlistPaths(root) {
|
|
95
|
+
const anchor = rootPathRegexSource(root);
|
|
78
96
|
return SECRETS_LANE_SCRATCH_DIR_NAMES.map((name) => {
|
|
79
97
|
const escaped = escapeRegExp(name);
|
|
80
|
-
return
|
|
98
|
+
return `^${anchor}[/\\\\](?:.*[/\\\\])?${escaped}(?:[/\\\\].*)?$`;
|
|
81
99
|
});
|
|
82
100
|
}
|
|
83
|
-
function isUnderSecretsLaneScratchTree(
|
|
101
|
+
function isUnderSecretsLaneScratchTree(file, root) {
|
|
102
|
+
const absolute = resolve(root, file);
|
|
103
|
+
const rel = relativeInside(root, absolute) ?? relativeInside(realpathOrResolve(root), realpathOrResolve(absolute));
|
|
104
|
+
if (rel === void 0)
|
|
105
|
+
return false;
|
|
84
106
|
const names = new Set(SECRETS_LANE_SCRATCH_DIR_NAMES.map((n) => n.toLowerCase()));
|
|
85
|
-
|
|
86
|
-
return segments.some((segment) => names.has(segment.toLowerCase()));
|
|
107
|
+
return rel.split("/").filter(Boolean).some((segment) => names.has(segment.toLowerCase()));
|
|
87
108
|
}
|
|
88
109
|
|
|
89
110
|
export {
|
|
90
111
|
nestedWorktreeOffsets,
|
|
91
112
|
getScratchTreeGlobPatterns,
|
|
92
113
|
getScratchTreeDirNames,
|
|
114
|
+
escapeFnmatchLiteral,
|
|
93
115
|
getScratchTreeFnmatchPatterns,
|
|
116
|
+
rootPathRegexSource,
|
|
94
117
|
getSecretsLaneAllowlistPaths,
|
|
95
118
|
isUnderSecretsLaneScratchTree
|
|
96
119
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
getProjectDataDir
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-3PO4YYOX.js";
|
|
5
|
+
import "./chunk-PQF6YGYB.js";
|
|
6
|
+
import "./chunk-LOEJFTF2.js";
|
|
7
|
+
import "./chunk-W26QZ3OM.js";
|
|
8
|
+
import "./chunk-NHA5K226.js";
|
|
9
9
|
import "./chunk-S26LC76R.js";
|
|
10
10
|
import {
|
|
11
11
|
redactSecrets
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-7CLWC2UH.js";
|
|
13
13
|
import "./chunk-LJDODBBZ.js";
|
|
14
14
|
import "./chunk-WLD6BGON.js";
|
|
15
15
|
import "./chunk-NXL4FFQQ.js";
|
|
@@ -3,15 +3,15 @@ import {
|
|
|
3
3
|
faultResult,
|
|
4
4
|
faultSkip,
|
|
5
5
|
findingsResult
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-2APSZHHI.js";
|
|
7
7
|
import {
|
|
8
8
|
truncatedByOutputCap
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-W26QZ3OM.js";
|
|
10
10
|
import {
|
|
11
11
|
LEDGER_FIELD_MAX,
|
|
12
12
|
incrementDegradationCount,
|
|
13
13
|
truncateForLedger
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-NHA5K226.js";
|
|
15
15
|
|
|
16
16
|
// dist/clients/dispatch/runners/utils/spawn-outcome.js
|
|
17
17
|
function firstOutputLine(text, max = LEDGER_FIELD_MAX) {
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
importFactProvider,
|
|
4
|
+
importFactsApplyTo
|
|
5
|
+
} from "./chunk-HIRBC72R.js";
|
|
6
|
+
import "./chunk-KZ732ZVW.js";
|
|
7
|
+
import "./chunk-37IDWT6O.js";
|
|
8
|
+
import "./chunk-Z54ZSOBZ.js";
|
|
9
|
+
import "./chunk-ZQSSO7LO.js";
|
|
10
|
+
import "./chunk-DI4AZZNY.js";
|
|
11
|
+
import "./chunk-6GLMMGCX.js";
|
|
12
|
+
import "./chunk-3PO4YYOX.js";
|
|
13
|
+
import "./chunk-CQY2HEH7.js";
|
|
14
|
+
import "./chunk-PQF6YGYB.js";
|
|
15
|
+
import "./chunk-LOEJFTF2.js";
|
|
16
|
+
import "./chunk-CIA7X2PZ.js";
|
|
17
|
+
import "./chunk-W26QZ3OM.js";
|
|
18
|
+
import "./chunk-NHA5K226.js";
|
|
19
|
+
import "./chunk-S26LC76R.js";
|
|
20
|
+
import "./chunk-7CLWC2UH.js";
|
|
21
|
+
import "./chunk-LJDODBBZ.js";
|
|
22
|
+
import "./chunk-WLD6BGON.js";
|
|
23
|
+
import "./chunk-NXL4FFQQ.js";
|
|
24
|
+
export {
|
|
25
|
+
importFactProvider,
|
|
26
|
+
importFactsApplyTo
|
|
27
|
+
};
|
|
@@ -52,39 +52,47 @@ import {
|
|
|
52
52
|
tryLazyInstallFormatterTool,
|
|
53
53
|
typstyleFormatter,
|
|
54
54
|
zigFormatter
|
|
55
|
-
} from "./chunk-
|
|
56
|
-
import "./chunk-
|
|
57
|
-
import "./chunk-
|
|
58
|
-
import "./chunk-
|
|
59
|
-
import "./chunk-
|
|
60
|
-
import "./chunk-
|
|
55
|
+
} from "./chunk-K4Z7MK6T.js";
|
|
56
|
+
import "./chunk-G53LBDNU.js";
|
|
57
|
+
import "./chunk-PKWEBMCA.js";
|
|
58
|
+
import "./chunk-AXAR5ZW2.js";
|
|
59
|
+
import "./chunk-7WKVCZI4.js";
|
|
60
|
+
import "./chunk-2H5GHZKC.js";
|
|
61
|
+
import "./chunk-QV3JPCMK.js";
|
|
62
|
+
import "./chunk-NNEQOC3U.js";
|
|
63
|
+
import "./chunk-CXQYK4YT.js";
|
|
64
|
+
import "./chunk-ZQSSO7LO.js";
|
|
61
65
|
import "./chunk-6HWVI6MI.js";
|
|
62
|
-
import "./chunk-
|
|
63
|
-
import "./chunk-
|
|
64
|
-
import "./chunk-
|
|
66
|
+
import "./chunk-AZG5UJYY.js";
|
|
67
|
+
import "./chunk-P5MSLVUW.js";
|
|
68
|
+
import "./chunk-ADYQRETD.js";
|
|
69
|
+
import "./chunk-DI4AZZNY.js";
|
|
70
|
+
import "./chunk-2APSZHHI.js";
|
|
65
71
|
import "./chunk-2BEMIWEW.js";
|
|
66
72
|
import "./chunk-IJYGIDF4.js";
|
|
67
|
-
import "./chunk-
|
|
68
|
-
import "./chunk-
|
|
69
|
-
import "./chunk-
|
|
70
|
-
import "./chunk-
|
|
73
|
+
import "./chunk-B2OXE4AH.js";
|
|
74
|
+
import "./chunk-LVLPA32Q.js";
|
|
75
|
+
import "./chunk-LGH2HHZG.js";
|
|
76
|
+
import "./chunk-KXGTLAUW.js";
|
|
77
|
+
import "./chunk-TQWRH25U.js";
|
|
71
78
|
import "./chunk-UYXV5NIS.js";
|
|
72
|
-
import "./chunk-
|
|
73
|
-
import "./chunk-
|
|
74
|
-
import "./chunk-
|
|
75
|
-
import "./chunk-
|
|
76
|
-
import "./chunk-
|
|
77
|
-
import "./chunk-
|
|
78
|
-
import "./chunk-
|
|
79
|
+
import "./chunk-KNSOA43J.js";
|
|
80
|
+
import "./chunk-6GLMMGCX.js";
|
|
81
|
+
import "./chunk-XSC3BCN3.js";
|
|
82
|
+
import "./chunk-27JQHK7Y.js";
|
|
83
|
+
import "./chunk-R4L7KZ7R.js";
|
|
84
|
+
import "./chunk-74AMPWNC.js";
|
|
85
|
+
import "./chunk-3PO4YYOX.js";
|
|
86
|
+
import "./chunk-5JB4WENL.js";
|
|
79
87
|
import "./chunk-QYF5S6P6.js";
|
|
80
|
-
import "./chunk-
|
|
81
|
-
import "./chunk-
|
|
82
|
-
import "./chunk-
|
|
88
|
+
import "./chunk-CQY2HEH7.js";
|
|
89
|
+
import "./chunk-PQF6YGYB.js";
|
|
90
|
+
import "./chunk-LOEJFTF2.js";
|
|
83
91
|
import "./chunk-CIA7X2PZ.js";
|
|
84
|
-
import "./chunk-
|
|
85
|
-
import "./chunk-
|
|
92
|
+
import "./chunk-W26QZ3OM.js";
|
|
93
|
+
import "./chunk-NHA5K226.js";
|
|
86
94
|
import "./chunk-S26LC76R.js";
|
|
87
|
-
import "./chunk-
|
|
95
|
+
import "./chunk-7CLWC2UH.js";
|
|
88
96
|
import "./chunk-LJDODBBZ.js";
|
|
89
97
|
import "./chunk-WLD6BGON.js";
|
|
90
98
|
import "./chunk-NXL4FFQQ.js";
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
|
+
|
|
3
|
+
// dist/clients/json-cache-read.js
|
|
4
|
+
import * as fs from "node:fs";
|
|
5
|
+
import { promises as fsPromises } from "node:fs";
|
|
6
|
+
function readJsonCache(path, validate, onError) {
|
|
7
|
+
try {
|
|
8
|
+
const parsed = JSON.parse(fs.readFileSync(path, "utf-8"));
|
|
9
|
+
return validate(parsed);
|
|
10
|
+
} catch (err) {
|
|
11
|
+
try {
|
|
12
|
+
onError?.(err);
|
|
13
|
+
} catch {
|
|
14
|
+
}
|
|
15
|
+
return void 0;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
async function readJsonCacheAsync(path, validate, onError) {
|
|
19
|
+
try {
|
|
20
|
+
const raw = await fsPromises.readFile(path, "utf-8");
|
|
21
|
+
const parsed = JSON.parse(raw);
|
|
22
|
+
return validate(parsed);
|
|
23
|
+
} catch (err) {
|
|
24
|
+
try {
|
|
25
|
+
onError?.(err);
|
|
26
|
+
} catch {
|
|
27
|
+
}
|
|
28
|
+
return void 0;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export {
|
|
33
|
+
readJsonCache,
|
|
34
|
+
readJsonCacheAsync
|
|
35
|
+
};
|