@dxos/plugin-debug 0.8.4-main.c4373fc → 0.8.4-main.c85a9c8dae

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 (188) hide show
  1. package/dist/lib/browser/DebugGraph-7HXJ2PS2.mjs +16 -0
  2. package/dist/lib/browser/DebugGraph-7HXJ2PS2.mjs.map +7 -0
  3. package/dist/lib/browser/DebugObjectPanel-3TCDNUNW.mjs +33 -0
  4. package/dist/lib/browser/DebugObjectPanel-3TCDNUNW.mjs.map +7 -0
  5. package/dist/lib/browser/DebugSettings-JZMIUDYB.mjs +174 -0
  6. package/dist/lib/browser/DebugSettings-JZMIUDYB.mjs.map +7 -0
  7. package/dist/lib/browser/DebugSpaceObjectsPanel-7NRPLWZ4.mjs +50 -0
  8. package/dist/lib/browser/DebugSpaceObjectsPanel-7NRPLWZ4.mjs.map +7 -0
  9. package/dist/lib/browser/DebugStatus-COQGH37G.mjs +125 -0
  10. package/dist/lib/browser/DebugStatus-COQGH37G.mjs.map +7 -0
  11. package/dist/lib/browser/DevtoolsOverviewContainer-C75NFVER.mjs +20 -0
  12. package/dist/lib/browser/DevtoolsOverviewContainer-C75NFVER.mjs.map +7 -0
  13. package/dist/lib/browser/{SpaceGenerator-54FUIZIH.mjs → SpaceGenerator-SWSGJEEL.mjs} +476 -461
  14. package/dist/lib/browser/SpaceGenerator-SWSGJEEL.mjs.map +7 -0
  15. package/dist/lib/browser/Wireframe-KAGOKEFW.mjs +53 -0
  16. package/dist/lib/browser/Wireframe-KAGOKEFW.mjs.map +7 -0
  17. package/dist/lib/browser/app-graph-builder-LGUQNXHD.mjs +625 -0
  18. package/dist/lib/browser/app-graph-builder-LGUQNXHD.mjs.map +7 -0
  19. package/dist/lib/browser/{chunk-SRV2AIGJ.mjs → chunk-4UFQXPP7.mjs} +11 -1
  20. package/dist/lib/browser/chunk-4UFQXPP7.mjs.map +7 -0
  21. package/dist/lib/browser/chunk-A5H5GRV6.mjs +20 -0
  22. package/dist/lib/browser/chunk-A5H5GRV6.mjs.map +7 -0
  23. package/dist/lib/browser/index.mjs +42 -41
  24. package/dist/lib/browser/index.mjs.map +4 -4
  25. package/dist/lib/browser/meta.json +1 -1
  26. package/dist/lib/browser/react-context-I3USIAF6.mjs +17 -0
  27. package/dist/lib/browser/react-context-I3USIAF6.mjs.map +7 -0
  28. package/dist/lib/browser/react-surface-BTVNKKVQ.mjs +443 -0
  29. package/dist/lib/browser/react-surface-BTVNKKVQ.mjs.map +7 -0
  30. package/dist/lib/browser/settings-SLTQJJNF.mjs +32 -0
  31. package/dist/lib/browser/settings-SLTQJJNF.mjs.map +7 -0
  32. package/dist/types/src/DebugPlugin.d.ts +7 -1
  33. package/dist/types/src/DebugPlugin.d.ts.map +1 -1
  34. package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts +6 -0
  35. package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts.map +1 -0
  36. package/dist/types/src/capabilities/app-graph-builder/index.d.ts +3 -0
  37. package/dist/types/src/capabilities/app-graph-builder/index.d.ts.map +1 -0
  38. package/dist/types/src/capabilities/index.d.ts +4 -8
  39. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  40. package/dist/types/src/capabilities/react-context/index.d.ts +7 -0
  41. package/dist/types/src/capabilities/react-context/index.d.ts.map +1 -0
  42. package/dist/types/src/capabilities/react-context/react-context.d.ts +10 -0
  43. package/dist/types/src/capabilities/react-context/react-context.d.ts.map +1 -0
  44. package/dist/types/src/capabilities/react-surface/index.d.ts +5 -0
  45. package/dist/types/src/capabilities/react-surface/index.d.ts.map +1 -0
  46. package/dist/types/src/capabilities/react-surface/react-surface.d.ts +9 -0
  47. package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +1 -0
  48. package/dist/types/src/capabilities/settings/index.d.ts +3 -0
  49. package/dist/types/src/capabilities/settings/index.d.ts.map +1 -0
  50. package/dist/types/src/capabilities/settings/settings.d.ts +6 -0
  51. package/dist/types/src/capabilities/settings/settings.d.ts.map +1 -0
  52. package/dist/types/src/components/SchemaTable/SchemaTable.d.ts.map +1 -0
  53. package/dist/types/src/components/SchemaTable/index.d.ts +2 -0
  54. package/dist/types/src/components/SchemaTable/index.d.ts.map +1 -0
  55. package/dist/types/src/components/SpaceGenerator/ObjectGenerator.d.ts +5 -5
  56. package/dist/types/src/components/SpaceGenerator/ObjectGenerator.d.ts.map +1 -1
  57. package/dist/types/src/components/SpaceGenerator/index.d.ts +2 -2
  58. package/dist/types/src/components/SpaceGenerator/index.d.ts.map +1 -1
  59. package/dist/types/src/components/SpaceGenerator/presets.d.ts +2 -5
  60. package/dist/types/src/components/SpaceGenerator/presets.d.ts.map +1 -1
  61. package/dist/types/src/components/index.d.ts +2 -10
  62. package/dist/types/src/components/index.d.ts.map +1 -1
  63. package/dist/types/src/containers/DebugGraph/DebugGraph.d.ts +8 -0
  64. package/dist/types/src/containers/DebugGraph/DebugGraph.d.ts.map +1 -0
  65. package/dist/types/src/containers/DebugGraph/index.d.ts +3 -0
  66. package/dist/types/src/containers/DebugGraph/index.d.ts.map +1 -0
  67. package/dist/types/src/{components → containers/DebugObjectPanel}/DebugObjectPanel.d.ts +2 -2
  68. package/dist/types/src/containers/DebugObjectPanel/DebugObjectPanel.d.ts.map +1 -0
  69. package/dist/types/src/containers/DebugObjectPanel/index.d.ts +3 -0
  70. package/dist/types/src/containers/DebugObjectPanel/index.d.ts.map +1 -0
  71. package/dist/types/src/containers/DebugSettings/DebugSettings.d.ts +10 -0
  72. package/dist/types/src/containers/DebugSettings/DebugSettings.d.ts.map +1 -0
  73. package/dist/types/src/containers/DebugSettings/index.d.ts +3 -0
  74. package/dist/types/src/containers/DebugSettings/index.d.ts.map +1 -0
  75. package/dist/types/src/containers/DebugSpaceObjectsPanel/DebugSpaceObjectsPanel.d.ts +3 -0
  76. package/dist/types/src/containers/DebugSpaceObjectsPanel/DebugSpaceObjectsPanel.d.ts.map +1 -0
  77. package/dist/types/src/containers/DebugSpaceObjectsPanel/index.d.ts +3 -0
  78. package/dist/types/src/containers/DebugSpaceObjectsPanel/index.d.ts.map +1 -0
  79. package/dist/types/src/containers/DebugStatus/DebugStatus.d.ts.map +1 -0
  80. package/dist/types/src/containers/DebugStatus/index.d.ts +3 -0
  81. package/dist/types/src/containers/DebugStatus/index.d.ts.map +1 -0
  82. package/dist/types/src/{components → containers/DevtoolsOverviewContainer}/DevtoolsOverviewContainer.d.ts +0 -1
  83. package/dist/types/src/containers/DevtoolsOverviewContainer/DevtoolsOverviewContainer.d.ts.map +1 -0
  84. package/dist/types/src/containers/DevtoolsOverviewContainer/index.d.ts +3 -0
  85. package/dist/types/src/containers/DevtoolsOverviewContainer/index.d.ts.map +1 -0
  86. package/dist/types/src/{components → containers}/SpaceGenerator/SpaceGenerator.d.ts +2 -2
  87. package/dist/types/src/containers/SpaceGenerator/SpaceGenerator.d.ts.map +1 -0
  88. package/dist/types/src/containers/SpaceGenerator/index.d.ts +3 -0
  89. package/dist/types/src/containers/SpaceGenerator/index.d.ts.map +1 -0
  90. package/dist/types/src/{components → containers/Wireframe}/Wireframe.d.ts +2 -2
  91. package/dist/types/src/containers/Wireframe/Wireframe.d.ts.map +1 -0
  92. package/dist/types/src/containers/Wireframe/index.d.ts +3 -0
  93. package/dist/types/src/containers/Wireframe/index.d.ts.map +1 -0
  94. package/dist/types/src/containers/index.d.ts +10 -0
  95. package/dist/types/src/containers/index.d.ts.map +1 -0
  96. package/dist/types/src/meta.d.ts +2 -2
  97. package/dist/types/src/meta.d.ts.map +1 -1
  98. package/dist/types/src/translations.d.ts +3 -1
  99. package/dist/types/src/translations.d.ts.map +1 -1
  100. package/dist/types/src/types.d.ts +5 -0
  101. package/dist/types/src/types.d.ts.map +1 -1
  102. package/dist/types/tsconfig.tsbuildinfo +1 -1
  103. package/package.json +75 -69
  104. package/src/DebugPlugin.tsx +27 -31
  105. package/src/capabilities/app-graph-builder/app-graph-builder.ts +441 -0
  106. package/src/capabilities/app-graph-builder/index.ts +7 -0
  107. package/src/capabilities/index.ts +4 -6
  108. package/src/capabilities/react-context/index.ts +7 -0
  109. package/src/capabilities/react-context/react-context.tsx +20 -0
  110. package/src/capabilities/react-surface/index.ts +7 -0
  111. package/src/capabilities/react-surface/react-surface.tsx +428 -0
  112. package/src/capabilities/settings/index.ts +7 -0
  113. package/src/capabilities/settings/settings.ts +31 -0
  114. package/src/components/SchemaTable/index.ts +5 -0
  115. package/src/components/SpaceGenerator/ObjectGenerator.tsx +26 -32
  116. package/src/components/SpaceGenerator/index.ts +2 -3
  117. package/src/components/SpaceGenerator/presets.ts +258 -141
  118. package/src/components/index.ts +2 -10
  119. package/src/containers/DebugGraph/DebugGraph.tsx +13 -0
  120. package/src/containers/DebugGraph/index.ts +7 -0
  121. package/src/containers/DebugObjectPanel/DebugObjectPanel.tsx +45 -0
  122. package/src/containers/DebugObjectPanel/index.ts +7 -0
  123. package/src/{components → containers/DebugSettings}/DebugSettings.tsx +78 -36
  124. package/src/containers/DebugSettings/index.ts +7 -0
  125. package/src/containers/DebugSpaceObjectsPanel/DebugSpaceObjectsPanel.tsx +60 -0
  126. package/src/containers/DebugSpaceObjectsPanel/index.ts +7 -0
  127. package/src/containers/DebugStatus/index.ts +7 -0
  128. package/src/{components → containers/DevtoolsOverviewContainer}/DevtoolsOverviewContainer.tsx +2 -4
  129. package/src/containers/DevtoolsOverviewContainer/index.ts +7 -0
  130. package/src/containers/SpaceGenerator/SpaceGenerator.tsx +127 -0
  131. package/src/containers/SpaceGenerator/index.ts +7 -0
  132. package/src/{components → containers/Wireframe}/Wireframe.tsx +6 -7
  133. package/src/containers/Wireframe/index.ts +7 -0
  134. package/src/containers/index.ts +14 -0
  135. package/src/meta.ts +7 -4
  136. package/src/translations.ts +3 -1
  137. package/src/types.ts +8 -0
  138. package/dist/lib/browser/DebugGraph-EDOH6R2G.mjs +0 -20
  139. package/dist/lib/browser/DebugGraph-EDOH6R2G.mjs.map +0 -7
  140. package/dist/lib/browser/DevtoolsOverviewContainer-EPD6EWT5.mjs +0 -25
  141. package/dist/lib/browser/DevtoolsOverviewContainer-EPD6EWT5.mjs.map +0 -7
  142. package/dist/lib/browser/SpaceGenerator-54FUIZIH.mjs.map +0 -7
  143. package/dist/lib/browser/app-graph-builder-I4IHBKKN.mjs +0 -588
  144. package/dist/lib/browser/app-graph-builder-I4IHBKKN.mjs.map +0 -7
  145. package/dist/lib/browser/chunk-SRV2AIGJ.mjs.map +0 -7
  146. package/dist/lib/browser/chunk-SVCKCXCL.mjs +0 -16
  147. package/dist/lib/browser/chunk-SVCKCXCL.mjs.map +0 -7
  148. package/dist/lib/browser/react-context-QLZE7VSQ.mjs +0 -16
  149. package/dist/lib/browser/react-context-QLZE7VSQ.mjs.map +0 -7
  150. package/dist/lib/browser/react-surface-BTWJ2I3F.mjs +0 -772
  151. package/dist/lib/browser/react-surface-BTWJ2I3F.mjs.map +0 -7
  152. package/dist/lib/browser/settings-EBVICEEW.mjs +0 -22
  153. package/dist/lib/browser/settings-EBVICEEW.mjs.map +0 -7
  154. package/dist/types/src/capabilities/app-graph-builder.d.ts +0 -4
  155. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +0 -1
  156. package/dist/types/src/capabilities/react-context.d.ts +0 -8
  157. package/dist/types/src/capabilities/react-context.d.ts.map +0 -1
  158. package/dist/types/src/capabilities/react-surface.d.ts +0 -4
  159. package/dist/types/src/capabilities/react-surface.d.ts.map +0 -1
  160. package/dist/types/src/capabilities/settings.d.ts +0 -4
  161. package/dist/types/src/capabilities/settings.d.ts.map +0 -1
  162. package/dist/types/src/components/Container.d.ts +0 -5
  163. package/dist/types/src/components/Container.d.ts.map +0 -1
  164. package/dist/types/src/components/DebugGraph.d.ts +0 -8
  165. package/dist/types/src/components/DebugGraph.d.ts.map +0 -1
  166. package/dist/types/src/components/DebugObjectPanel.d.ts.map +0 -1
  167. package/dist/types/src/components/DebugSettings.d.ts +0 -6
  168. package/dist/types/src/components/DebugSettings.d.ts.map +0 -1
  169. package/dist/types/src/components/DebugStatus.d.ts.map +0 -1
  170. package/dist/types/src/components/DevtoolsOverviewContainer.d.ts.map +0 -1
  171. package/dist/types/src/components/SpaceGenerator/SchemaTable.d.ts.map +0 -1
  172. package/dist/types/src/components/SpaceGenerator/SpaceGenerator.d.ts.map +0 -1
  173. package/dist/types/src/components/SpaceGenerator/SpaceGenerator.stories.d.ts +0 -15
  174. package/dist/types/src/components/SpaceGenerator/SpaceGenerator.stories.d.ts.map +0 -1
  175. package/dist/types/src/components/Wireframe.d.ts.map +0 -1
  176. package/src/capabilities/app-graph-builder.ts +0 -431
  177. package/src/capabilities/react-context.tsx +0 -16
  178. package/src/capabilities/react-surface.tsx +0 -399
  179. package/src/capabilities/settings.ts +0 -19
  180. package/src/components/Container.tsx +0 -15
  181. package/src/components/DebugGraph.tsx +0 -14
  182. package/src/components/DebugObjectPanel.tsx +0 -33
  183. package/src/components/SpaceGenerator/SpaceGenerator.stories.tsx +0 -52
  184. package/src/components/SpaceGenerator/SpaceGenerator.tsx +0 -122
  185. /package/dist/types/src/components/{SpaceGenerator → SchemaTable}/SchemaTable.d.ts +0 -0
  186. /package/dist/types/src/{components → containers/DebugStatus}/DebugStatus.d.ts +0 -0
  187. /package/src/components/{SpaceGenerator → SchemaTable}/SchemaTable.tsx +0 -0
  188. /package/src/{components → containers/DebugStatus}/DebugStatus.tsx +0 -0
