@nuvio/shared 1.0.0 → 1.1.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.
package/dist/index.d.ts CHANGED
@@ -1,2922 +1,151 @@
1
- import { z } from 'zod';
1
+ import { B as BrandApplyAction, a as BrandConfig, P as PatchOp, I as IndexWireEntry, b as BrandFragmentHostHint, c as PccCategory, d as PccManifest, D as DuplicateIdError, L as LibraryId } from './coverage-contract-BN9lnw9L.js';
2
+ export { e as BRAND_ACCENT_COLORS, f as BRAND_ACCENT_SLOT_BY_ACTION, g as BRAND_APPLY_ACTIONS, h as BRAND_BUTTON_HOVERS, i as BRAND_BUTTON_HOVER_FIELD_LABEL, j as BRAND_BUTTON_VARIANTS, k as BRAND_BUTTON_VARIANT_FIELD_LABEL, l as BRAND_CARD_HOVERS, m as BRAND_CARD_HOVER_FIELD_LABEL, n as BRAND_CARD_SHADOWS, o as BRAND_CARD_SHADOW_FIELD_LABEL, p as BRAND_COLORS, q as BRAND_DENSITY, r as BRAND_DENSITY_FIELD_LABEL, s as BRAND_PRESET_DIMENSIONS_BY_ACTION, t as BRAND_RADIUS, u as BRAND_RADIUS_FIELD_LABEL, v as BRAND_SURFACES, w as BRAND_SURFACE_FIELD_LABEL, x as BRAND_TYPOGRAPHY, y as BrandAccentColor, z as BrandAccentSlot, A as BrandButtonHover, C as BrandButtonVariant, E as BrandCardHover, F as BrandCardShadow, G as BrandColor, H as BrandConfigFileV2, J as BrandDensity, K as BrandPresetDimension, M as BrandRadius, N as BrandSurface, O as BrandTokens, Q as BrandTypography, R as Breakpoint, S as ClientMessage, T as ClientPatchApply, U as ClientPatchUndo, V as ClientPing, W as ClientSelect, X as ClientTagElement, Y as DEFAULT_BRAND_CONFIG, Z as HierarchyRole, _ as PCC_BRANDABLE_CATEGORIES, $ as PCC_REJECTED_CATEGORIES, a0 as PCC_SUPPORTED_CATEGORIES, a1 as PROTOCOL_VERSION, a2 as PccCategoryConfig, a3 as PccManifestParseError, a4 as PccRejectedCategory, a5 as RiskLevel, a6 as RowWireTarget, a7 as RuntimeDiagnostics, a8 as ServerIndexReady, a9 as ServerMessage, aa as ServerPatchAck, ab as ServerPatchUndoAck, ac as ServerSelectAck, ad as ServerTagElementAck, ae as StyleWireTarget, af as TableDataFieldBinding, ag as TableMeta, ah as TextWireTarget, ai as WireClassNameMode, aj as brandColorsForAction, ak as brandConfigSchema, al as brandConfigsEqual, am as brandFragmentHostHint, an as brandPresetDimensionsForAction, ao as breakpointSchema, ap as buildBrandClassFragment, aq as buildBrandPatchOps, ar as buildBrandPreviewSummary, as as classNameModeSchema, at as clientMessageSchema, au as clientPatchApplySchema, av as clientPatchUndoSchema, aw as clientPingSchema, ax as clientSelectSchema, ay as clientTagElementSchema, az as defaultPccManifestPath, aA as duplicateIdErrorSchema, aB as duplicateIdOccurrenceSchema, aC as getBrandButtonHoverLabel, aD as getBrandButtonVariantLabel, aE as getBrandCardHoverLabel, aF as getBrandCardShadowLabel, aG as getBrandColorLabel, aH as getBrandColorSlotLabel, aI as getBrandDensityLabel, aJ as getBrandRadiusLabel, aK as getBrandSurfaceLabel, aL as getBrandTypographyFieldLabel, aM as getBrandTypographyLabel, aN as hierarchyRoleSchema, aO as indexEntrySchema, aP as isBrandAccentColor, aQ as isPccBrandableCategory, aR as isPccRejectedCategory, aS as isPccSupportedCategory, aT as libraryIdSchema, aU as normalizeBrandConfig, aV as parseClientMessage, aW as parsePccManifest, aX as parseServerMessage, aY as patchOpDuplicateHostSchema, aZ as patchOpMergeTailwindSchema, a_ as patchOpMoveSiblingSchema, a$ as patchOpSchema, b0 as patchOpSetHiddenSchema, b1 as patchOpSetTableDataFieldSchema, b2 as patchOpSetTextSchema, b3 as pccCategoryLabel, b4 as pccHostsForCategory, b5 as riskLevelSchema, b6 as rowTargetSchema, b7 as runtimeDiagnosticsSchema, b8 as serializeBrandConfig, b9 as serializeServerMessage, ba as serverErrorSchema, bb as serverIndexReadySchema, bc as serverMessageSchema, bd as serverPatchAckSchema, be as serverPatchUndoAckSchema, bf as serverPongSchema, bg as serverSelectAckSchema, bh as serverTagElementAckSchema, bi as styleTargetSchema, bj as tableDataFieldSchema, bk as tableMetaSchema, bl as textTargetSchema } from './coverage-contract-BN9lnw9L.js';
3
+ import 'zod';
2
4
 
3
5
  /** WebSocket path on the Vite dev server (must match `configureServer` upgrade handler). */
4
6
  declare const NUVIO_WS_PATH: "/__nuvio/ws";
7
+ /** HTTP path for reading/writing `nuvio/brand.json` in dev. */
8
+ declare const NUVIO_BRAND_PATH: "/__nuvio/brand";
9
+ /** HTTP path for resolving `nuvio/pages/*.pcc.yaml` by route in dev. */
10
+ declare const NUVIO_PCC_PATH: "/__nuvio/pcc";
5
11
 
