@sxl-studio/bridge 1.3.2 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,698 @@
1
1
  /**
2
2
  * MCP tools for Vars / Tokens operations (full workspace CRUD).
3
3
  */
4
+ import { z } from "zod";
4
5
  import type { McpServer } from "../../node_modules/@modelcontextprotocol/sdk/dist/cjs/server/mcp.js";
5
6
  import type { CommandQueue } from "../command-queue.js";
7
+ /** Doc Spec v1 — shared with orchestration `build_token_documentation`. */
8
+ export declare const tokenDocSpecV1Zod: z.ZodObject<{
9
+ version: z.ZodLiteral<"1">;
10
+ title: z.ZodOptional<z.ZodString>;
11
+ groups: z.ZodArray<z.ZodObject<{
12
+ id: z.ZodString;
13
+ title: z.ZodOptional<z.ZodString>;
14
+ rows: z.ZodArray<z.ZodObject<{
15
+ layerName: z.ZodString;
16
+ tokenPath: z.ZodString;
17
+ show: z.ZodOptional<z.ZodEnum<["resolved", "path", "both"]>>;
18
+ }, "strip", z.ZodTypeAny, {
19
+ layerName: string;
20
+ tokenPath: string;
21
+ show?: "path" | "resolved" | "both" | undefined;
22
+ }, {
23
+ layerName: string;
24
+ tokenPath: string;
25
+ show?: "path" | "resolved" | "both" | undefined;
26
+ }>, "many">;
27
+ }, "strip", z.ZodTypeAny, {
28
+ id: string;
29
+ rows: {
30
+ layerName: string;
31
+ tokenPath: string;
32
+ show?: "path" | "resolved" | "both" | undefined;
33
+ }[];
34
+ title?: string | undefined;
35
+ }, {
36
+ id: string;
37
+ rows: {
38
+ layerName: string;
39
+ tokenPath: string;
40
+ show?: "path" | "resolved" | "both" | undefined;
41
+ }[];
42
+ title?: string | undefined;
43
+ }>, "many">;
44
+ }, "strip", z.ZodTypeAny, {
45
+ version: "1";
46
+ groups: {
47
+ id: string;
48
+ rows: {
49
+ layerName: string;
50
+ tokenPath: string;
51
+ show?: "path" | "resolved" | "both" | undefined;
52
+ }[];
53
+ title?: string | undefined;
54
+ }[];
55
+ title?: string | undefined;
56
+ }, {
57
+ version: "1";
58
+ groups: {
59
+ id: string;
60
+ rows: {
61
+ layerName: string;
62
+ tokenPath: string;
63
+ show?: "path" | "resolved" | "both" | undefined;
64
+ }[];
65
+ title?: string | undefined;
66
+ }[];
67
+ title?: string | undefined;
68
+ }>;
69
+ export declare const docSectionZod: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
70
+ type: z.ZodLiteral<"title">;
71
+ id: z.ZodOptional<z.ZodString>;
72
+ text: z.ZodString;
73
+ layerName: z.ZodOptional<z.ZodString>;
74
+ }, "strip", z.ZodTypeAny, {
75
+ type: "title";
76
+ text: string;
77
+ layerName?: string | undefined;
78
+ id?: string | undefined;
79
+ }, {
80
+ type: "title";
81
+ text: string;
82
+ layerName?: string | undefined;
83
+ id?: string | undefined;
84
+ }>, z.ZodObject<{
85
+ type: z.ZodLiteral<"description">;
86
+ id: z.ZodOptional<z.ZodString>;
87
+ markdown: z.ZodString;
88
+ layerName: z.ZodOptional<z.ZodString>;
89
+ }, "strip", z.ZodTypeAny, {
90
+ type: "description";
91
+ markdown: string;
92
+ layerName?: string | undefined;
93
+ id?: string | undefined;
94
+ }, {
95
+ type: "description";
96
+ markdown: string;
97
+ layerName?: string | undefined;
98
+ id?: string | undefined;
99
+ }>, z.ZodObject<{
100
+ type: z.ZodLiteral<"variants">;
101
+ id: z.ZodOptional<z.ZodString>;
102
+ componentSetId: z.ZodOptional<z.ZodString>;
103
+ componentId: z.ZodOptional<z.ZodString>;
104
+ layout: z.ZodOptional<z.ZodEnum<["matrix", "grid", "list"]>>;
105
+ groupBy: z.ZodOptional<z.ZodString>;
106
+ limit: z.ZodOptional<z.ZodNumber>;
107
+ labelLayerName: z.ZodOptional<z.ZodString>;
108
+ }, "strip", z.ZodTypeAny, {
109
+ type: "variants";
110
+ componentId?: string | undefined;
111
+ id?: string | undefined;
112
+ componentSetId?: string | undefined;
113
+ layout?: "matrix" | "grid" | "list" | undefined;
114
+ groupBy?: string | undefined;
115
+ limit?: number | undefined;
116
+ labelLayerName?: string | undefined;
117
+ }, {
118
+ type: "variants";
119
+ componentId?: string | undefined;
120
+ id?: string | undefined;
121
+ componentSetId?: string | undefined;
122
+ layout?: "matrix" | "grid" | "list" | undefined;
123
+ groupBy?: string | undefined;
124
+ limit?: number | undefined;
125
+ labelLayerName?: string | undefined;
126
+ }>, z.ZodObject<{
127
+ type: z.ZodLiteral<"props">;
128
+ id: z.ZodOptional<z.ZodString>;
129
+ componentId: z.ZodOptional<z.ZodString>;
130
+ componentSetId: z.ZodOptional<z.ZodString>;
131
+ include: z.ZodOptional<z.ZodArray<z.ZodEnum<["VARIANT", "BOOLEAN", "TEXT", "INSTANCE_SWAP"]>, "many">>;
132
+ }, "strip", z.ZodTypeAny, {
133
+ type: "props";
134
+ componentId?: string | undefined;
135
+ id?: string | undefined;
136
+ componentSetId?: string | undefined;
137
+ include?: ("VARIANT" | "BOOLEAN" | "TEXT" | "INSTANCE_SWAP")[] | undefined;
138
+ }, {
139
+ type: "props";
140
+ componentId?: string | undefined;
141
+ id?: string | undefined;
142
+ componentSetId?: string | undefined;
143
+ include?: ("VARIANT" | "BOOLEAN" | "TEXT" | "INSTANCE_SWAP")[] | undefined;
144
+ }>, z.ZodObject<{
145
+ type: z.ZodLiteral<"tokenTable">;
146
+ id: z.ZodOptional<z.ZodString>;
147
+ title: z.ZodOptional<z.ZodString>;
148
+ rows: z.ZodArray<z.ZodObject<{
149
+ layerName: z.ZodString;
150
+ tokenPath: z.ZodString;
151
+ show: z.ZodOptional<z.ZodEnum<["resolved", "path", "both"]>>;
152
+ }, "strip", z.ZodTypeAny, {
153
+ layerName: string;
154
+ tokenPath: string;
155
+ show?: "path" | "resolved" | "both" | undefined;
156
+ }, {
157
+ layerName: string;
158
+ tokenPath: string;
159
+ show?: "path" | "resolved" | "both" | undefined;
160
+ }>, "many">;
161
+ }, "strip", z.ZodTypeAny, {
162
+ type: "tokenTable";
163
+ rows: {
164
+ layerName: string;
165
+ tokenPath: string;
166
+ show?: "path" | "resolved" | "both" | undefined;
167
+ }[];
168
+ title?: string | undefined;
169
+ id?: string | undefined;
170
+ }, {
171
+ type: "tokenTable";
172
+ rows: {
173
+ layerName: string;
174
+ tokenPath: string;
175
+ show?: "path" | "resolved" | "both" | undefined;
176
+ }[];
177
+ title?: string | undefined;
178
+ id?: string | undefined;
179
+ }>, z.ZodObject<{
180
+ type: z.ZodLiteral<"palette">;
181
+ id: z.ZodOptional<z.ZodString>;
182
+ collectionName: z.ZodOptional<z.ZodString>;
183
+ collectionId: z.ZodOptional<z.ZodString>;
184
+ variableType: z.ZodOptional<z.ZodEnum<["COLOR", "FLOAT", "STRING", "BOOLEAN"]>>;
185
+ templateNodeId: z.ZodString;
186
+ swatchLayerName: z.ZodOptional<z.ZodString>;
187
+ labelLayerName: z.ZodOptional<z.ZodString>;
188
+ valueLayerName: z.ZodOptional<z.ZodString>;
189
+ namePrefix: z.ZodOptional<z.ZodString>;
190
+ limit: z.ZodOptional<z.ZodNumber>;
191
+ }, "strip", z.ZodTypeAny, {
192
+ type: "palette";
193
+ templateNodeId: string;
194
+ id?: string | undefined;
195
+ limit?: number | undefined;
196
+ labelLayerName?: string | undefined;
197
+ collectionName?: string | undefined;
198
+ collectionId?: string | undefined;
199
+ variableType?: "BOOLEAN" | "COLOR" | "FLOAT" | "STRING" | undefined;
200
+ swatchLayerName?: string | undefined;
201
+ valueLayerName?: string | undefined;
202
+ namePrefix?: string | undefined;
203
+ }, {
204
+ type: "palette";
205
+ templateNodeId: string;
206
+ id?: string | undefined;
207
+ limit?: number | undefined;
208
+ labelLayerName?: string | undefined;
209
+ collectionName?: string | undefined;
210
+ collectionId?: string | undefined;
211
+ variableType?: "BOOLEAN" | "COLOR" | "FLOAT" | "STRING" | undefined;
212
+ swatchLayerName?: string | undefined;
213
+ valueLayerName?: string | undefined;
214
+ namePrefix?: string | undefined;
215
+ }>, z.ZodObject<{
216
+ type: z.ZodLiteral<"measure">;
217
+ id: z.ZodOptional<z.ZodString>;
218
+ experimental: z.ZodOptional<z.ZodBoolean>;
219
+ nodeId: z.ZodString;
220
+ annotations: z.ZodOptional<z.ZodArray<z.ZodObject<{
221
+ label: z.ZodOptional<z.ZodString>;
222
+ labelMarkdown: z.ZodOptional<z.ZodString>;
223
+ categoryId: z.ZodOptional<z.ZodString>;
224
+ properties: z.ZodOptional<z.ZodArray<z.ZodObject<{
225
+ type: z.ZodString;
226
+ }, "strip", z.ZodTypeAny, {
227
+ type: string;
228
+ }, {
229
+ type: string;
230
+ }>, "many">>;
231
+ }, "strip", z.ZodTypeAny, {
232
+ label?: string | undefined;
233
+ labelMarkdown?: string | undefined;
234
+ categoryId?: string | undefined;
235
+ properties?: {
236
+ type: string;
237
+ }[] | undefined;
238
+ }, {
239
+ label?: string | undefined;
240
+ labelMarkdown?: string | undefined;
241
+ categoryId?: string | undefined;
242
+ properties?: {
243
+ type: string;
244
+ }[] | undefined;
245
+ }>, "many">>;
246
+ }, "strip", z.ZodTypeAny, {
247
+ type: "measure";
248
+ nodeId: string;
249
+ annotations?: {
250
+ label?: string | undefined;
251
+ labelMarkdown?: string | undefined;
252
+ categoryId?: string | undefined;
253
+ properties?: {
254
+ type: string;
255
+ }[] | undefined;
256
+ }[] | undefined;
257
+ id?: string | undefined;
258
+ experimental?: boolean | undefined;
259
+ }, {
260
+ type: "measure";
261
+ nodeId: string;
262
+ annotations?: {
263
+ label?: string | undefined;
264
+ labelMarkdown?: string | undefined;
265
+ categoryId?: string | undefined;
266
+ properties?: {
267
+ type: string;
268
+ }[] | undefined;
269
+ }[] | undefined;
270
+ id?: string | undefined;
271
+ experimental?: boolean | undefined;
272
+ }>]>;
273
+ export declare const docSpecV2Zod: z.ZodObject<{
274
+ version: z.ZodLiteral<"2">;
275
+ title: z.ZodOptional<z.ZodString>;
276
+ frame: z.ZodOptional<z.ZodObject<{
277
+ targetParentId: z.ZodOptional<z.ZodString>;
278
+ targetRootId: z.ZodOptional<z.ZodString>;
279
+ createIfMissing: z.ZodOptional<z.ZodBoolean>;
280
+ name: z.ZodOptional<z.ZodString>;
281
+ }, "strip", z.ZodTypeAny, {
282
+ name?: string | undefined;
283
+ targetParentId?: string | undefined;
284
+ targetRootId?: string | undefined;
285
+ createIfMissing?: boolean | undefined;
286
+ }, {
287
+ name?: string | undefined;
288
+ targetParentId?: string | undefined;
289
+ targetRootId?: string | undefined;
290
+ createIfMissing?: boolean | undefined;
291
+ }>>;
292
+ sections: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
293
+ type: z.ZodLiteral<"title">;
294
+ id: z.ZodOptional<z.ZodString>;
295
+ text: z.ZodString;
296
+ layerName: z.ZodOptional<z.ZodString>;
297
+ }, "strip", z.ZodTypeAny, {
298
+ type: "title";
299
+ text: string;
300
+ layerName?: string | undefined;
301
+ id?: string | undefined;
302
+ }, {
303
+ type: "title";
304
+ text: string;
305
+ layerName?: string | undefined;
306
+ id?: string | undefined;
307
+ }>, z.ZodObject<{
308
+ type: z.ZodLiteral<"description">;
309
+ id: z.ZodOptional<z.ZodString>;
310
+ markdown: z.ZodString;
311
+ layerName: z.ZodOptional<z.ZodString>;
312
+ }, "strip", z.ZodTypeAny, {
313
+ type: "description";
314
+ markdown: string;
315
+ layerName?: string | undefined;
316
+ id?: string | undefined;
317
+ }, {
318
+ type: "description";
319
+ markdown: string;
320
+ layerName?: string | undefined;
321
+ id?: string | undefined;
322
+ }>, z.ZodObject<{
323
+ type: z.ZodLiteral<"variants">;
324
+ id: z.ZodOptional<z.ZodString>;
325
+ componentSetId: z.ZodOptional<z.ZodString>;
326
+ componentId: z.ZodOptional<z.ZodString>;
327
+ layout: z.ZodOptional<z.ZodEnum<["matrix", "grid", "list"]>>;
328
+ groupBy: z.ZodOptional<z.ZodString>;
329
+ limit: z.ZodOptional<z.ZodNumber>;
330
+ labelLayerName: z.ZodOptional<z.ZodString>;
331
+ }, "strip", z.ZodTypeAny, {
332
+ type: "variants";
333
+ componentId?: string | undefined;
334
+ id?: string | undefined;
335
+ componentSetId?: string | undefined;
336
+ layout?: "matrix" | "grid" | "list" | undefined;
337
+ groupBy?: string | undefined;
338
+ limit?: number | undefined;
339
+ labelLayerName?: string | undefined;
340
+ }, {
341
+ type: "variants";
342
+ componentId?: string | undefined;
343
+ id?: string | undefined;
344
+ componentSetId?: string | undefined;
345
+ layout?: "matrix" | "grid" | "list" | undefined;
346
+ groupBy?: string | undefined;
347
+ limit?: number | undefined;
348
+ labelLayerName?: string | undefined;
349
+ }>, z.ZodObject<{
350
+ type: z.ZodLiteral<"props">;
351
+ id: z.ZodOptional<z.ZodString>;
352
+ componentId: z.ZodOptional<z.ZodString>;
353
+ componentSetId: z.ZodOptional<z.ZodString>;
354
+ include: z.ZodOptional<z.ZodArray<z.ZodEnum<["VARIANT", "BOOLEAN", "TEXT", "INSTANCE_SWAP"]>, "many">>;
355
+ }, "strip", z.ZodTypeAny, {
356
+ type: "props";
357
+ componentId?: string | undefined;
358
+ id?: string | undefined;
359
+ componentSetId?: string | undefined;
360
+ include?: ("VARIANT" | "BOOLEAN" | "TEXT" | "INSTANCE_SWAP")[] | undefined;
361
+ }, {
362
+ type: "props";
363
+ componentId?: string | undefined;
364
+ id?: string | undefined;
365
+ componentSetId?: string | undefined;
366
+ include?: ("VARIANT" | "BOOLEAN" | "TEXT" | "INSTANCE_SWAP")[] | undefined;
367
+ }>, z.ZodObject<{
368
+ type: z.ZodLiteral<"tokenTable">;
369
+ id: z.ZodOptional<z.ZodString>;
370
+ title: z.ZodOptional<z.ZodString>;
371
+ rows: z.ZodArray<z.ZodObject<{
372
+ layerName: z.ZodString;
373
+ tokenPath: z.ZodString;
374
+ show: z.ZodOptional<z.ZodEnum<["resolved", "path", "both"]>>;
375
+ }, "strip", z.ZodTypeAny, {
376
+ layerName: string;
377
+ tokenPath: string;
378
+ show?: "path" | "resolved" | "both" | undefined;
379
+ }, {
380
+ layerName: string;
381
+ tokenPath: string;
382
+ show?: "path" | "resolved" | "both" | undefined;
383
+ }>, "many">;
384
+ }, "strip", z.ZodTypeAny, {
385
+ type: "tokenTable";
386
+ rows: {
387
+ layerName: string;
388
+ tokenPath: string;
389
+ show?: "path" | "resolved" | "both" | undefined;
390
+ }[];
391
+ title?: string | undefined;
392
+ id?: string | undefined;
393
+ }, {
394
+ type: "tokenTable";
395
+ rows: {
396
+ layerName: string;
397
+ tokenPath: string;
398
+ show?: "path" | "resolved" | "both" | undefined;
399
+ }[];
400
+ title?: string | undefined;
401
+ id?: string | undefined;
402
+ }>, z.ZodObject<{
403
+ type: z.ZodLiteral<"palette">;
404
+ id: z.ZodOptional<z.ZodString>;
405
+ collectionName: z.ZodOptional<z.ZodString>;
406
+ collectionId: z.ZodOptional<z.ZodString>;
407
+ variableType: z.ZodOptional<z.ZodEnum<["COLOR", "FLOAT", "STRING", "BOOLEAN"]>>;
408
+ templateNodeId: z.ZodString;
409
+ swatchLayerName: z.ZodOptional<z.ZodString>;
410
+ labelLayerName: z.ZodOptional<z.ZodString>;
411
+ valueLayerName: z.ZodOptional<z.ZodString>;
412
+ namePrefix: z.ZodOptional<z.ZodString>;
413
+ limit: z.ZodOptional<z.ZodNumber>;
414
+ }, "strip", z.ZodTypeAny, {
415
+ type: "palette";
416
+ templateNodeId: string;
417
+ id?: string | undefined;
418
+ limit?: number | undefined;
419
+ labelLayerName?: string | undefined;
420
+ collectionName?: string | undefined;
421
+ collectionId?: string | undefined;
422
+ variableType?: "BOOLEAN" | "COLOR" | "FLOAT" | "STRING" | undefined;
423
+ swatchLayerName?: string | undefined;
424
+ valueLayerName?: string | undefined;
425
+ namePrefix?: string | undefined;
426
+ }, {
427
+ type: "palette";
428
+ templateNodeId: string;
429
+ id?: string | undefined;
430
+ limit?: number | undefined;
431
+ labelLayerName?: string | undefined;
432
+ collectionName?: string | undefined;
433
+ collectionId?: string | undefined;
434
+ variableType?: "BOOLEAN" | "COLOR" | "FLOAT" | "STRING" | undefined;
435
+ swatchLayerName?: string | undefined;
436
+ valueLayerName?: string | undefined;
437
+ namePrefix?: string | undefined;
438
+ }>, z.ZodObject<{
439
+ type: z.ZodLiteral<"measure">;
440
+ id: z.ZodOptional<z.ZodString>;
441
+ experimental: z.ZodOptional<z.ZodBoolean>;
442
+ nodeId: z.ZodString;
443
+ annotations: z.ZodOptional<z.ZodArray<z.ZodObject<{
444
+ label: z.ZodOptional<z.ZodString>;
445
+ labelMarkdown: z.ZodOptional<z.ZodString>;
446
+ categoryId: z.ZodOptional<z.ZodString>;
447
+ properties: z.ZodOptional<z.ZodArray<z.ZodObject<{
448
+ type: z.ZodString;
449
+ }, "strip", z.ZodTypeAny, {
450
+ type: string;
451
+ }, {
452
+ type: string;
453
+ }>, "many">>;
454
+ }, "strip", z.ZodTypeAny, {
455
+ label?: string | undefined;
456
+ labelMarkdown?: string | undefined;
457
+ categoryId?: string | undefined;
458
+ properties?: {
459
+ type: string;
460
+ }[] | undefined;
461
+ }, {
462
+ label?: string | undefined;
463
+ labelMarkdown?: string | undefined;
464
+ categoryId?: string | undefined;
465
+ properties?: {
466
+ type: string;
467
+ }[] | undefined;
468
+ }>, "many">>;
469
+ }, "strip", z.ZodTypeAny, {
470
+ type: "measure";
471
+ nodeId: string;
472
+ annotations?: {
473
+ label?: string | undefined;
474
+ labelMarkdown?: string | undefined;
475
+ categoryId?: string | undefined;
476
+ properties?: {
477
+ type: string;
478
+ }[] | undefined;
479
+ }[] | undefined;
480
+ id?: string | undefined;
481
+ experimental?: boolean | undefined;
482
+ }, {
483
+ type: "measure";
484
+ nodeId: string;
485
+ annotations?: {
486
+ label?: string | undefined;
487
+ labelMarkdown?: string | undefined;
488
+ categoryId?: string | undefined;
489
+ properties?: {
490
+ type: string;
491
+ }[] | undefined;
492
+ }[] | undefined;
493
+ id?: string | undefined;
494
+ experimental?: boolean | undefined;
495
+ }>]>, "many">;
496
+ }, "strip", z.ZodTypeAny, {
497
+ version: "2";
498
+ sections: ({
499
+ type: "title";
500
+ text: string;
501
+ layerName?: string | undefined;
502
+ id?: string | undefined;
503
+ } | {
504
+ type: "description";
505
+ markdown: string;
506
+ layerName?: string | undefined;
507
+ id?: string | undefined;
508
+ } | {
509
+ type: "variants";
510
+ componentId?: string | undefined;
511
+ id?: string | undefined;
512
+ componentSetId?: string | undefined;
513
+ layout?: "matrix" | "grid" | "list" | undefined;
514
+ groupBy?: string | undefined;
515
+ limit?: number | undefined;
516
+ labelLayerName?: string | undefined;
517
+ } | {
518
+ type: "props";
519
+ componentId?: string | undefined;
520
+ id?: string | undefined;
521
+ componentSetId?: string | undefined;
522
+ include?: ("VARIANT" | "BOOLEAN" | "TEXT" | "INSTANCE_SWAP")[] | undefined;
523
+ } | {
524
+ type: "tokenTable";
525
+ rows: {
526
+ layerName: string;
527
+ tokenPath: string;
528
+ show?: "path" | "resolved" | "both" | undefined;
529
+ }[];
530
+ title?: string | undefined;
531
+ id?: string | undefined;
532
+ } | {
533
+ type: "palette";
534
+ templateNodeId: string;
535
+ id?: string | undefined;
536
+ limit?: number | undefined;
537
+ labelLayerName?: string | undefined;
538
+ collectionName?: string | undefined;
539
+ collectionId?: string | undefined;
540
+ variableType?: "BOOLEAN" | "COLOR" | "FLOAT" | "STRING" | undefined;
541
+ swatchLayerName?: string | undefined;
542
+ valueLayerName?: string | undefined;
543
+ namePrefix?: string | undefined;
544
+ } | {
545
+ type: "measure";
546
+ nodeId: string;
547
+ annotations?: {
548
+ label?: string | undefined;
549
+ labelMarkdown?: string | undefined;
550
+ categoryId?: string | undefined;
551
+ properties?: {
552
+ type: string;
553
+ }[] | undefined;
554
+ }[] | undefined;
555
+ id?: string | undefined;
556
+ experimental?: boolean | undefined;
557
+ })[];
558
+ title?: string | undefined;
559
+ frame?: {
560
+ name?: string | undefined;
561
+ targetParentId?: string | undefined;
562
+ targetRootId?: string | undefined;
563
+ createIfMissing?: boolean | undefined;
564
+ } | undefined;
565
+ }, {
566
+ version: "2";
567
+ sections: ({
568
+ type: "title";
569
+ text: string;
570
+ layerName?: string | undefined;
571
+ id?: string | undefined;
572
+ } | {
573
+ type: "description";
574
+ markdown: string;
575
+ layerName?: string | undefined;
576
+ id?: string | undefined;
577
+ } | {
578
+ type: "variants";
579
+ componentId?: string | undefined;
580
+ id?: string | undefined;
581
+ componentSetId?: string | undefined;
582
+ layout?: "matrix" | "grid" | "list" | undefined;
583
+ groupBy?: string | undefined;
584
+ limit?: number | undefined;
585
+ labelLayerName?: string | undefined;
586
+ } | {
587
+ type: "props";
588
+ componentId?: string | undefined;
589
+ id?: string | undefined;
590
+ componentSetId?: string | undefined;
591
+ include?: ("VARIANT" | "BOOLEAN" | "TEXT" | "INSTANCE_SWAP")[] | undefined;
592
+ } | {
593
+ type: "tokenTable";
594
+ rows: {
595
+ layerName: string;
596
+ tokenPath: string;
597
+ show?: "path" | "resolved" | "both" | undefined;
598
+ }[];
599
+ title?: string | undefined;
600
+ id?: string | undefined;
601
+ } | {
602
+ type: "palette";
603
+ templateNodeId: string;
604
+ id?: string | undefined;
605
+ limit?: number | undefined;
606
+ labelLayerName?: string | undefined;
607
+ collectionName?: string | undefined;
608
+ collectionId?: string | undefined;
609
+ variableType?: "BOOLEAN" | "COLOR" | "FLOAT" | "STRING" | undefined;
610
+ swatchLayerName?: string | undefined;
611
+ valueLayerName?: string | undefined;
612
+ namePrefix?: string | undefined;
613
+ } | {
614
+ type: "measure";
615
+ nodeId: string;
616
+ annotations?: {
617
+ label?: string | undefined;
618
+ labelMarkdown?: string | undefined;
619
+ categoryId?: string | undefined;
620
+ properties?: {
621
+ type: string;
622
+ }[] | undefined;
623
+ }[] | undefined;
624
+ id?: string | undefined;
625
+ experimental?: boolean | undefined;
626
+ })[];
627
+ title?: string | undefined;
628
+ frame?: {
629
+ name?: string | undefined;
630
+ targetParentId?: string | undefined;
631
+ targetRootId?: string | undefined;
632
+ createIfMissing?: boolean | undefined;
633
+ } | undefined;
634
+ }>;
635
+ export declare const paletteSectionZod: z.ZodObject<{
636
+ type: z.ZodLiteral<"palette">;
637
+ id: z.ZodOptional<z.ZodString>;
638
+ collectionName: z.ZodOptional<z.ZodString>;
639
+ collectionId: z.ZodOptional<z.ZodString>;
640
+ variableType: z.ZodOptional<z.ZodEnum<["COLOR", "FLOAT", "STRING", "BOOLEAN"]>>;
641
+ templateNodeId: z.ZodString;
642
+ swatchLayerName: z.ZodOptional<z.ZodString>;
643
+ labelLayerName: z.ZodOptional<z.ZodString>;
644
+ valueLayerName: z.ZodOptional<z.ZodString>;
645
+ namePrefix: z.ZodOptional<z.ZodString>;
646
+ limit: z.ZodOptional<z.ZodNumber>;
647
+ }, "strip", z.ZodTypeAny, {
648
+ type: "palette";
649
+ templateNodeId: string;
650
+ id?: string | undefined;
651
+ limit?: number | undefined;
652
+ labelLayerName?: string | undefined;
653
+ collectionName?: string | undefined;
654
+ collectionId?: string | undefined;
655
+ variableType?: "BOOLEAN" | "COLOR" | "FLOAT" | "STRING" | undefined;
656
+ swatchLayerName?: string | undefined;
657
+ valueLayerName?: string | undefined;
658
+ namePrefix?: string | undefined;
659
+ }, {
660
+ type: "palette";
661
+ templateNodeId: string;
662
+ id?: string | undefined;
663
+ limit?: number | undefined;
664
+ labelLayerName?: string | undefined;
665
+ collectionName?: string | undefined;
666
+ collectionId?: string | undefined;
667
+ variableType?: "BOOLEAN" | "COLOR" | "FLOAT" | "STRING" | undefined;
668
+ swatchLayerName?: string | undefined;
669
+ valueLayerName?: string | undefined;
670
+ namePrefix?: string | undefined;
671
+ }>;
672
+ export declare const annotationItemZod: z.ZodObject<{
673
+ label: z.ZodOptional<z.ZodString>;
674
+ labelMarkdown: z.ZodOptional<z.ZodString>;
675
+ categoryId: z.ZodOptional<z.ZodString>;
676
+ properties: z.ZodOptional<z.ZodArray<z.ZodObject<{
677
+ type: z.ZodString;
678
+ }, "strip", z.ZodTypeAny, {
679
+ type: string;
680
+ }, {
681
+ type: string;
682
+ }>, "many">>;
683
+ }, "strip", z.ZodTypeAny, {
684
+ label?: string | undefined;
685
+ labelMarkdown?: string | undefined;
686
+ categoryId?: string | undefined;
687
+ properties?: {
688
+ type: string;
689
+ }[] | undefined;
690
+ }, {
691
+ label?: string | undefined;
692
+ labelMarkdown?: string | undefined;
693
+ categoryId?: string | undefined;
694
+ properties?: {
695
+ type: string;
696
+ }[] | undefined;
697
+ }>;
6
698
  export declare function registerTokenTools(server: McpServer, queue: CommandQueue): void;