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

Function mapContentBlock

apps/sim/lib/copilot/chat/persisted-message.ts:159–162  ·  view source on GitHub ↗
(block: ContentBlock)

Source from the content-addressed store, hash-verified

157}
158
159function mapContentBlock(block: ContentBlock): PersistedContentBlock {
160 const persisted = mapContentBlockBody(block)
161 return withBlockSpan(withBlockParent(withBlockTiming(persisted, block), block), block)
162}
163
164function mapContentBlockBody(block: ContentBlock): PersistedContentBlock {
165 switch (block.type) {

Callers

nothing calls this directly

Calls 4

mapContentBlockBodyFunction · 0.85
withBlockSpanFunction · 0.85
withBlockParentFunction · 0.85
withBlockTimingFunction · 0.85

Tested by

no test coverage detected