#!/usr/bin/env node

import "./paths--89D6C7M.js";
import { t as DEV_LOCAL_GATEWAY_BASE_URL } from "./base-url-CRdFdMjp.js";

//#region src/ats-dev.ts
const LOCAL_GATEWAY_URL = DEV_LOCAL_GATEWAY_BASE_URL;
const LOCAL_AUTH_URL = "http://localhost:8788";
const LOCAL_AUTH_CLIENT_ID = "ats-cli-dev";
const LOCAL_DEV_ENV_PRESET = "dev-local";
const LOCAL_DEV_ENTRY_COMMAND = "ats-dev";
if (!String(process.env.ATS_GATEWAY_URL ?? "").trim()) process.env.ATS_GATEWAY_URL = LOCAL_GATEWAY_URL;
if (!String(process.env.ATS_AUTH_URL ?? "").trim()) process.env.ATS_AUTH_URL = LOCAL_AUTH_URL;
if (!String(process.env.ATS_AUTH_CLIENT_ID ?? "").trim()) process.env.ATS_AUTH_CLIENT_ID = LOCAL_AUTH_CLIENT_ID;
if (!String(process.env.ATS_ENV_PRESET ?? "").trim()) process.env.ATS_ENV_PRESET = LOCAL_DEV_ENV_PRESET;
if (!String(process.env.ATS_USER_FACING_CLI_COMMAND ?? "").trim()) process.env.ATS_USER_FACING_CLI_COMMAND = LOCAL_DEV_ENTRY_COMMAND;
if (!String(process.env.ATS_DEV_MODE ?? "").trim()) process.env.ATS_DEV_MODE = "1";
import("./ats.js").catch((error) => {
	const message = error instanceof Error ? error.stack ?? error.message : String(error);
	process.stderr.write(`${message}\n`);
	process.exitCode = 1;
});

//#endregion
export {  };
//# sourceMappingURL=ats-dev.js.map