MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / AnswerNotes

Function AnswerNotes

graph-ui/src/browser-ai/BrowserChatDock.tsx:149–157  ·  view source on GitHub ↗

How an answer was bounded: cut at the output limit, scope too large, history left out, * and which of its names the model was not given.

({ shortened, packet, model, historyOmitted, unsupported = [] }: { shortened?: LimitNote; packet?: PreparedExplanationContext; model: string; historyOmitted?: number; unsupported?: readonly string[] })

Source from the content-addressed store, hash-verified

147/** How an answer was bounded: cut at the output limit, scope too large, history left out,
148 * and which of its names the model was not given. */
149function AnswerNotes({ shortened, packet, model, historyOmitted, unsupported = [] }: { shortened?: LimitNote; packet?: PreparedExplanationContext; model: string; historyOmitted?: number; unsupported?: readonly string[] }): JSX.Element {
150 const capacity = packet?.capacity;
151 return <>
152 {unsupported.length > 0 && <small className="cbm-chat-answer-note">{browserChatText.unsupportedNames(unsupported)}</small>}
153 {shortened && <TokenLimitNote {...shortened} />}
154 {capacity && <small className="cbm-chat-answer-note">{browserChatText.capacity(capacity.nodes, capacity.edges, model, capacity.shown)}</small>}
155 {!!historyOmitted && <small className="cbm-chat-answer-note">{browserChatText.historyTrimmed(historyOmitted)}</small>}
156 </>;
157}
158
159/** `codeOnly` where the listed facts already stand above it, in the explanation card. The
160 * source does not push the first graph facts out: a listed answer shows both (K14). */

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected