( metadata: WorkspaceMetadataForRuntime )
| 136 | * terminals, tool calls, and agent discovery. |
| 137 | */ |
| 138 | export function createRuntimeContextForWorkspace( |
| 139 | metadata: WorkspaceMetadataForRuntime |
| 140 | ): WorkspaceRuntimeContext { |
| 141 | const runtime = createRuntimeForWorkspace(metadata); |
| 142 | return { |
| 143 | runtime, |
| 144 | workspacePath: resolveWorkspaceExecutionPath(metadata, runtime), |
| 145 | }; |
| 146 | } |
| 147 | |
| 148 | /** |
| 149 | * Create a runtime from workspace metadata, ensuring workspace identity is always passed. |
no test coverage detected