Skip to content

Commit e65042b

Browse files
authored
feat: submit ffmpeg job type instead of raw.ffmpeg (#32)
The API now uses `ffmpeg` as the canonical job type. The backend still accepts `raw.ffmpeg` as a transitional alias, so this is non-breaking.
1 parent 4c71943 commit e65042b

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/__tests__/shell-escape.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ describe("shellEscape", () => {
157157
// to "" — but our parser drops empty quoted segments via the
158158
// `current.length > 0` push gate. That's a known/accepted limitation:
159159
// ffmpeg never takes empty argv elements and the CLI never produces them
160-
// for raw.ffmpeg. Filter the empty out before comparing.
160+
// for ffmpeg. Filter the empty out before comparing.
161161
expect(parse(command)).toEqual(argv.filter((a) => a.length > 0));
162162
});
163163
});

src/commands/ffmpeg.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ export default defineCommand({
164164

165165
const job = await steps.step("Submitting", async () => {
166166
return client.jobs.create(
167-
{ type: "raw.ffmpeg", params: { command, timeout: flags.timeout } },
167+
{ type: "ffmpeg", params: { command, timeout: flags.timeout } },
168168
{ signal: controller.signal },
169169
);
170170
});

src/lib/shell-escape.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* POSIX shell-escape an argv element for embedding in a single command string.
33
*
4-
* Used when the CLI joins argv into a `command` field for `raw.ffmpeg` job
4+
* Used when the CLI joins argv into a `command` field for `ffmpeg` job
55
* submission. The API-side parser implements the matching POSIX rules so
66
* `argv → shellEscape → join → parse → argv` is lossless.
77
*

0 commit comments

Comments
 (0)