mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-19 03:03:18 +00:00
Integrate OpenHandoff factory workspace (#212)
This commit is contained in:
parent
3d9476ed0b
commit
bf282199b5
251 changed files with 42824 additions and 692 deletions
16
factory/packages/shared/src/workspace.ts
Normal file
16
factory/packages/shared/src/workspace.ts
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
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