()
| 441 | }); |
| 442 | |
| 443 | const runInvocation = () => |
| 444 | invoker.invokeDirect(tool, args, { |
| 445 | runtime: 'cli', |
| 446 | renderSession: session, |
| 447 | handlerContext, |
| 448 | onProgress: writeJsonlFragment, |
| 449 | onStructuredOutput: (structuredOutput) => { |
| 450 | handlerContext.structuredOutput = structuredOutput; |
| 451 | }, |
| 452 | cliExposedWorkflowIds, |
| 453 | socketPath, |
| 454 | workspaceRoot: opts.workspaceRoot, |
| 455 | logLevel, |
| 456 | }); |
| 457 | |
| 458 | if (outputFormat === 'raw') { |
| 459 | await transcriptEmitterStorage.run((fragment) => session.emit(fragment), runInvocation); |
no test coverage detected