@editframe/cli 0.16.8-beta.0 → 0.18.3-beta.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.
Files changed (42) hide show
  1. package/dist/VERSION.d.ts +1 -1
  2. package/dist/VERSION.js +2 -4
  3. package/dist/commands/auth.js +16 -25
  4. package/dist/commands/check.js +81 -108
  5. package/dist/commands/mux.d.ts +1 -0
  6. package/dist/commands/preview.js +4 -1
  7. package/dist/commands/process-file.js +18 -34
  8. package/dist/commands/process.js +28 -31
  9. package/dist/commands/render.js +117 -157
  10. package/dist/commands/sync.js +3 -5
  11. package/dist/commands/webhook.js +48 -52
  12. package/dist/index.js +3 -7
  13. package/dist/operations/processRenderInfo.js +25 -31
  14. package/dist/operations/syncAssetsDirectory/SubAssetSync.js +11 -18
  15. package/dist/operations/syncAssetsDirectory/SyncCaption.js +46 -73
  16. package/dist/operations/syncAssetsDirectory/SyncFragmentIndex.js +53 -83
  17. package/dist/operations/syncAssetsDirectory/SyncImage.js +72 -99
  18. package/dist/operations/syncAssetsDirectory/SyncStatus.js +30 -37
  19. package/dist/operations/syncAssetsDirectory/SyncTrack.js +107 -143
  20. package/dist/operations/syncAssetsDirectory/doAssetSync.js +42 -46
  21. package/dist/operations/syncAssetsDirectory.js +55 -78
  22. package/dist/utils/createReadableStreamFromReadable.js +61 -78
  23. package/dist/utils/index.js +10 -16
  24. package/dist/utils/launchBrowserAndWaitForSDK.js +31 -43
  25. package/dist/utils/startDevServer.d.ts +1 -1
  26. package/dist/utils/startPreviewServer.d.ts +1 -1
  27. package/dist/utils/startPreviewServer.js +28 -34
  28. package/dist/utils/validateVideoResolution.js +19 -23
  29. package/dist/utils/withSpinner.js +10 -12
  30. package/package.json +8 -8
  31. package/src/commands/check.ts +2 -2
  32. package/src/commands/mux.ts +10 -0
  33. package/src/operations/syncAssetsDirectory/SyncCaption.test.ts +12 -3
  34. package/src/operations/syncAssetsDirectory/SyncFragmentIndex.test.ts +11 -3
  35. package/src/operations/syncAssetsDirectory/SyncImage.test.ts +12 -3
  36. package/src/operations/syncAssetsDirectory/SyncImage.ts +3 -2
  37. package/src/operations/syncAssetsDirectory/SyncTrack.test.ts +11 -3
  38. package/src/operations/syncAssetsDirectory.test.ts +12 -5
  39. package/src/utils/createReadableStreamFromReadable.ts +3 -7
  40. package/src/utils/startDevServer.ts +5 -5
  41. package/src/utils/startPreviewServer.ts +1 -1
  42. package/test-fixtures/network.ts +38 -9
@@ -1,10 +1,15 @@
1
- import { http, HttpResponse } from "msw";
1
+ import { HttpResponse, http } from "msw";
2
2
  import type { Fixture } from "./fixture.js";
3
3
 
4
4
  export const mockCreateImageFile = ({
5
5
  complete = true,
6
6
  id = "123",
7
- }: { complete?: boolean; id?: string; filename?: string; fixture: Fixture }) =>
7
+ }: {
8
+ complete?: boolean;
9
+ id?: string;
10
+ filename?: string;
11
+ fixture: Fixture;
12
+ }) =>
8
13
  http.post(
9
14
  "http://localhost:3000/api/v1/image_files",
10
15
  async () => {
@@ -18,7 +23,12 @@ export const mockCreateImageFile = ({
18
23
 
19
24
  export const mockLookupImageFileByMd5 = ({
20
25
  md5 = "test-md5",
21
- }: { complete?: boolean; id?: string; md5?: string; fixture: Fixture }) =>
26
+ }: {
27
+ complete?: boolean;
28
+ id?: string;
29
+ md5?: string;
30
+ fixture: Fixture;
31
+ }) =>
22
32
  http.get(`http://localhost:3000/api/v1/image_files/md5/${md5}`, async () => {
23
33
  return HttpResponse.json({
24
34
  id: "123",
@@ -28,7 +38,9 @@ export const mockLookupImageFileByMd5 = ({
28
38
 
29
39
  export const mockLookupImageFileByMd5NotFound = ({
30
40
  md5 = "test-md5",
31
- }: { md5?: string }) =>
41
+ }: {
42
+ md5?: string;
43
+ }) =>
32
44
  http.get(`http://localhost:3000/api/v1/image_files/md5/${md5}`, async () => {
33
45
  return HttpResponse.json({}, { status: 404 });
34
46
  });
@@ -37,7 +49,12 @@ export const mockGetUploadImageFile = ({
37
49
  complete = true,
38
50
  id = "123",
39
51
  filename = "test.png",
40
- }: { complete?: boolean; id?: string; filename?: string; fixture: Fixture }) =>
52
+ }: {
53
+ complete?: boolean;
54
+ id?: string;
55
+ filename?: string;
56
+ fixture: Fixture;
57
+ }) =>
41
58
  http.get(
42
59
  `http://localhost:3000/api/v1/image_files/${id}/upload`,
43
60
  async () => {
@@ -91,7 +108,9 @@ export const mockLookupISOBMFFFileByMd5 = ({
91
108
 
92
109
  export const mockLookupISOBMFFFileByMd5NotFound = ({
93
110
  md5 = "test-md5",
94
- }: { md5?: string }) =>
111
+ }: {
112
+ md5?: string;
113
+ }) =>
95
114
  http.get(
96
115
  `http://localhost:3000/api/v1/isobmff_files/md5/${md5}`,
97
116
  async () => {
@@ -146,7 +165,10 @@ export const mockGetIsobmffTrackUpload = ({
146
165
  export const mockUploadIsobmffFileIndex = ({
147
166
  complete = true,
148
167
  id = "123",
149
- }: { complete?: boolean; id?: string }) =>
168
+ }: {
169
+ complete?: boolean;
170
+ id?: string;
171
+ }) =>
150
172
  http.post(
151
173
  "http://localhost:3000/api/v1/isobmff_files/123/index/upload",
152
174
  async () => {
@@ -162,7 +184,12 @@ export const mockLookupCaptionFileByMd5 = ({
162
184
  complete = true,
163
185
  id = "123",
164
186
  md5 = "test-md5",
165
- }: { complete?: boolean; id?: string; md5?: string; fixture: Fixture }) =>
187
+ }: {
188
+ complete?: boolean;
189
+ id?: string;
190
+ md5?: string;
191
+ fixture: Fixture;
192
+ }) =>
166
193
  http.get(
167
194
  `http://localhost:3000/api/v1/caption_files/md5/${md5}`,
168
195
  async () => {
@@ -175,7 +202,9 @@ export const mockLookupCaptionFileByMd5 = ({
175
202
 
176
203
  export const mockLookupCaptionFileByMd5NotFound = ({
177
204
  md5 = "test-md5",
178
- }: { md5?: string }) =>
205
+ }: {
206
+ md5?: string;
207
+ }) =>
179
208
  http.get(
180
209
  `http://localhost:3000/api/v1/caption_files/md5/${md5}`,
181
210
  async () => {