MCPcopy
hub / github.com/simstudioai/sim / normalizeConsoleOutput

Function normalizeConsoleOutput

apps/sim/stores/terminal/console/utils.ts:219–225  ·  view source on GitHub ↗
(output: unknown)

Source from the content-addressed store, hash-verified

217 * Normalizes terminal output data before it is stored.
218 */
219export function normalizeConsoleOutput(output: unknown): NormalizedBlockOutput | undefined {
220 if (output === undefined) {
221 return undefined
222 }
223
224 return capNormalizedValue(normalizeConsoleValue(output)) as NormalizedBlockOutput
225}
226
227/**
228 * Normalizes terminal error data before it is stored.

Callers 3

store.tsFile · 0.90
hydrateConsoleStoreFunction · 0.90
utils.test.tsFile · 0.90

Calls 2

capNormalizedValueFunction · 0.85
normalizeConsoleValueFunction · 0.85

Tested by

no test coverage detected