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

Function normalizeAlertResult

src/commands/system/runtime/system.ts:337–348  ·  view source on GitHub ↗
(
  action: BackendAlertAction,
  result: BackendAlertResult,
)

Source from the content-addressed store, hash-verified

335}
336
337function normalizeAlertResult(
338 action: BackendAlertAction,
339 result: BackendAlertResult,
340): SystemAlertCommandResult {
341 if (action === 'get') {
342 return normalizeAlertStatusResult(result);
343 }
344 if (action === 'wait') {
345 return normalizeAlertWaitResult(result);
346 }
347 return normalizeAlertHandledResult(action, result);
348}
349
350function normalizeKeyboardEnterResult(
351 state: BackendKeyboardResult,

Callers 1

alertCommandFunction · 0.85

Calls 3

normalizeAlertWaitResultFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…