diff --git a/docs/.i18n/glossary.zh-CN.json b/docs/.i18n/glossary.zh-CN.json index 31080857154..28f2ff67e49 100644 --- a/docs/.i18n/glossary.zh-CN.json +++ b/docs/.i18n/glossary.zh-CN.json @@ -131,6 +131,10 @@ "source": "Agent Runtimes", "target": "Agent Runtimes" }, + { + "source": "Code mode", + "target": "代码模式" + }, { "source": "Codex harness", "target": "Codex harness" @@ -955,6 +959,10 @@ "source": "Tool Search", "target": "工具搜索" }, + { + "source": "Code execution", + "target": "代码执行" + }, { "source": "Tools and plugins", "target": "工具和插件" diff --git a/src/agents/code-mode.ts b/src/agents/code-mode.ts index e4a21aa96f3..610e6f2530d 100644 --- a/src/agents/code-mode.ts +++ b/src/agents/code-mode.ts @@ -2,8 +2,8 @@ import { randomUUID } from "node:crypto"; import path from "node:path"; import { fileURLToPath, pathToFileURL } from "node:url"; import { Worker } from "node:worker_threads"; -import type { AgentToolUpdateCallback } from "@mariozechner/pi-agent-core"; -import type { ToolDefinition } from "@mariozechner/pi-coding-agent"; +import type { AgentToolUpdateCallback } from "@earendil-works/pi-agent-core"; +import type { ToolDefinition } from "@earendil-works/pi-coding-agent"; import { Type } from "typebox"; import type { OpenClawConfig } from "../config/types.openclaw.js"; import type { HookContext } from "./pi-tools.before-tool-call.js"; @@ -17,7 +17,6 @@ import { TOOL_SEARCH_RAW_TOOL_NAME, ToolSearchRuntime, type ToolSearchCatalogRef, - type ToolSearchCatalogToolExecutor, type ToolSearchConfig, type ToolSearchToolContext, } from "./tool-search.js"; @@ -572,7 +571,6 @@ async function runExec(params: { throw new ToolInputError("code mode is disabled."); } const runtime = new ToolSearchRuntime(params.ctx, toToolSearchConfig(config)); - const pendingRequests: PendingBridgeRequest[] = []; let source: string; try { source = await prepareSource({ code: params.code, language: params.language, config });