@dxos/app-framework 0.8.4-main.74a063c4e0 → 0.8.4-main.765dc60934

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 (307) hide show
  1. package/LICENSE +102 -5
  2. package/README.md +1 -1
  3. package/dist/lib/browser/{capability-OP63CD5N.mjs → capability-HRFPP52W.mjs} +11 -11
  4. package/dist/lib/browser/capability-HRFPP52W.mjs.map +7 -0
  5. package/dist/lib/browser/{capability-BBBBAPDI.mjs → capability-VQ236TY5.mjs} +10 -10
  6. package/dist/lib/browser/{chunk-T3Y4AEKX.mjs → chunk-23D4SJUE.mjs} +3 -3
  7. package/dist/lib/browser/{chunk-T3Y4AEKX.mjs.map → chunk-23D4SJUE.mjs.map} +1 -1
  8. package/dist/lib/browser/{chunk-2CKCJ6PN.mjs → chunk-3JWJXGLK.mjs} +1 -1
  9. package/dist/lib/browser/{chunk-2CKCJ6PN.mjs.map → chunk-3JWJXGLK.mjs.map} +1 -1
  10. package/dist/lib/browser/{chunk-I34GF4NG.mjs → chunk-45CHLTBV.mjs} +2 -2
  11. package/dist/lib/browser/{chunk-QSXYHXCE.mjs → chunk-66IXTIVK.mjs} +1 -1
  12. package/dist/lib/browser/{chunk-QSXYHXCE.mjs.map → chunk-66IXTIVK.mjs.map} +2 -2
  13. package/dist/lib/browser/chunk-6GZYCP73.mjs +422 -0
  14. package/dist/lib/browser/chunk-6GZYCP73.mjs.map +7 -0
  15. package/dist/lib/browser/chunk-7VZJR2OA.mjs +581 -0
  16. package/dist/lib/browser/chunk-7VZJR2OA.mjs.map +7 -0
  17. package/dist/lib/browser/{chunk-TGX63LTL.mjs → chunk-FJ4765WW.mjs} +1 -1
  18. package/dist/lib/browser/{chunk-TGX63LTL.mjs.map → chunk-FJ4765WW.mjs.map} +2 -2
  19. package/dist/lib/browser/chunk-FO3IYSLV.mjs +68 -0
  20. package/dist/lib/browser/chunk-FO3IYSLV.mjs.map +7 -0
  21. package/dist/lib/browser/{chunk-FU4GAFUQ.mjs → chunk-G6Q2M2M5.mjs} +85 -15
  22. package/dist/lib/browser/chunk-G6Q2M2M5.mjs.map +7 -0
  23. package/dist/lib/browser/chunk-J43JDWAV.mjs +1445 -0
  24. package/dist/lib/browser/chunk-J43JDWAV.mjs.map +7 -0
  25. package/dist/lib/browser/{chunk-JKWMHZP6.mjs → chunk-WBHCSOBW.mjs} +2 -2
  26. package/dist/lib/browser/chunk-WBHCSOBW.mjs.map +7 -0
  27. package/dist/lib/browser/chunk-XLYULXAO.mjs +469 -0
  28. package/dist/lib/browser/chunk-XLYULXAO.mjs.map +7 -0
  29. package/dist/lib/browser/{chunk-F7FW2RK2.mjs → chunk-ZGJAZSNE.mjs} +7 -32
  30. package/dist/lib/browser/chunk-ZGJAZSNE.mjs.map +7 -0
  31. package/dist/lib/browser/cli/index.mjs +14 -28
  32. package/dist/lib/browser/cli/index.mjs.map +3 -3
  33. package/dist/lib/browser/common/activation-events.mjs +7 -7
  34. package/dist/lib/browser/common/capabilities.mjs +7 -7
  35. package/dist/lib/browser/core/activation-event.mjs +1 -1
  36. package/dist/lib/browser/core/capability.mjs +1 -1
  37. package/dist/lib/browser/core/plugin-manager.mjs +8 -4
  38. package/dist/lib/browser/core/plugin.mjs +12 -2
  39. package/dist/lib/browser/core/url-loader.mjs +17 -5
  40. package/dist/lib/browser/index.mjs +38 -21
  41. package/dist/lib/browser/index.mjs.map +3 -3
  42. package/dist/lib/browser/{invoker-capability-H5PPENOC.mjs → invoker-capability-CEL2L6GX.mjs} +12 -11
  43. package/dist/lib/browser/invoker-capability-CEL2L6GX.mjs.map +7 -0
  44. package/dist/lib/browser/meta.json +1 -1
  45. package/dist/lib/browser/testing/index.mjs +149 -28
  46. package/dist/lib/browser/testing/index.mjs.map +4 -4
  47. package/dist/lib/browser/testing/react.mjs +78 -0
  48. package/dist/lib/browser/testing/react.mjs.map +7 -0
  49. package/dist/lib/browser/ui/index.mjs +18 -14
  50. package/dist/lib/node-esm/{capability-AWBEMRYR.mjs → capability-GS3XJH74.mjs} +10 -10
  51. package/dist/lib/node-esm/{capability-WFEG6CIZ.mjs → capability-I5P7ACFL.mjs} +11 -11
  52. package/dist/lib/node-esm/capability-I5P7ACFL.mjs.map +7 -0
  53. package/dist/lib/node-esm/{chunk-FKE4Z3D6.mjs → chunk-37Z53PXZ.mjs} +1 -1
  54. package/dist/lib/node-esm/{chunk-FKE4Z3D6.mjs.map → chunk-37Z53PXZ.mjs.map} +2 -2
  55. package/dist/lib/node-esm/chunk-4RJL37GN.mjs +423 -0
  56. package/dist/lib/node-esm/chunk-4RJL37GN.mjs.map +7 -0
  57. package/dist/lib/node-esm/{chunk-WZCSOX5Q.mjs → chunk-6XW6LET6.mjs} +2 -2
  58. package/dist/lib/node-esm/{chunk-URWHJQT2.mjs → chunk-D347W3KO.mjs} +7 -32
  59. package/dist/lib/node-esm/chunk-D347W3KO.mjs.map +7 -0
  60. package/dist/lib/node-esm/chunk-DW45NFLW.mjs +1446 -0
  61. package/dist/lib/node-esm/chunk-DW45NFLW.mjs.map +7 -0
  62. package/dist/lib/node-esm/chunk-EI4LYXFY.mjs +470 -0
  63. package/dist/lib/node-esm/chunk-EI4LYXFY.mjs.map +7 -0
  64. package/dist/lib/node-esm/{chunk-ULUEXB7Q.mjs → chunk-KIFOQXD4.mjs} +85 -15
  65. package/dist/lib/node-esm/chunk-KIFOQXD4.mjs.map +7 -0
  66. package/dist/lib/node-esm/{chunk-VKHGNEDB.mjs → chunk-SBS2YMPT.mjs} +3 -3
  67. package/dist/lib/node-esm/{chunk-VKHGNEDB.mjs.map → chunk-SBS2YMPT.mjs.map} +1 -1
  68. package/dist/lib/node-esm/{chunk-42KBWDE4.mjs → chunk-SDJ4B2LU.mjs} +1 -1
  69. package/dist/lib/node-esm/{chunk-42KBWDE4.mjs.map → chunk-SDJ4B2LU.mjs.map} +1 -1
  70. package/dist/lib/node-esm/chunk-V24UWT36.mjs +582 -0
  71. package/dist/lib/node-esm/chunk-V24UWT36.mjs.map +7 -0
  72. package/dist/lib/node-esm/{chunk-G3RTFSNG.mjs → chunk-WFSRZKBP.mjs} +2 -2
  73. package/dist/lib/node-esm/chunk-WFSRZKBP.mjs.map +7 -0
  74. package/dist/lib/node-esm/chunk-WK7OIQKI.mjs +70 -0
  75. package/dist/lib/node-esm/chunk-WK7OIQKI.mjs.map +7 -0
  76. package/dist/lib/node-esm/{chunk-ZZ7CKK6W.mjs → chunk-XOCUANHO.mjs} +1 -1
  77. package/dist/lib/node-esm/{chunk-ZZ7CKK6W.mjs.map → chunk-XOCUANHO.mjs.map} +2 -2
  78. package/dist/lib/node-esm/cli/index.mjs +14 -28
  79. package/dist/lib/node-esm/cli/index.mjs.map +3 -3
  80. package/dist/lib/node-esm/common/activation-events.mjs +7 -7
  81. package/dist/lib/node-esm/common/capabilities.mjs +7 -7
  82. package/dist/lib/node-esm/core/activation-event.mjs +1 -1
  83. package/dist/lib/node-esm/core/capability.mjs +1 -1
  84. package/dist/lib/node-esm/core/plugin-manager.mjs +8 -4
  85. package/dist/lib/node-esm/core/plugin.mjs +12 -2
  86. package/dist/lib/node-esm/core/url-loader.mjs +17 -5
  87. package/dist/lib/node-esm/index.mjs +38 -21
  88. package/dist/lib/node-esm/index.mjs.map +3 -3
  89. package/dist/lib/node-esm/{invoker-capability-S3ZA527J.mjs → invoker-capability-QKUKN2MF.mjs} +12 -11
  90. package/dist/lib/node-esm/invoker-capability-QKUKN2MF.mjs.map +7 -0
  91. package/dist/lib/node-esm/meta.json +1 -1
  92. package/dist/lib/node-esm/testing/index.mjs +149 -28
  93. package/dist/lib/node-esm/testing/index.mjs.map +4 -4
  94. package/dist/lib/node-esm/testing/react.mjs +79 -0
  95. package/dist/lib/node-esm/testing/react.mjs.map +7 -0
  96. package/dist/lib/node-esm/ui/index.mjs +18 -14
  97. package/dist/plugin/node-esm/index.mjs +542 -33
  98. package/dist/plugin/node-esm/index.mjs.map +4 -4
  99. package/dist/plugin/node-esm/meta.json +1 -1
  100. package/dist/types/src/common/annotations.d.ts +1 -0
  101. package/dist/types/src/common/annotations.d.ts.map +1 -0
  102. package/dist/types/src/common/capabilities.d.ts +2 -1
  103. package/dist/types/src/common/capabilities.d.ts.map +1 -1
  104. package/dist/types/src/common/operations.d.ts +1 -1
  105. package/dist/types/src/common/operations.d.ts.map +1 -1
  106. package/dist/types/src/core/activation-event.d.ts +4 -4
  107. package/dist/types/src/core/activation-event.d.ts.map +1 -1
  108. package/dist/types/src/core/capability-manager.d.ts.map +1 -1
  109. package/dist/types/src/core/capability.d.ts +2 -2
  110. package/dist/types/src/core/capability.d.ts.map +1 -1
  111. package/dist/types/src/core/edge-registry-plugin-provider.d.ts +30 -0
  112. package/dist/types/src/core/edge-registry-plugin-provider.d.ts.map +1 -0
  113. package/dist/types/src/core/index.d.ts +5 -0
  114. package/dist/types/src/core/index.d.ts.map +1 -1
  115. package/dist/types/src/core/plugin-asset-cache.d.ts +71 -0
  116. package/dist/types/src/core/plugin-asset-cache.d.ts.map +1 -0
  117. package/dist/types/src/core/plugin-manager.d.ts +230 -5
  118. package/dist/types/src/core/plugin-manager.d.ts.map +1 -1
  119. package/dist/types/src/core/plugin-manifest.d.ts +101 -0
  120. package/dist/types/src/core/plugin-manifest.d.ts.map +1 -0
  121. package/dist/types/src/core/plugin-manifest.test.d.ts +2 -0
  122. package/dist/types/src/core/plugin-manifest.test.d.ts.map +1 -0
  123. package/dist/types/src/core/plugin.d.ts +164 -6
  124. package/dist/types/src/core/plugin.d.ts.map +1 -1
  125. package/dist/types/src/core/registry.d.ts +107 -0
  126. package/dist/types/src/core/registry.d.ts.map +1 -0
  127. package/dist/types/src/core/url-loader.d.ts +105 -3
  128. package/dist/types/src/core/url-loader.d.ts.map +1 -1
  129. package/dist/types/src/helpers.d.ts.map +1 -1
  130. package/dist/types/src/plugin-operation/history/capability.d.ts.map +1 -1
  131. package/dist/types/src/plugin-operation/history/errors.d.ts +6 -6
  132. package/dist/types/src/plugin-operation/history/errors.d.ts.map +1 -1
  133. package/dist/types/src/plugin-operation/history/history-tracker.d.ts +1 -1
  134. package/dist/types/src/plugin-operation/history/history-tracker.d.ts.map +1 -1
  135. package/dist/types/src/plugin-operation/history/types.d.ts +1 -1
  136. package/dist/types/src/plugin-operation/history/types.d.ts.map +1 -1
  137. package/dist/types/src/plugin-operation/history/undo-mapping.d.ts +1 -1
  138. package/dist/types/src/plugin-operation/history/undo-mapping.d.ts.map +1 -1
  139. package/dist/types/src/plugin-operation/history/undo-registry.d.ts +1 -1
  140. package/dist/types/src/plugin-operation/history/undo-registry.d.ts.map +1 -1
  141. package/dist/types/src/plugin-operation/invoker-capability.d.ts +1 -1
  142. package/dist/types/src/plugin-operation/invoker-capability.d.ts.map +1 -1
  143. package/dist/types/src/plugin-operation/meta.d.ts.map +1 -1
  144. package/dist/types/src/plugin-operation/testing.d.ts +2 -1
  145. package/dist/types/src/plugin-operation/testing.d.ts.map +1 -1
  146. package/dist/types/src/plugin-runtime/capability.d.ts +1 -1
  147. package/dist/types/src/plugin-runtime/capability.d.ts.map +1 -1
  148. package/dist/types/src/plugin-runtime/meta.d.ts.map +1 -1
  149. package/dist/types/src/testing/harness.d.ts +67 -0
  150. package/dist/types/src/testing/harness.d.ts.map +1 -0
  151. package/dist/types/src/testing/index.d.ts +1 -0
  152. package/dist/types/src/testing/index.d.ts.map +1 -1
  153. package/dist/types/src/testing/react.d.ts +27 -0
  154. package/dist/types/src/testing/react.d.ts.map +1 -0
  155. package/dist/types/src/testing/react.test.d.ts +2 -0
  156. package/dist/types/src/testing/react.test.d.ts.map +1 -0
  157. package/dist/types/src/testing/service.d.ts.map +1 -1
  158. package/dist/types/src/testing/withPluginManager.d.ts.map +1 -1
  159. package/dist/types/src/testing/withPluginManager.stories.d.ts.map +1 -1
  160. package/dist/types/src/ui/components/App/App.d.ts.map +1 -1
  161. package/dist/types/src/ui/components/App/App.stories.d.ts.map +1 -1
  162. package/dist/types/src/ui/components/Placeholder/Placeholder.d.ts +64 -0
  163. package/dist/types/src/ui/components/Placeholder/Placeholder.d.ts.map +1 -0
  164. package/dist/types/src/ui/components/Placeholder/Placeholder.stories.d.ts +19 -0
  165. package/dist/types/src/ui/components/Placeholder/Placeholder.stories.d.ts.map +1 -0
  166. package/dist/types/src/ui/components/Placeholder/index.d.ts +2 -0
  167. package/dist/types/src/ui/components/Placeholder/index.d.ts.map +1 -0
  168. package/dist/types/src/ui/components/PluginManager/PluginManagerContext.stories.d.ts.map +1 -1
  169. package/dist/types/src/ui/components/Surface/SurfaceComponent.d.ts +16 -4
  170. package/dist/types/src/ui/components/Surface/SurfaceComponent.d.ts.map +1 -1
  171. package/dist/types/src/ui/components/Surface/SurfaceComponent.stories.d.ts.map +1 -1
  172. package/dist/types/src/ui/components/Surface/SurfaceInfo.d.ts.map +1 -1
  173. package/dist/types/src/ui/components/Surface/SurfaceProfilerContext.d.ts.map +1 -1
  174. package/dist/types/src/ui/components/Surface/index.d.ts +16 -6
  175. package/dist/types/src/ui/components/Surface/index.d.ts.map +1 -1
  176. package/dist/types/src/ui/components/Surface/types.d.ts +110 -9
  177. package/dist/types/src/ui/components/Surface/types.d.ts.map +1 -1
  178. package/dist/types/src/ui/components/Surface/types.test.d.ts +2 -0
  179. package/dist/types/src/ui/components/Surface/types.test.d.ts.map +1 -0
  180. package/dist/types/src/ui/components/index.d.ts +1 -0
  181. package/dist/types/src/ui/components/index.d.ts.map +1 -1
  182. package/dist/types/src/ui/hooks/useApp.d.ts +30 -3
  183. package/dist/types/src/ui/hooks/useApp.d.ts.map +1 -1
  184. package/dist/types/src/ui/hooks/useCapabilities.d.ts.map +1 -1
  185. package/dist/types/src/ui/hooks/useLoading.d.ts.map +1 -1
  186. package/dist/types/src/ui/hooks/useSettingsState.d.ts.map +1 -1
  187. package/dist/types/src/vite-plugin/boot-loader/BootLoader.stories.d.ts +34 -0
  188. package/dist/types/src/vite-plugin/boot-loader/BootLoader.stories.d.ts.map +1 -0
  189. package/dist/types/src/vite-plugin/boot-loader/index.d.ts +2 -0
  190. package/dist/types/src/vite-plugin/boot-loader/index.d.ts.map +1 -0
  191. package/dist/types/src/vite-plugin/boot-loader/loader.d.ts +51 -0
  192. package/dist/types/src/vite-plugin/boot-loader/loader.d.ts.map +1 -0
  193. package/dist/types/src/vite-plugin/composer/index.d.ts +34 -0
  194. package/dist/types/src/vite-plugin/composer/index.d.ts.map +1 -0
  195. package/dist/types/src/vite-plugin/import-map/index.d.ts +28 -0
  196. package/dist/types/src/vite-plugin/import-map/index.d.ts.map +1 -0
  197. package/dist/types/src/vite-plugin/index.d.ts +4 -2
  198. package/dist/types/src/vite-plugin/index.d.ts.map +1 -1
  199. package/dist/types/src/vite-plugin/manifest.d.ts +41 -0
  200. package/dist/types/src/vite-plugin/manifest.d.ts.map +1 -0
  201. package/dist/types/src/vite-plugin/manifest.test.d.ts +2 -0
  202. package/dist/types/src/vite-plugin/manifest.test.d.ts.map +1 -0
  203. package/dist/types/src/vite-plugin/packages.d.ts +10 -4
  204. package/dist/types/src/vite-plugin/packages.d.ts.map +1 -1
  205. package/dist/types/tsconfig.tsbuildinfo +1 -1
  206. package/moon.yml +1 -0
  207. package/package.json +36 -60
  208. package/src/cli/cli.ts +1 -1
  209. package/src/common/annotations.ts +3 -0
  210. package/src/common/capabilities.ts +2 -1
  211. package/src/common/operations.ts +1 -1
  212. package/src/core/capability.ts +1 -1
  213. package/src/core/edge-registry-plugin-provider.ts +92 -0
  214. package/src/core/index.ts +5 -0
  215. package/src/core/plugin-asset-cache.ts +60 -0
  216. package/src/core/plugin-manager.test.ts +793 -7
  217. package/src/core/plugin-manager.ts +846 -44
  218. package/src/core/plugin-manifest.test.ts +75 -0
  219. package/src/core/plugin-manifest.ts +134 -0
  220. package/src/core/plugin.ts +170 -10
  221. package/src/core/registry.ts +163 -0
  222. package/src/core/url-loader.test.ts +148 -6
  223. package/src/core/url-loader.ts +284 -44
  224. package/src/plugin-operation/OperationPlugin.ts +2 -2
  225. package/src/plugin-operation/history/capability.ts +1 -1
  226. package/src/plugin-operation/history/history-tracker.test.ts +2 -1
  227. package/src/plugin-operation/history/history-tracker.ts +1 -1
  228. package/src/plugin-operation/history/types.ts +1 -1
  229. package/src/plugin-operation/history/undo-mapping.ts +1 -1
  230. package/src/plugin-operation/history/undo-registry.ts +1 -1
  231. package/src/plugin-operation/invoker-capability.ts +2 -1
  232. package/src/plugin-operation/meta.ts +1 -0
  233. package/src/plugin-operation/testing.ts +2 -1
  234. package/src/plugin-runtime/RuntimePlugin.ts +2 -2
  235. package/src/plugin-runtime/meta.ts +1 -0
  236. package/src/testing/harness.ts +229 -0
  237. package/src/testing/index.ts +1 -0
  238. package/src/testing/react.test.tsx +48 -0
  239. package/src/testing/react.tsx +113 -0
  240. package/src/testing/service.ts +1 -1
  241. package/src/testing/withPluginManager.stories.tsx +1 -1
  242. package/src/testing/withPluginManager.tsx +0 -2
  243. package/src/ui/components/App/App.stories.tsx +2 -6
  244. package/src/ui/components/App/App.tsx +25 -2
  245. package/src/ui/components/Placeholder/Placeholder.stories.tsx +77 -0
  246. package/src/ui/components/Placeholder/Placeholder.tsx +155 -0
  247. package/src/ui/components/Placeholder/index.ts +5 -0
  248. package/src/ui/components/PluginManager/PluginManagerContext.stories.tsx +4 -2
  249. package/src/ui/components/Surface/SurfaceComponent.stories.tsx +1 -1
  250. package/src/ui/components/Surface/SurfaceComponent.tsx +85 -48
  251. package/src/ui/components/Surface/SurfaceInfo.tsx +0 -1
  252. package/src/ui/components/Surface/index.ts +20 -1
  253. package/src/ui/components/Surface/types.test.ts +126 -0
  254. package/src/ui/components/Surface/types.ts +164 -12
  255. package/src/ui/components/index.ts +1 -0
  256. package/src/ui/hooks/useApp.test.tsx +1 -1
  257. package/src/ui/hooks/useApp.tsx +177 -42
  258. package/src/ui/hooks/useLoading.tsx +14 -6
  259. package/src/vite-plugin/boot-loader/BootLoader.stories.tsx +270 -0
  260. package/src/vite-plugin/boot-loader/boot-loader.css +321 -0
  261. package/src/vite-plugin/boot-loader/boot-loader.js +325 -0
  262. package/src/vite-plugin/boot-loader/index.ts +5 -0
  263. package/src/vite-plugin/boot-loader/loader.ts +123 -0
  264. package/src/vite-plugin/composer/index.ts +306 -0
  265. package/src/vite-plugin/import-map/index.ts +527 -0
  266. package/src/vite-plugin/index.ts +6 -2
  267. package/src/vite-plugin/manifest.test.ts +46 -0
  268. package/src/vite-plugin/manifest.ts +57 -0
  269. package/src/vite-plugin/packages.ts +168 -10
  270. package/tsconfig.json +16 -1
  271. package/.swc/plugins/linux_x86_64_19.0.0/727453fb3a62f7f1d952a41e051ca8a6f88cadc45cee43c6a4d1aa45f9b75665.wasmer-v7 +0 -0
  272. package/dist/lib/browser/capability-OP63CD5N.mjs.map +0 -7
  273. package/dist/lib/browser/chunk-F7FW2RK2.mjs.map +0 -7
  274. package/dist/lib/browser/chunk-FU4GAFUQ.mjs.map +0 -7
  275. package/dist/lib/browser/chunk-GX4TUNM6.mjs +0 -963
  276. package/dist/lib/browser/chunk-GX4TUNM6.mjs.map +0 -7
  277. package/dist/lib/browser/chunk-JKWMHZP6.mjs.map +0 -7
  278. package/dist/lib/browser/chunk-LVJW5EFU.mjs +0 -157
  279. package/dist/lib/browser/chunk-LVJW5EFU.mjs.map +0 -7
  280. package/dist/lib/browser/chunk-RFSO3JRG.mjs +0 -1
  281. package/dist/lib/browser/chunk-RFSO3JRG.mjs.map +0 -7
  282. package/dist/lib/browser/chunk-WPE6AL7I.mjs +0 -905
  283. package/dist/lib/browser/chunk-WPE6AL7I.mjs.map +0 -7
  284. package/dist/lib/browser/invoker-capability-H5PPENOC.mjs.map +0 -7
  285. package/dist/lib/node-esm/capability-WFEG6CIZ.mjs.map +0 -7
  286. package/dist/lib/node-esm/chunk-4A3ZCMI3.mjs +0 -158
  287. package/dist/lib/node-esm/chunk-4A3ZCMI3.mjs.map +0 -7
  288. package/dist/lib/node-esm/chunk-BCEOLX47.mjs +0 -964
  289. package/dist/lib/node-esm/chunk-BCEOLX47.mjs.map +0 -7
  290. package/dist/lib/node-esm/chunk-EL3R25OQ.mjs +0 -2
  291. package/dist/lib/node-esm/chunk-EL3R25OQ.mjs.map +0 -7
  292. package/dist/lib/node-esm/chunk-G3RTFSNG.mjs.map +0 -7
  293. package/dist/lib/node-esm/chunk-LQKOTNJW.mjs +0 -906
  294. package/dist/lib/node-esm/chunk-LQKOTNJW.mjs.map +0 -7
  295. package/dist/lib/node-esm/chunk-ULUEXB7Q.mjs.map +0 -7
  296. package/dist/lib/node-esm/chunk-URWHJQT2.mjs.map +0 -7
  297. package/dist/lib/node-esm/invoker-capability-S3ZA527J.mjs.map +0 -7
  298. package/dist/types/src/vite-plugin/composer-plugin.d.ts +0 -18
  299. package/dist/types/src/vite-plugin/composer-plugin.d.ts.map +0 -1
  300. package/dist/types/src/vite-plugin/import-map-plugin.d.ts +0 -16
  301. package/dist/types/src/vite-plugin/import-map-plugin.d.ts.map +0 -1
  302. package/src/vite-plugin/composer-plugin.ts +0 -128
  303. package/src/vite-plugin/import-map-plugin.ts +0 -314
  304. /package/dist/lib/browser/{capability-BBBBAPDI.mjs.map → capability-VQ236TY5.mjs.map} +0 -0
  305. /package/dist/lib/browser/{chunk-I34GF4NG.mjs.map → chunk-45CHLTBV.mjs.map} +0 -0
  306. /package/dist/lib/node-esm/{capability-AWBEMRYR.mjs.map → capability-GS3XJH74.mjs.map} +0 -0
  307. /package/dist/lib/node-esm/{chunk-WZCSOX5Q.mjs.map → chunk-6XW6LET6.mjs.map} +0 -0
