@shirokuma-library/mcp-knowledge-base
Version:
Shirokuma MCP Server for comprehensive knowledge management including issues, plans, documents, and work sessions. All stored data is structured for AI processing, not human readability.
24 lines (23 loc) • 680 B
JavaScript
export class SessionSearchService {
db;
repository;
constructor(db, repository) {
this.db = db;
this.repository = repository;
}
async searchSessionsFast(query) {
return this.db.searchSessions(query);
}
async searchSessionsByTagFast(tag) {
return this.db.searchSessionsByTag(tag);
}
async searchDailySummariesFast(query) {
return this.db.searchDailySummaries(query);
}
async searchSessionsDetailed(query) {
return await this.repository.searchSessionsFullText(query);
}
async searchSessionsByTagDetailed(tag) {
return await this.repository.searchSessionsByTag(tag);
}
}