refactor: 将应用数据与工作流统一归入应用平台子模块

建立 applications 的应用模型和查询出口,保留基础及详情投影差异。
下沉 DataLink,将工作流模型、API、编排及执行上下文归回 workflow。
同步 CLI、SDK、生成脚本、测试和活跃文档引用,公开命令与 SDK 名称保持兼容。

验证:943 项测试、类型和版本检查通过;三份生成规范字节一致,README 审计通过。
This commit is contained in:
gitea committed 2026-10-30 16:56:09 +08:00
1 parent edf300b808
commit 4e03c9bcd7
107 files changed
+423 -496

No files matched your search

+3 -3
View File
@@ -1,4 +1,4 @@
import { flattenExecutionTree, listAllWorkflows } from "../../../domains/platform/services.js";
import { flattenExecutionTree, listAllWorkflows } from "../../../domains/platform/workflow/services.js";
import { stringOption } from "../../parser.js";
import { createClientsForCorp, createPiperClientForCorp } from "../../helpers.js";
import type { CliParsedArgs, CliRuntime } from "../../types.js";
@@ -31,7 +31,7 @@ export async function createWorkflowDetailClient(
if (!platformId) {
try {
const corpId = runtime.selectedCorp!.corpId || runtime.selectedCorp!.id;
const { listPlatforms } = await import("../../../domains/platform/services.js");
const { listBasicPlatforms: listPlatforms } = await import("../../../domains/platform/applications/services.js");
const platforms = await listPlatforms(clients.ekbClient, corpId);
const firstActive = platforms.find((p) => p.active) ?? platforms[0];
platformId = firstActive?.id;
@@ -58,7 +58,7 @@ export async function createJobPiperClient(
const clients = await createClientsForCorp(corp);
try {
const corpId = corp.corpId || corp.id;
const { listPlatforms } = await import("../../../domains/platform/services.js");
const { listBasicPlatforms: listPlatforms } = await import("../../../domains/platform/applications/services.js");
const platforms = await listPlatforms(clients.ekbClient, corpId);
const firstActive = platforms.find((p) => p.active) ?? platforms[0];
if (firstActive?.id) {