mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-25 03:11:15 +00:00
* docs(secrets): remove retired web credential paths * refactor(web): remove retired provider compatibility paths * refactor(providers): delete retired compatibility routes * refactor(secrets): remove retired credential aliases * refactor(plugin-sdk): delete retired compatibility surfaces * docs(plugin-sdk): remove retired migration guidance * chore(plugin-sdk): refresh rebased surface budgets * chore(plugin-sdk): refresh API removal baseline * refactor(compat): migrate retired internal callers * chore(plugin-sdk): refresh current-main baselines * test(config): migrate plugin-owned secret assertions * test(gateway): narrow plugin secret refs * fix(plugin-sdk): preserve private boundary type identity * chore(compat): remove stale sweep references * chore(lint): lower max-lines budget * refactor(secrets): remove unused web helper * build(plugin-sdk): drop removed compat entries * chore(plugin-sdk): refresh rebased API baseline * chore(plugin-sdk): use Linux API baseline hash * fix(plugin-sdk): preserve private bundled build entries * fix(plugin-sdk): package private runtime facades * fix(plugins): preserve external credential contracts
22 lines
647 B
TypeScript
22 lines
647 B
TypeScript
// Xai API module exposes the plugin public contract.
|
|
import { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry";
|
|
import { isRecord } from "./src/tool-config-shared.js";
|
|
|
|
export default definePluginEntry({
|
|
id: "xai",
|
|
name: "xAI Setup",
|
|
description: "Lightweight xAI setup hooks",
|
|
register(api) {
|
|
api.registerAutoEnableProbe(({ config }) => {
|
|
const pluginConfig = config.plugins?.entries?.xai?.config;
|
|
if (
|
|
isRecord(pluginConfig) &&
|
|
(isRecord(pluginConfig.xSearch) || isRecord(pluginConfig.codeExecution))
|
|
) {
|
|
return "xai tool configured";
|
|
}
|
|
return null;
|
|
});
|
|
},
|
|
});
|