@dxos/plugin-debug 0.8.4-main.abd8ff62ef → 0.8.4-main.bc2380dfbc
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +102 -5
- package/README.md +1 -1
- package/dist/lib/neutral/DebugGraph-G4FWS57E.mjs +15 -0
- package/dist/lib/neutral/DebugGraph-G4FWS57E.mjs.map +7 -0
- package/dist/lib/neutral/DebugObjectPanel-UJ63CV25.mjs +59 -0
- package/dist/lib/neutral/DebugObjectPanel-UJ63CV25.mjs.map +7 -0
- package/dist/lib/neutral/DebugPlugin.mjs +47 -0
- package/dist/lib/neutral/DebugPlugin.mjs.map +7 -0
- package/dist/lib/neutral/DebugPlugin.node.mjs +18 -0
- package/dist/lib/neutral/DebugPlugin.node.mjs.map +7 -0
- package/dist/lib/neutral/DebugPlugin.workerd.mjs +12 -0
- package/dist/lib/neutral/DebugPlugin.workerd.mjs.map +7 -0
- package/dist/lib/neutral/DebugSettings-Z3XADRNK.mjs +224 -0
- package/dist/lib/neutral/DebugSettings-Z3XADRNK.mjs.map +7 -0
- package/dist/lib/neutral/DebugSpaceObjectsPanel-NISULU6U.mjs +34 -0
- package/dist/lib/neutral/DebugSpaceObjectsPanel-NISULU6U.mjs.map +7 -0
- package/dist/lib/neutral/DebugStatus-YB3KFP7G.mjs +121 -0
- package/dist/lib/neutral/DebugStatus-YB3KFP7G.mjs.map +7 -0
- package/dist/lib/neutral/DevtoolsOverviewContainer-YX7Z3D2H.mjs +23 -0
- package/dist/lib/neutral/DevtoolsOverviewContainer-YX7Z3D2H.mjs.map +7 -0
- package/dist/lib/neutral/SpaceGenerator-UBYB4NPD.mjs +143 -0
- package/dist/lib/neutral/SpaceGenerator-UBYB4NPD.mjs.map +7 -0
- package/dist/lib/neutral/Wireframe-7SNRUKET.mjs +52 -0
- package/dist/lib/neutral/Wireframe-7SNRUKET.mjs.map +7 -0
- package/dist/lib/neutral/app-graph-builder-YPYHL2K5.mjs +577 -0
- package/dist/lib/neutral/app-graph-builder-YPYHL2K5.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/{browser/index.mjs → neutral/chunk-3OGPOE7H.mjs} +1 -7
- package/dist/lib/neutral/chunk-3OGPOE7H.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/neutral/chunk-NFIOTQRZ.mjs +89 -0
- package/dist/lib/neutral/chunk-NFIOTQRZ.mjs.map +7 -0
- package/dist/lib/neutral/components/index.mjs +980 -0
- package/dist/lib/neutral/components/index.mjs.map +7 -0
- package/dist/lib/neutral/containers/index.mjs +21 -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-UR2SYHYW.mjs +419 -0
- package/dist/lib/neutral/react-surface-UR2SYHYW.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/{browser → neutral}/translations.mjs +3 -1
- 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.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.stories.d.ts +4 -2
- package/dist/types/src/components/DebugSettings/DebugSettings.stories.d.ts.map +1 -1
- package/dist/types/src/components/SpaceGenerator/ObjectGenerator.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +1 -3
- package/dist/types/src/index.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 +4 -2
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +107 -73
- package/src/DebugPlugin.workerd.ts +12 -0
- package/src/capabilities/app-graph-builder.ts +2 -2
- package/src/capabilities/react-surface.tsx +5 -6
- package/src/components/SpaceGenerator/ObjectGenerator.tsx +5 -6
- package/src/components/SpaceGenerator/presets.ts +13 -13
- package/src/containers/DebugObjectPanel/DebugObjectPanel.tsx +1 -1
- package/src/containers/SpaceGenerator/SpaceGenerator.tsx +3 -3
- package/src/index.ts +1 -7
- package/src/plugin.ts +10 -0
- package/src/translations.ts +1 -1
- package/dist/lib/browser/index.mjs.map +0 -7
- package/dist/lib/browser/meta.json +0 -1
- package/dist/lib/browser/translations.mjs.map +0 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/plugin-debug",
|
|
3
|
-
"version": "0.8.4-main.
|
|
3
|
+
"version": "0.8.4-main.bc2380dfbc",
|
|
4
4
|
"description": "DXOS Surface plugin for testing.",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -8,34 +8,68 @@
|
|
|
8
8
|
"type": "git",
|
|
9
9
|
"url": "https://github.com/dxos/dxos"
|
|
10
10
|
},
|
|
11
|
-
"license": "
|
|
11
|
+
"license": "FSL-1.1-Apache-2.0",
|
|
12
12
|
"author": "DXOS.org",
|
|
13
13
|
"sideEffects": true,
|
|
14
14
|
"type": "module",
|
|
15
15
|
"imports": {
|
|
16
|
-
"#capabilities":
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
"#capabilities": {
|
|
17
|
+
"source": "./src/capabilities/index.ts",
|
|
18
|
+
"types": "./dist/types/src/capabilities/index.d.ts",
|
|
19
|
+
"default": "./dist/lib/neutral/capabilities/index.mjs"
|
|
20
|
+
},
|
|
21
|
+
"#components": {
|
|
22
|
+
"source": "./src/components/index.ts",
|
|
23
|
+
"types": "./dist/types/src/components/index.d.ts",
|
|
24
|
+
"default": "./dist/lib/neutral/components/index.mjs"
|
|
25
|
+
},
|
|
26
|
+
"#containers": {
|
|
27
|
+
"source": "./src/containers/index.ts",
|
|
28
|
+
"types": "./dist/types/src/containers/index.d.ts",
|
|
29
|
+
"default": "./dist/lib/neutral/containers/index.mjs"
|
|
30
|
+
},
|
|
31
|
+
"#meta": {
|
|
32
|
+
"source": "./src/meta.ts",
|
|
33
|
+
"types": "./dist/types/src/meta.d.ts",
|
|
34
|
+
"default": "./dist/lib/neutral/meta.mjs"
|
|
35
|
+
},
|
|
20
36
|
"#plugin": {
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
|
|
37
|
+
"source": {
|
|
38
|
+
"workerd": "./src/DebugPlugin.workerd.ts",
|
|
39
|
+
"node": "./src/DebugPlugin.node.ts",
|
|
40
|
+
"default": "./src/DebugPlugin.tsx"
|
|
41
|
+
},
|
|
42
|
+
"types": "./dist/types/src/DebugPlugin.d.ts",
|
|
43
|
+
"workerd": "./dist/lib/neutral/DebugPlugin.workerd.mjs",
|
|
44
|
+
"node": "./dist/lib/neutral/DebugPlugin.node.mjs",
|
|
45
|
+
"default": "./dist/lib/neutral/DebugPlugin.mjs"
|
|
24
46
|
},
|
|
25
|
-
"#translations":
|
|
26
|
-
|
|
47
|
+
"#translations": {
|
|
48
|
+
"source": "./src/translations.ts",
|
|
49
|
+
"types": "./dist/types/src/translations.d.ts",
|
|
50
|
+
"default": "./dist/lib/neutral/translations.mjs"
|
|
51
|
+
},
|
|
52
|
+
"#types": {
|
|
53
|
+
"source": "./src/types/index.ts",
|
|
54
|
+
"types": "./dist/types/src/types/index.d.ts",
|
|
55
|
+
"default": "./dist/lib/neutral/types/index.mjs"
|
|
56
|
+
}
|
|
27
57
|
},
|
|
28
58
|
"exports": {
|
|
29
59
|
".": {
|
|
30
60
|
"source": "./src/index.ts",
|
|
31
61
|
"types": "./dist/types/src/index.d.ts",
|
|
32
|
-
"
|
|
62
|
+
"default": "./dist/lib/neutral/index.mjs"
|
|
63
|
+
},
|
|
64
|
+
"./plugin": {
|
|
65
|
+
"source": "./src/plugin.ts",
|
|
66
|
+
"types": "./dist/types/src/plugin.d.ts",
|
|
67
|
+
"default": "./dist/lib/neutral/plugin.mjs"
|
|
33
68
|
},
|
|
34
69
|
"./translations": {
|
|
35
70
|
"source": "./src/translations.ts",
|
|
36
71
|
"types": "./dist/types/src/translations.d.ts",
|
|
37
|
-
"
|
|
38
|
-
"node": "./dist/lib/node-esm/translations.mjs"
|
|
72
|
+
"default": "./dist/lib/neutral/translations.mjs"
|
|
39
73
|
}
|
|
40
74
|
},
|
|
41
75
|
"types": "dist/types/src/index.d.ts",
|
|
@@ -46,7 +80,7 @@
|
|
|
46
80
|
"dependencies": {
|
|
47
81
|
"@antv/graphlib": "^2.0.4",
|
|
48
82
|
"@antv/layout": "^1.2.13",
|
|
49
|
-
"@automerge/automerge": "3.2.
|
|
83
|
+
"@automerge/automerge": "3.2.6",
|
|
50
84
|
"@effect-atom/atom": "^0.5.1",
|
|
51
85
|
"@effect-atom/atom-react": "^0.5.0",
|
|
52
86
|
"@tldraw/tldraw": "^3.0.0",
|
|
@@ -54,56 +88,56 @@
|
|
|
54
88
|
"react-json-tree": "^0.18.0",
|
|
55
89
|
"react-resize-detector": "^11.0.1",
|
|
56
90
|
"workerize-loader": "^2.0.2",
|
|
57
|
-
"@dxos/app-framework": "0.8.4-main.
|
|
58
|
-
"@dxos/assistant-toolkit": "0.8.4-main.
|
|
59
|
-
"@dxos/
|
|
60
|
-
"@dxos/async": "0.8.4-main.
|
|
61
|
-
"@dxos/
|
|
62
|
-
"@dxos/compute
|
|
63
|
-
"@dxos/
|
|
64
|
-
"@dxos/
|
|
65
|
-
"@dxos/
|
|
66
|
-
"@dxos/
|
|
67
|
-
"@dxos/devtools": "0.8.4-main.
|
|
68
|
-
"@dxos/echo
|
|
69
|
-
"@dxos/
|
|
70
|
-
"@dxos/echo": "0.8.4-main.
|
|
71
|
-
"@dxos/
|
|
72
|
-
"@dxos/invariant": "0.8.4-main.
|
|
73
|
-
"@dxos/keys": "0.8.4-main.
|
|
74
|
-
"@dxos/log-store-idb": "0.8.4-main.
|
|
75
|
-
"@dxos/log": "0.8.4-main.
|
|
76
|
-
"@dxos/operation": "0.8.4-main.
|
|
77
|
-
"@dxos/plugin-client": "0.8.4-main.
|
|
78
|
-
"@dxos/plugin-deck": "0.8.4-main.
|
|
79
|
-
"@dxos/plugin-graph": "0.8.4-main.
|
|
80
|
-
"@dxos/plugin-inbox": "0.8.4-main.
|
|
81
|
-
"@dxos/plugin-markdown": "0.8.4-main.
|
|
82
|
-
"@dxos/plugin-
|
|
83
|
-
"@dxos/plugin-
|
|
84
|
-
"@dxos/plugin-
|
|
85
|
-
"@dxos/plugin-sketch": "0.8.4-main.
|
|
86
|
-
"@dxos/plugin-space": "0.8.4-main.
|
|
87
|
-
"@dxos/plugin-status-bar": "0.8.4-main.
|
|
88
|
-
"@dxos/plugin-table": "0.8.4-main.
|
|
89
|
-
"@dxos/protocols": "0.8.4-main.
|
|
90
|
-
"@dxos/
|
|
91
|
-
"@dxos/
|
|
92
|
-
"@dxos/react-client": "0.8.4-main.
|
|
93
|
-
"@dxos/react-hooks": "0.8.4-main.
|
|
94
|
-
"@dxos/react-ui-canvas-compute": "0.8.4-main.
|
|
95
|
-
"@dxos/react-ui-canvas-editor": "0.8.4-main.
|
|
96
|
-
"@dxos/react-ui-
|
|
97
|
-
"@dxos/react-ui-attention": "0.8.4-main.
|
|
98
|
-
"@dxos/react-ui-
|
|
99
|
-
"@dxos/react-ui-
|
|
100
|
-
"@dxos/react-ui-stack": "0.8.4-main.
|
|
101
|
-
"@dxos/react-ui-syntax-highlighter": "0.8.4-main.
|
|
102
|
-
"@dxos/
|
|
103
|
-
"@dxos/
|
|
104
|
-
"@dxos/
|
|
105
|
-
"@dxos/
|
|
106
|
-
"@dxos/util": "0.8.4-main.
|
|
91
|
+
"@dxos/app-framework": "0.8.4-main.bc2380dfbc",
|
|
92
|
+
"@dxos/assistant-toolkit": "0.8.4-main.bc2380dfbc",
|
|
93
|
+
"@dxos/app-toolkit": "0.8.4-main.bc2380dfbc",
|
|
94
|
+
"@dxos/async": "0.8.4-main.bc2380dfbc",
|
|
95
|
+
"@dxos/client-services": "0.8.4-main.bc2380dfbc",
|
|
96
|
+
"@dxos/compute": "0.8.4-main.bc2380dfbc",
|
|
97
|
+
"@dxos/compute-hyperformula": "0.8.4-main.bc2380dfbc",
|
|
98
|
+
"@dxos/conductor": "0.8.4-main.bc2380dfbc",
|
|
99
|
+
"@dxos/context": "0.8.4-main.bc2380dfbc",
|
|
100
|
+
"@dxos/config": "0.8.4-main.bc2380dfbc",
|
|
101
|
+
"@dxos/devtools": "0.8.4-main.bc2380dfbc",
|
|
102
|
+
"@dxos/echo": "0.8.4-main.bc2380dfbc",
|
|
103
|
+
"@dxos/echo-generator": "0.8.4-main.bc2380dfbc",
|
|
104
|
+
"@dxos/echo-pipeline": "0.8.4-main.bc2380dfbc",
|
|
105
|
+
"@dxos/effect": "0.8.4-main.bc2380dfbc",
|
|
106
|
+
"@dxos/invariant": "0.8.4-main.bc2380dfbc",
|
|
107
|
+
"@dxos/keys": "0.8.4-main.bc2380dfbc",
|
|
108
|
+
"@dxos/log-store-idb": "0.8.4-main.bc2380dfbc",
|
|
109
|
+
"@dxos/log": "0.8.4-main.bc2380dfbc",
|
|
110
|
+
"@dxos/operation": "0.8.4-main.bc2380dfbc",
|
|
111
|
+
"@dxos/plugin-client": "0.8.4-main.bc2380dfbc",
|
|
112
|
+
"@dxos/plugin-deck": "0.8.4-main.bc2380dfbc",
|
|
113
|
+
"@dxos/plugin-graph": "0.8.4-main.bc2380dfbc",
|
|
114
|
+
"@dxos/plugin-inbox": "0.8.4-main.bc2380dfbc",
|
|
115
|
+
"@dxos/plugin-markdown": "0.8.4-main.bc2380dfbc",
|
|
116
|
+
"@dxos/plugin-meeting": "0.8.4-main.bc2380dfbc",
|
|
117
|
+
"@dxos/plugin-script": "0.8.4-main.bc2380dfbc",
|
|
118
|
+
"@dxos/plugin-sheet": "0.8.4-main.bc2380dfbc",
|
|
119
|
+
"@dxos/plugin-sketch": "0.8.4-main.bc2380dfbc",
|
|
120
|
+
"@dxos/plugin-space": "0.8.4-main.bc2380dfbc",
|
|
121
|
+
"@dxos/plugin-status-bar": "0.8.4-main.bc2380dfbc",
|
|
122
|
+
"@dxos/plugin-table": "0.8.4-main.bc2380dfbc",
|
|
123
|
+
"@dxos/protocols": "0.8.4-main.bc2380dfbc",
|
|
124
|
+
"@dxos/plugin-theme": "0.8.4-main.bc2380dfbc",
|
|
125
|
+
"@dxos/random": "0.8.4-main.bc2380dfbc",
|
|
126
|
+
"@dxos/react-client": "0.8.4-main.bc2380dfbc",
|
|
127
|
+
"@dxos/react-hooks": "0.8.4-main.bc2380dfbc",
|
|
128
|
+
"@dxos/react-ui-canvas-compute": "0.8.4-main.bc2380dfbc",
|
|
129
|
+
"@dxos/react-ui-canvas-editor": "0.8.4-main.bc2380dfbc",
|
|
130
|
+
"@dxos/react-ui-introspect": "0.8.4-main.bc2380dfbc",
|
|
131
|
+
"@dxos/react-ui-attention": "0.8.4-main.bc2380dfbc",
|
|
132
|
+
"@dxos/react-ui-mosaic": "0.8.4-main.bc2380dfbc",
|
|
133
|
+
"@dxos/react-ui-form": "0.8.4-main.bc2380dfbc",
|
|
134
|
+
"@dxos/react-ui-stack": "0.8.4-main.bc2380dfbc",
|
|
135
|
+
"@dxos/react-ui-syntax-highlighter": "0.8.4-main.bc2380dfbc",
|
|
136
|
+
"@dxos/tracing": "0.8.4-main.bc2380dfbc",
|
|
137
|
+
"@dxos/schema": "0.8.4-main.bc2380dfbc",
|
|
138
|
+
"@dxos/react-ui-table": "0.8.4-main.bc2380dfbc",
|
|
139
|
+
"@dxos/types": "0.8.4-main.bc2380dfbc",
|
|
140
|
+
"@dxos/util": "0.8.4-main.bc2380dfbc"
|
|
107
141
|
},
|
|
108
142
|
"devDependencies": {
|
|
109
143
|
"@effect-atom/atom-react": "^0.5.0",
|
|
@@ -113,11 +147,11 @@
|
|
|
113
147
|
"effect": "3.20.0",
|
|
114
148
|
"react": "~19.2.3",
|
|
115
149
|
"react-dom": "~19.2.3",
|
|
116
|
-
"vite": "^8.0.
|
|
117
|
-
"@dxos/plugin-testing": "0.8.4-main.
|
|
118
|
-
"@dxos/
|
|
119
|
-
"@dxos/
|
|
120
|
-
"@dxos/
|
|
150
|
+
"vite": "^8.0.13",
|
|
151
|
+
"@dxos/plugin-testing": "0.8.4-main.bc2380dfbc",
|
|
152
|
+
"@dxos/react-ui": "0.8.4-main.bc2380dfbc",
|
|
153
|
+
"@dxos/ui-theme": "0.8.4-main.bc2380dfbc",
|
|
154
|
+
"@dxos/storybook-utils": "0.8.4-main.bc2380dfbc"
|
|
121
155
|
},
|
|
122
156
|
"peerDependencies": {
|
|
123
157
|
"@effect-atom/atom-react": "^0.5.0",
|
|
@@ -125,9 +159,9 @@
|
|
|
125
159
|
"effect": "3.20.0",
|
|
126
160
|
"react": "~19.2.3",
|
|
127
161
|
"react-dom": "~19.2.3",
|
|
128
|
-
"@dxos/
|
|
129
|
-
"@dxos/react-ui": "0.8.4-main.
|
|
130
|
-
"@dxos/
|
|
162
|
+
"@dxos/random": "0.8.4-main.bc2380dfbc",
|
|
163
|
+
"@dxos/react-ui": "0.8.4-main.bc2380dfbc",
|
|
164
|
+
"@dxos/ui-theme": "0.8.4-main.bc2380dfbc"
|
|
131
165
|
},
|
|
132
166
|
"publishConfig": {
|
|
133
167
|
"access": "public"
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2023 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import { Plugin } from '@dxos/app-framework';
|
|
6
|
+
|
|
7
|
+
import { meta } from '#meta';
|
|
8
|
+
import { type DebugPluginOptions } from '#types';
|
|
9
|
+
|
|
10
|
+
export const DebugPlugin = Plugin.define<DebugPluginOptions>(meta).pipe(Plugin.make);
|
|
11
|
+
|
|
12
|
+
export default DebugPlugin;
|
|
@@ -6,9 +6,9 @@ import * as Effect from 'effect/Effect';
|
|
|
6
6
|
|
|
7
7
|
import { Capability } from '@dxos/app-framework';
|
|
8
8
|
import { AppCapabilities, AppNode, getSpaceIdFromPath } from '@dxos/app-toolkit';
|
|
9
|
-
import { ClientCapabilities } from '@dxos/plugin-client
|
|
9
|
+
import { ClientCapabilities } from '@dxos/plugin-client';
|
|
10
10
|
import { GraphBuilder, Node, NodeMatcher } from '@dxos/plugin-graph';
|
|
11
|
-
import { SPACE_TYPE } from '@dxos/plugin-space
|
|
11
|
+
import { SPACE_TYPE } from '@dxos/plugin-space';
|
|
12
12
|
import { getParentId } from '@dxos/react-ui-attention';
|
|
13
13
|
|
|
14
14
|
import { meta } from '#meta';
|
|
@@ -35,13 +35,12 @@ import {
|
|
|
35
35
|
TestingPanel,
|
|
36
36
|
WorkflowPanel,
|
|
37
37
|
} from '@dxos/devtools';
|
|
38
|
-
import { Feed, Obj } from '@dxos/echo';
|
|
39
|
-
import { Collection } from '@dxos/echo';
|
|
38
|
+
import { Collection, Feed, Obj } from '@dxos/echo';
|
|
40
39
|
import { log } from '@dxos/log';
|
|
41
40
|
import { type IdbLogStore } from '@dxos/log-store-idb';
|
|
42
41
|
import { type Graph } from '@dxos/plugin-graph';
|
|
43
|
-
import { ScriptOperation } from '@dxos/plugin-script
|
|
44
|
-
import { SpaceOperation } from '@dxos/plugin-space
|
|
42
|
+
import { ScriptOperation } from '@dxos/plugin-script';
|
|
43
|
+
import { SpaceOperation } from '@dxos/plugin-space';
|
|
45
44
|
import { type Space, SpaceState, isSpace } from '@dxos/react-client/echo';
|
|
46
45
|
import { ToolsExplorer } from '@dxos/react-ui-introspect';
|
|
47
46
|
|
|
@@ -398,8 +397,8 @@ export default Capability.makeModule(
|
|
|
398
397
|
}
|
|
399
398
|
|
|
400
399
|
const feed = space.properties.invocationTraceFeed?.target;
|
|
401
|
-
const
|
|
402
|
-
return <InvocationTraceContainer db={space.db}
|
|
400
|
+
const feedDXN = feed ? Feed.getQueueDxn(feed) : undefined;
|
|
401
|
+
return <InvocationTraceContainer db={space.db} feedDXN={feedDXN} detailAxis='block' />;
|
|
403
402
|
},
|
|
404
403
|
}),
|
|
405
404
|
Surface.create({
|
|
@@ -6,13 +6,12 @@ import type * as Schema from 'effect/Schema';
|
|
|
6
6
|
|
|
7
7
|
import { addressToA1Notation } from '@dxos/compute-hyperformula';
|
|
8
8
|
import { ComputeGraph, ComputeGraphModel, DEFAULT_OUTPUT, NODE_INPUT, NODE_OUTPUT } from '@dxos/conductor';
|
|
9
|
-
import { DXN, Filter, Key, type Type } from '@dxos/echo';
|
|
10
|
-
import { View } from '@dxos/echo';
|
|
9
|
+
import { DXN, Filter, Key, type Type, View } from '@dxos/echo';
|
|
11
10
|
import { OperationInvoker } from '@dxos/operation';
|
|
12
|
-
import { Markdown } from '@dxos/plugin-markdown
|
|
13
|
-
import { Sheet } from '@dxos/plugin-sheet
|
|
14
|
-
import { Sketch } from '@dxos/plugin-sketch
|
|
15
|
-
import { SpaceOperation } from '@dxos/plugin-space
|
|
11
|
+
import { Markdown } from '@dxos/plugin-markdown';
|
|
12
|
+
import { Sheet } from '@dxos/plugin-sheet';
|
|
13
|
+
import { Sketch } from '@dxos/plugin-sketch';
|
|
14
|
+
import { SpaceOperation } from '@dxos/plugin-space';
|
|
16
15
|
import { random } from '@dxos/random';
|
|
17
16
|
import { type Client } from '@dxos/react-client';
|
|
18
17
|
import { type Space } from '@dxos/react-client/echo';
|
|
@@ -9,9 +9,9 @@ import { Routine, Trigger, Operation } from '@dxos/compute';
|
|
|
9
9
|
import { type ComputeGraphModel, NODE_INPUT } from '@dxos/conductor';
|
|
10
10
|
import { DXN, Feed, Filter, JsonSchema, Key, Obj, Query, type QueryAST, Ref, Tag } from '@dxos/echo';
|
|
11
11
|
import { invariant } from '@dxos/invariant';
|
|
12
|
-
import { InboxOperation } from '@dxos/plugin-inbox
|
|
13
|
-
import { Mailbox } from '@dxos/plugin-inbox
|
|
14
|
-
import { Markdown } from '@dxos/plugin-markdown
|
|
12
|
+
import { InboxOperation } from '@dxos/plugin-inbox';
|
|
13
|
+
import { Mailbox } from '@dxos/plugin-inbox';
|
|
14
|
+
import { Markdown } from '@dxos/plugin-markdown';
|
|
15
15
|
import { type Space } from '@dxos/react-client/echo';
|
|
16
16
|
import {
|
|
17
17
|
type ComputeShape,
|
|
@@ -71,9 +71,9 @@ export const generator = () => ({
|
|
|
71
71
|
);
|
|
72
72
|
|
|
73
73
|
const tag = space.db.add(Tag.make({ label: 'Investor' }));
|
|
74
|
-
const
|
|
74
|
+
const tagDXN = Obj.getDXN(tag).toString();
|
|
75
75
|
Obj.update(doc, (doc) => {
|
|
76
|
-
Obj.getMeta(doc).tags = [
|
|
76
|
+
Obj.getMeta(doc).tags = [tagDXN];
|
|
77
77
|
});
|
|
78
78
|
|
|
79
79
|
// space.db.add(
|
|
@@ -85,7 +85,7 @@ export const generator = () => ({
|
|
|
85
85
|
// );
|
|
86
86
|
|
|
87
87
|
space.db.add(
|
|
88
|
-
Obj.make(Person.Person, { [Obj.Meta]: { tags: [
|
|
88
|
+
Obj.make(Person.Person, { [Obj.Meta]: { tags: [tagDXN] }, fullName: 'Rich', organization: Ref.make(org) }),
|
|
89
89
|
);
|
|
90
90
|
space.db.add(
|
|
91
91
|
Obj.make(Person.Person, {
|
|
@@ -120,15 +120,15 @@ export const generator = () => ({
|
|
|
120
120
|
invariant(mailbox, 'Mailbox not found');
|
|
121
121
|
const mailboxFeed = await mailbox.feed?.tryLoad();
|
|
122
122
|
invariant(mailboxFeed, 'Mailbox missing feed reference');
|
|
123
|
-
const
|
|
124
|
-
invariant(
|
|
123
|
+
const feedDXN = Feed.getQueueDxn(mailboxFeed)?.toString();
|
|
124
|
+
invariant(feedDXN, 'Mailbox feed missing DXN');
|
|
125
125
|
const tag = await space.db.query(Filter.type(Tag.Tag, { label: 'Investor' })).first();
|
|
126
|
-
const
|
|
126
|
+
const tagDXN = Obj.getDXN(tag).toString();
|
|
127
127
|
|
|
128
128
|
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(
|
|
129
|
+
const contactsQuery = Query.select(Filter.type(Person.Person)).select(Filter.tag(tagDXN));
|
|
130
|
+
const organizationsQuery = Query.select(Filter.type(Organization.Organization)).select(Filter.tag(tagDXN));
|
|
131
|
+
const notesQuery = Query.select(Filter.type(Markdown.Document)).select(Filter.tag(tagDXN));
|
|
132
132
|
|
|
133
133
|
space.db.add(
|
|
134
134
|
Trigger.make({
|
|
@@ -179,7 +179,7 @@ export const generator = () => ({
|
|
|
179
179
|
properties: { labels: Filter.contains('investor') },
|
|
180
180
|
}),
|
|
181
181
|
).from({
|
|
182
|
-
|
|
182
|
+
feeds: [feedDXN],
|
|
183
183
|
}),
|
|
184
184
|
jsonSchema: JsonSchema.toJsonSchema(Message.Message),
|
|
185
185
|
});
|
|
@@ -35,7 +35,7 @@ export const DebugObjectPanel = ({ role, companionTo }: DebugObjectPanelProps) =
|
|
|
35
35
|
<Toolbar.Root />
|
|
36
36
|
</Panel.Toolbar>
|
|
37
37
|
<Panel.Content asChild>
|
|
38
|
-
<div
|
|
38
|
+
<div className={mx('grid divide-y divide-separator', db && 'grid-rows-[1fr_2fr]')}>
|
|
39
39
|
{db && (
|
|
40
40
|
<ScrollArea.Root>
|
|
41
41
|
<ScrollArea.Viewport>
|
|
@@ -7,9 +7,9 @@ import React, { useCallback, useMemo, useState } from 'react';
|
|
|
7
7
|
import { useOperationInvoker } from '@dxos/app-framework/ui';
|
|
8
8
|
import { ComputeGraph } from '@dxos/conductor';
|
|
9
9
|
import { Filter, Obj, type Type } from '@dxos/echo';
|
|
10
|
-
import { Markdown } from '@dxos/plugin-markdown
|
|
11
|
-
import { Sheet } from '@dxos/plugin-sheet
|
|
12
|
-
import { Sketch } from '@dxos/plugin-sketch
|
|
10
|
+
import { Markdown } from '@dxos/plugin-markdown';
|
|
11
|
+
import { Sheet } from '@dxos/plugin-sheet';
|
|
12
|
+
import { Sketch } from '@dxos/plugin-sketch';
|
|
13
13
|
import { useClient } from '@dxos/react-client';
|
|
14
14
|
import { type Space } from '@dxos/react-client/echo';
|
|
15
15
|
import { IconButton, Input, Panel, ScrollArea, Toolbar, useAsyncEffect } from '@dxos/react-ui';
|
package/src/index.ts
CHANGED
|
@@ -2,11 +2,5 @@
|
|
|
2
2
|
// Copyright 2023 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import { Plugin } from '@dxos/app-framework';
|
|
6
|
-
|
|
7
|
-
import { meta } from './meta';
|
|
8
|
-
|
|
9
|
-
export const DebugPlugin = Plugin.lazy(meta, () => import('#plugin'));
|
|
10
|
-
export type { DebugPluginOptions } from '#types';
|
|
11
|
-
|
|
12
5
|
export * from './meta';
|
|
6
|
+
export * from './types';
|
package/src/plugin.ts
ADDED
package/src/translations.ts
CHANGED
|
@@ -21,7 +21,7 @@ export const translations = [
|
|
|
21
21
|
'debug.label': 'Debug',
|
|
22
22
|
'generate-objects.label': 'Generate Objects',
|
|
23
23
|
'debug-app-graph.label': 'App Graph',
|
|
24
|
-
'debug-tools-explorer.label': '
|
|
24
|
+
'debug-tools-explorer.label': 'SDK Explorer',
|
|
25
25
|
|
|
26
26
|
'settings.wireframe.label': 'Show wireframes.',
|
|
27
27
|
'settings.wireframe.description': 'Overlay wireframe outlines on UI components for debugging layout.',
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/index.ts", "../../../src/meta.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { Plugin } from '@dxos/app-framework';\n\nimport { meta } from './meta';\n\nexport const DebugPlugin = Plugin.lazy(meta, () => import('#plugin'));\nexport type { DebugPluginOptions } from '#types';\n\nexport * from './meta';\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Plugin } from '@dxos/app-framework';\nimport { trim } from '@dxos/util';\n\nexport const meta: Plugin.Meta = {\n id: 'org.dxos.plugin.debug',\n name: 'Debug',\n description: trim`\n Comprehensive developer toolkit for troubleshooting applications, generating test data, and exploring automation capabilities.\n Inspect objects, monitor events, and debug plugin behavior in real-time.\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};\n"],
|
|
5
|
-
"mappings": ";AAIA,SAASA,cAAc;;;ACCvB,SAASC,YAAY;AAEd,IAAMC,OAAoB;EAC/BC,IAAI;EACJC,MAAM;EACNC,aAAaJ;;;;EAIbK,MAAM;EACNC,QAAQ;EACRC,aAAa;IAAC;;AAChB;;;ADTO,IAAMC,cAAcC,OAAOC,KAAKC,MAAM,MAAM,OAAO,SAAA,CAAA;",
|
|
6
|
-
"names": ["Plugin", "trim", "meta", "id", "name", "description", "icon", "source", "screenshots", "DebugPlugin", "Plugin", "lazy", "meta"]
|
|
7
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"inputs":{"src/meta.ts":{"bytes":1948,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":998,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"#plugin","kind":"dynamic-import","external":true}],"format":"esm"},"src/translations.ts":{"bytes":11305,"imports":[{"path":"@dxos/react-ui-introspect/translations","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"}},"outputs":{"dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1376},"dist/lib/browser/index.mjs":{"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"#plugin","kind":"dynamic-import","external":true}],"exports":["DebugPlugin","meta"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":108},"src/meta.ts":{"bytesInOutput":521}},"bytes":747},"dist/lib/browser/translations.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":5100},"dist/lib/browser/translations.mjs":{"imports":[{"path":"@dxos/react-ui-introspect/translations","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"exports":["translations"],"entryPoint":"src/translations.ts","inputs":{"src/translations.ts":{"bytesInOutput":3730}},"bytes":3822}}}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/translations.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Resource } from '@dxos/react-ui';\nimport { translations as introspectTranslations } from '@dxos/react-ui-introspect/translations';\n\nimport { meta } from '#meta';\n\nexport const translations = [\n ...introspectTranslations,\n {\n 'en-US': {\n [meta.id]: {\n 'plugin.name': 'Debug',\n 'settings.title': 'Debug settings',\n 'open-devtools.label': 'Open DevTools',\n 'devtools.label': 'DevTools',\n 'devtools-overview.label': 'Stats',\n 'space-objects.label': 'Database',\n 'debug.label': 'Debug',\n 'generate-objects.label': 'Generate Objects',\n 'debug-app-graph.label': 'App Graph',\n 'debug-tools-explorer.label': 'Tools Explorer',\n\n 'settings.wireframe.label': 'Show wireframes.',\n 'settings.wireframe.description': 'Overlay wireframe outlines on UI components for debugging layout.',\n 'settings.trace-all.label': 'Trace all requests (100% sampling).',\n 'settings.trace-all.description':\n 'Override the default 30% sampling rate to capture all traces. Requires page reload to take effect.',\n 'settings.tracing-panel.label': 'Open tracing panel.',\n 'settings.tracing-panel.description': 'Open the tracing dashboard to inspect captured spans.',\n 'settings.repair.label': 'Run repair tool.',\n 'settings.repair.description': 'Attempt to detect and fix inconsistencies in local data storage.',\n 'settings.download-diagnostics.label': 'Download diagnostics.',\n 'settings.download-diagnostics.description':\n 'Export a JSON file containing client diagnostics for troubleshooting.',\n 'settings.download-logs.label': 'Download log buffer.',\n 'settings.download-logs.description': 'Export the in-memory log buffer as an NDJSON file.',\n 'settings.uploaded.message': 'Settings uploaded.',\n 'settings.uploaded.description': 'URL copied to clipboard.',\n 'settings.choose-storage-adaptor.label': 'Storage adaptor (worker reload required).',\n 'settings.choose-storage-adaptor.description':\n 'Select the browser storage backend. Changing this requires a worker reload and may make existing data unavailable.',\n 'settings.repair-success.message': 'Repair succeeded',\n 'settings.repair-failed.message': 'Repair failed',\n\n 'settings.storage-adaptor.idb.label': 'IndexedDB',\n 'settings.storage-adaptor.opfs.label': 'OPFS',\n 'settings.storage-adapter.changed-alert.message':\n 'Warning: Swapping the storage adapter will make your data unavailable.',\n\n 'settings.data-store.label': 'Data Store',\n\n 'open-debug-panel.label': 'Show Debug',\n 'client.label': 'Client',\n 'config.label': 'Config',\n 'storage.label': 'Storage',\n 'logs.label': 'Logs',\n 'diagnostics.label': 'Diagnostics',\n 'tracing.label': 'Tracing',\n 'halo.label': 'HALO',\n 'identity.label': 'Identity',\n 'devices.label': 'Devices',\n 'keyring.label': 'Keyring',\n 'credentials.label': 'Credentials',\n 'echo.label': 'ECHO',\n 'spaces.label': 'Spaces',\n 'space.label': 'Space',\n 'feeds.label': 'Feeds',\n 'objects.label': 'Objects',\n 'schema.label': 'Schema',\n 'automerge.label': 'Automerge',\n 'queues.label': 'Queues',\n 'members.label': 'Members',\n 'metadata.label': 'Metadata',\n 'mesh.label': 'MESH',\n 'signal.label': 'Signal',\n 'swarm.label': 'Swarm',\n 'network.label': 'Network',\n 'agent.label': 'Agent',\n 'dashboard.label': 'Dashboard',\n 'search.label': 'Search',\n 'edge.label': 'EDGE',\n 'workflows.label': 'Workflows',\n 'traces.label': 'Traces',\n 'testing.label': 'Testing',\n },\n },\n },\n] as const satisfies Resource[];\n"],
|
|
5
|
-
"mappings": ";AAKA,SAASA,gBAAgBC,8BAA8B;AAEvD,SAASC,YAAY;AAEd,IAAMF,eAAe;KACvBC;EACH;IACE,SAAS;MACP,CAACC,KAAKC,EAAE,GAAG;QACT,eAAe;QACf,kBAAkB;QAClB,uBAAuB;QACvB,kBAAkB;QAClB,2BAA2B;QAC3B,uBAAuB;QACvB,eAAe;QACf,0BAA0B;QAC1B,yBAAyB;QACzB,8BAA8B;QAE9B,4BAA4B;QAC5B,kCAAkC;QAClC,4BAA4B;QAC5B,kCACE;QACF,gCAAgC;QAChC,sCAAsC;QACtC,yBAAyB;QACzB,+BAA+B;QAC/B,uCAAuC;QACvC,6CACE;QACF,gCAAgC;QAChC,sCAAsC;QACtC,6BAA6B;QAC7B,iCAAiC;QACjC,yCAAyC;QACzC,+CACE;QACF,mCAAmC;QACnC,kCAAkC;QAElC,sCAAsC;QACtC,uCAAuC;QACvC,kDACE;QAEF,6BAA6B;QAE7B,0BAA0B;QAC1B,gBAAgB;QAChB,gBAAgB;QAChB,iBAAiB;QACjB,cAAc;QACd,qBAAqB;QACrB,iBAAiB;QACjB,cAAc;QACd,kBAAkB;QAClB,iBAAiB;QACjB,iBAAiB;QACjB,qBAAqB;QACrB,cAAc;QACd,gBAAgB;QAChB,eAAe;QACf,eAAe;QACf,iBAAiB;QACjB,gBAAgB;QAChB,mBAAmB;QACnB,gBAAgB;QAChB,iBAAiB;QACjB,kBAAkB;QAClB,cAAc;QACd,gBAAgB;QAChB,eAAe;QACf,iBAAiB;QACjB,eAAe;QACf,mBAAmB;QACnB,gBAAgB;QAChB,cAAc;QACd,mBAAmB;QACnB,gBAAgB;QAChB,iBAAiB;MACnB;IACF;EACF;;",
|
|
6
|
-
"names": ["translations", "introspectTranslations", "meta", "id"]
|
|
7
|
-
}
|