mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 14:20:42 +00:00
12 lines
526 B
TypeScript
12 lines
526 B
TypeScript
import { resolveDefaultAgentDir } from "../agents/agent-scope-config.js";
|
|
import { resolveUserPath } from "../utils.js";
|
|
|
|
/**
|
|
* @deprecated Prefer resolveAgentDir(cfg, agentId) or resolveDefaultAgentDir(cfg).
|
|
* Kept for third-party plugin SDK compatibility.
|
|
*/
|
|
export function resolveOpenClawAgentDir(env: NodeJS.ProcessEnv = process.env): string {
|
|
const override = env.OPENCLAW_AGENT_DIR?.trim() || env.PI_CODING_AGENT_DIR?.trim();
|
|
return override ? resolveUserPath(override, env) : resolveDefaultAgentDir({}, env);
|
|
}
|