@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.
Files changed (585) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/README.md +742 -0
  3. package/dist/modules/backend.mjs +54 -0
  4. package/dist/modules/backend.mjs.map +7 -0
  5. package/dist/modules/browser.mjs +180 -0
  6. package/dist/modules/browser.mjs.map +7 -0
  7. package/dist/modules/carrier-contract.mjs +38 -0
  8. package/dist/modules/carrier-contract.mjs.map +7 -0
  9. package/dist/modules/carrier.mjs +13 -0
  10. package/dist/modules/carrier.mjs.map +7 -0
  11. package/dist/modules/chunks/chunk-2ASWB6IX.mjs +225 -0
  12. package/dist/modules/chunks/chunk-2ASWB6IX.mjs.map +7 -0
  13. package/dist/modules/chunks/chunk-2IJKOG2F.mjs +801 -0
  14. package/dist/modules/chunks/chunk-2IJKOG2F.mjs.map +7 -0
  15. package/dist/modules/chunks/chunk-2K3BBJ5S.mjs +9 -0
  16. package/dist/modules/chunks/chunk-2K3BBJ5S.mjs.map +7 -0
  17. package/dist/modules/chunks/chunk-32GD5LL6.mjs +482 -0
  18. package/dist/modules/chunks/chunk-32GD5LL6.mjs.map +7 -0
  19. package/dist/modules/chunks/chunk-3B4KFAEC.mjs +10 -0
  20. package/dist/modules/chunks/chunk-3B4KFAEC.mjs.map +7 -0
  21. package/dist/modules/chunks/chunk-46O5WX43.mjs +25 -0
  22. package/dist/modules/chunks/chunk-46O5WX43.mjs.map +7 -0
  23. package/dist/modules/chunks/chunk-47J5JXAB.mjs +237 -0
  24. package/dist/modules/chunks/chunk-47J5JXAB.mjs.map +7 -0
  25. package/dist/modules/chunks/chunk-4BXQOUDQ.mjs +17 -0
  26. package/dist/modules/chunks/chunk-4BXQOUDQ.mjs.map +7 -0
  27. package/dist/modules/chunks/chunk-4GQWYU2V.mjs +126 -0
  28. package/dist/modules/chunks/chunk-4GQWYU2V.mjs.map +7 -0
  29. package/dist/modules/chunks/chunk-4N5X2PRQ.mjs +48 -0
  30. package/dist/modules/chunks/chunk-4N5X2PRQ.mjs.map +7 -0
  31. package/dist/modules/chunks/chunk-4WXD2KYX.mjs +56 -0
  32. package/dist/modules/chunks/chunk-4WXD2KYX.mjs.map +7 -0
  33. package/dist/modules/chunks/chunk-6ZWWVAZK.mjs +468 -0
  34. package/dist/modules/chunks/chunk-6ZWWVAZK.mjs.map +7 -0
  35. package/dist/modules/chunks/chunk-73UZNRHN.mjs +296 -0
  36. package/dist/modules/chunks/chunk-73UZNRHN.mjs.map +7 -0
  37. package/dist/modules/chunks/chunk-7ITLCRND.mjs +10 -0
  38. package/dist/modules/chunks/chunk-7ITLCRND.mjs.map +7 -0
  39. package/dist/modules/chunks/chunk-7TGVWKH7.mjs +59 -0
  40. package/dist/modules/chunks/chunk-7TGVWKH7.mjs.map +7 -0
  41. package/dist/modules/chunks/chunk-7URFF53W.mjs +42 -0
  42. package/dist/modules/chunks/chunk-7URFF53W.mjs.map +7 -0
  43. package/dist/modules/chunks/chunk-7YSDRIFN.mjs +14 -0
  44. package/dist/modules/chunks/chunk-7YSDRIFN.mjs.map +7 -0
  45. package/dist/modules/chunks/chunk-AAFVCQPK.mjs +52 -0
  46. package/dist/modules/chunks/chunk-AAFVCQPK.mjs.map +7 -0
  47. package/dist/modules/chunks/chunk-AEK7ZESQ.mjs +18 -0
  48. package/dist/modules/chunks/chunk-AEK7ZESQ.mjs.map +7 -0
  49. package/dist/modules/chunks/chunk-AL6ZWIEU.mjs +42 -0
  50. package/dist/modules/chunks/chunk-AL6ZWIEU.mjs.map +7 -0
  51. package/dist/modules/chunks/chunk-ALT7XVMQ.mjs +73 -0
  52. package/dist/modules/chunks/chunk-ALT7XVMQ.mjs.map +7 -0
  53. package/dist/modules/chunks/chunk-ASI2HBE6.mjs +116 -0
  54. package/dist/modules/chunks/chunk-ASI2HBE6.mjs.map +7 -0
  55. package/dist/modules/chunks/chunk-ATWGCH7I.mjs +174 -0
  56. package/dist/modules/chunks/chunk-ATWGCH7I.mjs.map +7 -0
  57. package/dist/modules/chunks/chunk-C45U6IIY.mjs +692 -0
  58. package/dist/modules/chunks/chunk-C45U6IIY.mjs.map +7 -0
  59. package/dist/modules/chunks/chunk-C7R3YRA7.mjs +98 -0
  60. package/dist/modules/chunks/chunk-C7R3YRA7.mjs.map +7 -0
  61. package/dist/modules/chunks/chunk-CRMICXKN.mjs +87 -0
  62. package/dist/modules/chunks/chunk-CRMICXKN.mjs.map +7 -0
  63. package/dist/modules/chunks/chunk-CUH2G6UF.mjs +81 -0
  64. package/dist/modules/chunks/chunk-CUH2G6UF.mjs.map +7 -0
  65. package/dist/modules/chunks/chunk-D7GWRZLL.mjs +77 -0
  66. package/dist/modules/chunks/chunk-D7GWRZLL.mjs.map +7 -0
  67. package/dist/modules/chunks/chunk-DBWUIBE3.mjs +10 -0
  68. package/dist/modules/chunks/chunk-DBWUIBE3.mjs.map +7 -0
  69. package/dist/modules/chunks/chunk-DQWVWWUU.mjs +77 -0
  70. package/dist/modules/chunks/chunk-DQWVWWUU.mjs.map +7 -0
  71. package/dist/modules/chunks/chunk-DZZ2WFEU.mjs +122 -0
  72. package/dist/modules/chunks/chunk-DZZ2WFEU.mjs.map +7 -0
  73. package/dist/modules/chunks/chunk-E4UIAN26.mjs +58 -0
  74. package/dist/modules/chunks/chunk-E4UIAN26.mjs.map +7 -0
  75. package/dist/modules/chunks/chunk-EJGBVKFE.mjs +77 -0
  76. package/dist/modules/chunks/chunk-EJGBVKFE.mjs.map +7 -0
  77. package/dist/modules/chunks/chunk-EPSTTHWV.mjs +173 -0
  78. package/dist/modules/chunks/chunk-EPSTTHWV.mjs.map +7 -0
  79. package/dist/modules/chunks/chunk-ER7T6QJ3.mjs +64 -0
  80. package/dist/modules/chunks/chunk-ER7T6QJ3.mjs.map +7 -0
  81. package/dist/modules/chunks/chunk-FD4BAJ6K.mjs +389 -0
  82. package/dist/modules/chunks/chunk-FD4BAJ6K.mjs.map +7 -0
  83. package/dist/modules/chunks/chunk-FJM6WWIY.mjs +80 -0
  84. package/dist/modules/chunks/chunk-FJM6WWIY.mjs.map +7 -0
  85. package/dist/modules/chunks/chunk-FKCQYDLX.mjs +162 -0
  86. package/dist/modules/chunks/chunk-FKCQYDLX.mjs.map +7 -0
  87. package/dist/modules/chunks/chunk-FLGC65SR.mjs +10 -0
  88. package/dist/modules/chunks/chunk-FLGC65SR.mjs.map +7 -0
  89. package/dist/modules/chunks/chunk-FMCACPX5.mjs +289 -0
  90. package/dist/modules/chunks/chunk-FMCACPX5.mjs.map +7 -0
  91. package/dist/modules/chunks/chunk-FOBRLUQV.mjs +51 -0
  92. package/dist/modules/chunks/chunk-FOBRLUQV.mjs.map +7 -0
  93. package/dist/modules/chunks/chunk-FV3DSKZB.mjs +33 -0
  94. package/dist/modules/chunks/chunk-FV3DSKZB.mjs.map +7 -0
  95. package/dist/modules/chunks/chunk-G7BAFAGO.mjs +98 -0
  96. package/dist/modules/chunks/chunk-G7BAFAGO.mjs.map +7 -0
  97. package/dist/modules/chunks/chunk-GQBZMCTK.mjs +145 -0
  98. package/dist/modules/chunks/chunk-GQBZMCTK.mjs.map +7 -0
  99. package/dist/modules/chunks/chunk-GYWIY7AL.mjs +131 -0
  100. package/dist/modules/chunks/chunk-GYWIY7AL.mjs.map +7 -0
  101. package/dist/modules/chunks/chunk-H3KNBALD.mjs +256 -0
  102. package/dist/modules/chunks/chunk-H3KNBALD.mjs.map +7 -0
  103. package/dist/modules/chunks/chunk-H3M22JDL.mjs +144 -0
  104. package/dist/modules/chunks/chunk-H3M22JDL.mjs.map +7 -0
  105. package/dist/modules/chunks/chunk-HES3DNTM.mjs +40 -0
  106. package/dist/modules/chunks/chunk-HES3DNTM.mjs.map +7 -0
  107. package/dist/modules/chunks/chunk-I5BFP7SS.mjs +2392 -0
  108. package/dist/modules/chunks/chunk-I5BFP7SS.mjs.map +7 -0
  109. package/dist/modules/chunks/chunk-IGRMZYRD.mjs +15 -0
  110. package/dist/modules/chunks/chunk-IGRMZYRD.mjs.map +7 -0
  111. package/dist/modules/chunks/chunk-IKNGC766.mjs +321 -0
  112. package/dist/modules/chunks/chunk-IKNGC766.mjs.map +7 -0
  113. package/dist/modules/chunks/chunk-IVHNYKZB.mjs +35 -0
  114. package/dist/modules/chunks/chunk-IVHNYKZB.mjs.map +7 -0
  115. package/dist/modules/chunks/chunk-JHOURMYW.mjs +101 -0
  116. package/dist/modules/chunks/chunk-JHOURMYW.mjs.map +7 -0
  117. package/dist/modules/chunks/chunk-JURXMRFA.mjs +282 -0
  118. package/dist/modules/chunks/chunk-JURXMRFA.mjs.map +7 -0
  119. package/dist/modules/chunks/chunk-JWZIREC3.mjs +18 -0
  120. package/dist/modules/chunks/chunk-JWZIREC3.mjs.map +7 -0
  121. package/dist/modules/chunks/chunk-KHRTIZ56.mjs +1400 -0
  122. package/dist/modules/chunks/chunk-KHRTIZ56.mjs.map +7 -0
  123. package/dist/modules/chunks/chunk-KLJZZ23J.mjs +102 -0
  124. package/dist/modules/chunks/chunk-KLJZZ23J.mjs.map +7 -0
  125. package/dist/modules/chunks/chunk-KNBAYU5I.mjs +49 -0
  126. package/dist/modules/chunks/chunk-KNBAYU5I.mjs.map +7 -0
  127. package/dist/modules/chunks/chunk-KSZNCFU4.mjs +125 -0
  128. package/dist/modules/chunks/chunk-KSZNCFU4.mjs.map +7 -0
  129. package/dist/modules/chunks/chunk-L45W6KM6.mjs +158 -0
  130. package/dist/modules/chunks/chunk-L45W6KM6.mjs.map +7 -0
  131. package/dist/modules/chunks/chunk-LERMYZRC.mjs +239 -0
  132. package/dist/modules/chunks/chunk-LERMYZRC.mjs.map +7 -0
  133. package/dist/modules/chunks/chunk-LKJCXYSJ.mjs +91 -0
  134. package/dist/modules/chunks/chunk-LKJCXYSJ.mjs.map +7 -0
  135. package/dist/modules/chunks/chunk-MBS3EICT.mjs +25 -0
  136. package/dist/modules/chunks/chunk-MBS3EICT.mjs.map +7 -0
  137. package/dist/modules/chunks/chunk-MUOQZPVH.mjs +609 -0
  138. package/dist/modules/chunks/chunk-MUOQZPVH.mjs.map +7 -0
  139. package/dist/modules/chunks/chunk-MVEPGFSB.mjs +1 -0
  140. package/dist/modules/chunks/chunk-MVEPGFSB.mjs.map +7 -0
  141. package/dist/modules/chunks/chunk-NBJKLWJ5.mjs +42 -0
  142. package/dist/modules/chunks/chunk-NBJKLWJ5.mjs.map +7 -0
  143. package/dist/modules/chunks/chunk-NBLGKTEM.mjs +86 -0
  144. package/dist/modules/chunks/chunk-NBLGKTEM.mjs.map +7 -0
  145. package/dist/modules/chunks/chunk-NI7CS3I2.mjs +110 -0
  146. package/dist/modules/chunks/chunk-NI7CS3I2.mjs.map +7 -0
  147. package/dist/modules/chunks/chunk-NJH2OJFC.mjs +2113 -0
  148. package/dist/modules/chunks/chunk-NJH2OJFC.mjs.map +7 -0
  149. package/dist/modules/chunks/chunk-OBK4LIJB.mjs +20 -0
  150. package/dist/modules/chunks/chunk-OBK4LIJB.mjs.map +7 -0
  151. package/dist/modules/chunks/chunk-PEUT3FW7.mjs +1 -0
  152. package/dist/modules/chunks/chunk-PEUT3FW7.mjs.map +7 -0
  153. package/dist/modules/chunks/chunk-PRZOWPDN.mjs +66 -0
  154. package/dist/modules/chunks/chunk-PRZOWPDN.mjs.map +7 -0
  155. package/dist/modules/chunks/chunk-Q4RXBGQS.mjs +55 -0
  156. package/dist/modules/chunks/chunk-Q4RXBGQS.mjs.map +7 -0
  157. package/dist/modules/chunks/chunk-QBHBKOIL.mjs +55 -0
  158. package/dist/modules/chunks/chunk-QBHBKOIL.mjs.map +7 -0
  159. package/dist/modules/chunks/chunk-QD6CCRMG.mjs +20 -0
  160. package/dist/modules/chunks/chunk-QD6CCRMG.mjs.map +7 -0
  161. package/dist/modules/chunks/chunk-QF4V23GW.mjs +39 -0
  162. package/dist/modules/chunks/chunk-QF4V23GW.mjs.map +7 -0
  163. package/dist/modules/chunks/chunk-QK6W7MJO.mjs +42 -0
  164. package/dist/modules/chunks/chunk-QK6W7MJO.mjs.map +7 -0
  165. package/dist/modules/chunks/chunk-QL7V6DK7.mjs +34 -0
  166. package/dist/modules/chunks/chunk-QL7V6DK7.mjs.map +7 -0
  167. package/dist/modules/chunks/chunk-QLBQQKRI.mjs +25 -0
  168. package/dist/modules/chunks/chunk-QLBQQKRI.mjs.map +7 -0
  169. package/dist/modules/chunks/chunk-QLZQGZDC.mjs +418 -0
  170. package/dist/modules/chunks/chunk-QLZQGZDC.mjs.map +7 -0
  171. package/dist/modules/chunks/chunk-QSKQZGK7.mjs +1625 -0
  172. package/dist/modules/chunks/chunk-QSKQZGK7.mjs.map +7 -0
  173. package/dist/modules/chunks/chunk-QURKBAG4.mjs +25 -0
  174. package/dist/modules/chunks/chunk-QURKBAG4.mjs.map +7 -0
  175. package/dist/modules/chunks/chunk-R274XBEH.mjs +53 -0
  176. package/dist/modules/chunks/chunk-R274XBEH.mjs.map +7 -0
  177. package/dist/modules/chunks/chunk-R4I4JEY5.mjs +77 -0
  178. package/dist/modules/chunks/chunk-R4I4JEY5.mjs.map +7 -0
  179. package/dist/modules/chunks/chunk-RR6L6VVR.mjs +9 -0
  180. package/dist/modules/chunks/chunk-RR6L6VVR.mjs.map +7 -0
  181. package/dist/modules/chunks/chunk-RXF7SBBZ.mjs +125 -0
  182. package/dist/modules/chunks/chunk-RXF7SBBZ.mjs.map +7 -0
  183. package/dist/modules/chunks/chunk-SR66S6EJ.mjs +138 -0
  184. package/dist/modules/chunks/chunk-SR66S6EJ.mjs.map +7 -0
  185. package/dist/modules/chunks/chunk-SSQMQJ52.mjs +27 -0
  186. package/dist/modules/chunks/chunk-SSQMQJ52.mjs.map +7 -0
  187. package/dist/modules/chunks/chunk-TP26TASL.mjs +20 -0
  188. package/dist/modules/chunks/chunk-TP26TASL.mjs.map +7 -0
  189. package/dist/modules/chunks/chunk-TSAEK5P3.mjs +50 -0
  190. package/dist/modules/chunks/chunk-TSAEK5P3.mjs.map +7 -0
  191. package/dist/modules/chunks/chunk-UAY27HT3.mjs +68 -0
  192. package/dist/modules/chunks/chunk-UAY27HT3.mjs.map +7 -0
  193. package/dist/modules/chunks/chunk-UDLIWGWS.mjs +103 -0
  194. package/dist/modules/chunks/chunk-UDLIWGWS.mjs.map +7 -0
  195. package/dist/modules/chunks/chunk-UDVQHPWV.mjs +89 -0
  196. package/dist/modules/chunks/chunk-UDVQHPWV.mjs.map +7 -0
  197. package/dist/modules/chunks/chunk-UM23W3G7.mjs +237 -0
  198. package/dist/modules/chunks/chunk-UM23W3G7.mjs.map +7 -0
  199. package/dist/modules/chunks/chunk-VDZJWEAA.mjs +214 -0
  200. package/dist/modules/chunks/chunk-VDZJWEAA.mjs.map +7 -0
  201. package/dist/modules/chunks/chunk-VIGOJWSO.mjs +42 -0
  202. package/dist/modules/chunks/chunk-VIGOJWSO.mjs.map +7 -0
  203. package/dist/modules/chunks/chunk-VY3S5BWI.mjs +284 -0
  204. package/dist/modules/chunks/chunk-VY3S5BWI.mjs.map +7 -0
  205. package/dist/modules/chunks/chunk-VZXGRZYU.mjs +47 -0
  206. package/dist/modules/chunks/chunk-VZXGRZYU.mjs.map +7 -0
  207. package/dist/modules/chunks/chunk-W5DMQZB5.mjs +42 -0
  208. package/dist/modules/chunks/chunk-W5DMQZB5.mjs.map +7 -0
  209. package/dist/modules/chunks/chunk-WOMHSTVZ.mjs +918 -0
  210. package/dist/modules/chunks/chunk-WOMHSTVZ.mjs.map +7 -0
  211. package/dist/modules/chunks/chunk-XFQT7XCG.mjs +42 -0
  212. package/dist/modules/chunks/chunk-XFQT7XCG.mjs.map +7 -0
  213. package/dist/modules/chunks/chunk-XJZEVRYX.mjs +98 -0
  214. package/dist/modules/chunks/chunk-XJZEVRYX.mjs.map +7 -0
  215. package/dist/modules/chunks/chunk-XUYFV23R.mjs +317 -0
  216. package/dist/modules/chunks/chunk-XUYFV23R.mjs.map +7 -0
  217. package/dist/modules/chunks/chunk-Y5HXCPPQ.mjs +58 -0
  218. package/dist/modules/chunks/chunk-Y5HXCPPQ.mjs.map +7 -0
  219. package/dist/modules/chunks/chunk-YTHGRKGI.mjs +147 -0
  220. package/dist/modules/chunks/chunk-YTHGRKGI.mjs.map +7 -0
  221. package/dist/modules/chunks/chunk-YVQSDKAO.mjs +341 -0
  222. package/dist/modules/chunks/chunk-YVQSDKAO.mjs.map +7 -0
  223. package/dist/modules/chunks/chunk-YYXQDUVT.mjs +123 -0
  224. package/dist/modules/chunks/chunk-YYXQDUVT.mjs.map +7 -0
  225. package/dist/modules/chunks/chunk-ZFXZ2NUI.mjs +142 -0
  226. package/dist/modules/chunks/chunk-ZFXZ2NUI.mjs.map +7 -0
  227. package/dist/modules/chunks/chunk-ZLNWF4ET.mjs +9 -0
  228. package/dist/modules/chunks/chunk-ZLNWF4ET.mjs.map +7 -0
  229. package/dist/modules/chunks/chunk-ZLU5QW2O.mjs +9 -0
  230. package/dist/modules/chunks/chunk-ZLU5QW2O.mjs.map +7 -0
  231. package/dist/modules/chunks/chunk-ZNZPYE2V.mjs +28 -0
  232. package/dist/modules/chunks/chunk-ZNZPYE2V.mjs.map +7 -0
  233. package/dist/modules/chunks/core-564N45MO.mjs +7480 -0
  234. package/dist/modules/chunks/core-564N45MO.mjs.map +7 -0
  235. package/dist/modules/chunks/css-BKH4SVJG.mjs +8 -0
  236. package/dist/modules/chunks/css-BKH4SVJG.mjs.map +7 -0
  237. package/dist/modules/chunks/engine-javascript-PDVIGNGR.mjs +3241 -0
  238. package/dist/modules/chunks/engine-javascript-PDVIGNGR.mjs.map +7 -0
  239. package/dist/modules/chunks/github-dark-default-6HVTHEWF.mjs +8 -0
  240. package/dist/modules/chunks/github-dark-default-6HVTHEWF.mjs.map +7 -0
  241. package/dist/modules/chunks/github-light-default-LAXRA6XL.mjs +8 -0
  242. package/dist/modules/chunks/github-light-default-LAXRA6XL.mjs.map +7 -0
  243. package/dist/modules/chunks/glsl-UC3YWUD2.mjs +18 -0
  244. package/dist/modules/chunks/glsl-UC3YWUD2.mjs.map +7 -0
  245. package/dist/modules/chunks/html-FRVIUV63.mjs +19 -0
  246. package/dist/modules/chunks/html-FRVIUV63.mjs.map +7 -0
  247. package/dist/modules/chunks/javascript-LN3OC7S2.mjs +8 -0
  248. package/dist/modules/chunks/javascript-LN3OC7S2.mjs.map +7 -0
  249. package/dist/modules/chunks/json-5CUGWTOP.mjs +11 -0
  250. package/dist/modules/chunks/json-5CUGWTOP.mjs.map +7 -0
  251. package/dist/modules/chunks/json5-YZQI5VNO.mjs +11 -0
  252. package/dist/modules/chunks/json5-YZQI5VNO.mjs.map +7 -0
  253. package/dist/modules/chunks/jsonc-SWID6VOZ.mjs +11 -0
  254. package/dist/modules/chunks/jsonc-SWID6VOZ.mjs.map +7 -0
  255. package/dist/modules/chunks/jsx-A7RDCLJO.mjs +11 -0
  256. package/dist/modules/chunks/jsx-A7RDCLJO.mjs.map +7 -0
  257. package/dist/modules/chunks/markdown-QTCU5KP5.mjs +11 -0
  258. package/dist/modules/chunks/markdown-QTCU5KP5.mjs.map +7 -0
  259. package/dist/modules/chunks/python-LAZONBIB.mjs +11 -0
  260. package/dist/modules/chunks/python-LAZONBIB.mjs.map +7 -0
  261. package/dist/modules/chunks/rust-XWTPJFJO.mjs +11 -0
  262. package/dist/modules/chunks/rust-XWTPJFJO.mjs.map +7 -0
  263. package/dist/modules/chunks/scss-CFXRHUUW.mjs +15 -0
  264. package/dist/modules/chunks/scss-CFXRHUUW.mjs.map +7 -0
  265. package/dist/modules/chunks/shellscript-OHO3LCVU.mjs +11 -0
  266. package/dist/modules/chunks/shellscript-OHO3LCVU.mjs.map +7 -0
  267. package/dist/modules/chunks/toml-IOHFZJ5B.mjs +11 -0
  268. package/dist/modules/chunks/toml-IOHFZJ5B.mjs.map +7 -0
  269. package/dist/modules/chunks/tsx-2E6WNX2E.mjs +11 -0
  270. package/dist/modules/chunks/tsx-2E6WNX2E.mjs.map +7 -0
  271. package/dist/modules/chunks/typescript-PBKAS54P.mjs +11 -0
  272. package/dist/modules/chunks/typescript-PBKAS54P.mjs.map +7 -0
  273. package/dist/modules/chunks/wgsl-PS6QPRLZ.mjs +11 -0
  274. package/dist/modules/chunks/wgsl-PS6QPRLZ.mjs.map +7 -0
  275. package/dist/modules/chunks/xml-JECR2ACB.mjs +18 -0
  276. package/dist/modules/chunks/xml-JECR2ACB.mjs.map +7 -0
  277. package/dist/modules/chunks/yaml-P2SV4LOE.mjs +11 -0
  278. package/dist/modules/chunks/yaml-P2SV4LOE.mjs.map +7 -0
  279. package/dist/modules/cli-contributions.mjs +32 -0
  280. package/dist/modules/cli-contributions.mjs.map +7 -0
  281. package/dist/modules/cli.mjs +14 -0
  282. package/dist/modules/cli.mjs.map +7 -0
  283. package/dist/modules/command-executor.mjs +65 -0
  284. package/dist/modules/command-executor.mjs.map +7 -0
  285. package/dist/modules/commands.mjs +10 -0
  286. package/dist/modules/commands.mjs.map +7 -0
  287. package/dist/modules/embedded.mjs +18608 -0
  288. package/dist/modules/embedded.mjs.map +7 -0
  289. package/dist/modules/extension-bridge.mjs +18 -0
  290. package/dist/modules/extension-bridge.mjs.map +7 -0
  291. package/dist/modules/frontend-root.mjs +61 -0
  292. package/dist/modules/frontend-root.mjs.map +7 -0
  293. package/dist/modules/index.mjs +784 -0
  294. package/dist/modules/index.mjs.map +7 -0
  295. package/dist/modules/page.mjs +45 -0
  296. package/dist/modules/page.mjs.map +7 -0
  297. package/dist/modules/pages/scene.mjs +18 -0
  298. package/dist/modules/pages/scene.mjs.map +7 -0
  299. package/dist/modules/plugin.mjs +56 -0
  300. package/dist/modules/plugin.mjs.map +7 -0
  301. package/dist/modules/plugins/asset/frontend.mjs +23 -0
  302. package/dist/modules/plugins/asset/frontend.mjs.map +7 -0
  303. package/dist/modules/plugins/asset/i18n.mjs +15 -0
  304. package/dist/modules/plugins/asset/i18n.mjs.map +7 -0
  305. package/dist/modules/plugins/asset/identity.mjs +42 -0
  306. package/dist/modules/plugins/asset/identity.mjs.map +7 -0
  307. package/dist/modules/plugins/asset/schema.mjs +10 -0
  308. package/dist/modules/plugins/asset/schema.mjs.map +7 -0
  309. package/dist/modules/plugins/asset/ui.mjs +16 -0
  310. package/dist/modules/plugins/asset/ui.mjs.map +7 -0
  311. package/dist/modules/plugins/content-browser/frontend.mjs +17 -0
  312. package/dist/modules/plugins/content-browser/frontend.mjs.map +7 -0
  313. package/dist/modules/plugins/content-browser/i18n.mjs +15 -0
  314. package/dist/modules/plugins/content-browser/i18n.mjs.map +7 -0
  315. package/dist/modules/plugins/content-browser/identity.mjs +22 -0
  316. package/dist/modules/plugins/content-browser/identity.mjs.map +7 -0
  317. package/dist/modules/plugins/content-browser/schema.mjs +12 -0
  318. package/dist/modules/plugins/content-browser/schema.mjs.map +7 -0
  319. package/dist/modules/plugins/content-browser/ui.mjs +15 -0
  320. package/dist/modules/plugins/content-browser/ui.mjs.map +7 -0
  321. package/dist/modules/plugins/display/api.mjs +10 -0
  322. package/dist/modules/plugins/display/api.mjs.map +7 -0
  323. package/dist/modules/plugins/display/backend.mjs +16 -0
  324. package/dist/modules/plugins/display/backend.mjs.map +7 -0
  325. package/dist/modules/plugins/display/carrier-contract.mjs +38 -0
  326. package/dist/modules/plugins/display/carrier-contract.mjs.map +7 -0
  327. package/dist/modules/plugins/display/carrier.mjs +13 -0
  328. package/dist/modules/plugins/display/carrier.mjs.map +7 -0
  329. package/dist/modules/plugins/display/effects.mjs +8 -0
  330. package/dist/modules/plugins/display/effects.mjs.map +7 -0
  331. package/dist/modules/plugins/display/frontend.mjs +14 -0
  332. package/dist/modules/plugins/display/frontend.mjs.map +7 -0
  333. package/dist/modules/plugins/display/i18n.mjs +58 -0
  334. package/dist/modules/plugins/display/i18n.mjs.map +7 -0
  335. package/dist/modules/plugins/display/identity.mjs +30 -0
  336. package/dist/modules/plugins/display/identity.mjs.map +7 -0
  337. package/dist/modules/plugins/display/page-broker.mjs +12 -0
  338. package/dist/modules/plugins/display/page-broker.mjs.map +7 -0
  339. package/dist/modules/plugins/display/schema.mjs +40 -0
  340. package/dist/modules/plugins/display/schema.mjs.map +7 -0
  341. package/dist/modules/plugins/display/ui.mjs +9 -0
  342. package/dist/modules/plugins/display/ui.mjs.map +7 -0
  343. package/dist/modules/plugins/inspector/frontend.mjs +17 -0
  344. package/dist/modules/plugins/inspector/frontend.mjs.map +7 -0
  345. package/dist/modules/plugins/inspector/i18n.mjs +15 -0
  346. package/dist/modules/plugins/inspector/i18n.mjs.map +7 -0
  347. package/dist/modules/plugins/inspector/identity.mjs +22 -0
  348. package/dist/modules/plugins/inspector/identity.mjs.map +7 -0
  349. package/dist/modules/plugins/inspector/schema.mjs +12 -0
  350. package/dist/modules/plugins/inspector/schema.mjs.map +7 -0
  351. package/dist/modules/plugins/inspector/ui.mjs +16 -0
  352. package/dist/modules/plugins/inspector/ui.mjs.map +7 -0
  353. package/dist/modules/plugins/material/frontend.mjs +25 -0
  354. package/dist/modules/plugins/material/frontend.mjs.map +7 -0
  355. package/dist/modules/plugins/material/i18n.mjs +15 -0
  356. package/dist/modules/plugins/material/i18n.mjs.map +7 -0
  357. package/dist/modules/plugins/material/identity.mjs +60 -0
  358. package/dist/modules/plugins/material/identity.mjs.map +7 -0
  359. package/dist/modules/plugins/material/schema.mjs +47 -0
  360. package/dist/modules/plugins/material/schema.mjs.map +7 -0
  361. package/dist/modules/plugins/material/ui.mjs +28 -0
  362. package/dist/modules/plugins/material/ui.mjs.map +7 -0
  363. package/dist/modules/plugins/mesh/frontend.mjs +23 -0
  364. package/dist/modules/plugins/mesh/frontend.mjs.map +7 -0
  365. package/dist/modules/plugins/mesh/i18n.mjs +15 -0
  366. package/dist/modules/plugins/mesh/i18n.mjs.map +7 -0
  367. package/dist/modules/plugins/mesh/identity.mjs +54 -0
  368. package/dist/modules/plugins/mesh/identity.mjs.map +7 -0
  369. package/dist/modules/plugins/mesh/schema.mjs +10 -0
  370. package/dist/modules/plugins/mesh/schema.mjs.map +7 -0
  371. package/dist/modules/plugins/mesh/ui.mjs +26 -0
  372. package/dist/modules/plugins/mesh/ui.mjs.map +7 -0
  373. package/dist/modules/plugins/plugins/api.mjs +11 -0
  374. package/dist/modules/plugins/plugins/api.mjs.map +7 -0
  375. package/dist/modules/plugins/plugins/backend.mjs +21 -0
  376. package/dist/modules/plugins/plugins/backend.mjs.map +7 -0
  377. package/dist/modules/plugins/plugins/cli.mjs +12 -0
  378. package/dist/modules/plugins/plugins/cli.mjs.map +7 -0
  379. package/dist/modules/plugins/plugins/frontend.mjs +17 -0
  380. package/dist/modules/plugins/plugins/frontend.mjs.map +7 -0
  381. package/dist/modules/plugins/plugins/i18n.mjs +15 -0
  382. package/dist/modules/plugins/plugins/i18n.mjs.map +7 -0
  383. package/dist/modules/plugins/plugins/identity.mjs +26 -0
  384. package/dist/modules/plugins/plugins/identity.mjs.map +7 -0
  385. package/dist/modules/plugins/plugins/runtime.mjs +50 -0
  386. package/dist/modules/plugins/plugins/runtime.mjs.map +7 -0
  387. package/dist/modules/plugins/plugins/schema.mjs +12 -0
  388. package/dist/modules/plugins/plugins/schema.mjs.map +7 -0
  389. package/dist/modules/plugins/plugins/ui/panel.mjs +14 -0
  390. package/dist/modules/plugins/plugins/ui/panel.mjs.map +7 -0
  391. package/dist/modules/plugins/plugins/ui.mjs +15 -0
  392. package/dist/modules/plugins/plugins/ui.mjs.map +7 -0
  393. package/dist/modules/plugins/scene/frontend.mjs +18 -0
  394. package/dist/modules/plugins/scene/frontend.mjs.map +7 -0
  395. package/dist/modules/plugins/scene/identity.mjs +14 -0
  396. package/dist/modules/plugins/scene/identity.mjs.map +7 -0
  397. package/dist/modules/plugins/scene-tree/frontend.mjs +17 -0
  398. package/dist/modules/plugins/scene-tree/frontend.mjs.map +7 -0
  399. package/dist/modules/plugins/scene-tree/i18n.mjs +15 -0
  400. package/dist/modules/plugins/scene-tree/i18n.mjs.map +7 -0
  401. package/dist/modules/plugins/scene-tree/identity.mjs +22 -0
  402. package/dist/modules/plugins/scene-tree/identity.mjs.map +7 -0
  403. package/dist/modules/plugins/scene-tree/schema.mjs +12 -0
  404. package/dist/modules/plugins/scene-tree/schema.mjs.map +7 -0
  405. package/dist/modules/plugins/scene-tree/ui.mjs +16 -0
  406. package/dist/modules/plugins/scene-tree/ui.mjs.map +7 -0
  407. package/dist/modules/plugins/texture/frontend.mjs +23 -0
  408. package/dist/modules/plugins/texture/frontend.mjs.map +7 -0
  409. package/dist/modules/plugins/texture/i18n.mjs +15 -0
  410. package/dist/modules/plugins/texture/i18n.mjs.map +7 -0
  411. package/dist/modules/plugins/texture/identity.mjs +54 -0
  412. package/dist/modules/plugins/texture/identity.mjs.map +7 -0
  413. package/dist/modules/plugins/texture/schema.mjs +10 -0
  414. package/dist/modules/plugins/texture/schema.mjs.map +7 -0
  415. package/dist/modules/plugins/texture/ui.mjs +26 -0
  416. package/dist/modules/plugins/texture/ui.mjs.map +7 -0
  417. package/dist/modules/plugins/viewport/frontend.mjs +27 -0
  418. package/dist/modules/plugins/viewport/frontend.mjs.map +7 -0
  419. package/dist/modules/plugins/viewport/identity.mjs +28 -0
  420. package/dist/modules/plugins/viewport/identity.mjs.map +7 -0
  421. package/dist/modules/plugins/viewport/presentation-identity.mjs +10 -0
  422. package/dist/modules/plugins/viewport/presentation-identity.mjs.map +7 -0
  423. package/dist/modules/plugins/viewport/presentation.mjs +18 -0
  424. package/dist/modules/plugins/viewport/presentation.mjs.map +7 -0
  425. package/dist/modules/plugins/viewport/schema.mjs +18 -0
  426. package/dist/modules/plugins/viewport/schema.mjs.map +7 -0
  427. package/dist/modules/plugins/viewport/workspace-shell.mjs +29 -0
  428. package/dist/modules/plugins/viewport/workspace-shell.mjs.map +7 -0
  429. package/dist/modules/shell/contract.mjs +10 -0
  430. package/dist/modules/shell/contract.mjs.map +7 -0
  431. package/dist/modules/shell/frontend.mjs +14 -0
  432. package/dist/modules/shell/frontend.mjs.map +7 -0
  433. package/dist/modules/shell/layout-zones.mjs +20 -0
  434. package/dist/modules/shell/layout-zones.mjs.map +7 -0
  435. package/dist/modules/start-cli.mjs +57 -0
  436. package/dist/modules/start-cli.mjs.map +7 -0
  437. package/dist/modules/start.mjs +18 -0
  438. package/dist/modules/start.mjs.map +7 -0
  439. package/dist/modules/viewer/catalog/backend.mjs +47 -0
  440. package/dist/modules/viewer/catalog/backend.mjs.map +7 -0
  441. package/dist/modules/viewer/catalog/frontend.mjs +55 -0
  442. package/dist/modules/viewer/catalog/frontend.mjs.map +7 -0
  443. package/dist/modules/viewer/catalog/shared.mjs +43 -0
  444. package/dist/modules/viewer/catalog/shared.mjs.map +7 -0
  445. package/dist/modules/viewer/catalog.mjs +85 -0
  446. package/dist/modules/viewer/catalog.mjs.map +7 -0
  447. package/dist/modules/viewer/cli.mjs +23 -0
  448. package/dist/modules/viewer/cli.mjs.map +7 -0
  449. package/dist/modules/viewer-host/frontend.mjs +65 -0
  450. package/dist/modules/viewer-host/frontend.mjs.map +7 -0
  451. package/dist/modules/viewer-host/page-registry.mjs +27 -0
  452. package/dist/modules/viewer-host/page-registry.mjs.map +7 -0
  453. package/dist/modules/viewer-host/slot-registry.mjs +8 -0
  454. package/dist/modules/viewer-host/slot-registry.mjs.map +7 -0
  455. package/dist/modules/viewer-host.mjs +43 -0
  456. package/dist/modules/viewer-host.mjs.map +7 -0
  457. package/dist/modules/viewer.mjs +85 -0
  458. package/dist/modules/viewer.mjs.map +7 -0
  459. package/dist/modules/workspace/adopt-surface.mjs +16 -0
  460. package/dist/modules/workspace/adopt-surface.mjs.map +7 -0
  461. package/dist/modules/workspace/api.mjs +8 -0
  462. package/dist/modules/workspace/api.mjs.map +7 -0
  463. package/dist/modules/workspace/backend.mjs +23 -0
  464. package/dist/modules/workspace/backend.mjs.map +7 -0
  465. package/dist/modules/workspace/broker.mjs +16 -0
  466. package/dist/modules/workspace/broker.mjs.map +7 -0
  467. package/dist/modules/workspace/cli.mjs +9 -0
  468. package/dist/modules/workspace/cli.mjs.map +7 -0
  469. package/dist/modules/workspace/client.mjs +15 -0
  470. package/dist/modules/workspace/client.mjs.map +7 -0
  471. package/dist/modules/workspace/command-error.mjs +16 -0
  472. package/dist/modules/workspace/command-error.mjs.map +7 -0
  473. package/dist/modules/workspace/contract.mjs +71 -0
  474. package/dist/modules/workspace/contract.mjs.map +7 -0
  475. package/dist/modules/workspace/demo-client.mjs +127 -0
  476. package/dist/modules/workspace/demo-client.mjs.map +7 -0
  477. package/dist/modules/workspace/engine-adapter.mjs +16 -0
  478. package/dist/modules/workspace/engine-adapter.mjs.map +7 -0
  479. package/dist/modules/workspace/engine-presentation.mjs +10 -0
  480. package/dist/modules/workspace/engine-presentation.mjs.map +7 -0
  481. package/dist/modules/workspace/extension-bridge.mjs +18 -0
  482. package/dist/modules/workspace/extension-bridge.mjs.map +7 -0
  483. package/dist/modules/workspace/frontend-plugin.mjs +18 -0
  484. package/dist/modules/workspace/frontend-plugin.mjs.map +7 -0
  485. package/dist/modules/workspace/frontend.mjs +29 -0
  486. package/dist/modules/workspace/frontend.mjs.map +7 -0
  487. package/dist/modules/workspace/id.mjs +8 -0
  488. package/dist/modules/workspace/id.mjs.map +7 -0
  489. package/dist/modules/workspace/inspection-presentation.mjs +12 -0
  490. package/dist/modules/workspace/inspection-presentation.mjs.map +7 -0
  491. package/dist/modules/workspace/locale-bridge.mjs +14 -0
  492. package/dist/modules/workspace/locale-bridge.mjs.map +7 -0
  493. package/dist/modules/workspace/page-title.mjs +13 -0
  494. package/dist/modules/workspace/page-title.mjs.map +7 -0
  495. package/dist/modules/workspace/presentation.mjs +18 -0
  496. package/dist/modules/workspace/presentation.mjs.map +7 -0
  497. package/dist/modules/workspace/preview-surface.mjs +17 -0
  498. package/dist/modules/workspace/preview-surface.mjs.map +7 -0
  499. package/dist/modules/workspace/project-session.mjs +18 -0
  500. package/dist/modules/workspace/project-session.mjs.map +7 -0
  501. package/dist/modules/workspace/render-resize-sync.mjs +12 -0
  502. package/dist/modules/workspace/render-resize-sync.mjs.map +7 -0
  503. package/dist/modules/workspace/resident.mjs +16 -0
  504. package/dist/modules/workspace/resident.mjs.map +7 -0
  505. package/dist/modules/workspace/resource-open.mjs +34 -0
  506. package/dist/modules/workspace/resource-open.mjs.map +7 -0
  507. package/dist/modules/workspace/resource-page.mjs +27 -0
  508. package/dist/modules/workspace/resource-page.mjs.map +7 -0
  509. package/dist/modules/workspace/tool-runtime.mjs +14 -0
  510. package/dist/modules/workspace/tool-runtime.mjs.map +7 -0
  511. package/dist/modules/workspace/view-trace.mjs +60 -0
  512. package/dist/modules/workspace/view-trace.mjs.map +7 -0
  513. package/dist/modules/workspace/workspace-client-connection.mjs +22 -0
  514. package/dist/modules/workspace/workspace-client-connection.mjs.map +7 -0
  515. package/dist/modules/workspace/workspace-recovery.mjs +35 -0
  516. package/dist/modules/workspace/workspace-recovery.mjs.map +7 -0
  517. package/dist/modules/workspace/workspace-state.mjs +12 -0
  518. package/dist/modules/workspace/workspace-state.mjs.map +7 -0
  519. package/dist/modules/workspace-frontend.mjs +17 -0
  520. package/dist/modules/workspace-frontend.mjs.map +7 -0
  521. package/dist/viewer/assets/chunk-CilyBKbf.js +1 -0
  522. package/dist/viewer/assets/core-DSQma37-.js +13 -0
  523. package/dist/viewer/assets/core-DSQma37-.js.map +1 -0
  524. package/dist/viewer/assets/css-Bq1BXecw.js +2 -0
  525. package/dist/viewer/assets/css-Bq1BXecw.js.map +1 -0
  526. package/dist/viewer/assets/css-CWQWazmX.js +1 -0
  527. package/dist/viewer/assets/embedded-D4ZDx--W.js +2 -0
  528. package/dist/viewer/assets/embedded-D4ZDx--W.js.map +1 -0
  529. package/dist/viewer/assets/engine-javascript-BvokIV9O.js +142 -0
  530. package/dist/viewer/assets/engine-javascript-BvokIV9O.js.map +1 -0
  531. package/dist/viewer/assets/github-dark-default-DaDlj-WZ.js +2 -0
  532. package/dist/viewer/assets/github-dark-default-DaDlj-WZ.js.map +1 -0
  533. package/dist/viewer/assets/github-light-default-BqhWxAZd.js +2 -0
  534. package/dist/viewer/assets/github-light-default-BqhWxAZd.js.map +1 -0
  535. package/dist/viewer/assets/glsl-BJgVnv11.js +2 -0
  536. package/dist/viewer/assets/glsl-BJgVnv11.js.map +1 -0
  537. package/dist/viewer/assets/html-AaaHGGyt.js +2 -0
  538. package/dist/viewer/assets/html-AaaHGGyt.js.map +1 -0
  539. package/dist/viewer/assets/javascript-BX9W64FE.js +1 -0
  540. package/dist/viewer/assets/javascript-DQODvD07.js +2 -0
  541. package/dist/viewer/assets/javascript-DQODvD07.js.map +1 -0
  542. package/dist/viewer/assets/json-CpcIDpT7.js +2 -0
  543. package/dist/viewer/assets/json-CpcIDpT7.js.map +1 -0
  544. package/dist/viewer/assets/json5-Czq4A7dk.js +2 -0
  545. package/dist/viewer/assets/json5-Czq4A7dk.js.map +1 -0
  546. package/dist/viewer/assets/jsonc-BXDfCMmu.js +2 -0
  547. package/dist/viewer/assets/jsonc-BXDfCMmu.js.map +1 -0
  548. package/dist/viewer/assets/jsx-DAWscEnf.js +2 -0
  549. package/dist/viewer/assets/jsx-DAWscEnf.js.map +1 -0
  550. package/dist/viewer/assets/main-C-2CHTN_.js +15 -0
  551. package/dist/viewer/assets/main-C-2CHTN_.js.map +1 -0
  552. package/dist/viewer/assets/markdown-Cx1FMNw-.js +2 -0
  553. package/dist/viewer/assets/markdown-Cx1FMNw-.js.map +1 -0
  554. package/dist/viewer/assets/panels-entry-Ddhfjgf0.js +46 -0
  555. package/dist/viewer/assets/panels-entry-Ddhfjgf0.js.map +1 -0
  556. package/dist/viewer/assets/python-CYPKjWV9.js +2 -0
  557. package/dist/viewer/assets/python-CYPKjWV9.js.map +1 -0
  558. package/dist/viewer/assets/rust-0e5cNx_V.js +2 -0
  559. package/dist/viewer/assets/rust-0e5cNx_V.js.map +1 -0
  560. package/dist/viewer/assets/scss-B-aKzLbT.js +2 -0
  561. package/dist/viewer/assets/scss-B-aKzLbT.js.map +1 -0
  562. package/dist/viewer/assets/shellscript-CpXD-pSm.js +2 -0
  563. package/dist/viewer/assets/shellscript-CpXD-pSm.js.map +1 -0
  564. package/dist/viewer/assets/style-ClttNKZk.css +2 -0
  565. package/dist/viewer/assets/styles-BXozhwiU.js +11 -0
  566. package/dist/viewer/assets/styles-BXozhwiU.js.map +1 -0
  567. package/dist/viewer/assets/toml-GmchYTXa.js +2 -0
  568. package/dist/viewer/assets/toml-GmchYTXa.js.map +1 -0
  569. package/dist/viewer/assets/tsx-Crj1Bi53.js +2 -0
  570. package/dist/viewer/assets/tsx-Crj1Bi53.js.map +1 -0
  571. package/dist/viewer/assets/typescript-xi0cSHCO.js +2 -0
  572. package/dist/viewer/assets/typescript-xi0cSHCO.js.map +1 -0
  573. package/dist/viewer/assets/wgsl-BoEPRo9U.js +2 -0
  574. package/dist/viewer/assets/wgsl-BoEPRo9U.js.map +1 -0
  575. package/dist/viewer/assets/xml-B8JqQrMD.js +2 -0
  576. package/dist/viewer/assets/xml-B8JqQrMD.js.map +1 -0
  577. package/dist/viewer/assets/yaml-DsIB85X9.js +2 -0
  578. package/dist/viewer/assets/yaml-DsIB85X9.js.map +1 -0
  579. package/dist/viewer/index.html +15 -0
  580. package/dist/viewer/panels.js +1 -0
  581. package/host.pack.json +13 -0
  582. package/package.json +174 -0
  583. package/skills/forgeax-view-cli/SKILL.md +74 -0
  584. package/skills/forgeax-view-start/SKILL.md +202 -0
  585. 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 {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YAAY,eAAe,iBAAiB;AAAA,QAC5C,cAAc,eAAe,EAAE,MAAM,SAAS,CAAC;AAAA,QAC/C,aAAa;AAAA,QACb,cAAc,EAAE,MAAM,SAAS;AAAA,QAC/B,UAAU,CAAC;AAAA,MACb,GAAG,CAAC,SAAS;AACX,cAAM,QAAQ;AACd,eAAO,QAAQ,MAAM,YAAY,MAAM,KAAK,CAAC;AAAA,MAC/C,CAAC;AAAA,IACH;AACA,UAAM,SAAS,cAAc,KAAK,OAAO,EAAE,UAAU,iBAAiB,QAAQ,wBAAwB,OAAO,OAAO,CAAC;AACrH,QAAI,OAAO,MAAM,YAAY;AAAE,YAAM,OAAO;AAAG,YAAM;AAAO,YAAM,KAAK;AAAA,IAAG,CAAC;AAAA,EAC7E;AACF;;;AC5NO,IAAM,yBAAyB;AAC/B,IAAM,6BAA6B;",
6
+ "names": []
7
+ }
@@ -0,0 +1,144 @@
1
+ import {
2
+ VIEW_WORKSPACE_API_VERSION,
3
+ ViewWorkspaceError,
4
+ cloneWorkspaceValue,
5
+ workspaceError
6
+ } from "./chunk-32GD5LL6.mjs";
7
+
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;AAAA,MAChD;AAAA,QACE,SAAS,UAAU,OAAO,KAAK,EAAE,QAAQ;AAAA,QACzC,GAAI,WAAW,OAAO,YAAY,WAAW,EAAE,OAAO,QAAQ,IAAI,CAAC;AAAA,MACrE;AAAA,IACF;AAAA,EACF;AACA,SAAO;AAAA,IACL;AAAA,IACA,OAAO,SAAS,aAAa,WAAW,QAAQ,WAAW;AAAA,IAC3D;AAAA,IACA,EAAE,SAAS,UAAU,OAAO,KAAK,EAAE,QAAQ,EAAE;AAAA,EAC/C;AACF;AAEA,eAAsB,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;AAAA,QAC9B,cAAc,CAAC;AAAA,QACf,UAAU,CAAC;AAAA,MACb;AAAA,MACA,OAAO,UAAU,YAAY;AAC3B,YAAI;AACF,iBAAO;AAAA,YACL,MAAM,UAAU;AAAA,cACd;AAAA,gBACE,YAAY;AAAA,gBACZ,WAAW,YAAY,aAAa,YAAY;AAAA,gBAChD,UAAU,SAAS;AAAA,gBACnB,WAAW,SAAS;AAAA,gBACpB,MAAM,SAAS;AAAA,gBACf,GAAI,SAAS,UAAU,SAAY,CAAC,IAAI,EAAE,OAAO,SAAS,MAAM;AAAA,cAClE;AAAA,cACA,EAAE,QAAQ,QAAQ,QAAQ,QAAQ,QAAQ,OAAO;AAAA,YACnD;AAAA,UACF;AAAA,QACF,SAAS,OAAO;AACd,cAAI,iBAAiB,oBAAoB;AACvC,mBAAO;AAAA,cACL,IAAI;AAAA,cACJ,OAAO;AAAA,gBACL,MAAM,MAAM;AAAA,gBACZ,UAAU,MAAM;AAAA,gBAChB,MAAM,MAAM;AAAA,gBACZ,QAAQ,UAAU,MAAM,MAAM;AAAA,cAChC;AAAA,YACF;AAAA,UACF;AACA,gBAAM;AAAA,QACR;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF;",
6
+ "names": []
7
+ }
@@ -0,0 +1,40 @@
1
+ import {
2
+ cliContributions
3
+ } from "./chunk-AEK7ZESQ.mjs";
4
+ 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
+ }