@@ -0,0 +1,443 @@
1
+ import {
2
+ DebugCapabilities,
3
+ Devtools
4
+ } from "./chunk-4UFQXPP7.mjs";
5
+ import {
6
+ meta
7
+ } from "./chunk-A5H5GRV6.mjs";
8
+
9
+ // src/capabilities/react-surface/react-surface.tsx
10
+ import * as Effect from "effect/Effect";
11
+ import React, { useCallback } from "react";
12
+ import { Capabilities, Capability } from "@dxos/app-framework";
13
+ import { Surface, useCapability, useOperationInvoker, useSettingsState } from "@dxos/app-framework/ui";
14
+ import { AppCapabilities, LayoutOperation } from "@dxos/app-toolkit";
15
+ import { useLayout } from "@dxos/app-toolkit/ui";
16
+ import { AutomergePanel, ConfigPanel, CredentialsPanel, DeviceListPanel, DiagnosticsPanel, EdgeDashboardPanel, FeedsPanel, IdentityPanel, InvocationTraceContainer, KeyringPanel, LoggingPanel, MembersPanel, MetadataPanel, NetworkPanel, ObjectsPanel, QueuesPanel, SchemaPanel, SignalPanel, SpaceInfoPanel, SpaceListPanel, StoragePanel, SwarmPanel, TestingPanel, TracingPanel, WorkflowPanel } from "@dxos/devtools";
17
+ import { Obj } from "@dxos/echo";
18
+ import { Collection } from "@dxos/echo";
19
+ import { log } from "@dxos/log";
20
+ import { ClientCapabilities } from "@dxos/plugin-client";
21
+ import { ScriptOperation } from "@dxos/plugin-script/types";
22
+ import { SpaceOperation } from "@dxos/plugin-space/types";
23
+ import { SpaceState, isSpace, parseId } from "@dxos/react-client/echo";
24
+ import { Panel } from "@dxos/react-ui";
25
+
26
+ // src/containers/index.ts
27
+ import { lazy } from "react";
28
+ var DebugGraph = lazy(() => import("./DebugGraph-7HXJ2PS2.mjs"));
29
+ var DebugObjectPanel = lazy(() => import("./DebugObjectPanel-3TCDNUNW.mjs"));
30
+ var DebugSettings = lazy(() => import("./DebugSettings-JZMIUDYB.mjs"));
31
+ var DebugStatus = lazy(() => import("./DebugStatus-COQGH37G.mjs"));
32
+ var DevtoolsOverviewContainer = lazy(() => import("./DevtoolsOverviewContainer-C75NFVER.mjs"));
33
+ var SpaceGenerator = lazy(() => import("./SpaceGenerator-SWSGJEEL.mjs"));
34
+ var Wireframe = lazy(() => import("./Wireframe-KAGOKEFW.mjs"));
35
+ var DebugSpaceObjectsPanel = lazy(() => import("./DebugSpaceObjectsPanel-7NRPLWZ4.mjs"));
36
+
37
+ // src/capabilities/react-surface/react-surface.tsx
38
+ var __dxlog_file = "/__w/dxos/dxos/packages/plugins/plugin-debug/src/capabilities/react-surface/react-surface.tsx";
39
+ var isSpaceDebug = (data) => data?.type === `${meta.id}/space` && isSpace(data.space);
40
+ var isGraphDebug = (data) => {
41
+ const graph = data?.graph;
42
+ return graph != null && typeof graph === "object" && typeof graph.json === "function" && typeof data?.root === "string";
43
+ };
44
+ var useCurrentSpace = () => {
45
+ const layout = useLayout();
46
+ const client = useCapability(ClientCapabilities.Client);
47
+ const { spaceId } = parseId(layout.workspace);
48
+ const space = spaceId ? client.spaces.get(spaceId) : void 0;
49
+ return space;
50
+ };
51
+ var react_surface_default = Capability.makeModule(Effect.fnUntraced(function* ({ logBuffer }) {
52
+ const capabilities = yield* Capability.Service;
53
+ const registry = capabilities.get(Capabilities.AtomRegistry);
54
+ const settingsAtom = capabilities.get(DebugCapabilities.Settings);
55
+ return Capability.contributes(Capabilities.ReactSurface, [
56
+ Surface.create({
57
+ id: `${meta.id}/plugin-settings`,
58
+ role: "article",
59
+ filter: (data) => AppCapabilities.isSettings(data.subject) && data.subject.prefix === meta.id,
60
+ component: ({ data: { subject } }) => {
61
+ const { settings, updateSettings } = useSettingsState(subject.atom);
62
+ return /* @__PURE__ */ React.createElement(DebugSettings, {
63
+ settings,
64
+ onSettingsChange: updateSettings,
65
+ logBuffer
66
+ });
67
+ }
68
+ }),
69
+ Surface.create({
70
+ id: `${meta.id}/space`,
71
+ role: "article",
72
+ filter: (data) => isSpaceDebug(data.subject),
73
+ component: ({ role, data }) => {
74
+ const { invokePromise } = useOperationInvoker();
75
+ const handleCreateObject = useCallback((objects) => {
76
+ if (!isSpace(data.subject.space)) {
77
+ return;
78
+ }
79
+ const collection = data.subject.space.state.get() === SpaceState.SPACE_READY && data.subject.space.properties[Collection.Collection.typename]?.target;
80
+ if (!Obj.instanceOf(Collection.Collection, collection)) {
81
+ return;
82
+ }
83
+ objects.forEach((object) => {
84
+ void invokePromise(SpaceOperation.AddObject, {
85
+ target: collection,
86
+ object
87
+ });
88
+ });
89
+ }, [
90
+ data.subject.space,
91
+ invokePromise
92
+ ]);
93
+ return /* @__PURE__ */ React.createElement(Panel.Root, {
94
+ role,
95
+ className: "dx-article"
96
+ }, /* @__PURE__ */ React.createElement(Panel.Content, {
97
+ asChild: true
98
+ }, /* @__PURE__ */ React.createElement(Panel.Content, {
99
+ asChild: true
100
+ }, /* @__PURE__ */ React.createElement(SpaceGenerator, {
101
+ space: data.subject.space,
102
+ onCreateObjects: handleCreateObject
103
+ }))));
104
+ }
105
+ }),
106
+ Surface.create({
107
+ id: `${meta.id}/app-graph`,
108
+ role: "article",
109
+ filter: (data) => isGraphDebug(data.subject),
110
+ component: ({ data }) => /* @__PURE__ */ React.createElement(DebugGraph, {
111
+ graph: data.subject.graph,
112
+ root: data.subject.root
113
+ })
114
+ }),
115
+ Surface.create({
116
+ id: `${meta.id}/wireframe`,
117
+ role: [
118
+ "article",
119
+ "section"
120
+ ],
121
+ position: "hoist",
122
+ filter: (data) => {
123
+ const settings = registry.get(settingsAtom);
124
+ return Obj.isObject(data.subject) && !!settings.wireframe;
125
+ },
126
+ component: ({ data, role, name }) => /* @__PURE__ */ React.createElement(Wireframe, {
127
+ label: `${role}:${name}`,
128
+ object: data.subject,
129
+ classNames: "row-span-2 overflow-hidden"
130
+ })
131
+ }),
132
+ Surface.create({
133
+ id: `${meta.id}/object-debug`,
134
+ role: "article",
135
+ filter: (data) => data.subject === "debug" && Obj.isObject(data.companionTo),
136
+ component: ({ data }) => /* @__PURE__ */ React.createElement(DebugObjectPanel, {
137
+ object: data.companionTo
138
+ })
139
+ }),
140
+ Surface.create({
141
+ id: `${meta.id}/devtools-overview`,
142
+ role: "deck-companion--devtools",
143
+ filter: (data) => data.subject === "devtools",
144
+ component: () => /* @__PURE__ */ React.createElement(DevtoolsOverviewContainer, null)
145
+ }),
146
+ Surface.create({
147
+ id: `${meta.id}/space-objects`,
148
+ role: "deck-companion--space-objects",
149
+ filter: (data) => data.subject === "space-objects",
150
+ component: () => /* @__PURE__ */ React.createElement(DebugSpaceObjectsPanel, null)
151
+ }),
152
+ Surface.create({
153
+ id: `${meta.id}/status`,
154
+ role: "status",
155
+ component: () => /* @__PURE__ */ React.createElement(DebugStatus, null)
156
+ }),
157
+ //
158
+ // Devtools
159
+ //
160
+ Surface.create({
161
+ id: `${meta.id}/client/config`,
162
+ role: "article",
163
+ filter: (data) => data.subject === Devtools.Client.Config,
164
+ component: () => /* @__PURE__ */ React.createElement(ConfigPanel, {
165
+ vaultSelector: false
166
+ })
167
+ }),
168
+ Surface.create({
169
+ id: `${meta.id}/client/storage`,
170
+ role: "article",
171
+ filter: (data) => data.subject === Devtools.Client.Storage,
172
+ component: () => /* @__PURE__ */ React.createElement(StoragePanel, null)
173
+ }),
174
+ Surface.create({
175
+ id: `${meta.id}/client/logs`,
176
+ role: "article",
177
+ filter: (data) => data.subject === Devtools.Client.Logs,
178
+ component: () => /* @__PURE__ */ React.createElement(LoggingPanel, null)
179
+ }),
180
+ Surface.create({
181
+ id: `${meta.id}/client/diagnostics`,
182
+ role: "article",
183
+ filter: (data) => data.subject === Devtools.Client.Diagnostics,
184
+ component: () => /* @__PURE__ */ React.createElement(DiagnosticsPanel, null)
185
+ }),
186
+ Surface.create({
187
+ id: `${meta.id}/client/tracing`,
188
+ role: "article",
189
+ filter: (data) => data.subject === Devtools.Client.Tracing,
190
+ component: () => /* @__PURE__ */ React.createElement(TracingPanel, null)
191
+ }),
192
+ Surface.create({
193
+ id: `${meta.id}/halo/identity`,
194
+ role: "article",
195
+ filter: (data) => data.subject === Devtools.Halo.Identity,
196
+ component: () => /* @__PURE__ */ React.createElement(IdentityPanel, null)
197
+ }),
198
+ Surface.create({
199
+ id: `${meta.id}/halo/devices`,
200
+ role: "article",
201
+ filter: (data) => data.subject === Devtools.Halo.Devices,
202
+ component: () => /* @__PURE__ */ React.createElement(DeviceListPanel, null)
203
+ }),
204
+ Surface.create({
205
+ id: `${meta.id}/halo/keyring`,
206
+ role: "article",
207
+ filter: (data) => data.subject === Devtools.Halo.Keyring,
208
+ component: () => /* @__PURE__ */ React.createElement(KeyringPanel, null)
209
+ }),
210
+ Surface.create({
211
+ id: `${meta.id}/halo/credentials`,
212
+ role: "article",
213
+ filter: (data) => data.subject === Devtools.Halo.Credentials,
214
+ component: () => {
215
+ const space = useCurrentSpace();
216
+ return /* @__PURE__ */ React.createElement(CredentialsPanel, {
217
+ space
218
+ });
219
+ }
220
+ }),
221
+ Surface.create({
222
+ id: `${meta.id}/echo/spaces`,
223
+ role: "article",
224
+ filter: (data) => data.subject === Devtools.Echo.Spaces,
225
+ component: () => {
226
+ const { invokePromise } = useOperationInvoker();
227
+ const handleSelect = useCallback(() => invokePromise(LayoutOperation.Open, {
228
+ subject: [
229
+ Devtools.Echo.Space
230
+ ]
231
+ }), [
232
+ invokePromise
233
+ ]);
234
+ return /* @__PURE__ */ React.createElement(SpaceListPanel, {
235
+ onSelect: handleSelect
236
+ });
237
+ }
238
+ }),
239
+ Surface.create({
240
+ id: `${meta.id}/echo/space`,
241
+ role: "article",
242
+ filter: (data) => data.subject === Devtools.Echo.Space,
243
+ component: () => {
244
+ const space = useCurrentSpace();
245
+ const { invokePromise } = useOperationInvoker();
246
+ const handleSelect = useCallback(() => invokePromise(LayoutOperation.Open, {
247
+ subject: [
248
+ Devtools.Echo.Feeds
249
+ ]
250
+ }), [
251
+ invokePromise
252
+ ]);
253
+ return /* @__PURE__ */ React.createElement(SpaceInfoPanel, {
254
+ space,
255
+ onSelectFeed: handleSelect,
256
+ onSelectPipeline: handleSelect
257
+ });
258
+ }
259
+ }),
260
+ Surface.create({
261
+ id: `${meta.id}/echo/feeds`,
262
+ role: "article",
263
+ filter: (data) => data.subject === Devtools.Echo.Feeds,
264
+ component: () => {
265
+ const space = useCurrentSpace();
266
+ return /* @__PURE__ */ React.createElement(FeedsPanel, {
267
+ space
268
+ });
269
+ }
270
+ }),
271
+ Surface.create({
272
+ id: `${meta.id}/echo/objects`,
273
+ role: "article",
274
+ filter: (data) => data.subject === Devtools.Echo.Objects,
275
+ component: () => {
276
+ const space = useCurrentSpace();
277
+ return /* @__PURE__ */ React.createElement(ObjectsPanel, {
278
+ space
279
+ });
280
+ }
281
+ }),
282
+ Surface.create({
283
+ id: `${meta.id}/echo/schema`,
284
+ role: "article",
285
+ filter: (data) => data.subject === Devtools.Echo.Schema,
286
+ component: () => {
287
+ const space = useCurrentSpace();
288
+ return /* @__PURE__ */ React.createElement(SchemaPanel, {
289
+ space
290
+ });
291
+ }
292
+ }),
293
+ Surface.create({
294
+ id: `${meta.id}/echo/automerge`,
295
+ role: "article",
296
+ filter: (data) => data.subject === Devtools.Echo.Automerge,
297
+ component: () => {
298
+ const space = useCurrentSpace();
299
+ return /* @__PURE__ */ React.createElement(AutomergePanel, {
300
+ space
301
+ });
302
+ }
303
+ }),
304
+ Surface.create({
305
+ id: `${meta.id}/echo/queues`,
306
+ role: "article",
307
+ filter: (data) => data.subject === Devtools.Echo.Queues,
308
+ component: () => /* @__PURE__ */ React.createElement(QueuesPanel, null)
309
+ }),
310
+ Surface.create({
311
+ id: `${meta.id}/echo/members`,
312
+ role: "article",
313
+ filter: (data) => data.subject === Devtools.Echo.Members,
314
+ component: () => {
315
+ const space = useCurrentSpace();
316
+ return /* @__PURE__ */ React.createElement(MembersPanel, {
317
+ space
318
+ });
319
+ }
320
+ }),
321
+ Surface.create({
322
+ id: `${meta.id}/echo/metadata`,
323
+ role: "article",
324
+ filter: (data) => data.subject === Devtools.Echo.Metadata,
325
+ component: () => /* @__PURE__ */ React.createElement(MetadataPanel, null)
326
+ }),
327
+ Surface.create({
328
+ id: `${meta.id}/mesh/signal`,
329
+ role: "article",
330
+ filter: (data) => data.subject === Devtools.Mesh.Signal,
331
+ component: () => /* @__PURE__ */ React.createElement(SignalPanel, null)
332
+ }),
333
+ Surface.create({
334
+ id: `${meta.id}/mesh/swarm`,
335
+ role: "article",
336
+ filter: (data) => data.subject === Devtools.Mesh.Swarm,
337
+ component: () => /* @__PURE__ */ React.createElement(SwarmPanel, null)
338
+ }),
339
+ Surface.create({
340
+ id: `${meta.id}/mesh/network`,
341
+ role: "article",
342
+ filter: (data) => data.subject === Devtools.Mesh.Network,
343
+ component: () => {
344
+ const space = useCurrentSpace();
345
+ return /* @__PURE__ */ React.createElement(NetworkPanel, {
346
+ space
347
+ });
348
+ }
349
+ }),
350
+ // TODO(wittjosiah): Remove?
351
+ // createSurface({
352
+ // id: `${meta.id}/agent/dashboard`,
353
+ // role: 'article',
354
+ // filter: (data): data is any => data.subject === Devtools.Agent.Dashboard,
355
+ // component: () => <DashboardPanel />,
356
+ // }),
357
+ Surface.create({
358
+ id: `${meta.id}/edge/dashboard`,
359
+ role: "article",
360
+ filter: (data) => data.subject === Devtools.Edge.Dashboard,
361
+ component: () => /* @__PURE__ */ React.createElement(EdgeDashboardPanel, null)
362
+ }),
363
+ Surface.create({
364
+ id: `${meta.id}/edge/workflows`,
365
+ role: "article",
366
+ filter: (data) => data.subject === Devtools.Edge.Workflows,
367
+ component: () => {
368
+ const space = useCurrentSpace();
369
+ return /* @__PURE__ */ React.createElement(WorkflowPanel, {
370
+ space
371
+ });
372
+ }
373
+ }),
374
+ Surface.create({
375
+ id: `${meta.id}/edge/traces`,
376
+ role: "article",
377
+ filter: (data) => data.subject === Devtools.Edge.Traces,
378
+ component: () => {
379
+ const space = useCurrentSpace();
380
+ const queueDxn = space?.properties.invocationTraceQueue?.dxn;
381
+ return /* @__PURE__ */ React.createElement(InvocationTraceContainer, {
382
+ db: space?.db,
383
+ queueDxn,
384
+ detailAxis: "block"
385
+ });
386
+ }
387
+ }),
388
+ Surface.create({
389
+ id: `${meta.id}/edge/testing`,
390
+ role: "article",
391
+ filter: (data) => data.subject === Devtools.Edge.Testing,
392
+ component: () => {
393
+ const { invokePromise } = useOperationInvoker();
394
+ const onSpaceCreate = useCallback(async (space) => {
395
+ await space.waitUntilReady();
396
+ await invokePromise(SpaceOperation.Migrate, {
397
+ space
398
+ });
399
+ await space.db.flush();
400
+ }, [
401
+ invokePromise
402
+ ]);
403
+ const onScriptPluginOpen = useCallback(async (space) => {
404
+ await space.waitUntilReady();
405
+ const createResult = await invokePromise(ScriptOperation.CreateScript, {
406
+ db: space.db
407
+ });
408
+ if (createResult.data?.object) {
409
+ await invokePromise(SpaceOperation.AddObject, {
410
+ target: space.db,
411
+ object: createResult.data.object
412
+ });
413
+ }
414
+ log.info("script created", {
415
+ result: createResult
416
+ }, {
417
+ F: __dxlog_file,
418
+ L: 414,
419
+ S: this,
420
+ C: (f, a) => f(...a)
421
+ });
422
+ if (createResult.data?.object?.id) {
423
+ await invokePromise(LayoutOperation.Open, {
424
+ subject: [
425
+ `${space.id}:${createResult.data.object.id}`
426
+ ]
427
+ });
428
+ }
429
+ }, [
430
+ invokePromise
431
+ ]);
432
+ return /* @__PURE__ */ React.createElement(TestingPanel, {
433
+ onSpaceCreate,
434
+ onScriptPluginOpen
435
+ });
436
+ }
437
+ })
438
+ ]);
439
+ }));
440
+ export {
441
+ react_surface_default as default
442
+ };
443
+ //# sourceMappingURL=react-surface-BTVNKKVQ.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/capabilities/react-surface/react-surface.tsx", "../../../src/containers/index.ts"],
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, useCapability, useOperationInvoker, useSettingsState } from '@dxos/app-framework/ui';\nimport { AppCapabilities, LayoutOperation } from '@dxos/app-toolkit';\nimport { useLayout } from '@dxos/app-toolkit/ui';\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 StoragePanel,\n SwarmPanel,\n TestingPanel,\n TracingPanel,\n WorkflowPanel,\n} from '@dxos/devtools';\nimport { Obj } from '@dxos/echo';\nimport { Collection } from '@dxos/echo';\nimport { type LogBuffer } from '@dxos/log';\nimport { log } from '@dxos/log';\nimport { ClientCapabilities } from '@dxos/plugin-client';\nimport { type Graph } from '@dxos/plugin-graph';\nimport { ScriptOperation } from '@dxos/plugin-script/types';\nimport { SpaceOperation } from '@dxos/plugin-space/types';\nimport { type Space, SpaceState, isSpace, parseId } from '@dxos/react-client/echo';\nimport { Panel } from '@dxos/react-ui';\n\nimport {\n DebugGraph,\n DebugObjectPanel,\n DebugSettings,\n DebugSpaceObjectsPanel,\n DebugStatus,\n DevtoolsOverviewContainer,\n SpaceGenerator,\n Wireframe,\n} from '../../containers';\nimport { meta } from '../../meta';\nimport { DebugCapabilities, type DebugSettingsProps, Devtools } from '../../types';\n\ntype SpaceDebug = {\n type: string;\n space: Space;\n};\n\ntype GraphDebug = {\n graph: Graph.Graph;\n root: string;\n};\n\nconst isSpaceDebug = (data: any): data is SpaceDebug => data?.type === `${meta.id}/space` && isSpace(data.space);\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\n// TODO(wittjosiah): Factor out?\nconst useCurrentSpace = () => {\n const layout = useLayout();\n const client = useCapability(ClientCapabilities.Client);\n const { spaceId } = parseId(layout.workspace);\n const space = spaceId ? client.spaces.get(spaceId) : undefined;\n return space;\n};\n\ntype ReactSurfaceOptions = {\n logBuffer: LogBuffer;\n};\n\nexport default Capability.makeModule(\n Effect.fnUntraced(function* ({ logBuffer }: ReactSurfaceOptions) {\n const capabilities = yield* Capability.Service;\n const registry = capabilities.get(Capabilities.AtomRegistry);\n const settingsAtom = capabilities.get(DebugCapabilities.Settings);\n\n return Capability.contributes(Capabilities.ReactSurface, [\n Surface.create({\n id: `${meta.id}/plugin-settings`,\n role: 'article',\n filter: (data): data is { subject: AppCapabilities.Settings } =>\n AppCapabilities.isSettings(data.subject) && data.subject.prefix === meta.id,\n component: ({ data: { subject } }) => {\n const { settings, updateSettings } = useSettingsState<DebugSettingsProps>(subject.atom);\n return <DebugSettings settings={settings} onSettingsChange={updateSettings} logBuffer={logBuffer} />;\n },\n }),\n Surface.create({\n id: `${meta.id}/space`,\n role: 'article',\n filter: (data): data is { subject: SpaceDebug } => isSpaceDebug(data.subject),\n component: ({ role, data }) => {\n const { invokePromise } = useOperationInvoker();\n\n const handleCreateObject = useCallback(\n (objects: Obj.Unknown[]) => {\n if (!isSpace(data.subject.space)) {\n return;\n }\n\n const collection =\n data.subject.space.state.get() === SpaceState.SPACE_READY &&\n data.subject.space.properties[Collection.Collection.typename]?.target;\n if (!Obj.instanceOf(Collection.Collection, collection)) {\n return;\n }\n\n objects.forEach((object) => {\n void invokePromise(SpaceOperation.AddObject, {\n target: collection,\n object,\n });\n });\n },\n [data.subject.space, invokePromise],\n );\n\n return (\n <Panel.Root role={role} className='dx-article'>\n <Panel.Content asChild>\n <Panel.Content asChild>\n <SpaceGenerator space={data.subject.space} onCreateObjects={handleCreateObject} />\n </Panel.Content>\n </Panel.Content>\n </Panel.Root>\n );\n },\n }),\n Surface.create({\n id: `${meta.id}/app-graph`,\n role: 'article',\n filter: (data): data is { subject: GraphDebug } => isGraphDebug(data.subject),\n component: ({ data }) => <DebugGraph graph={data.subject.graph} root={data.subject.root} />,\n }),\n Surface.create({\n id: `${meta.id}/wireframe`,\n role: ['article', 'section'],\n position: 'hoist',\n filter: (data): data is { subject: Obj.Unknown } => {\n const settings = registry.get(settingsAtom);\n return Obj.isObject(data.subject) && !!settings.wireframe;\n },\n component: ({ data, role, name }) => (\n <Wireframe label={`${role}:${name}`} object={data.subject} classNames='row-span-2 overflow-hidden' />\n ),\n }),\n Surface.create({\n id: `${meta.id}/object-debug`,\n role: 'article',\n filter: (data): data is { companionTo: Obj.Unknown } =>\n data.subject === 'debug' && Obj.isObject(data.companionTo),\n component: ({ data }) => <DebugObjectPanel object={data.companionTo} />,\n }),\n Surface.create({\n id: `${meta.id}/devtools-overview`,\n role: 'deck-companion--devtools',\n filter: (data): data is { subject: 'devtools' } => data.subject === 'devtools',\n component: () => <DevtoolsOverviewContainer />,\n }),\n Surface.create({\n id: `${meta.id}/space-objects`,\n role: 'deck-companion--space-objects',\n filter: (data): data is { subject: 'space-objects' } => data.subject === 'space-objects',\n component: () => <DebugSpaceObjectsPanel />,\n }),\n\n Surface.create({\n id: `${meta.id}/status`,\n role: 'status',\n component: () => <DebugStatus />,\n }),\n //\n // Devtools\n //\n\n Surface.create({\n id: `${meta.id}/client/config`,\n role: 'article',\n filter: (data): data is any => data.subject === Devtools.Client.Config,\n component: () => <ConfigPanel vaultSelector={false} />,\n }),\n Surface.create({\n id: `${meta.id}/client/storage`,\n role: 'article',\n filter: (data): data is any => data.subject === Devtools.Client.Storage,\n component: () => <StoragePanel />,\n }),\n Surface.create({\n id: `${meta.id}/client/logs`,\n role: 'article',\n filter: (data): data is any => data.subject === Devtools.Client.Logs,\n component: () => <LoggingPanel />,\n }),\n Surface.create({\n id: `${meta.id}/client/diagnostics`,\n role: 'article',\n filter: (data): data is any => data.subject === Devtools.Client.Diagnostics,\n component: () => <DiagnosticsPanel />,\n }),\n Surface.create({\n id: `${meta.id}/client/tracing`,\n role: 'article',\n filter: (data): data is any => data.subject === Devtools.Client.Tracing,\n component: () => <TracingPanel />,\n }),\n Surface.create({\n id: `${meta.id}/halo/identity`,\n role: 'article',\n filter: (data): data is any => data.subject === Devtools.Halo.Identity,\n component: () => <IdentityPanel />,\n }),\n Surface.create({\n id: `${meta.id}/halo/devices`,\n role: 'article',\n filter: (data): data is any => data.subject === Devtools.Halo.Devices,\n component: () => <DeviceListPanel />,\n }),\n Surface.create({\n id: `${meta.id}/halo/keyring`,\n role: 'article',\n filter: (data): data is any => data.subject === Devtools.Halo.Keyring,\n component: () => <KeyringPanel />,\n }),\n Surface.create({\n id: `${meta.id}/halo/credentials`,\n role: 'article',\n filter: (data): data is any => data.subject === Devtools.Halo.Credentials,\n component: () => {\n const space = useCurrentSpace();\n return <CredentialsPanel space={space} />;\n },\n }),\n Surface.create({\n id: `${meta.id}/echo/spaces`,\n role: 'article',\n filter: (data): data is any => data.subject === 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: `${meta.id}/echo/space`,\n role: 'article',\n filter: (data): data is any => data.subject === Devtools.Echo.Space,\n component: () => {\n const space = useCurrentSpace();\n const { invokePromise } = useOperationInvoker();\n const handleSelect = useCallback(\n () => invokePromise(LayoutOperation.Open, { subject: [Devtools.Echo.Feeds] }),\n [invokePromise],\n );\n return <SpaceInfoPanel space={space} onSelectFeed={handleSelect} onSelectPipeline={handleSelect} />;\n },\n }),\n Surface.create({\n id: `${meta.id}/echo/feeds`,\n role: 'article',\n filter: (data): data is any => data.subject === Devtools.Echo.Feeds,\n component: () => {\n const space = useCurrentSpace();\n return <FeedsPanel space={space} />;\n },\n }),\n Surface.create({\n id: `${meta.id}/echo/objects`,\n role: 'article',\n filter: (data): data is any => data.subject === Devtools.Echo.Objects,\n component: () => {\n const space = useCurrentSpace();\n return <ObjectsPanel space={space} />;\n },\n }),\n Surface.create({\n id: `${meta.id}/echo/schema`,\n role: 'article',\n filter: (data): data is any => data.subject === Devtools.Echo.Schema,\n component: () => {\n const space = useCurrentSpace();\n return <SchemaPanel space={space} />;\n },\n }),\n Surface.create({\n id: `${meta.id}/echo/automerge`,\n role: 'article',\n filter: (data): data is any => data.subject === Devtools.Echo.Automerge,\n component: () => {\n const space = useCurrentSpace();\n return <AutomergePanel space={space} />;\n },\n }),\n Surface.create({\n id: `${meta.id}/echo/queues`,\n role: 'article',\n filter: (data): data is any => data.subject === Devtools.Echo.Queues,\n component: () => <QueuesPanel />,\n }),\n Surface.create({\n id: `${meta.id}/echo/members`,\n role: 'article',\n filter: (data): data is any => data.subject === Devtools.Echo.Members,\n component: () => {\n const space = useCurrentSpace();\n return <MembersPanel space={space} />;\n },\n }),\n Surface.create({\n id: `${meta.id}/echo/metadata`,\n role: 'article',\n filter: (data): data is any => data.subject === Devtools.Echo.Metadata,\n component: () => <MetadataPanel />,\n }),\n Surface.create({\n id: `${meta.id}/mesh/signal`,\n role: 'article',\n filter: (data): data is any => data.subject === Devtools.Mesh.Signal,\n component: () => <SignalPanel />,\n }),\n Surface.create({\n id: `${meta.id}/mesh/swarm`,\n role: 'article',\n filter: (data): data is any => data.subject === Devtools.Mesh.Swarm,\n component: () => <SwarmPanel />,\n }),\n Surface.create({\n id: `${meta.id}/mesh/network`,\n role: 'article',\n filter: (data): data is any => data.subject === Devtools.Mesh.Network,\n component: () => {\n const space = useCurrentSpace();\n return <NetworkPanel space={space} />;\n },\n }),\n // TODO(wittjosiah): Remove?\n // createSurface({\n // id: `${meta.id}/agent/dashboard`,\n // role: 'article',\n // filter: (data): data is any => data.subject === Devtools.Agent.Dashboard,\n // component: () => <DashboardPanel />,\n // }),\n Surface.create({\n id: `${meta.id}/edge/dashboard`,\n role: 'article',\n filter: (data): data is any => data.subject === Devtools.Edge.Dashboard,\n component: () => <EdgeDashboardPanel />,\n }),\n Surface.create({\n id: `${meta.id}/edge/workflows`,\n role: 'article',\n filter: (data): data is any => data.subject === Devtools.Edge.Workflows,\n component: () => {\n const space = useCurrentSpace();\n return <WorkflowPanel space={space} />;\n },\n }),\n Surface.create({\n id: `${meta.id}/edge/traces`,\n role: 'article',\n filter: (data): data is any => data.subject === Devtools.Edge.Traces,\n component: () => {\n const space = useCurrentSpace();\n const queueDxn = space?.properties.invocationTraceQueue?.dxn;\n return <InvocationTraceContainer db={space?.db} queueDxn={queueDxn} detailAxis='block' />;\n },\n }),\n Surface.create({\n id: `${meta.id}/edge/testing`,\n role: 'article',\n filter: (data): data is any => data.subject === 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?.id) {\n await invokePromise(LayoutOperation.Open, {\n subject: [`${space.id}:${createResult.data.object.id}`],\n });\n }\n },\n [invokePromise],\n );\n return <TestingPanel onSpaceCreate={onSpaceCreate} onScriptPluginOpen={onScriptPluginOpen} />;\n },\n }),\n ]);\n }),\n);\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { type ComponentType, lazy } from 'react';\n\nexport const DebugGraph: ComponentType<any> = lazy(() => import('./DebugGraph'));\nexport const DebugObjectPanel: ComponentType<any> = lazy(() => import('./DebugObjectPanel'));\nexport const DebugSettings: ComponentType<any> = lazy(() => import('./DebugSettings'));\nexport const DebugStatus: ComponentType<any> = lazy(() => import('./DebugStatus'));\nexport const DevtoolsOverviewContainer: ComponentType<any> = lazy(() => import('./DevtoolsOverviewContainer'));\nexport const SpaceGenerator: ComponentType<any> = lazy(() => import('./SpaceGenerator'));\nexport const Wireframe: ComponentType<any> = lazy(() => import('./Wireframe'));\nexport const DebugSpaceObjectsPanel: ComponentType<any> = lazy(() => import('./DebugSpaceObjectsPanel'));\n"],
5
+ "mappings": ";;;;;;;;;AAIA,YAAYA,YAAY;AACxB,OAAOC,SAASC,mBAAmB;AAEnC,SAASC,cAAcC,kBAAkB;AACzC,SAASC,SAASC,eAAeC,qBAAqBC,wBAAwB;AAC9E,SAASC,iBAAiBC,uBAAuB;AACjD,SAASC,iBAAiB;AAC1B,SACEC,gBACAC,aACAC,kBACAC,iBACAC,kBACAC,oBACAC,YACAC,eACAC,0BACAC,cACAC,cACAC,cACAC,eACAC,cACAC,cAC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YAAYgD,SAASqD,KAAKY;MAC9D/G,WAAW,MAAA;AACT,cAAM,EAAEO,cAAa,IAAKC,oBAAAA;AAC1B,cAAMwG,gBAAgBtG,YACpB,OAAOlD,UAAAA;AACL,gBAAMA,MAAMyJ,eAAc;AAC1B,gBAAM1G,cAAciB,eAAe0F,SAAS;YAAE1J;UAAM,CAAA;AACpD,gBAAMA,MAAMqJ,GAAGM,MAAK;QACtB,GACA;UAAC5G;SAAc;AAEjB,cAAM6G,qBAAqB1G,YACzB,OAAOlD,UAAAA;AACL,gBAAMA,MAAMyJ,eAAc;AAC1B,gBAAMI,eAAe,MAAM9G,cAAc+G,gBAAgBC,cAAc;YAAEV,IAAIrJ,MAAMqJ;UAAG,CAAA;AACtF,cAAIQ,aAAalK,MAAMoE,QAAQ;AAC7B,kBAAMhB,cAAciB,eAAeC,WAAW;cAAEN,QAAQ3D,MAAMqJ;cAAItF,QAAQ8F,aAAalK,KAAKoE;YAAO,CAAA;UACrG;AACAiG,cAAIC,KAAK,kBAAkB;YAAEC,QAAQL;UAAa,GAAA;;;;;;AAClD,cAAIA,aAAalK,MAAMoE,QAAQjE,IAAI;AACjC,kBAAMiD,cAAc+D,gBAAgBC,MAAM;cACxCzE,SAAS;gBAAC,GAAGtC,MAAMF,EAAE,IAAI+J,aAAalK,KAAKoE,OAAOjE,EAAE;;YACtD,CAAA;UACF;QACF,GACA;UAACiD;SAAc;AAEjB,eAAO,sBAAA,cAACoH,cAAAA;UAAaX;UAA8BI;;MACrD;IACF,CAAA;GACD;AACH,CAAA,CAAA;",
6
+ "names": ["Effect", "React", "useCallback", "Capabilities", "Capability", "Surface", "useCapability", "useOperationInvoker", "useSettingsState", "AppCapabilities", "LayoutOperation", "useLayout", "AutomergePanel", "ConfigPanel", "CredentialsPanel", "DeviceListPanel", "DiagnosticsPanel", "EdgeDashboardPanel", "FeedsPanel", "IdentityPanel", "InvocationTraceContainer", "KeyringPanel", "LoggingPanel", "MembersPanel", "MetadataPanel", "NetworkPanel", "ObjectsPanel", "QueuesPanel", "SchemaPanel", "SignalPanel", "SpaceInfoPanel", "SpaceListPanel", "StoragePanel", "SwarmPanel", "TestingPanel", "TracingPanel", "WorkflowPanel", "Obj", "Collection", "log", "ClientCapabilities", "ScriptOperation", "SpaceOperation", "SpaceState", "isSpace", "parseId", "Panel", "lazy", "DebugGraph", "lazy", "DebugObjectPanel", "DebugSettings", "DebugStatus", "DevtoolsOverviewContainer", "SpaceGenerator", "Wireframe", "DebugSpaceObjectsPanel", "isSpaceDebug", "data", "type", "meta", "id", "isSpace", "space", "isGraphDebug", "graph", "json", "root", "useCurrentSpace", "layout", "useLayout", "client", "useCapability", "ClientCapabilities", "Client", "spaceId", "parseId", "workspace", "spaces", "get", "undefined", "Capability", "makeModule", "fnUntraced", "logBuffer", "capabilities", "Service", "registry", "Capabilities", "AtomRegistry", "settingsAtom", "DebugCapabilities", "Settings", "contributes", "ReactSurface", "Surface", "create", "role", "filter", "AppCapabilities", "isSettings", "subject", "prefix", "component", "settings", "updateSettings", "useSettingsState", "atom", "DebugSettings", "onSettingsChange", "invokePromise", "useOperationInvoker", "handleCreateObject", "useCallback", "objects", "collection", "state", "SpaceState", "SPACE_READY", "properties", "Collection", "typename", "target", "Obj", "instanceOf", "forEach", "object", "SpaceOperation", "AddObject", "Panel", "Root", "className", "Content", "asChild", "SpaceGenerator", "onCreateObjects", "DebugGraph", "position", "isObject", "wireframe", "name", "Wireframe", "label", "classNames", "companionTo", "DebugObjectPanel", "DevtoolsOverviewContainer", "DebugSpaceObjectsPanel", "DebugStatus", "Devtools", "Config", "ConfigPanel", "vaultSelector", "Storage", "StoragePanel", "Logs", "LoggingPanel", "Diagnostics", "DiagnosticsPanel", "Tracing", "TracingPanel", "Halo", "Identity", "IdentityPanel", "Devices", "DeviceListPanel", "Keyring", "KeyringPanel", "Credentials", "CredentialsPanel", "Echo", "Spaces", "handleSelect", "LayoutOperation", "Open", "Space", "SpaceListPanel", "onSelect", "Feeds", "SpaceInfoPanel", "onSelectFeed", "onSelectPipeline", "FeedsPanel", "Objects", "ObjectsPanel", "Schema", "SchemaPanel", "Automerge", "AutomergePanel", "Queues", "QueuesPanel", "Members", "MembersPanel", "Metadata", "MetadataPanel", "Mesh", "Signal", "SignalPanel", "Swarm", "SwarmPanel", "Network", "NetworkPanel", "Edge", "Dashboard", "EdgeDashboardPanel", "Workflows", "WorkflowPanel", "Traces", "queueDxn", "invocationTraceQueue", "dxn", "InvocationTraceContainer", "db", "detailAxis", "Testing", "onSpaceCreate", "waitUntilReady", "Migrate", "flush", "onScriptPluginOpen", "createResult", "ScriptOperation", "CreateScript", "log", "info", "result", "TestingPanel"]
7
+ }
@@ -0,0 +1,32 @@
1
+ import {
2
+ DebugCapabilities,
3
+ DebugSettingsSchema
4
+ } from "./chunk-4UFQXPP7.mjs";
5
+ import {
6
+ meta
7
+ } from "./chunk-A5H5GRV6.mjs";
8
+
9
+ // src/capabilities/settings/settings.ts
10
+ import * as Effect from "effect/Effect";
11
+ import { Capability } from "@dxos/app-framework";
12
+ import { AppCapabilities } from "@dxos/app-toolkit";
13
+ import { createKvsStore } from "@dxos/effect";
14
+ var settings_default = Capability.makeModule(() => Effect.sync(() => {
15
+ const settingsAtom = createKvsStore({
16
+ key: meta.id,
17
+ schema: DebugSettingsSchema,
18
+ defaultValue: () => ({})
19
+ });
20
+ return [
21
+ Capability.contributes(DebugCapabilities.Settings, settingsAtom),
22
+ Capability.contributes(AppCapabilities.Settings, {
23
+ prefix: meta.id,
24
+ schema: DebugSettingsSchema,
25
+ atom: settingsAtom
26
+ })
27
+ ];
28
+ }));
29
+ export {
30
+ settings_default as default
31
+ };
32
+ //# sourceMappingURL=settings-SLTQJJNF.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/capabilities/settings/settings.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capability } from '@dxos/app-framework';\nimport { AppCapabilities } from '@dxos/app-toolkit';\nimport { createKvsStore } from '@dxos/effect';\n\nimport { meta } from '../../meta';\nimport { DebugCapabilities, DebugSettingsSchema } from '../../types';\n\nexport default Capability.makeModule(() =>\n Effect.sync(() => {\n const settingsAtom = createKvsStore({\n key: meta.id,\n schema: DebugSettingsSchema,\n defaultValue: () => ({}),\n });\n\n return [\n Capability.contributes(DebugCapabilities.Settings, settingsAtom),\n Capability.contributes(AppCapabilities.Settings, {\n prefix: meta.id,\n schema: DebugSettingsSchema,\n atom: settingsAtom,\n }),\n ];\n }),\n);\n"],
5
+ "mappings": ";;;;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,kBAAkB;AAC3B,SAASC,uBAAuB;AAChC,SAASC,sBAAsB;AAK/B,IAAA,mBAAeC,WAAWC,WAAW,MAC5BC,YAAK,MAAA;AACV,QAAMC,eAAeC,eAAe;IAClCC,KAAKC,KAAKC;IACVC,QAAQC;IACRC,cAAc,OAAO,CAAC;EACxB,CAAA;AAEA,SAAO;IACLV,WAAWW,YAAYC,kBAAkBC,UAAUV,YAAAA;IACnDH,WAAWW,YAAYG,gBAAgBD,UAAU;MAC/CE,QAAQT,KAAKC;MACbC,QAAQC;MACRO,MAAMb;IACR,CAAA;;AAEJ,CAAA,CAAA;",
6
+ "names": ["Effect", "Capability", "AppCapabilities", "createKvsStore", "Capability", "makeModule", "sync", "settingsAtom", "createKvsStore", "key", "meta", "id", "schema", "DebugSettingsSchema", "defaultValue", "contributes", "DebugCapabilities", "Settings", "AppCapabilities", "prefix", "atom"]
7
+ }
@@ -1,2 +1,8 @@
1
- export declare const DebugPlugin: import("@dxos/app-framework").PluginFactory<void>;
1
+ import { Plugin } from '@dxos/app-framework';
2
+ import { type LogBuffer } from '@dxos/log';
3
+ export type DebugPluginOptions = {
4
+ /** Shared log buffer for capturing and downloading logs. */
5
+ logBuffer: LogBuffer;
6
+ };
7
+ export declare const DebugPlugin: Plugin.PluginFactory<DebugPluginOptions>;
2
8
  //# sourceMappingURL=DebugPlugin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DebugPlugin.d.ts","sourceRoot":"","sources":["../../../src/DebugPlugin.tsx"],"names":[],"mappings":"AAYA,eAAO,MAAM,WAAW,mDA6BtB,CAAC"}
