Files
obra__episodic-memory/dist/stats-cli.js
Jesse Vincent 024b0dfb32 Release v1.0.2: Pre-build and commit dist/ directory
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'
2025-10-23 14:56:31 -07:00

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);
});