//#region src/agents/agent-runtime-id.ts
const NODMIX_AGENT_RUNTIME_ID = "nodmix";
const AUTO_AGENT_RUNTIME_ID = "auto";
function normalizeEmbeddedAgentRuntime(raw) {
	const value = raw?.trim();
	if (!value) return NODMIX_AGENT_RUNTIME_ID;
	if (value === "nodmix" || value === "pi") return NODMIX_AGENT_RUNTIME_ID;
	if (value === "auto") return AUTO_AGENT_RUNTIME_ID;
	if (value === "codex-app-server") return "codex";
	return value;
}
function normalizeOptionalAgentRuntimeId(raw) {
	if (typeof raw !== "string") return;
	const value = raw.trim().toLowerCase();
	return value ? normalizeEmbeddedAgentRuntime(value) : void 0;
}
/**
* @deprecated Whole-agent runtime environment selection is retired. Use
* provider/model runtime policy or a registered agent harness instead.
*/
function resolveEmbeddedAgentRuntime(_env = process.env) {
	return NODMIX_AGENT_RUNTIME_ID;
}
function isDefaultAgentRuntimeId(runtime) {
	return runtime === void 0 || runtime === "auto" || runtime === "default";
}
//#endregion
export { normalizeOptionalAgentRuntimeId as a, normalizeEmbeddedAgentRuntime as i, NODMIX_AGENT_RUNTIME_ID as n, resolveEmbeddedAgentRuntime as o, isDefaultAgentRuntimeId as r, AUTO_AGENT_RUNTIME_ID as t };
