codesign-mcp-next 0.3.2 → 0.3.4
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/CHANGELOG.md +149 -121
- package/LICENSE +21 -21
- package/README.md +460 -458
- package/dist/codesign/errors.js +1 -0
- package/dist/codesign/verify.js +495 -0
- package/dist/mcp/result.js +19 -0
- package/dist/prompts/design-to-code.js +20 -18
- package/dist/resources/workflow.js +17 -16
- package/dist/server.js +2 -0
- package/dist/tools/slices.js +56 -3
- package/dist/tools/verify-rendering.js +175 -0
- package/package.json +58 -58
- package/userscripts/codesign-ai-selection.user.js +445 -445
package/dist/tools/slices.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { createHash } from 'node:crypto';
|
|
2
2
|
import { objectSchema } from '../mcp/schema.js';
|
|
3
3
|
import { browserManager } from '../browser/manager.js';
|
|
4
|
-
import { getCachedSharingDetail, fetchCachedSliceManifest } from '../codesign/cache.js';
|
|
4
|
+
import { getCachedSharingDetail, fetchCachedSpec, fetchCachedSliceManifest } from '../codesign/cache.js';
|
|
5
5
|
import { findSliceByObjectId } from '../codesign/slices.js';
|
|
6
|
+
import { buildPlatformSpec } from '../codesign/platform.js';
|
|
6
7
|
import { inspectManifest, integrityView } from '../codesign/integrity.js';
|
|
7
8
|
import { CodesignError } from '../codesign/errors.js';
|
|
8
9
|
import { normalizeCodesignAssetUrl, parseSharingId } from '../utils/url.js';
|
|
@@ -37,6 +38,14 @@ const inputSchema = objectSchema({
|
|
|
37
38
|
items: { type: 'number' },
|
|
38
39
|
description: 'Filter exportables by scale list, e.g. [1, 2]',
|
|
39
40
|
},
|
|
41
|
+
targetPlatform: {
|
|
42
|
+
type: 'string',
|
|
43
|
+
description: 'Optional platform used to return the design layout size together with each slice.',
|
|
44
|
+
},
|
|
45
|
+
targetUnit: { type: 'string' },
|
|
46
|
+
customScale: { type: 'number', minimum: 0 },
|
|
47
|
+
customWidth: { type: 'number', minimum: 0 },
|
|
48
|
+
remBasePx: { type: 'number', minimum: 0 },
|
|
40
49
|
includeFullText: {
|
|
41
50
|
type: 'boolean',
|
|
42
51
|
default: false,
|
|
@@ -48,11 +57,13 @@ export function registerSlicesTool(server) {
|
|
|
48
57
|
title: 'Download CoDesign Slice',
|
|
49
58
|
description: 'Downloads designer-exported CoDesign slice assets from the official slice manifest, matched by layer object_id. ' +
|
|
50
59
|
'Use this for implementation assets instead of using Python/PIL or screenshot cropping. ' +
|
|
51
|
-
'Returns local paths under <workspaceRoot>/.codesign-mcp/artifacts/<sharingId>/slices/. Optional filters: format and scales.'
|
|
60
|
+
'Returns local paths under <workspaceRoot>/.codesign-mcp/artifacts/<sharingId>/slices/. Optional filters: format and scales. ' +
|
|
61
|
+
'Pass targetPlatform (with the same unit/width options used for get_artboard_spec) to also receive slice.designSize, ' +
|
|
62
|
+
'the converted layout width/height the image must be displayed at in code — 2x assets must be shown at this size, not their pixel size.',
|
|
52
63
|
inputSchema,
|
|
53
64
|
annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: true, openWorldHint: true },
|
|
54
65
|
}, async (args) => {
|
|
55
|
-
const { sharingUrl, password, screenId, objectId, screenName, layerObjectId, format, scales, includeFullText } = args;
|
|
66
|
+
const { sharingUrl, password, screenId, objectId, screenName, layerObjectId, format, scales, targetPlatform, targetUnit, customScale, customWidth, remBasePx, includeFullText, } = args;
|
|
56
67
|
let sharingId;
|
|
57
68
|
try {
|
|
58
69
|
sharingId = parseSharingId(sharingUrl);
|
|
@@ -107,6 +118,47 @@ export function registerSlicesTool(server) {
|
|
|
107
118
|
})),
|
|
108
119
|
}));
|
|
109
120
|
}
|
|
121
|
+
// designSize 是「该图层在代码里应显示的布局宽高」,由 platformSpec 换算而来。
|
|
122
|
+
// 只有显式传 targetPlatform 时才额外拉 spec(有缓存),避免改变默认请求量。
|
|
123
|
+
let designSize;
|
|
124
|
+
if (targetPlatform) {
|
|
125
|
+
if (picked.meta_url) {
|
|
126
|
+
try {
|
|
127
|
+
const spec = await fetchCachedSpec(picked.meta_url);
|
|
128
|
+
const platformSpec = buildPlatformSpec(spec, targetPlatform, {
|
|
129
|
+
targetUnit,
|
|
130
|
+
customScale,
|
|
131
|
+
customWidth,
|
|
132
|
+
remBasePx,
|
|
133
|
+
});
|
|
134
|
+
const platformLayer = [...platformSpec.layers, ...platformSpec.groups].find((layer) => layer.objectId === slice.object_id);
|
|
135
|
+
designSize = platformLayer
|
|
136
|
+
? {
|
|
137
|
+
width: platformLayer.rect.width,
|
|
138
|
+
height: platformLayer.rect.height,
|
|
139
|
+
unit: platformLayer.rect.unit,
|
|
140
|
+
source: 'platformSpec',
|
|
141
|
+
}
|
|
142
|
+
: {
|
|
143
|
+
width: slice.rect.width,
|
|
144
|
+
height: slice.rect.height,
|
|
145
|
+
unit: platformSpec.unit,
|
|
146
|
+
source: 'sliceRect',
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
catch (err) {
|
|
150
|
+
log.warn({ err: err.message }, 'download_slice designSize lookup failed');
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
if (!designSize) {
|
|
154
|
+
designSize = {
|
|
155
|
+
width: slice.rect.width,
|
|
156
|
+
height: slice.rect.height,
|
|
157
|
+
unit: 'px',
|
|
158
|
+
source: 'sliceRect',
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
}
|
|
110
162
|
const integrity = integrityView(inspectManifest(manifest));
|
|
111
163
|
const downloads = [];
|
|
112
164
|
const skipped = [];
|
|
@@ -169,6 +221,7 @@ export function registerSlicesTool(server) {
|
|
|
169
221
|
name: slice.name,
|
|
170
222
|
objectId: slice.object_id,
|
|
171
223
|
rect: slice.rect,
|
|
224
|
+
designSize,
|
|
172
225
|
},
|
|
173
226
|
requested: filteredExportables.length,
|
|
174
227
|
downloaded: downloads.length,
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
// verify_rendering:重新拉取权威 spec,重建 platformSpec,读取生成代码,
|
|
2
|
+
// 按 data-slice-id 属性 / `slice:` 注释锚点比对尺寸、倍率、颜色、字号、圆角、层级。
|
|
3
|
+
// 期望值不信任 LLM 入参,全部由工具重新拉取重建,防止错误转录。
|
|
4
|
+
import { readFileSync, statSync } from 'node:fs';
|
|
5
|
+
import { isAbsolute, relative, resolve, sep } from 'node:path';
|
|
6
|
+
import { objectSchema } from '../mcp/schema.js';
|
|
7
|
+
import { browserManager } from '../browser/manager.js';
|
|
8
|
+
import { getCachedSharingDetail, fetchCachedSpec, fetchCachedSliceManifest } from '../codesign/cache.js';
|
|
9
|
+
import { normalizeSpec } from '../codesign/parser.js';
|
|
10
|
+
import { buildPlatformSpec } from '../codesign/platform.js';
|
|
11
|
+
import { verifyRendering, VERIFY_CHECKS } from '../codesign/verify.js';
|
|
12
|
+
import { CodesignError } from '../codesign/errors.js';
|
|
13
|
+
import { parseSharingId } from '../utils/url.js';
|
|
14
|
+
import { config } from '../config.js';
|
|
15
|
+
import { errorResult } from './artboards.js';
|
|
16
|
+
import { pickScreen, summarizeScreens } from './spec.js';
|
|
17
|
+
import { toolSuccess, summarizeVerifyPayload } from '../mcp/result.js';
|
|
18
|
+
import { getLogger } from '../logger.js';
|
|
19
|
+
const log = getLogger();
|
|
20
|
+
const MAX_FILE_BYTES = 2 * 1024 * 1024;
|
|
21
|
+
const inputSchema = objectSchema({
|
|
22
|
+
sharingUrl: { type: 'string', minLength: 1 },
|
|
23
|
+
password: { type: 'string' },
|
|
24
|
+
screenId: { anyOf: [{ type: 'integer' }, { type: 'string' }] },
|
|
25
|
+
objectId: { type: 'string' },
|
|
26
|
+
screenName: { type: 'string' },
|
|
27
|
+
codeFiles: {
|
|
28
|
+
type: 'array',
|
|
29
|
+
items: { type: 'string', minLength: 1 },
|
|
30
|
+
description: 'Project files to scan, relative to the workspace root.',
|
|
31
|
+
},
|
|
32
|
+
targetPlatform: {
|
|
33
|
+
type: 'string',
|
|
34
|
+
minLength: 1,
|
|
35
|
+
description: 'Same platform used for get_artboard_spec, e.g. web, wechat-miniprogram, raw.',
|
|
36
|
+
},
|
|
37
|
+
targetUnit: { type: 'string' },
|
|
38
|
+
customScale: { type: 'number', minimum: 0 },
|
|
39
|
+
customWidth: { type: 'number', minimum: 0 },
|
|
40
|
+
remBasePx: { type: 'number', minimum: 0 },
|
|
41
|
+
scale: { type: 'number', minimum: 1, default: 2, description: 'Expected slice scale, default 2.' },
|
|
42
|
+
checks: {
|
|
43
|
+
type: 'array',
|
|
44
|
+
items: { type: 'string', enum: [...VERIFY_CHECKS] },
|
|
45
|
+
description: 'Dimensions to verify. Defaults to all.',
|
|
46
|
+
},
|
|
47
|
+
includeFullText: { type: 'boolean', default: false },
|
|
48
|
+
}, ['sharingUrl', 'codeFiles', 'targetPlatform']);
|
|
49
|
+
export function registerVerifyRenderingTool(server) {
|
|
50
|
+
server.registerTool('verify_rendering', {
|
|
51
|
+
title: 'Verify Rendering Against Design',
|
|
52
|
+
description: 'Re-fetches the official CoDesign spec (bypassing any LLM-supplied measurements), rebuilds platformSpec, ' +
|
|
53
|
+
'then statically checks generated code against the design for size, slice scale, color, typography, radius, and hierarchy. ' +
|
|
54
|
+
'Anchors are data-slice-id="<layerObjectId>" attributes or /* slice:<layerObjectId> */ comments. ' +
|
|
55
|
+
'Returns per-issue file/line, a reviewRequired list for unresolvable visual areas, and ok=false when any hard check fails. ' +
|
|
56
|
+
'This tool never modifies files; use its issues to fix code before finishing.',
|
|
57
|
+
inputSchema,
|
|
58
|
+
annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: true },
|
|
59
|
+
}, async (args) => {
|
|
60
|
+
const { sharingUrl, password, screenId, objectId, screenName, codeFiles, targetPlatform, targetUnit, customScale, customWidth, remBasePx, scale, checks, includeFullText, } = args;
|
|
61
|
+
let sharingId;
|
|
62
|
+
try {
|
|
63
|
+
sharingId = parseSharingId(sharingUrl);
|
|
64
|
+
}
|
|
65
|
+
catch (err) {
|
|
66
|
+
return errorResult(err);
|
|
67
|
+
}
|
|
68
|
+
// 先做纯本地的文件读取与路径校验,避免无谓地拉取远端数据。
|
|
69
|
+
let files;
|
|
70
|
+
try {
|
|
71
|
+
files = codeFiles.map((entry) => readCodeFile(entry));
|
|
72
|
+
}
|
|
73
|
+
catch (err) {
|
|
74
|
+
return errorResult(err);
|
|
75
|
+
}
|
|
76
|
+
const call = await browserManager.acquireHeadless();
|
|
77
|
+
try {
|
|
78
|
+
const { detail } = await getCachedSharingDetail(call.page, sharingId, password);
|
|
79
|
+
const allScreens = [];
|
|
80
|
+
for (const design of detail.designs ?? []) {
|
|
81
|
+
for (const screen of design.screens ?? [])
|
|
82
|
+
allScreens.push(screen);
|
|
83
|
+
}
|
|
84
|
+
if (allScreens.length === 0) {
|
|
85
|
+
return errorResult(new CodesignError('SHARING_NOT_FOUND', 'sharing has no screens', { sharingId }));
|
|
86
|
+
}
|
|
87
|
+
const selector = { screenId, objectId, screenName };
|
|
88
|
+
const picked = pickScreen(allScreens, selector);
|
|
89
|
+
if (!picked) {
|
|
90
|
+
const needsSelector = selector.screenId != null || selector.objectId != null || selector.screenName != null;
|
|
91
|
+
return errorResult(needsSelector
|
|
92
|
+
? new CodesignError('SCREEN_NOT_FOUND', 'no screen matches the given selector', {
|
|
93
|
+
selector,
|
|
94
|
+
available: summarizeScreens(allScreens),
|
|
95
|
+
})
|
|
96
|
+
: new CodesignError('SCREEN_SELECTOR_REQUIRED', 'multiple screens present; specify a selector', {
|
|
97
|
+
available: summarizeScreens(allScreens),
|
|
98
|
+
}));
|
|
99
|
+
}
|
|
100
|
+
const spec = await fetchCachedSpec(picked.meta_url);
|
|
101
|
+
const manifest = picked.slices_url ? await fetchCachedSliceManifest(picked.slices_url) : [];
|
|
102
|
+
const platformSpec = buildPlatformSpec(spec, targetPlatform, {
|
|
103
|
+
targetUnit,
|
|
104
|
+
customScale,
|
|
105
|
+
customWidth,
|
|
106
|
+
remBasePx,
|
|
107
|
+
});
|
|
108
|
+
const normalized = normalizeSpec(spec, manifest, platformSpec);
|
|
109
|
+
const report = verifyRendering({
|
|
110
|
+
files,
|
|
111
|
+
layers: normalized.layers,
|
|
112
|
+
groups: normalized.groups,
|
|
113
|
+
hierarchy: normalized.hierarchy,
|
|
114
|
+
platformSpec,
|
|
115
|
+
manifest,
|
|
116
|
+
scale: scale ?? 2,
|
|
117
|
+
checks: checks && checks.length > 0 ? checks : undefined,
|
|
118
|
+
});
|
|
119
|
+
return toolSuccess({
|
|
120
|
+
sharingId,
|
|
121
|
+
screen: { id: picked.id, objectId: picked.object_id, name: picked.name },
|
|
122
|
+
platform: {
|
|
123
|
+
requested: platformSpec.requested,
|
|
124
|
+
id: platformSpec.id,
|
|
125
|
+
unit: platformSpec.unit,
|
|
126
|
+
scale: platformSpec.scale,
|
|
127
|
+
},
|
|
128
|
+
summary: report.summary,
|
|
129
|
+
ok: report.ok,
|
|
130
|
+
issues: report.issues,
|
|
131
|
+
reviewRequired: report.reviewRequired,
|
|
132
|
+
anchors: report.anchors,
|
|
133
|
+
checkedSlices: report.checkedSlices,
|
|
134
|
+
files: files.map((file) => file.path),
|
|
135
|
+
}, includeFullText, summarizeVerifyPayload);
|
|
136
|
+
}
|
|
137
|
+
catch (err) {
|
|
138
|
+
log.warn({ err: err.message, sharingId }, 'verify_rendering failed');
|
|
139
|
+
return errorResult(err);
|
|
140
|
+
}
|
|
141
|
+
finally {
|
|
142
|
+
await call.done();
|
|
143
|
+
}
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
function readCodeFile(entry) {
|
|
147
|
+
const root = resolve(config.workspaceRoot);
|
|
148
|
+
const target = isAbsolute(entry) ? resolve(entry) : resolve(root, entry);
|
|
149
|
+
const rel = relative(root, target);
|
|
150
|
+
if (rel === '..' || rel.startsWith(`..${sep}`) || isAbsolute(rel)) {
|
|
151
|
+
throw new CodesignError('ARTIFACT_PATH_INVALID', 'code file escapes the workspace root', {
|
|
152
|
+
root,
|
|
153
|
+
entry,
|
|
154
|
+
target,
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
let stats;
|
|
158
|
+
try {
|
|
159
|
+
stats = statSync(target);
|
|
160
|
+
}
|
|
161
|
+
catch {
|
|
162
|
+
throw new CodesignError('CODE_FILE_INVALID', 'code file does not exist', { entry, target });
|
|
163
|
+
}
|
|
164
|
+
if (!stats.isFile()) {
|
|
165
|
+
throw new CodesignError('CODE_FILE_INVALID', 'code path is not a file', { entry, target });
|
|
166
|
+
}
|
|
167
|
+
if (stats.size > MAX_FILE_BYTES) {
|
|
168
|
+
throw new CodesignError('CODE_FILE_INVALID', 'code file is too large to verify', {
|
|
169
|
+
entry,
|
|
170
|
+
bytes: stats.size,
|
|
171
|
+
maxBytes: MAX_FILE_BYTES,
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
return { path: entry, text: readFileSync(target, 'utf8') };
|
|
175
|
+
}
|
package/package.json
CHANGED
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "codesign-mcp-next",
|
|
3
|
-
"version": "0.3.
|
|
4
|
-
"description": "Local MCP server for Tencent CoDesign — read sharing artboards, specs, screenshots and slices.",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"license": "MIT",
|
|
7
|
-
"repository": {
|
|
8
|
-
"type": "git",
|
|
9
|
-
"url": "git+https://github.com/DOIT008/codesign-mcp.git"
|
|
10
|
-
},
|
|
11
|
-
"bugs": {
|
|
12
|
-
"url": "https://github.com/DOIT008/codesign-mcp/issues"
|
|
13
|
-
},
|
|
14
|
-
"homepage": "https://github.com/DOIT008/codesign-mcp#readme",
|
|
15
|
-
"keywords": [
|
|
16
|
-
"mcp",
|
|
17
|
-
"codesign",
|
|
18
|
-
"tencent",
|
|
19
|
-
"design-to-code"
|
|
20
|
-
],
|
|
21
|
-
"engines": {
|
|
22
|
-
"node": ">=20"
|
|
23
|
-
},
|
|
24
|
-
"main": "dist/index.js",
|
|
25
|
-
"bin": {
|
|
26
|
-
"codesign-mcp-next": "dist/index.js"
|
|
27
|
-
},
|
|
28
|
-
"files": [
|
|
29
|
-
"dist",
|
|
30
|
-
"!dist/**/*.map",
|
|
31
|
-
"userscripts",
|
|
32
|
-
"README.md",
|
|
33
|
-
"CHANGELOG.md",
|
|
34
|
-
"LICENSE",
|
|
35
|
-
"package.json"
|
|
36
|
-
],
|
|
37
|
-
"publishConfig": {
|
|
38
|
-
"access": "public",
|
|
39
|
-
"registry": "https://registry.npmjs.org/"
|
|
40
|
-
},
|
|
41
|
-
"scripts": {
|
|
42
|
-
"build": "tsc -p tsconfig.json",
|
|
43
|
-
"start": "node dist/index.js",
|
|
44
|
-
"dev": "tsx watch src/index.ts",
|
|
45
|
-
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
46
|
-
"test": "npm run build && node --check userscripts/codesign-ai-selection.user.js && node --test tests/cache.test.mjs tests/config.test.mjs tests/download.test.mjs tests/hierarchy.test.mjs tests/http.test.mjs tests/integrity.test.mjs tests/login.test.mjs tests/manager.test.mjs tests/mcp.test.mjs tests/parser.test.mjs tests/platform.test.mjs tests/rate-limit.test.mjs tests/redact.test.mjs tests/result.test.mjs tests/retry.test.mjs tests/selection.test.mjs tests/sharing.test.mjs tests/slices.test.mjs tests/startup.test.mjs tests/url.test.mjs",
|
|
47
|
-
"prepack": "npm run build",
|
|
48
|
-
"install:browsers": "playwright install chromium"
|
|
49
|
-
},
|
|
50
|
-
"dependencies": {
|
|
51
|
-
"playwright": "1.60.0"
|
|
52
|
-
},
|
|
53
|
-
"devDependencies": {
|
|
54
|
-
"@types/node": "22.19.19",
|
|
55
|
-
"tsx": "4.22.2",
|
|
56
|
-
"typescript": "5.9.3"
|
|
57
|
-
}
|
|
58
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "codesign-mcp-next",
|
|
3
|
+
"version": "0.3.4",
|
|
4
|
+
"description": "Local MCP server for Tencent CoDesign — read sharing artboards, specs, screenshots and slices.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/DOIT008/codesign-mcp.git"
|
|
10
|
+
},
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://github.com/DOIT008/codesign-mcp/issues"
|
|
13
|
+
},
|
|
14
|
+
"homepage": "https://github.com/DOIT008/codesign-mcp#readme",
|
|
15
|
+
"keywords": [
|
|
16
|
+
"mcp",
|
|
17
|
+
"codesign",
|
|
18
|
+
"tencent",
|
|
19
|
+
"design-to-code"
|
|
20
|
+
],
|
|
21
|
+
"engines": {
|
|
22
|
+
"node": ">=20"
|
|
23
|
+
},
|
|
24
|
+
"main": "dist/index.js",
|
|
25
|
+
"bin": {
|
|
26
|
+
"codesign-mcp-next": "dist/index.js"
|
|
27
|
+
},
|
|
28
|
+
"files": [
|
|
29
|
+
"dist",
|
|
30
|
+
"!dist/**/*.map",
|
|
31
|
+
"userscripts",
|
|
32
|
+
"README.md",
|
|
33
|
+
"CHANGELOG.md",
|
|
34
|
+
"LICENSE",
|
|
35
|
+
"package.json"
|
|
36
|
+
],
|
|
37
|
+
"publishConfig": {
|
|
38
|
+
"access": "public",
|
|
39
|
+
"registry": "https://registry.npmjs.org/"
|
|
40
|
+
},
|
|
41
|
+
"scripts": {
|
|
42
|
+
"build": "tsc -p tsconfig.json",
|
|
43
|
+
"start": "node dist/index.js",
|
|
44
|
+
"dev": "tsx watch src/index.ts",
|
|
45
|
+
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
46
|
+
"test": "npm run build && node --check userscripts/codesign-ai-selection.user.js && node --test tests/cache.test.mjs tests/config.test.mjs tests/download.test.mjs tests/hierarchy.test.mjs tests/http.test.mjs tests/integrity.test.mjs tests/login.test.mjs tests/manager.test.mjs tests/mcp.test.mjs tests/parser.test.mjs tests/platform.test.mjs tests/rate-limit.test.mjs tests/redact.test.mjs tests/result.test.mjs tests/retry.test.mjs tests/selection.test.mjs tests/sharing.test.mjs tests/slices.test.mjs tests/startup.test.mjs tests/url.test.mjs tests/verify-rendering.test.mjs",
|
|
47
|
+
"prepack": "npm run build",
|
|
48
|
+
"install:browsers": "playwright install chromium"
|
|
49
|
+
},
|
|
50
|
+
"dependencies": {
|
|
51
|
+
"playwright": "1.60.0"
|
|
52
|
+
},
|
|
53
|
+
"devDependencies": {
|
|
54
|
+
"@types/node": "22.19.19",
|
|
55
|
+
"tsx": "4.22.2",
|
|
56
|
+
"typescript": "5.9.3"
|
|
57
|
+
}
|
|
58
|
+
}
|