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

Function parseEmbeddingTrackerMode

src/core/embedding-tracker.ts:59–65  ·  view source on GitHub ↗
(value: string | undefined)

Source from the content-addressed store, hash-verified

57}
58
59export function parseEmbeddingTrackerMode(value: string | undefined): "off" | "lazy" | "eager" {
60 if (!value) return "lazy";
61 const normalized = value.trim().toLowerCase();
62 if (["false", "0", "no", "off", "disabled", "none"].includes(normalized)) return "off";
63 if (["eager", "startup", "boot"].includes(normalized)) return "eager";
64 return "lazy";
65}
66
67export function startEmbeddingTracker(options: EmbeddingTrackerOptions): () => void {
68 const pendingFiles = new Set<string>();

Calls

no outgoing calls

Tested by

no test coverage detected