@sxl-studio/bridge 1.7.2 → 1.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (197) hide show
  1. package/README.md +342 -16
  2. package/dist/agent-recipes.d.ts +781 -11
  3. package/dist/agent-recipes.js +886 -13
  4. package/dist/agent-recipes.js.map +1 -1
  5. package/dist/agent-runbook.d.ts +50 -0
  6. package/dist/agent-runbook.js +243 -0
  7. package/dist/agent-runbook.js.map +1 -0
  8. package/dist/asset-upload.d.ts +63 -0
  9. package/dist/asset-upload.js +225 -0
  10. package/dist/asset-upload.js.map +1 -0
  11. package/dist/audit-store.d.ts +15 -0
  12. package/dist/audit-store.js +100 -0
  13. package/dist/audit-store.js.map +1 -0
  14. package/dist/audit.d.ts +4 -3
  15. package/dist/audit.js +37 -4
  16. package/dist/audit.js.map +1 -1
  17. package/dist/auth.d.ts +8 -1
  18. package/dist/auth.js +41 -1
  19. package/dist/auth.js.map +1 -1
  20. package/dist/bridge-agent-workflow-validation-cli.d.ts +2 -0
  21. package/dist/bridge-agent-workflow-validation-cli.js +68 -0
  22. package/dist/bridge-agent-workflow-validation-cli.js.map +1 -0
  23. package/dist/bridge-agent-workflow-validation.d.ts +42 -0
  24. package/dist/bridge-agent-workflow-validation.js +170 -0
  25. package/dist/bridge-agent-workflow-validation.js.map +1 -0
  26. package/dist/bridge-contract-audit.d.ts +45 -0
  27. package/dist/bridge-contract-audit.js +345 -0
  28. package/dist/bridge-contract-audit.js.map +1 -0
  29. package/dist/bridge-health-cli.d.ts +2 -0
  30. package/dist/bridge-health-cli.js +115 -0
  31. package/dist/bridge-health-cli.js.map +1 -0
  32. package/dist/bridge-health.d.ts +33 -0
  33. package/dist/bridge-health.js +594 -0
  34. package/dist/bridge-health.js.map +1 -0
  35. package/dist/bridge-live-validation-cli.d.ts +2 -0
  36. package/dist/bridge-live-validation-cli.js +114 -0
  37. package/dist/bridge-live-validation-cli.js.map +1 -0
  38. package/dist/bridge-live-validation.d.ts +39 -0
  39. package/dist/bridge-live-validation.js +1141 -0
  40. package/dist/bridge-live-validation.js.map +1 -0
  41. package/dist/bridge-performance-profile.d.ts +81 -0
  42. package/dist/bridge-performance-profile.js +227 -0
  43. package/dist/bridge-performance-profile.js.map +1 -0
  44. package/dist/bridge-readiness-cli.d.ts +30 -0
  45. package/dist/bridge-readiness-cli.js +242 -0
  46. package/dist/bridge-readiness-cli.js.map +1 -0
  47. package/dist/bridge-runtime-summary.d.ts +50 -0
  48. package/dist/bridge-runtime-summary.js +112 -0
  49. package/dist/bridge-runtime-summary.js.map +1 -0
  50. package/dist/bridge-workflow-smoke-cli.d.ts +2 -0
  51. package/dist/bridge-workflow-smoke-cli.js +126 -0
  52. package/dist/bridge-workflow-smoke-cli.js.map +1 -0
  53. package/dist/bridge-workflow-smoke.d.ts +39 -0
  54. package/dist/bridge-workflow-smoke.js +431 -0
  55. package/dist/bridge-workflow-smoke.js.map +1 -0
  56. package/dist/codeconnect-suggestions.d.ts +74 -0
  57. package/dist/codeconnect-suggestions.js +398 -0
  58. package/dist/codeconnect-suggestions.js.map +1 -0
  59. package/dist/codeconnect-template.d.ts +98 -0
  60. package/dist/codeconnect-template.js +280 -0
  61. package/dist/codeconnect-template.js.map +1 -0
  62. package/dist/command-queue.d.ts +11 -1
  63. package/dist/command-queue.js +200 -1
  64. package/dist/command-queue.js.map +1 -1
  65. package/dist/command-safety.d.ts +13 -0
  66. package/dist/command-safety.js +59 -0
  67. package/dist/command-safety.js.map +1 -0
  68. package/dist/enabled-library-search.d.ts +49 -0
  69. package/dist/enabled-library-search.js +151 -0
  70. package/dist/enabled-library-search.js.map +1 -0
  71. package/dist/figma-mcp-parity.d.ts +49 -0
  72. package/dist/figma-mcp-parity.js +368 -0
  73. package/dist/figma-mcp-parity.js.map +1 -0
  74. package/dist/figma-mcp-skills-parity.d.ts +61 -0
  75. package/dist/figma-mcp-skills-parity.js +434 -0
  76. package/dist/figma-mcp-skills-parity.js.map +1 -0
  77. package/dist/figma-rest-diagnostics.d.ts +50 -0
  78. package/dist/figma-rest-diagnostics.js +314 -0
  79. package/dist/figma-rest-diagnostics.js.map +1 -0
  80. package/dist/figma-rest.d.ts +27 -0
  81. package/dist/figma-rest.js +116 -0
  82. package/dist/figma-rest.js.map +1 -0
  83. package/dist/http-api.d.ts +14 -2
  84. package/dist/http-api.js +323 -17
  85. package/dist/http-api.js.map +1 -1
  86. package/dist/index.js +25 -1
  87. package/dist/index.js.map +1 -1
  88. package/dist/mcp-factory.d.ts +6 -1
  89. package/dist/mcp-factory.js +23 -4
  90. package/dist/mcp-factory.js.map +1 -1
  91. package/dist/mcp-runtime-probe.d.ts +22 -0
  92. package/dist/mcp-runtime-probe.js +777 -0
  93. package/dist/mcp-runtime-probe.js.map +1 -0
  94. package/dist/mcp-server.d.ts +2 -1
  95. package/dist/mcp-server.js +2 -2
  96. package/dist/mcp-server.js.map +1 -1
  97. package/dist/sxl-mcp-instructions.js +97 -25
  98. package/dist/sxl-mcp-instructions.js.map +1 -1
  99. package/dist/tools/audit.d.ts +22 -6
  100. package/dist/tools/audit.js +49 -7
  101. package/dist/tools/audit.js.map +1 -1
  102. package/dist/tools/capability-matrix.d.ts +22 -0
  103. package/dist/tools/capability-matrix.js +38 -0
  104. package/dist/tools/capability-matrix.js.map +1 -0
  105. package/dist/tools/catalogue-bootstrap.d.ts +1 -0
  106. package/dist/tools/catalogue-bootstrap.js +665 -30
  107. package/dist/tools/catalogue-bootstrap.js.map +1 -1
  108. package/dist/tools/code-connect-context.d.ts +3 -0
  109. package/dist/tools/code-connect-context.js +319 -0
  110. package/dist/tools/code-connect-context.js.map +1 -0
  111. package/dist/tools/code-connect-template.d.ts +3 -0
  112. package/dist/tools/code-connect-template.js +111 -0
  113. package/dist/tools/code-connect-template.js.map +1 -0
  114. package/dist/tools/composition.js +13 -28
  115. package/dist/tools/composition.js.map +1 -1
  116. package/dist/tools/compositions-orchestration.d.ts +14 -14
  117. package/dist/tools/compositions-orchestration.js +2 -2
  118. package/dist/tools/compositions-orchestration.js.map +1 -1
  119. package/dist/tools/data.js +839 -27
  120. package/dist/tools/data.js.map +1 -1
  121. package/dist/tools/design-context.d.ts +3 -0
  122. package/dist/tools/design-context.js +197 -0
  123. package/dist/tools/design-context.js.map +1 -0
  124. package/dist/tools/destructive-confirmation.d.ts +10 -0
  125. package/dist/tools/destructive-confirmation.js +22 -0
  126. package/dist/tools/destructive-confirmation.js.map +1 -0
  127. package/dist/tools/diagnostics.js +76 -51
  128. package/dist/tools/diagnostics.js.map +1 -1
  129. package/dist/tools/figma-mcp-design.d.ts +3 -0
  130. package/dist/tools/figma-mcp-design.js +377 -0
  131. package/dist/tools/figma-mcp-design.js.map +1 -0
  132. package/dist/tools/figma-nodes.js +57 -43
  133. package/dist/tools/figma-nodes.js.map +1 -1
  134. package/dist/tools/figma-rc-extended.js +23 -6
  135. package/dist/tools/figma-rc-extended.js.map +1 -1
  136. package/dist/tools/figma-rest.d.ts +39 -0
  137. package/dist/tools/figma-rest.js +279 -0
  138. package/dist/tools/figma-rest.js.map +1 -0
  139. package/dist/tools/git.js +11 -7
  140. package/dist/tools/git.js.map +1 -1
  141. package/dist/tools/large-data.d.ts +14 -0
  142. package/dist/tools/large-data.js +189 -0
  143. package/dist/tools/large-data.js.map +1 -0
  144. package/dist/tools/meta.d.ts +6 -1
  145. package/dist/tools/meta.js +89 -11
  146. package/dist/tools/meta.js.map +1 -1
  147. package/dist/tools/metadata.d.ts +3 -0
  148. package/dist/tools/metadata.js +140 -0
  149. package/dist/tools/metadata.js.map +1 -0
  150. package/dist/tools/mockup.d.ts +15 -156
  151. package/dist/tools/mockup.js +54 -121
  152. package/dist/tools/mockup.js.map +1 -1
  153. package/dist/tools/orchestration.js +73 -45
  154. package/dist/tools/orchestration.js.map +1 -1
  155. package/dist/tools/prompts.d.ts +3 -0
  156. package/dist/tools/prompts.js +219 -0
  157. package/dist/tools/prompts.js.map +1 -0
  158. package/dist/tools/registry.d.ts +19 -1
  159. package/dist/tools/registry.js +4 -4
  160. package/dist/tools/registry.js.map +1 -1
  161. package/dist/tools/resources.d.ts +19 -2
  162. package/dist/tools/resources.js +149 -5
  163. package/dist/tools/resources.js.map +1 -1
  164. package/dist/tools/schema-contracts.d.ts +4763 -0
  165. package/dist/tools/schema-contracts.js +814 -0
  166. package/dist/tools/schema-contracts.js.map +1 -0
  167. package/dist/tools/screenshot.d.ts +3 -0
  168. package/dist/tools/screenshot.js +144 -0
  169. package/dist/tools/screenshot.js.map +1 -0
  170. package/dist/tools/shared.d.ts +11 -1
  171. package/dist/tools/shared.js +55 -2
  172. package/dist/tools/shared.js.map +1 -1
  173. package/dist/tools/styles-orchestration.d.ts +2 -2
  174. package/dist/tools/styles-orchestration.js +13 -5
  175. package/dist/tools/styles-orchestration.js.map +1 -1
  176. package/dist/tools/styles.js +22 -8
  177. package/dist/tools/styles.js.map +1 -1
  178. package/dist/tools/tokens.d.ts +31 -692
  179. package/dist/tools/tokens.js +175 -135
  180. package/dist/tools/tokens.js.map +1 -1
  181. package/dist/tools/variable-defs.d.ts +3 -0
  182. package/dist/tools/variable-defs.js +338 -0
  183. package/dist/tools/variable-defs.js.map +1 -0
  184. package/dist/tools/variables-orchestration.js +13 -5
  185. package/dist/tools/variables-orchestration.js.map +1 -1
  186. package/dist/tools/variables.js +18 -15
  187. package/dist/tools/variables.js.map +1 -1
  188. package/dist/types.d.ts +53 -0
  189. package/dist/ultimate-readiness-audit.d.ts +37 -0
  190. package/dist/ultimate-readiness-audit.js +431 -0
  191. package/dist/ultimate-readiness-audit.js.map +1 -0
  192. package/dist/workflow-planner.d.ts +57 -0
  193. package/dist/workflow-planner.js +464 -0
  194. package/dist/workflow-planner.js.map +1 -0
  195. package/dist/ws-server.js +16 -3
  196. package/dist/ws-server.js.map +1 -1
  197. package/package.json +18 -2