@@ -1,6 +1,7 @@
1
1
  import * as Context from 'effect/Context';
2
2
  import * as Effect from 'effect/Effect';
3
3
  import * as Pipeable from 'effect/Pipeable';
4
+ import { BaseError } from '@dxos/errors';
4
5
  import type * as ActivationEvent from './activation-event';
5
6
  import * as Capability from './capability';
6
7
  import type * as PluginManager from './plugin-manager';
@@ -54,15 +55,32 @@ export interface PluginModule {
54
55
  */
55
56
  activatesOn: ActivationEvent.Events;
56
57
  /**
57
- * Events which the plugin depends on being activated.
58
- * Plugin is marked as needing reset a plugin activated by a dependent event is removed.
59
- * Events are automatically activated before activation of the plugin.
58
+ * Events that this module fires *before* its own activation runs.
59
+ *
60
+ * When this module is asked to activate (via {@link activatesOn}), the
61
+ * plugin manager first activates every event listed here, ensuring any
62
+ * other modules that contribute to those events have completed before
63
+ * this module's {@link activate} body executes. These events are fired
64
+ * by the framework on this module's behalf — the module does not need
65
+ * to wait for some other code to fire them.
66
+ *
67
+ * The module is marked as needing reset if a module activated by one
68
+ * of these events is later removed.
69
+ *
70
+ * Read as: "this module fires these events before [its] activation".
60
71
  */
61
- activatesBefore?: ActivationEvent.ActivationEvent[];
72
+ firesBeforeActivation?: ActivationEvent.ActivationEvent[];
62
73
  /**
63
- * Events which this plugin triggers upon activation.
74
+ * Events that this module fires *after* its own activation completes.
75
+ *
76
+ * Once this module's {@link activate} body has finished executing, the
77
+ * plugin manager activates every event listed here, causing any modules
78
+ * listening on those events to run. These events are fired by the
79
+ * framework on this module's behalf as part of this module's lifecycle.
80
+ *
81
+ * Read as: "this module fires these events after [its] activation".
64
82
  */
65
- activatesAfter?: ActivationEvent.ActivationEvent[];
83
+ firesAfterActivation?: ActivationEvent.ActivationEvent[];
66
84
  /**
67
85
  * Called when the module is activated.
68
86
  * CapabilityManager is accessed via the Effect layer system (Capability.Service).
@@ -92,6 +110,10 @@ export type Meta = {
92
110
  * Short description of plugin functionality.
93
111
  */
94
112
  description?: string;
113
+ /**
114
+ * Name of the author or organization that created the plugin.
115
+ */
116
+ author?: string;
95
117
  /**
96
118
  * URL of home page.
97
119
  */
@@ -116,6 +138,21 @@ export type Meta = {
116
138
  * Icon hue (ChromaticPalette).
117
139
  */
118
140
  iconHue?: string;
141
+ /**
142
+ * IDs of plugins this plugin functionally depends on.
143
+ *
144
+ * Treated as a convenience by the default `PluginManager` flow:
145
+ * - Enabling this plugin auto-enables the transitive closure of `dependsOn`
146
+ * (installing missing entries from the plugin registry when possible).
147
+ * - Disabling a depended-upon plugin surfaces dependents to the caller; the
148
+ * `PluginManager.disable` API supports an opt-in cascade.
149
+ *
150
+ * Not an invariant: low-level `PluginManager` APIs accept opt-outs
151
+ * (`resolveDependencies: false`, `ignoreDependents: true`) so a caller may
152
+ * substitute an alternative implementation that satisfies the dependent's
153
+ * capability needs in its own way.
154
+ */
155
+ dependsOn?: string[];
119
156
  };
120
157
  /**
121
158
  * Identifier denoting a Plugin.
@@ -164,5 +201,126 @@ export type PluginFactory<T = void> = ((options: T) => Plugin) & {
164
201
  * When T is void, the function takes no arguments: () => Plugin.
165
202
  */
166
203
  export declare function make<T>(builder: PluginBuilder<T>): PluginFactory<T>;
204
+ /**
205
+ * Async loader for a lazy plugin's real implementation.
206
+ * The default export of the loaded module must be a `PluginFactory<T>` —
207
+ * i.e. the same shape `Plugin.make` produces.
208
+ */
209
+ export type LazyLoader<T = void> = () => Promise<{
210
+ default: PluginFactory<T>;
211
+ }>;
212
+ /**
213
+ * Defines a lazy plugin whose body is loaded on first enable.
214
+ *
215
+ * The returned factory produces a stub `Plugin` that exposes `meta`
216
+ * synchronously (so callers can read `Plugin.meta.id` for free) but defers
217
+ * loading the real plugin's modules until the manager calls
218
+ * `Plugin.resolveLazy`. This lets the plugin's main entry point ship as a
219
+ * tiny meta-only chunk — the heavy capabilities, schema, React surfaces,
220
+ * etc. live behind the dynamic `import()` and become a separate Rollup
221
+ * chunk that is only fetched when the plugin is enabled.
222
+ *
223
+ * @example
224
+ * ```ts
225
+ * // plugin-markdown/src/index.ts
226
+ * import { Plugin } from '@dxos/app-framework';
227
+ * import { meta } from './meta';
228
+ *
229
+ * export const MarkdownPlugin = Plugin.lazy(meta, () => import('./MarkdownPlugin'));
230
+ *
231
+ * // plugin-markdown/src/MarkdownPlugin.tsx
232
+ * export const MarkdownPlugin = Plugin.define(meta).pipe(...heavy modules..., Plugin.make);
233
+ * export default MarkdownPlugin;
234
+ * ```
235
+ */
236
+ export declare const lazy: <T = void>(meta: Meta, loader: LazyLoader<T>) => PluginFactory<T>;
237
+ /**
238
+ * Type guard for lazy plugin stubs produced by {@link lazy}.
239
+ */
240
+ export declare const isLazy: (plugin: Plugin) => boolean;
241
+ declare const LazyPluginError_base: {
242
+ new (options?: import("@dxos/errors").BaseErrorOptions): {
243
+ cause?: unknown;
244
+ stack?: string;
245
+ name: "LazyPluginError";
246
+ context: Record<string, unknown>;
247
+ readonly message: string;
248
+ readonly _tag: "LazyPluginError";
249
+ };
250
+ isError(error: unknown): error is Error;
251
+ name: "LazyPluginError";
252
+ is(error: unknown): error is BaseError;
253
+ wrap(options?: Omit<import("@dxos/errors").BaseErrorOptions, 'cause'> & {
254
+ ifTypeDiffers?: boolean;
255
+ }): (error: unknown) => {
256
+ cause?: unknown;
257
+ stack?: string;
258
+ name: "LazyPluginError";
259
+ context: Record<string, unknown>;
260
+ readonly message: string;
261
+ readonly _tag: "LazyPluginError";
262
+ };
263
+ extend<Name extends string = string>(name: Name, message?: string): any;
264
+ captureStackTrace(targetObject: object, constructorOpt?: Function): void;
265
+ prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
266
+ stackTraceLimit: number;
267
+ };
268
+ /**
269
+ * Tagged error for failures during lazy plugin resolution. `context.id` is
270
+ * the lazy plugin's `meta.id`; `context.reason` discriminates the failure
271
+ * mode (`'load-failed' | 'missing-default' | 'invalid-plugin' |
272
+ * 'meta-mismatch'`) so callers can route on it.
273
+ */
274
+ export declare class LazyPluginError extends LazyPluginError_base {
275
+ }
276
+ declare const PluginDependencyError_base: {
277
+ new (options?: import("@dxos/errors").BaseErrorOptions): {
278
+ cause?: unknown;
279
+ stack?: string;
280
+ name: "PluginDependencyError";
281
+ context: Record<string, unknown>;
282
+ readonly message: string;
283
+ readonly _tag: "PluginDependencyError";
284
+ };
285
+ isError(error: unknown): error is Error;
286
+ name: "PluginDependencyError";
287
+ is(error: unknown): error is BaseError;
288
+ wrap(options?: Omit<import("@dxos/errors").BaseErrorOptions, 'cause'> & {
289
+ ifTypeDiffers?: boolean;
290
+ }): (error: unknown) => {
291
+ cause?: unknown;
292
+ stack?: string;
293
+ name: "PluginDependencyError";
294
+ context: Record<string, unknown>;
295
+ readonly message: string;
296
+ readonly _tag: "PluginDependencyError";
297
+ };
298
+ extend<Name extends string = string>(name: Name, message?: string): any;
299
+ captureStackTrace(targetObject: object, constructorOpt?: Function): void;
300
+ prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
301
+ stackTraceLimit: number;
302
+ };
303
+ /**
304
+ * Tagged error for plugin-level dependency resolution failures.
305
+ *
306
+ * `context.id` is the plugin id the manager was acting on. `context.reason`
307
+ * discriminates the failure mode:
308
+ * - `'missing'` — declared dep is neither registered nor in the catalog.
309
+ * `context.missing` lists offending ids.
310
+ * - `'install-failed'` — dep was found in the catalog but `add()` failed.
311
+ * `cause` carries the original error.
312
+ * - `'cycle'` — closure walk detected a cycle. `context.path` is the cycle path.
313
+ * - `'core-dependent'` — cascade-disable would have to disable a core plugin.
314
+ * `context.coreDependent` is the blocking id.
315
+ */
316
+ export declare class PluginDependencyError extends PluginDependencyError_base {
317
+ }
318
+ /**
319
+ * Resolves a lazy plugin stub to its real plugin.
320
+ * Returns the plugin unchanged if it is not lazy. Failures surface as
321
+ * {@link LazyPluginError} with `context.reason` indicating the failure mode
322
+ * and (for loader failures) `cause` set to the original error.
323
+ */
324
+ export declare const resolveLazy: (plugin: Plugin) => Effect.Effect<Plugin, LazyPluginError>;
167
325
  export {};
168
326
  //# sourceMappingURL=plugin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../src/core/plugin.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAI5C,OAAO,KAAK,KAAK,eAAe,MAAM,oBAAoB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;AAC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CAAC,CAAC,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC;AAwBrE;;;;GAIG;AACH,MAAM,MAAM,UAAU,CAAC,CAAC,GAAG,IAAI,IAAI,MAAM,OAAO,CAAC;IAAE,OAAO,EAAE,aAAa,CAAC,CAAC,CAAC,CAAA;CAAE,CAAC,CAAC;AAKhF;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,IAAI,GAAI,CAAC,GAAG,IAAI,QAAQ,IAAI,UAAU,UAAU,CAAC,CAAC,CAAC,KAAG,aAAa,CAAC,CAAC,CAUjF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,MAAM,WAAY,MAAM,KAAG,OAA4B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAErE;;;;;GAKG;AACH,qBAAa,eAAgB,SAAQ,oBAAoE;CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAE5G;;;;;;;;;;;;GAYG;AACH,qBAAa,qBAAsB,SAAQ,0BAG1C;CAAG;AAEJ;;;;;GAKG;AACH,eAAO,MAAM,WAAW,WAAY,MAAM,KAAG,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,eAAe,CAwB9E,CAAC"}
@@ -0,0 +1,107 @@
1
+ import { Atom, type Registry as AtomRegistry } from '@effect-atom/atom-react';
2
+ import * as Effect from 'effect/Effect';
3
+ /**
4
+ * A registry plugin entry as seen by the plugin manager layer.
5
+ * Populated from the registry catalog; represents the latest available version of a plugin.
6
+ *
7
+ * Independently defined from @dxos/protocols PluginEntry — similar shape but not the same type.
8
+ * Implementations of {@link PluginProvider} (e.g. {@link EdgeRegistryPluginProvider})
9
+ * are responsible for mapping their wire-format entries to this shape.
10
+ */
11
+ export type Plugin = {
12
+ id: string;
13
+ name: string;
14
+ description?: string;
15
+ homePage?: string;
16
+ source?: string;
17
+ screenshots?: string[];
18
+ tags?: string[];
19
+ icon?: string;
20
+ iconHue?: string;
21
+ /**
22
+ * IDs of plugins this entry declares as runtime dependencies. Mirrors
23
+ * {@link Plugin.Meta.dependsOn}. Surfaced in the catalog so the manager can
24
+ * resolve and auto-install transitive deps before they are first loaded.
25
+ */
26
+ dependsOn?: string[];
27
+ /** URL to dynamic-import the latest version of this plugin module. */
28
+ moduleUrl: string;
29
+ /** GitHub repository slug, e.g. `owner/name`. Used to fetch version history. */
30
+ repo: string;
31
+ /**
32
+ * Latest known version string, e.g. `v1.2.0`.
33
+ * Corresponds to releaseTag in the wire-format PluginEntry; named `version` here
34
+ * because the plugin manager layer speaks versions, not release tags.
35
+ */
36
+ version: string;
37
+ };
38
+ /**
39
+ * A single installable version of a registry plugin.
40
+ */
41
+ export type PluginVersion = {
42
+ /** Version string, e.g. `v1.2.0`. */
43
+ tag: string;
44
+ /** URL to dynamic-import this specific version of the plugin module. */
45
+ moduleUrl: string;
46
+ /** Unix ms of when this version was published (optional; omitted when unknown). */
47
+ releasedAt?: number;
48
+ };
49
+ /**
50
+ * Abstraction over the plugin registry catalog backend.
51
+ * Implementations may call Edge, a local cache, or a stub.
52
+ *
53
+ * The interface itself is transport-agnostic; concrete implementations live
54
+ * alongside it in this package (see {@link EdgeRegistryPluginProvider}) so we
55
+ * avoid `app-framework ↔ edge-client` cycles, but they only need to satisfy
56
+ * this shape — callers can substitute their own.
57
+ */
58
+ export interface PluginProvider {
59
+ /**
60
+ * Returns all healthy registry plugins (latest version of each).
61
+ */
62
+ listPlugins(): Effect.Effect<readonly Plugin[], Error>;
63
+ /**
64
+ * Returns all known versions of a plugin identified by its GitHub repo slug.
65
+ * Until the backend implements a versions endpoint, implementations MUST
66
+ * return at least one entry representing the current/latest release.
67
+ */
68
+ listVersions(repo: string): Effect.Effect<readonly PluginVersion[], Error>;
69
+ /**
70
+ * Returns a single plugin entry for the given repo.
71
+ * If `version` is omitted, returns the latest.
72
+ * Fails if the specified version is not found.
73
+ */
74
+ getPlugin(repo: string, version?: string): Effect.Effect<Plugin, Error>;
75
+ }
76
+ /**
77
+ * Atomic snapshot of the registry catalog as observed by the host.
78
+ * Exposed via {@link Manager.plugins} so consumers can subscribe reactively
79
+ * (loading state, list contents, last error).
80
+ */
81
+ export type PluginsState = {
82
+ entries: readonly Plugin[];
83
+ loading: boolean;
84
+ error: Error | null;
85
+ };
86
+ /**
87
+ * Owns the cached registry catalog state and forwards `listVersions` / `getPlugin`
88
+ * calls to the underlying {@link PluginProvider}. Lives on the `PluginManager`
89
+ * (as `manager.pluginRegistry`) so consumers can reach it through the manager
90
+ * without a separate capability lookup.
91
+ *
92
+ * On construction the manager kicks off a background fetch via `provider.listPlugins()`
93
+ * and writes the result into the {@link plugins} atom. Subscribers see `loading: true`
94
+ * during the fetch and `loading: false` once it settles.
95
+ */
96
+ export declare class Manager {
97
+ #private;
98
+ readonly plugins: Atom.Writable<PluginsState>;
99
+ constructor(provider: PluginProvider | undefined, atomRegistry: AtomRegistry.Registry);
100
+ /** Forwards to the underlying provider. */
101
+ listPlugins(): Effect.Effect<readonly Plugin[], Error>;
102
+ /** Forwards to the underlying provider. */
103
+ listVersions(repo: string): Effect.Effect<readonly PluginVersion[], Error>;
104
+ /** Forwards to the underlying provider. */
105
+ getPlugin(repo: string, version?: string): Effect.Effect<Plugin, Error>;
106
+ }
107
+ //# sourceMappingURL=registry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../../src/core/registry.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,IAAI,EAAE,KAAK,QAAQ,IAAI,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC9E,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC;;;;;;;GAOG;AACH,MAAM,MAAM,MAAM,GAAG;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAA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C;IAG9C,YAAY,QAAQ,EAAE,cAAc,GAAG,SAAS,EAAE,YAAY,EAAE,YAAY,CAAC,QAAQ,EAmBpF;IAED,2CAA2C;IAC3C,WAAW,IAAI,MAAM,CAAC,MAAM,CAAC,SAAS,MAAM,EAAE,EAAE,KAAK,CAAC,CAErD;IAED,2CAA2C;IAC3C,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,SAAS,aAAa,EAAE,EAAE,KAAK,CAAC,CAEzE;IAED,2CAA2C;IAC3C,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAEtE;CACF"}
@@ -1,5 +1,42 @@
1
1
  import * as Effect from 'effect/Effect';
2
+ import { BaseError } from '@dxos/errors';
2
3
  import * as Plugin from './plugin';
4
+ import * as PluginAssetCache from './plugin-asset-cache';
5
+ declare const RemotePluginLoadError_base: {
6
+ new (options?: import("@dxos/errors").BaseErrorOptions): {
7
+ cause?: unknown;
8
+ stack?: string;
9
+ name: "RemotePluginLoadError";
10
+ context: Record<string, unknown>;
11
+ readonly message: string;
12
+ readonly _tag: "RemotePluginLoadError";
13
+ };
14
+ isError(error: unknown): error is Error;
15
+ name: "RemotePluginLoadError";
16
+ is(error: unknown): error is BaseError;
17
+ wrap(options?: Omit<import("@dxos/errors").BaseErrorOptions, 'cause'> & {
18
+ ifTypeDiffers?: boolean;
19
+ }): (error: unknown) => {
20
+ cause?: unknown;
21
+ stack?: string;
22
+ name: "RemotePluginLoadError";
23
+ context: Record<string, unknown>;
24
+ readonly message: string;
25
+ readonly _tag: "RemotePluginLoadError";
26
+ };
27
+ extend<Name extends string = string>(name: Name, message?: string): any;
28
+ captureStackTrace(targetObject: object, constructorOpt?: Function): void;
29
+ prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
30
+ stackTraceLimit: number;
31
+ };
32
+ /**
33
+ * Tagged error for any failure during remote plugin loading. Construction sites
34
+ * set `context.locator` and `context.reason` (one of `'invalid-locator' |
35
+ * 'manifest-error' | 'cache-error' | 'import-failed' | 'meta-missing' |
36
+ * 'meta-mismatch' | 'duplicate-id'`) so handlers can route on the failure mode.
37
+ */
38
+ export declare class RemotePluginLoadError extends RemotePluginLoadError_base {
39
+ }
3
40
  /**
4
41
  * Abstraction over key-value storage (defaults to localStorage).
5
42
  */
@@ -13,13 +50,78 @@ export type Storage = {
13
50
  export type Options = {
14
51
  storage?: Storage;
15
52
  key?: string;
53
+ /**
54
+ * Per-platform offline asset cache. Defaults to a no-op cache (no offline support).
55
+ */
56
+ cache?: PluginAssetCache.Cache;
57
+ };
58
+ /**
59
+ * Options for the preload entry point. Adds an optional progress hook so hosts
60
+ * can drive a boot-loader counter (`Loading plugins (3/12)…`) as remote plugin
61
+ * manifests resolve. Resolution order is *not* deterministic — each entry races
62
+ * its own network fetch — so callers should treat `loaded` as a count, not an
63
+ * index. Failures are still swallowed; `loaded` advances on both success and
64
+ * recoverable failure so the counter always reaches `total`.
65
+ */
66
+ export type PreloadOptions = Options & {
67
+ onPluginLoaded?: (loaded: number, total: number) => void;
16
68
  };
17
69
  /**
18
- * Preloads previously persisted remote plugins from storage.
70
+ * Persisted record of a remote plugin that has been loaded previously.
71
+ *
72
+ * `url` is the URL of the plugin manifest (`plugin.json`), not the entry module.
19
73
  */
20
- export declare const preload: (options?: Options) => Promise<Plugin.Plugin[]>;
74
+ export type RemotePluginEntry = {
75
+ id: string;
76
+ url: string;
77
+ /** Installed version string, e.g. `v1.0.0`. Populated after install from a community catalog entry. */
78
+ version?: string;
79
+ };
80
+ /**
81
+ * Returns true when the URL's hostname is the local host (localhost, 127.0.0.1, or ::1).
82
+ */
83
+ export declare const isLocalUrl: (locator: string) => boolean;
84
+ /**
85
+ * Returns the list of remote plugin entries previously persisted by {@link make}.
86
+ * Useful for UI code that needs to know which loaded plugins were installed from a URL
87
+ * (e.g. to surface a tag on remote or localhost-hosted plugins).
88
+ */
89
+ export declare const getRemoteEntries: (options?: Options) => readonly RemotePluginEntry[];
90
+ /**
91
+ * Updates the persisted installed version for an already-stored remote plugin entry.
92
+ * Does nothing if the plugin has not been persisted yet.
93
+ */
94
+ export declare const setInstalledVersion: (id: string, version: string, options?: Options) => void;
95
+ /**
96
+ * Returns the installed version string for the given plugin id, or `undefined` if
97
+ * the plugin was installed without version tracking (legacy install) or is not found.
98
+ */
99
+ export declare const getInstalledVersion: (id: string, options?: Options) => string | undefined;
100
+ /**
101
+ * Preloads previously persisted remote plugins from storage. Per-entry failures
102
+ * are logged and swallowed — the returned effect always succeeds with whichever
103
+ * plugins loaded cleanly, so a single bad entry can't block the host's startup.
104
+ */
105
+ export declare const preload: (options?: PreloadOptions) => Effect.Effect<Plugin.Plugin[], never>;
21
106
  /**
22
107
  * Creates a plugin loader that resolves built-in plugins by ID or loads remote plugins from URLs.
108
+ *
109
+ * Remote URLs must point at a plugin manifest (`plugin.json`). The loader fetches the manifest,
110
+ * eagerly persists every declared asset via the configured `PluginAssetCache`, then dynamic-imports
111
+ * the entry module.
112
+ */
113
+ export declare const make: (builtinPlugins: Plugin.Plugin[], options?: Options) => (locator: string) => Effect.Effect<{
114
+ plugin: Plugin.Plugin;
115
+ dev?: boolean;
116
+ }, RemotePluginLoadError>;
117
+ /**
118
+ * Removes a previously installed remote plugin: drops the persisted entry, evicts cached
119
+ * assets, and removes any stylesheet `<link>` tags that {@link loadFromManifest} appended.
120
+ *
121
+ * Cache eviction failures are logged and swallowed — the persisted entry has already been
122
+ * dropped so the user-visible state is consistent regardless of whether the platform
123
+ * cache cooperated.
23
124
  */
24
- export declare const make: (builtinPlugins: Plugin.Plugin[], options?: Options) => (locator: string) => Effect.Effect<Plugin.Plugin, Error>;
125
+ export declare const uninstall: (pluginId: string, options?: Options) => Effect.Effect<void, never>;
126
+ export {};
25
127
  //# sourceMappingURL=url-loader.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"url-loader.d.ts","sourceRoot":"","sources":["../../../../src/core/url-loader.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAIxC,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AAInC;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG;IACpB,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IAChC,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACvC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,CAAC;AAmEF;;GAEG;AACH,eAAO,MAAM,OAAO,GAAU,UAAS,OAAY,KAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,CAoB5E,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,IAAI,GAAI,gBAAgB,MAAM,CAAC,MAAM,EAAE,EAAE,UAAS,OAAY,MAIjE,SAAS,MAAM,KAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,KAAK,CAsB7D,CAAC"}
1
+ {"version":3,"file":"url-loader.d.ts","sourceRoot":"","sources":["../../../../src/core/url-loader.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGzC,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,OAAO,KAAK,gBAAgB,MAAM,sBAAsB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKzD;;;;;GAKG;AACH,qBAAa,qBAAsB,SAAQ,0BAAyE;CAAG;AAEvH;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG;IACpB,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,C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AAE,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,OAAO,CAAA;CAAE,EAAE,qBAAqB,CA0BxG,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,SAAS,aAAc,MAAM,YAAW,OAAO,KAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAczF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/helpers.ts"],"names":[],"mappings":"AAIA,KAAK,cAAc,GAAG;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;CACtB,CAAC;AAEF;;GAEG;AAEH,eAAO,MAAM,eAAe,GAAI,CAAC,SAAS,cAAc,EAAE,OAAO,CAAC,EAAE,KAAG,CAAC,EA+BvE,CAAC"}
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/helpers.ts"],"names":[],"mappings":"AAIA,KAAK,cAAc,GAAG;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;CACtB,CAAC;AAEF;;GAEG;AAEH,eAAO,MAAM,eAAe,GAAI,CAAC,SAAS,cAAc,SAAS,CAAC,EAAE,KAAG,CAAC,EA+BvE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"capability.d.ts","sourceRoot":"","sources":["../../../../../src/plugin-operation/history/capability.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,KAAK,cAAc,MAAM,mBAAmB,CAAC;AACpD,OAAO,KAAK,YAAY,MAAM,iBAAiB,CAAC;;AAMhD,wBAkBE"}
1
+ {"version":3,"file":"capability.d.ts","sourceRoot":"","sources":["../../../../../src/plugin-operation/history/capability.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,KAAK,cAAc,MAAM,mBAAmB,CAAC;AACpD,OAAO,KAAK,YAAY,MAAM,iBAAiB,CAAC"}
@@ -1,27 +1,27 @@
1
1
  import { BaseError } from '@dxos/errors';
2
2
  declare const EmptyHistoryError_base: {
3
3
  new (options?: import("@dxos/errors").BaseErrorOptions): {
4
+ cause?: unknown;
5
+ stack?: string;
4
6
  name: "EmptyHistoryError";
5
7
  context: Record<string, unknown>;
6
8
  readonly message: string;
7
9
  readonly _tag: "EmptyHistoryError";
8
- stack?: string;
9
- cause?: unknown;
10
10
  };
11
+ isError(error: unknown): error is Error;
11
12
  name: "EmptyHistoryError";
12
13
  is(error: unknown): error is BaseError;
13
- wrap(options?: Omit<import("@dxos/errors").BaseErrorOptions, "cause"> & {
14
+ wrap(options?: Omit<import("@dxos/errors").BaseErrorOptions, 'cause'> & {
14
15
  ifTypeDiffers?: boolean;
15
16
  }): (error: unknown) => {
17
+ cause?: unknown;
18
+ stack?: string;
16
19
  name: "EmptyHistoryError";
17
20
  context: Record<string, unknown>;
18
21
  readonly message: string;
19
22
  readonly _tag: "EmptyHistoryError";
20
- stack?: string;
21
- cause?: unknown;
22
23
  };
23
24
  extend<Name extends string = string>(name: Name, message?: string): any;
24
- isError(error: unknown): error is Error;
25
25
  captureStackTrace(targetObject: object, constructorOpt?: Function): void;
26
26
  prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
27
27
  stackTraceLimit: number;
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../../src/plugin-operation/history/errors.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;;;;;;;;;;;;;qBAG23B,CAAC;;;;;;;;;;;;;;;AADr6B,qBAAa,iBAAkB,SAAQ,sBAAuE;CAAG"}
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../../src/plugin-operation/history/errors.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEzC,qBAAa,iBAAkB,SAAQ,sBAAuE;CAAG"}
@@ -1,5 +1,5 @@
1
1
  import * as Effect from 'effect/Effect';
2
- import { type OperationInvoker } from '@dxos/operation';
2
+ import { OperationInvoker } from '@dxos/operation';
3
3
  import type { UndoRegistry } from './undo-registry';
4
4
  /**
5
5
  * HistoryTracker interface - tracks operation history and provides undo.
@@ -1 +1 @@
1
- {"version":3,"file":"history-tracker.d.ts","sourceRoot":"","sources":["../../../../../src/plugin-operation/history/history-tracker.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAMxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAQpD;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACvC,WAAW,EAAE,MAAM,OAAO,CAAC;QAAE,KAAK,CAAC,EAAE,KAAK,CAAA;KAAE,CAAC,CAAC;IAC9C,OAAO,EAAE,MAAM,OAAO,CAAC;CACxB;AAMD;;GAEG;AACH,eAAO,MAAM,IAAI,GACf,SAAS,gBAAgB,CAAC,wBAAwB,EAClD,cAAc,YAAY,KACzB,cAqFF,CAAC"}
1
+ {"version":3,"file":"history-tracker.d.ts","sourceRoot":"","sources":["../../../../../src/plugin-operation/history/history-tracker.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAMnD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAQpD;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACvC,WAAW,EAAE,MAAM,OAAO,CAAC;QAAE,KAAK,CAAC,EAAE,KAAK,CAAA;KAAE,CAAC,CAAC;IAC9C,OAAO,EAAE,MAAM,OAAO,CAAC;CACxB;AAMD;;GAEG;AACH,eAAO,MAAM,IAAI,YACN,gBAAgB,CAAC,wBAAwB,gBACpC,YAAY,KACzB,cAqFF,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { Operation } from '@dxos/operation';
1
+ import type { Operation } from '@dxos/compute';
2
2
  /**
3
3
  * History entry stored by HistoryTracker.
4
4
  */
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/plugin-operation/history/types.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB,SAAS,EAAE,SAAS,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IAC1C,KAAK,EAAE,GAAG,CAAC;IACX,MAAM,EAAE,GAAG,CAAC;IACZ,OAAO,EAAE,SAAS,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IACxC,YAAY,EAAE,GAAG,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/plugin-operation/history/types.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE/C;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB,SAAS,EAAE,SAAS,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IAC1C,KAAK,EAAE,GAAG,CAAC;IACX,MAAM,EAAE,GAAG,CAAC;IACZ,OAAO,EAAE,SAAS,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IACxC,YAAY,EAAE,GAAG,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { Operation } from '@dxos/operation';
1
+ import type { Operation } from '@dxos/compute';
2
2
  /**
3
3
  * Label type for translatable text (canonical definition in @dxos/app-toolkit).
4
4
  */
@@ -1 +1 @@
1
- {"version":3,"file":"undo-mapping.d.ts","sourceRoot":"","sources":["../../../../../src/plugin-operation/history/undo-mapping.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD;;GAEG;AACH,KAAK,KAAK,GAAG,MAAM,GAAG,CAAC,MAAM,EAAE;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAEtF;;GAEG;AACH,MAAM,MAAM,OAAO,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,GAAG,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;AAElF;;GAEG;AACH,MAAM,MAAM,QAAQ,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,CAAC,UAAU,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;AAEnF;;;GAGG;AACH,MAAM,MAAM,eAAe,CAAC,EAAE,SAAS,SAAS,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,IACjE,KAAK,GACL,CAAC,CAAC,KAAK,EAAE,OAAO,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,CAAC,KAAK,KAAK,CAAC,CAAC;AAE1D;;;;;;GAMG;AACH,MAAM,WAAW,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AO,CAAC,EAAE,eAAe,CAAC,EAAE,CAAC,CAAC;CAC/B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,eAAO,MAAM,IAAI,GAAI,EAAE,SAAS,SAAS,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,GAAG,SAAS,SAAS,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,SACjG,gBAAgB,CAAC,EAAE,EAAE,GAAG,CAAC,KAC/B,WAAW,CAAC,EAAE,EAAE,GAAG,CAAU,CAAC;AAEjC;;GAEG;AACH,eAAO,MAAM,cAAc,GAAI,EAAE,SAAS,SAAS,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,WAC7D,eAAe,CAAC,EAAE,CAAC,GAAG,SAAS,SACjC,OAAO,CAAC,EAAE,CAAC,UACV,QAAQ,CAAC,EAAE,CAAC,KACnB,KAAK,GAAG,SAQV,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { Operation } from '@dxos/operation';
1
+ import type { Operation } from '@dxos/compute';
2
2
  import type * as UndoMapping from './undo-mapping';
3
3
  /**
4
4
  * Lookup result from UndoRegistry.
@@ -1 +1 @@
1
- {"version":3,"file":"undo-registry.d.ts","sourceRoot":"","sources":["../../../../../src/plugin-operation/history/undo-registry.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,OAAO,KAAK,KAAK,WAAW,MAAM,gBAAgB,CAAC;AAMnD;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,OAAO,EAAE,SAAS,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IACxC,mEAAmE;IACnE,aAAa,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,KAAK,GAAG,GAAG,SAAS,CAAC;IAC5D,8DAA8D;IAC9D,OAAO,CAAC,EAAE,WAAW,CAAC,eAAe,CAAC,SAAS,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;CACvE,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,CAAC,SAAS,EAAE,SAAS,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,KAAK,iBAAiB,GAAG,SAAS,CAAC;CACtF;AAMD;;GAEG;AACH,eAAO,MAAM,IAAI,GAAI,aAAa,MAAM,WAAW,CAAC,WAAW,EAAE,KAAG,YAgBnE,CAAC"}
1
+ {"version":3,"file":"undo-registry.d.ts","sourceRoot":"","sources":["../../../../../src/plugin-operation/history/undo-registry.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE/C,OAAO,KAAK,KAAK,WAAW,MAAM,gBAAgB,CAAC;AAMnD;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,OAAO,EAAE,SAAS,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IACxC,mEAAmE;IACnE,aAAa,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,KAAK,GAAG,GAAG,SAAS,CAAC;IAC5D,8DAA8D;IAC9D,OAAO,CAAC,EAAE,WAAW,CAAC,eAAe,CAAC,SAAS,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;CACvE,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,CAAC,SAAS,EAAE,SAAS,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,KAAK,iBAAiB,GAAG,SAAS,CAAC;CACtF;AAMD;;GAEG;AACH,eAAO,MAAM,IAAI,gBAAiB,MAAM,WAAW,CAAC,WAAW,EAAE,KAAG,YAgBnE,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import * as Effect from 'effect/Effect';
2
2
  import { OperationInvoker } from '@dxos/operation';
3
3
  import { Capability, Plugin } from '../core';
4
- declare const _default: (props: void) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<OperationInvoker.OperationInvoker>>, Error, Capability.Service | Plugin.Service>;
4
+ declare const _default: (props: void) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<OperationInvoker.OperationInvoker>>, Error, Plugin.Service | Capability.Service>;
5
5
  export default _default;
6
6
  //# sourceMappingURL=invoker-capability.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"invoker-capability.d.ts","sourceRoot":"","sources":["../../../../src/plugin-operation/invoker-capability.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAuB,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAGxE,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;;AAM7C,wBAsCE"}
1
+ {"version":3,"file":"invoker-capability.d.ts","sourceRoot":"","sources":["../../../../src/plugin-operation/invoker-capability.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAGnD,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../../src/plugin-operation/meta.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,SAAS,CAAC;AAEtC,eAAO,MAAM,IAAI,EAAE,MAAM,CAAC,IAIzB,CAAC"}
1
+ {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../../src/plugin-operation/meta.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,SAAS,CAAC;AAEtC,eAAO,MAAM,IAAI,EAAE,MAAM,CAAC,IAKzB,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import * as Effect from 'effect/Effect';
2
- import { Operation, type OperationInvoker } from '@dxos/operation';
2
+ import { Operation } from '@dxos/compute';
3
+ import { OperationInvoker } from '@dxos/operation';
3
4
  export declare const Compute: Operation.Definition<{
4
5
  readonly value: number;
5
6
  }, {
@@ -1 +1 @@
1
- {"version":3,"file":"testing.d.ts","sourceRoot":"","sources":["../../../../src/plugin-operation/testing.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAMxC,OAAO,EAAE,SAAS,EAAE,KAAK,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAMnE,eAAO,MAAM,OAAO;;;;SAIlB,CAAC;AAEH,eAAO,MAAM,YAAY;;;;SAIvB,CAAC;AAEH,eAAO,MAAM,QAAQ;;;;SAInB,CAAC;AAEH,eAAO,MAAM,GAAG,gEAId,CAAC;AAEH,eAAO,MAAM,UAAU,yCAIrB,CAAC;AAMH,eAAO,MAAM,cAAc;;;;UAK1B,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;;UAE/B,CAAC;AAEF,eAAO,MAAM,eAAe;;;;UAE3B,CAAC;AAEF,eAAO,MAAM,UAAU,uFAA0E,CAAC;AAElG,eAAO,MAAM,iBAAiB,gEAAqE,CAAC;AAMpG;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,4BAA4B;IAC5B,QAAQ,CAAC,MAAM,EAAE,gBAAgB,CAAC,eAAe,EAAE,CAAC;IACpD,+CAA+C;IAC/C,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACtD,uCAAuC;IACvC,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;CAC9B;AAED;;;GAGG;AACH,eAAO,MAAM,oBAAoB,GAAI,SAAS,gBAAgB,CAAC,gBAAgB,KAAG,MAAM,CAAC,MAAM,CAAC,cAAc,CAoD1G,CAAC;AAEL;;;GAGG;AACH,eAAO,MAAM,SAAS,GAAI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 -1,6 +1,6 @@
1
1
  import * as Effect from 'effect/Effect';
2
2
  import { Capabilities } from '../common';
3
3
  import { Capability, Plugin } from '../core';
4
- declare const _default: (props: void) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<Capabilities.ManagedRuntime>>, Error, Capability.Service | Plugin.Service>;
4
+ declare const _default: (props: void) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<Capabilities.ManagedRuntime>>, Error, Plugin.Service | Capability.Service>;
5
5
  export default _default;
6
6
  //# sourceMappingURL=capability.d.ts.map