(text: string, kind: 'file' | 'selection' = 'file')
| 5 | import { JSONB_AGG_CALLERS, jsonbAggEvidence, jsonbAggScope, largeFolderScope } from './galaxy-evidence.fixture'; |
| 6 | |
| 7 | function reader(text: string, kind: 'file' | 'selection' = 'file'): BrowserChatReaderContext { |
| 8 | const lines = text.split('\n'); |
| 9 | return { project: 'sample', path: 'src/example.ts', status: 'ready', source: { |
| 10 | id: 'reader', text, kind, project: 'sample', path: 'src/example.ts', sourceVersion: 'sha256:example', |
| 11 | startLine: 1, startColumn: 1, endLine: lines.length, endColumn: lines.at(-1)!.length + 1, |
| 12 | } }; |
| 13 | } |
| 14 | |
| 15 | function graph(selected: unknown, relationships?: unknown, rest: Record<string, unknown> = {}): BrowserChatContext { |
| 16 | return { id: 'snapshot', label: 'Example', text: JSON.stringify({ evidence: { |
no outgoing calls
no test coverage detected