diff options
| author | Adam Malczewski <[email protected]> | 2026-06-05 21:19:45 +0900 |
|---|---|---|
| committer | Adam Malczewski <[email protected]> | 2026-06-05 21:19:45 +0900 |
| commit | 4283d1f8a0bc3953e65962a2364c903d0015f047 (patch) | |
| tree | 4de5d2d2c1114301f03236b6dfc98a638a7c61c0 /packages/kernel/src/runtime/run-turn.ts | |
| parent | 368be032ef57638b558db659d70bfac00cb95cdd (diff) | |
| download | dispatch-4283d1f8a0bc3953e65962a2364c903d0015f047.tar.gz dispatch-4283d1f8a0bc3953e65962a2364c903d0015f047.zip | |
feat(kernel): listModels/ModelInfo + per-turn cwd contracts; add transport-contract wire package
Diffstat (limited to 'packages/kernel/src/runtime/run-turn.ts')
| -rw-r--r-- | packages/kernel/src/runtime/run-turn.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/kernel/src/runtime/run-turn.ts b/packages/kernel/src/runtime/run-turn.ts index 01b280b..6b07e24 100644 --- a/packages/kernel/src/runtime/run-turn.ts +++ b/packages/kernel/src/runtime/run-turn.ts @@ -80,6 +80,7 @@ interface StepContext { readonly logger: Logger; readonly turnSpan: Span | undefined; readonly toolSpans: Map<string, Span>; + readonly cwd: string | undefined; } interface StepResult { @@ -202,6 +203,7 @@ async function executeStep(ctx: StepContext): Promise<StepResult> { ctx.conversationId, ctx.turnId, ctx.toolSpans, + ctx.cwd, ); try { @@ -364,6 +366,7 @@ export async function runTurn(input: RunTurnInput): Promise<RunTurnResult> { logger: turnSpan?.log ?? logger ?? createNoopLogger(), turnSpan, toolSpans, + cwd: input.cwd, }); totalUsage = addUsage(totalUsage, stepResult.usage); |
