feat(short-drama-agent-front): 接入分阶段镜头生产与摄影修订
This commit is contained in:
1 parent
1e9ef33d1d
commit
87427d9d43
29 files changed
+2787
-136
No files matched your search
@@ -68,6 +68,8 @@ export const productionApi = {
|
||||
plan: (projectId: string, signal?: AbortSignal, input: ProductionPlanInput = {}) =>
|
||||
request<ProductionPlanResponse>(`${projectPath(projectId)}/production/plan`, {
|
||||
method: 'POST',
|
||||
// 完整项目计划可能耗时,仍可通过信号取消,不重发 POST。
|
||||
timeoutMs: 120_000,
|
||||
// 计划携带与当前准备范围一致的阶段,不创建任务。
|
||||
body: {
|
||||
stage: input.stage,
|
||||
@@ -79,7 +81,7 @@ export const productionApi = {
|
||||
}),
|
||||
/** 读取真实主资产完成状态,不能用任务提交回执代替。 */
|
||||
status: (projectId: string, signal?: AbortSignal) =>
|
||||
request<ProjectProductionStatus>(`${projectPath(projectId)}/production/status`, { signal }),
|
||||
request<ProjectProductionStatus>(`${projectPath(projectId)}/production/status`, { signal, timeoutMs: 120_000 }),
|
||||
/**
|
||||
* 启动有限范围的串联生产,最终结果通过任务查询取得。
|
||||
* @param projectId 正式项目 ID
|
||||
|
||||
@@ -46,7 +46,19 @@ const formRef = ref<InstanceType<typeof AppForm> | null>(null)
|
||||
const directionSummary = computed(() =>
|
||||
props.direction
|
||||
? Object.entries(props.direction)
|
||||
.filter(([, value]) => value)
|
||||
.filter(
|
||||
([field, value]) =>
|
||||
[
|
||||
'shotSize',
|
||||
'cameraAngle',
|
||||
'cameraMovement',
|
||||
'composition',
|
||||
'cameraPosition',
|
||||
'lensIntent',
|
||||
'depthOfField',
|
||||
'visualIntent'
|
||||
].includes(field) && value
|
||||
)
|
||||
.map(([field, value]) => directionLabel(value, field))
|
||||
.join(' · ')
|
||||
: ''
|
||||
|
||||
@@ -562,8 +562,23 @@ export interface ProductionPlanStage {
|
||||
manualBlocked: number
|
||||
}
|
||||
|
||||
/** 服务端计算的项目分阶段门禁,不能由局部结果推断。 */
|
||||
export interface ProductionStageReadiness {
|
||||
/** 参考素材阶段。 */ referenceImages: {
|
||||
/** 当前门禁。 */ status: 'ready' | 'blocked'
|
||||
/** 真实原因。 */ reason: string | null
|
||||
}
|
||||
/** 首帧阶段。 */ keyframes: {
|
||||
/** 当前门禁。 */ status: 'ready' | 'blocked'
|
||||
/** 真实原因。 */ reason: string | null
|
||||
}
|
||||
/** 视频阶段。 */ videos: { /** 当前门禁。 */ status: 'ready' | 'blocked'; /** 真实原因。 */ reason: string | null }
|
||||
}
|
||||
|
||||
/** 后端执行计划只读取资产,不触发模型生成。 */
|
||||
export interface ProductionPlan {
|
||||
/** 免费计划返回的分阶段准备状态。 */
|
||||
stageReadiness?: ProductionStageReadiness
|
||||
/** 项目配置就绪状态;兼容尚未返回此字段的服务版本。 */
|
||||
configuration?: {
|
||||
/** 当前配置可用于制作计划。 */
|
||||
@@ -613,6 +628,8 @@ export interface ProductionPlan {
|
||||
|
||||
/** 缺少项目配置时仅返回入口状态,各制作阶段不可读取或执行。 */
|
||||
export interface ProductionConfigurationBlockedPlan {
|
||||
/** 配置阻断时仍保留真实分阶段门禁。 */
|
||||
stageReadiness?: ProductionStageReadiness
|
||||
/** 所属项目编号。 */
|
||||
projectId: string
|
||||
/** 配置未完成时禁止启动。 */
|
||||
|
||||
Reference in new issue
Block a user