@semiont/cli 0.5.1 → 0.5.3

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 (244) hide show
  1. package/dist/cli.mjs +268 -134
  2. package/dist/frontend/dist/assets/{CookiePreferences-D5wgmVC7.js → CookiePreferences-BizeRUGG.js} +2 -2
  3. package/dist/frontend/dist/assets/{CookiePreferences-D5wgmVC7.js.map → CookiePreferences-BizeRUGG.js.map} +1 -1
  4. package/dist/frontend/dist/assets/{PdfAnnotationCanvas.client-5QESNO5H-B7UjwjIX.js → PdfAnnotationCanvas.client-5QESNO5H-C_S4hy6Q.js} +2 -2
  5. package/dist/frontend/dist/assets/{PdfAnnotationCanvas.client-5QESNO5H-B7UjwjIX.js.map → PdfAnnotationCanvas.client-5QESNO5H-C_S4hy6Q.js.map} +1 -1
  6. package/dist/frontend/dist/assets/ToolbarPanels-Cz2uv68j.js +2 -0
  7. package/dist/frontend/dist/assets/ToolbarPanels-Cz2uv68j.js.map +1 -0
  8. package/dist/frontend/dist/assets/ar-UUMMNQKF-xeh4Cwx2.js +2 -0
  9. package/dist/frontend/dist/assets/ar-UUMMNQKF-xeh4Cwx2.js.map +1 -0
  10. package/dist/frontend/dist/assets/bn-AL5BJSR3-Dz19S8vN.js +2 -0
  11. package/dist/frontend/dist/assets/bn-AL5BJSR3-Dz19S8vN.js.map +1 -0
  12. package/dist/frontend/dist/assets/client-BrB8xl9P.js +2 -0
  13. package/dist/frontend/dist/assets/client-BrB8xl9P.js.map +1 -0
  14. package/dist/frontend/dist/assets/client-C5p1ZZtM.js +2 -0
  15. package/dist/frontend/dist/assets/client-C5p1ZZtM.js.map +1 -0
  16. package/dist/frontend/dist/assets/client-D6q4B6bq.js +2 -0
  17. package/dist/frontend/dist/assets/client-D6q4B6bq.js.map +1 -0
  18. package/dist/frontend/dist/assets/client-SkLMw-j7.js +2 -0
  19. package/dist/frontend/dist/assets/client-SkLMw-j7.js.map +1 -0
  20. package/dist/frontend/dist/assets/cs-UMINALSU-HHT-dcWL.js +2 -0
  21. package/dist/frontend/dist/assets/cs-UMINALSU-HHT-dcWL.js.map +1 -0
  22. package/dist/frontend/dist/assets/da-FKUX6CDL-BpdJ67RW.js +2 -0
  23. package/dist/frontend/dist/assets/da-FKUX6CDL-BpdJ67RW.js.map +1 -0
  24. package/dist/frontend/dist/assets/de-XSJ3E25S-DJ6EvHYY.js +2 -0
  25. package/dist/frontend/dist/assets/de-XSJ3E25S-DJ6EvHYY.js.map +1 -0
  26. package/dist/frontend/dist/assets/el-UJXNRCBP-DhRdKHlx.js +2 -0
  27. package/dist/frontend/dist/assets/el-UJXNRCBP-DhRdKHlx.js.map +1 -0
  28. package/dist/frontend/dist/assets/es-VURP62BU-CgnB380t.js +2 -0
  29. package/dist/frontend/dist/assets/es-VURP62BU-CgnB380t.js.map +1 -0
  30. package/dist/frontend/dist/assets/{fa-V6JZJDYP-C8CwCeSd.js → fa-TIT5ZPZY-D28qBiUW.js} +2 -2
  31. package/dist/frontend/dist/assets/fa-TIT5ZPZY-D28qBiUW.js.map +1 -0
  32. package/dist/frontend/dist/assets/fi-F7VTGT4H-BeG0kw0Q.js +2 -0
  33. package/dist/frontend/dist/assets/fi-F7VTGT4H-BeG0kw0Q.js.map +1 -0
  34. package/dist/frontend/dist/assets/fr-2ZR26VF7-BwamaA96.js +2 -0
  35. package/dist/frontend/dist/assets/fr-2ZR26VF7-BwamaA96.js.map +1 -0
  36. package/dist/frontend/dist/assets/he-BXP2KYVZ-DuKmwNm_.js +2 -0
  37. package/dist/frontend/dist/assets/he-BXP2KYVZ-DuKmwNm_.js.map +1 -0
  38. package/dist/frontend/dist/assets/hi-PSWTP3NC-B7v6ttqy.js +2 -0
  39. package/dist/frontend/dist/assets/hi-PSWTP3NC-B7v6ttqy.js.map +1 -0
  40. package/dist/frontend/dist/assets/id-HO6TXGTO-Dj1JW3-q.js +2 -0
  41. package/dist/frontend/dist/assets/id-HO6TXGTO-Dj1JW3-q.js.map +1 -0
  42. package/dist/frontend/dist/assets/index-QjYSiWWG.js +169 -0
  43. package/dist/frontend/dist/assets/index-QjYSiWWG.js.map +1 -0
  44. package/dist/frontend/dist/assets/it-AGTDMBL3-Bq_I1CA1.js +2 -0
  45. package/dist/frontend/dist/assets/it-AGTDMBL3-Bq_I1CA1.js.map +1 -0
  46. package/dist/frontend/dist/assets/ja-TTGOVF5K-CkAQueln.js +2 -0
  47. package/dist/frontend/dist/assets/ja-TTGOVF5K-CkAQueln.js.map +1 -0
  48. package/dist/frontend/dist/assets/ko-FF77IQ7N-fJgs5Roz.js +2 -0
  49. package/dist/frontend/dist/assets/ko-FF77IQ7N-fJgs5Roz.js.map +1 -0
  50. package/dist/frontend/dist/assets/{layout-BNfHKiGS.js → layout-BO_gP65g.js} +2 -2
  51. package/dist/frontend/dist/assets/layout-BO_gP65g.js.map +1 -0
  52. package/dist/frontend/dist/assets/layout-C-P8uUyx.js +2 -0
  53. package/dist/frontend/dist/assets/layout-C-P8uUyx.js.map +1 -0
  54. package/dist/frontend/dist/assets/{layout-Delbhxmy.js → layout-C7qxASOF.js} +2 -2
  55. package/dist/frontend/dist/assets/{layout-Delbhxmy.js.map → layout-C7qxASOF.js.map} +1 -1
  56. package/dist/frontend/dist/assets/{layout-G6HeeKIH.js → layout-DVrTweI_.js} +2 -2
  57. package/dist/frontend/dist/assets/{layout-G6HeeKIH.js.map → layout-DVrTweI_.js.map} +1 -1
  58. package/dist/frontend/dist/assets/ms-UPQWWIL4-DEDFniGv.js +2 -0
  59. package/dist/frontend/dist/assets/ms-UPQWWIL4-DEDFniGv.js.map +1 -0
  60. package/dist/frontend/dist/assets/nl-W75HEPFL-D2_VQYac.js +2 -0
  61. package/dist/frontend/dist/assets/nl-W75HEPFL-D2_VQYac.js.map +1 -0
  62. package/dist/frontend/dist/assets/no-R4W7W7ZU-Duk86nrT.js +2 -0
  63. package/dist/frontend/dist/assets/no-R4W7W7ZU-Duk86nrT.js.map +1 -0
  64. package/dist/frontend/dist/assets/{not-found-CtwZrTVU.js → not-found-CVsHHn2n.js} +2 -2
  65. package/dist/frontend/dist/assets/{not-found-CtwZrTVU.js.map → not-found-CVsHHn2n.js.map} +1 -1
  66. package/dist/frontend/dist/assets/page-3CgxsYbh.js +2 -0
  67. package/dist/frontend/dist/assets/page-3CgxsYbh.js.map +1 -0
  68. package/dist/frontend/dist/assets/{page-CkiQdVlI.js → page-8S-MQzsq.js} +2 -2
  69. package/dist/frontend/dist/assets/page-8S-MQzsq.js.map +1 -0
  70. package/dist/frontend/dist/assets/{page-CI8oLbhf.js → page-B-leMN2k.js} +2 -2
  71. package/dist/frontend/dist/assets/{page-CI8oLbhf.js.map → page-B-leMN2k.js.map} +1 -1
  72. package/dist/frontend/dist/assets/page-B5Dz_Nh-.js +2 -0
  73. package/dist/frontend/dist/assets/page-B5Dz_Nh-.js.map +1 -0
  74. package/dist/frontend/dist/assets/{page-DSW3JQF2.js → page-BfKm2iQ2.js} +2 -2
  75. package/dist/frontend/dist/assets/{page-DSW3JQF2.js.map → page-BfKm2iQ2.js.map} +1 -1
  76. package/dist/frontend/dist/assets/{page-D_6K1M4j.js → page-Br5SeiDL.js} +2 -2
  77. package/dist/frontend/dist/assets/page-Br5SeiDL.js.map +1 -0
  78. package/dist/frontend/dist/assets/page-C6_MlYjr.js +2 -0
  79. package/dist/frontend/dist/assets/{page-DU909Np3.js.map → page-C6_MlYjr.js.map} +1 -1
  80. package/dist/frontend/dist/assets/page-CXE3Zhkq.js +2 -0
  81. package/dist/frontend/dist/assets/page-CXE3Zhkq.js.map +1 -0
  82. package/dist/frontend/dist/assets/page-Cg1IhnH2.js +2 -0
  83. package/dist/frontend/dist/assets/page-Cg1IhnH2.js.map +1 -0
  84. package/dist/frontend/dist/assets/page-CqV1yD4w.js +2 -0
  85. package/dist/frontend/dist/assets/page-CqV1yD4w.js.map +1 -0
  86. package/dist/frontend/dist/assets/{page-CjI_QXry.js → page-D6saO7D3.js} +2 -2
  87. package/dist/frontend/dist/assets/{page-CjI_QXry.js.map → page-D6saO7D3.js.map} +1 -1
  88. package/dist/frontend/dist/assets/page-D7ZN9Yo5.js +2 -0
  89. package/dist/frontend/dist/assets/page-D7ZN9Yo5.js.map +1 -0
  90. package/dist/frontend/dist/assets/{page-Bb5SB6_Q.js → page-DaL8x94G.js} +2 -2
  91. package/dist/frontend/dist/assets/{page-Bb5SB6_Q.js.map → page-DaL8x94G.js.map} +1 -1
  92. package/dist/frontend/dist/assets/{page-DBlue8Rh.js → page-Dj5UZ_d6.js} +2 -2
  93. package/dist/frontend/dist/assets/{page-DBlue8Rh.js.map → page-Dj5UZ_d6.js.map} +1 -1
  94. package/dist/frontend/dist/assets/{page-RgfG8Fre.js → page-DyGU2n2w.js} +2 -2
  95. package/dist/frontend/dist/assets/{page-RgfG8Fre.js.map → page-DyGU2n2w.js.map} +1 -1
  96. package/dist/frontend/dist/assets/{page-C_fIdKsk.js → page-E4A7Vkwl.js} +2 -2
  97. package/dist/frontend/dist/assets/{page-C_fIdKsk.js.map → page-E4A7Vkwl.js.map} +1 -1
  98. package/dist/frontend/dist/assets/{page-DBYS9qIU.js → page-OFxNMOoF.js} +2 -2
  99. package/dist/frontend/dist/assets/{page-DBYS9qIU.js.map → page-OFxNMOoF.js.map} +1 -1
  100. package/dist/frontend/dist/assets/{page-kVSb0jfm.js → page-RRMlL_4-.js} +2 -2
  101. package/dist/frontend/dist/assets/{page-kVSb0jfm.js.map → page-RRMlL_4-.js.map} +1 -1
  102. package/dist/frontend/dist/assets/pl-GQC2ELWO-CYs9xZGI.js +2 -0
  103. package/dist/frontend/dist/assets/pl-GQC2ELWO-CYs9xZGI.js.map +1 -0
  104. package/dist/frontend/dist/assets/{privacy-NaGU1hj4.js → privacy-Rbj4Ycw9.js} +2 -2
  105. package/dist/frontend/dist/assets/{privacy-NaGU1hj4.js.map → privacy-Rbj4Ycw9.js.map} +1 -1
  106. package/dist/frontend/dist/assets/pt-YGVT62RU-pnVyr-_6.js +2 -0
  107. package/dist/frontend/dist/assets/pt-YGVT62RU-pnVyr-_6.js.map +1 -0
  108. package/dist/frontend/dist/assets/ro-TST6XS6X-CRozzX2s.js +2 -0
  109. package/dist/frontend/dist/assets/ro-TST6XS6X-CRozzX2s.js.map +1 -0
  110. package/dist/frontend/dist/assets/{routing-BybXhU8X.js → routing-CUnWbO2L.js} +2 -2
  111. package/dist/frontend/dist/assets/{routing-BybXhU8X.js.map → routing-CUnWbO2L.js.map} +1 -1
  112. package/dist/frontend/dist/assets/{routing-o1npPvOW.js → routing-CxPkffyg.js} +2 -2
  113. package/dist/frontend/dist/assets/{routing-o1npPvOW.js.map → routing-CxPkffyg.js.map} +1 -1
  114. package/dist/frontend/dist/assets/sv-TQLF6HV7-DNDzEE6l.js +2 -0
  115. package/dist/frontend/dist/assets/sv-TQLF6HV7-DNDzEE6l.js.map +1 -0
  116. package/dist/frontend/dist/assets/th-HJUIETVR-C8TRIJwR.js +2 -0
  117. package/dist/frontend/dist/assets/th-HJUIETVR-C8TRIJwR.js.map +1 -0
  118. package/dist/frontend/dist/assets/tr-CW3C46TW-wpHSGdDw.js +2 -0
  119. package/dist/frontend/dist/assets/tr-CW3C46TW-wpHSGdDw.js.map +1 -0
  120. package/dist/frontend/dist/assets/uk-WTHZQB2U-3kAkt5-3.js +2 -0
  121. package/dist/frontend/dist/assets/uk-WTHZQB2U-3kAkt5-3.js.map +1 -0
  122. package/dist/frontend/dist/assets/vi-PHWHJLKP-DYHi4xUC.js +2 -0
  123. package/dist/frontend/dist/assets/vi-PHWHJLKP-DYHi4xUC.js.map +1 -0
  124. package/dist/frontend/dist/assets/{web-DAOI6EsG.js → web-C8yeWrxL.js} +2 -2
  125. package/dist/frontend/dist/assets/{web-DAOI6EsG.js.map → web-C8yeWrxL.js.map} +1 -1
  126. package/dist/frontend/dist/assets/zh-MO3FCUD6-CLkb7wBO.js +2 -0
  127. package/dist/frontend/dist/assets/zh-MO3FCUD6-CLkb7wBO.js.map +1 -0
  128. package/dist/frontend/dist/index.html +1 -1
  129. package/dist/frontend/dist/messages/ar.json +1 -16
  130. package/dist/frontend/dist/messages/bn.json +1 -16
  131. package/dist/frontend/dist/messages/cs.json +1 -16
  132. package/dist/frontend/dist/messages/da.json +1 -16
  133. package/dist/frontend/dist/messages/de.json +1 -16
  134. package/dist/frontend/dist/messages/el.json +1 -16
  135. package/dist/frontend/dist/messages/en.json +1 -16
  136. package/dist/frontend/dist/messages/es.json +1 -16
  137. package/dist/frontend/dist/messages/fa.json +1 -16
  138. package/dist/frontend/dist/messages/fi.json +1 -16
  139. package/dist/frontend/dist/messages/fr.json +1 -16
  140. package/dist/frontend/dist/messages/he.json +1 -16
  141. package/dist/frontend/dist/messages/hi.json +1 -16
  142. package/dist/frontend/dist/messages/id.json +1 -16
  143. package/dist/frontend/dist/messages/it.json +1 -16
  144. package/dist/frontend/dist/messages/ja.json +1 -16
  145. package/dist/frontend/dist/messages/ko.json +1 -16
  146. package/dist/frontend/dist/messages/ms.json +1 -16
  147. package/dist/frontend/dist/messages/nl.json +1 -16
  148. package/dist/frontend/dist/messages/no.json +1 -16
  149. package/dist/frontend/dist/messages/pl.json +1 -16
  150. package/dist/frontend/dist/messages/pt.json +1 -16
  151. package/dist/frontend/dist/messages/ro.json +1 -16
  152. package/dist/frontend/dist/messages/sv.json +1 -16
  153. package/dist/frontend/dist/messages/th.json +1 -16
  154. package/dist/frontend/dist/messages/tr.json +1 -16
  155. package/dist/frontend/dist/messages/uk.json +1 -16
  156. package/dist/frontend/dist/messages/vi.json +1 -16
  157. package/dist/frontend/dist/messages/zh.json +1 -16
  158. package/dist/frontend/package.json +1 -1
  159. package/package.json +8 -8
  160. package/dist/frontend/dist/assets/ToolbarPanels-CjWlSOUC.js +0 -2
  161. package/dist/frontend/dist/assets/ToolbarPanels-CjWlSOUC.js.map +0 -1
  162. package/dist/frontend/dist/assets/ar-3W37O3R3-BJ1fDUvB.js +0 -2
  163. package/dist/frontend/dist/assets/ar-3W37O3R3-BJ1fDUvB.js.map +0 -1
  164. package/dist/frontend/dist/assets/bn-JZTJLMVE-k1gI6ffq.js +0 -2
  165. package/dist/frontend/dist/assets/bn-JZTJLMVE-k1gI6ffq.js.map +0 -1
  166. package/dist/frontend/dist/assets/client-B-MtBLP9.js +0 -2
  167. package/dist/frontend/dist/assets/client-B-MtBLP9.js.map +0 -1
  168. package/dist/frontend/dist/assets/client-DX1ckM1P.js +0 -2
  169. package/dist/frontend/dist/assets/client-DX1ckM1P.js.map +0 -1
  170. package/dist/frontend/dist/assets/client-Dh9ak8Fa.js +0 -2
  171. package/dist/frontend/dist/assets/client-Dh9ak8Fa.js.map +0 -1
  172. package/dist/frontend/dist/assets/client-DsP3tx7D.js +0 -2
  173. package/dist/frontend/dist/assets/client-DsP3tx7D.js.map +0 -1
  174. package/dist/frontend/dist/assets/cs-XYHH7HNE-BqQWIWM9.js +0 -2
  175. package/dist/frontend/dist/assets/cs-XYHH7HNE-BqQWIWM9.js.map +0 -1
  176. package/dist/frontend/dist/assets/da-MZKIECVT-pufSb0d_.js +0 -2
  177. package/dist/frontend/dist/assets/da-MZKIECVT-pufSb0d_.js.map +0 -1
  178. package/dist/frontend/dist/assets/de-AYXTMRQW-BRMduIa0.js +0 -2
  179. package/dist/frontend/dist/assets/de-AYXTMRQW-BRMduIa0.js.map +0 -1
  180. package/dist/frontend/dist/assets/el-A6CVQWAW-DycBhXUi.js +0 -2
  181. package/dist/frontend/dist/assets/el-A6CVQWAW-DycBhXUi.js.map +0 -1
  182. package/dist/frontend/dist/assets/es-M2HXLJGT-BFQ6WIpw.js +0 -2
  183. package/dist/frontend/dist/assets/es-M2HXLJGT-BFQ6WIpw.js.map +0 -1
  184. package/dist/frontend/dist/assets/fa-V6JZJDYP-C8CwCeSd.js.map +0 -1
  185. package/dist/frontend/dist/assets/fi-ONDTZ5H7-aby5--Ip.js +0 -2
  186. package/dist/frontend/dist/assets/fi-ONDTZ5H7-aby5--Ip.js.map +0 -1
  187. package/dist/frontend/dist/assets/fr-PAPV4H4G-D9SFT8MA.js +0 -2
  188. package/dist/frontend/dist/assets/fr-PAPV4H4G-D9SFT8MA.js.map +0 -1
  189. package/dist/frontend/dist/assets/he-F6VTLJLW-B8Rc1C-m.js +0 -2
  190. package/dist/frontend/dist/assets/he-F6VTLJLW-B8Rc1C-m.js.map +0 -1
  191. package/dist/frontend/dist/assets/hi-CFUAV4BF-CuWy2y7I.js +0 -2
  192. package/dist/frontend/dist/assets/hi-CFUAV4BF-CuWy2y7I.js.map +0 -1
  193. package/dist/frontend/dist/assets/id-NBKLCCI7-DnMwKKq7.js +0 -2
  194. package/dist/frontend/dist/assets/id-NBKLCCI7-DnMwKKq7.js.map +0 -1
  195. package/dist/frontend/dist/assets/index-DoPpOINE.js +0 -169
  196. package/dist/frontend/dist/assets/index-DoPpOINE.js.map +0 -1
  197. package/dist/frontend/dist/assets/it-SLSOWVVU-hrlm8f9F.js +0 -2
  198. package/dist/frontend/dist/assets/it-SLSOWVVU-hrlm8f9F.js.map +0 -1
  199. package/dist/frontend/dist/assets/ja-L5IG4ECE-BvMVB5sy.js +0 -2
  200. package/dist/frontend/dist/assets/ja-L5IG4ECE-BvMVB5sy.js.map +0 -1
  201. package/dist/frontend/dist/assets/ko-QYMTULKK-CNEZe0oy.js +0 -2
  202. package/dist/frontend/dist/assets/ko-QYMTULKK-CNEZe0oy.js.map +0 -1
  203. package/dist/frontend/dist/assets/layout-BNfHKiGS.js.map +0 -1
  204. package/dist/frontend/dist/assets/layout-CMpievJ_.js +0 -2
  205. package/dist/frontend/dist/assets/layout-CMpievJ_.js.map +0 -1
  206. package/dist/frontend/dist/assets/ms-5DGSFKM2-BlyezW6W.js +0 -2
  207. package/dist/frontend/dist/assets/ms-5DGSFKM2-BlyezW6W.js.map +0 -1
  208. package/dist/frontend/dist/assets/nl-VZPCGONO-BJ0llUPS.js +0 -2
  209. package/dist/frontend/dist/assets/nl-VZPCGONO-BJ0llUPS.js.map +0 -1
  210. package/dist/frontend/dist/assets/no-MF6F352I-Wf2ZNjHx.js +0 -2
  211. package/dist/frontend/dist/assets/no-MF6F352I-Wf2ZNjHx.js.map +0 -1
  212. package/dist/frontend/dist/assets/page-7nyyO6Jy.js +0 -2
  213. package/dist/frontend/dist/assets/page-7nyyO6Jy.js.map +0 -1
  214. package/dist/frontend/dist/assets/page-BEhfXGas.js +0 -2
  215. package/dist/frontend/dist/assets/page-BEhfXGas.js.map +0 -1
  216. package/dist/frontend/dist/assets/page-CV0h_zZE.js +0 -2
  217. package/dist/frontend/dist/assets/page-CV0h_zZE.js.map +0 -1
  218. package/dist/frontend/dist/assets/page-CkiQdVlI.js.map +0 -1
  219. package/dist/frontend/dist/assets/page-D5qkLwSn.js +0 -2
  220. package/dist/frontend/dist/assets/page-D5qkLwSn.js.map +0 -1
  221. package/dist/frontend/dist/assets/page-DU909Np3.js +0 -2
  222. package/dist/frontend/dist/assets/page-DV9q0oju.js +0 -2
  223. package/dist/frontend/dist/assets/page-DV9q0oju.js.map +0 -1
  224. package/dist/frontend/dist/assets/page-D_6K1M4j.js.map +0 -1
  225. package/dist/frontend/dist/assets/page-VPeYeXi6.js +0 -2
  226. package/dist/frontend/dist/assets/page-VPeYeXi6.js.map +0 -1
  227. package/dist/frontend/dist/assets/pl-WIK72JUO-wOGg7Me5.js +0 -2
  228. package/dist/frontend/dist/assets/pl-WIK72JUO-wOGg7Me5.js.map +0 -1
  229. package/dist/frontend/dist/assets/pt-RRP5ZF6A-C32Vedhv.js +0 -2
  230. package/dist/frontend/dist/assets/pt-RRP5ZF6A-C32Vedhv.js.map +0 -1
  231. package/dist/frontend/dist/assets/ro-XHQLC3T7-uGs3uHRp.js +0 -2
  232. package/dist/frontend/dist/assets/ro-XHQLC3T7-uGs3uHRp.js.map +0 -1
  233. package/dist/frontend/dist/assets/sv-EWULDN6E-CkRBfwt9.js +0 -2
  234. package/dist/frontend/dist/assets/sv-EWULDN6E-CkRBfwt9.js.map +0 -1
  235. package/dist/frontend/dist/assets/th-TGOBHFG4-BGt_aO5K.js +0 -2
  236. package/dist/frontend/dist/assets/th-TGOBHFG4-BGt_aO5K.js.map +0 -1
  237. package/dist/frontend/dist/assets/tr-LMMPBMV7-CrGE1PKA.js +0 -2
  238. package/dist/frontend/dist/assets/tr-LMMPBMV7-CrGE1PKA.js.map +0 -1
  239. package/dist/frontend/dist/assets/uk-IPGRRJY6-CPaxgpd8.js +0 -2
  240. package/dist/frontend/dist/assets/uk-IPGRRJY6-CPaxgpd8.js.map +0 -1
  241. package/dist/frontend/dist/assets/vi-Q676OJQS-DpyIm6R1.js +0 -2
  242. package/dist/frontend/dist/assets/vi-Q676OJQS-DpyIm6R1.js.map +0 -1
  243. package/dist/frontend/dist/assets/zh-F3MTWQDX-C09t_PFf.js +0 -2
  244. package/dist/frontend/dist/assets/zh-F3MTWQDX-C09t_PFf.js.map +0 -1
