MCPcopy Create free account
hub / github.com/garrytan/gstack / getDeclaredAnnotation

Function getDeclaredAnnotation

scripts/declared-annotation.ts:113–125  ·  view source on GitHub ↗
(signalKey: string)

Source from the content-addressed store, hash-verified

111 * else null.
112 */
113export function getDeclaredAnnotation(signalKey: string): string | null {
114 if (!signalKey || typeof signalKey !== 'string') return null;
115 const dim = primaryDimensionFor(signalKey);
116 if (!dim) return null;
117
118 const profile = readProfile();
119 const declared = profile?.declared?.[dim];
120 if (typeof declared !== 'number') return null;
121
122 if (declared >= STRONG_HIGH) return DIMENSION_PHRASING[dim].high;
123 if (declared <= STRONG_LOW) return DIMENSION_PHRASING[dim].low;
124 return null;
125}

Callers 1

Calls 2

primaryDimensionForFunction · 0.85
readProfileFunction · 0.70

Tested by

no test coverage detected