@dxos/plugin-registry 0.8.4-main.fd6878d → 0.8.4-staging.60fe92afc8

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 (237) 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-GRQI6MLI.mjs +36 -0
  9. package/dist/lib/neutral/chunk-GRQI6MLI.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 +25 -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 +72 -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/categories.d.ts +18 -0
  42. package/dist/types/src/categories.d.ts.map +1 -0
  43. package/dist/types/src/commands/disable.d.ts +11 -0
  44. package/dist/types/src/commands/disable.d.ts.map +1 -0
  45. package/dist/types/src/commands/enable.d.ts +11 -0
  46. package/dist/types/src/commands/enable.d.ts.map +1 -0
  47. package/dist/types/src/commands/index.d.ts +3 -0
  48. package/dist/types/src/commands/index.d.ts.map +1 -0
  49. package/dist/types/src/commands/list.d.ts +7 -0
  50. package/dist/types/src/commands/list.d.ts.map +1 -0
  51. package/dist/types/src/commands/util.d.ts +11 -0
  52. package/dist/types/src/commands/util.d.ts.map +1 -0
  53. package/dist/types/src/components/DisableDependentsAlert/DisableDependentsAlert.d.ts +24 -0
  54. package/dist/types/src/components/DisableDependentsAlert/DisableDependentsAlert.d.ts.map +1 -0
  55. package/dist/types/src/components/DisableDependentsAlert/index.d.ts +2 -0
  56. package/dist/types/src/components/DisableDependentsAlert/index.d.ts.map +1 -0
  57. package/dist/types/src/components/PluginDetail/PluginDetail.d.ts +82 -0
  58. package/dist/types/src/components/PluginDetail/PluginDetail.d.ts.map +1 -0
  59. package/dist/types/src/components/PluginDetail/PluginDetail.stories.d.ts +79 -0
  60. package/dist/types/src/components/PluginDetail/PluginDetail.stories.d.ts.map +1 -0
  61. package/dist/types/src/components/PluginDetail/index.d.ts +2 -0
  62. package/dist/types/src/components/PluginDetail/index.d.ts.map +1 -0
  63. package/dist/types/src/components/PluginFailureBadge/PluginFailureBadge.d.ts +20 -0
  64. package/dist/types/src/components/PluginFailureBadge/PluginFailureBadge.d.ts.map +1 -0
  65. package/dist/types/src/components/PluginFailureBadge/index.d.ts +2 -0
  66. package/dist/types/src/components/PluginFailureBadge/index.d.ts.map +1 -0
  67. package/dist/types/src/components/PluginList/PluginItem.d.ts +40 -0
  68. package/dist/types/src/components/PluginList/PluginItem.d.ts.map +1 -0
  69. package/dist/types/src/components/PluginList/PluginList.d.ts +23 -0
  70. package/dist/types/src/components/PluginList/PluginList.d.ts.map +1 -0
  71. package/dist/types/src/components/PluginList/PluginList.stories.d.ts +78 -0
  72. package/dist/types/src/components/PluginList/PluginList.stories.d.ts.map +1 -0
  73. package/dist/types/src/components/PluginList/index.d.ts +2 -0
  74. package/dist/types/src/components/PluginList/index.d.ts.map +1 -0
  75. package/dist/types/src/components/RegistrySettings/RegistrySettings.d.ts +18 -0
  76. package/dist/types/src/components/RegistrySettings/RegistrySettings.d.ts.map +1 -0
  77. package/dist/types/src/components/RegistrySettings/index.d.ts +2 -0
  78. package/dist/types/src/components/RegistrySettings/index.d.ts.map +1 -0
  79. package/dist/types/src/components/index.d.ts +3 -1
  80. package/dist/types/src/components/index.d.ts.map +1 -1
  81. package/dist/types/src/containers/BaseRegistryArticle/BaseRegistryArticle.d.ts +20 -0
  82. package/dist/types/src/containers/BaseRegistryArticle/BaseRegistryArticle.d.ts.map +1 -0
  83. package/dist/types/src/containers/BaseRegistryArticle/index.d.ts +2 -0
  84. package/dist/types/src/containers/BaseRegistryArticle/index.d.ts.map +1 -0
  85. package/dist/types/src/containers/LoadPluginDialog/LoadPluginDialog.d.ts +5 -0
  86. package/dist/types/src/containers/LoadPluginDialog/LoadPluginDialog.d.ts.map +1 -0
  87. package/dist/types/src/containers/LoadPluginDialog/index.d.ts +2 -0
  88. package/dist/types/src/containers/LoadPluginDialog/index.d.ts.map +1 -0
  89. package/dist/types/src/containers/PluginArticle/PluginArticle.d.ts +7 -0
  90. package/dist/types/src/containers/PluginArticle/PluginArticle.d.ts.map +1 -0
  91. package/dist/types/src/containers/PluginArticle/index.d.ts +2 -0
  92. package/dist/types/src/containers/PluginArticle/index.d.ts.map +1 -0
  93. package/dist/types/src/containers/PublicRegistryArticle/PublicRegistryArticle.d.ts +8 -0
  94. package/dist/types/src/containers/PublicRegistryArticle/PublicRegistryArticle.d.ts.map +1 -0
  95. package/dist/types/src/containers/PublicRegistryArticle/index.d.ts +2 -0
  96. package/dist/types/src/containers/PublicRegistryArticle/index.d.ts.map +1 -0
  97. package/dist/types/src/containers/RegistryArticle/RegistryArticle.d.ts +14 -0
  98. package/dist/types/src/containers/RegistryArticle/RegistryArticle.d.ts.map +1 -0
  99. package/dist/types/src/containers/RegistryArticle/index.d.ts +2 -0
  100. package/dist/types/src/containers/RegistryArticle/index.d.ts.map +1 -0
  101. package/dist/types/src/containers/RegistrySettingsContainer/RegistrySettingsContainer.d.ts +13 -0
  102. package/dist/types/src/containers/RegistrySettingsContainer/RegistrySettingsContainer.d.ts.map +1 -0
  103. package/dist/types/src/containers/RegistrySettingsContainer/index.d.ts +2 -0
  104. package/dist/types/src/containers/RegistrySettingsContainer/index.d.ts.map +1 -0
  105. package/dist/types/src/containers/index.d.ts +8 -0
  106. package/dist/types/src/containers/index.d.ts.map +1 -0
  107. package/dist/types/src/hooks/index.d.ts +9 -0
  108. package/dist/types/src/hooks/index.d.ts.map +1 -0
  109. package/dist/types/src/hooks/useAutoTags.d.ts +20 -0
  110. package/dist/types/src/hooks/useAutoTags.d.ts.map +1 -0
  111. package/dist/types/src/hooks/useCatalogEntry.d.ts +11 -0
  112. package/dist/types/src/hooks/useCatalogEntry.d.ts.map +1 -0
  113. package/dist/types/src/hooks/useDisableConfirmation.d.ts +19 -0
  114. package/dist/types/src/hooks/useDisableConfirmation.d.ts.map +1 -0
  115. package/dist/types/src/hooks/useInstalledVersionTag.d.ts +18 -0
  116. package/dist/types/src/hooks/useInstalledVersionTag.d.ts.map +1 -0
  117. package/dist/types/src/hooks/usePluginActions.d.ts +36 -0
  118. package/dist/types/src/hooks/usePluginActions.d.ts.map +1 -0
  119. package/dist/types/src/hooks/useRegistryPlugins.d.ts +15 -0
  120. package/dist/types/src/hooks/useRegistryPlugins.d.ts.map +1 -0
  121. package/dist/types/src/hooks/useUpdateAvailable.d.ts +18 -0
  122. package/dist/types/src/hooks/useUpdateAvailable.d.ts.map +1 -0
  123. package/dist/types/src/hooks/useVersionPicker.d.ts +21 -0
  124. package/dist/types/src/hooks/useVersionPicker.d.ts.map +1 -0
  125. package/dist/types/src/index.d.ts +1 -1
  126. package/dist/types/src/index.d.ts.map +1 -1
  127. package/dist/types/src/meta.d.ts +21 -4
  128. package/dist/types/src/meta.d.ts.map +1 -1
  129. package/dist/types/src/operations/index.d.ts +3 -0
  130. package/dist/types/src/operations/index.d.ts.map +1 -0
  131. package/dist/types/src/operations/open-plugin-registry.d.ts +5 -0
  132. package/dist/types/src/operations/open-plugin-registry.d.ts.map +1 -0
  133. package/dist/types/src/plugin.d.ts +4 -0
  134. package/dist/types/src/plugin.d.ts.map +1 -0
  135. package/dist/types/src/storage.d.ts +18 -0
  136. package/dist/types/src/storage.d.ts.map +1 -0
  137. package/dist/types/src/translations.d.ts +59 -16
  138. package/dist/types/src/translations.d.ts.map +1 -1
  139. package/dist/types/src/types.d.ts +32 -1
  140. package/dist/types/src/types.d.ts.map +1 -1
  141. package/dist/types/tsconfig.tsbuildinfo +1 -1
  142. package/package.json +76 -37
  143. package/src/RegistryPlugin.node.ts +19 -0
  144. package/src/RegistryPlugin.test.ts +24 -0
  145. package/src/RegistryPlugin.tsx +20 -27
  146. package/src/RegistryPlugin.workerd.ts +11 -0
  147. package/src/capabilities/app-graph-builder.ts +199 -135
  148. package/src/capabilities/dev-plugin-loader.ts +39 -0
  149. package/src/capabilities/index.ts +10 -4
  150. package/src/capabilities/operation-handler.ts +16 -0
  151. package/src/capabilities/react-surface.tsx +115 -79
  152. package/src/capabilities/settings.ts +34 -0
  153. package/src/categories.ts +44 -0
  154. package/src/commands/disable.ts +47 -0
  155. package/src/commands/enable.ts +44 -0
  156. package/src/commands/index.ts +14 -0
  157. package/src/commands/list.ts +41 -0
  158. package/src/commands/util.ts +24 -0
  159. package/src/components/DisableDependentsAlert/DisableDependentsAlert.tsx +69 -0
  160. package/src/components/DisableDependentsAlert/index.ts +5 -0
  161. package/src/components/PluginDetail/PluginDetail.stories.tsx +48 -0
  162. package/src/components/PluginDetail/PluginDetail.tsx +345 -0
  163. package/src/components/PluginDetail/index.ts +5 -0
  164. package/src/components/PluginFailureBadge/PluginFailureBadge.tsx +68 -0
  165. package/src/components/PluginFailureBadge/index.ts +5 -0
  166. package/src/components/PluginList/PluginItem.tsx +223 -0
  167. package/src/components/PluginList/PluginList.stories.tsx +90 -0
  168. package/src/components/PluginList/PluginList.tsx +52 -0
  169. package/src/components/PluginList/index.ts +5 -0
  170. package/src/components/RegistrySettings/RegistrySettings.tsx +120 -0
  171. package/src/components/RegistrySettings/index.ts +5 -0
  172. package/src/components/index.ts +3 -1
  173. package/src/containers/BaseRegistryArticle/BaseRegistryArticle.tsx +178 -0
  174. package/src/containers/BaseRegistryArticle/index.ts +5 -0
  175. package/src/containers/LoadPluginDialog/LoadPluginDialog.tsx +88 -0
  176. package/src/containers/LoadPluginDialog/index.ts +5 -0
  177. package/src/containers/PluginArticle/PluginArticle.tsx +117 -0
  178. package/src/containers/PluginArticle/index.ts +5 -0
  179. package/src/containers/PublicRegistryArticle/PublicRegistryArticle.tsx +193 -0
  180. package/src/containers/PublicRegistryArticle/index.ts +5 -0
  181. package/src/containers/RegistryArticle/RegistryArticle.tsx +53 -0
  182. package/src/containers/RegistryArticle/index.ts +5 -0
  183. package/src/containers/RegistrySettingsContainer/RegistrySettingsContainer.tsx +59 -0
  184. package/src/containers/RegistrySettingsContainer/index.ts +5 -0
  185. package/src/containers/index.ts +12 -0
  186. package/src/hooks/index.ts +12 -0
  187. package/src/hooks/useAutoTags.ts +52 -0
  188. package/src/hooks/useCatalogEntry.ts +25 -0
  189. package/src/hooks/useDisableConfirmation.ts +58 -0
  190. package/src/hooks/useInstalledVersionTag.ts +41 -0
  191. package/src/hooks/usePluginActions.ts +177 -0
  192. package/src/hooks/useRegistryPlugins.ts +29 -0
  193. package/src/hooks/useUpdateAvailable.ts +31 -0
  194. package/src/hooks/useVersionPicker.ts +112 -0
  195. package/src/index.ts +1 -1
  196. package/src/meta.ts +39 -10
  197. package/src/operations/index.ts +7 -0
  198. package/src/operations/open-plugin-registry.ts +21 -0
  199. package/src/plugin.ts +11 -0
  200. package/src/storage.ts +50 -0
  201. package/src/translations.ts +64 -15
  202. package/src/types.ts +37 -1
  203. package/dist/lib/browser/app-graph-builder-6JQNRTEQ.mjs +0 -161
  204. package/dist/lib/browser/app-graph-builder-6JQNRTEQ.mjs.map +0 -7
  205. package/dist/lib/browser/chunk-AEBASNOI.mjs +0 -16
  206. package/dist/lib/browser/chunk-AEBASNOI.mjs.map +0 -7
  207. package/dist/lib/browser/index.mjs +0 -71
  208. package/dist/lib/browser/index.mjs.map +0 -7
  209. package/dist/lib/browser/intent-resolver-UGDFPMAG.mjs +0 -23
  210. package/dist/lib/browser/intent-resolver-UGDFPMAG.mjs.map +0 -7
  211. package/dist/lib/browser/meta.json +0 -1
  212. package/dist/lib/browser/react-surface-BQPO3F3E.mjs +0 -333
  213. package/dist/lib/browser/react-surface-BQPO3F3E.mjs.map +0 -7
  214. package/dist/types/src/capabilities/intent-resolver.d.ts +0 -4
  215. package/dist/types/src/capabilities/intent-resolver.d.ts.map +0 -1
  216. package/dist/types/src/components/Icon.stories.d.ts +0 -6
  217. package/dist/types/src/components/Icon.stories.d.ts.map +0 -1
  218. package/dist/types/src/components/PluginDetail.d.ts +0 -9
  219. package/dist/types/src/components/PluginDetail.d.ts.map +0 -1
  220. package/dist/types/src/components/PluginDetail.stories.d.ts +0 -8
  221. package/dist/types/src/components/PluginDetail.stories.d.ts.map +0 -1
  222. package/dist/types/src/components/PluginItem.d.ts +0 -13
  223. package/dist/types/src/components/PluginItem.d.ts.map +0 -1
  224. package/dist/types/src/components/PluginList.d.ts +0 -8
  225. package/dist/types/src/components/PluginList.d.ts.map +0 -1
  226. package/dist/types/src/components/PluginList.stories.d.ts +0 -11
  227. package/dist/types/src/components/PluginList.stories.d.ts.map +0 -1
  228. package/dist/types/src/components/RegistryContainer.d.ts +0 -7
  229. package/dist/types/src/components/RegistryContainer.d.ts.map +0 -1
  230. package/src/capabilities/intent-resolver.ts +0 -27
  231. package/src/components/Icon.stories.tsx +0 -108
  232. package/src/components/PluginDetail.stories.tsx +0 -46
  233. package/src/components/PluginDetail.tsx +0 -63
  234. package/src/components/PluginItem.tsx +0 -119
  235. package/src/components/PluginList.stories.tsx +0 -83
  236. package/src/components/PluginList.tsx +0 -26
  237. package/src/components/RegistryContainer.tsx +0 -84
