新增: AI Chat多项增强(审批去重/编辑重发/导出/实体引用/会话置顶搜索)+任务推进链df-nodes落地
This commit is contained in:
@@ -12,8 +12,18 @@ const t = ((i18n as any).global.t as (k: string) => string).bind((i18n as any).g
|
||||
* src/api/workflow.ts,本子 store 不再直接 invoke IPC。
|
||||
*/
|
||||
export function createWorkflowStore() {
|
||||
async function runWorkflow(name: string, dag: unknown, config?: Record<string, unknown>) {
|
||||
return await workflowApi.run(name, dag, config)
|
||||
/**
|
||||
* 触发工作流执行。
|
||||
* F-260616-06 阶段2(②-2): taskId/targetStatus 可选,同时传时工作流完成/失败联动推进任务。
|
||||
*/
|
||||
async function runWorkflow(
|
||||
name: string,
|
||||
dag: unknown,
|
||||
config?: Record<string, unknown>,
|
||||
taskId?: string,
|
||||
targetStatus?: string,
|
||||
) {
|
||||
return await workflowApi.run(name, dag, config, taskId, targetStatus)
|
||||
}
|
||||
|
||||
async function loadWorkflowExecutions() {
|
||||
|
||||
Reference in New Issue
Block a user