import { m as resolveUserPath } from "./utils-CE5zxr9Z.js";
import { _ as resolveStateDir } from "./paths-CAiS8AEq.js";
import { t as DEFAULT_AGENT_ID } from "./session-key-NGoeHrFI.js";
import path from "node:path";
//#region src/agents/agent-paths.ts
function resolveKaijiBotAgentDir(env = process.env) {
	const override = env.KAIJIBOT_AGENT_DIR?.trim() || env.PI_CODING_AGENT_DIR?.trim();
	if (override) return resolveUserPath(override, env);
	return resolveUserPath(path.join(resolveStateDir(env), "agents", DEFAULT_AGENT_ID, "agent"), env);
}
//#endregion
export { resolveKaijiBotAgentDir as t };
