@forgeax/view 0.2.1-beta-20260924075842
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 +11 -0
- package/README.md +742 -0
- package/dist/modules/backend.mjs +54 -0
- package/dist/modules/backend.mjs.map +7 -0
- package/dist/modules/browser.mjs +180 -0
- package/dist/modules/browser.mjs.map +7 -0
- package/dist/modules/carrier-contract.mjs +38 -0
- package/dist/modules/carrier-contract.mjs.map +7 -0
- package/dist/modules/carrier.mjs +13 -0
- package/dist/modules/carrier.mjs.map +7 -0
- package/dist/modules/chunks/chunk-2ASWB6IX.mjs +225 -0
- package/dist/modules/chunks/chunk-2ASWB6IX.mjs.map +7 -0
- package/dist/modules/chunks/chunk-2IJKOG2F.mjs +801 -0
- package/dist/modules/chunks/chunk-2IJKOG2F.mjs.map +7 -0
- package/dist/modules/chunks/chunk-2K3BBJ5S.mjs +9 -0
- package/dist/modules/chunks/chunk-2K3BBJ5S.mjs.map +7 -0
- package/dist/modules/chunks/chunk-32GD5LL6.mjs +482 -0
- package/dist/modules/chunks/chunk-32GD5LL6.mjs.map +7 -0
- package/dist/modules/chunks/chunk-3B4KFAEC.mjs +10 -0
- package/dist/modules/chunks/chunk-3B4KFAEC.mjs.map +7 -0
- package/dist/modules/chunks/chunk-46O5WX43.mjs +25 -0
- package/dist/modules/chunks/chunk-46O5WX43.mjs.map +7 -0
- package/dist/modules/chunks/chunk-47J5JXAB.mjs +237 -0
- package/dist/modules/chunks/chunk-47J5JXAB.mjs.map +7 -0
- package/dist/modules/chunks/chunk-4BXQOUDQ.mjs +17 -0
- package/dist/modules/chunks/chunk-4BXQOUDQ.mjs.map +7 -0
- package/dist/modules/chunks/chunk-4GQWYU2V.mjs +126 -0
- package/dist/modules/chunks/chunk-4GQWYU2V.mjs.map +7 -0
- package/dist/modules/chunks/chunk-4N5X2PRQ.mjs +48 -0
- package/dist/modules/chunks/chunk-4N5X2PRQ.mjs.map +7 -0
- package/dist/modules/chunks/chunk-4WXD2KYX.mjs +56 -0
- package/dist/modules/chunks/chunk-4WXD2KYX.mjs.map +7 -0
- package/dist/modules/chunks/chunk-6ZWWVAZK.mjs +468 -0
- package/dist/modules/chunks/chunk-6ZWWVAZK.mjs.map +7 -0
- package/dist/modules/chunks/chunk-73UZNRHN.mjs +296 -0
- package/dist/modules/chunks/chunk-73UZNRHN.mjs.map +7 -0
- package/dist/modules/chunks/chunk-7ITLCRND.mjs +10 -0
- package/dist/modules/chunks/chunk-7ITLCRND.mjs.map +7 -0
- package/dist/modules/chunks/chunk-7TGVWKH7.mjs +59 -0
- package/dist/modules/chunks/chunk-7TGVWKH7.mjs.map +7 -0
- package/dist/modules/chunks/chunk-7URFF53W.mjs +42 -0
- package/dist/modules/chunks/chunk-7URFF53W.mjs.map +7 -0
- package/dist/modules/chunks/chunk-7YSDRIFN.mjs +14 -0
- package/dist/modules/chunks/chunk-7YSDRIFN.mjs.map +7 -0
- package/dist/modules/chunks/chunk-AAFVCQPK.mjs +52 -0
- package/dist/modules/chunks/chunk-AAFVCQPK.mjs.map +7 -0
- package/dist/modules/chunks/chunk-AEK7ZESQ.mjs +18 -0
- package/dist/modules/chunks/chunk-AEK7ZESQ.mjs.map +7 -0
- package/dist/modules/chunks/chunk-AL6ZWIEU.mjs +42 -0
- package/dist/modules/chunks/chunk-AL6ZWIEU.mjs.map +7 -0
- package/dist/modules/chunks/chunk-ALT7XVMQ.mjs +73 -0
- package/dist/modules/chunks/chunk-ALT7XVMQ.mjs.map +7 -0
- package/dist/modules/chunks/chunk-ASI2HBE6.mjs +116 -0
- package/dist/modules/chunks/chunk-ASI2HBE6.mjs.map +7 -0
- package/dist/modules/chunks/chunk-ATWGCH7I.mjs +174 -0
- package/dist/modules/chunks/chunk-ATWGCH7I.mjs.map +7 -0
- package/dist/modules/chunks/chunk-C45U6IIY.mjs +692 -0
- package/dist/modules/chunks/chunk-C45U6IIY.mjs.map +7 -0
- package/dist/modules/chunks/chunk-C7R3YRA7.mjs +98 -0
- package/dist/modules/chunks/chunk-C7R3YRA7.mjs.map +7 -0
- package/dist/modules/chunks/chunk-CRMICXKN.mjs +87 -0
- package/dist/modules/chunks/chunk-CRMICXKN.mjs.map +7 -0
- package/dist/modules/chunks/chunk-CUH2G6UF.mjs +81 -0
- package/dist/modules/chunks/chunk-CUH2G6UF.mjs.map +7 -0
- package/dist/modules/chunks/chunk-D7GWRZLL.mjs +77 -0
- package/dist/modules/chunks/chunk-D7GWRZLL.mjs.map +7 -0
- package/dist/modules/chunks/chunk-DBWUIBE3.mjs +10 -0
- package/dist/modules/chunks/chunk-DBWUIBE3.mjs.map +7 -0
- package/dist/modules/chunks/chunk-DQWVWWUU.mjs +77 -0
- package/dist/modules/chunks/chunk-DQWVWWUU.mjs.map +7 -0
- package/dist/modules/chunks/chunk-DZZ2WFEU.mjs +122 -0
- package/dist/modules/chunks/chunk-DZZ2WFEU.mjs.map +7 -0
- package/dist/modules/chunks/chunk-E4UIAN26.mjs +58 -0
- package/dist/modules/chunks/chunk-E4UIAN26.mjs.map +7 -0
- package/dist/modules/chunks/chunk-EJGBVKFE.mjs +77 -0
- package/dist/modules/chunks/chunk-EJGBVKFE.mjs.map +7 -0
- package/dist/modules/chunks/chunk-EPSTTHWV.mjs +173 -0
- package/dist/modules/chunks/chunk-EPSTTHWV.mjs.map +7 -0
- package/dist/modules/chunks/chunk-ER7T6QJ3.mjs +64 -0
- package/dist/modules/chunks/chunk-ER7T6QJ3.mjs.map +7 -0
- package/dist/modules/chunks/chunk-FD4BAJ6K.mjs +389 -0
- package/dist/modules/chunks/chunk-FD4BAJ6K.mjs.map +7 -0
- package/dist/modules/chunks/chunk-FJM6WWIY.mjs +80 -0
- package/dist/modules/chunks/chunk-FJM6WWIY.mjs.map +7 -0
- package/dist/modules/chunks/chunk-FKCQYDLX.mjs +162 -0
- package/dist/modules/chunks/chunk-FKCQYDLX.mjs.map +7 -0
- package/dist/modules/chunks/chunk-FLGC65SR.mjs +10 -0
- package/dist/modules/chunks/chunk-FLGC65SR.mjs.map +7 -0
- package/dist/modules/chunks/chunk-FMCACPX5.mjs +289 -0
- package/dist/modules/chunks/chunk-FMCACPX5.mjs.map +7 -0
- package/dist/modules/chunks/chunk-FOBRLUQV.mjs +51 -0
- package/dist/modules/chunks/chunk-FOBRLUQV.mjs.map +7 -0
- package/dist/modules/chunks/chunk-FV3DSKZB.mjs +33 -0
- package/dist/modules/chunks/chunk-FV3DSKZB.mjs.map +7 -0
- package/dist/modules/chunks/chunk-G7BAFAGO.mjs +98 -0
- package/dist/modules/chunks/chunk-G7BAFAGO.mjs.map +7 -0
- package/dist/modules/chunks/chunk-GQBZMCTK.mjs +145 -0
- package/dist/modules/chunks/chunk-GQBZMCTK.mjs.map +7 -0
- package/dist/modules/chunks/chunk-GYWIY7AL.mjs +131 -0
- package/dist/modules/chunks/chunk-GYWIY7AL.mjs.map +7 -0
- package/dist/modules/chunks/chunk-H3KNBALD.mjs +256 -0
- package/dist/modules/chunks/chunk-H3KNBALD.mjs.map +7 -0
- package/dist/modules/chunks/chunk-H3M22JDL.mjs +144 -0
- package/dist/modules/chunks/chunk-H3M22JDL.mjs.map +7 -0
- package/dist/modules/chunks/chunk-HES3DNTM.mjs +40 -0
- package/dist/modules/chunks/chunk-HES3DNTM.mjs.map +7 -0
- package/dist/modules/chunks/chunk-I5BFP7SS.mjs +2392 -0
- package/dist/modules/chunks/chunk-I5BFP7SS.mjs.map +7 -0
- package/dist/modules/chunks/chunk-IGRMZYRD.mjs +15 -0
- package/dist/modules/chunks/chunk-IGRMZYRD.mjs.map +7 -0
- package/dist/modules/chunks/chunk-IKNGC766.mjs +321 -0
- package/dist/modules/chunks/chunk-IKNGC766.mjs.map +7 -0
- package/dist/modules/chunks/chunk-IVHNYKZB.mjs +35 -0
- package/dist/modules/chunks/chunk-IVHNYKZB.mjs.map +7 -0
- package/dist/modules/chunks/chunk-JHOURMYW.mjs +101 -0
- package/dist/modules/chunks/chunk-JHOURMYW.mjs.map +7 -0
- package/dist/modules/chunks/chunk-JURXMRFA.mjs +282 -0
- package/dist/modules/chunks/chunk-JURXMRFA.mjs.map +7 -0
- package/dist/modules/chunks/chunk-JWZIREC3.mjs +18 -0
- package/dist/modules/chunks/chunk-JWZIREC3.mjs.map +7 -0
- package/dist/modules/chunks/chunk-KHRTIZ56.mjs +1400 -0
- package/dist/modules/chunks/chunk-KHRTIZ56.mjs.map +7 -0
- package/dist/modules/chunks/chunk-KLJZZ23J.mjs +102 -0
- package/dist/modules/chunks/chunk-KLJZZ23J.mjs.map +7 -0
- package/dist/modules/chunks/chunk-KNBAYU5I.mjs +49 -0
- package/dist/modules/chunks/chunk-KNBAYU5I.mjs.map +7 -0
- package/dist/modules/chunks/chunk-KSZNCFU4.mjs +125 -0
- package/dist/modules/chunks/chunk-KSZNCFU4.mjs.map +7 -0
- package/dist/modules/chunks/chunk-L45W6KM6.mjs +158 -0
- package/dist/modules/chunks/chunk-L45W6KM6.mjs.map +7 -0
- package/dist/modules/chunks/chunk-LERMYZRC.mjs +239 -0
- package/dist/modules/chunks/chunk-LERMYZRC.mjs.map +7 -0
- package/dist/modules/chunks/chunk-LKJCXYSJ.mjs +91 -0
- package/dist/modules/chunks/chunk-LKJCXYSJ.mjs.map +7 -0
- package/dist/modules/chunks/chunk-MBS3EICT.mjs +25 -0
- package/dist/modules/chunks/chunk-MBS3EICT.mjs.map +7 -0
- package/dist/modules/chunks/chunk-MUOQZPVH.mjs +609 -0
- package/dist/modules/chunks/chunk-MUOQZPVH.mjs.map +7 -0
- package/dist/modules/chunks/chunk-MVEPGFSB.mjs +1 -0
- package/dist/modules/chunks/chunk-MVEPGFSB.mjs.map +7 -0
- package/dist/modules/chunks/chunk-NBJKLWJ5.mjs +42 -0
- package/dist/modules/chunks/chunk-NBJKLWJ5.mjs.map +7 -0
- package/dist/modules/chunks/chunk-NBLGKTEM.mjs +86 -0
- package/dist/modules/chunks/chunk-NBLGKTEM.mjs.map +7 -0
- package/dist/modules/chunks/chunk-NI7CS3I2.mjs +110 -0
- package/dist/modules/chunks/chunk-NI7CS3I2.mjs.map +7 -0
- package/dist/modules/chunks/chunk-NJH2OJFC.mjs +2113 -0
- package/dist/modules/chunks/chunk-NJH2OJFC.mjs.map +7 -0
- package/dist/modules/chunks/chunk-OBK4LIJB.mjs +20 -0
- package/dist/modules/chunks/chunk-OBK4LIJB.mjs.map +7 -0
- package/dist/modules/chunks/chunk-PEUT3FW7.mjs +1 -0
- package/dist/modules/chunks/chunk-PEUT3FW7.mjs.map +7 -0
- package/dist/modules/chunks/chunk-PRZOWPDN.mjs +66 -0
- package/dist/modules/chunks/chunk-PRZOWPDN.mjs.map +7 -0
- package/dist/modules/chunks/chunk-Q4RXBGQS.mjs +55 -0
- package/dist/modules/chunks/chunk-Q4RXBGQS.mjs.map +7 -0
- package/dist/modules/chunks/chunk-QBHBKOIL.mjs +55 -0
- package/dist/modules/chunks/chunk-QBHBKOIL.mjs.map +7 -0
- package/dist/modules/chunks/chunk-QD6CCRMG.mjs +20 -0
- package/dist/modules/chunks/chunk-QD6CCRMG.mjs.map +7 -0
- package/dist/modules/chunks/chunk-QF4V23GW.mjs +39 -0
- package/dist/modules/chunks/chunk-QF4V23GW.mjs.map +7 -0
- package/dist/modules/chunks/chunk-QK6W7MJO.mjs +42 -0
- package/dist/modules/chunks/chunk-QK6W7MJO.mjs.map +7 -0
- package/dist/modules/chunks/chunk-QL7V6DK7.mjs +34 -0
- package/dist/modules/chunks/chunk-QL7V6DK7.mjs.map +7 -0
- package/dist/modules/chunks/chunk-QLBQQKRI.mjs +25 -0
- package/dist/modules/chunks/chunk-QLBQQKRI.mjs.map +7 -0
- package/dist/modules/chunks/chunk-QLZQGZDC.mjs +418 -0
- package/dist/modules/chunks/chunk-QLZQGZDC.mjs.map +7 -0
- package/dist/modules/chunks/chunk-QSKQZGK7.mjs +1625 -0
- package/dist/modules/chunks/chunk-QSKQZGK7.mjs.map +7 -0
- package/dist/modules/chunks/chunk-QURKBAG4.mjs +25 -0
- package/dist/modules/chunks/chunk-QURKBAG4.mjs.map +7 -0
- package/dist/modules/chunks/chunk-R274XBEH.mjs +53 -0
- package/dist/modules/chunks/chunk-R274XBEH.mjs.map +7 -0
- package/dist/modules/chunks/chunk-R4I4JEY5.mjs +77 -0
- package/dist/modules/chunks/chunk-R4I4JEY5.mjs.map +7 -0
- package/dist/modules/chunks/chunk-RR6L6VVR.mjs +9 -0
- package/dist/modules/chunks/chunk-RR6L6VVR.mjs.map +7 -0
- package/dist/modules/chunks/chunk-RXF7SBBZ.mjs +125 -0
- package/dist/modules/chunks/chunk-RXF7SBBZ.mjs.map +7 -0
- package/dist/modules/chunks/chunk-SR66S6EJ.mjs +138 -0
- package/dist/modules/chunks/chunk-SR66S6EJ.mjs.map +7 -0
- package/dist/modules/chunks/chunk-SSQMQJ52.mjs +27 -0
- package/dist/modules/chunks/chunk-SSQMQJ52.mjs.map +7 -0
- package/dist/modules/chunks/chunk-TP26TASL.mjs +20 -0
- package/dist/modules/chunks/chunk-TP26TASL.mjs.map +7 -0
- package/dist/modules/chunks/chunk-TSAEK5P3.mjs +50 -0
- package/dist/modules/chunks/chunk-TSAEK5P3.mjs.map +7 -0
- package/dist/modules/chunks/chunk-UAY27HT3.mjs +68 -0
- package/dist/modules/chunks/chunk-UAY27HT3.mjs.map +7 -0
- package/dist/modules/chunks/chunk-UDLIWGWS.mjs +103 -0
- package/dist/modules/chunks/chunk-UDLIWGWS.mjs.map +7 -0
- package/dist/modules/chunks/chunk-UDVQHPWV.mjs +89 -0
- package/dist/modules/chunks/chunk-UDVQHPWV.mjs.map +7 -0
- package/dist/modules/chunks/chunk-UM23W3G7.mjs +237 -0
- package/dist/modules/chunks/chunk-UM23W3G7.mjs.map +7 -0
- package/dist/modules/chunks/chunk-VDZJWEAA.mjs +214 -0
- package/dist/modules/chunks/chunk-VDZJWEAA.mjs.map +7 -0
- package/dist/modules/chunks/chunk-VIGOJWSO.mjs +42 -0
- package/dist/modules/chunks/chunk-VIGOJWSO.mjs.map +7 -0
- package/dist/modules/chunks/chunk-VY3S5BWI.mjs +284 -0
- package/dist/modules/chunks/chunk-VY3S5BWI.mjs.map +7 -0
- package/dist/modules/chunks/chunk-VZXGRZYU.mjs +47 -0
- package/dist/modules/chunks/chunk-VZXGRZYU.mjs.map +7 -0
- package/dist/modules/chunks/chunk-W5DMQZB5.mjs +42 -0
- package/dist/modules/chunks/chunk-W5DMQZB5.mjs.map +7 -0
- package/dist/modules/chunks/chunk-WOMHSTVZ.mjs +918 -0
- package/dist/modules/chunks/chunk-WOMHSTVZ.mjs.map +7 -0
- package/dist/modules/chunks/chunk-XFQT7XCG.mjs +42 -0
- package/dist/modules/chunks/chunk-XFQT7XCG.mjs.map +7 -0
- package/dist/modules/chunks/chunk-XJZEVRYX.mjs +98 -0
- package/dist/modules/chunks/chunk-XJZEVRYX.mjs.map +7 -0
- package/dist/modules/chunks/chunk-XUYFV23R.mjs +317 -0
- package/dist/modules/chunks/chunk-XUYFV23R.mjs.map +7 -0
- package/dist/modules/chunks/chunk-Y5HXCPPQ.mjs +58 -0
- package/dist/modules/chunks/chunk-Y5HXCPPQ.mjs.map +7 -0
- package/dist/modules/chunks/chunk-YTHGRKGI.mjs +147 -0
- package/dist/modules/chunks/chunk-YTHGRKGI.mjs.map +7 -0
- package/dist/modules/chunks/chunk-YVQSDKAO.mjs +341 -0
- package/dist/modules/chunks/chunk-YVQSDKAO.mjs.map +7 -0
- package/dist/modules/chunks/chunk-YYXQDUVT.mjs +123 -0
- package/dist/modules/chunks/chunk-YYXQDUVT.mjs.map +7 -0
- package/dist/modules/chunks/chunk-ZFXZ2NUI.mjs +142 -0
- package/dist/modules/chunks/chunk-ZFXZ2NUI.mjs.map +7 -0
- package/dist/modules/chunks/chunk-ZLNWF4ET.mjs +9 -0
- package/dist/modules/chunks/chunk-ZLNWF4ET.mjs.map +7 -0
- package/dist/modules/chunks/chunk-ZLU5QW2O.mjs +9 -0
- package/dist/modules/chunks/chunk-ZLU5QW2O.mjs.map +7 -0
- package/dist/modules/chunks/chunk-ZNZPYE2V.mjs +28 -0
- package/dist/modules/chunks/chunk-ZNZPYE2V.mjs.map +7 -0
- package/dist/modules/chunks/core-564N45MO.mjs +7480 -0
- package/dist/modules/chunks/core-564N45MO.mjs.map +7 -0
- package/dist/modules/chunks/css-BKH4SVJG.mjs +8 -0
- package/dist/modules/chunks/css-BKH4SVJG.mjs.map +7 -0
- package/dist/modules/chunks/engine-javascript-PDVIGNGR.mjs +3241 -0
- package/dist/modules/chunks/engine-javascript-PDVIGNGR.mjs.map +7 -0
- package/dist/modules/chunks/github-dark-default-6HVTHEWF.mjs +8 -0
- package/dist/modules/chunks/github-dark-default-6HVTHEWF.mjs.map +7 -0
- package/dist/modules/chunks/github-light-default-LAXRA6XL.mjs +8 -0
- package/dist/modules/chunks/github-light-default-LAXRA6XL.mjs.map +7 -0
- package/dist/modules/chunks/glsl-UC3YWUD2.mjs +18 -0
- package/dist/modules/chunks/glsl-UC3YWUD2.mjs.map +7 -0
- package/dist/modules/chunks/html-FRVIUV63.mjs +19 -0
- package/dist/modules/chunks/html-FRVIUV63.mjs.map +7 -0
- package/dist/modules/chunks/javascript-LN3OC7S2.mjs +8 -0
- package/dist/modules/chunks/javascript-LN3OC7S2.mjs.map +7 -0
- package/dist/modules/chunks/json-5CUGWTOP.mjs +11 -0
- package/dist/modules/chunks/json-5CUGWTOP.mjs.map +7 -0
- package/dist/modules/chunks/json5-YZQI5VNO.mjs +11 -0
- package/dist/modules/chunks/json5-YZQI5VNO.mjs.map +7 -0
- package/dist/modules/chunks/jsonc-SWID6VOZ.mjs +11 -0
- package/dist/modules/chunks/jsonc-SWID6VOZ.mjs.map +7 -0
- package/dist/modules/chunks/jsx-A7RDCLJO.mjs +11 -0
- package/dist/modules/chunks/jsx-A7RDCLJO.mjs.map +7 -0
- package/dist/modules/chunks/markdown-QTCU5KP5.mjs +11 -0
- package/dist/modules/chunks/markdown-QTCU5KP5.mjs.map +7 -0
- package/dist/modules/chunks/python-LAZONBIB.mjs +11 -0
- package/dist/modules/chunks/python-LAZONBIB.mjs.map +7 -0
- package/dist/modules/chunks/rust-XWTPJFJO.mjs +11 -0
- package/dist/modules/chunks/rust-XWTPJFJO.mjs.map +7 -0
- package/dist/modules/chunks/scss-CFXRHUUW.mjs +15 -0
- package/dist/modules/chunks/scss-CFXRHUUW.mjs.map +7 -0
- package/dist/modules/chunks/shellscript-OHO3LCVU.mjs +11 -0
- package/dist/modules/chunks/shellscript-OHO3LCVU.mjs.map +7 -0
- package/dist/modules/chunks/toml-IOHFZJ5B.mjs +11 -0
- package/dist/modules/chunks/toml-IOHFZJ5B.mjs.map +7 -0
- package/dist/modules/chunks/tsx-2E6WNX2E.mjs +11 -0
- package/dist/modules/chunks/tsx-2E6WNX2E.mjs.map +7 -0
- package/dist/modules/chunks/typescript-PBKAS54P.mjs +11 -0
- package/dist/modules/chunks/typescript-PBKAS54P.mjs.map +7 -0
- package/dist/modules/chunks/wgsl-PS6QPRLZ.mjs +11 -0
- package/dist/modules/chunks/wgsl-PS6QPRLZ.mjs.map +7 -0
- package/dist/modules/chunks/xml-JECR2ACB.mjs +18 -0
- package/dist/modules/chunks/xml-JECR2ACB.mjs.map +7 -0
- package/dist/modules/chunks/yaml-P2SV4LOE.mjs +11 -0
- package/dist/modules/chunks/yaml-P2SV4LOE.mjs.map +7 -0
- package/dist/modules/cli-contributions.mjs +32 -0
- package/dist/modules/cli-contributions.mjs.map +7 -0
- package/dist/modules/cli.mjs +14 -0
- package/dist/modules/cli.mjs.map +7 -0
- package/dist/modules/command-executor.mjs +65 -0
- package/dist/modules/command-executor.mjs.map +7 -0
- package/dist/modules/commands.mjs +10 -0
- package/dist/modules/commands.mjs.map +7 -0
- package/dist/modules/embedded.mjs +18608 -0
- package/dist/modules/embedded.mjs.map +7 -0
- package/dist/modules/extension-bridge.mjs +18 -0
- package/dist/modules/extension-bridge.mjs.map +7 -0
- package/dist/modules/frontend-root.mjs +61 -0
- package/dist/modules/frontend-root.mjs.map +7 -0
- package/dist/modules/index.mjs +784 -0
- package/dist/modules/index.mjs.map +7 -0
- package/dist/modules/page.mjs +45 -0
- package/dist/modules/page.mjs.map +7 -0
- package/dist/modules/pages/scene.mjs +18 -0
- package/dist/modules/pages/scene.mjs.map +7 -0
- package/dist/modules/plugin.mjs +56 -0
- package/dist/modules/plugin.mjs.map +7 -0
- package/dist/modules/plugins/asset/frontend.mjs +23 -0
- package/dist/modules/plugins/asset/frontend.mjs.map +7 -0
- package/dist/modules/plugins/asset/i18n.mjs +15 -0
- package/dist/modules/plugins/asset/i18n.mjs.map +7 -0
- package/dist/modules/plugins/asset/identity.mjs +42 -0
- package/dist/modules/plugins/asset/identity.mjs.map +7 -0
- package/dist/modules/plugins/asset/schema.mjs +10 -0
- package/dist/modules/plugins/asset/schema.mjs.map +7 -0
- package/dist/modules/plugins/asset/ui.mjs +16 -0
- package/dist/modules/plugins/asset/ui.mjs.map +7 -0
- package/dist/modules/plugins/content-browser/frontend.mjs +17 -0
- package/dist/modules/plugins/content-browser/frontend.mjs.map +7 -0
- package/dist/modules/plugins/content-browser/i18n.mjs +15 -0
- package/dist/modules/plugins/content-browser/i18n.mjs.map +7 -0
- package/dist/modules/plugins/content-browser/identity.mjs +22 -0
- package/dist/modules/plugins/content-browser/identity.mjs.map +7 -0
- package/dist/modules/plugins/content-browser/schema.mjs +12 -0
- package/dist/modules/plugins/content-browser/schema.mjs.map +7 -0
- package/dist/modules/plugins/content-browser/ui.mjs +15 -0
- package/dist/modules/plugins/content-browser/ui.mjs.map +7 -0
- package/dist/modules/plugins/display/api.mjs +10 -0
- package/dist/modules/plugins/display/api.mjs.map +7 -0
- package/dist/modules/plugins/display/backend.mjs +16 -0
- package/dist/modules/plugins/display/backend.mjs.map +7 -0
- package/dist/modules/plugins/display/carrier-contract.mjs +38 -0
- package/dist/modules/plugins/display/carrier-contract.mjs.map +7 -0
- package/dist/modules/plugins/display/carrier.mjs +13 -0
- package/dist/modules/plugins/display/carrier.mjs.map +7 -0
- package/dist/modules/plugins/display/effects.mjs +8 -0
- package/dist/modules/plugins/display/effects.mjs.map +7 -0
- package/dist/modules/plugins/display/frontend.mjs +14 -0
- package/dist/modules/plugins/display/frontend.mjs.map +7 -0
- package/dist/modules/plugins/display/i18n.mjs +58 -0
- package/dist/modules/plugins/display/i18n.mjs.map +7 -0
- package/dist/modules/plugins/display/identity.mjs +30 -0
- package/dist/modules/plugins/display/identity.mjs.map +7 -0
- package/dist/modules/plugins/display/page-broker.mjs +12 -0
- package/dist/modules/plugins/display/page-broker.mjs.map +7 -0
- package/dist/modules/plugins/display/schema.mjs +40 -0
- package/dist/modules/plugins/display/schema.mjs.map +7 -0
- package/dist/modules/plugins/display/ui.mjs +9 -0
- package/dist/modules/plugins/display/ui.mjs.map +7 -0
- package/dist/modules/plugins/inspector/frontend.mjs +17 -0
- package/dist/modules/plugins/inspector/frontend.mjs.map +7 -0
- package/dist/modules/plugins/inspector/i18n.mjs +15 -0
- package/dist/modules/plugins/inspector/i18n.mjs.map +7 -0
- package/dist/modules/plugins/inspector/identity.mjs +22 -0
- package/dist/modules/plugins/inspector/identity.mjs.map +7 -0
- package/dist/modules/plugins/inspector/schema.mjs +12 -0
- package/dist/modules/plugins/inspector/schema.mjs.map +7 -0
- package/dist/modules/plugins/inspector/ui.mjs +16 -0
- package/dist/modules/plugins/inspector/ui.mjs.map +7 -0
- package/dist/modules/plugins/material/frontend.mjs +25 -0
- package/dist/modules/plugins/material/frontend.mjs.map +7 -0
- package/dist/modules/plugins/material/i18n.mjs +15 -0
- package/dist/modules/plugins/material/i18n.mjs.map +7 -0
- package/dist/modules/plugins/material/identity.mjs +60 -0
- package/dist/modules/plugins/material/identity.mjs.map +7 -0
- package/dist/modules/plugins/material/schema.mjs +47 -0
- package/dist/modules/plugins/material/schema.mjs.map +7 -0
- package/dist/modules/plugins/material/ui.mjs +28 -0
- package/dist/modules/plugins/material/ui.mjs.map +7 -0
- package/dist/modules/plugins/mesh/frontend.mjs +23 -0
- package/dist/modules/plugins/mesh/frontend.mjs.map +7 -0
- package/dist/modules/plugins/mesh/i18n.mjs +15 -0
- package/dist/modules/plugins/mesh/i18n.mjs.map +7 -0
- package/dist/modules/plugins/mesh/identity.mjs +54 -0
- package/dist/modules/plugins/mesh/identity.mjs.map +7 -0
- package/dist/modules/plugins/mesh/schema.mjs +10 -0
- package/dist/modules/plugins/mesh/schema.mjs.map +7 -0
- package/dist/modules/plugins/mesh/ui.mjs +26 -0
- package/dist/modules/plugins/mesh/ui.mjs.map +7 -0
- package/dist/modules/plugins/plugins/api.mjs +11 -0
- package/dist/modules/plugins/plugins/api.mjs.map +7 -0
- package/dist/modules/plugins/plugins/backend.mjs +21 -0
- package/dist/modules/plugins/plugins/backend.mjs.map +7 -0
- package/dist/modules/plugins/plugins/cli.mjs +12 -0
- package/dist/modules/plugins/plugins/cli.mjs.map +7 -0
- package/dist/modules/plugins/plugins/frontend.mjs +17 -0
- package/dist/modules/plugins/plugins/frontend.mjs.map +7 -0
- package/dist/modules/plugins/plugins/i18n.mjs +15 -0
- package/dist/modules/plugins/plugins/i18n.mjs.map +7 -0
- package/dist/modules/plugins/plugins/identity.mjs +26 -0
- package/dist/modules/plugins/plugins/identity.mjs.map +7 -0
- package/dist/modules/plugins/plugins/runtime.mjs +50 -0
- package/dist/modules/plugins/plugins/runtime.mjs.map +7 -0
- package/dist/modules/plugins/plugins/schema.mjs +12 -0
- package/dist/modules/plugins/plugins/schema.mjs.map +7 -0
- package/dist/modules/plugins/plugins/ui/panel.mjs +14 -0
- package/dist/modules/plugins/plugins/ui/panel.mjs.map +7 -0
- package/dist/modules/plugins/plugins/ui.mjs +15 -0
- package/dist/modules/plugins/plugins/ui.mjs.map +7 -0
- package/dist/modules/plugins/scene/frontend.mjs +18 -0
- package/dist/modules/plugins/scene/frontend.mjs.map +7 -0
- package/dist/modules/plugins/scene/identity.mjs +14 -0
- package/dist/modules/plugins/scene/identity.mjs.map +7 -0
- package/dist/modules/plugins/scene-tree/frontend.mjs +17 -0
- package/dist/modules/plugins/scene-tree/frontend.mjs.map +7 -0
- package/dist/modules/plugins/scene-tree/i18n.mjs +15 -0
- package/dist/modules/plugins/scene-tree/i18n.mjs.map +7 -0
- package/dist/modules/plugins/scene-tree/identity.mjs +22 -0
- package/dist/modules/plugins/scene-tree/identity.mjs.map +7 -0
- package/dist/modules/plugins/scene-tree/schema.mjs +12 -0
- package/dist/modules/plugins/scene-tree/schema.mjs.map +7 -0
- package/dist/modules/plugins/scene-tree/ui.mjs +16 -0
- package/dist/modules/plugins/scene-tree/ui.mjs.map +7 -0
- package/dist/modules/plugins/texture/frontend.mjs +23 -0
- package/dist/modules/plugins/texture/frontend.mjs.map +7 -0
- package/dist/modules/plugins/texture/i18n.mjs +15 -0
- package/dist/modules/plugins/texture/i18n.mjs.map +7 -0
- package/dist/modules/plugins/texture/identity.mjs +54 -0
- package/dist/modules/plugins/texture/identity.mjs.map +7 -0
- package/dist/modules/plugins/texture/schema.mjs +10 -0
- package/dist/modules/plugins/texture/schema.mjs.map +7 -0
- package/dist/modules/plugins/texture/ui.mjs +26 -0
- package/dist/modules/plugins/texture/ui.mjs.map +7 -0
- package/dist/modules/plugins/viewport/frontend.mjs +27 -0
- package/dist/modules/plugins/viewport/frontend.mjs.map +7 -0
- package/dist/modules/plugins/viewport/identity.mjs +28 -0
- package/dist/modules/plugins/viewport/identity.mjs.map +7 -0
- package/dist/modules/plugins/viewport/presentation-identity.mjs +10 -0
- package/dist/modules/plugins/viewport/presentation-identity.mjs.map +7 -0
- package/dist/modules/plugins/viewport/presentation.mjs +18 -0
- package/dist/modules/plugins/viewport/presentation.mjs.map +7 -0
- package/dist/modules/plugins/viewport/schema.mjs +18 -0
- package/dist/modules/plugins/viewport/schema.mjs.map +7 -0
- package/dist/modules/plugins/viewport/workspace-shell.mjs +29 -0
- package/dist/modules/plugins/viewport/workspace-shell.mjs.map +7 -0
- package/dist/modules/shell/contract.mjs +10 -0
- package/dist/modules/shell/contract.mjs.map +7 -0
- package/dist/modules/shell/frontend.mjs +14 -0
- package/dist/modules/shell/frontend.mjs.map +7 -0
- package/dist/modules/shell/layout-zones.mjs +20 -0
- package/dist/modules/shell/layout-zones.mjs.map +7 -0
- package/dist/modules/start-cli.mjs +57 -0
- package/dist/modules/start-cli.mjs.map +7 -0
- package/dist/modules/start.mjs +18 -0
- package/dist/modules/start.mjs.map +7 -0
- package/dist/modules/viewer/catalog/backend.mjs +47 -0
- package/dist/modules/viewer/catalog/backend.mjs.map +7 -0
- package/dist/modules/viewer/catalog/frontend.mjs +55 -0
- package/dist/modules/viewer/catalog/frontend.mjs.map +7 -0
- package/dist/modules/viewer/catalog/shared.mjs +43 -0
- package/dist/modules/viewer/catalog/shared.mjs.map +7 -0
- package/dist/modules/viewer/catalog.mjs +85 -0
- package/dist/modules/viewer/catalog.mjs.map +7 -0
- package/dist/modules/viewer/cli.mjs +23 -0
- package/dist/modules/viewer/cli.mjs.map +7 -0
- package/dist/modules/viewer-host/frontend.mjs +65 -0
- package/dist/modules/viewer-host/frontend.mjs.map +7 -0
- package/dist/modules/viewer-host/page-registry.mjs +27 -0
- package/dist/modules/viewer-host/page-registry.mjs.map +7 -0
- package/dist/modules/viewer-host/slot-registry.mjs +8 -0
- package/dist/modules/viewer-host/slot-registry.mjs.map +7 -0
- package/dist/modules/viewer-host.mjs +43 -0
- package/dist/modules/viewer-host.mjs.map +7 -0
- package/dist/modules/viewer.mjs +85 -0
- package/dist/modules/viewer.mjs.map +7 -0
- package/dist/modules/workspace/adopt-surface.mjs +16 -0
- package/dist/modules/workspace/adopt-surface.mjs.map +7 -0
- package/dist/modules/workspace/api.mjs +8 -0
- package/dist/modules/workspace/api.mjs.map +7 -0
- package/dist/modules/workspace/backend.mjs +23 -0
- package/dist/modules/workspace/backend.mjs.map +7 -0
- package/dist/modules/workspace/broker.mjs +16 -0
- package/dist/modules/workspace/broker.mjs.map +7 -0
- package/dist/modules/workspace/cli.mjs +9 -0
- package/dist/modules/workspace/cli.mjs.map +7 -0
- package/dist/modules/workspace/client.mjs +15 -0
- package/dist/modules/workspace/client.mjs.map +7 -0
- package/dist/modules/workspace/command-error.mjs +16 -0
- package/dist/modules/workspace/command-error.mjs.map +7 -0
- package/dist/modules/workspace/contract.mjs +71 -0
- package/dist/modules/workspace/contract.mjs.map +7 -0
- package/dist/modules/workspace/demo-client.mjs +127 -0
- package/dist/modules/workspace/demo-client.mjs.map +7 -0
- package/dist/modules/workspace/engine-adapter.mjs +16 -0
- package/dist/modules/workspace/engine-adapter.mjs.map +7 -0
- package/dist/modules/workspace/engine-presentation.mjs +10 -0
- package/dist/modules/workspace/engine-presentation.mjs.map +7 -0
- package/dist/modules/workspace/extension-bridge.mjs +18 -0
- package/dist/modules/workspace/extension-bridge.mjs.map +7 -0
- package/dist/modules/workspace/frontend-plugin.mjs +18 -0
- package/dist/modules/workspace/frontend-plugin.mjs.map +7 -0
- package/dist/modules/workspace/frontend.mjs +29 -0
- package/dist/modules/workspace/frontend.mjs.map +7 -0
- package/dist/modules/workspace/id.mjs +8 -0
- package/dist/modules/workspace/id.mjs.map +7 -0
- package/dist/modules/workspace/inspection-presentation.mjs +12 -0
- package/dist/modules/workspace/inspection-presentation.mjs.map +7 -0
- package/dist/modules/workspace/locale-bridge.mjs +14 -0
- package/dist/modules/workspace/locale-bridge.mjs.map +7 -0
- package/dist/modules/workspace/page-title.mjs +13 -0
- package/dist/modules/workspace/page-title.mjs.map +7 -0
- package/dist/modules/workspace/presentation.mjs +18 -0
- package/dist/modules/workspace/presentation.mjs.map +7 -0
- package/dist/modules/workspace/preview-surface.mjs +17 -0
- package/dist/modules/workspace/preview-surface.mjs.map +7 -0
- package/dist/modules/workspace/project-session.mjs +18 -0
- package/dist/modules/workspace/project-session.mjs.map +7 -0
- package/dist/modules/workspace/render-resize-sync.mjs +12 -0
- package/dist/modules/workspace/render-resize-sync.mjs.map +7 -0
- package/dist/modules/workspace/resident.mjs +16 -0
- package/dist/modules/workspace/resident.mjs.map +7 -0
- package/dist/modules/workspace/resource-open.mjs +34 -0
- package/dist/modules/workspace/resource-open.mjs.map +7 -0
- package/dist/modules/workspace/resource-page.mjs +27 -0
- package/dist/modules/workspace/resource-page.mjs.map +7 -0
- package/dist/modules/workspace/tool-runtime.mjs +14 -0
- package/dist/modules/workspace/tool-runtime.mjs.map +7 -0
- package/dist/modules/workspace/view-trace.mjs +60 -0
- package/dist/modules/workspace/view-trace.mjs.map +7 -0
- package/dist/modules/workspace/workspace-client-connection.mjs +22 -0
- package/dist/modules/workspace/workspace-client-connection.mjs.map +7 -0
- package/dist/modules/workspace/workspace-recovery.mjs +35 -0
- package/dist/modules/workspace/workspace-recovery.mjs.map +7 -0
- package/dist/modules/workspace/workspace-state.mjs +12 -0
- package/dist/modules/workspace/workspace-state.mjs.map +7 -0
- package/dist/modules/workspace-frontend.mjs +17 -0
- package/dist/modules/workspace-frontend.mjs.map +7 -0
- package/dist/viewer/assets/chunk-CilyBKbf.js +1 -0
- package/dist/viewer/assets/core-DSQma37-.js +13 -0
- package/dist/viewer/assets/core-DSQma37-.js.map +1 -0
- package/dist/viewer/assets/css-Bq1BXecw.js +2 -0
- package/dist/viewer/assets/css-Bq1BXecw.js.map +1 -0
- package/dist/viewer/assets/css-CWQWazmX.js +1 -0
- package/dist/viewer/assets/embedded-D4ZDx--W.js +2 -0
- package/dist/viewer/assets/embedded-D4ZDx--W.js.map +1 -0
- package/dist/viewer/assets/engine-javascript-BvokIV9O.js +142 -0
- package/dist/viewer/assets/engine-javascript-BvokIV9O.js.map +1 -0
- package/dist/viewer/assets/github-dark-default-DaDlj-WZ.js +2 -0
- package/dist/viewer/assets/github-dark-default-DaDlj-WZ.js.map +1 -0
- package/dist/viewer/assets/github-light-default-BqhWxAZd.js +2 -0
- package/dist/viewer/assets/github-light-default-BqhWxAZd.js.map +1 -0
- package/dist/viewer/assets/glsl-BJgVnv11.js +2 -0
- package/dist/viewer/assets/glsl-BJgVnv11.js.map +1 -0
- package/dist/viewer/assets/html-AaaHGGyt.js +2 -0
- package/dist/viewer/assets/html-AaaHGGyt.js.map +1 -0
- package/dist/viewer/assets/javascript-BX9W64FE.js +1 -0
- package/dist/viewer/assets/javascript-DQODvD07.js +2 -0
- package/dist/viewer/assets/javascript-DQODvD07.js.map +1 -0
- package/dist/viewer/assets/json-CpcIDpT7.js +2 -0
- package/dist/viewer/assets/json-CpcIDpT7.js.map +1 -0
- package/dist/viewer/assets/json5-Czq4A7dk.js +2 -0
- package/dist/viewer/assets/json5-Czq4A7dk.js.map +1 -0
- package/dist/viewer/assets/jsonc-BXDfCMmu.js +2 -0
- package/dist/viewer/assets/jsonc-BXDfCMmu.js.map +1 -0
- package/dist/viewer/assets/jsx-DAWscEnf.js +2 -0
- package/dist/viewer/assets/jsx-DAWscEnf.js.map +1 -0
- package/dist/viewer/assets/main-C-2CHTN_.js +15 -0
- package/dist/viewer/assets/main-C-2CHTN_.js.map +1 -0
- package/dist/viewer/assets/markdown-Cx1FMNw-.js +2 -0
- package/dist/viewer/assets/markdown-Cx1FMNw-.js.map +1 -0
- package/dist/viewer/assets/panels-entry-Ddhfjgf0.js +46 -0
- package/dist/viewer/assets/panels-entry-Ddhfjgf0.js.map +1 -0
- package/dist/viewer/assets/python-CYPKjWV9.js +2 -0
- package/dist/viewer/assets/python-CYPKjWV9.js.map +1 -0
- package/dist/viewer/assets/rust-0e5cNx_V.js +2 -0
- package/dist/viewer/assets/rust-0e5cNx_V.js.map +1 -0
- package/dist/viewer/assets/scss-B-aKzLbT.js +2 -0
- package/dist/viewer/assets/scss-B-aKzLbT.js.map +1 -0
- package/dist/viewer/assets/shellscript-CpXD-pSm.js +2 -0
- package/dist/viewer/assets/shellscript-CpXD-pSm.js.map +1 -0
- package/dist/viewer/assets/style-ClttNKZk.css +2 -0
- package/dist/viewer/assets/styles-BXozhwiU.js +11 -0
- package/dist/viewer/assets/styles-BXozhwiU.js.map +1 -0
- package/dist/viewer/assets/toml-GmchYTXa.js +2 -0
- package/dist/viewer/assets/toml-GmchYTXa.js.map +1 -0
- package/dist/viewer/assets/tsx-Crj1Bi53.js +2 -0
- package/dist/viewer/assets/tsx-Crj1Bi53.js.map +1 -0
- package/dist/viewer/assets/typescript-xi0cSHCO.js +2 -0
- package/dist/viewer/assets/typescript-xi0cSHCO.js.map +1 -0
- package/dist/viewer/assets/wgsl-BoEPRo9U.js +2 -0
- package/dist/viewer/assets/wgsl-BoEPRo9U.js.map +1 -0
- package/dist/viewer/assets/xml-B8JqQrMD.js +2 -0
- package/dist/viewer/assets/xml-B8JqQrMD.js.map +1 -0
- package/dist/viewer/assets/yaml-DsIB85X9.js +2 -0
- package/dist/viewer/assets/yaml-DsIB85X9.js.map +1 -0
- package/dist/viewer/index.html +15 -0
- package/dist/viewer/panels.js +1 -0
- package/host.pack.json +13 -0
- package/package.json +174 -0
- package/skills/forgeax-view-cli/SKILL.md +74 -0
- package/skills/forgeax-view-start/SKILL.md +202 -0
- package/skills/forgeax-view-start/scripts/start-view.mjs +202 -0
|
@@ -0,0 +1,784 @@
|
|
|
1
|
+
import {
|
|
2
|
+
VIEW_ENGINE_ASSET_SOURCE_TOOLS,
|
|
3
|
+
VIEW_ENGINE_WORKSPACE_ADAPTER,
|
|
4
|
+
createEngineWorkspaceAdapter,
|
|
5
|
+
isEngineWorkspaceAdapter
|
|
6
|
+
} from "./chunks/chunk-FD4BAJ6K.mjs";
|
|
7
|
+
import {
|
|
8
|
+
FORGEAX_VIEW_PLUGIN_ID,
|
|
9
|
+
FORGEAX_VIEW_PLUGIN_MODULE,
|
|
10
|
+
product_default
|
|
11
|
+
} from "./chunks/chunk-H3KNBALD.mjs";
|
|
12
|
+
import {
|
|
13
|
+
createViewCliContributions,
|
|
14
|
+
createViewHostCliContributions
|
|
15
|
+
} from "./chunks/chunk-Q4RXBGQS.mjs";
|
|
16
|
+
import "./chunks/chunk-JWZIREC3.mjs";
|
|
17
|
+
import "./chunks/chunk-7ITLCRND.mjs";
|
|
18
|
+
import {
|
|
19
|
+
VIEW_CLI_CONTRIBUTION_ID
|
|
20
|
+
} from "./chunks/chunk-HES3DNTM.mjs";
|
|
21
|
+
import "./chunks/chunk-AEK7ZESQ.mjs";
|
|
22
|
+
import "./chunks/chunk-DQWVWWUU.mjs";
|
|
23
|
+
import "./chunks/chunk-KSZNCFU4.mjs";
|
|
24
|
+
import "./chunks/chunk-MVEPGFSB.mjs";
|
|
25
|
+
import {
|
|
26
|
+
runViewWorkspaceCli
|
|
27
|
+
} from "./chunks/chunk-2ASWB6IX.mjs";
|
|
28
|
+
import {
|
|
29
|
+
runViewStartInteractive
|
|
30
|
+
} from "./chunks/chunk-AAFVCQPK.mjs";
|
|
31
|
+
import "./chunks/chunk-4GQWYU2V.mjs";
|
|
32
|
+
import "./chunks/chunk-QL7V6DK7.mjs";
|
|
33
|
+
import "./chunks/chunk-FOBRLUQV.mjs";
|
|
34
|
+
import {
|
|
35
|
+
connectViewFrontend,
|
|
36
|
+
mountViewViewer,
|
|
37
|
+
mountViewWorkspace
|
|
38
|
+
} from "./chunks/chunk-ZFXZ2NUI.mjs";
|
|
39
|
+
import "./chunks/chunk-SR66S6EJ.mjs";
|
|
40
|
+
import "./chunks/chunk-YVQSDKAO.mjs";
|
|
41
|
+
import "./chunks/chunk-4WXD2KYX.mjs";
|
|
42
|
+
import "./chunks/chunk-GYWIY7AL.mjs";
|
|
43
|
+
import "./chunks/chunk-QURKBAG4.mjs";
|
|
44
|
+
import "./chunks/chunk-6ZWWVAZK.mjs";
|
|
45
|
+
import "./chunks/chunk-MBS3EICT.mjs";
|
|
46
|
+
import "./chunks/chunk-QLBQQKRI.mjs";
|
|
47
|
+
import "./chunks/chunk-ZNZPYE2V.mjs";
|
|
48
|
+
import "./chunks/chunk-NBJKLWJ5.mjs";
|
|
49
|
+
import "./chunks/chunk-AL6ZWIEU.mjs";
|
|
50
|
+
import "./chunks/chunk-UAY27HT3.mjs";
|
|
51
|
+
import {
|
|
52
|
+
ViewDisplayStatus,
|
|
53
|
+
frontend_default
|
|
54
|
+
} from "./chunks/chunk-YTHGRKGI.mjs";
|
|
55
|
+
import {
|
|
56
|
+
ViewWorkspaceInputController,
|
|
57
|
+
ViewWorkspaceShell,
|
|
58
|
+
createBrowserPagePresentation,
|
|
59
|
+
isViewportWorkspaceInputEvent
|
|
60
|
+
} from "./chunks/chunk-QSKQZGK7.mjs";
|
|
61
|
+
import "./chunks/chunk-7TGVWKH7.mjs";
|
|
62
|
+
import "./chunks/chunk-UDVQHPWV.mjs";
|
|
63
|
+
import "./chunks/chunk-PEUT3FW7.mjs";
|
|
64
|
+
import "./chunks/chunk-UDLIWGWS.mjs";
|
|
65
|
+
import "./chunks/chunk-4BXQOUDQ.mjs";
|
|
66
|
+
import "./chunks/chunk-G7BAFAGO.mjs";
|
|
67
|
+
import "./chunks/chunk-QF4V23GW.mjs";
|
|
68
|
+
import "./chunks/chunk-FV3DSKZB.mjs";
|
|
69
|
+
import "./chunks/chunk-OBK4LIJB.mjs";
|
|
70
|
+
import {
|
|
71
|
+
createViewBackend,
|
|
72
|
+
createViewHostBinding,
|
|
73
|
+
createViewPlatformBinding
|
|
74
|
+
} from "./chunks/chunk-EPSTTHWV.mjs";
|
|
75
|
+
import "./chunks/chunk-XFQT7XCG.mjs";
|
|
76
|
+
import "./chunks/chunk-L45W6KM6.mjs";
|
|
77
|
+
import {
|
|
78
|
+
DEFAULT_CAPABILITIES,
|
|
79
|
+
ViewResourceBroker
|
|
80
|
+
} from "./chunks/chunk-XUYFV23R.mjs";
|
|
81
|
+
import {
|
|
82
|
+
disposeResource
|
|
83
|
+
} from "./chunks/chunk-QD6CCRMG.mjs";
|
|
84
|
+
import "./chunks/chunk-JHOURMYW.mjs";
|
|
85
|
+
import "./chunks/chunk-R4I4JEY5.mjs";
|
|
86
|
+
import {
|
|
87
|
+
ViewWorkspaceBroker
|
|
88
|
+
} from "./chunks/chunk-C45U6IIY.mjs";
|
|
89
|
+
import "./chunks/chunk-IVHNYKZB.mjs";
|
|
90
|
+
import {
|
|
91
|
+
DEFAULT_PATH,
|
|
92
|
+
connectViewWorkspace,
|
|
93
|
+
startViewHostServer
|
|
94
|
+
} from "./chunks/chunk-73UZNRHN.mjs";
|
|
95
|
+
import {
|
|
96
|
+
VIEW_INSPECTOR_API_VERSION,
|
|
97
|
+
VIEW_INSPECTOR_OPERATIONS,
|
|
98
|
+
VIEW_INSPECTOR_SERVICES,
|
|
99
|
+
VIEW_INSPECTOR_TOPIC,
|
|
100
|
+
VIEW_STATUS_OPERATION,
|
|
101
|
+
ViewInspectorBroker,
|
|
102
|
+
ViewInspectorClient,
|
|
103
|
+
ViewInspectorPanel,
|
|
104
|
+
createInspectorRequest,
|
|
105
|
+
createViewInspectorToolContributions,
|
|
106
|
+
createViewStatusToolContributions,
|
|
107
|
+
createViewWorkspaceToolContributions,
|
|
108
|
+
runInspectorToolApi,
|
|
109
|
+
runViewToolApi,
|
|
110
|
+
runWorkspaceToolApi,
|
|
111
|
+
safeDetail,
|
|
112
|
+
safeError,
|
|
113
|
+
viewInspectorBackendPlugin,
|
|
114
|
+
viewInspectorFrontendPlugin
|
|
115
|
+
} from "./chunks/chunk-KHRTIZ56.mjs";
|
|
116
|
+
import "./chunks/chunk-IGRMZYRD.mjs";
|
|
117
|
+
import "./chunks/chunk-H3M22JDL.mjs";
|
|
118
|
+
import {
|
|
119
|
+
createViewProductPlan,
|
|
120
|
+
viewFrontendRoot
|
|
121
|
+
} from "./chunks/chunk-RXF7SBBZ.mjs";
|
|
122
|
+
import "./chunks/chunk-Y5HXCPPQ.mjs";
|
|
123
|
+
import "./chunks/chunk-QK6W7MJO.mjs";
|
|
124
|
+
import "./chunks/chunk-VIGOJWSO.mjs";
|
|
125
|
+
import "./chunks/chunk-7URFF53W.mjs";
|
|
126
|
+
import {
|
|
127
|
+
DISPLAY_SURFACE_ID,
|
|
128
|
+
VIEW_STATUS_SERVICE,
|
|
129
|
+
VIEW_STATUS_TOPIC
|
|
130
|
+
} from "./chunks/chunk-KNBAYU5I.mjs";
|
|
131
|
+
import "./chunks/chunk-TSAEK5P3.mjs";
|
|
132
|
+
import "./chunks/chunk-VZXGRZYU.mjs";
|
|
133
|
+
import {
|
|
134
|
+
VIEW_WORKSPACE_PAGE_LOST_CODE,
|
|
135
|
+
VIEW_WORKSPACE_TARGET_RECOVERY_CODES,
|
|
136
|
+
adoptRemoteWorkspaceProject,
|
|
137
|
+
isWorkspacePageLostError,
|
|
138
|
+
isWorkspaceTargetRecoveryCode,
|
|
139
|
+
navigateToWorkspaceProjectTarget,
|
|
140
|
+
reopenWorkspaceProject,
|
|
141
|
+
resolveWorkspaceFailure,
|
|
142
|
+
resolveWorkspaceFailureCode,
|
|
143
|
+
resolveWorkspaceReopenRoot,
|
|
144
|
+
shouldAdoptRemoteWorkspaceProject,
|
|
145
|
+
shouldOfferWorkspaceRecovery,
|
|
146
|
+
workspaceProjectTargetUrl
|
|
147
|
+
} from "./chunks/chunk-VDZJWEAA.mjs";
|
|
148
|
+
import "./chunks/chunk-EJGBVKFE.mjs";
|
|
149
|
+
import "./chunks/chunk-D7GWRZLL.mjs";
|
|
150
|
+
import "./chunks/chunk-NBLGKTEM.mjs";
|
|
151
|
+
import "./chunks/chunk-YYXQDUVT.mjs";
|
|
152
|
+
import "./chunks/chunk-LERMYZRC.mjs";
|
|
153
|
+
import "./chunks/chunk-ALT7XVMQ.mjs";
|
|
154
|
+
import "./chunks/chunk-SSQMQJ52.mjs";
|
|
155
|
+
import "./chunks/chunk-C7R3YRA7.mjs";
|
|
156
|
+
import {
|
|
157
|
+
ViewWorkspaceClient,
|
|
158
|
+
createViewWorkspaceClient,
|
|
159
|
+
workspaceBrowserEndpoint
|
|
160
|
+
} from "./chunks/chunk-VY3S5BWI.mjs";
|
|
161
|
+
import "./chunks/chunk-FMCACPX5.mjs";
|
|
162
|
+
import "./chunks/chunk-FKCQYDLX.mjs";
|
|
163
|
+
import "./chunks/chunk-2IJKOG2F.mjs";
|
|
164
|
+
import "./chunks/chunk-ASI2HBE6.mjs";
|
|
165
|
+
import "./chunks/chunk-RR6L6VVR.mjs";
|
|
166
|
+
import "./chunks/chunk-46O5WX43.mjs";
|
|
167
|
+
import "./chunks/chunk-FJM6WWIY.mjs";
|
|
168
|
+
import {
|
|
169
|
+
VIEW_DISPLAY_TAB_ID,
|
|
170
|
+
VIEW_FILE_GET_SERVICE,
|
|
171
|
+
VIEW_PAGE_TYPES,
|
|
172
|
+
VIEW_WORKSPACE_API_VERSION,
|
|
173
|
+
VIEW_WORKSPACE_COOK_MODES,
|
|
174
|
+
VIEW_WORKSPACE_CORE_OPERATIONS,
|
|
175
|
+
VIEW_WORKSPACE_DOMAIN_OPERATIONS,
|
|
176
|
+
VIEW_WORKSPACE_OPERATIONS,
|
|
177
|
+
VIEW_WORKSPACE_SERVICES,
|
|
178
|
+
VIEW_WORKSPACE_STATE_TOPIC,
|
|
179
|
+
VIEW_WORKSPACE_TAB_ID,
|
|
180
|
+
ViewWorkspaceError,
|
|
181
|
+
assertWorkspaceRequest,
|
|
182
|
+
cloneWorkspaceValue,
|
|
183
|
+
createWorkspaceRequest,
|
|
184
|
+
isOpaqueWorkspaceDiagnostic,
|
|
185
|
+
jsonUnchanged,
|
|
186
|
+
requireWorkspaceInteger,
|
|
187
|
+
requireWorkspaceObject,
|
|
188
|
+
requireWorkspaceString,
|
|
189
|
+
serializeWorkspaceAsset,
|
|
190
|
+
serializeWorkspaceDdc,
|
|
191
|
+
serializeWorkspaceInspection,
|
|
192
|
+
serializeWorkspaceOpenRequest,
|
|
193
|
+
serializeWorkspaceProject,
|
|
194
|
+
serializeWorkspaceResourceOpens,
|
|
195
|
+
serializeWorkspaceState,
|
|
196
|
+
serializeWorkspaceTarget,
|
|
197
|
+
workspaceCapabilities,
|
|
198
|
+
workspaceError,
|
|
199
|
+
workspaceInspectionFactRows,
|
|
200
|
+
workspaceUiFingerprint
|
|
201
|
+
} from "./chunks/chunk-32GD5LL6.mjs";
|
|
202
|
+
import {
|
|
203
|
+
createWorkspaceId
|
|
204
|
+
} from "./chunks/chunk-TP26TASL.mjs";
|
|
205
|
+
import "./chunks/chunk-ZLNWF4ET.mjs";
|
|
206
|
+
import {
|
|
207
|
+
VIEW_ENGINE_CARRIER_CONTRACT,
|
|
208
|
+
ViewCarrierAdapter,
|
|
209
|
+
createViewCarrierAdapter
|
|
210
|
+
} from "./chunks/chunk-CUH2G6UF.mjs";
|
|
211
|
+
import {
|
|
212
|
+
BROWSER_CARRIER,
|
|
213
|
+
FALLBACK_REASONS,
|
|
214
|
+
GPU_MODES,
|
|
215
|
+
VIEW_CARRIER,
|
|
216
|
+
VIEW_PROTOCOL,
|
|
217
|
+
VIEW_PROTOCOL_VERSION,
|
|
218
|
+
assertLeaseTarget,
|
|
219
|
+
browserFallback,
|
|
220
|
+
createLeaseRequest,
|
|
221
|
+
createRunIdentity,
|
|
222
|
+
deserializeRequest,
|
|
223
|
+
isFallbackDecision,
|
|
224
|
+
normalizeRunIdentity,
|
|
225
|
+
sameRun,
|
|
226
|
+
serializeTarget,
|
|
227
|
+
viewDecision
|
|
228
|
+
} from "./chunks/chunk-GQBZMCTK.mjs";
|
|
229
|
+
import "./chunks/chunk-FLGC65SR.mjs";
|
|
230
|
+
|
|
231
|
+
// src/platform/browser-page.mjs
|
|
232
|
+
var BrowserPagePlatform = class {
|
|
233
|
+
constructor({
|
|
234
|
+
page,
|
|
235
|
+
targetId = "view-browser-page",
|
|
236
|
+
kind = "browser-page",
|
|
237
|
+
capabilities = {}
|
|
238
|
+
} = {}) {
|
|
239
|
+
assertPage(page);
|
|
240
|
+
if (typeof targetId !== "string" || targetId.length === 0) {
|
|
241
|
+
throw new TypeError("browser page targetId must be a non-empty string");
|
|
242
|
+
}
|
|
243
|
+
if (typeof kind !== "string" || kind.length === 0) {
|
|
244
|
+
throw new TypeError("browser page kind must be a non-empty string");
|
|
245
|
+
}
|
|
246
|
+
this.page = page;
|
|
247
|
+
this.targetId = targetId;
|
|
248
|
+
this.kind = kind;
|
|
249
|
+
this.capabilityOverrides = { ...capabilities };
|
|
250
|
+
this.active = null;
|
|
251
|
+
this.disposed = false;
|
|
252
|
+
}
|
|
253
|
+
getCapabilities() {
|
|
254
|
+
const ready = !this.disposed && !pageIsClosed(this.page);
|
|
255
|
+
return {
|
|
256
|
+
// `auto` is the only honest default. An embedding browser owner may
|
|
257
|
+
// add hardware/software after it has probed the actual adapter.
|
|
258
|
+
maxWidth: 8192,
|
|
259
|
+
maxHeight: 8192,
|
|
260
|
+
canvasSizing: "fixed",
|
|
261
|
+
...this.capabilityOverrides,
|
|
262
|
+
ready: ready && (this.capabilityOverrides.ready ?? true),
|
|
263
|
+
supportsPage: ready && (this.capabilityOverrides.supportsPage ?? true),
|
|
264
|
+
gpuModes: [...this.capabilityOverrides.gpuModes ?? ["auto"]]
|
|
265
|
+
};
|
|
266
|
+
}
|
|
267
|
+
async createPage({ leaseId, generation, width, height, signal, onLost } = {}) {
|
|
268
|
+
if (typeof leaseId !== "string" || leaseId.length === 0) {
|
|
269
|
+
throw new TypeError("browser page leaseId must be a non-empty string");
|
|
270
|
+
}
|
|
271
|
+
if (!Number.isSafeInteger(generation) || generation < 0) {
|
|
272
|
+
throw new TypeError("browser page generation must be a non-negative safe integer");
|
|
273
|
+
}
|
|
274
|
+
assertDimension(width, "width");
|
|
275
|
+
assertDimension(height, "height");
|
|
276
|
+
throwIfAborted(signal);
|
|
277
|
+
if (this.disposed || pageIsClosed(this.page)) {
|
|
278
|
+
throw Object.assign(new Error("the supplied browser page is no longer available"), {
|
|
279
|
+
fallbackReason: "view-target-lost"
|
|
280
|
+
});
|
|
281
|
+
}
|
|
282
|
+
if (this.active !== null) {
|
|
283
|
+
throw Object.assign(new Error("the supplied browser page is already leased"), {
|
|
284
|
+
fallbackReason: "view-occupied"
|
|
285
|
+
});
|
|
286
|
+
}
|
|
287
|
+
const surfaceId = "forgeax-view-display-surface";
|
|
288
|
+
const surfaceSelector = `#${surfaceId}`;
|
|
289
|
+
try {
|
|
290
|
+
await this.page.waitForFunction(
|
|
291
|
+
(id) => document.getElementById(id)?.tagName === "IFRAME",
|
|
292
|
+
surfaceId,
|
|
293
|
+
{ timeout: 15e3 }
|
|
294
|
+
);
|
|
295
|
+
await this.page.evaluate(({ surfaceId: surfaceId2, leaseId: leaseId2, generation: generation2, targetId }) => {
|
|
296
|
+
const surface = document.getElementById(surfaceId2);
|
|
297
|
+
if (!surface || surface.tagName !== "IFRAME") {
|
|
298
|
+
throw new Error(`the display Frontend Fiber iframe is unavailable: ${surfaceId2}`);
|
|
299
|
+
}
|
|
300
|
+
if (surface.name !== surfaceId2) {
|
|
301
|
+
throw new Error(`the display Frontend Fiber iframe has an invalid name: ${surface.name}`);
|
|
302
|
+
}
|
|
303
|
+
surface.dataset.forgeaxViewSurface = "engine-target";
|
|
304
|
+
surface.dataset.forgeaxViewTargetId = String(targetId);
|
|
305
|
+
surface.dataset.forgeaxViewLeaseId = String(leaseId2);
|
|
306
|
+
surface.dataset.forgeaxViewGeneration = String(generation2);
|
|
307
|
+
surface.setAttribute("aria-hidden", "true");
|
|
308
|
+
surface.style.display = "block";
|
|
309
|
+
surface.style.visibility = "hidden";
|
|
310
|
+
surface.style.pointerEvents = "none";
|
|
311
|
+
surface.style.border = "0";
|
|
312
|
+
surface.style.width = "100%";
|
|
313
|
+
surface.style.height = "100%";
|
|
314
|
+
}, { surfaceId, leaseId, generation, targetId: this.targetId });
|
|
315
|
+
let frame = this.page.frame({ name: surfaceId });
|
|
316
|
+
if (!frame) {
|
|
317
|
+
await this.page.waitForFunction(
|
|
318
|
+
(id) => document.getElementById(id)?.tagName === "IFRAME",
|
|
319
|
+
surfaceId,
|
|
320
|
+
{ timeout: 15e3 }
|
|
321
|
+
);
|
|
322
|
+
frame = this.page.frame({ name: surfaceId });
|
|
323
|
+
}
|
|
324
|
+
if (!frame) {
|
|
325
|
+
throw Object.assign(
|
|
326
|
+
new Error("the allocated display iframe did not expose its execution frame"),
|
|
327
|
+
{ fallbackReason: "view-target-lost" }
|
|
328
|
+
);
|
|
329
|
+
}
|
|
330
|
+
const resource = {
|
|
331
|
+
leaseId,
|
|
332
|
+
generation,
|
|
333
|
+
targetId: this.targetId,
|
|
334
|
+
kind: this.kind,
|
|
335
|
+
surfaceId,
|
|
336
|
+
page: this.page,
|
|
337
|
+
execution: {
|
|
338
|
+
kind: "frame",
|
|
339
|
+
ownerPage: this.page,
|
|
340
|
+
realm: frame,
|
|
341
|
+
surfaceSelector
|
|
342
|
+
},
|
|
343
|
+
requestedCanvasSize: Object.freeze({ width, height }),
|
|
344
|
+
dispose: async () => {
|
|
345
|
+
if (this.active !== resource) return;
|
|
346
|
+
this.detachPageListeners(resource);
|
|
347
|
+
if (typeof frame.goto === "function") await frame.goto("about:blank").catch(() => {
|
|
348
|
+
});
|
|
349
|
+
await this.page.evaluate((id) => {
|
|
350
|
+
const surface = document.getElementById(id);
|
|
351
|
+
if (!surface) return;
|
|
352
|
+
delete surface.dataset.forgeaxViewTargetId;
|
|
353
|
+
delete surface.dataset.forgeaxViewLeaseId;
|
|
354
|
+
delete surface.dataset.forgeaxViewGeneration;
|
|
355
|
+
surface.style.visibility = "hidden";
|
|
356
|
+
surface.style.pointerEvents = "none";
|
|
357
|
+
}, surfaceId).catch(() => {
|
|
358
|
+
});
|
|
359
|
+
if (this.active === resource) this.active = null;
|
|
360
|
+
}
|
|
361
|
+
};
|
|
362
|
+
const onClose = () => {
|
|
363
|
+
if (this.active !== resource) return;
|
|
364
|
+
this.detachPageListeners(resource);
|
|
365
|
+
this.active = null;
|
|
366
|
+
onLost?.("browser-page-closed");
|
|
367
|
+
};
|
|
368
|
+
const onFrameDetached = (detachedFrame) => {
|
|
369
|
+
if (this.active !== resource || detachedFrame !== frame) return;
|
|
370
|
+
this.detachPageListeners(resource);
|
|
371
|
+
this.active = null;
|
|
372
|
+
onLost?.("browser-frame-detached");
|
|
373
|
+
};
|
|
374
|
+
resource.onClose = onClose;
|
|
375
|
+
resource.onFrameDetached = onFrameDetached;
|
|
376
|
+
this.active = resource;
|
|
377
|
+
this.attachPageListeners(resource);
|
|
378
|
+
if (signal?.aborted) {
|
|
379
|
+
await resource.dispose();
|
|
380
|
+
throwIfAborted(signal);
|
|
381
|
+
}
|
|
382
|
+
return resource;
|
|
383
|
+
} catch (error) {
|
|
384
|
+
throw error;
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
detachPageListeners(resource) {
|
|
388
|
+
if (typeof this.page.off !== "function") return;
|
|
389
|
+
const listener = resource.onClose;
|
|
390
|
+
if (listener === void 0) return;
|
|
391
|
+
this.page.off("close", listener);
|
|
392
|
+
this.page.off("crash", listener);
|
|
393
|
+
if (resource.onFrameDetached !== void 0) this.page.off("framedetached", resource.onFrameDetached);
|
|
394
|
+
}
|
|
395
|
+
attachPageListeners(resource) {
|
|
396
|
+
if (typeof this.page.on !== "function") return;
|
|
397
|
+
this.page.on("close", resource.onClose);
|
|
398
|
+
this.page.on("crash", resource.onClose);
|
|
399
|
+
if (resource.onFrameDetached !== void 0) this.page.on("framedetached", resource.onFrameDetached);
|
|
400
|
+
}
|
|
401
|
+
async dispose() {
|
|
402
|
+
if (this.disposed) return;
|
|
403
|
+
this.disposed = true;
|
|
404
|
+
const active = this.active;
|
|
405
|
+
if (active !== null) await active.dispose();
|
|
406
|
+
}
|
|
407
|
+
};
|
|
408
|
+
function assertPage(page) {
|
|
409
|
+
if (!page || typeof page !== "object") throw new TypeError("an existing browser page is required");
|
|
410
|
+
if (typeof page.goto !== "function" || typeof page.evaluate !== "function" || typeof page.locator !== "function" || typeof page.frame !== "function" || typeof page.waitForFunction !== "function" || typeof page.waitForTimeout !== "function") {
|
|
411
|
+
throw new TypeError(
|
|
412
|
+
"the supplied browser page must provide goto, evaluate, locator, frame, waitForFunction, and waitForTimeout"
|
|
413
|
+
);
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
function pageIsClosed(page) {
|
|
417
|
+
return typeof page.isClosed === "function" && page.isClosed();
|
|
418
|
+
}
|
|
419
|
+
function assertDimension(value, field) {
|
|
420
|
+
if (!Number.isSafeInteger(value) || value <= 0) {
|
|
421
|
+
throw new TypeError(`${field} must be a positive safe integer`);
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
function throwIfAborted(signal) {
|
|
425
|
+
if (!signal?.aborted) return;
|
|
426
|
+
const error = signal.reason ?? new Error("browser page allocation was cancelled");
|
|
427
|
+
if (error instanceof Error && error.name === "AbortError") throw error;
|
|
428
|
+
if (error instanceof Error) {
|
|
429
|
+
error.name = "AbortError";
|
|
430
|
+
throw error;
|
|
431
|
+
}
|
|
432
|
+
throw Object.assign(new Error("browser page allocation was cancelled"), {
|
|
433
|
+
name: "AbortError",
|
|
434
|
+
cause: error
|
|
435
|
+
});
|
|
436
|
+
}
|
|
437
|
+
function createBrowserPagePlatform(options) {
|
|
438
|
+
return new BrowserPagePlatform(options);
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
// src/platform/resource-browser.mjs
|
|
442
|
+
var ResourceBrowserPlatform = class {
|
|
443
|
+
constructor({ targetId = "view-resource-browser" } = {}) {
|
|
444
|
+
if (typeof targetId !== "string" || targetId.length === 0) {
|
|
445
|
+
throw new TypeError("resource browser targetId must be a non-empty string");
|
|
446
|
+
}
|
|
447
|
+
this.targetId = targetId;
|
|
448
|
+
this.disposed = false;
|
|
449
|
+
}
|
|
450
|
+
getCapabilities() {
|
|
451
|
+
return Object.freeze({
|
|
452
|
+
ready: !this.disposed,
|
|
453
|
+
supportsPage: false,
|
|
454
|
+
resourceBrowser: true,
|
|
455
|
+
gpuModes: [],
|
|
456
|
+
maxWidth: 0,
|
|
457
|
+
maxHeight: 0,
|
|
458
|
+
canvasSizing: "none"
|
|
459
|
+
});
|
|
460
|
+
}
|
|
461
|
+
async createPage() {
|
|
462
|
+
throw Object.assign(new Error("the resource-browser host cannot allocate an Engine preview page"), {
|
|
463
|
+
fallbackReason: "view-resource-browser"
|
|
464
|
+
});
|
|
465
|
+
}
|
|
466
|
+
async dispose() {
|
|
467
|
+
this.disposed = true;
|
|
468
|
+
}
|
|
469
|
+
};
|
|
470
|
+
function createResourceBrowserPlatform(options) {
|
|
471
|
+
return new ResourceBrowserPlatform(options);
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
// src/bootstrap.mjs
|
|
475
|
+
import { createFrontendHost } from "@forgeax/engine-host";
|
|
476
|
+
async function startView(options = {}) {
|
|
477
|
+
const backend = await createViewBackend({
|
|
478
|
+
platform: options.platform,
|
|
479
|
+
capabilities: options.capabilities,
|
|
480
|
+
frontendConfig: options.frontendConfig,
|
|
481
|
+
disabledPages: options.disabledPages,
|
|
482
|
+
workspaceEngine: options.workspaceEngine,
|
|
483
|
+
workspaceAccessToken: options.workspaceAccessToken,
|
|
484
|
+
workspaceAuthorize: options.workspaceAuthorize,
|
|
485
|
+
engineHost: options.backendHost,
|
|
486
|
+
workspacePlugin: options.workspacePlugin,
|
|
487
|
+
workspaceOptions: options.workspaceOptions,
|
|
488
|
+
onActivationReport: options.onActivationReport,
|
|
489
|
+
workspaceServer: options.workspaceServer,
|
|
490
|
+
workspaceHost: options.workspaceHost,
|
|
491
|
+
workspacePort: options.workspacePort,
|
|
492
|
+
workspacePath: options.workspacePath,
|
|
493
|
+
staticRoot: options.staticRoot
|
|
494
|
+
});
|
|
495
|
+
const suppliedFrontendHost = options.frontendHost;
|
|
496
|
+
const createFrontend = options.frontend === true && suppliedFrontendHost === void 0;
|
|
497
|
+
const transport = createFrontend ? backend.backendHost.transport.connect({ kind: "frontend", sourceId: "view-frontend" }) : void 0;
|
|
498
|
+
if (transport && options.backendHost) {
|
|
499
|
+
backend.backendHost.bindProjection(transport.caller, { assembly: backend.hostBinding.frontendAssembly });
|
|
500
|
+
}
|
|
501
|
+
let frontendHost = suppliedFrontendHost;
|
|
502
|
+
let ownsFrontendHost = false;
|
|
503
|
+
try {
|
|
504
|
+
if (createFrontend) {
|
|
505
|
+
const { resolveViewFrontendRoot } = await import("./viewer-host/frontend.mjs");
|
|
506
|
+
frontendHost = await createFrontendHost({
|
|
507
|
+
context: options.frontendContext,
|
|
508
|
+
transport,
|
|
509
|
+
resolveRoot: (root) => resolveViewFrontendRoot(root, options.frontendConfig),
|
|
510
|
+
autoActivate: true
|
|
511
|
+
});
|
|
512
|
+
ownsFrontendHost = true;
|
|
513
|
+
}
|
|
514
|
+
return Object.freeze({
|
|
515
|
+
...backend,
|
|
516
|
+
...backend.workspaceFrontendEndpoint ? {
|
|
517
|
+
// A browser embedding needs the paired, server-issued frontend
|
|
518
|
+
// ticket; the CLI adapter strips that query before connecting.
|
|
519
|
+
workspaceEndpoint: backend.workspaceFrontendEndpoint,
|
|
520
|
+
workspaceUrl: backend.workspaceFrontendUrl
|
|
521
|
+
} : {},
|
|
522
|
+
frontendHost,
|
|
523
|
+
async dispose() {
|
|
524
|
+
if (ownsFrontendHost) await frontendHost.dispose();
|
|
525
|
+
transport?.close();
|
|
526
|
+
await backend.dispose();
|
|
527
|
+
}
|
|
528
|
+
});
|
|
529
|
+
} catch (error) {
|
|
530
|
+
transport?.close();
|
|
531
|
+
await backend.dispose().catch(() => {
|
|
532
|
+
});
|
|
533
|
+
throw error;
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
// src/viewer-static-server.mjs
|
|
538
|
+
import { createReadStream, existsSync, statSync } from "node:fs";
|
|
539
|
+
import { join, normalize } from "node:path";
|
|
540
|
+
import { createServer } from "node:http";
|
|
541
|
+
var VIEWER_BOOTSTRAP_PATH = "/__forgeax/view/bootstrap";
|
|
542
|
+
var STATIC_MIME = Object.freeze({
|
|
543
|
+
".html": "text/html; charset=utf-8",
|
|
544
|
+
".js": "text/javascript; charset=utf-8",
|
|
545
|
+
".css": "text/css; charset=utf-8",
|
|
546
|
+
".map": "application/json; charset=utf-8",
|
|
547
|
+
".svg": "image/svg+xml",
|
|
548
|
+
".png": "image/png",
|
|
549
|
+
".ico": "image/x-icon",
|
|
550
|
+
".json": "application/json; charset=utf-8"
|
|
551
|
+
});
|
|
552
|
+
function staticContentType(filePath) {
|
|
553
|
+
const index = filePath.lastIndexOf(".");
|
|
554
|
+
if (index === -1) return "application/octet-stream";
|
|
555
|
+
return STATIC_MIME[filePath.slice(index)] ?? "application/octet-stream";
|
|
556
|
+
}
|
|
557
|
+
function resolveStaticFile(root, requestPath) {
|
|
558
|
+
const relative = normalize(requestPath).replace(/^(\.\.(\/|\\|$))+/, "");
|
|
559
|
+
const absolute = join(root, relative);
|
|
560
|
+
if (!absolute.startsWith(root)) return void 0;
|
|
561
|
+
return absolute;
|
|
562
|
+
}
|
|
563
|
+
function createViewerBootstrapPayload(env = process.env) {
|
|
564
|
+
if (env.FORGEAX_VIEW_BOOTSTRAP_CONFIGURED !== "1") {
|
|
565
|
+
const reason = env.FORGEAX_VIEW_BOOTSTRAP_REASON?.trim() || "View workspace backend is not configured. Run forgeax backend start, then forgeax view start.";
|
|
566
|
+
return Object.freeze({ configured: false, reason });
|
|
567
|
+
}
|
|
568
|
+
const token = env.FORGEAX_VIEW_WORKSPACE_TOKEN?.trim();
|
|
569
|
+
const frontendEndpoint = env.FORGEAX_VIEW_FRONTEND_ENDPOINT?.trim();
|
|
570
|
+
const endpoint = env.FORGEAX_VIEW_WORKSPACE_ENDPOINT?.trim();
|
|
571
|
+
const frontendTicket = env.FORGEAX_VIEW_FRONTEND_TICKET?.trim();
|
|
572
|
+
if (!token || !frontendEndpoint) {
|
|
573
|
+
return Object.freeze({
|
|
574
|
+
configured: false,
|
|
575
|
+
reason: "View workspace bootstrap env is incomplete."
|
|
576
|
+
});
|
|
577
|
+
}
|
|
578
|
+
return Object.freeze({
|
|
579
|
+
configured: true,
|
|
580
|
+
token,
|
|
581
|
+
endpoint,
|
|
582
|
+
frontendEndpoint,
|
|
583
|
+
...frontendTicket === void 0 ? {} : { frontendTicket }
|
|
584
|
+
});
|
|
585
|
+
}
|
|
586
|
+
async function startViewerStaticServer({
|
|
587
|
+
host = "127.0.0.1",
|
|
588
|
+
port = 0,
|
|
589
|
+
staticRoot,
|
|
590
|
+
env = process.env
|
|
591
|
+
} = {}) {
|
|
592
|
+
if (!staticRoot || typeof staticRoot !== "string") {
|
|
593
|
+
throw new TypeError("viewer static server requires staticRoot");
|
|
594
|
+
}
|
|
595
|
+
const http = createServer((request, response) => {
|
|
596
|
+
const url = new URL(request.url ?? "/", "http://127.0.0.1");
|
|
597
|
+
if (url.pathname === VIEWER_BOOTSTRAP_PATH) {
|
|
598
|
+
response.statusCode = 200;
|
|
599
|
+
response.setHeader("Content-Type", "application/json; charset=utf-8");
|
|
600
|
+
response.setHeader("Cache-Control", "no-store");
|
|
601
|
+
response.end(JSON.stringify(createViewerBootstrapPayload(env)));
|
|
602
|
+
return;
|
|
603
|
+
}
|
|
604
|
+
let filePath = resolveStaticFile(staticRoot, url.pathname === "/" ? "/index.html" : url.pathname);
|
|
605
|
+
if (filePath && existsSync(filePath) && statSync(filePath).isFile()) {
|
|
606
|
+
response.statusCode = 200;
|
|
607
|
+
response.setHeader("Content-Type", staticContentType(filePath));
|
|
608
|
+
createReadStream(filePath).pipe(response);
|
|
609
|
+
return;
|
|
610
|
+
}
|
|
611
|
+
const spa = resolveStaticFile(staticRoot, "/index.html");
|
|
612
|
+
if (spa && existsSync(spa)) {
|
|
613
|
+
response.statusCode = 200;
|
|
614
|
+
response.setHeader("Content-Type", "text/html; charset=utf-8");
|
|
615
|
+
createReadStream(spa).pipe(response);
|
|
616
|
+
return;
|
|
617
|
+
}
|
|
618
|
+
response.statusCode = 404;
|
|
619
|
+
response.end("Not found");
|
|
620
|
+
});
|
|
621
|
+
await new Promise((resolveListen, rejectListen) => {
|
|
622
|
+
const onError = (error) => {
|
|
623
|
+
http.off("listening", onListening);
|
|
624
|
+
rejectListen(error);
|
|
625
|
+
};
|
|
626
|
+
const onListening = () => {
|
|
627
|
+
http.off("error", onError);
|
|
628
|
+
resolveListen();
|
|
629
|
+
};
|
|
630
|
+
http.once("error", onError);
|
|
631
|
+
http.once("listening", onListening);
|
|
632
|
+
http.listen(port, host);
|
|
633
|
+
});
|
|
634
|
+
const address = http.address();
|
|
635
|
+
const selectedPort = typeof address === "object" && address !== null ? address.port : port;
|
|
636
|
+
const loopbackHost = host === "0.0.0.0" ? "127.0.0.1" : host;
|
|
637
|
+
const viewerUrl = `http://${loopbackHost}:${selectedPort}/`;
|
|
638
|
+
const close = async () => {
|
|
639
|
+
await new Promise((resolveClose) => {
|
|
640
|
+
if (!http.listening) return resolveClose();
|
|
641
|
+
http.close(() => resolveClose());
|
|
642
|
+
});
|
|
643
|
+
};
|
|
644
|
+
return Object.freeze({
|
|
645
|
+
host: loopbackHost,
|
|
646
|
+
port: selectedPort,
|
|
647
|
+
viewerUrl,
|
|
648
|
+
bootstrapUrl: `${viewerUrl.replace(/\/$/, "")}${VIEWER_BOOTSTRAP_PATH}`,
|
|
649
|
+
server: http,
|
|
650
|
+
close
|
|
651
|
+
});
|
|
652
|
+
}
|
|
653
|
+
export {
|
|
654
|
+
BROWSER_CARRIER,
|
|
655
|
+
BrowserPagePlatform,
|
|
656
|
+
DEFAULT_CAPABILITIES,
|
|
657
|
+
FALLBACK_REASONS,
|
|
658
|
+
FORGEAX_VIEW_PLUGIN_ID,
|
|
659
|
+
FORGEAX_VIEW_PLUGIN_MODULE,
|
|
660
|
+
GPU_MODES,
|
|
661
|
+
ResourceBrowserPlatform,
|
|
662
|
+
VIEW_CARRIER,
|
|
663
|
+
VIEW_CLI_CONTRIBUTION_ID,
|
|
664
|
+
DISPLAY_SURFACE_ID as VIEW_DISPLAY_SURFACE_ID,
|
|
665
|
+
VIEW_DISPLAY_TAB_ID,
|
|
666
|
+
VIEW_ENGINE_ASSET_SOURCE_TOOLS,
|
|
667
|
+
VIEW_ENGINE_CARRIER_CONTRACT,
|
|
668
|
+
VIEW_ENGINE_WORKSPACE_ADAPTER,
|
|
669
|
+
VIEW_FILE_GET_SERVICE,
|
|
670
|
+
VIEW_INSPECTOR_API_VERSION,
|
|
671
|
+
VIEW_INSPECTOR_OPERATIONS,
|
|
672
|
+
VIEW_INSPECTOR_SERVICES,
|
|
673
|
+
VIEW_INSPECTOR_TOPIC,
|
|
674
|
+
VIEW_PAGE_TYPES,
|
|
675
|
+
VIEW_PROTOCOL,
|
|
676
|
+
VIEW_PROTOCOL_VERSION,
|
|
677
|
+
VIEW_STATUS_OPERATION,
|
|
678
|
+
VIEW_STATUS_SERVICE,
|
|
679
|
+
VIEW_STATUS_TOPIC,
|
|
680
|
+
VIEW_WORKSPACE_API_VERSION,
|
|
681
|
+
VIEW_WORKSPACE_COOK_MODES,
|
|
682
|
+
VIEW_WORKSPACE_CORE_OPERATIONS,
|
|
683
|
+
VIEW_WORKSPACE_DOMAIN_OPERATIONS,
|
|
684
|
+
DEFAULT_PATH as VIEW_WORKSPACE_HOST_PATH,
|
|
685
|
+
VIEW_WORKSPACE_OPERATIONS,
|
|
686
|
+
VIEW_WORKSPACE_PAGE_LOST_CODE,
|
|
687
|
+
VIEW_WORKSPACE_SERVICES,
|
|
688
|
+
VIEW_WORKSPACE_STATE_TOPIC,
|
|
689
|
+
VIEW_WORKSPACE_TAB_ID,
|
|
690
|
+
VIEW_WORKSPACE_TARGET_RECOVERY_CODES,
|
|
691
|
+
ViewCarrierAdapter,
|
|
692
|
+
ViewDisplayStatus,
|
|
693
|
+
ViewInspectorBroker,
|
|
694
|
+
ViewInspectorClient,
|
|
695
|
+
ViewInspectorPanel,
|
|
696
|
+
ViewResourceBroker,
|
|
697
|
+
ViewWorkspaceBroker,
|
|
698
|
+
ViewWorkspaceClient,
|
|
699
|
+
ViewWorkspaceError,
|
|
700
|
+
ViewWorkspaceInputController,
|
|
701
|
+
ViewWorkspaceShell,
|
|
702
|
+
adoptRemoteWorkspaceProject,
|
|
703
|
+
assertLeaseTarget,
|
|
704
|
+
assertWorkspaceRequest,
|
|
705
|
+
browserFallback,
|
|
706
|
+
cloneWorkspaceValue,
|
|
707
|
+
connectViewFrontend,
|
|
708
|
+
connectViewWorkspace,
|
|
709
|
+
createBrowserPagePlatform,
|
|
710
|
+
createBrowserPagePresentation,
|
|
711
|
+
createEngineWorkspaceAdapter,
|
|
712
|
+
createInspectorRequest,
|
|
713
|
+
createLeaseRequest,
|
|
714
|
+
createResourceBrowserPlatform,
|
|
715
|
+
createRunIdentity,
|
|
716
|
+
createViewBackend,
|
|
717
|
+
createViewCarrierAdapter,
|
|
718
|
+
createViewCliContributions,
|
|
719
|
+
createViewHostBinding,
|
|
720
|
+
createViewHostCliContributions,
|
|
721
|
+
createViewInspectorToolContributions,
|
|
722
|
+
createViewPlatformBinding,
|
|
723
|
+
createViewProductPlan,
|
|
724
|
+
createViewStatusToolContributions,
|
|
725
|
+
createViewWorkspaceClient,
|
|
726
|
+
createViewWorkspaceToolContributions,
|
|
727
|
+
createWorkspaceId,
|
|
728
|
+
createWorkspaceRequest,
|
|
729
|
+
deserializeRequest,
|
|
730
|
+
disposeResource,
|
|
731
|
+
product_default as forgeaxViewPlugin,
|
|
732
|
+
isEngineWorkspaceAdapter,
|
|
733
|
+
isFallbackDecision,
|
|
734
|
+
isOpaqueWorkspaceDiagnostic,
|
|
735
|
+
isViewportWorkspaceInputEvent,
|
|
736
|
+
isWorkspacePageLostError,
|
|
737
|
+
isWorkspaceTargetRecoveryCode,
|
|
738
|
+
jsonUnchanged,
|
|
739
|
+
mountViewViewer,
|
|
740
|
+
mountViewWorkspace,
|
|
741
|
+
navigateToWorkspaceProjectTarget,
|
|
742
|
+
normalizeRunIdentity,
|
|
743
|
+
reopenWorkspaceProject,
|
|
744
|
+
requireWorkspaceInteger,
|
|
745
|
+
requireWorkspaceObject,
|
|
746
|
+
requireWorkspaceString,
|
|
747
|
+
resolveWorkspaceFailure,
|
|
748
|
+
resolveWorkspaceFailureCode,
|
|
749
|
+
resolveWorkspaceReopenRoot,
|
|
750
|
+
runInspectorToolApi,
|
|
751
|
+
runViewStartInteractive,
|
|
752
|
+
runViewToolApi,
|
|
753
|
+
runViewWorkspaceCli,
|
|
754
|
+
runWorkspaceToolApi,
|
|
755
|
+
safeDetail,
|
|
756
|
+
safeError,
|
|
757
|
+
sameRun,
|
|
758
|
+
serializeTarget,
|
|
759
|
+
serializeWorkspaceAsset,
|
|
760
|
+
serializeWorkspaceDdc,
|
|
761
|
+
serializeWorkspaceInspection,
|
|
762
|
+
serializeWorkspaceOpenRequest,
|
|
763
|
+
serializeWorkspaceProject,
|
|
764
|
+
serializeWorkspaceResourceOpens,
|
|
765
|
+
serializeWorkspaceState,
|
|
766
|
+
serializeWorkspaceTarget,
|
|
767
|
+
shouldAdoptRemoteWorkspaceProject,
|
|
768
|
+
shouldOfferWorkspaceRecovery,
|
|
769
|
+
startView,
|
|
770
|
+
startViewHostServer,
|
|
771
|
+
startViewerStaticServer,
|
|
772
|
+
viewDecision,
|
|
773
|
+
frontend_default as viewDisplayFrontendPlugin,
|
|
774
|
+
viewFrontendRoot,
|
|
775
|
+
viewInspectorBackendPlugin,
|
|
776
|
+
viewInspectorFrontendPlugin,
|
|
777
|
+
workspaceBrowserEndpoint,
|
|
778
|
+
workspaceCapabilities,
|
|
779
|
+
workspaceError,
|
|
780
|
+
workspaceInspectionFactRows,
|
|
781
|
+
workspaceProjectTargetUrl,
|
|
782
|
+
workspaceUiFingerprint
|
|
783
|
+
};
|
|
784
|
+
//# sourceMappingURL=index.mjs.map
|