//#region src/agents/pi-embedded-runner/runtime.ts
function normalizeEmbeddedAgentRuntime(raw) {
	const value = raw?.trim();
	if (!value) return "pi";
	if (value === "pi") return "pi";
	if (value === "auto") return "auto";
	if (value === "codex-app-server") return "codex";
	return value;
}
function resolveEmbeddedAgentRuntime(env = process.env) {
	return normalizeEmbeddedAgentRuntime(env.DAOCORE_AGENT_RUNTIME?.trim());
}
//#endregion
export { resolveEmbeddedAgentRuntime as n, normalizeEmbeddedAgentRuntime as t };