@@ -1,698 +1,37 @@
1
1
  /**
2
2
  * MCP tools for Vars / Tokens operations (full workspace CRUD).
3
3
  */
4
- import { z } from "zod";
5
4
  import type { McpServer } from "../../node_modules/@modelcontextprotocol/sdk/dist/cjs/server/mcp.js";
6
5
  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
- rows: {
29
- layerName: string;
30
- tokenPath: string;
31
- show?: "path" | "resolved" | "both" | undefined;
32
- }[];
33
- id: string;
34
- title?: string | undefined;
35
- }, {
36
- rows: {
37
- layerName: string;
38
- tokenPath: string;
39
- show?: "path" | "resolved" | "both" | undefined;
40
- }[];
41
- id: string;
42
- title?: string | undefined;
43
- }>, "many">;
44
- }, "strip", z.ZodTypeAny, {
45
- version: "1";
46
- groups: {
47
- rows: {
48
- layerName: string;
49
- tokenPath: string;
50
- show?: "path" | "resolved" | "both" | undefined;
51
- }[];
52
- id: string;
53
- title?: string | undefined;
54
- }[];
55
- title?: string | undefined;
56
- }, {
57
- version: "1";
58
- groups: {
59
- rows: {
60
- layerName: string;
61
- tokenPath: string;
62
- show?: "path" | "resolved" | "both" | undefined;
63
- }[];
64
- id: string;
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
- text: string;
76
- type: "title";
77
- layerName?: string | undefined;
78
- id?: string | undefined;
79
- }, {
80
- text: string;
81
- type: "title";
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
- limit?: number | undefined;
111
- componentId?: string | undefined;
112
- layout?: "matrix" | "grid" | "list" | undefined;
113
- id?: string | undefined;
114
- componentSetId?: string | undefined;
115
- groupBy?: string | undefined;
116
- labelLayerName?: string | undefined;
117
- }, {
118
- type: "variants";
119
- limit?: number | undefined;
120
- componentId?: string | undefined;
121
- layout?: "matrix" | "grid" | "list" | undefined;
122
- id?: string | undefined;
123
- componentSetId?: string | undefined;
124
- groupBy?: string | 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
- limit?: number | undefined;
195
- id?: string | 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
- limit?: number | undefined;
207
- id?: string | 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
- properties?: {
233
- type: string;
234
- }[] | undefined;
235
- label?: string | undefined;
236
- labelMarkdown?: string | undefined;
237
- categoryId?: string | undefined;
238
- }, {
239
- properties?: {
240
- type: string;
241
- }[] | undefined;
242
- label?: string | undefined;
243
- labelMarkdown?: string | undefined;
244
- categoryId?: string | undefined;
245
- }>, "many">>;
246
- }, "strip", z.ZodTypeAny, {
247
- type: "measure";
248
- nodeId: string;
249
- annotations?: {
250
- properties?: {
251
- type: string;
252
- }[] | undefined;
253
- label?: string | undefined;
254
- labelMarkdown?: string | undefined;
255
- categoryId?: string | undefined;
256
- }[] | undefined;
257
- id?: string | undefined;
258
- experimental?: boolean | undefined;
259
- }, {
260
- type: "measure";
261
- nodeId: string;
262
- annotations?: {
263
- properties?: {
264
- type: string;
265
- }[] | undefined;
266
- label?: string | undefined;
267
- labelMarkdown?: string | undefined;
268
- categoryId?: string | 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
- text: string;
299
- type: "title";
300
- layerName?: string | undefined;
301
- id?: string | undefined;
302
- }, {
303
- text: string;
304
- type: "title";
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
- limit?: number | undefined;
334
- componentId?: string | undefined;
335
- layout?: "matrix" | "grid" | "list" | undefined;
336
- id?: string | undefined;
337
- componentSetId?: string | undefined;
338
- groupBy?: string | undefined;
339
- labelLayerName?: string | undefined;
340
- }, {
341
- type: "variants";
342
- limit?: number | undefined;
343
- componentId?: string | undefined;
344
- layout?: "matrix" | "grid" | "list" | undefined;
345
- id?: string | undefined;
346
- componentSetId?: string | undefined;
347
- groupBy?: string | 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
- limit?: number | undefined;
418
- id?: string | 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
- limit?: number | undefined;
430
- id?: string | 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
- properties?: {
456
- type: string;
457
- }[] | undefined;
458
- label?: string | undefined;
459
- labelMarkdown?: string | undefined;
460
- categoryId?: string | undefined;
461
- }, {
462
- properties?: {
463
- type: string;
464
- }[] | undefined;
465
- label?: string | undefined;
466
- labelMarkdown?: string | undefined;
467
- categoryId?: string | undefined;
468
- }>, "many">>;
469
- }, "strip", z.ZodTypeAny, {
470
- type: "measure";
471
- nodeId: string;
472
- annotations?: {
473
- properties?: {
474
- type: string;
475
- }[] | undefined;
476
- label?: string | undefined;
477
- labelMarkdown?: string | undefined;
478
- categoryId?: string | undefined;
479
- }[] | undefined;
480
- id?: string | undefined;
481
- experimental?: boolean | undefined;
482
- }, {
483
- type: "measure";
484
- nodeId: string;
485
- annotations?: {
486
- properties?: {
487
- type: string;
488
- }[] | undefined;
489
- label?: string | undefined;
490
- labelMarkdown?: string | undefined;
491
- categoryId?: string | undefined;
492
- }[] | undefined;
493
- id?: string | undefined;
494
- experimental?: boolean | undefined;
495
- }>]>, "many">;
496
- }, "strip", z.ZodTypeAny, {
497
- version: "2";
498
- sections: ({
499
- text: string;
500
- type: "title";
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
- limit?: number | undefined;
511
- componentId?: string | undefined;
512
- layout?: "matrix" | "grid" | "list" | undefined;
513
- id?: string | undefined;
514
- componentSetId?: string | undefined;
515
- groupBy?: string | 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
- limit?: number | undefined;
536
- id?: string | 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
- properties?: {
549
- type: string;
550
- }[] | undefined;
551
- label?: string | undefined;
552
- labelMarkdown?: string | undefined;
553
- categoryId?: string | 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
- text: string;
569
- type: "title";
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
- limit?: number | undefined;
580
- componentId?: string | undefined;
581
- layout?: "matrix" | "grid" | "list" | undefined;
582
- id?: string | undefined;
583
- componentSetId?: string | undefined;
584
- groupBy?: string | 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
- limit?: number | undefined;
605
- id?: string | 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
- properties?: {
618
- type: string;
619
- }[] | undefined;
620
- label?: string | undefined;
621
- labelMarkdown?: string | undefined;
622
- categoryId?: string | 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
- limit?: number | undefined;
651
- id?: string | 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
- limit?: number | undefined;
663
- id?: string | 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
- properties?: {
685
- type: string;
686
- }[] | undefined;
687
- label?: string | undefined;
688
- labelMarkdown?: string | undefined;
689
- categoryId?: string | undefined;
690
- }, {
691
- properties?: {
692
- type: string;
693
- }[] | undefined;
694
- label?: string | undefined;
695
- labelMarkdown?: string | undefined;
696
- categoryId?: string | undefined;
697
- }>;
6
+ export { annotationItemZod, docSectionZod, docSpecV2Zod, paletteSectionZod, tokenDocSpecV1Zod, } from "./schema-contracts.js";
7
+ type ExportVariablesInput = {
8
+ collection?: string;
9
+ selectedCollections?: string[];
10
+ variableTypes?: Partial<Record<"color" | "number" | "string" | "boolean", boolean>>;
11
+ styleTypes?: Partial<Record<"typography" | "shadow" | "blur" | "effects" | "glass" | "fill" | "gradient" | "grid" | "border", boolean>>;
12
+ applyCodeSyntaxAndScopes?: boolean;
13
+ forceUpdateAll?: boolean;
14
+ deleteOrphans?: boolean;
15
+ syncVariableOrderByRename?: boolean;
16
+ allowDestructiveReorder?: boolean;
17
+ adoptExisting?: boolean;
18
+ };
19
+ export type ExportVariablesEffectiveSettings = {
20
+ variableTypes: Record<"color" | "number" | "string" | "boolean", boolean>;
21
+ styleTypes: Record<"typography" | "shadow" | "blur" | "effects" | "glass" | "fill" | "gradient" | "grid" | "border", boolean>;
22
+ applyCodeSyntaxAndScopes: boolean;
23
+ forceUpdateAll: boolean;
24
+ deleteOrphans: boolean;
25
+ syncVariableOrderByRename: boolean;
26
+ allowDestructiveReorder: boolean;
27
+ adoptExisting: boolean;
28
+ selectedCollections: string[];
29
+ };
30
+ export declare const BRIDGE_EXPORT_VARIABLES_PLUGIN_DEFAULTS: ExportVariablesEffectiveSettings;
31
+ export declare function normalizeExportVariablesRequest(input: ExportVariablesInput): {
32
+ settings: Record<string, unknown>;
33
+ effectiveSettings: ExportVariablesEffectiveSettings;
34
+ risks: string[];
35
+ requiresDestructiveConfirmation: boolean;
36
+ };
698
37
  export declare function registerTokenTools(server: McpServer, queue: CommandQueue): void;