@dxos/plugin-debug 0.8.4-main.21d9917 → 0.8.4-main.2244d791bb
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/browser/{DevtoolsOverviewContainer-77PKFLYV.mjs → DevtoolsOverviewContainer-2C6XMJ3L.mjs} +3 -3
- package/dist/lib/browser/{DevtoolsOverviewContainer-77PKFLYV.mjs.map → DevtoolsOverviewContainer-2C6XMJ3L.mjs.map} +2 -2
- package/dist/lib/browser/{SpaceGenerator-ZHVZWGM7.mjs → SpaceGenerator-B4A7J26E.mjs} +33 -31
- package/dist/lib/browser/SpaceGenerator-B4A7J26E.mjs.map +7 -0
- package/dist/lib/browser/{app-graph-builder-FBDRMMYF.mjs → app-graph-builder-DEBTVBQG.mjs} +9 -7
- package/dist/lib/browser/app-graph-builder-DEBTVBQG.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +18 -17
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{react-context-FSWBT3MH.mjs → react-context-I3USIAF6.mjs} +3 -3
- package/dist/lib/browser/react-context-I3USIAF6.mjs.map +7 -0
- package/dist/lib/browser/{react-surface-W62RJ32U.mjs → react-surface-ADOU5663.mjs} +57 -56
- package/dist/lib/browser/react-surface-ADOU5663.mjs.map +7 -0
- package/dist/lib/browser/{settings-KA4GN73K.mjs → settings-SLTQJJNF.mjs} +4 -3
- package/dist/lib/browser/settings-SLTQJJNF.mjs.map +7 -0
- package/dist/types/src/DebugPlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-context/react-context.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface/index.d.ts +1 -1
- package/dist/types/src/capabilities/react-surface/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts +2 -2
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +1 -1
- package/dist/types/src/capabilities/settings/index.d.ts +1 -1
- package/dist/types/src/capabilities/settings/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/settings/settings.d.ts +3 -2
- package/dist/types/src/capabilities/settings/settings.d.ts.map +1 -1
- package/dist/types/src/components/DebugObjectPanel.d.ts.map +1 -1
- package/dist/types/src/components/SpaceGenerator/SpaceGenerator.d.ts.map +1 -1
- package/dist/types/src/components/SpaceGenerator/presets.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +64 -63
- package/src/DebugPlugin.tsx +8 -7
- package/src/capabilities/app-graph-builder/app-graph-builder.ts +8 -6
- package/src/capabilities/react-context/react-context.tsx +2 -2
- package/src/capabilities/react-surface/react-surface.tsx +44 -42
- package/src/capabilities/settings/settings.ts +3 -2
- package/src/components/DebugObjectPanel.tsx +1 -2
- package/src/components/DebugSettings.tsx +18 -18
- package/src/components/DevtoolsOverviewContainer.tsx +2 -2
- package/src/components/SpaceGenerator/SpaceGenerator.stories.tsx +1 -1
- package/src/components/SpaceGenerator/SpaceGenerator.tsx +15 -16
- package/src/components/SpaceGenerator/presets.ts +18 -22
- package/dist/lib/browser/SpaceGenerator-ZHVZWGM7.mjs.map +0 -7
- package/dist/lib/browser/app-graph-builder-FBDRMMYF.mjs.map +0 -7
- package/dist/lib/browser/react-context-FSWBT3MH.mjs.map +0 -7
- package/dist/lib/browser/react-surface-W62RJ32U.mjs.map +0 -7
- package/dist/lib/browser/settings-KA4GN73K.mjs.map +0 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/plugin-debug",
|
|
3
|
-
"version": "0.8.4-main.
|
|
3
|
+
"version": "0.8.4-main.2244d791bb",
|
|
4
4
|
"description": "DXOS Surface plugin for testing.",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -31,84 +31,85 @@
|
|
|
31
31
|
"@antv/graphlib": "^2.0.4",
|
|
32
32
|
"@antv/layout": "^1.2.13",
|
|
33
33
|
"@automerge/automerge": "3.2.3",
|
|
34
|
-
"@effect-atom/atom": "^0.
|
|
35
|
-
"@effect-atom/atom-react": "^0.
|
|
34
|
+
"@effect-atom/atom": "^0.5.1",
|
|
35
|
+
"@effect-atom/atom-react": "^0.5.0",
|
|
36
36
|
"@tldraw/tldraw": "^3.0.0",
|
|
37
37
|
"date-fns": "^3.3.1",
|
|
38
38
|
"react-json-tree": "^0.18.0",
|
|
39
39
|
"react-resize-detector": "^11.0.1",
|
|
40
40
|
"workerize-loader": "^2.0.2",
|
|
41
|
-
"@dxos/
|
|
42
|
-
"@dxos/app-
|
|
43
|
-
"@dxos/
|
|
44
|
-
"@dxos/
|
|
45
|
-
"@dxos/
|
|
46
|
-
"@dxos/client-services": "0.8.4-main.
|
|
47
|
-
"@dxos/conductor": "0.8.4-main.
|
|
48
|
-
"@dxos/
|
|
49
|
-
"@dxos/
|
|
50
|
-
"@dxos/
|
|
51
|
-
"@dxos/
|
|
52
|
-
"@dxos/
|
|
53
|
-
"@dxos/echo
|
|
54
|
-
"@dxos/
|
|
55
|
-
"@dxos/
|
|
56
|
-
"@dxos/
|
|
57
|
-
"@dxos/
|
|
58
|
-
"@dxos/log": "0.8.4-main.
|
|
59
|
-
"@dxos/
|
|
60
|
-
"@dxos/plugin-
|
|
61
|
-
"@dxos/plugin-
|
|
62
|
-
"@dxos/
|
|
63
|
-
"@dxos/
|
|
64
|
-
"@dxos/plugin-markdown": "0.8.4-main.
|
|
65
|
-
"@dxos/plugin-meeting": "0.8.4-main.
|
|
66
|
-
"@dxos/plugin-
|
|
67
|
-
"@dxos/plugin-
|
|
68
|
-
"@dxos/plugin-
|
|
69
|
-
"@dxos/plugin-
|
|
70
|
-
"@dxos/plugin-
|
|
71
|
-
"@dxos/plugin-table": "0.8.4-main.
|
|
72
|
-
"@dxos/plugin-
|
|
73
|
-
"@dxos/
|
|
74
|
-
"@dxos/protocols": "0.8.4-main.
|
|
75
|
-
"@dxos/
|
|
76
|
-
"@dxos/react-
|
|
77
|
-
"@dxos/react-
|
|
78
|
-
"@dxos/react-ui-
|
|
79
|
-
"@dxos/react-ui-
|
|
80
|
-
"@dxos/
|
|
81
|
-
"@dxos/react-ui-
|
|
82
|
-
"@dxos/react-ui-
|
|
83
|
-
"@dxos/react-ui-mosaic": "0.8.4-main.
|
|
84
|
-
"@dxos/react-ui-
|
|
85
|
-
"@dxos/
|
|
86
|
-
"@dxos/react-ui-
|
|
87
|
-
"@dxos/
|
|
88
|
-
"@dxos/
|
|
41
|
+
"@dxos/app-framework": "0.8.4-main.2244d791bb",
|
|
42
|
+
"@dxos/app-toolkit": "0.8.4-main.2244d791bb",
|
|
43
|
+
"@dxos/assistant-toolkit": "0.8.4-main.2244d791bb",
|
|
44
|
+
"@dxos/async": "0.8.4-main.2244d791bb",
|
|
45
|
+
"@dxos/blueprints": "0.8.4-main.2244d791bb",
|
|
46
|
+
"@dxos/client-services": "0.8.4-main.2244d791bb",
|
|
47
|
+
"@dxos/conductor": "0.8.4-main.2244d791bb",
|
|
48
|
+
"@dxos/compute": "0.8.4-main.2244d791bb",
|
|
49
|
+
"@dxos/config": "0.8.4-main.2244d791bb",
|
|
50
|
+
"@dxos/echo-generator": "0.8.4-main.2244d791bb",
|
|
51
|
+
"@dxos/devtools": "0.8.4-main.2244d791bb",
|
|
52
|
+
"@dxos/context": "0.8.4-main.2244d791bb",
|
|
53
|
+
"@dxos/echo": "0.8.4-main.2244d791bb",
|
|
54
|
+
"@dxos/echo-pipeline": "0.8.4-main.2244d791bb",
|
|
55
|
+
"@dxos/effect": "0.8.4-main.2244d791bb",
|
|
56
|
+
"@dxos/functions": "0.8.4-main.2244d791bb",
|
|
57
|
+
"@dxos/keys": "0.8.4-main.2244d791bb",
|
|
58
|
+
"@dxos/log": "0.8.4-main.2244d791bb",
|
|
59
|
+
"@dxos/operation": "0.8.4-main.2244d791bb",
|
|
60
|
+
"@dxos/plugin-client": "0.8.4-main.2244d791bb",
|
|
61
|
+
"@dxos/plugin-deck": "0.8.4-main.2244d791bb",
|
|
62
|
+
"@dxos/invariant": "0.8.4-main.2244d791bb",
|
|
63
|
+
"@dxos/plugin-graph": "0.8.4-main.2244d791bb",
|
|
64
|
+
"@dxos/plugin-markdown": "0.8.4-main.2244d791bb",
|
|
65
|
+
"@dxos/plugin-meeting": "0.8.4-main.2244d791bb",
|
|
66
|
+
"@dxos/plugin-script": "0.8.4-main.2244d791bb",
|
|
67
|
+
"@dxos/plugin-status-bar": "0.8.4-main.2244d791bb",
|
|
68
|
+
"@dxos/plugin-sketch": "0.8.4-main.2244d791bb",
|
|
69
|
+
"@dxos/plugin-sheet": "0.8.4-main.2244d791bb",
|
|
70
|
+
"@dxos/plugin-inbox": "0.8.4-main.2244d791bb",
|
|
71
|
+
"@dxos/plugin-table": "0.8.4-main.2244d791bb",
|
|
72
|
+
"@dxos/plugin-space": "0.8.4-main.2244d791bb",
|
|
73
|
+
"@dxos/plugin-theme": "0.8.4-main.2244d791bb",
|
|
74
|
+
"@dxos/protocols": "0.8.4-main.2244d791bb",
|
|
75
|
+
"@dxos/random": "0.8.4-main.2244d791bb",
|
|
76
|
+
"@dxos/react-hooks": "0.8.4-main.2244d791bb",
|
|
77
|
+
"@dxos/react-client": "0.8.4-main.2244d791bb",
|
|
78
|
+
"@dxos/react-ui-attention": "0.8.4-main.2244d791bb",
|
|
79
|
+
"@dxos/react-ui-canvas-compute": "0.8.4-main.2244d791bb",
|
|
80
|
+
"@dxos/react-ui-canvas-editor": "0.8.4-main.2244d791bb",
|
|
81
|
+
"@dxos/react-ui-form": "0.8.4-main.2244d791bb",
|
|
82
|
+
"@dxos/react-ui-kanban": "0.8.4-main.2244d791bb",
|
|
83
|
+
"@dxos/react-ui-mosaic": "0.8.4-main.2244d791bb",
|
|
84
|
+
"@dxos/react-ui-syntax-highlighter": "0.8.4-main.2244d791bb",
|
|
85
|
+
"@dxos/react-ui-table": "0.8.4-main.2244d791bb",
|
|
86
|
+
"@dxos/react-ui-stack": "0.8.4-main.2244d791bb",
|
|
87
|
+
"@dxos/types": "0.8.4-main.2244d791bb",
|
|
88
|
+
"@dxos/util": "0.8.4-main.2244d791bb",
|
|
89
|
+
"@dxos/schema": "0.8.4-main.2244d791bb"
|
|
89
90
|
},
|
|
90
91
|
"devDependencies": {
|
|
91
|
-
"@effect-atom/atom-react": "^0.
|
|
92
|
-
"@effect/platform": "0.
|
|
92
|
+
"@effect-atom/atom-react": "^0.5.0",
|
|
93
|
+
"@effect/platform": "0.94.4",
|
|
93
94
|
"@types/react": "~19.2.7",
|
|
94
95
|
"@types/react-dom": "~19.2.3",
|
|
95
|
-
"effect": "3.19.
|
|
96
|
+
"effect": "3.19.16",
|
|
96
97
|
"react": "~19.2.3",
|
|
97
98
|
"react-dom": "~19.2.3",
|
|
98
99
|
"vite": "7.1.9",
|
|
99
|
-
"@dxos/
|
|
100
|
-
"@dxos/
|
|
101
|
-
"@dxos/ui
|
|
100
|
+
"@dxos/storybook-utils": "0.8.4-main.2244d791bb",
|
|
101
|
+
"@dxos/ui-theme": "0.8.4-main.2244d791bb",
|
|
102
|
+
"@dxos/react-ui": "0.8.4-main.2244d791bb"
|
|
102
103
|
},
|
|
103
104
|
"peerDependencies": {
|
|
104
|
-
"@effect-atom/atom-react": "^0.
|
|
105
|
-
"@effect/platform": "0.
|
|
106
|
-
"effect": "3.19.
|
|
105
|
+
"@effect-atom/atom-react": "^0.5.0",
|
|
106
|
+
"@effect/platform": "0.94.4",
|
|
107
|
+
"effect": "3.19.16",
|
|
107
108
|
"react": "~19.2.3",
|
|
108
109
|
"react-dom": "~19.2.3",
|
|
109
|
-
"@dxos/
|
|
110
|
-
"@dxos/
|
|
111
|
-
"@dxos/ui
|
|
110
|
+
"@dxos/random": "0.8.4-main.2244d791bb",
|
|
111
|
+
"@dxos/ui-theme": "0.8.4-main.2244d791bb",
|
|
112
|
+
"@dxos/react-ui": "0.8.4-main.2244d791bb"
|
|
112
113
|
},
|
|
113
114
|
"publishConfig": {
|
|
114
115
|
"access": "public"
|
package/src/DebugPlugin.tsx
CHANGED
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
import * as Effect from 'effect/Effect';
|
|
6
6
|
|
|
7
|
-
import {
|
|
7
|
+
import { ActivationEvents, Plugin } from '@dxos/app-framework';
|
|
8
|
+
import { AppPlugin } from '@dxos/app-toolkit';
|
|
8
9
|
import { type Client } from '@dxos/react-client';
|
|
9
10
|
|
|
10
11
|
import { AppGraphBuilder, DebugSettings, ReactContext, ReactSurface } from './capabilities';
|
|
@@ -13,16 +14,16 @@ import { translations } from './translations';
|
|
|
13
14
|
|
|
14
15
|
// TODO(wittjosiah): Factor out DevtoolsPlugin?
|
|
15
16
|
export const DebugPlugin = Plugin.define(meta).pipe(
|
|
17
|
+
AppPlugin.addAppGraphModule({ activate: AppGraphBuilder }),
|
|
18
|
+
AppPlugin.addReactContextModule({ activate: ReactContext }),
|
|
19
|
+
AppPlugin.addSettingsModule({ activate: DebugSettings }),
|
|
20
|
+
AppPlugin.addSurfaceModule({ activate: ReactSurface }),
|
|
21
|
+
AppPlugin.addTranslationsModule({ translations }),
|
|
16
22
|
Plugin.addModule({
|
|
17
23
|
id: 'setup-devtools',
|
|
18
|
-
activatesOn:
|
|
24
|
+
activatesOn: ActivationEvents.Startup,
|
|
19
25
|
activate: () => Effect.sync(() => setupDevtools()),
|
|
20
26
|
}),
|
|
21
|
-
Common.Plugin.addSettingsModule({ activate: DebugSettings }),
|
|
22
|
-
Common.Plugin.addTranslationsModule({ translations }),
|
|
23
|
-
Common.Plugin.addReactContextModule({ activate: ReactContext }),
|
|
24
|
-
Common.Plugin.addSurfaceModule({ activate: ReactSurface }),
|
|
25
|
-
Common.Plugin.addAppGraphModule({ activate: AppGraphBuilder }),
|
|
26
27
|
Plugin.make,
|
|
27
28
|
);
|
|
28
29
|
|
|
@@ -4,7 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
import * as Effect from 'effect/Effect';
|
|
6
6
|
|
|
7
|
-
import { Capability
|
|
7
|
+
import { Capability } from '@dxos/app-framework';
|
|
8
|
+
import { AppCapabilities } from '@dxos/app-toolkit';
|
|
9
|
+
import { Obj } from '@dxos/echo';
|
|
8
10
|
import { ClientCapabilities } from '@dxos/plugin-client';
|
|
9
11
|
import { ATTENDABLE_PATH_SEPARATOR, DECK_COMPANION_TYPE, PLANK_COMPANION_TYPE } from '@dxos/plugin-deck/types';
|
|
10
12
|
import { GraphBuilder, Node, NodeMatcher } from '@dxos/plugin-graph';
|
|
@@ -26,11 +28,11 @@ export default Capability.makeModule(
|
|
|
26
28
|
connector: (node, get) =>
|
|
27
29
|
Effect.gen(function* () {
|
|
28
30
|
const client = yield* Capability.get(ClientCapabilities.Client);
|
|
29
|
-
const layoutAtom = get(yield* Capability.atom(
|
|
31
|
+
const layoutAtom = get(yield* Capability.atom(AppCapabilities.Layout))[0];
|
|
30
32
|
const layout = layoutAtom ? get(layoutAtom) : undefined;
|
|
31
33
|
const { spaceId } = parseId(layout?.workspace);
|
|
32
34
|
const space = spaceId ? client.spaces.get(spaceId) : undefined;
|
|
33
|
-
const [graph] = get(yield* Capability.atom(
|
|
35
|
+
const [graph] = get(yield* Capability.atom(AppCapabilities.AppGraph));
|
|
34
36
|
|
|
35
37
|
return [
|
|
36
38
|
{
|
|
@@ -377,10 +379,10 @@ export default Capability.makeModule(
|
|
|
377
379
|
GraphBuilder.createExtension({
|
|
378
380
|
id: `${meta.id}/debug-object`,
|
|
379
381
|
match: NodeMatcher.whenEchoObject,
|
|
380
|
-
connector: (
|
|
382
|
+
connector: (object) =>
|
|
381
383
|
Effect.succeed([
|
|
382
384
|
{
|
|
383
|
-
id: [
|
|
385
|
+
id: [Obj.getDXN(object).toString(), 'debug'].join(ATTENDABLE_PATH_SEPARATOR),
|
|
384
386
|
type: PLANK_COMPANION_TYPE,
|
|
385
387
|
data: 'debug',
|
|
386
388
|
properties: {
|
|
@@ -414,6 +416,6 @@ export default Capability.makeModule(
|
|
|
414
416
|
}),
|
|
415
417
|
]);
|
|
416
418
|
|
|
417
|
-
return Capability.contributes(
|
|
419
|
+
return Capability.contributes(AppCapabilities.AppGraphBuilder, extensions);
|
|
418
420
|
}),
|
|
419
421
|
);
|
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
import * as Effect from 'effect/Effect';
|
|
6
6
|
import React from 'react';
|
|
7
7
|
|
|
8
|
-
import {
|
|
8
|
+
import { Capabilities, Capability } from '@dxos/app-framework';
|
|
9
9
|
import { DevtoolsContextProvider } from '@dxos/devtools';
|
|
10
10
|
|
|
11
11
|
import { meta } from '../../meta';
|
|
12
12
|
|
|
13
13
|
export default Capability.makeModule(() =>
|
|
14
14
|
Effect.succeed(
|
|
15
|
-
Capability.contributes(
|
|
15
|
+
Capability.contributes(Capabilities.ReactContext, {
|
|
16
16
|
id: meta.id,
|
|
17
17
|
context: ({ children }) => <DevtoolsContextProvider>{children}</DevtoolsContextProvider>,
|
|
18
18
|
}),
|
|
@@ -5,8 +5,10 @@
|
|
|
5
5
|
import * as Effect from 'effect/Effect';
|
|
6
6
|
import React, { useCallback } from 'react';
|
|
7
7
|
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
8
|
+
import { Capabilities, Capability } from '@dxos/app-framework';
|
|
9
|
+
import { Surface, useCapability, useOperationInvoker, useSettingsState } from '@dxos/app-framework/ui';
|
|
10
|
+
import { AppCapabilities, LayoutOperation } from '@dxos/app-toolkit';
|
|
11
|
+
import { useLayout } from '@dxos/app-toolkit/ui';
|
|
10
12
|
import {
|
|
11
13
|
AutomergePanel,
|
|
12
14
|
ConfigPanel,
|
|
@@ -41,7 +43,7 @@ import { type Graph } from '@dxos/plugin-graph';
|
|
|
41
43
|
import { ScriptOperation } from '@dxos/plugin-script/types';
|
|
42
44
|
import { SpaceOperation } from '@dxos/plugin-space/types';
|
|
43
45
|
import { type Space, SpaceState, isSpace, parseId } from '@dxos/react-client/echo';
|
|
44
|
-
import { Layout } from '@dxos/react-ui
|
|
46
|
+
import { Layout } from '@dxos/react-ui';
|
|
45
47
|
import { Collection } from '@dxos/schema';
|
|
46
48
|
|
|
47
49
|
import {
|
|
@@ -86,21 +88,21 @@ const useCurrentSpace = () => {
|
|
|
86
88
|
export default Capability.makeModule(
|
|
87
89
|
Effect.fnUntraced(function* () {
|
|
88
90
|
const capabilities = yield* Capability.Service;
|
|
89
|
-
const registry = capabilities.get(
|
|
91
|
+
const registry = capabilities.get(Capabilities.AtomRegistry);
|
|
90
92
|
const settingsAtom = capabilities.get(DebugCapabilities.Settings);
|
|
91
93
|
|
|
92
|
-
return Capability.contributes(
|
|
93
|
-
|
|
94
|
+
return Capability.contributes(Capabilities.ReactSurface, [
|
|
95
|
+
Surface.create({
|
|
94
96
|
id: `${meta.id}/plugin-settings`,
|
|
95
97
|
role: 'article',
|
|
96
|
-
filter: (data): data is { subject:
|
|
97
|
-
|
|
98
|
+
filter: (data): data is { subject: AppCapabilities.Settings } =>
|
|
99
|
+
AppCapabilities.isSettings(data.subject) && data.subject.prefix === meta.id,
|
|
98
100
|
component: ({ data: { subject } }) => {
|
|
99
101
|
const { settings, updateSettings } = useSettingsState<DebugSettingsProps>(subject.atom);
|
|
100
102
|
return <DebugSettings settings={settings} onSettingsChange={updateSettings} />;
|
|
101
103
|
},
|
|
102
104
|
}),
|
|
103
|
-
|
|
105
|
+
Surface.create({
|
|
104
106
|
id: `${meta.id}/space`,
|
|
105
107
|
role: 'article',
|
|
106
108
|
filter: (data): data is { subject: SpaceDebug } => isSpaceDebug(data.subject),
|
|
@@ -137,13 +139,13 @@ export default Capability.makeModule(
|
|
|
137
139
|
);
|
|
138
140
|
},
|
|
139
141
|
}),
|
|
140
|
-
|
|
142
|
+
Surface.create({
|
|
141
143
|
id: `${meta.id}/app-graph`,
|
|
142
144
|
role: 'article',
|
|
143
145
|
filter: (data): data is { subject: GraphDebug } => isGraphDebug(data.subject),
|
|
144
146
|
component: ({ data }) => <DebugGraph graph={data.subject.graph} root={data.subject.root} />,
|
|
145
147
|
}),
|
|
146
|
-
|
|
148
|
+
Surface.create({
|
|
147
149
|
id: `${meta.id}/wireframe`,
|
|
148
150
|
role: ['article', 'section'],
|
|
149
151
|
position: 'hoist',
|
|
@@ -155,19 +157,19 @@ export default Capability.makeModule(
|
|
|
155
157
|
<Wireframe label={`${role}:${name}`} object={data.subject} classNames='row-span-2 overflow-hidden' />
|
|
156
158
|
),
|
|
157
159
|
}),
|
|
158
|
-
|
|
160
|
+
Surface.create({
|
|
159
161
|
id: `${meta.id}/object-debug`,
|
|
160
162
|
role: 'article',
|
|
161
163
|
filter: (data): data is { companionTo: Obj.Unknown } =>
|
|
162
164
|
data.subject === 'debug' && Obj.isObject(data.companionTo),
|
|
163
165
|
component: ({ data }) => <DebugObjectPanel object={data.companionTo} />,
|
|
164
166
|
}),
|
|
165
|
-
|
|
167
|
+
Surface.create({
|
|
166
168
|
id: `${meta.id}/devtools-overview`,
|
|
167
169
|
role: 'deck-companion--devtools',
|
|
168
170
|
component: () => <DevtoolsOverviewContainer />,
|
|
169
171
|
}),
|
|
170
|
-
|
|
172
|
+
Surface.create({
|
|
171
173
|
id: `${meta.id}/status`,
|
|
172
174
|
role: 'status',
|
|
173
175
|
component: () => <DebugStatus />,
|
|
@@ -177,55 +179,55 @@ export default Capability.makeModule(
|
|
|
177
179
|
// Devtools
|
|
178
180
|
//
|
|
179
181
|
|
|
180
|
-
|
|
182
|
+
Surface.create({
|
|
181
183
|
id: `${meta.id}/client/config`,
|
|
182
184
|
role: 'article',
|
|
183
185
|
filter: (data): data is any => data.subject === Devtools.Client.Config,
|
|
184
186
|
component: () => <ConfigPanel vaultSelector={false} />,
|
|
185
187
|
}),
|
|
186
|
-
|
|
188
|
+
Surface.create({
|
|
187
189
|
id: `${meta.id}/client/storage`,
|
|
188
190
|
role: 'article',
|
|
189
191
|
filter: (data): data is any => data.subject === Devtools.Client.Storage,
|
|
190
192
|
component: () => <StoragePanel />,
|
|
191
193
|
}),
|
|
192
|
-
|
|
194
|
+
Surface.create({
|
|
193
195
|
id: `${meta.id}/client/logs`,
|
|
194
196
|
role: 'article',
|
|
195
197
|
filter: (data): data is any => data.subject === Devtools.Client.Logs,
|
|
196
198
|
component: () => <LoggingPanel />,
|
|
197
199
|
}),
|
|
198
|
-
|
|
200
|
+
Surface.create({
|
|
199
201
|
id: `${meta.id}/client/diagnostics`,
|
|
200
202
|
role: 'article',
|
|
201
203
|
filter: (data): data is any => data.subject === Devtools.Client.Diagnostics,
|
|
202
204
|
component: () => <DiagnosticsPanel />,
|
|
203
205
|
}),
|
|
204
|
-
|
|
206
|
+
Surface.create({
|
|
205
207
|
id: `${meta.id}/client/tracing`,
|
|
206
208
|
role: 'article',
|
|
207
209
|
filter: (data): data is any => data.subject === Devtools.Client.Tracing,
|
|
208
210
|
component: () => <TracingPanel />,
|
|
209
211
|
}),
|
|
210
|
-
|
|
212
|
+
Surface.create({
|
|
211
213
|
id: `${meta.id}/halo/identity`,
|
|
212
214
|
role: 'article',
|
|
213
215
|
filter: (data): data is any => data.subject === Devtools.Halo.Identity,
|
|
214
216
|
component: () => <IdentityPanel />,
|
|
215
217
|
}),
|
|
216
|
-
|
|
218
|
+
Surface.create({
|
|
217
219
|
id: `${meta.id}/halo/devices`,
|
|
218
220
|
role: 'article',
|
|
219
221
|
filter: (data): data is any => data.subject === Devtools.Halo.Devices,
|
|
220
222
|
component: () => <DeviceListPanel />,
|
|
221
223
|
}),
|
|
222
|
-
|
|
224
|
+
Surface.create({
|
|
223
225
|
id: `${meta.id}/halo/keyring`,
|
|
224
226
|
role: 'article',
|
|
225
227
|
filter: (data): data is any => data.subject === Devtools.Halo.Keyring,
|
|
226
228
|
component: () => <KeyringPanel />,
|
|
227
229
|
}),
|
|
228
|
-
|
|
230
|
+
Surface.create({
|
|
229
231
|
id: `${meta.id}/halo/credentials`,
|
|
230
232
|
role: 'article',
|
|
231
233
|
filter: (data): data is any => data.subject === Devtools.Halo.Credentials,
|
|
@@ -234,20 +236,20 @@ export default Capability.makeModule(
|
|
|
234
236
|
return <CredentialsPanel space={space} />;
|
|
235
237
|
},
|
|
236
238
|
}),
|
|
237
|
-
|
|
239
|
+
Surface.create({
|
|
238
240
|
id: `${meta.id}/echo/spaces`,
|
|
239
241
|
role: 'article',
|
|
240
242
|
filter: (data): data is any => data.subject === Devtools.Echo.Spaces,
|
|
241
243
|
component: () => {
|
|
242
244
|
const { invokePromise } = useOperationInvoker();
|
|
243
245
|
const handleSelect = useCallback(
|
|
244
|
-
() => invokePromise(
|
|
246
|
+
() => invokePromise(LayoutOperation.Open, { subject: [Devtools.Echo.Space] }),
|
|
245
247
|
[invokePromise],
|
|
246
248
|
);
|
|
247
249
|
return <SpaceListPanel onSelect={handleSelect} />;
|
|
248
250
|
},
|
|
249
251
|
}),
|
|
250
|
-
|
|
252
|
+
Surface.create({
|
|
251
253
|
id: `${meta.id}/echo/space`,
|
|
252
254
|
role: 'article',
|
|
253
255
|
filter: (data): data is any => data.subject === Devtools.Echo.Space,
|
|
@@ -255,13 +257,13 @@ export default Capability.makeModule(
|
|
|
255
257
|
const space = useCurrentSpace();
|
|
256
258
|
const { invokePromise } = useOperationInvoker();
|
|
257
259
|
const handleSelect = useCallback(
|
|
258
|
-
() => invokePromise(
|
|
260
|
+
() => invokePromise(LayoutOperation.Open, { subject: [Devtools.Echo.Feeds] }),
|
|
259
261
|
[invokePromise],
|
|
260
262
|
);
|
|
261
263
|
return <SpaceInfoPanel space={space} onSelectFeed={handleSelect} onSelectPipeline={handleSelect} />;
|
|
262
264
|
},
|
|
263
265
|
}),
|
|
264
|
-
|
|
266
|
+
Surface.create({
|
|
265
267
|
id: `${meta.id}/echo/feeds`,
|
|
266
268
|
role: 'article',
|
|
267
269
|
filter: (data): data is any => data.subject === Devtools.Echo.Feeds,
|
|
@@ -270,7 +272,7 @@ export default Capability.makeModule(
|
|
|
270
272
|
return <FeedsPanel space={space} />;
|
|
271
273
|
},
|
|
272
274
|
}),
|
|
273
|
-
|
|
275
|
+
Surface.create({
|
|
274
276
|
id: `${meta.id}/echo/objects`,
|
|
275
277
|
role: 'article',
|
|
276
278
|
filter: (data): data is any => data.subject === Devtools.Echo.Objects,
|
|
@@ -279,7 +281,7 @@ export default Capability.makeModule(
|
|
|
279
281
|
return <ObjectsPanel space={space} />;
|
|
280
282
|
},
|
|
281
283
|
}),
|
|
282
|
-
|
|
284
|
+
Surface.create({
|
|
283
285
|
id: `${meta.id}/echo/schema`,
|
|
284
286
|
role: 'article',
|
|
285
287
|
filter: (data): data is any => data.subject === Devtools.Echo.Schema,
|
|
@@ -288,7 +290,7 @@ export default Capability.makeModule(
|
|
|
288
290
|
return <SchemaPanel space={space} />;
|
|
289
291
|
},
|
|
290
292
|
}),
|
|
291
|
-
|
|
293
|
+
Surface.create({
|
|
292
294
|
id: `${meta.id}/echo/automerge`,
|
|
293
295
|
role: 'article',
|
|
294
296
|
filter: (data): data is any => data.subject === Devtools.Echo.Automerge,
|
|
@@ -297,13 +299,13 @@ export default Capability.makeModule(
|
|
|
297
299
|
return <AutomergePanel space={space} />;
|
|
298
300
|
},
|
|
299
301
|
}),
|
|
300
|
-
|
|
302
|
+
Surface.create({
|
|
301
303
|
id: `${meta.id}/echo/queues`,
|
|
302
304
|
role: 'article',
|
|
303
305
|
filter: (data): data is any => data.subject === Devtools.Echo.Queues,
|
|
304
306
|
component: () => <QueuesPanel />,
|
|
305
307
|
}),
|
|
306
|
-
|
|
308
|
+
Surface.create({
|
|
307
309
|
id: `${meta.id}/echo/members`,
|
|
308
310
|
role: 'article',
|
|
309
311
|
filter: (data): data is any => data.subject === Devtools.Echo.Members,
|
|
@@ -312,25 +314,25 @@ export default Capability.makeModule(
|
|
|
312
314
|
return <MembersPanel space={space} />;
|
|
313
315
|
},
|
|
314
316
|
}),
|
|
315
|
-
|
|
317
|
+
Surface.create({
|
|
316
318
|
id: `${meta.id}/echo/metadata`,
|
|
317
319
|
role: 'article',
|
|
318
320
|
filter: (data): data is any => data.subject === Devtools.Echo.Metadata,
|
|
319
321
|
component: () => <MetadataPanel />,
|
|
320
322
|
}),
|
|
321
|
-
|
|
323
|
+
Surface.create({
|
|
322
324
|
id: `${meta.id}/mesh/signal`,
|
|
323
325
|
role: 'article',
|
|
324
326
|
filter: (data): data is any => data.subject === Devtools.Mesh.Signal,
|
|
325
327
|
component: () => <SignalPanel />,
|
|
326
328
|
}),
|
|
327
|
-
|
|
329
|
+
Surface.create({
|
|
328
330
|
id: `${meta.id}/mesh/swarm`,
|
|
329
331
|
role: 'article',
|
|
330
332
|
filter: (data): data is any => data.subject === Devtools.Mesh.Swarm,
|
|
331
333
|
component: () => <SwarmPanel />,
|
|
332
334
|
}),
|
|
333
|
-
|
|
335
|
+
Surface.create({
|
|
334
336
|
id: `${meta.id}/mesh/network`,
|
|
335
337
|
role: 'article',
|
|
336
338
|
filter: (data): data is any => data.subject === Devtools.Mesh.Network,
|
|
@@ -346,13 +348,13 @@ export default Capability.makeModule(
|
|
|
346
348
|
// filter: (data): data is any => data.subject === Devtools.Agent.Dashboard,
|
|
347
349
|
// component: () => <DashboardPanel />,
|
|
348
350
|
// }),
|
|
349
|
-
|
|
351
|
+
Surface.create({
|
|
350
352
|
id: `${meta.id}/edge/dashboard`,
|
|
351
353
|
role: 'article',
|
|
352
354
|
filter: (data): data is any => data.subject === Devtools.Edge.Dashboard,
|
|
353
355
|
component: () => <EdgeDashboardPanel />,
|
|
354
356
|
}),
|
|
355
|
-
|
|
357
|
+
Surface.create({
|
|
356
358
|
id: `${meta.id}/edge/workflows`,
|
|
357
359
|
role: 'article',
|
|
358
360
|
filter: (data): data is any => data.subject === Devtools.Edge.Workflows,
|
|
@@ -361,7 +363,7 @@ export default Capability.makeModule(
|
|
|
361
363
|
return <WorkflowPanel space={space} />;
|
|
362
364
|
},
|
|
363
365
|
}),
|
|
364
|
-
|
|
366
|
+
Surface.create({
|
|
365
367
|
id: `${meta.id}/edge/traces`,
|
|
366
368
|
role: 'article',
|
|
367
369
|
filter: (data): data is any => data.subject === Devtools.Edge.Traces,
|
|
@@ -371,7 +373,7 @@ export default Capability.makeModule(
|
|
|
371
373
|
return <InvocationTraceContainer db={space?.db} queueDxn={queueDxn} detailAxis='block' />;
|
|
372
374
|
},
|
|
373
375
|
}),
|
|
374
|
-
|
|
376
|
+
Surface.create({
|
|
375
377
|
id: `${meta.id}/edge/testing`,
|
|
376
378
|
role: 'article',
|
|
377
379
|
filter: (data): data is any => data.subject === Devtools.Edge.Testing,
|
|
@@ -394,7 +396,7 @@ export default Capability.makeModule(
|
|
|
394
396
|
}
|
|
395
397
|
log.info('script created', { result: createResult });
|
|
396
398
|
if (createResult.data?.object?.id) {
|
|
397
|
-
await invokePromise(
|
|
399
|
+
await invokePromise(LayoutOperation.Open, {
|
|
398
400
|
subject: [`${space.id}:${createResult.data.object.id}`],
|
|
399
401
|
});
|
|
400
402
|
}
|
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
import * as Effect from 'effect/Effect';
|
|
6
6
|
|
|
7
|
-
import { Capability
|
|
7
|
+
import { Capability } from '@dxos/app-framework';
|
|
8
|
+
import { AppCapabilities } from '@dxos/app-toolkit';
|
|
8
9
|
import { createKvsStore } from '@dxos/effect';
|
|
9
10
|
|
|
10
11
|
import { meta } from '../../meta';
|
|
@@ -20,7 +21,7 @@ export default Capability.makeModule(() =>
|
|
|
20
21
|
|
|
21
22
|
return [
|
|
22
23
|
Capability.contributes(DebugCapabilities.Settings, settingsAtom),
|
|
23
|
-
Capability.contributes(
|
|
24
|
+
Capability.contributes(AppCapabilities.Settings, {
|
|
24
25
|
prefix: meta.id,
|
|
25
26
|
schema: DebugSettingsSchema,
|
|
26
27
|
atom: settingsAtom,
|
|
@@ -5,8 +5,7 @@
|
|
|
5
5
|
import React from 'react';
|
|
6
6
|
|
|
7
7
|
import { type Obj } from '@dxos/echo';
|
|
8
|
-
import { Clipboard, Input, Toolbar } from '@dxos/react-ui';
|
|
9
|
-
import { Layout } from '@dxos/react-ui-mosaic';
|
|
8
|
+
import { Clipboard, Input, Layout, Toolbar } from '@dxos/react-ui';
|
|
10
9
|
import { Json } from '@dxos/react-ui-syntax-highlighter';
|
|
11
10
|
|
|
12
11
|
export type DebugObjectPanelProps = {
|