mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 07:52:44 +00:00
feat(onboarding)!: default tools profile to messaging
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
import type { OpenClawConfig } from "../config/config.js";
|
||||
import type { DmScope } from "../config/types.base.js";
|
||||
import type { ToolProfileId } from "../config/types.tools.js";
|
||||
|
||||
export const ONBOARDING_DEFAULT_DM_SCOPE: DmScope = "per-channel-peer";
|
||||
export const ONBOARDING_DEFAULT_TOOLS_PROFILE: ToolProfileId = "messaging";
|
||||
|
||||
export function applyOnboardingLocalWorkspaceConfig(
|
||||
baseConfig: OpenClawConfig,
|
||||
@@ -24,5 +26,9 @@ export function applyOnboardingLocalWorkspaceConfig(
|
||||
...baseConfig.session,
|
||||
dmScope: baseConfig.session?.dmScope ?? ONBOARDING_DEFAULT_DM_SCOPE,
|
||||
},
|
||||
tools: {
|
||||
...baseConfig.tools,
|
||||
profile: baseConfig.tools?.profile ?? ONBOARDING_DEFAULT_TOOLS_PROFILE,
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user