diff --git a/apps/api/src/opendirector_api/localization.py b/apps/api/src/opendirector_api/localization.py index fd3d72d25..233d299cd 100644 --- a/apps/api/src/opendirector_api/localization.py +++ b/apps/api/src/opendirector_api/localization.py @@ -16,6 +16,16 @@ from opendirector.domain.capability_messages import english_capability_message, missing_tool_model_message ENGLISH_BY_CODE = { + "h3_timeline_guides_single_model": "Configure native timeline guides for one FastH3 model at a time.", + "h3_timeline_guides_mixed": "Use either generated-video guides or standalone keyframes for this segment.", + "workflow_assembly_busy": "This assembly run is already processing. Wait for its result.", + "workflow_media_invalid": "The source frames, geometry, or soundtrack do not match the assembly.", + "workflow_media_failed": "Media processing failed. Check FFmpeg and the source videos.", + "pipeline_assembly_changed": "The group assembly recipe changed during execution.", + "pipeline_assembly_invalid": "The group, timeline, or upstream job required for assembly is unavailable.", + "h3_timeline_guides_unsupported": "This deployment or video mode does not support H3 segment timeline guides.", + "h3_timeline_guides_deployment": "Native timeline guide settings require a compatible self-hosted FastH3 endpoint.", + "h3_timeline_guides_source_limit": "Use only one source video for an H3 segment.", 'keyframe_unsupported': 'This model or mode does not support keyframes. Clear the keyframe times or choose another model.', 'keyframe_mode': 'Keyframes work in Universal reference mode only, not with first/last frames, continuation or structure control.', 'keyframe_kind': 'A keyframe must be an image.', @@ -210,6 +220,10 @@ def localized_error_for_language( translated = english_capability_message(chinese) if translated: return translated + if code == 'reference_invalid': + segment = re.fullmatch(r'组装片段「(.+)」的生成任务缺少来源画布节点(originItemId)。', chinese, re.DOTALL) + if segment: + return f'The generation job for assembly segment “{segment[1]}” is missing its source canvas node (originItemId).' # A generic operation code must not hide a more specific HTTP status. generic = code in {"operation_rejected", "invalid_input"} if generic and status in {413, 502, 504}: diff --git a/docs/guides/cli.md b/docs/guides/cli.md index ff46af94c..d17895521 100644 --- a/docs/guides/cli.md +++ b/docs/guides/cli.md @@ -187,3 +187,9 @@ Updates and resizes require the `canvas_item` revision returned by `show`. Recei `canvas text show` reads `/api/creation/projects/{projectId}/assets/{assetId}/content` through a bounded HTTP stream on both CLI transports, retaining UTF-8 BOM and CRLF. Its cap is `MAX_CREATION_TEXT_BYTES` (1,048,576 bytes); the shared agent `read` tool still uses its original 64 KiB budget. The API address comes from `--url` or `OPENDIRECTOR_API_URL`, which the application launcher supplies to Agent Shell. `canvas text show` 在两种 CLI 传输方式下都通过有界 HTTP 流读取 `/api/creation/projects/{projectId}/assets/{assetId}/content`,保留 UTF-8 BOM 和 CRLF。上限为 `MAX_CREATION_TEXT_BYTES`(1,048,576 字节);共用 Agent `read` 工具仍保留原有的 64 KiB 预算。API 地址来自 `--url` 或 `OPENDIRECTOR_API_URL`,应用启动器会将该环境变量传给 Agent Shell。 + +## Pipeline 分组组装 / Assemble a Pipeline group + +使用 `group configure-assembly --file assembly.json` 保存分组、目标时间线、成片节点和各段保留区间,再用 `pipeline start` 启动分组。Pipeline 复用输入未变化的片段,组装已采用的结果,并保留时间线的原声音轨。使用回执的 `pipelineExecutionId` 调用 `query pipeline.execution.get --object-id EXECUTION_ID`,重开项目后可继续查看执行记录。 + +Use `group configure-assembly --file assembly.json` to save the group, target timeline, output node, and kept frame ranges. Start the group with `pipeline start`. The Pipeline reuses segments with unchanged inputs, assembles adopted outputs, and preserves the timeline soundtrack. Read the durable execution with `query pipeline.execution.get --object-id EXECUTION_ID` and the `pipelineExecutionId` from the start receipt. diff --git a/feature-assets/fasth3-segment-guide/fixture.mp4 b/feature-assets/fasth3-segment-guide/fixture.mp4 new file mode 100644 index 000000000..b4bf2969e Binary files /dev/null and b/feature-assets/fasth3-segment-guide/fixture.mp4 differ diff --git a/feature-assets/fasth3-segment-guide/multipart-receipts.json b/feature-assets/fasth3-segment-guide/multipart-receipts.json new file mode 100644 index 000000000..72579ef65 --- /dev/null +++ b/feature-assets/fasth3-segment-guide/multipart-receipts.json @@ -0,0 +1,107 @@ +{ + "provider": "in-process double returning the synthetic fixture bytes", + "runs": { + "anchor": { + "sourceFrames": null, + "requestFields": { + "model": "FastH3-Omni", + "prompt": "Preserve the motion of the synthetic test pattern.\nsource.mp4\ufffd\ufffd\ufffd