@dxos/app-framework 0.8.3 → 0.8.4-main.2e9d522

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 (251) hide show
  1. package/.swc/plugins/v7_linux_x86_64_13.0.0/f45bdff002284d9e8f9ef3f0be909de12da36c049cbcf261ac78fc00abb09a2d +0 -0
  2. package/.swc/plugins/v7_linux_x86_64_13.0.0/fce1bdb8e20a094e4af08bad09cc81497ed0e2e7c51223b07d371063cca18429 +0 -0
  3. package/README.md +0 -8
  4. package/dist/lib/browser/{app-graph-builder-BI4VVKSW.mjs → app-graph-builder-LYF7EKNN.mjs} +4 -4
  5. package/dist/lib/browser/{chunk-EHM4UI3V.mjs → chunk-FMN65HSW.mjs} +26 -25
  6. package/dist/lib/browser/{chunk-EHM4UI3V.mjs.map → chunk-FMN65HSW.mjs.map} +3 -3
  7. package/dist/lib/browser/{chunk-DIBVO47Z.mjs → chunk-FO2PH7M3.mjs} +27 -18
  8. package/dist/lib/browser/{chunk-DIBVO47Z.mjs.map → chunk-FO2PH7M3.mjs.map} +3 -3
  9. package/dist/lib/browser/{chunk-WWEJRWFX.mjs → chunk-ORWHM7CO.mjs} +2 -2
  10. package/dist/lib/browser/index.mjs +10 -10
  11. package/dist/lib/browser/index.mjs.map +3 -3
  12. package/dist/lib/browser/{intent-dispatcher-XVBOMF2Y.mjs → intent-dispatcher-LSYQZSEB.mjs} +2 -2
  13. package/dist/lib/browser/{intent-resolver-3QMBXLIY.mjs → intent-resolver-ZTNOSO3A.mjs} +4 -4
  14. package/dist/lib/browser/meta.json +1 -1
  15. package/dist/lib/browser/{store-5H7XPJGA.mjs → store-KML2R4IE.mjs} +3 -3
  16. package/dist/lib/browser/testing/index.mjs +3 -3
  17. package/dist/lib/browser/worker.mjs +1 -1
  18. package/dist/lib/node-esm/{app-graph-builder-NROP6RPQ.mjs → app-graph-builder-SAOWGJDK.mjs} +4 -4
  19. package/dist/lib/node-esm/{chunk-FHNZZWP4.mjs → chunk-73HGSHKE.mjs} +27 -18
  20. package/dist/lib/node-esm/{chunk-FHNZZWP4.mjs.map → chunk-73HGSHKE.mjs.map} +3 -3
  21. package/dist/lib/node-esm/{chunk-I6BVZMAH.mjs → chunk-UMZQERLE.mjs} +2 -2
  22. package/dist/lib/node-esm/{chunk-2J6FVECI.mjs → chunk-ZEZ4FVEU.mjs} +26 -25
  23. package/dist/lib/node-esm/{chunk-2J6FVECI.mjs.map → chunk-ZEZ4FVEU.mjs.map} +3 -3
  24. package/dist/lib/node-esm/index.mjs +10 -10
  25. package/dist/lib/node-esm/index.mjs.map +3 -3
  26. package/dist/lib/node-esm/{intent-dispatcher-7JPGLCQ5.mjs → intent-dispatcher-6CYNGPSW.mjs} +2 -2
  27. package/dist/lib/node-esm/{intent-resolver-VY4X5UHN.mjs → intent-resolver-W7Z7WFFM.mjs} +4 -4
  28. package/dist/lib/node-esm/meta.json +1 -1
  29. package/dist/lib/node-esm/{store-UKD2R2KA.mjs → store-QEXGXLWZ.mjs} +3 -3
  30. package/dist/lib/node-esm/testing/index.mjs +3 -3
  31. package/dist/lib/node-esm/worker.mjs +1 -1
  32. package/dist/types/src/common/capabilities.d.ts +4 -2
  33. package/dist/types/src/common/capabilities.d.ts.map +1 -1
  34. package/dist/types/src/common/index.d.ts +1 -1
  35. package/dist/types/src/common/index.d.ts.map +1 -1
  36. package/dist/types/src/plugin-settings/translations.d.ts +7 -8
  37. package/dist/types/src/plugin-settings/translations.d.ts.map +1 -1
  38. package/dist/types/tsconfig.tsbuildinfo +1 -1
  39. package/moon.yml +14 -0
  40. package/package.json +28 -28
  41. package/src/App.tsx +3 -3
  42. package/src/common/capabilities.ts +9 -3
  43. package/src/common/index.ts +1 -1
  44. package/src/core/manager.test.ts +1 -2
  45. package/src/plugin-settings/SettingsPlugin.ts +1 -1
  46. package/src/plugin-settings/translations.ts +4 -2
  47. package/tsconfig.json +4 -1
  48. package/vitest.config.ts +5 -2
  49. package/.eslintrc.cjs +0 -9
  50. package/README.yml +0 -5
  51. package/dist/lib/node/app-graph-builder-H7QVE4MJ.cjs +0 -146
  52. package/dist/lib/node/app-graph-builder-H7QVE4MJ.cjs.map +0 -7
  53. package/dist/lib/node/chunk-G774ASXO.cjs +0 -58
  54. package/dist/lib/node/chunk-G774ASXO.cjs.map +0 -7
  55. package/dist/lib/node/chunk-VSOSVDQ3.cjs +0 -1551
  56. package/dist/lib/node/chunk-VSOSVDQ3.cjs.map +0 -7
  57. package/dist/lib/node/chunk-YGAY3H34.cjs +0 -429
  58. package/dist/lib/node/chunk-YGAY3H34.cjs.map +0 -7
  59. package/dist/lib/node/index.cjs +0 -193
  60. package/dist/lib/node/index.cjs.map +0 -7
  61. package/dist/lib/node/intent-dispatcher-C3SVKJ62.cjs +0 -32
  62. package/dist/lib/node/intent-dispatcher-C3SVKJ62.cjs.map +0 -7
  63. package/dist/lib/node/intent-resolver-IOJDYO34.cjs +0 -46
  64. package/dist/lib/node/intent-resolver-IOJDYO34.cjs.map +0 -7
  65. package/dist/lib/node/meta.json +0 -1
  66. package/dist/lib/node/store-ESF5VR57.cjs +0 -45
  67. package/dist/lib/node/store-ESF5VR57.cjs.map +0 -7
  68. package/dist/lib/node/testing/index.cjs +0 -119
  69. package/dist/lib/node/testing/index.cjs.map +0 -7
  70. package/dist/lib/node/worker.cjs +0 -101
  71. package/dist/lib/node/worker.cjs.map +0 -7
  72. package/project.json +0 -29
  73. package/typedoc/.nojekyll +0 -1
  74. package/typedoc/assets/hierarchy.js +0 -1
  75. package/typedoc/assets/highlight.css +0 -106
  76. package/typedoc/assets/icons.js +0 -18
  77. package/typedoc/assets/icons.svg +0 -1
  78. package/typedoc/assets/main.js +0 -60
  79. package/typedoc/assets/navigation.js +0 -1
  80. package/typedoc/assets/search.js +0 -1
  81. package/typedoc/assets/style.css +0 -1640
  82. package/typedoc/classes/CollaborationActions.InsertContent.html +0 -421
  83. package/typedoc/classes/ErrorBoundary.html +0 -125
  84. package/typedoc/classes/IntentAction.ShowUndo.html +0 -227
  85. package/typedoc/classes/IntentAction.Track.html +0 -266
  86. package/typedoc/classes/LayoutAction.AddToast.html +0 -265
  87. package/typedoc/classes/LayoutAction.Close.html +0 -382
  88. package/typedoc/classes/LayoutAction.Expose.html +0 -265
  89. package/typedoc/classes/LayoutAction.Open.html +0 -1123
  90. package/typedoc/classes/LayoutAction.RevertWorkspace.html +0 -343
  91. package/typedoc/classes/LayoutAction.ScrollIntoView.html +0 -460
  92. package/typedoc/classes/LayoutAction.Set.html +0 -460
  93. package/typedoc/classes/LayoutAction.SetLayoutMode.html +0 -499
  94. package/typedoc/classes/LayoutAction.SwitchWorkspace.html +0 -265
  95. package/typedoc/classes/LayoutAction.UpdateComplementary.html +0 -616
  96. package/typedoc/classes/LayoutAction.UpdateDialog.html +0 -1123
  97. package/typedoc/classes/LayoutAction.UpdateLayout.html +0 -461
  98. package/typedoc/classes/LayoutAction.UpdatePopover.html +0 -1435
  99. package/typedoc/classes/LayoutAction.UpdateSidebar.html +0 -616
  100. package/typedoc/classes/Plugin.html +0 -6
  101. package/typedoc/classes/PluginContext.html +0 -38
  102. package/typedoc/classes/PluginManager.html +0 -43
  103. package/typedoc/classes/PluginModule.html +0 -18
  104. package/typedoc/classes/SettingsAction.Open.html +0 -226
  105. package/typedoc/classes/SettingsAction.OpenPluginRegistry.html +0 -265
  106. package/typedoc/functions/Events.createStateEvent.html +0 -2
  107. package/typedoc/functions/IntentPlugin.html +0 -1
  108. package/typedoc/functions/SettingsPlugin.html +0 -1
  109. package/typedoc/functions/allOf.html +0 -2
  110. package/typedoc/functions/chain.html +0 -3
  111. package/typedoc/functions/contributes.html +0 -2
  112. package/typedoc/functions/createDispatcher.html +0 -3
  113. package/typedoc/functions/createIntent.html +0 -6
  114. package/typedoc/functions/createResolver.html +0 -2
  115. package/typedoc/functions/createSurface.html +0 -2
  116. package/typedoc/functions/defineCapability.html +0 -2
  117. package/typedoc/functions/defineEvent.html +0 -2
  118. package/typedoc/functions/defineModule.html +0 -2
  119. package/typedoc/functions/definePlugin.html +0 -2
  120. package/typedoc/functions/eventKey.html +0 -2
  121. package/typedoc/functions/getEvents.html +0 -2
  122. package/typedoc/functions/isAllOf.html +0 -2
  123. package/typedoc/functions/isOneOf.html +0 -2
  124. package/typedoc/functions/isSurfaceAvailable.html +0 -2
  125. package/typedoc/functions/lazy.html +0 -2
  126. package/typedoc/functions/oneOf.html +0 -2
  127. package/typedoc/functions/useApp.html +0 -6
  128. package/typedoc/functions/useAppGraph.html +0 -1
  129. package/typedoc/functions/useCapabilities.html +0 -3
  130. package/typedoc/functions/useCapability.html +0 -4
  131. package/typedoc/functions/useIntentDispatcher.html +0 -1
  132. package/typedoc/functions/useIntentResolver.html +0 -1
  133. package/typedoc/functions/useLayout.html +0 -1
  134. package/typedoc/functions/usePluginManager.html +0 -2
  135. package/typedoc/hierarchy.html +0 -1
  136. package/typedoc/index.html +0 -16
  137. package/typedoc/interfaces/LayoutAction.Toast.html +0 -10
  138. package/typedoc/media/LICENSE +0 -8
  139. package/typedoc/modules/Capabilities.html +0 -1
  140. package/typedoc/modules/CollaborationActions.html +0 -1
  141. package/typedoc/modules/Events.html +0 -1
  142. package/typedoc/modules/IntentAction.html +0 -1
  143. package/typedoc/modules/LayoutAction.html +0 -2
  144. package/typedoc/modules/SettingsAction.html +0 -1
  145. package/typedoc/modules.html +0 -1
  146. package/typedoc/types/ActivationEvent.html +0 -8
  147. package/typedoc/types/ActivationEvents.html +0 -2
  148. package/typedoc/types/AnyCapability.html +0 -1
  149. package/typedoc/types/AnyIntent.html +0 -1
  150. package/typedoc/types/AnyIntentChain.html +0 -1
  151. package/typedoc/types/AnyIntentEffectResult.html +0 -1
  152. package/typedoc/types/AnyIntentResolver.html +0 -1
  153. package/typedoc/types/AnyIntentResult.html +0 -1
  154. package/typedoc/types/Capabilities.FileUploader.html +0 -1
  155. package/typedoc/types/Capabilities.IntentResolver.html +0 -1
  156. package/typedoc/types/Capabilities.Layout.html +0 -1
  157. package/typedoc/types/Capabilities.Metadata.html +0 -1
  158. package/typedoc/types/Capabilities.ReactContext.html +0 -1
  159. package/typedoc/types/Capabilities.ReactRoot.html +0 -1
  160. package/typedoc/types/Capabilities.ReactSurface.html +0 -1
  161. package/typedoc/types/Capabilities.Settings.html +0 -4
  162. package/typedoc/types/Capability.html +0 -9
  163. package/typedoc/types/CreateAppOptions.html +0 -10
  164. package/typedoc/types/FileInfo.html +0 -1
  165. package/typedoc/types/Intent.html +0 -10
  166. package/typedoc/types/IntentChain.html +0 -6
  167. package/typedoc/types/IntentContext.html +0 -5
  168. package/typedoc/types/IntentData.html +0 -1
  169. package/typedoc/types/IntentDispatcher.html +0 -2
  170. package/typedoc/types/IntentDispatcherResult.html +0 -2
  171. package/typedoc/types/IntentEffectDefinition.html +0 -2
  172. package/typedoc/types/IntentEffectResult.html +0 -15
  173. package/typedoc/types/IntentParams.html +0 -3
  174. package/typedoc/types/IntentResolver.html +0 -2
  175. package/typedoc/types/IntentResultData.html +0 -1
  176. package/typedoc/types/IntentSchema.html +0 -1
  177. package/typedoc/types/IntentUndo.html +0 -2
  178. package/typedoc/types/InterfaceDef.html +0 -4
  179. package/typedoc/types/Label.html +0 -1
  180. package/typedoc/types/NodeSerializer.html +0 -8
  181. package/typedoc/types/PluginManagerOptions.html +0 -6
  182. package/typedoc/types/PluginMeta.html +0 -21
  183. package/typedoc/types/PromiseIntentDispatcher.html +0 -2
  184. package/typedoc/types/PromiseIntentUndo.html +0 -2
  185. package/typedoc/types/Resource.html +0 -1
  186. package/typedoc/types/ResourceKey.html +0 -1
  187. package/typedoc/types/ResourceLanguage.html +0 -1
  188. package/typedoc/types/SerializedNode.html +0 -4
  189. package/typedoc/types/SurfaceComponent.html +0 -2
  190. package/typedoc/types/SurfaceDefinition.html +0 -2
  191. package/typedoc/types/SurfaceProps.html +0 -4
  192. package/typedoc/variables/Capabilities.AnchorSort.html +0 -1
  193. package/typedoc/variables/Capabilities.AppGraph.html +0 -1
  194. package/typedoc/variables/Capabilities.AppGraphBuilder.html +0 -1
  195. package/typedoc/variables/Capabilities.AppGraphSerializer.html +0 -1
  196. package/typedoc/variables/Capabilities.ArtifactDefinition.html +0 -1
  197. package/typedoc/variables/Capabilities.FileUploader.html +0 -1
  198. package/typedoc/variables/Capabilities.IntentDispatcher.html +0 -1
  199. package/typedoc/variables/Capabilities.IntentResolver.html +0 -1
  200. package/typedoc/variables/Capabilities.Layout.html +0 -1
  201. package/typedoc/variables/Capabilities.Metadata.html +0 -1
  202. package/typedoc/variables/Capabilities.Null.html +0 -1
  203. package/typedoc/variables/Capabilities.PluginManager.html +0 -1
  204. package/typedoc/variables/Capabilities.ReactContext.html +0 -1
  205. package/typedoc/variables/Capabilities.ReactRoot.html +0 -1
  206. package/typedoc/variables/Capabilities.ReactSurface.html +0 -1
  207. package/typedoc/variables/Capabilities.RxRegistry.html +0 -1
  208. package/typedoc/variables/Capabilities.Settings.html +0 -1
  209. package/typedoc/variables/Capabilities.SettingsStore.html +0 -1
  210. package/typedoc/variables/Capabilities.Tools.html +0 -1
  211. package/typedoc/variables/Capabilities.Translations.html +0 -1
  212. package/typedoc/variables/Events.AppGraphReady.html +0 -2
  213. package/typedoc/variables/Events.DispatcherReady.html +0 -2
  214. package/typedoc/variables/Events.LayoutReady.html +0 -1
  215. package/typedoc/variables/Events.SettingsReady.html +0 -2
  216. package/typedoc/variables/Events.SetupAppGraph.html +0 -2
  217. package/typedoc/variables/Events.SetupArtifactDefinition.html +0 -2
  218. package/typedoc/variables/Events.SetupIntentResolver.html +0 -2
  219. package/typedoc/variables/Events.SetupMetadata.html +0 -2
  220. package/typedoc/variables/Events.SetupReactSurface.html +0 -2
  221. package/typedoc/variables/Events.SetupSettings.html +0 -2
  222. package/typedoc/variables/Events.SetupTranslations.html +0 -2
  223. package/typedoc/variables/Events.Startup.html +0 -2
  224. package/typedoc/variables/FileInfoSchema.html +0 -1
  225. package/typedoc/variables/INTENT_ACTION.html +0 -1
  226. package/typedoc/variables/INTENT_PLUGIN.html +0 -1
  227. package/typedoc/variables/LAYOUT_ACTION.html +0 -1
  228. package/typedoc/variables/LAYOUT_PLUGIN.html +0 -1
  229. package/typedoc/variables/Label.html +0 -1
  230. package/typedoc/variables/LayoutAction.Toast.html +0 -1
  231. package/typedoc/variables/LayoutAction.UPDATE_LAYOUT.html +0 -1
  232. package/typedoc/variables/PluginManagerProvider.html +0 -2
  233. package/typedoc/variables/Resource.html +0 -2
  234. package/typedoc/variables/ResourceKey.html +0 -1
  235. package/typedoc/variables/ResourceLanguage.html +0 -1
  236. package/typedoc/variables/SETTINGS_ACTION.html +0 -1
  237. package/typedoc/variables/SETTINGS_ID.html +0 -1
  238. package/typedoc/variables/SETTINGS_KEY.html +0 -1
  239. package/typedoc/variables/SETTINGS_PLUGIN.html +0 -1
  240. package/typedoc/variables/Surface.html +0 -2
  241. package/typedoc/variables/defaultFileTypes.html +0 -1
  242. /package/dist/lib/browser/{app-graph-builder-BI4VVKSW.mjs.map → app-graph-builder-LYF7EKNN.mjs.map} +0 -0
  243. /package/dist/lib/browser/{chunk-WWEJRWFX.mjs.map → chunk-ORWHM7CO.mjs.map} +0 -0
  244. /package/dist/lib/browser/{intent-dispatcher-XVBOMF2Y.mjs.map → intent-dispatcher-LSYQZSEB.mjs.map} +0 -0
  245. /package/dist/lib/browser/{intent-resolver-3QMBXLIY.mjs.map → intent-resolver-ZTNOSO3A.mjs.map} +0 -0
  246. /package/dist/lib/browser/{store-5H7XPJGA.mjs.map → store-KML2R4IE.mjs.map} +0 -0
  247. /package/dist/lib/node-esm/{app-graph-builder-NROP6RPQ.mjs.map → app-graph-builder-SAOWGJDK.mjs.map} +0 -0
  248. /package/dist/lib/node-esm/{chunk-I6BVZMAH.mjs.map → chunk-UMZQERLE.mjs.map} +0 -0
  249. /package/dist/lib/node-esm/{intent-dispatcher-7JPGLCQ5.mjs.map → intent-dispatcher-6CYNGPSW.mjs.map} +0 -0
  250. /package/dist/lib/node-esm/{intent-resolver-VY4X5UHN.mjs.map → intent-resolver-W7Z7WFFM.mjs.map} +0 -0
  251. /package/dist/lib/node-esm/{store-UKD2R2KA.mjs.map → store-QEXGXLWZ.mjs.map} +0 -0
package/moon.yml ADDED
@@ -0,0 +1,14 @@
1
+ type: library
2
+ language: typescript
3
+ tags:
4
+ - pack
5
+ - ts-build
6
+ - ts-test
7
+ - typedoc
8
+ tasks:
9
+ compile:
10
+ args:
11
+ - '--entryPoint=src/index.ts'
12
+ - '--entryPoint=src/testing/index.ts'
13
+ - '--entryPoint=src/worker.ts'
14
+ - '--preactSignalTracking'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/app-framework",
3
- "version": "0.8.3",
3
+ "version": "0.8.4-main.2e9d522",
4
4
  "description": "A framework for building applications from composible plugins.",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -28,10 +28,10 @@
28
28
  "types": "dist/types/src/index.d.ts",
29
29
  "typesVersions": {
30
30
  "*": {
31
- "./testing": [
31
+ "testing": [
32
32
  "dist/types/src/testing/index.d.ts"
33
33
  ],
34
- "./worker": [
34
+ "worker": [
35
35
  "dist/types/src/worker.d.ts"
36
36
  ]
37
37
  }
@@ -39,39 +39,39 @@
39
39
  "dependencies": {
40
40
  "@preact-signals/safe-react": "^0.9.0",
41
41
  "@preact/signals-core": "^1.9.0",
42
- "@dxos/app-graph": "0.8.3",
43
- "@dxos/ai": "0.8.3",
44
- "@dxos/artifact": "0.8.3",
45
- "@dxos/client-protocol": "0.8.3",
46
- "@dxos/debug": "0.8.3",
47
- "@dxos/async": "0.8.3",
48
- "@dxos/invariant": "0.8.3",
49
- "@dxos/echo-schema": "0.8.3",
50
- "@dxos/keys": "0.8.3",
51
- "@dxos/live-object": "0.8.3",
52
- "@dxos/log": "0.8.3",
53
- "@dxos/local-storage": "0.8.3",
54
- "@dxos/react-hooks": "0.8.3",
55
- "@dxos/util": "0.8.3",
56
- "@dxos/schema": "0.8.3"
42
+ "@dxos/ai": "0.8.4-main.2e9d522",
43
+ "@dxos/app-graph": "0.8.4-main.2e9d522",
44
+ "@dxos/async": "0.8.4-main.2e9d522",
45
+ "@dxos/client-protocol": "0.8.4-main.2e9d522",
46
+ "@dxos/echo-schema": "0.8.4-main.2e9d522",
47
+ "@dxos/blueprints": "0.8.4-main.2e9d522",
48
+ "@dxos/debug": "0.8.4-main.2e9d522",
49
+ "@dxos/invariant": "0.8.4-main.2e9d522",
50
+ "@dxos/keys": "0.8.4-main.2e9d522",
51
+ "@dxos/functions": "0.8.4-main.2e9d522",
52
+ "@dxos/live-object": "0.8.4-main.2e9d522",
53
+ "@dxos/local-storage": "0.8.4-main.2e9d522",
54
+ "@dxos/log": "0.8.4-main.2e9d522",
55
+ "@dxos/react-hooks": "0.8.4-main.2e9d522",
56
+ "@dxos/util": "0.8.4-main.2e9d522",
57
+ "@dxos/schema": "0.8.4-main.2e9d522"
57
58
  },
58
59
  "devDependencies": {
59
- "@effect-rx/rx-react": "^0.34.1",
60
- "@effect/platform": "0.80.12",
61
- "@phosphor-icons/react": "^2.1.5",
60
+ "@effect-rx/rx-react": "0.38.0",
61
+ "@effect/platform": "0.89.0",
62
62
  "@types/react": "~18.2.0",
63
- "effect": "3.14.21",
63
+ "effect": "3.17.0",
64
64
  "react": "~18.2.0",
65
65
  "typedoc": "0.28.1",
66
- "@dxos/echo-signals": "0.8.3",
67
- "@dxos/react-ui": "0.8.3",
68
- "@dxos/random": "0.8.3",
69
- "@dxos/react-ui-syntax-highlighter": "0.8.3",
70
- "@dxos/storybook-utils": "0.8.3"
66
+ "@dxos/echo-signals": "0.8.4-main.2e9d522",
67
+ "@dxos/random": "0.8.4-main.2e9d522",
68
+ "@dxos/react-ui": "0.8.4-main.2e9d522",
69
+ "@dxos/react-ui-syntax-highlighter": "0.8.4-main.2e9d522",
70
+ "@dxos/storybook-utils": "0.8.4-main.2e9d522"
71
71
  },
72
72
  "peerDependencies": {
73
73
  "@effect-rx/rx-react": "^0.34.1",
74
- "@effect/platform": "0.80.12",
74
+ "@effect/platform": "^0.80.12",
75
75
  "effect": "^3.13.3",
76
76
  "react": "~18.2.0"
77
77
  },
package/src/App.tsx CHANGED
@@ -248,10 +248,10 @@ const App = ({ placeholder: Placeholder, state }: AppProps) => {
248
248
  // Default fallback does not use tailwind or theme.
249
249
  const DefaultFallback = ({ error }: { error: Error }) => {
250
250
  return (
251
- <div style={{ padding: '1rem' }}>
251
+ <div style={{ margin: '0.5rem', padding: '1rem', overflow: 'hidden', border: '1px solid red' }}>
252
252
  {/* TODO(wittjosiah): Link to docs for replacing default. */}
253
- <h1 style={{ fontSize: '1.2rem', fontWeight: 700, margin: '0.5rem 0' }}>{error.message}</h1>
254
- <pre>{error.stack}</pre>
253
+ <h1 style={{ margin: '0.5rem 0', fontSize: '1.2rem' }}>[ERROR]: {error.message}</h1>
254
+ <pre style={{ overflow: 'auto', fontSize: '1rem', whiteSpace: 'pre-wrap', color: '#888888' }}>{error.stack}</pre>
255
255
  </div>
256
256
  );
257
257
  };
@@ -8,8 +8,9 @@ import { type FC, type PropsWithChildren } from 'react';
8
8
 
9
9
  import { type ExecutableTool } from '@dxos/ai';
10
10
  import { type GraphBuilder, type BuilderExtensions } from '@dxos/app-graph';
11
- import { type ArtifactDefinition } from '@dxos/artifact';
11
+ import { type ArtifactDefinition } from '@dxos/blueprints';
12
12
  import { type Space } from '@dxos/client-protocol';
13
+ import { type FunctionDefinition } from '@dxos/functions';
13
14
  import { type RootSettingsStore } from '@dxos/local-storage';
14
15
  import { type AnchoredTo } from '@dxos/schema';
15
16
 
@@ -21,10 +22,10 @@ import { type PluginManager, defineCapability } from '../core';
21
22
  import { type AnyIntentResolver, type IntentContext } from '../plugin-intent';
22
23
 
23
24
  export namespace Capabilities {
24
- export const PluginManager = defineCapability<PluginManager>('dxos.org/app-framework/capability/plugin-manager');
25
-
26
25
  export const Null = defineCapability<null>('dxos.org/app-framework/capability/null');
27
26
 
27
+ export const PluginManager = defineCapability<PluginManager>('dxos.org/app-framework/capability/plugin-manager');
28
+
28
29
  export const RxRegistry = defineCapability<Registry.Registry>('dxos.org/app-framework/capability/rx-registry');
29
30
 
30
31
  export type ReactContext = Readonly<{ id: string; dependsOn?: string[]; context: FC<PropsWithChildren> }>;
@@ -67,6 +68,7 @@ export namespace Capabilities {
67
68
  }>;
68
69
  export const Layout = defineCapability<Layout>('dxos.org/app-framework/capability/layout');
69
70
 
71
+ // TODO(burdon): Why array?
70
72
  export const Translations = defineCapability<Readonly<Resource[]>>('dxos.org/app-framework/capability/translations');
71
73
 
72
74
  export const AppGraph = defineCapability<Readonly<Pick<GraphBuilder, 'graph' | 'explore'>>>(
@@ -101,6 +103,10 @@ export namespace Capabilities {
101
103
  'dxos.org/app-framework/capability/artifact-definition',
102
104
  );
103
105
 
106
+ export const Functions = defineCapability<FunctionDefinition<any, any>[]>(
107
+ 'dxos.org/app-framework/capability/functions',
108
+ );
109
+
104
110
  export type FileUploader = (file: File, space: Space) => Promise<FileInfo | undefined>;
105
111
  export const FileUploader = defineCapability<FileUploader>('dxos.org/app-framework/capability/file-uploader');
106
112
 
@@ -6,7 +6,7 @@ export * from './capabilities';
6
6
  export * from './collaboration';
7
7
  export * from './events';
8
8
  export * from './file';
9
- export * from './graph';
9
+ export type * from './graph';
10
10
  export * from './layout';
11
11
  export * from './surface';
12
12
  export * from './translations';
@@ -3,8 +3,7 @@
3
3
  //
4
4
 
5
5
  import { effect } from '@preact/signals-core';
6
- import { afterEach } from 'node:test';
7
- import { describe, expect, it } from 'vitest';
6
+ import { afterEach, describe, expect, it } from 'vitest';
8
7
 
9
8
  import { Trigger } from '@dxos/async';
10
9
  import { raise } from '@dxos/debug';
@@ -3,7 +3,7 @@
3
3
  //
4
4
 
5
5
  import { SETTINGS_PLUGIN } from './actions';
6
- import translations from './translations';
6
+ import { translations } from './translations';
7
7
  import { Capabilities, Events } from '../common';
8
8
  import { contributes, defineModule, definePlugin, lazy } from '../core';
9
9
 
@@ -2,9 +2,11 @@
2
2
  // Copyright 2023 DXOS.org
3
3
  //
4
4
 
5
+ import { type Resource } from '@dxos/react-ui';
6
+
5
7
  import { SETTINGS_PLUGIN } from './actions';
6
8
 
7
- export default [
9
+ export const translations = [
8
10
  {
9
11
  'en-US': {
10
12
  [SETTINGS_PLUGIN]: {
@@ -14,4 +16,4 @@ export default [
14
16
  },
15
17
  },
16
18
  },
17
- ];
19
+ ] as const satisfies Resource[];
package/tsconfig.json CHANGED
@@ -39,7 +39,7 @@
39
39
  "path": "../../core/ai"
40
40
  },
41
41
  {
42
- "path": "../../core/artifact"
42
+ "path": "../../core/blueprints"
43
43
  },
44
44
  {
45
45
  "path": "../../core/echo/echo-schema"
@@ -50,6 +50,9 @@
50
50
  {
51
51
  "path": "../../core/echo/live-object"
52
52
  },
53
+ {
54
+ "path": "../../core/functions"
55
+ },
53
56
  {
54
57
  "path": "../../ui/primitives/react-hooks"
55
58
  },
package/vitest.config.ts CHANGED
@@ -4,6 +4,9 @@
4
4
 
5
5
  import { defineConfig, mergeConfig } from 'vitest/config';
6
6
 
7
- import { baseConfig } from '../../../vitest.shared';
7
+ import { baseConfig } from '../../../vitest.base.config';
8
8
 
9
- export default mergeConfig(baseConfig({ cwd: __dirname }), defineConfig({}));
9
+ export default mergeConfig(
10
+ baseConfig({ cwd: __dirname }),
11
+ defineConfig({}),
12
+ );
package/.eslintrc.cjs DELETED
@@ -1,9 +0,0 @@
1
- module.exports = {
2
- "extends": [
3
- "../../../.eslintrc.js"
4
- ],
5
- "parserOptions": {
6
- "project": "tsconfig.json",
7
- "tsconfigRootDir": __dirname,
8
- }
9
- }
package/README.yml DELETED
@@ -1,5 +0,0 @@
1
- usage: |
2
- Run with
3
- ```bash
4
- pnpm nx storybook surface
5
- ```
@@ -1,146 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var app_graph_builder_H7QVE4MJ_exports = {};
20
- __export(app_graph_builder_H7QVE4MJ_exports, {
21
- default: () => app_graph_builder_default
22
- });
23
- module.exports = __toCommonJS(app_graph_builder_H7QVE4MJ_exports);
24
- var import_chunk_G774ASXO = require("./chunk-G774ASXO.cjs");
25
- var import_chunk_VSOSVDQ3 = require("./chunk-VSOSVDQ3.cjs");
26
- var import_rx_react = require("@effect-rx/rx-react");
27
- var import_effect = require("effect");
28
- var import_app_graph = require("@dxos/app-graph");
29
- var import_util = require("@dxos/util");
30
- var app_graph_builder_default = (context) => (0, import_chunk_VSOSVDQ3.contributes)(import_chunk_VSOSVDQ3.Capabilities.AppGraphBuilder, [
31
- (0, import_app_graph.createExtension)({
32
- id: `${import_chunk_G774ASXO.SETTINGS_PLUGIN}/action`,
33
- actions: (node) => import_rx_react.Rx.make((get) => (0, import_effect.pipe)(get(node), import_effect.Option.flatMap((node2) => node2.id === import_app_graph.ROOT_ID ? import_effect.Option.some(node2) : import_effect.Option.none()), import_effect.Option.map(() => [
34
- {
35
- id: import_chunk_G774ASXO.SETTINGS_PLUGIN,
36
- data: async () => {
37
- const { dispatchPromise: dispatch } = context.getCapability(import_chunk_VSOSVDQ3.Capabilities.IntentDispatcher);
38
- await dispatch((0, import_chunk_VSOSVDQ3.createIntent)(import_chunk_G774ASXO.SettingsAction.Open));
39
- },
40
- properties: {
41
- label: [
42
- "open settings label",
43
- {
44
- ns: import_chunk_G774ASXO.SETTINGS_PLUGIN
45
- }
46
- ],
47
- icon: "ph--gear--regular",
48
- disposition: "menu",
49
- keyBinding: {
50
- macos: "meta+,",
51
- windows: "alt+,"
52
- }
53
- }
54
- }
55
- ]), import_effect.Option.getOrElse(() => [])))
56
- }),
57
- (0, import_app_graph.createExtension)({
58
- id: `${import_chunk_G774ASXO.SETTINGS_PLUGIN}/core`,
59
- connector: (node) => import_rx_react.Rx.make((get) => (0, import_effect.pipe)(get(node), import_effect.Option.flatMap((node2) => node2.id === import_app_graph.ROOT_ID ? import_effect.Option.some(node2) : import_effect.Option.none()), import_effect.Option.map(() => [
60
- {
61
- id: import_chunk_G774ASXO.SETTINGS_ID,
62
- type: import_chunk_G774ASXO.SETTINGS_PLUGIN,
63
- properties: {
64
- label: [
65
- "app settings label",
66
- {
67
- ns: import_chunk_G774ASXO.SETTINGS_PLUGIN
68
- }
69
- ],
70
- icon: "ph--gear--regular",
71
- disposition: "pin-end",
72
- position: "hoist",
73
- testId: "treeView.appSettings"
74
- }
75
- }
76
- ]), import_effect.Option.getOrElse(() => [])))
77
- }),
78
- (0, import_app_graph.createExtension)({
79
- id: `${import_chunk_G774ASXO.SETTINGS_PLUGIN}/core-plugins`,
80
- connector: (node) => import_rx_react.Rx.make((get) => (0, import_effect.pipe)(get(node), import_effect.Option.flatMap((node2) => node2.id !== import_chunk_G774ASXO.SETTINGS_ID ? import_effect.Option.none() : import_effect.Option.some(node2)), import_effect.Option.map(() => {
81
- const manager = get(context.capability(import_chunk_VSOSVDQ3.Capabilities.PluginManager));
82
- const [settingsStore] = get(context.capabilities(import_chunk_VSOSVDQ3.Capabilities.SettingsStore));
83
- return [
84
- ...manager.plugins.filter((plugin) => manager.core.includes(plugin.meta.id)).map((plugin) => {
85
- const settings = settingsStore?.getStore(plugin.meta.id);
86
- if (!settings) {
87
- return null;
88
- }
89
- return [
90
- plugin.meta,
91
- settings
92
- ];
93
- }).filter(import_util.isNonNullable).map(([meta, settings]) => ({
94
- id: `${import_chunk_G774ASXO.SETTINGS_KEY}:${meta.id.replaceAll("/", ":")}`,
95
- type: "category",
96
- data: settings,
97
- properties: {
98
- label: meta.name ?? meta.id,
99
- icon: meta.icon ?? "ph--circle--regular"
100
- }
101
- })),
102
- {
103
- id: `${import_chunk_G774ASXO.SETTINGS_KEY}:custom-plugins`,
104
- type: "category",
105
- properties: {
106
- label: [
107
- "custom plugins label",
108
- {
109
- ns: import_chunk_G774ASXO.SETTINGS_PLUGIN
110
- }
111
- ],
112
- icon: "ph--squares-four--regular",
113
- role: "branch",
114
- disposition: "collection"
115
- }
116
- }
117
- ];
118
- }), import_effect.Option.getOrElse(() => [])))
119
- }),
120
- (0, import_app_graph.createExtension)({
121
- id: `${import_chunk_G774ASXO.SETTINGS_PLUGIN}/custom-plugins`,
122
- connector: (node) => import_rx_react.Rx.make((get) => (0, import_effect.pipe)(get(node), import_effect.Option.flatMap((node2) => node2.id !== `${import_chunk_G774ASXO.SETTINGS_KEY}:custom-plugins` ? import_effect.Option.none() : import_effect.Option.some(node2)), import_effect.Option.map(() => {
123
- const manager = get(context.capability(import_chunk_VSOSVDQ3.Capabilities.PluginManager));
124
- const [settingsStore] = get(context.capabilities(import_chunk_VSOSVDQ3.Capabilities.SettingsStore));
125
- return manager.plugins.filter((plugin) => !manager.core.includes(plugin.meta.id)).map((plugin) => {
126
- const settings = settingsStore?.getStore(plugin.meta.id);
127
- if (!settings) {
128
- return null;
129
- }
130
- return [
131
- plugin.meta,
132
- settings
133
- ];
134
- }).filter(import_util.isNonNullable).map(([meta, settings]) => ({
135
- id: `${import_chunk_G774ASXO.SETTINGS_KEY}:${meta.id.replaceAll("/", ":")}`,
136
- type: "category",
137
- data: settings,
138
- properties: {
139
- label: meta.name ?? meta.id,
140
- icon: meta.icon ?? "ph--circle--regular"
141
- }
142
- }));
143
- }), import_effect.Option.getOrElse(() => [])))
144
- })
145
- ]);
146
- //# sourceMappingURL=app-graph-builder-H7QVE4MJ.cjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/plugin-settings/app-graph-builder.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Rx } from '@effect-rx/rx-react';\nimport { Option, pipe } from 'effect';\n\nimport { createExtension, ROOT_ID } from '@dxos/app-graph';\nimport { type SettingsStore, type SettingsValue } from '@dxos/local-storage';\nimport { isNonNullable } from '@dxos/util';\n\nimport { SETTINGS_ID, SETTINGS_KEY, SETTINGS_PLUGIN, SettingsAction } from './actions';\nimport { Capabilities } from '../common';\nimport { contributes, type PluginMeta, type PluginContext } from '../core';\nimport { createIntent } from '../plugin-intent';\n\nexport default (context: PluginContext) =>\n contributes(Capabilities.AppGraphBuilder, [\n createExtension({\n id: `${SETTINGS_PLUGIN}/action`,\n actions: (node) =>\n Rx.make((get) =>\n pipe(\n get(node),\n Option.flatMap((node) => (node.id === ROOT_ID ? Option.some(node) : Option.none())),\n Option.map(() => [\n {\n id: SETTINGS_PLUGIN,\n data: async () => {\n const { dispatchPromise: dispatch } = context.getCapability(Capabilities.IntentDispatcher);\n await dispatch(createIntent(SettingsAction.Open));\n },\n properties: {\n label: ['open settings label', { ns: SETTINGS_PLUGIN }],\n icon: 'ph--gear--regular',\n disposition: 'menu',\n keyBinding: {\n macos: 'meta+,',\n windows: 'alt+,',\n },\n },\n },\n ]),\n Option.getOrElse(() => []),\n ),\n ),\n }),\n createExtension({\n id: `${SETTINGS_PLUGIN}/core`,\n connector: (node) =>\n Rx.make((get) =>\n pipe(\n get(node),\n Option.flatMap((node) => (node.id === ROOT_ID ? Option.some(node) : Option.none())),\n Option.map(() => [\n {\n id: SETTINGS_ID,\n type: SETTINGS_PLUGIN,\n properties: {\n label: ['app settings label', { ns: SETTINGS_PLUGIN }],\n icon: 'ph--gear--regular',\n disposition: 'pin-end',\n position: 'hoist',\n testId: 'treeView.appSettings',\n },\n },\n ]),\n Option.getOrElse(() => []),\n ),\n ),\n }),\n createExtension({\n id: `${SETTINGS_PLUGIN}/core-plugins`,\n connector: (node) =>\n Rx.make((get) =>\n pipe(\n get(node),\n Option.flatMap((node) => (node.id !== SETTINGS_ID ? Option.none() : Option.some(node))),\n Option.map(() => {\n const manager = get(context.capability(Capabilities.PluginManager));\n const [settingsStore] = get(context.capabilities(Capabilities.SettingsStore));\n return [\n ...manager.plugins\n .filter((plugin) => manager.core.includes(plugin.meta.id))\n .map((plugin): [PluginMeta, SettingsStore<SettingsValue>] | null => {\n const settings = settingsStore?.getStore(plugin.meta.id);\n if (!settings) {\n return null;\n }\n\n return [plugin.meta, settings];\n })\n .filter(isNonNullable)\n .map(([meta, settings]) => ({\n id: `${SETTINGS_KEY}:${meta.id.replaceAll('/', ':')}`,\n type: 'category',\n data: settings,\n properties: {\n label: meta.name ?? meta.id,\n icon: meta.icon ?? 'ph--circle--regular',\n },\n })),\n\n {\n id: `${SETTINGS_KEY}:custom-plugins`,\n type: 'category',\n properties: {\n label: ['custom plugins label', { ns: SETTINGS_PLUGIN }],\n icon: 'ph--squares-four--regular',\n role: 'branch',\n disposition: 'collection',\n },\n },\n ];\n }),\n Option.getOrElse(() => []),\n ),\n ),\n }),\n createExtension({\n id: `${SETTINGS_PLUGIN}/custom-plugins`,\n connector: (node) =>\n Rx.make((get) =>\n pipe(\n get(node),\n Option.flatMap((node) =>\n node.id !== `${SETTINGS_KEY}:custom-plugins` ? Option.none() : Option.some(node),\n ),\n Option.map(() => {\n const manager = get(context.capability(Capabilities.PluginManager));\n const [settingsStore] = get(context.capabilities(Capabilities.SettingsStore));\n return manager.plugins\n .filter((plugin) => !manager.core.includes(plugin.meta.id))\n .map((plugin): [PluginMeta, SettingsStore<SettingsValue>] | null => {\n const settings = settingsStore?.getStore(plugin.meta.id);\n if (!settings) {\n return null;\n }\n\n return [plugin.meta, settings];\n })\n .filter(isNonNullable)\n .map(([meta, settings]) => ({\n id: `${SETTINGS_KEY}:${meta.id.replaceAll('/', ':')}`,\n type: 'category',\n data: settings,\n properties: {\n label: meta.name ?? meta.id,\n icon: meta.icon ?? 'ph--circle--regular',\n },\n }));\n }),\n Option.getOrElse(() => []),\n ),\n ),\n }),\n ]);\n"],
5
- "mappings": "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",
6
- "names": ["context", "contributes", "Capabilities", "AppGraphBuilder", "createExtension", "id", "SETTINGS_PLUGIN", "actions", "node", "Rx", "make", "get", "pipe", "Option", "flatMap", "ROOT_ID", "some", "none", "map", "data", "dispatchPromise", "dispatch", "getCapability", "IntentDispatcher", "createIntent", "SettingsAction", "Open", "properties", "label", "ns", "icon", "disposition", "keyBinding", "macos", "windows", "getOrElse", "connector", "SETTINGS_ID", "type", "position", "testId", "manager", "capability", "PluginManager", "settingsStore", "capabilities", "SettingsStore", "plugins", "filter", "plugin", "core", "includes", "meta", "settings", "getStore", "isNonNullable", "SETTINGS_KEY", "replaceAll", "name", "role"]
7
- }
@@ -1,58 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var chunk_G774ASXO_exports = {};
20
- __export(chunk_G774ASXO_exports, {
21
- SETTINGS_ACTION: () => SETTINGS_ACTION,
22
- SETTINGS_ID: () => SETTINGS_ID,
23
- SETTINGS_KEY: () => SETTINGS_KEY,
24
- SETTINGS_PLUGIN: () => SETTINGS_PLUGIN,
25
- SettingsAction: () => SettingsAction
26
- });
27
- module.exports = __toCommonJS(chunk_G774ASXO_exports);
28
- var import_effect = require("effect");
29
- var SETTINGS_PLUGIN = "dxos.org/plugin/settings";
30
- var SETTINGS_ACTION = `${SETTINGS_PLUGIN}/action`;
31
- var SETTINGS_ID = "!dxos:settings";
32
- var SETTINGS_KEY = "settings";
33
- (function(SettingsAction2) {
34
- class Open extends import_effect.Schema.TaggedClass()(`${SETTINGS_ACTION}/open`, {
35
- input: import_effect.Schema.Struct({
36
- plugin: import_effect.Schema.optional(import_effect.Schema.String)
37
- }),
38
- output: import_effect.Schema.Void
39
- }) {
40
- }
41
- SettingsAction2.Open = Open;
42
- class OpenPluginRegistry extends import_effect.Schema.TaggedClass()(`${SETTINGS_ACTION}/open-plugin-registry`, {
43
- input: import_effect.Schema.Void,
44
- output: import_effect.Schema.Void
45
- }) {
46
- }
47
- SettingsAction2.OpenPluginRegistry = OpenPluginRegistry;
48
- })(SettingsAction || (SettingsAction = {}));
49
- var SettingsAction;
50
- // Annotate the CommonJS export names for ESM import in node:
51
- 0 && (module.exports = {
52
- SETTINGS_ACTION,
53
- SETTINGS_ID,
54
- SETTINGS_KEY,
55
- SETTINGS_PLUGIN,
56
- SettingsAction
57
- });
58
- //# sourceMappingURL=chunk-G774ASXO.cjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/plugin-settings/actions.ts"],
4
- "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { Schema } from 'effect';\n\nexport const SETTINGS_PLUGIN = 'dxos.org/plugin/settings';\nexport const SETTINGS_ACTION = `${SETTINGS_PLUGIN}/action`;\n// TODO(wittjosiah): This is a hack to prevent the previous deck from being set for pinned items.\n// Ideally this should be worked into the data model in a generic way.\nexport const SETTINGS_ID = '!dxos:settings';\nexport const SETTINGS_KEY = 'settings';\n\nexport namespace SettingsAction {\n export class Open extends Schema.TaggedClass<Open>()(`${SETTINGS_ACTION}/open`, {\n input: Schema.Struct({\n plugin: Schema.optional(Schema.String),\n }),\n output: Schema.Void,\n }) {}\n\n export class OpenPluginRegistry extends Schema.TaggedClass<OpenPluginRegistry>()(\n `${SETTINGS_ACTION}/open-plugin-registry`,\n {\n input: Schema.Void,\n output: Schema.Void,\n },\n ) {}\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,oBAAuB;AAEhB,IAAMA,kBAAkB;AACxB,IAAMC,kBAAkB,GAAGD,eAAAA;AAG3B,IAAME,cAAc;AACpB,IAAMC,eAAe;UAEXC,iBAAAA;EACR,MAAMC,aAAaC,qBAAOC,YAAW,EAAS,GAAGN,eAAAA,SAAwB;IAC9EO,OAAOF,qBAAOG,OAAO;MACnBC,QAAQJ,qBAAOK,SAASL,qBAAOM,MAAM;IACvC,CAAA;IACAC,QAAQP,qBAAOQ;EACjB,CAAA,EAAA;EAAI;kBALST,OAAAA;EAON,MAAMU,2BAA2BT,qBAAOC,YAAW,EACxD,GAAGN,eAAAA,yBACH;IACEO,OAAOF,qBAAOQ;IACdD,QAAQP,qBAAOQ;EACjB,CAAA,EAAA;EACC;kBANUC,qBAAAA;AAOf,GAfiBX,mBAAAA,iBAAAA,CAAAA,EAAAA;;",
6
- "names": ["SETTINGS_PLUGIN", "SETTINGS_ACTION", "SETTINGS_ID", "SETTINGS_KEY", "SettingsAction", "Open", "Schema", "TaggedClass", "input", "Struct", "plugin", "optional", "String", "output", "Void", "OpenPluginRegistry"]
7
- }