@nuvio/shared 0.1.0 → 0.5.0

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.
Files changed (3) hide show
  1. package/dist/index.d.ts +1952 -75
  2. package/dist/index.js +142 -6
  3. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -4,24 +4,440 @@ import { z } from 'zod';
4
4
  declare const NUVIO_WS_PATH: "/__nuvio/ws";
5
5
 
6
6
  /** Bump when wire payloads change incompatibly. */
7
- declare const PROTOCOL_VERSION: 4;
7
+ declare const PROTOCOL_VERSION: 7;
8
+ declare const riskLevelSchema: z.ZodEnum<["safe", "caution", "unsupported"]>;
9
+ type RiskLevel = z.infer<typeof riskLevelSchema>;
10
+ /** Index v3: editable text node under an instrumented host (Step 1). */
11
+ declare const textTargetSchema: z.ZodObject<{
12
+ /** Stable within host: `data-nuvio-id` or `loc:line:column`. */
13
+ key: z.ZodString;
14
+ label: z.ZodString;
15
+ file: z.ZodString;
16
+ line: z.ZodNumber;
17
+ column: z.ZodNumber;
18
+ tagName: z.ZodString;
19
+ textEditable: z.ZodBoolean;
20
+ textPreview: z.ZodOptional<z.ZodString>;
21
+ /** Present when the text node has its own `data-nuvio-id`. */
22
+ nuvioId: z.ZodOptional<z.ZodString>;
23
+ /** Host id used for `mergeTailwindClassName` when patching styles for this target. */
24
+ patchHostId: z.ZodString;
25
+ insideMap: z.ZodOptional<z.ZodBoolean>;
26
+ }, "strip", z.ZodTypeAny, {
27
+ key: string;
28
+ label: string;
29
+ file: string;
30
+ line: number;
31
+ column: number;
32
+ tagName: string;
33
+ textEditable: boolean;
34
+ patchHostId: string;
35
+ textPreview?: string | undefined;
36
+ nuvioId?: string | undefined;
37
+ insideMap?: boolean | undefined;
38
+ }, {
39
+ key: string;
40
+ label: string;
41
+ file: string;
42
+ line: number;
43
+ column: number;
44
+ tagName: string;
45
+ textEditable: boolean;
46
+ patchHostId: string;
47
+ textPreview?: string | undefined;
48
+ nuvioId?: string | undefined;
49
+ insideMap?: boolean | undefined;
50
+ }>;
51
+ type TextWireTarget = z.infer<typeof textTargetSchema>;
52
+ /** Index v3: explicit style patch target under an instrumented host. */
53
+ declare const styleTargetSchema: z.ZodObject<{
54
+ /** Stable key within host: `data-nuvio-id` or `host` for selected container. */
55
+ key: z.ZodString;
56
+ label: z.ZodString;
57
+ file: z.ZodString;
58
+ line: z.ZodNumber;
59
+ column: z.ZodNumber;
60
+ tagName: z.ZodString;
61
+ nuvioId: z.ZodString;
62
+ patchHostId: z.ZodString;
63
+ classNamePatchable: z.ZodBoolean;
64
+ riskLevel: z.ZodOptional<z.ZodEnum<["safe", "caution", "unsupported"]>>;
65
+ }, "strip", z.ZodTypeAny, {
66
+ key: string;
67
+ label: string;
68
+ file: string;
69
+ line: number;
70
+ column: number;
71
+ tagName: string;
72
+ nuvioId: string;
73
+ patchHostId: string;
74
+ classNamePatchable: boolean;
75
+ riskLevel?: "safe" | "caution" | "unsupported" | undefined;
76
+ }, {
77
+ key: string;
78
+ label: string;
79
+ file: string;
80
+ line: number;
81
+ column: number;
82
+ tagName: string;
83
+ nuvioId: string;
84
+ patchHostId: string;
85
+ classNamePatchable: boolean;
86
+ riskLevel?: "safe" | "caution" | "unsupported" | undefined;
87
+ }>;
88
+ type StyleWireTarget = z.infer<typeof styleTargetSchema>;
89
+ declare const hierarchyRoleSchema: z.ZodEnum<["section", "card", "table", "form", "group", "layout", "text", "button", "input", "media", "unknown"]>;
90
+ /** Index v4: row host under a table section (`orders.row.{key}`). */
91
+ declare const rowTargetSchema: z.ZodObject<{
92
+ rowKey: z.ZodString;
93
+ nuvioId: z.ZodString;
94
+ label: z.ZodString;
95
+ file: z.ZodString;
96
+ line: z.ZodNumber;
97
+ }, "strip", z.ZodTypeAny, {
98
+ label: string;
99
+ file: string;
100
+ line: number;
101
+ nuvioId: string;
102
+ rowKey: string;
103
+ }, {
104
+ label: string;
105
+ file: string;
106
+ line: number;
107
+ nuvioId: string;
108
+ rowKey: string;
109
+ }>;
110
+ type RowWireTarget = z.infer<typeof rowTargetSchema>;
111
+ /** Index v4: static `tableData` binding for Tier C cell edits. */
112
+ declare const tableMetaSchema: z.ZodObject<{
113
+ dataBinding: z.ZodString;
114
+ file: z.ZodString;
115
+ line: z.ZodNumber;
116
+ columns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
117
+ }, "strip", z.ZodTypeAny, {
118
+ file: string;
119
+ line: number;
120
+ dataBinding: string;
121
+ columns?: string[] | undefined;
122
+ }, {
123
+ file: string;
124
+ line: number;
125
+ dataBinding: string;
126
+ columns?: string[] | undefined;
127
+ }>;
128
+ type TableMeta = z.infer<typeof tableMetaSchema>;
129
+ /** Index v4: patch cell copy via local array literal. */
130
+ declare const tableDataFieldSchema: z.ZodObject<{
131
+ arrayName: z.ZodString;
132
+ rowKey: z.ZodString;
133
+ field: z.ZodString;
134
+ }, "strip", z.ZodTypeAny, {
135
+ rowKey: string;
136
+ arrayName: string;
137
+ field: string;
138
+ }, {
139
+ rowKey: string;
140
+ arrayName: string;
141
+ field: string;
142
+ }>;
143
+ type TableDataFieldBinding = z.infer<typeof tableDataFieldSchema>;
144
+ type HierarchyRole = z.infer<typeof hierarchyRoleSchema>;
8
145
  declare const indexEntrySchema: z.ZodObject<{
9
146
  id: z.ZodString;
10
147
  file: z.ZodString;
11
148
  line: z.ZodNumber;
12
149
  column: z.ZodNumber;
150
+ /** Source index v2 metadata */
151
+ tagName: z.ZodOptional<z.ZodString>;
152
+ componentName: z.ZodOptional<z.ZodString>;
153
+ hasLiteralClassName: z.ZodOptional<z.ZodBoolean>;
154
+ classNameValue: z.ZodOptional<z.ZodString>;
155
+ textEditable: z.ZodOptional<z.ZodBoolean>;
156
+ structuralEditable: z.ZodOptional<z.ZodBoolean>;
157
+ riskLevel: z.ZodOptional<z.ZodEnum<["safe", "caution", "unsupported"]>>;
158
+ unsupportedReasons: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
159
+ insideMap: z.ZodOptional<z.ZodBoolean>;
160
+ /** Index v3: default id for className patches on this host. */
161
+ patchHostId: z.ZodOptional<z.ZodString>;
162
+ /** Index v3: preferred text target key in `textTargets`. */
163
+ primaryTextTargetKey: z.ZodOptional<z.ZodString>;
164
+ /** Index v3: descendant (and host) text edit targets. */
165
+ textTargets: z.ZodOptional<z.ZodArray<z.ZodObject<{
166
+ /** Stable within host: `data-nuvio-id` or `loc:line:column`. */
167
+ key: z.ZodString;
168
+ label: z.ZodString;
169
+ file: z.ZodString;
170
+ line: z.ZodNumber;
171
+ column: z.ZodNumber;
172
+ tagName: z.ZodString;
173
+ textEditable: z.ZodBoolean;
174
+ textPreview: z.ZodOptional<z.ZodString>;
175
+ /** Present when the text node has its own `data-nuvio-id`. */
176
+ nuvioId: z.ZodOptional<z.ZodString>;
177
+ /** Host id used for `mergeTailwindClassName` when patching styles for this target. */
178
+ patchHostId: z.ZodString;
179
+ insideMap: z.ZodOptional<z.ZodBoolean>;
180
+ }, "strip", z.ZodTypeAny, {
181
+ key: string;
182
+ label: string;
183
+ file: string;
184
+ line: number;
185
+ column: number;
186
+ tagName: string;
187
+ textEditable: boolean;
188
+ patchHostId: string;
189
+ textPreview?: string | undefined;
190
+ nuvioId?: string | undefined;
191
+ insideMap?: boolean | undefined;
192
+ }, {
193
+ key: string;
194
+ label: string;
195
+ file: string;
196
+ line: number;
197
+ column: number;
198
+ tagName: string;
199
+ textEditable: boolean;
200
+ patchHostId: string;
201
+ textPreview?: string | undefined;
202
+ nuvioId?: string | undefined;
203
+ insideMap?: boolean | undefined;
204
+ }>, "many">>;
205
+ /** Index v3: explicit style patch targets for this selected host. */
206
+ styleTargets: z.ZodOptional<z.ZodArray<z.ZodObject<{
207
+ /** Stable key within host: `data-nuvio-id` or `host` for selected container. */
208
+ key: z.ZodString;
209
+ label: z.ZodString;
210
+ file: z.ZodString;
211
+ line: z.ZodNumber;
212
+ column: z.ZodNumber;
213
+ tagName: z.ZodString;
214
+ nuvioId: z.ZodString;
215
+ patchHostId: z.ZodString;
216
+ classNamePatchable: z.ZodBoolean;
217
+ riskLevel: z.ZodOptional<z.ZodEnum<["safe", "caution", "unsupported"]>>;
218
+ }, "strip", z.ZodTypeAny, {
219
+ key: string;
220
+ label: string;
221
+ file: string;
222
+ line: number;
223
+ column: number;
224
+ tagName: string;
225
+ nuvioId: string;
226
+ patchHostId: string;
227
+ classNamePatchable: boolean;
228
+ riskLevel?: "safe" | "caution" | "unsupported" | undefined;
229
+ }, {
230
+ key: string;
231
+ label: string;
232
+ file: string;
233
+ line: number;
234
+ column: number;
235
+ tagName: string;
236
+ nuvioId: string;
237
+ patchHostId: string;
238
+ classNamePatchable: boolean;
239
+ riskLevel?: "safe" | "caution" | "unsupported" | undefined;
240
+ }>, "many">>;
241
+ /** Index v3: coarse host role, used for defaults/hints only. */
242
+ hierarchyRole: z.ZodOptional<z.ZodEnum<["section", "card", "table", "form", "group", "layout", "text", "button", "input", "media", "unknown"]>>;
243
+ /** Index v3: nearest ancestor host id in JSX ownership hierarchy. */
244
+ parentHostId: z.ZodOptional<z.ZodString>;
245
+ /** Index v3: descendant host ids under this host (if any). */
246
+ childTargetIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
247
+ /** Index v4: row hosts when this entry is a table section. */
248
+ rowTargets: z.ZodOptional<z.ZodArray<z.ZodObject<{
249
+ rowKey: z.ZodString;
250
+ nuvioId: z.ZodString;
251
+ label: z.ZodString;
252
+ file: z.ZodString;
253
+ line: z.ZodNumber;
254
+ }, "strip", z.ZodTypeAny, {
255
+ label: string;
256
+ file: string;
257
+ line: number;
258
+ nuvioId: string;
259
+ rowKey: string;
260
+ }, {
261
+ label: string;
262
+ file: string;
263
+ line: number;
264
+ nuvioId: string;
265
+ rowKey: string;
266
+ }>, "many">>;
267
+ /** Index v4: static table data binding for Tier C. */
268
+ tableMeta: z.ZodOptional<z.ZodObject<{
269
+ dataBinding: z.ZodString;
270
+ file: z.ZodString;
271
+ line: z.ZodNumber;
272
+ columns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
273
+ }, "strip", z.ZodTypeAny, {
274
+ file: string;
275
+ line: number;
276
+ dataBinding: string;
277
+ columns?: string[] | undefined;
278
+ }, {
279
+ file: string;
280
+ line: number;
281
+ dataBinding: string;
282
+ columns?: string[] | undefined;
283
+ }>>;
284
+ /** Index v4: when this host maps to a `tableData` field edit. */
285
+ tableDataField: z.ZodOptional<z.ZodObject<{
286
+ arrayName: z.ZodString;
287
+ rowKey: z.ZodString;
288
+ field: z.ZodString;
289
+ }, "strip", z.ZodTypeAny, {
290
+ rowKey: string;
291
+ arrayName: string;
292
+ field: string;
293
+ }, {
294
+ rowKey: string;
295
+ arrayName: string;
296
+ field: string;
297
+ }>>;
13
298
  }, "strip", z.ZodTypeAny, {
14
- id: string;
15
299
  file: string;
16
300
  line: number;
17
301
  column: number;
18
- }, {
19
302
  id: string;
303
+ tagName?: string | undefined;
304
+ textEditable?: boolean | undefined;
305
+ patchHostId?: string | undefined;
306
+ insideMap?: boolean | undefined;
307
+ riskLevel?: "safe" | "caution" | "unsupported" | undefined;
308
+ componentName?: string | undefined;
309
+ hasLiteralClassName?: boolean | undefined;
310
+ classNameValue?: string | undefined;
311
+ structuralEditable?: boolean | undefined;
312
+ unsupportedReasons?: string[] | undefined;
313
+ primaryTextTargetKey?: string | undefined;
314
+ textTargets?: {
315
+ key: string;
316
+ label: string;
317
+ file: string;
318
+ line: number;
319
+ column: number;
320
+ tagName: string;
321
+ textEditable: boolean;
322
+ patchHostId: string;
323
+ textPreview?: string | undefined;
324
+ nuvioId?: string | undefined;
325
+ insideMap?: boolean | undefined;
326
+ }[] | undefined;
327
+ styleTargets?: {
328
+ key: string;
329
+ label: string;
330
+ file: string;
331
+ line: number;
332
+ column: number;
333
+ tagName: string;
334
+ nuvioId: string;
335
+ patchHostId: string;
336
+ classNamePatchable: boolean;
337
+ riskLevel?: "safe" | "caution" | "unsupported" | undefined;
338
+ }[] | undefined;
339
+ hierarchyRole?: "section" | "card" | "table" | "form" | "group" | "layout" | "text" | "button" | "input" | "media" | "unknown" | undefined;
340
+ parentHostId?: string | undefined;
341
+ childTargetIds?: string[] | undefined;
342
+ rowTargets?: {
343
+ label: string;
344
+ file: string;
345
+ line: number;
346
+ nuvioId: string;
347
+ rowKey: string;
348
+ }[] | undefined;
349
+ tableMeta?: {
350
+ file: string;
351
+ line: number;
352
+ dataBinding: string;
353
+ columns?: string[] | undefined;
354
+ } | undefined;
355
+ tableDataField?: {
356
+ rowKey: string;
357
+ arrayName: string;
358
+ field: string;
359
+ } | undefined;
360
+ }, {
20
361
  file: string;
21
362
  line: number;
22
363
  column: number;
364
+ id: string;
365
+ tagName?: string | undefined;
366
+ textEditable?: boolean | undefined;
367
+ patchHostId?: string | undefined;
368
+ insideMap?: boolean | undefined;
369
+ riskLevel?: "safe" | "caution" | "unsupported" | undefined;
370
+ componentName?: string | undefined;
371
+ hasLiteralClassName?: boolean | undefined;
372
+ classNameValue?: string | undefined;
373
+ structuralEditable?: boolean | undefined;
374
+ unsupportedReasons?: string[] | undefined;
375
+ primaryTextTargetKey?: string | undefined;
376
+ textTargets?: {
377
+ key: string;
378
+ label: string;
379
+ file: string;
380
+ line: number;
381
+ column: number;
382
+ tagName: string;
383
+ textEditable: boolean;
384
+ patchHostId: string;
385
+ textPreview?: string | undefined;
386
+ nuvioId?: string | undefined;
387
+ insideMap?: boolean | undefined;
388
+ }[] | undefined;
389
+ styleTargets?: {
390
+ key: string;
391
+ label: string;
392
+ file: string;
393
+ line: number;
394
+ column: number;
395
+ tagName: string;
396
+ nuvioId: string;
397
+ patchHostId: string;
398
+ classNamePatchable: boolean;
399
+ riskLevel?: "safe" | "caution" | "unsupported" | undefined;
400
+ }[] | undefined;
401
+ hierarchyRole?: "section" | "card" | "table" | "form" | "group" | "layout" | "text" | "button" | "input" | "media" | "unknown" | undefined;
402
+ parentHostId?: string | undefined;
403
+ childTargetIds?: string[] | undefined;
404
+ rowTargets?: {
405
+ label: string;
406
+ file: string;
407
+ line: number;
408
+ nuvioId: string;
409
+ rowKey: string;
410
+ }[] | undefined;
411
+ tableMeta?: {
412
+ file: string;
413
+ line: number;
414
+ dataBinding: string;
415
+ columns?: string[] | undefined;
416
+ } | undefined;
417
+ tableDataField?: {
418
+ rowKey: string;
419
+ arrayName: string;
420
+ field: string;
421
+ } | undefined;
23
422
  }>;
24
423
  type IndexWireEntry = z.infer<typeof indexEntrySchema>;
424
+ declare const runtimeDiagnosticsSchema: z.ZodObject<{
425
+ viteVersion: z.ZodOptional<z.ZodString>;
426
+ reactVersion: z.ZodOptional<z.ZodString>;
427
+ tailwindVersion: z.ZodOptional<z.ZodString>;
428
+ overlayCssMode: z.ZodOptional<z.ZodLiteral<"self-contained">>;
429
+ }, "strip", z.ZodTypeAny, {
430
+ viteVersion?: string | undefined;
431
+ reactVersion?: string | undefined;
432
+ tailwindVersion?: string | undefined;
433
+ overlayCssMode?: "self-contained" | undefined;
434
+ }, {
435
+ viteVersion?: string | undefined;
436
+ reactVersion?: string | undefined;
437
+ tailwindVersion?: string | undefined;
438
+ overlayCssMode?: "self-contained" | undefined;
439
+ }>;
440
+ type RuntimeDiagnostics = z.infer<typeof runtimeDiagnosticsSchema>;
25
441
  declare const duplicateIdOccurrenceSchema: z.ZodObject<{
26
442
  file: z.ZodString;
27
443
  line: z.ZodNumber;
@@ -86,13 +502,13 @@ declare const clientSelectSchema: z.ZodObject<{
86
502
  requestId: z.ZodString;
87
503
  id: z.ZodString;
88
504
  }, "strip", z.ZodTypeAny, {
89
- id: string;
90
505
  type: "select";
506
+ id: string;
91
507
  protocolVersion: number;
92
508
  requestId: string;
93
509
  }, {
94
- id: string;
95
510
  type: "select";
511
+ id: string;
96
512
  protocolVersion: number;
97
513
  requestId: string;
98
514
  }>;
@@ -101,11 +517,11 @@ declare const patchOpSetTextSchema: z.ZodObject<{
101
517
  kind: z.ZodLiteral<"setText">;
102
518
  text: z.ZodString;
103
519
  }, "strip", z.ZodTypeAny, {
104
- kind: "setText";
105
520
  text: string;
106
- }, {
107
521
  kind: "setText";
522
+ }, {
108
523
  text: string;
524
+ kind: "setText";
109
525
  }>;
110
526
  declare const patchOpMergeTailwindSchema: z.ZodObject<{
111
527
  kind: z.ZodLiteral<"mergeTailwindClassName">;
@@ -147,15 +563,35 @@ declare const patchOpDuplicateHostSchema: z.ZodObject<{
147
563
  }, {
148
564
  kind: "duplicateHost";
149
565
  }>;
566
+ /** Index v4: update a string field in a local `const` array (Tier C table cells). */
567
+ declare const patchOpSetTableDataFieldSchema: z.ZodObject<{
568
+ kind: z.ZodLiteral<"setTableDataField">;
569
+ arrayName: z.ZodString;
570
+ rowKey: z.ZodString;
571
+ field: z.ZodString;
572
+ value: z.ZodString;
573
+ }, "strip", z.ZodTypeAny, {
574
+ value: string;
575
+ rowKey: string;
576
+ arrayName: string;
577
+ field: string;
578
+ kind: "setTableDataField";
579
+ }, {
580
+ value: string;
581
+ rowKey: string;
582
+ arrayName: string;
583
+ field: string;
584
+ kind: "setTableDataField";
585
+ }>;
150
586
  declare const patchOpSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
151
587
  kind: z.ZodLiteral<"setText">;
152
588
  text: z.ZodString;
153
589
  }, "strip", z.ZodTypeAny, {
154
- kind: "setText";
155
590
  text: string;
156
- }, {
157
591
  kind: "setText";
592
+ }, {
158
593
  text: string;
594
+ kind: "setText";
159
595
  }>, z.ZodObject<{
160
596
  kind: z.ZodLiteral<"mergeTailwindClassName">;
161
597
  classNameFragment: z.ZodString;
@@ -165,6 +601,15 @@ declare const patchOpSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
165
601
  }, {
166
602
  kind: "mergeTailwindClassName";
167
603
  classNameFragment: string;
604
+ }>, z.ZodObject<{
605
+ kind: z.ZodLiteral<"removeTailwindClassName">;
606
+ classNameFragment: z.ZodString;
607
+ }, "strip", z.ZodTypeAny, {
608
+ kind: "removeTailwindClassName";
609
+ classNameFragment: string;
610
+ }, {
611
+ kind: "removeTailwindClassName";
612
+ classNameFragment: string;
168
613
  }>, z.ZodObject<{
169
614
  kind: z.ZodLiteral<"moveSibling">;
170
615
  direction: z.ZodEnum<["up", "down"]>;
@@ -189,8 +634,28 @@ declare const patchOpSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
189
634
  kind: "duplicateHost";
190
635
  }, {
191
636
  kind: "duplicateHost";
637
+ }>, z.ZodObject<{
638
+ kind: z.ZodLiteral<"setTableDataField">;
639
+ arrayName: z.ZodString;
640
+ rowKey: z.ZodString;
641
+ field: z.ZodString;
642
+ value: z.ZodString;
643
+ }, "strip", z.ZodTypeAny, {
644
+ value: string;
645
+ rowKey: string;
646
+ arrayName: string;
647
+ field: string;
648
+ kind: "setTableDataField";
649
+ }, {
650
+ value: string;
651
+ rowKey: string;
652
+ arrayName: string;
653
+ field: string;
654
+ kind: "setTableDataField";
192
655
  }>]>;
193
656
  type PatchOp = z.infer<typeof patchOpSchema>;
