MCPcopy Index your code
hub / github.com/callstack/agent-device / serializeSnapshotResult

Function serializeSnapshotResult

src/client/client-shared.ts:173–184  ·  view source on GitHub ↗
(result: CaptureSnapshotResult)

Source from the content-addressed store, hash-verified

171}
172
173export function serializeSnapshotResult(result: CaptureSnapshotResult): Record<string, unknown> {
174 return {
175 nodes: result.nodes,
176 truncated: result.truncated,
177 ...(result.appName ? { appName: result.appName } : {}),
178 ...(result.appBundleId ? { appBundleId: result.appBundleId } : {}),
179 ...(result.visibility ? { visibility: result.visibility } : {}),
180 ...publicSnapshotCaptureAnnotations(snapshotResultAnnotations(result)),
181 ...(result.unchanged ? { unchanged: result.unchanged } : {}),
182 ...(result.snapshotDiagnostics ? { snapshotDiagnostics: result.snapshotDiagnostics } : {}),
183 };
184}
185
186function snapshotResultAnnotations(
187 result: CaptureSnapshotResult,

Callers 2

snapshotCliOutputFunction · 0.90

Calls 2

Tested by

no test coverage detected