( config: RuntimeConfig | undefined )
| 292 | * Type guard to check if a runtime config is project-dir local (no isolation) |
| 293 | */ |
| 294 | export 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). |
no outgoing calls
no test coverage detected