@pmate/cli 0.24.24 → 0.24.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/index.d.ts +10 -1
  2. package/dist/index.js +566 -694
  3. package/package.json +18 -11
package/dist/index.js CHANGED
@@ -293,157 +293,160 @@ var init_sessionStore = __esm({
293
293
  }
294
294
  });
295
295
 
296
- // node_modules/@pmate/meta/src/types/account.types.ts
296
+ // node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/account.types.ts
297
297
  var init_account_types = __esm({
298
- "node_modules/@pmate/meta/src/types/account.types.ts"() {
298
+ "node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/account.types.ts"() {
299
299
  "use strict";
300
300
  }
301
301
  });
302
302
 
303
- // node_modules/@pmate/meta/src/types/achievements.types.ts
303
+ // node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/achievements.types.ts
304
304
  var init_achievements_types = __esm({
305
- "node_modules/@pmate/meta/src/types/achievements.types.ts"() {
305
+ "node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/achievements.types.ts"() {
306
306
  "use strict";
307
307
  }
308
308
  });
309
309
 
310
- // node_modules/@pmate/meta/src/types/aigen.types.ts
310
+ // node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/aigen.types.ts
311
311
  var init_aigen_types = __esm({
312
- "node_modules/@pmate/meta/src/types/aigen.types.ts"() {
312
+ "node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/aigen.types.ts"() {
313
313
  "use strict";
314
314
  }
315
315
  });
316
316
 
317
- // node_modules/@pmate/meta/src/types/agent.types.ts
317
+ // node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/agent.types.ts
318
318
  var init_agent_types = __esm({
319
- "node_modules/@pmate/meta/src/types/agent.types.ts"() {
319
+ "node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/agent.types.ts"() {
320
320
  "use strict";
321
321
  }
322
322
  });
323
323
 
324
- // node_modules/@pmate/meta/src/types/agent-registry.types.ts
324
+ // node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/agent-registry.types.ts
325
325
  var init_agent_registry_types = __esm({
326
- "node_modules/@pmate/meta/src/types/agent-registry.types.ts"() {
326
+ "node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/agent-registry.types.ts"() {
327
327
  "use strict";
328
328
  }
329
329
  });
330
330
 
331
- // node_modules/@pmate/meta/src/types/runner-registry.types.ts
331
+ // node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/runner-registry.types.ts
332
332
  var init_runner_registry_types = __esm({
333
- "node_modules/@pmate/meta/src/types/runner-registry.types.ts"() {
333
+ "node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/runner-registry.types.ts"() {
334
334
  "use strict";
335
335
  }
336
336
  });
337
337
 
338
- // node_modules/@pmate/meta/src/types/blockchain.types.ts
338
+ // node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/blockchain.types.ts
339
339
  var init_blockchain_types = __esm({
340
- "node_modules/@pmate/meta/src/types/blockchain.types.ts"() {
340
+ "node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/blockchain.types.ts"() {
341
341
  "use strict";
342
342
  }
343
343
  });
344
344
 
345
- // node_modules/@pmate/meta/src/types/breakdown.types.ts
345
+ // node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/breakdown.types.ts
346
346
  var init_breakdown_types = __esm({
347
- "node_modules/@pmate/meta/src/types/breakdown.types.ts"() {
347
+ "node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/breakdown.types.ts"() {
348
348
  "use strict";
349
349
  }
350
350
  });
351
351
 
352
- // node_modules/@pmate/meta/src/types/chat.types.ts
352
+ // node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/chat.types.ts
353
353
  var init_chat_types = __esm({
354
- "node_modules/@pmate/meta/src/types/chat.types.ts"() {
354
+ "node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/chat.types.ts"() {
355
355
  "use strict";
356
356
  }
357
357
  });
358
358
 
359
- // node_modules/@pmate/meta/src/types/companion.types.ts
359
+ // node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/companion.types.ts
360
360
  var init_companion_types = __esm({
361
- "node_modules/@pmate/meta/src/types/companion.types.ts"() {
361
+ "node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/companion.types.ts"() {
362
362
  "use strict";
363
363
  }
364
364
  });
365
365
 
366
- // node_modules/@pmate/meta/src/types/enums.ts
366
+ // node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/enums.ts
367
367
  var init_enums = __esm({
368
- "node_modules/@pmate/meta/src/types/enums.ts"() {
368
+ "node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/enums.ts"() {
369
369
  "use strict";
370
370
  }
371
371
  });
372
372
 
373
- // node_modules/@pmate/meta/src/types/lang.types.ts
373
+ // node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/lang.types.ts
374
374
  var init_lang_types = __esm({
375
- "node_modules/@pmate/meta/src/types/lang.types.ts"() {
375
+ "node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/lang.types.ts"() {
376
376
  "use strict";
377
377
  }
378
378
  });
379
379
 
380
- // node_modules/@pmate/meta/src/types/logs.types.ts
380
+ // node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/logs.types.ts
381
381
  var init_logs_types = __esm({
382
- "node_modules/@pmate/meta/src/types/logs.types.ts"() {
382
+ "node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/logs.types.ts"() {
383
383
  "use strict";
384
384
  }
385
385
  });
386
386
 
387
- // node_modules/@pmate/meta/src/types/message.types.ts
387
+ // node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/message.types.ts
388
+ var PING, PONG;
388
389
  var init_message_types = __esm({
389
- "node_modules/@pmate/meta/src/types/message.types.ts"() {
390
+ "node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/message.types.ts"() {
390
391
  "use strict";
392
+ PING = 1;
393
+ PONG = 2;
391
394
  }
392
395
  });
393
396
 
394
- // node_modules/@pmate/meta/src/types/newLog.types.ts
397
+ // node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/newLog.types.ts
395
398
  var init_newLog_types = __esm({
396
- "node_modules/@pmate/meta/src/types/newLog.types.ts"() {
399
+ "node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/newLog.types.ts"() {
397
400
  "use strict";
398
401
  }
399
402
  });
400
403
 
401
- // node_modules/@pmate/meta/src/types/novel.types.ts
404
+ // node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/novel.types.ts
402
405
  var init_novel_types = __esm({
403
- "node_modules/@pmate/meta/src/types/novel.types.ts"() {
406
+ "node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/novel.types.ts"() {
404
407
  "use strict";
405
408
  }
406
409
  });
407
410
 
408
- // node_modules/@pmate/meta/src/types/offline.types.ts
411
+ // node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/offline.types.ts
409
412
  var init_offline_types = __esm({
410
- "node_modules/@pmate/meta/src/types/offline.types.ts"() {
413
+ "node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/offline.types.ts"() {
411
414
  "use strict";
412
415
  }
413
416
  });
414
417
 
415
- // node_modules/@pmate/meta/src/types/prompt.types.ts
418
+ // node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/prompt.types.ts
416
419
  var init_prompt_types = __esm({
417
- "node_modules/@pmate/meta/src/types/prompt.types.ts"() {
420
+ "node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/prompt.types.ts"() {
418
421
  "use strict";
419
422
  }
420
423
  });
421
424
 
422
- // node_modules/@pmate/meta/src/types/reading.types.ts
425
+ // node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/reading.types.ts
423
426
  var init_reading_types = __esm({
424
- "node_modules/@pmate/meta/src/types/reading.types.ts"() {
427
+ "node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/reading.types.ts"() {
425
428
  "use strict";
426
429
  }
427
430
  });
428
431
 
429
- // node_modules/@pmate/meta/src/types/settings.types.ts
432
+ // node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/settings.types.ts
430
433
  var init_settings_types = __esm({
431
- "node_modules/@pmate/meta/src/types/settings.types.ts"() {
434
+ "node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/settings.types.ts"() {
432
435
  "use strict";
433
436
  }
434
437
  });
435
438
 
436
- // node_modules/@pmate/meta/src/types/subscription.types.ts
439
+ // node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/subscription.types.ts
437
440
  var init_subscription_types = __esm({
438
- "node_modules/@pmate/meta/src/types/subscription.types.ts"() {
441
+ "node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/subscription.types.ts"() {
439
442
  "use strict";
440
443
  }
441
444
  });
442
445
 
443
- // node_modules/@pmate/meta/src/types/types.ts
446
+ // node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/types.ts
444
447
  var buildVoiceKey, createVoice;
445
448
  var init_types = __esm({
446
- "node_modules/@pmate/meta/src/types/types.ts"() {
449
+ "node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/types.ts"() {
447
450
  "use strict";
448
451
  buildVoiceKey = (provider, name) => {
449
452
  return `${provider}:${name}`;
@@ -465,44 +468,44 @@ var init_types = __esm({
465
468
  }
466
469
  });
467
470
 
468
- // node_modules/@pmate/meta/src/types/wordv5.def.ts
471
+ // node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/wordv5.def.ts
469
472
  var init_wordv5_def = __esm({
470
- "node_modules/@pmate/meta/src/types/wordv5.def.ts"() {
473
+ "node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/wordv5.def.ts"() {
471
474
  "use strict";
472
475
  }
473
476
  });
474
477
 
475
- // node_modules/@pmate/meta/src/types/auth.types.ts
478
+ // node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/auth.types.ts
476
479
  var init_auth_types = __esm({
477
- "node_modules/@pmate/meta/src/types/auth.types.ts"() {
480
+ "node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/auth.types.ts"() {
478
481
  "use strict";
479
482
  }
480
483
  });
481
484
 
482
- // node_modules/@pmate/meta/src/types/apps.types.ts
485
+ // node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/apps.types.ts
483
486
  var init_apps_types = __esm({
484
- "node_modules/@pmate/meta/src/types/apps.types.ts"() {
487
+ "node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/apps.types.ts"() {
485
488
  "use strict";
486
489
  }
487
490
  });
488
491
 
489
- // node_modules/@pmate/meta/src/types/response.types.ts
492
+ // node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/response.types.ts
490
493
  var init_response_types = __esm({
491
- "node_modules/@pmate/meta/src/types/response.types.ts"() {
494
+ "node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/response.types.ts"() {
492
495
  "use strict";
493
496
  }
494
497
  });
495
498
 
496
- // node_modules/@pmate/meta/src/types/role.types.ts
499
+ // node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/role.types.ts
497
500
  var init_role_types = __esm({
498
- "node_modules/@pmate/meta/src/types/role.types.ts"() {
501
+ "node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/role.types.ts"() {
499
502
  "use strict";
500
503
  }
501
504
  });
502
505
 
503
- // node_modules/@pmate/meta/src/types/index.ts
506
+ // node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/index.ts
504
507
  var init_types2 = __esm({
505
- "node_modules/@pmate/meta/src/types/index.ts"() {
508
+ "node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/types/index.ts"() {
506
509
  "use strict";
507
510
  init_account_types();
508
511
  init_achievements_types();
@@ -534,24 +537,24 @@ var init_types2 = __esm({
534
537
  }
535
538
  });
536
539
 
537
- // node_modules/@pmate/meta/src/config/BizErrorCode.ts
540
+ // node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/config/BizErrorCode.ts
538
541
  var init_BizErrorCode = __esm({
539
- "node_modules/@pmate/meta/src/config/BizErrorCode.ts"() {
542
+ "node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/config/BizErrorCode.ts"() {
540
543
  "use strict";
541
544
  }
542
545
  });
543
546
 
544
- // node_modules/@pmate/meta/src/config/consts.ts
547
+ // node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/config/consts.ts
545
548
  var init_consts = __esm({
546
- "node_modules/@pmate/meta/src/config/consts.ts"() {
549
+ "node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/config/consts.ts"() {
547
550
  "use strict";
548
551
  }
549
552
  });
550
553
 
551
- // node_modules/@pmate/meta/src/config/TopicNames.ts
554
+ // node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/config/TopicNames.ts
552
555
  var TopicNames, topicKindMatchers;
553
556
  var init_TopicNames = __esm({
554
- "node_modules/@pmate/meta/src/config/TopicNames.ts"() {
557
+ "node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/config/TopicNames.ts"() {
555
558
  "use strict";
556
559
  init_types2();
557
560
  TopicNames = class _TopicNames {
@@ -637,18 +640,18 @@ var init_TopicNames = __esm({
637
640
  }
638
641
  });
639
642
 
640
- // node_modules/@pmate/meta/src/config/OSSKeys.ts
643
+ // node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/config/OSSKeys.ts
641
644
  var init_OSSKeys = __esm({
642
- "node_modules/@pmate/meta/src/config/OSSKeys.ts"() {
645
+ "node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/config/OSSKeys.ts"() {
643
646
  "use strict";
644
647
  init_consts();
645
648
  }
646
649
  });
647
650
 
648
- // node_modules/@pmate/meta/src/config/CompanionProfiles.ts
651
+ // node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/config/CompanionProfiles.ts
649
652
  var openAICoral, openAIAsh, openAIBallad, openAINova, openAIVerse;
650
653
  var init_CompanionProfiles = __esm({
651
- "node_modules/@pmate/meta/src/config/CompanionProfiles.ts"() {
654
+ "node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/config/CompanionProfiles.ts"() {
652
655
  "use strict";
653
656
  init_types2();
654
657
  openAICoral = createVoice({
@@ -683,9 +686,9 @@ var init_CompanionProfiles = __esm({
683
686
  }
684
687
  });
685
688
 
686
- // node_modules/@pmate/meta/src/config/index.ts
689
+ // node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/config/index.ts
687
690
  var init_config = __esm({
688
- "node_modules/@pmate/meta/src/config/index.ts"() {
691
+ "node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/config/index.ts"() {
689
692
  "use strict";
690
693
  init_BizErrorCode();
691
694
  init_consts();
@@ -695,83 +698,83 @@ var init_config = __esm({
695
698
  }
696
699
  });
697
700
 
698
- // node_modules/@pmate/meta/src/index.ts
701
+ // node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/index.ts
699
702
  var init_src = __esm({
700
- "node_modules/@pmate/meta/src/index.ts"() {
703
+ "node_modules/.pnpm/@pmate+meta@1.1.13/node_modules/@pmate/meta/src/index.ts"() {
701
704
  "use strict";
702
705
  init_types2();
703
706
  init_config();
704
707
  }
705
708
  });
706
709
 
707
- // node_modules/@pmate/utils/src/base64.ts
710
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/base64.ts
708
711
  var init_base64 = __esm({
709
- "node_modules/@pmate/utils/src/base64.ts"() {
712
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/base64.ts"() {
710
713
  "use strict";
711
714
  }
712
715
  });
713
716
 
714
- // node_modules/@pmate/utils/src/Cache.ts
717
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/Cache.ts
715
718
  var init_Cache = __esm({
716
- "node_modules/@pmate/utils/src/Cache.ts"() {
719
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/Cache.ts"() {
717
720
  "use strict";
718
721
  }
719
722
  });
720
723
 
721
- // node_modules/@pmate/utils/src/batchResolve.ts
724
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/batchResolve.ts
722
725
  var init_batchResolve = __esm({
723
- "node_modules/@pmate/utils/src/batchResolve.ts"() {
726
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/batchResolve.ts"() {
724
727
  "use strict";
725
728
  init_Cache();
726
729
  }
727
730
  });
728
731
 
729
- // node_modules/@pmate/lang/src/cn/sentenceSpliter.ts
732
+ // node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/cn/sentenceSpliter.ts
730
733
  var init_sentenceSpliter = __esm({
731
- "node_modules/@pmate/lang/src/cn/sentenceSpliter.ts"() {
734
+ "node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/cn/sentenceSpliter.ts"() {
732
735
  "use strict";
733
736
  }
734
737
  });
735
738
 
736
- // node_modules/@pmate/lang/src/cn/sentenceTrim.ts
739
+ // node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/cn/sentenceTrim.ts
737
740
  var init_sentenceTrim = __esm({
738
- "node_modules/@pmate/lang/src/cn/sentenceTrim.ts"() {
741
+ "node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/cn/sentenceTrim.ts"() {
739
742
  "use strict";
740
743
  }
741
744
  });
742
745
 
743
- // node_modules/@pmate/lang/src/cn/wordSpliter.ts
746
+ // node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/cn/wordSpliter.ts
744
747
  var init_wordSpliter = __esm({
745
- "node_modules/@pmate/lang/src/cn/wordSpliter.ts"() {
748
+ "node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/cn/wordSpliter.ts"() {
746
749
  "use strict";
747
750
  }
748
751
  });
749
752
 
750
- // node_modules/@pmate/lang/src/en/regex.ts
753
+ // node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/en/regex.ts
751
754
  var init_regex = __esm({
752
- "node_modules/@pmate/lang/src/en/regex.ts"() {
755
+ "node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/en/regex.ts"() {
753
756
  "use strict";
754
757
  }
755
758
  });
756
759
 
757
- // node_modules/@pmate/lang/src/en/sentenceSpliter.ts
760
+ // node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/en/sentenceSpliter.ts
758
761
  var init_sentenceSpliter2 = __esm({
759
- "node_modules/@pmate/lang/src/en/sentenceSpliter.ts"() {
762
+ "node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/en/sentenceSpliter.ts"() {
760
763
  "use strict";
761
764
  }
762
765
  });
763
766
 
764
- // node_modules/@pmate/lang/src/en/sentenceTrim.ts
767
+ // node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/en/sentenceTrim.ts
765
768
  var init_sentenceTrim2 = __esm({
766
- "node_modules/@pmate/lang/src/en/sentenceTrim.ts"() {
769
+ "node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/en/sentenceTrim.ts"() {
767
770
  "use strict";
768
771
  }
769
772
  });
770
773
 
771
- // node_modules/@pmate/lang/src/en/wordSpliter.ts
774
+ // node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/en/wordSpliter.ts
772
775
  var regex;
773
776
  var init_wordSpliter2 = __esm({
774
- "node_modules/@pmate/lang/src/en/wordSpliter.ts"() {
777
+ "node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/en/wordSpliter.ts"() {
775
778
  "use strict";
776
779
  regex = new RegExp(
777
780
  [
@@ -807,23 +810,23 @@ var init_wordSpliter2 = __esm({
807
810
  }
808
811
  });
809
812
 
810
- // node_modules/@pmate/lang/src/kr/sentenceSpliter.ts
813
+ // node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/kr/sentenceSpliter.ts
811
814
  var init_sentenceSpliter3 = __esm({
812
- "node_modules/@pmate/lang/src/kr/sentenceSpliter.ts"() {
815
+ "node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/kr/sentenceSpliter.ts"() {
813
816
  "use strict";
814
817
  }
815
818
  });
816
819
 
817
- // node_modules/@pmate/lang/src/kr/wordSpliter.ts
820
+ // node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/kr/wordSpliter.ts
818
821
  var init_wordSpliter3 = __esm({
819
- "node_modules/@pmate/lang/src/kr/wordSpliter.ts"() {
822
+ "node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/kr/wordSpliter.ts"() {
820
823
  "use strict";
821
824
  }
822
825
  });
823
826
 
824
- // node_modules/@pmate/lang/src/readingSettings.ts
827
+ // node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/readingSettings.ts
825
828
  var init_readingSettings = __esm({
826
- "node_modules/@pmate/lang/src/readingSettings.ts"() {
829
+ "node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/readingSettings.ts"() {
827
830
  "use strict";
828
831
  init_sentenceSpliter();
829
832
  init_wordSpliter();
@@ -834,17 +837,17 @@ var init_readingSettings = __esm({
834
837
  }
835
838
  });
836
839
 
837
- // node_modules/@pmate/lang/src/utils.ts
840
+ // node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/utils.ts
838
841
  var init_utils = __esm({
839
- "node_modules/@pmate/lang/src/utils.ts"() {
842
+ "node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/utils.ts"() {
840
843
  "use strict";
841
844
  init_src();
842
845
  }
843
846
  });
844
847
 
845
- // node_modules/@pmate/lang/src/index.ts
848
+ // node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/index.ts
846
849
  var init_src2 = __esm({
847
- "node_modules/@pmate/lang/src/index.ts"() {
850
+ "node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/index.ts"() {
848
851
  "use strict";
849
852
  init_sentenceSpliter();
850
853
  init_sentenceTrim();
@@ -860,32 +863,32 @@ var init_src2 = __esm({
860
863
  }
861
864
  });
862
865
 
863
- // node_modules/@pmate/utils/src/bookStats.ts
866
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/bookStats.ts
864
867
  var init_bookStats = __esm({
865
- "node_modules/@pmate/utils/src/bookStats.ts"() {
868
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/bookStats.ts"() {
866
869
  "use strict";
867
870
  init_src2();
868
871
  }
869
872
  });
870
873
 
871
- // node_modules/@pmate/utils/src/BoundedConcurrentQueue.ts
874
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/BoundedConcurrentQueue.ts
872
875
  var init_BoundedConcurrentQueue = __esm({
873
- "node_modules/@pmate/utils/src/BoundedConcurrentQueue.ts"() {
876
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/BoundedConcurrentQueue.ts"() {
874
877
  "use strict";
875
878
  }
876
879
  });
877
880
 
878
- // node_modules/@pmate/utils/src/lru.ts
881
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/lru.ts
879
882
  var init_lru = __esm({
880
- "node_modules/@pmate/utils/src/lru.ts"() {
883
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/lru.ts"() {
881
884
  "use strict";
882
885
  init_Cache();
883
886
  }
884
887
  });
885
888
 
886
- // node_modules/js-sha3/src/sha3.js
889
+ // node_modules/.pnpm/js-sha3@0.9.3/node_modules/js-sha3/src/sha3.js
887
890
  var require_sha3 = __commonJS({
888
- "node_modules/js-sha3/src/sha3.js"(exports2, module2) {
891
+ "node_modules/.pnpm/js-sha3@0.9.3/node_modules/js-sha3/src/sha3.js"(exports2, module2) {
889
892
  "use strict";
890
893
  (function() {
891
894
  "use strict";
@@ -1530,24 +1533,24 @@ var require_sha3 = __commonJS({
1530
1533
  }
1531
1534
  });
1532
1535
 
1533
- // node_modules/@pmate/utils/src/Maybe.ts
1536
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/Maybe.ts
1534
1537
  var init_Maybe = __esm({
1535
- "node_modules/@pmate/utils/src/Maybe.ts"() {
1538
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/Maybe.ts"() {
1536
1539
  "use strict";
1537
1540
  }
1538
1541
  });
1539
1542
 
1540
- // node_modules/@pmate/utils/src/cacheMethodInMem.ts
1543
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/cacheMethodInMem.ts
1541
1544
  var import_js_sha3;
1542
1545
  var init_cacheMethodInMem = __esm({
1543
- "node_modules/@pmate/utils/src/cacheMethodInMem.ts"() {
1546
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/cacheMethodInMem.ts"() {
1544
1547
  "use strict";
1545
1548
  import_js_sha3 = __toESM(require_sha3(), 1);
1546
1549
  init_Maybe();
1547
1550
  }
1548
1551
  });
1549
1552
 
1550
- // node_modules/pako/dist/pako.esm.mjs
1553
+ // node_modules/.pnpm/pako@2.1.0/node_modules/pako/dist/pako.esm.mjs
1551
1554
  function zero$1(buf) {
1552
1555
  let len = buf.length;
1553
1556
  while (--len >= 0) {
@@ -1835,7 +1838,7 @@ function inflateRaw$1(input, options) {
1835
1838
  }
1836
1839
  var Z_FIXED$1, Z_BINARY, Z_TEXT, Z_UNKNOWN$1, STORED_BLOCK, STATIC_TREES, DYN_TREES, MIN_MATCH$1, MAX_MATCH$1, LENGTH_CODES$1, LITERALS$1, L_CODES$1, D_CODES$1, BL_CODES$1, HEAP_SIZE$1, MAX_BITS$1, Buf_size, MAX_BL_BITS, END_BLOCK, REP_3_6, REPZ_3_10, REPZ_11_138, extra_lbits, extra_dbits, extra_blbits, bl_order, DIST_CODE_LEN, static_ltree, static_dtree, _dist_code, _length_code, base_length, base_dist, static_l_desc, static_d_desc, static_bl_desc, d_code, put_short, send_bits, send_code, bi_reverse, bi_flush, gen_bitlen, gen_codes, tr_static_init, init_block, bi_windup, smaller, pqdownheap, compress_block, build_tree, scan_tree, send_tree, build_bl_tree, send_all_trees, detect_data_type, static_init_done, _tr_init$1, _tr_stored_block$1, _tr_align$1, _tr_flush_block$1, _tr_tally$1, _tr_init_1, _tr_stored_block_1, _tr_flush_block_1, _tr_tally_1, _tr_align_1, trees, adler32, adler32_1, makeTable, crcTable, crc32, crc32_1, messages, constants$2, _tr_init, _tr_stored_block, _tr_flush_block, _tr_tally, _tr_align, Z_NO_FLUSH$2, Z_PARTIAL_FLUSH, Z_FULL_FLUSH$1, Z_FINISH$3, Z_BLOCK$1, Z_OK$3, Z_STREAM_END$3, Z_STREAM_ERROR$2, Z_DATA_ERROR$2, Z_BUF_ERROR$1, Z_DEFAULT_COMPRESSION$1, Z_FILTERED, Z_HUFFMAN_ONLY, Z_RLE, Z_FIXED, Z_DEFAULT_STRATEGY$1, Z_UNKNOWN, Z_DEFLATED$2, MAX_MEM_LEVEL, MAX_WBITS$1, DEF_MEM_LEVEL, LENGTH_CODES, LITERALS, L_CODES, D_CODES, BL_CODES, HEAP_SIZE, MAX_BITS, MIN_MATCH, MAX_MATCH, MIN_LOOKAHEAD, PRESET_DICT, INIT_STATE, GZIP_STATE, EXTRA_STATE, NAME_STATE, COMMENT_STATE, HCRC_STATE, BUSY_STATE, FINISH_STATE, BS_NEED_MORE, BS_BLOCK_DONE, BS_FINISH_STARTED, BS_FINISH_DONE, OS_CODE, err, rank, zero, slide_hash, HASH_ZLIB, HASH, flush_pending, flush_block_only, put_byte, putShortMSB, read_buf, longest_match, fill_window, deflate_stored, deflate_fast, deflate_slow, deflate_rle, deflate_huff, configuration_table, lm_init, deflateStateCheck, deflateResetKeep, deflateReset, deflateSetHeader, deflateInit2, deflateInit, deflate$2, deflateEnd, deflateSetDictionary, deflateInit_1, deflateInit2_1, deflateReset_1, deflateResetKeep_1, deflateSetHeader_1, deflate_2$1, deflateEnd_1, deflateSetDictionary_1, deflateInfo, deflate_1$2, _has, assign, flattenChunks, common, STR_APPLY_UIA_OK, _utf8len, string2buf, buf2binstring, buf2string, utf8border, strings, zstream, toString$1, Z_NO_FLUSH$1, Z_SYNC_FLUSH, Z_FULL_FLUSH, Z_FINISH$2, Z_OK$2, Z_STREAM_END$2, Z_DEFAULT_COMPRESSION, Z_DEFAULT_STRATEGY, Z_DEFLATED$1, Deflate_1$1, deflate_2, deflateRaw_1$1, gzip_1$1, constants$1, deflate_1$1, BAD$1, TYPE$1, inffast, MAXBITS, ENOUGH_LENS$1, ENOUGH_DISTS$1, CODES$1, LENS$1, DISTS$1, lbase, lext, dbase, dext, inflate_table, inftrees, CODES, LENS, DISTS, Z_FINISH$1, Z_BLOCK, Z_TREES, Z_OK$1, Z_STREAM_END$1, Z_NEED_DICT$1, Z_STREAM_ERROR$1, Z_DATA_ERROR$1, Z_MEM_ERROR$1, Z_BUF_ERROR, Z_DEFLATED, HEAD, FLAGS, TIME, OS, EXLEN, EXTRA, NAME, COMMENT, HCRC, DICTID, DICT, TYPE, TYPEDO, STORED, COPY_, COPY, TABLE, LENLENS, CODELENS, LEN_, LEN, LENEXT, DIST, DISTEXT, MATCH, LIT, CHECK, LENGTH, DONE, BAD, MEM, SYNC, ENOUGH_LENS, ENOUGH_DISTS, MAX_WBITS, DEF_WBITS, zswap32, inflateStateCheck, inflateResetKeep, inflateReset, inflateReset2, inflateInit2, inflateInit, virgin, lenfix, distfix, fixedtables, updatewindow, inflate$2, inflateEnd, inflateGetHeader, inflateSetDictionary, inflateReset_1, inflateReset2_1, inflateResetKeep_1, inflateInit_1, inflateInit2_1, inflate_2$1, inflateEnd_1, inflateGetHeader_1, inflateSetDictionary_1, inflateInfo, inflate_1$2, gzheader, toString, Z_NO_FLUSH, Z_FINISH, Z_OK, Z_STREAM_END, Z_NEED_DICT, Z_STREAM_ERROR, Z_DATA_ERROR, Z_MEM_ERROR, Inflate_1$1, inflate_2, inflateRaw_1$1, ungzip$1, constants, inflate_1$1, Deflate, deflate, deflateRaw, gzip, Inflate, inflate, inflateRaw, ungzip, gzip_1;
1837
1840
  var init_pako_esm = __esm({
1838
- "node_modules/pako/dist/pako.esm.mjs"() {
1841
+ "node_modules/.pnpm/pako@2.1.0/node_modules/pako/dist/pako.esm.mjs"() {
1839
1842
  "use strict";
1840
1843
  Z_FIXED$1 = 4;
1841
1844
  Z_BINARY = 0;
@@ -5716,7 +5719,7 @@ var init_pako_esm = __esm({
5716
5719
  }
5717
5720
  });
5718
5721
 
5719
- // node_modules/@pmate/utils/src/compress.ts
5722
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/compress.ts
5720
5723
  async function gzipEncodeBlob(input) {
5721
5724
  const array = await toUint8Array(input);
5722
5725
  return gzip_1(array);
@@ -5742,16 +5745,16 @@ async function toUint8Array(input) {
5742
5745
  throw new TypeError("Unsupported input type for gzipEncodeBlob");
5743
5746
  }
5744
5747
  var init_compress = __esm({
5745
- "node_modules/@pmate/utils/src/compress.ts"() {
5748
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/compress.ts"() {
5746
5749
  "use strict";
5747
5750
  init_pako_esm();
5748
5751
  }
5749
5752
  });
5750
5753
 
5751
- // node_modules/@pmate/utils/src/AsyncStream.ts
5754
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/AsyncStream.ts
5752
5755
  var AsyncStream;
5753
5756
  var init_AsyncStream = __esm({
5754
- "node_modules/@pmate/utils/src/AsyncStream.ts"() {
5757
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/AsyncStream.ts"() {
5755
5758
  "use strict";
5756
5759
  AsyncStream = class _AsyncStream {
5757
5760
  constructor() {
@@ -5939,426 +5942,12 @@ var init_AsyncStream = __esm({
5939
5942
  }
5940
5943
  });
5941
5944
 
5942
- // node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/account.types.ts
5943
- var init_account_types2 = __esm({
5944
- "node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/account.types.ts"() {
5945
- "use strict";
5946
- }
5947
- });
5948
-
5949
- // node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/achievements.types.ts
5950
- var init_achievements_types2 = __esm({
5951
- "node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/achievements.types.ts"() {
5952
- "use strict";
5953
- }
5954
- });
5955
-
5956
- // node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/aigen.types.ts
5957
- var init_aigen_types2 = __esm({
5958
- "node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/aigen.types.ts"() {
5959
- "use strict";
5960
- }
5961
- });
5962
-
5963
- // node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/agent.types.ts
5964
- var init_agent_types2 = __esm({
5965
- "node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/agent.types.ts"() {
5966
- "use strict";
5967
- }
5968
- });
5969
-
5970
- // node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/agent-registry.types.ts
5971
- var init_agent_registry_types2 = __esm({
5972
- "node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/agent-registry.types.ts"() {
5973
- "use strict";
5974
- }
5975
- });
5976
-
5977
- // node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/runner-registry.types.ts
5978
- var init_runner_registry_types2 = __esm({
5979
- "node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/runner-registry.types.ts"() {
5980
- "use strict";
5981
- }
5982
- });
5983
-
5984
- // node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/blockchain.types.ts
5985
- var init_blockchain_types2 = __esm({
5986
- "node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/blockchain.types.ts"() {
5987
- "use strict";
5988
- }
5989
- });
5990
-
5991
- // node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/breakdown.types.ts
5992
- var init_breakdown_types2 = __esm({
5993
- "node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/breakdown.types.ts"() {
5994
- "use strict";
5995
- }
5996
- });
5997
-
5998
- // node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/chat.types.ts
5999
- var init_chat_types2 = __esm({
6000
- "node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/chat.types.ts"() {
6001
- "use strict";
6002
- }
6003
- });
6004
-
6005
- // node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/companion.types.ts
6006
- var init_companion_types2 = __esm({
6007
- "node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/companion.types.ts"() {
6008
- "use strict";
6009
- }
6010
- });
6011
-
6012
- // node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/enums.ts
6013
- var init_enums2 = __esm({
6014
- "node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/enums.ts"() {
6015
- "use strict";
6016
- }
6017
- });
6018
-
6019
- // node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/lang.types.ts
6020
- var init_lang_types2 = __esm({
6021
- "node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/lang.types.ts"() {
6022
- "use strict";
6023
- }
6024
- });
6025
-
6026
- // node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/logs.types.ts
6027
- var init_logs_types2 = __esm({
6028
- "node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/logs.types.ts"() {
6029
- "use strict";
6030
- }
6031
- });
6032
-
6033
- // node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/message.types.ts
6034
- var PING, PONG;
6035
- var init_message_types2 = __esm({
6036
- "node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/message.types.ts"() {
6037
- "use strict";
6038
- PING = 1;
6039
- PONG = 2;
6040
- }
6041
- });
6042
-
6043
- // node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/newLog.types.ts
6044
- var init_newLog_types2 = __esm({
6045
- "node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/newLog.types.ts"() {
6046
- "use strict";
6047
- }
6048
- });
6049
-
6050
- // node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/novel.types.ts
6051
- var init_novel_types2 = __esm({
6052
- "node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/novel.types.ts"() {
6053
- "use strict";
6054
- }
6055
- });
6056
-
6057
- // node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/offline.types.ts
6058
- var init_offline_types2 = __esm({
6059
- "node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/offline.types.ts"() {
6060
- "use strict";
6061
- }
6062
- });
6063
-
6064
- // node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/prompt.types.ts
6065
- var init_prompt_types2 = __esm({
6066
- "node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/prompt.types.ts"() {
6067
- "use strict";
6068
- }
6069
- });
6070
-
6071
- // node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/reading.types.ts
6072
- var init_reading_types2 = __esm({
6073
- "node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/reading.types.ts"() {
6074
- "use strict";
6075
- }
6076
- });
6077
-
6078
- // node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/settings.types.ts
6079
- var init_settings_types2 = __esm({
6080
- "node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/settings.types.ts"() {
6081
- "use strict";
6082
- }
6083
- });
6084
-
6085
- // node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/subscription.types.ts
6086
- var init_subscription_types2 = __esm({
6087
- "node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/subscription.types.ts"() {
6088
- "use strict";
6089
- }
6090
- });
6091
-
6092
- // node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/types.ts
6093
- var buildVoiceKey2, createVoice2;
6094
- var init_types3 = __esm({
6095
- "node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/types.ts"() {
6096
- "use strict";
6097
- buildVoiceKey2 = (provider, name) => {
6098
- return `${provider}:${name}`;
6099
- };
6100
- createVoice2 = ({
6101
- name,
6102
- provider,
6103
- gender,
6104
- instructions
6105
- }) => {
6106
- return {
6107
- name,
6108
- provider,
6109
- gender,
6110
- instructions,
6111
- key: buildVoiceKey2(provider, name)
6112
- };
6113
- };
6114
- }
6115
- });
6116
-
6117
- // node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/wordv5.def.ts
6118
- var init_wordv5_def2 = __esm({
6119
- "node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/wordv5.def.ts"() {
6120
- "use strict";
6121
- }
6122
- });
6123
-
6124
- // node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/auth.types.ts
6125
- var init_auth_types2 = __esm({
6126
- "node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/auth.types.ts"() {
6127
- "use strict";
6128
- }
6129
- });
6130
-
6131
- // node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/apps.types.ts
6132
- var init_apps_types2 = __esm({
6133
- "node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/apps.types.ts"() {
6134
- "use strict";
6135
- }
6136
- });
6137
-
6138
- // node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/response.types.ts
6139
- var init_response_types2 = __esm({
6140
- "node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/response.types.ts"() {
6141
- "use strict";
6142
- }
6143
- });
6144
-
6145
- // node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/role.types.ts
6146
- var init_role_types2 = __esm({
6147
- "node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/role.types.ts"() {
6148
- "use strict";
6149
- }
6150
- });
6151
-
6152
- // node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/index.ts
6153
- var init_types4 = __esm({
6154
- "node_modules/@pmate/utils/node_modules/@pmate/meta/src/types/index.ts"() {
6155
- "use strict";
6156
- init_account_types2();
6157
- init_achievements_types2();
6158
- init_aigen_types2();
6159
- init_agent_types2();
6160
- init_agent_registry_types2();
6161
- init_runner_registry_types2();
6162
- init_blockchain_types2();
6163
- init_breakdown_types2();
6164
- init_chat_types2();
6165
- init_companion_types2();
6166
- init_enums2();
6167
- init_lang_types2();
6168
- init_logs_types2();
6169
- init_message_types2();
6170
- init_newLog_types2();
6171
- init_novel_types2();
6172
- init_offline_types2();
6173
- init_prompt_types2();
6174
- init_reading_types2();
6175
- init_settings_types2();
6176
- init_subscription_types2();
6177
- init_types3();
6178
- init_wordv5_def2();
6179
- init_auth_types2();
6180
- init_apps_types2();
6181
- init_response_types2();
6182
- init_role_types2();
6183
- }
6184
- });
6185
-
6186
- // node_modules/@pmate/utils/node_modules/@pmate/meta/src/config/BizErrorCode.ts
6187
- var init_BizErrorCode2 = __esm({
6188
- "node_modules/@pmate/utils/node_modules/@pmate/meta/src/config/BizErrorCode.ts"() {
6189
- "use strict";
6190
- }
6191
- });
6192
-
6193
- // node_modules/@pmate/utils/node_modules/@pmate/meta/src/config/consts.ts
6194
- var init_consts2 = __esm({
6195
- "node_modules/@pmate/utils/node_modules/@pmate/meta/src/config/consts.ts"() {
6196
- "use strict";
6197
- }
6198
- });
6199
-
6200
- // node_modules/@pmate/utils/node_modules/@pmate/meta/src/config/TopicNames.ts
6201
- var TopicNames2, topicKindMatchers2;
6202
- var init_TopicNames2 = __esm({
6203
- "node_modules/@pmate/utils/node_modules/@pmate/meta/src/config/TopicNames.ts"() {
6204
- "use strict";
6205
- init_types4();
6206
- TopicNames2 = class _TopicNames {
6207
- static rooms() {
6208
- return "@pmate/rooms";
6209
- }
6210
- static userThreads(user) {
6211
- return `@pmate/user_threads:${user}`;
6212
- }
6213
- static userLogs(user) {
6214
- return `@pmate/user_logs:${user}`;
6215
- }
6216
- static legacyUserLogs(user) {
6217
- return _TopicNames.userLogs(user);
6218
- }
6219
- static userContacts(profileId) {
6220
- return `@pmate/user_contacts:${profileId}`;
6221
- }
6222
- static usersMessage(userId) {
6223
- return `@pmate/user_messages:${userId}`;
6224
- }
6225
- static userMapping() {
6226
- return "@pmate/username_mapping";
6227
- }
6228
- static userMobileMapping() {
6229
- return "@pmate/mobile_account";
6230
- }
6231
- static mapping() {
6232
- return "@pmate/mapping";
6233
- }
6234
- static profiles() {
6235
- return "@pmate/profiles";
6236
- }
6237
- static groups() {
6238
- return "@pmate/groups";
6239
- }
6240
- static relationships() {
6241
- return "@pmate/relationships";
6242
- }
6243
- };
6244
- topicKindMatchers2 = [
6245
- {
6246
- kind: 1e3 /* UserLogs */,
6247
- match: (topic) => topic.startsWith("@pmate/user_logs:")
6248
- },
6249
- {
6250
- kind: 2e3 /* UserMessages */,
6251
- match: (topic) => topic.startsWith("@pmate/user_messages:")
6252
- },
6253
- {
6254
- kind: 3e3 /* Relationships */,
6255
- match: (topic) => topic === TopicNames2.relationships()
6256
- },
6257
- {
6258
- kind: 4e3 /* Rooms */,
6259
- match: (topic) => topic === TopicNames2.rooms()
6260
- },
6261
- {
6262
- kind: 5e3 /* UserContacts */,
6263
- match: (topic) => topic.startsWith("@pmate/user_contacts:")
6264
- },
6265
- {
6266
- kind: 8002 /* Entity_GROUP */,
6267
- match: (topic) => topic === TopicNames2.groups()
6268
- },
6269
- {
6270
- kind: 6e3 /* UserMapping */,
6271
- match: (topic) => topic === TopicNames2.userMapping()
6272
- },
6273
- {
6274
- kind: 7e3 /* UserMobileMapping */,
6275
- match: (topic) => topic === TopicNames2.userMobileMapping()
6276
- },
6277
- {
6278
- kind: 6003 /* Mapping */,
6279
- match: (topic) => topic === TopicNames2.mapping()
6280
- },
6281
- {
6282
- kind: 9e3 /* UserThreads */,
6283
- match: (topic) => topic.startsWith("@pmate/user_threads:")
6284
- }
6285
- ];
6286
- }
6287
- });
6288
-
6289
- // node_modules/@pmate/utils/node_modules/@pmate/meta/src/config/OSSKeys.ts
6290
- var init_OSSKeys2 = __esm({
6291
- "node_modules/@pmate/utils/node_modules/@pmate/meta/src/config/OSSKeys.ts"() {
6292
- "use strict";
6293
- init_consts2();
6294
- }
6295
- });
6296
-
6297
- // node_modules/@pmate/utils/node_modules/@pmate/meta/src/config/CompanionProfiles.ts
6298
- var openAICoral2, openAIAsh2, openAIBallad2, openAINova2, openAIVerse2;
6299
- var init_CompanionProfiles2 = __esm({
6300
- "node_modules/@pmate/utils/node_modules/@pmate/meta/src/config/CompanionProfiles.ts"() {
6301
- "use strict";
6302
- init_types4();
6303
- openAICoral2 = createVoice2({
6304
- name: "coral",
6305
- provider: "openai",
6306
- gender: "F",
6307
- instructions: "sweet, cute,naive voice"
6308
- });
6309
- openAIAsh2 = createVoice2({
6310
- name: "ash",
6311
- provider: "openai",
6312
- gender: "M"
6313
- });
6314
- openAIBallad2 = createVoice2({
6315
- name: "ballad",
6316
- provider: "openai",
6317
- gender: "M",
6318
- instructions: "bright, young man voice"
6319
- });
6320
- openAINova2 = createVoice2({
6321
- name: "nova",
6322
- provider: "openai",
6323
- gender: "F",
6324
- instructions: "mature, smooth, elegant, warm voice"
6325
- });
6326
- openAIVerse2 = createVoice2({
6327
- name: "verse",
6328
- provider: "openai",
6329
- gender: "M",
6330
- instructions: "elderly,mysterious wizzard voice"
6331
- });
6332
- }
6333
- });
6334
-
6335
- // node_modules/@pmate/utils/node_modules/@pmate/meta/src/config/index.ts
6336
- var init_config2 = __esm({
6337
- "node_modules/@pmate/utils/node_modules/@pmate/meta/src/config/index.ts"() {
6338
- "use strict";
6339
- init_BizErrorCode2();
6340
- init_consts2();
6341
- init_TopicNames2();
6342
- init_OSSKeys2();
6343
- init_CompanionProfiles2();
6344
- }
6345
- });
6346
-
6347
- // node_modules/@pmate/utils/node_modules/@pmate/meta/src/index.ts
6348
- var init_src3 = __esm({
6349
- "node_modules/@pmate/utils/node_modules/@pmate/meta/src/index.ts"() {
6350
- "use strict";
6351
- init_types4();
6352
- init_config2();
6353
- }
6354
- });
6355
-
6356
- // node_modules/@pmate/utils/src/uniqHash.ts
5945
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/uniqHash.ts
6357
5946
  var import_js_sha32, sortKeys, uniqHash;
6358
5947
  var init_uniqHash = __esm({
6359
- "node_modules/@pmate/utils/src/uniqHash.ts"() {
5948
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/uniqHash.ts"() {
6360
5949
  "use strict";
6361
- init_src3();
5950
+ init_src();
6362
5951
  import_js_sha32 = __toESM(require_sha3(), 1);
6363
5952
  sortKeys = (obj) => {
6364
5953
  if (Array.isArray(obj)) {
@@ -6386,33 +5975,33 @@ var init_uniqHash = __esm({
6386
5975
  }
6387
5976
  });
6388
5977
 
6389
- // node_modules/@pmate/utils/src/createMsg.ts
5978
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/createMsg.ts
6390
5979
  var init_createMsg = __esm({
6391
- "node_modules/@pmate/utils/src/createMsg.ts"() {
5980
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/createMsg.ts"() {
6392
5981
  "use strict";
6393
- init_src3();
5982
+ init_src();
6394
5983
  init_uniqHash();
6395
5984
  }
6396
5985
  });
6397
5986
 
6398
- // node_modules/@pmate/utils/src/detectText.ts
5987
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/detectText.ts
6399
5988
  var init_detectText = __esm({
6400
- "node_modules/@pmate/utils/src/detectText.ts"() {
5989
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/detectText.ts"() {
6401
5990
  "use strict";
6402
5991
  }
6403
5992
  });
6404
5993
 
6405
- // node_modules/@pmate/utils/src/Emitter.ts
5994
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/Emitter.ts
6406
5995
  var init_Emitter = __esm({
6407
- "node_modules/@pmate/utils/src/Emitter.ts"() {
5996
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/Emitter.ts"() {
6408
5997
  "use strict";
6409
5998
  }
6410
5999
  });
6411
6000
 
6412
- // node_modules/@pmate/utils/src/EmitterV2.ts
6001
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/EmitterV2.ts
6413
6002
  var EmitterV2;
6414
6003
  var init_EmitterV2 = __esm({
6415
- "node_modules/@pmate/utils/src/EmitterV2.ts"() {
6004
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/EmitterV2.ts"() {
6416
6005
  "use strict";
6417
6006
  EmitterV2 = class {
6418
6007
  constructor() {
@@ -6468,39 +6057,39 @@ var init_EmitterV2 = __esm({
6468
6057
  }
6469
6058
  });
6470
6059
 
6471
- // node_modules/@pmate/utils/src/format/formatTime.ts
6060
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/format/formatTime.ts
6472
6061
  var init_formatTime = __esm({
6473
- "node_modules/@pmate/utils/src/format/formatTime.ts"() {
6062
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/format/formatTime.ts"() {
6474
6063
  "use strict";
6475
6064
  }
6476
6065
  });
6477
6066
 
6478
- // node_modules/@pmate/utils/src/format/index.ts
6067
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/format/index.ts
6479
6068
  var init_format = __esm({
6480
- "node_modules/@pmate/utils/src/format/index.ts"() {
6069
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/format/index.ts"() {
6481
6070
  "use strict";
6482
6071
  init_formatTime();
6483
6072
  }
6484
6073
  });
6485
6074
 
6486
- // node_modules/@pmate/utils/src/isVolcabulary.ts
6075
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/isVolcabulary.ts
6487
6076
  var init_isVolcabulary = __esm({
6488
- "node_modules/@pmate/utils/src/isVolcabulary.ts"() {
6077
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/isVolcabulary.ts"() {
6489
6078
  "use strict";
6490
6079
  }
6491
6080
  });
6492
6081
 
6493
- // node_modules/@pmate/utils/src/Loadable.ts
6082
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/Loadable.ts
6494
6083
  var init_Loadable = __esm({
6495
- "node_modules/@pmate/utils/src/Loadable.ts"() {
6084
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/Loadable.ts"() {
6496
6085
  "use strict";
6497
6086
  }
6498
6087
  });
6499
6088
 
6500
- // node_modules/@pmate/utils/src/Logger.ts
6089
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/Logger.ts
6501
6090
  var Logger;
6502
6091
  var init_Logger = __esm({
6503
- "node_modules/@pmate/utils/src/Logger.ts"() {
6092
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/Logger.ts"() {
6504
6093
  "use strict";
6505
6094
  Logger = class _Logger {
6506
6095
  constructor(name) {
@@ -6525,21 +6114,21 @@ var init_Logger = __esm({
6525
6114
  }
6526
6115
  });
6527
6116
 
6528
- // node_modules/@pmate/utils/src/mapToReadingBook.ts
6117
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/mapToReadingBook.ts
6529
6118
  var init_mapToReadingBook = __esm({
6530
- "node_modules/@pmate/utils/src/mapToReadingBook.ts"() {
6119
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/mapToReadingBook.ts"() {
6531
6120
  "use strict";
6532
6121
  }
6533
6122
  });
6534
6123
 
6535
- // node_modules/@pmate/utils/src/memoize.ts
6124
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/memoize.ts
6536
6125
  var init_memoize = __esm({
6537
- "node_modules/@pmate/utils/src/memoize.ts"() {
6126
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/memoize.ts"() {
6538
6127
  "use strict";
6539
6128
  }
6540
6129
  });
6541
6130
 
6542
- // node_modules/@msgpack/msgpack/dist.esm/utils/utf8.mjs
6131
+ // node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/utils/utf8.mjs
6543
6132
  function utf8Count(str) {
6544
6133
  const strLength = str.length;
6545
6134
  let byteLength = 0;
@@ -6666,7 +6255,7 @@ function utf8Decode(bytes, inputOffset, byteLength) {
6666
6255
  }
6667
6256
  var sharedTextEncoder, TEXT_ENCODER_THRESHOLD, CHUNK_SIZE, sharedTextDecoder, TEXT_DECODER_THRESHOLD;
6668
6257
  var init_utf8 = __esm({
6669
- "node_modules/@msgpack/msgpack/dist.esm/utils/utf8.mjs"() {
6258
+ "node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/utils/utf8.mjs"() {
6670
6259
  "use strict";
6671
6260
  sharedTextEncoder = new TextEncoder();
6672
6261
  TEXT_ENCODER_THRESHOLD = 50;
@@ -6676,10 +6265,10 @@ var init_utf8 = __esm({
6676
6265
  }
6677
6266
  });
6678
6267
 
6679
- // node_modules/@msgpack/msgpack/dist.esm/ExtData.mjs
6268
+ // node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/ExtData.mjs
6680
6269
  var ExtData;
6681
6270
  var init_ExtData = __esm({
6682
- "node_modules/@msgpack/msgpack/dist.esm/ExtData.mjs"() {
6271
+ "node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/ExtData.mjs"() {
6683
6272
  "use strict";
6684
6273
  ExtData = class {
6685
6274
  type;
@@ -6692,10 +6281,10 @@ var init_ExtData = __esm({
6692
6281
  }
6693
6282
  });
6694
6283
 
6695
- // node_modules/@msgpack/msgpack/dist.esm/DecodeError.mjs
6284
+ // node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/DecodeError.mjs
6696
6285
  var DecodeError;
6697
6286
  var init_DecodeError = __esm({
6698
- "node_modules/@msgpack/msgpack/dist.esm/DecodeError.mjs"() {
6287
+ "node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/DecodeError.mjs"() {
6699
6288
  "use strict";
6700
6289
  DecodeError = class _DecodeError extends Error {
6701
6290
  constructor(message) {
@@ -6712,7 +6301,7 @@ var init_DecodeError = __esm({
6712
6301
  }
6713
6302
  });
6714
6303
 
6715
- // node_modules/@msgpack/msgpack/dist.esm/utils/int.mjs
6304
+ // node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/utils/int.mjs
6716
6305
  function setUint64(view, offset, value) {
6717
6306
  const high = value / 4294967296;
6718
6307
  const low = value;
@@ -6737,13 +6326,13 @@ function getUint64(view, offset) {
6737
6326
  }
6738
6327
  var UINT32_MAX;
6739
6328
  var init_int = __esm({
6740
- "node_modules/@msgpack/msgpack/dist.esm/utils/int.mjs"() {
6329
+ "node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/utils/int.mjs"() {
6741
6330
  "use strict";
6742
6331
  UINT32_MAX = 4294967295;
6743
6332
  }
6744
6333
  });
6745
6334
 
6746
- // node_modules/@msgpack/msgpack/dist.esm/timestamp.mjs
6335
+ // node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/timestamp.mjs
6747
6336
  function encodeTimeSpecToTimestamp({ sec, nsec }) {
6748
6337
  if (sec >= 0 && nsec >= 0 && sec <= TIMESTAMP64_MAX_SEC) {
6749
6338
  if (nsec === 0 && sec <= TIMESTAMP32_MAX_SEC) {
@@ -6816,7 +6405,7 @@ function decodeTimestampExtension(data) {
6816
6405
  }
6817
6406
  var EXT_TIMESTAMP, TIMESTAMP32_MAX_SEC, TIMESTAMP64_MAX_SEC, timestampExtension;
6818
6407
  var init_timestamp = __esm({
6819
- "node_modules/@msgpack/msgpack/dist.esm/timestamp.mjs"() {
6408
+ "node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/timestamp.mjs"() {
6820
6409
  "use strict";
6821
6410
  init_DecodeError();
6822
6411
  init_int();
@@ -6831,10 +6420,10 @@ var init_timestamp = __esm({
6831
6420
  }
6832
6421
  });
6833
6422
 
6834
- // node_modules/@msgpack/msgpack/dist.esm/ExtensionCodec.mjs
6423
+ // node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/ExtensionCodec.mjs
6835
6424
  var ExtensionCodec;
6836
6425
  var init_ExtensionCodec = __esm({
6837
- "node_modules/@msgpack/msgpack/dist.esm/ExtensionCodec.mjs"() {
6426
+ "node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/ExtensionCodec.mjs"() {
6838
6427
  "use strict";
6839
6428
  init_ExtData();
6840
6429
  init_timestamp();
@@ -6901,7 +6490,7 @@ var init_ExtensionCodec = __esm({
6901
6490
  }
6902
6491
  });
6903
6492
 
6904
- // node_modules/@msgpack/msgpack/dist.esm/utils/typedArrays.mjs
6493
+ // node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/utils/typedArrays.mjs
6905
6494
  function isArrayBufferLike(buffer) {
6906
6495
  return buffer instanceof ArrayBuffer || typeof SharedArrayBuffer !== "undefined" && buffer instanceof SharedArrayBuffer;
6907
6496
  }
@@ -6917,15 +6506,15 @@ function ensureUint8Array(buffer) {
6917
6506
  }
6918
6507
  }
6919
6508
  var init_typedArrays = __esm({
6920
- "node_modules/@msgpack/msgpack/dist.esm/utils/typedArrays.mjs"() {
6509
+ "node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/utils/typedArrays.mjs"() {
6921
6510
  "use strict";
6922
6511
  }
6923
6512
  });
6924
6513
 
6925
- // node_modules/@msgpack/msgpack/dist.esm/Encoder.mjs
6514
+ // node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/Encoder.mjs
6926
6515
  var DEFAULT_MAX_DEPTH, DEFAULT_INITIAL_BUFFER_SIZE, Encoder;
6927
6516
  var init_Encoder = __esm({
6928
- "node_modules/@msgpack/msgpack/dist.esm/Encoder.mjs"() {
6517
+ "node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/Encoder.mjs"() {
6929
6518
  "use strict";
6930
6519
  init_utf8();
6931
6520
  init_ExtensionCodec();
@@ -7335,32 +6924,32 @@ var init_Encoder = __esm({
7335
6924
  }
7336
6925
  });
7337
6926
 
7338
- // node_modules/@msgpack/msgpack/dist.esm/encode.mjs
6927
+ // node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/encode.mjs
7339
6928
  function encode(value, options) {
7340
6929
  const encoder2 = new Encoder(options);
7341
6930
  return encoder2.encodeSharedRef(value);
7342
6931
  }
7343
6932
  var init_encode = __esm({
7344
- "node_modules/@msgpack/msgpack/dist.esm/encode.mjs"() {
6933
+ "node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/encode.mjs"() {
7345
6934
  "use strict";
7346
6935
  init_Encoder();
7347
6936
  }
7348
6937
  });
7349
6938
 
7350
- // node_modules/@msgpack/msgpack/dist.esm/utils/prettyByte.mjs
6939
+ // node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/utils/prettyByte.mjs
7351
6940
  function prettyByte(byte) {
7352
6941
  return `${byte < 0 ? "-" : ""}0x${Math.abs(byte).toString(16).padStart(2, "0")}`;
7353
6942
  }
7354
6943
  var init_prettyByte = __esm({
7355
- "node_modules/@msgpack/msgpack/dist.esm/utils/prettyByte.mjs"() {
6944
+ "node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/utils/prettyByte.mjs"() {
7356
6945
  "use strict";
7357
6946
  }
7358
6947
  });
7359
6948
 
7360
- // node_modules/@msgpack/msgpack/dist.esm/CachedKeyDecoder.mjs
6949
+ // node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/CachedKeyDecoder.mjs
7361
6950
  var DEFAULT_MAX_KEY_LENGTH, DEFAULT_MAX_LENGTH_PER_KEY, CachedKeyDecoder;
7362
6951
  var init_CachedKeyDecoder = __esm({
7363
- "node_modules/@msgpack/msgpack/dist.esm/CachedKeyDecoder.mjs"() {
6952
+ "node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/CachedKeyDecoder.mjs"() {
7364
6953
  "use strict";
7365
6954
  init_utf8();
7366
6955
  DEFAULT_MAX_KEY_LENGTH = 16;
@@ -7420,10 +7009,10 @@ var init_CachedKeyDecoder = __esm({
7420
7009
  }
7421
7010
  });
7422
7011
 
7423
- // node_modules/@msgpack/msgpack/dist.esm/Decoder.mjs
7012
+ // node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/Decoder.mjs
7424
7013
  var STATE_ARRAY, STATE_MAP_KEY, STATE_MAP_VALUE, mapKeyConverter, StackPool, HEAD_BYTE_REQUIRED, EMPTY_VIEW, EMPTY_BYTES, MORE_DATA, sharedCachedKeyDecoder, Decoder;
7425
7014
  var init_Decoder = __esm({
7426
- "node_modules/@msgpack/msgpack/dist.esm/Decoder.mjs"() {
7015
+ "node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/Decoder.mjs"() {
7427
7016
  "use strict";
7428
7017
  init_prettyByte();
7429
7018
  init_ExtensionCodec();
@@ -8061,34 +7650,34 @@ var init_Decoder = __esm({
8061
7650
  }
8062
7651
  });
8063
7652
 
8064
- // node_modules/@msgpack/msgpack/dist.esm/decode.mjs
7653
+ // node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/decode.mjs
8065
7654
  function decode(buffer, options) {
8066
7655
  const decoder = new Decoder(options);
8067
7656
  return decoder.decode(buffer);
8068
7657
  }
8069
7658
  var init_decode = __esm({
8070
- "node_modules/@msgpack/msgpack/dist.esm/decode.mjs"() {
7659
+ "node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/decode.mjs"() {
8071
7660
  "use strict";
8072
7661
  init_Decoder();
8073
7662
  }
8074
7663
  });
8075
7664
 
8076
- // node_modules/@msgpack/msgpack/dist.esm/index.mjs
7665
+ // node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/index.mjs
8077
7666
  var init_dist = __esm({
8078
- "node_modules/@msgpack/msgpack/dist.esm/index.mjs"() {
7667
+ "node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/index.mjs"() {
8079
7668
  "use strict";
8080
7669
  init_encode();
8081
7670
  init_decode();
8082
7671
  }
8083
7672
  });
8084
7673
 
8085
- // node_modules/@pmate/utils/src/Msg.ts
7674
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/Msg.ts
8086
7675
  var encoder, Msg;
8087
7676
  var init_Msg = __esm({
8088
- "node_modules/@pmate/utils/src/Msg.ts"() {
7677
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/Msg.ts"() {
8089
7678
  "use strict";
8090
7679
  init_dist();
8091
- init_src3();
7680
+ init_src();
8092
7681
  init_compress();
8093
7682
  init_uniqHash();
8094
7683
  encoder = new TextEncoder();
@@ -8213,108 +7802,108 @@ var init_Msg = __esm({
8213
7802
  }
8214
7803
  });
8215
7804
 
8216
- // node_modules/@pmate/utils/src/normalize.ts
7805
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/normalize.ts
8217
7806
  var init_normalize = __esm({
8218
- "node_modules/@pmate/utils/src/normalize.ts"() {
7807
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/normalize.ts"() {
8219
7808
  "use strict";
8220
7809
  }
8221
7810
  });
8222
7811
 
8223
- // node_modules/@pmate/utils/src/pageURL.ts
7812
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/pageURL.ts
8224
7813
  var init_pageURL = __esm({
8225
- "node_modules/@pmate/utils/src/pageURL.ts"() {
7814
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/pageURL.ts"() {
8226
7815
  "use strict";
8227
7816
  }
8228
7817
  });
8229
7818
 
8230
- // node_modules/@pmate/utils/src/PromiseQueue.ts
7819
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/PromiseQueue.ts
8231
7820
  var init_PromiseQueue = __esm({
8232
- "node_modules/@pmate/utils/src/PromiseQueue.ts"() {
7821
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/PromiseQueue.ts"() {
8233
7822
  "use strict";
8234
7823
  }
8235
7824
  });
8236
7825
 
8237
- // node_modules/@pmate/utils/src/resourceKey.ts
7826
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/resourceKey.ts
8238
7827
  var import_js_sha33;
8239
7828
  var init_resourceKey = __esm({
8240
- "node_modules/@pmate/utils/src/resourceKey.ts"() {
7829
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/resourceKey.ts"() {
8241
7830
  "use strict";
8242
7831
  import_js_sha33 = __toESM(require_sha3(), 1);
8243
7832
  }
8244
7833
  });
8245
7834
 
8246
- // node_modules/@pmate/utils/src/SelectionHelper.ts
7835
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/SelectionHelper.ts
8247
7836
  var init_SelectionHelper = __esm({
8248
- "node_modules/@pmate/utils/src/SelectionHelper.ts"() {
7837
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/SelectionHelper.ts"() {
8249
7838
  "use strict";
8250
7839
  }
8251
7840
  });
8252
7841
 
8253
- // node_modules/@pmate/utils/src/setMinus.ts
7842
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/setMinus.ts
8254
7843
  var init_setMinus = __esm({
8255
- "node_modules/@pmate/utils/src/setMinus.ts"() {
7844
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/setMinus.ts"() {
8256
7845
  "use strict";
8257
7846
  }
8258
7847
  });
8259
7848
 
8260
- // node_modules/@pmate/utils/src/sha1Hash.ts
7849
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/sha1Hash.ts
8261
7850
  var init_sha1Hash = __esm({
8262
- "node_modules/@pmate/utils/src/sha1Hash.ts"() {
7851
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/sha1Hash.ts"() {
8263
7852
  "use strict";
8264
7853
  }
8265
7854
  });
8266
7855
 
8267
- // node_modules/@pmate/utils/src/TaskWaiter.ts
7856
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/TaskWaiter.ts
8268
7857
  var init_TaskWaiter = __esm({
8269
- "node_modules/@pmate/utils/src/TaskWaiter.ts"() {
7858
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/TaskWaiter.ts"() {
8270
7859
  "use strict";
8271
- init_src4();
7860
+ init_src3();
8272
7861
  }
8273
7862
  });
8274
7863
 
8275
- // node_modules/@pmate/utils/src/toSentenceAnalyze.ts
7864
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/toSentenceAnalyze.ts
8276
7865
  var init_toSentenceAnalyze = __esm({
8277
- "node_modules/@pmate/utils/src/toSentenceAnalyze.ts"() {
7866
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/toSentenceAnalyze.ts"() {
8278
7867
  "use strict";
8279
7868
  }
8280
7869
  });
8281
7870
 
8282
- // node_modules/@pmate/utils/src/txtBookToJson.ts
7871
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/txtBookToJson.ts
8283
7872
  var init_txtBookToJson = __esm({
8284
- "node_modules/@pmate/utils/src/txtBookToJson.ts"() {
7873
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/txtBookToJson.ts"() {
8285
7874
  "use strict";
8286
7875
  init_src2();
8287
7876
  }
8288
7877
  });
8289
7878
 
8290
- // node_modules/@pmate/utils/src/VocabularyMap.ts
7879
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/VocabularyMap.ts
8291
7880
  var init_VocabularyMap = __esm({
8292
- "node_modules/@pmate/utils/src/VocabularyMap.ts"() {
7881
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/VocabularyMap.ts"() {
8293
7882
  "use strict";
8294
7883
  init_Emitter();
8295
7884
  }
8296
7885
  });
8297
7886
 
8298
- // node_modules/@pmate/utils/src/wait.ts
7887
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/wait.ts
8299
7888
  var init_wait = __esm({
8300
- "node_modules/@pmate/utils/src/wait.ts"() {
7889
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/wait.ts"() {
8301
7890
  "use strict";
8302
7891
  }
8303
7892
  });
8304
7893
 
8305
- // node_modules/@pmate/utils/src/wordCount.ts
7894
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/wordCount.ts
8306
7895
  var init_wordCount = __esm({
8307
- "node_modules/@pmate/utils/src/wordCount.ts"() {
7896
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/wordCount.ts"() {
8308
7897
  "use strict";
8309
7898
  }
8310
7899
  });
8311
7900
 
8312
- // node_modules/@pmate/utils/src/websocket/WebsocketHeartbeat.ts
7901
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/websocket/WebsocketHeartbeat.ts
8313
7902
  var logger, WebsocketHeartbeat;
8314
7903
  var init_WebsocketHeartbeat = __esm({
8315
- "node_modules/@pmate/utils/src/websocket/WebsocketHeartbeat.ts"() {
7904
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/websocket/WebsocketHeartbeat.ts"() {
8316
7905
  "use strict";
8317
- init_src3();
7906
+ init_src();
8318
7907
  init_Logger();
8319
7908
  logger = Logger.getDebugger("heartbeat");
8320
7909
  WebsocketHeartbeat = class {
@@ -8353,12 +7942,12 @@ var init_WebsocketHeartbeat = __esm({
8353
7942
  }
8354
7943
  });
8355
7944
 
8356
- // node_modules/@pmate/utils/src/websocket/WebsocketClient.ts
7945
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/websocket/WebsocketClient.ts
8357
7946
  var logger2;
8358
7947
  var init_WebsocketClient = __esm({
8359
- "node_modules/@pmate/utils/src/websocket/WebsocketClient.ts"() {
7948
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/websocket/WebsocketClient.ts"() {
8360
7949
  "use strict";
8361
- init_src3();
7950
+ init_src();
8362
7951
  init_Emitter();
8363
7952
  init_Logger();
8364
7953
  init_Msg();
@@ -8367,7 +7956,7 @@ var init_WebsocketClient = __esm({
8367
7956
  }
8368
7957
  });
8369
7958
 
8370
- // node_modules/@pmate/utils/src/websocket/WebsocketClientV2.ts
7959
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/websocket/WebsocketClientV2.ts
8371
7960
  function isEventLike(value) {
8372
7961
  return typeof value === "object" && value !== null && "type" in value && typeof value.type === "string";
8373
7962
  }
@@ -8376,9 +7965,9 @@ function isCloseEvent(value) {
8376
7965
  }
8377
7966
  var logger3, WebsocketClientV2;
8378
7967
  var init_WebsocketClientV2 = __esm({
8379
- "node_modules/@pmate/utils/src/websocket/WebsocketClientV2.ts"() {
7968
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/websocket/WebsocketClientV2.ts"() {
8380
7969
  "use strict";
8381
- init_src3();
7970
+ init_src();
8382
7971
  init_AsyncStream();
8383
7972
  init_Logger();
8384
7973
  init_Msg();
@@ -8623,10 +8212,10 @@ var init_WebsocketClientV2 = __esm({
8623
8212
  }
8624
8213
  });
8625
8214
 
8626
- // node_modules/@pmate/utils/src/websocket/H3Client.ts
8215
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/websocket/H3Client.ts
8627
8216
  var logger4;
8628
8217
  var init_H3Client = __esm({
8629
- "node_modules/@pmate/utils/src/websocket/H3Client.ts"() {
8218
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/websocket/H3Client.ts"() {
8630
8219
  "use strict";
8631
8220
  init_Emitter();
8632
8221
  init_Logger();
@@ -8636,9 +8225,9 @@ var init_H3Client = __esm({
8636
8225
  }
8637
8226
  });
8638
8227
 
8639
- // node_modules/@pmate/utils/src/websocket/index.ts
8228
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/websocket/index.ts
8640
8229
  var init_websocket = __esm({
8641
- "node_modules/@pmate/utils/src/websocket/index.ts"() {
8230
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/websocket/index.ts"() {
8642
8231
  "use strict";
8643
8232
  init_WebsocketClient();
8644
8233
  init_WebsocketClientV2();
@@ -8646,9 +8235,9 @@ var init_websocket = __esm({
8646
8235
  }
8647
8236
  });
8648
8237
 
8649
- // node_modules/@pmate/utils/src/index.ts
8650
- var init_src4 = __esm({
8651
- "node_modules/@pmate/utils/src/index.ts"() {
8238
+ // node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/index.ts
8239
+ var init_src3 = __esm({
8240
+ "node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/index.ts"() {
8652
8241
  "use strict";
8653
8242
  init_base64();
8654
8243
  init_batchResolve();
@@ -8688,7 +8277,7 @@ var init_src4 = __esm({
8688
8277
  }
8689
8278
  });
8690
8279
 
8691
- // node_modules/@pmate/agent-sdk/dist/debug.js
8280
+ // node_modules/.pnpm/@pmate+agent-sdk@1.1.14/node_modules/@pmate/agent-sdk/dist/debug.js
8692
8281
  function isDebugEnabled() {
8693
8282
  return process.env.DEBUG === "1";
8694
8283
  }
@@ -8703,17 +8292,17 @@ function debugLog(message, data) {
8703
8292
  console.log(message, data);
8704
8293
  }
8705
8294
  var init_debug = __esm({
8706
- "node_modules/@pmate/agent-sdk/dist/debug.js"() {
8295
+ "node_modules/.pnpm/@pmate+agent-sdk@1.1.14/node_modules/@pmate/agent-sdk/dist/debug.js"() {
8707
8296
  "use strict";
8708
8297
  }
8709
8298
  });
8710
8299
 
8711
- // node_modules/@pmate/agent-sdk/dist/AgentTaskManager.js
8300
+ // node_modules/.pnpm/@pmate+agent-sdk@1.1.14/node_modules/@pmate/agent-sdk/dist/AgentTaskManager.js
8712
8301
  var AgentTaskManager;
8713
8302
  var init_AgentTaskManager = __esm({
8714
- "node_modules/@pmate/agent-sdk/dist/AgentTaskManager.js"() {
8303
+ "node_modules/.pnpm/@pmate+agent-sdk@1.1.14/node_modules/@pmate/agent-sdk/dist/AgentTaskManager.js"() {
8715
8304
  "use strict";
8716
- init_src4();
8305
+ init_src3();
8717
8306
  init_debug();
8718
8307
  AgentTaskManager = class {
8719
8308
  constructor() {
@@ -8880,7 +8469,7 @@ var init_AgentTaskManager = __esm({
8880
8469
  }
8881
8470
  });
8882
8471
 
8883
- // node_modules/@pmate/agent-sdk/dist/AgentClient.js
8472
+ // node_modules/.pnpm/@pmate+agent-sdk@1.1.14/node_modules/@pmate/agent-sdk/dist/AgentClient.js
8884
8473
  function createAgentRequestBody(payload) {
8885
8474
  return {
8886
8475
  kind: "request",
@@ -8889,10 +8478,10 @@ function createAgentRequestBody(payload) {
8889
8478
  }
8890
8479
  var logger5, DEFAULT_TIMEOUT_MS, DEFAULT_STREAM_TIMEOUT_MS, DEFAULT_MIN_CHUNK_SIZE_BYTES, AgentClient;
8891
8480
  var init_AgentClient = __esm({
8892
- "node_modules/@pmate/agent-sdk/dist/AgentClient.js"() {
8481
+ "node_modules/.pnpm/@pmate+agent-sdk@1.1.14/node_modules/@pmate/agent-sdk/dist/AgentClient.js"() {
8893
8482
  "use strict";
8894
8483
  init_src();
8895
- init_src4();
8484
+ init_src3();
8896
8485
  init_AgentTaskManager();
8897
8486
  init_debug();
8898
8487
  logger5 = Logger.getDebugger("AgentClient");
@@ -8923,8 +8512,12 @@ var init_AgentClient = __esm({
8923
8512
  close() {
8924
8513
  this.ws?.close();
8925
8514
  }
8926
- async login(from, options) {
8927
- this.from = from;
8515
+ async login(options) {
8516
+ const profileId = options?.profileId;
8517
+ if (!profileId) {
8518
+ throw new Error("AgentClient user auth requires profileId");
8519
+ }
8520
+ this.from = profileId;
8928
8521
  const baseUrl = options?.baseUrl ?? this.baseUrl;
8929
8522
  if (baseUrl !== this.baseUrl) {
8930
8523
  this.resetWebsocket(baseUrl);
@@ -8932,10 +8525,6 @@ var init_AgentClient = __esm({
8932
8525
  const timeoutMs = options?.timeoutMs ?? this.timeoutMs;
8933
8526
  await this.waitForConnection(timeoutMs);
8934
8527
  const token = options?.token ?? "";
8935
- const profileId = options?.profileId;
8936
- if (!profileId) {
8937
- throw new Error("AgentClient user auth requires profileId");
8938
- }
8939
8528
  await this.sendAuth(token, timeoutMs, profileId);
8940
8529
  return true;
8941
8530
  }
@@ -9284,62 +8873,62 @@ var init_AgentClient = __esm({
9284
8873
  }
9285
8874
  });
9286
8875
 
9287
- // node_modules/@pmate/agent-sdk/dist/AgentRuntime.js
8876
+ // node_modules/.pnpm/@pmate+agent-sdk@1.1.14/node_modules/@pmate/agent-sdk/dist/AgentRuntime.js
9288
8877
  var init_AgentRuntime = __esm({
9289
- "node_modules/@pmate/agent-sdk/dist/AgentRuntime.js"() {
8878
+ "node_modules/.pnpm/@pmate+agent-sdk@1.1.14/node_modules/@pmate/agent-sdk/dist/AgentRuntime.js"() {
9290
8879
  "use strict";
9291
8880
  init_src();
9292
- init_src4();
8881
+ init_src3();
9293
8882
  }
9294
8883
  });
9295
8884
 
9296
- // node_modules/@pmate/agent-sdk/dist/PromptTaskContext.js
8885
+ // node_modules/.pnpm/@pmate+agent-sdk@1.1.14/node_modules/@pmate/agent-sdk/dist/PromptTaskContext.js
9297
8886
  var init_PromptTaskContext = __esm({
9298
- "node_modules/@pmate/agent-sdk/dist/PromptTaskContext.js"() {
8887
+ "node_modules/.pnpm/@pmate+agent-sdk@1.1.14/node_modules/@pmate/agent-sdk/dist/PromptTaskContext.js"() {
9299
8888
  "use strict";
9300
8889
  }
9301
8890
  });
9302
8891
 
9303
- // node_modules/@pmate/agent-sdk/dist/PromptAgent.js
8892
+ // node_modules/.pnpm/@pmate+agent-sdk@1.1.14/node_modules/@pmate/agent-sdk/dist/PromptAgent.js
9304
8893
  var init_PromptAgent = __esm({
9305
- "node_modules/@pmate/agent-sdk/dist/PromptAgent.js"() {
8894
+ "node_modules/.pnpm/@pmate+agent-sdk@1.1.14/node_modules/@pmate/agent-sdk/dist/PromptAgent.js"() {
9306
8895
  "use strict";
9307
8896
  init_src();
9308
- init_src4();
8897
+ init_src3();
9309
8898
  init_debug();
9310
8899
  init_AgentRuntime();
9311
8900
  init_PromptTaskContext();
9312
8901
  }
9313
8902
  });
9314
8903
 
9315
- // node_modules/@pmate/agent-sdk/dist/StreamTaskContext.js
8904
+ // node_modules/.pnpm/@pmate+agent-sdk@1.1.14/node_modules/@pmate/agent-sdk/dist/StreamTaskContext.js
9316
8905
  var init_StreamTaskContext = __esm({
9317
- "node_modules/@pmate/agent-sdk/dist/StreamTaskContext.js"() {
8906
+ "node_modules/.pnpm/@pmate+agent-sdk@1.1.14/node_modules/@pmate/agent-sdk/dist/StreamTaskContext.js"() {
9318
8907
  "use strict";
9319
8908
  }
9320
8909
  });
9321
8910
 
9322
- // node_modules/@pmate/agent-sdk/dist/StreamAgent.js
8911
+ // node_modules/.pnpm/@pmate+agent-sdk@1.1.14/node_modules/@pmate/agent-sdk/dist/StreamAgent.js
9323
8912
  var init_StreamAgent = __esm({
9324
- "node_modules/@pmate/agent-sdk/dist/StreamAgent.js"() {
8913
+ "node_modules/.pnpm/@pmate+agent-sdk@1.1.14/node_modules/@pmate/agent-sdk/dist/StreamAgent.js"() {
9325
8914
  "use strict";
9326
8915
  init_src();
9327
- init_src4();
8916
+ init_src3();
9328
8917
  init_AgentRuntime();
9329
8918
  init_StreamTaskContext();
9330
8919
  }
9331
8920
  });
9332
8921
 
9333
- // node_modules/@pmate/agent-sdk/dist/AgentFactory.js
8922
+ // node_modules/.pnpm/@pmate+agent-sdk@1.1.14/node_modules/@pmate/agent-sdk/dist/AgentFactory.js
9334
8923
  var init_AgentFactory = __esm({
9335
- "node_modules/@pmate/agent-sdk/dist/AgentFactory.js"() {
8924
+ "node_modules/.pnpm/@pmate+agent-sdk@1.1.14/node_modules/@pmate/agent-sdk/dist/AgentFactory.js"() {
9336
8925
  "use strict";
9337
8926
  init_PromptAgent();
9338
8927
  init_StreamAgent();
9339
8928
  }
9340
8929
  });
9341
8930
 
9342
- // node_modules/@pmate/agent-sdk/dist/AgentService.js
8931
+ // node_modules/.pnpm/@pmate+agent-sdk@1.1.14/node_modules/@pmate/agent-sdk/dist/AgentService.js
9343
8932
  function parseAgentId(agentId) {
9344
8933
  const separatorIndex = agentId.indexOf(":");
9345
8934
  if (separatorIndex <= 0 || separatorIndex === agentId.length - 1) {
@@ -9369,7 +8958,7 @@ function trimTrailingSlash(value) {
9369
8958
  }
9370
8959
  var AgentService;
9371
8960
  var init_AgentService = __esm({
9372
- "node_modules/@pmate/agent-sdk/dist/AgentService.js"() {
8961
+ "node_modules/.pnpm/@pmate+agent-sdk@1.1.14/node_modules/@pmate/agent-sdk/dist/AgentService.js"() {
9373
8962
  "use strict";
9374
8963
  AgentService = class {
9375
8964
  constructor(options) {
@@ -9410,9 +8999,9 @@ var init_AgentService = __esm({
9410
8999
  }
9411
9000
  });
9412
9001
 
9413
- // node_modules/@pmate/agent-sdk/dist/index.js
9002
+ // node_modules/.pnpm/@pmate+agent-sdk@1.1.14/node_modules/@pmate/agent-sdk/dist/index.js
9414
9003
  var init_dist2 = __esm({
9415
- "node_modules/@pmate/agent-sdk/dist/index.js"() {
9004
+ "node_modules/.pnpm/@pmate+agent-sdk@1.1.14/node_modules/@pmate/agent-sdk/dist/index.js"() {
9416
9005
  "use strict";
9417
9006
  init_AgentClient();
9418
9007
  init_AgentFactory();
@@ -9422,7 +9011,7 @@ var init_dist2 = __esm({
9422
9011
  init_AgentTaskManager();
9423
9012
  init_AgentService();
9424
9013
  init_debug();
9425
- init_src4();
9014
+ init_src3();
9426
9015
  }
9427
9016
  });
9428
9017
 
@@ -9495,7 +9084,6 @@ var init_AgentLlmClient = __esm({
9495
9084
  this.profileId = options?.profileId?.trim() || process.env.PMATE_PROFILE_ID || this.session.profileId;
9496
9085
  this.agentApiBaseUrl = resolveAgentApiBaseUrl(options?.agentApiBaseUrl);
9497
9086
  this.hubBaseUrl = resolveHubBaseUrl(options?.hubBaseUrl);
9498
- this.from = options?.from?.trim() || void 0;
9499
9087
  this.agentService = new AgentService({
9500
9088
  agentApiBaseUrl: this.agentApiBaseUrl,
9501
9089
  token: this.token
@@ -9513,7 +9101,7 @@ var init_AgentLlmClient = __esm({
9513
9101
  });
9514
9102
  try {
9515
9103
  const profileId = await this.resolveProfileId();
9516
- await client.login(this.resolveFrom(options?.from, profileId), {
9104
+ await client.login({
9517
9105
  token: this.token,
9518
9106
  profileId
9519
9107
  });
@@ -9536,7 +9124,7 @@ var init_AgentLlmClient = __esm({
9536
9124
  });
9537
9125
  try {
9538
9126
  const profileId = await this.resolveProfileId();
9539
- await client.login(this.resolveFrom(options?.from, profileId), {
9127
+ await client.login({
9540
9128
  token: this.token,
9541
9129
  profileId
9542
9130
  });
@@ -9562,9 +9150,6 @@ var init_AgentLlmClient = __esm({
9562
9150
  }
9563
9151
  throw new Error(`Missing profileId in session. Run "pmate login --app ${DEFAULT_APP_ID}" again.`);
9564
9152
  }
9565
- resolveFrom(value, profileId) {
9566
- return value?.trim() || this.from || profileId;
9567
- }
9568
9153
  };
9569
9154
  }
9570
9155
  });
@@ -10465,6 +10050,19 @@ var AliyunService = class {
10465
10050
  );
10466
10051
  ui.success(`Created FC custom domain: ${input.domainName}`);
10467
10052
  }
10053
+ static async deleteFcCustomDomain(domainName, region) {
10054
+ const client = await this.createFcClient(region);
10055
+ try {
10056
+ await client.deleteCustomDomain(domainName);
10057
+ ui.success(`Deleted FC custom domain: ${domainName}`);
10058
+ } catch (error) {
10059
+ if (this.isNotFoundError(error)) {
10060
+ ui.warn(`FC custom domain not found: ${domainName}`);
10061
+ return;
10062
+ }
10063
+ throw error;
10064
+ }
10065
+ }
10468
10066
  /** Add a DNS record via Aliyun DNS. */
10469
10067
  static async addRecord(input) {
10470
10068
  const userConfig = loadPmateConfig();
@@ -17161,7 +16759,6 @@ var AgentCommandHandler = class {
17161
16759
  token,
17162
16760
  agentApiBaseUrl: baseUrl,
17163
16761
  hubBaseUrl: args.hubBaseUrl,
17164
- from: args.from,
17165
16762
  profileId: args.profileId
17166
16763
  });
17167
16764
  if (args.filePath) {
@@ -17174,8 +16771,7 @@ var AgentCommandHandler = class {
17174
16771
  formatNamespacedDisplayId(args.namespace, args.name),
17175
16772
  filePayload,
17176
16773
  {
17177
- hubBaseUrl: args.hubBaseUrl,
17178
- from: args.from
16774
+ hubBaseUrl: args.hubBaseUrl
17179
16775
  }
17180
16776
  );
17181
16777
  this.renderCallResult(result3, args.json);
@@ -17186,8 +16782,7 @@ var AgentCommandHandler = class {
17186
16782
  this.resolveExistingFile(args.filePath),
17187
16783
  args.payload,
17188
16784
  {
17189
- hubBaseUrl: args.hubBaseUrl,
17190
- from: args.from
16785
+ hubBaseUrl: args.hubBaseUrl
17191
16786
  }
17192
16787
  );
17193
16788
  this.renderCallResult(result2, args.json);
@@ -17197,8 +16792,7 @@ var AgentCommandHandler = class {
17197
16792
  formatNamespacedDisplayId(args.namespace, args.name),
17198
16793
  args.payload,
17199
16794
  {
17200
- hubBaseUrl: args.hubBaseUrl,
17201
- from: args.from
16795
+ hubBaseUrl: args.hubBaseUrl
17202
16796
  }
17203
16797
  );
17204
16798
  this.renderCallResult(result, args.json);
@@ -18529,6 +18123,7 @@ function readNamespaceFromPayload(payload) {
18529
18123
  var import_node_fs20 = require("fs");
18530
18124
  var import_promises6 = require("fs/promises");
18531
18125
  var import_node_path24 = __toESM(require("path"));
18126
+ var import_node_child_process11 = require("child_process");
18532
18127
  var import_promises7 = require("readline/promises");
18533
18128
 
18534
18129
  // src/services/ServiceRuntimeRunner.ts
@@ -19862,10 +19457,15 @@ var ServiceRuntimeRunner = class {
19862
19457
  return [];
19863
19458
  }
19864
19459
  const appId = `${service.namespace}:${service.name}`;
19865
- const items = await registry.listEnvItems(appId, {
19460
+ const scopedItems = await registry.listEnvItems(appId, {
19866
19461
  scope: stage,
19867
19462
  includeSecretMeta: true
19868
19463
  });
19464
+ const allItems = await registry.listEnvItems(appId, {
19465
+ scope: "all",
19466
+ includeSecretMeta: true
19467
+ });
19468
+ const items = [...allItems, ...scopedItems];
19869
19469
  const requiredEnv = Array.from(
19870
19470
  new Set(
19871
19471
  items.map((item) => item.key ?? item.name).filter((key) => typeof key === "string" && key.trim().length > 0).map((key) => key.trim())
@@ -20112,6 +19712,8 @@ var ServiceCommandHandler = class {
20112
19712
  return;
20113
19713
  }
20114
19714
  case "delete": {
19715
+ const service = await registry.getService(args.namespace, args.name);
19716
+ await this.deleteServiceResources(service);
20115
19717
  const record = await this.request(
20116
19718
  baseUrl,
20117
19719
  "DELETE",
@@ -20282,6 +19884,23 @@ var ServiceCommandHandler = class {
20282
19884
  this.renderJson(payload, args.json);
20283
19885
  return;
20284
19886
  }
19887
+ case "env-update-scope": {
19888
+ const payload = await this.request(
19889
+ baseUrl,
19890
+ "POST",
19891
+ `${this.buildEnvBasePath(args.appId)}/update-scope`,
19892
+ {
19893
+ fromScope: args.fromScope,
19894
+ toScope: args.toScope,
19895
+ ...args.overwrite ? { overwrite: true } : {},
19896
+ ...args.onlyKeys?.length ? { onlyKeys: args.onlyKeys } : {}
19897
+ }
19898
+ );
19899
+ ui.success(`Updated env scope for ${args.appId}: ${args.fromScope} -> ${args.toScope}`);
19900
+ await this.syncFcRequiredEnvFromServiceEnv(registry, args.appId, args.toScope);
19901
+ this.renderJson(payload, args.json);
19902
+ return;
19903
+ }
20285
19904
  }
20286
19905
  }
20287
19906
  resolveBaseUrl(baseUrl) {
@@ -20433,10 +20052,7 @@ var ServiceCommandHandler = class {
20433
20052
  if (!("type" in service) || service.type !== "fc" || !service.fc) {
20434
20053
  return;
20435
20054
  }
20436
- const items = await registry.listEnvItems(appId, {
20437
- scope,
20438
- includeSecretMeta: true
20439
- });
20055
+ const items = await this.listEffectiveEnvItems(registry, appId, scope);
20440
20056
  const requiredEnv = Array.from(
20441
20057
  new Set(
20442
20058
  items.map((item) => item.key ?? item.name).filter((key) => typeof key === "string" && key.trim().length > 0).map((key) => key.trim())
@@ -20458,6 +20074,20 @@ var ServiceCommandHandler = class {
20458
20074
  const normalizedRight = [...right].sort();
20459
20075
  return normalizedLeft.every((value, index) => value === normalizedRight[index]);
20460
20076
  }
20077
+ async listEffectiveEnvItems(registry, appId, scope) {
20078
+ const scopedItems = await registry.listEnvItems(appId, {
20079
+ scope,
20080
+ includeSecretMeta: true
20081
+ });
20082
+ if (scope === "all") {
20083
+ return scopedItems;
20084
+ }
20085
+ const allItems = await registry.listEnvItems(appId, {
20086
+ scope: "all",
20087
+ includeSecretMeta: true
20088
+ });
20089
+ return [...allItems, ...scopedItems];
20090
+ }
20461
20091
  renderList(items, asJson) {
20462
20092
  if (asJson) {
20463
20093
  ui.plain(JSON.stringify(items, null, 2));
@@ -20471,6 +20101,206 @@ var ServiceCommandHandler = class {
20471
20101
  ui.info(formatNamespacedDisplayId(item.namespace, item.name), item);
20472
20102
  }
20473
20103
  }
20104
+ async deleteServiceResources(service) {
20105
+ switch (this.getServiceType(service)) {
20106
+ case "vite":
20107
+ case "static":
20108
+ await this.deleteStaticResources(service);
20109
+ return;
20110
+ case "node":
20111
+ case "rust":
20112
+ case "python":
20113
+ await this.deleteServerResources(service);
20114
+ return;
20115
+ case "fc":
20116
+ await this.deleteFcResources(service);
20117
+ return;
20118
+ case "ios":
20119
+ case "android":
20120
+ ui.warn(`Service type "${this.getServiceType(service)}" has no runtime resources to delete`);
20121
+ return;
20122
+ default:
20123
+ throw new Error(`Unsupported service type for delete: ${this.getServiceType(service)}`);
20124
+ }
20125
+ }
20126
+ async deleteStaticResources(service) {
20127
+ const site = this.getStaticSiteConfig(service);
20128
+ const bucketName = site.bucket?.trim();
20129
+ const domainName = site.domain?.trim();
20130
+ if (!bucketName) {
20131
+ throw new Error(`Missing site.bucket for ${service.id}`);
20132
+ }
20133
+ if (!domainName) {
20134
+ throw new Error(`Missing site.domain for ${service.id}`);
20135
+ }
20136
+ const subdomain = site.subdomain?.trim();
20137
+ const rr = subdomain || "@";
20138
+ const cdnDomain = subdomain ? `${subdomain}.${domainName}` : domainName;
20139
+ const cname = await AliyunService.getCdnCname(cdnDomain);
20140
+ if (cname) {
20141
+ this.logDeletedRecords(
20142
+ `Removed CNAME record for ${cdnDomain}`,
20143
+ await AliyunService.deleteDomainRecords({
20144
+ domainName,
20145
+ rr,
20146
+ type: "CNAME",
20147
+ value: cname
20148
+ })
20149
+ );
20150
+ } else {
20151
+ ui.warn(`No CDN CNAME found for ${cdnDomain}; deleting matching CNAME records by host.`);
20152
+ this.logDeletedRecords(
20153
+ `Removed CNAME record for ${cdnDomain}`,
20154
+ await AliyunService.deleteDomainRecords({
20155
+ domainName,
20156
+ rr,
20157
+ type: "CNAME"
20158
+ })
20159
+ );
20160
+ }
20161
+ if (!subdomain) {
20162
+ this.logDeletedRecords(
20163
+ `Removed CNAME record for www.${domainName}`,
20164
+ await AliyunService.deleteDomainRecords({
20165
+ domainName,
20166
+ rr: "www",
20167
+ type: "CNAME",
20168
+ value: domainName
20169
+ })
20170
+ );
20171
+ }
20172
+ await AliyunService.deleteCdnDomain(cdnDomain);
20173
+ await AliyunService.deleteBucketAndContents(bucketName);
20174
+ }
20175
+ async deleteServerResources(service) {
20176
+ const network = this.getNetworkConfig(service);
20177
+ const subdomain = network.subdomain?.trim();
20178
+ if (!subdomain) {
20179
+ ui.warn(`No subdomain configured for ${service.id}; nothing to tear down on DNS/nginx.`);
20180
+ return;
20181
+ }
20182
+ const server = network.server?.trim();
20183
+ if (!server) {
20184
+ throw new Error(`Missing network.server for ${service.id}`);
20185
+ }
20186
+ await this.removeRemoteConfig(server, `/etc/nginx/sites-enabled/${subdomain}.conf`);
20187
+ ui.success(`Removed nginx config for ${subdomain} from ${server}`);
20188
+ await this.reloadNginx(server);
20189
+ ui.success(`Reloaded nginx on ${server}`);
20190
+ const domainName = network.domain?.trim() || "pmate.chat";
20191
+ const serverAddress = await resolveServerAddress(server);
20192
+ this.logDeletedRecords(
20193
+ `Removed A record for ${subdomain}.${domainName}`,
20194
+ await AliyunService.deleteDomainRecords({
20195
+ domainName,
20196
+ rr: subdomain,
20197
+ type: "A",
20198
+ value: serverAddress
20199
+ })
20200
+ );
20201
+ }
20202
+ async deleteFcResources(service) {
20203
+ const fc = this.getFcConfig(service);
20204
+ const domainName = fc.domain?.trim();
20205
+ if (!domainName) {
20206
+ ui.warn(`No fc.domain configured for ${service.id}; nothing to tear down on DNS/FC custom domain.`);
20207
+ return;
20208
+ }
20209
+ const region = fc.region?.trim();
20210
+ if (!region) {
20211
+ throw new Error(`Missing fc.region for ${service.id}`);
20212
+ }
20213
+ const subdomain = fc.subdomain?.trim();
20214
+ const rr = subdomain || "@";
20215
+ const host = subdomain ? `${subdomain}.${domainName}` : domainName;
20216
+ await AliyunService.deleteFcCustomDomain(host, region);
20217
+ const accountId = await AliyunService.getAccountId();
20218
+ this.logDeletedRecords(
20219
+ `Removed CNAME record for ${host}`,
20220
+ await AliyunService.deleteDomainRecords({
20221
+ domainName,
20222
+ rr,
20223
+ type: "CNAME",
20224
+ value: `${accountId}.${region}.fc.aliyuncs.com`
20225
+ })
20226
+ );
20227
+ }
20228
+ getServiceType(service) {
20229
+ return "runtimeType" in service ? service.runtimeType : service.type;
20230
+ }
20231
+ getStaticSiteConfig(service) {
20232
+ if ("runtimeType" in service) {
20233
+ return {
20234
+ bucket: service.deploy?.bucket,
20235
+ domain: service.deploy?.domain,
20236
+ subdomain: service.deploy?.subdomain
20237
+ };
20238
+ }
20239
+ return service.site ?? {};
20240
+ }
20241
+ getNetworkConfig(service) {
20242
+ if ("runtimeType" in service) {
20243
+ return {
20244
+ server: service.deploy?.server,
20245
+ domain: service.deploy?.domain,
20246
+ subdomain: service.deploy?.subdomain
20247
+ };
20248
+ }
20249
+ return service.network ?? {};
20250
+ }
20251
+ getFcConfig(service) {
20252
+ if ("runtimeType" in service) {
20253
+ return {
20254
+ region: void 0,
20255
+ domain: service.deploy?.domain,
20256
+ subdomain: service.deploy?.subdomain
20257
+ };
20258
+ }
20259
+ return service.fc ?? {};
20260
+ }
20261
+ logDeletedRecords(message, deletedCount) {
20262
+ if (deletedCount > 0) {
20263
+ ui.success(message, { deletedCount });
20264
+ return;
20265
+ }
20266
+ ui.warn(`${message} skipped`, { deletedCount });
20267
+ }
20268
+ removeRemoteConfig(server, remotePath) {
20269
+ return new Promise((resolve, reject) => {
20270
+ const target = `pmate@${server}`;
20271
+ const child = (0, import_node_child_process11.spawn)("ssh", [target, "sudo", "rm", "-f", remotePath], {
20272
+ stdio: ["ignore", "inherit", "inherit"]
20273
+ });
20274
+ child.on("error", (error) => {
20275
+ reject(error);
20276
+ });
20277
+ child.on("close", (code) => {
20278
+ if (code === 0) {
20279
+ resolve();
20280
+ return;
20281
+ }
20282
+ reject(new Error(`ssh to ${server} exited with code ${code}`));
20283
+ });
20284
+ });
20285
+ }
20286
+ reloadNginx(server) {
20287
+ return new Promise((resolve, reject) => {
20288
+ const target = `pmate@${server}`;
20289
+ const child = (0, import_node_child_process11.spawn)("ssh", [target, "sudo", "nginx", "-s", "reload"], {
20290
+ stdio: ["ignore", "inherit", "inherit"]
20291
+ });
20292
+ child.on("error", (error) => {
20293
+ reject(error);
20294
+ });
20295
+ child.on("close", (code) => {
20296
+ if (code === 0) {
20297
+ resolve();
20298
+ return;
20299
+ }
20300
+ reject(new Error(`nginx reload on ${server} exited with code ${code}`));
20301
+ });
20302
+ });
20303
+ }
20474
20304
  renderJson(value, asJson) {
20475
20305
  if (!asJson) {
20476
20306
  return;
@@ -20480,9 +20310,9 @@ var ServiceCommandHandler = class {
20480
20310
  };
20481
20311
 
20482
20312
  // src/commands/VercelCommandHandler.ts
20483
- var import_node_child_process11 = require("child_process");
20313
+ var import_node_child_process12 = require("child_process");
20484
20314
  var import_node_util2 = require("util");
20485
- var execFileAsync2 = (0, import_node_util2.promisify)(import_node_child_process11.execFile);
20315
+ var execFileAsync2 = (0, import_node_util2.promisify)(import_node_child_process12.execFile);
20486
20316
  function parseDeploymentTimestamp(deployment) {
20487
20317
  const candidates = [deployment.createdAt, deployment.readyAt, deployment.ready];
20488
20318
  for (const value of candidates) {
@@ -21656,14 +21486,13 @@ function parseAgentArgs(tokens) {
21656
21486
  const ref = rest.shift();
21657
21487
  if (!ref) {
21658
21488
  throw new Error(
21659
- "Usage: agent call <ns:objectId> [--payload <json>] [--file <path>] [--base-url <url>] [--hub-base-url <url>] [--from <id>] [--profile-id <id>] [--json]"
21489
+ "Usage: agent call <ns:objectId> [--payload <json>] [--file <path>] [--base-url <url>] [--hub-base-url <url>] [--profile-id <id>] [--json]"
21660
21490
  );
21661
21491
  }
21662
21492
  const parsed = parseNamespacedRef(ref, { entityLabel: "agent ref" });
21663
21493
  let filePath;
21664
21494
  let payload;
21665
21495
  let hubBaseUrl;
21666
- let from;
21667
21496
  let profileId;
21668
21497
  while (rest.length > 0) {
21669
21498
  const token = rest.shift();
@@ -21680,9 +21509,6 @@ function parseAgentArgs(tokens) {
21680
21509
  case "--hub-base-url":
21681
21510
  hubBaseUrl = requireValue(rest, token);
21682
21511
  break;
21683
- case "--from":
21684
- from = requireValue(rest, token);
21685
- break;
21686
21512
  case "--profile-id":
21687
21513
  profileId = requireValue(rest, token);
21688
21514
  break;
@@ -21702,7 +21528,6 @@ function parseAgentArgs(tokens) {
21702
21528
  filePath,
21703
21529
  baseUrl,
21704
21530
  hubBaseUrl,
21705
- from,
21706
21531
  profileId,
21707
21532
  json
21708
21533
  };
@@ -23018,7 +22843,7 @@ function parseServiceEnvArgs(appId, tokens) {
23018
22843
  const rest = [...tokens];
23019
22844
  const action = rest.shift();
23020
22845
  if (!action) {
23021
- throw new Error("Usage: service <ns:app> env list|get|set|unset|resolve|pull|copy-from");
22846
+ throw new Error("Usage: service <ns:app> env list|get|set|unset|resolve|pull|copy-from|update-scope");
23022
22847
  }
23023
22848
  let baseUrl;
23024
22849
  let json = false;
@@ -23248,6 +23073,53 @@ function parseServiceEnvArgs(appId, tokens) {
23248
23073
  }
23249
23074
  return { type: "service" /* Service */, action: "env-copy-from", targetAppId: appId, sourceAppId, scope, includeSecret, overwrite, onlyKeys, baseUrl, json };
23250
23075
  }
23076
+ if (action === "update-scope") {
23077
+ let fromScope;
23078
+ let toScope;
23079
+ let overwrite = false;
23080
+ let onlyKeys;
23081
+ while (rest.length > 0) {
23082
+ const token = rest.shift();
23083
+ switch (token) {
23084
+ case "--from":
23085
+ case "--from-scope":
23086
+ fromScope = requireValue6(rest, token);
23087
+ break;
23088
+ case "--to":
23089
+ case "--to-scope":
23090
+ toScope = requireValue6(rest, token);
23091
+ break;
23092
+ case "--overwrite":
23093
+ overwrite = true;
23094
+ break;
23095
+ case "--only":
23096
+ onlyKeys = requireValue6(rest, token).split(",").map((item) => item.trim()).filter(Boolean);
23097
+ break;
23098
+ case "--base-url":
23099
+ baseUrl = requireValue6(rest, token);
23100
+ break;
23101
+ case "--json":
23102
+ json = true;
23103
+ break;
23104
+ default:
23105
+ throw new Error(`Unknown service env update-scope option: ${token}`);
23106
+ }
23107
+ }
23108
+ if (!fromScope || !toScope) {
23109
+ throw new Error("Usage: service <ns:app> env update-scope --from <scope> --to <scope> [--overwrite] [--only <key,key>] [--base-url <url>] [--json]");
23110
+ }
23111
+ return {
23112
+ type: "service" /* Service */,
23113
+ action: "env-update-scope",
23114
+ appId,
23115
+ fromScope,
23116
+ toScope,
23117
+ overwrite,
23118
+ onlyKeys,
23119
+ baseUrl,
23120
+ json
23121
+ };
23122
+ }
23251
23123
  throw new Error(`Unknown service env action: ${action}`);
23252
23124
  }
23253
23125
 
@@ -24418,7 +24290,7 @@ var HELP_TEXT = [
24418
24290
  ` ${import_chalk4.default.gray(" update <ns:objectId> --file <path> [--base-url <url>] [--json]")}`,
24419
24291
  ` ${import_chalk4.default.gray(" rename --from <id> --to <id> --ns <namespace> [--base-url <url>] [--json]")}`,
24420
24292
  ` ${import_chalk4.default.gray(" move --from <id> --ns <namespace> --to-ns <namespace> [--to <id>] [--base-url <url>] [--json]")}`,
24421
- ` ${import_chalk4.default.gray(" call <ns:objectId> [--payload <json>] [--file <path>] [--base-url <url>] [--hub-base-url <url>] [--from <id>] [--profile-id <id>] [--json]")}`,
24293
+ ` ${import_chalk4.default.gray(" call <ns:objectId> [--payload <json>] [--file <path>] [--base-url <url>] [--hub-base-url <url>] [--profile-id <id>] [--json]")}`,
24422
24294
  ` ${import_chalk4.default.gray(" --file reads JSON payload files, or streams binary files such as .wav to ASR agents; --payload becomes stream params for binary files")}`,
24423
24295
  ` ${import_chalk4.default.gray(" delete <ns:objectId> [--base-url <url>] [--json]")}`,
24424
24296
  ` ${import_chalk4.default.gray(" list defaults to all namespaces; create defaults to namespace: pmate; default base URL: https://agent-api.pmate.chat; call uses pmate:factory session and default hub: https://hub.pmate.chat")}`,