agentfit 0.1.5 → 0.1.6

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/lib/db.ts CHANGED
@@ -3,7 +3,7 @@ import { PrismaLibSql } from '@prisma/adapter-libsql'
3
3
  import path from 'path'
4
4
 
5
5
  function createPrisma() {
6
- const dbUrl = `file:${path.resolve(process.cwd(), 'agentfit.db')}`
6
+ const dbUrl = process.env.DATABASE_URL || `file:${path.resolve(process.cwd(), 'agentfit.db')}`
7
7
  const adapter = new PrismaLibSql({ url: dbUrl })
8
8
  return new PrismaClient({ adapter })
9
9
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentfit",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "Fitness tracker dashboard for AI coding agents (Claude Code, Codex). Visualize usage, cost, tokens, and productivity from local conversation logs.",
5
5
  "type": "module",
6
6
  "bin": {
package/prisma/schema.sql CHANGED
@@ -99,3 +99,4 @@ CREATE UNIQUE INDEX IF NOT EXISTS "SessionAnalysis_sessionId_key" ON "SessionAna
99
99
 
100
100
  -- CreateIndex
101
101
  CREATE INDEX IF NOT EXISTS "SessionAnalysis_sessionId_idx" ON "SessionAnalysis"("sessionId");
102
+