@pixerate/editor 0.223.5 → 0.223.7

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 (23) hide show
  1. package/dist/tools/skill-evals.d.cts +26 -1
  2. package/dist/tools/skill-evals.d.ts +26 -1
  3. package/package.json +1 -1
  4. package/skills/README.md +7 -1
  5. package/skills/pixerate-animation-editor/SKILL.md +8 -0
  6. package/skills/pixerate-animation-logo-reveal/SKILL.md +103 -0
  7. package/skills/pixerate-animation-logo-reveal/evals/draw-then-word.json +77 -0
  8. package/skills/pixerate-animation-logo-reveal/evals/hold-the-end.json +76 -0
  9. package/skills/pixerate-animation-logo-reveal/evals/on-the-beat.json +106 -0
  10. package/skills/pixerate-animation-motion-graphics/SKILL.md +100 -0
  11. package/skills/pixerate-animation-motion-graphics/evals/fit-length.json +109 -0
  12. package/skills/pixerate-animation-motion-graphics/evals/natural-easing.json +96 -0
  13. package/skills/pixerate-animation-motion-graphics/evals/staggered-entrance.json +69 -0
  14. package/skills/pixerate-effect-authoring/SKILL.md +7 -0
  15. package/skills/pixerate-effect-look-development/SKILL.md +96 -0
  16. package/skills/pixerate-effect-look-development/evals/fade-in.json +55 -0
  17. package/skills/pixerate-effect-look-development/evals/seamless-loop.json +66 -0
  18. package/skills/pixerate-effect-look-development/evals/subtle-preset.json +49 -0
  19. package/skills/pixerate-generation/SKILL.md +7 -0
  20. package/skills/pixerate-generation-budgeted-batch/SKILL.md +99 -0
  21. package/skills/pixerate-generation-budgeted-batch/evals/drafts-within-budget.json +101 -0
  22. package/skills/pixerate-generation-budgeted-batch/evals/right-model-for-format.json +124 -0
  23. package/skills/pixerate-generation-budgeted-batch/evals/vary-earlier.json +101 -0
