kotadb 2.1.0-next.20260203223626 → 2.1.0-next.20260203224441
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/mcp/tools.ts +11 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kotadb",
|
|
3
|
-
"version": "2.1.0-next.
|
|
3
|
+
"version": "2.1.0-next.20260203224441",
|
|
4
4
|
"description": "Local-only code intelligence tool for CLI agents. SQLite-backed repository indexing and code search via MCP.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "src/index.ts",
|
package/src/mcp/tools.ts
CHANGED
|
@@ -943,8 +943,18 @@ export async function executeListRecentFiles(
|
|
|
943
943
|
? (params.repository as string | undefined)
|
|
944
944
|
: undefined;
|
|
945
945
|
|
|
946
|
+
// Resolve repository ID (supports UUID or full_name)
|
|
947
|
+
let repositoryId = repository;
|
|
948
|
+
if (repositoryId) {
|
|
949
|
+
const repoResult = resolveRepositoryIdentifierWithError(repositoryId);
|
|
950
|
+
if ("error" in repoResult) {
|
|
951
|
+
return { results: [], message: repoResult.error };
|
|
952
|
+
}
|
|
953
|
+
repositoryId = repoResult.id;
|
|
954
|
+
}
|
|
955
|
+
|
|
946
956
|
// Use SQLite via listRecentFiles with optional repository filter
|
|
947
|
-
const files = listRecentFiles(limit,
|
|
957
|
+
const files = listRecentFiles(limit, repositoryId);
|
|
948
958
|
|
|
949
959
|
return {
|
|
950
960
|
results: files.map((file) => ({
|
|
@@ -956,8 +966,6 @@ export async function executeListRecentFiles(
|
|
|
956
966
|
};
|
|
957
967
|
}
|
|
958
968
|
|
|
959
|
-
/**
|
|
960
|
-
|
|
961
969
|
/**
|
|
962
970
|
* Execute search_dependencies tool
|
|
963
971
|
*/
|