chore: rename plugin ID to 1h-tools

This commit is contained in:
openclaw committed 2026-10-19 03:27:43 +00:00
1 parent 2011077fcd
commit 69877803ca
11 files changed
+29 -21

No files matched your search

+3 -1
View File
@@ -35,7 +35,9 @@ export function resolvePluginApiKey(rawKey) {
return undefined;
}
export function resolveImageConfig(cfg, apiPluginConfig) {
const toolsConfig = (apiPluginConfig ?? cfg?.plugins?.entries?.["tools"]?.config);
const toolsConfig = (apiPluginConfig ??
cfg?.plugins?.entries?.["1h-tools"]?.config ??
cfg?.plugins?.entries?.["tools"]?.config);
const legacyConfig = (cfg?.plugins?.entries?.["openai-image"]?.config ??
cfg?.plugins?.entries?.["bifrost-image"]?.config);
const directImageConfig = toolsConfig?.image;
+4 -4
View File
@@ -5,8 +5,8 @@ import { echoTool } from "./tools/echo.js";
import { buildOpenAIVideoGenerationProvider } from "./video/index.js";
import { buildOpenAIImageGenerationProvider } from "./image/index.js";
const entry = definePluginEntry({
id: "tools",
name: "Tools",
id: "1h-tools",
name: "1-h Tools",
description: "Custom Tools and Media Providers for OpenClaw.",
register(api) {
// 1. Register tools
@@ -34,8 +34,8 @@ const entry = definePluginEntry({
});
Object.defineProperty(entry, toolPluginMetadataSymbol, {
value: {
id: "tools",
name: "Tools",
id: "1h-tools",
name: "1-h Tools",
description: "Custom Tools and Media Providers for OpenClaw.",
tools: [echoTool],
},
+3 -1
View File
@@ -18,7 +18,9 @@ export function resolvePluginApiKey(rawKey) {
return undefined;
}
export function resolveVideoConfig(cfg, apiPluginConfig) {
const toolsConfig = (apiPluginConfig ?? cfg?.plugins?.entries?.["tools"]?.config);
const toolsConfig = (apiPluginConfig ??
cfg?.plugins?.entries?.["1h-tools"]?.config ??
cfg?.plugins?.entries?.["tools"]?.config);
const legacyConfig = cfg?.plugins?.entries?.["openai-video"]?.config;
const directVideoConfig = toolsConfig?.video;
const flatToolsConfig = toolsConfig?.baseUrl