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

Function clampFilesPerTick

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

Source from the content-addressed store, hash-verified

47}
48
49function clampFilesPerTick(value: number | undefined): number {
50 if (!Number.isFinite(value)) return DEFAULT_FILES_PER_TICK;
51 return Math.max(MIN_FILES_PER_TICK, Math.min(MAX_FILES_PER_TICK, Math.floor(value ?? DEFAULT_FILES_PER_TICK)));
52}
53
54function clampDebounceMs(value: number | undefined): number {
55 if (!Number.isFinite(value)) return DEFAULT_DEBOUNCE_MS;

Callers 1

startEmbeddingTrackerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected