MCPcopy Create free account
hub / github.com/agent-tower/core / replaceNormalizedEntry

Function replaceNormalizedEntry

packages/server/src/output/utils/patch.ts:48–56  ·  view source on GitHub ↗
(index: number, entry: NormalizedEntry)

Source from the content-addressed store, hash-verified

46 * 替换标准化条目
47 */
48export function replaceNormalizedEntry(index: number, entry: NormalizedEntry): JsonPatch {
49 return [
50 {
51 op: 'replace',
52 path: `/entries/${index}`,
53 value: entry,
54 },
55 ]
56}
57
58/**
59 * 更新条目内容

Callers 7

upsertMcpToolEntryMethod · 0.85
handleApiRetryMethod · 0.85
handleToolUseMethod · 0.85
handleResultMessageMethod · 0.85
handleRetryMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected