mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-03 03:03:24 -04:00
refactor: rename to openclaw
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import type { AnyAgentTool } from "../agents/tools/common.js";
|
||||
import { normalizeToolName } from "../agents/tool-policy.js";
|
||||
import { createSubsystemLogger } from "../logging/subsystem.js";
|
||||
import { loadMoltbotPlugins } from "./loader.js";
|
||||
import type { MoltbotPluginToolContext } from "./types.js";
|
||||
import { loadOpenClawPlugins } from "./loader.js";
|
||||
import type { OpenClawPluginToolContext } from "./types.js";
|
||||
|
||||
const log = createSubsystemLogger("plugins");
|
||||
|
||||
@@ -35,11 +35,11 @@ function isOptionalToolAllowed(params: {
|
||||
}
|
||||
|
||||
export function resolvePluginTools(params: {
|
||||
context: MoltbotPluginToolContext;
|
||||
context: OpenClawPluginToolContext;
|
||||
existingToolNames?: Set<string>;
|
||||
toolAllowlist?: string[];
|
||||
}): AnyAgentTool[] {
|
||||
const registry = loadMoltbotPlugins({
|
||||
const registry = loadOpenClawPlugins({
|
||||
config: params.context.config,
|
||||
workspaceDir: params.context.workspaceDir,
|
||||
logger: {
|
||||
|
||||
Reference in New Issue
Block a user