fix(coding-agent): correct omp-stats subpath imports for tarball installs

This commit is contained in:
can1357
2026-02-21 16:59:37 +01:00
parent 737fc46d65
commit 643eb12df6
3 changed files with 5 additions and 4 deletions
+3 -3
View File
@@ -85,9 +85,9 @@ function formatPercent(n: number): string {
export async function runStatsCommand(cmd: StatsCommandArgs): Promise<void> {
// Lazy import to avoid loading stats module when not needed
const { getDashboardStats, syncAllSessions, getTotalMessageCount } = await import("@oh-my-pi/omp-stats");
const { startServer } = await import("@oh-my-pi/omp-stats/src/server");
const { closeDb } = await import("@oh-my-pi/omp-stats/src/db");
const { getDashboardStats, syncAllSessions, getTotalMessageCount, startServer, closeDb } = await import(
"@oh-my-pi/omp-stats"
);
// Sync session files first
console.log("Syncing session files...");