agentfit 0.1.0 → 0.1.2
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/.github/workflows/release.yml +111 -0
- package/README.md +41 -38
- package/app/(dashboard)/daily/page.tsx +1 -1
- package/app/(dashboard)/data-management/page.tsx +180 -0
- package/app/(dashboard)/flow/page.tsx +17 -0
- package/app/(dashboard)/layout.tsx +2 -0
- package/app/(dashboard)/page.tsx +24 -5
- package/app/(dashboard)/reports/[id]/page.tsx +72 -0
- package/app/(dashboard)/reports/page.tsx +132 -0
- package/app/(dashboard)/sessions/[id]/page.tsx +167 -0
- package/app/api/backup/route.ts +215 -0
- package/app/api/check/route.ts +11 -1
- package/app/api/command-insights/route.ts +13 -0
- package/app/api/commands/route.ts +55 -1
- package/app/api/images-analysis/route.ts +3 -4
- package/app/api/reports/[id]/route.ts +23 -0
- package/app/api/reports/route.ts +50 -0
- package/app/api/reset/route.ts +21 -0
- package/app/api/session/route.ts +40 -0
- package/app/api/usage/route.ts +26 -1
- package/app/layout.tsx +1 -1
- package/bin/agentfit.mjs +2 -2
- package/components/agent-coach.tsx +256 -129
- package/components/app-sidebar.tsx +45 -10
- package/components/backup-section.tsx +236 -0
- package/components/daily-chart.tsx +447 -83
- package/components/dashboard-shell.tsx +29 -31
- package/components/data-provider.tsx +88 -8
- package/components/fitness-score.tsx +95 -54
- package/components/overview-cards.tsx +148 -41
- package/components/report-view.tsx +307 -0
- package/components/screenshots-analysis.tsx +51 -46
- package/components/session-chatlog.tsx +124 -0
- package/components/session-timeline.tsx +184 -0
- package/components/session-workflow.tsx +183 -0
- package/components/sessions-table.tsx +9 -1
- package/components/tool-flow-graph.tsx +144 -0
- package/components/ui/carousel.tsx +242 -0
- package/components/ui/sidebar.tsx +1 -1
- package/components/ui/sonner.tsx +51 -0
- package/electron/entitlements.mac.plist +16 -0
- package/electron/init-db.mjs +37 -0
- package/electron/main.mjs +203 -0
- package/generated/prisma/browser.ts +5 -0
- package/generated/prisma/client.ts +5 -0
- package/generated/prisma/internal/class.ts +14 -4
- package/generated/prisma/internal/prismaNamespace.ts +97 -2
- package/generated/prisma/internal/prismaNamespaceBrowser.ts +21 -1
- package/generated/prisma/models/Report.ts +1219 -0
- package/generated/prisma/models/Session.ts +221 -1
- package/generated/prisma/models.ts +1 -0
- package/lib/coach.ts +571 -211
- package/lib/command-insights.ts +231 -0
- package/lib/db.ts +2 -2
- package/lib/parse-codex.ts +6 -0
- package/lib/parse-logs.ts +80 -1
- package/lib/queries-codex.ts +24 -0
- package/lib/queries.ts +45 -0
- package/lib/report.ts +156 -0
- package/lib/session-detail.ts +382 -0
- package/lib/sync.ts +87 -0
- package/lib/tool-flow.ts +71 -0
- package/next.config.mjs +6 -1
- package/package.json +17 -2
- package/plugins/cost-heatmap/component.tsx +72 -50
- package/prisma/migrations/20260401144555_add_system_prompt_edits/migration.sql +80 -0
- package/prisma/schema.prisma +18 -0
- package/prisma/schema.sql +81 -0
- package/.claude/settings.local.json +0 -26
- package/CONTRIBUTING.md +0 -209
- package/prisma/migrations/20260328152517_init/migration.sql +0 -41
- package/prisma/migrations/20260328153801_add_image_model/migration.sql +0 -18
- package/prisma.config.ts +0 -14
- package/setup.sh +0 -73
|
@@ -38,6 +38,10 @@ 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
|
|
44
|
+
systemPromptEdits: number | null
|
|
41
45
|
}
|
|
42
46
|
|
|
43
47
|
export type SessionSumAggregateOutputType = {
|
|
@@ -52,6 +56,10 @@ export type SessionSumAggregateOutputType = {
|
|
|
52
56
|
totalTokens: number | null
|
|
53
57
|
costUSD: number | null
|
|
54
58
|
toolCallsTotal: number | null
|
|
59
|
+
apiErrors: number | null
|
|
60
|
+
rateLimitErrors: number | null
|
|
61
|
+
userInterruptions: number | null
|
|
62
|
+
systemPromptEdits: number | null
|
|
55
63
|
}
|
|
56
64
|
|
|
57
65
|
export type SessionMinAggregateOutputType = {
|
|
@@ -74,6 +82,13 @@ export type SessionMinAggregateOutputType = {
|
|
|
74
82
|
model: string | null
|
|
75
83
|
toolCallsTotal: number | null
|
|
76
84
|
toolCallsJson: string | null
|
|
85
|
+
skillCallsJson: string | null
|
|
86
|
+
messageTimestamps: string | null
|
|
87
|
+
apiErrors: number | null
|
|
88
|
+
rateLimitErrors: number | null
|
|
89
|
+
userInterruptions: number | null
|
|
90
|
+
permissionModesJson: string | null
|
|
91
|
+
systemPromptEdits: number | null
|
|
77
92
|
createdAt: Date | null
|
|
78
93
|
}
|
|
79
94
|
|
|
@@ -97,6 +112,13 @@ export type SessionMaxAggregateOutputType = {
|
|
|
97
112
|
model: string | null
|
|
98
113
|
toolCallsTotal: number | null
|
|
99
114
|
toolCallsJson: string | null
|
|
115
|
+
skillCallsJson: string | null
|
|
116
|
+
messageTimestamps: string | null
|
|
117
|
+
apiErrors: number | null
|
|
118
|
+
rateLimitErrors: number | null
|
|
119
|
+
userInterruptions: number | null
|
|
120
|
+
permissionModesJson: string | null
|
|
121
|
+
systemPromptEdits: number | null
|
|
100
122
|
createdAt: Date | null
|
|
101
123
|
}
|
|
102
124
|
|
|
@@ -120,6 +142,13 @@ export type SessionCountAggregateOutputType = {
|
|
|
120
142
|
model: number
|
|
121
143
|
toolCallsTotal: number
|
|
122
144
|
toolCallsJson: number
|
|
145
|
+
skillCallsJson: number
|
|
146
|
+
messageTimestamps: number
|
|
147
|
+
apiErrors: number
|
|
148
|
+
rateLimitErrors: number
|
|
149
|
+
userInterruptions: number
|
|
150
|
+
permissionModesJson: number
|
|
151
|
+
systemPromptEdits: number
|
|
123
152
|
createdAt: number
|
|
124
153
|
_all: number
|
|
125
154
|
}
|
|
@@ -137,6 +166,10 @@ export type SessionAvgAggregateInputType = {
|
|
|
137
166
|
totalTokens?: true
|
|
138
167
|
costUSD?: true
|
|
139
168
|
toolCallsTotal?: true
|
|
169
|
+
apiErrors?: true
|
|
170
|
+
rateLimitErrors?: true
|
|
171
|
+
userInterruptions?: true
|
|
172
|
+
systemPromptEdits?: true
|
|
140
173
|
}
|
|
141
174
|
|
|
142
175
|
export type SessionSumAggregateInputType = {
|
|
@@ -151,6 +184,10 @@ export type SessionSumAggregateInputType = {
|
|
|
151
184
|
totalTokens?: true
|
|
152
185
|
costUSD?: true
|
|
153
186
|
toolCallsTotal?: true
|
|
187
|
+
apiErrors?: true
|
|
188
|
+
rateLimitErrors?: true
|
|
189
|
+
userInterruptions?: true
|
|
190
|
+
systemPromptEdits?: true
|
|
154
191
|
}
|
|
155
192
|
|
|
156
193
|
export type SessionMinAggregateInputType = {
|
|
@@ -173,6 +210,13 @@ export type SessionMinAggregateInputType = {
|
|
|
173
210
|
model?: true
|
|
174
211
|
toolCallsTotal?: true
|
|
175
212
|
toolCallsJson?: true
|
|
213
|
+
skillCallsJson?: true
|
|
214
|
+
messageTimestamps?: true
|
|
215
|
+
apiErrors?: true
|
|
216
|
+
rateLimitErrors?: true
|
|
217
|
+
userInterruptions?: true
|
|
218
|
+
permissionModesJson?: true
|
|
219
|
+
systemPromptEdits?: true
|
|
176
220
|
createdAt?: true
|
|
177
221
|
}
|
|
178
222
|
|
|
@@ -196,6 +240,13 @@ export type SessionMaxAggregateInputType = {
|
|
|
196
240
|
model?: true
|
|
197
241
|
toolCallsTotal?: true
|
|
198
242
|
toolCallsJson?: true
|
|
243
|
+
skillCallsJson?: true
|
|
244
|
+
messageTimestamps?: true
|
|
245
|
+
apiErrors?: true
|
|
246
|
+
rateLimitErrors?: true
|
|
247
|
+
userInterruptions?: true
|
|
248
|
+
permissionModesJson?: true
|
|
249
|
+
systemPromptEdits?: true
|
|
199
250
|
createdAt?: true
|
|
200
251
|
}
|
|
201
252
|
|
|
@@ -219,6 +270,13 @@ export type SessionCountAggregateInputType = {
|
|
|
219
270
|
model?: true
|
|
220
271
|
toolCallsTotal?: true
|
|
221
272
|
toolCallsJson?: true
|
|
273
|
+
skillCallsJson?: true
|
|
274
|
+
messageTimestamps?: true
|
|
275
|
+
apiErrors?: true
|
|
276
|
+
rateLimitErrors?: true
|
|
277
|
+
userInterruptions?: true
|
|
278
|
+
permissionModesJson?: true
|
|
279
|
+
systemPromptEdits?: true
|
|
222
280
|
createdAt?: true
|
|
223
281
|
_all?: true
|
|
224
282
|
}
|
|
@@ -329,6 +387,13 @@ export type SessionGroupByOutputType = {
|
|
|
329
387
|
model: string
|
|
330
388
|
toolCallsTotal: number
|
|
331
389
|
toolCallsJson: string
|
|
390
|
+
skillCallsJson: string
|
|
391
|
+
messageTimestamps: string
|
|
392
|
+
apiErrors: number
|
|
393
|
+
rateLimitErrors: number
|
|
394
|
+
userInterruptions: number
|
|
395
|
+
permissionModesJson: string
|
|
396
|
+
systemPromptEdits: number
|
|
332
397
|
createdAt: Date
|
|
333
398
|
_count: SessionCountAggregateOutputType | null
|
|
334
399
|
_avg: SessionAvgAggregateOutputType | null
|
|
@@ -375,6 +440,13 @@ export type SessionWhereInput = {
|
|
|
375
440
|
model?: Prisma.StringFilter<"Session"> | string
|
|
376
441
|
toolCallsTotal?: Prisma.IntFilter<"Session"> | number
|
|
377
442
|
toolCallsJson?: Prisma.StringFilter<"Session"> | string
|
|
443
|
+
skillCallsJson?: Prisma.StringFilter<"Session"> | string
|
|
444
|
+
messageTimestamps?: Prisma.StringFilter<"Session"> | string
|
|
445
|
+
apiErrors?: Prisma.IntFilter<"Session"> | number
|
|
446
|
+
rateLimitErrors?: Prisma.IntFilter<"Session"> | number
|
|
447
|
+
userInterruptions?: Prisma.IntFilter<"Session"> | number
|
|
448
|
+
permissionModesJson?: Prisma.StringFilter<"Session"> | string
|
|
449
|
+
systemPromptEdits?: Prisma.IntFilter<"Session"> | number
|
|
378
450
|
createdAt?: Prisma.DateTimeFilter<"Session"> | Date | string
|
|
379
451
|
}
|
|
380
452
|
|
|
@@ -398,6 +470,13 @@ export type SessionOrderByWithRelationInput = {
|
|
|
398
470
|
model?: Prisma.SortOrder
|
|
399
471
|
toolCallsTotal?: Prisma.SortOrder
|
|
400
472
|
toolCallsJson?: Prisma.SortOrder
|
|
473
|
+
skillCallsJson?: Prisma.SortOrder
|
|
474
|
+
messageTimestamps?: Prisma.SortOrder
|
|
475
|
+
apiErrors?: Prisma.SortOrder
|
|
476
|
+
rateLimitErrors?: Prisma.SortOrder
|
|
477
|
+
userInterruptions?: Prisma.SortOrder
|
|
478
|
+
permissionModesJson?: Prisma.SortOrder
|
|
479
|
+
systemPromptEdits?: Prisma.SortOrder
|
|
401
480
|
createdAt?: Prisma.SortOrder
|
|
402
481
|
}
|
|
403
482
|
|
|
@@ -424,6 +503,13 @@ export type SessionWhereUniqueInput = Prisma.AtLeast<{
|
|
|
424
503
|
model?: Prisma.StringFilter<"Session"> | string
|
|
425
504
|
toolCallsTotal?: Prisma.IntFilter<"Session"> | number
|
|
426
505
|
toolCallsJson?: Prisma.StringFilter<"Session"> | string
|
|
506
|
+
skillCallsJson?: Prisma.StringFilter<"Session"> | string
|
|
507
|
+
messageTimestamps?: Prisma.StringFilter<"Session"> | string
|
|
508
|
+
apiErrors?: Prisma.IntFilter<"Session"> | number
|
|
509
|
+
rateLimitErrors?: Prisma.IntFilter<"Session"> | number
|
|
510
|
+
userInterruptions?: Prisma.IntFilter<"Session"> | number
|
|
511
|
+
permissionModesJson?: Prisma.StringFilter<"Session"> | string
|
|
512
|
+
systemPromptEdits?: Prisma.IntFilter<"Session"> | number
|
|
427
513
|
createdAt?: Prisma.DateTimeFilter<"Session"> | Date | string
|
|
428
514
|
}, "id" | "sessionId">
|
|
429
515
|
|
|
@@ -447,6 +533,13 @@ export type SessionOrderByWithAggregationInput = {
|
|
|
447
533
|
model?: Prisma.SortOrder
|
|
448
534
|
toolCallsTotal?: Prisma.SortOrder
|
|
449
535
|
toolCallsJson?: Prisma.SortOrder
|
|
536
|
+
skillCallsJson?: Prisma.SortOrder
|
|
537
|
+
messageTimestamps?: Prisma.SortOrder
|
|
538
|
+
apiErrors?: Prisma.SortOrder
|
|
539
|
+
rateLimitErrors?: Prisma.SortOrder
|
|
540
|
+
userInterruptions?: Prisma.SortOrder
|
|
541
|
+
permissionModesJson?: Prisma.SortOrder
|
|
542
|
+
systemPromptEdits?: Prisma.SortOrder
|
|
450
543
|
createdAt?: Prisma.SortOrder
|
|
451
544
|
_count?: Prisma.SessionCountOrderByAggregateInput
|
|
452
545
|
_avg?: Prisma.SessionAvgOrderByAggregateInput
|
|
@@ -478,6 +571,13 @@ export type SessionScalarWhereWithAggregatesInput = {
|
|
|
478
571
|
model?: Prisma.StringWithAggregatesFilter<"Session"> | string
|
|
479
572
|
toolCallsTotal?: Prisma.IntWithAggregatesFilter<"Session"> | number
|
|
480
573
|
toolCallsJson?: Prisma.StringWithAggregatesFilter<"Session"> | string
|
|
574
|
+
skillCallsJson?: Prisma.StringWithAggregatesFilter<"Session"> | string
|
|
575
|
+
messageTimestamps?: Prisma.StringWithAggregatesFilter<"Session"> | string
|
|
576
|
+
apiErrors?: Prisma.IntWithAggregatesFilter<"Session"> | number
|
|
577
|
+
rateLimitErrors?: Prisma.IntWithAggregatesFilter<"Session"> | number
|
|
578
|
+
userInterruptions?: Prisma.IntWithAggregatesFilter<"Session"> | number
|
|
579
|
+
permissionModesJson?: Prisma.StringWithAggregatesFilter<"Session"> | string
|
|
580
|
+
systemPromptEdits?: Prisma.IntWithAggregatesFilter<"Session"> | number
|
|
481
581
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<"Session"> | Date | string
|
|
482
582
|
}
|
|
483
583
|
|
|
@@ -501,6 +601,13 @@ export type SessionCreateInput = {
|
|
|
501
601
|
model: string
|
|
502
602
|
toolCallsTotal: number
|
|
503
603
|
toolCallsJson: string
|
|
604
|
+
skillCallsJson?: string
|
|
605
|
+
messageTimestamps?: string
|
|
606
|
+
apiErrors?: number
|
|
607
|
+
rateLimitErrors?: number
|
|
608
|
+
userInterruptions?: number
|
|
609
|
+
permissionModesJson?: string
|
|
610
|
+
systemPromptEdits?: number
|
|
504
611
|
createdAt?: Date | string
|
|
505
612
|
}
|
|
506
613
|
|
|
@@ -524,6 +631,13 @@ export type SessionUncheckedCreateInput = {
|
|
|
524
631
|
model: string
|
|
525
632
|
toolCallsTotal: number
|
|
526
633
|
toolCallsJson: string
|
|
634
|
+
skillCallsJson?: string
|
|
635
|
+
messageTimestamps?: string
|
|
636
|
+
apiErrors?: number
|
|
637
|
+
rateLimitErrors?: number
|
|
638
|
+
userInterruptions?: number
|
|
639
|
+
permissionModesJson?: string
|
|
640
|
+
systemPromptEdits?: number
|
|
527
641
|
createdAt?: Date | string
|
|
528
642
|
}
|
|
529
643
|
|
|
@@ -547,6 +661,13 @@ export type SessionUpdateInput = {
|
|
|
547
661
|
model?: Prisma.StringFieldUpdateOperationsInput | string
|
|
548
662
|
toolCallsTotal?: Prisma.IntFieldUpdateOperationsInput | number
|
|
549
663
|
toolCallsJson?: Prisma.StringFieldUpdateOperationsInput | string
|
|
664
|
+
skillCallsJson?: Prisma.StringFieldUpdateOperationsInput | string
|
|
665
|
+
messageTimestamps?: Prisma.StringFieldUpdateOperationsInput | string
|
|
666
|
+
apiErrors?: Prisma.IntFieldUpdateOperationsInput | number
|
|
667
|
+
rateLimitErrors?: Prisma.IntFieldUpdateOperationsInput | number
|
|
668
|
+
userInterruptions?: Prisma.IntFieldUpdateOperationsInput | number
|
|
669
|
+
permissionModesJson?: Prisma.StringFieldUpdateOperationsInput | string
|
|
670
|
+
systemPromptEdits?: Prisma.IntFieldUpdateOperationsInput | number
|
|
550
671
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
551
672
|
}
|
|
552
673
|
|
|
@@ -570,6 +691,13 @@ export type SessionUncheckedUpdateInput = {
|
|
|
570
691
|
model?: Prisma.StringFieldUpdateOperationsInput | string
|
|
571
692
|
toolCallsTotal?: Prisma.IntFieldUpdateOperationsInput | number
|
|
572
693
|
toolCallsJson?: Prisma.StringFieldUpdateOperationsInput | string
|
|
694
|
+
skillCallsJson?: Prisma.StringFieldUpdateOperationsInput | string
|
|
695
|
+
messageTimestamps?: Prisma.StringFieldUpdateOperationsInput | string
|
|
696
|
+
apiErrors?: Prisma.IntFieldUpdateOperationsInput | number
|
|
697
|
+
rateLimitErrors?: Prisma.IntFieldUpdateOperationsInput | number
|
|
698
|
+
userInterruptions?: Prisma.IntFieldUpdateOperationsInput | number
|
|
699
|
+
permissionModesJson?: Prisma.StringFieldUpdateOperationsInput | string
|
|
700
|
+
systemPromptEdits?: Prisma.IntFieldUpdateOperationsInput | number
|
|
573
701
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
574
702
|
}
|
|
575
703
|
|
|
@@ -593,6 +721,13 @@ export type SessionCreateManyInput = {
|
|
|
593
721
|
model: string
|
|
594
722
|
toolCallsTotal: number
|
|
595
723
|
toolCallsJson: string
|
|
724
|
+
skillCallsJson?: string
|
|
725
|
+
messageTimestamps?: string
|
|
726
|
+
apiErrors?: number
|
|
727
|
+
rateLimitErrors?: number
|
|
728
|
+
userInterruptions?: number
|
|
729
|
+
permissionModesJson?: string
|
|
730
|
+
systemPromptEdits?: number
|
|
596
731
|
createdAt?: Date | string
|
|
597
732
|
}
|
|
598
733
|
|
|
@@ -616,6 +751,13 @@ export type SessionUpdateManyMutationInput = {
|
|
|
616
751
|
model?: Prisma.StringFieldUpdateOperationsInput | string
|
|
617
752
|
toolCallsTotal?: Prisma.IntFieldUpdateOperationsInput | number
|
|
618
753
|
toolCallsJson?: Prisma.StringFieldUpdateOperationsInput | string
|
|
754
|
+
skillCallsJson?: Prisma.StringFieldUpdateOperationsInput | string
|
|
755
|
+
messageTimestamps?: Prisma.StringFieldUpdateOperationsInput | string
|
|
756
|
+
apiErrors?: Prisma.IntFieldUpdateOperationsInput | number
|
|
757
|
+
rateLimitErrors?: Prisma.IntFieldUpdateOperationsInput | number
|
|
758
|
+
userInterruptions?: Prisma.IntFieldUpdateOperationsInput | number
|
|
759
|
+
permissionModesJson?: Prisma.StringFieldUpdateOperationsInput | string
|
|
760
|
+
systemPromptEdits?: Prisma.IntFieldUpdateOperationsInput | number
|
|
619
761
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
620
762
|
}
|
|
621
763
|
|
|
@@ -639,6 +781,13 @@ export type SessionUncheckedUpdateManyInput = {
|
|
|
639
781
|
model?: Prisma.StringFieldUpdateOperationsInput | string
|
|
640
782
|
toolCallsTotal?: Prisma.IntFieldUpdateOperationsInput | number
|
|
641
783
|
toolCallsJson?: Prisma.StringFieldUpdateOperationsInput | string
|
|
784
|
+
skillCallsJson?: Prisma.StringFieldUpdateOperationsInput | string
|
|
785
|
+
messageTimestamps?: Prisma.StringFieldUpdateOperationsInput | string
|
|
786
|
+
apiErrors?: Prisma.IntFieldUpdateOperationsInput | number
|
|
787
|
+
rateLimitErrors?: Prisma.IntFieldUpdateOperationsInput | number
|
|
788
|
+
userInterruptions?: Prisma.IntFieldUpdateOperationsInput | number
|
|
789
|
+
permissionModesJson?: Prisma.StringFieldUpdateOperationsInput | string
|
|
790
|
+
systemPromptEdits?: Prisma.IntFieldUpdateOperationsInput | number
|
|
642
791
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
643
792
|
}
|
|
644
793
|
|
|
@@ -662,6 +811,13 @@ export type SessionCountOrderByAggregateInput = {
|
|
|
662
811
|
model?: Prisma.SortOrder
|
|
663
812
|
toolCallsTotal?: Prisma.SortOrder
|
|
664
813
|
toolCallsJson?: Prisma.SortOrder
|
|
814
|
+
skillCallsJson?: Prisma.SortOrder
|
|
815
|
+
messageTimestamps?: Prisma.SortOrder
|
|
816
|
+
apiErrors?: Prisma.SortOrder
|
|
817
|
+
rateLimitErrors?: Prisma.SortOrder
|
|
818
|
+
userInterruptions?: Prisma.SortOrder
|
|
819
|
+
permissionModesJson?: Prisma.SortOrder
|
|
820
|
+
systemPromptEdits?: Prisma.SortOrder
|
|
665
821
|
createdAt?: Prisma.SortOrder
|
|
666
822
|
}
|
|
667
823
|
|
|
@@ -677,6 +833,10 @@ export type SessionAvgOrderByAggregateInput = {
|
|
|
677
833
|
totalTokens?: Prisma.SortOrder
|
|
678
834
|
costUSD?: Prisma.SortOrder
|
|
679
835
|
toolCallsTotal?: Prisma.SortOrder
|
|
836
|
+
apiErrors?: Prisma.SortOrder
|
|
837
|
+
rateLimitErrors?: Prisma.SortOrder
|
|
838
|
+
userInterruptions?: Prisma.SortOrder
|
|
839
|
+
systemPromptEdits?: Prisma.SortOrder
|
|
680
840
|
}
|
|
681
841
|
|
|
682
842
|
export type SessionMaxOrderByAggregateInput = {
|
|
@@ -699,6 +859,13 @@ export type SessionMaxOrderByAggregateInput = {
|
|
|
699
859
|
model?: Prisma.SortOrder
|
|
700
860
|
toolCallsTotal?: Prisma.SortOrder
|
|
701
861
|
toolCallsJson?: Prisma.SortOrder
|
|
862
|
+
skillCallsJson?: Prisma.SortOrder
|
|
863
|
+
messageTimestamps?: Prisma.SortOrder
|
|
864
|
+
apiErrors?: Prisma.SortOrder
|
|
865
|
+
rateLimitErrors?: Prisma.SortOrder
|
|
866
|
+
userInterruptions?: Prisma.SortOrder
|
|
867
|
+
permissionModesJson?: Prisma.SortOrder
|
|
868
|
+
systemPromptEdits?: Prisma.SortOrder
|
|
702
869
|
createdAt?: Prisma.SortOrder
|
|
703
870
|
}
|
|
704
871
|
|
|
@@ -722,6 +889,13 @@ export type SessionMinOrderByAggregateInput = {
|
|
|
722
889
|
model?: Prisma.SortOrder
|
|
723
890
|
toolCallsTotal?: Prisma.SortOrder
|
|
724
891
|
toolCallsJson?: Prisma.SortOrder
|
|
892
|
+
skillCallsJson?: Prisma.SortOrder
|
|
893
|
+
messageTimestamps?: Prisma.SortOrder
|
|
894
|
+
apiErrors?: Prisma.SortOrder
|
|
895
|
+
rateLimitErrors?: Prisma.SortOrder
|
|
896
|
+
userInterruptions?: Prisma.SortOrder
|
|
897
|
+
permissionModesJson?: Prisma.SortOrder
|
|
898
|
+
systemPromptEdits?: Prisma.SortOrder
|
|
725
899
|
createdAt?: Prisma.SortOrder
|
|
726
900
|
}
|
|
727
901
|
|
|
@@ -737,6 +911,10 @@ export type SessionSumOrderByAggregateInput = {
|
|
|
737
911
|
totalTokens?: Prisma.SortOrder
|
|
738
912
|
costUSD?: Prisma.SortOrder
|
|
739
913
|
toolCallsTotal?: Prisma.SortOrder
|
|
914
|
+
apiErrors?: Prisma.SortOrder
|
|
915
|
+
rateLimitErrors?: Prisma.SortOrder
|
|
916
|
+
userInterruptions?: Prisma.SortOrder
|
|
917
|
+
systemPromptEdits?: Prisma.SortOrder
|
|
740
918
|
}
|
|
741
919
|
|
|
742
920
|
export type StringFieldUpdateOperationsInput = {
|
|
@@ -785,6 +963,13 @@ export type SessionSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs
|
|
|
785
963
|
model?: boolean
|
|
786
964
|
toolCallsTotal?: boolean
|
|
787
965
|
toolCallsJson?: boolean
|
|
966
|
+
skillCallsJson?: boolean
|
|
967
|
+
messageTimestamps?: boolean
|
|
968
|
+
apiErrors?: boolean
|
|
969
|
+
rateLimitErrors?: boolean
|
|
970
|
+
userInterruptions?: boolean
|
|
971
|
+
permissionModesJson?: boolean
|
|
972
|
+
systemPromptEdits?: boolean
|
|
788
973
|
createdAt?: boolean
|
|
789
974
|
}, ExtArgs["result"]["session"]>
|
|
790
975
|
|
|
@@ -808,6 +993,13 @@ export type SessionSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Exten
|
|
|
808
993
|
model?: boolean
|
|
809
994
|
toolCallsTotal?: boolean
|
|
810
995
|
toolCallsJson?: boolean
|
|
996
|
+
skillCallsJson?: boolean
|
|
997
|
+
messageTimestamps?: boolean
|
|
998
|
+
apiErrors?: boolean
|
|
999
|
+
rateLimitErrors?: boolean
|
|
1000
|
+
userInterruptions?: boolean
|
|
1001
|
+
permissionModesJson?: boolean
|
|
1002
|
+
systemPromptEdits?: boolean
|
|
811
1003
|
createdAt?: boolean
|
|
812
1004
|
}, ExtArgs["result"]["session"]>
|
|
813
1005
|
|
|
@@ -831,6 +1023,13 @@ export type SessionSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Exten
|
|
|
831
1023
|
model?: boolean
|
|
832
1024
|
toolCallsTotal?: boolean
|
|
833
1025
|
toolCallsJson?: boolean
|
|
1026
|
+
skillCallsJson?: boolean
|
|
1027
|
+
messageTimestamps?: boolean
|
|
1028
|
+
apiErrors?: boolean
|
|
1029
|
+
rateLimitErrors?: boolean
|
|
1030
|
+
userInterruptions?: boolean
|
|
1031
|
+
permissionModesJson?: boolean
|
|
1032
|
+
systemPromptEdits?: boolean
|
|
834
1033
|
createdAt?: boolean
|
|
835
1034
|
}, ExtArgs["result"]["session"]>
|
|
836
1035
|
|
|
@@ -854,10 +1053,17 @@ export type SessionSelectScalar = {
|
|
|
854
1053
|
model?: boolean
|
|
855
1054
|
toolCallsTotal?: boolean
|
|
856
1055
|
toolCallsJson?: boolean
|
|
1056
|
+
skillCallsJson?: boolean
|
|
1057
|
+
messageTimestamps?: boolean
|
|
1058
|
+
apiErrors?: boolean
|
|
1059
|
+
rateLimitErrors?: boolean
|
|
1060
|
+
userInterruptions?: boolean
|
|
1061
|
+
permissionModesJson?: boolean
|
|
1062
|
+
systemPromptEdits?: boolean
|
|
857
1063
|
createdAt?: boolean
|
|
858
1064
|
}
|
|
859
1065
|
|
|
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"]>
|
|
1066
|
+
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" | "systemPromptEdits" | "createdAt", ExtArgs["result"]["session"]>
|
|
861
1067
|
|
|
862
1068
|
export type $SessionPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
863
1069
|
name: "Session"
|
|
@@ -882,6 +1088,13 @@ export type $SessionPayload<ExtArgs extends runtime.Types.Extensions.InternalArg
|
|
|
882
1088
|
model: string
|
|
883
1089
|
toolCallsTotal: number
|
|
884
1090
|
toolCallsJson: string
|
|
1091
|
+
skillCallsJson: string
|
|
1092
|
+
messageTimestamps: string
|
|
1093
|
+
apiErrors: number
|
|
1094
|
+
rateLimitErrors: number
|
|
1095
|
+
userInterruptions: number
|
|
1096
|
+
permissionModesJson: string
|
|
1097
|
+
systemPromptEdits: number
|
|
885
1098
|
createdAt: Date
|
|
886
1099
|
}, ExtArgs["result"]["session"]>
|
|
887
1100
|
composites: {}
|
|
@@ -1325,6 +1538,13 @@ export interface SessionFieldRefs {
|
|
|
1325
1538
|
readonly model: Prisma.FieldRef<"Session", 'String'>
|
|
1326
1539
|
readonly toolCallsTotal: Prisma.FieldRef<"Session", 'Int'>
|
|
1327
1540
|
readonly toolCallsJson: Prisma.FieldRef<"Session", 'String'>
|
|
1541
|
+
readonly skillCallsJson: Prisma.FieldRef<"Session", 'String'>
|
|
1542
|
+
readonly messageTimestamps: Prisma.FieldRef<"Session", 'String'>
|
|
1543
|
+
readonly apiErrors: Prisma.FieldRef<"Session", 'Int'>
|
|
1544
|
+
readonly rateLimitErrors: Prisma.FieldRef<"Session", 'Int'>
|
|
1545
|
+
readonly userInterruptions: Prisma.FieldRef<"Session", 'Int'>
|
|
1546
|
+
readonly permissionModesJson: Prisma.FieldRef<"Session", 'String'>
|
|
1547
|
+
readonly systemPromptEdits: Prisma.FieldRef<"Session", 'Int'>
|
|
1328
1548
|
readonly createdAt: Prisma.FieldRef<"Session", 'DateTime'>
|
|
1329
1549
|
}
|
|
1330
1550
|
|