feat: add durable CMS-free image video subsystem and UI components

This commit is contained in:
Wenxin Duan
2026-09-15 01:04:09 +08:00
parent 9349317eb8
commit 40e03e393c
14 changed files with 795 additions and 0 deletions
@@ -0,0 +1,12 @@
import { describe, expect, it } from "vitest";
import * as harness from "../src/index.js";
describe("image video tool permissions", () => {
it("separates local draft/status from separately approved upload and generation", () => {
expect(harness.decideToolPolicy("i2v_create_task")).toBe("allow");
expect(harness.decideToolPolicy("i2v_status")).toBe("allow");
expect(harness.decideToolPolicy("i2v_upload_reference")).toBe("ask");
expect(harness.decideToolPolicy("i2v_submit")).toBe("ask");
expect(harness.decideToolPolicy("video_h3_submit")).toBe("deny");
expect(harness.decideToolPolicy("creative_upload_from_url")).toBe("deny");
});
});