import "./paths-C9FmTW1x.js";
import { d as defaultRuntime } from "./errors-Dx3S3Nrp.js";
import "./federation-BrNm7xtG.js";
import { n as runCommandWithRuntime } from "./cli-utils-DJ7Nfw8J.js";
import { t as managedUpCommand } from "./managed-up-BykEd-7K.js";

//#region src/cli/program/register.managed.ts
function registerManagedCommand(program) {
	program.command("managed").description("Managed public startup helpers").command("up").description("Run managed startup lifecycle (gateway + federation + tunnel + wallet checks)").option("--json", "Print managed preflight summary and exit", false).action(async (opts) => {
		await runCommandWithRuntime(defaultRuntime, async () => {
			await managedUpCommand(defaultRuntime, { json: Boolean(opts.json) });
		});
	});
}

//#endregion
export { registerManagedCommand };