@dxos/plugin-registry 0.8.4-main.ae835ea → 0.8.4-main.bc2380dfbc

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 (219) hide show
  1. package/LICENSE +102 -5
  2. package/dist/lib/neutral/RegistryPlugin.mjs +27 -0
  3. package/dist/lib/neutral/RegistryPlugin.mjs.map +7 -0
  4. package/dist/lib/neutral/RegistryPlugin.node.mjs +153 -0
  5. package/dist/lib/neutral/RegistryPlugin.node.mjs.map +7 -0
  6. package/dist/lib/neutral/RegistryPlugin.workerd.mjs +10 -0
  7. package/dist/lib/neutral/RegistryPlugin.workerd.mjs.map +7 -0
  8. package/dist/lib/neutral/chunk-A6F6X6M4.mjs +31 -0
  9. package/dist/lib/neutral/chunk-A6F6X6M4.mjs.map +7 -0
  10. package/dist/lib/neutral/chunk-XK2JMH3H.mjs +33 -0
  11. package/dist/lib/neutral/chunk-XK2JMH3H.mjs.map +7 -0
  12. package/dist/lib/neutral/index.mjs +23 -0
  13. package/dist/lib/neutral/index.mjs.map +7 -0
  14. package/dist/lib/neutral/meta.json +1 -0
  15. package/dist/lib/neutral/open-plugin-registry-II735N76.mjs +15 -0
  16. package/dist/lib/neutral/open-plugin-registry-II735N76.mjs.map +7 -0
  17. package/dist/lib/neutral/plugin.mjs +18 -0
  18. package/dist/lib/neutral/plugin.mjs.map +7 -0
  19. package/dist/lib/neutral/translations.mjs +67 -0
  20. package/dist/lib/neutral/translations.mjs.map +7 -0
  21. package/dist/types/src/RegistryPlugin.d.ts +3 -1
  22. package/dist/types/src/RegistryPlugin.d.ts.map +1 -1
  23. package/dist/types/src/RegistryPlugin.node.d.ts +4 -0
  24. package/dist/types/src/RegistryPlugin.node.d.ts.map +1 -0
  25. package/dist/types/src/RegistryPlugin.test.d.ts +2 -0
  26. package/dist/types/src/RegistryPlugin.test.d.ts.map +1 -0
  27. package/dist/types/src/RegistryPlugin.workerd.d.ts +4 -0
  28. package/dist/types/src/RegistryPlugin.workerd.d.ts.map +1 -0
  29. package/dist/types/src/capabilities/app-graph-builder.d.ts +4 -2
  30. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
  31. package/dist/types/src/capabilities/dev-plugin-loader.d.ts +11 -0
  32. package/dist/types/src/capabilities/dev-plugin-loader.d.ts.map +1 -0
  33. package/dist/types/src/capabilities/index.d.ts +15 -3
  34. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  35. package/dist/types/src/capabilities/operation-handler.d.ts +6 -0
  36. package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -0
  37. package/dist/types/src/capabilities/react-surface.d.ts +3 -2
  38. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
  39. package/dist/types/src/capabilities/settings.d.ts +14 -0
  40. package/dist/types/src/capabilities/settings.d.ts.map +1 -0
  41. package/dist/types/src/commands/disable.d.ts +11 -0
  42. package/dist/types/src/commands/disable.d.ts.map +1 -0
  43. package/dist/types/src/commands/enable.d.ts +11 -0
  44. package/dist/types/src/commands/enable.d.ts.map +1 -0
  45. package/dist/types/src/commands/index.d.ts +3 -0
  46. package/dist/types/src/commands/index.d.ts.map +1 -0
  47. package/dist/types/src/commands/list.d.ts +7 -0
  48. package/dist/types/src/commands/list.d.ts.map +1 -0
  49. package/dist/types/src/commands/util.d.ts +11 -0
  50. package/dist/types/src/commands/util.d.ts.map +1 -0
  51. package/dist/types/src/components/DisableDependentsAlert/DisableDependentsAlert.d.ts +24 -0
  52. package/dist/types/src/components/DisableDependentsAlert/DisableDependentsAlert.d.ts.map +1 -0
  53. package/dist/types/src/components/DisableDependentsAlert/index.d.ts +2 -0
  54. package/dist/types/src/components/DisableDependentsAlert/index.d.ts.map +1 -0
  55. package/dist/types/src/components/PluginDetail/PluginDetail.d.ts +72 -0
  56. package/dist/types/src/components/PluginDetail/PluginDetail.d.ts.map +1 -0
  57. package/dist/types/src/components/PluginDetail/PluginDetail.stories.d.ts +74 -0
  58. package/dist/types/src/components/PluginDetail/PluginDetail.stories.d.ts.map +1 -0
  59. package/dist/types/src/components/PluginDetail/index.d.ts +2 -0
  60. package/dist/types/src/components/PluginDetail/index.d.ts.map +1 -0
  61. package/dist/types/src/components/PluginFailureBadge/PluginFailureBadge.d.ts +20 -0
  62. package/dist/types/src/components/PluginFailureBadge/PluginFailureBadge.d.ts.map +1 -0
  63. package/dist/types/src/components/PluginFailureBadge/index.d.ts +2 -0
  64. package/dist/types/src/components/PluginFailureBadge/index.d.ts.map +1 -0
  65. package/dist/types/src/components/PluginList/PluginItem.d.ts +40 -0
  66. package/dist/types/src/components/PluginList/PluginItem.d.ts.map +1 -0
  67. package/dist/types/src/components/PluginList/PluginList.d.ts +23 -0
  68. package/dist/types/src/components/PluginList/PluginList.d.ts.map +1 -0
  69. package/dist/types/src/components/PluginList/PluginList.stories.d.ts +73 -0
  70. package/dist/types/src/components/PluginList/PluginList.stories.d.ts.map +1 -0
  71. package/dist/types/src/components/PluginList/index.d.ts +2 -0
  72. package/dist/types/src/components/PluginList/index.d.ts.map +1 -0
  73. package/dist/types/src/components/RegistrySettings/RegistrySettings.d.ts +18 -0
  74. package/dist/types/src/components/RegistrySettings/RegistrySettings.d.ts.map +1 -0
  75. package/dist/types/src/components/RegistrySettings/index.d.ts +2 -0
  76. package/dist/types/src/components/RegistrySettings/index.d.ts.map +1 -0
  77. package/dist/types/src/components/index.d.ts +3 -1
  78. package/dist/types/src/components/index.d.ts.map +1 -1
  79. package/dist/types/src/containers/BaseRegistryArticle/BaseRegistryArticle.d.ts +20 -0
  80. package/dist/types/src/containers/BaseRegistryArticle/BaseRegistryArticle.d.ts.map +1 -0
  81. package/dist/types/src/containers/BaseRegistryArticle/index.d.ts +2 -0
  82. package/dist/types/src/containers/BaseRegistryArticle/index.d.ts.map +1 -0
  83. package/dist/types/src/containers/LoadPluginDialog/LoadPluginDialog.d.ts +4 -0
  84. package/dist/types/src/containers/LoadPluginDialog/LoadPluginDialog.d.ts.map +1 -0
  85. package/dist/types/src/containers/LoadPluginDialog/index.d.ts +2 -0
  86. package/dist/types/src/containers/LoadPluginDialog/index.d.ts.map +1 -0
  87. package/dist/types/src/containers/PluginArticle/PluginArticle.d.ts +7 -0
  88. package/dist/types/src/containers/PluginArticle/PluginArticle.d.ts.map +1 -0
  89. package/dist/types/src/containers/PluginArticle/index.d.ts +2 -0
  90. package/dist/types/src/containers/PluginArticle/index.d.ts.map +1 -0
  91. package/dist/types/src/containers/PublicRegistryArticle/PublicRegistryArticle.d.ts +8 -0
  92. package/dist/types/src/containers/PublicRegistryArticle/PublicRegistryArticle.d.ts.map +1 -0
  93. package/dist/types/src/containers/PublicRegistryArticle/index.d.ts +2 -0
  94. package/dist/types/src/containers/PublicRegistryArticle/index.d.ts.map +1 -0
  95. package/dist/types/src/containers/RegistryArticle/RegistryArticle.d.ts +14 -0
  96. package/dist/types/src/containers/RegistryArticle/RegistryArticle.d.ts.map +1 -0
  97. package/dist/types/src/containers/RegistryArticle/index.d.ts +2 -0
  98. package/dist/types/src/containers/RegistryArticle/index.d.ts.map +1 -0
  99. package/dist/types/src/containers/RegistrySettingsContainer/RegistrySettingsContainer.d.ts +13 -0
  100. package/dist/types/src/containers/RegistrySettingsContainer/RegistrySettingsContainer.d.ts.map +1 -0
  101. package/dist/types/src/containers/RegistrySettingsContainer/index.d.ts +2 -0
  102. package/dist/types/src/containers/RegistrySettingsContainer/index.d.ts.map +1 -0
  103. package/dist/types/src/containers/index.d.ts +8 -0
  104. package/dist/types/src/containers/index.d.ts.map +1 -0
  105. package/dist/types/src/hooks/index.d.ts +5 -0
  106. package/dist/types/src/hooks/index.d.ts.map +1 -0
  107. package/dist/types/src/hooks/use-auto-tags.d.ts +20 -0
  108. package/dist/types/src/hooks/use-auto-tags.d.ts.map +1 -0
  109. package/dist/types/src/hooks/use-disable-confirmation.d.ts +19 -0
  110. package/dist/types/src/hooks/use-disable-confirmation.d.ts.map +1 -0
  111. package/dist/types/src/hooks/use-registry-plugins.d.ts +15 -0
  112. package/dist/types/src/hooks/use-registry-plugins.d.ts.map +1 -0
  113. package/dist/types/src/hooks/use-update-available.d.ts +18 -0
  114. package/dist/types/src/hooks/use-update-available.d.ts.map +1 -0
  115. package/dist/types/src/index.d.ts +1 -1
  116. package/dist/types/src/index.d.ts.map +1 -1
  117. package/dist/types/src/meta.d.ts +9 -3
  118. package/dist/types/src/meta.d.ts.map +1 -1
  119. package/dist/types/src/operations/index.d.ts +3 -0
  120. package/dist/types/src/operations/index.d.ts.map +1 -0
  121. package/dist/types/src/operations/open-plugin-registry.d.ts +5 -0
  122. package/dist/types/src/operations/open-plugin-registry.d.ts.map +1 -0
  123. package/dist/types/src/plugin.d.ts +4 -0
  124. package/dist/types/src/plugin.d.ts.map +1 -0
  125. package/dist/types/src/storage.d.ts +18 -0
  126. package/dist/types/src/storage.d.ts.map +1 -0
  127. package/dist/types/src/translations.d.ts +54 -16
  128. package/dist/types/src/translations.d.ts.map +1 -1
  129. package/dist/types/src/types.d.ts +30 -1
  130. package/dist/types/src/types.d.ts.map +1 -1
  131. package/dist/types/tsconfig.tsbuildinfo +1 -1
  132. package/package.json +76 -35
  133. package/src/RegistryPlugin.node.ts +19 -0
  134. package/src/RegistryPlugin.test.ts +24 -0
  135. package/src/RegistryPlugin.tsx +19 -25
  136. package/src/RegistryPlugin.workerd.ts +11 -0
  137. package/src/capabilities/app-graph-builder.ts +180 -136
  138. package/src/capabilities/dev-plugin-loader.ts +39 -0
  139. package/src/capabilities/index.ts +10 -4
  140. package/src/capabilities/operation-handler.ts +16 -0
  141. package/src/capabilities/react-surface.tsx +133 -73
  142. package/src/capabilities/settings.ts +34 -0
  143. package/src/commands/disable.ts +47 -0
  144. package/src/commands/enable.ts +44 -0
  145. package/src/commands/index.ts +14 -0
  146. package/src/commands/list.ts +41 -0
  147. package/src/commands/util.ts +24 -0
  148. package/src/components/DisableDependentsAlert/DisableDependentsAlert.tsx +69 -0
  149. package/src/components/DisableDependentsAlert/index.ts +5 -0
  150. package/src/components/PluginDetail/PluginDetail.stories.tsx +44 -0
  151. package/src/components/PluginDetail/PluginDetail.tsx +272 -0
  152. package/src/components/PluginDetail/index.ts +5 -0
  153. package/src/components/PluginFailureBadge/PluginFailureBadge.tsx +68 -0
  154. package/src/components/PluginFailureBadge/index.ts +5 -0
  155. package/src/components/PluginList/PluginItem.tsx +226 -0
  156. package/src/components/PluginList/PluginList.stories.tsx +87 -0
  157. package/src/components/PluginList/PluginList.tsx +52 -0
  158. package/src/components/PluginList/index.ts +5 -0
  159. package/src/components/RegistrySettings/RegistrySettings.tsx +120 -0
  160. package/src/components/RegistrySettings/index.ts +5 -0
  161. package/src/components/index.ts +3 -1
  162. package/src/containers/BaseRegistryArticle/BaseRegistryArticle.tsx +178 -0
  163. package/src/containers/BaseRegistryArticle/index.ts +5 -0
  164. package/src/containers/LoadPluginDialog/LoadPluginDialog.tsx +87 -0
  165. package/src/containers/LoadPluginDialog/index.ts +5 -0
  166. package/src/containers/PluginArticle/PluginArticle.tsx +378 -0
  167. package/src/containers/PluginArticle/index.ts +5 -0
  168. package/src/containers/PublicRegistryArticle/PublicRegistryArticle.tsx +192 -0
  169. package/src/containers/PublicRegistryArticle/index.ts +5 -0
  170. package/src/containers/RegistryArticle/RegistryArticle.tsx +53 -0
  171. package/src/containers/RegistryArticle/index.ts +5 -0
  172. package/src/containers/RegistrySettingsContainer/RegistrySettingsContainer.tsx +59 -0
  173. package/src/containers/RegistrySettingsContainer/index.ts +5 -0
  174. package/src/containers/index.ts +12 -0
  175. package/src/hooks/index.ts +8 -0
  176. package/src/hooks/use-auto-tags.ts +51 -0
  177. package/src/hooks/use-disable-confirmation.ts +58 -0
  178. package/src/hooks/use-registry-plugins.ts +29 -0
  179. package/src/hooks/use-update-available.ts +31 -0
  180. package/src/index.ts +1 -1
  181. package/src/meta.ts +19 -7
  182. package/src/operations/index.ts +7 -0
  183. package/src/operations/open-plugin-registry.ts +21 -0
  184. package/src/plugin.ts +11 -0
  185. package/src/storage.ts +50 -0
  186. package/src/translations.ts +59 -15
  187. package/src/types.ts +33 -1
  188. package/dist/lib/browser/app-graph-builder-AOIN4N2Q.mjs +0 -162
  189. package/dist/lib/browser/app-graph-builder-AOIN4N2Q.mjs.map +0 -7
  190. package/dist/lib/browser/chunk-XPEFEID2.mjs +0 -19
  191. package/dist/lib/browser/chunk-XPEFEID2.mjs.map +0 -7
  192. package/dist/lib/browser/index.mjs +0 -69
  193. package/dist/lib/browser/index.mjs.map +0 -7
  194. package/dist/lib/browser/intent-resolver-LKNUYBTN.mjs +0 -23
  195. package/dist/lib/browser/intent-resolver-LKNUYBTN.mjs.map +0 -7
  196. package/dist/lib/browser/meta.json +0 -1
  197. package/dist/lib/browser/react-surface-KP3NX4UD.mjs +0 -357
  198. package/dist/lib/browser/react-surface-KP3NX4UD.mjs.map +0 -7
  199. package/dist/types/src/capabilities/intent-resolver.d.ts +0 -4
  200. package/dist/types/src/capabilities/intent-resolver.d.ts.map +0 -1
  201. package/dist/types/src/components/PluginDetail.d.ts +0 -9
  202. package/dist/types/src/components/PluginDetail.d.ts.map +0 -1
  203. package/dist/types/src/components/PluginDetail.stories.d.ts +0 -32
  204. package/dist/types/src/components/PluginDetail.stories.d.ts.map +0 -1
  205. package/dist/types/src/components/PluginItem.d.ts +0 -13
  206. package/dist/types/src/components/PluginItem.d.ts.map +0 -1
  207. package/dist/types/src/components/PluginList.d.ts +0 -8
  208. package/dist/types/src/components/PluginList.d.ts.map +0 -1
  209. package/dist/types/src/components/PluginList.stories.d.ts +0 -34
  210. package/dist/types/src/components/PluginList.stories.d.ts.map +0 -1
  211. package/dist/types/src/components/RegistryContainer.d.ts +0 -7
  212. package/dist/types/src/components/RegistryContainer.d.ts.map +0 -1
  213. package/src/capabilities/intent-resolver.ts +0 -27
  214. package/src/components/PluginDetail.stories.tsx +0 -45
  215. package/src/components/PluginDetail.tsx +0 -82
  216. package/src/components/PluginItem.tsx +0 -120
  217. package/src/components/PluginList.stories.tsx +0 -80
  218. package/src/components/PluginList.tsx +0 -24
  219. package/src/components/RegistryContainer.tsx +0 -84
