MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / markProviderStatus

Function markProviderStatus

scripts/studio-provider-bridge.mjs:362–375  ·  view source on GitHub ↗
(status)

Source from the content-addressed store, hash-verified

360}
361
362async function markProviderStatus(status) {
363 try {
364 await fetchJson(`${cloudUrl}/api/actions/providers/register`, {
365 previewId,
366 providerToken,
367 baseUrl: publicUrl,
368 status,
369 });
370 } catch (error) {
371 console.error(
372 `[simdeck-provider-bridge] provider ${status} update failed: ${error instanceof Error ? error.message : String(error)}`,
373 );
374 }
375}
376
377async function localProviderMetadata() {
378 let health = null;

Callers 2

markProviderExpiredFunction · 0.85
markProviderFailedFunction · 0.85

Calls 2

errorMethod · 0.80
fetchJsonFunction · 0.70

Tested by

no test coverage detected