MCPcopy Create free account
hub / github.com/coder/mux / forkWorkspace

Method forkWorkspace

src/node/runtime/Runtime.ts:604–604  ·  view source on GitHub ↗

* Fork an existing workspace to create a new one. * Creates a new workspace branching from the source workspace's current branch. * Capability and error behavior are runtime-defined; shared orchestration * (see forkOrchestrator.ts) handles policy differences between user and task forks.

(params: WorkspaceForkParams)

Source from the content-addressed store, hash-verified

602 * @returns Result with new workspace path and source branch, or error
603 */
604 forkWorkspace(params: WorkspaceForkParams): Promise<WorkspaceForkResult>;
605
606 /**
607 * Get the runtime's temp directory (absolute path, resolved).

Callers 10

orchestrateForkFunction · 0.65
forkWorkspaceMethod · 0.65
forkWorkspaceMethod · 0.65
forkWorkspaceMethod · 0.65
forkWorkspaceMethod · 0.65
runtime.test.tsFile · 0.65

Implementers 1

MultiProjectRuntimesrc/node/runtime/multiProjectRuntime.t

Calls

no outgoing calls

Tested by

no test coverage detected