MCPcopy Create free account
hub / github.com/apache/maka / normalizeMetaValue

Function normalizeMetaValue

packages/core/src/local-memory.ts:954–959  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

952}
953
954function normalizeMetaValue(input: string): string {
955 return input
956 .replace(/[\s<>]+/g, '-')
957 .replace(/^-+|-+$/g, '')
958 .slice(0, 128);
959}
960
961function normalizeScopedSessionId(
962 scope: LocalMemoryScope,

Callers 6

pushFunction · 0.85
normalizeScopedSessionIdFunction · 0.85

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected