MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / pushSlice

Function pushSlice

src/orchestration/context-injection.ts:95–100  ·  view source on GitHub ↗
(arr: ContextSlice[], s: ContextSlice)

Source from the content-addressed store, hash-verified

93 const seenSlice = new Set<string>();
94
95 const pushSlice = (arr: ContextSlice[], s: ContextSlice) => {
96 const key = `${s.file}:${s.startLine ?? 0}:${s.symbol ?? ''}:${s.reason}`;
97 if (seenSlice.has(key)) return;
98 seenSlice.add(key);
99 arr.push(s);
100 };
101
102 // 1. TARGET slices — current content of files this node modifies.
103 const existingTargets: string[] = [];

Callers 1

buildTaskContextFunction · 0.85

Calls 3

addMethod · 0.80
hasMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected