@dxos/plugin-registry 0.8.4-main.84f28bd → 0.8.4-main.8baae0fced
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.
- package/LICENSE +102 -5
- package/dist/lib/neutral/RegistryPlugin.mjs +27 -0
- package/dist/lib/neutral/RegistryPlugin.mjs.map +7 -0
- package/dist/lib/neutral/RegistryPlugin.node.mjs +153 -0
- package/dist/lib/neutral/RegistryPlugin.node.mjs.map +7 -0
- package/dist/lib/neutral/RegistryPlugin.workerd.mjs +10 -0
- package/dist/lib/neutral/RegistryPlugin.workerd.mjs.map +7 -0
- package/dist/lib/neutral/chunk-MYLRMFLY.mjs +34 -0
- package/dist/lib/neutral/chunk-MYLRMFLY.mjs.map +7 -0
- package/dist/lib/neutral/chunk-XK2JMH3H.mjs +33 -0
- package/dist/lib/neutral/chunk-XK2JMH3H.mjs.map +7 -0
- package/dist/lib/neutral/index.mjs +25 -0
- package/dist/lib/neutral/index.mjs.map +7 -0
- package/dist/lib/neutral/meta.json +1 -0
- package/dist/lib/neutral/open-plugin-registry-II735N76.mjs +15 -0
- package/dist/lib/neutral/open-plugin-registry-II735N76.mjs.map +7 -0
- package/dist/lib/neutral/plugin.mjs +18 -0
- package/dist/lib/neutral/plugin.mjs.map +7 -0
- package/dist/lib/neutral/translations.mjs +70 -0
- package/dist/lib/neutral/translations.mjs.map +7 -0
- package/dist/types/src/RegistryPlugin.d.ts +3 -1
- package/dist/types/src/RegistryPlugin.d.ts.map +1 -1
- package/dist/types/src/RegistryPlugin.node.d.ts +4 -0
- package/dist/types/src/RegistryPlugin.node.d.ts.map +1 -0
- package/dist/types/src/RegistryPlugin.test.d.ts +2 -0
- package/dist/types/src/RegistryPlugin.test.d.ts.map +1 -0
- package/dist/types/src/RegistryPlugin.workerd.d.ts +4 -0
- package/dist/types/src/RegistryPlugin.workerd.d.ts.map +1 -0
- package/dist/types/src/capabilities/app-graph-builder.d.ts +4 -2
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
- package/dist/types/src/capabilities/dev-plugin-loader.d.ts +11 -0
- package/dist/types/src/capabilities/dev-plugin-loader.d.ts.map +1 -0
- package/dist/types/src/capabilities/index.d.ts +15 -3
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/operation-handler.d.ts +6 -0
- package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface.d.ts +3 -2
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
- package/dist/types/src/capabilities/settings.d.ts +14 -0
- package/dist/types/src/capabilities/settings.d.ts.map +1 -0
- package/dist/types/src/commands/disable.d.ts +11 -0
- package/dist/types/src/commands/disable.d.ts.map +1 -0
- package/dist/types/src/commands/enable.d.ts +11 -0
- package/dist/types/src/commands/enable.d.ts.map +1 -0
- package/dist/types/src/commands/index.d.ts +3 -0
- package/dist/types/src/commands/index.d.ts.map +1 -0
- package/dist/types/src/commands/list.d.ts +7 -0
- package/dist/types/src/commands/list.d.ts.map +1 -0
- package/dist/types/src/commands/util.d.ts +11 -0
- package/dist/types/src/commands/util.d.ts.map +1 -0
- package/dist/types/src/components/DisableDependentsAlert/DisableDependentsAlert.d.ts +24 -0
- package/dist/types/src/components/DisableDependentsAlert/DisableDependentsAlert.d.ts.map +1 -0
- package/dist/types/src/components/DisableDependentsAlert/index.d.ts +2 -0
- package/dist/types/src/components/DisableDependentsAlert/index.d.ts.map +1 -0
- package/dist/types/src/components/PluginDetail/PluginDetail.d.ts +82 -0
- package/dist/types/src/components/PluginDetail/PluginDetail.d.ts.map +1 -0
- package/dist/types/src/components/PluginDetail/PluginDetail.stories.d.ts +77 -0
- package/dist/types/src/components/PluginDetail/PluginDetail.stories.d.ts.map +1 -0
- package/dist/types/src/components/PluginDetail/index.d.ts +2 -0
- package/dist/types/src/components/PluginDetail/index.d.ts.map +1 -0
- package/dist/types/src/components/PluginFailureBadge/PluginFailureBadge.d.ts +20 -0
- package/dist/types/src/components/PluginFailureBadge/PluginFailureBadge.d.ts.map +1 -0
- package/dist/types/src/components/PluginFailureBadge/index.d.ts +2 -0
- package/dist/types/src/components/PluginFailureBadge/index.d.ts.map +1 -0
- package/dist/types/src/components/PluginList/PluginItem.d.ts +40 -0
- package/dist/types/src/components/PluginList/PluginItem.d.ts.map +1 -0
- package/dist/types/src/components/PluginList/PluginList.d.ts +23 -0
- package/dist/types/src/components/PluginList/PluginList.d.ts.map +1 -0
- package/dist/types/src/components/PluginList/PluginList.stories.d.ts +76 -0
- package/dist/types/src/components/PluginList/PluginList.stories.d.ts.map +1 -0
- package/dist/types/src/components/PluginList/index.d.ts +2 -0
- package/dist/types/src/components/PluginList/index.d.ts.map +1 -0
- package/dist/types/src/components/RegistrySettings/RegistrySettings.d.ts +18 -0
- package/dist/types/src/components/RegistrySettings/RegistrySettings.d.ts.map +1 -0
- package/dist/types/src/components/RegistrySettings/index.d.ts +2 -0
- package/dist/types/src/components/RegistrySettings/index.d.ts.map +1 -0
- package/dist/types/src/components/index.d.ts +3 -1
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/containers/BaseRegistryArticle/BaseRegistryArticle.d.ts +20 -0
- package/dist/types/src/containers/BaseRegistryArticle/BaseRegistryArticle.d.ts.map +1 -0
- package/dist/types/src/containers/BaseRegistryArticle/index.d.ts +2 -0
- package/dist/types/src/containers/BaseRegistryArticle/index.d.ts.map +1 -0
- package/dist/types/src/containers/LoadPluginDialog/LoadPluginDialog.d.ts +4 -0
- package/dist/types/src/containers/LoadPluginDialog/LoadPluginDialog.d.ts.map +1 -0
- package/dist/types/src/containers/LoadPluginDialog/index.d.ts +2 -0
- package/dist/types/src/containers/LoadPluginDialog/index.d.ts.map +1 -0
- package/dist/types/src/containers/PluginArticle/PluginArticle.d.ts +7 -0
- package/dist/types/src/containers/PluginArticle/PluginArticle.d.ts.map +1 -0
- package/dist/types/src/containers/PluginArticle/index.d.ts +2 -0
- package/dist/types/src/containers/PluginArticle/index.d.ts.map +1 -0
- package/dist/types/src/containers/PublicRegistryArticle/PublicRegistryArticle.d.ts +8 -0
- package/dist/types/src/containers/PublicRegistryArticle/PublicRegistryArticle.d.ts.map +1 -0
- package/dist/types/src/containers/PublicRegistryArticle/index.d.ts +2 -0
- package/dist/types/src/containers/PublicRegistryArticle/index.d.ts.map +1 -0
- package/dist/types/src/containers/RegistryArticle/RegistryArticle.d.ts +14 -0
- package/dist/types/src/containers/RegistryArticle/RegistryArticle.d.ts.map +1 -0
- package/dist/types/src/containers/RegistryArticle/index.d.ts +2 -0
- package/dist/types/src/containers/RegistryArticle/index.d.ts.map +1 -0
- package/dist/types/src/containers/RegistrySettingsContainer/RegistrySettingsContainer.d.ts +13 -0
- package/dist/types/src/containers/RegistrySettingsContainer/RegistrySettingsContainer.d.ts.map +1 -0
- package/dist/types/src/containers/RegistrySettingsContainer/index.d.ts +2 -0
- package/dist/types/src/containers/RegistrySettingsContainer/index.d.ts.map +1 -0
- package/dist/types/src/containers/index.d.ts +8 -0
- package/dist/types/src/containers/index.d.ts.map +1 -0
- package/dist/types/src/hooks/index.d.ts +9 -0
- package/dist/types/src/hooks/index.d.ts.map +1 -0
- package/dist/types/src/hooks/useAutoTags.d.ts +20 -0
- package/dist/types/src/hooks/useAutoTags.d.ts.map +1 -0
- package/dist/types/src/hooks/useCatalogEntry.d.ts +11 -0
- package/dist/types/src/hooks/useCatalogEntry.d.ts.map +1 -0
- package/dist/types/src/hooks/useDisableConfirmation.d.ts +19 -0
- package/dist/types/src/hooks/useDisableConfirmation.d.ts.map +1 -0
- package/dist/types/src/hooks/useInstalledVersionTag.d.ts +18 -0
- package/dist/types/src/hooks/useInstalledVersionTag.d.ts.map +1 -0
- package/dist/types/src/hooks/usePluginActions.d.ts +36 -0
- package/dist/types/src/hooks/usePluginActions.d.ts.map +1 -0
- package/dist/types/src/hooks/useRegistryPlugins.d.ts +15 -0
- package/dist/types/src/hooks/useRegistryPlugins.d.ts.map +1 -0
- package/dist/types/src/hooks/useUpdateAvailable.d.ts +18 -0
- package/dist/types/src/hooks/useUpdateAvailable.d.ts.map +1 -0
- package/dist/types/src/hooks/useVersionPicker.d.ts +21 -0
- package/dist/types/src/hooks/useVersionPicker.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +1 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +20 -4
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/operations/index.d.ts +3 -0
- package/dist/types/src/operations/index.d.ts.map +1 -0
- package/dist/types/src/operations/open-plugin-registry.d.ts +5 -0
- package/dist/types/src/operations/open-plugin-registry.d.ts.map +1 -0
- package/dist/types/src/plugin.d.ts +4 -0
- package/dist/types/src/plugin.d.ts.map +1 -0
- package/dist/types/src/storage.d.ts +18 -0
- package/dist/types/src/storage.d.ts.map +1 -0
- package/dist/types/src/translations.d.ts +57 -16
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types.d.ts +32 -1
- package/dist/types/src/types.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +77 -38
- package/src/RegistryPlugin.node.ts +19 -0
- package/src/RegistryPlugin.test.ts +24 -0
- package/src/RegistryPlugin.tsx +20 -27
- package/src/RegistryPlugin.workerd.ts +11 -0
- package/src/capabilities/app-graph-builder.ts +180 -135
- package/src/capabilities/dev-plugin-loader.ts +39 -0
- package/src/capabilities/index.ts +10 -4
- package/src/capabilities/operation-handler.ts +16 -0
- package/src/capabilities/react-surface.tsx +133 -78
- package/src/capabilities/settings.ts +34 -0
- package/src/commands/disable.ts +47 -0
- package/src/commands/enable.ts +44 -0
- package/src/commands/index.ts +14 -0
- package/src/commands/list.ts +41 -0
- package/src/commands/util.ts +24 -0
- package/src/components/DisableDependentsAlert/DisableDependentsAlert.tsx +69 -0
- package/src/components/DisableDependentsAlert/index.ts +5 -0
- package/src/components/PluginDetail/PluginDetail.stories.tsx +45 -0
- package/src/components/PluginDetail/PluginDetail.tsx +339 -0
- package/src/components/PluginDetail/index.ts +5 -0
- package/src/components/PluginFailureBadge/PluginFailureBadge.tsx +68 -0
- package/src/components/PluginFailureBadge/index.ts +5 -0
- package/src/components/PluginList/PluginItem.tsx +226 -0
- package/src/components/PluginList/PluginList.stories.tsx +87 -0
- package/src/components/PluginList/PluginList.tsx +52 -0
- package/src/components/PluginList/index.ts +5 -0
- package/src/components/RegistrySettings/RegistrySettings.tsx +120 -0
- package/src/components/RegistrySettings/index.ts +5 -0
- package/src/components/index.ts +3 -1
- package/src/containers/BaseRegistryArticle/BaseRegistryArticle.tsx +178 -0
- package/src/containers/BaseRegistryArticle/index.ts +5 -0
- package/src/containers/LoadPluginDialog/LoadPluginDialog.tsx +87 -0
- package/src/containers/LoadPluginDialog/index.ts +5 -0
- package/src/containers/PluginArticle/PluginArticle.tsx +117 -0
- package/src/containers/PluginArticle/index.ts +5 -0
- package/src/containers/PublicRegistryArticle/PublicRegistryArticle.tsx +192 -0
- package/src/containers/PublicRegistryArticle/index.ts +5 -0
- package/src/containers/RegistryArticle/RegistryArticle.tsx +53 -0
- package/src/containers/RegistryArticle/index.ts +5 -0
- package/src/containers/RegistrySettingsContainer/RegistrySettingsContainer.tsx +59 -0
- package/src/containers/RegistrySettingsContainer/index.ts +5 -0
- package/src/containers/index.ts +12 -0
- package/src/hooks/index.ts +12 -0
- package/src/hooks/useAutoTags.ts +51 -0
- package/src/hooks/useCatalogEntry.ts +25 -0
- package/src/hooks/useDisableConfirmation.ts +58 -0
- package/src/hooks/useInstalledVersionTag.ts +41 -0
- package/src/hooks/usePluginActions.ts +174 -0
- package/src/hooks/useRegistryPlugins.ts +29 -0
- package/src/hooks/useUpdateAvailable.ts +31 -0
- package/src/hooks/useVersionPicker.ts +112 -0
- package/src/index.ts +1 -1
- package/src/meta.ts +37 -9
- package/src/operations/index.ts +7 -0
- package/src/operations/open-plugin-registry.ts +21 -0
- package/src/plugin.ts +11 -0
- package/src/storage.ts +50 -0
- package/src/translations.ts +62 -15
- package/src/types.ts +37 -1
- package/dist/lib/browser/app-graph-builder-LKQBQDUA.mjs +0 -161
- package/dist/lib/browser/app-graph-builder-LKQBQDUA.mjs.map +0 -7
- package/dist/lib/browser/chunk-AEBASNOI.mjs +0 -16
- package/dist/lib/browser/chunk-AEBASNOI.mjs.map +0 -7
- package/dist/lib/browser/index.mjs +0 -71
- package/dist/lib/browser/index.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-W67CIJI3.mjs +0 -23
- package/dist/lib/browser/intent-resolver-W67CIJI3.mjs.map +0 -7
- package/dist/lib/browser/meta.json +0 -1
- package/dist/lib/browser/react-surface-SRFVJQKE.mjs +0 -335
- package/dist/lib/browser/react-surface-SRFVJQKE.mjs.map +0 -7
- package/dist/lib/node-esm/app-graph-builder-N44OGVQA.mjs +0 -162
- package/dist/lib/node-esm/app-graph-builder-N44OGVQA.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-R3GXMWPJ.mjs +0 -18
- package/dist/lib/node-esm/chunk-R3GXMWPJ.mjs.map +0 -7
- package/dist/lib/node-esm/index.mjs +0 -72
- package/dist/lib/node-esm/index.mjs.map +0 -7
- package/dist/lib/node-esm/intent-resolver-M2CBVUVQ.mjs +0 -24
- package/dist/lib/node-esm/intent-resolver-M2CBVUVQ.mjs.map +0 -7
- package/dist/lib/node-esm/meta.json +0 -1
- package/dist/lib/node-esm/react-surface-5XAG2EYX.mjs +0 -336
- package/dist/lib/node-esm/react-surface-5XAG2EYX.mjs.map +0 -7
- package/dist/types/src/capabilities/intent-resolver.d.ts +0 -4
- package/dist/types/src/capabilities/intent-resolver.d.ts.map +0 -1
- package/dist/types/src/components/Icon.stories.d.ts +0 -6
- package/dist/types/src/components/Icon.stories.d.ts.map +0 -1
- package/dist/types/src/components/PluginDetail.d.ts +0 -9
- package/dist/types/src/components/PluginDetail.d.ts.map +0 -1
- package/dist/types/src/components/PluginDetail.stories.d.ts +0 -8
- package/dist/types/src/components/PluginDetail.stories.d.ts.map +0 -1
- package/dist/types/src/components/PluginItem.d.ts +0 -13
- package/dist/types/src/components/PluginItem.d.ts.map +0 -1
- package/dist/types/src/components/PluginList.d.ts +0 -8
- package/dist/types/src/components/PluginList.d.ts.map +0 -1
- package/dist/types/src/components/PluginList.stories.d.ts +0 -11
- package/dist/types/src/components/PluginList.stories.d.ts.map +0 -1
- package/dist/types/src/components/RegistryContainer.d.ts +0 -7
- package/dist/types/src/components/RegistryContainer.d.ts.map +0 -1
- package/src/capabilities/intent-resolver.ts +0 -27
- package/src/components/Icon.stories.tsx +0 -107
- package/src/components/PluginDetail.stories.tsx +0 -45
- package/src/components/PluginDetail.tsx +0 -63
- package/src/components/PluginItem.tsx +0 -119
- package/src/components/PluginList.stories.tsx +0 -82
- package/src/components/PluginList.tsx +0 -26
- 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.
|
|
3
|
+
"version": "0.8.4-main.8baae0fced",
|
|
4
4
|
"description": "Braneframe plugin gallery",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
7
|
-
"
|
|
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
|
".": {
|
|
37
|
+
"source": "./src/index.ts",
|
|
13
38
|
"types": "./dist/types/src/index.d.ts",
|
|
14
|
-
"
|
|
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"
|
|
15
50
|
}
|
|
16
51
|
},
|
|
17
52
|
"types": "dist/types/src/index.d.ts",
|
|
18
|
-
"typesVersions": {
|
|
19
|
-
"*": {}
|
|
20
|
-
},
|
|
21
53
|
"files": [
|
|
22
54
|
"dist",
|
|
23
55
|
"src"
|
|
24
56
|
],
|
|
25
57
|
"dependencies": {
|
|
26
|
-
"@
|
|
27
|
-
"@
|
|
28
|
-
"
|
|
29
|
-
"@dxos/
|
|
30
|
-
"@dxos/
|
|
31
|
-
"@dxos/
|
|
32
|
-
"@dxos/
|
|
33
|
-
"@dxos/
|
|
34
|
-
"@dxos/
|
|
35
|
-
"@dxos/
|
|
36
|
-
"@dxos/
|
|
58
|
+
"@effect-atom/atom-react": "^0.5.0",
|
|
59
|
+
"@effect/cli": "0.73.2",
|
|
60
|
+
"yaml": "^2.8.2",
|
|
61
|
+
"@dxos/app-framework": "0.8.4-main.8baae0fced",
|
|
62
|
+
"@dxos/cli-util": "0.8.4-main.8baae0fced",
|
|
63
|
+
"@dxos/client-protocol": "0.8.4-main.8baae0fced",
|
|
64
|
+
"@dxos/app-toolkit": "0.8.4-main.8baae0fced",
|
|
65
|
+
"@dxos/context": "0.8.4-main.8baae0fced",
|
|
66
|
+
"@dxos/compute": "0.8.4-main.8baae0fced",
|
|
67
|
+
"@dxos/echo": "0.8.4-main.8baae0fced",
|
|
68
|
+
"@dxos/effect": "0.8.4-main.8baae0fced",
|
|
69
|
+
"@dxos/invariant": "0.8.4-main.8baae0fced",
|
|
70
|
+
"@dxos/log": "0.8.4-main.8baae0fced",
|
|
71
|
+
"@dxos/plugin-graph": "0.8.4-main.8baae0fced",
|
|
72
|
+
"@dxos/plugin-observability": "0.8.4-main.8baae0fced",
|
|
73
|
+
"@dxos/react-ui-form": "0.8.4-main.8baae0fced",
|
|
74
|
+
"@dxos/react-ui-mosaic": "0.8.4-main.8baae0fced",
|
|
75
|
+
"@dxos/react-ui-stack": "0.8.4-main.8baae0fced",
|
|
76
|
+
"@dxos/util": "0.8.4-main.8baae0fced"
|
|
37
77
|
},
|
|
38
78
|
"devDependencies": {
|
|
39
|
-
"@effect-
|
|
40
|
-
"@effect/platform": "0.
|
|
41
|
-
"@
|
|
42
|
-
"@types/react": "~
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"react": "~
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"@dxos/random": "0.8.4-main.
|
|
49
|
-
"@dxos/react-ui": "0.8.4-main.
|
|
50
|
-
"@dxos/
|
|
51
|
-
"@dxos/
|
|
79
|
+
"@effect-atom/atom-react": "^0.5.0",
|
|
80
|
+
"@effect/platform": "0.94.4",
|
|
81
|
+
"@types/react": "~19.2.7",
|
|
82
|
+
"@types/react-dom": "~19.2.3",
|
|
83
|
+
"effect": "3.20.0",
|
|
84
|
+
"react": "~19.2.3",
|
|
85
|
+
"react-dom": "~19.2.3",
|
|
86
|
+
"vite": "^8.0.13",
|
|
87
|
+
"@dxos/plugin-testing": "0.8.4-main.8baae0fced",
|
|
88
|
+
"@dxos/random": "0.8.4-main.8baae0fced",
|
|
89
|
+
"@dxos/react-ui": "0.8.4-main.8baae0fced",
|
|
90
|
+
"@dxos/storybook-utils": "0.8.4-main.8baae0fced",
|
|
91
|
+
"@dxos/ui-theme": "0.8.4-main.8baae0fced"
|
|
52
92
|
},
|
|
53
93
|
"peerDependencies": {
|
|
54
|
-
"@effect-
|
|
55
|
-
"@effect/platform": "
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"react": "~
|
|
59
|
-
"react-
|
|
60
|
-
"@dxos/
|
|
61
|
-
"@dxos/react-ui-theme": "0.8.4-main.84f28bd"
|
|
94
|
+
"@effect-atom/atom-react": "^0.5.0",
|
|
95
|
+
"@effect/platform": "0.94.4",
|
|
96
|
+
"effect": "3.20.0",
|
|
97
|
+
"react": "~19.2.3",
|
|
98
|
+
"react-dom": "~19.2.3",
|
|
99
|
+
"@dxos/react-ui": "0.8.4-main.8baae0fced",
|
|
100
|
+
"@dxos/ui-theme": "0.8.4-main.8baae0fced"
|
|
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
|
+
});
|
package/src/RegistryPlugin.tsx
CHANGED
|
@@ -2,32 +2,25 @@
|
|
|
2
2
|
// Copyright 2023 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import { ActivationEvents, Plugin } from '@dxos/app-framework';
|
|
6
|
+
import { AppPlugin } from '@dxos/app-toolkit';
|
|
6
7
|
|
|
7
|
-
import { AppGraphBuilder,
|
|
8
|
-
import { meta } from '
|
|
9
|
-
import { translations } from '
|
|
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
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
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;
|
|
@@ -2,154 +2,199 @@
|
|
|
2
2
|
// Copyright 2025 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import
|
|
6
|
-
import { Option, pipe } from 'effect';
|
|
5
|
+
import * as Effect from 'effect/Effect';
|
|
7
6
|
|
|
8
|
-
import { Capabilities,
|
|
9
|
-
import {
|
|
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';
|
|
10
11
|
|
|
11
|
-
import { REGISTRY_ID, REGISTRY_KEY,
|
|
12
|
+
import { REGISTRY_ID, REGISTRY_KEY, registryCategoryId, meta } from '#meta';
|
|
12
13
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
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',
|
|
34
56
|
},
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
{
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
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: 'first',
|
|
73
|
+
testId: 'treeView.pluginRegistry',
|
|
74
|
+
},
|
|
75
|
+
nodes: [
|
|
76
|
+
Node.make({
|
|
77
|
+
id: registryCategoryId('bundled'),
|
|
78
|
+
type: 'category',
|
|
79
|
+
data: registryCategoryId('bundled'),
|
|
80
|
+
properties: {
|
|
81
|
+
label: ['bundled-plugins.label', { ns: meta.id }],
|
|
82
|
+
icon: 'ph--squares-four--regular',
|
|
83
|
+
key: REGISTRY_KEY,
|
|
84
|
+
testId: 'pluginRegistry.bundled',
|
|
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',
|
|
68
96
|
},
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
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',
|
|
79
107
|
},
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
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',
|
|
90
118
|
},
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
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',
|
|
101
129
|
},
|
|
102
|
-
|
|
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',
|
|
103
152
|
},
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
disabled: true,
|
|
124
|
-
},
|
|
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',
|
|
125
172
|
},
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
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',
|
|
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',
|
|
143
184
|
data: plugin,
|
|
144
185
|
properties: {
|
|
145
186
|
label: plugin.meta.name ?? plugin.meta.id,
|
|
146
187
|
icon: plugin.meta.icon ?? 'ph--circle--regular',
|
|
147
188
|
disposition: 'hidden',
|
|
148
189
|
},
|
|
149
|
-
})
|
|
150
|
-
})
|
|
151
|
-
|
|
152
|
-
)
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
190
|
+
});
|
|
191
|
+
});
|
|
192
|
+
|
|
193
|
+
return Effect.succeed([...installedNodes, ...registryNodes]);
|
|
194
|
+
},
|
|
195
|
+
}),
|
|
196
|
+
]);
|
|
197
|
+
|
|
198
|
+
return Capability.contributes(AppCapabilities.AppGraphBuilder, extensions);
|
|
199
|
+
}),
|
|
200
|
+
);
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2026 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import * as Effect from 'effect/Effect';
|
|
6
|
+
|
|
7
|
+
import { Capabilities, Capability } from '@dxos/app-framework';
|
|
8
|
+
import { log } from '@dxos/log';
|
|
9
|
+
|
|
10
|
+
import { RegistryCapabilities } from '../types';
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Startup module that auto-loads a locally-served dev plugin when the user has
|
|
14
|
+
* the toggle enabled in registry settings. Failures (dev server offline, 404,
|
|
15
|
+
* timeout) are logged and swallowed so a stale dev URL never blocks app boot —
|
|
16
|
+
* the toggle stays on, the next reload retries.
|
|
17
|
+
*/
|
|
18
|
+
export default Capability.makeModule(
|
|
19
|
+
Effect.fnUntraced(function* () {
|
|
20
|
+
const manager = yield* Capability.get(Capabilities.PluginManager);
|
|
21
|
+
const registry = yield* Capability.get(Capabilities.AtomRegistry);
|
|
22
|
+
const settingsAtom = yield* Capability.get(RegistryCapabilities.Settings);
|
|
23
|
+
|
|
24
|
+
const settings = registry.get(settingsAtom);
|
|
25
|
+
const url = settings.devPluginUrl?.trim();
|
|
26
|
+
if (!settings.devPluginEnabled || !url) {
|
|
27
|
+
return [];
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
log.info('loading dev plugin from registry settings', { url });
|
|
31
|
+
yield* manager.add(url).pipe(
|
|
32
|
+
Effect.flatMap((plugin) => manager.enable(plugin.meta.id)),
|
|
33
|
+
Effect.tapError((error) => Effect.sync(() => log.warn('dev plugin auto-load failed', { url, error }))),
|
|
34
|
+
Effect.ignore,
|
|
35
|
+
);
|
|
36
|
+
|
|
37
|
+
return [];
|
|
38
|
+
}),
|
|
39
|
+
);
|
|
@@ -2,8 +2,14 @@
|
|
|
2
2
|
// Copyright 2025 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import { Capability } from '@dxos/app-framework';
|
|
6
|
+
import { OperationHandlerSet } from '@dxos/compute';
|
|
6
7
|
|
|
7
|
-
export const AppGraphBuilder = lazy(() => import('./app-graph-builder'));
|
|
8
|
-
export const
|
|
9
|
-
export const
|
|
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'));
|