allyhub 0.10.0 → 0.11.0
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 +8 -0
- package/dist/commands/dev.js +2 -2
- package/dist/commands/frames/report.js +2 -0
- package/dist/commands/frames.js +11 -9
- package/dist/commands/render.js +2 -2
- package/dist/node_modules/@allyhub/3d-extension/dist/stage-routes.js +1 -1
- package/dist/node_modules/@allyhub/3d-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/audio/package.json +1 -1
- package/dist/node_modules/@allyhub/browser/dist/emoji.d.ts +29 -0
- package/dist/node_modules/@allyhub/browser/dist/emoji.js +57 -0
- package/dist/node_modules/@allyhub/browser/dist/picture.d.ts +18 -0
- package/dist/node_modules/@allyhub/browser/dist/picture.js +2 -0
- package/dist/node_modules/@allyhub/browser/package.json +9 -1
- package/dist/node_modules/@allyhub/build/dist/index.d.ts +1 -0
- package/dist/node_modules/@allyhub/build/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/build/dist/kind-build.d.ts +7 -0
- package/dist/node_modules/@allyhub/build/dist/made-notes.d.ts +9 -0
- package/dist/node_modules/@allyhub/build/dist/made-notes.js +2 -0
- package/dist/node_modules/@allyhub/build/dist/project-tool.d.ts +17 -0
- package/dist/node_modules/@allyhub/build/dist/stage-route.d.ts +7 -0
- package/dist/node_modules/@allyhub/build/package.json +1 -1
- package/dist/node_modules/@allyhub/canvas-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/canvas-model/package.json +1 -1
- package/dist/node_modules/@allyhub/chart/package.json +1 -1
- package/dist/node_modules/@allyhub/check/package.json +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/client.js +1 -1
- package/dist/node_modules/@allyhub/cloud/package.json +1 -1
- package/dist/node_modules/@allyhub/components/package.json +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/exports.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/inputs.js +2 -0
- package/dist/node_modules/@allyhub/dev-server/dist/live.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/pages.js +2 -0
- package/dist/node_modules/@allyhub/dev-server/dist/ports.js +2 -0
- package/dist/node_modules/@allyhub/dev-server/dist/project.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/record.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/respond.js +2 -0
- package/dist/node_modules/@allyhub/dev-server/dist/reveal.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/routes.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/server.js +2 -2
- package/dist/node_modules/@allyhub/dev-server/dist/tools.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/watcher.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/package.json +1 -1
- package/dist/node_modules/@allyhub/diagnostics/dist/problem.d.ts +7 -0
- package/dist/node_modules/@allyhub/diagnostics/package.json +1 -1
- package/dist/node_modules/@allyhub/doc/dist/html.js +15 -59
- package/dist/node_modules/@allyhub/doc/dist/page.js +1 -1
- package/dist/node_modules/@allyhub/doc/package.json +1 -1
- package/dist/node_modules/@allyhub/doc-extension/dist/export.js +1 -1
- package/dist/node_modules/@allyhub/doc-extension/package.json +12 -14
- package/dist/node_modules/@allyhub/doc-print/dist/pages.js +5 -5
- package/dist/node_modules/@allyhub/doc-print/dist/print.js +10 -10
- package/dist/node_modules/@allyhub/doc-print/package.json +1 -1
- package/dist/node_modules/@allyhub/export/package.json +1 -1
- package/dist/node_modules/@allyhub/extension-api/package.json +1 -1
- package/dist/node_modules/@allyhub/extension-host/package.json +1 -1
- package/dist/node_modules/@allyhub/formats/dist/note-shape.d.ts +20 -0
- package/dist/node_modules/@allyhub/formats/dist/note-shape.js +1 -1
- package/dist/node_modules/@allyhub/formats/package.json +1 -1
- package/dist/node_modules/@allyhub/i18n/package.json +1 -1
- package/dist/node_modules/@allyhub/image-draw/package.json +1 -1
- package/dist/node_modules/@allyhub/image-extension/dist/export.js +4 -1
- package/dist/node_modules/@allyhub/image-extension/package.json +1 -6
- package/dist/node_modules/@allyhub/image-measure/package.json +1 -1
- package/dist/node_modules/@allyhub/image-psd/package.json +1 -1
- package/dist/node_modules/@allyhub/image-render/package.json +1 -1
- package/dist/node_modules/@allyhub/image-runtime/package.json +1 -1
- package/dist/node_modules/@allyhub/image-sdk/package.json +1 -1
- package/dist/node_modules/@allyhub/jobs/package.json +1 -1
- package/dist/node_modules/@allyhub/linkedin-extension/LICENSE +241 -0
- package/dist/node_modules/@allyhub/linkedin-extension/dist/article-build.js +2 -0
- package/dist/node_modules/@allyhub/linkedin-extension/dist/article-kind.js +2 -0
- package/dist/node_modules/@allyhub/linkedin-extension/dist/build-plugins.js +2 -0
- package/dist/node_modules/@allyhub/linkedin-extension/dist/build.js +5 -0
- package/dist/node_modules/@allyhub/linkedin-extension/dist/media.js +2 -0
- package/dist/node_modules/@allyhub/linkedin-extension/dist/stage-module.js +82 -0
- package/dist/node_modules/@allyhub/linkedin-extension/dist/stage.js +2 -0
- package/dist/node_modules/@allyhub/linkedin-extension/dist/workspace.js +2 -0
- package/dist/node_modules/@allyhub/linkedin-extension/package.json +287 -0
- package/dist/node_modules/@allyhub/linkedin-extension/skills/allyhub/references/linkedin.md +12 -0
- package/dist/node_modules/@allyhub/linkedin-model/LICENSE +241 -0
- package/dist/node_modules/@allyhub/linkedin-model/dist/article-check.js +5 -0
- package/dist/node_modules/@allyhub/linkedin-model/dist/article.js +3 -0
- package/dist/node_modules/@allyhub/linkedin-model/dist/check.js +2 -0
- package/dist/node_modules/@allyhub/linkedin-model/dist/count.js +3 -0
- package/dist/node_modules/@allyhub/linkedin-model/dist/edit.js +3 -0
- package/dist/node_modules/@allyhub/linkedin-model/dist/html.js +19 -0
- package/dist/node_modules/@allyhub/linkedin-model/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/linkedin-model/dist/limits.js +2 -0
- package/dist/node_modules/@allyhub/linkedin-model/dist/little.js +2 -0
- package/dist/node_modules/@allyhub/linkedin-model/dist/post.js +2 -0
- package/dist/node_modules/@allyhub/linkedin-model/dist/requests.js +2 -0
- package/dist/node_modules/@allyhub/linkedin-model/package.json +14 -0
- package/dist/node_modules/@allyhub/linkedin-view/LICENSE +241 -0
- package/dist/node_modules/@allyhub/linkedin-view/dist/article.js +2 -0
- package/dist/node_modules/@allyhub/linkedin-view/dist/fold.js +3 -0
- package/dist/node_modules/@allyhub/linkedin-view/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/linkedin-view/dist/post.js +2 -0
- package/dist/node_modules/@allyhub/linkedin-view/dist/stage.js +2 -0
- package/dist/node_modules/@allyhub/linkedin-view/dist/text.js +2 -0
- package/dist/node_modules/@allyhub/linkedin-view/package.json +21 -0
- package/dist/node_modules/@allyhub/linkedin-view/src/style.css +600 -0
- package/dist/node_modules/@allyhub/measure/package.json +1 -1
- package/dist/node_modules/@allyhub/media/package.json +1 -1
- package/dist/node_modules/@allyhub/media-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/model/package.json +1 -1
- package/dist/node_modules/@allyhub/ooxml/package.json +1 -1
- package/dist/node_modules/@allyhub/piece/dist/layer.d.ts +2 -0
- package/dist/node_modules/@allyhub/piece/dist/page/index.d.ts +1 -1
- package/dist/node_modules/@allyhub/piece/dist/page/index.js +1 -1
- package/dist/node_modules/@allyhub/piece/dist/page/locate.d.ts +14 -1
- package/dist/node_modules/@allyhub/piece/dist/page/locate.js +1 -1
- package/dist/node_modules/@allyhub/piece/dist/stage.d.ts +12 -0
- package/dist/node_modules/@allyhub/piece/package.json +1 -1
- package/dist/node_modules/@allyhub/project/package.json +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/account.d.ts +8 -0
- package/dist/node_modules/@allyhub/protocol/dist/cloud.d.ts +4 -0
- package/dist/node_modules/@allyhub/protocol/dist/cloud.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/editor.d.ts +6 -0
- package/dist/node_modules/@allyhub/protocol/dist/editor.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/frame.d.ts +61 -1
- package/dist/node_modules/@allyhub/protocol/dist/frame.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/index.d.ts +0 -1
- package/dist/node_modules/@allyhub/protocol/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/notes.d.ts +41 -3
- package/dist/node_modules/@allyhub/protocol/dist/notes.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/snapshots.d.ts +17 -0
- package/dist/node_modules/@allyhub/protocol/dist/snapshots.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/teams.d.ts +7 -0
- package/dist/node_modules/@allyhub/protocol/dist/teams.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/tools.d.ts +12 -0
- package/dist/node_modules/@allyhub/protocol/dist/tools.js +1 -1
- package/dist/node_modules/@allyhub/protocol/package.json +1 -5
- package/dist/node_modules/@allyhub/registry/package.json +1 -1
- package/dist/node_modules/@allyhub/render/dist/encode.js +1 -1
- package/dist/node_modules/@allyhub/render/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/render/dist/render.js +2 -2
- package/dist/node_modules/@allyhub/render/package.json +1 -1
- package/dist/node_modules/@allyhub/report-extension/LICENSE +241 -0
- package/dist/node_modules/@allyhub/report-extension/dist/build.js +2 -0
- package/dist/node_modules/@allyhub/report-extension/dist/check.js +3 -0
- package/dist/node_modules/@allyhub/report-extension/dist/cli/find.js +2 -0
- package/dist/node_modules/@allyhub/report-extension/dist/cli/index.js +5 -0
- package/dist/node_modules/@allyhub/report-extension/dist/cli/picture.js +2 -0
- package/dist/node_modules/@allyhub/report-extension/dist/export.js +2 -0
- package/dist/node_modules/@allyhub/report-extension/dist/inline.js +58 -0
- package/dist/node_modules/@allyhub/report-extension/dist/page.js +21 -0
- package/dist/node_modules/@allyhub/report-extension/dist/project-tools.js +21 -0
- package/dist/node_modules/@allyhub/report-extension/dist/styles.js +5 -0
- package/dist/node_modules/@allyhub/report-extension/dist/theme.js +2 -0
- package/dist/node_modules/@allyhub/report-extension/dist/tools.js +2 -0
- package/dist/node_modules/@allyhub/report-extension/dist/workspace.js +2 -0
- package/dist/node_modules/@allyhub/report-extension/package.json +182 -0
- package/dist/node_modules/@allyhub/report-extension/styles/allyhub/STYLE.md +132 -0
- package/dist/node_modules/@allyhub/report-extension/styles/allyhub/style.css +105 -0
- package/dist/node_modules/@allyhub/report-extension/styles/allyhub/style.json +17 -0
- package/dist/node_modules/@allyhub/report-extension/styles/allyhub/tokens.js +38 -0
- package/dist/node_modules/@allyhub/runtime/dist/compose.js +1 -1
- package/dist/node_modules/@allyhub/runtime/dist/player/player.js +1 -1
- package/dist/node_modules/@allyhub/runtime/package.json +1 -1
- package/dist/node_modules/@allyhub/runtimes/package.json +1 -1
- package/dist/node_modules/@allyhub/scaffold/package.json +1 -1
- package/dist/node_modules/@allyhub/scenery/package.json +1 -1
- package/dist/node_modules/@allyhub/scenery-host/dist/layer/index.js +1 -1
- package/dist/node_modules/@allyhub/scenery-host/dist/viewer.d.ts +6 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/viewer.js +1 -1
- package/dist/node_modules/@allyhub/scenery-host/package.json +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/export.js +2 -4
- package/dist/node_modules/@allyhub/sheet/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/sheet/package.json +1 -1
- package/dist/node_modules/@allyhub/sheet-extension/dist/export.js +2 -6
- package/dist/node_modules/@allyhub/sheet-extension/package.json +3 -7
- package/dist/node_modules/@allyhub/slides-core/package.json +1 -1
- package/dist/node_modules/@allyhub/slides-extension/dist/export.js +1 -1
- package/dist/node_modules/@allyhub/slides-extension/package.json +3 -16
- package/dist/node_modules/@allyhub/slides-pptx/package.json +1 -1
- package/dist/node_modules/@allyhub/slides-runtime/dist/draw.js +1 -1
- package/dist/node_modules/@allyhub/slides-runtime/package.json +1 -1
- package/dist/node_modules/@allyhub/stage/package.json +1 -1
- package/dist/node_modules/@allyhub/stage-page/dist/install.js +1 -1
- package/dist/node_modules/@allyhub/stage-page/dist/runtime/stage.js +1 -1
- package/dist/node_modules/@allyhub/stage-page/package.json +1 -1
- package/dist/node_modules/@allyhub/stage-runtime/dist/runtime.js +14 -14
- package/dist/node_modules/@allyhub/stage-runtime/package.json +1 -1
- package/dist/node_modules/@allyhub/video-core/package.json +1 -1
- package/dist/node_modules/@allyhub/video-extension/dist/export.js +1 -1
- package/dist/node_modules/@allyhub/video-extension/package.json +2 -4
- package/dist/node_modules/@allyhub/video-measure/package.json +1 -1
- package/dist/node_modules/@allyhub/video-sdk/package.json +1 -1
- package/dist/node_modules/@allyhub/website/package.json +1 -1
- package/dist/node_modules/@allyhub/website-extension/dist/preview.js +5 -5
- package/dist/node_modules/@allyhub/website-extension/dist/project-tools.js +2 -2
- package/dist/node_modules/@allyhub/website-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/x-extension/dist/build.js +4 -3
- package/dist/node_modules/@allyhub/x-extension/package.json +10 -12
- package/dist/node_modules/@allyhub/x-model/package.json +1 -1
- package/dist/node_modules/@allyhub/x-view/package.json +1 -1
- package/dist/package.json +12 -10
- package/dist/works.js +1 -1
- package/editor-web/assets/{abnfDiagram-WEYOIA3C-CjAmWsNR.js → abnfDiagram-WEYOIA3C-BKmMA6gn.js} +1 -1
- package/editor-web/assets/{architecture-WOLXFQ4H-DeeKhyhZ.js → architecture-WOLXFQ4H-BEFBgb4k.js} +1 -1
- package/editor-web/assets/{architectureDiagram-ZHVYKT53-b32qTaJg.js → architectureDiagram-ZHVYKT53-_u5YfCjY.js} +1 -1
- package/editor-web/assets/{arrow-up-L4YV_65f.js → arrow-up-B5rJbBv0.js} +1 -1
- package/editor-web/assets/article-BUmD3xtR.js +8 -0
- package/editor-web/assets/article-DNioBb3p.js +7 -0
- package/editor-web/assets/{audio-lines-BFcM7G2L.js → audio-lines-CzuzsGjI.js} +1 -1
- package/editor-web/assets/{blockDiagram-RJAE7QA3-BNbnMNmw.js → blockDiagram-RJAE7QA3-DybfaO3Z.js} +1 -1
- package/editor-web/assets/bookmark-Dsd3kHJJ.js +1 -0
- package/editor-web/assets/button-eGxLxbv9.js +41 -0
- package/editor-web/assets/{c4Diagram-XDPPPE54-BEuemvMw.js → c4Diagram-XDPPPE54-BfqLHB5i.js} +1 -1
- package/editor-web/assets/channel-TNPgFDrw.js +1 -0
- package/editor-web/assets/chart-C37xvZT2.js +1 -0
- package/editor-web/assets/chart-no-axes-column-BVkeF_Mr.js +1 -0
- package/editor-web/assets/{chunk-2E7WHVMD-Zb5nPx_e.js → chunk-2E7WHVMD-BVp1I_d0.js} +1 -1
- package/editor-web/assets/{chunk-4EMNKR2T-DSEM2reX.js → chunk-4EMNKR2T-CTdgWEMr.js} +1 -1
- package/editor-web/assets/{chunk-55XCU76K-BOZa_65H.js → chunk-55XCU76K-7pnsxeaP.js} +1 -1
- package/editor-web/assets/{chunk-7S6XSTFO-DeiGeVpB.js → chunk-7S6XSTFO-Dc0Dvkq7.js} +1 -1
- package/editor-web/assets/{chunk-AQDTSKZB-fPuQFBJc.js → chunk-AQDTSKZB-VAILIsfx.js} +1 -1
- package/editor-web/assets/{chunk-DSNLSHJZ-5vdnoak2.js → chunk-DSNLSHJZ-CUDx1Rv5.js} +1 -1
- package/editor-web/assets/{chunk-HAGFOTED-DFF2mZJ1.js → chunk-HAGFOTED-DAoEe-dJ.js} +1 -1
- package/editor-web/assets/{chunk-HNE4Q36P-g6-ZLbTg.js → chunk-HNE4Q36P-g0akya12.js} +1 -1
- package/editor-web/assets/{chunk-NQOKRVIF-o3hNcHMJ.js → chunk-NQOKRVIF-hTGjzXdJ.js} +1 -1
- package/editor-web/assets/{chunk-UHW7PFBP-BQiDI9dK.js → chunk-UHW7PFBP-BgLV8BIJ.js} +1 -1
- package/editor-web/assets/{chunk-VQ5W62QI-CJlMXWWz.js → chunk-VQ5W62QI-Bw19OOSD.js} +1 -1
- package/editor-web/assets/{chunk-WQQL4CDK-pNBU8dXv.js → chunk-WQQL4CDK-CMST9dyE.js} +1 -1
- package/editor-web/assets/{chunk-YZO67HFG-2x-BiWd-.js → chunk-YZO67HFG-Bbpu36XF.js} +1 -1
- package/editor-web/assets/{chunk-ZAUX2LTX-etFStEM8.js → chunk-ZAUX2LTX-C48Ri0Gs.js} +1 -1
- package/editor-web/assets/{chunk-ZCHMQSOR-B3AYRhIY.js → chunk-ZCHMQSOR-DN1g01Oe.js} +1 -1
- package/editor-web/assets/{classDiagram-v2-4MYWR3UA-6y2yX0oq.js → classDiagram-v2-4MYWR3UA-U6jbPr2d.js} +1 -1
- package/editor-web/assets/{collaborator-LRd0hELn.js → collaborator-B1u2td9m.js} +1 -1
- package/editor-web/assets/{createLucideIcon-CPS-TrJJ.js → createLucideIcon-GFZ_fxLc.js} +1 -1
- package/editor-web/assets/{cynefin-EF2NZ3EQ-CX4BTQQe.js → cynefin-EF2NZ3EQ-gzkai_7-.js} +1 -1
- package/editor-web/assets/{cynefinDiagram-WF24UDRP-LbDkOTy3.js → cynefinDiagram-WF24UDRP-DtSekSr6.js} +1 -1
- package/editor-web/assets/{dagre-NK4GIZVX-wCKQk7hi.js → dagre-NK4GIZVX-CiUwYVT6.js} +1 -1
- package/editor-web/assets/{diagram-CBK3MWTC-a9fofQwk.js → diagram-CBK3MWTC-r9XHCV-k.js} +1 -1
- package/editor-web/assets/{diagram-I5XIIV2D-UCLZWch5.js → diagram-I5XIIV2D-DxVsDZ34.js} +1 -1
- package/editor-web/assets/{diagram-ODIL2UCW-CAEe88Lp.js → diagram-ODIL2UCW-B0eNQoHV.js} +1 -1
- package/editor-web/assets/{diagram-PFBEJUXE-Cp1o45bs.js → diagram-PFBEJUXE-C7f2MfJT.js} +1 -1
- package/editor-web/assets/{diagram-RJA3I4VV-c6OVxDyq.js → diagram-RJA3I4VV-CSXcnvct.js} +1 -1
- package/editor-web/assets/{diagram-TYUNFSNR-BVRWslDM.js → diagram-TYUNFSNR-DXzOD_ii.js} +1 -1
- package/editor-web/assets/dist-BGRwhCQO.js +1 -0
- package/editor-web/assets/{dist-DwGhfliS.js → dist-BW4X7BrF.js} +1 -1
- package/editor-web/assets/dist-BgDRE85b.js +2 -0
- package/editor-web/assets/dist-Blq5nJnU.js +24 -0
- package/editor-web/assets/dist-BuWaZ3Y4.js +274 -0
- package/editor-web/assets/dist-C1emZ9wX.js +37 -0
- package/editor-web/assets/dist-CC7OeU1e.js +6 -0
- package/editor-web/assets/{dist-j6ZLVcgf.js → dist-CX-fiPSn.js} +16 -16
- package/editor-web/assets/dist-C_VvG-_9.js +5 -0
- package/editor-web/assets/dist-Ce7HrBxv.js +3 -0
- package/editor-web/assets/dist-D2k6w-_a.js +1 -0
- package/editor-web/assets/dist-DDv_SbKw.js +84 -0
- package/editor-web/assets/dist-DEoEO4zs.js +1 -0
- package/editor-web/assets/dist-DlDxxPIP.js +16 -0
- package/editor-web/assets/dist-Gz6NDS0J.js +4 -0
- package/editor-web/assets/{ebnfDiagram-V4P3TTPT-KdOTJgFu.js → ebnfDiagram-V4P3TTPT-Cs4YRvDD.js} +1 -1
- package/editor-web/assets/{elk-QONTBCTQ-Cmlrp7qB.js → elk-QONTBCTQ-Bh3LZ9WI.js} +1 -1
- package/editor-web/assets/{erDiagram-KYQIGQAA-CBM7-aQm.js → erDiagram-KYQIGQAA-C4vYTYXp.js} +1 -1
- package/editor-web/assets/{eventmodeling-K75KTNOO-CEoJkbuW.js → eventmodeling-K75KTNOO-BN1kkHWS.js} +1 -1
- package/editor-web/assets/flowDiagram-IUGLLWBU-B04NGsyi.js +1 -0
- package/editor-web/assets/{ganttDiagram-R7GPNTJY-D4S6ZSYD.js → ganttDiagram-R7GPNTJY-CA1LkkC5.js} +1 -1
- package/editor-web/assets/{gitGraph-VSP46ZUC-BvkL6RSh.js → gitGraph-VSP46ZUC-Dy5tA7dG.js} +1 -1
- package/editor-web/assets/{gitGraphDiagram-PDYL7XHY-lTGguloH.js → gitGraphDiagram-PDYL7XHY-hJIB8EkH.js} +1 -1
- package/editor-web/assets/{hint-BimUgJms.js → hint-B8JpEypy.js} +1 -1
- package/editor-web/assets/index-CgB5osVc.js +28 -0
- package/editor-web/assets/index-Daytem9N.css +2 -0
- package/editor-web/assets/{info-OHQRW6UA-DvKzqNvp.js → info-OHQRW6UA-DvzSf7rQ.js} +1 -1
- package/editor-web/assets/{infoDiagram-MVDRKAX5-D7hCpehs.js → infoDiagram-MVDRKAX5-BjIMm4Af.js} +1 -1
- package/editor-web/assets/{ishikawaDiagram-HPEHV2GE-Bg93sZQe.js → ishikawaDiagram-HPEHV2GE-Bpz71S40.js} +1 -1
- package/editor-web/assets/{italic-BQBwRTe8.js → italic-D10w8n6C.js} +1 -1
- package/editor-web/assets/{journeyDiagram-BOSHW7O7-CKm_KONJ.js → journeyDiagram-BOSHW7O7-DAB-pZjD.js} +1 -1
- package/editor-web/assets/{kanban-definition-FNSA4HC5-BKknnpTR.js → kanban-definition-FNSA4HC5-cYeyh3P6.js} +1 -1
- package/editor-web/assets/katex-5Z2zF-9g.js +257 -0
- package/editor-web/assets/link-BC5xK1-1.js +1 -0
- package/editor-web/assets/{mermaid-parser.core-BzqkDnqL.js → mermaid-parser.core-req5LE0X.js} +3 -3
- package/editor-web/assets/{mermaid.core-CEpvTOAe.js → mermaid.core-zFwZug4C.js} +4 -4
- package/editor-web/assets/{mindmap-definition-6OY57UG3-BJ0qG8Wi.js → mindmap-definition-6OY57UG3-TStWb7DG.js} +1 -1
- package/editor-web/assets/minus-DaWs5i8B.js +1 -0
- package/editor-web/assets/{packet-JDAUHWVQ-ew3kvyFm.js → packet-JDAUHWVQ-smFhVKcB.js} +1 -1
- package/editor-web/assets/palette-BIOudGkm.js +1 -0
- package/editor-web/assets/{pegDiagram-ECIUJNBX-DqUS2xit.js → pegDiagram-ECIUJNBX-DvSNRv0-.js} +1 -1
- package/editor-web/assets/{pie-XZMESJXO-DTIAMPGm.js → pie-XZMESJXO-qjaGsBZG.js} +1 -1
- package/editor-web/assets/{pieDiagram-GNMPY74T-DoKOE02-.js → pieDiagram-GNMPY74T-Dd9P-Pdc.js} +1 -1
- package/editor-web/assets/play-CrMmPghG.js +1 -0
- package/editor-web/assets/{progress-CPEbDOoN.js → progress-DE4C5_3x.js} +1 -1
- package/editor-web/assets/props-form-CsmDBqzy.js +1 -0
- package/editor-web/assets/{quadrantDiagram-D57K4MC3-DauOpYun.js → quadrantDiagram-D57K4MC3-h2IIKUUA.js} +1 -1
- package/editor-web/assets/{radar-ABXABTNO-BvMJXUU-.js → radar-ABXABTNO-DlVrSA1d.js} +1 -1
- package/editor-web/assets/{railroad-I3PHUGI6-D3jdJmhM.js → railroad-I3PHUGI6-nFbuLAtc.js} +1 -1
- package/editor-web/assets/{railroad-abnf-LNEFI6M7-Dm8ZpmPj.js → railroad-abnf-LNEFI6M7-Daj8h2iV.js} +1 -1
- package/editor-web/assets/{railroad-ebnf-DWYD2UWJ-oc0Du7Ag.js → railroad-ebnf-DWYD2UWJ-eYJyl5PH.js} +1 -1
- package/editor-web/assets/{railroad-peg-JR7BVNR7-CMrQL_7U.js → railroad-peg-JR7BVNR7-BTRhKZQq.js} +1 -1
- package/editor-web/assets/{railroadDiagram-Y72NRBL7-y99z0C7i.js → railroadDiagram-Y72NRBL7-CeLGUjdp.js} +1 -1
- package/editor-web/assets/{react-DztDSW4P.js → react-WA6wlt8S.js} +1 -1
- package/editor-web/assets/{repeat-2-DJi4LW5C.js → repeat-2-VQP1EVOZ.js} +1 -1
- package/editor-web/assets/{requirementDiagram-EQYSW5RA-jMr_uoF6.js → requirementDiagram-EQYSW5RA-Dmk9XRM5.js} +1 -1
- package/editor-web/assets/{row-ClBisiBs.js → row-BRlEWRrK.js} +1 -1
- package/editor-web/assets/{sankeyDiagram-SY24JHO5-DcUyx03Q.js → sankeyDiagram-SY24JHO5-Yn4zlrAM.js} +1 -1
- package/editor-web/assets/{schemas-68mjUjP5.js → schemas-VikZYZIK.js} +1 -1
- package/editor-web/assets/{sequenceDiagram-BLEHNHQU-R4X8wRCd.js → sequenceDiagram-BLEHNHQU-BTRnp_PW.js} +1 -1
- package/editor-web/assets/{session-2u9U7koW.js → session-Do9AqS38.js} +1 -1
- package/editor-web/assets/{slides-BByblSSR.js → slides-diTEQ3C5.js} +1 -1
- package/editor-web/assets/{snapshots-C9KV-Y2_.js → snapshots-BUGlKQIB.js} +1 -1
- package/editor-web/assets/{sound-DExlNJbb.js → sound-Bj3o9_Fa.js} +1 -1
- package/editor-web/assets/split-CNU1RHcX.js +3 -0
- package/editor-web/assets/{stateDiagram-v2-A6IESKWZ-BqvXKbCA.js → stateDiagram-v2-A6IESKWZ-kstrRKv2.js} +1 -1
- package/editor-web/assets/{strikethrough-CyUBnGTl.js → strikethrough-CfXx6IYH.js} +1 -1
- package/editor-web/assets/{svg-lBRT-uhy.js → svg-Cx50MpxK.js} +1 -1
- package/editor-web/assets/{swatch-1c1uVn1z.js → swatch-WeJD41aW.js} +1 -1
- package/editor-web/assets/{swimlanes-B3ENRKFQ-hjTXIc6M.js → swimlanes-B3ENRKFQ-DaZsZkeP.js} +1 -1
- package/editor-web/assets/swimlanesDiagram-AYQRV4AK-CBZAujYY.js +8 -0
- package/editor-web/assets/{switch-D0K-K8-C.js → switch-N0G_sbqt.js} +1 -1
- package/editor-web/assets/syntax-BVsgRJ4I.js +66 -0
- package/editor-web/assets/syntax-oWsKBWFw.js +1 -0
- package/editor-web/assets/table-B6hVZAMi.js +1 -0
- package/editor-web/assets/{tabs-CxxOnGLR.js → tabs-DIFDqj-l.js} +1 -1
- package/editor-web/assets/{textarea-Fu93tFO3.js → textarea-tEWvBY9p.js} +1 -1
- package/editor-web/assets/{timeline-definition-JXYKGLGB-BcSoN4Dq.js → timeline-definition-JXYKGLGB-CLCvY-Yf.js} +1 -1
- package/editor-web/assets/{trash-2-BAKAeziW.js → trash-2-BP6nqpg2.js} +1 -1
- package/editor-web/assets/{treeView-D4JQ5SDB-CsFN2jrc.js → treeView-D4JQ5SDB-BmN0gwdC.js} +1 -1
- package/editor-web/assets/{treemap-SAJKECNS-DP1eqXJ2.js → treemap-SAJKECNS-DN29G_E_.js} +1 -1
- package/editor-web/assets/{undo-2-DQ5CBmki.js → undo-2-CHR0nvWL.js} +1 -1
- package/editor-web/assets/{usecaseDiagram-WPOLBNNX-BGxa0osF.js → usecaseDiagram-WPOLBNNX-DTRS54cB.js} +1 -1
- package/editor-web/assets/{vennDiagram-Q3Y3IDCW-D2XhTF49.js → vennDiagram-Q3Y3IDCW-DAAc11Hx.js} +1 -1
- package/editor-web/assets/{video-CDbPX4Cr.js → video-BlvmR8BK.js} +1 -1
- package/editor-web/assets/{wardley-7MLQ67FV-DM3jMAbZ.js → wardley-7MLQ67FV-B-UYkmdB.js} +1 -1
- package/editor-web/assets/{wardleyDiagram-IVAIDKWA-Bf-DaZEg.js → wardleyDiagram-IVAIDKWA-BmbwCaky.js} +1 -1
- package/editor-web/assets/words-D_4T9Adq.js +3 -0
- package/editor-web/assets/words-WgdEQdYP.js +2 -0
- package/editor-web/assets/{xychartDiagram-4URNHDU4-dp-mdcWd.js → xychartDiagram-4URNHDU4-ChAfAq1U.js} +1 -1
- package/editor-web/index.html +6 -6
- package/package.json +8 -2
- package/dist/node_modules/@allyhub/protocol/dist/browser-bridge.d.ts +0 -337
- package/dist/node_modules/@allyhub/protocol/dist/browser-bridge.js +0 -2
- package/editor-web/assets/alt-DnBZJzEh.js +0 -4
- package/editor-web/assets/article-DLMjAdbP.js +0 -73
- package/editor-web/assets/button-Chk675Xu.js +0 -41
- package/editor-web/assets/channel-EzYq4r0d.js +0 -1
- package/editor-web/assets/chart-Be9Hj5GL.js +0 -1
- package/editor-web/assets/choice-BgmBh4yu.js +0 -1
- package/editor-web/assets/dist--KKyT5zP.js +0 -340
- package/editor-web/assets/dist-1k0MHB3i.js +0 -1
- package/editor-web/assets/dist-B9KHJqL5.js +0 -4
- package/editor-web/assets/dist-BbJyrhIY.js +0 -1
- package/editor-web/assets/dist-CJXCQxQM.js +0 -37
- package/editor-web/assets/dist-D9xQGwe9.js +0 -5
- package/editor-web/assets/dist-DFiLzbx8.js +0 -219
- package/editor-web/assets/dist-DIPV6xfF.js +0 -2
- package/editor-web/assets/dist-Dp-fQMtx.js +0 -6
- package/editor-web/assets/dist-Duw28VxJ.js +0 -16
- package/editor-web/assets/dist-OBE2IIYP.js +0 -24
- package/editor-web/assets/flowDiagram-IUGLLWBU-Xm2E2ib_.js +0 -1
- package/editor-web/assets/index-C-i_iuxN.js +0 -28
- package/editor-web/assets/index-Cxh_Shkm.css +0 -2
- package/editor-web/assets/minus-oPj1GxwA.js +0 -1
- package/editor-web/assets/swimlanesDiagram-AYQRV4AK-BLfytmPY.js +0 -8
- package/editor-web/assets/syntax-Bih_jv7W.js +0 -1
|
@@ -1,337 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
/** The version of these messages; `bridge/hello` carries each end's. */
|
|
3
|
-
export declare const BRIDGE_PROTOCOL = 1;
|
|
4
|
-
/** The native messaging host Studio installs, by the name Chrome knows it. */
|
|
5
|
-
export declare const BRIDGE_NATIVE_HOST = "com.allyhub.browser";
|
|
6
|
-
/**
|
|
7
|
-
* What an agent names the person's own browser by when it does not care
|
|
8
|
-
* which (`ALLYHUB_BROWSER=person`): their default one if it is connected,
|
|
9
|
-
* else the one connected.
|
|
10
|
-
*/
|
|
11
|
-
export declare const PERSON_BROWSER = "person";
|
|
12
|
-
/** Where a Host's door takes the extension's WebSocket (behind a cloud Studio's gateway, with a ticket). */
|
|
13
|
-
export declare const BRIDGE_PATH = "/browser";
|
|
14
|
-
/**
|
|
15
|
-
* The extension's IDs: the store's (v1's listing, which carries the
|
|
16
|
-
* bridge beside v1's features) and the development build's, fixed by the
|
|
17
|
-
* `key` in its manifest. A native host's manifest names both; a Host's
|
|
18
|
-
* door lets in only their origins.
|
|
19
|
-
*/
|
|
20
|
-
export declare const BRIDGE_EXTENSION_IDS: {
|
|
21
|
-
readonly store: "pmckbhaedjblcbkbkcbmmogpealiaeol";
|
|
22
|
-
readonly development: "dbmenjkebdgjkhjdcicplkaakmjcjhdp";
|
|
23
|
-
};
|
|
24
|
-
/** Where a person installs the extension (Chrome's store; Edge, Brave, Arc and the others install from it too). */
|
|
25
|
-
export declare const BRIDGE_STORE_URL: string;
|
|
26
|
-
/** The origins a Host's door accepts the extension's WebSocket from. */
|
|
27
|
-
export declare const BRIDGE_EXTENSION_ORIGINS: readonly string[];
|
|
28
|
-
/**
|
|
29
|
-
* The pages that may hand the extension a ticket to a cloud Studio (its
|
|
30
|
-
* `externally_connectable`): AllyHub's window, production's and staging's.
|
|
31
|
-
* Never `*.allyhub.studio`, which serves projects' code.
|
|
32
|
-
*/
|
|
33
|
-
export declare const BRIDGE_WINDOW_ORIGINS: readonly ["https://app.allyhub.com", "https://app.allyhub-staging.com"];
|
|
34
|
-
/** The domains a cloud Studio's Host is reached under (its gateway's), production's and staging's. */
|
|
35
|
-
export declare const BRIDGE_STUDIO_DOMAINS: readonly ["allyhub.studio", "allyhub-studio-staging.com"];
|
|
36
|
-
/** What AllyHub's window asks the extension (`chrome.runtime.sendMessage` to it). */
|
|
37
|
-
export declare const BridgeWindowMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
38
|
-
type: z.ZodLiteral<"allyhub/bridge/status">;
|
|
39
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
40
|
-
type: z.ZodLiteral<"allyhub/bridge/connect">;
|
|
41
|
-
url: z.ZodString;
|
|
42
|
-
}, z.core.$strip>], "type">;
|
|
43
|
-
export type BridgeWindowMessage = z.infer<typeof BridgeWindowMessageSchema>;
|
|
44
|
-
/** The extension's answer to the window. */
|
|
45
|
-
export declare const BridgeWindowAnswerSchema: z.ZodObject<{
|
|
46
|
-
version: z.ZodString;
|
|
47
|
-
connected: z.ZodArray<z.ZodString>;
|
|
48
|
-
error: z.ZodOptional<z.ZodString>;
|
|
49
|
-
}, z.core.$strip>;
|
|
50
|
-
export type BridgeWindowAnswer = z.infer<typeof BridgeWindowAnswerSchema>;
|
|
51
|
-
/**
|
|
52
|
-
* The address the extension may connect to, a window gave it: a cloud
|
|
53
|
-
* Studio's door (`wss://<sandbox>.allyhub.studio/browser`), never another
|
|
54
|
-
* server; a development build, a Host on this computer too, named
|
|
55
|
-
* `localhost`, `127.0.0.1` or any `*.localhost` (`cloud:local` reaches a
|
|
56
|
-
* Host as `<sandbox>.studio.localhost`). `undefined` for any other.
|
|
57
|
-
*
|
|
58
|
-
* Read by the URL parser, not a pattern: what it returns is the address
|
|
59
|
-
* the extension connects to, so a spelling a pattern reads apart from the
|
|
60
|
-
* parser (a backslash, an encoded slash) cannot reach another server.
|
|
61
|
-
*/
|
|
62
|
-
export declare function bridgeTarget(url: string, development: boolean): URL | undefined;
|
|
63
|
-
/**
|
|
64
|
-
* The largest message Chrome passes from a native host to its extension
|
|
65
|
-
* is 1 MB; the other way, 64 MiB. A Host splits what it sends over native
|
|
66
|
-
* messaging into parts well under that (`splitNative`), and the extension
|
|
67
|
-
* puts them together again (`NativeParts`).
|
|
68
|
-
*/
|
|
69
|
-
export declare const NATIVE_PART_CHARS: number;
|
|
70
|
-
/** Browsers the extension runs in, by their product. */
|
|
71
|
-
export declare const BROWSER_PRODUCTS: readonly ["chrome", "edge", "brave", "arc", "opera", "vivaldi", "chromium"];
|
|
72
|
-
export declare const BrowserProductSchema: z.ZodUnion<readonly [z.ZodEnum<{
|
|
73
|
-
chrome: "chrome";
|
|
74
|
-
edge: "edge";
|
|
75
|
-
brave: "brave";
|
|
76
|
-
arc: "arc";
|
|
77
|
-
opera: "opera";
|
|
78
|
-
vivaldi: "vivaldi";
|
|
79
|
-
chromium: "chromium";
|
|
80
|
-
}>, z.core.$ZodBranded<z.ZodString, "Unknown", "out">]>;
|
|
81
|
-
export type BrowserProduct = z.infer<typeof BrowserProductSchema>;
|
|
82
|
-
/** How a browser is called to a person. */
|
|
83
|
-
export declare const BROWSER_PRODUCT_NAMES: Record<(typeof BROWSER_PRODUCTS)[number], string>;
|
|
84
|
-
/** A browser's name for a person: its product's, or the word itself for one this version does not know. */
|
|
85
|
-
export declare const browserName: (product: string) => string;
|
|
86
|
-
/** The extension says who it is, first, on every connection. */
|
|
87
|
-
export declare const BridgeHelloSchema: z.ZodObject<{
|
|
88
|
-
protocol: z.ZodInt;
|
|
89
|
-
extension: z.ZodObject<{
|
|
90
|
-
id: z.ZodString;
|
|
91
|
-
version: z.ZodString;
|
|
92
|
-
}, z.core.$strip>;
|
|
93
|
-
browser: z.ZodObject<{
|
|
94
|
-
id: z.ZodString;
|
|
95
|
-
product: z.ZodUnion<readonly [z.ZodEnum<{
|
|
96
|
-
chrome: "chrome";
|
|
97
|
-
edge: "edge";
|
|
98
|
-
brave: "brave";
|
|
99
|
-
arc: "arc";
|
|
100
|
-
opera: "opera";
|
|
101
|
-
vivaldi: "vivaldi";
|
|
102
|
-
chromium: "chromium";
|
|
103
|
-
}>, z.core.$ZodBranded<z.ZodString, "Unknown", "out">]>;
|
|
104
|
-
version: z.ZodString;
|
|
105
|
-
userAgent: z.ZodString;
|
|
106
|
-
}, z.core.$strip>;
|
|
107
|
-
}, z.core.$strip>;
|
|
108
|
-
export type BridgeHello = z.infer<typeof BridgeHelloSchema>;
|
|
109
|
-
/** The Host's answer: who it is, so the extension can name it. */
|
|
110
|
-
export declare const BridgeWelcomeSchema: z.ZodObject<{
|
|
111
|
-
protocol: z.ZodInt;
|
|
112
|
-
host: z.ZodObject<{
|
|
113
|
-
name: z.ZodString;
|
|
114
|
-
remote: z.ZodBoolean;
|
|
115
|
-
}, z.core.$strip>;
|
|
116
|
-
}, z.core.$strip>;
|
|
117
|
-
export type BridgeWelcome = z.infer<typeof BridgeWelcomeSchema>;
|
|
118
|
-
/** A tab, as `chrome.tabs` describes it, and only what the Host uses. */
|
|
119
|
-
export declare const BridgeTabSchema: z.ZodObject<{
|
|
120
|
-
tabId: z.ZodInt;
|
|
121
|
-
windowId: z.ZodOptional<z.ZodInt>;
|
|
122
|
-
url: z.ZodOptional<z.ZodString>;
|
|
123
|
-
title: z.ZodOptional<z.ZodString>;
|
|
124
|
-
openerTabId: z.ZodOptional<z.ZodInt>;
|
|
125
|
-
active: z.ZodOptional<z.ZodBoolean>;
|
|
126
|
-
status: z.ZodOptional<z.ZodString>;
|
|
127
|
-
}, z.core.$strip>;
|
|
128
|
-
export type BridgeTab = z.infer<typeof BridgeTabSchema>;
|
|
129
|
-
/**
|
|
130
|
-
* A group of the agent's tabs: a Chrome tab group per project, named for
|
|
131
|
-
* it. `key` is the Host's, the same for the same project.
|
|
132
|
-
*/
|
|
133
|
-
export declare const BridgeGroupSchema: z.ZodObject<{
|
|
134
|
-
key: z.ZodString;
|
|
135
|
-
title: z.ZodString;
|
|
136
|
-
}, z.core.$strip>;
|
|
137
|
-
export type BridgeGroup = z.infer<typeof BridgeGroupSchema>;
|
|
138
|
-
/** Why Chrome let go of a tab (`chrome.debugger.onDetach`'s reasons, and the extension's own). */
|
|
139
|
-
export declare const DETACH_REASONS: readonly ["target_closed", "canceled_by_user", "not_allowed", "released"];
|
|
140
|
-
export declare const DetachReasonSchema: z.ZodUnion<readonly [z.ZodEnum<{
|
|
141
|
-
target_closed: "target_closed";
|
|
142
|
-
canceled_by_user: "canceled_by_user";
|
|
143
|
-
not_allowed: "not_allowed";
|
|
144
|
-
released: "released";
|
|
145
|
-
}>, z.core.$ZodBranded<z.ZodString, "Unknown", "out">]>;
|
|
146
|
-
/** A CDP command for a tab: the tab's own session, or a child's (a frame in another process, a worker). */
|
|
147
|
-
export declare const BridgeCdpSchema: z.ZodObject<{
|
|
148
|
-
tabId: z.ZodInt;
|
|
149
|
-
sessionId: z.ZodOptional<z.ZodString>;
|
|
150
|
-
method: z.ZodString;
|
|
151
|
-
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
152
|
-
}, z.core.$strip>;
|
|
153
|
-
/** What the Host asks of the extension. */
|
|
154
|
-
export declare const BRIDGE_EXTENSION_METHODS: {
|
|
155
|
-
readonly "tabs/create": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
|
|
156
|
-
group: z.ZodObject<{
|
|
157
|
-
key: z.ZodString;
|
|
158
|
-
title: z.ZodString;
|
|
159
|
-
}, z.core.$strip>;
|
|
160
|
-
url: z.ZodOptional<z.ZodString>;
|
|
161
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
162
|
-
tabId: z.ZodInt;
|
|
163
|
-
windowId: z.ZodOptional<z.ZodInt>;
|
|
164
|
-
url: z.ZodOptional<z.ZodString>;
|
|
165
|
-
title: z.ZodOptional<z.ZodString>;
|
|
166
|
-
openerTabId: z.ZodOptional<z.ZodInt>;
|
|
167
|
-
active: z.ZodOptional<z.ZodBoolean>;
|
|
168
|
-
status: z.ZodOptional<z.ZodString>;
|
|
169
|
-
}, z.core.$strip>>;
|
|
170
|
-
readonly "tabs/close": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
|
|
171
|
-
tabId: z.ZodInt;
|
|
172
|
-
}, z.core.$strip>, z.ZodObject<{}, z.core.$strip>>;
|
|
173
|
-
readonly "tabs/activate": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
|
|
174
|
-
tabId: z.ZodInt;
|
|
175
|
-
}, z.core.$strip>, z.ZodObject<{}, z.core.$strip>>;
|
|
176
|
-
readonly "debugger/attach": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
|
|
177
|
-
tabId: z.ZodInt;
|
|
178
|
-
group: z.ZodObject<{
|
|
179
|
-
key: z.ZodString;
|
|
180
|
-
title: z.ZodString;
|
|
181
|
-
}, z.core.$strip>;
|
|
182
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
183
|
-
targetInfo: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
184
|
-
}, z.core.$strip>>;
|
|
185
|
-
readonly "debugger/detach": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
|
|
186
|
-
tabId: z.ZodInt;
|
|
187
|
-
}, z.core.$strip>, z.ZodObject<{}, z.core.$strip>>;
|
|
188
|
-
readonly "debugger/send": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
|
|
189
|
-
tabId: z.ZodInt;
|
|
190
|
-
sessionId: z.ZodOptional<z.ZodString>;
|
|
191
|
-
method: z.ZodString;
|
|
192
|
-
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
193
|
-
}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
194
|
-
readonly "groups/release": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
|
|
195
|
-
key: z.ZodString;
|
|
196
|
-
}, z.core.$strip>, z.ZodObject<{}, z.core.$strip>>;
|
|
197
|
-
};
|
|
198
|
-
/** What the extension asks of the Host. */
|
|
199
|
-
export declare const BRIDGE_HOST_METHODS: {
|
|
200
|
-
readonly "bridge/hello": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
|
|
201
|
-
protocol: z.ZodInt;
|
|
202
|
-
extension: z.ZodObject<{
|
|
203
|
-
id: z.ZodString;
|
|
204
|
-
version: z.ZodString;
|
|
205
|
-
}, z.core.$strip>;
|
|
206
|
-
browser: z.ZodObject<{
|
|
207
|
-
id: z.ZodString;
|
|
208
|
-
product: z.ZodUnion<readonly [z.ZodEnum<{
|
|
209
|
-
chrome: "chrome";
|
|
210
|
-
edge: "edge";
|
|
211
|
-
brave: "brave";
|
|
212
|
-
arc: "arc";
|
|
213
|
-
opera: "opera";
|
|
214
|
-
vivaldi: "vivaldi";
|
|
215
|
-
chromium: "chromium";
|
|
216
|
-
}>, z.core.$ZodBranded<z.ZodString, "Unknown", "out">]>;
|
|
217
|
-
version: z.ZodString;
|
|
218
|
-
userAgent: z.ZodString;
|
|
219
|
-
}, z.core.$strip>;
|
|
220
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
221
|
-
protocol: z.ZodInt;
|
|
222
|
-
host: z.ZodObject<{
|
|
223
|
-
name: z.ZodString;
|
|
224
|
-
remote: z.ZodBoolean;
|
|
225
|
-
}, z.core.$strip>;
|
|
226
|
-
}, z.core.$strip>>;
|
|
227
|
-
};
|
|
228
|
-
/** What the extension tells the Host. */
|
|
229
|
-
export declare const BRIDGE_HOST_NOTIFICATIONS: {
|
|
230
|
-
readonly "tabs/added": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{
|
|
231
|
-
key: z.ZodString;
|
|
232
|
-
tab: z.ZodObject<{
|
|
233
|
-
tabId: z.ZodInt;
|
|
234
|
-
windowId: z.ZodOptional<z.ZodInt>;
|
|
235
|
-
url: z.ZodOptional<z.ZodString>;
|
|
236
|
-
title: z.ZodOptional<z.ZodString>;
|
|
237
|
-
openerTabId: z.ZodOptional<z.ZodInt>;
|
|
238
|
-
active: z.ZodOptional<z.ZodBoolean>;
|
|
239
|
-
status: z.ZodOptional<z.ZodString>;
|
|
240
|
-
}, z.core.$strip>;
|
|
241
|
-
}, z.core.$strip>>;
|
|
242
|
-
readonly "tabs/updated": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{
|
|
243
|
-
tab: z.ZodObject<{
|
|
244
|
-
tabId: z.ZodInt;
|
|
245
|
-
windowId: z.ZodOptional<z.ZodInt>;
|
|
246
|
-
url: z.ZodOptional<z.ZodString>;
|
|
247
|
-
title: z.ZodOptional<z.ZodString>;
|
|
248
|
-
openerTabId: z.ZodOptional<z.ZodInt>;
|
|
249
|
-
active: z.ZodOptional<z.ZodBoolean>;
|
|
250
|
-
status: z.ZodOptional<z.ZodString>;
|
|
251
|
-
}, z.core.$strip>;
|
|
252
|
-
}, z.core.$strip>>;
|
|
253
|
-
readonly "tabs/removed": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{
|
|
254
|
-
tabId: z.ZodInt;
|
|
255
|
-
}, z.core.$strip>>;
|
|
256
|
-
readonly "debugger/event": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{
|
|
257
|
-
tabId: z.ZodInt;
|
|
258
|
-
sessionId: z.ZodOptional<z.ZodString>;
|
|
259
|
-
method: z.ZodString;
|
|
260
|
-
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
261
|
-
}, z.core.$strip>>;
|
|
262
|
-
readonly "debugger/detached": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{
|
|
263
|
-
tabId: z.ZodInt;
|
|
264
|
-
reason: z.ZodUnion<readonly [z.ZodEnum<{
|
|
265
|
-
target_closed: "target_closed";
|
|
266
|
-
canceled_by_user: "canceled_by_user";
|
|
267
|
-
not_allowed: "not_allowed";
|
|
268
|
-
released: "released";
|
|
269
|
-
}>, z.core.$ZodBranded<z.ZodString, "Unknown", "out">]>;
|
|
270
|
-
}, z.core.$strip>>;
|
|
271
|
-
readonly "bridge/stopped": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{}, z.core.$strip>>;
|
|
272
|
-
readonly "bridge/ping": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{}, z.core.$strip>>;
|
|
273
|
-
};
|
|
274
|
-
/** Why a CDP command is refused, or undefined when it is relayed. */
|
|
275
|
-
export declare function refusedCdp(cdpMethod: string): string | undefined;
|
|
276
|
-
/** Pages no agent may use: the browser's own, other extensions', the store. */
|
|
277
|
-
export declare function usableUrl(url: string | undefined): boolean;
|
|
278
|
-
/** One part of a message too large for native messaging. */
|
|
279
|
-
export declare const NativePartSchema: z.ZodObject<{
|
|
280
|
-
part: z.ZodObject<{
|
|
281
|
-
id: z.ZodInt;
|
|
282
|
-
index: z.ZodInt;
|
|
283
|
-
count: z.ZodInt;
|
|
284
|
-
text: z.ZodString;
|
|
285
|
-
}, z.core.$strip>;
|
|
286
|
-
}, z.core.$strip>;
|
|
287
|
-
/** A message as native messaging carries it to the extension: whole, or in parts. */
|
|
288
|
-
export declare function splitNative(text: string, nextId: () => number, max?: number): string[];
|
|
289
|
-
/** Puts a message sent in parts together again: undefined until its last part. */
|
|
290
|
-
export declare class NativeParts {
|
|
291
|
-
private readonly pending;
|
|
292
|
-
/** A message received: itself when whole, its text once its last part came, or undefined. */
|
|
293
|
-
take(message: unknown): unknown;
|
|
294
|
-
}
|
|
295
|
-
/** An error the other end answered with. */
|
|
296
|
-
export declare class BridgeError extends Error {
|
|
297
|
-
readonly code: number;
|
|
298
|
-
constructor(code: number, message: string);
|
|
299
|
-
}
|
|
300
|
-
export interface BridgePeerOptions {
|
|
301
|
-
/** Sends one message to the other end. */
|
|
302
|
-
send(message: unknown): void;
|
|
303
|
-
/** Answers a request: its result, or throws (a `BridgeError` keeps its code). */
|
|
304
|
-
request?(method: string, params: unknown): Promise<unknown>;
|
|
305
|
-
/** Hears a notification. */
|
|
306
|
-
notify?(method: string, params: unknown): void;
|
|
307
|
-
/** How long a request waits for its answer, by method; default 30 s. */
|
|
308
|
-
timeoutMs?(method: string): number;
|
|
309
|
-
}
|
|
310
|
-
/**
|
|
311
|
-
* One end of the bridge: requests both ways, notifications both ways, over
|
|
312
|
-
* any transport that carries a message at a time. An answer is handed to
|
|
313
|
-
* its caller as it arrives, before any message after it is read, so a CDP
|
|
314
|
-
* client sees a command's answer and the events after it in Chrome's
|
|
315
|
-
* order (Browser MCP's ordering fix).
|
|
316
|
-
*/
|
|
317
|
-
export declare class BridgePeer {
|
|
318
|
-
private readonly o;
|
|
319
|
-
private readonly pending;
|
|
320
|
-
private next;
|
|
321
|
-
private closed;
|
|
322
|
-
constructor(options: BridgePeerOptions);
|
|
323
|
-
request(method: string, params: unknown): Promise<unknown>;
|
|
324
|
-
/**
|
|
325
|
-
* A request whose answer is handed to `done` as it is read, before any
|
|
326
|
-
* message after it: what a relay uses to keep a command's answer ahead
|
|
327
|
-
* of the events Chrome sent after it.
|
|
328
|
-
*/
|
|
329
|
-
call(method: string, params: unknown, done: (error: Error | undefined, result: unknown) => void): void;
|
|
330
|
-
notify(method: string, params: unknown): void;
|
|
331
|
-
/** A message from the other end. */
|
|
332
|
-
receive(message: unknown): void;
|
|
333
|
-
/** The transport ended: every request waiting fails. */
|
|
334
|
-
close(reason: string): void;
|
|
335
|
-
get isClosed(): boolean;
|
|
336
|
-
}
|
|
337
|
-
//# sourceMappingURL=browser-bridge.d.ts.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{z as e}from"zod";import{method as d,notification as g}from"./jsonrpc.js";import{known as b,openEnum as l}from"./open.js";export const BRIDGE_PROTOCOL=1,BRIDGE_NATIVE_HOST="com.allyhub.browser",PERSON_BROWSER="person",BRIDGE_PATH="/browser",BRIDGE_EXTENSION_IDS={store:"pmckbhaedjblcbkbkcbmmogpealiaeol",development:"dbmenjkebdgjkhjdcicplkaakmjcjhdp"},BRIDGE_STORE_URL=`https://chromewebstore.google.com/detail/${BRIDGE_EXTENSION_IDS.store}`,BRIDGE_EXTENSION_ORIGINS=Object.values(BRIDGE_EXTENSION_IDS).map(r=>`chrome-extension://${r}`),BRIDGE_WINDOW_ORIGINS=["https://app.allyhub.com","https://app.allyhub-staging.com"],BRIDGE_STUDIO_DOMAINS=["allyhub.studio","allyhub-studio-staging.com"],BridgeWindowMessageSchema=e.discriminatedUnion("type",[e.object({type:e.literal("allyhub/bridge/status")}),e.object({type:e.literal("allyhub/bridge/connect"),url:e.string()})]),BridgeWindowAnswerSchema=e.object({version:e.string(),connected:e.array(e.string()),error:e.string().optional()});export function bridgeTarget(r,o){let t;try{t=new URL(r)}catch{return}if(t.username!==""||t.password!==""||t.pathname!==BRIDGE_PATH||t.hash!=="")return;const n=t.protocol.toLowerCase(),s=t.hostname.toLowerCase();if(n==="wss:"&&BRIDGE_STUDIO_DOMAINS.some(a=>s.endsWith(`.${a}`))||o&&(n==="ws:"||n==="wss:")&&(s==="127.0.0.1"||s==="localhost"||s.endsWith(".localhost")))return t}export const NATIVE_PART_CHARS=128*1024,BROWSER_PRODUCTS=["chrome","edge","brave","arc","opera","vivaldi","chromium"],BrowserProductSchema=l(BROWSER_PRODUCTS),BROWSER_PRODUCT_NAMES={chrome:"Google Chrome",edge:"Microsoft Edge",brave:"Brave",arc:"Arc",opera:"Opera",vivaldi:"Vivaldi",chromium:"Chromium"},browserName=r=>b(BROWSER_PRODUCTS,r)?BROWSER_PRODUCT_NAMES[r]:r,BridgeHelloSchema=e.object({protocol:e.int().min(1),extension:e.object({id:e.string(),version:e.string()}),browser:e.object({id:e.string().min(1).max(100),product:BrowserProductSchema,version:e.string(),userAgent:e.string()})}),BridgeWelcomeSchema=e.object({protocol:e.int().min(1),host:e.object({name:e.string(),remote:e.boolean()})}),BridgeTabSchema=e.object({tabId:e.int(),windowId:e.int().optional(),url:e.string().optional(),title:e.string().optional(),openerTabId:e.int().optional(),active:e.boolean().optional(),status:e.string().optional()}),BridgeGroupSchema=e.object({key:e.string().min(1).max(200),title:e.string().min(1).max(80)}),DETACH_REASONS=["target_closed","canceled_by_user","not_allowed","released"],DetachReasonSchema=l(DETACH_REASONS),BridgeCdpSchema=e.object({tabId:e.int(),sessionId:e.string().optional(),method:e.string().min(1),params:e.record(e.string(),e.unknown()).optional()});const p=e.object({});export const BRIDGE_EXTENSION_METHODS={"tabs/create":d(e.object({group:BridgeGroupSchema,url:e.string().optional()}),BridgeTabSchema,"Opens a tab in the background, in the group, and attaches the debugger to it."),"tabs/close":d(e.object({tabId:e.int()}),p,"Closes a tab."),"tabs/activate":d(e.object({tabId:e.int()}),p,"Shows a tab to the person (a handoff: something only they can do)."),"debugger/attach":d(e.object({tabId:e.int(),group:BridgeGroupSchema}),e.object({targetInfo:e.record(e.string(),e.unknown())}),"Attaches the debugger to a tab and keeps it in the group: its Target.getTargetInfo."),"debugger/detach":d(e.object({tabId:e.int()}),p,"Lets go of a tab; it stays open, in its group."),"debugger/send":d(BridgeCdpSchema,e.record(e.string(),e.unknown()),"Sends a CDP command to an attached tab, refused when it reaches past the tab."),"groups/release":d(e.object({key:e.string()}),p,"Lets go of every tab of a group and ungroups them; they stay open for the person.")},BRIDGE_HOST_METHODS={"bridge/hello":d(BridgeHelloSchema,BridgeWelcomeSchema,"The extension says who it is; the Host who it is.")},BRIDGE_HOST_NOTIFICATIONS={"tabs/added":g(e.object({key:e.string(),tab:BridgeTabSchema}),"A tab joined a group: the person dragged it in, or one of the group's pages opened it."),"tabs/updated":g(e.object({tab:BridgeTabSchema}),"A tab of a group changed: its address, title or loading."),"tabs/removed":g(e.object({tabId:e.int()}),"A tab of a group closed or left it."),"debugger/event":g(BridgeCdpSchema,"A CDP event from an attached tab."),"debugger/detached":g(e.object({tabId:e.int(),reason:DetachReasonSchema}),"Chrome let go of a tab, or the extension did."),"bridge/stopped":g(e.object({}),"The person stopped the agents (Cancel on Chrome's debugging bar): every tab was let go."),"bridge/ping":g(e.object({}),"Keeps a WebSocket, and so the extension's service worker, alive.")};const m=new Set(["Network.getAllCookies","Network.getCookies","Network.setCookie","Network.setCookies","Network.deleteCookies","Network.clearBrowserCookies","Network.clearBrowserCache","Network.loadNetworkResource","Page.setDownloadBehavior","Security.setIgnoreCertificateErrors","Target.attachToTarget","Target.attachToBrowserTarget","Target.activateTarget","Target.closeTarget","Target.createTarget","Target.createBrowserContext","Target.disposeBrowserContext","Target.exposeDevToolsProtocol","Target.getTargets","Target.sendMessageToTarget","Target.setDiscoverTargets","Target.setRemoteLocations"]),f=new Set(["Storage","IndexedDB","CacheStorage","DOMStorage","Browser","SystemInfo"]);export function refusedCdp(r){const o=r.split(".")[0]??"";if(m.has(r)||f.has(o))return`AllyHub's extension does not allow ${r} in the person's browser: it reaches past the tab (other sites, other tabs, or the browser itself).`}export function usableUrl(r){if(r===void 0||r===""||r==="about:blank")return!0;const o=/^https?:\/\/(?:[^@/?#]*@)?(\[[^\]]*\]|[^:/?#]+)(?::\d*)?([^?#]*)/iu.exec(r);if(!o)return!1;const t=(o[1]??"").toLowerCase(),n=o[2]===void 0||o[2]===""?"/":o[2];return!w.some(s=>t===s.host&&n.startsWith(s.path))}const w=[{host:"chromewebstore.google.com",path:"/"},{host:"chrome.google.com",path:"/webstore"},{host:"microsoftedge.microsoft.com",path:"/addons"}];export const NativePartSchema=e.object({part:e.object({id:e.int(),index:e.int().min(0),count:e.int().min(1),text:e.string()})});export function splitNative(r,o,t=NATIVE_PART_CHARS){if(r.length<=t)return[r];const n=o(),s=Math.ceil(r.length/t),a=[];for(let i=0;i<s;i++)a.push(JSON.stringify({part:{id:n,index:i,count:s,text:r.slice(i*t,(i+1)*t)}}));return a}export class NativeParts{pending=new Map;take(o){const t=NativePartSchema.safeParse(o);if(!t.success)return o;const{id:n,index:s,count:a,text:i}=t.data.part;let c=this.pending.get(n);if(c||(c=[],this.pending.set(n,c)),c[s]=i,!(c.filter(u=>typeof u=="string").length<a))return this.pending.delete(n),JSON.parse(c.join(""))}}export class BridgeError extends Error{code;constructor(o,t){super(t),this.name="BridgeError",this.code=o}}const h=globalThis;export class BridgePeer{o;pending=new Map;next=1;closed;constructor(o){this.o=o}request(o,t){return new Promise((n,s)=>{this.call(o,t,(a,i)=>{a?s(a):n(i)})})}call(o,t,n){if(this.closed){n(this.closed,void 0);return}const s=this.next++,a=this.o.timeoutMs?.(o)??3e4,i=h.setTimeout(()=>{this.pending.delete(s),n(new BridgeError(-32005,`${o} had no answer in ${String(a/1e3)} s.`),void 0)},a);this.pending.set(s,{method:o,done:n,timer:i});try{this.o.send({jsonrpc:"2.0",id:s,method:o,params:t})}catch(c){h.clearTimeout(i),this.pending.delete(s),n(c instanceof Error?c:new Error(String(c)),void 0)}}notify(o,t){this.closed||this.o.send({jsonrpc:"2.0",method:o,params:t})}receive(o){if(typeof o!="object"||o===null)return;const t=o;if(typeof t.method=="string"){if(typeof t.id=="number"||typeof t.id=="string"){const s=t.id;(this.o.request?this.o.request(t.method,t.params??{}):Promise.reject(new BridgeError(-32601,`There is no method "${t.method}".`))).then(i=>{this.closed||this.o.send({jsonrpc:"2.0",id:s,result:i??{}})},i=>{this.closed||this.o.send({jsonrpc:"2.0",id:s,error:{code:i instanceof BridgeError?i.code:-32603,message:i instanceof Error?i.message:String(i)}})})}else this.o.notify?.(t.method,t.params??{});return}if(typeof t.id!="number")return;const n=this.pending.get(t.id);n&&(this.pending.delete(t.id),h.clearTimeout(n.timer),t.error!==void 0?n.done(new BridgeError(typeof t.error.code=="number"?t.error.code:-32603,typeof t.error.message=="string"?t.error.message:n.method),void 0):n.done(void 0,t.result))}close(o){if(!this.closed){this.closed=new BridgeError(-32005,o);for(const t of this.pending.values())h.clearTimeout(t.timer),t.done(this.closed,void 0);this.pending.clear()}}get isClosed(){return this.closed!==void 0}}
|