MCPcopy Index your code
hub / github.com/coder/mux / createRuntimeContextForWorkspace

Function createRuntimeContextForWorkspace

src/node/runtime/runtimeHelpers.ts:138–146  ·  view source on GitHub ↗
(
  metadata: WorkspaceMetadataForRuntime
)

Source from the content-addressed store, hash-verified

136 * terminals, tool calls, and agent discovery.
137 */
138export 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.

Calls 2

Tested by

no test coverage detected