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

Function createManifest

apps/sim/lib/core/utils/response-format.test.ts:11–35  ·  view source on GitHub ↗
(totalCount = 100_000)

Source from the content-addressed store, hash-verified

9} from '@/lib/execution/payloads/large-array-manifest-metadata'
10
11function createManifest(totalCount = 100_000): LargeArrayManifest {
12 return {
13 __simLargeArrayManifest: true,
14 version: LARGE_ARRAY_MANIFEST_VERSION,
15 kind: 'array',
16 totalCount,
17 chunkCount: 1,
18 byteSize: 12 * 1024 * 1024,
19 chunks: [
20 {
21 count: totalCount,
22 byteSize: 12 * 1024 * 1024,
23 ref: {
24 __simLargeValueRef: true,
25 version: 1,
26 id: 'lv_ABCDEFGHIJKL',
27 kind: 'array',
28 size: 12 * 1024 * 1024,
29 executionId: 'execution-1',
30 },
31 },
32 ],
33 preview: [{ key: 'SIM-0' }],
34 }
35}
36
37describe('response format traversal', () => {
38 it('returns whole large array manifest metadata without materializing chunks', () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected