@dxos/plugin-registry 0.8.4-main.1068cf700f → 0.8.4-main.1c7ec43d41

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 (227) hide show
  1. package/dist/lib/browser/cli/index.mjs +12 -204
  2. package/dist/lib/browser/cli/index.mjs.map +4 -4
  3. package/dist/lib/browser/index.mjs +26 -54
  4. package/dist/lib/browser/index.mjs.map +4 -4
  5. package/dist/lib/browser/meta.json +1 -1
  6. package/dist/lib/browser/translations.mjs +61 -0
  7. package/dist/lib/browser/translations.mjs.map +7 -0
  8. package/dist/lib/node-esm/cli/index.mjs +12 -203
  9. package/dist/lib/node-esm/cli/index.mjs.map +4 -4
  10. package/dist/lib/node-esm/index.mjs +26 -53
  11. package/dist/lib/node-esm/index.mjs.map +4 -4
  12. package/dist/lib/node-esm/meta.json +1 -1
  13. package/dist/lib/node-esm/translations.mjs +63 -0
  14. package/dist/lib/node-esm/translations.mjs.map +7 -0
  15. package/dist/types/src/RegistryPlugin.d.ts +1 -0
  16. package/dist/types/src/RegistryPlugin.d.ts.map +1 -1
  17. package/dist/types/src/{cli/plugin.d.ts → RegistryPlugin.node.d.ts} +2 -1
  18. package/dist/types/src/RegistryPlugin.node.d.ts.map +1 -0
  19. package/dist/types/src/RegistryPlugin.test.d.ts +2 -0
  20. package/dist/types/src/RegistryPlugin.test.d.ts.map +1 -0
  21. package/dist/types/src/capabilities/app-graph-builder.d.ts +6 -0
  22. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -0
  23. package/dist/types/src/capabilities/dev-plugin-loader.d.ts +11 -0
  24. package/dist/types/src/capabilities/dev-plugin-loader.d.ts.map +1 -0
  25. package/dist/types/src/capabilities/index.d.ts +15 -3
  26. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  27. package/dist/types/src/capabilities/operation-handler.d.ts +6 -0
  28. package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -0
  29. package/dist/types/src/capabilities/react-surface.d.ts +5 -0
  30. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -0
  31. package/dist/types/src/capabilities/settings.d.ts +14 -0
  32. package/dist/types/src/capabilities/settings.d.ts.map +1 -0
  33. package/dist/types/src/cli/index.d.ts +1 -2
  34. package/dist/types/src/cli/index.d.ts.map +1 -1
  35. package/dist/types/src/{cli/commands → commands}/disable.d.ts +2 -2
  36. package/dist/types/src/commands/disable.d.ts.map +1 -0
  37. package/dist/types/src/{cli/commands → commands}/enable.d.ts +2 -2
  38. package/dist/types/src/commands/enable.d.ts.map +1 -0
  39. package/dist/types/src/commands/index.d.ts.map +1 -0
  40. package/dist/types/src/commands/list.d.ts +7 -0
  41. package/dist/types/src/commands/list.d.ts.map +1 -0
  42. package/dist/types/src/commands/util.d.ts.map +1 -0
  43. package/dist/types/src/components/PluginDetail/PluginDetail.d.ts +46 -0
  44. package/dist/types/src/components/PluginDetail/PluginDetail.d.ts.map +1 -0
  45. package/dist/types/src/components/PluginDetail/PluginDetail.stories.d.ts +68 -0
  46. package/dist/types/src/components/PluginDetail/PluginDetail.stories.d.ts.map +1 -0
  47. package/dist/types/src/components/PluginDetail/index.d.ts +2 -0
  48. package/dist/types/src/components/PluginDetail/index.d.ts.map +1 -0
  49. package/dist/types/src/components/PluginFailureBadge/PluginFailureBadge.d.ts +20 -0
  50. package/dist/types/src/components/PluginFailureBadge/PluginFailureBadge.d.ts.map +1 -0
  51. package/dist/types/src/components/PluginFailureBadge/index.d.ts +2 -0
  52. package/dist/types/src/components/PluginFailureBadge/index.d.ts.map +1 -0
  53. package/dist/types/src/components/PluginList/PluginItem.d.ts +40 -0
  54. package/dist/types/src/components/PluginList/PluginItem.d.ts.map +1 -0
  55. package/dist/types/src/components/PluginList/PluginList.d.ts +23 -0
  56. package/dist/types/src/components/PluginList/PluginList.d.ts.map +1 -0
  57. package/dist/types/src/components/PluginList/PluginList.stories.d.ts +67 -0
  58. package/dist/types/src/components/PluginList/PluginList.stories.d.ts.map +1 -0
  59. package/dist/types/src/components/PluginList/index.d.ts +2 -0
  60. package/dist/types/src/components/PluginList/index.d.ts.map +1 -0
  61. package/dist/types/src/components/RegistrySettings/RegistrySettings.d.ts +18 -0
  62. package/dist/types/src/components/RegistrySettings/RegistrySettings.d.ts.map +1 -0
  63. package/dist/types/src/components/RegistrySettings/index.d.ts +2 -0
  64. package/dist/types/src/components/RegistrySettings/index.d.ts.map +1 -0
  65. package/dist/types/src/components/index.d.ts +2 -1
  66. package/dist/types/src/components/index.d.ts.map +1 -1
  67. package/dist/types/src/containers/BaseRegistryArticle/BaseRegistryArticle.d.ts +20 -0
  68. package/dist/types/src/containers/BaseRegistryArticle/BaseRegistryArticle.d.ts.map +1 -0
  69. package/dist/types/src/containers/BaseRegistryArticle/index.d.ts +2 -0
  70. package/dist/types/src/containers/BaseRegistryArticle/index.d.ts.map +1 -0
  71. package/dist/types/src/containers/LoadPluginDialog/LoadPluginDialog.d.ts +4 -0
  72. package/dist/types/src/containers/LoadPluginDialog/LoadPluginDialog.d.ts.map +1 -0
  73. package/dist/types/src/containers/LoadPluginDialog/index.d.ts +2 -0
  74. package/dist/types/src/containers/LoadPluginDialog/index.d.ts.map +1 -0
  75. package/dist/types/src/containers/PluginArticle/PluginArticle.d.ts +7 -0
  76. package/dist/types/src/containers/PluginArticle/PluginArticle.d.ts.map +1 -0
  77. package/dist/types/src/containers/PluginArticle/index.d.ts +2 -0
  78. package/dist/types/src/containers/PluginArticle/index.d.ts.map +1 -0
  79. package/dist/types/src/containers/PublicRegistryArticle/PublicRegistryArticle.d.ts +8 -0
  80. package/dist/types/src/containers/PublicRegistryArticle/PublicRegistryArticle.d.ts.map +1 -0
  81. package/dist/types/src/containers/PublicRegistryArticle/index.d.ts +2 -0
  82. package/dist/types/src/containers/PublicRegistryArticle/index.d.ts.map +1 -0
  83. package/dist/types/src/containers/RegistryArticle/RegistryArticle.d.ts +14 -0
  84. package/dist/types/src/containers/RegistryArticle/RegistryArticle.d.ts.map +1 -0
  85. package/dist/types/src/containers/RegistryArticle/index.d.ts +2 -0
  86. package/dist/types/src/containers/RegistryArticle/index.d.ts.map +1 -0
  87. package/dist/types/src/containers/RegistrySettingsContainer/RegistrySettingsContainer.d.ts +13 -0
  88. package/dist/types/src/containers/RegistrySettingsContainer/RegistrySettingsContainer.d.ts.map +1 -0
  89. package/dist/types/src/containers/RegistrySettingsContainer/index.d.ts +2 -0
  90. package/dist/types/src/containers/RegistrySettingsContainer/index.d.ts.map +1 -0
  91. package/dist/types/src/containers/index.d.ts +8 -0
  92. package/dist/types/src/containers/index.d.ts.map +1 -0
  93. package/dist/types/src/hooks/index.d.ts +4 -0
  94. package/dist/types/src/hooks/index.d.ts.map +1 -0
  95. package/dist/types/src/hooks/use-auto-tags.d.ts +20 -0
  96. package/dist/types/src/hooks/use-auto-tags.d.ts.map +1 -0
  97. package/dist/types/src/hooks/use-registry-plugins.d.ts +15 -0
  98. package/dist/types/src/hooks/use-registry-plugins.d.ts.map +1 -0
  99. package/dist/types/src/hooks/use-update-available.d.ts +18 -0
  100. package/dist/types/src/hooks/use-update-available.d.ts.map +1 -0
  101. package/dist/types/src/index.d.ts +2 -1
  102. package/dist/types/src/index.d.ts.map +1 -1
  103. package/dist/types/src/meta.d.ts +5 -1
  104. package/dist/types/src/meta.d.ts.map +1 -1
  105. package/dist/types/src/operations/index.d.ts +3 -0
  106. package/dist/types/src/operations/index.d.ts.map +1 -0
  107. package/dist/types/src/operations/open-plugin-registry.d.ts +5 -0
  108. package/dist/types/src/operations/open-plugin-registry.d.ts.map +1 -0
  109. package/dist/types/src/{cli/storage.d.ts → storage.d.ts} +4 -4
  110. package/dist/types/src/storage.d.ts.map +1 -0
  111. package/dist/types/src/translations.d.ts +48 -16
  112. package/dist/types/src/translations.d.ts.map +1 -1
  113. package/dist/types/src/types.d.ts +30 -1
  114. package/dist/types/src/types.d.ts.map +1 -1
  115. package/dist/types/tsconfig.tsbuildinfo +1 -1
  116. package/package.json +50 -29
  117. package/src/{cli/plugin.ts → RegistryPlugin.node.ts} +3 -1
  118. package/src/RegistryPlugin.test.ts +24 -0
  119. package/src/RegistryPlugin.tsx +13 -5
  120. package/src/capabilities/app-graph-builder.ts +200 -0
  121. package/src/capabilities/dev-plugin-loader.ts +39 -0
  122. package/src/capabilities/index.ts +11 -3
  123. package/src/capabilities/operation-handler.ts +16 -0
  124. package/src/capabilities/react-surface.tsx +136 -0
  125. package/src/capabilities/settings.ts +34 -0
  126. package/src/cli/index.ts +1 -2
  127. package/src/components/{PluginDetail.stories.tsx → PluginDetail/PluginDetail.stories.tsx} +5 -5
  128. package/src/components/PluginDetail/PluginDetail.tsx +196 -0
  129. package/src/components/PluginDetail/index.ts +5 -0
  130. package/src/components/PluginFailureBadge/PluginFailureBadge.tsx +68 -0
  131. package/src/components/PluginFailureBadge/index.ts +5 -0
  132. package/src/components/PluginList/PluginItem.tsx +226 -0
  133. package/src/components/{PluginList.stories.tsx → PluginList/PluginList.stories.tsx} +18 -15
  134. package/src/components/PluginList/PluginList.tsx +52 -0
  135. package/src/components/PluginList/index.ts +5 -0
  136. package/src/components/RegistrySettings/RegistrySettings.tsx +120 -0
  137. package/src/components/RegistrySettings/index.ts +5 -0
  138. package/src/components/index.ts +2 -1
  139. package/src/containers/BaseRegistryArticle/BaseRegistryArticle.tsx +163 -0
  140. package/src/containers/BaseRegistryArticle/index.ts +5 -0
  141. package/src/containers/LoadPluginDialog/LoadPluginDialog.tsx +87 -0
  142. package/src/containers/LoadPluginDialog/index.ts +5 -0
  143. package/src/containers/PluginArticle/PluginArticle.tsx +336 -0
  144. package/src/containers/PluginArticle/index.ts +5 -0
  145. package/src/containers/PublicRegistryArticle/PublicRegistryArticle.tsx +192 -0
  146. package/src/containers/PublicRegistryArticle/index.ts +5 -0
  147. package/src/containers/RegistryArticle/RegistryArticle.tsx +53 -0
  148. package/src/containers/RegistryArticle/index.ts +5 -0
  149. package/src/containers/RegistrySettingsContainer/RegistrySettingsContainer.tsx +59 -0
  150. package/src/containers/RegistrySettingsContainer/index.ts +5 -0
  151. package/src/containers/index.ts +12 -0
  152. package/src/hooks/index.ts +7 -0
  153. package/src/hooks/use-auto-tags.ts +51 -0
  154. package/src/hooks/use-registry-plugins.ts +29 -0
  155. package/src/hooks/use-update-available.ts +31 -0
  156. package/src/index.ts +5 -1
  157. package/src/meta.ts +14 -5
  158. package/src/operations/index.ts +7 -0
  159. package/src/operations/open-plugin-registry.ts +21 -0
  160. package/src/{cli/storage.ts → storage.ts} +14 -21
  161. package/src/translations.ts +52 -15
  162. package/src/types.ts +33 -1
  163. package/dist/lib/browser/app-graph-builder-YOD5EGAY.mjs +0 -167
  164. package/dist/lib/browser/app-graph-builder-YOD5EGAY.mjs.map +0 -7
  165. package/dist/lib/browser/chunk-VOAOTNGS.mjs +0 -19
  166. package/dist/lib/browser/chunk-VOAOTNGS.mjs.map +0 -7
  167. package/dist/lib/browser/operation-resolver-7P3NNVSR.mjs +0 -25
  168. package/dist/lib/browser/operation-resolver-7P3NNVSR.mjs.map +0 -7
  169. package/dist/lib/browser/react-surface-IEGOKKMX.mjs +0 -337
  170. package/dist/lib/browser/react-surface-IEGOKKMX.mjs.map +0 -7
  171. package/dist/lib/node-esm/app-graph-builder-WTIS5KI5.mjs +0 -168
  172. package/dist/lib/node-esm/app-graph-builder-WTIS5KI5.mjs.map +0 -7
  173. package/dist/lib/node-esm/chunk-SALMIZ2W.mjs +0 -21
  174. package/dist/lib/node-esm/chunk-SALMIZ2W.mjs.map +0 -7
  175. package/dist/lib/node-esm/operation-resolver-B24QW6IF.mjs +0 -26
  176. package/dist/lib/node-esm/operation-resolver-B24QW6IF.mjs.map +0 -7
  177. package/dist/lib/node-esm/react-surface-SEJBWRMR.mjs +0 -338
  178. package/dist/lib/node-esm/react-surface-SEJBWRMR.mjs.map +0 -7
  179. package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts +0 -6
  180. package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts.map +0 -1
  181. package/dist/types/src/capabilities/app-graph-builder/index.d.ts +0 -3
  182. package/dist/types/src/capabilities/app-graph-builder/index.d.ts.map +0 -1
  183. package/dist/types/src/capabilities/operation-resolver/index.d.ts +0 -3
  184. package/dist/types/src/capabilities/operation-resolver/index.d.ts.map +0 -1
  185. package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts +0 -5
  186. package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts.map +0 -1
  187. package/dist/types/src/capabilities/react-surface/index.d.ts +0 -3
  188. package/dist/types/src/capabilities/react-surface/index.d.ts.map +0 -1
  189. package/dist/types/src/capabilities/react-surface/react-surface.d.ts +0 -5
  190. package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +0 -1
  191. package/dist/types/src/cli/commands/disable.d.ts.map +0 -1
  192. package/dist/types/src/cli/commands/enable.d.ts.map +0 -1
  193. package/dist/types/src/cli/commands/index.d.ts.map +0 -1
  194. package/dist/types/src/cli/commands/list.d.ts +0 -7
  195. package/dist/types/src/cli/commands/list.d.ts.map +0 -1
  196. package/dist/types/src/cli/commands/util.d.ts.map +0 -1
  197. package/dist/types/src/cli/plugin.d.ts.map +0 -1
  198. package/dist/types/src/cli/storage.d.ts.map +0 -1
  199. package/dist/types/src/components/PluginDetail.d.ts +0 -9
  200. package/dist/types/src/components/PluginDetail.d.ts.map +0 -1
  201. package/dist/types/src/components/PluginDetail.stories.d.ts +0 -33
  202. package/dist/types/src/components/PluginDetail.stories.d.ts.map +0 -1
  203. package/dist/types/src/components/PluginItem.d.ts +0 -13
  204. package/dist/types/src/components/PluginItem.d.ts.map +0 -1
  205. package/dist/types/src/components/PluginList.d.ts +0 -8
  206. package/dist/types/src/components/PluginList.d.ts.map +0 -1
  207. package/dist/types/src/components/PluginList.stories.d.ts +0 -34
  208. package/dist/types/src/components/PluginList.stories.d.ts.map +0 -1
  209. package/dist/types/src/components/RegistryContainer.d.ts +0 -8
  210. package/dist/types/src/components/RegistryContainer.d.ts.map +0 -1
  211. package/src/capabilities/app-graph-builder/app-graph-builder.ts +0 -137
  212. package/src/capabilities/app-graph-builder/index.ts +0 -7
  213. package/src/capabilities/operation-resolver/index.ts +0 -7
  214. package/src/capabilities/operation-resolver/operation-resolver.ts +0 -24
  215. package/src/capabilities/react-surface/index.ts +0 -7
  216. package/src/capabilities/react-surface/react-surface.tsx +0 -99
  217. package/src/components/PluginDetail.tsx +0 -81
  218. package/src/components/PluginItem.tsx +0 -120
  219. package/src/components/PluginList.tsx +0 -24
  220. package/src/components/RegistryContainer.tsx +0 -86
  221. /package/dist/types/src/{cli/commands → commands}/index.d.ts +0 -0
  222. /package/dist/types/src/{cli/commands → commands}/util.d.ts +0 -0
  223. /package/src/{cli/commands → commands}/disable.ts +0 -0
  224. /package/src/{cli/commands → commands}/enable.ts +0 -0
  225. /package/src/{cli/commands → commands}/index.ts +0 -0
  226. /package/src/{cli/commands → commands}/list.ts +0 -0
  227. /package/src/{cli/commands → commands}/util.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.1068cf700f",
3
+ "version": "0.8.4-main.1c7ec43d41",
4
4
  "description": "Braneframe plugin gallery",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -12,24 +12,41 @@
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
+ "#translations": "./src/translations.ts",
22
+ "#plugin": {
23
+ "browser": "./src/RegistryPlugin.tsx",
24
+ "node": "./src/RegistryPlugin.node.ts",
25
+ "default": "./src/RegistryPlugin.tsx"
26
+ },
27
+ "#types": "./src/types.ts"
28
+ },
15
29
  "exports": {
16
30
  ".": {
31
+ "source": "./src/index.ts",
17
32
  "browser": "./dist/lib/browser/index.mjs",
18
33
  "node": "./dist/lib/node-esm/index.mjs",
19
- "source": "./src/index.ts",
20
34
  "types": "./dist/types/src/index.d.ts"
21
35
  },
22
36
  "./cli": {
37
+ "source": "./src/cli/index.ts",
23
38
  "browser": "./dist/lib/browser/cli/index.mjs",
24
39
  "node": "./dist/lib/node-esm/cli/index.mjs",
25
- "source": "./src/cli/index.ts",
26
40
  "types": "./dist/types/src/cli/index.d.ts"
41
+ },
42
+ "./translations": {
43
+ "source": "./src/translations.ts",
44
+ "types": "./dist/types/src/translations.d.ts",
45
+ "browser": "./dist/lib/browser/translations.mjs",
46
+ "node": "./dist/lib/node-esm/translations.mjs"
27
47
  }
28
48
  },
29
49
  "types": "dist/types/src/index.d.ts",
30
- "typesVersions": {
31
- "*": {}
32
- },
33
50
  "files": [
34
51
  "dist",
35
52
  "src"
@@ -37,43 +54,47 @@
37
54
  "dependencies": {
38
55
  "@effect-atom/atom-react": "^0.5.0",
39
56
  "@effect/cli": "0.73.2",
40
- "@dxos/app-toolkit": "0.8.4-main.1068cf700f",
41
- "@dxos/app-framework": "0.8.4-main.1068cf700f",
42
- "@dxos/client-protocol": "0.8.4-main.1068cf700f",
43
- "@dxos/cli-util": "0.8.4-main.1068cf700f",
44
- "@dxos/invariant": "0.8.4-main.1068cf700f",
45
- "@dxos/echo": "0.8.4-main.1068cf700f",
46
- "@dxos/plugin-graph": "0.8.4-main.1068cf700f",
47
- "@dxos/effect": "0.8.4-main.1068cf700f",
48
- "@dxos/operation": "0.8.4-main.1068cf700f",
49
- "@dxos/plugin-observability": "0.8.4-main.1068cf700f",
50
- "@dxos/react-ui-form": "0.8.4-main.1068cf700f",
51
- "@dxos/react-ui-mosaic": "0.8.4-main.1068cf700f",
52
- "@dxos/react-ui-stack": "0.8.4-main.1068cf700f",
53
- "@dxos/util": "0.8.4-main.1068cf700f"
57
+ "yaml": "^2.8.2",
58
+ "@dxos/app-toolkit": "0.8.4-main.1c7ec43d41",
59
+ "@dxos/app-framework": "0.8.4-main.1c7ec43d41",
60
+ "@dxos/client-protocol": "0.8.4-main.1c7ec43d41",
61
+ "@dxos/compute": "0.8.4-main.1c7ec43d41",
62
+ "@dxos/cli-util": "0.8.4-main.1c7ec43d41",
63
+ "@dxos/context": "0.8.4-main.1c7ec43d41",
64
+ "@dxos/echo": "0.8.4-main.1c7ec43d41",
65
+ "@dxos/invariant": "0.8.4-main.1c7ec43d41",
66
+ "@dxos/plugin-graph": "0.8.4-main.1c7ec43d41",
67
+ "@dxos/effect": "0.8.4-main.1c7ec43d41",
68
+ "@dxos/log": "0.8.4-main.1c7ec43d41",
69
+ "@dxos/plugin-observability": "0.8.4-main.1c7ec43d41",
70
+ "@dxos/react-ui-form": "0.8.4-main.1c7ec43d41",
71
+ "@dxos/react-ui-stack": "0.8.4-main.1c7ec43d41",
72
+ "@dxos/react-ui-mosaic": "0.8.4-main.1c7ec43d41",
73
+ "@dxos/util": "0.8.4-main.1c7ec43d41"
54
74
  },
55
75
  "devDependencies": {
56
76
  "@effect-atom/atom-react": "^0.5.0",
57
77
  "@effect/platform": "0.94.4",
58
78
  "@types/react": "~19.2.7",
59
79
  "@types/react-dom": "~19.2.3",
60
- "effect": "3.19.16",
80
+ "effect": "3.20.0",
61
81
  "react": "~19.2.3",
62
82
  "react-dom": "~19.2.3",
63
- "vite": "7.1.9",
64
- "@dxos/random": "0.8.4-main.1068cf700f",
65
- "@dxos/storybook-utils": "0.8.4-main.1068cf700f",
66
- "@dxos/ui-theme": "0.8.4-main.1068cf700f",
67
- "@dxos/react-ui": "0.8.4-main.1068cf700f"
83
+ "vite": "^8.0.10",
84
+ "@dxos/plugin-testing": "0.8.4-main.1c7ec43d41",
85
+ "@dxos/react-ui": "0.8.4-main.1c7ec43d41",
86
+ "@dxos/ui-theme": "0.8.4-main.1c7ec43d41",
87
+ "@dxos/storybook-utils": "0.8.4-main.1c7ec43d41",
88
+ "@dxos/random": "0.8.4-main.1c7ec43d41"
68
89
  },
69
90
  "peerDependencies": {
70
91
  "@effect-atom/atom-react": "^0.5.0",
71
92
  "@effect/platform": "0.94.4",
72
- "effect": "3.19.16",
93
+ "effect": "3.20.0",
73
94
  "react": "~19.2.3",
74
95
  "react-dom": "~19.2.3",
75
- "@dxos/react-ui": "0.8.4-main.1068cf700f",
76
- "@dxos/ui-theme": "0.8.4-main.1068cf700f"
96
+ "@dxos/react-ui": "0.8.4-main.1c7ec43d41",
97
+ "@dxos/ui-theme": "0.8.4-main.1c7ec43d41"
77
98
  },
78
99
  "publishConfig": {
79
100
  "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
+ );
package/src/cli/index.ts CHANGED
@@ -2,5 +2,4 @@
2
2
  // Copyright 2025 DXOS.org
3
3
  //
4
4
 
5
- export * from './plugin';
6
- export * from './storage';
5
+ export * from '../storage';