MCPcopy Create free account
hub / github.com/ConardLi/easy-agent / pickStringArray

Function pickStringArray

src/tools/taskUpdateTool.ts:41–46  ·  view source on GitHub ↗
(input: Record<string, unknown>, key: string)

Source from the content-addressed store, hash-verified

39}
40
41function mergeMetadata(
42 existing: Record<string, unknown> | undefined,
43 patch: Record<string, unknown>,
44): Record<string, unknown> {
45 const merged: Record<string, unknown> = { ...(existing ?? {}) };
46 for (const [key, value] of Object.entries(patch)) {
47 if (value === null) {
48 delete merged[key];
49 } else {

Callers 1

callFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected