@makoojs/cli 0.5.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/README.CN.md +43 -124
  2. package/README.md +43 -124
  3. package/dist/DevTerminal-BtHO2wRA.js +2396 -0
  4. package/dist/DevTerminal-DNh8U_O4.cjs +30 -0
  5. package/dist/bin.js +29 -491
  6. package/dist/bridge/protocol.d.ts +64 -0
  7. package/dist/bridge/runtime.cjs +1 -0
  8. package/dist/bridge/runtime.d.ts +38 -0
  9. package/dist/bridge/runtime.js +168 -0
  10. package/dist/bridge/server.d.ts +15 -0
  11. package/dist/bridge/store.d.ts +17 -0
  12. package/dist/commands/version.d.ts +1 -0
  13. package/dist/config/resolve.d.ts +1 -5
  14. package/dist/config/types.d.ts +40 -9
  15. package/dist/errors.d.ts +766 -0
  16. package/dist/index.cjs +2 -181
  17. package/dist/index.d.ts +1 -1
  18. package/dist/index.js +217 -2975
  19. package/dist/monkey/clipboard.d.ts +2 -0
  20. package/dist/monkey/download.d.ts +2 -0
  21. package/dist/monkey/index.d.ts +1 -0
  22. package/dist/monkey/info.d.ts +3 -0
  23. package/dist/monkey/menu.d.ts +3 -0
  24. package/dist/monkey/notification.d.ts +2 -0
  25. package/dist/monkey/request.d.ts +8 -0
  26. package/dist/monkey/resource.d.ts +3 -0
  27. package/dist/monkey/storage.d.ts +10 -0
  28. package/dist/monkey/style.d.ts +3 -0
  29. package/dist/monkey/tab.d.ts +5 -0
  30. package/dist/protocol-D8uLFi4g.cjs +1 -0
  31. package/dist/protocol-ZRHs80xs.js +4 -0
  32. package/dist/{cli/commands/dev → tui}/DevTerminal.d.ts +14 -8
  33. package/dist/tui/renderInjections.d.ts +2 -0
  34. package/dist/version-DiRsgSMp.js +19 -0
  35. package/dist/version-ENbM57wf.cjs +1 -0
  36. package/dist/vite/makoo.d.ts +3 -0
  37. package/dist/vite/makooDev.d.ts +28 -6
  38. package/package.json +5 -6
  39. package/dist/cli/tasks/renderTasks.d.ts +0 -2
  40. package/dist/cli/version.d.ts +0 -1
  41. package/dist/config/defaults.d.ts +0 -5
  42. package/dist/config/errors.d.ts +0 -14
  43. package/dist/config/validation.d.ts +0 -11
  44. package/dist/session/DevSession.d.ts +0 -13
  45. package/dist/session/types.d.ts +0 -22
  46. /package/dist/{cli → commands}/bin.d.ts +0 -0
  47. /package/dist/{cli/commands → commands}/build.d.ts +0 -0
  48. /package/dist/{cli/commands/dev → commands}/dev.d.ts +0 -0
  49. /package/dist/{cli/commands → commands}/preview.d.ts +0 -0
  50. /package/dist/{cli → tui}/terminalColor.d.ts +0 -0
