Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ dist/
.codebase-context/*
**/.codebase-context/*
!/.codebase-context/memory.json
!tests/fixtures/map-fixture/.codebase-context/index.json
.codebase/
*.log
.DS_Store
Expand Down
76 changes: 76 additions & 0 deletions tests/fixtures/map-fixture/.codebase-context/index.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
{
"header": { "buildId": "test-build-13", "formatVersion": 4 },
Comment thread
PatrickSys marked this conversation as resolved.
Outdated
"chunks": [
{
"id": "c1",
"content": "export interface SearchOptions {\n query: string;\n limit?: number;\n}",
"filePath": "/fixture/src/core/search.ts",
"relativePath": "src/core/search.ts",
"startLine": 1,
"endLine": 4,
"language": "typescript",
"dependencies": [],
"imports": [],
"exports": ["SearchOptions"],
"tags": [],
"metadata": {
"symbolAware": true,
"symbolName": "SearchOptions",
"symbolKind": "interface"
}
},
{
"id": "c2",
"content": "export class CodebaseSearcher {\n private rootPath: string;\n constructor(rootPath: string) {\n this.rootPath = rootPath;\n }\n}",
"filePath": "/fixture/src/core/search.ts",
"relativePath": "src/core/search.ts",
"startLine": 10,
"endLine": 20,
"language": "typescript",
"dependencies": [],
"imports": [],
"exports": ["CodebaseSearcher"],
Comment thread
PatrickSys marked this conversation as resolved.
Outdated
"tags": [],
"metadata": {
"symbolAware": true,
"symbolName": "CodebaseSearcher",
"symbolKind": "class"
}
},
{
"id": "c3",
"content": "export type SearchResult = { chunk: CodeChunk; score: number; };",
"filePath": "/fixture/src/types.ts",
"relativePath": "src/types.ts",
"startLine": 5,
"endLine": 5,
"language": "typescript",
"dependencies": [],
"imports": [],
"exports": ["SearchResult"],
"tags": [],
"metadata": {
"symbolAware": true,
"symbolName": "SearchResult",
"symbolKind": "type"
}
},
{
"id": "c4",
"content": "function helperUtil() {\n return 42;\n}",
"filePath": "/fixture/src/utils/helpers.ts",
"relativePath": "src/utils/helpers.ts",
"startLine": 1,
"endLine": 3,
"language": "typescript",
"dependencies": [],
"imports": [],
"exports": [],
"tags": [],
"metadata": {
"symbolAware": false,
"symbolKind": "function"
}
}
]
}
Loading