MCPcopy
hub / github.com/szczyglis-dev/py-gpt / push

Method push

src/pygpt_net/data/js/app/stream.js:1840–1848  ·  view source on GitHub ↗
(key, el)

Source from the content-addressed store, hash-verified

1838 // Build maps keyed by full, stable fp key (data-fp) or by lightweight tuple from wrapper attrs.
1839 const map = new Map();
1840 const push = (key, el) => {
1841 if (!key) return;
1842 let arr = map.get(key);
1843 if (!arr) {
1844 arr = [];
1845 map.set(key, arr);
1846 }
1847 arr.push(el);
1848 };
1849
1850 const makeAttrKey = (wrap) => {
1851 if (!wrap) return '';

Callers 15

addMethod · 0.45
openNodeMethod · 0.45
NFunction · 0.45
addRuleMethod · 0.45
addRuleMethod · 0.45
teFunction · 0.45
highlight.min.jsFile · 0.45
dFunction · 0.45
addMethod · 0.45
openNodeMethod · 0.45
COMMENTFunction · 0.45
addRuleMethod · 0.45

Calls 2

getMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected