Picks up ComfyUI generation, media tool dispatch and the streaming runner. The video tools now share the image tools' schema helper, and both sets of operations join the runtime's operation list. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MRtGG9ARfqqhma3t85Ro2u
18 lines
781 B
TypeScript
18 lines
781 B
TypeScript
import type { MediaSettings } from "@rakazo/contracts";
|
|
import { createImageOperations } from "./media/image-operations.js";
|
|
import { createVideoOperations } from "./media/video-operations.js";
|
|
import type { MediaOperationRegistration } from "./media-runtime.js";
|
|
|
|
export interface MediaOperationDeps {
|
|
/** Current deployment-wide media backends; read per call so edits apply without a restart. */
|
|
loadSettings(): Promise<MediaSettings>;
|
|
}
|
|
|
|
/**
|
|
* Every media operation this deployment can run. The API and the worker build their runtime
|
|
* from this one list, so both processes run the same operations.
|
|
*/
|
|
export function createMediaOperations(deps: MediaOperationDeps): MediaOperationRegistration[] {
|
|
return [...createImageOperations(deps), ...createVideoOperations()];
|
|
}
|