From 650313b1c2ac609f19a343f91fe159f1ba1659bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E6=A9=98?= Date: Sun, 24 May 2026 11:12:22 +0000 Subject: [PATCH] feat(step): expand detail CAS refs by default in step list Previously step list showed raw CAS refs for detail fields. Now detail is recursively expanded (like output already was), since every turn is individually hashed and walkable. Refs #463 --- packages/cli-workflow/src/commands/step.ts | 2 +- packages/workflow-protocol/src/types.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/cli-workflow/src/commands/step.ts b/packages/cli-workflow/src/commands/step.ts index 03ee05b..45ee014 100644 --- a/packages/cli-workflow/src/commands/step.ts +++ b/packages/cli-workflow/src/commands/step.ts @@ -250,7 +250,7 @@ export async function cmdStepList( hash: item.hash, role: item.payload.role, output: expandOutput(uwf, item.payload.output), - detail: item.payload.detail, + detail: item.payload.detail ? expandDeep(uwf.store, item.payload.detail) : null, agent: item.payload.agent, timestamp: item.timestamp, }); diff --git a/packages/workflow-protocol/src/types.ts b/packages/workflow-protocol/src/types.ts index ddd7f32..38a03d7 100644 --- a/packages/workflow-protocol/src/types.ts +++ b/packages/workflow-protocol/src/types.ts @@ -92,7 +92,7 @@ export type StepEntry = { hash: CasRef; role: string; output: unknown; - detail: CasRef; + detail: unknown; agent: string; timestamp: number; };