MCPcopy Create free account
hub / github.com/Microck/opencode-studio / getDebugInfo

Function getDebugInfo

client-next/src/lib/api.ts:189–207  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

187}
188
189export async function getDebugInfo() {
190 try {
191 const paths = await getPaths();
192 const auth = await api.get('/debug/auth').then(res => res.data);
193 const sync = await getSyncStatus();
194 const health = await checkHealth();
195
196 return {
197 paths,
198 auth,
199 sync,
200 serverHealthy: health,
201 clientVersion: process.env.NEXT_PUBLIC_APP_VERSION || 'unknown',
202 };
203 } catch (error) {
204 console.error('Failed to fetch debug info:', error);
205 return { error: 'Failed to fetch debug info' };
206 }
207}
208
209export async function getDebugPaths(): Promise<any> {
210 const { data } = await api.get('/paths');

Callers 1

fetchDebugInfoFunction · 0.90

Calls 3

getSyncStatusFunction · 0.85
checkHealthFunction · 0.85
getPathsFunction · 0.70

Tested by

no test coverage detected