agentfit 0.1.0 → 0.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 (68) hide show
  1. package/README.md +30 -34
  2. package/app/(dashboard)/daily/page.tsx +1 -1
  3. package/app/(dashboard)/flow/page.tsx +17 -0
  4. package/app/(dashboard)/layout.tsx +2 -0
  5. package/app/(dashboard)/page.tsx +24 -5
  6. package/app/(dashboard)/reports/[id]/page.tsx +72 -0
  7. package/app/(dashboard)/reports/page.tsx +132 -0
  8. package/app/(dashboard)/sessions/[id]/page.tsx +167 -0
  9. package/app/(dashboard)/settings/page.tsx +180 -0
  10. package/app/api/backup/route.ts +215 -0
  11. package/app/api/check/route.ts +11 -1
  12. package/app/api/command-insights/route.ts +13 -0
  13. package/app/api/images-analysis/route.ts +3 -4
  14. package/app/api/reports/[id]/route.ts +23 -0
  15. package/app/api/reports/route.ts +50 -0
  16. package/app/api/reset/route.ts +21 -0
  17. package/app/api/session/route.ts +40 -0
  18. package/app/api/usage/route.ts +25 -1
  19. package/app/layout.tsx +1 -1
  20. package/bin/agentfit.mjs +2 -2
  21. package/components/agent-coach.tsx +256 -129
  22. package/components/app-sidebar.tsx +258 -8
  23. package/components/backup-section.tsx +236 -0
  24. package/components/daily-chart.tsx +404 -83
  25. package/components/dashboard-shell.tsx +9 -24
  26. package/components/data-provider.tsx +66 -2
  27. package/components/fitness-score.tsx +95 -54
  28. package/components/overview-cards.tsx +148 -41
  29. package/components/report-view.tsx +307 -0
  30. package/components/screenshots-analysis.tsx +51 -46
  31. package/components/session-chatlog.tsx +124 -0
  32. package/components/session-timeline.tsx +184 -0
  33. package/components/session-workflow.tsx +183 -0
  34. package/components/sessions-table.tsx +9 -1
  35. package/components/tool-flow-graph.tsx +144 -0
  36. package/components/ui/carousel.tsx +242 -0
  37. package/components/ui/sidebar.tsx +1 -1
  38. package/components/ui/sonner.tsx +51 -0
  39. package/generated/prisma/browser.ts +5 -0
  40. package/generated/prisma/client.ts +5 -0
  41. package/generated/prisma/internal/class.ts +14 -4
  42. package/generated/prisma/internal/prismaNamespace.ts +96 -2
  43. package/generated/prisma/internal/prismaNamespaceBrowser.ts +20 -1
  44. package/generated/prisma/models/Report.ts +1219 -0
  45. package/generated/prisma/models/Session.ts +187 -1
  46. package/generated/prisma/models.ts +1 -0
  47. package/lib/coach.ts +530 -211
  48. package/lib/command-insights.ts +231 -0
  49. package/lib/db.ts +1 -1
  50. package/lib/parse-codex.ts +5 -0
  51. package/lib/parse-logs.ts +65 -0
  52. package/lib/queries-codex.ts +22 -0
  53. package/lib/queries.ts +42 -0
  54. package/lib/report.ts +156 -0
  55. package/lib/session-detail.ts +382 -0
  56. package/lib/sync.ts +77 -0
  57. package/lib/tool-flow.ts +71 -0
  58. package/next.config.mjs +6 -1
  59. package/package.json +16 -2
  60. package/plugins/cost-heatmap/component.tsx +72 -50
  61. package/prisma/schema.prisma +17 -0
  62. package/.claude/settings.local.json +0 -26
  63. package/CONTRIBUTING.md +0 -209
  64. package/prisma/migrations/20260328152517_init/migration.sql +0 -41
  65. package/prisma/migrations/20260328153801_add_image_model/migration.sql +0 -18
  66. package/prisma/migrations/migration_lock.toml +0 -3
  67. package/prisma.config.ts +0 -14
  68. package/setup.sh +0 -73