@@ -0,0 +1,101 @@
1
+ {
2
+ "prompt": "We need four draft options for a poster of a red fox in snow, in one request, and we can spend at most $1. Final quality can come later.",
3
+ "fixture": {
4
+ "editor": "generation",
5
+ "models": [
6
+ {
7
+ "id": "wide-2",
8
+ "name": "Wide Two",
9
+ "media": "image",
10
+ "aspectRatios": {
11
+ "options": [
12
+ "1:1",
13
+ "16:9",
14
+ "9:16"
15
+ ],
16
+ "default": "1:1"
17
+ },
18
+ "quality": {
19
+ "options": [
20
+ "low",
21
+ "high"
22
+ ],
23
+ "default": "high"
24
+ },
25
+ "count": {
26
+ "min": 1,
27
+ "max": 4
28
+ },
29
+ "seed": {
30
+ "min": 0,
31
+ "max": 99999
32
+ }
33
+ }
34
+ ],
35
+ "prices": {
36
+ "low": 0.05,
37
+ "high": 0.4
38
+ }
39
+ },
40
+ "checks": [
41
+ {
42
+ "why": "one request",
43
+ "tool": "list_generations",
44
+ "expect": {
45
+ "total": 1
46
+ }
47
+ },
48
+ {
49
+ "why": "four drafts at low quality: 4 \u00d7 $0.05, within the $1 budget (high would be $1.60)",
50
+ "tool": "get_generation",
51
+ "args": {
52
+ "id": {
53
+ "$read": "list_generations",
54
+ "path": "records.0.id"
55
+ }
56
+ },
57
+ "expect": {
58
+ "$expr": "(() => { const s = JSON.stringify(v); return /\"count\":4/.test(s) && /\"quality\":\"low\"/.test(s); })()"
59
+ }
60
+ }
61
+ ],
62
+ "solution": [
63
+ {
64
+ "tool": "estimate_generation",
65
+ "args": {
66
+ "model": "wide-2",
67
+ "request": {
68
+ "prompt": "A red fox in snow, poster composition",
69
+ "count": 4,
70
+ "quality": "high",
71
+ "aspectRatio": "9:16"
72
+ }
73
+ }
74
+ },
75
+ {
76
+ "tool": "estimate_generation",
77
+ "args": {
78
+ "model": "wide-2",
79
+ "request": {
80
+ "prompt": "A red fox in snow, poster composition",
81
+ "count": 4,
82
+ "quality": "low",
83
+ "aspectRatio": "9:16"
84
+ }
85
+ }
86
+ },
87
+ {
88
+ "tool": "generate",
89
+ "args": {
90
+ "model": "wide-2",
91
+ "request": {
92
+ "prompt": "A red fox in snow, poster composition",
93
+ "count": 4,
94
+ "quality": "low",
95
+ "aspectRatio": "9:16"
96
+ },
97
+ "idempotencyKey": "fox-poster-drafts-1"
98
+ }
99
+ }
100
+ ]
101
+ }
@@ -0,0 +1,124 @@
1
+ {
2
+ "prompt": "Generate one 16:9 banner image of a lighthouse at dusk for the website header.",
3
+ "fixture": {
4
+ "editor": "generation",
5
+ "models": [
6
+ {
7
+ "id": "square-1",
8
+ "name": "Square One",
9
+ "media": "image",
10
+ "aspectRatios": {
11
+ "options": [
12
+ "1:1"
13
+ ],
14
+ "default": "1:1"
15
+ },
16
+ "quality": {
17
+ "options": [
18
+ "low",
19
+ "high"
20
+ ],
21
+ "default": "high"
22
+ },
23
+ "count": {
24
+ "min": 1,
25
+ "max": 4
26
+ }
27
+ },
28
+ {
29
+ "id": "wide-2",
30
+ "name": "Wide Two",
31
+ "media": "image",
32
+ "aspectRatios": {
33
+ "options": [
34
+ "1:1",
35
+ "16:9",
36
+ "9:16"
37
+ ],
38
+ "default": "1:1"
39
+ },
40
+ "quality": {
41
+ "options": [
42
+ "low",
43
+ "high"
44
+ ],
45
+ "default": "high"
46
+ },
47
+ "count": {
48
+ "min": 1,
49
+ "max": 4
50
+ },
51
+ "seed": {
52
+ "min": 0,
53
+ "max": 99999
54
+ }
55
+ }
56
+ ],
57
+ "prices": {
58
+ "low": 0.05,
59
+ "high": 0.25
60
+ }
61
+ },
62
+ "checks": [
63
+ {
64
+ "why": "exactly one generation",
65
+ "tool": "list_generations",
66
+ "expect": {
67
+ "total": 1
68
+ }
69
+ },
70
+ {
71
+ "why": "on a model that supports 16:9, at 16:9",
72
+ "tool": "get_generation",
73
+ "args": {
74
+ "id": {
75
+ "$read": "list_generations",
76
+ "path": "records.0.id"
77
+ }
78
+ },
79
+ "expect": {
80
+ "$expr": "JSON.stringify(v).includes('\"aspectRatio\":\"16:9\"') && JSON.stringify(v).includes('wide-2')"
81
+ }
82
+ }
83
+ ],
84
+ "solution": [
85
+ {
86
+ "tool": "list_models"
87
+ },
88
+ {
89
+ "tool": "plan_generation",
90
+ "args": {
91
+ "model": "wide-2",
92
+ "request": {
93
+ "prompt": "A lighthouse at dusk, wide banner composition, warm sky",
94
+ "aspectRatio": "16:9",
95
+ "count": 1
96
+ }
97
+ }
98
+ },
99
+ {
100
+ "tool": "estimate_generation",
101
+ "args": {
102
+ "model": "wide-2",
103
+ "request": {
104
+ "prompt": "A lighthouse at dusk, wide banner composition, warm sky",
105
+ "aspectRatio": "16:9",
106
+ "count": 1
107
+ }
108
+ }
109
+ },
110
+ {
111
+ "tool": "generate",
112
+ "args": {
113
+ "model": "wide-2",
114
+ "request": {
115
+ "prompt": "A lighthouse at dusk, wide banner composition, warm sky",
116
+ "aspectRatio": "16:9",
117
+ "count": 1
118
+ },
119
+ "strategy": "error",
120
+ "idempotencyKey": "banner-lighthouse-1"
121
+ }
122
+ }
123
+ ]
124
+ }
@@ -0,0 +1,101 @@
1
+ {
2
+ "prompt": "Make that last fox image again, the same picture but wide (16:9) for a slide.",
3
+ "fixture": {
4
+ "editor": "generation",
5
+ "models": [
6
+ {
7
+ "id": "wide-2",
8
+ "name": "Wide Two",
9
+ "media": "image",
10
+ "aspectRatios": {
11
+ "options": [
12
+ "1:1",
13
+ "16:9",
14
+ "9:16"
15
+ ],
16
+ "default": "1:1"
17
+ },
18
+ "quality": {
19
+ "options": [
20
+ "low",
21
+ "high"
22
+ ],
23
+ "default": "high"
24
+ },
25
+ "count": {
26
+ "min": 1,
27
+ "max": 4
28
+ },
29
+ "seed": {
30
+ "min": 0,
31
+ "max": 99999
32
+ }
33
+ }
34
+ ],
35
+ "prices": {
36
+ "low": 0.05,
37
+ "high": 0.25
38
+ },
39
+ "history": [
40
+ {
41
+ "id": "fox-1",
42
+ "model": "wide-2",
43
+ "request": {
44
+ "prompt": "A red fox in snow",
45
+ "aspectRatio": "1:1",
46
+ "seed": 4242,
47
+ "quality": "high"
48
+ }
49
+ }
50
+ ]
51
+ },
52
+ "checks": [
53
+ {
54
+ "why": "one new generation",
55
+ "tool": "list_generations",
56
+ "expect": {
57
+ "total": 2
58
+ }
59
+ },
60
+ {
61
+ "why": "the same prompt and seed, now 16:9",
62
+ "tool": "get_generation",
63
+ "args": {
64
+ "id": {
65
+ "$read": "list_generations",
66
+ "path": "records.0.id"
67
+ }
68
+ },
69
+ "expect": {
70
+ "$expr": "(() => { const s = JSON.stringify(v); return s.includes('A red fox in snow') && /\"seed\":4242/.test(s) && s.includes('\"aspectRatio\":\"16:9\"'); })()"
71
+ }
72
+ }
73
+ ],
74
+ "solution": [
75
+ {
76
+ "tool": "list_generations"
77
+ },
78
+ {
79
+ "tool": "vary_generation",
80
+ "args": {
81
+ "id": "fox-1",
82
+ "settings": {
83
+ "aspectRatio": "16:9"
84
+ }
85
+ }
86
+ },
87
+ {
88
+ "tool": "generate",
89
+ "args": {
90
+ "model": "wide-2",
91
+ "request": {
92
+ "prompt": "A red fox in snow",
93
+ "aspectRatio": "16:9",
94
+ "seed": 4242,
95
+ "quality": "high"
96
+ },
97
+ "idempotencyKey": "fox-wide-1"
98
+ }
99
+ }
100
+ ]
101
+ }