6
- /** Bump when wire payloads change incompatibly. */
7
- declare const PROTOCOL_VERSION: 8;
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
- }, {
12
+ /** Lowercase plural labels for page discovery copy (e.g. "7 cards · 2 buttons"). */
13
+ declare const BRAND_PAGE_DISCOVERY_PLURALS: Record<BrandApplyAction, string>;
14
+ type BrandPageDiscoveryCounts = Readonly<Partial<Record<BrandApplyAction, number>>>;
15
+ /** Plain-language summary of brandable categories visible on the current page. */
16
+ declare function buildBrandPageDiscoveryLine(counts: BrandPageDiscoveryCounts): string | null;
17
+
18
+ type BrandBulkTarget = {
19
+ hostId: string;
20
+ entryId: string;
104
21
  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>;
145
- /** Per-host className patch strategy (index v5 / v0.7). */
146
- declare const classNameModeSchema: z.ZodEnum<["literal-only", "cn-basic", "cn-conditional", "classnames-static", "unsupported"]>;
147
- type WireClassNameMode = z.infer<typeof classNameModeSchema>;
148
- /** Detected UI library profile (v0.8). */
149
- declare const libraryIdSchema: z.ZodEnum<["shadcn", "tailadmin", "daisyui"]>;
150
- type LibraryId = z.infer<typeof libraryIdSchema>;
151
- declare const indexEntrySchema: z.ZodObject<{
152
- id: z.ZodString;
153
- file: z.ZodString;
154
- line: z.ZodNumber;
155
- column: z.ZodNumber;
156
- /** Source index v2 metadata */
157
- tagName: z.ZodOptional<z.ZodString>;
158
- componentName: z.ZodOptional<z.ZodString>;
159
- hasLiteralClassName: z.ZodOptional<z.ZodBoolean>;
160
- classNameValue: z.ZodOptional<z.ZodString>;
161
- textEditable: z.ZodOptional<z.ZodBoolean>;
162
- structuralEditable: z.ZodOptional<z.ZodBoolean>;
163
- riskLevel: z.ZodOptional<z.ZodEnum<["safe", "caution", "unsupported"]>>;
164
- unsupportedReasons: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
165
- insideMap: z.ZodOptional<z.ZodBoolean>;
166
- /** Index v3: default id for className patches on this host. */
167
- patchHostId: z.ZodOptional<z.ZodString>;
168
- /** Index v3: preferred text target key in `textTargets`. */
169
- primaryTextTargetKey: z.ZodOptional<z.ZodString>;
170
- /** Index v3: descendant (and host) text edit targets. */
171
- textTargets: z.ZodOptional<z.ZodArray<z.ZodObject<{
172
- /** Stable within host: `data-nuvio-id` or `loc:line:column`. */
173
- key: z.ZodString;
174
- label: z.ZodString;
175
- file: z.ZodString;
176
- line: z.ZodNumber;
177
- column: z.ZodNumber;
178
- tagName: z.ZodString;
179
- textEditable: z.ZodBoolean;
180
- textPreview: z.ZodOptional<z.ZodString>;
181
- /** Present when the text node has its own `data-nuvio-id`. */
182
- nuvioId: z.ZodOptional<z.ZodString>;
183
- /** Host id used for `mergeTailwindClassName` when patching styles for this target. */
184
- patchHostId: z.ZodString;
185
- insideMap: z.ZodOptional<z.ZodBoolean>;
186
- }, "strip", z.ZodTypeAny, {
187
- key: string;
188
- label: string;
189
- file: string;
190
- line: number;
191
- column: number;
192
- tagName: string;
193
- textEditable: boolean;
194
- patchHostId: string;
195
- textPreview?: string | undefined;
196
- nuvioId?: string | undefined;
197
- insideMap?: boolean | undefined;
198
- }, {
199
- key: string;
200
- label: string;
201
- file: string;
202
- line: number;
203
- column: number;
204
- tagName: string;
205
- textEditable: boolean;
206
- patchHostId: string;
207
- textPreview?: string | undefined;
208
- nuvioId?: string | undefined;
209
- insideMap?: boolean | undefined;
210
- }>, "many">>;
211
- /** Index v3: explicit style patch targets for this selected host. */
212
- styleTargets: z.ZodOptional<z.ZodArray<z.ZodObject<{
213
- /** Stable key within host: `data-nuvio-id` or `host` for selected container. */
214
- key: z.ZodString;
215
- label: z.ZodString;
216
- file: z.ZodString;
217
- line: z.ZodNumber;
218
- column: z.ZodNumber;
219
- tagName: z.ZodString;
220
- nuvioId: z.ZodString;
221
- patchHostId: z.ZodString;
222
- classNamePatchable: z.ZodBoolean;
223
- riskLevel: z.ZodOptional<z.ZodEnum<["safe", "caution", "unsupported"]>>;
224
- }, "strip", z.ZodTypeAny, {
225
- key: string;
226
- label: string;
227
- file: string;
228
- line: number;
229
- column: number;
230
- tagName: string;
231
- nuvioId: string;
232
- patchHostId: string;
233
- classNamePatchable: boolean;
234
- riskLevel?: "safe" | "caution" | "unsupported" | undefined;
235
- }, {
236
- key: string;
237
- label: string;
238
- file: string;
239
- line: number;
240
- column: number;
241
- tagName: string;
242
- nuvioId: string;
243
- patchHostId: string;
244
- classNamePatchable: boolean;
245
- riskLevel?: "safe" | "caution" | "unsupported" | undefined;
246
- }>, "many">>;
247
- /** Index v3: coarse host role, used for defaults/hints only. */
248
- hierarchyRole: z.ZodOptional<z.ZodEnum<["section", "card", "table", "form", "group", "layout", "text", "button", "input", "media", "unknown"]>>;
249
- /** Index v3: nearest ancestor host id in JSX ownership hierarchy. */
250
- parentHostId: z.ZodOptional<z.ZodString>;
251
- /** Index v3: descendant host ids under this host (if any). */
252
- childTargetIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
253
- /** Index v4: row hosts when this entry is a table section. */
254
- rowTargets: z.ZodOptional<z.ZodArray<z.ZodObject<{
255
- rowKey: z.ZodString;
256
- nuvioId: z.ZodString;
257
- label: z.ZodString;
258
- file: z.ZodString;
259
- line: z.ZodNumber;
260
- }, "strip", z.ZodTypeAny, {
261
- label: string;
262
- file: string;
263
- line: number;
264
- nuvioId: string;
265
- rowKey: string;
266
- }, {
267
- label: string;
268
- file: string;
269
- line: number;
270
- nuvioId: string;
271
- rowKey: string;
272
- }>, "many">>;
273
- /** Index v4: static table data binding for Tier C. */
274
- tableMeta: z.ZodOptional<z.ZodObject<{
275
- dataBinding: z.ZodString;
276
- file: z.ZodString;
277
- line: z.ZodNumber;
278
- columns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
279
- }, "strip", z.ZodTypeAny, {
280
- file: string;
281
- line: number;
282
- dataBinding: string;
283
- columns?: string[] | undefined;
284
- }, {
285
- file: string;
286
- line: number;
287
- dataBinding: string;
288
- columns?: string[] | undefined;
289
- }>>;
290
- /** Index v4: when this host maps to a `tableData` field edit. */
291
- tableDataField: z.ZodOptional<z.ZodObject<{
292
- arrayName: z.ZodString;
293
- rowKey: z.ZodString;
294
- field: z.ZodString;
295
- }, "strip", z.ZodTypeAny, {
296
- rowKey: string;
297
- arrayName: string;
298
- field: string;
299
- }, {
300
- rowKey: string;
301
- arrayName: string;
302
- field: string;
303
- }>>;
304
- /** Index v5: detected className expression mode for patch routing. */
305
- classNameMode: z.ZodOptional<z.ZodEnum<["literal-only", "cn-basic", "cn-conditional", "classnames-static", "unsupported"]>>;
306
- /** Index v6: shadcn / TailAdmin / DaisyUI hint for this host. */
307
- libraryHint: z.ZodOptional<z.ZodEnum<["shadcn", "tailadmin", "daisyui"]>>;
308
- }, "strip", z.ZodTypeAny, {
309
- file: string;
310
- line: number;
311
- column: number;
312
- id: string;
313
- tagName?: string | undefined;
314
- textEditable?: boolean | undefined;
315
- patchHostId?: string | undefined;
316
- insideMap?: boolean | undefined;
317
- riskLevel?: "safe" | "caution" | "unsupported" | undefined;
318
- componentName?: string | undefined;
319
- hasLiteralClassName?: boolean | undefined;
320
- classNameValue?: string | undefined;
321
- structuralEditable?: boolean | undefined;
322
- unsupportedReasons?: string[] | undefined;
323
- primaryTextTargetKey?: string | undefined;
324
- textTargets?: {
325
- key: string;
326
- label: string;
327
- file: string;
328
- line: number;
329
- column: number;
330
- tagName: string;
331
- textEditable: boolean;
332
- patchHostId: string;
333
- textPreview?: string | undefined;
334
- nuvioId?: string | undefined;
335
- insideMap?: boolean | undefined;
336
- }[] | undefined;
337
- styleTargets?: {
338
- key: string;
339
- label: string;
340
- file: string;
341
- line: number;
342
- column: number;
343
- tagName: string;
344
- nuvioId: string;
345
- patchHostId: string;
346
- classNamePatchable: boolean;
347
- riskLevel?: "safe" | "caution" | "unsupported" | undefined;
348
- }[] | undefined;
349
- hierarchyRole?: "section" | "card" | "table" | "form" | "group" | "layout" | "text" | "button" | "input" | "media" | "unknown" | undefined;
350
- parentHostId?: string | undefined;
351
- childTargetIds?: string[] | undefined;
352
- rowTargets?: {
353
- label: string;
354
- file: string;
355
- line: number;
356
- nuvioId: string;
357
- rowKey: string;
358
- }[] | undefined;
359
- tableMeta?: {
360
- file: string;
361
- line: number;
362
- dataBinding: string;
363
- columns?: string[] | undefined;
364
- } | undefined;
365
- tableDataField?: {
366
- rowKey: string;
367
- arrayName: string;
368
- field: string;
369
- } | undefined;
370
- classNameMode?: "unsupported" | "literal-only" | "cn-basic" | "cn-conditional" | "classnames-static" | undefined;
371
- libraryHint?: "shadcn" | "tailadmin" | "daisyui" | undefined;
372
- }, {
373
- file: string;
374
- line: number;
375
- column: number;
376
- id: string;
377
- tagName?: string | undefined;
378
- textEditable?: boolean | undefined;
379
- patchHostId?: string | undefined;
380
- insideMap?: boolean | undefined;
381
- riskLevel?: "safe" | "caution" | "unsupported" | undefined;
382
- componentName?: string | undefined;
383
- hasLiteralClassName?: boolean | undefined;
384
- classNameValue?: string | undefined;
385
- structuralEditable?: boolean | undefined;
386
- unsupportedReasons?: string[] | undefined;
387
- primaryTextTargetKey?: string | undefined;
388
- textTargets?: {
389
- key: string;
390
- label: string;
391
- file: string;
392
- line: number;
393
- column: number;
394
- tagName: string;
395
- textEditable: boolean;
396
- patchHostId: string;
397
- textPreview?: string | undefined;
398
- nuvioId?: string | undefined;
399
- insideMap?: boolean | undefined;
400
- }[] | undefined;
401
- styleTargets?: {
402
- key: string;
403
- label: string;
404
- file: string;
405
- line: number;
406
- column: number;
407
- tagName: string;
408
- nuvioId: string;
409
- patchHostId: string;
410
- classNamePatchable: boolean;
411
- riskLevel?: "safe" | "caution" | "unsupported" | undefined;
412
- }[] | undefined;
413
- hierarchyRole?: "section" | "card" | "table" | "form" | "group" | "layout" | "text" | "button" | "input" | "media" | "unknown" | undefined;
414
- parentHostId?: string | undefined;
415
- childTargetIds?: string[] | undefined;
416
- rowTargets?: {
417
- label: string;
418
- file: string;
419
- line: number;
420
- nuvioId: string;
421
- rowKey: string;
422
- }[] | undefined;
423
- tableMeta?: {
424
- file: string;
425
- line: number;
426
- dataBinding: string;
427
- columns?: string[] | undefined;
428
- } | undefined;
429
- tableDataField?: {
430
- rowKey: string;
431
- arrayName: string;
432
- field: string;
433
- } | undefined;
434
- classNameMode?: "unsupported" | "literal-only" | "cn-basic" | "cn-conditional" | "classnames-static" | undefined;
435
- libraryHint?: "shadcn" | "tailadmin" | "daisyui" | undefined;
436
- }>;
437
- type IndexWireEntry = z.infer<typeof indexEntrySchema>;
438
- declare const runtimeDiagnosticsSchema: z.ZodObject<{
439
- viteVersion: z.ZodOptional<z.ZodString>;
440
- reactVersion: z.ZodOptional<z.ZodString>;
441
- tailwindVersion: z.ZodOptional<z.ZodString>;
442
- overlayCssMode: z.ZodOptional<z.ZodLiteral<"self-contained">>;
443
- /** Project-level library detection (v0.8). */
444
- detectedLibraries: z.ZodOptional<z.ZodArray<z.ZodEnum<["shadcn", "tailadmin", "daisyui"]>, "many">>;
445
- }, "strip", z.ZodTypeAny, {
446
- viteVersion?: string | undefined;
447
- reactVersion?: string | undefined;
448
- tailwindVersion?: string | undefined;
449
- overlayCssMode?: "self-contained" | undefined;
450
- detectedLibraries?: ("shadcn" | "tailadmin" | "daisyui")[] | undefined;
451
- }, {
452
- viteVersion?: string | undefined;
453
- reactVersion?: string | undefined;
454
- tailwindVersion?: string | undefined;
455
- overlayCssMode?: "self-contained" | undefined;
456
- detectedLibraries?: ("shadcn" | "tailadmin" | "daisyui")[] | undefined;
457
- }>;
458
- type RuntimeDiagnostics = z.infer<typeof runtimeDiagnosticsSchema>;
459
- declare const duplicateIdOccurrenceSchema: z.ZodObject<{
460
- file: z.ZodString;
461
- line: z.ZodNumber;
462
- column: z.ZodNumber;
463
- }, "strip", z.ZodTypeAny, {
464
- file: string;
465
- line: number;
466
- column: number;
467
- }, {
468
- file: string;
469
- line: number;
470
- column: number;
471
- }>;
472
- declare const duplicateIdErrorSchema: z.ZodObject<{
473
- id: z.ZodString;
474
- occurrences: z.ZodArray<z.ZodObject<{
475
- file: z.ZodString;
476
- line: z.ZodNumber;
477
- column: z.ZodNumber;
478
- }, "strip", z.ZodTypeAny, {
479
- file: string;
480
- line: number;
481
- column: number;
482
- }, {
483
- file: string;
484
- line: number;
485
- column: number;
486
- }>, "many">;
487
- }, "strip", z.ZodTypeAny, {
488
- id: string;
489
- occurrences: {
490
- file: string;
491
- line: number;
492
- column: number;
493
- }[];
494
- }, {
495
- id: string;
496
- occurrences: {
497
- file: string;
498
- line: number;
499
- column: number;
500
- }[];
501
- }>;
502
- type DuplicateIdError = z.infer<typeof duplicateIdErrorSchema>;
503
- declare const clientPingSchema: z.ZodObject<{
504
- type: z.ZodLiteral<"ping">;
505
- protocolVersion: z.ZodNumber;
506
- requestId: z.ZodString;
507
- }, "strip", z.ZodTypeAny, {
508
- type: "ping";
509
- protocolVersion: number;
510
- requestId: string;
511
- }, {
512
- type: "ping";
513
- protocolVersion: number;
514
- requestId: string;
515
- }>;
516
- type ClientPing = z.infer<typeof clientPingSchema>;
517
- declare const clientSelectSchema: z.ZodObject<{
518
- type: z.ZodLiteral<"select">;
519
- protocolVersion: z.ZodNumber;
520
- requestId: z.ZodString;
521
- id: z.ZodString;
522
- }, "strip", z.ZodTypeAny, {
523
- type: "select";
524
- id: string;
525
- protocolVersion: number;
526
- requestId: string;
527
- }, {
528
- type: "select";
529
- id: string;
530
- protocolVersion: number;
531
- requestId: string;
532
- }>;
533
- type ClientSelect = z.infer<typeof clientSelectSchema>;
534
- declare const patchOpSetTextSchema: z.ZodObject<{
535
- kind: z.ZodLiteral<"setText">;
536
- text: z.ZodString;
537
- }, "strip", z.ZodTypeAny, {
538
- text: string;
539
- kind: "setText";
540
- }, {
541
- text: string;
542
- kind: "setText";
22
+ };
23
+ declare function buildBrandValidateSummary(action: BrandApplyAction, config: BrandConfig, count: number): string;
24
+ /** @deprecated Use {@link buildBrandValidateSummary}. Removed after one release. */
25
+ declare function buildBrandBulkPreviewSummary(action: BrandApplyAction, config: BrandConfig, count: number): string;
26
+ declare function buildBrandBulkPatchOps(action: BrandApplyAction, config: BrandConfig): PatchOp[];
27
+ type BrandBulkFilterOptions = {
28
+ /** When set, PCC host ids win over heuristic matching (v1.4b). */
29
+ pccHosts?: readonly string[] | null;
30
+ };
31
+ declare function resolveBrandBulkPatchHostId(entry: IndexWireEntry): string | null;
32
+ declare function entryMatchesBrandBulkAction(entry: IndexWireEntry, action: BrandApplyAction): boolean;
33
+ declare function filterBrandBulkCandidates(entries: readonly IndexWireEntry[], action: BrandApplyAction, knownIds: ReadonlySet<string>, duplicateIds: ReadonlySet<string>, options?: BrandBulkFilterOptions): BrandBulkTarget[];
34
+ declare function buildBrandBulkTargetOps(action: BrandApplyAction, config: BrandConfig, targets: readonly BrandBulkTarget[], entries?: readonly IndexWireEntry[]): Array<{
35
+ hostId: string;
36
+ ops: PatchOp[];
543
37
  }>;
544
- declare const patchOpMergeTailwindSchema: z.ZodObject<{
545
- kind: z.ZodLiteral<"mergeTailwindClassName">;
546
- classNameFragment: z.ZodString;
547
- }, "strip", z.ZodTypeAny, {
548
- kind: "mergeTailwindClassName";
549
- classNameFragment: string;
550
- }, {
551
- kind: "mergeTailwindClassName";
552
- classNameFragment: string;
553
- }>;
554
- /** Reorder host among JSX element siblings under a flex/grid parent (Phase 4). */
555
- declare const patchOpMoveSiblingSchema: z.ZodObject<{
556
- kind: z.ZodLiteral<"moveSibling">;
557
- direction: z.ZodEnum<["up", "down"]>;
558
- }, "strip", z.ZodTypeAny, {
559
- kind: "moveSibling";
560
- direction: "up" | "down";
561
- }, {
562
- kind: "moveSibling";
563
- direction: "up" | "down";
564
- }>;
565
- /** Toggle `hidden` on a string-literal className (Phase 4 toolbar). */
566
- declare const patchOpSetHiddenSchema: z.ZodObject<{
567
- kind: z.ZodLiteral<"setHidden">;
568
- hidden: z.ZodBoolean;
569
- }, "strip", z.ZodTypeAny, {
570
- kind: "setHidden";
571
- hidden: boolean;
572
- }, {
573
- kind: "setHidden";
574
- hidden: boolean;
575
- }>;
576
- /** Clone the host JSX element with a new unique `data-nuvio-id` (Phase 4 toolbar). */
577
- declare const patchOpDuplicateHostSchema: z.ZodObject<{
578
- kind: z.ZodLiteral<"duplicateHost">;
579
- }, "strip", z.ZodTypeAny, {
580
- kind: "duplicateHost";
581
- }, {
582
- kind: "duplicateHost";
583
- }>;
584
- /** Index v4: update a string field in a local `const` array (Tier C table cells). */
585
- declare const patchOpSetTableDataFieldSchema: z.ZodObject<{
586
- kind: z.ZodLiteral<"setTableDataField">;
587
- arrayName: z.ZodString;
588
- rowKey: z.ZodString;
589
- field: z.ZodString;
590
- value: z.ZodString;
591
- }, "strip", z.ZodTypeAny, {
592
- value: string;
593
- rowKey: string;
594
- arrayName: string;
595
- field: string;
596
- kind: "setTableDataField";
597
- }, {
598
- value: string;
599
- rowKey: string;
600
- arrayName: string;
601
- field: string;
602
- kind: "setTableDataField";
603
- }>;
604
- declare const patchOpSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
605
- kind: z.ZodLiteral<"setText">;
606
- text: z.ZodString;
607
- }, "strip", z.ZodTypeAny, {
608
- text: string;
609
- kind: "setText";
610
- }, {
611
- text: string;
612
- kind: "setText";
613
- }>, z.ZodObject<{
614
- kind: z.ZodLiteral<"mergeTailwindClassName">;
615
- classNameFragment: z.ZodString;
616
- }, "strip", z.ZodTypeAny, {
617
- kind: "mergeTailwindClassName";
618
- classNameFragment: string;
619
- }, {
620
- kind: "mergeTailwindClassName";
621
- classNameFragment: string;
622
- }>, z.ZodObject<{
623
- kind: z.ZodLiteral<"removeTailwindClassName">;
624
- classNameFragment: z.ZodString;
625
- }, "strip", z.ZodTypeAny, {
626
- kind: "removeTailwindClassName";
627
- classNameFragment: string;
628
- }, {
629
- kind: "removeTailwindClassName";
630
- classNameFragment: string;
631
- }>, z.ZodObject<{
632
- kind: z.ZodLiteral<"moveSibling">;
633
- direction: z.ZodEnum<["up", "down"]>;
634
- }, "strip", z.ZodTypeAny, {
635
- kind: "moveSibling";
636
- direction: "up" | "down";
637
- }, {
638
- kind: "moveSibling";
639
- direction: "up" | "down";
640
- }>, z.ZodObject<{
641
- kind: z.ZodLiteral<"setHidden">;
642
- hidden: z.ZodBoolean;
643
- }, "strip", z.ZodTypeAny, {
644
- kind: "setHidden";
645
- hidden: boolean;
646
- }, {
647
- kind: "setHidden";
648
- hidden: boolean;
649
- }>, z.ZodObject<{
650
- kind: z.ZodLiteral<"duplicateHost">;
651
- }, "strip", z.ZodTypeAny, {
652
- kind: "duplicateHost";
653
- }, {
654
- kind: "duplicateHost";
655
- }>, z.ZodObject<{
656
- kind: z.ZodLiteral<"setTableDataField">;
657
- arrayName: z.ZodString;
658
- rowKey: z.ZodString;
659
- field: z.ZodString;
660
- value: z.ZodString;
661
- }, "strip", z.ZodTypeAny, {
662
- value: string;
663
- rowKey: string;
664
- arrayName: string;
665
- field: string;
666
- kind: "setTableDataField";
667
- }, {
668
- value: string;
669
- rowKey: string;
670
- arrayName: string;
671
- field: string;
672
- kind: "setTableDataField";
673
- }>]>;
674
- type PatchOp = z.infer<typeof patchOpSchema>;
675
- declare const breakpointSchema: z.ZodEnum<["base", "sm", "md", "lg", "xl"]>;
676
- type Breakpoint = z.infer<typeof breakpointSchema>;
677
- declare const clientPatchApplySchema: z.ZodObject<{
678
- type: z.ZodLiteral<"patchApply">;
679
- protocolVersion: z.ZodNumber;
680
- requestId: z.ZodString;
681
- id: z.ZodString;
682
- ops: z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
683
- kind: z.ZodLiteral<"setText">;
684
- text: z.ZodString;
685
- }, "strip", z.ZodTypeAny, {
686
- text: string;
687
- kind: "setText";
688
- }, {
689
- text: string;
690
- kind: "setText";
691
- }>, z.ZodObject<{
692
- kind: z.ZodLiteral<"mergeTailwindClassName">;
693
- classNameFragment: z.ZodString;
694
- }, "strip", z.ZodTypeAny, {
695
- kind: "mergeTailwindClassName";
696
- classNameFragment: string;
697
- }, {
698
- kind: "mergeTailwindClassName";
699
- classNameFragment: string;
700
- }>, z.ZodObject<{
701
- kind: z.ZodLiteral<"removeTailwindClassName">;
702
- classNameFragment: z.ZodString;
703
- }, "strip", z.ZodTypeAny, {
704
- kind: "removeTailwindClassName";
705
- classNameFragment: string;
706
- }, {
707
- kind: "removeTailwindClassName";
708
- classNameFragment: string;
709
- }>, z.ZodObject<{
710
- kind: z.ZodLiteral<"moveSibling">;
711
- direction: z.ZodEnum<["up", "down"]>;
712
- }, "strip", z.ZodTypeAny, {
713
- kind: "moveSibling";
714
- direction: "up" | "down";
715
- }, {
716
- kind: "moveSibling";
717
- direction: "up" | "down";
718
- }>, z.ZodObject<{
719
- kind: z.ZodLiteral<"setHidden">;
720
- hidden: z.ZodBoolean;
721
- }, "strip", z.ZodTypeAny, {
722
- kind: "setHidden";
723
- hidden: boolean;
724
- }, {
725
- kind: "setHidden";
726
- hidden: boolean;
727
- }>, z.ZodObject<{
728
- kind: z.ZodLiteral<"duplicateHost">;
729
- }, "strip", z.ZodTypeAny, {
730
- kind: "duplicateHost";
731
- }, {
732
- kind: "duplicateHost";
733
- }>, z.ZodObject<{
734
- kind: z.ZodLiteral<"setTableDataField">;
735
- arrayName: z.ZodString;
736
- rowKey: z.ZodString;
737
- field: z.ZodString;
738
- value: z.ZodString;
739
- }, "strip", z.ZodTypeAny, {
740
- value: string;
741
- rowKey: string;
742
- arrayName: string;
743
- field: string;
744
- kind: "setTableDataField";
745
- }, {
746
- value: string;
747
- rowKey: string;
748
- arrayName: string;
749
- field: string;
750
- kind: "setTableDataField";
751
- }>]>, "many">;
752
- /** Optional responsive context for className merges. */
753
- activeBreakpoint: z.ZodOptional<z.ZodEnum<["base", "sm", "md", "lg", "xl"]>>;
754
- /** When true, server validates and returns `patchAck` with `diffSummary` but does not write disk or push undo. */
755
- dryRun: z.ZodOptional<z.ZodBoolean>;
756
- }, "strip", z.ZodTypeAny, {
757
- type: "patchApply";
758
- id: string;
759
- protocolVersion: number;
760
- requestId: string;
761
- ops: ({
762
- text: string;
763
- kind: "setText";
764
- } | {
765
- kind: "mergeTailwindClassName";
766
- classNameFragment: string;
767
- } | {
768
- kind: "removeTailwindClassName";
769
- classNameFragment: string;
770
- } | {
771
- kind: "moveSibling";
772
- direction: "up" | "down";
773
- } | {
774
- kind: "setHidden";
775
- hidden: boolean;
776
- } | {
777
- kind: "duplicateHost";
778
- } | {
779
- value: string;
780
- rowKey: string;
781
- arrayName: string;
782
- field: string;
783
- kind: "setTableDataField";
784
- })[];
785
- activeBreakpoint?: "base" | "sm" | "md" | "lg" | "xl" | undefined;
786
- dryRun?: boolean | undefined;
787
- }, {
788
- type: "patchApply";
789
- id: string;
790
- protocolVersion: number;
791
- requestId: string;
792
- ops: ({
793
- text: string;
794
- kind: "setText";
795
- } | {
796
- kind: "mergeTailwindClassName";
797
- classNameFragment: string;
798
- } | {
799
- kind: "removeTailwindClassName";
800
- classNameFragment: string;
801
- } | {
802
- kind: "moveSibling";
803
- direction: "up" | "down";
804
- } | {
805
- kind: "setHidden";
806
- hidden: boolean;
807
- } | {
808
- kind: "duplicateHost";
809
- } | {
810
- value: string;
811
- rowKey: string;
812
- arrayName: string;
813
- field: string;
814
- kind: "setTableDataField";
815
- })[];
816
- activeBreakpoint?: "base" | "sm" | "md" | "lg" | "xl" | undefined;
817
- dryRun?: boolean | undefined;
818
- }>;
819
- type ClientPatchApply = z.infer<typeof clientPatchApplySchema>;
820
- declare const clientPatchUndoSchema: z.ZodObject<{
821
- type: z.ZodLiteral<"patchUndo">;
822
- protocolVersion: z.ZodNumber;
823
- requestId: z.ZodString;
824
- }, "strip", z.ZodTypeAny, {
825
- type: "patchUndo";
826
- protocolVersion: number;
827
- requestId: string;
828
- }, {
829
- type: "patchUndo";
830
- protocolVersion: number;
831
- requestId: string;
832
- }>;
833
- type ClientPatchUndo = z.infer<typeof clientPatchUndoSchema>;
834
- /** v0.6: insert data-nuvio-id at a dev-time source location (click-to-tag). */
835
- declare const clientTagElementSchema: z.ZodObject<{
836
- type: z.ZodLiteral<"tagElement">;
837
- protocolVersion: z.ZodNumber;
838
- requestId: z.ZodString;
839
- file: z.ZodString;
840
- line: z.ZodNumber;
841
- column: z.ZodNumber;
842
- nuvioId: z.ZodString;
843
- }, "strip", z.ZodTypeAny, {
844
- type: "tagElement";
845
- file: string;
846
- line: number;
847
- column: number;
848
- nuvioId: string;
849
- protocolVersion: number;
850
- requestId: string;
851
- }, {
852
- type: "tagElement";
853
- file: string;
854
- line: number;
855
- column: number;
856
- nuvioId: string;
857
- protocolVersion: number;
858
- requestId: string;
859
- }>;
860
- type ClientTagElement = z.infer<typeof clientTagElementSchema>;
861
- declare const clientMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
862
- type: z.ZodLiteral<"ping">;
863
- protocolVersion: z.ZodNumber;
864
- requestId: z.ZodString;
865
- }, "strip", z.ZodTypeAny, {
866
- type: "ping";
867
- protocolVersion: number;
868
- requestId: string;
869
- }, {
870
- type: "ping";
871
- protocolVersion: number;
872
- requestId: string;
873
- }>, z.ZodObject<{
874
- type: z.ZodLiteral<"select">;
875
- protocolVersion: z.ZodNumber;
876
- requestId: z.ZodString;
877
- id: z.ZodString;
878
- }, "strip", z.ZodTypeAny, {
879
- type: "select";
880
- id: string;
881
- protocolVersion: number;
882
- requestId: string;
883
- }, {
884
- type: "select";
885
- id: string;
886
- protocolVersion: number;
887
- requestId: string;
888
- }>, z.ZodObject<{
889
- type: z.ZodLiteral<"patchApply">;
890
- protocolVersion: z.ZodNumber;
891
- requestId: z.ZodString;
892
- id: z.ZodString;
893
- ops: z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
894
- kind: z.ZodLiteral<"setText">;
895
- text: z.ZodString;
896
- }, "strip", z.ZodTypeAny, {
897
- text: string;
898
- kind: "setText";
899
- }, {
900
- text: string;
901
- kind: "setText";
902
- }>, z.ZodObject<{
903
- kind: z.ZodLiteral<"mergeTailwindClassName">;
904
- classNameFragment: z.ZodString;
905
- }, "strip", z.ZodTypeAny, {
906
- kind: "mergeTailwindClassName";
907
- classNameFragment: string;
908
- }, {
909
- kind: "mergeTailwindClassName";
910
- classNameFragment: string;
911
- }>, z.ZodObject<{
912
- kind: z.ZodLiteral<"removeTailwindClassName">;
913
- classNameFragment: z.ZodString;
914
- }, "strip", z.ZodTypeAny, {
915
- kind: "removeTailwindClassName";
916
- classNameFragment: string;
917
- }, {
918
- kind: "removeTailwindClassName";
919
- classNameFragment: string;
920
- }>, z.ZodObject<{
921
- kind: z.ZodLiteral<"moveSibling">;
922
- direction: z.ZodEnum<["up", "down"]>;
923
- }, "strip", z.ZodTypeAny, {
924
- kind: "moveSibling";
925
- direction: "up" | "down";
926
- }, {
927
- kind: "moveSibling";
928
- direction: "up" | "down";
929
- }>, z.ZodObject<{
930
- kind: z.ZodLiteral<"setHidden">;
931
- hidden: z.ZodBoolean;
932
- }, "strip", z.ZodTypeAny, {
933
- kind: "setHidden";
934
- hidden: boolean;
935
- }, {
936
- kind: "setHidden";
937
- hidden: boolean;
938
- }>, z.ZodObject<{
939
- kind: z.ZodLiteral<"duplicateHost">;
940
- }, "strip", z.ZodTypeAny, {
941
- kind: "duplicateHost";
942
- }, {
943
- kind: "duplicateHost";
944
- }>, z.ZodObject<{
945
- kind: z.ZodLiteral<"setTableDataField">;
946
- arrayName: z.ZodString;
947
- rowKey: z.ZodString;
948
- field: z.ZodString;
949
- value: z.ZodString;
950
- }, "strip", z.ZodTypeAny, {
951
- value: string;
952
- rowKey: string;
953
- arrayName: string;
954
- field: string;
955
- kind: "setTableDataField";
956
- }, {
957
- value: string;
958
- rowKey: string;
959
- arrayName: string;
960
- field: string;
961
- kind: "setTableDataField";
962
- }>]>, "many">;
963
- /** Optional responsive context for className merges. */
964
- activeBreakpoint: z.ZodOptional<z.ZodEnum<["base", "sm", "md", "lg", "xl"]>>;
965
- /** When true, server validates and returns `patchAck` with `diffSummary` but does not write disk or push undo. */
966
- dryRun: z.ZodOptional<z.ZodBoolean>;
967
- }, "strip", z.ZodTypeAny, {
968
- type: "patchApply";
969
- id: string;
970
- protocolVersion: number;
971
- requestId: string;
972
- ops: ({
973
- text: string;
974
- kind: "setText";
975
- } | {
976
- kind: "mergeTailwindClassName";
977
- classNameFragment: string;
978
- } | {
979
- kind: "removeTailwindClassName";
980
- classNameFragment: string;
981
- } | {
982
- kind: "moveSibling";
983
- direction: "up" | "down";
984
- } | {
985
- kind: "setHidden";
986
- hidden: boolean;
987
- } | {
988
- kind: "duplicateHost";
989
- } | {
990
- value: string;
991
- rowKey: string;
992
- arrayName: string;
993
- field: string;
994
- kind: "setTableDataField";
995
- })[];
996
- activeBreakpoint?: "base" | "sm" | "md" | "lg" | "xl" | undefined;
997
- dryRun?: boolean | undefined;
998
- }, {
999
- type: "patchApply";
1000
- id: string;
1001
- protocolVersion: number;
1002
- requestId: string;
1003
- ops: ({
1004
- text: string;
1005
- kind: "setText";
1006
- } | {
1007
- kind: "mergeTailwindClassName";
1008
- classNameFragment: string;
1009
- } | {
1010
- kind: "removeTailwindClassName";
1011
- classNameFragment: string;
1012
- } | {
1013
- kind: "moveSibling";
1014
- direction: "up" | "down";
1015
- } | {
1016
- kind: "setHidden";
1017
- hidden: boolean;
1018
- } | {
1019
- kind: "duplicateHost";
1020
- } | {
1021
- value: string;
1022
- rowKey: string;
1023
- arrayName: string;
1024
- field: string;
1025
- kind: "setTableDataField";
1026
- })[];
1027
- activeBreakpoint?: "base" | "sm" | "md" | "lg" | "xl" | undefined;
1028
- dryRun?: boolean | undefined;
1029
- }>, z.ZodObject<{
1030
- type: z.ZodLiteral<"patchUndo">;
1031
- protocolVersion: z.ZodNumber;
1032
- requestId: z.ZodString;
1033
- }, "strip", z.ZodTypeAny, {
1034
- type: "patchUndo";
1035
- protocolVersion: number;
1036
- requestId: string;
1037
- }, {
1038
- type: "patchUndo";
1039
- protocolVersion: number;
1040
- requestId: string;
1041
- }>, z.ZodObject<{
1042
- type: z.ZodLiteral<"tagElement">;
1043
- protocolVersion: z.ZodNumber;
1044
- requestId: z.ZodString;
1045
- file: z.ZodString;
1046
- line: z.ZodNumber;
1047
- column: z.ZodNumber;
1048
- nuvioId: z.ZodString;
1049
- }, "strip", z.ZodTypeAny, {
1050
- type: "tagElement";
1051
- file: string;
1052
- line: number;
1053
- column: number;
1054
- nuvioId: string;
1055
- protocolVersion: number;
1056
- requestId: string;
1057
- }, {
1058
- type: "tagElement";
1059
- file: string;
1060
- line: number;
1061
- column: number;
1062
- nuvioId: string;
1063
- protocolVersion: number;
1064
- requestId: string;
1065
- }>]>;
1066
- type ClientMessage = z.infer<typeof clientMessageSchema>;
1067
- declare const serverPongSchema: z.ZodObject<{
1068
- type: z.ZodLiteral<"pong">;
1069
- protocolVersion: z.ZodNumber;
1070
- requestId: z.ZodString;
1071
- diagnostics: z.ZodOptional<z.ZodObject<{
1072
- viteVersion: z.ZodOptional<z.ZodString>;
1073
- reactVersion: z.ZodOptional<z.ZodString>;
1074
- tailwindVersion: z.ZodOptional<z.ZodString>;
1075
- overlayCssMode: z.ZodOptional<z.ZodLiteral<"self-contained">>;
1076
- /** Project-level library detection (v0.8). */
1077
- detectedLibraries: z.ZodOptional<z.ZodArray<z.ZodEnum<["shadcn", "tailadmin", "daisyui"]>, "many">>;
1078
- }, "strip", z.ZodTypeAny, {
1079
- viteVersion?: string | undefined;
1080
- reactVersion?: string | undefined;
1081
- tailwindVersion?: string | undefined;
1082
- overlayCssMode?: "self-contained" | undefined;
1083
- detectedLibraries?: ("shadcn" | "tailadmin" | "daisyui")[] | undefined;
1084
- }, {
1085
- viteVersion?: string | undefined;
1086
- reactVersion?: string | undefined;
1087
- tailwindVersion?: string | undefined;
1088
- overlayCssMode?: "self-contained" | undefined;
1089
- detectedLibraries?: ("shadcn" | "tailadmin" | "daisyui")[] | undefined;
1090
- }>>;
1091
- }, "strip", z.ZodTypeAny, {
1092
- type: "pong";
1093
- protocolVersion: number;
1094
- requestId: string;
1095
- diagnostics?: {
1096
- viteVersion?: string | undefined;
1097
- reactVersion?: string | undefined;
1098
- tailwindVersion?: string | undefined;
1099
- overlayCssMode?: "self-contained" | undefined;
1100
- detectedLibraries?: ("shadcn" | "tailadmin" | "daisyui")[] | undefined;
1101
- } | undefined;
1102
- }, {
1103
- type: "pong";
1104
- protocolVersion: number;
1105
- requestId: string;
1106
- diagnostics?: {
1107
- viteVersion?: string | undefined;
1108
- reactVersion?: string | undefined;
1109
- tailwindVersion?: string | undefined;
1110
- overlayCssMode?: "self-contained" | undefined;
1111
- detectedLibraries?: ("shadcn" | "tailadmin" | "daisyui")[] | undefined;
1112
- } | undefined;
1113
- }>;
1114
- declare const serverErrorSchema: z.ZodObject<{
1115
- type: z.ZodLiteral<"error">;
1116
- code: z.ZodString;
1117
- message: z.ZodString;
1118
- requestId: z.ZodOptional<z.ZodString>;
1119
- }, "strip", z.ZodTypeAny, {
1120
- code: string;
1121
- message: string;
1122
- type: "error";
1123
- requestId?: string | undefined;
1124
- }, {
1125
- code: string;
1126
- message: string;
1127
- type: "error";
1128
- requestId?: string | undefined;
1129
- }>;
1130
- declare const serverIndexReadySchema: z.ZodObject<{
1131
- type: z.ZodLiteral<"indexReady">;
1132
- protocolVersion: z.ZodNumber;
1133
- indexVersion: z.ZodNumber;
1134
- entries: z.ZodArray<z.ZodObject<{
1135
- id: z.ZodString;
1136
- file: z.ZodString;
1137
- line: z.ZodNumber;
1138
- column: z.ZodNumber;
1139
- /** Source index v2 metadata */
1140
- tagName: z.ZodOptional<z.ZodString>;
1141
- componentName: z.ZodOptional<z.ZodString>;
1142
- hasLiteralClassName: z.ZodOptional<z.ZodBoolean>;
1143
- classNameValue: z.ZodOptional<z.ZodString>;
1144
- textEditable: z.ZodOptional<z.ZodBoolean>;
1145
- structuralEditable: z.ZodOptional<z.ZodBoolean>;
1146
- riskLevel: z.ZodOptional<z.ZodEnum<["safe", "caution", "unsupported"]>>;
1147
- unsupportedReasons: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1148
- insideMap: z.ZodOptional<z.ZodBoolean>;
1149
- /** Index v3: default id for className patches on this host. */
1150
- patchHostId: z.ZodOptional<z.ZodString>;
1151
- /** Index v3: preferred text target key in `textTargets`. */
1152
- primaryTextTargetKey: z.ZodOptional<z.ZodString>;
1153
- /** Index v3: descendant (and host) text edit targets. */
1154
- textTargets: z.ZodOptional<z.ZodArray<z.ZodObject<{
1155
- /** Stable within host: `data-nuvio-id` or `loc:line:column`. */
1156
- key: z.ZodString;
1157
- label: z.ZodString;
1158
- file: z.ZodString;
1159
- line: z.ZodNumber;
1160
- column: z.ZodNumber;
1161
- tagName: z.ZodString;
1162
- textEditable: z.ZodBoolean;
1163
- textPreview: z.ZodOptional<z.ZodString>;
1164
- /** Present when the text node has its own `data-nuvio-id`. */
1165
- nuvioId: z.ZodOptional<z.ZodString>;
1166
- /** Host id used for `mergeTailwindClassName` when patching styles for this target. */
1167
- patchHostId: z.ZodString;
1168
- insideMap: z.ZodOptional<z.ZodBoolean>;
1169
- }, "strip", z.ZodTypeAny, {
1170
- key: string;
1171
- label: string;
1172
- file: string;
1173
- line: number;
1174
- column: number;
1175
- tagName: string;
1176
- textEditable: boolean;
1177
- patchHostId: string;
1178
- textPreview?: string | undefined;
1179
- nuvioId?: string | undefined;
1180
- insideMap?: boolean | undefined;
1181
- }, {
1182
- key: string;
1183
- label: string;
1184
- file: string;
1185
- line: number;
1186
- column: number;
1187
- tagName: string;
1188
- textEditable: boolean;
1189
- patchHostId: string;
1190
- textPreview?: string | undefined;
1191
- nuvioId?: string | undefined;
1192
- insideMap?: boolean | undefined;
1193
- }>, "many">>;
1194
- /** Index v3: explicit style patch targets for this selected host. */
1195
- styleTargets: z.ZodOptional<z.ZodArray<z.ZodObject<{
1196
- /** Stable key within host: `data-nuvio-id` or `host` for selected container. */
1197
- key: z.ZodString;
1198
- label: z.ZodString;
1199
- file: z.ZodString;
1200
- line: z.ZodNumber;
1201
- column: z.ZodNumber;
1202
- tagName: z.ZodString;
1203
- nuvioId: z.ZodString;
1204
- patchHostId: z.ZodString;
1205
- classNamePatchable: z.ZodBoolean;
1206
- riskLevel: z.ZodOptional<z.ZodEnum<["safe", "caution", "unsupported"]>>;
1207
- }, "strip", z.ZodTypeAny, {
1208
- key: string;
1209
- label: string;
1210
- file: string;
1211
- line: number;
1212
- column: number;
1213
- tagName: string;
1214
- nuvioId: string;
1215
- patchHostId: string;
1216
- classNamePatchable: boolean;
1217
- riskLevel?: "safe" | "caution" | "unsupported" | undefined;
1218
- }, {
1219
- key: string;
1220
- label: string;
1221
- file: string;
1222
- line: number;
1223
- column: number;
1224
- tagName: string;
1225
- nuvioId: string;
1226
- patchHostId: string;
1227
- classNamePatchable: boolean;
1228
- riskLevel?: "safe" | "caution" | "unsupported" | undefined;
1229
- }>, "many">>;
1230
- /** Index v3: coarse host role, used for defaults/hints only. */
1231
- hierarchyRole: z.ZodOptional<z.ZodEnum<["section", "card", "table", "form", "group", "layout", "text", "button", "input", "media", "unknown"]>>;
1232
- /** Index v3: nearest ancestor host id in JSX ownership hierarchy. */
1233
- parentHostId: z.ZodOptional<z.ZodString>;
1234
- /** Index v3: descendant host ids under this host (if any). */
1235
- childTargetIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1236
- /** Index v4: row hosts when this entry is a table section. */
1237
- rowTargets: z.ZodOptional<z.ZodArray<z.ZodObject<{
1238
- rowKey: z.ZodString;
1239
- nuvioId: z.ZodString;
1240
- label: z.ZodString;
1241
- file: z.ZodString;
1242
- line: z.ZodNumber;
1243
- }, "strip", z.ZodTypeAny, {
1244
- label: string;
1245
- file: string;
1246
- line: number;
1247
- nuvioId: string;
1248
- rowKey: string;
1249
- }, {
1250
- label: string;
1251
- file: string;
1252
- line: number;
1253
- nuvioId: string;
1254
- rowKey: string;
1255
- }>, "many">>;
1256
- /** Index v4: static table data binding for Tier C. */
1257
- tableMeta: z.ZodOptional<z.ZodObject<{
1258
- dataBinding: z.ZodString;
1259
- file: z.ZodString;
1260
- line: z.ZodNumber;
1261
- columns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1262
- }, "strip", z.ZodTypeAny, {
1263
- file: string;
1264
- line: number;
1265
- dataBinding: string;
1266
- columns?: string[] | undefined;
1267
- }, {
1268
- file: string;
1269
- line: number;
1270
- dataBinding: string;
1271
- columns?: string[] | undefined;
1272
- }>>;
1273
- /** Index v4: when this host maps to a `tableData` field edit. */
1274
- tableDataField: z.ZodOptional<z.ZodObject<{
1275
- arrayName: z.ZodString;
1276
- rowKey: z.ZodString;
1277
- field: z.ZodString;
1278
- }, "strip", z.ZodTypeAny, {
1279
- rowKey: string;
1280
- arrayName: string;
1281
- field: string;
1282
- }, {
1283
- rowKey: string;
1284
- arrayName: string;
1285
- field: string;
1286
- }>>;
1287
- /** Index v5: detected className expression mode for patch routing. */
1288
- classNameMode: z.ZodOptional<z.ZodEnum<["literal-only", "cn-basic", "cn-conditional", "classnames-static", "unsupported"]>>;
1289
- /** Index v6: shadcn / TailAdmin / DaisyUI hint for this host. */
1290
- libraryHint: z.ZodOptional<z.ZodEnum<["shadcn", "tailadmin", "daisyui"]>>;
1291
- }, "strip", z.ZodTypeAny, {
1292
- file: string;
1293
- line: number;
1294
- column: number;
1295
- id: string;
1296
- tagName?: string | undefined;
1297
- textEditable?: boolean | undefined;
1298
- patchHostId?: string | undefined;
1299
- insideMap?: boolean | undefined;
1300
- riskLevel?: "safe" | "caution" | "unsupported" | undefined;
1301
- componentName?: string | undefined;
1302
- hasLiteralClassName?: boolean | undefined;
1303
- classNameValue?: string | undefined;
1304
- structuralEditable?: boolean | undefined;
1305
- unsupportedReasons?: string[] | undefined;
1306
- primaryTextTargetKey?: string | undefined;
1307
- textTargets?: {
1308
- key: string;
1309
- label: string;
1310
- file: string;
1311
- line: number;
1312
- column: number;
1313
- tagName: string;
1314
- textEditable: boolean;
1315
- patchHostId: string;
1316
- textPreview?: string | undefined;
1317
- nuvioId?: string | undefined;
1318
- insideMap?: boolean | undefined;
1319
- }[] | undefined;
1320
- styleTargets?: {
1321
- key: string;
1322
- label: string;
1323
- file: string;
1324
- line: number;
1325
- column: number;
1326
- tagName: string;
1327
- nuvioId: string;
1328
- patchHostId: string;
1329
- classNamePatchable: boolean;
1330
- riskLevel?: "safe" | "caution" | "unsupported" | undefined;
1331
- }[] | undefined;
1332
- hierarchyRole?: "section" | "card" | "table" | "form" | "group" | "layout" | "text" | "button" | "input" | "media" | "unknown" | undefined;
1333
- parentHostId?: string | undefined;
1334
- childTargetIds?: string[] | undefined;
1335
- rowTargets?: {
1336
- label: string;
1337
- file: string;
1338
- line: number;
1339
- nuvioId: string;
1340
- rowKey: string;
1341
- }[] | undefined;
1342
- tableMeta?: {
1343
- file: string;
1344
- line: number;
1345
- dataBinding: string;
1346
- columns?: string[] | undefined;
1347
- } | undefined;
1348
- tableDataField?: {
1349
- rowKey: string;
1350
- arrayName: string;
1351
- field: string;
1352
- } | undefined;
1353
- classNameMode?: "unsupported" | "literal-only" | "cn-basic" | "cn-conditional" | "classnames-static" | undefined;
1354
- libraryHint?: "shadcn" | "tailadmin" | "daisyui" | undefined;
1355
- }, {
1356
- file: string;
1357
- line: number;
1358
- column: number;
1359
- id: string;
1360
- tagName?: string | undefined;
1361
- textEditable?: boolean | undefined;
1362
- patchHostId?: string | undefined;
1363
- insideMap?: boolean | undefined;
1364
- riskLevel?: "safe" | "caution" | "unsupported" | undefined;
1365
- componentName?: string | undefined;
1366
- hasLiteralClassName?: boolean | undefined;
1367
- classNameValue?: string | undefined;
1368
- structuralEditable?: boolean | undefined;
1369
- unsupportedReasons?: string[] | undefined;
1370
- primaryTextTargetKey?: string | undefined;
1371
- textTargets?: {
1372
- key: string;
1373
- label: string;
1374
- file: string;
1375
- line: number;
1376
- column: number;
1377
- tagName: string;
1378
- textEditable: boolean;
1379
- patchHostId: string;
1380
- textPreview?: string | undefined;
1381
- nuvioId?: string | undefined;
1382
- insideMap?: boolean | undefined;
1383
- }[] | undefined;
1384
- styleTargets?: {
1385
- key: string;
1386
- label: string;
1387
- file: string;
1388
- line: number;
1389
- column: number;
1390
- tagName: string;
1391
- nuvioId: string;
1392
- patchHostId: string;
1393
- classNamePatchable: boolean;
1394
- riskLevel?: "safe" | "caution" | "unsupported" | undefined;
1395
- }[] | undefined;
1396
- hierarchyRole?: "section" | "card" | "table" | "form" | "group" | "layout" | "text" | "button" | "input" | "media" | "unknown" | undefined;
1397
- parentHostId?: string | undefined;
1398
- childTargetIds?: string[] | undefined;
1399
- rowTargets?: {
1400
- label: string;
1401
- file: string;
1402
- line: number;
1403
- nuvioId: string;
1404
- rowKey: string;
1405
- }[] | undefined;
1406
- tableMeta?: {
1407
- file: string;
1408
- line: number;
1409
- dataBinding: string;
1410
- columns?: string[] | undefined;
1411
- } | undefined;
1412
- tableDataField?: {
1413
- rowKey: string;
1414
- arrayName: string;
1415
- field: string;
1416
- } | undefined;
1417
- classNameMode?: "unsupported" | "literal-only" | "cn-basic" | "cn-conditional" | "classnames-static" | undefined;
1418
- libraryHint?: "shadcn" | "tailadmin" | "daisyui" | undefined;
1419
- }>, "many">;
1420
- duplicateErrors: z.ZodArray<z.ZodObject<{
1421
- id: z.ZodString;
1422
- occurrences: z.ZodArray<z.ZodObject<{
1423
- file: z.ZodString;
1424
- line: z.ZodNumber;
1425
- column: z.ZodNumber;
1426
- }, "strip", z.ZodTypeAny, {
1427
- file: string;
1428
- line: number;
1429
- column: number;
1430
- }, {
1431
- file: string;
1432
- line: number;
1433
- column: number;
1434
- }>, "many">;
1435
- }, "strip", z.ZodTypeAny, {
1436
- id: string;
1437
- occurrences: {
1438
- file: string;
1439
- line: number;
1440
- column: number;
1441
- }[];
1442
- }, {
1443
- id: string;
1444
- occurrences: {
1445
- file: string;
1446
- line: number;
1447
- column: number;
1448
- }[];
1449
- }>, "many">;
1450
- diagnostics: z.ZodOptional<z.ZodObject<{
1451
- viteVersion: z.ZodOptional<z.ZodString>;
1452
- reactVersion: z.ZodOptional<z.ZodString>;
1453
- tailwindVersion: z.ZodOptional<z.ZodString>;
1454
- overlayCssMode: z.ZodOptional<z.ZodLiteral<"self-contained">>;
1455
- /** Project-level library detection (v0.8). */
1456
- detectedLibraries: z.ZodOptional<z.ZodArray<z.ZodEnum<["shadcn", "tailadmin", "daisyui"]>, "many">>;
1457
- }, "strip", z.ZodTypeAny, {
1458
- viteVersion?: string | undefined;
1459
- reactVersion?: string | undefined;
1460
- tailwindVersion?: string | undefined;
1461
- overlayCssMode?: "self-contained" | undefined;
1462
- detectedLibraries?: ("shadcn" | "tailadmin" | "daisyui")[] | undefined;
1463
- }, {
1464
- viteVersion?: string | undefined;
1465
- reactVersion?: string | undefined;
1466
- tailwindVersion?: string | undefined;
1467
- overlayCssMode?: "self-contained" | undefined;
1468
- detectedLibraries?: ("shadcn" | "tailadmin" | "daisyui")[] | undefined;
1469
- }>>;
1470
- }, "strip", z.ZodTypeAny, {
1471
- entries: {
1472
- file: string;
1473
- line: number;
1474
- column: number;
1475
- id: string;
1476
- tagName?: string | undefined;
1477
- textEditable?: boolean | undefined;
1478
- patchHostId?: string | undefined;
1479
- insideMap?: boolean | undefined;
1480
- riskLevel?: "safe" | "caution" | "unsupported" | undefined;
1481
- componentName?: string | undefined;
1482
- hasLiteralClassName?: boolean | undefined;
1483
- classNameValue?: string | undefined;
1484
- structuralEditable?: boolean | undefined;
1485
- unsupportedReasons?: string[] | undefined;
1486
- primaryTextTargetKey?: string | undefined;
1487
- textTargets?: {
1488
- key: string;
1489
- label: string;
1490
- file: string;
1491
- line: number;
1492
- column: number;
1493
- tagName: string;
1494
- textEditable: boolean;
1495
- patchHostId: string;
1496
- textPreview?: string | undefined;
1497
- nuvioId?: string | undefined;
1498
- insideMap?: boolean | undefined;
1499
- }[] | undefined;
1500
- styleTargets?: {
1501
- key: string;
1502
- label: string;
1503
- file: string;
1504
- line: number;
1505
- column: number;
1506
- tagName: string;
1507
- nuvioId: string;
1508
- patchHostId: string;
1509
- classNamePatchable: boolean;
1510
- riskLevel?: "safe" | "caution" | "unsupported" | undefined;
1511
- }[] | undefined;
1512
- hierarchyRole?: "section" | "card" | "table" | "form" | "group" | "layout" | "text" | "button" | "input" | "media" | "unknown" | undefined;
1513
- parentHostId?: string | undefined;
1514
- childTargetIds?: string[] | undefined;
1515
- rowTargets?: {
1516
- label: string;
1517
- file: string;
1518
- line: number;
1519
- nuvioId: string;
1520
- rowKey: string;
1521
- }[] | undefined;
1522
- tableMeta?: {
1523
- file: string;
1524
- line: number;
1525
- dataBinding: string;
1526
- columns?: string[] | undefined;
1527
- } | undefined;
1528
- tableDataField?: {
1529
- rowKey: string;
1530
- arrayName: string;
1531
- field: string;
1532
- } | undefined;
1533
- classNameMode?: "unsupported" | "literal-only" | "cn-basic" | "cn-conditional" | "classnames-static" | undefined;
1534
- libraryHint?: "shadcn" | "tailadmin" | "daisyui" | undefined;
1535
- }[];
1536
- type: "indexReady";
1537
- protocolVersion: number;
1538
- indexVersion: number;
1539
- duplicateErrors: {
1540
- id: string;
1541
- occurrences: {
1542
- file: string;
1543
- line: number;
1544
- column: number;
1545
- }[];
1546
- }[];
1547
- diagnostics?: {
1548
- viteVersion?: string | undefined;
1549
- reactVersion?: string | undefined;
1550
- tailwindVersion?: string | undefined;
1551
- overlayCssMode?: "self-contained" | undefined;
1552
- detectedLibraries?: ("shadcn" | "tailadmin" | "daisyui")[] | undefined;
1553
- } | undefined;
1554
- }, {
1555
- entries: {
1556
- file: string;
1557
- line: number;
1558
- column: number;
1559
- id: string;
1560
- tagName?: string | undefined;
1561
- textEditable?: boolean | undefined;
1562
- patchHostId?: string | undefined;
1563
- insideMap?: boolean | undefined;
1564
- riskLevel?: "safe" | "caution" | "unsupported" | undefined;
1565
- componentName?: string | undefined;
1566
- hasLiteralClassName?: boolean | undefined;
1567
- classNameValue?: string | undefined;
1568
- structuralEditable?: boolean | undefined;
1569
- unsupportedReasons?: string[] | undefined;
1570
- primaryTextTargetKey?: string | undefined;
1571
- textTargets?: {
1572
- key: string;
1573
- label: string;
1574
- file: string;
1575
- line: number;
1576
- column: number;
1577
- tagName: string;
1578
- textEditable: boolean;
1579
- patchHostId: string;
1580
- textPreview?: string | undefined;
1581
- nuvioId?: string | undefined;
1582
- insideMap?: boolean | undefined;
1583
- }[] | undefined;
1584
- styleTargets?: {
1585
- key: string;
1586
- label: string;
1587
- file: string;
1588
- line: number;
1589
- column: number;
1590
- tagName: string;
1591
- nuvioId: string;
1592
- patchHostId: string;
1593
- classNamePatchable: boolean;
1594
- riskLevel?: "safe" | "caution" | "unsupported" | undefined;
1595
- }[] | undefined;
1596
- hierarchyRole?: "section" | "card" | "table" | "form" | "group" | "layout" | "text" | "button" | "input" | "media" | "unknown" | undefined;
1597
- parentHostId?: string | undefined;
1598
- childTargetIds?: string[] | undefined;
1599
- rowTargets?: {
1600
- label: string;
1601
- file: string;
1602
- line: number;
1603
- nuvioId: string;
1604
- rowKey: string;
1605
- }[] | undefined;
1606
- tableMeta?: {
1607
- file: string;
1608
- line: number;
1609
- dataBinding: string;
1610
- columns?: string[] | undefined;
1611
- } | undefined;
1612
- tableDataField?: {
1613
- rowKey: string;
1614
- arrayName: string;
1615
- field: string;
1616
- } | undefined;
1617
- classNameMode?: "unsupported" | "literal-only" | "cn-basic" | "cn-conditional" | "classnames-static" | undefined;
1618
- libraryHint?: "shadcn" | "tailadmin" | "daisyui" | undefined;
1619
- }[];
1620
- type: "indexReady";
1621
- protocolVersion: number;
1622
- indexVersion: number;
1623
- duplicateErrors: {
1624
- id: string;
1625
- occurrences: {
1626
- file: string;
1627
- line: number;
1628
- column: number;
1629
- }[];
1630
- }[];
1631
- diagnostics?: {
1632
- viteVersion?: string | undefined;
1633
- reactVersion?: string | undefined;
1634
- tailwindVersion?: string | undefined;
1635
- overlayCssMode?: "self-contained" | undefined;
1636
- detectedLibraries?: ("shadcn" | "tailadmin" | "daisyui")[] | undefined;
1637
- } | undefined;
1638
- }>;
1639
- type ServerIndexReady = z.infer<typeof serverIndexReadySchema>;
1640
- declare const serverSelectAckSchema: z.ZodObject<{
1641
- type: z.ZodLiteral<"selectAck">;
1642
- protocolVersion: z.ZodNumber;
1643
- requestId: z.ZodString;
1644
- id: z.ZodString;
1645
- ok: z.ZodBoolean;
1646
- file: z.ZodOptional<z.ZodString>;
1647
- line: z.ZodOptional<z.ZodNumber>;
1648
- column: z.ZodOptional<z.ZodNumber>;
1649
- /** Index v3 snapshot for the selected host (also on `indexReady` entries). */
1650
- patchHostId: z.ZodOptional<z.ZodString>;
1651
- primaryTextTargetKey: z.ZodOptional<z.ZodString>;
1652
- textTargets: z.ZodOptional<z.ZodArray<z.ZodObject<{
1653
- /** Stable within host: `data-nuvio-id` or `loc:line:column`. */
1654
- key: z.ZodString;
1655
- label: z.ZodString;
1656
- file: z.ZodString;
1657
- line: z.ZodNumber;
1658
- column: z.ZodNumber;
1659
- tagName: z.ZodString;
1660
- textEditable: z.ZodBoolean;
1661
- textPreview: z.ZodOptional<z.ZodString>;
1662
- /** Present when the text node has its own `data-nuvio-id`. */
1663
- nuvioId: z.ZodOptional<z.ZodString>;
1664
- /** Host id used for `mergeTailwindClassName` when patching styles for this target. */
1665
- patchHostId: z.ZodString;
1666
- insideMap: z.ZodOptional<z.ZodBoolean>;
1667
- }, "strip", z.ZodTypeAny, {
1668
- key: string;
1669
- label: string;
1670
- file: string;
1671
- line: number;
1672
- column: number;
1673
- tagName: string;
1674
- textEditable: boolean;
1675
- patchHostId: string;
1676
- textPreview?: string | undefined;
1677
- nuvioId?: string | undefined;
1678
- insideMap?: boolean | undefined;
1679
- }, {
1680
- key: string;
1681
- label: string;
1682
- file: string;
1683
- line: number;
1684
- column: number;
1685
- tagName: string;
1686
- textEditable: boolean;
1687
- patchHostId: string;
1688
- textPreview?: string | undefined;
1689
- nuvioId?: string | undefined;
1690
- insideMap?: boolean | undefined;
1691
- }>, "many">>;
1692
- styleTargets: z.ZodOptional<z.ZodArray<z.ZodObject<{
1693
- /** Stable key within host: `data-nuvio-id` or `host` for selected container. */
1694
- key: z.ZodString;
1695
- label: z.ZodString;
1696
- file: z.ZodString;
1697
- line: z.ZodNumber;
1698
- column: z.ZodNumber;
1699
- tagName: z.ZodString;
1700
- nuvioId: z.ZodString;
1701
- patchHostId: z.ZodString;
1702
- classNamePatchable: z.ZodBoolean;
1703
- riskLevel: z.ZodOptional<z.ZodEnum<["safe", "caution", "unsupported"]>>;
1704
- }, "strip", z.ZodTypeAny, {
1705
- key: string;
1706
- label: string;
1707
- file: string;
1708
- line: number;
1709
- column: number;
1710
- tagName: string;
1711
- nuvioId: string;
1712
- patchHostId: string;
1713
- classNamePatchable: boolean;
1714
- riskLevel?: "safe" | "caution" | "unsupported" | undefined;
1715
- }, {
1716
- key: string;
1717
- label: string;
1718
- file: string;
1719
- line: number;
1720
- column: number;
1721
- tagName: string;
1722
- nuvioId: string;
1723
- patchHostId: string;
1724
- classNamePatchable: boolean;
1725
- riskLevel?: "safe" | "caution" | "unsupported" | undefined;
1726
- }>, "many">>;
1727
- hierarchyRole: z.ZodOptional<z.ZodEnum<["section", "card", "table", "form", "group", "layout", "text", "button", "input", "media", "unknown"]>>;
1728
- parentHostId: z.ZodOptional<z.ZodString>;
1729
- childTargetIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1730
- rowTargets: z.ZodOptional<z.ZodArray<z.ZodObject<{
1731
- rowKey: z.ZodString;
1732
- nuvioId: z.ZodString;
1733
- label: z.ZodString;
1734
- file: z.ZodString;
1735
- line: z.ZodNumber;
1736
- }, "strip", z.ZodTypeAny, {
1737
- label: string;
1738
- file: string;
1739
- line: number;
1740
- nuvioId: string;
1741
- rowKey: string;
1742
- }, {
1743
- label: string;
1744
- file: string;
1745
- line: number;
1746
- nuvioId: string;
1747
- rowKey: string;
1748
- }>, "many">>;
1749
- tableMeta: z.ZodOptional<z.ZodObject<{
1750
- dataBinding: z.ZodString;
1751
- file: z.ZodString;
1752
- line: z.ZodNumber;
1753
- columns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1754
- }, "strip", z.ZodTypeAny, {
1755
- file: string;
1756
- line: number;
1757
- dataBinding: string;
1758
- columns?: string[] | undefined;
1759
- }, {
1760
- file: string;
1761
- line: number;
1762
- dataBinding: string;
1763
- columns?: string[] | undefined;
1764
- }>>;
1765
- tableDataField: z.ZodOptional<z.ZodObject<{
1766
- arrayName: z.ZodString;
1767
- rowKey: z.ZodString;
1768
- field: z.ZodString;
1769
- }, "strip", z.ZodTypeAny, {
1770
- rowKey: string;
1771
- arrayName: string;
1772
- field: string;
1773
- }, {
1774
- rowKey: string;
1775
- arrayName: string;
1776
- field: string;
1777
- }>>;
1778
- errorCode: z.ZodOptional<z.ZodString>;
1779
- errorMessage: z.ZodOptional<z.ZodString>;
1780
- }, "strip", z.ZodTypeAny, {
1781
- type: "selectAck";
1782
- id: string;
1783
- protocolVersion: number;
1784
- requestId: string;
1785
- ok: boolean;
1786
- file?: string | undefined;
1787
- line?: number | undefined;
1788
- column?: number | undefined;
1789
- patchHostId?: string | undefined;
1790
- primaryTextTargetKey?: string | undefined;
1791
- textTargets?: {
1792
- key: string;
1793
- label: string;
1794
- file: string;
1795
- line: number;
1796
- column: number;
1797
- tagName: string;
1798
- textEditable: boolean;
1799
- patchHostId: string;
1800
- textPreview?: string | undefined;
1801
- nuvioId?: string | undefined;
1802
- insideMap?: boolean | undefined;
1803
- }[] | undefined;
1804
- styleTargets?: {
1805
- key: string;
1806
- label: string;
1807
- file: string;
1808
- line: number;
1809
- column: number;
1810
- tagName: string;
1811
- nuvioId: string;
1812
- patchHostId: string;
1813
- classNamePatchable: boolean;
1814
- riskLevel?: "safe" | "caution" | "unsupported" | undefined;
1815
- }[] | undefined;
1816
- hierarchyRole?: "section" | "card" | "table" | "form" | "group" | "layout" | "text" | "button" | "input" | "media" | "unknown" | undefined;
1817
- parentHostId?: string | undefined;
1818
- childTargetIds?: string[] | undefined;
1819
- rowTargets?: {
1820
- label: string;
1821
- file: string;
1822
- line: number;
1823
- nuvioId: string;
1824
- rowKey: string;
1825
- }[] | undefined;
1826
- tableMeta?: {
1827
- file: string;
1828
- line: number;
1829
- dataBinding: string;
1830
- columns?: string[] | undefined;
1831
- } | undefined;
1832
- tableDataField?: {
1833
- rowKey: string;
1834
- arrayName: string;
1835
- field: string;
1836
- } | undefined;
1837
- errorCode?: string | undefined;
1838
- errorMessage?: string | undefined;
1839
- }, {
1840
- type: "selectAck";
1841
- id: string;
1842
- protocolVersion: number;
1843
- requestId: string;
1844
- ok: boolean;
1845
- file?: string | undefined;
1846
- line?: number | undefined;
1847
- column?: number | undefined;
1848
- patchHostId?: string | undefined;
1849
- primaryTextTargetKey?: string | undefined;
1850
- textTargets?: {
1851
- key: string;
1852
- label: string;
1853
- file: string;
1854
- line: number;
1855
- column: number;
1856
- tagName: string;
1857
- textEditable: boolean;
1858
- patchHostId: string;
1859
- textPreview?: string | undefined;
1860
- nuvioId?: string | undefined;
1861
- insideMap?: boolean | undefined;
1862
- }[] | undefined;
1863
- styleTargets?: {
1864
- key: string;
1865
- label: string;
1866
- file: string;
1867
- line: number;
1868
- column: number;
1869
- tagName: string;
1870
- nuvioId: string;
1871
- patchHostId: string;
1872
- classNamePatchable: boolean;
1873
- riskLevel?: "safe" | "caution" | "unsupported" | undefined;
1874
- }[] | undefined;
1875
- hierarchyRole?: "section" | "card" | "table" | "form" | "group" | "layout" | "text" | "button" | "input" | "media" | "unknown" | undefined;
1876
- parentHostId?: string | undefined;
1877
- childTargetIds?: string[] | undefined;
1878
- rowTargets?: {
1879
- label: string;
1880
- file: string;
1881
- line: number;
1882
- nuvioId: string;
1883
- rowKey: string;
1884
- }[] | undefined;
1885
- tableMeta?: {
1886
- file: string;
1887
- line: number;
1888
- dataBinding: string;
1889
- columns?: string[] | undefined;
1890
- } | undefined;
1891
- tableDataField?: {
1892
- rowKey: string;
1893
- arrayName: string;
1894
- field: string;
1895
- } | undefined;
1896
- errorCode?: string | undefined;
1897
- errorMessage?: string | undefined;
1898
- }>;
1899
- type ServerSelectAck = z.infer<typeof serverSelectAckSchema>;
1900
- declare const serverPatchAckSchema: z.ZodObject<{
1901
- type: z.ZodLiteral<"patchAck">;
1902
- protocolVersion: z.ZodNumber;
1903
- requestId: z.ZodString;
1904
- id: z.ZodString;
1905
- ok: z.ZodBoolean;
1906
- diffSummary: z.ZodOptional<z.ZodString>;
1907
- /** Present when this ack is for a `patchApply` with `dryRun: true`. */
1908
- dryRun: z.ZodOptional<z.ZodBoolean>;
1909
- /** Absolute path written on successful non-dry apply (for touched-file log). */
1910
- writtenFile: z.ZodOptional<z.ZodString>;
1911
- /** Server undo stack size after this apply (non-dry success only). */
1912
- undoStackDepth: z.ZodOptional<z.ZodNumber>;
1913
- errorCode: z.ZodOptional<z.ZodString>;
1914
- errorMessage: z.ZodOptional<z.ZodString>;
1915
- }, "strip", z.ZodTypeAny, {
1916
- type: "patchAck";
1917
- id: string;
1918
- protocolVersion: number;
1919
- requestId: string;
1920
- ok: boolean;
1921
- dryRun?: boolean | undefined;
1922
- errorCode?: string | undefined;
1923
- errorMessage?: string | undefined;
1924
- diffSummary?: string | undefined;
1925
- writtenFile?: string | undefined;
1926
- undoStackDepth?: number | undefined;
1927
- }, {
1928
- type: "patchAck";
1929
- id: string;
1930
- protocolVersion: number;
1931
- requestId: string;
1932
- ok: boolean;
1933
- dryRun?: boolean | undefined;
1934
- errorCode?: string | undefined;
1935
- errorMessage?: string | undefined;
1936
- diffSummary?: string | undefined;
1937
- writtenFile?: string | undefined;
1938
- undoStackDepth?: number | undefined;
1939
- }>;
1940
- type ServerPatchAck = z.infer<typeof serverPatchAckSchema>;
1941
- declare const serverPatchUndoAckSchema: z.ZodObject<{
1942
- type: z.ZodLiteral<"patchUndoAck">;
1943
- protocolVersion: z.ZodNumber;
1944
- requestId: z.ZodString;
1945
- ok: z.ZodBoolean;
1946
- file: z.ZodOptional<z.ZodString>;
1947
- /** Remaining in-memory undo snapshots after this undo (success only). */
1948
- undoStackDepth: z.ZodOptional<z.ZodNumber>;
1949
- errorCode: z.ZodOptional<z.ZodString>;
1950
- errorMessage: z.ZodOptional<z.ZodString>;
1951
- }, "strip", z.ZodTypeAny, {
1952
- type: "patchUndoAck";
1953
- protocolVersion: number;
1954
- requestId: string;
1955
- ok: boolean;
1956
- file?: string | undefined;
1957
- errorCode?: string | undefined;
1958
- errorMessage?: string | undefined;
1959
- undoStackDepth?: number | undefined;
1960
- }, {
1961
- type: "patchUndoAck";
1962
- protocolVersion: number;
1963
- requestId: string;
1964
- ok: boolean;
1965
- file?: string | undefined;
1966
- errorCode?: string | undefined;
1967
- errorMessage?: string | undefined;
1968
- undoStackDepth?: number | undefined;
1969
- }>;
1970
- type ServerPatchUndoAck = z.infer<typeof serverPatchUndoAckSchema>;
1971
- declare const serverTagElementAckSchema: z.ZodObject<{
1972
- type: z.ZodLiteral<"tagElementAck">;
1973
- protocolVersion: z.ZodNumber;
1974
- requestId: z.ZodString;
1975
- ok: z.ZodBoolean;
1976
- id: z.ZodOptional<z.ZodString>;
1977
- errorCode: z.ZodOptional<z.ZodString>;
1978
- errorMessage: z.ZodOptional<z.ZodString>;
1979
- }, "strip", z.ZodTypeAny, {
1980
- type: "tagElementAck";
1981
- protocolVersion: number;
1982
- requestId: string;
1983
- ok: boolean;
1984
- id?: string | undefined;
1985
- errorCode?: string | undefined;
1986
- errorMessage?: string | undefined;
1987
- }, {
1988
- type: "tagElementAck";
1989
- protocolVersion: number;
1990
- requestId: string;
1991
- ok: boolean;
1992
- id?: string | undefined;
1993
- errorCode?: string | undefined;
1994
- errorMessage?: string | undefined;
1995
- }>;
1996
- type ServerTagElementAck = z.infer<typeof serverTagElementAckSchema>;
1997
- declare const serverMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1998
- type: z.ZodLiteral<"pong">;
1999
- protocolVersion: z.ZodNumber;
2000
- requestId: z.ZodString;
2001
- diagnostics: z.ZodOptional<z.ZodObject<{
2002
- viteVersion: z.ZodOptional<z.ZodString>;
2003
- reactVersion: z.ZodOptional<z.ZodString>;
2004
- tailwindVersion: z.ZodOptional<z.ZodString>;
2005
- overlayCssMode: z.ZodOptional<z.ZodLiteral<"self-contained">>;
2006
- /** Project-level library detection (v0.8). */
2007
- detectedLibraries: z.ZodOptional<z.ZodArray<z.ZodEnum<["shadcn", "tailadmin", "daisyui"]>, "many">>;
2008
- }, "strip", z.ZodTypeAny, {
2009
- viteVersion?: string | undefined;
2010
- reactVersion?: string | undefined;
2011
- tailwindVersion?: string | undefined;
2012
- overlayCssMode?: "self-contained" | undefined;
2013
- detectedLibraries?: ("shadcn" | "tailadmin" | "daisyui")[] | undefined;
2014
- }, {
2015
- viteVersion?: string | undefined;
2016
- reactVersion?: string | undefined;
2017
- tailwindVersion?: string | undefined;
2018
- overlayCssMode?: "self-contained" | undefined;
2019
- detectedLibraries?: ("shadcn" | "tailadmin" | "daisyui")[] | undefined;
2020
- }>>;
2021
- }, "strip", z.ZodTypeAny, {
2022
- type: "pong";
2023
- protocolVersion: number;
2024
- requestId: string;
2025
- diagnostics?: {
2026
- viteVersion?: string | undefined;
2027
- reactVersion?: string | undefined;
2028
- tailwindVersion?: string | undefined;
2029
- overlayCssMode?: "self-contained" | undefined;
2030
- detectedLibraries?: ("shadcn" | "tailadmin" | "daisyui")[] | undefined;
2031
- } | undefined;
2032
- }, {
2033
- type: "pong";
2034
- protocolVersion: number;
2035
- requestId: string;
2036
- diagnostics?: {
2037
- viteVersion?: string | undefined;
2038
- reactVersion?: string | undefined;
2039
- tailwindVersion?: string | undefined;
2040
- overlayCssMode?: "self-contained" | undefined;
2041
- detectedLibraries?: ("shadcn" | "tailadmin" | "daisyui")[] | undefined;
2042
- } | undefined;
2043
- }>, z.ZodObject<{
2044
- type: z.ZodLiteral<"error">;
2045
- code: z.ZodString;
2046
- message: z.ZodString;
2047
- requestId: z.ZodOptional<z.ZodString>;
2048
- }, "strip", z.ZodTypeAny, {
2049
- code: string;
2050
- message: string;
2051
- type: "error";
2052
- requestId?: string | undefined;
2053
- }, {
2054
- code: string;
2055
- message: string;
2056
- type: "error";
2057
- requestId?: string | undefined;
2058
- }>, z.ZodObject<{
2059
- type: z.ZodLiteral<"indexReady">;
2060
- protocolVersion: z.ZodNumber;
2061
- indexVersion: z.ZodNumber;
2062
- entries: z.ZodArray<z.ZodObject<{
2063
- id: z.ZodString;
2064
- file: z.ZodString;
2065
- line: z.ZodNumber;
2066
- column: z.ZodNumber;
2067
- /** Source index v2 metadata */
2068
- tagName: z.ZodOptional<z.ZodString>;
2069
- componentName: z.ZodOptional<z.ZodString>;
2070
- hasLiteralClassName: z.ZodOptional<z.ZodBoolean>;
2071
- classNameValue: z.ZodOptional<z.ZodString>;
2072
- textEditable: z.ZodOptional<z.ZodBoolean>;
2073
- structuralEditable: z.ZodOptional<z.ZodBoolean>;
2074
- riskLevel: z.ZodOptional<z.ZodEnum<["safe", "caution", "unsupported"]>>;
2075
- unsupportedReasons: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2076
- insideMap: z.ZodOptional<z.ZodBoolean>;
2077
- /** Index v3: default id for className patches on this host. */
2078
- patchHostId: z.ZodOptional<z.ZodString>;
2079
- /** Index v3: preferred text target key in `textTargets`. */
2080
- primaryTextTargetKey: z.ZodOptional<z.ZodString>;
2081
- /** Index v3: descendant (and host) text edit targets. */
2082
- textTargets: z.ZodOptional<z.ZodArray<z.ZodObject<{
2083
- /** Stable within host: `data-nuvio-id` or `loc:line:column`. */
2084
- key: z.ZodString;
2085
- label: z.ZodString;
2086
- file: z.ZodString;
2087
- line: z.ZodNumber;
2088
- column: z.ZodNumber;
2089
- tagName: z.ZodString;
2090
- textEditable: z.ZodBoolean;
2091
- textPreview: z.ZodOptional<z.ZodString>;
2092
- /** Present when the text node has its own `data-nuvio-id`. */
2093
- nuvioId: z.ZodOptional<z.ZodString>;
2094
- /** Host id used for `mergeTailwindClassName` when patching styles for this target. */
2095
- patchHostId: z.ZodString;
2096
- insideMap: z.ZodOptional<z.ZodBoolean>;
2097
- }, "strip", z.ZodTypeAny, {
2098
- key: string;
2099
- label: string;
2100
- file: string;
2101
- line: number;
2102
- column: number;
2103
- tagName: string;
2104
- textEditable: boolean;
2105
- patchHostId: string;
2106
- textPreview?: string | undefined;
2107
- nuvioId?: string | undefined;
2108
- insideMap?: boolean | undefined;
2109
- }, {
2110
- key: string;
2111
- label: string;
2112
- file: string;
2113
- line: number;
2114
- column: number;
2115
- tagName: string;
2116
- textEditable: boolean;
2117
- patchHostId: string;
2118
- textPreview?: string | undefined;
2119
- nuvioId?: string | undefined;
2120
- insideMap?: boolean | undefined;
2121
- }>, "many">>;
2122
- /** Index v3: explicit style patch targets for this selected host. */
2123
- styleTargets: z.ZodOptional<z.ZodArray<z.ZodObject<{
2124
- /** Stable key within host: `data-nuvio-id` or `host` for selected container. */
2125
- key: z.ZodString;
2126
- label: z.ZodString;
2127
- file: z.ZodString;
2128
- line: z.ZodNumber;
2129
- column: z.ZodNumber;
2130
- tagName: z.ZodString;
2131
- nuvioId: z.ZodString;
2132
- patchHostId: z.ZodString;
2133
- classNamePatchable: z.ZodBoolean;
2134
- riskLevel: z.ZodOptional<z.ZodEnum<["safe", "caution", "unsupported"]>>;
2135
- }, "strip", z.ZodTypeAny, {
2136
- key: string;
2137
- label: string;
2138
- file: string;
2139
- line: number;
2140
- column: number;
2141
- tagName: string;
2142
- nuvioId: string;
2143
- patchHostId: string;
2144
- classNamePatchable: boolean;
2145
- riskLevel?: "safe" | "caution" | "unsupported" | undefined;
2146
- }, {
2147
- key: string;
2148
- label: string;
2149
- file: string;
2150
- line: number;
2151
- column: number;
2152
- tagName: string;
2153
- nuvioId: string;
2154
- patchHostId: string;
2155
- classNamePatchable: boolean;
2156
- riskLevel?: "safe" | "caution" | "unsupported" | undefined;
2157
- }>, "many">>;
2158
- /** Index v3: coarse host role, used for defaults/hints only. */
2159
- hierarchyRole: z.ZodOptional<z.ZodEnum<["section", "card", "table", "form", "group", "layout", "text", "button", "input", "media", "unknown"]>>;
2160
- /** Index v3: nearest ancestor host id in JSX ownership hierarchy. */
2161
- parentHostId: z.ZodOptional<z.ZodString>;
2162
- /** Index v3: descendant host ids under this host (if any). */
2163
- childTargetIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2164
- /** Index v4: row hosts when this entry is a table section. */
2165
- rowTargets: z.ZodOptional<z.ZodArray<z.ZodObject<{
2166
- rowKey: z.ZodString;
2167
- nuvioId: z.ZodString;
2168
- label: z.ZodString;
2169
- file: z.ZodString;
2170
- line: z.ZodNumber;
2171
- }, "strip", z.ZodTypeAny, {
2172
- label: string;
2173
- file: string;
2174
- line: number;
2175
- nuvioId: string;
2176
- rowKey: string;
2177
- }, {
2178
- label: string;
2179
- file: string;
2180
- line: number;
2181
- nuvioId: string;
2182
- rowKey: string;
2183
- }>, "many">>;
2184
- /** Index v4: static table data binding for Tier C. */
2185
- tableMeta: z.ZodOptional<z.ZodObject<{
2186
- dataBinding: z.ZodString;
2187
- file: z.ZodString;
2188
- line: z.ZodNumber;
2189
- columns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2190
- }, "strip", z.ZodTypeAny, {
2191
- file: string;
2192
- line: number;
2193
- dataBinding: string;
2194
- columns?: string[] | undefined;
2195
- }, {
2196
- file: string;
2197
- line: number;
2198
- dataBinding: string;
2199
- columns?: string[] | undefined;
2200
- }>>;
2201
- /** Index v4: when this host maps to a `tableData` field edit. */
2202
- tableDataField: z.ZodOptional<z.ZodObject<{
2203
- arrayName: z.ZodString;
2204
- rowKey: z.ZodString;
2205
- field: z.ZodString;
2206
- }, "strip", z.ZodTypeAny, {
2207
- rowKey: string;
2208
- arrayName: string;
2209
- field: string;
2210
- }, {
2211
- rowKey: string;
2212
- arrayName: string;
2213
- field: string;
2214
- }>>;
2215
- /** Index v5: detected className expression mode for patch routing. */
2216
- classNameMode: z.ZodOptional<z.ZodEnum<["literal-only", "cn-basic", "cn-conditional", "classnames-static", "unsupported"]>>;
2217
- /** Index v6: shadcn / TailAdmin / DaisyUI hint for this host. */
2218
- libraryHint: z.ZodOptional<z.ZodEnum<["shadcn", "tailadmin", "daisyui"]>>;
2219
- }, "strip", z.ZodTypeAny, {
2220
- file: string;
2221
- line: number;
2222
- column: number;
2223
- id: string;
2224
- tagName?: string | undefined;
2225
- textEditable?: boolean | undefined;
2226
- patchHostId?: string | undefined;
2227
- insideMap?: boolean | undefined;
2228
- riskLevel?: "safe" | "caution" | "unsupported" | undefined;
2229
- componentName?: string | undefined;
2230
- hasLiteralClassName?: boolean | undefined;
2231
- classNameValue?: string | undefined;
2232
- structuralEditable?: boolean | undefined;
2233
- unsupportedReasons?: string[] | undefined;
2234
- primaryTextTargetKey?: string | undefined;
2235
- textTargets?: {
2236
- key: string;
2237
- label: string;
2238
- file: string;
2239
- line: number;
2240
- column: number;
2241
- tagName: string;
2242
- textEditable: boolean;
2243
- patchHostId: string;
2244
- textPreview?: string | undefined;
2245
- nuvioId?: string | undefined;
2246
- insideMap?: boolean | undefined;
2247
- }[] | undefined;
2248
- styleTargets?: {
2249
- key: string;
2250
- label: string;
2251
- file: string;
2252
- line: number;
2253
- column: number;
2254
- tagName: string;
2255
- nuvioId: string;
2256
- patchHostId: string;
2257
- classNamePatchable: boolean;
2258
- riskLevel?: "safe" | "caution" | "unsupported" | undefined;
2259
- }[] | undefined;
2260
- hierarchyRole?: "section" | "card" | "table" | "form" | "group" | "layout" | "text" | "button" | "input" | "media" | "unknown" | undefined;
2261
- parentHostId?: string | undefined;
2262
- childTargetIds?: string[] | undefined;
2263
- rowTargets?: {
2264
- label: string;
2265
- file: string;
2266
- line: number;
2267
- nuvioId: string;
2268
- rowKey: string;
2269
- }[] | undefined;
2270
- tableMeta?: {
2271
- file: string;
2272
- line: number;
2273
- dataBinding: string;
2274
- columns?: string[] | undefined;
2275
- } | undefined;
2276
- tableDataField?: {
2277
- rowKey: string;
2278
- arrayName: string;
2279
- field: string;
2280
- } | undefined;
2281
- classNameMode?: "unsupported" | "literal-only" | "cn-basic" | "cn-conditional" | "classnames-static" | undefined;
2282
- libraryHint?: "shadcn" | "tailadmin" | "daisyui" | undefined;
2283
- }, {
2284
- file: string;
2285
- line: number;
2286
- column: number;
2287
- id: string;
2288
- tagName?: string | undefined;
2289
- textEditable?: boolean | undefined;
2290
- patchHostId?: string | undefined;
2291
- insideMap?: boolean | undefined;
2292
- riskLevel?: "safe" | "caution" | "unsupported" | undefined;
2293
- componentName?: string | undefined;
2294
- hasLiteralClassName?: boolean | undefined;
2295
- classNameValue?: string | undefined;
2296
- structuralEditable?: boolean | undefined;
2297
- unsupportedReasons?: string[] | undefined;
2298
- primaryTextTargetKey?: string | undefined;
2299
- textTargets?: {
2300
- key: string;
2301
- label: string;
2302
- file: string;
2303
- line: number;
2304
- column: number;
2305
- tagName: string;
2306
- textEditable: boolean;
2307
- patchHostId: string;
2308
- textPreview?: string | undefined;
2309
- nuvioId?: string | undefined;
2310
- insideMap?: boolean | undefined;
2311
- }[] | undefined;
2312
- styleTargets?: {
2313
- key: string;
2314
- label: string;
2315
- file: string;
2316
- line: number;
2317
- column: number;
2318
- tagName: string;
2319
- nuvioId: string;
2320
- patchHostId: string;
2321
- classNamePatchable: boolean;
2322
- riskLevel?: "safe" | "caution" | "unsupported" | undefined;
2323
- }[] | undefined;
2324
- hierarchyRole?: "section" | "card" | "table" | "form" | "group" | "layout" | "text" | "button" | "input" | "media" | "unknown" | undefined;
2325
- parentHostId?: string | undefined;
2326
- childTargetIds?: string[] | undefined;
2327
- rowTargets?: {
2328
- label: string;
2329
- file: string;
2330
- line: number;
2331
- nuvioId: string;
2332
- rowKey: string;
2333
- }[] | undefined;
2334
- tableMeta?: {
2335
- file: string;
2336
- line: number;
2337
- dataBinding: string;
2338
- columns?: string[] | undefined;
2339
- } | undefined;
2340
- tableDataField?: {
2341
- rowKey: string;
2342
- arrayName: string;
2343
- field: string;
2344
- } | undefined;
2345
- classNameMode?: "unsupported" | "literal-only" | "cn-basic" | "cn-conditional" | "classnames-static" | undefined;
2346
- libraryHint?: "shadcn" | "tailadmin" | "daisyui" | undefined;
2347
- }>, "many">;
2348
- duplicateErrors: z.ZodArray<z.ZodObject<{
2349
- id: z.ZodString;
2350
- occurrences: z.ZodArray<z.ZodObject<{
2351
- file: z.ZodString;
2352
- line: z.ZodNumber;
2353
- column: z.ZodNumber;
2354
- }, "strip", z.ZodTypeAny, {
2355
- file: string;
2356
- line: number;
2357
- column: number;
2358
- }, {
2359
- file: string;
2360
- line: number;
2361
- column: number;
2362
- }>, "many">;
2363
- }, "strip", z.ZodTypeAny, {
2364
- id: string;
2365
- occurrences: {
2366
- file: string;
2367
- line: number;
2368
- column: number;
2369
- }[];
2370
- }, {
2371
- id: string;
2372
- occurrences: {
2373
- file: string;
2374
- line: number;
2375
- column: number;
2376
- }[];
2377
- }>, "many">;
2378
- diagnostics: z.ZodOptional<z.ZodObject<{
2379
- viteVersion: z.ZodOptional<z.ZodString>;
2380
- reactVersion: z.ZodOptional<z.ZodString>;
2381
- tailwindVersion: z.ZodOptional<z.ZodString>;
2382
- overlayCssMode: z.ZodOptional<z.ZodLiteral<"self-contained">>;
2383
- /** Project-level library detection (v0.8). */
2384
- detectedLibraries: z.ZodOptional<z.ZodArray<z.ZodEnum<["shadcn", "tailadmin", "daisyui"]>, "many">>;
2385
- }, "strip", z.ZodTypeAny, {
2386
- viteVersion?: string | undefined;
2387
- reactVersion?: string | undefined;
2388
- tailwindVersion?: string | undefined;
2389
- overlayCssMode?: "self-contained" | undefined;
2390
- detectedLibraries?: ("shadcn" | "tailadmin" | "daisyui")[] | undefined;
2391
- }, {
2392
- viteVersion?: string | undefined;
2393
- reactVersion?: string | undefined;
2394
- tailwindVersion?: string | undefined;
2395
- overlayCssMode?: "self-contained" | undefined;
2396
- detectedLibraries?: ("shadcn" | "tailadmin" | "daisyui")[] | undefined;
2397
- }>>;
2398
- }, "strip", z.ZodTypeAny, {
2399
- entries: {
2400
- file: string;
2401
- line: number;
2402
- column: number;
2403
- id: string;
2404
- tagName?: string | undefined;
2405
- textEditable?: boolean | undefined;
2406
- patchHostId?: string | undefined;
2407
- insideMap?: boolean | undefined;
2408
- riskLevel?: "safe" | "caution" | "unsupported" | undefined;
2409
- componentName?: string | undefined;
2410
- hasLiteralClassName?: boolean | undefined;
2411
- classNameValue?: string | undefined;
2412
- structuralEditable?: boolean | undefined;
2413
- unsupportedReasons?: string[] | undefined;
2414
- primaryTextTargetKey?: string | undefined;
2415
- textTargets?: {
2416
- key: string;
2417
- label: string;
2418
- file: string;
2419
- line: number;
2420
- column: number;
2421
- tagName: string;
2422
- textEditable: boolean;
2423
- patchHostId: string;
2424
- textPreview?: string | undefined;
2425
- nuvioId?: string | undefined;
2426
- insideMap?: boolean | undefined;
2427
- }[] | undefined;
2428
- styleTargets?: {
2429
- key: string;
2430
- label: string;
2431
- file: string;
2432
- line: number;
2433
- column: number;
2434
- tagName: string;
2435
- nuvioId: string;
2436
- patchHostId: string;
2437
- classNamePatchable: boolean;
2438
- riskLevel?: "safe" | "caution" | "unsupported" | undefined;
2439
- }[] | undefined;
2440
- hierarchyRole?: "section" | "card" | "table" | "form" | "group" | "layout" | "text" | "button" | "input" | "media" | "unknown" | undefined;
2441
- parentHostId?: string | undefined;
2442
- childTargetIds?: string[] | undefined;
2443
- rowTargets?: {
2444
- label: string;
2445
- file: string;
2446
- line: number;
2447
- nuvioId: string;
2448
- rowKey: string;
2449
- }[] | undefined;
2450
- tableMeta?: {
2451
- file: string;
2452
- line: number;
2453
- dataBinding: string;
2454
- columns?: string[] | undefined;
2455
- } | undefined;
2456
- tableDataField?: {
2457
- rowKey: string;
2458
- arrayName: string;
2459
- field: string;
2460
- } | undefined;
2461
- classNameMode?: "unsupported" | "literal-only" | "cn-basic" | "cn-conditional" | "classnames-static" | undefined;
2462
- libraryHint?: "shadcn" | "tailadmin" | "daisyui" | undefined;
2463
- }[];
2464
- type: "indexReady";
2465
- protocolVersion: number;
2466
- indexVersion: number;
2467
- duplicateErrors: {
2468
- id: string;
2469
- occurrences: {
2470
- file: string;
2471
- line: number;
2472
- column: number;
2473
- }[];
2474
- }[];
2475
- diagnostics?: {
2476
- viteVersion?: string | undefined;
2477
- reactVersion?: string | undefined;
2478
- tailwindVersion?: string | undefined;
2479
- overlayCssMode?: "self-contained" | undefined;
2480
- detectedLibraries?: ("shadcn" | "tailadmin" | "daisyui")[] | undefined;
2481
- } | undefined;
2482
- }, {
2483
- entries: {
2484
- file: string;
2485
- line: number;
2486
- column: number;
2487
- id: string;
2488
- tagName?: string | undefined;
2489
- textEditable?: boolean | undefined;
2490
- patchHostId?: string | undefined;
2491
- insideMap?: boolean | undefined;
2492
- riskLevel?: "safe" | "caution" | "unsupported" | undefined;
2493
- componentName?: string | undefined;
2494
- hasLiteralClassName?: boolean | undefined;
2495
- classNameValue?: string | undefined;
2496
- structuralEditable?: boolean | undefined;
2497
- unsupportedReasons?: string[] | undefined;
2498
- primaryTextTargetKey?: string | undefined;
2499
- textTargets?: {
2500
- key: string;
2501
- label: string;
2502
- file: string;
2503
- line: number;
2504
- column: number;
2505
- tagName: string;
2506
- textEditable: boolean;
2507
- patchHostId: string;
2508
- textPreview?: string | undefined;
2509
- nuvioId?: string | undefined;
2510
- insideMap?: boolean | undefined;
2511
- }[] | undefined;
2512
- styleTargets?: {
2513
- key: string;
2514
- label: string;
2515
- file: string;
2516
- line: number;
2517
- column: number;
2518
- tagName: string;
2519
- nuvioId: string;
2520
- patchHostId: string;
2521
- classNamePatchable: boolean;
2522
- riskLevel?: "safe" | "caution" | "unsupported" | undefined;
2523
- }[] | undefined;
2524
- hierarchyRole?: "section" | "card" | "table" | "form" | "group" | "layout" | "text" | "button" | "input" | "media" | "unknown" | undefined;
2525
- parentHostId?: string | undefined;
2526
- childTargetIds?: string[] | undefined;
2527
- rowTargets?: {
2528
- label: string;
2529
- file: string;
2530
- line: number;
2531
- nuvioId: string;
2532
- rowKey: string;
2533
- }[] | undefined;
2534
- tableMeta?: {
2535
- file: string;
2536
- line: number;
2537
- dataBinding: string;
2538
- columns?: string[] | undefined;
2539
- } | undefined;
2540
- tableDataField?: {
2541
- rowKey: string;
2542
- arrayName: string;
2543
- field: string;
2544
- } | undefined;
2545
- classNameMode?: "unsupported" | "literal-only" | "cn-basic" | "cn-conditional" | "classnames-static" | undefined;
2546
- libraryHint?: "shadcn" | "tailadmin" | "daisyui" | undefined;
2547
- }[];
2548
- type: "indexReady";
2549
- protocolVersion: number;
2550
- indexVersion: number;
2551
- duplicateErrors: {
2552
- id: string;
2553
- occurrences: {
2554
- file: string;
2555
- line: number;
2556
- column: number;
2557
- }[];
2558
- }[];
2559
- diagnostics?: {
2560
- viteVersion?: string | undefined;
2561
- reactVersion?: string | undefined;
2562
- tailwindVersion?: string | undefined;
2563
- overlayCssMode?: "self-contained" | undefined;
2564
- detectedLibraries?: ("shadcn" | "tailadmin" | "daisyui")[] | undefined;
2565
- } | undefined;
2566
- }>, z.ZodObject<{
2567
- type: z.ZodLiteral<"selectAck">;
2568
- protocolVersion: z.ZodNumber;
2569
- requestId: z.ZodString;
2570
- id: z.ZodString;
2571
- ok: z.ZodBoolean;
2572
- file: z.ZodOptional<z.ZodString>;
2573
- line: z.ZodOptional<z.ZodNumber>;
2574
- column: z.ZodOptional<z.ZodNumber>;
2575
- /** Index v3 snapshot for the selected host (also on `indexReady` entries). */
2576
- patchHostId: z.ZodOptional<z.ZodString>;
2577
- primaryTextTargetKey: z.ZodOptional<z.ZodString>;
2578
- textTargets: z.ZodOptional<z.ZodArray<z.ZodObject<{
2579
- /** Stable within host: `data-nuvio-id` or `loc:line:column`. */
2580
- key: z.ZodString;
2581
- label: z.ZodString;
2582
- file: z.ZodString;
2583
- line: z.ZodNumber;
2584
- column: z.ZodNumber;
2585
- tagName: z.ZodString;
2586
- textEditable: z.ZodBoolean;
2587
- textPreview: z.ZodOptional<z.ZodString>;
2588
- /** Present when the text node has its own `data-nuvio-id`. */
2589
- nuvioId: z.ZodOptional<z.ZodString>;
2590
- /** Host id used for `mergeTailwindClassName` when patching styles for this target. */
2591
- patchHostId: z.ZodString;
2592
- insideMap: z.ZodOptional<z.ZodBoolean>;
2593
- }, "strip", z.ZodTypeAny, {
2594
- key: string;
2595
- label: string;
2596
- file: string;
2597
- line: number;
2598
- column: number;
2599
- tagName: string;
2600
- textEditable: boolean;
2601
- patchHostId: string;
2602
- textPreview?: string | undefined;
2603
- nuvioId?: string | undefined;
2604
- insideMap?: boolean | undefined;
2605
- }, {
2606
- key: string;
2607
- label: string;
2608
- file: string;
2609
- line: number;
2610
- column: number;
2611
- tagName: string;
2612
- textEditable: boolean;
2613
- patchHostId: string;
2614
- textPreview?: string | undefined;
2615
- nuvioId?: string | undefined;
2616
- insideMap?: boolean | undefined;
2617
- }>, "many">>;
2618
- styleTargets: z.ZodOptional<z.ZodArray<z.ZodObject<{
2619
- /** Stable key within host: `data-nuvio-id` or `host` for selected container. */
2620
- key: z.ZodString;
2621
- label: z.ZodString;
2622
- file: z.ZodString;
2623
- line: z.ZodNumber;
2624
- column: z.ZodNumber;
2625
- tagName: z.ZodString;
2626
- nuvioId: z.ZodString;
2627
- patchHostId: z.ZodString;
2628
- classNamePatchable: z.ZodBoolean;
2629
- riskLevel: z.ZodOptional<z.ZodEnum<["safe", "caution", "unsupported"]>>;
2630
- }, "strip", z.ZodTypeAny, {
2631
- key: string;
2632
- label: string;
2633
- file: string;
2634
- line: number;
2635
- column: number;
2636
- tagName: string;
2637
- nuvioId: string;
2638
- patchHostId: string;
2639
- classNamePatchable: boolean;
2640
- riskLevel?: "safe" | "caution" | "unsupported" | undefined;
2641
- }, {
2642
- key: string;
2643
- label: string;
2644
- file: string;
2645
- line: number;
2646
- column: number;
2647
- tagName: string;
2648
- nuvioId: string;
2649
- patchHostId: string;
2650
- classNamePatchable: boolean;
2651
- riskLevel?: "safe" | "caution" | "unsupported" | undefined;
2652
- }>, "many">>;
2653
- hierarchyRole: z.ZodOptional<z.ZodEnum<["section", "card", "table", "form", "group", "layout", "text", "button", "input", "media", "unknown"]>>;
2654
- parentHostId: z.ZodOptional<z.ZodString>;
2655
- childTargetIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2656
- rowTargets: z.ZodOptional<z.ZodArray<z.ZodObject<{
2657
- rowKey: z.ZodString;
2658
- nuvioId: z.ZodString;
2659
- label: z.ZodString;
2660
- file: z.ZodString;
2661
- line: z.ZodNumber;
2662
- }, "strip", z.ZodTypeAny, {
2663
- label: string;
2664
- file: string;
2665
- line: number;
2666
- nuvioId: string;
2667
- rowKey: string;
2668
- }, {
2669
- label: string;
2670
- file: string;
2671
- line: number;
2672
- nuvioId: string;
2673
- rowKey: string;
2674
- }>, "many">>;
2675
- tableMeta: z.ZodOptional<z.ZodObject<{
2676
- dataBinding: z.ZodString;
2677
- file: z.ZodString;
2678
- line: z.ZodNumber;
2679
- columns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2680
- }, "strip", z.ZodTypeAny, {
2681
- file: string;
2682
- line: number;
2683
- dataBinding: string;
2684
- columns?: string[] | undefined;
2685
- }, {
2686
- file: string;
2687
- line: number;
2688
- dataBinding: string;
2689
- columns?: string[] | undefined;
2690
- }>>;
2691
- tableDataField: z.ZodOptional<z.ZodObject<{
2692
- arrayName: z.ZodString;
2693
- rowKey: z.ZodString;
2694
- field: z.ZodString;
2695
- }, "strip", z.ZodTypeAny, {
2696
- rowKey: string;
2697
- arrayName: string;
2698
- field: string;
2699
- }, {
2700
- rowKey: string;
2701
- arrayName: string;
2702
- field: string;
2703
- }>>;
2704
- errorCode: z.ZodOptional<z.ZodString>;
2705
- errorMessage: z.ZodOptional<z.ZodString>;
2706
- }, "strip", z.ZodTypeAny, {
2707
- type: "selectAck";
2708
- id: string;
2709
- protocolVersion: number;
2710
- requestId: string;
2711
- ok: boolean;
2712
- file?: string | undefined;
2713
- line?: number | undefined;
2714
- column?: number | undefined;
2715
- patchHostId?: string | undefined;
2716
- primaryTextTargetKey?: string | undefined;
2717
- textTargets?: {
2718
- key: string;
2719
- label: string;
2720
- file: string;
2721
- line: number;
2722
- column: number;
2723
- tagName: string;
2724
- textEditable: boolean;
2725
- patchHostId: string;
2726
- textPreview?: string | undefined;
2727
- nuvioId?: string | undefined;
2728
- insideMap?: boolean | undefined;
2729
- }[] | undefined;
2730
- styleTargets?: {
2731
- key: string;
2732
- label: string;
2733
- file: string;
2734
- line: number;
2735
- column: number;
2736
- tagName: string;
2737
- nuvioId: string;
2738
- patchHostId: string;
2739
- classNamePatchable: boolean;
2740
- riskLevel?: "safe" | "caution" | "unsupported" | undefined;
2741
- }[] | undefined;
2742
- hierarchyRole?: "section" | "card" | "table" | "form" | "group" | "layout" | "text" | "button" | "input" | "media" | "unknown" | undefined;
2743
- parentHostId?: string | undefined;
2744
- childTargetIds?: string[] | undefined;
2745
- rowTargets?: {
2746
- label: string;
2747
- file: string;
2748
- line: number;
2749
- nuvioId: string;
2750
- rowKey: string;
2751
- }[] | undefined;
2752
- tableMeta?: {
2753
- file: string;
2754
- line: number;
2755
- dataBinding: string;
2756
- columns?: string[] | undefined;
2757
- } | undefined;
2758
- tableDataField?: {
2759
- rowKey: string;
2760
- arrayName: string;
2761
- field: string;
2762
- } | undefined;
2763
- errorCode?: string | undefined;
2764
- errorMessage?: string | undefined;
2765
- }, {
2766
- type: "selectAck";
2767
- id: string;
2768
- protocolVersion: number;
2769
- requestId: string;
2770
- ok: boolean;
2771
- file?: string | undefined;
2772
- line?: number | undefined;
2773
- column?: number | undefined;
2774
- patchHostId?: string | undefined;
2775
- primaryTextTargetKey?: string | undefined;
2776
- textTargets?: {
2777
- key: string;
2778
- label: string;
2779
- file: string;
2780
- line: number;
2781
- column: number;
2782
- tagName: string;
2783
- textEditable: boolean;
2784
- patchHostId: string;
2785
- textPreview?: string | undefined;
2786
- nuvioId?: string | undefined;
2787
- insideMap?: boolean | undefined;
2788
- }[] | undefined;
2789
- styleTargets?: {
2790
- key: string;
2791
- label: string;
2792
- file: string;
2793
- line: number;
2794
- column: number;
2795
- tagName: string;
2796
- nuvioId: string;
2797
- patchHostId: string;
2798
- classNamePatchable: boolean;
2799
- riskLevel?: "safe" | "caution" | "unsupported" | undefined;
2800
- }[] | undefined;
2801
- hierarchyRole?: "section" | "card" | "table" | "form" | "group" | "layout" | "text" | "button" | "input" | "media" | "unknown" | undefined;
2802
- parentHostId?: string | undefined;
2803
- childTargetIds?: string[] | undefined;
2804
- rowTargets?: {
2805
- label: string;
2806
- file: string;
2807
- line: number;
2808
- nuvioId: string;
2809
- rowKey: string;
2810
- }[] | undefined;
2811
- tableMeta?: {
2812
- file: string;
2813
- line: number;
2814
- dataBinding: string;
2815
- columns?: string[] | undefined;
2816
- } | undefined;
2817
- tableDataField?: {
2818
- rowKey: string;
2819
- arrayName: string;
2820
- field: string;
2821
- } | undefined;
2822
- errorCode?: string | undefined;
2823
- errorMessage?: string | undefined;
2824
- }>, z.ZodObject<{
2825
- type: z.ZodLiteral<"patchAck">;
2826
- protocolVersion: z.ZodNumber;
2827
- requestId: z.ZodString;
2828
- id: z.ZodString;
2829
- ok: z.ZodBoolean;
2830
- diffSummary: z.ZodOptional<z.ZodString>;
2831
- /** Present when this ack is for a `patchApply` with `dryRun: true`. */
2832
- dryRun: z.ZodOptional<z.ZodBoolean>;
2833
- /** Absolute path written on successful non-dry apply (for touched-file log). */
2834
- writtenFile: z.ZodOptional<z.ZodString>;
2835
- /** Server undo stack size after this apply (non-dry success only). */
2836
- undoStackDepth: z.ZodOptional<z.ZodNumber>;
2837
- errorCode: z.ZodOptional<z.ZodString>;
2838
- errorMessage: z.ZodOptional<z.ZodString>;
2839
- }, "strip", z.ZodTypeAny, {
2840
- type: "patchAck";
2841
- id: string;
2842
- protocolVersion: number;
2843
- requestId: string;
2844
- ok: boolean;
2845
- dryRun?: boolean | undefined;
2846
- errorCode?: string | undefined;
2847
- errorMessage?: string | undefined;
2848
- diffSummary?: string | undefined;
2849
- writtenFile?: string | undefined;
2850
- undoStackDepth?: number | undefined;
2851
- }, {
2852
- type: "patchAck";
2853
- id: string;
2854
- protocolVersion: number;
2855
- requestId: string;
2856
- ok: boolean;
2857
- dryRun?: boolean | undefined;
2858
- errorCode?: string | undefined;
2859
- errorMessage?: string | undefined;
2860
- diffSummary?: string | undefined;
2861
- writtenFile?: string | undefined;
2862
- undoStackDepth?: number | undefined;
2863
- }>, z.ZodObject<{
2864
- type: z.ZodLiteral<"patchUndoAck">;
2865
- protocolVersion: z.ZodNumber;
2866
- requestId: z.ZodString;
2867
- ok: z.ZodBoolean;
2868
- file: z.ZodOptional<z.ZodString>;
2869
- /** Remaining in-memory undo snapshots after this undo (success only). */
2870
- undoStackDepth: z.ZodOptional<z.ZodNumber>;
2871
- errorCode: z.ZodOptional<z.ZodString>;
2872
- errorMessage: z.ZodOptional<z.ZodString>;
2873
- }, "strip", z.ZodTypeAny, {
2874
- type: "patchUndoAck";
2875
- protocolVersion: number;
2876
- requestId: string;
2877
- ok: boolean;
2878
- file?: string | undefined;
2879
- errorCode?: string | undefined;
2880
- errorMessage?: string | undefined;
2881
- undoStackDepth?: number | undefined;
2882
- }, {
2883
- type: "patchUndoAck";
2884
- protocolVersion: number;
2885
- requestId: string;
2886
- ok: boolean;
2887
- file?: string | undefined;
2888
- errorCode?: string | undefined;
2889
- errorMessage?: string | undefined;
2890
- undoStackDepth?: number | undefined;
2891
- }>, z.ZodObject<{
2892
- type: z.ZodLiteral<"tagElementAck">;
2893
- protocolVersion: z.ZodNumber;
2894
- requestId: z.ZodString;
2895
- ok: z.ZodBoolean;
2896
- id: z.ZodOptional<z.ZodString>;
2897
- errorCode: z.ZodOptional<z.ZodString>;
2898
- errorMessage: z.ZodOptional<z.ZodString>;
2899
- }, "strip", z.ZodTypeAny, {
2900
- type: "tagElementAck";
2901
- protocolVersion: number;
2902
- requestId: string;
2903
- ok: boolean;
2904
- id?: string | undefined;
2905
- errorCode?: string | undefined;
2906
- errorMessage?: string | undefined;
2907
- }, {
2908
- type: "tagElementAck";
2909
- protocolVersion: number;
2910
- requestId: string;
2911
- ok: boolean;
2912
- id?: string | undefined;
2913
- errorCode?: string | undefined;
2914
- errorMessage?: string | undefined;
2915
- }>]>;
2916
- type ServerMessage = z.infer<typeof serverMessageSchema>;
2917
- declare function parseClientMessage(raw: string): ClientMessage | null;
2918
- declare function parseServerMessage(raw: string): ServerMessage | null;
2919
- declare function serializeServerMessage(msg: ServerMessage): string;
38
+
39
+ type BrandInspectDimension = "color" | "radius" | "density" | "typography" | "surface" | "buttonVariant";
40
+ type BrandInspectStatus = "match" | "mismatch" | "not_set";
41
+ type BrandInspectRow = {
42
+ dimension: BrandInspectDimension;
43
+ dimensionLabel: string;
44
+ status: BrandInspectStatus;
45
+ currentLabel: string;
46
+ brandLabel: string;
47
+ currentToken?: string;
48
+ expectedToken?: string;
49
+ };
50
+ type BrandInspectResult = {
51
+ rows: BrandInspectRow[];
52
+ matchCount: number;
53
+ checkedCount: number;
54
+ headline: string;
55
+ };
56
+ /** Infer project preset values from flattened utility tokens (category-scoped when action is set). */
57
+ declare function inferBrandPresetsFromTokens(tokens: readonly string[], action?: BrandApplyAction): Partial<BrandConfig>;
58
+ /** Infer project preset values from a host class string (category-scoped when action is set). */
59
+ declare function inferBrandPresetsFromClassName(className: string, action?: BrandApplyAction): Partial<BrandConfig>;
60
+ /** Category-scoped audit: only checks dimensions the bulk recipe for that action sets. */
61
+ declare function inspectBrandMatchForAction(action: BrandApplyAction, className: string, brand: BrandConfig, hint?: BrandFragmentHostHint): BrandInspectResult;
62
+ /** Read-only audit: compare a host class string to the saved brand recipe. */
63
+ declare function inspectBrandMatch(className: string, brand: BrandConfig): BrandInspectResult;
64
+
65
+ /** Host ids used for navigation only — no brand bulk recipe. */
66
+ declare function isNonBrandableNavEntry(entry: Pick<IndexWireEntry, "id">): boolean;
67
+ /** Infer the brand category for a single indexed host (first matching recipe). */
68
+ declare function resolveBrandCategoryForEntry(entry: IndexWireEntry): BrandApplyAction | null;
69
+ declare function isBrandableEntry(entry: IndexWireEntry): boolean;
70
+
71
+ type BrandHostScanStatus = "on_brand" | "off_brand" | "no_traits" | "missing";
72
+ type BrandHostScanResult = {
73
+ hostId: string;
74
+ category: PccCategory;
75
+ status: BrandHostScanStatus;
76
+ inspect: BrandInspectResult | null;
77
+ };
78
+ type BrandCategoryScanSummary = {
79
+ category: PccCategory;
80
+ expected: number;
81
+ onBrand: number;
82
+ offBrand: number;
83
+ noTraits: number;
84
+ missing: number;
85
+ pass: boolean;
86
+ };
87
+ type BrandPageScanResult = {
88
+ page: string;
89
+ route: string;
90
+ brand: BrandConfig;
91
+ categories: BrandCategoryScanSummary[];
92
+ hosts: BrandHostScanResult[];
93
+ onBrandCount: number;
94
+ offBrandCount: number;
95
+ noTraitsCount: number;
96
+ missingCount: number;
97
+ pass: boolean;
98
+ };
99
+ declare function evaluateBrandPageScan(manifest: PccManifest, entries: readonly IndexWireEntry[], brandInput: BrandConfig | unknown): BrandPageScanResult;
100
+ declare function pccBrandableHostIds(manifest: PccManifest): string[];
101
+
102
+ type CoverageHostIssueKind = "missing" | "unpatchable" | "duplicate_id";
103
+ type CoverageHostIssue = {
104
+ kind: CoverageHostIssueKind;
105
+ hostId: string;
106
+ category: PccCategory;
107
+ reason?: string;
108
+ };
109
+ type CategoryCoverageSummary = {
110
+ category: PccCategory;
111
+ required: boolean;
112
+ expected: number;
113
+ indexed: number;
114
+ patchable: number;
115
+ categorized: number;
116
+ editable: number;
117
+ brandable: number;
118
+ pass: boolean;
119
+ };
120
+ type CoverageGateTotals = {
121
+ indexed: number;
122
+ patchable: number;
123
+ categorized: number;
124
+ editable: number;
125
+ brandable: number;
126
+ expected: number;
127
+ };
128
+ type CoverageEvaluationResult = {
129
+ page: string;
130
+ route: string;
131
+ categories: CategoryCoverageSummary[];
132
+ gates: CoverageGateTotals;
133
+ issues: CoverageHostIssue[];
134
+ brandableCount: number;
135
+ editableOnlyCount: number;
136
+ pass: boolean;
137
+ };
138
+ declare function isHostPatchable(entry: IndexWireEntry, duplicateIds: ReadonlySet<string>): {
139
+ patchable: boolean;
140
+ reason?: string;
141
+ };
142
+ declare function evaluatePageCoverage(manifest: PccManifest, entries: readonly IndexWireEntry[], duplicateErrors?: readonly DuplicateIdError[]): CoverageEvaluationResult;
143
+
144
+ /** Normalize browser or manifest route paths for comparison. */
145
+ declare function normalizeAppRoute(route: string): string;
146
+ /** PCC host list for a Brand Kit bulk action, or null when the manifest omits the category. */
147
+ declare function pccHostsForBrandAction(manifest: PccManifest | null | undefined, action: BrandApplyAction): readonly string[] | null;
148
+ declare function pccManifestMatchesRoute(manifest: PccManifest, route: string): boolean;
2920
149
 
