fix: assemble hwpod alias for agentrun

This commit is contained in:
Codex
2026-06-02 08:57:03 +08:00
parent e703ded44a
commit adb5930d59
2 changed files with 10 additions and 1 deletions
@@ -33,6 +33,9 @@ const AGENTRUN_BACKENDS = Object.freeze(["codex", "deepseek", "minimax-m3"]);
const THREAD_CONTINUITY_POLICY = "hwlab-agentrun-v01-reuse-runner-thread";
const SESSION_POLICY_RUN_LOCAL = "hwlab-agentrun-v01-session-runner-reuse";
const TERMINAL_RUN_STATUSES = new Set(["completed", "failed", "blocked", "cancelled", "canceled"]);
const HWLAB_RESOURCE_TOOL_ALIASES = Object.freeze([
Object.freeze({ name: "hwpod", path: "tools/device-pod-cli.mjs", kind: "node-script" })
]);
export function codeAgentAgentRunAdapterEnabled(env = process.env) {
const value = String(env.HWLAB_CODE_AGENT_ADAPTER ?? env.HWLAB_CODE_AGENT_PROVIDER ?? "").trim().toLowerCase();
@@ -379,7 +382,8 @@ function buildAgentRunCreateRunInput({ params, env, traceId, backendProfile, ses
repoUrl: resolveAgentRunRepoUrl(env),
commitId,
submodules: false,
lfs: false
lfs: false,
toolAliases: HWLAB_RESOURCE_TOOL_ALIASES
}
: null;
return {