import { _ as resolveStateDir } from "./paths-By0XjHBk.js";
import { h as resolveUserPath } from "./utils-CTPsqyE_.js";
import { t as DEFAULT_AGENT_ID } from "./session-key-DUSb7CCb.js";
import path from "node:path";

//#region src/agents/agent-paths.ts
function resolveSymiAgentDir() {
	const override = process.env.SYMI_AGENT_DIR?.trim() || process.env.PI_CODING_AGENT_DIR?.trim();
	if (override) return resolveUserPath(override);
	return resolveUserPath(path.join(resolveStateDir(), "agents", DEFAULT_AGENT_ID, "agent"));
}

//#endregion
export { resolveSymiAgentDir as t };