@dxos/app-framework 0.8.2-main.f11618f → 0.8.2-main.fbd8ed0

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 (310) hide show
  1. package/dist/lib/browser/{app-graph-builder-OHM2Z6YQ.mjs → app-graph-builder-6E7NCZ77.mjs} +23 -23
  2. package/dist/lib/browser/app-graph-builder-6E7NCZ77.mjs.map +7 -0
  3. package/dist/lib/browser/{chunk-DVNSCQJ5.mjs → chunk-2KSDY3EZ.mjs} +297 -270
  4. package/dist/lib/browser/chunk-2KSDY3EZ.mjs.map +7 -0
  5. package/dist/lib/browser/{chunk-X2YC645Z.mjs → chunk-K3HOLGVH.mjs} +38 -26
  6. package/dist/lib/browser/chunk-K3HOLGVH.mjs.map +7 -0
  7. package/dist/lib/browser/{chunk-SFPT4Z2C.mjs → chunk-KPRHX73H.mjs} +9 -9
  8. package/dist/lib/browser/chunk-KPRHX73H.mjs.map +7 -0
  9. package/dist/lib/browser/index.mjs +8 -8
  10. package/dist/lib/browser/{intent-dispatcher-J7QIFHLO.mjs → intent-dispatcher-VGUJBPPN.mjs} +2 -2
  11. package/dist/lib/browser/{intent-resolver-QV5MDMDV.mjs → intent-resolver-QLFZY5R5.mjs} +3 -3
  12. package/dist/lib/browser/meta.json +1 -1
  13. package/dist/lib/browser/{store-XMPVLJOQ.mjs → store-QGVXOY4T.mjs} +7 -6
  14. package/dist/lib/browser/store-QGVXOY4T.mjs.map +7 -0
  15. package/dist/lib/browser/testing/index.mjs +7 -3
  16. package/dist/lib/browser/testing/index.mjs.map +3 -3
  17. package/dist/lib/browser/worker.mjs +3 -3
  18. package/dist/lib/node/app-graph-builder-4IWMG67O.cjs +146 -0
  19. package/dist/lib/node/app-graph-builder-4IWMG67O.cjs.map +7 -0
  20. package/dist/lib/node/{chunk-I3CJYEBC.cjs → chunk-2EBZ2ICH.cjs} +137 -110
  21. package/dist/lib/node/chunk-2EBZ2ICH.cjs.map +7 -0
  22. package/dist/lib/node/{chunk-5UOVF3OR.cjs → chunk-7J66KH2T.cjs} +78 -66
  23. package/dist/lib/node/chunk-7J66KH2T.cjs.map +7 -0
  24. package/dist/lib/node/{chunk-JUSEAFDU.cjs → chunk-JQMNABMK.cjs} +4 -4
  25. package/dist/lib/node/chunk-JQMNABMK.cjs.map +7 -0
  26. package/dist/lib/node/index.cjs +80 -80
  27. package/dist/lib/node/{intent-dispatcher-FQPJNKIZ.cjs → intent-dispatcher-TASJBG5M.cjs} +8 -8
  28. package/dist/lib/node/{intent-dispatcher-FQPJNKIZ.cjs.map → intent-dispatcher-TASJBG5M.cjs.map} +2 -2
  29. package/dist/lib/node/{intent-resolver-PBAOGJS6.cjs → intent-resolver-5CG5NIJY.cjs} +12 -12
  30. package/dist/lib/node/meta.json +1 -1
  31. package/dist/lib/node/{store-N7JLYYDI.cjs → store-IF3UR2KA.cjs} +10 -9
  32. package/dist/lib/node/store-IF3UR2KA.cjs.map +7 -0
  33. package/dist/lib/node/testing/index.cjs +14 -9
  34. package/dist/lib/node/testing/index.cjs.map +3 -3
  35. package/dist/lib/node/worker.cjs +39 -39
  36. package/dist/lib/node/worker.cjs.map +1 -1
  37. package/dist/lib/node-esm/{app-graph-builder-OMH534A4.mjs → app-graph-builder-LYCG5CO3.mjs} +23 -23
  38. package/dist/lib/node-esm/app-graph-builder-LYCG5CO3.mjs.map +7 -0
  39. package/dist/lib/node-esm/{chunk-GSDBF2CK.mjs → chunk-BOEJMAVK.mjs} +297 -270
  40. package/dist/lib/node-esm/chunk-BOEJMAVK.mjs.map +7 -0
  41. package/dist/lib/node-esm/{chunk-QHXUTJHE.mjs → chunk-ISNBS46Y.mjs} +38 -26
  42. package/dist/lib/node-esm/chunk-ISNBS46Y.mjs.map +7 -0
  43. package/dist/lib/node-esm/{chunk-PHOUQACM.mjs → chunk-JUJF5L4G.mjs} +9 -9
  44. package/dist/lib/node-esm/chunk-JUJF5L4G.mjs.map +7 -0
  45. package/dist/lib/node-esm/index.mjs +8 -8
  46. package/dist/lib/node-esm/{intent-dispatcher-QDUGA7NT.mjs → intent-dispatcher-ZUSNX2OY.mjs} +2 -2
  47. package/dist/lib/node-esm/{intent-resolver-P7TC5RBD.mjs → intent-resolver-NGDHUKDD.mjs} +3 -3
  48. package/dist/lib/node-esm/meta.json +1 -1
  49. package/dist/lib/node-esm/{store-M2BYJL6K.mjs → store-NCRSE25X.mjs} +7 -6
  50. package/dist/lib/node-esm/store-NCRSE25X.mjs.map +7 -0
  51. package/dist/lib/node-esm/testing/index.mjs +7 -3
  52. package/dist/lib/node-esm/testing/index.mjs.map +3 -3
  53. package/dist/lib/node-esm/worker.mjs +3 -3
  54. package/dist/types/src/App.d.ts +3 -1
  55. package/dist/types/src/App.d.ts.map +1 -1
  56. package/dist/types/src/common/capabilities.d.ts +6 -196
  57. package/dist/types/src/common/capabilities.d.ts.map +1 -1
  58. package/dist/types/src/common/collaboration.d.ts +14 -7
  59. package/dist/types/src/common/collaboration.d.ts.map +1 -1
  60. package/dist/types/src/common/events.d.ts.map +1 -1
  61. package/dist/types/src/common/file.d.ts +7 -7
  62. package/dist/types/src/common/file.d.ts.map +1 -1
  63. package/dist/types/src/common/layout.d.ts +163 -163
  64. package/dist/types/src/common/layout.d.ts.map +1 -1
  65. package/dist/types/src/common/surface.d.ts.map +1 -1
  66. package/dist/types/src/common/translations.d.ts +7 -7
  67. package/dist/types/src/common/translations.d.ts.map +1 -1
  68. package/dist/types/src/core/capabilities.d.ts +28 -13
  69. package/dist/types/src/core/capabilities.d.ts.map +1 -1
  70. package/dist/types/src/core/events.d.ts.map +1 -1
  71. package/dist/types/src/core/manager.d.ts +6 -3
  72. package/dist/types/src/core/manager.d.ts.map +1 -1
  73. package/dist/types/src/core/plugin.d.ts +2 -2
  74. package/dist/types/src/core/plugin.d.ts.map +1 -1
  75. package/dist/types/src/helpers.d.ts.map +1 -1
  76. package/dist/types/src/playground/generator/generator.d.ts.map +1 -1
  77. package/dist/types/src/playground/logger/schema.d.ts +6 -6
  78. package/dist/types/src/playground/logger/schema.d.ts.map +1 -1
  79. package/dist/types/src/plugin-intent/actions.d.ts +14 -14
  80. package/dist/types/src/plugin-intent/actions.d.ts.map +1 -1
  81. package/dist/types/src/plugin-intent/intent-dispatcher.d.ts +3 -3
  82. package/dist/types/src/plugin-intent/intent-dispatcher.d.ts.map +1 -1
  83. package/dist/types/src/plugin-intent/intent.d.ts +14 -20
  84. package/dist/types/src/plugin-intent/intent.d.ts.map +1 -1
  85. package/dist/types/src/plugin-settings/actions.d.ts +10 -10
  86. package/dist/types/src/plugin-settings/actions.d.ts.map +1 -1
  87. package/dist/types/src/plugin-settings/app-graph-builder.d.ts +2 -195
  88. package/dist/types/src/plugin-settings/app-graph-builder.d.ts.map +1 -1
  89. package/dist/types/src/plugin-settings/store.d.ts +2 -2
  90. package/dist/types/src/plugin-settings/store.d.ts.map +1 -1
  91. package/dist/types/src/react/IntentContext.d.ts.map +1 -1
  92. package/dist/types/src/react/Surface.d.ts +2 -2
  93. package/dist/types/src/react/Surface.d.ts.map +1 -1
  94. package/dist/types/src/react/useCapabilities.d.ts +2 -2
  95. package/dist/types/src/react/useCapabilities.d.ts.map +1 -1
  96. package/dist/types/src/react/useIntentResolver.d.ts.map +1 -1
  97. package/dist/types/src/testing/withPluginManager.d.ts +5 -2
  98. package/dist/types/src/testing/withPluginManager.d.ts.map +1 -1
  99. package/dist/types/src/testing/withPluginManager.stories.d.ts.map +1 -1
  100. package/dist/types/tsconfig.tsbuildinfo +1 -1
  101. package/package.json +25 -20
  102. package/src/App.tsx +14 -2
  103. package/src/common/capabilities.ts +7 -4
  104. package/src/common/collaboration.ts +11 -8
  105. package/src/common/file.ts +7 -7
  106. package/src/common/layout.ts +148 -136
  107. package/src/common/translations.ts +7 -7
  108. package/src/core/capabilities.test.ts +55 -36
  109. package/src/core/capabilities.ts +77 -57
  110. package/src/core/manager.test.ts +19 -19
  111. package/src/core/manager.ts +14 -6
  112. package/src/core/plugin.ts +2 -2
  113. package/src/playground/generator/generator.ts +4 -4
  114. package/src/playground/logger/schema.ts +5 -5
  115. package/src/playground/playground.stories.tsx +1 -1
  116. package/src/plugin-intent/actions.ts +9 -9
  117. package/src/plugin-intent/intent-dispatcher.test.ts +23 -42
  118. package/src/plugin-intent/intent-dispatcher.ts +7 -11
  119. package/src/plugin-intent/intent.ts +22 -20
  120. package/src/plugin-settings/actions.ts +8 -8
  121. package/src/plugin-settings/app-graph-builder.ts +129 -94
  122. package/src/plugin-settings/store.ts +20 -17
  123. package/src/react/Surface.stories.tsx +1 -1
  124. package/src/react/Surface.tsx +3 -3
  125. package/src/react/useCapabilities.ts +9 -19
  126. package/src/testing/withPluginManager.stories.tsx +0 -1
  127. package/src/testing/withPluginManager.tsx +11 -3
  128. package/tsconfig.json +3 -0
  129. package/typedoc/assets/navigation.js +1 -1
  130. package/typedoc/assets/search.js +1 -1
  131. package/typedoc/classes/CollaborationActions.InsertContent.html +280 -241
  132. package/typedoc/classes/ErrorBoundary.html +6 -6
  133. package/typedoc/classes/IntentAction.ShowUndo.html +125 -125
  134. package/typedoc/classes/IntentAction.Track.html +239 -239
  135. package/typedoc/classes/LayoutAction.AddToast.html +163 -163
  136. package/typedoc/classes/LayoutAction.Close.html +352 -352
  137. package/typedoc/classes/LayoutAction.Expose.html +238 -238
  138. package/typedoc/classes/LayoutAction.Open.html +904 -748
  139. package/typedoc/classes/LayoutAction.RevertWorkspace.html +241 -241
  140. package/typedoc/classes/LayoutAction.ScrollIntoView.html +280 -280
  141. package/typedoc/classes/LayoutAction.Set.html +436 -358
  142. package/typedoc/classes/LayoutAction.SetLayoutMode.html +469 -391
  143. package/typedoc/classes/LayoutAction.SwitchWorkspace.html +238 -238
  144. package/typedoc/classes/LayoutAction.UpdateComplementary.html +358 -358
  145. package/typedoc/classes/LayoutAction.UpdateDialog.html +553 -475
  146. package/typedoc/classes/LayoutAction.UpdateLayout.html +281 -281
  147. package/typedoc/classes/LayoutAction.UpdatePopover.html +826 -826
  148. package/typedoc/classes/LayoutAction.UpdateSidebar.html +397 -319
  149. package/typedoc/classes/Plugin.html +3 -3
  150. package/typedoc/classes/PluginContext.html +38 -0
  151. package/typedoc/classes/PluginManager.html +17 -16
  152. package/typedoc/classes/PluginModule.html +9 -9
  153. package/typedoc/classes/SettingsAction.Open.html +199 -199
  154. package/typedoc/classes/SettingsAction.OpenPluginRegistry.html +124 -124
  155. package/typedoc/functions/Events.createStateEvent.html +2 -2
  156. package/typedoc/functions/IntentPlugin.html +1 -1
  157. package/typedoc/functions/SettingsPlugin.html +1 -1
  158. package/typedoc/functions/allOf.html +2 -2
  159. package/typedoc/functions/chain.html +2 -2
  160. package/typedoc/functions/contributes.html +2 -2
  161. package/typedoc/functions/createApp.html +2 -2
  162. package/typedoc/functions/createDispatcher.html +3 -3
  163. package/typedoc/functions/createIntent.html +3 -3
  164. package/typedoc/functions/createResolver.html +2 -2
  165. package/typedoc/functions/createSurface.html +2 -2
  166. package/typedoc/functions/defineCapability.html +2 -2
  167. package/typedoc/functions/defineEvent.html +2 -2
  168. package/typedoc/functions/defineModule.html +2 -2
  169. package/typedoc/functions/definePlugin.html +2 -2
  170. package/typedoc/functions/eventKey.html +2 -2
  171. package/typedoc/functions/getEvents.html +2 -2
  172. package/typedoc/functions/isAllOf.html +2 -2
  173. package/typedoc/functions/isOneOf.html +2 -2
  174. package/typedoc/functions/isSurfaceAvailable.html +2 -2
  175. package/typedoc/functions/lazy.html +2 -2
  176. package/typedoc/functions/oneOf.html +2 -2
  177. package/typedoc/functions/useAppGraph.html +1 -1
  178. package/typedoc/functions/useCapabilities.html +3 -3
  179. package/typedoc/functions/useCapability.html +3 -3
  180. package/typedoc/functions/useIntentDispatcher.html +1 -1
  181. package/typedoc/functions/useIntentResolver.html +1 -1
  182. package/typedoc/functions/useLayout.html +1 -1
  183. package/typedoc/functions/usePluginManager.html +2 -2
  184. package/typedoc/hierarchy.html +1 -1
  185. package/typedoc/index.html +2 -2
  186. package/typedoc/interfaces/LayoutAction.Toast.html +2 -2
  187. package/typedoc/modules/Capabilities.html +1 -1
  188. package/typedoc/modules/CollaborationActions.html +1 -1
  189. package/typedoc/modules/Events.html +1 -1
  190. package/typedoc/modules/IntentAction.html +1 -1
  191. package/typedoc/modules/LayoutAction.html +2 -2
  192. package/typedoc/modules/SettingsAction.html +1 -1
  193. package/typedoc/modules.html +1 -1
  194. package/typedoc/types/ActivationEvent.html +3 -3
  195. package/typedoc/types/ActivationEvents.html +2 -2
  196. package/typedoc/types/AnyCapability.html +1 -1
  197. package/typedoc/types/AnyIntent.html +1 -1
  198. package/typedoc/types/AnyIntentChain.html +1 -1
  199. package/typedoc/types/AnyIntentEffectResult.html +1 -1
  200. package/typedoc/types/AnyIntentResolver.html +1 -1
  201. package/typedoc/types/AnyIntentResult.html +1 -1
  202. package/typedoc/types/Capabilities.FileUploader.html +1 -1
  203. package/typedoc/types/Capabilities.IntentResolver.html +1 -1
  204. package/typedoc/types/Capabilities.Layout.html +1 -1
  205. package/typedoc/types/Capabilities.Metadata.html +1 -1
  206. package/typedoc/types/Capabilities.ReactContext.html +1 -1
  207. package/typedoc/types/Capabilities.ReactRoot.html +1 -1
  208. package/typedoc/types/Capabilities.ReactSurface.html +1 -1
  209. package/typedoc/types/Capabilities.Settings.html +2 -2
  210. package/typedoc/types/Capability.html +5 -5
  211. package/typedoc/types/CreateAppOptions.html +3 -2
  212. package/typedoc/types/FileInfo.html +1 -1
  213. package/typedoc/types/Intent.html +6 -10
  214. package/typedoc/types/IntentChain.html +3 -3
  215. package/typedoc/types/IntentContext.html +2 -2
  216. package/typedoc/types/IntentData.html +1 -1
  217. package/typedoc/types/IntentDispatcher.html +2 -2
  218. package/typedoc/types/IntentDispatcherResult.html +2 -2
  219. package/typedoc/types/IntentEffectDefinition.html +2 -2
  220. package/typedoc/types/IntentEffectResult.html +6 -6
  221. package/typedoc/types/IntentParams.html +2 -2
  222. package/typedoc/types/IntentResolver.html +2 -2
  223. package/typedoc/types/IntentResultData.html +1 -1
  224. package/typedoc/types/IntentSchema.html +1 -1
  225. package/typedoc/types/IntentUndo.html +2 -2
  226. package/typedoc/types/InterfaceDef.html +3 -3
  227. package/typedoc/types/Label.html +1 -1
  228. package/typedoc/types/NodeSerializer.html +3 -3
  229. package/typedoc/types/PluginManagerOptions.html +3 -2
  230. package/typedoc/types/PluginMeta.html +9 -9
  231. package/typedoc/types/PromiseIntentDispatcher.html +2 -2
  232. package/typedoc/types/PromiseIntentUndo.html +2 -2
  233. package/typedoc/types/Resource.html +1 -1
  234. package/typedoc/types/ResourceKey.html +1 -1
  235. package/typedoc/types/ResourceLanguage.html +1 -1
  236. package/typedoc/types/SerializedNode.html +2 -2
  237. package/typedoc/types/SurfaceComponent.html +2 -2
  238. package/typedoc/types/SurfaceDefinition.html +2 -2
  239. package/typedoc/types/SurfaceProps.html +2 -2
  240. package/typedoc/variables/Capabilities.AppGraph.html +1 -1
  241. package/typedoc/variables/Capabilities.AppGraphBuilder.html +1 -1
  242. package/typedoc/variables/Capabilities.AppGraphSerializer.html +1 -1
  243. package/typedoc/variables/Capabilities.ArtifactDefinition.html +1 -1
  244. package/typedoc/variables/Capabilities.FileUploader.html +1 -1
  245. package/typedoc/variables/Capabilities.IntentDispatcher.html +1 -1
  246. package/typedoc/variables/Capabilities.IntentResolver.html +1 -1
  247. package/typedoc/variables/Capabilities.Layout.html +1 -1
  248. package/typedoc/variables/Capabilities.Metadata.html +1 -1
  249. package/typedoc/variables/Capabilities.Null.html +1 -1
  250. package/typedoc/variables/Capabilities.PluginManager.html +1 -1
  251. package/typedoc/variables/Capabilities.ReactContext.html +1 -1
  252. package/typedoc/variables/Capabilities.ReactRoot.html +1 -1
  253. package/typedoc/variables/Capabilities.ReactSurface.html +1 -1
  254. package/typedoc/variables/Capabilities.RxRegistry.html +1 -0
  255. package/typedoc/variables/Capabilities.Settings.html +1 -1
  256. package/typedoc/variables/Capabilities.SettingsStore.html +1 -1
  257. package/typedoc/variables/Capabilities.Tools.html +1 -1
  258. package/typedoc/variables/Capabilities.Translations.html +1 -1
  259. package/typedoc/variables/Events.AppGraphReady.html +2 -2
  260. package/typedoc/variables/Events.DispatcherReady.html +2 -2
  261. package/typedoc/variables/Events.LayoutReady.html +1 -1
  262. package/typedoc/variables/Events.SettingsReady.html +2 -2
  263. package/typedoc/variables/Events.SetupAppGraph.html +2 -2
  264. package/typedoc/variables/Events.SetupArtifactDefinition.html +2 -2
  265. package/typedoc/variables/Events.SetupIntentResolver.html +2 -2
  266. package/typedoc/variables/Events.SetupMetadata.html +2 -2
  267. package/typedoc/variables/Events.SetupReactSurface.html +2 -2
  268. package/typedoc/variables/Events.SetupSettings.html +2 -2
  269. package/typedoc/variables/Events.SetupTranslations.html +2 -2
  270. package/typedoc/variables/Events.Startup.html +2 -2
  271. package/typedoc/variables/FileInfoSchema.html +1 -1
  272. package/typedoc/variables/INTENT_ACTION.html +1 -1
  273. package/typedoc/variables/INTENT_PLUGIN.html +1 -1
  274. package/typedoc/variables/LAYOUT_ACTION.html +1 -1
  275. package/typedoc/variables/LAYOUT_PLUGIN.html +1 -1
  276. package/typedoc/variables/Label.html +1 -1
  277. package/typedoc/variables/LayoutAction.Toast.html +1 -1
  278. package/typedoc/variables/LayoutAction.UPDATE_LAYOUT.html +1 -1
  279. package/typedoc/variables/PluginManagerProvider.html +2 -2
  280. package/typedoc/variables/Resource.html +2 -2
  281. package/typedoc/variables/ResourceKey.html +1 -1
  282. package/typedoc/variables/ResourceLanguage.html +1 -1
  283. package/typedoc/variables/SETTINGS_ACTION.html +1 -1
  284. package/typedoc/variables/SETTINGS_ID.html +1 -1
  285. package/typedoc/variables/SETTINGS_KEY.html +1 -1
  286. package/typedoc/variables/SETTINGS_PLUGIN.html +1 -1
  287. package/typedoc/variables/Surface.html +2 -2
  288. package/typedoc/variables/defaultFileTypes.html +1 -1
  289. package/dist/lib/browser/app-graph-builder-OHM2Z6YQ.mjs.map +0 -7
  290. package/dist/lib/browser/chunk-DVNSCQJ5.mjs.map +0 -7
  291. package/dist/lib/browser/chunk-SFPT4Z2C.mjs.map +0 -7
  292. package/dist/lib/browser/chunk-X2YC645Z.mjs.map +0 -7
  293. package/dist/lib/browser/store-XMPVLJOQ.mjs.map +0 -7
  294. package/dist/lib/node/app-graph-builder-Z45FKS52.cjs +0 -146
  295. package/dist/lib/node/app-graph-builder-Z45FKS52.cjs.map +0 -7
  296. package/dist/lib/node/chunk-5UOVF3OR.cjs.map +0 -7
  297. package/dist/lib/node/chunk-I3CJYEBC.cjs.map +0 -7
  298. package/dist/lib/node/chunk-JUSEAFDU.cjs.map +0 -7
  299. package/dist/lib/node/store-N7JLYYDI.cjs.map +0 -7
  300. package/dist/lib/node-esm/app-graph-builder-OMH534A4.mjs.map +0 -7
  301. package/dist/lib/node-esm/chunk-GSDBF2CK.mjs.map +0 -7
  302. package/dist/lib/node-esm/chunk-PHOUQACM.mjs.map +0 -7
  303. package/dist/lib/node-esm/chunk-QHXUTJHE.mjs.map +0 -7
  304. package/dist/lib/node-esm/store-M2BYJL6K.mjs.map +0 -7
  305. package/typedoc/classes/PluginsContext.html +0 -25
  306. /package/dist/lib/browser/{intent-dispatcher-J7QIFHLO.mjs.map → intent-dispatcher-VGUJBPPN.mjs.map} +0 -0
  307. /package/dist/lib/browser/{intent-resolver-QV5MDMDV.mjs.map → intent-resolver-QLFZY5R5.mjs.map} +0 -0
  308. /package/dist/lib/node/{intent-resolver-PBAOGJS6.cjs.map → intent-resolver-5CG5NIJY.cjs.map} +0 -0
  309. /package/dist/lib/node-esm/{intent-dispatcher-QDUGA7NT.mjs.map → intent-dispatcher-ZUSNX2OY.mjs.map} +0 -0
  310. /package/dist/lib/node-esm/{intent-resolver-P7TC5RBD.mjs.map → intent-resolver-NGDHUKDD.mjs.map} +0 -0
@@ -26,8 +26,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_I3CJYEBC_exports = {};
30
- __export(chunk_I3CJYEBC_exports, {
29
+ var chunk_2EBZ2ICH_exports = {};
30
+ __export(chunk_2EBZ2ICH_exports, {
31
31
  Capabilities: () => Capabilities,
32
32
  CollaborationActions: () => CollaborationActions,
33
33
  Events: () => Events,
@@ -41,9 +41,9 @@ __export(chunk_I3CJYEBC_exports, {
41
41
  Label: () => Label,
42
42
  LayoutAction: () => LayoutAction,
43
43
  Plugin: () => Plugin,
44
+ PluginContext: () => PluginContext,
44
45
  PluginManager: () => PluginManager,
45
46
  PluginModule: () => PluginModule,
46
- PluginsContext: () => PluginsContext,
47
47
  Resource: () => Resource,
48
48
  ResourceKey: () => ResourceKey,
49
49
  ResourceLanguage: () => ResourceLanguage,
@@ -67,26 +67,27 @@ __export(chunk_I3CJYEBC_exports, {
67
67
  lazy: () => lazy,
68
68
  oneOf: () => oneOf
69
69
  });
70
- module.exports = __toCommonJS(chunk_I3CJYEBC_exports);
70
+ module.exports = __toCommonJS(chunk_2EBZ2ICH_exports);
71
71
  var import_effect = require("effect");
72
72
  var import_live_object = require("@dxos/live-object");
73
73
  var import_log = require("@dxos/log");
74
74
  var import_util = require("@dxos/util");
75
75
  var import_effect2 = require("effect");
76
76
  var import_effect3 = require("effect");
77
- var import_signals_core = require("@preact/signals-core");
77
+ var import_rx_react = require("@effect-rx/rx-react");
78
78
  var import_effect4 = require("effect");
79
79
  var import_async = require("@dxos/async");
80
80
  var import_invariant = require("@dxos/invariant");
81
- var import_live_object2 = require("@dxos/live-object");
82
81
  var import_log2 = require("@dxos/log");
83
- var import_signals_core2 = require("@preact/signals-core");
82
+ var import_rx_react2 = require("@effect-rx/rx-react");
83
+ var import_signals_core = require("@preact/signals-core");
84
84
  var import_effect5 = require("effect");
85
85
  var import_async2 = require("@dxos/async");
86
- var import_live_object3 = require("@dxos/live-object");
86
+ var import_live_object2 = require("@dxos/live-object");
87
87
  var import_log3 = require("@dxos/log");
88
88
  var import_effect6 = require("effect");
89
89
  var import_echo_schema = require("@dxos/echo-schema");
90
+ var import_keys = require("@dxos/keys");
90
91
  var import_effect7 = require("effect");
91
92
  var import_effect8 = require("effect");
92
93
  var import_effect9 = require("effect");
@@ -199,9 +200,33 @@ var lazy = (c) => async (props) => {
199
200
  const { default: getCapability } = await c();
200
201
  return async () => getCapability(props);
201
202
  };
202
- var PluginsContext = class {
203
- constructor({ activate, reset }) {
204
- this._definedCapabilities = /* @__PURE__ */ new Map();
203
+ var PluginContext = class {
204
+ constructor({ registry, activate, reset }) {
205
+ this._capabilityImpls = import_rx_react.Rx.family(() => {
206
+ return import_rx_react.Rx.make([]).pipe(import_rx_react.Rx.keepAlive);
207
+ });
208
+ this._capabilities = import_rx_react.Rx.family((id) => {
209
+ return import_rx_react.Rx.make((get) => {
210
+ const current = get(this._capabilityImpls(id));
211
+ return current.map((c) => c.implementation);
212
+ });
213
+ });
214
+ this._capability = import_rx_react.Rx.family((id) => {
215
+ return import_rx_react.Rx.make((get) => {
216
+ const current = get(this._capabilities(id));
217
+ (0, import_invariant.invariant)(current.length > 0, `No capability found for ${id}`, {
218
+ F: __dxlog_file,
219
+ L: 117,
220
+ S: this,
221
+ A: [
222
+ "current.length > 0",
223
+ "`No capability found for ${id}`"
224
+ ]
225
+ });
226
+ return current[0];
227
+ });
228
+ });
229
+ this._registry = registry;
205
230
  this.activate = activate;
206
231
  this.reset = reset;
207
232
  }
@@ -209,22 +234,22 @@ var PluginsContext = class {
209
234
  * @internal
210
235
  */
211
236
  contributeCapability({ module: moduleId, interface: interfaceDef, implementation }) {
212
- let current = this._definedCapabilities.get(interfaceDef.identifier);
213
- if (!current) {
214
- const object = (0, import_live_object2.live)({
215
- value: []
216
- });
217
- current = (0, import_signals_core.untracked)(() => object.value);
218
- this._definedCapabilities.set(interfaceDef.identifier, current);
237
+ const current = this._registry.get(this._capabilityImpls(interfaceDef.identifier));
238
+ const capability = new CapabilityImpl(moduleId, implementation);
239
+ if (current.includes(capability)) {
240
+ return;
219
241
  }
220
- current.push(new CapabilityImpl(moduleId, implementation));
242
+ this._registry.set(this._capabilityImpls(interfaceDef.identifier), [
243
+ ...current,
244
+ capability
245
+ ]);
221
246
  (0, import_log2.log)("capability contributed", {
222
247
  id: interfaceDef.identifier,
223
248
  moduleId,
224
- count: (0, import_signals_core.untracked)(() => current.length)
249
+ count: current.length
225
250
  }, {
226
251
  F: __dxlog_file,
227
- L: 146,
252
+ L: 161,
228
253
  S: this,
229
254
  C: (f, a) => f(...a)
230
255
  });
@@ -233,19 +258,19 @@ var PluginsContext = class {
233
258
  * @internal
234
259
  */
235
260
  removeCapability(interfaceDef, implementation) {
236
- const current = this._definedCapabilities.get(interfaceDef.identifier);
237
- if (!current) {
261
+ const current = this._registry.get(this._capabilityImpls(interfaceDef.identifier));
262
+ if (current.length === 0) {
238
263
  return;
239
264
  }
240
- const index = current.findIndex((i) => i.implementation === implementation);
241
- if (index !== -1) {
242
- current.splice(index, 1);
265
+ const next = current.filter((c) => c.implementation !== implementation);
266
+ if (next.length !== current.length) {
267
+ this._registry.set(this._capabilityImpls(interfaceDef.identifier), next);
243
268
  (0, import_log2.log)("capability removed", {
244
269
  id: interfaceDef.identifier,
245
- count: (0, import_signals_core.untracked)(() => current.length)
270
+ count: current.length
246
271
  }, {
247
272
  F: __dxlog_file,
248
- L: 165,
273
+ L: 180,
249
274
  S: this,
250
275
  C: (f, a) => f(...a)
251
276
  });
@@ -254,63 +279,64 @@ var PluginsContext = class {
254
279
  id: interfaceDef.identifier
255
280
  }, {
256
281
  F: __dxlog_file,
257
- L: 167,
282
+ L: 182,
258
283
  S: this,
259
284
  C: (f, a) => f(...a)
260
285
  });
261
286
  }
262
287
  }
263
288
  /**
264
- * Requests capabilities from the plugin context.
289
+ * Get the Rx reference to the available capabilities for a given interface.
290
+ * Primarily useful for deriving other Rx values based on the capabilities or
291
+ * for subscribing to changes in the capabilities.
292
+ * @returns An Rx reference to the available capabilities.
293
+ */
294
+ capabilities(interfaceDef) {
295
+ return this._capabilities(interfaceDef.identifier);
296
+ }
297
+ /**
298
+ * Get the Rx reference to the available capabilities for a given interface.
299
+ * Primarily useful for deriving other Rx values based on the capability or
300
+ * for subscribing to changes in the capability.
301
+ * @returns An Rx reference to the available capability.
302
+ * @throws If no capability is found.
303
+ */
304
+ capability(interfaceDef) {
305
+ return this._capability(interfaceDef.identifier);
306
+ }
307
+ /**
308
+ * Get capabilities from the plugin context.
265
309
  * @returns An array of capabilities.
266
- * @reactive
267
310
  */
268
- requestCapabilities(interfaceDef, filter) {
269
- let current = this._definedCapabilities.get(interfaceDef.identifier);
270
- if (!current) {
271
- const object = (0, import_live_object2.live)({
272
- value: []
273
- });
274
- current = (0, import_signals_core.untracked)(() => object.value);
275
- this._definedCapabilities.set(interfaceDef.identifier, current);
276
- }
277
- const capabilities = filter ? current.filter((c) => filter(c.implementation, c.moduleId)) : current;
278
- return capabilities.map((c) => c.implementation);
311
+ getCapabilities(interfaceDef) {
312
+ return this._registry.get(this.capabilities(interfaceDef));
279
313
  }
280
314
  /**
281
315
  * Requests a single capability from the plugin context.
282
316
  * @returns The capability.
283
317
  * @throws If no capability is found.
284
- * @reactive
285
318
  */
286
- requestCapability(interfaceDef, filter) {
287
- const capability = this.requestCapabilities(interfaceDef, filter)[0];
288
- (0, import_invariant.invariant)(capability, `No capability found for ${interfaceDef.identifier}`, {
289
- F: __dxlog_file,
290
- L: 203,
291
- S: this,
292
- A: [
293
- "capability",
294
- "`No capability found for ${interfaceDef.identifier}`"
295
- ]
296
- });
297
- return capability;
319
+ getCapability(interfaceDef) {
320
+ return this._registry.get(this.capability(interfaceDef));
298
321
  }
299
322
  /**
300
- * Waits for a capability to be contributed.
323
+ * Waits for a capability to be available.
301
324
  * @returns The capability.
302
325
  */
303
- async waitForCapability(interfaceDef, filter) {
326
+ async waitForCapability(interfaceDef) {
327
+ const [capability] = this.getCapabilities(interfaceDef);
328
+ if (capability) {
329
+ return capability;
330
+ }
304
331
  const trigger = new import_async.Trigger();
305
- const unsubscribe = (0, import_signals_core.effect)(() => {
306
- const capabilities = this.requestCapabilities(interfaceDef, filter);
307
- if (capabilities[0]) {
332
+ const cancel = this._registry.subscribe(this.capabilities(interfaceDef), (capabilities) => {
333
+ if (capabilities.length > 0) {
308
334
  trigger.wake(capabilities[0]);
309
335
  }
310
336
  });
311
- const capability = await trigger.wait();
312
- unsubscribe();
313
- return capability;
337
+ const result = await trigger.wait();
338
+ cancel();
339
+ return result;
314
340
  }
315
341
  async activatePromise(event) {
316
342
  return this.activate(event).pipe(import_effect4.Effect.runPromise);
@@ -344,15 +370,17 @@ var isPromise = (value) => {
344
370
  return value !== null && typeof value === "object" && "then" in value;
345
371
  };
346
372
  var PluginManager = class {
347
- constructor({ pluginLoader, plugins = [], core = plugins.map(({ meta }) => meta.id), enabled = [] }) {
373
+ constructor({ pluginLoader, plugins = [], core = plugins.map(({ meta }) => meta.id), enabled = [], registry }) {
348
374
  this.activation = new import_async2.Event();
349
- this.context = new PluginsContext({
375
+ this._capabilities = /* @__PURE__ */ new Map();
376
+ this.registry = registry ?? import_rx_react2.Registry.make();
377
+ this.context = new PluginContext({
378
+ registry: this.registry,
350
379
  activate: (event) => this._activate(event),
351
380
  reset: (id) => this._reset(id)
352
381
  });
353
- this._capabilities = /* @__PURE__ */ new Map();
354
382
  this._pluginLoader = pluginLoader;
355
- this._state = (0, import_live_object3.live)({
383
+ this._state = (0, import_live_object2.live)({
356
384
  plugins,
357
385
  core,
358
386
  enabled,
@@ -426,12 +454,12 @@ var PluginManager = class {
426
454
  * @param id The id of the plugin.
427
455
  */
428
456
  async add(id) {
429
- return (0, import_signals_core2.untracked)(async () => {
457
+ return (0, import_signals_core.untracked)(async () => {
430
458
  (0, import_log3.log)("add plugin", {
431
459
  id
432
460
  }, {
433
461
  F: __dxlog_file2,
434
- L: 146,
462
+ L: 154,
435
463
  S: this,
436
464
  C: (f, a) => f(...a)
437
465
  });
@@ -445,12 +473,12 @@ var PluginManager = class {
445
473
  * @param id The id of the plugin.
446
474
  */
447
475
  enable(id) {
448
- return (0, import_signals_core2.untracked)(async () => {
476
+ return (0, import_signals_core.untracked)(async () => {
449
477
  (0, import_log3.log)("enable plugin", {
450
478
  id
451
479
  }, {
452
480
  F: __dxlog_file2,
453
- L: 159,
481
+ L: 167,
454
482
  S: this,
455
483
  C: (f, a) => f(...a)
456
484
  });
@@ -471,7 +499,7 @@ var PluginManager = class {
471
499
  ]
472
500
  }, {
473
501
  F: __dxlog_file2,
474
- L: 174,
502
+ L: 182,
475
503
  S: this,
476
504
  C: (f, a) => f(...a)
477
505
  });
@@ -486,12 +514,12 @@ var PluginManager = class {
486
514
  * @param id The id of the plugin.
487
515
  */
488
516
  remove(id) {
489
- return (0, import_signals_core2.untracked)(() => {
517
+ return (0, import_signals_core.untracked)(() => {
490
518
  (0, import_log3.log)("remove plugin", {
491
519
  id
492
520
  }, {
493
521
  F: __dxlog_file2,
494
- L: 192,
522
+ L: 200,
495
523
  S: this,
496
524
  C: (f, a) => f(...a)
497
525
  });
@@ -508,12 +536,12 @@ var PluginManager = class {
508
536
  * @param id The id of the plugin.
509
537
  */
510
538
  disable(id) {
511
- return (0, import_signals_core2.untracked)(async () => {
539
+ return (0, import_signals_core.untracked)(async () => {
512
540
  (0, import_log3.log)("disable plugin", {
513
541
  id
514
542
  }, {
515
543
  F: __dxlog_file2,
516
- L: 209,
544
+ L: 217,
517
545
  S: this,
518
546
  C: (f, a) => f(...a)
519
547
  });
@@ -541,7 +569,7 @@ var PluginManager = class {
541
569
  * @returns Whether the activation was successful.
542
570
  */
543
571
  activate(event) {
544
- return (0, import_signals_core2.untracked)(() => import_effect5.Effect.runPromise(this._activate(event)));
572
+ return (0, import_signals_core.untracked)(() => import_effect5.Effect.runPromise(this._activate(event)));
545
573
  }
546
574
  /**
547
575
  * Deactivates all of the modules for a plugin.
@@ -549,7 +577,7 @@ var PluginManager = class {
549
577
  * @returns Whether the deactivation was successful.
550
578
  */
551
579
  deactivate(id) {
552
- return (0, import_signals_core2.untracked)(() => import_effect5.Effect.runPromise(this._deactivate(id)));
580
+ return (0, import_signals_core.untracked)(() => import_effect5.Effect.runPromise(this._deactivate(id)));
553
581
  }
554
582
  /**
555
583
  * Re-activates the modules that were activated by the event.
@@ -557,15 +585,15 @@ var PluginManager = class {
557
585
  * @returns Whether the reset was successful.
558
586
  */
559
587
  reset(event) {
560
- return (0, import_signals_core2.untracked)(() => import_effect5.Effect.runPromise(this._reset(event)));
588
+ return (0, import_signals_core.untracked)(() => import_effect5.Effect.runPromise(this._reset(event)));
561
589
  }
562
590
  _addPlugin(plugin) {
563
- (0, import_signals_core2.untracked)(() => {
591
+ (0, import_signals_core.untracked)(() => {
564
592
  (0, import_log3.log)("add plugin", {
565
593
  id: plugin.meta.id
566
594
  }, {
567
595
  F: __dxlog_file2,
568
- L: 262,
596
+ L: 270,
569
597
  S: this,
570
598
  C: (f, a) => f(...a)
571
599
  });
@@ -575,12 +603,12 @@ var PluginManager = class {
575
603
  });
576
604
  }
577
605
  _removePlugin(id) {
578
- (0, import_signals_core2.untracked)(() => {
606
+ (0, import_signals_core.untracked)(() => {
579
607
  (0, import_log3.log)("remove plugin", {
580
608
  id
581
609
  }, {
582
610
  F: __dxlog_file2,
583
- L: 271,
611
+ L: 279,
584
612
  S: this,
585
613
  C: (f, a) => f(...a)
586
614
  });
@@ -591,12 +619,12 @@ var PluginManager = class {
591
619
  });
592
620
  }
593
621
  _addModule(module2) {
594
- (0, import_signals_core2.untracked)(() => {
622
+ (0, import_signals_core.untracked)(() => {
595
623
  (0, import_log3.log)("add module", {
596
624
  id: module2.id
597
625
  }, {
598
626
  F: __dxlog_file2,
599
- L: 281,
627
+ L: 289,
600
628
  S: this,
601
629
  C: (f, a) => f(...a)
602
630
  });
@@ -606,12 +634,12 @@ var PluginManager = class {
606
634
  });
607
635
  }
608
636
  _removeModule(id) {
609
- (0, import_signals_core2.untracked)(() => {
637
+ (0, import_signals_core.untracked)(() => {
610
638
  (0, import_log3.log)("remove module", {
611
639
  id
612
640
  }, {
613
641
  F: __dxlog_file2,
614
- L: 290,
642
+ L: 298,
615
643
  S: this,
616
644
  C: (f, a) => f(...a)
617
645
  });
@@ -637,7 +665,7 @@ var PluginManager = class {
637
665
  return this._getInactiveModules().filter((module2) => getEvents(module2.activatesOn).map(eventKey).includes(key));
638
666
  }
639
667
  _setPendingResetByModule(module2) {
640
- return (0, import_signals_core2.untracked)(() => {
668
+ return (0, import_signals_core.untracked)(() => {
641
669
  const activationEvents = getEvents(module2.activatesOn).map(eventKey).filter((key) => this._state.eventsFired.includes(key));
642
670
  const pendingReset = Array.from(new Set(activationEvents)).filter((event) => !this._state.pendingReset.includes(event));
643
671
  if (pendingReset.length > 0) {
@@ -645,7 +673,7 @@ var PluginManager = class {
645
673
  events: pendingReset
646
674
  }, {
647
675
  F: __dxlog_file2,
648
- L: 328,
676
+ L: 336,
649
677
  S: this,
650
678
  C: (f, a) => f(...a)
651
679
  });
@@ -664,7 +692,7 @@ var PluginManager = class {
664
692
  key
665
693
  }, {
666
694
  F: __dxlog_file2,
667
- L: 341,
695
+ L: 349,
668
696
  S: this,
669
697
  C: (f, a) => f(...a)
670
698
  });
@@ -685,7 +713,7 @@ var PluginManager = class {
685
713
  key
686
714
  }, {
687
715
  F: __dxlog_file2,
688
- L: 357,
716
+ L: 365,
689
717
  S: this,
690
718
  C: (f, a) => f(...a)
691
719
  });
@@ -699,7 +727,7 @@ var PluginManager = class {
699
727
  modules: modules.map((module2) => module2.id)
700
728
  }, {
701
729
  F: __dxlog_file2,
702
- L: 364,
730
+ L: 372,
703
731
  S: this,
704
732
  C: (f, a) => f(...a)
705
733
  });
@@ -741,7 +769,7 @@ var PluginManager = class {
741
769
  key
742
770
  }, {
743
771
  F: __dxlog_file2,
744
- L: 398,
772
+ L: 406,
745
773
  S: this,
746
774
  C: (f, a) => f(...a)
747
775
  });
@@ -757,7 +785,7 @@ var PluginManager = class {
757
785
  module: module2.id
758
786
  }, {
759
787
  F: __dxlog_file2,
760
- L: 413,
788
+ L: 421,
761
789
  S: this,
762
790
  C: (f, a) => f(...a)
763
791
  });
@@ -786,7 +814,7 @@ var PluginManager = class {
786
814
  module: module2.id
787
815
  }, {
788
816
  F: __dxlog_file2,
789
- L: 436,
817
+ L: 444,
790
818
  S: this,
791
819
  C: (f, a) => f(...a)
792
820
  });
@@ -815,7 +843,7 @@ var PluginManager = class {
815
843
  id
816
844
  }, {
817
845
  F: __dxlog_file2,
818
- L: 463,
846
+ L: 471,
819
847
  S: this,
820
848
  C: (f, a) => f(...a)
821
849
  });
@@ -824,7 +852,7 @@ var PluginManager = class {
824
852
  for (const capability of capabilities) {
825
853
  this.context.removeCapability(capability.interface, capability.implementation);
826
854
  const program = capability.deactivate?.();
827
- yield* import_effect5.Match.value(program).pipe(import_effect5.Match.when(import_effect5.Effect.isEffect, (effect2) => effect2), import_effect5.Match.when(isPromise, (promise) => import_effect5.Effect.tryPromise({
855
+ yield* import_effect5.Match.value(program).pipe(import_effect5.Match.when(import_effect5.Effect.isEffect, (effect) => effect), import_effect5.Match.when(isPromise, (promise) => import_effect5.Effect.tryPromise({
828
856
  try: () => promise,
829
857
  catch: (error) => error
830
858
  })), import_effect5.Match.orElse((program2) => import_effect5.Effect.succeed(program2)));
@@ -839,7 +867,7 @@ var PluginManager = class {
839
867
  id
840
868
  }, {
841
869
  F: __dxlog_file2,
842
- L: 489,
870
+ L: 497,
843
871
  S: this,
844
872
  C: (f, a) => f(...a)
845
873
  });
@@ -853,7 +881,7 @@ var PluginManager = class {
853
881
  key
854
882
  }, {
855
883
  F: __dxlog_file2,
856
- L: 497,
884
+ L: 505,
857
885
  S: this,
858
886
  C: (f, a) => f(...a)
859
887
  });
@@ -892,6 +920,7 @@ var Capabilities;
892
920
  (function(Capabilities2) {
893
921
  Capabilities2.PluginManager = defineCapability("dxos.org/app-framework/capability/plugin-manager");
894
922
  Capabilities2.Null = defineCapability("dxos.org/app-framework/capability/null");
923
+ Capabilities2.RxRegistry = defineCapability("dxos.org/app-framework/capability/rx-registry");
895
924
  Capabilities2.ReactContext = defineCapability("dxos.org/app-framework/capability/react-context");
896
925
  Capabilities2.ReactRoot = defineCapability("dxos.org/app-framework/capability/react-root");
897
926
  Capabilities2.ReactSurface = defineCapability("dxos.org/app-framework/common/react-surface");
@@ -913,7 +942,7 @@ var CollaborationActions;
913
942
  (function(CollaborationActions2) {
914
943
  class InsertContent extends import_effect6.Schema.TaggedClass()("assistant/intent-content", {
915
944
  input: import_effect6.Schema.Struct({
916
- spaceId: import_echo_schema.SpaceIdSchema,
945
+ spaceId: import_keys.SpaceId,
917
946
  target: (0, import_echo_schema.Ref)(import_echo_schema.Expando),
918
947
  object: (0, import_echo_schema.Ref)(import_echo_schema.Expando),
919
948
  label: import_effect6.Schema.String.pipe(import_effect6.Schema.optional)
@@ -979,7 +1008,7 @@ var IntentPlugin = () => definePlugin({
979
1008
  activatesAfter: [
980
1009
  Events.DispatcherReady
981
1010
  ],
982
- activate: lazy(() => import("./intent-dispatcher-FQPJNKIZ.cjs"))
1011
+ activate: lazy(() => import("./intent-dispatcher-TASJBG5M.cjs"))
983
1012
  })
984
1013
  ]);
985
1014
  var LAYOUT_PLUGIN = "dxos.org/plugin/layout";
@@ -1329,12 +1358,12 @@ var isUndoable = (historyEntry) => historyEntry.length > 0 && historyEntry.every
1329
1358
  var createDispatcher = (getResolvers, { executionLimit = EXECUTION_LIMIT, historyLimit = HISTORY_LIMIT } = {}) => {
1330
1359
  const historyRef = import_effect.Effect.runSync(import_effect.Ref.make([]));
1331
1360
  const handleIntent = (intent) => import_effect.Effect.gen(function* () {
1332
- const candidates = getResolvers(intent.module).filter((resolver) => resolver.intent._tag === intent.id).filter((resolver) => !resolver.filter || resolver.filter(intent.data)).toSorted(import_util.byPosition);
1361
+ const candidates = getResolvers().filter((resolver) => resolver.intent._tag === intent.id).filter((resolver) => !resolver.filter || resolver.filter(intent.data)).toSorted(import_util.byPosition);
1333
1362
  if (candidates.length === 0) {
1334
1363
  yield* import_effect.Effect.fail(new NoResolversError(intent.id));
1335
1364
  }
1336
- const effect2 = candidates[0].resolve(intent.data, intent.undo ?? false);
1337
- const result = import_effect.Effect.isEffect(effect2) ? yield* effect2 : yield* import_effect.Effect.promise(async () => effect2);
1365
+ const effect = candidates[0].resolve(intent.data, intent.undo ?? false);
1366
+ const result = import_effect.Effect.isEffect(effect) ? yield* effect : yield* import_effect.Effect.promise(async () => effect);
1338
1367
  return {
1339
1368
  _intent: intent,
1340
1369
  ...result
@@ -1454,10 +1483,8 @@ var intent_dispatcher_default = (context) => {
1454
1483
  undo: defaultEffect,
1455
1484
  undoPromise: defaultPromise
1456
1485
  });
1457
- const { dispatch, dispatchPromise, undo, undoPromise } = createDispatcher((module2) => context.requestCapabilities(Capabilities.IntentResolver, (c, moduleId) => {
1458
- return module2 ? moduleId === module2 : true;
1459
- }).flat());
1460
- const manager = context.requestCapability(Capabilities.PluginManager);
1486
+ const { dispatch, dispatchPromise, undo, undoPromise } = createDispatcher(() => context.getCapabilities(Capabilities.IntentResolver).flat());
1487
+ const manager = context.getCapability(Capabilities.PluginManager);
1461
1488
  state.dispatch = (intentChain, depth) => {
1462
1489
  return import_effect.Effect.gen(function* () {
1463
1490
  yield* manager._activate(Events.SetupIntentResolver);
@@ -1487,9 +1514,9 @@ var intent_dispatcher_default = (context) => {
1487
1514
  Label,
1488
1515
  LayoutAction,
1489
1516
  Plugin,
1517
+ PluginContext,
1490
1518
  PluginManager,
1491
1519
  PluginModule,
1492
- PluginsContext,
1493
1520
  Resource,
1494
1521
  ResourceKey,
1495
1522
  ResourceLanguage,
@@ -1513,4 +1540,4 @@ var intent_dispatcher_default = (context) => {
1513
1540
  lazy,
1514
1541
  oneOf
1515
1542
  });
1516
- //# sourceMappingURL=chunk-I3CJYEBC.cjs.map
1543
+ //# sourceMappingURL=chunk-2EBZ2ICH.cjs.map