MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / appendFocusHistory

Function appendFocusHistory

dashboard/graph/src/explorerState.ts:75–81  ·  view source on GitHub ↗
(
  previous: FocusHistoryEntry[],
  node: Pick<FocusHistoryEntry, "id" | "name">,
)

Source from the content-addressed store, hash-verified

73}
74
75export function appendFocusHistory(
76 previous: FocusHistoryEntry[],
77 node: Pick<FocusHistoryEntry, "id" | "name">,
78): FocusHistoryEntry[] {
79 const trimmed = previous.filter((entry) => entry.id !== node.id);
80 return [...trimmed.slice(-7), { id: node.id, name: node.name }];
81}

Callers 1

CodeGraphExplorerFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected