MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / rehydrateWireEntries

Function rehydrateWireEntries

apps/vis/server/src/lib/blob-resolver.ts:31–40  ·  view source on GitHub ↗
(
  entries: readonly WireEntry[],
  sessionId: string,
  agentId: string,
  baseUrl: string = '',
)

Source from the content-addressed store, hash-verified

29 * blob routes so the UI can render them. Only mutates `entry.data`;
30 * `entry.raw` is left untouched. */
31export function rehydrateWireEntries(
32 entries: readonly WireEntry[],
33 sessionId: string,
34 agentId: string,
35 baseUrl: string = '',
36): void {
37 for (const entry of entries) {
38 rehydrateRecord(entry.data as Record<string, unknown>, sessionId, agentId, baseUrl);
39 }
40}
41
42function rehydrateRecord(
43 record: Record<string, unknown>,

Callers 3

wireRouteFunction · 0.90
contextRouteFunction · 0.90

Calls 1

rehydrateRecordFunction · 0.85

Tested by

no test coverage detected