package/package.json CHANGED
@@ -1,62 +1,103 @@
1
1
  {
2
2
  "name": "@dxos/plugin-registry",
3
- "version": "0.8.4-main.ae835ea",
3
+ "version": "0.8.4-main.bc2380dfbc",
4
4
  "description": "Braneframe plugin gallery",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
7
- "license": "MIT",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/dxos/dxos"
10
+ },
11
+ "license": "FSL-1.1-Apache-2.0",
8
12
  "author": "DXOS.org",
9
13
  "sideEffects": true,
10
14
  "type": "module",
15
+ "imports": {
16
+ "#capabilities": "./src/capabilities/index.ts",
17
+ "#components": "./src/components/index.ts",
18
+ "#containers": "./src/containers/index.ts",
19
+ "#meta": "./src/meta.ts",
20
+ "#operations": "./src/operations/index.ts",
21
+ "#plugin": {
22
+ "source": {
23
+ "workerd": "./src/RegistryPlugin.workerd.ts",
24
+ "node": "./src/RegistryPlugin.node.ts",
25
+ "default": "./src/RegistryPlugin.tsx"
26
+ },
27
+ "types": "./dist/types/src/RegistryPlugin.d.ts",
28
+ "workerd": "./dist/lib/neutral/RegistryPlugin.workerd.mjs",
29
+ "node": "./dist/lib/neutral/RegistryPlugin.node.mjs",
30
+ "default": "./dist/lib/neutral/RegistryPlugin.mjs"
31
+ },
32
+ "#translations": "./src/translations.ts",
33
+ "#types": "./src/types.ts"
34
+ },
11
35
  "exports": {
12
36
  ".": {
13
37
  "source": "./src/index.ts",
14
38
  "types": "./dist/types/src/index.d.ts",
15
- "browser": "./dist/lib/browser/index.mjs"
39
+ "default": "./dist/lib/neutral/index.mjs"
40
+ },
41
+ "./plugin": {
42
+ "source": "./src/plugin.ts",
43
+ "types": "./dist/types/src/plugin.d.ts",
44
+ "default": "./dist/lib/neutral/plugin.mjs"
45
+ },
46
+ "./translations": {
47
+ "source": "./src/translations.ts",
48
+ "types": "./dist/types/src/translations.d.ts",
49
+ "default": "./dist/lib/neutral/translations.mjs"
16
50
  }
17
51
  },
18
52
  "types": "dist/types/src/index.d.ts",
19
- "typesVersions": {
20
- "*": {}
21
- },
22
53
  "files": [
23
54
  "dist",
24
55
  "src"
25
56
  ],
26
57
  "dependencies": {
27
- "@preact-signals/safe-react": "^0.9.0",
28
- "@dxos/echo": "0.8.4-main.ae835ea",
29
- "@dxos/live-object": "0.8.4-main.ae835ea",
30
- "@dxos/app-framework": "0.8.4-main.ae835ea",
31
- "@dxos/plugin-observability": "0.8.4-main.ae835ea",
32
- "@dxos/plugin-graph": "0.8.4-main.ae835ea",
33
- "@dxos/react-ui-stack": "0.8.4-main.ae835ea",
34
- "@dxos/invariant": "0.8.4-main.ae835ea",
35
- "@dxos/util": "0.8.4-main.ae835ea",
36
- "@dxos/react-ui-form": "0.8.4-main.ae835ea"
58
+ "@effect-atom/atom-react": "^0.5.0",
59
+ "@effect/cli": "0.73.2",
60
+ "yaml": "^2.8.2",
61
+ "@dxos/cli-util": "0.8.4-main.bc2380dfbc",
62
+ "@dxos/app-framework": "0.8.4-main.bc2380dfbc",
63
+ "@dxos/app-toolkit": "0.8.4-main.bc2380dfbc",
64
+ "@dxos/compute": "0.8.4-main.bc2380dfbc",
65
+ "@dxos/client-protocol": "0.8.4-main.bc2380dfbc",
66
+ "@dxos/context": "0.8.4-main.bc2380dfbc",
67
+ "@dxos/invariant": "0.8.4-main.bc2380dfbc",
68
+ "@dxos/log": "0.8.4-main.bc2380dfbc",
69
+ "@dxos/plugin-graph": "0.8.4-main.bc2380dfbc",
70
+ "@dxos/plugin-observability": "0.8.4-main.bc2380dfbc",
71
+ "@dxos/react-ui-mosaic": "0.8.4-main.bc2380dfbc",
72
+ "@dxos/react-ui-form": "0.8.4-main.bc2380dfbc",
73
+ "@dxos/effect": "0.8.4-main.bc2380dfbc",
74
+ "@dxos/echo": "0.8.4-main.bc2380dfbc",
75
+ "@dxos/react-ui-stack": "0.8.4-main.bc2380dfbc",
76
+ "@dxos/util": "0.8.4-main.bc2380dfbc"
37
77
  },
38
78
  "devDependencies": {
39
- "@effect-rx/rx-react": "0.42.4",
40
- "@effect/platform": "0.92.1",
41
- "@types/react": "~19.2.2",
42
- "@types/react-dom": "~19.2.2",
43
- "effect": "3.18.3",
44
- "react": "~19.2.0",
45
- "react-dom": "~19.2.0",
46
- "vite": "7.1.9",
47
- "@dxos/react-ui": "0.8.4-main.ae835ea",
48
- "@dxos/random": "0.8.4-main.ae835ea",
49
- "@dxos/react-ui-theme": "0.8.4-main.ae835ea",
50
- "@dxos/storybook-utils": "0.8.4-main.ae835ea"
79
+ "@effect-atom/atom-react": "^0.5.0",
80
+ "@effect/platform": "0.94.4",
81
+ "@types/react": "~19.2.7",
82
+ "@types/react-dom": "~19.2.3",
83
+ "effect": "3.20.0",
84
+ "react": "~19.2.3",
85
+ "react-dom": "~19.2.3",
86
+ "vite": "^8.0.13",
87
+ "@dxos/plugin-testing": "0.8.4-main.bc2380dfbc",
88
+ "@dxos/random": "0.8.4-main.bc2380dfbc",
89
+ "@dxos/ui-theme": "0.8.4-main.bc2380dfbc",
90
+ "@dxos/react-ui": "0.8.4-main.bc2380dfbc",
91
+ "@dxos/storybook-utils": "0.8.4-main.bc2380dfbc"
51
92
  },
52
93
  "peerDependencies": {
53
- "@effect-rx/rx-react": "^0.34.1",
54
- "@effect/platform": "^0.80.12",
55
- "effect": "^3.13.3",
56
- "react": "^19.0.0",
57
- "react-dom": "^19.0.0",
58
- "@dxos/react-ui": "0.8.4-main.ae835ea",
59
- "@dxos/react-ui-theme": "0.8.4-main.ae835ea"
94
+ "@effect-atom/atom-react": "^0.5.0",
95
+ "@effect/platform": "0.94.4",
96
+ "effect": "3.20.0",
97
+ "react": "~19.2.3",
98
+ "react-dom": "~19.2.3",
99
+ "@dxos/react-ui": "0.8.4-main.bc2380dfbc",
100
+ "@dxos/ui-theme": "0.8.4-main.bc2380dfbc"
60
101
  },
61
102
  "publishConfig": {
62
103
  "access": "public"
@@ -0,0 +1,19 @@
1
+ //
2
+ // Copyright 2025 DXOS.org
3
+ //
4
+
5
+ import { Plugin } from '@dxos/app-framework';
6
+ import { AppPlugin } from '@dxos/app-toolkit';
7
+
8
+ import { meta } from '#meta';
9
+
10
+ import { plugin } from './commands';
11
+
12
+ export const RegistryPlugin = Plugin.define(meta).pipe(
13
+ AppPlugin.addCommandModule({
14
+ commands: [plugin],
15
+ }),
16
+ Plugin.make,
17
+ );
18
+
19
+ export default RegistryPlugin;
@@ -0,0 +1,24 @@
1
+ //
2
+ // Copyright 2026 DXOS.org
3
+ //
4
+
5
+ import { describe, test } from 'vitest';
6
+
7
+ import { createComposerTestApp } from '@dxos/plugin-testing/harness';
8
+
9
+ import { RegistryPlugin } from '#plugin';
10
+
11
+ import { meta } from './meta';
12
+
13
+ const moduleId = (name: string) => `${meta.id}.module.${name}`;
14
+
15
+ describe('RegistryPlugin', () => {
16
+ test('modules activate on the expected events', async ({ expect }) => {
17
+ await using harness = await createComposerTestApp({
18
+ plugins: [RegistryPlugin()],
19
+ });
20
+
21
+ // CLI commands activate on startup.
22
+ expect(harness.manager.getActive()).toContain(moduleId('cli-commands'));
23
+ });
24
+ });
@@ -2,31 +2,25 @@
2
2
  // Copyright 2023 DXOS.org
3
3
  //
4
4
 
5
- import { Capabilities, Events, contributes, defineModule, definePlugin } from '@dxos/app-framework';
5
+ import { ActivationEvents, Plugin } from '@dxos/app-framework';
6
+ import { AppPlugin } from '@dxos/app-toolkit';
6
7
 
7
- import { AppGraphBuilder, IntentResolver, ReactSurface } from './capabilities';
8
- import { meta } from './meta';
9
- import { translations } from './translations';
8
+ import { AppGraphBuilder, DevPluginLoader, OperationHandler, ReactSurface, RegistrySettings } from '#capabilities';
9
+ import { meta } from '#meta';
10
+ import { translations } from '#translations';
10
11
 
11
- export const RegistryPlugin = definePlugin(meta, () => [
12
- defineModule({
13
- id: `${meta.id}/module/translations`,
14
- activatesOn: Events.SetupTranslations,
15
- activate: () => contributes(Capabilities.Translations, translations),
12
+ export const RegistryPlugin = Plugin.define(meta).pipe(
13
+ AppPlugin.addAppGraphModule({ activate: AppGraphBuilder }),
14
+ AppPlugin.addOperationHandlerModule({ activate: OperationHandler }),
15
+ AppPlugin.addSettingsModule({ activate: RegistrySettings }),
16
+ AppPlugin.addSurfaceModule({ activate: ReactSurface }),
17
+ AppPlugin.addTranslationsModule({ translations }),
18
+ Plugin.addModule({
19
+ id: 'dev-plugin-loader',
20
+ activatesOn: ActivationEvents.Startup,
21
+ activate: DevPluginLoader,
16
22
  }),
17
- defineModule({
18
- id: `${meta.id}/module/react-surface`,
19
- activatesOn: Events.SetupReactSurface,
20
- activate: ReactSurface,
21
- }),
22
- defineModule({
23
- id: `${meta.id}/module/intent-resolver`,
24
- activatesOn: Events.SetupIntentResolver,
25
- activate: IntentResolver,
26
- }),
27
- defineModule({
28
- id: `${meta.id}/module/app-graph-builder`,
29
- activatesOn: Events.SetupAppGraph,
30
- activate: AppGraphBuilder,
31
- }),
32
- ]);
23
+ Plugin.make,
24
+ );
25
+
26
+ export default RegistryPlugin;
@@ -0,0 +1,11 @@
1
+ //
2
+ // Copyright 2025 DXOS.org
3
+ //
4
+
5
+ import { Plugin } from '@dxos/app-framework';
6
+
7
+ import { meta } from '#meta';
8
+
9
+ export const RegistryPlugin = Plugin.define(meta).pipe(Plugin.make);
10
+
11
+ export default RegistryPlugin;
@@ -2,155 +2,199 @@
2
2
  // Copyright 2025 DXOS.org
3
3
  //
4
4
 
5
- import { Rx } from '@effect-rx/rx-react';
6
- import * as Function from 'effect/Function';
7
- import * as Option from 'effect/Option';
5
+ import * as Effect from 'effect/Effect';
8
6
 
9
- import { Capabilities, type PluginContext, SettingsAction, contributes, createIntent } from '@dxos/app-framework';
10
- import { createExtension } from '@dxos/plugin-graph';
7
+ import { Capabilities, Capability, type Registry, Plugin } from '@dxos/app-framework';
8
+ import { AppCapabilities, LayoutOperation, SettingsOperation } from '@dxos/app-toolkit';
9
+ import { Operation } from '@dxos/compute';
10
+ import { GraphBuilder, Node, NodeMatcher } from '@dxos/plugin-graph';
11
11
 
12
- import { REGISTRY_ID, REGISTRY_KEY, meta } from '../meta';
12
+ import { REGISTRY_ID, REGISTRY_KEY, registryCategoryId, meta } from '#meta';
13
13
 
14
- export default (context: PluginContext) =>
15
- contributes(Capabilities.AppGraphBuilder, [
16
- createExtension({
17
- id: meta.id,
18
- actions: (node) =>
19
- Rx.make((get) =>
20
- Function.pipe(
21
- get(node),
22
- Option.flatMap((node) => (node.id === 'root' ? Option.some(node) : Option.none())),
23
- Option.map((node) => [
24
- {
25
- id: meta.id,
26
- data: async () => {
27
- const { dispatchPromise: dispatch } = context.getCapability(Capabilities.IntentDispatcher);
28
- await dispatch(createIntent(SettingsAction.OpenPluginRegistry));
29
- },
30
- properties: {
31
- label: ['open plugin registry label', { ns: meta.id }],
32
- icon: 'ph--squares-four--regular',
33
- disposition: 'menu',
34
- },
14
+ import { LOAD_PLUGIN_DIALOG } from '../containers';
15
+
16
+ /**
17
+ * Turns a registry catalog entry into a minimal {@link Plugin.Plugin} so it
18
+ * can be attached as the graph node's `data`. The synthesized plugin has no
19
+ * modules and only exists so the article surface can render details for
20
+ * registry plugins that haven't been installed yet.
21
+ */
22
+ const toDisplayPlugin = (entry: Registry.Plugin): Plugin.Plugin =>
23
+ ({
24
+ [Plugin.PluginTypeId]: Plugin.PluginTypeId,
25
+ meta: {
26
+ id: entry.id,
27
+ name: entry.name,
28
+ description: entry.description,
29
+ homePage: entry.homePage,
30
+ source: entry.source,
31
+ screenshots: entry.screenshots,
32
+ tags: entry.tags,
33
+ icon: entry.icon,
34
+ iconHue: entry.iconHue,
35
+ },
36
+ modules: [],
37
+ }) as Plugin.Plugin;
38
+
39
+ export default Capability.makeModule(
40
+ Effect.fnUntraced(function* () {
41
+ const capabilities = yield* Capability.Service;
42
+
43
+ const extensions = yield* Effect.all([
44
+ GraphBuilder.createExtension({
45
+ id: 'open-registry',
46
+ match: NodeMatcher.whenRoot,
47
+ actions: () =>
48
+ Effect.succeed([
49
+ {
50
+ id: 'open-registry',
51
+ data: () => Operation.invoke(SettingsOperation.OpenPluginRegistry),
52
+ properties: {
53
+ label: ['open-plugin-registry.label', { ns: meta.id }],
54
+ icon: 'ph--squares-four--regular',
55
+ disposition: 'menu',
35
56
  },
36
- ]),
37
- Option.getOrElse(() => []),
38
- ),
39
- ),
40
- }),
41
- createExtension({
42
- id: meta.id,
43
- connector: (node) =>
44
- Rx.make((get) =>
45
- Function.pipe(
46
- get(node),
47
- Option.flatMap((node) => (node.id === 'root' ? Option.some(node) : Option.none())),
48
- Option.map((node) => [
49
- {
50
- id: REGISTRY_ID,
51
- type: meta.id,
52
- properties: {
53
- label: ['plugin registry label', { ns: meta.id }],
54
- icon: 'ph--squares-four--regular',
55
- disposition: 'pin-end',
56
- testId: 'treeView.pluginRegistry',
57
- },
58
- nodes: [
59
- {
60
- id: `${REGISTRY_KEY}+all`,
61
- type: 'category',
62
- data: `${REGISTRY_KEY}+all`,
63
- properties: {
64
- label: ['all plugins label', { ns: meta.id }],
65
- icon: 'ph--squares-four--regular',
66
- key: REGISTRY_KEY,
67
- testId: 'pluginRegistry.all',
68
- },
57
+ },
58
+ ]),
59
+ }),
60
+ GraphBuilder.createExtension({
61
+ id: 'registry',
62
+ match: NodeMatcher.whenRoot,
63
+ connector: () =>
64
+ Effect.succeed([
65
+ Node.make({
66
+ id: REGISTRY_ID,
67
+ type: meta.id,
68
+ properties: {
69
+ label: ['plugin-registry.label', { ns: meta.id }],
70
+ icon: 'ph--squares-four--regular',
71
+ disposition: 'pin-end',
72
+ position: 'hoist',
73
+ testId: 'treeView.pluginRegistry',
74
+ },
75
+ nodes: [
76
+ Node.make({
77
+ id: registryCategoryId('official'),
78
+ type: 'category',
79
+ data: registryCategoryId('official'),
80
+ properties: {
81
+ label: ['official-plugins.label', { ns: meta.id }],
82
+ icon: 'ph--squares-four--regular',
83
+ key: REGISTRY_KEY,
84
+ testId: 'pluginRegistry.official',
85
+ },
86
+ }),
87
+ Node.make({
88
+ id: registryCategoryId('installed'),
89
+ type: 'category',
90
+ data: registryCategoryId('installed'),
91
+ properties: {
92
+ label: ['installed-plugins.label', { ns: meta.id }],
93
+ icon: 'ph--check--regular',
94
+ key: REGISTRY_KEY,
95
+ testId: 'pluginRegistry.installed',
69
96
  },
70
- {
71
- id: `${REGISTRY_KEY}+installed`,
72
- type: 'category',
73
- data: `${REGISTRY_KEY}+installed`,
74
- properties: {
75
- label: ['installed plugins label', { ns: meta.id }],
76
- icon: 'ph--check--regular',
77
- key: REGISTRY_KEY,
78
- testId: 'pluginRegistry.installed',
79
- },
97
+ }),
98
+ Node.make({
99
+ id: registryCategoryId('recommended'),
100
+ type: 'category',
101
+ data: registryCategoryId('recommended'),
102
+ properties: {
103
+ label: ['recommended-plugins.label', { ns: meta.id }],
104
+ icon: 'ph--star--regular',
105
+ key: REGISTRY_KEY,
106
+ testId: 'pluginRegistry.recommended',
80
107
  },
81
- {
82
- id: `${REGISTRY_KEY}+recommended`,
83
- type: 'category',
84
- data: `${REGISTRY_KEY}+recommended`,
85
- properties: {
86
- label: ['recommended plugins label', { ns: meta.id }],
87
- icon: 'ph--star--regular',
88
- key: REGISTRY_KEY,
89
- testId: 'pluginRegistry.recommended',
90
- },
108
+ }),
109
+ Node.make({
110
+ id: registryCategoryId('labs'),
111
+ type: 'category',
112
+ data: registryCategoryId('labs'),
113
+ properties: {
114
+ label: ['labs-plugins.label', { ns: meta.id }],
115
+ icon: 'ph--flask--regular',
116
+ key: REGISTRY_KEY,
117
+ testId: 'pluginRegistry.labs',
91
118
  },
92
- {
93
- id: `${REGISTRY_KEY}+labs`,
94
- type: 'category',
95
- data: `${REGISTRY_KEY}+labs`,
96
- properties: {
97
- label: ['labs plugins label', { ns: meta.id }],
98
- icon: 'ph--flask--regular',
99
- key: REGISTRY_KEY,
100
- testId: 'pluginRegistry.labs',
101
- },
119
+ }),
120
+ Node.make({
121
+ id: registryCategoryId('registry'),
122
+ type: 'category',
123
+ data: registryCategoryId('registry'),
124
+ properties: {
125
+ label: ['registry-plugins.label', { ns: meta.id }],
126
+ icon: 'ph--users-three--regular',
127
+ key: REGISTRY_KEY,
128
+ testId: 'pluginRegistry.registry',
102
129
  },
103
- ],
130
+ }),
131
+ ],
132
+ }),
133
+ ]),
134
+ }),
135
+ GraphBuilder.createExtension({
136
+ id: 'actions',
137
+ match: NodeMatcher.whenId(`root/${REGISTRY_ID}`),
138
+ actions: () =>
139
+ Effect.succeed([
140
+ {
141
+ id: 'load-by-url',
142
+ data: Effect.fnUntraced(function* () {
143
+ yield* Operation.invoke(LayoutOperation.UpdateDialog, {
144
+ subject: LOAD_PLUGIN_DIALOG,
145
+ state: true,
146
+ });
147
+ }),
148
+ properties: {
149
+ label: ['load-by-url.label', { ns: meta.id }],
150
+ icon: 'ph--cloud-arrow-down--regular',
151
+ disposition: 'list-item-primary',
104
152
  },
105
- ]),
106
- Option.getOrElse(() => []),
107
- ),
108
- ),
109
- }),
110
- createExtension({
111
- id: `${meta.id}/actions`,
112
- actions: (node) =>
113
- Rx.make((get) =>
114
- Function.pipe(
115
- get(node),
116
- Option.flatMap((node) => (node.id === REGISTRY_ID ? Option.some(node) : Option.none())),
117
- Option.map(() => [
118
- {
119
- id: `${meta.id}/load-by-url`,
120
- data: async () => {},
121
- properties: {
122
- label: ['load by url label', { ns: meta.id }],
123
- icon: 'ph--cloud-arrow-down--regular',
124
- disabled: true,
125
- },
153
+ },
154
+ ]),
155
+ }),
156
+ GraphBuilder.createExtension({
157
+ id: 'plugins',
158
+ match: NodeMatcher.whenId(`root/${REGISTRY_ID}`),
159
+ connector: (_node, get) => {
160
+ const manager = capabilities.get(Capabilities.PluginManager);
161
+ const installedIds = new Set(manager.getPlugins().map((plugin) => plugin.meta.id));
162
+
163
+ const installedNodes = manager.getPlugins().map((plugin) =>
164
+ Node.make({
165
+ id: plugin.meta.id,
166
+ type: 'org.dxos.plugin',
167
+ data: plugin,
168
+ properties: {
169
+ label: plugin.meta.name ?? plugin.meta.id,
170
+ icon: plugin.meta.icon ?? 'ph--circle--regular',
171
+ disposition: 'hidden',
126
172
  },
127
- ]),
128
- Option.getOrElse(() => []),
129
- ),
130
- ),
131
- }),
132
- createExtension({
133
- id: `${meta.id}/plugins`,
134
- connector: (node) =>
135
- Rx.make((get) =>
136
- Function.pipe(
137
- get(node),
138
- Option.flatMap((node) => (node.id === REGISTRY_ID ? Option.some(node) : Option.none())),
139
- Option.map(() => {
140
- const manager = context.getCapability(Capabilities.PluginManager);
141
- return manager.plugins.map((plugin) => ({
142
- id: plugin.meta.id.replaceAll('/', ':'),
143
- type: 'dxos.org/plugin',
173
+ }),
174
+ );
175
+
176
+ const registryEntries = get(manager.pluginRegistry.plugins).entries;
177
+ const registryNodes = registryEntries
178
+ .filter((entry) => !installedIds.has(entry.id))
179
+ .map((entry) => {
180
+ const plugin = toDisplayPlugin(entry);
181
+ return Node.make({
182
+ id: plugin.meta.id,
183
+ type: 'org.dxos.plugin',
144
184
  data: plugin,
145
185
  properties: {
146
186
  label: plugin.meta.name ?? plugin.meta.id,
147
187
  icon: plugin.meta.icon ?? 'ph--circle--regular',
148
188
  disposition: 'hidden',
149
189
  },
150
- }));
151
- }),
152
- Option.getOrElse(() => []),
153
- ),
154
- ),
155
- }),
156
- ]);
190
+ });
191
+ });
192
+
193
+ return Effect.succeed([...installedNodes, ...registryNodes]);
194
+ },
195
+ }),
196
+ ]);
197
+
198
+ return Capability.contributes(AppCapabilities.AppGraphBuilder, extensions);
199
+ }),
200
+ );
@@ -0,0 +1,39 @@
1
+ //
2
+ // Copyright 2026 DXOS.org
3
+ //
4
+
5
+ import * as Effect from 'effect/Effect';
6
+
7
+ import { Capabilities, Capability } from '@dxos/app-framework';
8
+ import { log } from '@dxos/log';
9
+
10
+ import { RegistryCapabilities } from '../types';
11
+
12
+ /**
13
+ * Startup module that auto-loads a locally-served dev plugin when the user has
14
+ * the toggle enabled in registry settings. Failures (dev server offline, 404,
15
+ * timeout) are logged and swallowed so a stale dev URL never blocks app boot —
16
+ * the toggle stays on, the next reload retries.
17
+ */
18
+ export default Capability.makeModule(
19
+ Effect.fnUntraced(function* () {
20
+ const manager = yield* Capability.get(Capabilities.PluginManager);
21
+ const registry = yield* Capability.get(Capabilities.AtomRegistry);
22
+ const settingsAtom = yield* Capability.get(RegistryCapabilities.Settings);
23
+
24
+ const settings = registry.get(settingsAtom);
25
+ const url = settings.devPluginUrl?.trim();
26
+ if (!settings.devPluginEnabled || !url) {
27
+ return [];
28
+ }
29
+
30
+ log.info('loading dev plugin from registry settings', { url });
31
+ yield* manager.add(url).pipe(
32
+ Effect.flatMap((plugin) => manager.enable(plugin.meta.id)),
33
+ Effect.tapError((error) => Effect.sync(() => log.warn('dev plugin auto-load failed', { url, error }))),
34
+ Effect.ignore,
35
+ );
36
+
37
+ return [];
38
+ }),
39
+ );
@@ -2,8 +2,14 @@
2
2
  // Copyright 2025 DXOS.org
3
3
  //
4
4
 
5
- import { lazy } from '@dxos/app-framework';
5
+ import { Capability } from '@dxos/app-framework';
6
+ import { OperationHandlerSet } from '@dxos/compute';
6
7
 
7
- export const AppGraphBuilder = lazy(() => import('./app-graph-builder'));
8
- export const IntentResolver = lazy(() => import('./intent-resolver'));
9
- export const ReactSurface = lazy(() => import('./react-surface'));
8
+ export const AppGraphBuilder = Capability.lazy('AppGraphBuilder', () => import('./app-graph-builder'));
9
+ export const DevPluginLoader = Capability.lazy('DevPluginLoader', () => import('./dev-plugin-loader'));
10
+ export const OperationHandler = Capability.lazy<OperationHandlerSet.OperationHandlerSet>(
11
+ 'OperationHandler',
12
+ () => import('./operation-handler'),
13
+ );
14
+ export const ReactSurface = Capability.lazy('ReactSurface', () => import('./react-surface'));
15
+ export const RegistrySettings = Capability.lazy('RegistrySettings', () => import('./settings'));