657
+ declare const breakpointSchema: z.ZodEnum<["base", "sm", "md", "lg", "xl"]>;
658
+ type Breakpoint = z.infer<typeof breakpointSchema>;
194
659
  declare const clientPatchApplySchema: z.ZodObject<{
195
660
  type: z.ZodLiteral<"patchApply">;
196
661
  protocolVersion: z.ZodNumber;
@@ -200,11 +665,11 @@ declare const clientPatchApplySchema: z.ZodObject<{
200
665
  kind: z.ZodLiteral<"setText">;
201
666
  text: z.ZodString;
202
667
  }, "strip", z.ZodTypeAny, {
203
- kind: "setText";
204
668
  text: string;
205
- }, {
206
669
  kind: "setText";
670
+ }, {
207
671
  text: string;
672
+ kind: "setText";
208
673
  }>, z.ZodObject<{
209
674
  kind: z.ZodLiteral<"mergeTailwindClassName">;
210
675
  classNameFragment: z.ZodString;
@@ -214,6 +679,15 @@ declare const clientPatchApplySchema: z.ZodObject<{
214
679
  }, {
215
680
  kind: "mergeTailwindClassName";
216
681
  classNameFragment: string;
682
+ }>, z.ZodObject<{
683
+ kind: z.ZodLiteral<"removeTailwindClassName">;
684
+ classNameFragment: z.ZodString;
685
+ }, "strip", z.ZodTypeAny, {
686
+ kind: "removeTailwindClassName";
687
+ classNameFragment: string;
688
+ }, {
689
+ kind: "removeTailwindClassName";
690
+ classNameFragment: string;
217
691
  }>, z.ZodObject<{
218
692
  kind: z.ZodLiteral<"moveSibling">;
219
693
  direction: z.ZodEnum<["up", "down"]>;
@@ -238,20 +712,43 @@ declare const clientPatchApplySchema: z.ZodObject<{
238
712
  kind: "duplicateHost";
239
713
  }, {
240
714
  kind: "duplicateHost";
715
+ }>, z.ZodObject<{
716
+ kind: z.ZodLiteral<"setTableDataField">;
717
+ arrayName: z.ZodString;
718
+ rowKey: z.ZodString;
719
+ field: z.ZodString;
720
+ value: z.ZodString;
721
+ }, "strip", z.ZodTypeAny, {
722
+ value: string;
723
+ rowKey: string;
724
+ arrayName: string;
725
+ field: string;
726
+ kind: "setTableDataField";
727
+ }, {
728
+ value: string;
729
+ rowKey: string;
730
+ arrayName: string;
731
+ field: string;
732
+ kind: "setTableDataField";
241
733
  }>]>, "many">;
734
+ /** Optional responsive context for className merges. */
735
+ activeBreakpoint: z.ZodOptional<z.ZodEnum<["base", "sm", "md", "lg", "xl"]>>;
242
736
  /** When true, server validates and returns `patchAck` with `diffSummary` but does not write disk or push undo. */
243
737
  dryRun: z.ZodOptional<z.ZodBoolean>;
244
738
  }, "strip", z.ZodTypeAny, {
245
- id: string;
246
739
  type: "patchApply";
740
+ id: string;
247
741
  protocolVersion: number;
248
742
  requestId: string;
249
743
  ops: ({
250
- kind: "setText";
251
744
  text: string;
745
+ kind: "setText";
252
746
  } | {
253
747
  kind: "mergeTailwindClassName";
254
748
  classNameFragment: string;
749
+ } | {
750
+ kind: "removeTailwindClassName";
751
+ classNameFragment: string;
255
752
  } | {
256
753
  kind: "moveSibling";
257
754
  direction: "up" | "down";
@@ -260,19 +757,29 @@ declare const clientPatchApplySchema: z.ZodObject<{
260
757
  hidden: boolean;
261
758
  } | {
262
759
  kind: "duplicateHost";
760
+ } | {
761
+ value: string;
762
+ rowKey: string;
763
+ arrayName: string;
764
+ field: string;
765
+ kind: "setTableDataField";
263
766
  })[];
767
+ activeBreakpoint?: "base" | "sm" | "md" | "lg" | "xl" | undefined;
264
768
  dryRun?: boolean | undefined;
265
769
  }, {
266
- id: string;
267
770
  type: "patchApply";
771
+ id: string;
268
772
  protocolVersion: number;
269
773
  requestId: string;
270
774
  ops: ({
271
- kind: "setText";
272
775
  text: string;
776
+ kind: "setText";
273
777
  } | {
274
778
  kind: "mergeTailwindClassName";
275
779
  classNameFragment: string;
780
+ } | {
781
+ kind: "removeTailwindClassName";
782
+ classNameFragment: string;
276
783
  } | {
277
784
  kind: "moveSibling";
278
785
  direction: "up" | "down";
@@ -281,7 +788,14 @@ declare const clientPatchApplySchema: z.ZodObject<{
281
788
  hidden: boolean;
282
789
  } | {
283
790
  kind: "duplicateHost";
791
+ } | {
792
+ value: string;
793
+ rowKey: string;
794
+ arrayName: string;
795
+ field: string;
796
+ kind: "setTableDataField";
284
797
  })[];
798
+ activeBreakpoint?: "base" | "sm" | "md" | "lg" | "xl" | undefined;
285
799
  dryRun?: boolean | undefined;
286
800
  }>;
287
801
  type ClientPatchApply = z.infer<typeof clientPatchApplySchema>;
@@ -317,13 +831,13 @@ declare const clientMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
317
831
  requestId: z.ZodString;
318
832
  id: z.ZodString;
319
833
  }, "strip", z.ZodTypeAny, {
320
- id: string;
321
834
  type: "select";
835
+ id: string;
322
836
  protocolVersion: number;
323
837
  requestId: string;
324
838
  }, {
325
- id: string;
326
839
  type: "select";
840
+ id: string;
327
841
  protocolVersion: number;
328
842
  requestId: string;
329
843
  }>, z.ZodObject<{
@@ -335,11 +849,11 @@ declare const clientMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
335
849
  kind: z.ZodLiteral<"setText">;
336
850
  text: z.ZodString;
337
851
  }, "strip", z.ZodTypeAny, {
338
- kind: "setText";
339
852
  text: string;
340
- }, {
341
853
  kind: "setText";
854
+ }, {
342
855
  text: string;
856
+ kind: "setText";
343
857
  }>, z.ZodObject<{
344
858
  kind: z.ZodLiteral<"mergeTailwindClassName">;
345
859
  classNameFragment: z.ZodString;
@@ -349,6 +863,15 @@ declare const clientMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
349
863
  }, {
350
864
  kind: "mergeTailwindClassName";
351
865
  classNameFragment: string;
866
+ }>, z.ZodObject<{
867
+ kind: z.ZodLiteral<"removeTailwindClassName">;
868
+ classNameFragment: z.ZodString;
869
+ }, "strip", z.ZodTypeAny, {
870
+ kind: "removeTailwindClassName";
871
+ classNameFragment: string;
872
+ }, {
873
+ kind: "removeTailwindClassName";
874
+ classNameFragment: string;
352
875
  }>, z.ZodObject<{
353
876
  kind: z.ZodLiteral<"moveSibling">;
354
877
  direction: z.ZodEnum<["up", "down"]>;
@@ -373,20 +896,43 @@ declare const clientMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
373
896
  kind: "duplicateHost";
374
897
  }, {
375
898
  kind: "duplicateHost";
899
+ }>, z.ZodObject<{
900
+ kind: z.ZodLiteral<"setTableDataField">;
901
+ arrayName: z.ZodString;
902
+ rowKey: z.ZodString;
903
+ field: z.ZodString;
904
+ value: z.ZodString;
905
+ }, "strip", z.ZodTypeAny, {
906
+ value: string;
907
+ rowKey: string;
908
+ arrayName: string;
909
+ field: string;
910
+ kind: "setTableDataField";
911
+ }, {
912
+ value: string;
913
+ rowKey: string;
914
+ arrayName: string;
915
+ field: string;
916
+ kind: "setTableDataField";
376
917
  }>]>, "many">;
918
+ /** Optional responsive context for className merges. */
919
+ activeBreakpoint: z.ZodOptional<z.ZodEnum<["base", "sm", "md", "lg", "xl"]>>;
377
920
  /** When true, server validates and returns `patchAck` with `diffSummary` but does not write disk or push undo. */
378
921
  dryRun: z.ZodOptional<z.ZodBoolean>;
379
922
  }, "strip", z.ZodTypeAny, {
380
- id: string;
381
923
  type: "patchApply";
924
+ id: string;
382
925
  protocolVersion: number;
383
926
  requestId: string;
384
927
  ops: ({
385
- kind: "setText";
386
928
  text: string;
929
+ kind: "setText";
387
930
  } | {
388
931
  kind: "mergeTailwindClassName";
389
932
  classNameFragment: string;
933
+ } | {
934
+ kind: "removeTailwindClassName";
935
+ classNameFragment: string;
390
936
  } | {
391
937
  kind: "moveSibling";
392
938
  direction: "up" | "down";
@@ -395,19 +941,29 @@ declare const clientMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
395
941
  hidden: boolean;
396
942
  } | {
397
943
  kind: "duplicateHost";
944
+ } | {
945
+ value: string;
946
+ rowKey: string;
947
+ arrayName: string;
948
+ field: string;
949
+ kind: "setTableDataField";
398
950
  })[];
951
+ activeBreakpoint?: "base" | "sm" | "md" | "lg" | "xl" | undefined;
399
952
  dryRun?: boolean | undefined;
400
953
  }, {
401
- id: string;
402
954
  type: "patchApply";
955
+ id: string;
403
956
  protocolVersion: number;
404
957
  requestId: string;
405
958
  ops: ({
406
- kind: "setText";
407
959
  text: string;
960
+ kind: "setText";
408
961
  } | {
409
962
  kind: "mergeTailwindClassName";
410
963
  classNameFragment: string;
964
+ } | {
965
+ kind: "removeTailwindClassName";
966
+ classNameFragment: string;
411
967
  } | {
412
968
  kind: "moveSibling";
413
969
  direction: "up" | "down";
@@ -416,7 +972,14 @@ declare const clientMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
416
972
  hidden: boolean;
417
973
  } | {
418
974
  kind: "duplicateHost";
975
+ } | {
976
+ value: string;
977
+ rowKey: string;
978
+ arrayName: string;
979
+ field: string;
980
+ kind: "setTableDataField";
419
981
  })[];
982
+ activeBreakpoint?: "base" | "sm" | "md" | "lg" | "xl" | undefined;
420
983
  dryRun?: boolean | undefined;
421
984
  }>, z.ZodObject<{
422
985
  type: z.ZodLiteral<"patchUndo">;
@@ -436,14 +999,42 @@ declare const serverPongSchema: z.ZodObject<{
436
999
  type: z.ZodLiteral<"pong">;
437
1000
  protocolVersion: z.ZodNumber;
438
1001
  requestId: z.ZodString;
1002
+ diagnostics: z.ZodOptional<z.ZodObject<{
1003
+ viteVersion: z.ZodOptional<z.ZodString>;
1004
+ reactVersion: z.ZodOptional<z.ZodString>;
1005
+ tailwindVersion: z.ZodOptional<z.ZodString>;
1006
+ overlayCssMode: z.ZodOptional<z.ZodLiteral<"self-contained">>;
1007
+ }, "strip", z.ZodTypeAny, {
1008
+ viteVersion?: string | undefined;
1009
+ reactVersion?: string | undefined;
1010
+ tailwindVersion?: string | undefined;
1011
+ overlayCssMode?: "self-contained" | undefined;
1012
+ }, {
1013
+ viteVersion?: string | undefined;
1014
+ reactVersion?: string | undefined;
1015
+ tailwindVersion?: string | undefined;
1016
+ overlayCssMode?: "self-contained" | undefined;
1017
+ }>>;
439
1018
  }, "strip", z.ZodTypeAny, {
440
1019
  type: "pong";
441
1020
  protocolVersion: number;
442
1021
  requestId: string;
1022
+ diagnostics?: {
1023
+ viteVersion?: string | undefined;
1024
+ reactVersion?: string | undefined;
1025
+ tailwindVersion?: string | undefined;
1026
+ overlayCssMode?: "self-contained" | undefined;
1027
+ } | undefined;
443
1028
  }, {
444
1029
  type: "pong";
445
1030
  protocolVersion: number;
446
1031
  requestId: string;
1032
+ diagnostics?: {
1033
+ viteVersion?: string | undefined;
1034
+ reactVersion?: string | undefined;
1035
+ tailwindVersion?: string | undefined;
1036
+ overlayCssMode?: "self-contained" | undefined;
1037
+ } | undefined;
447
1038
  }>;
448
1039
  declare const serverErrorSchema: z.ZodObject<{
449
1040
  type: z.ZodLiteral<"error">;
@@ -470,73 +1061,471 @@ declare const serverIndexReadySchema: z.ZodObject<{
470
1061
  file: z.ZodString;
471
1062
  line: z.ZodNumber;
472
1063
  column: z.ZodNumber;
473
- }, "strip", z.ZodTypeAny, {
474
- id: string;
475
- file: string;
476
- line: number;
477
- column: number;
478
- }, {
479
- id: string;
480
- file: string;
481
- line: number;
482
- column: number;
483
- }>, "many">;
484
- duplicateErrors: z.ZodArray<z.ZodObject<{
485
- id: z.ZodString;
486
- occurrences: z.ZodArray<z.ZodObject<{
1064
+ /** Source index v2 metadata */
1065
+ tagName: z.ZodOptional<z.ZodString>;
1066
+ componentName: z.ZodOptional<z.ZodString>;
1067
+ hasLiteralClassName: z.ZodOptional<z.ZodBoolean>;
1068
+ classNameValue: z.ZodOptional<z.ZodString>;
1069
+ textEditable: z.ZodOptional<z.ZodBoolean>;
1070
+ structuralEditable: z.ZodOptional<z.ZodBoolean>;
1071
+ riskLevel: z.ZodOptional<z.ZodEnum<["safe", "caution", "unsupported"]>>;
1072
+ unsupportedReasons: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1073
+ insideMap: z.ZodOptional<z.ZodBoolean>;
1074
+ /** Index v3: default id for className patches on this host. */
1075
+ patchHostId: z.ZodOptional<z.ZodString>;
1076
+ /** Index v3: preferred text target key in `textTargets`. */
1077
+ primaryTextTargetKey: z.ZodOptional<z.ZodString>;
1078
+ /** Index v3: descendant (and host) text edit targets. */
1079
+ textTargets: z.ZodOptional<z.ZodArray<z.ZodObject<{
1080
+ /** Stable within host: `data-nuvio-id` or `loc:line:column`. */
1081
+ key: z.ZodString;
1082
+ label: z.ZodString;
487
1083
  file: z.ZodString;
488
1084
  line: z.ZodNumber;
489
1085
  column: z.ZodNumber;
1086
+ tagName: z.ZodString;
1087
+ textEditable: z.ZodBoolean;
1088
+ textPreview: z.ZodOptional<z.ZodString>;
1089
+ /** Present when the text node has its own `data-nuvio-id`. */
1090
+ nuvioId: z.ZodOptional<z.ZodString>;
1091
+ /** Host id used for `mergeTailwindClassName` when patching styles for this target. */
1092
+ patchHostId: z.ZodString;
1093
+ insideMap: z.ZodOptional<z.ZodBoolean>;
490
1094
  }, "strip", z.ZodTypeAny, {
1095
+ key: string;
1096
+ label: string;
491
1097
  file: string;
492
1098
  line: number;
493
1099
  column: number;
1100
+ tagName: string;
1101
+ textEditable: boolean;
1102
+ patchHostId: string;
1103
+ textPreview?: string | undefined;
1104
+ nuvioId?: string | undefined;
1105
+ insideMap?: boolean | undefined;
494
1106
  }, {
1107
+ key: string;
1108
+ label: string;
495
1109
  file: string;
496
1110
  line: number;
497
1111
  column: number;
498
- }>, "many">;
499
- }, "strip", z.ZodTypeAny, {
500
- id: string;
501
- occurrences: {
1112
+ tagName: string;
1113
+ textEditable: boolean;
1114
+ patchHostId: string;
1115
+ textPreview?: string | undefined;
1116
+ nuvioId?: string | undefined;
1117
+ insideMap?: boolean | undefined;
1118
+ }>, "many">>;
1119
+ /** Index v3: explicit style patch targets for this selected host. */
1120
+ styleTargets: z.ZodOptional<z.ZodArray<z.ZodObject<{
1121
+ /** Stable key within host: `data-nuvio-id` or `host` for selected container. */
1122
+ key: z.ZodString;
1123
+ label: z.ZodString;
1124
+ file: z.ZodString;
1125
+ line: z.ZodNumber;
1126
+ column: z.ZodNumber;
1127
+ tagName: z.ZodString;
1128
+ nuvioId: z.ZodString;
1129
+ patchHostId: z.ZodString;
1130
+ classNamePatchable: z.ZodBoolean;
1131
+ riskLevel: z.ZodOptional<z.ZodEnum<["safe", "caution", "unsupported"]>>;
1132
+ }, "strip", z.ZodTypeAny, {
1133
+ key: string;
1134
+ label: string;
502
1135
  file: string;
503
1136
  line: number;
504
1137
  column: number;
505
- }[];
506
- }, {
507
- id: string;
508
- occurrences: {
1138
+ tagName: string;
1139
+ nuvioId: string;
1140
+ patchHostId: string;
1141
+ classNamePatchable: boolean;
1142
+ riskLevel?: "safe" | "caution" | "unsupported" | undefined;
1143
+ }, {
1144
+ key: string;
1145
+ label: string;
509
1146
  file: string;
510
1147
  line: number;
511
1148
  column: number;
512
- }[];
513
- }>, "many">;
514
- }, "strip", z.ZodTypeAny, {
515
- type: "indexReady";
516
- entries: {
517
- id: string;
1149
+ tagName: string;
1150
+ nuvioId: string;
1151
+ patchHostId: string;
1152
+ classNamePatchable: boolean;
1153
+ riskLevel?: "safe" | "caution" | "unsupported" | undefined;
1154
+ }>, "many">>;
1155
+ /** Index v3: coarse host role, used for defaults/hints only. */
1156
+ hierarchyRole: z.ZodOptional<z.ZodEnum<["section", "card", "table", "form", "group", "layout", "text", "button", "input", "media", "unknown"]>>;
1157
+ /** Index v3: nearest ancestor host id in JSX ownership hierarchy. */
1158
+ parentHostId: z.ZodOptional<z.ZodString>;
1159
+ /** Index v3: descendant host ids under this host (if any). */
1160
+ childTargetIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1161
+ /** Index v4: row hosts when this entry is a table section. */
1162
+ rowTargets: z.ZodOptional<z.ZodArray<z.ZodObject<{
1163
+ rowKey: z.ZodString;
1164
+ nuvioId: z.ZodString;
1165
+ label: z.ZodString;
1166
+ file: z.ZodString;
1167
+ line: z.ZodNumber;
1168
+ }, "strip", z.ZodTypeAny, {
1169
+ label: string;
1170
+ file: string;
1171
+ line: number;
1172
+ nuvioId: string;
1173
+ rowKey: string;
1174
+ }, {
1175
+ label: string;
1176
+ file: string;
1177
+ line: number;
1178
+ nuvioId: string;
1179
+ rowKey: string;
1180
+ }>, "many">>;
1181
+ /** Index v4: static table data binding for Tier C. */
1182
+ tableMeta: z.ZodOptional<z.ZodObject<{
1183
+ dataBinding: z.ZodString;
1184
+ file: z.ZodString;
1185
+ line: z.ZodNumber;
1186
+ columns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1187
+ }, "strip", z.ZodTypeAny, {
1188
+ file: string;
1189
+ line: number;
1190
+ dataBinding: string;
1191
+ columns?: string[] | undefined;
1192
+ }, {
1193
+ file: string;
1194
+ line: number;
1195
+ dataBinding: string;
1196
+ columns?: string[] | undefined;
1197
+ }>>;
1198
+ /** Index v4: when this host maps to a `tableData` field edit. */
1199
+ tableDataField: z.ZodOptional<z.ZodObject<{
1200
+ arrayName: z.ZodString;
1201
+ rowKey: z.ZodString;
1202
+ field: z.ZodString;
1203
+ }, "strip", z.ZodTypeAny, {
1204
+ rowKey: string;
1205
+ arrayName: string;
1206
+ field: string;
1207
+ }, {
1208
+ rowKey: string;
1209
+ arrayName: string;
1210
+ field: string;
1211
+ }>>;
1212
+ }, "strip", z.ZodTypeAny, {
518
1213
  file: string;
519
1214
  line: number;
520
1215
  column: number;
521
- }[];
522
- protocolVersion: number;
523
- indexVersion: number;
524
- duplicateErrors: {
525
1216
  id: string;
526
- occurrences: {
1217
+ tagName?: string | undefined;
1218
+ textEditable?: boolean | undefined;
1219
+ patchHostId?: string | undefined;
1220
+ insideMap?: boolean | undefined;
1221
+ riskLevel?: "safe" | "caution" | "unsupported" | undefined;
1222
+ componentName?: string | undefined;
1223
+ hasLiteralClassName?: boolean | undefined;
1224
+ classNameValue?: string | undefined;
1225
+ structuralEditable?: boolean | undefined;
1226
+ unsupportedReasons?: string[] | undefined;
1227
+ primaryTextTargetKey?: string | undefined;
1228
+ textTargets?: {
1229
+ key: string;
1230
+ label: string;
527
1231
  file: string;
528
1232
  line: number;
529
1233
  column: number;
530
- }[];
531
- }[];
532
- }, {
533
- type: "indexReady";
1234
+ tagName: string;
1235
+ textEditable: boolean;
1236
+ patchHostId: string;
1237
+ textPreview?: string | undefined;
1238
+ nuvioId?: string | undefined;
1239
+ insideMap?: boolean | undefined;
1240
+ }[] | undefined;
1241
+ styleTargets?: {
1242
+ key: string;
1243
+ label: string;
1244
+ file: string;
1245
+ line: number;
1246
+ column: number;
1247
+ tagName: string;
1248
+ nuvioId: string;
1249
+ patchHostId: string;
1250
+ classNamePatchable: boolean;
1251
+ riskLevel?: "safe" | "caution" | "unsupported" | undefined;
1252
+ }[] | undefined;
1253
+ hierarchyRole?: "section" | "card" | "table" | "form" | "group" | "layout" | "text" | "button" | "input" | "media" | "unknown" | undefined;
1254
+ parentHostId?: string | undefined;
1255
+ childTargetIds?: string[] | undefined;
1256
+ rowTargets?: {
1257
+ label: string;
1258
+ file: string;
1259
+ line: number;
1260
+ nuvioId: string;
1261
+ rowKey: string;
1262
+ }[] | undefined;
1263
+ tableMeta?: {
1264
+ file: string;
1265
+ line: number;
1266
+ dataBinding: string;
1267
+ columns?: string[] | undefined;
1268
+ } | undefined;
1269
+ tableDataField?: {
1270
+ rowKey: string;
1271
+ arrayName: string;
1272
+ field: string;
1273
+ } | undefined;
1274
+ }, {
1275
+ file: string;
1276
+ line: number;
1277
+ column: number;
1278
+ id: string;
1279
+ tagName?: string | undefined;
1280
+ textEditable?: boolean | undefined;
1281
+ patchHostId?: string | undefined;
1282
+ insideMap?: boolean | undefined;
1283
+ riskLevel?: "safe" | "caution" | "unsupported" | undefined;
1284
+ componentName?: string | undefined;
1285
+ hasLiteralClassName?: boolean | undefined;
1286
+ classNameValue?: string | undefined;
1287
+ structuralEditable?: boolean | undefined;
1288
+ unsupportedReasons?: string[] | undefined;
1289
+ primaryTextTargetKey?: string | undefined;
1290
+ textTargets?: {
1291
+ key: string;
1292
+ label: string;
1293
+ file: string;
1294
+ line: number;
1295
+ column: number;
1296
+ tagName: string;
1297
+ textEditable: boolean;
1298
+ patchHostId: string;
1299
+ textPreview?: string | undefined;
1300
+ nuvioId?: string | undefined;
1301
+ insideMap?: boolean | undefined;
1302
+ }[] | undefined;
1303
+ styleTargets?: {
1304
+ key: string;
1305
+ label: string;
1306
+ file: string;
1307
+ line: number;
1308
+ column: number;
1309
+ tagName: string;
1310
+ nuvioId: string;
1311
+ patchHostId: string;
1312
+ classNamePatchable: boolean;
1313
+ riskLevel?: "safe" | "caution" | "unsupported" | undefined;
1314
+ }[] | undefined;
1315
+ hierarchyRole?: "section" | "card" | "table" | "form" | "group" | "layout" | "text" | "button" | "input" | "media" | "unknown" | undefined;
1316
+ parentHostId?: string | undefined;
1317
+ childTargetIds?: string[] | undefined;
1318
+ rowTargets?: {
1319
+ label: string;
1320
+ file: string;
1321
+ line: number;
1322
+ nuvioId: string;
1323
+ rowKey: string;
1324
+ }[] | undefined;
1325
+ tableMeta?: {
1326
+ file: string;
1327
+ line: number;
1328
+ dataBinding: string;
1329
+ columns?: string[] | undefined;
1330
+ } | undefined;
1331
+ tableDataField?: {
1332
+ rowKey: string;
1333
+ arrayName: string;
1334
+ field: string;
1335
+ } | undefined;
1336
+ }>, "many">;
1337
+ duplicateErrors: z.ZodArray<z.ZodObject<{
1338
+ id: z.ZodString;
1339
+ occurrences: z.ZodArray<z.ZodObject<{
1340
+ file: z.ZodString;
1341
+ line: z.ZodNumber;
1342
+ column: z.ZodNumber;
1343
+ }, "strip", z.ZodTypeAny, {
1344
+ file: string;
1345
+ line: number;
1346
+ column: number;
1347
+ }, {
1348
+ file: string;
1349
+ line: number;
1350
+ column: number;
1351
+ }>, "many">;
1352
+ }, "strip", z.ZodTypeAny, {
1353
+ id: string;
1354
+ occurrences: {
1355
+ file: string;
1356
+ line: number;
1357
+ column: number;
1358
+ }[];
1359
+ }, {
1360
+ id: string;
1361
+ occurrences: {
1362
+ file: string;
1363
+ line: number;
1364
+ column: number;
1365
+ }[];
1366
+ }>, "many">;
1367
+ diagnostics: z.ZodOptional<z.ZodObject<{
1368
+ viteVersion: z.ZodOptional<z.ZodString>;
1369
+ reactVersion: z.ZodOptional<z.ZodString>;
1370
+ tailwindVersion: z.ZodOptional<z.ZodString>;
1371
+ overlayCssMode: z.ZodOptional<z.ZodLiteral<"self-contained">>;
1372
+ }, "strip", z.ZodTypeAny, {
1373
+ viteVersion?: string | undefined;
1374
+ reactVersion?: string | undefined;
1375
+ tailwindVersion?: string | undefined;
1376
+ overlayCssMode?: "self-contained" | undefined;
1377
+ }, {
1378
+ viteVersion?: string | undefined;
1379
+ reactVersion?: string | undefined;
1380
+ tailwindVersion?: string | undefined;
1381
+ overlayCssMode?: "self-contained" | undefined;
1382
+ }>>;
1383
+ }, "strip", z.ZodTypeAny, {
534
1384
  entries: {
1385
+ file: string;
1386
+ line: number;
1387
+ column: number;
535
1388
  id: string;
1389
+ tagName?: string | undefined;
1390
+ textEditable?: boolean | undefined;
1391
+ patchHostId?: string | undefined;
1392
+ insideMap?: boolean | undefined;
1393
+ riskLevel?: "safe" | "caution" | "unsupported" | undefined;
1394
+ componentName?: string | undefined;
1395
+ hasLiteralClassName?: boolean | undefined;
1396
+ classNameValue?: string | undefined;
1397
+ structuralEditable?: boolean | undefined;
1398
+ unsupportedReasons?: string[] | undefined;
1399
+ primaryTextTargetKey?: string | undefined;
1400
+ textTargets?: {
1401
+ key: string;
1402
+ label: string;
1403
+ file: string;
1404
+ line: number;
1405
+ column: number;
1406
+ tagName: string;
1407
+ textEditable: boolean;
1408
+ patchHostId: string;
1409
+ textPreview?: string | undefined;
1410
+ nuvioId?: string | undefined;
1411
+ insideMap?: boolean | undefined;
1412
+ }[] | undefined;
1413
+ styleTargets?: {
1414
+ key: string;
1415
+ label: string;
1416
+ file: string;
1417
+ line: number;
1418
+ column: number;
1419
+ tagName: string;
1420
+ nuvioId: string;
1421
+ patchHostId: string;
1422
+ classNamePatchable: boolean;
1423
+ riskLevel?: "safe" | "caution" | "unsupported" | undefined;
1424
+ }[] | undefined;
1425
+ hierarchyRole?: "section" | "card" | "table" | "form" | "group" | "layout" | "text" | "button" | "input" | "media" | "unknown" | undefined;
1426
+ parentHostId?: string | undefined;
1427
+ childTargetIds?: string[] | undefined;
1428
+ rowTargets?: {
1429
+ label: string;
1430
+ file: string;
1431
+ line: number;
1432
+ nuvioId: string;
1433
+ rowKey: string;
1434
+ }[] | undefined;
1435
+ tableMeta?: {
1436
+ file: string;
1437
+ line: number;
1438
+ dataBinding: string;
1439
+ columns?: string[] | undefined;
1440
+ } | undefined;
1441
+ tableDataField?: {
1442
+ rowKey: string;
1443
+ arrayName: string;
1444
+ field: string;
1445
+ } | undefined;
1446
+ }[];
1447
+ type: "indexReady";
1448
+ protocolVersion: number;
1449
+ indexVersion: number;
1450
+ duplicateErrors: {
1451
+ id: string;
1452
+ occurrences: {
1453
+ file: string;
1454
+ line: number;
1455
+ column: number;
1456
+ }[];
1457
+ }[];
1458
+ diagnostics?: {
1459
+ viteVersion?: string | undefined;
1460
+ reactVersion?: string | undefined;
1461
+ tailwindVersion?: string | undefined;
1462
+ overlayCssMode?: "self-contained" | undefined;
1463
+ } | undefined;
1464
+ }, {
1465
+ entries: {
536
1466
  file: string;
537
1467
  line: number;
538
1468
  column: number;
1469
+ id: string;
1470
+ tagName?: string | undefined;
1471
+ textEditable?: boolean | undefined;
1472
+ patchHostId?: string | undefined;
1473
+ insideMap?: boolean | undefined;
1474
+ riskLevel?: "safe" | "caution" | "unsupported" | undefined;
1475
+ componentName?: string | undefined;
1476
+ hasLiteralClassName?: boolean | undefined;
1477
+ classNameValue?: string | undefined;
1478
+ structuralEditable?: boolean | undefined;
1479
+ unsupportedReasons?: string[] | undefined;
1480
+ primaryTextTargetKey?: string | undefined;
1481
+ textTargets?: {
1482
+ key: string;
1483
+ label: string;
1484
+ file: string;
1485
+ line: number;
1486
+ column: number;
1487
+ tagName: string;
1488
+ textEditable: boolean;
1489
+ patchHostId: string;
1490
+ textPreview?: string | undefined;
1491
+ nuvioId?: string | undefined;
1492
+ insideMap?: boolean | undefined;
1493
+ }[] | undefined;
1494
+ styleTargets?: {
1495
+ key: string;
1496
+ label: string;
1497
+ file: string;
1498
+ line: number;
1499
+ column: number;
1500
+ tagName: string;
1501
+ nuvioId: string;
1502
+ patchHostId: string;
1503
+ classNamePatchable: boolean;
1504
+ riskLevel?: "safe" | "caution" | "unsupported" | undefined;
1505
+ }[] | undefined;
1506
+ hierarchyRole?: "section" | "card" | "table" | "form" | "group" | "layout" | "text" | "button" | "input" | "media" | "unknown" | undefined;
1507
+ parentHostId?: string | undefined;
1508
+ childTargetIds?: string[] | undefined;
1509
+ rowTargets?: {
1510
+ label: string;
1511
+ file: string;
1512
+ line: number;
1513
+ nuvioId: string;
1514
+ rowKey: string;
1515
+ }[] | undefined;
1516
+ tableMeta?: {
1517
+ file: string;
1518
+ line: number;
1519
+ dataBinding: string;
1520
+ columns?: string[] | undefined;
1521
+ } | undefined;
1522
+ tableDataField?: {
1523
+ rowKey: string;
1524
+ arrayName: string;
1525
+ field: string;
1526
+ } | undefined;
539
1527
  }[];
1528
+ type: "indexReady";
540
1529
  protocolVersion: number;
541
1530
  indexVersion: number;
542
1531
  duplicateErrors: {
@@ -547,6 +1536,12 @@ declare const serverIndexReadySchema: z.ZodObject<{
547
1536
  column: number;
548
1537
  }[];
549
1538
  }[];
1539
+ diagnostics?: {
1540
+ viteVersion?: string | undefined;
1541
+ reactVersion?: string | undefined;
1542
+ tailwindVersion?: string | undefined;
1543
+ overlayCssMode?: "self-contained" | undefined;
1544
+ } | undefined;
550
1545
  }>;
551
1546
  type ServerIndexReady = z.infer<typeof serverIndexReadySchema>;
552
1547
  declare const serverSelectAckSchema: z.ZodObject<{
@@ -558,28 +1553,253 @@ declare const serverSelectAckSchema: z.ZodObject<{
558
1553
  file: z.ZodOptional<z.ZodString>;
559
1554
  line: z.ZodOptional<z.ZodNumber>;
560
1555
  column: z.ZodOptional<z.ZodNumber>;
1556
+ /** Index v3 snapshot for the selected host (also on `indexReady` entries). */
1557
+ patchHostId: z.ZodOptional<z.ZodString>;
1558
+ primaryTextTargetKey: z.ZodOptional<z.ZodString>;
1559
+ textTargets: z.ZodOptional<z.ZodArray<z.ZodObject<{
1560
+ /** Stable within host: `data-nuvio-id` or `loc:line:column`. */
1561
+ key: z.ZodString;
1562
+ label: z.ZodString;
1563
+ file: z.ZodString;
1564
+ line: z.ZodNumber;
1565
+ column: z.ZodNumber;
1566
+ tagName: z.ZodString;
1567
+ textEditable: z.ZodBoolean;
1568
+ textPreview: z.ZodOptional<z.ZodString>;
1569
+ /** Present when the text node has its own `data-nuvio-id`. */
1570
+ nuvioId: z.ZodOptional<z.ZodString>;
1571
+ /** Host id used for `mergeTailwindClassName` when patching styles for this target. */
1572
+ patchHostId: z.ZodString;
1573
+ insideMap: z.ZodOptional<z.ZodBoolean>;
1574
+ }, "strip", z.ZodTypeAny, {
1575
+ key: string;
1576
+ label: string;
1577
+ file: string;
1578
+ line: number;
1579
+ column: number;
1580
+ tagName: string;
1581
+ textEditable: boolean;
1582
+ patchHostId: string;
1583
+ textPreview?: string | undefined;
1584
+ nuvioId?: string | undefined;
1585
+ insideMap?: boolean | undefined;
1586
+ }, {
1587
+ key: string;
1588
+ label: string;
1589
+ file: string;
1590
+ line: number;
1591
+ column: number;
1592
+ tagName: string;
1593
+ textEditable: boolean;
1594
+ patchHostId: string;
1595
+ textPreview?: string | undefined;
1596
+ nuvioId?: string | undefined;
1597
+ insideMap?: boolean | undefined;
1598
+ }>, "many">>;
1599
+ styleTargets: z.ZodOptional<z.ZodArray<z.ZodObject<{
1600
+ /** Stable key within host: `data-nuvio-id` or `host` for selected container. */
1601
+ key: z.ZodString;
1602
+ label: z.ZodString;
1603
+ file: z.ZodString;
1604
+ line: z.ZodNumber;
1605
+ column: z.ZodNumber;
1606
+ tagName: z.ZodString;
1607
+ nuvioId: z.ZodString;
1608
+ patchHostId: z.ZodString;
1609
+ classNamePatchable: z.ZodBoolean;
1610
+ riskLevel: z.ZodOptional<z.ZodEnum<["safe", "caution", "unsupported"]>>;
1611
+ }, "strip", z.ZodTypeAny, {
1612
+ key: string;
1613
+ label: string;
1614
+ file: string;
1615
+ line: number;
1616
+ column: number;
1617
+ tagName: string;
1618
+ nuvioId: string;
1619
+ patchHostId: string;
1620
+ classNamePatchable: boolean;
1621
+ riskLevel?: "safe" | "caution" | "unsupported" | undefined;
1622
+ }, {
1623
+ key: string;
1624
+ label: string;
1625
+ file: string;
1626
+ line: number;
1627
+ column: number;
1628
+ tagName: string;
1629
+ nuvioId: string;
1630
+ patchHostId: string;
1631
+ classNamePatchable: boolean;
1632
+ riskLevel?: "safe" | "caution" | "unsupported" | undefined;
1633
+ }>, "many">>;
1634
+ hierarchyRole: z.ZodOptional<z.ZodEnum<["section", "card", "table", "form", "group", "layout", "text", "button", "input", "media", "unknown"]>>;
1635
+ parentHostId: z.ZodOptional<z.ZodString>;
1636
+ childTargetIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1637
+ rowTargets: z.ZodOptional<z.ZodArray<z.ZodObject<{
1638
+ rowKey: z.ZodString;
1639
+ nuvioId: z.ZodString;
1640
+ label: z.ZodString;
1641
+ file: z.ZodString;
1642
+ line: z.ZodNumber;
1643
+ }, "strip", z.ZodTypeAny, {
1644
+ label: string;
1645
+ file: string;
1646
+ line: number;
1647
+ nuvioId: string;
1648
+ rowKey: string;
1649
+ }, {
1650
+ label: string;
1651
+ file: string;
1652
+ line: number;
1653
+ nuvioId: string;
1654
+ rowKey: string;
1655
+ }>, "many">>;
1656
+ tableMeta: z.ZodOptional<z.ZodObject<{
1657
+ dataBinding: z.ZodString;
1658
+ file: z.ZodString;
1659
+ line: z.ZodNumber;
1660
+ columns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1661
+ }, "strip", z.ZodTypeAny, {
1662
+ file: string;
1663
+ line: number;
1664
+ dataBinding: string;
1665
+ columns?: string[] | undefined;
1666
+ }, {
1667
+ file: string;
1668
+ line: number;
1669
+ dataBinding: string;
1670
+ columns?: string[] | undefined;
1671
+ }>>;
1672
+ tableDataField: z.ZodOptional<z.ZodObject<{
1673
+ arrayName: z.ZodString;
1674
+ rowKey: z.ZodString;
1675
+ field: z.ZodString;
1676
+ }, "strip", z.ZodTypeAny, {
1677
+ rowKey: string;
1678
+ arrayName: string;
1679
+ field: string;
1680
+ }, {
1681
+ rowKey: string;
1682
+ arrayName: string;
1683
+ field: string;
1684
+ }>>;
561
1685
  errorCode: z.ZodOptional<z.ZodString>;
562
1686
  errorMessage: z.ZodOptional<z.ZodString>;
563
1687
  }, "strip", z.ZodTypeAny, {
564
- id: string;
565
1688
  type: "selectAck";
1689
+ id: string;
566
1690
  protocolVersion: number;
567
1691
  requestId: string;
568
1692
  ok: boolean;
569
1693
  file?: string | undefined;
570
1694
  line?: number | undefined;
571
1695
  column?: number | undefined;
1696
+ patchHostId?: string | undefined;
1697
+ primaryTextTargetKey?: string | undefined;
1698
+ textTargets?: {
1699
+ key: string;
1700
+ label: string;
1701
+ file: string;
1702
+ line: number;
1703
+ column: number;
1704
+ tagName: string;
1705
+ textEditable: boolean;
1706
+ patchHostId: string;
1707
+ textPreview?: string | undefined;
1708
+ nuvioId?: string | undefined;
1709
+ insideMap?: boolean | undefined;
1710
+ }[] | undefined;
1711
+ styleTargets?: {
1712
+ key: string;
1713
+ label: string;
1714
+ file: string;
1715
+ line: number;
1716
+ column: number;
1717
+ tagName: string;
1718
+ nuvioId: string;
1719
+ patchHostId: string;
1720
+ classNamePatchable: boolean;
1721
+ riskLevel?: "safe" | "caution" | "unsupported" | undefined;
1722
+ }[] | undefined;
1723
+ hierarchyRole?: "section" | "card" | "table" | "form" | "group" | "layout" | "text" | "button" | "input" | "media" | "unknown" | undefined;
1724
+ parentHostId?: string | undefined;
1725
+ childTargetIds?: string[] | undefined;
1726
+ rowTargets?: {
1727
+ label: string;
1728
+ file: string;
1729
+ line: number;
1730
+ nuvioId: string;
1731
+ rowKey: string;
1732
+ }[] | undefined;
1733
+ tableMeta?: {
1734
+ file: string;
1735
+ line: number;
1736
+ dataBinding: string;
1737
+ columns?: string[] | undefined;
1738
+ } | undefined;
1739
+ tableDataField?: {
1740
+ rowKey: string;
1741
+ arrayName: string;
1742
+ field: string;
1743
+ } | undefined;
572
1744
  errorCode?: string | undefined;
573
1745
  errorMessage?: string | undefined;
574
1746
  }, {
575
- id: string;
576
1747
  type: "selectAck";
1748
+ id: string;
577
1749
  protocolVersion: number;
578
1750
  requestId: string;
579
1751
  ok: boolean;
580
1752
  file?: string | undefined;
581
1753
  line?: number | undefined;
582
1754
  column?: number | undefined;
1755
+ patchHostId?: string | undefined;
1756
+ primaryTextTargetKey?: string | undefined;
1757
+ textTargets?: {
1758
+ key: string;
1759
+ label: string;
1760
+ file: string;
1761
+ line: number;
1762
+ column: number;
1763
+ tagName: string;
1764
+ textEditable: boolean;
1765
+ patchHostId: string;
1766
+ textPreview?: string | undefined;
1767
+ nuvioId?: string | undefined;
1768
+ insideMap?: boolean | undefined;
1769
+ }[] | undefined;
1770
+ styleTargets?: {
1771
+ key: string;
1772
+ label: string;
1773
+ file: string;
1774
+ line: number;
1775
+ column: number;
1776
+ tagName: string;
1777
+ nuvioId: string;
1778
+ patchHostId: string;
1779
+ classNamePatchable: boolean;
1780
+ riskLevel?: "safe" | "caution" | "unsupported" | undefined;
1781
+ }[] | undefined;
1782
+ hierarchyRole?: "section" | "card" | "table" | "form" | "group" | "layout" | "text" | "button" | "input" | "media" | "unknown" | undefined;
1783
+ parentHostId?: string | undefined;
1784
+ childTargetIds?: string[] | undefined;
1785
+ rowTargets?: {
1786
+ label: string;
1787
+ file: string;
1788
+ line: number;
1789
+ nuvioId: string;
1790
+ rowKey: string;
1791
+ }[] | undefined;
1792
+ tableMeta?: {
1793
+ file: string;
1794
+ line: number;
1795
+ dataBinding: string;
1796
+ columns?: string[] | undefined;
1797
+ } | undefined;
1798
+ tableDataField?: {
1799
+ rowKey: string;
1800
+ arrayName: string;
1801
+ field: string;
1802
+ } | undefined;
583
1803
  errorCode?: string | undefined;
584
1804
  errorMessage?: string | undefined;
585
1805
  }>;
@@ -600,8 +1820,8 @@ declare const serverPatchAckSchema: z.ZodObject<{
600
1820
  errorCode: z.ZodOptional<z.ZodString>;
601
1821
  errorMessage: z.ZodOptional<z.ZodString>;
602
1822
  }, "strip", z.ZodTypeAny, {
603
- id: string;
604
1823
  type: "patchAck";
1824
+ id: string;
605
1825
  protocolVersion: number;
606
1826
  requestId: string;
607
1827
  ok: boolean;
@@ -612,8 +1832,8 @@ declare const serverPatchAckSchema: z.ZodObject<{
612
1832
  writtenFile?: string | undefined;
613
1833
  undoStackDepth?: number | undefined;
614
1834
  }, {
615
- id: string;
616
1835
  type: "patchAck";
1836
+ id: string;
617
1837
  protocolVersion: number;
618
1838
  requestId: string;
619
1839
  ok: boolean;
@@ -659,14 +1879,42 @@ declare const serverMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
659
1879
  type: z.ZodLiteral<"pong">;
660
1880
  protocolVersion: z.ZodNumber;
661
1881
  requestId: z.ZodString;
1882
+ diagnostics: z.ZodOptional<z.ZodObject<{
1883
+ viteVersion: z.ZodOptional<z.ZodString>;
1884
+ reactVersion: z.ZodOptional<z.ZodString>;
1885
+ tailwindVersion: z.ZodOptional<z.ZodString>;
1886
+ overlayCssMode: z.ZodOptional<z.ZodLiteral<"self-contained">>;
1887
+ }, "strip", z.ZodTypeAny, {
1888
+ viteVersion?: string | undefined;
1889
+ reactVersion?: string | undefined;
1890
+ tailwindVersion?: string | undefined;
1891
+ overlayCssMode?: "self-contained" | undefined;
1892
+ }, {
1893
+ viteVersion?: string | undefined;
1894
+ reactVersion?: string | undefined;
1895
+ tailwindVersion?: string | undefined;
1896
+ overlayCssMode?: "self-contained" | undefined;
1897
+ }>>;
662
1898
  }, "strip", z.ZodTypeAny, {
663
1899
  type: "pong";
664
1900
  protocolVersion: number;
665
1901
  requestId: string;
1902
+ diagnostics?: {
1903
+ viteVersion?: string | undefined;
1904
+ reactVersion?: string | undefined;
1905
+ tailwindVersion?: string | undefined;
1906
+ overlayCssMode?: "self-contained" | undefined;
1907
+ } | undefined;
666
1908
  }, {
667
1909
  type: "pong";
668
1910
  protocolVersion: number;
669
1911
  requestId: string;
1912
+ diagnostics?: {
1913
+ viteVersion?: string | undefined;
1914
+ reactVersion?: string | undefined;
1915
+ tailwindVersion?: string | undefined;
1916
+ overlayCssMode?: "self-contained" | undefined;
1917
+ } | undefined;
670
1918
  }>, z.ZodObject<{
671
1919
  type: z.ZodLiteral<"error">;
672
1920
  code: z.ZodString;
@@ -691,16 +1939,278 @@ declare const serverMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
691
1939
  file: z.ZodString;
692
1940
  line: z.ZodNumber;
693
1941
  column: z.ZodNumber;
1942
+ /** Source index v2 metadata */
1943
+ tagName: z.ZodOptional<z.ZodString>;
1944
+ componentName: z.ZodOptional<z.ZodString>;
1945
+ hasLiteralClassName: z.ZodOptional<z.ZodBoolean>;
1946
+ classNameValue: z.ZodOptional<z.ZodString>;
1947
+ textEditable: z.ZodOptional<z.ZodBoolean>;
1948
+ structuralEditable: z.ZodOptional<z.ZodBoolean>;
1949
+ riskLevel: z.ZodOptional<z.ZodEnum<["safe", "caution", "unsupported"]>>;
1950
+ unsupportedReasons: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1951
+ insideMap: z.ZodOptional<z.ZodBoolean>;
1952
+ /** Index v3: default id for className patches on this host. */
1953
+ patchHostId: z.ZodOptional<z.ZodString>;
1954
+ /** Index v3: preferred text target key in `textTargets`. */
1955
+ primaryTextTargetKey: z.ZodOptional<z.ZodString>;
1956
+ /** Index v3: descendant (and host) text edit targets. */
1957
+ textTargets: z.ZodOptional<z.ZodArray<z.ZodObject<{
1958
+ /** Stable within host: `data-nuvio-id` or `loc:line:column`. */
1959
+ key: z.ZodString;
1960
+ label: z.ZodString;
1961
+ file: z.ZodString;
1962
+ line: z.ZodNumber;
1963
+ column: z.ZodNumber;
1964
+ tagName: z.ZodString;
1965
+ textEditable: z.ZodBoolean;
1966
+ textPreview: z.ZodOptional<z.ZodString>;
1967
+ /** Present when the text node has its own `data-nuvio-id`. */
1968
+ nuvioId: z.ZodOptional<z.ZodString>;
1969
+ /** Host id used for `mergeTailwindClassName` when patching styles for this target. */
1970
+ patchHostId: z.ZodString;
1971
+ insideMap: z.ZodOptional<z.ZodBoolean>;
1972
+ }, "strip", z.ZodTypeAny, {
1973
+ key: string;
1974
+ label: string;
1975
+ file: string;
1976
+ line: number;
1977
+ column: number;
1978
+ tagName: string;
1979
+ textEditable: boolean;
1980
+ patchHostId: string;
1981
+ textPreview?: string | undefined;
1982
+ nuvioId?: string | undefined;
1983
+ insideMap?: boolean | undefined;
1984
+ }, {
1985
+ key: string;
1986
+ label: string;
1987
+ file: string;
1988
+ line: number;
1989
+ column: number;
1990
+ tagName: string;
1991
+ textEditable: boolean;
1992
+ patchHostId: string;
1993
+ textPreview?: string | undefined;
1994
+ nuvioId?: string | undefined;
1995
+ insideMap?: boolean | undefined;
1996
+ }>, "many">>;
1997
+ /** Index v3: explicit style patch targets for this selected host. */
1998
+ styleTargets: z.ZodOptional<z.ZodArray<z.ZodObject<{
1999
+ /** Stable key within host: `data-nuvio-id` or `host` for selected container. */
2000
+ key: z.ZodString;
2001
+ label: z.ZodString;
2002
+ file: z.ZodString;
2003
+ line: z.ZodNumber;
2004
+ column: z.ZodNumber;
2005
+ tagName: z.ZodString;
2006
+ nuvioId: z.ZodString;
2007
+ patchHostId: z.ZodString;
2008
+ classNamePatchable: z.ZodBoolean;
2009
+ riskLevel: z.ZodOptional<z.ZodEnum<["safe", "caution", "unsupported"]>>;
2010
+ }, "strip", z.ZodTypeAny, {
2011
+ key: string;
2012
+ label: string;
2013
+ file: string;
2014
+ line: number;
2015
+ column: number;
2016
+ tagName: string;
2017
+ nuvioId: string;
2018
+ patchHostId: string;
2019
+ classNamePatchable: boolean;
2020
+ riskLevel?: "safe" | "caution" | "unsupported" | undefined;
2021
+ }, {
2022
+ key: string;
2023
+ label: string;
2024
+ file: string;
2025
+ line: number;
2026
+ column: number;
2027
+ tagName: string;
2028
+ nuvioId: string;
2029
+ patchHostId: string;
2030
+ classNamePatchable: boolean;
2031
+ riskLevel?: "safe" | "caution" | "unsupported" | undefined;
2032
+ }>, "many">>;
2033
+ /** Index v3: coarse host role, used for defaults/hints only. */
2034
+ hierarchyRole: z.ZodOptional<z.ZodEnum<["section", "card", "table", "form", "group", "layout", "text", "button", "input", "media", "unknown"]>>;
2035
+ /** Index v3: nearest ancestor host id in JSX ownership hierarchy. */
2036
+ parentHostId: z.ZodOptional<z.ZodString>;
2037
+ /** Index v3: descendant host ids under this host (if any). */
2038
+ childTargetIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2039
+ /** Index v4: row hosts when this entry is a table section. */
2040
+ rowTargets: z.ZodOptional<z.ZodArray<z.ZodObject<{
2041
+ rowKey: z.ZodString;
2042
+ nuvioId: z.ZodString;
2043
+ label: z.ZodString;
2044
+ file: z.ZodString;
2045
+ line: z.ZodNumber;
2046
+ }, "strip", z.ZodTypeAny, {
2047
+ label: string;
2048
+ file: string;
2049
+ line: number;
2050
+ nuvioId: string;
2051
+ rowKey: string;
2052
+ }, {
2053
+ label: string;
2054
+ file: string;
2055
+ line: number;
2056
+ nuvioId: string;
2057
+ rowKey: string;
2058
+ }>, "many">>;
2059
+ /** Index v4: static table data binding for Tier C. */
2060
+ tableMeta: z.ZodOptional<z.ZodObject<{
2061
+ dataBinding: z.ZodString;
2062
+ file: z.ZodString;
2063
+ line: z.ZodNumber;
2064
+ columns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2065
+ }, "strip", z.ZodTypeAny, {
2066
+ file: string;
2067
+ line: number;
2068
+ dataBinding: string;
2069
+ columns?: string[] | undefined;
2070
+ }, {
2071
+ file: string;
2072
+ line: number;
2073
+ dataBinding: string;
2074
+ columns?: string[] | undefined;
2075
+ }>>;
2076
+ /** Index v4: when this host maps to a `tableData` field edit. */
2077
+ tableDataField: z.ZodOptional<z.ZodObject<{
2078
+ arrayName: z.ZodString;
2079
+ rowKey: z.ZodString;
2080
+ field: z.ZodString;
2081
+ }, "strip", z.ZodTypeAny, {
2082
+ rowKey: string;
2083
+ arrayName: string;
2084
+ field: string;
2085
+ }, {
2086
+ rowKey: string;
2087
+ arrayName: string;
2088
+ field: string;
2089
+ }>>;
694
2090
  }, "strip", z.ZodTypeAny, {
695
- id: string;
696
2091
  file: string;
697
2092
  line: number;
698
2093
  column: number;
699
- }, {
700
2094
  id: string;
2095
+ tagName?: string | undefined;
2096
+ textEditable?: boolean | undefined;
2097
+ patchHostId?: string | undefined;
2098
+ insideMap?: boolean | undefined;
2099
+ riskLevel?: "safe" | "caution" | "unsupported" | undefined;
2100
+ componentName?: string | undefined;
2101
+ hasLiteralClassName?: boolean | undefined;
2102
+ classNameValue?: string | undefined;
2103
+ structuralEditable?: boolean | undefined;
2104
+ unsupportedReasons?: string[] | undefined;
2105
+ primaryTextTargetKey?: string | undefined;
2106
+ textTargets?: {
2107
+ key: string;
2108
+ label: string;
2109
+ file: string;
2110
+ line: number;
2111
+ column: number;
2112
+ tagName: string;
2113
+ textEditable: boolean;
2114
+ patchHostId: string;
2115
+ textPreview?: string | undefined;
2116
+ nuvioId?: string | undefined;
2117
+ insideMap?: boolean | undefined;
2118
+ }[] | undefined;
2119
+ styleTargets?: {
2120
+ key: string;
2121
+ label: string;
2122
+ file: string;
2123
+ line: number;
2124
+ column: number;
2125
+ tagName: string;
2126
+ nuvioId: string;
2127
+ patchHostId: string;
2128
+ classNamePatchable: boolean;
2129
+ riskLevel?: "safe" | "caution" | "unsupported" | undefined;
2130
+ }[] | undefined;
2131
+ hierarchyRole?: "section" | "card" | "table" | "form" | "group" | "layout" | "text" | "button" | "input" | "media" | "unknown" | undefined;
2132
+ parentHostId?: string | undefined;
2133
+ childTargetIds?: string[] | undefined;
2134
+ rowTargets?: {
2135
+ label: string;
2136
+ file: string;
2137
+ line: number;
2138
+ nuvioId: string;
2139
+ rowKey: string;
2140
+ }[] | undefined;
2141
+ tableMeta?: {
2142
+ file: string;
2143
+ line: number;
2144
+ dataBinding: string;
2145
+ columns?: string[] | undefined;
2146
+ } | undefined;
2147
+ tableDataField?: {
2148
+ rowKey: string;
2149
+ arrayName: string;
2150
+ field: string;
2151
+ } | undefined;
2152
+ }, {
701
2153
  file: string;
702
2154
  line: number;
703
2155
  column: number;
2156
+ id: string;
2157
+ tagName?: string | undefined;
2158
+ textEditable?: boolean | undefined;
2159
+ patchHostId?: string | undefined;
2160
+ insideMap?: boolean | undefined;
2161
+ riskLevel?: "safe" | "caution" | "unsupported" | undefined;
2162
+ componentName?: string | undefined;
2163
+ hasLiteralClassName?: boolean | undefined;
2164
+ classNameValue?: string | undefined;
2165
+ structuralEditable?: boolean | undefined;
2166
+ unsupportedReasons?: string[] | undefined;
2167
+ primaryTextTargetKey?: string | undefined;
2168
+ textTargets?: {
2169
+ key: string;
2170
+ label: string;
2171
+ file: string;
2172
+ line: number;
2173
+ column: number;
2174
+ tagName: string;
2175
+ textEditable: boolean;
2176
+ patchHostId: string;
2177
+ textPreview?: string | undefined;
2178
+ nuvioId?: string | undefined;
2179
+ insideMap?: boolean | undefined;
2180
+ }[] | undefined;
2181
+ styleTargets?: {
2182
+ key: string;
2183
+ label: string;
2184
+ file: string;
2185
+ line: number;
2186
+ column: number;
2187
+ tagName: string;
2188
+ nuvioId: string;
2189
+ patchHostId: string;
2190
+ classNamePatchable: boolean;
2191
+ riskLevel?: "safe" | "caution" | "unsupported" | undefined;
2192
+ }[] | undefined;
2193
+ hierarchyRole?: "section" | "card" | "table" | "form" | "group" | "layout" | "text" | "button" | "input" | "media" | "unknown" | undefined;
2194
+ parentHostId?: string | undefined;
2195
+ childTargetIds?: string[] | undefined;
2196
+ rowTargets?: {
2197
+ label: string;
2198
+ file: string;
2199
+ line: number;
2200
+ nuvioId: string;
2201
+ rowKey: string;
2202
+ }[] | undefined;
2203
+ tableMeta?: {
2204
+ file: string;
2205
+ line: number;
2206
+ dataBinding: string;
2207
+ columns?: string[] | undefined;
2208
+ } | undefined;
2209
+ tableDataField?: {
2210
+ rowKey: string;
2211
+ arrayName: string;
2212
+ field: string;
2213
+ } | undefined;
704
2214
  }>, "many">;
705
2215
  duplicateErrors: z.ZodArray<z.ZodObject<{
706
2216
  id: z.ZodString;
@@ -732,14 +2242,87 @@ declare const serverMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
732
2242
  column: number;
733
2243
  }[];
734
2244
  }>, "many">;
2245
+ diagnostics: z.ZodOptional<z.ZodObject<{
2246
+ viteVersion: z.ZodOptional<z.ZodString>;
2247
+ reactVersion: z.ZodOptional<z.ZodString>;
2248
+ tailwindVersion: z.ZodOptional<z.ZodString>;
2249
+ overlayCssMode: z.ZodOptional<z.ZodLiteral<"self-contained">>;
2250
+ }, "strip", z.ZodTypeAny, {
2251
+ viteVersion?: string | undefined;
2252
+ reactVersion?: string | undefined;
2253
+ tailwindVersion?: string | undefined;
2254
+ overlayCssMode?: "self-contained" | undefined;
2255
+ }, {
2256
+ viteVersion?: string | undefined;
2257
+ reactVersion?: string | undefined;
2258
+ tailwindVersion?: string | undefined;
2259
+ overlayCssMode?: "self-contained" | undefined;
2260
+ }>>;
735
2261
  }, "strip", z.ZodTypeAny, {
736
- type: "indexReady";
737
2262
  entries: {
738
- id: string;
739
2263
  file: string;
740
2264
  line: number;
741
2265
  column: number;
2266
+ id: string;
2267
+ tagName?: string | undefined;
2268
+ textEditable?: boolean | undefined;
2269
+ patchHostId?: string | undefined;
2270
+ insideMap?: boolean | undefined;
2271
+ riskLevel?: "safe" | "caution" | "unsupported" | undefined;
2272
+ componentName?: string | undefined;
2273
+ hasLiteralClassName?: boolean | undefined;
2274
+ classNameValue?: string | undefined;
2275
+ structuralEditable?: boolean | undefined;
2276
+ unsupportedReasons?: string[] | undefined;
2277
+ primaryTextTargetKey?: string | undefined;
2278
+ textTargets?: {
2279
+ key: string;
2280
+ label: string;
2281
+ file: string;
2282
+ line: number;
2283
+ column: number;
2284
+ tagName: string;
2285
+ textEditable: boolean;
2286
+ patchHostId: string;
2287
+ textPreview?: string | undefined;
2288
+ nuvioId?: string | undefined;
2289
+ insideMap?: boolean | undefined;
2290
+ }[] | undefined;
2291
+ styleTargets?: {
2292
+ key: string;
2293
+ label: string;
2294
+ file: string;
2295
+ line: number;
2296
+ column: number;
2297
+ tagName: string;
2298
+ nuvioId: string;
2299
+ patchHostId: string;
2300
+ classNamePatchable: boolean;
2301
+ riskLevel?: "safe" | "caution" | "unsupported" | undefined;
2302
+ }[] | undefined;
2303
+ hierarchyRole?: "section" | "card" | "table" | "form" | "group" | "layout" | "text" | "button" | "input" | "media" | "unknown" | undefined;
2304
+ parentHostId?: string | undefined;
2305
+ childTargetIds?: string[] | undefined;
2306
+ rowTargets?: {
2307
+ label: string;
2308
+ file: string;
2309
+ line: number;
2310
+ nuvioId: string;
2311
+ rowKey: string;
2312
+ }[] | undefined;
2313
+ tableMeta?: {
2314
+ file: string;
2315
+ line: number;
2316
+ dataBinding: string;
2317
+ columns?: string[] | undefined;
2318
+ } | undefined;
2319
+ tableDataField?: {
2320
+ rowKey: string;
2321
+ arrayName: string;
2322
+ field: string;
2323
+ } | undefined;
742
2324
  }[];
2325
+ type: "indexReady";
743
2326
  protocolVersion: number;
744
2327
  indexVersion: number;
745
2328
  duplicateErrors: {
@@ -750,14 +2333,77 @@ declare const serverMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
750
2333
  column: number;
751
2334
  }[];
752
2335
  }[];
2336
+ diagnostics?: {
2337
+ viteVersion?: string | undefined;
2338
+ reactVersion?: string | undefined;
2339
+ tailwindVersion?: string | undefined;
2340
+ overlayCssMode?: "self-contained" | undefined;
2341
+ } | undefined;
753
2342
  }, {
754
- type: "indexReady";
755
2343
  entries: {
756
- id: string;
757
2344
  file: string;
758
2345
  line: number;
759
2346
  column: number;
2347
+ id: string;
2348
+ tagName?: string | undefined;
2349
+ textEditable?: boolean | undefined;
2350
+ patchHostId?: string | undefined;
2351
+ insideMap?: boolean | undefined;
2352
+ riskLevel?: "safe" | "caution" | "unsupported" | undefined;
2353
+ componentName?: string | undefined;
2354
+ hasLiteralClassName?: boolean | undefined;
2355
+ classNameValue?: string | undefined;
2356
+ structuralEditable?: boolean | undefined;
2357
+ unsupportedReasons?: string[] | undefined;
2358
+ primaryTextTargetKey?: string | undefined;
2359
+ textTargets?: {
2360
+ key: string;
2361
+ label: string;
2362
+ file: string;
2363
+ line: number;
2364
+ column: number;
2365
+ tagName: string;
2366
+ textEditable: boolean;
2367
+ patchHostId: string;
2368
+ textPreview?: string | undefined;
2369
+ nuvioId?: string | undefined;
2370
+ insideMap?: boolean | undefined;
2371
+ }[] | undefined;
2372
+ styleTargets?: {
2373
+ key: string;
2374
+ label: string;
2375
+ file: string;
2376
+ line: number;
2377
+ column: number;
2378
+ tagName: string;
2379
+ nuvioId: string;
2380
+ patchHostId: string;
2381
+ classNamePatchable: boolean;
2382
+ riskLevel?: "safe" | "caution" | "unsupported" | undefined;
2383
+ }[] | undefined;
2384
+ hierarchyRole?: "section" | "card" | "table" | "form" | "group" | "layout" | "text" | "button" | "input" | "media" | "unknown" | undefined;
2385
+ parentHostId?: string | undefined;
2386
+ childTargetIds?: string[] | undefined;
2387
+ rowTargets?: {
2388
+ label: string;
2389
+ file: string;
2390
+ line: number;
2391
+ nuvioId: string;
2392
+ rowKey: string;
2393
+ }[] | undefined;
2394
+ tableMeta?: {
2395
+ file: string;
2396
+ line: number;
2397
+ dataBinding: string;
2398
+ columns?: string[] | undefined;
2399
+ } | undefined;
2400
+ tableDataField?: {
2401
+ rowKey: string;
2402
+ arrayName: string;
2403
+ field: string;
2404
+ } | undefined;
760
2405
  }[];
2406
+ type: "indexReady";
761
2407
  protocolVersion: number;
762
2408
  indexVersion: number;
763
2409
  duplicateErrors: {
@@ -768,6 +2414,12 @@ declare const serverMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
768
2414
  column: number;
769
2415
  }[];
770
2416
  }[];
