/ opencodehub / lint_report_final_2.txt
swadhinbiswas # Changelog · 1/17/2026
1464862
1614 lines · 116.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
17:54:30 [types] Generated 33ms
17:54:31 [check] Getting diagnostics for Astro files in /home/swadhin/owngit/OpenCodeHub...
src/components/admin/AdminDashboard.tsx:141:30 - warning ts(6385): 'Github' is deprecated.

141                             <Github className="h-8 w-8 text-white opacity-30 hover:opacity-70 transition-opacity cursor-pointer" />
                                 ~~~~~~
src/components/admin/AdminDashboard.tsx:10:10 - warning ts(6385): 'Github' is deprecated.

10 import { Github } from "lucide-react";
            ~~~~~~

src/components/admin/AlertBanner.tsx:2:44 - warning ts(6133): 'Bell' is declared but its value is never read.

2 import { AlertTriangle, CheckCircle, Info, Bell, X } from "lucide-react";
                                             ~~~~

src/components/admin/DashboardStats.tsx:1:45 - warning ts(6133): 'useTransform' is declared but its value is never read.

1 import { motion, useMotionValue, useSpring, useTransform } from "framer-motion";
                                              ~~~~~~~~~~~~
src/components/admin/DashboardStats.tsx:1:34 - warning ts(6133): 'useSpring' is declared but its value is never read.

1 import { motion, useMotionValue, useSpring, useTransform } from "framer-motion";
                                   ~~~~~~~~~
src/components/admin/DashboardStats.tsx:1:18 - warning ts(6133): 'useMotionValue' is declared but its value is never read.

1 import { motion, useMotionValue, useSpring, useTransform } from "framer-motion";
                   ~~~~~~~~~~~~~~

src/components/admin/GlobeViz.tsx:199:27 - warning ts(6133): 'activities' is declared but its value is never read.

199 function CSSGlobeFallback({ activities = [] }: Props) {
                              ~~~~~~~~~~~~~~~~~~~
src/components/admin/GlobeViz.tsx:89:54 - warning ts(6133): 'i' is declared but its value is never read.

89             markers: activities.slice(0, 20).map((_, i) => ({
                                                        ~

src/components/admin/QuickStatsRow.tsx:2:78 - warning ts(6133): 'Zap' is declared but its value is never read.

2 import { GitCommit, GitMerge, CircleDot, Users, Clock, TrendingUp, Activity, Zap } from "lucide-react";
                                                                               ~~~
src/components/admin/QuickStatsRow.tsx:2:68 - warning ts(6133): 'Activity' is declared but its value is never read.

2 import { GitCommit, GitMerge, CircleDot, Users, Clock, TrendingUp, Activity, Zap } from "lucide-react";
                                                                     ~~~~~~~~
src/components/admin/QuickStatsRow.tsx:2:49 - warning ts(6133): 'Clock' is declared but its value is never read.

2 import { GitCommit, GitMerge, CircleDot, Users, Clock, TrendingUp, Activity, Zap } from "lucide-react";
                                                  ~~~~~

src/components/admin/SystemStatus.tsx:18:5 - warning ts(6133): 'color' is declared but its value is never read.

18     color,
       ~~~~~
src/components/admin/SystemStatus.tsx:1:47 - warning ts(6133): 'Server' is declared but its value is never read.

1 import { HardDrive, Cpu, Zap, Activity, Wifi, Server } from "lucide-react";
                                                ~~~~~~
src/components/admin/SystemStatus.tsx:1:41 - warning ts(6133): 'Wifi' is declared but its value is never read.

1 import { HardDrive, Cpu, Zap, Activity, Wifi, Server } from "lucide-react";
                                          ~~~~

src/components/dashboard/ActivityStream.tsx:80:55 - warning ts(6133): 'i' is declared but its value is never read.

80                         {users.slice(0, 5).map((user, i) => (
                                                         ~
src/components/dashboard/ActivityStream.tsx:2:1 - warning ts(6133): 'React' is declared but its value is never read.

2 import * as React from "react";
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

src/components/git/CommitGraph.tsx:209:35 - warning ts(6133): 'index' is declared but its value is never read.

209             {commits.map((commit, index) => {
                                      ~~~~~
src/components/git/CommitGraph.tsx:51:11 - warning ts(6133): 'branchHeads' is declared but its value is never read.

51     const branchHeads: Map<string, string> = new Map()
             ~~~~~~~~~~~

src/components/home/HeroSection.tsx:87:26 - warning ts(6385): 'Github' is deprecated.

87                         <Github className="h-4 w-4" />
                            ~~~~~~
src/components/home/HeroSection.tsx:6:22 - warning ts(6385): 'Github' is deprecated.

6 import { ArrowRight, Github, Star, GitBranch, Zap } from "lucide-react";
                       ~~~~~~
src/components/home/HeroSection.tsx:4:1 - warning ts(6133): 'ColourfulText' is declared but its value is never read.

4 import { ColourfulText } from "@/components/ui/colourful-text";
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

src/components/issues/IssueDetail.tsx:68:67 - warning ts(6133): 'repoName' is declared but its value is never read.

68 export default function IssueDetail({ issue, bodyHtml, repoOwner, repoName }: Props) {
                                                                     ~~~~~~~~
src/components/issues/IssueDetail.tsx:68:56 - warning ts(6133): 'repoOwner' is declared but its value is never read.

68 export default function IssueDetail({ issue, bodyHtml, repoOwner, repoName }: Props) {
                                                          ~~~~~~~~~

src/components/issues/IssuesList.tsx:14:5 - warning ts(6133): 'Filter' is declared but its value is never read.

14     Filter
       ~~~~~~

src/components/layout/Header.astro:2:10 - warning ts(6133): 'GitBranch' is declared but its value is never read.

2 import { GitBranch, Search, Bell, Plus, Menu } from "lucide-react"
           ~~~~~~~~~

src/components/pr/AIReviewPanel.tsx:76:5 - warning ts(6133): 'reviewId' is declared but its value is never read.

76     reviewId,
       ~~~~~~~~
src/components/pr/AIReviewPanel.tsx:6:8 - warning ts(6133): 'React' is declared but its value is never read.

6 import React, { useState } from "react";
         ~~~~~

src/components/pr/StackVisualization.tsx:52:5 - warning ts(6133): 'onReorder' is declared but its value is never read.

52     onReorder,
       ~~~~~~~~~
src/components/pr/StackVisualization.tsx:45:5 - warning ts(6133): 'stackId' is declared but its value is never read.

45     stackId,
       ~~~~~~~

src/components/pulls/PullRequestsList.tsx:14:5 - warning ts(6133): 'Sparkles' is declared but its value is never read.

14     Sparkles,
       ~~~~~~~~

src/components/repo/FileExplorer.astro:2:20 - warning ts(6133): 'Folder' is declared but its value is never read.

2 import { FileText, Folder } from "lucide-react";
                     ~~~~~~

src/components/repo/RepoHeader.astro:3:3 - warning ts(6133): 'GitBranch' is declared but its value is never read.

3   GitBranch,
    ~~~~~~~~~

src/components/search/GlobalSearch.tsx:17:12 - warning ts(6133): 'loading' is declared but its value is never read.

17     const [loading, setLoading] = React.useState(false);
              ~~~~~~~
src/components/search/GlobalSearch.tsx:11:18 - warning ts(6133): 'FileText' is declared but its value is never read.

11 import { Search, FileText, User, GitBranch, GitPullRequest, CircleDot, Workflow } from "lucide-react";
                    ~~~~~~~~

src/components/ui/animated-tooltip.tsx:4:8 - warning ts(6133): 'React' is declared but its value is never read.

4 import React, { useState } from "react";
         ~~~~~
src/components/ui/animated-tooltip.tsx:2:1 - warning ts(6133): 'cn' is declared but its value is never read.

2 import { cn } from "@/lib/cn";
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

src/components/ui/text-generate-effect.tsx:2:29 - warning ts(6133): 'useState' is declared but its value is never read.

2 import { useEffect, useRef, useState } from "react";
                              ~~~~~~~~
src/components/ui/text-generate-effect.tsx:2:21 - warning ts(6133): 'useRef' is declared but its value is never read.

2 import { useEffect, useRef, useState } from "react";
                      ~~~~~~

src/components/ui/text-reveal-card.tsx:3:29 - warning ts(6133): 'useTransform' is declared but its value is never read.

3 import { motion, useScroll, useTransform } from "framer-motion";
                              ~~~~~~~~~~~~
src/components/ui/text-reveal-card.tsx:3:18 - warning ts(6133): 'useScroll' is declared but its value is never read.

3 import { motion, useScroll, useTransform } from "framer-motion";
                   ~~~~~~~~~

src/db/seed-activity.ts:6:1 - warning ts(6133): 'eq' is declared but its value is never read.

6 import { eq } from "drizzle-orm";
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/db/seed-activity.ts:3:24 - warning ts(6133): 'users' is declared but its value is never read.

3 import { repositories, users, pullRequests, pullRequestReviews, pullRequestComments } from "@/db/schema";
                         ~~~~~
src/db/seed-activity.ts:3:10 - warning ts(6133): 'repositories' is declared but its value is never read.

3 import { repositories, users, pullRequests, pullRequestReviews, pullRequestComments } from "@/db/schema";
           ~~~~~~~~~~~~

src/db/seed-notifications.ts:5:32 - warning ts(6133): 'repositories' is declared but its value is never read.

5 import { notifications, users, repositories } from "@/db/schema";
                                 ~~~~~~~~~~~~
src/db/seed-notifications.ts:5:25 - warning ts(6133): 'users' is declared but its value is never read.

5 import { notifications, users, repositories } from "@/db/schema";
                          ~~~~~

src/db/seed-scale.ts:78:17 - error ts(2353): Object literal may only specify known properties, and 'description' does not exist in type 'RepoInitOptions'.

78                 description
                   ~~~~~~~~~~~
src/db/seed-scale.ts:25:11 - warning ts(6133): 'reposPath' is declared but its value is never read.

25     const reposPath = process.env.GIT_REPOS_PATH || "./data/repos";
             ~~~~~~~~~
src/db/seed-scale.ts:9:1 - warning ts(6133): 'fs' is declared but its value is never read.

9 import fs from "fs/promises";
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/db/seed-scale.ts:7:1 - warning ts(6133): 'eq' is declared but its value is never read.

7 import { eq } from "drizzle-orm";
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/db/seed-scale.ts:3:24 - warning ts(6133): 'users' is declared but its value is never read.

3 import { repositories, users } from "@/db/schema";
                         ~~~~~

src/db/schema/developer-metrics.ts:7:19 - warning ts(6133): 'real' is declared but its value is never read.

7 import { integer, real, sqliteTable, text } from "drizzle-orm/sqlite-core";
                    ~~~~

src/db/schema/pipeline-runners.ts:3:10 - warning ts(6133): 'integer' is declared but its value is never read.

3 import { integer, sqliteTable, text } from "drizzle-orm/sqlite-core";
           ~~~~~~~

src/db/schema/pull-requests.ts:8:18 - warning ts(6133): 'milestones' is declared but its value is never read.

8 import { labels, milestones } from "./issues";
                   ~~~~~~~~~~

src/db/schema/security.ts:3:1 - warning ts(6133): 'users' is declared but its value is never read.

3 import { users } from "./users";
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

src/lib/ai-review.ts:6:14 - warning ts(6133): 'and' is declared but its value is never read.

6 import { eq, and, desc } from "drizzle-orm";
               ~~~

src/lib/analysis.ts:35:87 - warning ts(6133): 'force' is declared but its value is never read.

35 export async function analyzeRepository(repoId: string, userId: string | null = null, force = false) {
                                                                                         ~~~~~
src/lib/analysis.ts:4:22 - warning ts(6133): 'getRepoSize' is declared but its value is never read.

4 import { getCommits, getRepoSize, listFiles, getCommitDiff } from "./git";
                       ~~~~~~~~~~~

src/lib/conflict-automation.ts:11:1 - warning ts(6192): All imports in import declaration are unused.

11 import { notifyPrEvent, notifyUserDm } from "./slack-notifications";
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/lib/conflict-automation.ts:6:14 - warning ts(6133): 'and' is declared but its value is never read.

6 import { eq, and } from "drizzle-orm";
               ~~~

src/lib/developer-metrics.ts:6:35 - warning ts(6133): 'lte' is declared but its value is never read.

6 import { eq, and, desc, sql, gte, lte } from "drizzle-orm";
                                    ~~~
src/lib/developer-metrics.ts:6:30 - warning ts(6133): 'gte' is declared but its value is never read.

6 import { eq, and, desc, sql, gte, lte } from "drizzle-orm";
                               ~~~
src/lib/developer-metrics.ts:6:25 - warning ts(6133): 'sql' is declared but its value is never read.

6 import { eq, and, desc, sql, gte, lte } from "drizzle-orm";
                          ~~~

src/lib/git.ts:1077:32 - warning ts(6133): 'reject' is declared but its value is never read.

1077   return new Promise((resolve, reject) => {
                                    ~~~~~~

src/lib/lfs.ts:64:3 - warning ts(6133): 'repoDiskPath' is declared but its value is never read.

64   repoDiskPath: string,
     ~~~~~~~~~~~~

src/lib/merge-queue.ts:6:34 - warning ts(6133): 'gt' is declared but its value is never read.

6 import { eq, and, asc, desc, lt, gt } from "drizzle-orm";
                                   ~~
src/lib/merge-queue.ts:6:30 - warning ts(6133): 'lt' is declared but its value is never read.

6 import { eq, and, asc, desc, lt, gt } from "drizzle-orm";
                               ~~

src/lib/pipeline.ts:292:15 - warning ts(6133): 'tag' is declared but its value is never read.

292         const tag = payload.ref.replace("refs/tags/", "");
                  ~~~
src/lib/pipeline.ts:238:11 - warning ts(6133): 'artifactsDir' is declared but its value is never read.

238   private artifactsDir: string;
              ~~~~~~~~~~~~
src/lib/pipeline.ts:237:11 - warning ts(6133): 'workDir' is declared but its value is never read.

237   private workDir: string;
              ~~~~~~~

src/lib/security.ts:116:15 - warning ts(6133): 'rawOutput' is declared but its value is never read.

116         const rawOutput = logsBuffer.toString("utf-8");
                  ~~~~~~~~~
src/lib/security.ts:76:15 - warning ts(6133): 'stream' is declared but its value is never read.

76         const stream = await container.logs({ follow: true, stdout: true, stderr: true });
                 ~~~~~~
src/lib/security.ts:56:15 - warning ts(6133): 'chunks' is declared but its value is never read.

56         const chunks: Buffer[] = [];
                 ~~~~~~
src/lib/security.ts:48:41 - warning ts(6133): 'event' is declared but its value is never read.

48                     function onProgress(event: any) { }
                                           ~~~~~
src/lib/security.ts:44:51 - warning ts(6133): 'output' is declared but its value is never read.

44                     function onFinished(err: any, output: any) {
                                                     ~~~~~~
src/lib/security.ts:40:41 - warning ts(6133): 'reject' is declared but its value is never read.

40             await new Promise((resolve, reject) => {
                                           ~~~~~~
src/lib/security.ts:15:5 - warning ts(6133): 'repositoryId' is declared but its value is never read.

15     repositoryId: string
       ~~~~~~~~~~~~
src/lib/security.ts:5:21 - warning ts(6133): 'writeFile' is declared but its value is never read.

5 import { mkdir, rm, writeFile } from "fs/promises";
                      ~~~~~~~~~

src/lib/slack-notifications.ts:212:21 - error ts(2322): Type 'string' is not assignable to type '{ type: string; text: string; emoji?: boolean | undefined; }'.

212                     text: `\`${pr.headBranch}\` → \`${pr.baseBranch}\``,
                        ~~~~
src/lib/slack-notifications.ts:56:42 - error ts(2339): Property 'organizationId' does not exist on type 'SQLiteTableWithColumns<{ name: "slack_workspaces"; schema: undefined; columns: { id: SQLiteColumn<{ name: "id"; tableName: "slack_workspaces"; dataType: "string"; columnType: "SQLiteText"; data: string; driverParam: string; notNull: true; ... 7 more ...; generated: undefined; }, {}, { ...; }>; ... 10 more ...; lastU...'.

56         where: eq(schema.slackWorkspaces.organizationId, organizationId),
                                            ~~~~~~~~~~~~~~
src/lib/slack-notifications.ts:257:5 - warning ts(6133): 'event' is declared but its value is never read.

257     event: string,
        ~~~~~

src/lib/ssh.ts:189:32 - warning ts(6133): 'accept' is declared but its value is never read.

189           session.on("shell", (accept, reject) => {
                                   ~~~~~~
src/lib/ssh.ts:77:39 - warning ts(6133): 'reject' is declared but its value is never read.

77         client.on("session", (accept, reject) => {
                                         ~~~~~~
src/lib/ssh.ts:36:5 - warning ts(6133): 'port' is declared but its value is never read.

36     port,
       ~~~~

src/lib/storage.ts:1196:9 - warning ts(6133): 'eq' is declared but its value is never read.

1196   const { eq } = await import("drizzle-orm");
             ~~~~~~
src/lib/storage.ts:1098:41 - warning ts(6133): 'expiresIn' is declared but its value is never read.

1098   async getSignedUploadUrl(key: string, expiresIn?: number): Promise<string> {
                                             ~~~~~~~~~
src/lib/storage.ts:1084:35 - warning ts(6133): 'expiresIn' is declared but its value is never read.

1084   async getSignedUrl(key: string, expiresIn?: number): Promise<string> {
                                       ~~~~~~~~~
src/lib/storage.ts:971:30 - warning ts(6387): The signature '(start?: number | undefined, end?: number | undefined): Buffer<ArrayBuffer>' of 'buffer.slice' is deprecated.

971         const chunk = buffer.slice(i, Math.min(i + chunkSize, buffer.length));
                                 ~~~~~
src/lib/storage.ts:875:41 - warning ts(6133): 'expiresIn' is declared but its value is never read.

875   async getSignedUploadUrl(key: string, expiresIn?: number): Promise<string> {
                                            ~~~~~~~~~
src/lib/storage.ts:868:35 - warning ts(6133): 'expiresIn' is declared but its value is never read.

868   async getSignedUrl(key: string, expiresIn?: number): Promise<string> {
                                      ~~~~~~~~~
src/lib/storage.ts:798:21 - warning ts(6387): The signature '(start?: number | undefined, end?: number | undefined): Buffer<ArrayBuffer>' of 'buffer.slice' is deprecated.

798       return buffer.slice(options.range.start, options.range.end + 1);
                        ~~~~~
src/lib/storage.ts:660:41 - warning ts(6133): 'expiresIn' is declared but its value is never read.

660   async getSignedUploadUrl(key: string, expiresIn?: number): Promise<string> {
                                            ~~~~~~~~~
src/lib/storage.ts:649:35 - warning ts(6133): 'expiresIn' is declared but its value is never read.

649   async getSignedUrl(key: string, expiresIn?: number): Promise<string> {
                                      ~~~~~~~~~
src/lib/storage.ts:539:51 - warning ts(6133): 'options' is declared but its value is never read.

539   async put(key: string, data: Buffer | Readable, options?: PutOptions): Promise<void> {
                                                      ~~~~~~~
src/lib/storage.ts:274:5 - warning ts(6133): 'expiresIn' is declared but its value is never read.

274     expiresIn: number = 3600
        ~~~~~~~~~

src/lib/sync.ts:282:49 - error ts(2339): Property 'createdAt' does not exist on type 'SQLiteTableWithColumns<{ name: "pull_request_checks"; schema: undefined; columns: { id: SQLiteColumn<{ name: "id"; tableName: "pull_request_checks"; dataType: "string"; columnType: "SQLiteText"; data: string; driverParam: string; ... 8 more ...; generated: undefined; }, {}, { ...; }>; ... 8 more ...; startedAt: SQLi...'.

282         orderBy: [desc(schema.pullRequestChecks.createdAt)],
                                                    ~~~~~~~~~
src/lib/sync.ts:362:23 - warning ts(6133): 'baseHead' is declared but its value is never read.

362                 const baseHead = await git.revparse([baseBranch]);
                          ~~~~~~~~
src/lib/sync.ts:361:23 - warning ts(6133): 'mergeBase' is declared but its value is never read.

361                 const mergeBase = await git.raw(["merge-base", baseBranch, branchName]);
                          ~~~~~~~~~
src/lib/sync.ts:267:5 - warning ts(6133): 'repositoryId' is declared but its value is never read.

267     repositoryId: string,
        ~~~~~~~~~~~~
src/lib/sync.ts:57:15 - warning ts(6133): 'currentBranch' is declared but its value is never read.

57         const currentBranch = status.current;
                 ~~~~~~~~~~~~~
src/lib/sync.ts:10:1 - warning ts(6133): 'generateId' is declared but its value is never read.

10 import { generateId } from "./utils";
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/lib/sync.ts:9:20 - warning ts(6133): 'getStackForPr' is declared but its value is never read.

9 import { getStack, getStackForPr, addToStack, createStack } from "./stacks";
                     ~~~~~~~~~~~~~

src/lib/workflows.ts:26:92 - warning ts(6133): 'pusherId' is declared but its value is never read.

26 export async function triggerRepoWorkflows(repoId: string, commitSha: string, ref: string, pusherId: string) {
                                                                                              ~~~~~~~~
src/lib/workflows.ts:8:1 - warning ts(6133): 'existsSync' is declared but its value is never read.

8 import { existsSync } from "fs";
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

src/pages/cli.astro:5:5 - warning ts(6133): 'Cpu' is declared but its value is never read.

5     Cpu,
      ~~~

src/pages/explore.astro:4:20 - warning ts(6133): 'sql' is declared but its value is never read.

4 import { desc, eq, sql, count } from "drizzle-orm";
                     ~~~

src/pages/inbox.astro:28:5 - warning ts(6133): 'title' is declared but its value is never read.

28 let title = "Inbox";
       ~~~~~
src/pages/inbox.astro:15:3 - warning ts(6133): 'Bot' is declared but its value is never read.

15   Bot,
     ~~~
src/pages/inbox.astro:13:3 - warning ts(6133): 'Search' is declared but its value is never read.

13   Search,
     ~~~~~~
src/pages/inbox.astro:5:29 - warning ts(6133): 'ne' is declared but its value is never read.

5 import { eq, desc, and, or, ne } from "drizzle-orm";
                              ~~
src/pages/inbox.astro:5:25 - warning ts(6133): 'or' is declared but its value is never read.

5 import { eq, desc, and, or, ne } from "drizzle-orm";
                          ~~

src/pages/issues.astro:7:7 - warning ts(6133): 'currentUser' is declared but its value is never read.

7 const currentUser = Astro.locals.user;
        ~~~~~~~~~~~
src/pages/issues.astro:4:25 - warning ts(6133): 'sql' is declared but its value is never read.

4 import { desc, eq, and, sql } from "drizzle-orm";
                          ~~~
src/pages/issues.astro:4:20 - warning ts(6133): 'and' is declared but its value is never read.

4 import { desc, eq, and, sql } from "drizzle-orm";
                     ~~~

src/pages/password-reset.astro:95:13 - warning ts(6133): 'response' is declared but its value is never read.

95       const response = await fetch("/api/auth/password-reset", {
               ~~~~~~~~

src/pages/repositories.astro:14:53 - warning ts(6133): 'Globe' is declared but its value is never read.

14 import { Book, Star, GitBranch, Plus, Search, Lock, Globe } from "lucide-react";
                                                       ~~~~~
src/pages/repositories.astro:14:47 - warning ts(6133): 'Lock' is declared but its value is never read.

14 import { Book, Star, GitBranch, Plus, Search, Lock, Globe } from "lucide-react";
                                                 ~~~~
src/pages/repositories.astro:5:1 - warning ts(6192): All imports in import declaration are unused.

  5 import {
    ~~~~~~~~
  6    Card,
    ~~~~~~~~
... 
 10    CardContent,
    ~~~~~~~~~~~~~~~
 11 } from "@/components/ui/card";
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

src/pages/stars.astro:152:54 - warning ts(6385): 'event' is deprecated.

152                     onclick="event.preventDefault(); event.stopPropagation();"
                                                         ~~~~~
src/pages/stars.astro:152:30 - warning ts(6385): 'event' is deprecated.

152                     onclick="event.preventDefault(); event.stopPropagation();"
                                 ~~~~~

src/pages/[owner]/[repo]/index.astro:414:46 - error ts(2339): Property 'website' does not exist on type '{ owner: string; name: string; description: string | null; visibility: string; defaultBranch: string; stars: number; forks: number; watchers: number; language: string; license: string; topics: any; ... 4 more ...; openPrCount: number; }'.

414                 <span class="truncate">{repo.website}</span>
                                                 ~~~~~~~
src/pages/[owner]/[repo]/index.astro:396:28 - error ts(2339): Property 'website' does not exist on type '{ owner: string; name: string; description: string | null; visibility: string; defaultBranch: string; stars: number; forks: number; watchers: number; language: string; license: string; topics: any; ... 4 more ...; openPrCount: number; }'.

396                 href={repo.website}
                               ~~~~~~~
src/pages/[owner]/[repo]/index.astro:394:18 - error ts(2339): Property 'website' does not exist on type '{ owner: string; name: string; description: string | null; visibility: string; defaultBranch: string; stars: number; forks: number; watchers: number; language: string; license: string; topics: any; ... 4 more ...; openPrCount: number; }'.

394             repo.website && (
                     ~~~~~~~
src/pages/[owner]/[repo]/index.astro:15:19 - warning ts(6133): 'sql' is declared but its value is never read.

15 import { eq, and, sql, count } from "drizzle-orm";
                     ~~~
src/pages/[owner]/[repo]/index.astro:12:3 - warning ts(6133): 'Clock' is declared but its value is never read.

12   Clock,
     ~~~~~
src/pages/[owner]/[repo]/index.astro:6:3 - warning ts(6133): 'Tag' is declared but its value is never read.

6   Tag,
    ~~~

src/pages/[owner]/[repo]/labels.astro:245:9 - warning astro(4000): This script will be treated as if it has the `is:inline` directive because it contains an attribute. Therefore, features that require processing (e.g. using TypeScript or npm packages in the script) are unavailable.

See docs for more details: https://docs.astro.build/en/guides/client-side-scripts/#script-processing.

Add the `is:inline` directive explicitly to silence this hint.

245 <script define:vars={{ owner: repo.owner, repo: repo.name }}>
            ~~~~~~~~~~~

src/pages/[owner]/[repo]/merge-queue.astro:248:57 - warning ts(6133): 'i' is declared but its value is never read.

248                         {item.stack.entries.map((entry, i) => (
                                                            ~
src/pages/[owner]/[repo]/merge-queue.astro:13:3 - warning ts(6133): 'Play' is declared but its value is never read.

13   Play,
     ~~~~
src/pages/[owner]/[repo]/merge-queue.astro:8:19 - warning ts(6133): 'sql' is declared but its value is never read.

8 import { and, eq, sql, count } from "drizzle-orm";
                    ~~~

src/pages/[owner]/[repo]/blob/[branch]/[...path].astro:18:3 - warning ts(6133): 'Monitor' is declared but its value is never read.

18   Monitor,
     ~~~~~~~
src/pages/[owner]/[repo]/blob/[branch]/[...path].astro:13:3 - warning ts(6133): 'FileText' is declared but its value is never read.

13   FileText,
     ~~~~~~~~
src/pages/[owner]/[repo]/blob/[branch]/[...path].astro:337:9 - warning astro(4000): This script will be treated as if it has the `is:inline` directive because it contains an attribute. Therefore, features that require processing (e.g. using TypeScript or npm packages in the script) are unavailable.

See docs for more details: https://docs.astro.build/en/guides/client-side-scripts/#script-processing.

Add the `is:inline` directive explicitly to silence this hint.

337 <script define:vars={{ initialContent: !fileData.isBinary ? fileData.content : "" }}>
            ~~~~~~~~~~~

src/pages/[owner]/[repo]/branches/index.astro:16:3 - warning ts(6133): 'AlertCircle' is declared but its value is never read.

16   AlertCircle,
     ~~~~~~~~~~~
src/pages/[owner]/[repo]/branches/index.astro:15:3 - warning ts(6133): 'Search' is declared but its value is never read.

15   Search,
     ~~~~~~
src/pages/[owner]/[repo]/branches/index.astro:13:3 - warning ts(6133): 'MoreHorizontal' is declared but its value is never read.

13   MoreHorizontal,
     ~~~~~~~~~~~~~~
src/pages/[owner]/[repo]/branches/index.astro:9:19 - warning ts(6133): 'sql' is declared but its value is never read.

9 import { and, eq, sql, count } from "drizzle-orm";
                    ~~~
src/pages/[owner]/[repo]/branches/index.astro:8:1 - warning ts(6133): 'getRepoPath' is declared but its value is never read.

8 import { getRepoPath } from "@/lib/utils";
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/pages/[owner]/[repo]/branches/index.astro:351:42 - warning ts(6133): 'e' is declared but its value is never read.

351     btn.addEventListener("click", async (e: any) => {
                                             ~

src/pages/[owner]/[repo]/commits/[...ref].astro:9:1 - warning ts(6133): 'Button' is declared but its value is never read.

9 import { Button } from "@/components/ui/button";
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

src/pages/[owner]/[repo]/edit/[...ref].astro:108:9 - warning astro(4000): This script will be treated as if it has the `is:inline` directive because it contains an attribute. Therefore, features that require processing (e.g. using TypeScript or npm packages in the script) are unavailable.

See docs for more details: https://docs.astro.build/en/guides/client-side-scripts/#script-processing.

Add the `is:inline` directive explicitly to silence this hint.

108 <script define:vars={{ initialContent: fileContent, repoId: repo.id, branch: currentBranch, path: filePath, owner: repo.owner, repoName: repo.name }}>
            ~~~~~~~~~~~

src/pages/[owner]/[repo]/insights/index.astro:75:41 - error ts(2339): Property 'count' does not exist on type '{ id: string; repositoryId: string; number: number; title: string; body: string | null; state: string; authorId: string; assigneeId: string | null; milestoneId: string | null; isPinned: boolean | null; ... 7 more ...; updatedAt: string; }'.

75 repo.openIssueCount = issueCountResult?.count || 0;
                                           ~~~~~
src/pages/[owner]/[repo]/insights/index.astro:65:13 - error ts(2554): Expected 0 arguments, but got 1.

65     .select({ count: count(schema.issues.id) })
               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/pages/[owner]/[repo]/insights/index.astro:276:69 - warning ts(6133): 'i' is declared but its value is never read.

276                                     {contributors.map((contributor, i) => (
                                                                        ~
src/pages/[owner]/[repo]/insights/index.astro:84:7 - warning ts(6133): 'recentCommits' is declared but its value is never read.

84 const recentCommits = await getCommits(repoData.diskPath, { limit: 20 });
         ~~~~~~~~~~~~~
src/pages/[owner]/[repo]/insights/index.astro:9:5 - warning ts(6133): 'GitCommit' is declared but its value is never read.

9     GitCommit,
      ~~~~~~~~~
src/pages/[owner]/[repo]/insights/index.astro:5:24 - warning ts(6133): 'desc' is declared but its value is never read.

5 import { eq, and, sql, desc, gte, count } from "drizzle-orm";
                         ~~~~
src/pages/[owner]/[repo]/insights/index.astro:5:19 - warning ts(6133): 'sql' is declared but its value is never read.

5 import { eq, and, sql, desc, gte, count } from "drizzle-orm";
                    ~~~

src/pages/[owner]/[repo]/pulls/[number].astro:131:42 - error ts(2339): Property 'count' does not exist on type '{ id: string; repositoryId: string; number: number; title: string; body: string | null; state: string; authorId: string; assigneeId: string | null; milestoneId: string | null; isPinned: boolean | null; ... 7 more ...; updatedAt: string; }'.

131 const openIssueCount = issueCountResult?.count || 0;
                                             ~~~~~
src/pages/[owner]/[repo]/pulls/[number].astro:121:11 - error ts(2554): Expected 0 arguments, but got 1.

121   .select({ count: sql<number>`count(*)` })
              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/pages/[owner]/[repo]/pulls/[number].astro:365:50 - warning ts(6133): 'i' is declared but its value is never read.

365                   {stackInfo.entries.map((entry, i) => {
                                                     ~
src/pages/[owner]/[repo]/pulls/[number].astro:110:5 - warning ts(6133): 'mergeError' is declared but its value is never read.

110 let mergeError = "";
        ~~~~~~~~~~
src/pages/[owner]/[repo]/pulls/[number].astro:21:3 - warning ts(6133): 'ChevronRight' is declared but its value is never read.

21   ChevronRight,
     ~~~~~~~~~~~~
src/pages/[owner]/[repo]/pulls/[number].astro:13:3 - warning ts(6133): 'CheckCircle2' is declared but its value is never read.

13   CheckCircle2,
     ~~~~~~~~~~~~
src/pages/[owner]/[repo]/pulls/[number].astro:10:24 - warning ts(6133): 'asc' is declared but its value is never read.

10 import { and, eq, sql, asc } from "drizzle-orm";
                          ~~~
src/pages/[owner]/[repo]/pulls/[number].astro:8:1 - warning ts(6133): 'getRepoPath' is declared but its value is never read.

8 import { getRepoPath } from "@/lib/utils";
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/pages/[owner]/[repo]/pulls/[number].astro:6:27 - warning ts(6133): 'getCommits' is declared but its value is never read.

6 import { compareBranches, getCommits } from "@/lib/git";
                            ~~~~~~~~~~
src/pages/[owner]/[repo]/pulls/[number].astro:425:3 - warning astro(4000): This script will be treated as if it has the `is:inline` directive because it contains an attribute. Therefore, features that require processing (e.g. using TypeScript or npm packages in the script) are unavailable.

See docs for more details: https://docs.astro.build/en/guides/client-side-scripts/#script-processing.

Add the `is:inline` directive explicitly to silence this hint.

425   define:vars={{
      ~~~~~~~~~~~

src/pages/[owner]/[repo]/pulls/index.astro:105:37 - error ts(7006): Parameter 'pl' implicitly has an 'any' type.

105   labels: pr.pullRequestLabels?.map(pl => ({
                                        ~~
src/pages/[owner]/[repo]/pulls/index.astro:105:14 - error ts(2339): Property 'pullRequestLabels' does not exist on type '{ number: number; id: string; createdAt: string; updatedAt: string; title: string; repositoryId: string; body: string | null; isDraft: boolean | null; authorId: string; state: string; assigneeId: string | null; ... 24 more ...; autoMergeMethod: string | null; }'.

105   labels: pr.pullRequestLabels?.map(pl => ({
                 ~~~~~~~~~~~~~~~~~
src/pages/[owner]/[repo]/pulls/index.astro:103:19 - error ts(2551): Property 'author' does not exist on type '{ number: number; id: string; createdAt: string; updatedAt: string; title: string; repositoryId: string; body: string | null; isDraft: boolean | null; authorId: string; state: string; assigneeId: string | null; ... 24 more ...; autoMergeMethod: string | null; }'. Did you mean 'authorId'?

103     avatarUrl: pr.author.avatarUrl || undefined,
                      ~~~~~~
src/pages/[owner]/[repo]/pulls/index.astro:102:18 - error ts(2551): Property 'author' does not exist on type '{ number: number; id: string; createdAt: string; updatedAt: string; title: string; repositoryId: string; body: string | null; isDraft: boolean | null; authorId: string; state: string; assigneeId: string | null; ... 24 more ...; autoMergeMethod: string | null; }'. Did you mean 'authorId'?

102     username: pr.author.username,
                     ~~~~~~
src/pages/[owner]/[repo]/pulls/index.astro:59:5 - error ts(2353): Object literal may only specify known properties, and 'pullRequestLabels' does not exist in type '{ repository?: true | { columns?: { id?: boolean | undefined; name?: boolean | undefined; slug?: boolean | undefined; description?: boolean | undefined; ownerId?: boolean | undefined; ... 28 more ...; updatedAt?: boolean | undefined; } | undefined; with?: { ...; } | undefined; extras?: Record<...> | ... 1 more ... |...'.

59     pullRequestLabels: {
       ~~~~~~~~~~~~~~~~~
src/pages/[owner]/[repo]/pulls/index.astro:51:42 - error ts(2339): Property 'count' does not exist on type '{ id: string; repositoryId: string; number: number; title: string; body: string | null; state: string; authorId: string; assigneeId: string | null; milestoneId: string | null; isPinned: boolean | null; ... 7 more ...; updatedAt: string; }'.

51 const openIssueCount = issueCountResult?.count || 0;
                                            ~~~~~
src/pages/[owner]/[repo]/pulls/index.astro:41:11 - error ts(2554): Expected 0 arguments, but got 1.

41   .select({ count: sql<number>`count(*)` })
             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

src/pages/[owner]/[repo]/pulls/new.astro:254:38 - error ts(2339): Property 'status' does not exist on type 'never'.

254                                 diff.status === "deleted" ? "File deleted" :
                                         ~~~~~~
src/pages/[owner]/[repo]/pulls/new.astro:253:38 - error ts(2339): Property 'status' does not exist on type 'never'.

253                                {diff.status === "added" ? "New file created" :
                                         ~~~~~~
src/pages/[owner]/[repo]/pulls/new.astro:249:70 - error ts(2339): Property 'deletions' does not exist on type 'never'.

249                                    <span class="text-red-600">-{diff.deletions}</span>
                                                                         ~~~~~~~~~
src/pages/[owner]/[repo]/pulls/new.astro:247:72 - error ts(2339): Property 'additions' does not exist on type 'never'.

247                                    <span class="text-green-600">+{diff.additions}</span>
                                                                           ~~~~~~~~~
src/pages/[owner]/[repo]/pulls/new.astro:245:44 - error ts(2339): Property 'file' does not exist on type 'never'.

245                                <span>{diff.file}</span>
                                               ~~~~
src/pages/[owner]/[repo]/pulls/new.astro:229:107 - error ts(2339): Property 'authorDate' does not exist on type 'never'.

229                               <div class="text-muted-foreground text-xs text-right w-24">{new Date(commit.authorDate).toLocaleDateString()}</div>
                                                                                                              ~~~~~~~~~~
src/pages/[owner]/[repo]/pulls/new.astro:228:82 - error ts(2339): Property 'authorName' does not exist on type 'never'.

228                               <div class="text-muted-foreground text-xs">{commit.authorName}</div>
                                                                                     ~~~~~~~~~~
src/pages/[owner]/[repo]/pulls/new.astro:227:80 - error ts(2339): Property 'message' does not exist on type 'never'.

227                               <div class="font-medium flex-1 truncate">{commit.message}</div>
                                                                                   ~~~~~~~
src/pages/[owner]/[repo]/pulls/new.astro:226:92 - error ts(2339): Property 'sha' does not exist on type 'never'.

226                               <div class="font-mono text-muted-foreground text-xs">{commit.sha.substring(0, 7)}</div>
                                                                                               ~~~
src/pages/[owner]/[repo]/pulls/new.astro:220:152 - error ts(2339): Property 'deletions' does not exist on type 'never'.

220                           {diffData.diffs.reduce((acc, curr) => acc + curr.additions, 0)} additions • {diffData.diffs.reduce((acc, curr) => acc + curr.deletions, 0)} deletions
                                                                                                                                                           ~~~~~~~~~
src/pages/[owner]/[repo]/pulls/new.astro:220:76 - error ts(2339): Property 'additions' does not exist on type 'never'.

220                           {diffData.diffs.reduce((acc, curr) => acc + curr.additions, 0)} additions • {diffData.diffs.reduce((acc, curr) => acc + curr.deletions, 0)} deletions
                                                                               ~~~~~~~~~
src/pages/[owner]/[repo]/pulls/new.astro:193:53 - error ts(2339): Property 'message' does not exist on type 'never'.

193                         value={diffData.commits[0]?.message || ""}
                                                        ~~~~~~~
src/pages/[owner]/[repo]/pulls/new.astro:92:42 - error ts(2339): Property 'count' does not exist on type '{ id: string; repositoryId: string; number: number; title: string; body: string | null; state: string; authorId: string; assigneeId: string | null; milestoneId: string | null; isPinned: boolean | null; ... 7 more ...; updatedAt: string; }'.

92 const openIssueCount = issueCountResult?.count || 0;
                                            ~~~~~
src/pages/[owner]/[repo]/pulls/new.astro:82:11 - error ts(2554): Expected 0 arguments, but got 1.

82   .select({ count: sql<number>`count(*)` })
             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/pages/[owner]/[repo]/pulls/new.astro:72:5 - error ts(2322): Type '{ commits: CommitInfo[]; diffs: DiffInfo[]; }' is not assignable to type '{ commits: never[]; diffs: never[]; }'.
  Types of property 'commits' are incompatible.
    Type 'CommitInfo[]' is not assignable to type 'never[]'.
      Type 'CommitInfo' is not assignable to type 'never'.

72     diffData = await compareBranches(repoPath, baseBranch, headBranch);
       ~~~~~~~~
src/pages/[owner]/[repo]/pulls/new.astro:71:22 - error ts(2554): Expected 2 arguments, but got 1.

71     const repoPath = getRepoPath(repoData.id);
                        ~~~~~~~~~~~
src/pages/[owner]/[repo]/pulls/new.astro:53:20 - error ts(2554): Expected 2 arguments, but got 1.

53   const repoPath = getRepoPath(repoData.id);
                      ~~~~~~~~~~~
src/pages/[owner]/[repo]/pulls/new.astro:67:5 - warning ts(6133): 'canMerge' is declared but its value is never read.

67 let canMerge = false;
       ~~~~~~~~
src/pages/[owner]/[repo]/pulls/new.astro:66:5 - warning ts(6133): 'error' is declared but its value is never read.

66 let error = "";
       ~~~~~
src/pages/[owner]/[repo]/pulls/new.astro:12:3 - warning ts(6133): 'ArrowRight' is declared but its value is never read.

12   ArrowRight,
     ~~~~~~~~~~
src/pages/[owner]/[repo]/pulls/new.astro:272:9 - warning astro(4000): This script will be treated as if it has the `is:inline` directive because it contains an attribute. Therefore, features that require processing (e.g. using TypeScript or npm packages in the script) are unavailable.

See docs for more details: https://docs.astro.build/en/guides/client-side-scripts/#script-processing.

Add the `is:inline` directive explicitly to silence this hint.

272 <script define:vars={{ baseBranch, headBranch, repoOwner: repo.owner, repoName: repo.name }}>
            ~~~~~~~~~~~

src/pages/[owner]/[repo]/raw/[branch]/[...path].ts:87:25 - error ts(2345): Argument of type 'Buffer<ArrayBufferLike>' is not assignable to parameter of type 'BodyInit | null | undefined'.
  Type 'Buffer<ArrayBufferLike>' is missing the following properties from type 'URLSearchParams': size, append, delete, get, and 2 more.

87     return new Response(content, {
                           ~~~~~~~

src/pages/[owner]/[repo]/security/index.astro:47:12 - error ts(2339): Property 'count' does not exist on type '{ id: string; repositoryId: string; number: number; title: string; body: string | null; state: string; authorId: string; assigneeId: string | null; milestoneId: string | null; isPinned: boolean | null; ... 7 more ...; updatedAt: string; }'.

47   .get())?.count || 0;
              ~~~~~
src/pages/[owner]/[repo]/security/index.astro:39:11 - error ts(2554): Expected 0 arguments, but got 1.

39   .select({ count: sql<number>`count(*)` })
             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/pages/[owner]/[repo]/security/index.astro:8:10 - warning ts(6133): 'AlertCircle' is declared but its value is never read.

8 import { AlertCircle, CheckCircle, Shield, Play, Loader2 } from "lucide-react";
           ~~~~~~~~~~~
src/pages/[owner]/[repo]/security/index.astro:202:9 - warning astro(4000): This script will be treated as if it has the `is:inline` directive because it contains an attribute. Therefore, features that require processing (e.g. using TypeScript or npm packages in the script) are unavailable.

See docs for more details: https://docs.astro.build/en/guides/client-side-scripts/#script-processing.

Add the `is:inline` directive explicitly to silence this hint.

202 <script define:vars={{ repoOwner: repoInfo.owner, repoName: repoInfo.name }}>
            ~~~~~~~~~~~

src/pages/[owner]/[repo]/settings/collaborators.astro:83:10 - warning ts(6133): 'getRoleDescription' is declared but its value is never read.

83 function getRoleDescription(role: string) {
            ~~~~~~~~~~~~~~~~~~
src/pages/[owner]/[repo]/settings/collaborators.astro:297:9 - warning astro(4000): This script will be treated as if it has the `is:inline` directive because it contains an attribute. Therefore, features that require processing (e.g. using TypeScript or npm packages in the script) are unavailable.

See docs for more details: https://docs.astro.build/en/guides/client-side-scripts/#script-processing.

Add the `is:inline` directive explicitly to silence this hint.

297 <script define:vars={{ owner: repo.owner, repo: repo.name }}>
            ~~~~~~~~~~~

src/pages/[owner]/[repo]/settings/deploy-keys.astro:58:29 - error ts(2339): Property 'deployKeys' does not exist on type 'typeof import("/home/swadhin/owngit/OpenCodeHub/src/db/schema/index")'.

58       orderBy: [desc(schema.deployKeys.createdAt)],
                               ~~~~~~~~~~
src/pages/[owner]/[repo]/settings/deploy-keys.astro:57:24 - error ts(2339): Property 'deployKeys' does not exist on type 'typeof import("/home/swadhin/owngit/OpenCodeHub/src/db/schema/index")'.

57       where: eq(schema.deployKeys.repositoryId, repoData.id),
                          ~~~~~~~~~~
src/pages/[owner]/[repo]/settings/deploy-keys.astro:56:33 - error ts(2339): Property 'deployKeys' does not exist on type '{ readonly users: RelationalQueryBuilder<"sync", typeof import("/home/swadhin/owngit/OpenCodeHub/src/db/schema/index"), ExtractTablesWithRelations<typeof import("/home/swadhin/owngit/OpenCodeHub/src/db/schema/index")>, { ...; }>; ... 60 more ...; readonly systemConfig: RelationalQueryBuilder<...>; } | { ...; }'.
  Property 'deployKeys' does not exist on type '{ readonly users: RelationalQueryBuilder<"sync", typeof import("/home/swadhin/owngit/OpenCodeHub/src/db/schema/index"), ExtractTablesWithRelations<typeof import("/home/swadhin/owngit/OpenCodeHub/src/db/schema/index")>, { ...; }>; ... 60 more ...; readonly systemConfig: RelationalQueryBuilder<...>; }'.

56     deployKeys = await db.query.deployKeys.findMany({
                                   ~~~~~~~~~~
src/pages/[owner]/[repo]/settings/deploy-keys.astro:55:14 - error ts(2339): Property 'deployKeys' does not exist on type 'typeof import("/home/swadhin/owngit/OpenCodeHub/src/db/schema/index")'.

55   if (schema.deployKeys) {
                ~~~~~~~~~~

src/pages/[owner]/[repo]/settings/index.astro:240:32 - error ts(18047): 'repo.isArchived' is possibly 'null'.

240                 data-archived={repo.isArchived.toString()}
                                   ~~~~~~~~~~~~~~~
src/pages/[owner]/[repo]/settings/index.astro:267:9 - warning astro(4000): This script will be treated as if it has the `is:inline` directive because it contains an attribute. Therefore, features that require processing (e.g. using TypeScript or npm packages in the script) are unavailable.

See docs for more details: https://docs.astro.build/en/guides/client-side-scripts/#script-processing.

Add the `is:inline` directive explicitly to silence this hint.

267 <script define:vars={{ owner: repo.owner, repo: repo.name }}>
            ~~~~~~~~~~~

src/pages/[owner]/[repo]/settings/webhooks.astro:237:52 - error ts(2322): Type '{ class: string; }' is not assignable to type 'IntrinsicAttributes & Omit<LucideProps, "ref"> & RefAttributes<SVGSVGElement>'.
  Property 'class' does not exist on type 'IntrinsicAttributes & Omit<LucideProps, "ref"> & RefAttributes<SVGSVGElement>'. Did you mean 'className'?

237                             {webhook.isActive ? <X class="h-4 w-4" /> : <Check className="h-4 w-4" />}
                                                       ~~~~~
src/pages/[owner]/[repo]/settings/webhooks.astro:237:38 - error ts(2551): Property 'isActive' does not exist on type '{ id: string; createdAt: string; updatedAt: string; repositoryId: string; active: boolean; createdById: string | null; url: string; secret: string | null; events: unknown; contentType: string; deliveryCount: number | null; lastDeliveryStatus: string | null; lastDeliveryAt: string | null; }'. Did you mean 'active'?

237                             {webhook.isActive ? <X class="h-4 w-4" /> : <Check className="h-4 w-4" />}
                                         ~~~~~~~~
src/pages/[owner]/[repo]/settings/webhooks.astro:235:44 - error ts(2551): Property 'isActive' does not exist on type '{ id: string; createdAt: string; updatedAt: string; repositoryId: string; active: boolean; createdById: string | null; url: string; secret: string | null; events: unknown; contentType: string; deliveryCount: number | null; lastDeliveryStatus: string | null; lastDeliveryAt: string | null; }'. Did you mean 'active'?

235                             title={webhook.isActive ? "Disable" : "Enable"}
                                               ~~~~~~~~
src/pages/[owner]/[repo]/settings/webhooks.astro:234:50 - error ts(2551): Property 'isActive' does not exist on type '{ id: string; createdAt: string; updatedAt: string; repositoryId: string; active: boolean; createdById: string | null; url: string; secret: string | null; events: unknown; contentType: string; deliveryCount: number | null; lastDeliveryStatus: string | null; lastDeliveryAt: string | null; }'. Did you mean 'active'?

234                             data-active={webhook.isActive}
                                                     ~~~~~~~~
src/pages/[owner]/[repo]/settings/webhooks.astro:221:70 - error ts(2365): Operator '<' cannot be applied to types 'string' and 'number'.

221                                 webhook.lastDeliveryStatus >= 200 && webhook.lastDeliveryStatus < 300 ? (
                                                                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/pages/[owner]/[repo]/settings/webhooks.astro:221:33 - error ts(2365): Operator '>=' cannot be applied to types 'string' and 'number'.

221                                 webhook.lastDeliveryStatus >= 200 && webhook.lastDeliveryStatus < 300 ? (
                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/pages/[owner]/[repo]/settings/webhooks.astro:205:38 - error ts(2551): Property 'isActive' does not exist on type '{ id: string; createdAt: string; updatedAt: string; repositoryId: string; active: boolean; createdById: string | null; url: string; secret: string | null; events: unknown; contentType: string; deliveryCount: number | null; lastDeliveryStatus: string | null; lastDeliveryAt: string | null; }'. Did you mean 'active'?

205                             {webhook.isActive ? (
                                         ~~~~~~~~
src/pages/[owner]/[repo]/settings/webhooks.astro:199:45 - error ts(2345): Argument of type '{}' is not assignable to parameter of type 'string'.

199                   const events = JSON.parse(webhook.events || "[]");
                                                ~~~~~~~~~~~~~~~~~~~~~~
src/pages/[owner]/[repo]/settings/webhooks.astro:267:9 - warning astro(4000): This script will be treated as if it has the `is:inline` directive because it contains an attribute. Therefore, features that require processing (e.g. using TypeScript or npm packages in the script) are unavailable.

See docs for more details: https://docs.astro.build/en/guides/client-side-scripts/#script-processing.

Add the `is:inline` directive explicitly to silence this hint.

267 <script define:vars={{ owner: repo.owner, repo: repo.name }}>
            ~~~~~~~~~~~

src/pages/[owner]/[repo]/settings/actions/runners.astro:15:18 - warning ts(6133): 'Terminal' is declared but its value is never read.

15 import { Server, Terminal, Copy } from "lucide-react";
                    ~~~~~~~~
src/pages/[owner]/[repo]/settings/actions/runners.astro:210:9 - warning astro(4000): This script will be treated as if it has the `is:inline` directive because it contains an attribute. Therefore, features that require processing (e.g. using TypeScript or npm packages in the script) are unavailable.

See docs for more details: https://docs.astro.build/en/guides/client-side-scripts/#script-processing.

Add the `is:inline` directive explicitly to silence this hint.

210 <script define:vars={{ repoId: repoData.id }}>
            ~~~~~~~~~~~

src/pages/[owner]/[repo]/settings/branches/[id].astro:117:9 - warning astro(4000): This script will be treated as if it has the `is:inline` directive because it contains an attribute. Therefore, features that require processing (e.g. using TypeScript or npm packages in the script) are unavailable.

See docs for more details: https://docs.astro.build/en/guides/client-side-scripts/#script-processing.

Add the `is:inline` directive explicitly to silence this hint.

117 <script define:vars={{ repoId: repository.id, ruleId: rule.id, owner, repo }}>
            ~~~~~~~~~~~

src/pages/[owner]/[repo]/settings/branches/index.astro:84:3 - error ts(2304): Cannot find name 'Layout'.

84 </Layout>
     ~~~~~~
src/pages/[owner]/[repo]/settings/branches/index.astro:59:20 - error ts(18047): 'rule.requiredApprovals' is possibly 'null'.

59                   {rule.requiredApprovals > 0 && <span>• {rule.requiredApprovals} Approval(s)</span>}
                      ~~~~~~~~~~~~~~~~~~~~~~
src/pages/[owner]/[repo]/settings/branches/index.astro:26:2 - error ts(2304): Cannot find name 'Layout'.

26 <Layout title={`Branch Protection - ${owner}/${repo}`}>
    ~~~~~~
src/pages/[owner]/[repo]/settings/branches/index.astro:2:30 - error ts(2307): Cannot find module '@/layouts/RepositoryLayout.astro' or its corresponding type declarations.

2 import RepositoryLayout from "@/layouts/RepositoryLayout.astro";
                               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/pages/[owner]/[repo]/settings/branches/index.astro:4:14 - warning ts(6133): 'and' is declared but its value is never read.

4 import { eq, and } from "drizzle-orm";
               ~~~
src/pages/[owner]/[repo]/settings/branches/index.astro:2:1 - warning ts(6133): 'RepositoryLayout' is declared but its value is never read.

2 import RepositoryLayout from "@/layouts/RepositoryLayout.astro";
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

src/pages/[owner]/[repo]/settings/branches/new.astro:97:3 - error ts(2304): Cannot find name 'Layout'.

97 </Layout>
     ~~~~~~
src/pages/[owner]/[repo]/settings/branches/new.astro:21:2 - error ts(2304): Cannot find name 'Layout'.

21 <Layout title={`New Branch Protection Rule - ${owner}/${repo}`}>
    ~~~~~~
src/pages/[owner]/[repo]/settings/branches/new.astro:2:1 - warning ts(6133): 'SettingsLayout' is declared but its value is never read.

2 import SettingsLayout from "@/layouts/SettingsLayout.astro";
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/pages/[owner]/[repo]/settings/branches/new.astro:99:9 - warning astro(4000): This script will be treated as if it has the `is:inline` directive because it contains an attribute. Therefore, features that require processing (e.g. using TypeScript or npm packages in the script) are unavailable.

See docs for more details: https://docs.astro.build/en/guides/client-side-scripts/#script-processing.

Add the `is:inline` directive explicitly to silence this hint.

99 <script define:vars={{ repoId: repository.id, owner, repo }}>
           ~~~~~~~~~~~

src/pages/[owner]/[repo]/settings/webhooks/[id].astro:5:19 - warning ts(6133): 'desc' is declared but its value is never read.

5 import { eq, and, desc } from "drizzle-orm";
                    ~~~~
src/pages/[owner]/[repo]/settings/webhooks/[id].astro:176:9 - warning astro(4000): This script will be treated as if it has the `is:inline` directive because it contains an attribute. Therefore, features that require processing (e.g. using TypeScript or npm packages in the script) are unavailable.

See docs for more details: https://docs.astro.build/en/guides/client-side-scripts/#script-processing.

Add the `is:inline` directive explicitly to silence this hint.

176 <script define:vars={{ repoId: repo.id, owner: repo.owner, repoName: repo.name, webhookId: webhook.id }}>
            ~~~~~~~~~~~

src/pages/[owner]/[repo]/settings/webhooks/index.astro:120:52 - error ts(2551): Property 'isActive' does not exist on type '{ id: string; createdAt: string; updatedAt: string; repositoryId: string; active: boolean; createdById: string | null; url: string; secret: string | null; events: unknown; contentType: string; deliveryCount: number | null; lastDeliveryStatus: string | null; lastDeliveryAt: string | null; }'. Did you mean 'active'?

120                                             {!hook.isActive && (
                                                       ~~~~~~~~
src/pages/[owner]/[repo]/settings/webhooks/index.astro:7:52 - warning ts(6133): 'MoreVertical' is declared but its value is never read.

7 import { Plus, CheckCircle2, XCircle, AlertCircle, MoreVertical } from "lucide-react";
                                                     ~~~~~~~~~~~~
src/pages/[owner]/[repo]/settings/webhooks/index.astro:7:39 - warning ts(6133): 'AlertCircle' is declared but its value is never read.

7 import { Plus, CheckCircle2, XCircle, AlertCircle, MoreVertical } from "lucide-react";
                                        ~~~~~~~~~~~
src/pages/[owner]/[repo]/settings/webhooks/index.astro:161:9 - warning astro(4000): This script will be treated as if it has the `is:inline` directive because it contains an attribute. Therefore, features that require processing (e.g. using TypeScript or npm packages in the script) are unavailable.

See docs for more details: https://docs.astro.build/en/guides/client-side-scripts/#script-processing.

Add the `is:inline` directive explicitly to silence this hint.

161 <script define:vars={{ repoId: repo.id }}>
            ~~~~~~~~~~~

src/pages/[owner]/[repo]/settings/webhooks/new.astro:187:9 - warning astro(4000): This script will be treated as if it has the `is:inline` directive because it contains an attribute. Therefore, features that require processing (e.g. using TypeScript or npm packages in the script) are unavailable.

See docs for more details: https://docs.astro.build/en/guides/client-side-scripts/#script-processing.

Add the `is:inline` directive explicitly to silence this hint.

187 <script define:vars={{ repoId: repo.id, owner: repo.owner, repoName: repo.name }}>
            ~~~~~~~~~~~

src/pages/[owner]/[repo]/tree/[...ref].astro:70:42 - error ts(2339): Property 'count' does not exist on type '{ id: string; repositoryId: string; number: number; title: string; body: string | null; state: string; authorId: string; assigneeId: string | null; milestoneId: string | null; isPinned: boolean | null; ... 7 more ...; updatedAt: string; }'.

70 const openIssueCount = issueCountResult?.count || 0;
                                            ~~~~~
src/pages/[owner]/[repo]/tree/[...ref].astro:60:11 - error ts(2554): Expected 0 arguments, but got 1.

60   .select({ count: sql<number>`count(*)` })
             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/pages/[owner]/[repo]/tree/[...ref].astro:6:3 - warning ts(6133): 'Tag' is declared but its value is never read.

6   Tag,
    ~~~

src/pages/[owner]/[repo]/tree/[branch]/[...path].astro:63:42 - error ts(2339): Property 'count' does not exist on type '{ id: string; repositoryId: string; number: number; title: string; body: string | null; state: string; authorId: string; assigneeId: string | null; milestoneId: string | null; isPinned: boolean | null; ... 7 more ...; updatedAt: string; }'.

63 const openIssueCount = issueCountResult?.count || 0;
                                            ~~~~~
src/pages/[owner]/[repo]/tree/[branch]/[...path].astro:53:11 - error ts(2554): Expected 0 arguments, but got 1.

53   .select({ count: sql<number>`count(*)` })
             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/pages/[owner]/[repo]/tree/[branch]/[...path].astro:11:3 - warning ts(6133): 'FileText' is declared but its value is never read.

11   FileText,
     ~~~~~~~~
src/pages/[owner]/[repo]/tree/[branch]/[...path].astro:6:3 - warning ts(6133): 'Tag' is declared but its value is never read.

6   Tag,
    ~~~

src/pages/[owner]/[repo].git/[...path].ts:113:38 - error ts(2345): Argument of type 'string | null' is not assignable to parameter of type 'string | undefined'.
  Type 'null' is not assignable to type 'string | undefined'.

113       hasAccess = await canWriteRepo(userId, repoData);
                                         ~~~~~~
src/pages/[owner]/[repo].git/[...path].ts:111:37 - error ts(2345): Argument of type 'string | null' is not assignable to parameter of type 'string | undefined'.
  Type 'null' is not assignable to type 'string | undefined'.

111       hasAccess = await canReadRepo(userId, repoData);
                                        ~~~~~~

src/pages/admin/audit.astro:76:28 - error ts(2339): Property 'count' does not exist on type '{ id: string; userId: string | null; repositoryId: string | null; action: string; actorType: string; actorId: string | null; actorIp: string | null; actorUserAgent: string | null; targetType: string | null; targetId: string | null; targetName: string | null; data: string | null; createdAt: string; }'.

76 const total = totalResult?.count || 0;
                              ~~~~~
src/pages/admin/audit.astro:70:13 - error ts(2554): Expected 0 arguments, but got 1.

70   db.select({ count: sql<number>`count(*)` })
               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/pages/admin/audit.astro:18:3 - warning ts(6133): 'ExternalLink' is declared but its value is never read.

18   ExternalLink
     ~~~~~~~~~~~~
src/pages/admin/audit.astro:4:27 - warning ts(6133): 'eq' is declared but its value is never read.

4 import { desc, sql, like, eq, or } from "drizzle-orm";
                            ~~

src/pages/admin/repositories.astro:45:28 - error ts(2339): Property 'count' does not exist on type '{ id: string; name: string; slug: string; description: string | null; ownerId: string; ownerType: string; visibility: string; defaultBranch: string; diskPath: string; sshCloneUrl: string | null; ... 23 more ...; updatedAt: string; }'.

45 const total = totalResult?.count || 0;
                              ~~~~~
src/pages/admin/repositories.astro:39:15 - error ts(2554): Expected 0 arguments, but got 1.

39     db.select({ count: sql<number>`count(*)` })
                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/pages/admin/repositories.astro:4:16 - warning ts(6133): 'eq' is declared but its value is never read.

4 import { desc, eq, like, or, sql } from "drizzle-orm";
                 ~~

src/pages/admin/settings.astro:7:10 - error ts(2440): Import declaration conflicts with local declaration of 'Settings'.

7 import { Settings, Save, Mail, Globe, Lock } from "lucide-react";
           ~~~~~~~~
src/pages/admin/settings.astro:169:17 - error ts(2339): Property 'disabled' does not exist on type 'HTMLElement'.

169             btn.disabled = false;
                    ~~~~~~~~
src/pages/admin/settings.astro:169:13 - error ts(18047): 'btn' is possibly 'null'.

169             btn.disabled = false;
                ~~~
src/pages/admin/settings.astro:168:13 - error ts(18047): 'btn' is possibly 'null'.

168             btn.textContent = original;
                ~~~
src/pages/admin/settings.astro:152:69 - error ts(2339): Property 'checked' does not exist on type 'HTMLElement'.

152         data.allowSignups = document.getElementById('allowSignups').checked;
                                                                        ~~~~~~~
src/pages/admin/settings.astro:152:29 - error ts(2531): Object is possibly 'null'.

152         data.allowSignups = document.getElementById('allowSignups').checked;
                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/pages/admin/settings.astro:148:39 - error ts(2345): Argument of type 'EventTarget | null' is not assignable to parameter of type 'HTMLFormElement | undefined'.
  Type 'null' is not assignable to type 'HTMLFormElement | undefined'.

148         const formData = new FormData(e.target);
                                          ~~~~~~~~
src/pages/admin/settings.astro:146:13 - error ts(2339): Property 'disabled' does not exist on type 'HTMLElement'.

146         btn.disabled = true;
                ~~~~~~~~
src/pages/admin/settings.astro:146:9 - error ts(18047): 'btn' is possibly 'null'.

146         btn.disabled = true;
            ~~~
src/pages/admin/settings.astro:145:9 - error ts(18047): 'btn' is possibly 'null'.

145         btn.textContent = "Saving...";
            ~~~
src/pages/admin/settings.astro:144:26 - error ts(18047): 'btn' is possibly 'null'.

144         const original = btn.textContent;
                             ~~~
src/pages/admin/settings.astro:133:53 - error ts(2339): Property 'value' does not exist on type 'HTMLElement'.

133                 document.getElementById('smtpFrom').value = config.smtpFrom || '';
                                                        ~~~~~
src/pages/admin/settings.astro:133:17 - error ts(2531): Object is possibly 'null'.

133                 document.getElementById('smtpFrom').value = config.smtpFrom || '';
                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/pages/admin/settings.astro:132:53 - error ts(2339): Property 'value' does not exist on type 'HTMLElement'.

132                 document.getElementById('smtpUser').value = config.smtpUser || '';
                                                        ~~~~~
src/pages/admin/settings.astro:132:17 - error ts(2531): Object is possibly 'null'.

132                 document.getElementById('smtpUser').value = config.smtpUser || '';
                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/pages/admin/settings.astro:131:53 - error ts(2339): Property 'value' does not exist on type 'HTMLElement'.

131                 document.getElementById('smtpPort').value = config.smtpPort || '';
                                                        ~~~~~
src/pages/admin/settings.astro:131:17 - error ts(2531): Object is possibly 'null'.

131                 document.getElementById('smtpPort').value = config.smtpPort || '';
                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/pages/admin/settings.astro:130:53 - error ts(2339): Property 'value' does not exist on type 'HTMLElement'.

130                 document.getElementById('smtpHost').value = config.smtpHost || '';
                                                        ~~~~~
src/pages/admin/settings.astro:130:17 - error ts(2531): Object is possibly 'null'.

130                 document.getElementById('smtpHost').value = config.smtpHost || '';
                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/pages/admin/settings.astro:128:57 - error ts(2339): Property 'checked' does not exist on type 'HTMLElement'.

128                 document.getElementById('allowSignups').checked = !!config.allowSignups;
                                                            ~~~~~~~
src/pages/admin/settings.astro:128:17 - error ts(2531): Object is possibly 'null'.

128                 document.getElementById('allowSignups').checked = !!config.allowSignups;
                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/pages/admin/settings.astro:127:60 - error ts(2339): Property 'value' does not exist on type 'HTMLElement'.

127                 document.getElementById('siteDescription').value = config.siteDescription || '';
                                                               ~~~~~
src/pages/admin/settings.astro:127:17 - error ts(2531): Object is possibly 'null'.

127                 document.getElementById('siteDescription').value = config.siteDescription || '';
                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/pages/admin/settings.astro:126:53 - error ts(2339): Property 'value' does not exist on type 'HTMLElement'.

126                 document.getElementById('siteName').value = config.siteName || '';
                                                        ~~~~~
src/pages/admin/settings.astro:126:17 - error ts(2531): Object is possibly 'null'.

126                 document.getElementById('siteName').value = config.siteName || '';
                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

src/pages/admin/users.astro:106:58 - error ts(2339): Property 'count' does not exist on type '{ id: string; username: string; email: string; passwordHash: string | null; displayName: string | null; bio: string | null; avatarUrl: string | null; location: string | null; website: string | null; ... 8 more ...; updatedAt: string; }'.

106               <p class="text-2xl font-bold">{adminUsers?.count || 0}</p>
                                                             ~~~~~
src/pages/admin/users.astro:95:59 - error ts(2339): Property 'count' does not exist on type '{ id: string; username: string; email: string; passwordHash: string | null; displayName: string | null; bio: string | null; avatarUrl: string | null; location: string | null; website: string | null; ... 8 more ...; updatedAt: string; }'.

95               <p class="text-2xl font-bold">{activeUsers?.count || 0}</p>
                                                             ~~~~~
src/pages/admin/users.astro:84:58 - error ts(2339): Property 'count' does not exist on type '{ id: string; username: string; email: string; passwordHash: string | null; displayName: string | null; bio: string | null; avatarUrl: string | null; location: string | null; website: string | null; ... 8 more ...; updatedAt: string; }'.

84               <p class="text-2xl font-bold">{totalUsers?.count || 0}</p>
                                                            ~~~~~
src/pages/admin/users.astro:54:13 - error ts(2554): Expected 0 arguments, but got 1.

54   db.select({ count: sql<number>`count(*)` }).from(schema.users).where(eq(schema.users.isAdmin, true)).get(),
               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/pages/admin/users.astro:53:13 - error ts(2554): Expected 0 arguments, but got 1.

53   db.select({ count: sql<number>`count(*)` }).from(schema.users).where(eq(schema.users.isActive, true)).get(),
               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/pages/admin/users.astro:52:13 - error ts(2554): Expected 0 arguments, but got 1.

52   db.select({ count: sql<number>`count(*)` }).from(schema.users).get(),
               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/pages/admin/users.astro:47:28 - error ts(2339): Property 'count' does not exist on type '{ id: string; username: string; email: string; passwordHash: string | null; displayName: string | null; bio: string | null; avatarUrl: string | null; location: string | null; website: string | null; ... 8 more ...; updatedAt: string; }'.

47 const total = totalResult?.count || 0;
                              ~~~~~
src/pages/admin/users.astro:41:13 - error ts(2554): Expected 0 arguments, but got 1.

41   db.select({ count: sql<number>`count(*)` })
               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/pages/admin/users.astro:8:10 - error ts(2440): Import declaration conflicts with local declaration of 'Users'.

8 import { Users, Shield, Ban, CheckCircle, Search, ChevronLeft, ChevronRight } from "lucide-react";
           ~~~~~
src/pages/admin/users.astro:277:28 - error ts(2339): Property 'dataset' does not exist on type 'Element'.

277       const isActive = btn.dataset.isActive === 'true';
                               ~~~~~~~
src/pages/admin/users.astro:276:26 - error ts(2339): Property 'dataset' does not exist on type 'Element'.

276       const userId = btn.dataset.userId;
                             ~~~~~~~
src/pages/admin/users.astro:254:27 - error ts(2339): Property 'dataset' does not exist on type 'Element'.

254       const isAdmin = btn.dataset.isAdmin === 'true';
                              ~~~~~~~
src/pages/admin/users.astro:253:26 - error ts(2339): Property 'dataset' does not exist on type 'Element'.

253       const userId = btn.dataset.userId;
                             ~~~~~~~

src/pages/api/search.ts:3:25 - warning ts(6133): 'eq' is declared but its value is never read.

3 import { like, or, and, eq, desc } from 'drizzle-orm';
                          ~~
src/pages/api/search.ts:3:20 - warning ts(6133): 'and' is declared but its value is never read.

3 import { like, or, and, eq, desc } from 'drizzle-orm';
                     ~~~

src/pages/api/actions/trigger-test.ts:6:57 - warning ts(6133): 'notFound' is declared but its value is never read.

6 import { success, unauthorized, serverError, parseBody, notFound } from '@/lib/api';
                                                          ~~~~~~~~
src/pages/api/actions/trigger-test.ts:4:1 - warning ts(6192): All imports in import declaration are unused.

4 import { eq, and } from 'drizzle-orm';
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

src/pages/api/actions/runners/register.ts:6:19 - warning ts(6133): 'badRequest' is declared but its value is never read.

6 import { success, badRequest, unauthorized, serverError, parseBody } from '@/lib/api';
                    ~~~~~~~~~~

src/pages/api/actions/runners/job/[id]/complete.ts:23:43 - warning ts(6133): 'exitCode' is declared but its value is never read.

23         const { runnerId, secret, status, exitCode } = parsed.data;
                                             ~~~~~~~~
src/pages/api/actions/runners/job/[id]/complete.ts:4:14 - warning ts(6133): 'and' is declared but its value is never read.

4 import { eq, and } from 'drizzle-orm';
               ~~~

src/pages/api/admin/stats.ts:201:45 - error ts(2339): Property 'count' does not exist on type '{ id: string; repositoryId: string; number: number; title: string; body: string | null; state: string; authorId: string; assigneeId: string | null; milestoneId: string | null; isPinned: boolean | null; ... 7 more ...; updatedAt: string; }'.

201                 issuesClosed: issuesClosed?.count || 0,
                                                ~~~~~
src/pages/api/admin/stats.ts:200:39 - error ts(2339): Property 'count' does not exist on type '{ id: string; repositoryId: string; number: number; title: string; body: string | null; state: string; authorId: string; assigneeId: string | null; milestoneId: string | null; headBranch: string; ... 25 more ...; updatedAt: string; }'.

200                 prsMerged: prsMerged?.count || 0,
                                          ~~~~~
src/pages/api/admin/stats.ts:199:45 - error ts(2339): Property 'count' does not exist on type '{ id: string; repositoryId: string; sha: string; message: string; authorName: string; authorEmail: string; authorDate: string; committerName: string; committerEmail: string; committerDate: string; ... 6 more ...; createdAt: string; }'.

199                 commitsToday: commitsToday?.count || 0,
                                                ~~~~~
src/pages/api/admin/stats.ts:185:33 - error ts(2339): Property 'count' does not exist on type '{ id: string; repositoryId: string; number: number; title: string; body: string | null; state: string; authorId: string; assigneeId: string | null; milestoneId: string | null; headBranch: string; ... 25 more ...; updatedAt: string; }'.

185                 count: prCount?.count || 0,
                                    ~~~~~
src/pages/api/admin/stats.ts:158:38 - error ts(2339): Property 'count' does not exist on type '{ id: string; repositoryId: string; number: number; title: string; body: string | null; state: string; authorId: string; assigneeId: string | null; milestoneId: string | null; headBranch: string; ... 25 more ...; updatedAt: string; }'.

158             collaborations: prCount?.count || 0,
                                         ~~~~~
src/pages/api/admin/stats.ts:157:36 - error ts(2339): Property 'count' does not exist on type '{ id: string; username: string; email: string; passwordHash: string | null; displayName: string | null; bio: string | null; avatarUrl: string | null; location: string | null; website: string | null; ... 8 more ...; updatedAt: string; }'.

157             totalUsers: userCount?.count || 0,
                                       ~~~~~
src/pages/api/admin/stats.ts:156:36 - error ts(2339): Property 'count' does not exist on type '{ id: string; name: string; slug: string; description: string | null; ownerId: string; ownerType: string; visibility: string; defaultBranch: string; diskPath: string; sshCloneUrl: string | null; ... 23 more ...; updatedAt: string; }'.

156             totalRepos: repoCount?.count || 0,
                                       ~~~~~
src/pages/api/admin/stats.ts:115:58 - error ts(2554): Expected 0 arguments, but got 1.

115         const activeUsersCount = await db.selectDistinct({ userId: schema.activities.userId })
                                                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/pages/api/admin/stats.ts:109:46 - error ts(2554): Expected 0 arguments, but got 1.

109         const issuesClosed = await db.select({ count: sql<number>`count(*)` })
                                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/pages/api/admin/stats.ts:103:43 - error ts(2554): Expected 0 arguments, but got 1.

103         const prsMerged = await db.select({ count: sql<number>`count(*)` })
                                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/pages/api/admin/stats.ts:97:46 - error ts(2554): Expected 0 arguments, but got 1.

97         const commitsToday = await db.select({ count: sql<number>`count(*)` })
                                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/pages/api/admin/stats.ts:48:42 - error ts(2554): Expected 0 arguments, but got 1.

48         const allRepos = await db.select({ languages: schema.repositories.languages }).from(schema.repositories);
                                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/pages/api/admin/stats.ts:34:44 - error ts(2554): Expected 0 arguments, but got 1.

34         const allCommits = await db.select({ stats: schema.commits.stats }).from(schema.commits);
                                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/pages/api/admin/stats.ts:15:44 - error ts(2554): Expected 0 arguments, but got 1.

15         const issueCount = await db.select({ count: sql<number>`count(*)` }).from(schema.issues).get();
                                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/pages/api/admin/stats.ts:14:41 - error ts(2554): Expected 0 arguments, but got 1.

14         const prCount = await db.select({ count: sql<number>`count(*)` }).from(schema.pullRequests).get();
                                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/pages/api/admin/stats.ts:13:43 - error ts(2554): Expected 0 arguments, but got 1.

13         const userCount = await db.select({ count: sql<number>`count(*)` }).from(schema.users).get();
                                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/pages/api/admin/stats.ts:12:43 - error ts(2554): Expected 0 arguments, but got 1.

12         const repoCount = await db.select({ count: sql<number>`count(*)` }).from(schema.repositories).get();
                                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/pages/api/admin/stats.ts:15:15 - warning ts(6133): 'issueCount' is declared but its value is never read.

15         const issueCount = await db.select({ count: sql<number>`count(*)` }).from(schema.issues).get();
                 ~~~~~~~~~~
src/pages/api/admin/stats.ts:7:37 - warning ts(6133): 'locals' is declared but its value is never read.

7 export const GET: APIRoute = async ({ locals }) => {
                                      ~~~~~~~~~~
src/pages/api/admin/stats.ts:3:30 - warning ts(6133): 'and' is declared but its value is never read.

3 import { sql, desc, eq, gte, and } from "drizzle-orm";
                               ~~~

src/pages/api/admin/config/general.ts:6:39 - warning ts(6133): 'request' is declared but its value is never read.

6 export const GET: APIRoute = async ({ request, locals }) => {
                                        ~~~~~~~

src/pages/api/admin/config/storage.ts:7:39 - warning ts(6133): 'request' is declared but its value is never read.

7 export const GET: APIRoute = async ({ request, locals }) => {
                                        ~~~~~~~
src/pages/api/admin/config/storage.ts:3:1 - warning ts(6133): 'eq' is declared but its value is never read.

3 import { eq } from "drizzle-orm";
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/pages/api/admin/config/storage.ts:2:1 - warning ts(6192): All imports in import declaration are unused.

2 import { getDatabase, schema } from "@/db";
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/pages/api/admin/config/storage.ts:1:10 - warning ts(6133): 'getStorage' is declared but its value is never read.

1 import { getStorage, updateStorageConfig } from "@/lib/storage";
           ~~~~~~~~~~

src/pages/api/admin/users/[userId].ts:8:31 - warning ts(6133): 'unauthorized' is declared but its value is never read.

8 import { success, badRequest, unauthorized, notFound, serverError, forbidden } from '@/lib/api';
                                ~~~~~~~~~~~~

src/pages/api/auth/password.ts:47:59 - error ts(2769): No overload matches this call.
  Overload 1 of 2, '(s: string, hash: string): Promise<boolean>', gave the following error.
    Argument of type 'string | null' is not assignable to parameter of type 'string'.
      Type 'null' is not assignable to type 'string'.
  Overload 2 of 2, '(s: string, hash: string, callback?: ((err: Error | null, success: boolean) => void) | undefined, progressCallback?: ((percent: number) => void) | undefined): void', gave the following error.
    Argument of type 'string | null' is not assignable to parameter of type 'string'.
      Type 'null' is not assignable to type 'string'.

47     const isValid = await bcrypt.compare(currentPassword, user.passwordHash);
                                                             ~~~~~~~~~~~~~~~~~
src/pages/api/auth/password.ts:47:21 - warning ts(80007): 'await' has no effect on the type of this expression.

47     const isValid = await bcrypt.compare(currentPassword, user.passwordHash);
                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

src/pages/api/auth/github/index.ts:4:7 - warning ts(6133): 'GITHUB_CLIENT_SECRET' is declared but its value is never read.

4 const GITHUB_CLIENT_SECRET = import.meta.env.OAUTH_GITHUB_CLIENT_SECRET;
        ~~~~~~~~~~~~~~~~~~~~

src/pages/api/cron/gc.ts:7:7 - warning ts(6133): 'exec' is declared but its value is never read.

7 const exec = promisify(require("child_process").exec);
        ~~~~

src/pages/api/repos/index.ts:113:35 - error ts(2339): Property 'count' does not exist on type '{ id: string; name: string; slug: string; description: string | null; ownerId: string; ownerType: string; visibility: string; defaultBranch: string; diskPath: string; sshCloneUrl: string | null; ... 23 more ...; updatedAt: string; }'.

113     const total = countResult[0]?.count || 0;
                                      ~~~~~
src/pages/api/repos/index.ts:109:15 - error ts(2554): Expected 0 arguments, but got 1.

109       .select({ count: sql<number>`count(*)` })
                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/pages/api/repos/index.ts:9:24 - warning ts(6133): 'repositoryCollaborators' is declared but its value is never read.

9 import { repositories, repositoryCollaborators, users } from '@/db/schema';
                         ~~~~~~~~~~~~~~~~~~~~~~~

src/pages/api/repos/[owner]/[repo]/branches/[branch].ts:7:50 - warning ts(6133): 'request' is declared but its value is never read.

7 export const DELETE: APIRoute = async ({ params, request, locals }) => {
                                                   ~~~~~~~

src/pages/api/repos/[owner]/[repo]/branches/index.ts:7:47 - warning ts(6133): 'request' is declared but its value is never read.

7 export const GET: APIRoute = async ({ params, request, locals }) => {
                                                ~~~~~~~

src/pages/api/repos/[owner]/[repo]/labels/index.ts:14:47 - warning ts(6133): 'request' is declared but its value is never read.

14 export const GET: APIRoute = async ({ params, request }) => {
                                                 ~~~~~~~

src/pages/api/repos/[owner]/[repo]/pulls/index.ts:3:10 - warning ts(6133): 'canReadRepo' is declared but its value is never read.

3 import { canReadRepo, canWriteRepo } from "@/lib/permissions";
           ~~~~~~~~~~~
src/pages/api/repos/[owner]/[repo]/pulls/index.ts:2:38 - warning ts(6133): 'getMergeBase' is declared but its value is never read.

2 import { compareBranches, getCommit, getMergeBase } from "@/lib/git";
                                       ~~~~~~~~~~~~

src/pages/api/repos/[owner]/[repo]/pulls/[number]/merge.ts:7:48 - warning ts(6133): 'request' is declared but its value is never read.

7 export const POST: APIRoute = async ({ params, request, locals }) => {
                                                 ~~~~~~~

src/pages/api/repos/[owner]/[repo]/security/index.ts:6:47 - warning ts(6133): 'request' is declared but its value is never read.

6 export const GET: APIRoute = async ({ params, request, locals }) => {
                                                ~~~~~~~

src/pages/api/repos/[owner]/[repo]/webhooks/index.ts:121:35 - error ts(2769): No overload matches this call.
  Overload 1 of 2, '(value: { id: string | SQL<unknown> | Placeholder<string, any>; repositoryId: string | SQL<unknown> | Placeholder<string, any>; url: string | SQL<unknown> | Placeholder<...>; ... 9 more ...; lastDeliveryAt?: string | ... 3 more ... | undefined; }): SQLiteInsertBase<...> | SQLiteInsertBase<...>', gave the following error.
    Object literal may only specify known properties, but 'isActive' does not exist in type '{ id: string | SQL<unknown> | Placeholder<string, any>; repositoryId: string | SQL<unknown> | Placeholder<string, any>; url: string | SQL<unknown> | Placeholder<string, any>; ... 9 more ...; lastDeliveryAt?: string | ... 3 more ... | undefined; }'. Did you mean to write 'active'?
  Overload 2 of 2, '(values: { id: string | SQL<unknown> | Placeholder<string, any>; repositoryId: string | SQL<unknown> | Placeholder<string, any>; url: string | SQL<unknown> | Placeholder<...>; ... 9 more ...; lastDeliveryAt?: string | ... 3 more ... | undefined; }[]): SQLiteInsertBase<...> | SQLiteInsertBase<...>', gave the following error.
    Object literal may only specify known properties, and 'id' does not exist in type '{ id: string | SQL<unknown> | Placeholder<string, any>; repositoryId: string | SQL<unknown> | Placeholder<string, any>; url: string | SQL<unknown> | Placeholder<string, any>; ... 9 more ...; lastDeliveryAt?: string | ... 3 more ... | undefined; }[]'.

121         await db.insert(webhooks).values({
                                      ~~~~~~
src/pages/api/repos/[owner]/[repo]/webhooks/index.ts:54:29 - error ts(2551): Property 'isActive' does not exist on type '{ id: string; createdAt: string; updatedAt: string; repositoryId: string; active: boolean; createdById: string | null; url: string; secret: string | null; events: unknown; contentType: string; deliveryCount: number | null; lastDeliveryStatus: string | null; lastDeliveryAt: string | null; }'. Did you mean 'active'?

54                 isActive: h.isActive,
                               ~~~~~~~~
src/pages/api/repos/[owner]/[repo]/webhooks/index.ts:53:36 - error ts(2345): Argument of type '{}' is not assignable to parameter of type 'string'.

53                 events: JSON.parse(h.events || '[]'),
                                      ~~~~~~~~~~~~~~~~

src/pages/api/repos/[owner]/[repo]/webhooks/[id]/test.ts:106:17 - error ts(2322): Type 'number' is not assignable to type 'string | SQL<unknown> | SQLiteColumn<ColumnBaseConfig<ColumnDataType, string>, {}, {}> | null | undefined'.

106                 lastDeliveryStatus: status,
                    ~~~~~~~~~~~~~~~~~~

src/pages/api/repos/[repoId]/branch-protection/[id].ts:5:50 - warning ts(6133): 'request' is declared but its value is never read.

5 export const DELETE: APIRoute = async ({ params, request }) => {
                                                   ~~~~~~~

src/pages/api/repos/[repoId]/webhooks/index.ts:24:46 - warning ts(6133): 'content_type' is declared but its value is never read.

24         const { url, secret, events, active, content_type } = body;
                                                ~~~~~~~~~~~~

src/pages/api/repos/stacks/[stackId].ts:8:51 - warning ts(6133): 'updateStackStatus' is declared but its value is never read.

8 import { getStack, reorderStack, removeFromStack, updateStackStatus } from "@/lib/stacks";
                                                    ~~~~~~~~~~~~~~~~~
src/pages/api/repos/stacks/[stackId].ts:8:34 - warning ts(6133): 'removeFromStack' is declared but its value is never read.

8 import { getStack, reorderStack, removeFromStack, updateStackStatus } from "@/lib/stacks";
                                   ~~~~~~~~~~~~~~~

src/pages/api/repos/stacks/index.ts:13:55 - warning ts(6133): 'url' is declared but its value is never read.

13 export const GET: APIRoute = async ({ params, locals, url }) => {
                                                         ~~~
src/pages/api/repos/stacks/index.ts:9:14 - warning ts(6133): 'and' is declared but its value is never read.

9 import { eq, and } from "drizzle-orm";
               ~~~

src/pages/api/repos/stacks/[stackId]/sync.ts:18:55 - warning ts(6133): 'url' is declared but its value is never read.

18 export const GET: APIRoute = async ({ params, locals, url }) => {
                                                         ~~~
src/pages/api/repos/stacks/[stackId]/sync.ts:16:1 - warning ts(6133): 'getStack' is declared but its value is never read.

16 import { getStack } from "@/lib/stacks";
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/pages/api/repos/stacks/[stackId]/sync.ts:14:5 - warning ts(6133): 'detectLocalStack' is declared but its value is never read.

14     detectLocalStack
       ~~~~~~~~~~~~~~~~
src/pages/api/repos/stacks/[stackId]/sync.ts:9:14 - warning ts(6133): 'and' is declared but its value is never read.

9 import { eq, and } from "drizzle-orm";
               ~~~

src/pages/api/storage/[...key].ts:22:32 - error ts(2339): Property 'stat' does not exist on type 'Promise<StorageAdapter>'.

22     const stat = await storage.stat(key);
                                  ~~~~
src/pages/api/storage/[...key].ts:21:34 - error ts(2339): Property 'getStream' does not exist on type 'Promise<StorageAdapter>'.

21     const stream = await storage.getStream(key);
                                    ~~~~~~~~~
src/pages/api/storage/[...key].ts:6:47 - warning ts(6133): 'request' is declared but its value is never read.

6 export const GET: APIRoute = async ({ params, request, url }) => {
                                                ~~~~~~~

src/pages/api/storage/upload/[...key].ts:36:19 - error ts(2339): Property 'put' does not exist on type 'Promise<StorageAdapter>'.

36     await storage.put(key, nodeReadable);
                     ~~~

src/pages/settings/profile.astro:175:5 - error ts(2322): Type 'Timeout' is not assignable to type 'number'.

175     debounceTimer = setTimeout(() => {
        ~~~~~~~~~~~~~

scripts/restore_db.ts:84:15 - warning ts(6133): 'git' is declared but its value is never read.

84         const git = simpleGit(repoPath);
                 ~~~

scripts/seed.cjs:2:7 - warning ts(6133): 'uuidv4' is declared but its value is never read.

2 const { v4: uuidv4 } = require("nanoid"); // or just use crypto
        ~~~~~~~~~~~~~~

scripts/ssh-server.ts:107:32 - warning ts(6133): 'oldSha' is declared but its value is never read.

107                         const [oldSha, newSha, refName] = refLine.split(" ");
                                   ~~~~~~
scripts/ssh-server.ts:20:34 - warning ts(6133): 'username' is declared but its value is never read.

20         authenticateUser: async (username, key) => {
                                    ~~~~~~~~

scripts/test-gpg.ts:7:17 - warning ts(6133): 'privateKey' is declared but its value is never read.

7         const { privateKey, publicKey } = await openpgp.generateKey({
                  ~~~~~~~~~~

Result (271 files): 
- 134 errors
- 0 warnings
- 218 hints