@alloy-js/core 0.23.0-dev.10 → 0.23.0-dev.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/devtools/index.html +29 -17
- package/dist/src/binder.d.ts.map +1 -1
- package/dist/src/binder.js +5 -0
- package/dist/src/binder.js.map +1 -1
- package/dist/src/components/For.d.ts.map +1 -1
- package/dist/src/components/For.js +1 -1
- package/dist/src/components/For.js.map +1 -1
- package/dist/src/components/List.d.ts.map +1 -1
- package/dist/src/components/List.js +1 -1
- package/dist/src/components/List.js.map +1 -1
- package/dist/src/components/Switch.d.ts.map +1 -1
- package/dist/src/components/Switch.js +1 -1
- package/dist/src/components/Switch.js.map +1 -1
- package/dist/src/debug/diagnostics.test.js +3 -2
- package/dist/src/debug/diagnostics.test.js.map +1 -1
- package/dist/src/debug/effects.d.ts +12 -4
- package/dist/src/debug/effects.d.ts.map +1 -1
- package/dist/src/debug/effects.js +182 -52
- package/dist/src/debug/effects.js.map +1 -1
- package/dist/src/debug/effects.test.js +213 -41
- package/dist/src/debug/effects.test.js.map +1 -1
- package/dist/src/debug/files.d.ts.map +1 -1
- package/dist/src/debug/files.js +7 -18
- package/dist/src/debug/files.js.map +1 -1
- package/dist/src/debug/files.test.js +13 -36
- package/dist/src/debug/files.test.js.map +1 -1
- package/dist/src/debug/index.d.ts +4 -2
- package/dist/src/debug/index.d.ts.map +1 -1
- package/dist/src/debug/index.js +4 -2
- package/dist/src/debug/index.js.map +1 -1
- package/dist/src/debug/message-format.test.d.ts +2 -0
- package/dist/src/debug/message-format.test.d.ts.map +1 -0
- package/dist/src/debug/message-format.test.js +700 -0
- package/dist/src/debug/message-format.test.js.map +1 -0
- package/dist/src/debug/render-tree-orphans.test.d.ts +2 -0
- package/dist/src/debug/render-tree-orphans.test.d.ts.map +1 -0
- package/dist/src/debug/render-tree-orphans.test.js +297 -0
- package/dist/src/debug/render-tree-orphans.test.js.map +1 -0
- package/dist/src/debug/render.d.ts.map +1 -1
- package/dist/src/debug/render.js +83 -130
- package/dist/src/debug/render.js.map +1 -1
- package/dist/src/debug/render.test.js +91 -128
- package/dist/src/debug/render.test.js.map +1 -1
- package/dist/src/debug/symbols.d.ts +6 -5
- package/dist/src/debug/symbols.d.ts.map +1 -1
- package/dist/src/debug/symbols.js +46 -23
- package/dist/src/debug/symbols.js.map +1 -1
- package/dist/src/debug/symbols.test.js +15 -26
- package/dist/src/debug/symbols.test.js.map +1 -1
- package/dist/src/debug/trace-writer.d.ts +55 -0
- package/dist/src/debug/trace-writer.d.ts.map +1 -0
- package/dist/src/debug/trace-writer.js +658 -0
- package/dist/src/debug/trace-writer.js.map +1 -0
- package/dist/src/debug/trace.d.ts +10 -10
- package/dist/src/debug/trace.d.ts.map +1 -1
- package/dist/src/debug/trace.js +23 -20
- package/dist/src/debug/trace.js.map +1 -1
- package/dist/src/devtools/devtools-protocol.d.ts +318 -161
- package/dist/src/devtools/devtools-protocol.d.ts.map +1 -1
- package/dist/src/devtools/devtools-server.browser.d.ts +0 -5
- package/dist/src/devtools/devtools-server.browser.d.ts.map +1 -1
- package/dist/src/devtools/devtools-server.browser.js +0 -3
- package/dist/src/devtools/devtools-server.browser.js.map +1 -1
- package/dist/src/devtools/devtools-server.d.ts +0 -6
- package/dist/src/devtools/devtools-server.d.ts.map +1 -1
- package/dist/src/devtools/devtools-server.js +212 -24
- package/dist/src/devtools/devtools-server.js.map +1 -1
- package/dist/src/devtools/devtools-transport.d.ts +2 -2
- package/dist/src/devtools/devtools-transport.d.ts.map +1 -1
- package/dist/src/devtools/devtools-transport.js +2 -2
- package/dist/src/devtools/devtools-transport.js.map +1 -1
- package/dist/src/devtools-entry.browser.d.ts +1 -1
- package/dist/src/devtools-entry.browser.d.ts.map +1 -1
- package/dist/src/devtools-entry.browser.js.map +1 -1
- package/dist/src/devtools-entry.d.ts +1 -1
- package/dist/src/devtools-entry.d.ts.map +1 -1
- package/dist/src/devtools-entry.js.map +1 -1
- package/dist/src/diagnostics.d.ts.map +1 -1
- package/dist/src/diagnostics.js +5 -5
- package/dist/src/diagnostics.js.map +1 -1
- package/dist/src/reactivity.d.ts +13 -2
- package/dist/src/reactivity.d.ts.map +1 -1
- package/dist/src/reactivity.js +96 -13
- package/dist/src/reactivity.js.map +1 -1
- package/dist/src/render.d.ts.map +1 -1
- package/dist/src/render.js +84 -30
- package/dist/src/render.js.map +1 -1
- package/dist/src/scheduler.d.ts +5 -0
- package/dist/src/scheduler.d.ts.map +1 -1
- package/dist/src/scheduler.js +94 -23
- package/dist/src/scheduler.js.map +1 -1
- package/dist/src/utils.d.ts.map +1 -1
- package/dist/src/utils.js +11 -5
- package/dist/src/utils.js.map +1 -1
- package/dist/testing/devtools-utils.d.ts +12 -3
- package/dist/testing/devtools-utils.d.ts.map +1 -1
- package/dist/testing/devtools-utils.js +26 -4
- package/dist/testing/devtools-utils.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/binder.ts +47 -38
- package/src/components/For.tsx +14 -10
- package/src/components/List.tsx +7 -4
- package/src/components/Switch.tsx +11 -7
- package/src/debug/diagnostics.test.tsx +3 -2
- package/src/debug/effects.test.tsx +248 -36
- package/src/debug/effects.ts +276 -62
- package/src/debug/files.test.tsx +15 -35
- package/src/debug/files.ts +11 -11
- package/src/debug/index.ts +4 -0
- package/src/debug/message-format.test.tsx +759 -0
- package/src/debug/render-tree-orphans.test.tsx +344 -0
- package/src/debug/render.test.tsx +96 -118
- package/src/debug/render.ts +183 -124
- package/src/debug/symbols.test.tsx +19 -20
- package/src/debug/symbols.ts +106 -23
- package/src/debug/trace-writer.ts +969 -0
- package/src/debug/trace.ts +25 -28
- package/src/devtools/devtools-protocol.ts +361 -176
- package/src/devtools/devtools-server.browser.ts +0 -9
- package/src/devtools/devtools-server.ts +210 -32
- package/src/devtools/devtools-transport.ts +4 -4
- package/src/devtools-entry.browser.ts +11 -15
- package/src/devtools-entry.ts +9 -15
- package/src/diagnostics.ts +14 -5
- package/src/reactivity.ts +113 -17
- package/src/render.ts +104 -30
- package/src/scheduler.ts +145 -26
- package/src/utils.tsx +7 -4
- package/temp/api.json +142 -20
- package/testing/devtools-utils.ts +46 -4
|
@@ -1,225 +1,382 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
2
|
+
* Alloy Devtools Protocol
|
|
3
|
+
* =======================
|
|
4
|
+
*
|
|
5
|
+
* Communication protocol between the Alloy debug runtime (core) and the
|
|
6
|
+
* devtools UI client, transported over WebSocket.
|
|
7
|
+
*
|
|
8
|
+
* Message shapes are flat snake_case objects that mirror the SQLite trace-writer
|
|
9
|
+
* row shapes so no format translation is needed on the wire.
|
|
10
|
+
*
|
|
11
|
+
* ─── IDs ─────────────────────────────────────────────────────────────────────
|
|
12
|
+
*
|
|
13
|
+
* All entity IDs (effects, refs, reactive-property refs, non-ref targets)
|
|
14
|
+
* are positive monotonically increasing integers drawn from their respective
|
|
15
|
+
* counters. Ref IDs and reactive-property IDs share a single counter so
|
|
16
|
+
* they never collide. There are no negative or sentinel IDs.
|
|
17
|
+
*
|
|
18
|
+
* ─── Effects ─────────────────────────────────────────────────────────────────
|
|
19
|
+
*
|
|
20
|
+
* An effect is any reactive computation tracked by Alloy's reactivity system.
|
|
21
|
+
*
|
|
22
|
+
* name Human-readable label. Format varies:
|
|
23
|
+
* "render:ComponentName" — render effect for a component
|
|
24
|
+
* "memo:For" — memo inside a For component
|
|
25
|
+
* "memo:props.children" — memo from JSX expression
|
|
26
|
+
* "binder:notifySymbolCreated" — binder infrastructure
|
|
27
|
+
* "myCallback" — user effect from fn.name
|
|
28
|
+
* For memos created by JSX expression tracking, the babel plugin
|
|
29
|
+
* generates a description of the expression (e.g. "props.foo").
|
|
30
|
+
*
|
|
31
|
+
* effect_type Optional effect category string. Set by framework code via
|
|
32
|
+
* the debug options on effect(). Values include "render",
|
|
33
|
+
* "content", "context", "resource", "binder", "list", "symbol",
|
|
34
|
+
* "collection", etc. null when no category was assigned (common
|
|
35
|
+
* for memos and user-created effects). Useful for display and
|
|
36
|
+
* grouping but NOT used for user-vs-external filtering.
|
|
37
|
+
*
|
|
38
|
+
* source_file / source_line / source_col
|
|
39
|
+
* Where the effect was created. Captured via V8 CallSite API
|
|
40
|
+
* with source map resolution (when --enable-source-maps is
|
|
41
|
+
* active). Points at the component or user code that called
|
|
42
|
+
* effect()/memo(), not the reactivity internals. May be null
|
|
43
|
+
* if the entire call stack is framework-internal.
|
|
44
|
+
*
|
|
45
|
+
* "User only" filtering:
|
|
46
|
+
* Based purely on source_file. An effect is "user code" when its
|
|
47
|
+
* source_file resolves to a path OUTSIDE node_modules (i.e. inside the
|
|
48
|
+
* user's project). Effects whose source_file is inside node_modules
|
|
49
|
+
* (including @alloy-js/* and any third-party library packages) or is
|
|
50
|
+
* null are "external" effects. The effect type and name are never used
|
|
51
|
+
* for this classification.
|
|
52
|
+
*
|
|
53
|
+
* ─── Refs ────────────────────────────────────────────────────────────────────
|
|
54
|
+
*
|
|
55
|
+
* A ref is any individually tracked reactive value. There are several kinds:
|
|
56
|
+
*
|
|
57
|
+
* kind="ref" Created by alloy's ref() wrapper.
|
|
58
|
+
* kind="shallowRef" Created by alloy's shallowRef() wrapper.
|
|
59
|
+
* kind="computed" Created by alloy's computed() wrapper.
|
|
60
|
+
* kind="reactive-property" A property of a reactive object, lazily
|
|
61
|
+
* registered on first track/trigger. Each
|
|
62
|
+
* (target, key) pair gets its own ref entry.
|
|
63
|
+
*
|
|
64
|
+
* Alloy wraps shallowReactive() to capture creation locations. Objects
|
|
65
|
+
* created via alloy's shallowReactive() wrapper have their creation site
|
|
66
|
+
* stored in a WeakMap. When a reactive-property ref is registered for such
|
|
67
|
+
* an object, the property ref inherits the shallowReactive() creation
|
|
68
|
+
* location. For objects using manual reactivity (e.g. OutputSymbol, which
|
|
69
|
+
* calls Vue's track()/trigger() directly on `this` rather than going through
|
|
70
|
+
* alloy's shallowReactive wrapper), the creation site is unknown and the
|
|
71
|
+
* first track/trigger site is used instead (flagged with is_approx_location).
|
|
72
|
+
*
|
|
73
|
+
* label Optional human-readable name. Takes priority over kind for
|
|
74
|
+
* display. Examples:
|
|
75
|
+
* "memo:For" — memo's internal ref
|
|
76
|
+
* "TSOutputSymbol \"Foo\".name" — reactive property
|
|
77
|
+
* When displaying, prefer: label ?? kind. The numeric ID is
|
|
78
|
+
* always shown separately as a dimmed suffix, never as part
|
|
79
|
+
* of the label text.
|
|
80
|
+
*
|
|
81
|
+
* is_infrastructure
|
|
82
|
+
* Boolean. True for refs created by framework internals that
|
|
83
|
+
* are implementation details (context.isEmpty, mapJoin index/
|
|
84
|
+
* joiner counters, devtools rerender tokens). These are not
|
|
85
|
+
* meaningful to end users and are always excluded in
|
|
86
|
+
* "user only" mode.
|
|
87
|
+
*
|
|
88
|
+
* is_approx_location
|
|
89
|
+
* Boolean. True when the source location was inferred from
|
|
90
|
+
* first usage rather than the actual creation site. Applies
|
|
91
|
+
* to reactive-property refs whose parent object was not
|
|
92
|
+
* created via alloy's shallowReactive() wrapper (e.g.
|
|
93
|
+
* OutputSymbol class instances with manual track/trigger).
|
|
94
|
+
* The UI should show a subtle indicator (e.g. a small muted
|
|
95
|
+
* icon with a tooltip), not a prominent warning.
|
|
96
|
+
*
|
|
97
|
+
* source_file / source_line / source_col
|
|
98
|
+
* Where the ref was created. For reactive-property refs from
|
|
99
|
+
* shallowReactive() objects, this is the shallowReactive()
|
|
100
|
+
* call site. For reactive-property refs from manual-reactivity
|
|
101
|
+
* objects, this is the first track site (is_approx_location=1).
|
|
102
|
+
* For regular refs/shallowRefs/computed, this is the call site
|
|
103
|
+
* with framework-internal stack frames skipped.
|
|
104
|
+
*
|
|
105
|
+
* "User only" filtering:
|
|
106
|
+
* A ref is "user code" when is_infrastructure is false AND source_file
|
|
107
|
+
* resolves to a path outside node_modules. Infrastructure refs are
|
|
108
|
+
* always excluded in user-only mode regardless of source location.
|
|
109
|
+
*
|
|
110
|
+
* ─── Edges ───────────────────────────────────────────────────────────────────
|
|
111
|
+
*
|
|
112
|
+
* Edges connect effects to refs via track/trigger relationships.
|
|
113
|
+
* ref_id points to a registered ref. target_id/target_key provide the
|
|
114
|
+
* raw reactive target info. For ref-backed edges, ref_id == target_id.
|
|
115
|
+
*
|
|
116
|
+
* ─── Source Location Resolution ──────────────────────────────────────────────
|
|
117
|
+
*
|
|
118
|
+
* Captured at entity creation time via V8's structured CallSite API.
|
|
119
|
+
* Framework-internal frames (reactivity engine, renderer, scheduler, debug
|
|
120
|
+
* infra) are skipped so the location points at the component or user code.
|
|
121
|
+
*
|
|
122
|
+
* When --enable-source-maps is active, paths and line numbers are resolved
|
|
123
|
+
* through source maps (.js → .ts). The server reports sourceMapEnabled in
|
|
124
|
+
* its handshake. Note: pnpm symlinks require realpathSync before
|
|
125
|
+
* findSourceMap lookup (Node's cache is keyed by real paths).
|
|
5
126
|
*/
|
|
6
127
|
import type { SourceLocation } from "../debug/effects.js";
|
|
7
128
|
export type { SourceLocation };
|
|
129
|
+
export interface DiagnosticRow {
|
|
130
|
+
message: string;
|
|
131
|
+
severity?: string;
|
|
132
|
+
source_file?: string;
|
|
133
|
+
source_line?: number;
|
|
134
|
+
source_col?: number;
|
|
135
|
+
component_stack?: string;
|
|
136
|
+
}
|
|
137
|
+
/** @deprecated Use flat fields on RenderNodeAddedMessage instead. */
|
|
8
138
|
export interface RenderTreeNode {
|
|
9
139
|
id: number;
|
|
10
|
-
kind:
|
|
140
|
+
kind: string;
|
|
11
141
|
name?: string;
|
|
12
142
|
propsSerialized?: string;
|
|
13
143
|
value?: string;
|
|
14
144
|
source?: SourceLocation;
|
|
15
145
|
}
|
|
16
|
-
|
|
17
|
-
id: number;
|
|
18
|
-
name?: string;
|
|
19
|
-
type?: string;
|
|
20
|
-
createdAt?: SourceLocation;
|
|
21
|
-
lastTriggeredByRefId?: number;
|
|
22
|
-
lastTriggeredAt?: SourceLocation;
|
|
23
|
-
}
|
|
24
|
-
export interface RefInfo {
|
|
25
|
-
id: number;
|
|
26
|
-
kind?: string;
|
|
27
|
-
createdAt?: SourceLocation;
|
|
28
|
-
createdByEffectId?: number;
|
|
29
|
-
}
|
|
30
|
-
export interface EffectEdgeInfo {
|
|
31
|
-
id: number;
|
|
32
|
-
type: "track" | "trigger" | "triggered-by";
|
|
33
|
-
effectId: number;
|
|
34
|
-
refId?: number;
|
|
35
|
-
targetId?: number;
|
|
36
|
-
targetKind?: "ref" | "target";
|
|
37
|
-
targetLabel?: string;
|
|
38
|
-
targetKey?: string | number;
|
|
39
|
-
location?: SourceLocation;
|
|
40
|
-
count?: number;
|
|
41
|
-
}
|
|
42
|
-
export interface ScopeInfo {
|
|
43
|
-
id: number;
|
|
44
|
-
name: string;
|
|
45
|
-
parentId: number | null;
|
|
46
|
-
ownerSymbolId: number | null;
|
|
47
|
-
renderNodeId?: number | null;
|
|
48
|
-
isMemberScope: boolean;
|
|
49
|
-
isTransient?: boolean;
|
|
50
|
-
metadata?: Record<string, unknown>;
|
|
51
|
-
debugInfo?: Record<string, unknown>;
|
|
52
|
-
children?: Array<{
|
|
53
|
-
id: number;
|
|
54
|
-
name?: string;
|
|
55
|
-
}>;
|
|
56
|
-
spaces?: Array<{
|
|
57
|
-
key: string;
|
|
58
|
-
symbols: Array<{
|
|
59
|
-
id: number;
|
|
60
|
-
name?: string;
|
|
61
|
-
}>;
|
|
62
|
-
}>;
|
|
63
|
-
}
|
|
64
|
-
export interface SymbolInfo {
|
|
65
|
-
id: number;
|
|
66
|
-
name: string;
|
|
67
|
-
originalName: string;
|
|
68
|
-
scopeId: number | null;
|
|
69
|
-
ownerSymbolId: number | null;
|
|
70
|
-
renderNodeId?: number | null;
|
|
71
|
-
isMemberSymbol: boolean;
|
|
72
|
-
isTransient: boolean;
|
|
73
|
-
isAlias: boolean;
|
|
74
|
-
movedToId: number | null;
|
|
75
|
-
metadata?: Record<string, unknown>;
|
|
76
|
-
debugInfo?: Record<string, unknown>;
|
|
77
|
-
memberSpaces?: Array<{
|
|
78
|
-
key: string;
|
|
79
|
-
symbols: Array<{
|
|
80
|
-
id: number;
|
|
81
|
-
name?: string;
|
|
82
|
-
}>;
|
|
83
|
-
}>;
|
|
84
|
-
}
|
|
146
|
+
/** @deprecated Use flat fields on RenderErrorMessage instead. */
|
|
85
147
|
export interface RenderErrorStackEntry {
|
|
86
148
|
name: string;
|
|
87
149
|
propsSerialized?: string;
|
|
88
150
|
renderNodeId?: number;
|
|
89
151
|
source?: SourceLocation;
|
|
90
152
|
}
|
|
91
|
-
export interface DiagnosticInfo {
|
|
92
|
-
id: string;
|
|
93
|
-
message: string;
|
|
94
|
-
severity: string;
|
|
95
|
-
source?: SourceLocation;
|
|
96
|
-
componentStack?: Array<{
|
|
97
|
-
name: string;
|
|
98
|
-
renderNodeId?: number;
|
|
99
|
-
source?: SourceLocation;
|
|
100
|
-
}>;
|
|
101
|
-
}
|
|
102
153
|
export interface DebuggerInfoMessage {
|
|
103
154
|
type: "debugger:info";
|
|
104
155
|
version: string;
|
|
105
156
|
cwd?: string;
|
|
157
|
+
sourceMapEnabled: boolean;
|
|
106
158
|
}
|
|
107
159
|
export interface RenderResetMessage {
|
|
108
160
|
type: "render:reset";
|
|
109
161
|
}
|
|
110
162
|
export interface RenderNodeAddedMessage {
|
|
111
|
-
type: "render:
|
|
112
|
-
|
|
113
|
-
|
|
163
|
+
type: "render:node_added";
|
|
164
|
+
id: number;
|
|
165
|
+
parent_id: number | null;
|
|
166
|
+
kind: string;
|
|
167
|
+
name?: string;
|
|
168
|
+
props?: string;
|
|
169
|
+
value?: string;
|
|
170
|
+
source_file?: string;
|
|
171
|
+
source_line?: number;
|
|
172
|
+
source_col?: number;
|
|
173
|
+
context_id?: number | null;
|
|
174
|
+
seq: number;
|
|
114
175
|
}
|
|
115
176
|
export interface RenderNodeUpdatedMessage {
|
|
116
|
-
type: "render:
|
|
177
|
+
type: "render:node_updated";
|
|
117
178
|
id: number;
|
|
118
|
-
|
|
179
|
+
props?: string;
|
|
119
180
|
}
|
|
120
181
|
export interface RenderNodeRemovedMessage {
|
|
121
|
-
type: "render:
|
|
122
|
-
parentId: number | null;
|
|
182
|
+
type: "render:node_removed";
|
|
123
183
|
id: number;
|
|
124
|
-
name?: string;
|
|
125
184
|
}
|
|
126
185
|
export interface RenderErrorMessage {
|
|
127
186
|
type: "render:error";
|
|
128
|
-
id: number;
|
|
129
187
|
name?: string;
|
|
130
188
|
message?: string;
|
|
131
189
|
stack?: string;
|
|
132
|
-
|
|
190
|
+
component_stack?: string;
|
|
191
|
+
seq: number;
|
|
133
192
|
}
|
|
134
193
|
export interface RenderCompleteMessage {
|
|
135
194
|
type: "render:complete";
|
|
136
195
|
}
|
|
137
196
|
export interface FlushJobsCompleteMessage {
|
|
138
|
-
type: "
|
|
139
|
-
}
|
|
140
|
-
export interface DirectoryAddedMessage {
|
|
141
|
-
type: "files:directoryAdded";
|
|
142
|
-
path: string;
|
|
143
|
-
}
|
|
144
|
-
export interface DirectoryRemovedMessage {
|
|
145
|
-
type: "files:directoryRemoved";
|
|
146
|
-
path: string;
|
|
147
|
-
}
|
|
148
|
-
export interface FileAddedMessage {
|
|
149
|
-
type: "files:fileAdded";
|
|
150
|
-
path: string;
|
|
151
|
-
filetype: string;
|
|
152
|
-
renderNodeId?: number;
|
|
153
|
-
}
|
|
154
|
-
export interface FileRemovedMessage {
|
|
155
|
-
type: "files:fileRemoved";
|
|
156
|
-
path: string;
|
|
157
|
-
}
|
|
158
|
-
export interface FileUpdatedMessage {
|
|
159
|
-
type: "files:fileUpdated";
|
|
160
|
-
path: string;
|
|
161
|
-
filetype: string;
|
|
162
|
-
contents: string;
|
|
197
|
+
type: "flush:complete";
|
|
163
198
|
}
|
|
164
|
-
export interface
|
|
165
|
-
type: "
|
|
166
|
-
|
|
199
|
+
export interface EffectAddedMessage {
|
|
200
|
+
type: "effect:added";
|
|
201
|
+
id: number;
|
|
202
|
+
name?: string;
|
|
203
|
+
effect_type?: string;
|
|
204
|
+
context_id?: number | null;
|
|
205
|
+
owner_context_id?: number | null;
|
|
206
|
+
component?: string;
|
|
207
|
+
source_file?: string;
|
|
208
|
+
source_line?: number;
|
|
209
|
+
source_col?: number;
|
|
210
|
+
source_package?: string;
|
|
211
|
+
is_infrastructure?: number;
|
|
212
|
+
seq: number;
|
|
167
213
|
}
|
|
168
|
-
export interface
|
|
169
|
-
type: "
|
|
170
|
-
|
|
214
|
+
export interface EffectUpdatedMessage {
|
|
215
|
+
type: "effect:updated";
|
|
216
|
+
id: number;
|
|
217
|
+
name?: string;
|
|
218
|
+
effect_type?: string;
|
|
219
|
+
context_id?: number | null;
|
|
220
|
+
owner_context_id?: number | null;
|
|
221
|
+
component?: string;
|
|
222
|
+
source_file?: string;
|
|
223
|
+
source_line?: number;
|
|
224
|
+
source_col?: number;
|
|
225
|
+
source_package?: string;
|
|
226
|
+
is_infrastructure?: number;
|
|
227
|
+
seq: number;
|
|
171
228
|
}
|
|
172
|
-
export interface
|
|
173
|
-
type: "
|
|
229
|
+
export interface RefAddedMessage {
|
|
230
|
+
type: "ref:added";
|
|
174
231
|
id: number;
|
|
232
|
+
kind?: string;
|
|
233
|
+
label?: string;
|
|
234
|
+
created_by_effect_id?: number;
|
|
235
|
+
source_file?: string;
|
|
236
|
+
source_line?: number;
|
|
237
|
+
source_col?: number;
|
|
238
|
+
source_package?: string;
|
|
239
|
+
is_approx_location?: number;
|
|
240
|
+
seq: number;
|
|
175
241
|
}
|
|
176
|
-
export interface
|
|
177
|
-
type: "
|
|
178
|
-
|
|
242
|
+
export interface EffectTrackMessage {
|
|
243
|
+
type: "edge:track";
|
|
244
|
+
seq: number;
|
|
245
|
+
effect_id: number;
|
|
246
|
+
ref_id?: number;
|
|
247
|
+
target_id?: number;
|
|
248
|
+
target_kind?: string;
|
|
249
|
+
target_label?: string;
|
|
250
|
+
target_key?: string;
|
|
179
251
|
}
|
|
180
|
-
export interface
|
|
181
|
-
type: "
|
|
182
|
-
|
|
252
|
+
export interface EffectTriggerMessage {
|
|
253
|
+
type: "edge:trigger";
|
|
254
|
+
seq: number;
|
|
255
|
+
effect_id: number;
|
|
256
|
+
caused_by?: number;
|
|
257
|
+
ref_id?: number;
|
|
258
|
+
target_id?: number;
|
|
259
|
+
target_kind?: string;
|
|
260
|
+
target_label?: string;
|
|
261
|
+
target_key?: string;
|
|
183
262
|
}
|
|
184
|
-
export interface
|
|
185
|
-
type: "
|
|
263
|
+
export interface EffectEdgeUpdatedMessage {
|
|
264
|
+
type: "edge:updated";
|
|
265
|
+
seq: number;
|
|
266
|
+
effect_id: number;
|
|
267
|
+
caused_by?: number;
|
|
268
|
+
ref_id?: number;
|
|
269
|
+
target_id?: number;
|
|
270
|
+
target_kind?: string;
|
|
271
|
+
target_label?: string;
|
|
272
|
+
target_key?: string;
|
|
273
|
+
}
|
|
274
|
+
export interface EffectLifecycleMessage {
|
|
275
|
+
type: "effect:lifecycle";
|
|
276
|
+
seq: number;
|
|
277
|
+
effect_id: number;
|
|
278
|
+
event: string;
|
|
279
|
+
trigger_ref_id?: number;
|
|
280
|
+
}
|
|
281
|
+
export interface ScopeAddedMessage {
|
|
282
|
+
type: "scope:added";
|
|
283
|
+
id: number;
|
|
284
|
+
name: string;
|
|
285
|
+
parent_id?: number | null;
|
|
286
|
+
owner_symbol_id?: number | null;
|
|
287
|
+
render_node_id?: number | null;
|
|
288
|
+
is_member_scope?: number;
|
|
289
|
+
is_transient?: number;
|
|
290
|
+
metadata?: string;
|
|
291
|
+
seq: number;
|
|
292
|
+
}
|
|
293
|
+
export interface ScopeUpdatedMessage {
|
|
294
|
+
type: "scope:updated";
|
|
295
|
+
id: number;
|
|
296
|
+
name: string;
|
|
297
|
+
parent_id?: number | null;
|
|
298
|
+
owner_symbol_id?: number | null;
|
|
299
|
+
render_node_id?: number | null;
|
|
300
|
+
is_member_scope?: number;
|
|
301
|
+
is_transient?: number;
|
|
302
|
+
metadata?: string;
|
|
303
|
+
seq: number;
|
|
304
|
+
}
|
|
305
|
+
export interface ScopeRemovedMessage {
|
|
306
|
+
type: "scope:removed";
|
|
186
307
|
id: number;
|
|
187
308
|
}
|
|
188
|
-
export interface
|
|
189
|
-
type: "
|
|
190
|
-
|
|
309
|
+
export interface SymbolAddedMessage {
|
|
310
|
+
type: "symbol:added";
|
|
311
|
+
id: number;
|
|
312
|
+
name: string;
|
|
313
|
+
original_name?: string;
|
|
314
|
+
scope_id?: number | null;
|
|
315
|
+
owner_symbol_id?: number | null;
|
|
316
|
+
render_node_id?: number | null;
|
|
317
|
+
is_member?: number;
|
|
318
|
+
is_transient?: number;
|
|
319
|
+
is_alias?: number;
|
|
320
|
+
moved_to_id?: number | null;
|
|
321
|
+
metadata?: string;
|
|
322
|
+
seq: number;
|
|
323
|
+
}
|
|
324
|
+
export interface SymbolUpdatedMessage {
|
|
325
|
+
type: "symbol:updated";
|
|
326
|
+
id: number;
|
|
327
|
+
name: string;
|
|
328
|
+
original_name?: string;
|
|
329
|
+
scope_id?: number | null;
|
|
330
|
+
owner_symbol_id?: number | null;
|
|
331
|
+
render_node_id?: number | null;
|
|
332
|
+
is_member?: number;
|
|
333
|
+
is_transient?: number;
|
|
334
|
+
is_alias?: number;
|
|
335
|
+
moved_to_id?: number | null;
|
|
336
|
+
metadata?: string;
|
|
337
|
+
seq: number;
|
|
338
|
+
}
|
|
339
|
+
export interface SymbolRemovedMessage {
|
|
340
|
+
type: "symbol:removed";
|
|
341
|
+
id: number;
|
|
191
342
|
}
|
|
192
|
-
export interface
|
|
193
|
-
type: "
|
|
194
|
-
|
|
343
|
+
export interface FileAddedMessage {
|
|
344
|
+
type: "file:added";
|
|
345
|
+
path: string;
|
|
346
|
+
filetype?: string;
|
|
347
|
+
render_node_id?: number;
|
|
348
|
+
seq: number;
|
|
195
349
|
}
|
|
196
|
-
export interface
|
|
197
|
-
type: "
|
|
198
|
-
|
|
350
|
+
export interface FileUpdatedMessage {
|
|
351
|
+
type: "file:updated";
|
|
352
|
+
path: string;
|
|
353
|
+
content?: string;
|
|
199
354
|
}
|
|
200
|
-
export interface
|
|
201
|
-
type: "
|
|
202
|
-
|
|
203
|
-
message?: string;
|
|
355
|
+
export interface FileRemovedMessage {
|
|
356
|
+
type: "file:removed";
|
|
357
|
+
path: string;
|
|
204
358
|
}
|
|
205
|
-
export interface
|
|
206
|
-
type: "
|
|
207
|
-
|
|
208
|
-
message?: string;
|
|
359
|
+
export interface DirectoryAddedMessage {
|
|
360
|
+
type: "directory:added";
|
|
361
|
+
path: string;
|
|
209
362
|
}
|
|
210
|
-
export interface
|
|
211
|
-
type: "
|
|
212
|
-
|
|
363
|
+
export interface DirectoryRemovedMessage {
|
|
364
|
+
type: "directory:removed";
|
|
365
|
+
path: string;
|
|
213
366
|
}
|
|
214
367
|
export interface DiagnosticsReportMessage {
|
|
215
368
|
type: "diagnostics:report";
|
|
216
|
-
diagnostics:
|
|
369
|
+
diagnostics: DiagnosticRow[];
|
|
370
|
+
}
|
|
371
|
+
export type ServerToClientMessage = DebuggerInfoMessage | RenderResetMessage | RenderNodeAddedMessage | RenderNodeUpdatedMessage | RenderNodeRemovedMessage | RenderErrorMessage | RenderCompleteMessage | FlushJobsCompleteMessage | EffectAddedMessage | EffectUpdatedMessage | RefAddedMessage | EffectTrackMessage | EffectTriggerMessage | EffectEdgeUpdatedMessage | EffectLifecycleMessage | ScopeAddedMessage | ScopeUpdatedMessage | ScopeRemovedMessage | SymbolAddedMessage | SymbolUpdatedMessage | SymbolRemovedMessage | FileAddedMessage | FileUpdatedMessage | FileRemovedMessage | DirectoryAddedMessage | DirectoryRemovedMessage | DiagnosticsReportMessage;
|
|
372
|
+
export interface SubscribeMessage {
|
|
373
|
+
type: "subscribe";
|
|
374
|
+
channels: string[];
|
|
217
375
|
}
|
|
218
|
-
export interface
|
|
219
|
-
type: "
|
|
220
|
-
|
|
376
|
+
export interface UnsubscribeMessage {
|
|
377
|
+
type: "unsubscribe";
|
|
378
|
+
channels: string[];
|
|
221
379
|
}
|
|
222
|
-
export type ServerToClientMessage = DebuggerInfoMessage | RenderResetMessage | RenderNodeAddedMessage | RenderNodeUpdatedMessage | RenderNodeRemovedMessage | RenderErrorMessage | RenderCompleteMessage | FlushJobsCompleteMessage | DirectoryAddedMessage | DirectoryRemovedMessage | FileAddedMessage | FileRemovedMessage | FileUpdatedMessage | ScopeCreateMessage | ScopeUpdateMessage | ScopeDeleteMessage | SymbolCreateMessage | SymbolUpdateMessage | SymbolDeleteMessage | EffectAddedMessage | EffectUpdatedMessage | RefAddedMessage | EffectTrackMessage | EffectTriggerMessage | EffectEdgeUpdatedMessage | DiagnosticsReportMessage | BatchMessage;
|
|
223
380
|
export interface RerenderRequestMessage {
|
|
224
381
|
type: "render:rerender";
|
|
225
382
|
id: number;
|
|
@@ -228,5 +385,5 @@ export interface RerenderBreakRequestMessage {
|
|
|
228
385
|
type: "render:rerenderAndBreak";
|
|
229
386
|
id: number;
|
|
230
387
|
}
|
|
231
|
-
export type ClientToServerMessage = RerenderRequestMessage | RerenderBreakRequestMessage;
|
|
388
|
+
export type ClientToServerMessage = SubscribeMessage | UnsubscribeMessage | RerenderRequestMessage | RerenderBreakRequestMessage;
|
|
232
389
|
//# sourceMappingURL=devtools-protocol.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"devtools-protocol.d.ts","sourceRoot":"","sources":["../../../src/devtools/devtools-protocol.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"devtools-protocol.d.ts","sourceRoot":"","sources":["../../../src/devtools/devtools-protocol.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6HG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE1D,YAAY,EAAE,cAAc,EAAE,CAAC;AAM/B,MAAM,WAAW,aAAa;IAC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wBAAwB,GACxB,kBAAkB,GAClB,oBAAoB,GACpB,eAAe,GACf,kBAAkB,GAClB,oBAAoB,GACpB,wBAAwB,GACxB,sBAAsB,GACtB,iBAAiB,GACjB,mBAAmB,GACnB,mBAAmB,GACnB,kBAAkB,GAClB,oBAAoB,GACpB,oBAAoB,GACpB,gBAAgB,GAChB,kBAAkB,GAClB,kBAAkB,GAClB,qBAAqB,GACrB,uBAAuB,GACvB,wBAAwB,CAAC;AAM7B,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,WAAW,CAAC;IAClB,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,aAAa,CAAC;IACpB,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,iBAAiB,CAAC;IACxB,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,2BAA2B;IAC1C,IAAI,EAAE,yBAAyB,CAAC;IAChC,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,MAAM,qBAAqB,GAC7B,gBAAgB,GAChB,kBAAkB,GAClB,sBAAsB,GACtB,2BAA2B,CAAC"}
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
export interface DevtoolsMessage {
|
|
2
|
-
type: string;
|
|
3
|
-
[key: string]: unknown;
|
|
4
|
-
}
|
|
5
1
|
export interface DevtoolsIncomingMessage {
|
|
6
2
|
type: string;
|
|
7
3
|
[key: string]: unknown;
|
|
@@ -18,7 +14,6 @@ export interface EnableDevtoolsOptions {
|
|
|
18
14
|
}
|
|
19
15
|
export declare function enableDevtools(_options?: EnableDevtoolsOptions): Promise<void>;
|
|
20
16
|
export declare function initDevtoolsIfEnabled(): Promise<void>;
|
|
21
|
-
export declare function broadcastDevtoolsMessage(_message: DevtoolsMessage): void;
|
|
22
17
|
export declare function registerDevtoolsMessageHandler(_handler: (message: DevtoolsIncomingMessage) => void): () => void;
|
|
23
18
|
export declare function assertDevtoolsConnectedForSyncRender(): void;
|
|
24
19
|
export declare function isDevtoolsConnected(): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"devtools-server.browser.d.ts","sourceRoot":"","sources":["../../../src/devtools/devtools-server.browser.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"devtools-server.browser.d.ts","sourceRoot":"","sources":["../../../src/devtools/devtools-server.browser.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,wBAAgB,iBAAiB,IAAI,OAAO,CAE3C;AAED,wBAAsB,yBAAyB,IAAI,OAAO,CAAC,IAAI,CAAC,CAE/D;AAED,MAAM,WAAW,qBAAqB;IACpC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,wBAAsB,cAAc,CAClC,QAAQ,CAAC,EAAE,qBAAqB,GAC/B,OAAO,CAAC,IAAI,CAAC,CAEf;AAED,wBAAsB,qBAAqB,IAAI,OAAO,CAAC,IAAI,CAAC,CAE3D;AAED,wBAAgB,8BAA8B,CAC5C,QAAQ,EAAE,CAAC,OAAO,EAAE,uBAAuB,KAAK,IAAI,GACnD,MAAM,IAAI,CAEZ;AAED,wBAAgB,oCAAoC,IAAI,IAAI,CAE3D;AAED,wBAAgB,mBAAmB,IAAI,OAAO,CAE7C;AAED,wBAAgB,qBAAqB,IAAI,kBAAkB,GAAG,IAAI,CAEjE;AAED,wBAAsB,wBAAwB,CAC5C,QAAQ,CAAC,EAAE,qBAAqB,GAC/B,OAAO,CAAC,kBAAkB,GAAG,IAAI,CAAC,CAEpC;AAED,wBAAsB,2BAA2B,IAAI,OAAO,CAAC,IAAI,CAAC,CAEjE"}
|
|
@@ -12,9 +12,6 @@ export async function enableDevtools(_options) {
|
|
|
12
12
|
export async function initDevtoolsIfEnabled() {
|
|
13
13
|
// No-op in browser
|
|
14
14
|
}
|
|
15
|
-
export function broadcastDevtoolsMessage(_message) {
|
|
16
|
-
// No-op in browser
|
|
17
|
-
}
|
|
18
15
|
export function registerDevtoolsMessageHandler(_handler) {
|
|
19
16
|
return () => {};
|
|
20
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["isDevtoolsEnabled","waitForDevtoolsConnection","enableDevtools","_options","initDevtoolsIfEnabled","
|
|
1
|
+
{"version":3,"names":["isDevtoolsEnabled","waitForDevtoolsConnection","enableDevtools","_options","initDevtoolsIfEnabled","registerDevtoolsMessageHandler","_handler","assertDevtoolsConnectedForSyncRender","isDevtoolsConnected","getDevtoolsServerInfo","enableDevtoolsAndConnect","resetDevtoolsServerForTests"],"sources":["../../../src/devtools/devtools-server.browser.ts"],"sourcesContent":[null],"mappings":"AAAA;;AAYA,OAAO,SAASA,iBAAiBA,CAAA,EAAY;EAC3C,OAAO,KAAK;AACd;AAEA,OAAO,eAAeC,yBAAyBA,CAAA,EAAkB;EAC/D;AAAA;AAQF,OAAO,eAAeC,cAAcA,CAClCC,QAAgC,EACjB;EACf;AAAA;AAGF,OAAO,eAAeC,qBAAqBA,CAAA,EAAkB;EAC3D;AAAA;AAGF,OAAO,SAASC,8BAA8BA,CAC5CC,QAAoD,EACxC;EACZ,OAAO,MAAM,CAAC,CAAC;AACjB;AAEA,OAAO,SAASC,oCAAoCA,CAAA,EAAS;EAC3D;AAAA;AAGF,OAAO,SAASC,mBAAmBA,CAAA,EAAY;EAC7C,OAAO,KAAK;AACd;AAEA,OAAO,SAASC,qBAAqBA,CAAA,EAA8B;EACjE,OAAO,IAAI;AACb;AAEA,OAAO,eAAeC,wBAAwBA,CAC5CP,QAAgC,EACI;EACpC,OAAO,IAAI;AACb;AAEA,OAAO,eAAeQ,2BAA2BA,CAAA,EAAkB;EACjE;AAAA","ignoreList":[]}
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
export interface DevtoolsMessage {
|
|
2
|
-
type: string;
|
|
3
|
-
[key: string]: unknown;
|
|
4
|
-
}
|
|
5
1
|
export interface DevtoolsIncomingMessage {
|
|
6
2
|
type: string;
|
|
7
3
|
[key: string]: unknown;
|
|
@@ -61,8 +57,6 @@ export declare function initDevtoolsIfEnabled(): Promise<void>;
|
|
|
61
57
|
* @returns Server info once a client has connected
|
|
62
58
|
*/
|
|
63
59
|
export declare function enableDevtoolsAndConnect(options?: EnableDevtoolsOptions): Promise<DevtoolsServerInfo>;
|
|
64
|
-
/** Broadcast a message to all connected devtools clients. */
|
|
65
|
-
export declare function broadcastDevtoolsMessage(message: DevtoolsMessage): void;
|
|
66
60
|
/** Register a handler for incoming devtools messages. Returns an unsubscribe function. */
|
|
67
61
|
export declare function registerDevtoolsMessageHandler(handler: (message: DevtoolsIncomingMessage) => void): () => boolean;
|
|
68
62
|
/** Throw if devtools are enabled but no client is connected (for sync render). */
|