mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 01:51:24 +00:00
refactor: rename to openclaw
This commit is contained in:
@@ -249,7 +249,7 @@ function wrapSandboxPathGuard(tool: AnyAgentTool, root: string): AnyAgentTool {
|
||||
|
||||
export function createSandboxedReadTool(root: string) {
|
||||
const base = createReadTool(root) as unknown as AnyAgentTool;
|
||||
return wrapSandboxPathGuard(createMoltbotReadTool(base), root);
|
||||
return wrapSandboxPathGuard(createOpenClawReadTool(base), root);
|
||||
}
|
||||
|
||||
export function createSandboxedWriteTool(root: string) {
|
||||
@@ -262,7 +262,7 @@ export function createSandboxedEditTool(root: string) {
|
||||
return wrapSandboxPathGuard(wrapToolParamNormalization(base, CLAUDE_PARAM_GROUPS.edit), root);
|
||||
}
|
||||
|
||||
export function createMoltbotReadTool(base: AnyAgentTool): AnyAgentTool {
|
||||
export function createOpenClawReadTool(base: AnyAgentTool): AnyAgentTool {
|
||||
const patched = patchToolSchemaForClaudeCompatibility(base);
|
||||
return {
|
||||
...patched,
|
||||
|
||||
Reference in New Issue
Block a user