paper-mono 0.62.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.
- package/CHANGELOG.md +21 -0
- package/DEPENDENCIES.json +143 -0
- package/LICENSE +21 -0
- package/README.md +138 -0
- package/SAFETY.md +27 -0
- package/THIRD_PARTY_NOTICES.md +244 -0
- package/bin/chunks/chunk-BGKLQ5Y6.js +55 -0
- package/bin/chunks/chunk-I4P43IZS.js +171 -0
- package/bin/chunks/chunk-JCO37BXY.js +31 -0
- package/bin/chunks/chunk-UHVY2TIH.js +3264 -0
- package/bin/chunks/chunk-ZX4GFXSY.js +37 -0
- package/bin/chunks/doctor-7DE4ASQO.js +355 -0
- package/bin/chunks/main-NQIGPQXK.js +23401 -0
- package/bin/chunks/owner-commands-MWXW2KMM.js +403 -0
- package/bin/chunks/tool-contract-ZWFZSYL4.js +32 -0
- package/bin/paper.js +258 -0
- package/dist/modes/interactive/theme/dark.json +85 -0
- package/dist/modes/interactive/theme/light.json +84 -0
- package/docs/cli.md +122 -0
- package/docs/paper-mcp.md +33 -0
- package/docs/runtime.md +54 -0
- package/package.json +79 -0
- package/tool-walk/fixtures.json +584 -0
- package/tool-walk/mono-safety-card.json +920 -0
- package/tool-walk/safety-fixtures.json +329 -0
- package/tools.contract.json +1748 -0
|
@@ -0,0 +1,584 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": "paper-tool-walk-fixtures.v1",
|
|
3
|
+
"cases": [
|
|
4
|
+
{
|
|
5
|
+
"id": "paper-get-basic-info",
|
|
6
|
+
"tool": "paper_get_basic_info",
|
|
7
|
+
"mode": "fixture",
|
|
8
|
+
"safety": "read",
|
|
9
|
+
"input": {
|
|
10
|
+
"fileId": "file-fixture",
|
|
11
|
+
"_fixture": {
|
|
12
|
+
"content": [
|
|
13
|
+
{
|
|
14
|
+
"type": "text",
|
|
15
|
+
"text": "File: Fixture Paper File\nPage: Home\nNode count: 42\nArtboards: [\"hero\": 1200x800, \"features\": 1200x600]"
|
|
16
|
+
}
|
|
17
|
+
]
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"expect": {
|
|
21
|
+
"status": ["pass"],
|
|
22
|
+
"summaryIncludes": "Fixture Paper File",
|
|
23
|
+
"maxBytes": 12288
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"id": "paper-get-selection",
|
|
28
|
+
"tool": "paper_get_selection",
|
|
29
|
+
"mode": "fixture",
|
|
30
|
+
"safety": "read",
|
|
31
|
+
"input": {
|
|
32
|
+
"fileId": "file-fixture",
|
|
33
|
+
"_fixture": {
|
|
34
|
+
"content": [
|
|
35
|
+
{
|
|
36
|
+
"type": "text",
|
|
37
|
+
"text": "Selected nodes: [{\"id\":\"btn-1\",\"name\":\"Primary Button\",\"type\":\"FRAME\",\"width\":160,\"height\":48,\"artboard\":\"hero\"}]"
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"expect": {
|
|
43
|
+
"status": ["pass"],
|
|
44
|
+
"summaryIncludes": "Primary Button",
|
|
45
|
+
"maxBytes": 12288
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"id": "paper-get-node-info",
|
|
50
|
+
"tool": "paper_get_node_info",
|
|
51
|
+
"mode": "fixture",
|
|
52
|
+
"safety": "read",
|
|
53
|
+
"input": {
|
|
54
|
+
"fileId": "file-fixture",
|
|
55
|
+
"id": "btn-1",
|
|
56
|
+
"_fixture": {
|
|
57
|
+
"content": [
|
|
58
|
+
{
|
|
59
|
+
"type": "text",
|
|
60
|
+
"text": "{\"id\":\"btn-1\",\"name\":\"Primary Button\",\"type\":\"FRAME\",\"width\":160,\"height\":48,\"visible\":true,\"locked\":false,\"parent\":\"hero\",\"textContent\":null}"
|
|
61
|
+
}
|
|
62
|
+
]
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"expect": {
|
|
66
|
+
"status": ["pass"],
|
|
67
|
+
"summaryIncludes": "btn-1",
|
|
68
|
+
"maxBytes": 12288
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"id": "paper-get-children",
|
|
73
|
+
"tool": "paper_get_children",
|
|
74
|
+
"mode": "fixture",
|
|
75
|
+
"safety": "read",
|
|
76
|
+
"input": {
|
|
77
|
+
"fileId": "file-fixture",
|
|
78
|
+
"id": "hero",
|
|
79
|
+
"_fixture": {
|
|
80
|
+
"content": [
|
|
81
|
+
{
|
|
82
|
+
"type": "text",
|
|
83
|
+
"text": "Children of hero: [{\"id\":\"heading-1\",\"name\":\"Heading\",\"type\":\"TEXT\",\"childCount\":0},{\"id\":\"btn-1\",\"name\":\"Primary Button\",\"type\":\"FRAME\",\"childCount\":2}]"
|
|
84
|
+
}
|
|
85
|
+
]
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"expect": {
|
|
89
|
+
"status": ["pass"],
|
|
90
|
+
"summaryIncludes": "Children of hero",
|
|
91
|
+
"maxBytes": 12288
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"id": "paper-get-tree-summary",
|
|
96
|
+
"tool": "paper_get_tree_summary",
|
|
97
|
+
"mode": "fixture",
|
|
98
|
+
"safety": "read",
|
|
99
|
+
"input": {
|
|
100
|
+
"fileId": "file-fixture",
|
|
101
|
+
"id": "hero",
|
|
102
|
+
"depth": 2,
|
|
103
|
+
"_fixture": {
|
|
104
|
+
"content": [
|
|
105
|
+
{
|
|
106
|
+
"type": "text",
|
|
107
|
+
"text": "hero (FRAME)\n heading-1 (TEXT)\n btn-1 (FRAME)\n btn-label (TEXT)\n btn-icon (VECTOR)"
|
|
108
|
+
}
|
|
109
|
+
]
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"expect": {
|
|
113
|
+
"status": ["pass"],
|
|
114
|
+
"summaryIncludes": "heading-1",
|
|
115
|
+
"maxBytes": 12288
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"id": "paper-get-screenshot",
|
|
120
|
+
"tool": "paper_get_screenshot",
|
|
121
|
+
"mode": "fixture",
|
|
122
|
+
"safety": "read",
|
|
123
|
+
"input": {
|
|
124
|
+
"fileId": "file-fixture",
|
|
125
|
+
"id": "btn-1",
|
|
126
|
+
"scale": 2,
|
|
127
|
+
"_fixture": {
|
|
128
|
+
"content": [
|
|
129
|
+
{
|
|
130
|
+
"type": "image",
|
|
131
|
+
"data": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO+X2Z0AAAAASUVORK5CYII=",
|
|
132
|
+
"mimeType": "image/png"
|
|
133
|
+
}
|
|
134
|
+
]
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
"expect": {
|
|
138
|
+
"status": ["pass"],
|
|
139
|
+
"maxBytes": 12288
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"id": "paper-get-jsx",
|
|
144
|
+
"tool": "paper_get_jsx",
|
|
145
|
+
"mode": "fixture",
|
|
146
|
+
"safety": "read",
|
|
147
|
+
"input": {
|
|
148
|
+
"fileId": "file-fixture",
|
|
149
|
+
"id": "btn-1",
|
|
150
|
+
"styleFormat": "tailwind",
|
|
151
|
+
"_fixture": {
|
|
152
|
+
"content": [
|
|
153
|
+
{
|
|
154
|
+
"type": "text",
|
|
155
|
+
"text": "\u003cbutton className=\"bg-blue-600 text-white px-4 py-2 rounded\"\u003ePrimary Button\u003c/button\u003e"
|
|
156
|
+
}
|
|
157
|
+
]
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
"expect": {
|
|
161
|
+
"status": ["pass"],
|
|
162
|
+
"summaryIncludes": "button",
|
|
163
|
+
"maxBytes": 24576
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"id": "paper-get-computed-styles",
|
|
168
|
+
"tool": "paper_get_computed_styles",
|
|
169
|
+
"mode": "fixture",
|
|
170
|
+
"safety": "read",
|
|
171
|
+
"input": {
|
|
172
|
+
"fileId": "file-fixture",
|
|
173
|
+
"ids": ["btn-1"],
|
|
174
|
+
"_fixture": {
|
|
175
|
+
"content": [
|
|
176
|
+
{
|
|
177
|
+
"type": "text",
|
|
178
|
+
"text": "{\"btn-1\":{\"width\":\"160px\",\"height\":\"48px\",\"backgroundColor\":\"#2563eb\",\"color\":\"#ffffff\",\"fontSize\":\"16px\",\"fontWeight\":\"500\",\"fontFamily\":\"Inter, sans-serif\",\"borderRadius\":\"8px\"}}"
|
|
179
|
+
}
|
|
180
|
+
]
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
"expect": {
|
|
184
|
+
"status": ["pass"],
|
|
185
|
+
"summaryIncludes": "btn-1",
|
|
186
|
+
"maxBytes": 24576
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"id": "paper-get-fill-image",
|
|
191
|
+
"tool": "paper_get_fill_image",
|
|
192
|
+
"mode": "fixture",
|
|
193
|
+
"safety": "read",
|
|
194
|
+
"input": {
|
|
195
|
+
"fileId": "file-fixture",
|
|
196
|
+
"id": "card-bg",
|
|
197
|
+
"_fixture": {
|
|
198
|
+
"content": [
|
|
199
|
+
{
|
|
200
|
+
"type": "image",
|
|
201
|
+
"data": "/9j/4AAQSkZJRgABAQEASABIAAD/2wBDAP//////////////////////////////////////////////////////////////////////////////////////wgALCAABAAEBAREA/8QAFBABAAAAAAAAAAAAAAAAAAAAAP/aAAgBAQABPxA=",
|
|
202
|
+
"mimeType": "image/jpeg"
|
|
203
|
+
}
|
|
204
|
+
]
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
"expect": {
|
|
208
|
+
"status": ["pass"],
|
|
209
|
+
"maxBytes": 12288
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"id": "paper-get-font-family-info",
|
|
214
|
+
"tool": "paper_get_font_family_info",
|
|
215
|
+
"mode": "fixture",
|
|
216
|
+
"safety": "read",
|
|
217
|
+
"input": {
|
|
218
|
+
"fileId": "file-fixture",
|
|
219
|
+
"family": "Inter",
|
|
220
|
+
"_fixture": {
|
|
221
|
+
"content": [
|
|
222
|
+
{
|
|
223
|
+
"type": "text",
|
|
224
|
+
"text": "{\"Inter\":{\"availableOnSystem\":true,\"availableOnGoogleFonts\":true,\"weights\":[400,500,600,700],\"styles\":[\"normal\",\"italic\"]}}"
|
|
225
|
+
}
|
|
226
|
+
]
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
"expect": {
|
|
230
|
+
"status": ["pass"],
|
|
231
|
+
"summaryIncludes": "Inter",
|
|
232
|
+
"maxBytes": 12288
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"id": "paper-get-guide",
|
|
237
|
+
"tool": "paper_get_guide",
|
|
238
|
+
"mode": "fixture",
|
|
239
|
+
"safety": "read",
|
|
240
|
+
"input": {
|
|
241
|
+
"fileId": "file-fixture",
|
|
242
|
+
"topic": "figma-import",
|
|
243
|
+
"_fixture": {
|
|
244
|
+
"content": [
|
|
245
|
+
{
|
|
246
|
+
"type": "text",
|
|
247
|
+
"text": "Figma import guide: 1) Open Figma file, 2) Select frames, 3) Use Paper import plugin, 4) Verify layers in Paper Desktop."
|
|
248
|
+
}
|
|
249
|
+
]
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
"expect": {
|
|
253
|
+
"status": ["pass"],
|
|
254
|
+
"summaryIncludes": "Figma import guide",
|
|
255
|
+
"maxBytes": 12288
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"id": "paper-find-placement",
|
|
260
|
+
"tool": "paper_find_placement",
|
|
261
|
+
"mode": "fixture",
|
|
262
|
+
"safety": "read",
|
|
263
|
+
"input": {
|
|
264
|
+
"fileId": "file-fixture",
|
|
265
|
+
"width": 1200,
|
|
266
|
+
"height": 800,
|
|
267
|
+
"_fixture": {
|
|
268
|
+
"content": [
|
|
269
|
+
{
|
|
270
|
+
"type": "text",
|
|
271
|
+
"text": "{\"x\":1240,\"y\":0,\"fits\":true}"
|
|
272
|
+
}
|
|
273
|
+
]
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
"expect": {
|
|
277
|
+
"status": ["pass"],
|
|
278
|
+
"summaryIncludes": "1240",
|
|
279
|
+
"maxBytes": 12288
|
|
280
|
+
}
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"id": "paper-create-artboard-dry-run",
|
|
284
|
+
"tool": "paper_create_artboard",
|
|
285
|
+
"mode": "dry-run",
|
|
286
|
+
"safety": "mutate",
|
|
287
|
+
"input": {
|
|
288
|
+
"name": "Fixture Artboard",
|
|
289
|
+
"styles": { "width": "1200px", "height": "800px" },
|
|
290
|
+
"dryRun": true
|
|
291
|
+
},
|
|
292
|
+
"expect": {
|
|
293
|
+
"status": ["pass"],
|
|
294
|
+
"summaryIncludes": "Dry run",
|
|
295
|
+
"maxBytes": 12288
|
|
296
|
+
}
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"id": "paper-write-html-dry-run",
|
|
300
|
+
"tool": "paper_write_html",
|
|
301
|
+
"mode": "dry-run",
|
|
302
|
+
"safety": "mutate",
|
|
303
|
+
"input": {
|
|
304
|
+
"fileId": "file-fixture",
|
|
305
|
+
"id": "hero",
|
|
306
|
+
"html": "\u003cdiv style='width:100px;height:40px;'\u003eHello\u003c/div\u003e",
|
|
307
|
+
"mode": "insert-children",
|
|
308
|
+
"dryRun": true
|
|
309
|
+
},
|
|
310
|
+
"expect": {
|
|
311
|
+
"status": ["pass"],
|
|
312
|
+
"summaryIncludes": "Dry run",
|
|
313
|
+
"maxBytes": 24576
|
|
314
|
+
}
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
"id": "paper-set-text-content-dry-run",
|
|
318
|
+
"tool": "paper_set_text_content",
|
|
319
|
+
"mode": "dry-run",
|
|
320
|
+
"safety": "mutate",
|
|
321
|
+
"input": {
|
|
322
|
+
"updates": [{ "id": "heading-1", "text": "Hello Fixture" }],
|
|
323
|
+
"dryRun": true
|
|
324
|
+
},
|
|
325
|
+
"expect": {
|
|
326
|
+
"status": ["pass"],
|
|
327
|
+
"summaryIncludes": "Dry run",
|
|
328
|
+
"maxBytes": 12288
|
|
329
|
+
}
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
"id": "paper-rename-nodes-dry-run",
|
|
333
|
+
"tool": "paper_rename_nodes",
|
|
334
|
+
"mode": "dry-run",
|
|
335
|
+
"safety": "mutate",
|
|
336
|
+
"input": {
|
|
337
|
+
"fileId": "file-fixture",
|
|
338
|
+
"updates": [{ "id": "btn-1", "name": "Primary CTA" }],
|
|
339
|
+
"dryRun": true
|
|
340
|
+
},
|
|
341
|
+
"expect": {
|
|
342
|
+
"status": ["pass"],
|
|
343
|
+
"summaryIncludes": "Dry run",
|
|
344
|
+
"maxBytes": 12288
|
|
345
|
+
}
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
"id": "paper-revise-artboard-dry-run",
|
|
349
|
+
"tool": "paper_revise_artboard",
|
|
350
|
+
"mode": "dry-run",
|
|
351
|
+
"safety": "mutate",
|
|
352
|
+
"input": {
|
|
353
|
+
"fileId": "file-fixture",
|
|
354
|
+
"id": "artboard-1",
|
|
355
|
+
"html": "<div style=\"display:flex;width:1200px;height:800px;background:#FFFFFF;color:#111111;\">Revised fixture</div>",
|
|
356
|
+
"dryRun": true
|
|
357
|
+
},
|
|
358
|
+
"expect": {
|
|
359
|
+
"status": ["pass"],
|
|
360
|
+
"summaryIncludes": "Dry run",
|
|
361
|
+
"maxBytes": 24576
|
|
362
|
+
}
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
"id": "paper-duplicate-nodes-dry-run",
|
|
366
|
+
"tool": "paper_duplicate_nodes",
|
|
367
|
+
"mode": "dry-run",
|
|
368
|
+
"safety": "mutate",
|
|
369
|
+
"input": {
|
|
370
|
+
"ids": ["btn-1"],
|
|
371
|
+
"dryRun": true
|
|
372
|
+
},
|
|
373
|
+
"expect": {
|
|
374
|
+
"status": ["pass"],
|
|
375
|
+
"summaryIncludes": "Dry run",
|
|
376
|
+
"maxBytes": 12288
|
|
377
|
+
}
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
"id": "paper-update-styles-dry-run",
|
|
381
|
+
"tool": "paper_update_styles",
|
|
382
|
+
"mode": "dry-run",
|
|
383
|
+
"safety": "mutate",
|
|
384
|
+
"input": {
|
|
385
|
+
"updates": [{ "id": "btn-1", "styles": { "backgroundColor": "#000000" } }],
|
|
386
|
+
"dryRun": true
|
|
387
|
+
},
|
|
388
|
+
"expect": {
|
|
389
|
+
"status": ["pass"],
|
|
390
|
+
"summaryIncludes": "Dry run",
|
|
391
|
+
"maxBytes": 12288
|
|
392
|
+
}
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
"id": "paper-delete-nodes-dry-run",
|
|
396
|
+
"tool": "paper_delete_nodes",
|
|
397
|
+
"mode": "dry-run",
|
|
398
|
+
"safety": "mutate",
|
|
399
|
+
"input": {
|
|
400
|
+
"fileId": "file-fixture",
|
|
401
|
+
"ids": ["temp-1"],
|
|
402
|
+
"dryRun": true
|
|
403
|
+
},
|
|
404
|
+
"expect": {
|
|
405
|
+
"status": ["pass"],
|
|
406
|
+
"summaryIncludes": "Dry run",
|
|
407
|
+
"maxBytes": 12288
|
|
408
|
+
}
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
"id": "paper-finish-working-on-nodes-dry-run",
|
|
412
|
+
"tool": "paper_finish_working_on_nodes",
|
|
413
|
+
"mode": "dry-run",
|
|
414
|
+
"safety": "mutate",
|
|
415
|
+
"input": {
|
|
416
|
+
"ids": ["hero"],
|
|
417
|
+
"dryRun": true
|
|
418
|
+
},
|
|
419
|
+
"expect": {
|
|
420
|
+
"status": ["pass"],
|
|
421
|
+
"summaryIncludes": "Dry run",
|
|
422
|
+
"maxBytes": 12288
|
|
423
|
+
}
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
"id": "paper-mcp-reachability-check",
|
|
427
|
+
"tool": "paper_mcp_reachability_check",
|
|
428
|
+
"mode": "fixture",
|
|
429
|
+
"safety": "read",
|
|
430
|
+
"input": { "fileId": "file-fixture" },
|
|
431
|
+
"expect": {
|
|
432
|
+
"status": ["pass", "warn"],
|
|
433
|
+
"summaryIncludes": "Paper Desktop",
|
|
434
|
+
"maxBytes": 12288
|
|
435
|
+
}
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
"id": "paper-style-tokens-extract",
|
|
439
|
+
"tool": "paper_style_tokens_extract",
|
|
440
|
+
"mode": "dry-run",
|
|
441
|
+
"safety": "read",
|
|
442
|
+
"input": {
|
|
443
|
+
"fileId": "file-fixture",
|
|
444
|
+
"ids": ["btn-1"],
|
|
445
|
+
"outputPath": ".paper/tokens-fixture.json",
|
|
446
|
+
"dryRun": true
|
|
447
|
+
},
|
|
448
|
+
"expect": {
|
|
449
|
+
"status": ["pass", "warn"],
|
|
450
|
+
"summaryIncludes": "Dry run",
|
|
451
|
+
"maxBytes": 24576
|
|
452
|
+
}
|
|
453
|
+
},
|
|
454
|
+
{
|
|
455
|
+
"id": "paper-materialize-system-direction-dry-run",
|
|
456
|
+
"tool": "paper_materialize_system_direction",
|
|
457
|
+
"mode": "dry-run",
|
|
458
|
+
"safety": "mutate",
|
|
459
|
+
"input": {
|
|
460
|
+
"fileId": "file-fixture",
|
|
461
|
+
"name": "Fixture System Direction",
|
|
462
|
+
"width": 1440,
|
|
463
|
+
"height": 1200,
|
|
464
|
+
"html": "<div style=\"display:flex;width:1440px;height:1200px;background:#F3F0E8;color:#191919;\">System direction</div>",
|
|
465
|
+
"dryRun": true
|
|
466
|
+
},
|
|
467
|
+
"expect": {
|
|
468
|
+
"status": ["pass"],
|
|
469
|
+
"summaryIncludes": "Dry run",
|
|
470
|
+
"maxBytes": 24576
|
|
471
|
+
}
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
"id": "paper-find-nodes",
|
|
475
|
+
"tool": "paper_find_nodes",
|
|
476
|
+
"mode": "fixture",
|
|
477
|
+
"safety": "read",
|
|
478
|
+
"input": {
|
|
479
|
+
"fileId": "file-fixture",
|
|
480
|
+
"scopeId": "hero",
|
|
481
|
+
"textValue": "Submit",
|
|
482
|
+
"_fixture": {
|
|
483
|
+
"content": [{ "type": "text", "text": "{\"count\":1,\"nodes\":[{\"id\":\"btn-1\"}]}" }]
|
|
484
|
+
}
|
|
485
|
+
},
|
|
486
|
+
"expect": { "status": ["pass"], "summaryIncludes": "btn-1", "maxBytes": 12288 }
|
|
487
|
+
},
|
|
488
|
+
{
|
|
489
|
+
"id": "paper-get-tokens",
|
|
490
|
+
"tool": "paper_get_tokens",
|
|
491
|
+
"mode": "fixture",
|
|
492
|
+
"safety": "read",
|
|
493
|
+
"input": {
|
|
494
|
+
"fileId": "file-fixture",
|
|
495
|
+
"format": "json",
|
|
496
|
+
"_fixture": {
|
|
497
|
+
"content": [{ "type": "text", "text": "[{\"name\":\"--color-brand\",\"type\":\"color\",\"value\":\"#ff0000\"}]" }]
|
|
498
|
+
}
|
|
499
|
+
},
|
|
500
|
+
"expect": { "status": ["pass"], "summaryIncludes": "--color-brand", "maxBytes": 24576 }
|
|
501
|
+
},
|
|
502
|
+
{
|
|
503
|
+
"id": "paper-create-tokens-dry-run",
|
|
504
|
+
"tool": "paper_create_tokens",
|
|
505
|
+
"mode": "dry-run",
|
|
506
|
+
"safety": "mutate",
|
|
507
|
+
"input": {
|
|
508
|
+
"fileId": "file-fixture",
|
|
509
|
+
"tokens": [{ "type": "color", "name": "--color-brand", "value": "#ff0000" }],
|
|
510
|
+
"dryRun": true
|
|
511
|
+
},
|
|
512
|
+
"expect": { "status": ["pass"], "summaryIncludes": "Dry run", "maxBytes": 24576 }
|
|
513
|
+
},
|
|
514
|
+
{
|
|
515
|
+
"id": "paper-set-tokens-dry-run",
|
|
516
|
+
"tool": "paper_set_tokens",
|
|
517
|
+
"mode": "dry-run",
|
|
518
|
+
"safety": "mutate",
|
|
519
|
+
"input": {
|
|
520
|
+
"fileId": "file-fixture",
|
|
521
|
+
"tokens": [{ "name": "--color-brand", "value": "#cc0000" }],
|
|
522
|
+
"dryRun": true
|
|
523
|
+
},
|
|
524
|
+
"expect": { "status": ["pass"], "summaryIncludes": "Dry run", "maxBytes": 24576 }
|
|
525
|
+
},
|
|
526
|
+
{
|
|
527
|
+
"id": "paper-move-nodes-dry-run",
|
|
528
|
+
"tool": "paper_move_nodes",
|
|
529
|
+
"mode": "dry-run",
|
|
530
|
+
"safety": "mutate",
|
|
531
|
+
"input": {
|
|
532
|
+
"fileId": "file-fixture",
|
|
533
|
+
"moves": [{ "nodeId": "hero", "parentId": "root_node_page-2" }],
|
|
534
|
+
"dryRun": true
|
|
535
|
+
},
|
|
536
|
+
"expect": { "status": ["pass"], "summaryIncludes": "Dry run", "maxBytes": 24576 }
|
|
537
|
+
},
|
|
538
|
+
{
|
|
539
|
+
"id": "paper-capture-provenance",
|
|
540
|
+
"tool": "paper_capture_provenance",
|
|
541
|
+
"mode": "fixture",
|
|
542
|
+
"safety": "read",
|
|
543
|
+
"input": {
|
|
544
|
+
"fileId": "file-fixture",
|
|
545
|
+
"sourceUrl": "https://example.com/settings/general",
|
|
546
|
+
"route": "/settings/general",
|
|
547
|
+
"viewport": { "width": 1440, "height": 900 },
|
|
548
|
+
"theme": "dark",
|
|
549
|
+
"capturedAt": "2026-08-25T03:00:00.000Z"
|
|
550
|
+
},
|
|
551
|
+
"expect": { "status": ["pass"], "summaryIncludes": "settings-general", "maxBytes": 12288 }
|
|
552
|
+
},
|
|
553
|
+
{
|
|
554
|
+
"id": "paper-create-page",
|
|
555
|
+
"tool": "paper_create_page",
|
|
556
|
+
"mode": "fixture",
|
|
557
|
+
"safety": "mutate",
|
|
558
|
+
"input": {
|
|
559
|
+
"fileId": "file-fixture",
|
|
560
|
+
"name": "Fixture Canon"
|
|
561
|
+
},
|
|
562
|
+
"expect": {
|
|
563
|
+
"status": ["pass"],
|
|
564
|
+
"summaryIncludes": "Fixture Canon",
|
|
565
|
+
"maxBytes": 4096
|
|
566
|
+
}
|
|
567
|
+
},
|
|
568
|
+
{
|
|
569
|
+
"id": "paper-open-page",
|
|
570
|
+
"tool": "paper_open_page",
|
|
571
|
+
"mode": "fixture",
|
|
572
|
+
"safety": "mutate",
|
|
573
|
+
"input": {
|
|
574
|
+
"fileId": "file-fixture",
|
|
575
|
+
"pageId": "2-0"
|
|
576
|
+
},
|
|
577
|
+
"expect": {
|
|
578
|
+
"status": ["pass"],
|
|
579
|
+
"summaryIncludes": "2-0",
|
|
580
|
+
"maxBytes": 4096
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
]
|
|
584
|
+
}
|