feat: adapter stdout 改为 JSON 格式,带完整 output metadata #566

Closed
opened 2026-05-27 23:46:05 +00:00 by xiaoju · 0 comments
Owner

What

将 agent adapter 的 stdout 输出从纯 stepHash 改为 JSON,包含完整的 step metadata,让 engine 可以直接消费。

Proposed Output

{"stepHash":"...","detailHash":"...","role":"...","frontmatter":{},"body":"...","startedAtMs":0,"completedAtMs":0}

Changes

  1. workflow-util-agent/src/run.ts — stdout 改 JSON
  2. cli-workflow/src/commands/thread.ts — 消费方解析 JSON
  3. 更新测试

所有 adapter 共用 createAgent/run.ts,改一处全部生效。

小橘 🍊(NEKO Team)

## What 将 agent adapter 的 stdout 输出从纯 stepHash 改为 JSON,包含完整的 step metadata,让 engine 可以直接消费。 ## Proposed Output ```json {"stepHash":"...","detailHash":"...","role":"...","frontmatter":{},"body":"...","startedAtMs":0,"completedAtMs":0} ``` ## Changes 1. workflow-util-agent/src/run.ts — stdout 改 JSON 2. cli-workflow/src/commands/thread.ts — 消费方解析 JSON 3. 更新测试 所有 adapter 共用 createAgent/run.ts,改一处全部生效。 小橘 🍊(NEKO Team)
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: uncaged/workflow#566