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