package/package.json CHANGED
@@ -1,64 +1,103 @@
1
1
  {
2
2
  "name": "@dxos/plugin-registry",
3
- "version": "0.8.4-main.fd6878d",
3
+ "version": "0.8.4-staging.60fe92afc8",
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/app-framework": "0.8.4-main.fd6878d",
29
- "@dxos/echo": "0.8.4-main.fd6878d",
30
- "@dxos/echo-schema": "0.8.4-main.fd6878d",
31
- "@dxos/live-object": "0.8.4-main.fd6878d",
32
- "@dxos/invariant": "0.8.4-main.fd6878d",
33
- "@dxos/react-ui-stack": "0.8.4-main.fd6878d",
34
- "@dxos/plugin-observability": "0.8.4-main.fd6878d",
35
- "@dxos/react-ui-form": "0.8.4-main.fd6878d",
36
- "@dxos/plugin-graph": "0.8.4-main.fd6878d",
37
- "@dxos/util": "0.8.4-main.fd6878d"
58
+ "@effect-atom/atom-react": "^0.5.0",
59
+ "@effect/cli": "0.75.2",
60
+ "yaml": "^2.8.2",
61
+ "@dxos/app-toolkit": "0.8.4-staging.60fe92afc8",
62
+ "@dxos/app-framework": "0.8.4-staging.60fe92afc8",
63
+ "@dxos/cli-util": "0.8.4-staging.60fe92afc8",
64
+ "@dxos/client-protocol": "0.8.4-staging.60fe92afc8",
65
+ "@dxos/compute": "0.8.4-staging.60fe92afc8",
66
+ "@dxos/effect": "0.8.4-staging.60fe92afc8",
67
+ "@dxos/log": "0.8.4-staging.60fe92afc8",
68
+ "@dxos/plugin-graph": "0.8.4-staging.60fe92afc8",
69
+ "@dxos/react-ui-form": "0.8.4-staging.60fe92afc8",
70
+ "@dxos/keys": "0.8.4-staging.60fe92afc8",
71
+ "@dxos/invariant": "0.8.4-staging.60fe92afc8",
72
+ "@dxos/plugin-observability": "0.8.4-staging.60fe92afc8",
73
+ "@dxos/react-ui-mosaic": "0.8.4-staging.60fe92afc8",
74
+ "@dxos/react-ui-markdown": "0.8.4-staging.60fe92afc8",
75
+ "@dxos/react-ui-stack": "0.8.4-staging.60fe92afc8",
76
+ "@dxos/util": "0.8.4-staging.60fe92afc8"
38
77
  },
