@pmate/cli 0.28.6 → 0.28.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.
package/dist/index.js CHANGED
@@ -293,157 +293,160 @@ var init_sessionStore = __esm({
293
293
  }
294
294
  });
295
295
 
296
- // node_modules/@pmate/meta/src/types/account.types.ts
296
+ // node_modules/.pnpm/@pmate+meta@1.1.15/node_modules/@pmate/meta/src/types/account.types.ts
297
297
  var init_account_types = __esm({
298
- "node_modules/@pmate/meta/src/types/account.types.ts"() {
298
+ "node_modules/.pnpm/@pmate+meta@1.1.15/node_modules/@pmate/meta/src/types/account.types.ts"() {
299
299
  "use strict";
300
300
  }
301
301
  });
302
302
 
303
- // node_modules/@pmate/meta/src/types/achievements.types.ts
303
+ // node_modules/.pnpm/@pmate+meta@1.1.15/node_modules/@pmate/meta/src/types/achievements.types.ts
304
304
  var init_achievements_types = __esm({
305
- "node_modules/@pmate/meta/src/types/achievements.types.ts"() {
305
+ "node_modules/.pnpm/@pmate+meta@1.1.15/node_modules/@pmate/meta/src/types/achievements.types.ts"() {
306
306
  "use strict";
307
307
  }
308
308
  });
309
309
 
310
- // node_modules/@pmate/meta/src/types/aigen.types.ts
310
+ // node_modules/.pnpm/@pmate+meta@1.1.15/node_modules/@pmate/meta/src/types/aigen.types.ts
311
311
  var init_aigen_types = __esm({
312
- "node_modules/@pmate/meta/src/types/aigen.types.ts"() {
312
+ "node_modules/.pnpm/@pmate+meta@1.1.15/node_modules/@pmate/meta/src/types/aigen.types.ts"() {
313
313
  "use strict";
314
314
  }
315
315
  });
316
316
 
317
- // node_modules/@pmate/meta/src/types/agent.types.ts
317
+ // node_modules/.pnpm/@pmate+meta@1.1.15/node_modules/@pmate/meta/src/types/agent.types.ts
318
318
  var init_agent_types = __esm({
319
- "node_modules/@pmate/meta/src/types/agent.types.ts"() {
319
+ "node_modules/.pnpm/@pmate+meta@1.1.15/node_modules/@pmate/meta/src/types/agent.types.ts"() {
320
320
  "use strict";
321
321
  }
322
322
  });
323
323
 
324
- // node_modules/@pmate/meta/src/types/agent-registry.types.ts
324
+ // node_modules/.pnpm/@pmate+meta@1.1.15/node_modules/@pmate/meta/src/types/agent-registry.types.ts
325
325
  var init_agent_registry_types = __esm({
326
- "node_modules/@pmate/meta/src/types/agent-registry.types.ts"() {
326
+ "node_modules/.pnpm/@pmate+meta@1.1.15/node_modules/@pmate/meta/src/types/agent-registry.types.ts"() {
327
327
  "use strict";
328
328
  }
329
329
  });
330
330
 
331
- // node_modules/@pmate/meta/src/types/runner-registry.types.ts
331
+ // node_modules/.pnpm/@pmate+meta@1.1.15/node_modules/@pmate/meta/src/types/runner-registry.types.ts
332
332
  var init_runner_registry_types = __esm({
333
- "node_modules/@pmate/meta/src/types/runner-registry.types.ts"() {
333
+ "node_modules/.pnpm/@pmate+meta@1.1.15/node_modules/@pmate/meta/src/types/runner-registry.types.ts"() {
334
334
  "use strict";
335
335
  }
336
336
  });
337
337
 
338
- // node_modules/@pmate/meta/src/types/blockchain.types.ts
338
+ // node_modules/.pnpm/@pmate+meta@1.1.15/node_modules/@pmate/meta/src/types/blockchain.types.ts
339
339
  var init_blockchain_types = __esm({
340
- "node_modules/@pmate/meta/src/types/blockchain.types.ts"() {
340
+ "node_modules/.pnpm/@pmate+meta@1.1.15/node_modules/@pmate/meta/src/types/blockchain.types.ts"() {
341
341
  "use strict";
342
342
  }
343
343
  });
344
344
 
345
- // node_modules/@pmate/meta/src/types/breakdown.types.ts
345
+ // node_modules/.pnpm/@pmate+meta@1.1.15/node_modules/@pmate/meta/src/types/breakdown.types.ts
346
346
  var init_breakdown_types = __esm({
347
- "node_modules/@pmate/meta/src/types/breakdown.types.ts"() {
347
+ "node_modules/.pnpm/@pmate+meta@1.1.15/node_modules/@pmate/meta/src/types/breakdown.types.ts"() {
348
348
  "use strict";
349
349
  }
350
350
  });
351
351
 
352
- // node_modules/@pmate/meta/src/types/chat.types.ts
352
+ // node_modules/.pnpm/@pmate+meta@1.1.15/node_modules/@pmate/meta/src/types/chat.types.ts
353
353
  var init_chat_types = __esm({
354
- "node_modules/@pmate/meta/src/types/chat.types.ts"() {
354
+ "node_modules/.pnpm/@pmate+meta@1.1.15/node_modules/@pmate/meta/src/types/chat.types.ts"() {
355
355
  "use strict";
356
356
  }
357
357
  });
358
358
 
359
- // node_modules/@pmate/meta/src/types/companion.types.ts
359
+ // node_modules/.pnpm/@pmate+meta@1.1.15/node_modules/@pmate/meta/src/types/companion.types.ts
360
360
  var init_companion_types = __esm({
361
- "node_modules/@pmate/meta/src/types/companion.types.ts"() {
361
+ "node_modules/.pnpm/@pmate+meta@1.1.15/node_modules/@pmate/meta/src/types/companion.types.ts"() {
362
362
  "use strict";
363
363
  }
364
364
  });
365
365
 
366
- // node_modules/@pmate/meta/src/types/enums.ts
366
+ // node_modules/.pnpm/@pmate+meta@1.1.15/node_modules/@pmate/meta/src/types/enums.ts
367
367
  var init_enums = __esm({
368
- "node_modules/@pmate/meta/src/types/enums.ts"() {
368
+ "node_modules/.pnpm/@pmate+meta@1.1.15/node_modules/@pmate/meta/src/types/enums.ts"() {
369
369
  "use strict";
370
370
  }
371
371
  });
372
372
 
373
- // node_modules/@pmate/meta/src/types/lang.types.ts
373
+ // node_modules/.pnpm/@pmate+meta@1.1.15/node_modules/@pmate/meta/src/types/lang.types.ts
374
374
  var init_lang_types = __esm({
375
- "node_modules/@pmate/meta/src/types/lang.types.ts"() {
375
+ "node_modules/.pnpm/@pmate+meta@1.1.15/node_modules/@pmate/meta/src/types/lang.types.ts"() {
376
376
  "use strict";
377
377
  }
378
378
  });
379
379
 
380
- // node_modules/@pmate/meta/src/types/logs.types.ts
380
+ // node_modules/.pnpm/@pmate+meta@1.1.15/node_modules/@pmate/meta/src/types/logs.types.ts
381
381
  var init_logs_types = __esm({
382
- "node_modules/@pmate/meta/src/types/logs.types.ts"() {
382
+ "node_modules/.pnpm/@pmate+meta@1.1.15/node_modules/@pmate/meta/src/types/logs.types.ts"() {
383
383
  "use strict";
384
384
  }
385
385
  });
386
386
 
387
- // node_modules/@pmate/meta/src/types/message.types.ts
387
+ // node_modules/.pnpm/@pmate+meta@1.1.15/node_modules/@pmate/meta/src/types/message.types.ts
388
+ var PING, PONG;
388
389
  var init_message_types = __esm({
389
- "node_modules/@pmate/meta/src/types/message.types.ts"() {
390
+ "node_modules/.pnpm/@pmate+meta@1.1.15/node_modules/@pmate/meta/src/types/message.types.ts"() {
390
391
  "use strict";
392
+ PING = 1;
393
+ PONG = 2;
391
394
  }
392
395
  });
393
396
 
394
- // node_modules/@pmate/meta/src/types/newLog.types.ts
397
+ // node_modules/.pnpm/@pmate+meta@1.1.15/node_modules/@pmate/meta/src/types/newLog.types.ts
395
398
  var init_newLog_types = __esm({
396
- "node_modules/@pmate/meta/src/types/newLog.types.ts"() {
399
+ "node_modules/.pnpm/@pmate+meta@1.1.15/node_modules/@pmate/meta/src/types/newLog.types.ts"() {
397
400
  "use strict";
398
401
  }
399
402
  });
400
403
 
401
- // node_modules/@pmate/meta/src/types/novel.types.ts
404
+ // node_modules/.pnpm/@pmate+meta@1.1.15/node_modules/@pmate/meta/src/types/novel.types.ts
402
405
  var init_novel_types = __esm({
403
- "node_modules/@pmate/meta/src/types/novel.types.ts"() {
406
+ "node_modules/.pnpm/@pmate+meta@1.1.15/node_modules/@pmate/meta/src/types/novel.types.ts"() {
404
407
  "use strict";
405
408
  }
406
409
  });
407
410
 
408
- // node_modules/@pmate/meta/src/types/offline.types.ts
411
+ // node_modules/.pnpm/@pmate+meta@1.1.15/node_modules/@pmate/meta/src/types/offline.types.ts
409
412
  var init_offline_types = __esm({
410
- "node_modules/@pmate/meta/src/types/offline.types.ts"() {
413
+ "node_modules/.pnpm/@pmate+meta@1.1.15/node_modules/@pmate/meta/src/types/offline.types.ts"() {
411
414
  "use strict";
412
415
  }
413
416
  });
414
417
 
415
- // node_modules/@pmate/meta/src/types/prompt.types.ts
418
+ // node_modules/.pnpm/@pmate+meta@1.1.15/node_modules/@pmate/meta/src/types/prompt.types.ts
416
419
  var init_prompt_types = __esm({
417
- "node_modules/@pmate/meta/src/types/prompt.types.ts"() {
420
+ "node_modules/.pnpm/@pmate+meta@1.1.15/node_modules/@pmate/meta/src/types/prompt.types.ts"() {
418
421
  "use strict";
419
422
  }
420
423
  });
421
424
 
422
- // node_modules/@pmate/meta/src/types/reading.types.ts
425
+ // node_modules/.pnpm/@pmate+meta@1.1.15/node_modules/@pmate/meta/src/types/reading.types.ts
423
426
  var init_reading_types = __esm({
424
- "node_modules/@pmate/meta/src/types/reading.types.ts"() {
427
+ "node_modules/.pnpm/@pmate+meta@1.1.15/node_modules/@pmate/meta/src/types/reading.types.ts"() {
425
428
  "use strict";
426
429
  }
427
430
  });
428
431
 
429
- // node_modules/@pmate/meta/src/types/settings.types.ts
432
+ // node_modules/.pnpm/@pmate+meta@1.1.15/node_modules/@pmate/meta/src/types/settings.types.ts
430
433
  var init_settings_types = __esm({
431
- "node_modules/@pmate/meta/src/types/settings.types.ts"() {
434
+ "node_modules/.pnpm/@pmate+meta@1.1.15/node_modules/@pmate/meta/src/types/settings.types.ts"() {
432
435
  "use strict";
433
436
  }
434
437
  });
435
438
 
436
- // node_modules/@pmate/meta/src/types/subscription.types.ts
439
+ // node_modules/.pnpm/@pmate+meta@1.1.15/node_modules/@pmate/meta/src/types/subscription.types.ts
437
440
  var init_subscription_types = __esm({
438
- "node_modules/@pmate/meta/src/types/subscription.types.ts"() {
441
+ "node_modules/.pnpm/@pmate+meta@1.1.15/node_modules/@pmate/meta/src/types/subscription.types.ts"() {
439
442
  "use strict";
440
443
  }
441
444
  });
442
445
 
443
- // node_modules/@pmate/meta/src/types/types.ts
446
+ // node_modules/.pnpm/@pmate+meta@1.1.15/node_modules/@pmate/meta/src/types/types.ts
444
447
  var buildVoiceKey, createVoice;
445
448
  var init_types = __esm({
446
- "node_modules/@pmate/meta/src/types/types.ts"() {
449
+ "node_modules/.pnpm/@pmate+meta@1.1.15/node_modules/@pmate/meta/src/types/types.ts"() {
447
450
  "use strict";
448
451
  buildVoiceKey = (provider, name) => {
449
452
  return `${provider}:${name}`;
@@ -465,44 +468,44 @@ var init_types = __esm({
465
468
  }
466
469
  });
467
470
 
468
- // node_modules/@pmate/meta/src/types/wordv5.def.ts
471
+ // node_modules/.pnpm/@pmate+meta@1.1.15/node_modules/@pmate/meta/src/types/wordv5.def.ts
469
472
  var init_wordv5_def = __esm({
470
- "node_modules/@pmate/meta/src/types/wordv5.def.ts"() {
473
+ "node_modules/.pnpm/@pmate+meta@1.1.15/node_modules/@pmate/meta/src/types/wordv5.def.ts"() {
471
474
  "use strict";
472
475
  }
473
476
  });
474
477
 
475
- // node_modules/@pmate/meta/src/types/auth.types.ts
478
+ // node_modules/.pnpm/@pmate+meta@1.1.15/node_modules/@pmate/meta/src/types/auth.types.ts
476
479
  var init_auth_types = __esm({
477
- "node_modules/@pmate/meta/src/types/auth.types.ts"() {
480
+ "node_modules/.pnpm/@pmate+meta@1.1.15/node_modules/@pmate/meta/src/types/auth.types.ts"() {
478
481
  "use strict";
479
482
  }
480
483
  });
481
484
 
482
- // node_modules/@pmate/meta/src/types/apps.types.ts
485
+ // node_modules/.pnpm/@pmate+meta@1.1.15/node_modules/@pmate/meta/src/types/apps.types.ts
483
486
  var init_apps_types = __esm({
484
- "node_modules/@pmate/meta/src/types/apps.types.ts"() {
487
+ "node_modules/.pnpm/@pmate+meta@1.1.15/node_modules/@pmate/meta/src/types/apps.types.ts"() {
485
488
  "use strict";
486
489
  }
487
490
  });
488
491
 
489
- // node_modules/@pmate/meta/src/types/response.types.ts
492
+ // node_modules/.pnpm/@pmate+meta@1.1.15/node_modules/@pmate/meta/src/types/response.types.ts
490
493
  var init_response_types = __esm({
491
- "node_modules/@pmate/meta/src/types/response.types.ts"() {
494
+ "node_modules/.pnpm/@pmate+meta@1.1.15/node_modules/@pmate/meta/src/types/response.types.ts"() {
492
495
  "use strict";
493
496
  }
494
497
  });
495
498
 
496
- // node_modules/@pmate/meta/src/types/role.types.ts
499
+ // node_modules/.pnpm/@pmate+meta@1.1.15/node_modules/@pmate/meta/src/types/role.types.ts
497
500
  var init_role_types = __esm({
498
- "node_modules/@pmate/meta/src/types/role.types.ts"() {
501
+ "node_modules/.pnpm/@pmate+meta@1.1.15/node_modules/@pmate/meta/src/types/role.types.ts"() {
499
502
  "use strict";
500
503
  }
501
504
  });
502
505
 
503
- // node_modules/@pmate/meta/src/types/index.ts
506
+ // node_modules/.pnpm/@pmate+meta@1.1.15/node_modules/@pmate/meta/src/types/index.ts
504
507
  var init_types2 = __esm({
505
- "node_modules/@pmate/meta/src/types/index.ts"() {
508
+ "node_modules/.pnpm/@pmate+meta@1.1.15/node_modules/@pmate/meta/src/types/index.ts"() {
506
509
  "use strict";
507
510
  init_account_types();
508
511
  init_achievements_types();
@@ -534,24 +537,24 @@ var init_types2 = __esm({
534
537
  }
535
538
  });
536
539
 
537
- // node_modules/@pmate/meta/src/config/BizErrorCode.ts
540
+ // node_modules/.pnpm/@pmate+meta@1.1.15/node_modules/@pmate/meta/src/config/BizErrorCode.ts
538
541
  var init_BizErrorCode = __esm({
539
- "node_modules/@pmate/meta/src/config/BizErrorCode.ts"() {
542
+ "node_modules/.pnpm/@pmate+meta@1.1.15/node_modules/@pmate/meta/src/config/BizErrorCode.ts"() {
540
543
  "use strict";
541
544
  }
542
545
  });
543
546
 
544
- // node_modules/@pmate/meta/src/config/consts.ts
547
+ // node_modules/.pnpm/@pmate+meta@1.1.15/node_modules/@pmate/meta/src/config/consts.ts
545
548
  var init_consts = __esm({
546
- "node_modules/@pmate/meta/src/config/consts.ts"() {
549
+ "node_modules/.pnpm/@pmate+meta@1.1.15/node_modules/@pmate/meta/src/config/consts.ts"() {
547
550
  "use strict";
548
551
  }
549
552
  });
550
553
 
551
- // node_modules/@pmate/meta/src/config/TopicNames.ts
554
+ // node_modules/.pnpm/@pmate+meta@1.1.15/node_modules/@pmate/meta/src/config/TopicNames.ts
552
555
  var TopicNames, topicKindMatchers;
553
556
  var init_TopicNames = __esm({
554
- "node_modules/@pmate/meta/src/config/TopicNames.ts"() {
557
+ "node_modules/.pnpm/@pmate+meta@1.1.15/node_modules/@pmate/meta/src/config/TopicNames.ts"() {
555
558
  "use strict";
556
559
  init_types2();
557
560
  TopicNames = class _TopicNames {
@@ -637,18 +640,18 @@ var init_TopicNames = __esm({
637
640
  }
638
641
  });
639
642
 
640
- // node_modules/@pmate/meta/src/config/OSSKeys.ts
643
+ // node_modules/.pnpm/@pmate+meta@1.1.15/node_modules/@pmate/meta/src/config/OSSKeys.ts
641
644
  var init_OSSKeys = __esm({
642
- "node_modules/@pmate/meta/src/config/OSSKeys.ts"() {
645
+ "node_modules/.pnpm/@pmate+meta@1.1.15/node_modules/@pmate/meta/src/config/OSSKeys.ts"() {
643
646
  "use strict";
644
647
  init_consts();
645
648
  }
646
649
  });
647
650
 
648
- // node_modules/@pmate/meta/src/config/CompanionProfiles.ts
651
+ // node_modules/.pnpm/@pmate+meta@1.1.15/node_modules/@pmate/meta/src/config/CompanionProfiles.ts
649
652
  var openAICoral, openAIAsh, openAIBallad, openAINova, openAIVerse;
650
653
  var init_CompanionProfiles = __esm({
651
- "node_modules/@pmate/meta/src/config/CompanionProfiles.ts"() {
654
+ "node_modules/.pnpm/@pmate+meta@1.1.15/node_modules/@pmate/meta/src/config/CompanionProfiles.ts"() {
652
655
  "use strict";
653
656
  init_types2();
654
657
  openAICoral = createVoice({
@@ -683,9 +686,9 @@ var init_CompanionProfiles = __esm({
683
686
  }
684
687
  });
685
688
 
686
- // node_modules/@pmate/meta/src/config/index.ts
689
+ // node_modules/.pnpm/@pmate+meta@1.1.15/node_modules/@pmate/meta/src/config/index.ts
687
690
  var init_config = __esm({
688
- "node_modules/@pmate/meta/src/config/index.ts"() {
691
+ "node_modules/.pnpm/@pmate+meta@1.1.15/node_modules/@pmate/meta/src/config/index.ts"() {
689
692
  "use strict";
690
693
  init_BizErrorCode();
691
694
  init_consts();
@@ -695,83 +698,83 @@ var init_config = __esm({
695
698
  }
696
699
  });
697
700
 
698
- // node_modules/@pmate/meta/src/index.ts
701
+ // node_modules/.pnpm/@pmate+meta@1.1.15/node_modules/@pmate/meta/src/index.ts
699
702
  var init_src = __esm({
700
- "node_modules/@pmate/meta/src/index.ts"() {
703
+ "node_modules/.pnpm/@pmate+meta@1.1.15/node_modules/@pmate/meta/src/index.ts"() {
701
704
  "use strict";
702
705
  init_types2();
703
706
  init_config();
704
707
  }
705
708
  });
706
709
 
707
- // node_modules/@pmate/utils/src/base64.ts
710
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/base64.ts
708
711
  var init_base64 = __esm({
709
- "node_modules/@pmate/utils/src/base64.ts"() {
712
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/base64.ts"() {
710
713
  "use strict";
711
714
  }
712
715
  });
713
716
 
714
- // node_modules/@pmate/utils/src/Cache.ts
717
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/Cache.ts
715
718
  var init_Cache = __esm({
716
- "node_modules/@pmate/utils/src/Cache.ts"() {
719
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/Cache.ts"() {
717
720
  "use strict";
718
721
  }
719
722
  });
720
723
 
721
- // node_modules/@pmate/utils/src/batchResolve.ts
724
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/batchResolve.ts
722
725
  var init_batchResolve = __esm({
723
- "node_modules/@pmate/utils/src/batchResolve.ts"() {
726
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/batchResolve.ts"() {
724
727
  "use strict";
725
728
  init_Cache();
726
729
  }
727
730
  });
728
731
 
729
- // node_modules/@pmate/lang/src/cn/sentenceSpliter.ts
732
+ // node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/cn/sentenceSpliter.ts
730
733
  var init_sentenceSpliter = __esm({
731
- "node_modules/@pmate/lang/src/cn/sentenceSpliter.ts"() {
734
+ "node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/cn/sentenceSpliter.ts"() {
732
735
  "use strict";
733
736
  }
734
737
  });
735
738
 
736
- // node_modules/@pmate/lang/src/cn/sentenceTrim.ts
739
+ // node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/cn/sentenceTrim.ts
737
740
  var init_sentenceTrim = __esm({
738
- "node_modules/@pmate/lang/src/cn/sentenceTrim.ts"() {
741
+ "node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/cn/sentenceTrim.ts"() {
739
742
  "use strict";
740
743
  }
741
744
  });
742
745
 
743
- // node_modules/@pmate/lang/src/cn/wordSpliter.ts
746
+ // node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/cn/wordSpliter.ts
744
747
  var init_wordSpliter = __esm({
745
- "node_modules/@pmate/lang/src/cn/wordSpliter.ts"() {
748
+ "node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/cn/wordSpliter.ts"() {
746
749
  "use strict";
747
750
  }
748
751
  });
749
752
 
750
- // node_modules/@pmate/lang/src/en/regex.ts
753
+ // node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/en/regex.ts
751
754
  var init_regex = __esm({
752
- "node_modules/@pmate/lang/src/en/regex.ts"() {
755
+ "node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/en/regex.ts"() {
753
756
  "use strict";
754
757
  }
755
758
  });
756
759
 
757
- // node_modules/@pmate/lang/src/en/sentenceSpliter.ts
760
+ // node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/en/sentenceSpliter.ts
758
761
  var init_sentenceSpliter2 = __esm({
759
- "node_modules/@pmate/lang/src/en/sentenceSpliter.ts"() {
762
+ "node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/en/sentenceSpliter.ts"() {
760
763
  "use strict";
761
764
  }
762
765
  });
763
766
 
764
- // node_modules/@pmate/lang/src/en/sentenceTrim.ts
767
+ // node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/en/sentenceTrim.ts
765
768
  var init_sentenceTrim2 = __esm({
766
- "node_modules/@pmate/lang/src/en/sentenceTrim.ts"() {
769
+ "node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/en/sentenceTrim.ts"() {
767
770
  "use strict";
768
771
  }
769
772
  });
770
773
 
771
- // node_modules/@pmate/lang/src/en/wordSpliter.ts
774
+ // node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/en/wordSpliter.ts
772
775
  var regex;
773
776
  var init_wordSpliter2 = __esm({
774
- "node_modules/@pmate/lang/src/en/wordSpliter.ts"() {
777
+ "node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/en/wordSpliter.ts"() {
775
778
  "use strict";
776
779
  regex = new RegExp(
777
780
  [
@@ -807,23 +810,23 @@ var init_wordSpliter2 = __esm({
807
810
  }
808
811
  });
809
812
 
810
- // node_modules/@pmate/lang/src/kr/sentenceSpliter.ts
813
+ // node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/kr/sentenceSpliter.ts
811
814
  var init_sentenceSpliter3 = __esm({
812
- "node_modules/@pmate/lang/src/kr/sentenceSpliter.ts"() {
815
+ "node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/kr/sentenceSpliter.ts"() {
813
816
  "use strict";
814
817
  }
815
818
  });
816
819
 
817
- // node_modules/@pmate/lang/src/kr/wordSpliter.ts
820
+ // node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/kr/wordSpliter.ts
818
821
  var init_wordSpliter3 = __esm({
819
- "node_modules/@pmate/lang/src/kr/wordSpliter.ts"() {
822
+ "node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/kr/wordSpliter.ts"() {
820
823
  "use strict";
821
824
  }
822
825
  });
823
826
 
824
- // node_modules/@pmate/lang/src/readingSettings.ts
827
+ // node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/readingSettings.ts
825
828
  var init_readingSettings = __esm({
826
- "node_modules/@pmate/lang/src/readingSettings.ts"() {
829
+ "node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/readingSettings.ts"() {
827
830
  "use strict";
828
831
  init_sentenceSpliter();
829
832
  init_wordSpliter();
@@ -834,485 +837,74 @@ var init_readingSettings = __esm({
834
837
  }
835
838
  });
836
839
 
837
- // node_modules/@pmate/lang/node_modules/@pmate/meta/src/types/account.types.ts
838
- var init_account_types2 = __esm({
839
- "node_modules/@pmate/lang/node_modules/@pmate/meta/src/types/account.types.ts"() {
840
- "use strict";
841
- }
842
- });
843
-
844
- // node_modules/@pmate/lang/node_modules/@pmate/meta/src/types/achievements.types.ts
845
- var init_achievements_types2 = __esm({
846
- "node_modules/@pmate/lang/node_modules/@pmate/meta/src/types/achievements.types.ts"() {
847
- "use strict";
848
- }
849
- });
850
-
851
- // node_modules/@pmate/lang/node_modules/@pmate/meta/src/types/aigen.types.ts
852
- var init_aigen_types2 = __esm({
853
- "node_modules/@pmate/lang/node_modules/@pmate/meta/src/types/aigen.types.ts"() {
854
- "use strict";
855
- }
856
- });
857
-
858
- // node_modules/@pmate/lang/node_modules/@pmate/meta/src/types/agent.types.ts
859
- var init_agent_types2 = __esm({
860
- "node_modules/@pmate/lang/node_modules/@pmate/meta/src/types/agent.types.ts"() {
861
- "use strict";
862
- }
863
- });
864
-
865
- // node_modules/@pmate/lang/node_modules/@pmate/meta/src/types/agent-registry.types.ts
866
- var init_agent_registry_types2 = __esm({
867
- "node_modules/@pmate/lang/node_modules/@pmate/meta/src/types/agent-registry.types.ts"() {
868
- "use strict";
869
- }
870
- });
871
-
872
- // node_modules/@pmate/lang/node_modules/@pmate/meta/src/types/runner-registry.types.ts
873
- var init_runner_registry_types2 = __esm({
874
- "node_modules/@pmate/lang/node_modules/@pmate/meta/src/types/runner-registry.types.ts"() {
875
- "use strict";
876
- }
877
- });
878
-
879
- // node_modules/@pmate/lang/node_modules/@pmate/meta/src/types/blockchain.types.ts
880
- var init_blockchain_types2 = __esm({
881
- "node_modules/@pmate/lang/node_modules/@pmate/meta/src/types/blockchain.types.ts"() {
882
- "use strict";
883
- }
884
- });
885
-
886
- // node_modules/@pmate/lang/node_modules/@pmate/meta/src/types/breakdown.types.ts
887
- var init_breakdown_types2 = __esm({
888
- "node_modules/@pmate/lang/node_modules/@pmate/meta/src/types/breakdown.types.ts"() {
889
- "use strict";
890
- }
891
- });
892
-
893
- // node_modules/@pmate/lang/node_modules/@pmate/meta/src/types/chat.types.ts
894
- var init_chat_types2 = __esm({
895
- "node_modules/@pmate/lang/node_modules/@pmate/meta/src/types/chat.types.ts"() {
896
- "use strict";
897
- }
898
- });
899
-
900
- // node_modules/@pmate/lang/node_modules/@pmate/meta/src/types/companion.types.ts
901
- var init_companion_types2 = __esm({
902
- "node_modules/@pmate/lang/node_modules/@pmate/meta/src/types/companion.types.ts"() {
903
- "use strict";
904
- }
905
- });
906
-
907
- // node_modules/@pmate/lang/node_modules/@pmate/meta/src/types/enums.ts
908
- var init_enums2 = __esm({
909
- "node_modules/@pmate/lang/node_modules/@pmate/meta/src/types/enums.ts"() {
910
- "use strict";
911
- }
912
- });
913
-
914
- // node_modules/@pmate/lang/node_modules/@pmate/meta/src/types/lang.types.ts
915
- var init_lang_types2 = __esm({
916
- "node_modules/@pmate/lang/node_modules/@pmate/meta/src/types/lang.types.ts"() {
917
- "use strict";
918
- }
919
- });
920
-
921
- // node_modules/@pmate/lang/node_modules/@pmate/meta/src/types/logs.types.ts
922
- var init_logs_types2 = __esm({
923
- "node_modules/@pmate/lang/node_modules/@pmate/meta/src/types/logs.types.ts"() {
924
- "use strict";
925
- }
926
- });
927
-
928
- // node_modules/@pmate/lang/node_modules/@pmate/meta/src/types/message.types.ts
929
- var init_message_types2 = __esm({
930
- "node_modules/@pmate/lang/node_modules/@pmate/meta/src/types/message.types.ts"() {
931
- "use strict";
932
- }
933
- });
934
-
935
- // node_modules/@pmate/lang/node_modules/@pmate/meta/src/types/newLog.types.ts
936
- var init_newLog_types2 = __esm({
937
- "node_modules/@pmate/lang/node_modules/@pmate/meta/src/types/newLog.types.ts"() {
938
- "use strict";
939
- }
940
- });
941
-
942
- // node_modules/@pmate/lang/node_modules/@pmate/meta/src/types/novel.types.ts
943
- var init_novel_types2 = __esm({
944
- "node_modules/@pmate/lang/node_modules/@pmate/meta/src/types/novel.types.ts"() {
945
- "use strict";
946
- }
947
- });
948
-
949
- // node_modules/@pmate/lang/node_modules/@pmate/meta/src/types/offline.types.ts
950
- var init_offline_types2 = __esm({
951
- "node_modules/@pmate/lang/node_modules/@pmate/meta/src/types/offline.types.ts"() {
952
- "use strict";
953
- }
954
- });
955
-
956
- // node_modules/@pmate/lang/node_modules/@pmate/meta/src/types/prompt.types.ts
957
- var init_prompt_types2 = __esm({
958
- "node_modules/@pmate/lang/node_modules/@pmate/meta/src/types/prompt.types.ts"() {
959
- "use strict";
960
- }
961
- });
962
-
963
- // node_modules/@pmate/lang/node_modules/@pmate/meta/src/types/reading.types.ts
964
- var init_reading_types2 = __esm({
965
- "node_modules/@pmate/lang/node_modules/@pmate/meta/src/types/reading.types.ts"() {
966
- "use strict";
967
- }
968
- });
969
-
970
- // node_modules/@pmate/lang/node_modules/@pmate/meta/src/types/settings.types.ts
971
- var init_settings_types2 = __esm({
972
- "node_modules/@pmate/lang/node_modules/@pmate/meta/src/types/settings.types.ts"() {
973
- "use strict";
974
- }
975
- });
976
-
977
- // node_modules/@pmate/lang/node_modules/@pmate/meta/src/types/subscription.types.ts
978
- var init_subscription_types2 = __esm({
979
- "node_modules/@pmate/lang/node_modules/@pmate/meta/src/types/subscription.types.ts"() {
980
- "use strict";
981
- }
982
- });
983
-
984
- // node_modules/@pmate/lang/node_modules/@pmate/meta/src/types/types.ts
985
- var buildVoiceKey2, createVoice2;
986
- var init_types3 = __esm({
987
- "node_modules/@pmate/lang/node_modules/@pmate/meta/src/types/types.ts"() {
988
- "use strict";
989
- buildVoiceKey2 = (provider, name) => {
990
- return `${provider}:${name}`;
991
- };
992
- createVoice2 = ({
993
- name,
994
- provider,
995
- gender,
996
- instructions
997
- }) => {
998
- return {
999
- name,
1000
- provider,
1001
- gender,
1002
- instructions,
1003
- key: buildVoiceKey2(provider, name)
1004
- };
1005
- };
1006
- }
1007
- });
1008
-
1009
- // node_modules/@pmate/lang/node_modules/@pmate/meta/src/types/wordv5.def.ts
1010
- var init_wordv5_def2 = __esm({
1011
- "node_modules/@pmate/lang/node_modules/@pmate/meta/src/types/wordv5.def.ts"() {
1012
- "use strict";
1013
- }
1014
- });
1015
-
1016
- // node_modules/@pmate/lang/node_modules/@pmate/meta/src/types/auth.types.ts
1017
- var init_auth_types2 = __esm({
1018
- "node_modules/@pmate/lang/node_modules/@pmate/meta/src/types/auth.types.ts"() {
1019
- "use strict";
1020
- }
1021
- });
1022
-
1023
- // node_modules/@pmate/lang/node_modules/@pmate/meta/src/types/apps.types.ts
1024
- var init_apps_types2 = __esm({
1025
- "node_modules/@pmate/lang/node_modules/@pmate/meta/src/types/apps.types.ts"() {
1026
- "use strict";
1027
- }
1028
- });
1029
-
1030
- // node_modules/@pmate/lang/node_modules/@pmate/meta/src/types/response.types.ts
1031
- var init_response_types2 = __esm({
1032
- "node_modules/@pmate/lang/node_modules/@pmate/meta/src/types/response.types.ts"() {
840
+ // node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/utils.ts
841
+ var init_utils = __esm({
842
+ "node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/utils.ts"() {
1033
843
  "use strict";
844
+ init_src();
1034
845
  }
1035
846
  });
1036
847
 
1037
- // node_modules/@pmate/lang/node_modules/@pmate/meta/src/types/role.types.ts
1038
- var init_role_types2 = __esm({
1039
- "node_modules/@pmate/lang/node_modules/@pmate/meta/src/types/role.types.ts"() {
848
+ // node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/index.ts
849
+ var init_src2 = __esm({
850
+ "node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/index.ts"() {
1040
851
  "use strict";
852
+ init_sentenceSpliter();
853
+ init_sentenceTrim();
854
+ init_wordSpliter();
855
+ init_regex();
856
+ init_sentenceSpliter2();
857
+ init_sentenceTrim2();
858
+ init_wordSpliter2();
859
+ init_sentenceSpliter3();
860
+ init_wordSpliter3();
861
+ init_readingSettings();
862
+ init_utils();
1041
863
  }
1042
864
  });
1043
865
 
1044
- // node_modules/@pmate/lang/node_modules/@pmate/meta/src/types/index.ts
1045
- var init_types4 = __esm({
1046
- "node_modules/@pmate/lang/node_modules/@pmate/meta/src/types/index.ts"() {
866
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/bookStats.ts
867
+ var init_bookStats = __esm({
868
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/bookStats.ts"() {
1047
869
  "use strict";
1048
- init_account_types2();
1049
- init_achievements_types2();
1050
- init_aigen_types2();
1051
- init_agent_types2();
1052
- init_agent_registry_types2();
1053
- init_runner_registry_types2();
1054
- init_blockchain_types2();
1055
- init_breakdown_types2();
1056
- init_chat_types2();
1057
- init_companion_types2();
1058
- init_enums2();
1059
- init_lang_types2();
1060
- init_logs_types2();
1061
- init_message_types2();
1062
- init_newLog_types2();
1063
- init_novel_types2();
1064
- init_offline_types2();
1065
- init_prompt_types2();
1066
- init_reading_types2();
1067
- init_settings_types2();
1068
- init_subscription_types2();
1069
- init_types3();
1070
- init_wordv5_def2();
1071
- init_auth_types2();
1072
- init_apps_types2();
1073
- init_response_types2();
1074
- init_role_types2();
870
+ init_src2();
1075
871
  }
1076
872
  });
1077
873
 
1078
- // node_modules/@pmate/lang/node_modules/@pmate/meta/src/config/BizErrorCode.ts
1079
- var init_BizErrorCode2 = __esm({
1080
- "node_modules/@pmate/lang/node_modules/@pmate/meta/src/config/BizErrorCode.ts"() {
874
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/BoundedConcurrentQueue.ts
875
+ var init_BoundedConcurrentQueue = __esm({
876
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/BoundedConcurrentQueue.ts"() {
1081
877
  "use strict";
1082
878
  }
1083
879
  });
1084
880
 
1085
- // node_modules/@pmate/lang/node_modules/@pmate/meta/src/config/consts.ts
1086
- var init_consts2 = __esm({
1087
- "node_modules/@pmate/lang/node_modules/@pmate/meta/src/config/consts.ts"() {
881
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/lru.ts
882
+ var init_lru = __esm({
883
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/lru.ts"() {
1088
884
  "use strict";
885
+ init_Cache();
1089
886
  }
1090
887
  });
1091
888
 
1092
- // node_modules/@pmate/lang/node_modules/@pmate/meta/src/config/TopicNames.ts
1093
- var TopicNames2, topicKindMatchers2;
1094
- var init_TopicNames2 = __esm({
1095
- "node_modules/@pmate/lang/node_modules/@pmate/meta/src/config/TopicNames.ts"() {
889
+ // node_modules/.pnpm/js-sha3@0.9.3/node_modules/js-sha3/src/sha3.js
890
+ var require_sha3 = __commonJS({
891
+ "node_modules/.pnpm/js-sha3@0.9.3/node_modules/js-sha3/src/sha3.js"(exports2, module2) {
1096
892
  "use strict";
1097
- init_types4();
1098
- TopicNames2 = class _TopicNames {
1099
- static rooms() {
1100
- return "@pmate/rooms";
1101
- }
1102
- static userThreads(user) {
1103
- return `@pmate/user_threads:${user}`;
1104
- }
1105
- static userLogs(user) {
1106
- return `@pmate/user_logs:${user}`;
1107
- }
1108
- static legacyUserLogs(user) {
1109
- return _TopicNames.userLogs(user);
1110
- }
1111
- static userContacts(profileId) {
1112
- return `@pmate/user_contacts:${profileId}`;
1113
- }
1114
- static usersMessage(userId) {
1115
- return `@pmate/user_messages:${userId}`;
1116
- }
1117
- static userMapping() {
1118
- return "@pmate/username_mapping";
1119
- }
1120
- static userMobileMapping() {
1121
- return "@pmate/mobile_account";
1122
- }
1123
- static mapping() {
1124
- return "@pmate/mapping";
1125
- }
1126
- static profiles() {
1127
- return "@pmate/profiles";
1128
- }
1129
- static groups() {
1130
- return "@pmate/groups";
1131
- }
1132
- static relationships() {
1133
- return "@pmate/relationships";
893
+ (function() {
894
+ "use strict";
895
+ var INPUT_ERROR = "input is invalid type";
896
+ var FINALIZE_ERROR = "finalize already called";
897
+ var WINDOW = typeof window === "object";
898
+ var root = WINDOW ? window : {};
899
+ if (root.JS_SHA3_NO_WINDOW) {
900
+ WINDOW = false;
1134
901
  }
1135
- };
1136
- topicKindMatchers2 = [
1137
- {
1138
- kind: 1e3 /* UserLogs */,
1139
- match: (topic) => topic.startsWith("@pmate/user_logs:")
1140
- },
1141
- {
1142
- kind: 2e3 /* UserMessages */,
1143
- match: (topic) => topic.startsWith("@pmate/user_messages:")
1144
- },
1145
- {
1146
- kind: 3e3 /* Relationships */,
1147
- match: (topic) => topic === TopicNames2.relationships()
1148
- },
1149
- {
1150
- kind: 4e3 /* Rooms */,
1151
- match: (topic) => topic === TopicNames2.rooms()
1152
- },
1153
- {
1154
- kind: 5e3 /* UserContacts */,
1155
- match: (topic) => topic.startsWith("@pmate/user_contacts:")
1156
- },
1157
- {
1158
- kind: 8002 /* Entity_GROUP */,
1159
- match: (topic) => topic === TopicNames2.groups()
1160
- },
1161
- {
1162
- kind: 6e3 /* UserMapping */,
1163
- match: (topic) => topic === TopicNames2.userMapping()
1164
- },
1165
- {
1166
- kind: 7e3 /* UserMobileMapping */,
1167
- match: (topic) => topic === TopicNames2.userMobileMapping()
1168
- },
1169
- {
1170
- kind: 6003 /* Mapping */,
1171
- match: (topic) => topic === TopicNames2.mapping()
1172
- },
1173
- {
1174
- kind: 9e3 /* UserThreads */,
1175
- match: (topic) => topic.startsWith("@pmate/user_threads:")
1176
- }
1177
- ];
1178
- }
1179
- });
1180
-
1181
- // node_modules/@pmate/lang/node_modules/@pmate/meta/src/config/OSSKeys.ts
1182
- var init_OSSKeys2 = __esm({
1183
- "node_modules/@pmate/lang/node_modules/@pmate/meta/src/config/OSSKeys.ts"() {
1184
- "use strict";
1185
- init_consts2();
1186
- }
1187
- });
1188
-
1189
- // node_modules/@pmate/lang/node_modules/@pmate/meta/src/config/CompanionProfiles.ts
1190
- var openAICoral2, openAIAsh2, openAIBallad2, openAINova2, openAIVerse2;
1191
- var init_CompanionProfiles2 = __esm({
1192
- "node_modules/@pmate/lang/node_modules/@pmate/meta/src/config/CompanionProfiles.ts"() {
1193
- "use strict";
1194
- init_types4();
1195
- openAICoral2 = createVoice2({
1196
- name: "coral",
1197
- provider: "openai",
1198
- gender: "F",
1199
- instructions: "sweet, cute,naive voice"
1200
- });
1201
- openAIAsh2 = createVoice2({
1202
- name: "ash",
1203
- provider: "openai",
1204
- gender: "M"
1205
- });
1206
- openAIBallad2 = createVoice2({
1207
- name: "ballad",
1208
- provider: "openai",
1209
- gender: "M",
1210
- instructions: "bright, young man voice"
1211
- });
1212
- openAINova2 = createVoice2({
1213
- name: "nova",
1214
- provider: "openai",
1215
- gender: "F",
1216
- instructions: "mature, smooth, elegant, warm voice"
1217
- });
1218
- openAIVerse2 = createVoice2({
1219
- name: "verse",
1220
- provider: "openai",
1221
- gender: "M",
1222
- instructions: "elderly,mysterious wizzard voice"
1223
- });
1224
- }
1225
- });
1226
-
1227
- // node_modules/@pmate/lang/node_modules/@pmate/meta/src/config/index.ts
1228
- var init_config2 = __esm({
1229
- "node_modules/@pmate/lang/node_modules/@pmate/meta/src/config/index.ts"() {
1230
- "use strict";
1231
- init_BizErrorCode2();
1232
- init_consts2();
1233
- init_TopicNames2();
1234
- init_OSSKeys2();
1235
- init_CompanionProfiles2();
1236
- }
1237
- });
1238
-
1239
- // node_modules/@pmate/lang/node_modules/@pmate/meta/src/index.ts
1240
- var init_src2 = __esm({
1241
- "node_modules/@pmate/lang/node_modules/@pmate/meta/src/index.ts"() {
1242
- "use strict";
1243
- init_types4();
1244
- init_config2();
1245
- }
1246
- });
1247
-
1248
- // node_modules/@pmate/lang/src/utils.ts
1249
- var init_utils = __esm({
1250
- "node_modules/@pmate/lang/src/utils.ts"() {
1251
- "use strict";
1252
- init_src2();
1253
- }
1254
- });
1255
-
1256
- // node_modules/@pmate/lang/src/index.ts
1257
- var init_src3 = __esm({
1258
- "node_modules/@pmate/lang/src/index.ts"() {
1259
- "use strict";
1260
- init_sentenceSpliter();
1261
- init_sentenceTrim();
1262
- init_wordSpliter();
1263
- init_regex();
1264
- init_sentenceSpliter2();
1265
- init_sentenceTrim2();
1266
- init_wordSpliter2();
1267
- init_sentenceSpliter3();
1268
- init_wordSpliter3();
1269
- init_readingSettings();
1270
- init_utils();
1271
- }
1272
- });
1273
-
1274
- // node_modules/@pmate/utils/src/bookStats.ts
1275
- var init_bookStats = __esm({
1276
- "node_modules/@pmate/utils/src/bookStats.ts"() {
1277
- "use strict";
1278
- init_src3();
1279
- }
1280
- });
1281
-
1282
- // node_modules/@pmate/utils/src/BoundedConcurrentQueue.ts
1283
- var init_BoundedConcurrentQueue = __esm({
1284
- "node_modules/@pmate/utils/src/BoundedConcurrentQueue.ts"() {
1285
- "use strict";
1286
- }
1287
- });
1288
-
1289
- // node_modules/@pmate/utils/src/lru.ts
1290
- var init_lru = __esm({
1291
- "node_modules/@pmate/utils/src/lru.ts"() {
1292
- "use strict";
1293
- init_Cache();
1294
- }
1295
- });
1296
-
1297
- // node_modules/js-sha3/src/sha3.js
1298
- var require_sha3 = __commonJS({
1299
- "node_modules/js-sha3/src/sha3.js"(exports2, module2) {
1300
- "use strict";
1301
- (function() {
1302
- "use strict";
1303
- var INPUT_ERROR = "input is invalid type";
1304
- var FINALIZE_ERROR = "finalize already called";
1305
- var WINDOW = typeof window === "object";
1306
- var root = WINDOW ? window : {};
1307
- if (root.JS_SHA3_NO_WINDOW) {
1308
- WINDOW = false;
1309
- }
1310
- var WEB_WORKER = !WINDOW && typeof self === "object";
1311
- var NODE_JS = !root.JS_SHA3_NO_NODE_JS && typeof process === "object" && process.versions && process.versions.node;
1312
- if (NODE_JS) {
1313
- root = global;
1314
- } else if (WEB_WORKER) {
1315
- root = self;
902
+ var WEB_WORKER = !WINDOW && typeof self === "object";
903
+ var NODE_JS = !root.JS_SHA3_NO_NODE_JS && typeof process === "object" && process.versions && process.versions.node;
904
+ if (NODE_JS) {
905
+ root = global;
906
+ } else if (WEB_WORKER) {
907
+ root = self;
1316
908
  }
1317
909
  var COMMON_JS = !root.JS_SHA3_NO_COMMON_JS && typeof module2 === "object" && module2.exports;
1318
910
  var AMD = typeof define === "function" && define.amd;
@@ -1941,24 +1533,24 @@ var require_sha3 = __commonJS({
1941
1533
  }
1942
1534
  });
1943
1535
 
1944
- // node_modules/@pmate/utils/src/Maybe.ts
1536
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/Maybe.ts
1945
1537
  var init_Maybe = __esm({
1946
- "node_modules/@pmate/utils/src/Maybe.ts"() {
1538
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/Maybe.ts"() {
1947
1539
  "use strict";
1948
1540
  }
1949
1541
  });
1950
1542
 
1951
- // node_modules/@pmate/utils/src/cacheMethodInMem.ts
1543
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/cacheMethodInMem.ts
1952
1544
  var import_js_sha3;
1953
1545
  var init_cacheMethodInMem = __esm({
1954
- "node_modules/@pmate/utils/src/cacheMethodInMem.ts"() {
1546
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/cacheMethodInMem.ts"() {
1955
1547
  "use strict";
1956
1548
  import_js_sha3 = __toESM(require_sha3(), 1);
1957
1549
  init_Maybe();
1958
1550
  }
1959
1551
  });
1960
1552
 
1961
- // node_modules/pako/dist/pako.esm.mjs
1553
+ // node_modules/.pnpm/pako@2.1.0/node_modules/pako/dist/pako.esm.mjs
1962
1554
  function zero$1(buf) {
1963
1555
  let len = buf.length;
1964
1556
  while (--len >= 0) {
@@ -2246,7 +1838,7 @@ function inflateRaw$1(input, options) {
2246
1838
  }
2247
1839
  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;
2248
1840
  var init_pako_esm = __esm({
2249
- "node_modules/pako/dist/pako.esm.mjs"() {
1841
+ "node_modules/.pnpm/pako@2.1.0/node_modules/pako/dist/pako.esm.mjs"() {
2250
1842
  "use strict";
2251
1843
  Z_FIXED$1 = 4;
2252
1844
  Z_BINARY = 0;
@@ -6127,7 +5719,7 @@ var init_pako_esm = __esm({
6127
5719
  }
6128
5720
  });
6129
5721
 
6130
- // node_modules/@pmate/utils/src/compress.ts
5722
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/compress.ts
6131
5723
  async function gzipEncodeBlob(input) {
6132
5724
  const array = await toUint8Array(input);
6133
5725
  return gzip_1(array);
@@ -6153,16 +5745,16 @@ async function toUint8Array(input) {
6153
5745
  throw new TypeError("Unsupported input type for gzipEncodeBlob");
6154
5746
  }
6155
5747
  var init_compress = __esm({
6156
- "node_modules/@pmate/utils/src/compress.ts"() {
5748
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/compress.ts"() {
6157
5749
  "use strict";
6158
5750
  init_pako_esm();
6159
5751
  }
6160
5752
  });
6161
5753
 
6162
- // node_modules/@pmate/utils/src/AsyncStream.ts
5754
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/AsyncStream.ts
6163
5755
  var AsyncStream;
6164
5756
  var init_AsyncStream = __esm({
6165
- "node_modules/@pmate/utils/src/AsyncStream.ts"() {
5757
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/AsyncStream.ts"() {
6166
5758
  "use strict";
6167
5759
  AsyncStream = class _AsyncStream {
6168
5760
  constructor() {
@@ -6209,567 +5801,153 @@ var init_AsyncStream = __esm({
6209
5801
  return this.queue.length;
6210
5802
  }
6211
5803
  get state() {
6212
- return this.stateInternal;
6213
- }
6214
- on(event, handler) {
6215
- const set = this.listeners[event] ??= /* @__PURE__ */ new Set();
6216
- set.add(handler);
6217
- return () => {
6218
- set.delete(handler);
6219
- };
6220
- }
6221
- push(value) {
6222
- if (this.stateInternal !== "open") {
6223
- throw new Error(
6224
- `AsyncStream is not writable (state=${this.stateInternal})`
6225
- );
6226
- }
6227
- const waiter = this.waiting.shift();
6228
- if (waiter) {
6229
- waiter.resolve({ value, done: false });
6230
- return true;
6231
- }
6232
- this.queue.push(value);
6233
- return true;
6234
- }
6235
- pipe(value) {
6236
- return this.push(value);
6237
- }
6238
- end() {
6239
- if (this.stateInternal === "closed") {
6240
- return;
6241
- }
6242
- if (this.stateInternal === "errored") {
6243
- return;
6244
- }
6245
- if (this.stateInternal === "ending") {
6246
- return;
6247
- }
6248
- this.stateInternal = "ending";
6249
- this.emit("endRequested", void 0);
6250
- if (this.queue.length === 0) {
6251
- this.finishEndIfDrained();
6252
- }
6253
- }
6254
- error(err2) {
6255
- if (this.stateInternal === "closed") {
6256
- return;
6257
- }
6258
- if (this.stateInternal === "errored") {
6259
- return;
6260
- }
6261
- this.stateInternal = "errored";
6262
- this.errorValue = err2;
6263
- this.emit("error", err2);
6264
- const waiting = this.waiting;
6265
- this.waiting = [];
6266
- waiting.forEach((w) => w.reject(err2));
6267
- this.finishClose("error");
6268
- }
6269
- [Symbol.asyncIterator]() {
6270
- if (this.iteratorCreated) {
6271
- throw new Error("AsyncStream only supports a single consumer");
6272
- }
6273
- this.iteratorCreated = true;
6274
- return {
6275
- next: () => this.nextInternal(),
6276
- return: () => this.returnInternal(),
6277
- throw: (err2) => this.throwInternal(err2)
6278
- };
6279
- }
6280
- nextInternal() {
6281
- if (this.stateInternal === "errored") {
6282
- return Promise.reject(this.errorValue);
6283
- }
6284
- if (this.stateInternal === "closed") {
6285
- return Promise.resolve({ value: void 0, done: true });
6286
- }
6287
- if (this.queue.length > 0) {
6288
- const value = this.queue.shift();
6289
- if (this.queue.length === 0) {
6290
- this.finishEndIfDrained();
6291
- }
6292
- return Promise.resolve({ value, done: false });
6293
- }
6294
- if (this.stateInternal === "ending") {
6295
- this.finishEndIfDrained();
6296
- return Promise.resolve({ value: void 0, done: true });
6297
- }
6298
- return new Promise((resolve, reject) => {
6299
- this.waiting.push({ resolve, reject });
6300
- });
6301
- }
6302
- returnInternal() {
6303
- if (this.stateInternal === "closed") {
6304
- return Promise.resolve({ value: void 0, done: true });
6305
- }
6306
- this.queue.length = 0;
6307
- const waiting = this.waiting;
6308
- this.waiting = [];
6309
- waiting.forEach((w) => w.resolve({ value: void 0, done: true }));
6310
- this.finishClose("consumer");
6311
- return Promise.resolve({ value: void 0, done: true });
6312
- }
6313
- throwInternal(err2) {
6314
- this.returnInternal();
6315
- return Promise.reject(err2);
6316
- }
6317
- finishEndIfDrained() {
6318
- if (this.stateInternal !== "ending") {
6319
- return;
6320
- }
6321
- if (this.queue.length !== 0) {
6322
- return;
6323
- }
6324
- const waiting = this.waiting;
6325
- this.waiting = [];
6326
- waiting.forEach((w) => w.resolve({ value: void 0, done: true }));
6327
- this.emit("end", void 0);
6328
- this.finishClose("end");
6329
- }
6330
- finishClose(reason) {
6331
- if (this.stateInternal === "closed") {
6332
- return;
6333
- }
6334
- this.stateInternal = "closed";
6335
- this.emit("close", { reason });
6336
- const waiting = this.waiting;
6337
- this.waiting = [];
6338
- waiting.forEach((w) => w.resolve({ value: void 0, done: true }));
6339
- }
6340
- emit(event, payload) {
6341
- const set = this.listeners[event];
6342
- if (!set || set.size === 0) {
6343
- return;
6344
- }
6345
- for (const handler of set) {
6346
- handler(payload);
6347
- }
6348
- }
6349
- };
6350
- }
6351
- });
6352
-
6353
- // node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/account.types.ts
6354
- var init_account_types3 = __esm({
6355
- "node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/account.types.ts"() {
6356
- "use strict";
6357
- }
6358
- });
6359
-
6360
- // node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/achievements.types.ts
6361
- var init_achievements_types3 = __esm({
6362
- "node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/achievements.types.ts"() {
6363
- "use strict";
6364
- }
6365
- });
6366
-
6367
- // node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/aigen.types.ts
6368
- var init_aigen_types3 = __esm({
6369
- "node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/aigen.types.ts"() {
6370
- "use strict";
6371
- }
6372
- });
6373
-
6374
- // node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/agent.types.ts
6375
- var init_agent_types3 = __esm({
6376
- "node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/agent.types.ts"() {
6377
- "use strict";
6378
- }
6379
- });
6380
-
6381
- // node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/agent-registry.types.ts
6382
- var init_agent_registry_types3 = __esm({
6383
- "node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/agent-registry.types.ts"() {
6384
- "use strict";
6385
- }
6386
- });
6387
-
6388
- // node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/runner-registry.types.ts
6389
- var init_runner_registry_types3 = __esm({
6390
- "node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/runner-registry.types.ts"() {
6391
- "use strict";
6392
- }
6393
- });
6394
-
6395
- // node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/blockchain.types.ts
6396
- var init_blockchain_types3 = __esm({
6397
- "node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/blockchain.types.ts"() {
6398
- "use strict";
6399
- }
6400
- });
6401
-
6402
- // node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/breakdown.types.ts
6403
- var init_breakdown_types3 = __esm({
6404
- "node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/breakdown.types.ts"() {
6405
- "use strict";
6406
- }
6407
- });
6408
-
6409
- // node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/chat.types.ts
6410
- var init_chat_types3 = __esm({
6411
- "node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/chat.types.ts"() {
6412
- "use strict";
6413
- }
6414
- });
6415
-
6416
- // node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/companion.types.ts
6417
- var init_companion_types3 = __esm({
6418
- "node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/companion.types.ts"() {
6419
- "use strict";
6420
- }
6421
- });
6422
-
6423
- // node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/enums.ts
6424
- var init_enums3 = __esm({
6425
- "node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/enums.ts"() {
6426
- "use strict";
6427
- }
6428
- });
6429
-
6430
- // node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/lang.types.ts
6431
- var init_lang_types3 = __esm({
6432
- "node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/lang.types.ts"() {
6433
- "use strict";
6434
- }
6435
- });
6436
-
6437
- // node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/logs.types.ts
6438
- var init_logs_types3 = __esm({
6439
- "node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/logs.types.ts"() {
6440
- "use strict";
6441
- }
6442
- });
6443
-
6444
- // node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/message.types.ts
6445
- var PING, PONG;
6446
- var init_message_types3 = __esm({
6447
- "node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/message.types.ts"() {
6448
- "use strict";
6449
- PING = 1;
6450
- PONG = 2;
6451
- }
6452
- });
6453
-
6454
- // node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/newLog.types.ts
6455
- var init_newLog_types3 = __esm({
6456
- "node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/newLog.types.ts"() {
6457
- "use strict";
6458
- }
6459
- });
6460
-
6461
- // node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/novel.types.ts
6462
- var init_novel_types3 = __esm({
6463
- "node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/novel.types.ts"() {
6464
- "use strict";
6465
- }
6466
- });
6467
-
6468
- // node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/offline.types.ts
6469
- var init_offline_types3 = __esm({
6470
- "node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/offline.types.ts"() {
6471
- "use strict";
6472
- }
6473
- });
6474
-
6475
- // node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/prompt.types.ts
6476
- var init_prompt_types3 = __esm({
6477
- "node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/prompt.types.ts"() {
6478
- "use strict";
6479
- }
6480
- });
6481
-
6482
- // node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/reading.types.ts
6483
- var init_reading_types3 = __esm({
6484
- "node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/reading.types.ts"() {
6485
- "use strict";
6486
- }
6487
- });
6488
-
6489
- // node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/settings.types.ts
6490
- var init_settings_types3 = __esm({
6491
- "node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/settings.types.ts"() {
6492
- "use strict";
6493
- }
6494
- });
6495
-
6496
- // node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/subscription.types.ts
6497
- var init_subscription_types3 = __esm({
6498
- "node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/subscription.types.ts"() {
6499
- "use strict";
6500
- }
6501
- });
6502
-
6503
- // node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/types.ts
6504
- var buildVoiceKey3, createVoice3;
6505
- var init_types5 = __esm({
6506
- "node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/types.ts"() {
6507
- "use strict";
6508
- buildVoiceKey3 = (provider, name) => {
6509
- return `${provider}:${name}`;
6510
- };
6511
- createVoice3 = ({
6512
- name,
6513
- provider,
6514
- gender,
6515
- instructions
6516
- }) => {
6517
- return {
6518
- name,
6519
- provider,
6520
- gender,
6521
- instructions,
6522
- key: buildVoiceKey3(provider, name)
6523
- };
6524
- };
6525
- }
6526
- });
6527
-
6528
- // node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/wordv5.def.ts
6529
- var init_wordv5_def3 = __esm({
6530
- "node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/wordv5.def.ts"() {
6531
- "use strict";
6532
- }
6533
- });
6534
-
6535
- // node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/auth.types.ts
6536
- var init_auth_types3 = __esm({
6537
- "node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/auth.types.ts"() {
6538
- "use strict";
6539
- }
6540
- });
6541
-
6542
- // node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/apps.types.ts
6543
- var init_apps_types3 = __esm({
6544
- "node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/apps.types.ts"() {
6545
- "use strict";
6546
- }
6547
- });
6548
-
6549
- // node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/response.types.ts
6550
- var init_response_types3 = __esm({
6551
- "node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/response.types.ts"() {
6552
- "use strict";
6553
- }
6554
- });
6555
-
6556
- // node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/role.types.ts
6557
- var init_role_types3 = __esm({
6558
- "node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/role.types.ts"() {
6559
- "use strict";
6560
- }
6561
- });
6562
-
6563
- // node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/index.ts
6564
- var init_types6 = __esm({
6565
- "node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/index.ts"() {
6566
- "use strict";
6567
- init_account_types3();
6568
- init_achievements_types3();
6569
- init_aigen_types3();
6570
- init_agent_types3();
6571
- init_agent_registry_types3();
6572
- init_runner_registry_types3();
6573
- init_blockchain_types3();
6574
- init_breakdown_types3();
6575
- init_chat_types3();
6576
- init_companion_types3();
6577
- init_enums3();
6578
- init_lang_types3();
6579
- init_logs_types3();
6580
- init_message_types3();
6581
- init_newLog_types3();
6582
- init_novel_types3();
6583
- init_offline_types3();
6584
- init_prompt_types3();
6585
- init_reading_types3();
6586
- init_settings_types3();
6587
- init_subscription_types3();
6588
- init_types5();
6589
- init_wordv5_def3();
6590
- init_auth_types3();
6591
- init_apps_types3();
6592
- init_response_types3();
6593
- init_role_types3();
6594
- }
6595
- });
6596
-
6597
- // node_modules/@pmate/utils/node_modules/@pmate/meta/src/config/BizErrorCode.ts
6598
- var init_BizErrorCode3 = __esm({
6599
- "node_modules/@pmate/utils/node_modules/@pmate/meta/src/config/BizErrorCode.ts"() {
6600
- "use strict";
6601
- }
6602
- });
6603
-
6604
- // node_modules/@pmate/utils/node_modules/@pmate/meta/src/config/consts.ts
6605
- var init_consts3 = __esm({
6606
- "node_modules/@pmate/utils/node_modules/@pmate/meta/src/config/consts.ts"() {
6607
- "use strict";
6608
- }
6609
- });
6610
-
6611
- // node_modules/@pmate/utils/node_modules/@pmate/meta/src/config/TopicNames.ts
6612
- var TopicNames3, topicKindMatchers3;
6613
- var init_TopicNames3 = __esm({
6614
- "node_modules/@pmate/utils/node_modules/@pmate/meta/src/config/TopicNames.ts"() {
6615
- "use strict";
6616
- init_types6();
6617
- TopicNames3 = class _TopicNames {
6618
- static rooms() {
6619
- return "@pmate/rooms";
5804
+ return this.stateInternal;
6620
5805
  }
6621
- static userThreads(user) {
6622
- return `@pmate/user_threads:${user}`;
5806
+ on(event, handler) {
5807
+ const set = this.listeners[event] ??= /* @__PURE__ */ new Set();
5808
+ set.add(handler);
5809
+ return () => {
5810
+ set.delete(handler);
5811
+ };
6623
5812
  }
6624
- static userLogs(user) {
6625
- return `@pmate/user_logs:${user}`;
5813
+ push(value) {
5814
+ if (this.stateInternal !== "open") {
5815
+ throw new Error(
5816
+ `AsyncStream is not writable (state=${this.stateInternal})`
5817
+ );
5818
+ }
5819
+ const waiter = this.waiting.shift();
5820
+ if (waiter) {
5821
+ waiter.resolve({ value, done: false });
5822
+ return true;
5823
+ }
5824
+ this.queue.push(value);
5825
+ return true;
6626
5826
  }
6627
- static legacyUserLogs(user) {
6628
- return _TopicNames.userLogs(user);
5827
+ pipe(value) {
5828
+ return this.push(value);
6629
5829
  }
6630
- static userContacts(profileId) {
6631
- return `@pmate/user_contacts:${profileId}`;
5830
+ end() {
5831
+ if (this.stateInternal === "closed") {
5832
+ return;
5833
+ }
5834
+ if (this.stateInternal === "errored") {
5835
+ return;
5836
+ }
5837
+ if (this.stateInternal === "ending") {
5838
+ return;
5839
+ }
5840
+ this.stateInternal = "ending";
5841
+ this.emit("endRequested", void 0);
5842
+ if (this.queue.length === 0) {
5843
+ this.finishEndIfDrained();
5844
+ }
6632
5845
  }
6633
- static usersMessage(userId) {
6634
- return `@pmate/user_messages:${userId}`;
5846
+ error(err2) {
5847
+ if (this.stateInternal === "closed") {
5848
+ return;
5849
+ }
5850
+ if (this.stateInternal === "errored") {
5851
+ return;
5852
+ }
5853
+ this.stateInternal = "errored";
5854
+ this.errorValue = err2;
5855
+ this.emit("error", err2);
5856
+ const waiting = this.waiting;
5857
+ this.waiting = [];
5858
+ waiting.forEach((w) => w.reject(err2));
5859
+ this.finishClose("error");
6635
5860
  }
6636
- static userMapping() {
6637
- return "@pmate/username_mapping";
5861
+ [Symbol.asyncIterator]() {
5862
+ if (this.iteratorCreated) {
5863
+ throw new Error("AsyncStream only supports a single consumer");
5864
+ }
5865
+ this.iteratorCreated = true;
5866
+ return {
5867
+ next: () => this.nextInternal(),
5868
+ return: () => this.returnInternal(),
5869
+ throw: (err2) => this.throwInternal(err2)
5870
+ };
6638
5871
  }
6639
- static userMobileMapping() {
6640
- return "@pmate/mobile_account";
5872
+ nextInternal() {
5873
+ if (this.stateInternal === "errored") {
5874
+ return Promise.reject(this.errorValue);
5875
+ }
5876
+ if (this.stateInternal === "closed") {
5877
+ return Promise.resolve({ value: void 0, done: true });
5878
+ }
5879
+ if (this.queue.length > 0) {
5880
+ const value = this.queue.shift();
5881
+ if (this.queue.length === 0) {
5882
+ this.finishEndIfDrained();
5883
+ }
5884
+ return Promise.resolve({ value, done: false });
5885
+ }
5886
+ if (this.stateInternal === "ending") {
5887
+ this.finishEndIfDrained();
5888
+ return Promise.resolve({ value: void 0, done: true });
5889
+ }
5890
+ return new Promise((resolve, reject) => {
5891
+ this.waiting.push({ resolve, reject });
5892
+ });
6641
5893
  }
6642
- static mapping() {
6643
- return "@pmate/mapping";
5894
+ returnInternal() {
5895
+ if (this.stateInternal === "closed") {
5896
+ return Promise.resolve({ value: void 0, done: true });
5897
+ }
5898
+ this.queue.length = 0;
5899
+ const waiting = this.waiting;
5900
+ this.waiting = [];
5901
+ waiting.forEach((w) => w.resolve({ value: void 0, done: true }));
5902
+ this.finishClose("consumer");
5903
+ return Promise.resolve({ value: void 0, done: true });
6644
5904
  }
6645
- static profiles() {
6646
- return "@pmate/profiles";
5905
+ throwInternal(err2) {
5906
+ this.returnInternal();
5907
+ return Promise.reject(err2);
6647
5908
  }
6648
- static groups() {
6649
- return "@pmate/groups";
5909
+ finishEndIfDrained() {
5910
+ if (this.stateInternal !== "ending") {
5911
+ return;
5912
+ }
5913
+ if (this.queue.length !== 0) {
5914
+ return;
5915
+ }
5916
+ const waiting = this.waiting;
5917
+ this.waiting = [];
5918
+ waiting.forEach((w) => w.resolve({ value: void 0, done: true }));
5919
+ this.emit("end", void 0);
5920
+ this.finishClose("end");
6650
5921
  }
6651
- static relationships() {
6652
- return "@pmate/relationships";
5922
+ finishClose(reason) {
5923
+ if (this.stateInternal === "closed") {
5924
+ return;
5925
+ }
5926
+ this.stateInternal = "closed";
5927
+ this.emit("close", { reason });
5928
+ const waiting = this.waiting;
5929
+ this.waiting = [];
5930
+ waiting.forEach((w) => w.resolve({ value: void 0, done: true }));
6653
5931
  }
6654
- };
6655
- topicKindMatchers3 = [
6656
- {
6657
- kind: 1e3 /* UserLogs */,
6658
- match: (topic) => topic.startsWith("@pmate/user_logs:")
6659
- },
6660
- {
6661
- kind: 2e3 /* UserMessages */,
6662
- match: (topic) => topic.startsWith("@pmate/user_messages:")
6663
- },
6664
- {
6665
- kind: 3e3 /* Relationships */,
6666
- match: (topic) => topic === TopicNames3.relationships()
6667
- },
6668
- {
6669
- kind: 4e3 /* Rooms */,
6670
- match: (topic) => topic === TopicNames3.rooms()
6671
- },
6672
- {
6673
- kind: 5e3 /* UserContacts */,
6674
- match: (topic) => topic.startsWith("@pmate/user_contacts:")
6675
- },
6676
- {
6677
- kind: 8002 /* Entity_GROUP */,
6678
- match: (topic) => topic === TopicNames3.groups()
6679
- },
6680
- {
6681
- kind: 6e3 /* UserMapping */,
6682
- match: (topic) => topic === TopicNames3.userMapping()
6683
- },
6684
- {
6685
- kind: 7e3 /* UserMobileMapping */,
6686
- match: (topic) => topic === TopicNames3.userMobileMapping()
6687
- },
6688
- {
6689
- kind: 6003 /* Mapping */,
6690
- match: (topic) => topic === TopicNames3.mapping()
6691
- },
6692
- {
6693
- kind: 9e3 /* UserThreads */,
6694
- match: (topic) => topic.startsWith("@pmate/user_threads:")
5932
+ emit(event, payload) {
5933
+ const set = this.listeners[event];
5934
+ if (!set || set.size === 0) {
5935
+ return;
5936
+ }
5937
+ for (const handler of set) {
5938
+ handler(payload);
5939
+ }
6695
5940
  }
6696
- ];
6697
- }
6698
- });
6699
-
6700
- // node_modules/@pmate/utils/node_modules/@pmate/meta/src/config/OSSKeys.ts
6701
- var init_OSSKeys3 = __esm({
6702
- "node_modules/@pmate/utils/node_modules/@pmate/meta/src/config/OSSKeys.ts"() {
6703
- "use strict";
6704
- init_consts3();
6705
- }
6706
- });
6707
-
6708
- // node_modules/@pmate/utils/node_modules/@pmate/meta/src/config/CompanionProfiles.ts
6709
- var openAICoral3, openAIAsh3, openAIBallad3, openAINova3, openAIVerse3;
6710
- var init_CompanionProfiles3 = __esm({
6711
- "node_modules/@pmate/utils/node_modules/@pmate/meta/src/config/CompanionProfiles.ts"() {
6712
- "use strict";
6713
- init_types6();
6714
- openAICoral3 = createVoice3({
6715
- name: "coral",
6716
- provider: "openai",
6717
- gender: "F",
6718
- instructions: "sweet, cute,naive voice"
6719
- });
6720
- openAIAsh3 = createVoice3({
6721
- name: "ash",
6722
- provider: "openai",
6723
- gender: "M"
6724
- });
6725
- openAIBallad3 = createVoice3({
6726
- name: "ballad",
6727
- provider: "openai",
6728
- gender: "M",
6729
- instructions: "bright, young man voice"
6730
- });
6731
- openAINova3 = createVoice3({
6732
- name: "nova",
6733
- provider: "openai",
6734
- gender: "F",
6735
- instructions: "mature, smooth, elegant, warm voice"
6736
- });
6737
- openAIVerse3 = createVoice3({
6738
- name: "verse",
6739
- provider: "openai",
6740
- gender: "M",
6741
- instructions: "elderly,mysterious wizzard voice"
6742
- });
6743
- }
6744
- });
6745
-
6746
- // node_modules/@pmate/utils/node_modules/@pmate/meta/src/config/index.ts
6747
- var init_config3 = __esm({
6748
- "node_modules/@pmate/utils/node_modules/@pmate/meta/src/config/index.ts"() {
6749
- "use strict";
6750
- init_BizErrorCode3();
6751
- init_consts3();
6752
- init_TopicNames3();
6753
- init_OSSKeys3();
6754
- init_CompanionProfiles3();
6755
- }
6756
- });
6757
-
6758
- // node_modules/@pmate/utils/node_modules/@pmate/meta/src/index.ts
6759
- var init_src4 = __esm({
6760
- "node_modules/@pmate/utils/node_modules/@pmate/meta/src/index.ts"() {
6761
- "use strict";
6762
- init_types6();
6763
- init_config3();
5941
+ };
6764
5942
  }
6765
5943
  });
6766
5944
 
6767
- // node_modules/@pmate/utils/src/uniqHash.ts
5945
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/uniqHash.ts
6768
5946
  var import_js_sha32, sortKeys, uniqHash;
6769
5947
  var init_uniqHash = __esm({
6770
- "node_modules/@pmate/utils/src/uniqHash.ts"() {
5948
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/uniqHash.ts"() {
6771
5949
  "use strict";
6772
- init_src4();
5950
+ init_src();
6773
5951
  import_js_sha32 = __toESM(require_sha3(), 1);
6774
5952
  sortKeys = (obj) => {
6775
5953
  if (Array.isArray(obj)) {
@@ -6797,33 +5975,33 @@ var init_uniqHash = __esm({
6797
5975
  }
6798
5976
  });
6799
5977
 
6800
- // node_modules/@pmate/utils/src/createMsg.ts
5978
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/createMsg.ts
6801
5979
  var init_createMsg = __esm({
6802
- "node_modules/@pmate/utils/src/createMsg.ts"() {
5980
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/createMsg.ts"() {
6803
5981
  "use strict";
6804
- init_src4();
5982
+ init_src();
6805
5983
  init_uniqHash();
6806
5984
  }
6807
5985
  });
6808
5986
 
6809
- // node_modules/@pmate/utils/src/detectText.ts
5987
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/detectText.ts
6810
5988
  var init_detectText = __esm({
6811
- "node_modules/@pmate/utils/src/detectText.ts"() {
5989
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/detectText.ts"() {
6812
5990
  "use strict";
6813
5991
  }
6814
5992
  });
6815
5993
 
6816
- // node_modules/@pmate/utils/src/Emitter.ts
5994
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/Emitter.ts
6817
5995
  var init_Emitter = __esm({
6818
- "node_modules/@pmate/utils/src/Emitter.ts"() {
5996
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/Emitter.ts"() {
6819
5997
  "use strict";
6820
5998
  }
6821
5999
  });
6822
6000
 
6823
- // node_modules/@pmate/utils/src/EmitterV2.ts
6001
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/EmitterV2.ts
6824
6002
  var EmitterV2;
6825
6003
  var init_EmitterV2 = __esm({
6826
- "node_modules/@pmate/utils/src/EmitterV2.ts"() {
6004
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/EmitterV2.ts"() {
6827
6005
  "use strict";
6828
6006
  EmitterV2 = class {
6829
6007
  constructor() {
@@ -6879,39 +6057,39 @@ var init_EmitterV2 = __esm({
6879
6057
  }
6880
6058
  });
6881
6059
 
6882
- // node_modules/@pmate/utils/src/format/formatTime.ts
6060
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/format/formatTime.ts
6883
6061
  var init_formatTime = __esm({
6884
- "node_modules/@pmate/utils/src/format/formatTime.ts"() {
6062
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/format/formatTime.ts"() {
6885
6063
  "use strict";
6886
6064
  }
6887
6065
  });
6888
6066
 
6889
- // node_modules/@pmate/utils/src/format/index.ts
6067
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/format/index.ts
6890
6068
  var init_format = __esm({
6891
- "node_modules/@pmate/utils/src/format/index.ts"() {
6069
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/format/index.ts"() {
6892
6070
  "use strict";
6893
6071
  init_formatTime();
6894
6072
  }
6895
6073
  });
6896
6074
 
6897
- // node_modules/@pmate/utils/src/isVolcabulary.ts
6075
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/isVolcabulary.ts
6898
6076
  var init_isVolcabulary = __esm({
6899
- "node_modules/@pmate/utils/src/isVolcabulary.ts"() {
6077
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/isVolcabulary.ts"() {
6900
6078
  "use strict";
6901
6079
  }
6902
6080
  });
6903
6081
 
6904
- // node_modules/@pmate/utils/src/Loadable.ts
6082
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/Loadable.ts
6905
6083
  var init_Loadable = __esm({
6906
- "node_modules/@pmate/utils/src/Loadable.ts"() {
6084
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/Loadable.ts"() {
6907
6085
  "use strict";
6908
6086
  }
6909
6087
  });
6910
6088
 
6911
- // node_modules/@pmate/utils/src/Logger.ts
6089
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/Logger.ts
6912
6090
  var Logger;
6913
6091
  var init_Logger = __esm({
6914
- "node_modules/@pmate/utils/src/Logger.ts"() {
6092
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/Logger.ts"() {
6915
6093
  "use strict";
6916
6094
  Logger = class _Logger {
6917
6095
  constructor(name) {
@@ -6936,21 +6114,21 @@ var init_Logger = __esm({
6936
6114
  }
6937
6115
  });
6938
6116
 
6939
- // node_modules/@pmate/utils/src/mapToReadingBook.ts
6117
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/mapToReadingBook.ts
6940
6118
  var init_mapToReadingBook = __esm({
6941
- "node_modules/@pmate/utils/src/mapToReadingBook.ts"() {
6119
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/mapToReadingBook.ts"() {
6942
6120
  "use strict";
6943
6121
  }
6944
6122
  });
6945
6123
 
6946
- // node_modules/@pmate/utils/src/memoize.ts
6124
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/memoize.ts
6947
6125
  var init_memoize = __esm({
6948
- "node_modules/@pmate/utils/src/memoize.ts"() {
6126
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/memoize.ts"() {
6949
6127
  "use strict";
6950
6128
  }
6951
6129
  });
6952
6130
 
6953
- // node_modules/@msgpack/msgpack/dist.esm/utils/utf8.mjs
6131
+ // node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/utils/utf8.mjs
6954
6132
  function utf8Count(str) {
6955
6133
  const strLength = str.length;
6956
6134
  let byteLength = 0;
@@ -7077,7 +6255,7 @@ function utf8Decode(bytes, inputOffset, byteLength) {
7077
6255
  }
7078
6256
  var sharedTextEncoder, TEXT_ENCODER_THRESHOLD, CHUNK_SIZE, sharedTextDecoder, TEXT_DECODER_THRESHOLD;
7079
6257
  var init_utf8 = __esm({
7080
- "node_modules/@msgpack/msgpack/dist.esm/utils/utf8.mjs"() {
6258
+ "node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/utils/utf8.mjs"() {
7081
6259
  "use strict";
7082
6260
  sharedTextEncoder = new TextEncoder();
7083
6261
  TEXT_ENCODER_THRESHOLD = 50;
@@ -7087,10 +6265,10 @@ var init_utf8 = __esm({
7087
6265
  }
7088
6266
  });
7089
6267
 
7090
- // node_modules/@msgpack/msgpack/dist.esm/ExtData.mjs
6268
+ // node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/ExtData.mjs
7091
6269
  var ExtData;
7092
6270
  var init_ExtData = __esm({
7093
- "node_modules/@msgpack/msgpack/dist.esm/ExtData.mjs"() {
6271
+ "node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/ExtData.mjs"() {
7094
6272
  "use strict";
7095
6273
  ExtData = class {
7096
6274
  type;
@@ -7103,10 +6281,10 @@ var init_ExtData = __esm({
7103
6281
  }
7104
6282
  });
7105
6283
 
7106
- // node_modules/@msgpack/msgpack/dist.esm/DecodeError.mjs
6284
+ // node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/DecodeError.mjs
7107
6285
  var DecodeError;
7108
6286
  var init_DecodeError = __esm({
7109
- "node_modules/@msgpack/msgpack/dist.esm/DecodeError.mjs"() {
6287
+ "node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/DecodeError.mjs"() {
7110
6288
  "use strict";
7111
6289
  DecodeError = class _DecodeError extends Error {
7112
6290
  constructor(message) {
@@ -7123,7 +6301,7 @@ var init_DecodeError = __esm({
7123
6301
  }
7124
6302
  });
7125
6303
 
7126
- // node_modules/@msgpack/msgpack/dist.esm/utils/int.mjs
6304
+ // node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/utils/int.mjs
7127
6305
  function setUint64(view, offset, value) {
7128
6306
  const high = value / 4294967296;
7129
6307
  const low = value;
@@ -7148,13 +6326,13 @@ function getUint64(view, offset) {
7148
6326
  }
7149
6327
  var UINT32_MAX;
7150
6328
  var init_int = __esm({
7151
- "node_modules/@msgpack/msgpack/dist.esm/utils/int.mjs"() {
6329
+ "node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/utils/int.mjs"() {
7152
6330
  "use strict";
7153
6331
  UINT32_MAX = 4294967295;
7154
6332
  }
7155
6333
  });
7156
6334
 
7157
- // node_modules/@msgpack/msgpack/dist.esm/timestamp.mjs
6335
+ // node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/timestamp.mjs
7158
6336
  function encodeTimeSpecToTimestamp({ sec, nsec }) {
7159
6337
  if (sec >= 0 && nsec >= 0 && sec <= TIMESTAMP64_MAX_SEC) {
7160
6338
  if (nsec === 0 && sec <= TIMESTAMP32_MAX_SEC) {
@@ -7227,7 +6405,7 @@ function decodeTimestampExtension(data) {
7227
6405
  }
7228
6406
  var EXT_TIMESTAMP, TIMESTAMP32_MAX_SEC, TIMESTAMP64_MAX_SEC, timestampExtension;
7229
6407
  var init_timestamp = __esm({
7230
- "node_modules/@msgpack/msgpack/dist.esm/timestamp.mjs"() {
6408
+ "node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/timestamp.mjs"() {
7231
6409
  "use strict";
7232
6410
  init_DecodeError();
7233
6411
  init_int();
@@ -7242,10 +6420,10 @@ var init_timestamp = __esm({
7242
6420
  }
7243
6421
  });
7244
6422
 
7245
- // node_modules/@msgpack/msgpack/dist.esm/ExtensionCodec.mjs
6423
+ // node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/ExtensionCodec.mjs
7246
6424
  var ExtensionCodec;
7247
6425
  var init_ExtensionCodec = __esm({
7248
- "node_modules/@msgpack/msgpack/dist.esm/ExtensionCodec.mjs"() {
6426
+ "node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/ExtensionCodec.mjs"() {
7249
6427
  "use strict";
7250
6428
  init_ExtData();
7251
6429
  init_timestamp();
@@ -7312,7 +6490,7 @@ var init_ExtensionCodec = __esm({
7312
6490
  }
7313
6491
  });
7314
6492
 
7315
- // node_modules/@msgpack/msgpack/dist.esm/utils/typedArrays.mjs
6493
+ // node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/utils/typedArrays.mjs
7316
6494
  function isArrayBufferLike(buffer) {
7317
6495
  return buffer instanceof ArrayBuffer || typeof SharedArrayBuffer !== "undefined" && buffer instanceof SharedArrayBuffer;
7318
6496
  }
@@ -7328,15 +6506,15 @@ function ensureUint8Array(buffer) {
7328
6506
  }
7329
6507
  }
7330
6508
  var init_typedArrays = __esm({
7331
- "node_modules/@msgpack/msgpack/dist.esm/utils/typedArrays.mjs"() {
6509
+ "node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/utils/typedArrays.mjs"() {
7332
6510
  "use strict";
7333
6511
  }
7334
6512
  });
7335
6513
 
7336
- // node_modules/@msgpack/msgpack/dist.esm/Encoder.mjs
6514
+ // node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/Encoder.mjs
7337
6515
  var DEFAULT_MAX_DEPTH, DEFAULT_INITIAL_BUFFER_SIZE, Encoder;
7338
6516
  var init_Encoder = __esm({
7339
- "node_modules/@msgpack/msgpack/dist.esm/Encoder.mjs"() {
6517
+ "node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/Encoder.mjs"() {
7340
6518
  "use strict";
7341
6519
  init_utf8();
7342
6520
  init_ExtensionCodec();
@@ -7746,32 +6924,32 @@ var init_Encoder = __esm({
7746
6924
  }
7747
6925
  });
7748
6926
 
7749
- // node_modules/@msgpack/msgpack/dist.esm/encode.mjs
6927
+ // node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/encode.mjs
7750
6928
  function encode(value, options) {
7751
6929
  const encoder2 = new Encoder(options);
7752
6930
  return encoder2.encodeSharedRef(value);
7753
6931
  }
7754
6932
  var init_encode = __esm({
7755
- "node_modules/@msgpack/msgpack/dist.esm/encode.mjs"() {
6933
+ "node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/encode.mjs"() {
7756
6934
  "use strict";
7757
6935
  init_Encoder();
7758
6936
  }
7759
6937
  });
7760
6938
 
7761
- // node_modules/@msgpack/msgpack/dist.esm/utils/prettyByte.mjs
6939
+ // node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/utils/prettyByte.mjs
7762
6940
  function prettyByte(byte) {
7763
6941
  return `${byte < 0 ? "-" : ""}0x${Math.abs(byte).toString(16).padStart(2, "0")}`;
7764
6942
  }
7765
6943
  var init_prettyByte = __esm({
7766
- "node_modules/@msgpack/msgpack/dist.esm/utils/prettyByte.mjs"() {
6944
+ "node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/utils/prettyByte.mjs"() {
7767
6945
  "use strict";
7768
6946
  }
7769
6947
  });
7770
6948
 
7771
- // node_modules/@msgpack/msgpack/dist.esm/CachedKeyDecoder.mjs
6949
+ // node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/CachedKeyDecoder.mjs
7772
6950
  var DEFAULT_MAX_KEY_LENGTH, DEFAULT_MAX_LENGTH_PER_KEY, CachedKeyDecoder;
7773
6951
  var init_CachedKeyDecoder = __esm({
7774
- "node_modules/@msgpack/msgpack/dist.esm/CachedKeyDecoder.mjs"() {
6952
+ "node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/CachedKeyDecoder.mjs"() {
7775
6953
  "use strict";
7776
6954
  init_utf8();
7777
6955
  DEFAULT_MAX_KEY_LENGTH = 16;
@@ -7831,10 +7009,10 @@ var init_CachedKeyDecoder = __esm({
7831
7009
  }
7832
7010
  });
7833
7011
 
7834
- // node_modules/@msgpack/msgpack/dist.esm/Decoder.mjs
7012
+ // node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/Decoder.mjs
7835
7013
  var STATE_ARRAY, STATE_MAP_KEY, STATE_MAP_VALUE, mapKeyConverter, StackPool, HEAD_BYTE_REQUIRED, EMPTY_VIEW, EMPTY_BYTES, MORE_DATA, sharedCachedKeyDecoder, Decoder;
7836
7014
  var init_Decoder = __esm({
7837
- "node_modules/@msgpack/msgpack/dist.esm/Decoder.mjs"() {
7015
+ "node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/Decoder.mjs"() {
7838
7016
  "use strict";
7839
7017
  init_prettyByte();
7840
7018
  init_ExtensionCodec();
@@ -8472,34 +7650,34 @@ var init_Decoder = __esm({
8472
7650
  }
8473
7651
  });
8474
7652
 
8475
- // node_modules/@msgpack/msgpack/dist.esm/decode.mjs
7653
+ // node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/decode.mjs
8476
7654
  function decode(buffer, options) {
8477
7655
  const decoder = new Decoder(options);
8478
7656
  return decoder.decode(buffer);
8479
7657
  }
8480
7658
  var init_decode = __esm({
8481
- "node_modules/@msgpack/msgpack/dist.esm/decode.mjs"() {
7659
+ "node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/decode.mjs"() {
8482
7660
  "use strict";
8483
7661
  init_Decoder();
8484
7662
  }
8485
7663
  });
8486
7664
 
8487
- // node_modules/@msgpack/msgpack/dist.esm/index.mjs
7665
+ // node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/index.mjs
8488
7666
  var init_dist = __esm({
8489
- "node_modules/@msgpack/msgpack/dist.esm/index.mjs"() {
7667
+ "node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/index.mjs"() {
8490
7668
  "use strict";
8491
7669
  init_encode();
8492
7670
  init_decode();
8493
7671
  }
8494
7672
  });
8495
7673
 
8496
- // node_modules/@pmate/utils/src/Msg.ts
7674
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/Msg.ts
8497
7675
  var encoder, Msg;
8498
7676
  var init_Msg = __esm({
8499
- "node_modules/@pmate/utils/src/Msg.ts"() {
7677
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/Msg.ts"() {
8500
7678
  "use strict";
8501
7679
  init_dist();
8502
- init_src4();
7680
+ init_src();
8503
7681
  init_compress();
8504
7682
  init_uniqHash();
8505
7683
  encoder = new TextEncoder();
@@ -8624,108 +7802,108 @@ var init_Msg = __esm({
8624
7802
  }
8625
7803
  });
8626
7804
 
8627
- // node_modules/@pmate/utils/src/normalize.ts
7805
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/normalize.ts
8628
7806
  var init_normalize = __esm({
8629
- "node_modules/@pmate/utils/src/normalize.ts"() {
7807
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/normalize.ts"() {
8630
7808
  "use strict";
8631
7809
  }
8632
7810
  });
8633
7811
 
8634
- // node_modules/@pmate/utils/src/pageURL.ts
7812
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/pageURL.ts
8635
7813
  var init_pageURL = __esm({
8636
- "node_modules/@pmate/utils/src/pageURL.ts"() {
7814
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/pageURL.ts"() {
8637
7815
  "use strict";
8638
7816
  }
8639
7817
  });
8640
7818
 
8641
- // node_modules/@pmate/utils/src/PromiseQueue.ts
7819
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/PromiseQueue.ts
8642
7820
  var init_PromiseQueue = __esm({
8643
- "node_modules/@pmate/utils/src/PromiseQueue.ts"() {
7821
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/PromiseQueue.ts"() {
8644
7822
  "use strict";
8645
7823
  }
8646
7824
  });
8647
7825
 
8648
- // node_modules/@pmate/utils/src/resourceKey.ts
7826
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/resourceKey.ts
8649
7827
  var import_js_sha33;
8650
7828
  var init_resourceKey = __esm({
8651
- "node_modules/@pmate/utils/src/resourceKey.ts"() {
7829
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/resourceKey.ts"() {
8652
7830
  "use strict";
8653
7831
  import_js_sha33 = __toESM(require_sha3(), 1);
8654
7832
  }
8655
7833
  });
8656
7834
 
8657
- // node_modules/@pmate/utils/src/SelectionHelper.ts
7835
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/SelectionHelper.ts
8658
7836
  var init_SelectionHelper = __esm({
8659
- "node_modules/@pmate/utils/src/SelectionHelper.ts"() {
7837
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/SelectionHelper.ts"() {
8660
7838
  "use strict";
8661
7839
  }
8662
7840
  });
8663
7841
 
8664
- // node_modules/@pmate/utils/src/setMinus.ts
7842
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/setMinus.ts
8665
7843
  var init_setMinus = __esm({
8666
- "node_modules/@pmate/utils/src/setMinus.ts"() {
7844
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/setMinus.ts"() {
8667
7845
  "use strict";
8668
7846
  }
8669
7847
  });
8670
7848
 
8671
- // node_modules/@pmate/utils/src/sha1Hash.ts
7849
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/sha1Hash.ts
8672
7850
  var init_sha1Hash = __esm({
8673
- "node_modules/@pmate/utils/src/sha1Hash.ts"() {
7851
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/sha1Hash.ts"() {
8674
7852
  "use strict";
8675
7853
  }
8676
7854
  });
8677
7855
 
8678
- // node_modules/@pmate/utils/src/TaskWaiter.ts
7856
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/TaskWaiter.ts
8679
7857
  var init_TaskWaiter = __esm({
8680
- "node_modules/@pmate/utils/src/TaskWaiter.ts"() {
7858
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/TaskWaiter.ts"() {
8681
7859
  "use strict";
8682
- init_src5();
7860
+ init_src3();
8683
7861
  }
8684
7862
  });
8685
7863
 
8686
- // node_modules/@pmate/utils/src/toSentenceAnalyze.ts
7864
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/toSentenceAnalyze.ts
8687
7865
  var init_toSentenceAnalyze = __esm({
8688
- "node_modules/@pmate/utils/src/toSentenceAnalyze.ts"() {
7866
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/toSentenceAnalyze.ts"() {
8689
7867
  "use strict";
8690
7868
  }
8691
7869
  });
8692
7870
 
8693
- // node_modules/@pmate/utils/src/txtBookToJson.ts
7871
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/txtBookToJson.ts
8694
7872
  var init_txtBookToJson = __esm({
8695
- "node_modules/@pmate/utils/src/txtBookToJson.ts"() {
7873
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/txtBookToJson.ts"() {
8696
7874
  "use strict";
8697
- init_src3();
7875
+ init_src2();
8698
7876
  }
8699
7877
  });
8700
7878
 
8701
- // node_modules/@pmate/utils/src/VocabularyMap.ts
7879
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/VocabularyMap.ts
8702
7880
  var init_VocabularyMap = __esm({
8703
- "node_modules/@pmate/utils/src/VocabularyMap.ts"() {
7881
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/VocabularyMap.ts"() {
8704
7882
  "use strict";
8705
7883
  init_Emitter();
8706
7884
  }
8707
7885
  });
8708
7886
 
8709
- // node_modules/@pmate/utils/src/wait.ts
7887
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/wait.ts
8710
7888
  var init_wait = __esm({
8711
- "node_modules/@pmate/utils/src/wait.ts"() {
7889
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/wait.ts"() {
8712
7890
  "use strict";
8713
7891
  }
8714
7892
  });
8715
7893
 
8716
- // node_modules/@pmate/utils/src/wordCount.ts
7894
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/wordCount.ts
8717
7895
  var init_wordCount = __esm({
8718
- "node_modules/@pmate/utils/src/wordCount.ts"() {
7896
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/wordCount.ts"() {
8719
7897
  "use strict";
8720
7898
  }
8721
7899
  });
8722
7900
 
8723
- // node_modules/@pmate/utils/src/websocket/WebsocketHeartbeat.ts
7901
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/websocket/WebsocketHeartbeat.ts
8724
7902
  var logger, WebsocketHeartbeat;
8725
7903
  var init_WebsocketHeartbeat = __esm({
8726
- "node_modules/@pmate/utils/src/websocket/WebsocketHeartbeat.ts"() {
7904
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/websocket/WebsocketHeartbeat.ts"() {
8727
7905
  "use strict";
8728
- init_src4();
7906
+ init_src();
8729
7907
  init_Logger();
8730
7908
  logger = Logger.getDebugger("heartbeat");
8731
7909
  WebsocketHeartbeat = class {
@@ -8764,12 +7942,12 @@ var init_WebsocketHeartbeat = __esm({
8764
7942
  }
8765
7943
  });
8766
7944
 
8767
- // node_modules/@pmate/utils/src/websocket/WebsocketClient.ts
7945
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/websocket/WebsocketClient.ts
8768
7946
  var logger2;
8769
7947
  var init_WebsocketClient = __esm({
8770
- "node_modules/@pmate/utils/src/websocket/WebsocketClient.ts"() {
7948
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/websocket/WebsocketClient.ts"() {
8771
7949
  "use strict";
8772
- init_src4();
7950
+ init_src();
8773
7951
  init_Emitter();
8774
7952
  init_Logger();
8775
7953
  init_Msg();
@@ -8778,7 +7956,7 @@ var init_WebsocketClient = __esm({
8778
7956
  }
8779
7957
  });
8780
7958
 
8781
- // node_modules/@pmate/utils/src/websocket/WebsocketClientV2.ts
7959
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/websocket/WebsocketClientV2.ts
8782
7960
  function isEventLike(value) {
8783
7961
  return typeof value === "object" && value !== null && "type" in value && typeof value.type === "string";
8784
7962
  }
@@ -8787,9 +7965,9 @@ function isCloseEvent(value) {
8787
7965
  }
8788
7966
  var logger3, WebsocketClientV2;
8789
7967
  var init_WebsocketClientV2 = __esm({
8790
- "node_modules/@pmate/utils/src/websocket/WebsocketClientV2.ts"() {
7968
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/websocket/WebsocketClientV2.ts"() {
8791
7969
  "use strict";
8792
- init_src4();
7970
+ init_src();
8793
7971
  init_AsyncStream();
8794
7972
  init_Logger();
8795
7973
  init_Msg();
@@ -9034,10 +8212,10 @@ var init_WebsocketClientV2 = __esm({
9034
8212
  }
9035
8213
  });
9036
8214
 
9037
- // node_modules/@pmate/utils/src/websocket/H3Client.ts
8215
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/websocket/H3Client.ts
9038
8216
  var logger4;
9039
8217
  var init_H3Client = __esm({
9040
- "node_modules/@pmate/utils/src/websocket/H3Client.ts"() {
8218
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/websocket/H3Client.ts"() {
9041
8219
  "use strict";
9042
8220
  init_Emitter();
9043
8221
  init_Logger();
@@ -9047,9 +8225,9 @@ var init_H3Client = __esm({
9047
8225
  }
9048
8226
  });
9049
8227
 
9050
- // node_modules/@pmate/utils/src/websocket/index.ts
8228
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/websocket/index.ts
9051
8229
  var init_websocket = __esm({
9052
- "node_modules/@pmate/utils/src/websocket/index.ts"() {
8230
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/websocket/index.ts"() {
9053
8231
  "use strict";
9054
8232
  init_WebsocketClient();
9055
8233
  init_WebsocketClientV2();
@@ -9057,9 +8235,9 @@ var init_websocket = __esm({
9057
8235
  }
9058
8236
  });
9059
8237
 
9060
- // node_modules/@pmate/utils/src/index.ts
9061
- var init_src5 = __esm({
9062
- "node_modules/@pmate/utils/src/index.ts"() {
8238
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/index.ts
8239
+ var init_src3 = __esm({
8240
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/index.ts"() {
9063
8241
  "use strict";
9064
8242
  init_base64();
9065
8243
  init_batchResolve();
@@ -9099,7 +8277,7 @@ var init_src5 = __esm({
9099
8277
  }
9100
8278
  });
9101
8279
 
9102
- // node_modules/@pmate/agent-sdk/dist/debug.js
8280
+ // node_modules/.pnpm/@pmate+agent-sdk@1.1.18/node_modules/@pmate/agent-sdk/dist/debug.js
9103
8281
  function isDebugEnabled() {
9104
8282
  return process.env.DEBUG === "1";
9105
8283
  }
@@ -9114,12 +8292,12 @@ function debugLog(message, data) {
9114
8292
  console.log(message, data);
9115
8293
  }
9116
8294
  var init_debug = __esm({
9117
- "node_modules/@pmate/agent-sdk/dist/debug.js"() {
8295
+ "node_modules/.pnpm/@pmate+agent-sdk@1.1.18/node_modules/@pmate/agent-sdk/dist/debug.js"() {
9118
8296
  "use strict";
9119
8297
  }
9120
8298
  });
9121
8299
 
9122
- // node_modules/@pmate/agent-sdk/dist/AgentConnectionPool.js
8300
+ // node_modules/.pnpm/@pmate+agent-sdk@1.1.18/node_modules/@pmate/agent-sdk/dist/AgentConnectionPool.js
9123
8301
  function ensureProtocol(value, protocol) {
9124
8302
  if (!value) {
9125
8303
  return "";
@@ -9151,10 +8329,10 @@ function hashToken(token) {
9151
8329
  }
9152
8330
  var IDLE_CLOSE_MS, pool, AgentConnectionPool, AgentPooledConnection;
9153
8331
  var init_AgentConnectionPool = __esm({
9154
- "node_modules/@pmate/agent-sdk/dist/AgentConnectionPool.js"() {
8332
+ "node_modules/.pnpm/@pmate+agent-sdk@1.1.18/node_modules/@pmate/agent-sdk/dist/AgentConnectionPool.js"() {
9155
8333
  "use strict";
9156
8334
  init_src();
9157
- init_src5();
8335
+ init_src3();
9158
8336
  init_debug();
9159
8337
  IDLE_CLOSE_MS = 5e3;
9160
8338
  pool = /* @__PURE__ */ new Map();
@@ -9398,12 +8576,12 @@ var init_AgentConnectionPool = __esm({
9398
8576
  }
9399
8577
  });
9400
8578
 
9401
- // node_modules/@pmate/agent-sdk/dist/AgentTaskManager.js
8579
+ // node_modules/.pnpm/@pmate+agent-sdk@1.1.18/node_modules/@pmate/agent-sdk/dist/AgentTaskManager.js
9402
8580
  var AgentTaskManager;
9403
8581
  var init_AgentTaskManager = __esm({
9404
- "node_modules/@pmate/agent-sdk/dist/AgentTaskManager.js"() {
8582
+ "node_modules/.pnpm/@pmate+agent-sdk@1.1.18/node_modules/@pmate/agent-sdk/dist/AgentTaskManager.js"() {
9405
8583
  "use strict";
9406
- init_src5();
8584
+ init_src3();
9407
8585
  init_debug();
9408
8586
  AgentTaskManager = class {
9409
8587
  constructor() {
@@ -9570,7 +8748,7 @@ var init_AgentTaskManager = __esm({
9570
8748
  }
9571
8749
  });
9572
8750
 
9573
- // node_modules/@pmate/agent-sdk/dist/promptMany.js
8751
+ // node_modules/.pnpm/@pmate+agent-sdk@1.1.18/node_modules/@pmate/agent-sdk/dist/promptMany.js
9574
8752
  async function mapWithConcurrency(inputs, concurrency, run) {
9575
8753
  if (!Number.isInteger(concurrency) || concurrency < 1) {
9576
8754
  throw new Error("concurrency must be a positive integer");
@@ -9602,12 +8780,12 @@ async function mapWithConcurrency(inputs, concurrency, run) {
9602
8780
  return results;
9603
8781
  }
9604
8782
  var init_promptMany = __esm({
9605
- "node_modules/@pmate/agent-sdk/dist/promptMany.js"() {
8783
+ "node_modules/.pnpm/@pmate+agent-sdk@1.1.18/node_modules/@pmate/agent-sdk/dist/promptMany.js"() {
9606
8784
  "use strict";
9607
8785
  }
9608
8786
  });
9609
8787
 
9610
- // node_modules/@pmate/agent-sdk/dist/AgentClient.js
8788
+ // node_modules/.pnpm/@pmate+agent-sdk@1.1.18/node_modules/@pmate/agent-sdk/dist/AgentClient.js
9611
8789
  function isPromptBatchTerminal(status) {
9612
8790
  return status === "completed" || status === "failed" || status === "expired" || status === "cancelled";
9613
8791
  }
@@ -9628,10 +8806,10 @@ function createAgentRequestBody(payload) {
9628
8806
  }
9629
8807
  var logger5, DEFAULT_TIMEOUT_MS, DEFAULT_STREAM_TIMEOUT_MS, DEFAULT_MIN_CHUNK_SIZE_BYTES, AgentClient;
9630
8808
  var init_AgentClient = __esm({
9631
- "node_modules/@pmate/agent-sdk/dist/AgentClient.js"() {
8809
+ "node_modules/.pnpm/@pmate+agent-sdk@1.1.18/node_modules/@pmate/agent-sdk/dist/AgentClient.js"() {
9632
8810
  "use strict";
9633
8811
  init_src();
9634
- init_src5();
8812
+ init_src3();
9635
8813
  init_AgentConnectionPool();
9636
8814
  init_AgentTaskManager();
9637
8815
  init_debug();
@@ -10000,62 +9178,62 @@ var init_AgentClient = __esm({
10000
9178
  }
10001
9179
  });
10002
9180
 
10003
- // node_modules/@pmate/agent-sdk/dist/AgentRuntime.js
9181
+ // node_modules/.pnpm/@pmate+agent-sdk@1.1.18/node_modules/@pmate/agent-sdk/dist/AgentRuntime.js
10004
9182
  var init_AgentRuntime = __esm({
10005
- "node_modules/@pmate/agent-sdk/dist/AgentRuntime.js"() {
9183
+ "node_modules/.pnpm/@pmate+agent-sdk@1.1.18/node_modules/@pmate/agent-sdk/dist/AgentRuntime.js"() {
10006
9184
  "use strict";
10007
9185
  init_src();
10008
- init_src5();
9186
+ init_src3();
10009
9187
  }
10010
9188
  });
10011
9189
 
10012
- // node_modules/@pmate/agent-sdk/dist/PromptTaskContext.js
9190
+ // node_modules/.pnpm/@pmate+agent-sdk@1.1.18/node_modules/@pmate/agent-sdk/dist/PromptTaskContext.js
10013
9191
  var init_PromptTaskContext = __esm({
10014
- "node_modules/@pmate/agent-sdk/dist/PromptTaskContext.js"() {
9192
+ "node_modules/.pnpm/@pmate+agent-sdk@1.1.18/node_modules/@pmate/agent-sdk/dist/PromptTaskContext.js"() {
10015
9193
  "use strict";
10016
9194
  }
10017
9195
  });
10018
9196
 
10019
- // node_modules/@pmate/agent-sdk/dist/PromptAgent.js
9197
+ // node_modules/.pnpm/@pmate+agent-sdk@1.1.18/node_modules/@pmate/agent-sdk/dist/PromptAgent.js
10020
9198
  var init_PromptAgent = __esm({
10021
- "node_modules/@pmate/agent-sdk/dist/PromptAgent.js"() {
9199
+ "node_modules/.pnpm/@pmate+agent-sdk@1.1.18/node_modules/@pmate/agent-sdk/dist/PromptAgent.js"() {
10022
9200
  "use strict";
10023
9201
  init_src();
10024
- init_src5();
9202
+ init_src3();
10025
9203
  init_debug();
10026
9204
  init_AgentRuntime();
10027
9205
  init_PromptTaskContext();
10028
9206
  }
10029
9207
  });
10030
9208
 
10031
- // node_modules/@pmate/agent-sdk/dist/StreamTaskContext.js
9209
+ // node_modules/.pnpm/@pmate+agent-sdk@1.1.18/node_modules/@pmate/agent-sdk/dist/StreamTaskContext.js
10032
9210
  var init_StreamTaskContext = __esm({
10033
- "node_modules/@pmate/agent-sdk/dist/StreamTaskContext.js"() {
9211
+ "node_modules/.pnpm/@pmate+agent-sdk@1.1.18/node_modules/@pmate/agent-sdk/dist/StreamTaskContext.js"() {
10034
9212
  "use strict";
10035
9213
  }
10036
9214
  });
10037
9215
 
10038
- // node_modules/@pmate/agent-sdk/dist/StreamAgent.js
9216
+ // node_modules/.pnpm/@pmate+agent-sdk@1.1.18/node_modules/@pmate/agent-sdk/dist/StreamAgent.js
10039
9217
  var init_StreamAgent = __esm({
10040
- "node_modules/@pmate/agent-sdk/dist/StreamAgent.js"() {
9218
+ "node_modules/.pnpm/@pmate+agent-sdk@1.1.18/node_modules/@pmate/agent-sdk/dist/StreamAgent.js"() {
10041
9219
  "use strict";
10042
9220
  init_src();
10043
- init_src5();
9221
+ init_src3();
10044
9222
  init_AgentRuntime();
10045
9223
  init_StreamTaskContext();
10046
9224
  }
10047
9225
  });
10048
9226
 
10049
- // node_modules/@pmate/agent-sdk/dist/AgentFactory.js
9227
+ // node_modules/.pnpm/@pmate+agent-sdk@1.1.18/node_modules/@pmate/agent-sdk/dist/AgentFactory.js
10050
9228
  var init_AgentFactory = __esm({
10051
- "node_modules/@pmate/agent-sdk/dist/AgentFactory.js"() {
9229
+ "node_modules/.pnpm/@pmate+agent-sdk@1.1.18/node_modules/@pmate/agent-sdk/dist/AgentFactory.js"() {
10052
9230
  "use strict";
10053
9231
  init_PromptAgent();
10054
9232
  init_StreamAgent();
10055
9233
  }
10056
9234
  });
10057
9235
 
10058
- // node_modules/@pmate/agent-sdk/dist/AgentService.js
9236
+ // node_modules/.pnpm/@pmate+agent-sdk@1.1.18/node_modules/@pmate/agent-sdk/dist/AgentService.js
10059
9237
  function parseAgentId(agentId) {
10060
9238
  const separatorIndex = agentId.indexOf(":");
10061
9239
  if (separatorIndex <= 0 || separatorIndex === agentId.length - 1) {
@@ -10085,7 +9263,7 @@ function trimTrailingSlash(value) {
10085
9263
  }
10086
9264
  var AgentService;
10087
9265
  var init_AgentService = __esm({
10088
- "node_modules/@pmate/agent-sdk/dist/AgentService.js"() {
9266
+ "node_modules/.pnpm/@pmate+agent-sdk@1.1.18/node_modules/@pmate/agent-sdk/dist/AgentService.js"() {
10089
9267
  "use strict";
10090
9268
  AgentService = class {
10091
9269
  constructor(options) {
@@ -10126,9 +9304,9 @@ var init_AgentService = __esm({
10126
9304
  }
10127
9305
  });
10128
9306
 
10129
- // node_modules/@pmate/agent-sdk/dist/index.js
9307
+ // node_modules/.pnpm/@pmate+agent-sdk@1.1.18/node_modules/@pmate/agent-sdk/dist/index.js
10130
9308
  var init_dist2 = __esm({
10131
- "node_modules/@pmate/agent-sdk/dist/index.js"() {
9309
+ "node_modules/.pnpm/@pmate+agent-sdk@1.1.18/node_modules/@pmate/agent-sdk/dist/index.js"() {
10132
9310
  "use strict";
10133
9311
  init_AgentClient();
10134
9312
  init_AgentFactory();
@@ -10139,7 +9317,7 @@ var init_dist2 = __esm({
10139
9317
  init_AgentService();
10140
9318
  init_debug();
10141
9319
  init_promptMany();
10142
- init_src5();
9320
+ init_src3();
10143
9321
  }
10144
9322
  });
10145
9323
 
@@ -17669,7 +16847,19 @@ function compareNullableIsoDesc(left, right) {
17669
16847
  function formatBotMessage(message) {
17670
16848
  const sender = message.sender ? `${message.sender}: ` : "";
17671
16849
  const files = formatBotMessageFiles(message.files);
17672
- return `[${message.sentAt}] ${sender}${message.body}${files ? ` ${files}` : ""}`;
16850
+ const history = formatBotMessageHistory(message.history);
16851
+ return `[${message.sentAt}] ${sender}${message.body}${files ? ` ${files}` : ""}${history}`;
16852
+ }
16853
+ function formatBotMessageHistory(history, depth = 0) {
16854
+ if (!Array.isArray(history) || history.length === 0) return "";
16855
+ const indent = " ".repeat(depth + 1);
16856
+ return history.map((item) => {
16857
+ const author = item.authorName || item.author || "Unknown";
16858
+ const timestamp = item.sentAt ? ` [${item.sentAt}]` : "";
16859
+ const nested = formatBotMessageHistory(item.history, depth + 1);
16860
+ return `
16861
+ ${indent}${author}${timestamp}: ${item.body}${nested}`;
16862
+ }).join("");
17673
16863
  }
17674
16864
  function formatBotMessageFiles(files) {
17675
16865
  if (!Array.isArray(files) || files.length === 0) return "";
@@ -18329,8 +17519,9 @@ function normalizeNamespace(value) {
18329
17519
  return normalized;
18330
17520
  }
18331
17521
  var IndexerClient = class {
18332
- constructor(baseUrl) {
17522
+ constructor(baseUrl, headers = {}) {
18333
17523
  this.baseUrl = baseUrl;
17524
+ this.headers = headers;
18334
17525
  }
18335
17526
  async requestByPath(pathSegments, options = {}) {
18336
17527
  const method = options.method ?? "GET";
@@ -18341,6 +17532,7 @@ var IndexerClient = class {
18341
17532
  method,
18342
17533
  headers: {
18343
17534
  Accept: "application/json",
17535
+ ...this.headers,
18344
17536
  ...method === "POST" ? { "Content-Type": "application/json" } : {}
18345
17537
  },
18346
17538
  ...method === "POST" ? { body: JSON.stringify(options.query ?? {}) } : {}
@@ -18351,9 +17543,10 @@ var IndexerClient = class {
18351
17543
  }
18352
17544
  };
18353
17545
  var BlockLogAppender = class {
18354
- constructor(chainId, baseUrl) {
17546
+ constructor(chainId, baseUrl, headers = {}) {
18355
17547
  this.chainId = chainId;
18356
17548
  this.baseUrl = baseUrl;
17549
+ this.headers = headers;
18357
17550
  }
18358
17551
  async append(logs) {
18359
17552
  if (!logs.length) return;
@@ -18362,7 +17555,7 @@ var BlockLogAppender = class {
18362
17555
  method: "POST",
18363
17556
  headers: {
18364
17557
  "Content-Type": "application/json",
18365
- ...process.env.TSDB_BEARER_TOKEN ? { authorization: `Bearer ${process.env.TSDB_BEARER_TOKEN}` } : {}
17558
+ ...this.headers
18366
17559
  },
18367
17560
  body: JSON.stringify({ logs })
18368
17561
  }).then(async (response) => {
@@ -18375,7 +17568,10 @@ var BlockLogAppender = class {
18375
17568
  var Namespace = class {
18376
17569
  constructor(options) {
18377
17570
  this.options = options;
18378
- this.indexerClient = new IndexerClient(options.indexerBaseUrl.replace(/\/+$/, ""));
17571
+ this.indexerClient = new IndexerClient(
17572
+ options.indexerBaseUrl.replace(/\/+$/, ""),
17573
+ options.headers
17574
+ );
18379
17575
  }
18380
17576
  getAppender() {
18381
17577
  if (!this.options.baseUrl) {
@@ -18383,7 +17579,14 @@ var Namespace = class {
18383
17579
  "Missing store base URL. Provide --base-url or set PMATE_STORE_BASE_URL / BLOCKCHAIN_BASE_URL."
18384
17580
  );
18385
17581
  }
18386
- return new BlockLogAppender(this.options.chain, this.options.baseUrl.replace(/\/+$/, ""));
17582
+ return new BlockLogAppender(
17583
+ this.options.chain,
17584
+ this.options.baseUrl.replace(/\/+$/, ""),
17585
+ {
17586
+ ...this.options.headers,
17587
+ ...this.options.proxyToken ? { "X-Proxy-Token": this.options.proxyToken } : {}
17588
+ }
17589
+ );
18387
17590
  }
18388
17591
  table(name) {
18389
17592
  const descriptor = createDescriptor({
@@ -19102,6 +18305,7 @@ var NsCommandHandler = class {
19102
18305
  // src/commands/StoreCommandHandler.ts
19103
18306
  var import_node_fs17 = require("fs");
19104
18307
  var import_node_path22 = __toESM(require("path"));
18308
+ init_sessionStore();
19105
18309
  var StoreCommandHandler = class {
19106
18310
  async handle(args) {
19107
18311
  if (args.scope === "namespace") {
@@ -19192,13 +18396,21 @@ var StoreCommandHandler = class {
19192
18396
  }
19193
18397
  createNamespace(args) {
19194
18398
  const needsWriteBaseUrl = args.scope === "table" && (args.action === "create" || args.action === "update" || args.action === "delete") || args.scope === "kv" && (args.action === "set" || args.action === "delete");
18399
+ const headers = this.resolveMetaAuthHeaders(args.chain);
19195
18400
  return new Namespace({
19196
18401
  chain: args.chain,
19197
18402
  ns: args.namespace,
19198
18403
  baseUrl: needsWriteBaseUrl ? this.resolveBaseUrl(args.baseUrl) : args.baseUrl,
19199
- indexerBaseUrl: this.resolveIndexerBaseUrl(args.indexerBaseUrl)
18404
+ indexerBaseUrl: this.resolveIndexerBaseUrl(args.indexerBaseUrl),
18405
+ headers,
18406
+ proxyToken: process.env.PMATE_CHAIN_PROXY_TOKEN
19200
18407
  });
19201
18408
  }
18409
+ resolveMetaAuthHeaders(chain) {
18410
+ if (chain !== "meta") return void 0;
18411
+ const token = readRequiredSession({ preferredApp: DEFAULT_APP_ID }).token;
18412
+ return { Authorization: `Bearer ${token}` };
18413
+ }
19202
18414
  resolveBaseUrl(baseUrl) {
19203
18415
  const resolved = baseUrl || process.env.PMATE_STORE_BASE_URL || process.env.BLOCKCHAIN_BASE_URL;
19204
18416
  if (!resolved) {
@@ -19234,7 +18446,10 @@ var StoreCommandHandler = class {
19234
18446
  const baseUrl = this.resolveIndexerBaseUrl(args.indexerBaseUrl);
19235
18447
  const url = new URL(`/chains/${encodeURIComponent(args.chain)}/namespaces`, `${baseUrl}/`);
19236
18448
  const response = await fetch(url.toString(), {
19237
- headers: { Accept: "application/json" }
18449
+ headers: {
18450
+ Accept: "application/json",
18451
+ ...this.resolveMetaAuthHeaders(args.chain)
18452
+ }
19238
18453
  });
19239
18454
  const payload = await response.json();
19240
18455
  if (!response.ok || !payload?.success) {
@@ -23799,7 +23014,6 @@ var AccountCommandHandler = class {
23799
23014
  app: args.app,
23800
23015
  name: args.name,
23801
23016
  namespace: args.namespace,
23802
- scopes: args.scopes,
23803
23017
  expiresAt: args.expiresAt
23804
23018
  }
23805
23019
  );
@@ -24156,7 +23370,6 @@ var AccountCommandHandler = class {
24156
23370
  app: result.key.app,
24157
23371
  name: result.key.name,
24158
23372
  namespace: result.key.namespace,
24159
- scopes: result.key.scopes,
24160
23373
  expiresAt: result.key.expiresAt
24161
23374
  });
24162
23375
  }
@@ -24174,7 +23387,6 @@ var AccountCommandHandler = class {
24174
23387
  app: item.app,
24175
23388
  name: item.name,
24176
23389
  namespace: item.namespace,
24177
- scopes: item.scopes,
24178
23390
  status: item.status,
24179
23391
  expiresAt: item.expiresAt,
24180
23392
  lastUsedAt: item.lastUsedAt,
@@ -27134,7 +26346,6 @@ function parseAccountArgs(tokens) {
27134
26346
  let id;
27135
26347
  let name;
27136
26348
  let namespace2;
27137
- const scopes = [];
27138
26349
  let expiresAt;
27139
26350
  let out;
27140
26351
  let key;
@@ -27156,9 +26367,6 @@ function parseAccountArgs(tokens) {
27156
26367
  case "--namespace":
27157
26368
  namespace2 = requireValue8(rest, token);
27158
26369
  break;
27159
- case "--scope":
27160
- scopes.push(requireValue8(rest, token));
27161
- break;
27162
26370
  case "--expires-at":
27163
26371
  expiresAt = requireValue8(rest, token);
27164
26372
  break;
@@ -27195,10 +26403,10 @@ function parseAccountArgs(tokens) {
27195
26403
  }
27196
26404
  }
27197
26405
  if (keyAction === "create") {
27198
- if (!app || !name || scopes.length === 0 || !expiresAt) {
27199
- throw new Error("Usage: account access-key create --app <ns:app> --name <name> --scope <scope>... (--expires-at <iso> | --expires-in <duration>) [--namespace <ns>] [--out <path>] [--base-url <url>] [--json]");
26406
+ if (!app || !name) {
26407
+ throw new Error("Usage: account access-key create --app <ns:app> --name <name> [--expires-at <iso> | --expires-in <duration>] [--namespace <ns>] [--out <path>] [--base-url <url>] [--json]");
27200
26408
  }
27201
- return { type: "account" /* Account */, action: "access-key-create", app, name, namespace: namespace2, scopes, expiresAt, out, baseUrl: baseUrl2, json: json2 };
26409
+ return { type: "account" /* Account */, action: "access-key-create", app, name, namespace: namespace2, expiresAt, out, baseUrl: baseUrl2, json: json2 };
27202
26410
  }
27203
26411
  if (keyAction === "list") {
27204
26412
  return { type: "account" /* Account */, action: "access-key-list", app, namespace: namespace2, baseUrl: baseUrl2, json: json2 };
@@ -27210,8 +26418,8 @@ function parseAccountArgs(tokens) {
27210
26418
  return { type: "account" /* Account */, action: "access-key-disable", id, baseUrl: baseUrl2, json: json2 };
27211
26419
  }
27212
26420
  if (keyAction === "rotate") {
27213
- if (!id || !expiresAt) {
27214
- throw new Error("Usage: account access-key rotate <id> (--expires-at <iso> | --expires-in <duration>) [--grace-period <duration>] [--out <path>] [--base-url <url>] [--json]");
26421
+ if (!id) {
26422
+ throw new Error("Usage: account access-key rotate <id> [--expires-at <iso> | --expires-in <duration>] [--grace-period <duration>] [--out <path>] [--base-url <url>] [--json]");
27215
26423
  }
27216
26424
  return { type: "account" /* Account */, action: "access-key-rotate", id, expiresAt, gracePeriodSeconds, out, baseUrl: baseUrl2, json: json2 };
27217
26425
  }
@@ -28216,9 +27424,9 @@ var HELP_TEXT = [
28216
27424
  ` ${import_chalk4.default.gray(" bot list --app <ns:app> [--base-url <url>] [--json]")}`,
28217
27425
  ` ${import_chalk4.default.gray(" bot login --app <ns:app> --name <name> (--key-file <path> | --private-key <key>) [--base-url <url>] [--json]")}`,
28218
27426
  ` ${import_chalk4.default.gray(" bot profile create --app <ns:app> --name <name> --nickname <nickname> [--role <role>] [--base-url <url>] [--json]")}`,
28219
- ` ${import_chalk4.default.gray(" access-key create --app <ns:app> --name <name> --scope <scope>... (--expires-at <iso> | --expires-in <duration>) [--namespace <ns>] [--out <path>] [--base-url <url>] [--json]")}`,
27427
+ ` ${import_chalk4.default.gray(" access-key create --app <ns:app> --name <name> [--expires-at <iso> | --expires-in <duration>] [--namespace <ns>] [--out <path>] [--base-url <url>] [--json]")}`,
28220
27428
  ` ${import_chalk4.default.gray(" access-key list [--app <ns:app>] [--namespace <ns>] [--base-url <url>] [--json]")}`,
28221
- ` ${import_chalk4.default.gray(" access-key rotate <id> (--expires-at <iso> | --expires-in <duration>) [--grace-period <duration>] [--out <path>] [--base-url <url>] [--json]")}`,
27429
+ ` ${import_chalk4.default.gray(" access-key rotate <id> [--expires-at <iso> | --expires-in <duration>] [--grace-period <duration>] [--out <path>] [--base-url <url>] [--json]")}`,
28222
27430
  ` ${import_chalk4.default.gray(" access-key disable <id> [--base-url <url>] [--json]")}`,
28223
27431
  ` ${import_chalk4.default.gray(" access-key login --app <ns:app> (--key <secret> | --key-file <path>) [--base-url <url>] [--json]")}`,
28224
27432
  ` ${import_chalk4.default.gray(" default base URL: https://auth-api-v2.pmate.chat")}`,