MCPcopy Create free account
hub / github.com/callstack/agent-device / normalizeAlertStatusResult

Function normalizeAlertStatusResult

src/commands/system/runtime/system.ts:390–395  ·  view source on GitHub ↗
(result: BackendAlertResult)

Source from the content-addressed store, hash-verified

388}
389
390function normalizeAlertStatusResult(result: BackendAlertResult): SystemAlertCommandResult {
391 if (result.kind !== 'alertStatus') {
392 throw new AppError('COMMAND_FAILED', 'system.alert get returned an invalid backend result');
393 }
394 return { kind: 'alertStatus', action: 'get', alert: result.alert };
395}
396
397function normalizeAlertWaitResult(result: BackendAlertResult): SystemAlertCommandResult {
398 if (result.kind !== 'alertWait') {

Callers 1

normalizeAlertResultFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…