MCPcopy Create free account
hub / github.com/CheMiguel23/MemoryMesh / getValue

Method getValue

src/core/metadata/MetadataProcessor.ts:69–74  ·  view source on GitHub ↗

* Extracts value for a specific metadata key

(metadata: Metadata, key: string)

Source from the content-addressed store, hash-verified

67 * Extracts value for a specific metadata key
68 */
69 static getValue(metadata: Metadata, key: string): string | null {
70 const entries = this.filterByKey(metadata, key);
71 if (entries.length === 0) return null;
72
73 return this.parseMetadataEntry(entries[0]).value;
74 }
75
76 /**
77 * Creates a metadata entry map for efficient lookup

Callers

nothing calls this directly

Calls 2

filterByKeyMethod · 0.95
parseMetadataEntryMethod · 0.95

Tested by

no test coverage detected