canicode 0.8.8 → 0.8.9
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/cli/index.js +5 -1
- package/dist/cli/index.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/mcp/server.js +5 -1
- package/dist/mcp/server.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { GetFileResponse, Node } from '@figma/rest-api-spec';
|
|
3
3
|
|
|
4
|
-
var version = "0.8.
|
|
4
|
+
var version = "0.8.9";
|
|
5
5
|
|
|
6
6
|
declare const SeveritySchema: z.ZodEnum<{
|
|
7
7
|
blocking: "blocking";
|
|
@@ -157,6 +157,7 @@ declare const BaseAnalysisNodeSchema: z.ZodObject<{
|
|
|
157
157
|
fills: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
158
158
|
strokes: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
159
159
|
effects: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
160
|
+
cornerRadius: z.ZodOptional<z.ZodNumber>;
|
|
160
161
|
boundVariables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
161
162
|
characters: z.ZodOptional<z.ZodString>;
|
|
162
163
|
style: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { basename, resolve, dirname } from 'path';
|
|
|
4
4
|
import { existsSync, mkdirSync } from 'fs';
|
|
5
5
|
|
|
6
6
|
// package.json
|
|
7
|
-
var version = "0.8.
|
|
7
|
+
var version = "0.8.9";
|
|
8
8
|
var SeveritySchema = z.enum([
|
|
9
9
|
"blocking",
|
|
10
10
|
"risk",
|
|
@@ -105,6 +105,7 @@ var BaseAnalysisNodeSchema = z.object({
|
|
|
105
105
|
fills: z.array(z.unknown()).optional(),
|
|
106
106
|
strokes: z.array(z.unknown()).optional(),
|
|
107
107
|
effects: z.array(z.unknown()).optional(),
|
|
108
|
+
cornerRadius: z.number().optional(),
|
|
108
109
|
// Variable binding analysis (design tokens)
|
|
109
110
|
boundVariables: z.record(z.string(), z.unknown()).optional(),
|
|
110
111
|
// Text analysis
|
|
@@ -2373,6 +2374,9 @@ function transformNode(node) {
|
|
|
2373
2374
|
if ("effects" in node) {
|
|
2374
2375
|
base.effects = node.effects;
|
|
2375
2376
|
}
|
|
2377
|
+
if ("cornerRadius" in node && typeof node.cornerRadius === "number") {
|
|
2378
|
+
base.cornerRadius = node.cornerRadius;
|
|
2379
|
+
}
|
|
2376
2380
|
if ("boundVariables" in node && node.boundVariables) {
|
|
2377
2381
|
base.boundVariables = node.boundVariables;
|
|
2378
2382
|
}
|