agentcut 0.2.16 → 0.2.18

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 (98) hide show
  1. package/README.md +127 -0
  2. package/dist/bridge.d.ts +1 -0
  3. package/dist/bridge.js +9 -4
  4. package/dist/bridge.js.map +1 -1
  5. package/dist/index.js +3 -1
  6. package/dist/index.js.map +1 -1
  7. package/dist/log.js +6 -1
  8. package/dist/log.js.map +1 -1
  9. package/dist/studio/agents/claude.d.ts +22 -1
  10. package/dist/studio/agents/claude.js +89 -3
  11. package/dist/studio/agents/claude.js.map +1 -1
  12. package/dist/studio/agents/types.d.ts +6 -0
  13. package/dist/studio/chat.d.ts +2 -0
  14. package/dist/studio/chat.js +11 -9
  15. package/dist/studio/chat.js.map +1 -1
  16. package/dist/studio/cli.js +43 -21
  17. package/dist/studio/cli.js.map +1 -1
  18. package/dist/studio/editing-styles.d.ts +26 -0
  19. package/dist/studio/editing-styles.js +84 -0
  20. package/dist/studio/editing-styles.js.map +1 -0
  21. package/dist/studio/host.d.ts +11 -2
  22. package/dist/studio/host.js +124 -5
  23. package/dist/studio/host.js.map +1 -1
  24. package/dist/studio/housekeeping.d.ts +16 -0
  25. package/dist/studio/housekeeping.js +152 -0
  26. package/dist/studio/housekeeping.js.map +1 -0
  27. package/dist/studio/http.d.ts +3 -0
  28. package/dist/studio/http.js +25 -0
  29. package/dist/studio/http.js.map +1 -1
  30. package/dist/studio/mcp-files.d.ts +34 -0
  31. package/dist/studio/mcp-files.js +159 -0
  32. package/dist/studio/mcp-files.js.map +1 -0
  33. package/dist/studio/mcp-guides.d.ts +4 -0
  34. package/dist/studio/mcp-guides.js +93 -0
  35. package/dist/studio/mcp-guides.js.map +1 -0
  36. package/dist/studio/projects.d.ts +1 -1
  37. package/dist/studio/proxies.d.ts +45 -0
  38. package/dist/studio/proxies.js +263 -0
  39. package/dist/studio/proxies.js.map +1 -0
  40. package/dist/studio/references.d.ts +18 -0
  41. package/dist/studio/references.js +21 -4
  42. package/dist/studio/references.js.map +1 -1
  43. package/dist/studio/release-browser.d.ts +25 -0
  44. package/dist/studio/release-browser.js +191 -0
  45. package/dist/studio/release-browser.js.map +1 -0
  46. package/dist/studio/release-cursor.d.ts +3 -0
  47. package/dist/studio/release-cursor.js +27 -0
  48. package/dist/studio/release-cursor.js.map +1 -0
  49. package/dist/studio/release-edit.d.ts +34 -0
  50. package/dist/studio/release-edit.js +183 -0
  51. package/dist/studio/release-edit.js.map +1 -0
  52. package/dist/studio/release-recorder.d.ts +30 -0
  53. package/dist/studio/release-recorder.js +273 -0
  54. package/dist/studio/release-recorder.js.map +1 -0
  55. package/dist/studio/release-video.d.ts +693 -0
  56. package/dist/studio/release-video.js +616 -0
  57. package/dist/studio/release-video.js.map +1 -0
  58. package/dist/studio/render.d.ts +2 -0
  59. package/dist/studio/render.js +33 -15
  60. package/dist/studio/render.js.map +1 -1
  61. package/dist/studio/reveal.d.ts +3 -1
  62. package/dist/studio/reveal.js +26 -8
  63. package/dist/studio/reveal.js.map +1 -1
  64. package/dist/studio/schema.d.ts +23642 -2685
  65. package/dist/studio/schema.js +61 -4
  66. package/dist/studio/schema.js.map +1 -1
  67. package/dist/studio/share.d.ts +2 -0
  68. package/dist/studio/share.js +7 -1
  69. package/dist/studio/share.js.map +1 -1
  70. package/dist/studio/tools.d.ts +4 -0
  71. package/dist/studio/tools.js +103 -4
  72. package/dist/studio/tools.js.map +1 -1
  73. package/dist/studio/transcription/service.js +2 -1
  74. package/dist/studio/transcription/service.js.map +1 -1
  75. package/dist/studio/workspace.d.ts +1 -0
  76. package/dist/studio/workspace.js +1 -0
  77. package/dist/studio/workspace.js.map +1 -1
  78. package/package.json +2 -1
  79. package/template/AGENTS.md +1 -0
  80. package/template/components/color/grade-effect.ts +650 -0
  81. package/template/components/color/grade.ts +512 -0
  82. package/template/components/color/looks.ts +154 -0
  83. package/template/components/index.ts +14 -0
  84. package/template/components/live-clip.ts +75 -0
  85. package/template/runtime/composition.tsx +274 -24
  86. package/template/runtime/helpers.tsx +2 -0
  87. package/template/runtime/types.ts +67 -4
  88. package/template/skill/SKILL.md +120 -5
  89. package/template/skill/references/broll.md +2 -1
  90. package/template/skill/references/color.md +79 -0
  91. package/template/skill/references/editing-styles.md +57 -0
  92. package/template/skill/references/footage.md +72 -73
  93. package/template/skill/references/format.md +142 -140
  94. package/template/skill/references/performance.md +14 -2
  95. package/template/skill/references/person-cutout.md +19 -0
  96. package/template/skill/references/presets.md +60 -56
  97. package/template/skill/references/sound.md +151 -151
  98. package/template/skill/references/website-howto.md +41 -0
