MCPcopy Create free account
hub / github.com/simstudioai/sim / truncate

Function truncate

apps/sim/app/api/mcp/oauth/start/route.ts:55–59  ·  view source on GitHub ↗
(message: string)

Source from the content-addressed store, hash-verified

53}
54
55function truncate(message: string): string {
56 return message.length > MAX_SURFACED_ERROR_LENGTH
57 ? `${message.slice(0, MAX_SURFACED_ERROR_LENGTH)}…`
58 : message
59}
60
61export const dynamic = 'force-dynamic'
62

Callers 1

surfaceOauthErrorFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected