Skip to content

The open-source full-stack studio for Opus 5.5 motion video. Reverse engineering for any video. Code video with HTML: recreate, edit and render. BYOA + BYOK · Motion.md · Images, Video, Music & Voice.

518 B
Raw Blame
import { createInterface } from 'node:readline';
import { rpc, mcpRegistry } from '../mcp.ts';
import { WorkspaceStore } from '../workspace.ts';
const store = new WorkspaceStore(), connection = { selection: {} }, registry = mcpRegistry('legacy');
for await (const line of createInterface({ input: process.stdin, crlfDelay: Infinity })) {
  if (!line.trim()) continue;
  const response = await rpc(JSON.parse(line), store, registry, connection);
  if (response) process.stdout.write(JSON.stringify(response) + '\n');
}