feat: publish Agent Studio integrations and setup guide

This commit is contained in:
Wenxin Duan
2026-09-16 16:32:16 +08:00
parent 2ad089d68a
commit 05e6060490
106 changed files with 4942 additions and 198 deletions
@@ -0,0 +1,12 @@
import {describe,it,expect} from "vitest";
import {assertSelectionReview} from "../src/media/review-ledger.js";
const plan={hash:"abc123",segmentIds:["one"]};
const review={planHash:"abc123",reviewer:"Local user",policyCheckedAt:new Date().toISOString(),pictureAudioReviewed:true,referenceReviewed:true,storyReviewed:true,packagingReviewed:true,noUnresolvedFindings:true,segmentEvidence:[{segmentId:"one",observation:"Reviewed the complete selected span with original audio; nonsexual conversation."}]};
describe("selection review gate",()=>{
it("requires every real review and exact immutable plan hash",()=>{
expect(()=>assertSelectionReview(review,plan)).not.toThrow();
for(const field of ["pictureAudioReviewed","referenceReviewed","storyReviewed","packagingReviewed","noUnresolvedFindings"])expect(()=>assertSelectionReview({...review,[field]:false},plan)).toThrow();
expect(()=>assertSelectionReview({...review,planHash:"changed"},plan)).toThrow();
expect(()=>assertSelectionReview({...review,segmentEvidence:[]},plan)).toThrow();
});
});