@dxos/plugin-registry 0.8.3-staging.0fa589b → 0.8.4-main.03d5cd7b56

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 (207) 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/neutral/RegistryPlugin.node.mjs +153 -0
  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/neutral/chunk-YV7A523U.mjs +29 -0
  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 +3 -1
  19. package/dist/types/src/RegistryPlugin.d.ts.map +1 -1
  20. package/dist/types/src/RegistryPlugin.node.d.ts +4 -0
  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 +4 -2
  25. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
  26. package/dist/types/src/capabilities/dev-plugin-loader.d.ts +11 -0
  27. package/dist/types/src/capabilities/dev-plugin-loader.d.ts.map +1 -0
  28. package/dist/types/src/capabilities/index.d.ts +15 -3
  29. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  30. package/dist/types/src/capabilities/operation-handler.d.ts +6 -0
  31. package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -0
  32. package/dist/types/src/capabilities/react-surface.d.ts +3 -2
  33. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
  34. package/dist/types/src/capabilities/settings.d.ts +14 -0
  35. package/dist/types/src/capabilities/settings.d.ts.map +1 -0
  36. package/dist/types/src/commands/disable.d.ts +11 -0
  37. package/dist/types/src/commands/disable.d.ts.map +1 -0
  38. package/dist/types/src/commands/enable.d.ts +11 -0
  39. package/dist/types/src/commands/enable.d.ts.map +1 -0
  40. package/dist/types/src/commands/index.d.ts +3 -0
  41. package/dist/types/src/commands/index.d.ts.map +1 -0
  42. package/dist/types/src/commands/list.d.ts +7 -0
  43. package/dist/types/src/commands/list.d.ts.map +1 -0
  44. package/dist/types/src/commands/util.d.ts +11 -0
  45. package/dist/types/src/commands/util.d.ts.map +1 -0
  46. package/dist/types/src/components/PluginDetail/PluginDetail.d.ts +46 -0
  47. package/dist/types/src/components/PluginDetail/PluginDetail.d.ts.map +1 -0
  48. package/dist/types/src/components/PluginDetail/PluginDetail.stories.d.ts +68 -0
  49. package/dist/types/src/components/PluginDetail/PluginDetail.stories.d.ts.map +1 -0
  50. package/dist/types/src/components/PluginDetail/index.d.ts +2 -0
  51. package/dist/types/src/components/PluginDetail/index.d.ts.map +1 -0
  52. package/dist/types/src/components/PluginFailureBadge/PluginFailureBadge.d.ts +20 -0
  53. package/dist/types/src/components/PluginFailureBadge/PluginFailureBadge.d.ts.map +1 -0
  54. package/dist/types/src/components/PluginFailureBadge/index.d.ts +2 -0
  55. package/dist/types/src/components/PluginFailureBadge/index.d.ts.map +1 -0
  56. package/dist/types/src/components/PluginList/PluginItem.d.ts +40 -0
  57. package/dist/types/src/components/PluginList/PluginItem.d.ts.map +1 -0
  58. package/dist/types/src/components/PluginList/PluginList.d.ts +23 -0
  59. package/dist/types/src/components/PluginList/PluginList.d.ts.map +1 -0
  60. package/dist/types/src/components/PluginList/PluginList.stories.d.ts +67 -0
  61. package/dist/types/src/components/PluginList/PluginList.stories.d.ts.map +1 -0
  62. package/dist/types/src/components/PluginList/index.d.ts +2 -0
  63. package/dist/types/src/components/PluginList/index.d.ts.map +1 -0
  64. package/dist/types/src/components/RegistrySettings/RegistrySettings.d.ts +18 -0
  65. package/dist/types/src/components/RegistrySettings/RegistrySettings.d.ts.map +1 -0
  66. package/dist/types/src/components/RegistrySettings/index.d.ts +2 -0
  67. package/dist/types/src/components/RegistrySettings/index.d.ts.map +1 -0
  68. package/dist/types/src/components/index.d.ts +2 -1
  69. package/dist/types/src/components/index.d.ts.map +1 -1
  70. package/dist/types/src/containers/BaseRegistryArticle/BaseRegistryArticle.d.ts +20 -0
  71. package/dist/types/src/containers/BaseRegistryArticle/BaseRegistryArticle.d.ts.map +1 -0
  72. package/dist/types/src/containers/BaseRegistryArticle/index.d.ts +2 -0
  73. package/dist/types/src/containers/BaseRegistryArticle/index.d.ts.map +1 -0
  74. package/dist/types/src/containers/LoadPluginDialog/LoadPluginDialog.d.ts +4 -0
  75. package/dist/types/src/containers/LoadPluginDialog/LoadPluginDialog.d.ts.map +1 -0
  76. package/dist/types/src/containers/LoadPluginDialog/index.d.ts +2 -0
  77. package/dist/types/src/containers/LoadPluginDialog/index.d.ts.map +1 -0
  78. package/dist/types/src/containers/PluginArticle/PluginArticle.d.ts +7 -0
  79. package/dist/types/src/containers/PluginArticle/PluginArticle.d.ts.map +1 -0
  80. package/dist/types/src/containers/PluginArticle/index.d.ts +2 -0
  81. package/dist/types/src/containers/PluginArticle/index.d.ts.map +1 -0
  82. package/dist/types/src/containers/PublicRegistryArticle/PublicRegistryArticle.d.ts +8 -0
  83. package/dist/types/src/containers/PublicRegistryArticle/PublicRegistryArticle.d.ts.map +1 -0
  84. package/dist/types/src/containers/PublicRegistryArticle/index.d.ts +2 -0
  85. package/dist/types/src/containers/PublicRegistryArticle/index.d.ts.map +1 -0
  86. package/dist/types/src/containers/RegistryArticle/RegistryArticle.d.ts +14 -0
  87. package/dist/types/src/containers/RegistryArticle/RegistryArticle.d.ts.map +1 -0
  88. package/dist/types/src/containers/RegistryArticle/index.d.ts +2 -0
  89. package/dist/types/src/containers/RegistryArticle/index.d.ts.map +1 -0
  90. package/dist/types/src/containers/RegistrySettingsContainer/RegistrySettingsContainer.d.ts +13 -0
  91. package/dist/types/src/containers/RegistrySettingsContainer/RegistrySettingsContainer.d.ts.map +1 -0
  92. package/dist/types/src/containers/RegistrySettingsContainer/index.d.ts +2 -0
  93. package/dist/types/src/containers/RegistrySettingsContainer/index.d.ts.map +1 -0
  94. package/dist/types/src/containers/index.d.ts +8 -0
  95. package/dist/types/src/containers/index.d.ts.map +1 -0
  96. package/dist/types/src/hooks/index.d.ts +4 -0
  97. package/dist/types/src/hooks/index.d.ts.map +1 -0
  98. package/dist/types/src/hooks/use-auto-tags.d.ts +20 -0
  99. package/dist/types/src/hooks/use-auto-tags.d.ts.map +1 -0
  100. package/dist/types/src/hooks/use-registry-plugins.d.ts +15 -0
  101. package/dist/types/src/hooks/use-registry-plugins.d.ts.map +1 -0
  102. package/dist/types/src/hooks/use-update-available.d.ts +18 -0
  103. package/dist/types/src/hooks/use-update-available.d.ts.map +1 -0
  104. package/dist/types/src/index.d.ts +1 -1
  105. package/dist/types/src/index.d.ts.map +1 -1
  106. package/dist/types/src/meta.d.ts +7 -4
  107. package/dist/types/src/meta.d.ts.map +1 -1
  108. package/dist/types/src/operations/index.d.ts +3 -0
  109. package/dist/types/src/operations/index.d.ts.map +1 -0
  110. package/dist/types/src/operations/open-plugin-registry.d.ts +5 -0
  111. package/dist/types/src/operations/open-plugin-registry.d.ts.map +1 -0
  112. package/dist/types/src/plugin.d.ts +4 -0
  113. package/dist/types/src/plugin.d.ts.map +1 -0
  114. package/dist/types/src/storage.d.ts +18 -0
  115. package/dist/types/src/storage.d.ts.map +1 -0
  116. package/dist/types/src/translations.d.ts +51 -19
  117. package/dist/types/src/translations.d.ts.map +1 -1
  118. package/dist/types/src/types.d.ts +32 -1
  119. package/dist/types/src/types.d.ts.map +1 -1
  120. package/dist/types/tsconfig.tsbuildinfo +1 -1
  121. package/package.json +74 -37
  122. package/src/RegistryPlugin.node.ts +19 -0
  123. package/src/RegistryPlugin.test.ts +24 -0
  124. package/src/RegistryPlugin.tsx +20 -27
  125. package/src/capabilities/app-graph-builder.ts +180 -135
  126. package/src/capabilities/dev-plugin-loader.ts +39 -0
  127. package/src/capabilities/index.ts +10 -4
  128. package/src/capabilities/operation-handler.ts +16 -0
  129. package/src/capabilities/react-surface.tsx +124 -78
  130. package/src/capabilities/settings.ts +34 -0
  131. package/src/commands/disable.ts +47 -0
  132. package/src/commands/enable.ts +44 -0
  133. package/src/commands/index.ts +14 -0
  134. package/src/commands/list.ts +41 -0
  135. package/src/commands/util.ts +24 -0
  136. package/src/components/PluginDetail/PluginDetail.stories.tsx +44 -0
  137. package/src/components/PluginDetail/PluginDetail.tsx +196 -0
  138. package/src/components/PluginDetail/index.ts +5 -0
  139. package/src/components/PluginFailureBadge/PluginFailureBadge.tsx +68 -0
  140. package/src/components/PluginFailureBadge/index.ts +5 -0
  141. package/src/components/PluginList/PluginItem.tsx +226 -0
  142. package/src/components/PluginList/PluginList.stories.tsx +87 -0
  143. package/src/components/PluginList/PluginList.tsx +52 -0
  144. package/src/components/PluginList/index.ts +5 -0
  145. package/src/components/RegistrySettings/RegistrySettings.tsx +120 -0
  146. package/src/components/RegistrySettings/index.ts +5 -0
  147. package/src/components/index.ts +2 -1
  148. package/src/containers/BaseRegistryArticle/BaseRegistryArticle.tsx +163 -0
  149. package/src/containers/BaseRegistryArticle/index.ts +5 -0
  150. package/src/containers/LoadPluginDialog/LoadPluginDialog.tsx +87 -0
  151. package/src/containers/LoadPluginDialog/index.ts +5 -0
  152. package/src/containers/PluginArticle/PluginArticle.tsx +336 -0
  153. package/src/containers/PluginArticle/index.ts +5 -0
  154. package/src/containers/PublicRegistryArticle/PublicRegistryArticle.tsx +192 -0
  155. package/src/containers/PublicRegistryArticle/index.ts +5 -0
  156. package/src/containers/RegistryArticle/RegistryArticle.tsx +53 -0
  157. package/src/containers/RegistryArticle/index.ts +5 -0
  158. package/src/containers/RegistrySettingsContainer/RegistrySettingsContainer.tsx +59 -0
  159. package/src/containers/RegistrySettingsContainer/index.ts +5 -0
  160. package/src/containers/index.ts +12 -0
  161. package/src/hooks/index.ts +7 -0
  162. package/src/hooks/use-auto-tags.ts +51 -0
  163. package/src/hooks/use-registry-plugins.ts +29 -0
  164. package/src/hooks/use-update-available.ts +31 -0
  165. package/src/index.ts +1 -1
  166. package/src/meta.ts +21 -9
  167. package/src/operations/index.ts +7 -0
  168. package/src/operations/open-plugin-registry.ts +21 -0
  169. package/src/plugin.ts +11 -0
  170. package/src/storage.ts +50 -0
  171. package/src/translations.ts +57 -18
  172. package/src/types.ts +37 -1
  173. package/dist/lib/browser/app-graph-builder-J5YHAGNI.mjs +0 -161
  174. package/dist/lib/browser/app-graph-builder-J5YHAGNI.mjs.map +0 -7
  175. package/dist/lib/browser/chunk-ISC56E5F.mjs +0 -16
  176. package/dist/lib/browser/chunk-ISC56E5F.mjs.map +0 -7
  177. package/dist/lib/browser/index.mjs +0 -71
  178. package/dist/lib/browser/index.mjs.map +0 -7
  179. package/dist/lib/browser/intent-resolver-AQJNBUT3.mjs +0 -23
  180. package/dist/lib/browser/intent-resolver-AQJNBUT3.mjs.map +0 -7
  181. package/dist/lib/browser/meta.json +0 -1
  182. package/dist/lib/browser/react-surface-W5RNDLXV.mjs +0 -335
  183. package/dist/lib/browser/react-surface-W5RNDLXV.mjs.map +0 -7
  184. package/dist/types/src/capabilities/intent-resolver.d.ts +0 -4
  185. package/dist/types/src/capabilities/intent-resolver.d.ts.map +0 -1
  186. package/dist/types/src/components/Icon.stories.d.ts +0 -6
  187. package/dist/types/src/components/Icon.stories.d.ts.map +0 -1
  188. package/dist/types/src/components/PluginDetail.d.ts +0 -9
  189. package/dist/types/src/components/PluginDetail.d.ts.map +0 -1
  190. package/dist/types/src/components/PluginDetail.stories.d.ts +0 -8
  191. package/dist/types/src/components/PluginDetail.stories.d.ts.map +0 -1
  192. package/dist/types/src/components/PluginItem.d.ts +0 -13
  193. package/dist/types/src/components/PluginItem.d.ts.map +0 -1
  194. package/dist/types/src/components/PluginList.d.ts +0 -8
  195. package/dist/types/src/components/PluginList.d.ts.map +0 -1
  196. package/dist/types/src/components/PluginList.stories.d.ts +0 -11
  197. package/dist/types/src/components/PluginList.stories.d.ts.map +0 -1
  198. package/dist/types/src/components/RegistryContainer.d.ts +0 -7
  199. package/dist/types/src/components/RegistryContainer.d.ts.map +0 -1
  200. package/src/capabilities/intent-resolver.ts +0 -27
  201. package/src/components/Icon.stories.tsx +0 -107
  202. package/src/components/PluginDetail.stories.tsx +0 -45
  203. package/src/components/PluginDetail.tsx +0 -63
  204. package/src/components/PluginItem.tsx +0 -119
  205. package/src/components/PluginList.stories.tsx +0 -82
  206. package/src/components/PluginList.tsx +0 -26
  207. package/src/components/RegistryContainer.tsx +0 -84
