MCPcopy
hub / github.com/callstack/agent-device / readCommandMessage

Function readCommandMessage

src/utils/success-text.ts:12–14  ·  view source on GitHub ↗
(data: Record<string, unknown> | undefined)

Source from the content-addressed store, hash-verified

10}
11
12export function readCommandMessage(data: Record<string, unknown> | undefined): string | null {
13 return typeof data?.message === 'string' && data.message.length > 0 ? data.message : null;
14}

Callers 4

messageCliOutputFunction · 0.90
openCliOutputFunction · 0.90
renderBatchStepLineFunction · 0.90
writeGenericCliOutputFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected