fix(workflow): 复刻前端保存的 $platformId 与 chooses 刷新
- 全量保存时自动补充 inputs: [{$platformId}],避免平台把内置节点 desc 重置为「」
- 保存后调用 pipelines/{id}/chooses,与前端“保存更新”保持一致
- createWorkflowDetailClient 返回当前 platformId,node add/edit/map/rm 保存路径传入
- 更新保存/节点编排测试 mock,重新生成 dist/mcp/server.js
This commit is contained in:
1 parent
efb5b0e1bd
commit
1d24c022ab
8 files changed
+401
-361
No files matched your search
@@ -12,6 +12,7 @@ export async function createWorkflowDetailClient(
|
||||
): Promise<{
|
||||
client: Awaited<ReturnType<typeof createPiperClientForCorp>>;
|
||||
clients: Awaited<ReturnType<typeof createClientsForCorp>>;
|
||||
platformId?: string;
|
||||
}> {
|
||||
const clients = await createClientsForCorp(runtime.selectedCorp!);
|
||||
const explicit = stringOption(parsed.options, PLATFORM_ID_OPTION_KEYS);
|
||||
@@ -30,6 +31,7 @@ export async function createWorkflowDetailClient(
|
||||
return {
|
||||
client: platformId ? await createPiperClientForCorp(runtime.selectedCorp!, platformId) : clients.easoClient,
|
||||
clients,
|
||||
platformId,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user