2417
+ diagnostics?: {
2418
+ viteVersion?: string | undefined;
2419
+ reactVersion?: string | undefined;
2420
+ tailwindVersion?: string | undefined;
2421
+ overlayCssMode?: "self-contained" | undefined;
2422
+ } | undefined;
771
2423
  }>, z.ZodObject<{
772
2424
  type: z.ZodLiteral<"selectAck">;
773
2425
  protocolVersion: z.ZodNumber;
@@ -777,28 +2429,253 @@ declare const serverMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
777
2429
  file: z.ZodOptional<z.ZodString>;
778
2430
  line: z.ZodOptional<z.ZodNumber>;
779
2431
  column: z.ZodOptional<z.ZodNumber>;
2432
+ /** Index v3 snapshot for the selected host (also on `indexReady` entries). */
2433
+ patchHostId: z.ZodOptional<z.ZodString>;
2434
+ primaryTextTargetKey: z.ZodOptional<z.ZodString>;
2435
+ textTargets: z.ZodOptional<z.ZodArray<z.ZodObject<{
2436
+ /** Stable within host: `data-nuvio-id` or `loc:line:column`. */
2437
+ key: z.ZodString;
2438
+ label: z.ZodString;
2439
+ file: z.ZodString;
2440
+ line: z.ZodNumber;
2441
+ column: z.ZodNumber;
2442
+ tagName: z.ZodString;
2443
+ textEditable: z.ZodBoolean;
2444
+ textPreview: z.ZodOptional<z.ZodString>;
2445
+ /** Present when the text node has its own `data-nuvio-id`. */
2446
+ nuvioId: z.ZodOptional<z.ZodString>;
2447
+ /** Host id used for `mergeTailwindClassName` when patching styles for this target. */
2448
+ patchHostId: z.ZodString;
2449
+ insideMap: z.ZodOptional<z.ZodBoolean>;
2450
+ }, "strip", z.ZodTypeAny, {
2451
+ key: string;
2452
+ label: string;
2453
+ file: string;
2454
+ line: number;
2455
+ column: number;
2456
+ tagName: string;
2457
+ textEditable: boolean;
2458
+ patchHostId: string;
2459
+ textPreview?: string | undefined;
2460
+ nuvioId?: string | undefined;
2461
+ insideMap?: boolean | undefined;
2462
+ }, {
2463
+ key: string;
2464
+ label: string;
2465
+ file: string;
2466
+ line: number;
2467
+ column: number;
2468
+ tagName: string;
2469
+ textEditable: boolean;
2470
+ patchHostId: string;
2471
+ textPreview?: string | undefined;
2472
+ nuvioId?: string | undefined;
2473
+ insideMap?: boolean | undefined;
2474
+ }>, "many">>;
2475
+ styleTargets: z.ZodOptional<z.ZodArray<z.ZodObject<{
2476
+ /** Stable key within host: `data-nuvio-id` or `host` for selected container. */
2477
+ key: z.ZodString;
2478
+ label: z.ZodString;
2479
+ file: z.ZodString;
2480
+ line: z.ZodNumber;
2481
+ column: z.ZodNumber;
2482
+ tagName: z.ZodString;
2483
+ nuvioId: z.ZodString;
2484
+ patchHostId: z.ZodString;
2485
+ classNamePatchable: z.ZodBoolean;
2486
+ riskLevel: z.ZodOptional<z.ZodEnum<["safe", "caution", "unsupported"]>>;
2487
+ }, "strip", z.ZodTypeAny, {
2488
+ key: string;
2489
+ label: string;
2490
+ file: string;
2491
+ line: number;
2492
+ column: number;
2493
+ tagName: string;
2494
+ nuvioId: string;
2495
+ patchHostId: string;
2496
+ classNamePatchable: boolean;
2497
+ riskLevel?: "safe" | "caution" | "unsupported" | undefined;
2498
+ }, {
2499
+ key: string;
2500
+ label: string;
2501
+ file: string;
2502
+ line: number;
2503
+ column: number;
2504
+ tagName: string;
2505
+ nuvioId: string;
2506
+ patchHostId: string;
2507
+ classNamePatchable: boolean;
2508
+ riskLevel?: "safe" | "caution" | "unsupported" | undefined;
2509
+ }>, "many">>;
2510
+ hierarchyRole: z.ZodOptional<z.ZodEnum<["section", "card", "table", "form", "group", "layout", "text", "button", "input", "media", "unknown"]>>;
2511
+ parentHostId: z.ZodOptional<z.ZodString>;
2512
+ childTargetIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2513
+ rowTargets: z.ZodOptional<z.ZodArray<z.ZodObject<{
2514
+ rowKey: z.ZodString;
2515
+ nuvioId: z.ZodString;
2516
+ label: z.ZodString;
2517
+ file: z.ZodString;
2518
+ line: z.ZodNumber;
2519
+ }, "strip", z.ZodTypeAny, {
2520
+ label: string;
2521
+ file: string;
2522
+ line: number;
2523
+ nuvioId: string;
2524
+ rowKey: string;
2525
+ }, {
2526
+ label: string;
2527
+ file: string;
2528
+ line: number;
2529
+ nuvioId: string;
2530
+ rowKey: string;
2531
+ }>, "many">>;
2532
+ tableMeta: z.ZodOptional<z.ZodObject<{
2533
+ dataBinding: z.ZodString;
2534
+ file: z.ZodString;
2535
+ line: z.ZodNumber;
2536
+ columns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2537
+ }, "strip", z.ZodTypeAny, {
2538
+ file: string;
2539
+ line: number;
2540
+ dataBinding: string;
2541
+ columns?: string[] | undefined;
2542
+ }, {
2543
+ file: string;
2544
+ line: number;
2545
+ dataBinding: string;
2546
+ columns?: string[] | undefined;
2547
+ }>>;
2548
+ tableDataField: z.ZodOptional<z.ZodObject<{
2549
+ arrayName: z.ZodString;
2550
+ rowKey: z.ZodString;
2551
+ field: z.ZodString;
2552
+ }, "strip", z.ZodTypeAny, {
2553
+ rowKey: string;
2554
+ arrayName: string;
2555
+ field: string;
2556
+ }, {
2557
+ rowKey: string;
2558
+ arrayName: string;
2559
+ field: string;
2560
+ }>>;
780
2561
  errorCode: z.ZodOptional<z.ZodString>;
781
2562
  errorMessage: z.ZodOptional<z.ZodString>;
782
2563
  }, "strip", z.ZodTypeAny, {
783
- id: string;
784
2564
  type: "selectAck";
2565
+ id: string;
785
2566
  protocolVersion: number;
786
2567
  requestId: string;
787
2568
  ok: boolean;
788
2569
  file?: string | undefined;
789
2570
  line?: number | undefined;
790
2571
  column?: number | undefined;
2572
+ patchHostId?: string | undefined;
2573
+ primaryTextTargetKey?: string | undefined;
2574
+ textTargets?: {
2575
+ key: string;
2576
+ label: string;
2577
+ file: string;
2578
+ line: number;
2579
+ column: number;
2580
+ tagName: string;
2581
+ textEditable: boolean;
2582
+ patchHostId: string;
2583
+ textPreview?: string | undefined;
2584
+ nuvioId?: string | undefined;
2585
+ insideMap?: boolean | undefined;
2586
+ }[] | undefined;
2587
+ styleTargets?: {
2588
+ key: string;
2589
+ label: string;
2590
+ file: string;
2591
+ line: number;
2592
+ column: number;
2593
+ tagName: string;
2594
+ nuvioId: string;
2595
+ patchHostId: string;
2596
+ classNamePatchable: boolean;
2597
+ riskLevel?: "safe" | "caution" | "unsupported" | undefined;
2598
+ }[] | undefined;
2599
+ hierarchyRole?: "section" | "card" | "table" | "form" | "group" | "layout" | "text" | "button" | "input" | "media" | "unknown" | undefined;
2600
+ parentHostId?: string | undefined;
2601
+ childTargetIds?: string[] | undefined;
2602
+ rowTargets?: {
2603
+ label: string;
2604
+ file: string;
2605
+ line: number;
2606
+ nuvioId: string;
2607
+ rowKey: string;
2608
+ }[] | undefined;
2609
+ tableMeta?: {
2610
+ file: string;
2611
+ line: number;
2612
+ dataBinding: string;
2613
+ columns?: string[] | undefined;
2614
+ } | undefined;
2615
+ tableDataField?: {
2616
+ rowKey: string;
2617
+ arrayName: string;
2618
+ field: string;
2619
+ } | undefined;
791
2620
  errorCode?: string | undefined;
792
2621
  errorMessage?: string | undefined;
793
2622
  }, {
794
- id: string;
795
2623
  type: "selectAck";
2624
+ id: string;
796
2625
  protocolVersion: number;
797
2626
  requestId: string;
798
2627
  ok: boolean;
799
2628
  file?: string | undefined;
800
2629
  line?: number | undefined;
801
2630
  column?: number | undefined;
2631
+ patchHostId?: string | undefined;
2632
+ primaryTextTargetKey?: string | undefined;
2633
+ textTargets?: {
2634
+ key: string;
2635
+ label: string;
2636
+ file: string;
2637
+ line: number;
2638
+ column: number;
2639
+ tagName: string;
2640
+ textEditable: boolean;
2641
+ patchHostId: string;
2642
+ textPreview?: string | undefined;
2643
+ nuvioId?: string | undefined;
2644
+ insideMap?: boolean | undefined;
2645
+ }[] | undefined;
2646
+ styleTargets?: {
2647
+ key: string;
2648
+ label: string;
2649
+ file: string;
2650
+ line: number;
2651
+ column: number;
2652
+ tagName: string;
2653
+ nuvioId: string;
2654
+ patchHostId: string;
2655
+ classNamePatchable: boolean;
2656
+ riskLevel?: "safe" | "caution" | "unsupported" | undefined;
2657
+ }[] | undefined;
2658
+ hierarchyRole?: "section" | "card" | "table" | "form" | "group" | "layout" | "text" | "button" | "input" | "media" | "unknown" | undefined;
2659
+ parentHostId?: string | undefined;
2660
+ childTargetIds?: string[] | undefined;
2661
+ rowTargets?: {
2662
+ label: string;
2663
+ file: string;
2664
+ line: number;
2665
+ nuvioId: string;
2666
+ rowKey: string;
2667
+ }[] | undefined;
2668
+ tableMeta?: {
2669
+ file: string;
2670
+ line: number;
2671
+ dataBinding: string;
2672
+ columns?: string[] | undefined;
2673
+ } | undefined;
2674
+ tableDataField?: {
2675
+ rowKey: string;
2676
+ arrayName: string;
2677
+ field: string;
2678
+ } | undefined;
802
2679
  errorCode?: string | undefined;
803
2680
  errorMessage?: string | undefined;
804
2681
  }>, z.ZodObject<{
@@ -817,8 +2694,8 @@ declare const serverMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
817
2694
  errorCode: z.ZodOptional<z.ZodString>;
818
2695
  errorMessage: z.ZodOptional<z.ZodString>;
819
2696
  }, "strip", z.ZodTypeAny, {
820
- id: string;
821
2697
  type: "patchAck";
2698
+ id: string;
822
2699
  protocolVersion: number;
823
2700
  requestId: string;
824
2701
  ok: boolean;
@@ -829,8 +2706,8 @@ declare const serverMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
829
2706
  writtenFile?: string | undefined;
830
2707
  undoStackDepth?: number | undefined;
831
2708
  }, {
832
- id: string;
833
2709
  type: "patchAck";
2710
+ id: string;
834
2711
  protocolVersion: number;
835
2712
  requestId: string;
836
2713
  ok: boolean;
@@ -874,4 +2751,4 @@ declare function parseClientMessage(raw: string): ClientMessage | null;
874
2751
  declare function parseServerMessage(raw: string): ServerMessage | null;
875
2752
  declare function serializeServerMessage(msg: ServerMessage): string;
876
2753
 
877
- export { type ClientMessage, type ClientPatchApply, type ClientPatchUndo, type ClientPing, type ClientSelect, type DuplicateIdError, type IndexWireEntry, NUVIO_WS_PATH, PROTOCOL_VERSION, type PatchOp, type ServerIndexReady, type ServerMessage, type ServerPatchAck, type ServerPatchUndoAck, type ServerSelectAck, clientMessageSchema, clientPatchApplySchema, clientPatchUndoSchema, clientPingSchema, clientSelectSchema, duplicateIdErrorSchema, duplicateIdOccurrenceSchema, indexEntrySchema, parseClientMessage, parseServerMessage, patchOpDuplicateHostSchema, patchOpMergeTailwindSchema, patchOpMoveSiblingSchema, patchOpSchema, patchOpSetHiddenSchema, patchOpSetTextSchema, serializeServerMessage, serverErrorSchema, serverIndexReadySchema, serverMessageSchema, serverPatchAckSchema, serverPatchUndoAckSchema, serverPongSchema, serverSelectAckSchema };
2754
+ export { type Breakpoint, type ClientMessage, type ClientPatchApply, type ClientPatchUndo, type ClientPing, type ClientSelect, type DuplicateIdError, type HierarchyRole, type IndexWireEntry, NUVIO_WS_PATH, PROTOCOL_VERSION, type PatchOp, type RiskLevel, type RowWireTarget, type RuntimeDiagnostics, type ServerIndexReady, type ServerMessage, type ServerPatchAck, type ServerPatchUndoAck, type ServerSelectAck, type StyleWireTarget, type TableDataFieldBinding, type TableMeta, type TextWireTarget, breakpointSchema, clientMessageSchema, clientPatchApplySchema, clientPatchUndoSchema, clientPingSchema, clientSelectSchema, duplicateIdErrorSchema, duplicateIdOccurrenceSchema, hierarchyRoleSchema, indexEntrySchema, parseClientMessage, parseServerMessage, patchOpDuplicateHostSchema, patchOpMergeTailwindSchema, patchOpMoveSiblingSchema, patchOpSchema, patchOpSetHiddenSchema, patchOpSetTableDataFieldSchema, patchOpSetTextSchema, riskLevelSchema, rowTargetSchema, runtimeDiagnosticsSchema, serializeServerMessage, serverErrorSchema, serverIndexReadySchema, serverMessageSchema, serverPatchAckSchema, serverPatchUndoAckSchema, serverPongSchema, serverSelectAckSchema, styleTargetSchema, tableDataFieldSchema, tableMetaSchema, textTargetSchema };