@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,256 @@
|
|
|
1
|
+
import {
|
|
2
|
+
openViewProject,
|
|
3
|
+
viewProjectOpenError
|
|
4
|
+
} from "./chunk-KSZNCFU4.mjs";
|
|
5
|
+
import {
|
|
6
|
+
resolveProjectIntent,
|
|
7
|
+
withProjectIntent
|
|
8
|
+
} from "./chunk-AAFVCQPK.mjs";
|
|
9
|
+
import {
|
|
10
|
+
VIEW_PRODUCT_BACKEND_CATALOG
|
|
11
|
+
} from "./chunk-XFQT7XCG.mjs";
|
|
12
|
+
import {
|
|
13
|
+
startViewHostServer
|
|
14
|
+
} from "./chunk-73UZNRHN.mjs";
|
|
15
|
+
import {
|
|
16
|
+
VIEW_FRONTEND_MODULE,
|
|
17
|
+
createViewProductPlan,
|
|
18
|
+
viewFrontendRoot
|
|
19
|
+
} from "./chunk-RXF7SBBZ.mjs";
|
|
20
|
+
|
|
21
|
+
// src/plugins/product.mjs
|
|
22
|
+
import { randomUUID } from "node:crypto";
|
|
23
|
+
import { createRequire } from "node:module";
|
|
24
|
+
import { dirname, join, resolve } from "node:path";
|
|
25
|
+
import { existsSync } from "node:fs";
|
|
26
|
+
import { createHostAssembly } from "@forgeax/engine-host/protocol";
|
|
27
|
+
import { defineTool, toolJsonSchema } from "@forgeax/engine-tool-runtime";
|
|
28
|
+
import { registerTools } from "@forgeax/engine-plugin";
|
|
29
|
+
var ownerArgs = toolJsonSchema({ type: "object", properties: { root: { type: "string" } }, additionalProperties: false });
|
|
30
|
+
var startArgs = toolJsonSchema({ type: "object", properties: {
|
|
31
|
+
root: { type: "string" },
|
|
32
|
+
project: { type: "string" }
|
|
33
|
+
}, additionalProperties: false });
|
|
34
|
+
var projectOpenSchema = {
|
|
35
|
+
type: "object",
|
|
36
|
+
properties: { root: { type: "string" }, project: { type: "string" } },
|
|
37
|
+
required: ["project"],
|
|
38
|
+
additionalProperties: false
|
|
39
|
+
};
|
|
40
|
+
function readWorkspaceCore(owner) {
|
|
41
|
+
if (!owner || typeof owner.get !== "function") return void 0;
|
|
42
|
+
try {
|
|
43
|
+
const value = owner.get("viewWorkspaceCore", false);
|
|
44
|
+
return value && typeof value.openProject === "function" && typeof value.snapshot === "function" ? value : void 0;
|
|
45
|
+
} catch {
|
|
46
|
+
return void 0;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
function installedViewStaticRoot(projectRoot) {
|
|
50
|
+
try {
|
|
51
|
+
const pluginEntry = createRequire(join(projectRoot, "forge.json")).resolve("@forgeax/view/plugin");
|
|
52
|
+
const staticRoot = resolve(dirname(pluginEntry), "../viewer");
|
|
53
|
+
return existsSync(join(staticRoot, "index.html")) ? staticRoot : void 0;
|
|
54
|
+
} catch {
|
|
55
|
+
return void 0;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
function projectFailure(error) {
|
|
59
|
+
const hint = typeof error?.hint === "string" ? error.hint : error?.message ?? String(error);
|
|
60
|
+
return {
|
|
61
|
+
ok: false,
|
|
62
|
+
error: {
|
|
63
|
+
code: typeof error?.code === "string" ? error.code : "view-project-open-failed",
|
|
64
|
+
expected: typeof error?.expected === "string" ? error.expected : hint,
|
|
65
|
+
hint,
|
|
66
|
+
...error?.detail === void 0 ? {} : { detail: error.detail }
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
function projectSuccess(body) {
|
|
71
|
+
return {
|
|
72
|
+
ok: true,
|
|
73
|
+
value: {
|
|
74
|
+
ok: true,
|
|
75
|
+
alreadyOpen: body.alreadyOpen === true,
|
|
76
|
+
...body.viewerUrl === void 0 ? {} : { viewerUrl: body.viewerUrl },
|
|
77
|
+
project: body.project,
|
|
78
|
+
projectTarget: body.projectTarget
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
var product_default = {
|
|
83
|
+
name: "forgeax.view",
|
|
84
|
+
inject: ["devkitBackend", "engineWorkspace", "toolApi"],
|
|
85
|
+
async apply(ctx, config = {}) {
|
|
86
|
+
const { host } = ctx.devkitBackend;
|
|
87
|
+
let fiber;
|
|
88
|
+
let server;
|
|
89
|
+
let workspaceCore;
|
|
90
|
+
let openAbort;
|
|
91
|
+
let sessionEpoch = 0;
|
|
92
|
+
let queue = Promise.resolve();
|
|
93
|
+
const enqueue = (execute) => {
|
|
94
|
+
const result = queue.then(execute);
|
|
95
|
+
queue = result.catch(() => {
|
|
96
|
+
});
|
|
97
|
+
return result;
|
|
98
|
+
};
|
|
99
|
+
const status = () => ({ phase: server ? "ready" : "stopped", ...server ? { url: server.viewerUrl } : {} });
|
|
100
|
+
const stop = async () => {
|
|
101
|
+
sessionEpoch += 1;
|
|
102
|
+
openAbort?.abort();
|
|
103
|
+
openAbort = void 0;
|
|
104
|
+
workspaceCore = void 0;
|
|
105
|
+
await fiber?.dispose();
|
|
106
|
+
fiber = void 0;
|
|
107
|
+
server = void 0;
|
|
108
|
+
return status();
|
|
109
|
+
};
|
|
110
|
+
const start = async (args = {}) => {
|
|
111
|
+
const project = resolveProjectIntent(args.project === void 0 ? [] : ["--project", args.project], ctx.devkitBackend.root);
|
|
112
|
+
if (fiber) return withProjectIntent(status(), project);
|
|
113
|
+
const token = randomUUID();
|
|
114
|
+
const workspaceClient = { clientId: "view-frontend", token, resourceBrowser: true };
|
|
115
|
+
const plan = createViewProductPlan({
|
|
116
|
+
disabledPages: config.disabledPages,
|
|
117
|
+
backendConfig: { workspaceAccessToken: token },
|
|
118
|
+
frontendConfig: { embedded: true, workspace: workspaceClient }
|
|
119
|
+
});
|
|
120
|
+
const installation = {
|
|
121
|
+
name: "forgeax.view.product",
|
|
122
|
+
provide: ["devkitWorkspaceFrontend"],
|
|
123
|
+
async apply(owner) {
|
|
124
|
+
for (const component of plan.backend) {
|
|
125
|
+
const module = await VIEW_PRODUCT_BACKEND_CATALOG.get(component.module).load();
|
|
126
|
+
await (await owner.plugin(module.default, component.config)).await();
|
|
127
|
+
}
|
|
128
|
+
const builtRoot = config.staticRoot ? void 0 : installedViewStaticRoot(
|
|
129
|
+
ctx.devkitBackend.hostPackageRoot ?? ctx.devkitBackend.root
|
|
130
|
+
);
|
|
131
|
+
if (!config.staticRoot && !builtRoot) throw new Error("View UI is not built. Build or install the View package before starting it.");
|
|
132
|
+
workspaceCore = readWorkspaceCore(owner);
|
|
133
|
+
const core = workspaceCore;
|
|
134
|
+
server = await startViewHostServer({
|
|
135
|
+
backendHost: host,
|
|
136
|
+
accessToken: token,
|
|
137
|
+
staticRoot: config.staticRoot ?? builtRoot,
|
|
138
|
+
...core === void 0 ? {} : {
|
|
139
|
+
onClientConnect: () => core.resetPageSession(),
|
|
140
|
+
onClientDisconnect: (caller) => core.revokeConnection(caller.connectionId)
|
|
141
|
+
}
|
|
142
|
+
});
|
|
143
|
+
const ownedServer = server;
|
|
144
|
+
owner.effect(() => () => ownedServer.close());
|
|
145
|
+
Object.assign(workspaceClient, { endpoint: server.frontendEndpoint, frontendTicket: server.frontendTicket });
|
|
146
|
+
const assembly = createHostAssembly({ root: viewFrontendRoot({
|
|
147
|
+
embedded: true,
|
|
148
|
+
workspace: workspaceClient
|
|
149
|
+
}, plan.disabledPages) });
|
|
150
|
+
owner.provide("devkitWorkspaceFrontend", { assembly, module: VIEW_FRONTEND_MODULE });
|
|
151
|
+
const removeAdmission = host.transport.onClientConnect((caller) => {
|
|
152
|
+
if (caller.kind === "frontend" && caller.sourceId === "view-frontend") {
|
|
153
|
+
host.bindProjection(caller, { assembly });
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
owner.effect(() => removeAdmission);
|
|
157
|
+
}
|
|
158
|
+
};
|
|
159
|
+
const pending = ctx.plugin(installation);
|
|
160
|
+
try {
|
|
161
|
+
await pending.await();
|
|
162
|
+
fiber = pending;
|
|
163
|
+
return withProjectIntent(status(), project);
|
|
164
|
+
} catch (error) {
|
|
165
|
+
workspaceCore = void 0;
|
|
166
|
+
await pending.dispose();
|
|
167
|
+
server = void 0;
|
|
168
|
+
throw error;
|
|
169
|
+
}
|
|
170
|
+
};
|
|
171
|
+
const openProject = async (args = {}, epoch = sessionEpoch) => {
|
|
172
|
+
const stopped = () => projectFailure(viewProjectOpenError(
|
|
173
|
+
"view-not-started",
|
|
174
|
+
"View has stopped. Run forgeax view start again when needed."
|
|
175
|
+
));
|
|
176
|
+
if (epoch !== sessionEpoch || !server || !workspaceCore) {
|
|
177
|
+
return projectFailure(viewProjectOpenError(
|
|
178
|
+
"view-not-started",
|
|
179
|
+
epoch !== sessionEpoch ? "View has stopped. Run forgeax view start again when needed." : "Run forgeax backend start, then forgeax view start."
|
|
180
|
+
));
|
|
181
|
+
}
|
|
182
|
+
const project = typeof args.project === "string" ? args.project : "";
|
|
183
|
+
const controller = new AbortController();
|
|
184
|
+
openAbort = controller;
|
|
185
|
+
try {
|
|
186
|
+
if (epoch !== sessionEpoch || controller.signal.aborted) return stopped();
|
|
187
|
+
const body = await openViewProject(workspaceCore, project, {
|
|
188
|
+
signal: controller.signal,
|
|
189
|
+
viewerUrl: server.viewerUrl
|
|
190
|
+
});
|
|
191
|
+
if (epoch !== sessionEpoch || controller.signal.aborted) return stopped();
|
|
192
|
+
return projectSuccess(body);
|
|
193
|
+
} catch (error) {
|
|
194
|
+
if (epoch !== sessionEpoch || controller.signal.aborted) return stopped();
|
|
195
|
+
return projectFailure(error);
|
|
196
|
+
} finally {
|
|
197
|
+
if (openAbort === controller) openAbort = void 0;
|
|
198
|
+
}
|
|
199
|
+
};
|
|
200
|
+
const lifecycleTool = (operation, execute, { before, argsSchema = ownerArgs } = {}) => defineTool({
|
|
201
|
+
id: `view.${operation}`,
|
|
202
|
+
path: ["view", operation],
|
|
203
|
+
title: `View ${operation}`,
|
|
204
|
+
summary: `${operation} the optional View interface on the existing Engine backend.`,
|
|
205
|
+
realm: "host",
|
|
206
|
+
argsSchema,
|
|
207
|
+
resultSchema: toolJsonSchema({ type: "object" }),
|
|
208
|
+
inputSchema: { type: "object" },
|
|
209
|
+
outputSchema: { type: "object" },
|
|
210
|
+
evidence: []
|
|
211
|
+
}, (args) => {
|
|
212
|
+
before?.();
|
|
213
|
+
return enqueue(() => execute(args));
|
|
214
|
+
});
|
|
215
|
+
const tools = [
|
|
216
|
+
lifecycleTool("start", start, { argsSchema: startArgs }),
|
|
217
|
+
lifecycleTool("status", status),
|
|
218
|
+
lifecycleTool("stop", stop, { before: () => {
|
|
219
|
+
sessionEpoch += 1;
|
|
220
|
+
openAbort?.abort();
|
|
221
|
+
} }),
|
|
222
|
+
defineTool({
|
|
223
|
+
id: "view.project.open",
|
|
224
|
+
path: ["view", "project", "open"],
|
|
225
|
+
title: "Open View project",
|
|
226
|
+
summary: "Open an editor project on the running View and return its headed document URL.",
|
|
227
|
+
realm: "host",
|
|
228
|
+
argsSchema: toolJsonSchema(projectOpenSchema),
|
|
229
|
+
resultSchema: toolJsonSchema({ type: "object" }),
|
|
230
|
+
inputSchema: projectOpenSchema,
|
|
231
|
+
outputSchema: { type: "object" },
|
|
232
|
+
evidence: []
|
|
233
|
+
}, (args) => {
|
|
234
|
+
const epoch = sessionEpoch;
|
|
235
|
+
return enqueue(() => openProject(args, epoch));
|
|
236
|
+
})
|
|
237
|
+
];
|
|
238
|
+
const revoke = registerTools(ctx, tools, { sourceId: "view-launcher", module: "@forgeax/view/plugin", realm: "host" });
|
|
239
|
+
ctx.effect(() => async () => {
|
|
240
|
+
await revoke();
|
|
241
|
+
await queue;
|
|
242
|
+
await stop();
|
|
243
|
+
});
|
|
244
|
+
}
|
|
245
|
+
};
|
|
246
|
+
|
|
247
|
+
// src/plugin.mjs
|
|
248
|
+
var FORGEAX_VIEW_PLUGIN_ID = "forgeax.view";
|
|
249
|
+
var FORGEAX_VIEW_PLUGIN_MODULE = "@forgeax/view/plugin";
|
|
250
|
+
|
|
251
|
+
export {
|
|
252
|
+
product_default,
|
|
253
|
+
FORGEAX_VIEW_PLUGIN_ID,
|
|
254
|
+
FORGEAX_VIEW_PLUGIN_MODULE
|
|
255
|
+
};
|
|
256
|
+
//# sourceMappingURL=chunk-H3KNBALD.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/plugins/product.mjs", "../../../src/plugin.mjs"],
|
|
4
|
+
"sourcesContent": ["import { randomUUID } from 'node:crypto';\nimport { createRequire } from 'node:module';\nimport { dirname, join, resolve } from 'node:path';\nimport { existsSync } from 'node:fs';\nimport { createHostAssembly } from '@forgeax/engine-host/protocol';\nimport { defineTool, toolJsonSchema } from '@forgeax/engine-tool-runtime';\nimport { registerTools } from '@forgeax/engine-plugin';\nimport { createViewProductPlan, viewFrontendRoot, VIEW_FRONTEND_MODULE } from '@forgeax/view-viewer/catalog/shared';\nimport { VIEW_PRODUCT_BACKEND_CATALOG } from '@forgeax/view-viewer/catalog/backend';\nimport { startViewHostServer } from '@forgeax/view-workspace-core/resident';\n\nimport { openViewProject, viewProjectOpenError } from '../view-project-open.mjs';\nimport { resolveProjectIntent, withProjectIntent } from '../view-start.mjs';\n\nconst ownerArgs = toolJsonSchema({ type: 'object', properties: { root: { type: 'string' } }, additionalProperties: false });\nconst startArgs = toolJsonSchema({ type: 'object', properties: {\n root: { type: 'string' }, project: { type: 'string' },\n}, additionalProperties: false });\nconst projectOpenSchema = {\n type: 'object',\n properties: { root: { type: 'string' }, project: { type: 'string' } },\n required: ['project'],\n additionalProperties: false,\n};\n\nfunction readWorkspaceCore(owner) {\n if (!owner || typeof owner.get !== 'function') return undefined;\n try {\n const value = owner.get('viewWorkspaceCore', false);\n return value && typeof value.openProject === 'function' && typeof value.snapshot === 'function' ? value : undefined;\n } catch {\n return undefined;\n }\n}\n\nfunction installedViewStaticRoot(projectRoot) {\n try {\n const pluginEntry = createRequire(join(projectRoot, 'forge.json')).resolve('@forgeax/view/plugin');\n const staticRoot = resolve(dirname(pluginEntry), '../viewer');\n return existsSync(join(staticRoot, 'index.html')) ? staticRoot : undefined;\n } catch {\n return undefined;\n }\n}\n\nfunction projectFailure(error) {\n const hint = typeof error?.hint === 'string' ? error.hint : error?.message ?? String(error);\n return {\n ok: false,\n error: {\n code: typeof error?.code === 'string' ? error.code : 'view-project-open-failed',\n expected: typeof error?.expected === 'string' ? error.expected : hint,\n hint,\n ...(error?.detail === undefined ? {} : { detail: error.detail }),\n },\n };\n}\n\nfunction projectSuccess(body) {\n return {\n ok: true,\n value: {\n ok: true,\n alreadyOpen: body.alreadyOpen === true,\n ...(body.viewerUrl === undefined ? {} : { viewerUrl: body.viewerUrl }),\n project: body.project,\n projectTarget: body.projectTarget,\n },\n };\n}\n\n/** Installed on Engine's resident Host. View owns only its plugin Fibers and sockets. */\nexport default {\n name: 'forgeax.view',\n inject: ['devkitBackend', 'engineWorkspace', 'toolApi'],\n async apply(ctx, config = {}) {\n const { host } = ctx.devkitBackend;\n let fiber;\n let server;\n let workspaceCore;\n let openAbort;\n let sessionEpoch = 0;\n let queue = Promise.resolve();\n const enqueue = (execute) => {\n const result = queue.then(execute);\n queue = result.catch(() => {});\n return result;\n };\n const status = () => ({ phase: server ? 'ready' : 'stopped', ...(server ? { url: server.viewerUrl } : {}) });\n const stop = async () => {\n sessionEpoch += 1;\n openAbort?.abort();\n openAbort = undefined;\n workspaceCore = undefined;\n await fiber?.dispose();\n fiber = undefined;\n server = undefined;\n return status();\n };\n const start = async (args = {}) => {\n const project = resolveProjectIntent(args.project === undefined ? [] : ['--project', args.project], ctx.devkitBackend.root);\n if (fiber) return withProjectIntent(status(), project);\n const token = randomUUID();\n const workspaceClient = { clientId: 'view-frontend', token, resourceBrowser: true };\n const plan = createViewProductPlan({\n disabledPages: config.disabledPages,\n backendConfig: { workspaceAccessToken: token },\n frontendConfig: { embedded: true, workspace: workspaceClient },\n });\n const installation = {\n name: 'forgeax.view.product',\n provide: ['devkitWorkspaceFrontend'],\n async apply(owner) {\n for (const component of plan.backend) {\n const module = await VIEW_PRODUCT_BACKEND_CATALOG.get(component.module).load();\n await (await owner.plugin(module.default, component.config)).await();\n }\n const builtRoot = config.staticRoot ? undefined : installedViewStaticRoot(\n ctx.devkitBackend.hostPackageRoot ?? ctx.devkitBackend.root,\n );\n if (!config.staticRoot && !builtRoot) throw new Error('View UI is not built. Build or install the View package before starting it.');\n // The launcher is the parent fiber. Cordis get walks ancestors, so the\n // broker provided by this installation is read here and kept for the tool.\n workspaceCore = readWorkspaceCore(owner);\n const core = workspaceCore;\n server = await startViewHostServer({\n backendHost: host,\n accessToken: token,\n staticRoot: config.staticRoot ?? builtRoot,\n ...(core === undefined ? {} : {\n onClientConnect: () => core.resetPageSession(),\n onClientDisconnect: (caller) => core.revokeConnection(caller.connectionId),\n }),\n });\n const ownedServer = server;\n owner.effect(() => () => ownedServer.close());\n Object.assign(workspaceClient, { endpoint: server.frontendEndpoint, frontendTicket: server.frontendTicket });\n const assembly = createHostAssembly({ root: viewFrontendRoot({\n embedded: true,\n workspace: workspaceClient,\n }, plan.disabledPages) });\n owner.provide('devkitWorkspaceFrontend', { assembly, module: VIEW_FRONTEND_MODULE });\n const removeAdmission = host.transport.onClientConnect(caller => {\n if (caller.kind === 'frontend' && caller.sourceId === 'view-frontend') {\n host.bindProjection(caller, { assembly });\n }\n });\n owner.effect(() => removeAdmission);\n },\n };\n const pending = ctx.plugin(installation);\n try { await pending.await(); fiber = pending; return withProjectIntent(status(), project); }\n catch (error) {\n workspaceCore = undefined;\n await pending.dispose();\n server = undefined;\n throw error;\n }\n };\n const openProject = async (args = {}, epoch = sessionEpoch) => {\n const stopped = () => projectFailure(viewProjectOpenError(\n 'view-not-started',\n 'View has stopped. Run forgeax view start again when needed.',\n ));\n if (epoch !== sessionEpoch || !server || !workspaceCore) {\n return projectFailure(viewProjectOpenError(\n 'view-not-started',\n epoch !== sessionEpoch\n ? 'View has stopped. Run forgeax view start again when needed.'\n : 'Run forgeax backend start, then forgeax view start.',\n ));\n }\n const project = typeof args.project === 'string' ? args.project : '';\n const controller = new AbortController();\n openAbort = controller;\n try {\n if (epoch !== sessionEpoch || controller.signal.aborted) return stopped();\n const body = await openViewProject(workspaceCore, project, {\n signal: controller.signal,\n viewerUrl: server.viewerUrl,\n });\n if (epoch !== sessionEpoch || controller.signal.aborted) return stopped();\n return projectSuccess(body);\n } catch (error) {\n if (epoch !== sessionEpoch || controller.signal.aborted) return stopped();\n return projectFailure(error);\n } finally {\n if (openAbort === controller) openAbort = undefined;\n }\n };\n const lifecycleTool = (operation, execute, { before, argsSchema = ownerArgs } = {}) => defineTool({\n id: `view.${operation}`, path: ['view', operation], title: `View ${operation}`,\n summary: `${operation} the optional View interface on the existing Engine backend.`, realm: 'host',\n argsSchema, resultSchema: toolJsonSchema({ type: 'object' }), inputSchema: { type: 'object' }, outputSchema: { type: 'object' }, evidence: [],\n }, (args) => {\n before?.();\n return enqueue(() => execute(args));\n });\n const tools = [\n lifecycleTool('start', start, { argsSchema: startArgs }),\n lifecycleTool('status', status),\n lifecycleTool('stop', stop, { before: () => { sessionEpoch += 1; openAbort?.abort(); } }),\n defineTool({\n id: 'view.project.open',\n path: ['view', 'project', 'open'],\n title: 'Open View project',\n summary: 'Open an editor project on the running View and return its headed document URL.',\n realm: 'host',\n argsSchema: toolJsonSchema(projectOpenSchema),\n resultSchema: toolJsonSchema({ type: 'object' }),\n inputSchema: projectOpenSchema,\n outputSchema: { type: 'object' },\n evidence: [],\n }, (args) => {\n const epoch = sessionEpoch;\n return enqueue(() => openProject(args, epoch));\n }),\n ];\n const revoke = registerTools(ctx, tools, { sourceId: 'view-launcher', module: '@forgeax/view/plugin', realm: 'host' });\n ctx.effect(() => async () => { await revoke(); await queue; await stop(); });\n },\n};\n", "/** Native implementation referenced by a project PluginAsset in its host root. */\nexport const FORGEAX_VIEW_PLUGIN_ID = 'forgeax.view';\nexport const FORGEAX_VIEW_PLUGIN_MODULE = '@forgeax/view/plugin';\nexport { default } from './plugins/product.mjs';\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;AAAA,SAAS,kBAAkB;AAC3B,SAAS,qBAAqB;AAC9B,SAAS,SAAS,MAAM,eAAe;AACvC,SAAS,kBAAkB;AAC3B,SAAS,0BAA0B;AACnC,SAAS,YAAY,sBAAsB;AAC3C,SAAS,qBAAqB;AAQ9B,IAAM,YAAY,eAAe,EAAE,MAAM,UAAU,YAAY,EAAE,MAAM,EAAE,MAAM,SAAS,EAAE,GAAG,sBAAsB,MAAM,CAAC;AAC1H,IAAM,YAAY,eAAe,EAAE,MAAM,UAAU,YAAY;AAAA,EAC7D,MAAM,EAAE,MAAM,SAAS;AAAA,EAAG,SAAS,EAAE,MAAM,SAAS;AACtD,GAAG,sBAAsB,MAAM,CAAC;AAChC,IAAM,oBAAoB;AAAA,EACxB,MAAM;AAAA,EACN,YAAY,EAAE,MAAM,EAAE,MAAM,SAAS,GAAG,SAAS,EAAE,MAAM,SAAS,EAAE;AAAA,EACpE,UAAU,CAAC,SAAS;AAAA,EACpB,sBAAsB;AACxB;AAEA,SAAS,kBAAkB,OAAO;AAChC,MAAI,CAAC,SAAS,OAAO,MAAM,QAAQ,WAAY,QAAO;AACtD,MAAI;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
8
|
+
// packages/view-workspace-core/src/tool-runtime.mjs
|
|
9
|
+
import { defineTool, toolJsonSchema } from "@forgeax/engine-tool-runtime";
|
|
10
|
+
function safeClone(value) {
|
|
11
|
+
try {
|
|
12
|
+
return cloneWorkspaceValue(value);
|
|
13
|
+
} catch {
|
|
14
|
+
return null;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
function toolFailureError(failure) {
|
|
18
|
+
const detail = failure?.detail;
|
|
19
|
+
const code = [detail?.code, detail?.remoteCode].find(
|
|
20
|
+
(candidate) => typeof candidate === "string" && candidate.startsWith("view-")
|
|
21
|
+
);
|
|
22
|
+
const payload = detail?.payload ?? detail?.detail;
|
|
23
|
+
const diagnostic = (typeof failure?.hint === "string" && failure.hint.trim() !== "" ? failure.hint : void 0) ?? (typeof failure?.expected === "string" && failure.expected.trim() !== "" ? failure.expected : void 0) ?? (failure === void 0 || failure === null ? void 0 : String(failure));
|
|
24
|
+
if (code !== void 0) {
|
|
25
|
+
return workspaceError(
|
|
26
|
+
code,
|
|
27
|
+
typeof detail.expected === "string" ? detail.expected : failure.expected,
|
|
28
|
+
typeof detail.hint === "string" ? detail.hint : diagnostic,
|
|
29
|
+
{
|
|
30
|
+
failure: safeClone(failure) ?? { failure },
|
|
31
|
+
...payload && typeof payload === "object" ? { cause: payload } : {}
|
|
32
|
+
}
|
|
33
|
+
);
|
|
34
|
+
}
|
|
35
|
+
return workspaceError(
|
|
36
|
+
"view-workspace-provider-failed",
|
|
37
|
+
typeof failure?.expected === "string" ? failure.expected : diagnostic,
|
|
38
|
+
diagnostic,
|
|
39
|
+
{ failure: safeClone(failure) ?? { failure } }
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
async function runWorkspaceToolApi(api, {
|
|
43
|
+
operation,
|
|
44
|
+
args,
|
|
45
|
+
clientId,
|
|
46
|
+
token,
|
|
47
|
+
requestId,
|
|
48
|
+
caller,
|
|
49
|
+
signal,
|
|
50
|
+
providerId,
|
|
51
|
+
generation,
|
|
52
|
+
sourceId = "view-backend",
|
|
53
|
+
apiVersion = VIEW_WORKSPACE_API_VERSION
|
|
54
|
+
}) {
|
|
55
|
+
const run = api.run(
|
|
56
|
+
operation,
|
|
57
|
+
{
|
|
58
|
+
apiVersion,
|
|
59
|
+
operation,
|
|
60
|
+
...args,
|
|
61
|
+
args,
|
|
62
|
+
clientId,
|
|
63
|
+
token,
|
|
64
|
+
requestId
|
|
65
|
+
},
|
|
66
|
+
{ sourceId, providerId, generation, caller, signal }
|
|
67
|
+
);
|
|
68
|
+
const terminal = await run.terminal;
|
|
69
|
+
if (terminal.outcome === "failed") throw toolFailureError(terminal.failure);
|
|
70
|
+
return terminal.result;
|
|
71
|
+
}
|
|
72
|
+
function defineWorkspaceOperations(operations) {
|
|
73
|
+
return Object.freeze(
|
|
74
|
+
operations.map(
|
|
75
|
+
(operation) => Object.freeze({
|
|
76
|
+
path: operation.id.split("."),
|
|
77
|
+
title: operation.id,
|
|
78
|
+
summary: `View workspace operation ${operation.id}.`,
|
|
79
|
+
...operation
|
|
80
|
+
})
|
|
81
|
+
)
|
|
82
|
+
);
|
|
83
|
+
}
|
|
84
|
+
function createWorkspaceToolContributions(workspace, operations) {
|
|
85
|
+
const schema = {
|
|
86
|
+
parse(value) {
|
|
87
|
+
return value !== null && typeof value === "object" && !Array.isArray(value) ? { ok: true, value } : { ok: false, error: "workspace API arguments must be an object" };
|
|
88
|
+
},
|
|
89
|
+
describe: "JSON object accepted by the View workspace operation."
|
|
90
|
+
};
|
|
91
|
+
return operations.map(
|
|
92
|
+
(description) => defineTool(
|
|
93
|
+
{
|
|
94
|
+
id: description.id,
|
|
95
|
+
path: description.path,
|
|
96
|
+
title: description.title,
|
|
97
|
+
summary: description.summary,
|
|
98
|
+
realm: "host",
|
|
99
|
+
argsSchema: schema,
|
|
100
|
+
resultSchema: toolJsonSchema({}),
|
|
101
|
+
inputSchema: { type: "object" },
|
|
102
|
+
outputSchema: {},
|
|
103
|
+
evidence: []
|
|
104
|
+
},
|
|
105
|
+
async (envelope, context) => {
|
|
106
|
+
try {
|
|
107
|
+
return safeClone(
|
|
108
|
+
await workspace.call(
|
|
109
|
+
{
|
|
110
|
+
apiVersion: VIEW_WORKSPACE_API_VERSION,
|
|
111
|
+
operation: description.operation ?? description.id,
|
|
112
|
+
clientId: envelope.clientId,
|
|
113
|
+
requestId: envelope.requestId,
|
|
114
|
+
args: envelope.args,
|
|
115
|
+
...envelope.token === void 0 ? {} : { token: envelope.token }
|
|
116
|
+
},
|
|
117
|
+
{ signal: context.signal, caller: context.caller }
|
|
118
|
+
)
|
|
119
|
+
);
|
|
120
|
+
} catch (error) {
|
|
121
|
+
if (error instanceof ViewWorkspaceError) {
|
|
122
|
+
return {
|
|
123
|
+
ok: false,
|
|
124
|
+
error: {
|
|
125
|
+
code: error.code,
|
|
126
|
+
expected: error.expected,
|
|
127
|
+
hint: error.hint,
|
|
128
|
+
detail: safeClone(error.detail)
|
|
129
|
+
}
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
throw error;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
)
|
|
136
|
+
);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export {
|
|
140
|
+
runWorkspaceToolApi,
|
|
141
|
+
defineWorkspaceOperations,
|
|
142
|
+
createWorkspaceToolContributions
|
|
143
|
+
};
|
|
144
|
+
//# sourceMappingURL=chunk-H3M22JDL.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../packages/view-workspace-core/src/tool-runtime.mjs"],
|
|
4
|
+
"sourcesContent": ["import { defineTool, toolJsonSchema } from '@forgeax/engine-tool-runtime';\n\nimport {\n VIEW_WORKSPACE_API_VERSION,\n ViewWorkspaceError,\n cloneWorkspaceValue,\n workspaceError,\n} from './contract.mjs';\n\nfunction safeClone(value) {\n try {\n return cloneWorkspaceValue(value);\n } catch {\n return null;\n }\n}\n\nfunction toolFailureError(failure) {\n const detail = failure?.detail;\n const code = [detail?.code, detail?.remoteCode].find(\n (candidate) => typeof candidate === 'string' && candidate.startsWith('view-'),\n );\n const payload = detail?.payload ?? detail?.detail;\n const diagnostic =\n (typeof failure?.hint === 'string' && failure.hint.trim() !== '' ? failure.hint : undefined)\n ?? (typeof failure?.expected === 'string' && failure.expected.trim() !== '' ? failure.expected : undefined)\n ?? (failure === undefined || failure === null ? undefined : String(failure));\n if (code !== undefined) {\n return workspaceError(\n code,\n typeof detail.expected === 'string' ? detail.expected : failure.expected,\n typeof detail.hint === 'string' ? detail.hint : diagnostic,\n {\n failure: safeClone(failure) ?? { failure },\n ...(payload && typeof payload === 'object' ? { cause: payload } : {}),\n },\n );\n }\n return workspaceError(\n 'view-workspace-provider-failed',\n typeof failure?.expected === 'string' ? failure.expected : diagnostic,\n diagnostic,\n { failure: safeClone(failure) ?? { failure } },\n );\n}\n\nexport async function runWorkspaceToolApi(\n api,\n {\n operation,\n args,\n clientId,\n token,\n requestId,\n caller,\n signal,\n providerId,\n generation,\n sourceId = 'view-backend',\n apiVersion = VIEW_WORKSPACE_API_VERSION,\n },\n) {\n const run = api.run(\n operation,\n {\n apiVersion,\n operation,\n ...args,\n args,\n clientId,\n token,\n requestId,\n },\n { sourceId, providerId, generation, caller, signal },\n );\n const terminal = await run.terminal;\n if (terminal.outcome === 'failed') throw toolFailureError(terminal.failure);\n return terminal.result;\n}\n\nexport function defineWorkspaceOperations(operations) {\n return Object.freeze(\n operations.map((operation) =>\n Object.freeze({\n path: operation.id.split('.'),\n title: operation.id,\n summary: `View workspace operation ${operation.id}.`,\n ...operation,\n }),\n ),\n );\n}\n\nexport function createWorkspaceToolContributions(workspace, operations) {\n const schema = {\n parse(value) {\n return value !== null && typeof value === 'object' && !Array.isArray(value)\n ? { ok: true, value }\n : { ok: false, error: 'workspace API arguments must be an object' };\n },\n describe: 'JSON object accepted by the View workspace operation.',\n };\n return operations.map((description) =>\n defineTool(\n {\n id: description.id,\n path: description.path,\n title: description.title,\n summary: description.summary,\n realm: 'host',\n argsSchema: schema,\n resultSchema: toolJsonSchema({}),\n inputSchema: { type: 'object' },\n outputSchema: {},\n evidence: [],\n },\n async (envelope, context) => {\n try {\n return safeClone(\n await workspace.call(\n {\n apiVersion: VIEW_WORKSPACE_API_VERSION,\n operation: description.operation ?? description.id,\n clientId: envelope.clientId,\n requestId: envelope.requestId,\n args: envelope.args,\n ...(envelope.token === undefined ? {} : { token: envelope.token }),\n },\n { signal: context.signal, caller: context.caller },\n ),\n );\n } catch (error) {\n if (error instanceof ViewWorkspaceError) {\n return {\n ok: false,\n error: {\n code: error.code,\n expected: error.expected,\n hint: error.hint,\n detail: safeClone(error.detail),\n },\n };\n }\n throw error;\n }\n },\n ),\n );\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;AAAA,SAAS,YAAY,sBAAsB;AAS3C,SAAS,UAAU,OAAO;AACxB,MAAI;AACF,WAAO,oBAAoB,KAAK;AAAA,EAClC,QAAQ;AACN,WAAO;AAAA,EACT;AACF;AAEA,SAAS,iBAAiB,SAAS;AACjC,QAAM,SAAS,SAAS;AACxB,QAAM,OAAO,CAAC,QAAQ,MAAM,QAAQ,UAAU,EAAE;AAAA,IAC9C,CAAC,cAAc,OAAO,cAAc,YAAY,UAAU,WAAW,OAAO;AAAA,EAC9E;AACA,QAAM,UAAU,QAAQ,WAAW,QAAQ;AAC3C,QAAM,cACH,OAAO,SAAS,SAAS,YAAY,QAAQ,KAAK,KAAK,MAAM,KAAK,QAAQ,OAAO,YAC9E,OAAO,SAAS,aAAa,YAAY,QAAQ,SAAS,KAAK,MAAM,KAAK,QAAQ,WAAW,YAC7F,YAAY,UAAa,YAAY,OAAO,SAAY,OAAO,OAAO;AAC5E,MAAI,SAAS,QAAW;AACtB,WAAO;AAAA,MACL;AAAA,MACA,OAAO,OAAO,aAAa,WAAW,OAAO,WAAW,QAAQ;AAAA,MAChE,OAAO,OAAO,SAAS,WAAW,OAAO,OAAO;AA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
|
+
import {
|
|
5
|
+
frontend_default
|
|
6
|
+
} from "./chunk-7TGVWKH7.mjs";
|
|
7
|
+
import {
|
|
8
|
+
backend_default
|
|
9
|
+
} from "./chunk-IVHNYKZB.mjs";
|
|
10
|
+
import {
|
|
11
|
+
identity_exports
|
|
12
|
+
} from "./chunk-VZXGRZYU.mjs";
|
|
13
|
+
|
|
14
|
+
// packages/view-plugin-plugins/src/index.mjs
|
|
15
|
+
var src_default = {
|
|
16
|
+
...identity_exports,
|
|
17
|
+
backendPlugin: backend_default,
|
|
18
|
+
frontendPlugin: frontend_default,
|
|
19
|
+
cliContributions
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
// packages/viewer/src/cli/index.mjs
|
|
23
|
+
var VIEW_CLI_CONTRIBUTION_ID = "forgeax.view.cli";
|
|
24
|
+
function createViewCliContributions(options = {}) {
|
|
25
|
+
const descriptions = options.capabilities?.descriptions ?? [];
|
|
26
|
+
const domain = descriptions.filter((item) => item.id !== "workspace.get").map((description) => ({
|
|
27
|
+
id: `forgeax.view.workspace.${description.id}`,
|
|
28
|
+
path: ["view", "workspace", ...description.id.split(".")],
|
|
29
|
+
summary: description.summary,
|
|
30
|
+
operation: description.id
|
|
31
|
+
}));
|
|
32
|
+
const operations = options.capabilities?.operations ?? options.capabilities ?? [];
|
|
33
|
+
return Object.freeze([...domain, ...src_default.cliContributions.filter((item) => operations.includes(item.operation))]);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export {
|
|
37
|
+
VIEW_CLI_CONTRIBUTION_ID,
|
|
38
|
+
createViewCliContributions
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=chunk-HES3DNTM.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../packages/view-plugin-plugins/src/index.mjs", "../../../packages/viewer/src/cli/index.mjs"],
|
|
4
|
+
"sourcesContent": ["export * from './identity.mjs';\nexport * from './schema.mjs';\nexport { viewPluginsListBackendPlugin as backendPlugin } from './backend.mjs';\nexport { viewPluginsListFrontendPlugin as frontendPlugin } from './frontend.mjs';\nexport { PLUGINS_OPERATION_DESCRIPTIONS } from './api.mjs';\nexport { cliContributions } from './cli.mjs';\nexport { t, subscribeLocale, getLocale, setLocale } from './i18n/index.mjs';\n\nimport backendPlugin from './backend.mjs';\nimport frontendPlugin from './frontend.mjs';\nimport { cliContributions } from './cli.mjs';\nimport * as identity from './identity.mjs';\n\nexport default {\n ...identity,\n backendPlugin,\n frontendPlugin,\n cliContributions,\n};\n", "import plugins from '@forgeax/view-plugin-plugins';\n\nexport const VIEW_CLI_CONTRIBUTION_ID = 'forgeax.view.cli';\n\n/** Domain descriptions come from the connected Engine capability owner. */\nexport function createViewCliContributions(options = {}) {\n const descriptions = options.capabilities?.descriptions ?? [];\n const domain = descriptions.filter(item => item.id !== 'workspace.get').map(description => ({\n id: `forgeax.view.workspace.${description.id}`,\n path: ['view', 'workspace', ...description.id.split('.')],\n summary: description.summary, operation: description.id,\n }));\n const operations = options.capabilities?.operations ?? options.capabilities ?? [];\n return Object.freeze([...domain, ...plugins.cliContributions.filter(item => operations.includes(item.operation))]);\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;AAaA,IAAO,cAAQ;AAAA,EACb,GAAG;AAAA,EACH;AAAA,EACA;AAAA,EACA;AACF;;;AChBO,IAAM,2BAA2B;AAGjC,SAAS,2BAA2B,UAAU,CAAC,GAAG;AACvD,QAAM,eAAe,QAAQ,cAAc,gBAAgB,CAAC;AAC5D,QAAM,SAAS,aAAa,OAAO,UAAQ,KAAK,OAAO,eAAe,EAAE,IAAI,kBAAgB;AAAA,IAC1F,IAAI,0BAA0B,YAAY,EAAE;AAAA,IAC5C,MAAM,CAAC,QAAQ,aAAa,GAAG,YAAY,GAAG,MAAM,GAAG,CAAC;AAAA,IACxD,SAAS,YAAY;AAAA,IAAS,WAAW,YAAY;AAAA,EACvD,EAAE;AACF,QAAM,aAAa,QAAQ,cAAc,cAAc,QAAQ,gBAAgB,CAAC;AAChF,SAAO,OAAO,OAAO,CAAC,GAAG,QAAQ,GAAG,YAAQ,iBAAiB,OAAO,UAAQ,WAAW,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC;AACnH;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|