fix(short-drama-agent-front): 修复代码格式检查问题
This commit is contained in:
1 parent
81d6a85260
commit
48fce3975f
87 files changed
+5714
-1436
No files matched your search
@@ -1,4 +1,10 @@
|
||||
import type { StoryboardRecheck, ReviewBaselinePreview, StoryboardApprovalState, StoryboardApproval, ProductionEntryReadiness } from '@/features/storyboard-preparation/types'
|
||||
import type {
|
||||
StoryboardRecheck,
|
||||
ReviewBaselinePreview,
|
||||
StoryboardApprovalState,
|
||||
StoryboardApproval,
|
||||
ProductionEntryReadiness
|
||||
} from '@/features/storyboard-preparation/types'
|
||||
import { policyReceipt } from '../../fixtures/quality-policy'
|
||||
|
||||
/**
|
||||
@@ -7,11 +13,81 @@ import { policyReceipt } from '../../fixtures/quality-policy'
|
||||
* @returns 可变化的只读回执与确认记录
|
||||
*/
|
||||
export function preparationFixture(projectId = 'p') {
|
||||
const policy = policyReceipt(projectId, { version: 1, physicsMode: 'stylized', allowExaggeratedMotion: true, allowNonPhysicalActions: false, allowSupernaturalAbilities: false, customRules: [] }, { confirmed: true, confirmedRevision: 2, confirmedAt: '2026-10-19T01:00:00Z' })
|
||||
const quality: StoryboardRecheck = { projectId, status: 'insufficient_evidence', structure: { hasValidation: true, valid: true, reason: null }, coverage: { episodeCount: 1, beatCount: 1, shotCount: 1, issueCount: 0 }, issues: [], actionAudit: { projectId, shotCount: 1, issueCount: 0, blockedCount: 0, needsReviewCount: 0, issues: [] }, sourceAudit: { projectId, checkpointId: 'cp', shotCount: 1, valid: true, issues: [] }, provenance: { checkpointId: 'cp', sourceCommitted: true, qualityPolicyConsistent: true, qualityPolicyChecks: { projectConfirmed: true, checkpointSnapshotPresent: true }, baselineConsistent: false, shotCountsConsistent: true, checkpointConsistent: true }, preflightEligible: true, canConfirm: false }
|
||||
const record: StoryboardApproval = { id: 'approval', projectId, checkpointId: 'cp', qualityPolicyRevision: 2, qualityPolicyFingerprint: 'a'.repeat(64), shotCount: 1, shotFingerprint: 'b'.repeat(64), reviewer: '复核人', reviewNote: '已逐镜核对动作与主体', confirmedAt: '2026-10-19T01:00:00Z' }
|
||||
const approval: StoryboardApprovalState = { valid: false, confirmation: null, evidence: { valid: true, checkpointId: 'cp', qualityPolicyRevision: 2, qualityPolicyFingerprint: 'a'.repeat(64), shotCount: 1, shotFingerprint: 'b'.repeat(64) } }
|
||||
const baseline: ReviewBaselinePreview = { eligible: false, reasons: ['当前记录已有规则来源'], checkpointId: 'cp', shotCount: 1, shotFingerprint: 'b'.repeat(64) }
|
||||
const entry: ProductionEntryReadiness = { ready: false, hasStoryboardValidation: true, storyboardValid: true, reason: '请先完成分镜审核', derivedAssets: { shotCount: 1, directionCount: 0, directionCoverage: 0, visualStateCount: 0, visualStateCoverage: 0 } }
|
||||
const policy = policyReceipt(
|
||||
projectId,
|
||||
{
|
||||
version: 1,
|
||||
physicsMode: 'stylized',
|
||||
allowExaggeratedMotion: true,
|
||||
allowNonPhysicalActions: false,
|
||||
allowSupernaturalAbilities: false,
|
||||
customRules: []
|
||||
},
|
||||
{ confirmed: true, confirmedRevision: 2, confirmedAt: '2026-10-19T01:00:00Z' }
|
||||
)
|
||||
const quality: StoryboardRecheck = {
|
||||
projectId,
|
||||
status: 'insufficient_evidence',
|
||||
structure: { hasValidation: true, valid: true, reason: null },
|
||||
coverage: { episodeCount: 1, beatCount: 1, shotCount: 1, issueCount: 0 },
|
||||
issues: [],
|
||||
actionAudit: { projectId, shotCount: 1, issueCount: 0, blockedCount: 0, needsReviewCount: 0, issues: [] },
|
||||
sourceAudit: { projectId, checkpointId: 'cp', shotCount: 1, valid: true, issues: [] },
|
||||
provenance: {
|
||||
checkpointId: 'cp',
|
||||
sourceCommitted: true,
|
||||
qualityPolicyConsistent: true,
|
||||
qualityPolicyChecks: { projectConfirmed: true, checkpointSnapshotPresent: true },
|
||||
baselineConsistent: false,
|
||||
shotCountsConsistent: true,
|
||||
checkpointConsistent: true
|
||||
},
|
||||
preflightEligible: true,
|
||||
canConfirm: false
|
||||
}
|
||||
const record: StoryboardApproval = {
|
||||
id: 'approval',
|
||||
projectId,
|
||||
checkpointId: 'cp',
|
||||
qualityPolicyRevision: 2,
|
||||
qualityPolicyFingerprint: 'a'.repeat(64),
|
||||
shotCount: 1,
|
||||
shotFingerprint: 'b'.repeat(64),
|
||||
reviewer: '复核人',
|
||||
reviewNote: '已逐镜核对动作与主体',
|
||||
confirmedAt: '2026-10-19T01:00:00Z'
|
||||
}
|
||||
const approval: StoryboardApprovalState = {
|
||||
valid: false,
|
||||
confirmation: null,
|
||||
evidence: {
|
||||
valid: true,
|
||||
checkpointId: 'cp',
|
||||
qualityPolicyRevision: 2,
|
||||
qualityPolicyFingerprint: 'a'.repeat(64),
|
||||
shotCount: 1,
|
||||
shotFingerprint: 'b'.repeat(64)
|
||||
}
|
||||
}
|
||||
const baseline: ReviewBaselinePreview = {
|
||||
eligible: false,
|
||||
reasons: ['当前记录已有规则来源'],
|
||||
checkpointId: 'cp',
|
||||
shotCount: 1,
|
||||
shotFingerprint: 'b'.repeat(64)
|
||||
}
|
||||
const entry: ProductionEntryReadiness = {
|
||||
ready: false,
|
||||
hasStoryboardValidation: true,
|
||||
storyboardValid: true,
|
||||
reason: '请先完成分镜审核',
|
||||
derivedAssets: {
|
||||
shotCount: 1,
|
||||
directionCount: 0,
|
||||
directionCoverage: 0,
|
||||
visualStateCount: 0,
|
||||
visualStateCoverage: 0
|
||||
}
|
||||
}
|
||||
return { policy, quality, approval, baseline, entry, record }
|
||||
}
|
||||
Reference in new issue
Block a user