@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.
- package/dist/lib/browser/DebugGraph-7HXJ2PS2.mjs +16 -0
- package/dist/lib/browser/DebugGraph-7HXJ2PS2.mjs.map +7 -0
- package/dist/lib/browser/DebugObjectPanel-3TCDNUNW.mjs +33 -0
- package/dist/lib/browser/DebugObjectPanel-3TCDNUNW.mjs.map +7 -0
- package/dist/lib/browser/DebugSettings-JZMIUDYB.mjs +174 -0
- package/dist/lib/browser/DebugSettings-JZMIUDYB.mjs.map +7 -0
- package/dist/lib/browser/DebugSpaceObjectsPanel-7NRPLWZ4.mjs +50 -0
- package/dist/lib/browser/DebugSpaceObjectsPanel-7NRPLWZ4.mjs.map +7 -0
- package/dist/lib/browser/DebugStatus-COQGH37G.mjs +125 -0
- package/dist/lib/browser/DebugStatus-COQGH37G.mjs.map +7 -0
- package/dist/lib/browser/DevtoolsOverviewContainer-C75NFVER.mjs +20 -0
- package/dist/lib/browser/DevtoolsOverviewContainer-C75NFVER.mjs.map +7 -0
- package/dist/lib/browser/{SpaceGenerator-54FUIZIH.mjs → SpaceGenerator-SWSGJEEL.mjs} +476 -461
- package/dist/lib/browser/SpaceGenerator-SWSGJEEL.mjs.map +7 -0
- package/dist/lib/browser/Wireframe-KAGOKEFW.mjs +53 -0
- package/dist/lib/browser/Wireframe-KAGOKEFW.mjs.map +7 -0
- package/dist/lib/browser/app-graph-builder-LGUQNXHD.mjs +625 -0
- package/dist/lib/browser/app-graph-builder-LGUQNXHD.mjs.map +7 -0
- package/dist/lib/browser/{chunk-SRV2AIGJ.mjs → chunk-4UFQXPP7.mjs} +11 -1
- package/dist/lib/browser/chunk-4UFQXPP7.mjs.map +7 -0
- package/dist/lib/browser/chunk-A5H5GRV6.mjs +20 -0
- package/dist/lib/browser/chunk-A5H5GRV6.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +42 -41
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/react-context-I3USIAF6.mjs +17 -0
- package/dist/lib/browser/react-context-I3USIAF6.mjs.map +7 -0
- package/dist/lib/browser/react-surface-BTVNKKVQ.mjs +443 -0
- package/dist/lib/browser/react-surface-BTVNKKVQ.mjs.map +7 -0
- package/dist/lib/browser/settings-SLTQJJNF.mjs +32 -0
- package/dist/lib/browser/settings-SLTQJJNF.mjs.map +7 -0
- package/dist/types/src/DebugPlugin.d.ts +7 -1
- package/dist/types/src/DebugPlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts +6 -0
- package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts.map +1 -0
- package/dist/types/src/capabilities/app-graph-builder/index.d.ts +3 -0
- package/dist/types/src/capabilities/app-graph-builder/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/index.d.ts +4 -8
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-context/index.d.ts +7 -0
- package/dist/types/src/capabilities/react-context/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-context/react-context.d.ts +10 -0
- package/dist/types/src/capabilities/react-context/react-context.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface/index.d.ts +5 -0
- package/dist/types/src/capabilities/react-surface/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts +9 -0
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +1 -0
- package/dist/types/src/capabilities/settings/index.d.ts +3 -0
- package/dist/types/src/capabilities/settings/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/settings/settings.d.ts +6 -0
- package/dist/types/src/capabilities/settings/settings.d.ts.map +1 -0
- package/dist/types/src/components/SchemaTable/SchemaTable.d.ts.map +1 -0
- package/dist/types/src/components/SchemaTable/index.d.ts +2 -0
- package/dist/types/src/components/SchemaTable/index.d.ts.map +1 -0
- package/dist/types/src/components/SpaceGenerator/ObjectGenerator.d.ts +5 -5
- package/dist/types/src/components/SpaceGenerator/ObjectGenerator.d.ts.map +1 -1
- package/dist/types/src/components/SpaceGenerator/index.d.ts +2 -2
- package/dist/types/src/components/SpaceGenerator/index.d.ts.map +1 -1
- package/dist/types/src/components/SpaceGenerator/presets.d.ts +2 -5
- package/dist/types/src/components/SpaceGenerator/presets.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +2 -10
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/containers/DebugGraph/DebugGraph.d.ts +8 -0
- package/dist/types/src/containers/DebugGraph/DebugGraph.d.ts.map +1 -0
- package/dist/types/src/containers/DebugGraph/index.d.ts +3 -0
- package/dist/types/src/containers/DebugGraph/index.d.ts.map +1 -0
- package/dist/types/src/{components → containers/DebugObjectPanel}/DebugObjectPanel.d.ts +2 -2
- package/dist/types/src/containers/DebugObjectPanel/DebugObjectPanel.d.ts.map +1 -0
- package/dist/types/src/containers/DebugObjectPanel/index.d.ts +3 -0
- package/dist/types/src/containers/DebugObjectPanel/index.d.ts.map +1 -0
- package/dist/types/src/containers/DebugSettings/DebugSettings.d.ts +10 -0
- package/dist/types/src/containers/DebugSettings/DebugSettings.d.ts.map +1 -0
- package/dist/types/src/containers/DebugSettings/index.d.ts +3 -0
- package/dist/types/src/containers/DebugSettings/index.d.ts.map +1 -0
- package/dist/types/src/containers/DebugSpaceObjectsPanel/DebugSpaceObjectsPanel.d.ts +3 -0
- package/dist/types/src/containers/DebugSpaceObjectsPanel/DebugSpaceObjectsPanel.d.ts.map +1 -0
- package/dist/types/src/containers/DebugSpaceObjectsPanel/index.d.ts +3 -0
- package/dist/types/src/containers/DebugSpaceObjectsPanel/index.d.ts.map +1 -0
- package/dist/types/src/containers/DebugStatus/DebugStatus.d.ts.map +1 -0
- package/dist/types/src/containers/DebugStatus/index.d.ts +3 -0
- package/dist/types/src/containers/DebugStatus/index.d.ts.map +1 -0
- package/dist/types/src/{components → containers/DevtoolsOverviewContainer}/DevtoolsOverviewContainer.d.ts +0 -1
- package/dist/types/src/containers/DevtoolsOverviewContainer/DevtoolsOverviewContainer.d.ts.map +1 -0
- package/dist/types/src/containers/DevtoolsOverviewContainer/index.d.ts +3 -0
- package/dist/types/src/containers/DevtoolsOverviewContainer/index.d.ts.map +1 -0
- package/dist/types/src/{components → containers}/SpaceGenerator/SpaceGenerator.d.ts +2 -2
- package/dist/types/src/containers/SpaceGenerator/SpaceGenerator.d.ts.map +1 -0
- package/dist/types/src/containers/SpaceGenerator/index.d.ts +3 -0
- package/dist/types/src/containers/SpaceGenerator/index.d.ts.map +1 -0
- package/dist/types/src/{components → containers/Wireframe}/Wireframe.d.ts +2 -2
- package/dist/types/src/containers/Wireframe/Wireframe.d.ts.map +1 -0
- package/dist/types/src/containers/Wireframe/index.d.ts +3 -0
- package/dist/types/src/containers/Wireframe/index.d.ts.map +1 -0
- package/dist/types/src/containers/index.d.ts +10 -0
- package/dist/types/src/containers/index.d.ts.map +1 -0
- package/dist/types/src/meta.d.ts +2 -2
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +3 -1
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types.d.ts +5 -0
- package/dist/types/src/types.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +75 -69
- package/src/DebugPlugin.tsx +27 -31
- package/src/capabilities/app-graph-builder/app-graph-builder.ts +441 -0
- package/src/capabilities/app-graph-builder/index.ts +7 -0
- package/src/capabilities/index.ts +4 -6
- package/src/capabilities/react-context/index.ts +7 -0
- package/src/capabilities/react-context/react-context.tsx +20 -0
- package/src/capabilities/react-surface/index.ts +7 -0
- package/src/capabilities/react-surface/react-surface.tsx +428 -0
- package/src/capabilities/settings/index.ts +7 -0
- package/src/capabilities/settings/settings.ts +31 -0
- package/src/components/SchemaTable/index.ts +5 -0
- package/src/components/SpaceGenerator/ObjectGenerator.tsx +26 -32
- package/src/components/SpaceGenerator/index.ts +2 -3
- package/src/components/SpaceGenerator/presets.ts +258 -141
- package/src/components/index.ts +2 -10
- package/src/containers/DebugGraph/DebugGraph.tsx +13 -0
- package/src/containers/DebugGraph/index.ts +7 -0
- package/src/containers/DebugObjectPanel/DebugObjectPanel.tsx +45 -0
- package/src/containers/DebugObjectPanel/index.ts +7 -0
- package/src/{components → containers/DebugSettings}/DebugSettings.tsx +78 -36
- package/src/containers/DebugSettings/index.ts +7 -0
- package/src/containers/DebugSpaceObjectsPanel/DebugSpaceObjectsPanel.tsx +60 -0
- package/src/containers/DebugSpaceObjectsPanel/index.ts +7 -0
- package/src/containers/DebugStatus/index.ts +7 -0
- package/src/{components → containers/DevtoolsOverviewContainer}/DevtoolsOverviewContainer.tsx +2 -4
- package/src/containers/DevtoolsOverviewContainer/index.ts +7 -0
- package/src/containers/SpaceGenerator/SpaceGenerator.tsx +127 -0
- package/src/containers/SpaceGenerator/index.ts +7 -0
- package/src/{components → containers/Wireframe}/Wireframe.tsx +6 -7
- package/src/containers/Wireframe/index.ts +7 -0
- package/src/containers/index.ts +14 -0
- package/src/meta.ts +7 -4
- package/src/translations.ts +3 -1
- package/src/types.ts +8 -0
- package/dist/lib/browser/DebugGraph-EDOH6R2G.mjs +0 -20
- package/dist/lib/browser/DebugGraph-EDOH6R2G.mjs.map +0 -7
- package/dist/lib/browser/DevtoolsOverviewContainer-EPD6EWT5.mjs +0 -25
- package/dist/lib/browser/DevtoolsOverviewContainer-EPD6EWT5.mjs.map +0 -7
- package/dist/lib/browser/SpaceGenerator-54FUIZIH.mjs.map +0 -7
- package/dist/lib/browser/app-graph-builder-I4IHBKKN.mjs +0 -588
- package/dist/lib/browser/app-graph-builder-I4IHBKKN.mjs.map +0 -7
- package/dist/lib/browser/chunk-SRV2AIGJ.mjs.map +0 -7
- package/dist/lib/browser/chunk-SVCKCXCL.mjs +0 -16
- package/dist/lib/browser/chunk-SVCKCXCL.mjs.map +0 -7
- package/dist/lib/browser/react-context-QLZE7VSQ.mjs +0 -16
- package/dist/lib/browser/react-context-QLZE7VSQ.mjs.map +0 -7
- package/dist/lib/browser/react-surface-BTWJ2I3F.mjs +0 -772
- package/dist/lib/browser/react-surface-BTWJ2I3F.mjs.map +0 -7
- package/dist/lib/browser/settings-EBVICEEW.mjs +0 -22
- package/dist/lib/browser/settings-EBVICEEW.mjs.map +0 -7
- package/dist/types/src/capabilities/app-graph-builder.d.ts +0 -4
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-context.d.ts +0 -8
- package/dist/types/src/capabilities/react-context.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-surface.d.ts +0 -4
- package/dist/types/src/capabilities/react-surface.d.ts.map +0 -1
- package/dist/types/src/capabilities/settings.d.ts +0 -4
- package/dist/types/src/capabilities/settings.d.ts.map +0 -1
- package/dist/types/src/components/Container.d.ts +0 -5
- package/dist/types/src/components/Container.d.ts.map +0 -1
- package/dist/types/src/components/DebugGraph.d.ts +0 -8
- package/dist/types/src/components/DebugGraph.d.ts.map +0 -1
- package/dist/types/src/components/DebugObjectPanel.d.ts.map +0 -1
- package/dist/types/src/components/DebugSettings.d.ts +0 -6
- package/dist/types/src/components/DebugSettings.d.ts.map +0 -1
- package/dist/types/src/components/DebugStatus.d.ts.map +0 -1
- package/dist/types/src/components/DevtoolsOverviewContainer.d.ts.map +0 -1
- package/dist/types/src/components/SpaceGenerator/SchemaTable.d.ts.map +0 -1
- package/dist/types/src/components/SpaceGenerator/SpaceGenerator.d.ts.map +0 -1
- package/dist/types/src/components/SpaceGenerator/SpaceGenerator.stories.d.ts +0 -15
- package/dist/types/src/components/SpaceGenerator/SpaceGenerator.stories.d.ts.map +0 -1
- package/dist/types/src/components/Wireframe.d.ts.map +0 -1
- package/src/capabilities/app-graph-builder.ts +0 -431
- package/src/capabilities/react-context.tsx +0 -16
- package/src/capabilities/react-surface.tsx +0 -399
- package/src/capabilities/settings.ts +0 -19
- package/src/components/Container.tsx +0 -15
- package/src/components/DebugGraph.tsx +0 -14
- package/src/components/DebugObjectPanel.tsx +0 -33
- package/src/components/SpaceGenerator/SpaceGenerator.stories.tsx +0 -52
- package/src/components/SpaceGenerator/SpaceGenerator.tsx +0 -122
- /package/dist/types/src/components/{SpaceGenerator → SchemaTable}/SchemaTable.d.ts +0 -0
- /package/dist/types/src/{components → containers/DebugStatus}/DebugStatus.d.ts +0 -0
- /package/src/components/{SpaceGenerator → SchemaTable}/SchemaTable.tsx +0 -0
- /package/src/{components → containers/DebugStatus}/DebugStatus.tsx +0 -0
|
@@ -1,431 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2025 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import { Rx } from '@effect-rx/rx-react';
|
|
6
|
-
import * as Function from 'effect/Function';
|
|
7
|
-
import * as Option from 'effect/Option';
|
|
8
|
-
|
|
9
|
-
import { Capabilities, type PluginContext, contributes } from '@dxos/app-framework';
|
|
10
|
-
import { Obj } from '@dxos/echo';
|
|
11
|
-
import { ATTENDABLE_PATH_SEPARATOR, DECK_COMPANION_TYPE, PLANK_COMPANION_TYPE } from '@dxos/plugin-deck/types';
|
|
12
|
-
import { ROOT_ID, createExtension, rxFromSignal } from '@dxos/plugin-graph';
|
|
13
|
-
import { getActiveSpace, meta as spaceMeta } from '@dxos/plugin-space';
|
|
14
|
-
|
|
15
|
-
import { meta } from '../meta';
|
|
16
|
-
import { Devtools } from '../types';
|
|
17
|
-
|
|
18
|
-
const DEVTOOLS_TYPE = `${meta.id}/devtools`;
|
|
19
|
-
|
|
20
|
-
export default (context: PluginContext) =>
|
|
21
|
-
contributes(Capabilities.AppGraphBuilder, [
|
|
22
|
-
// Devtools node.
|
|
23
|
-
createExtension({
|
|
24
|
-
id: `${meta.id}/devtools`,
|
|
25
|
-
connector: (node) =>
|
|
26
|
-
Rx.make((get) =>
|
|
27
|
-
Function.pipe(
|
|
28
|
-
get(node),
|
|
29
|
-
Option.flatMap((node) =>
|
|
30
|
-
node.id === ROOT_ID || node.type === `${spaceMeta.id}/settings` ? Option.some(node) : Option.none(),
|
|
31
|
-
),
|
|
32
|
-
Option.map((node) => {
|
|
33
|
-
const space = get(rxFromSignal(() => getActiveSpace(context)));
|
|
34
|
-
const [graph] = get(context.capabilities(Capabilities.AppGraph));
|
|
35
|
-
|
|
36
|
-
return [
|
|
37
|
-
{
|
|
38
|
-
id: `${Devtools.id}-${node.id}`,
|
|
39
|
-
data: null,
|
|
40
|
-
type: DEVTOOLS_TYPE,
|
|
41
|
-
properties: {
|
|
42
|
-
label: ['devtools label', { ns: meta.id }],
|
|
43
|
-
icon: 'ph--hammer--regular',
|
|
44
|
-
disposition: 'pin-end',
|
|
45
|
-
position: 'fallback',
|
|
46
|
-
},
|
|
47
|
-
nodes: [
|
|
48
|
-
...(space && node.type === `${spaceMeta.id}/settings`
|
|
49
|
-
? [
|
|
50
|
-
{
|
|
51
|
-
id: `debug-${node.id}`,
|
|
52
|
-
type: `${meta.id}/space`,
|
|
53
|
-
data: { space, type: `${meta.id}/space` },
|
|
54
|
-
properties: {
|
|
55
|
-
label: ['debug label', { ns: meta.id }],
|
|
56
|
-
icon: 'ph--bug--regular',
|
|
57
|
-
},
|
|
58
|
-
},
|
|
59
|
-
]
|
|
60
|
-
: []),
|
|
61
|
-
{
|
|
62
|
-
id: `app-graph-${node.id}`,
|
|
63
|
-
type: `${meta.id}/app-graph`,
|
|
64
|
-
data: { graph: graph?.graph, root: space ? space.id : ROOT_ID },
|
|
65
|
-
properties: {
|
|
66
|
-
label: ['debug app graph label', { ns: meta.id }],
|
|
67
|
-
icon: 'ph--graph--regular',
|
|
68
|
-
},
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
id: `${Devtools.Client.id}-${node.id}`,
|
|
72
|
-
data: null,
|
|
73
|
-
type: DEVTOOLS_TYPE,
|
|
74
|
-
properties: {
|
|
75
|
-
label: ['client label', { ns: meta.id }],
|
|
76
|
-
icon: 'ph--users--regular',
|
|
77
|
-
},
|
|
78
|
-
nodes: [
|
|
79
|
-
{
|
|
80
|
-
id: `${Devtools.Client.Config}-${node.id}`,
|
|
81
|
-
data: Devtools.Client.Config,
|
|
82
|
-
type: DEVTOOLS_TYPE,
|
|
83
|
-
properties: {
|
|
84
|
-
label: ['config label', { ns: meta.id }],
|
|
85
|
-
icon: 'ph--gear--regular',
|
|
86
|
-
},
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
id: `${Devtools.Client.Storage}-${node.id}`,
|
|
90
|
-
data: Devtools.Client.Storage,
|
|
91
|
-
type: DEVTOOLS_TYPE,
|
|
92
|
-
properties: {
|
|
93
|
-
label: ['storage label', { ns: meta.id }],
|
|
94
|
-
icon: 'ph--hard-drives--regular',
|
|
95
|
-
},
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
id: `${Devtools.Client.Logs}-${node.id}`,
|
|
99
|
-
data: Devtools.Client.Logs,
|
|
100
|
-
type: DEVTOOLS_TYPE,
|
|
101
|
-
properties: {
|
|
102
|
-
label: ['logs label', { ns: meta.id }],
|
|
103
|
-
icon: 'ph--file-text--regular',
|
|
104
|
-
},
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
id: `${Devtools.Client.Diagnostics}-${node.id}`,
|
|
108
|
-
data: Devtools.Client.Diagnostics,
|
|
109
|
-
type: DEVTOOLS_TYPE,
|
|
110
|
-
properties: {
|
|
111
|
-
label: ['diagnostics label', { ns: meta.id }],
|
|
112
|
-
icon: 'ph--chart-line--regular',
|
|
113
|
-
},
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
id: `${Devtools.Client.Tracing}-${node.id}`,
|
|
117
|
-
data: Devtools.Client.Tracing,
|
|
118
|
-
type: DEVTOOLS_TYPE,
|
|
119
|
-
properties: {
|
|
120
|
-
label: ['tracing label', { ns: meta.id }],
|
|
121
|
-
icon: 'ph--fire--regular',
|
|
122
|
-
},
|
|
123
|
-
},
|
|
124
|
-
],
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
id: `${Devtools.Halo.id}-${node.id}`,
|
|
128
|
-
data: null,
|
|
129
|
-
type: DEVTOOLS_TYPE,
|
|
130
|
-
properties: {
|
|
131
|
-
label: ['halo label', { ns: meta.id }],
|
|
132
|
-
icon: 'ph--identification-badge--regular',
|
|
133
|
-
},
|
|
134
|
-
nodes: [
|
|
135
|
-
{
|
|
136
|
-
id: `${Devtools.Halo.Identity}-${node.id}`,
|
|
137
|
-
data: Devtools.Halo.Identity,
|
|
138
|
-
type: DEVTOOLS_TYPE,
|
|
139
|
-
properties: {
|
|
140
|
-
label: ['identity label', { ns: meta.id }],
|
|
141
|
-
icon: 'ph--identification-badge--regular',
|
|
142
|
-
},
|
|
143
|
-
},
|
|
144
|
-
{
|
|
145
|
-
id: `${Devtools.Halo.Devices}-${node.id}`,
|
|
146
|
-
data: Devtools.Halo.Devices,
|
|
147
|
-
type: DEVTOOLS_TYPE,
|
|
148
|
-
properties: {
|
|
149
|
-
label: ['devices label', { ns: meta.id }],
|
|
150
|
-
icon: 'ph--devices--regular',
|
|
151
|
-
},
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
id: `${Devtools.Halo.Keyring}-${node.id}`,
|
|
155
|
-
data: Devtools.Halo.Keyring,
|
|
156
|
-
type: DEVTOOLS_TYPE,
|
|
157
|
-
properties: {
|
|
158
|
-
label: ['keyring label', { ns: meta.id }],
|
|
159
|
-
icon: 'ph--key--regular',
|
|
160
|
-
},
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
id: `${Devtools.Halo.Credentials}-${node.id}`,
|
|
164
|
-
data: Devtools.Halo.Credentials,
|
|
165
|
-
type: DEVTOOLS_TYPE,
|
|
166
|
-
properties: {
|
|
167
|
-
label: ['credentials label', { ns: meta.id }],
|
|
168
|
-
icon: 'ph--credit-card--regular',
|
|
169
|
-
},
|
|
170
|
-
},
|
|
171
|
-
],
|
|
172
|
-
},
|
|
173
|
-
{
|
|
174
|
-
id: `${Devtools.Echo.id}-${node.id}`,
|
|
175
|
-
data: null,
|
|
176
|
-
type: DEVTOOLS_TYPE,
|
|
177
|
-
properties: {
|
|
178
|
-
label: ['echo label', { ns: meta.id }],
|
|
179
|
-
icon: 'ph--database--regular',
|
|
180
|
-
},
|
|
181
|
-
nodes: [
|
|
182
|
-
{
|
|
183
|
-
id: `${Devtools.Echo.Spaces}-${node.id}`,
|
|
184
|
-
data: Devtools.Echo.Spaces,
|
|
185
|
-
type: DEVTOOLS_TYPE,
|
|
186
|
-
properties: {
|
|
187
|
-
label: ['spaces label', { ns: meta.id }],
|
|
188
|
-
icon: 'ph--graph--regular',
|
|
189
|
-
},
|
|
190
|
-
},
|
|
191
|
-
{
|
|
192
|
-
id: `${Devtools.Echo.Space}-${node.id}`,
|
|
193
|
-
data: Devtools.Echo.Space,
|
|
194
|
-
type: DEVTOOLS_TYPE,
|
|
195
|
-
properties: {
|
|
196
|
-
label: ['space label', { ns: meta.id }],
|
|
197
|
-
icon: 'ph--planet--regular',
|
|
198
|
-
},
|
|
199
|
-
},
|
|
200
|
-
{
|
|
201
|
-
id: `${Devtools.Echo.Feeds}-${node.id}`,
|
|
202
|
-
data: Devtools.Echo.Feeds,
|
|
203
|
-
type: DEVTOOLS_TYPE,
|
|
204
|
-
properties: {
|
|
205
|
-
label: ['feeds label', { ns: meta.id }],
|
|
206
|
-
icon: 'ph--list-bullets--regular',
|
|
207
|
-
},
|
|
208
|
-
},
|
|
209
|
-
{
|
|
210
|
-
id: `${Devtools.Echo.Objects}-${node.id}`,
|
|
211
|
-
data: Devtools.Echo.Objects,
|
|
212
|
-
type: DEVTOOLS_TYPE,
|
|
213
|
-
properties: {
|
|
214
|
-
label: ['objects label', { ns: meta.id }],
|
|
215
|
-
icon: 'ph--cube--regular',
|
|
216
|
-
},
|
|
217
|
-
},
|
|
218
|
-
{
|
|
219
|
-
id: `${Devtools.Echo.Schema}-${node.id}`,
|
|
220
|
-
data: Devtools.Echo.Schema,
|
|
221
|
-
type: DEVTOOLS_TYPE,
|
|
222
|
-
properties: {
|
|
223
|
-
label: ['schema label', { ns: meta.id }],
|
|
224
|
-
icon: 'ph--database--regular',
|
|
225
|
-
},
|
|
226
|
-
},
|
|
227
|
-
{
|
|
228
|
-
id: `${Devtools.Echo.Automerge}-${node.id}`,
|
|
229
|
-
data: Devtools.Echo.Automerge,
|
|
230
|
-
type: DEVTOOLS_TYPE,
|
|
231
|
-
properties: {
|
|
232
|
-
label: ['automerge label', { ns: meta.id }],
|
|
233
|
-
icon: 'ph--gear-six--regular',
|
|
234
|
-
},
|
|
235
|
-
},
|
|
236
|
-
{
|
|
237
|
-
id: `${Devtools.Echo.Queues}-${node.id}`,
|
|
238
|
-
data: Devtools.Echo.Queues,
|
|
239
|
-
type: DEVTOOLS_TYPE,
|
|
240
|
-
properties: {
|
|
241
|
-
label: ['queues label', { ns: meta.id }],
|
|
242
|
-
icon: 'ph--queue--regular',
|
|
243
|
-
},
|
|
244
|
-
},
|
|
245
|
-
{
|
|
246
|
-
id: `${Devtools.Echo.Members}-${node.id}`,
|
|
247
|
-
data: Devtools.Echo.Members,
|
|
248
|
-
type: DEVTOOLS_TYPE,
|
|
249
|
-
properties: {
|
|
250
|
-
label: ['members label', { ns: meta.id }],
|
|
251
|
-
icon: 'ph--users--regular',
|
|
252
|
-
},
|
|
253
|
-
},
|
|
254
|
-
{
|
|
255
|
-
id: `${Devtools.Echo.Metadata}-${node.id}`,
|
|
256
|
-
data: Devtools.Echo.Metadata,
|
|
257
|
-
type: DEVTOOLS_TYPE,
|
|
258
|
-
properties: {
|
|
259
|
-
label: ['metadata label', { ns: meta.id }],
|
|
260
|
-
icon: 'ph--hard-drive--regular',
|
|
261
|
-
},
|
|
262
|
-
},
|
|
263
|
-
],
|
|
264
|
-
},
|
|
265
|
-
{
|
|
266
|
-
id: `${Devtools.Mesh.id}-${node.id}`,
|
|
267
|
-
data: null,
|
|
268
|
-
type: DEVTOOLS_TYPE,
|
|
269
|
-
properties: {
|
|
270
|
-
label: ['mesh label', { ns: meta.id }],
|
|
271
|
-
icon: 'ph--graph--regular',
|
|
272
|
-
},
|
|
273
|
-
nodes: [
|
|
274
|
-
{
|
|
275
|
-
id: `${Devtools.Mesh.Signal}-${node.id}`,
|
|
276
|
-
data: Devtools.Mesh.Signal,
|
|
277
|
-
type: DEVTOOLS_TYPE,
|
|
278
|
-
properties: {
|
|
279
|
-
label: ['signal label', { ns: meta.id }],
|
|
280
|
-
icon: 'ph--wifi-high--regular',
|
|
281
|
-
},
|
|
282
|
-
},
|
|
283
|
-
{
|
|
284
|
-
id: `${Devtools.Mesh.Swarm}-${node.id}`,
|
|
285
|
-
data: Devtools.Mesh.Swarm,
|
|
286
|
-
type: DEVTOOLS_TYPE,
|
|
287
|
-
properties: {
|
|
288
|
-
label: ['swarm label', { ns: meta.id }],
|
|
289
|
-
icon: 'ph--users-three--regular',
|
|
290
|
-
},
|
|
291
|
-
},
|
|
292
|
-
{
|
|
293
|
-
id: `${Devtools.Mesh.Network}-${node.id}`,
|
|
294
|
-
data: Devtools.Mesh.Network,
|
|
295
|
-
type: DEVTOOLS_TYPE,
|
|
296
|
-
properties: {
|
|
297
|
-
label: ['network label', { ns: meta.id }],
|
|
298
|
-
icon: 'ph--polygon--regular',
|
|
299
|
-
},
|
|
300
|
-
},
|
|
301
|
-
],
|
|
302
|
-
},
|
|
303
|
-
// TODO(wittjosiah): Remove?
|
|
304
|
-
// {
|
|
305
|
-
// id: `${prefix}-${Devtools.Agent.id}`,
|
|
306
|
-
// data: null,
|
|
307
|
-
// type: DEVTOOLS_TYPE,
|
|
308
|
-
// properties: {
|
|
309
|
-
// label: ['agent label', { ns: meta.id }],
|
|
310
|
-
// icon: 'ph--robot--regular',
|
|
311
|
-
// },
|
|
312
|
-
// nodes: [
|
|
313
|
-
// {
|
|
314
|
-
// id: `${prefix}-${Devtools.Agent.Dashboard}`,
|
|
315
|
-
// data: Devtools.Agent.Dashboard,
|
|
316
|
-
// type: DEVTOOLS_TYPE,
|
|
317
|
-
// properties: {
|
|
318
|
-
// label: ['dashboard label', { ns: meta.id }],
|
|
319
|
-
// icon: 'ph--computer-tower--regular',
|
|
320
|
-
// },
|
|
321
|
-
// },
|
|
322
|
-
// ],
|
|
323
|
-
// },
|
|
324
|
-
{
|
|
325
|
-
id: `${Devtools.Edge.id}-${node.id}`,
|
|
326
|
-
data: null,
|
|
327
|
-
type: DEVTOOLS_TYPE,
|
|
328
|
-
properties: {
|
|
329
|
-
label: ['edge label', { ns: meta.id }],
|
|
330
|
-
icon: 'ph--cloud--regular',
|
|
331
|
-
},
|
|
332
|
-
nodes: [
|
|
333
|
-
{
|
|
334
|
-
id: `${Devtools.Edge.Dashboard}-${node.id}`,
|
|
335
|
-
data: Devtools.Edge.Dashboard,
|
|
336
|
-
type: DEVTOOLS_TYPE,
|
|
337
|
-
properties: {
|
|
338
|
-
label: ['dashboard label', { ns: meta.id }],
|
|
339
|
-
icon: 'ph--computer-tower--regular',
|
|
340
|
-
},
|
|
341
|
-
},
|
|
342
|
-
{
|
|
343
|
-
id: `${Devtools.Edge.Workflows}-${node.id}`,
|
|
344
|
-
data: Devtools.Edge.Workflows,
|
|
345
|
-
type: DEVTOOLS_TYPE,
|
|
346
|
-
properties: {
|
|
347
|
-
label: ['workflows label', { ns: meta.id }],
|
|
348
|
-
icon: 'ph--function--regular',
|
|
349
|
-
},
|
|
350
|
-
},
|
|
351
|
-
{
|
|
352
|
-
id: `${Devtools.Edge.Traces}-${node.id}`,
|
|
353
|
-
data: Devtools.Edge.Traces,
|
|
354
|
-
type: DEVTOOLS_TYPE,
|
|
355
|
-
properties: {
|
|
356
|
-
label: ['traces label', { ns: meta.id }],
|
|
357
|
-
icon: 'ph--line-segments--regular',
|
|
358
|
-
},
|
|
359
|
-
},
|
|
360
|
-
{
|
|
361
|
-
id: `${Devtools.Edge.Testing}-${node.id}`,
|
|
362
|
-
data: Devtools.Edge.Testing,
|
|
363
|
-
type: DEVTOOLS_TYPE,
|
|
364
|
-
properties: {
|
|
365
|
-
label: ['testing label', { ns: meta.id }],
|
|
366
|
-
icon: 'ph--flask--regular',
|
|
367
|
-
},
|
|
368
|
-
},
|
|
369
|
-
],
|
|
370
|
-
},
|
|
371
|
-
],
|
|
372
|
-
},
|
|
373
|
-
];
|
|
374
|
-
}),
|
|
375
|
-
Option.getOrElse(() => []),
|
|
376
|
-
),
|
|
377
|
-
),
|
|
378
|
-
}),
|
|
379
|
-
|
|
380
|
-
// Debug object companion.
|
|
381
|
-
createExtension({
|
|
382
|
-
id: `${meta.id}/debug-object`,
|
|
383
|
-
connector: (node) =>
|
|
384
|
-
Rx.make((get) =>
|
|
385
|
-
Function.pipe(
|
|
386
|
-
get(node),
|
|
387
|
-
Option.flatMap((node) => (Obj.isObject(node.data) ? Option.some(node) : Option.none())),
|
|
388
|
-
Option.map((node) => [
|
|
389
|
-
{
|
|
390
|
-
id: [node.id, 'debug'].join(ATTENDABLE_PATH_SEPARATOR),
|
|
391
|
-
type: PLANK_COMPANION_TYPE,
|
|
392
|
-
data: 'debug',
|
|
393
|
-
properties: {
|
|
394
|
-
label: ['debug label', { ns: meta.id }],
|
|
395
|
-
icon: 'ph--bug--regular',
|
|
396
|
-
disposition: 'hidden',
|
|
397
|
-
position: 'fallback',
|
|
398
|
-
},
|
|
399
|
-
},
|
|
400
|
-
]),
|
|
401
|
-
Option.getOrElse(() => []),
|
|
402
|
-
),
|
|
403
|
-
),
|
|
404
|
-
}),
|
|
405
|
-
|
|
406
|
-
// Devtools deck companion.
|
|
407
|
-
createExtension({
|
|
408
|
-
id: `${meta.id}/devtools-overview`,
|
|
409
|
-
connector: (node) =>
|
|
410
|
-
Rx.make((get) =>
|
|
411
|
-
Function.pipe(
|
|
412
|
-
get(node),
|
|
413
|
-
Option.flatMap((node) => (node.id === ROOT_ID ? Option.some(node) : Option.none())),
|
|
414
|
-
Option.map((node) => [
|
|
415
|
-
{
|
|
416
|
-
id: [node.id, 'devtools'].join(ATTENDABLE_PATH_SEPARATOR),
|
|
417
|
-
type: DECK_COMPANION_TYPE,
|
|
418
|
-
data: null,
|
|
419
|
-
properties: {
|
|
420
|
-
label: ['devtools overview label', { ns: meta.id }],
|
|
421
|
-
icon: 'ph--equalizer--regular',
|
|
422
|
-
disposition: 'hidden',
|
|
423
|
-
position: 'fallback',
|
|
424
|
-
},
|
|
425
|
-
},
|
|
426
|
-
]),
|
|
427
|
-
Option.getOrElse(() => []),
|
|
428
|
-
),
|
|
429
|
-
),
|
|
430
|
-
}),
|
|
431
|
-
]);
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2025 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import React from 'react';
|
|
6
|
-
|
|
7
|
-
import { Capabilities, contributes } from '@dxos/app-framework';
|
|
8
|
-
import { DevtoolsContextProvider } from '@dxos/devtools';
|
|
9
|
-
|
|
10
|
-
import { meta } from '../meta';
|
|
11
|
-
|
|
12
|
-
export default () =>
|
|
13
|
-
contributes(Capabilities.ReactContext, {
|
|
14
|
-
id: meta.id,
|
|
15
|
-
context: ({ children }) => <DevtoolsContextProvider>{children}</DevtoolsContextProvider>,
|
|
16
|
-
});
|