(status)
| 360 | } |
| 361 | |
| 362 | async 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 | |
| 377 | async function localProviderMetadata() { |
| 378 | let health = null; |
no test coverage detected