MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / toChartContentBlocks

Function toChartContentBlocks

src/stores/aiChatChartBlocks.ts:143–145  ·  view source on GitHub ↗
(charts: ChartPayload[])

Source from the content-addressed store, hash-verified

141}
142
143export function toChartContentBlocks(charts: ChartPayload[]): ChartContentBlock[] {
144 return charts.map((chart) => ({ type: 'chart', chart: toPersistedChartPayload(chart) }))
145}
146
147function stableStringify(value: unknown): string {
148 if (Array.isArray(value)) return `[${value.map(stableStringify).join(',')}]`

Calls 1

toPersistedChartPayloadFunction · 0.70

Tested by

no test coverage detected