@visulima/cerebro 3.0.0-alpha.5 → 3.0.0-alpha.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +43 -0
- package/LICENSE.md +44 -44
- package/dist/packem_chunks/has-new-version.js +1 -1
- package/dist/packem_shared/VisulimaError-wAUvPRfg.js +76 -0
- package/dist/plugins/update-notifier/update-notifier-plugin.js +1 -1
- package/package.json +6 -6
- package/dist/packem_shared/VisulimaError-BJideSBf.js +0 -76
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,46 @@
|
|
|
1
|
+
## @visulima/cerebro [3.0.0-alpha.7](https://github.com/visulima/visulima/compare/@visulima/cerebro@3.0.0-alpha.6...@visulima/cerebro@3.0.0-alpha.7) (2026-03-16)
|
|
2
|
+
|
|
3
|
+
### Miscellaneous Chores
|
|
4
|
+
|
|
5
|
+
* **cerebro:** update dependencies ([401f0bf](https://github.com/visulima/visulima/commit/401f0bf2bab395ac191e48cded78fa354970b245))
|
|
6
|
+
* visulima website ([#591](https://github.com/visulima/visulima/issues/591)) ([59ab2e2](https://github.com/visulima/visulima/commit/59ab2e2befb03e51cd2088956f83d9b87de6d033))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Dependencies
|
|
10
|
+
|
|
11
|
+
* **@visulima/pail:** upgraded to 4.0.0-alpha.7
|
|
12
|
+
|
|
13
|
+
## @visulima/cerebro [3.0.0-alpha.6](https://github.com/visulima/visulima/compare/@visulima/cerebro@3.0.0-alpha.5...@visulima/cerebro@3.0.0-alpha.6) (2026-03-06)
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* **cerebro:** update packem to 2.0.0-alpha.54 ([bcc08fd](https://github.com/visulima/visulima/commit/bcc08fdf6eed77b84bdff0fe40dd4fe7dd74a463))
|
|
18
|
+
|
|
19
|
+
### Documentation
|
|
20
|
+
|
|
21
|
+
* **cerebro,prisma-dmmf-transformer,jsdoc-open-api:** add comprehensive Fumadocs documentation ([891b308](https://github.com/visulima/visulima/commit/891b308a34bca2765a4a97ea450648d20d90e0cf))
|
|
22
|
+
|
|
23
|
+
### Miscellaneous Chores
|
|
24
|
+
|
|
25
|
+
* **cerebro:** update dependencies ([a276082](https://github.com/visulima/visulima/commit/a27608237e7dd33bed639101147f7ee36f1cdaec))
|
|
26
|
+
* **cerebro:** update dependencies ([60f2a71](https://github.com/visulima/visulima/commit/60f2a717e23220c394a31fde456291e42348fddd))
|
|
27
|
+
* **terminal:** update dependencies ([a5bb91a](https://github.com/visulima/visulima/commit/a5bb91a66f2be2ade485d586156a54c347a23cc9))
|
|
28
|
+
* update lock file maintenance ([d83e716](https://github.com/visulima/visulima/commit/d83e71697b75d24704185b66bb521a934d2db02d))
|
|
29
|
+
* year update ([47f4105](https://github.com/visulima/visulima/commit/47f410596ce7190cfea36a073db32e0cec50bbcd))
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
### Dependencies
|
|
33
|
+
|
|
34
|
+
* **@visulima/colorize:** upgraded to 2.0.0-alpha.5
|
|
35
|
+
* **@visulima/tabular:** upgraded to 4.0.0-alpha.6
|
|
36
|
+
* **@visulima/boxen:** upgraded to 3.0.0-alpha.6
|
|
37
|
+
* **@visulima/command-line-args:** upgraded to 2.0.0-alpha.4
|
|
38
|
+
* **@visulima/error:** upgraded to 6.0.0-alpha.5
|
|
39
|
+
* **@visulima/find-cache-dir:** upgraded to 3.0.0-alpha.4
|
|
40
|
+
* **@visulima/pail:** upgraded to 4.0.0-alpha.6
|
|
41
|
+
* **@visulima/path:** upgraded to 3.0.0-alpha.5
|
|
42
|
+
* **@visulima/string:** upgraded to 3.0.0-alpha.6
|
|
43
|
+
|
|
1
44
|
## @visulima/cerebro [3.0.0-alpha.5](https://github.com/visulima/visulima/compare/@visulima/cerebro@3.0.0-alpha.4...@visulima/cerebro@3.0.0-alpha.5) (2025-12-27)
|
|
2
45
|
|
|
3
46
|
### Bug Fixes
|
package/LICENSE.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) 2026 visulima
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -34,7 +34,7 @@ Repository: git+https://github.com/visulima/visulima.git
|
|
|
34
34
|
|
|
35
35
|
> MIT License
|
|
36
36
|
>
|
|
37
|
-
> Copyright (c)
|
|
37
|
+
> Copyright (c) 2026 visulima
|
|
38
38
|
>
|
|
39
39
|
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
40
40
|
> of this software and associated documentation files (the "Software"), to deal
|
|
@@ -92,7 +92,7 @@ Repository: git+https://github.com/visulima/visulima.git
|
|
|
92
92
|
>
|
|
93
93
|
> > MIT License
|
|
94
94
|
> >
|
|
95
|
-
> > Copyright (c)
|
|
95
|
+
> > Copyright (c) 2026 visulima
|
|
96
96
|
> >
|
|
97
97
|
> > Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
98
98
|
> > of this software and associated documentation files (the "Software"), to deal
|
|
@@ -126,7 +126,7 @@ Repository: git+https://github.com/visulima/visulima.git
|
|
|
126
126
|
> >
|
|
127
127
|
> > > MIT License
|
|
128
128
|
> > >
|
|
129
|
-
> > > Copyright (c)
|
|
129
|
+
> > > Copyright (c) 2026 visulima
|
|
130
130
|
> > >
|
|
131
131
|
> > > Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
132
132
|
> > > of this software and associated documentation files (the "Software"), to deal
|
|
@@ -278,7 +278,7 @@ Repository: git+https://github.com/visulima/visulima.git
|
|
|
278
278
|
>
|
|
279
279
|
> > MIT License
|
|
280
280
|
> >
|
|
281
|
-
> > Copyright (c)
|
|
281
|
+
> > Copyright (c) 2026 visulima
|
|
282
282
|
> >
|
|
283
283
|
> > Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
284
284
|
> > of this software and associated documentation files (the "Software"), to deal
|
|
@@ -312,7 +312,7 @@ Repository: git+https://github.com/visulima/visulima.git
|
|
|
312
312
|
>
|
|
313
313
|
> > MIT License
|
|
314
314
|
> >
|
|
315
|
-
> > Copyright (c)
|
|
315
|
+
> > Copyright (c) 2026 visulima
|
|
316
316
|
> >
|
|
317
317
|
> > Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
318
318
|
> > of this software and associated documentation files (the "Software"), to deal
|
|
@@ -346,7 +346,7 @@ Repository: git+https://github.com/visulima/visulima.git
|
|
|
346
346
|
> >
|
|
347
347
|
> > > MIT License
|
|
348
348
|
> > >
|
|
349
|
-
> > > Copyright (c)
|
|
349
|
+
> > > Copyright (c) 2026 visulima
|
|
350
350
|
> > >
|
|
351
351
|
> > > Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
352
352
|
> > > of this software and associated documentation files (the "Software"), to deal
|
|
@@ -488,7 +488,7 @@ Repository: git+https://github.com/visulima/visulima.git
|
|
|
488
488
|
|
|
489
489
|
> MIT License
|
|
490
490
|
>
|
|
491
|
-
> Copyright (c)
|
|
491
|
+
> Copyright (c) 2026 visulima
|
|
492
492
|
>
|
|
493
493
|
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
494
494
|
> of this software and associated documentation files (the "Software"), to deal
|
|
@@ -522,7 +522,7 @@ Repository: git+https://github.com/visulima/visulima.git
|
|
|
522
522
|
>
|
|
523
523
|
> > MIT License
|
|
524
524
|
> >
|
|
525
|
-
> > Copyright (c)
|
|
525
|
+
> > Copyright (c) 2026 visulima
|
|
526
526
|
> >
|
|
527
527
|
> > Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
528
528
|
> > of this software and associated documentation files (the "Software"), to deal
|
|
@@ -664,7 +664,7 @@ Repository: git+https://github.com/visulima/visulima.git
|
|
|
664
664
|
|
|
665
665
|
> MIT License
|
|
666
666
|
>
|
|
667
|
-
> Copyright (c)
|
|
667
|
+
> Copyright (c) 2026 visulima
|
|
668
668
|
>
|
|
669
669
|
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
670
670
|
> of this software and associated documentation files (the "Software"), to deal
|
|
@@ -789,7 +789,7 @@ Repository: git+https://github.com/visulima/visulima.git
|
|
|
789
789
|
|
|
790
790
|
> MIT License
|
|
791
791
|
>
|
|
792
|
-
> Copyright (c)
|
|
792
|
+
> Copyright (c) 2026 visulima
|
|
793
793
|
>
|
|
794
794
|
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
795
795
|
> of this software and associated documentation files (the "Software"), to deal
|
|
@@ -1347,7 +1347,7 @@ Repository: git+https://github.com/visulima/visulima.git
|
|
|
1347
1347
|
|
|
1348
1348
|
> MIT License
|
|
1349
1349
|
>
|
|
1350
|
-
> Copyright (c)
|
|
1350
|
+
> Copyright (c) 2026 visulima
|
|
1351
1351
|
>
|
|
1352
1352
|
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
1353
1353
|
> of this software and associated documentation files (the "Software"), to deal
|
|
@@ -1405,7 +1405,7 @@ Repository: git+https://github.com/visulima/visulima.git
|
|
|
1405
1405
|
|
|
1406
1406
|
> MIT License
|
|
1407
1407
|
>
|
|
1408
|
-
> Copyright (c)
|
|
1408
|
+
> Copyright (c) 2026 visulima
|
|
1409
1409
|
>
|
|
1410
1410
|
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
1411
1411
|
> of this software and associated documentation files (the "Software"), to deal
|
|
@@ -1463,7 +1463,7 @@ Repository: git+https://github.com/visulima/visulima.git
|
|
|
1463
1463
|
>
|
|
1464
1464
|
> > MIT License
|
|
1465
1465
|
> >
|
|
1466
|
-
> > Copyright (c)
|
|
1466
|
+
> > Copyright (c) 2026 visulima
|
|
1467
1467
|
> >
|
|
1468
1468
|
> > Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
1469
1469
|
> > of this software and associated documentation files (the "Software"), to deal
|
|
@@ -1497,7 +1497,7 @@ Repository: git+https://github.com/visulima/visulima.git
|
|
|
1497
1497
|
> >
|
|
1498
1498
|
> > > MIT License
|
|
1499
1499
|
> > >
|
|
1500
|
-
> > > Copyright (c)
|
|
1500
|
+
> > > Copyright (c) 2026 visulima
|
|
1501
1501
|
> > >
|
|
1502
1502
|
> > > Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
1503
1503
|
> > > of this software and associated documentation files (the "Software"), to deal
|
|
@@ -1649,7 +1649,7 @@ Repository: git+https://github.com/visulima/visulima.git
|
|
|
1649
1649
|
>
|
|
1650
1650
|
> > MIT License
|
|
1651
1651
|
> >
|
|
1652
|
-
> > Copyright (c)
|
|
1652
|
+
> > Copyright (c) 2026 visulima
|
|
1653
1653
|
> >
|
|
1654
1654
|
> > Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
1655
1655
|
> > of this software and associated documentation files (the "Software"), to deal
|
|
@@ -1683,7 +1683,7 @@ Repository: git+https://github.com/visulima/visulima.git
|
|
|
1683
1683
|
>
|
|
1684
1684
|
> > MIT License
|
|
1685
1685
|
> >
|
|
1686
|
-
> > Copyright (c)
|
|
1686
|
+
> > Copyright (c) 2026 visulima
|
|
1687
1687
|
> >
|
|
1688
1688
|
> > Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
1689
1689
|
> > of this software and associated documentation files (the "Software"), to deal
|
|
@@ -1717,7 +1717,7 @@ Repository: git+https://github.com/visulima/visulima.git
|
|
|
1717
1717
|
> >
|
|
1718
1718
|
> > > MIT License
|
|
1719
1719
|
> > >
|
|
1720
|
-
> > > Copyright (c)
|
|
1720
|
+
> > > Copyright (c) 2026 visulima
|
|
1721
1721
|
> > >
|
|
1722
1722
|
> > > Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
1723
1723
|
> > > of this software and associated documentation files (the "Software"), to deal
|
|
@@ -1859,7 +1859,7 @@ Repository: git+https://github.com/visulima/visulima.git
|
|
|
1859
1859
|
|
|
1860
1860
|
> MIT License
|
|
1861
1861
|
>
|
|
1862
|
-
> Copyright (c)
|
|
1862
|
+
> Copyright (c) 2026 visulima
|
|
1863
1863
|
>
|
|
1864
1864
|
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
1865
1865
|
> of this software and associated documentation files (the "Software"), to deal
|
|
@@ -1893,7 +1893,7 @@ Repository: git+https://github.com/visulima/visulima.git
|
|
|
1893
1893
|
>
|
|
1894
1894
|
> > MIT License
|
|
1895
1895
|
> >
|
|
1896
|
-
> > Copyright (c)
|
|
1896
|
+
> > Copyright (c) 2026 visulima
|
|
1897
1897
|
> >
|
|
1898
1898
|
> > Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
1899
1899
|
> > of this software and associated documentation files (the "Software"), to deal
|
|
@@ -2035,7 +2035,7 @@ Repository: git+https://github.com/visulima/visulima.git
|
|
|
2035
2035
|
|
|
2036
2036
|
> MIT License
|
|
2037
2037
|
>
|
|
2038
|
-
> Copyright (c)
|
|
2038
|
+
> Copyright (c) 2026 visulima
|
|
2039
2039
|
>
|
|
2040
2040
|
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
2041
2041
|
> of this software and associated documentation files (the "Software"), to deal
|
|
@@ -2160,7 +2160,7 @@ Repository: git+https://github.com/visulima/visulima.git
|
|
|
2160
2160
|
|
|
2161
2161
|
> MIT License
|
|
2162
2162
|
>
|
|
2163
|
-
> Copyright (c)
|
|
2163
|
+
> Copyright (c) 2026 visulima
|
|
2164
2164
|
>
|
|
2165
2165
|
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
2166
2166
|
> of this software and associated documentation files (the "Software"), to deal
|
|
@@ -2716,7 +2716,7 @@ Repository: github:watson/ci-info
|
|
|
2716
2716
|
>
|
|
2717
2717
|
> > MIT License
|
|
2718
2718
|
> >
|
|
2719
|
-
> > Copyright (c)
|
|
2719
|
+
> > Copyright (c) 2026 visulima
|
|
2720
2720
|
> >
|
|
2721
2721
|
> > Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
2722
2722
|
> > of this software and associated documentation files (the "Software"), to deal
|
|
@@ -2750,7 +2750,7 @@ Repository: git+https://github.com/visulima/visulima.git
|
|
|
2750
2750
|
|
|
2751
2751
|
> MIT License
|
|
2752
2752
|
>
|
|
2753
|
-
> Copyright (c)
|
|
2753
|
+
> Copyright (c) 2026 visulima
|
|
2754
2754
|
>
|
|
2755
2755
|
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
2756
2756
|
> of this software and associated documentation files (the "Software"), to deal
|
|
@@ -2808,7 +2808,7 @@ Repository: git+https://github.com/visulima/visulima.git
|
|
|
2808
2808
|
>
|
|
2809
2809
|
> > MIT License
|
|
2810
2810
|
> >
|
|
2811
|
-
> > Copyright (c)
|
|
2811
|
+
> > Copyright (c) 2026 visulima
|
|
2812
2812
|
> >
|
|
2813
2813
|
> > Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
2814
2814
|
> > of this software and associated documentation files (the "Software"), to deal
|
|
@@ -2842,7 +2842,7 @@ Repository: git+https://github.com/visulima/visulima.git
|
|
|
2842
2842
|
> >
|
|
2843
2843
|
> > > MIT License
|
|
2844
2844
|
> > >
|
|
2845
|
-
> > > Copyright (c)
|
|
2845
|
+
> > > Copyright (c) 2026 visulima
|
|
2846
2846
|
> > >
|
|
2847
2847
|
> > > Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
2848
2848
|
> > > of this software and associated documentation files (the "Software"), to deal
|
|
@@ -2994,7 +2994,7 @@ Repository: git+https://github.com/visulima/visulima.git
|
|
|
2994
2994
|
>
|
|
2995
2995
|
> > MIT License
|
|
2996
2996
|
> >
|
|
2997
|
-
> > Copyright (c)
|
|
2997
|
+
> > Copyright (c) 2026 visulima
|
|
2998
2998
|
> >
|
|
2999
2999
|
> > Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
3000
3000
|
> > of this software and associated documentation files (the "Software"), to deal
|
|
@@ -3028,7 +3028,7 @@ Repository: git+https://github.com/visulima/visulima.git
|
|
|
3028
3028
|
>
|
|
3029
3029
|
> > MIT License
|
|
3030
3030
|
> >
|
|
3031
|
-
> > Copyright (c)
|
|
3031
|
+
> > Copyright (c) 2026 visulima
|
|
3032
3032
|
> >
|
|
3033
3033
|
> > Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
3034
3034
|
> > of this software and associated documentation files (the "Software"), to deal
|
|
@@ -3062,7 +3062,7 @@ Repository: git+https://github.com/visulima/visulima.git
|
|
|
3062
3062
|
> >
|
|
3063
3063
|
> > > MIT License
|
|
3064
3064
|
> > >
|
|
3065
|
-
> > > Copyright (c)
|
|
3065
|
+
> > > Copyright (c) 2026 visulima
|
|
3066
3066
|
> > >
|
|
3067
3067
|
> > > Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
3068
3068
|
> > > of this software and associated documentation files (the "Software"), to deal
|
|
@@ -3204,7 +3204,7 @@ Repository: git+https://github.com/visulima/visulima.git
|
|
|
3204
3204
|
|
|
3205
3205
|
> MIT License
|
|
3206
3206
|
>
|
|
3207
|
-
> Copyright (c)
|
|
3207
|
+
> Copyright (c) 2026 visulima
|
|
3208
3208
|
>
|
|
3209
3209
|
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
3210
3210
|
> of this software and associated documentation files (the "Software"), to deal
|
|
@@ -3238,7 +3238,7 @@ Repository: git+https://github.com/visulima/visulima.git
|
|
|
3238
3238
|
>
|
|
3239
3239
|
> > MIT License
|
|
3240
3240
|
> >
|
|
3241
|
-
> > Copyright (c)
|
|
3241
|
+
> > Copyright (c) 2026 visulima
|
|
3242
3242
|
> >
|
|
3243
3243
|
> > Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
3244
3244
|
> > of this software and associated documentation files (the "Software"), to deal
|
|
@@ -3380,7 +3380,7 @@ Repository: git+https://github.com/visulima/visulima.git
|
|
|
3380
3380
|
|
|
3381
3381
|
> MIT License
|
|
3382
3382
|
>
|
|
3383
|
-
> Copyright (c)
|
|
3383
|
+
> Copyright (c) 2026 visulima
|
|
3384
3384
|
>
|
|
3385
3385
|
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
3386
3386
|
> of this software and associated documentation files (the "Software"), to deal
|
|
@@ -3505,7 +3505,7 @@ Repository: git+https://github.com/visulima/visulima.git
|
|
|
3505
3505
|
|
|
3506
3506
|
> MIT License
|
|
3507
3507
|
>
|
|
3508
|
-
> Copyright (c)
|
|
3508
|
+
> Copyright (c) 2026 visulima
|
|
3509
3509
|
>
|
|
3510
3510
|
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
3511
3511
|
> of this software and associated documentation files (the "Software"), to deal
|
|
@@ -4056,7 +4056,7 @@ Repository: git+https://github.com/visulima/visulima.git
|
|
|
4056
4056
|
|
|
4057
4057
|
> MIT License
|
|
4058
4058
|
>
|
|
4059
|
-
> Copyright (c)
|
|
4059
|
+
> Copyright (c) 2026 visulima
|
|
4060
4060
|
>
|
|
4061
4061
|
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4062
4062
|
> of this software and associated documentation files (the "Software"), to deal
|
|
@@ -4090,7 +4090,7 @@ Repository: git+https://github.com/visulima/visulima.git
|
|
|
4090
4090
|
|
|
4091
4091
|
> MIT License
|
|
4092
4092
|
>
|
|
4093
|
-
> Copyright (c)
|
|
4093
|
+
> Copyright (c) 2026 visulima
|
|
4094
4094
|
>
|
|
4095
4095
|
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4096
4096
|
> of this software and associated documentation files (the "Software"), to deal
|
|
@@ -4148,7 +4148,7 @@ Repository: git+https://github.com/visulima/visulima.git
|
|
|
4148
4148
|
>
|
|
4149
4149
|
> > MIT License
|
|
4150
4150
|
> >
|
|
4151
|
-
> > Copyright (c)
|
|
4151
|
+
> > Copyright (c) 2026 visulima
|
|
4152
4152
|
> >
|
|
4153
4153
|
> > Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4154
4154
|
> > of this software and associated documentation files (the "Software"), to deal
|
|
@@ -4182,7 +4182,7 @@ Repository: git+https://github.com/visulima/visulima.git
|
|
|
4182
4182
|
> >
|
|
4183
4183
|
> > > MIT License
|
|
4184
4184
|
> > >
|
|
4185
|
-
> > > Copyright (c)
|
|
4185
|
+
> > > Copyright (c) 2026 visulima
|
|
4186
4186
|
> > >
|
|
4187
4187
|
> > > Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4188
4188
|
> > > of this software and associated documentation files (the "Software"), to deal
|
|
@@ -4334,7 +4334,7 @@ Repository: git+https://github.com/visulima/visulima.git
|
|
|
4334
4334
|
>
|
|
4335
4335
|
> > MIT License
|
|
4336
4336
|
> >
|
|
4337
|
-
> > Copyright (c)
|
|
4337
|
+
> > Copyright (c) 2026 visulima
|
|
4338
4338
|
> >
|
|
4339
4339
|
> > Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4340
4340
|
> > of this software and associated documentation files (the "Software"), to deal
|
|
@@ -4368,7 +4368,7 @@ Repository: git+https://github.com/visulima/visulima.git
|
|
|
4368
4368
|
>
|
|
4369
4369
|
> > MIT License
|
|
4370
4370
|
> >
|
|
4371
|
-
> > Copyright (c)
|
|
4371
|
+
> > Copyright (c) 2026 visulima
|
|
4372
4372
|
> >
|
|
4373
4373
|
> > Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4374
4374
|
> > of this software and associated documentation files (the "Software"), to deal
|
|
@@ -4402,7 +4402,7 @@ Repository: git+https://github.com/visulima/visulima.git
|
|
|
4402
4402
|
> >
|
|
4403
4403
|
> > > MIT License
|
|
4404
4404
|
> > >
|
|
4405
|
-
> > > Copyright (c)
|
|
4405
|
+
> > > Copyright (c) 2026 visulima
|
|
4406
4406
|
> > >
|
|
4407
4407
|
> > > Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4408
4408
|
> > > of this software and associated documentation files (the "Software"), to deal
|
|
@@ -4544,7 +4544,7 @@ Repository: git+https://github.com/visulima/visulima.git
|
|
|
4544
4544
|
|
|
4545
4545
|
> MIT License
|
|
4546
4546
|
>
|
|
4547
|
-
> Copyright (c)
|
|
4547
|
+
> Copyright (c) 2026 visulima
|
|
4548
4548
|
>
|
|
4549
4549
|
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4550
4550
|
> of this software and associated documentation files (the "Software"), to deal
|
|
@@ -4578,7 +4578,7 @@ Repository: git+https://github.com/visulima/visulima.git
|
|
|
4578
4578
|
>
|
|
4579
4579
|
> > MIT License
|
|
4580
4580
|
> >
|
|
4581
|
-
> > Copyright (c)
|
|
4581
|
+
> > Copyright (c) 2026 visulima
|
|
4582
4582
|
> >
|
|
4583
4583
|
> > Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4584
4584
|
> > of this software and associated documentation files (the "Software"), to deal
|
|
@@ -4720,7 +4720,7 @@ Repository: git+https://github.com/visulima/visulima.git
|
|
|
4720
4720
|
|
|
4721
4721
|
> MIT License
|
|
4722
4722
|
>
|
|
4723
|
-
> Copyright (c)
|
|
4723
|
+
> Copyright (c) 2026 visulima
|
|
4724
4724
|
>
|
|
4725
4725
|
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4726
4726
|
> of this software and associated documentation files (the "Software"), to deal
|
|
@@ -4845,7 +4845,7 @@ Repository: git+https://github.com/visulima/visulima.git
|
|
|
4845
4845
|
|
|
4846
4846
|
> MIT License
|
|
4847
4847
|
>
|
|
4848
|
-
> Copyright (c)
|
|
4848
|
+
> Copyright (c) 2026 visulima
|
|
4849
4849
|
>
|
|
4850
4850
|
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4851
4851
|
> of this software and associated documentation files (the "Software"), to deal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var Xt=Object.defineProperty;var _=(r,a)=>Xt(r,"name",{value:a,configurable:!0});import{createRequire as en}from"node:module";import{findCacheDirSync as sn}from"@visulima/find-cache-dir";import{c as an}from"../packem_shared/cerebro-error-BnJTixb2.js";const tn=en(import.meta.url),U=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ve=_(r=>{if(typeof U<"u"&&U.versions&&U.versions.node){const[a,i]=U.versions.node.split(".").map(Number);if(a>22||a===22&&i>=3||a===20&&i>=16)return U.getBuiltinModule(r)}return tn(r)},"__cjs_getBuiltinModule"),{existsSync:be,mkdirSync:nn,writeFileSync:rn,readFileSync:on}=ve("node:fs"),{get:cn}=ve("node:https");var un=Object.defineProperty,ln=_((r,a)=>un(r,"name",{value:a,configurable:!0}),"o$1");const fn=ln((r,a)=>{const i=r.split(".").map(Number),f=a.split(".").map(Number);for(const[d,h]of i.entries()){if(h>f[d])return!0;if(h<f[d])return!1}return!1},"semverGt");var pn=Object.defineProperty,gn=_((r,a)=>pn(r,"name",{value:a,configurable:!0}),"$e"),dn=Object.defineProperty,H=gn((r,a)=>dn(r,"name",{value:a,configurable:!0}),"W"),hn=Object.defineProperty,u=H((r,a)=>hn(r,"name",{value:a,configurable:!0}),"u$1");let xe=u(()=>{var r=(()=>{var a=Object.defineProperty,i=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,d=Object.prototype.hasOwnProperty,h=u((e,t)=>{for(var n in t)a(e,n,{get:t[n],enumerable:!0})},"ne"),$=u((e,t,n,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of f(t))!d.call(e,o)&&o!==n&&a(e,o,{get:u(()=>t[o],"get"),enumerable:!(s=i(t,o))||s.enumerable});return e},"ae"),m=u(e=>$(a({},"__esModule",{value:!0}),e),"oe"),y={};h(y,{zeptomatch:u(()=>me,"zeptomatch")});var K=u(e=>{const t=new Set,n=[e];for(let s=0;s<n.length;s++){const o=n[s];if(t.has(o))continue;t.add(o);const{children:c}=o;if(c?.length)for(let l=0,g=c.length;l<g;l++)n.push(c[l])}return Array.from(t)},"M"),Ee=u(e=>{let t="";const n=K(e);for(let s=0,o=n.length;s<o;s++){const c=n[s];if(!c.regex)continue;const l=c.regex.flags;if(t||(t=l),t!==l)throw new Error(`Inconsistent RegExp flags used: "${t}" and "${l}"`)}return t},"se"),Q=u((e,t,n)=>{const s=n.get(e);if(s!==void 0)return s;const o=e.partial??t;let c="";if(e.regex&&(c+=o?"(?:$|":"",c+=e.regex.source),e.children?.length){const l=Re(e.children.map(g=>Q(g,t,n)).filter(Boolean));if(l?.length){const g=e.children.some(I=>!I.regex||!(I.partial??t)),v=l.length>1||o&&(!c.length||g);c+=v?o?"(?:$|":"(?:":"",c+=l.join("|"),c+=v?")":""}}return e.regex&&(c+=o?")":""),n.set(e,c),c},"O"),ke=u((e,t)=>{const n=new Map,s=K(e);for(let o=s.length-1;o>=0;o--){const c=Q(s[o],t,n);if(!(o>0))return c}return""},"ie"),Re=u(e=>Array.from(new Set(e)),"ue"),D=u((e,t,n)=>D.compile(e,n).test(t),"R");D.compile=(e,t)=>{const n=t?.partial??!1,s=ke(e,n),o=Ee(e);return new RegExp(`^(?:${s})$`,o)};var Ae=D,Me=u((e,t)=>{const n=Ae.compile(e,t),s=`${n.source.slice(0,-1)}[\\\\/]?$`,o=n.flags;return new RegExp(s,o)},"le"),Ne=Me,Pe=u(e=>{const t=e.map(s=>s.source).join("|")||"$^",n=e[0]?.flags;return new RegExp(t,n)},"ve"),ze=Pe,X=u(e=>Array.isArray(e),"j"),z=u(e=>typeof e=="function","_"),Ce=u(e=>e.length===0,"he"),Ie=(()=>{const{toString:e}=Function.prototype,t=/(?:^\(\s*(?:[^,.()]|\.(?!\.\.))*\s*\)\s*=>|^\s*[a-zA-Z$_][a-zA-Z0-9$_]*\s*=>)/;return n=>(n.length===0||n.length===1)&&t.test(e.call(n))})(),Se=u(e=>typeof e=="number","de"),Ue=u(e=>typeof e=="object"&&e!==null,"xe"),Te=u(e=>e instanceof RegExp,"me"),Be=(()=>{const e=/\\\(|\((?!\?(?::|=|!|<=|<!))/;return t=>e.test(t.source)})(),De=(()=>{const e=/^[a-zA-Z0-9_-]+$/;return t=>e.test(t.source)&&!t.flags.includes("i")})(),ee=u(e=>typeof e=="string","A"),O=u(e=>e===void 0,"f"),Fe=u(e=>{const t=new Map;return n=>{const s=t.get(n);if(s!==void 0)return s;const o=e(n);return t.set(n,o),o}},"ye"),te=u((e,t,n={})=>{const s={cache:{},input:e,index:0,indexBacktrackMax:0,options:n,output:[]},o=E(t)(s),c=Math.max(s.index,s.indexBacktrackMax);if(o&&s.index===e.length)return s.output;throw new Error(`Failed to parse at index ${c}`)},"I"),p=u((e,t)=>X(e)?Le(e,t):ee(e)?ne(e,t):qe(e,t),"i"),Le=u((e,t)=>{const n={};for(const s of e){if(s.length!==1)throw new Error(`Invalid character: "${s}"`);const o=s.charCodeAt(0);n[o]=!0}return s=>{const o=s.input;let c=s.index,l=c;for(;l<o.length&&o.charCodeAt(l)in n;)l+=1;if(l>c){if(!O(t)&&!s.options.silent){const g=o.slice(c,l),v=z(t)?t(g,o,`${c}`):t;O(v)||s.output.push(v)}s.index=l}return!0}},"we"),qe=u((e,t)=>{if(De(e))return ne(e.source,t);{const n=e.source,s=e.flags.replace(/y|$/,"y"),o=new RegExp(n,s);return Be(e)&&z(t)&&!Ie(t)?We(o,t):Ze(o,t)}},"$e"),We=u((e,t)=>n=>{const s=n.index,o=n.input;e.lastIndex=s;const c=e.exec(o);if(c){const l=e.lastIndex;if(!n.options.silent){const g=t(...c,o,`${s}`);O(g)||n.output.push(g)}return n.index=l,!0}else return!1},"Ee"),Ze=u((e,t)=>n=>{const s=n.index,o=n.input;if(e.lastIndex=s,e.test(o)){const c=e.lastIndex;if(!O(t)&&!n.options.silent){const l=z(t)?t(o.slice(s,c),o,`${s}`):t;O(l)||n.output.push(l)}return n.index=c,!0}else return!1},"Ce"),ne=u((e,t)=>n=>{const s=n.index,o=n.input;if(o.startsWith(e,s)){if(!O(t)&&!n.options.silent){const c=z(t)?t(e,o,`${s}`):t;O(c)||n.output.push(c)}return n.index+=e.length,!0}else return!1},"F"),F=u((e,t,n,s)=>{const o=E(e),c=t>1;return q(L(oe(l=>{let g=0;for(;g<n;){const v=l.index;if(!o(l)||(g+=1,l.index===v))break}return g>=t},c),s))},"k"),re=u((e,t)=>F(e,0,1,t),"L"),B=u((e,t)=>F(e,0,1/0,t),"$"),Ve=u((e,t)=>F(e,1,1/0,t),"Re"),M=u((e,t)=>{const n=e.map(E);return q(L(oe(s=>{for(let o=0,c=n.length;o<c;o++)if(!n[o](s))return!1;return!0}),t))},"x"),w=u((e,t)=>{const n=e.map(E);return q(L(s=>{for(let o=0,c=n.length;o<c;o++)if(n[o](s))return!0;return!1},t))},"p"),oe=u((e,t=!0,n=!1)=>{const s=E(e);return t?o=>{const c=o.index,l=o.output.length,g=s(o);return!g&&!n&&(o.indexBacktrackMax=Math.max(o.indexBacktrackMax,o.index)),(!g||n)&&(o.index=c,o.output.length!==l&&(o.output.length=l)),g}:s},"q"),L=u((e,t)=>{const n=E(e);return t?s=>{if(s.options.silent)return n(s);const o=s.output.length;if(n(s)){const c=s.output.splice(o,1/0),l=t(c);return O(l)||s.output.push(l),!0}else return!1}:n},"B"),q=(()=>{let e=0;return t=>{const n=E(t),s=e+=1;return o=>{var c;if(o.options.memoization===!1)return n(o);const l=o.index,g=(c=o.cache)[s]||(c[s]={indexMax:-1,queue:[]}),v=g.queue;if(l<=g.indexMax){const S=g.store||(g.store=new Map);if(v.length){for(let P=0,Yt=v.length;P<Yt;P+=2){const Kt=v[P*2],Qt=v[P*2+1];S.set(Kt,Qt)}v.length=0}const j=S.get(l);if(j===!1)return!1;if(Se(j))return o.index=j,!0;if(j)return o.index=j.index,j.output?.length&&o.output.push(...j.output),!0}const I=o.output.length,Ht=n(o);if(g.indexMax=Math.max(g.indexMax,l),Ht){const S=o.index,j=o.output.length;if(j>I){const P=o.output.slice(I,j);v.push(l,{index:S,output:P})}else v.push(l,S);return!0}else return v.push(l,!1),!1}}})(),se=u(e=>{let t;return n=>(t||(t=E(e())),t(n))},"G"),E=Fe(e=>{if(z(e))return Ce(e)?se(e):e;if(ee(e)||Te(e))return p(e);if(X(e))return M(e);if(Ue(e))return w(Object.values(e));throw new Error("Invalid rule")}),R=u(e=>e,"d"),Ge=u(e=>typeof e=="string","ke"),Je=u(e=>{const t=new WeakMap,n=new WeakMap;return(s,o)=>{const c=o?.partial?n:t,l=c.get(s);if(l!==void 0)return l;const g=e(s,o);return c.set(s,g),g}},"Be"),He=u(e=>{const t={},n={};return(s,o)=>{const c=o?.partial?n:t;return c[s]??(c[s]=e(s,o))}},"Pe"),Ye=p(/\\./,R),Ke=p(/./,R),Qe=p(/\*\*\*+/,"*"),Xe=p(/([^/{[(!])\*\*/,(e,t)=>`${t}*`),et=p(/(^|.)\*\*(?=[^*/)\]}])/,(e,t)=>`${t}*`),tt=B(w([Ye,Qe,Xe,et,Ke])),nt=tt,rt=u(e=>te(e,nt,{memoization:!1}).join(""),"Ie"),ot=rt,ae="abcdefghijklmnopqrstuvwxyz",st=u(e=>{let t="";for(;e>0;){const n=(e-1)%26;t=ae[n]+t,e=Math.floor((e-1)/26)}return t},"Le"),ie=u(e=>{let t=0;for(let n=0,s=e.length;n<s;n++)t=t*26+ae.indexOf(e[n])+1;return t},"V"),W=u((e,t)=>{if(t<e)return W(t,e);const n=[];for(;e<=t;)n.push(e++);return n},"b"),at=u((e,t,n)=>W(e,t).map(s=>String(s).padStart(n,"0")),"qe"),ce=u((e,t)=>W(ie(e),ie(t)).map(st),"W"),x=u(e=>({partial:!1,regex:new RegExp(e,"s"),children:[]}),"c"),C=u(e=>({children:e}),"y"),N=(()=>{const e=u((t,n,s)=>{if(s.has(t))return;s.add(t);const{children:o}=t;if(!o.length)o.push(n);else for(let c=0,l=o.length;c<l;c++)e(o[c],n,s)},"e");return t=>{if(!t.length)return C([]);for(let n=t.length-1;n>=1;n--){const s=new Set,o=t[n-1],c=t[n];e(o,c,s)}return t[0]}})(),k=u(()=>({regex:new RegExp("[\\\\/]","s"),children:[]}),"g"),it=p(/\\./,x),ct=p(/[$.*+?^(){}[\]\|]/,e=>x(`\\${e}`)),ut=p(/[\\\/]/,k),lt=p(/[^$.*+?^(){}[\]\|\\\/]+/,x),ft=p(/^(?:!!)*!(.*)$/,(e,t)=>x(`(?!^${me.compile(t).source}$).*?`)),pt=p(/^(!!)+/),gt=w([ft,pt]),dt=p(/\/(\*\*\/)+/,()=>C([N([k(),x(".+?"),k()]),k()])),ht=p(/^(\*\*\/)+/,()=>C([x("^"),N([x(".*?"),k()])])),mt=p(/\/(\*\*)$/,()=>C([N([k(),x(".*?")]),x("$")])),xt=p(/\*\*/,()=>x(".*?")),ue=w([dt,ht,mt,xt]),$t=p(/\*\/(?!\*\*\/|\*$)/,()=>N([x("[^\\\\/]*?"),k()])),vt=p(/\*/,()=>x("[^\\\\/]*")),le=w([$t,vt]),fe=p("?",()=>x("[^\\\\/]")),bt=p("[",R),yt=p("]",R),wt=p(/[!^]/,"^\\\\/"),jt=p(/[a-z]-[a-z]|[0-9]-[0-9]/i,R),_t=p(/\\./,R),Ot=p(/[$.*+?^(){}[\|]/,e=>`\\${e}`),Et=p(/[\\\/]/,"\\\\/"),kt=p(/[^$.*+?^(){}[\]\|\\\/]+/,R),Rt=w([_t,Ot,Et,jt,kt]),pe=M([bt,re(wt),B(Rt),yt],e=>x(e.join(""))),At=p("{","(?:"),Mt=p("}",")"),Nt=p(/(\d+)\.\.(\d+)/,(e,t,n)=>at(+t,+n,Math.min(t.length,n.length)).join("|")),Pt=p(/([a-z]+)\.\.([a-z]+)/,(e,t,n)=>ce(t,n).join("|")),zt=p(/([A-Z]+)\.\.([A-Z]+)/,(e,t,n)=>ce(t.toLowerCase(),n.toLowerCase()).join("|").toUpperCase()),Ct=w([Nt,Pt,zt]),ge=M([At,Ct,Mt],e=>x(e.join(""))),It=p("{"),St=p("}"),Ut=p(","),Tt=p(/\\./,x),Bt=p(/[$.*+?^(){[\]\|]/,e=>x(`\\${e}`)),Dt=p(/[\\\/]/,k),Ft=p(/[^$.*+?^(){}[\]\|\\\/,]+/,x),Lt=se(()=>he),qt=p("",()=>x("(?:)")),Wt=Ve(w([ue,le,fe,pe,ge,Lt,Tt,Bt,Dt,Ft]),N),de=w([Wt,qt]),he=M([It,re(M([de,B(M([Ut,de]))])),St],C),Zt=B(w([gt,ue,le,fe,pe,ge,he,it,ct,ut,lt]),N),Vt=Zt,Gt=u(e=>te(e,Vt,{memoization:!1})[0],"kr"),Jt=Gt,Z=u((e,t,n)=>Z.compile(e,n).test(t),"N");Z.compile=(()=>{const e=He((n,s)=>Ne(Jt(ot(n)),s)),t=Je((n,s)=>ze(n.map(o=>e(o,s))));return(n,s)=>Ge(n)?e(n,s):t(n,s)})();var me=Z;return m(y)})();return r.default||r},"_lazyMatch"),V;const mn=u((r,a)=>(V||(V=xe(),xe=null),V(r,a)),"default");var xn=Object.defineProperty,$n=H((r,a)=>xn(r,"name",{value:a,configurable:!0}),"t$1");const vn=/^[A-Z]:\//i,A=$n((r="")=>r&&r.replaceAll("\\","/").replace(vn,a=>a.toUpperCase()),"normalizeWindowsPath");var bn=Object.defineProperty,b=H((r,a)=>bn(r,"name",{value:a,configurable:!0}),"r");const yn=/^[/\\]{2}/,wn=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Z]:[/\\]/i,ye=/^[A-Z]:$/i,$e=/^\/([A-Z]:)?$/i,jn=/.(\.[^./]+)$/,_n=/^[/\\]|^[a-z]:[/\\]/i,On=b(()=>typeof process.cwd=="function"?process.cwd().replaceAll("\\","/"):"/","cwd"),we=b((r,a)=>{let i="",f=0,d=-1,h=0,$;for(let m=0;m<=r.length;++m){if(m<r.length)$=r[m];else{if($==="/")break;$="/"}if($==="/"){if(!(d===m-1||h===1))if(h===2){if(i.length<2||f!==2||!i.endsWith(".")||i.at(-2)!=="."){if(i.length>2){const y=i.lastIndexOf("/");y===-1?(i="",f=0):(i=i.slice(0,y),f=i.length-1-i.lastIndexOf("/")),d=m,h=0;continue}else if(i.length>0){i="",f=0,d=m,h=0;continue}}a&&(i+=i.length>0?"/..":"..",f=2)}else i.length>0?i+=`/${r.slice(d+1,m)}`:i=r.slice(d+1,m),f=m-d-1;d=m,h=0}else $==="."&&h!==-1?++h:h=-1}return i},"normalizeString"),T=b(r=>wn.test(r),"isAbsolute"),je=b(function(r){if(r.length===0)return".";r=A(r);const a=yn.exec(r),i=T(r),f=r.at(-1)==="/";return r=we(r,!i),r.length===0?i?"/":f?"./":".":(f&&(r+="/"),ye.test(r)&&(r+="/"),a?i?`//${r}`:`//./${r}`:i&&!T(r)?`/${r}`:r)},"normalize"),En=b((...r)=>{let a="";for(const i of r)if(i)if(a.length>0){const f=a[a.length-1]==="/",d=i[0]==="/";f&&d?a+=i.slice(1):a+=f||d?i:`/${i}`}else a+=i;return je(a)},"join"),G=b(function(...r){r=r.map(f=>A(f));let a="",i=!1;for(let f=r.length-1;f>=-1&&!i;f--){const d=f>=0?r[f]:On();!d||d.length===0||(a=`${d}/${a}`,i=T(d))}return a=we(a,!i),i&&!T(a)?`/${a}`:a.length>0?a:"."},"resolve");b(function(r){return A(r)},"toNamespacedPath");const kn=b(function(r){return jn.exec(A(r))?.[1]??""},"extname");b(function(r,a){const i=G(r).replace($e,"$1").split("/"),f=G(a).replace($e,"$1").split("/");if(f[0][1]===":"&&i[0][1]===":"&&i[0]!==f[0])return f.join("/");const d=[...i];for(const h of d){if(f[0]!==h)break;i.shift(),f.shift()}return[...i.map(()=>".."),...f].join("/")},"relative");const _e=b(r=>{const a=A(r).replace(/\/$/,"").split("/").slice(0,-1);return a.length===1&&ye.test(a[0])&&(a[0]+="/"),a.join("/")||(T(r)?"/":".")},"dirname");b(function(r){const a=[r.root,r.dir,r.base??r.name+r.ext].filter(Boolean);return A(r.root?G(...a):a.join("/"))},"format");const Rn=b((r,a)=>{const i=A(r).split("/").pop();return a&&i.endsWith(a)?i.slice(0,-a.length):i},"basename");b(function(r){const a=_n.exec(r)?.[0]?.replaceAll("\\","/")??"",i=Rn(r),f=kn(i);return{base:i,dir:_e(r),ext:f,name:i.slice(0,i.length-f.length),root:a}},"parse");b((r,a)=>mn(a,je(r)),"matchesGlob");var An=Object.defineProperty,Mn=_((r,a)=>An(r,"name",{value:a,configurable:!0}),"e");let J=class extends an{static{_(this,"p")}static{Mn(this,"UpdateNotifierError")}constructor(a,i="UPDATE_NOTIFIER_ERROR",f){super(a,i,f),this.name="UpdateNotifierError"}};var Nn=Object.defineProperty,Y=_((r,a)=>Nn(r,"name",{value:a,configurable:!0}),"n");const Pn="last-update-check.json",Oe=Y(r=>{const a=sn(r);if(a===void 0)throw new J("Could not find cache directory","CACHE_DIRECTORY_NOT_FOUND",{packageName:r});return En(a,Pn)},"getConfigFile"),zn=Y(r=>{const a=Oe(r);try{if(!be(a))return;const{lastUpdateCheck:i}=JSON.parse(on(a,"utf8"));return i}catch{return}},"getLastUpdate"),Cn=Y(r=>{const a=Oe(r),i=_e(a);be(i)||nn(i,{recursive:!0}),rn(a,JSON.stringify({lastUpdateCheck:Date.now()}))},"saveLastUpdate");var In=Object.defineProperty,Sn=_((r,a)=>In(r,"name",{value:a,configurable:!0}),"g");const Un=Sn(async(r,a,i)=>{const f=i.replace("__NAME__",r);return await new Promise((d,h)=>{cn(f,$=>{let m="";$.on("data",y=>m+=y),$.on("end",()=>{try{const y=JSON.parse(m)[a];y||h(new J("Error getting version","VERSION_FETCH_ERROR",{distributionTag:a,packageName:r})),d(y)}catch{h(new J("Could not parse version response","VERSION_PARSE_ERROR",{distributionTag:a,packageName:r}))}})}).on("error",$=>h($))})},"getDistributionVersion");var Tn=Object.defineProperty,Bn=_((r,a)=>Tn(r,"name",{value:a,configurable:!0}),"i");const Zn=Bn(async({alwaysRun:r,debug:a,distTag:i="latest",pkg:f,registryUrl:d="https://registry.npmjs.org/-/package/__NAME__/dist-tags",updateCheckInterval:h=1e3*60*60*24})=>{const $=zn(f.name);if(r||!$||$<Date.now()-h){const m=await Un(f.name,i,d);if(Cn(f.name),fn(m,f.version))return m;a&&console.error(`Latest version (${m}) not newer than current version (${f.version})`)}else a&&console.error(`Too recent to check for a new update. simpleUpdateNotifier() interval set to ${h}ms but only ${Date.now()-$}ms since last check.`)},"hasNewVersion");export{Zn as default};
|
|
1
|
+
var Xt=Object.defineProperty;var _=(r,a)=>Xt(r,"name",{value:a,configurable:!0});import{createRequire as en}from"node:module";import{findCacheDirSync as sn}from"@visulima/find-cache-dir";import{c as an}from"../packem_shared/cerebro-error-BnJTixb2.js";const tn=en(import.meta.url),U=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ve=_(r=>{if(typeof U<"u"&&U.versions&&U.versions.node){const[a,i]=U.versions.node.split(".").map(Number);if(a>22||a===22&&i>=3||a===20&&i>=16)return U.getBuiltinModule(r)}return tn(r)},"__cjs_getBuiltinModule"),{existsSync:be,readFileSync:nn,mkdirSync:rn,writeFileSync:on}=ve("node:fs"),{get:cn}=ve("node:https");var un=Object.defineProperty,ln=_((r,a)=>un(r,"name",{value:a,configurable:!0}),"o$1");const fn=ln((r,a)=>{const i=r.split(".").map(Number),f=a.split(".").map(Number);for(const[d,h]of i.entries()){if(h>f[d])return!0;if(h<f[d])return!1}return!1},"semverGt");var pn=Object.defineProperty,gn=_((r,a)=>pn(r,"name",{value:a,configurable:!0}),"$e"),dn=Object.defineProperty,H=gn((r,a)=>dn(r,"name",{value:a,configurable:!0}),"W"),hn=Object.defineProperty,u=H((r,a)=>hn(r,"name",{value:a,configurable:!0}),"u$1");let xe=u(()=>{var r=(()=>{var a=Object.defineProperty,i=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,d=Object.prototype.hasOwnProperty,h=u((e,t)=>{for(var n in t)a(e,n,{get:t[n],enumerable:!0})},"ne"),$=u((e,t,n,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of f(t))!d.call(e,o)&&o!==n&&a(e,o,{get:u(()=>t[o],"get"),enumerable:!(s=i(t,o))||s.enumerable});return e},"ae"),m=u(e=>$(a({},"__esModule",{value:!0}),e),"oe"),y={};h(y,{zeptomatch:u(()=>me,"zeptomatch")});var K=u(e=>{const t=new Set,n=[e];for(let s=0;s<n.length;s++){const o=n[s];if(t.has(o))continue;t.add(o);const{children:c}=o;if(c?.length)for(let l=0,g=c.length;l<g;l++)n.push(c[l])}return Array.from(t)},"M"),Ee=u(e=>{let t="";const n=K(e);for(let s=0,o=n.length;s<o;s++){const c=n[s];if(!c.regex)continue;const l=c.regex.flags;if(t||(t=l),t!==l)throw new Error(`Inconsistent RegExp flags used: "${t}" and "${l}"`)}return t},"se"),Q=u((e,t,n)=>{const s=n.get(e);if(s!==void 0)return s;const o=e.partial??t;let c="";if(e.regex&&(c+=o?"(?:$|":"",c+=e.regex.source),e.children?.length){const l=Re(e.children.map(g=>Q(g,t,n)).filter(Boolean));if(l?.length){const g=e.children.some(I=>!I.regex||!(I.partial??t)),v=l.length>1||o&&(!c.length||g);c+=v?o?"(?:$|":"(?:":"",c+=l.join("|"),c+=v?")":""}}return e.regex&&(c+=o?")":""),n.set(e,c),c},"O"),ke=u((e,t)=>{const n=new Map,s=K(e);for(let o=s.length-1;o>=0;o--){const c=Q(s[o],t,n);if(!(o>0))return c}return""},"ie"),Re=u(e=>Array.from(new Set(e)),"ue"),D=u((e,t,n)=>D.compile(e,n).test(t),"R");D.compile=(e,t)=>{const n=t?.partial??!1,s=ke(e,n),o=Ee(e);return new RegExp(`^(?:${s})$`,o)};var Ae=D,Me=u((e,t)=>{const n=Ae.compile(e,t),s=`${n.source.slice(0,-1)}[\\\\/]?$`,o=n.flags;return new RegExp(s,o)},"le"),Ne=Me,Pe=u(e=>{const t=e.map(s=>s.source).join("|")||"$^",n=e[0]?.flags;return new RegExp(t,n)},"ve"),ze=Pe,X=u(e=>Array.isArray(e),"j"),z=u(e=>typeof e=="function","_"),Ce=u(e=>e.length===0,"he"),Ie=(()=>{const{toString:e}=Function.prototype,t=/(?:^\(\s*(?:[^,.()]|\.(?!\.\.))*\s*\)\s*=>|^\s*[a-zA-Z$_][a-zA-Z0-9$_]*\s*=>)/;return n=>(n.length===0||n.length===1)&&t.test(e.call(n))})(),Se=u(e=>typeof e=="number","de"),Ue=u(e=>typeof e=="object"&&e!==null,"xe"),Te=u(e=>e instanceof RegExp,"me"),Be=(()=>{const e=/\\\(|\((?!\?(?::|=|!|<=|<!))/;return t=>e.test(t.source)})(),De=(()=>{const e=/^[a-zA-Z0-9_-]+$/;return t=>e.test(t.source)&&!t.flags.includes("i")})(),ee=u(e=>typeof e=="string","A"),O=u(e=>e===void 0,"f"),Fe=u(e=>{const t=new Map;return n=>{const s=t.get(n);if(s!==void 0)return s;const o=e(n);return t.set(n,o),o}},"ye"),te=u((e,t,n={})=>{const s={cache:{},input:e,index:0,indexBacktrackMax:0,options:n,output:[]},o=E(t)(s),c=Math.max(s.index,s.indexBacktrackMax);if(o&&s.index===e.length)return s.output;throw new Error(`Failed to parse at index ${c}`)},"I"),p=u((e,t)=>X(e)?Le(e,t):ee(e)?ne(e,t):qe(e,t),"i"),Le=u((e,t)=>{const n={};for(const s of e){if(s.length!==1)throw new Error(`Invalid character: "${s}"`);const o=s.charCodeAt(0);n[o]=!0}return s=>{const o=s.input;let c=s.index,l=c;for(;l<o.length&&o.charCodeAt(l)in n;)l+=1;if(l>c){if(!O(t)&&!s.options.silent){const g=o.slice(c,l),v=z(t)?t(g,o,`${c}`):t;O(v)||s.output.push(v)}s.index=l}return!0}},"we"),qe=u((e,t)=>{if(De(e))return ne(e.source,t);{const n=e.source,s=e.flags.replace(/y|$/,"y"),o=new RegExp(n,s);return Be(e)&&z(t)&&!Ie(t)?We(o,t):Ze(o,t)}},"$e"),We=u((e,t)=>n=>{const s=n.index,o=n.input;e.lastIndex=s;const c=e.exec(o);if(c){const l=e.lastIndex;if(!n.options.silent){const g=t(...c,o,`${s}`);O(g)||n.output.push(g)}return n.index=l,!0}else return!1},"Ee"),Ze=u((e,t)=>n=>{const s=n.index,o=n.input;if(e.lastIndex=s,e.test(o)){const c=e.lastIndex;if(!O(t)&&!n.options.silent){const l=z(t)?t(o.slice(s,c),o,`${s}`):t;O(l)||n.output.push(l)}return n.index=c,!0}else return!1},"Ce"),ne=u((e,t)=>n=>{const s=n.index,o=n.input;if(o.startsWith(e,s)){if(!O(t)&&!n.options.silent){const c=z(t)?t(e,o,`${s}`):t;O(c)||n.output.push(c)}return n.index+=e.length,!0}else return!1},"F"),F=u((e,t,n,s)=>{const o=E(e),c=t>1;return q(L(oe(l=>{let g=0;for(;g<n;){const v=l.index;if(!o(l)||(g+=1,l.index===v))break}return g>=t},c),s))},"k"),re=u((e,t)=>F(e,0,1,t),"L"),B=u((e,t)=>F(e,0,1/0,t),"$"),Ve=u((e,t)=>F(e,1,1/0,t),"Re"),M=u((e,t)=>{const n=e.map(E);return q(L(oe(s=>{for(let o=0,c=n.length;o<c;o++)if(!n[o](s))return!1;return!0}),t))},"x"),w=u((e,t)=>{const n=e.map(E);return q(L(s=>{for(let o=0,c=n.length;o<c;o++)if(n[o](s))return!0;return!1},t))},"p"),oe=u((e,t=!0,n=!1)=>{const s=E(e);return t?o=>{const c=o.index,l=o.output.length,g=s(o);return!g&&!n&&(o.indexBacktrackMax=Math.max(o.indexBacktrackMax,o.index)),(!g||n)&&(o.index=c,o.output.length!==l&&(o.output.length=l)),g}:s},"q"),L=u((e,t)=>{const n=E(e);return t?s=>{if(s.options.silent)return n(s);const o=s.output.length;if(n(s)){const c=s.output.splice(o,1/0),l=t(c);return O(l)||s.output.push(l),!0}else return!1}:n},"B"),q=(()=>{let e=0;return t=>{const n=E(t),s=e+=1;return o=>{var c;if(o.options.memoization===!1)return n(o);const l=o.index,g=(c=o.cache)[s]||(c[s]={indexMax:-1,queue:[]}),v=g.queue;if(l<=g.indexMax){const S=g.store||(g.store=new Map);if(v.length){for(let P=0,Yt=v.length;P<Yt;P+=2){const Kt=v[P*2],Qt=v[P*2+1];S.set(Kt,Qt)}v.length=0}const j=S.get(l);if(j===!1)return!1;if(Se(j))return o.index=j,!0;if(j)return o.index=j.index,j.output?.length&&o.output.push(...j.output),!0}const I=o.output.length,Ht=n(o);if(g.indexMax=Math.max(g.indexMax,l),Ht){const S=o.index,j=o.output.length;if(j>I){const P=o.output.slice(I,j);v.push(l,{index:S,output:P})}else v.push(l,S);return!0}else return v.push(l,!1),!1}}})(),se=u(e=>{let t;return n=>(t||(t=E(e())),t(n))},"G"),E=Fe(e=>{if(z(e))return Ce(e)?se(e):e;if(ee(e)||Te(e))return p(e);if(X(e))return M(e);if(Ue(e))return w(Object.values(e));throw new Error("Invalid rule")}),R=u(e=>e,"d"),Ge=u(e=>typeof e=="string","ke"),Je=u(e=>{const t=new WeakMap,n=new WeakMap;return(s,o)=>{const c=o?.partial?n:t,l=c.get(s);if(l!==void 0)return l;const g=e(s,o);return c.set(s,g),g}},"Be"),He=u(e=>{const t={},n={};return(s,o)=>{const c=o?.partial?n:t;return c[s]??(c[s]=e(s,o))}},"Pe"),Ye=p(/\\./,R),Ke=p(/./,R),Qe=p(/\*\*\*+/,"*"),Xe=p(/([^/{[(!])\*\*/,(e,t)=>`${t}*`),et=p(/(^|.)\*\*(?=[^*/)\]}])/,(e,t)=>`${t}*`),tt=B(w([Ye,Qe,Xe,et,Ke])),nt=tt,rt=u(e=>te(e,nt,{memoization:!1}).join(""),"Ie"),ot=rt,ae="abcdefghijklmnopqrstuvwxyz",st=u(e=>{let t="";for(;e>0;){const n=(e-1)%26;t=ae[n]+t,e=Math.floor((e-1)/26)}return t},"Le"),ie=u(e=>{let t=0;for(let n=0,s=e.length;n<s;n++)t=t*26+ae.indexOf(e[n])+1;return t},"V"),W=u((e,t)=>{if(t<e)return W(t,e);const n=[];for(;e<=t;)n.push(e++);return n},"b"),at=u((e,t,n)=>W(e,t).map(s=>String(s).padStart(n,"0")),"qe"),ce=u((e,t)=>W(ie(e),ie(t)).map(st),"W"),x=u(e=>({partial:!1,regex:new RegExp(e,"s"),children:[]}),"c"),C=u(e=>({children:e}),"y"),N=(()=>{const e=u((t,n,s)=>{if(s.has(t))return;s.add(t);const{children:o}=t;if(!o.length)o.push(n);else for(let c=0,l=o.length;c<l;c++)e(o[c],n,s)},"e");return t=>{if(!t.length)return C([]);for(let n=t.length-1;n>=1;n--){const s=new Set,o=t[n-1],c=t[n];e(o,c,s)}return t[0]}})(),k=u(()=>({regex:new RegExp("[\\\\/]","s"),children:[]}),"g"),it=p(/\\./,x),ct=p(/[$.*+?^(){}[\]\|]/,e=>x(`\\${e}`)),ut=p(/[\\\/]/,k),lt=p(/[^$.*+?^(){}[\]\|\\\/]+/,x),ft=p(/^(?:!!)*!(.*)$/,(e,t)=>x(`(?!^${me.compile(t).source}$).*?`)),pt=p(/^(!!)+/),gt=w([ft,pt]),dt=p(/\/(\*\*\/)+/,()=>C([N([k(),x(".+?"),k()]),k()])),ht=p(/^(\*\*\/)+/,()=>C([x("^"),N([x(".*?"),k()])])),mt=p(/\/(\*\*)$/,()=>C([N([k(),x(".*?")]),x("$")])),xt=p(/\*\*/,()=>x(".*?")),ue=w([dt,ht,mt,xt]),$t=p(/\*\/(?!\*\*\/|\*$)/,()=>N([x("[^\\\\/]*?"),k()])),vt=p(/\*/,()=>x("[^\\\\/]*")),le=w([$t,vt]),fe=p("?",()=>x("[^\\\\/]")),bt=p("[",R),yt=p("]",R),wt=p(/[!^]/,"^\\\\/"),jt=p(/[a-z]-[a-z]|[0-9]-[0-9]/i,R),_t=p(/\\./,R),Ot=p(/[$.*+?^(){}[\|]/,e=>`\\${e}`),Et=p(/[\\\/]/,"\\\\/"),kt=p(/[^$.*+?^(){}[\]\|\\\/]+/,R),Rt=w([_t,Ot,Et,jt,kt]),pe=M([bt,re(wt),B(Rt),yt],e=>x(e.join(""))),At=p("{","(?:"),Mt=p("}",")"),Nt=p(/(\d+)\.\.(\d+)/,(e,t,n)=>at(+t,+n,Math.min(t.length,n.length)).join("|")),Pt=p(/([a-z]+)\.\.([a-z]+)/,(e,t,n)=>ce(t,n).join("|")),zt=p(/([A-Z]+)\.\.([A-Z]+)/,(e,t,n)=>ce(t.toLowerCase(),n.toLowerCase()).join("|").toUpperCase()),Ct=w([Nt,Pt,zt]),ge=M([At,Ct,Mt],e=>x(e.join(""))),It=p("{"),St=p("}"),Ut=p(","),Tt=p(/\\./,x),Bt=p(/[$.*+?^(){[\]\|]/,e=>x(`\\${e}`)),Dt=p(/[\\\/]/,k),Ft=p(/[^$.*+?^(){}[\]\|\\\/,]+/,x),Lt=se(()=>he),qt=p("",()=>x("(?:)")),Wt=Ve(w([ue,le,fe,pe,ge,Lt,Tt,Bt,Dt,Ft]),N),de=w([Wt,qt]),he=M([It,re(M([de,B(M([Ut,de]))])),St],C),Zt=B(w([gt,ue,le,fe,pe,ge,he,it,ct,ut,lt]),N),Vt=Zt,Gt=u(e=>te(e,Vt,{memoization:!1})[0],"kr"),Jt=Gt,Z=u((e,t,n)=>Z.compile(e,n).test(t),"N");Z.compile=(()=>{const e=He((n,s)=>Ne(Jt(ot(n)),s)),t=Je((n,s)=>ze(n.map(o=>e(o,s))));return(n,s)=>Ge(n)?e(n,s):t(n,s)})();var me=Z;return m(y)})();return r.default||r},"_lazyMatch"),V;const mn=u((r,a)=>(V||(V=xe(),xe=null),V(r,a)),"default");var xn=Object.defineProperty,$n=H((r,a)=>xn(r,"name",{value:a,configurable:!0}),"t$1");const vn=/^[A-Z]:\//i,A=$n((r="")=>r&&r.replaceAll("\\","/").replace(vn,a=>a.toUpperCase()),"normalizeWindowsPath");var bn=Object.defineProperty,b=H((r,a)=>bn(r,"name",{value:a,configurable:!0}),"r");const yn=/^[/\\]{2}/,wn=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Z]:[/\\]/i,ye=/^[A-Z]:$/i,$e=/^\/([A-Z]:)?$/i,jn=/.(\.[^./]+)$/,_n=/^[/\\]|^[a-z]:[/\\]/i,On=b(()=>typeof process.cwd=="function"?process.cwd().replaceAll("\\","/"):"/","cwd"),we=b((r,a)=>{let i="",f=0,d=-1,h=0,$;for(let m=0;m<=r.length;++m){if(m<r.length)$=r[m];else{if($==="/")break;$="/"}if($==="/"){if(!(d===m-1||h===1))if(h===2){if(i.length<2||f!==2||!i.endsWith(".")||i.at(-2)!=="."){if(i.length>2){const y=i.lastIndexOf("/");y===-1?(i="",f=0):(i=i.slice(0,y),f=i.length-1-i.lastIndexOf("/")),d=m,h=0;continue}else if(i.length>0){i="",f=0,d=m,h=0;continue}}a&&(i+=i.length>0?"/..":"..",f=2)}else i.length>0?i+=`/${r.slice(d+1,m)}`:i=r.slice(d+1,m),f=m-d-1;d=m,h=0}else $==="."&&h!==-1?++h:h=-1}return i},"normalizeString"),T=b(r=>wn.test(r),"isAbsolute"),je=b(function(r){if(r.length===0)return".";r=A(r);const a=yn.exec(r),i=T(r),f=r.at(-1)==="/";return r=we(r,!i),r.length===0?i?"/":f?"./":".":(f&&(r+="/"),ye.test(r)&&(r+="/"),a?i?`//${r}`:`//./${r}`:i&&!T(r)?`/${r}`:r)},"normalize"),En=b((...r)=>{let a="";for(const i of r)if(i)if(a.length>0){const f=a[a.length-1]==="/",d=i[0]==="/";f&&d?a+=i.slice(1):a+=f||d?i:`/${i}`}else a+=i;return je(a)},"join"),G=b(function(...r){r=r.map(f=>A(f));let a="",i=!1;for(let f=r.length-1;f>=-1&&!i;f--){const d=f>=0?r[f]:On();!d||d.length===0||(a=`${d}/${a}`,i=T(d))}return a=we(a,!i),i&&!T(a)?`/${a}`:a.length>0?a:"."},"resolve");b(function(r){return A(r)},"toNamespacedPath");const kn=b(function(r){return jn.exec(A(r))?.[1]??""},"extname");b(function(r,a){const i=G(r).replace($e,"$1").split("/"),f=G(a).replace($e,"$1").split("/");if(f[0][1]===":"&&i[0][1]===":"&&i[0]!==f[0])return f.join("/");const d=[...i];for(const h of d){if(f[0]!==h)break;i.shift(),f.shift()}return[...i.map(()=>".."),...f].join("/")},"relative");const _e=b(r=>{const a=A(r).replace(/\/$/,"").split("/").slice(0,-1);return a.length===1&&ye.test(a[0])&&(a[0]+="/"),a.join("/")||(T(r)?"/":".")},"dirname");b(function(r){const a=[r.root,r.dir,r.base??r.name+r.ext].filter(Boolean);return A(r.root?G(...a):a.join("/"))},"format");const Rn=b((r,a)=>{const i=A(r).split("/").pop();return a&&i.endsWith(a)?i.slice(0,-a.length):i},"basename");b(function(r){const a=_n.exec(r)?.[0]?.replaceAll("\\","/")??"",i=Rn(r),f=kn(i);return{base:i,dir:_e(r),ext:f,name:i.slice(0,i.length-f.length),root:a}},"parse");b((r,a)=>mn(a,je(r)),"matchesGlob");var An=Object.defineProperty,Mn=_((r,a)=>An(r,"name",{value:a,configurable:!0}),"e");let J=class extends an{static{_(this,"p")}static{Mn(this,"UpdateNotifierError")}constructor(a,i="UPDATE_NOTIFIER_ERROR",f){super(a,i,f),this.name="UpdateNotifierError"}};var Nn=Object.defineProperty,Y=_((r,a)=>Nn(r,"name",{value:a,configurable:!0}),"n");const Pn="last-update-check.json",Oe=Y(r=>{const a=sn(r);if(a===void 0)throw new J("Could not find cache directory","CACHE_DIRECTORY_NOT_FOUND",{packageName:r});return En(a,Pn)},"getConfigFile"),zn=Y(r=>{const a=Oe(r);try{if(!be(a))return;const{lastUpdateCheck:i}=JSON.parse(nn(a,"utf8"));return i}catch{return}},"getLastUpdate"),Cn=Y(r=>{const a=Oe(r),i=_e(a);be(i)||rn(i,{recursive:!0}),on(a,JSON.stringify({lastUpdateCheck:Date.now()}))},"saveLastUpdate");var In=Object.defineProperty,Sn=_((r,a)=>In(r,"name",{value:a,configurable:!0}),"g");const Un=Sn(async(r,a,i)=>{const f=i.replace("__NAME__",r);return await new Promise((d,h)=>{cn(f,$=>{let m="";$.on("data",y=>m+=y),$.on("end",()=>{try{const y=JSON.parse(m)[a];y||h(new J("Error getting version","VERSION_FETCH_ERROR",{distributionTag:a,packageName:r})),d(y)}catch{h(new J("Could not parse version response","VERSION_PARSE_ERROR",{distributionTag:a,packageName:r}))}})}).on("error",$=>h($))})},"getDistributionVersion");var Tn=Object.defineProperty,Bn=_((r,a)=>Tn(r,"name",{value:a,configurable:!0}),"i");const Zn=Bn(async({alwaysRun:r,debug:a,distTag:i="latest",pkg:f,registryUrl:d="https://registry.npmjs.org/-/package/__NAME__/dist-tags",updateCheckInterval:h=1e3*60*60*24})=>{const $=zn(f.name);if(r||!$||$<Date.now()-h){const m=await Un(f.name,i,d);if(Cn(f.name),fn(m,f.version))return m;a&&console.error(`Latest version (${m}) not newer than current version (${f.version})`)}else a&&console.error(`Too recent to check for a new update. simpleUpdateNotifier() interval set to ${h}ms but only ${Date.now()-$}ms since last check.`)},"hasNewVersion");export{Zn as default};
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
var z=Object.defineProperty;var s=(e,r)=>z(e,"name",{value:r,configurable:!0});import{createRequire as B}from"node:module";import{k as Rr,N as Mr,P as Vr,G as Ur}from"./renderError-ZMlMvw1N-eVUSdl6c.js";import{p as zr,V as Br}from"./isVisulimaError-jVZgumOU-C4fgdbWg.js";const K=B(import.meta.url),b=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Y=s(e=>{if(typeof b<"u"&&b.versions&&b.versions.node){const[r,t]=b.versions.node.split(".").map(Number);if(r>22||r===22&&t>=3||r===20&&t>=16)return b.getBuiltinModule(e)}return K(e)},"__cjs_getBuiltinModule"),{createRequire:H}=Y("node:module");var X=Object.defineProperty,W=s((e,r)=>X(e,"name",{value:r,configurable:!0}),"s$6"),G=Object.defineProperty,Q=W((e,r)=>G(e,"name",{value:r,configurable:!0}),"o"),Z=Object.defineProperty,k=Q((e,r)=>Z(e,"name",{value:r,configurable:!0}),"l");const T=k((e,r)=>{let t=0,n=r.length-2;for(;t<n;){const o=t+(n-t>>1);if(e<r[o])n=o-1;else if(e>=r[o+1])t=o+1;else{t=o;break}}return t},"binarySearch"),ee=k(e=>e.split(/\n|\r(?!\n)/).reduce((r,t)=>(r.push(r.at(-1)+t.length+1),r),[0]),"getLineStartIndexes"),Pr=k((e,r,t)=>{const n=t?.skipChecks??!1;if(!n&&(!Array.isArray(e)&&typeof e!="string"||(typeof e=="string"||Array.isArray(e))&&e.length===0))return{column:0,line:0};if(!n&&(typeof r!="number"||typeof e=="string"&&r>=e.length||Array.isArray(e)&&r+1>=e.at(-1)))return{column:0,line:0};if(typeof e=="string"){const a=ee(e),i=T(r,a);return{column:r-a[i]+1,line:i+1}}const o=T(r,e);return{column:r-e[o]+1,line:o+1}},"indexToLineColumn");var re=Object.defineProperty,te=s((e,r)=>re(e,"name",{value:r,configurable:!0}),"t$5"),ne=Object.defineProperty,oe=te((e,r)=>ne(e,"name",{value:r,configurable:!0}),"n"),ae=Object.defineProperty,ie=oe((e,r)=>ae(e,"name",{value:r,configurable:!0}),"t");const wr=ie(({applicationType:e,error:r,file:t})=>`You are a very skilled ${t.language} programmer.
|
|
2
|
+
|
|
3
|
+
${e?`You are working on a ${e} application.`:""}
|
|
4
|
+
|
|
5
|
+
Use the following context to find a possible fix for the exception message at the end. Limit your answer to 4 or 5 sentences. Also include a few links to documentation that might help.
|
|
6
|
+
|
|
7
|
+
Use this format in your answer, make sure links are json:
|
|
8
|
+
|
|
9
|
+
FIX
|
|
10
|
+
insert the possible fix here
|
|
11
|
+
ENDFIX
|
|
12
|
+
LINKS
|
|
13
|
+
{"title": "Title link 1", "url": "URL link 1"}
|
|
14
|
+
{"title": "Title link 2", "url": "URL link 2"}
|
|
15
|
+
ENDLINKS
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
Here comes the context and the exception message:
|
|
19
|
+
|
|
20
|
+
Line: ${t.line}
|
|
21
|
+
|
|
22
|
+
File:
|
|
23
|
+
${t.file}
|
|
24
|
+
|
|
25
|
+
Snippet including line numbers:
|
|
26
|
+
${t.snippet}
|
|
27
|
+
|
|
28
|
+
Exception class:
|
|
29
|
+
${r.name}
|
|
30
|
+
|
|
31
|
+
Exception message:
|
|
32
|
+
${r.message}`,"aiPrompt");var se=Object.defineProperty,ue=s((e,r)=>se(e,"name",{value:r,configurable:!0}),"o$5"),ce=Object.defineProperty,le=ue((e,r)=>ce(e,"name",{value:r,configurable:!0}),"i"),fe=Object.defineProperty,_=le((e,r)=>fe(e,"name",{value:r,configurable:!0}),"i");const I=_((e,r,t)=>{const n=t.indexOf(e);if(n===-1)return"";const o=n+e.length,a=t.indexOf(r,o);return a===-1?"":t.slice(o,a).trim()},"between"),xr=_(e=>{const r=I("FIX","ENDFIX",e);if(!r)return["No solution found.",'Provide this response to the Maintainer of <a href="https://github.com/visulima/visulima/issues/new?assignees=&labels=s%3A+pending+triage%2Cc%3A+bug&projects=&template=bug_report.yml" target="_blank" rel="noopener noreferrer" class="text-blue-500 hover:underline inline-flex items-center text-sm">@visulima/error</a>.',`"${e}"`].join("</br></br>");const t=I("LINKS","ENDLINKS",e).split(`
|
|
33
|
+
`).map(n=>JSON.parse(n));return`${r.replaceAll(/"([^"]*)"(\s|\.)/g,"<code>$1</code> ")}
|
|
34
|
+
|
|
35
|
+
## Links
|
|
36
|
+
|
|
37
|
+
${t.map(n=>`- <a href="${n.url}" target="_blank" rel="noopener noreferrer">${n.title}</a>`).join(`
|
|
38
|
+
`)}
|
|
39
|
+
|
|
40
|
+
--------------------
|
|
41
|
+
This solution was generated with the <a href="https://sdk.vercel.ai/" target="_blank" rel="noopener noreferrer">AI SDK</a> and may not be 100% accurate.`},"aiSolutionResponse");var pe=Object.defineProperty,me=s((e,r)=>pe(e,"name",{value:r,configurable:!0}),"r$2"),de=Object.defineProperty,be=me((e,r)=>de(e,"name",{value:r,configurable:!0}),"r"),ge=Object.defineProperty,ye=be((e,r)=>ge(e,"name",{value:r,configurable:!0}),"i");const kr={handle:ye(async e=>{if(!(e.hint===void 0||e.hint===null)){if(typeof e.hint=="string"&&e.hint!=="")return{body:e.hint};if(typeof e.hint=="object"&&typeof e.hint.body=="string")return e.hint;if(Array.isArray(e.hint))return{body:e.hint.join(`
|
|
42
|
+
`)}}},"handle"),name:"errorHint",priority:1};var he=Object.defineProperty,ve=s((e,r)=>he(e,"name",{value:r,configurable:!0}),"m$1"),$e=Object.defineProperty,je=ve((e,r)=>$e(e,"name",{value:r,configurable:!0}),"m"),Oe=Object.defineProperty,u=je((e,r)=>Oe(e,"name",{value:r,configurable:!0}),"t");const Se=u(e=>`\`\`\`
|
|
43
|
+
${e.trim()}
|
|
44
|
+
\`\`\``,"code"),$=u(e=>`\`\`\`bash
|
|
45
|
+
${e.trim()}
|
|
46
|
+
\`\`\``,"bash"),j=u(e=>`\`\`\`ts
|
|
47
|
+
${e.trim()}
|
|
48
|
+
\`\`\``,"ts"),Ee=u(e=>`\`\`\`js
|
|
49
|
+
${e.trim()}
|
|
50
|
+
\`\`\``,"js"),p=u((e,...r)=>{const t=e.toLowerCase();return r.some(n=>t.includes(n.toLowerCase()))},"has"),Pe=[{name:"esm-cjs-interop",test:u(e=>{const r=(e?.message||String(e||"")).toString();if(p(r,"err_require_esm","cannot use import statement outside a module","must use import to load es module","require() of es module","does not provide an export named"))return{md:["Your project or a dependency may be mixing CommonJS and ES Modules.","","Try:","- Ensure package.json has the correct `type` (either `module` or `commonjs`).","- Use dynamic `import()` when requiring ESM from CJS.","- Prefer ESM-compatible entrypoints from dependencies.","- In Node, align `module` resolution with your bundler config.","","Check Node resolution:",$(`node -v
|
|
51
|
+
cat package.json | jq .type`),"","Example dynamic import in CJS:",Ee("(async () => { const mod = await import('some-esm'); mod.default(); })();")].join(`
|
|
52
|
+
`),title:"ESM/CJS interop"}},"test")},{name:"missing-default-export",test:u(e=>{const r=(e?.message||String(e||"")).toString();if(p(r,"default export not found","has no default export","does not provide an export named 'default'","is not exported from"))return{md:["Verify your import/export shapes.","","Default export example:",j(`export default function Component() {}
|
|
53
|
+
// import Component from './file'`),"","Named export example:",j(`export function Component() {}
|
|
54
|
+
// import { Component } from './file'`)].join(`
|
|
55
|
+
`),title:"Export mismatch (default vs named)"}},"test")},{name:"port-in-use",test:u(e=>{const r=(e?.message||String(e||"")).toString();if(p(r,"eaddrinuse","address already in use","listen eaddrinuse"))return{md:["Another process is using the port.","","Change the port or stop the other process.","","On macOS/Linux:",$(`lsof -i :3000
|
|
56
|
+
kill -9 <PID>`),"","On Windows (PowerShell):",$(`netstat -ano | findstr :3000
|
|
57
|
+
taskkill /PID <PID> /F`)].join(`
|
|
58
|
+
`),title:"Port already in use"}},"test")},{name:"file-not-found-or-case",test:u((e,r)=>{const t=(e?.message||String(e||"")).toString();if(p(t,"enoent","module not found","cannot find module"))return{md:["Check the import path and filename case (Linux/macOS are case-sensitive).","If using TS path aliases, verify `tsconfig.paths` and bundler aliases.","","Current file:",Se(`${r.file}:${r.line}`)].join(`
|
|
59
|
+
`),title:"Missing file or path case mismatch"}},"test")},{name:"ts-path-mapping",test:u(e=>{const r=(e?.message||String(e||"")).toString();if(p(r,"ts2307","cannot find module")||r.includes("TS2307"))return{md:["If you use path aliases, align TS `paths` with Vite/Webpack resolve aliases.","Ensure file extensions are correct and included in resolver.","","tsconfig.json excerpt:",j(`{
|
|
60
|
+
"compilerOptions": {
|
|
61
|
+
"baseUrl": ".",
|
|
62
|
+
"paths": { "@/*": ["src/*"] }
|
|
63
|
+
}
|
|
64
|
+
}`)].join(`
|
|
65
|
+
`),title:"TypeScript path mapping / resolution"}},"test")},{name:"network-dns-enotfound",test:u(e=>{const r=(e?.message||String(e||"")).toString();if(p(r,"enotfound","getaddrinfo enotfound","dns","fetch failed","ecconnrefused","econnrefused"))return{md:["The host may be unreachable or misconfigured.","","Try:","- Verify the hostname and protocol (http/https).","- Check VPN/proxy and firewall.","- Confirm the service is running and listening on the expected port.","",$(`ping <host>
|
|
66
|
+
nslookup <host>
|
|
67
|
+
curl -v http://<host>:<port>`)].join(`
|
|
68
|
+
`),title:"Network/DNS connection issue"}},"test")},{name:"undefined-property",test:u(e=>{const r=(e?.message||String(e||"")).toString();if(p(r,"cannot read properties of undefined","reading '"))return{md:["A variable or function returned `undefined`.","","Mitigations:","- Add nullish checks before property access.","- Validate function return values and input props/state.","",j("const value = maybe?.prop; // or: if (maybe) { use(maybe.prop) }")].join(`
|
|
69
|
+
`),title:"Accessing property of undefined"}},"test")}],Nr={handle:u(async(e,r)=>{try{const t=Pe.map(o=>({match:o.test(e,r),rule:o})).filter(o=>!!o.match);if(t.length===0)return;const n=t.toSorted((o,a)=>(o.match.priority||0)-(a.match.priority||0)).map(o=>`#### ${o.match.title}
|
|
70
|
+
|
|
71
|
+
${o.match.md}`).join(`
|
|
72
|
+
|
|
73
|
+
---
|
|
74
|
+
|
|
75
|
+
`);return n===""?void 0:{body:n,header:"### Potential fixes detected"}}catch{return}},"handle"),name:"ruleBasedHints",priority:0};var we=Object.defineProperty,D=s((e,r)=>we(e,"name",{value:r,configurable:!0}),"t$3"),xe=Object.defineProperty,J=D((e,r)=>xe(e,"name",{value:r,configurable:!0}),"t"),ke=Object.defineProperty,Ne=J((e,r)=>ke(e,"name",{value:r,configurable:!0}),"s");let m=class extends Error{static{s(this,"i")}static{D(this,"c")}static{J(this,"e")}static{Ne(this,"NonError")}constructor(r){super(r),this.name="NonError"}};var Ae=Object.defineProperty,Te=s((e,r)=>Ae(e,"name",{value:r,configurable:!0}),"a$2"),Ie=Object.defineProperty,Ce=Te((e,r)=>Ie(e,"name",{value:r,configurable:!0}),"a"),_e=Object.defineProperty,De=Ce((e,r)=>_e(e,"name",{value:r,configurable:!0}),"e");const Tr=De(()=>{if(!Error.captureStackTrace)return;const e=new Error;return Error.captureStackTrace(e),e.stack},"captureRawStackTrace");var Je=Object.defineProperty,L=s((e,r)=>Je(e,"name",{value:r,configurable:!0}),"r"),Le=Object.defineProperty,F=L((e,r)=>Le(e,"name",{value:r,configurable:!0}),"o"),Fe=Object.defineProperty,Re=F((e,r)=>Fe(e,"name",{value:r,configurable:!0}),"e");function d(e){if(typeof e!="object"||e===null)return!1;const r=Object.getPrototypeOf(e);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}s(d,"o$1");L(d,"i");F(d,"r");Re(d,"isPlainObject");var Me=Object.defineProperty,Ve=s((e,r)=>Me(e,"name",{value:r,configurable:!0}),"E$1"),Ue=Object.defineProperty,qe=Ve((e,r)=>Ue(e,"name",{value:r,configurable:!0}),"E"),ze=Object.defineProperty,S=qe((e,r)=>ze(e,"name",{value:r,configurable:!0}),"n");const y=new Map([["Error",Error],["EvalError",EvalError],["RangeError",RangeError],["ReferenceError",ReferenceError],["SyntaxError",SyntaxError],["TypeError",TypeError],["URIError",URIError]]);typeof AggregateError<"u"&&y.set("AggregateError",AggregateError);const Ir=S((e,r)=>{let t;try{t=new e}catch(o){throw new Error(`The error constructor "${e.name}" is not compatible`,{cause:o})}const n=r??t.name;if(y.has(n))throw new Error(`The error constructor "${n}" is already known.`);y.set(n,e)},"addKnownErrorConstructor");S(()=>new Map(y),"getKnownErrorConstructors");const R=S(e=>y.get(e),"getErrorConstructor"),E=S(e=>e!==null&&typeof e=="object"&&typeof e.name=="string"&&typeof e.message=="string"&&(R(e.name)!==void 0||e.name==="Error"),"isErrorLike");var Be=Object.defineProperty,Ke=s((e,r)=>Be(e,"name",{value:r,configurable:!0}),"b$2"),Ye=Object.defineProperty,He=Ke((e,r)=>Ye(e,"name",{value:r,configurable:!0}),"d"),Xe=Object.defineProperty,c=He((e,r)=>Xe(e,"name",{value:r,configurable:!0}),"s");const We={maxDepth:Number.POSITIVE_INFINITY},M=c((e,r,t=0)=>E(e)?N(e,r,t):r.maxDepth!==void 0&&t>=r.maxDepth?new m(JSON.stringify(e)):new m(JSON.stringify(e)),"deserializePlainObject"),Ge=c((e,r,t,n,o)=>{const a=r.map(i=>h(i,n,o+1));return new e(a,t)},"reconstructAggregateError"),N=c((e,r,t)=>{if(r.maxDepth!==void 0&&t>=r.maxDepth)return new m(JSON.stringify(e));const{cause:n,errors:o,message:a,name:i,stack:l,...P}=e,A=R(i)||Error,f=i==="AggregateError"&&Array.isArray(o)?Ge(A,o,a,r,t):new A(a);return!f.name&&i&&(f.name=i),a!==void 0&&(f.message=a),l&&(f.stack=l),Qe(f,P,n,i,r,t),n!==void 0&&(f.cause=h(n,r,t+1)),Ze(f,e),f},"reconstructError"),h=c((e,r,t)=>{if(d(e)){if(E(e))return M(e,r,t);const n={};for(const[o,a]of Object.entries(e))n[o]=h(a,r,t+1);return n}return Array.isArray(e)?e.map(n=>h(n,r,t)):e},"deserializeValue"),Qe=c((e,r,t,n,o,a)=>{const i=e;for(const[l,P]of Object.entries(r))if(!(l==="cause"&&t!==void 0)){if(l==="errors"&&n==="AggregateError")continue;i[l]=h(P,o,a+1)}},"restoreErrorProperties"),Ze=c((e,r)=>{const t=new Set(["message","name","stack"]);for(const n of Object.keys(r))t.add(n);for(const n of t)if(n in e){const o=Object.getOwnPropertyDescriptor(e,n);o&&!o.enumerable&&Object.defineProperty(e,n,{...o,enumerable:!0})}},"makePropertiesEnumerable"),C=c(e=>new m(JSON.stringify(e)),"handlePrimitive"),er=c(e=>new m(JSON.stringify(e)),"handleArray"),rr=c((e,r)=>E(e)?N(e,r,0):M(e,r),"handlePlainObject"),Cr=c((e,r={})=>{const t={...We,...r};return e instanceof Error?e:e===null?C(null):typeof e=="string"||typeof e=="number"||typeof e=="boolean"?C(e):Array.isArray(e)?er(e):E(e)?N(e,t,0):d(e)?rr(e,t):new m(JSON.stringify(e))},"deserialize");var tr=Object.defineProperty,nr=s((e,r)=>tr(e,"name",{value:r,configurable:!0}),"a"),or=Object.defineProperty,V=nr((e,r)=>or(e,"name",{value:r,configurable:!0}),"n");const ar=H(import.meta.url),g=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ir=V(e=>{if(typeof g<"u"&&g.versions&&g.versions.node){const[r,t]=g.versions.node.split(".").map(Number);if(r>22||r===22&&t>=3||r===20&&t>=16)return g.getBuiltinModule(e)}return ar(e)},"__cjs_getBuiltinModule"),{inspect:sr}=ir("node:util");var ur=Object.defineProperty,cr=V((e,r)=>ur(e,"name",{value:r,configurable:!0}),"a");const _r=cr(e=>{const r=new Set,t=[];let n=e;for(;n;){if(r.has(n)){console.error(`Circular reference detected in error causes: ${sr(e)}`);break}if(t.push(n),r.add(n),!n.cause)break;n=n.cause}return t},"getErrorCauses");var lr=Object.defineProperty,fr=s((e,r)=>lr(e,"name",{value:r,configurable:!0}),"o"),pr=Object.defineProperty,mr=fr((e,r)=>pr(e,"name",{value:r,configurable:!0}),"n"),dr=Object.defineProperty,U=mr((e,r)=>dr(e,"name",{value:r,configurable:!0}),"s");const br=U(e=>{const r=e.methodName&&e.methodName!=="<unknown>"?`${e.methodName} `:"",t=e.file??"<unknown>",n=e.line??0,o=e.column??0;return r.trim()?` at ${r}(${t}:${n}:${o})`:` at ${t}:${n}:${o}`},"formatStackFrameLine"),Dr=U((e,r)=>{const t=[];if(r?.header&&(r.header.name||r.header.message)){const n=String(r.header.name||"Error"),o=String(r.header.message||"");t.push(`${n}${o?": ":""}${o}`)}for(const n of e)t.push(br(n));return t.join(`
|
|
76
|
+
`)},"formatStacktrace");var gr=Object.defineProperty,yr=s((e,r)=>gr(e,"name",{value:r,configurable:!0}),"b"),hr=Object.defineProperty,vr=yr((e,r)=>hr(e,"name",{value:r,configurable:!0}),"f");const $r=Object.create({},{cause:{enumerable:!1,value:void 0,writable:!0},code:{enumerable:!0,value:void 0,writable:!0},errors:{enumerable:!1,value:void 0,writable:!0},message:{enumerable:!1,value:void 0,writable:!0},name:{enumerable:!1,value:void 0,writable:!0},stack:{enumerable:!1,value:void 0,writable:!0}});var jr=Object.defineProperty,v=vr((e,r)=>jr(e,"name",{value:r,configurable:!0}),"u");const w=new WeakSet,q=v(e=>{if(!e||typeof e!="object")return;const r=Object.getOwnPropertyNames(e);for(const t of r){const n=Object.getOwnPropertyDescriptor(e,t);n&&(n.enumerable||Object.defineProperty(e,t,{...n,enumerable:!0}),n.value&&typeof n.value=="object"&&!Array.isArray(n.value)&&(Object.getPrototypeOf(n.value)===Object.prototype||Object.getPrototypeOf(n.value)===null)&&q(n.value))}},"makePropertiesEnumerable"),Or=v(e=>{w.add(e);const r=e.toJSON();return w.delete(e),r&&typeof r=="object"&&Object.isExtensible(r)&&q(r),r},"toJSON"),x=v((e,r,t,n)=>{if(e&&e instanceof Uint8Array&&e.constructor.name==="Buffer")return"[object Buffer]";if(e!==null&&typeof e=="object"&&typeof e.pipe=="function")return"[object Stream]";if(e instanceof Error)return r.has(e)?"[Circular]":(t+=1,O(e,n,r,t));if(n.useToJSON&&typeof e.toJSON=="function")return e.toJSON();if(typeof e=="object"&&e instanceof Date)return e.toISOString();if(typeof e=="function")return`[Function: ${e.name||"anonymous"}]`;if(typeof e=="bigint")return`${e}n`;if(d(e)){if(n.maxDepth!==void 0&&n.maxDepth!==Number.POSITIVE_INFINITY&&t+1>=n.maxDepth)return{};t+=1;const o={};for(const a in e)o[a]=x(e[a],r,t,n);return o}try{return e}catch{return"[Not Available]"}},"serializeValue"),O=v((e,r,t,n)=>{if(t.add(e),r.maxDepth===0)return{};if(r.useToJSON&&typeof e.toJSON=="function"&&!w.has(e))return Or(e);const o=Object.create($r);if(Object.defineProperty(o,"name",{configurable:!0,enumerable:!0,value:Object.prototype.toString.call(e.constructor)==="[object Function]"?e.constructor.name:e.name,writable:!0}),Object.defineProperty(o,"message",{configurable:!0,enumerable:!0,value:e.message,writable:!0}),Object.defineProperty(o,"stack",{configurable:!0,enumerable:!0,value:e.stack,writable:!0}),Array.isArray(e.errors)){const a=[];for(const i of e.errors){if(!(i instanceof Error))throw new TypeError("All errors in the 'errors' property must be instances of Error");if(t.has(i))return Object.defineProperty(o,"errors",{configurable:!0,enumerable:!0,value:[],writable:!0}),o;a.push(O(i,r,t,n))}Object.defineProperty(o,"errors",{configurable:!0,enumerable:!0,value:a,writable:!0})}if(e.cause!==void 0&&e.cause!==null)if(e.cause instanceof Error)t.has(e.cause)?Object.defineProperty(o,"cause",{configurable:!0,enumerable:!0,value:"[Circular]",writable:!0}):Object.defineProperty(o,"cause",{configurable:!0,enumerable:!0,value:O(e.cause,r,t,n),writable:!0});else{const a=x(e.cause,t,n,r);Object.defineProperty(o,"cause",{configurable:!0,enumerable:!0,value:a,writable:!0})}for(const a in e){if(a==="name"||a==="message"||a==="stack"||a==="cause"||a==="errors")continue;const i=e[a],l=x(i,t,n,r);Object.defineProperty(o,a,{configurable:!0,enumerable:!0,value:l,writable:!0})}if(Array.isArray(r.exclude)&&r.exclude.length>0)for(const a of r.exclude)try{delete o[a]}catch{}return o},"_serialize"),Jr=v((e,r={})=>O(e,{exclude:r.exclude??[],maxDepth:r.maxDepth??Number.POSITIVE_INFINITY,useToJSON:r.useToJSON??!1},new Set,0),"serialize");export{Rr as CODE_FRAME_POINTER,m as NonError,zr as VisulimaError,Ir as addKnownErrorConstructor,wr as aiPrompt,xr as aiSolutionResponse,Tr as captureRawStackTrace,Mr as codeFrame,Cr as deserializeError,kr as errorHintFinder,br as formatStackFrameLine,Dr as formatStacktrace,_r as getErrorCauses,Pr as indexToLineColumn,E as isErrorLike,Br as isVisulimaError,Vr as parseStacktrace,Ur as renderError,Nr as ruleBasedFinder,Jr as serializeError};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var m=Object.defineProperty;var I=(t,r)=>m(t,"name",{value:r,configurable:!0});import{d as A}from"../../packem_shared/runtime-process-G-n-wOub.js";var i={},c,U;function l(){return U||(U=1,c=[{name:"Agola CI",constant:"AGOLA",env:"AGOLA_GIT_REF",pr:"AGOLA_PULL_REQUEST_ID"},{name:"Appcircle",constant:"APPCIRCLE",env:"AC_APPCIRCLE",pr:{env:"AC_GIT_PR",ne:"false"}},{name:"AppVeyor",constant:"APPVEYOR",env:"APPVEYOR",pr:"APPVEYOR_PULL_REQUEST_NUMBER"},{name:"AWS CodeBuild",constant:"CODEBUILD",env:"CODEBUILD_BUILD_ARN",pr:{env:"CODEBUILD_WEBHOOK_EVENT",any:["PULL_REQUEST_CREATED","PULL_REQUEST_UPDATED","PULL_REQUEST_REOPENED"]}},{name:"Azure Pipelines",constant:"AZURE_PIPELINES",env:"TF_BUILD",pr:{BUILD_REASON:"PullRequest"}},{name:"Bamboo",constant:"BAMBOO",env:"bamboo_planKey"},{name:"Bitbucket Pipelines",constant:"BITBUCKET",env:"BITBUCKET_COMMIT",pr:"BITBUCKET_PR_ID"},{name:"Bitrise",constant:"BITRISE",env:"BITRISE_IO",pr:"BITRISE_PULL_REQUEST"},{name:"Buddy",constant:"BUDDY",env:"BUDDY_WORKSPACE_ID",pr:"BUDDY_EXECUTION_PULL_REQUEST_ID"},{name:"Buildkite",constant:"BUILDKITE",env:"BUILDKITE",pr:{env:"BUILDKITE_PULL_REQUEST",ne:"false"}},{name:"CircleCI",constant:"CIRCLE",env:"CIRCLECI",pr:"CIRCLE_PULL_REQUEST"},{name:"Cirrus CI",constant:"CIRRUS",env:"CIRRUS_CI",pr:"CIRRUS_PR"},{name:"Cloudflare Pages",constant:"CLOUDFLARE_PAGES",env:"CF_PAGES"},{name:"Cloudflare Workers",constant:"CLOUDFLARE_WORKERS",env:"WORKERS_CI"},{name:"Codefresh",constant:"CODEFRESH",env:"CF_BUILD_ID",pr:{any:["CF_PULL_REQUEST_NUMBER","CF_PULL_REQUEST_ID"]}},{name:"Codemagic",constant:"CODEMAGIC",env:"CM_BUILD_ID",pr:"CM_PULL_REQUEST"},{name:"Codeship",constant:"CODESHIP",env:{CI_NAME:"codeship"}},{name:"Drone",constant:"DRONE",env:"DRONE",pr:{DRONE_BUILD_EVENT:"pull_request"}},{name:"dsari",constant:"DSARI",env:"DSARI"},{name:"Earthly",constant:"EARTHLY",env:"EARTHLY_CI"},{name:"Expo Application Services",constant:"EAS",env:"EAS_BUILD"},{name:"Gerrit",constant:"GERRIT",env:"GERRIT_PROJECT"},{name:"Gitea Actions",constant:"GITEA_ACTIONS",env:"GITEA_ACTIONS"},{name:"GitHub Actions",constant:"GITHUB_ACTIONS",env:"GITHUB_ACTIONS",pr:{GITHUB_EVENT_NAME:"pull_request"}},{name:"GitLab CI",constant:"GITLAB",env:"GITLAB_CI",pr:"CI_MERGE_REQUEST_ID"},{name:"GoCD",constant:"GOCD",env:"GO_PIPELINE_LABEL"},{name:"Google Cloud Build",constant:"GOOGLE_CLOUD_BUILD",env:"BUILDER_OUTPUT"},{name:"Harness CI",constant:"HARNESS",env:"HARNESS_BUILD_ID"},{name:"Heroku",constant:"HEROKU",env:{env:"NODE",includes:"/app/.heroku/node/bin/node"}},{name:"Hudson",constant:"HUDSON",env:"HUDSON_URL"},{name:"Jenkins",constant:"JENKINS",env:["JENKINS_URL","BUILD_ID"],pr:{any:["ghprbPullId","CHANGE_ID"]}},{name:"LayerCI",constant:"LAYERCI",env:"LAYERCI",pr:"LAYERCI_PULL_REQUEST"},{name:"Magnum CI",constant:"MAGNUM",env:"MAGNUM"},{name:"Netlify CI",constant:"NETLIFY",env:"NETLIFY",pr:{env:"PULL_REQUEST",ne:"false"}},{name:"Nevercode",constant:"NEVERCODE",env:"NEVERCODE",pr:{env:"NEVERCODE_PULL_REQUEST",ne:"false"}},{name:"Prow",constant:"PROW",env:"PROW_JOB_ID"},{name:"ReleaseHub",constant:"RELEASEHUB",env:"RELEASE_BUILD_ID"},{name:"Render",constant:"RENDER",env:"RENDER",pr:{IS_PULL_REQUEST:"true"}},{name:"Sail CI",constant:"SAIL",env:"SAILCI",pr:"SAIL_PULL_REQUEST_NUMBER"},{name:"Screwdriver",constant:"SCREWDRIVER",env:"SCREWDRIVER",pr:{env:"SD_PULL_REQUEST",ne:"false"}},{name:"Semaphore",constant:"SEMAPHORE",env:"SEMAPHORE",pr:"PULL_REQUEST_NUMBER"},{name:"Sourcehut",constant:"SOURCEHUT",env:{CI_NAME:"sourcehut"}},{name:"Strider CD",constant:"STRIDER",env:"STRIDER"},{name:"TaskCluster",constant:"TASKCLUSTER",env:["TASK_ID","RUN_ID"]},{name:"TeamCity",constant:"TEAMCITY",env:"TEAMCITY_VERSION"},{name:"Travis CI",constant:"TRAVIS",env:"TRAVIS",pr:{env:"TRAVIS_PULL_REQUEST",ne:"false"}},{name:"Vela",constant:"VELA",env:"VELA",pr:{VELA_PULL_REQUEST:"1"}},{name:"Vercel",constant:"VERCEL",env:{any:["NOW_BUILDER","VERCEL"]},pr:"VERCEL_GIT_PULL_REQUEST_ID"},{name:"Visual Studio App Center",constant:"APPCENTER",env:"APPCENTER_BUILD_ID"},{name:"Woodpecker",constant:"WOODPECKER",env:{CI:"woodpecker"},pr:{CI_BUILD_EVENT:"pull_request"}},{name:"Xcode Cloud",constant:"XCODE_CLOUD",env:"CI_XCODE_PROJECT",pr:"CI_PULL_REQUEST_NUMBER"},{name:"Xcode Server",constant:"XCODE_SERVER",env:"XCS"}]),c}I(l,"requireVendors");var L;function
|
|
1
|
+
var m=Object.defineProperty;var I=(t,r)=>m(t,"name",{value:r,configurable:!0});import{d as A}from"../../packem_shared/runtime-process-G-n-wOub.js";var i={},c,U;function l(){return U||(U=1,c=[{name:"Agola CI",constant:"AGOLA",env:"AGOLA_GIT_REF",pr:"AGOLA_PULL_REQUEST_ID"},{name:"Alpic",constant:"ALPIC",env:"ALPIC_HOST"},{name:"Appcircle",constant:"APPCIRCLE",env:"AC_APPCIRCLE",pr:{env:"AC_GIT_PR",ne:"false"}},{name:"AppVeyor",constant:"APPVEYOR",env:"APPVEYOR",pr:"APPVEYOR_PULL_REQUEST_NUMBER"},{name:"AWS CodeBuild",constant:"CODEBUILD",env:"CODEBUILD_BUILD_ARN",pr:{env:"CODEBUILD_WEBHOOK_EVENT",any:["PULL_REQUEST_CREATED","PULL_REQUEST_UPDATED","PULL_REQUEST_REOPENED"]}},{name:"Azure Pipelines",constant:"AZURE_PIPELINES",env:"TF_BUILD",pr:{BUILD_REASON:"PullRequest"}},{name:"Bamboo",constant:"BAMBOO",env:"bamboo_planKey"},{name:"Bitbucket Pipelines",constant:"BITBUCKET",env:"BITBUCKET_COMMIT",pr:"BITBUCKET_PR_ID"},{name:"Bitrise",constant:"BITRISE",env:"BITRISE_IO",pr:"BITRISE_PULL_REQUEST"},{name:"Buddy",constant:"BUDDY",env:"BUDDY_WORKSPACE_ID",pr:"BUDDY_EXECUTION_PULL_REQUEST_ID"},{name:"Buildkite",constant:"BUILDKITE",env:"BUILDKITE",pr:{env:"BUILDKITE_PULL_REQUEST",ne:"false"}},{name:"CircleCI",constant:"CIRCLE",env:"CIRCLECI",pr:"CIRCLE_PULL_REQUEST"},{name:"Cirrus CI",constant:"CIRRUS",env:"CIRRUS_CI",pr:"CIRRUS_PR"},{name:"Cloudflare Pages",constant:"CLOUDFLARE_PAGES",env:"CF_PAGES"},{name:"Cloudflare Workers",constant:"CLOUDFLARE_WORKERS",env:"WORKERS_CI"},{name:"Codefresh",constant:"CODEFRESH",env:"CF_BUILD_ID",pr:{any:["CF_PULL_REQUEST_NUMBER","CF_PULL_REQUEST_ID"]}},{name:"Codemagic",constant:"CODEMAGIC",env:"CM_BUILD_ID",pr:"CM_PULL_REQUEST"},{name:"Codeship",constant:"CODESHIP",env:{CI_NAME:"codeship"}},{name:"Drone",constant:"DRONE",env:"DRONE",pr:{DRONE_BUILD_EVENT:"pull_request"}},{name:"dsari",constant:"DSARI",env:"DSARI"},{name:"Earthly",constant:"EARTHLY",env:"EARTHLY_CI"},{name:"Expo Application Services",constant:"EAS",env:"EAS_BUILD"},{name:"Gerrit",constant:"GERRIT",env:"GERRIT_PROJECT"},{name:"Gitea Actions",constant:"GITEA_ACTIONS",env:"GITEA_ACTIONS"},{name:"GitHub Actions",constant:"GITHUB_ACTIONS",env:"GITHUB_ACTIONS",pr:{GITHUB_EVENT_NAME:"pull_request"}},{name:"GitLab CI",constant:"GITLAB",env:"GITLAB_CI",pr:"CI_MERGE_REQUEST_ID"},{name:"GoCD",constant:"GOCD",env:"GO_PIPELINE_LABEL"},{name:"Google Cloud Build",constant:"GOOGLE_CLOUD_BUILD",env:"BUILDER_OUTPUT"},{name:"Harness CI",constant:"HARNESS",env:"HARNESS_BUILD_ID"},{name:"Heroku",constant:"HEROKU",env:{env:"NODE",includes:"/app/.heroku/node/bin/node"}},{name:"Hudson",constant:"HUDSON",env:"HUDSON_URL"},{name:"Jenkins",constant:"JENKINS",env:["JENKINS_URL","BUILD_ID"],pr:{any:["ghprbPullId","CHANGE_ID"]}},{name:"LayerCI",constant:"LAYERCI",env:"LAYERCI",pr:"LAYERCI_PULL_REQUEST"},{name:"Magnum CI",constant:"MAGNUM",env:"MAGNUM"},{name:"Netlify CI",constant:"NETLIFY",env:"NETLIFY",pr:{env:"PULL_REQUEST",ne:"false"}},{name:"Nevercode",constant:"NEVERCODE",env:"NEVERCODE",pr:{env:"NEVERCODE_PULL_REQUEST",ne:"false"}},{name:"Prow",constant:"PROW",env:"PROW_JOB_ID"},{name:"ReleaseHub",constant:"RELEASEHUB",env:"RELEASE_BUILD_ID"},{name:"Render",constant:"RENDER",env:"RENDER",pr:{IS_PULL_REQUEST:"true"}},{name:"Sail CI",constant:"SAIL",env:"SAILCI",pr:"SAIL_PULL_REQUEST_NUMBER"},{name:"Screwdriver",constant:"SCREWDRIVER",env:"SCREWDRIVER",pr:{env:"SD_PULL_REQUEST",ne:"false"}},{name:"Semaphore",constant:"SEMAPHORE",env:"SEMAPHORE",pr:"PULL_REQUEST_NUMBER"},{name:"Sourcehut",constant:"SOURCEHUT",env:{CI_NAME:"sourcehut"}},{name:"Strider CD",constant:"STRIDER",env:"STRIDER"},{name:"TaskCluster",constant:"TASKCLUSTER",env:["TASK_ID","RUN_ID"]},{name:"TeamCity",constant:"TEAMCITY",env:"TEAMCITY_VERSION"},{name:"Travis CI",constant:"TRAVIS",env:"TRAVIS",pr:{env:"TRAVIS_PULL_REQUEST",ne:"false"}},{name:"Vela",constant:"VELA",env:"VELA",pr:{VELA_PULL_REQUEST:"1"}},{name:"Vercel",constant:"VERCEL",env:{any:["NOW_BUILDER","VERCEL"]},pr:"VERCEL_GIT_PULL_REQUEST_ID"},{name:"Visual Studio App Center",constant:"APPCENTER",env:"APPCENTER_BUILD_ID"},{name:"Woodpecker",constant:"WOODPECKER",env:{CI:"woodpecker"},pr:{CI_BUILD_EVENT:"pull_request"}},{name:"Xcode Cloud",constant:"XCODE_CLOUD",env:"CI_XCODE_PROJECT",pr:"CI_PULL_REQUEST_NUMBER"},{name:"Xcode Server",constant:"XCODE_SERVER",env:"XCS"}]),c}I(l,"requireVendors");var L;function P(){return L||(L=1,(function(t){var r=Object.defineProperty,E=I((n,a)=>r(n,"name",{value:a,configurable:!0}),"t");const s=l(),e=process.env;Object.defineProperty(t,"_vendors",{value:s.map(function(n){return n.constant})}),t.name=null,t.isPR=null,t.id=null,e.CI!=="false"&&s.forEach(function(n){const a=(Array.isArray(n.env)?n.env:[n.env]).every(function(R){return o(R)});t[n.constant]=a,a&&(t.name=n.name,t.isPR=_(n),t.id=n.constant)}),t.isCI=!!(e.CI!=="false"&&(e.BUILD_ID||e.BUILD_NUMBER||e.CI||e.CI_APP_ID||e.CI_BUILD_ID||e.CI_BUILD_NUMBER||e.CI_NAME||e.CONTINUOUS_INTEGRATION||e.RUN_ID||t.name));function o(n){return typeof n=="string"?!!e[n]:"env"in n?e[n.env]&&e[n.env].includes(n.includes):"any"in n?n.any.some(function(a){return!!e[a]}):Object.keys(n).every(function(a){return e[a]===n[a]})}I(o,"checkEnv"),E(o,"checkEnv");function _(n){switch(typeof n.pr){case"string":return!!e[n.pr];case"object":return"env"in n.pr?"any"in n.pr?n.pr.any.some(function(a){return e[n.pr.env]===a}):n.pr.env in e&&e[n.pr.env]!==n.pr.ne:"any"in n.pr?n.pr.any.some(function(a){return!!e[a]}):o(n.pr);default:return null}}I(_,"checkPR"),E(_,"checkPR")})(i)),i}I(P,"requireCiInfo");var d=P(),O=Object.defineProperty,C=I((t,r)=>O(t,"name",{value:r,configurable:!0}),"i");const f=C((t={})=>({beforeCommand:C(async r=>{const{logger:E,runtime:s}=r,e=s.getPackageName(),o=s.getPackageVersion();if(!e||!o){E.debug("Update notifier: package name or version not provided, skipping...");return}const _=A(),n={alwaysRun:!1,debug:_.CEREBRO_OUTPUT_LEVEL==="256",distTag:"latest",pkg:{name:e,version:o},updateCheckInterval:1e3*60*60*24,...t};if(!(n.alwaysRun||!(_.NO_UPDATE_NOTIFIER||_.NODE_ENV==="test"||r.argv.includes("--no-update-notifier")||d.isCI))){E.debug("Update notifier: skipping check (disabled by environment or flags)");return}(E?.raw??E.log)("Checking for updates...");try{const a=await(await import("../../packem_chunks/has-new-version.js").then(R=>R.default))(n);if(a){const[{boxen:R},{dim:v,green:u,reset:T,yellow:D}]=await Promise.all([import("@visulima/boxen"),import("@visulima/colorize")]),p=`Update available ${v(o.toString())}${T(" → ")}${u(a)}`;E.error(R(p,{borderColor:C(S=>D(S),"borderColor"),borderStyle:"round",margin:1,padding:1,textAlignment:"center"}))}}catch(a){E.debug("Update notifier: failed to check for updates",a)}},"beforeCommand"),description:"Checks for package updates and notifies users",name:"update-notifier",version:"1.0.0"}),"updateNotifierPlugin");export{f as updateNotifierPlugin};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@visulima/cerebro",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.7",
|
|
4
4
|
"description": "A delightful toolkit for building cross-runtime CLIs for Node.js, Deno, and Bun.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"visulima",
|
|
@@ -103,15 +103,15 @@
|
|
|
103
103
|
"LICENSE.md"
|
|
104
104
|
],
|
|
105
105
|
"dependencies": {
|
|
106
|
-
"@visulima/colorize": "2.0.0-alpha.
|
|
107
|
-
"@visulima/tabular": "4.0.0-alpha.
|
|
106
|
+
"@visulima/colorize": "2.0.0-alpha.5",
|
|
107
|
+
"@visulima/tabular": "4.0.0-alpha.6",
|
|
108
108
|
"fastest-levenshtein": "^1.0.16"
|
|
109
109
|
},
|
|
110
110
|
"peerDependencies": {
|
|
111
111
|
"@bomb.sh/tab": "^0.0.7",
|
|
112
|
-
"@visulima/boxen": "3.0.0-alpha.
|
|
113
|
-
"@visulima/find-cache-dir": "3.0.0-alpha.
|
|
114
|
-
"@visulima/pail": "4.0.0-alpha.
|
|
112
|
+
"@visulima/boxen": "3.0.0-alpha.6",
|
|
113
|
+
"@visulima/find-cache-dir": "3.0.0-alpha.4",
|
|
114
|
+
"@visulima/pail": "4.0.0-alpha.7",
|
|
115
115
|
"github-slugger": "2.0.0"
|
|
116
116
|
},
|
|
117
117
|
"peerDependenciesMeta": {
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
var q=Object.defineProperty;var s=(e,r)=>q(e,"name",{value:r,configurable:!0});import{createRequire as z}from"node:module";import{k as Rr,N as Fr,P as Mr,G as Vr}from"./renderError-ZMlMvw1N-eVUSdl6c.js";import{p as qr,V as zr}from"./isVisulimaError-jVZgumOU-C4fgdbWg.js";const B=z(import.meta.url),g=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,K=s(e=>{if(typeof g<"u"&&g.versions&&g.versions.node){const[r,t]=g.versions.node.split(".").map(Number);if(r>22||r===22&&t>=3||r===20&&t>=16)return g.getBuiltinModule(e)}return B(e)},"__cjs_getBuiltinModule"),{createRequire:Y}=K("node:module");var H=Object.defineProperty,X=s((e,r)=>H(e,"name",{value:r,configurable:!0}),"s$6"),W=Object.defineProperty,G=X((e,r)=>W(e,"name",{value:r,configurable:!0}),"o"),Q=Object.defineProperty,x=G((e,r)=>Q(e,"name",{value:r,configurable:!0}),"l");const A=x((e,r)=>{let t=0,n=r.length-2;for(;t<n;){const o=t+(n-t>>1);if(e<r[o])n=o-1;else if(e>=r[o+1])t=o+1;else{t=o;break}}return t},"binarySearch"),Z=x(e=>e.split(/\n|\r(?!\n)/).reduce((r,t)=>(r.push(r.at(-1)+t.length+1),r),[0]),"getLineStartIndexes"),Er=x((e,r,t)=>{const n=t?.skipChecks??!1;if(!n&&(!Array.isArray(e)&&typeof e!="string"||(typeof e=="string"||Array.isArray(e))&&e.length===0))return{column:0,line:0};if(!n&&(typeof r!="number"||typeof e=="string"&&r>=e.length||Array.isArray(e)&&r+1>=e.at(-1)))return{column:0,line:0};if(typeof e=="string"){const a=Z(e),i=A(r,a);return{column:r-a[i]+1,line:i+1}}const o=A(r,e);return{column:r-e[o]+1,line:o+1}},"indexToLineColumn");var ee=Object.defineProperty,re=s((e,r)=>ee(e,"name",{value:r,configurable:!0}),"t$5"),te=Object.defineProperty,ne=re((e,r)=>te(e,"name",{value:r,configurable:!0}),"n"),oe=Object.defineProperty,ae=ne((e,r)=>oe(e,"name",{value:r,configurable:!0}),"t");const Pr=ae(({applicationType:e,error:r,file:t})=>`You are a very skilled ${t.language} programmer.
|
|
2
|
-
|
|
3
|
-
${e?`You are working on a ${e} application.`:""}
|
|
4
|
-
|
|
5
|
-
Use the following context to find a possible fix for the exception message at the end. Limit your answer to 4 or 5 sentences. Also include a few links to documentation that might help.
|
|
6
|
-
|
|
7
|
-
Use this format in your answer, make sure links are json:
|
|
8
|
-
|
|
9
|
-
FIX
|
|
10
|
-
insert the possible fix here
|
|
11
|
-
ENDFIX
|
|
12
|
-
LINKS
|
|
13
|
-
{"title": "Title link 1", "url": "URL link 1"}
|
|
14
|
-
{"title": "Title link 2", "url": "URL link 2"}
|
|
15
|
-
ENDLINKS
|
|
16
|
-
---
|
|
17
|
-
|
|
18
|
-
Here comes the context and the exception message:
|
|
19
|
-
|
|
20
|
-
Line: ${t.line}
|
|
21
|
-
|
|
22
|
-
File:
|
|
23
|
-
${t.file}
|
|
24
|
-
|
|
25
|
-
Snippet including line numbers:
|
|
26
|
-
${t.snippet}
|
|
27
|
-
|
|
28
|
-
Exception class:
|
|
29
|
-
${r.name}
|
|
30
|
-
|
|
31
|
-
Exception message:
|
|
32
|
-
${r.message}`,"aiPrompt");var ie=Object.defineProperty,se=s((e,r)=>ie(e,"name",{value:r,configurable:!0}),"o$5"),ue=Object.defineProperty,ce=se((e,r)=>ue(e,"name",{value:r,configurable:!0}),"i"),le=Object.defineProperty,C=ce((e,r)=>le(e,"name",{value:r,configurable:!0}),"i");const T=C((e,r,t)=>{const n=t.indexOf(e);if(n===-1)return"";const o=n+e.length,a=t.indexOf(r,o);return a===-1?"":t.slice(o,a).trim()},"between"),xr=C(e=>{const r=T("FIX","ENDFIX",e);if(!r)return["No solution found.",'Provide this response to the Maintainer of <a href="https://github.com/visulima/visulima/issues/new?assignees=&labels=s%3A+pending+triage%2Cc%3A+bug&projects=&template=bug_report.yml" target="_blank" rel="noopener noreferrer" class="text-blue-500 hover:underline inline-flex items-center text-sm">@visulima/error</a>.',`"${e}"`].join("</br></br>");const t=T("LINKS","ENDLINKS",e).split(`
|
|
33
|
-
`).map(n=>JSON.parse(n));return`${r.replaceAll(/"([^"]*)"(\s|\.)/g,"<code>$1</code> ")}
|
|
34
|
-
|
|
35
|
-
## Links
|
|
36
|
-
|
|
37
|
-
${t.map(n=>`- <a href="${n.url}" target="_blank" rel="noopener noreferrer">${n.title}</a>`).join(`
|
|
38
|
-
`)}
|
|
39
|
-
|
|
40
|
-
--------------------
|
|
41
|
-
This solution was generated with the <a href="https://sdk.vercel.ai/" target="_blank" rel="noopener noreferrer">AI SDK</a> and may not be 100% accurate.`},"aiSolutionResponse");var fe=Object.defineProperty,me=s((e,r)=>fe(e,"name",{value:r,configurable:!0}),"r$2"),pe=Object.defineProperty,de=me((e,r)=>pe(e,"name",{value:r,configurable:!0}),"r"),ge=Object.defineProperty,be=de((e,r)=>ge(e,"name",{value:r,configurable:!0}),"i");const kr={handle:be(async e=>{if(!(e.hint===void 0||e.hint===null)){if(typeof e.hint=="string"&&e.hint!=="")return{body:e.hint};if(typeof e.hint=="object"&&typeof e.hint.body=="string")return e.hint;if(Array.isArray(e.hint))return{body:e.hint.join(`
|
|
42
|
-
`)}}},"handle"),name:"errorHint",priority:1};var ye=Object.defineProperty,he=s((e,r)=>ye(e,"name",{value:r,configurable:!0}),"m$2"),ve=Object.defineProperty,$e=he((e,r)=>ve(e,"name",{value:r,configurable:!0}),"m"),je=Object.defineProperty,u=$e((e,r)=>je(e,"name",{value:r,configurable:!0}),"t");const Se=u(e=>`\`\`\`
|
|
43
|
-
${e.trim()}
|
|
44
|
-
\`\`\``,"code"),h=u(e=>`\`\`\`bash
|
|
45
|
-
${e.trim()}
|
|
46
|
-
\`\`\``,"bash"),v=u(e=>`\`\`\`ts
|
|
47
|
-
${e.trim()}
|
|
48
|
-
\`\`\``,"ts"),Oe=u(e=>`\`\`\`js
|
|
49
|
-
${e.trim()}
|
|
50
|
-
\`\`\``,"js"),f=u((e,...r)=>{const t=e.toLowerCase();return r.some(n=>t.includes(n.toLowerCase()))},"has"),Ee=[{name:"esm-cjs-interop",test:u(e=>{const r=(e?.message||String(e||"")).toString();if(f(r,"err_require_esm","cannot use import statement outside a module","must use import to load es module","require() of es module","does not provide an export named"))return{md:["Your project or a dependency may be mixing CommonJS and ES Modules.","","Try:","- Ensure package.json has the correct `type` (either `module` or `commonjs`).","- Use dynamic `import()` when requiring ESM from CJS.","- Prefer ESM-compatible entrypoints from dependencies.","- In Node, align `module` resolution with your bundler config.","","Check Node resolution:",h(`node -v
|
|
51
|
-
cat package.json | jq .type`),"","Example dynamic import in CJS:",Oe("(async () => { const mod = await import('some-esm'); mod.default(); })();")].join(`
|
|
52
|
-
`),title:"ESM/CJS interop"}},"test")},{name:"missing-default-export",test:u(e=>{const r=(e?.message||String(e||"")).toString();if(f(r,"default export not found","has no default export","does not provide an export named 'default'","is not exported from"))return{md:["Verify your import/export shapes.","","Default export example:",v(`export default function Component() {}
|
|
53
|
-
// import Component from './file'`),"","Named export example:",v(`export function Component() {}
|
|
54
|
-
// import { Component } from './file'`)].join(`
|
|
55
|
-
`),title:"Export mismatch (default vs named)"}},"test")},{name:"port-in-use",test:u(e=>{const r=(e?.message||String(e||"")).toString();if(f(r,"eaddrinuse","address already in use","listen eaddrinuse"))return{md:["Another process is using the port.","","Change the port or stop the other process.","","On macOS/Linux:",h(`lsof -i :3000
|
|
56
|
-
kill -9 <PID>`),"","On Windows (PowerShell):",h(`netstat -ano | findstr :3000
|
|
57
|
-
taskkill /PID <PID> /F`)].join(`
|
|
58
|
-
`),title:"Port already in use"}},"test")},{name:"file-not-found-or-case",test:u((e,r)=>{const t=(e?.message||String(e||"")).toString();if(f(t,"enoent","module not found","cannot find module"))return{md:["Check the import path and filename case (Linux/macOS are case-sensitive).","If using TS path aliases, verify `tsconfig.paths` and bundler aliases.","","Current file:",Se(`${r.file}:${r.line}`)].join(`
|
|
59
|
-
`),title:"Missing file or path case mismatch"}},"test")},{name:"ts-path-mapping",test:u(e=>{const r=(e?.message||String(e||"")).toString();if(f(r,"ts2307","cannot find module")||r.includes("TS2307"))return{md:["If you use path aliases, align TS `paths` with Vite/Webpack resolve aliases.","Ensure file extensions are correct and included in resolver.","","tsconfig.json excerpt:",v(`{
|
|
60
|
-
"compilerOptions": {
|
|
61
|
-
"baseUrl": ".",
|
|
62
|
-
"paths": { "@/*": ["src/*"] }
|
|
63
|
-
}
|
|
64
|
-
}`)].join(`
|
|
65
|
-
`),title:"TypeScript path mapping / resolution"}},"test")},{name:"network-dns-enotfound",test:u(e=>{const r=(e?.message||String(e||"")).toString();if(f(r,"enotfound","getaddrinfo enotfound","dns","fetch failed","ecconnrefused","econnrefused"))return{md:["The host may be unreachable or misconfigured.","","Try:","- Verify the hostname and protocol (http/https).","- Check VPN/proxy and firewall.","- Confirm the service is running and listening on the expected port.","",h(`ping <host>
|
|
66
|
-
nslookup <host>
|
|
67
|
-
curl -v http://<host>:<port>`)].join(`
|
|
68
|
-
`),title:"Network/DNS connection issue"}},"test")},{name:"undefined-property",test:u(e=>{const r=(e?.message||String(e||"")).toString();if(f(r,"cannot read properties of undefined","reading '"))return{md:["A variable or function returned `undefined`.","","Mitigations:","- Add nullish checks before property access.","- Validate function return values and input props/state.","",v("const value = maybe?.prop; // or: if (maybe) { use(maybe.prop) }")].join(`
|
|
69
|
-
`),title:"Accessing property of undefined"}},"test")}],wr={handle:u(async(e,r)=>{try{const t=Ee.map(o=>({match:o.test(e,r),rule:o})).filter(o=>!!o.match);if(t.length===0)return;const n=t.toSorted((o,a)=>(o.match.priority||0)-(a.match.priority||0)).map(o=>`#### ${o.match.title}
|
|
70
|
-
|
|
71
|
-
${o.match.md}`).join(`
|
|
72
|
-
|
|
73
|
-
---
|
|
74
|
-
|
|
75
|
-
`);return n===""?void 0:{body:n,header:"### Potential fixes detected"}}catch{return}},"handle"),name:"ruleBasedHints",priority:0};var Pe=Object.defineProperty,xe=s((e,r)=>Pe(e,"name",{value:r,configurable:!0}),"a$4"),ke=Object.defineProperty,we=xe((e,r)=>ke(e,"name",{value:r,configurable:!0}),"a"),Ne=Object.defineProperty,Ae=we((e,r)=>Ne(e,"name",{value:r,configurable:!0}),"e");const Nr=Ae(()=>{if(!Error.captureStackTrace)return;const e=new Error;return Error.captureStackTrace(e),e.stack},"captureRawStackTrace");var Te=Object.defineProperty,_=s((e,r)=>Te(e,"name",{value:r,configurable:!0}),"r"),Ie=Object.defineProperty,D=_((e,r)=>Ie(e,"name",{value:r,configurable:!0}),"o"),Ce=Object.defineProperty,_e=D((e,r)=>Ce(e,"name",{value:r,configurable:!0}),"e");function d(e){if(typeof e!="object"||e===null)return!1;const r=Object.getPrototypeOf(e);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}s(d,"o$2");_(d,"i");D(d,"r");_e(d,"isPlainObject");var De=Object.defineProperty,Je=s((e,r)=>De(e,"name",{value:r,configurable:!0}),"E$1"),Le=Object.defineProperty,Re=Je((e,r)=>Le(e,"name",{value:r,configurable:!0}),"E"),Fe=Object.defineProperty,j=Re((e,r)=>Fe(e,"name",{value:r,configurable:!0}),"n");const y=new Map([["Error",Error],["EvalError",EvalError],["RangeError",RangeError],["ReferenceError",ReferenceError],["SyntaxError",SyntaxError],["TypeError",TypeError],["URIError",URIError]]);typeof AggregateError<"u"&&y.set("AggregateError",AggregateError);const Ar=j((e,r)=>{let t;try{t=new e}catch(o){throw new Error(`The error constructor "${e.name}" is not compatible`,{cause:o})}const n=r??t.name;if(y.has(n))throw new Error(`The error constructor "${n}" is already known.`);y.set(n,e)},"addKnownErrorConstructor");j(()=>new Map(y),"getKnownErrorConstructors");const J=j(e=>y.get(e),"getErrorConstructor"),k=j(e=>e!==null&&typeof e=="object"&&typeof e.name=="string"&&typeof e.message=="string"&&(J(e.name)!==void 0||e.name==="Error"),"isErrorLike");var Me=Object.defineProperty,L=s((e,r)=>Me(e,"name",{value:r,configurable:!0}),"t$1"),Ve=Object.defineProperty,R=L((e,r)=>Ve(e,"name",{value:r,configurable:!0}),"t"),Ue=Object.defineProperty,qe=R((e,r)=>Ue(e,"name",{value:r,configurable:!0}),"s");let p=class extends Error{static{s(this,"i")}static{L(this,"c")}static{R(this,"e")}static{qe(this,"NonError")}constructor(r){super(r),this.name="NonError"}};var ze=Object.defineProperty,Be=s((e,r)=>ze(e,"name",{value:r,configurable:!0}),"d$1"),Ke=Object.defineProperty,Ye=Be((e,r)=>Ke(e,"name",{value:r,configurable:!0}),"d"),He=Object.defineProperty,c=Ye((e,r)=>He(e,"name",{value:r,configurable:!0}),"o");const Xe={maxDepth:Number.POSITIVE_INFINITY},F=c((e,r,t=0)=>k(e)?w(e,r,t):r.maxDepth!==void 0&&t>=r.maxDepth?new p(JSON.stringify(e)):new p(JSON.stringify(e)),"deserializePlainObject"),We=c((e,r,t,n,o)=>{const a=r.map(i=>S(i,n,o+1));return new e(a,t)},"reconstructAggregateError"),w=c((e,r,t)=>{if(r.maxDepth!==void 0&&t>=r.maxDepth)return new p(JSON.stringify(e));const{cause:n,errors:o,message:a,name:i,stack:m,...E}=e,N=J(i)||Error,l=i==="AggregateError"&&Array.isArray(o)?We(N,o,a,r,t):new N(a);return!l.name&&i&&(l.name=i),a!==void 0&&(l.message=a),m&&(l.stack=m),Ge(l,E,n,i,r,t),n!==void 0&&(l.cause=S(n,r,t+1)),Qe(l,e),l},"reconstructError"),S=c((e,r,t)=>d(e)?F(e,r,t):Array.isArray(e)?e.map(n=>S(n,r,t)):e,"deserializeValue"),Ge=c((e,r,t,n,o,a)=>{const i=e;for(const[m,E]of Object.entries(r))if(!(m==="cause"&&t!==void 0)){if(m==="errors"&&n==="AggregateError")continue;i[m]=S(E,o,a+1)}},"restoreErrorProperties"),Qe=c((e,r)=>{const t=new Set(["message","name","stack"]);for(const n of Object.keys(r))t.add(n);for(const n of t)if(n in e){const o=Object.getOwnPropertyDescriptor(e,n);o&&!o.enumerable&&Object.defineProperty(e,n,{...o,enumerable:!0})}},"makePropertiesEnumerable"),I=c(e=>new p(JSON.stringify(e)),"handlePrimitive"),Ze=c(e=>new p(JSON.stringify(e)),"handleArray"),er=c((e,r)=>k(e)?w(e,r,0):F(e,r),"handlePlainObject"),Ir=c((e,r={})=>{const t={...Xe,...r};return e instanceof Error?e:e===null?I(null):typeof e=="string"||typeof e=="number"||typeof e=="boolean"?I(e):Array.isArray(e)?Ze(e):k(e)?w(e,t,0):d(e)?er(e,t):new p(JSON.stringify(e))},"deserialize");var rr=Object.defineProperty,tr=s((e,r)=>rr(e,"name",{value:r,configurable:!0}),"a"),nr=Object.defineProperty,M=tr((e,r)=>nr(e,"name",{value:r,configurable:!0}),"n");const or=Y(import.meta.url),b=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ar=M(e=>{if(typeof b<"u"&&b.versions&&b.versions.node){const[r,t]=b.versions.node.split(".").map(Number);if(r>22||r===22&&t>=3||r===20&&t>=16)return b.getBuiltinModule(e)}return or(e)},"__cjs_getBuiltinModule"),{inspect:ir}=ar("node:util");var sr=Object.defineProperty,ur=M((e,r)=>sr(e,"name",{value:r,configurable:!0}),"a");const Cr=ur(e=>{const r=new Set,t=[];let n=e;for(;n;){if(r.has(n)){console.error(`Circular reference detected in error causes: ${ir(e)}`);break}if(t.push(n),r.add(n),!n.cause)break;n=n.cause}return t},"getErrorCauses");var cr=Object.defineProperty,lr=s((e,r)=>cr(e,"name",{value:r,configurable:!0}),"l"),fr=Object.defineProperty,mr=lr((e,r)=>fr(e,"name",{value:r,configurable:!0}),"f");const pr=Object.create({},{cause:{enumerable:!0,value:void 0,writable:!0},code:{enumerable:!0,value:void 0,writable:!0},errors:{enumerable:!0,value:void 0,writable:!0},message:{enumerable:!0,value:void 0,writable:!0},name:{enumerable:!0,value:void 0,writable:!0},stack:{enumerable:!0,value:void 0,writable:!0}});var dr=Object.defineProperty,O=mr((e,r)=>dr(e,"name",{value:r,configurable:!0}),"c");const P=new WeakSet,gr=O(e=>{P.add(e);const r=e.toJSON();return P.delete(e),r},"toJSON"),V=O((e,r,t,n)=>{if(e&&e instanceof Uint8Array&&e.constructor.name==="Buffer")return"[object Buffer]";if(e!==null&&typeof e=="object"&&typeof e.pipe=="function")return"[object Stream]";if(e instanceof Error)return r.includes(e)?"[Circular]":(t+=1,$(e,n,r,t));if(n.useToJSON&&typeof e.toJSON=="function")return e.toJSON();if(typeof e=="object"&&e instanceof Date)return e.toISOString();if(typeof e=="function")return`[Function: ${e.name||"anonymous"}]`;if(d(e)){if(t+=1,n.maxDepth&&t>=n.maxDepth)return{};const o={};for(const a in e)o[a]=V(e[a],r,t,n);return o}try{return e}catch{return"[Not Available]"}},"serializeValue"),$=O((e,r,t,n)=>{if(t.push(e),r.maxDepth===0)return{};if(r.useToJSON&&typeof e.toJSON=="function"&&!P.has(e))return gr(e);const o=Object.create(pr);if(o.name=Object.prototype.toString.call(e.constructor)==="[object Function]"?e.constructor.name:e.name,o.message=e.message,o.stack=e.stack,Array.isArray(e.errors)){const a=[];for(const i of e.errors){if(!(i instanceof Error))throw new TypeError("All errors in the 'errors' property must be instances of Error");if(t.includes(i))return o.errors=[],o;a.push($(i,r,t,n))}o.errors=a}e.cause instanceof Error&&!t.includes(e.cause)&&(o.cause=$(e.cause,r,t,n));for(const a in e)if(o[a]===void 0){const i=e[a];o[a]=V(i,t,n,r)}if(Array.isArray(r.exclude)&&r.exclude.length>0)for(const a of r.exclude)try{delete o[a]}catch{}return o},"_serialize"),_r=O((e,r={})=>$(e,{exclude:r.exclude??[],maxDepth:r.maxDepth??Number.POSITIVE_INFINITY,useToJSON:r.useToJSON??!1},[],0),"serialize");var br=Object.defineProperty,yr=s((e,r)=>br(e,"name",{value:r,configurable:!0}),"o"),hr=Object.defineProperty,vr=yr((e,r)=>hr(e,"name",{value:r,configurable:!0}),"n"),$r=Object.defineProperty,U=vr((e,r)=>$r(e,"name",{value:r,configurable:!0}),"s");const jr=U(e=>{const r=e.methodName&&e.methodName!=="<unknown>"?`${e.methodName} `:"",t=e.file??"<unknown>",n=e.line??0,o=e.column??0;return r.trim()?` at ${r}(${t}:${n}:${o})`:` at ${t}:${n}:${o}`},"formatStackFrameLine"),Dr=U((e,r)=>{const t=[];if(r?.header&&(r.header.name||r.header.message)){const n=String(r.header.name||"Error"),o=String(r.header.message||"");t.push(`${n}${o?": ":""}${o}`)}for(const n of e)t.push(jr(n));return t.join(`
|
|
76
|
-
`)},"formatStacktrace");export{Rr as CODE_FRAME_POINTER,p as NonError,qr as VisulimaError,Ar as addKnownErrorConstructor,Pr as aiPrompt,xr as aiSolutionResponse,Nr as captureRawStackTrace,Fr as codeFrame,Ir as deserializeError,kr as errorHintFinder,jr as formatStackFrameLine,Dr as formatStacktrace,Cr as getErrorCauses,Er as indexToLineColumn,k as isErrorLike,zr as isVisulimaError,Mr as parseStacktrace,Vr as renderError,wr as ruleBasedFinder,_r as serializeError};
|