@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.
Files changed (24) hide show
  1. package/dist/tools/skill-evals.d.cts +6 -1
  2. package/dist/tools/skill-evals.d.ts +6 -1
  3. package/package.json +1 -1
  4. package/skills/README.md +6 -1
  5. package/skills/pixerate-diagram/SKILL.md +8 -0
  6. package/skills/pixerate-diagram-architecture/SKILL.md +104 -0
  7. package/skills/pixerate-diagram-architecture/evals/label-protocols.json +62 -0
  8. package/skills/pixerate-diagram-architecture/evals/trust-boundaries.json +64 -0
  9. package/skills/pixerate-diagram-architecture/evals/web-app.json +56 -0
  10. package/skills/pixerate-diagram-process-flow/SKILL.md +99 -0
  11. package/skills/pixerate-diagram-process-flow/evals/order-process.json +73 -0
  12. package/skills/pixerate-diagram-process-flow/evals/swimlanes.json +74 -0
  13. package/skills/pixerate-diagram-process-flow/evals/tidy-decision.json +76 -0
  14. package/skills/pixerate-image-photo-correction/evals/neutralise-cast.json +2 -2
  15. package/skills/pixerate-image-product-photo/evals/grounding-shadow.json +1 -1
  16. package/skills/pixerate-rich-text/SKILL.md +8 -0
  17. package/skills/pixerate-rich-text-report/SKILL.md +98 -0
  18. package/skills/pixerate-rich-text-report/evals/heading-case.json +48 -0
  19. package/skills/pixerate-rich-text-report/evals/results-table.json +93 -0
  20. package/skills/pixerate-rich-text-report/evals/structure.json +106 -0
  21. package/skills/pixerate-rich-text-revise/SKILL.md +92 -0
  22. package/skills/pixerate-rich-text-revise/evals/fix-typos.json +57 -0
  23. package/skills/pixerate-rich-text-revise/evals/rename-term.json +51 -0
  24. 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
+ }