@onmark/cli 0.2.3 → 0.3.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/README.md CHANGED
@@ -88,8 +88,8 @@ onmark doctor
88
88
  onmark benchmark film.html --runs 3 --json
89
89
  ```
90
90
 
91
- Use the default H.264/AAC MP4 for delivery, or select the edit-friendly
92
- ProRes/PCM MOV profile by filename:
91
+ Use the default opaque H.264/AAC MP4 for delivery, or select the
92
+ alpha-preserving ProRes 4444/PCM MOV profile by filename:
93
93
 
94
94
  ```bash
95
95
  onmark render film.html --output film.mov
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
3
  "packageName": "@onmark/cli",
4
- "version": "0.2.3",
5
- "sourceRevision": "05e6928b6f019f459ff09d9be0d3678730964939",
4
+ "version": "0.3.0",
5
+ "sourceRevision": "d45da8f8e397d78126f9d76ad36c2c20c815417e",
6
6
  "files": [
7
7
  {
8
8
  "path": "LICENSE",
@@ -11,13 +11,13 @@
11
11
  },
12
12
  {
13
13
  "path": "README.md",
14
- "bytes": 6326,
15
- "sha256": "161bb00ebee6bbb7a6f6f15dbe0c00a36ae6c0943b1b3547d45424bb6132820d"
14
+ "bytes": 6341,
15
+ "sha256": "a747c29224c33dd8431506467134f1b86e54bad92720c0bf3b751f0cba7d6d5d"
16
16
  },
17
17
  {
18
18
  "path": "package.json",
19
19
  "bytes": 1406,
20
- "sha256": "976737f57bbccb7f6fa0f48f1eeea5bff57ca509091b18e944fc4873dfb48f73"
20
+ "sha256": "566d5d6d682429655a056c7eb1159ff19d2431fbb0f5118e91310739557628fe"
21
21
  },
22
22
  {
23
23
  "path": "packages/authoring/dist/src/frame-motion.d.ts",
@@ -276,8 +276,8 @@
276
276
  },
277
277
  {
278
278
  "path": "packages/runtime/dist/src/generated/browser-request.d.ts",
279
- "bytes": 3792,
280
- "sha256": "f5144cdb3b9e1d3c58fbedafbd1b1509b7404abf52866221ab8bc9651b514b97"
279
+ "bytes": 4577,
280
+ "sha256": "ead94024489324448fbe1d5c9db43244f86b433d8bd7e2d11e4dd7854d42eb60"
281
281
  },
282
282
  {
283
283
  "path": "packages/runtime/dist/src/generated/browser-request.js",
@@ -287,7 +287,7 @@
287
287
  {
288
288
  "path": "packages/runtime/dist/src/generated/browser-response.d.ts",
289
289
  "bytes": 1368,
290
- "sha256": "15a67fcc4e7ec01e4ae8c2a1178893c24558656b9623737acae02a5af951139e"
290
+ "sha256": "a0fb11ebf3ac067a3e361a1c09bca4707f4cff8d73e9dca0f4b8d16b4b34bfcf"
291
291
  },
292
292
  {
293
293
  "path": "packages/runtime/dist/src/generated/browser-response.js",
@@ -327,12 +327,12 @@
327
327
  {
328
328
  "path": "packages/runtime/dist/src/generated/validators.d.ts",
329
329
  "bytes": 594,
330
- "sha256": "e86ba82ec30adb5f5df0470854a84000e7c0aca3bd55374e68c0cc70e22121f9"
330
+ "sha256": "b94094d88d2ef28fb3564a8b2f93d01495fb1f95cd720c4d0b933a87c1bc8d3d"
331
331
  },
332
332
  {
333
333
  "path": "packages/runtime/dist/src/generated/validators.js",
334
- "bytes": 199436,
335
- "sha256": "ee8e1cd7a1466ce3bbab4b8e32c9fb150f928a3acc4f2932d4fa5600f35c1ca0"
334
+ "bytes": 224044,
335
+ "sha256": "9e8ec96ab5ea673186a54b3b2d27ed3c01931ef82998b19b087a41000c50cadf"
336
336
  },
337
337
  {
338
338
  "path": "packages/runtime/dist/src/host.d.ts",
@@ -346,8 +346,8 @@
346
346
  },
347
347
  {
348
348
  "path": "packages/runtime/dist/src/index.d.ts",
349
- "bytes": 1652,
350
- "sha256": "9c3109342edd6cc989488f9d69bb4a8b56a53314671739ec838f76d7fc8404ef"
349
+ "bytes": 1666,
350
+ "sha256": "42b953d62d267c593139fd117d31dcd44ec5afda3a0a28e38f37cc2d708825de"
351
351
  },
352
352
  {
353
353
  "path": "packages/runtime/dist/src/index.js",
@@ -356,13 +356,13 @@
356
356
  },
357
357
  {
358
358
  "path": "packages/runtime/dist/src/media.d.ts",
359
- "bytes": 1087,
360
- "sha256": "eb65fe99e616f1ba322d263c8330631b991a3a8a065c491f20a7f765cfb5d468"
359
+ "bytes": 1216,
360
+ "sha256": "edeb8b38dad4f9a0d1493c201f8a23d769dc7337efe157a40c010af5e50846fe"
361
361
  },
362
362
  {
363
363
  "path": "packages/runtime/dist/src/media.js",
364
- "bytes": 4577,
365
- "sha256": "419dabdda169db230489d4e1ad51d6b3e256513af2182a9f917a294e13bec1c5"
364
+ "bytes": 9219,
365
+ "sha256": "6de3bb69ec137a7ec4153674698fcf3e5b195d9556c72a4f7d9f46aefc5b10b9"
366
366
  },
367
367
  {
368
368
  "path": "packages/runtime/dist/src/presentation.d.ts",
@@ -391,8 +391,8 @@
391
391
  },
392
392
  {
393
393
  "path": "packages/runtime/dist/src/session.js",
394
- "bytes": 17621,
395
- "sha256": "a1164d20ed35de96db6cfc3d745663c9364c92789b082faa4d8b76f6a5dc09e7"
394
+ "bytes": 18245,
395
+ "sha256": "6e83aaae7b8b7655ea9e5a49bef67663c2619d9add79cc00e6bde0be12978aed"
396
396
  },
397
397
  {
398
398
  "path": "packages/runtime/dist/src/types.d.ts",
@@ -411,8 +411,8 @@
411
411
  },
412
412
  {
413
413
  "path": "packages/runtime/dist/src/video.js",
414
- "bytes": 12092,
415
- "sha256": "9e0398c678eb15bea90982b7cf418dd438f9f621b83684722a2c5dba6400227b"
414
+ "bytes": 12415,
415
+ "sha256": "ba2c4bddd0e7de75a62d66c5a07ee1989f22af408d0503210533641a3568fc8b"
416
416
  }
417
417
  ]
418
418
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onmark/cli",
3
- "version": "0.2.3",
3
+ "version": "0.3.0",
4
4
  "description": "Screenplay-first deterministic browser video compiler",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -45,8 +45,8 @@
45
45
  "yauzl": "3.4.0"
46
46
  },
47
47
  "optionalDependencies": {
48
- "@onmark/cli-darwin-arm64": "0.2.3",
49
- "@onmark/cli-linux-x64": "0.2.3",
50
- "@onmark/cli-win32-x64": "0.2.3"
48
+ "@onmark/cli-darwin-arm64": "0.3.0",
49
+ "@onmark/cli-linux-x64": "0.3.0",
50
+ "@onmark/cli-win32-x64": "0.3.0"
51
51
  }
52
52
  }
@@ -42,6 +42,23 @@ export type BrowserNodeId = number;
42
42
  * Closed overlay roles understood by the browser presentation.
43
43
  */
44
44
  export type BrowserOverlayKind = "title" | "callToAction" | "caption";
45
+ /**
46
+ * Exact source-frame timing projected into the browser runtime.
47
+ */
48
+ export type BrowserVideoTiming = {
49
+ frameRate: WireFrameRate1;
50
+ kind: "constant";
51
+ } | {
52
+ /**
53
+ * Canonical decimal ticks from source zero through terminal end.
54
+ *
55
+ * @minItems 3
56
+ * @maxItems 100000
57
+ */
58
+ boundaries: [string, string, string, ...string[]];
59
+ kind: "variable";
60
+ timebase: WireMediaTimebase;
61
+ };
45
62
  /**
46
63
  * Correlation identity shared by one request and its response events.
47
64
  */
@@ -49,7 +66,7 @@ export type RequestId = number;
49
66
  /**
50
67
  * Version of the native-to-browser message contract.
51
68
  */
52
- export type ProtocolVersion = 2;
69
+ export type ProtocolVersion = 3;
53
70
  /**
54
71
  * One versioned command sent from the native executor to the browser.
55
72
  */
@@ -140,15 +157,17 @@ export interface BrowserVideo {
140
157
  node: BrowserNode;
141
158
  shotId: BrowserNodeId;
142
159
  source: BrowserVideoSource;
143
- sourceFrameRate: WireFrameRate;
160
+ sourceTiming: BrowserVideoTiming;
144
161
  }
145
162
  /**
146
163
  * Exact source-time mapping for one browser video placement.
147
164
  */
148
165
  export interface BrowserVideoSource {
149
166
  endNanoseconds: string;
167
+ holdLastNanoseconds: string;
150
168
  naturalEndNanoseconds: string;
151
169
  playbackRate: WirePlaybackRate;
170
+ plays: number;
152
171
  startNanoseconds: string;
153
172
  }
154
173
  /**
@@ -158,3 +177,17 @@ export interface WirePlaybackRate {
158
177
  denominator: number;
159
178
  numerator: number;
160
179
  }
180
+ /**
181
+ * Exact rational frame rate represented with browser-safe integers.
182
+ */
183
+ export interface WireFrameRate1 {
184
+ denominator: number;
185
+ numerator: number;
186
+ }
187
+ /**
188
+ * Exact seconds represented by one source timestamp tick.
189
+ */
190
+ export interface WireMediaTimebase {
191
+ denominator: number;
192
+ numerator: number;
193
+ }
@@ -47,7 +47,7 @@ export type RequestId = number;
47
47
  /**
48
48
  * Version of the native-to-browser message contract.
49
49
  */
50
- export type ProtocolVersion = 2;
50
+ export type ProtocolVersion = 3;
51
51
  /**
52
52
  * One versioned event returned by the browser runtime.
53
53
  */
@@ -4,8 +4,8 @@ declare function validate20(data: any, { instancePath, parentData, parentDataPro
4
4
  instancePath?: string | undefined;
5
5
  rootData?: any;
6
6
  }): boolean;
7
- export declare const validateBrowserResponse: typeof validate49;
8
- declare function validate49(data: any, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors }?: {
7
+ export declare const validateBrowserResponse: typeof validate51;
8
+ declare function validate51(data: any, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors }?: {
9
9
  dynamicAnchors?: {} | undefined;
10
10
  instancePath?: string | undefined;
11
11
  rootData?: any;