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

Function isLocalProjectRuntime

src/common/types/runtime.ts:294–300  ·  view source on GitHub ↗
(
  config: RuntimeConfig | undefined
)

Source from the content-addressed store, hash-verified

292 * Type guard to check if a runtime config is project-dir local (no isolation)
293 */
294export function isLocalProjectRuntime(
295 config: RuntimeConfig | undefined
296): config is Extract<RuntimeConfig, { type: "local"; srcBaseDir?: never }> {
297 if (!config) return false;
298 // "local" without srcBaseDir is project-dir runtime
299 return config.type === "local" && !("srcBaseDir" in config && config.srcBaseDir);
300}
301
302/**
303 * Type guard to check if a runtime config has srcBaseDir (worktree-style runtimes).

Callers 3

getRuntimeInfoFunction · 0.90
resolveWorkspaceRootPathFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected