feat: direct-execute global pipeline actions
Some checks failed
StoryForge CI / Baseline checks (push) Has been cancelled
StoryForge CI / Backend tests (push) Has been cancelled
StoryForge CI / Web tests (push) Has been cancelled

This commit is contained in:
kris
2026-04-05 08:24:25 +08:00
parent 0b96562e86
commit 1ea00ff5e4
3 changed files with 5 additions and 2 deletions

View File

@@ -478,3 +478,4 @@
- `runDirectWorkbenchAction / runDirectDiscoveryAction` 也已支持显式 `projectId / platform`,所以这批旧表单里的“归属项目 / 平台”选择不会在切换到执行器后失效。
- SQLite 连接现在保持 `WAL` 优先,但在临时盘或受限文件系统无法启用 `WAL` 时会自动回退到 `DELETE`,避免测试环境和受限部署因为 `disk I/O error` 直接起不来。
- `generate-copy` 这条执行链现在会直接推荐回到“最近生成”结果区而不是再打开旧文案表单LAN smoke 也同步把 `track-account / import-video-link / import-text / generate-copy / create-assistant` 纳入 action-registry 护栏。
- 全局 `AI 视频 / 实拍剪辑` 主按钮也已经切到 direct-execute会直接承接最近可派生任务不再优先打开旧表单。

View File

@@ -204,13 +204,13 @@ const INTEGRATION_META = {
const PIPELINE_GUARDS = {
aiVideo: {
label: "AI 视频",
openAction: "open-ai-video",
openAction: "direct-create-ai-video",
jobAction: "direct-create-ai-video",
dependencies: ["n8n", "huobao"]
},
realCut: {
label: "实拍剪辑",
openAction: "open-real-cut",
openAction: "direct-create-real-cut",
jobAction: "direct-create-real-cut",
dependencies: ["n8n", "cutvideo"]
}

View File

@@ -399,6 +399,8 @@ test("pipeline follow-up tags route source-job actions through direct execute ha
const pipelineGuards = extractBetween(APP, "const PIPELINE_GUARDS = {", "const ONELINER_INTENT_LABELS = {");
const clickActions = extractBetween(APP, "document.addEventListener(\"click\", async (event) => {", "document.addEventListener(\"submit\", async (event) => {");
assert.match(pipelineGuards, /openAction:\s*"direct-create-ai-video"/);
assert.match(pipelineGuards, /openAction:\s*"direct-create-real-cut"/);
assert.match(pipelineGuards, /jobAction:\s*"direct-create-ai-video"/);
assert.match(pipelineGuards, /jobAction:\s*"direct-create-real-cut"/);
assert.match(clickActions, /name === "direct-create-ai-video"[\s\S]*if \(action\.dataset\.jobId\) \{[\s\S]*closeActionModal\(\);/);