refactor(*): 稳定期治理 - 收敛核心架构、错误语义并修复跨项目数据竞态

This commit is contained in:
ddCat
2026-09-09 22:02:10 +08:00
parent 83d9622fd0
commit bf41ef3172
298 changed files with 12681 additions and 26428 deletions

View File

@@ -13,9 +13,9 @@ import { EditorAiAssistant } from "./editor-ai-assistant";
const manifest: PluginManifestV2 = {
apiVersion: "yingce.plugin/v2",
id: "editor-shell",
name: "剪辑工作台(壳)",
name: "剪辑工作台",
version: "0.1.0",
description: "编辑器预设插件垂直切片:注册时间线面板插槽,验证 v2 插件插槽注册→渲染链路。",
description: "注册时间线、预览、检查器、素材、字幕、转写、导出和 AI 编辑八个工作台插槽。",
author: "影策团队",
surfaces: ["fullscreen"],
permissions: ["timeline.read", "timeline.command", "export.run"],
@@ -42,55 +42,47 @@ export const editorShellPlugin: RegisteredPlugin = {
registerPlugin(editorShellPlugin);
// M2.4:插槽渲染函数 = 真实时间线面板(命令状态机 + 手势)。
registerEditorSlot({
pluginId: manifest.id,
slot: "timeline-panel",
render: () => <EditorTimelinePanel />,
});
// M3.2:插槽渲染函数 = 预览监视器(浏览器内近似预览 + 播放头)。
registerEditorSlot({
pluginId: manifest.id,
slot: "preview-renderer",
render: () => <EditorPreviewMonitor />,
});
// M3.3:插槽渲染函数 = 片段检查器(属性编辑入队可撤销)。
registerEditorSlot({
pluginId: manifest.id,
slot: "inspector",
render: () => <EditorInspector />,
});
// M3.4:插槽渲染函数 = 素材库(点击资产 → addClip 入轨)。
registerEditorSlot({
pluginId: manifest.id,
slot: "asset-ingest",
render: () => <EditorAssetIngest />,
});
// M3.5:插槽渲染函数 = 字幕工具(SRT 导入导出 + 从节点重建字幕快照)。
registerEditorSlot({
pluginId: manifest.id,
slot: "subtitle-tool",
render: () => <EditorSubtitleTools />,
});
// M3.6:转写(mock ASR → 字幕轨道,M4 接后端任务客户端)。
registerEditorSlot({
pluginId: manifest.id,
slot: "transcription-provider",
render: () => <EditorTranscription />,
});
// M3.7:导出(渲染计划 + ffmpeg.wasm 降级,M4 接后端任务)。
registerEditorSlot({
pluginId: manifest.id,
slot: "export-renderer",
render: () => <EditorExport />,
});
// M3.8:AI 助手占位(M6 补实现 ai-command-schema + timeline-summary)。
registerEditorSlot({
pluginId: manifest.id,
slot: "ai-assistant",