MCPcopy Index your code
hub / github.com/forloopcodes/contextplus / clampDebounceMs

Function clampDebounceMs

src/core/embedding-tracker.ts:54–57  ·  view source on GitHub ↗
(value: number | undefined)

Source from the content-addressed store, hash-verified

52}
53
54function clampDebounceMs(value: number | undefined): number {
55 if (!Number.isFinite(value)) return DEFAULT_DEBOUNCE_MS;
56 return Math.max(500, Math.floor(value ?? DEFAULT_DEBOUNCE_MS));
57}
58
59export function parseEmbeddingTrackerMode(value: string | undefined): "off" | "lazy" | "eager" {
60 if (!value) return "lazy";

Callers 1

startEmbeddingTrackerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected