mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-20 10:01:28 +00:00
parent
400f9a214e
commit
99abb9d42e
171 changed files with 7260 additions and 7342 deletions
|
|
@ -1,13 +0,0 @@
|
|||
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";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue