import { j as json } from './exports-D1quPX8S.js';
import { g as getState } from './state-fxN45gBp.js';
import { g as getDeployState } from './setup-deploy-B--th9ts.js';
import './utils-BSRjJDrZ.js';
import './src-CidJbygh.js';
import './chunk-CLZ62Ad-.js';
import 'node:module';
import './provider-constants-DPrj3yBX.js';
import './dist-DOFcG0Zp.js';
import 'node:fs';
import 'node:path';
import 'buffer';
import 'fs';
import 'path';
import 'node:child_process';
import 'node:url';
import 'node:crypto';
import 'events';
import 'node:events';
import 'node:stream';
import 'node:string_decoder';
import 'assert';
import 'zlib';
import 'node:assert';
import 'node:fs/promises';
import 'node:os';

//#region src/routes/api/setup/deploy-status/+server.ts
function resolvePorts() {
	return {
		admin: Number(process.env.OP_HOST_UI_PORT) || 3880,
		assistant: Number(process.env.OP_HOST_ASSISTANT_PORT) || 3800
	};
}
var GET = () => {
	const state = getDeployState(getState());
	return json({
		ok: true,
		setupComplete: state.setupComplete,
		deploying: state.deploying,
		deployStatus: state.deployStatus,
		deployError: state.deployError,
		imageWarning: state.imageWarning,
		phase: state.phase,
		ports: resolvePorts()
	});
};

export { GET };
//# sourceMappingURL=_server.ts-DMCXKECk.js.map
