MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / chat-model.test.ts

File chat-model.test.ts

graph-ui/src/browser-ai/chat-model.test.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { describe, expect, it } from 'vitest';
2import { buildChatMessages, selectionLocation, snapshotAttachment, snapshotReaderContext, trimChatHistory, userMessage, type BrowserChatAttachment, type BrowserChatReaderContext, type BrowserChatTurn } from './chat-model';
3
4const source: BrowserChatAttachment = { id: 'selection-1', text: '\t partial(\r\n a + b\n', path: 'src/math.ts', project: 'sample', startLine: 3, startColumn: 8, endLine: 5, endColumn: 1, sourceVersion: 'sha256:test' };

Callers

nothing calls this directly

Calls 10

userMessageFunction · 0.90
selectionLocationFunction · 0.90
snapshotAttachmentFunction · 0.90
buildChatMessagesFunction · 0.90
snapshotReaderContextFunction · 0.90
trimChatHistoryFunction · 0.90
expectFunction · 0.85
attachedFunction · 0.85
readerFunction · 0.70
turnFunction · 0.70

Tested by

no test coverage detected