mirror of
https://github.com/obra/episodic-memory.git
synced 2026-09-14 13:43:14 +08:00
024b0dfb32
Fix MCP server startup error by committing pre-built JavaScript files. The dist/ directory is now tracked in git to ensure built files are immediately available after plugin installation without requiring a build step. Changes: - Remove dist/ from .gitignore - Pre-build and commit all dist/ files - Bump version to 1.0.2 in package.json, plugin.json, marketplace.json - Update CHANGELOG.md Fixes: Error: Cannot find module 'dist/mcp-server.js'
30 lines
681 B
JavaScript
30 lines
681 B
JavaScript
import { getIndexStats, formatStats } from './stats.js';
|
|
const args = process.argv.slice(2);
|
|
if (args.includes('--help') || args.includes('-h')) {
|
|
console.log(`
|
|
Usage: episodic-memory stats
|
|
|
|
Display statistics about the indexed conversation archive.
|
|
|
|
Shows:
|
|
- Total conversations and exchanges
|
|
- Conversations with/without AI summaries
|
|
- Date range coverage
|
|
- Project breakdown
|
|
- Top projects by conversation count
|
|
|
|
EXAMPLES:
|
|
# Show index statistics
|
|
episodic-memory stats
|
|
`);
|
|
process.exit(0);
|
|
}
|
|
getIndexStats()
|
|
.then(stats => {
|
|
console.log(formatStats(stats));
|
|
})
|
|
.catch(error => {
|
|
console.error('Error getting stats:', error);
|
|
process.exit(1);
|
|
});
|