MCPcopy Index your code
hub / github.com/simstudioai/sim / safeStringify

Function safeStringify

apps/sim/lib/logs/log-views.ts:293–301  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

291}
292
293function safeStringify(value: unknown): string {
294 if (value === undefined || value === null) return ''
295 if (typeof value === 'string') return value
296 try {
297 return JSON.stringify(value)
298 } catch {
299 return String(value)
300 }
301}
302
303/**
304 * Grep a single execution's trace spans for `pattern`. Inline fields are scanned

Callers 1

grepFieldFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected