MCPcopy Create free account
hub / github.com/Superflows-AI/superflows / propertiesToChunks

Function propertiesToChunks

lib/utils.ts:416–424  ·  view source on GitHub ↗
(properties: Properties)

Source from the content-addressed store, hash-verified

414}
415
416export function propertiesToChunks(properties: Properties): Chunk[] {
417 /**
418 The reverse transformation to that done by transformProperties
419 **/
420 return Object.values(properties).map((prop) => ({
421 path: prop.path,
422 data: prop.data,
423 }));
424}
425
426export function swapKeysValues(json: { [key: string]: string }) {
427 const keyValCount = Object.keys(json).length;

Callers 2

rebuildPropertiesFunction · 0.90
rebuildPropertiesArrayFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected