MCPcopy Create free account
hub / github.com/TanStack/ai / createRecording

Function createRecording

testing/panel/src/traces/index.ts:10–20  ·  view source on GitHub ↗
(chunks: any[])

Source from the content-addressed store, hash-verified

8
9// Helper to create a base recording
10function createRecording(chunks: any[]): ChunkRecording {
11 return {
12 version: '1.0',
13 timestamp: Date.now(),
14 chunks: chunks.map((chunk, index) => ({
15 chunk,
16 timestamp: Date.now() + index * 10,
17 index,
18 })),
19 }
20}
21
22/**
23 * Simple text streaming - "Hello world!" character by character

Callers 1

index.tsFile · 0.85

Calls 1

nowMethod · 0.80

Tested by

no test coverage detected