agent-screenplay 0.1.1 → 0.1.3
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/README.md +28 -6
- package/assets/editor/index.html +25 -7
- package/dist/cli.js +2 -1
- package/dist/cli.js.map +1 -1
- package/dist/core.js +2 -14
- package/dist/core.js.map +1 -1
- package/dist/direct/plan.d.ts +2 -0
- package/dist/direct/plan.js +8 -0
- package/dist/direct/plan.js.map +1 -1
- package/dist/drivers/browser.d.ts +14 -0
- package/dist/drivers/browser.js +39 -1
- package/dist/drivers/browser.js.map +1 -1
- package/dist/drivers/web.d.ts +5 -0
- package/dist/drivers/web.js +68 -6
- package/dist/drivers/web.js.map +1 -1
- package/dist/editor/server.d.ts +18 -3
- package/dist/editor/server.js +27 -4
- package/dist/editor/server.js.map +1 -1
- package/dist/login.d.ts +9 -1
- package/dist/login.js +62 -29
- package/dist/login.js.map +1 -1
- package/dist/mcp/server.js +13 -3
- package/dist/mcp/server.js.map +1 -1
- package/dist/render/compose.d.ts +6 -2
- package/dist/render/compose.js +126 -18
- package/dist/render/compose.js.map +1 -1
- package/dist/render/presets.d.ts +20 -3
- package/dist/render/presets.js +30 -3
- package/dist/render/presets.js.map +1 -1
- package/dist/render/render.d.ts +5 -0
- package/dist/render/render.js +22 -4
- package/dist/render/render.js.map +1 -1
- package/dist/render/style.d.ts +12 -2
- package/dist/render/style.js +80 -3
- package/dist/render/style.js.map +1 -1
- package/dist/scenario/config.d.ts +9 -0
- package/dist/scenario/fingerprint.js +2 -2
- package/dist/scenario/fingerprint.js.map +1 -1
- package/dist/scenario/schema.d.ts +59 -3
- package/dist/scenario/schema.js +33 -9
- package/dist/scenario/schema.js.map +1 -1
- package/dist/scenario/target.js +2 -1
- package/dist/scenario/target.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/voice/audio.d.ts +6 -0
- package/dist/voice/audio.js +36 -0
- package/dist/voice/audio.js.map +1 -0
- package/dist/voice/cartesia.d.ts +5 -0
- package/dist/voice/cartesia.js +17 -6
- package/dist/voice/cartesia.js.map +1 -1
- package/dist/voice/elevenlabs.d.ts +8 -0
- package/dist/voice/elevenlabs.js +29 -0
- package/dist/voice/elevenlabs.js.map +1 -0
- package/dist/voice/narration.d.ts +16 -0
- package/dist/voice/narration.js +83 -0
- package/dist/voice/narration.js.map +1 -0
- package/package.json +1 -1
- package/schema/scenario.schema.json +90 -6
- package/skills/screenplay/SKILL.md +20 -11
package/dist/render/style.js
CHANGED
|
@@ -2,7 +2,7 @@ import fs from "node:fs";
|
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
import { fileURLToPath } from "node:url";
|
|
4
4
|
import { GlobalFonts, createCanvas, loadImage } from "@napi-rs/canvas";
|
|
5
|
-
import { ALL_PRESETS, DEFAULT_BACKGROUND, NOISE_TILE, noiseValues } from "./presets.js";
|
|
5
|
+
import { ALL_PRESETS, DEFAULT_BACKGROUND, NOISE_TILE, noiseValues, seeded } from "./presets.js";
|
|
6
6
|
/** @deprecated kept for imports; see presets.ts. */
|
|
7
7
|
export const PRESETS = ALL_PRESETS;
|
|
8
8
|
export async function resolveStyle(style, baseDir) {
|
|
@@ -16,7 +16,12 @@ export async function resolveStyle(style, baseDir) {
|
|
|
16
16
|
}
|
|
17
17
|
else if (ALL_PRESETS[bg]) {
|
|
18
18
|
const p = ALL_PRESETS[bg];
|
|
19
|
-
background =
|
|
19
|
+
background =
|
|
20
|
+
p.kind === "mesh"
|
|
21
|
+
? { kind: "mesh", base: p.base, blobs: p.blobs, grain: p.grain }
|
|
22
|
+
: p.kind === "glow"
|
|
23
|
+
? { kind: "glow", preset: p }
|
|
24
|
+
: { kind: "gradient", stops: p.stops, angle: p.angle };
|
|
20
25
|
dark = p.dark;
|
|
21
26
|
}
|
|
22
27
|
else if (/^(#|rgb|hsl)/i.test(bg)) {
|
|
@@ -36,13 +41,15 @@ export async function resolveStyle(style, baseDir) {
|
|
|
36
41
|
padding: s.padding ?? 72,
|
|
37
42
|
radius: s.radius ?? 14,
|
|
38
43
|
shadow: s.shadow ?? true,
|
|
39
|
-
cursor: s.cursor ?? "
|
|
44
|
+
cursor: s.cursor ?? "arrow",
|
|
45
|
+
click: s.click ?? "ripple",
|
|
40
46
|
cursorSize: s.cursorSize ?? 1,
|
|
41
47
|
maxZoom: s.maxZoom ?? 1.9,
|
|
42
48
|
autoZoom: s.autoZoom ?? true,
|
|
43
49
|
captions: s.captions ?? true,
|
|
44
50
|
accent: s.accent ?? "#3b82f6",
|
|
45
51
|
frame: s.frame ?? "none",
|
|
52
|
+
cards: s.cards ?? false,
|
|
46
53
|
};
|
|
47
54
|
}
|
|
48
55
|
export function isDarkColor(c) {
|
|
@@ -64,6 +71,10 @@ export function paintBackground(ctx, bg, w, h) {
|
|
|
64
71
|
paintMesh(ctx, bg, w, h);
|
|
65
72
|
return;
|
|
66
73
|
}
|
|
74
|
+
if (bg.kind === "glow") {
|
|
75
|
+
ctx.drawImage(glowImage(bg.preset, w, h), 0, 0);
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
67
78
|
if (bg.kind === "image") {
|
|
68
79
|
const img = bg.image;
|
|
69
80
|
const k = Math.max(w / img.width, h / img.height);
|
|
@@ -87,6 +98,72 @@ export function paintBackground(ctx, bg, w, h) {
|
|
|
87
98
|
ctx.fillStyle = glow;
|
|
88
99
|
ctx.fillRect(0, 0, w, h);
|
|
89
100
|
}
|
|
101
|
+
/**
|
|
102
|
+
* A glow preset as an image: drawn small (soft by nature), then enlarged and grained. The style
|
|
103
|
+
* editor shows the same images, made by this function on its server.
|
|
104
|
+
*/
|
|
105
|
+
export function glowImage(p, W, H) {
|
|
106
|
+
const r = seeded(p.seed);
|
|
107
|
+
const w = 480;
|
|
108
|
+
const h = Math.max(1, Math.round((480 * H) / W));
|
|
109
|
+
const c = createCanvas(w, h);
|
|
110
|
+
const x = c.getContext("2d");
|
|
111
|
+
x.fillStyle = p.base;
|
|
112
|
+
x.fillRect(0, 0, w, h);
|
|
113
|
+
// Broad color fields.
|
|
114
|
+
x.filter = `blur(${w * 0.08}px)`;
|
|
115
|
+
for (let i = 0; i < 6; i++) {
|
|
116
|
+
x.fillStyle = p.palette[i % p.palette.length];
|
|
117
|
+
x.globalAlpha = 0.7 + r() * 0.3;
|
|
118
|
+
x.beginPath();
|
|
119
|
+
x.ellipse(r() * w, r() * h, w * (0.18 + r() * 0.35), h * (0.18 + r() * 0.4), r() * Math.PI, 0, Math.PI * 2);
|
|
120
|
+
x.fill();
|
|
121
|
+
}
|
|
122
|
+
// Long soft bands of light along one angle, like light smeared through glass.
|
|
123
|
+
const s = createCanvas(w, h);
|
|
124
|
+
const sx = s.getContext("2d");
|
|
125
|
+
sx.translate(w / 2, h / 2);
|
|
126
|
+
sx.rotate((p.angle * Math.PI) / 180);
|
|
127
|
+
sx.filter = `blur(${w * 0.022}px)`;
|
|
128
|
+
for (let i = 0; i < 9; i++) {
|
|
129
|
+
sx.fillStyle = p.palette[Math.floor(r() * p.palette.length)];
|
|
130
|
+
sx.globalAlpha = 0.25 + r() * 0.45;
|
|
131
|
+
const y = (r() - 0.5) * h * 1.6;
|
|
132
|
+
const len = w * (0.7 + r() * 1.0);
|
|
133
|
+
const th = h * (0.03 + r() * 0.1);
|
|
134
|
+
sx.beginPath();
|
|
135
|
+
sx.ellipse((r() - 0.5) * w, y, len / 2, th, 0, 0, Math.PI * 2);
|
|
136
|
+
sx.fill();
|
|
137
|
+
}
|
|
138
|
+
x.filter = `blur(${w * 0.006}px)`;
|
|
139
|
+
x.globalAlpha = 0.9;
|
|
140
|
+
x.globalCompositeOperation = "soft-light";
|
|
141
|
+
x.drawImage(s, 0, 0);
|
|
142
|
+
x.globalCompositeOperation = "source-over";
|
|
143
|
+
x.globalAlpha = 0.45;
|
|
144
|
+
x.drawImage(s, 0, 0);
|
|
145
|
+
x.globalAlpha = 1;
|
|
146
|
+
x.filter = "none";
|
|
147
|
+
const out = createCanvas(W, H);
|
|
148
|
+
const o = out.getContext("2d");
|
|
149
|
+
o.imageSmoothingEnabled = true;
|
|
150
|
+
o.imageSmoothingQuality = "high";
|
|
151
|
+
o.filter = `blur(${W * 0.004}px)`;
|
|
152
|
+
// Slightly larger than the frame, so the blur leaves no pale edge.
|
|
153
|
+
o.drawImage(c, -W * 0.02, -H * 0.02, W * 1.04, H * 1.04);
|
|
154
|
+
o.filter = "none";
|
|
155
|
+
const img = o.getImageData(0, 0, W, H);
|
|
156
|
+
const d = img.data;
|
|
157
|
+
const g = seeded(7);
|
|
158
|
+
for (let i = 0; i < d.length; i += 4) {
|
|
159
|
+
const n = (g() - 0.5) * 9;
|
|
160
|
+
d[i] += n;
|
|
161
|
+
d[i + 1] += n;
|
|
162
|
+
d[i + 2] += n;
|
|
163
|
+
}
|
|
164
|
+
o.putImageData(img, 0, 0);
|
|
165
|
+
return out;
|
|
166
|
+
}
|
|
90
167
|
/** Color fields over a base color, then grain. The editor's preview draws the same thing in CSS. */
|
|
91
168
|
function paintMesh(ctx, bg, w, h) {
|
|
92
169
|
ctx.fillStyle = bg.base;
|
package/dist/render/style.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"style.js","sourceRoot":"","sources":["../../src/render/style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,YAAY,EAAsB,SAAS,EAAc,MAAM,iBAAiB,CAAC;AAEvG,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,UAAU,EAAE,WAAW,EAAa,MAAM,cAAc,CAAC;AAEnG,oDAAoD;AACpD,MAAM,CAAC,MAAM,OAAO,GAAG,WAAW,CAAC;AAqBnC,MAAM,CAAC,KAAK,UAAU,YAAY,CAAC,KAAwB,EAAE,OAAe;IAC1E,MAAM,CAAC,GAAG,KAAK,IAAI,EAAE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AC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IAClD,IAAI,OAAO;QAAE,GAAG,CAAC,SAAS,EAAE,CAAC;IAC7B,GAAG,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,CAAC;IACtB,GAAG,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,CAAC;IACtC,GAAG,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,CAAC;IACtC,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IAC9B,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IAC9B,GAAG,CAAC,SAAS,EAAE,CAAC;AAClB,CAAC"}
|
|
@@ -17,11 +17,19 @@ export declare const ProjectConfig: z.ZodObject<{
|
|
|
17
17
|
radius: z.ZodOptional<z.ZodNumber>;
|
|
18
18
|
shadow: z.ZodOptional<z.ZodBoolean>;
|
|
19
19
|
cursor: z.ZodOptional<z.ZodEnum<{
|
|
20
|
+
arrow: "arrow";
|
|
20
21
|
dot: "dot";
|
|
21
22
|
macos: "macos";
|
|
22
23
|
none: "none";
|
|
23
24
|
}>>;
|
|
24
25
|
cursorSize: z.ZodOptional<z.ZodNumber>;
|
|
26
|
+
click: z.ZodOptional<z.ZodEnum<{
|
|
27
|
+
confetti: "confetti";
|
|
28
|
+
none: "none";
|
|
29
|
+
rays: "rays";
|
|
30
|
+
ripple: "ripple";
|
|
31
|
+
sparkle: "sparkle";
|
|
32
|
+
}>>;
|
|
25
33
|
maxZoom: z.ZodOptional<z.ZodNumber>;
|
|
26
34
|
autoZoom: z.ZodOptional<z.ZodBoolean>;
|
|
27
35
|
captions: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -30,6 +38,7 @@ export declare const ProjectConfig: z.ZodObject<{
|
|
|
30
38
|
browser: "browser";
|
|
31
39
|
none: "none";
|
|
32
40
|
}>>;
|
|
41
|
+
cards: z.ZodOptional<z.ZodBoolean>;
|
|
33
42
|
}, z.core.$strict>>;
|
|
34
43
|
}, z.core.$strict>;
|
|
35
44
|
export type ProjectConfig = z.infer<typeof ProjectConfig>;
|
|
@@ -6,8 +6,8 @@ import { describeStep, stepKind } from "./schema.js";
|
|
|
6
6
|
* can change and be re-rendered without filming again; anything else that
|
|
7
7
|
* changes (a target, typed text, a wait, a hold) needs a new recording.
|
|
8
8
|
*/
|
|
9
|
-
const EDITORIAL_KEYS = new Set(["say", "zoom", "text"]);
|
|
10
|
-
const CARD_KEYS = new Set(["title", "end", "subtitle", "duration", "say"]);
|
|
9
|
+
const EDITORIAL_KEYS = new Set(["say", "zoom", "text", "audio"]);
|
|
10
|
+
const CARD_KEYS = new Set(["title", "end", "subtitle", "duration", "say", "audio"]);
|
|
11
11
|
export function captureInputs(scenario) {
|
|
12
12
|
const setup = JSON.stringify([
|
|
13
13
|
scenario.url ?? null,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fingerprint.js","sourceRoot":"","sources":["../../src/scenario/fingerprint.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAiB,MAAM,aAAa,CAAC;AAEpE;;;;;GAKG;AACH,MAAM,cAAc,GAAG,IAAI,GAAG,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"fingerprint.js","sourceRoot":"","sources":["../../src/scenario/fingerprint.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,a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K,aAAa,CAAC,CAAC,CAAC;YAAE,OAAO,QAAQ,CAAC,GAAG,CAAC,KAAK,YAAY,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC;IAC5H,CAAC;IACD,IAAI,CAAC,QAAQ;QAAE,OAAO,SAAS,CAAC,CAAC,+DAA+D;IAChG,IAAI,QAAQ,CAAC,KAAK,KAAK,GAAG,CAAC,KAAK;QAAE,OAAO,uEAAuE,CAAC;IACjH,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QAC1C,IAAI,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC;YAAE,OAAO,QAAQ,CAAC,GAAG,CAAC,KAAK,YAAY,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC;IAC9G,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC"}
|
|
@@ -15,6 +15,7 @@ export declare const SURFACES: readonly ["window", "menubar", "menu", "sheet", "
|
|
|
15
15
|
export declare const Step: z.ZodUnion<readonly [z.ZodObject<{
|
|
16
16
|
say: z.ZodOptional<z.ZodString>;
|
|
17
17
|
zoom: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNumber]>>;
|
|
18
|
+
audio: z.ZodOptional<z.ZodString>;
|
|
18
19
|
hold: z.ZodOptional<z.ZodNumber>;
|
|
19
20
|
app: z.ZodOptional<z.ZodString>;
|
|
20
21
|
surface: z.ZodOptional<z.ZodEnum<{
|
|
@@ -29,6 +30,7 @@ export declare const Step: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
29
30
|
}, z.core.$strict>, z.ZodObject<{
|
|
30
31
|
say: z.ZodOptional<z.ZodString>;
|
|
31
32
|
zoom: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNumber]>>;
|
|
33
|
+
audio: z.ZodOptional<z.ZodString>;
|
|
32
34
|
hold: z.ZodOptional<z.ZodNumber>;
|
|
33
35
|
app: z.ZodOptional<z.ZodString>;
|
|
34
36
|
surface: z.ZodOptional<z.ZodEnum<{
|
|
@@ -43,6 +45,7 @@ export declare const Step: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
43
45
|
}, z.core.$strict>, z.ZodObject<{
|
|
44
46
|
say: z.ZodOptional<z.ZodString>;
|
|
45
47
|
zoom: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNumber]>>;
|
|
48
|
+
audio: z.ZodOptional<z.ZodString>;
|
|
46
49
|
hold: z.ZodOptional<z.ZodNumber>;
|
|
47
50
|
app: z.ZodOptional<z.ZodString>;
|
|
48
51
|
surface: z.ZodOptional<z.ZodEnum<{
|
|
@@ -62,6 +65,7 @@ export declare const Step: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
62
65
|
}, z.core.$strict>, z.ZodObject<{
|
|
63
66
|
say: z.ZodOptional<z.ZodString>;
|
|
64
67
|
zoom: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNumber]>>;
|
|
68
|
+
audio: z.ZodOptional<z.ZodString>;
|
|
65
69
|
hold: z.ZodOptional<z.ZodNumber>;
|
|
66
70
|
app: z.ZodOptional<z.ZodString>;
|
|
67
71
|
surface: z.ZodOptional<z.ZodEnum<{
|
|
@@ -80,6 +84,7 @@ export declare const Step: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
80
84
|
}, z.core.$strict>, z.ZodObject<{
|
|
81
85
|
say: z.ZodOptional<z.ZodString>;
|
|
82
86
|
zoom: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNumber]>>;
|
|
87
|
+
audio: z.ZodOptional<z.ZodString>;
|
|
83
88
|
hold: z.ZodOptional<z.ZodNumber>;
|
|
84
89
|
app: z.ZodOptional<z.ZodString>;
|
|
85
90
|
surface: z.ZodOptional<z.ZodEnum<{
|
|
@@ -94,6 +99,7 @@ export declare const Step: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
94
99
|
}, z.core.$strict>, z.ZodObject<{
|
|
95
100
|
say: z.ZodOptional<z.ZodString>;
|
|
96
101
|
zoom: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNumber]>>;
|
|
102
|
+
audio: z.ZodOptional<z.ZodString>;
|
|
97
103
|
hold: z.ZodOptional<z.ZodNumber>;
|
|
98
104
|
app: z.ZodOptional<z.ZodString>;
|
|
99
105
|
surface: z.ZodOptional<z.ZodEnum<{
|
|
@@ -108,6 +114,7 @@ export declare const Step: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
108
114
|
}, z.core.$strict>, z.ZodObject<{
|
|
109
115
|
say: z.ZodOptional<z.ZodString>;
|
|
110
116
|
zoom: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNumber]>>;
|
|
117
|
+
audio: z.ZodOptional<z.ZodString>;
|
|
111
118
|
hold: z.ZodOptional<z.ZodNumber>;
|
|
112
119
|
app: z.ZodOptional<z.ZodString>;
|
|
113
120
|
surface: z.ZodOptional<z.ZodEnum<{
|
|
@@ -127,6 +134,7 @@ export declare const Step: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
127
134
|
}, z.core.$strict>, z.ZodObject<{
|
|
128
135
|
say: z.ZodOptional<z.ZodString>;
|
|
129
136
|
zoom: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNumber]>>;
|
|
137
|
+
audio: z.ZodOptional<z.ZodString>;
|
|
130
138
|
hold: z.ZodOptional<z.ZodNumber>;
|
|
131
139
|
app: z.ZodOptional<z.ZodString>;
|
|
132
140
|
surface: z.ZodOptional<z.ZodEnum<{
|
|
@@ -142,6 +150,7 @@ export declare const Step: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
142
150
|
}, z.core.$strict>, z.ZodObject<{
|
|
143
151
|
say: z.ZodOptional<z.ZodString>;
|
|
144
152
|
zoom: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNumber]>>;
|
|
153
|
+
audio: z.ZodOptional<z.ZodString>;
|
|
145
154
|
hold: z.ZodOptional<z.ZodNumber>;
|
|
146
155
|
app: z.ZodOptional<z.ZodString>;
|
|
147
156
|
surface: z.ZodOptional<z.ZodEnum<{
|
|
@@ -157,6 +166,7 @@ export declare const Step: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
157
166
|
}, z.core.$strict>, z.ZodObject<{
|
|
158
167
|
say: z.ZodOptional<z.ZodString>;
|
|
159
168
|
zoom: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNumber]>>;
|
|
169
|
+
audio: z.ZodOptional<z.ZodString>;
|
|
160
170
|
hold: z.ZodOptional<z.ZodNumber>;
|
|
161
171
|
app: z.ZodOptional<z.ZodString>;
|
|
162
172
|
surface: z.ZodOptional<z.ZodEnum<{
|
|
@@ -173,14 +183,17 @@ export declare const Step: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
173
183
|
subtitle: z.ZodOptional<z.ZodString>;
|
|
174
184
|
duration: z.ZodOptional<z.ZodNumber>;
|
|
175
185
|
say: z.ZodOptional<z.ZodString>;
|
|
186
|
+
audio: z.ZodOptional<z.ZodString>;
|
|
176
187
|
}, z.core.$strict>, z.ZodObject<{
|
|
177
188
|
end: z.ZodString;
|
|
178
189
|
subtitle: z.ZodOptional<z.ZodString>;
|
|
179
190
|
duration: z.ZodOptional<z.ZodNumber>;
|
|
180
191
|
say: z.ZodOptional<z.ZodString>;
|
|
192
|
+
audio: z.ZodOptional<z.ZodString>;
|
|
181
193
|
}, z.core.$strict>, z.ZodObject<{
|
|
182
194
|
say: z.ZodOptional<z.ZodString>;
|
|
183
195
|
zoom: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNumber]>>;
|
|
196
|
+
audio: z.ZodOptional<z.ZodString>;
|
|
184
197
|
hold: z.ZodOptional<z.ZodNumber>;
|
|
185
198
|
app: z.ZodOptional<z.ZodString>;
|
|
186
199
|
surface: z.ZodOptional<z.ZodEnum<{
|
|
@@ -197,6 +210,7 @@ export declare const Step: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
197
210
|
}, z.core.$strict>, z.ZodObject<{
|
|
198
211
|
say: z.ZodOptional<z.ZodString>;
|
|
199
212
|
zoom: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNumber]>>;
|
|
213
|
+
audio: z.ZodOptional<z.ZodString>;
|
|
200
214
|
hold: z.ZodOptional<z.ZodNumber>;
|
|
201
215
|
app: z.ZodOptional<z.ZodString>;
|
|
202
216
|
surface: z.ZodOptional<z.ZodEnum<{
|
|
@@ -213,6 +227,7 @@ export declare const Step: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
213
227
|
}, z.core.$strict>, z.ZodObject<{
|
|
214
228
|
say: z.ZodOptional<z.ZodString>;
|
|
215
229
|
zoom: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNumber]>>;
|
|
230
|
+
audio: z.ZodOptional<z.ZodString>;
|
|
216
231
|
hold: z.ZodOptional<z.ZodNumber>;
|
|
217
232
|
app: z.ZodOptional<z.ZodString>;
|
|
218
233
|
surface: z.ZodOptional<z.ZodEnum<{
|
|
@@ -227,9 +242,9 @@ export declare const Step: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
227
242
|
duration: z.ZodOptional<z.ZodNumber>;
|
|
228
243
|
}, z.core.$strict>]>;
|
|
229
244
|
export type Step = z.infer<typeof Step>;
|
|
230
|
-
/** Presets offered today (
|
|
231
|
-
export declare const BACKGROUNDS: readonly ["aurora", "sky", "dusk", "ember", "graphite", "lagoon", "lilac", "peach", "linen", "sunset", "ocean", "lavender", "forest", "midnight", "mono", "paper"];
|
|
232
|
-
export declare const CURRENT_BACKGROUNDS: ("aurora" | "dusk" | "ember" | "forest" | "graphite" | "lagoon" | "lavender" | "lilac" | "linen" | "midnight" | "mono" | "ocean" | "paper" | "peach" | "sky" | "sunset")[];
|
|
245
|
+
/** Presets offered today (glow), then earlier ones (mesh, then linear), still accepted. See render/presets.ts. */
|
|
246
|
+
export declare const BACKGROUNDS: readonly ["dawn", "iris", "citrus", "apricot", "coral", "blaze", "cloud", "glacier", "tide", "meadow", "aurora", "sky", "dusk", "ember", "graphite", "lagoon", "lilac", "peach", "linen", "sunset", "ocean", "lavender", "forest", "midnight", "mono", "paper"];
|
|
247
|
+
export declare const CURRENT_BACKGROUNDS: ("apricot" | "aurora" | "blaze" | "citrus" | "cloud" | "coral" | "dawn" | "dusk" | "ember" | "forest" | "glacier" | "graphite" | "iris" | "lagoon" | "lavender" | "lilac" | "linen" | "meadow" | "midnight" | "mono" | "ocean" | "paper" | "peach" | "sky" | "sunset" | "tide")[];
|
|
233
248
|
export declare const Gradient: z.ZodObject<{
|
|
234
249
|
gradient: z.ZodArray<z.ZodString>;
|
|
235
250
|
angle: z.ZodOptional<z.ZodNumber>;
|
|
@@ -244,11 +259,19 @@ export declare const Style: z.ZodObject<{
|
|
|
244
259
|
radius: z.ZodOptional<z.ZodNumber>;
|
|
245
260
|
shadow: z.ZodOptional<z.ZodBoolean>;
|
|
246
261
|
cursor: z.ZodOptional<z.ZodEnum<{
|
|
262
|
+
arrow: "arrow";
|
|
247
263
|
dot: "dot";
|
|
248
264
|
macos: "macos";
|
|
249
265
|
none: "none";
|
|
250
266
|
}>>;
|
|
251
267
|
cursorSize: z.ZodOptional<z.ZodNumber>;
|
|
268
|
+
click: z.ZodOptional<z.ZodEnum<{
|
|
269
|
+
confetti: "confetti";
|
|
270
|
+
none: "none";
|
|
271
|
+
rays: "rays";
|
|
272
|
+
ripple: "ripple";
|
|
273
|
+
sparkle: "sparkle";
|
|
274
|
+
}>>;
|
|
252
275
|
maxZoom: z.ZodOptional<z.ZodNumber>;
|
|
253
276
|
autoZoom: z.ZodOptional<z.ZodBoolean>;
|
|
254
277
|
captions: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -257,10 +280,15 @@ export declare const Style: z.ZodObject<{
|
|
|
257
280
|
browser: "browser";
|
|
258
281
|
none: "none";
|
|
259
282
|
}>>;
|
|
283
|
+
cards: z.ZodOptional<z.ZodBoolean>;
|
|
260
284
|
}, z.core.$strict>;
|
|
261
285
|
export type Style = z.infer<typeof Style>;
|
|
262
286
|
export declare const Voice: z.ZodObject<{
|
|
263
287
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
288
|
+
provider: z.ZodOptional<z.ZodEnum<{
|
|
289
|
+
cartesia: "cartesia";
|
|
290
|
+
elevenlabs: "elevenlabs";
|
|
291
|
+
}>>;
|
|
264
292
|
language: z.ZodOptional<z.ZodString>;
|
|
265
293
|
id: z.ZodOptional<z.ZodString>;
|
|
266
294
|
speed: z.ZodOptional<z.ZodNumber>;
|
|
@@ -306,11 +334,19 @@ export declare const Scenario: z.ZodObject<{
|
|
|
306
334
|
radius: z.ZodOptional<z.ZodNumber>;
|
|
307
335
|
shadow: z.ZodOptional<z.ZodBoolean>;
|
|
308
336
|
cursor: z.ZodOptional<z.ZodEnum<{
|
|
337
|
+
arrow: "arrow";
|
|
309
338
|
dot: "dot";
|
|
310
339
|
macos: "macos";
|
|
311
340
|
none: "none";
|
|
312
341
|
}>>;
|
|
313
342
|
cursorSize: z.ZodOptional<z.ZodNumber>;
|
|
343
|
+
click: z.ZodOptional<z.ZodEnum<{
|
|
344
|
+
confetti: "confetti";
|
|
345
|
+
none: "none";
|
|
346
|
+
rays: "rays";
|
|
347
|
+
ripple: "ripple";
|
|
348
|
+
sparkle: "sparkle";
|
|
349
|
+
}>>;
|
|
314
350
|
maxZoom: z.ZodOptional<z.ZodNumber>;
|
|
315
351
|
autoZoom: z.ZodOptional<z.ZodBoolean>;
|
|
316
352
|
captions: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -319,9 +355,14 @@ export declare const Scenario: z.ZodObject<{
|
|
|
319
355
|
browser: "browser";
|
|
320
356
|
none: "none";
|
|
321
357
|
}>>;
|
|
358
|
+
cards: z.ZodOptional<z.ZodBoolean>;
|
|
322
359
|
}, z.core.$strict>>;
|
|
323
360
|
voice: z.ZodOptional<z.ZodObject<{
|
|
324
361
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
362
|
+
provider: z.ZodOptional<z.ZodEnum<{
|
|
363
|
+
cartesia: "cartesia";
|
|
364
|
+
elevenlabs: "elevenlabs";
|
|
365
|
+
}>>;
|
|
325
366
|
language: z.ZodOptional<z.ZodString>;
|
|
326
367
|
id: z.ZodOptional<z.ZodString>;
|
|
327
368
|
speed: z.ZodOptional<z.ZodNumber>;
|
|
@@ -337,6 +378,7 @@ export declare const Scenario: z.ZodObject<{
|
|
|
337
378
|
steps: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
338
379
|
say: z.ZodOptional<z.ZodString>;
|
|
339
380
|
zoom: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNumber]>>;
|
|
381
|
+
audio: z.ZodOptional<z.ZodString>;
|
|
340
382
|
hold: z.ZodOptional<z.ZodNumber>;
|
|
341
383
|
app: z.ZodOptional<z.ZodString>;
|
|
342
384
|
surface: z.ZodOptional<z.ZodEnum<{
|
|
@@ -351,6 +393,7 @@ export declare const Scenario: z.ZodObject<{
|
|
|
351
393
|
}, z.core.$strict>, z.ZodObject<{
|
|
352
394
|
say: z.ZodOptional<z.ZodString>;
|
|
353
395
|
zoom: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNumber]>>;
|
|
396
|
+
audio: z.ZodOptional<z.ZodString>;
|
|
354
397
|
hold: z.ZodOptional<z.ZodNumber>;
|
|
355
398
|
app: z.ZodOptional<z.ZodString>;
|
|
356
399
|
surface: z.ZodOptional<z.ZodEnum<{
|
|
@@ -365,6 +408,7 @@ export declare const Scenario: z.ZodObject<{
|
|
|
365
408
|
}, z.core.$strict>, z.ZodObject<{
|
|
366
409
|
say: z.ZodOptional<z.ZodString>;
|
|
367
410
|
zoom: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNumber]>>;
|
|
411
|
+
audio: z.ZodOptional<z.ZodString>;
|
|
368
412
|
hold: z.ZodOptional<z.ZodNumber>;
|
|
369
413
|
app: z.ZodOptional<z.ZodString>;
|
|
370
414
|
surface: z.ZodOptional<z.ZodEnum<{
|
|
@@ -384,6 +428,7 @@ export declare const Scenario: z.ZodObject<{
|
|
|
384
428
|
}, z.core.$strict>, z.ZodObject<{
|
|
385
429
|
say: z.ZodOptional<z.ZodString>;
|
|
386
430
|
zoom: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNumber]>>;
|
|
431
|
+
audio: z.ZodOptional<z.ZodString>;
|
|
387
432
|
hold: z.ZodOptional<z.ZodNumber>;
|
|
388
433
|
app: z.ZodOptional<z.ZodString>;
|
|
389
434
|
surface: z.ZodOptional<z.ZodEnum<{
|
|
@@ -402,6 +447,7 @@ export declare const Scenario: z.ZodObject<{
|
|
|
402
447
|
}, z.core.$strict>, z.ZodObject<{
|
|
403
448
|
say: z.ZodOptional<z.ZodString>;
|
|
404
449
|
zoom: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNumber]>>;
|
|
450
|
+
audio: z.ZodOptional<z.ZodString>;
|
|
405
451
|
hold: z.ZodOptional<z.ZodNumber>;
|
|
406
452
|
app: z.ZodOptional<z.ZodString>;
|
|
407
453
|
surface: z.ZodOptional<z.ZodEnum<{
|
|
@@ -416,6 +462,7 @@ export declare const Scenario: z.ZodObject<{
|
|
|
416
462
|
}, z.core.$strict>, z.ZodObject<{
|
|
417
463
|
say: z.ZodOptional<z.ZodString>;
|
|
418
464
|
zoom: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNumber]>>;
|
|
465
|
+
audio: z.ZodOptional<z.ZodString>;
|
|
419
466
|
hold: z.ZodOptional<z.ZodNumber>;
|
|
420
467
|
app: z.ZodOptional<z.ZodString>;
|
|
421
468
|
surface: z.ZodOptional<z.ZodEnum<{
|
|
@@ -430,6 +477,7 @@ export declare const Scenario: z.ZodObject<{
|
|
|
430
477
|
}, z.core.$strict>, z.ZodObject<{
|
|
431
478
|
say: z.ZodOptional<z.ZodString>;
|
|
432
479
|
zoom: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNumber]>>;
|
|
480
|
+
audio: z.ZodOptional<z.ZodString>;
|
|
433
481
|
hold: z.ZodOptional<z.ZodNumber>;
|
|
434
482
|
app: z.ZodOptional<z.ZodString>;
|
|
435
483
|
surface: z.ZodOptional<z.ZodEnum<{
|
|
@@ -449,6 +497,7 @@ export declare const Scenario: z.ZodObject<{
|
|
|
449
497
|
}, z.core.$strict>, z.ZodObject<{
|
|
450
498
|
say: z.ZodOptional<z.ZodString>;
|
|
451
499
|
zoom: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNumber]>>;
|
|
500
|
+
audio: z.ZodOptional<z.ZodString>;
|
|
452
501
|
hold: z.ZodOptional<z.ZodNumber>;
|
|
453
502
|
app: z.ZodOptional<z.ZodString>;
|
|
454
503
|
surface: z.ZodOptional<z.ZodEnum<{
|
|
@@ -464,6 +513,7 @@ export declare const Scenario: z.ZodObject<{
|
|
|
464
513
|
}, z.core.$strict>, z.ZodObject<{
|
|
465
514
|
say: z.ZodOptional<z.ZodString>;
|
|
466
515
|
zoom: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNumber]>>;
|
|
516
|
+
audio: z.ZodOptional<z.ZodString>;
|
|
467
517
|
hold: z.ZodOptional<z.ZodNumber>;
|
|
468
518
|
app: z.ZodOptional<z.ZodString>;
|
|
469
519
|
surface: z.ZodOptional<z.ZodEnum<{
|
|
@@ -479,6 +529,7 @@ export declare const Scenario: z.ZodObject<{
|
|
|
479
529
|
}, z.core.$strict>, z.ZodObject<{
|
|
480
530
|
say: z.ZodOptional<z.ZodString>;
|
|
481
531
|
zoom: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNumber]>>;
|
|
532
|
+
audio: z.ZodOptional<z.ZodString>;
|
|
482
533
|
hold: z.ZodOptional<z.ZodNumber>;
|
|
483
534
|
app: z.ZodOptional<z.ZodString>;
|
|
484
535
|
surface: z.ZodOptional<z.ZodEnum<{
|
|
@@ -495,14 +546,17 @@ export declare const Scenario: z.ZodObject<{
|
|
|
495
546
|
subtitle: z.ZodOptional<z.ZodString>;
|
|
496
547
|
duration: z.ZodOptional<z.ZodNumber>;
|
|
497
548
|
say: z.ZodOptional<z.ZodString>;
|
|
549
|
+
audio: z.ZodOptional<z.ZodString>;
|
|
498
550
|
}, z.core.$strict>, z.ZodObject<{
|
|
499
551
|
end: z.ZodString;
|
|
500
552
|
subtitle: z.ZodOptional<z.ZodString>;
|
|
501
553
|
duration: z.ZodOptional<z.ZodNumber>;
|
|
502
554
|
say: z.ZodOptional<z.ZodString>;
|
|
555
|
+
audio: z.ZodOptional<z.ZodString>;
|
|
503
556
|
}, z.core.$strict>, z.ZodObject<{
|
|
504
557
|
say: z.ZodOptional<z.ZodString>;
|
|
505
558
|
zoom: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNumber]>>;
|
|
559
|
+
audio: z.ZodOptional<z.ZodString>;
|
|
506
560
|
hold: z.ZodOptional<z.ZodNumber>;
|
|
507
561
|
app: z.ZodOptional<z.ZodString>;
|
|
508
562
|
surface: z.ZodOptional<z.ZodEnum<{
|
|
@@ -519,6 +573,7 @@ export declare const Scenario: z.ZodObject<{
|
|
|
519
573
|
}, z.core.$strict>, z.ZodObject<{
|
|
520
574
|
say: z.ZodOptional<z.ZodString>;
|
|
521
575
|
zoom: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNumber]>>;
|
|
576
|
+
audio: z.ZodOptional<z.ZodString>;
|
|
522
577
|
hold: z.ZodOptional<z.ZodNumber>;
|
|
523
578
|
app: z.ZodOptional<z.ZodString>;
|
|
524
579
|
surface: z.ZodOptional<z.ZodEnum<{
|
|
@@ -535,6 +590,7 @@ export declare const Scenario: z.ZodObject<{
|
|
|
535
590
|
}, z.core.$strict>, z.ZodObject<{
|
|
536
591
|
say: z.ZodOptional<z.ZodString>;
|
|
537
592
|
zoom: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNumber]>>;
|
|
593
|
+
audio: z.ZodOptional<z.ZodString>;
|
|
538
594
|
hold: z.ZodOptional<z.ZodNumber>;
|
|
539
595
|
app: z.ZodOptional<z.ZodString>;
|
|
540
596
|
surface: z.ZodOptional<z.ZodEnum<{
|
package/dist/scenario/schema.js
CHANGED
|
@@ -24,6 +24,10 @@ const Common = {
|
|
|
24
24
|
.union([z.boolean(), z.number().min(1).max(4)])
|
|
25
25
|
.optional()
|
|
26
26
|
.describe("false: keep the camera wide for this step. A number: force this zoom level (1 = no zoom)."),
|
|
27
|
+
audio: z
|
|
28
|
+
.string()
|
|
29
|
+
.optional()
|
|
30
|
+
.describe("An audio file (MP3, WAV, M4A…) with this step's narration, relative to the scenario: used instead of generating `say`, with no voice key. The step lasts at least as long as the file."),
|
|
27
31
|
hold: z
|
|
28
32
|
.number()
|
|
29
33
|
.min(0)
|
|
@@ -91,6 +95,7 @@ const Title = z
|
|
|
91
95
|
subtitle: z.string().optional(),
|
|
92
96
|
duration: z.number().min(0.5).max(15).optional(),
|
|
93
97
|
say: Common.say,
|
|
98
|
+
audio: Common.audio,
|
|
94
99
|
})
|
|
95
100
|
.strict();
|
|
96
101
|
const End = z
|
|
@@ -99,6 +104,7 @@ const End = z
|
|
|
99
104
|
subtitle: z.string().optional(),
|
|
100
105
|
duration: z.number().min(0.5).max(15).optional(),
|
|
101
106
|
say: Common.say,
|
|
107
|
+
audio: Common.audio,
|
|
102
108
|
})
|
|
103
109
|
.strict();
|
|
104
110
|
const Callout = z
|
|
@@ -141,9 +147,9 @@ export const Step = z.union([
|
|
|
141
147
|
Highlight,
|
|
142
148
|
ZoomTo,
|
|
143
149
|
]);
|
|
144
|
-
/** Presets offered today (
|
|
145
|
-
export const BACKGROUNDS = ["aurora", "sky", "dusk", "ember", "graphite", "lagoon", "lilac", "peach", "linen", "sunset", "ocean", "lavender", "forest", "midnight", "mono", "paper"];
|
|
146
|
-
export const CURRENT_BACKGROUNDS = BACKGROUNDS.slice(0,
|
|
150
|
+
/** Presets offered today (glow), then earlier ones (mesh, then linear), still accepted. See render/presets.ts. */
|
|
151
|
+
export const BACKGROUNDS = ["dawn", "iris", "citrus", "apricot", "coral", "blaze", "cloud", "glacier", "tide", "meadow", "aurora", "sky", "dusk", "ember", "graphite", "lagoon", "lilac", "peach", "linen", "sunset", "ocean", "lavender", "forest", "midnight", "mono", "paper"];
|
|
152
|
+
export const CURRENT_BACKGROUNDS = BACKGROUNDS.slice(0, 10);
|
|
147
153
|
const Color = z.string().regex(/^#([0-9a-f]{3}|[0-9a-f]{6})$/i, "a hex color like #0ea5e9");
|
|
148
154
|
export const Gradient = z
|
|
149
155
|
.object({
|
|
@@ -156,26 +162,44 @@ export const Style = z
|
|
|
156
162
|
background: z
|
|
157
163
|
.union([z.string(), Gradient])
|
|
158
164
|
.optional()
|
|
159
|
-
.describe(`A preset (${CURRENT_BACKGROUNDS.join(", ")}; default
|
|
165
|
+
.describe(`A preset (${CURRENT_BACKGROUNDS.join(", ")}; default dawn), a color like #0f172a, an image path (relative to the file that sets it), or a gradient { "gradient": ["#0ea5e9", "#6366f1"], "angle": 135 }.`),
|
|
160
166
|
padding: z.number().min(0).max(400).optional().describe("Space around the recording, in output pixels (default 72)."),
|
|
161
167
|
radius: z.number().min(0).max(80).optional().describe("Corner radius of the recording (default 14)."),
|
|
162
168
|
shadow: z.boolean().optional().describe("Drop shadow under the recording (default true)."),
|
|
163
|
-
cursor: z
|
|
164
|
-
|
|
169
|
+
cursor: z
|
|
170
|
+
.enum(["arrow", "macos", "dot", "none"])
|
|
171
|
+
.optional()
|
|
172
|
+
.describe("Cursor drawn in the video: arrow (default, a rounded arrow in the accent color), macos (the classic black arrow), dot or none."),
|
|
173
|
+
cursorSize: z.number().min(0.5).max(3).optional().describe("Cursor scale (default 1: the arrow is about 44 px tall in a 1080p video)."),
|
|
174
|
+
click: z
|
|
175
|
+
.enum(["ripple", "rays", "confetti", "sparkle", "none"])
|
|
176
|
+
.optional()
|
|
177
|
+
.describe("What a click shows, in the accent color: ripple (default, a soft disc and two rings), rays, confetti, sparkle or none."),
|
|
165
178
|
maxZoom: z.number().min(1).max(4).optional().describe("Highest automatic zoom (default 1.9). Automatic zooms also stop where the capture runs out of pixels, so a small app window that already fills the video is not zoomed; a number in a step's `zoom` still forces it."),
|
|
166
179
|
autoZoom: z.boolean().optional().describe("Zoom automatically on clicks and typing (default true)."),
|
|
167
180
|
captions: z.boolean().optional().describe("Show the `say` text as captions (default true)."),
|
|
168
181
|
accent: z.string().optional().describe("Accent color for clicks, callouts and highlights (default #3b82f6)."),
|
|
169
182
|
frame: z.enum(["none", "browser"]).optional().describe("Draw a minimal browser window bar above web recordings (default none)."),
|
|
183
|
+
cards: z
|
|
184
|
+
.boolean()
|
|
185
|
+
.optional()
|
|
186
|
+
.describe("Show the title and end cards (default false: `title` and `end` steps are left out of the video). Turn on when the person wants an intro and an outro."),
|
|
170
187
|
})
|
|
171
188
|
.strict();
|
|
172
189
|
export const Voice = z
|
|
173
190
|
.object({
|
|
174
|
-
enabled: z
|
|
191
|
+
enabled: z
|
|
192
|
+
.boolean()
|
|
193
|
+
.optional()
|
|
194
|
+
.describe("Speak each step's `say` text (default false). Needs CARTESIA_API_KEY or ELEVENLABS_API_KEY, unless every spoken step has its own `audio` file."),
|
|
195
|
+
provider: z
|
|
196
|
+
.enum(["cartesia", "elevenlabs"])
|
|
197
|
+
.optional()
|
|
198
|
+
.describe("Who speaks (default: Cartesia when CARTESIA_API_KEY is set, else ElevenLabs when ELEVENLABS_API_KEY is)."),
|
|
175
199
|
language: z.string().optional().describe("Language code, e.g. en, fr, de (default en)."),
|
|
176
|
-
id: z.string().optional().describe("
|
|
200
|
+
id: z.string().optional().describe("The provider's voice id (default: a narration voice)."),
|
|
177
201
|
speed: z.number().min(0.6).max(1.5).optional(),
|
|
178
|
-
model: z.string().optional().describe("
|
|
202
|
+
model: z.string().optional().describe("The provider's model (default sonic-3.6 for Cartesia, eleven_multilingual_v2 for ElevenLabs)."),
|
|
179
203
|
})
|
|
180
204
|
.strict();
|
|
181
205
|
export const Output = z
|