feat(short-drama-agent-front): 接入连续性状态签收与联合审核
This commit is contained in:
1 parent
0d58dd8c53
commit
10e008ca10
21 files changed
+1319
-25
No files matched your search
Vendored
+73
@@ -0,0 +1,73 @@
|
||||
import type { JointPlan, JointTask } from '../../src/features/production/continuity-joint'
|
||||
import type { StateContext } from '../../src/features/production/continuity-state'
|
||||
/** 联合审核隔离计划,不包含真实收费批准。 */
|
||||
export const jointPlan: JointPlan = {
|
||||
projectId: 'p',
|
||||
reviewId: 'r',
|
||||
fingerprint: 'a'.repeat(64),
|
||||
model: '隔离模型',
|
||||
status: 'ready',
|
||||
executionAvailable: true,
|
||||
requiresExplicitApproval: true,
|
||||
paidCalls: 0,
|
||||
proposedMaximumProviderRequests: 1,
|
||||
additionalProviderRequests: 1,
|
||||
feeEstimate: { currency: 'CNY', amount: null, reason: '待估算' },
|
||||
capability: { verified: true, reason: '隔离核验' },
|
||||
latestTask: null,
|
||||
reusableTaskId: null,
|
||||
imageManifest: [
|
||||
{
|
||||
imageNumber: 1,
|
||||
label: '首帧',
|
||||
pixels: { sha256: 'b'.repeat(64), width: 1024, height: 1024 },
|
||||
bindings: [{ shotId: 's1', imageId: 'i1', role: 'frame' }]
|
||||
},
|
||||
{
|
||||
imageNumber: 2,
|
||||
label: '合并空间图',
|
||||
pixels: { sha256: 'c'.repeat(64), width: 1024, height: 1024 },
|
||||
bindings: [
|
||||
{ shotId: 's1', imageId: 'layout', role: 'spatial_reference' },
|
||||
{ shotId: 's2', imageId: 'layout', role: 'spatial_reference' }
|
||||
]
|
||||
}
|
||||
],
|
||||
request: { messages: [{ role: 'user', content: '正式状态与动作依据' }] }
|
||||
}
|
||||
/** 已完成但业务失败的原任务。 */
|
||||
export const jointTask: JointTask = {
|
||||
validationTaskId: 't',
|
||||
executionId: 'e',
|
||||
reviewId: 'r',
|
||||
taskStatus: 'completed',
|
||||
workflowStatus: 'completed',
|
||||
status: 'failed',
|
||||
current: true,
|
||||
planFingerprint: jointPlan.fingerprint,
|
||||
resumeAvailable: false,
|
||||
requiresNewProviderRequest: false,
|
||||
retryAutomatically: false,
|
||||
diagnosis: { status: 'failed' },
|
||||
machineObservation: { summary: '原机器观察' },
|
||||
summary: '结构冲突',
|
||||
feeScope: { currency: 'CNY', estimatedMin: 0, estimatedMax: 1, maxRequests: 1 },
|
||||
step: { name: 'general', status: 'completed' }
|
||||
}
|
||||
/** 正式相邻两镜人工状态依据。 */
|
||||
export const stateContexts: StateContext[] = ['s1', 's2'].map(shotId => ({
|
||||
shotId,
|
||||
generation: { subjects: [{ subjectRef: '@CH1', gaze: shotId === 's1' ? '向左' : '向前' }] },
|
||||
requiredActions: [{ id: 'A1', description: '观察', kind: 'action', mustPerformInShot: true }],
|
||||
sources: [
|
||||
{
|
||||
id: shotId + '-state',
|
||||
shotId,
|
||||
kind: 'visual_state',
|
||||
subjectRef: '@CH1',
|
||||
field: 'gaze',
|
||||
text: '当前正式视线',
|
||||
executable: false
|
||||
}
|
||||
]
|
||||
}))
|
||||
Reference in new issue
Block a user