chore: rename plugin ID to 1h-tools
This commit is contained in:
1 parent
2011077fcd
commit
69877803ca
11 files changed
+29
-21
No files matched your search
Vendored
+3
-1
@@ -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;
|
||||
|
||||
Vendored
+4
-4
@@ -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],
|
||||
},
|
||||
|
||||
Vendored
+3
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user