39
78
  "devDependencies": {
40
- "@effect-rx/rx-react": "0.38.0",
41
- "@effect/platform": "0.90.2",
42
- "@phosphor-icons/react": "^2.1.5",
43
- "@types/react": "~18.2.0",
44
- "@types/react-dom": "~18.2.0",
45
- "effect": "3.17.7",
46
- "react": "~18.2.0",
47
- "react-dom": "~18.2.0",
48
- "vite": "5.4.7",
49
- "@dxos/random": "0.8.4-main.fd6878d",
50
- "@dxos/react-ui-theme": "0.8.4-main.fd6878d",
51
- "@dxos/react-ui": "0.8.4-main.fd6878d",
52
- "@dxos/storybook-utils": "0.8.4-main.fd6878d"
79
+ "@effect-atom/atom-react": "^0.5.0",
80
+ "@effect/platform": "0.96.1",
81
+ "@types/react": "~19.2.7",
82
+ "@types/react-dom": "~19.2.3",
83
+ "effect": "3.21.3",
84
+ "react": "~19.2.3",
85
+ "react-dom": "~19.2.3",
86
+ "vite": "^8.0.16",
87
+ "@dxos/plugin-testing": "0.8.4-staging.60fe92afc8",
88
+ "@dxos/random": "0.8.4-staging.60fe92afc8",
89
+ "@dxos/react-ui": "0.8.4-staging.60fe92afc8",
90
+ "@dxos/ui-theme": "0.8.4-staging.60fe92afc8",
91
+ "@dxos/storybook-utils": "0.8.4-staging.60fe92afc8"
53
92
  },
54
93
  "peerDependencies": {
55
- "@effect-rx/rx-react": "^0.34.1",
56
- "@effect/platform": "^0.80.12",
57
- "effect": "^3.13.3",
58
- "react": "~18.2.0",
59
- "react-dom": "~18.2.0",
60
- "@dxos/react-ui": "0.8.4-main.fd6878d",
61
- "@dxos/react-ui-theme": "0.8.4-main.fd6878d"
94
+ "@effect-atom/atom-react": "^0.5.0",
95
+ "@effect/platform": "0.96.1",
96
+ "effect": "3.21.3",
97
+ "react": "~19.2.3",
98
+ "react-dom": "~19.2.3",
99
+ "@dxos/react-ui": "0.8.4-staging.60fe92afc8",
100
+ "@dxos/ui-theme": "0.8.4-staging.60fe92afc8"
62
101
  },
63
102
  "publishConfig": {
64
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,32 +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 = () =>
12
- definePlugin(meta, [
13
- defineModule({
14
- id: `${meta.id}/module/translations`,
15
- activatesOn: Events.SetupTranslations,
16
- activate: () => contributes(Capabilities.Translations, translations),
17
- }),
18
- defineModule({
19
- id: `${meta.id}/module/react-surface`,
20
- activatesOn: Events.SetupReactSurface,
21
- activate: ReactSurface,
22
- }),
23
- defineModule({
24
- id: `${meta.id}/module/intent-resolver`,
25
- activatesOn: Events.SetupIntentResolver,
26
- activate: IntentResolver,
27
- }),
28
- defineModule({
29
- id: `${meta.id}/module/app-graph-builder`,
30
- activatesOn: Events.SetupAppGraph,
31
- activate: AppGraphBuilder,
32
- }),
33
- ]);
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,
22
+ }),
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,154 +2,218 @@
2
2
  // Copyright 2025 DXOS.org
