@open-take/runtime 0.2.7 → 0.2.9
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/{cdp-capture-DXTkPLLF.js → cdp-capture-BA3qT1Tg.js} +557 -43
- package/dist/cdp-capture-BA3qT1Tg.js.map +1 -0
- package/dist/cdp-capture-Bg8hckzO.js +3 -0
- package/dist/index.d.ts +227 -29
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +303 -69
- package/dist/index.js.map +1 -1
- package/editor-dist/assets/index-BPzYPJNo.js +49 -0
- package/editor-dist/assets/{index-C5jr6lU8.css → index-tUAsN_8O.css} +1 -1
- package/editor-dist/index.html +2 -2
- package/package.json +2 -2
- package/dist/cdp-capture-DXTkPLLF.js.map +0 -1
- package/dist/cdp-capture-eKyYWSuf.js +0 -3
- package/editor-dist/assets/index-DWKvpdN6.js +0 -49
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BBox, CaptureLog, CompEvent, CompositionIssue, PlanOpts, ReviewBadge, TakeComposition, formatIssues, validateComposition } from "@open-take/compositor";
|
|
1
|
+
import { BBox, CaptureLog, CompEvent, CompositionIssue, CompositionIssue as CompositionIssue$1, PlanOpts, ReviewBadge, TakeComposition, formatIssues, validateComposition } from "@open-take/compositor";
|
|
2
2
|
|
|
3
3
|
//#region src/types.d.ts
|
|
4
4
|
/** A point in viewport CSS px (the capture coordinate space). */
|
|
@@ -49,6 +49,22 @@ type TakeStep = {
|
|
|
49
49
|
note?: string;
|
|
50
50
|
settleMs?: number;
|
|
51
51
|
zoom?: ZoomIntent;
|
|
52
|
+
} | {
|
|
53
|
+
action: "dropFiles";
|
|
54
|
+
/** paths of the files to drop (resolved against the process cwd) */
|
|
55
|
+
paths: string[];
|
|
56
|
+
toSelector?: string;
|
|
57
|
+
toText?: string;
|
|
58
|
+
to?: PlanPoint;
|
|
59
|
+
/** where the carry enters the viewport (default: top-right edge) */
|
|
60
|
+
from?: PlanPoint;
|
|
61
|
+
/** freehand polyline (viewport px); when set, overrides from→to */
|
|
62
|
+
path?: PlanPoint[];
|
|
63
|
+
/** how long the carry takes on screen (default 1400ms) */
|
|
64
|
+
durationMs?: number;
|
|
65
|
+
note?: string;
|
|
66
|
+
settleMs?: number;
|
|
67
|
+
zoom?: ZoomIntent;
|
|
52
68
|
} | {
|
|
53
69
|
action: "scroll";
|
|
54
70
|
/** pixels to scroll (positive = down); default ~0.8 × viewport height */
|
|
@@ -81,6 +97,25 @@ type TakeStep = {
|
|
|
81
97
|
note?: string;
|
|
82
98
|
settleMs?: number;
|
|
83
99
|
zoom?: ZoomIntent;
|
|
100
|
+
} | {
|
|
101
|
+
action: "navigate";
|
|
102
|
+
/** explicit destination — absolute, or relative to the current page */
|
|
103
|
+
url?: string;
|
|
104
|
+
/** read the destination off a link on the page instead (located the same
|
|
105
|
+
* way every other step locates: CSS `selector` or accessible `text`).
|
|
106
|
+
* Also the answer to a `target="_blank"` link: the screencast is bound
|
|
107
|
+
* to one page target and cannot follow a new tab, but it CAN go to the
|
|
108
|
+
* same href in the tab it is already recording. */
|
|
109
|
+
hrefFrom?: {
|
|
110
|
+
selector?: string;
|
|
111
|
+
text?: string;
|
|
112
|
+
};
|
|
113
|
+
/** params merged onto the resolved URL. The page links to the bare
|
|
114
|
+
* thing; the demo often needs it parameterised (`?speed=3` to fit a
|
|
115
|
+
* long animation in the shot) — which no click could ever produce. */
|
|
116
|
+
query?: Record<string, string>;
|
|
117
|
+
note?: string;
|
|
118
|
+
settleMs?: number;
|
|
84
119
|
} | {
|
|
85
120
|
action: "wait";
|
|
86
121
|
ms: number;
|
|
@@ -131,6 +166,19 @@ type CaptureOpts = {
|
|
|
131
166
|
* (constant speed). Recorded on each drag event so the compositor cursor
|
|
132
167
|
* replays the same easing and stays locked to the ink. */
|
|
133
168
|
dragEasing?: "linear" | "smooth";
|
|
169
|
+
/** Persistent Chrome profile dir (an authenticated capture — pair with
|
|
170
|
+
* `open-take auth`). Default: a throwaway temp profile, removed on close. */
|
|
171
|
+
userDataDir?: string;
|
|
172
|
+
/** false ⇒ drive a visible (headed) window instead of headless. The
|
|
173
|
+
* screencast records either way — the escape hatch for sites that gate on
|
|
174
|
+
* a real window. Default true. */
|
|
175
|
+
headless?: boolean;
|
|
176
|
+
/** Extra ms a beat's hold may spend waiting for the PAGE when `settleMs`
|
|
177
|
+
* expires while it is still working (network in flight, DOM mutating, a
|
|
178
|
+
* reveal animating). Never shortens a hold — see runtime/src/settle.ts.
|
|
179
|
+
* Default `DEFAULT_SETTLE_BUDGET_MS`; 0 restores the old fixed sleeps
|
|
180
|
+
* exactly. */
|
|
181
|
+
settleBudgetMs?: number;
|
|
134
182
|
};
|
|
135
183
|
/** Drive `plan` against the live app over CDP, return the ground-truth log. */
|
|
136
184
|
declare function captureTake(plan: TakePlan, opts: CaptureOpts): Promise<CaptureLog>;
|
|
@@ -166,6 +214,10 @@ type InspectOpts = {
|
|
|
166
214
|
warmupMs?: number;
|
|
167
215
|
/** explicit Chrome binary (else auto-resolved / auto-downloaded) */
|
|
168
216
|
chromePath?: string;
|
|
217
|
+
/** persistent Chrome profile dir (inspect an authenticated page) */
|
|
218
|
+
userDataDir?: string;
|
|
219
|
+
/** false ⇒ inspect via a visible (headed) window. Default true. */
|
|
220
|
+
headless?: boolean;
|
|
169
221
|
};
|
|
170
222
|
/** Open `url`, return its interactive elements (accessible name + bbox) —
|
|
171
223
|
* what an agent uses to choose a demo flow. Pure CDP, same as capture, so
|
|
@@ -178,8 +230,62 @@ declare function inspectPage(url: string, opts?: InspectOpts): Promise<InspectRe
|
|
|
178
230
|
declare function captureTakeCDP(plan: TakePlan, opts: CaptureOpts): Promise<CaptureLog>;
|
|
179
231
|
|
|
180
232
|
//#endregion
|
|
181
|
-
//#region src/
|
|
233
|
+
//#region src/nav.d.ts
|
|
182
234
|
//# sourceMappingURL=cdp-capture.d.ts.map
|
|
235
|
+
type NavigateTarget = {
|
|
236
|
+
/** the page's URL right now — the base for a relative `url`, and the
|
|
237
|
+
* destination itself when the step only carries `query` */
|
|
238
|
+
current: string;
|
|
239
|
+
/** explicit destination from the plan; absolute, or relative to `current` */
|
|
240
|
+
url?: string;
|
|
241
|
+
/** destination read off the page at capture time (already absolute) */
|
|
242
|
+
href?: string | null;
|
|
243
|
+
/** params merged onto whichever destination won. The reason this exists
|
|
244
|
+
* separately from `url`: the page links to the bare thing, but the demo
|
|
245
|
+
* needs it parameterised (`?speed=3` to compress a long animation into the
|
|
246
|
+
* shot). Clicking the link could never produce that. */
|
|
247
|
+
query?: Record<string, string>;
|
|
248
|
+
};
|
|
249
|
+
/**
|
|
250
|
+
* Resolve a navigate step to one absolute URL, or null when it cannot be.
|
|
251
|
+
*
|
|
252
|
+
* Precedence is `href` > `url` > `current`: a destination READ FROM THE PAGE
|
|
253
|
+
* beats one written in the plan, because it is the one that reflects what the
|
|
254
|
+
* app just did. `current` last means `{ query }` on its own is "reload this
|
|
255
|
+
* same page with these params" rather than an error.
|
|
256
|
+
*/
|
|
257
|
+
declare function resolveNavigateUrl(t: NavigateTarget): string | null;
|
|
258
|
+
|
|
259
|
+
//#endregion
|
|
260
|
+
//#region src/auth.d.ts
|
|
261
|
+
//# sourceMappingURL=nav.d.ts.map
|
|
262
|
+
/** The canonical profile dir for a named auth profile. Names are a single
|
|
263
|
+
* path segment — anything else ("../", "/", spaces-only) would escape or
|
|
264
|
+
* collide with other open-take state under ~/.open-take. */
|
|
265
|
+
declare function profileDir(name: string): string;
|
|
266
|
+
type AuthOpts = {
|
|
267
|
+
/** profile name (dir under ~/.open-take/profiles/) — or pass `dir` */
|
|
268
|
+
name: string;
|
|
269
|
+
/** explicit profile dir (overrides `name`) */
|
|
270
|
+
dir?: string;
|
|
271
|
+
/** where to send the user to log in (default about:blank) */
|
|
272
|
+
url?: string;
|
|
273
|
+
/** explicit Chrome binary (else auto-resolved / auto-downloaded) */
|
|
274
|
+
chromePath?: string;
|
|
275
|
+
};
|
|
276
|
+
type AuthResult = {
|
|
277
|
+
dir: string;
|
|
278
|
+
};
|
|
279
|
+
/**
|
|
280
|
+
* Open a headed Chrome on the persistent profile and resolve when the user is
|
|
281
|
+
* done (Enter on stdin, or the browser quits). The profile dir is returned so
|
|
282
|
+
* callers can print how to use it.
|
|
283
|
+
*/
|
|
284
|
+
declare function authProfile(opts: AuthOpts): Promise<AuthResult>;
|
|
285
|
+
|
|
286
|
+
//#endregion
|
|
287
|
+
//#region src/frame-diff.d.ts
|
|
288
|
+
//# sourceMappingURL=auth.d.ts.map
|
|
183
289
|
type FrameDiffResult = {
|
|
184
290
|
/** fraction of the frame's cells that changed (0..1) */
|
|
185
291
|
coverage: number;
|
|
@@ -228,7 +334,7 @@ declare function ensureChrome(explicit?: string): Promise<string>;
|
|
|
228
334
|
//#endregion
|
|
229
335
|
//#region src/edit-server.d.ts
|
|
230
336
|
type EditServerOpts = {
|
|
231
|
-
/** path to the take: its .mp4
|
|
337
|
+
/** path to the take: its .mp4, its `.take/` working dir, or a file in it. */
|
|
232
338
|
takePath: string;
|
|
233
339
|
port?: number;
|
|
234
340
|
/** open the browser at the served URL (default true). */
|
|
@@ -248,32 +354,54 @@ declare function startEditServer(opts: EditServerOpts, deps?: EditServerDeps): P
|
|
|
248
354
|
|
|
249
355
|
//#endregion
|
|
250
356
|
//#region src/take.d.ts
|
|
357
|
+
/** working-directory suffix: `demo.mp4` → `demo.take/` */
|
|
358
|
+
declare const TAKE_DIR_SUFFIX = ".take";
|
|
251
359
|
type TakePaths = {
|
|
252
|
-
/** shared
|
|
360
|
+
/** shared prefix, no extension — `<dir>/<name>` */
|
|
253
361
|
base: string;
|
|
254
362
|
name: string;
|
|
255
|
-
/** `<base>.mp4` — the polished, postable master */
|
|
363
|
+
/** `<base>.mp4` — the polished, postable master. The ONLY file outside `dir` */
|
|
256
364
|
mp4Path: string;
|
|
365
|
+
/** `<base>.take/` — the take's working directory; every path below is inside it */
|
|
366
|
+
dir: string;
|
|
257
367
|
compositionPath: string;
|
|
258
368
|
capturePath: string;
|
|
259
369
|
captureLogPath: string;
|
|
260
|
-
/**
|
|
370
|
+
/** `review.mp4` — draft copy with burned beat badges (disposable) */
|
|
261
371
|
reviewPath: string;
|
|
262
|
-
/**
|
|
263
|
-
*
|
|
372
|
+
/** `draft.mp4` — clean draft-quality re-render (disposable; never clobbers
|
|
373
|
+
* the postable master) */
|
|
264
374
|
draftPath: string;
|
|
265
|
-
/**
|
|
375
|
+
/** `ab.mp4` — the A/B variant reel (disposable) */
|
|
266
376
|
abPath: string;
|
|
267
|
-
/**
|
|
377
|
+
/** `prev.mp4` — the previous master, kept so "A" can mean revert */
|
|
268
378
|
prevPath: string;
|
|
269
|
-
/**
|
|
270
|
-
*
|
|
271
|
-
|
|
379
|
+
/** `prev.composition.json` — the composition from before a re-make, kept so
|
|
380
|
+
* hand-edited overrides survive a re-shoot that re-plans from scratch */
|
|
381
|
+
prevCompositionPath: string;
|
|
382
|
+
/** `frames.png` — the beat-aware contact sheet */
|
|
383
|
+
framesPath: string;
|
|
384
|
+
/** `dossier.md` — the agent's persisted exploration harvest (app thesis,
|
|
385
|
+
* hero candidates tried/rejected, selector map, content answers, hazards).
|
|
386
|
+
* Read it before re-exploring; it survives re-makes. */
|
|
272
387
|
dossierPath: string;
|
|
388
|
+
/** `notes.md` — the director's notes, appended one line per note by the
|
|
389
|
+
* editor's Agent panel. The user→agent channel; see notes.ts. */
|
|
390
|
+
notesPath: string;
|
|
391
|
+
/** `notes.cursor` — byte offset of the last note the agent consumed.
|
|
392
|
+
* Written ONLY by the reader, so it never races the server's append. */
|
|
393
|
+
notesCursorPath: string;
|
|
273
394
|
};
|
|
274
|
-
/**
|
|
275
|
-
*
|
|
395
|
+
/** A path inside the take's working dir — the ffmpeg intermediates and the
|
|
396
|
+
* per-beat frame sheets, which are members by position, not by name. */
|
|
397
|
+
declare const takeFile: (take: TakePaths, name: string) => string;
|
|
398
|
+
/** Point at any member and get the whole take. Resolution is a pure string
|
|
399
|
+
* transform except for a bare directory, which is scanned for `*.take/`.
|
|
400
|
+
* The master need not exist yet — `make --out` resolves before it writes. */
|
|
276
401
|
declare function resolveTakePaths(input: string): Promise<TakePaths>;
|
|
402
|
+
/** Create the working dir (idempotent). Everything except the master is
|
|
403
|
+
* written inside it, so any verb that writes calls this first. */
|
|
404
|
+
declare function ensureTakeDir(take: TakePaths): Promise<void>;
|
|
277
405
|
/** Friendly preflight: verbs die with a clear message instead of a raw ffmpeg
|
|
278
406
|
* ENOENT when a take is missing the files they need. Old takes (or cleaned
|
|
279
407
|
* ones) may have a composition + mp4 but no kept capture — those can be
|
|
@@ -288,16 +416,65 @@ type StagedPrev = {
|
|
|
288
416
|
* existing prev intact */
|
|
289
417
|
abort: () => Promise<void>;
|
|
290
418
|
};
|
|
291
|
-
/** Stage a copy of the current master so it becomes
|
|
292
|
-
*
|
|
293
|
-
*
|
|
294
|
-
*
|
|
295
|
-
*
|
|
419
|
+
/** Stage a copy of the current master so it becomes `prev.mp4` only AFTER the
|
|
420
|
+
* next render succeeds. A refused (validator) or crashed render must NOT
|
|
421
|
+
* clobber the existing revert point — that would make "keep the old one"
|
|
422
|
+
* replay the wrong version. No-op when there is no master yet. This is what
|
|
423
|
+
* makes "A" (keep the old one) a mechanical revert instead of a memory. */
|
|
296
424
|
declare function stagePrev(mp4Path: string, prevPath: string): Promise<StagedPrev>;
|
|
297
425
|
|
|
298
426
|
//#endregion
|
|
299
|
-
//#region src/
|
|
427
|
+
//#region src/notes.d.ts
|
|
300
428
|
//# sourceMappingURL=take.d.ts.map
|
|
429
|
+
type NotesRead = {
|
|
430
|
+
/** notes appended since the cursor, oldest first */
|
|
431
|
+
notes: string[];
|
|
432
|
+
/** how many notes the whole log holds */
|
|
433
|
+
total: number;
|
|
434
|
+
/** the byte offset now consumed */
|
|
435
|
+
cursor: number;
|
|
436
|
+
};
|
|
437
|
+
type WaitNotesResult = NotesRead & {
|
|
438
|
+
/** true when the deadline passed with nothing new (`notes` is then empty) */
|
|
439
|
+
timedOut: boolean;
|
|
440
|
+
};
|
|
441
|
+
type ReadNotesOpts = {
|
|
442
|
+
/** ignore the cursor and return every note in the log (still advances it) */
|
|
443
|
+
all?: boolean;
|
|
444
|
+
/** report without advancing the cursor — the next read sees them again */
|
|
445
|
+
peek?: boolean;
|
|
446
|
+
};
|
|
447
|
+
/** The notes appended since the last read, and how many the log holds.
|
|
448
|
+
* Advances the cursor unless `peek`, so a note is delivered exactly once. */
|
|
449
|
+
declare function readNotes(take: TakePaths, opts?: ReadNotesOpts): Promise<NotesRead>;
|
|
450
|
+
type WaitNotesOpts = ReadNotesOpts & {
|
|
451
|
+
/** give up after this long and return `timedOut` (default 30 min) */
|
|
452
|
+
timeoutMs?: number;
|
|
453
|
+
/** how often to stat the log (default 500ms) */
|
|
454
|
+
pollMs?: number;
|
|
455
|
+
/** after the log grows, wait this long before reading so a burst of notes
|
|
456
|
+
* arrives as ONE batch instead of waking the agent once per line
|
|
457
|
+
* (default 800ms) */
|
|
458
|
+
settleMs?: number;
|
|
459
|
+
/** stop waiting early (returns timedOut with no notes) */
|
|
460
|
+
signal?: AbortSignal;
|
|
461
|
+
};
|
|
462
|
+
/** Block until at least one unread note exists, then return it (and consume
|
|
463
|
+
* it). Returns immediately when the log already has unread notes — a waiter
|
|
464
|
+
* started after the user typed still delivers, which is what makes restarting
|
|
465
|
+
* one between rounds lossless. */
|
|
466
|
+
declare function waitForNotes(take: TakePaths, opts?: WaitNotesOpts): Promise<WaitNotesResult>;
|
|
467
|
+
/** The wake-up message. Written for an agent reading a finished background
|
|
468
|
+
* command: what came in, and the one thing it must re-read before editing. */
|
|
469
|
+
declare function formatNotes(take: TakePaths, res: NotesRead & {
|
|
470
|
+
timedOut?: boolean;
|
|
471
|
+
}, opts?: {
|
|
472
|
+
waited?: boolean;
|
|
473
|
+
}): string;
|
|
474
|
+
|
|
475
|
+
//#endregion
|
|
476
|
+
//#region src/review.d.ts
|
|
477
|
+
//# sourceMappingURL=notes.d.ts.map
|
|
301
478
|
/** "click Open menu" — the shared beat vocabulary (beat sheet rows, frames rows). */
|
|
302
479
|
declare function beatLabel(e: CompEvent): string;
|
|
303
480
|
declare function buildBeatSheet(comp: TakeComposition, name: string): string;
|
|
@@ -322,13 +499,15 @@ type ReviewOpts = {
|
|
|
322
499
|
declare function renderReview(take: TakePaths, opts?: ReviewOpts): Promise<{
|
|
323
500
|
reviewPath: string;
|
|
324
501
|
sheet: string;
|
|
502
|
+
warnings: CompositionIssue$1[];
|
|
325
503
|
}>;
|
|
326
|
-
/** Draft-quality re-render of the CURRENT composition to
|
|
504
|
+
/** Draft-quality re-render of the CURRENT composition to `draft.mp4` —
|
|
327
505
|
* no badges, no watermark, and never the master's path, so a mid-refine
|
|
328
506
|
* frame-check (edit → draft → `frames`) costs seconds without downgrading or
|
|
329
507
|
* clobbering the postable mp4. Disposable like the review copy. */
|
|
330
508
|
declare function renderDraft(take: TakePaths, opts?: ReviewOpts): Promise<{
|
|
331
509
|
draftPath: string;
|
|
510
|
+
warnings: CompositionIssue$1[];
|
|
332
511
|
}>;
|
|
333
512
|
type AbOpts = {
|
|
334
513
|
set: string;
|
|
@@ -442,10 +621,12 @@ type MakeTakeOpts = {
|
|
|
442
621
|
type MakeTakeResult = {
|
|
443
622
|
mp4Path: string;
|
|
444
623
|
compositionPath: string;
|
|
445
|
-
/** the
|
|
624
|
+
/** the take's working directory (`<out>.take/`) — everything but the master */
|
|
625
|
+
takeDir: string;
|
|
626
|
+
/** the KEPT raw capture (`<out>.take/capture.mp4`) — feed this back to
|
|
446
627
|
* renderComposition to refine without re-driving the app. */
|
|
447
628
|
capturePath: string;
|
|
448
|
-
/** the KEPT capture log (`<out>.capture.json`) — the ground-truth action
|
|
629
|
+
/** the KEPT capture log (`<out>.take/capture.json`) — the ground-truth action
|
|
449
630
|
* timing. `render` auto-loads it so the capture-lock check (a refine must not
|
|
450
631
|
* move an action's tMs) is enforced in the real refine loop, not just inside
|
|
451
632
|
* makeTake. */
|
|
@@ -454,10 +635,25 @@ type MakeTakeResult = {
|
|
|
454
635
|
/** steps the capture dropped (target not found) — surface these in the
|
|
455
636
|
* end-of-run summary; `--strict` turns them into a non-zero exit. */
|
|
456
637
|
skipped: NonNullable<CaptureLog["skipped"]>;
|
|
638
|
+
/** beats whose `settleMs` ran out before the PAGE was done. The capture
|
|
639
|
+
* waited (see runtime/src/settle.ts) so the take is still correct, but the
|
|
640
|
+
* plan is now known to under-budget those beats — the summary prints the
|
|
641
|
+
* number to write into `settleMs`, which is the whole point: it stops being
|
|
642
|
+
* a guess after the first run. */
|
|
643
|
+
settleWaits: NonNullable<CaptureLog["settleWaits"]>;
|
|
644
|
+
/** set when a `<canvas>`/`<video>` dominated the frame — the settle probe
|
|
645
|
+
* is blind inside one, so a quiet run proves nothing about those beats. */
|
|
646
|
+
paintedFrac?: number;
|
|
647
|
+
/** non-fatal validator findings on the rendered composition. Printed at the
|
|
648
|
+
* render boundary too, but that line is minutes deep in the progress output
|
|
649
|
+
* by the time the run ends — surface these in the end-of-run summary the
|
|
650
|
+
* same way `skipped` is, or they get scrolled past and ship. */
|
|
651
|
+
warnings: CompositionIssue$1[];
|
|
457
652
|
};
|
|
458
|
-
/** `<
|
|
459
|
-
*
|
|
460
|
-
*
|
|
653
|
+
/** `<video>.mp4` → `<video>.json` — the capture log sits beside its video
|
|
654
|
+
* (`capture.mp4` → `capture.json` inside the take's working dir). Deriving it
|
|
655
|
+
* by convention lets `render` find the ground-truth timing from just the
|
|
656
|
+
* `--video` path. */
|
|
461
657
|
declare const captureLogPathFor: (capturePath: string) => string;
|
|
462
658
|
/** Load the capture log that sits beside a capture video, if present. Returns
|
|
463
659
|
* undefined when there's no sibling (e.g. an old capture, or a hand-supplied
|
|
@@ -479,7 +675,7 @@ type RenderCompositionOpts = {
|
|
|
479
675
|
chromePath?: string;
|
|
480
676
|
/** render progress (0..1), forwarded from revideo — for a progress UI. */
|
|
481
677
|
onProgress?: (progress: number) => void;
|
|
482
|
-
/** Write the editable
|
|
678
|
+
/** Write the editable composition into the take's working dir (default true).
|
|
483
679
|
* Callers that already persisted the composition under their own
|
|
484
680
|
* concurrency guard can disable the second, unguarded write. */
|
|
485
681
|
writeCompositionSibling?: boolean;
|
|
@@ -492,6 +688,7 @@ type RenderCompositionOpts = {
|
|
|
492
688
|
declare function renderComposition(opts: RenderCompositionOpts): Promise<{
|
|
493
689
|
mp4Path: string;
|
|
494
690
|
compositionPath: string;
|
|
691
|
+
warnings: CompositionIssue$1[];
|
|
495
692
|
}>;
|
|
496
693
|
/** Convenience: load a `*.composition.json` and re-render over a saved capture.
|
|
497
694
|
* Auto-loads the sibling capture log (`<video>`.json) so the capture-lock check
|
|
@@ -510,10 +707,11 @@ declare function renderCompositionFile(opts: {
|
|
|
510
707
|
}): Promise<{
|
|
511
708
|
mp4Path: string;
|
|
512
709
|
compositionPath: string;
|
|
710
|
+
warnings: CompositionIssue$1[];
|
|
513
711
|
}>;
|
|
514
712
|
|
|
515
713
|
//#endregion
|
|
516
714
|
//# sourceMappingURL=index.d.ts.map
|
|
517
715
|
|
|
518
|
-
export { AbOpts, AnnotateOpts, CaptureOpts, CompositionIssue, EditServerOpts, FrameCell, FrameDiffResult, FramePhase, FramePlan, FrameRow, FramesOpts, InspectElement, InspectOpts, InspectResult, MakeTakeOpts, MakeTakeResult, RenderCompositionOpts, ReviewOpts, SAY_IT_CARD, StagedPrev, TakePaths, TakePlan, TakeStep, annotateCaptureLog, beatLabel, buildBadges, buildBeatSheet, buildFramePlan, buildFrameSheet, captureLogPathFor, captureTake, captureTakeCDP, diffFrames, ensureChrome, formatIssues, inspectPage, loadCaptureLogSibling, makeTake, openPath, renderAbReel, renderBeforeAfter, renderComposition, renderCompositionFile, renderDraft, renderFrames, renderReview, requireTakeFiles, resolveChrome, resolveTakePaths, revealPath, stagePrev, startEditServer, toDraft, validateComposition };
|
|
716
|
+
export { AbOpts, AnnotateOpts, AuthOpts, AuthResult, CaptureOpts, CompositionIssue, EditServerOpts, FrameCell, FrameDiffResult, FramePhase, FramePlan, FrameRow, FramesOpts, InspectElement, InspectOpts, InspectResult, MakeTakeOpts, MakeTakeResult, NavigateTarget, NotesRead, ReadNotesOpts, RenderCompositionOpts, ReviewOpts, SAY_IT_CARD, StagedPrev, TAKE_DIR_SUFFIX, TakePaths, TakePlan, TakeStep, WaitNotesOpts, WaitNotesResult, annotateCaptureLog, authProfile, beatLabel, buildBadges, buildBeatSheet, buildFramePlan, buildFrameSheet, captureLogPathFor, captureTake, captureTakeCDP, diffFrames, ensureChrome, ensureTakeDir, formatIssues, formatNotes, inspectPage, loadCaptureLogSibling, makeTake, openPath, profileDir, readNotes, renderAbReel, renderBeforeAfter, renderComposition, renderCompositionFile, renderDraft, renderFrames, renderReview, requireTakeFiles, resolveChrome, resolveNavigateUrl, resolveTakePaths, revealPath, stagePrev, startEditServer, takeFile, toDraft, validateComposition, waitForNotes };
|
|
519
717
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/types.ts","../src/capture.ts","../src/cdp-capture.ts","../src/frame-diff.ts","../src/cdp.ts","../src/edit-server.ts","../src/take.ts","../src/review.ts","../src/frames.ts","../src/index.ts"],"sourcesContent":null,"mappings":";;;;;KAcY,SAAA;;;AAAZ,CAAA;;;AAIY,KAAA,UAAA,GAAU,MAAA,GAAA,OAAA,GAAA,QAAA;AAMV,KAAA,QAAA,GAAQ;EAAA,MAAA,EAAA,OAAA;EAAA,QAOP,CAAA,EAAA,MAAA;EAAU,IAqBV,CAAA,EAAA,MAAA;EAAU,IAYV,CAAA,EAAA,MAAA;EAAS,QAIX,CAAA,EAAA,MAAA;EAAS,IAEP,CAAA,EAvCA,UAuCA;CAAS,GAAA;EAKC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/types.ts","../src/capture.ts","../src/cdp-capture.ts","../src/nav.ts","../src/auth.ts","../src/frame-diff.ts","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