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

Function readRequiredText

src/daemon/upload-http.ts:266–270  ·  view source on GitHub ↗
(record: Record<string, unknown>, key: string)

Source from the content-addressed store, hash-verified

264}
265
266function readRequiredText(record: Record<string, unknown>, key: string): string {
267 const value = readOptionalText(record, key)?.trim();
268 if (!value) throw new AppError('INVALID_ARGS', `${key} is required`);
269 return value;
270}
271
272function readOptionalText(record: Record<string, unknown>, key: string): string | undefined {
273 const value = record[key];

Callers 3

readUploadPreflightBodyFunction · 0.70
readUploadFinalizeBodyFunction · 0.70
readRequiredArtifactTypeFunction · 0.70

Calls 1

readOptionalTextFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…