fix: gate run event traces behind --verbose

This commit is contained in:
YeonGyu-Kim
2026-02-17 14:34:22 +09:00
parent 94dc6f14f5
commit 873c29f3d9
5 changed files with 64 additions and 4 deletions
+7 -1
View File
@@ -84,7 +84,13 @@ export async function run(options: RunOptions): Promise<number> {
console.log(pc.dim(`Session: ${sessionID}`))
const ctx: RunContext = { client, sessionID, directory, abortController }
const ctx: RunContext = {
client,
sessionID,
directory,
abortController,
verbose: options.verbose ?? false,
}
const events = await client.event.subscribe({ query: { directory } })
const eventState = createEventState()
const eventProcessor = processEvents(ctx, events.stream, eventState).catch(