MCPcopy Create free account
hub / github.com/Noumena-Network/code / sourceMap

Function sourceMap

src/tools/WebFetchTool/sourceProvenance.ts:129–133  ·  view source on GitHub ↗
(
  sources: readonly WebFetchSourceMetadata[],
)

Source from the content-addressed store, hash-verified

127}
128
129function sourceMap(
130 sources: readonly WebFetchSourceMetadata[],
131): Map<string, WebFetchSourceMetadata> {
132 return new Map(sources.map(source => [source.source_id, source]))
133}
134
135function repairJsonValue(
136 value: JsonValue,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected