@dxos/app-framework 0.8.4-main.84f28bd → 0.8.4-main.937b3ca
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.storybook/main.mts +11 -0
- package/.storybook/preview.mts +8 -0
- package/.swc/plugins/linux_x86_64_19.0.0/727453fb3a62f7f1d952a41e051ca8a6f88cadc45cee43c6a4d1aa45f9b75665.wasmer-v7 +0 -0
- package/dist/lib/browser/app-graph-builder-M2VPYQC6.mjs +149 -0
- package/dist/lib/browser/app-graph-builder-M2VPYQC6.mjs.map +7 -0
- package/dist/lib/browser/capability-7PCNSWBT.mjs +33 -0
- package/dist/lib/browser/capability-7PCNSWBT.mjs.map +7 -0
- package/dist/lib/browser/capability-KP3PFEXD.mjs +31 -0
- package/dist/lib/browser/capability-KP3PFEXD.mjs.map +7 -0
- package/dist/lib/browser/chunk-6Y7PZV72.mjs +77 -0
- package/dist/lib/browser/chunk-6Y7PZV72.mjs.map +7 -0
- package/dist/lib/browser/chunk-7IQHKD4U.mjs +170 -0
- package/dist/lib/browser/chunk-7IQHKD4U.mjs.map +7 -0
- package/dist/lib/browser/chunk-BLQJSGL3.mjs +732 -0
- package/dist/lib/browser/chunk-BLQJSGL3.mjs.map +7 -0
- package/dist/lib/browser/chunk-FHQTHCX7.mjs +8 -0
- package/dist/lib/browser/chunk-FHQTHCX7.mjs.map +7 -0
- package/dist/lib/browser/chunk-FMZN33N4.mjs +807 -0
- package/dist/lib/browser/chunk-FMZN33N4.mjs.map +7 -0
- package/dist/lib/browser/chunk-H4WPA7U7.mjs +77 -0
- package/dist/lib/browser/chunk-H4WPA7U7.mjs.map +7 -0
- package/dist/lib/browser/chunk-J5LGTIGS.mjs +10 -0
- package/dist/lib/browser/chunk-PKQT6C53.mjs +47 -0
- package/dist/lib/browser/chunk-PKQT6C53.mjs.map +7 -0
- package/dist/lib/browser/chunk-TCLLRCS3.mjs +145 -0
- package/dist/lib/browser/chunk-TCLLRCS3.mjs.map +7 -0
- package/dist/lib/browser/chunk-XYNO72GQ.mjs +746 -0
- package/dist/lib/browser/chunk-XYNO72GQ.mjs.map +7 -0
- package/dist/lib/browser/common/index.mjs +38 -0
- package/dist/lib/browser/core/activation-event.mjs +20 -0
- package/dist/lib/browser/core/capability.mjs +28 -0
- package/dist/lib/browser/core/plugin-manager.mjs +15 -0
- package/dist/lib/browser/core/plugin-manager.mjs.map +7 -0
- package/dist/lib/browser/core/plugin.mjs +27 -0
- package/dist/lib/browser/core/plugin.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +165 -139
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/invoker-capability-SZRSTHEH.mjs +32 -0
- package/dist/lib/browser/invoker-capability-SZRSTHEH.mjs.map +7 -0
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/operation-resolver-6MP2MYOY.mjs +64 -0
- package/dist/lib/browser/operation-resolver-6MP2MYOY.mjs.map +7 -0
- package/dist/lib/browser/react/index.mjs +46 -0
- package/dist/lib/browser/react/index.mjs.map +7 -0
- package/dist/lib/browser/testing/index.mjs +79 -37
- package/dist/lib/browser/testing/index.mjs.map +4 -4
- package/dist/lib/node-esm/app-graph-builder-LROHGJEM.mjs +150 -0
- package/dist/lib/node-esm/app-graph-builder-LROHGJEM.mjs.map +7 -0
- package/dist/lib/node-esm/capability-CFLQ2QQU.mjs +34 -0
- package/dist/lib/node-esm/capability-CFLQ2QQU.mjs.map +7 -0
- package/dist/lib/node-esm/capability-RCUNM2M7.mjs +32 -0
- package/dist/lib/node-esm/capability-RCUNM2M7.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-663A54LQ.mjs +171 -0
- package/dist/lib/node-esm/chunk-663A54LQ.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-6WXBT3EC.mjs +747 -0
- package/dist/lib/node-esm/chunk-6WXBT3EC.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-7OWSHPYK.mjs +48 -0
- package/dist/lib/node-esm/chunk-7OWSHPYK.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-GQEBIGKD.mjs +733 -0
- package/dist/lib/node-esm/chunk-GQEBIGKD.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-GT6OKM5I.mjs +146 -0
- package/dist/lib/node-esm/chunk-GT6OKM5I.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +11 -0
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-STMXUEPO.mjs +78 -0
- package/dist/lib/node-esm/chunk-STMXUEPO.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-UEWJDI2L.mjs +10 -0
- package/dist/lib/node-esm/chunk-UEWJDI2L.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-XR6NMKEP.mjs +78 -0
- package/dist/lib/node-esm/chunk-XR6NMKEP.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-XYQTBFPA.mjs +808 -0
- package/dist/lib/node-esm/chunk-XYQTBFPA.mjs.map +7 -0
- package/dist/lib/node-esm/common/index.mjs +39 -0
- package/dist/lib/node-esm/common/index.mjs.map +7 -0
- package/dist/lib/node-esm/core/activation-event.mjs +21 -0
- package/dist/lib/node-esm/core/activation-event.mjs.map +7 -0
- package/dist/lib/node-esm/core/capability.mjs +29 -0
- package/dist/lib/node-esm/core/capability.mjs.map +7 -0
- package/dist/lib/node-esm/core/plugin-manager.mjs +16 -0
- package/dist/lib/node-esm/core/plugin-manager.mjs.map +7 -0
- package/dist/lib/node-esm/core/plugin.mjs +28 -0
- package/dist/lib/node-esm/core/plugin.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +165 -139
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/invoker-capability-PNMA5JOS.mjs +33 -0
- package/dist/lib/node-esm/invoker-capability-PNMA5JOS.mjs.map +7 -0
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/operation-resolver-7YWDMTNU.mjs +65 -0
- package/dist/lib/node-esm/operation-resolver-7YWDMTNU.mjs.map +7 -0
- package/dist/lib/node-esm/react/index.mjs +47 -0
- package/dist/lib/node-esm/react/index.mjs.map +7 -0
- package/dist/lib/node-esm/testing/index.mjs +79 -37
- package/dist/lib/node-esm/testing/index.mjs.map +4 -4
- package/dist/types/src/cli.d.ts +39 -0
- package/dist/types/src/cli.d.ts.map +1 -0
- package/dist/types/src/common/activation-event.d.ts +66 -0
- package/dist/types/src/common/activation-event.d.ts.map +1 -0
- package/dist/types/src/common/capability.d.ts +265 -0
- package/dist/types/src/common/capability.d.ts.map +1 -0
- package/dist/types/src/common/collaboration.d.ts +24 -17
- package/dist/types/src/common/collaboration.d.ts.map +1 -1
- package/dist/types/src/common/file.d.ts +1 -1
- package/dist/types/src/common/file.d.ts.map +1 -1
- package/dist/types/src/common/graph.d.ts +2 -2
- package/dist/types/src/common/graph.d.ts.map +1 -1
- package/dist/types/src/common/index.d.ts +4 -3
- package/dist/types/src/common/index.d.ts.map +1 -1
- package/dist/types/src/common/operations.d.ts +380 -0
- package/dist/types/src/common/operations.d.ts.map +1 -0
- package/dist/types/src/common/plugin.d.ts +201 -0
- package/dist/types/src/common/plugin.d.ts.map +1 -0
- package/dist/types/src/common/surface.d.ts +50 -21
- package/dist/types/src/common/surface.d.ts.map +1 -1
- package/dist/types/src/common/translations.d.ts +10 -1
- package/dist/types/src/common/translations.d.ts.map +1 -1
- package/dist/types/src/context.d.ts +5 -0
- package/dist/types/src/context.d.ts.map +1 -0
- package/dist/types/src/core/{events.d.ts → activation-event.d.ts} +6 -6
- package/dist/types/src/core/activation-event.d.ts.map +1 -0
- package/dist/types/src/core/capability-manager.d.ts +43 -0
- package/dist/types/src/core/capability-manager.d.ts.map +1 -0
- package/dist/types/src/core/capability-manager.test.d.ts +2 -0
- package/dist/types/src/core/capability-manager.test.d.ts.map +1 -0
- package/dist/types/src/core/capability.d.ts +150 -0
- package/dist/types/src/core/capability.d.ts.map +1 -0
- package/dist/types/src/core/index.d.ts +5 -4
- package/dist/types/src/core/index.d.ts.map +1 -1
- package/dist/types/src/core/plugin-manager.d.ts +66 -0
- package/dist/types/src/core/plugin-manager.d.ts.map +1 -0
- package/dist/types/src/core/plugin-manager.test.d.ts +2 -0
- package/dist/types/src/core/plugin-manager.test.d.ts.map +1 -0
- package/dist/types/src/core/plugin.d.ts +97 -32
- package/dist/types/src/core/plugin.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +5 -4
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/playground/debug/Debug.d.ts +4 -2
- package/dist/types/src/playground/debug/Debug.d.ts.map +1 -1
- package/dist/types/src/playground/debug/plugin.d.ts +2 -1
- package/dist/types/src/playground/debug/plugin.d.ts.map +1 -1
- package/dist/types/src/playground/generator/Main.d.ts +4 -2
- package/dist/types/src/playground/generator/Main.d.ts.map +1 -1
- package/dist/types/src/playground/generator/Toolbar.d.ts +4 -2
- package/dist/types/src/playground/generator/Toolbar.d.ts.map +1 -1
- package/dist/types/src/playground/generator/generator.d.ts +17 -5
- package/dist/types/src/playground/generator/generator.d.ts.map +1 -1
- package/dist/types/src/playground/generator/plugin.d.ts +2 -1
- package/dist/types/src/playground/generator/plugin.d.ts.map +1 -1
- package/dist/types/src/playground/layout/Layout.d.ts +4 -2
- package/dist/types/src/playground/layout/Layout.d.ts.map +1 -1
- package/dist/types/src/playground/layout/plugin.d.ts +2 -1
- package/dist/types/src/playground/layout/plugin.d.ts.map +1 -1
- package/dist/types/src/playground/logger/Toolbar.d.ts +4 -2
- package/dist/types/src/playground/logger/Toolbar.d.ts.map +1 -1
- package/dist/types/src/playground/logger/plugin.d.ts +2 -1
- package/dist/types/src/playground/logger/plugin.d.ts.map +1 -1
- package/dist/types/src/playground/logger/schema.d.ts +15 -1
- package/dist/types/src/playground/logger/schema.d.ts.map +1 -1
- package/dist/types/src/playground/playground.stories.d.ts +5 -4
- package/dist/types/src/playground/playground.stories.d.ts.map +1 -1
- package/dist/types/src/plugin-operation/OperationPlugin.d.ts +3 -0
- package/dist/types/src/plugin-operation/OperationPlugin.d.ts.map +1 -0
- package/dist/types/src/plugin-operation/history/capability.d.ts +7 -0
- package/dist/types/src/plugin-operation/history/capability.d.ts.map +1 -0
- package/dist/types/src/plugin-operation/history/errors.d.ts +5 -0
- package/dist/types/src/plugin-operation/history/errors.d.ts.map +1 -0
- package/dist/types/src/plugin-operation/history/history-tracker.d.ts +18 -0
- package/dist/types/src/plugin-operation/history/history-tracker.d.ts.map +1 -0
- package/dist/types/src/plugin-operation/history/history-tracker.test.d.ts +2 -0
- package/dist/types/src/plugin-operation/history/history-tracker.test.d.ts.map +1 -0
- package/dist/types/src/plugin-operation/history/index.d.ts +6 -0
- package/dist/types/src/plugin-operation/history/index.d.ts.map +1 -0
- package/dist/types/src/plugin-operation/history/types.d.ts +13 -0
- package/dist/types/src/plugin-operation/history/types.d.ts.map +1 -0
- package/dist/types/src/plugin-operation/history/undo-mapping.d.ts +93 -0
- package/dist/types/src/plugin-operation/history/undo-mapping.d.ts.map +1 -0
- package/dist/types/src/plugin-operation/history/undo-registry.d.ts +23 -0
- package/dist/types/src/plugin-operation/history/undo-registry.d.ts.map +1 -0
- package/dist/types/src/plugin-operation/history/undo-registry.test.d.ts +2 -0
- package/dist/types/src/plugin-operation/history/undo-registry.test.d.ts.map +1 -0
- package/dist/types/src/plugin-operation/index.d.ts +3 -0
- package/dist/types/src/plugin-operation/index.d.ts.map +1 -0
- package/dist/types/src/plugin-operation/invoker-capability.d.ts +6 -0
- package/dist/types/src/plugin-operation/invoker-capability.d.ts.map +1 -0
- package/dist/types/src/plugin-operation/meta.d.ts +3 -0
- package/dist/types/src/plugin-operation/meta.d.ts.map +1 -0
- package/dist/types/src/plugin-operation/testing.d.ts +109 -0
- package/dist/types/src/plugin-operation/testing.d.ts.map +1 -0
- package/dist/types/src/plugin-runtime/RuntimePlugin.d.ts +3 -0
- package/dist/types/src/plugin-runtime/RuntimePlugin.d.ts.map +1 -0
- package/dist/types/src/plugin-runtime/capability.d.ts +6 -0
- package/dist/types/src/plugin-runtime/capability.d.ts.map +1 -0
- package/dist/types/src/plugin-runtime/index.d.ts +2 -0
- package/dist/types/src/plugin-runtime/index.d.ts.map +1 -0
- package/dist/types/src/plugin-runtime/meta.d.ts +3 -0
- package/dist/types/src/plugin-runtime/meta.d.ts.map +1 -0
- package/dist/types/src/plugin-settings/SettingsPlugin.d.ts +2 -1
- package/dist/types/src/plugin-settings/SettingsPlugin.d.ts.map +1 -1
- package/dist/types/src/plugin-settings/actions.d.ts +41 -7
- package/dist/types/src/plugin-settings/actions.d.ts.map +1 -1
- package/dist/types/src/plugin-settings/app-graph-builder.d.ts +4 -2
- package/dist/types/src/plugin-settings/app-graph-builder.d.ts.map +1 -1
- package/dist/types/src/plugin-settings/meta.d.ts +3 -0
- package/dist/types/src/plugin-settings/meta.d.ts.map +1 -0
- package/dist/types/src/plugin-settings/operation-resolver.d.ts +6 -0
- package/dist/types/src/plugin-settings/operation-resolver.d.ts.map +1 -0
- package/dist/types/src/plugin-settings/translations.d.ts +2 -1
- package/dist/types/src/plugin-settings/translations.d.ts.map +1 -1
- package/dist/types/src/react/App.d.ts +8 -0
- package/dist/types/src/react/App.d.ts.map +1 -0
- package/dist/types/src/react/App.stories.d.ts +14 -0
- package/dist/types/src/react/App.stories.d.ts.map +1 -0
- package/dist/types/src/react/DefaultFallback.d.ts +8 -0
- package/dist/types/src/react/DefaultFallback.d.ts.map +1 -0
- package/dist/types/src/react/ErrorBoundary.d.ts +13 -14
- package/dist/types/src/react/ErrorBoundary.d.ts.map +1 -1
- package/dist/types/src/react/PluginManagerContext.stories.d.ts +13 -0
- package/dist/types/src/react/PluginManagerContext.stories.d.ts.map +1 -0
- package/dist/types/src/react/PluginManagerProvider.d.ts +2 -2
- package/dist/types/src/react/PluginManagerProvider.d.ts.map +1 -1
- package/dist/types/src/react/Surface.d.ts +9 -7
- package/dist/types/src/react/Surface.d.ts.map +1 -1
- package/dist/types/src/react/Surface.stories.d.ts +8 -10
- package/dist/types/src/react/Surface.stories.d.ts.map +1 -1
- package/dist/types/src/react/SurfaceInfo.d.ts +11 -0
- package/dist/types/src/react/SurfaceInfo.d.ts.map +1 -0
- package/dist/types/src/react/common.d.ts +13 -12
- package/dist/types/src/react/common.d.ts.map +1 -1
- package/dist/types/src/react/index.d.ts +3 -1
- package/dist/types/src/react/index.d.ts.map +1 -1
- package/dist/types/src/react/types.d.ts +12 -0
- package/dist/types/src/react/types.d.ts.map +1 -0
- package/dist/types/src/{App.d.ts → react/useApp.d.ts} +11 -9
- package/dist/types/src/react/useApp.d.ts.map +1 -0
- package/dist/types/src/react/useCapabilities.d.ts +16 -3
- package/dist/types/src/react/useCapabilities.d.ts.map +1 -1
- package/dist/types/src/react/useLoading.d.ts +18 -0
- package/dist/types/src/react/useLoading.d.ts.map +1 -0
- package/dist/types/src/react/useOperationResolver.d.ts +19 -0
- package/dist/types/src/react/useOperationResolver.d.ts.map +1 -0
- package/dist/types/src/testing/index.d.ts +1 -0
- package/dist/types/src/testing/index.d.ts.map +1 -1
- package/dist/types/src/testing/service.d.ts +8 -0
- package/dist/types/src/testing/service.d.ts.map +1 -0
- package/dist/types/src/testing/withPluginManager.d.ts +11 -10
- package/dist/types/src/testing/withPluginManager.d.ts.map +1 -1
- package/dist/types/src/testing/withPluginManager.stories.d.ts +9 -3
- package/dist/types/src/testing/withPluginManager.stories.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/moon.yml +10 -2
- package/package.json +103 -42
- package/src/cli.ts +107 -0
- package/src/common/activation-event.ts +99 -0
- package/src/common/capability.ts +343 -0
- package/src/common/collaboration.ts +24 -14
- package/src/common/file.ts +1 -1
- package/src/common/graph.ts +2 -2
- package/src/common/index.ts +4 -3
- package/src/common/operations.ts +412 -0
- package/src/common/plugin.ts +364 -0
- package/src/common/surface.ts +60 -26
- package/src/common/translations.ts +21 -1
- package/src/context.ts +9 -0
- package/src/core/{events.ts → activation-event.ts} +5 -5
- package/src/core/capability-manager.test.ts +151 -0
- package/src/core/capability-manager.ts +171 -0
- package/src/core/capability.ts +236 -0
- package/src/core/index.ts +5 -4
- package/src/core/plugin-manager.test.ts +845 -0
- package/src/core/plugin-manager.ts +696 -0
- package/src/core/plugin.ts +229 -36
- package/src/helpers.test.ts +1 -1
- package/src/index.ts +5 -4
- package/src/playground/debug/Debug.tsx +27 -17
- package/src/playground/debug/plugin.ts +10 -11
- package/src/playground/generator/Main.tsx +20 -11
- package/src/playground/generator/Toolbar.tsx +27 -16
- package/src/playground/generator/generator.ts +28 -28
- package/src/playground/generator/plugin.ts +15 -17
- package/src/playground/layout/Layout.tsx +11 -7
- package/src/playground/layout/plugin.ts +12 -11
- package/src/playground/logger/Toolbar.tsx +20 -16
- package/src/playground/logger/plugin.ts +33 -27
- package/src/playground/logger/schema.ts +11 -1
- package/src/playground/playground.stories.tsx +29 -17
- package/src/plugin-operation/OperationPlugin.ts +25 -0
- package/src/plugin-operation/history/capability.ts +37 -0
- package/src/plugin-operation/history/errors.ts +11 -0
- package/src/plugin-operation/history/history-tracker.test.ts +380 -0
- package/src/plugin-operation/history/history-tracker.ts +129 -0
- package/src/plugin-operation/history/index.ts +9 -0
- package/src/plugin-operation/history/types.ts +17 -0
- package/src/plugin-operation/history/undo-mapping.ts +132 -0
- package/src/plugin-operation/history/undo-registry.test.ts +73 -0
- package/src/plugin-operation/history/undo-registry.ts +54 -0
- package/src/plugin-operation/index.ts +6 -0
- package/src/plugin-operation/invoker-capability.ts +40 -0
- package/src/plugin-operation/meta.ts +11 -0
- package/src/plugin-operation/testing.ts +174 -0
- package/src/plugin-runtime/RuntimePlugin.ts +20 -0
- package/src/plugin-runtime/capability.ts +53 -0
- package/src/plugin-runtime/index.ts +5 -0
- package/src/plugin-runtime/meta.ts +11 -0
- package/src/plugin-settings/SettingsPlugin.ts +13 -29
- package/src/plugin-settings/actions.ts +45 -10
- package/src/plugin-settings/app-graph-builder.ts +124 -141
- package/src/plugin-settings/meta.ts +10 -0
- package/src/plugin-settings/operation-resolver.ts +55 -0
- package/src/plugin-settings/translations.ts +4 -4
- package/src/react/App.stories.tsx +63 -0
- package/src/react/App.tsx +60 -0
- package/src/react/DefaultFallback.tsx +26 -0
- package/src/react/ErrorBoundary.tsx +26 -15
- package/src/react/PluginManagerContext.stories.tsx +184 -0
- package/src/react/PluginManagerProvider.ts +2 -2
- package/src/react/Surface.stories.tsx +103 -58
- package/src/react/Surface.tsx +236 -46
- package/src/react/SurfaceInfo.tsx +107 -0
- package/src/react/common.ts +30 -5
- package/src/react/index.ts +5 -1
- package/src/react/types.ts +27 -0
- package/src/react/useApp.tsx +209 -0
- package/src/react/useCapabilities.ts +38 -5
- package/src/react/useLoading.tsx +68 -0
- package/src/react/useOperationResolver.ts +40 -0
- package/src/testing/index.ts +1 -0
- package/src/testing/service.ts +52 -0
- package/src/testing/withPluginManager.stories.tsx +14 -10
- package/src/testing/withPluginManager.tsx +43 -44
- package/tsconfig.json +30 -16
- package/vitest.config.ts +8 -6
- package/.eslintrc.cjs +0 -9
- package/.swc/plugins/v7_linux_x86_64_13.0.0/f45bdff002284d9e8f9ef3f0be909de12da36c049cbcf261ac78fc00abb09a2d +0 -0
- package/.swc/plugins/v7_linux_x86_64_13.0.0/fce1bdb8e20a094e4af08bad09cc81497ed0e2e7c51223b07d371063cca18429 +0 -0
- package/dist/lib/browser/app-graph-builder-BGGXLD6T.mjs +0 -137
- package/dist/lib/browser/app-graph-builder-BGGXLD6T.mjs.map +0 -7
- package/dist/lib/browser/chunk-2636QSIK.mjs +0 -1518
- package/dist/lib/browser/chunk-2636QSIK.mjs.map +0 -7
- package/dist/lib/browser/chunk-DHZB7HG7.mjs +0 -413
- package/dist/lib/browser/chunk-DHZB7HG7.mjs.map +0 -7
- package/dist/lib/browser/chunk-ORWHM7CO.mjs +0 -32
- package/dist/lib/browser/chunk-ORWHM7CO.mjs.map +0 -7
- package/dist/lib/browser/intent-dispatcher-TWKB22NI.mjs +0 -11
- package/dist/lib/browser/intent-resolver-O67UANYP.mjs +0 -39
- package/dist/lib/browser/intent-resolver-O67UANYP.mjs.map +0 -7
- package/dist/lib/browser/store-LFKDWHUQ.mjs +0 -30
- package/dist/lib/browser/store-LFKDWHUQ.mjs.map +0 -7
- package/dist/lib/browser/worker.mjs +0 -79
- package/dist/lib/node-esm/app-graph-builder-QHIJUYYW.mjs +0 -138
- package/dist/lib/node-esm/app-graph-builder-QHIJUYYW.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-NJAFK626.mjs +0 -414
- package/dist/lib/node-esm/chunk-NJAFK626.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-UMZQERLE.mjs +0 -34
- package/dist/lib/node-esm/chunk-UMZQERLE.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-VSKRV3NW.mjs +0 -1520
- package/dist/lib/node-esm/chunk-VSKRV3NW.mjs.map +0 -7
- package/dist/lib/node-esm/intent-dispatcher-5PRM3KGH.mjs +0 -12
- package/dist/lib/node-esm/intent-resolver-K3D4BXQQ.mjs +0 -40
- package/dist/lib/node-esm/intent-resolver-K3D4BXQQ.mjs.map +0 -7
- package/dist/lib/node-esm/store-53XDUBMD.mjs +0 -31
- package/dist/lib/node-esm/store-53XDUBMD.mjs.map +0 -7
- package/dist/lib/node-esm/worker.mjs +0 -80
- package/dist/types/src/App.d.ts.map +0 -1
- package/dist/types/src/common/capabilities.d.ts +0 -122
- package/dist/types/src/common/capabilities.d.ts.map +0 -1
- package/dist/types/src/common/events.d.ts +0 -52
- package/dist/types/src/common/events.d.ts.map +0 -1
- package/dist/types/src/common/layout.d.ts +0 -281
- package/dist/types/src/common/layout.d.ts.map +0 -1
- package/dist/types/src/core/capabilities.d.ts +0 -114
- package/dist/types/src/core/capabilities.d.ts.map +0 -1
- package/dist/types/src/core/capabilities.test.d.ts +0 -2
- package/dist/types/src/core/capabilities.test.d.ts.map +0 -1
- package/dist/types/src/core/events.d.ts.map +0 -1
- package/dist/types/src/core/manager.d.ts +0 -122
- package/dist/types/src/core/manager.d.ts.map +0 -1
- package/dist/types/src/core/manager.test.d.ts +0 -2
- package/dist/types/src/core/manager.test.d.ts.map +0 -1
- package/dist/types/src/plugin-intent/IntentPlugin.d.ts +0 -2
- package/dist/types/src/plugin-intent/IntentPlugin.d.ts.map +0 -1
- package/dist/types/src/plugin-intent/actions.d.ts +0 -38
- package/dist/types/src/plugin-intent/actions.d.ts.map +0 -1
- package/dist/types/src/plugin-intent/errors.d.ts +0 -16
- package/dist/types/src/plugin-intent/errors.d.ts.map +0 -1
- package/dist/types/src/plugin-intent/index.d.ts +0 -5
- package/dist/types/src/plugin-intent/index.d.ts.map +0 -1
- package/dist/types/src/plugin-intent/intent-dispatcher.d.ts +0 -139
- package/dist/types/src/plugin-intent/intent-dispatcher.d.ts.map +0 -1
- package/dist/types/src/plugin-intent/intent-dispatcher.test.d.ts +0 -2
- package/dist/types/src/plugin-intent/intent-dispatcher.test.d.ts.map +0 -1
- package/dist/types/src/plugin-intent/intent.d.ts +0 -63
- package/dist/types/src/plugin-intent/intent.d.ts.map +0 -1
- package/dist/types/src/plugin-settings/intent-resolver.d.ts +0 -4
- package/dist/types/src/plugin-settings/intent-resolver.d.ts.map +0 -1
- package/dist/types/src/plugin-settings/store.d.ts +0 -5
- package/dist/types/src/plugin-settings/store.d.ts.map +0 -1
- package/dist/types/src/react/IntentContext.d.ts +0 -8
- package/dist/types/src/react/IntentContext.d.ts.map +0 -1
- package/dist/types/src/react/useIntentResolver.d.ts +0 -3
- package/dist/types/src/react/useIntentResolver.d.ts.map +0 -1
- package/dist/types/src/worker.d.ts +0 -4
- package/dist/types/src/worker.d.ts.map +0 -1
- package/src/App.tsx +0 -276
- package/src/common/capabilities.ts +0 -113
- package/src/common/events.ts +0 -77
- package/src/common/layout.ts +0 -278
- package/src/core/capabilities.test.ts +0 -136
- package/src/core/capabilities.ts +0 -254
- package/src/core/manager.test.ts +0 -515
- package/src/core/manager.ts +0 -519
- package/src/plugin-intent/IntentPlugin.ts +0 -20
- package/src/plugin-intent/actions.ts +0 -33
- package/src/plugin-intent/errors.ts +0 -39
- package/src/plugin-intent/index.ts +0 -8
- package/src/plugin-intent/intent-dispatcher.test.ts +0 -279
- package/src/plugin-intent/intent-dispatcher.ts +0 -333
- package/src/plugin-intent/intent.ts +0 -154
- package/src/plugin-settings/intent-resolver.ts +0 -34
- package/src/plugin-settings/store.ts +0 -33
- package/src/react/IntentContext.tsx +0 -34
- package/src/react/useIntentResolver.ts +0 -22
- package/src/worker.ts +0 -11
- package/typedoc/.nojekyll +0 -1
- package/typedoc/assets/hierarchy.js +0 -1
- package/typedoc/assets/highlight.css +0 -106
- package/typedoc/assets/icons.js +0 -18
- package/typedoc/assets/icons.svg +0 -1
- package/typedoc/assets/main.js +0 -60
- package/typedoc/assets/navigation.js +0 -1
- package/typedoc/assets/search.js +0 -1
- package/typedoc/assets/style.css +0 -1640
- package/typedoc/classes/CollaborationActions.InsertContent.html +0 -421
- package/typedoc/classes/ErrorBoundary.html +0 -125
- package/typedoc/classes/IntentAction.ShowUndo.html +0 -227
- package/typedoc/classes/IntentAction.Track.html +0 -266
- package/typedoc/classes/LayoutAction.AddToast.html +0 -265
- package/typedoc/classes/LayoutAction.Close.html +0 -382
- package/typedoc/classes/LayoutAction.Expose.html +0 -265
- package/typedoc/classes/LayoutAction.Open.html +0 -1123
- package/typedoc/classes/LayoutAction.RevertWorkspace.html +0 -343
- package/typedoc/classes/LayoutAction.ScrollIntoView.html +0 -460
- package/typedoc/classes/LayoutAction.Set.html +0 -460
- package/typedoc/classes/LayoutAction.SetLayoutMode.html +0 -499
- package/typedoc/classes/LayoutAction.SwitchWorkspace.html +0 -265
- package/typedoc/classes/LayoutAction.UpdateComplementary.html +0 -616
- package/typedoc/classes/LayoutAction.UpdateDialog.html +0 -1123
- package/typedoc/classes/LayoutAction.UpdateLayout.html +0 -461
- package/typedoc/classes/LayoutAction.UpdatePopover.html +0 -1435
- package/typedoc/classes/LayoutAction.UpdateSidebar.html +0 -616
- package/typedoc/classes/Plugin.html +0 -6
- package/typedoc/classes/PluginContext.html +0 -38
- package/typedoc/classes/PluginManager.html +0 -43
- package/typedoc/classes/PluginModule.html +0 -18
- package/typedoc/classes/SettingsAction.Open.html +0 -226
- package/typedoc/classes/SettingsAction.OpenPluginRegistry.html +0 -265
- package/typedoc/functions/Events.createStateEvent.html +0 -2
- package/typedoc/functions/IntentPlugin.html +0 -1
- package/typedoc/functions/SettingsPlugin.html +0 -1
- package/typedoc/functions/allOf.html +0 -2
- package/typedoc/functions/chain.html +0 -3
- package/typedoc/functions/contributes.html +0 -2
- package/typedoc/functions/createDispatcher.html +0 -3
- package/typedoc/functions/createIntent.html +0 -6
- package/typedoc/functions/createResolver.html +0 -2
- package/typedoc/functions/createSurface.html +0 -2
- package/typedoc/functions/defineCapability.html +0 -2
- package/typedoc/functions/defineEvent.html +0 -2
- package/typedoc/functions/defineModule.html +0 -2
- package/typedoc/functions/definePlugin.html +0 -2
- package/typedoc/functions/eventKey.html +0 -2
- package/typedoc/functions/getEvents.html +0 -2
- package/typedoc/functions/isAllOf.html +0 -2
- package/typedoc/functions/isOneOf.html +0 -2
- package/typedoc/functions/isSurfaceAvailable.html +0 -2
- package/typedoc/functions/lazy.html +0 -2
- package/typedoc/functions/oneOf.html +0 -2
- package/typedoc/functions/useApp.html +0 -6
- package/typedoc/functions/useAppGraph.html +0 -1
- package/typedoc/functions/useCapabilities.html +0 -3
- package/typedoc/functions/useCapability.html +0 -4
- package/typedoc/functions/useIntentDispatcher.html +0 -1
- package/typedoc/functions/useIntentResolver.html +0 -1
- package/typedoc/functions/useLayout.html +0 -1
- package/typedoc/functions/usePluginManager.html +0 -2
- package/typedoc/hierarchy.html +0 -1
- package/typedoc/index.html +0 -12
- package/typedoc/interfaces/LayoutAction.Toast.html +0 -10
- package/typedoc/media/LICENSE +0 -8
- package/typedoc/modules/Capabilities.html +0 -1
- package/typedoc/modules/CollaborationActions.html +0 -1
- package/typedoc/modules/Events.html +0 -1
- package/typedoc/modules/IntentAction.html +0 -1
- package/typedoc/modules/LayoutAction.html +0 -2
- package/typedoc/modules/SettingsAction.html +0 -1
- package/typedoc/modules.html +0 -1
- package/typedoc/types/ActivationEvent.html +0 -8
- package/typedoc/types/ActivationEvents.html +0 -2
- package/typedoc/types/AnyCapability.html +0 -1
- package/typedoc/types/AnyIntent.html +0 -1
- package/typedoc/types/AnyIntentChain.html +0 -1
- package/typedoc/types/AnyIntentEffectResult.html +0 -1
- package/typedoc/types/AnyIntentResolver.html +0 -1
- package/typedoc/types/AnyIntentResult.html +0 -1
- package/typedoc/types/Capabilities.FileUploader.html +0 -1
- package/typedoc/types/Capabilities.IntentResolver.html +0 -1
- package/typedoc/types/Capabilities.Layout.html +0 -1
- package/typedoc/types/Capabilities.Metadata.html +0 -1
- package/typedoc/types/Capabilities.ReactContext.html +0 -1
- package/typedoc/types/Capabilities.ReactRoot.html +0 -1
- package/typedoc/types/Capabilities.ReactSurface.html +0 -1
- package/typedoc/types/Capabilities.Settings.html +0 -4
- package/typedoc/types/Capability.html +0 -9
- package/typedoc/types/CreateAppOptions.html +0 -10
- package/typedoc/types/FileInfo.html +0 -1
- package/typedoc/types/Intent.html +0 -10
- package/typedoc/types/IntentChain.html +0 -6
- package/typedoc/types/IntentContext.html +0 -5
- package/typedoc/types/IntentData.html +0 -1
- package/typedoc/types/IntentDispatcher.html +0 -2
- package/typedoc/types/IntentDispatcherResult.html +0 -2
- package/typedoc/types/IntentEffectDefinition.html +0 -2
- package/typedoc/types/IntentEffectResult.html +0 -15
- package/typedoc/types/IntentParams.html +0 -3
- package/typedoc/types/IntentResolver.html +0 -2
- package/typedoc/types/IntentResultData.html +0 -1
- package/typedoc/types/IntentSchema.html +0 -1
- package/typedoc/types/IntentUndo.html +0 -2
- package/typedoc/types/InterfaceDef.html +0 -4
- package/typedoc/types/Label.html +0 -1
- package/typedoc/types/NodeSerializer.html +0 -8
- package/typedoc/types/PluginManagerOptions.html +0 -6
- package/typedoc/types/PluginMeta.html +0 -21
- package/typedoc/types/PromiseIntentDispatcher.html +0 -2
- package/typedoc/types/PromiseIntentUndo.html +0 -2
- package/typedoc/types/Resource.html +0 -1
- package/typedoc/types/ResourceKey.html +0 -1
- package/typedoc/types/ResourceLanguage.html +0 -1
- package/typedoc/types/SerializedNode.html +0 -4
- package/typedoc/types/SurfaceComponent.html +0 -2
- package/typedoc/types/SurfaceDefinition.html +0 -2
- package/typedoc/types/SurfaceProps.html +0 -4
- package/typedoc/variables/Capabilities.AnchorSort.html +0 -1
- package/typedoc/variables/Capabilities.AppGraph.html +0 -1
- package/typedoc/variables/Capabilities.AppGraphBuilder.html +0 -1
- package/typedoc/variables/Capabilities.AppGraphSerializer.html +0 -1
- package/typedoc/variables/Capabilities.ArtifactDefinition.html +0 -1
- package/typedoc/variables/Capabilities.FileUploader.html +0 -1
- package/typedoc/variables/Capabilities.IntentDispatcher.html +0 -1
- package/typedoc/variables/Capabilities.IntentResolver.html +0 -1
- package/typedoc/variables/Capabilities.Layout.html +0 -1
- package/typedoc/variables/Capabilities.Metadata.html +0 -1
- package/typedoc/variables/Capabilities.Null.html +0 -1
- package/typedoc/variables/Capabilities.PluginManager.html +0 -1
- package/typedoc/variables/Capabilities.ReactContext.html +0 -1
- package/typedoc/variables/Capabilities.ReactRoot.html +0 -1
- package/typedoc/variables/Capabilities.ReactSurface.html +0 -1
- package/typedoc/variables/Capabilities.RxRegistry.html +0 -1
- package/typedoc/variables/Capabilities.Settings.html +0 -1
- package/typedoc/variables/Capabilities.SettingsStore.html +0 -1
- package/typedoc/variables/Capabilities.Tools.html +0 -1
- package/typedoc/variables/Capabilities.Translations.html +0 -1
- package/typedoc/variables/Events.AppGraphReady.html +0 -2
- package/typedoc/variables/Events.DispatcherReady.html +0 -2
- package/typedoc/variables/Events.LayoutReady.html +0 -1
- package/typedoc/variables/Events.SettingsReady.html +0 -2
- package/typedoc/variables/Events.SetupAppGraph.html +0 -2
- package/typedoc/variables/Events.SetupArtifactDefinition.html +0 -2
- package/typedoc/variables/Events.SetupIntentResolver.html +0 -2
- package/typedoc/variables/Events.SetupMetadata.html +0 -2
- package/typedoc/variables/Events.SetupReactSurface.html +0 -2
- package/typedoc/variables/Events.SetupSettings.html +0 -2
- package/typedoc/variables/Events.SetupTranslations.html +0 -2
- package/typedoc/variables/Events.Startup.html +0 -2
- package/typedoc/variables/FileInfoSchema.html +0 -1
- package/typedoc/variables/INTENT_ACTION.html +0 -1
- package/typedoc/variables/INTENT_PLUGIN.html +0 -1
- package/typedoc/variables/LAYOUT_ACTION.html +0 -1
- package/typedoc/variables/LAYOUT_PLUGIN.html +0 -1
- package/typedoc/variables/Label.html +0 -1
- package/typedoc/variables/LayoutAction.Toast.html +0 -1
- package/typedoc/variables/LayoutAction.UPDATE_LAYOUT.html +0 -1
- package/typedoc/variables/PluginManagerProvider.html +0 -2
- package/typedoc/variables/Resource.html +0 -2
- package/typedoc/variables/ResourceKey.html +0 -1
- package/typedoc/variables/ResourceLanguage.html +0 -1
- package/typedoc/variables/SETTINGS_ACTION.html +0 -1
- package/typedoc/variables/SETTINGS_ID.html +0 -1
- package/typedoc/variables/SETTINGS_KEY.html +0 -1
- package/typedoc/variables/SETTINGS_PLUGIN.html +0 -1
- package/typedoc/variables/Surface.html +0 -2
- package/typedoc/variables/defaultFileTypes.html +0 -1
- /package/dist/lib/browser/{intent-dispatcher-TWKB22NI.mjs.map → chunk-J5LGTIGS.mjs.map} +0 -0
- /package/dist/lib/browser/{worker.mjs.map → common/index.mjs.map} +0 -0
- /package/dist/lib/{node-esm/intent-dispatcher-5PRM3KGH.mjs.map → browser/core/activation-event.mjs.map} +0 -0
- /package/dist/lib/{node-esm/worker.mjs.map → browser/core/capability.mjs.map} +0 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/common/index.ts", "../../../src/common/capability.ts", "../../../src/common/activation-event.ts", "../../../src/common/collaboration.ts", "../../../src/common/file.ts", "../../../src/common/operations.ts", "../../../src/common/translations.ts", "../../../src/common/plugin.ts", "../../../src/common/surface.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nexport * from './activation-event';\nexport * from './capability';\nexport * from './collaboration';\nexport * from './file';\nexport * from './graph';\nexport * from './operations';\nexport * from './plugin';\nexport * from './surface';\nexport * from './translations';\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport type * as Command$ from '@effect/cli/Command';\nimport { Atom, type Registry } from '@effect-atom/atom-react';\nimport * as Effect from 'effect/Effect';\nimport type * as Layer$ from 'effect/Layer';\nimport type * as ManagedRuntime$ from 'effect/ManagedRuntime';\nimport type * as Schema$ from 'effect/Schema';\nimport type { FC, PropsWithChildren } from 'react';\n\nimport type { AiModelResolver as AiModelResolver$, AiService as AiService$ } from '@dxos/ai';\nimport type { BuilderExtensions, GraphBuilder } from '@dxos/app-graph';\nimport type { GenericToolkit } from '@dxos/assistant';\nimport type { Blueprint } from '@dxos/blueprints';\nimport type { Database, Type } from '@dxos/echo';\nimport type { FunctionDefinition } from '@dxos/functions';\nimport type { OperationInvoker as OperationInvoker$, OperationResolver as OperationResolver$ } from '@dxos/operation';\nimport type { AnchoredTo } from '@dxos/types';\n\nimport { Capability as Capability$, type PluginManager as PluginManager$ } from '../core';\nimport type {\n HistoryTracker as HistoryTracker$,\n UndoMapping as UndoMapping$,\n UndoRegistry as UndoRegistry$,\n} from '../plugin-operation';\n\nimport type { FileInfo } from './file';\nimport type { NodeSerializer } from './graph';\nimport type { SurfaceDefinition } from './surface';\nimport type { Resource } from './translations';\n\nexport namespace Capability {\n // TODO(burdon): Sort.\n\n /**\n * @category Capability\n */\n export const Null = Capability$.make<null>('dxos.org/app-framework/capability/null');\n\n /**\n * @category Capability\n */\n export const PluginManager = Capability$.make<PluginManager$.PluginManager>(\n 'dxos.org/app-framework/capability/plugin-manager',\n );\n\n /**\n * @category Capability\n */\n export const AtomRegistry = Capability$.make<Registry.Registry>('dxos.org/app-framework/capability/atom-registry');\n\n export type ReactContext = Readonly<{\n id: string;\n dependsOn?: string[];\n context: FC<PropsWithChildren>;\n }>;\n\n /**\n * @category Capability\n */\n export const ReactContext = Capability$.make<ReactContext>('dxos.org/app-framework/capability/react-context');\n\n export type ReactRoot = Readonly<{ id: string; root: FC<PropsWithChildren> }>;\n\n /**\n * @category Capability\n */\n export const ReactRoot = Capability$.make<ReactRoot>('dxos.org/app-framework/capability/react-root');\n\n /**\n * Surface definitions that can be either React components or Web Components.\n */\n export type ReactSurface = SurfaceDefinition | readonly SurfaceDefinition[];\n\n /**\n * @category Capability\n */\n export const ReactSurface = Capability$.make<ReactSurface>('dxos.org/app-framework/common/react-surface');\n\n export type Layout = Readonly<{\n mode: string;\n dialogOpen: boolean;\n sidebarOpen: boolean;\n complementarySidebarOpen: boolean;\n /**\n * The id of the active workspace, where a workspace is a set of active items.\n */\n workspace: string;\n /**\n * Identifiers of items which are currently active in the application.\n */\n active: string[];\n /**\n * Identifiers of items which were previously active in the application.\n */\n inactive: string[];\n /**\n * Identifier of the item which should be scrolled into view.\n */\n scrollIntoView: string | undefined;\n }>;\n\n /**\n * Layout capability - provides reactive access to the current layout state.\n * Use `useAtomValue(layoutAtom)` in React or `registry.get(layoutAtom)` in Effects.\n * @category Capability\n */\n export const Layout = Capability$.make<Atom.Atom<Layout>>('dxos.org/app-framework/capability/layout');\n\n /**\n * @category Capability\n */\n export const Translations = Capability$.make<Readonly<Resource[]>>('dxos.org/app-framework/capability/translations');\n\n export type AppGraph = Readonly<{\n graph: GraphBuilder.GraphBuilder['graph'];\n explore: typeof GraphBuilder.explore;\n }>;\n\n /**\n * @category Capability\n */\n export const AppGraph = Capability$.make<AppGraph>('dxos.org/app-framework/capability/app-graph');\n\n /**\n * @category Capability\n */\n export const AppGraphBuilder = Capability$.make<BuilderExtensions>(\n 'dxos.org/app-framework/capability/app-graph-builder',\n );\n\n /**\n * @category Capability\n */\n export const AppGraphSerializer = Capability$.make<NodeSerializer[]>(\n 'dxos.org/app-framework/capability/app-graph-serializer',\n );\n\n // TODO(wittjosiah): The generics caused type inference issues for schemas when contributing settings.\n // export type Settings = Parameters<RootSettingsStore['createStore']>[0];\n // export type Settings<T extends SettingsValue = SettingsValue> = SettingsProps<T>;\n export type Settings = {\n prefix: string;\n schema: Schema$.Schema.All;\n atom: Atom.Writable<any>;\n };\n\n /**\n * Type guard to check if a value is a Settings object.\n */\n export const isSettings = (value: unknown): value is Settings =>\n typeof value === 'object' &&\n value !== null &&\n 'prefix' in value &&\n typeof (value as Settings).prefix === 'string' &&\n 'atom' in value &&\n Atom.isAtom(value.atom) &&\n Atom.isWritable(value.atom);\n\n /**\n * @category Capability\n */\n export const Settings = Capability$.make<Settings>('dxos.org/app-framework/capability/settings');\n\n export type Metadata = Readonly<{\n id: string;\n metadata: Record<string, any>;\n }>;\n\n /**\n * @category Capability\n */\n export const Metadata = Capability$.make<Metadata>('dxos.org/app-framework/capability/metadata');\n\n export type Schema = ReadonlyArray<Type.Entity.Any>;\n\n /**\n * @category Capability\n */\n export const Schema = Capability$.make<Schema>('dxos.org/app-framework/capability/schema');\n\n export type Toolkit = GenericToolkit.GenericToolkit;\n\n /**\n * @category Capability\n */\n export const Toolkit = Capability$.make<Toolkit>('dxos.org/app-framework/capability/ai-toolkit');\n\n /**\n * @category Capability\n */\n export const BlueprintDefinition = Capability$.make<Blueprint.Blueprint>(\n 'dxos.org/app-framework/capability/blueprint-definition',\n );\n\n export type AiServiceLayer = Layer$.Layer<AiService$.AiService>;\n export const AiServiceLayer = Capability$.make<AiServiceLayer>(\n 'dxos.org/app-framework/capability/ai-service-factory',\n );\n\n /**\n * Plugins can contribute them to provide model resolvers.\n */\n export const AiModelResolver = Capability$.make<Layer$.Layer<AiModelResolver$.AiModelResolver>>(\n 'dxos.org/app-framework/capability/ai-model-resolver',\n );\n\n /**\n * @category Capability\n */\n export const Functions = Capability$.make<FunctionDefinition.Any[]>('dxos.org/app-framework/capability/functions');\n\n export type FileUploader = (db: Database.Database, file: File) => Promise<FileInfo | undefined>;\n\n /**\n * @category Capability\n */\n export const FileUploader = Capability$.make<FileUploader>('dxos.org/app-framework/capability/file-uploader');\n\n export type AnchorSort = {\n key: string;\n sort: (anchorA: AnchoredTo.AnchoredTo, anchorB: AnchoredTo.AnchoredTo) => number;\n };\n\n /**\n * @category Capability\n */\n export const AnchorSort = Capability$.make<AnchorSort>('dxos.org/app-framework/capability/anchor-sort');\n\n export type AnyCommand = Command$.Command<any, any, any, any>;\n\n /**\n * @category Capability\n */\n export const Command = Capability$.make<AnyCommand>('dxos.org/app-framework/capability/command');\n\n /**\n * @category Capability\n */\n export const Layer = Capability$.make<Layer$.Layer<any, any, any>>('dxos.org/app-framework/capability/layer');\n\n export type ManagedRuntime = ManagedRuntime$.ManagedRuntime<any, any>;\n\n /**\n * @category Capability\n */\n export const ManagedRuntime = Capability$.make<ManagedRuntime>('dxos.org/app-framework/capability/managed-runtime');\n\n //\n // Operation System Capabilities\n //\n\n export type OperationResolver = OperationResolver$.OperationResolver<any, any, any, any>;\n\n /**\n * Handler registration for operations - contributed by plugins.\n * @category Capability\n */\n export const OperationResolver = Capability$.make<OperationResolver[]>(\n 'dxos.org/app-framework/capability/operation-resolver',\n );\n\n export type UndoMapping = UndoMapping$.UndoMapping;\n\n /**\n * Undo mapping registration - contributed by plugins.\n * @category Capability\n */\n export const UndoMapping = Capability$.make<UndoMapping[]>('dxos.org/app-framework/capability/undo-mapping');\n\n export type OperationInvoker = OperationInvoker$.OperationInvoker;\n\n /**\n * Operation invoker - provided by OperationPlugin.\n * @category Capability\n */\n export const OperationInvoker = Capability$.make<OperationInvoker>(\n 'dxos.org/app-framework/capability/operation-invoker',\n );\n\n export type UndoRegistry = UndoRegistry$.UndoRegistry;\n\n /**\n * Undo registry - provided by OperationPlugin.\n * @category Capability\n */\n export const UndoRegistry = Capability$.make<UndoRegistry>('dxos.org/app-framework/capability/undo-registry');\n\n export type HistoryTracker = HistoryTracker$.HistoryTracker;\n\n /**\n * History tracker - provided by OperationPlugin.\n * @category Capability\n */\n export const HistoryTracker = Capability$.make<HistoryTracker>('dxos.org/app-framework/capability/history-tracker');\n\n //\n // Atom Capability Helpers\n //\n\n /**\n * Get the current value of an atom capability.\n * @example const settings = yield* Common.Capability.getAtomValue(ThreadCapabilities.Settings);\n */\n export const getAtomValue = <T>(\n atomCapability: Capability$.InterfaceDef<Atom.Atom<T>>,\n ): Effect.Effect<T, Error, Capability$.Service> =>\n Effect.gen(function* () {\n const registry = yield* Capability$.get(AtomRegistry);\n const atom = yield* Capability$.get(atomCapability);\n return registry.get(atom);\n });\n\n /**\n * Update an atom capability value (requires writable atom).\n * @example yield* Common.Capability.updateAtomValue(ThreadCapabilities.Settings, (s) => ({ ...s, foo: true }));\n */\n export const updateAtomValue = <T>(\n atomCapability: Capability$.InterfaceDef<Atom.Writable<T>>,\n fn: (current: T) => T,\n ): Effect.Effect<void, Error, Capability$.Service> =>\n Effect.gen(function* () {\n const registry = yield* Capability$.get(AtomRegistry);\n const atom = yield* Capability$.get(atomCapability);\n registry.set(atom, fn(registry.get(atom)));\n });\n\n /**\n * Subscribe to an atom capability.\n * @example const unsubscribe = yield* Common.Capability.subscribeAtom(ThreadCapabilities.Settings, (value) => ...);\n */\n export const subscribeAtom = <T>(\n atomCapability: Capability$.InterfaceDef<Atom.Atom<T>>,\n callback: (value: T) => void,\n ): Effect.Effect<() => void, Error, Capability$.Service> =>\n Effect.gen(function* () {\n const registry = yield* Capability$.get(AtomRegistry);\n const atom = yield* Capability$.get(atomCapability);\n return registry.subscribe(atom, () => callback(registry.get(atom)));\n });\n}\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { ActivationEvent as ActivationEvent$ } from '../core';\n\nimport { Capability } from './capability';\n\nexport namespace ActivationEvent {\n /**\n * Fired when the app is started.\n */\n export const Startup = ActivationEvent$.make('dxos.org/app-framework/event/startup');\n\n //\n // Dependent Events\n //\n\n /**\n * Fired to load any newly available surfaces.\n */\n export const SetupReactSurface = ActivationEvent$.make('dxos.org/app-framework/event/setup-react-surface');\n\n /**\n * Fired to load any newly available metadata.\n */\n export const SetupMetadata = ActivationEvent$.make('dxos.org/app-framework/event/setup-metadata');\n\n /**\n * Fired before the operation invoker is activated.\n */\n export const SetupOperationResolver = ActivationEvent$.make('dxos.org/app-framework/event/setup-operation-resolver');\n\n /**\n * Fired before the managed runtime is created.\n * Plugins should contribute their Layer capabilities before this event.\n */\n export const SetupLayer = ActivationEvent$.make('dxos.org/app-framework/event/setup-layer');\n\n /**\n * Fired before the settings store is activated.\n */\n export const SetupSettings = ActivationEvent$.make('dxos.org/app-framework/event/setup-settings');\n\n /**\n * Fired before the graph is created.\n */\n export const SetupAppGraph = ActivationEvent$.make('dxos.org/app-framework/event/setup-graph');\n\n /**\n * Fired before the translations provider is created.\n */\n export const SetupTranslations = ActivationEvent$.make('dxos.org/app-framework/event/setup-translations');\n\n /**\n * Fired before the schema is created.\n */\n export const SetupSchema = ActivationEvent$.make('dxos.org/app-framework/event/setup-schema');\n\n /**\n * Fired to load any newly available artifacts definitions.\n */\n // TODO(burdon): Rename.\n export const SetupArtifactDefinition = ActivationEvent$.make(\n 'dxos.org/app-framework/event/setup-artifact-definition',\n );\n\n //\n // Triggered Events\n //\n\n /**\n * Fired after the operation invoker is ready.\n */\n export const OperationInvokerReady = ActivationEvent$.make('dxos.org/app-framework/event/operation-invoker-ready');\n\n /**\n * Fired after the managed runtime is ready.\n */\n export const ManagedRuntimeReady = ActivationEvent$.make('dxos.org/app-framework/event/managed-runtime-ready');\n\n /**\n * Fired when the graph is ready.\n */\n export const AppGraphReady = ActivationEvent$.make('dxos.org/app-framework/event/graph-ready');\n\n /**\n * Fired when plugin state is ready.\n */\n export const createStateEvent = (specifier: string) =>\n ActivationEvent$.make('dxos.org/app-framework/event/state', specifier);\n export const LayoutReady = createStateEvent(Capability.Layout.identifier);\n\n /**\n * Fired when a specific settings capability is ready.\n */\n export const createSettingsEvent = (specifier: string) =>\n ActivationEvent$.make('dxos.org/app-framework/event/settings', specifier);\n}\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Schema from 'effect/Schema';\n\nimport { Operation } from '@dxos/operation';\nimport { ContentBlock } from '@dxos/types';\n\nimport { Capability } from '../core';\n\nconst COLLABORATION_OPERATION = 'dxos.org/app-framework/collaboration/operation';\n\nexport namespace CollaborationOperation {\n export const AcceptProposal = Operation.make({\n meta: {\n key: `${COLLABORATION_OPERATION}/accept-proposal`,\n name: 'Accept Proposal',\n description: 'Accept a proposal from a collaborator.',\n },\n services: [Capability.Service],\n schema: {\n input: Schema.Struct({\n subject: Schema.Any,\n anchor: Schema.String,\n proposal: ContentBlock.Proposal,\n }),\n output: Schema.Void,\n },\n });\n}\n", "//\n// Copyright 2024 DXOS.org\n//\n\nimport * as Schema from 'effect/Schema';\n\n// TODO(burdon): See Accept attribute (uses MIME types).\n// E.g., 'image/*': ['.jpg', '.jpeg', '.png', '.gif'],\nexport const defaultFileTypes = {\n images: ['png', 'jpg', 'jpeg', 'gif'],\n media: ['mp3', 'mp4', 'mov', 'avi'],\n text: ['pdf', 'txt', 'md'],\n};\n\nexport const FileInfoSchema = Schema.Struct({\n name: Schema.String,\n type: Schema.String,\n url: Schema.optional(Schema.String),\n cid: Schema.optional(Schema.String), // TODO(burdon): Meta key? Or other common properties with other file management system? (e.g., WNFS).\n});\n\nexport type FileInfo = Schema.Schema.Type<typeof FileInfoSchema>;\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Schema from 'effect/Schema';\n\nimport { Operation } from '@dxos/operation';\n\nimport { Capability } from '../core';\n\nimport { Label } from './translations';\n\nconst LAYOUT_PLUGIN = 'dxos.org/plugin/layout';\n\n/**\n * Layout operations - Operation-based equivalents of LayoutAction intents.\n * These mirror the LayoutAction namespace but use the Operation pattern.\n */\nexport namespace LayoutOperation {\n //\n // Sidebar Operations\n //\n\n export const UpdateSidebar = Operation.make({\n meta: {\n key: `${LAYOUT_PLUGIN}/operation/update-sidebar`,\n name: 'Update Sidebar',\n description: 'Update the sidebar state.',\n },\n executionMode: 'sync',\n services: [Capability.Service],\n schema: {\n input: Schema.Struct({\n subject: Schema.optional(\n Schema.String.annotations({ description: 'URI of the component to display in the sidebar.' }),\n ),\n state: Schema.optional(\n Schema.Literal('closed', 'collapsed', 'expanded').annotations({\n description: 'Whether the sidebar is closed, collapsed, or expanded.',\n }),\n ),\n }),\n output: Schema.Void,\n },\n });\n\n export const UpdateComplementary = Operation.make({\n meta: {\n key: `${LAYOUT_PLUGIN}/operation/update-complementary`,\n name: 'Update Complementary Sidebar',\n description: 'Update the complementary sidebar state.',\n },\n executionMode: 'sync',\n services: [Capability.Service],\n schema: {\n input: Schema.Struct({\n subject: Schema.optional(\n Schema.String.annotations({ description: 'URI of the component to display in the complementary area.' }),\n ),\n state: Schema.optional(\n Schema.Literal('closed', 'collapsed', 'expanded').annotations({\n description: 'Whether the complementary sidebar is closed, collapsed, or expanded.',\n }),\n ),\n }),\n output: Schema.Void,\n },\n });\n\n //\n // Dialog Operations\n //\n\n export const UpdateDialog = Operation.make({\n meta: {\n key: `${LAYOUT_PLUGIN}/operation/update-dialog`,\n name: 'Update Dialog',\n description: 'Open, close, or update the dialog.',\n },\n executionMode: 'sync',\n services: [Capability.Service],\n schema: {\n input: Schema.Struct({\n subject: Schema.optional(\n Schema.String.annotations({ description: 'URI of the component to display in the dialog.' }),\n ),\n state: Schema.optional(Schema.Boolean.annotations({ description: 'Whether the dialog is open or closed.' })),\n type: Schema.optional(Schema.Literal('default', 'alert').annotations({ description: 'The type of dialog.' })),\n blockAlign: Schema.optional(\n Schema.Literal('start', 'center', 'end').annotations({ description: 'The alignment of the dialog.' }),\n ),\n overlayClasses: Schema.optional(\n Schema.String.annotations({ description: 'Additional classes for the dialog overlay.' }),\n ),\n overlayStyle: Schema.optional(\n Schema.Record({ key: Schema.String, value: Schema.Any }).annotations({\n description: 'Additional styles for the dialog overlay.',\n }),\n ),\n props: Schema.optional(\n Schema.Record({ key: Schema.String, value: Schema.Any }).annotations({\n description: 'Additional props for the dialog.',\n }),\n ),\n }),\n output: Schema.Void,\n },\n });\n\n //\n // Popover Operations\n //\n\n const PopoverBaseInput = Schema.Struct({\n subject: Schema.optional(\n Schema.Any.annotations({\n description: 'URI of the component to display in the popover or data to pass to the popover.',\n }),\n ),\n side: Schema.optional(\n Schema.Literal('top', 'right', 'bottom', 'left').annotations({ description: 'The side of the anchor.' }),\n ),\n state: Schema.optional(Schema.Boolean.annotations({ description: 'Whether the popover is open or closed.' })),\n props: Schema.optional(\n Schema.Record({ key: Schema.String, value: Schema.Any }).annotations({\n description: 'Additional props for the popover.',\n }),\n ),\n });\n\n const PopoverBaseWithKind = Schema.Union(\n PopoverBaseInput.pipe(\n Schema.extend(\n Schema.Struct({\n kind: Schema.Literal('base').pipe(Schema.optional),\n }),\n ),\n ),\n PopoverBaseInput.pipe(\n Schema.extend(\n Schema.Struct({\n kind: Schema.Literal('card'),\n title: Schema.optional(Label.annotations({ description: 'The title of the card.' })),\n }),\n ),\n ),\n );\n\n export const UpdatePopover = Operation.make({\n meta: {\n key: `${LAYOUT_PLUGIN}/operation/update-popover`,\n name: 'Update Popover',\n description: 'Open, close, or update a popover.',\n },\n executionMode: 'sync',\n services: [Capability.Service],\n schema: {\n input: Schema.Union(\n PopoverBaseWithKind.pipe(\n Schema.extend(\n Schema.Struct({\n variant: Schema.Literal('virtual'),\n anchor: Schema.Any.annotations({ description: 'The DOM element to anchor the popover to.' }),\n }),\n ),\n ),\n PopoverBaseWithKind.pipe(\n Schema.extend(\n Schema.Struct({\n variant: Schema.optional(Schema.Literal('react')),\n anchorId: Schema.String.annotations({\n description: 'An id that can be used to determine whether to render the anchor subcomponent.',\n }),\n }),\n ),\n ),\n ),\n output: Schema.Void,\n },\n });\n\n //\n // Toast Operations\n //\n\n export const Toast = Schema.Struct({\n id: Schema.String.annotations({ description: 'The id of the toast.' }),\n title: Schema.optional(Label.annotations({ description: 'The title of the toast.' })),\n description: Schema.optional(Label.annotations({ description: 'The description of the toast.' })),\n icon: Schema.optional(Schema.String.annotations({ description: 'The icon of the toast.' })),\n duration: Schema.optional(Schema.Number.annotations({ description: 'The duration of the toast.' })),\n closeLabel: Schema.optional(Label.annotations({ description: 'The label of the close button.' })),\n actionLabel: Schema.optional(Label.annotations({ description: 'The label of the action button.' })),\n actionAlt: Schema.optional(Label.annotations({ description: 'The alt text of the action button.' })),\n onAction: Schema.optional(\n Schema.Any.annotations({ description: 'The action to perform when the action button is clicked.' }),\n ),\n });\n\n export interface Toast extends Omit<Schema.Schema.Type<typeof Toast>, 'onAction'> {\n onAction?: () => void;\n }\n\n export const AddToast = Operation.make({\n meta: {\n key: `${LAYOUT_PLUGIN}/operation/add-toast`,\n name: 'Add Toast',\n description: 'Add a toast notification.',\n },\n executionMode: 'sync',\n services: [Capability.Service],\n schema: {\n input: Toast,\n output: Schema.Void,\n },\n });\n\n //\n // Layout Mode Operations\n //\n\n export const SetLayoutMode = Operation.make({\n meta: {\n key: `${LAYOUT_PLUGIN}/operation/set-layout-mode`,\n name: 'Set Layout Mode',\n description: 'Set the layout mode (solo, deck, fullscreen, etc.).',\n },\n executionMode: 'sync',\n services: [Capability.Service],\n schema: {\n input: Schema.Union(\n Schema.Struct({\n subject: Schema.optional(\n Schema.String.annotations({ description: 'Item which is the subject of the new layout mode.' }),\n ),\n mode: Schema.String.annotations({ description: 'The new layout mode.' }),\n }),\n Schema.Struct({\n revert: Schema.Boolean.annotations({ description: 'Revert to the previous layout mode.' }),\n }),\n ),\n output: Schema.Void,\n },\n });\n\n //\n // Workspace Operations\n //\n\n export const SwitchWorkspace = Operation.make({\n meta: {\n key: `${LAYOUT_PLUGIN}/operation/switch-workspace`,\n name: 'Switch Workspace',\n description: 'Switch to a different workspace.',\n },\n executionMode: 'sync',\n services: [Capability.Service],\n schema: {\n input: Schema.Struct({\n subject: Schema.String.annotations({ description: 'The id of the workspace to switch to.' }),\n }),\n output: Schema.Void,\n },\n });\n\n export const RevertWorkspace = Operation.make({\n meta: {\n key: `${LAYOUT_PLUGIN}/operation/revert-workspace`,\n name: 'Revert Workspace',\n description: 'Revert to the previous workspace.',\n },\n executionMode: 'sync',\n services: [Capability.Service],\n schema: {\n input: Schema.Void,\n output: Schema.Void,\n },\n });\n\n //\n // Main Content Operations\n //\n\n export const Open = Operation.make({\n meta: {\n key: `${LAYOUT_PLUGIN}/operation/open`,\n name: 'Open',\n description: 'Open items in the main content area.',\n },\n executionMode: 'sync',\n services: [Capability.Service],\n schema: {\n input: Schema.Struct({\n subject: Schema.Array(Schema.String.annotations({ description: 'Ids of the items to open.' })),\n state: Schema.optional(Schema.Literal(true).annotations({ description: 'The items are being added.' })),\n variant: Schema.optional(Schema.String.annotations({ description: 'The variant of the item to open.' })),\n key: Schema.optional(\n Schema.String.annotations({\n description: 'If provided, will replace item with a matching key (id prefix).',\n }),\n ),\n workspace: Schema.optional(Schema.String.annotations({ description: 'The workspace to open the items in.' })),\n scrollIntoView: Schema.optional(Schema.Boolean.annotations({ description: 'Scroll the items into view.' })),\n pivotId: Schema.optional(\n Schema.String.annotations({ description: 'The id of the item to place new items next to.' }),\n ),\n positioning: Schema.optional(\n Schema.Union(\n Schema.Literal('start').annotations({ description: 'The items are being added before the pivot item.' }),\n Schema.Literal('end').annotations({ description: 'The items are being added after the pivot item.' }),\n ),\n ),\n }),\n output: Schema.Void,\n },\n });\n\n export const Close = Operation.make({\n meta: {\n key: `${LAYOUT_PLUGIN}/operation/close`,\n name: 'Close',\n description: 'Close items in the main content area.',\n },\n executionMode: 'sync',\n services: [Capability.Service],\n schema: {\n input: Schema.Struct({\n subject: Schema.Array(Schema.String.annotations({ description: 'Ids of the items to close.' })),\n }),\n output: Schema.Void,\n },\n });\n\n export const Set = Operation.make({\n meta: {\n key: `${LAYOUT_PLUGIN}/operation/set`,\n name: 'Set',\n description: 'Override items in the main content area.',\n },\n executionMode: 'sync',\n services: [Capability.Service],\n schema: {\n input: Schema.Struct({\n subject: Schema.Array(Schema.String.annotations({ description: 'Ids of the items to set.' })),\n }),\n output: Schema.Void,\n },\n });\n\n //\n // Navigation Operations\n //\n\n export const ScrollIntoView = Operation.make({\n meta: {\n key: `${LAYOUT_PLUGIN}/operation/scroll-into-view`,\n name: 'Scroll Into View',\n description: 'Scroll an item into view.',\n },\n services: [Capability.Service],\n schema: {\n input: Schema.Struct({\n subject: Schema.optional(Schema.String.annotations({ description: 'The id of the item to scroll into view.' })),\n cursor: Schema.optional(Schema.String.annotations({ description: 'A cursor to scroll to within the item.' })),\n ref: Schema.optional(Schema.String.annotations({ description: 'A reference id for the scroll target.' })),\n }),\n output: Schema.Void,\n },\n });\n\n export const Expose = Operation.make({\n meta: {\n key: `${LAYOUT_PLUGIN}/operation/expose`,\n name: 'Expose',\n description: 'Expose an item in the navigation area.',\n },\n services: [Capability.Service],\n schema: {\n input: Schema.Struct({\n subject: Schema.String.annotations({ description: 'The id of the item to expose.' }),\n }),\n output: Schema.Void,\n },\n });\n}\n\nconst UNDO_NAMESPACE = 'dxos.org/app-framework/undo';\n\n/**\n * Operations related to undo/history functionality.\n */\nexport namespace UndoOperation {\n /**\n * Show an undo toast notification.\n * Fired by HistoryTracker when an undoable operation is tracked.\n */\n export const ShowUndo = Operation.make({\n meta: {\n key: `${UNDO_NAMESPACE}/operation/show-undo`,\n name: 'Show Undo',\n description: 'Show an undo toast notification.',\n },\n executionMode: 'sync',\n services: [Capability.Service],\n schema: {\n input: Schema.Struct({\n message: Schema.optional(Label.annotations({ description: 'The message to display in the undo toast.' })),\n }),\n output: Schema.Void,\n },\n });\n}\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport * as Schema from 'effect/Schema';\n\n/**\n * A Label represents translatable text - either a simple string or a tuple of [key, options].\n */\nexport const Label = Schema.Union(\n Schema.String,\n Schema.mutable(\n Schema.Tuple(\n Schema.String,\n Schema.mutable(\n Schema.Struct({\n ns: Schema.String,\n count: Schema.optional(Schema.Number),\n defaultValue: Schema.optional(Schema.String),\n }),\n ),\n ),\n ),\n);\nexport type Label = Schema.Schema.Type<typeof Label>;\n\nexport const ResourceKey = Schema.Union(Schema.String, Schema.Record({ key: Schema.String, value: Schema.Any }));\nexport type ResourceKey = Schema.Schema.Type<typeof ResourceKey>;\n\nexport const ResourceLanguage = Schema.Record({ key: Schema.String, value: ResourceKey });\nexport type ResourceLanguage = Schema.Schema.Type<typeof ResourceLanguage>;\n\n/**\n * A resource is a collection of translations for a language.\n */\nexport const Resource = Schema.Record({ key: Schema.String, value: ResourceLanguage });\nexport type Resource = Schema.Schema.Type<typeof Resource>;\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport type * as Command$ from '@effect/cli/Command';\nimport * as Effect from 'effect/Effect';\n\nimport { type Type } from '@dxos/echo';\n\nimport { Capability as Capability$, Plugin as Plugin$ } from '../core';\n\nimport { ActivationEvent } from './activation-event';\nimport { Capability } from './capability';\nimport { type Resource } from './translations';\n\ntype PluginModuleOptions = Partial<\n Pick<Plugin$.PluginModuleOptions, 'id' | 'activatesOn' | 'activatesBefore' | 'activatesAfter'>\n> &\n Pick<Plugin$.PluginModuleOptions, 'activate'>;\n\n/**\n * Helper functions for creating common plugin module patterns.\n */\nexport namespace Plugin {\n // TODO(wittjosiah): Restrict type to only allow operation handlers.\n export type OperationResolverModuleOptions = PluginModuleOptions;\n\n /**\n * Creates a module that contributes operation handlers.\n *\n * @param options Module options including the activate function and optional configuration\n * @returns A function that can be used with Plugin.addModule() in a pipe chain\n *\n * @example\n * ```ts\n * Plugin.define(meta).pipe(\n * Common.Plugin.addOperationResolverModule({\n * activate: (context) =>\n * Capability.contributes(Common.Capability.OperationResolver, [{\n * operation: MyOperation,\n * handler: (input) => Effect.succeed(...)\n * }])\n * })\n * )\n * ```\n */\n export function addOperationResolverModule<T = void>(\n options: OperationResolverModuleOptions,\n ): (builder: Plugin$.PluginBuilder<T>) => Plugin$.PluginBuilder<T> {\n return Plugin$.addModule({\n id: Capability$.getModuleTag(options.activate) ?? options.id ?? 'operation-resolver',\n activatesOn: options.activatesOn ?? ActivationEvent.SetupOperationResolver,\n activatesBefore: options.activatesBefore,\n activatesAfter: options.activatesAfter,\n activate: options.activate,\n });\n }\n\n // TODO(wittjosiah): Restrict type to only allow surfaces.\n export type SurfaceModuleOptions = PluginModuleOptions;\n\n /**\n * Creates a module that contributes React surfaces.\n *\n * @param options Module options including the activate function and optional configuration\n * @returns A function that can be used with Plugin.addModule() in a pipe chain\n *\n * @example\n * ```ts\n * Plugin.define(meta).pipe(\n * Common.Plugin.addSurfaceModule({\n * activate: (context) =>\n * Capability.contributes(Common.Capability.ReactSurface, [\n * Common.createSurface({ id: `${meta.id}/my-surface`, ... })\n * ])\n * })\n * )\n * ```\n */\n export function addSurfaceModule<T = void>(\n options: SurfaceModuleOptions,\n ): (builder: Plugin$.PluginBuilder<T>) => Plugin$.PluginBuilder<T> {\n return Plugin$.addModule({\n id: Capability$.getModuleTag(options.activate) ?? options.id ?? 'surfaces',\n activatesOn: options.activatesOn ?? ActivationEvent.SetupReactSurface,\n activatesBefore: options.activatesBefore,\n activatesAfter: options.activatesAfter,\n activate: options.activate,\n });\n }\n\n // TODO(wittjosiah): Restrict type to only allow react roots.\n export type ReactRootModuleOptions = PluginModuleOptions;\n\n /**\n * Creates a module that contributes a React root.\n */\n export function addReactRootModule<T = void>(\n options: ReactRootModuleOptions,\n ): (builder: Plugin$.PluginBuilder<T>) => Plugin$.PluginBuilder<T> {\n return Plugin$.addModule({\n id: Capability$.getModuleTag(options.activate) ?? options.id ?? 'react-root',\n activatesOn: options.activatesOn ?? ActivationEvent.Startup,\n activatesBefore: options.activatesBefore,\n activatesAfter: options.activatesAfter,\n activate: options.activate,\n });\n }\n\n // TODO(wittjosiah): Restrict type to only allow react contexts.\n export type ReactContextModuleOptions = PluginModuleOptions;\n\n /**\n * Creates a module that contributes a React context.\n */\n export function addReactContextModule<T = void>(\n options: ReactContextModuleOptions,\n ): (builder: Plugin$.PluginBuilder<T>) => Plugin$.PluginBuilder<T> {\n return Plugin$.addModule({\n id: Capability$.getModuleTag(options.activate) ?? options.id ?? 'react-context',\n activatesOn: options.activatesOn ?? ActivationEvent.Startup,\n activatesBefore: options.activatesBefore,\n activatesAfter: options.activatesAfter,\n activate: options.activate,\n });\n }\n\n // TODO(wittjosiah): Restrict type to only allow app graph builders.\n export type AppGraphModuleOptions = PluginModuleOptions;\n\n /**\n * Creates a module that contributes app graph builder extensions.\n *\n * @param options Module options including the activate function and optional configuration\n * @returns A function that can be used with Plugin.addModule() in a pipe chain\n *\n * @example\n * ```ts\n * Plugin.define(meta).pipe(\n * Common.Plugin.addAppGraphModule({\n * activate: Effect.fnUntraced(function* () {\n * const extensions = yield* GraphBuilder.createExtension({\n * id: meta.id,\n * match: NodeMatcher.whenRoot,\n * // All callbacks must return Effects.\n * actions: () => Effect.succeed([{\n * id: 'my-action',\n * // Action data returns Effect for automatic context access.\n * data: Effect.fnUntraced(function* () {\n * yield* Operation.invoke(MyOperation, { ... });\n * }),\n * properties: { label: 'My Action', icon: 'ph--icon' },\n * }]),\n * connector: (node, get) => Effect.succeed([{ id: 'child', ... }]),\n * });\n * return Capability.contributes(Common.Capability.AppGraphBuilder, extensions);\n * })\n * })\n * )\n * ```\n */\n export function addAppGraphModule<T = void>(\n options: AppGraphModuleOptions,\n ): (builder: Plugin$.PluginBuilder<T>) => Plugin$.PluginBuilder<T> {\n return Plugin$.addModule({\n id: Capability$.getModuleTag(options.activate) ?? options.id ?? 'app-graph-builder',\n activatesOn: options.activatesOn ?? ActivationEvent.SetupAppGraph,\n activatesBefore: options.activatesBefore,\n activatesAfter: options.activatesAfter,\n activate: options.activate,\n });\n }\n\n export type TranslationsModuleOptions = Omit<PluginModuleOptions, 'activate'> & {\n translations: Resource | Resource[];\n };\n\n /**\n * Creates a module that contributes translations.\n *\n * @param options Module options including translations and optional configuration\n * @returns A function that can be used with Plugin.addModule() in a pipe chain\n *\n * @example\n * ```ts\n * Plugin.define(meta).pipe(\n * Common.Plugin.addTranslationsModule({\n * translations: translations\n * })\n * )\n * ```\n */\n export function addTranslationsModule<T = void>(\n options: TranslationsModuleOptions,\n ): (builder: Plugin$.PluginBuilder<T>) => Plugin$.PluginBuilder<T> {\n return Plugin$.addModule({\n id: options?.id ?? 'translations',\n activatesOn: options?.activatesOn ?? ActivationEvent.SetupTranslations,\n activatesBefore: options?.activatesBefore,\n activatesAfter: options?.activatesAfter,\n activate: Effect.fnUntraced(function* () {\n return Capability$.contributes(\n Capability.Translations,\n Array.isArray(options.translations) ? options.translations : ([options.translations] as Resource[]),\n );\n }),\n });\n }\n\n export type MetadataModuleOptions = Omit<PluginModuleOptions, 'activate'> & {\n metadata: Capability.Metadata | Capability.Metadata[];\n };\n\n /**\n * Creates a module that contributes metadata.\n *\n * @param options Module options including metadata and optional configuration\n * @returns A function that can be used with Plugin.addModule() in a pipe chain\n *\n * @example\n * ```ts\n * Plugin.define(meta).pipe(\n * Common.Plugin.addMetadataModule({\n * metadata: {\n * id: MyType.typename,\n * metadata: { icon: 'ph--icon', ... }\n * }\n * })\n * )\n * ```\n */\n export function addMetadataModule<T = void>(\n options: MetadataModuleOptions,\n ): (builder: Plugin$.PluginBuilder<T>) => Plugin$.PluginBuilder<T> {\n return Plugin$.addModule({\n id: options.id ?? 'metadata',\n activatesOn: options.activatesOn ?? ActivationEvent.SetupMetadata,\n activatesBefore: options.activatesBefore,\n activatesAfter: options.activatesAfter,\n activate: Effect.fnUntraced(function* () {\n return (Array.isArray(options.metadata) ? options.metadata : [options.metadata]).map((m) =>\n Capability$.contributes(Capability.Metadata, m),\n );\n }),\n });\n }\n\n // TODO(wittjosiah): Restrict type to only allow settings.\n export type SettingsModuleOptions = PluginModuleOptions;\n\n /**\n * Creates a module that contributes settings.\n */\n export function addSettingsModule<T = void>(\n options: SettingsModuleOptions,\n ): (builder: Plugin$.PluginBuilder<T>) => Plugin$.PluginBuilder<T> {\n return Plugin$.addModule({\n id: Capability$.getModuleTag(options.activate) ?? options.id ?? 'settings',\n activatesOn: options.activatesOn ?? ActivationEvent.SetupSettings,\n activatesBefore: options.activatesBefore,\n activatesAfter: options.activatesAfter,\n activate: options.activate,\n });\n }\n\n // TODO(wittjosiah): Restrict type to only allow blueprint definitions.\n export type BlueprintDefinitionModuleOptions = PluginModuleOptions;\n\n /**\n * Creates a module that contributes blueprint definitions.\n *\n * @param options Module options including the activate function and optional configuration\n * @returns A function that can be used with Plugin.addModule() in a pipe chain\n *\n * @example\n * ```ts\n * Plugin.define(meta).pipe(\n * Common.Plugin.addBlueprintDefinitionModule({\n * activate: (context) =>\n * Capability.contributes(Common.Capability.BlueprintDefinition, [\n * BlueprintDefinition.make({ key: 'my-blueprint', ... })\n * ])\n * })\n * )\n * ```\n */\n export function addBlueprintDefinitionModule<T = void>(\n options: BlueprintDefinitionModuleOptions,\n ): (builder: Plugin$.PluginBuilder<T>) => Plugin$.PluginBuilder<T> {\n return Plugin$.addModule({\n id: Capability$.getModuleTag(options.activate) ?? options.id ?? 'blueprint-definition',\n activatesOn: options.activatesOn ?? ActivationEvent.SetupArtifactDefinition,\n activatesBefore: options.activatesBefore,\n activatesAfter: options.activatesAfter,\n activate: options.activate,\n });\n }\n\n export type SchemaModuleOptions = Omit<PluginModuleOptions, 'activate'> & {\n schema: ReadonlyArray<Type.Entity.Any>;\n };\n\n /**\n * Creates a module that contributes schemas.\n *\n * @param options Module options including schema array and optional configuration\n * @returns A function that can be used with Plugin.addModule() in a pipe chain\n *\n * @example\n * ```ts\n * Plugin.define(meta).pipe(\n * Common.Plugin.addSchemaModule({\n * schema: [MyType.Type, AnotherType.Type]\n * })\n * )\n * ```\n */\n export function addSchemaModule<T = void>(\n options: SchemaModuleOptions,\n ): (builder: Plugin$.PluginBuilder<T>) => Plugin$.PluginBuilder<T> {\n return Plugin$.addModule({\n id: options.id ?? 'schema',\n activatesOn: options.activatesOn ?? ActivationEvent.SetupSchema,\n activatesBefore: options.activatesBefore,\n activatesAfter: options.activatesAfter,\n activate: Effect.fnUntraced(function* () {\n return Capability$.contributes(Capability.Schema, options.schema);\n }),\n });\n }\n\n export type CommandModuleOptions = Omit<PluginModuleOptions, 'activate'> & {\n commands: ReadonlyArray<Command$.Command<any, any, any, any>>;\n };\n\n /**\n * Creates a module that contributes CLI commands.\n *\n * @param options Module options including commands and optional configuration\n * @returns A function that can be used with Plugin.addModule() in a pipe chain\n *\n * @example\n * ```ts\n * Plugin.define(meta).pipe(\n * Common.Plugin.addCommandModule({\n * commands: [myCommand, anotherCommand]\n * })\n * )\n * ```\n */\n export function addCommandModule<T = void>(\n options: CommandModuleOptions,\n ): (builder: Plugin$.PluginBuilder<T>) => Plugin$.PluginBuilder<T> {\n return Plugin$.addModule({\n id: options.id ?? 'cli-commands',\n activatesOn: options.activatesOn ?? ActivationEvent.Startup,\n activatesBefore: options.activatesBefore,\n activatesAfter: options.activatesAfter,\n activate: Effect.fnUntraced(function* () {\n return options.commands.map((cmd) => Capability$.contributes(Capability.Command, cmd));\n }),\n });\n }\n}\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport type { PropsWithChildren, ReactNode, RefCallback } from 'react';\n\nimport type { MakeOptional, Position } from '@dxos/util';\n\nimport type { ErrorBoundary } from '../react';\n\n/**\n * SurfaceProps are the props that are passed to the Surface component.\n */\nexport type SurfaceProps<T extends Record<string, any> = Record<string, unknown>> = {\n /**\n * If specified, the Surface will be wrapped in an error boundary.\n * The fallback component will be rendered if an error occurs.\n */\n fallback?: ErrorBoundary['props']['fallback'];\n\n /**\n * If specified, the Surface will be wrapped in a suspense boundary.\n * The placeholder component will be rendered while the surface component is loading.\n */\n placeholder?: ReactNode;\n} & MakeOptional<CoreSurfaceProps<T>, 'id' | 'data'> &\n /**\n * Additional props to pass to the component.\n * These props are not used by Surface itself but may be used by components which resolve the surface.\n * Exclude known prop names to prevent overriding well-defined props.\n */\n {\n [K in keyof Record<string, any>]: K extends keyof CoreSurfaceProps<T> | 'fallback' | 'placeholder' ? never : any;\n };\n\n/**\n * NOTE: If `[key: string]: unknown` is included in shared types, when re-used other fields become unknown as well.\n */\nexport type CoreSurfaceProps<T extends Record<string, any> = Record<string, unknown>> = PropsWithChildren<{\n /**\n * ID for debugging.\n */\n id: string;\n\n /**\n * Role defines how the data should be rendered.\n */\n role: string;\n\n /**\n * The data to be rendered by the surface.\n * NOTE: This must be a stable value.\n */\n data: T;\n\n /**\n * If more than one component is resolved, the limit determines how many are rendered.\n */\n limit?: number | undefined;\n}>;\n\nexport type SurfaceComponentProps<T extends Record<string, any> = Record<string, any>> = CoreSurfaceProps<T> & {\n ref?: RefCallback<HTMLElement>;\n} & Record<string, any>;\n\n/**\n * React component used to render a surface once is has matched.\n */\nexport type SurfaceComponent<T extends Record<string, any> = Record<string, any>> = (\n props: SurfaceComponentProps<T>,\n) => ReactNode;\n\n/**\n * Definition of when a React SurfaceComponent should be rendered.\n */\nexport type ReactSurfaceDefinition<T extends Record<string, any> = any> = Readonly<{\n kind: 'react';\n id: string;\n role: string | string[];\n position?: Position;\n component: SurfaceComponent<T>;\n filter?: (data: Record<string, unknown>) => data is T;\n}>;\n\n/**\n * Definition of when a Web Component surface should be rendered.\n */\nexport type WebComponentSurfaceDefinition<T extends Record<string, any> = any> = Readonly<{\n kind: 'web-component';\n id: string;\n role: string | string[];\n position?: Position;\n /**\n * The tag name of the Web Component to render.\n * The Web Component will receive the same props as React surfaces via properties/attributes.\n */\n tagName: string;\n filter?: (data: Record<string, unknown>) => data is T;\n}>;\n\n/**\n * Definition of when a surface (React or Web Component) should be rendered.\n */\nexport type SurfaceDefinition<T extends Record<string, any> = any> =\n | ReactSurfaceDefinition<T>\n | WebComponentSurfaceDefinition<T>;\n\n/**\n * Creates a React surface definition.\n */\nexport const createSurface = <T extends Record<string, any> = any>(\n definition: Omit<ReactSurfaceDefinition<T>, 'kind'>,\n): ReactSurfaceDefinition<T> => ({ ...definition, kind: 'react' });\n\n/**\n * Creates a Web Component surface definition.\n */\nexport const createWebSurface = <T extends Record<string, any> = any>(\n definition: Omit<WebComponentSurfaceDefinition<T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AAW,aAAA;AAC1B,eAAOrB,QAAQ2C,SAASZ,IAAI,CAACa,QAAQxC,mBAAYkB,YAAYC,WAAWsB,SAASD,GAAAA,CAAAA;MACnF,CAAA;IACF,CAAA;EACF;AAbC,EAAA9C,QACe4C,mBAAAA;AAalB,GApViB5C,WAAAA,SAAAA,CAAAA,EAAAA;;;;ACuFV,IAAMgD,gBAAgB,CAC3BC,gBAC+B;EAAE,GAAGA;EAAYC,MAAM;AAAQ;AAKzD,IAAMC,mBAAmB,CAC9BF,gBACsC;EAAE,GAAGA;EAAYC,MAAM;AAAgB;",
|
|
6
|
+
"names": ["Atom", "Effect", "Capability", "Null", "Capability$", "make", "PluginManager", "AtomRegistry", "ReactContext", "ReactRoot", "ReactSurface", "Layout", "Translations", "AppGraph", "AppGraphBuilder", "AppGraphSerializer", "isSettings", "value", "prefix", "Atom", "isAtom", "atom", "isWritable", "Settings", "Metadata", "Schema", "Toolkit", "BlueprintDefinition", "AiServiceLayer", "AiModelResolver", "Functions", "FileUploader", "AnchorSort", "Command", "Layer", "ManagedRuntime", "OperationResolver", "UndoMapping", "OperationInvoker", "UndoRegistry", "HistoryTracker", "getAtomValue", "atomCapability", "gen", "registry", "get", "updateAtomValue", "fn", "set", "subscribeAtom", "callback", "subscribe", "ActivationEvent", "Startup", "ActivationEvent$", "make", "SetupReactSurface", "SetupMetadata", "SetupOperationResolver", "SetupLayer", "SetupSettings", "SetupAppGraph", "SetupTranslations", "SetupSchema", "SetupArtifactDefinition", "OperationInvokerReady", "ManagedRuntimeReady", "AppGraphReady", "createStateEvent", "specifier", "LayoutReady", "Capability", "Layout", "identifier", "createSettingsEvent", "Schema", "Operation", "ContentBlock", "COLLABORATION_OPERATION", "CollaborationOperation", "AcceptProposal", "Operation", "make", "meta", "key", "name", "description", "services", "Capability", "Service", "schema", "input", "Struct", "subject", "Any", "anchor", "String", "proposal", "ContentBlock", "Proposal", "output", "Void", "Schema", "defaultFileTypes", "images", "media", "text", "FileInfoSchema", "Struct", "name", "String", "type", "url", "optional", "cid", "Schema", "Operation", "Schema", "Label", "Union", "String", "mutable", "Tuple", "Struct", "ns", "count", "optional", "Number", "defaultValue", "ResourceKey", "Record", "key", "value", "Any", "ResourceLanguage", "Resource", "LAYOUT_PLUGIN", "LayoutOperation", "UpdateSidebar", "Operation", "make", "meta", "key", "name", "description", "executionMode", "services", "Capability", "Service", "schema", "input", "Struct", "subject", "optional", "String", "annotations", "state", "Literal", "output", "Void", "UpdateComplementary", "UpdateDialog", "Boolean", "type", "blockAlign", "overlayClasses", "overlayStyle", "Record", "value", "Any", "props", "PopoverBaseInput", "side", "PopoverBaseWithKind", "Union", "pipe", "extend", "kind", "title", "Label", "UpdatePopover", "variant", "anchor", "anchorId", "Toast", "id", "icon", "duration", "Number", "closeLabel", "actionLabel", "actionAlt", "onAction", "AddToast", "SetLayoutMode", "mode", "revert", "SwitchWorkspace", "RevertWorkspace", "Open", "Array", "workspace", "scrollIntoView", "pivotId", "positioning", "Close", "Set", "ScrollIntoView", "cursor", "ref", "Expose", "UNDO_NAMESPACE", "UndoOperation", "ShowUndo", "message", "Effect", "Plugin", "addOperationResolverModule", "options", "Plugin$", "addModule", "id", "Capability$", "getModuleTag", "activate", "activatesOn", "ActivationEvent", "SetupOperationResolver", "activatesBefore", "activatesAfter", "addSurfaceModule", "SetupReactSurface", "addReactRootModule", "Startup", "addReactContextModule", "addAppGraphModule", "SetupAppGraph", "addTranslationsModule", "SetupTranslations", "fnUntraced", "contributes", "Capability", "Translations", "Array", "isArray", "translations", "addMetadataModule", "SetupMetadata", "metadata", "map", "m", "Metadata", "addSettingsModule", "SetupSettings", "addBlueprintDefinitionModule", "SetupArtifactDefinition", "addSchemaModule", "SetupSchema", "Schema", "schema", "addCommandModule", "commands", "cmd", "Command", "createSurface", "definition", "kind", "createWebSurface"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/context.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { createContext } from '@dxos/web-context';\n\nimport { type PluginManager } from './core';\n\nexport const PluginManagerContext = createContext<PluginManager.PluginManager>('dxos.org/app-framework/plugin-manager');\n"],
|
|
5
|
+
"mappings": ";AAIA,SAASA,qBAAqB;AAIvB,IAAMC,uBAAuBC,cAA2C,uCAAA;",
|
|
6
|
+
"names": ["createContext", "PluginManagerContext", "createContext"]
|
|
7
|
+
}
|