refactor: workflow-as-agent outputs readable summary instead of raw hash

Extract can now work with the readable content directly, without
needing a special extractPrompt for DAG traversal.

Closes #182
This commit is contained in:
2026-05-11 07:55:49 +00:00
parent 1742ced6df
commit 904ee1eb83
@@ -108,7 +108,7 @@ export function workflowAsAgent(
io, io,
logger, logger,
); );
return result.rootHash; return `Child workflow "${workflowName}" completed (returnCode=${result.returnCode}).\n\nSummary: ${result.summary}\n\nChild thread root hash: ${result.rootHash}`;
} catch (e) { } catch (e) {
const message = e instanceof Error ? e.message : String(e); const message = e instanceof Error ? e.message : String(e);
return `ERROR: ${message}`; return `ERROR: ${message}`;