@dxos/plugin-debug 0.8.4-main.3fbcb4aa9b → 0.8.4-main.43cb759274
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/{DebugObjectPanel-UJ63CV25.mjs → DebugObjectPanel-OS65NC4M.mjs} +1 -1
- package/dist/lib/neutral/{DebugObjectPanel-UJ63CV25.mjs.map → DebugObjectPanel-OS65NC4M.mjs.map} +1 -1
- package/dist/lib/neutral/DebugPlugin.mjs +12 -0
- package/dist/lib/neutral/DebugPlugin.mjs.map +4 -4
- 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 → DebugSettings-RKYNQIKH.mjs} +5 -6
- package/dist/lib/neutral/DebugSettings-RKYNQIKH.mjs.map +7 -0
- package/dist/lib/neutral/{DebugSpaceObjectsPanel-NISULU6U.mjs → DebugSpaceObjectsPanel-BHOCFWDJ.mjs} +1 -1
- package/dist/lib/neutral/{DebugSpaceObjectsPanel-NISULU6U.mjs.map → DebugSpaceObjectsPanel-BHOCFWDJ.mjs.map} +1 -1
- package/dist/lib/neutral/{DebugStatus-YB3KFP7G.mjs → DebugStatus-H2BAHN26.mjs} +2 -1
- package/dist/lib/neutral/DebugStatus-H2BAHN26.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-UBYB4NPD.mjs → SpaceGenerator-Y35G6DRV.mjs} +9 -6
- package/dist/lib/neutral/SpaceGenerator-Y35G6DRV.mjs.map +7 -0
- package/dist/lib/neutral/{Wireframe-7SNRUKET.mjs → Wireframe-WD7S2AUU.mjs} +2 -2
- package/dist/lib/neutral/Wireframe-WD7S2AUU.mjs.map +7 -0
- package/dist/lib/neutral/{app-graph-builder-YPYHL2K5.mjs → app-graph-builder-XYLTBYKN.mjs} +46 -11
- package/dist/lib/neutral/app-graph-builder-XYLTBYKN.mjs.map +7 -0
- package/dist/lib/neutral/capabilities/index.mjs +2 -2
- package/dist/lib/neutral/chunk-HOV6MV5B.mjs +43 -0
- package/dist/lib/neutral/chunk-HOV6MV5B.mjs.map +7 -0
- package/dist/lib/neutral/{chunk-NFIOTQRZ.mjs → chunk-UAAGABXZ.mjs} +2 -1
- package/dist/lib/neutral/{chunk-NFIOTQRZ.mjs.map → chunk-UAAGABXZ.mjs.map} +3 -3
- package/dist/lib/neutral/components/index.mjs +39 -48
- package/dist/lib/neutral/components/index.mjs.map +3 -3
- package/dist/lib/neutral/containers/index.mjs +9 -5
- package/dist/lib/neutral/containers/index.mjs.map +3 -3
- package/dist/lib/neutral/index.mjs +2 -2
- package/dist/lib/neutral/meta.json +1 -1
- package/dist/lib/neutral/meta.mjs +1 -1
- package/dist/lib/neutral/plugin.mjs +1 -1
- package/dist/lib/neutral/{react-surface-NH2H63KW.mjs → react-surface-3MDMZGCA.mjs} +23 -18
- package/dist/lib/neutral/react-surface-3MDMZGCA.mjs.map +7 -0
- package/dist/lib/neutral/translations.mjs +10 -2
- package/dist/lib/neutral/translations.mjs.map +2 -2
- package/dist/lib/neutral/types/index.mjs +1 -1
- package/dist/types/src/DebugPlugin.d.ts.map +1 -1
- 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/react-surface.d.ts.map +1 -1
- package/dist/types/src/components/DebugSettings/DebugSettings.d.ts.map +1 -1
- package/dist/types/src/components/DebugSettings/DebugSettings.stories.d.ts +8 -1
- package/dist/types/src/components/DebugSettings/DebugSettings.stories.d.ts.map +1 -1
- package/dist/types/src/components/SpaceGenerator/ObjectGenerator.d.ts +2 -3
- package/dist/types/src/components/SpaceGenerator/ObjectGenerator.d.ts.map +1 -1
- package/dist/types/src/components/SpaceGenerator/presets.d.ts.map +1 -1
- package/dist/types/src/containers/DebugStatus/DebugStatus.d.ts.map +1 -1
- 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.map +1 -1
- package/dist/types/src/containers/index.d.ts +2 -0
- package/dist/types/src/containers/index.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +1 -1
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +8 -1
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/index.d.ts +1 -0
- package/dist/types/src/types/index.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +60 -70
- package/src/DebugPlugin.tsx +6 -0
- package/src/DebugPlugin.workerd.ts +12 -0
- package/src/capabilities/app-graph-builder.ts +38 -10
- package/src/capabilities/react-surface.tsx +22 -15
- package/src/components/DebugSettings/DebugSettings.tsx +5 -8
- package/src/components/SpaceGenerator/ObjectGenerator.tsx +16 -14
- package/src/components/SpaceGenerator/presets.ts +13 -14
- package/src/containers/DebugObjectPanel/DebugObjectPanel.tsx +2 -2
- package/src/containers/DebugSpaceObjectsPanel/DebugSpaceObjectsPanel.tsx +2 -2
- package/src/containers/DebugStatus/DebugStatus.tsx +1 -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 +6 -5
- package/src/containers/Wireframe/Wireframe.tsx +1 -1
- package/src/containers/index.ts +2 -0
- package/src/meta.ts +26 -6
- package/src/translations.ts +9 -1
- package/src/types/index.ts +1 -0
- package/src/vite-env.d.ts +10 -0
- package/dist/lib/neutral/DebugSettings-Z3XADRNK.mjs.map +0 -7
- package/dist/lib/neutral/DebugStatus-YB3KFP7G.mjs.map +0 -7
- package/dist/lib/neutral/SpaceGenerator-UBYB4NPD.mjs.map +0 -7
- package/dist/lib/neutral/Wireframe-7SNRUKET.mjs.map +0 -7
- package/dist/lib/neutral/app-graph-builder-YPYHL2K5.mjs.map +0 -7
- package/dist/lib/neutral/chunk-3OGPOE7H.mjs +0 -20
- package/dist/lib/neutral/chunk-3OGPOE7H.mjs.map +0 -7
- package/dist/lib/neutral/react-surface-NH2H63KW.mjs.map +0 -7
|
@@ -8,7 +8,7 @@ import { useAttentionAttributes } from "@dxos/react-ui-attention";
|
|
|
8
8
|
import { JsonHighlighter } from "@dxos/react-ui-syntax-highlighter";
|
|
9
9
|
import { mx } from "@dxos/ui-theme";
|
|
10
10
|
var Wireframe = ({ classNames, label, object }) => {
|
|
11
|
-
const attentionAttrs = useAttentionAttributes(Obj.
|
|
11
|
+
const attentionAttrs = useAttentionAttributes(Obj.getURI(object));
|
|
12
12
|
const { width, height, ref } = useResizeDetector();
|
|
13
13
|
return /* @__PURE__ */ React.createElement("div", {
|
|
14
14
|
ref,
|
|
@@ -49,4 +49,4 @@ var Wireframe = ({ classNames, label, object }) => {
|
|
|
49
49
|
export {
|
|
50
50
|
Wireframe as default
|
|
51
51
|
};
|
|
52
|
-
//# sourceMappingURL=Wireframe-
|
|
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
|
+
}
|
|
@@ -13,6 +13,27 @@ import { Devtools } from "#types";
|
|
|
13
13
|
var DEVTOOLS_TYPE = `${meta.id}.devtools`;
|
|
14
14
|
var app_graph_builder_default = Capability.makeModule(Effect.fnUntraced(function* () {
|
|
15
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
|
+
}),
|
|
16
37
|
GraphBuilder.createExtension({
|
|
17
38
|
id: "devtools",
|
|
18
39
|
match: NodeMatcher.whenAny(NodeMatcher.whenRoot, NodeMatcher.whenNodeType(SPACE_TYPE)),
|
|
@@ -37,11 +58,11 @@ var app_graph_builder_default = Capability.makeModule(Effect.fnUntraced(function
|
|
|
37
58
|
],
|
|
38
59
|
icon: "ph--hammer--regular",
|
|
39
60
|
disposition: "pin-end",
|
|
40
|
-
position: "
|
|
61
|
+
position: "last"
|
|
41
62
|
},
|
|
42
63
|
nodes: [
|
|
43
64
|
Node.make({
|
|
44
|
-
id: "
|
|
65
|
+
id: "appGraph",
|
|
45
66
|
type: `${meta.id}.app-graph`,
|
|
46
67
|
data: {
|
|
47
68
|
graph: graph?.graph,
|
|
@@ -58,7 +79,7 @@ var app_graph_builder_default = Capability.makeModule(Effect.fnUntraced(function
|
|
|
58
79
|
}
|
|
59
80
|
}),
|
|
60
81
|
Node.make({
|
|
61
|
-
id: "
|
|
82
|
+
id: "toolsExplorer",
|
|
62
83
|
data: Devtools.ToolsExplorer,
|
|
63
84
|
type: DEVTOOLS_TYPE,
|
|
64
85
|
properties: {
|
|
@@ -318,6 +339,20 @@ var app_graph_builder_default = Capability.makeModule(Effect.fnUntraced(function
|
|
|
318
339
|
icon: "ph--database--regular"
|
|
319
340
|
}
|
|
320
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
|
+
}),
|
|
321
356
|
Node.make({
|
|
322
357
|
id: Devtools.Echo.Automerge,
|
|
323
358
|
data: Devtools.Echo.Automerge,
|
|
@@ -513,7 +548,7 @@ var app_graph_builder_default = Capability.makeModule(Effect.fnUntraced(function
|
|
|
513
548
|
}),
|
|
514
549
|
// Debug object companion.
|
|
515
550
|
GraphBuilder.createExtension({
|
|
516
|
-
id: "
|
|
551
|
+
id: "debugObject",
|
|
517
552
|
match: NodeMatcher.whenEchoObject,
|
|
518
553
|
connector: () => Effect.succeed([
|
|
519
554
|
AppNode.makeCompanion({
|
|
@@ -526,13 +561,13 @@ var app_graph_builder_default = Capability.makeModule(Effect.fnUntraced(function
|
|
|
526
561
|
],
|
|
527
562
|
icon: "ph--bug--regular",
|
|
528
563
|
data: "debug",
|
|
529
|
-
position: "
|
|
564
|
+
position: "last"
|
|
530
565
|
})
|
|
531
566
|
])
|
|
532
567
|
}),
|
|
533
568
|
// Devtools deck companion.
|
|
534
569
|
GraphBuilder.createExtension({
|
|
535
|
-
id: "
|
|
570
|
+
id: "devtoolsOverview",
|
|
536
571
|
match: NodeMatcher.whenRoot,
|
|
537
572
|
connector: () => Effect.succeed([
|
|
538
573
|
AppNode.makeDeckCompanion({
|
|
@@ -545,17 +580,17 @@ var app_graph_builder_default = Capability.makeModule(Effect.fnUntraced(function
|
|
|
545
580
|
],
|
|
546
581
|
icon: "ph--equalizer--regular",
|
|
547
582
|
data: "devtools",
|
|
548
|
-
position: "
|
|
583
|
+
position: "last"
|
|
549
584
|
})
|
|
550
585
|
])
|
|
551
586
|
}),
|
|
552
587
|
// Object explorer.
|
|
553
588
|
GraphBuilder.createExtension({
|
|
554
|
-
id: "
|
|
589
|
+
id: "spaceObjects",
|
|
555
590
|
match: NodeMatcher.whenRoot,
|
|
556
591
|
connector: () => Effect.succeed([
|
|
557
592
|
AppNode.makeDeckCompanion({
|
|
558
|
-
id: "
|
|
593
|
+
id: "spaceObjects",
|
|
559
594
|
label: [
|
|
560
595
|
"space-objects.label",
|
|
561
596
|
{
|
|
@@ -564,7 +599,7 @@ var app_graph_builder_default = Capability.makeModule(Effect.fnUntraced(function
|
|
|
564
599
|
],
|
|
565
600
|
icon: "ph--cube--regular",
|
|
566
601
|
data: "space-objects",
|
|
567
|
-
position: "
|
|
602
|
+
position: "last"
|
|
568
603
|
})
|
|
569
604
|
])
|
|
570
605
|
})
|
|
@@ -574,4 +609,4 @@ var app_graph_builder_default = Capability.makeModule(Effect.fnUntraced(function
|
|
|
574
609
|
export {
|
|
575
610
|
app_graph_builder_default as default
|
|
576
611
|
};
|
|
577
|
-
//# sourceMappingURL=app-graph-builder-
|
|
612
|
+
//# sourceMappingURL=app-graph-builder-XYLTBYKN.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: 'resetData',\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: 'appGraph',\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: 'toolsExplorer',\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.Registry,\n data: Devtools.Echo.Registry,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['registry.label', { ns: meta.id }],\n icon: 'ph--books--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: 'debugObject',\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: 'devtoolsOverview',\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: 'spaceObjects',\n match: NodeMatcher.whenRoot,\n connector: () =>\n Effect.succeed([\n AppNode.makeDeckCompanion({\n id: 'spaceObjects',\n label: ['space-objects.label', { ns: meta.id }],\n icon: 'ph--cube--regular',\n data: 'space-objects' as const,\n position: 'last',\n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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,YAAYkF;MACnBtD,WAAW,MACFb,eAAQ;QACbpB,QAAQwF,cAAc;UACpB7E,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,QAAQyF,kBAAkB;UACxB9E,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,QAAQyF,kBAAkB;UACxB9E,IAAI;UACJiB,OAAO;YAAC;YAAuB;cAAEC,IAAIrB,KAAKG;YAAG;;UAC7CmB,MAAM;UACNR,MAAM;UACN+B,UAAU;QACZ,CAAA;OACD;IACL,CAAA;GACD;AAED,SAAOvD,WAAW4F,YAAY3F,gBAAgB4F,iBAAiB7E,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", "Registry", "Automerge", "Queues", "Members", "Metadata", "Mesh", "Signal", "Swarm", "Network", "Edge", "Dashboard", "Workflows", "Traces", "Testing", "whenEchoObject", "makeCompanion", "makeDeckCompanion", "contributes", "AppGraphBuilder"]
|
|
7
|
+
}
|
|
@@ -2,9 +2,9 @@ import "../chunk-J5LGTIGS.mjs";
|
|
|
2
2
|
|
|
3
3
|
// src/capabilities/index.ts
|
|
4
4
|
import { Capability } from "@dxos/app-framework";
|
|
5
|
-
var AppGraphBuilder = Capability.lazy("AppGraphBuilder", () => import("../app-graph-builder-
|
|
5
|
+
var AppGraphBuilder = Capability.lazy("AppGraphBuilder", () => import("../app-graph-builder-XYLTBYKN.mjs"));
|
|
6
6
|
var ReactContext = Capability.lazy("ReactContext", () => import("../react-context-MUZ3KVLU.mjs"));
|
|
7
|
-
var ReactSurface = Capability.lazy("ReactSurface", () => import("../react-surface-
|
|
7
|
+
var ReactSurface = Capability.lazy("ReactSurface", () => import("../react-surface-3MDMZGCA.mjs"));
|
|
8
8
|
var DebugSettings = Capability.lazy("DebugSettings", () => import("../settings-MPM6YUP4.mjs"));
|
|
9
9
|
export {
|
|
10
10
|
AppGraphBuilder,
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
// src/meta.ts
|
|
2
|
+
import { Plugin } from "@dxos/app-framework";
|
|
3
|
+
import { DXN } from "@dxos/keys";
|
|
4
|
+
import { trim } from "@dxos/util";
|
|
5
|
+
var meta = Plugin.makeMeta({
|
|
6
|
+
key: DXN.make("org.dxos.plugin.debug"),
|
|
7
|
+
name: "Debug",
|
|
8
|
+
author: "DXOS",
|
|
9
|
+
spec: "PLUGIN.mdl",
|
|
10
|
+
description: trim`
|
|
11
|
+
DebugPlugin is the developer toolkit for DXOS Composer. It adds a structured Devtools node
|
|
12
|
+
to the navigation graph — grouped into Client, HALO, ECHO, Mesh, and EDGE sub-sections —
|
|
13
|
+
exposing panel views for config, storage, logs, diagnostics, identity, devices, feeds,
|
|
14
|
+
objects, schemas, automerge internals, network topology, EDGE workflows, and invocation
|
|
15
|
+
traces, all driven by the @dxos/devtools component library.
|
|
16
|
+
|
|
17
|
+
The plugin contributes a Debug companion tab to every ECHO object in the deck so developers
|
|
18
|
+
can inspect raw field values and DXNs inline, and a Space Objects companion panel that lists
|
|
19
|
+
all objects in the active space with live reactive updates.
|
|
20
|
+
|
|
21
|
+
Test-data generation is available via a SpaceGenerator article surface: developers can
|
|
22
|
+
create configurable batches of synthetic ECHO objects into any space collection, with a
|
|
23
|
+
status indicator showing when generation is running.
|
|
24
|
+
|
|
25
|
+
Additional utilities include a wireframe overlay mode that draws labelled borders around
|
|
26
|
+
every article and section surface, a log-capture and download facility backed by an
|
|
27
|
+
IdbLogStore, a ToolsExplorer connected to the DXOS MCP introspect service, and a
|
|
28
|
+
globalThis helper for manual storage-version testing.
|
|
29
|
+
`,
|
|
30
|
+
icon: "ph--bug--regular",
|
|
31
|
+
source: "https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-debug",
|
|
32
|
+
screenshots: [
|
|
33
|
+
"https://dxos.network/plugin-details-debug-dark.png"
|
|
34
|
+
],
|
|
35
|
+
tags: [
|
|
36
|
+
"labs"
|
|
37
|
+
]
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
export {
|
|
41
|
+
meta
|
|
42
|
+
};
|
|
43
|
+
//# sourceMappingURL=chunk-HOV6MV5B.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/meta.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { Plugin } from '@dxos/app-framework';\nimport { DXN } from '@dxos/keys';\nimport { trim } from '@dxos/util';\n\nexport const meta = Plugin.makeMeta({\n key: DXN.make('org.dxos.plugin.debug'),\n name: 'Debug',\n author: 'DXOS',\n spec: 'PLUGIN.mdl',\n description: trim`\n DebugPlugin is the developer toolkit for DXOS Composer. It adds a structured Devtools node\n to the navigation graph — grouped into Client, HALO, ECHO, Mesh, and EDGE sub-sections —\n exposing panel views for config, storage, logs, diagnostics, identity, devices, feeds,\n objects, schemas, automerge internals, network topology, EDGE workflows, and invocation\n traces, all driven by the @dxos/devtools component library.\n\n The plugin contributes a Debug companion tab to every ECHO object in the deck so developers\n can inspect raw field values and DXNs inline, and a Space Objects companion panel that lists\n all objects in the active space with live reactive updates.\n\n Test-data generation is available via a SpaceGenerator article surface: developers can\n create configurable batches of synthetic ECHO objects into any space collection, with a\n status indicator showing when generation is running.\n\n Additional utilities include a wireframe overlay mode that draws labelled borders around\n every article and section surface, a log-capture and download facility backed by an\n IdbLogStore, a ToolsExplorer connected to the DXOS MCP introspect service, and a\n globalThis helper for manual storage-version testing.\n `,\n icon: 'ph--bug--regular',\n source: 'https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-debug',\n screenshots: ['https://dxos.network/plugin-details-debug-dark.png'],\n tags: ['labs'],\n});\n"],
|
|
5
|
+
"mappings": ";AAIA,SAASA,cAAc;AACvB,SAASC,WAAW;AACpB,SAASC,YAAY;AAEd,IAAMC,OAAOH,OAAOI,SAAS;EAClCC,KAAKJ,IAAIK,KAAK,uBAAA;EACdC,MAAM;EACNC,QAAQ;EACRC,MAAM;EACNC,aAAaR;;;;;;;;;;;;;;;;;;;;EAoBbS,MAAM;EACNC,QAAQ;EACRC,aAAa;IAAC;;EACdC,MAAM;IAAC;;AACT,CAAA;",
|
|
6
|
+
"names": ["Plugin", "DXN", "trim", "meta", "makeMeta", "key", "make", "name", "author", "spec", "description", "icon", "source", "screenshots", "tags"]
|
|
7
|
+
}
|
|
@@ -53,6 +53,7 @@ var DebugContext = createContext({
|
|
|
53
53
|
Echo.Feeds = `${Devtools2.Echo.id}.feeds`;
|
|
54
54
|
Echo.Objects = `${Devtools2.Echo.id}.objects`;
|
|
55
55
|
Echo.Schema = `${Devtools2.Echo.id}.schema`;
|
|
56
|
+
Echo.Registry = `${Devtools2.Echo.id}.registry`;
|
|
56
57
|
Echo.Automerge = `${Devtools2.Echo.id}.automerge`;
|
|
57
58
|
Echo.Queues = `${Devtools2.Echo.id}.queues`;
|
|
58
59
|
Echo.Members = `${Devtools2.Echo.id}.members`;
|
|
@@ -86,4 +87,4 @@ export {
|
|
|
86
87
|
DebugCapabilities,
|
|
87
88
|
Devtools
|
|
88
89
|
};
|
|
89
|
-
//# sourceMappingURL=chunk-
|
|
90
|
+
//# sourceMappingURL=chunk-UAAGABXZ.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/types/index.ts", "../../../src/types/Settings.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Atom } from '@effect-atom/atom-react';\nimport { type Context, createContext } from 'react';\n\nimport { Capability } from '@dxos/app-framework';\nimport type { TimerCallback, TimerOptions } from '@dxos/async';\nimport { type IdbLogStore } from '@dxos/log-store-idb';\n\nimport { meta } from '#meta';\n\nimport * as Settings from './Settings';\n\nexport * as Settings from './Settings';\n\nexport type DebugPluginOptions = {\n /** Shared persistent log store for capturing and downloading logs. */\n logStore?: IdbLogStore;\n};\n\nexport type DebugContextType = {\n running: boolean;\n start: (cb: TimerCallback, options: TimerOptions) => void;\n stop: () => void;\n};\n\nexport const DebugContext: Context<DebugContextType> = createContext<DebugContextType>({\n running: false,\n start: () => {},\n stop: () => {},\n});\n\nexport namespace DebugCapabilities {\n export const Settings = Capability.make<Atom.Writable<Settings.Settings>>(`${meta.id}.capability.settings`);\n}\n\nexport namespace Devtools {\n export const id = `${meta.id}.devtools`;\n\n export const ToolsExplorer = `${Devtools.id}.tools-explorer`;\n\n export namespace Client {\n export const id = `${Devtools.id}.client`;\n export const Config = `${Devtools.Client.id}.config`;\n export const Storage = `${Devtools.Client.id}.storage`;\n export const Logs = `${Devtools.Client.id}.logs`;\n export const Diagnostics = `${Devtools.Client.id}.diagnostics`;\n }\n\n export namespace Halo {\n export const id = `${Devtools.id}.halo`;\n export const Identity = `${Devtools.Halo.id}.identity`;\n export const Devices = `${Devtools.Halo.id}.devices`;\n export const Keyring = `${Devtools.Halo.id}.keyring`;\n export const Credentials = `${Devtools.Halo.id}.credentials`;\n }\n\n export namespace Echo {\n export const id = `${Devtools.id}.echo`;\n export const Spaces = `${Devtools.Echo.id}.spaces`;\n export const Space = `${Devtools.Echo.id}.space`;\n export const Feeds = `${Devtools.Echo.id}.feeds`;\n export const Objects = `${Devtools.Echo.id}.objects`;\n export const Schema = `${Devtools.Echo.id}.schema`;\n export const Automerge = `${Devtools.Echo.id}.automerge`;\n export const Queues = `${Devtools.Echo.id}.queues`;\n export const Members = `${Devtools.Echo.id}.members`;\n export const Metadata = `${Devtools.Echo.id}.metadata`;\n }\n\n export namespace Mesh {\n export const id = `${Devtools.id}.mesh`;\n export const Signal = `${Devtools.Mesh.id}.signal`;\n export const Swarm = `${Devtools.Mesh.id}.swarm`;\n export const Network = `${Devtools.Mesh.id}.network`;\n }\n\n export namespace Agent {\n export const id = `${Devtools.id}.agent`;\n export const Dashboard = `${Devtools.Agent.id}.dashboard`;\n export const Search = `${Devtools.Agent.id}.search`;\n }\n\n export namespace Edge {\n export const id = `${Devtools.id}.edge`;\n export const Dashboard = `${Devtools.Edge.id}.dashboard`;\n export const Workflows = `${Devtools.Edge.id}.workflows`;\n export const Traces = `${Devtools.Edge.id}.traces`;\n export const Testing = `${Devtools.Edge.id}.testing`;\n }\n}\n", "//\n// Copyright 2023 DXOS.org\n//\n\n// @import-as-namespace\n\nimport * as Schema from 'effect/Schema';\n\nexport const Settings = Schema.mutable(\n Schema.Struct({\n wireframe: Schema.optional(Schema.Boolean),\n traceAll: Schema.optional(Schema.Boolean),\n }),\n);\n\nexport interface Settings extends Schema.Schema.Type<typeof Settings> {}\n"],
|
|
5
|
-
"mappings": ";;;;;AAKA,SAAuBA,qBAAqB;AAE5C,SAASC,kBAAkB;AAI3B,SAASC,YAAY;;;ACXrB;;;;AAMA,YAAYC,YAAY;AAEjB,IAAMC,WAAkBC,eACtBC,cAAO;EACZC,WAAkBC,gBAAgBC,cAAO;EACzCC,UAAiBF,gBAAgBC,cAAO;AAC1C,CAAA,CAAA;;;ADgBK,IAAME,eAA0CC,cAAgC;EACrFC,SAAS;EACTC,OAAO,MAAA;EAAO;EACdC,MAAM,MAAA;EAAO;AACf,CAAA;UAEiBC,oBAAAA;qBACFC,WAAWC,WAAWC,KAAuC,GAAGC,KAAKC,EAAE,sBAAsB;AAC5G,GAFiBL,sBAAAA,oBAAAA,CAAAA,EAAAA;UAIAM,WAAAA;YACFD,KAAK,GAAGD,KAAKC,EAAE;YAEfE,gBAAgB,GAAGD,UAASD,EAAE;YAE1BG,QAAAA;WACFH,KAAK,GAAGC,UAASD,EAAE;WACnBI,SAAS,GAAGH,UAASE,OAAOH,EAAE;WAC9BK,UAAU,GAAGJ,UAASE,OAAOH,EAAE;WAC/BM,OAAO,GAAGL,UAASE,OAAOH,EAAE;WAC5BO,cAAc,GAAGN,UAASE,OAAOH,EAAE;EAClD,GAAAC,UANiBE,WAAAA,UAAAA,SAAAA,CAAAA,EAAAA;YAQAK,MAAAA;SACFR,KAAK,GAAGC,UAASD,EAAE;SACnBS,WAAW,GAAGR,UAASO,KAAKR,EAAE;SAC9BU,UAAU,GAAGT,UAASO,KAAKR,EAAE;SAC7BW,UAAU,GAAGV,UAASO,KAAKR,EAAE;SAC7BY,cAAc,GAAGX,UAASO,KAAKR,EAAE;EAChD,GAAAC,UANiBO,SAAAA,UAAAA,OAAAA,CAAAA,EAAAA;YAQAK,MAAAA;SACFb,KAAK,GAAGC,UAASD,EAAE;SACnBc,SAAS,GAAGb,UAASY,KAAKb,EAAE;SAC5Be,QAAQ,GAAGd,UAASY,KAAKb,EAAE;SAC3BgB,QAAQ,GAAGf,UAASY,KAAKb,EAAE;SAC3BiB,UAAU,GAAGhB,UAASY,KAAKb,EAAE;SAC7BkB,SAAS,GAAGjB,UAASY,KAAKb,EAAE;SAC5BmB,
|
|
6
|
-
"names": ["createContext", "Capability", "meta", "Schema", "Settings", "mutable", "Struct", "wireframe", "optional", "Boolean", "traceAll", "DebugContext", "createContext", "running", "start", "stop", "DebugCapabilities", "Settings", "Capability", "make", "meta", "id", "Devtools", "ToolsExplorer", "Client", "Config", "Storage", "Logs", "Diagnostics", "Halo", "Identity", "Devices", "Keyring", "Credentials", "Echo", "Spaces", "Space", "Feeds", "Objects", "Schema", "Automerge", "Queues", "Members", "Metadata", "Mesh", "Signal", "Swarm", "Network", "Agent", "Dashboard", "Search", "Edge", "Workflows", "Traces", "Testing"]
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Atom } from '@effect-atom/atom-react';\nimport { type Context, createContext } from 'react';\n\nimport { Capability } from '@dxos/app-framework';\nimport type { TimerCallback, TimerOptions } from '@dxos/async';\nimport { type IdbLogStore } from '@dxos/log-store-idb';\n\nimport { meta } from '#meta';\n\nimport * as Settings from './Settings';\n\nexport * as Settings from './Settings';\n\nexport type DebugPluginOptions = {\n /** Shared persistent log store for capturing and downloading logs. */\n logStore?: IdbLogStore;\n};\n\nexport type DebugContextType = {\n running: boolean;\n start: (cb: TimerCallback, options: TimerOptions) => void;\n stop: () => void;\n};\n\nexport const DebugContext: Context<DebugContextType> = createContext<DebugContextType>({\n running: false,\n start: () => {},\n stop: () => {},\n});\n\nexport namespace DebugCapabilities {\n export const Settings = Capability.make<Atom.Writable<Settings.Settings>>(`${meta.id}.capability.settings`);\n}\n\nexport namespace Devtools {\n export const id = `${meta.id}.devtools`;\n\n export const ToolsExplorer = `${Devtools.id}.tools-explorer`;\n\n export namespace Client {\n export const id = `${Devtools.id}.client`;\n export const Config = `${Devtools.Client.id}.config`;\n export const Storage = `${Devtools.Client.id}.storage`;\n export const Logs = `${Devtools.Client.id}.logs`;\n export const Diagnostics = `${Devtools.Client.id}.diagnostics`;\n }\n\n export namespace Halo {\n export const id = `${Devtools.id}.halo`;\n export const Identity = `${Devtools.Halo.id}.identity`;\n export const Devices = `${Devtools.Halo.id}.devices`;\n export const Keyring = `${Devtools.Halo.id}.keyring`;\n export const Credentials = `${Devtools.Halo.id}.credentials`;\n }\n\n export namespace Echo {\n export const id = `${Devtools.id}.echo`;\n export const Spaces = `${Devtools.Echo.id}.spaces`;\n export const Space = `${Devtools.Echo.id}.space`;\n export const Feeds = `${Devtools.Echo.id}.feeds`;\n export const Objects = `${Devtools.Echo.id}.objects`;\n export const Schema = `${Devtools.Echo.id}.schema`;\n export const Registry = `${Devtools.Echo.id}.registry`;\n export const Automerge = `${Devtools.Echo.id}.automerge`;\n export const Queues = `${Devtools.Echo.id}.queues`;\n export const Members = `${Devtools.Echo.id}.members`;\n export const Metadata = `${Devtools.Echo.id}.metadata`;\n }\n\n export namespace Mesh {\n export const id = `${Devtools.id}.mesh`;\n export const Signal = `${Devtools.Mesh.id}.signal`;\n export const Swarm = `${Devtools.Mesh.id}.swarm`;\n export const Network = `${Devtools.Mesh.id}.network`;\n }\n\n export namespace Agent {\n export const id = `${Devtools.id}.agent`;\n export const Dashboard = `${Devtools.Agent.id}.dashboard`;\n export const Search = `${Devtools.Agent.id}.search`;\n }\n\n export namespace Edge {\n export const id = `${Devtools.id}.edge`;\n export const Dashboard = `${Devtools.Edge.id}.dashboard`;\n export const Workflows = `${Devtools.Edge.id}.workflows`;\n export const Traces = `${Devtools.Edge.id}.traces`;\n export const Testing = `${Devtools.Edge.id}.testing`;\n }\n}\n", "//\n// Copyright 2023 DXOS.org\n//\n\n// @import-as-namespace\n\nimport * as Schema from 'effect/Schema';\n\nexport const Settings = Schema.mutable(\n Schema.Struct({\n wireframe: Schema.optional(Schema.Boolean),\n traceAll: Schema.optional(Schema.Boolean),\n }),\n);\n\nexport interface Settings extends Schema.Schema.Type<typeof Settings> {}\n"],
|
|
5
|
+
"mappings": ";;;;;AAKA,SAAuBA,qBAAqB;AAE5C,SAASC,kBAAkB;AAI3B,SAASC,YAAY;;;ACXrB;;;;AAMA,YAAYC,YAAY;AAEjB,IAAMC,WAAkBC,eACtBC,cAAO;EACZC,WAAkBC,gBAAgBC,cAAO;EACzCC,UAAiBF,gBAAgBC,cAAO;AAC1C,CAAA,CAAA;;;ADgBK,IAAME,eAA0CC,cAAgC;EACrFC,SAAS;EACTC,OAAO,MAAA;EAAO;EACdC,MAAM,MAAA;EAAO;AACf,CAAA;UAEiBC,oBAAAA;qBACFC,WAAWC,WAAWC,KAAuC,GAAGC,KAAKC,EAAE,sBAAsB;AAC5G,GAFiBL,sBAAAA,oBAAAA,CAAAA,EAAAA;UAIAM,WAAAA;YACFD,KAAK,GAAGD,KAAKC,EAAE;YAEfE,gBAAgB,GAAGD,UAASD,EAAE;YAE1BG,QAAAA;WACFH,KAAK,GAAGC,UAASD,EAAE;WACnBI,SAAS,GAAGH,UAASE,OAAOH,EAAE;WAC9BK,UAAU,GAAGJ,UAASE,OAAOH,EAAE;WAC/BM,OAAO,GAAGL,UAASE,OAAOH,EAAE;WAC5BO,cAAc,GAAGN,UAASE,OAAOH,EAAE;EAClD,GAAAC,UANiBE,WAAAA,UAAAA,SAAAA,CAAAA,EAAAA;YAQAK,MAAAA;SACFR,KAAK,GAAGC,UAASD,EAAE;SACnBS,WAAW,GAAGR,UAASO,KAAKR,EAAE;SAC9BU,UAAU,GAAGT,UAASO,KAAKR,EAAE;SAC7BW,UAAU,GAAGV,UAASO,KAAKR,EAAE;SAC7BY,cAAc,GAAGX,UAASO,KAAKR,EAAE;EAChD,GAAAC,UANiBO,SAAAA,UAAAA,OAAAA,CAAAA,EAAAA;YAQAK,MAAAA;S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AA,CAAAA,EAAAA;AAOnB,GAvDiB9B,aAAAA,WAAAA,CAAAA,EAAAA;;;",
|
|
6
|
+
"names": ["createContext", "Capability", "meta", "Schema", "Settings", "mutable", "Struct", "wireframe", "optional", "Boolean", "traceAll", "DebugContext", "createContext", "running", "start", "stop", "DebugCapabilities", "Settings", "Capability", "make", "meta", "id", "Devtools", "ToolsExplorer", "Client", "Config", "Storage", "Logs", "Diagnostics", "Halo", "Identity", "Devices", "Keyring", "Credentials", "Echo", "Spaces", "Space", "Feeds", "Objects", "Schema", "Registry", "Automerge", "Queues", "Members", "Metadata", "Mesh", "Signal", "Swarm", "Network", "Agent", "Dashboard", "Search", "Edge", "Workflows", "Traces", "Testing"]
|
|
7
7
|
}
|
|
@@ -32,8 +32,9 @@ import * as Schema from "effect/Schema";
|
|
|
32
32
|
import { AgentPrompt, WebSearchBlueprint } from "@dxos/assistant-toolkit";
|
|
33
33
|
import { Routine, Trigger, Operation } from "@dxos/compute";
|
|
34
34
|
import { NODE_INPUT } from "@dxos/conductor";
|
|
35
|
-
import {
|
|
35
|
+
import { Feed, Filter, JsonSchema, Key, Obj, Query, Ref, Scope, Tag } from "@dxos/echo";
|
|
36
36
|
import { invariant } from "@dxos/invariant";
|
|
37
|
+
import { EID } from "@dxos/keys";
|
|
37
38
|
import { InboxOperation } from "@dxos/plugin-inbox";
|
|
38
39
|
import { Mailbox } from "@dxos/plugin-inbox";
|
|
39
40
|
import { Markdown } from "@dxos/plugin-markdown";
|
|
@@ -78,16 +79,16 @@ var generator = () => ({
|
|
|
78
79
|
const tag = space.db.add(Tag.make({
|
|
79
80
|
label: "Investor"
|
|
80
81
|
}));
|
|
81
|
-
const
|
|
82
|
+
const tagRef = Ref.make(tag);
|
|
82
83
|
Obj.update(doc, (doc2) => {
|
|
83
84
|
Obj.getMeta(doc2).tags = [
|
|
84
|
-
|
|
85
|
+
tagRef
|
|
85
86
|
];
|
|
86
87
|
});
|
|
87
88
|
space.db.add(Obj.make(Person.Person, {
|
|
88
89
|
[Obj.Meta]: {
|
|
89
90
|
tags: [
|
|
90
|
-
|
|
91
|
+
tagRef
|
|
91
92
|
]
|
|
92
93
|
},
|
|
93
94
|
fullName: "Rich",
|
|
@@ -116,19 +117,19 @@ var generator = () => ({
|
|
|
116
117
|
async (space, n, cb) => {
|
|
117
118
|
const mailboxes = await space.db.query(Filter.type(Mailbox.Mailbox)).run();
|
|
118
119
|
const mailbox = mailboxes[0];
|
|
119
|
-
invariant(mailbox, "Mailbox not found", { "~LogMeta": "~LogMeta", F: __dxlog_file, L:
|
|
120
|
+
invariant(mailbox, "Mailbox not found", { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 101, S: void 0, A: ["mailbox", "'Mailbox not found'"] });
|
|
120
121
|
const mailboxFeed = await mailbox.feed?.tryLoad();
|
|
121
|
-
invariant(mailboxFeed, "Mailbox missing feed reference", { "~LogMeta": "~LogMeta", F: __dxlog_file, L:
|
|
122
|
-
const queueDxn = Feed.
|
|
123
|
-
invariant(queueDxn, "Mailbox feed missing queue DXN key", { "~LogMeta": "~LogMeta", F: __dxlog_file, L:
|
|
122
|
+
invariant(mailboxFeed, "Mailbox missing feed reference", { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 103, S: void 0, A: ["mailboxFeed", "'Mailbox missing feed reference'"] });
|
|
123
|
+
const queueDxn = Feed.getQueueUri(mailboxFeed);
|
|
124
|
+
invariant(queueDxn, "Mailbox feed missing queue DXN key", { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 105, S: void 0, A: ["queueDxn", "'Mailbox feed missing queue DXN key'"] });
|
|
124
125
|
const tag = await space.db.query(Filter.type(Tag.Tag, {
|
|
125
126
|
label: "Investor"
|
|
126
127
|
})).first();
|
|
127
|
-
const
|
|
128
|
+
const tagUri = Obj.getURI(tag);
|
|
128
129
|
const objects = range(n, () => {
|
|
129
|
-
const contactsQuery = Query.select(Filter.type(Person.Person)).select(Filter.tag(
|
|
130
|
-
const organizationsQuery = Query.select(Filter.type(Organization.Organization)).select(Filter.tag(
|
|
131
|
-
const notesQuery = Query.select(Filter.type(Markdown.Document)).select(Filter.tag(
|
|
130
|
+
const contactsQuery = Query.select(Filter.type(Person.Person)).select(Filter.tag(tagUri));
|
|
131
|
+
const organizationsQuery = Query.select(Filter.type(Organization.Organization)).select(Filter.tag(tagUri));
|
|
132
|
+
const notesQuery = Query.select(Filter.type(Markdown.Document)).select(Filter.tag(tagUri));
|
|
132
133
|
space.db.add(Trigger.make({
|
|
133
134
|
enabled: true,
|
|
134
135
|
spec: Trigger.specTimer("* * * * *"),
|
|
@@ -169,11 +170,7 @@ var generator = () => ({
|
|
|
169
170
|
properties: {
|
|
170
171
|
labels: Filter.contains("investor")
|
|
171
172
|
}
|
|
172
|
-
})).from(
|
|
173
|
-
queues: [
|
|
174
|
-
queueDxn
|
|
175
|
-
]
|
|
176
|
-
}),
|
|
173
|
+
})).from(Scope.feed(Obj.getURI(mailboxFeed))),
|
|
177
174
|
jsonSchema: JsonSchema.toJsonSchema(Message.Message)
|
|
178
175
|
});
|
|
179
176
|
const contactsView = ViewModel.make({
|
|
@@ -561,11 +558,10 @@ var generator = () => ({
|
|
|
561
558
|
})
|
|
562
559
|
}));
|
|
563
560
|
const queueId = canvasModel.createNode(createConstant({
|
|
564
|
-
value:
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
]).toString(),
|
|
561
|
+
value: EID.make({
|
|
562
|
+
spaceId: space.id,
|
|
563
|
+
entityId: Key.EntityId.random()
|
|
564
|
+
}),
|
|
569
565
|
...position({
|
|
570
566
|
x: -10,
|
|
571
567
|
y: 5
|
|
@@ -680,14 +676,14 @@ var createQueueSinkPreset = (space, triggerKind, initSpec, triggerOutputName) =>
|
|
|
680
676
|
});
|
|
681
677
|
functionTrigger = triggerShape.functionTrigger.target;
|
|
682
678
|
const triggerSpec = functionTrigger.spec;
|
|
683
|
-
invariant(triggerSpec && triggerSpec.kind === triggerKind, "No trigger spec.", { "~LogMeta": "~LogMeta", F: __dxlog_file, L:
|
|
679
|
+
invariant(triggerSpec && triggerSpec.kind === triggerKind, "No trigger spec.", { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 661, S: void 0, A: ["triggerSpec && triggerSpec.kind === triggerKind", "'No trigger spec.'"] });
|
|
684
680
|
Obj.update(functionTrigger, (functionTrigger2) => {
|
|
685
681
|
initSpec(functionTrigger2.spec);
|
|
686
682
|
});
|
|
687
683
|
});
|
|
688
684
|
const computeModel = createComputeGraph(canvasModel);
|
|
689
685
|
const templateComputeNode = computeModel.nodes.find((n) => n.id === template.node);
|
|
690
|
-
invariant(templateComputeNode, "Template compute node was not created.", { "~LogMeta": "~LogMeta", F: __dxlog_file, L:
|
|
686
|
+
invariant(templateComputeNode, "Template compute node was not created.", { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 668, S: void 0, A: ["templateComputeNode", "'Template compute node was not created.'"] });
|
|
691
687
|
templateComputeNode.value = [
|
|
692
688
|
"{",
|
|
693
689
|
' "@type": "{{type}}",',
|
|
@@ -713,11 +709,10 @@ var addToSpace = (name, space, canvas, compute) => {
|
|
|
713
709
|
};
|
|
714
710
|
var setupQueue = (space, canvasModel, args) => {
|
|
715
711
|
const queueId = canvasModel.createNode(createConstant({
|
|
716
|
-
value:
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
]).toString(),
|
|
712
|
+
value: EID.make({
|
|
713
|
+
spaceId: space.id,
|
|
714
|
+
entityId: Key.EntityId.random()
|
|
715
|
+
}),
|
|
721
716
|
...args?.idPosition ? rawPosition(args.idPosition) : position({
|
|
722
717
|
x: -18,
|
|
723
718
|
y: 5,
|
|
@@ -741,7 +736,7 @@ var setupQueue = (space, canvasModel, args) => {
|
|
|
741
736
|
};
|
|
742
737
|
};
|
|
743
738
|
var attachTrigger = (functionTrigger, computeModel) => {
|
|
744
|
-
invariant(functionTrigger, void 0, { "~LogMeta": "~LogMeta", F: __dxlog_file, L:
|
|
739
|
+
invariant(functionTrigger, void 0, { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 722, S: void 0, A: ["functionTrigger", ""] });
|
|
745
740
|
const inputNode = computeModel.nodes.find((node) => node.type === NODE_INPUT);
|
|
746
741
|
Obj.update(functionTrigger, (functionTrigger2) => {
|
|
747
742
|
functionTrigger2.function = Ref.make(computeModel.root);
|
|
@@ -795,8 +790,7 @@ var position = (rect) => {
|
|
|
795
790
|
// src/components/SpaceGenerator/ObjectGenerator.tsx
|
|
796
791
|
import { addressToA1Notation } from "@dxos/compute-hyperformula";
|
|
797
792
|
import { ComputeGraph, ComputeGraphModel, DEFAULT_OUTPUT, NODE_INPUT as NODE_INPUT2, NODE_OUTPUT } from "@dxos/conductor";
|
|
798
|
-
import {
|
|
799
|
-
import { View } from "@dxos/echo";
|
|
793
|
+
import { EID as EID2, Filter as Filter2, Key as Key2, Type, View } from "@dxos/echo";
|
|
800
794
|
import { Markdown as Markdown2 } from "@dxos/plugin-markdown";
|
|
801
795
|
import { Sheet } from "@dxos/plugin-sheet";
|
|
802
796
|
import { Sketch } from "@dxos/plugin-sketch";
|
|
@@ -811,16 +805,14 @@ var findViewByTypename = async (views, typename) => {
|
|
|
811
805
|
};
|
|
812
806
|
var createGenerator = (client, invokePromise, schema) => {
|
|
813
807
|
return async (space, n) => {
|
|
814
|
-
const typename = schema
|
|
808
|
+
const typename = Type.getTypename(schema);
|
|
815
809
|
const views = await space.db.query(Filter2.type(View.View)).run();
|
|
816
810
|
const view = await findViewByTypename(views, typename);
|
|
817
|
-
const staticSchema = client
|
|
818
|
-
typename
|
|
819
|
-
}).runSync()[0];
|
|
811
|
+
const staticSchema = client ? client.graph.registry.list().filter(Type.isType).find((s) => Type.getTypename(s) === typename) : void 0;
|
|
820
812
|
if (!view && !staticSchema) {
|
|
821
|
-
await invokePromise(SpaceOperation.
|
|
813
|
+
await invokePromise(SpaceOperation.AddType, {
|
|
822
814
|
db: space.db,
|
|
823
|
-
schema,
|
|
815
|
+
type: schema,
|
|
824
816
|
show: false
|
|
825
817
|
});
|
|
826
818
|
}
|
|
@@ -832,7 +824,7 @@ var createGenerator = (client, invokePromise, schema) => {
|
|
|
832
824
|
};
|
|
833
825
|
var staticGenerators = /* @__PURE__ */ new Map([
|
|
834
826
|
[
|
|
835
|
-
Markdown2.Document
|
|
827
|
+
Type.getTypename(Markdown2.Document),
|
|
836
828
|
async (space, n, cb) => {
|
|
837
829
|
const objects = range2(n).map(() => {
|
|
838
830
|
return space.db.add(Markdown2.make({
|
|
@@ -845,7 +837,7 @@ var staticGenerators = /* @__PURE__ */ new Map([
|
|
|
845
837
|
}
|
|
846
838
|
],
|
|
847
839
|
[
|
|
848
|
-
Sketch.Sketch
|
|
840
|
+
Type.getTypename(Sketch.Sketch),
|
|
849
841
|
async (space, n, cb) => {
|
|
850
842
|
const objects = range2(n).map(() => {
|
|
851
843
|
const obj = space.db.add(Sketch.make({
|
|
@@ -859,7 +851,7 @@ var staticGenerators = /* @__PURE__ */ new Map([
|
|
|
859
851
|
],
|
|
860
852
|
// TODO(burdon): Create unit tests.
|
|
861
853
|
[
|
|
862
|
-
Sheet.Sheet
|
|
854
|
+
Type.getTypename(Sheet.Sheet),
|
|
863
855
|
async (space, n, cb) => {
|
|
864
856
|
const objects = range2(n).map(() => {
|
|
865
857
|
const cells = {};
|
|
@@ -905,7 +897,7 @@ var staticGenerators = /* @__PURE__ */ new Map([
|
|
|
905
897
|
}
|
|
906
898
|
],
|
|
907
899
|
[
|
|
908
|
-
ComputeGraph
|
|
900
|
+
Type.getTypename(ComputeGraph),
|
|
909
901
|
async (space, n, cb) => {
|
|
910
902
|
const objects = range2(n, () => {
|
|
911
903
|
const model = ComputeGraphModel.create();
|
|
@@ -918,11 +910,10 @@ var staticGenerators = /* @__PURE__ */ new Map([
|
|
|
918
910
|
}).createNode({
|
|
919
911
|
id: "gpt-QUEUE_ID",
|
|
920
912
|
type: "constant",
|
|
921
|
-
value:
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
]).toString()
|
|
913
|
+
value: EID2.make({
|
|
914
|
+
spaceId: space.id,
|
|
915
|
+
entityId: Key2.EntityId.random()
|
|
916
|
+
})
|
|
926
917
|
}).createNode({
|
|
927
918
|
id: "gpt-APPEND",
|
|
928
919
|
type: "append"
|
|
@@ -969,7 +960,7 @@ var staticGenerators = /* @__PURE__ */ new Map([
|
|
|
969
960
|
]);
|
|
970
961
|
|
|
971
962
|
// src/components/index.ts
|
|
972
|
-
var DebugSettings = lazy(() => import("../DebugSettings-
|
|
963
|
+
var DebugSettings = lazy(() => import("../DebugSettings-RKYNQIKH.mjs"));
|
|
973
964
|
export {
|
|
974
965
|
DebugSettings,
|
|
975
966
|
PresetName,
|