@open-take/runtime 0.5.3 → 0.6.0
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-DfJeA-uY.js +4697 -0
- package/dist/cdp-capture-DfJeA-uY.js.map +1 -0
- package/dist/cdp-capture-ryEVA9lz.js +3 -0
- package/dist/index.d.ts +965 -84
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3503 -232
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/dist/cdp-capture-MBg9nQy3.js +0 -2370
- package/dist/cdp-capture-MBg9nQy3.js.map +0 -1
- package/dist/cdp-capture-gux1GPRE.js +0 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AuditCursorOpts, AuditRow, BBox, CaptureLog, CaptureLog as CaptureLog$1, CompEvent, CompositionIssue, CompositionIssue as CompositionIssue$1, LaunchComposition, LaunchIssue, PlanOpts, ReviewBadge, TakeComposition, TakeComposition as TakeComposition$1, auditCursor, formatIssues, validateComposition } from "@open-take/compositor";
|
|
1
|
+
import { AuditCursorOpts, AuditRow, BBox, CaptureLog, CaptureLog as CaptureLog$1, CompEvent, ComponentSource, ComponentsFile, ComponentsFile as ComponentsFile$1, CompositionIssue, CompositionIssue as CompositionIssue$1, LaunchComposition, LaunchIssue, MaterialsFile, MaterialsPage, MaterialsPage as MaterialsPage$1, PartFilesResult, PartFilesResult as PartFilesResult$1, PartsFile, PlanOpts, ReviewBadge, StateIndex, TakeComposition, TakeComposition as TakeComposition$1, VIEWER_TOOLS, auditCursor, changedLine, checkFilm, checkViewer, componentsLine, exampleSource, filmBeats, filmGallery, filmInitLines, filmListen, filmLook, filmPicture, filmProbe, filmReport, filmSheet, filmStills, filmStudy, followedLine, formatComponents, formatFilmBeats, formatFilmCheck, formatFilmListen, formatFilmLook, formatFilmProbe, formatFilmReport, formatFilmStudy, formatIssues, formatMaterials, initFilm, materialsFromProbe, materialsSummary, muxFilm, pageMaterialNote, partFilesLine, partsLine, patchFilm, prepareViewer, readPageMaterial, renderFilm, validateComposition, viewerCommand, viewerRounds } 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). */
|
|
@@ -222,6 +222,24 @@ type CaptureOpts = {
|
|
|
222
222
|
* Default `DEFAULT_SETTLE_BUDGET_MS`; 0 restores the old fixed sleeps
|
|
223
223
|
* exactly. */
|
|
224
224
|
settleBudgetMs?: number;
|
|
225
|
+
/** DOM STATES: save the page's UI structure at every settled moment (after
|
|
226
|
+
* the warmup, then after each step's final hold) so a launch film can
|
|
227
|
+
* re-render the real interface as live DOM — see runtime/src/dom-state.ts.
|
|
228
|
+
* Read-only on the live page; costs a few hundred ms of take time per
|
|
229
|
+
* state (reported). Lands in `states/` beside the capture video, and on
|
|
230
|
+
* the log as `states` + per-event `state`/`target`. Default false. */
|
|
231
|
+
states?: boolean;
|
|
232
|
+
/** with `states`: measure each saved state's parts in the fidelity page
|
|
233
|
+
* (states/<id>/parts.json + crisp pictures) — `make` then gathers them
|
|
234
|
+
* into <name>.take/components.json. Default true; false skips both. */
|
|
235
|
+
components?: boolean;
|
|
236
|
+
/** PRODUCT AUDIO: record what the page sends to its speakers (every
|
|
237
|
+
* AudioContext and playing media element) onto the capture timeline, and
|
|
238
|
+
* list the audio files it fetched — `product-audio.wav`,
|
|
239
|
+
* `product-sound.json` and `product-sounds/` beside the capture video (see
|
|
240
|
+
* runtime/src/product-audio.ts). Nothing is created on a silent page; a
|
|
241
|
+
* failure is a note, never a failed take. Default true. */
|
|
242
|
+
productAudio?: boolean;
|
|
225
243
|
};
|
|
226
244
|
/** Drive `plan` against the live app over CDP, return the ground-truth log. */
|
|
227
245
|
declare function captureTake(plan: TakePlan, opts: CaptureOpts): Promise<CaptureLog$1>;
|
|
@@ -266,6 +284,110 @@ type InspectOpts = {
|
|
|
266
284
|
* what an agent uses to choose a demo flow. Pure CDP, same as capture, so
|
|
267
285
|
* the reported coordinate space matches what capture will drive against. */
|
|
268
286
|
declare function inspectPage(url: string, opts?: InspectOpts): Promise<InspectResult>; //#endregion
|
|
287
|
+
//#region src/cdp.d.ts
|
|
288
|
+
declare function resolveChrome(explicit?: string): string | null;
|
|
289
|
+
declare function ensureChrome(explicit?: string): Promise<string>;
|
|
290
|
+
/** How long a request waits for Chrome's answer before it is given up. Most
|
|
291
|
+
* commands answer in milliseconds; a page whose renderer is stuck (or a
|
|
292
|
+
* Chrome that went quiet) never answers at all, and without a bound the take
|
|
293
|
+
* waits forever with Chrome idle — seen in 2 of 6 multi-screen shoots. */
|
|
294
|
+
|
|
295
|
+
type CdpSendOptions = {
|
|
296
|
+
/** this request's budget in ms; 0 or Infinity waits as long as it takes */
|
|
297
|
+
timeoutMs?: number;
|
|
298
|
+
};
|
|
299
|
+
declare class CDP {
|
|
300
|
+
private ws;
|
|
301
|
+
private id;
|
|
302
|
+
private pending;
|
|
303
|
+
private handlers;
|
|
304
|
+
/** why the connection is gone, once it is — later sends fail at once */
|
|
305
|
+
private closedWhy;
|
|
306
|
+
private readonly timeoutMs;
|
|
307
|
+
private constructor();
|
|
308
|
+
/** Open a session on `wsUrl`. `timeoutMs` replaces the per-request default
|
|
309
|
+
* base (see cdpTimeoutFor; slow commands get 4× it). */
|
|
310
|
+
static connect(wsUrl: string, opts?: {
|
|
311
|
+
timeoutMs?: number;
|
|
312
|
+
}): Promise<CDP>;
|
|
313
|
+
/** Send one command. Rejects with a CdpError if no answer arrives within its
|
|
314
|
+
* budget (`opts.timeoutMs`, else cdpTimeoutFor), or the connection closes /
|
|
315
|
+
* the page crashes first — it never waits forever. */
|
|
316
|
+
send<T = unknown>(method: string, params?: Record<string, unknown>, opts?: CdpSendOptions): Promise<T>;
|
|
317
|
+
on<T = unknown>(method: string, fn: (params: T) => void): void;
|
|
318
|
+
/** requests still waiting for an answer */
|
|
319
|
+
get waiting(): number;
|
|
320
|
+
/** whether the connection is gone (closed, failed) */
|
|
321
|
+
get closed(): boolean;
|
|
322
|
+
close(): void;
|
|
323
|
+
private gone;
|
|
324
|
+
private failAll;
|
|
325
|
+
}
|
|
326
|
+
type Browser = {
|
|
327
|
+
cdp: CDP;
|
|
328
|
+
/** the page target's id (for browser-level window commands) */
|
|
329
|
+
targetId: string;
|
|
330
|
+
/** the DevTools port this Chrome listens on — a second page target created
|
|
331
|
+
* with `Target.createTarget` is reached at
|
|
332
|
+
* `ws://127.0.0.1:<port>/devtools/page/<targetId>` (dom-state fidelity). */
|
|
333
|
+
port: number;
|
|
334
|
+
/** kill the browser process and remove its temp profile */
|
|
335
|
+
close: () => Promise<void>;
|
|
336
|
+
};
|
|
337
|
+
/** Launch headless Chrome, return a CDP session bound to its page target. */
|
|
338
|
+
|
|
339
|
+
/** What the capture got during each drag: the pictures the page sent while
|
|
340
|
+
* the button was down, how many a second, and the longest gap between two.
|
|
341
|
+
* A drag the page draws all the way (a stroke, a moved shape) sends a picture
|
|
342
|
+
* per frame on a quiet machine; a few a second there means the capture fell
|
|
343
|
+
* behind (another render or capture running at the same time is the usual
|
|
344
|
+
* cause, 6.6 a second against 54 for the same drag re-made alone) and the
|
|
345
|
+
* film replays those few.
|
|
346
|
+
*
|
|
347
|
+
* A gap alone is not a loss: a page sends nothing while nothing changes, and
|
|
348
|
+
* every eased stroke has a slow start and end, so a drag whose pointer barely
|
|
349
|
+
* moves for 100 ms (a canvas app waiting out its drag threshold) is right to
|
|
350
|
+
* send nothing. `holes` counts only the gaps that ARE losses: between two
|
|
351
|
+
* pictures, longer than 40 ms (two frames at 60 fps), while the pointer moved
|
|
352
|
+
* at least 16 px along the drag's own eased path. Measured on tldraw: a quiet
|
|
353
|
+
* machine had none in 18 drags; the same plan under a saturated CPU had 22,
|
|
354
|
+
* the pointer moving up to 74 px through one. `deliveryMs` is the median time
|
|
355
|
+
* from Chrome drawing a picture to the recorder receiving it, the busy-machine
|
|
356
|
+
* evidence: ~30 ms quiet, 45 saturated, 134 in a take whose drags lost up to
|
|
357
|
+
* 118 px at a time. */
|
|
358
|
+
type DragCadence = {
|
|
359
|
+
/** index in the log's events */
|
|
360
|
+
event: number;
|
|
361
|
+
tMs: number;
|
|
362
|
+
durationMs: number;
|
|
363
|
+
frames: number;
|
|
364
|
+
perSecond: number;
|
|
365
|
+
maxGapMs: number;
|
|
366
|
+
/** gaps that lost moving pictures (see above); 0 when the drag has no path */
|
|
367
|
+
holes: number;
|
|
368
|
+
/** the hole the pointer moved furthest through */
|
|
369
|
+
worstHole?: {
|
|
370
|
+
atMs: number;
|
|
371
|
+
gapMs: number;
|
|
372
|
+
movedPx: number;
|
|
373
|
+
};
|
|
374
|
+
/** median ms from drawn to received, over this drag's pictures */
|
|
375
|
+
deliveryMs?: number;
|
|
376
|
+
};
|
|
377
|
+
type DragPt = {
|
|
378
|
+
x: number;
|
|
379
|
+
y: number;
|
|
380
|
+
};
|
|
381
|
+
declare function dragCadence(events: {
|
|
382
|
+
kind?: string;
|
|
383
|
+
tMs: number;
|
|
384
|
+
durationMs?: number | null;
|
|
385
|
+
x?: number;
|
|
386
|
+
y?: number;
|
|
387
|
+
to?: DragPt;
|
|
388
|
+
path?: DragPt[];
|
|
389
|
+
ease?: string;
|
|
390
|
+
}[], frameOffsetsMs: number[], arrivalOffsetsMs?: number[]): DragCadence[]; //#endregion
|
|
269
391
|
//#region src/take.d.ts
|
|
270
392
|
/** working-directory suffix: `demo.mp4` → `demo.take/` */
|
|
271
393
|
declare const TAKE_DIR_SUFFIX = ".take";
|
|
@@ -363,20 +485,20 @@ type AuthResult = {
|
|
|
363
485
|
*/
|
|
364
486
|
declare function authProfile(opts: AuthOpts): Promise<AuthResult>;
|
|
365
487
|
|
|
366
|
-
//#endregion
|
|
367
|
-
//#region src/cdp.d.ts
|
|
368
|
-
//# sourceMappingURL=auth.d.ts.map
|
|
369
|
-
declare function resolveChrome(explicit?: string): string | null;
|
|
370
|
-
declare function ensureChrome(explicit?: string): Promise<string>;
|
|
371
|
-
|
|
372
488
|
//#endregion
|
|
373
489
|
//#region src/cdp-capture.d.ts
|
|
490
|
+
//# sourceMappingURL=auth.d.ts.map
|
|
374
491
|
/** High-fps twin of captureTake. Drives + records via CDP. */
|
|
375
492
|
declare function captureTakeCDP(plan: TakePlan, opts: CaptureOpts): Promise<CaptureLog$1>;
|
|
376
493
|
|
|
377
494
|
//#endregion
|
|
378
495
|
//#region src/check-take.d.ts
|
|
379
|
-
|
|
496
|
+
/** CI containment. A plan is agent-written, and the agent reads the very page
|
|
497
|
+
* it films — a hostile string ON that page can talk its way into a plan step.
|
|
498
|
+
* When OPEN_TAKE_ALLOWED_ORIGINS is set (comma-separated origins; `open-take
|
|
499
|
+
* ci` sets it to the app's own origin), any navigation outside the list is a
|
|
500
|
+
* skipped step, never a request. Unset (the interactive default), everything
|
|
501
|
+
* is allowed — a human is watching. */
|
|
380
502
|
/** An affordance the take is expected to demonstrate (e.g. a changeset's
|
|
381
503
|
* user-facing features). Caller-supplied — the checker carries no
|
|
382
504
|
* app-specific knowledge. */
|
|
@@ -626,8 +748,177 @@ declare function ciAllowedOrigins(url: string, extra?: string): string;
|
|
|
626
748
|
* both are its domain (bundledSkill lives with the package). */
|
|
627
749
|
declare function ciTake(opts: CiOpts): Promise<CiResult>;
|
|
628
750
|
|
|
751
|
+
//#endregion
|
|
752
|
+
//#region src/components.d.ts
|
|
753
|
+
type InventoryOpts = {
|
|
754
|
+
/** a shoot's folder, a take (its .mp4 or .take/), a saved screen, or a folder of them */
|
|
755
|
+
path: string;
|
|
756
|
+
/** measure only this screen (when it has no parts.json, or with minArea) */
|
|
757
|
+
state?: string;
|
|
758
|
+
/** re-measure with this size floor (a fraction of the screen); measures
|
|
759
|
+
* every screen in scope again */
|
|
760
|
+
minArea?: number;
|
|
761
|
+
/** false: never open Chrome — screens without parts.json stay unmeasured */
|
|
762
|
+
measure?: boolean;
|
|
763
|
+
chromePath?: string;
|
|
764
|
+
/** write components.json (default true) */
|
|
765
|
+
write?: boolean;
|
|
766
|
+
};
|
|
767
|
+
type InventoryResult = {
|
|
768
|
+
file: ComponentsFile$1;
|
|
769
|
+
/** components.json, when written */
|
|
770
|
+
path?: string;
|
|
771
|
+
/** each part as a file of its own (<root>/parts/), when written and
|
|
772
|
+
* any screen's page gave them */
|
|
773
|
+
parts?: PartFilesResult$1;
|
|
774
|
+
source: ComponentSource;
|
|
775
|
+
/** screens measured now, and how long that took in all (Chrome included) */
|
|
776
|
+
measured: string[];
|
|
777
|
+
measureMs: number;
|
|
778
|
+
/** screens that could not be measured, and why */
|
|
779
|
+
failed: {
|
|
780
|
+
state: string;
|
|
781
|
+
why: string;
|
|
782
|
+
}[];
|
|
783
|
+
};
|
|
784
|
+
/** parts.json is there and was measured with full values (each part's
|
|
785
|
+
* `text`, which the probe has written since it kept values whole) */
|
|
786
|
+
|
|
787
|
+
/** Measure what is missing, gather, and write `<root>/components.json`. */
|
|
788
|
+
declare function inventoryComponents(opts: InventoryOpts): Promise<InventoryResult>;
|
|
789
|
+
|
|
790
|
+
//#endregion
|
|
791
|
+
//#region src/defect-report.d.ts
|
|
792
|
+
//# sourceMappingURL=components.d.ts.map
|
|
793
|
+
/** Every gate reports the same shape: PlanIssue (lint-plan), PrecheckIssue
|
|
794
|
+
* (precheck), CompositionIssue (validate / check-take / cursor audit) are
|
|
795
|
+
* structurally identical, so one report type carries them all. */
|
|
796
|
+
type GateIssue = {
|
|
797
|
+
severity: "error" | "warn";
|
|
798
|
+
path: string;
|
|
799
|
+
message: string;
|
|
800
|
+
fix?: string;
|
|
801
|
+
};
|
|
802
|
+
/** which gate measured the finding */
|
|
803
|
+
type DefectGate = "plan-lint" | "precheck" | "capture" | "post-shoot" | "composition";
|
|
804
|
+
type Defect = GateIssue & {
|
|
805
|
+
gate: DefectGate;
|
|
806
|
+
};
|
|
807
|
+
type DefectReport = {
|
|
808
|
+
format: "open-take-defects/1";
|
|
809
|
+
verb: "make" | "render" | "check";
|
|
810
|
+
/** the human verdict line, verbatim */
|
|
811
|
+
verdict: string;
|
|
812
|
+
/** what the process exits with after printing this block */
|
|
813
|
+
exitCode: number;
|
|
814
|
+
/** the plan that was judged (make only — render/check judge a take) */
|
|
815
|
+
plan?: string;
|
|
816
|
+
/** the delivered master, when one exists */
|
|
817
|
+
master?: string;
|
|
818
|
+
errors: number;
|
|
819
|
+
warns: number;
|
|
820
|
+
defects: Defect[];
|
|
821
|
+
note: string;
|
|
822
|
+
repair: string;
|
|
823
|
+
};
|
|
824
|
+
declare const DEFECTS_OPEN = "--- open-take defects v1 ---";
|
|
825
|
+
declare const DEFECTS_CLOSE = "--- end open-take defects ---";
|
|
826
|
+
declare const asDefects: (gate: DefectGate, issues: readonly GateIssue[]) => Defect[];
|
|
827
|
+
/** capture-time skipped steps as defects — error-severity: the beat is gone
|
|
828
|
+
* from the video, which is exactly what the strict exit refuses. The fix
|
|
829
|
+
* copy follows the reason: a focus skip means the target RESOLVED and the
|
|
830
|
+
* not-found copy ("point the target at an element that exists") would send
|
|
831
|
+
* the repair round at the wrong dimension. */
|
|
832
|
+
declare const skippedDefects: (skipped: readonly {
|
|
833
|
+
step: number;
|
|
834
|
+
action: string;
|
|
835
|
+
target?: string;
|
|
836
|
+
reason: string;
|
|
837
|
+
}[]) => Defect[];
|
|
838
|
+
/** Settle underruns whose beat DID go quiet carry a measured number the
|
|
839
|
+
* author can copy — the one defect class where the fix is literally a
|
|
840
|
+
* value. Beats that never settled (`reason: "budget"`) are excluded: telling
|
|
841
|
+
* an author to raise settleMs toward a number that satisfies nothing is a
|
|
842
|
+
* ratchet, and the human summary already explains that case. */
|
|
843
|
+
declare const settleDefects: (settleWaits: readonly {
|
|
844
|
+
step: number;
|
|
845
|
+
action: string;
|
|
846
|
+
heldMs: number;
|
|
847
|
+
waitedMs: number;
|
|
848
|
+
reason: "idle" | "budget" | "unavailable";
|
|
849
|
+
}[]) => Defect[];
|
|
850
|
+
declare function buildDefectReport(opts: {
|
|
851
|
+
verb: DefectReport["verb"];
|
|
852
|
+
verdict: string;
|
|
853
|
+
exitCode: number;
|
|
854
|
+
plan?: string;
|
|
855
|
+
master?: string;
|
|
856
|
+
defects: Defect[];
|
|
857
|
+
}): DefectReport;
|
|
858
|
+
/** the fixed stdout section — everything between the sentinels is one JSON
|
|
859
|
+
* object, so the driving agent extracts it with two line matches and no
|
|
860
|
+
* scraping of the prose above it */
|
|
861
|
+
declare const renderDefectBlock: (report: DefectReport) => string;
|
|
862
|
+
|
|
863
|
+
//#endregion
|
|
864
|
+
//#region src/dom-state.d.ts
|
|
865
|
+
//# sourceMappingURL=defect-report.d.ts.map
|
|
866
|
+
|
|
867
|
+
type DomStateItem = NonNullable<CaptureLog$1["states"]>["items"][number];
|
|
868
|
+
/**
|
|
869
|
+
* Convert every raw state to `state.html` + `index.json`, drop the raw
|
|
870
|
+
* MHTML/probe, then re-open each state in a second page of the SAME browser
|
|
871
|
+
* (viewport-sized, deviceScaleFactor 1) and score it against `live.png`.
|
|
872
|
+
* Returns the items for the capture log. A state that fails conversion or
|
|
873
|
+
* the check stays on disk with `fidelity.ok: false`; nothing here throws
|
|
874
|
+
* past a single state.
|
|
875
|
+
*/
|
|
876
|
+
|
|
877
|
+
/**
|
|
878
|
+
* Measure the parts of the saved state open in `cdp` (state.html, ready —
|
|
879
|
+
* renderState has run) with the compositor's component probe, take a crisp
|
|
880
|
+
* picture of each kept part (its ink or box ± pad, 3×, the rest of the page
|
|
881
|
+
* hidden and see-through — what lift(…, { around: "clear" }) shows), and
|
|
882
|
+
* write `<dir>/parts.json`. Pictures are content-named files in `assetsDir`
|
|
883
|
+
* (shared with the state's other files), referenced relative to `dir`. The
|
|
884
|
+
* page's look is put back afterwards (the background override persists
|
|
885
|
+
* across navigations in this target).
|
|
886
|
+
*/
|
|
887
|
+
declare function measureParts(cdp: CDP, opts: {
|
|
888
|
+
dir: string;
|
|
889
|
+
index: StateIndex;
|
|
890
|
+
assetsDir: string;
|
|
891
|
+
pictures?: boolean;
|
|
892
|
+
/** keep each part's elements for its file (parts-dom.json) — default true */
|
|
893
|
+
dom?: boolean;
|
|
894
|
+
minArea?: number;
|
|
895
|
+
}): Promise<PartsFile>;
|
|
896
|
+
/**
|
|
897
|
+
* Measure the parts of saved states that already exist (each a folder with
|
|
898
|
+
* state.html + index.json) — for states saved before parts.json, which
|
|
899
|
+
* `open-take components` meets. One page in `browser`, emulated at each
|
|
900
|
+
* state's own viewport @1×, network blocked, as the fidelity check opens
|
|
901
|
+
* them. A state that cannot be measured is a line in `failed`.
|
|
902
|
+
*/
|
|
903
|
+
declare function measureStateDirs(args: {
|
|
904
|
+
browser: Browser;
|
|
905
|
+
dirs: string[];
|
|
906
|
+
pictures?: boolean;
|
|
907
|
+
minArea?: number;
|
|
908
|
+
}): Promise<{
|
|
909
|
+
measured: {
|
|
910
|
+
dir: string;
|
|
911
|
+
parts: PartsFile;
|
|
912
|
+
}[];
|
|
913
|
+
failed: {
|
|
914
|
+
dir: string;
|
|
915
|
+
why: string;
|
|
916
|
+
}[];
|
|
917
|
+
}>;
|
|
918
|
+
|
|
629
919
|
//#endregion
|
|
630
920
|
//#region src/edit-server.d.ts
|
|
921
|
+
/** One stderr line: what the states cost the take and how they scored. */
|
|
631
922
|
type EditServerOpts = {
|
|
632
923
|
/** path to the take: its .mp4, its `.take/` working dir, or a file in it. */
|
|
633
924
|
takePath: string;
|
|
@@ -704,6 +995,52 @@ type AnnotateOpts = {
|
|
|
704
995
|
* returned unchanged. Never throws.
|
|
705
996
|
*/
|
|
706
997
|
declare function annotateCaptureLog(log: CaptureLog$1, videoPath: string, opts?: AnnotateOpts): Promise<CaptureLog$1>;
|
|
998
|
+
/**
|
|
999
|
+
* Pure: in frames of one region over time (first = just before the input,
|
|
1000
|
+
* last = how it ends up), the first frame showing at least half of the final
|
|
1001
|
+
* change (`at`) and the first from which the region stays as it ends up
|
|
1002
|
+
* (`done`), as frame indices. Only pixels that changed by more than
|
|
1003
|
+
* RESULT_DELTA count. Null when the first and last frames are alike.
|
|
1004
|
+
*/
|
|
1005
|
+
declare function resultFrames(frames: Uint8Array[]): {
|
|
1006
|
+
at: number;
|
|
1007
|
+
done: number;
|
|
1008
|
+
} | null;
|
|
1009
|
+
/**
|
|
1010
|
+
* Pure: where `state` (a w×h grey frame) sits in `video` (same size): the
|
|
1011
|
+
* shift (dx, dy) in px — a state point p shows at p + (dx, dy) — found
|
|
1012
|
+
* coarse (every 2 px over ±reach) then fine (±1 px, sub-pixel by a parabola),
|
|
1013
|
+
* with the mean difference and the share of pixels still differing by more
|
|
1014
|
+
* than RESULT_DELTA at the nearest whole shift.
|
|
1015
|
+
*/
|
|
1016
|
+
declare function alignFrames(video: Uint8Array, state: Uint8Array, w: number, h: number, reach?: number): {
|
|
1017
|
+
dx: number;
|
|
1018
|
+
dy: number;
|
|
1019
|
+
meanDiff: number;
|
|
1020
|
+
diffFrac: number;
|
|
1021
|
+
};
|
|
1022
|
+
/**
|
|
1023
|
+
* Each saved state's `seam` (see CaptureLog.states): the recording's frame at
|
|
1024
|
+
* the state's time against the state's `live.png`, at the viewport's CSS
|
|
1025
|
+
* size. A state without its screenshot, or a frame that cannot be read, is
|
|
1026
|
+
* left as it was. Never throws.
|
|
1027
|
+
*/
|
|
1028
|
+
declare function measureStateSeams(log: CaptureLog$1, videoPath: string, statesDir: string, opts?: {
|
|
1029
|
+
ffmpegBin?: string;
|
|
1030
|
+
}): Promise<CaptureLog$1>;
|
|
1031
|
+
/**
|
|
1032
|
+
* Re-read a kept take's recording for the readings above — each action's
|
|
1033
|
+
* `result` and each state's `seam` (plus the effect boxes, recomputed the
|
|
1034
|
+
* same way) — and write them into its capture.json. For takes made before
|
|
1035
|
+
* they were recorded; `settledMs` comes from the live page and cannot be
|
|
1036
|
+
* added afterwards. Returns what changed, in counts.
|
|
1037
|
+
*/
|
|
1038
|
+
declare function measureTake(takeDir: string, opts?: AnnotateOpts): Promise<{
|
|
1039
|
+
results: number;
|
|
1040
|
+
actions: number;
|
|
1041
|
+
seams: number;
|
|
1042
|
+
states: number;
|
|
1043
|
+
}>;
|
|
707
1044
|
|
|
708
1045
|
//#endregion
|
|
709
1046
|
//#region src/frames.d.ts
|
|
@@ -788,8 +1125,32 @@ type PlanIssue = {
|
|
|
788
1125
|
declare function lintPlan(plan: unknown): PlanIssue[];
|
|
789
1126
|
|
|
790
1127
|
//#endregion
|
|
791
|
-
//#region src/
|
|
1128
|
+
//#region src/materials.d.ts
|
|
792
1129
|
//# sourceMappingURL=lint-plan.d.ts.map
|
|
1130
|
+
|
|
1131
|
+
type MaterialsInventory = {
|
|
1132
|
+
pages: MaterialsPage$1[];
|
|
1133
|
+
source: ComponentSource;
|
|
1134
|
+
/** pages read now from a saved screen */
|
|
1135
|
+
read: string[];
|
|
1136
|
+
failed: {
|
|
1137
|
+
state: string;
|
|
1138
|
+
why: string;
|
|
1139
|
+
}[];
|
|
1140
|
+
};
|
|
1141
|
+
/** `open-take materials`: the materials.json of each page a source's saved
|
|
1142
|
+
* screens show — read from a state.html where a page has none. */
|
|
1143
|
+
declare function inventoryMaterials(opts: {
|
|
1144
|
+
path: string;
|
|
1145
|
+
state?: string;
|
|
1146
|
+
chromePath?: string;
|
|
1147
|
+
/** false: never open Chrome */
|
|
1148
|
+
measure?: boolean;
|
|
1149
|
+
}): Promise<MaterialsInventory>;
|
|
1150
|
+
|
|
1151
|
+
//#endregion
|
|
1152
|
+
//#region src/nav.d.ts
|
|
1153
|
+
//# sourceMappingURL=materials.d.ts.map
|
|
793
1154
|
type NavigateTarget = {
|
|
794
1155
|
/** the page's URL right now — the base for a relative `url`, and the
|
|
795
1156
|
* destination itself when the step only carries `query` */
|
|
@@ -953,81 +1314,8 @@ declare function precheckPlan(steps: TakePlan["steps"], evalJson: (js: string) =
|
|
|
953
1314
|
sleep?: (ms: number) => Promise<void>;
|
|
954
1315
|
}): Promise<PrecheckIssue[]>;
|
|
955
1316
|
|
|
956
|
-
//#endregion
|
|
957
|
-
//#region src/defect-report.d.ts
|
|
958
|
-
/** Every gate reports the same shape: PlanIssue (lint-plan), PrecheckIssue
|
|
959
|
-
* (precheck), CompositionIssue (validate / check-take / cursor audit) are
|
|
960
|
-
* structurally identical, so one report type carries them all. */
|
|
961
|
-
type GateIssue = {
|
|
962
|
-
severity: "error" | "warn";
|
|
963
|
-
path: string;
|
|
964
|
-
message: string;
|
|
965
|
-
fix?: string;
|
|
966
|
-
};
|
|
967
|
-
/** which gate measured the finding */
|
|
968
|
-
type DefectGate = "plan-lint" | "precheck" | "capture" | "post-shoot" | "composition";
|
|
969
|
-
type Defect = GateIssue & {
|
|
970
|
-
gate: DefectGate;
|
|
971
|
-
};
|
|
972
|
-
type DefectReport = {
|
|
973
|
-
format: "open-take-defects/1";
|
|
974
|
-
verb: "make" | "render" | "check";
|
|
975
|
-
/** the human verdict line, verbatim */
|
|
976
|
-
verdict: string;
|
|
977
|
-
/** what the process exits with after printing this block */
|
|
978
|
-
exitCode: number;
|
|
979
|
-
/** the plan that was judged (make only — render/check judge a take) */
|
|
980
|
-
plan?: string;
|
|
981
|
-
/** the delivered master, when one exists */
|
|
982
|
-
master?: string;
|
|
983
|
-
errors: number;
|
|
984
|
-
warns: number;
|
|
985
|
-
defects: Defect[];
|
|
986
|
-
note: string;
|
|
987
|
-
repair: string;
|
|
988
|
-
};
|
|
989
|
-
declare const DEFECTS_OPEN = "--- open-take defects v1 ---";
|
|
990
|
-
declare const DEFECTS_CLOSE = "--- end open-take defects ---";
|
|
991
|
-
declare const asDefects: (gate: DefectGate, issues: readonly GateIssue[]) => Defect[];
|
|
992
|
-
/** capture-time skipped steps as defects — error-severity: the beat is gone
|
|
993
|
-
* from the video, which is exactly what the strict exit refuses. The fix
|
|
994
|
-
* copy follows the reason: a focus skip means the target RESOLVED and the
|
|
995
|
-
* not-found copy ("point the target at an element that exists") would send
|
|
996
|
-
* the repair round at the wrong dimension. */
|
|
997
|
-
declare const skippedDefects: (skipped: readonly {
|
|
998
|
-
step: number;
|
|
999
|
-
action: string;
|
|
1000
|
-
target?: string;
|
|
1001
|
-
reason: string;
|
|
1002
|
-
}[]) => Defect[];
|
|
1003
|
-
/** Settle underruns whose beat DID go quiet carry a measured number the
|
|
1004
|
-
* author can copy — the one defect class where the fix is literally a
|
|
1005
|
-
* value. Beats that never settled (`reason: "budget"`) are excluded: telling
|
|
1006
|
-
* an author to raise settleMs toward a number that satisfies nothing is a
|
|
1007
|
-
* ratchet, and the human summary already explains that case. */
|
|
1008
|
-
declare const settleDefects: (settleWaits: readonly {
|
|
1009
|
-
step: number;
|
|
1010
|
-
action: string;
|
|
1011
|
-
heldMs: number;
|
|
1012
|
-
waitedMs: number;
|
|
1013
|
-
reason: "idle" | "budget" | "unavailable";
|
|
1014
|
-
}[]) => Defect[];
|
|
1015
|
-
declare function buildDefectReport(opts: {
|
|
1016
|
-
verb: DefectReport["verb"];
|
|
1017
|
-
verdict: string;
|
|
1018
|
-
exitCode: number;
|
|
1019
|
-
plan?: string;
|
|
1020
|
-
master?: string;
|
|
1021
|
-
defects: Defect[];
|
|
1022
|
-
}): DefectReport;
|
|
1023
|
-
/** the fixed stdout section — everything between the sentinels is one JSON
|
|
1024
|
-
* object, so the driving agent extracts it with two line matches and no
|
|
1025
|
-
* scraping of the prose above it */
|
|
1026
|
-
declare const renderDefectBlock: (report: DefectReport) => string;
|
|
1027
|
-
|
|
1028
1317
|
//#endregion
|
|
1029
1318
|
//#region src/review.d.ts
|
|
1030
|
-
//# sourceMappingURL=defect-report.d.ts.map
|
|
1031
1319
|
/** "click Open menu" — the shared beat vocabulary (beat sheet rows, frames rows). */
|
|
1032
1320
|
declare function beatLabel(e: CompEvent): string;
|
|
1033
1321
|
declare function buildBeatSheet(comp: TakeComposition$1, name: string): string;
|
|
@@ -1101,8 +1389,584 @@ declare function openPath(p: string): void;
|
|
|
1101
1389
|
declare function revealPath(p: string): void;
|
|
1102
1390
|
|
|
1103
1391
|
//#endregion
|
|
1104
|
-
//#region src/
|
|
1392
|
+
//#region src/shoot.d.ts
|
|
1105
1393
|
//# sourceMappingURL=review.d.ts.map
|
|
1394
|
+
/** A CSS selector (the first match the page renders), `text=<name>` (an
|
|
1395
|
+
* element by its accessible name, as `make` plans name them — controls
|
|
1396
|
+
* first, then any element carrying exactly that name, then one containing
|
|
1397
|
+
* it), or a point in VIEWPORT CSS px, where the mouse goes. */
|
|
1398
|
+
type ShootTarget = string | {
|
|
1399
|
+
x: number;
|
|
1400
|
+
y: number;
|
|
1401
|
+
};
|
|
1402
|
+
type ShootBox = {
|
|
1403
|
+
x: number;
|
|
1404
|
+
y: number;
|
|
1405
|
+
width: number;
|
|
1406
|
+
height: number;
|
|
1407
|
+
};
|
|
1408
|
+
type ShootAction = "click" | "type" | "drag" | "move" | "press";
|
|
1409
|
+
type ShootStill = {
|
|
1410
|
+
file: string;
|
|
1411
|
+
name: string;
|
|
1412
|
+
t: number;
|
|
1413
|
+
cursor: {
|
|
1414
|
+
x: number;
|
|
1415
|
+
y: number;
|
|
1416
|
+
};
|
|
1417
|
+
scroll: {
|
|
1418
|
+
x: number;
|
|
1419
|
+
y: number;
|
|
1420
|
+
};
|
|
1421
|
+
boxes: Record<string, ShootBox>;
|
|
1422
|
+
action?: ShootAction;
|
|
1423
|
+
down?: true;
|
|
1424
|
+
/** its saved screen: `states/<state>/state.html` beside shots.json */
|
|
1425
|
+
state?: string;
|
|
1426
|
+
/** ms spent waiting for what is on screen to stop changing before it was
|
|
1427
|
+
* taken (present when it changed during the wait) */
|
|
1428
|
+
steadyMs?: number;
|
|
1429
|
+
/** present when what is on screen was still changing as it was taken: the
|
|
1430
|
+
* texts that read differently just before and just after the screenshot
|
|
1431
|
+
* (page CSS px; at most MOVING_TEXTS, `more` counts the rest), whether
|
|
1432
|
+
* text moved or the page scrolled, and the finite animations running on
|
|
1433
|
+
* visible elements. `after` is the next moment, not necessarily where the
|
|
1434
|
+
* value comes to rest. */
|
|
1435
|
+
moving?: ShootMoving;
|
|
1436
|
+
};
|
|
1437
|
+
type ShootMoving = {
|
|
1438
|
+
texts: {
|
|
1439
|
+
x: number;
|
|
1440
|
+
y: number;
|
|
1441
|
+
before: string;
|
|
1442
|
+
after: string;
|
|
1443
|
+
}[];
|
|
1444
|
+
more?: number;
|
|
1445
|
+
moved?: true;
|
|
1446
|
+
animations: number;
|
|
1447
|
+
};
|
|
1448
|
+
/** a saved screen kept with a still, and how it re-rendered against it */
|
|
1449
|
+
type ShootStateItem = {
|
|
1450
|
+
id: string;
|
|
1451
|
+
/** the still it was kept with (its file) */
|
|
1452
|
+
still: string;
|
|
1453
|
+
t: number;
|
|
1454
|
+
fidelity: NonNullable<DomStateItem["fidelity"]>;
|
|
1455
|
+
/** its still was taken while the screen was still changing (the still's `moving`) */
|
|
1456
|
+
moving?: true;
|
|
1457
|
+
};
|
|
1458
|
+
/** Something the product made, kept as a file of its own by s.save */
|
|
1459
|
+
type ShootOutput = {
|
|
1460
|
+
name: string;
|
|
1461
|
+
/** outputs/<name>.<ext>, relative to the shoot's directory */
|
|
1462
|
+
file: string;
|
|
1463
|
+
/** svg: the element as SVG; png: a canvas's own pixels; image: an <img>'s
|
|
1464
|
+
* source bytes; text: a field's value or an element's text; picture: the
|
|
1465
|
+
* element's box as it was on screen (2×); download: the file the page
|
|
1466
|
+
* downloaded */
|
|
1467
|
+
kind: "svg" | "png" | "image" | "text" | "picture" | "download";
|
|
1468
|
+
bytes: number;
|
|
1469
|
+
/** seconds since the shoot began, like a still's t */
|
|
1470
|
+
t: number;
|
|
1471
|
+
/** the page it was made on */
|
|
1472
|
+
url: string;
|
|
1473
|
+
/** what was saved: the target as the script named it */
|
|
1474
|
+
target?: string;
|
|
1475
|
+
/** the last still before it — the moment of the product it belongs to:
|
|
1476
|
+
* its index in stills, and its name */
|
|
1477
|
+
still?: number;
|
|
1478
|
+
after?: string;
|
|
1479
|
+
/** its size, CSS px (svg, png, image, picture) */
|
|
1480
|
+
w?: number;
|
|
1481
|
+
h?: number;
|
|
1482
|
+
/** its text, the first 400 characters (text, and a picture's words) */
|
|
1483
|
+
text?: string;
|
|
1484
|
+
/** the name the page gave a download */
|
|
1485
|
+
filename?: string;
|
|
1486
|
+
};
|
|
1487
|
+
type ShootLog = {
|
|
1488
|
+
viewport: {
|
|
1489
|
+
w: number;
|
|
1490
|
+
h: number;
|
|
1491
|
+
};
|
|
1492
|
+
scale: number;
|
|
1493
|
+
/** the shoot's steady default (false: --no-steady). Its presence says the
|
|
1494
|
+
* log records `moving`: a log without it is from before, and says nothing
|
|
1495
|
+
* either way */
|
|
1496
|
+
steady?: boolean;
|
|
1497
|
+
stills: ShootStill[];
|
|
1498
|
+
/** present when any still kept a saved screen */
|
|
1499
|
+
states?: {
|
|
1500
|
+
dir: "states";
|
|
1501
|
+
items: ShootStateItem[];
|
|
1502
|
+
};
|
|
1503
|
+
/** what the script kept of what the product made (s.save), in order */
|
|
1504
|
+
outputs?: ShootOutput[];
|
|
1505
|
+
error?: string;
|
|
1506
|
+
};
|
|
1507
|
+
/** true: wait for the page to go quiet (activity probe, settle.ts) up to the
|
|
1508
|
+
* default budget; a number: up to that many ms; false: not at all. */
|
|
1509
|
+
type ShootSettle = boolean | number;
|
|
1510
|
+
/** true: before a still, wait until what is on screen stops changing
|
|
1511
|
+
* (steady.ts) up to the default budget — STEADY_MS for the still an action
|
|
1512
|
+
* ends on or s.still(), STEADY_STEP_MS for each still on the way; a number:
|
|
1513
|
+
* up to that many ms for each; false: take it as it is. */
|
|
1514
|
+
type ShootSteady = boolean | number;
|
|
1515
|
+
type ShootActOpts = {
|
|
1516
|
+
/** the still's name (default: the action's) */
|
|
1517
|
+
name?: string;
|
|
1518
|
+
/** default true; false also skips the steady wait unless `steady` is given */
|
|
1519
|
+
settle?: ShootSettle;
|
|
1520
|
+
/** default: the shoot's `steady` (true) — see ShootSteady */
|
|
1521
|
+
steady?: ShootSteady;
|
|
1522
|
+
/** take a still once the action is done (default true) */
|
|
1523
|
+
still?: boolean;
|
|
1524
|
+
/** keep a saved screen with every still this call takes, or with none
|
|
1525
|
+
* (default: the shoot's `states`; without one, the still the action ends
|
|
1526
|
+
* on keeps one and the stills on the way do not) */
|
|
1527
|
+
state?: boolean;
|
|
1528
|
+
/** how long the target may take to appear and become reachable (default 5000 ms) */
|
|
1529
|
+
timeoutMs?: number;
|
|
1530
|
+
};
|
|
1531
|
+
type ShootOpenOpts = {
|
|
1532
|
+
/** what "ready" means for this page: a target that must appear, or a check
|
|
1533
|
+
* run here (an async function) that must come true */
|
|
1534
|
+
ready?: string | (() => unknown);
|
|
1535
|
+
/** default true, waiting up to 3000 ms */
|
|
1536
|
+
settle?: ShootSettle;
|
|
1537
|
+
/** how long the page may take to show something (default 15000 ms) */
|
|
1538
|
+
timeoutMs?: number;
|
|
1539
|
+
};
|
|
1540
|
+
type Shoot = {
|
|
1541
|
+
/** navigate, then wait until the page answers, shows something, has its
|
|
1542
|
+
* input handlers (has hydrated), has arrived (nothing it builds itself
|
|
1543
|
+
* from still in flight, what it shows no longer growing) and has gone
|
|
1544
|
+
* quiet */
|
|
1545
|
+
open(url: string, opts?: ShootOpenOpts): Promise<{
|
|
1546
|
+
url: string;
|
|
1547
|
+
title: string;
|
|
1548
|
+
errors: string[];
|
|
1549
|
+
}>;
|
|
1550
|
+
/** one PNG and its log entry, once what is on screen holds still (no
|
|
1551
|
+
* activity settle by default; `settle: false` or `steady: false` takes
|
|
1552
|
+
* it at once); with the interface itself kept as a saved screen in
|
|
1553
|
+
* states/<name>/ unless `state: false` (or the shoot's `states: false`) */
|
|
1554
|
+
still(name?: string, opts?: {
|
|
1555
|
+
settle?: ShootSettle;
|
|
1556
|
+
steady?: ShootSteady;
|
|
1557
|
+
state?: boolean;
|
|
1558
|
+
}): Promise<ShootStill>;
|
|
1559
|
+
/** move the mouse onto the target and click it, for real */
|
|
1560
|
+
click(target: ShootTarget, opts?: ShootActOpts): Promise<ShootStill | null>;
|
|
1561
|
+
/** click into the field unless it has the caret, then type key by key
|
|
1562
|
+
* (`each`: a still after every key, each once the screen holds still —
|
|
1563
|
+
* `steady`); a null target types into whatever has focus */
|
|
1564
|
+
type(target: ShootTarget | null, text: string, opts?: ShootActOpts & {
|
|
1565
|
+
each?: boolean;
|
|
1566
|
+
clear?: boolean;
|
|
1567
|
+
}): Promise<ShootStill | null>;
|
|
1568
|
+
/** press on the target, move in a straight line, release (`every`: a
|
|
1569
|
+
* still every that many px on the way, button held, each once the screen
|
|
1570
|
+
* holds still — `steady`) */
|
|
1571
|
+
drag(target: ShootTarget, to: {
|
|
1572
|
+
dx?: number;
|
|
1573
|
+
dy?: number;
|
|
1574
|
+
} | {
|
|
1575
|
+
to: ShootTarget;
|
|
1576
|
+
}, opts?: ShootActOpts & {
|
|
1577
|
+
every?: number;
|
|
1578
|
+
}): Promise<ShootStill | null>;
|
|
1579
|
+
/** move the mouse onto the target (a hover) */
|
|
1580
|
+
move(target: ShootTarget, opts?: ShootActOpts): Promise<ShootStill | null>;
|
|
1581
|
+
/** a key or chord: "Enter", "Meta+k", "Shift+Tab" */
|
|
1582
|
+
press(keys: string, opts?: ShootActOpts): Promise<ShootStill | null>;
|
|
1583
|
+
/** record these targets' boxes in every later still */
|
|
1584
|
+
track(targets: string | string[]): Promise<void>;
|
|
1585
|
+
/** ms, a target that must appear, or a check run here that must come true */
|
|
1586
|
+
wait(what: number | string | (() => unknown), opts?: {
|
|
1587
|
+
timeoutMs?: number;
|
|
1588
|
+
}): Promise<void>;
|
|
1589
|
+
/** run in the page: a function (with JSON arguments) or an expression */
|
|
1590
|
+
evaluate<T = unknown>(fn: string | ((...args: never[]) => T), ...args: unknown[]): Promise<T>;
|
|
1591
|
+
/** run before the page's own scripts on every later navigation (call it before open) */
|
|
1592
|
+
inject(js: string | (() => void)): Promise<void>;
|
|
1593
|
+
/** keep something the product made as a file of its own, outputs/<name>.<ext>:
|
|
1594
|
+
* an <svg> as SVG (its styles inlined), a <canvas> as its PNG, an <img> as
|
|
1595
|
+
* its source, a field's value or a <pre>/<code>/<output>'s text as text,
|
|
1596
|
+
* anything else as a picture of its box; `as` says which instead. With
|
|
1597
|
+
* `{ download }`, the file the page downloads while that function runs (a
|
|
1598
|
+
* click on its export button). It takes no still. */
|
|
1599
|
+
save(name: string, what: ShootTarget | {
|
|
1600
|
+
download: () => unknown;
|
|
1601
|
+
}, opts?: {
|
|
1602
|
+
as?: "svg" | "png" | "image" | "text" | "picture";
|
|
1603
|
+
timeoutMs?: number;
|
|
1604
|
+
}): Promise<ShootOutput>;
|
|
1605
|
+
/** a raw CDP session on the shot page — its own, so its listeners cannot
|
|
1606
|
+
* disturb the shoot's; mouse events sent through it move the logged cursor */
|
|
1607
|
+
readonly cdp: {
|
|
1608
|
+
send<T = unknown>(method: string, params?: Record<string, unknown>): Promise<T>;
|
|
1609
|
+
on<T = unknown>(event: string, fn: (params: T) => void): () => void;
|
|
1610
|
+
};
|
|
1611
|
+
/** the browser's DevTools endpoint: puppeteer.connect({ browserWSEndpoint })
|
|
1612
|
+
* or Playwright's chromium.connectOverCDP reach the same page */
|
|
1613
|
+
readonly wsEndpoint: string;
|
|
1614
|
+
/** where the mouse is, viewport CSS px; set it after moving the mouse some
|
|
1615
|
+
* other way (puppeteer, Playwright) so the log follows */
|
|
1616
|
+
cursor: {
|
|
1617
|
+
x: number;
|
|
1618
|
+
y: number;
|
|
1619
|
+
};
|
|
1620
|
+
/** every still so far */
|
|
1621
|
+
readonly stills: readonly ShootStill[];
|
|
1622
|
+
readonly viewport: {
|
|
1623
|
+
w: number;
|
|
1624
|
+
h: number;
|
|
1625
|
+
};
|
|
1626
|
+
readonly scale: number;
|
|
1627
|
+
/** the shoot's directory */
|
|
1628
|
+
readonly out: string;
|
|
1629
|
+
};
|
|
1630
|
+
type ShootScript = (s: Shoot) => unknown;
|
|
1631
|
+
type ShootOpts = {
|
|
1632
|
+
/** a module whose default export is the script, or the script itself */
|
|
1633
|
+
script: string | ShootScript;
|
|
1634
|
+
outDir: string;
|
|
1635
|
+
/** viewport, CSS px (default 1920×1080) */
|
|
1636
|
+
width?: number;
|
|
1637
|
+
height?: number;
|
|
1638
|
+
/** image px per CSS px (default 2) */
|
|
1639
|
+
scale?: number;
|
|
1640
|
+
chromePath?: string;
|
|
1641
|
+
/** a persistent profile (`open-take auth`) */
|
|
1642
|
+
userDataDir?: string;
|
|
1643
|
+
headless?: boolean;
|
|
1644
|
+
/** saved screens for the stills whose call does not say: true, every
|
|
1645
|
+
* still; false, none; unset (default), every still but the ones on the
|
|
1646
|
+
* way (a keystroke's with `each`, a drag step's with `every`) */
|
|
1647
|
+
states?: boolean;
|
|
1648
|
+
/** the steady wait for the stills whose call does not say (default true;
|
|
1649
|
+
* false: every still is taken as it comes, as before — see ShootSteady) */
|
|
1650
|
+
steady?: boolean;
|
|
1651
|
+
/** measure the parts of each saved screen (states/<id>/parts.json, crisp
|
|
1652
|
+
* pictures in states/assets/) and gather them into <out>/components.json —
|
|
1653
|
+
* default true; false skips both */
|
|
1654
|
+
components?: boolean;
|
|
1655
|
+
/** read the whole page of each page the shoot keeps a saved screen of —
|
|
1656
|
+
* its images (saved in states/assets/), its copy, and the page as one
|
|
1657
|
+
* small sheet — into states/<id>/materials.json, the first screen kept on
|
|
1658
|
+
* each page (compositor film/materials.ts); default true, false skips it */
|
|
1659
|
+
materials?: boolean;
|
|
1660
|
+
/** advisories (default: stderr) */
|
|
1661
|
+
onNote?: (line: string) => void;
|
|
1662
|
+
};
|
|
1663
|
+
/** a still's name as a file name: whatever a file system dislikes becomes "-" */
|
|
1664
|
+
|
|
1665
|
+
/** Run a shoot script against a fresh Chrome and write its stills and
|
|
1666
|
+
* shots.json into `outDir`. A script that throws rejects with its own
|
|
1667
|
+
* message (and where in the script it came from). */
|
|
1668
|
+
declare function runShoot(opts: ShootOpts): Promise<{
|
|
1669
|
+
log: ShootLog;
|
|
1670
|
+
path: string;
|
|
1671
|
+
/** the component inventory, when the shoot kept saved screens */
|
|
1672
|
+
components?: {
|
|
1673
|
+
file: ComponentsFile$1;
|
|
1674
|
+
path: string;
|
|
1675
|
+
};
|
|
1676
|
+
/** each of its parts as a file of its own, <out>/parts/ */
|
|
1677
|
+
parts?: PartFilesResult$1;
|
|
1678
|
+
/** each page's material list (paths in <out>/states/), in shooting order */
|
|
1679
|
+
materials?: MaterialsPage$1[];
|
|
1680
|
+
}>;
|
|
1681
|
+
/** A saved screen's id: the still's name, made a safe folder name, and new
|
|
1682
|
+
* in this shoot ("assets" holds their shared files). */
|
|
1683
|
+
|
|
1684
|
+
/** One line on what a shoot kept: how many stills kept their saved screen —
|
|
1685
|
+
* or, when none did, what keeps one. Information, printed with the result. */
|
|
1686
|
+
declare function shootStatesLine(log: ShootLog): string;
|
|
1687
|
+
/** One line on the stills taken while what was on screen was still changing
|
|
1688
|
+
* and the ones the shoot waited for; null when there were none. */
|
|
1689
|
+
declare function shootSteadyLine(log: ShootLog): string | null;
|
|
1690
|
+
/** Put the shoot staged in `stage` (its stills and saved screens, `names` —
|
|
1691
|
+
* "states/<id>" is a screen's folder — and its shots.json) in place of the
|
|
1692
|
+
* last one in `out`, but only once all of it is in place —
|
|
1693
|
+
* the last one is moved aside first, and put back if anything of the new one
|
|
1694
|
+
* cannot go where it belongs. Nothing of the last one is deleted unless the
|
|
1695
|
+
* new one is whole in place: what cannot be put back stays aside, in a
|
|
1696
|
+
* directory of this run's own, and the error says where. `move` is rename;
|
|
1697
|
+
* a test makes it fail. */
|
|
1698
|
+
|
|
1699
|
+
type ShootHomeOpts = {
|
|
1700
|
+
url: string;
|
|
1701
|
+
/** the folder states/<name>/ goes in (a film's folder) */
|
|
1702
|
+
dir: string;
|
|
1703
|
+
/** default "home" */
|
|
1704
|
+
name?: string;
|
|
1705
|
+
width?: number;
|
|
1706
|
+
height?: number;
|
|
1707
|
+
scale?: number;
|
|
1708
|
+
chromePath?: string;
|
|
1709
|
+
userDataDir?: string;
|
|
1710
|
+
/** measure its parts and write states/<name>/components.json (default true) */
|
|
1711
|
+
components?: boolean;
|
|
1712
|
+
/** read the whole page into states/<name>/materials.json (default true) */
|
|
1713
|
+
materials?: boolean;
|
|
1714
|
+
/** wait for what is on screen to stop changing first (default true; see
|
|
1715
|
+
* ShootOpts.steady) */
|
|
1716
|
+
steady?: boolean;
|
|
1717
|
+
/** what "ready" means for this page (ShootOpenOpts.ready): a target that
|
|
1718
|
+
* must appear first */
|
|
1719
|
+
ready?: string;
|
|
1720
|
+
/** how long the page may take (ShootOpenOpts.timeoutMs) */
|
|
1721
|
+
timeoutMs?: number;
|
|
1722
|
+
onNote?: (line: string) => void;
|
|
1723
|
+
};
|
|
1724
|
+
/** Open `url` the way `s.open` does and keep that moment as a saved screen
|
|
1725
|
+
* in `<dir>/states/<name>/` (state.html, index.json, live.png), its shared
|
|
1726
|
+
* files in `<dir>/states/assets/` — `film init --url`. A screen already
|
|
1727
|
+
* there under that name is replaced once the new one is in hand. */
|
|
1728
|
+
declare function shootHome(opts: ShootHomeOpts): Promise<{
|
|
1729
|
+
/** states/<name>/ */
|
|
1730
|
+
dir: string;
|
|
1731
|
+
url: string;
|
|
1732
|
+
title: string;
|
|
1733
|
+
fidelity: ShootStateItem["fidelity"];
|
|
1734
|
+
/** its component inventory, states/<name>/components.json */
|
|
1735
|
+
components?: {
|
|
1736
|
+
file: ComponentsFile$1;
|
|
1737
|
+
path: string;
|
|
1738
|
+
};
|
|
1739
|
+
/** each of its parts as a file of its own, <dir>/parts/ */
|
|
1740
|
+
parts?: PartFilesResult$1;
|
|
1741
|
+
/** the whole page's material, states/<name>/materials.json */
|
|
1742
|
+
materials?: MaterialsPage$1;
|
|
1743
|
+
/** present when the screen was still changing as it was kept (the
|
|
1744
|
+
* still's `moving`: its shoot log is not kept) */
|
|
1745
|
+
moving?: ShootMoving;
|
|
1746
|
+
}>;
|
|
1747
|
+
|
|
1748
|
+
//#endregion
|
|
1749
|
+
//#region src/states-list.d.ts
|
|
1750
|
+
type Box = [number, number, number, number];
|
|
1751
|
+
type BBox$1 = {
|
|
1752
|
+
x: number;
|
|
1753
|
+
y: number;
|
|
1754
|
+
w: number;
|
|
1755
|
+
h: number;
|
|
1756
|
+
};
|
|
1757
|
+
/** One major region of a state (the probe's `layers`, back to front). */
|
|
1758
|
+
type StateRegion = {
|
|
1759
|
+
id: string;
|
|
1760
|
+
/** "s3:e26" */
|
|
1761
|
+
ref: string;
|
|
1762
|
+
/** where it sits: top bar / right rail / main / nav / … */
|
|
1763
|
+
name: string;
|
|
1764
|
+
tag: string;
|
|
1765
|
+
box: Box;
|
|
1766
|
+
fixed?: true;
|
|
1767
|
+
/** its visible texts, in order */
|
|
1768
|
+
summary: string;
|
|
1769
|
+
/** paint surfaces and images inside it ("canvas", "18 img") — what no text
|
|
1770
|
+
* and no DOM re-render can stand in for */
|
|
1771
|
+
holds?: string;
|
|
1772
|
+
};
|
|
1773
|
+
/** One line of what changed between a state and the one before it. */
|
|
1774
|
+
type StateChangeLine = {
|
|
1775
|
+
kind: "added" | "removed" | "replaced" | "changed";
|
|
1776
|
+
/** "s3:e32" — in the state named (the PREVIOUS state for a removal) */
|
|
1777
|
+
ref: string;
|
|
1778
|
+
id: string;
|
|
1779
|
+
state: string;
|
|
1780
|
+
tag: string;
|
|
1781
|
+
role?: string;
|
|
1782
|
+
box: Box;
|
|
1783
|
+
/** the box before, when it moved or resized */
|
|
1784
|
+
from?: Box;
|
|
1785
|
+
/** what it shows now: its subtree's texts (added / replaced), its label
|
|
1786
|
+
* (a relabel) */
|
|
1787
|
+
content?: string;
|
|
1788
|
+
/** what it showed before (replaced / a relabel) */
|
|
1789
|
+
was?: string;
|
|
1790
|
+
/** the visible text, when only the accessible name changed */
|
|
1791
|
+
visible?: string;
|
|
1792
|
+
/** qualifies as a card (see `StateOutline`) */
|
|
1793
|
+
card?: true;
|
|
1794
|
+
/** a run of same-tag siblings added to / removed from `ref` */
|
|
1795
|
+
count?: number;
|
|
1796
|
+
/** raw diff entries this line stands for */
|
|
1797
|
+
covers: number;
|
|
1798
|
+
/** 0 = something a viewer reads · 1 = a visible thing moved · 2 = unlabelled geometry */
|
|
1799
|
+
priority: 0 | 1 | 2;
|
|
1800
|
+
};
|
|
1801
|
+
type StateSummary = {
|
|
1802
|
+
id: string;
|
|
1803
|
+
/** capture timeline ms */
|
|
1804
|
+
tMs: number;
|
|
1805
|
+
/** the plan step it follows (absent for s0) */
|
|
1806
|
+
step?: number;
|
|
1807
|
+
/** the action it follows ("a2") — absent for s0 and for a wait / navigate step */
|
|
1808
|
+
after?: string;
|
|
1809
|
+
/** ok · failed (state.html does not match the recording — use the video
|
|
1810
|
+
* there) · missing (no readable index.json) · moving (the page never went
|
|
1811
|
+
* quiet here, a video playing: nothing was saved) */
|
|
1812
|
+
status: "ok" | "failed" | "missing" | "moving";
|
|
1813
|
+
fidelity?: {
|
|
1814
|
+
psnr: number;
|
|
1815
|
+
diffFrac: number;
|
|
1816
|
+
ok: boolean;
|
|
1817
|
+
};
|
|
1818
|
+
/** why the index could not be read (status missing) */
|
|
1819
|
+
error?: string;
|
|
1820
|
+
url?: string;
|
|
1821
|
+
title?: string;
|
|
1822
|
+
elements?: number;
|
|
1823
|
+
regions?: StateRegion[];
|
|
1824
|
+
/** the diff from the previous state, in document order (removals last) */
|
|
1825
|
+
changes?: StateChangeLine[];
|
|
1826
|
+
/** where pixels changed after the action that led here (the capture's
|
|
1827
|
+
* frame-diff). `unexplained`: no element change accounts for it — a
|
|
1828
|
+
* canvas / CSS-only change the DOM diff cannot see. */
|
|
1829
|
+
pixels?: {
|
|
1830
|
+
box: BBox$1;
|
|
1831
|
+
coverage?: number;
|
|
1832
|
+
unexplained: boolean;
|
|
1833
|
+
};
|
|
1834
|
+
};
|
|
1835
|
+
type ActionTarget = {
|
|
1836
|
+
state: string;
|
|
1837
|
+
id: string;
|
|
1838
|
+
/** "s2:e118" */
|
|
1839
|
+
ref: string;
|
|
1840
|
+
tag: string;
|
|
1841
|
+
role?: string;
|
|
1842
|
+
label: string;
|
|
1843
|
+
box: Box;
|
|
1844
|
+
/** how it was found: the capture's own box match, or the element under the
|
|
1845
|
+
* action's point (drags carry no box) */
|
|
1846
|
+
by: "capture" | "point";
|
|
1847
|
+
};
|
|
1848
|
+
type ActionSummary = {
|
|
1849
|
+
/** "a1".."aN", capture order */
|
|
1850
|
+
id: string;
|
|
1851
|
+
kind: string;
|
|
1852
|
+
/** the plan's text / selector label, as the capture recorded it */
|
|
1853
|
+
label?: string;
|
|
1854
|
+
tMs: number;
|
|
1855
|
+
/** tMs + how long the action played out (type / drag / hover / …) */
|
|
1856
|
+
endMs?: number;
|
|
1857
|
+
/** anchor, viewport CSS px */
|
|
1858
|
+
x: number;
|
|
1859
|
+
y: number;
|
|
1860
|
+
to?: {
|
|
1861
|
+
x: number;
|
|
1862
|
+
y: number;
|
|
1863
|
+
};
|
|
1864
|
+
box?: BBox$1;
|
|
1865
|
+
/** the state before it (the one its target lives in) */
|
|
1866
|
+
before?: string;
|
|
1867
|
+
/** the state captured after it settled */
|
|
1868
|
+
after?: string;
|
|
1869
|
+
target?: ActionTarget;
|
|
1870
|
+
effectBox?: BBox$1;
|
|
1871
|
+
changeCoverage?: number;
|
|
1872
|
+
/** when its result showed in the recording (measured; see CaptureEventBase.result) */
|
|
1873
|
+
result?: {
|
|
1874
|
+
atMs: number;
|
|
1875
|
+
doneMs: number;
|
|
1876
|
+
box: BBox$1;
|
|
1877
|
+
};
|
|
1878
|
+
/** when the page went quiet after it (estimated from page structure) */
|
|
1879
|
+
settledMs?: number;
|
|
1880
|
+
/** typed text (type) */
|
|
1881
|
+
text?: string;
|
|
1882
|
+
/** chord (press) */
|
|
1883
|
+
keys?: string;
|
|
1884
|
+
/** signed px (scroll) */
|
|
1885
|
+
dy?: number;
|
|
1886
|
+
/** dropped file names (dropFiles) */
|
|
1887
|
+
files?: string[];
|
|
1888
|
+
caption?: string;
|
|
1889
|
+
note?: string;
|
|
1890
|
+
};
|
|
1891
|
+
type TakeStates = {
|
|
1892
|
+
/** "editor.take" */
|
|
1893
|
+
take: string;
|
|
1894
|
+
/** the states folder, absolute */
|
|
1895
|
+
dir: string;
|
|
1896
|
+
viewport: {
|
|
1897
|
+
w: number;
|
|
1898
|
+
h: number;
|
|
1899
|
+
dpr?: number;
|
|
1900
|
+
};
|
|
1901
|
+
/** of the states a page was saved for: how many match the recording; and
|
|
1902
|
+
* the moments with no saved page (moving) or no readable one (missing) */
|
|
1903
|
+
fidelity: {
|
|
1904
|
+
ok: number;
|
|
1905
|
+
total: number;
|
|
1906
|
+
failed: string[];
|
|
1907
|
+
moving: string[];
|
|
1908
|
+
missing: string[];
|
|
1909
|
+
};
|
|
1910
|
+
actions: ActionSummary[];
|
|
1911
|
+
states: StateSummary[];
|
|
1912
|
+
};
|
|
1913
|
+
/** Everything `open-take states` prints, as data. `takeDir` is the take's
|
|
1914
|
+
* working dir (`<name>.take/`). Throws when the take has no saved states. */
|
|
1915
|
+
declare function describeTake(takeDir: string): TakeStates;
|
|
1916
|
+
/** An interactive or text-bearing element — or a paint surface (canvas /
|
|
1917
|
+
* video / iframe), which a film must take from the recording. */
|
|
1918
|
+
type OutlineLeaf = {
|
|
1919
|
+
ref: string;
|
|
1920
|
+
id: string;
|
|
1921
|
+
tag: string;
|
|
1922
|
+
role?: string;
|
|
1923
|
+
/** what it reads as (its accessible name, else its text) */
|
|
1924
|
+
label: string;
|
|
1925
|
+
/** the caption a viewer sees when the accessible name says something else
|
|
1926
|
+
* (a button "Compare" titled "Nothing to compare yet") */
|
|
1927
|
+
visible?: string;
|
|
1928
|
+
box: Box;
|
|
1929
|
+
interactive?: true;
|
|
1930
|
+
};
|
|
1931
|
+
type OutlineCard = {
|
|
1932
|
+
ref: string;
|
|
1933
|
+
id: string;
|
|
1934
|
+
tag: string;
|
|
1935
|
+
role?: string;
|
|
1936
|
+
box: Box;
|
|
1937
|
+
/** its visible texts */
|
|
1938
|
+
content: string;
|
|
1939
|
+
/** paint surfaces and images inside it ("18 img") */
|
|
1940
|
+
holds?: string;
|
|
1941
|
+
cards: OutlineCard[];
|
|
1942
|
+
leaves: OutlineLeaf[];
|
|
1943
|
+
};
|
|
1944
|
+
type OutlineRegion = StateRegion & {
|
|
1945
|
+
cards: OutlineCard[];
|
|
1946
|
+
leaves: OutlineLeaf[];
|
|
1947
|
+
};
|
|
1948
|
+
type StateOutline = {
|
|
1949
|
+
state: StateSummary;
|
|
1950
|
+
/** back to front */
|
|
1951
|
+
regions: OutlineRegion[];
|
|
1952
|
+
/** what sits outside every region (a fixed toast, a tooltip on <body>) */
|
|
1953
|
+
elsewhere?: {
|
|
1954
|
+
cards: OutlineCard[];
|
|
1955
|
+
leaves: OutlineLeaf[];
|
|
1956
|
+
};
|
|
1957
|
+
};
|
|
1958
|
+
/** One state as a film would carve it: each region, the cards inside it, and
|
|
1959
|
+
* under each the interactive and text-bearing elements with their boxes. */
|
|
1960
|
+
declare function outlineState(data: TakeStates, id: string): StateOutline;
|
|
1961
|
+
type FormatOpts = {
|
|
1962
|
+
/** outline this one state instead of the listing */
|
|
1963
|
+
state?: string;
|
|
1964
|
+
};
|
|
1965
|
+
/** The listing (or, with `state`, one state's outline) as text. */
|
|
1966
|
+
declare function formatTakeStates(data: TakeStates, opts?: FormatOpts): string;
|
|
1967
|
+
|
|
1968
|
+
//#endregion
|
|
1969
|
+
//#region src/index.d.ts
|
|
1106
1970
|
type MakeTakeOpts = {
|
|
1107
1971
|
/** output polished mp4 path */
|
|
1108
1972
|
outPath: string;
|
|
@@ -1129,9 +1993,16 @@ type MakeTakeOpts = {
|
|
|
1129
1993
|
* and auto-opens the raw footage so the user watches it while the polish
|
|
1130
1994
|
* renders. A throwing callback never fails the take. */
|
|
1131
1995
|
onCaptureReady?: (capturePath: string) => void;
|
|
1996
|
+
/** false: record only — keep the capture, its log, the saved screens and the
|
|
1997
|
+
* planned composition, and render no master (a film that only needs the
|
|
1998
|
+
* recording as material; `render` masters the take later). Default true. */
|
|
1999
|
+
render?: boolean;
|
|
1132
2000
|
};
|
|
1133
2001
|
type MakeTakeResult = {
|
|
2002
|
+
/** the master's path — written unless `render: false` asked for none */
|
|
1134
2003
|
mp4Path: string;
|
|
2004
|
+
/** whether the master was rendered */
|
|
2005
|
+
rendered: boolean;
|
|
1135
2006
|
compositionPath: string;
|
|
1136
2007
|
/** the take's working directory (`<out>.take/`) — everything but the master */
|
|
1137
2008
|
takeDir: string;
|
|
@@ -1161,11 +2032,21 @@ type MakeTakeResult = {
|
|
|
1161
2032
|
/** set when a `<canvas>`/`<video>` dominated the frame — the settle probe
|
|
1162
2033
|
* is blind inside one, so a quiet run proves nothing about those beats. */
|
|
1163
2034
|
paintedFrac?: number;
|
|
2035
|
+
/** the pictures the capture got during each drag (see dragCadence) */
|
|
2036
|
+
dragCadence: DragCadence[];
|
|
1164
2037
|
/** non-fatal validator findings on the rendered composition. Printed at the
|
|
1165
2038
|
* render boundary too, but that line is minutes deep in the progress output
|
|
1166
2039
|
* by the time the run ends — surface these in the end-of-run summary the
|
|
1167
2040
|
* same way `skipped` is, or they get scrolled past and ship. */
|
|
1168
2041
|
warnings: CompositionIssue$1[];
|
|
2042
|
+
/** the saved states' component inventory (<name>.take/components.json),
|
|
2043
|
+
* when the take kept states */
|
|
2044
|
+
components?: {
|
|
2045
|
+
file: ComponentsFile$1;
|
|
2046
|
+
path: string;
|
|
2047
|
+
};
|
|
2048
|
+
/** each of those parts as a file of its own (<name>.take/parts/) */
|
|
2049
|
+
parts?: PartFilesResult$1;
|
|
1169
2050
|
};
|
|
1170
2051
|
/** `<video>.mp4` → `<video>.json` — the capture log sits beside its video
|
|
1171
2052
|
* (`capture.mp4` → `capture.json` inside the take's working dir). Deriving it
|
|
@@ -1242,5 +2123,5 @@ declare function renderCompositionFile(opts: {
|
|
|
1242
2123
|
//#endregion
|
|
1243
2124
|
//# sourceMappingURL=index.d.ts.map
|
|
1244
2125
|
|
|
1245
|
-
export { AbOpts, AgentArgsOpts, AgentRunResult, AnnotateOpts, AppProcess, AuditCursorOpts, AuditRow, AuthOpts, AuthResult, CI_ALLOWED_TOOLS, CI_DISALLOWED_TOOLS, CaptureLog, CaptureOpts, CheckTakeOpts, CiBriefOpts, CiMode, CiOpts, CiResult, CompositionIssue, DEFECTS_CLOSE, DEFECTS_OPEN, Defect, DefectGate, DefectReport, EditServerOpts, FrameCell, FrameDiffResult, FramePhase, FramePlan, FrameRow, FramesOpts, GateIssue, InspectElement, InspectOpts, InspectResult, InventoryRule, MakeTakeOpts, MakeTakeResult, NavigateTarget, NotesRead, PlanIssue, PostShootIO, PostShootPass, PostShootResult, PrecheckIssue, PrecheckRefusal, ReadNotesOpts, RenderCompositionOpts, ReviewOpts, SAY_IT_CARD, StagedPrev, TAKE_DIR_SUFFIX, TakeComposition, TakePaths, TakePlan, TakeStep, WaitNotesOpts, WaitNotesResult, annotateCaptureLog, appBootEnv, asDefects, auditCursor, authProfile, beatLabel, buildAgentArgs, buildBadges, buildBeatSheet, buildCiBrief, buildDefectReport, buildFramePlan, buildFrameSheet, captureLogPathFor, captureTake, captureTakeCDP, checkLaunchFile, checkTake, ciAllowedOrigins, ciTake, composeLaunchFile, diffFrames, emitGithubOutputs, emitStepSummary, ensureChrome, ensureTakeDir, formatIssues, formatNotes, healingWithheld, initLaunchProject, inspectPage, lintPlan, loadCaptureLogSibling, makeTake, openPath, planTargets, precheckPlan, probeDurationS, profileDir, reRenderInPlace, readNotes, renderAbReel, renderBeforeAfter, renderComposition, renderCompositionFile, renderDefectBlock, renderDraft, renderFrames, renderLaunchFile, renderReview, renderTeaserGif, requireTakeFiles, resolveChrome, resolveNavigateUrl, resolveTakePaths, revealPath, runAgent, runPostShootGates, settleDefects, skippedDefects, stagePrev, startApp, startEditServer, takeFile, toDraft, validateComposition, waitForHttp, waitForNotes };
|
|
2126
|
+
export { AbOpts, AgentArgsOpts, AgentRunResult, AnnotateOpts, AppProcess, AuditCursorOpts, AuditRow, AuthOpts, AuthResult, CI_ALLOWED_TOOLS, CI_DISALLOWED_TOOLS, CaptureLog, CaptureOpts, CheckTakeOpts, CiBriefOpts, CiMode, CiOpts, CiResult, ComponentsFile, CompositionIssue, DEFECTS_CLOSE, DEFECTS_OPEN, Defect, DefectGate, DefectReport, DragCadence, EditServerOpts, FormatOpts, FrameCell, FrameDiffResult, FramePhase, FramePlan, FrameRow, FramesOpts, GateIssue, InspectElement, InspectOpts, InspectResult, InventoryOpts, InventoryResult, InventoryRule, MakeTakeOpts, MakeTakeResult, MaterialsFile, MaterialsInventory, MaterialsPage, NavigateTarget, NotesRead, PartFilesResult, PlanIssue, PostShootIO, PostShootPass, PostShootResult, PrecheckIssue, PrecheckRefusal, ReadNotesOpts, RenderCompositionOpts, ReviewOpts, SAY_IT_CARD, Shoot, ShootActOpts, ShootAction, ShootBox, ShootLog, ShootMoving, ShootOpenOpts, ShootOpts, ShootOutput, ShootScript, ShootSettle, ShootStateItem, ShootSteady, ShootStill, ShootTarget, StagedPrev, TAKE_DIR_SUFFIX, TakeComposition, TakePaths, TakePlan, TakeStates, TakeStep, VIEWER_TOOLS, WaitNotesOpts, WaitNotesResult, alignFrames, annotateCaptureLog, appBootEnv, asDefects, auditCursor, authProfile, beatLabel, buildAgentArgs, buildBadges, buildBeatSheet, buildCiBrief, buildDefectReport, buildFramePlan, buildFrameSheet, captureLogPathFor, captureTake, captureTakeCDP, changedLine, checkFilm, checkLaunchFile, checkTake, checkViewer, ciAllowedOrigins, ciTake, componentsLine, composeLaunchFile, describeTake, diffFrames, dragCadence, emitGithubOutputs, emitStepSummary, ensureChrome, ensureTakeDir, exampleSource, filmBeats, filmGallery, filmInitLines, filmListen, filmLook, filmPicture, filmProbe, filmReport, filmSheet, filmStills, filmStudy, followedLine, formatComponents, formatFilmBeats, formatFilmCheck, formatFilmListen, formatFilmLook, formatFilmProbe, formatFilmReport, formatFilmStudy, formatIssues, formatMaterials, formatNotes, formatTakeStates, healingWithheld, initFilm, initLaunchProject, inspectPage, inventoryComponents, inventoryMaterials, lintPlan, loadCaptureLogSibling, makeTake, materialsSummary, measureParts, measureStateDirs, measureStateSeams, measureTake, muxFilm, openPath, outlineState, pageMaterialNote, partFilesLine, partsLine, patchFilm, planTargets, precheckPlan, prepareViewer, probeDurationS, profileDir, reRenderInPlace, readNotes, readPageMaterial, renderAbReel, renderBeforeAfter, renderComposition, renderCompositionFile, renderDefectBlock, renderDraft, renderFilm, renderFrames, renderLaunchFile, renderReview, renderTeaserGif, requireTakeFiles, resolveChrome, resolveNavigateUrl, resolveTakePaths, resultFrames, revealPath, runAgent, runPostShootGates, runShoot, settleDefects, shootHome, shootStatesLine, shootSteadyLine, skippedDefects, stagePrev, startApp, startEditServer, takeFile, toDraft, validateComposition, viewerCommand, viewerRounds, waitForHttp, waitForNotes };
|
|
1246
2127
|
//# sourceMappingURL=index.d.ts.map
|