2921
150
  declare const LIBRARY_IDS: readonly ["shadcn", "tailadmin", "daisyui"];
2922
151
  declare function librarySegmentForTag(tagName: string, libraryId: LibraryId): string | undefined;
@@ -2943,4 +172,4 @@ declare function suggestNuvioId(options: {
2943
172
  componentName?: string;
2944
173
  }): string;
2945
174
 
2946
- export { type Breakpoint, type ClientMessage, type ClientPatchApply, type ClientPatchUndo, type ClientPing, type ClientSelect, type ClientTagElement, type DuplicateIdError, type HierarchyRole, type IndexWireEntry, LIBRARY_IDS, type LibraryId, NUVIO_ID_PATTERN, NUVIO_WS_PATH, PROTOCOL_VERSION, type PatchOp, type RiskLevel, type RowWireTarget, type RuntimeDiagnostics, type ServerIndexReady, type ServerMessage, type ServerPatchAck, type ServerPatchUndoAck, type ServerSelectAck, type ServerTagElementAck, type StyleWireTarget, type TableDataFieldBinding, type TableMeta, type TextWireTarget, type WireClassNameMode, breakpointSchema, classNameModeSchema, clientMessageSchema, clientPatchApplySchema, clientPatchUndoSchema, clientPingSchema, clientSelectSchema, clientTagElementSchema, detectShadcnComponentMode, duplicateIdErrorSchema, duplicateIdOccurrenceSchema, formatLibraryList, hierarchyRoleSchema, indexEntrySchema, inferLibraryFromFilePath, isShadcnCompoundTag, isValidNuvioId, libraryGuidanceForEntry, libraryIdSchema, librarySegmentForTag, parseClientMessage, parseServerMessage, patchOpDuplicateHostSchema, patchOpMergeTailwindSchema, patchOpMoveSiblingSchema, patchOpSchema, patchOpSetHiddenSchema, patchOpSetTableDataFieldSchema, patchOpSetTextSchema, resolveEntryLibraryHint, riskLevelSchema, rowTargetSchema, runtimeDiagnosticsSchema, serializeServerMessage, serverErrorSchema, serverIndexReadySchema, serverMessageSchema, serverPatchAckSchema, serverPatchUndoAckSchema, serverPongSchema, serverSelectAckSchema, serverTagElementAckSchema, styleTargetSchema, suggestNuvioId, tableDataFieldSchema, tableMetaSchema, textTargetSchema };
175
+ export { BRAND_PAGE_DISCOVERY_PLURALS, BrandApplyAction, type BrandBulkFilterOptions, type BrandBulkTarget, type BrandCategoryScanSummary, BrandConfig, BrandFragmentHostHint, type BrandHostScanResult, type BrandHostScanStatus, type BrandInspectDimension, type BrandInspectResult, type BrandInspectRow, type BrandInspectStatus, type BrandPageDiscoveryCounts, type BrandPageScanResult, type CategoryCoverageSummary, type CoverageEvaluationResult, type CoverageGateTotals, type CoverageHostIssue, type CoverageHostIssueKind, DuplicateIdError, IndexWireEntry, LIBRARY_IDS, LibraryId, NUVIO_BRAND_PATH, NUVIO_ID_PATTERN, NUVIO_PCC_PATH, NUVIO_WS_PATH, PatchOp, PccCategory, PccManifest, buildBrandBulkPatchOps, buildBrandBulkPreviewSummary, buildBrandBulkTargetOps, buildBrandPageDiscoveryLine, buildBrandValidateSummary, detectShadcnComponentMode, entryMatchesBrandBulkAction, evaluateBrandPageScan, evaluatePageCoverage, filterBrandBulkCandidates, formatLibraryList, inferBrandPresetsFromClassName, inferBrandPresetsFromTokens, inferLibraryFromFilePath, inspectBrandMatch, inspectBrandMatchForAction, isBrandableEntry, isHostPatchable, isNonBrandableNavEntry, isShadcnCompoundTag, isValidNuvioId, libraryGuidanceForEntry, librarySegmentForTag, normalizeAppRoute, pccBrandableHostIds, pccHostsForBrandAction, pccManifestMatchesRoute, resolveBrandBulkPatchHostId, resolveBrandCategoryForEntry, resolveEntryLibraryHint, suggestNuvioId };