MCPcopy Create free account
hub / github.com/Noumena-Network/code / select

Function select

src/components/VirtualMessageList.tsx:368–373  ·  view source on GitHub ↗
(m: NavigableMessage)

Source from the content-addressed store, hash-verified

366 }, [getItemHeight, messages]);
367 useImperativeHandle(cursorNavRef, (): MessageActionsNav => {
368 const select = (m: NavigableMessage) => setCursor?.({
369 uuid: m.uuid,
370 msgType: m.type,
371 expanded: false,
372 toolName: toolCallOf(m)?.name
373 });
374 const selIdx = selectedIndex ?? -1;
375 const scan = (from: number, dir: 1 | -1, pred: (i: number) => boolean = isVisible) => {
376 for (let i = from; i >= 0 && i < messages.length; i += dir) {

Callers 3

scanFunction · 0.85
buildShellCaseBodyFunction · 0.85
buildFishSwitchBodyFunction · 0.85

Calls 1

toolCallOfFunction · 0.85

Tested by

no test coverage detected