1
+ {"version":3,"file":"DebugPlugin.d.ts","sourceRoot":"","sources":["../../../src/DebugPlugin.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAgC,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE3E,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,WAAW,CAAC;AAO3C,MAAM,MAAM,kBAAkB,GAAG;IAC/B,4DAA4D;IAC5D,SAAS,EAAE,SAAS,CAAC;CACtB,CAAC;AAGF,eAAO,MAAM,WAAW,0CAgBvB,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) => 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,EAAE,MAAM,qBAAqB,CAAC;AAKjD,OAAO,EAAE,YAAY,EAAqB,MAAM,oBAAoB,CAAC;;AASrE,wBAoaE"}
@@ -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,9 +1,5 @@
1
- export declare const AppGraphBuilder: (props?: import("@dxos/app-framework").PluginContext | undefined) => Promise<() => Promise<import("@dxos/app-framework").Capability<import("@dxos/app-framework").InterfaceDef<import("@dxos/app-graph").BuilderExtensions>> | import("@dxos/app-framework").AnyCapability[]>>;
2
- export declare const ReactContext: (props?: unknown) => Promise<() => Promise<import("@dxos/app-framework").Capability<import("@dxos/app-framework").InterfaceDef<Readonly<{
3
- id: string;
4
- dependsOn?: string[];
5
- context: import("react").FC<import("react").PropsWithChildren>;
6
- }>>> | import("@dxos/app-framework").AnyCapability[]>>;
7
- export declare const ReactSurface: (props?: import("@dxos/app-framework").PluginContext | undefined) => Promise<() => Promise<import("@dxos/app-framework").Capability<import("@dxos/app-framework").InterfaceDef<import("@dxos/app-framework").Capabilities.ReactSurface>> | import("@dxos/app-framework").AnyCapability[]>>;
8
- export declare const DebugSettings: (props?: unknown) => Promise<() => Promise<import("@dxos/app-framework").Capability<import("@dxos/app-framework").InterfaceDef<import("@dxos/app-framework").Capabilities.Settings>> | import("@dxos/app-framework").AnyCapability[]>>;
1
+ export * from './app-graph-builder';
2
+ export * from './react-context';
3
+ export * from './react-surface';
4
+ export * from './settings';
9
5
  //# 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,gRAA4C,CAAC;AACzE,eAAO,MAAM,YAAY;;;;sDAAwC,CAAC;AAClE,eAAO,MAAM,YAAY,4RAAwC,CAAC;AAClE,eAAO,MAAM,aAAa,wOAAmC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"AAIA,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { Capability } from '@dxos/app-framework';
2
+ export declare const ReactContext: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<Readonly<{
3
+ id: string;
4
+ dependsOn?: string[];
5
+ context: import("react").FC<import("react").PropsWithChildren>;
6
+ }>>>, Error>;
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/react-context/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,eAAO,MAAM,YAAY;;;;YAAmE,CAAC"}
@@ -0,0 +1,10 @@
1
+ import * as Effect from 'effect/Effect';
2
+ import React from 'react';
3
+ import { Capability } from '@dxos/app-framework';
4
+ declare const _default: (props: void) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<Readonly<{
5
+ id: string;
6
+ dependsOn?: string[];
7
+ context: React.FC<React.PropsWithChildren>;
8
+ }>>>, never, never>;
9
+ export default _default;
10
+ //# sourceMappingURL=react-context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"react-context.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/react-context/react-context.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC;;;;;;AAK/D,wBAOE"}