MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / assertPrimitive

Function assertPrimitive

packages/telemetry/src/transport.ts:274–277  ·  view source on GitHub ↗
(key: string, value: unknown)

Source from the content-addressed store, hash-verified

272}
273
274function assertPrimitive(key: string, value: unknown): asserts value is TelemetryPrimitive {
275 if (isTelemetryPrimitive(value)) return;
276 throw new TypeError(`telemetry ${key} must be primitive`);
277}
278
279function handleStatus(status: number): void {
280 if (status >= 500 || status === 429) {

Callers 2

flattenEventFunction · 0.85
flattenNestedFunction · 0.85

Calls 1

isTelemetryPrimitiveFunction · 0.90

Tested by

no test coverage detected