@@ -0,0 +1,693 @@
1
+ import { z } from "zod";
2
+ import type { WorkspacePaths } from "./workspace.js";
3
+ export declare const releaseInput: z.ZodObject<{
4
+ appUrl: z.ZodString;
5
+ description: z.ZodString;
6
+ name: z.ZodString;
7
+ videoType: z.ZodDefault<z.ZodEnum<["how-to", "announcement", "promotional"]>>;
8
+ orchestration: z.ZodDefault<z.ZodEnum<["helper", "caller"]>>;
9
+ agent: z.ZodOptional<z.ZodEnum<["codex", "claude"]>>;
10
+ showCursor: z.ZodDefault<z.ZodBoolean>;
11
+ }, "strict", z.ZodTypeAny, {
12
+ name: string;
13
+ description: string;
14
+ appUrl: string;
15
+ videoType: "how-to" | "announcement" | "promotional";
16
+ orchestration: "helper" | "caller";
17
+ showCursor: boolean;
18
+ agent?: "claude" | "codex" | undefined;
19
+ }, {
20
+ name: string;
21
+ description: string;
22
+ appUrl: string;
23
+ videoType?: "how-to" | "announcement" | "promotional" | undefined;
24
+ orchestration?: "helper" | "caller" | undefined;
25
+ agent?: "claude" | "codex" | undefined;
26
+ showCursor?: boolean | undefined;
27
+ }>;
28
+ export declare const releaseAction: z.ZodDiscriminatedUnion<"action", [z.ZodObject<{
29
+ action: z.ZodLiteral<"wait">;
30
+ milliseconds: z.ZodNumber;
31
+ }, "strict", z.ZodTypeAny, {
32
+ action: "wait";
33
+ milliseconds: number;
34
+ }, {
35
+ action: "wait";
36
+ milliseconds: number;
37
+ }>, z.ZodObject<{
38
+ action: z.ZodLiteral<"type">;
39
+ selector: z.ZodString;
40
+ text: z.ZodString;
41
+ delayMs: z.ZodDefault<z.ZodNumber>;
42
+ }, "strict", z.ZodTypeAny, {
43
+ text: string;
44
+ action: "type";
45
+ selector: string;
46
+ delayMs: number;
47
+ }, {
48
+ text: string;
49
+ action: "type";
50
+ selector: string;
51
+ delayMs?: number | undefined;
52
+ }>, z.ZodObject<{
53
+ action: z.ZodLiteral<"snapshot">;
54
+ }, "strict", z.ZodTypeAny, {
55
+ action: "snapshot";
56
+ }, {
57
+ action: "snapshot";
58
+ }>, z.ZodObject<{
59
+ action: z.ZodLiteral<"open">;
60
+ url: z.ZodString;
61
+ }, "strict", z.ZodTypeAny, {
62
+ url: string;
63
+ action: "open";
64
+ }, {
65
+ url: string;
66
+ action: "open";
67
+ }>, z.ZodObject<{
68
+ action: z.ZodLiteral<"click">;
69
+ selector: z.ZodString;
70
+ }, "strict", z.ZodTypeAny, {
71
+ action: "click";
72
+ selector: string;
73
+ }, {
74
+ action: "click";
75
+ selector: string;
76
+ }>, z.ZodObject<{
77
+ action: z.ZodLiteral<"hover">;
78
+ selector: z.ZodString;
79
+ }, "strict", z.ZodTypeAny, {
80
+ action: "hover";
81
+ selector: string;
82
+ }, {
83
+ action: "hover";
84
+ selector: string;
85
+ }>, z.ZodObject<{
86
+ action: z.ZodLiteral<"scroll">;
87
+ direction: z.ZodEnum<["up", "down"]>;
88
+ pixels: z.ZodNumber;
89
+ }, "strict", z.ZodTypeAny, {
90
+ action: "scroll";
91
+ direction: "up" | "down";
92
+ pixels: number;
93
+ }, {
94
+ action: "scroll";
95
+ direction: "up" | "down";
96
+ pixels: number;
97
+ }>]>;
98
+ export declare const releasePlan: z.ZodObject<{
99
+ story: z.ZodEffects<z.ZodObject<{
100
+ audience: z.ZodString;
101
+ message: z.ZodString;
102
+ before: z.ZodString;
103
+ after: z.ZodString;
104
+ captureBasis: z.ZodEnum<["website", "approved_demo"]>;
105
+ disclosure: z.ZodOptional<z.ZodString>;
106
+ }, "strict", z.ZodTypeAny, {
107
+ message: string;
108
+ before: string;
109
+ audience: string;
110
+ after: string;
111
+ captureBasis: "website" | "approved_demo";
112
+ disclosure?: string | undefined;
113
+ }, {
114
+ message: string;
115
+ before: string;
116
+ audience: string;
117
+ after: string;
118
+ captureBasis: "website" | "approved_demo";
119
+ disclosure?: string | undefined;
120
+ }>, {
121
+ message: string;
122
+ before: string;
123
+ audience: string;
124
+ after: string;
125
+ captureBasis: "website" | "approved_demo";
126
+ disclosure?: string | undefined;
127
+ }, {
128
+ message: string;
129
+ before: string;
130
+ audience: string;
131
+ after: string;
132
+ captureBasis: "website" | "approved_demo";
133
+ disclosure?: string | undefined;
134
+ }>;
135
+ opening: z.ZodString;
136
+ closing: z.ZodString;
137
+ scenes: z.ZodArray<z.ZodObject<{
138
+ title: z.ZodString;
139
+ purpose: z.ZodString;
140
+ evidence: z.ZodString;
141
+ expectedChange: z.ZodString;
142
+ url: z.ZodString;
143
+ prepare: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"action", [z.ZodObject<{
144
+ action: z.ZodLiteral<"wait">;
145
+ milliseconds: z.ZodNumber;
146
+ }, "strict", z.ZodTypeAny, {
147
+ action: "wait";
148
+ milliseconds: number;
149
+ }, {
150
+ action: "wait";
151
+ milliseconds: number;
152
+ }>, z.ZodObject<{
153
+ action: z.ZodLiteral<"type">;
154
+ selector: z.ZodString;
155
+ text: z.ZodString;
156
+ delayMs: z.ZodDefault<z.ZodNumber>;
157
+ }, "strict", z.ZodTypeAny, {
158
+ text: string;
159
+ action: "type";
160
+ selector: string;
161
+ delayMs: number;
162
+ }, {
163
+ text: string;
164
+ action: "type";
165
+ selector: string;
166
+ delayMs?: number | undefined;
167
+ }>, z.ZodObject<{
168
+ action: z.ZodLiteral<"snapshot">;
169
+ }, "strict", z.ZodTypeAny, {
170
+ action: "snapshot";
171
+ }, {
172
+ action: "snapshot";
173
+ }>, z.ZodObject<{
174
+ action: z.ZodLiteral<"open">;
175
+ url: z.ZodString;
176
+ }, "strict", z.ZodTypeAny, {
177
+ url: string;
178
+ action: "open";
179
+ }, {
180
+ url: string;
181
+ action: "open";
182
+ }>, z.ZodObject<{
183
+ action: z.ZodLiteral<"click">;
184
+ selector: z.ZodString;
185
+ }, "strict", z.ZodTypeAny, {
186
+ action: "click";
187
+ selector: string;
188
+ }, {
189
+ action: "click";
190
+ selector: string;
191
+ }>, z.ZodObject<{
192
+ action: z.ZodLiteral<"hover">;
193
+ selector: z.ZodString;
194
+ }, "strict", z.ZodTypeAny, {
195
+ action: "hover";
196
+ selector: string;
197
+ }, {
198
+ action: "hover";
199
+ selector: string;
200
+ }>, z.ZodObject<{
201
+ action: z.ZodLiteral<"scroll">;
202
+ direction: z.ZodEnum<["up", "down"]>;
203
+ pixels: z.ZodNumber;
204
+ }, "strict", z.ZodTypeAny, {
205
+ action: "scroll";
206
+ direction: "up" | "down";
207
+ pixels: number;
208
+ }, {
209
+ action: "scroll";
210
+ direction: "up" | "down";
211
+ pixels: number;
212
+ }>]>, "many">>;
213
+ actions: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"action", [z.ZodObject<{
214
+ action: z.ZodLiteral<"wait">;
215
+ milliseconds: z.ZodNumber;
216
+ }, "strict", z.ZodTypeAny, {
217
+ action: "wait";
218
+ milliseconds: number;
219
+ }, {
220
+ action: "wait";
221
+ milliseconds: number;
222
+ }>, z.ZodObject<{
223
+ action: z.ZodLiteral<"type">;
224
+ selector: z.ZodString;
225
+ text: z.ZodString;
226
+ delayMs: z.ZodDefault<z.ZodNumber>;
227
+ }, "strict", z.ZodTypeAny, {
228
+ text: string;
229
+ action: "type";
230
+ selector: string;
231
+ delayMs: number;
232
+ }, {
233
+ text: string;
234
+ action: "type";
235
+ selector: string;
236
+ delayMs?: number | undefined;
237
+ }>, z.ZodObject<{
238
+ action: z.ZodLiteral<"snapshot">;
239
+ }, "strict", z.ZodTypeAny, {
240
+ action: "snapshot";
241
+ }, {
242
+ action: "snapshot";
243
+ }>, z.ZodObject<{
244
+ action: z.ZodLiteral<"open">;
245
+ url: z.ZodString;
246
+ }, "strict", z.ZodTypeAny, {
247
+ url: string;
248
+ action: "open";
249
+ }, {
250
+ url: string;
251
+ action: "open";
252
+ }>, z.ZodObject<{
253
+ action: z.ZodLiteral<"click">;
254
+ selector: z.ZodString;
255
+ }, "strict", z.ZodTypeAny, {
256
+ action: "click";
257
+ selector: string;
258
+ }, {
259
+ action: "click";
260
+ selector: string;
261
+ }>, z.ZodObject<{
262
+ action: z.ZodLiteral<"hover">;
263
+ selector: z.ZodString;
264
+ }, "strict", z.ZodTypeAny, {
265
+ action: "hover";
266
+ selector: string;
267
+ }, {
268
+ action: "hover";
269
+ selector: string;
270
+ }>, z.ZodObject<{
271
+ action: z.ZodLiteral<"scroll">;
272
+ direction: z.ZodEnum<["up", "down"]>;
273
+ pixels: z.ZodNumber;
274
+ }, "strict", z.ZodTypeAny, {
275
+ action: "scroll";
276
+ direction: "up" | "down";
277
+ pixels: number;
278
+ }, {
279
+ action: "scroll";
280
+ direction: "up" | "down";
281
+ pixels: number;
282
+ }>]>, "many">>;
283
+ seconds: z.ZodDefault<z.ZodNumber>;
284
+ focus: z.ZodOptional<z.ZodEffects<z.ZodObject<{
285
+ x: z.ZodNumber;
286
+ y: z.ZodNumber;
287
+ width: z.ZodNumber;
288
+ height: z.ZodNumber;
289
+ }, "strict", z.ZodTypeAny, {
290
+ x: number;
291
+ y: number;
292
+ width: number;
293
+ height: number;
294
+ }, {
295
+ x: number;
296
+ y: number;
297
+ width: number;
298
+ height: number;
299
+ }>, {
300
+ x: number;
301
+ y: number;
302
+ width: number;
303
+ height: number;
304
+ }, {
305
+ x: number;
306
+ y: number;
307
+ width: number;
308
+ height: number;
309
+ }>>;
310
+ beats: z.ZodOptional<z.ZodArray<z.ZodObject<{
311
+ actionIndex: z.ZodNumber;
312
+ headline: z.ZodString;
313
+ explanation: z.ZodString;
314
+ }, "strict", z.ZodTypeAny, {
315
+ actionIndex: number;
316
+ headline: string;
317
+ explanation: string;
318
+ }, {
319
+ actionIndex: number;
320
+ headline: string;
321
+ explanation: string;
322
+ }>, "many">>;
323
+ privacyReviewed: z.ZodLiteral<true>;
324
+ }, "strict", z.ZodTypeAny, {
325
+ seconds: number;
326
+ url: string;
327
+ title: string;
328
+ purpose: string;
329
+ evidence: string;
330
+ expectedChange: string;
331
+ prepare: ({
332
+ action: "wait";
333
+ milliseconds: number;
334
+ } | {
335
+ text: string;
336
+ action: "type";
337
+ selector: string;
338
+ delayMs: number;
339
+ } | {
340
+ action: "snapshot";
341
+ } | {
342
+ url: string;
343
+ action: "open";
344
+ } | {
345
+ action: "click";
346
+ selector: string;
347
+ } | {
348
+ action: "hover";
349
+ selector: string;
350
+ } | {
351
+ action: "scroll";
352
+ direction: "up" | "down";
353
+ pixels: number;
354
+ })[];
355
+ actions: ({
356
+ action: "wait";
357
+ milliseconds: number;
358
+ } | {
359
+ text: string;
360
+ action: "type";
361
+ selector: string;
362
+ delayMs: number;
363
+ } | {
364
+ action: "snapshot";
365
+ } | {
366
+ url: string;
367
+ action: "open";
368
+ } | {
369
+ action: "click";
370
+ selector: string;
371
+ } | {
372
+ action: "hover";
373
+ selector: string;
374
+ } | {
375
+ action: "scroll";
376
+ direction: "up" | "down";
377
+ pixels: number;
378
+ })[];
379
+ privacyReviewed: true;
380
+ focus?: {
381
+ x: number;
382
+ y: number;
383
+ width: number;
384
+ height: number;
385
+ } | undefined;
386
+ beats?: {
387
+ actionIndex: number;
388
+ headline: string;
389
+ explanation: string;
390
+ }[] | undefined;
391
+ }, {
392
+ url: string;
393
+ title: string;
394
+ purpose: string;
395
+ evidence: string;
396
+ expectedChange: string;
397
+ privacyReviewed: true;
398
+ seconds?: number | undefined;
399
+ prepare?: ({
400
+ action: "wait";
401
+ milliseconds: number;
402
+ } | {
403
+ text: string;
404
+ action: "type";
405
+ selector: string;
406
+ delayMs?: number | undefined;
407
+ } | {
408
+ action: "snapshot";
409
+ } | {
410
+ url: string;
411
+ action: "open";
412
+ } | {
413
+ action: "click";
414
+ selector: string;
415
+ } | {
416
+ action: "hover";
417
+ selector: string;
418
+ } | {
419
+ action: "scroll";
420
+ direction: "up" | "down";
421
+ pixels: number;
422
+ })[] | undefined;
423
+ actions?: ({
424
+ action: "wait";
425
+ milliseconds: number;
426
+ } | {
427
+ text: string;
428
+ action: "type";
429
+ selector: string;
430
+ delayMs?: number | undefined;
431
+ } | {
432
+ action: "snapshot";
433
+ } | {
434
+ url: string;
435
+ action: "open";
436
+ } | {
437
+ action: "click";
438
+ selector: string;
439
+ } | {
440
+ action: "hover";
441
+ selector: string;
442
+ } | {
443
+ action: "scroll";
444
+ direction: "up" | "down";
445
+ pixels: number;
446
+ })[] | undefined;
447
+ focus?: {
448
+ x: number;
449
+ y: number;
450
+ width: number;
451
+ height: number;
452
+ } | undefined;
453
+ beats?: {
454
+ actionIndex: number;
455
+ headline: string;
456
+ explanation: string;
457
+ }[] | undefined;
458
+ }>, "many">;
459
+ }, "strict", z.ZodTypeAny, {
460
+ scenes: {
461
+ seconds: number;
462
+ url: string;
463
+ title: string;
464
+ purpose: string;
465
+ evidence: string;
466
+ expectedChange: string;
467
+ prepare: ({
468
+ action: "wait";
469
+ milliseconds: number;
470
+ } | {
471
+ text: string;
472
+ action: "type";
473
+ selector: string;
474
+ delayMs: number;
475
+ } | {
476
+ action: "snapshot";
477
+ } | {
478
+ url: string;
479
+ action: "open";
480
+ } | {
481
+ action: "click";
482
+ selector: string;
483
+ } | {
484
+ action: "hover";
485
+ selector: string;
486
+ } | {
487
+ action: "scroll";
488
+ direction: "up" | "down";
489
+ pixels: number;
490
+ })[];
491
+ actions: ({
492
+ action: "wait";
493
+ milliseconds: number;
494
+ } | {
495
+ text: string;
496
+ action: "type";
497
+ selector: string;
498
+ delayMs: number;
499
+ } | {
500
+ action: "snapshot";
501
+ } | {
502
+ url: string;
503
+ action: "open";
504
+ } | {
505
+ action: "click";
506
+ selector: string;
507
+ } | {
508
+ action: "hover";
509
+ selector: string;
510
+ } | {
511
+ action: "scroll";
512
+ direction: "up" | "down";
513
+ pixels: number;
514
+ })[];
515
+ privacyReviewed: true;
516
+ focus?: {
517
+ x: number;
518
+ y: number;
519
+ width: number;
520
+ height: number;
521
+ } | undefined;
522
+ beats?: {
523
+ actionIndex: number;
524
+ headline: string;
525
+ explanation: string;
526
+ }[] | undefined;
527
+ }[];
528
+ opening: string;
529
+ closing: string;
530
+ story: {
531
+ message: string;
532
+ before: string;
533
+ audience: string;
534
+ after: string;
535
+ captureBasis: "website" | "approved_demo";
536
+ disclosure?: string | undefined;
537
+ };
538
+ }, {
539
+ scenes: {
540
+ url: string;
541
+ title: string;
542
+ purpose: string;
543
+ evidence: string;
544
+ expectedChange: string;
545
+ privacyReviewed: true;
546
+ seconds?: number | undefined;
547
+ prepare?: ({
548
+ action: "wait";
549
+ milliseconds: number;
550
+ } | {
551
+ text: string;
552
+ action: "type";
553
+ selector: string;
554
+ delayMs?: number | undefined;
555
+ } | {
556
+ action: "snapshot";
557
+ } | {
558
+ url: string;
559
+ action: "open";
560
+ } | {
561
+ action: "click";
562
+ selector: string;
563
+ } | {
564
+ action: "hover";
565
+ selector: string;
566
+ } | {
567
+ action: "scroll";
568
+ direction: "up" | "down";
569
+ pixels: number;
570
+ })[] | undefined;
571
+ actions?: ({
572
+ action: "wait";
573
+ milliseconds: number;
574
+ } | {
575
+ text: string;
576
+ action: "type";
577
+ selector: string;
578
+ delayMs?: number | undefined;
579
+ } | {
580
+ action: "snapshot";
581
+ } | {
582
+ url: string;
583
+ action: "open";
584
+ } | {
585
+ action: "click";
586
+ selector: string;
587
+ } | {
588
+ action: "hover";
589
+ selector: string;
590
+ } | {
591
+ action: "scroll";
592
+ direction: "up" | "down";
593
+ pixels: number;
594
+ })[] | undefined;
595
+ focus?: {
596
+ x: number;
597
+ y: number;
598
+ width: number;
599
+ height: number;
600
+ } | undefined;
601
+ beats?: {
602
+ actionIndex: number;
603
+ headline: string;
604
+ explanation: string;
605
+ }[] | undefined;
606
+ }[];
607
+ opening: string;
608
+ closing: string;
609
+ story: {
610
+ message: string;
611
+ before: string;
612
+ audience: string;
613
+ after: string;
614
+ captureBasis: "website" | "approved_demo";
615
+ disclosure?: string | undefined;
616
+ };
617
+ }>;
618
+ type Input = z.infer<typeof releaseInput>;
619
+ type Plan = z.infer<typeof releasePlan>;
620
+ export type ReleaseStage = "setup" | "planning" | "login_needed" | "recording" | "building" | "ready" | "failed" | "cancelled";
621
+ export interface ReleaseJob {
622
+ id: string;
623
+ slug: string;
624
+ input: Input;
625
+ stage: ReleaseStage;
626
+ detail: string;
627
+ createdAt: number;
628
+ updatedAt: number;
629
+ editorUrl: string;
630
+ error?: string;
631
+ plan?: Plan;
632
+ recordings: {
633
+ path: string;
634
+ seconds: number;
635
+ title: string;
636
+ cues?: {
637
+ actionIndex: number;
638
+ start: number;
639
+ end: number;
640
+ }[];
641
+ }[];
642
+ editorOpened?: boolean;
643
+ }
644
+ interface Deps {
645
+ paths: WorkspacePaths;
646
+ editorOrigin: string;
647
+ bridgePort?: number;
648
+ headed?: boolean;
649
+ runAgent(job: ReleaseJob, prompt: string): Promise<void>;
650
+ cancelAgent(slug: string): void;
651
+ changed(job: ReleaseJob): void;
652
+ build(slug: string): Promise<void>;
653
+ open(url: string): Promise<void>;
654
+ }
655
+ export declare class ReleaseVideos {
656
+ private readonly deps;
657
+ private jobs;
658
+ private browsers;
659
+ private busy;
660
+ constructor(deps: Deps);
661
+ private get folder();
662
+ private save;
663
+ private update;
664
+ get(id: string): ReleaseJob;
665
+ list(): ReleaseJob[];
666
+ private active;
667
+ private check;
668
+ private sameSite;
669
+ private browser;
670
+ private exclusive;
671
+ create(raw: unknown): ReleaseJob;
672
+ private startAgent;
673
+ private login;
674
+ pause(id: string, detail: string): ReleaseJob;
675
+ resume(id: string): Promise<ReleaseJob>;
676
+ inspect(id: string, raw: unknown): Promise<{
677
+ job: ReleaseJob;
678
+ result?: undefined;
679
+ } | {
680
+ result: unknown;
681
+ job: ReleaseJob;
682
+ }>;
683
+ private action;
684
+ private safeClick;
685
+ private typeDemo;
686
+ capture(id: string, raw: unknown): Promise<ReleaseJob>;
687
+ private draft;
688
+ private fail;
689
+ agentStopped(slug: string, error?: string): void;
690
+ cancel(id: string): Promise<ReleaseJob>;
691
+ close(): Promise<void>;
692
+ }
693
+ export {};