@polyxd/mcp 0.4.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.
@@ -0,0 +1,376 @@
1
+ export declare const guideOutput: {
2
+ readonly type: "object";
3
+ readonly properties: {
4
+ readonly specVersion: {
5
+ readonly type: "string";
6
+ readonly description: "The version of the Polyxd spec this server implements, e.g. \"0.3.0\". Documents set it as their \"specVersion\".";
7
+ };
8
+ readonly guide: {
9
+ readonly type: "string";
10
+ readonly description: "The instructions for writing a Polyxd UI document: how to use these tools, the document shape, the rules, bindings, actions, every component with its props, and the patterns. The same text as the result's text content.";
11
+ };
12
+ };
13
+ readonly required: readonly ["specVersion", "guide"];
14
+ readonly additionalProperties: false;
15
+ };
16
+ export declare const validateOutput: {
17
+ readonly type: "object";
18
+ readonly properties: {
19
+ readonly errors: {
20
+ readonly type: "integer";
21
+ readonly minimum: 0;
22
+ readonly description: "How many errors. Fix every one before showing the document.";
23
+ };
24
+ readonly warnings: {
25
+ readonly type: "integer";
26
+ readonly minimum: 0;
27
+ readonly description: "How many warnings. Advice; they do not stop the document being shown.";
28
+ };
29
+ readonly valid: {
30
+ readonly type: "boolean";
31
+ readonly description: "True when the document has no errors and can be shown. Warnings do not make it invalid.";
32
+ };
33
+ readonly issues: {
34
+ readonly type: "array";
35
+ readonly items: {
36
+ readonly type: "object";
37
+ readonly description: "One problem in the document.";
38
+ readonly properties: {
39
+ readonly severity: {
40
+ readonly type: "string";
41
+ readonly enum: readonly ["error", "warning"];
42
+ readonly description: "\"error\" must be fixed before the document is shown; \"warning\" is advice.";
43
+ };
44
+ readonly pointer: {
45
+ readonly type: "string";
46
+ readonly description: "JSON Pointer to the problem in the document, e.g. \"/components/2/label\".";
47
+ };
48
+ readonly component: {
49
+ readonly type: "object";
50
+ readonly description: "The component the pointer is inside, when it is inside one.";
51
+ readonly properties: {
52
+ readonly id: {
53
+ readonly type: "string";
54
+ readonly description: "The component's id.";
55
+ };
56
+ readonly type: {
57
+ readonly type: "string";
58
+ readonly description: "The component's type (its \"component\" value), e.g. \"TextInput\".";
59
+ };
60
+ };
61
+ readonly additionalProperties: false;
62
+ };
63
+ readonly message: {
64
+ readonly type: "string";
65
+ readonly description: "What is wrong.";
66
+ };
67
+ readonly hint: {
68
+ readonly type: "string";
69
+ readonly description: "What to change to fix it, when there is a known fix.";
70
+ };
71
+ };
72
+ readonly required: readonly ["severity", "pointer", "message"];
73
+ readonly additionalProperties: false;
74
+ };
75
+ readonly description: "Every error and warning, each at its JSON Pointer with a hint. Empty when the document is clean.";
76
+ };
77
+ };
78
+ readonly required: readonly ["valid", "errors", "warnings", "issues"];
79
+ readonly additionalProperties: false;
80
+ };
81
+ export declare const verifyOutput: {
82
+ readonly type: "object";
83
+ readonly properties: {
84
+ readonly errors: {
85
+ readonly type: "integer";
86
+ readonly minimum: 0;
87
+ readonly description: "How many errors. Fix every one before showing the document.";
88
+ };
89
+ readonly warnings: {
90
+ readonly type: "integer";
91
+ readonly minimum: 0;
92
+ readonly description: "How many warnings. Advice; they do not stop the document being shown.";
93
+ };
94
+ readonly findings: {
95
+ readonly type: "array";
96
+ readonly description: "Every check that failed. Empty when the document passes with no warnings.";
97
+ readonly items: {
98
+ readonly type: "object";
99
+ readonly properties: {
100
+ readonly severity: {
101
+ readonly type: "string";
102
+ readonly enum: readonly ["error", "warning"];
103
+ readonly description: "\"error\" must be fixed before the document is shown; \"warning\" is advice.";
104
+ };
105
+ readonly check: {
106
+ readonly type: "string";
107
+ readonly description: "The check that failed, e.g. \"spec\", \"data:missing-path\", \"pattern:<id>\", \"rule:<id>\", \"capability\" or \"load:inputs-per-view\".";
108
+ };
109
+ readonly message: {
110
+ readonly type: "string";
111
+ readonly description: "What failed; findings from the spec validator start with the JSON Pointer, as \"<pointer>: <message>\".";
112
+ };
113
+ readonly hint: {
114
+ readonly type: "string";
115
+ readonly description: "What to change to fix it, when there is a known fix.";
116
+ };
117
+ };
118
+ readonly required: readonly ["severity", "check", "message"];
119
+ readonly additionalProperties: false;
120
+ };
121
+ };
122
+ readonly direction: {
123
+ readonly type: "string";
124
+ readonly description: "The name of the Design Direction the document was held to, when one was given and it has a name.";
125
+ };
126
+ readonly rules: {
127
+ readonly type: "integer";
128
+ readonly minimum: 0;
129
+ readonly description: "How many Design Direction rules were checked. 0 without a direction.";
130
+ };
131
+ };
132
+ readonly required: readonly ["errors", "warnings", "findings", "rules"];
133
+ readonly additionalProperties: false;
134
+ };
135
+ export declare const showOutput: {
136
+ readonly type: "object";
137
+ readonly description: "shown is true with the document, pack and spec version when the screen was shown; false with the issues when it was not (that result is also an error).";
138
+ readonly properties: {
139
+ readonly shown: {
140
+ readonly type: "boolean";
141
+ readonly description: "Whether the screen was shown to the user. False when the document has errors.";
142
+ };
143
+ readonly document: {
144
+ readonly type: "object";
145
+ readonly description: "The Polyxd UI document as shown, with the separately passed data merged in as its \"data\". The MCP App renders it.";
146
+ readonly additionalProperties: true;
147
+ };
148
+ readonly pack: {
149
+ readonly type: "string";
150
+ readonly enum: string[];
151
+ readonly description: "The design-system pack the screen is drawn in.";
152
+ };
153
+ readonly packName: {
154
+ readonly type: "string";
155
+ readonly description: "The pack's display name, e.g. \"Material 3\".";
156
+ };
157
+ readonly mode: {
158
+ readonly type: "string";
159
+ readonly enum: readonly ["light", "dark"];
160
+ readonly description: "Light or dark, when one was asked for. Absent: the screen follows the host's theme.";
161
+ };
162
+ readonly specVersion: {
163
+ readonly type: "string";
164
+ readonly description: "The version of the Polyxd spec this server implements, e.g. \"0.3.0\". Documents set it as their \"specVersion\".";
165
+ };
166
+ readonly issues: {
167
+ readonly type: "array";
168
+ readonly items: {
169
+ readonly type: "object";
170
+ readonly description: "One problem in the document.";
171
+ readonly properties: {
172
+ readonly severity: {
173
+ readonly type: "string";
174
+ readonly enum: readonly ["error", "warning"];
175
+ readonly description: "\"error\" must be fixed before the document is shown; \"warning\" is advice.";
176
+ };
177
+ readonly pointer: {
178
+ readonly type: "string";
179
+ readonly description: "JSON Pointer to the problem in the document, e.g. \"/components/2/label\".";
180
+ };
181
+ readonly component: {
182
+ readonly type: "object";
183
+ readonly description: "The component the pointer is inside, when it is inside one.";
184
+ readonly properties: {
185
+ readonly id: {
186
+ readonly type: "string";
187
+ readonly description: "The component's id.";
188
+ };
189
+ readonly type: {
190
+ readonly type: "string";
191
+ readonly description: "The component's type (its \"component\" value), e.g. \"TextInput\".";
192
+ };
193
+ };
194
+ readonly additionalProperties: false;
195
+ };
196
+ readonly message: {
197
+ readonly type: "string";
198
+ readonly description: "What is wrong.";
199
+ };
200
+ readonly hint: {
201
+ readonly type: "string";
202
+ readonly description: "What to change to fix it, when there is a known fix.";
203
+ };
204
+ };
205
+ readonly required: readonly ["severity", "pointer", "message"];
206
+ readonly additionalProperties: false;
207
+ };
208
+ readonly description: "When not shown: the document's errors and warnings, each at its JSON Pointer with a hint.";
209
+ };
210
+ };
211
+ readonly required: readonly ["shown"];
212
+ readonly oneOf: readonly [{
213
+ readonly properties: {
214
+ readonly shown: {
215
+ readonly const: true;
216
+ };
217
+ };
218
+ readonly required: readonly ["document", "pack", "packName", "specVersion"];
219
+ }, {
220
+ readonly properties: {
221
+ readonly shown: {
222
+ readonly const: false;
223
+ };
224
+ };
225
+ readonly required: readonly ["issues"];
226
+ }];
227
+ readonly additionalProperties: false;
228
+ };
229
+ export declare const packsOutput: {
230
+ readonly type: "object";
231
+ readonly properties: {
232
+ readonly default: {
233
+ readonly type: "string";
234
+ readonly enum: string[];
235
+ readonly description: "The pack polyxd_show uses when none is given.";
236
+ };
237
+ readonly packs: {
238
+ readonly type: "array";
239
+ readonly description: "Every pack, for polyxd_show's \"pack\" argument.";
240
+ readonly items: {
241
+ readonly type: "object";
242
+ readonly properties: {
243
+ readonly name: {
244
+ readonly type: "string";
245
+ readonly description: "The pack's name: the value to pass as polyxd_show's \"pack\".";
246
+ };
247
+ readonly displayName: {
248
+ readonly type: "string";
249
+ readonly description: "The name to show people, e.g. \"IBM Carbon\".";
250
+ };
251
+ readonly template: {
252
+ readonly type: "boolean";
253
+ readonly description: "True for an original template to start from; false for a published design system.";
254
+ };
255
+ readonly package: {
256
+ readonly type: "string";
257
+ readonly description: "The npm package with the pack's design tokens.";
258
+ };
259
+ readonly description: {
260
+ readonly type: "string";
261
+ readonly description: "A one-line description of the pack.";
262
+ };
263
+ };
264
+ readonly required: readonly ["name", "displayName", "template", "package", "description"];
265
+ readonly additionalProperties: false;
266
+ };
267
+ };
268
+ };
269
+ readonly required: readonly ["default", "packs"];
270
+ readonly additionalProperties: false;
271
+ };
272
+ export declare const componentsOutput: {
273
+ readonly type: "object";
274
+ readonly description: "\"component\" when a name was given; \"components\" otherwise.";
275
+ readonly properties: {
276
+ readonly component: {
277
+ readonly type: "object";
278
+ readonly description: "One component's full definition.";
279
+ readonly properties: {
280
+ readonly name: {
281
+ readonly type: "string";
282
+ readonly description: "The component's type name, the value of \"component\" in a document, e.g. \"Choice\".";
283
+ };
284
+ readonly category: {
285
+ readonly type: "string";
286
+ readonly description: `The component's kind: ${string}.`;
287
+ };
288
+ readonly summary: {
289
+ readonly type: "string";
290
+ readonly description: "What the component is for, in one line.";
291
+ };
292
+ readonly props: {
293
+ readonly type: "object";
294
+ readonly description: "Every prop, by name, as a JSON Schema. $refs point into the spec's common definitions (DynamicString, Binding, Options and so on).";
295
+ readonly additionalProperties: true;
296
+ };
297
+ readonly required: {
298
+ readonly type: "array";
299
+ readonly items: {
300
+ readonly type: "string";
301
+ };
302
+ readonly description: string;
303
+ };
304
+ readonly whenToUse: {
305
+ readonly type: "array";
306
+ readonly items: {
307
+ readonly type: "string";
308
+ };
309
+ readonly description: string;
310
+ };
311
+ readonly whenNotToUse: {
312
+ readonly type: "array";
313
+ readonly items: {
314
+ readonly type: "string";
315
+ };
316
+ readonly description: string;
317
+ };
318
+ readonly shell: {
319
+ readonly type: "boolean";
320
+ readonly description: "True for shell components, which frame a product's screens: authored once per product, never generated.";
321
+ };
322
+ readonly rendering: {
323
+ readonly type: "array";
324
+ readonly items: {
325
+ readonly type: "string";
326
+ };
327
+ readonly description: string;
328
+ };
329
+ readonly accessibility: {
330
+ readonly type: "object";
331
+ readonly description: "Its accessible role and requirements.";
332
+ readonly additionalProperties: true;
333
+ };
334
+ readonly agent: {
335
+ readonly type: "string";
336
+ readonly description: "How an agent operating the rendered screen should use it.";
337
+ };
338
+ };
339
+ readonly required: readonly ["name", "category", "summary", "props", "required", "whenToUse", "whenNotToUse"];
340
+ readonly additionalProperties: true;
341
+ };
342
+ readonly components: {
343
+ readonly type: "array";
344
+ readonly description: "Every component, in the spec's order.";
345
+ readonly items: {
346
+ readonly type: "object";
347
+ readonly properties: {
348
+ readonly name: {
349
+ readonly type: "string";
350
+ readonly description: "The component's type name. Pass it back as \"name\" for the full definition.";
351
+ };
352
+ readonly category: {
353
+ readonly type: "string";
354
+ readonly description: `The component's kind: ${string}.`;
355
+ };
356
+ readonly summary: {
357
+ readonly type: "string";
358
+ readonly description: "What the component is for, in one line.";
359
+ };
360
+ readonly shell: {
361
+ readonly type: "boolean";
362
+ readonly description: "True for shell components: authored once per product, never generated. Use the others in generated screens.";
363
+ };
364
+ };
365
+ readonly required: readonly ["name", "category", "summary", "shell"];
366
+ readonly additionalProperties: false;
367
+ };
368
+ };
369
+ };
370
+ readonly oneOf: readonly [{
371
+ readonly required: readonly ["component"];
372
+ }, {
373
+ readonly required: readonly ["components"];
374
+ }];
375
+ readonly additionalProperties: false;
376
+ };
@@ -0,0 +1,186 @@
1
+ /**
2
+ * The tools' output schemas: JSON Schema (2020-12, the MCP default) for each tool's
3
+ * `structuredContent`. The SDK checks every successful result against its tool's schema before it
4
+ * is sent (Ajv in Node, @cfworker/json-schema in a Worker), and skips results with `isError: true`,
5
+ * which may leave `structuredContent` out or give a different shape.
6
+ *
7
+ * Every root is `type: "object"`: on the 2025-11-25 wire a root of any other kind makes the SDK wrap
8
+ * the result as `{result: ...}`. Plain data only, so the module runs unchanged in a Worker.
9
+ */
10
+ import { PACKS } from "./packs.generated.js";
11
+ import { componentDefinitions } from "./spec.js";
12
+ const packNames = PACKS.map((p) => p.name);
13
+ const categories = [...new Set(componentDefinitions().map((c) => c.category))];
14
+ const severity = { type: "string", enum: ["error", "warning"], description: "\"error\" must be fixed before the document is shown; \"warning\" is advice." };
15
+ const specVersion = { type: "string", description: "The version of the Polyxd spec this server implements, e.g. \"0.3.0\". Documents set it as their \"specVersion\"." };
16
+ const issue = {
17
+ type: "object",
18
+ description: "One problem in the document.",
19
+ properties: {
20
+ severity,
21
+ pointer: { type: "string", description: "JSON Pointer to the problem in the document, e.g. \"/components/2/label\"." },
22
+ component: {
23
+ type: "object",
24
+ description: "The component the pointer is inside, when it is inside one.",
25
+ properties: {
26
+ id: { type: "string", description: "The component's id." },
27
+ type: { type: "string", description: "The component's type (its \"component\" value), e.g. \"TextInput\"." },
28
+ },
29
+ additionalProperties: false,
30
+ },
31
+ message: { type: "string", description: "What is wrong." },
32
+ hint: { type: "string", description: "What to change to fix it, when there is a known fix." },
33
+ },
34
+ required: ["severity", "pointer", "message"],
35
+ additionalProperties: false,
36
+ };
37
+ const counts = {
38
+ errors: { type: "integer", minimum: 0, description: "How many errors. Fix every one before showing the document." },
39
+ warnings: { type: "integer", minimum: 0, description: "How many warnings. Advice; they do not stop the document being shown." },
40
+ };
41
+ export const guideOutput = {
42
+ type: "object",
43
+ properties: {
44
+ specVersion,
45
+ guide: {
46
+ type: "string",
47
+ description: "The instructions for writing a Polyxd UI document: how to use these tools, the document shape, the rules, bindings, actions, every component with its props, and the patterns. The same text as the result's text content.",
48
+ },
49
+ },
50
+ required: ["specVersion", "guide"],
51
+ additionalProperties: false,
52
+ };
53
+ export const validateOutput = {
54
+ type: "object",
55
+ properties: {
56
+ valid: { type: "boolean", description: "True when the document has no errors and can be shown. Warnings do not make it invalid." },
57
+ ...counts,
58
+ issues: { type: "array", items: issue, description: "Every error and warning, each at its JSON Pointer with a hint. Empty when the document is clean." },
59
+ },
60
+ required: ["valid", "errors", "warnings", "issues"],
61
+ additionalProperties: false,
62
+ };
63
+ export const verifyOutput = {
64
+ type: "object",
65
+ properties: {
66
+ ...counts,
67
+ findings: {
68
+ type: "array",
69
+ description: "Every check that failed. Empty when the document passes with no warnings.",
70
+ items: {
71
+ type: "object",
72
+ properties: {
73
+ severity,
74
+ check: {
75
+ type: "string",
76
+ description: "The check that failed, e.g. \"spec\", \"data:missing-path\", \"pattern:<id>\", \"rule:<id>\", \"capability\" or \"load:inputs-per-view\".",
77
+ },
78
+ message: { type: "string", description: "What failed; findings from the spec validator start with the JSON Pointer, as \"<pointer>: <message>\"." },
79
+ hint: { type: "string", description: "What to change to fix it, when there is a known fix." },
80
+ },
81
+ required: ["severity", "check", "message"],
82
+ additionalProperties: false,
83
+ },
84
+ },
85
+ direction: { type: "string", description: "The name of the Design Direction the document was held to, when one was given and it has a name." },
86
+ rules: { type: "integer", minimum: 0, description: "How many Design Direction rules were checked. 0 without a direction." },
87
+ },
88
+ required: ["errors", "warnings", "findings", "rules"],
89
+ additionalProperties: false,
90
+ };
91
+ export const showOutput = {
92
+ type: "object",
93
+ description: "shown is true with the document, pack and spec version when the screen was shown; false with the issues when it was not (that result is also an error).",
94
+ properties: {
95
+ shown: { type: "boolean", description: "Whether the screen was shown to the user. False when the document has errors." },
96
+ document: {
97
+ type: "object",
98
+ description: "The Polyxd UI document as shown, with the separately passed data merged in as its \"data\". The MCP App renders it.",
99
+ additionalProperties: true,
100
+ },
101
+ pack: { type: "string", enum: packNames, description: "The design-system pack the screen is drawn in." },
102
+ packName: { type: "string", description: "The pack's display name, e.g. \"Material 3\"." },
103
+ mode: { type: "string", enum: ["light", "dark"], description: "Light or dark, when one was asked for. Absent: the screen follows the host's theme." },
104
+ specVersion,
105
+ issues: { type: "array", items: issue, description: "When not shown: the document's errors and warnings, each at its JSON Pointer with a hint." },
106
+ },
107
+ required: ["shown"],
108
+ oneOf: [
109
+ { properties: { shown: { const: true } }, required: ["document", "pack", "packName", "specVersion"] },
110
+ { properties: { shown: { const: false } }, required: ["issues"] },
111
+ ],
112
+ additionalProperties: false,
113
+ };
114
+ export const packsOutput = {
115
+ type: "object",
116
+ properties: {
117
+ default: { type: "string", enum: packNames, description: "The pack polyxd_show uses when none is given." },
118
+ packs: {
119
+ type: "array",
120
+ description: "Every pack, for polyxd_show's \"pack\" argument.",
121
+ items: {
122
+ type: "object",
123
+ properties: {
124
+ name: { type: "string", description: "The pack's name: the value to pass as polyxd_show's \"pack\"." },
125
+ displayName: { type: "string", description: "The name to show people, e.g. \"IBM Carbon\"." },
126
+ template: { type: "boolean", description: "True for an original template to start from; false for a published design system." },
127
+ package: { type: "string", description: "The npm package with the pack's design tokens." },
128
+ description: { type: "string", description: "A one-line description of the pack." },
129
+ },
130
+ required: ["name", "displayName", "template", "package", "description"],
131
+ additionalProperties: false,
132
+ },
133
+ },
134
+ },
135
+ required: ["default", "packs"],
136
+ additionalProperties: false,
137
+ };
138
+ const strings = (description) => ({ type: "array", items: { type: "string" }, description });
139
+ const category = { type: "string", description: `The component's kind: ${categories.join(", ")}.` };
140
+ export const componentsOutput = {
141
+ type: "object",
142
+ description: "\"component\" when a name was given; \"components\" otherwise.",
143
+ properties: {
144
+ component: {
145
+ type: "object",
146
+ description: "One component's full definition.",
147
+ properties: {
148
+ name: { type: "string", description: "The component's type name, the value of \"component\" in a document, e.g. \"Choice\"." },
149
+ category,
150
+ summary: { type: "string", description: "What the component is for, in one line." },
151
+ props: {
152
+ type: "object",
153
+ description: "Every prop, by name, as a JSON Schema. $refs point into the spec's common definitions (DynamicString, Binding, Options and so on).",
154
+ additionalProperties: true,
155
+ },
156
+ required: strings("The props a document must set."),
157
+ whenToUse: strings("When to use this component."),
158
+ whenNotToUse: strings("When not to, and what to use instead."),
159
+ shell: { type: "boolean", description: "True for shell components, which frame a product's screens: authored once per product, never generated." },
160
+ rendering: strings("How renderers draw it."),
161
+ accessibility: { type: "object", description: "Its accessible role and requirements.", additionalProperties: true },
162
+ agent: { type: "string", description: "How an agent operating the rendered screen should use it." },
163
+ },
164
+ required: ["name", "category", "summary", "props", "required", "whenToUse", "whenNotToUse"],
165
+ additionalProperties: true,
166
+ },
167
+ components: {
168
+ type: "array",
169
+ description: "Every component, in the spec's order.",
170
+ items: {
171
+ type: "object",
172
+ properties: {
173
+ name: { type: "string", description: "The component's type name. Pass it back as \"name\" for the full definition." },
174
+ category,
175
+ summary: { type: "string", description: "What the component is for, in one line." },
176
+ shell: { type: "boolean", description: "True for shell components: authored once per product, never generated. Use the others in generated screens." },
177
+ },
178
+ required: ["name", "category", "summary", "shell"],
179
+ additionalProperties: false,
180
+ },
181
+ },
182
+ },
183
+ oneOf: [{ required: ["component"] }, { required: ["components"] }],
184
+ additionalProperties: false,
185
+ };
186
+ //# sourceMappingURL=output-schemas.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"output-schemas.js","sourceRoot":"","sources":["../src/output-schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC7C,OAAO,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AAEjD,MAAM,SAAS,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;AAC3C,MAAM,UAAU,GAAG,CAAC,GAAG,IAAI,GAAG,CAAC,oBAAoB,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;AAC/E,MAAM,QAAQ,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,OAAO,EAAE,SAAS,CAAC,EAAE,WAAW,EAAE,8EAA8E,EAAW,CAAC;AACtK,MAAM,WAAW,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,mHAAmH,EAAW,CAAC;AAElL,MAAM,KAAK,GAAG;IACZ,IAAI,EAAE,QAAQ;IACd,WAA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AE,CAAC,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,OAAO,CAAC;gBAClD,oBAAoB,EAAE,KAAK;aAC5B;SACF;KACF;IACD,KAAK,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,WAAW,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,CAAC,YAAY,CAAC,EAAE,CAAC;IAClE,oBAAoB,EAAE,KAAK;CACnB,CAAC"}
@@ -0,0 +1,11 @@
1
+ export interface Pack {
2
+ /** The pack's name: the theme the renderer applies. */
3
+ name: string;
4
+ displayName: string;
5
+ /** An original design to start from, rather than a published design system. */
6
+ template: boolean;
7
+ /** The npm package with the pack's tokens. */
8
+ package: string;
9
+ description: string;
10
+ }
11
+ export declare const PACKS: Pack[];