@pmate/cli 0.25.10 → 0.25.11
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 +1207 -376
- package/package.json +17 -10
package/dist/index.js
CHANGED
|
@@ -293,160 +293,157 @@ var init_sessionStore = __esm({
|
|
|
293
293
|
}
|
|
294
294
|
});
|
|
295
295
|
|
|
296
|
-
// node_modules
|
|
296
|
+
// node_modules/@pmate/meta/src/types/account.types.ts
|
|
297
297
|
var init_account_types = __esm({
|
|
298
|
-
"node_modules
|
|
298
|
+
"node_modules/@pmate/meta/src/types/account.types.ts"() {
|
|
299
299
|
"use strict";
|
|
300
300
|
}
|
|
301
301
|
});
|
|
302
302
|
|
|
303
|
-
// node_modules
|
|
303
|
+
// node_modules/@pmate/meta/src/types/achievements.types.ts
|
|
304
304
|
var init_achievements_types = __esm({
|
|
305
|
-
"node_modules
|
|
305
|
+
"node_modules/@pmate/meta/src/types/achievements.types.ts"() {
|
|
306
306
|
"use strict";
|
|
307
307
|
}
|
|
308
308
|
});
|
|
309
309
|
|
|
310
|
-
// node_modules
|
|
310
|
+
// node_modules/@pmate/meta/src/types/aigen.types.ts
|
|
311
311
|
var init_aigen_types = __esm({
|
|
312
|
-
"node_modules
|
|
312
|
+
"node_modules/@pmate/meta/src/types/aigen.types.ts"() {
|
|
313
313
|
"use strict";
|
|
314
314
|
}
|
|
315
315
|
});
|
|
316
316
|
|
|
317
|
-
// node_modules
|
|
317
|
+
// node_modules/@pmate/meta/src/types/agent.types.ts
|
|
318
318
|
var init_agent_types = __esm({
|
|
319
|
-
"node_modules
|
|
319
|
+
"node_modules/@pmate/meta/src/types/agent.types.ts"() {
|
|
320
320
|
"use strict";
|
|
321
321
|
}
|
|
322
322
|
});
|
|
323
323
|
|
|
324
|
-
// node_modules
|
|
324
|
+
// node_modules/@pmate/meta/src/types/agent-registry.types.ts
|
|
325
325
|
var init_agent_registry_types = __esm({
|
|
326
|
-
"node_modules
|
|
326
|
+
"node_modules/@pmate/meta/src/types/agent-registry.types.ts"() {
|
|
327
327
|
"use strict";
|
|
328
328
|
}
|
|
329
329
|
});
|
|
330
330
|
|
|
331
|
-
// node_modules
|
|
331
|
+
// node_modules/@pmate/meta/src/types/runner-registry.types.ts
|
|
332
332
|
var init_runner_registry_types = __esm({
|
|
333
|
-
"node_modules
|
|
333
|
+
"node_modules/@pmate/meta/src/types/runner-registry.types.ts"() {
|
|
334
334
|
"use strict";
|
|
335
335
|
}
|
|
336
336
|
});
|
|
337
337
|
|
|
338
|
-
// node_modules
|
|
338
|
+
// node_modules/@pmate/meta/src/types/blockchain.types.ts
|
|
339
339
|
var init_blockchain_types = __esm({
|
|
340
|
-
"node_modules
|
|
340
|
+
"node_modules/@pmate/meta/src/types/blockchain.types.ts"() {
|
|
341
341
|
"use strict";
|
|
342
342
|
}
|
|
343
343
|
});
|
|
344
344
|
|
|
345
|
-
// node_modules
|
|
345
|
+
// node_modules/@pmate/meta/src/types/breakdown.types.ts
|
|
346
346
|
var init_breakdown_types = __esm({
|
|
347
|
-
"node_modules
|
|
347
|
+
"node_modules/@pmate/meta/src/types/breakdown.types.ts"() {
|
|
348
348
|
"use strict";
|
|
349
349
|
}
|
|
350
350
|
});
|
|
351
351
|
|
|
352
|
-
// node_modules
|
|
352
|
+
// node_modules/@pmate/meta/src/types/chat.types.ts
|
|
353
353
|
var init_chat_types = __esm({
|
|
354
|
-
"node_modules
|
|
354
|
+
"node_modules/@pmate/meta/src/types/chat.types.ts"() {
|
|
355
355
|
"use strict";
|
|
356
356
|
}
|
|
357
357
|
});
|
|
358
358
|
|
|
359
|
-
// node_modules
|
|
359
|
+
// node_modules/@pmate/meta/src/types/companion.types.ts
|
|
360
360
|
var init_companion_types = __esm({
|
|
361
|
-
"node_modules
|
|
361
|
+
"node_modules/@pmate/meta/src/types/companion.types.ts"() {
|
|
362
362
|
"use strict";
|
|
363
363
|
}
|
|
364
364
|
});
|
|
365
365
|
|
|
366
|
-
// node_modules
|
|
366
|
+
// node_modules/@pmate/meta/src/types/enums.ts
|
|
367
367
|
var init_enums = __esm({
|
|
368
|
-
"node_modules
|
|
368
|
+
"node_modules/@pmate/meta/src/types/enums.ts"() {
|
|
369
369
|
"use strict";
|
|
370
370
|
}
|
|
371
371
|
});
|
|
372
372
|
|
|
373
|
-
// node_modules
|
|
373
|
+
// node_modules/@pmate/meta/src/types/lang.types.ts
|
|
374
374
|
var init_lang_types = __esm({
|
|
375
|
-
"node_modules
|
|
375
|
+
"node_modules/@pmate/meta/src/types/lang.types.ts"() {
|
|
376
376
|
"use strict";
|
|
377
377
|
}
|
|
378
378
|
});
|
|
379
379
|
|
|
380
|
-
// node_modules
|
|
380
|
+
// node_modules/@pmate/meta/src/types/logs.types.ts
|
|
381
381
|
var init_logs_types = __esm({
|
|
382
|
-
"node_modules
|
|
382
|
+
"node_modules/@pmate/meta/src/types/logs.types.ts"() {
|
|
383
383
|
"use strict";
|
|
384
384
|
}
|
|
385
385
|
});
|
|
386
386
|
|
|
387
|
-
// node_modules
|
|
388
|
-
var PING, PONG;
|
|
387
|
+
// node_modules/@pmate/meta/src/types/message.types.ts
|
|
389
388
|
var init_message_types = __esm({
|
|
390
|
-
"node_modules
|
|
389
|
+
"node_modules/@pmate/meta/src/types/message.types.ts"() {
|
|
391
390
|
"use strict";
|
|
392
|
-
PING = 1;
|
|
393
|
-
PONG = 2;
|
|
394
391
|
}
|
|
395
392
|
});
|
|
396
393
|
|
|
397
|
-
// node_modules
|
|
394
|
+
// node_modules/@pmate/meta/src/types/newLog.types.ts
|
|
398
395
|
var init_newLog_types = __esm({
|
|
399
|
-
"node_modules
|
|
396
|
+
"node_modules/@pmate/meta/src/types/newLog.types.ts"() {
|
|
400
397
|
"use strict";
|
|
401
398
|
}
|
|
402
399
|
});
|
|
403
400
|
|
|
404
|
-
// node_modules
|
|
401
|
+
// node_modules/@pmate/meta/src/types/novel.types.ts
|
|
405
402
|
var init_novel_types = __esm({
|
|
406
|
-
"node_modules
|
|
403
|
+
"node_modules/@pmate/meta/src/types/novel.types.ts"() {
|
|
407
404
|
"use strict";
|
|
408
405
|
}
|
|
409
406
|
});
|
|
410
407
|
|
|
411
|
-
// node_modules
|
|
408
|
+
// node_modules/@pmate/meta/src/types/offline.types.ts
|
|
412
409
|
var init_offline_types = __esm({
|
|
413
|
-
"node_modules
|
|
410
|
+
"node_modules/@pmate/meta/src/types/offline.types.ts"() {
|
|
414
411
|
"use strict";
|
|
415
412
|
}
|
|
416
413
|
});
|
|
417
414
|
|
|
418
|
-
// node_modules
|
|
415
|
+
// node_modules/@pmate/meta/src/types/prompt.types.ts
|
|
419
416
|
var init_prompt_types = __esm({
|
|
420
|
-
"node_modules
|
|
417
|
+
"node_modules/@pmate/meta/src/types/prompt.types.ts"() {
|
|
421
418
|
"use strict";
|
|
422
419
|
}
|
|
423
420
|
});
|
|
424
421
|
|
|
425
|
-
// node_modules
|
|
422
|
+
// node_modules/@pmate/meta/src/types/reading.types.ts
|
|
426
423
|
var init_reading_types = __esm({
|
|
427
|
-
"node_modules
|
|
424
|
+
"node_modules/@pmate/meta/src/types/reading.types.ts"() {
|
|
428
425
|
"use strict";
|
|
429
426
|
}
|
|
430
427
|
});
|
|
431
428
|
|
|
432
|
-
// node_modules
|
|
429
|
+
// node_modules/@pmate/meta/src/types/settings.types.ts
|
|
433
430
|
var init_settings_types = __esm({
|
|
434
|
-
"node_modules
|
|
431
|
+
"node_modules/@pmate/meta/src/types/settings.types.ts"() {
|
|
435
432
|
"use strict";
|
|
436
433
|
}
|
|
437
434
|
});
|
|
438
435
|
|
|
439
|
-
// node_modules
|
|
436
|
+
// node_modules/@pmate/meta/src/types/subscription.types.ts
|
|
440
437
|
var init_subscription_types = __esm({
|
|
441
|
-
"node_modules
|
|
438
|
+
"node_modules/@pmate/meta/src/types/subscription.types.ts"() {
|
|
442
439
|
"use strict";
|
|
443
440
|
}
|
|
444
441
|
});
|
|
445
442
|
|
|
446
|
-
// node_modules
|
|
443
|
+
// node_modules/@pmate/meta/src/types/types.ts
|
|
447
444
|
var buildVoiceKey, createVoice;
|
|
448
445
|
var init_types = __esm({
|
|
449
|
-
"node_modules
|
|
446
|
+
"node_modules/@pmate/meta/src/types/types.ts"() {
|
|
450
447
|
"use strict";
|
|
451
448
|
buildVoiceKey = (provider, name) => {
|
|
452
449
|
return `${provider}:${name}`;
|
|
@@ -468,44 +465,44 @@ var init_types = __esm({
|
|
|
468
465
|
}
|
|
469
466
|
});
|
|
470
467
|
|
|
471
|
-
// node_modules
|
|
468
|
+
// node_modules/@pmate/meta/src/types/wordv5.def.ts
|
|
472
469
|
var init_wordv5_def = __esm({
|
|
473
|
-
"node_modules
|
|
470
|
+
"node_modules/@pmate/meta/src/types/wordv5.def.ts"() {
|
|
474
471
|
"use strict";
|
|
475
472
|
}
|
|
476
473
|
});
|
|
477
474
|
|
|
478
|
-
// node_modules
|
|
475
|
+
// node_modules/@pmate/meta/src/types/auth.types.ts
|
|
479
476
|
var init_auth_types = __esm({
|
|
480
|
-
"node_modules
|
|
477
|
+
"node_modules/@pmate/meta/src/types/auth.types.ts"() {
|
|
481
478
|
"use strict";
|
|
482
479
|
}
|
|
483
480
|
});
|
|
484
481
|
|
|
485
|
-
// node_modules
|
|
482
|
+
// node_modules/@pmate/meta/src/types/apps.types.ts
|
|
486
483
|
var init_apps_types = __esm({
|
|
487
|
-
"node_modules
|
|
484
|
+
"node_modules/@pmate/meta/src/types/apps.types.ts"() {
|
|
488
485
|
"use strict";
|
|
489
486
|
}
|
|
490
487
|
});
|
|
491
488
|
|
|
492
|
-
// node_modules
|
|
489
|
+
// node_modules/@pmate/meta/src/types/response.types.ts
|
|
493
490
|
var init_response_types = __esm({
|
|
494
|
-
"node_modules
|
|
491
|
+
"node_modules/@pmate/meta/src/types/response.types.ts"() {
|
|
495
492
|
"use strict";
|
|
496
493
|
}
|
|
497
494
|
});
|
|
498
495
|
|
|
499
|
-
// node_modules
|
|
496
|
+
// node_modules/@pmate/meta/src/types/role.types.ts
|
|
500
497
|
var init_role_types = __esm({
|
|
501
|
-
"node_modules
|
|
498
|
+
"node_modules/@pmate/meta/src/types/role.types.ts"() {
|
|
502
499
|
"use strict";
|
|
503
500
|
}
|
|
504
501
|
});
|
|
505
502
|
|
|
506
|
-
// node_modules
|
|
503
|
+
// node_modules/@pmate/meta/src/types/index.ts
|
|
507
504
|
var init_types2 = __esm({
|
|
508
|
-
"node_modules
|
|
505
|
+
"node_modules/@pmate/meta/src/types/index.ts"() {
|
|
509
506
|
"use strict";
|
|
510
507
|
init_account_types();
|
|
511
508
|
init_achievements_types();
|
|
@@ -537,24 +534,24 @@ var init_types2 = __esm({
|
|
|
537
534
|
}
|
|
538
535
|
});
|
|
539
536
|
|
|
540
|
-
// node_modules
|
|
537
|
+
// node_modules/@pmate/meta/src/config/BizErrorCode.ts
|
|
541
538
|
var init_BizErrorCode = __esm({
|
|
542
|
-
"node_modules
|
|
539
|
+
"node_modules/@pmate/meta/src/config/BizErrorCode.ts"() {
|
|
543
540
|
"use strict";
|
|
544
541
|
}
|
|
545
542
|
});
|
|
546
543
|
|
|
547
|
-
// node_modules
|
|
544
|
+
// node_modules/@pmate/meta/src/config/consts.ts
|
|
548
545
|
var init_consts = __esm({
|
|
549
|
-
"node_modules
|
|
546
|
+
"node_modules/@pmate/meta/src/config/consts.ts"() {
|
|
550
547
|
"use strict";
|
|
551
548
|
}
|
|
552
549
|
});
|
|
553
550
|
|
|
554
|
-
// node_modules
|
|
551
|
+
// node_modules/@pmate/meta/src/config/TopicNames.ts
|
|
555
552
|
var TopicNames, topicKindMatchers;
|
|
556
553
|
var init_TopicNames = __esm({
|
|
557
|
-
"node_modules
|
|
554
|
+
"node_modules/@pmate/meta/src/config/TopicNames.ts"() {
|
|
558
555
|
"use strict";
|
|
559
556
|
init_types2();
|
|
560
557
|
TopicNames = class _TopicNames {
|
|
@@ -640,18 +637,18 @@ var init_TopicNames = __esm({
|
|
|
640
637
|
}
|
|
641
638
|
});
|
|
642
639
|
|
|
643
|
-
// node_modules
|
|
640
|
+
// node_modules/@pmate/meta/src/config/OSSKeys.ts
|
|
644
641
|
var init_OSSKeys = __esm({
|
|
645
|
-
"node_modules
|
|
642
|
+
"node_modules/@pmate/meta/src/config/OSSKeys.ts"() {
|
|
646
643
|
"use strict";
|
|
647
644
|
init_consts();
|
|
648
645
|
}
|
|
649
646
|
});
|
|
650
647
|
|
|
651
|
-
// node_modules
|
|
648
|
+
// node_modules/@pmate/meta/src/config/CompanionProfiles.ts
|
|
652
649
|
var openAICoral, openAIAsh, openAIBallad, openAINova, openAIVerse;
|
|
653
650
|
var init_CompanionProfiles = __esm({
|
|
654
|
-
"node_modules
|
|
651
|
+
"node_modules/@pmate/meta/src/config/CompanionProfiles.ts"() {
|
|
655
652
|
"use strict";
|
|
656
653
|
init_types2();
|
|
657
654
|
openAICoral = createVoice({
|
|
@@ -686,9 +683,9 @@ var init_CompanionProfiles = __esm({
|
|
|
686
683
|
}
|
|
687
684
|
});
|
|
688
685
|
|
|
689
|
-
// node_modules
|
|
686
|
+
// node_modules/@pmate/meta/src/config/index.ts
|
|
690
687
|
var init_config = __esm({
|
|
691
|
-
"node_modules
|
|
688
|
+
"node_modules/@pmate/meta/src/config/index.ts"() {
|
|
692
689
|
"use strict";
|
|
693
690
|
init_BizErrorCode();
|
|
694
691
|
init_consts();
|
|
@@ -698,83 +695,83 @@ var init_config = __esm({
|
|
|
698
695
|
}
|
|
699
696
|
});
|
|
700
697
|
|
|
701
|
-
// node_modules
|
|
698
|
+
// node_modules/@pmate/meta/src/index.ts
|
|
702
699
|
var init_src = __esm({
|
|
703
|
-
"node_modules
|
|
700
|
+
"node_modules/@pmate/meta/src/index.ts"() {
|
|
704
701
|
"use strict";
|
|
705
702
|
init_types2();
|
|
706
703
|
init_config();
|
|
707
704
|
}
|
|
708
705
|
});
|
|
709
706
|
|
|
710
|
-
// node_modules
|
|
707
|
+
// node_modules/@pmate/utils/src/base64.ts
|
|
711
708
|
var init_base64 = __esm({
|
|
712
|
-
"node_modules
|
|
709
|
+
"node_modules/@pmate/utils/src/base64.ts"() {
|
|
713
710
|
"use strict";
|
|
714
711
|
}
|
|
715
712
|
});
|
|
716
713
|
|
|
717
|
-
// node_modules
|
|
714
|
+
// node_modules/@pmate/utils/src/Cache.ts
|
|
718
715
|
var init_Cache = __esm({
|
|
719
|
-
"node_modules
|
|
716
|
+
"node_modules/@pmate/utils/src/Cache.ts"() {
|
|
720
717
|
"use strict";
|
|
721
718
|
}
|
|
722
719
|
});
|
|
723
720
|
|
|
724
|
-
// node_modules
|
|
721
|
+
// node_modules/@pmate/utils/src/batchResolve.ts
|
|
725
722
|
var init_batchResolve = __esm({
|
|
726
|
-
"node_modules
|
|
723
|
+
"node_modules/@pmate/utils/src/batchResolve.ts"() {
|
|
727
724
|
"use strict";
|
|
728
725
|
init_Cache();
|
|
729
726
|
}
|
|
730
727
|
});
|
|
731
728
|
|
|
732
|
-
// node_modules
|
|
729
|
+
// node_modules/@pmate/lang/src/cn/sentenceSpliter.ts
|
|
733
730
|
var init_sentenceSpliter = __esm({
|
|
734
|
-
"node_modules
|
|
731
|
+
"node_modules/@pmate/lang/src/cn/sentenceSpliter.ts"() {
|
|
735
732
|
"use strict";
|
|
736
733
|
}
|
|
737
734
|
});
|
|
738
735
|
|
|
739
|
-
// node_modules
|
|
736
|
+
// node_modules/@pmate/lang/src/cn/sentenceTrim.ts
|
|
740
737
|
var init_sentenceTrim = __esm({
|
|
741
|
-
"node_modules
|
|
738
|
+
"node_modules/@pmate/lang/src/cn/sentenceTrim.ts"() {
|
|
742
739
|
"use strict";
|
|
743
740
|
}
|
|
744
741
|
});
|
|
745
742
|
|
|
746
|
-
// node_modules
|
|
743
|
+
// node_modules/@pmate/lang/src/cn/wordSpliter.ts
|
|
747
744
|
var init_wordSpliter = __esm({
|
|
748
|
-
"node_modules
|
|
745
|
+
"node_modules/@pmate/lang/src/cn/wordSpliter.ts"() {
|
|
749
746
|
"use strict";
|
|
750
747
|
}
|
|
751
748
|
});
|
|
752
749
|
|
|
753
|
-
// node_modules
|
|
750
|
+
// node_modules/@pmate/lang/src/en/regex.ts
|
|
754
751
|
var init_regex = __esm({
|
|
755
|
-
"node_modules
|
|
752
|
+
"node_modules/@pmate/lang/src/en/regex.ts"() {
|
|
756
753
|
"use strict";
|
|
757
754
|
}
|
|
758
755
|
});
|
|
759
756
|
|
|
760
|
-
// node_modules
|
|
757
|
+
// node_modules/@pmate/lang/src/en/sentenceSpliter.ts
|
|
761
758
|
var init_sentenceSpliter2 = __esm({
|
|
762
|
-
"node_modules
|
|
759
|
+
"node_modules/@pmate/lang/src/en/sentenceSpliter.ts"() {
|
|
763
760
|
"use strict";
|
|
764
761
|
}
|
|
765
762
|
});
|
|
766
763
|
|
|
767
|
-
// node_modules
|
|
764
|
+
// node_modules/@pmate/lang/src/en/sentenceTrim.ts
|
|
768
765
|
var init_sentenceTrim2 = __esm({
|
|
769
|
-
"node_modules
|
|
766
|
+
"node_modules/@pmate/lang/src/en/sentenceTrim.ts"() {
|
|
770
767
|
"use strict";
|
|
771
768
|
}
|
|
772
769
|
});
|
|
773
770
|
|
|
774
|
-
// node_modules
|
|
771
|
+
// node_modules/@pmate/lang/src/en/wordSpliter.ts
|
|
775
772
|
var regex;
|
|
776
773
|
var init_wordSpliter2 = __esm({
|
|
777
|
-
"node_modules
|
|
774
|
+
"node_modules/@pmate/lang/src/en/wordSpliter.ts"() {
|
|
778
775
|
"use strict";
|
|
779
776
|
regex = new RegExp(
|
|
780
777
|
[
|
|
@@ -810,23 +807,23 @@ var init_wordSpliter2 = __esm({
|
|
|
810
807
|
}
|
|
811
808
|
});
|
|
812
809
|
|
|
813
|
-
// node_modules
|
|
810
|
+
// node_modules/@pmate/lang/src/kr/sentenceSpliter.ts
|
|
814
811
|
var init_sentenceSpliter3 = __esm({
|
|
815
|
-
"node_modules
|
|
812
|
+
"node_modules/@pmate/lang/src/kr/sentenceSpliter.ts"() {
|
|
816
813
|
"use strict";
|
|
817
814
|
}
|
|
818
815
|
});
|
|
819
816
|
|
|
820
|
-
// node_modules
|
|
817
|
+
// node_modules/@pmate/lang/src/kr/wordSpliter.ts
|
|
821
818
|
var init_wordSpliter3 = __esm({
|
|
822
|
-
"node_modules
|
|
819
|
+
"node_modules/@pmate/lang/src/kr/wordSpliter.ts"() {
|
|
823
820
|
"use strict";
|
|
824
821
|
}
|
|
825
822
|
});
|
|
826
823
|
|
|
827
|
-
// node_modules
|
|
824
|
+
// node_modules/@pmate/lang/src/readingSettings.ts
|
|
828
825
|
var init_readingSettings = __esm({
|
|
829
|
-
"node_modules
|
|
826
|
+
"node_modules/@pmate/lang/src/readingSettings.ts"() {
|
|
830
827
|
"use strict";
|
|
831
828
|
init_sentenceSpliter();
|
|
832
829
|
init_wordSpliter();
|
|
@@ -837,17 +834,428 @@ var init_readingSettings = __esm({
|
|
|
837
834
|
}
|
|
838
835
|
});
|
|
839
836
|
|
|
840
|
-
// node_modules
|
|
841
|
-
var
|
|
842
|
-
"node_modules
|
|
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"() {
|
|
843
945
|
"use strict";
|
|
844
|
-
init_src();
|
|
845
946
|
}
|
|
846
947
|
});
|
|
847
948
|
|
|
848
|
-
// node_modules
|
|
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"() {
|
|
1033
|
+
"use strict";
|
|
1034
|
+
}
|
|
1035
|
+
});
|
|
1036
|
+
|
|
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"() {
|
|
1040
|
+
"use strict";
|
|
1041
|
+
}
|
|
1042
|
+
});
|
|
1043
|
+
|
|
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"() {
|
|
1047
|
+
"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();
|
|
1075
|
+
}
|
|
1076
|
+
});
|
|
1077
|
+
|
|
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"() {
|
|
1081
|
+
"use strict";
|
|
1082
|
+
}
|
|
1083
|
+
});
|
|
1084
|
+
|
|
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"() {
|
|
1088
|
+
"use strict";
|
|
1089
|
+
}
|
|
1090
|
+
});
|
|
1091
|
+
|
|
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"() {
|
|
1096
|
+
"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";
|
|
1134
|
+
}
|
|
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
|
|
849
1240
|
var init_src2 = __esm({
|
|
850
|
-
"node_modules
|
|
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"() {
|
|
851
1259
|
"use strict";
|
|
852
1260
|
init_sentenceSpliter();
|
|
853
1261
|
init_sentenceTrim();
|
|
@@ -863,32 +1271,32 @@ var init_src2 = __esm({
|
|
|
863
1271
|
}
|
|
864
1272
|
});
|
|
865
1273
|
|
|
866
|
-
// node_modules
|
|
1274
|
+
// node_modules/@pmate/utils/src/bookStats.ts
|
|
867
1275
|
var init_bookStats = __esm({
|
|
868
|
-
"node_modules
|
|
1276
|
+
"node_modules/@pmate/utils/src/bookStats.ts"() {
|
|
869
1277
|
"use strict";
|
|
870
|
-
|
|
1278
|
+
init_src3();
|
|
871
1279
|
}
|
|
872
1280
|
});
|
|
873
1281
|
|
|
874
|
-
// node_modules
|
|
1282
|
+
// node_modules/@pmate/utils/src/BoundedConcurrentQueue.ts
|
|
875
1283
|
var init_BoundedConcurrentQueue = __esm({
|
|
876
|
-
"node_modules
|
|
1284
|
+
"node_modules/@pmate/utils/src/BoundedConcurrentQueue.ts"() {
|
|
877
1285
|
"use strict";
|
|
878
1286
|
}
|
|
879
1287
|
});
|
|
880
1288
|
|
|
881
|
-
// node_modules
|
|
1289
|
+
// node_modules/@pmate/utils/src/lru.ts
|
|
882
1290
|
var init_lru = __esm({
|
|
883
|
-
"node_modules
|
|
1291
|
+
"node_modules/@pmate/utils/src/lru.ts"() {
|
|
884
1292
|
"use strict";
|
|
885
1293
|
init_Cache();
|
|
886
1294
|
}
|
|
887
1295
|
});
|
|
888
1296
|
|
|
889
|
-
// node_modules
|
|
1297
|
+
// node_modules/js-sha3/src/sha3.js
|
|
890
1298
|
var require_sha3 = __commonJS({
|
|
891
|
-
"node_modules
|
|
1299
|
+
"node_modules/js-sha3/src/sha3.js"(exports2, module2) {
|
|
892
1300
|
"use strict";
|
|
893
1301
|
(function() {
|
|
894
1302
|
"use strict";
|
|
@@ -1533,24 +1941,24 @@ var require_sha3 = __commonJS({
|
|
|
1533
1941
|
}
|
|
1534
1942
|
});
|
|
1535
1943
|
|
|
1536
|
-
// node_modules
|
|
1944
|
+
// node_modules/@pmate/utils/src/Maybe.ts
|
|
1537
1945
|
var init_Maybe = __esm({
|
|
1538
|
-
"node_modules
|
|
1946
|
+
"node_modules/@pmate/utils/src/Maybe.ts"() {
|
|
1539
1947
|
"use strict";
|
|
1540
1948
|
}
|
|
1541
1949
|
});
|
|
1542
1950
|
|
|
1543
|
-
// node_modules
|
|
1951
|
+
// node_modules/@pmate/utils/src/cacheMethodInMem.ts
|
|
1544
1952
|
var import_js_sha3;
|
|
1545
1953
|
var init_cacheMethodInMem = __esm({
|
|
1546
|
-
"node_modules
|
|
1954
|
+
"node_modules/@pmate/utils/src/cacheMethodInMem.ts"() {
|
|
1547
1955
|
"use strict";
|
|
1548
1956
|
import_js_sha3 = __toESM(require_sha3(), 1);
|
|
1549
1957
|
init_Maybe();
|
|
1550
1958
|
}
|
|
1551
1959
|
});
|
|
1552
1960
|
|
|
1553
|
-
// node_modules
|
|
1961
|
+
// node_modules/pako/dist/pako.esm.mjs
|
|
1554
1962
|
function zero$1(buf) {
|
|
1555
1963
|
let len = buf.length;
|
|
1556
1964
|
while (--len >= 0) {
|
|
@@ -1838,7 +2246,7 @@ function inflateRaw$1(input, options) {
|
|
|
1838
2246
|
}
|
|
1839
2247
|
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;
|
|
1840
2248
|
var init_pako_esm = __esm({
|
|
1841
|
-
"node_modules
|
|
2249
|
+
"node_modules/pako/dist/pako.esm.mjs"() {
|
|
1842
2250
|
"use strict";
|
|
1843
2251
|
Z_FIXED$1 = 4;
|
|
1844
2252
|
Z_BINARY = 0;
|
|
@@ -5719,7 +6127,7 @@ var init_pako_esm = __esm({
|
|
|
5719
6127
|
}
|
|
5720
6128
|
});
|
|
5721
6129
|
|
|
5722
|
-
// node_modules
|
|
6130
|
+
// node_modules/@pmate/utils/src/compress.ts
|
|
5723
6131
|
async function gzipEncodeBlob(input) {
|
|
5724
6132
|
const array = await toUint8Array(input);
|
|
5725
6133
|
return gzip_1(array);
|
|
@@ -5745,16 +6153,16 @@ async function toUint8Array(input) {
|
|
|
5745
6153
|
throw new TypeError("Unsupported input type for gzipEncodeBlob");
|
|
5746
6154
|
}
|
|
5747
6155
|
var init_compress = __esm({
|
|
5748
|
-
"node_modules
|
|
6156
|
+
"node_modules/@pmate/utils/src/compress.ts"() {
|
|
5749
6157
|
"use strict";
|
|
5750
6158
|
init_pako_esm();
|
|
5751
6159
|
}
|
|
5752
6160
|
});
|
|
5753
6161
|
|
|
5754
|
-
// node_modules
|
|
6162
|
+
// node_modules/@pmate/utils/src/AsyncStream.ts
|
|
5755
6163
|
var AsyncStream;
|
|
5756
6164
|
var init_AsyncStream = __esm({
|
|
5757
|
-
"node_modules
|
|
6165
|
+
"node_modules/@pmate/utils/src/AsyncStream.ts"() {
|
|
5758
6166
|
"use strict";
|
|
5759
6167
|
AsyncStream = class _AsyncStream {
|
|
5760
6168
|
constructor() {
|
|
@@ -5810,144 +6218,558 @@ var init_AsyncStream = __esm({
|
|
|
5810
6218
|
set.delete(handler);
|
|
5811
6219
|
};
|
|
5812
6220
|
}
|
|
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;
|
|
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";
|
|
6620
|
+
}
|
|
6621
|
+
static userThreads(user) {
|
|
6622
|
+
return `@pmate/user_threads:${user}`;
|
|
5826
6623
|
}
|
|
5827
|
-
|
|
5828
|
-
return
|
|
6624
|
+
static userLogs(user) {
|
|
6625
|
+
return `@pmate/user_logs:${user}`;
|
|
5829
6626
|
}
|
|
5830
|
-
|
|
5831
|
-
|
|
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
|
-
}
|
|
6627
|
+
static legacyUserLogs(user) {
|
|
6628
|
+
return _TopicNames.userLogs(user);
|
|
5845
6629
|
}
|
|
5846
|
-
|
|
5847
|
-
|
|
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");
|
|
6630
|
+
static userContacts(profileId) {
|
|
6631
|
+
return `@pmate/user_contacts:${profileId}`;
|
|
5860
6632
|
}
|
|
5861
|
-
|
|
5862
|
-
|
|
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
|
-
};
|
|
6633
|
+
static usersMessage(userId) {
|
|
6634
|
+
return `@pmate/user_messages:${userId}`;
|
|
5871
6635
|
}
|
|
5872
|
-
|
|
5873
|
-
|
|
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
|
-
});
|
|
6636
|
+
static userMapping() {
|
|
6637
|
+
return "@pmate/username_mapping";
|
|
5893
6638
|
}
|
|
5894
|
-
|
|
5895
|
-
|
|
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 });
|
|
6639
|
+
static userMobileMapping() {
|
|
6640
|
+
return "@pmate/mobile_account";
|
|
5904
6641
|
}
|
|
5905
|
-
|
|
5906
|
-
|
|
5907
|
-
return Promise.reject(err2);
|
|
6642
|
+
static mapping() {
|
|
6643
|
+
return "@pmate/mapping";
|
|
5908
6644
|
}
|
|
5909
|
-
|
|
5910
|
-
|
|
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");
|
|
6645
|
+
static profiles() {
|
|
6646
|
+
return "@pmate/profiles";
|
|
5921
6647
|
}
|
|
5922
|
-
|
|
5923
|
-
|
|
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 }));
|
|
6648
|
+
static groups() {
|
|
6649
|
+
return "@pmate/groups";
|
|
5931
6650
|
}
|
|
5932
|
-
|
|
5933
|
-
|
|
5934
|
-
if (!set || set.size === 0) {
|
|
5935
|
-
return;
|
|
5936
|
-
}
|
|
5937
|
-
for (const handler of set) {
|
|
5938
|
-
handler(payload);
|
|
5939
|
-
}
|
|
6651
|
+
static relationships() {
|
|
6652
|
+
return "@pmate/relationships";
|
|
5940
6653
|
}
|
|
5941
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:")
|
|
6695
|
+
}
|
|
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();
|
|
5942
6764
|
}
|
|
5943
6765
|
});
|
|
5944
6766
|
|
|
5945
|
-
// node_modules
|
|
6767
|
+
// node_modules/@pmate/utils/src/uniqHash.ts
|
|
5946
6768
|
var import_js_sha32, sortKeys, uniqHash;
|
|
5947
6769
|
var init_uniqHash = __esm({
|
|
5948
|
-
"node_modules
|
|
6770
|
+
"node_modules/@pmate/utils/src/uniqHash.ts"() {
|
|
5949
6771
|
"use strict";
|
|
5950
|
-
|
|
6772
|
+
init_src4();
|
|
5951
6773
|
import_js_sha32 = __toESM(require_sha3(), 1);
|
|
5952
6774
|
sortKeys = (obj) => {
|
|
5953
6775
|
if (Array.isArray(obj)) {
|
|
@@ -5975,33 +6797,33 @@ var init_uniqHash = __esm({
|
|
|
5975
6797
|
}
|
|
5976
6798
|
});
|
|
5977
6799
|
|
|
5978
|
-
// node_modules
|
|
6800
|
+
// node_modules/@pmate/utils/src/createMsg.ts
|
|
5979
6801
|
var init_createMsg = __esm({
|
|
5980
|
-
"node_modules
|
|
6802
|
+
"node_modules/@pmate/utils/src/createMsg.ts"() {
|
|
5981
6803
|
"use strict";
|
|
5982
|
-
|
|
6804
|
+
init_src4();
|
|
5983
6805
|
init_uniqHash();
|
|
5984
6806
|
}
|
|
5985
6807
|
});
|
|
5986
6808
|
|
|
5987
|
-
// node_modules
|
|
6809
|
+
// node_modules/@pmate/utils/src/detectText.ts
|
|
5988
6810
|
var init_detectText = __esm({
|
|
5989
|
-
"node_modules
|
|
6811
|
+
"node_modules/@pmate/utils/src/detectText.ts"() {
|
|
5990
6812
|
"use strict";
|
|
5991
6813
|
}
|
|
5992
6814
|
});
|
|
5993
6815
|
|
|
5994
|
-
// node_modules
|
|
6816
|
+
// node_modules/@pmate/utils/src/Emitter.ts
|
|
5995
6817
|
var init_Emitter = __esm({
|
|
5996
|
-
"node_modules
|
|
6818
|
+
"node_modules/@pmate/utils/src/Emitter.ts"() {
|
|
5997
6819
|
"use strict";
|
|
5998
6820
|
}
|
|
5999
6821
|
});
|
|
6000
6822
|
|
|
6001
|
-
// node_modules
|
|
6823
|
+
// node_modules/@pmate/utils/src/EmitterV2.ts
|
|
6002
6824
|
var EmitterV2;
|
|
6003
6825
|
var init_EmitterV2 = __esm({
|
|
6004
|
-
"node_modules
|
|
6826
|
+
"node_modules/@pmate/utils/src/EmitterV2.ts"() {
|
|
6005
6827
|
"use strict";
|
|
6006
6828
|
EmitterV2 = class {
|
|
6007
6829
|
constructor() {
|
|
@@ -6057,39 +6879,39 @@ var init_EmitterV2 = __esm({
|
|
|
6057
6879
|
}
|
|
6058
6880
|
});
|
|
6059
6881
|
|
|
6060
|
-
// node_modules
|
|
6882
|
+
// node_modules/@pmate/utils/src/format/formatTime.ts
|
|
6061
6883
|
var init_formatTime = __esm({
|
|
6062
|
-
"node_modules
|
|
6884
|
+
"node_modules/@pmate/utils/src/format/formatTime.ts"() {
|
|
6063
6885
|
"use strict";
|
|
6064
6886
|
}
|
|
6065
6887
|
});
|
|
6066
6888
|
|
|
6067
|
-
// node_modules
|
|
6889
|
+
// node_modules/@pmate/utils/src/format/index.ts
|
|
6068
6890
|
var init_format = __esm({
|
|
6069
|
-
"node_modules
|
|
6891
|
+
"node_modules/@pmate/utils/src/format/index.ts"() {
|
|
6070
6892
|
"use strict";
|
|
6071
6893
|
init_formatTime();
|
|
6072
6894
|
}
|
|
6073
6895
|
});
|
|
6074
6896
|
|
|
6075
|
-
// node_modules
|
|
6897
|
+
// node_modules/@pmate/utils/src/isVolcabulary.ts
|
|
6076
6898
|
var init_isVolcabulary = __esm({
|
|
6077
|
-
"node_modules
|
|
6899
|
+
"node_modules/@pmate/utils/src/isVolcabulary.ts"() {
|
|
6078
6900
|
"use strict";
|
|
6079
6901
|
}
|
|
6080
6902
|
});
|
|
6081
6903
|
|
|
6082
|
-
// node_modules
|
|
6904
|
+
// node_modules/@pmate/utils/src/Loadable.ts
|
|
6083
6905
|
var init_Loadable = __esm({
|
|
6084
|
-
"node_modules
|
|
6906
|
+
"node_modules/@pmate/utils/src/Loadable.ts"() {
|
|
6085
6907
|
"use strict";
|
|
6086
6908
|
}
|
|
6087
6909
|
});
|
|
6088
6910
|
|
|
6089
|
-
// node_modules
|
|
6911
|
+
// node_modules/@pmate/utils/src/Logger.ts
|
|
6090
6912
|
var Logger;
|
|
6091
6913
|
var init_Logger = __esm({
|
|
6092
|
-
"node_modules
|
|
6914
|
+
"node_modules/@pmate/utils/src/Logger.ts"() {
|
|
6093
6915
|
"use strict";
|
|
6094
6916
|
Logger = class _Logger {
|
|
6095
6917
|
constructor(name) {
|
|
@@ -6114,21 +6936,21 @@ var init_Logger = __esm({
|
|
|
6114
6936
|
}
|
|
6115
6937
|
});
|
|
6116
6938
|
|
|
6117
|
-
// node_modules
|
|
6939
|
+
// node_modules/@pmate/utils/src/mapToReadingBook.ts
|
|
6118
6940
|
var init_mapToReadingBook = __esm({
|
|
6119
|
-
"node_modules
|
|
6941
|
+
"node_modules/@pmate/utils/src/mapToReadingBook.ts"() {
|
|
6120
6942
|
"use strict";
|
|
6121
6943
|
}
|
|
6122
6944
|
});
|
|
6123
6945
|
|
|
6124
|
-
// node_modules
|
|
6946
|
+
// node_modules/@pmate/utils/src/memoize.ts
|
|
6125
6947
|
var init_memoize = __esm({
|
|
6126
|
-
"node_modules
|
|
6948
|
+
"node_modules/@pmate/utils/src/memoize.ts"() {
|
|
6127
6949
|
"use strict";
|
|
6128
6950
|
}
|
|
6129
6951
|
});
|
|
6130
6952
|
|
|
6131
|
-
// node_modules
|
|
6953
|
+
// node_modules/@msgpack/msgpack/dist.esm/utils/utf8.mjs
|
|
6132
6954
|
function utf8Count(str) {
|
|
6133
6955
|
const strLength = str.length;
|
|
6134
6956
|
let byteLength = 0;
|
|
@@ -6255,7 +7077,7 @@ function utf8Decode(bytes, inputOffset, byteLength) {
|
|
|
6255
7077
|
}
|
|
6256
7078
|
var sharedTextEncoder, TEXT_ENCODER_THRESHOLD, CHUNK_SIZE, sharedTextDecoder, TEXT_DECODER_THRESHOLD;
|
|
6257
7079
|
var init_utf8 = __esm({
|
|
6258
|
-
"node_modules
|
|
7080
|
+
"node_modules/@msgpack/msgpack/dist.esm/utils/utf8.mjs"() {
|
|
6259
7081
|
"use strict";
|
|
6260
7082
|
sharedTextEncoder = new TextEncoder();
|
|
6261
7083
|
TEXT_ENCODER_THRESHOLD = 50;
|
|
@@ -6265,10 +7087,10 @@ var init_utf8 = __esm({
|
|
|
6265
7087
|
}
|
|
6266
7088
|
});
|
|
6267
7089
|
|
|
6268
|
-
// node_modules
|
|
7090
|
+
// node_modules/@msgpack/msgpack/dist.esm/ExtData.mjs
|
|
6269
7091
|
var ExtData;
|
|
6270
7092
|
var init_ExtData = __esm({
|
|
6271
|
-
"node_modules
|
|
7093
|
+
"node_modules/@msgpack/msgpack/dist.esm/ExtData.mjs"() {
|
|
6272
7094
|
"use strict";
|
|
6273
7095
|
ExtData = class {
|
|
6274
7096
|
type;
|
|
@@ -6281,10 +7103,10 @@ var init_ExtData = __esm({
|
|
|
6281
7103
|
}
|
|
6282
7104
|
});
|
|
6283
7105
|
|
|
6284
|
-
// node_modules
|
|
7106
|
+
// node_modules/@msgpack/msgpack/dist.esm/DecodeError.mjs
|
|
6285
7107
|
var DecodeError;
|
|
6286
7108
|
var init_DecodeError = __esm({
|
|
6287
|
-
"node_modules
|
|
7109
|
+
"node_modules/@msgpack/msgpack/dist.esm/DecodeError.mjs"() {
|
|
6288
7110
|
"use strict";
|
|
6289
7111
|
DecodeError = class _DecodeError extends Error {
|
|
6290
7112
|
constructor(message) {
|
|
@@ -6301,7 +7123,7 @@ var init_DecodeError = __esm({
|
|
|
6301
7123
|
}
|
|
6302
7124
|
});
|
|
6303
7125
|
|
|
6304
|
-
// node_modules
|
|
7126
|
+
// node_modules/@msgpack/msgpack/dist.esm/utils/int.mjs
|
|
6305
7127
|
function setUint64(view, offset, value) {
|
|
6306
7128
|
const high = value / 4294967296;
|
|
6307
7129
|
const low = value;
|
|
@@ -6326,13 +7148,13 @@ function getUint64(view, offset) {
|
|
|
6326
7148
|
}
|
|
6327
7149
|
var UINT32_MAX;
|
|
6328
7150
|
var init_int = __esm({
|
|
6329
|
-
"node_modules
|
|
7151
|
+
"node_modules/@msgpack/msgpack/dist.esm/utils/int.mjs"() {
|
|
6330
7152
|
"use strict";
|
|
6331
7153
|
UINT32_MAX = 4294967295;
|
|
6332
7154
|
}
|
|
6333
7155
|
});
|
|
6334
7156
|
|
|
6335
|
-
// node_modules
|
|
7157
|
+
// node_modules/@msgpack/msgpack/dist.esm/timestamp.mjs
|
|
6336
7158
|
function encodeTimeSpecToTimestamp({ sec, nsec }) {
|
|
6337
7159
|
if (sec >= 0 && nsec >= 0 && sec <= TIMESTAMP64_MAX_SEC) {
|
|
6338
7160
|
if (nsec === 0 && sec <= TIMESTAMP32_MAX_SEC) {
|
|
@@ -6405,7 +7227,7 @@ function decodeTimestampExtension(data) {
|
|
|
6405
7227
|
}
|
|
6406
7228
|
var EXT_TIMESTAMP, TIMESTAMP32_MAX_SEC, TIMESTAMP64_MAX_SEC, timestampExtension;
|
|
6407
7229
|
var init_timestamp = __esm({
|
|
6408
|
-
"node_modules
|
|
7230
|
+
"node_modules/@msgpack/msgpack/dist.esm/timestamp.mjs"() {
|
|
6409
7231
|
"use strict";
|
|
6410
7232
|
init_DecodeError();
|
|
6411
7233
|
init_int();
|
|
@@ -6420,10 +7242,10 @@ var init_timestamp = __esm({
|
|
|
6420
7242
|
}
|
|
6421
7243
|
});
|
|
6422
7244
|
|
|
6423
|
-
// node_modules
|
|
7245
|
+
// node_modules/@msgpack/msgpack/dist.esm/ExtensionCodec.mjs
|
|
6424
7246
|
var ExtensionCodec;
|
|
6425
7247
|
var init_ExtensionCodec = __esm({
|
|
6426
|
-
"node_modules
|
|
7248
|
+
"node_modules/@msgpack/msgpack/dist.esm/ExtensionCodec.mjs"() {
|
|
6427
7249
|
"use strict";
|
|
6428
7250
|
init_ExtData();
|
|
6429
7251
|
init_timestamp();
|
|
@@ -6490,7 +7312,7 @@ var init_ExtensionCodec = __esm({
|
|
|
6490
7312
|
}
|
|
6491
7313
|
});
|
|
6492
7314
|
|
|
6493
|
-
// node_modules
|
|
7315
|
+
// node_modules/@msgpack/msgpack/dist.esm/utils/typedArrays.mjs
|
|
6494
7316
|
function isArrayBufferLike(buffer) {
|
|
6495
7317
|
return buffer instanceof ArrayBuffer || typeof SharedArrayBuffer !== "undefined" && buffer instanceof SharedArrayBuffer;
|
|
6496
7318
|
}
|
|
@@ -6506,15 +7328,15 @@ function ensureUint8Array(buffer) {
|
|
|
6506
7328
|
}
|
|
6507
7329
|
}
|
|
6508
7330
|
var init_typedArrays = __esm({
|
|
6509
|
-
"node_modules
|
|
7331
|
+
"node_modules/@msgpack/msgpack/dist.esm/utils/typedArrays.mjs"() {
|
|
6510
7332
|
"use strict";
|
|
6511
7333
|
}
|
|
6512
7334
|
});
|
|
6513
7335
|
|
|
6514
|
-
// node_modules
|
|
7336
|
+
// node_modules/@msgpack/msgpack/dist.esm/Encoder.mjs
|
|
6515
7337
|
var DEFAULT_MAX_DEPTH, DEFAULT_INITIAL_BUFFER_SIZE, Encoder;
|
|
6516
7338
|
var init_Encoder = __esm({
|
|
6517
|
-
"node_modules
|
|
7339
|
+
"node_modules/@msgpack/msgpack/dist.esm/Encoder.mjs"() {
|
|
6518
7340
|
"use strict";
|
|
6519
7341
|
init_utf8();
|
|
6520
7342
|
init_ExtensionCodec();
|
|
@@ -6924,32 +7746,32 @@ var init_Encoder = __esm({
|
|
|
6924
7746
|
}
|
|
6925
7747
|
});
|
|
6926
7748
|
|
|
6927
|
-
// node_modules
|
|
7749
|
+
// node_modules/@msgpack/msgpack/dist.esm/encode.mjs
|
|
6928
7750
|
function encode(value, options) {
|
|
6929
7751
|
const encoder2 = new Encoder(options);
|
|
6930
7752
|
return encoder2.encodeSharedRef(value);
|
|
6931
7753
|
}
|
|
6932
7754
|
var init_encode = __esm({
|
|
6933
|
-
"node_modules
|
|
7755
|
+
"node_modules/@msgpack/msgpack/dist.esm/encode.mjs"() {
|
|
6934
7756
|
"use strict";
|
|
6935
7757
|
init_Encoder();
|
|
6936
7758
|
}
|
|
6937
7759
|
});
|
|
6938
7760
|
|
|
6939
|
-
// node_modules
|
|
7761
|
+
// node_modules/@msgpack/msgpack/dist.esm/utils/prettyByte.mjs
|
|
6940
7762
|
function prettyByte(byte) {
|
|
6941
7763
|
return `${byte < 0 ? "-" : ""}0x${Math.abs(byte).toString(16).padStart(2, "0")}`;
|
|
6942
7764
|
}
|
|
6943
7765
|
var init_prettyByte = __esm({
|
|
6944
|
-
"node_modules
|
|
7766
|
+
"node_modules/@msgpack/msgpack/dist.esm/utils/prettyByte.mjs"() {
|
|
6945
7767
|
"use strict";
|
|
6946
7768
|
}
|
|
6947
7769
|
});
|
|
6948
7770
|
|
|
6949
|
-
// node_modules
|
|
7771
|
+
// node_modules/@msgpack/msgpack/dist.esm/CachedKeyDecoder.mjs
|
|
6950
7772
|
var DEFAULT_MAX_KEY_LENGTH, DEFAULT_MAX_LENGTH_PER_KEY, CachedKeyDecoder;
|
|
6951
7773
|
var init_CachedKeyDecoder = __esm({
|
|
6952
|
-
"node_modules
|
|
7774
|
+
"node_modules/@msgpack/msgpack/dist.esm/CachedKeyDecoder.mjs"() {
|
|
6953
7775
|
"use strict";
|
|
6954
7776
|
init_utf8();
|
|
6955
7777
|
DEFAULT_MAX_KEY_LENGTH = 16;
|
|
@@ -7009,10 +7831,10 @@ var init_CachedKeyDecoder = __esm({
|
|
|
7009
7831
|
}
|
|
7010
7832
|
});
|
|
7011
7833
|
|
|
7012
|
-
// node_modules
|
|
7834
|
+
// node_modules/@msgpack/msgpack/dist.esm/Decoder.mjs
|
|
7013
7835
|
var STATE_ARRAY, STATE_MAP_KEY, STATE_MAP_VALUE, mapKeyConverter, StackPool, HEAD_BYTE_REQUIRED, EMPTY_VIEW, EMPTY_BYTES, MORE_DATA, sharedCachedKeyDecoder, Decoder;
|
|
7014
7836
|
var init_Decoder = __esm({
|
|
7015
|
-
"node_modules
|
|
7837
|
+
"node_modules/@msgpack/msgpack/dist.esm/Decoder.mjs"() {
|
|
7016
7838
|
"use strict";
|
|
7017
7839
|
init_prettyByte();
|
|
7018
7840
|
init_ExtensionCodec();
|
|
@@ -7650,34 +8472,34 @@ var init_Decoder = __esm({
|
|
|
7650
8472
|
}
|
|
7651
8473
|
});
|
|
7652
8474
|
|
|
7653
|
-
// node_modules
|
|
8475
|
+
// node_modules/@msgpack/msgpack/dist.esm/decode.mjs
|
|
7654
8476
|
function decode(buffer, options) {
|
|
7655
8477
|
const decoder = new Decoder(options);
|
|
7656
8478
|
return decoder.decode(buffer);
|
|
7657
8479
|
}
|
|
7658
8480
|
var init_decode = __esm({
|
|
7659
|
-
"node_modules
|
|
8481
|
+
"node_modules/@msgpack/msgpack/dist.esm/decode.mjs"() {
|
|
7660
8482
|
"use strict";
|
|
7661
8483
|
init_Decoder();
|
|
7662
8484
|
}
|
|
7663
8485
|
});
|
|
7664
8486
|
|
|
7665
|
-
// node_modules
|
|
8487
|
+
// node_modules/@msgpack/msgpack/dist.esm/index.mjs
|
|
7666
8488
|
var init_dist = __esm({
|
|
7667
|
-
"node_modules
|
|
8489
|
+
"node_modules/@msgpack/msgpack/dist.esm/index.mjs"() {
|
|
7668
8490
|
"use strict";
|
|
7669
8491
|
init_encode();
|
|
7670
8492
|
init_decode();
|
|
7671
8493
|
}
|
|
7672
8494
|
});
|
|
7673
8495
|
|
|
7674
|
-
// node_modules
|
|
8496
|
+
// node_modules/@pmate/utils/src/Msg.ts
|
|
7675
8497
|
var encoder, Msg;
|
|
7676
8498
|
var init_Msg = __esm({
|
|
7677
|
-
"node_modules
|
|
8499
|
+
"node_modules/@pmate/utils/src/Msg.ts"() {
|
|
7678
8500
|
"use strict";
|
|
7679
8501
|
init_dist();
|
|
7680
|
-
|
|
8502
|
+
init_src4();
|
|
7681
8503
|
init_compress();
|
|
7682
8504
|
init_uniqHash();
|
|
7683
8505
|
encoder = new TextEncoder();
|
|
@@ -7802,108 +8624,108 @@ var init_Msg = __esm({
|
|
|
7802
8624
|
}
|
|
7803
8625
|
});
|
|
7804
8626
|
|
|
7805
|
-
// node_modules
|
|
8627
|
+
// node_modules/@pmate/utils/src/normalize.ts
|
|
7806
8628
|
var init_normalize = __esm({
|
|
7807
|
-
"node_modules
|
|
8629
|
+
"node_modules/@pmate/utils/src/normalize.ts"() {
|
|
7808
8630
|
"use strict";
|
|
7809
8631
|
}
|
|
7810
8632
|
});
|
|
7811
8633
|
|
|
7812
|
-
// node_modules
|
|
8634
|
+
// node_modules/@pmate/utils/src/pageURL.ts
|
|
7813
8635
|
var init_pageURL = __esm({
|
|
7814
|
-
"node_modules
|
|
8636
|
+
"node_modules/@pmate/utils/src/pageURL.ts"() {
|
|
7815
8637
|
"use strict";
|
|
7816
8638
|
}
|
|
7817
8639
|
});
|
|
7818
8640
|
|
|
7819
|
-
// node_modules
|
|
8641
|
+
// node_modules/@pmate/utils/src/PromiseQueue.ts
|
|
7820
8642
|
var init_PromiseQueue = __esm({
|
|
7821
|
-
"node_modules
|
|
8643
|
+
"node_modules/@pmate/utils/src/PromiseQueue.ts"() {
|
|
7822
8644
|
"use strict";
|
|
7823
8645
|
}
|
|
7824
8646
|
});
|
|
7825
8647
|
|
|
7826
|
-
// node_modules
|
|
8648
|
+
// node_modules/@pmate/utils/src/resourceKey.ts
|
|
7827
8649
|
var import_js_sha33;
|
|
7828
8650
|
var init_resourceKey = __esm({
|
|
7829
|
-
"node_modules
|
|
8651
|
+
"node_modules/@pmate/utils/src/resourceKey.ts"() {
|
|
7830
8652
|
"use strict";
|
|
7831
8653
|
import_js_sha33 = __toESM(require_sha3(), 1);
|
|
7832
8654
|
}
|
|
7833
8655
|
});
|
|
7834
8656
|
|
|
7835
|
-
// node_modules
|
|
8657
|
+
// node_modules/@pmate/utils/src/SelectionHelper.ts
|
|
7836
8658
|
var init_SelectionHelper = __esm({
|
|
7837
|
-
"node_modules
|
|
8659
|
+
"node_modules/@pmate/utils/src/SelectionHelper.ts"() {
|
|
7838
8660
|
"use strict";
|
|
7839
8661
|
}
|
|
7840
8662
|
});
|
|
7841
8663
|
|
|
7842
|
-
// node_modules
|
|
8664
|
+
// node_modules/@pmate/utils/src/setMinus.ts
|
|
7843
8665
|
var init_setMinus = __esm({
|
|
7844
|
-
"node_modules
|
|
8666
|
+
"node_modules/@pmate/utils/src/setMinus.ts"() {
|
|
7845
8667
|
"use strict";
|
|
7846
8668
|
}
|
|
7847
8669
|
});
|
|
7848
8670
|
|
|
7849
|
-
// node_modules
|
|
8671
|
+
// node_modules/@pmate/utils/src/sha1Hash.ts
|
|
7850
8672
|
var init_sha1Hash = __esm({
|
|
7851
|
-
"node_modules
|
|
8673
|
+
"node_modules/@pmate/utils/src/sha1Hash.ts"() {
|
|
7852
8674
|
"use strict";
|
|
7853
8675
|
}
|
|
7854
8676
|
});
|
|
7855
8677
|
|
|
7856
|
-
// node_modules
|
|
8678
|
+
// node_modules/@pmate/utils/src/TaskWaiter.ts
|
|
7857
8679
|
var init_TaskWaiter = __esm({
|
|
7858
|
-
"node_modules
|
|
8680
|
+
"node_modules/@pmate/utils/src/TaskWaiter.ts"() {
|
|
7859
8681
|
"use strict";
|
|
7860
|
-
|
|
8682
|
+
init_src5();
|
|
7861
8683
|
}
|
|
7862
8684
|
});
|
|
7863
8685
|
|
|
7864
|
-
// node_modules
|
|
8686
|
+
// node_modules/@pmate/utils/src/toSentenceAnalyze.ts
|
|
7865
8687
|
var init_toSentenceAnalyze = __esm({
|
|
7866
|
-
"node_modules
|
|
8688
|
+
"node_modules/@pmate/utils/src/toSentenceAnalyze.ts"() {
|
|
7867
8689
|
"use strict";
|
|
7868
8690
|
}
|
|
7869
8691
|
});
|
|
7870
8692
|
|
|
7871
|
-
// node_modules
|
|
8693
|
+
// node_modules/@pmate/utils/src/txtBookToJson.ts
|
|
7872
8694
|
var init_txtBookToJson = __esm({
|
|
7873
|
-
"node_modules
|
|
8695
|
+
"node_modules/@pmate/utils/src/txtBookToJson.ts"() {
|
|
7874
8696
|
"use strict";
|
|
7875
|
-
|
|
8697
|
+
init_src3();
|
|
7876
8698
|
}
|
|
7877
8699
|
});
|
|
7878
8700
|
|
|
7879
|
-
// node_modules
|
|
8701
|
+
// node_modules/@pmate/utils/src/VocabularyMap.ts
|
|
7880
8702
|
var init_VocabularyMap = __esm({
|
|
7881
|
-
"node_modules
|
|
8703
|
+
"node_modules/@pmate/utils/src/VocabularyMap.ts"() {
|
|
7882
8704
|
"use strict";
|
|
7883
8705
|
init_Emitter();
|
|
7884
8706
|
}
|
|
7885
8707
|
});
|
|
7886
8708
|
|
|
7887
|
-
// node_modules
|
|
8709
|
+
// node_modules/@pmate/utils/src/wait.ts
|
|
7888
8710
|
var init_wait = __esm({
|
|
7889
|
-
"node_modules
|
|
8711
|
+
"node_modules/@pmate/utils/src/wait.ts"() {
|
|
7890
8712
|
"use strict";
|
|
7891
8713
|
}
|
|
7892
8714
|
});
|
|
7893
8715
|
|
|
7894
|
-
// node_modules
|
|
8716
|
+
// node_modules/@pmate/utils/src/wordCount.ts
|
|
7895
8717
|
var init_wordCount = __esm({
|
|
7896
|
-
"node_modules
|
|
8718
|
+
"node_modules/@pmate/utils/src/wordCount.ts"() {
|
|
7897
8719
|
"use strict";
|
|
7898
8720
|
}
|
|
7899
8721
|
});
|
|
7900
8722
|
|
|
7901
|
-
// node_modules
|
|
8723
|
+
// node_modules/@pmate/utils/src/websocket/WebsocketHeartbeat.ts
|
|
7902
8724
|
var logger, WebsocketHeartbeat;
|
|
7903
8725
|
var init_WebsocketHeartbeat = __esm({
|
|
7904
|
-
"node_modules
|
|
8726
|
+
"node_modules/@pmate/utils/src/websocket/WebsocketHeartbeat.ts"() {
|
|
7905
8727
|
"use strict";
|
|
7906
|
-
|
|
8728
|
+
init_src4();
|
|
7907
8729
|
init_Logger();
|
|
7908
8730
|
logger = Logger.getDebugger("heartbeat");
|
|
7909
8731
|
WebsocketHeartbeat = class {
|
|
@@ -7942,12 +8764,12 @@ var init_WebsocketHeartbeat = __esm({
|
|
|
7942
8764
|
}
|
|
7943
8765
|
});
|
|
7944
8766
|
|
|
7945
|
-
// node_modules
|
|
8767
|
+
// node_modules/@pmate/utils/src/websocket/WebsocketClient.ts
|
|
7946
8768
|
var logger2;
|
|
7947
8769
|
var init_WebsocketClient = __esm({
|
|
7948
|
-
"node_modules
|
|
8770
|
+
"node_modules/@pmate/utils/src/websocket/WebsocketClient.ts"() {
|
|
7949
8771
|
"use strict";
|
|
7950
|
-
|
|
8772
|
+
init_src4();
|
|
7951
8773
|
init_Emitter();
|
|
7952
8774
|
init_Logger();
|
|
7953
8775
|
init_Msg();
|
|
@@ -7956,7 +8778,7 @@ var init_WebsocketClient = __esm({
|
|
|
7956
8778
|
}
|
|
7957
8779
|
});
|
|
7958
8780
|
|
|
7959
|
-
// node_modules
|
|
8781
|
+
// node_modules/@pmate/utils/src/websocket/WebsocketClientV2.ts
|
|
7960
8782
|
function isEventLike(value) {
|
|
7961
8783
|
return typeof value === "object" && value !== null && "type" in value && typeof value.type === "string";
|
|
7962
8784
|
}
|
|
@@ -7965,9 +8787,9 @@ function isCloseEvent(value) {
|
|
|
7965
8787
|
}
|
|
7966
8788
|
var logger3, WebsocketClientV2;
|
|
7967
8789
|
var init_WebsocketClientV2 = __esm({
|
|
7968
|
-
"node_modules
|
|
8790
|
+
"node_modules/@pmate/utils/src/websocket/WebsocketClientV2.ts"() {
|
|
7969
8791
|
"use strict";
|
|
7970
|
-
|
|
8792
|
+
init_src4();
|
|
7971
8793
|
init_AsyncStream();
|
|
7972
8794
|
init_Logger();
|
|
7973
8795
|
init_Msg();
|
|
@@ -8212,10 +9034,10 @@ var init_WebsocketClientV2 = __esm({
|
|
|
8212
9034
|
}
|
|
8213
9035
|
});
|
|
8214
9036
|
|
|
8215
|
-
// node_modules
|
|
9037
|
+
// node_modules/@pmate/utils/src/websocket/H3Client.ts
|
|
8216
9038
|
var logger4;
|
|
8217
9039
|
var init_H3Client = __esm({
|
|
8218
|
-
"node_modules
|
|
9040
|
+
"node_modules/@pmate/utils/src/websocket/H3Client.ts"() {
|
|
8219
9041
|
"use strict";
|
|
8220
9042
|
init_Emitter();
|
|
8221
9043
|
init_Logger();
|
|
@@ -8225,9 +9047,9 @@ var init_H3Client = __esm({
|
|
|
8225
9047
|
}
|
|
8226
9048
|
});
|
|
8227
9049
|
|
|
8228
|
-
// node_modules
|
|
9050
|
+
// node_modules/@pmate/utils/src/websocket/index.ts
|
|
8229
9051
|
var init_websocket = __esm({
|
|
8230
|
-
"node_modules
|
|
9052
|
+
"node_modules/@pmate/utils/src/websocket/index.ts"() {
|
|
8231
9053
|
"use strict";
|
|
8232
9054
|
init_WebsocketClient();
|
|
8233
9055
|
init_WebsocketClientV2();
|
|
@@ -8235,9 +9057,9 @@ var init_websocket = __esm({
|
|
|
8235
9057
|
}
|
|
8236
9058
|
});
|
|
8237
9059
|
|
|
8238
|
-
// node_modules
|
|
8239
|
-
var
|
|
8240
|
-
"node_modules
|
|
9060
|
+
// node_modules/@pmate/utils/src/index.ts
|
|
9061
|
+
var init_src5 = __esm({
|
|
9062
|
+
"node_modules/@pmate/utils/src/index.ts"() {
|
|
8241
9063
|
"use strict";
|
|
8242
9064
|
init_base64();
|
|
8243
9065
|
init_batchResolve();
|
|
@@ -8277,7 +9099,7 @@ var init_src3 = __esm({
|
|
|
8277
9099
|
}
|
|
8278
9100
|
});
|
|
8279
9101
|
|
|
8280
|
-
// node_modules
|
|
9102
|
+
// node_modules/@pmate/agent-sdk/dist/debug.js
|
|
8281
9103
|
function isDebugEnabled() {
|
|
8282
9104
|
return process.env.DEBUG === "1";
|
|
8283
9105
|
}
|
|
@@ -8292,12 +9114,12 @@ function debugLog(message, data) {
|
|
|
8292
9114
|
console.log(message, data);
|
|
8293
9115
|
}
|
|
8294
9116
|
var init_debug = __esm({
|
|
8295
|
-
"node_modules
|
|
9117
|
+
"node_modules/@pmate/agent-sdk/dist/debug.js"() {
|
|
8296
9118
|
"use strict";
|
|
8297
9119
|
}
|
|
8298
9120
|
});
|
|
8299
9121
|
|
|
8300
|
-
// node_modules
|
|
9122
|
+
// node_modules/@pmate/agent-sdk/dist/AgentConnectionPool.js
|
|
8301
9123
|
function ensureProtocol(value, protocol) {
|
|
8302
9124
|
if (!value) {
|
|
8303
9125
|
return "";
|
|
@@ -8329,10 +9151,10 @@ function hashToken(token) {
|
|
|
8329
9151
|
}
|
|
8330
9152
|
var IDLE_CLOSE_MS, pool, AgentConnectionPool, AgentPooledConnection;
|
|
8331
9153
|
var init_AgentConnectionPool = __esm({
|
|
8332
|
-
"node_modules
|
|
9154
|
+
"node_modules/@pmate/agent-sdk/dist/AgentConnectionPool.js"() {
|
|
8333
9155
|
"use strict";
|
|
8334
9156
|
init_src();
|
|
8335
|
-
|
|
9157
|
+
init_src5();
|
|
8336
9158
|
init_debug();
|
|
8337
9159
|
IDLE_CLOSE_MS = 5e3;
|
|
8338
9160
|
pool = /* @__PURE__ */ new Map();
|
|
@@ -8576,12 +9398,12 @@ var init_AgentConnectionPool = __esm({
|
|
|
8576
9398
|
}
|
|
8577
9399
|
});
|
|
8578
9400
|
|
|
8579
|
-
// node_modules
|
|
9401
|
+
// node_modules/@pmate/agent-sdk/dist/AgentTaskManager.js
|
|
8580
9402
|
var AgentTaskManager;
|
|
8581
9403
|
var init_AgentTaskManager = __esm({
|
|
8582
|
-
"node_modules
|
|
9404
|
+
"node_modules/@pmate/agent-sdk/dist/AgentTaskManager.js"() {
|
|
8583
9405
|
"use strict";
|
|
8584
|
-
|
|
9406
|
+
init_src5();
|
|
8585
9407
|
init_debug();
|
|
8586
9408
|
AgentTaskManager = class {
|
|
8587
9409
|
constructor() {
|
|
@@ -8748,7 +9570,7 @@ var init_AgentTaskManager = __esm({
|
|
|
8748
9570
|
}
|
|
8749
9571
|
});
|
|
8750
9572
|
|
|
8751
|
-
// node_modules
|
|
9573
|
+
// node_modules/@pmate/agent-sdk/dist/AgentClient.js
|
|
8752
9574
|
function createAgentRequestBody(payload) {
|
|
8753
9575
|
return {
|
|
8754
9576
|
kind: "request",
|
|
@@ -8757,10 +9579,10 @@ function createAgentRequestBody(payload) {
|
|
|
8757
9579
|
}
|
|
8758
9580
|
var logger5, DEFAULT_TIMEOUT_MS, DEFAULT_STREAM_TIMEOUT_MS, DEFAULT_MIN_CHUNK_SIZE_BYTES, AgentClient;
|
|
8759
9581
|
var init_AgentClient = __esm({
|
|
8760
|
-
"node_modules
|
|
9582
|
+
"node_modules/@pmate/agent-sdk/dist/AgentClient.js"() {
|
|
8761
9583
|
"use strict";
|
|
8762
9584
|
init_src();
|
|
8763
|
-
|
|
9585
|
+
init_src5();
|
|
8764
9586
|
init_AgentConnectionPool();
|
|
8765
9587
|
init_AgentTaskManager();
|
|
8766
9588
|
init_debug();
|
|
@@ -9042,62 +9864,62 @@ var init_AgentClient = __esm({
|
|
|
9042
9864
|
}
|
|
9043
9865
|
});
|
|
9044
9866
|
|
|
9045
|
-
// node_modules
|
|
9867
|
+
// node_modules/@pmate/agent-sdk/dist/AgentRuntime.js
|
|
9046
9868
|
var init_AgentRuntime = __esm({
|
|
9047
|
-
"node_modules
|
|
9869
|
+
"node_modules/@pmate/agent-sdk/dist/AgentRuntime.js"() {
|
|
9048
9870
|
"use strict";
|
|
9049
9871
|
init_src();
|
|
9050
|
-
|
|
9872
|
+
init_src5();
|
|
9051
9873
|
}
|
|
9052
9874
|
});
|
|
9053
9875
|
|
|
9054
|
-
// node_modules
|
|
9876
|
+
// node_modules/@pmate/agent-sdk/dist/PromptTaskContext.js
|
|
9055
9877
|
var init_PromptTaskContext = __esm({
|
|
9056
|
-
"node_modules
|
|
9878
|
+
"node_modules/@pmate/agent-sdk/dist/PromptTaskContext.js"() {
|
|
9057
9879
|
"use strict";
|
|
9058
9880
|
}
|
|
9059
9881
|
});
|
|
9060
9882
|
|
|
9061
|
-
// node_modules
|
|
9883
|
+
// node_modules/@pmate/agent-sdk/dist/PromptAgent.js
|
|
9062
9884
|
var init_PromptAgent = __esm({
|
|
9063
|
-
"node_modules
|
|
9885
|
+
"node_modules/@pmate/agent-sdk/dist/PromptAgent.js"() {
|
|
9064
9886
|
"use strict";
|
|
9065
9887
|
init_src();
|
|
9066
|
-
|
|
9888
|
+
init_src5();
|
|
9067
9889
|
init_debug();
|
|
9068
9890
|
init_AgentRuntime();
|
|
9069
9891
|
init_PromptTaskContext();
|
|
9070
9892
|
}
|
|
9071
9893
|
});
|
|
9072
9894
|
|
|
9073
|
-
// node_modules
|
|
9895
|
+
// node_modules/@pmate/agent-sdk/dist/StreamTaskContext.js
|
|
9074
9896
|
var init_StreamTaskContext = __esm({
|
|
9075
|
-
"node_modules
|
|
9897
|
+
"node_modules/@pmate/agent-sdk/dist/StreamTaskContext.js"() {
|
|
9076
9898
|
"use strict";
|
|
9077
9899
|
}
|
|
9078
9900
|
});
|
|
9079
9901
|
|
|
9080
|
-
// node_modules
|
|
9902
|
+
// node_modules/@pmate/agent-sdk/dist/StreamAgent.js
|
|
9081
9903
|
var init_StreamAgent = __esm({
|
|
9082
|
-
"node_modules
|
|
9904
|
+
"node_modules/@pmate/agent-sdk/dist/StreamAgent.js"() {
|
|
9083
9905
|
"use strict";
|
|
9084
9906
|
init_src();
|
|
9085
|
-
|
|
9907
|
+
init_src5();
|
|
9086
9908
|
init_AgentRuntime();
|
|
9087
9909
|
init_StreamTaskContext();
|
|
9088
9910
|
}
|
|
9089
9911
|
});
|
|
9090
9912
|
|
|
9091
|
-
// node_modules
|
|
9913
|
+
// node_modules/@pmate/agent-sdk/dist/AgentFactory.js
|
|
9092
9914
|
var init_AgentFactory = __esm({
|
|
9093
|
-
"node_modules
|
|
9915
|
+
"node_modules/@pmate/agent-sdk/dist/AgentFactory.js"() {
|
|
9094
9916
|
"use strict";
|
|
9095
9917
|
init_PromptAgent();
|
|
9096
9918
|
init_StreamAgent();
|
|
9097
9919
|
}
|
|
9098
9920
|
});
|
|
9099
9921
|
|
|
9100
|
-
// node_modules
|
|
9922
|
+
// node_modules/@pmate/agent-sdk/dist/AgentService.js
|
|
9101
9923
|
function parseAgentId(agentId) {
|
|
9102
9924
|
const separatorIndex = agentId.indexOf(":");
|
|
9103
9925
|
if (separatorIndex <= 0 || separatorIndex === agentId.length - 1) {
|
|
@@ -9127,7 +9949,7 @@ function trimTrailingSlash(value) {
|
|
|
9127
9949
|
}
|
|
9128
9950
|
var AgentService;
|
|
9129
9951
|
var init_AgentService = __esm({
|
|
9130
|
-
"node_modules
|
|
9952
|
+
"node_modules/@pmate/agent-sdk/dist/AgentService.js"() {
|
|
9131
9953
|
"use strict";
|
|
9132
9954
|
AgentService = class {
|
|
9133
9955
|
constructor(options) {
|
|
@@ -9168,9 +9990,9 @@ var init_AgentService = __esm({
|
|
|
9168
9990
|
}
|
|
9169
9991
|
});
|
|
9170
9992
|
|
|
9171
|
-
// node_modules
|
|
9993
|
+
// node_modules/@pmate/agent-sdk/dist/index.js
|
|
9172
9994
|
var init_dist2 = __esm({
|
|
9173
|
-
"node_modules
|
|
9995
|
+
"node_modules/@pmate/agent-sdk/dist/index.js"() {
|
|
9174
9996
|
"use strict";
|
|
9175
9997
|
init_AgentClient();
|
|
9176
9998
|
init_AgentFactory();
|
|
@@ -9180,7 +10002,7 @@ var init_dist2 = __esm({
|
|
|
9180
10002
|
init_AgentTaskManager();
|
|
9181
10003
|
init_AgentService();
|
|
9182
10004
|
init_debug();
|
|
9183
|
-
|
|
10005
|
+
init_src5();
|
|
9184
10006
|
}
|
|
9185
10007
|
});
|
|
9186
10008
|
|
|
@@ -10658,7 +11480,10 @@ var AliyunService = class {
|
|
|
10658
11480
|
{
|
|
10659
11481
|
functionName: "host_redirect",
|
|
10660
11482
|
functionArgs: [
|
|
10661
|
-
{
|
|
11483
|
+
{
|
|
11484
|
+
argName: "regex",
|
|
11485
|
+
argValue: "^/(?!\\.well-known(?:/|$))(?!.*\\.[^/]+$).*"
|
|
11486
|
+
},
|
|
10662
11487
|
{ argName: "replacement", argValue: "/index.html" },
|
|
10663
11488
|
{ argName: "flag", argValue: "break" }
|
|
10664
11489
|
]
|
|
@@ -10677,7 +11502,10 @@ var AliyunService = class {
|
|
|
10677
11502
|
{
|
|
10678
11503
|
functionName: "host_redirect",
|
|
10679
11504
|
functionArgs: [
|
|
10680
|
-
{
|
|
11505
|
+
{
|
|
11506
|
+
argName: "regex",
|
|
11507
|
+
argValue: "^/(?!\\.well-known(?:/|$))(?!.*\\.[^/]+$)(.*?)(?:/)?$"
|
|
11508
|
+
},
|
|
10681
11509
|
{ argName: "replacement", argValue: "/$1/index.html" },
|
|
10682
11510
|
{ argName: "flag", argValue: "break" }
|
|
10683
11511
|
]
|
|
@@ -10882,6 +11710,9 @@ var AliyunService = class {
|
|
|
10882
11710
|
return `${prefix}/${normalizedPath}`;
|
|
10883
11711
|
}
|
|
10884
11712
|
static getContentType(filePath) {
|
|
11713
|
+
if (import_node_path4.default.basename(filePath).toLowerCase() === "apple-app-site-association") {
|
|
11714
|
+
return "application/json";
|
|
11715
|
+
}
|
|
10885
11716
|
const ext = import_node_path4.default.extname(filePath).toLowerCase();
|
|
10886
11717
|
switch (ext) {
|
|
10887
11718
|
case ".html":
|
|
@@ -10926,7 +11757,7 @@ var AliyunService = class {
|
|
|
10926
11757
|
static getStaticAssetCacheControl(filePath) {
|
|
10927
11758
|
const normalized = filePath.replace(/\\/g, "/");
|
|
10928
11759
|
const base = import_node_path4.default.posix.basename(normalized).toLowerCase();
|
|
10929
|
-
if (base === "index.html" || base === "200.html" || base === "404.html") {
|
|
11760
|
+
if (base === "index.html" || base === "200.html" || base === "404.html" || base === "apple-app-site-association") {
|
|
10930
11761
|
return "no-cache, no-store, must-revalidate";
|
|
10931
11762
|
}
|
|
10932
11763
|
if (/[.-][a-z0-9_-]{8,}\./i.test(base)) {
|