package/dist/cli.mjs CHANGED
@@ -8378,26 +8378,26 @@ var require_BehaviorSubject = __commonJS({
8378
8378
  Object.defineProperty(exports, "__esModule", { value: true });
8379
8379
  exports.BehaviorSubject = void 0;
8380
8380
  var Subject_1 = require_Subject();
8381
- var BehaviorSubject3 = (function(_super) {
8382
- __extends(BehaviorSubject4, _super);
8383
- function BehaviorSubject4(_value) {
8381
+ var BehaviorSubject2 = (function(_super) {
8382
+ __extends(BehaviorSubject3, _super);
8383
+ function BehaviorSubject3(_value) {
8384
8384
  var _this = _super.call(this) || this;
8385
8385
  _this._value = _value;
8386
8386
  return _this;
8387
8387
  }
8388
- Object.defineProperty(BehaviorSubject4.prototype, "value", {
8388
+ Object.defineProperty(BehaviorSubject3.prototype, "value", {
8389
8389
  get: function() {
8390
8390
  return this.getValue();
8391
8391
  },
8392
8392
  enumerable: false,
8393
8393
  configurable: true
8394
8394
  });
8395
- BehaviorSubject4.prototype._subscribe = function(subscriber) {
8395
+ BehaviorSubject3.prototype._subscribe = function(subscriber) {
8396
8396
  var subscription = _super.prototype._subscribe.call(this, subscriber);
8397
8397
  !subscription.closed && subscriber.next(this._value);
8398
8398
  return subscription;
8399
8399
  };
8400
- BehaviorSubject4.prototype.getValue = function() {
8400
+ BehaviorSubject3.prototype.getValue = function() {
8401
8401
  var _a = this, hasError = _a.hasError, thrownError = _a.thrownError, _value = _a._value;
8402
8402
  if (hasError) {
8403
8403
  throw thrownError;
@@ -8405,12 +8405,12 @@ var require_BehaviorSubject = __commonJS({
8405
8405
  this._throwIfClosed();
8406
8406
  return _value;
8407
8407
  };
8408
- BehaviorSubject4.prototype.next = function(value) {
8408
+ BehaviorSubject3.prototype.next = function(value) {
8409
8409
  _super.prototype.next.call(this, this._value = value);
8410
8410
  };
8411
- return BehaviorSubject4;
8411
+ return BehaviorSubject3;
8412
8412
  })(Subject_1.Subject);
8413
- exports.BehaviorSubject = BehaviorSubject3;
8413
+ exports.BehaviorSubject = BehaviorSubject2;
8414
8414
  }
8415
8415
  });
8416
8416
 
@@ -16922,10 +16922,10 @@ var require_operators = __commonJS({
16922
16922
  });
16923
16923
 
16924
16924
  // ../../packages/sdk/dist/index.js
16925
- import { SemiontError, annotationId, resourceId, email, googleCredential, refreshToken, EventBus, baseUrl, accessToken, isHighlight, isComment, isAssessment, isReference, isTag, decodeWithCharset, getPrimaryMediaType, userDID, searchQuery } from "@semiont/core";
16925
+ import { SemiontError, annotationId, resourceId, email, googleCredential, refreshToken, EventBus, baseUrl, accessToken, searchQuery } from "@semiont/core";
16926
16926
  import { SemiontError as SemiontError2, accessToken as accessToken2, annotationId as annotationId2, baseUrl as baseUrl2, entityType, refreshToken as refreshToken2, resourceId as resourceId2, userId } from "@semiont/core";
16927
- import { HttpTransport, HttpContentTransport, createActorVM, APIError } from "@semiont/api-client";
16928
- import { APIError as APIError2, DEGRADED_THRESHOLD_MS, HttpContentTransport as HttpContentTransport2, HttpTransport as HttpTransport2, createActorVM as createActorVM2 } from "@semiont/api-client";
16927
+ import { HttpTransport, HttpContentTransport, APIError } from "@semiont/api-client";
16928
+ import { APIError as APIError2, HttpContentTransport as HttpContentTransport2, HttpTransport as HttpTransport2 } from "@semiont/api-client";
16929
16929
  async function busRequest(bus, emitChannel, payload, resultChannel, failureChannel, timeoutMs = 3e4) {
16930
16930
  const correlationId = crypto.randomUUID();
16931
16931
  const fullPayload = { ...payload, correlationId };
@@ -17035,7 +17035,17 @@ function createCache(fetchFn) {
17035
17035
  }
17036
17036
  };
17037
17037
  }
17038
- var import_rxjs, import_operators, StreamObservable, CacheObservable, wrapperCache, BusRequestError, ENTITY_TYPES_KEY, BrowseNamespace, MarkNamespace, BindNamespace, GatherNamespace, MatchNamespace, YieldNamespace, BeckonNamespace, JobNamespace, AuthNamespace, AdminNamespace, SemiontClient, REFRESH_BEFORE_EXP_MS;
17038
+ function wrapAsStream(source) {
17039
+ return new StreamObservable((subscriber) => {
17040
+ const sub = source.subscribe({
17041
+ next: (v) => subscriber.next(v),
17042
+ error: (e) => subscriber.error(e),
17043
+ complete: () => subscriber.complete()
17044
+ });
17045
+ return () => sub.unsubscribe();
17046
+ });
17047
+ }
17048
+ var import_rxjs, import_operators, StreamObservable, CacheObservable, wrapperCache, UploadObservable, BusRequestError, ENTITY_TYPES_KEY, TAG_SCHEMAS_KEY, BrowseNamespace, MarkNamespace, BindNamespace, GatherNamespace, MatchNamespace, YieldNamespace, BeckonNamespace, FrameNamespace, JobNamespace, AuthNamespace, AdminNamespace, SemiontClient, REFRESH_BEFORE_EXP_MS;
17039
17049
  var init_dist = __esm({
17040
17050
  "../../packages/sdk/dist/index.js"() {
17041
17051
  "use strict";
@@ -17062,7 +17072,7 @@ var init_dist = __esm({
17062
17072
  * Observable per key (its B4 contract), so this preserves that contract
17063
17073
  * through the awaitable wrapping. Without the memo, every public-method
17064
17074
  * call would produce a fresh wrapper and break referential-equality
17065
- * guarantees that React-side consumers depend on.
17075
+ * guarantees that hook-style reactive consumers depend on.
17066
17076
  *
17067
17077
  * Backed by a `WeakMap`, so wrappers are GC'd when their source is.
17068
17078
  */
@@ -17076,6 +17086,17 @@ var init_dist = __esm({
17076
17086
  }
17077
17087
  };
17078
17088
  wrapperCache = /* @__PURE__ */ new WeakMap();
17089
+ UploadObservable = class extends import_rxjs.Observable {
17090
+ then(onfulfilled, onrejected) {
17091
+ return (0, import_rxjs.lastValueFrom)(this).then((v) => {
17092
+ if (v.phase !== "finished") {
17093
+ throw new Error(`UploadObservable resolved on a non-finished event: ${v.phase}`);
17094
+ }
17095
+ const result = { resourceId: v.resourceId };
17096
+ return onfulfilled ? onfulfilled(result) : result;
17097
+ }, onrejected);
17098
+ }
17099
+ };
17079
17100
  BusRequestError = class extends SemiontError {
17080
17101
  constructor(message, code, details) {
17081
17102
  super(message, code, details);
@@ -17083,6 +17104,7 @@ var init_dist = __esm({
17083
17104
  }
17084
17105
  };
17085
17106
  ENTITY_TYPES_KEY = "_";
17107
+ TAG_SCHEMAS_KEY = "_";
17086
17108
  BrowseNamespace = class {
17087
17109
  constructor(transport, bus, content) {
17088
17110
  this.transport = transport;
@@ -17143,6 +17165,16 @@ var init_dist = __esm({
17143
17165
  );
17144
17166
  return result.entityTypes;
17145
17167
  });
17168
+ this.tagSchemasCache = createCache(async () => {
17169
+ const result = await busRequest(
17170
+ this.transport,
17171
+ "browse:tag-schemas-requested",
17172
+ {},
17173
+ "browse:tag-schemas-result",
17174
+ "browse:tag-schemas-failed"
17175
+ );
17176
+ return result.tagSchemas;
17177
+ });
17146
17178
  this.referencedByCache = createCache(async (resourceId22) => {
17147
17179
  const result = await busRequest(
17148
17180
  this.transport,
@@ -17186,6 +17218,7 @@ var init_dist = __esm({
17186
17218
  annotationDetailCache;
17187
17219
  annotationResources = /* @__PURE__ */ new Map();
17188
17220
  entityTypesCache;
17221
+ tagSchemasCache;
17189
17222
  referencedByCache;
17190
17223
  resourceEventsCache;
17191
17224
  /** Filter-blob memory so `invalidateResourceLists` can replay per-key. */
@@ -17228,6 +17261,9 @@ var init_dist = __esm({
17228
17261
  entityTypes() {
17229
17262
  return CacheObservable.from(this.entityTypesCache.observe(ENTITY_TYPES_KEY));
17230
17263
  }
17264
+ tagSchemas() {
17265
+ return CacheObservable.from(this.tagSchemasCache.observe(TAG_SCHEMAS_KEY));
17266
+ }
17231
17267
  referencedBy(resourceId22) {
17232
17268
  return CacheObservable.from(this.referencedByCache.observe(resourceId22));
17233
17269
  }
@@ -17312,6 +17348,9 @@ var init_dist = __esm({
17312
17348
  invalidateEntityTypes() {
17313
17349
  this.entityTypesCache.invalidate(ENTITY_TYPES_KEY);
17314
17350
  }
17351
+ invalidateTagSchemas() {
17352
+ this.tagSchemasCache.invalidate(TAG_SCHEMAS_KEY);
17353
+ }
17315
17354
  invalidateReferencedBy(resourceId22) {
17316
17355
  this.referencedByCache.invalidate(resourceId22);
17317
17356
  }
@@ -17388,6 +17427,7 @@ var init_dist = __esm({
17388
17427
  for (const rId of this.referencedByCache.keys()) this.invalidateReferencedBy(rId);
17389
17428
  }
17390
17429
  this.invalidateEntityTypes();
17430
+ this.invalidateTagSchemas();
17391
17431
  });
17392
17432
  this.on("mark:delete-ok", (event) => {
17393
17433
  this.removeAnnotationDetail(annotationId(event.annotationId));
@@ -17422,7 +17462,8 @@ var init_dist = __esm({
17422
17462
  this.on("yield:update-ok", this.onYieldResourceMutated);
17423
17463
  this.on("mark:archived", this.onArchiveToggled);
17424
17464
  this.on("mark:unarchived", this.onArchiveToggled);
17425
- this.on("mark:entity-type-added", () => this.invalidateEntityTypes());
17465
+ this.on("frame:entity-type-added", () => this.invalidateEntityTypes());
17466
+ this.on("frame:tag-schema-added", () => this.invalidateTagSchemas());
17426
17467
  }
17427
17468
  };
17428
17469
  MarkNamespace = class {
@@ -17430,7 +17471,8 @@ var init_dist = __esm({
17430
17471
  this.transport = transport;
17431
17472
  this.bus = bus;
17432
17473
  }
17433
- async annotation(resourceId22, input) {
17474
+ async annotation(input) {
17475
+ const resourceId22 = resourceId(input.target.source);
17434
17476
  const result = await busRequest(
17435
17477
  this.transport,
17436
17478
  "mark:create-request",
@@ -17443,14 +17485,6 @@ var init_dist = __esm({
17443
17485
  async delete(resourceId22, annotationId22) {
17444
17486
  await this.transport.emit("mark:delete", { annotationId: annotationId22, resourceId: resourceId22 });
17445
17487
  }
17446
- async entityType(type2) {
17447
- await this.transport.emit("mark:add-entity-type", { tag: type2 });
17448
- }
17449
- async entityTypes(types) {
17450
- for (const tag of types) {
17451
- await this.transport.emit("mark:add-entity-type", { tag });
17452
- }
17453
- }
17454
17488
  async archive(resourceId22) {
17455
17489
  await this.transport.emit("mark:archive", { resourceId: resourceId22 });
17456
17490
  }
@@ -17462,6 +17496,7 @@ var init_dist = __esm({
17462
17496
  let done = false;
17463
17497
  let pollTimer = null;
17464
17498
  let pollInterval = null;
17499
+ let unsubscribeResource = this.transport.subscribeToResource(resourceId22);
17465
17500
  const cleanup = () => {
17466
17501
  done = true;
17467
17502
  if (pollTimer) {
@@ -17472,6 +17507,10 @@ var init_dist = __esm({
17472
17507
  clearInterval(pollInterval);
17473
17508
  pollInterval = null;
17474
17509
  }
17510
+ if (unsubscribeResource) {
17511
+ unsubscribeResource();
17512
+ unsubscribeResource = null;
17513
+ }
17475
17514
  };
17476
17515
  const resetPollTimer = (jobId) => {
17477
17516
  if (pollTimer) clearTimeout(pollTimer);
@@ -17605,6 +17644,7 @@ var init_dist = __esm({
17605
17644
  if (options.density !== void 0) params.density = options.density;
17606
17645
  if (options.tone !== void 0) params.tone = options.tone;
17607
17646
  if (options.language !== void 0) params.language = options.language;
17647
+ if (options.sourceLanguage !== void 0) params.sourceLanguage = options.sourceLanguage;
17608
17648
  if (options.schemaId !== void 0) params.schemaId = options.schemaId;
17609
17649
  if (options.categories !== void 0) params.categories = options.categories;
17610
17650
  return busRequest(
@@ -17638,7 +17678,7 @@ var init_dist = __esm({
17638
17678
  this.transport = transport;
17639
17679
  this.bus = bus;
17640
17680
  }
17641
- annotation(annotationId22, resourceId22, options) {
17681
+ annotation(resourceId22, annotationId22, options) {
17642
17682
  return new StreamObservable((subscriber) => {
17643
17683
  const correlationId = crypto.randomUUID();
17644
17684
  const complete$ = this.bus.get("gather:complete").pipe(
@@ -17730,28 +17770,60 @@ var init_dist = __esm({
17730
17770
  this.bus = bus;
17731
17771
  this.content = content;
17732
17772
  }
17733
- async resource(data) {
17734
- const result = await this.content.putBinary({
17735
- name: data.name,
17736
- file: data.file,
17737
- format: data.format,
17738
- storageUri: data.storageUri,
17739
- ...data.entityTypes ? { entityTypes: data.entityTypes } : {},
17740
- ...data.language ? { language: data.language } : {},
17741
- ...data.creationMethod ? { creationMethod: data.creationMethod } : {},
17742
- ...data.sourceAnnotationId ? { sourceAnnotationId: data.sourceAnnotationId } : {},
17743
- ...data.sourceResourceId ? { sourceResourceId: data.sourceResourceId } : {},
17744
- ...data.generationPrompt ? { generationPrompt: data.generationPrompt } : {},
17745
- ...data.generator ? { generator: data.generator } : {},
17746
- ...data.isDraft !== void 0 ? { isDraft: data.isDraft } : {}
17773
+ resource(data) {
17774
+ const totalBytes = typeof Buffer !== "undefined" && data.file instanceof Buffer ? data.file.length : data.file.size;
17775
+ return new UploadObservable((subscriber) => {
17776
+ subscriber.next({ phase: "started", totalBytes });
17777
+ let cancelled = false;
17778
+ const abortController = new AbortController();
17779
+ this.content.putBinary(
17780
+ {
17781
+ name: data.name,
17782
+ file: data.file,
17783
+ format: data.format,
17784
+ storageUri: data.storageUri,
17785
+ ...data.entityTypes ? { entityTypes: data.entityTypes } : {},
17786
+ ...data.language ? { language: data.language } : {},
17787
+ ...data.creationMethod ? { creationMethod: data.creationMethod } : {},
17788
+ ...data.sourceAnnotationId ? { sourceAnnotationId: data.sourceAnnotationId } : {},
17789
+ ...data.sourceResourceId ? { sourceResourceId: data.sourceResourceId } : {},
17790
+ ...data.generationPrompt ? { generationPrompt: data.generationPrompt } : {},
17791
+ ...data.generator ? { generator: data.generator } : {},
17792
+ ...data.isDraft !== void 0 ? { isDraft: data.isDraft } : {}
17793
+ },
17794
+ {
17795
+ // Byte-progress hook. Honored by `HttpContentTransport`'s XHR
17796
+ // path; ignored by ky-path uploads (no `onProgress` consumer)
17797
+ // and by `LocalContentTransport` (no wire to observe).
17798
+ onProgress: ({ bytesUploaded, totalBytes: txTotal }) => {
17799
+ if (cancelled) return;
17800
+ const total = txTotal > 0 ? txTotal : totalBytes;
17801
+ subscriber.next({ phase: "progress", bytesUploaded, totalBytes: total });
17802
+ },
17803
+ signal: abortController.signal
17804
+ }
17805
+ ).then((result) => {
17806
+ if (cancelled) return;
17807
+ subscriber.next({
17808
+ phase: "finished",
17809
+ resourceId: resourceId(result.resourceId)
17810
+ });
17811
+ subscriber.complete();
17812
+ }).catch((err) => {
17813
+ if (!cancelled) subscriber.error(err);
17814
+ });
17815
+ return () => {
17816
+ cancelled = true;
17817
+ abortController.abort();
17818
+ };
17747
17819
  });
17748
- return { resourceId: result.resourceId };
17749
17820
  }
17750
17821
  fromAnnotation(resourceId22, annotationId22, options) {
17751
17822
  return new StreamObservable((subscriber) => {
17752
17823
  let done = false;
17753
17824
  let pollTimer = null;
17754
17825
  let pollInterval = null;
17826
+ let unsubscribeResource = this.transport.subscribeToResource(resourceId22);
17755
17827
  const cleanup = () => {
17756
17828
  done = true;
17757
17829
  if (pollTimer) {
@@ -17762,6 +17834,10 @@ var init_dist = __esm({
17762
17834
  clearInterval(pollInterval);
17763
17835
  pollInterval = null;
17764
17836
  }
17837
+ if (unsubscribeResource) {
17838
+ unsubscribeResource();
17839
+ unsubscribeResource = null;
17840
+ }
17765
17841
  };
17766
17842
  const resetPollTimer = (jid) => {
17767
17843
  if (pollTimer) clearTimeout(pollTimer);
@@ -17835,7 +17911,9 @@ var init_dist = __esm({
17835
17911
  referenceId: annotationId22,
17836
17912
  title: options.title,
17837
17913
  prompt: options.prompt,
17914
+ entityTypes: options.entityTypes,
17838
17915
  language: options.language,
17916
+ sourceLanguage: options.sourceLanguage,
17839
17917
  temperature: options.temperature,
17840
17918
  maxTokens: options.maxTokens,
17841
17919
  storageUri: options.storageUri,
@@ -17881,13 +17959,14 @@ var init_dist = __esm({
17881
17959
  return result.sourceResource;
17882
17960
  }
17883
17961
  async createFromToken(options) {
17884
- return busRequest(
17962
+ const result = await busRequest(
17885
17963
  this.transport,
17886
17964
  "yield:clone-create",
17887
17965
  options,
17888
17966
  "yield:clone-created",
17889
17967
  "yield:clone-create-failed"
17890
17968
  );
17969
+ return { resourceId: resourceId(result.resourceId) };
17891
17970
  }
17892
17971
  clone() {
17893
17972
  this.bus.get("yield:clone").next(void 0);
@@ -17898,7 +17977,7 @@ var init_dist = __esm({
17898
17977
  this.transport = transport;
17899
17978
  this.bus = bus;
17900
17979
  }
17901
- attention(annotationId22, resourceId22) {
17980
+ attention(resourceId22, annotationId22) {
17902
17981
  void this.transport.emit("beckon:focus", { annotationId: annotationId22, resourceId: resourceId22 });
17903
17982
  }
17904
17983
  hover(annotationId22) {
@@ -17908,6 +17987,22 @@ var init_dist = __esm({
17908
17987
  this.bus.get("beckon:sparkle").next({ annotationId: annotationId22 });
17909
17988
  }
17910
17989
  };
17990
+ FrameNamespace = class {
17991
+ constructor(transport) {
17992
+ this.transport = transport;
17993
+ }
17994
+ async addEntityType(type2) {
17995
+ await this.transport.emit("frame:add-entity-type", { tag: type2 });
17996
+ }
17997
+ async addEntityTypes(types) {
17998
+ for (const tag of types) {
17999
+ await this.transport.emit("frame:add-entity-type", { tag });
18000
+ }
18001
+ }
18002
+ async addTagSchema(schema2) {
18003
+ await this.transport.emit("frame:add-tag-schema", { schema: schema2 });
18004
+ }
18005
+ };
17911
18006
  JobNamespace = class {
17912
18007
  constructor(transport, bus) {
17913
18008
  this.transport = transport;
@@ -17944,7 +18039,7 @@ var init_dist = __esm({
17944
18039
  }
17945
18040
  async pollUntilComplete(jobId, options) {
17946
18041
  const interval = options?.interval ?? 1e3;
17947
- const timeout7 = options?.timeout ?? 6e4;
18042
+ const timeout6 = options?.timeout ?? 6e4;
17948
18043
  const startTime = Date.now();
17949
18044
  while (true) {
17950
18045
  const status = await this.status(jobId);
@@ -17952,85 +18047,83 @@ var init_dist = __esm({
17952
18047
  if (status.status === "complete" || status.status === "failed" || status.status === "cancelled") {
17953
18048
  return status;
17954
18049
  }
17955
- if (Date.now() - startTime > timeout7) {
17956
- throw new Error(`Job polling timeout after ${timeout7}ms`);
18050
+ if (Date.now() - startTime > timeout6) {
18051
+ throw new Error(`Job polling timeout after ${timeout6}ms`);
17957
18052
  }
17958
18053
  await new Promise((resolve9) => setTimeout(resolve9, interval));
17959
18054
  }
17960
18055
  }
17961
- async cancel(_jobId, type2) {
17962
- await this.transport.emit("job:cancel-requested", {
17963
- jobType: type2 === "generation" ? "generation" : "annotation"
17964
- });
18056
+ async cancelByType(jobType) {
18057
+ await this.transport.emit("job:cancel-requested", { jobType });
17965
18058
  }
17966
18059
  cancelRequest(jobType) {
17967
18060
  this.bus.get("job:cancel-requested").next({ jobType });
17968
18061
  }
17969
18062
  };
17970
18063
  AuthNamespace = class {
17971
- constructor(transport) {
17972
- this.transport = transport;
18064
+ constructor(backend) {
18065
+ this.backend = backend;
17973
18066
  }
17974
18067
  async password(emailStr, passwordStr) {
17975
- return this.transport.authenticatePassword(email(emailStr), passwordStr);
18068
+ return this.backend.authenticatePassword(email(emailStr), passwordStr);
17976
18069
  }
17977
18070
  async google(credential) {
17978
- return this.transport.authenticateGoogle(googleCredential(credential));
18071
+ return this.backend.authenticateGoogle(googleCredential(credential));
17979
18072
  }
17980
18073
  async refresh(token) {
17981
- return this.transport.refreshAccessToken(refreshToken(token));
18074
+ return this.backend.refreshAccessToken(refreshToken(token));
17982
18075
  }
17983
18076
  async logout() {
17984
- await this.transport.logout();
18077
+ await this.backend.logout();
17985
18078
  }
17986
18079
  async me() {
17987
- return this.transport.getCurrentUser();
18080
+ return this.backend.getCurrentUser();
17988
18081
  }
17989
18082
  async acceptTerms() {
17990
- await this.transport.acceptTerms();
18083
+ await this.backend.acceptTerms();
17991
18084
  }
17992
18085
  async mcpToken() {
17993
- return this.transport.generateMcpToken();
18086
+ return this.backend.generateMcpToken();
17994
18087
  }
17995
18088
  async mediaToken(resourceId22) {
17996
- return this.transport.getMediaToken(resourceId22);
18089
+ return this.backend.getMediaToken(resourceId22);
17997
18090
  }
17998
18091
  };
17999
18092
  AdminNamespace = class {
18000
- constructor(transport) {
18001
- this.transport = transport;
18093
+ constructor(backend) {
18094
+ this.backend = backend;
18002
18095
  }
18003
18096
  async users() {
18004
- const result = await this.transport.listUsers();
18097
+ const result = await this.backend.listUsers();
18005
18098
  return result.users;
18006
18099
  }
18007
18100
  async userStats() {
18008
- return this.transport.getUserStats();
18101
+ return this.backend.getUserStats();
18009
18102
  }
18010
18103
  async updateUser(userId2, data) {
18011
- const result = await this.transport.updateUser(userId2, data);
18104
+ const result = await this.backend.updateUser(userId2, data);
18012
18105
  return result.user;
18013
18106
  }
18014
18107
  async oauthConfig() {
18015
- return this.transport.getOAuthConfig();
18108
+ return this.backend.getOAuthConfig();
18016
18109
  }
18017
18110
  async healthCheck() {
18018
- return this.transport.healthCheck();
18111
+ return this.backend.healthCheck();
18019
18112
  }
18020
18113
  async status() {
18021
- return this.transport.getStatus();
18114
+ return this.backend.getStatus();
18022
18115
  }
18023
18116
  async backup() {
18024
- return this.transport.backupKnowledgeBase();
18117
+ return this.backend.backupKnowledgeBase();
18025
18118
  }
18026
- async restore(file, onProgress) {
18027
- return this.transport.restoreKnowledgeBase(file, onProgress);
18119
+ restore(file) {
18120
+ return wrapAsStream(this.backend.restoreKnowledgeBase(file));
18028
18121
  }
18029
18122
  async exportKnowledgeBase(params) {
18030
- return this.transport.exportKnowledgeBase(params);
18123
+ return this.backend.exportKnowledgeBase(params);
18031
18124
  }
18032
- async importKnowledgeBase(file, onProgress) {
18033
- return this.transport.importKnowledgeBase(file, onProgress);
18125
+ importKnowledgeBase(file) {
18126
+ return wrapAsStream(this.backend.importKnowledgeBase(file));
18034
18127
  }
18035
18128
  };
18036
18129
  SemiontClient = class _SemiontClient {
@@ -18052,6 +18145,15 @@ var init_dist = __esm({
18052
18145
  bus;
18053
18146
  baseUrl;
18054
18147
  // ── Verb-oriented namespace API ──────────────────────────────────────────
18148
+ //
18149
+ // The first nine namespaces are bus-driven and always present. `frame`
18150
+ // is the schema-layer flow's surface (eighth flow); the other eight are
18151
+ // content-layer flows plus `job`. `auth` and `admin` are backend-ops
18152
+ // namespaces — they're only constructed when the caller passes an
18153
+ // `IBackendOperations` instance to the constructor. A `SemiontClient`
18154
+ // over a transport-only setup (e.g. `LocalTransport`) has
18155
+ // `auth === undefined` / `admin === undefined`.
18156
+ frame;
18055
18157
  browse;
18056
18158
  mark;
18057
18159
  bind;
@@ -18074,13 +18176,20 @@ var init_dist = __esm({
18074
18176
  * Callers do not pass a bus in. If they need to interact with the bus
18075
18177
  * (e.g. for tests or to subscribe to arbitrary channels), they read it
18076
18178
  * back via `client.bus`.
18179
+ *
18180
+ * `backend` is optional. When provided, the `auth` and `admin`
18181
+ * namespaces are constructed against it; when omitted, they're
18182
+ * `undefined`. For HTTP setups this is conventionally the same
18183
+ * `HttpTransport` instance that's also passed as `transport` (HTTP
18184
+ * implements both `ITransport` and `IBackendOperations`).
18077
18185
  */
18078
- constructor(transport, content) {
18186
+ constructor(transport, content, backend) {
18079
18187
  this.transport = transport;
18080
18188
  this.content = content;
18081
18189
  this.baseUrl = transport.baseUrl;
18082
18190
  this.bus = new EventBus();
18083
18191
  this.transport.bridgeInto(this.bus);
18192
+ this.frame = new FrameNamespace(this.transport);
18084
18193
  this.browse = new BrowseNamespace(this.transport, this.bus, this.content);
18085
18194
  this.mark = new MarkNamespace(this.transport, this.bus);
18086
18195
  this.bind = new BindNamespace(this.transport, this.bus);
@@ -18089,8 +18198,8 @@ var init_dist = __esm({
18089
18198
  this.yield = new YieldNamespace(this.transport, this.bus, this.content);
18090
18199
  this.beckon = new BeckonNamespace(this.transport, this.bus);
18091
18200
  this.job = new JobNamespace(this.transport, this.bus);
18092
- this.auth = new AuthNamespace(this.transport);
18093
- this.admin = new AdminNamespace(this.transport);
18201
+ this.auth = backend ? new AuthNamespace(backend) : void 0;
18202
+ this.admin = backend ? new AdminNamespace(backend) : void 0;
18094
18203
  }
18095
18204
  /** Transport-level connection state. HTTP reflects SSE health; local is always 'connected'. */
18096
18205
  get state$() {
@@ -18112,9 +18221,10 @@ var init_dist = __esm({
18112
18221
  * Use this for one-shot scripts, CLI commands, or any consumer that
18113
18222
  * doesn't need to drive the token from outside (no manual refresh,
18114
18223
  * no cross-tab sync). For long-running scripts that need refresh,
18115
- * use `SemiontSession.fromHttp(...)` instead it owns the same
18116
- * transport/client wiring plus the proactive-refresh + storage
18117
- * machinery.
18224
+ * use `SemiontSession.fromHttp(...)` (with a token already on hand)
18225
+ * or `SemiontSession.signInHttp(...)` (credentials-first) instead
18226
+ * either owns the same transport/client wiring plus the
18227
+ * proactive-refresh + storage machinery.
18118
18228
  *
18119
18229
  * Strings are accepted for `baseUrl` and `token`; they are branded
18120
18230
  * via `baseUrl()` / `accessToken()` from `@semiont/core` automatically.
@@ -18128,13 +18238,13 @@ var init_dist = __esm({
18128
18238
  const token$ = new import_rxjs.BehaviorSubject(tok);
18129
18239
  const transport = new HttpTransport({ baseUrl: url, token$ });
18130
18240
  const content = new HttpContentTransport(transport);
18131
- return new _SemiontClient(transport, content);
18241
+ return new _SemiontClient(transport, content, transport);
18132
18242
  }
18133
18243
  /**
18134
18244
  * Async factory for the credentials-first script case. Builds a
18135
- * transient transport, calls `auth.password(email, password)` to
18136
- * acquire an access token, and returns the wired client with the
18137
- * token populated.
18245
+ * transient HTTP transport, calls `auth.password(email, password)`
18246
+ * to acquire an access token, and returns the wired client with
18247
+ * the token populated.
18138
18248
  *
18139
18249
  * This is the right entry point for skills, CLI scripts, and any
18140
18250
  * consumer that starts with email + password rather than a JWT
@@ -18143,18 +18253,24 @@ var init_dist = __esm({
18143
18253
  * `fromHttp({ baseUrl, token })` instead.
18144
18254
  *
18145
18255
  * For long-running scripts that need refresh, use
18146
- * `SemiontSession.signIn(...)` — same credentials shape, plus the
18147
- * session machinery for proactive refresh and persistence.
18256
+ * `SemiontSession.signInHttp(...)` — same credentials shape, plus
18257
+ * the session machinery for proactive refresh and persistence.
18258
+ *
18259
+ * Named `signInHttp` because email+password authentication is
18260
+ * inherently an HTTP-shaped operation in the current backend; an
18261
+ * in-process `LocalTransport` doesn't have a credentials login
18262
+ * path. Non-HTTP transports construct the client directly from
18263
+ * their package's transport instance.
18148
18264
  *
18149
18265
  * Throws if authentication fails. The transient client is disposed
18150
18266
  * before the throw, so no resources leak on failure.
18151
18267
  */
18152
- static async signIn(opts) {
18268
+ static async signInHttp(opts) {
18153
18269
  const url = typeof opts.baseUrl === "string" ? baseUrl(opts.baseUrl) : opts.baseUrl;
18154
18270
  const token$ = new import_rxjs.BehaviorSubject(null);
18155
18271
  const transport = new HttpTransport({ baseUrl: url, token$ });
18156
18272
  const content = new HttpContentTransport(transport);
18157
- const client = new _SemiontClient(transport, content);
18273
+ const client = new _SemiontClient(transport, content, transport);
18158
18274
  try {
18159
18275
  const auth = await client.auth.password(opts.email, opts.password);
18160
18276
  token$.next(accessToken(auth.token));
@@ -18257,7 +18373,7 @@ var init_backend_check = __esm({
18257
18373
  if (status === "unhealthy" || status === "unknown") {
18258
18374
  const localUrl = `http://localhost:${config.port}`;
18259
18375
  const transport = new HttpTransport3({ baseUrl: baseUrl3(localUrl) });
18260
- const client = new SemiontClient(transport, new HttpContentTransport3(transport));
18376
+ const client = new SemiontClient(transport, new HttpContentTransport3(transport), transport);
18261
18377
  try {
18262
18378
  const healthData = await client.admin.healthCheck();
18263
18379
  healthy = true;
@@ -21418,7 +21534,7 @@ var init_web_check = __esm({
21418
21534
  if (isBackend) {
21419
21535
  const backendConfig = config;
21420
21536
  const transport = new HttpTransport4({ baseUrl: baseUrl4(backendConfig.publicURL) });
21421
- const client = new SemiontClient(transport, new HttpContentTransport4(transport));
21537
+ const client = new SemiontClient(transport, new HttpContentTransport4(transport), transport);
21422
21538
  try {
21423
21539
  const healthData = await client.admin.healthCheck();
21424
21540
  health = {
@@ -32935,7 +33051,7 @@ var require_package = __commonJS({
32935
33051
  "package.json"(exports, module) {
32936
33052
  module.exports = {
32937
33053
  name: "@semiont/cli",
32938
- version: "0.5.1",
33054
+ version: "0.5.3",
32939
33055
  description: "Semiont CLI - Unified environment management tool",
32940
33056
  _comment: "AWS SDK dependencies (@aws-sdk/*) are only used by platforms/aws",
32941
33057
  type: "module",
@@ -32982,13 +33098,13 @@ var require_package = __commonJS({
32982
33098
  "test:watch:unit": "vitest --watch --config vitest.config.unit.ts"
32983
33099
  },
32984
33100
  dependencies: {
32985
- "@semiont/api-client": "0.5.1",
32986
- "@semiont/content": "0.5.1",
32987
- "@semiont/core": "0.5.1",
32988
- "@semiont/event-sourcing": "0.5.1",
32989
- "@semiont/graph": "0.5.1",
32990
- "@semiont/sdk": "0.5.1",
32991
- "@semiont/make-meaning": "0.5.1",
33101
+ "@semiont/api-client": "0.5.3",
33102
+ "@semiont/content": "0.5.3",
33103
+ "@semiont/core": "0.5.3",
33104
+ "@semiont/event-sourcing": "0.5.3",
33105
+ "@semiont/graph": "0.5.3",
33106
+ "@semiont/sdk": "0.5.3",
33107
+ "@semiont/make-meaning": "0.5.3",
32992
33108
  arg: "^5.0.2",
32993
33109
  argon2: "^0.44.0",
32994
33110
  express: "^5.2.1",
@@ -35640,7 +35756,7 @@ var mvCmd = new CommandBuilder().name("mv").description("Move (rename) a tracked
35640
35756
 
35641
35757
  // src/core/commands/yield.ts
35642
35758
  init_zod();
35643
- var import_rxjs3 = __toESM(require_cjs(), 1);
35759
+ var import_rxjs2 = __toESM(require_cjs(), 1);
35644
35760
  init_command_definition();
35645
35761
  init_base_options_schema();
35646
35762
  init_cli_logger();
@@ -35651,14 +35767,11 @@ import { resourceId as toResourceId, annotationId as toAnnotationId } from "@sem
35651
35767
 
35652
35768
  // src/core/api-client-factory.ts
35653
35769
  init_dist();
35654
- var import_rxjs2 = __toESM(require_cjs(), 1);
35655
35770
  import * as fs45 from "fs";
35656
35771
  import * as path37 from "path";
35657
35772
  import * as os6 from "os";
35658
- import { HttpContentTransport as HttpContentTransport5, HttpTransport as HttpTransport5 } from "@semiont/api-client";
35659
35773
  import {
35660
- accessToken as toAccessToken,
35661
- baseUrl as toBaseUrl
35774
+ accessToken as toAccessToken
35662
35775
  } from "@semiont/core";
35663
35776
  var TOKEN_CACHE_TTL_MS = 864e5;
35664
35777
  function authStoreDir() {
@@ -35688,8 +35801,7 @@ function isTokenValid(cache) {
35688
35801
  return Date.now() < cachedAt + TOKEN_CACHE_TTL_MS;
35689
35802
  }
35690
35803
  async function acquireToken(rawBusUrl, emailStr, passwordStr) {
35691
- const transport = new HttpTransport5({ baseUrl: toBaseUrl(rawBusUrl) });
35692
- const semiont = new SemiontClient(transport, new HttpContentTransport5(transport));
35804
+ const semiont = SemiontClient.fromHttp({ baseUrl: rawBusUrl });
35693
35805
  const authResult = await semiont.auth.password(emailStr, passwordStr);
35694
35806
  const cache = {
35695
35807
  bus: rawBusUrl,
@@ -35709,9 +35821,7 @@ Run: semiont login --bus ${rawBusUrl}`
35709
35821
  );
35710
35822
  }
35711
35823
  const token = toAccessToken(cached.token);
35712
- const token$ = new import_rxjs2.BehaviorSubject(token);
35713
- const transport = new HttpTransport5({ baseUrl: toBaseUrl(rawBusUrl), token$ });
35714
- const semiont = new SemiontClient(transport, new HttpContentTransport5(transport));
35824
+ const semiont = SemiontClient.fromHttp({ baseUrl: rawBusUrl, token });
35715
35825
  return { semiont, token };
35716
35826
  }
35717
35827
  function resolveBusUrl(busFlag) {
@@ -35754,7 +35864,14 @@ var YieldOptionsSchema = ApiOptionsSchema.extend({
35754
35864
  // Delegate mode optional
35755
35865
  title: external_exports.string().optional(),
35756
35866
  prompt: external_exports.string().optional(),
35867
+ /** BCP-47 tag — language the *generated resource* is written in. */
35757
35868
  language: external_exports.string().optional(),
35869
+ /**
35870
+ * BCP-47 tag — language of the *source resource* the annotation lives on.
35871
+ * Goes into the prompt so the LLM understands embedded source-context
35872
+ * snippets correctly when source ≠ target language.
35873
+ */
35874
+ sourceLanguage: external_exports.string().optional(),
35758
35875
  temperature: external_exports.coerce.number().min(0).max(1).optional(),
35759
35876
  maxTokens: external_exports.coerce.number().int().min(100).max(4e3).optional(),
35760
35877
  contextWindow: external_exports.coerce.number().int().min(100).max(5e3).default(1e3)
@@ -35781,18 +35898,20 @@ async function runDelegate(semiont, options) {
35781
35898
  const rawAnnotationId = options.annotation;
35782
35899
  const rId = toResourceId(rawResourceId);
35783
35900
  const aId = toAnnotationId(rawAnnotationId);
35784
- const context = await (0, import_rxjs3.lastValueFrom)(
35785
- semiont.gather.annotation(aId, rId, { contextWindow: options.contextWindow })
35901
+ const context = await (0, import_rxjs2.lastValueFrom)(
35902
+ semiont.gather.annotation(rId, aId, { contextWindow: options.contextWindow })
35786
35903
  );
35787
35904
  if (!options.quiet) process.stderr.write(`Generating from annotation ${rawAnnotationId}...
35788
35905
  `);
35789
- const final = await (0, import_rxjs3.lastValueFrom)(
35906
+ const ctxSourceLanguage = context?.metadata?.language;
35907
+ const final = await (0, import_rxjs2.lastValueFrom)(
35790
35908
  semiont.yield.fromAnnotation(rId, aId, {
35791
35909
  title: options.title ?? rawAnnotationId,
35792
35910
  storageUri: options.storageUri,
35793
35911
  context,
35794
35912
  prompt: options.prompt,
35795
35913
  language: options.language,
35914
+ sourceLanguage: options.sourceLanguage ?? ctxSourceLanguage,
35796
35915
  temperature: options.temperature,
35797
35916
  maxTokens: options.maxTokens
35798
35917
  })
@@ -35930,7 +36049,7 @@ init_command_definition();
35930
36049
  init_base_options_schema();
35931
36050
  init_cli_logger();
35932
36051
  import { resourceId as toResourceId2 } from "@semiont/core";
35933
- var import_rxjs4 = __toESM(require_cjs(), 1);
36052
+ var import_rxjs3 = __toESM(require_cjs(), 1);
35934
36053
  var MOTIVATIONS = ["highlighting", "commenting", "tagging", "assessing", "linking"];
35935
36054
  var CONTEXT_WINDOW = 32;
35936
36055
  var MarkOptionsSchema = ApiOptionsSchema.extend({
@@ -35963,6 +36082,19 @@ var MarkOptionsSchema = ApiOptionsSchema.extend({
35963
36082
  instructions: external_exports.string().optional(),
35964
36083
  density: external_exports.coerce.number().int().optional(),
35965
36084
  tone: external_exports.enum(["scholarly", "explanatory", "conversational", "technical", "analytical", "critical", "balanced", "constructive"]).optional(),
36085
+ /**
36086
+ * BCP-47 tag for the annotation body language. Tells the LLM what language
36087
+ * to write generated body text in (comment/assessment) and stamps the
36088
+ * `language` field on every TextualBody the worker produces. Independent
36089
+ * from --source-language; this one is about the *output*.
36090
+ */
36091
+ language: external_exports.string().optional(),
36092
+ /**
36093
+ * BCP-47 tag for the source-resource language. Goes into the prompt so the
36094
+ * LLM analyzes non-English source correctly. Independent from --language;
36095
+ * this one is about the *input*.
36096
+ */
36097
+ sourceLanguage: external_exports.string().optional(),
35966
36098
  // ── Delegate mode: linking ─────────────────────────────────────────────
35967
36099
  entityType: external_exports.array(external_exports.string()).default([]),
35968
36100
  includeDescriptive: external_exports.boolean().default(false),
@@ -36068,10 +36200,10 @@ function buildBody(options) {
36068
36200
  async function runDelegate2(semiont, options) {
36069
36201
  const rawResourceId = options.resourceIdArr[0];
36070
36202
  const rId = toResourceId2(rawResourceId);
36071
- const { motivation, instructions, density, tone, entityType: entityType2, includeDescriptive, schemaId, category } = options;
36203
+ const { motivation, instructions, density, tone, entityType: entityType2, includeDescriptive, schemaId, category, language, sourceLanguage } = options;
36072
36204
  if (!options.quiet) process.stderr.write(`Annotating ${motivation} on ${rawResourceId}...
36073
36205
  `);
36074
- const final = await (0, import_rxjs4.lastValueFrom)(
36206
+ const final = await (0, import_rxjs3.lastValueFrom)(
36075
36207
  semiont.mark.assist(rId, motivation, {
36076
36208
  instructions,
36077
36209
  density,
@@ -36079,7 +36211,9 @@ async function runDelegate2(semiont, options) {
36079
36211
  entityTypes: entityType2,
36080
36212
  includeDescriptiveReferences: includeDescriptive,
36081
36213
  schemaId,
36082
- categories: category
36214
+ categories: category,
36215
+ language,
36216
+ sourceLanguage
36083
36217
  })
36084
36218
  );
36085
36219
  const r = (final.kind === "complete" ? final.data.result : void 0) ?? {};
@@ -36116,7 +36250,7 @@ async function runMark(options) {
36116
36250
  target,
36117
36251
  body
36118
36252
  };
36119
- const { annotationId: annotationId3 } = await semiont.mark.annotation(resourceId3, request);
36253
+ const { annotationId: annotationId3 } = await semiont.mark.annotation(request);
36120
36254
  if (!options.quiet) printSuccess(`Marked: ${rawResourceId} \u2192 ${annotationId3}`);
36121
36255
  return {
36122
36256
  command: "mark",
@@ -36256,7 +36390,7 @@ var markCmd = new CommandBuilder().name("mark").description(
36256
36390
 
36257
36391
  // src/core/commands/gather.ts
36258
36392
  init_zod();
36259
- var import_rxjs5 = __toESM(require_cjs(), 1);
36393
+ var import_rxjs4 = __toESM(require_cjs(), 1);
36260
36394
  init_command_definition();
36261
36395
  init_base_options_schema();
36262
36396
  import { resourceId as toResourceId3, annotationId as toAnnotationId2 } from "@semiont/core";
@@ -36283,8 +36417,8 @@ async function runGather(options) {
36283
36417
  }
36284
36418
  const rid = toResourceId3(rawResourceId);
36285
36419
  const aid = toAnnotationId2(rawAnnotationId);
36286
- result = await (0, import_rxjs5.lastValueFrom)(
36287
- semiont.gather.annotation(aid, rid, { contextWindow: options.contextWindow })
36420
+ result = await (0, import_rxjs4.lastValueFrom)(
36421
+ semiont.gather.annotation(rid, aid, { contextWindow: options.contextWindow })
36288
36422
  );
36289
36423
  } else {
36290
36424
  throw new Error(`Unknown subcommand: ${subcommand}. Use 'resource' or 'annotation'.`);
@@ -36326,7 +36460,7 @@ var gatherCmd = new CommandBuilder().name("gather").description("Fetch LLM-optim
36326
36460
 
36327
36461
  // src/core/commands/match.ts
36328
36462
  init_zod();
36329
- var import_rxjs6 = __toESM(require_cjs(), 1);
36463
+ var import_rxjs5 = __toESM(require_cjs(), 1);
36330
36464
  init_command_definition();
36331
36465
  init_base_options_schema();
36332
36466
  import { resourceId as toResourceId4, annotationId as toAnnotationId3 } from "@semiont/core";
@@ -36344,13 +36478,13 @@ async function runMatch(options) {
36344
36478
  const annotationId3 = toAnnotationId3(rawAnnotationId);
36345
36479
  const rawBusUrl = resolveBusUrl(options.bus);
36346
36480
  const { semiont } = loadCachedClient(rawBusUrl);
36347
- let context = await (0, import_rxjs6.lastValueFrom)(
36348
- semiont.gather.annotation(annotationId3, resourceId3, { contextWindow: options.contextWindow })
36481
+ let context = await (0, import_rxjs5.lastValueFrom)(
36482
+ semiont.gather.annotation(resourceId3, annotationId3, { contextWindow: options.contextWindow })
36349
36483
  );
36350
36484
  if (options.userHint) {
36351
36485
  context = { ...context, userHint: options.userHint };
36352
36486
  }
36353
- const searchResult = await (0, import_rxjs6.firstValueFrom)(
36487
+ const searchResult = await (0, import_rxjs5.firstValueFrom)(
36354
36488
  semiont.match.search(resourceId3, annotationId3, context, {
36355
36489
  limit: options.limit,
36356
36490
  useSemanticScoring: !options.noSemantic
@@ -36499,7 +36633,7 @@ var beckonCmd = new CommandBuilder().name("beckon").description(
36499
36633
 
36500
36634
  // src/core/commands/browse.ts
36501
36635
  init_zod();
36502
- var import_rxjs7 = __toESM(require_cjs(), 1);
36636
+ var import_rxjs6 = __toESM(require_cjs(), 1);
36503
36637
  var import_operators2 = __toESM(require_operators(), 1);
36504
36638
  init_command_definition();
36505
36639
  init_base_options_schema();
@@ -36548,15 +36682,15 @@ async function runBrowse(options) {
36548
36682
  if (subcommand === "resources") {
36549
36683
  const filters = { limit: options.limit };
36550
36684
  if (options.search) filters.search = options.search;
36551
- const items = await (0, import_rxjs7.firstValueFrom)(semiont.browse.resources(filters).pipe((0, import_operators2.filter)(defined)));
36685
+ const items = await (0, import_rxjs6.firstValueFrom)(semiont.browse.resources(filters).pipe((0, import_operators2.filter)(defined)));
36552
36686
  result = items;
36553
36687
  label = `${items.length} resource${items.length !== 1 ? "s" : ""} found`;
36554
36688
  } else if (subcommand === "resource") {
36555
36689
  const id = toResourceId6(rawResourceId);
36556
- const resourceData = await (0, import_rxjs7.firstValueFrom)(semiont.browse.resource(id).pipe((0, import_operators2.filter)(defined)));
36690
+ const resourceData = await (0, import_rxjs6.firstValueFrom)(semiont.browse.resource(id).pipe((0, import_operators2.filter)(defined)));
36557
36691
  if (options.annotations || options.references) {
36558
- const annotations = options.annotations ? await (0, import_rxjs7.firstValueFrom)(semiont.browse.annotations(id).pipe((0, import_operators2.filter)(defined))) : void 0;
36559
- const referencedBy = options.references ? await (0, import_rxjs7.firstValueFrom)(semiont.browse.referencedBy(id).pipe((0, import_operators2.filter)(defined))) : void 0;
36692
+ const annotations = options.annotations ? await (0, import_rxjs6.firstValueFrom)(semiont.browse.annotations(id).pipe((0, import_operators2.filter)(defined))) : void 0;
36693
+ const referencedBy = options.references ? await (0, import_rxjs6.firstValueFrom)(semiont.browse.referencedBy(id).pipe((0, import_operators2.filter)(defined))) : void 0;
36560
36694
  result = {
36561
36695
  ...resourceData,
36562
36696
  ...annotations ? { annotations } : {},
@@ -36569,11 +36703,11 @@ async function runBrowse(options) {
36569
36703
  } else if (subcommand === "annotation") {
36570
36704
  const resourceId3 = toResourceId6(rawResourceId);
36571
36705
  const annotationId3 = toAnnotationId5(rawAnnotationId);
36572
- result = await (0, import_rxjs7.firstValueFrom)(semiont.browse.annotation(resourceId3, annotationId3).pipe((0, import_operators2.filter)(defined)));
36706
+ result = await (0, import_rxjs6.firstValueFrom)(semiont.browse.annotation(resourceId3, annotationId3).pipe((0, import_operators2.filter)(defined)));
36573
36707
  label = `${rawAnnotationId}: annotation on ${rawResourceId}`;
36574
36708
  } else if (subcommand === "references") {
36575
36709
  const id = toResourceId6(rawResourceId);
36576
- const refs = await (0, import_rxjs7.firstValueFrom)(semiont.browse.referencedBy(id).pipe((0, import_operators2.filter)(defined)));
36710
+ const refs = await (0, import_rxjs6.firstValueFrom)(semiont.browse.referencedBy(id).pipe((0, import_operators2.filter)(defined)));
36577
36711
  result = refs;
36578
36712
  label = `${refs.length} resource${refs.length !== 1 ? "s" : ""} reference ${rawResourceId}`;
36579
36713
  } else if (subcommand === "events") {
@@ -36593,7 +36727,7 @@ async function runBrowse(options) {
36593
36727
  const entries = data?.entries ?? [];
36594
36728
  label = `${entries.length} entr${entries.length !== 1 ? "ies" : "y"} in ${dirPath ?? "/"}`;
36595
36729
  } else {
36596
- const tags = await (0, import_rxjs7.firstValueFrom)(semiont.browse.entityTypes().pipe((0, import_operators2.filter)(defined)));
36730
+ const tags = await (0, import_rxjs6.firstValueFrom)(semiont.browse.entityTypes().pipe((0, import_operators2.filter)(defined)));
36597
36731
  result = tags;
36598
36732
  label = `${tags.length} entity type${tags.length !== 1 ? "s" : ""}`;
36599
36733
  }
@@ -36668,7 +36802,7 @@ init_zod();
36668
36802
  init_command_definition();
36669
36803
  init_base_options_schema();
36670
36804
  import { resourceId as toResourceId7 } from "@semiont/core";
36671
- import { createActorVM as createActorVM3 } from "@semiont/api-client";
36805
+ import { createActorStateUnit } from "@semiont/api-client";
36672
36806
  var ListenOptionsSchema = ApiOptionsSchema.extend({
36673
36807
  args: external_exports.array(external_exports.string()).default([])
36674
36808
  }).superRefine((val, ctx) => {
@@ -36694,7 +36828,7 @@ var ALL_EVENT_TYPES = [
36694
36828
  "mark:unarchived",
36695
36829
  "mark:entity-tag-added",
36696
36830
  "mark:entity-tag-removed",
36697
- "mark:entity-type-added",
36831
+ "frame:entity-type-added",
36698
36832
  "job:started",
36699
36833
  "job:progress",
36700
36834
  "job:completed",
@@ -36709,7 +36843,7 @@ async function runListen(options) {
36709
36843
  let eventCount = 0;
36710
36844
  const label = isResourceScoped ? `Listening for events on resource ${rawResourceId}` : "Listening for global events";
36711
36845
  if (!options.quiet) process.stderr.write(label + " (Ctrl-C to stop)\n");
36712
- const actor = createActorVM3({
36846
+ const actor = createActorStateUnit({
36713
36847
  baseUrl: rawBusUrl,
36714
36848
  token,
36715
36849
  channels: isResourceScoped ? [] : [...ALL_EVENT_TYPES]
@@ -37982,7 +38116,7 @@ async function generateGlobalHelp() {
37982
38116
  }
37983
38117
 
37984
38118
  // src/cli.ts
37985
- var VERSION = "0.5.1";
38119
+ var VERSION = "0.5.3";
37986
38120
  function printVersion() {
37987
38121
  console.log(`Semiont CLI v${VERSION}`);
37988
38122
  }