3
3
  //
4
4
 
5
- import { Rx } from '@effect-rx/rx-react';
6
- import { Option, pipe } from 'effect';
5
+ import * as Effect from 'effect/Effect';
7
6
 
8
- import { Capabilities, type PluginContext, SettingsAction, contributes, createIntent } from '@dxos/app-framework';
9
- 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 { DXN } from '@dxos/keys';
11
+ import { GraphBuilder, Node, NodeMatcher } from '@dxos/plugin-graph';
10
12
 
11
- import { REGISTRY_ID, REGISTRY_KEY, REGISTRY_PLUGIN } from '../meta';
13
+ import { REGISTRY_ID, REGISTRY_KEY, registryCategoryId, meta } from '#meta';
12
14
 
13
- export default (context: PluginContext) =>
14
- contributes(Capabilities.AppGraphBuilder, [
15
- createExtension({
16
- id: REGISTRY_PLUGIN,
17
- actions: (node) =>
18
- Rx.make((get) =>
19
- pipe(
20
- get(node),
21
- Option.flatMap((node) => (node.id === 'root' ? Option.some(node) : Option.none())),
22
- Option.map((node) => [
23
- {
24
- id: REGISTRY_PLUGIN,
25
- data: async () => {
26
- const { dispatchPromise: dispatch } = context.getCapability(Capabilities.IntentDispatcher);
27
- await dispatch(createIntent(SettingsAction.OpenPluginRegistry));
28
- },
29
- properties: {
30
- label: ['open plugin registry label', { ns: REGISTRY_PLUGIN }],
31
- icon: 'ph--squares-four--regular',
32
- disposition: 'menu',
33
- },
34
- },
35
- ]),
36
- Option.getOrElse(() => []),
37
- ),
38
- ),
15
+ import { getCategoryPredicate, getRemotePluginIds } from '../categories';
16
+ import { LOAD_PLUGIN_DIALOG } from '../containers';
17
+
18
+ /**
19
+ * Turns a registry catalog entry into a minimal {@link Plugin.Plugin} so it
20
+ * can be attached as the graph node's `data`. The synthesized plugin has no
21
+ * modules and only exists so the article surface can render details for
22
+ * registry plugins that haven't been installed yet.
23
+ */
24
+ const toDisplayPlugin = (entry: Registry.Plugin): Plugin.Plugin =>
25
+ ({
26
+ [Plugin.PluginTypeId]: Plugin.PluginTypeId,
27
+ meta: Plugin.makeMeta({
28
+ key: DXN.make(entry.id),
29
+ name: entry.name,
30
+ description: entry.description,
31
+ homePage: entry.homePage,
32
+ source: entry.source,
33
+ screenshots: entry.screenshots,
34
+ tags: entry.tags,
35
+ icon: entry.icon,
36
+ iconHue: entry.iconHue,
39
37
  }),
40
- createExtension({
41
- id: REGISTRY_PLUGIN,
42
- connector: (node) =>
43
- Rx.make((get) =>
44
- pipe(
45
- get(node),
46
- Option.flatMap((node) => (node.id === 'root' ? Option.some(node) : Option.none())),
47
- Option.map((node) => [
48
- {
49
- id: REGISTRY_ID,
50
- type: REGISTRY_PLUGIN,
51
- properties: {
52
- label: ['plugin registry label', { ns: REGISTRY_PLUGIN }],
53
- icon: 'ph--squares-four--regular',
54
- disposition: 'pin-end',
55
- testId: 'treeView.pluginRegistry',
56
- },
57
- nodes: [
58
- {
59
- id: `${REGISTRY_KEY}+all`,
60
- type: 'category',
61
- data: `${REGISTRY_KEY}+all`,
62
- properties: {
63
- label: ['all plugins label', { ns: REGISTRY_PLUGIN }],
64
- icon: 'ph--squares-four--regular',
65
- key: REGISTRY_KEY,
66
- testId: 'pluginRegistry.all',
67
- },
38
+ modules: [],
39
+ }) as Plugin.Plugin;
40
+
41
+ export default Capability.makeModule(
42
+ Effect.fnUntraced(function* () {
43
+ const capabilities = yield* Capability.Service;
44
+
45
+ const extensions = yield* Effect.all([
46
+ GraphBuilder.createExtension({
47
+ id: 'openRegistry',
48
+ match: NodeMatcher.whenRoot,
49
+ actions: () =>
50
+ Effect.succeed([
51
+ {
52
+ id: 'openRegistry',
53
+ data: () => Operation.invoke(SettingsOperation.OpenPluginRegistry),
54
+ properties: {
55
+ label: ['open-plugin-registry.label', { ns: meta.id }],
56
+ icon: 'ph--squares-four--regular',
57
+ disposition: 'menu',
58
+ },
59
+ },
60
+ ]),
61
+ }),
62
+ GraphBuilder.createExtension({
63
+ id: 'registry',
64
+ match: NodeMatcher.whenRoot,
65
+ connector: (_node, get) => {
66
+ const manager = capabilities.get(Capabilities.PluginManager);
67
+ const plugins = get(manager.plugins);
68
+ const filterContext = {
69
+ core: get(manager.core),
70
+ enabled: get(manager.enabled),
71
+ remoteIds: getRemotePluginIds(),
72
+ };
73
+ const categoryCount = (category: string) =>
74
+ plugins.filter(getCategoryPredicate(category, filterContext)).length;
75
+ const registryCount = get(manager.pluginRegistry.plugins).entries.length;
76
+
77
+ return Effect.succeed([
78
+ Node.make({
79
+ id: REGISTRY_ID,
80
+ type: meta.id,
81
+ properties: {
82
+ label: ['plugin-registry.label', { ns: meta.id }],
83
+ icon: 'ph--squares-four--regular',
84
+ disposition: 'pin-end',
85
+ position: 'first',
86
+ testId: 'treeView.pluginRegistry',
87
+ },
88
+ nodes: [
89
+ Node.make({
90
+ id: registryCategoryId('bundled'),
91
+ type: 'category',
92
+ data: registryCategoryId('bundled'),
93
+ properties: {
94
+ label: ['bundled-plugins.label', { ns: meta.id }],
95
+ icon: 'ph--squares-four--regular',
96
+ key: REGISTRY_KEY,
97
+ testId: 'pluginRegistry.bundled',
98
+ count: categoryCount(registryCategoryId('bundled')),
99
+ },
100
+ }),
101
+ Node.make({
102
+ id: registryCategoryId('installed'),
103
+ type: 'category',
104
+ data: registryCategoryId('installed'),
105
+ properties: {
106
+ label: ['installed-plugins.label', { ns: meta.id }],
107
+ icon: 'ph--check--regular',
108
+ key: REGISTRY_KEY,
109
+ testId: 'pluginRegistry.installed',
110
+ count: categoryCount(registryCategoryId('installed')),
68
111
  },
69
- {
70
- id: `${REGISTRY_KEY}+installed`,
71
- type: 'category',
72
- data: `${REGISTRY_KEY}+installed`,
73
- properties: {
74
- label: ['installed plugins label', { ns: REGISTRY_PLUGIN }],
75
- icon: 'ph--check--regular',
76
- key: REGISTRY_KEY,
77
- testId: 'pluginRegistry.installed',
78
- },
112
+ }),
113
+ Node.make({
114
+ id: registryCategoryId('recommended'),
115
+ type: 'category',
116
+ data: registryCategoryId('recommended'),
117
+ properties: {
118
+ label: ['recommended-plugins.label', { ns: meta.id }],
119
+ icon: 'ph--star--regular',
120
+ key: REGISTRY_KEY,
121
+ testId: 'pluginRegistry.recommended',
122
+ count: categoryCount(registryCategoryId('recommended')),
79
123
  },
80
- {
81
- id: `${REGISTRY_KEY}+recommended`,
82
- type: 'category',
83
- data: `${REGISTRY_KEY}+recommended`,
84
- properties: {
85
- label: ['recommended plugins label', { ns: REGISTRY_PLUGIN }],
86
- icon: 'ph--star--regular',
87
- key: REGISTRY_KEY,
88
- testId: 'pluginRegistry.recommended',
89
- },
124
+ }),
125
+ Node.make({
126
+ id: registryCategoryId('labs'),
127
+ type: 'category',
128
+ data: registryCategoryId('labs'),
129
+ properties: {
130
+ label: ['labs-plugins.label', { ns: meta.id }],
131
+ icon: 'ph--flask--regular',
132
+ key: REGISTRY_KEY,
133
+ testId: 'pluginRegistry.labs',
134
+ count: categoryCount(registryCategoryId('labs')),
90
135
  },
91
- {
92
- id: `${REGISTRY_KEY}+labs`,
93
- type: 'category',
94
- data: `${REGISTRY_KEY}+labs`,
95
- properties: {
96
- label: ['labs plugins label', { ns: REGISTRY_PLUGIN }],
97
- icon: 'ph--flask--regular',
98
- key: REGISTRY_KEY,
99
- testId: 'pluginRegistry.labs',
100
- },
136
+ }),
137
+ Node.make({
138
+ id: registryCategoryId('registry'),
139
+ type: 'category',
140
+ data: registryCategoryId('registry'),
141
+ properties: {
142
+ label: ['registry-plugins.label', { ns: meta.id }],
143
+ icon: 'ph--users-three--regular',
144
+ key: REGISTRY_KEY,
145
+ testId: 'pluginRegistry.registry',
146
+ count: registryCount,
101
147
  },
102
- ],
148
+ }),
149
+ ],
150
+ }),
151
+ ]);
152
+ },
153
+ }),
154
+ GraphBuilder.createExtension({
155
+ id: 'actions',
156
+ match: NodeMatcher.whenId(`root/${REGISTRY_ID}`),
157
+ actions: () =>
158
+ Effect.succeed([
159
+ {
160
+ id: 'loadByUrl',
161
+ data: Effect.fnUntraced(function* () {
162
+ yield* Operation.invoke(LayoutOperation.UpdateDialog, {
163
+ subject: LOAD_PLUGIN_DIALOG,
164
+ state: true,
165
+ });
166
+ }),
167
+ properties: {
168
+ label: ['load-by-url.label', { ns: meta.id }],
169
+ icon: 'ph--cloud-arrow-down--regular',
170
+ disposition: 'list-item-primary',
103
171
  },
104
- ]),
105
- Option.getOrElse(() => []),
106
- ),
107
- ),
108
- }),
109
- createExtension({
110
- id: `${REGISTRY_PLUGIN}/actions`,
111
- actions: (node) =>
112
- Rx.make((get) =>
113
- pipe(
114
- get(node),
115
- Option.flatMap((node) => (node.id === REGISTRY_ID ? Option.some(node) : Option.none())),
116
- Option.map(() => [
117
- {
118
- id: `${REGISTRY_PLUGIN}/load-by-url`,
119
- data: async () => {},
120
- properties: {
121
- label: ['load by url label', { ns: REGISTRY_PLUGIN }],
122
- icon: 'ph--cloud-arrow-down--regular',
123
- disabled: true,
124
- },
172
+ },
173
+ ]),
174
+ }),
175
+ GraphBuilder.createExtension({
176
+ id: 'plugins',
177
+ match: NodeMatcher.whenId(`root/${REGISTRY_ID}`),
178
+ connector: (_node, get) => {
179
+ const manager = capabilities.get(Capabilities.PluginManager);
180
+ const installedIds = new Set(manager.getPlugins().map((plugin) => plugin.meta.id));
181
+
182
+ const installedNodes = manager.getPlugins().map((plugin) =>
183
+ Node.make({
184
+ id: plugin.meta.id,
185
+ type: 'org.dxos.plugin',
186
+ data: plugin,
187
+ properties: {
188
+ label: plugin.meta.name ?? plugin.meta.id,
189
+ icon: plugin.meta.icon ?? 'ph--circle--regular',
190
+ disposition: 'hidden',
125
191
  },
126
- ]),
127
- Option.getOrElse(() => []),
128
- ),
129
- ),
130
- }),
131
- createExtension({
132
- id: `${REGISTRY_PLUGIN}/plugins`,
133
- connector: (node) =>
134
- Rx.make((get) =>
135
- pipe(
136
- get(node),
137
- Option.flatMap((node) => (node.id === REGISTRY_ID ? Option.some(node) : Option.none())),
138
- Option.map(() => {
139
- const manager = context.getCapability(Capabilities.PluginManager);
140
- return manager.plugins.map((plugin) => ({
141
- id: plugin.meta.id.replaceAll('/', ':'),
142
- type: 'dxos.org/plugin',
192
+ }),
193
+ );
194
+
195
+ const registryEntries = get(manager.pluginRegistry.plugins).entries;
196
+ const registryNodes = registryEntries
197
+ .filter((entry) => !installedIds.has(DXN.make(entry.id)))
198
+ .map((entry) => {
199
+ const plugin = toDisplayPlugin(entry);
200
+ return Node.make({
201
+ id: plugin.meta.id,
202
+ type: 'org.dxos.plugin',
143
203
  data: plugin,
144
204
  properties: {
145
205
  label: plugin.meta.name ?? plugin.meta.id,
146
206
  icon: plugin.meta.icon ?? 'ph--circle--regular',
147
207
  disposition: 'hidden',
148
208
  },
149
- }));
150
- }),
151
- Option.getOrElse(() => []),
152
- ),
153
- ),
154
- }),
155
- ]);
209
+ });
210
+ });
211
+
212
+ return Effect.succeed([...installedNodes, ...registryNodes]);
213
+ },
214
+ }),
215
+ ]);
216
+
217
+ return Capability.contributes(AppCapabilities.AppGraphBuilder, extensions);
218
+ }),
219
+ );
@@ -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
+ );