MCPcopy Create free account
hub / github.com/EvoMap/evolver / getLineage

Function getLineage

src/webui/observer/assets.js:69–82  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

67}
68
69function getLineage(id) {
70 const paths = getObserverPaths();
71 const genes = readGenes(paths);
72 const capsules = readCapsules(paths).concat(readFailedCapsules(paths));
73 const events = readJsonl(paths.eventsPath).map(redactValue);
74 const assetCalls = readJsonl(paths.assetCallLogPath).map(redactValue);
75 return {
76 id,
77 genes: genes.filter((g) => matchesAsset(g, id)),
78 capsules: capsules.filter((c) => matchesAsset(c, id) || c.gene === id),
79 events: events.filter((e) => eventMentions(e, id)),
80 assetCalls: assetCalls.filter((entry) => matchesAsset(entry, id)),
81 };
82}
83
84function readGenes(paths) {
85 const fromJson = readJsonSafe(paths.genesPath, { genes: [] }).genes || [];

Callers

nothing calls this directly

Calls 7

getObserverPathsFunction · 0.85
readGenesFunction · 0.85
readCapsulesFunction · 0.85
readFailedCapsulesFunction · 0.85
matchesAssetFunction · 0.85
eventMentionsFunction · 0.85
readJsonlFunction · 0.70

Tested by

no test coverage detected