@dxos/plugin-devtools 0.10.0

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 (125) hide show
  1. package/LICENSE +105 -0
  2. package/PLUGIN.mdl +373 -0
  3. package/README.md +15 -0
  4. package/dist/lib/neutral/DebugGraph-F7AMZXKW.mjs +16 -0
  5. package/dist/lib/neutral/DebugGraph-F7AMZXKW.mjs.map +7 -0
  6. package/dist/lib/neutral/DevtoolsOverviewContainer-DCNZFKK5.mjs +51 -0
  7. package/dist/lib/neutral/DevtoolsOverviewContainer-DCNZFKK5.mjs.map +7 -0
  8. package/dist/lib/neutral/DevtoolsPlugin.mjs +55 -0
  9. package/dist/lib/neutral/DevtoolsPlugin.mjs.map +7 -0
  10. package/dist/lib/neutral/DevtoolsPlugin.node.mjs +16 -0
  11. package/dist/lib/neutral/DevtoolsPlugin.node.mjs.map +7 -0
  12. package/dist/lib/neutral/DevtoolsPlugin.workerd.mjs +12 -0
  13. package/dist/lib/neutral/DevtoolsPlugin.workerd.mjs.map +7 -0
  14. package/dist/lib/neutral/GithubPanel-DWFZXZUK.mjs +178 -0
  15. package/dist/lib/neutral/GithubPanel-DWFZXZUK.mjs.map +7 -0
  16. package/dist/lib/neutral/RegistryPanel-CVETZUZV.mjs +162 -0
  17. package/dist/lib/neutral/RegistryPanel-CVETZUZV.mjs.map +7 -0
  18. package/dist/lib/neutral/app-graph-builder-KHZ65O2Q.mjs +560 -0
  19. package/dist/lib/neutral/app-graph-builder-KHZ65O2Q.mjs.map +7 -0
  20. package/dist/lib/neutral/capabilities/index.mjs +13 -0
  21. package/dist/lib/neutral/capabilities/index.mjs.map +7 -0
  22. package/dist/lib/neutral/chunk-J5LGTIGS.mjs +10 -0
  23. package/dist/lib/neutral/chunk-J5LGTIGS.mjs.map +7 -0
  24. package/dist/lib/neutral/chunk-PJNVAE7D.mjs +81 -0
  25. package/dist/lib/neutral/chunk-PJNVAE7D.mjs.map +7 -0
  26. package/dist/lib/neutral/chunk-QCL4JV4T.mjs +39 -0
  27. package/dist/lib/neutral/chunk-QCL4JV4T.mjs.map +7 -0
  28. package/dist/lib/neutral/containers/index.mjs +15 -0
  29. package/dist/lib/neutral/containers/index.mjs.map +7 -0
  30. package/dist/lib/neutral/index.mjs +12 -0
  31. package/dist/lib/neutral/index.mjs.map +7 -0
  32. package/dist/lib/neutral/meta.json +1 -0
  33. package/dist/lib/neutral/meta.mjs +8 -0
  34. package/dist/lib/neutral/meta.mjs.map +7 -0
  35. package/dist/lib/neutral/plugin.mjs +12 -0
  36. package/dist/lib/neutral/plugin.mjs.map +7 -0
  37. package/dist/lib/neutral/react-context-UJURDOO6.mjs +17 -0
  38. package/dist/lib/neutral/react-context-UJURDOO6.mjs.map +7 -0
  39. package/dist/lib/neutral/react-surface-XILLHGRR.mjs +332 -0
  40. package/dist/lib/neutral/react-surface-XILLHGRR.mjs.map +7 -0
  41. package/dist/lib/neutral/translations.mjs +65 -0
  42. package/dist/lib/neutral/translations.mjs.map +7 -0
  43. package/dist/lib/neutral/types/index.mjs +8 -0
  44. package/dist/lib/neutral/types/index.mjs.map +7 -0
  45. package/dist/types/dx.config.d.ts +28 -0
  46. package/dist/types/dx.config.d.ts.map +1 -0
  47. package/dist/types/src/DevtoolsPlugin.d.ts +4 -0
  48. package/dist/types/src/DevtoolsPlugin.d.ts.map +1 -0
  49. package/dist/types/src/DevtoolsPlugin.node.d.ts +4 -0
  50. package/dist/types/src/DevtoolsPlugin.node.d.ts.map +1 -0
  51. package/dist/types/src/DevtoolsPlugin.test.d.ts +2 -0
  52. package/dist/types/src/DevtoolsPlugin.test.d.ts.map +1 -0
  53. package/dist/types/src/DevtoolsPlugin.workerd.d.ts +4 -0
  54. package/dist/types/src/DevtoolsPlugin.workerd.d.ts.map +1 -0
  55. package/dist/types/src/capabilities/app-graph-builder.d.ts +5 -0
  56. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -0
  57. package/dist/types/src/capabilities/index.d.ts +5 -0
  58. package/dist/types/src/capabilities/index.d.ts.map +1 -0
  59. package/dist/types/src/capabilities/react-context.d.ts +5 -0
  60. package/dist/types/src/capabilities/react-context.d.ts.map +1 -0
  61. package/dist/types/src/capabilities/react-surface.d.ts +5 -0
  62. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -0
  63. package/dist/types/src/containers/DebugGraph/DebugGraph.d.ts +11 -0
  64. package/dist/types/src/containers/DebugGraph/DebugGraph.d.ts.map +1 -0
  65. package/dist/types/src/containers/DebugGraph/index.d.ts +2 -0
  66. package/dist/types/src/containers/DebugGraph/index.d.ts.map +1 -0
  67. package/dist/types/src/containers/DevtoolsOverviewContainer/DevtoolsOverviewContainer.d.ts +6 -0
  68. package/dist/types/src/containers/DevtoolsOverviewContainer/DevtoolsOverviewContainer.d.ts.map +1 -0
  69. package/dist/types/src/containers/DevtoolsOverviewContainer/index.d.ts +2 -0
  70. package/dist/types/src/containers/DevtoolsOverviewContainer/index.d.ts.map +1 -0
  71. package/dist/types/src/containers/GithubPanel/GithubComponent.d.ts +15 -0
  72. package/dist/types/src/containers/GithubPanel/GithubComponent.d.ts.map +1 -0
  73. package/dist/types/src/containers/GithubPanel/GithubComponent.stories.d.ts +80 -0
  74. package/dist/types/src/containers/GithubPanel/GithubComponent.stories.d.ts.map +1 -0
  75. package/dist/types/src/containers/GithubPanel/GithubPanel.d.ts +6 -0
  76. package/dist/types/src/containers/GithubPanel/GithubPanel.d.ts.map +1 -0
  77. package/dist/types/src/containers/GithubPanel/index.d.ts +2 -0
  78. package/dist/types/src/containers/GithubPanel/index.d.ts.map +1 -0
  79. package/dist/types/src/containers/RegistryPanel/RegistryPanel.d.ts +6 -0
  80. package/dist/types/src/containers/RegistryPanel/RegistryPanel.d.ts.map +1 -0
  81. package/dist/types/src/containers/RegistryPanel/index.d.ts +2 -0
  82. package/dist/types/src/containers/RegistryPanel/index.d.ts.map +1 -0
  83. package/dist/types/src/containers/index.d.ts +6 -0
  84. package/dist/types/src/containers/index.d.ts.map +1 -0
  85. package/dist/types/src/index.d.ts +3 -0
  86. package/dist/types/src/index.d.ts.map +1 -0
  87. package/dist/types/src/meta.d.ts +33 -0
  88. package/dist/types/src/meta.d.ts.map +1 -0
  89. package/dist/types/src/plugin.d.ts +3 -0
  90. package/dist/types/src/plugin.d.ts.map +1 -0
  91. package/dist/types/src/translations.d.ts +67 -0
  92. package/dist/types/src/translations.d.ts.map +1 -0
  93. package/dist/types/src/types/Devtools.d.ts +56 -0
  94. package/dist/types/src/types/Devtools.d.ts.map +1 -0
  95. package/dist/types/src/types/index.d.ts +2 -0
  96. package/dist/types/src/types/index.d.ts.map +1 -0
  97. package/dist/types/tsconfig.tsbuildinfo +1 -0
  98. package/dx.config.ts +28 -0
  99. package/package.json +153 -0
  100. package/src/DevtoolsPlugin.node.ts +16 -0
  101. package/src/DevtoolsPlugin.test.ts +24 -0
  102. package/src/DevtoolsPlugin.tsx +54 -0
  103. package/src/DevtoolsPlugin.workerd.ts +11 -0
  104. package/src/capabilities/app-graph-builder.ts +388 -0
  105. package/src/capabilities/index.ts +9 -0
  106. package/src/capabilities/react-context.tsx +25 -0
  107. package/src/capabilities/react-surface.tsx +331 -0
  108. package/src/containers/DebugGraph/DebugGraph.tsx +16 -0
  109. package/src/containers/DebugGraph/index.ts +5 -0
  110. package/src/containers/DevtoolsOverviewContainer/DevtoolsOverviewContainer.tsx +52 -0
  111. package/src/containers/DevtoolsOverviewContainer/index.ts +5 -0
  112. package/src/containers/GithubPanel/GithubComponent.stories.tsx +38 -0
  113. package/src/containers/GithubPanel/GithubComponent.tsx +192 -0
  114. package/src/containers/GithubPanel/GithubPanel.tsx +19 -0
  115. package/src/containers/GithubPanel/index.ts +5 -0
  116. package/src/containers/RegistryPanel/RegistryPanel.tsx +152 -0
  117. package/src/containers/RegistryPanel/index.ts +5 -0
  118. package/src/containers/index.ts +10 -0
  119. package/src/index.ts +6 -0
  120. package/src/meta.ts +9 -0
  121. package/src/plugin.ts +9 -0
  122. package/src/translations.ts +66 -0
  123. package/src/types/Devtools.ts +72 -0
  124. package/src/types/index.ts +5 -0
  125. package/src/vite-env.d.ts +10 -0
@@ -0,0 +1,332 @@
1
+ import "./chunk-J5LGTIGS.mjs";
2
+
3
+ // src/capabilities/react-surface.tsx
4
+ import * as Effect from "effect/Effect";
5
+ import React, { useCallback } from "react";
6
+ import { Capabilities, Capability } from "@dxos/app-framework";
7
+ import { Surface, useOperationInvoker } from "@dxos/app-framework/ui";
8
+ import { LayoutOperation, Paths } from "@dxos/app-toolkit";
9
+ import { AppSurface, useActiveSpace } from "@dxos/app-toolkit/ui";
10
+ import { EDGE_SERVICE_DEFAULTS, EdgeServiceName } from "@dxos/config";
11
+ import { AutomergePanel, ConfigPanel, CredentialsPanel, DeviceListPanel, DiagnosticsPanel, EdgeDashboardPanel, FeedsPanel, IdentityPanel, InvocationTraceContainer, KeyringPanel, LoggingPanel, MembersPanel, MetadataPanel, NetworkPanel, ObjectsPanel, QueuesPanel, SchemaPanel, SignalPanel, SpaceInfoPanel, SpaceListPanel, SqlitePanel, StoragePanel, SwarmPanel, TestingPanel, WorkflowPanel } from "@dxos/devtools";
12
+ import { Feed } from "@dxos/echo";
13
+ import { log } from "@dxos/log";
14
+ import { ScriptOperation } from "@dxos/plugin-script";
15
+ import { SpaceOperation } from "@dxos/plugin-space";
16
+ import { ToolsExplorer } from "@dxos/react-ui-introspect";
17
+ import { DebugGraph, DevtoolsOverviewContainer, RegistryPanel } from "#containers";
18
+ import { Devtools } from "#types";
19
+ var __dxlog_file = "/Users/burdon/Code/dxos/dxos/.claude/worktrees/r0-progress-panel-config-85875c/packages/plugins/plugin-devtools/src/capabilities/react-surface.tsx";
20
+ var MCP_SERVER_URL = EDGE_SERVICE_DEFAULTS[EdgeServiceName.Introspect];
21
+ var isGraphDebug = (data) => {
22
+ const graph = data?.graph;
23
+ return graph != null && typeof graph === "object" && typeof graph.json === "function" && typeof data?.root === "string";
24
+ };
25
+ var react_surface_default = Capability.makeModule(Effect.fnUntraced(function* () {
26
+ return Capability.contributes(Capabilities.ReactSurface, [
27
+ Surface.create({
28
+ id: "appGraph",
29
+ filter: AppSurface.subject(AppSurface.Article, isGraphDebug),
30
+ component: ({ data }) => /* @__PURE__ */ React.createElement(DebugGraph, {
31
+ graph: data.subject.graph,
32
+ root: data.subject.root
33
+ })
34
+ }),
35
+ Surface.create({
36
+ id: "toolsExplorer",
37
+ filter: AppSurface.literal(AppSurface.Article, Devtools.ToolsExplorer),
38
+ component: () => /* @__PURE__ */ React.createElement(ToolsExplorer, {
39
+ serverUrl: MCP_SERVER_URL
40
+ })
41
+ }),
42
+ Surface.create({
43
+ id: "registry",
44
+ filter: AppSurface.literal(AppSurface.Article, Devtools.Echo.Registry),
45
+ component: () => /* @__PURE__ */ React.createElement(RegistryPanel, null)
46
+ }),
47
+ Surface.create({
48
+ id: "devtoolsOverview",
49
+ filter: Surface.makeFilter(AppSurface.deckCompanion("devtoolsOverview")),
50
+ component: () => /* @__PURE__ */ React.createElement(DevtoolsOverviewContainer, null)
51
+ }),
52
+ //
53
+ // Devtools
54
+ //
55
+ Surface.create({
56
+ id: "client.config",
57
+ filter: AppSurface.literal(AppSurface.Article, Devtools.Client.Config),
58
+ component: () => /* @__PURE__ */ React.createElement(ConfigPanel, {
59
+ vaultSelector: false
60
+ })
61
+ }),
62
+ Surface.create({
63
+ id: "client.storage",
64
+ filter: AppSurface.literal(AppSurface.Article, Devtools.Client.Storage),
65
+ component: () => /* @__PURE__ */ React.createElement(StoragePanel, null)
66
+ }),
67
+ Surface.create({
68
+ id: "client.sqlite",
69
+ filter: AppSurface.literal(AppSurface.Article, Devtools.Client.Sqlite),
70
+ component: () => /* @__PURE__ */ React.createElement(SqlitePanel, null)
71
+ }),
72
+ Surface.create({
73
+ id: "client.logs",
74
+ filter: AppSurface.literal(AppSurface.Article, Devtools.Client.Logs),
75
+ component: () => /* @__PURE__ */ React.createElement(LoggingPanel, null)
76
+ }),
77
+ Surface.create({
78
+ id: "client.diagnostics",
79
+ filter: AppSurface.literal(AppSurface.Article, Devtools.Client.Diagnostics),
80
+ component: () => /* @__PURE__ */ React.createElement(DiagnosticsPanel, null)
81
+ }),
82
+ Surface.create({
83
+ id: "halo.identity",
84
+ filter: AppSurface.literal(AppSurface.Article, Devtools.Halo.Identity),
85
+ component: () => /* @__PURE__ */ React.createElement(IdentityPanel, null)
86
+ }),
87
+ Surface.create({
88
+ id: "halo.devices",
89
+ filter: AppSurface.literal(AppSurface.Article, Devtools.Halo.Devices),
90
+ component: () => /* @__PURE__ */ React.createElement(DeviceListPanel, null)
91
+ }),
92
+ Surface.create({
93
+ id: "halo.keyring",
94
+ filter: AppSurface.literal(AppSurface.Article, Devtools.Halo.Keyring),
95
+ component: () => /* @__PURE__ */ React.createElement(KeyringPanel, null)
96
+ }),
97
+ Surface.create({
98
+ id: "halo.credentials",
99
+ filter: AppSurface.literal(AppSurface.Article, Devtools.Halo.Credentials),
100
+ component: () => {
101
+ const space = useActiveSpace();
102
+ if (!space) {
103
+ return null;
104
+ }
105
+ return /* @__PURE__ */ React.createElement(CredentialsPanel, {
106
+ space
107
+ });
108
+ }
109
+ }),
110
+ Surface.create({
111
+ id: "echo.spaces",
112
+ filter: AppSurface.literal(AppSurface.Article, Devtools.Echo.Spaces),
113
+ component: () => {
114
+ const { invokePromise } = useOperationInvoker();
115
+ const handleSelect = useCallback(() => invokePromise(LayoutOperation.Open, {
116
+ subject: [
117
+ Devtools.Echo.Space
118
+ ]
119
+ }), [
120
+ invokePromise
121
+ ]);
122
+ return /* @__PURE__ */ React.createElement(SpaceListPanel, {
123
+ onSelect: handleSelect
124
+ });
125
+ }
126
+ }),
127
+ Surface.create({
128
+ id: "echo.space",
129
+ filter: AppSurface.literal(AppSurface.Article, Devtools.Echo.Space),
130
+ component: () => {
131
+ const space = useActiveSpace();
132
+ const { invokePromise } = useOperationInvoker();
133
+ const handleSelect = useCallback(() => invokePromise(LayoutOperation.Open, {
134
+ subject: [
135
+ Devtools.Echo.Feeds
136
+ ]
137
+ }), [
138
+ invokePromise
139
+ ]);
140
+ if (!space) {
141
+ return null;
142
+ }
143
+ return /* @__PURE__ */ React.createElement(SpaceInfoPanel, {
144
+ space,
145
+ onSelectFeed: handleSelect,
146
+ onSelectPipeline: handleSelect
147
+ });
148
+ }
149
+ }),
150
+ Surface.create({
151
+ id: "echo.feeds",
152
+ filter: AppSurface.literal(AppSurface.Article, Devtools.Echo.Feeds),
153
+ component: () => {
154
+ const space = useActiveSpace();
155
+ if (!space) {
156
+ return null;
157
+ }
158
+ return /* @__PURE__ */ React.createElement(FeedsPanel, {
159
+ space
160
+ });
161
+ }
162
+ }),
163
+ Surface.create({
164
+ id: "echo.objects",
165
+ filter: AppSurface.literal(AppSurface.Article, Devtools.Echo.Objects),
166
+ component: () => {
167
+ const space = useActiveSpace();
168
+ if (!space) {
169
+ return null;
170
+ }
171
+ return /* @__PURE__ */ React.createElement(ObjectsPanel, {
172
+ space
173
+ });
174
+ }
175
+ }),
176
+ Surface.create({
177
+ id: "echo.schema",
178
+ filter: AppSurface.literal(AppSurface.Article, Devtools.Echo.Schema),
179
+ component: () => {
180
+ const space = useActiveSpace();
181
+ if (!space) {
182
+ return null;
183
+ }
184
+ return /* @__PURE__ */ React.createElement(SchemaPanel, {
185
+ space
186
+ });
187
+ }
188
+ }),
189
+ Surface.create({
190
+ id: "echo.automerge",
191
+ filter: AppSurface.literal(AppSurface.Article, Devtools.Echo.Automerge),
192
+ component: () => {
193
+ const space = useActiveSpace();
194
+ if (!space) {
195
+ return null;
196
+ }
197
+ return /* @__PURE__ */ React.createElement(AutomergePanel, {
198
+ space
199
+ });
200
+ }
201
+ }),
202
+ Surface.create({
203
+ id: "echo.queues",
204
+ filter: AppSurface.literal(AppSurface.Article, Devtools.Echo.Queues),
205
+ component: () => /* @__PURE__ */ React.createElement(QueuesPanel, null)
206
+ }),
207
+ Surface.create({
208
+ id: "echo.members",
209
+ filter: AppSurface.literal(AppSurface.Article, Devtools.Echo.Members),
210
+ component: () => {
211
+ const space = useActiveSpace();
212
+ if (!space) {
213
+ return null;
214
+ }
215
+ return /* @__PURE__ */ React.createElement(MembersPanel, {
216
+ space
217
+ });
218
+ }
219
+ }),
220
+ Surface.create({
221
+ id: "echo.metadata",
222
+ filter: AppSurface.literal(AppSurface.Article, Devtools.Echo.Metadata),
223
+ component: () => /* @__PURE__ */ React.createElement(MetadataPanel, null)
224
+ }),
225
+ Surface.create({
226
+ id: "mesh.signal",
227
+ filter: AppSurface.literal(AppSurface.Article, Devtools.Mesh.Signal),
228
+ component: () => /* @__PURE__ */ React.createElement(SignalPanel, null)
229
+ }),
230
+ Surface.create({
231
+ id: "mesh.swarm",
232
+ filter: AppSurface.literal(AppSurface.Article, Devtools.Mesh.Swarm),
233
+ component: () => /* @__PURE__ */ React.createElement(SwarmPanel, null)
234
+ }),
235
+ Surface.create({
236
+ id: "mesh.network",
237
+ filter: AppSurface.literal(AppSurface.Article, Devtools.Mesh.Network),
238
+ component: () => {
239
+ const space = useActiveSpace();
240
+ if (!space) {
241
+ return null;
242
+ }
243
+ return /* @__PURE__ */ React.createElement(NetworkPanel, {
244
+ space
245
+ });
246
+ }
247
+ }),
248
+ Surface.create({
249
+ id: "edge.dashboard",
250
+ filter: AppSurface.literal(AppSurface.Article, Devtools.Edge.Dashboard),
251
+ component: () => /* @__PURE__ */ React.createElement(EdgeDashboardPanel, null)
252
+ }),
253
+ Surface.create({
254
+ id: "edge.workflows",
255
+ filter: AppSurface.literal(AppSurface.Article, Devtools.Edge.Workflows),
256
+ component: () => {
257
+ const space = useActiveSpace();
258
+ if (!space) {
259
+ return null;
260
+ }
261
+ return /* @__PURE__ */ React.createElement(WorkflowPanel, {
262
+ space
263
+ });
264
+ }
265
+ }),
266
+ Surface.create({
267
+ id: "edge.traces",
268
+ filter: AppSurface.literal(AppSurface.Article, Devtools.Edge.Traces),
269
+ component: () => {
270
+ const space = useActiveSpace();
271
+ if (!space) {
272
+ return null;
273
+ }
274
+ const feed = space.properties.invocationTraceFeed?.target;
275
+ const feedDXN = feed ? Feed.getFeedUri(feed) : void 0;
276
+ return /* @__PURE__ */ React.createElement(InvocationTraceContainer, {
277
+ db: space.db,
278
+ feedDXN,
279
+ detailAxis: "block"
280
+ });
281
+ }
282
+ }),
283
+ Surface.create({
284
+ id: "edge.testing",
285
+ filter: AppSurface.literal(AppSurface.Article, Devtools.Edge.Testing),
286
+ component: () => {
287
+ const { invokePromise } = useOperationInvoker();
288
+ const onSpaceCreate = useCallback(async (space) => {
289
+ await space.waitUntilReady();
290
+ await invokePromise(SpaceOperation.Migrate, {
291
+ space
292
+ });
293
+ await space.db.flush();
294
+ }, [
295
+ invokePromise
296
+ ]);
297
+ const onScriptPluginOpen = useCallback(async (space) => {
298
+ await space.waitUntilReady();
299
+ const createResult = await invokePromise(ScriptOperation.CreateScript, {
300
+ db: space.db
301
+ });
302
+ if (createResult.data?.object) {
303
+ await invokePromise(SpaceOperation.AddObject, {
304
+ target: space.db,
305
+ object: createResult.data.object
306
+ });
307
+ }
308
+ log.info("script created", {
309
+ result: createResult
310
+ }, { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 307, S: this });
311
+ if (createResult.data?.object) {
312
+ await invokePromise(LayoutOperation.Open, {
313
+ subject: [
314
+ Paths.getObjectPathFromObject(createResult.data.object)
315
+ ]
316
+ });
317
+ }
318
+ }, [
319
+ invokePromise
320
+ ]);
321
+ return /* @__PURE__ */ React.createElement(TestingPanel, {
322
+ onSpaceCreate,
323
+ onScriptPluginOpen
324
+ });
325
+ }
326
+ })
327
+ ]);
328
+ }));
329
+ export {
330
+ react_surface_default as default
331
+ };
332
+ //# sourceMappingURL=react-surface-XILLHGRR.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/capabilities/react-surface.tsx"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\nimport React, { useCallback } from 'react';\n\nimport { Capabilities, Capability } from '@dxos/app-framework';\nimport { Surface, useOperationInvoker } from '@dxos/app-framework/ui';\nimport { LayoutOperation, Paths } from '@dxos/app-toolkit';\nimport { AppSurface, useActiveSpace } from '@dxos/app-toolkit/ui';\nimport { EDGE_SERVICE_DEFAULTS, EdgeServiceName } from '@dxos/config';\nimport {\n AutomergePanel,\n ConfigPanel,\n CredentialsPanel,\n DeviceListPanel,\n DiagnosticsPanel,\n EdgeDashboardPanel,\n FeedsPanel,\n IdentityPanel,\n InvocationTraceContainer,\n KeyringPanel,\n LoggingPanel,\n MembersPanel,\n MetadataPanel,\n NetworkPanel,\n ObjectsPanel,\n QueuesPanel,\n SchemaPanel,\n SignalPanel,\n SpaceInfoPanel,\n SpaceListPanel,\n SqlitePanel,\n StoragePanel,\n SwarmPanel,\n TestingPanel,\n WorkflowPanel,\n} from '@dxos/devtools';\nimport { Feed } from '@dxos/echo';\nimport { log } from '@dxos/log';\nimport { type Graph } from '@dxos/plugin-graph';\nimport { ScriptOperation } from '@dxos/plugin-script';\nimport { SpaceOperation } from '@dxos/plugin-space';\nimport { type Space } from '@dxos/react-client/echo';\nimport { ToolsExplorer } from '@dxos/react-ui-introspect';\n\nimport { DebugGraph, DevtoolsOverviewContainer, RegistryPanel } from '#containers';\nimport { Devtools } from '#types';\n\nconst MCP_SERVER_URL = EDGE_SERVICE_DEFAULTS[EdgeServiceName.Introspect];\n\ntype GraphDebug = {\n graph: Graph.Graph;\n root: string;\n};\n\nconst isGraphDebug = (data: any): data is GraphDebug => {\n const graph = data?.graph;\n return (\n graph != null && typeof graph === 'object' && typeof graph.json === 'function' && typeof data?.root === 'string'\n );\n};\n\nexport default Capability.makeModule(\n Effect.fnUntraced(function* () {\n return Capability.contributes(Capabilities.ReactSurface, [\n Surface.create({\n id: 'appGraph',\n filter: AppSurface.subject(AppSurface.Article, isGraphDebug),\n component: ({ data }) => <DebugGraph graph={data.subject.graph} root={data.subject.root} />,\n }),\n Surface.create({\n id: 'toolsExplorer',\n filter: AppSurface.literal(AppSurface.Article, Devtools.ToolsExplorer),\n component: () => <ToolsExplorer serverUrl={MCP_SERVER_URL} />,\n }),\n Surface.create({\n id: 'registry',\n filter: AppSurface.literal(AppSurface.Article, Devtools.Echo.Registry),\n component: () => <RegistryPanel />,\n }),\n Surface.create({\n id: 'devtoolsOverview',\n filter: Surface.makeFilter(AppSurface.deckCompanion('devtoolsOverview')),\n component: () => <DevtoolsOverviewContainer />,\n }),\n\n //\n // Devtools\n //\n\n Surface.create({\n id: 'client.config',\n filter: AppSurface.literal(AppSurface.Article, Devtools.Client.Config),\n component: () => <ConfigPanel vaultSelector={false} />,\n }),\n Surface.create({\n id: 'client.storage',\n filter: AppSurface.literal(AppSurface.Article, Devtools.Client.Storage),\n component: () => <StoragePanel />,\n }),\n Surface.create({\n id: 'client.sqlite',\n filter: AppSurface.literal(AppSurface.Article, Devtools.Client.Sqlite),\n component: () => <SqlitePanel />,\n }),\n Surface.create({\n id: 'client.logs',\n filter: AppSurface.literal(AppSurface.Article, Devtools.Client.Logs),\n component: () => <LoggingPanel />,\n }),\n Surface.create({\n id: 'client.diagnostics',\n filter: AppSurface.literal(AppSurface.Article, Devtools.Client.Diagnostics),\n component: () => <DiagnosticsPanel />,\n }),\n Surface.create({\n id: 'halo.identity',\n filter: AppSurface.literal(AppSurface.Article, Devtools.Halo.Identity),\n component: () => <IdentityPanel />,\n }),\n Surface.create({\n id: 'halo.devices',\n filter: AppSurface.literal(AppSurface.Article, Devtools.Halo.Devices),\n component: () => <DeviceListPanel />,\n }),\n Surface.create({\n id: 'halo.keyring',\n filter: AppSurface.literal(AppSurface.Article, Devtools.Halo.Keyring),\n component: () => <KeyringPanel />,\n }),\n Surface.create({\n id: 'halo.credentials',\n filter: AppSurface.literal(AppSurface.Article, Devtools.Halo.Credentials),\n component: () => {\n const space = useActiveSpace();\n if (!space) {\n return null;\n }\n\n return <CredentialsPanel space={space} />;\n },\n }),\n Surface.create({\n id: 'echo.spaces',\n filter: AppSurface.literal(AppSurface.Article, Devtools.Echo.Spaces),\n component: () => {\n const { invokePromise } = useOperationInvoker();\n const handleSelect = useCallback(\n () => invokePromise(LayoutOperation.Open, { subject: [Devtools.Echo.Space] }),\n [invokePromise],\n );\n return <SpaceListPanel onSelect={handleSelect} />;\n },\n }),\n Surface.create({\n id: 'echo.space',\n filter: AppSurface.literal(AppSurface.Article, Devtools.Echo.Space),\n component: () => {\n const space = useActiveSpace();\n const { invokePromise } = useOperationInvoker();\n const handleSelect = useCallback(\n () => invokePromise(LayoutOperation.Open, { subject: [Devtools.Echo.Feeds] }),\n [invokePromise],\n );\n if (!space) {\n return null;\n }\n\n return <SpaceInfoPanel space={space} onSelectFeed={handleSelect} onSelectPipeline={handleSelect} />;\n },\n }),\n Surface.create({\n id: 'echo.feeds',\n filter: AppSurface.literal(AppSurface.Article, Devtools.Echo.Feeds),\n component: () => {\n const space = useActiveSpace();\n if (!space) {\n return null;\n }\n\n return <FeedsPanel space={space} />;\n },\n }),\n Surface.create({\n id: 'echo.objects',\n filter: AppSurface.literal(AppSurface.Article, Devtools.Echo.Objects),\n component: () => {\n const space = useActiveSpace();\n if (!space) {\n return null;\n }\n\n return <ObjectsPanel space={space} />;\n },\n }),\n Surface.create({\n id: 'echo.schema',\n filter: AppSurface.literal(AppSurface.Article, Devtools.Echo.Schema),\n component: () => {\n const space = useActiveSpace();\n if (!space) {\n return null;\n }\n\n return <SchemaPanel space={space} />;\n },\n }),\n Surface.create({\n id: 'echo.automerge',\n filter: AppSurface.literal(AppSurface.Article, Devtools.Echo.Automerge),\n component: () => {\n const space = useActiveSpace();\n if (!space) {\n return null;\n }\n\n return <AutomergePanel space={space} />;\n },\n }),\n Surface.create({\n id: 'echo.queues',\n filter: AppSurface.literal(AppSurface.Article, Devtools.Echo.Queues),\n component: () => <QueuesPanel />,\n }),\n Surface.create({\n id: 'echo.members',\n filter: AppSurface.literal(AppSurface.Article, Devtools.Echo.Members),\n component: () => {\n const space = useActiveSpace();\n if (!space) {\n return null;\n }\n\n return <MembersPanel space={space} />;\n },\n }),\n Surface.create({\n id: 'echo.metadata',\n filter: AppSurface.literal(AppSurface.Article, Devtools.Echo.Metadata),\n component: () => <MetadataPanel />,\n }),\n Surface.create({\n id: 'mesh.signal',\n filter: AppSurface.literal(AppSurface.Article, Devtools.Mesh.Signal),\n component: () => <SignalPanel />,\n }),\n Surface.create({\n id: 'mesh.swarm',\n filter: AppSurface.literal(AppSurface.Article, Devtools.Mesh.Swarm),\n component: () => <SwarmPanel />,\n }),\n Surface.create({\n id: 'mesh.network',\n filter: AppSurface.literal(AppSurface.Article, Devtools.Mesh.Network),\n component: () => {\n const space = useActiveSpace();\n if (!space) {\n return null;\n }\n\n return <NetworkPanel space={space} />;\n },\n }),\n Surface.create({\n id: 'edge.dashboard',\n filter: AppSurface.literal(AppSurface.Article, Devtools.Edge.Dashboard),\n component: () => <EdgeDashboardPanel />,\n }),\n Surface.create({\n id: 'edge.workflows',\n filter: AppSurface.literal(AppSurface.Article, Devtools.Edge.Workflows),\n component: () => {\n const space = useActiveSpace();\n if (!space) {\n return null;\n }\n\n return <WorkflowPanel space={space} />;\n },\n }),\n Surface.create({\n id: 'edge.traces',\n filter: AppSurface.literal(AppSurface.Article, Devtools.Edge.Traces),\n component: () => {\n const space = useActiveSpace();\n if (!space) {\n return null;\n }\n\n const feed = space.properties.invocationTraceFeed?.target;\n const feedDXN = feed ? Feed.getFeedUri(feed) : undefined;\n return <InvocationTraceContainer db={space.db} feedDXN={feedDXN} detailAxis='block' />;\n },\n }),\n Surface.create({\n id: 'edge.testing',\n filter: AppSurface.literal(AppSurface.Article, Devtools.Edge.Testing),\n component: () => {\n const { invokePromise } = useOperationInvoker();\n const onSpaceCreate = useCallback(\n async (space: Space) => {\n await space.waitUntilReady();\n await invokePromise(SpaceOperation.Migrate, { space });\n await space.db.flush();\n },\n [invokePromise],\n );\n const onScriptPluginOpen = useCallback(\n async (space: Space) => {\n await space.waitUntilReady();\n const createResult = await invokePromise(ScriptOperation.CreateScript, { db: space.db });\n if (createResult.data?.object) {\n await invokePromise(SpaceOperation.AddObject, { target: space.db, object: createResult.data.object });\n }\n log.info('script created', { result: createResult });\n if (createResult.data?.object) {\n await invokePromise(LayoutOperation.Open, {\n subject: [Paths.getObjectPathFromObject(createResult.data.object)],\n });\n }\n },\n [invokePromise],\n );\n return <TestingPanel onSpaceCreate={onSpaceCreate} onScriptPluginOpen={onScriptPluginOpen} />;\n },\n }),\n ]);\n }),\n);\n"],
5
+ "mappings": ";;;AAIA,YAAYA,YAAY;AACxB,OAAOC,SAASC,mBAAmB;AAEnC,SAASC,cAAcC,kBAAkB;AACzC,SAASC,SAASC,2BAA2B;AAC7C,SAASC,iBAAiBC,aAAa;AACvC,SAASC,YAAYC,sBAAsB;AAC3C,SAASC,uBAAuBC,uBAAuB;AACvD,SACEC,gBACAC,aACAC,kBACAC,iBACAC,kBACAC,oBACAC,YACAC,eACAC,0BACAC,cACAC,cACAC,cACAC,eACAC,cACAC,cACAC,aACAC,aACAC,aACAC,gBACAC,gBACAC,aACAC,cACAC,YACAC,cACAC,qBACK;AACP,SAASC,YAAY;AACrB,SAASC,WAAW;AAEpB,SAASC,uBAAuB;AAChC,SAASC,sBAAsB;AAE/B,SAASC,qBAAqB;AAE9B,SAASC,YAAYC,2BAA2BC,qBAAqB;AACrE,SAASC,gBAAgB;AAEzB,IAAA,eAAMC;IAQJ,iBAAcC,sBAAMC,gBAAAA,UAAAA;IACpB,eACW,CAAA,SAAQ;AAErB,QAAA,QAAA,MAAA;AAEA,SAAA,SAAe7C,QAAW8C,OAAAA,UACjBC,YAAW,OAAA,MAAA,SAAA,cAAA,OAAA,MAAA,SAAA;;4BAEd9C,WAAe,WAAA,kBAAA,aAAA;oBACT,YAAA,aAAA,cAAA;YACJ+C,OAAQ3C;MACR4C,IAAAA;cAAqCJ,WAAOD,QAAY,WAAM,SAAA,YAAA;iBAAEM,CAAAA,EAAMN,KAAKO,MAAY,sBAAA,cAAA,YAAA;;QACzF,MAAA,KAAA,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AAA;YAClFY,IAAAA,MAAAA;;2BACsDZ,MAAMM,QAAE;kBAAEO,cAAQD,eAAkBC,WAAM;cAAC,QAAA,MAAA;cACrG,QAAA,aAAA,KAAA;YACIC,CAAAA;;AAA8C,cAAA,KAAA,kBAAA;YAC9CF,QAAAA;2BACIX,YAAcrD,GAAAA,cAAgBmE,GAAAA,KAAM,GAAA,KAAA,CAAA;2BAC/B,MAAA,QAAA;gCAAOC,gBAAAA,MAAwBJ;uBAA0B;gBACpE,MAAA,wBAAA,aAAA,KAAA,MAAA;cACF;YAEF,CAAA;UAACX;WAAc;UAEjB;;eAAmDgB,sBAAoBA,cAAAA,cAAAA;;UACzE;QACF,CAAA;MACD;IAEH,CAAA;;;",
6
+ "names": ["Effect", "React", "useCallback", "Capabilities", "Capability", "Surface", "useOperationInvoker", "LayoutOperation", "Paths", "AppSurface", "useActiveSpace", "EDGE_SERVICE_DEFAULTS", "EdgeServiceName", "AutomergePanel", "ConfigPanel", "CredentialsPanel", "DeviceListPanel", "DiagnosticsPanel", "EdgeDashboardPanel", "FeedsPanel", "IdentityPanel", "InvocationTraceContainer", "KeyringPanel", "LoggingPanel", "MembersPanel", "MetadataPanel", "NetworkPanel", "ObjectsPanel", "QueuesPanel", "SchemaPanel", "SignalPanel", "SpaceInfoPanel", "SpaceListPanel", "SqlitePanel", "StoragePanel", "SwarmPanel", "TestingPanel", "WorkflowPanel", "Feed", "log", "ScriptOperation", "SpaceOperation", "ToolsExplorer", "DebugGraph", "DevtoolsOverviewContainer", "RegistryPanel", "Devtools", "MCP_SERVER_URL", "data", "graph", "makeModule", "fnUntraced", "filter", "component", "root", "subject", "create", "serverUrl", "vaultSelector", "space", "invokePromise", "handleSelect", "Echo", "onSelectPipeline", "feed", "db", "feedDXN", "detailAxis", "onSpaceCreate", "waitUntilReady", "Migrate", "createResult", "object", "info", "Open", "getObjectPathFromObject", "onScriptPluginOpen"]
7
+ }
@@ -0,0 +1,65 @@
1
+ import "./chunk-J5LGTIGS.mjs";
2
+
3
+ // src/translations.ts
4
+ import { translations as introspectTranslations } from "@dxos/react-ui-introspect/translations";
5
+ import { meta } from "#meta";
6
+ var translations = [
7
+ ...introspectTranslations,
8
+ {
9
+ "en-US": {
10
+ [meta.profile.key]: {
11
+ "plugin.name": "Devtools",
12
+ "open-devtools.label": "Open DevTools",
13
+ "devtools.label": "DevTools",
14
+ "devtools-overview.label": "Stats",
15
+ "debug-app-graph.label": "App Graph",
16
+ "debug-tools-explorer.label": "SDK Explorer",
17
+ "reset-data.label": "Reset data (ERASES ALL DATA)",
18
+ "client.label": "Client",
19
+ "config.label": "Config",
20
+ "storage.label": "Storage",
21
+ "sqlite.label": "SQLite",
22
+ "logs.label": "Logs",
23
+ "diagnostics.label": "Diagnostics",
24
+ "tracing.label": "Tracing",
25
+ "halo.label": "HALO",
26
+ "identity.label": "Identity",
27
+ "devices.label": "Devices",
28
+ "keyring.label": "Keyring",
29
+ "credentials.label": "Credentials",
30
+ "echo.label": "ECHO",
31
+ "spaces.label": "Spaces",
32
+ "space.label": "Space",
33
+ "feeds.label": "Feeds",
34
+ "objects.label": "Objects",
35
+ "schema.label": "Schema",
36
+ "registry.label": "Registry",
37
+ "automerge.label": "Automerge",
38
+ "queues.label": "Queues",
39
+ "members.label": "Members",
40
+ "metadata.label": "Metadata",
41
+ "mesh.label": "MESH",
42
+ "signal.label": "Signal",
43
+ "swarm.label": "Swarm",
44
+ "network.label": "Network",
45
+ "agent.label": "Agent",
46
+ "dashboard.label": "Dashboard",
47
+ "search.label": "Search",
48
+ "edge.label": "EDGE",
49
+ "workflows.label": "Workflows",
50
+ "traces.label": "Traces",
51
+ "testing.label": "Testing",
52
+ // GitHub (deck-companion--github surface).
53
+ "github-loading.message": "Loading\u2026",
54
+ "github-unavailable.message": "GitHub feed unavailable.",
55
+ "recent-prs.label_one": "{{count}} recent PR",
56
+ "recent-prs.label_other": "{{count}} recent PRs",
57
+ "view-on-github.button": "View on GitHub"
58
+ }
59
+ }
60
+ }
61
+ ];
62
+ export {
63
+ translations
64
+ };
65
+ //# sourceMappingURL=translations.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/translations.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Resource } from '@dxos/react-ui';\nimport { translations as introspectTranslations } from '@dxos/react-ui-introspect/translations';\n\nimport { meta } from '#meta';\n\nexport const translations = [\n ...introspectTranslations,\n {\n 'en-US': {\n [meta.profile.key]: {\n 'plugin.name': 'Devtools',\n 'open-devtools.label': 'Open DevTools',\n 'devtools.label': 'DevTools',\n 'devtools-overview.label': 'Stats',\n 'debug-app-graph.label': 'App Graph',\n 'debug-tools-explorer.label': 'SDK Explorer',\n\n 'reset-data.label': 'Reset data (ERASES ALL DATA)',\n 'client.label': 'Client',\n 'config.label': 'Config',\n 'storage.label': 'Storage',\n 'sqlite.label': 'SQLite',\n 'logs.label': 'Logs',\n 'diagnostics.label': 'Diagnostics',\n 'tracing.label': 'Tracing',\n 'halo.label': 'HALO',\n 'identity.label': 'Identity',\n 'devices.label': 'Devices',\n 'keyring.label': 'Keyring',\n 'credentials.label': 'Credentials',\n 'echo.label': 'ECHO',\n 'spaces.label': 'Spaces',\n 'space.label': 'Space',\n 'feeds.label': 'Feeds',\n 'objects.label': 'Objects',\n 'schema.label': 'Schema',\n 'registry.label': 'Registry',\n 'automerge.label': 'Automerge',\n 'queues.label': 'Queues',\n 'members.label': 'Members',\n 'metadata.label': 'Metadata',\n 'mesh.label': 'MESH',\n 'signal.label': 'Signal',\n 'swarm.label': 'Swarm',\n 'network.label': 'Network',\n 'agent.label': 'Agent',\n 'dashboard.label': 'Dashboard',\n 'search.label': 'Search',\n 'edge.label': 'EDGE',\n 'workflows.label': 'Workflows',\n 'traces.label': 'Traces',\n 'testing.label': 'Testing',\n // GitHub (deck-companion--github surface).\n 'github-loading.message': 'Loading…',\n 'github-unavailable.message': 'GitHub feed unavailable.',\n 'recent-prs.label_one': '{{count}} recent PR',\n 'recent-prs.label_other': '{{count}} recent PRs',\n 'view-on-github.button': 'View on GitHub',\n },\n },\n },\n] as const satisfies Resource[];\n"],
5
+ "mappings": ";;;AAKA,SAASA,gBAAgBC,8BAA8B;AAEvD,SAASC,YAAY;AAEd,IAAMF,eAAe;KACvBC;EACH;IACE,SAAS;MACP,CAACC,KAAKC,QAAQC,GAAG,GAAG;QAClB,eAAe;QACf,uBAAuB;QACvB,kBAAkB;QAClB,2BAA2B;QAC3B,yBAAyB;QACzB,8BAA8B;QAE9B,oBAAoB;QACpB,gBAAgB;QAChB,gBAAgB;QAChB,iBAAiB;QACjB,gBAAgB;QAChB,cAAc;QACd,qBAAqB;QACrB,iBAAiB;QACjB,cAAc;QACd,kBAAkB;QAClB,iBAAiB;QACjB,iBAAiB;QACjB,qBAAqB;QACrB,cAAc;QACd,gBAAgB;QAChB,eAAe;QACf,eAAe;QACf,iBAAiB;QACjB,gBAAgB;QAChB,kBAAkB;QAClB,mBAAmB;QACnB,gBAAgB;QAChB,iBAAiB;QACjB,kBAAkB;QAClB,cAAc;QACd,gBAAgB;QAChB,eAAe;QACf,iBAAiB;QACjB,eAAe;QACf,mBAAmB;QACnB,gBAAgB;QAChB,cAAc;QACd,mBAAmB;QACnB,gBAAgB;QAChB,iBAAiB;;QAEjB,0BAA0B;QAC1B,8BAA8B;QAC9B,wBAAwB;QACxB,0BAA0B;QAC1B,yBAAyB;MAC3B;IACF;EACF;;",
6
+ "names": ["translations", "introspectTranslations", "meta", "profile", "key"]
7
+ }
@@ -0,0 +1,8 @@
1
+ import {
2
+ Devtools_exports
3
+ } from "../chunk-PJNVAE7D.mjs";
4
+ import "../chunk-J5LGTIGS.mjs";
5
+ export {
6
+ Devtools_exports as Devtools
7
+ };
8
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
@@ -0,0 +1,28 @@
1
+ declare const _default: {
2
+ readonly plugin: {
3
+ readonly key: string;
4
+ readonly name: string;
5
+ readonly description?: string | undefined;
6
+ readonly author?: string | undefined;
7
+ readonly homePage?: string | undefined;
8
+ readonly source?: string | undefined;
9
+ readonly screenshots?: readonly {
10
+ readonly light?: string | undefined;
11
+ readonly dark?: string | undefined;
12
+ }[] | undefined;
13
+ readonly tags?: readonly string[] | undefined;
14
+ readonly icon?: {
15
+ readonly key: string;
16
+ readonly hue?: string | undefined;
17
+ } | undefined;
18
+ readonly spec?: string | undefined;
19
+ readonly dependsOn?: readonly string[] | undefined;
20
+ };
21
+ readonly publish?: {
22
+ readonly buildCommand?: string | undefined;
23
+ readonly outputDirectory?: string | undefined;
24
+ readonly assetBaseUrl?: string | undefined;
25
+ } | undefined;
26
+ };
27
+ export default _default;
28
+ //# sourceMappingURL=dx.config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dx.config.d.ts","sourceRoot":"","sources":["../../dx.config.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import { Plugin } from '@dxos/app-framework';
2
+ export declare const DevtoolsPlugin: Plugin.PluginFactory<void>;
3
+ export default DevtoolsPlugin;
4
+ //# sourceMappingURL=DevtoolsPlugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DevtoolsPlugin.d.ts","sourceRoot":"","sources":["../../../src/DevtoolsPlugin.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAgC,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAW3E,eAAO,MAAM,cAAc,4BAkB1B,CAAC;eAkBa,cAAc"}
@@ -0,0 +1,4 @@
1
+ import { Plugin } from '@dxos/app-framework';
2
+ export declare const DevtoolsPlugin: Plugin.PluginFactory<void>;
3
+ export default DevtoolsPlugin;
4
+ //# sourceMappingURL=DevtoolsPlugin.node.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DevtoolsPlugin.node.d.ts","sourceRoot":"","sources":["../../../src/DevtoolsPlugin.node.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAM7C,eAAO,MAAM,cAAc,4BAG1B,CAAC;eAEa,cAAc"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=DevtoolsPlugin.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DevtoolsPlugin.test.d.ts","sourceRoot":"","sources":["../../../src/DevtoolsPlugin.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import { Plugin } from '@dxos/app-framework';
2
+ export declare const DevtoolsPlugin: Plugin.PluginFactory<void>;
3
+ export default DevtoolsPlugin;
4
+ //# sourceMappingURL=DevtoolsPlugin.workerd.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DevtoolsPlugin.workerd.d.ts","sourceRoot":"","sources":["../../../src/DevtoolsPlugin.workerd.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAI7C,eAAO,MAAM,cAAc,4BAAwC,CAAC;eAErD,cAAc"}
@@ -0,0 +1,5 @@
1
+ import * as Effect from 'effect/Effect';
2
+ import { Capability } from '@dxos/app-framework';
3
+ declare const _default: (props: void) => Effect.Effect<Capability.Any, never, Capability.Service>;
4
+ export default _default;
5
+ //# 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.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { Capability } from '@dxos/app-framework';
2
+ export declare const AppGraphBuilder: Capability.LazyCapability<void, Capability.ModuleReturn, Error>;
3
+ export declare const ReactContext: Capability.LazyCapability<void, Capability.ModuleReturn, Error>;
4
+ export declare const ReactSurface: Capability.LazyCapability<void, Capability.ModuleReturn, Error>;
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,eAAO,MAAM,eAAe,iEAA0E,CAAC;AACvG,eAAO,MAAM,YAAY,iEAAmE,CAAC;AAC7F,eAAO,MAAM,YAAY,iEAAmE,CAAC"}
@@ -0,0 +1,5 @@
1
+ import * as Effect from 'effect/Effect';
2
+ import { Capability } from '@dxos/app-framework';
3
+ declare const _default: (props: void) => Effect.Effect<Capability.Any, never, never>;
4
+ export default _default;
5
+ //# sourceMappingURL=react-context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"react-context.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/react-context.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC"}
@@ -0,0 +1,5 @@
1
+ import * as Effect from 'effect/Effect';
2
+ import { Capability } from '@dxos/app-framework';
3
+ declare const _default: (props: void) => Effect.Effect<Capability.Any, 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.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC"}
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { Graph } from '@dxos/plugin-graph';
3
+ export type DebugGraphProps = {
4
+ graph: Graph.Graph;
5
+ root: string;
6
+ };
7
+ export declare function DebugGraph({ graph, root }: DebugGraphProps): React.JSX.Element;
8
+ export declare namespace DebugGraph {
9
+ var displayName: string;
10
+ }
11
+ //# sourceMappingURL=DebugGraph.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DebugGraph.d.ts","sourceRoot":"","sources":["../../../../../src/containers/DebugGraph/DebugGraph.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAE3C,MAAM,MAAM,eAAe,GAAG;IAAE,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;mCAExC,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,eAAe"}
@@ -0,0 +1,2 @@
1
+ export { DebugGraph as default } from './DebugGraph';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/containers/DebugGraph/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,IAAI,OAAO,EAAE,MAAM,cAAc,CAAC"}
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ export declare function DevtoolsOverviewContainer(): React.JSX.Element;
3
+ export declare namespace DevtoolsOverviewContainer {
4
+ var displayName: string;
5
+ }
6
+ //# sourceMappingURL=DevtoolsOverviewContainer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DevtoolsOverviewContainer.d.ts","sourceRoot":"","sources":["../../../../../src/containers/DevtoolsOverviewContainer/DevtoolsOverviewContainer.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA+B,MAAM,OAAO,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { DevtoolsOverviewContainer as default } from './DevtoolsOverviewContainer';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/containers/DevtoolsOverviewContainer/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,yBAAyB,IAAI,OAAO,EAAE,MAAM,6BAA6B,CAAC"}