@editframe/cli 0.18.22-beta.0 → 0.18.26-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.
package/dist/VERSION.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const VERSION = "0.18.22-beta.0";
1
+ export declare const VERSION = "0.18.26-beta.0";
package/dist/VERSION.js CHANGED
@@ -1,2 +1,2 @@
1
- const VERSION = "0.18.22-beta.0";
1
+ const VERSION = "0.18.26-beta.0";
2
2
  export { VERSION };
@@ -14,11 +14,11 @@ import path, { basename, join } from "node:path";
14
14
  import { readFile, writeFile } from "node:fs/promises";
15
15
  import { PassThrough } from "node:stream";
16
16
  import { md5Directory, md5FilePath } from "@editframe/assets";
17
+ import { spawnSync } from "node:child_process";
17
18
  import { inspect } from "node:util";
19
+ import { RenderInfo, getRenderInfo } from "@editframe/elements";
18
20
  import { parse } from "node-html-parser";
19
21
  import * as tar from "tar";
20
- import { spawnSync } from "node:child_process";
21
- import { RenderInfo, getRenderInfo } from "@editframe/elements";
22
22
  const log = debug("ef:cli:render");
23
23
  const buildAssetId = async (srcDir, src, basename$1) => {
24
24
  log(`Building image asset id for ${src}\n`);
@@ -1,7 +1,7 @@
1
- import { SyncStatus } from './SyncStatus.js';
2
1
  import { SyncCaption } from './SyncCaption.js';
3
2
  import { SyncFragmentIndex } from './SyncFragmentIndex.js';
4
3
  import { SyncImage } from './SyncImage.js';
4
+ import { SyncStatus } from './SyncStatus.js';
5
5
  import { SyncTrack } from './SyncTrack.js';
6
6
  export interface SubAssetSync<CreationType> {
7
7
  icon: string;
@@ -1,5 +1,5 @@
1
- import { getAssetSync } from "./syncAssetsDirectory/SubAssetSync.js";
2
1
  import { doAssetSync } from "./syncAssetsDirectory/doAssetSync.js";
2
+ import { getAssetSync } from "./syncAssetsDirectory/SubAssetSync.js";
3
3
  import path from "node:path";
4
4
  import fs from "node:fs/promises";
5
5
  const syncAssetDirectory = async (cacheDir) => {
@@ -1,7 +1,7 @@
1
1
  import { withSpinner } from "./withSpinner.js";
2
2
  import path from "node:path";
3
- import { createServer } from "rolldown-vite";
4
3
  import { vitePluginEditframe } from "@editframe/vite-plugin";
4
+ import { createServer } from "rolldown-vite";
5
5
  var PreviewServer = class PreviewServer {
6
6
  static async start(directory) {
7
7
  return new PreviewServer(await startPreviewServer(directory));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@editframe/cli",
3
- "version": "0.18.22-beta.0",
3
+ "version": "0.18.26-beta.0",
4
4
  "description": "Command line interface for EditFrame",
5
5
  "bin": {
6
6
  "editframe": "./dist/index.js"
@@ -23,10 +23,10 @@
23
23
  "vite-tsconfig-paths": "^4.3.2"
24
24
  },
25
25
  "dependencies": {
26
- "@editframe/api": "0.18.22-beta.0",
27
- "@editframe/assets": "0.18.22-beta.0",
28
- "@editframe/elements": "0.18.22-beta.0",
29
- "@editframe/vite-plugin": "0.18.22-beta.0",
26
+ "@editframe/api": "0.18.26-beta.0",
27
+ "@editframe/assets": "0.18.26-beta.0",
28
+ "@editframe/elements": "0.18.26-beta.0",
29
+ "@editframe/vite-plugin": "0.18.26-beta.0",
30
30
  "@inquirer/prompts": "^5.3.8",
31
31
  "axios": "^1.6.8",
32
32
  "chalk": "^5.3.0",
@@ -1,5 +1,5 @@
1
- import { program } from "commander";
2
1
  import { spawn } from "node:child_process";
2
+ import { program } from "commander";
3
3
 
4
4
  program
5
5
  .command("preview [directory]")
@@ -1,7 +1,3 @@
1
- import { program } from "commander";
2
-
3
- import { withSpinner } from "../utils/withSpinner.js";
4
-
5
1
  import {
6
2
  createUnprocessedFileFromPath,
7
3
  getIsobmffProcessInfo,
@@ -9,8 +5,10 @@ import {
9
5
  processIsobmffFile,
10
6
  uploadUnprocessedFile,
11
7
  } from "@editframe/api/node";
8
+ import { program } from "commander";
12
9
  import ora from "ora";
13
10
  import { getClient } from "../utils/index.js";
11
+ import { withSpinner } from "../utils/withSpinner.js";
14
12
 
15
13
  program
16
14
  .command("process-file <file>")
@@ -1,9 +1,7 @@
1
1
  import { spawnSync } from "node:child_process";
2
2
  import path from "node:path";
3
-
4
- import { program } from "commander";
5
-
6
3
  import { getRenderInfo } from "@editframe/elements";
4
+ import { program } from "commander";
7
5
  import { processRenderInfo } from "../operations/processRenderInfo.js";
8
6
  import { launchBrowserAndWaitForSDK } from "../utils/launchBrowserAndWaitForSDK.js";
9
7
  import { PreviewServer } from "../utils/startPreviewServer.js";
@@ -1,21 +1,18 @@
1
+ import { spawnSync } from "node:child_process";
1
2
  import { readFile, writeFile } from "node:fs/promises";
2
3
  import path, { basename, join } from "node:path";
3
4
  import { PassThrough } from "node:stream";
4
5
  import { inspect } from "node:util";
5
-
6
+ import { createRender, uploadRender } from "@editframe/api";
7
+ import { md5Directory, md5FilePath } from "@editframe/assets";
8
+ import { getRenderInfo, RenderInfo } from "@editframe/elements";
6
9
  import { Option, program } from "commander";
10
+ import debug from "debug";
7
11
  import { parse as parseHTML } from "node-html-parser";
8
12
  import * as tar from "tar";
9
-
10
- import { md5Directory, md5FilePath } from "@editframe/assets";
11
-
12
- import { spawnSync } from "node:child_process";
13
- import { createRender, uploadRender } from "@editframe/api";
14
- import { RenderInfo, getRenderInfo } from "@editframe/elements";
15
- import debug from "debug";
16
13
  import { processRenderInfo } from "../operations/processRenderInfo.js";
17
- import { syncAssetDirectory } from "../operations/syncAssetsDirectory.js";
18
14
  import { SyncStatus } from "../operations/syncAssetsDirectory/SyncStatus.js";
15
+ import { syncAssetDirectory } from "../operations/syncAssetsDirectory.js";
19
16
  import { createReadableStreamFromReadable } from "../utils/createReadableStreamFromReadable.js";
20
17
  import { getClient } from "../utils/index.js";
21
18
  import { launchBrowserAndWaitForSDK } from "../utils/launchBrowserAndWaitForSDK.js";
@@ -1,9 +1,8 @@
1
1
  import debug from "debug";
2
- import type { SyncStatus } from "./SyncStatus.js";
3
-
4
2
  import { SyncCaption } from "./SyncCaption.js";
5
3
  import { SyncFragmentIndex } from "./SyncFragmentIndex.js";
6
4
  import { SyncImage } from "./SyncImage.js";
5
+ import type { SyncStatus } from "./SyncStatus.js";
7
6
  import { SyncTrack } from "./SyncTrack.js";
8
7
 
9
8
  export interface SubAssetSync<CreationType> {
@@ -1,18 +1,16 @@
1
1
  import fs from "node:fs/promises";
2
+ import { basename } from "node:path";
2
3
 
4
+ import { Readable } from "node:stream";
3
5
  import {
4
6
  type CreateCaptionFileResult,
5
- type LookupCaptionFileByMd5Result,
6
7
  createCaptionFile,
8
+ type LookupCaptionFileByMd5Result,
7
9
  lookupCaptionFileByMd5,
8
10
  uploadCaptionFile,
9
11
  } from "@editframe/api";
10
-
11
- import { Readable } from "node:stream";
12
- import { getClient } from "../../utils/index.js";
13
-
14
- import { basename } from "node:path";
15
12
  import { createReadableStreamFromReadable } from "../../utils/createReadableStreamFromReadable.js";
13
+ import { getClient } from "../../utils/index.js";
16
14
  import type { SubAssetSync } from "./SubAssetSync.js";
17
15
  import { SyncStatus } from "./SyncStatus.js";
18
16
  export class SyncCaption implements SubAssetSync<CreateCaptionFileResult> {
@@ -4,8 +4,8 @@ import { Readable } from "node:stream";
4
4
 
5
5
  import {
6
6
  type CreateISOBMFFFileResult,
7
- type LookupISOBMFFFileByMd5Result,
8
7
  createISOBMFFFile,
8
+ type LookupISOBMFFFileByMd5Result,
9
9
  lookupISOBMFFFileByMd5,
10
10
  uploadFragmentIndex,
11
11
  } from "@editframe/api";
@@ -6,9 +6,9 @@ import {
6
6
  type CreateISOBMFFFileResult,
7
7
  type CreateISOBMFFTrackPayload,
8
8
  type CreateISOBMFFTrackResult,
9
- type LookupISOBMFFFileByMd5Result,
10
9
  createISOBMFFFile,
11
10
  createISOBMFFTrack,
11
+ type LookupISOBMFFFileByMd5Result,
12
12
  lookupISOBMFFFileByMd5,
13
13
  uploadISOBMFFTrack,
14
14
  } from "@editframe/api";
@@ -1,7 +1,7 @@
1
1
  import { describe, expect, test, vi } from "vitest";
2
+ import { doAssetSync } from "./doAssetSync.js";
2
3
  import type { SubAssetSync } from "./SubAssetSync.js";
3
4
  import type { SyncStatusInfo } from "./SyncStatus.js";
4
- import { doAssetSync } from "./doAssetSync.js";
5
5
 
6
6
  const collectAsyncGenerator = async (
7
7
  generator: SubAssetSync<unknown>,
@@ -1,7 +1,7 @@
1
1
  import fs from "node:fs/promises";
2
2
  import path from "node:path";
3
- import { getAssetSync } from "./syncAssetsDirectory/SubAssetSync.js";
4
3
  import { doAssetSync } from "./syncAssetsDirectory/doAssetSync.js";
4
+ import { getAssetSync } from "./syncAssetsDirectory/SubAssetSync.js";
5
5
 
6
6
  export const syncAssetDirectory = async (
7
7
  /**
@@ -1,5 +1,5 @@
1
- import type { Page } from "playwright";
2
1
  import type { EFTimegroup } from "@editframe/elements";
2
+ import type { Page } from "playwright";
3
3
 
4
4
  export const attachWorkbench = (page: Page) => {
5
5
  page.on("load", buildWorkbench.bind(null, page));
@@ -1,6 +1,6 @@
1
1
  import chalk from "chalk";
2
2
  import debug from "debug";
3
- import { type Browser, type Page, chromium } from "playwright";
3
+ import { type Browser, chromium, type Page } from "playwright";
4
4
 
5
5
  import { withSpinner } from "./withSpinner.js";
6
6
 
@@ -1,7 +1,6 @@
1
1
  import path from "node:path";
2
- import { type ViteDevServer, createServer } from "rolldown-vite";
3
-
4
2
  import { vitePluginEditframe as editframe } from "@editframe/vite-plugin";
3
+ import { createServer, type ViteDevServer } from "rolldown-vite";
5
4
 
6
5
  import { withSpinner } from "./withSpinner.js";
7
6
 
@@ -1,6 +1,6 @@
1
- import { z } from "zod";
2
- import ora from "ora";
3
1
  import debug from "debug";
2
+ import ora from "ora";
3
+ import { z } from "zod";
4
4
 
5
5
  const log = debug("ef:cli:validateVideoResolution");
6
6
 
@@ -1,14 +1,11 @@
1
- import { mkdir, readFile, readdir, rm, writeFile } from "node:fs/promises";
1
+ import { mkdir, readdir, readFile, rm, writeFile } from "node:fs/promises";
2
2
  import { tmpdir } from "node:os";
3
3
  import { join } from "node:path";
4
-
4
+ import { md5Buffer } from "@editframe/assets";
5
5
  import { v4 } from "uuid";
6
6
  import { expect } from "vitest";
7
-
8
- import { md5Buffer } from "@editframe/assets";
9
-
10
- import { syncAssetDirectory } from "../src/operations/syncAssetsDirectory.js";
11
7
  import type { SyncStatusInfo } from "../src/operations/syncAssetsDirectory/SyncStatus.js";
8
+ import { syncAssetDirectory } from "../src/operations/syncAssetsDirectory.js";
12
9
 
13
10
  export const fixture = async (
14
11
  fixture: string,