evOo-local/packages/adapters/src/media-operations.ts
Claude 4e545c20f4
Merge the media integration branch into video editing again
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
2026-10-03 13:57:18 +00:00

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()];
}