@pixerate/editor 0.223.2 → 0.223.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/dist/tools/skill-evals.d.cts +6 -1
- package/dist/tools/skill-evals.d.ts +6 -1
- package/package.json +1 -1
- package/skills/README.md +6 -1
- package/skills/pixerate-diagram/SKILL.md +8 -0
- package/skills/pixerate-diagram-architecture/SKILL.md +104 -0
- package/skills/pixerate-diagram-architecture/evals/label-protocols.json +62 -0
- package/skills/pixerate-diagram-architecture/evals/trust-boundaries.json +64 -0
- package/skills/pixerate-diagram-architecture/evals/web-app.json +56 -0
- package/skills/pixerate-diagram-process-flow/SKILL.md +99 -0
- package/skills/pixerate-diagram-process-flow/evals/order-process.json +73 -0
- package/skills/pixerate-diagram-process-flow/evals/swimlanes.json +74 -0
- package/skills/pixerate-diagram-process-flow/evals/tidy-decision.json +76 -0
- package/skills/pixerate-image-photo-correction/evals/neutralise-cast.json +2 -2
- package/skills/pixerate-image-product-photo/evals/grounding-shadow.json +1 -1
- package/skills/pixerate-rich-text/SKILL.md +8 -0
- package/skills/pixerate-rich-text-report/SKILL.md +98 -0
- package/skills/pixerate-rich-text-report/evals/heading-case.json +48 -0
- package/skills/pixerate-rich-text-report/evals/results-table.json +93 -0
- package/skills/pixerate-rich-text-report/evals/structure.json +106 -0
- package/skills/pixerate-rich-text-revise/SKILL.md +92 -0
- package/skills/pixerate-rich-text-revise/evals/fix-typos.json +57 -0
- package/skills/pixerate-rich-text-revise/evals/rename-term.json +51 -0
- package/skills/pixerate-rich-text-revise/evals/tighten-intro.json +55 -0
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"prompt": "The introduction (the first paragraph) rambles. Cut it down to one clear sentence that keeps its point, and don't touch the rest.",
|
|
3
|
+
"fixture": {
|
|
4
|
+
"editor": "rich-text",
|
|
5
|
+
"html": "<p>This report, which we have put together over the last few weeks, looks at our sales. It covers every region. It is meant to help us plan next year, which is important.</p><p>North led with 120 orders.</p><p>South followed with 95.</p>"
|
|
6
|
+
},
|
|
7
|
+
"checks": [
|
|
8
|
+
{
|
|
9
|
+
"why": "the introduction is one sentence about sales and planning",
|
|
10
|
+
"tool": "get_text",
|
|
11
|
+
"args": {
|
|
12
|
+
"blocks": true
|
|
13
|
+
},
|
|
14
|
+
"expect": {
|
|
15
|
+
"blocks": {
|
|
16
|
+
"$expr": "(() => { const t = v[0].text.trim(); return (t.match(/[.!?](\\s|$)/g) || []).length === 1 && t.length < 120 && /sales/i.test(t) && /plan/i.test(t); })()"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"why": "the rest is unchanged",
|
|
22
|
+
"tool": "get_text",
|
|
23
|
+
"args": {
|
|
24
|
+
"blocks": true
|
|
25
|
+
},
|
|
26
|
+
"expect": {
|
|
27
|
+
"blocks": {
|
|
28
|
+
"$expr": "v.length === 3 && v[1].text === 'North led with 120 orders.' && v[2].text === 'South followed with 95.'"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
],
|
|
33
|
+
"solution": [
|
|
34
|
+
{
|
|
35
|
+
"tool": "get_text",
|
|
36
|
+
"args": {
|
|
37
|
+
"blocks": true
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"tool": "replace_range",
|
|
42
|
+
"args": {
|
|
43
|
+
"from": 1,
|
|
44
|
+
"to": {
|
|
45
|
+
"$read": "get_text",
|
|
46
|
+
"args": {
|
|
47
|
+
"blocks": true
|
|
48
|
+
},
|
|
49
|
+
"path": "blocks.0.to"
|
|
50
|
+
},
|
|
51
|
+
"text": "This report reviews sales in every region to help us plan next year."
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
]
|
|
55
|
+
}
|