@dxos/plugin-debug 0.8.4-main.ead640a → 0.8.4-main.effb148878
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/LICENSE +102 -5
- package/README.md +1 -1
- package/dist/lib/neutral/DebugGraph-G4FWS57E.mjs +15 -0
- package/dist/lib/neutral/DebugGraph-G4FWS57E.mjs.map +7 -0
- package/dist/lib/neutral/DebugObjectPanel-UJ63CV25.mjs +59 -0
- package/dist/lib/neutral/DebugObjectPanel-UJ63CV25.mjs.map +7 -0
- package/dist/lib/neutral/DebugPlugin.mjs +47 -0
- package/dist/lib/neutral/DebugPlugin.mjs.map +7 -0
- package/dist/lib/neutral/DebugPlugin.node.mjs +18 -0
- package/dist/lib/neutral/DebugPlugin.node.mjs.map +7 -0
- package/dist/lib/neutral/DebugPlugin.workerd.mjs +12 -0
- package/dist/lib/neutral/DebugPlugin.workerd.mjs.map +7 -0
- package/dist/lib/neutral/DebugSettings-Z3XADRNK.mjs +224 -0
- package/dist/lib/neutral/DebugSettings-Z3XADRNK.mjs.map +7 -0
- package/dist/lib/neutral/DebugSpaceObjectsPanel-NISULU6U.mjs +34 -0
- package/dist/lib/neutral/DebugSpaceObjectsPanel-NISULU6U.mjs.map +7 -0
- package/dist/lib/neutral/DebugStatus-YB3KFP7G.mjs +121 -0
- package/dist/lib/neutral/DebugStatus-YB3KFP7G.mjs.map +7 -0
- package/dist/lib/neutral/DevtoolsOverviewContainer-YX7Z3D2H.mjs +23 -0
- package/dist/lib/neutral/DevtoolsOverviewContainer-YX7Z3D2H.mjs.map +7 -0
- package/dist/lib/neutral/GithubPanel-QJKDJRVQ.mjs +177 -0
- package/dist/lib/neutral/GithubPanel-QJKDJRVQ.mjs.map +7 -0
- package/dist/lib/neutral/SpaceGenerator-IQLBDY6R.mjs +143 -0
- package/dist/lib/neutral/SpaceGenerator-IQLBDY6R.mjs.map +7 -0
- package/dist/lib/neutral/Wireframe-WD7S2AUU.mjs +52 -0
- package/dist/lib/neutral/Wireframe-WD7S2AUU.mjs.map +7 -0
- package/dist/lib/neutral/app-graph-builder-ZNMWIDDF.mjs +598 -0
- package/dist/lib/neutral/app-graph-builder-ZNMWIDDF.mjs.map +7 -0
- package/dist/lib/neutral/capabilities/index.mjs +15 -0
- package/dist/lib/neutral/capabilities/index.mjs.map +7 -0
- package/dist/lib/neutral/chunk-J5LGTIGS.mjs +10 -0
- package/dist/lib/neutral/chunk-J5LGTIGS.mjs.map +7 -0
- package/dist/lib/{browser/chunk-SRV2AIGJ.mjs → neutral/chunk-NFIOTQRZ.mjs} +30 -9
- package/dist/lib/neutral/chunk-NFIOTQRZ.mjs.map +7 -0
- package/dist/lib/neutral/chunk-SAJFZGX5.mjs +41 -0
- package/dist/lib/neutral/chunk-SAJFZGX5.mjs.map +7 -0
- package/dist/lib/{browser/SpaceGenerator-VMWHGAJZ.mjs → neutral/components/index.mjs} +347 -527
- package/dist/lib/neutral/components/index.mjs.map +7 -0
- package/dist/lib/neutral/containers/index.mjs +23 -0
- package/dist/lib/neutral/containers/index.mjs.map +7 -0
- package/dist/lib/neutral/index.mjs +18 -0
- package/dist/lib/neutral/index.mjs.map +7 -0
- package/dist/lib/neutral/meta.json +1 -0
- package/dist/lib/neutral/meta.mjs +8 -0
- package/dist/lib/neutral/meta.mjs.map +7 -0
- package/dist/lib/neutral/plugin.mjs +12 -0
- package/dist/lib/neutral/plugin.mjs.map +7 -0
- package/dist/lib/neutral/react-context-MUZ3KVLU.mjs +17 -0
- package/dist/lib/neutral/react-context-MUZ3KVLU.mjs.map +7 -0
- package/dist/lib/neutral/react-surface-T4NYONZ7.mjs +419 -0
- package/dist/lib/neutral/react-surface-T4NYONZ7.mjs.map +7 -0
- package/dist/lib/neutral/settings-MPM6YUP4.mjs +28 -0
- package/dist/lib/neutral/settings-MPM6YUP4.mjs.map +7 -0
- package/dist/lib/neutral/translations.mjs +90 -0
- package/dist/lib/neutral/translations.mjs.map +7 -0
- package/dist/lib/neutral/types/index.mjs +14 -0
- package/dist/lib/neutral/types/index.mjs.map +7 -0
- package/dist/types/src/DebugPlugin.d.ts +4 -1
- package/dist/types/src/DebugPlugin.d.ts.map +1 -1
- package/dist/types/src/DebugPlugin.node.d.ts +5 -0
- package/dist/types/src/DebugPlugin.node.d.ts.map +1 -0
- package/dist/types/src/DebugPlugin.test.d.ts +2 -0
- package/dist/types/src/DebugPlugin.test.d.ts.map +1 -0
- package/dist/types/src/DebugPlugin.workerd.d.ts +5 -0
- package/dist/types/src/DebugPlugin.workerd.d.ts.map +1 -0
- package/dist/types/src/capabilities/app-graph-builder.d.ts +4 -2
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
- package/dist/types/src/capabilities/index.d.ts +8 -5
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-context.d.ts +4 -2
- package/dist/types/src/capabilities/react-context.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface.d.ts +7 -2
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
- package/dist/types/src/capabilities/settings.d.ts +5 -2
- package/dist/types/src/capabilities/settings.d.ts.map +1 -1
- package/dist/types/src/components/DebugSettings/DebugSettings.d.ts +11 -0
- package/dist/types/src/components/DebugSettings/DebugSettings.d.ts.map +1 -0
- package/dist/types/src/components/DebugSettings/DebugSettings.stories.d.ts +105 -0
- package/dist/types/src/components/DebugSettings/DebugSettings.stories.d.ts.map +1 -0
- package/dist/types/src/components/DebugSettings/index.d.ts +2 -0
- package/dist/types/src/components/DebugSettings/index.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 +4 -5
- package/dist/types/src/components/SpaceGenerator/ObjectGenerator.d.ts.map +1 -1
- package/dist/types/src/components/SpaceGenerator/draw-util.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 +4 -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 +2 -0
- package/dist/types/src/containers/DebugGraph/index.d.ts.map +1 -0
- package/dist/types/src/containers/DebugObjectPanel/DebugObjectPanel.d.ts +6 -0
- package/dist/types/src/containers/DebugObjectPanel/DebugObjectPanel.d.ts.map +1 -0
- package/dist/types/src/containers/DebugObjectPanel/index.d.ts +2 -0
- package/dist/types/src/containers/DebugObjectPanel/index.d.ts.map +1 -0
- package/dist/types/src/containers/DebugSpaceObjectsPanel/DebugSpaceObjectsPanel.d.ts +5 -0
- package/dist/types/src/containers/DebugSpaceObjectsPanel/DebugSpaceObjectsPanel.d.ts.map +1 -0
- package/dist/types/src/containers/DebugSpaceObjectsPanel/index.d.ts +2 -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 +2 -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 +2 -0
- package/dist/types/src/containers/DevtoolsOverviewContainer/index.d.ts.map +1 -0
- package/dist/types/src/containers/GithubPanel/GithubComponent.d.ts +15 -0
- package/dist/types/src/containers/GithubPanel/GithubComponent.d.ts.map +1 -0
- package/dist/types/src/containers/GithubPanel/GithubComponent.stories.d.ts +105 -0
- package/dist/types/src/containers/GithubPanel/GithubComponent.stories.d.ts.map +1 -0
- package/dist/types/src/containers/GithubPanel/GithubPanel.d.ts +3 -0
- package/dist/types/src/containers/GithubPanel/GithubPanel.d.ts.map +1 -0
- package/dist/types/src/containers/GithubPanel/index.d.ts +2 -0
- package/dist/types/src/containers/GithubPanel/index.d.ts.map +1 -0
- package/dist/types/src/containers/SpaceGenerator/SpaceGenerator.d.ts +11 -0
- package/dist/types/src/containers/SpaceGenerator/SpaceGenerator.d.ts.map +1 -0
- package/dist/types/src/containers/SpaceGenerator/index.d.ts +2 -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 +2 -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/index.d.ts +1 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +2 -2
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/plugin.d.ts +4 -0
- package/dist/types/src/plugin.d.ts.map +1 -0
- package/dist/types/src/translations.d.ts +86 -59
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/Settings.d.ts +8 -0
- package/dist/types/src/types/Settings.d.ts.map +1 -0
- package/dist/types/src/types/index.d.ts +69 -0
- package/dist/types/src/types/index.d.ts.map +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +134 -75
- package/src/DebugPlugin.node.ts +18 -0
- package/src/DebugPlugin.test.ts +29 -0
- package/src/DebugPlugin.tsx +28 -34
- package/src/DebugPlugin.workerd.ts +12 -0
- package/src/capabilities/app-graph-builder.ts +381 -388
- package/src/capabilities/index.ts +5 -5
- package/src/capabilities/react-context.tsx +16 -7
- package/src/capabilities/react-surface.tsx +378 -339
- package/src/capabilities/settings.ts +24 -12
- package/src/components/DebugSettings/DebugSettings.stories.tsx +36 -0
- package/src/components/DebugSettings/DebugSettings.tsx +262 -0
- package/src/components/DebugSettings/index.ts +5 -0
- package/src/components/SchemaTable/index.ts +5 -0
- package/src/components/SpaceGenerator/ObjectGenerator.tsx +34 -44
- package/src/components/SpaceGenerator/draw-util.ts +8 -8
- package/src/components/SpaceGenerator/index.ts +2 -3
- package/src/components/SpaceGenerator/presets.ts +241 -139
- package/src/components/index.ts +4 -8
- package/src/containers/DebugGraph/DebugGraph.tsx +14 -0
- package/src/containers/DebugGraph/index.ts +5 -0
- package/src/containers/DebugObjectPanel/DebugObjectPanel.tsx +76 -0
- package/src/containers/DebugObjectPanel/index.ts +5 -0
- package/src/containers/DebugSpaceObjectsPanel/DebugSpaceObjectsPanel.tsx +47 -0
- package/src/containers/DebugSpaceObjectsPanel/index.ts +5 -0
- package/src/{components → containers/DebugStatus}/DebugStatus.tsx +41 -19
- package/src/containers/DebugStatus/index.ts +5 -0
- package/src/containers/DevtoolsOverviewContainer/DevtoolsOverviewContainer.tsx +25 -0
- package/src/containers/DevtoolsOverviewContainer/index.ts +5 -0
- package/src/containers/GithubPanel/GithubComponent.stories.tsx +38 -0
- package/src/containers/GithubPanel/GithubComponent.tsx +192 -0
- package/src/containers/GithubPanel/GithubPanel.tsx +17 -0
- package/src/containers/GithubPanel/index.ts +5 -0
- package/src/containers/SpaceGenerator/SpaceGenerator.tsx +126 -0
- package/src/containers/SpaceGenerator/index.ts +5 -0
- package/src/{components → containers/Wireframe}/Wireframe.tsx +7 -12
- package/src/containers/Wireframe/index.ts +5 -0
- package/src/containers/index.ts +14 -0
- package/src/index.ts +1 -1
- package/src/meta.ts +27 -5
- package/src/plugin.ts +10 -0
- package/src/translations.ts +82 -58
- package/src/types/Settings.ts +16 -0
- package/src/{types.ts → types/index.ts} +20 -11
- 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-VMWHGAJZ.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/index.mjs +0 -131
- package/dist/lib/browser/index.mjs.map +0 -7
- package/dist/lib/browser/meta.json +0 -1
- 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-GFORPA3A.mjs +0 -772
- package/dist/lib/browser/react-surface-GFORPA3A.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/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 +0 -7
- 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 +0 -9
- 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/dist/types/src/types.d.ts +0 -63
- package/dist/types/src/types.d.ts.map +0 -1
- package/src/components/Container.tsx +0 -15
- package/src/components/DebugGraph.tsx +0 -14
- package/src/components/DebugObjectPanel.tsx +0 -33
- package/src/components/DebugSettings.tsx +0 -159
- package/src/components/DevtoolsOverviewContainer.tsx +0 -20
- 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
|
@@ -0,0 +1,598 @@
|
|
|
1
|
+
import "./chunk-J5LGTIGS.mjs";
|
|
2
|
+
|
|
3
|
+
// src/capabilities/app-graph-builder.ts
|
|
4
|
+
import * as Effect from "effect/Effect";
|
|
5
|
+
import { Capability } from "@dxos/app-framework";
|
|
6
|
+
import { AppCapabilities, AppNode, getSpaceIdFromPath } from "@dxos/app-toolkit";
|
|
7
|
+
import { ClientCapabilities } from "@dxos/plugin-client";
|
|
8
|
+
import { GraphBuilder, Node, NodeMatcher } from "@dxos/plugin-graph";
|
|
9
|
+
import { SPACE_TYPE } from "@dxos/plugin-space";
|
|
10
|
+
import { getParentId } from "@dxos/react-ui-attention";
|
|
11
|
+
import { meta } from "#meta";
|
|
12
|
+
import { Devtools } from "#types";
|
|
13
|
+
var DEVTOOLS_TYPE = `${meta.id}.devtools`;
|
|
14
|
+
var app_graph_builder_default = Capability.makeModule(Effect.fnUntraced(function* () {
|
|
15
|
+
const extensions = yield* Effect.all([
|
|
16
|
+
GraphBuilder.createExtension({
|
|
17
|
+
id: "root",
|
|
18
|
+
match: NodeMatcher.whenRoot,
|
|
19
|
+
actions: () => Effect.succeed([
|
|
20
|
+
Node.makeAction({
|
|
21
|
+
id: "reset-data",
|
|
22
|
+
data: () => Effect.sync(() => {
|
|
23
|
+
window.location.href = "/reset.html#continue";
|
|
24
|
+
}),
|
|
25
|
+
properties: {
|
|
26
|
+
label: [
|
|
27
|
+
"reset-data.label",
|
|
28
|
+
{
|
|
29
|
+
ns: meta.id
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
icon: "ph--warning--regular"
|
|
33
|
+
}
|
|
34
|
+
})
|
|
35
|
+
])
|
|
36
|
+
}),
|
|
37
|
+
GraphBuilder.createExtension({
|
|
38
|
+
id: "devtools",
|
|
39
|
+
match: NodeMatcher.whenAny(NodeMatcher.whenRoot, NodeMatcher.whenNodeType(SPACE_TYPE)),
|
|
40
|
+
connector: (node, get) => Effect.gen(function* () {
|
|
41
|
+
const client = yield* Capability.get(ClientCapabilities.Client);
|
|
42
|
+
const layoutAtom = get(yield* Capability.atom(AppCapabilities.Layout))[0];
|
|
43
|
+
const layout = layoutAtom ? get(layoutAtom) : void 0;
|
|
44
|
+
const spaceId = layout?.workspace ? getSpaceIdFromPath(layout.workspace) : void 0;
|
|
45
|
+
const space = spaceId ? client.spaces.get(spaceId) : void 0;
|
|
46
|
+
const [graph] = get(yield* Capability.atom(AppCapabilities.AppGraph));
|
|
47
|
+
return [
|
|
48
|
+
Node.make({
|
|
49
|
+
id: Devtools.id,
|
|
50
|
+
data: null,
|
|
51
|
+
type: DEVTOOLS_TYPE,
|
|
52
|
+
properties: {
|
|
53
|
+
label: [
|
|
54
|
+
"devtools.label",
|
|
55
|
+
{
|
|
56
|
+
ns: meta.id
|
|
57
|
+
}
|
|
58
|
+
],
|
|
59
|
+
icon: "ph--hammer--regular",
|
|
60
|
+
disposition: "pin-end",
|
|
61
|
+
position: "last"
|
|
62
|
+
},
|
|
63
|
+
nodes: [
|
|
64
|
+
Node.make({
|
|
65
|
+
id: "app-graph",
|
|
66
|
+
type: `${meta.id}.app-graph`,
|
|
67
|
+
data: {
|
|
68
|
+
graph: graph?.graph,
|
|
69
|
+
root: node.id === Node.RootId ? node.id : getParentId(node.id)
|
|
70
|
+
},
|
|
71
|
+
properties: {
|
|
72
|
+
label: [
|
|
73
|
+
"debug-app-graph.label",
|
|
74
|
+
{
|
|
75
|
+
ns: meta.id
|
|
76
|
+
}
|
|
77
|
+
],
|
|
78
|
+
icon: "ph--graph--regular"
|
|
79
|
+
}
|
|
80
|
+
}),
|
|
81
|
+
Node.make({
|
|
82
|
+
id: "tools-explorer",
|
|
83
|
+
data: Devtools.ToolsExplorer,
|
|
84
|
+
type: DEVTOOLS_TYPE,
|
|
85
|
+
properties: {
|
|
86
|
+
label: [
|
|
87
|
+
"debug-tools-explorer.label",
|
|
88
|
+
{
|
|
89
|
+
ns: meta.id
|
|
90
|
+
}
|
|
91
|
+
],
|
|
92
|
+
icon: "ph--toolbox--regular"
|
|
93
|
+
}
|
|
94
|
+
}),
|
|
95
|
+
...space && node.type === SPACE_TYPE ? [
|
|
96
|
+
Node.make({
|
|
97
|
+
id: "debug",
|
|
98
|
+
type: `${meta.id}.space`,
|
|
99
|
+
data: {
|
|
100
|
+
space,
|
|
101
|
+
type: `${meta.id}.space`
|
|
102
|
+
},
|
|
103
|
+
properties: {
|
|
104
|
+
label: [
|
|
105
|
+
"generate-objects.label",
|
|
106
|
+
{
|
|
107
|
+
ns: meta.id
|
|
108
|
+
}
|
|
109
|
+
],
|
|
110
|
+
icon: "ph--dice-five--regular"
|
|
111
|
+
}
|
|
112
|
+
})
|
|
113
|
+
] : [],
|
|
114
|
+
Node.make({
|
|
115
|
+
id: Devtools.Client.id,
|
|
116
|
+
data: null,
|
|
117
|
+
type: DEVTOOLS_TYPE,
|
|
118
|
+
properties: {
|
|
119
|
+
label: [
|
|
120
|
+
"client.label",
|
|
121
|
+
{
|
|
122
|
+
ns: meta.id
|
|
123
|
+
}
|
|
124
|
+
],
|
|
125
|
+
icon: "ph--users--regular"
|
|
126
|
+
},
|
|
127
|
+
nodes: [
|
|
128
|
+
Node.make({
|
|
129
|
+
id: Devtools.Client.Config,
|
|
130
|
+
data: Devtools.Client.Config,
|
|
131
|
+
type: DEVTOOLS_TYPE,
|
|
132
|
+
properties: {
|
|
133
|
+
label: [
|
|
134
|
+
"config.label",
|
|
135
|
+
{
|
|
136
|
+
ns: meta.id
|
|
137
|
+
}
|
|
138
|
+
],
|
|
139
|
+
icon: "ph--gear--regular"
|
|
140
|
+
}
|
|
141
|
+
}),
|
|
142
|
+
Node.make({
|
|
143
|
+
id: Devtools.Client.Storage,
|
|
144
|
+
data: Devtools.Client.Storage,
|
|
145
|
+
type: DEVTOOLS_TYPE,
|
|
146
|
+
properties: {
|
|
147
|
+
label: [
|
|
148
|
+
"storage.label",
|
|
149
|
+
{
|
|
150
|
+
ns: meta.id
|
|
151
|
+
}
|
|
152
|
+
],
|
|
153
|
+
icon: "ph--hard-drives--regular"
|
|
154
|
+
}
|
|
155
|
+
}),
|
|
156
|
+
Node.make({
|
|
157
|
+
id: Devtools.Client.Logs,
|
|
158
|
+
data: Devtools.Client.Logs,
|
|
159
|
+
type: DEVTOOLS_TYPE,
|
|
160
|
+
properties: {
|
|
161
|
+
label: [
|
|
162
|
+
"logs.label",
|
|
163
|
+
{
|
|
164
|
+
ns: meta.id
|
|
165
|
+
}
|
|
166
|
+
],
|
|
167
|
+
icon: "ph--file-text--regular"
|
|
168
|
+
}
|
|
169
|
+
}),
|
|
170
|
+
Node.make({
|
|
171
|
+
id: Devtools.Client.Diagnostics,
|
|
172
|
+
data: Devtools.Client.Diagnostics,
|
|
173
|
+
type: DEVTOOLS_TYPE,
|
|
174
|
+
properties: {
|
|
175
|
+
label: [
|
|
176
|
+
"diagnostics.label",
|
|
177
|
+
{
|
|
178
|
+
ns: meta.id
|
|
179
|
+
}
|
|
180
|
+
],
|
|
181
|
+
icon: "ph--chart-line--regular"
|
|
182
|
+
}
|
|
183
|
+
})
|
|
184
|
+
]
|
|
185
|
+
}),
|
|
186
|
+
Node.make({
|
|
187
|
+
id: Devtools.Halo.id,
|
|
188
|
+
data: null,
|
|
189
|
+
type: DEVTOOLS_TYPE,
|
|
190
|
+
properties: {
|
|
191
|
+
label: [
|
|
192
|
+
"halo.label",
|
|
193
|
+
{
|
|
194
|
+
ns: meta.id
|
|
195
|
+
}
|
|
196
|
+
],
|
|
197
|
+
icon: "ph--identification-badge--regular"
|
|
198
|
+
},
|
|
199
|
+
nodes: [
|
|
200
|
+
Node.make({
|
|
201
|
+
id: Devtools.Halo.Identity,
|
|
202
|
+
data: Devtools.Halo.Identity,
|
|
203
|
+
type: DEVTOOLS_TYPE,
|
|
204
|
+
properties: {
|
|
205
|
+
label: [
|
|
206
|
+
"identity.label",
|
|
207
|
+
{
|
|
208
|
+
ns: meta.id
|
|
209
|
+
}
|
|
210
|
+
],
|
|
211
|
+
icon: "ph--identification-badge--regular"
|
|
212
|
+
}
|
|
213
|
+
}),
|
|
214
|
+
Node.make({
|
|
215
|
+
id: Devtools.Halo.Devices,
|
|
216
|
+
data: Devtools.Halo.Devices,
|
|
217
|
+
type: DEVTOOLS_TYPE,
|
|
218
|
+
properties: {
|
|
219
|
+
label: [
|
|
220
|
+
"devices.label",
|
|
221
|
+
{
|
|
222
|
+
ns: meta.id
|
|
223
|
+
}
|
|
224
|
+
],
|
|
225
|
+
icon: "ph--devices--regular"
|
|
226
|
+
}
|
|
227
|
+
}),
|
|
228
|
+
Node.make({
|
|
229
|
+
id: Devtools.Halo.Keyring,
|
|
230
|
+
data: Devtools.Halo.Keyring,
|
|
231
|
+
type: DEVTOOLS_TYPE,
|
|
232
|
+
properties: {
|
|
233
|
+
label: [
|
|
234
|
+
"keyring.label",
|
|
235
|
+
{
|
|
236
|
+
ns: meta.id
|
|
237
|
+
}
|
|
238
|
+
],
|
|
239
|
+
icon: "ph--key--regular"
|
|
240
|
+
}
|
|
241
|
+
}),
|
|
242
|
+
Node.make({
|
|
243
|
+
id: Devtools.Halo.Credentials,
|
|
244
|
+
data: Devtools.Halo.Credentials,
|
|
245
|
+
type: DEVTOOLS_TYPE,
|
|
246
|
+
properties: {
|
|
247
|
+
label: [
|
|
248
|
+
"credentials.label",
|
|
249
|
+
{
|
|
250
|
+
ns: meta.id
|
|
251
|
+
}
|
|
252
|
+
],
|
|
253
|
+
icon: "ph--credit-card--regular"
|
|
254
|
+
}
|
|
255
|
+
})
|
|
256
|
+
]
|
|
257
|
+
}),
|
|
258
|
+
Node.make({
|
|
259
|
+
id: Devtools.Echo.id,
|
|
260
|
+
data: null,
|
|
261
|
+
type: DEVTOOLS_TYPE,
|
|
262
|
+
properties: {
|
|
263
|
+
label: [
|
|
264
|
+
"echo.label",
|
|
265
|
+
{
|
|
266
|
+
ns: meta.id
|
|
267
|
+
}
|
|
268
|
+
],
|
|
269
|
+
icon: "ph--database--regular"
|
|
270
|
+
},
|
|
271
|
+
nodes: [
|
|
272
|
+
Node.make({
|
|
273
|
+
id: Devtools.Echo.Spaces,
|
|
274
|
+
data: Devtools.Echo.Spaces,
|
|
275
|
+
type: DEVTOOLS_TYPE,
|
|
276
|
+
properties: {
|
|
277
|
+
label: [
|
|
278
|
+
"spaces.label",
|
|
279
|
+
{
|
|
280
|
+
ns: meta.id
|
|
281
|
+
}
|
|
282
|
+
],
|
|
283
|
+
icon: "ph--graph--regular"
|
|
284
|
+
}
|
|
285
|
+
}),
|
|
286
|
+
Node.make({
|
|
287
|
+
id: Devtools.Echo.Space,
|
|
288
|
+
data: Devtools.Echo.Space,
|
|
289
|
+
type: DEVTOOLS_TYPE,
|
|
290
|
+
properties: {
|
|
291
|
+
label: [
|
|
292
|
+
"space.label",
|
|
293
|
+
{
|
|
294
|
+
ns: meta.id
|
|
295
|
+
}
|
|
296
|
+
],
|
|
297
|
+
icon: "ph--planet--regular"
|
|
298
|
+
}
|
|
299
|
+
}),
|
|
300
|
+
Node.make({
|
|
301
|
+
id: Devtools.Echo.Feeds,
|
|
302
|
+
data: Devtools.Echo.Feeds,
|
|
303
|
+
type: DEVTOOLS_TYPE,
|
|
304
|
+
properties: {
|
|
305
|
+
label: [
|
|
306
|
+
"feeds.label",
|
|
307
|
+
{
|
|
308
|
+
ns: meta.id
|
|
309
|
+
}
|
|
310
|
+
],
|
|
311
|
+
icon: "ph--list-bullets--regular"
|
|
312
|
+
}
|
|
313
|
+
}),
|
|
314
|
+
Node.make({
|
|
315
|
+
id: Devtools.Echo.Objects,
|
|
316
|
+
data: Devtools.Echo.Objects,
|
|
317
|
+
type: DEVTOOLS_TYPE,
|
|
318
|
+
properties: {
|
|
319
|
+
label: [
|
|
320
|
+
"objects.label",
|
|
321
|
+
{
|
|
322
|
+
ns: meta.id
|
|
323
|
+
}
|
|
324
|
+
],
|
|
325
|
+
icon: "ph--cube--regular"
|
|
326
|
+
}
|
|
327
|
+
}),
|
|
328
|
+
Node.make({
|
|
329
|
+
id: Devtools.Echo.Schema,
|
|
330
|
+
data: Devtools.Echo.Schema,
|
|
331
|
+
type: DEVTOOLS_TYPE,
|
|
332
|
+
properties: {
|
|
333
|
+
label: [
|
|
334
|
+
"schema.label",
|
|
335
|
+
{
|
|
336
|
+
ns: meta.id
|
|
337
|
+
}
|
|
338
|
+
],
|
|
339
|
+
icon: "ph--database--regular"
|
|
340
|
+
}
|
|
341
|
+
}),
|
|
342
|
+
Node.make({
|
|
343
|
+
id: Devtools.Echo.Automerge,
|
|
344
|
+
data: Devtools.Echo.Automerge,
|
|
345
|
+
type: DEVTOOLS_TYPE,
|
|
346
|
+
properties: {
|
|
347
|
+
label: [
|
|
348
|
+
"automerge.label",
|
|
349
|
+
{
|
|
350
|
+
ns: meta.id
|
|
351
|
+
}
|
|
352
|
+
],
|
|
353
|
+
icon: "ph--gear-six--regular"
|
|
354
|
+
}
|
|
355
|
+
}),
|
|
356
|
+
Node.make({
|
|
357
|
+
id: Devtools.Echo.Queues,
|
|
358
|
+
data: Devtools.Echo.Queues,
|
|
359
|
+
type: DEVTOOLS_TYPE,
|
|
360
|
+
properties: {
|
|
361
|
+
label: [
|
|
362
|
+
"queues.label",
|
|
363
|
+
{
|
|
364
|
+
ns: meta.id
|
|
365
|
+
}
|
|
366
|
+
],
|
|
367
|
+
icon: "ph--queue--regular"
|
|
368
|
+
}
|
|
369
|
+
}),
|
|
370
|
+
Node.make({
|
|
371
|
+
id: Devtools.Echo.Members,
|
|
372
|
+
data: Devtools.Echo.Members,
|
|
373
|
+
type: DEVTOOLS_TYPE,
|
|
374
|
+
properties: {
|
|
375
|
+
label: [
|
|
376
|
+
"members.label",
|
|
377
|
+
{
|
|
378
|
+
ns: meta.id
|
|
379
|
+
}
|
|
380
|
+
],
|
|
381
|
+
icon: "ph--users--regular"
|
|
382
|
+
}
|
|
383
|
+
}),
|
|
384
|
+
Node.make({
|
|
385
|
+
id: Devtools.Echo.Metadata,
|
|
386
|
+
data: Devtools.Echo.Metadata,
|
|
387
|
+
type: DEVTOOLS_TYPE,
|
|
388
|
+
properties: {
|
|
389
|
+
label: [
|
|
390
|
+
"metadata.label",
|
|
391
|
+
{
|
|
392
|
+
ns: meta.id
|
|
393
|
+
}
|
|
394
|
+
],
|
|
395
|
+
icon: "ph--hard-drive--regular"
|
|
396
|
+
}
|
|
397
|
+
})
|
|
398
|
+
]
|
|
399
|
+
}),
|
|
400
|
+
Node.make({
|
|
401
|
+
id: Devtools.Mesh.id,
|
|
402
|
+
data: null,
|
|
403
|
+
type: DEVTOOLS_TYPE,
|
|
404
|
+
properties: {
|
|
405
|
+
label: [
|
|
406
|
+
"mesh.label",
|
|
407
|
+
{
|
|
408
|
+
ns: meta.id
|
|
409
|
+
}
|
|
410
|
+
],
|
|
411
|
+
icon: "ph--graph--regular"
|
|
412
|
+
},
|
|
413
|
+
nodes: [
|
|
414
|
+
Node.make({
|
|
415
|
+
id: Devtools.Mesh.Signal,
|
|
416
|
+
data: Devtools.Mesh.Signal,
|
|
417
|
+
type: DEVTOOLS_TYPE,
|
|
418
|
+
properties: {
|
|
419
|
+
label: [
|
|
420
|
+
"signal.label",
|
|
421
|
+
{
|
|
422
|
+
ns: meta.id
|
|
423
|
+
}
|
|
424
|
+
],
|
|
425
|
+
icon: "ph--wifi-high--regular"
|
|
426
|
+
}
|
|
427
|
+
}),
|
|
428
|
+
Node.make({
|
|
429
|
+
id: Devtools.Mesh.Swarm,
|
|
430
|
+
data: Devtools.Mesh.Swarm,
|
|
431
|
+
type: DEVTOOLS_TYPE,
|
|
432
|
+
properties: {
|
|
433
|
+
label: [
|
|
434
|
+
"swarm.label",
|
|
435
|
+
{
|
|
436
|
+
ns: meta.id
|
|
437
|
+
}
|
|
438
|
+
],
|
|
439
|
+
icon: "ph--users-three--regular"
|
|
440
|
+
}
|
|
441
|
+
}),
|
|
442
|
+
Node.make({
|
|
443
|
+
id: Devtools.Mesh.Network,
|
|
444
|
+
data: Devtools.Mesh.Network,
|
|
445
|
+
type: DEVTOOLS_TYPE,
|
|
446
|
+
properties: {
|
|
447
|
+
label: [
|
|
448
|
+
"network.label",
|
|
449
|
+
{
|
|
450
|
+
ns: meta.id
|
|
451
|
+
}
|
|
452
|
+
],
|
|
453
|
+
icon: "ph--polygon--regular"
|
|
454
|
+
}
|
|
455
|
+
})
|
|
456
|
+
]
|
|
457
|
+
}),
|
|
458
|
+
Node.make({
|
|
459
|
+
id: Devtools.Edge.id,
|
|
460
|
+
data: null,
|
|
461
|
+
type: DEVTOOLS_TYPE,
|
|
462
|
+
properties: {
|
|
463
|
+
label: [
|
|
464
|
+
"edge.label",
|
|
465
|
+
{
|
|
466
|
+
ns: meta.id
|
|
467
|
+
}
|
|
468
|
+
],
|
|
469
|
+
icon: "ph--cloud--regular"
|
|
470
|
+
},
|
|
471
|
+
nodes: [
|
|
472
|
+
Node.make({
|
|
473
|
+
id: Devtools.Edge.Dashboard,
|
|
474
|
+
data: Devtools.Edge.Dashboard,
|
|
475
|
+
type: DEVTOOLS_TYPE,
|
|
476
|
+
properties: {
|
|
477
|
+
label: [
|
|
478
|
+
"dashboard.label",
|
|
479
|
+
{
|
|
480
|
+
ns: meta.id
|
|
481
|
+
}
|
|
482
|
+
],
|
|
483
|
+
icon: "ph--computer-tower--regular"
|
|
484
|
+
}
|
|
485
|
+
}),
|
|
486
|
+
Node.make({
|
|
487
|
+
id: Devtools.Edge.Workflows,
|
|
488
|
+
data: Devtools.Edge.Workflows,
|
|
489
|
+
type: DEVTOOLS_TYPE,
|
|
490
|
+
properties: {
|
|
491
|
+
label: [
|
|
492
|
+
"workflows.label",
|
|
493
|
+
{
|
|
494
|
+
ns: meta.id
|
|
495
|
+
}
|
|
496
|
+
],
|
|
497
|
+
icon: "ph--function--regular"
|
|
498
|
+
}
|
|
499
|
+
}),
|
|
500
|
+
Node.make({
|
|
501
|
+
id: Devtools.Edge.Traces,
|
|
502
|
+
data: Devtools.Edge.Traces,
|
|
503
|
+
type: DEVTOOLS_TYPE,
|
|
504
|
+
properties: {
|
|
505
|
+
label: [
|
|
506
|
+
"traces.label",
|
|
507
|
+
{
|
|
508
|
+
ns: meta.id
|
|
509
|
+
}
|
|
510
|
+
],
|
|
511
|
+
icon: "ph--line-segments--regular"
|
|
512
|
+
}
|
|
513
|
+
}),
|
|
514
|
+
Node.make({
|
|
515
|
+
id: Devtools.Edge.Testing,
|
|
516
|
+
data: Devtools.Edge.Testing,
|
|
517
|
+
type: DEVTOOLS_TYPE,
|
|
518
|
+
properties: {
|
|
519
|
+
label: [
|
|
520
|
+
"testing.label",
|
|
521
|
+
{
|
|
522
|
+
ns: meta.id
|
|
523
|
+
}
|
|
524
|
+
],
|
|
525
|
+
icon: "ph--flask--regular"
|
|
526
|
+
}
|
|
527
|
+
})
|
|
528
|
+
]
|
|
529
|
+
})
|
|
530
|
+
]
|
|
531
|
+
})
|
|
532
|
+
];
|
|
533
|
+
})
|
|
534
|
+
}),
|
|
535
|
+
// Debug object companion.
|
|
536
|
+
GraphBuilder.createExtension({
|
|
537
|
+
id: "debug-object",
|
|
538
|
+
match: NodeMatcher.whenEchoObject,
|
|
539
|
+
connector: () => Effect.succeed([
|
|
540
|
+
AppNode.makeCompanion({
|
|
541
|
+
id: "debug",
|
|
542
|
+
label: [
|
|
543
|
+
"debug.label",
|
|
544
|
+
{
|
|
545
|
+
ns: meta.id
|
|
546
|
+
}
|
|
547
|
+
],
|
|
548
|
+
icon: "ph--bug--regular",
|
|
549
|
+
data: "debug",
|
|
550
|
+
position: "last"
|
|
551
|
+
})
|
|
552
|
+
])
|
|
553
|
+
}),
|
|
554
|
+
// Devtools deck companion.
|
|
555
|
+
GraphBuilder.createExtension({
|
|
556
|
+
id: "devtools-overview",
|
|
557
|
+
match: NodeMatcher.whenRoot,
|
|
558
|
+
connector: () => Effect.succeed([
|
|
559
|
+
AppNode.makeDeckCompanion({
|
|
560
|
+
id: "devtools",
|
|
561
|
+
label: [
|
|
562
|
+
"devtools-overview.label",
|
|
563
|
+
{
|
|
564
|
+
ns: meta.id
|
|
565
|
+
}
|
|
566
|
+
],
|
|
567
|
+
icon: "ph--equalizer--regular",
|
|
568
|
+
data: "devtools",
|
|
569
|
+
position: "last"
|
|
570
|
+
})
|
|
571
|
+
])
|
|
572
|
+
}),
|
|
573
|
+
// Object explorer.
|
|
574
|
+
GraphBuilder.createExtension({
|
|
575
|
+
id: "space-objects",
|
|
576
|
+
match: NodeMatcher.whenRoot,
|
|
577
|
+
connector: () => Effect.succeed([
|
|
578
|
+
AppNode.makeDeckCompanion({
|
|
579
|
+
id: "space-objects",
|
|
580
|
+
label: [
|
|
581
|
+
"space-objects.label",
|
|
582
|
+
{
|
|
583
|
+
ns: meta.id
|
|
584
|
+
}
|
|
585
|
+
],
|
|
586
|
+
icon: "ph--cube--regular",
|
|
587
|
+
data: "space-objects",
|
|
588
|
+
position: "last"
|
|
589
|
+
})
|
|
590
|
+
])
|
|
591
|
+
})
|
|
592
|
+
]);
|
|
593
|
+
return Capability.contributes(AppCapabilities.AppGraphBuilder, extensions);
|
|
594
|
+
}));
|
|
595
|
+
export {
|
|
596
|
+
app_graph_builder_default as default
|
|
597
|
+
};
|
|
598
|
+
//# sourceMappingURL=app-graph-builder-ZNMWIDDF.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/capabilities/app-graph-builder.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, AppNode, getSpaceIdFromPath } from '@dxos/app-toolkit';\nimport { ClientCapabilities } from '@dxos/plugin-client';\nimport { GraphBuilder, Node, NodeMatcher } from '@dxos/plugin-graph';\nimport { SPACE_TYPE } from '@dxos/plugin-space';\nimport { getParentId } from '@dxos/react-ui-attention';\n\nimport { meta } from '#meta';\nimport { Devtools } from '#types';\n\nconst DEVTOOLS_TYPE = `${meta.id}.devtools`;\n\nexport default Capability.makeModule(\n Effect.fnUntraced(function* () {\n const extensions = yield* Effect.all([\n GraphBuilder.createExtension({\n id: 'root',\n match: NodeMatcher.whenRoot,\n actions: () =>\n Effect.succeed([\n Node.makeAction({\n id: 'reset-data',\n data: () =>\n Effect.sync(() => {\n window.location.href = '/reset.html#continue';\n }),\n properties: {\n label: ['reset-data.label', { ns: meta.id }],\n icon: 'ph--warning--regular',\n },\n }),\n ]),\n }),\n\n GraphBuilder.createExtension({\n id: 'devtools',\n match: NodeMatcher.whenAny(NodeMatcher.whenRoot, NodeMatcher.whenNodeType(SPACE_TYPE)),\n connector: (node, get) =>\n Effect.gen(function* () {\n const client = yield* Capability.get(ClientCapabilities.Client);\n const layoutAtom = get(yield* Capability.atom(AppCapabilities.Layout))[0];\n const layout = layoutAtom ? get(layoutAtom) : undefined;\n const spaceId = layout?.workspace ? getSpaceIdFromPath(layout.workspace) : undefined;\n const space = spaceId ? client.spaces.get(spaceId) : undefined;\n const [graph] = get(yield* Capability.atom(AppCapabilities.AppGraph));\n\n return [\n Node.make({\n id: Devtools.id,\n data: null,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['devtools.label', { ns: meta.id }],\n icon: 'ph--hammer--regular',\n disposition: 'pin-end',\n position: 'last',\n },\n nodes: [\n Node.make({\n id: 'app-graph',\n type: `${meta.id}.app-graph`,\n data: { graph: graph?.graph, root: node.id === Node.RootId ? node.id : getParentId(node.id) },\n properties: {\n label: ['debug-app-graph.label', { ns: meta.id }],\n icon: 'ph--graph--regular',\n },\n }),\n Node.make({\n id: 'tools-explorer',\n data: Devtools.ToolsExplorer,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['debug-tools-explorer.label', { ns: meta.id }],\n icon: 'ph--toolbox--regular',\n },\n }),\n ...(space && node.type === SPACE_TYPE\n ? [\n Node.make({\n id: 'debug',\n type: `${meta.id}.space`,\n data: { space, type: `${meta.id}.space` },\n properties: {\n label: ['generate-objects.label', { ns: meta.id }],\n icon: 'ph--dice-five--regular',\n },\n }),\n ]\n : []),\n Node.make({\n id: Devtools.Client.id,\n data: null,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['client.label', { ns: meta.id }],\n icon: 'ph--users--regular',\n },\n nodes: [\n Node.make({\n id: Devtools.Client.Config,\n data: Devtools.Client.Config,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['config.label', { ns: meta.id }],\n icon: 'ph--gear--regular',\n },\n }),\n Node.make({\n id: Devtools.Client.Storage,\n data: Devtools.Client.Storage,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['storage.label', { ns: meta.id }],\n icon: 'ph--hard-drives--regular',\n },\n }),\n Node.make({\n id: Devtools.Client.Logs,\n data: Devtools.Client.Logs,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['logs.label', { ns: meta.id }],\n icon: 'ph--file-text--regular',\n },\n }),\n Node.make({\n id: Devtools.Client.Diagnostics,\n data: Devtools.Client.Diagnostics,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['diagnostics.label', { ns: meta.id }],\n icon: 'ph--chart-line--regular',\n },\n }),\n ],\n }),\n Node.make({\n id: Devtools.Halo.id,\n data: null,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['halo.label', { ns: meta.id }],\n icon: 'ph--identification-badge--regular',\n },\n nodes: [\n Node.make({\n id: Devtools.Halo.Identity,\n data: Devtools.Halo.Identity,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['identity.label', { ns: meta.id }],\n icon: 'ph--identification-badge--regular',\n },\n }),\n Node.make({\n id: Devtools.Halo.Devices,\n data: Devtools.Halo.Devices,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['devices.label', { ns: meta.id }],\n icon: 'ph--devices--regular',\n },\n }),\n Node.make({\n id: Devtools.Halo.Keyring,\n data: Devtools.Halo.Keyring,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['keyring.label', { ns: meta.id }],\n icon: 'ph--key--regular',\n },\n }),\n Node.make({\n id: Devtools.Halo.Credentials,\n data: Devtools.Halo.Credentials,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['credentials.label', { ns: meta.id }],\n icon: 'ph--credit-card--regular',\n },\n }),\n ],\n }),\n Node.make({\n id: Devtools.Echo.id,\n data: null,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['echo.label', { ns: meta.id }],\n icon: 'ph--database--regular',\n },\n nodes: [\n Node.make({\n id: Devtools.Echo.Spaces,\n data: Devtools.Echo.Spaces,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['spaces.label', { ns: meta.id }],\n icon: 'ph--graph--regular',\n },\n }),\n Node.make({\n id: Devtools.Echo.Space,\n data: Devtools.Echo.Space,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['space.label', { ns: meta.id }],\n icon: 'ph--planet--regular',\n },\n }),\n Node.make({\n id: Devtools.Echo.Feeds,\n data: Devtools.Echo.Feeds,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['feeds.label', { ns: meta.id }],\n icon: 'ph--list-bullets--regular',\n },\n }),\n Node.make({\n id: Devtools.Echo.Objects,\n data: Devtools.Echo.Objects,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['objects.label', { ns: meta.id }],\n icon: 'ph--cube--regular',\n },\n }),\n Node.make({\n id: Devtools.Echo.Schema,\n data: Devtools.Echo.Schema,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['schema.label', { ns: meta.id }],\n icon: 'ph--database--regular',\n },\n }),\n Node.make({\n id: Devtools.Echo.Automerge,\n data: Devtools.Echo.Automerge,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['automerge.label', { ns: meta.id }],\n icon: 'ph--gear-six--regular',\n },\n }),\n Node.make({\n id: Devtools.Echo.Queues,\n data: Devtools.Echo.Queues,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['queues.label', { ns: meta.id }],\n icon: 'ph--queue--regular',\n },\n }),\n Node.make({\n id: Devtools.Echo.Members,\n data: Devtools.Echo.Members,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['members.label', { ns: meta.id }],\n icon: 'ph--users--regular',\n },\n }),\n Node.make({\n id: Devtools.Echo.Metadata,\n data: Devtools.Echo.Metadata,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['metadata.label', { ns: meta.id }],\n icon: 'ph--hard-drive--regular',\n },\n }),\n ],\n }),\n Node.make({\n id: Devtools.Mesh.id,\n data: null,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['mesh.label', { ns: meta.id }],\n icon: 'ph--graph--regular',\n },\n nodes: [\n Node.make({\n id: Devtools.Mesh.Signal,\n data: Devtools.Mesh.Signal,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['signal.label', { ns: meta.id }],\n icon: 'ph--wifi-high--regular',\n },\n }),\n Node.make({\n id: Devtools.Mesh.Swarm,\n data: Devtools.Mesh.Swarm,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['swarm.label', { ns: meta.id }],\n icon: 'ph--users-three--regular',\n },\n }),\n Node.make({\n id: Devtools.Mesh.Network,\n data: Devtools.Mesh.Network,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['network.label', { ns: meta.id }],\n icon: 'ph--polygon--regular',\n },\n }),\n ],\n }),\n Node.make({\n id: Devtools.Edge.id,\n data: null,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['edge.label', { ns: meta.id }],\n icon: 'ph--cloud--regular',\n },\n nodes: [\n Node.make({\n id: Devtools.Edge.Dashboard,\n data: Devtools.Edge.Dashboard,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['dashboard.label', { ns: meta.id }],\n icon: 'ph--computer-tower--regular',\n },\n }),\n Node.make({\n id: Devtools.Edge.Workflows,\n data: Devtools.Edge.Workflows,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['workflows.label', { ns: meta.id }],\n icon: 'ph--function--regular',\n },\n }),\n Node.make({\n id: Devtools.Edge.Traces,\n data: Devtools.Edge.Traces,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['traces.label', { ns: meta.id }],\n icon: 'ph--line-segments--regular',\n },\n }),\n Node.make({\n id: Devtools.Edge.Testing,\n data: Devtools.Edge.Testing,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['testing.label', { ns: meta.id }],\n icon: 'ph--flask--regular',\n },\n }),\n ],\n }),\n ],\n }),\n ];\n }),\n }),\n\n // Debug object companion.\n GraphBuilder.createExtension({\n id: 'debug-object',\n match: NodeMatcher.whenEchoObject,\n connector: () =>\n Effect.succeed([\n AppNode.makeCompanion({\n id: 'debug',\n label: ['debug.label', { ns: meta.id }],\n icon: 'ph--bug--regular',\n data: 'debug',\n position: 'last',\n }),\n ]),\n }),\n\n // Devtools deck companion.\n GraphBuilder.createExtension({\n id: 'devtools-overview',\n match: NodeMatcher.whenRoot,\n connector: () =>\n Effect.succeed([\n AppNode.makeDeckCompanion({\n id: 'devtools',\n label: ['devtools-overview.label', { ns: meta.id }],\n icon: 'ph--equalizer--regular',\n data: 'devtools' as const,\n position: 'last',\n }),\n ]),\n }),\n\n // Object explorer.\n GraphBuilder.createExtension({\n id: 'space-objects',\n match: NodeMatcher.whenRoot,\n connector: () =>\n Effect.succeed([\n AppNode.makeDeckCompanion({\n id: 'space-objects',\n label: ['space-objects.label', { ns: meta.id }],\n icon: 'ph--cube--regular',\n data: 'space-objects' as const,\n position: 'last',\n }),\n ]),\n }),\n ]);\n\n return Capability.contributes(AppCapabilities.AppGraphBuilder, extensions);\n }),\n);\n"],
|
|
5
|
+
"mappings": ";;;AAIA,YAAYA,YAAY;AAExB,SAASC,kBAAkB;AAC3B,SAASC,iBAAiBC,SAASC,0BAA0B;AAC7D,SAASC,0BAA0B;AACnC,SAASC,cAAcC,MAAMC,mBAAmB;AAChD,SAASC,kBAAkB;AAC3B,SAASC,mBAAmB;AAE5B,SAASC,YAAY;AACrB,SAASC,gBAAgB;AAEzB,IAAMC,gBAAgB,GAAGF,KAAKG,EAAE;AAEhC,IAAA,4BAAeb,WAAWc,WACjBC,kBAAW,aAAA;AAChB,QAAMC,aAAa,OAAcC,WAAI;IACnCZ,aAAaa,gBAAgB;MAC3BL,IAAI;MACJM,OAAOZ,YAAYa;MACnBC,SAAS,MACAC,eAAQ;QACbhB,KAAKiB,WAAW;UACdV,IAAI;UACJW,MAAM,MACGC,YAAK,MAAA;AACVC,mBAAOC,SAASC,OAAO;UACzB,CAAA;UACFC,YAAY;YACVC,OAAO;cAAC;cAAoB;gBAAEC,IAAIrB,KAAKG;cAAG;;YAC1CmB,MAAM;UACR;QACF,CAAA;OACD;IACL,CAAA;IAEA3B,aAAaa,gBAAgB;MAC3BL,IAAI;MACJM,OAAOZ,YAAY0B,QAAQ1B,YAAYa,UAAUb,YAAY2B,aAAa1B,UAAAA,CAAAA;MAC1E2B,WAAW,CAACC,MAAMC,QACTC,WAAI,aAAA;AACT,cAAMC,S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AAIF,SAASwE,KAAKI;oBAClB/D,MAAMb,SAASwE,KAAKI;oBACpBlC,MAAMzC;oBACNiB,YAAY;sBACVC,OAAO;wBAAC;wBAAiB;0BAAEC,IAAIrB,KAAKG;wBAAG;;sBACvCmB,MAAM;oBACR;kBACF,CAAA;;cAEJ,CAAA;;UAEJ,CAAA;;MAEJ,CAAA;IACJ,CAAA;;IAGA3B,aAAaa,gBAAgB;MAC3BL,IAAI;MACJM,OAAOZ,YAAYiF;MACnBrD,WAAW,MACFb,eAAQ;QACbpB,QAAQuF,cAAc;UACpB5E,IAAI;UACJiB,OAAO;YAAC;YAAe;cAAEC,IAAIrB,KAAKG;YAAG;;UACrCmB,MAAM;UACNR,MAAM;UACN+B,UAAU;QACZ,CAAA;OACD;IACL,CAAA;;IAGAlD,aAAaa,gBAAgB;MAC3BL,IAAI;MACJM,OAAOZ,YAAYa;MACnBe,WAAW,MACFb,eAAQ;QACbpB,QAAQwF,kBAAkB;UACxB7E,IAAI;UACJiB,OAAO;YAAC;YAA2B;cAAEC,IAAIrB,KAAKG;YAAG;;UACjDmB,MAAM;UACNR,MAAM;UACN+B,UAAU;QACZ,CAAA;OACD;IACL,CAAA;;IAGAlD,aAAaa,gBAAgB;MAC3BL,IAAI;MACJM,OAAOZ,YAAYa;MACnBe,WAAW,MACFb,eAAQ;QACbpB,QAAQwF,kBAAkB;UACxB7E,IAAI;UACJiB,OAAO;YAAC;YAAuB;cAAEC,IAAIrB,KAAKG;YAAG;;UAC7CmB,MAAM;UACNR,MAAM;UACN+B,UAAU;QACZ,CAAA;OACD;IACL,CAAA;GACD;AAED,SAAOvD,WAAW2F,YAAY1F,gBAAgB2F,iBAAiB5E,UAAAA;AACjE,CAAA,CAAA;",
|
|
6
|
+
"names": ["Effect", "Capability", "AppCapabilities", "AppNode", "getSpaceIdFromPath", "ClientCapabilities", "GraphBuilder", "Node", "NodeMatcher", "SPACE_TYPE", "getParentId", "meta", "Devtools", "DEVTOOLS_TYPE", "id", "makeModule", "fnUntraced", "extensions", "all", "createExtension", "match", "whenRoot", "actions", "succeed", "makeAction", "data", "sync", "window", "location", "href", "properties", "label", "ns", "icon", "whenAny", "whenNodeType", "connector", "node", "get", "gen", "client", "Client", "layoutAtom", "atom", "Layout", "layout", "undefined", "spaceId", "workspace", "space", "spaces", "graph", "AppGraph", "make", "type", "disposition", "position", "nodes", "root", "RootId", "ToolsExplorer", "Config", "Storage", "Logs", "Diagnostics", "Halo", "Identity", "Devices", "Keyring", "Credentials", "Echo", "Spaces", "Space", "Feeds", "Objects", "Schema", "Automerge", "Queues", "Members", "Metadata", "Mesh", "Signal", "Swarm", "Network", "Edge", "Dashboard", "Workflows", "Traces", "Testing", "whenEchoObject", "makeCompanion", "makeDeckCompanion", "contributes", "AppGraphBuilder"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import "../chunk-J5LGTIGS.mjs";
|
|
2
|
+
|
|
3
|
+
// src/capabilities/index.ts
|
|
4
|
+
import { Capability } from "@dxos/app-framework";
|
|
5
|
+
var AppGraphBuilder = Capability.lazy("AppGraphBuilder", () => import("../app-graph-builder-ZNMWIDDF.mjs"));
|
|
6
|
+
var ReactContext = Capability.lazy("ReactContext", () => import("../react-context-MUZ3KVLU.mjs"));
|
|
7
|
+
var ReactSurface = Capability.lazy("ReactSurface", () => import("../react-surface-T4NYONZ7.mjs"));
|
|
8
|
+
var DebugSettings = Capability.lazy("DebugSettings", () => import("../settings-MPM6YUP4.mjs"));
|
|
9
|
+
export {
|
|
10
|
+
AppGraphBuilder,
|
|
11
|
+
DebugSettings,
|
|
12
|
+
ReactContext,
|
|
13
|
+
ReactSurface
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/capabilities/index.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capability } from '@dxos/app-framework';\n\nexport const AppGraphBuilder = Capability.lazy('AppGraphBuilder', () => import('./app-graph-builder'));\nexport const ReactContext = Capability.lazy('ReactContext', () => import('./react-context'));\nexport const ReactSurface = Capability.lazy('ReactSurface', () => import('./react-surface'));\nexport const DebugSettings = Capability.lazy('DebugSettings', () => import('./settings'));\n"],
|
|
5
|
+
"mappings": ";;;AAIA,SAASA,kBAAkB;AAEpB,IAAMC,kBAAkBD,WAAWE,KAAK,mBAAmB,MAAM,OAAO,mCAAA,CAAA;AACxE,IAAMC,eAAeH,WAAWE,KAAK,gBAAgB,MAAM,OAAO,+BAAA,CAAA;AAClE,IAAME,eAAeJ,WAAWE,KAAK,gBAAgB,MAAM,OAAO,+BAAA,CAAA;AAClE,IAAMG,gBAAgBL,WAAWE,KAAK,iBAAiB,MAAM,OAAO,0BAAA,CAAA;",
|
|
6
|
+
"names": ["Capability", "AppGraphBuilder", "lazy", "ReactContext", "ReactSurface", "DebugSettings"]
|
|
7
|
+
}
|