@dxos/plugin-registry 0.8.4-main.d05673bc65 → 0.8.4-main.dfabb4ec29

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 (234) hide show
  1. package/dist/lib/neutral/RegistryPlugin.mjs +27 -0
  2. package/dist/lib/neutral/RegistryPlugin.mjs.map +7 -0
  3. package/dist/lib/{browser/cli/index.mjs → neutral/RegistryPlugin.node.mjs} +28 -97
  4. package/dist/lib/neutral/RegistryPlugin.node.mjs.map +7 -0
  5. package/dist/lib/neutral/chunk-XK2JMH3H.mjs +33 -0
  6. package/dist/lib/neutral/chunk-XK2JMH3H.mjs.map +7 -0
  7. package/dist/lib/{browser/chunk-KMUDYITM.mjs → neutral/chunk-YV7A523U.mjs} +11 -3
  8. package/dist/lib/neutral/chunk-YV7A523U.mjs.map +7 -0
  9. package/dist/lib/neutral/index.mjs +21 -0
  10. package/dist/lib/neutral/index.mjs.map +7 -0
  11. package/dist/lib/neutral/meta.json +1 -0
  12. package/dist/lib/neutral/open-plugin-registry-II735N76.mjs +15 -0
  13. package/dist/lib/neutral/open-plugin-registry-II735N76.mjs.map +7 -0
  14. package/dist/lib/neutral/plugin.mjs +18 -0
  15. package/dist/lib/neutral/plugin.mjs.map +7 -0
  16. package/dist/lib/neutral/translations.mjs +61 -0
  17. package/dist/lib/neutral/translations.mjs.map +7 -0
  18. package/dist/types/src/RegistryPlugin.d.ts +1 -0
  19. package/dist/types/src/RegistryPlugin.d.ts.map +1 -1
  20. package/dist/types/src/{cli/plugin.d.ts → RegistryPlugin.node.d.ts} +2 -1
  21. package/dist/types/src/RegistryPlugin.node.d.ts.map +1 -0
  22. package/dist/types/src/RegistryPlugin.test.d.ts +2 -0
  23. package/dist/types/src/RegistryPlugin.test.d.ts.map +1 -0
  24. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -0
  25. package/dist/types/src/capabilities/dev-plugin-loader.d.ts +11 -0
  26. package/dist/types/src/capabilities/dev-plugin-loader.d.ts.map +1 -0
  27. package/dist/types/src/capabilities/index.d.ts +15 -3
  28. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  29. package/dist/types/src/capabilities/operation-handler.d.ts +6 -0
  30. package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -0
  31. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -0
  32. package/dist/types/src/capabilities/settings.d.ts +14 -0
  33. package/dist/types/src/capabilities/settings.d.ts.map +1 -0
  34. package/dist/types/src/{cli/commands → commands}/disable.d.ts +2 -2
  35. package/dist/types/src/commands/disable.d.ts.map +1 -0
  36. package/dist/types/src/{cli/commands → commands}/enable.d.ts +2 -2
  37. package/dist/types/src/commands/enable.d.ts.map +1 -0
  38. package/dist/types/src/commands/index.d.ts.map +1 -0
  39. package/dist/types/src/commands/list.d.ts +7 -0
  40. package/dist/types/src/commands/list.d.ts.map +1 -0
  41. package/dist/types/src/commands/util.d.ts.map +1 -0
  42. package/dist/types/src/components/PluginDetail/PluginDetail.d.ts +39 -2
  43. package/dist/types/src/components/PluginDetail/PluginDetail.d.ts.map +1 -1
  44. package/dist/types/src/components/PluginDetail/PluginDetail.stories.d.ts +51 -16
  45. package/dist/types/src/components/PluginDetail/PluginDetail.stories.d.ts.map +1 -1
  46. package/dist/types/src/components/PluginFailureBadge/PluginFailureBadge.d.ts +20 -0
  47. package/dist/types/src/components/PluginFailureBadge/PluginFailureBadge.d.ts.map +1 -0
  48. package/dist/types/src/components/PluginFailureBadge/index.d.ts +2 -0
  49. package/dist/types/src/components/PluginFailureBadge/index.d.ts.map +1 -0
  50. package/dist/types/src/components/PluginList/PluginItem.d.ts +29 -2
  51. package/dist/types/src/components/PluginList/PluginItem.d.ts.map +1 -1
  52. package/dist/types/src/components/PluginList/PluginList.d.ts +18 -3
  53. package/dist/types/src/components/PluginList/PluginList.d.ts.map +1 -1
  54. package/dist/types/src/components/PluginList/PluginList.stories.d.ts +49 -16
  55. package/dist/types/src/components/PluginList/PluginList.stories.d.ts.map +1 -1
  56. package/dist/types/src/components/RegistrySettings/RegistrySettings.d.ts +18 -0
  57. package/dist/types/src/components/RegistrySettings/RegistrySettings.d.ts.map +1 -0
  58. package/dist/types/src/components/RegistrySettings/index.d.ts +2 -0
  59. package/dist/types/src/components/RegistrySettings/index.d.ts.map +1 -0
  60. package/dist/types/src/components/index.d.ts +2 -0
  61. package/dist/types/src/components/index.d.ts.map +1 -1
  62. package/dist/types/src/containers/BaseRegistryArticle/BaseRegistryArticle.d.ts +20 -0
  63. package/dist/types/src/containers/BaseRegistryArticle/BaseRegistryArticle.d.ts.map +1 -0
  64. package/dist/types/src/containers/BaseRegistryArticle/index.d.ts +2 -0
  65. package/dist/types/src/containers/BaseRegistryArticle/index.d.ts.map +1 -0
  66. package/dist/types/src/containers/LoadPluginDialog/LoadPluginDialog.d.ts +4 -0
  67. package/dist/types/src/containers/LoadPluginDialog/LoadPluginDialog.d.ts.map +1 -0
  68. package/dist/types/src/containers/LoadPluginDialog/index.d.ts +2 -0
  69. package/dist/types/src/containers/LoadPluginDialog/index.d.ts.map +1 -0
  70. package/dist/types/src/containers/PluginArticle/PluginArticle.d.ts.map +1 -1
  71. package/dist/types/src/containers/PluginArticle/index.d.ts +1 -2
  72. package/dist/types/src/containers/PluginArticle/index.d.ts.map +1 -1
  73. package/dist/types/src/containers/PublicRegistryArticle/PublicRegistryArticle.d.ts +8 -0
  74. package/dist/types/src/containers/PublicRegistryArticle/PublicRegistryArticle.d.ts.map +1 -0
  75. package/dist/types/src/containers/PublicRegistryArticle/index.d.ts +2 -0
  76. package/dist/types/src/containers/PublicRegistryArticle/index.d.ts.map +1 -0
  77. package/dist/types/src/containers/RegistryArticle/RegistryArticle.d.ts +14 -0
  78. package/dist/types/src/containers/RegistryArticle/RegistryArticle.d.ts.map +1 -0
  79. package/dist/types/src/containers/RegistryArticle/index.d.ts +2 -0
  80. package/dist/types/src/containers/RegistryArticle/index.d.ts.map +1 -0
  81. package/dist/types/src/containers/RegistrySettingsContainer/RegistrySettingsContainer.d.ts +13 -0
  82. package/dist/types/src/containers/RegistrySettingsContainer/RegistrySettingsContainer.d.ts.map +1 -0
  83. package/dist/types/src/containers/RegistrySettingsContainer/index.d.ts +2 -0
  84. package/dist/types/src/containers/RegistrySettingsContainer/index.d.ts.map +1 -0
  85. package/dist/types/src/containers/index.d.ts +5 -1
  86. package/dist/types/src/containers/index.d.ts.map +1 -1
  87. package/dist/types/src/hooks/index.d.ts +4 -0
  88. package/dist/types/src/hooks/index.d.ts.map +1 -0
  89. package/dist/types/src/hooks/use-auto-tags.d.ts +20 -0
  90. package/dist/types/src/hooks/use-auto-tags.d.ts.map +1 -0
  91. package/dist/types/src/hooks/use-registry-plugins.d.ts +15 -0
  92. package/dist/types/src/hooks/use-registry-plugins.d.ts.map +1 -0
  93. package/dist/types/src/hooks/use-update-available.d.ts +18 -0
  94. package/dist/types/src/hooks/use-update-available.d.ts.map +1 -0
  95. package/dist/types/src/index.d.ts +1 -1
  96. package/dist/types/src/index.d.ts.map +1 -1
  97. package/dist/types/src/meta.d.ts +3 -1
  98. package/dist/types/src/meta.d.ts.map +1 -1
  99. package/dist/types/src/operations/index.d.ts +3 -0
  100. package/dist/types/src/operations/index.d.ts.map +1 -0
  101. package/dist/types/src/operations/open-plugin-registry.d.ts +5 -0
  102. package/dist/types/src/operations/open-plugin-registry.d.ts.map +1 -0
  103. package/dist/types/src/plugin.d.ts +4 -0
  104. package/dist/types/src/plugin.d.ts.map +1 -0
  105. package/dist/types/src/storage.d.ts.map +1 -0
  106. package/dist/types/src/translations.d.ts +48 -16
  107. package/dist/types/src/translations.d.ts.map +1 -1
  108. package/dist/types/src/types.d.ts +30 -1
  109. package/dist/types/src/types.d.ts.map +1 -1
  110. package/dist/types/tsconfig.tsbuildinfo +1 -1
  111. package/package.json +57 -36
  112. package/src/{cli/plugin.ts → RegistryPlugin.node.ts} +3 -1
  113. package/src/RegistryPlugin.test.ts +24 -0
  114. package/src/RegistryPlugin.tsx +13 -5
  115. package/src/capabilities/app-graph-builder.ts +200 -0
  116. package/src/capabilities/dev-plugin-loader.ts +39 -0
  117. package/src/capabilities/index.ts +11 -3
  118. package/src/capabilities/operation-handler.ts +16 -0
  119. package/src/capabilities/react-surface.tsx +136 -0
  120. package/src/capabilities/settings.ts +34 -0
  121. package/src/components/PluginDetail/PluginDetail.stories.tsx +4 -4
  122. package/src/components/PluginDetail/PluginDetail.tsx +175 -60
  123. package/src/components/PluginFailureBadge/PluginFailureBadge.tsx +68 -0
  124. package/src/components/PluginFailureBadge/index.ts +5 -0
  125. package/src/components/PluginList/PluginItem.tsx +116 -14
  126. package/src/components/PluginList/PluginList.stories.tsx +17 -14
  127. package/src/components/PluginList/PluginList.tsx +32 -4
  128. package/src/components/RegistrySettings/RegistrySettings.tsx +120 -0
  129. package/src/components/RegistrySettings/index.ts +5 -0
  130. package/src/components/index.ts +2 -0
  131. package/src/containers/BaseRegistryArticle/BaseRegistryArticle.tsx +163 -0
  132. package/src/containers/BaseRegistryArticle/index.ts +5 -0
  133. package/src/containers/LoadPluginDialog/LoadPluginDialog.tsx +87 -0
  134. package/src/containers/LoadPluginDialog/index.ts +5 -0
  135. package/src/containers/PluginArticle/PluginArticle.tsx +317 -9
  136. package/src/containers/PluginArticle/index.ts +1 -3
  137. package/src/containers/PublicRegistryArticle/PublicRegistryArticle.tsx +192 -0
  138. package/src/containers/PublicRegistryArticle/index.ts +5 -0
  139. package/src/containers/RegistryArticle/RegistryArticle.tsx +53 -0
  140. package/src/containers/RegistryArticle/index.ts +5 -0
  141. package/src/containers/RegistrySettingsContainer/RegistrySettingsContainer.tsx +59 -0
  142. package/src/containers/RegistrySettingsContainer/index.ts +5 -0
  143. package/src/containers/index.ts +5 -1
  144. package/src/hooks/index.ts +7 -0
  145. package/src/hooks/use-auto-tags.ts +51 -0
  146. package/src/hooks/use-registry-plugins.ts +29 -0
  147. package/src/hooks/use-update-available.ts +31 -0
  148. package/src/index.ts +1 -1
  149. package/src/meta.ts +10 -1
  150. package/src/operations/index.ts +7 -0
  151. package/src/operations/open-plugin-registry.ts +21 -0
  152. package/src/plugin.ts +11 -0
  153. package/src/translations.ts +52 -15
  154. package/src/types.ts +33 -1
  155. package/dist/lib/browser/PluginArticle-74DKRXJH.mjs +0 -29
  156. package/dist/lib/browser/PluginArticle-74DKRXJH.mjs.map +0 -7
  157. package/dist/lib/browser/PluginRegistry-DORQQ7GM.mjs +0 -78
  158. package/dist/lib/browser/PluginRegistry-DORQQ7GM.mjs.map +0 -7
  159. package/dist/lib/browser/app-graph-builder-AHS5BI4Y.mjs +0 -167
  160. package/dist/lib/browser/app-graph-builder-AHS5BI4Y.mjs.map +0 -7
  161. package/dist/lib/browser/chunk-KMUDYITM.mjs.map +0 -7
  162. package/dist/lib/browser/chunk-QQUG6FNW.mjs +0 -191
  163. package/dist/lib/browser/chunk-QQUG6FNW.mjs.map +0 -7
  164. package/dist/lib/browser/cli/index.mjs.map +0 -7
  165. package/dist/lib/browser/index.mjs +0 -65
  166. package/dist/lib/browser/index.mjs.map +0 -7
  167. package/dist/lib/browser/meta.json +0 -1
  168. package/dist/lib/browser/operation-resolver-PK4B2BZQ.mjs +0 -25
  169. package/dist/lib/browser/operation-resolver-PK4B2BZQ.mjs.map +0 -7
  170. package/dist/lib/browser/react-surface-HPLHM3SK.mjs +0 -85
  171. package/dist/lib/browser/react-surface-HPLHM3SK.mjs.map +0 -7
  172. package/dist/lib/node-esm/PluginArticle-JPVC7NXQ.mjs +0 -30
  173. package/dist/lib/node-esm/PluginArticle-JPVC7NXQ.mjs.map +0 -7
  174. package/dist/lib/node-esm/PluginRegistry-3ZB4DFF7.mjs +0 -79
  175. package/dist/lib/node-esm/PluginRegistry-3ZB4DFF7.mjs.map +0 -7
  176. package/dist/lib/node-esm/app-graph-builder-DBDL5WWF.mjs +0 -168
  177. package/dist/lib/node-esm/app-graph-builder-DBDL5WWF.mjs.map +0 -7
  178. package/dist/lib/node-esm/chunk-ENSNUFQK.mjs +0 -23
  179. package/dist/lib/node-esm/chunk-ENSNUFQK.mjs.map +0 -7
  180. package/dist/lib/node-esm/chunk-II5WBDYI.mjs +0 -192
  181. package/dist/lib/node-esm/chunk-II5WBDYI.mjs.map +0 -7
  182. package/dist/lib/node-esm/cli/index.mjs +0 -223
  183. package/dist/lib/node-esm/cli/index.mjs.map +0 -7
  184. package/dist/lib/node-esm/index.mjs +0 -66
  185. package/dist/lib/node-esm/index.mjs.map +0 -7
  186. package/dist/lib/node-esm/meta.json +0 -1
  187. package/dist/lib/node-esm/operation-resolver-CCHN4NBP.mjs +0 -26
  188. package/dist/lib/node-esm/operation-resolver-CCHN4NBP.mjs.map +0 -7
  189. package/dist/lib/node-esm/react-surface-GM64KKI3.mjs +0 -86
  190. package/dist/lib/node-esm/react-surface-GM64KKI3.mjs.map +0 -7
  191. package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts.map +0 -1
  192. package/dist/types/src/capabilities/app-graph-builder/index.d.ts +0 -3
  193. package/dist/types/src/capabilities/app-graph-builder/index.d.ts.map +0 -1
  194. package/dist/types/src/capabilities/operation-resolver/index.d.ts +0 -3
  195. package/dist/types/src/capabilities/operation-resolver/index.d.ts.map +0 -1
  196. package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts +0 -5
  197. package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts.map +0 -1
  198. package/dist/types/src/capabilities/react-surface/index.d.ts +0 -3
  199. package/dist/types/src/capabilities/react-surface/index.d.ts.map +0 -1
  200. package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +0 -1
  201. package/dist/types/src/cli/commands/disable.d.ts.map +0 -1
  202. package/dist/types/src/cli/commands/enable.d.ts.map +0 -1
  203. package/dist/types/src/cli/commands/index.d.ts.map +0 -1
  204. package/dist/types/src/cli/commands/list.d.ts +0 -7
  205. package/dist/types/src/cli/commands/list.d.ts.map +0 -1
  206. package/dist/types/src/cli/commands/util.d.ts.map +0 -1
  207. package/dist/types/src/cli/index.d.ts +0 -3
  208. package/dist/types/src/cli/index.d.ts.map +0 -1
  209. package/dist/types/src/cli/plugin.d.ts.map +0 -1
  210. package/dist/types/src/cli/storage.d.ts.map +0 -1
  211. package/dist/types/src/containers/PluginRegistry/PluginRegistry.d.ts +0 -8
  212. package/dist/types/src/containers/PluginRegistry/PluginRegistry.d.ts.map +0 -1
  213. package/dist/types/src/containers/PluginRegistry/index.d.ts +0 -3
  214. package/dist/types/src/containers/PluginRegistry/index.d.ts.map +0 -1
  215. package/src/capabilities/app-graph-builder/app-graph-builder.ts +0 -137
  216. package/src/capabilities/app-graph-builder/index.ts +0 -7
  217. package/src/capabilities/operation-resolver/index.ts +0 -7
  218. package/src/capabilities/operation-resolver/operation-resolver.ts +0 -24
  219. package/src/capabilities/react-surface/index.ts +0 -7
  220. package/src/capabilities/react-surface/react-surface.tsx +0 -88
  221. package/src/cli/index.ts +0 -6
  222. package/src/containers/PluginRegistry/PluginRegistry.tsx +0 -86
  223. package/src/containers/PluginRegistry/index.ts +0 -7
  224. /package/dist/types/src/capabilities/{app-graph-builder/app-graph-builder.d.ts → app-graph-builder.d.ts} +0 -0
  225. /package/dist/types/src/capabilities/{react-surface/react-surface.d.ts → react-surface.d.ts} +0 -0
  226. /package/dist/types/src/{cli/commands → commands}/index.d.ts +0 -0
  227. /package/dist/types/src/{cli/commands → commands}/util.d.ts +0 -0
  228. /package/dist/types/src/{cli/storage.d.ts → storage.d.ts} +0 -0
  229. /package/src/{cli/commands → commands}/disable.ts +0 -0
  230. /package/src/{cli/commands → commands}/enable.ts +0 -0
  231. /package/src/{cli/commands → commands}/index.ts +0 -0
  232. /package/src/{cli/commands → commands}/list.ts +0 -0
  233. /package/src/{cli/commands → commands}/util.ts +0 -0
  234. /package/src/{cli/storage.ts → storage.ts} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/plugin-registry",
3
- "version": "0.8.4-main.d05673bc65",
3
+ "version": "0.8.4-main.dfabb4ec29",
4
4
  "description": "Braneframe plugin gallery",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -12,24 +12,42 @@
12
12
  "author": "DXOS.org",
13
13
  "sideEffects": true,
14
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
+ "node": "./src/RegistryPlugin.node.ts",
24
+ "default": "./src/RegistryPlugin.tsx"
25
+ },
26
+ "types": "./dist/types/src/RegistryPlugin.d.ts",
27
+ "node": "./dist/lib/neutral/RegistryPlugin.node.mjs",
28
+ "default": "./dist/lib/neutral/RegistryPlugin.mjs"
29
+ },
30
+ "#translations": "./src/translations.ts",
31
+ "#types": "./src/types.ts"
32
+ },
15
33
  "exports": {
16
34
  ".": {
17
35
  "source": "./src/index.ts",
18
- "browser": "./dist/lib/browser/index.mjs",
19
- "node": "./dist/lib/node-esm/index.mjs",
20
- "types": "./dist/types/src/index.d.ts"
36
+ "types": "./dist/types/src/index.d.ts",
37
+ "default": "./dist/lib/neutral/index.mjs"
21
38
  },
22
- "./cli": {
23
- "source": "./src/cli/index.ts",
24
- "browser": "./dist/lib/browser/cli/index.mjs",
25
- "node": "./dist/lib/node-esm/cli/index.mjs",
26
- "types": "./dist/types/src/cli/index.d.ts"
39
+ "./plugin": {
40
+ "source": "./src/plugin.ts",
41
+ "types": "./dist/types/src/plugin.d.ts",
42
+ "default": "./dist/lib/neutral/plugin.mjs"
43
+ },
44
+ "./translations": {
45
+ "source": "./src/translations.ts",
46
+ "types": "./dist/types/src/translations.d.ts",
47
+ "default": "./dist/lib/neutral/translations.mjs"
27
48
  }
28
49
  },
29
50
  "types": "dist/types/src/index.d.ts",
30
- "typesVersions": {
31
- "*": {}
32
- },
33
51
  "files": [
34
52
  "dist",
35
53
  "src"
@@ -37,44 +55,47 @@
37
55
  "dependencies": {
38
56
  "@effect-atom/atom-react": "^0.5.0",
39
57
  "@effect/cli": "0.73.2",
40
- "yaml": "^2.7.0",
41
- "@dxos/app-toolkit": "0.8.4-main.d05673bc65",
42
- "@dxos/client-protocol": "0.8.4-main.d05673bc65",
43
- "@dxos/echo": "0.8.4-main.d05673bc65",
44
- "@dxos/app-framework": "0.8.4-main.d05673bc65",
45
- "@dxos/effect": "0.8.4-main.d05673bc65",
46
- "@dxos/cli-util": "0.8.4-main.d05673bc65",
47
- "@dxos/invariant": "0.8.4-main.d05673bc65",
48
- "@dxos/operation": "0.8.4-main.d05673bc65",
49
- "@dxos/plugin-graph": "0.8.4-main.d05673bc65",
50
- "@dxos/plugin-observability": "0.8.4-main.d05673bc65",
51
- "@dxos/react-ui-form": "0.8.4-main.d05673bc65",
52
- "@dxos/react-ui-mosaic": "0.8.4-main.d05673bc65",
53
- "@dxos/react-ui-stack": "0.8.4-main.d05673bc65",
54
- "@dxos/util": "0.8.4-main.d05673bc65"
58
+ "yaml": "^2.8.2",
59
+ "@dxos/app-framework": "0.8.4-main.dfabb4ec29",
60
+ "@dxos/client-protocol": "0.8.4-main.dfabb4ec29",
61
+ "@dxos/cli-util": "0.8.4-main.dfabb4ec29",
62
+ "@dxos/compute": "0.8.4-main.dfabb4ec29",
63
+ "@dxos/context": "0.8.4-main.dfabb4ec29",
64
+ "@dxos/app-toolkit": "0.8.4-main.dfabb4ec29",
65
+ "@dxos/effect": "0.8.4-main.dfabb4ec29",
66
+ "@dxos/invariant": "0.8.4-main.dfabb4ec29",
67
+ "@dxos/log": "0.8.4-main.dfabb4ec29",
68
+ "@dxos/echo": "0.8.4-main.dfabb4ec29",
69
+ "@dxos/plugin-graph": "0.8.4-main.dfabb4ec29",
70
+ "@dxos/plugin-observability": "0.8.4-main.dfabb4ec29",
71
+ "@dxos/react-ui-mosaic": "0.8.4-main.dfabb4ec29",
72
+ "@dxos/react-ui-form": "0.8.4-main.dfabb4ec29",
73
+ "@dxos/util": "0.8.4-main.dfabb4ec29",
74
+ "@dxos/react-ui-stack": "0.8.4-main.dfabb4ec29"
55
75
  },
56
76
  "devDependencies": {
57
77
  "@effect-atom/atom-react": "^0.5.0",
58
78
  "@effect/platform": "0.94.4",
59
79
  "@types/react": "~19.2.7",
60
80
  "@types/react-dom": "~19.2.3",
61
- "effect": "3.19.16",
81
+ "effect": "3.20.0",
62
82
  "react": "~19.2.3",
63
83
  "react-dom": "~19.2.3",
64
- "vite": "^7.1.11",
65
- "@dxos/random": "0.8.4-main.d05673bc65",
66
- "@dxos/storybook-utils": "0.8.4-main.d05673bc65",
67
- "@dxos/react-ui": "0.8.4-main.d05673bc65",
68
- "@dxos/ui-theme": "0.8.4-main.d05673bc65"
84
+ "vite": "^8.0.10",
85
+ "@dxos/random": "0.8.4-main.dfabb4ec29",
86
+ "@dxos/react-ui": "0.8.4-main.dfabb4ec29",
87
+ "@dxos/storybook-utils": "0.8.4-main.dfabb4ec29",
88
+ "@dxos/plugin-testing": "0.8.4-main.dfabb4ec29",
89
+ "@dxos/ui-theme": "0.8.4-main.dfabb4ec29"
69
90
  },
70
91
  "peerDependencies": {
71
92
  "@effect-atom/atom-react": "^0.5.0",
72
93
  "@effect/platform": "0.94.4",
73
- "effect": "3.19.16",
94
+ "effect": "3.20.0",
74
95
  "react": "~19.2.3",
75
96
  "react-dom": "~19.2.3",
76
- "@dxos/ui-theme": "0.8.4-main.d05673bc65",
77
- "@dxos/react-ui": "0.8.4-main.d05673bc65"
97
+ "@dxos/react-ui": "0.8.4-main.dfabb4ec29",
98
+ "@dxos/ui-theme": "0.8.4-main.dfabb4ec29"
78
99
  },
79
100
  "publishConfig": {
80
101
  "access": "public"
@@ -5,7 +5,7 @@
5
5
  import { Plugin } from '@dxos/app-framework';
6
6
  import { AppPlugin } from '@dxos/app-toolkit';
7
7
 
8
- import { meta } from '../meta';
8
+ import { meta } from '#meta';
9
9
 
10
10
  import { plugin } from './commands';
11
11
 
@@ -15,3 +15,5 @@ export const RegistryPlugin = Plugin.define(meta).pipe(
15
15
  }),
16
16
  Plugin.make,
17
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,17 +2,25 @@
2
2
  // Copyright 2023 DXOS.org
3
3
  //
4
4
 
5
- import { Plugin } from '@dxos/app-framework';
5
+ import { ActivationEvents, Plugin } from '@dxos/app-framework';
6
6
  import { AppPlugin } from '@dxos/app-toolkit';
7
7
 
8
- import { AppGraphBuilder, OperationResolver, ReactSurface } from './capabilities';
9
- import { meta } from './meta';
10
- import { translations } from './translations';
8
+ import { AppGraphBuilder, DevPluginLoader, OperationHandler, ReactSurface, RegistrySettings } from '#capabilities';
9
+ import { meta } from '#meta';
10
+ import { translations } from '#translations';
11
11
 
12
12
  export const RegistryPlugin = Plugin.define(meta).pipe(
13
13
  AppPlugin.addAppGraphModule({ activate: AppGraphBuilder }),
14
- AppPlugin.addOperationResolverModule({ activate: OperationResolver }),
14
+ AppPlugin.addOperationHandlerModule({ activate: OperationHandler }),
15
+ AppPlugin.addSettingsModule({ activate: RegistrySettings }),
15
16
  AppPlugin.addSurfaceModule({ activate: ReactSurface }),
16
17
  AppPlugin.addTranslationsModule({ translations }),
18
+ Plugin.addModule({
19
+ id: 'dev-plugin-loader',
20
+ activatesOn: ActivationEvents.Startup,
21
+ activate: DevPluginLoader,
22
+ }),
17
23
  Plugin.make,
18
24
  );
25
+
26
+ export default RegistryPlugin;
@@ -0,0 +1,200 @@
1
+ //
2
+ // Copyright 2025 DXOS.org
3
+ //
4
+
5
+ import * as Effect from 'effect/Effect';
6
+
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
+
12
+ import { REGISTRY_ID, REGISTRY_KEY, registryCategoryId, meta } from '#meta';
13
+
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',
56
+ },
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',
96
+ },
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',
107
+ },
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',
118
+ },
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',
129
+ },
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',
152
+ },
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',
172
+ },
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',
184
+ data: plugin,
185
+ properties: {
186
+ label: plugin.meta.name ?? plugin.meta.id,
187
+ icon: plugin.meta.icon ?? 'ph--circle--regular',
188
+ disposition: 'hidden',
189
+ },
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,6 +2,14 @@
2
2
  // Copyright 2025 DXOS.org
3
3
  //
4
4
 
5
- export * from './app-graph-builder';
6
- export * from './operation-resolver';
7
- export * from './react-surface';
5
+ import { Capability } from '@dxos/app-framework';
6
+ import { OperationHandlerSet } from '@dxos/compute';
7
+
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'));
@@ -0,0 +1,16 @@
1
+ //
2
+ // Copyright 2025 DXOS.org
3
+ //
4
+
5
+ import * as Effect from 'effect/Effect';
6
+
7
+ import { Capabilities, Capability } from '@dxos/app-framework';
8
+ import type { OperationHandlerSet } from '@dxos/compute';
9
+
10
+ import { RegistryOperationHandlerSet } from '#operations';
11
+
12
+ export default Capability.makeModule<OperationHandlerSet.OperationHandlerSet>(
13
+ Effect.fnUntraced(function* () {
14
+ return Capability.contributes(Capabilities.OperationHandler, RegistryOperationHandlerSet);
15
+ }),
16
+ );
@@ -0,0 +1,136 @@
1
+ //
2
+ // Copyright 2025 DXOS.org
3
+ //
4
+
5
+ import * as Effect from 'effect/Effect';
6
+ import React, { useMemo } from 'react';
7
+
8
+ import { Capabilities, Capability, Plugin } from '@dxos/app-framework';
9
+ import { Surface, usePluginManager } from '@dxos/app-framework/ui';
10
+ import { AppCapabilities } from '@dxos/app-toolkit';
11
+ import { AppSurface } from '@dxos/app-toolkit/ui';
12
+
13
+ import {
14
+ LOAD_PLUGIN_DIALOG,
15
+ LoadPluginDialog,
16
+ PluginArticle,
17
+ PublicRegistryArticle,
18
+ RegistryArticle,
19
+ RegistrySettingsContainer,
20
+ } from '#containers';
21
+ import { meta, registryCategoryId } from '#meta';
22
+
23
+ import { useAutoTags, useRegistryPlugins, useRemotePluginIds } from '../hooks';
24
+
25
+ export default Capability.makeModule(() =>
26
+ Effect.succeed(
27
+ Capability.contributes(Capabilities.ReactSurface, [
28
+ Surface.create({
29
+ id: 'official',
30
+ filter: AppSurface.literal(AppSurface.Article, registryCategoryId('official')),
31
+ component: () => {
32
+ const manager = usePluginManager();
33
+ const remoteIds = useRemotePluginIds();
34
+ const core = useMemo(() => manager.getCore(), [manager]);
35
+ const predicate = useMemo<PluginPredicate>(
36
+ () =>
37
+ ({ meta }) =>
38
+ !core.includes(meta.id) && !remoteIds.has(meta.id),
39
+ [core, remoteIds],
40
+ );
41
+
42
+ return <FilteredRegistryArticle id={registryCategoryId('official')} filter={predicate} />;
43
+ },
44
+ }),
45
+ Surface.create({
46
+ id: 'installed',
47
+ filter: AppSurface.literal(AppSurface.Article, registryCategoryId('installed')),
48
+ component: () => {
49
+ const manager = usePluginManager();
50
+ const core = useMemo(() => manager.getCore(), [manager]);
51
+ const enabled = useMemo(() => manager.getEnabled(), [manager]);
52
+ const predicate = useMemo<PluginPredicate>(
53
+ () =>
54
+ ({ meta }) =>
55
+ !core.includes(meta.id) && enabled.includes(meta.id),
56
+ [core, enabled],
57
+ );
58
+
59
+ return <FilteredRegistryArticle id={registryCategoryId('installed')} filter={predicate} />;
60
+ },
61
+ }),
62
+ Surface.create({
63
+ id: 'recommended',
64
+ filter: AppSurface.literal(AppSurface.Article, registryCategoryId('recommended')),
65
+ component: () => {
66
+ const manager = usePluginManager();
67
+ const remoteIds = useRemotePluginIds();
68
+ const core = useMemo(() => manager.getCore(), [manager]);
69
+ const predicate = useMemo<PluginPredicate>(
70
+ () =>
71
+ ({ meta }) =>
72
+ !core.includes(meta.id) && !remoteIds.has(meta.id) && !meta.tags?.includes('labs'),
73
+ [core, remoteIds],
74
+ );
75
+
76
+ return <FilteredRegistryArticle id={registryCategoryId('recommended')} filter={predicate} />;
77
+ },
78
+ }),
79
+ Surface.create({
80
+ id: 'labs',
81
+ filter: AppSurface.literal(AppSurface.Article, registryCategoryId('labs')),
82
+ component: () => {
83
+ const predicate = useMemo<PluginPredicate>(
84
+ () =>
85
+ ({ meta }) =>
86
+ meta.tags?.includes('labs') ?? false,
87
+ [],
88
+ );
89
+
90
+ return <FilteredRegistryArticle id={registryCategoryId('labs')} filter={predicate} />;
91
+ },
92
+ }),
93
+ Surface.create({
94
+ id: 'registry',
95
+ filter: AppSurface.literal(AppSurface.Article, registryCategoryId('registry')),
96
+ component: () => <PublicRegistryArticle id={registryCategoryId('registry')} />,
97
+ }),
98
+ Surface.create({
99
+ id: 'plugin-details',
100
+ filter: AppSurface.subject(AppSurface.Article, Plugin.isPlugin),
101
+ component: ({ data: { subject } }) => {
102
+ return <PluginArticle subject={subject} />;
103
+ },
104
+ }),
105
+ Surface.create({
106
+ id: LOAD_PLUGIN_DIALOG,
107
+ filter: AppSurface.component(AppSurface.Dialog, LOAD_PLUGIN_DIALOG),
108
+ component: () => <LoadPluginDialog />,
109
+ }),
110
+ Surface.create({
111
+ id: 'plugin-settings',
112
+ role: 'article',
113
+ filter: (data): data is { subject: AppCapabilities.Settings } =>
114
+ AppCapabilities.isSettings(data.subject) && data.subject.prefix === meta.id,
115
+ component: ({ data: { subject } }) => <RegistrySettingsContainer subject={subject} />,
116
+ }),
117
+ ]),
118
+ ),
119
+ );
120
+
121
+ type PluginPredicate = (plugin: Plugin.Plugin) => boolean;
122
+
123
+ /**
124
+ * Renders the {@link RegistryArticle} surface filtered by an arbitrary
125
+ * predicate computed against the live plugin list. Centralises the
126
+ * `usePluginManager` + `useRegistryPlugins` + `useAutoTags` wiring shared
127
+ * by every category surface.
128
+ */
129
+ const FilteredRegistryArticle = ({ id, filter }: { id: string; filter: PluginPredicate }) => {
130
+ const manager = usePluginManager();
131
+ const { entries } = useRegistryPlugins();
132
+ const extraTagsById = useAutoTags(entries);
133
+ const filtered = useMemo(() => manager.getPlugins().filter(filter), [manager, filter]);
134
+
135
+ return <RegistryArticle id={id} plugins={filtered} extraTagsById={extraTagsById} />;
136
+ };
@@ -0,0 +1,34 @@
1
+ //
2
+ // Copyright 2026 DXOS.org
3
+ //
4
+
5
+ import * as Effect from 'effect/Effect';
6
+
7
+ import { Capability, PLUGIN_DEV_SERVER_PORT } from '@dxos/app-framework';
8
+ import { AppCapabilities } from '@dxos/app-toolkit';
9
+ import { createKvsStore } from '@dxos/effect';
10
+
11
+ import { meta } from '#meta';
12
+
13
+ import { RegistryCapabilities, RegistrySettingsSchema } from '../types';
14
+
15
+ const DEFAULT_DEV_PLUGIN_URL = `http://localhost:${PLUGIN_DEV_SERVER_PORT}/manifest.json`;
16
+
17
+ export default Capability.makeModule(() =>
18
+ Effect.sync(() => {
19
+ const settingsAtom = createKvsStore({
20
+ key: meta.id,
21
+ schema: RegistrySettingsSchema,
22
+ defaultValue: () => ({ devPluginUrl: DEFAULT_DEV_PLUGIN_URL }),
23
+ });
24
+
25
+ return [
26
+ Capability.contributes(RegistryCapabilities.Settings, settingsAtom),
27
+ Capability.contributes(AppCapabilities.Settings, {
28
+ prefix: meta.id,
29
+ schema: RegistrySettingsSchema,
30
+ atom: settingsAtom,
31
+ }),
32
+ ];
33
+ }),
34
+ );