@code-insights/cli 3.0.3 → 3.1.1

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.
Files changed (62) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dashboard-dist/assets/{index-CUWKxcRo.js → index-BuJps5yp.js} +40 -40
  3. package/dashboard-dist/index.html +1 -1
  4. package/dist/commands/connect.d.ts +5 -0
  5. package/dist/commands/connect.d.ts.map +1 -0
  6. package/dist/commands/connect.js +39 -0
  7. package/dist/commands/connect.js.map +1 -0
  8. package/dist/commands/insights.d.ts +13 -0
  9. package/dist/commands/insights.d.ts.map +1 -0
  10. package/dist/commands/insights.js +87 -0
  11. package/dist/commands/insights.js.map +1 -0
  12. package/dist/commands/link.d.ts +8 -0
  13. package/dist/commands/link.d.ts.map +1 -0
  14. package/dist/commands/link.js +39 -0
  15. package/dist/commands/link.js.map +1 -0
  16. package/dist/commands/stats/data/cache.d.ts +29 -0
  17. package/dist/commands/stats/data/cache.d.ts.map +1 -0
  18. package/dist/commands/stats/data/cache.js +197 -0
  19. package/dist/commands/stats/data/cache.js.map +1 -0
  20. package/dist/commands/stats/data/firestore.d.ts +13 -0
  21. package/dist/commands/stats/data/firestore.d.ts.map +1 -0
  22. package/dist/commands/stats/data/firestore.js +170 -0
  23. package/dist/commands/stats/data/firestore.js.map +1 -0
  24. package/dist/commands/sync.d.ts +1 -0
  25. package/dist/commands/sync.d.ts.map +1 -1
  26. package/dist/commands/sync.js +52 -23
  27. package/dist/commands/sync.js.map +1 -1
  28. package/dist/db/schema.d.ts +1 -0
  29. package/dist/db/schema.d.ts.map +1 -1
  30. package/dist/db/schema.js +1 -0
  31. package/dist/db/schema.js.map +1 -1
  32. package/dist/db/write.d.ts +5 -0
  33. package/dist/db/write.d.ts.map +1 -1
  34. package/dist/db/write.js +11 -0
  35. package/dist/db/write.js.map +1 -1
  36. package/dist/firebase/client.d.ts +45 -0
  37. package/dist/firebase/client.d.ts.map +1 -0
  38. package/dist/firebase/client.js +344 -0
  39. package/dist/firebase/client.js.map +1 -0
  40. package/dist/index.js +0 -0
  41. package/dist/parser/insights.d.ts +7 -0
  42. package/dist/parser/insights.d.ts.map +1 -0
  43. package/dist/parser/insights.js +271 -0
  44. package/dist/parser/insights.js.map +1 -0
  45. package/dist/providers/codex.js +31 -0
  46. package/dist/providers/codex.js.map +1 -1
  47. package/dist/providers/copilot-cli.js +14 -2
  48. package/dist/providers/copilot-cli.js.map +1 -1
  49. package/dist/providers/cursor.js +44 -2
  50. package/dist/providers/cursor.js.map +1 -1
  51. package/dist/utils/firebase-json.d.ts +87 -0
  52. package/dist/utils/firebase-json.d.ts.map +1 -0
  53. package/dist/utils/firebase-json.js +207 -0
  54. package/dist/utils/firebase-json.js.map +1 -0
  55. package/dist/utils/telemetry.d.ts.map +1 -1
  56. package/dist/utils/telemetry.js +28 -3
  57. package/dist/utils/telemetry.js.map +1 -1
  58. package/package.json +3 -1
  59. package/server-dist/index.d.ts +9 -1
  60. package/server-dist/index.d.ts.map +1 -1
  61. package/server-dist/index.js +15 -5
  62. package/server-dist/index.js.map +1 -1
package/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  All notable changes to `@code-insights/cli` will be documented in this file.
4
4
 
5
+ ## [3.1.1] - 2026-03-02
6
+
7
+ ### Fixed
8
+
9
+ - **Sync now updates existing sessions** — Previously, modified session files (e.g., active sessions gaining new messages) were skipped during sync because the session ID already existed in SQLite. Message counts, token usage, costs, and end times would remain stale after the initial sync. The sync now upserts session data and recalculates usage stats when existing sessions are updated.
10
+ - **Cursor virtual-path sessions re-sync on DB change** — When the backing `state.vscdb` file was modified (new messages in an existing composer), virtual-path sessions were incorrectly skipped. Now re-syncs all sessions from a multi-session DB when the file changes.
11
+ - **Improved sync summary** — Reports "new" vs "updated" session counts instead of a single "synced" number.
12
+
5
13
  ## [3.0.3] - 2026-02-28
6
14
 
7
15
  ### Fixed