@@ -38,6 +38,9 @@ export type SessionAvgAggregateOutputType = {
38
38
  totalTokens: number | null
39
39
  costUSD: number | null
40
40
  toolCallsTotal: number | null
41
+ apiErrors: number | null
42
+ rateLimitErrors: number | null
43
+ userInterruptions: number | null
41
44
  }
42
45
 
43
46
  export type SessionSumAggregateOutputType = {
@@ -52,6 +55,9 @@ export type SessionSumAggregateOutputType = {
52
55
  totalTokens: number | null
53
56
  costUSD: number | null
54
57
  toolCallsTotal: number | null
58
+ apiErrors: number | null
59
+ rateLimitErrors: number | null
60
+ userInterruptions: number | null
55
61
  }
56
62
 
57
63
  export type SessionMinAggregateOutputType = {
@@ -74,6 +80,12 @@ export type SessionMinAggregateOutputType = {
74
80
  model: string | null
75
81
  toolCallsTotal: number | null
76
82
  toolCallsJson: string | null
83
+ skillCallsJson: string | null
84
+ messageTimestamps: string | null
85
+ apiErrors: number | null
86
+ rateLimitErrors: number | null
87
+ userInterruptions: number | null
88
+ permissionModesJson: string | null
77
89
  createdAt: Date | null
78
90
  }
79
91
 
@@ -97,6 +109,12 @@ export type SessionMaxAggregateOutputType = {
97
109
  model: string | null
98
110
  toolCallsTotal: number | null
99
111
  toolCallsJson: string | null
112
+ skillCallsJson: string | null
113
+ messageTimestamps: string | null
114
+ apiErrors: number | null
115
+ rateLimitErrors: number | null
116
+ userInterruptions: number | null
117
+ permissionModesJson: string | null
100
118
  createdAt: Date | null
101
119
  }
102
120
 
@@ -120,6 +138,12 @@ export type SessionCountAggregateOutputType = {
120
138
  model: number
121
139
  toolCallsTotal: number
122
140
  toolCallsJson: number
141
+ skillCallsJson: number
142
+ messageTimestamps: number
143
+ apiErrors: number
144
+ rateLimitErrors: number
145
+ userInterruptions: number
146
+ permissionModesJson: number
123
147
  createdAt: number
124
148
  _all: number
125
149
  }
@@ -137,6 +161,9 @@ export type SessionAvgAggregateInputType = {
137
161
  totalTokens?: true
138
162
  costUSD?: true
139
163
  toolCallsTotal?: true
164
+ apiErrors?: true
165
+ rateLimitErrors?: true
166
+ userInterruptions?: true
140
167
  }
141
168
 
142
169
  export type SessionSumAggregateInputType = {
@@ -151,6 +178,9 @@ export type SessionSumAggregateInputType = {
151
178
  totalTokens?: true
152
179
  costUSD?: true
153
180
  toolCallsTotal?: true
181
+ apiErrors?: true
182
+ rateLimitErrors?: true
183
+ userInterruptions?: true
154
184
  }
155
185
 
156
186
  export type SessionMinAggregateInputType = {
@@ -173,6 +203,12 @@ export type SessionMinAggregateInputType = {
173
203
  model?: true
174
204
  toolCallsTotal?: true
175
205
  toolCallsJson?: true
206
+ skillCallsJson?: true
207
+ messageTimestamps?: true
208
+ apiErrors?: true
209
+ rateLimitErrors?: true
210
+ userInterruptions?: true
211
+ permissionModesJson?: true
176
212
  createdAt?: true
177
213
  }
178
214
 
@@ -196,6 +232,12 @@ export type SessionMaxAggregateInputType = {
196
232
  model?: true
197
233
  toolCallsTotal?: true
198
234
  toolCallsJson?: true
235
+ skillCallsJson?: true
236
+ messageTimestamps?: true
237
+ apiErrors?: true
238
+ rateLimitErrors?: true
239
+ userInterruptions?: true
240
+ permissionModesJson?: true
199
241
  createdAt?: true
200
242
  }
201
243
 
@@ -219,6 +261,12 @@ export type SessionCountAggregateInputType = {
219
261
  model?: true
220
262
  toolCallsTotal?: true
221
263
  toolCallsJson?: true
264
+ skillCallsJson?: true
265
+ messageTimestamps?: true
266
+ apiErrors?: true
267
+ rateLimitErrors?: true
268
+ userInterruptions?: true
269
+ permissionModesJson?: true
222
270
  createdAt?: true
223
271
  _all?: true
224
272
  }
@@ -329,6 +377,12 @@ export type SessionGroupByOutputType = {
329
377
  model: string
330
378
  toolCallsTotal: number
331
379
  toolCallsJson: string
380
+ skillCallsJson: string
381
+ messageTimestamps: string
382
+ apiErrors: number
383
+ rateLimitErrors: number
384
+ userInterruptions: number
385
+ permissionModesJson: string
332
386
  createdAt: Date
333
387
  _count: SessionCountAggregateOutputType | null
334
388
  _avg: SessionAvgAggregateOutputType | null
@@ -375,6 +429,12 @@ export type SessionWhereInput = {
375
429
  model?: Prisma.StringFilter<"Session"> | string
376
430
  toolCallsTotal?: Prisma.IntFilter<"Session"> | number
377
431
  toolCallsJson?: Prisma.StringFilter<"Session"> | string
432
+ skillCallsJson?: Prisma.StringFilter<"Session"> | string
433
+ messageTimestamps?: Prisma.StringFilter<"Session"> | string
434
+ apiErrors?: Prisma.IntFilter<"Session"> | number
435
+ rateLimitErrors?: Prisma.IntFilter<"Session"> | number
436
+ userInterruptions?: Prisma.IntFilter<"Session"> | number
437
+ permissionModesJson?: Prisma.StringFilter<"Session"> | string
378
438
  createdAt?: Prisma.DateTimeFilter<"Session"> | Date | string
379
439
  }
380
440
 
@@ -398,6 +458,12 @@ export type SessionOrderByWithRelationInput = {
398
458
  model?: Prisma.SortOrder
399
459
  toolCallsTotal?: Prisma.SortOrder
400
460
  toolCallsJson?: Prisma.SortOrder
461
+ skillCallsJson?: Prisma.SortOrder
462
+ messageTimestamps?: Prisma.SortOrder
463
+ apiErrors?: Prisma.SortOrder
464
+ rateLimitErrors?: Prisma.SortOrder
465
+ userInterruptions?: Prisma.SortOrder
466
+ permissionModesJson?: Prisma.SortOrder
401
467
  createdAt?: Prisma.SortOrder
402
468
  }
403
469
 
@@ -424,6 +490,12 @@ export type SessionWhereUniqueInput = Prisma.AtLeast<{
424
490
  model?: Prisma.StringFilter<"Session"> | string
425
491
  toolCallsTotal?: Prisma.IntFilter<"Session"> | number
426
492
  toolCallsJson?: Prisma.StringFilter<"Session"> | string
493
+ skillCallsJson?: Prisma.StringFilter<"Session"> | string
494
+ messageTimestamps?: Prisma.StringFilter<"Session"> | string
495
+ apiErrors?: Prisma.IntFilter<"Session"> | number
496
+ rateLimitErrors?: Prisma.IntFilter<"Session"> | number
497
+ userInterruptions?: Prisma.IntFilter<"Session"> | number
498
+ permissionModesJson?: Prisma.StringFilter<"Session"> | string
427
499
  createdAt?: Prisma.DateTimeFilter<"Session"> | Date | string
428
500
  }, "id" | "sessionId">
429
501
 
@@ -447,6 +519,12 @@ export type SessionOrderByWithAggregationInput = {
447
519
  model?: Prisma.SortOrder
448
520
  toolCallsTotal?: Prisma.SortOrder
449
521
  toolCallsJson?: Prisma.SortOrder
522
+ skillCallsJson?: Prisma.SortOrder
523
+ messageTimestamps?: Prisma.SortOrder
524
+ apiErrors?: Prisma.SortOrder
525
+ rateLimitErrors?: Prisma.SortOrder
526
+ userInterruptions?: Prisma.SortOrder
527
+ permissionModesJson?: Prisma.SortOrder
450
528
  createdAt?: Prisma.SortOrder
451
529
  _count?: Prisma.SessionCountOrderByAggregateInput
452
530
  _avg?: Prisma.SessionAvgOrderByAggregateInput
@@ -478,6 +556,12 @@ export type SessionScalarWhereWithAggregatesInput = {
478
556
  model?: Prisma.StringWithAggregatesFilter<"Session"> | string
479
557
  toolCallsTotal?: Prisma.IntWithAggregatesFilter<"Session"> | number
480
558
  toolCallsJson?: Prisma.StringWithAggregatesFilter<"Session"> | string
559
+ skillCallsJson?: Prisma.StringWithAggregatesFilter<"Session"> | string
560
+ messageTimestamps?: Prisma.StringWithAggregatesFilter<"Session"> | string
561
+ apiErrors?: Prisma.IntWithAggregatesFilter<"Session"> | number
562
+ rateLimitErrors?: Prisma.IntWithAggregatesFilter<"Session"> | number
563
+ userInterruptions?: Prisma.IntWithAggregatesFilter<"Session"> | number
564
+ permissionModesJson?: Prisma.StringWithAggregatesFilter<"Session"> | string
481
565
  createdAt?: Prisma.DateTimeWithAggregatesFilter<"Session"> | Date | string
482
566
  }
483
567
 
@@ -501,6 +585,12 @@ export type SessionCreateInput = {
501
585
  model: string
502
586
  toolCallsTotal: number
503
587
  toolCallsJson: string
588
+ skillCallsJson?: string
589
+ messageTimestamps?: string
590
+ apiErrors?: number
591
+ rateLimitErrors?: number
592
+ userInterruptions?: number
593
+ permissionModesJson?: string
504
594
  createdAt?: Date | string
505
595
  }
506
596
 
@@ -524,6 +614,12 @@ export type SessionUncheckedCreateInput = {
524
614
  model: string
525
615
  toolCallsTotal: number
526
616
  toolCallsJson: string
617
+ skillCallsJson?: string
618
+ messageTimestamps?: string
619
+ apiErrors?: number
620
+ rateLimitErrors?: number
621
+ userInterruptions?: number
622
+ permissionModesJson?: string
527
623
  createdAt?: Date | string
528
624
  }
529
625
 
@@ -547,6 +643,12 @@ export type SessionUpdateInput = {
547
643
  model?: Prisma.StringFieldUpdateOperationsInput | string
548
644
  toolCallsTotal?: Prisma.IntFieldUpdateOperationsInput | number
549
645
  toolCallsJson?: Prisma.StringFieldUpdateOperationsInput | string
646
+ skillCallsJson?: Prisma.StringFieldUpdateOperationsInput | string
647
+ messageTimestamps?: Prisma.StringFieldUpdateOperationsInput | string
648
+ apiErrors?: Prisma.IntFieldUpdateOperationsInput | number
649
+ rateLimitErrors?: Prisma.IntFieldUpdateOperationsInput | number
650
+ userInterruptions?: Prisma.IntFieldUpdateOperationsInput | number
651
+ permissionModesJson?: Prisma.StringFieldUpdateOperationsInput | string
550
652
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
551
653
  }
552
654
 
@@ -570,6 +672,12 @@ export type SessionUncheckedUpdateInput = {
570
672
  model?: Prisma.StringFieldUpdateOperationsInput | string
571
673
  toolCallsTotal?: Prisma.IntFieldUpdateOperationsInput | number
572
674
  toolCallsJson?: Prisma.StringFieldUpdateOperationsInput | string
675
+ skillCallsJson?: Prisma.StringFieldUpdateOperationsInput | string
676
+ messageTimestamps?: Prisma.StringFieldUpdateOperationsInput | string
677
+ apiErrors?: Prisma.IntFieldUpdateOperationsInput | number
678
+ rateLimitErrors?: Prisma.IntFieldUpdateOperationsInput | number
679
+ userInterruptions?: Prisma.IntFieldUpdateOperationsInput | number
680
+ permissionModesJson?: Prisma.StringFieldUpdateOperationsInput | string
573
681
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
574
682
  }
575
683
 
@@ -593,6 +701,12 @@ export type SessionCreateManyInput = {
593
701
  model: string
594
702
  toolCallsTotal: number
595
703
  toolCallsJson: string
704
+ skillCallsJson?: string
705
+ messageTimestamps?: string
706
+ apiErrors?: number
707
+ rateLimitErrors?: number
708
+ userInterruptions?: number
709
+ permissionModesJson?: string
596
710
  createdAt?: Date | string
597
711
  }
598
712
 
@@ -616,6 +730,12 @@ export type SessionUpdateManyMutationInput = {
616
730
  model?: Prisma.StringFieldUpdateOperationsInput | string
617
731
  toolCallsTotal?: Prisma.IntFieldUpdateOperationsInput | number
618
732
  toolCallsJson?: Prisma.StringFieldUpdateOperationsInput | string
733
+ skillCallsJson?: Prisma.StringFieldUpdateOperationsInput | string
734
+ messageTimestamps?: Prisma.StringFieldUpdateOperationsInput | string
735
+ apiErrors?: Prisma.IntFieldUpdateOperationsInput | number
736
+ rateLimitErrors?: Prisma.IntFieldUpdateOperationsInput | number
737
+ userInterruptions?: Prisma.IntFieldUpdateOperationsInput | number
738
+ permissionModesJson?: Prisma.StringFieldUpdateOperationsInput | string
619
739
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
620
740
  }
621
741
 
@@ -639,6 +759,12 @@ export type SessionUncheckedUpdateManyInput = {
639
759
  model?: Prisma.StringFieldUpdateOperationsInput | string
640
760
  toolCallsTotal?: Prisma.IntFieldUpdateOperationsInput | number
641
761
  toolCallsJson?: Prisma.StringFieldUpdateOperationsInput | string
762
+ skillCallsJson?: Prisma.StringFieldUpdateOperationsInput | string
763
+ messageTimestamps?: Prisma.StringFieldUpdateOperationsInput | string
764
+ apiErrors?: Prisma.IntFieldUpdateOperationsInput | number
765
+ rateLimitErrors?: Prisma.IntFieldUpdateOperationsInput | number
766
+ userInterruptions?: Prisma.IntFieldUpdateOperationsInput | number
767
+ permissionModesJson?: Prisma.StringFieldUpdateOperationsInput | string
642
768
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
643
769
  }
644
770
 
@@ -662,6 +788,12 @@ export type SessionCountOrderByAggregateInput = {
662
788
  model?: Prisma.SortOrder
663
789
  toolCallsTotal?: Prisma.SortOrder
664
790
  toolCallsJson?: Prisma.SortOrder
791
+ skillCallsJson?: Prisma.SortOrder
792
+ messageTimestamps?: Prisma.SortOrder
793
+ apiErrors?: Prisma.SortOrder
794
+ rateLimitErrors?: Prisma.SortOrder
795
+ userInterruptions?: Prisma.SortOrder
796
+ permissionModesJson?: Prisma.SortOrder
665
797
  createdAt?: Prisma.SortOrder
666
798
  }
667
799
 
@@ -677,6 +809,9 @@ export type SessionAvgOrderByAggregateInput = {
677
809
  totalTokens?: Prisma.SortOrder
678
810
  costUSD?: Prisma.SortOrder
679
811
  toolCallsTotal?: Prisma.SortOrder
812
+ apiErrors?: Prisma.SortOrder
813
+ rateLimitErrors?: Prisma.SortOrder
814
+ userInterruptions?: Prisma.SortOrder
680
815
  }
681
816
 
682
817
  export type SessionMaxOrderByAggregateInput = {
@@ -699,6 +834,12 @@ export type SessionMaxOrderByAggregateInput = {
699
834
  model?: Prisma.SortOrder
700
835
  toolCallsTotal?: Prisma.SortOrder
701
836
  toolCallsJson?: Prisma.SortOrder
837
+ skillCallsJson?: Prisma.SortOrder
838
+ messageTimestamps?: Prisma.SortOrder
839
+ apiErrors?: Prisma.SortOrder
840
+ rateLimitErrors?: Prisma.SortOrder
841
+ userInterruptions?: Prisma.SortOrder
842
+ permissionModesJson?: Prisma.SortOrder
702
843
  createdAt?: Prisma.SortOrder
703
844
  }
704
845
 
@@ -722,6 +863,12 @@ export type SessionMinOrderByAggregateInput = {
722
863
  model?: Prisma.SortOrder
723
864
  toolCallsTotal?: Prisma.SortOrder
724
865
  toolCallsJson?: Prisma.SortOrder
866
+ skillCallsJson?: Prisma.SortOrder
867
+ messageTimestamps?: Prisma.SortOrder
868
+ apiErrors?: Prisma.SortOrder
869
+ rateLimitErrors?: Prisma.SortOrder
870
+ userInterruptions?: Prisma.SortOrder
871
+ permissionModesJson?: Prisma.SortOrder
725
872
  createdAt?: Prisma.SortOrder
726
873
  }
727
874
 
@@ -737,6 +884,9 @@ export type SessionSumOrderByAggregateInput = {
737
884
  totalTokens?: Prisma.SortOrder
738
885
  costUSD?: Prisma.SortOrder
739
886
  toolCallsTotal?: Prisma.SortOrder
887
+ apiErrors?: Prisma.SortOrder
888
+ rateLimitErrors?: Prisma.SortOrder
889
+ userInterruptions?: Prisma.SortOrder
740
890
  }
741
891
 
742
892
  export type StringFieldUpdateOperationsInput = {
@@ -785,6 +935,12 @@ export type SessionSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs
785
935
  model?: boolean
786
936
  toolCallsTotal?: boolean
787
937
  toolCallsJson?: boolean
938
+ skillCallsJson?: boolean
939
+ messageTimestamps?: boolean
940
+ apiErrors?: boolean
941
+ rateLimitErrors?: boolean
942
+ userInterruptions?: boolean
943
+ permissionModesJson?: boolean
788
944
  createdAt?: boolean
789
945
  }, ExtArgs["result"]["session"]>
790
946
 
@@ -808,6 +964,12 @@ export type SessionSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Exten
808
964
  model?: boolean
809
965
  toolCallsTotal?: boolean
810
966
  toolCallsJson?: boolean
967
+ skillCallsJson?: boolean
968
+ messageTimestamps?: boolean
969
+ apiErrors?: boolean
970
+ rateLimitErrors?: boolean
971
+ userInterruptions?: boolean
972
+ permissionModesJson?: boolean
811
973
  createdAt?: boolean
812
974
  }, ExtArgs["result"]["session"]>
813
975
 
@@ -831,6 +993,12 @@ export type SessionSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Exten
831
993
  model?: boolean
832
994
  toolCallsTotal?: boolean
833
995
  toolCallsJson?: boolean
996
+ skillCallsJson?: boolean
997
+ messageTimestamps?: boolean
998
+ apiErrors?: boolean
999
+ rateLimitErrors?: boolean
1000
+ userInterruptions?: boolean
1001
+ permissionModesJson?: boolean
834
1002
  createdAt?: boolean
835
1003
  }, ExtArgs["result"]["session"]>
836
1004
 
@@ -854,10 +1022,16 @@ export type SessionSelectScalar = {
854
1022
  model?: boolean
855
1023
  toolCallsTotal?: boolean
856
1024
  toolCallsJson?: boolean
1025
+ skillCallsJson?: boolean
1026
+ messageTimestamps?: boolean
1027
+ apiErrors?: boolean
1028
+ rateLimitErrors?: boolean
1029
+ userInterruptions?: boolean
1030
+ permissionModesJson?: boolean
857
1031
  createdAt?: boolean
858
1032
  }
859
1033
 
860
- export type SessionOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "sessionId" | "project" | "projectPath" | "startTime" | "endTime" | "durationMinutes" | "userMessages" | "assistantMessages" | "totalMessages" | "inputTokens" | "outputTokens" | "cacheCreationTokens" | "cacheReadTokens" | "totalTokens" | "costUSD" | "model" | "toolCallsTotal" | "toolCallsJson" | "createdAt", ExtArgs["result"]["session"]>
1034
+ export type SessionOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "sessionId" | "project" | "projectPath" | "startTime" | "endTime" | "durationMinutes" | "userMessages" | "assistantMessages" | "totalMessages" | "inputTokens" | "outputTokens" | "cacheCreationTokens" | "cacheReadTokens" | "totalTokens" | "costUSD" | "model" | "toolCallsTotal" | "toolCallsJson" | "skillCallsJson" | "messageTimestamps" | "apiErrors" | "rateLimitErrors" | "userInterruptions" | "permissionModesJson" | "createdAt", ExtArgs["result"]["session"]>
861
1035
 
862
1036
  export type $SessionPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
863
1037
  name: "Session"
@@ -882,6 +1056,12 @@ export type $SessionPayload<ExtArgs extends runtime.Types.Extensions.InternalArg
882
1056
  model: string
883
1057
  toolCallsTotal: number
884
1058
  toolCallsJson: string
1059
+ skillCallsJson: string
1060
+ messageTimestamps: string
1061
+ apiErrors: number
1062
+ rateLimitErrors: number
1063
+ userInterruptions: number
1064
+ permissionModesJson: string
885
1065
  createdAt: Date
886
1066
  }, ExtArgs["result"]["session"]>
887
1067
  composites: {}
@@ -1325,6 +1505,12 @@ export interface SessionFieldRefs {
1325
1505
  readonly model: Prisma.FieldRef<"Session", 'String'>
1326
1506
  readonly toolCallsTotal: Prisma.FieldRef<"Session", 'Int'>
1327
1507
  readonly toolCallsJson: Prisma.FieldRef<"Session", 'String'>
1508
+ readonly skillCallsJson: Prisma.FieldRef<"Session", 'String'>
1509
+ readonly messageTimestamps: Prisma.FieldRef<"Session", 'String'>
1510
+ readonly apiErrors: Prisma.FieldRef<"Session", 'Int'>
1511
+ readonly rateLimitErrors: Prisma.FieldRef<"Session", 'Int'>
1512
+ readonly userInterruptions: Prisma.FieldRef<"Session", 'Int'>
1513
+ readonly permissionModesJson: Prisma.FieldRef<"Session", 'String'>
1328
1514
  readonly createdAt: Prisma.FieldRef<"Session", 'DateTime'>
1329
1515
  }
1330
1516
 
@@ -11,4 +11,5 @@
11
11
  export type * from './models/Session'
12
12
  export type * from './models/Image'
13
13
  export type * from './models/SyncLog'
14
+ export type * from './models/Report'
14
15
  export type * from './commonInputTypes'