refactor(core/http): 7大通信底座客户端语义化全量重构与合思开放文档客户端纳管

- 彻底移除旧内部狭隘命名与垫片包袱,一步到位全仓整体重命名:
  * session-client.ts ➔ hose-web-session-client.ts (合思 Web 主站会话客户端)
  * script-engine-client.ts ➔ piper-workflow-client.ts (Piper 工作流引擎客户端)
  * unity-client.ts ➔ unity-easo-client.ts (Unity / EASO 运营中台与动态集群客户端)
  * sso-client.ts ➔ sso-auth-client.ts (SSO 与扫码鉴权客户端)
- 新增 hose-docs-client.ts 纳为第 7 大通信底座客户端,收口 docs.ekuaibao.com 文档站点通信
- 端正 Piper 工作流引擎定位,完整覆盖工作流创建、保存、发布、108 类节点编排与 Job 流转
- 彻底整体替换全仓 import 引用与测试套件,新增 clients-semantics.test.ts 自动化校验
- 全量自动化测试 150 files 1155 tests 全部通过,类型检查零错误
This commit is contained in:
gitea committed 2026-11-16 17:15:29 +08:00
1 parent 62b47f5ad7
commit 42bf0bfb0b
44 files changed
+400 -171

No files matched your search

+2 -2
View File
@@ -1,6 +1,6 @@
import { describe, it, expect } from "bun:test";
import { parseHeadersOrCurl } from "../../core/auth/login.js";
import { resolveCorpCluster } from "../../core/http/unity-client.js";
import { resolveCorpCluster } from "../../core/http/unity-easo-client.js";
import { handleCorpsCommand } from "./corps/index.js";
import type { CliRuntime } from "../types.js";
import type { CorpConfig } from "../../core/config/types.js";
@@ -35,7 +35,7 @@ describe("core/auth/login > parseHeadersOrCurl & URL link parsing", () => {
});
});
describe("core/http/unity-client > resolveCorpCluster", () => {
describe("core/http/unity-easo-client > resolveCorpCluster", () => {
it("prioritizes explicit cluster config", () => {
expect(resolveCorpCluster({ cluster: "wx2", baseUrl: "https://app.ekuaibao.com" })).toBe("wx2");
});