mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-18 00:02:48 +00:00
* Add lefthook formatter checks * Fix SDK mode hydration * Stabilize SDK mode integration test
13 lines
365 B
TypeScript
13 lines
365 B
TypeScript
import type { AppConfig } from "./config.js";
|
|
|
|
export function resolveWorkspaceId(flagWorkspace: string | undefined, config: AppConfig): string {
|
|
if (flagWorkspace && flagWorkspace.trim().length > 0) {
|
|
return flagWorkspace.trim();
|
|
}
|
|
|
|
if (config.workspace.default.trim().length > 0) {
|
|
return config.workspace.default.trim();
|
|
}
|
|
|
|
return "default";
|
|
}
|