feat: add durable CMS-free image video subsystem and UI components
This commit is contained in:
@@ -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");
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user