Files
openclaw/extensions/feishu/src/tools-config.ts
2026-05-01 16:20:36 +01:00

23 lines
539 B
TypeScript

import type { FeishuToolsConfig } from "./types.js";
/**
* Default tool configuration.
* - doc, chat, wiki, drive, scopes: enabled by default
* - perm: disabled by default (sensitive operation)
*/
const DEFAULT_TOOLS_CONFIG: Required<FeishuToolsConfig> = {
doc: true,
chat: true,
wiki: true,
drive: true,
perm: false,
scopes: true,
};
/**
* Resolve tools config with defaults.
*/
export function resolveToolsConfig(cfg?: FeishuToolsConfig): Required<FeishuToolsConfig> {
return { ...DEFAULT_TOOLS_CONFIG, ...cfg };
}