feat: 完善工作流工具链与大结果保护

- 工作流节点描述增加服务端托管黑名单,仅代码节点保留自定义 desc
- 工作流保存新增 --in-place,并改进版本冲突提示
- platform records 新增 --page 分页,--all 强制走 ndjson 文件流
- platform schema 展示 ownerId/submitterId 等系统字段
- 更新 Agent Skill 的代码节点 agent use 标记规范
- 补充对应测试与文档
This commit is contained in:
gitea committed 2026-10-28 13:01:11 +08:00
1 parent 37643da254
commit 7423e166a1
10 files changed
+123 -20

No files matched your search

+12
View File
@@ -514,6 +514,18 @@ describe("CLI - platform 命令与 record 动作", () => {
expect(row1.fields["自定义字段"]).toBe("测试值");
});
it("platform records --all 拒绝直接全量输出,要求分页或流式文件", async () => {
spies.push(spyOn(helpers, "createClientsForCorp").mockResolvedValue({ ekbClient: {} } as any));
spies.push(spyOn(services, "resolvePlatform").mockResolvedValue(mockPlatform as any));
spies.push(spyOn(services, "resolveEntity").mockResolvedValue(mockEntity as any));
await expect(
handlePlatformCommand(
{ area: "platform", action: "records", args: ["platform-1", "entity-1"], options: { all: true }, raw: ["platform", "records", "platform-1", "entity-1", "--all"] },
dummyRuntime
)
).rejects.toThrow("--all 不再直接返回全量");
});
it("rejects malformed batch predicates before fetching all records or calling the writer", async () => {
spies.push(spyOn(helpers, "createClientsForCorp").mockResolvedValue({ ekbClient: {} } as any));
spies.push(spyOn(services, "resolvePlatform").mockResolvedValue(mockPlatform as any));