@@ -0,0 +1,766 @@
1
+ import { MakooErrorsFor } from '../../../../core';
2
+ declare const cliErrorTable: {
3
+ MAKOO_DEV_HOST_INVALID: {
4
+ category: "configuration";
5
+ message: (d: {
6
+ host: unknown;
7
+ }) => string;
8
+ };
9
+ MAKOO_DEV_PORT_INVALID: {
10
+ category: "configuration";
11
+ message: (d: {
12
+ port: unknown;
13
+ }) => string;
14
+ };
15
+ };
16
+ /** The CLI error table: each code's category and message defined exactly once. */
17
+ export declare const cliErrors: {
18
+ create: <C extends "MAKOO_DEV_HOST_INVALID" | "MAKOO_DEV_PORT_INVALID">(code: C, ...args: [{
19
+ MAKOO_DEV_HOST_INVALID: {
20
+ category: "configuration";
21
+ message: (d: {
22
+ host: unknown;
23
+ }) => string;
24
+ };
25
+ MAKOO_DEV_PORT_INVALID: {
26
+ category: "configuration";
27
+ message: (d: {
28
+ port: unknown;
29
+ }) => string;
30
+ };
31
+ }[C] extends infer T ? T extends {
32
+ MAKOO_DEV_HOST_INVALID: {
33
+ category: "configuration";
34
+ message: (d: {
35
+ host: unknown;
36
+ }) => string;
37
+ };
38
+ MAKOO_DEV_PORT_INVALID: {
39
+ category: "configuration";
40
+ message: (d: {
41
+ port: unknown;
42
+ }) => string;
43
+ };
44
+ }[C] ? T extends {
45
+ readonly message: infer M;
46
+ } ? M extends (...args: never[]) => string ? Parameters<M>[0] : never : never : never : never] extends [undefined] ? [input?: (({
47
+ MAKOO_DEV_HOST_INVALID: {
48
+ category: "configuration";
49
+ message: (d: {
50
+ host: unknown;
51
+ }) => string;
52
+ };
53
+ MAKOO_DEV_PORT_INVALID: {
54
+ category: "configuration";
55
+ message: (d: {
56
+ port: unknown;
57
+ }) => string;
58
+ };
59
+ }[C] extends infer T_1 ? T_1 extends {
60
+ MAKOO_DEV_HOST_INVALID: {
61
+ category: "configuration";
62
+ message: (d: {
63
+ host: unknown;
64
+ }) => string;
65
+ };
66
+ MAKOO_DEV_PORT_INVALID: {
67
+ category: "configuration";
68
+ message: (d: {
69
+ port: unknown;
70
+ }) => string;
71
+ };
72
+ }[C] ? T_1 extends {
73
+ readonly aggregate: true;
74
+ } ? {
75
+ readonly cause?: unknown;
76
+ readonly errors?: readonly unknown[];
77
+ } : {
78
+ readonly cause?: unknown;
79
+ readonly errors?: never;
80
+ } : never : never) & ([{
81
+ MAKOO_DEV_HOST_INVALID: {
82
+ category: "configuration";
83
+ message: (d: {
84
+ host: unknown;
85
+ }) => string;
86
+ };
87
+ MAKOO_DEV_PORT_INVALID: {
88
+ category: "configuration";
89
+ message: (d: {
90
+ port: unknown;
91
+ }) => string;
92
+ };
93
+ }[C] extends infer T_2 ? T_2 extends {
94
+ MAKOO_DEV_HOST_INVALID: {
95
+ category: "configuration";
96
+ message: (d: {
97
+ host: unknown;
98
+ }) => string;
99
+ };
100
+ MAKOO_DEV_PORT_INVALID: {
101
+ category: "configuration";
102
+ message: (d: {
103
+ port: unknown;
104
+ }) => string;
105
+ };
106
+ }[C] ? T_2 extends {
107
+ readonly message: infer M;
108
+ } ? M extends (...args: never[]) => string ? Parameters<M>[0] : never : never : never : never] extends [undefined] ? {
109
+ readonly details?: undefined;
110
+ } : {
111
+ readonly details: {
112
+ MAKOO_DEV_HOST_INVALID: {
113
+ category: "configuration";
114
+ message: (d: {
115
+ host: unknown;
116
+ }) => string;
117
+ };
118
+ MAKOO_DEV_PORT_INVALID: {
119
+ category: "configuration";
120
+ message: (d: {
121
+ port: unknown;
122
+ }) => string;
123
+ };
124
+ }[C] extends infer T_3 ? T_3 extends {
125
+ MAKOO_DEV_HOST_INVALID: {
126
+ category: "configuration";
127
+ message: (d: {
128
+ host: unknown;
129
+ }) => string;
130
+ };
131
+ MAKOO_DEV_PORT_INVALID: {
132
+ category: "configuration";
133
+ message: (d: {
134
+ port: unknown;
135
+ }) => string;
136
+ };
137
+ }[C] ? T_3 extends {
138
+ readonly message: infer M;
139
+ } ? M extends (...args: never[]) => string ? Parameters<M>[0] : never : never : never : never;
140
+ })) | undefined] : [input: ({
141
+ MAKOO_DEV_HOST_INVALID: {
142
+ category: "configuration";
143
+ message: (d: {
144
+ host: unknown;
145
+ }) => string;
146
+ };
147
+ MAKOO_DEV_PORT_INVALID: {
148
+ category: "configuration";
149
+ message: (d: {
150
+ port: unknown;
151
+ }) => string;
152
+ };
153
+ }[C] extends infer T_4 ? T_4 extends {
154
+ MAKOO_DEV_HOST_INVALID: {
155
+ category: "configuration";
156
+ message: (d: {
157
+ host: unknown;
158
+ }) => string;
159
+ };
160
+ MAKOO_DEV_PORT_INVALID: {
161
+ category: "configuration";
162
+ message: (d: {
163
+ port: unknown;
164
+ }) => string;
165
+ };
166
+ }[C] ? T_4 extends {
167
+ readonly aggregate: true;
168
+ } ? {
169
+ readonly cause?: unknown;
170
+ readonly errors?: readonly unknown[];
171
+ } : {
172
+ readonly cause?: unknown;
173
+ readonly errors?: never;
174
+ } : never : never) & ([{
175
+ MAKOO_DEV_HOST_INVALID: {
176
+ category: "configuration";
177
+ message: (d: {
178
+ host: unknown;
179
+ }) => string;
180
+ };
181
+ MAKOO_DEV_PORT_INVALID: {
182
+ category: "configuration";
183
+ message: (d: {
184
+ port: unknown;
185
+ }) => string;
186
+ };
187
+ }[C] extends infer T_5 ? T_5 extends {
188
+ MAKOO_DEV_HOST_INVALID: {
189
+ category: "configuration";
190
+ message: (d: {
191
+ host: unknown;
192
+ }) => string;
193
+ };
194
+ MAKOO_DEV_PORT_INVALID: {
195
+ category: "configuration";
196
+ message: (d: {
197
+ port: unknown;
198
+ }) => string;
199
+ };
200
+ }[C] ? T_5 extends {
201
+ readonly message: infer M;
202
+ } ? M extends (...args: never[]) => string ? Parameters<M>[0] : never : never : never : never] extends [undefined] ? {
203
+ readonly details?: undefined;
204
+ } : {
205
+ readonly details: {
206
+ MAKOO_DEV_HOST_INVALID: {
207
+ category: "configuration";
208
+ message: (d: {
209
+ host: unknown;
210
+ }) => string;
211
+ };
212
+ MAKOO_DEV_PORT_INVALID: {
213
+ category: "configuration";
214
+ message: (d: {
215
+ port: unknown;
216
+ }) => string;
217
+ };
218
+ }[C] extends infer T_6 ? T_6 extends {
219
+ MAKOO_DEV_HOST_INVALID: {
220
+ category: "configuration";
221
+ message: (d: {
222
+ host: unknown;
223
+ }) => string;
224
+ };
225
+ MAKOO_DEV_PORT_INVALID: {
226
+ category: "configuration";
227
+ message: (d: {
228
+ port: unknown;
229
+ }) => string;
230
+ };
231
+ }[C] ? T_6 extends {
232
+ readonly message: infer M;
233
+ } ? M extends (...args: never[]) => string ? Parameters<M>[0] : never : never : never : never;
234
+ })]) => import('../../../../core').MakooError & {
235
+ readonly code: C;
236
+ readonly details: {
237
+ MAKOO_DEV_HOST_INVALID: {
238
+ category: "configuration";
239
+ message: (d: {
240
+ host: unknown;
241
+ }) => string;
242
+ };
243
+ MAKOO_DEV_PORT_INVALID: {
244
+ category: "configuration";
245
+ message: (d: {
246
+ port: unknown;
247
+ }) => string;
248
+ };
249
+ }[C] extends infer T_7 ? T_7 extends {
250
+ MAKOO_DEV_HOST_INVALID: {
251
+ category: "configuration";
252
+ message: (d: {
253
+ host: unknown;
254
+ }) => string;
255
+ };
256
+ MAKOO_DEV_PORT_INVALID: {
257
+ category: "configuration";
258
+ message: (d: {
259
+ port: unknown;
260
+ }) => string;
261
+ };
262
+ }[C] ? T_7 extends {
263
+ readonly message: infer M;
264
+ } ? M extends (...args: never[]) => string ? Parameters<M>[0] : never : never : never : never;
265
+ };
266
+ createThrowable: <C extends "MAKOO_DEV_HOST_INVALID" | "MAKOO_DEV_PORT_INVALID">(code: C, ...args: [{
267
+ MAKOO_DEV_HOST_INVALID: {
268
+ category: "configuration";
269
+ message: (d: {
270
+ host: unknown;
271
+ }) => string;
272
+ };
273
+ MAKOO_DEV_PORT_INVALID: {
274
+ category: "configuration";
275
+ message: (d: {
276
+ port: unknown;
277
+ }) => string;
278
+ };
279
+ }[C] extends infer T ? T extends {
280
+ MAKOO_DEV_HOST_INVALID: {
281
+ category: "configuration";
282
+ message: (d: {
283
+ host: unknown;
284
+ }) => string;
285
+ };
286
+ MAKOO_DEV_PORT_INVALID: {
287
+ category: "configuration";
288
+ message: (d: {
289
+ port: unknown;
290
+ }) => string;
291
+ };
292
+ }[C] ? T extends {
293
+ readonly message: infer M;
294
+ } ? M extends (...args: never[]) => string ? Parameters<M>[0] : never : never : never : never] extends [undefined] ? [input?: (({
295
+ MAKOO_DEV_HOST_INVALID: {
296
+ category: "configuration";
297
+ message: (d: {
298
+ host: unknown;
299
+ }) => string;
300
+ };
301
+ MAKOO_DEV_PORT_INVALID: {
302
+ category: "configuration";
303
+ message: (d: {
304
+ port: unknown;
305
+ }) => string;
306
+ };
307
+ }[C] extends infer T_1 ? T_1 extends {
308
+ MAKOO_DEV_HOST_INVALID: {
309
+ category: "configuration";
310
+ message: (d: {
311
+ host: unknown;
312
+ }) => string;
313
+ };
314
+ MAKOO_DEV_PORT_INVALID: {
315
+ category: "configuration";
316
+ message: (d: {
317
+ port: unknown;
318
+ }) => string;
319
+ };
320
+ }[C] ? T_1 extends {
321
+ readonly aggregate: true;
322
+ } ? {
323
+ readonly cause?: unknown;
324
+ readonly errors?: readonly unknown[];
325
+ } : {
326
+ readonly cause?: unknown;
327
+ readonly errors?: never;
328
+ } : never : never) & ([{
329
+ MAKOO_DEV_HOST_INVALID: {
330
+ category: "configuration";
331
+ message: (d: {
332
+ host: unknown;
333
+ }) => string;
334
+ };
335
+ MAKOO_DEV_PORT_INVALID: {
336
+ category: "configuration";
337
+ message: (d: {
338
+ port: unknown;
339
+ }) => string;
340
+ };
341
+ }[C] extends infer T_2 ? T_2 extends {
342
+ MAKOO_DEV_HOST_INVALID: {
343
+ category: "configuration";
344
+ message: (d: {
345
+ host: unknown;
346
+ }) => string;
347
+ };
348
+ MAKOO_DEV_PORT_INVALID: {
349
+ category: "configuration";
350
+ message: (d: {
351
+ port: unknown;
352
+ }) => string;
353
+ };
354
+ }[C] ? T_2 extends {
355
+ readonly message: infer M;
356
+ } ? M extends (...args: never[]) => string ? Parameters<M>[0] : never : never : never : never] extends [undefined] ? {
357
+ readonly details?: undefined;
358
+ } : {
359
+ readonly details: {
360
+ MAKOO_DEV_HOST_INVALID: {
361
+ category: "configuration";
362
+ message: (d: {
363
+ host: unknown;
364
+ }) => string;
365
+ };
366
+ MAKOO_DEV_PORT_INVALID: {
367
+ category: "configuration";
368
+ message: (d: {
369
+ port: unknown;
370
+ }) => string;
371
+ };
372
+ }[C] extends infer T_3 ? T_3 extends {
373
+ MAKOO_DEV_HOST_INVALID: {
374
+ category: "configuration";
375
+ message: (d: {
376
+ host: unknown;
377
+ }) => string;
378
+ };
379
+ MAKOO_DEV_PORT_INVALID: {
380
+ category: "configuration";
381
+ message: (d: {
382
+ port: unknown;
383
+ }) => string;
384
+ };
385
+ }[C] ? T_3 extends {
386
+ readonly message: infer M;
387
+ } ? M extends (...args: never[]) => string ? Parameters<M>[0] : never : never : never : never;
388
+ })) | undefined] : [input: ({
389
+ MAKOO_DEV_HOST_INVALID: {
390
+ category: "configuration";
391
+ message: (d: {
392
+ host: unknown;
393
+ }) => string;
394
+ };
395
+ MAKOO_DEV_PORT_INVALID: {
396
+ category: "configuration";
397
+ message: (d: {
398
+ port: unknown;
399
+ }) => string;
400
+ };
401
+ }[C] extends infer T_4 ? T_4 extends {
402
+ MAKOO_DEV_HOST_INVALID: {
403
+ category: "configuration";
404
+ message: (d: {
405
+ host: unknown;
406
+ }) => string;
407
+ };
408
+ MAKOO_DEV_PORT_INVALID: {
409
+ category: "configuration";
410
+ message: (d: {
411
+ port: unknown;
412
+ }) => string;
413
+ };
414
+ }[C] ? T_4 extends {
415
+ readonly aggregate: true;
416
+ } ? {
417
+ readonly cause?: unknown;
418
+ readonly errors?: readonly unknown[];
419
+ } : {
420
+ readonly cause?: unknown;
421
+ readonly errors?: never;
422
+ } : never : never) & ([{
423
+ MAKOO_DEV_HOST_INVALID: {
424
+ category: "configuration";
425
+ message: (d: {
426
+ host: unknown;
427
+ }) => string;
428
+ };
429
+ MAKOO_DEV_PORT_INVALID: {
430
+ category: "configuration";
431
+ message: (d: {
432
+ port: unknown;
433
+ }) => string;
434
+ };
435
+ }[C] extends infer T_5 ? T_5 extends {
436
+ MAKOO_DEV_HOST_INVALID: {
437
+ category: "configuration";
438
+ message: (d: {
439
+ host: unknown;
440
+ }) => string;
441
+ };
442
+ MAKOO_DEV_PORT_INVALID: {
443
+ category: "configuration";
444
+ message: (d: {
445
+ port: unknown;
446
+ }) => string;
447
+ };
448
+ }[C] ? T_5 extends {
449
+ readonly message: infer M;
450
+ } ? M extends (...args: never[]) => string ? Parameters<M>[0] : never : never : never : never] extends [undefined] ? {
451
+ readonly details?: undefined;
452
+ } : {
453
+ readonly details: {
454
+ MAKOO_DEV_HOST_INVALID: {
455
+ category: "configuration";
456
+ message: (d: {
457
+ host: unknown;
458
+ }) => string;
459
+ };
460
+ MAKOO_DEV_PORT_INVALID: {
461
+ category: "configuration";
462
+ message: (d: {
463
+ port: unknown;
464
+ }) => string;
465
+ };
466
+ }[C] extends infer T_6 ? T_6 extends {
467
+ MAKOO_DEV_HOST_INVALID: {
468
+ category: "configuration";
469
+ message: (d: {
470
+ host: unknown;
471
+ }) => string;
472
+ };
473
+ MAKOO_DEV_PORT_INVALID: {
474
+ category: "configuration";
475
+ message: (d: {
476
+ port: unknown;
477
+ }) => string;
478
+ };
479
+ }[C] ? T_6 extends {
480
+ readonly message: infer M;
481
+ } ? M extends (...args: never[]) => string ? Parameters<M>[0] : never : never : never : never;
482
+ })]) => import('../../../../core').MakooError & {
483
+ readonly code: C;
484
+ readonly details: {
485
+ MAKOO_DEV_HOST_INVALID: {
486
+ category: "configuration";
487
+ message: (d: {
488
+ host: unknown;
489
+ }) => string;
490
+ };
491
+ MAKOO_DEV_PORT_INVALID: {
492
+ category: "configuration";
493
+ message: (d: {
494
+ port: unknown;
495
+ }) => string;
496
+ };
497
+ }[C] extends infer T_7 ? T_7 extends {
498
+ MAKOO_DEV_HOST_INVALID: {
499
+ category: "configuration";
500
+ message: (d: {
501
+ host: unknown;
502
+ }) => string;
503
+ };
504
+ MAKOO_DEV_PORT_INVALID: {
505
+ category: "configuration";
506
+ message: (d: {
507
+ port: unknown;
508
+ }) => string;
509
+ };
510
+ }[C] ? T_7 extends {
511
+ readonly message: infer M;
512
+ } ? M extends (...args: never[]) => string ? Parameters<M>[0] : never : never : never : never;
513
+ };
514
+ createRecorded: <C extends never>(code: C, ...args: [{
515
+ MAKOO_DEV_HOST_INVALID: {
516
+ category: "configuration";
517
+ message: (d: {
518
+ host: unknown;
519
+ }) => string;
520
+ };
521
+ MAKOO_DEV_PORT_INVALID: {
522
+ category: "configuration";
523
+ message: (d: {
524
+ port: unknown;
525
+ }) => string;
526
+ };
527
+ }[C] extends infer T ? T extends {
528
+ MAKOO_DEV_HOST_INVALID: {
529
+ category: "configuration";
530
+ message: (d: {
531
+ host: unknown;
532
+ }) => string;
533
+ };
534
+ MAKOO_DEV_PORT_INVALID: {
535
+ category: "configuration";
536
+ message: (d: {
537
+ port: unknown;
538
+ }) => string;
539
+ };
540
+ }[C] ? T extends {
541
+ readonly message: infer M;
542
+ } ? M extends (...args: never[]) => string ? Parameters<M>[0] : never : never : never : never] extends [undefined] ? [input?: (({
543
+ MAKOO_DEV_HOST_INVALID: {
544
+ category: "configuration";
545
+ message: (d: {
546
+ host: unknown;
547
+ }) => string;
548
+ };
549
+ MAKOO_DEV_PORT_INVALID: {
550
+ category: "configuration";
551
+ message: (d: {
552
+ port: unknown;
553
+ }) => string;
554
+ };
555
+ }[C] extends infer T_1 ? T_1 extends {
556
+ MAKOO_DEV_HOST_INVALID: {
557
+ category: "configuration";
558
+ message: (d: {
559
+ host: unknown;
560
+ }) => string;
561
+ };
562
+ MAKOO_DEV_PORT_INVALID: {
563
+ category: "configuration";
564
+ message: (d: {
565
+ port: unknown;
566
+ }) => string;
567
+ };
568
+ }[C] ? T_1 extends {
569
+ readonly aggregate: true;
570
+ } ? {
571
+ readonly cause?: unknown;
572
+ readonly errors?: readonly unknown[];
573
+ } : {
574
+ readonly cause?: unknown;
575
+ readonly errors?: never;
576
+ } : never : never) & ([{
577
+ MAKOO_DEV_HOST_INVALID: {
578
+ category: "configuration";
579
+ message: (d: {
580
+ host: unknown;
581
+ }) => string;
582
+ };
583
+ MAKOO_DEV_PORT_INVALID: {
584
+ category: "configuration";
585
+ message: (d: {
586
+ port: unknown;
587
+ }) => string;
588
+ };
589
+ }[C] extends infer T_2 ? T_2 extends {
590
+ MAKOO_DEV_HOST_INVALID: {
591
+ category: "configuration";
592
+ message: (d: {
593
+ host: unknown;
594
+ }) => string;
595
+ };
596
+ MAKOO_DEV_PORT_INVALID: {
597
+ category: "configuration";
598
+ message: (d: {
599
+ port: unknown;
600
+ }) => string;
601
+ };
602
+ }[C] ? T_2 extends {
603
+ readonly message: infer M;
604
+ } ? M extends (...args: never[]) => string ? Parameters<M>[0] : never : never : never : never] extends [undefined] ? {
605
+ readonly details?: undefined;
606
+ } : {
607
+ readonly details: {
608
+ MAKOO_DEV_HOST_INVALID: {
609
+ category: "configuration";
610
+ message: (d: {
611
+ host: unknown;
612
+ }) => string;
613
+ };
614
+ MAKOO_DEV_PORT_INVALID: {
615
+ category: "configuration";
616
+ message: (d: {
617
+ port: unknown;
618
+ }) => string;
619
+ };
620
+ }[C] extends infer T_3 ? T_3 extends {
621
+ MAKOO_DEV_HOST_INVALID: {
622
+ category: "configuration";
623
+ message: (d: {
624
+ host: unknown;
625
+ }) => string;
626
+ };
627
+ MAKOO_DEV_PORT_INVALID: {
628
+ category: "configuration";
629
+ message: (d: {
630
+ port: unknown;
631
+ }) => string;
632
+ };
633
+ }[C] ? T_3 extends {
634
+ readonly message: infer M;
635
+ } ? M extends (...args: never[]) => string ? Parameters<M>[0] : never : never : never : never;
636
+ })) | undefined] : [input: ({
637
+ MAKOO_DEV_HOST_INVALID: {
638
+ category: "configuration";
639
+ message: (d: {
640
+ host: unknown;
641
+ }) => string;
642
+ };
643
+ MAKOO_DEV_PORT_INVALID: {
644
+ category: "configuration";
645
+ message: (d: {
646
+ port: unknown;
647
+ }) => string;
648
+ };
649
+ }[C] extends infer T_4 ? T_4 extends {
650
+ MAKOO_DEV_HOST_INVALID: {
651
+ category: "configuration";
652
+ message: (d: {
653
+ host: unknown;
654
+ }) => string;
655
+ };
656
+ MAKOO_DEV_PORT_INVALID: {
657
+ category: "configuration";
658
+ message: (d: {
659
+ port: unknown;
660
+ }) => string;
661
+ };
662
+ }[C] ? T_4 extends {
663
+ readonly aggregate: true;
664
+ } ? {
665
+ readonly cause?: unknown;
666
+ readonly errors?: readonly unknown[];
667
+ } : {
668
+ readonly cause?: unknown;
669
+ readonly errors?: never;
670
+ } : never : never) & ([{
671
+ MAKOO_DEV_HOST_INVALID: {
672
+ category: "configuration";
673
+ message: (d: {
674
+ host: unknown;
675
+ }) => string;
676
+ };
677
+ MAKOO_DEV_PORT_INVALID: {
678
+ category: "configuration";
679
+ message: (d: {
680
+ port: unknown;
681
+ }) => string;
682
+ };
683
+ }[C] extends infer T_5 ? T_5 extends {
684
+ MAKOO_DEV_HOST_INVALID: {
685
+ category: "configuration";
686
+ message: (d: {
687
+ host: unknown;
688
+ }) => string;
689
+ };
690
+ MAKOO_DEV_PORT_INVALID: {
691
+ category: "configuration";
692
+ message: (d: {
693
+ port: unknown;
694
+ }) => string;
695
+ };
696
+ }[C] ? T_5 extends {
697
+ readonly message: infer M;
698
+ } ? M extends (...args: never[]) => string ? Parameters<M>[0] : never : never : never : never] extends [undefined] ? {
699
+ readonly details?: undefined;
700
+ } : {
701
+ readonly details: {
702
+ MAKOO_DEV_HOST_INVALID: {
703
+ category: "configuration";
704
+ message: (d: {
705
+ host: unknown;
706
+ }) => string;
707
+ };
708
+ MAKOO_DEV_PORT_INVALID: {
709
+ category: "configuration";
710
+ message: (d: {
711
+ port: unknown;
712
+ }) => string;
713
+ };
714
+ }[C] extends infer T_6 ? T_6 extends {
715
+ MAKOO_DEV_HOST_INVALID: {
716
+ category: "configuration";
717
+ message: (d: {
718
+ host: unknown;
719
+ }) => string;
720
+ };
721
+ MAKOO_DEV_PORT_INVALID: {
722
+ category: "configuration";
723
+ message: (d: {
724
+ port: unknown;
725
+ }) => string;
726
+ };
727
+ }[C] ? T_6 extends {
728
+ readonly message: infer M;
729
+ } ? M extends (...args: never[]) => string ? Parameters<M>[0] : never : never : never : never;
730
+ })]) => import('../../../../core').MakooError & {
731
+ readonly code: C;
732
+ readonly details: {
733
+ MAKOO_DEV_HOST_INVALID: {
734
+ category: "configuration";
735
+ message: (d: {
736
+ host: unknown;
737
+ }) => string;
738
+ };
739
+ MAKOO_DEV_PORT_INVALID: {
740
+ category: "configuration";
741
+ message: (d: {
742
+ port: unknown;
743
+ }) => string;
744
+ };
745
+ }[C] extends infer T_7 ? T_7 extends {
746
+ MAKOO_DEV_HOST_INVALID: {
747
+ category: "configuration";
748
+ message: (d: {
749
+ host: unknown;
750
+ }) => string;
751
+ };
752
+ MAKOO_DEV_PORT_INVALID: {
753
+ category: "configuration";
754
+ message: (d: {
755
+ port: unknown;
756
+ }) => string;
757
+ };
758
+ }[C] ? T_7 extends {
759
+ readonly message: infer M;
760
+ } ? M extends (...args: never[]) => string ? Parameters<M>[0] : never : never : never : never;
761
+ };
762
+ };
763
+ export type CliErrorCode = Extract<keyof typeof cliErrorTable, string>;
764
+ /** A `MakooError` narrowed by CLI code; `details` follows the code. */
765
+ export type CliError<C extends CliErrorCode = CliErrorCode> = MakooErrorsFor<typeof cliErrorTable, C>;
766
+ export {};