* feat(feishu): add chat members/info tool support * Feishu: harden chat tool schema and coverage --------- Co-authored-by: Nereo <nereo@Nereos-Mac-mini.local> Co-authored-by: Tak Hoffman <781889+Takhoffman@users.noreply.github.com>
23 lines
546 B
TypeScript
23 lines
546 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)
|
|
*/
|
|
export 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 };
|
|
}
|