feat(workflow-utils): dryRun support for spawnSafe, cursorAgent, llmExtract #104
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
概述
workflow-utils 的三个副作用函数需要支持 dryRun 模式。dryRun 时:
需要改的函数
1. spawnSafe
SpawnSafeOptions 加 dryRun: boolean(默认 false)。dryRun 时打印参数,返回 { ok: true, value: { code: 0, stdout: '[dryRun] skipped', stderr: '' } }
2. cursorAgent
CursorAgentOptions 加 dryRun: boolean(默认 false)。dryRun 时打印参数,返回 stub(在 cursorAgent 层短路,不走 spawnSafe)
3. llmExtract
LlmExtractOptions 加 dryRun: boolean(默认 false)。dryRun 时打印参数,返回 { ok: true, value: {} as T }
约束