@@ -0,0 +1,51 @@
1
+ //
2
+ // Copyright 2026 DXOS.org
3
+ //
4
+
5
+ import { useMemo } from 'react';
6
+
7
+ import { type Registry, UrlLoader } from '@dxos/app-framework';
8
+
9
+ /**
10
+ * Auto-tags that are derived at display time rather than persisted to `Plugin.Meta`.
11
+ * - `registry`: plugin id appears in the registry catalog manifest.
12
+ * - `local`: plugin was loaded from a `localhost` / `127.0.0.1` / `::1` URL.
13
+ */
14
+ export type AutoTagsMap = Record<string, readonly string[]>;
15
+
16
+ /**
17
+ * Computes the per-plugin-id extra tags the UI should display.
18
+ *
19
+ * Reads the persisted remote-plugin entries synchronously to derive `local`, and
20
+ * adds `registry` for any plugin id found in the supplied registry manifest entries.
21
+ */
22
+ export const useAutoTags = (registryEntries: readonly Registry.Plugin[]): AutoTagsMap =>
23
+ useMemo(() => {
24
+ const byId: Record<string, string[]> = {};
25
+ const addTag = (id: string, tag: string) => {
26
+ const existing = byId[id];
27
+ if (!existing) {
28
+ byId[id] = [tag];
29
+ } else if (!existing.includes(tag)) {
30
+ existing.push(tag);
31
+ }
32
+ };
33
+
34
+ for (const entry of UrlLoader.getRemoteEntries()) {
35
+ if (UrlLoader.isLocalUrl(entry.url)) {
36
+ addTag(entry.id, 'local');
37
+ }
38
+ }
39
+ for (const entry of registryEntries) {
40
+ addTag(entry.id, 'registry');
41
+ }
42
+
43
+ return byId;
44
+ }, [registryEntries]);
45
+
46
+ /**
47
+ * Returns the set of plugin ids known to originate from a remote URL (not bundled).
48
+ * Used to filter the Official/Recommended sections so third-party plugins are excluded.
49
+ */
50
+ export const useRemotePluginIds = (): ReadonlySet<string> =>
51
+ useMemo(() => new Set(UrlLoader.getRemoteEntries().map((entry) => entry.id)), []);
@@ -0,0 +1,29 @@
1
+ //
2
+ // Copyright 2026 DXOS.org
3
+ //
4
+
5
+ import { useAtomValue } from '@effect-atom/atom-react';
6
+
7
+ import { type Registry } from '@dxos/app-framework';
8
+ import { usePluginManager } from '@dxos/app-framework/ui';
9
+
10
+ /**
11
+ * Reads the registry plugin catalog from `manager.pluginRegistry.plugins`.
12
+ * The catalog is loaded once when the plugin manager is constructed (with a
13
+ * provider) so this hook is purely reactive — subscribers re-render as the
14
+ * `{entries, loading, error}` state settles.
15
+ */
16
+ export const useRegistryPlugins = (): Registry.PluginsState => {
17
+ const manager = usePluginManager();
18
+ return useAtomValue(manager.pluginRegistry.plugins);
19
+ };
20
+
21
+ /**
22
+ * Returns the live `Registry.Manager` from the plugin manager so callers can
23
+ * issue `listVersions` / `getPlugin` calls directly. The catalog state itself
24
+ * is best read through {@link useRegistryPlugins} above.
25
+ */
26
+ export const useRegistryPluginProvider = (): Registry.Manager => {
27
+ const manager = usePluginManager();
28
+ return manager.pluginRegistry;
29
+ };
@@ -0,0 +1,31 @@
1
+ //
2
+ // Copyright 2026 DXOS.org
3
+ //
4
+
5
+ import { type Registry, UrlLoader } from '@dxos/app-framework';
6
+
7
+ /**
8
+ * Returns a set of plugin ids for which the registry has a newer version
9
+ * than what was recorded at install time.
10
+ *
11
+ * Only flags plugins where a version was recorded at install time AND it differs
12
+ * from the catalog's current version. Legacy installs (no version stored) are ignored.
13
+ *
14
+ * NOTE: this is intentionally NOT memoised. The installed-version side of the
15
+ * comparison lives in localStorage and is mutated by `manager.add` /
16
+ * `manager.remove` / `UrlLoader.setInstalledVersion` outside React's view, so a
17
+ * memo keyed on `entries` would happily return stale data for the rest of the
18
+ * session after an update completes (the bug that produced "Update button
19
+ * reappears after Updating…"). The loop is O(catalog size) sync reads — cheap
20
+ * enough to do every render.
21
+ */
22
+ export const useUpdateAvailableIds = (entries: readonly Registry.Plugin[]): ReadonlySet<string> => {
23
+ const ids = new Set<string>();
24
+ for (const entry of entries) {
25
+ const installedVersion = UrlLoader.getInstalledVersion(entry.id);
26
+ if (installedVersion !== undefined && installedVersion !== entry.version) {
27
+ ids.add(entry.id);
28
+ }
29
+ }
30
+ return ids;
31
+ };
package/src/index.ts CHANGED
@@ -3,4 +3,4 @@
3
3
  //
4
4
 
5
5
  export * from './meta';
6
- export * from './RegistryPlugin';
6
+ export * from './storage';
package/src/meta.ts CHANGED
@@ -2,17 +2,29 @@
2
2
  // Copyright 2023 DXOS.org
3
3
  //
4
4
 
5
- import { type PluginMeta } from '@dxos/app-framework';
5
+ import { type Plugin } from '@dxos/app-framework';
6
+ import { pinnedWorkspaceId } from '@dxos/app-toolkit';
7
+ import { trim } from '@dxos/util';
6
8
 
7
- export const REGISTRY_PLUGIN = 'dxos.org/plugin/registry';
8
-
9
- // TODO(wittjosiah): Deck does not currently support `/` in ids.
10
- // TODO(wittjosiah): This is a hack to prevent the previous deck from being set for pinned items.
11
- // Ideally this should be worked into the data model in a generic way.
12
- export const REGISTRY_ID = '!dxos:plugin-registry';
9
+ export const REGISTRY_ID = pinnedWorkspaceId('dxos:plugin-registry');
13
10
  export const REGISTRY_KEY = 'plugin-registry';
14
11
 
15
- export const meta: PluginMeta = {
16
- id: REGISTRY_PLUGIN,
12
+ // TODO(wittjosiah): Should this be a special separator or use the standard path separator?
13
+ const CATEGORY_SEPARATOR = '>';
14
+
15
+ /** Build a registry category node ID. */
16
+ export const registryCategoryId = (category: string): string => `${REGISTRY_KEY}${CATEGORY_SEPARATOR}${category}`;
17
+
18
+ /** Qualified graph path to a specific plugin node. */
19
+ export const getPluginPath = (pluginId: string): string => `root/${REGISTRY_ID}/${pluginId}`;
20
+
21
+ export const meta: Plugin.Meta = {
22
+ id: 'org.dxos.plugin.registry',
17
23
  name: 'Plugins',
24
+ description: trim`
25
+ Plugin management system for discovering, installing, and configuring workspace extensions.
26
+ Browse available plugins and customize your workspace capabilities.
27
+ `,
28
+ icon: 'ph--squares-four--regular',
29
+ tags: ['system'],
18
30
  };
@@ -0,0 +1,7 @@
1
+ //
2
+ // Copyright 2025 DXOS.org
3
+ //
4
+
5
+ import { OperationHandlerSet } from '@dxos/compute';
6
+
7
+ export const RegistryOperationHandlerSet = OperationHandlerSet.lazy(() => import('./open-plugin-registry'));
@@ -0,0 +1,21 @@
1
+ //
2
+ // Copyright 2025 DXOS.org
3
+ //
4
+
5
+ import * as Effect from 'effect/Effect';
6
+
7
+ import { LayoutOperation, SettingsOperation, getSpacePath } from '@dxos/app-toolkit';
8
+ import { Operation } from '@dxos/compute';
9
+
10
+ import { REGISTRY_ID } from '#meta';
11
+
12
+ const handler: Operation.WithHandler<typeof SettingsOperation.OpenPluginRegistry> =
13
+ SettingsOperation.OpenPluginRegistry.pipe(
14
+ Operation.withHandler(
15
+ Effect.fnUntraced(function* () {
16
+ yield* Operation.invoke(LayoutOperation.SwitchWorkspace, { subject: getSpacePath(REGISTRY_ID) });
17
+ }),
18
+ ),
19
+ );
20
+
21
+ export default handler;
package/src/plugin.ts ADDED
@@ -0,0 +1,11 @@
1
+ //
2
+ // Copyright 2023 DXOS.org
3
+ //
4
+
5
+ import { Plugin } from '@dxos/app-framework';
6
+
7
+ import { meta } from './meta';
8
+
9
+ export const RegistryPlugin = Plugin.lazy(meta, () => import('#plugin'));
10
+
11
+ export { RegistryOperationHandlerSet } from './operations';
package/src/storage.ts ADDED
@@ -0,0 +1,50 @@
1
+ //
2
+ // Copyright 2025 DXOS.org
3
+ //
4
+
5
+ import * as FileSystem from '@effect/platform/FileSystem';
6
+ import * as Path from '@effect/platform/Path';
7
+ import * as Effect from 'effect/Effect';
8
+ import * as Schema from 'effect/Schema';
9
+ import * as Yaml from 'yaml';
10
+
11
+ import { DX_CONFIG } from '@dxos/client-protocol';
12
+
13
+ // TODO(wittjosiah): Factor out to app-framework?
14
+
15
+ const PluginsSchema = Schema.Array(Schema.String);
16
+
17
+ /** CLI-only: path to plugins/<profile>.yml (sibling to profile/). */
18
+ const getPluginsConfigPath = (profile: string) => `${DX_CONFIG}/plugins/${profile}.yml`;
19
+
20
+ /**
21
+ * Load enabled plugins from plugins/<profile>.yml (sibling to profile/).
22
+ * Returns the list of enabled plugin IDs, or an empty array if the file doesn't exist.
23
+ */
24
+ export const loadEnabledPlugins = Effect.fn(function* ({ profile }: { profile: string }) {
25
+ const fs = yield* FileSystem.FileSystem;
26
+ const pluginsPath = getPluginsConfigPath(profile);
27
+
28
+ const content = yield* fs
29
+ .readFileString(pluginsPath)
30
+ .pipe(Effect.catchTag('SystemError', () => Effect.succeed('[]')));
31
+
32
+ const raw = Yaml.parse(content);
33
+ const parsed = yield* Schema.decodeUnknown(PluginsSchema)(raw ?? []).pipe(
34
+ Effect.catchAll(() => Effect.succeed([] as string[])),
35
+ );
36
+
37
+ return parsed;
38
+ });
39
+
40
+ /**
41
+ * Save enabled plugins to plugins/<profile>.yml.
42
+ */
43
+ export const saveEnabledPlugins = Effect.fn(function* ({ profile, enabled }: { profile: string; enabled: string[] }) {
44
+ const fs = yield* FileSystem.FileSystem;
45
+ const path = yield* Path.Path;
46
+ const pluginsPath = getPluginsConfigPath(profile);
47
+ yield* fs.makeDirectory(path.dirname(pluginsPath), { recursive: true });
48
+ const encoded = Yaml.stringify(enabled);
49
+ yield* fs.writeFileString(pluginsPath, encoded);
50
+ });
@@ -2,27 +2,66 @@
2
2
  // Copyright 2023 DXOS.org
3
3
  //
4
4
 
5
- import { REGISTRY_PLUGIN } from './meta';
5
+ import { type Resource } from '@dxos/react-ui';
6
6
 
7
- export default [
7
+ import { meta } from '#meta';
8
+
9
+ export const translations = [
8
10
  {
9
11
  'en-US': {
10
- [REGISTRY_PLUGIN]: {
11
- 'plugin name': 'Registry',
12
- 'details label': 'Details',
13
- 'home page label': 'Website',
14
- 'source label': 'Source',
15
- 'plugin registry label': 'Plugin Registry',
16
- 'all plugins label': 'All',
17
- 'installed plugins label': 'Enabled',
18
- 'recommended plugins label': 'Recommended',
19
- 'labs plugins label': 'Labs',
20
- 'community plugins label': 'Community',
21
- 'load by url label': 'Load by URL (soon)',
22
- 'coming soon label': 'Coming soon!',
23
- 'open plugin registry label': 'Open plugin registry',
24
- 'settings label': 'Settings',
12
+ [meta.id]: {
13
+ 'plugin.name': 'Registry',
14
+ 'details.label': 'Details',
15
+ 'home-page.label': 'Website',
16
+ 'source.label': 'Source',
17
+ 'plugin-registry.label': 'Plugins',
18
+ 'plugin-settings.label': 'Plugin Settings',
19
+ 'official-plugins.label': 'Official',
20
+ 'installed-plugins.label': 'Enabled',
21
+ 'recommended-plugins.label': 'Recommended',
22
+ 'labs-plugins.label': 'Labs',
23
+ 'registry-plugins.label': 'Registry',
24
+ 'load-by-url.label': 'Load from URL',
25
+ 'load-by-url-dialog.title': 'Load Plugin from URL',
26
+ 'plugin-url.label': 'Plugin URL',
27
+ 'load-plugin.label': 'Load Plugin',
28
+ 'loading.label': 'Loading...',
29
+ 'filter.label': 'Filter plugins',
30
+ 'filter.placeholder': 'Filter…',
31
+ 'registry.loading.label': 'Loading registry plugins…',
32
+ 'registry.error.label': 'Failed to load registry plugins: {{message}}',
33
+ 'registry.empty.label': 'No registry plugins available.',
34
+ 'dev-plugin.section.title': 'Dev plugin',
35
+ 'dev-plugin.description':
36
+ 'Load a plugin from a local Vite dev server (the `composerPlugin` defaults to port 3967). Composer reattaches it on every reload, surviving HMR — useful when iterating on a community plugin against a live registry version.',
37
+ 'dev-plugin.url.label': 'Manifest URL',
38
+ 'dev-plugin.url.description':
39
+ 'Defaults to the local dev server. Edit if your dev server runs on a different port.',
40
+ 'dev-plugin.toggle.label': 'Dev plugin',
41
+ 'dev-plugin.toggle.description':
42
+ 'Stays on across reloads. If the dev server is offline at boot, a warning is logged and the next reload retries.',
43
+ 'dev-plugin.enable.label': 'Enable',
44
+ 'dev-plugin.disable.label': 'Disable',
45
+ 'dev-plugin.busy.label': 'Loading…',
46
+ 'dev-plugin.not-loaded.message':
47
+ 'Dev plugin is enabled but not currently loaded. Check that the dev server is running, then reload.',
48
+ 'coming-soon.label': 'Coming soon!',
49
+ 'open-plugin-registry.label': 'Open plugin registry',
50
+ 'install.label': 'Install',
51
+ 'installing.label': 'Installing…',
52
+ 'uninstall.label': 'Uninstall',
53
+ 'update.label': 'Update',
54
+ 'updating.label': 'Updating…',
55
+ 'versions.label': 'Versions',
56
+ 'installed.label': 'installed',
57
+ 'install-version.label': 'Install version',
58
+ 'failure-badge.label': 'Plugin failure details',
59
+ 'failure-title.label': 'Plugin {{phase}} failed: {{reason}}',
60
+ 'failure-phase-load.label': 'load',
61
+ 'failure-phase-activation.label': 'activation',
62
+ 'failure-reason-timeout.label': 'timed out',
63
+ 'failure-reason-error.label': 'error',
25
64
  },
26
65
  },
27
66
  },
28
- ];
67
+ ] as const satisfies Resource[];
package/src/types.ts CHANGED
@@ -2,12 +2,48 @@
2
2
  // Copyright 2025 DXOS.org
3
3
  //
4
4
 
5
- import { Schema } from 'effect';
5
+ import { type Atom } from '@effect-atom/atom-react';
6
+ import * as Schema from 'effect/Schema';
7
+
8
+ import { Capability } from '@dxos/app-framework';
6
9
 
7
10
  export const RegistrySettingsSchema = Schema.mutable(
8
11
  Schema.Struct({
9
12
  experimental: Schema.optional(Schema.Boolean),
13
+ /**
14
+ * Manifest URL for a plugin served by a local Vite dev server. The
15
+ * registry settings panel pre-fills this with `localhost:3967`; authors
16
+ * iterating on a different port can edit it.
17
+ */
18
+ devPluginUrl: Schema.optional(Schema.String),
19
+ /**
20
+ * When true, the registry plugin attempts to load `devPluginUrl` on every
21
+ * app boot. Failures (dev server offline, manifest 404) are logged and
22
+ * the flag stays on so the next boot retries — the user explicitly turns
23
+ * it off when they're done iterating.
24
+ */
25
+ devPluginEnabled: Schema.optional(Schema.Boolean),
10
26
  }),
11
27
  );
12
28
 
13
29
  export type RegistrySettings = Schema.Schema.Type<typeof RegistrySettingsSchema>;
30
+
31
+ /**
32
+ * Per-plugin capabilities exposed by `@dxos/plugin-registry`.
33
+ */
34
+ export namespace RegistryCapabilities {
35
+ export const Settings = Capability.make<Atom.Writable<RegistrySettings>>('@dxos/plugin-registry/settings');
36
+ }
37
+
38
+ export const RegistryTagType = Schema.Literal(
39
+ 'new',
40
+ 'beta',
41
+ 'labs',
42
+ 'popular',
43
+ 'featured',
44
+ 'experimental',
45
+ 'registry',
46
+ 'local',
47
+ );
48
+
49
+ export type RegistryTagType = Schema.Schema.Type<typeof RegistryTagType>;
@@ -1,161 +0,0 @@
1
- import {
2
- REGISTRY_ID,
3
- REGISTRY_KEY,
4
- REGISTRY_PLUGIN
5
- } from "./chunk-ISC56E5F.mjs";
6
-
7
- // packages/plugins/plugin-registry/src/capabilities/app-graph-builder.ts
8
- import { Rx } from "@effect-rx/rx-react";
9
- import { Option, pipe } from "effect";
10
- import { Capabilities, contributes, createIntent, SettingsAction } from "@dxos/app-framework";
11
- import { createExtension } from "@dxos/plugin-graph";
12
- var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBuilder, [
13
- createExtension({
14
- id: REGISTRY_PLUGIN,
15
- actions: (node) => Rx.make((get) => pipe(get(node), Option.flatMap((node2) => node2.id === "root" ? Option.some(node2) : Option.none()), Option.map((node2) => [
16
- {
17
- id: REGISTRY_PLUGIN,
18
- data: async () => {
19
- const { dispatchPromise: dispatch } = context.getCapability(Capabilities.IntentDispatcher);
20
- await dispatch(createIntent(SettingsAction.OpenPluginRegistry));
21
- },
22
- properties: {
23
- label: [
24
- "open plugin registry label",
25
- {
26
- ns: REGISTRY_PLUGIN
27
- }
28
- ],
29
- icon: "ph--squares-four--regular",
30
- disposition: "menu"
31
- }
32
- }
33
- ]), Option.getOrElse(() => [])))
34
- }),
35
- createExtension({
36
- id: REGISTRY_PLUGIN,
37
- connector: (node) => Rx.make((get) => pipe(get(node), Option.flatMap((node2) => node2.id === "root" ? Option.some(node2) : Option.none()), Option.map((node2) => [
38
- {
39
- id: REGISTRY_ID,
40
- type: REGISTRY_PLUGIN,
41
- properties: {
42
- label: [
43
- "plugin registry label",
44
- {
45
- ns: REGISTRY_PLUGIN
46
- }
47
- ],
48
- icon: "ph--squares-four--regular",
49
- disposition: "pin-end",
50
- testId: "treeView.pluginRegistry"
51
- },
52
- nodes: [
53
- {
54
- id: `${REGISTRY_KEY}+all`,
55
- type: "category",
56
- data: `${REGISTRY_KEY}+all`,
57
- properties: {
58
- label: [
59
- "all plugins label",
60
- {
61
- ns: REGISTRY_PLUGIN
62
- }
63
- ],
64
- icon: "ph--squares-four--regular",
65
- key: REGISTRY_KEY,
66
- testId: "pluginRegistry.all"
67
- }
68
- },
69
- {
70
- id: `${REGISTRY_KEY}+installed`,
71
- type: "category",
72
- data: `${REGISTRY_KEY}+installed`,
73
- properties: {
74
- label: [
75
- "installed plugins label",
76
- {
77
- ns: REGISTRY_PLUGIN
78
- }
79
- ],
80
- icon: "ph--check--regular",
81
- key: REGISTRY_KEY,
82
- testId: "pluginRegistry.installed"
83
- }
84
- },
85
- {
86
- id: `${REGISTRY_KEY}+recommended`,
87
- type: "category",
88
- data: `${REGISTRY_KEY}+recommended`,
89
- properties: {
90
- label: [
91
- "recommended plugins label",
92
- {
93
- ns: REGISTRY_PLUGIN
94
- }
95
- ],
96
- icon: "ph--star--regular",
97
- key: REGISTRY_KEY,
98
- testId: "pluginRegistry.recommended"
99
- }
100
- },
101
- {
102
- id: `${REGISTRY_KEY}+labs`,
103
- type: "category",
104
- data: `${REGISTRY_KEY}+labs`,
105
- properties: {
106
- label: [
107
- "labs plugins label",
108
- {
109
- ns: REGISTRY_PLUGIN
110
- }
111
- ],
112
- icon: "ph--flask--regular",
113
- key: REGISTRY_KEY,
114
- testId: "pluginRegistry.labs"
115
- }
116
- }
117
- ]
118
- }
119
- ]), Option.getOrElse(() => [])))
120
- }),
121
- createExtension({
122
- id: `${REGISTRY_PLUGIN}/actions`,
123
- actions: (node) => Rx.make((get) => pipe(get(node), Option.flatMap((node2) => node2.id === REGISTRY_ID ? Option.some(node2) : Option.none()), Option.map(() => [
124
- {
125
- id: `${REGISTRY_PLUGIN}/load-by-url`,
126
- data: async () => {
127
- },
128
- properties: {
129
- label: [
130
- "load by url label",
131
- {
132
- ns: REGISTRY_PLUGIN
133
- }
134
- ],
135
- icon: "ph--cloud-arrow-down--regular",
136
- disabled: true
137
- }
138
- }
139
- ]), Option.getOrElse(() => [])))
140
- }),
141
- createExtension({
142
- id: `${REGISTRY_PLUGIN}/plugins`,
143
- connector: (node) => Rx.make((get) => pipe(get(node), Option.flatMap((node2) => node2.id === REGISTRY_ID ? Option.some(node2) : Option.none()), Option.map(() => {
144
- const manager = context.getCapability(Capabilities.PluginManager);
145
- return manager.plugins.map((plugin) => ({
146
- id: plugin.meta.id.replaceAll("/", ":"),
147
- type: "dxos.org/plugin",
148
- data: plugin,
149
- properties: {
150
- label: plugin.meta.name ?? plugin.meta.id,
151
- icon: plugin.meta.icon ?? "ph--circle--regular",
152
- disposition: "hidden"
153
- }
154
- }));
155
- }), Option.getOrElse(() => [])))
156
- })
157
- ]);
158
- export {
159
- app_graph_builder_default as default
160
- };
161
- //# sourceMappingURL=app-graph-builder-J5YHAGNI.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/capabilities/app-graph-builder.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Rx } from '@effect-rx/rx-react';\nimport { Option, pipe } from 'effect';\n\nimport { Capabilities, contributes, createIntent, SettingsAction, type PluginContext } from '@dxos/app-framework';\nimport { createExtension } from '@dxos/plugin-graph';\n\nimport { REGISTRY_ID, REGISTRY_KEY, REGISTRY_PLUGIN } from '../meta';\n\nexport default (context: PluginContext) =>\n contributes(Capabilities.AppGraphBuilder, [\n createExtension({\n id: REGISTRY_PLUGIN,\n actions: (node) =>\n Rx.make((get) =>\n pipe(\n get(node),\n Option.flatMap((node) => (node.id === 'root' ? Option.some(node) : Option.none())),\n Option.map((node) => [\n {\n id: REGISTRY_PLUGIN,\n data: async () => {\n const { dispatchPromise: dispatch } = context.getCapability(Capabilities.IntentDispatcher);\n await dispatch(createIntent(SettingsAction.OpenPluginRegistry));\n },\n properties: {\n label: ['open plugin registry label', { ns: REGISTRY_PLUGIN }],\n icon: 'ph--squares-four--regular',\n disposition: 'menu',\n },\n },\n ]),\n Option.getOrElse(() => []),\n ),\n ),\n }),\n createExtension({\n id: REGISTRY_PLUGIN,\n connector: (node) =>\n Rx.make((get) =>\n pipe(\n get(node),\n Option.flatMap((node) => (node.id === 'root' ? Option.some(node) : Option.none())),\n Option.map((node) => [\n {\n id: REGISTRY_ID,\n type: REGISTRY_PLUGIN,\n properties: {\n label: ['plugin registry label', { ns: REGISTRY_PLUGIN }],\n icon: 'ph--squares-four--regular',\n disposition: 'pin-end',\n testId: 'treeView.pluginRegistry',\n },\n nodes: [\n {\n id: `${REGISTRY_KEY}+all`,\n type: 'category',\n data: `${REGISTRY_KEY}+all`,\n properties: {\n label: ['all plugins label', { ns: REGISTRY_PLUGIN }],\n icon: 'ph--squares-four--regular',\n key: REGISTRY_KEY,\n testId: 'pluginRegistry.all',\n },\n },\n {\n id: `${REGISTRY_KEY}+installed`,\n type: 'category',\n data: `${REGISTRY_KEY}+installed`,\n properties: {\n label: ['installed plugins label', { ns: REGISTRY_PLUGIN }],\n icon: 'ph--check--regular',\n key: REGISTRY_KEY,\n testId: 'pluginRegistry.installed',\n },\n },\n {\n id: `${REGISTRY_KEY}+recommended`,\n type: 'category',\n data: `${REGISTRY_KEY}+recommended`,\n properties: {\n label: ['recommended plugins label', { ns: REGISTRY_PLUGIN }],\n icon: 'ph--star--regular',\n key: REGISTRY_KEY,\n testId: 'pluginRegistry.recommended',\n },\n },\n {\n id: `${REGISTRY_KEY}+labs`,\n type: 'category',\n data: `${REGISTRY_KEY}+labs`,\n properties: {\n label: ['labs plugins label', { ns: REGISTRY_PLUGIN }],\n icon: 'ph--flask--regular',\n key: REGISTRY_KEY,\n testId: 'pluginRegistry.labs',\n },\n },\n ],\n },\n ]),\n Option.getOrElse(() => []),\n ),\n ),\n }),\n createExtension({\n id: `${REGISTRY_PLUGIN}/actions`,\n actions: (node) =>\n Rx.make((get) =>\n pipe(\n get(node),\n Option.flatMap((node) => (node.id === REGISTRY_ID ? Option.some(node) : Option.none())),\n Option.map(() => [\n {\n id: `${REGISTRY_PLUGIN}/load-by-url`,\n data: async () => {},\n properties: {\n label: ['load by url label', { ns: REGISTRY_PLUGIN }],\n icon: 'ph--cloud-arrow-down--regular',\n disabled: true,\n },\n },\n ]),\n Option.getOrElse(() => []),\n ),\n ),\n }),\n createExtension({\n id: `${REGISTRY_PLUGIN}/plugins`,\n connector: (node) =>\n Rx.make((get) =>\n pipe(\n get(node),\n Option.flatMap((node) => (node.id === REGISTRY_ID ? Option.some(node) : Option.none())),\n Option.map(() => {\n const manager = context.getCapability(Capabilities.PluginManager);\n return manager.plugins.map((plugin) => ({\n id: plugin.meta.id.replaceAll('/', ':'),\n type: 'dxos.org/plugin',\n data: plugin,\n properties: {\n label: plugin.meta.name ?? plugin.meta.id,\n icon: plugin.meta.icon ?? 'ph--circle--regular',\n disposition: 'hidden',\n },\n }));\n }),\n Option.getOrElse(() => []),\n ),\n ),\n }),\n ]);\n"],
5
- "mappings": "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",
6
- "names": ["Rx", "Option", "pipe", "Capabilities", "contributes", "createIntent", "SettingsAction", "createExtension", "context", "contributes", "Capabilities", "AppGraphBuilder", "createExtension", "id", "REGISTRY_PLUGIN", "actions", "node", "Rx", "make", "get", "pipe", "Option", "flatMap", "some", "none", "map", "data", "dispatchPromise", "dispatch", "getCapability", "IntentDispatcher", "createIntent", "SettingsAction", "OpenPluginRegistry", "properties", "label", "ns", "icon", "disposition", "getOrElse", "connector", "REGISTRY_ID", "type", "testId", "nodes", "REGISTRY_KEY", "key", "disabled", "manager", "PluginManager", "plugins", "plugin", "meta", "replaceAll", "name"]
7
- }
@@ -1,16 +0,0 @@
1
- // packages/plugins/plugin-registry/src/meta.ts
2
- var REGISTRY_PLUGIN = "dxos.org/plugin/registry";
3
- var REGISTRY_ID = "!dxos:plugin-registry";
4
- var REGISTRY_KEY = "plugin-registry";
5
- var meta = {
6
- id: REGISTRY_PLUGIN,
7
- name: "Plugins"
8
- };
9
-
10
- export {
11
- REGISTRY_PLUGIN,
12
- REGISTRY_ID,
13
- REGISTRY_KEY,
14
- meta
15
- };
16
- //# sourceMappingURL=chunk-ISC56E5F.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/meta.ts"],
4
- "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type PluginMeta } from '@dxos/app-framework';\n\nexport const REGISTRY_PLUGIN = 'dxos.org/plugin/registry';\n\n// TODO(wittjosiah): Deck does not currently support `/` in ids.\n// TODO(wittjosiah): This is a hack to prevent the previous deck from being set for pinned items.\n// Ideally this should be worked into the data model in a generic way.\nexport const REGISTRY_ID = '!dxos:plugin-registry';\nexport const REGISTRY_KEY = 'plugin-registry';\n\nexport const meta: PluginMeta = {\n id: REGISTRY_PLUGIN,\n name: 'Plugins',\n};\n"],
5
- "mappings": ";AAMO,IAAMA,kBAAkB;AAKxB,IAAMC,cAAc;AACpB,IAAMC,eAAe;AAErB,IAAMC,OAAmB;EAC9BC,IAAIJ;EACJK,MAAM;AACR;",
6
- "names": ["REGISTRY_PLUGIN", "REGISTRY_ID", "REGISTRY_KEY", "meta", "id", "name"]
7
- }