MCPcopy Index your code
hub / github.com/TanStack/ai / parseControlMessage

Function parseControlMessage

packages/ai-sandbox-sprites/src/client.ts:779–785  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

777}
778
779function parseControlMessage(text: string): ExecControlMessage | undefined {
780 try {
781 return JSON.parse(text) as ExecControlMessage
782 } catch {
783 return undefined
784 }
785}
786
787function parseSprite(text: string): SpriteResource {
788 let value: unknown

Callers 1

execMethod · 0.85

Calls 1

parseMethod · 0.80

Tested by

no test coverage detected