mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-01 20:50:20 +00:00
fix: default local onboarding tools profile to coding
This commit is contained in:
@@ -7,6 +7,10 @@ import {
|
||||
} from "./onboard-config.js";
|
||||
|
||||
describe("applyOnboardingLocalWorkspaceConfig", () => {
|
||||
it("defaults local onboarding tool profile to coding", () => {
|
||||
expect(ONBOARDING_DEFAULT_TOOLS_PROFILE).toBe("coding");
|
||||
});
|
||||
|
||||
it("sets secure dmScope default when unset", () => {
|
||||
const baseConfig: OpenClawConfig = {};
|
||||
const result = applyOnboardingLocalWorkspaceConfig(baseConfig, "/tmp/workspace");
|
||||
|
||||
@@ -3,7 +3,7 @@ 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 const ONBOARDING_DEFAULT_TOOLS_PROFILE: ToolProfileId = "coding";
|
||||
|
||||
export function applyOnboardingLocalWorkspaceConfig(
|
||||
baseConfig: OpenClawConfig,
|
||||
|
||||
@@ -145,7 +145,7 @@ describe("onboard (non-interactive): gateway and remote auth", () => {
|
||||
}>(configPath);
|
||||
|
||||
expect(cfg?.agents?.defaults?.workspace).toBe(workspace);
|
||||
expect(cfg?.tools?.profile).toBe("messaging");
|
||||
expect(cfg?.tools?.profile).toBe("coding");
|
||||
expect(cfg?.gateway?.auth?.mode).toBe("token");
|
||||
expect(cfg?.gateway?.auth?.token).toBe(token);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user