@dxos/plugin-registry 0.8.4-main.b97322e → 0.8.4-main.bc674ce

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 (120) hide show
  1. package/dist/lib/browser/app-graph-builder-P3ZGGFAR.mjs +166 -0
  2. package/dist/lib/browser/app-graph-builder-P3ZGGFAR.mjs.map +7 -0
  3. package/dist/lib/browser/chunk-VOAOTNGS.mjs +19 -0
  4. package/dist/lib/browser/chunk-VOAOTNGS.mjs.map +7 -0
  5. package/dist/lib/browser/cli/index.mjs +223 -0
  6. package/dist/lib/browser/cli/index.mjs.map +7 -0
  7. package/dist/lib/browser/index.mjs +22 -31
  8. package/dist/lib/browser/index.mjs.map +4 -4
  9. package/dist/lib/browser/meta.json +1 -1
  10. package/dist/lib/browser/operation-resolver-P5PKLPRT.mjs +24 -0
  11. package/dist/lib/browser/operation-resolver-P5PKLPRT.mjs.map +7 -0
  12. package/dist/lib/browser/react-surface-IIM6T7IA.mjs +337 -0
  13. package/dist/lib/browser/react-surface-IIM6T7IA.mjs.map +7 -0
  14. package/dist/lib/node-esm/app-graph-builder-56JXLOGZ.mjs +167 -0
  15. package/dist/lib/node-esm/app-graph-builder-56JXLOGZ.mjs.map +7 -0
  16. package/dist/lib/node-esm/chunk-SALMIZ2W.mjs +21 -0
  17. package/dist/lib/node-esm/chunk-SALMIZ2W.mjs.map +7 -0
  18. package/dist/lib/node-esm/cli/index.mjs +224 -0
  19. package/dist/lib/node-esm/cli/index.mjs.map +7 -0
  20. package/dist/lib/node-esm/index.mjs +63 -0
  21. package/dist/lib/node-esm/index.mjs.map +7 -0
  22. package/dist/lib/node-esm/meta.json +1 -0
  23. package/dist/lib/node-esm/operation-resolver-3ZB5W3T3.mjs +25 -0
  24. package/dist/lib/node-esm/operation-resolver-3ZB5W3T3.mjs.map +7 -0
  25. package/dist/lib/node-esm/react-surface-F67P7RC3.mjs +338 -0
  26. package/dist/lib/node-esm/react-surface-F67P7RC3.mjs.map +7 -0
  27. package/dist/types/src/RegistryPlugin.d.ts +2 -1
  28. package/dist/types/src/RegistryPlugin.d.ts.map +1 -1
  29. package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts +6 -0
  30. package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts.map +1 -0
  31. package/dist/types/src/capabilities/app-graph-builder/index.d.ts +3 -0
  32. package/dist/types/src/capabilities/app-graph-builder/index.d.ts.map +1 -0
  33. package/dist/types/src/capabilities/index.d.ts +3 -3
  34. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  35. package/dist/types/src/capabilities/operation-resolver/index.d.ts +3 -0
  36. package/dist/types/src/capabilities/operation-resolver/index.d.ts.map +1 -0
  37. package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts +5 -0
  38. package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts.map +1 -0
  39. package/dist/types/src/capabilities/react-surface/index.d.ts +3 -0
  40. package/dist/types/src/capabilities/react-surface/index.d.ts.map +1 -0
  41. package/dist/types/src/capabilities/react-surface/react-surface.d.ts +5 -0
  42. package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +1 -0
  43. package/dist/types/src/cli/commands/disable.d.ts +11 -0
  44. package/dist/types/src/cli/commands/disable.d.ts.map +1 -0
  45. package/dist/types/src/cli/commands/enable.d.ts +11 -0
  46. package/dist/types/src/cli/commands/enable.d.ts.map +1 -0
  47. package/dist/types/src/cli/commands/index.d.ts +3 -0
  48. package/dist/types/src/cli/commands/index.d.ts.map +1 -0
  49. package/dist/types/src/cli/commands/list.d.ts +7 -0
  50. package/dist/types/src/cli/commands/list.d.ts.map +1 -0
  51. package/dist/types/src/cli/commands/util.d.ts +11 -0
  52. package/dist/types/src/cli/commands/util.d.ts.map +1 -0
  53. package/dist/types/src/cli/index.d.ts +3 -0
  54. package/dist/types/src/cli/index.d.ts.map +1 -0
  55. package/dist/types/src/cli/plugin.d.ts +3 -0
  56. package/dist/types/src/cli/plugin.d.ts.map +1 -0
  57. package/dist/types/src/cli/storage.d.ts +18 -0
  58. package/dist/types/src/cli/storage.d.ts.map +1 -0
  59. package/dist/types/src/components/PluginDetail.d.ts +3 -3
  60. package/dist/types/src/components/PluginDetail.d.ts.map +1 -1
  61. package/dist/types/src/components/PluginDetail.stories.d.ts +29 -5
  62. package/dist/types/src/components/PluginDetail.stories.d.ts.map +1 -1
  63. package/dist/types/src/components/PluginItem.d.ts +2 -2
  64. package/dist/types/src/components/PluginItem.d.ts.map +1 -1
  65. package/dist/types/src/components/PluginList.d.ts +1 -1
  66. package/dist/types/src/components/PluginList.d.ts.map +1 -1
  67. package/dist/types/src/components/PluginList.stories.d.ts +31 -8
  68. package/dist/types/src/components/PluginList.stories.d.ts.map +1 -1
  69. package/dist/types/src/components/RegistryContainer.d.ts +4 -3
  70. package/dist/types/src/components/RegistryContainer.d.ts.map +1 -1
  71. package/dist/types/src/meta.d.ts +2 -3
  72. package/dist/types/src/meta.d.ts.map +1 -1
  73. package/dist/types/src/types.d.ts +3 -1
  74. package/dist/types/src/types.d.ts.map +1 -1
  75. package/dist/types/tsconfig.tsbuildinfo +1 -1
  76. package/package.json +49 -34
  77. package/src/RegistryPlugin.tsx +9 -25
  78. package/src/capabilities/app-graph-builder/app-graph-builder.ts +136 -0
  79. package/src/capabilities/app-graph-builder/index.ts +7 -0
  80. package/src/capabilities/index.ts +3 -5
  81. package/src/capabilities/operation-resolver/index.ts +7 -0
  82. package/src/capabilities/operation-resolver/operation-resolver.ts +23 -0
  83. package/src/capabilities/react-surface/index.ts +7 -0
  84. package/src/capabilities/react-surface/react-surface.tsx +99 -0
  85. package/src/cli/commands/disable.ts +47 -0
  86. package/src/cli/commands/enable.ts +44 -0
  87. package/src/cli/commands/index.ts +14 -0
  88. package/src/cli/commands/list.ts +41 -0
  89. package/src/cli/commands/util.ts +24 -0
  90. package/src/cli/index.ts +6 -0
  91. package/src/cli/plugin.ts +16 -0
  92. package/src/cli/storage.ts +57 -0
  93. package/src/components/PluginDetail.stories.tsx +21 -23
  94. package/src/components/PluginDetail.tsx +55 -39
  95. package/src/components/PluginItem.tsx +55 -54
  96. package/src/components/PluginList.stories.tsx +32 -37
  97. package/src/components/PluginList.tsx +3 -5
  98. package/src/components/RegistryContainer.tsx +43 -44
  99. package/src/meta.ts +8 -5
  100. package/src/types.ts +5 -1
  101. package/dist/lib/browser/app-graph-builder-LKQBQDUA.mjs +0 -161
  102. package/dist/lib/browser/app-graph-builder-LKQBQDUA.mjs.map +0 -7
  103. package/dist/lib/browser/chunk-AEBASNOI.mjs +0 -16
  104. package/dist/lib/browser/chunk-AEBASNOI.mjs.map +0 -7
  105. package/dist/lib/browser/intent-resolver-W67CIJI3.mjs +0 -23
  106. package/dist/lib/browser/intent-resolver-W67CIJI3.mjs.map +0 -7
  107. package/dist/lib/browser/react-surface-3GNB7AOY.mjs +0 -333
  108. package/dist/lib/browser/react-surface-3GNB7AOY.mjs.map +0 -7
  109. package/dist/types/src/capabilities/app-graph-builder.d.ts +0 -4
  110. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +0 -1
  111. package/dist/types/src/capabilities/intent-resolver.d.ts +0 -4
  112. package/dist/types/src/capabilities/intent-resolver.d.ts.map +0 -1
  113. package/dist/types/src/capabilities/react-surface.d.ts +0 -4
  114. package/dist/types/src/capabilities/react-surface.d.ts.map +0 -1
  115. package/dist/types/src/components/Icon.stories.d.ts +0 -6
  116. package/dist/types/src/components/Icon.stories.d.ts.map +0 -1
  117. package/src/capabilities/app-graph-builder.ts +0 -155
  118. package/src/capabilities/intent-resolver.ts +0 -27
  119. package/src/capabilities/react-surface.tsx +0 -90
  120. package/src/components/Icon.stories.tsx +0 -108
@@ -0,0 +1,25 @@
1
+ import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
+ import {
3
+ REGISTRY_ID
4
+ } from "./chunk-SALMIZ2W.mjs";
5
+
6
+ // src/capabilities/operation-resolver/operation-resolver.ts
7
+ import * as Effect from "effect/Effect";
8
+ import { Capability, Common, SettingsOperation } from "@dxos/app-framework";
9
+ import { Operation, OperationResolver } from "@dxos/operation";
10
+ var operation_resolver_default = Capability.makeModule(Effect.fnUntraced(function* () {
11
+ return Capability.contributes(Common.Capability.OperationResolver, [
12
+ OperationResolver.make({
13
+ operation: SettingsOperation.OpenPluginRegistry,
14
+ handler: Effect.fnUntraced(function* () {
15
+ yield* Operation.invoke(Common.LayoutOperation.SwitchWorkspace, {
16
+ subject: REGISTRY_ID
17
+ });
18
+ })
19
+ })
20
+ ]);
21
+ }));
22
+ export {
23
+ operation_resolver_default as default
24
+ };
25
+ //# sourceMappingURL=operation-resolver-3ZB5W3T3.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/capabilities/operation-resolver/operation-resolver.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capability, Common, SettingsOperation } from '@dxos/app-framework';\nimport { Operation, OperationResolver } from '@dxos/operation';\n\nimport { REGISTRY_ID } from '../../meta';\n\nexport default Capability.makeModule(\n Effect.fnUntraced(function* () {\n return Capability.contributes(Common.Capability.OperationResolver, [\n OperationResolver.make({\n operation: SettingsOperation.OpenPluginRegistry,\n handler: Effect.fnUntraced(function* () {\n yield* Operation.invoke(Common.LayoutOperation.SwitchWorkspace, { subject: REGISTRY_ID });\n }),\n }),\n ]);\n }),\n);\n"],
5
+ "mappings": ";;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,YAAYC,QAAQC,yBAAyB;AACtD,SAASC,WAAWC,yBAAyB;AAI7C,IAAA,6BAAeC,WAAWC,WACjBC,kBAAW,aAAA;AAChB,SAAOF,WAAWG,YAAYC,OAAOJ,WAAWK,mBAAmB;IACjEA,kBAAkBC,KAAK;MACrBC,WAAWC,kBAAkBC;MAC7BC,SAAgBR,kBAAW,aAAA;AACzB,eAAOS,UAAUC,OAAOR,OAAOS,gBAAgBC,iBAAiB;UAAEC,SAASC;QAAY,CAAA;MACzF,CAAA;IACF,CAAA;GACD;AACH,CAAA,CAAA;",
6
+ "names": ["Effect", "Capability", "Common", "SettingsOperation", "Operation", "OperationResolver", "Capability", "makeModule", "fnUntraced", "contributes", "Common", "OperationResolver", "make", "operation", "SettingsOperation", "OpenPluginRegistry", "handler", "Operation", "invoke", "LayoutOperation", "SwitchWorkspace", "subject", "REGISTRY_ID"]
7
+ }
@@ -0,0 +1,338 @@
1
+ import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
+ import {
3
+ REGISTRY_KEY,
4
+ meta
5
+ } from "./chunk-SALMIZ2W.mjs";
6
+
7
+ // src/capabilities/react-surface/react-surface.tsx
8
+ import * as Effect2 from "effect/Effect";
9
+ import React5, { useCallback as useCallback3, useMemo as useMemo2 } from "react";
10
+ import { Capability, Common as Common2, Plugin } from "@dxos/app-framework";
11
+ import { usePluginManager as usePluginManager2 } from "@dxos/app-framework/react";
12
+ import { runAndForwardErrors as runAndForwardErrors2 } from "@dxos/effect";
13
+
14
+ // src/components/PluginDetail.tsx
15
+ import React from "react";
16
+ import { Icon, Input, Link, useTranslation } from "@dxos/react-ui";
17
+ import { Layout } from "@dxos/react-ui-mosaic";
18
+ import { getStyles, mx } from "@dxos/ui-theme";
19
+ var PluginDetail = ({ plugin, enabled, onEnabledChange }) => {
20
+ const { t } = useTranslation(meta.id);
21
+ const { id, name, description, homePage, source, screenshots, icon = "ph--circle--regular", iconHue = "neutral" } = plugin.meta;
22
+ const styles = getStyles(iconHue);
23
+ return /* @__PURE__ */ React.createElement(Layout.Container, {
24
+ scrollable: true
25
+ }, /* @__PURE__ */ React.createElement("div", {
26
+ role: "none",
27
+ className: "grid grid-cols-[min-content_1fr] gap-4 container-max-width p-4"
28
+ }, /* @__PURE__ */ React.createElement("div", {
29
+ role: "none"
30
+ }, /* @__PURE__ */ React.createElement(Icon, {
31
+ classNames: mx("p-1 rounded", styles.bg, styles.icon),
32
+ icon,
33
+ size: 14
34
+ })), /* @__PURE__ */ React.createElement("div", {
35
+ role: "none",
36
+ className: "flex flex-col gap-6"
37
+ }, /* @__PURE__ */ React.createElement("div", {
38
+ role: "none",
39
+ className: "grid grid-cols-[1fr_min-content] gap-x-3 is-full pbs-1"
40
+ }, /* @__PURE__ */ React.createElement("h2", {
41
+ className: "text-xl"
42
+ }, name), /* @__PURE__ */ React.createElement(Input.Root, null, /* @__PURE__ */ React.createElement(Input.Switch, {
43
+ classNames: "self-center",
44
+ checked: enabled,
45
+ onCheckedChange: onEnabledChange
46
+ })), /* @__PURE__ */ React.createElement("p", {
47
+ className: "pbs-0.5 text-sm text-description"
48
+ }, id)), /* @__PURE__ */ React.createElement("div", {
49
+ role: "none"
50
+ }, /* @__PURE__ */ React.createElement("p", {
51
+ className: "text-description"
52
+ }, description)), screenshots && screenshots.length > 0 && /* @__PURE__ */ React.createElement("div", {
53
+ role: "none",
54
+ className: "flex flex-col gap-2"
55
+ }, /* @__PURE__ */ React.createElement("h2", null, "Preview"), /* @__PURE__ */ React.createElement("img", {
56
+ src: screenshots[0],
57
+ alt: name,
58
+ className: "aspect-video object-fit"
59
+ })), /* @__PURE__ */ React.createElement("div", {
60
+ role: "none",
61
+ className: "flex flex-col gap-2"
62
+ }, /* @__PURE__ */ React.createElement("h2", null, "Resources"), /* @__PURE__ */ React.createElement("div", {
63
+ className: "flex gap-2"
64
+ }, homePage && /* @__PURE__ */ React.createElement(Link, {
65
+ href: homePage,
66
+ target: "_blank",
67
+ rel: "noreferrer",
68
+ classNames: "text-sm text-description"
69
+ }, t("home page label"), /* @__PURE__ */ React.createElement(Icon, {
70
+ icon: "ph--arrow-square-out--bold",
71
+ size: 3,
72
+ classNames: "inline-block leading-none mli-1"
73
+ })), source && /* @__PURE__ */ React.createElement(Link, {
74
+ href: source,
75
+ target: "_blank",
76
+ rel: "noreferrer",
77
+ classNames: "text-sm text-description"
78
+ }, t("source label"), /* @__PURE__ */ React.createElement(Icon, {
79
+ icon: "ph--arrow-square-out--bold",
80
+ size: 3,
81
+ classNames: "inline-block leading-none mli-1"
82
+ })))))));
83
+ };
84
+
85
+ // src/components/PluginList.tsx
86
+ import React3 from "react";
87
+ import { List } from "@dxos/react-ui";
88
+
89
+ // src/components/PluginItem.tsx
90
+ import React2, { useCallback } from "react";
91
+ import { Icon as Icon2, IconButton, Input as Input2, Link as Link2, ListItem, Tag, useTranslation as useTranslation2 } from "@dxos/react-ui";
92
+ import { descriptionText, mx as mx2 } from "@dxos/ui-theme";
93
+ import { getStyles as getStyles2 } from "@dxos/ui-theme";
94
+ var PluginItem = ({ plugin, enabled = [], onClick, onChange, hasSettings: hasSettingsProp, onSettings }) => {
95
+ const { t } = useTranslation2(meta.id);
96
+ const { id, name, description, tags, icon = "ph--circle--regular", iconHue = "neutral" } = plugin.meta;
97
+ const isEnabled = enabled.includes(id);
98
+ const inputId = `${id}-input`;
99
+ const labelId = `${id}-label`;
100
+ const descriptionId = `${id}-description`;
101
+ const handleClick = useCallback(() => onClick?.(id), [
102
+ id,
103
+ onClick
104
+ ]);
105
+ const handleChange = useCallback((event) => {
106
+ event.stopPropagation();
107
+ onChange?.(id, !isEnabled);
108
+ }, [
109
+ id,
110
+ isEnabled,
111
+ onChange
112
+ ]);
113
+ const hasSettings = hasSettingsProp?.(id) ?? false;
114
+ const handleSettings = useCallback(() => onSettings?.(id), [
115
+ id,
116
+ onSettings
117
+ ]);
118
+ const styles = getStyles2(iconHue);
119
+ const gridCols = "grid grid-cols-[5rem_1fr]";
120
+ const gridRows = "grid grid-rows-[40px_1fr_min-content_40px]";
121
+ return /* @__PURE__ */ React2.createElement(ListItem.Root, {
122
+ key: id,
123
+ labelId,
124
+ "data-testid": `pluginList.${id}`,
125
+ "aria-describedby": descriptionId,
126
+ classNames: mx2(gridCols, "bs-[12rem] is-full gap-3 pie-2 border border-separator rounded-md overflow-hidden")
127
+ }, /* @__PURE__ */ React2.createElement("div", {
128
+ className: mx2(gridRows, "justify-center rounded-l-md", styles.bg)
129
+ }, /* @__PURE__ */ React2.createElement("div", null), /* @__PURE__ */ React2.createElement(Icon2, {
130
+ classNames: mx2("cursor-pointer", styles.icon),
131
+ icon,
132
+ size: 14,
133
+ onClick: handleClick
134
+ })), /* @__PURE__ */ React2.createElement("div", {
135
+ className: mx2(gridRows)
136
+ }, /* @__PURE__ */ React2.createElement("div", {
137
+ className: "flex items-center overflow-hidden cursor-pointer",
138
+ onClick: handleClick
139
+ }, /* @__PURE__ */ React2.createElement("span", {
140
+ className: "text-lg truncate"
141
+ }, name ?? id)), /* @__PURE__ */ React2.createElement("div", null, /* @__PURE__ */ React2.createElement("p", {
142
+ className: mx2(descriptionText, "line-clamp-4 min-is-0")
143
+ }, description)), /* @__PURE__ */ React2.createElement("div", {
144
+ className: "flex -mis-0.5 overflow-x-auto scrollbar-none"
145
+ }, tags?.map((tag) => /* @__PURE__ */ React2.createElement(Tag, {
146
+ key: tag,
147
+ palette: tagColors[tag],
148
+ classNames: "text-xs uppercase font-thin"
149
+ }, tag))), /* @__PURE__ */ React2.createElement("div", {
150
+ className: "flex gap-2 items-center text-sm"
151
+ }, /* @__PURE__ */ React2.createElement(IconButton, {
152
+ "aria-describedby": descriptionId,
153
+ classNames: "cursor-pointer",
154
+ icon: "ph--gear--regular",
155
+ label: t("settings label"),
156
+ iconOnly: true,
157
+ size: 4,
158
+ onClick: handleSettings,
159
+ disabled: !hasSettings
160
+ }), /* @__PURE__ */ React2.createElement(Link2, {
161
+ "aria-describedby": descriptionId,
162
+ classNames: "text-description cursor-pointer",
163
+ onClick: handleClick
164
+ }, t("details label")), /* @__PURE__ */ React2.createElement("div", {
165
+ className: "grow"
166
+ }), /* @__PURE__ */ React2.createElement("div", {
167
+ className: "pie-1"
168
+ }, /* @__PURE__ */ React2.createElement(Input2.Root, {
169
+ id: inputId
170
+ }, /* @__PURE__ */ React2.createElement(Input2.Switch, {
171
+ classNames: "self-center",
172
+ checked: isEnabled,
173
+ onClick: handleChange
174
+ }))))));
175
+ };
176
+ var tagColors = {
177
+ new: "rose",
178
+ beta: "teal",
179
+ labs: "blue",
180
+ popular: "green",
181
+ featured: "pink",
182
+ experimental: "amber"
183
+ };
184
+
185
+ // src/components/PluginList.tsx
186
+ var PluginList = ({ plugins = [], ...props }) => {
187
+ return /* @__PURE__ */ React3.createElement(List, {
188
+ classNames: "grid grid-cols-[repeat(auto-fill,minmax(18rem,1fr))] auto-rows-[max-content] gap-4 p-4"
189
+ }, plugins.map((plugin) => /* @__PURE__ */ React3.createElement(PluginItem, {
190
+ key: plugin.meta.id,
191
+ plugin,
192
+ ...props
193
+ })));
194
+ };
195
+
196
+ // src/components/RegistryContainer.tsx
197
+ import { useAtomValue } from "@effect-atom/atom-react";
198
+ import * as Effect from "effect/Effect";
199
+ import React4, { useCallback as useCallback2, useMemo } from "react";
200
+ import { Common, SettingsOperation } from "@dxos/app-framework";
201
+ import { useCapabilities, useOperationInvoker, usePluginManager } from "@dxos/app-framework/react";
202
+ import { runAndForwardErrors } from "@dxos/effect";
203
+ import { ObservabilityOperation } from "@dxos/plugin-observability/types";
204
+ import { Layout as Layout2 } from "@dxos/react-ui-mosaic";
205
+ var sortByPluginMeta = ({ meta: { name: a = "" } }, { meta: { name: b = "" } }) => a.localeCompare(b);
206
+ var RegistryContainer = ({ id, plugins: pluginsProp }) => {
207
+ const manager = usePluginManager();
208
+ const { invoke, invokePromise } = useOperationInvoker();
209
+ const plugins = useMemo(() => pluginsProp.sort(sortByPluginMeta), [
210
+ pluginsProp
211
+ ]);
212
+ const enabled = useAtomValue(manager.enabled);
213
+ const allSettings = useCapabilities(Common.Capability.Settings);
214
+ const handleChange = useCallback2((id2, enabled2) => Effect.gen(function* () {
215
+ if (enabled2) {
216
+ yield* manager.enable(id2);
217
+ } else {
218
+ yield* manager.disable(id2);
219
+ }
220
+ yield* invoke(ObservabilityOperation.SendEvent, {
221
+ name: "plugins.toggle",
222
+ properties: {
223
+ plugin: id2,
224
+ enabled: enabled2
225
+ }
226
+ });
227
+ }).pipe(runAndForwardErrors), [
228
+ invoke,
229
+ manager
230
+ ]);
231
+ const handleClick = useCallback2((pluginId) => invokePromise(Common.LayoutOperation.Open, {
232
+ // TODO(wittjosiah): `/` currently is not supported in ids.
233
+ subject: [
234
+ pluginId.replaceAll("/", ":")
235
+ ],
236
+ pivotId: id,
237
+ positioning: "end"
238
+ }), [
239
+ invokePromise,
240
+ id
241
+ ]);
242
+ const hasSettings = useCallback2((pluginId) => allSettings.some((s) => s.prefix === pluginId), [
243
+ allSettings
244
+ ]);
245
+ const handleSettings = useCallback2((pluginId) => invokePromise(SettingsOperation.Open, {
246
+ plugin: pluginId
247
+ }), [
248
+ invokePromise
249
+ ]);
250
+ return /* @__PURE__ */ React4.createElement(Layout2.Container, {
251
+ scrollable: true
252
+ }, /* @__PURE__ */ React4.createElement(PluginList, {
253
+ plugins,
254
+ enabled,
255
+ onClick: handleClick,
256
+ onChange: handleChange,
257
+ hasSettings,
258
+ onSettings: handleSettings
259
+ }));
260
+ };
261
+
262
+ // src/capabilities/react-surface/react-surface.tsx
263
+ var react_surface_default = Capability.makeModule(() => Effect2.succeed(Capability.contributes(Common2.Capability.ReactSurface, [
264
+ Common2.createSurface({
265
+ id: `${meta.id}/all`,
266
+ role: "article",
267
+ filter: (data) => data.subject === `${REGISTRY_KEY}+all`,
268
+ component: () => {
269
+ const manager = usePluginManager2();
270
+ const filtered = useMemo2(() => manager.getPlugins().filter(({ meta: meta2 }) => !manager.getCore().includes(meta2.id)), []);
271
+ return /* @__PURE__ */ React5.createElement(RegistryContainer, {
272
+ id: `${REGISTRY_KEY}+all`,
273
+ plugins: filtered
274
+ });
275
+ }
276
+ }),
277
+ Common2.createSurface({
278
+ id: `${meta.id}/installed`,
279
+ role: "article",
280
+ filter: (data) => data.subject === `${REGISTRY_KEY}+installed`,
281
+ component: () => {
282
+ const manager = usePluginManager2();
283
+ const filtered = useMemo2(() => manager.getPlugins().filter(({ meta: meta2 }) => !manager.getCore().includes(meta2.id)).filter(({ meta: meta2 }) => manager.getEnabled().includes(meta2.id)), []);
284
+ return /* @__PURE__ */ React5.createElement(RegistryContainer, {
285
+ id: `${REGISTRY_KEY}+installed`,
286
+ plugins: filtered
287
+ });
288
+ }
289
+ }),
290
+ Common2.createSurface({
291
+ id: `${meta.id}/recommended`,
292
+ role: "article",
293
+ filter: (data) => data.subject === `${REGISTRY_KEY}+recommended`,
294
+ component: () => {
295
+ const manager = usePluginManager2();
296
+ const filtered = useMemo2(() => manager.getPlugins().filter(({ meta: meta2 }) => !manager.getCore().includes(meta2.id)).filter(({ meta: meta2 }) => !meta2.tags?.includes("labs")), []);
297
+ return /* @__PURE__ */ React5.createElement(RegistryContainer, {
298
+ id: `${REGISTRY_KEY}+recommended`,
299
+ plugins: filtered
300
+ });
301
+ }
302
+ }),
303
+ Common2.createSurface({
304
+ id: `${meta.id}/labs`,
305
+ role: "article",
306
+ filter: (data) => data.subject === `${REGISTRY_KEY}+labs`,
307
+ component: () => {
308
+ const manager = usePluginManager2();
309
+ const filtered = useMemo2(() => manager.getPlugins().filter(({ meta: meta2 }) => meta2.tags?.includes("labs")), []);
310
+ return /* @__PURE__ */ React5.createElement(RegistryContainer, {
311
+ id: `${REGISTRY_KEY}+labs`,
312
+ plugins: filtered
313
+ });
314
+ }
315
+ }),
316
+ Common2.createSurface({
317
+ id: `${meta.id}/plugin-details`,
318
+ role: "article",
319
+ filter: (data) => Plugin.isPlugin(data.subject),
320
+ component: ({ data: { subject } }) => {
321
+ const manager = usePluginManager2();
322
+ const enabled = manager.getEnabled().includes(subject.meta.id);
323
+ const handleEnableChange = useCallback3((enabled2) => enabled2 ? runAndForwardErrors2(manager.enable(subject.meta.id)) : runAndForwardErrors2(manager.disable(subject.meta.id)), [
324
+ manager,
325
+ subject.meta.id
326
+ ]);
327
+ return /* @__PURE__ */ React5.createElement(PluginDetail, {
328
+ plugin: subject,
329
+ enabled,
330
+ onEnabledChange: handleEnableChange
331
+ });
332
+ }
333
+ })
334
+ ])));
335
+ export {
336
+ react_surface_default as default
337
+ };
338
+ //# sourceMappingURL=react-surface-F67P7RC3.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/capabilities/react-surface/react-surface.tsx", "../../../src/components/PluginDetail.tsx", "../../../src/components/PluginList.tsx", "../../../src/components/PluginItem.tsx", "../../../src/components/RegistryContainer.tsx"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\nimport React, { useCallback, useMemo } from 'react';\n\nimport { Capability, Common, Plugin } from '@dxos/app-framework';\nimport { usePluginManager } from '@dxos/app-framework/react';\nimport { runAndForwardErrors } from '@dxos/effect';\n\nimport { PluginDetail, RegistryContainer } from '../../components';\nimport { REGISTRY_KEY, meta } from '../../meta';\n\nexport default Capability.makeModule(() =>\n Effect.succeed(\n Capability.contributes(Common.Capability.ReactSurface, [\n Common.createSurface({\n id: `${meta.id}/all`,\n role: 'article',\n filter: (data): data is any => data.subject === `${REGISTRY_KEY}+all`,\n component: () => {\n const manager = usePluginManager();\n const filtered = useMemo(\n () => manager.getPlugins().filter(({ meta }) => !manager.getCore().includes(meta.id)),\n [],\n );\n\n return <RegistryContainer id={`${REGISTRY_KEY}+all`} plugins={filtered} />;\n },\n }),\n Common.createSurface({\n id: `${meta.id}/installed`,\n role: 'article',\n filter: (data): data is any => data.subject === `${REGISTRY_KEY}+installed`,\n component: () => {\n const manager = usePluginManager();\n const filtered = useMemo(\n () =>\n manager\n .getPlugins()\n .filter(({ meta }) => !manager.getCore().includes(meta.id))\n .filter(({ meta }) => manager.getEnabled().includes(meta.id)),\n [],\n );\n\n return <RegistryContainer id={`${REGISTRY_KEY}+installed`} plugins={filtered} />;\n },\n }),\n Common.createSurface({\n id: `${meta.id}/recommended`,\n role: 'article',\n filter: (data): data is any => data.subject === `${REGISTRY_KEY}+recommended`,\n component: () => {\n const manager = usePluginManager();\n const filtered = useMemo(\n () =>\n manager\n .getPlugins()\n .filter(({ meta }) => !manager.getCore().includes(meta.id))\n .filter(({ meta }) => !meta.tags?.includes('labs')),\n [],\n );\n\n return <RegistryContainer id={`${REGISTRY_KEY}+recommended`} plugins={filtered} />;\n },\n }),\n Common.createSurface({\n id: `${meta.id}/labs`,\n role: 'article',\n filter: (data): data is any => data.subject === `${REGISTRY_KEY}+labs`,\n component: () => {\n const manager = usePluginManager();\n const filtered = useMemo(() => manager.getPlugins().filter(({ meta }) => meta.tags?.includes('labs')), []);\n\n return <RegistryContainer id={`${REGISTRY_KEY}+labs`} plugins={filtered} />;\n },\n }),\n Common.createSurface({\n id: `${meta.id}/plugin-details`,\n role: 'article',\n filter: (data): data is { subject: Plugin.Plugin } => Plugin.isPlugin(data.subject),\n component: ({ data: { subject } }) => {\n const manager = usePluginManager();\n const enabled = manager.getEnabled().includes(subject.meta.id);\n const handleEnableChange = useCallback(\n (enabled: boolean) =>\n enabled\n ? runAndForwardErrors(manager.enable(subject.meta.id))\n : runAndForwardErrors(manager.disable(subject.meta.id)),\n [manager, subject.meta.id],\n );\n\n return <PluginDetail plugin={subject} enabled={enabled} onEnabledChange={handleEnableChange} />;\n },\n }),\n ]),\n ),\n);\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport React from 'react';\n\nimport { type Plugin } from '@dxos/app-framework';\nimport { Icon, Input, Link, useTranslation } from '@dxos/react-ui';\nimport { Layout } from '@dxos/react-ui-mosaic';\nimport { getStyles, mx } from '@dxos/ui-theme';\n\nimport { meta } from '../meta';\n\nexport type PluginDetailProps = {\n plugin: Plugin.Plugin;\n enabled?: boolean;\n onEnabledChange?: (enabled: boolean) => void;\n};\n\nexport const PluginDetail = ({ plugin, enabled, onEnabledChange }: PluginDetailProps) => {\n const { t } = useTranslation(meta.id);\n const {\n id,\n name,\n description,\n homePage,\n source,\n screenshots,\n icon = 'ph--circle--regular',\n iconHue = 'neutral',\n } = plugin.meta;\n const styles = getStyles(iconHue);\n\n return (\n <Layout.Container scrollable>\n <div role='none' className='grid grid-cols-[min-content_1fr] gap-4 container-max-width p-4'>\n <div role='none'>\n <Icon classNames={mx('p-1 rounded', styles.bg, styles.icon)} icon={icon} size={14} />\n </div>\n <div role='none' className='flex flex-col gap-6'>\n <div role='none' className='grid grid-cols-[1fr_min-content] gap-x-3 is-full pbs-1'>\n <h2 className='text-xl'>{name}</h2>\n <Input.Root>\n <Input.Switch classNames='self-center' checked={enabled} onCheckedChange={onEnabledChange} />\n </Input.Root>\n <p className='pbs-0.5 text-sm text-description'>{id}</p>\n </div>\n <div role='none'>\n <p className='text-description'>{description}</p>\n </div>\n {screenshots && screenshots.length > 0 && (\n <div role='none' className='flex flex-col gap-2'>\n <h2>Preview</h2>\n <img src={screenshots[0]} alt={name} className='aspect-video object-fit' />\n </div>\n )}\n <div role='none' className='flex flex-col gap-2'>\n <h2>Resources</h2>\n <div className='flex gap-2'>\n {homePage && (\n <Link href={homePage} target='_blank' rel='noreferrer' classNames='text-sm text-description'>\n {t('home page label')}\n <Icon icon='ph--arrow-square-out--bold' size={3} classNames='inline-block leading-none mli-1' />\n </Link>\n )}\n\n {source && (\n <Link href={source} target='_blank' rel='noreferrer' classNames='text-sm text-description'>\n {t('source label')}\n <Icon icon='ph--arrow-square-out--bold' size={3} classNames='inline-block leading-none mli-1' />\n </Link>\n )}\n </div>\n </div>\n </div>\n </div>\n </Layout.Container>\n );\n};\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport React from 'react';\n\nimport { type Plugin } from '@dxos/app-framework';\nimport { List } from '@dxos/react-ui';\n\nimport { PluginItem, type PluginItemProps } from './PluginItem';\n\nexport type PluginListProps = Omit<PluginItemProps, 'plugin'> & {\n plugins?: readonly Plugin.Plugin[];\n};\n\nexport const PluginList = ({ plugins = [], ...props }: PluginListProps) => {\n return (\n <List classNames='grid grid-cols-[repeat(auto-fill,minmax(18rem,1fr))] auto-rows-[max-content] gap-4 p-4'>\n {plugins.map((plugin) => (\n <PluginItem key={plugin.meta.id} plugin={plugin} {...props} />\n ))}\n </List>\n );\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport React, { type MouseEvent, useCallback } from 'react';\n\nimport { type Plugin } from '@dxos/app-framework';\nimport { type ChromaticPalette, Icon, IconButton, Input, Link, ListItem, Tag, useTranslation } from '@dxos/react-ui';\nimport { descriptionText, mx } from '@dxos/ui-theme';\nimport { getStyles } from '@dxos/ui-theme';\n\nimport { meta } from '../meta';\nimport { type RegistryTagType } from '../types';\n\nexport type PluginItemProps = {\n plugin: Plugin.Plugin;\n installed?: readonly string[];\n enabled?: readonly string[];\n onClick?: (id: string) => void;\n onChange?: (id: string, enabled: boolean) => void;\n hasSettings?: (id: string) => boolean;\n onSettings?: (id: string) => void;\n};\n\nexport const PluginItem = ({\n plugin,\n enabled = [],\n onClick,\n onChange,\n hasSettings: hasSettingsProp,\n onSettings,\n}: PluginItemProps) => {\n const { t } = useTranslation(meta.id);\n const { id, name, description, tags, icon = 'ph--circle--regular', iconHue = 'neutral' } = plugin.meta;\n const isEnabled = enabled.includes(id);\n const inputId = `${id}-input`;\n const labelId = `${id}-label`;\n const descriptionId = `${id}-description`;\n const handleClick = useCallback(() => onClick?.(id), [id, onClick]);\n\n const handleChange = useCallback(\n (event: MouseEvent) => {\n event.stopPropagation();\n onChange?.(id, !isEnabled);\n },\n [id, isEnabled, onChange],\n );\n\n const hasSettings = hasSettingsProp?.(id) ?? false;\n const handleSettings = useCallback(() => onSettings?.(id), [id, onSettings]);\n const styles = getStyles(iconHue);\n const gridCols = 'grid grid-cols-[5rem_1fr]';\n const gridRows = 'grid grid-rows-[40px_1fr_min-content_40px]';\n\n return (\n <ListItem.Root\n key={id}\n labelId={labelId}\n data-testid={`pluginList.${id}`}\n aria-describedby={descriptionId}\n classNames={mx(gridCols, 'bs-[12rem] is-full gap-3 pie-2 border border-separator rounded-md overflow-hidden')}\n >\n <div className={mx(gridRows, 'justify-center rounded-l-md', styles.bg)}>\n <div />\n <Icon classNames={mx('cursor-pointer', styles.icon)} icon={icon} size={14} onClick={handleClick} />\n </div>\n\n <div className={mx(gridRows)}>\n <div className='flex items-center overflow-hidden cursor-pointer' onClick={handleClick}>\n <span className='text-lg truncate'>{name ?? id}</span>\n </div>\n\n <div>\n <p className={mx(descriptionText, 'line-clamp-4 min-is-0')}>{description}</p>\n </div>\n\n <div className='flex -mis-0.5 overflow-x-auto scrollbar-none'>\n {tags?.map((tag) => (\n <Tag key={tag} palette={tagColors[tag as RegistryTagType]} classNames='text-xs uppercase font-thin'>\n {tag}\n </Tag>\n ))}\n </div>\n\n <div className='flex gap-2 items-center text-sm'>\n <IconButton\n aria-describedby={descriptionId}\n classNames='cursor-pointer'\n icon='ph--gear--regular'\n label={t('settings label')}\n iconOnly\n size={4}\n onClick={handleSettings}\n disabled={!hasSettings}\n />\n\n <Link aria-describedby={descriptionId} classNames='text-description cursor-pointer' onClick={handleClick}>\n {t('details label')}\n </Link>\n\n <div className='grow' />\n <div className='pie-1'>\n <Input.Root id={inputId}>\n <Input.Switch classNames='self-center' checked={isEnabled} onClick={handleChange} />\n </Input.Root>\n </div>\n </div>\n </div>\n </ListItem.Root>\n );\n};\n\nconst tagColors: Record<RegistryTagType, ChromaticPalette> = {\n new: 'rose',\n beta: 'teal',\n labs: 'blue',\n popular: 'green',\n featured: 'pink',\n experimental: 'amber',\n};\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { useAtomValue } from '@effect-atom/atom-react';\nimport * as Effect from 'effect/Effect';\nimport React, { useCallback, useMemo } from 'react';\n\nimport { Common, type Plugin, SettingsOperation } from '@dxos/app-framework';\nimport { useCapabilities, useOperationInvoker, usePluginManager } from '@dxos/app-framework/react';\nimport { runAndForwardErrors } from '@dxos/effect';\nimport { ObservabilityOperation } from '@dxos/plugin-observability/types';\nimport { Layout } from '@dxos/react-ui-mosaic';\n\nimport { PluginList } from './PluginList';\n\nconst sortByPluginMeta = ({ meta: { name: a = '' } }: Plugin.Plugin, { meta: { name: b = '' } }: Plugin.Plugin) =>\n a.localeCompare(b);\n\nexport type RegistryContainerProps = {\n id: string;\n plugins: Plugin.Plugin[];\n};\n\nexport const RegistryContainer = ({ id, plugins: pluginsProp }: RegistryContainerProps) => {\n const manager = usePluginManager();\n const { invoke, invokePromise } = useOperationInvoker();\n const plugins = useMemo(() => pluginsProp.sort(sortByPluginMeta), [pluginsProp]);\n const enabled = useAtomValue(manager.enabled);\n const allSettings = useCapabilities(Common.Capability.Settings);\n\n // TODO(wittjosiah): Factor out to an intent?\n const handleChange = useCallback(\n (id: string, enabled: boolean) =>\n Effect.gen(function* () {\n if (enabled) {\n yield* manager.enable(id);\n } else {\n yield* manager.disable(id);\n }\n\n yield* invoke(ObservabilityOperation.SendEvent, {\n name: 'plugins.toggle',\n properties: {\n plugin: id,\n enabled,\n },\n });\n }).pipe(runAndForwardErrors),\n [invoke, manager],\n );\n\n const handleClick = useCallback(\n (pluginId: string) =>\n invokePromise(Common.LayoutOperation.Open, {\n // TODO(wittjosiah): `/` currently is not supported in ids.\n subject: [pluginId.replaceAll('/', ':')],\n pivotId: id,\n positioning: 'end',\n }),\n [invokePromise, id],\n );\n\n const hasSettings = useCallback((pluginId: string) => allSettings.some((s) => s.prefix === pluginId), [allSettings]);\n\n const handleSettings = useCallback(\n (pluginId: string) => invokePromise(SettingsOperation.Open, { plugin: pluginId }),\n [invokePromise],\n );\n\n return (\n <Layout.Container scrollable>\n <PluginList\n plugins={plugins}\n enabled={enabled}\n onClick={handleClick}\n onChange={handleChange}\n hasSettings={hasSettings}\n onSettings={handleSettings}\n />\n </Layout.Container>\n );\n};\n"],
5
+ "mappings": ";;;;;;;AAIA,YAAYA,aAAY;AACxB,OAAOC,UAASC,eAAAA,cAAaC,WAAAA,gBAAe;AAE5C,SAASC,YAAYC,UAAAA,SAAQC,cAAc;AAC3C,SAASC,oBAAAA,yBAAwB;AACjC,SAASC,uBAAAA,4BAA2B;;;ACLpC,OAAOC,WAAW;AAGlB,SAASC,MAAMC,OAAOC,MAAMC,sBAAsB;AAClD,SAASC,cAAc;AACvB,SAASC,WAAWC,UAAU;A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AAO,gBAAAe,OAAA,cAACa,cAAAA;QAAaC,QAAQxB;QAASiB;QAAkBQ,iBAAiBP;;IAC3E;EACF,CAAA;CACD,CAAA,CAAA;",
6
+ "names": ["Effect", "React", "useCallback", "useMemo", "Capability", "Common", "Plugin", "usePluginManager", "runAndForwardErrors", "React", "Icon", "Input", "Link", "useTranslation", "Layout", "getStyles", "mx", "PluginDetail", "plugin", "enabled", "onEnabledChange", "t", "useTranslation", "meta", "id", "name", "description", "homePage", "source", "screenshots", "icon", "iconHue", "styles", "getStyles", "Layout", "Container", "scrollable", "div", "role", "className", "Icon", "classNames", "mx", "bg", "size", "h2", "Input", "Root", "Switch", "checked", "onCheckedChange", "p", "length", "img", "src", "alt", "Link", "href", "target", "rel", "React", "List", "React", "useCallback", "Icon", "IconButton", "Input", "Link", "ListItem", "Tag", "useTranslation", "descriptionText", "mx", "getStyles", "PluginItem", "plugin", "enabled", "onClick", "onChange", "hasSettings", "hasSettingsProp", "onSettings", "t", "useTranslation", "meta", "id", "name", "description", "tags", "icon", "iconHue", "isEnabled", "includes", "inputId", "labelId", "descriptionId", "handleClick", "useCallback", "handleChange", "event", "stopPropagation", "handleSettings", "styles", "getStyles", "gridCols", "gridRows", "React", "ListItem", "Root", "key", "data-testid", "aria-describedby", "classNames", "mx", "div", "className", "bg", "Icon", "size", "span", "p", "descriptionText", "map", "tag", "Tag", "palette", "tagColors", "IconButton", "label", "iconOnly", "disabled", "Link", "Input", "Switch", "checked", "new", "beta", "labs", "popular", "featured", "experimental", "PluginList", "plugins", "props", "React", "List", "classNames", "map", "plugin", "PluginItem", "key", "meta", "id", "useAtomValue", "Effect", "React", "useCallback", "useMemo", "Common", "SettingsOperation", "useCapabilities", "useOperationInvoker", "usePluginManager", "runAndForwardErrors", "ObservabilityOperation", "Layout", "sortByPluginMeta", "meta", "name", "a", "b", "localeCompare", "RegistryContainer", "id", "plugins", "pluginsProp", "manager", "usePluginManager", "invoke", "invokePromise", "useOperationInvoker", "useMemo", "sort", "enabled", "useAtomValue", "allSettings", "useCapabilities", "Common", "Capability", "Settings", "handleChange", "useCallback", "gen", "enable", "disable", "ObservabilityOperation", "SendEvent", "properties", "plugin", "pipe", "runAndForwardErrors", "handleClick", "pluginId", "LayoutOperation", "Open", "subject", "replaceAll", "pivotId", "positioning", "hasSettings", "some", "s", "prefix", "handleSettings", "SettingsOperation", "React", "Layout", "Container", "scrollable", "PluginList", "onClick", "onChange", "onSettings", "Capability", "makeModule", "succeed", "contributes", "Common", "ReactSurface", "createSurface", "id", "meta", "role", "filter", "data", "subject", "REGISTRY_KEY", "component", "manager", "usePluginManager", "filtered", "useMemo", "getPlugins", "getCore", "includes", "React", "RegistryContainer", "plugins", "getEnabled", "tags", "Plugin", "isPlugin", "enabled", "handleEnableChange", "useCallback", "runAndForwardErrors", "enable", "disable", "PluginDetail", "plugin", "onEnabledChange"]
7
+ }
@@ -1,2 +1,3 @@
1
- export declare const RegistryPlugin: () => import("@dxos/app-framework").Plugin;
1
+ import { Plugin } from '@dxos/app-framework';
2
+ export declare const RegistryPlugin: Plugin.PluginFactory<void>;
2
3
  //# sourceMappingURL=RegistryPlugin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RegistryPlugin.d.ts","sourceRoot":"","sources":["../../../src/RegistryPlugin.tsx"],"names":[],"mappings":"AAUA,eAAO,MAAM,cAAc,4CAsBvB,CAAC"}
1
+ {"version":3,"file":"RegistryPlugin.d.ts","sourceRoot":"","sources":["../../../src/RegistryPlugin.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAU,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAMrD,eAAO,MAAM,cAAc,4BAM1B,CAAC"}
@@ -0,0 +1,6 @@
1
+ import * as Effect from 'effect/Effect';
2
+ import { Capability } from '@dxos/app-framework';
3
+ import { GraphBuilder } from '@dxos/plugin-graph';
4
+ declare const _default: (props?: void | undefined) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<GraphBuilder.BuilderExtensions>>, never, Capability.Service>;
5
+ export default _default;
6
+ //# sourceMappingURL=app-graph-builder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app-graph-builder.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/app-graph-builder/app-graph-builder.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,EAA6B,MAAM,qBAAqB,CAAC;AAE5E,OAAO,EAAE,YAAY,EAAe,MAAM,oBAAoB,CAAC;;AAI/D,wBA2HE"}
@@ -0,0 +1,3 @@
1
+ import { Capability } from '@dxos/app-framework';
2
+ export declare const AppGraphBuilder: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<import("@dxos/app-graph").BuilderExtensions>>, Error>;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/app-graph-builder/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,eAAO,MAAM,eAAe,qIAA0E,CAAC"}
@@ -1,4 +1,4 @@
1
- export declare const AppGraphBuilder: (props?: import("@dxos/app-framework").PluginContext | undefined) => Promise<() => Promise<import("@dxos/app-framework").Capability<import("@dxos/app-graph").BuilderExtensions> | import("@dxos/app-framework").AnyCapability[]>>;
2
- export declare const IntentResolver: (props?: unknown) => Promise<() => Promise<import("@dxos/app-framework").Capability<import("@dxos/app-framework").Capabilities.IntentResolver> | import("@dxos/app-framework").AnyCapability[]>>;
3
- export declare const ReactSurface: (props?: unknown) => Promise<() => Promise<import("@dxos/app-framework").Capability<import("@dxos/app-framework").Capabilities.ReactSurface> | import("@dxos/app-framework").AnyCapability[]>>;
1
+ export * from './app-graph-builder';
2
+ export * from './operation-resolver';
3
+ export * from './react-surface';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,eAAe,oOAA4C,CAAC;AACzE,eAAO,MAAM,cAAc,kMAA0C,CAAC;AACtE,eAAO,MAAM,YAAY,gMAAwC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"AAIA,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Capability } from '@dxos/app-framework';
2
+ export declare const OperationResolver: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<import("@dxos/app-framework/Common").Capability.OperationResolver[]>>, Error>;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/operation-resolver/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,eAAO,MAAM,iBAAiB,6JAA6E,CAAC"}
@@ -0,0 +1,5 @@
1
+ import * as Effect from 'effect/Effect';
2
+ import { Capability, Common } from '@dxos/app-framework';
3
+ declare const _default: (props?: void | undefined) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<Common.Capability.OperationResolver[]>>, never, never>;
4
+ export default _default;
5
+ //# sourceMappingURL=operation-resolver.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operation-resolver.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/operation-resolver/operation-resolver.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,EAAqB,MAAM,qBAAqB,CAAC;;AAK5E,wBAWE"}
@@ -0,0 +1,3 @@
1
+ import { Capability } from '@dxos/app-framework';
2
+ export declare const ReactSurface: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<import("@dxos/app-framework/Common").Capability.ReactSurface>>, Error>;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/react-surface/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,eAAO,MAAM,YAAY,sJAAmE,CAAC"}
@@ -0,0 +1,5 @@
1
+ import * as Effect from 'effect/Effect';
2
+ import { Capability, Common } from '@dxos/app-framework';
3
+ declare const _default: (props?: void | undefined) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<Common.Capability.ReactSurface>>, never, never>;
4
+ export default _default;
5
+ //# sourceMappingURL=react-surface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"react-surface.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/react-surface/react-surface.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,UAAU,EAAE,MAAM,EAAU,MAAM,qBAAqB,CAAC;;AAOjE,wBAoFE"}
@@ -0,0 +1,11 @@
1
+ import * as Command from '@effect/cli/Command';
2
+ import * as Effect from 'effect/Effect';
3
+ import { Plugin } from '@dxos/app-framework';
4
+ import { CommandConfig } from '@dxos/cli-util';
5
+ export declare const handler: (args_0: {
6
+ id: string;
7
+ }) => Effect.Effect<void, Error | import("@effect/platform/Error").PlatformError, Plugin.Service | import("@effect/platform/Path").Path | import("@effect/platform/FileSystem").FileSystem | CommandConfig>;
8
+ export declare const disable: Command.Command<"disable", Plugin.Service | import("@effect/platform/Path").Path | import("@effect/platform/FileSystem").FileSystem | CommandConfig, Error | import("@effect/platform/Error").PlatformError, {
9
+ readonly id: string;
10
+ }>;
11
+ //# sourceMappingURL=disable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"disable.d.ts","sourceRoot":"","sources":["../../../../../src/cli/commands/disable.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,OAAO,MAAM,qBAAqB,CAAC;AAE/C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAK/C,eAAO,MAAM,OAAO;QAAsC,MAAM;2MAuB9D,CAAC;AAEH,eAAO,MAAM,OAAO;;EAMgC,CAAC"}
@@ -0,0 +1,11 @@
1
+ import * as Command from '@effect/cli/Command';
2
+ import * as Effect from 'effect/Effect';
3
+ import { Plugin } from '@dxos/app-framework';
4
+ import { CommandConfig } from '@dxos/cli-util';
5
+ export declare const handler: (args_0: {
6
+ id: string;
7
+ }) => Effect.Effect<void, Error | import("@effect/platform/Error").PlatformError, Plugin.Service | import("@effect/platform/Path").Path | import("@effect/platform/FileSystem").FileSystem | CommandConfig>;
8
+ export declare const enable: Command.Command<"enable", Plugin.Service | import("@effect/platform/Path").Path | import("@effect/platform/FileSystem").FileSystem | CommandConfig, Error | import("@effect/platform/Error").PlatformError, {
9
+ readonly id: string;
10
+ }>;
11
+ //# sourceMappingURL=enable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enable.d.ts","sourceRoot":"","sources":["../../../../../src/cli/commands/enable.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,OAAO,MAAM,qBAAqB,CAAC;AAE/C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAK/C,eAAO,MAAM,OAAO;QAAsC,MAAM;2MAoB9D,CAAC;AAEH,eAAO,MAAM,MAAM;;EAMgC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import * as Command from '@effect/cli/Command';
2
+ export declare const plugin: Command.Command<any, any, any, any>;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/cli/commands/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,OAAO,MAAM,qBAAqB,CAAC;AAM/C,eAAO,MAAM,MAAM,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAGtD,CAAC"}
@@ -0,0 +1,7 @@
1
+ import * as Command from '@effect/cli/Command';
2
+ import * as Effect from 'effect/Effect';
3
+ import { Plugin } from '@dxos/app-framework';
4
+ import { CommandConfig } from '@dxos/cli-util';
5
+ export declare const handler: () => Effect.Effect<void, never, Plugin.Service | CommandConfig>;
6
+ export declare const list: Command.Command<"list", Plugin.Service | CommandConfig, never, {}>;
7
+ //# sourceMappingURL=list.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../../src/cli/commands/list.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,OAAO,MAAM,qBAAqB,CAAC;AAE/C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAa,MAAM,gBAAgB,CAAC;AAI1D,eAAO,MAAM,OAAO,kEAyBlB,CAAC;AAEH,eAAO,MAAM,IAAI,oEAAiG,CAAC"}
@@ -0,0 +1,11 @@
1
+ export type FormattedPlugin = {
2
+ id: string;
3
+ name: string;
4
+ enabled: boolean;
5
+ core: boolean;
6
+ };
7
+ /**
8
+ * Pretty prints a plugin with ANSI colors.
9
+ */
10
+ export declare const printPlugin: (plugin: FormattedPlugin) => import("@effect/printer/Doc").Doc<any>;
11
+ //# sourceMappingURL=util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../../../src/cli/commands/util.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,eAAe,GAAG;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,OAAO,CAAC;CACf,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,GAAI,QAAQ,eAAe,2CAOlD,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './plugin';
2
+ export * from './storage';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/cli/index.ts"],"names":[],"mappings":"AAIA,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Plugin } from '@dxos/app-framework';
2
+ export declare const RegistryPlugin: Plugin.PluginFactory<void>;
3
+ //# sourceMappingURL=plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../src/cli/plugin.ts"],"names":[],"mappings":"AAIA,OAAO,EAAU,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAMrD,eAAO,MAAM,cAAc,4BAK1B,CAAC"}