mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 00:21:23 +00:00
refactor(onboard): share local workspace+gateway config
This commit is contained in:
21
src/commands/onboard-config.ts
Normal file
21
src/commands/onboard-config.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
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",
|
||||
},
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user