import { j as json } from './exports-D1quPX8S.js';
import { g as getOpenCodeClient } from './helpers-kzwksNq1.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';
import './endpoints-UdQGgKsR.js';
import './state-fxN45gBp.js';

//#region src/routes/api/setup/opencode/status/+server.ts
var GET = async () => {
	try {
		return json({
			ok: true,
			available: await getOpenCodeClient().isAvailable()
		});
	} catch {
		return json({
			ok: true,
			available: false
		});
	}
};

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