MCPcopy
hub / github.com/coder/mux / runFullInit

Function runFullInit

src/node/runtime/runtimeFactory.ts:39–47  ·  view source on GitHub ↗
(
  runtime: Runtime,
  params: WorkspaceInitParams
)

Source from the content-addressed store, hash-verified

37 * runtimes with provisioning steps (Docker, CoderSSH) work correctly.
38 */
39export async function runFullInit(
40 runtime: Runtime,
41 params: WorkspaceInitParams
42): Promise<WorkspaceInitResult> {
43 if (runtime.postCreateSetup) {
44 await runtime.postCreateSetup(params);
45 }
46 return runtime.initWorkspace(params);
47}
48
49/**
50 * Fire-and-forget init with standardized error handling.

Callers 4

mainFunction · 0.90
createMultiProjectMethod · 0.90
runtime.test.tsFile · 0.90
runBackgroundInitFunction · 0.85

Calls 2

postCreateSetupMethod · 0.65
initWorkspaceMethod · 0.65

Tested by

no test coverage detected