@dxos/plugin-debug 0.8.4-main.c4373fc → 0.8.4-main.d9fc60f731
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/PLUGIN.mdl +373 -0
- 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-OS65NC4M.mjs +59 -0
- package/dist/lib/neutral/DebugObjectPanel-OS65NC4M.mjs.map +7 -0
- package/dist/lib/neutral/DebugPlugin.mjs +59 -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-RKYNQIKH.mjs +223 -0
- package/dist/lib/neutral/DebugSettings-RKYNQIKH.mjs.map +7 -0
- package/dist/lib/neutral/DebugSpaceObjectsPanel-BHOCFWDJ.mjs +34 -0
- package/dist/lib/neutral/DebugSpaceObjectsPanel-BHOCFWDJ.mjs.map +7 -0
- package/dist/lib/neutral/DebugStatus-H2BAHN26.mjs +122 -0
- package/dist/lib/neutral/DebugStatus-H2BAHN26.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/RegistryPanel-64GIYJHN.mjs +161 -0
- package/dist/lib/neutral/RegistryPanel-64GIYJHN.mjs.map +7 -0
- package/dist/lib/neutral/SpaceGenerator-Y35G6DRV.mjs +146 -0
- package/dist/lib/neutral/SpaceGenerator-Y35G6DRV.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-XYLTBYKN.mjs +612 -0
- package/dist/lib/neutral/app-graph-builder-XYLTBYKN.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-HOV6MV5B.mjs +43 -0
- package/dist/lib/neutral/chunk-HOV6MV5B.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-UAAGABXZ.mjs} +31 -9
- package/dist/lib/neutral/chunk-UAAGABXZ.mjs.map +7 -0
- package/dist/lib/{browser/SpaceGenerator-54FUIZIH.mjs → neutral/components/index.mjs} +343 -530
- package/dist/lib/neutral/components/index.mjs.map +7 -0
- package/dist/lib/neutral/containers/index.mjs +25 -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-3MDMZGCA.mjs +425 -0
- package/dist/lib/neutral/react-surface-3MDMZGCA.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 +91 -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 +106 -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 +106 -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/RegistryPanel/RegistryPanel.d.ts +3 -0
- package/dist/types/src/containers/RegistryPanel/RegistryPanel.d.ts.map +1 -0
- package/dist/types/src/containers/RegistryPanel/index.d.ts +2 -0
- package/dist/types/src/containers/RegistryPanel/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 +11 -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 +87 -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 +70 -0
- package/dist/types/src/types/index.d.ts.map +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +125 -78
- package/src/DebugPlugin.node.ts +18 -0
- package/src/DebugPlugin.test.ts +29 -0
- package/src/DebugPlugin.tsx +34 -34
- package/src/DebugPlugin.workerd.ts +12 -0
- package/src/capabilities/app-graph-builder.ts +390 -388
- package/src/capabilities/index.ts +5 -5
- package/src/capabilities/react-context.tsx +16 -7
- package/src/capabilities/react-surface.tsx +386 -339
- package/src/capabilities/settings.ts +24 -12
- package/src/components/DebugSettings/DebugSettings.stories.tsx +36 -0
- package/src/components/DebugSettings/DebugSettings.tsx +259 -0
- package/src/components/DebugSettings/index.ts +5 -0
- package/src/components/SchemaTable/index.ts +5 -0
- package/src/components/SpaceGenerator/ObjectGenerator.tsx +38 -44
- package/src/components/SpaceGenerator/draw-util.ts +8 -8
- package/src/components/SpaceGenerator/index.ts +2 -3
- package/src/components/SpaceGenerator/presets.ts +245 -151
- 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 +42 -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/RegistryPanel/RegistryPanel.tsx +150 -0
- package/src/containers/RegistryPanel/index.ts +5 -0
- package/src/containers/SpaceGenerator/SpaceGenerator.tsx +127 -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 +15 -0
- package/src/index.ts +1 -1
- package/src/meta.ts +29 -6
- package/src/plugin.ts +10 -0
- package/src/translations.ts +83 -58
- package/src/types/Settings.ts +16 -0
- package/src/{types.ts → types/index.ts} +21 -11
- package/src/vite-env.d.ts +10 -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/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-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/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,52 @@
|
|
|
1
|
+
import "./chunk-J5LGTIGS.mjs";
|
|
2
|
+
|
|
3
|
+
// src/containers/Wireframe/Wireframe.tsx
|
|
4
|
+
import React from "react";
|
|
5
|
+
import { useResizeDetector } from "react-resize-detector";
|
|
6
|
+
import { Obj } from "@dxos/echo";
|
|
7
|
+
import { useAttentionAttributes } from "@dxos/react-ui-attention";
|
|
8
|
+
import { JsonHighlighter } from "@dxos/react-ui-syntax-highlighter";
|
|
9
|
+
import { mx } from "@dxos/ui-theme";
|
|
10
|
+
var Wireframe = ({ classNames, label, object }) => {
|
|
11
|
+
const attentionAttrs = useAttentionAttributes(Obj.getURI(object));
|
|
12
|
+
const { width, height, ref } = useResizeDetector();
|
|
13
|
+
return /* @__PURE__ */ React.createElement("div", {
|
|
14
|
+
ref,
|
|
15
|
+
className: mx("relative grow min-h-96", classNames),
|
|
16
|
+
...attentionAttrs
|
|
17
|
+
}, /* @__PURE__ */ React.createElement("div", {
|
|
18
|
+
className: "absolute inset-2 flex flex-col gap-2 overflow-hidden font-mono"
|
|
19
|
+
}, /* @__PURE__ */ React.createElement("div", {
|
|
20
|
+
className: "flex justify-between"
|
|
21
|
+
}, /* @__PURE__ */ React.createElement("div", null, label), /* @__PURE__ */ React.createElement("div", null, `[${width}x${height}]`)), object && /* @__PURE__ */ React.createElement(JsonHighlighter, {
|
|
22
|
+
data: object,
|
|
23
|
+
classNames: "text-xs opacity-75 rounded-sm"
|
|
24
|
+
})), /* @__PURE__ */ React.createElement("svg", {
|
|
25
|
+
width,
|
|
26
|
+
height,
|
|
27
|
+
className: "bg-transparent *:text-subdued"
|
|
28
|
+
}, /* @__PURE__ */ React.createElement("rect", {
|
|
29
|
+
x: 0,
|
|
30
|
+
y: 0,
|
|
31
|
+
width,
|
|
32
|
+
height,
|
|
33
|
+
strokeWidth: 1,
|
|
34
|
+
fill: "none"
|
|
35
|
+
}), /* @__PURE__ */ React.createElement("line", {
|
|
36
|
+
x1: 0,
|
|
37
|
+
y1: 0,
|
|
38
|
+
x2: width,
|
|
39
|
+
y2: height,
|
|
40
|
+
strokeWidth: 1
|
|
41
|
+
}), /* @__PURE__ */ React.createElement("line", {
|
|
42
|
+
x1: 0,
|
|
43
|
+
y1: height,
|
|
44
|
+
x2: width,
|
|
45
|
+
y2: 0,
|
|
46
|
+
strokeWidth: 1
|
|
47
|
+
})));
|
|
48
|
+
};
|
|
49
|
+
export {
|
|
50
|
+
Wireframe as default
|
|
51
|
+
};
|
|
52
|
+
//# sourceMappingURL=Wireframe-WD7S2AUU.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/containers/Wireframe/Wireframe.tsx"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2024 DXOS.org\n//\n\nimport React from 'react';\nimport { useResizeDetector } from 'react-resize-detector';\n\nimport { Obj } from '@dxos/echo';\nimport { type ThemedClassName } from '@dxos/react-ui';\nimport { useAttentionAttributes } from '@dxos/react-ui-attention';\nimport { JsonHighlighter } from '@dxos/react-ui-syntax-highlighter';\nimport { mx } from '@dxos/ui-theme';\n\n// TODO(burdon): Create generic container with wireframe mode.\nexport type WireframeProps = ThemedClassName<{\n object: Obj.Unknown;\n label?: string;\n}>;\n\n// TODO(burdon): Make focusable and attendable with input.\nexport const Wireframe = ({ classNames, label, object }: WireframeProps) => {\n const attentionAttrs = useAttentionAttributes(Obj.getURI(object));\n const { width, height, ref } = useResizeDetector();\n\n return (\n <div ref={ref} className={mx('relative grow min-h-96', classNames)} {...attentionAttrs}>\n <div className='absolute inset-2 flex flex-col gap-2 overflow-hidden font-mono'>\n <div className='flex justify-between'>\n <div>{label}</div>\n <div>{`[${width}x${height}]`}</div>\n </div>\n {object && <JsonHighlighter data={object} classNames='text-xs opacity-75 rounded-sm' />}\n </div>\n <svg width={width} height={height} className='bg-transparent *:text-subdued'>\n <rect x={0} y={0} width={width} height={height} strokeWidth={1} fill='none' />\n <line x1={0} y1={0} x2={width} y2={height} strokeWidth={1} />\n <line x1={0} y1={height} x2={width} y2={0} strokeWidth={1} />\n </svg>\n </div>\n );\n};\n"],
|
|
5
|
+
"mappings": ";;;AAIA,OAAOA,WAAW;AAClB,SAASC,yBAAyB;AAElC,SAASC,WAAW;AAEpB,SAASC,8BAA8B;AACvC,SAASC,uBAAuB;AAChC,SAASC,UAAU;AASZ,IAAMC,YAAY,CAAC,EAAEC,YAAYC,OAAOC,OAAM,MAAkB;AACrE,QAAMC,iBAAiBP,uBAAuBD,IAAIS,OAAOF,MAAAA,CAAAA;AACzD,QAAM,EAAEG,OAAOC,QAAQC,IAAG,IAAKb,kBAAAA;AAE/B,SACE,sBAAA,cAACc,OAAAA;IAAID;IAAUE,WAAWX,GAAG,0BAA0BE,UAAAA;IAAc,GAAGG;KACtE,sBAAA,cAACK,OAAAA;IAAIC,WAAU;KACb,sBAAA,cAACD,OAAAA;IAAIC,WAAU;KACb,sBAAA,cAACD,OAAAA,MAAKP,KAAAA,GACN,sBAAA,cAACO,OAAAA,MAAK,IAAIH,KAAAA,IAASC,MAAAA,GAAS,CAAA,GAE7BJ,UAAU,sBAAA,cAACL,iBAAAA;IAAgBa,MAAMR;IAAQF,YAAW;OAEvD,sBAAA,cAACW,OAAAA;IAAIN;IAAcC;IAAgBG,WAAU;KAC3C,sBAAA,cAACG,QAAAA;IAAKC,GAAG;IAAGC,GAAG;IAAGT;IAAcC;IAAgBS,aAAa;IAAGC,MAAK;MACrE,sBAAA,cAACC,QAAAA;IAAKC,IAAI;IAAGC,IAAI;IAAGC,IAAIf;IAAOgB,IAAIf;IAAQS,aAAa;MACxD,sBAAA,cAACE,QAAAA;IAAKC,IAAI;IAAGC,IAAIb;IAAQc,IAAIf;IAAOgB,IAAI;IAAGN,aAAa;;AAIhE;",
|
|
6
|
+
"names": ["React", "useResizeDetector", "Obj", "useAttentionAttributes", "JsonHighlighter", "mx", "Wireframe", "classNames", "label", "object", "attentionAttrs", "getURI", "width", "height", "ref", "div", "className", "data", "svg", "rect", "x", "y", "strokeWidth", "fill", "line", "x1", "y1", "x2", "y2"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,612 @@
|
|
|
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: "resetData",
|
|
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: "appGraph",
|
|
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: "toolsExplorer",
|
|
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.Registry,
|
|
344
|
+
data: Devtools.Echo.Registry,
|
|
345
|
+
type: DEVTOOLS_TYPE,
|
|
346
|
+
properties: {
|
|
347
|
+
label: [
|
|
348
|
+
"registry.label",
|
|
349
|
+
{
|
|
350
|
+
ns: meta.id
|
|
351
|
+
}
|
|
352
|
+
],
|
|
353
|
+
icon: "ph--books--regular"
|
|
354
|
+
}
|
|
355
|
+
}),
|
|
356
|
+
Node.make({
|
|
357
|
+
id: Devtools.Echo.Automerge,
|
|
358
|
+
data: Devtools.Echo.Automerge,
|
|
359
|
+
type: DEVTOOLS_TYPE,
|
|
360
|
+
properties: {
|
|
361
|
+
label: [
|
|
362
|
+
"automerge.label",
|
|
363
|
+
{
|
|
364
|
+
ns: meta.id
|
|
365
|
+
}
|
|
366
|
+
],
|
|
367
|
+
icon: "ph--gear-six--regular"
|
|
368
|
+
}
|
|
369
|
+
}),
|
|
370
|
+
Node.make({
|
|
371
|
+
id: Devtools.Echo.Queues,
|
|
372
|
+
data: Devtools.Echo.Queues,
|
|
373
|
+
type: DEVTOOLS_TYPE,
|
|
374
|
+
properties: {
|
|
375
|
+
label: [
|
|
376
|
+
"queues.label",
|
|
377
|
+
{
|
|
378
|
+
ns: meta.id
|
|
379
|
+
}
|
|
380
|
+
],
|
|
381
|
+
icon: "ph--queue--regular"
|
|
382
|
+
}
|
|
383
|
+
}),
|
|
384
|
+
Node.make({
|
|
385
|
+
id: Devtools.Echo.Members,
|
|
386
|
+
data: Devtools.Echo.Members,
|
|
387
|
+
type: DEVTOOLS_TYPE,
|
|
388
|
+
properties: {
|
|
389
|
+
label: [
|
|
390
|
+
"members.label",
|
|
391
|
+
{
|
|
392
|
+
ns: meta.id
|
|
393
|
+
}
|
|
394
|
+
],
|
|
395
|
+
icon: "ph--users--regular"
|
|
396
|
+
}
|
|
397
|
+
}),
|
|
398
|
+
Node.make({
|
|
399
|
+
id: Devtools.Echo.Metadata,
|
|
400
|
+
data: Devtools.Echo.Metadata,
|
|
401
|
+
type: DEVTOOLS_TYPE,
|
|
402
|
+
properties: {
|
|
403
|
+
label: [
|
|
404
|
+
"metadata.label",
|
|
405
|
+
{
|
|
406
|
+
ns: meta.id
|
|
407
|
+
}
|
|
408
|
+
],
|
|
409
|
+
icon: "ph--hard-drive--regular"
|
|
410
|
+
}
|
|
411
|
+
})
|
|
412
|
+
]
|
|
413
|
+
}),
|
|
414
|
+
Node.make({
|
|
415
|
+
id: Devtools.Mesh.id,
|
|
416
|
+
data: null,
|
|
417
|
+
type: DEVTOOLS_TYPE,
|
|
418
|
+
properties: {
|
|
419
|
+
label: [
|
|
420
|
+
"mesh.label",
|
|
421
|
+
{
|
|
422
|
+
ns: meta.id
|
|
423
|
+
}
|
|
424
|
+
],
|
|
425
|
+
icon: "ph--graph--regular"
|
|
426
|
+
},
|
|
427
|
+
nodes: [
|
|
428
|
+
Node.make({
|
|
429
|
+
id: Devtools.Mesh.Signal,
|
|
430
|
+
data: Devtools.Mesh.Signal,
|
|
431
|
+
type: DEVTOOLS_TYPE,
|
|
432
|
+
properties: {
|
|
433
|
+
label: [
|
|
434
|
+
"signal.label",
|
|
435
|
+
{
|
|
436
|
+
ns: meta.id
|
|
437
|
+
}
|
|
438
|
+
],
|
|
439
|
+
icon: "ph--wifi-high--regular"
|
|
440
|
+
}
|
|
441
|
+
}),
|
|
442
|
+
Node.make({
|
|
443
|
+
id: Devtools.Mesh.Swarm,
|
|
444
|
+
data: Devtools.Mesh.Swarm,
|
|
445
|
+
type: DEVTOOLS_TYPE,
|
|
446
|
+
properties: {
|
|
447
|
+
label: [
|
|
448
|
+
"swarm.label",
|
|
449
|
+
{
|
|
450
|
+
ns: meta.id
|
|
451
|
+
}
|
|
452
|
+
],
|
|
453
|
+
icon: "ph--users-three--regular"
|
|
454
|
+
}
|
|
455
|
+
}),
|
|
456
|
+
Node.make({
|
|
457
|
+
id: Devtools.Mesh.Network,
|
|
458
|
+
data: Devtools.Mesh.Network,
|
|
459
|
+
type: DEVTOOLS_TYPE,
|
|
460
|
+
properties: {
|
|
461
|
+
label: [
|
|
462
|
+
"network.label",
|
|
463
|
+
{
|
|
464
|
+
ns: meta.id
|
|
465
|
+
}
|
|
466
|
+
],
|
|
467
|
+
icon: "ph--polygon--regular"
|
|
468
|
+
}
|
|
469
|
+
})
|
|
470
|
+
]
|
|
471
|
+
}),
|
|
472
|
+
Node.make({
|
|
473
|
+
id: Devtools.Edge.id,
|
|
474
|
+
data: null,
|
|
475
|
+
type: DEVTOOLS_TYPE,
|
|
476
|
+
properties: {
|
|
477
|
+
label: [
|
|
478
|
+
"edge.label",
|
|
479
|
+
{
|
|
480
|
+
ns: meta.id
|
|
481
|
+
}
|
|
482
|
+
],
|
|
483
|
+
icon: "ph--cloud--regular"
|
|
484
|
+
},
|
|
485
|
+
nodes: [
|
|
486
|
+
Node.make({
|
|
487
|
+
id: Devtools.Edge.Dashboard,
|
|
488
|
+
data: Devtools.Edge.Dashboard,
|
|
489
|
+
type: DEVTOOLS_TYPE,
|
|
490
|
+
properties: {
|
|
491
|
+
label: [
|
|
492
|
+
"dashboard.label",
|
|
493
|
+
{
|
|
494
|
+
ns: meta.id
|
|
495
|
+
}
|
|
496
|
+
],
|
|
497
|
+
icon: "ph--computer-tower--regular"
|
|
498
|
+
}
|
|
499
|
+
}),
|
|
500
|
+
Node.make({
|
|
501
|
+
id: Devtools.Edge.Workflows,
|
|
502
|
+
data: Devtools.Edge.Workflows,
|
|
503
|
+
type: DEVTOOLS_TYPE,
|
|
504
|
+
properties: {
|
|
505
|
+
label: [
|
|
506
|
+
"workflows.label",
|
|
507
|
+
{
|
|
508
|
+
ns: meta.id
|
|
509
|
+
}
|
|
510
|
+
],
|
|
511
|
+
icon: "ph--function--regular"
|
|
512
|
+
}
|
|
513
|
+
}),
|
|
514
|
+
Node.make({
|
|
515
|
+
id: Devtools.Edge.Traces,
|
|
516
|
+
data: Devtools.Edge.Traces,
|
|
517
|
+
type: DEVTOOLS_TYPE,
|
|
518
|
+
properties: {
|
|
519
|
+
label: [
|
|
520
|
+
"traces.label",
|
|
521
|
+
{
|
|
522
|
+
ns: meta.id
|
|
523
|
+
}
|
|
524
|
+
],
|
|
525
|
+
icon: "ph--line-segments--regular"
|
|
526
|
+
}
|
|
527
|
+
}),
|
|
528
|
+
Node.make({
|
|
529
|
+
id: Devtools.Edge.Testing,
|
|
530
|
+
data: Devtools.Edge.Testing,
|
|
531
|
+
type: DEVTOOLS_TYPE,
|
|
532
|
+
properties: {
|
|
533
|
+
label: [
|
|
534
|
+
"testing.label",
|
|
535
|
+
{
|
|
536
|
+
ns: meta.id
|
|
537
|
+
}
|
|
538
|
+
],
|
|
539
|
+
icon: "ph--flask--regular"
|
|
540
|
+
}
|
|
541
|
+
})
|
|
542
|
+
]
|
|
543
|
+
})
|
|
544
|
+
]
|
|
545
|
+
})
|
|
546
|
+
];
|
|
547
|
+
})
|
|
548
|
+
}),
|
|
549
|
+
// Debug object companion.
|
|
550
|
+
GraphBuilder.createExtension({
|
|
551
|
+
id: "debugObject",
|
|
552
|
+
match: NodeMatcher.whenEchoObject,
|
|
553
|
+
connector: () => Effect.succeed([
|
|
554
|
+
AppNode.makeCompanion({
|
|
555
|
+
id: "debug",
|
|
556
|
+
label: [
|
|
557
|
+
"debug.label",
|
|
558
|
+
{
|
|
559
|
+
ns: meta.id
|
|
560
|
+
}
|
|
561
|
+
],
|
|
562
|
+
icon: "ph--bug--regular",
|
|
563
|
+
data: "debug",
|
|
564
|
+
position: "last"
|
|
565
|
+
})
|
|
566
|
+
])
|
|
567
|
+
}),
|
|
568
|
+
// Devtools deck companion.
|
|
569
|
+
GraphBuilder.createExtension({
|
|
570
|
+
id: "devtoolsOverview",
|
|
571
|
+
match: NodeMatcher.whenRoot,
|
|
572
|
+
connector: () => Effect.succeed([
|
|
573
|
+
AppNode.makeDeckCompanion({
|
|
574
|
+
id: "devtools",
|
|
575
|
+
label: [
|
|
576
|
+
"devtools-overview.label",
|
|
577
|
+
{
|
|
578
|
+
ns: meta.id
|
|
579
|
+
}
|
|
580
|
+
],
|
|
581
|
+
icon: "ph--equalizer--regular",
|
|
582
|
+
data: "devtools",
|
|
583
|
+
position: "last"
|
|
584
|
+
})
|
|
585
|
+
])
|
|
586
|
+
}),
|
|
587
|
+
// Object explorer.
|
|
588
|
+
GraphBuilder.createExtension({
|
|
589
|
+
id: "spaceObjects",
|
|
590
|
+
match: NodeMatcher.whenRoot,
|
|
591
|
+
connector: () => Effect.succeed([
|
|
592
|
+
AppNode.makeDeckCompanion({
|
|
593
|
+
id: "spaceObjects",
|
|
594
|
+
label: [
|
|
595
|
+
"space-objects.label",
|
|
596
|
+
{
|
|
597
|
+
ns: meta.id
|
|
598
|
+
}
|
|
599
|
+
],
|
|
600
|
+
icon: "ph--cube--regular",
|
|
601
|
+
data: "space-objects",
|
|
602
|
+
position: "last"
|
|
603
|
+
})
|
|
604
|
+
])
|
|
605
|
+
})
|
|
606
|
+
]);
|
|
607
|
+
return Capability.contributes(AppCapabilities.AppGraphBuilder, extensions);
|
|
608
|
+
}));
|
|
609
|
+
export {
|
|
610
|
+
app_graph_builder_default as default
|
|
611
|
+
};
|
|
612
|
+
//# sourceMappingURL=app-graph-builder-XYLTBYKN.mjs.map
|