@maiyunnet/kebab 8.2.0 → 8.3.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.
package/doc/kebab-rag.md CHANGED
@@ -147,7 +147,7 @@ index/interfaces/IConfig.md
147
147
 
148
148
  # Interface: IConfig
149
149
 
150
- Defined in: [index.ts:50](https://github.com/maiyunnet/kebab/blob/master/index.ts#L50)
150
+ Defined in: [index.ts:52](https://github.com/maiyunnet/kebab/blob/master/index.ts#L52)
151
151
 
152
152
  目录配置文件
153
153
 
@@ -161,7 +161,7 @@ Defined in: [index.ts:50](https://github.com/maiyunnet/kebab/blob/master/index.t
161
161
 
162
162
  > **ai**: `Record`\<`string`, [`IConfigAi`](IConfigAi.md)\>
163
163
 
164
- Defined in: [index.ts:81](https://github.com/maiyunnet/kebab/blob/master/index.ts#L81)
164
+ Defined in: [index.ts:83](https://github.com/maiyunnet/kebab/blob/master/index.ts#L83)
165
165
 
166
166
  ***
167
167
 
@@ -169,7 +169,7 @@ Defined in: [index.ts:81](https://github.com/maiyunnet/kebab/blob/master/index.t
169
169
 
170
170
  > **const**: [`IConfigConst`](IConfigConst.md)
171
171
 
172
- Defined in: [index.ts:62](https://github.com/maiyunnet/kebab/blob/master/index.ts#L62)
172
+ Defined in: [index.ts:64](https://github.com/maiyunnet/kebab/blob/master/index.ts#L64)
173
173
 
174
174
  ***
175
175
 
@@ -177,7 +177,7 @@ Defined in: [index.ts:62](https://github.com/maiyunnet/kebab/blob/master/index.t
177
177
 
178
178
  > **db**: `Record`\<`string`, \{ `default`: [`IConfigDb`](IConfigDb.md); `read`: [`IConfigDb`](IConfigDb.md); \}\> & `object`
179
179
 
180
- Defined in: [index.ts:63](https://github.com/maiyunnet/kebab/blob/master/index.ts#L63)
180
+ Defined in: [index.ts:65](https://github.com/maiyunnet/kebab/blob/master/index.ts#L65)
181
181
 
182
182
  #### Type Declaration
183
183
 
@@ -191,7 +191,7 @@ Defined in: [index.ts:63](https://github.com/maiyunnet/kebab/blob/master/index.t
191
191
 
192
192
  > **dns**: `Record`\<`string`, [`IConfigDns`](IConfigDns.md)\>
193
193
 
194
- Defined in: [index.ts:77](https://github.com/maiyunnet/kebab/blob/master/index.ts#L77)
194
+ Defined in: [index.ts:79](https://github.com/maiyunnet/kebab/blob/master/index.ts#L79)
195
195
 
196
196
  ***
197
197
 
@@ -199,7 +199,7 @@ Defined in: [index.ts:77](https://github.com/maiyunnet/kebab/blob/master/index.t
199
199
 
200
200
  > **kv**: [`IConfigKv`](IConfigKv.md)
201
201
 
202
- Defined in: [index.ts:69](https://github.com/maiyunnet/kebab/blob/master/index.ts#L69)
202
+ Defined in: [index.ts:71](https://github.com/maiyunnet/kebab/blob/master/index.ts#L71)
203
203
 
204
204
  ***
205
205
 
@@ -207,7 +207,7 @@ Defined in: [index.ts:69](https://github.com/maiyunnet/kebab/blob/master/index.t
207
207
 
208
208
  > **lang**: [`IConfigLang`](IConfigLang.md)
209
209
 
210
- Defined in: [index.ts:78](https://github.com/maiyunnet/kebab/blob/master/index.ts#L78)
210
+ Defined in: [index.ts:80](https://github.com/maiyunnet/kebab/blob/master/index.ts#L80)
211
211
 
212
212
  ***
213
213
 
@@ -215,7 +215,7 @@ Defined in: [index.ts:78](https://github.com/maiyunnet/kebab/blob/master/index.t
215
215
 
216
216
  > **route**: `Record`\<`string`, `string`\>
217
217
 
218
- Defined in: [index.ts:70](https://github.com/maiyunnet/kebab/blob/master/index.ts#L70)
218
+ Defined in: [index.ts:72](https://github.com/maiyunnet/kebab/blob/master/index.ts#L72)
219
219
 
220
220
  ***
221
221
 
@@ -223,7 +223,7 @@ Defined in: [index.ts:70](https://github.com/maiyunnet/kebab/blob/master/index.t
223
223
 
224
224
  > **s3**: `Record`\<`string`, [`IConfigS3`](IConfigS3.md)\>
225
225
 
226
- Defined in: [index.ts:79](https://github.com/maiyunnet/kebab/blob/master/index.ts#L79)
226
+ Defined in: [index.ts:81](https://github.com/maiyunnet/kebab/blob/master/index.ts#L81)
227
227
 
228
228
  ***
229
229
 
@@ -231,7 +231,7 @@ Defined in: [index.ts:79](https://github.com/maiyunnet/kebab/blob/master/index.t
231
231
 
232
232
  > **session**: `object`
233
233
 
234
- Defined in: [index.ts:71](https://github.com/maiyunnet/kebab/blob/master/index.ts#L71)
234
+ Defined in: [index.ts:73](https://github.com/maiyunnet/kebab/blob/master/index.ts#L73)
235
235
 
236
236
  #### name
237
237
 
@@ -251,7 +251,7 @@ Defined in: [index.ts:71](https://github.com/maiyunnet/kebab/blob/master/index.t
251
251
 
252
252
  > **set**: `object`
253
253
 
254
- Defined in: [index.ts:51](https://github.com/maiyunnet/kebab/blob/master/index.ts#L51)
254
+ Defined in: [index.ts:53](https://github.com/maiyunnet/kebab/blob/master/index.ts#L53)
255
255
 
256
256
  #### Index Signature
257
257
 
@@ -287,7 +287,7 @@ Defined in: [index.ts:51](https://github.com/maiyunnet/kebab/blob/master/index.t
287
287
 
288
288
  > **sql**: [`IConfigSql`](IConfigSql.md)
289
289
 
290
- Defined in: [index.ts:76](https://github.com/maiyunnet/kebab/blob/master/index.ts#L76)
290
+ Defined in: [index.ts:78](https://github.com/maiyunnet/kebab/blob/master/index.ts#L78)
291
291
 
292
292
  ***
293
293
 
@@ -295,7 +295,7 @@ Defined in: [index.ts:76](https://github.com/maiyunnet/kebab/blob/master/index.t
295
295
 
296
296
  > **turnstile**: [`IConfigTurnstile`](IConfigTurnstile.md)
297
297
 
298
- Defined in: [index.ts:80](https://github.com/maiyunnet/kebab/blob/master/index.ts#L80)
298
+ Defined in: [index.ts:82](https://github.com/maiyunnet/kebab/blob/master/index.ts#L82)
299
299
 
300
300
  ***
301
301
 
@@ -303,7 +303,7 @@ Defined in: [index.ts:80](https://github.com/maiyunnet/kebab/blob/master/index.t
303
303
 
304
304
  > **vector**: [`IConfigVector`](IConfigVector.md)
305
305
 
306
- Defined in: [index.ts:82](https://github.com/maiyunnet/kebab/blob/master/index.ts#L82)
306
+ Defined in: [index.ts:84](https://github.com/maiyunnet/kebab/blob/master/index.ts#L84)
307
307
 
308
308
  index/interfaces/IConfigAi.md
309
309
  ---
@@ -316,7 +316,7 @@ index/interfaces/IConfigAi.md
316
316
 
317
317
  # Interface: IConfigAi
318
318
 
319
- Defined in: [index.ts:118](https://github.com/maiyunnet/kebab/blob/master/index.ts#L118)
319
+ Defined in: [index.ts:120](https://github.com/maiyunnet/kebab/blob/master/index.ts#L120)
320
320
 
321
321
  AI
322
322
 
@@ -326,7 +326,7 @@ AI
326
326
 
327
327
  > `optional` **endpoint**: `string`
328
328
 
329
- Defined in: [index.ts:120](https://github.com/maiyunnet/kebab/blob/master/index.ts#L120)
329
+ Defined in: [index.ts:122](https://github.com/maiyunnet/kebab/blob/master/index.ts#L122)
330
330
 
331
331
  目前只有微软 Azure 有
332
332
 
@@ -336,7 +336,7 @@ Defined in: [index.ts:120](https://github.com/maiyunnet/kebab/blob/master/index.
336
336
 
337
337
  > **skey**: `string`
338
338
 
339
- Defined in: [index.ts:121](https://github.com/maiyunnet/kebab/blob/master/index.ts#L121)
339
+ Defined in: [index.ts:123](https://github.com/maiyunnet/kebab/blob/master/index.ts#L123)
340
340
 
341
341
  index/interfaces/IConfigConst.md
342
342
  ---
@@ -349,7 +349,7 @@ index/interfaces/IConfigConst.md
349
349
 
350
350
  # Interface: IConfigConst
351
351
 
352
- Defined in: [index.ts:190](https://github.com/maiyunnet/kebab/blob/master/index.ts#L190)
352
+ Defined in: [index.ts:192](https://github.com/maiyunnet/kebab/blob/master/index.ts#L192)
353
353
 
354
354
  常量
355
355
 
@@ -359,7 +359,7 @@ Defined in: [index.ts:190](https://github.com/maiyunnet/kebab/blob/master/index.
359
359
 
360
360
  > **ctrPath**: `string`
361
361
 
362
- Defined in: [index.ts:215](https://github.com/maiyunnet/kebab/blob/master/index.ts#L215)
362
+ Defined in: [index.ts:217](https://github.com/maiyunnet/kebab/blob/master/index.ts#L217)
363
363
 
364
364
  ***
365
365
 
@@ -367,7 +367,7 @@ Defined in: [index.ts:215](https://github.com/maiyunnet/kebab/blob/master/index.
367
367
 
368
368
  > **dataPath**: `string`
369
369
 
370
- Defined in: [index.ts:217](https://github.com/maiyunnet/kebab/blob/master/index.ts#L217)
370
+ Defined in: [index.ts:219](https://github.com/maiyunnet/kebab/blob/master/index.ts#L219)
371
371
 
372
372
  ***
373
373
 
@@ -375,7 +375,7 @@ Defined in: [index.ts:217](https://github.com/maiyunnet/kebab/blob/master/index.
375
375
 
376
376
  > **host**: `string`
377
377
 
378
- Defined in: [index.ts:206](https://github.com/maiyunnet/kebab/blob/master/index.ts#L206)
378
+ Defined in: [index.ts:208](https://github.com/maiyunnet/kebab/blob/master/index.ts#L208)
379
379
 
380
380
  ***
381
381
 
@@ -383,7 +383,7 @@ Defined in: [index.ts:206](https://github.com/maiyunnet/kebab/blob/master/index.
383
383
 
384
384
  > **hostname**: `string`
385
385
 
386
- Defined in: [index.ts:207](https://github.com/maiyunnet/kebab/blob/master/index.ts#L207)
386
+ Defined in: [index.ts:209](https://github.com/maiyunnet/kebab/blob/master/index.ts#L209)
387
387
 
388
388
  ***
389
389
 
@@ -391,7 +391,7 @@ Defined in: [index.ts:207](https://github.com/maiyunnet/kebab/blob/master/index.
391
391
 
392
392
  > **hostport**: `number`
393
393
 
394
- Defined in: [index.ts:208](https://github.com/maiyunnet/kebab/blob/master/index.ts#L208)
394
+ Defined in: [index.ts:210](https://github.com/maiyunnet/kebab/blob/master/index.ts#L210)
395
395
 
396
396
  ***
397
397
 
@@ -399,7 +399,7 @@ Defined in: [index.ts:208](https://github.com/maiyunnet/kebab/blob/master/index.
399
399
 
400
400
  > **https**: `boolean`
401
401
 
402
- Defined in: [index.ts:205](https://github.com/maiyunnet/kebab/blob/master/index.ts#L205)
402
+ Defined in: [index.ts:207](https://github.com/maiyunnet/kebab/blob/master/index.ts#L207)
403
403
 
404
404
  ***
405
405
 
@@ -407,7 +407,7 @@ Defined in: [index.ts:205](https://github.com/maiyunnet/kebab/blob/master/index.
407
407
 
408
408
  > **miniprogram**: `""` \| `"wechat"`
409
409
 
410
- Defined in: [index.ts:204](https://github.com/maiyunnet/kebab/blob/master/index.ts#L204)
410
+ Defined in: [index.ts:206](https://github.com/maiyunnet/kebab/blob/master/index.ts#L206)
411
411
 
412
412
  ***
413
413
 
@@ -415,7 +415,7 @@ Defined in: [index.ts:204](https://github.com/maiyunnet/kebab/blob/master/index.
415
415
 
416
416
  > **mobile**: `boolean`
417
417
 
418
- Defined in: [index.ts:202](https://github.com/maiyunnet/kebab/blob/master/index.ts#L202)
418
+ Defined in: [index.ts:204](https://github.com/maiyunnet/kebab/blob/master/index.ts#L204)
419
419
 
420
420
  ***
421
421
 
@@ -423,7 +423,7 @@ Defined in: [index.ts:202](https://github.com/maiyunnet/kebab/blob/master/index.
423
423
 
424
424
  > **modPath**: `string`
425
425
 
426
- Defined in: [index.ts:214](https://github.com/maiyunnet/kebab/blob/master/index.ts#L214)
426
+ Defined in: [index.ts:216](https://github.com/maiyunnet/kebab/blob/master/index.ts#L216)
427
427
 
428
428
  ***
429
429
 
@@ -431,7 +431,7 @@ Defined in: [index.ts:214](https://github.com/maiyunnet/kebab/blob/master/index.
431
431
 
432
432
  > **path**: `string`
433
433
 
434
- Defined in: [index.ts:192](https://github.com/maiyunnet/kebab/blob/master/index.ts#L192)
434
+ Defined in: [index.ts:194](https://github.com/maiyunnet/kebab/blob/master/index.ts#L194)
435
435
 
436
436
  不以 / 开头,不含 qs
437
437
 
@@ -441,7 +441,7 @@ Defined in: [index.ts:192](https://github.com/maiyunnet/kebab/blob/master/index.
441
441
 
442
442
  > **qs**: `string`
443
443
 
444
- Defined in: [index.ts:194](https://github.com/maiyunnet/kebab/blob/master/index.ts#L194)
444
+ Defined in: [index.ts:196](https://github.com/maiyunnet/kebab/blob/master/index.ts#L196)
445
445
 
446
446
  不含 ? 开头
447
447
 
@@ -451,7 +451,7 @@ Defined in: [index.ts:194](https://github.com/maiyunnet/kebab/blob/master/index.
451
451
 
452
452
  > **qss**: `string`
453
453
 
454
- Defined in: [index.ts:196](https://github.com/maiyunnet/kebab/blob/master/index.ts#L196)
454
+ Defined in: [index.ts:198](https://github.com/maiyunnet/kebab/blob/master/index.ts#L198)
455
455
 
456
456
  含 ? 开头
457
457
 
@@ -461,7 +461,7 @@ Defined in: [index.ts:196](https://github.com/maiyunnet/kebab/blob/master/index.
461
461
 
462
462
  > **rootPath**: `string`
463
463
 
464
- Defined in: [index.ts:213](https://github.com/maiyunnet/kebab/blob/master/index.ts#L213)
464
+ Defined in: [index.ts:215](https://github.com/maiyunnet/kebab/blob/master/index.ts#L215)
465
465
 
466
466
  ***
467
467
 
@@ -469,7 +469,7 @@ Defined in: [index.ts:213](https://github.com/maiyunnet/kebab/blob/master/index.
469
469
 
470
470
  > **startMemory**: `number`
471
471
 
472
- Defined in: [index.ts:198](https://github.com/maiyunnet/kebab/blob/master/index.ts#L198)
472
+ Defined in: [index.ts:200](https://github.com/maiyunnet/kebab/blob/master/index.ts#L200)
473
473
 
474
474
  ***
475
475
 
@@ -477,7 +477,7 @@ Defined in: [index.ts:198](https://github.com/maiyunnet/kebab/blob/master/index.
477
477
 
478
478
  > **startTime**: `bigint`
479
479
 
480
- Defined in: [index.ts:197](https://github.com/maiyunnet/kebab/blob/master/index.ts#L197)
480
+ Defined in: [index.ts:199](https://github.com/maiyunnet/kebab/blob/master/index.ts#L199)
481
481
 
482
482
  ***
483
483
 
@@ -485,7 +485,7 @@ Defined in: [index.ts:197](https://github.com/maiyunnet/kebab/blob/master/index.
485
485
 
486
486
  > **uri**: [`IUrlParse`](IUrlParse.md)
487
487
 
488
- Defined in: [index.ts:209](https://github.com/maiyunnet/kebab/blob/master/index.ts#L209)
488
+ Defined in: [index.ts:211](https://github.com/maiyunnet/kebab/blob/master/index.ts#L211)
489
489
 
490
490
  ***
491
491
 
@@ -493,7 +493,7 @@ Defined in: [index.ts:209](https://github.com/maiyunnet/kebab/blob/master/index.
493
493
 
494
494
  > **urlBase**: `string`
495
495
 
496
- Defined in: [index.ts:222](https://github.com/maiyunnet/kebab/blob/master/index.ts#L222)
496
+ Defined in: [index.ts:224](https://github.com/maiyunnet/kebab/blob/master/index.ts#L224)
497
497
 
498
498
  ***
499
499
 
@@ -501,7 +501,7 @@ Defined in: [index.ts:222](https://github.com/maiyunnet/kebab/blob/master/index.
501
501
 
502
502
  > **urlFull**: `string`
503
503
 
504
- Defined in: [index.ts:224](https://github.com/maiyunnet/kebab/blob/master/index.ts#L224)
504
+ Defined in: [index.ts:226](https://github.com/maiyunnet/kebab/blob/master/index.ts#L226)
505
505
 
506
506
  ***
507
507
 
@@ -509,7 +509,7 @@ Defined in: [index.ts:224](https://github.com/maiyunnet/kebab/blob/master/index.
509
509
 
510
510
  > **urlStc**: `string`
511
511
 
512
- Defined in: [index.ts:223](https://github.com/maiyunnet/kebab/blob/master/index.ts#L223)
512
+ Defined in: [index.ts:225](https://github.com/maiyunnet/kebab/blob/master/index.ts#L225)
513
513
 
514
514
  ***
515
515
 
@@ -517,7 +517,7 @@ Defined in: [index.ts:223](https://github.com/maiyunnet/kebab/blob/master/index.
517
517
 
518
518
  > **urlStcFull**: `string`
519
519
 
520
- Defined in: [index.ts:225](https://github.com/maiyunnet/kebab/blob/master/index.ts#L225)
520
+ Defined in: [index.ts:227](https://github.com/maiyunnet/kebab/blob/master/index.ts#L227)
521
521
 
522
522
  ***
523
523
 
@@ -525,7 +525,7 @@ Defined in: [index.ts:225](https://github.com/maiyunnet/kebab/blob/master/index.
525
525
 
526
526
  > **viewPath**: `string`
527
527
 
528
- Defined in: [index.ts:216](https://github.com/maiyunnet/kebab/blob/master/index.ts#L216)
528
+ Defined in: [index.ts:218](https://github.com/maiyunnet/kebab/blob/master/index.ts#L218)
529
529
 
530
530
  ***
531
531
 
@@ -533,7 +533,7 @@ Defined in: [index.ts:216](https://github.com/maiyunnet/kebab/blob/master/index.
533
533
 
534
534
  > **wechat**: `boolean`
535
535
 
536
- Defined in: [index.ts:203](https://github.com/maiyunnet/kebab/blob/master/index.ts#L203)
536
+ Defined in: [index.ts:205](https://github.com/maiyunnet/kebab/blob/master/index.ts#L205)
537
537
 
538
538
  ***
539
539
 
@@ -541,7 +541,7 @@ Defined in: [index.ts:203](https://github.com/maiyunnet/kebab/blob/master/index.
541
541
 
542
542
  > **wsPath**: `string`
543
543
 
544
- Defined in: [index.ts:218](https://github.com/maiyunnet/kebab/blob/master/index.ts#L218)
544
+ Defined in: [index.ts:220](https://github.com/maiyunnet/kebab/blob/master/index.ts#L220)
545
545
 
546
546
  index/interfaces/IConfigDb.md
547
547
  ---
@@ -554,7 +554,7 @@ index/interfaces/IConfigDb.md
554
554
 
555
555
  # Interface: IConfigDb
556
556
 
557
- Defined in: [index.ts:148](https://github.com/maiyunnet/kebab/blob/master/index.ts#L148)
557
+ Defined in: [index.ts:150](https://github.com/maiyunnet/kebab/blob/master/index.ts#L150)
558
558
 
559
559
  数据库
560
560
 
@@ -564,7 +564,7 @@ Defined in: [index.ts:148](https://github.com/maiyunnet/kebab/blob/master/index.
564
564
 
565
565
  > `optional` **charset**: `string`
566
566
 
567
- Defined in: [index.ts:151](https://github.com/maiyunnet/kebab/blob/master/index.ts#L151)
567
+ Defined in: [index.ts:153](https://github.com/maiyunnet/kebab/blob/master/index.ts#L153)
568
568
 
569
569
  ***
570
570
 
@@ -572,7 +572,7 @@ Defined in: [index.ts:151](https://github.com/maiyunnet/kebab/blob/master/index.
572
572
 
573
573
  > **host**: `string`
574
574
 
575
- Defined in: [index.ts:149](https://github.com/maiyunnet/kebab/blob/master/index.ts#L149)
575
+ Defined in: [index.ts:151](https://github.com/maiyunnet/kebab/blob/master/index.ts#L151)
576
576
 
577
577
  ***
578
578
 
@@ -580,7 +580,7 @@ Defined in: [index.ts:149](https://github.com/maiyunnet/kebab/blob/master/index.
580
580
 
581
581
  > `optional` **name**: `string`
582
582
 
583
- Defined in: [index.ts:152](https://github.com/maiyunnet/kebab/blob/master/index.ts#L152)
583
+ Defined in: [index.ts:154](https://github.com/maiyunnet/kebab/blob/master/index.ts#L154)
584
584
 
585
585
  ***
586
586
 
@@ -588,7 +588,7 @@ Defined in: [index.ts:152](https://github.com/maiyunnet/kebab/blob/master/index.
588
588
 
589
589
  > **port**: `number`
590
590
 
591
- Defined in: [index.ts:150](https://github.com/maiyunnet/kebab/blob/master/index.ts#L150)
591
+ Defined in: [index.ts:152](https://github.com/maiyunnet/kebab/blob/master/index.ts#L152)
592
592
 
593
593
  ***
594
594
 
@@ -596,7 +596,7 @@ Defined in: [index.ts:150](https://github.com/maiyunnet/kebab/blob/master/index.
596
596
 
597
597
  > **pwd**: `string`
598
598
 
599
- Defined in: [index.ts:155](https://github.com/maiyunnet/kebab/blob/master/index.ts#L155)
599
+ Defined in: [index.ts:157](https://github.com/maiyunnet/kebab/blob/master/index.ts#L157)
600
600
 
601
601
  ***
602
602
 
@@ -604,7 +604,7 @@ Defined in: [index.ts:155](https://github.com/maiyunnet/kebab/blob/master/index.
604
604
 
605
605
  > **user**: `string`
606
606
 
607
- Defined in: [index.ts:154](https://github.com/maiyunnet/kebab/blob/master/index.ts#L154)
607
+ Defined in: [index.ts:156](https://github.com/maiyunnet/kebab/blob/master/index.ts#L156)
608
608
 
609
609
  index/interfaces/IConfigDns.md
610
610
  ---
@@ -617,7 +617,7 @@ index/interfaces/IConfigDns.md
617
617
 
618
618
  # Interface: IConfigDns
619
619
 
620
- Defined in: [index.ts:168](https://github.com/maiyunnet/kebab/blob/master/index.ts#L168)
620
+ Defined in: [index.ts:170](https://github.com/maiyunnet/kebab/blob/master/index.ts#L170)
621
621
 
622
622
  DNS
623
623
 
@@ -627,7 +627,7 @@ DNS
627
627
 
628
628
  > **sid**: `string`
629
629
 
630
- Defined in: [index.ts:169](https://github.com/maiyunnet/kebab/blob/master/index.ts#L169)
630
+ Defined in: [index.ts:171](https://github.com/maiyunnet/kebab/blob/master/index.ts#L171)
631
631
 
632
632
  ***
633
633
 
@@ -635,7 +635,7 @@ Defined in: [index.ts:169](https://github.com/maiyunnet/kebab/blob/master/index.
635
635
 
636
636
  > **skey**: `string`
637
637
 
638
- Defined in: [index.ts:170](https://github.com/maiyunnet/kebab/blob/master/index.ts#L170)
638
+ Defined in: [index.ts:172](https://github.com/maiyunnet/kebab/blob/master/index.ts#L172)
639
639
 
640
640
  index/interfaces/IConfigJwt.md
641
641
  ---
@@ -648,7 +648,7 @@ index/interfaces/IConfigJwt.md
648
648
 
649
649
  # Interface: IConfigJwt
650
650
 
651
- Defined in: [index.ts:159](https://github.com/maiyunnet/kebab/blob/master/index.ts#L159)
651
+ Defined in: [index.ts:161](https://github.com/maiyunnet/kebab/blob/master/index.ts#L161)
652
652
 
653
653
  Jwt 信息
654
654
 
@@ -658,7 +658,7 @@ Jwt 信息
658
658
 
659
659
  > **auth**: `boolean`
660
660
 
661
- Defined in: [index.ts:164](https://github.com/maiyunnet/kebab/blob/master/index.ts#L164)
661
+ Defined in: [index.ts:166](https://github.com/maiyunnet/kebab/blob/master/index.ts#L166)
662
662
 
663
663
  ***
664
664
 
@@ -666,7 +666,7 @@ Defined in: [index.ts:164](https://github.com/maiyunnet/kebab/blob/master/index.
666
666
 
667
667
  > **name**: `string`
668
668
 
669
- Defined in: [index.ts:160](https://github.com/maiyunnet/kebab/blob/master/index.ts#L160)
669
+ Defined in: [index.ts:162](https://github.com/maiyunnet/kebab/blob/master/index.ts#L162)
670
670
 
671
671
  ***
672
672
 
@@ -674,7 +674,7 @@ Defined in: [index.ts:160](https://github.com/maiyunnet/kebab/blob/master/index.
674
674
 
675
675
  > **secret**: `string`
676
676
 
677
- Defined in: [index.ts:163](https://github.com/maiyunnet/kebab/blob/master/index.ts#L163)
677
+ Defined in: [index.ts:165](https://github.com/maiyunnet/kebab/blob/master/index.ts#L165)
678
678
 
679
679
  ***
680
680
 
@@ -682,7 +682,7 @@ Defined in: [index.ts:163](https://github.com/maiyunnet/kebab/blob/master/index.
682
682
 
683
683
  > **ssl**: `boolean`
684
684
 
685
- Defined in: [index.ts:162](https://github.com/maiyunnet/kebab/blob/master/index.ts#L162)
685
+ Defined in: [index.ts:164](https://github.com/maiyunnet/kebab/blob/master/index.ts#L164)
686
686
 
687
687
  ***
688
688
 
@@ -690,7 +690,7 @@ Defined in: [index.ts:162](https://github.com/maiyunnet/kebab/blob/master/index.
690
690
 
691
691
  > **ttl**: `number`
692
692
 
693
- Defined in: [index.ts:161](https://github.com/maiyunnet/kebab/blob/master/index.ts#L161)
693
+ Defined in: [index.ts:163](https://github.com/maiyunnet/kebab/blob/master/index.ts#L163)
694
694
 
695
695
  index/interfaces/IConfigKv.md
696
696
  ---
@@ -703,7 +703,7 @@ index/interfaces/IConfigKv.md
703
703
 
704
704
  # Interface: IConfigKv
705
705
 
706
- Defined in: [index.ts:174](https://github.com/maiyunnet/kebab/blob/master/index.ts#L174)
706
+ Defined in: [index.ts:176](https://github.com/maiyunnet/kebab/blob/master/index.ts#L176)
707
707
 
708
708
  kv
709
709
 
@@ -713,7 +713,7 @@ kv
713
713
 
714
714
  > **host**: `string`
715
715
 
716
- Defined in: [index.ts:175](https://github.com/maiyunnet/kebab/blob/master/index.ts#L175)
716
+ Defined in: [index.ts:177](https://github.com/maiyunnet/kebab/blob/master/index.ts#L177)
717
717
 
718
718
  ***
719
719
 
@@ -721,7 +721,7 @@ Defined in: [index.ts:175](https://github.com/maiyunnet/kebab/blob/master/index.
721
721
 
722
722
  > **index**: `number`
723
723
 
724
- Defined in: [index.ts:177](https://github.com/maiyunnet/kebab/blob/master/index.ts#L177)
724
+ Defined in: [index.ts:179](https://github.com/maiyunnet/kebab/blob/master/index.ts#L179)
725
725
 
726
726
  ***
727
727
 
@@ -729,7 +729,7 @@ Defined in: [index.ts:177](https://github.com/maiyunnet/kebab/blob/master/index.
729
729
 
730
730
  > **port**: `number`
731
731
 
732
- Defined in: [index.ts:176](https://github.com/maiyunnet/kebab/blob/master/index.ts#L176)
732
+ Defined in: [index.ts:178](https://github.com/maiyunnet/kebab/blob/master/index.ts#L178)
733
733
 
734
734
  ***
735
735
 
@@ -737,7 +737,7 @@ Defined in: [index.ts:176](https://github.com/maiyunnet/kebab/blob/master/index.
737
737
 
738
738
  > **pre**: `string`
739
739
 
740
- Defined in: [index.ts:178](https://github.com/maiyunnet/kebab/blob/master/index.ts#L178)
740
+ Defined in: [index.ts:180](https://github.com/maiyunnet/kebab/blob/master/index.ts#L180)
741
741
 
742
742
  ***
743
743
 
@@ -745,7 +745,7 @@ Defined in: [index.ts:178](https://github.com/maiyunnet/kebab/blob/master/index.
745
745
 
746
746
  > **pwd**: `string`
747
747
 
748
- Defined in: [index.ts:181](https://github.com/maiyunnet/kebab/blob/master/index.ts#L181)
748
+ Defined in: [index.ts:183](https://github.com/maiyunnet/kebab/blob/master/index.ts#L183)
749
749
 
750
750
  ***
751
751
 
@@ -753,7 +753,7 @@ Defined in: [index.ts:181](https://github.com/maiyunnet/kebab/blob/master/index.
753
753
 
754
754
  > **user**: `string`
755
755
 
756
- Defined in: [index.ts:180](https://github.com/maiyunnet/kebab/blob/master/index.ts#L180)
756
+ Defined in: [index.ts:182](https://github.com/maiyunnet/kebab/blob/master/index.ts#L182)
757
757
 
758
758
  index/interfaces/IConfigLang.md
759
759
  ---
@@ -766,7 +766,7 @@ index/interfaces/IConfigLang.md
766
766
 
767
767
  # Interface: IConfigLang
768
768
 
769
- Defined in: [index.ts:102](https://github.com/maiyunnet/kebab/blob/master/index.ts#L102)
769
+ Defined in: [index.ts:104](https://github.com/maiyunnet/kebab/blob/master/index.ts#L104)
770
770
 
771
771
  语言
772
772
 
@@ -776,7 +776,7 @@ Defined in: [index.ts:102](https://github.com/maiyunnet/kebab/blob/master/index.
776
776
 
777
777
  > **direct**: `string`[]
778
778
 
779
- Defined in: [index.ts:104](https://github.com/maiyunnet/kebab/blob/master/index.ts#L104)
779
+ Defined in: [index.ts:106](https://github.com/maiyunnet/kebab/blob/master/index.ts#L106)
780
780
 
781
781
  ***
782
782
 
@@ -784,7 +784,7 @@ Defined in: [index.ts:104](https://github.com/maiyunnet/kebab/blob/master/index.
784
784
 
785
785
  > **list**: `string`[]
786
786
 
787
- Defined in: [index.ts:103](https://github.com/maiyunnet/kebab/blob/master/index.ts#L103)
787
+ Defined in: [index.ts:105](https://github.com/maiyunnet/kebab/blob/master/index.ts#L105)
788
788
 
789
789
  index/interfaces/IConfigS3.md
790
790
  ---
@@ -797,7 +797,7 @@ index/interfaces/IConfigS3.md
797
797
 
798
798
  # Interface: IConfigS3
799
799
 
800
- Defined in: [index.ts:108](https://github.com/maiyunnet/kebab/blob/master/index.ts#L108)
800
+ Defined in: [index.ts:110](https://github.com/maiyunnet/kebab/blob/master/index.ts#L110)
801
801
 
802
802
  对象存储
803
803
 
@@ -807,7 +807,7 @@ Defined in: [index.ts:108](https://github.com/maiyunnet/kebab/blob/master/index.
807
807
 
808
808
  > `optional` **account**: `string`
809
809
 
810
- Defined in: [index.ts:110](https://github.com/maiyunnet/kebab/blob/master/index.ts#L110)
810
+ Defined in: [index.ts:112](https://github.com/maiyunnet/kebab/blob/master/index.ts#L112)
811
811
 
812
812
  cf r2 要用
813
813
 
@@ -817,7 +817,7 @@ cf r2 要用
817
817
 
818
818
  > **bucket**: `string`
819
819
 
820
- Defined in: [index.ts:114](https://github.com/maiyunnet/kebab/blob/master/index.ts#L114)
820
+ Defined in: [index.ts:116](https://github.com/maiyunnet/kebab/blob/master/index.ts#L116)
821
821
 
822
822
  ***
823
823
 
@@ -825,7 +825,7 @@ Defined in: [index.ts:114](https://github.com/maiyunnet/kebab/blob/master/index.
825
825
 
826
826
  > **region**: `string`
827
827
 
828
- Defined in: [index.ts:113](https://github.com/maiyunnet/kebab/blob/master/index.ts#L113)
828
+ Defined in: [index.ts:115](https://github.com/maiyunnet/kebab/blob/master/index.ts#L115)
829
829
 
830
830
  ***
831
831
 
@@ -833,7 +833,7 @@ Defined in: [index.ts:113](https://github.com/maiyunnet/kebab/blob/master/index.
833
833
 
834
834
  > **sid**: `string`
835
835
 
836
- Defined in: [index.ts:111](https://github.com/maiyunnet/kebab/blob/master/index.ts#L111)
836
+ Defined in: [index.ts:113](https://github.com/maiyunnet/kebab/blob/master/index.ts#L113)
837
837
 
838
838
  ***
839
839
 
@@ -841,7 +841,7 @@ Defined in: [index.ts:111](https://github.com/maiyunnet/kebab/blob/master/index.
841
841
 
842
842
  > **skey**: `string`
843
843
 
844
- Defined in: [index.ts:112](https://github.com/maiyunnet/kebab/blob/master/index.ts#L112)
844
+ Defined in: [index.ts:114](https://github.com/maiyunnet/kebab/blob/master/index.ts#L114)
845
845
 
846
846
  index/interfaces/IConfigSql.md
847
847
  ---
@@ -854,7 +854,7 @@ index/interfaces/IConfigSql.md
854
854
 
855
855
  # Interface: IConfigSql
856
856
 
857
- Defined in: [index.ts:185](https://github.com/maiyunnet/kebab/blob/master/index.ts#L185)
857
+ Defined in: [index.ts:187](https://github.com/maiyunnet/kebab/blob/master/index.ts#L187)
858
858
 
859
859
  sql
860
860
 
@@ -864,7 +864,7 @@ sql
864
864
 
865
865
  > **pre**: `string`
866
866
 
867
- Defined in: [index.ts:186](https://github.com/maiyunnet/kebab/blob/master/index.ts#L186)
867
+ Defined in: [index.ts:188](https://github.com/maiyunnet/kebab/blob/master/index.ts#L188)
868
868
 
869
869
  index/interfaces/IConfigTurnstile.md
870
870
  ---
@@ -877,7 +877,7 @@ index/interfaces/IConfigTurnstile.md
877
877
 
878
878
  # Interface: IConfigTurnstile
879
879
 
880
- Defined in: [index.ts:134](https://github.com/maiyunnet/kebab/blob/master/index.ts#L134)
880
+ Defined in: [index.ts:136](https://github.com/maiyunnet/kebab/blob/master/index.ts#L136)
881
881
 
882
882
  人机码信息
883
883
 
@@ -887,7 +887,7 @@ Defined in: [index.ts:134](https://github.com/maiyunnet/kebab/blob/master/index.
887
887
 
888
888
  > **CF**: `object`
889
889
 
890
- Defined in: [index.ts:135](https://github.com/maiyunnet/kebab/blob/master/index.ts#L135)
890
+ Defined in: [index.ts:137](https://github.com/maiyunnet/kebab/blob/master/index.ts#L137)
891
891
 
892
892
  #### sid
893
893
 
@@ -903,7 +903,7 @@ Defined in: [index.ts:135](https://github.com/maiyunnet/kebab/blob/master/index.
903
903
 
904
904
  > **TENCENT**: `object`
905
905
 
906
- Defined in: [index.ts:139](https://github.com/maiyunnet/kebab/blob/master/index.ts#L139)
906
+ Defined in: [index.ts:141](https://github.com/maiyunnet/kebab/blob/master/index.ts#L141)
907
907
 
908
908
  #### aid
909
909
 
@@ -932,7 +932,7 @@ index/interfaces/IConfigVector.md
932
932
 
933
933
  # Interface: IConfigVector
934
934
 
935
- Defined in: [index.ts:125](https://github.com/maiyunnet/kebab/blob/master/index.ts#L125)
935
+ Defined in: [index.ts:127](https://github.com/maiyunnet/kebab/blob/master/index.ts#L127)
936
936
 
937
937
  向量数据库
938
938
 
@@ -942,7 +942,7 @@ Defined in: [index.ts:125](https://github.com/maiyunnet/kebab/blob/master/index.
942
942
 
943
943
  > **host**: `string`
944
944
 
945
- Defined in: [index.ts:126](https://github.com/maiyunnet/kebab/blob/master/index.ts#L126)
945
+ Defined in: [index.ts:128](https://github.com/maiyunnet/kebab/blob/master/index.ts#L128)
946
946
 
947
947
  ***
948
948
 
@@ -950,7 +950,7 @@ Defined in: [index.ts:126](https://github.com/maiyunnet/kebab/blob/master/index.
950
950
 
951
951
  > **name**: `string`
952
952
 
953
- Defined in: [index.ts:128](https://github.com/maiyunnet/kebab/blob/master/index.ts#L128)
953
+ Defined in: [index.ts:130](https://github.com/maiyunnet/kebab/blob/master/index.ts#L130)
954
954
 
955
955
  ***
956
956
 
@@ -958,7 +958,7 @@ Defined in: [index.ts:128](https://github.com/maiyunnet/kebab/blob/master/index.
958
958
 
959
959
  > **port**: `number`
960
960
 
961
- Defined in: [index.ts:127](https://github.com/maiyunnet/kebab/blob/master/index.ts#L127)
961
+ Defined in: [index.ts:129](https://github.com/maiyunnet/kebab/blob/master/index.ts#L129)
962
962
 
963
963
  ***
964
964
 
@@ -966,7 +966,7 @@ Defined in: [index.ts:127](https://github.com/maiyunnet/kebab/blob/master/index.
966
966
 
967
967
  > **pwd**: `string`
968
968
 
969
- Defined in: [index.ts:130](https://github.com/maiyunnet/kebab/blob/master/index.ts#L130)
969
+ Defined in: [index.ts:132](https://github.com/maiyunnet/kebab/blob/master/index.ts#L132)
970
970
 
971
971
  ***
972
972
 
@@ -974,7 +974,7 @@ Defined in: [index.ts:130](https://github.com/maiyunnet/kebab/blob/master/index.
974
974
 
975
975
  > **user**: `string`
976
976
 
977
- Defined in: [index.ts:129](https://github.com/maiyunnet/kebab/blob/master/index.ts#L129)
977
+ Defined in: [index.ts:131](https://github.com/maiyunnet/kebab/blob/master/index.ts#L131)
978
978
 
979
979
  index/interfaces/IPostFile.md
980
980
  ---
@@ -987,7 +987,7 @@ index/interfaces/IPostFile.md
987
987
 
988
988
  # Interface: IPostFile
989
989
 
990
- Defined in: [index.ts:237](https://github.com/maiyunnet/kebab/blob/master/index.ts#L237)
990
+ Defined in: [index.ts:239](https://github.com/maiyunnet/kebab/blob/master/index.ts#L239)
991
991
 
992
992
  上传的文件信息对象
993
993
 
@@ -997,7 +997,7 @@ Defined in: [index.ts:237](https://github.com/maiyunnet/kebab/blob/master/index.
997
997
 
998
998
  > `readonly` **name**: `string`
999
999
 
1000
- Defined in: [index.ts:238](https://github.com/maiyunnet/kebab/blob/master/index.ts#L238)
1000
+ Defined in: [index.ts:240](https://github.com/maiyunnet/kebab/blob/master/index.ts#L240)
1001
1001
 
1002
1002
  ***
1003
1003
 
@@ -1005,7 +1005,7 @@ Defined in: [index.ts:238](https://github.com/maiyunnet/kebab/blob/master/index.
1005
1005
 
1006
1006
  > `readonly` **origin**: `string`
1007
1007
 
1008
- Defined in: [index.ts:239](https://github.com/maiyunnet/kebab/blob/master/index.ts#L239)
1008
+ Defined in: [index.ts:241](https://github.com/maiyunnet/kebab/blob/master/index.ts#L241)
1009
1009
 
1010
1010
  ***
1011
1011
 
@@ -1013,7 +1013,7 @@ Defined in: [index.ts:239](https://github.com/maiyunnet/kebab/blob/master/index.
1013
1013
 
1014
1014
  > `readonly` **path**: `string`
1015
1015
 
1016
- Defined in: [index.ts:241](https://github.com/maiyunnet/kebab/blob/master/index.ts#L241)
1016
+ Defined in: [index.ts:243](https://github.com/maiyunnet/kebab/blob/master/index.ts#L243)
1017
1017
 
1018
1018
  ***
1019
1019
 
@@ -1021,7 +1021,7 @@ Defined in: [index.ts:241](https://github.com/maiyunnet/kebab/blob/master/index.
1021
1021
 
1022
1022
  > `readonly` **size**: `number`
1023
1023
 
1024
- Defined in: [index.ts:240](https://github.com/maiyunnet/kebab/blob/master/index.ts#L240)
1024
+ Defined in: [index.ts:242](https://github.com/maiyunnet/kebab/blob/master/index.ts#L242)
1025
1025
 
1026
1026
  index/interfaces/IUrlParse.md
1027
1027
  ---
@@ -1034,7 +1034,7 @@ index/interfaces/IUrlParse.md
1034
1034
 
1035
1035
  # Interface: IUrlParse
1036
1036
 
1037
- Defined in: [index.ts:87](https://github.com/maiyunnet/kebab/blob/master/index.ts#L87)
1037
+ Defined in: [index.ts:89](https://github.com/maiyunnet/kebab/blob/master/index.ts#L89)
1038
1038
 
1039
1039
  ## Properties
1040
1040
 
@@ -1042,7 +1042,7 @@ Defined in: [index.ts:87](https://github.com/maiyunnet/kebab/blob/master/index.t
1042
1042
 
1043
1043
  > **auth**: `string` \| `null`
1044
1044
 
1045
- Defined in: [index.ts:89](https://github.com/maiyunnet/kebab/blob/master/index.ts#L89)
1045
+ Defined in: [index.ts:91](https://github.com/maiyunnet/kebab/blob/master/index.ts#L91)
1046
1046
 
1047
1047
  ***
1048
1048
 
@@ -1050,7 +1050,7 @@ Defined in: [index.ts:89](https://github.com/maiyunnet/kebab/blob/master/index.t
1050
1050
 
1051
1051
  > **hash**: `string` \| `null`
1052
1052
 
1053
- Defined in: [index.ts:98](https://github.com/maiyunnet/kebab/blob/master/index.ts#L98)
1053
+ Defined in: [index.ts:100](https://github.com/maiyunnet/kebab/blob/master/index.ts#L100)
1054
1054
 
1055
1055
  ***
1056
1056
 
@@ -1058,7 +1058,7 @@ Defined in: [index.ts:98](https://github.com/maiyunnet/kebab/blob/master/index.t
1058
1058
 
1059
1059
  > **host**: `string` \| `null`
1060
1060
 
1061
- Defined in: [index.ts:92](https://github.com/maiyunnet/kebab/blob/master/index.ts#L92)
1061
+ Defined in: [index.ts:94](https://github.com/maiyunnet/kebab/blob/master/index.ts#L94)
1062
1062
 
1063
1063
  ***
1064
1064
 
@@ -1066,7 +1066,7 @@ Defined in: [index.ts:92](https://github.com/maiyunnet/kebab/blob/master/index.t
1066
1066
 
1067
1067
  > **hostname**: `string` \| `null`
1068
1068
 
1069
- Defined in: [index.ts:93](https://github.com/maiyunnet/kebab/blob/master/index.ts#L93)
1069
+ Defined in: [index.ts:95](https://github.com/maiyunnet/kebab/blob/master/index.ts#L95)
1070
1070
 
1071
1071
  ***
1072
1072
 
@@ -1074,7 +1074,7 @@ Defined in: [index.ts:93](https://github.com/maiyunnet/kebab/blob/master/index.t
1074
1074
 
1075
1075
  > **pass**: `string` \| `null`
1076
1076
 
1077
- Defined in: [index.ts:91](https://github.com/maiyunnet/kebab/blob/master/index.ts#L91)
1077
+ Defined in: [index.ts:93](https://github.com/maiyunnet/kebab/blob/master/index.ts#L93)
1078
1078
 
1079
1079
  ***
1080
1080
 
@@ -1082,7 +1082,7 @@ Defined in: [index.ts:91](https://github.com/maiyunnet/kebab/blob/master/index.t
1082
1082
 
1083
1083
  > **path**: `string` \| `null`
1084
1084
 
1085
- Defined in: [index.ts:96](https://github.com/maiyunnet/kebab/blob/master/index.ts#L96)
1085
+ Defined in: [index.ts:98](https://github.com/maiyunnet/kebab/blob/master/index.ts#L98)
1086
1086
 
1087
1087
  ***
1088
1088
 
@@ -1090,7 +1090,7 @@ Defined in: [index.ts:96](https://github.com/maiyunnet/kebab/blob/master/index.t
1090
1090
 
1091
1091
  > **pathname**: `string`
1092
1092
 
1093
- Defined in: [index.ts:95](https://github.com/maiyunnet/kebab/blob/master/index.ts#L95)
1093
+ Defined in: [index.ts:97](https://github.com/maiyunnet/kebab/blob/master/index.ts#L97)
1094
1094
 
1095
1095
  ***
1096
1096
 
@@ -1098,7 +1098,7 @@ Defined in: [index.ts:95](https://github.com/maiyunnet/kebab/blob/master/index.t
1098
1098
 
1099
1099
  > **port**: `string` \| `null`
1100
1100
 
1101
- Defined in: [index.ts:94](https://github.com/maiyunnet/kebab/blob/master/index.ts#L94)
1101
+ Defined in: [index.ts:96](https://github.com/maiyunnet/kebab/blob/master/index.ts#L96)
1102
1102
 
1103
1103
  ***
1104
1104
 
@@ -1106,7 +1106,7 @@ Defined in: [index.ts:94](https://github.com/maiyunnet/kebab/blob/master/index.t
1106
1106
 
1107
1107
  > **protocol**: `string` \| `null`
1108
1108
 
1109
- Defined in: [index.ts:88](https://github.com/maiyunnet/kebab/blob/master/index.ts#L88)
1109
+ Defined in: [index.ts:90](https://github.com/maiyunnet/kebab/blob/master/index.ts#L90)
1110
1110
 
1111
1111
  ***
1112
1112
 
@@ -1114,7 +1114,7 @@ Defined in: [index.ts:88](https://github.com/maiyunnet/kebab/blob/master/index.t
1114
1114
 
1115
1115
  > **query**: `string` \| `null`
1116
1116
 
1117
- Defined in: [index.ts:97](https://github.com/maiyunnet/kebab/blob/master/index.ts#L97)
1117
+ Defined in: [index.ts:99](https://github.com/maiyunnet/kebab/blob/master/index.ts#L99)
1118
1118
 
1119
1119
  ***
1120
1120
 
@@ -1122,7 +1122,7 @@ Defined in: [index.ts:97](https://github.com/maiyunnet/kebab/blob/master/index.t
1122
1122
 
1123
1123
  > **user**: `string` \| `null`
1124
1124
 
1125
- Defined in: [index.ts:90](https://github.com/maiyunnet/kebab/blob/master/index.ts#L90)
1125
+ Defined in: [index.ts:92](https://github.com/maiyunnet/kebab/blob/master/index.ts#L92)
1126
1126
 
1127
1127
  index/interfaces/IVhost.md
1128
1128
  ---
@@ -1135,7 +1135,7 @@ index/interfaces/IVhost.md
1135
1135
 
1136
1136
  # Interface: IVhost
1137
1137
 
1138
- Defined in: [index.ts:229](https://github.com/maiyunnet/kebab/blob/master/index.ts#L229)
1138
+ Defined in: [index.ts:231](https://github.com/maiyunnet/kebab/blob/master/index.ts#L231)
1139
1139
 
1140
1140
  虚拟机配置对象
1141
1141
 
@@ -1145,7 +1145,7 @@ Defined in: [index.ts:229](https://github.com/maiyunnet/kebab/blob/master/index.
1145
1145
 
1146
1146
  > `readonly` **domains**: `string`[]
1147
1147
 
1148
- Defined in: [index.ts:231](https://github.com/maiyunnet/kebab/blob/master/index.ts#L231)
1148
+ Defined in: [index.ts:233](https://github.com/maiyunnet/kebab/blob/master/index.ts#L233)
1149
1149
 
1150
1150
  ***
1151
1151
 
@@ -1153,7 +1153,7 @@ Defined in: [index.ts:231](https://github.com/maiyunnet/kebab/blob/master/index.
1153
1153
 
1154
1154
  > `readonly` `optional` **name**: `string`
1155
1155
 
1156
- Defined in: [index.ts:230](https://github.com/maiyunnet/kebab/blob/master/index.ts#L230)
1156
+ Defined in: [index.ts:232](https://github.com/maiyunnet/kebab/blob/master/index.ts#L232)
1157
1157
 
1158
1158
  ***
1159
1159
 
@@ -1161,7 +1161,7 @@ Defined in: [index.ts:230](https://github.com/maiyunnet/kebab/blob/master/index.
1161
1161
 
1162
1162
  > `readonly` `optional` **remark**: `string`
1163
1163
 
1164
- Defined in: [index.ts:233](https://github.com/maiyunnet/kebab/blob/master/index.ts#L233)
1164
+ Defined in: [index.ts:235](https://github.com/maiyunnet/kebab/blob/master/index.ts#L235)
1165
1165
 
1166
1166
  ***
1167
1167
 
@@ -1169,7 +1169,7 @@ Defined in: [index.ts:233](https://github.com/maiyunnet/kebab/blob/master/index.
1169
1169
 
1170
1170
  > `readonly` **root**: `string`
1171
1171
 
1172
- Defined in: [index.ts:232](https://github.com/maiyunnet/kebab/blob/master/index.ts#L232)
1172
+ Defined in: [index.ts:234](https://github.com/maiyunnet/kebab/blob/master/index.ts#L234)
1173
1173
 
1174
1174
  index/type-aliases/DbValue.md
1175
1175
  ---
@@ -1184,7 +1184,7 @@ index/type-aliases/DbValue.md
1184
1184
 
1185
1185
  > **DbValue** = `string` \| `number` \| `null` \| `Record`\<`string`, [`Json`](Json.md)\>
1186
1186
 
1187
- Defined in: [index.ts:47](https://github.com/maiyunnet/kebab/blob/master/index.ts#L47)
1187
+ Defined in: [index.ts:49](https://github.com/maiyunnet/kebab/blob/master/index.ts#L49)
1188
1188
 
1189
1189
  数据库值的类型
1190
1190
 
@@ -1201,7 +1201,7 @@ index/type-aliases/Json.md
1201
1201
 
1202
1202
  > **Json** = `any`
1203
1203
 
1204
- Defined in: [index.ts:44](https://github.com/maiyunnet/kebab/blob/master/index.ts#L44)
1204
+ Defined in: [index.ts:46](https://github.com/maiyunnet/kebab/blob/master/index.ts#L46)
1205
1205
 
1206
1206
  除非确定是不可知的 Json,否则不能使用
1207
1207
 
@@ -1218,7 +1218,7 @@ index/variables/CERT_CWD.md
1218
1218
 
1219
1219
  > `const` **CERT\_CWD**: `string`
1220
1220
 
1221
- Defined in: [index.ts:32](https://github.com/maiyunnet/kebab/blob/master/index.ts#L32)
1221
+ Defined in: [index.ts:33](https://github.com/maiyunnet/kebab/blob/master/index.ts#L33)
1222
1222
 
1223
1223
  index/variables/CONF_CWD.md
1224
1224
  ---
@@ -1233,7 +1233,7 @@ index/variables/CONF_CWD.md
1233
1233
 
1234
1234
  > `const` **CONF\_CWD**: `string`
1235
1235
 
1236
- Defined in: [index.ts:31](https://github.com/maiyunnet/kebab/blob/master/index.ts#L31)
1236
+ Defined in: [index.ts:32](https://github.com/maiyunnet/kebab/blob/master/index.ts#L32)
1237
1237
 
1238
1238
  index/variables/FTMP_CWD.md
1239
1239
  ---
@@ -1248,7 +1248,7 @@ index/variables/FTMP_CWD.md
1248
1248
 
1249
1249
  > `const` **FTMP\_CWD**: `string`
1250
1250
 
1251
- Defined in: [index.ts:38](https://github.com/maiyunnet/kebab/blob/master/index.ts#L38)
1251
+ Defined in: [index.ts:40](https://github.com/maiyunnet/kebab/blob/master/index.ts#L40)
1252
1252
 
1253
1253
  index/variables/IND_CWD.md
1254
1254
  ---
@@ -1263,7 +1263,7 @@ index/variables/IND_CWD.md
1263
1263
 
1264
1264
  > `const` **IND\_CWD**: `string`
1265
1265
 
1266
- Defined in: [index.ts:37](https://github.com/maiyunnet/kebab/blob/master/index.ts#L37)
1266
+ Defined in: [index.ts:39](https://github.com/maiyunnet/kebab/blob/master/index.ts#L39)
1267
1267
 
1268
1268
  index/variables/LIB_CWD.md
1269
1269
  ---
@@ -1278,7 +1278,9 @@ index/variables/LIB_CWD.md
1278
1278
 
1279
1279
  > `const` **LIB\_CWD**: `string`
1280
1280
 
1281
- Defined in: [index.ts:34](https://github.com/maiyunnet/kebab/blob/master/index.ts#L34)
1281
+ Defined in: [index.ts:36](https://github.com/maiyunnet/kebab/blob/master/index.ts#L36)
1282
+
1283
+ 用户的根 LIB,以 / 结尾
1282
1284
 
1283
1285
  index/variables/LIB_PATH.md
1284
1286
  ---
@@ -1293,7 +1295,9 @@ index/variables/LIB_PATH.md
1293
1295
 
1294
1296
  > `const` **LIB\_PATH**: `string`
1295
1297
 
1296
- Defined in: [index.ts:20](https://github.com/maiyunnet/kebab/blob/master/index.ts#L20)
1298
+ Defined in: [index.ts:21](https://github.com/maiyunnet/kebab/blob/master/index.ts#L21)
1299
+
1300
+ 框架的 LIB,以 / 结尾
1297
1301
 
1298
1302
  index/variables/LOG_CWD.md
1299
1303
  ---
@@ -1308,7 +1312,7 @@ index/variables/LOG_CWD.md
1308
1312
 
1309
1313
  > `const` **LOG\_CWD**: `string`
1310
1314
 
1311
- Defined in: [index.ts:35](https://github.com/maiyunnet/kebab/blob/master/index.ts#L35)
1315
+ Defined in: [index.ts:37](https://github.com/maiyunnet/kebab/blob/master/index.ts#L37)
1312
1316
 
1313
1317
  index/variables/MOD_CWD.md
1314
1318
  ---
@@ -1323,7 +1327,7 @@ index/variables/MOD_CWD.md
1323
1327
 
1324
1328
  > `const` **MOD\_CWD**: `string`
1325
1329
 
1326
- Defined in: [index.ts:39](https://github.com/maiyunnet/kebab/blob/master/index.ts#L39)
1330
+ Defined in: [index.ts:41](https://github.com/maiyunnet/kebab/blob/master/index.ts#L41)
1327
1331
 
1328
1332
  index/variables/ROOT_CWD.md
1329
1333
  ---
@@ -1338,7 +1342,7 @@ index/variables/ROOT_CWD.md
1338
1342
 
1339
1343
  > `const` **ROOT\_CWD**: `string`
1340
1344
 
1341
- Defined in: [index.ts:30](https://github.com/maiyunnet/kebab/blob/master/index.ts#L30)
1345
+ Defined in: [index.ts:31](https://github.com/maiyunnet/kebab/blob/master/index.ts#L31)
1342
1346
 
1343
1347
  执行根目录,以 / 结尾
1344
1348
 
@@ -1372,7 +1376,7 @@ index/variables/SYS_PATH.md
1372
1376
 
1373
1377
  > `const` **SYS\_PATH**: `string`
1374
1378
 
1375
- Defined in: [index.ts:21](https://github.com/maiyunnet/kebab/blob/master/index.ts#L21)
1379
+ Defined in: [index.ts:22](https://github.com/maiyunnet/kebab/blob/master/index.ts#L22)
1376
1380
 
1377
1381
  index/variables/VER.md
1378
1382
  ---
@@ -1385,7 +1389,7 @@ index/variables/VER.md
1385
1389
 
1386
1390
  # Variable: VER
1387
1391
 
1388
- > `const` **VER**: `"8.2.0"` = `'8.2.0'`
1392
+ > `const` **VER**: `"8.3.0"` = `'8.3.0'`
1389
1393
 
1390
1394
  Defined in: [index.ts:10](https://github.com/maiyunnet/kebab/blob/master/index.ts#L10)
1391
1395
 
@@ -1404,7 +1408,7 @@ index/variables/VHOST_CWD.md
1404
1408
 
1405
1409
  > `const` **VHOST\_CWD**: `string`
1406
1410
 
1407
- Defined in: [index.ts:33](https://github.com/maiyunnet/kebab/blob/master/index.ts#L33)
1411
+ Defined in: [index.ts:34](https://github.com/maiyunnet/kebab/blob/master/index.ts#L34)
1408
1412
 
1409
1413
  index/variables/WWW_CWD.md
1410
1414
  ---
@@ -1419,7 +1423,7 @@ index/variables/WWW_CWD.md
1419
1423
 
1420
1424
  > `const` **WWW\_CWD**: `string`
1421
1425
 
1422
- Defined in: [index.ts:36](https://github.com/maiyunnet/kebab/blob/master/index.ts#L36)
1426
+ Defined in: [index.ts:38](https://github.com/maiyunnet/kebab/blob/master/index.ts#L38)
1423
1427
 
1424
1428
  lib/ai/classes/Ai.md
1425
1429
  ---
@@ -1530,7 +1534,7 @@ Defined in: [lib/ai.ts:152](https://github.com/maiyunnet/kebab/blob/master/lib/a
1530
1534
 
1531
1535
  > **embedding**(`body`): `Promise`\<`false` \| `APIPromise`\<`CreateEmbeddingResponse`\>\>
1532
1536
 
1533
- Defined in: [lib/ai.ts:172](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L172)
1537
+ Defined in: [lib/ai.ts:175](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L175)
1534
1538
 
1535
1539
  创建向量
1536
1540
 
@@ -1550,7 +1554,7 @@ Defined in: [lib/ai.ts:172](https://github.com/maiyunnet/kebab/blob/master/lib/a
1550
1554
 
1551
1555
  > **image**(`opt`): `Promise`\<`false` \| \{ `list`: `object`[]; `request`: `string`; `seed`: `number`; \}\>
1552
1556
 
1553
- Defined in: [lib/ai.ts:186](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L186)
1557
+ Defined in: [lib/ai.ts:191](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L191)
1554
1558
 
1555
1559
  生成图像,不支持 GEMINI、GROK 服务商
1556
1560
 
@@ -1612,7 +1616,7 @@ Defined in: [lib/ai.ts:186](https://github.com/maiyunnet/kebab/blob/master/lib/a
1612
1616
 
1613
1617
  > **poll**(`opt`): `Promise`\<`false` \| \{ `add?`: `number`; `end?`: `number`; `error?`: `string`; `start?`: `number`; `status`: `"PENDING"` \| `"RUNNING"` \| `"SUCCEEDED"` \| `"FAILED"` \| `"CANCELED"` \| `"UNKNOWN"`; `task`: `string`; `url?`: `string`; \}\>
1614
1618
 
1615
- Defined in: [lib/ai.ts:534](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L534)
1619
+ Defined in: [lib/ai.ts:539](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L539)
1616
1620
 
1617
1621
  轮询任务
1618
1622
 
@@ -1638,7 +1642,7 @@ Defined in: [lib/ai.ts:534](https://github.com/maiyunnet/kebab/blob/master/lib/a
1638
1642
 
1639
1643
  > **video**(`opt`): `Promise`\<`false` \| \{ `request`: `string`; `seed`: `number`; `status`: `"PENDING"` \| `"RUNNING"` \| `"SUCCEEDED"` \| `"FAILED"` \| `"CANCELED"` \| `"UNKNOWN"`; `task`: `string`; \}\>
1640
1644
 
1641
- Defined in: [lib/ai.ts:366](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L366)
1645
+ Defined in: [lib/ai.ts:371](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L371)
1642
1646
 
1643
1647
  异步生成视频,仅支持 ALICN、ALIAS
1644
1648
 
@@ -1836,7 +1840,7 @@ lib/ai/functions/get.md
1836
1840
 
1837
1841
  > **get**(`ctrEtc`, `opt`): [`Ai`](../classes/Ai.md)
1838
1842
 
1839
- Defined in: [lib/ai.ts:589](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L589)
1843
+ Defined in: [lib/ai.ts:594](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L594)
1840
1844
 
1841
1845
  创建一个 AI 对象
1842
1846
 
package/index.d.ts CHANGED
@@ -5,9 +5,10 @@
5
5
  * --- 本文件用来定义每个目录实体地址的常量 ---
6
6
  */
7
7
  /** --- 当前系统版本号 --- */
8
- export declare const VER = "8.2.0";
8
+ export declare const VER = "8.3.0";
9
9
  /** --- 框架根目录,以 / 结尾 --- */
10
10
  export declare const ROOT_PATH: string;
11
+ /** --- 框架的 LIB,以 / 结尾 --- */
11
12
  export declare const LIB_PATH: string;
12
13
  export declare const SYS_PATH: string;
13
14
  /** --- 执行根目录,以 / 结尾 --- */
@@ -15,6 +16,7 @@ export declare const ROOT_CWD: string;
15
16
  export declare const CONF_CWD: string;
16
17
  export declare const CERT_CWD: string;
17
18
  export declare const VHOST_CWD: string;
19
+ /** --- 用户的根 LIB,以 / 结尾 --- */
18
20
  export declare const LIB_CWD: string;
19
21
  export declare const LOG_CWD: string;
20
22
  export declare const WWW_CWD: string;
package/index.js CHANGED
@@ -6,13 +6,14 @@
6
6
  * --- 本文件用来定义每个目录实体地址的常量 ---
7
7
  */
8
8
  /** --- 当前系统版本号 --- */
9
- export const VER = '8.2.0';
9
+ export const VER = '8.3.0';
10
10
  // --- 服务端用的路径 ---
11
11
  const imu = decodeURIComponent(import.meta.url).replace('file://', '').replace(/^\/(\w:)/, '$1');
12
12
  /** --- /xxx/xxx --- */
13
13
  const dirname = imu.slice(0, imu.lastIndexOf('/'));
14
14
  /** --- 框架根目录,以 / 结尾 --- */
15
15
  export const ROOT_PATH = dirname + '/';
16
+ /** --- 框架的 LIB,以 / 结尾 --- */
16
17
  export const LIB_PATH = ROOT_PATH + 'lib/';
17
18
  export const SYS_PATH = ROOT_PATH + 'sys/';
18
19
  let cwd = process.cwd().replace(/\\/g, '/');
@@ -25,6 +26,7 @@ export const ROOT_CWD = cwd + '/';
25
26
  export const CONF_CWD = ROOT_CWD + 'conf/';
26
27
  export const CERT_CWD = CONF_CWD + 'cert/';
27
28
  export const VHOST_CWD = CONF_CWD + 'vhost/';
29
+ /** --- 用户的根 LIB,以 / 结尾 --- */
28
30
  export const LIB_CWD = ROOT_CWD + 'lib/';
29
31
  export const LOG_CWD = ROOT_CWD + 'log/';
30
32
  export const WWW_CWD = ROOT_CWD + 'www/';
package/lib/ai.js CHANGED
@@ -122,8 +122,11 @@ export class Ai {
122
122
  return await this.link.chat.completions.create(body);
123
123
  }
124
124
  catch (e) {
125
- lCore.debug('[AI][CHAT]', e);
126
- lCore.log(this._ctr ?? {}, `[AI][CHAT] ${e.message}`, '-error');
125
+ // --- https://www.alibabacloud.com/help/en/model-studio/error-code#inappropriate-content ---
126
+ if (!e.message.includes('Input data may contain inappropriate content')) {
127
+ lCore.debug('[AI][CHAT]', e);
128
+ lCore.log(this._ctr ?? {}, `[AI][CHAT] ${e.message}`, '-error');
129
+ }
127
130
  return false;
128
131
  }
129
132
  }
@@ -133,8 +136,10 @@ export class Ai {
133
136
  return await this.link.embeddings.create(body);
134
137
  }
135
138
  catch (e) {
136
- lCore.debug('[AI][EMBEDDING]', e);
137
- lCore.log(this._ctr ?? {}, `[AI][EMBEDDING] ${e.message}`, '-error');
139
+ if (!e.message.includes('Input data may contain inappropriate content')) {
140
+ lCore.debug('[AI][EMBEDDING]', e);
141
+ lCore.log(this._ctr ?? {}, `[AI][EMBEDDING] ${e.message}`, '-error');
142
+ }
138
143
  return false;
139
144
  }
140
145
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maiyunnet/kebab",
3
- "version": "8.2.0",
3
+ "version": "8.3.0",
4
4
  "description": "Simple, easy-to-use, and fully-featured Node.js framework that is ready-to-use out of the box.",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -22,8 +22,8 @@
22
22
  "#kebab/*": "./*"
23
23
  },
24
24
  "dependencies": {
25
- "@aws-sdk/client-s3": "^3.992.0",
26
- "@aws-sdk/lib-storage": "^3.992.0",
25
+ "@aws-sdk/client-s3": "^3.993.0",
26
+ "@aws-sdk/lib-storage": "^3.993.0",
27
27
  "@litert/http-client": "^1.1.2",
28
28
  "@litert/mime": "^0.1.3",
29
29
  "@litert/redis": "^3.1.0",
@@ -43,7 +43,7 @@
43
43
  "devDependencies": {
44
44
  "@litert/eslint-plugin-rules": "^0.3.1",
45
45
  "@types/ejs": "^3.1.5",
46
- "@types/node": "^25.2.3",
46
+ "@types/node": "^25.3.0",
47
47
  "@types/pg": "^8.16.0",
48
48
  "typedoc": "^0.28.17",
49
49
  "typedoc-plugin-markdown": "^4.10.0",
package/sys/cmd.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Project: Kebab, User: JianSuoQiYue
3
3
  * Date: 2020-3-7 23:51:15
4
- * Last: 2020-3-7 23:51:18, 2022-07-22 14:14:09, 2022-9-27 14:52:19, 2023-5-23 21:42:46, 2024-7-2 15:12:28
4
+ * Last: 2020-3-7 23:51:18, 2022-07-22 14:14:09, 2022-9-27 14:52:19, 2023-5-23 21:42:46, 2024-7-2 15:12:28, 2026-2-23 13:08:11
5
5
  */
6
6
  import * as http from 'http';
7
7
  import * as lFs from '#kebab/lib/fs.js';
@@ -10,6 +10,7 @@ import * as lTime from '#kebab/lib/time.js';
10
10
  import * as lCore from '#kebab/lib/core.js';
11
11
  import * as lCrypto from '#kebab/lib/crypto.js';
12
12
  import * as kebab from '#kebab/index.js';
13
+ // --- 检查语言包:node ./source/main locale -l ./source/www/example/data/locale/sc -d ./source/www/example ---
13
14
  /** --- 解析命令 --- */
14
15
  const cmds = process.argv.slice(2);
15
16
  /** --- 批量创建目录 --- */
@@ -222,6 +223,126 @@ async function run() {
222
223
  }
223
224
  }
224
225
  lCore.display('DONE');
226
+ // --- 退出进程 ---
227
+ process.exit();
228
+ }
229
+ if (cmds[0] === 'locale') {
230
+ let localePath = '';
231
+ let dirPath = '';
232
+ for (let i = 1; i < cmds.length; i++) {
233
+ if (cmds[i] === '-l' || cmds[i] === '--locale') {
234
+ localePath = cmds[i + 1];
235
+ i++;
236
+ }
237
+ else if (cmds[i] === '-d' || cmds[i] === '--dir') {
238
+ dirPath = cmds[i + 1];
239
+ i++;
240
+ }
241
+ }
242
+ if (!localePath || !dirPath) {
243
+ process.exit();
244
+ }
245
+ const appLocaleList = [];
246
+ const readDir = async (path) => {
247
+ const dlist = await lFs.readDir(path);
248
+ for (const item of dlist) {
249
+ if (item.name === '.' || item.name === '..') {
250
+ continue;
251
+ }
252
+ if (item.isDirectory()) {
253
+ await readDir(path + '/' + item.name);
254
+ continue;
255
+ }
256
+ if (!item.name.endsWith('.ejs') &&
257
+ !item.name.endsWith('.ts')) {
258
+ continue;
259
+ }
260
+ // --- ts 文件可能是前端的代码,所以要排除掉前端的 ts 文件 ---
261
+ let content = await lFs.getContent(path + '/' + item.name, 'utf8');
262
+ if (!content) {
263
+ continue;
264
+ }
265
+ if (item.name.endsWith('.ts')) {
266
+ // --- ts 文件可能是前端的代码,所以要排除掉前端的 ts 文件 ---
267
+ if (content.includes('AbstractPage')) {
268
+ continue;
269
+ }
270
+ // --- 移除 TS 多行注释 ---
271
+ content = content.replace(/\/\*[\s\S]*?\*\//g, '');
272
+ // --- 移除 TS 单行注释 ---
273
+ content = content.replace(/(^|[^\:])\/\/.*/g, '$1');
274
+ }
275
+ else if (item.name.endsWith('.ejs')) {
276
+ // --- ejs 文件,只保留 <% %> 内部的内容,因为外部是前端代码 ---
277
+ const matches = content.match(/<%[\s\S]*?%>/g);
278
+ if (!matches) {
279
+ continue;
280
+ }
281
+ content = matches.join('\n');
282
+ // --- 移除多行注释 ---
283
+ content = content.replace(/\/\*[\s\S]*?\*\//g, '');
284
+ // --- 移除单行注释 ---
285
+ content = content.replace(/(^|[^\:])\/\/.*/g, '$1');
286
+ }
287
+ const reg = /(?:\b|_)l\s*\(\s*(['"])(.+?)\1/g;
288
+ let match;
289
+ while (match = reg.exec(content)) {
290
+ const key = match[2];
291
+ if (appLocaleList.includes(key)) {
292
+ continue;
293
+ }
294
+ appLocaleList.push(key);
295
+ }
296
+ }
297
+ };
298
+ /** --- 提取目录 --- */
299
+ const lastSlash = localePath.lastIndexOf('/');
300
+ const dir = lastSlash === -1 ? '.' : localePath.slice(0, lastSlash);
301
+ /** --- 提取前缀,如 'sc' --- */
302
+ const prefix = lastSlash === -1 ? localePath : localePath.slice(lastSlash + 1);
303
+ const localeList = [];
304
+ const getKeys = (o, p = '') => {
305
+ for (const k in o) {
306
+ const nk = p ? p + '.' + k : k;
307
+ if (typeof o[k] === 'object' && o[k] !== null && !Array.isArray(o[k])) {
308
+ getKeys(o[k], nk);
309
+ }
310
+ else {
311
+ localeList.push(nk);
312
+ }
313
+ }
314
+ };
315
+ const files = await lFs.readDir(dir);
316
+ let found = false;
317
+ for (const file of files) {
318
+ if (file.isFile() && file.name.startsWith(prefix + '.') && file.name.endsWith('.json')) {
319
+ found = true;
320
+ const content = await lFs.getContent(dir + '/' + file.name, 'utf8');
321
+ if (!content) {
322
+ continue;
323
+ }
324
+ const obj = lText.parseJson(content);
325
+ if (typeof obj !== 'object') {
326
+ continue;
327
+ }
328
+ getKeys(obj);
329
+ }
330
+ }
331
+ if (!found) {
332
+ lCore.display('Locale files not found: ' + localePath + '.*.json');
333
+ process.exit();
334
+ }
335
+ appLocaleList.length = 0;
336
+ await readDir(dirPath);
337
+ const set1 = new Set(localeList);
338
+ const set2 = new Set(appLocaleList);
339
+ /** --- 只在第一个数组中存在的元素 --- */
340
+ const onlyInFirst = localeList.filter(item => !set2.has(item));
341
+ /** --- 只在第二个数组中存在的元素 --- */
342
+ const onlyInSecond = appLocaleList.filter(item => !set1.has(item));
343
+ lCore.display('More', onlyInFirst);
344
+ lCore.display('Less', onlyInSecond);
345
+ // --- 退出进程 ---
225
346
  process.exit();
226
347
  }
227
348
  // --- 读取配置文件 ---