import { n as loadEnvironmentFiles } from "./env.js";
import { t as schemaValidationDefaults } from "./defaults.js";
import { z } from "@hono/zod-openapi";

//#region src/constants/schema-validation/index.ts
loadEnvironmentFiles();
const constantsSchema = z.object(Object.fromEntries(Object.keys(schemaValidationDefaults).map((key) => [`AGENTS_${key}`, z.coerce.number().optional()])));
const parseConstants = () => {
	const envOverrides = constantsSchema.parse(process.env);
	return Object.fromEntries(Object.entries(schemaValidationDefaults).map(([key, defaultValue]) => [key, envOverrides[`AGENTS_${key}`] ?? defaultValue]));
};
const constants = parseConstants();
const { AGENT_EXECUTION_TRANSFER_COUNT_MIN, AGENT_EXECUTION_TRANSFER_COUNT_MAX, AGENT_EXECUTION_TRANSFER_COUNT_DEFAULT, SUB_AGENT_TURN_GENERATION_STEPS_MIN, SUB_AGENT_TURN_GENERATION_STEPS_MAX, SUB_AGENT_TURN_GENERATION_STEPS_DEFAULT, STATUS_UPDATE_MAX_NUM_EVENTS, STATUS_UPDATE_MAX_INTERVAL_SECONDS, VALIDATION_SUB_AGENT_PROMPT_MAX_CHARS, VALIDATION_AGENT_PROMPT_MAX_CHARS, CONTEXT_FETCHER_HTTP_TIMEOUT_MS_DEFAULT } = constants;

//#endregion
export { STATUS_UPDATE_MAX_INTERVAL_SECONDS as a, SUB_AGENT_TURN_GENERATION_STEPS_MAX as c, VALIDATION_SUB_AGENT_PROMPT_MAX_CHARS as d, CONTEXT_FETCHER_HTTP_TIMEOUT_MS_DEFAULT as i, SUB_AGENT_TURN_GENERATION_STEPS_MIN as l, AGENT_EXECUTION_TRANSFER_COUNT_MAX as n, STATUS_UPDATE_MAX_NUM_EVENTS as o, AGENT_EXECUTION_TRANSFER_COUNT_MIN as r, SUB_AGENT_TURN_GENERATION_STEPS_DEFAULT as s, AGENT_EXECUTION_TRANSFER_COUNT_DEFAULT as t, VALIDATION_AGENT_PROMPT_MAX_CHARS as u };
//# sourceMappingURL=schema-validation.js.map