mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-07 10:41:25 +00:00
22 lines
445 B
TypeScript
22 lines
445 B
TypeScript
import type { OpenClawConfig } from "../config/config.js";
|
|
|
|
export function applyOnboardingLocalWorkspaceConfig(
|
|
baseConfig: OpenClawConfig,
|
|
workspaceDir: string,
|
|
): OpenClawConfig {
|
|
return {
|
|
...baseConfig,
|
|
agents: {
|
|
...baseConfig.agents,
|
|
defaults: {
|
|
...baseConfig.agents?.defaults,
|
|
workspace: workspaceDir,
|
|
},
|
|
},
|
|
gateway: {
|
|
...baseConfig.gateway,
|
|
mode: "local",
|
|
},
|
|
};
|
|
}
|