@pmate/cli 0.24.6 → 0.24.8

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 (3) hide show
  1. package/dist/index.d.ts +47 -0
  2. package/dist/index.js +535 -234
  3. package/package.json +19 -12
package/dist/index.js CHANGED
@@ -283,160 +283,160 @@ var init_sessionStore = __esm({
283
283
  }
284
284
  });
285
285
 
286
- // node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/account.types.ts
286
+ // node_modules/@pmate/meta/src/types/account.types.ts
287
287
  var init_account_types = __esm({
288
- "node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/account.types.ts"() {
288
+ "node_modules/@pmate/meta/src/types/account.types.ts"() {
289
289
  "use strict";
290
290
  }
291
291
  });
292
292
 
293
- // node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/achievements.types.ts
293
+ // node_modules/@pmate/meta/src/types/achievements.types.ts
294
294
  var init_achievements_types = __esm({
295
- "node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/achievements.types.ts"() {
295
+ "node_modules/@pmate/meta/src/types/achievements.types.ts"() {
296
296
  "use strict";
297
297
  }
298
298
  });
299
299
 
300
- // node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/aigen.types.ts
300
+ // node_modules/@pmate/meta/src/types/aigen.types.ts
301
301
  var init_aigen_types = __esm({
302
- "node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/aigen.types.ts"() {
302
+ "node_modules/@pmate/meta/src/types/aigen.types.ts"() {
303
303
  "use strict";
304
304
  }
305
305
  });
306
306
 
307
- // node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/agent.types.ts
307
+ // node_modules/@pmate/meta/src/types/agent.types.ts
308
308
  var init_agent_types = __esm({
309
- "node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/agent.types.ts"() {
309
+ "node_modules/@pmate/meta/src/types/agent.types.ts"() {
310
310
  "use strict";
311
311
  }
312
312
  });
313
313
 
314
- // node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/agent-registry.types.ts
314
+ // node_modules/@pmate/meta/src/types/agent-registry.types.ts
315
315
  var init_agent_registry_types = __esm({
316
- "node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/agent-registry.types.ts"() {
316
+ "node_modules/@pmate/meta/src/types/agent-registry.types.ts"() {
317
317
  "use strict";
318
318
  }
319
319
  });
320
320
 
321
- // node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/runner-registry.types.ts
321
+ // node_modules/@pmate/meta/src/types/runner-registry.types.ts
322
322
  var init_runner_registry_types = __esm({
323
- "node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/runner-registry.types.ts"() {
323
+ "node_modules/@pmate/meta/src/types/runner-registry.types.ts"() {
324
324
  "use strict";
325
325
  }
326
326
  });
327
327
 
328
- // node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/blockchain.types.ts
328
+ // node_modules/@pmate/meta/src/types/blockchain.types.ts
329
329
  var init_blockchain_types = __esm({
330
- "node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/blockchain.types.ts"() {
330
+ "node_modules/@pmate/meta/src/types/blockchain.types.ts"() {
331
331
  "use strict";
332
332
  }
333
333
  });
334
334
 
335
- // node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/breakdown.types.ts
335
+ // node_modules/@pmate/meta/src/types/breakdown.types.ts
336
336
  var init_breakdown_types = __esm({
337
- "node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/breakdown.types.ts"() {
337
+ "node_modules/@pmate/meta/src/types/breakdown.types.ts"() {
338
338
  "use strict";
339
339
  }
340
340
  });
341
341
 
342
- // node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/chat.types.ts
342
+ // node_modules/@pmate/meta/src/types/chat.types.ts
343
343
  var init_chat_types = __esm({
344
- "node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/chat.types.ts"() {
344
+ "node_modules/@pmate/meta/src/types/chat.types.ts"() {
345
345
  "use strict";
346
346
  }
347
347
  });
348
348
 
349
- // node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/companion.types.ts
349
+ // node_modules/@pmate/meta/src/types/companion.types.ts
350
350
  var init_companion_types = __esm({
351
- "node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/companion.types.ts"() {
351
+ "node_modules/@pmate/meta/src/types/companion.types.ts"() {
352
352
  "use strict";
353
353
  }
354
354
  });
355
355
 
356
- // node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/enums.ts
356
+ // node_modules/@pmate/meta/src/types/enums.ts
357
357
  var init_enums = __esm({
358
- "node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/enums.ts"() {
358
+ "node_modules/@pmate/meta/src/types/enums.ts"() {
359
359
  "use strict";
360
360
  }
361
361
  });
362
362
 
363
- // node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/lang.types.ts
363
+ // node_modules/@pmate/meta/src/types/lang.types.ts
364
364
  var init_lang_types = __esm({
365
- "node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/lang.types.ts"() {
365
+ "node_modules/@pmate/meta/src/types/lang.types.ts"() {
366
366
  "use strict";
367
367
  }
368
368
  });
369
369
 
370
- // node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/logs.types.ts
370
+ // node_modules/@pmate/meta/src/types/logs.types.ts
371
371
  var init_logs_types = __esm({
372
- "node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/logs.types.ts"() {
372
+ "node_modules/@pmate/meta/src/types/logs.types.ts"() {
373
373
  "use strict";
374
374
  }
375
375
  });
376
376
 
377
- // node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/message.types.ts
377
+ // node_modules/@pmate/meta/src/types/message.types.ts
378
378
  var PING, PONG;
379
379
  var init_message_types = __esm({
380
- "node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/message.types.ts"() {
380
+ "node_modules/@pmate/meta/src/types/message.types.ts"() {
381
381
  "use strict";
382
382
  PING = 1;
383
383
  PONG = 2;
384
384
  }
385
385
  });
386
386
 
387
- // node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/newLog.types.ts
387
+ // node_modules/@pmate/meta/src/types/newLog.types.ts
388
388
  var init_newLog_types = __esm({
389
- "node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/newLog.types.ts"() {
389
+ "node_modules/@pmate/meta/src/types/newLog.types.ts"() {
390
390
  "use strict";
391
391
  }
392
392
  });
393
393
 
394
- // node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/novel.types.ts
394
+ // node_modules/@pmate/meta/src/types/novel.types.ts
395
395
  var init_novel_types = __esm({
396
- "node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/novel.types.ts"() {
396
+ "node_modules/@pmate/meta/src/types/novel.types.ts"() {
397
397
  "use strict";
398
398
  }
399
399
  });
400
400
 
401
- // node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/offline.types.ts
401
+ // node_modules/@pmate/meta/src/types/offline.types.ts
402
402
  var init_offline_types = __esm({
403
- "node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/offline.types.ts"() {
403
+ "node_modules/@pmate/meta/src/types/offline.types.ts"() {
404
404
  "use strict";
405
405
  }
406
406
  });
407
407
 
408
- // node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/prompt.types.ts
408
+ // node_modules/@pmate/meta/src/types/prompt.types.ts
409
409
  var init_prompt_types = __esm({
410
- "node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/prompt.types.ts"() {
410
+ "node_modules/@pmate/meta/src/types/prompt.types.ts"() {
411
411
  "use strict";
412
412
  }
413
413
  });
414
414
 
415
- // node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/reading.types.ts
415
+ // node_modules/@pmate/meta/src/types/reading.types.ts
416
416
  var init_reading_types = __esm({
417
- "node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/reading.types.ts"() {
417
+ "node_modules/@pmate/meta/src/types/reading.types.ts"() {
418
418
  "use strict";
419
419
  }
420
420
  });
421
421
 
422
- // node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/settings.types.ts
422
+ // node_modules/@pmate/meta/src/types/settings.types.ts
423
423
  var init_settings_types = __esm({
424
- "node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/settings.types.ts"() {
424
+ "node_modules/@pmate/meta/src/types/settings.types.ts"() {
425
425
  "use strict";
426
426
  }
427
427
  });
428
428
 
429
- // node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/subscription.types.ts
429
+ // node_modules/@pmate/meta/src/types/subscription.types.ts
430
430
  var init_subscription_types = __esm({
431
- "node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/subscription.types.ts"() {
431
+ "node_modules/@pmate/meta/src/types/subscription.types.ts"() {
432
432
  "use strict";
433
433
  }
434
434
  });
435
435
 
436
- // node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/types.ts
436
+ // node_modules/@pmate/meta/src/types/types.ts
437
437
  var buildVoiceKey, createVoice;
438
438
  var init_types = __esm({
439
- "node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/types.ts"() {
439
+ "node_modules/@pmate/meta/src/types/types.ts"() {
440
440
  "use strict";
441
441
  buildVoiceKey = (provider, name) => {
442
442
  return `${provider}:${name}`;
@@ -458,44 +458,44 @@ var init_types = __esm({
458
458
  }
459
459
  });
460
460
 
461
- // node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/wordv5.def.ts
461
+ // node_modules/@pmate/meta/src/types/wordv5.def.ts
462
462
  var init_wordv5_def = __esm({
463
- "node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/wordv5.def.ts"() {
463
+ "node_modules/@pmate/meta/src/types/wordv5.def.ts"() {
464
464
  "use strict";
465
465
  }
466
466
  });
467
467
 
468
- // node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/auth.types.ts
468
+ // node_modules/@pmate/meta/src/types/auth.types.ts
469
469
  var init_auth_types = __esm({
470
- "node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/auth.types.ts"() {
470
+ "node_modules/@pmate/meta/src/types/auth.types.ts"() {
471
471
  "use strict";
472
472
  }
473
473
  });
474
474
 
475
- // node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/apps.types.ts
475
+ // node_modules/@pmate/meta/src/types/apps.types.ts
476
476
  var init_apps_types = __esm({
477
- "node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/apps.types.ts"() {
477
+ "node_modules/@pmate/meta/src/types/apps.types.ts"() {
478
478
  "use strict";
479
479
  }
480
480
  });
481
481
 
482
- // node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/response.types.ts
482
+ // node_modules/@pmate/meta/src/types/response.types.ts
483
483
  var init_response_types = __esm({
484
- "node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/response.types.ts"() {
484
+ "node_modules/@pmate/meta/src/types/response.types.ts"() {
485
485
  "use strict";
486
486
  }
487
487
  });
488
488
 
489
- // node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/role.types.ts
489
+ // node_modules/@pmate/meta/src/types/role.types.ts
490
490
  var init_role_types = __esm({
491
- "node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/role.types.ts"() {
491
+ "node_modules/@pmate/meta/src/types/role.types.ts"() {
492
492
  "use strict";
493
493
  }
494
494
  });
495
495
 
496
- // node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/index.ts
496
+ // node_modules/@pmate/meta/src/types/index.ts
497
497
  var init_types2 = __esm({
498
- "node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/index.ts"() {
498
+ "node_modules/@pmate/meta/src/types/index.ts"() {
499
499
  "use strict";
500
500
  init_account_types();
501
501
  init_achievements_types();
@@ -527,24 +527,24 @@ var init_types2 = __esm({
527
527
  }
528
528
  });
529
529
 
530
- // node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/config/BizErrorCode.ts
530
+ // node_modules/@pmate/meta/src/config/BizErrorCode.ts
531
531
  var init_BizErrorCode = __esm({
532
- "node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/config/BizErrorCode.ts"() {
532
+ "node_modules/@pmate/meta/src/config/BizErrorCode.ts"() {
533
533
  "use strict";
534
534
  }
535
535
  });
536
536
 
537
- // node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/config/consts.ts
537
+ // node_modules/@pmate/meta/src/config/consts.ts
538
538
  var init_consts = __esm({
539
- "node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/config/consts.ts"() {
539
+ "node_modules/@pmate/meta/src/config/consts.ts"() {
540
540
  "use strict";
541
541
  }
542
542
  });
543
543
 
544
- // node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/config/TopicNames.ts
544
+ // node_modules/@pmate/meta/src/config/TopicNames.ts
545
545
  var TopicNames, topicKindMatchers;
546
546
  var init_TopicNames = __esm({
547
- "node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/config/TopicNames.ts"() {
547
+ "node_modules/@pmate/meta/src/config/TopicNames.ts"() {
548
548
  "use strict";
549
549
  init_types2();
550
550
  TopicNames = class _TopicNames {
@@ -630,18 +630,18 @@ var init_TopicNames = __esm({
630
630
  }
631
631
  });
632
632
 
633
- // node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/config/OSSKeys.ts
633
+ // node_modules/@pmate/meta/src/config/OSSKeys.ts
634
634
  var init_OSSKeys = __esm({
635
- "node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/config/OSSKeys.ts"() {
635
+ "node_modules/@pmate/meta/src/config/OSSKeys.ts"() {
636
636
  "use strict";
637
637
  init_consts();
638
638
  }
639
639
  });
640
640
 
641
- // node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/config/CompanionProfiles.ts
641
+ // node_modules/@pmate/meta/src/config/CompanionProfiles.ts
642
642
  var openAICoral, openAIAsh, openAIBallad, openAINova, openAIVerse;
643
643
  var init_CompanionProfiles = __esm({
644
- "node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/config/CompanionProfiles.ts"() {
644
+ "node_modules/@pmate/meta/src/config/CompanionProfiles.ts"() {
645
645
  "use strict";
646
646
  init_types2();
647
647
  openAICoral = createVoice({
@@ -676,9 +676,9 @@ var init_CompanionProfiles = __esm({
676
676
  }
677
677
  });
678
678
 
679
- // node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/config/index.ts
679
+ // node_modules/@pmate/meta/src/config/index.ts
680
680
  var init_config = __esm({
681
- "node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/config/index.ts"() {
681
+ "node_modules/@pmate/meta/src/config/index.ts"() {
682
682
  "use strict";
683
683
  init_BizErrorCode();
684
684
  init_consts();
@@ -688,83 +688,83 @@ var init_config = __esm({
688
688
  }
689
689
  });
690
690
 
691
- // node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/index.ts
691
+ // node_modules/@pmate/meta/src/index.ts
692
692
  var init_src = __esm({
693
- "node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/index.ts"() {
693
+ "node_modules/@pmate/meta/src/index.ts"() {
694
694
  "use strict";
695
695
  init_types2();
696
696
  init_config();
697
697
  }
698
698
  });
699
699
 
700
- // node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/base64.ts
700
+ // node_modules/@pmate/utils/src/base64.ts
701
701
  var init_base64 = __esm({
702
- "node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/base64.ts"() {
702
+ "node_modules/@pmate/utils/src/base64.ts"() {
703
703
  "use strict";
704
704
  }
705
705
  });
706
706
 
707
- // node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/Cache.ts
707
+ // node_modules/@pmate/utils/src/Cache.ts
708
708
  var init_Cache = __esm({
709
- "node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/Cache.ts"() {
709
+ "node_modules/@pmate/utils/src/Cache.ts"() {
710
710
  "use strict";
711
711
  }
712
712
  });
713
713
 
714
- // node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/batchResolve.ts
714
+ // node_modules/@pmate/utils/src/batchResolve.ts
715
715
  var init_batchResolve = __esm({
716
- "node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/batchResolve.ts"() {
716
+ "node_modules/@pmate/utils/src/batchResolve.ts"() {
717
717
  "use strict";
718
718
  init_Cache();
719
719
  }
720
720
  });
721
721
 
722
- // node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/cn/sentenceSpliter.ts
722
+ // node_modules/@pmate/lang/src/cn/sentenceSpliter.ts
723
723
  var init_sentenceSpliter = __esm({
724
- "node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/cn/sentenceSpliter.ts"() {
724
+ "node_modules/@pmate/lang/src/cn/sentenceSpliter.ts"() {
725
725
  "use strict";
726
726
  }
727
727
  });
728
728
 
729
- // node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/cn/sentenceTrim.ts
729
+ // node_modules/@pmate/lang/src/cn/sentenceTrim.ts
730
730
  var init_sentenceTrim = __esm({
731
- "node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/cn/sentenceTrim.ts"() {
731
+ "node_modules/@pmate/lang/src/cn/sentenceTrim.ts"() {
732
732
  "use strict";
733
733
  }
734
734
  });
735
735
 
736
- // node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/cn/wordSpliter.ts
736
+ // node_modules/@pmate/lang/src/cn/wordSpliter.ts
737
737
  var init_wordSpliter = __esm({
738
- "node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/cn/wordSpliter.ts"() {
738
+ "node_modules/@pmate/lang/src/cn/wordSpliter.ts"() {
739
739
  "use strict";
740
740
  }
741
741
  });
742
742
 
743
- // node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/en/regex.ts
743
+ // node_modules/@pmate/lang/src/en/regex.ts
744
744
  var init_regex = __esm({
745
- "node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/en/regex.ts"() {
745
+ "node_modules/@pmate/lang/src/en/regex.ts"() {
746
746
  "use strict";
747
747
  }
748
748
  });
749
749
 
750
- // node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/en/sentenceSpliter.ts
750
+ // node_modules/@pmate/lang/src/en/sentenceSpliter.ts
751
751
  var init_sentenceSpliter2 = __esm({
752
- "node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/en/sentenceSpliter.ts"() {
752
+ "node_modules/@pmate/lang/src/en/sentenceSpliter.ts"() {
753
753
  "use strict";
754
754
  }
755
755
  });
756
756
 
757
- // node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/en/sentenceTrim.ts
757
+ // node_modules/@pmate/lang/src/en/sentenceTrim.ts
758
758
  var init_sentenceTrim2 = __esm({
759
- "node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/en/sentenceTrim.ts"() {
759
+ "node_modules/@pmate/lang/src/en/sentenceTrim.ts"() {
760
760
  "use strict";
761
761
  }
762
762
  });
763
763
 
764
- // node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/en/wordSpliter.ts
764
+ // node_modules/@pmate/lang/src/en/wordSpliter.ts
765
765
  var regex;
766
766
  var init_wordSpliter2 = __esm({
767
- "node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/en/wordSpliter.ts"() {
767
+ "node_modules/@pmate/lang/src/en/wordSpliter.ts"() {
768
768
  "use strict";
769
769
  regex = new RegExp(
770
770
  [
@@ -800,23 +800,23 @@ var init_wordSpliter2 = __esm({
800
800
  }
801
801
  });
802
802
 
803
- // node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/kr/sentenceSpliter.ts
803
+ // node_modules/@pmate/lang/src/kr/sentenceSpliter.ts
804
804
  var init_sentenceSpliter3 = __esm({
805
- "node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/kr/sentenceSpliter.ts"() {
805
+ "node_modules/@pmate/lang/src/kr/sentenceSpliter.ts"() {
806
806
  "use strict";
807
807
  }
808
808
  });
809
809
 
810
- // node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/kr/wordSpliter.ts
810
+ // node_modules/@pmate/lang/src/kr/wordSpliter.ts
811
811
  var init_wordSpliter3 = __esm({
812
- "node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/kr/wordSpliter.ts"() {
812
+ "node_modules/@pmate/lang/src/kr/wordSpliter.ts"() {
813
813
  "use strict";
814
814
  }
815
815
  });
816
816
 
817
- // node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/readingSettings.ts
817
+ // node_modules/@pmate/lang/src/readingSettings.ts
818
818
  var init_readingSettings = __esm({
819
- "node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/readingSettings.ts"() {
819
+ "node_modules/@pmate/lang/src/readingSettings.ts"() {
820
820
  "use strict";
821
821
  init_sentenceSpliter();
822
822
  init_wordSpliter();
@@ -827,17 +827,17 @@ var init_readingSettings = __esm({
827
827
  }
828
828
  });
829
829
 
830
- // node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/utils.ts
830
+ // node_modules/@pmate/lang/src/utils.ts
831
831
  var init_utils = __esm({
832
- "node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/utils.ts"() {
832
+ "node_modules/@pmate/lang/src/utils.ts"() {
833
833
  "use strict";
834
834
  init_src();
835
835
  }
836
836
  });
837
837
 
838
- // node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/index.ts
838
+ // node_modules/@pmate/lang/src/index.ts
839
839
  var init_src2 = __esm({
840
- "node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/index.ts"() {
840
+ "node_modules/@pmate/lang/src/index.ts"() {
841
841
  "use strict";
842
842
  init_sentenceSpliter();
843
843
  init_sentenceTrim();
@@ -853,32 +853,32 @@ var init_src2 = __esm({
853
853
  }
854
854
  });
855
855
 
856
- // node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/bookStats.ts
856
+ // node_modules/@pmate/utils/src/bookStats.ts
857
857
  var init_bookStats = __esm({
858
- "node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/bookStats.ts"() {
858
+ "node_modules/@pmate/utils/src/bookStats.ts"() {
859
859
  "use strict";
860
860
  init_src2();
861
861
  }
862
862
  });
863
863
 
864
- // node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/BoundedConcurrentQueue.ts
864
+ // node_modules/@pmate/utils/src/BoundedConcurrentQueue.ts
865
865
  var init_BoundedConcurrentQueue = __esm({
866
- "node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/BoundedConcurrentQueue.ts"() {
866
+ "node_modules/@pmate/utils/src/BoundedConcurrentQueue.ts"() {
867
867
  "use strict";
868
868
  }
869
869
  });
870
870
 
871
- // node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/lru.ts
871
+ // node_modules/@pmate/utils/src/lru.ts
872
872
  var init_lru = __esm({
873
- "node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/lru.ts"() {
873
+ "node_modules/@pmate/utils/src/lru.ts"() {
874
874
  "use strict";
875
875
  init_Cache();
876
876
  }
877
877
  });
878
878
 
879
- // node_modules/.pnpm/js-sha3@0.9.3/node_modules/js-sha3/src/sha3.js
879
+ // node_modules/js-sha3/src/sha3.js
880
880
  var require_sha3 = __commonJS({
881
- "node_modules/.pnpm/js-sha3@0.9.3/node_modules/js-sha3/src/sha3.js"(exports2, module2) {
881
+ "node_modules/js-sha3/src/sha3.js"(exports2, module2) {
882
882
  "use strict";
883
883
  (function() {
884
884
  "use strict";
@@ -1523,24 +1523,24 @@ var require_sha3 = __commonJS({
1523
1523
  }
1524
1524
  });
1525
1525
 
1526
- // node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/Maybe.ts
1526
+ // node_modules/@pmate/utils/src/Maybe.ts
1527
1527
  var init_Maybe = __esm({
1528
- "node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/Maybe.ts"() {
1528
+ "node_modules/@pmate/utils/src/Maybe.ts"() {
1529
1529
  "use strict";
1530
1530
  }
1531
1531
  });
1532
1532
 
1533
- // node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/cacheMethodInMem.ts
1533
+ // node_modules/@pmate/utils/src/cacheMethodInMem.ts
1534
1534
  var import_js_sha3;
1535
1535
  var init_cacheMethodInMem = __esm({
1536
- "node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/cacheMethodInMem.ts"() {
1536
+ "node_modules/@pmate/utils/src/cacheMethodInMem.ts"() {
1537
1537
  "use strict";
1538
1538
  import_js_sha3 = __toESM(require_sha3(), 1);
1539
1539
  init_Maybe();
1540
1540
  }
1541
1541
  });
1542
1542
 
1543
- // node_modules/.pnpm/pako@2.1.0/node_modules/pako/dist/pako.esm.mjs
1543
+ // node_modules/pako/dist/pako.esm.mjs
1544
1544
  function zero$1(buf) {
1545
1545
  let len = buf.length;
1546
1546
  while (--len >= 0) {
@@ -1828,7 +1828,7 @@ function inflateRaw$1(input, options) {
1828
1828
  }
1829
1829
  var Z_FIXED$1, Z_BINARY, Z_TEXT, Z_UNKNOWN$1, STORED_BLOCK, STATIC_TREES, DYN_TREES, MIN_MATCH$1, MAX_MATCH$1, LENGTH_CODES$1, LITERALS$1, L_CODES$1, D_CODES$1, BL_CODES$1, HEAP_SIZE$1, MAX_BITS$1, Buf_size, MAX_BL_BITS, END_BLOCK, REP_3_6, REPZ_3_10, REPZ_11_138, extra_lbits, extra_dbits, extra_blbits, bl_order, DIST_CODE_LEN, static_ltree, static_dtree, _dist_code, _length_code, base_length, base_dist, static_l_desc, static_d_desc, static_bl_desc, d_code, put_short, send_bits, send_code, bi_reverse, bi_flush, gen_bitlen, gen_codes, tr_static_init, init_block, bi_windup, smaller, pqdownheap, compress_block, build_tree, scan_tree, send_tree, build_bl_tree, send_all_trees, detect_data_type, static_init_done, _tr_init$1, _tr_stored_block$1, _tr_align$1, _tr_flush_block$1, _tr_tally$1, _tr_init_1, _tr_stored_block_1, _tr_flush_block_1, _tr_tally_1, _tr_align_1, trees, adler32, adler32_1, makeTable, crcTable, crc32, crc32_1, messages, constants$2, _tr_init, _tr_stored_block, _tr_flush_block, _tr_tally, _tr_align, Z_NO_FLUSH$2, Z_PARTIAL_FLUSH, Z_FULL_FLUSH$1, Z_FINISH$3, Z_BLOCK$1, Z_OK$3, Z_STREAM_END$3, Z_STREAM_ERROR$2, Z_DATA_ERROR$2, Z_BUF_ERROR$1, Z_DEFAULT_COMPRESSION$1, Z_FILTERED, Z_HUFFMAN_ONLY, Z_RLE, Z_FIXED, Z_DEFAULT_STRATEGY$1, Z_UNKNOWN, Z_DEFLATED$2, MAX_MEM_LEVEL, MAX_WBITS$1, DEF_MEM_LEVEL, LENGTH_CODES, LITERALS, L_CODES, D_CODES, BL_CODES, HEAP_SIZE, MAX_BITS, MIN_MATCH, MAX_MATCH, MIN_LOOKAHEAD, PRESET_DICT, INIT_STATE, GZIP_STATE, EXTRA_STATE, NAME_STATE, COMMENT_STATE, HCRC_STATE, BUSY_STATE, FINISH_STATE, BS_NEED_MORE, BS_BLOCK_DONE, BS_FINISH_STARTED, BS_FINISH_DONE, OS_CODE, err, rank, zero, slide_hash, HASH_ZLIB, HASH, flush_pending, flush_block_only, put_byte, putShortMSB, read_buf, longest_match, fill_window, deflate_stored, deflate_fast, deflate_slow, deflate_rle, deflate_huff, configuration_table, lm_init, deflateStateCheck, deflateResetKeep, deflateReset, deflateSetHeader, deflateInit2, deflateInit, deflate$2, deflateEnd, deflateSetDictionary, deflateInit_1, deflateInit2_1, deflateReset_1, deflateResetKeep_1, deflateSetHeader_1, deflate_2$1, deflateEnd_1, deflateSetDictionary_1, deflateInfo, deflate_1$2, _has, assign, flattenChunks, common, STR_APPLY_UIA_OK, _utf8len, string2buf, buf2binstring, buf2string, utf8border, strings, zstream, toString$1, Z_NO_FLUSH$1, Z_SYNC_FLUSH, Z_FULL_FLUSH, Z_FINISH$2, Z_OK$2, Z_STREAM_END$2, Z_DEFAULT_COMPRESSION, Z_DEFAULT_STRATEGY, Z_DEFLATED$1, Deflate_1$1, deflate_2, deflateRaw_1$1, gzip_1$1, constants$1, deflate_1$1, BAD$1, TYPE$1, inffast, MAXBITS, ENOUGH_LENS$1, ENOUGH_DISTS$1, CODES$1, LENS$1, DISTS$1, lbase, lext, dbase, dext, inflate_table, inftrees, CODES, LENS, DISTS, Z_FINISH$1, Z_BLOCK, Z_TREES, Z_OK$1, Z_STREAM_END$1, Z_NEED_DICT$1, Z_STREAM_ERROR$1, Z_DATA_ERROR$1, Z_MEM_ERROR$1, Z_BUF_ERROR, Z_DEFLATED, HEAD, FLAGS, TIME, OS, EXLEN, EXTRA, NAME, COMMENT, HCRC, DICTID, DICT, TYPE, TYPEDO, STORED, COPY_, COPY, TABLE, LENLENS, CODELENS, LEN_, LEN, LENEXT, DIST, DISTEXT, MATCH, LIT, CHECK, LENGTH, DONE, BAD, MEM, SYNC, ENOUGH_LENS, ENOUGH_DISTS, MAX_WBITS, DEF_WBITS, zswap32, inflateStateCheck, inflateResetKeep, inflateReset, inflateReset2, inflateInit2, inflateInit, virgin, lenfix, distfix, fixedtables, updatewindow, inflate$2, inflateEnd, inflateGetHeader, inflateSetDictionary, inflateReset_1, inflateReset2_1, inflateResetKeep_1, inflateInit_1, inflateInit2_1, inflate_2$1, inflateEnd_1, inflateGetHeader_1, inflateSetDictionary_1, inflateInfo, inflate_1$2, gzheader, toString, Z_NO_FLUSH, Z_FINISH, Z_OK, Z_STREAM_END, Z_NEED_DICT, Z_STREAM_ERROR, Z_DATA_ERROR, Z_MEM_ERROR, Inflate_1$1, inflate_2, inflateRaw_1$1, ungzip$1, constants, inflate_1$1, Deflate, deflate, deflateRaw, gzip, Inflate, inflate, inflateRaw, ungzip, gzip_1;
1830
1830
  var init_pako_esm = __esm({
1831
- "node_modules/.pnpm/pako@2.1.0/node_modules/pako/dist/pako.esm.mjs"() {
1831
+ "node_modules/pako/dist/pako.esm.mjs"() {
1832
1832
  "use strict";
1833
1833
  Z_FIXED$1 = 4;
1834
1834
  Z_BINARY = 0;
@@ -5709,7 +5709,7 @@ var init_pako_esm = __esm({
5709
5709
  }
5710
5710
  });
5711
5711
 
5712
- // node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/compress.ts
5712
+ // node_modules/@pmate/utils/src/compress.ts
5713
5713
  async function gzipEncodeBlob(input) {
5714
5714
  const array = await toUint8Array(input);
5715
5715
  return gzip_1(array);
@@ -5735,16 +5735,16 @@ async function toUint8Array(input) {
5735
5735
  throw new TypeError("Unsupported input type for gzipEncodeBlob");
5736
5736
  }
5737
5737
  var init_compress = __esm({
5738
- "node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/compress.ts"() {
5738
+ "node_modules/@pmate/utils/src/compress.ts"() {
5739
5739
  "use strict";
5740
5740
  init_pako_esm();
5741
5741
  }
5742
5742
  });
5743
5743
 
5744
- // node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/AsyncStream.ts
5744
+ // node_modules/@pmate/utils/src/AsyncStream.ts
5745
5745
  var AsyncStream;
5746
5746
  var init_AsyncStream = __esm({
5747
- "node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/AsyncStream.ts"() {
5747
+ "node_modules/@pmate/utils/src/AsyncStream.ts"() {
5748
5748
  "use strict";
5749
5749
  AsyncStream = class _AsyncStream {
5750
5750
  constructor() {
@@ -5932,10 +5932,10 @@ var init_AsyncStream = __esm({
5932
5932
  }
5933
5933
  });
5934
5934
 
5935
- // node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/uniqHash.ts
5935
+ // node_modules/@pmate/utils/src/uniqHash.ts
5936
5936
  var import_js_sha32, sortKeys, uniqHash;
5937
5937
  var init_uniqHash = __esm({
5938
- "node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/uniqHash.ts"() {
5938
+ "node_modules/@pmate/utils/src/uniqHash.ts"() {
5939
5939
  "use strict";
5940
5940
  init_src();
5941
5941
  import_js_sha32 = __toESM(require_sha3(), 1);
@@ -5965,33 +5965,33 @@ var init_uniqHash = __esm({
5965
5965
  }
5966
5966
  });
5967
5967
 
5968
- // node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/createMsg.ts
5968
+ // node_modules/@pmate/utils/src/createMsg.ts
5969
5969
  var init_createMsg = __esm({
5970
- "node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/createMsg.ts"() {
5970
+ "node_modules/@pmate/utils/src/createMsg.ts"() {
5971
5971
  "use strict";
5972
5972
  init_src();
5973
5973
  init_uniqHash();
5974
5974
  }
5975
5975
  });
5976
5976
 
5977
- // node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/detectText.ts
5977
+ // node_modules/@pmate/utils/src/detectText.ts
5978
5978
  var init_detectText = __esm({
5979
- "node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/detectText.ts"() {
5979
+ "node_modules/@pmate/utils/src/detectText.ts"() {
5980
5980
  "use strict";
5981
5981
  }
5982
5982
  });
5983
5983
 
5984
- // node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/Emitter.ts
5984
+ // node_modules/@pmate/utils/src/Emitter.ts
5985
5985
  var init_Emitter = __esm({
5986
- "node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/Emitter.ts"() {
5986
+ "node_modules/@pmate/utils/src/Emitter.ts"() {
5987
5987
  "use strict";
5988
5988
  }
5989
5989
  });
5990
5990
 
5991
- // node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/EmitterV2.ts
5991
+ // node_modules/@pmate/utils/src/EmitterV2.ts
5992
5992
  var EmitterV2;
5993
5993
  var init_EmitterV2 = __esm({
5994
- "node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/EmitterV2.ts"() {
5994
+ "node_modules/@pmate/utils/src/EmitterV2.ts"() {
5995
5995
  "use strict";
5996
5996
  EmitterV2 = class {
5997
5997
  constructor() {
@@ -6047,39 +6047,39 @@ var init_EmitterV2 = __esm({
6047
6047
  }
6048
6048
  });
6049
6049
 
6050
- // node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/format/formatTime.ts
6050
+ // node_modules/@pmate/utils/src/format/formatTime.ts
6051
6051
  var init_formatTime = __esm({
6052
- "node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/format/formatTime.ts"() {
6052
+ "node_modules/@pmate/utils/src/format/formatTime.ts"() {
6053
6053
  "use strict";
6054
6054
  }
6055
6055
  });
6056
6056
 
6057
- // node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/format/index.ts
6057
+ // node_modules/@pmate/utils/src/format/index.ts
6058
6058
  var init_format = __esm({
6059
- "node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/format/index.ts"() {
6059
+ "node_modules/@pmate/utils/src/format/index.ts"() {
6060
6060
  "use strict";
6061
6061
  init_formatTime();
6062
6062
  }
6063
6063
  });
6064
6064
 
6065
- // node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/isVolcabulary.ts
6065
+ // node_modules/@pmate/utils/src/isVolcabulary.ts
6066
6066
  var init_isVolcabulary = __esm({
6067
- "node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/isVolcabulary.ts"() {
6067
+ "node_modules/@pmate/utils/src/isVolcabulary.ts"() {
6068
6068
  "use strict";
6069
6069
  }
6070
6070
  });
6071
6071
 
6072
- // node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/Loadable.ts
6072
+ // node_modules/@pmate/utils/src/Loadable.ts
6073
6073
  var init_Loadable = __esm({
6074
- "node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/Loadable.ts"() {
6074
+ "node_modules/@pmate/utils/src/Loadable.ts"() {
6075
6075
  "use strict";
6076
6076
  }
6077
6077
  });
6078
6078
 
6079
- // node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/Logger.ts
6079
+ // node_modules/@pmate/utils/src/Logger.ts
6080
6080
  var Logger;
6081
6081
  var init_Logger = __esm({
6082
- "node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/Logger.ts"() {
6082
+ "node_modules/@pmate/utils/src/Logger.ts"() {
6083
6083
  "use strict";
6084
6084
  Logger = class _Logger {
6085
6085
  constructor(name) {
@@ -6104,21 +6104,21 @@ var init_Logger = __esm({
6104
6104
  }
6105
6105
  });
6106
6106
 
6107
- // node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/mapToReadingBook.ts
6107
+ // node_modules/@pmate/utils/src/mapToReadingBook.ts
6108
6108
  var init_mapToReadingBook = __esm({
6109
- "node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/mapToReadingBook.ts"() {
6109
+ "node_modules/@pmate/utils/src/mapToReadingBook.ts"() {
6110
6110
  "use strict";
6111
6111
  }
6112
6112
  });
6113
6113
 
6114
- // node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/memoize.ts
6114
+ // node_modules/@pmate/utils/src/memoize.ts
6115
6115
  var init_memoize = __esm({
6116
- "node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/memoize.ts"() {
6116
+ "node_modules/@pmate/utils/src/memoize.ts"() {
6117
6117
  "use strict";
6118
6118
  }
6119
6119
  });
6120
6120
 
6121
- // node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/utils/utf8.mjs
6121
+ // node_modules/@msgpack/msgpack/dist.esm/utils/utf8.mjs
6122
6122
  function utf8Count(str) {
6123
6123
  const strLength = str.length;
6124
6124
  let byteLength = 0;
@@ -6245,7 +6245,7 @@ function utf8Decode(bytes, inputOffset, byteLength) {
6245
6245
  }
6246
6246
  var sharedTextEncoder, TEXT_ENCODER_THRESHOLD, CHUNK_SIZE, sharedTextDecoder, TEXT_DECODER_THRESHOLD;
6247
6247
  var init_utf8 = __esm({
6248
- "node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/utils/utf8.mjs"() {
6248
+ "node_modules/@msgpack/msgpack/dist.esm/utils/utf8.mjs"() {
6249
6249
  "use strict";
6250
6250
  sharedTextEncoder = new TextEncoder();
6251
6251
  TEXT_ENCODER_THRESHOLD = 50;
@@ -6255,10 +6255,10 @@ var init_utf8 = __esm({
6255
6255
  }
6256
6256
  });
6257
6257
 
6258
- // node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/ExtData.mjs
6258
+ // node_modules/@msgpack/msgpack/dist.esm/ExtData.mjs
6259
6259
  var ExtData;
6260
6260
  var init_ExtData = __esm({
6261
- "node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/ExtData.mjs"() {
6261
+ "node_modules/@msgpack/msgpack/dist.esm/ExtData.mjs"() {
6262
6262
  "use strict";
6263
6263
  ExtData = class {
6264
6264
  type;
@@ -6271,10 +6271,10 @@ var init_ExtData = __esm({
6271
6271
  }
6272
6272
  });
6273
6273
 
6274
- // node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/DecodeError.mjs
6274
+ // node_modules/@msgpack/msgpack/dist.esm/DecodeError.mjs
6275
6275
  var DecodeError;
6276
6276
  var init_DecodeError = __esm({
6277
- "node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/DecodeError.mjs"() {
6277
+ "node_modules/@msgpack/msgpack/dist.esm/DecodeError.mjs"() {
6278
6278
  "use strict";
6279
6279
  DecodeError = class _DecodeError extends Error {
6280
6280
  constructor(message) {
@@ -6291,7 +6291,7 @@ var init_DecodeError = __esm({
6291
6291
  }
6292
6292
  });
6293
6293
 
6294
- // node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/utils/int.mjs
6294
+ // node_modules/@msgpack/msgpack/dist.esm/utils/int.mjs
6295
6295
  function setUint64(view, offset, value) {
6296
6296
  const high = value / 4294967296;
6297
6297
  const low = value;
@@ -6316,13 +6316,13 @@ function getUint64(view, offset) {
6316
6316
  }
6317
6317
  var UINT32_MAX;
6318
6318
  var init_int = __esm({
6319
- "node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/utils/int.mjs"() {
6319
+ "node_modules/@msgpack/msgpack/dist.esm/utils/int.mjs"() {
6320
6320
  "use strict";
6321
6321
  UINT32_MAX = 4294967295;
6322
6322
  }
6323
6323
  });
6324
6324
 
6325
- // node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/timestamp.mjs
6325
+ // node_modules/@msgpack/msgpack/dist.esm/timestamp.mjs
6326
6326
  function encodeTimeSpecToTimestamp({ sec, nsec }) {
6327
6327
  if (sec >= 0 && nsec >= 0 && sec <= TIMESTAMP64_MAX_SEC) {
6328
6328
  if (nsec === 0 && sec <= TIMESTAMP32_MAX_SEC) {
@@ -6395,7 +6395,7 @@ function decodeTimestampExtension(data) {
6395
6395
  }
6396
6396
  var EXT_TIMESTAMP, TIMESTAMP32_MAX_SEC, TIMESTAMP64_MAX_SEC, timestampExtension;
6397
6397
  var init_timestamp = __esm({
6398
- "node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/timestamp.mjs"() {
6398
+ "node_modules/@msgpack/msgpack/dist.esm/timestamp.mjs"() {
6399
6399
  "use strict";
6400
6400
  init_DecodeError();
6401
6401
  init_int();
@@ -6410,10 +6410,10 @@ var init_timestamp = __esm({
6410
6410
  }
6411
6411
  });
6412
6412
 
6413
- // node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/ExtensionCodec.mjs
6413
+ // node_modules/@msgpack/msgpack/dist.esm/ExtensionCodec.mjs
6414
6414
  var ExtensionCodec;
6415
6415
  var init_ExtensionCodec = __esm({
6416
- "node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/ExtensionCodec.mjs"() {
6416
+ "node_modules/@msgpack/msgpack/dist.esm/ExtensionCodec.mjs"() {
6417
6417
  "use strict";
6418
6418
  init_ExtData();
6419
6419
  init_timestamp();
@@ -6480,7 +6480,7 @@ var init_ExtensionCodec = __esm({
6480
6480
  }
6481
6481
  });
6482
6482
 
6483
- // node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/utils/typedArrays.mjs
6483
+ // node_modules/@msgpack/msgpack/dist.esm/utils/typedArrays.mjs
6484
6484
  function isArrayBufferLike(buffer) {
6485
6485
  return buffer instanceof ArrayBuffer || typeof SharedArrayBuffer !== "undefined" && buffer instanceof SharedArrayBuffer;
6486
6486
  }
@@ -6496,15 +6496,15 @@ function ensureUint8Array(buffer) {
6496
6496
  }
6497
6497
  }
6498
6498
  var init_typedArrays = __esm({
6499
- "node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/utils/typedArrays.mjs"() {
6499
+ "node_modules/@msgpack/msgpack/dist.esm/utils/typedArrays.mjs"() {
6500
6500
  "use strict";
6501
6501
  }
6502
6502
  });
6503
6503
 
6504
- // node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/Encoder.mjs
6504
+ // node_modules/@msgpack/msgpack/dist.esm/Encoder.mjs
6505
6505
  var DEFAULT_MAX_DEPTH, DEFAULT_INITIAL_BUFFER_SIZE, Encoder;
6506
6506
  var init_Encoder = __esm({
6507
- "node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/Encoder.mjs"() {
6507
+ "node_modules/@msgpack/msgpack/dist.esm/Encoder.mjs"() {
6508
6508
  "use strict";
6509
6509
  init_utf8();
6510
6510
  init_ExtensionCodec();
@@ -6914,32 +6914,32 @@ var init_Encoder = __esm({
6914
6914
  }
6915
6915
  });
6916
6916
 
6917
- // node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/encode.mjs
6917
+ // node_modules/@msgpack/msgpack/dist.esm/encode.mjs
6918
6918
  function encode(value, options) {
6919
6919
  const encoder2 = new Encoder(options);
6920
6920
  return encoder2.encodeSharedRef(value);
6921
6921
  }
6922
6922
  var init_encode = __esm({
6923
- "node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/encode.mjs"() {
6923
+ "node_modules/@msgpack/msgpack/dist.esm/encode.mjs"() {
6924
6924
  "use strict";
6925
6925
  init_Encoder();
6926
6926
  }
6927
6927
  });
6928
6928
 
6929
- // node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/utils/prettyByte.mjs
6929
+ // node_modules/@msgpack/msgpack/dist.esm/utils/prettyByte.mjs
6930
6930
  function prettyByte(byte) {
6931
6931
  return `${byte < 0 ? "-" : ""}0x${Math.abs(byte).toString(16).padStart(2, "0")}`;
6932
6932
  }
6933
6933
  var init_prettyByte = __esm({
6934
- "node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/utils/prettyByte.mjs"() {
6934
+ "node_modules/@msgpack/msgpack/dist.esm/utils/prettyByte.mjs"() {
6935
6935
  "use strict";
6936
6936
  }
6937
6937
  });
6938
6938
 
6939
- // node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/CachedKeyDecoder.mjs
6939
+ // node_modules/@msgpack/msgpack/dist.esm/CachedKeyDecoder.mjs
6940
6940
  var DEFAULT_MAX_KEY_LENGTH, DEFAULT_MAX_LENGTH_PER_KEY, CachedKeyDecoder;
6941
6941
  var init_CachedKeyDecoder = __esm({
6942
- "node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/CachedKeyDecoder.mjs"() {
6942
+ "node_modules/@msgpack/msgpack/dist.esm/CachedKeyDecoder.mjs"() {
6943
6943
  "use strict";
6944
6944
  init_utf8();
6945
6945
  DEFAULT_MAX_KEY_LENGTH = 16;
@@ -6999,10 +6999,10 @@ var init_CachedKeyDecoder = __esm({
6999
6999
  }
7000
7000
  });
7001
7001
 
7002
- // node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/Decoder.mjs
7002
+ // node_modules/@msgpack/msgpack/dist.esm/Decoder.mjs
7003
7003
  var STATE_ARRAY, STATE_MAP_KEY, STATE_MAP_VALUE, mapKeyConverter, StackPool, HEAD_BYTE_REQUIRED, EMPTY_VIEW, EMPTY_BYTES, MORE_DATA, sharedCachedKeyDecoder, Decoder;
7004
7004
  var init_Decoder = __esm({
7005
- "node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/Decoder.mjs"() {
7005
+ "node_modules/@msgpack/msgpack/dist.esm/Decoder.mjs"() {
7006
7006
  "use strict";
7007
7007
  init_prettyByte();
7008
7008
  init_ExtensionCodec();
@@ -7640,31 +7640,31 @@ var init_Decoder = __esm({
7640
7640
  }
7641
7641
  });
7642
7642
 
7643
- // node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/decode.mjs
7643
+ // node_modules/@msgpack/msgpack/dist.esm/decode.mjs
7644
7644
  function decode(buffer, options) {
7645
7645
  const decoder = new Decoder(options);
7646
7646
  return decoder.decode(buffer);
7647
7647
  }
7648
7648
  var init_decode = __esm({
7649
- "node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/decode.mjs"() {
7649
+ "node_modules/@msgpack/msgpack/dist.esm/decode.mjs"() {
7650
7650
  "use strict";
7651
7651
  init_Decoder();
7652
7652
  }
7653
7653
  });
7654
7654
 
7655
- // node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/index.mjs
7655
+ // node_modules/@msgpack/msgpack/dist.esm/index.mjs
7656
7656
  var init_dist = __esm({
7657
- "node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/index.mjs"() {
7657
+ "node_modules/@msgpack/msgpack/dist.esm/index.mjs"() {
7658
7658
  "use strict";
7659
7659
  init_encode();
7660
7660
  init_decode();
7661
7661
  }
7662
7662
  });
7663
7663
 
7664
- // node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/Msg.ts
7664
+ // node_modules/@pmate/utils/src/Msg.ts
7665
7665
  var encoder, Msg;
7666
7666
  var init_Msg = __esm({
7667
- "node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/Msg.ts"() {
7667
+ "node_modules/@pmate/utils/src/Msg.ts"() {
7668
7668
  "use strict";
7669
7669
  init_dist();
7670
7670
  init_src();
@@ -7792,106 +7792,106 @@ var init_Msg = __esm({
7792
7792
  }
7793
7793
  });
7794
7794
 
7795
- // node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/normalize.ts
7795
+ // node_modules/@pmate/utils/src/normalize.ts
7796
7796
  var init_normalize = __esm({
7797
- "node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/normalize.ts"() {
7797
+ "node_modules/@pmate/utils/src/normalize.ts"() {
7798
7798
  "use strict";
7799
7799
  }
7800
7800
  });
7801
7801
 
7802
- // node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/pageURL.ts
7802
+ // node_modules/@pmate/utils/src/pageURL.ts
7803
7803
  var init_pageURL = __esm({
7804
- "node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/pageURL.ts"() {
7804
+ "node_modules/@pmate/utils/src/pageURL.ts"() {
7805
7805
  "use strict";
7806
7806
  }
7807
7807
  });
7808
7808
 
7809
- // node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/PromiseQueue.ts
7809
+ // node_modules/@pmate/utils/src/PromiseQueue.ts
7810
7810
  var init_PromiseQueue = __esm({
7811
- "node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/PromiseQueue.ts"() {
7811
+ "node_modules/@pmate/utils/src/PromiseQueue.ts"() {
7812
7812
  "use strict";
7813
7813
  }
7814
7814
  });
7815
7815
 
7816
- // node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/resourceKey.ts
7816
+ // node_modules/@pmate/utils/src/resourceKey.ts
7817
7817
  var import_js_sha33;
7818
7818
  var init_resourceKey = __esm({
7819
- "node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/resourceKey.ts"() {
7819
+ "node_modules/@pmate/utils/src/resourceKey.ts"() {
7820
7820
  "use strict";
7821
7821
  import_js_sha33 = __toESM(require_sha3(), 1);
7822
7822
  }
7823
7823
  });
7824
7824
 
7825
- // node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/SelectionHelper.ts
7825
+ // node_modules/@pmate/utils/src/SelectionHelper.ts
7826
7826
  var init_SelectionHelper = __esm({
7827
- "node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/SelectionHelper.ts"() {
7827
+ "node_modules/@pmate/utils/src/SelectionHelper.ts"() {
7828
7828
  "use strict";
7829
7829
  }
7830
7830
  });
7831
7831
 
7832
- // node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/setMinus.ts
7832
+ // node_modules/@pmate/utils/src/setMinus.ts
7833
7833
  var init_setMinus = __esm({
7834
- "node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/setMinus.ts"() {
7834
+ "node_modules/@pmate/utils/src/setMinus.ts"() {
7835
7835
  "use strict";
7836
7836
  }
7837
7837
  });
7838
7838
 
7839
- // node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/sha1Hash.ts
7839
+ // node_modules/@pmate/utils/src/sha1Hash.ts
7840
7840
  var init_sha1Hash = __esm({
7841
- "node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/sha1Hash.ts"() {
7841
+ "node_modules/@pmate/utils/src/sha1Hash.ts"() {
7842
7842
  "use strict";
7843
7843
  }
7844
7844
  });
7845
7845
 
7846
- // node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/TaskWaiter.ts
7846
+ // node_modules/@pmate/utils/src/TaskWaiter.ts
7847
7847
  var init_TaskWaiter = __esm({
7848
- "node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/TaskWaiter.ts"() {
7848
+ "node_modules/@pmate/utils/src/TaskWaiter.ts"() {
7849
7849
  "use strict";
7850
7850
  init_src3();
7851
7851
  }
7852
7852
  });
7853
7853
 
7854
- // node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/toSentenceAnalyze.ts
7854
+ // node_modules/@pmate/utils/src/toSentenceAnalyze.ts
7855
7855
  var init_toSentenceAnalyze = __esm({
7856
- "node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/toSentenceAnalyze.ts"() {
7856
+ "node_modules/@pmate/utils/src/toSentenceAnalyze.ts"() {
7857
7857
  "use strict";
7858
7858
  }
7859
7859
  });
7860
7860
 
7861
- // node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/txtBookToJson.ts
7861
+ // node_modules/@pmate/utils/src/txtBookToJson.ts
7862
7862
  var init_txtBookToJson = __esm({
7863
- "node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/txtBookToJson.ts"() {
7863
+ "node_modules/@pmate/utils/src/txtBookToJson.ts"() {
7864
7864
  "use strict";
7865
7865
  init_src2();
7866
7866
  }
7867
7867
  });
7868
7868
 
7869
- // node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/VocabularyMap.ts
7869
+ // node_modules/@pmate/utils/src/VocabularyMap.ts
7870
7870
  var init_VocabularyMap = __esm({
7871
- "node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/VocabularyMap.ts"() {
7871
+ "node_modules/@pmate/utils/src/VocabularyMap.ts"() {
7872
7872
  "use strict";
7873
7873
  init_Emitter();
7874
7874
  }
7875
7875
  });
7876
7876
 
7877
- // node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/wait.ts
7877
+ // node_modules/@pmate/utils/src/wait.ts
7878
7878
  var init_wait = __esm({
7879
- "node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/wait.ts"() {
7879
+ "node_modules/@pmate/utils/src/wait.ts"() {
7880
7880
  "use strict";
7881
7881
  }
7882
7882
  });
7883
7883
 
7884
- // node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/wordCount.ts
7884
+ // node_modules/@pmate/utils/src/wordCount.ts
7885
7885
  var init_wordCount = __esm({
7886
- "node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/wordCount.ts"() {
7886
+ "node_modules/@pmate/utils/src/wordCount.ts"() {
7887
7887
  "use strict";
7888
7888
  }
7889
7889
  });
7890
7890
 
7891
- // node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/websocket/WebsocketHeartbeat.ts
7891
+ // node_modules/@pmate/utils/src/websocket/WebsocketHeartbeat.ts
7892
7892
  var logger, WebsocketHeartbeat;
7893
7893
  var init_WebsocketHeartbeat = __esm({
7894
- "node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/websocket/WebsocketHeartbeat.ts"() {
7894
+ "node_modules/@pmate/utils/src/websocket/WebsocketHeartbeat.ts"() {
7895
7895
  "use strict";
7896
7896
  init_src();
7897
7897
  init_Logger();
@@ -7933,10 +7933,10 @@ var init_WebsocketHeartbeat = __esm({
7933
7933
  }
7934
7934
  });
7935
7935
 
7936
- // node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/websocket/WebsocketClient.ts
7936
+ // node_modules/@pmate/utils/src/websocket/WebsocketClient.ts
7937
7937
  var logger2;
7938
7938
  var init_WebsocketClient = __esm({
7939
- "node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/websocket/WebsocketClient.ts"() {
7939
+ "node_modules/@pmate/utils/src/websocket/WebsocketClient.ts"() {
7940
7940
  "use strict";
7941
7941
  init_src();
7942
7942
  init_Emitter();
@@ -7947,7 +7947,7 @@ var init_WebsocketClient = __esm({
7947
7947
  }
7948
7948
  });
7949
7949
 
7950
- // node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/websocket/WebsocketClientV2.ts
7950
+ // node_modules/@pmate/utils/src/websocket/WebsocketClientV2.ts
7951
7951
  function isEventLike(value) {
7952
7952
  return typeof value === "object" && value !== null && "type" in value && typeof value.type === "string";
7953
7953
  }
@@ -7956,7 +7956,7 @@ function isCloseEvent(value) {
7956
7956
  }
7957
7957
  var logger3, WebsocketClientV2;
7958
7958
  var init_WebsocketClientV2 = __esm({
7959
- "node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/websocket/WebsocketClientV2.ts"() {
7959
+ "node_modules/@pmate/utils/src/websocket/WebsocketClientV2.ts"() {
7960
7960
  "use strict";
7961
7961
  init_src();
7962
7962
  init_AsyncStream();
@@ -8203,10 +8203,10 @@ var init_WebsocketClientV2 = __esm({
8203
8203
  }
8204
8204
  });
8205
8205
 
8206
- // node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/websocket/H3Client.ts
8206
+ // node_modules/@pmate/utils/src/websocket/H3Client.ts
8207
8207
  var logger4;
8208
8208
  var init_H3Client = __esm({
8209
- "node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/websocket/H3Client.ts"() {
8209
+ "node_modules/@pmate/utils/src/websocket/H3Client.ts"() {
8210
8210
  "use strict";
8211
8211
  init_Emitter();
8212
8212
  init_Logger();
@@ -8216,9 +8216,9 @@ var init_H3Client = __esm({
8216
8216
  }
8217
8217
  });
8218
8218
 
8219
- // node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/websocket/index.ts
8219
+ // node_modules/@pmate/utils/src/websocket/index.ts
8220
8220
  var init_websocket = __esm({
8221
- "node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/websocket/index.ts"() {
8221
+ "node_modules/@pmate/utils/src/websocket/index.ts"() {
8222
8222
  "use strict";
8223
8223
  init_WebsocketClient();
8224
8224
  init_WebsocketClientV2();
@@ -8226,9 +8226,9 @@ var init_websocket = __esm({
8226
8226
  }
8227
8227
  });
8228
8228
 
8229
- // node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/index.ts
8229
+ // node_modules/@pmate/utils/src/index.ts
8230
8230
  var init_src3 = __esm({
8231
- "node_modules/.pnpm/@pmate+utils@1.1.2/node_modules/@pmate/utils/src/index.ts"() {
8231
+ "node_modules/@pmate/utils/src/index.ts"() {
8232
8232
  "use strict";
8233
8233
  init_base64();
8234
8234
  init_batchResolve();
@@ -8268,7 +8268,7 @@ var init_src3 = __esm({
8268
8268
  }
8269
8269
  });
8270
8270
 
8271
- // node_modules/.pnpm/@pmate+agent-sdk@1.1.4/node_modules/@pmate/agent-sdk/dist/debug.js
8271
+ // node_modules/@pmate/agent-sdk/dist/debug.js
8272
8272
  function isDebugEnabled() {
8273
8273
  return process.env.DEBUG === "1";
8274
8274
  }
@@ -8283,15 +8283,15 @@ function debugLog(message, data) {
8283
8283
  console.log(message, data);
8284
8284
  }
8285
8285
  var init_debug = __esm({
8286
- "node_modules/.pnpm/@pmate+agent-sdk@1.1.4/node_modules/@pmate/agent-sdk/dist/debug.js"() {
8286
+ "node_modules/@pmate/agent-sdk/dist/debug.js"() {
8287
8287
  "use strict";
8288
8288
  }
8289
8289
  });
8290
8290
 
8291
- // node_modules/.pnpm/@pmate+agent-sdk@1.1.4/node_modules/@pmate/agent-sdk/dist/AgentTaskManager.js
8291
+ // node_modules/@pmate/agent-sdk/dist/AgentTaskManager.js
8292
8292
  var AgentTaskManager;
8293
8293
  var init_AgentTaskManager = __esm({
8294
- "node_modules/.pnpm/@pmate+agent-sdk@1.1.4/node_modules/@pmate/agent-sdk/dist/AgentTaskManager.js"() {
8294
+ "node_modules/@pmate/agent-sdk/dist/AgentTaskManager.js"() {
8295
8295
  "use strict";
8296
8296
  init_src3();
8297
8297
  init_debug();
@@ -8460,7 +8460,7 @@ var init_AgentTaskManager = __esm({
8460
8460
  }
8461
8461
  });
8462
8462
 
8463
- // node_modules/.pnpm/@pmate+agent-sdk@1.1.4/node_modules/@pmate/agent-sdk/dist/AgentClient.js
8463
+ // node_modules/@pmate/agent-sdk/dist/AgentClient.js
8464
8464
  function createAgentRequestBody(payload) {
8465
8465
  return {
8466
8466
  kind: "request",
@@ -8469,7 +8469,7 @@ function createAgentRequestBody(payload) {
8469
8469
  }
8470
8470
  var logger5, DEFAULT_TIMEOUT_MS, DEFAULT_STREAM_TIMEOUT_MS, DEFAULT_MIN_CHUNK_SIZE_BYTES, AgentClient;
8471
8471
  var init_AgentClient = __esm({
8472
- "node_modules/.pnpm/@pmate+agent-sdk@1.1.4/node_modules/@pmate/agent-sdk/dist/AgentClient.js"() {
8472
+ "node_modules/@pmate/agent-sdk/dist/AgentClient.js"() {
8473
8473
  "use strict";
8474
8474
  init_src();
8475
8475
  init_src3();
@@ -8842,25 +8842,25 @@ var init_AgentClient = __esm({
8842
8842
  }
8843
8843
  });
8844
8844
 
8845
- // node_modules/.pnpm/@pmate+agent-sdk@1.1.4/node_modules/@pmate/agent-sdk/dist/AgentRuntime.js
8845
+ // node_modules/@pmate/agent-sdk/dist/AgentRuntime.js
8846
8846
  var init_AgentRuntime = __esm({
8847
- "node_modules/.pnpm/@pmate+agent-sdk@1.1.4/node_modules/@pmate/agent-sdk/dist/AgentRuntime.js"() {
8847
+ "node_modules/@pmate/agent-sdk/dist/AgentRuntime.js"() {
8848
8848
  "use strict";
8849
8849
  init_src();
8850
8850
  init_src3();
8851
8851
  }
8852
8852
  });
8853
8853
 
8854
- // node_modules/.pnpm/@pmate+agent-sdk@1.1.4/node_modules/@pmate/agent-sdk/dist/PromptTaskContext.js
8854
+ // node_modules/@pmate/agent-sdk/dist/PromptTaskContext.js
8855
8855
  var init_PromptTaskContext = __esm({
8856
- "node_modules/.pnpm/@pmate+agent-sdk@1.1.4/node_modules/@pmate/agent-sdk/dist/PromptTaskContext.js"() {
8856
+ "node_modules/@pmate/agent-sdk/dist/PromptTaskContext.js"() {
8857
8857
  "use strict";
8858
8858
  }
8859
8859
  });
8860
8860
 
8861
- // node_modules/.pnpm/@pmate+agent-sdk@1.1.4/node_modules/@pmate/agent-sdk/dist/PromptAgent.js
8861
+ // node_modules/@pmate/agent-sdk/dist/PromptAgent.js
8862
8862
  var init_PromptAgent = __esm({
8863
- "node_modules/.pnpm/@pmate+agent-sdk@1.1.4/node_modules/@pmate/agent-sdk/dist/PromptAgent.js"() {
8863
+ "node_modules/@pmate/agent-sdk/dist/PromptAgent.js"() {
8864
8864
  "use strict";
8865
8865
  init_src();
8866
8866
  init_src3();
@@ -8870,16 +8870,16 @@ var init_PromptAgent = __esm({
8870
8870
  }
8871
8871
  });
8872
8872
 
8873
- // node_modules/.pnpm/@pmate+agent-sdk@1.1.4/node_modules/@pmate/agent-sdk/dist/StreamTaskContext.js
8873
+ // node_modules/@pmate/agent-sdk/dist/StreamTaskContext.js
8874
8874
  var init_StreamTaskContext = __esm({
8875
- "node_modules/.pnpm/@pmate+agent-sdk@1.1.4/node_modules/@pmate/agent-sdk/dist/StreamTaskContext.js"() {
8875
+ "node_modules/@pmate/agent-sdk/dist/StreamTaskContext.js"() {
8876
8876
  "use strict";
8877
8877
  }
8878
8878
  });
8879
8879
 
8880
- // node_modules/.pnpm/@pmate+agent-sdk@1.1.4/node_modules/@pmate/agent-sdk/dist/StreamAgent.js
8880
+ // node_modules/@pmate/agent-sdk/dist/StreamAgent.js
8881
8881
  var init_StreamAgent = __esm({
8882
- "node_modules/.pnpm/@pmate+agent-sdk@1.1.4/node_modules/@pmate/agent-sdk/dist/StreamAgent.js"() {
8882
+ "node_modules/@pmate/agent-sdk/dist/StreamAgent.js"() {
8883
8883
  "use strict";
8884
8884
  init_src();
8885
8885
  init_src3();
@@ -8888,16 +8888,16 @@ var init_StreamAgent = __esm({
8888
8888
  }
8889
8889
  });
8890
8890
 
8891
- // node_modules/.pnpm/@pmate+agent-sdk@1.1.4/node_modules/@pmate/agent-sdk/dist/AgentFactory.js
8891
+ // node_modules/@pmate/agent-sdk/dist/AgentFactory.js
8892
8892
  var init_AgentFactory = __esm({
8893
- "node_modules/.pnpm/@pmate+agent-sdk@1.1.4/node_modules/@pmate/agent-sdk/dist/AgentFactory.js"() {
8893
+ "node_modules/@pmate/agent-sdk/dist/AgentFactory.js"() {
8894
8894
  "use strict";
8895
8895
  init_PromptAgent();
8896
8896
  init_StreamAgent();
8897
8897
  }
8898
8898
  });
8899
8899
 
8900
- // node_modules/.pnpm/@pmate+agent-sdk@1.1.4/node_modules/@pmate/agent-sdk/dist/AgentService.js
8900
+ // node_modules/@pmate/agent-sdk/dist/AgentService.js
8901
8901
  function parseAgentId(agentId) {
8902
8902
  const separatorIndex = agentId.indexOf(":");
8903
8903
  if (separatorIndex <= 0 || separatorIndex === agentId.length - 1) {
@@ -8927,7 +8927,7 @@ function trimTrailingSlash(value) {
8927
8927
  }
8928
8928
  var AgentService;
8929
8929
  var init_AgentService = __esm({
8930
- "node_modules/.pnpm/@pmate+agent-sdk@1.1.4/node_modules/@pmate/agent-sdk/dist/AgentService.js"() {
8930
+ "node_modules/@pmate/agent-sdk/dist/AgentService.js"() {
8931
8931
  "use strict";
8932
8932
  AgentService = class {
8933
8933
  constructor(options) {
@@ -8968,9 +8968,9 @@ var init_AgentService = __esm({
8968
8968
  }
8969
8969
  });
8970
8970
 
8971
- // node_modules/.pnpm/@pmate+agent-sdk@1.1.4/node_modules/@pmate/agent-sdk/dist/index.js
8971
+ // node_modules/@pmate/agent-sdk/dist/index.js
8972
8972
  var init_dist2 = __esm({
8973
- "node_modules/.pnpm/@pmate+agent-sdk@1.1.4/node_modules/@pmate/agent-sdk/dist/index.js"() {
8973
+ "node_modules/@pmate/agent-sdk/dist/index.js"() {
8974
8974
  "use strict";
8975
8975
  init_AgentClient();
8976
8976
  init_AgentFactory();
@@ -19840,13 +19840,27 @@ var RoleCommandHandler = class {
19840
19840
 
19841
19841
  // src/commands/AccountCommandHandler.ts
19842
19842
  var import_node_fs19 = require("fs");
19843
+ var import_node_crypto4 = require("crypto");
19843
19844
  var import_node_path24 = __toESM(require("path"));
19844
19845
  init_sessionStore();
19845
19846
  var AccountCommandHandler = class {
19846
19847
  async handle(args) {
19847
- const token = this.readToken();
19848
19848
  switch (args.action) {
19849
+ case "bot-keygen": {
19850
+ const keyFile = this.generateBotKeyFile(args.app, args.name);
19851
+ if (args.out) {
19852
+ const outPath = this.resolveFilePath(args.out);
19853
+ (0, import_node_fs19.writeFileSync)(outPath, JSON.stringify(keyFile, null, 2), { mode: 384 });
19854
+ (0, import_node_fs19.chmodSync)(outPath, 384);
19855
+ ui.success(`Bot key saved to ${outPath}`);
19856
+ }
19857
+ if (args.json || !args.out) {
19858
+ ui.plain(JSON.stringify(keyFile, null, 2));
19859
+ }
19860
+ return;
19861
+ }
19849
19862
  case "list": {
19863
+ const token = this.readToken();
19850
19864
  const baseUrl = this.resolveAuthBaseUrl(args.baseUrl);
19851
19865
  const result = await this.request(
19852
19866
  baseUrl,
@@ -19858,6 +19872,7 @@ var AccountCommandHandler = class {
19858
19872
  return;
19859
19873
  }
19860
19874
  case "app-users": {
19875
+ const token = this.readToken();
19861
19876
  const baseUrl = this.resolveAuthBaseUrl(args.baseUrl);
19862
19877
  const result = await this.request(
19863
19878
  baseUrl,
@@ -19869,6 +19884,7 @@ var AccountCommandHandler = class {
19869
19884
  return;
19870
19885
  }
19871
19886
  case "view": {
19887
+ const token = this.readToken();
19872
19888
  const baseUrl = this.resolveAuthBaseUrl(args.baseUrl);
19873
19889
  const result = await this.request(
19874
19890
  baseUrl,
@@ -19880,6 +19896,7 @@ var AccountCommandHandler = class {
19880
19896
  return;
19881
19897
  }
19882
19898
  case "role-list": {
19899
+ const token = this.readToken();
19883
19900
  const baseUrl = this.resolveAuthBaseUrl(args.baseUrl);
19884
19901
  const items = await this.request(
19885
19902
  baseUrl,
@@ -19891,6 +19908,7 @@ var AccountCommandHandler = class {
19891
19908
  return;
19892
19909
  }
19893
19910
  case "role-add": {
19911
+ const token = this.readToken();
19894
19912
  const baseUrl = this.resolveAuthBaseUrl(args.baseUrl);
19895
19913
  const item = await this.request(
19896
19914
  baseUrl,
@@ -19908,6 +19926,7 @@ var AccountCommandHandler = class {
19908
19926
  return;
19909
19927
  }
19910
19928
  case "role-remove": {
19929
+ const token = this.readToken();
19911
19930
  const baseUrl = this.resolveAuthBaseUrl(args.baseUrl);
19912
19931
  await this.request(
19913
19932
  baseUrl,
@@ -19924,6 +19943,7 @@ var AccountCommandHandler = class {
19924
19943
  return;
19925
19944
  }
19926
19945
  case "visible-app-list": {
19946
+ const token = this.readToken();
19927
19947
  const baseUrl = this.resolveAppsBaseUrl(args.baseUrl);
19928
19948
  const result = await this.request(
19929
19949
  baseUrl,
@@ -19935,6 +19955,7 @@ var AccountCommandHandler = class {
19935
19955
  return;
19936
19956
  }
19937
19957
  case "visible-app-add": {
19958
+ const token = this.readToken();
19938
19959
  const baseUrl = this.resolveAppsBaseUrl(args.baseUrl);
19939
19960
  const item = await this.request(
19940
19961
  baseUrl,
@@ -19947,6 +19968,7 @@ var AccountCommandHandler = class {
19947
19968
  return;
19948
19969
  }
19949
19970
  case "visible-app-remove": {
19971
+ const token = this.readToken();
19950
19972
  const baseUrl = this.resolveAppsBaseUrl(args.baseUrl);
19951
19973
  const result = await this.request(
19952
19974
  baseUrl,
@@ -19961,6 +19983,7 @@ var AccountCommandHandler = class {
19961
19983
  return;
19962
19984
  }
19963
19985
  case "visible-app-set": {
19986
+ const token = this.readToken();
19964
19987
  const baseUrl = this.resolveAppsBaseUrl(args.baseUrl);
19965
19988
  const items = this.resolveVisibleAppsInput(args);
19966
19989
  const result = await this.request(
@@ -19975,6 +19998,7 @@ var AccountCommandHandler = class {
19975
19998
  return;
19976
19999
  }
19977
20000
  case "visible-app-resolve": {
20001
+ const token = this.readToken();
19978
20002
  const baseUrl = this.resolveAppsBaseUrl(args.baseUrl);
19979
20003
  const result = await this.request(
19980
20004
  baseUrl,
@@ -19988,6 +20012,106 @@ var AccountCommandHandler = class {
19988
20012
  }
19989
20013
  return;
19990
20014
  }
20015
+ case "bot-create": {
20016
+ const token = this.readToken();
20017
+ const baseUrl = this.resolveAuthBaseUrl(args.baseUrl);
20018
+ const publicKey = args.publicKey ?? this.readBotKeyFile(args.keyFile, args.app, args.name).publicKey;
20019
+ const bot = await this.request(
20020
+ baseUrl,
20021
+ token,
20022
+ "POST",
20023
+ "/accounts/bots",
20024
+ {
20025
+ app: args.app,
20026
+ name: args.name,
20027
+ publicKey,
20028
+ algorithm: "ed25519"
20029
+ }
20030
+ );
20031
+ ui.success(`Created bot ${bot.credential.app}/${bot.credential.name}`);
20032
+ this.renderJson(bot, args.json);
20033
+ return;
20034
+ }
20035
+ case "bot-view": {
20036
+ const baseUrl = this.resolveAuthBaseUrl(args.baseUrl);
20037
+ const bot = await this.request(
20038
+ baseUrl,
20039
+ void 0,
20040
+ "GET",
20041
+ `/accounts/bots/${encodeURIComponent(args.app)}/${encodeURIComponent(args.name)}`
20042
+ );
20043
+ this.renderBot(bot, args.json);
20044
+ return;
20045
+ }
20046
+ case "bot-list": {
20047
+ const baseUrl = this.resolveAuthBaseUrl(args.baseUrl);
20048
+ const result = await this.request(
20049
+ baseUrl,
20050
+ void 0,
20051
+ "GET",
20052
+ `/accounts/bots?app=${encodeURIComponent(args.app)}`
20053
+ );
20054
+ if (args.json) {
20055
+ this.renderJson(result, true);
20056
+ return;
20057
+ }
20058
+ if (result.items.length === 0) {
20059
+ ui.warn("No bot accounts found.");
20060
+ return;
20061
+ }
20062
+ for (const item of result.items) {
20063
+ this.renderBot(item, false);
20064
+ }
20065
+ return;
20066
+ }
20067
+ case "bot-login": {
20068
+ const baseUrl = this.resolveAuthBaseUrl(args.baseUrl);
20069
+ const privateKey = args.privateKey ?? this.readBotKeyFile(args.keyFile, args.app, args.name).privateKey;
20070
+ const challenge = await this.request(
20071
+ baseUrl,
20072
+ void 0,
20073
+ "POST",
20074
+ "/accounts/bots/session/challenge",
20075
+ { app: args.app, name: args.name }
20076
+ );
20077
+ const login = await this.request(
20078
+ baseUrl,
20079
+ void 0,
20080
+ "POST",
20081
+ "/accounts/bots/session",
20082
+ {
20083
+ app: args.app,
20084
+ name: args.name,
20085
+ credentialId: challenge.credentialId,
20086
+ challengeId: challenge.id,
20087
+ challenge: challenge.challenge,
20088
+ signature: this.signBotChallenge(challenge, privateKey)
20089
+ }
20090
+ );
20091
+ const saved = saveLoginSession(login, args.app);
20092
+ ui.success(`Logged in bot ${args.name} to ${saved.app}`);
20093
+ this.renderJson(login, args.json);
20094
+ return;
20095
+ }
20096
+ case "bot-profile-create": {
20097
+ const token = this.readToken();
20098
+ const baseUrl = this.resolveAuthBaseUrl(args.baseUrl);
20099
+ const profile = await this.request(
20100
+ baseUrl,
20101
+ token,
20102
+ "POST",
20103
+ "/accounts/bots/profile",
20104
+ {
20105
+ app: args.app,
20106
+ name: args.name,
20107
+ nickName: args.nickName,
20108
+ role: args.role
20109
+ }
20110
+ );
20111
+ ui.success(`Created profile ${profile.id} for bot ${args.name}`);
20112
+ this.renderJson(profile, args.json);
20113
+ return;
20114
+ }
19991
20115
  }
19992
20116
  }
19993
20117
  resolveAuthBaseUrl(baseUrl) {
@@ -20033,7 +20157,7 @@ var AccountCommandHandler = class {
20033
20157
  const response = await fetch(`${baseUrl}${pathname}`, {
20034
20158
  method,
20035
20159
  headers: {
20036
- Authorization: `Bearer ${token}`,
20160
+ ...token ? { Authorization: `Bearer ${token}` } : {},
20037
20161
  "Content-Type": "application/json"
20038
20162
  },
20039
20163
  ...body !== void 0 ? { body: JSON.stringify(body) } : {}
@@ -20088,6 +20212,8 @@ var AccountCommandHandler = class {
20088
20212
  }
20089
20213
  for (const item of items) {
20090
20214
  ui.info(item.account.id, {
20215
+ kind: item.account.kind,
20216
+ name: item.account.name,
20091
20217
  mobile: item.account.mobile,
20092
20218
  profiles: item.profiles.map((profile) => ({
20093
20219
  id: profile.id,
@@ -20181,6 +20307,73 @@ var AccountCommandHandler = class {
20181
20307
  resolveFilePath(filePath) {
20182
20308
  return import_node_path24.default.resolve(process.cwd(), filePath);
20183
20309
  }
20310
+ generateBotKeyFile(app, name) {
20311
+ const { publicKey, privateKey } = (0, import_node_crypto4.generateKeyPairSync)("ed25519");
20312
+ return {
20313
+ type: "pmate-bot-key",
20314
+ version: 1,
20315
+ algorithm: "ed25519",
20316
+ app,
20317
+ name,
20318
+ publicKey: publicKey.export({ type: "spki", format: "der" }).toString("base64url"),
20319
+ privateKey: privateKey.export({ type: "pkcs8", format: "der" }).toString("base64url"),
20320
+ createdAt: (/* @__PURE__ */ new Date()).toISOString()
20321
+ };
20322
+ }
20323
+ readBotKeyFile(filePath, expectedApp, expectedName) {
20324
+ if (!filePath) {
20325
+ throw new Error("Missing bot key file");
20326
+ }
20327
+ const absolutePath = this.resolveFilePath(filePath);
20328
+ if (!(0, import_node_fs19.existsSync)(absolutePath)) {
20329
+ throw new Error(`Bot key file not found: ${absolutePath}`);
20330
+ }
20331
+ const parsed = JSON.parse((0, import_node_fs19.readFileSync)(absolutePath, "utf8"));
20332
+ if (parsed.type !== "pmate-bot-key" || parsed.version !== 1 || parsed.algorithm !== "ed25519" || !parsed.publicKey || !parsed.privateKey) {
20333
+ throw new Error(`Invalid PMate bot key file: ${absolutePath}`);
20334
+ }
20335
+ if (expectedApp && parsed.app !== expectedApp) {
20336
+ throw new Error(`Bot key app mismatch. expected=${expectedApp}, received=${parsed.app}`);
20337
+ }
20338
+ if (expectedName && parsed.name !== expectedName) {
20339
+ throw new Error(`Bot key name mismatch. expected=${expectedName}, received=${parsed.name}`);
20340
+ }
20341
+ return parsed;
20342
+ }
20343
+ signBotChallenge(challenge, privateKey) {
20344
+ const key = (0, import_node_crypto4.createPrivateKey)({
20345
+ key: Buffer.from(privateKey, "base64url"),
20346
+ format: "der",
20347
+ type: "pkcs8"
20348
+ });
20349
+ return (0, import_node_crypto4.sign)(
20350
+ null,
20351
+ Buffer.from(JSON.stringify({
20352
+ id: challenge.id,
20353
+ app: challenge.app,
20354
+ name: challenge.name,
20355
+ accountId: challenge.accountId,
20356
+ credentialId: challenge.credentialId,
20357
+ challenge: challenge.challenge,
20358
+ issuedAt: challenge.issuedAt,
20359
+ expiresAt: challenge.expiresAt
20360
+ })),
20361
+ key
20362
+ ).toString("base64url");
20363
+ }
20364
+ renderBot(bot, asJson) {
20365
+ if (asJson) {
20366
+ this.renderJson(bot, true);
20367
+ return;
20368
+ }
20369
+ ui.info(bot.account.id, {
20370
+ app: bot.credential.app,
20371
+ name: bot.credential.name,
20372
+ kind: bot.account.kind,
20373
+ credential: bot.credential.id,
20374
+ status: bot.credential.status
20375
+ });
20376
+ }
20184
20377
  };
20185
20378
  function encodePathSegment(value) {
20186
20379
  return value.split("/").map((segment) => encodeURIComponent(segment)).join("/");
@@ -22540,6 +22733,108 @@ function parseAccountArgs(tokens) {
22540
22733
  }
22541
22734
  throw new Error(`Unknown account visible-app action: ${visibleAction}`);
22542
22735
  }
22736
+ if (action === "bot") {
22737
+ const botAction = rest.shift();
22738
+ if (!botAction) {
22739
+ throw new Error("Missing account bot action. Use: account bot keygen|create|view|list|login|profile");
22740
+ }
22741
+ const botProfileAction = botAction === "profile" ? rest.shift() : void 0;
22742
+ let app;
22743
+ let name;
22744
+ let out;
22745
+ let keyFile;
22746
+ let publicKey;
22747
+ let privateKey;
22748
+ let nickName;
22749
+ let role2;
22750
+ let baseUrl2;
22751
+ let json2 = false;
22752
+ while (rest.length > 0) {
22753
+ const token = rest.shift();
22754
+ switch (token) {
22755
+ case "--app":
22756
+ app = parseNamespacedRef(requireValue8(rest, token), {
22757
+ entityLabel: "app ref"
22758
+ }).fullId;
22759
+ break;
22760
+ case "--name":
22761
+ name = requireValue8(rest, token);
22762
+ break;
22763
+ case "--out":
22764
+ out = requireValue8(rest, token);
22765
+ break;
22766
+ case "--key-file":
22767
+ keyFile = requireValue8(rest, token);
22768
+ break;
22769
+ case "--public-key":
22770
+ publicKey = requireValue8(rest, token);
22771
+ break;
22772
+ case "--private-key":
22773
+ privateKey = requireValue8(rest, token);
22774
+ break;
22775
+ case "--nickname":
22776
+ case "--nickName":
22777
+ nickName = requireValue8(rest, token);
22778
+ break;
22779
+ case "--role": {
22780
+ const value = requireValue8(rest, token);
22781
+ if (value !== "practitioner" && value !== "mate") {
22782
+ throw new Error("--role must be practitioner or mate");
22783
+ }
22784
+ role2 = value;
22785
+ break;
22786
+ }
22787
+ case "--base-url":
22788
+ baseUrl2 = requireValue8(rest, token);
22789
+ break;
22790
+ case "--json":
22791
+ json2 = true;
22792
+ break;
22793
+ default:
22794
+ throw new Error(`Unknown account bot option: ${token}`);
22795
+ }
22796
+ }
22797
+ if (botAction === "keygen") {
22798
+ if (!app || !name) {
22799
+ throw new Error("Usage: account bot keygen --app <ns:app> --name <name> [--out <path>] [--json]");
22800
+ }
22801
+ return { type: "account" /* Account */, action: "bot-keygen", app, name, out, json: json2 };
22802
+ }
22803
+ if (botAction === "create") {
22804
+ if (!app || !name || !keyFile && !publicKey) {
22805
+ throw new Error("Usage: account bot create --app <ns:app> --name <name> (--key-file <path> | --public-key <key>) [--base-url <url>] [--json]");
22806
+ }
22807
+ return { type: "account" /* Account */, action: "bot-create", app, name, keyFile, publicKey, baseUrl: baseUrl2, json: json2 };
22808
+ }
22809
+ if (botAction === "view") {
22810
+ if (!app || !name) {
22811
+ throw new Error("Usage: account bot view --app <ns:app> --name <name> [--base-url <url>] [--json]");
22812
+ }
22813
+ return { type: "account" /* Account */, action: "bot-view", app, name, baseUrl: baseUrl2, json: json2 };
22814
+ }
22815
+ if (botAction === "list") {
22816
+ if (!app) {
22817
+ throw new Error("Usage: account bot list --app <ns:app> [--base-url <url>] [--json]");
22818
+ }
22819
+ return { type: "account" /* Account */, action: "bot-list", app, baseUrl: baseUrl2, json: json2 };
22820
+ }
22821
+ if (botAction === "login") {
22822
+ if (!app || !name || !keyFile && !privateKey) {
22823
+ throw new Error("Usage: account bot login --app <ns:app> --name <name> (--key-file <path> | --private-key <key>) [--base-url <url>] [--json]");
22824
+ }
22825
+ return { type: "account" /* Account */, action: "bot-login", app, name, keyFile, privateKey, baseUrl: baseUrl2, json: json2 };
22826
+ }
22827
+ if (botAction === "profile") {
22828
+ if (botProfileAction !== "create") {
22829
+ throw new Error("Usage: account bot profile create --app <ns:app> --name <name> --nickname <nickname> [--role <role>] [--base-url <url>] [--json]");
22830
+ }
22831
+ if (!app || !name || !nickName) {
22832
+ throw new Error("Usage: account bot profile create --app <ns:app> --name <name> --nickname <nickname> [--role <role>] [--base-url <url>] [--json]");
22833
+ }
22834
+ return { type: "account" /* Account */, action: "bot-profile-create", app, name, nickName, role: role2, baseUrl: baseUrl2, json: json2 };
22835
+ }
22836
+ throw new Error(`Unknown account bot action: ${botAction}`);
22837
+ }
22543
22838
  if (action !== "role") {
22544
22839
  throw new Error(`Unknown account action: ${action}`);
22545
22840
  }
@@ -23160,6 +23455,12 @@ var HELP_TEXT = [
23160
23455
  ` ${import_chalk4.default.gray(" visible-app remove --account <id> --app <ns:app> [--base-url <url>] [--json]")}`,
23161
23456
  ` ${import_chalk4.default.gray(" visible-app set --account <id> (--app <ns:app> ... | --file <path>) [--base-url <url>] [--json]")}`,
23162
23457
  ` ${import_chalk4.default.gray(" visible-app resolve [--base-url <url>] [--json]")}`,
23458
+ ` ${import_chalk4.default.gray(" bot keygen --app <ns:app> --name <name> [--out <path>] [--json]")}`,
23459
+ ` ${import_chalk4.default.gray(" bot create --app <ns:app> --name <name> (--key-file <path> | --public-key <key>) [--base-url <url>] [--json]")}`,
23460
+ ` ${import_chalk4.default.gray(" bot view --app <ns:app> --name <name> [--base-url <url>] [--json]")}`,
23461
+ ` ${import_chalk4.default.gray(" bot list --app <ns:app> [--base-url <url>] [--json]")}`,
23462
+ ` ${import_chalk4.default.gray(" bot login --app <ns:app> --name <name> (--key-file <path> | --private-key <key>) [--base-url <url>] [--json]")}`,
23463
+ ` ${import_chalk4.default.gray(" bot profile create --app <ns:app> --name <name> --nickname <nickname> [--role <role>] [--base-url <url>] [--json]")}`,
23163
23464
  ` ${import_chalk4.default.gray(" default base URL: https://auth-api-v2.pmate.chat")}`,
23164
23465
  ` ${import_chalk4.default.cyan("org")} Manage orgs, org members, and org visible apps via apps-api`,
23165
23466
  ` ${import_chalk4.default.gray(" list [--base-url <url>] [--json]")}`,