@hadialmarzooq/agent-media-cli 0.1.1 → 0.2.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 (2) hide show
  1. package/dist/index.js +14 -1
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -21,7 +21,8 @@ import {
21
21
  optimizeForWeb,
22
22
  normalize,
23
23
  extractAudio,
24
- extractFrame
24
+ extractFrame,
25
+ concatenate
25
26
  } from "@hadialmarzooq/agent-media-ffmpeg";
26
27
  var packageVersion = createRequire(import.meta.url)("../package.json").version;
27
28
  function createProgram() {
@@ -124,6 +125,18 @@ function createProgram() {
124
125
  })
125
126
  );
126
127
  });
128
+ program.command("concatenate <input>").description("Concatenate multiple media sources into a single verified output.").requiredOption("--inputs <paths...>", "additional input paths to concatenate").requiredOption("--output <path>", "output media path").option("--overwrite", "allow output replacement").option("--progress", "write NDJSON progress events to stderr").action(async (input, options) => {
129
+ const onProgress = progressWriter(Boolean(options.progress));
130
+ print(
131
+ await concatenate({
132
+ input,
133
+ inputs: options.inputs,
134
+ output: options.output,
135
+ overwrite: options.overwrite,
136
+ ...onProgress === void 0 ? {} : { onProgress }
137
+ })
138
+ );
139
+ });
127
140
  program.command("execute <plan>").description("Execute a saved plan.").requiredOption("--output <path>", "output media path").option("--overwrite", "allow output replacement").option("--progress", "write NDJSON progress events to stderr").action(async (planPath, options) => {
128
141
  const plan = parsePlan(await readFile(planPath, "utf8"));
129
142
  const onProgress = progressWriter(Boolean(options.progress));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hadialmarzooq/agent-media-cli",
3
- "version": "0.1.1",
3
+ "version": "0.2.0",
4
4
  "description": "JSON-first CLI for deterministic, verified media workflows.",
5
5
  "keywords": [
6
6
  "media",
@@ -38,8 +38,8 @@
38
38
  },
39
39
  "dependencies": {
40
40
  "commander": "15.0.0",
41
- "@hadialmarzooq/agent-media-core": "0.1.1",
42
- "@hadialmarzooq/agent-media-ffmpeg": "0.1.1"
41
+ "@hadialmarzooq/agent-media-core": "0.2.0",
42
+ "@hadialmarzooq/agent-media-ffmpeg": "0.2.0"
43
43
  },
44
44
  "scripts": {
45
45
  "build": "tsup src/index.ts --format esm --dts",