@wirecat/tg-cli 0.114.0 → 0.115.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/tg.js +2 -2
- package/dist/bin/tg.js.map +1 -1
- package/dist/bundle/{adapter-YAEHX3QB.js → adapter-ODK7R4LY.js} +52 -49
- package/dist/bundle/{all-profiles-R5CW42HQ.js → all-profiles-AQYM65BS.js} +6 -5
- package/dist/bundle/{anthropic-F25RHYV2.js → anthropic-VBDSVNIM.js} +5 -4
- package/dist/bundle/{app-server-FAG6FNXR.js → app-server-YOIHLBNS.js} +41 -38
- package/dist/bundle/{bot-api-KOIAXTQR.js → bot-api-TRYLGQKK.js} +45 -41
- package/dist/bundle/{bot-history-PRAOZEWC.js → bot-history-7DTJLBBJ.js} +16 -15
- package/dist/bundle/{bun-sqlite-DSUCO4TR.js → bun-sqlite-6B3BL5IV.js} +4 -3
- package/dist/bundle/{chunk-EQJG44KE.js → chunk-2TC76TLJ.js} +1 -1
- package/dist/bundle/{chunk-ZFMOPKPT.js → chunk-5ROWSRK7.js} +2 -2
- package/dist/bundle/{chunk-TRRRRGMI.js → chunk-63YKD7YA.js} +1 -1
- package/dist/bundle/{chunk-EARO464A.js → chunk-77M3IAVU.js} +187 -125
- package/dist/bundle/{chunk-NMVFFWF2.js → chunk-A4BQGSKI.js} +6 -6
- package/dist/bundle/{chunk-P4YBABUC.js → chunk-AICS3TSF.js} +5 -3
- package/dist/bundle/{chunk-ULFTCR5W.js → chunk-AVWPMJ6E.js} +1 -1
- package/dist/bundle/{chunk-NJ2I4KFZ.js → chunk-BEQPZA3S.js} +2 -2
- package/dist/bundle/{chunk-NUVBC3LJ.js → chunk-BIEBJLYO.js} +2 -2
- package/dist/bundle/{chunk-7FOT4XD2.js → chunk-BPPRR7TV.js} +32 -32
- package/dist/bundle/chunk-CCHHEMPM.js +71 -0
- package/dist/bundle/{chunk-M3IWROIF.js → chunk-CNO3R4O4.js} +6 -4
- package/dist/bundle/{chunk-C34IDOA5.js → chunk-D4E345BC.js} +1 -1
- package/dist/bundle/{chunk-LPUFOWL3.js → chunk-D72URWJE.js} +1 -39
- package/dist/bundle/{chunk-Y4LCSCSH.js → chunk-DIABP7ZP.js} +2 -2
- package/dist/bundle/chunk-EW3XTUPB.js +166 -0
- package/dist/bundle/{chunk-NTF34HJP.js → chunk-GCFU6WBE.js} +1 -1
- package/dist/bundle/{chunk-DQQEN3X4.js → chunk-GWDMKEDY.js} +2 -2
- package/dist/bundle/{chunk-CS5DQ6KM.js → chunk-GX4DMI4H.js} +9 -9
- package/dist/bundle/{chunk-2PAKHXIV.js → chunk-HZKWB6WS.js} +25 -25
- package/dist/bundle/chunk-ILHTNOIV.js +23 -0
- package/dist/bundle/{chunk-4JOKO4IW.js → chunk-IUDIRZVU.js} +46 -44
- package/dist/bundle/{chunk-QCXYJKPF.js → chunk-JZXQZW2D.js} +1 -1
- package/dist/bundle/{chunk-3R43O3GG.js → chunk-KDOBY524.js} +12 -10
- package/dist/bundle/{chunk-VHO66SMY.js → chunk-LUIPXRKN.js} +30 -28
- package/dist/bundle/{chunk-AL36NHO6.js → chunk-M7B5IMH3.js} +22 -20
- package/dist/bundle/{chunk-E2IRSRTB.js → chunk-MUZ4KYGY.js} +4 -2
- package/dist/bundle/{chunk-34USFPBF.js → chunk-NTW5ZE47.js} +150 -262
- package/dist/bundle/{chunk-TTTDZOBW.js → chunk-OMP6ALBT.js} +2 -2
- package/dist/bundle/{chunk-OFDMD3YF.js → chunk-OSP335AJ.js} +1 -1
- package/dist/bundle/{chunk-J5U2HKGZ.js → chunk-OUX3QMYI.js} +16 -14
- package/dist/bundle/{chunk-HA35XN2Z.js → chunk-PEJHI7QO.js} +2 -2
- package/dist/bundle/{chunk-YQ64ZNLD.js → chunk-PEKTB3FQ.js} +15 -13
- package/dist/bundle/{chunk-YPABTT7A.js → chunk-POKTQZOM.js} +4 -2
- package/dist/bundle/chunk-PQLBPYJR.js +46 -0
- package/dist/bundle/{chunk-WIRDTH3J.js → chunk-PZAEI4NM.js} +8 -8
- package/dist/bundle/{chunk-I6BKSGZQ.js → chunk-QK6VLKG5.js} +7 -7
- package/dist/bundle/{chunk-OWHF6BON.js → chunk-RHUNMU4Q.js} +3 -3
- package/dist/bundle/{chunk-NKP3RUM4.js → chunk-TMATSEP5.js} +13 -11
- package/dist/bundle/{chunk-RBC7JQ4Y.js → chunk-TQYMLXDS.js} +4 -2
- package/dist/bundle/{chunk-TKNCJMYN.js → chunk-U67TSAAO.js} +85 -81
- package/dist/bundle/{chunk-6SPLZI5P.js → chunk-UBQ3LOF6.js} +3 -3
- package/dist/bundle/{chunk-ALHKUQDZ.js → chunk-UY7GJRGY.js} +1 -1
- package/dist/bundle/{chunk-XDOPONC3.js → chunk-VQCWVZWG.js} +3 -3
- package/dist/bundle/{chunk-MQTTVQ3V.js → chunk-WDNNN3J4.js} +4 -4
- package/dist/bundle/{chunk-KZQXOZFC.js → chunk-WINKEV4F.js} +6 -19
- package/dist/bundle/{chunk-C7K7AP6G.js → chunk-WMG4IGEB.js} +11 -11
- package/dist/bundle/{chunk-5HKMEXVQ.js → chunk-WMRFAK5B.js} +1 -1
- package/dist/bundle/{chunk-IN25CJ3D.js → chunk-XIYRHIBK.js} +1 -1
- package/dist/bundle/{chunk-CDCBFMEI.js → chunk-XY7IGVVS.js} +1 -1
- package/dist/bundle/{chunk-3EZ43DAF.js → chunk-YCUQKFGD.js} +2 -2
- package/dist/bundle/{command-contract-SOTDPG22.js → command-contract-YF4KGFXC.js} +13 -12
- package/dist/bundle/{decode-7U4SXPAN.js → decode-2GATBZGH.js} +6 -5
- package/dist/bundle/dispatch-MJMW7WDH.js +411 -0
- package/dist/bundle/{embed-IDZDQMSW.js → embed-TBQPLA4Y.js} +6 -5
- package/dist/bundle/{embedder-RY5R2PGO.js → embedder-B5DTNCRO.js} +8 -7
- package/dist/bundle/{entry-P6YZ3ZV6.js → entry-A6DEW2TD.js} +6 -5
- package/dist/bundle/failure-TLF3SISS.js +24 -0
- package/dist/bundle/first-run-3N5AABEY.js +27 -0
- package/dist/bundle/first-screen-HANARM67.js +30 -0
- package/dist/bundle/{mcp-FUSDPAOL.js → mcp-MNI62HHE.js} +4 -2
- package/dist/bundle/{node-sqlite-VUXFVPJ6.js → node-sqlite-GIDPALK3.js} +4 -3
- package/dist/bundle/{oauth-7SQIPMOY.js → oauth-C57W4IMD.js} +6 -5
- package/dist/bundle/{open-W3BN2SIO.js → open-E6Q4WRPU.js} +4 -3
- package/dist/bundle/{openai-LQTK3ZMC.js → openai-5WMXY2KP.js} +11 -10
- package/dist/bundle/{program-DIPSLR6O.js → program-FEUDU6GF.js} +58 -53
- package/dist/bundle/{prompt-GESHKSM5.js → prompt-4NGAZGHE.js} +5 -4
- package/dist/bundle/{proxy-transport-C2EUUT32.js → proxy-transport-MGCJ7JAW.js} +5 -4
- package/dist/bundle/{recognize-FEQTIJET.js → recognize-EUHRBA7V.js} +4 -3
- package/dist/bundle/{remote-UXOPBPKS.js → remote-3JHLB2FV.js} +7 -6
- package/dist/bundle/{rerank-L4JM4REK.js → rerank-ZZ45SZPC.js} +6 -5
- package/dist/bundle/{serve-DDWW44DB.js → serve-XOGX5FC5.js} +7 -6
- package/dist/bundle/server-DRE5MJ76.js +59 -0
- package/dist/bundle/{server-UTWBIZHB.js → server-I6O72XP5.js} +31 -29
- package/dist/bundle/{state-EV7FGEK4.js → state-BIUYTGH6.js} +5 -4
- package/dist/bundle/{store-EXBUF4OG.js → store-FOJFYOMR.js} +10 -9
- package/dist/bundle/store-maintenance-command-YKV2C34N.js +49 -0
- package/dist/bundle/tg.js +159 -14
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -2
- package/skills/tg-cli/SKILL.md +2 -0
- package/dist/bundle/first-run-66KTCVQK.js +0 -24
- package/dist/bundle/first-screen-NY46X6QU.js +0 -29
- package/dist/bundle/identity-GXVKGCNU.js +0 -11
- package/dist/bundle/server-ZI7WDAW6.js +0 -56
- package/dist/bundle/store-maintenance-command-UBZE2Z6T.js +0 -46
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
syncRequest,
|
|
46
46
|
syncsFirst,
|
|
47
47
|
taskStatsAnswer
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-WMG4IGEB.js";
|
|
49
49
|
import {
|
|
50
50
|
INPUT_FIELD_REASONS,
|
|
51
51
|
UNTRUSTED_NEUTRAL,
|
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
skillStatus,
|
|
59
59
|
skillVersion,
|
|
60
60
|
withVersion
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-KDOBY524.js";
|
|
62
62
|
import {
|
|
63
63
|
DAY_MS,
|
|
64
64
|
DRY_RUN_DAYS,
|
|
@@ -98,7 +98,7 @@ import {
|
|
|
98
98
|
writeRepliesFile,
|
|
99
99
|
writeRepliesState,
|
|
100
100
|
writeReplyConsent
|
|
101
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-LUIPXRKN.js";
|
|
102
102
|
import {
|
|
103
103
|
DEFAULT_PACE,
|
|
104
104
|
FloodMemory,
|
|
@@ -119,7 +119,7 @@ import {
|
|
|
119
119
|
sendsPathFor,
|
|
120
120
|
terminalAsker,
|
|
121
121
|
unknownPermissionIssues
|
|
122
|
-
} from "./chunk-
|
|
122
|
+
} from "./chunk-PZAEI4NM.js";
|
|
123
123
|
import {
|
|
124
124
|
ADMIN_RIGHTS,
|
|
125
125
|
AGENDA_QUERY,
|
|
@@ -289,23 +289,23 @@ import {
|
|
|
289
289
|
withQuery,
|
|
290
290
|
withoutPhone,
|
|
291
291
|
wrongAccount
|
|
292
|
-
} from "./chunk-
|
|
292
|
+
} from "./chunk-IUDIRZVU.js";
|
|
293
293
|
import {
|
|
294
294
|
acquireLock,
|
|
295
295
|
readBoundedUtf8File,
|
|
296
296
|
syncDirectory,
|
|
297
297
|
writeFileAtomic
|
|
298
|
-
} from "./chunk-
|
|
298
|
+
} from "./chunk-XIYRHIBK.js";
|
|
299
299
|
import {
|
|
300
300
|
commandsText,
|
|
301
301
|
installHelp
|
|
302
|
-
} from "./chunk-
|
|
302
|
+
} from "./chunk-CNO3R4O4.js";
|
|
303
303
|
import {
|
|
304
304
|
SCHEMA_DIALECT,
|
|
305
305
|
commandContract,
|
|
306
306
|
commandPathOf,
|
|
307
307
|
findCommand
|
|
308
|
-
} from "./chunk-
|
|
308
|
+
} from "./chunk-AICS3TSF.js";
|
|
309
309
|
import {
|
|
310
310
|
AUTHORITY_KEY,
|
|
311
311
|
Argument,
|
|
@@ -485,11 +485,11 @@ import {
|
|
|
485
485
|
wasSettled,
|
|
486
486
|
withLines,
|
|
487
487
|
withoutProviderRefs
|
|
488
|
-
} from "./chunk-
|
|
488
|
+
} from "./chunk-M7B5IMH3.js";
|
|
489
489
|
import {
|
|
490
490
|
note,
|
|
491
491
|
zonedTime
|
|
492
|
-
} from "./chunk-
|
|
492
|
+
} from "./chunk-WMRFAK5B.js";
|
|
493
493
|
import {
|
|
494
494
|
agentOf,
|
|
495
495
|
isCliFailure,
|
|
@@ -498,24 +498,23 @@ import {
|
|
|
498
498
|
providerErrorKey,
|
|
499
499
|
runContextOf,
|
|
500
500
|
secretInput
|
|
501
|
-
} from "./chunk-
|
|
501
|
+
} from "./chunk-POKTQZOM.js";
|
|
502
502
|
import {
|
|
503
503
|
setupAtStart
|
|
504
|
-
} from "./chunk-
|
|
504
|
+
} from "./chunk-TMATSEP5.js";
|
|
505
505
|
import {
|
|
506
|
-
installerOf,
|
|
507
506
|
isNewer,
|
|
508
507
|
latestVersion
|
|
509
|
-
} from "./chunk-
|
|
508
|
+
} from "./chunk-WINKEV4F.js";
|
|
510
509
|
import {
|
|
511
510
|
logParsedArgv,
|
|
512
511
|
logVersion
|
|
513
|
-
} from "./chunk-
|
|
512
|
+
} from "./chunk-GX4DMI4H.js";
|
|
514
513
|
import {
|
|
515
514
|
envName,
|
|
516
515
|
readOnlyLockOf,
|
|
517
516
|
readOnlyRefusal
|
|
518
|
-
} from "./chunk-
|
|
517
|
+
} from "./chunk-D4E345BC.js";
|
|
519
518
|
import {
|
|
520
519
|
httpLaunchFile,
|
|
521
520
|
httpLockFile,
|
|
@@ -524,38 +523,16 @@ import {
|
|
|
524
523
|
readHttpLaunch,
|
|
525
524
|
readHttpLock,
|
|
526
525
|
signedInClients
|
|
527
|
-
} from "./chunk-
|
|
526
|
+
} from "./chunk-UY7GJRGY.js";
|
|
528
527
|
import {
|
|
529
528
|
lockPath,
|
|
530
529
|
readLock,
|
|
531
530
|
servingProfiles
|
|
532
|
-
} from "./chunk-
|
|
531
|
+
} from "./chunk-GCFU6WBE.js";
|
|
533
532
|
import {
|
|
534
533
|
alive,
|
|
535
534
|
carries
|
|
536
535
|
} from "./chunk-KIZT2MI6.js";
|
|
537
|
-
import {
|
|
538
|
-
isLocal,
|
|
539
|
-
remoteModel
|
|
540
|
-
} from "./chunk-Y4LCSCSH.js";
|
|
541
|
-
import {
|
|
542
|
-
isTextModelInstalled,
|
|
543
|
-
textModelsDirectory
|
|
544
|
-
} from "./chunk-MQTTVQ3V.js";
|
|
545
|
-
import {
|
|
546
|
-
DEFAULT_ORDER,
|
|
547
|
-
OPENAI_TRANSCRIBE_MODEL,
|
|
548
|
-
VAD,
|
|
549
|
-
install,
|
|
550
|
-
installedBytes,
|
|
551
|
-
isInstalled,
|
|
552
|
-
megabytes,
|
|
553
|
-
modelPath,
|
|
554
|
-
modelsDirectory,
|
|
555
|
-
orderedModels,
|
|
556
|
-
speechModel,
|
|
557
|
-
vadPath
|
|
558
|
-
} from "./chunk-HA35XN2Z.js";
|
|
559
536
|
import {
|
|
560
537
|
ACCOUNT_GROUPS_SETTING,
|
|
561
538
|
ATTACHMENT_LIMIT_ENV,
|
|
@@ -590,7 +567,7 @@ import {
|
|
|
590
567
|
savedTaskCategories,
|
|
591
568
|
stemmersOrigin,
|
|
592
569
|
titlePart
|
|
593
|
-
} from "./chunk-
|
|
570
|
+
} from "./chunk-BPPRR7TV.js";
|
|
594
571
|
import {
|
|
595
572
|
PAYMENT_DIRECTIONS,
|
|
596
573
|
PAYMENT_STATES,
|
|
@@ -614,11 +591,11 @@ import {
|
|
|
614
591
|
validateMeetingSeriesInventoryCursor,
|
|
615
592
|
validateQuery,
|
|
616
593
|
walkQuery
|
|
617
|
-
} from "./chunk-
|
|
594
|
+
} from "./chunk-QK6VLKG5.js";
|
|
618
595
|
import {
|
|
619
596
|
DEFAULT_STEMMERS,
|
|
620
597
|
parseStemmers
|
|
621
|
-
} from "./chunk-
|
|
598
|
+
} from "./chunk-OSP335AJ.js";
|
|
622
599
|
import {
|
|
623
600
|
DEFAULT_TASK_CATEGORIES,
|
|
624
601
|
applyTaskCategoryEdits,
|
|
@@ -629,59 +606,78 @@ import {
|
|
|
629
606
|
unlistedNote,
|
|
630
607
|
withTaskCategory,
|
|
631
608
|
writeTaskCategoryEdits
|
|
632
|
-
} from "./chunk-
|
|
633
|
-
import {
|
|
634
|
-
storePath
|
|
635
|
-
} from "./chunk-TRRRRGMI.js";
|
|
636
|
-
import {
|
|
637
|
-
openCache
|
|
638
|
-
} from "./chunk-XDOPONC3.js";
|
|
609
|
+
} from "./chunk-A4BQGSKI.js";
|
|
639
610
|
import {
|
|
640
611
|
readSecret
|
|
641
|
-
} from "./chunk-
|
|
612
|
+
} from "./chunk-YCUQKFGD.js";
|
|
642
613
|
import {
|
|
643
614
|
MAX_BUFFERED_INPUT,
|
|
644
615
|
MAX_SECRET_INPUT,
|
|
645
616
|
bufferedInput,
|
|
646
617
|
inputPolicy,
|
|
647
618
|
provideInputPolicy
|
|
648
|
-
} from "./chunk-
|
|
619
|
+
} from "./chunk-AVWPMJ6E.js";
|
|
620
|
+
import {
|
|
621
|
+
isLocal,
|
|
622
|
+
remoteModel
|
|
623
|
+
} from "./chunk-DIABP7ZP.js";
|
|
624
|
+
import {
|
|
625
|
+
isTextModelInstalled,
|
|
626
|
+
textModelsDirectory
|
|
627
|
+
} from "./chunk-WDNNN3J4.js";
|
|
628
|
+
import {
|
|
629
|
+
DEFAULT_ORDER,
|
|
630
|
+
OPENAI_TRANSCRIBE_MODEL,
|
|
631
|
+
VAD,
|
|
632
|
+
install,
|
|
633
|
+
installedBytes,
|
|
634
|
+
isInstalled,
|
|
635
|
+
megabytes,
|
|
636
|
+
modelPath,
|
|
637
|
+
modelsDirectory,
|
|
638
|
+
orderedModels,
|
|
639
|
+
speechModel,
|
|
640
|
+
vadPath
|
|
641
|
+
} from "./chunk-PEJHI7QO.js";
|
|
642
|
+
import {
|
|
643
|
+
storePath
|
|
644
|
+
} from "./chunk-63YKD7YA.js";
|
|
645
|
+
import {
|
|
646
|
+
installerOf
|
|
647
|
+
} from "./chunk-ILHTNOIV.js";
|
|
648
|
+
import {
|
|
649
|
+
openCache
|
|
650
|
+
} from "./chunk-VQCWVZWG.js";
|
|
649
651
|
import {
|
|
650
652
|
BATCH_LIMITS,
|
|
651
653
|
Credentials,
|
|
652
|
-
EXIT_CODES,
|
|
653
|
-
GENERIC_FAILURE,
|
|
654
654
|
configFilePath,
|
|
655
|
-
errorObjectOf,
|
|
656
|
-
errorRecordOf,
|
|
657
|
-
exitCodeFor,
|
|
658
|
-
exitCodeOfError,
|
|
659
655
|
indent,
|
|
660
656
|
isMovedRun,
|
|
661
657
|
loadConfigFile,
|
|
662
658
|
pathsAreOverridden,
|
|
663
659
|
prepareBatch,
|
|
664
660
|
processStreams,
|
|
665
|
-
renderError,
|
|
666
661
|
resolvePaths,
|
|
667
662
|
runBatch,
|
|
668
663
|
saveConfigFile,
|
|
669
|
-
singleLine,
|
|
670
|
-
visibleControls,
|
|
671
664
|
writeSecurely
|
|
672
|
-
} from "./chunk-
|
|
665
|
+
} from "./chunk-NTW5ZE47.js";
|
|
673
666
|
import {
|
|
674
667
|
COMPACT_FLAG,
|
|
675
668
|
CRASH_CODE,
|
|
676
|
-
|
|
669
|
+
EXIT_CODES,
|
|
670
|
+
GENERIC_FAILURE,
|
|
677
671
|
MAX_NEXT_STEPS,
|
|
678
672
|
array,
|
|
679
673
|
boolean,
|
|
680
|
-
|
|
674
|
+
errorObjectOf,
|
|
681
675
|
errorObjectSchema,
|
|
676
|
+
errorRecordOf,
|
|
677
|
+
exitCodeFor,
|
|
678
|
+
exitCodeOfError,
|
|
682
679
|
getDotPath,
|
|
683
680
|
integer,
|
|
684
|
-
isCliError,
|
|
685
681
|
isoTimestamp,
|
|
686
682
|
itemEnvelopeSchema,
|
|
687
683
|
jsonSchemaOf,
|
|
@@ -699,13 +695,21 @@ import {
|
|
|
699
695
|
pipe,
|
|
700
696
|
record,
|
|
701
697
|
regex,
|
|
698
|
+
renderError,
|
|
702
699
|
safeParse,
|
|
703
700
|
strictObject,
|
|
704
701
|
string,
|
|
705
702
|
union,
|
|
706
703
|
unknown,
|
|
707
704
|
writes
|
|
708
|
-
} from "./chunk-
|
|
705
|
+
} from "./chunk-77M3IAVU.js";
|
|
706
|
+
import {
|
|
707
|
+
CliError,
|
|
708
|
+
errorCodes,
|
|
709
|
+
isCliError,
|
|
710
|
+
singleLine,
|
|
711
|
+
visibleControls
|
|
712
|
+
} from "./chunk-CCHHEMPM.js";
|
|
709
713
|
import {
|
|
710
714
|
__name
|
|
711
715
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -4212,11 +4216,11 @@ var messengerHost = /* @__PURE__ */ __name((messenger) => ({
|
|
|
4212
4216
|
context: /* @__PURE__ */ __name((self, options) => messengerContext(self, messenger, options), "context"),
|
|
4213
4217
|
permissionExample: "messages.send=deny",
|
|
4214
4218
|
serveStdio: /* @__PURE__ */ __name(async (self, context) => {
|
|
4215
|
-
const { serveOverStdio } = await import("./server-
|
|
4219
|
+
const { serveOverStdio } = await import("./server-DRE5MJ76.js");
|
|
4216
4220
|
await serveOverStdio(self, context, messenger, {});
|
|
4217
4221
|
}, "serveStdio"),
|
|
4218
4222
|
serveHttp: /* @__PURE__ */ __name(async (self, context, http) => {
|
|
4219
|
-
const { serveOverHttpUntilStopped } = await import("./server-
|
|
4223
|
+
const { serveOverHttpUntilStopped } = await import("./server-DRE5MJ76.js");
|
|
4220
4224
|
await serveOverHttpUntilStopped(self, context, messenger, {}, http);
|
|
4221
4225
|
}, "serveHttp"),
|
|
4222
4226
|
instructions: /* @__PURE__ */ __name(async (profiles) => {
|
|
@@ -4276,7 +4280,7 @@ var mcpGroup = /* @__PURE__ */ __name((host) => {
|
|
|
4276
4280
|
}).summary("forget every login given to a browser app").description("forget every login `mcp serve --http` gave a browser app, of this profile or of the server `--profiles` names; each app must log in again")).action(async function() {
|
|
4277
4281
|
const context = host.context(this, { needsProfile: false });
|
|
4278
4282
|
const served = servedProfiles(this, host, context, this.opts().profiles, "mcp revoke", "whose browser logins to forget");
|
|
4279
|
-
const { revokeAll } = await import("./oauth-
|
|
4283
|
+
const { revokeAll } = await import("./oauth-C57W4IMD.js");
|
|
4280
4284
|
revokeAll(httpTokenFile(app, "set" in served ? served.set.key : served.profile, context.env));
|
|
4281
4285
|
renderAnswer(this, context, itemOf("set" in served ? { revoked: true, profile: null, profiles: served.set.option } : { revoked: true, profile: served.profile }));
|
|
4282
4286
|
}));
|
|
@@ -4354,7 +4358,7 @@ var mcpGroup = /* @__PURE__ */ __name((host) => {
|
|
|
4354
4358
|
const [name, entry] = Object.entries(configuration.config.mcpServers)[0] ?? [];
|
|
4355
4359
|
if (!name || !entry)
|
|
4356
4360
|
throw new CliError("validation_error", "the MCP entry is empty");
|
|
4357
|
-
const { installStdioEntry, probeStdio } = await import("./mcp-
|
|
4361
|
+
const { installStdioEntry, probeStdio } = await import("./mcp-MNI62HHE.js");
|
|
4358
4362
|
try {
|
|
4359
4363
|
const server = entry;
|
|
4360
4364
|
const { potentialWrites } = await probeStdio(server);
|
|
@@ -4382,7 +4386,7 @@ var mcpGroup = /* @__PURE__ */ __name((host) => {
|
|
|
4382
4386
|
const entry = Object.values(configuration.config.mcpServers)[0];
|
|
4383
4387
|
if (!entry)
|
|
4384
4388
|
throw new CliError("validation_error", "the MCP entry is empty");
|
|
4385
|
-
const { probeStdio } = await import("./mcp-
|
|
4389
|
+
const { probeStdio } = await import("./mcp-MNI62HHE.js");
|
|
4386
4390
|
const stderr = stderrTail();
|
|
4387
4391
|
try {
|
|
4388
4392
|
const { tools, potentialWrites } = await probeStdio(entry, {
|
|
@@ -4446,8 +4450,8 @@ var serveProfiles = /* @__PURE__ */ __name(async (self, context, host, flags, se
|
|
|
4446
4450
|
reaches: `the browser apps reach ${app.command}`,
|
|
4447
4451
|
path: true
|
|
4448
4452
|
});
|
|
4449
|
-
const { serveAllProfilesOverHttp } = await import("./all-profiles-
|
|
4450
|
-
const { mcpHttpMarker: mcpHttpMarker2 } = await import("./state-
|
|
4453
|
+
const { serveAllProfilesOverHttp } = await import("./all-profiles-AQYM65BS.js");
|
|
4454
|
+
const { mcpHttpMarker: mcpHttpMarker2 } = await import("./state-BIUYTGH6.js");
|
|
4451
4455
|
const port = portOf(flags.port, DEFAULT_PORT);
|
|
4452
4456
|
const listening = await serveAllProfilesOverHttp(options, {
|
|
4453
4457
|
publicUrl,
|
|
@@ -4470,7 +4474,7 @@ var serveProfiles = /* @__PURE__ */ __name(async (self, context, host, flags, se
|
|
|
4470
4474
|
await listening.close();
|
|
4471
4475
|
return;
|
|
4472
4476
|
}
|
|
4473
|
-
const { serveAllProfilesOverStdio } = await import("./all-profiles-
|
|
4477
|
+
const { serveAllProfilesOverStdio } = await import("./all-profiles-AQYM65BS.js");
|
|
4474
4478
|
context.renderer.note(`serving ${profileSetLabel(set)} over MCP on stdin and stdout`);
|
|
4475
4479
|
const { stdin, stdout, signal } = environmentOf(self);
|
|
4476
4480
|
await serveAllProfilesOverStdio(options, {
|
|
@@ -4575,12 +4579,12 @@ var appMcpCommand = /* @__PURE__ */ __name((app, configuration, options) => {
|
|
|
4575
4579
|
permissionExample: options.permissionExample,
|
|
4576
4580
|
serveStdio: /* @__PURE__ */ __name(async (self, context) => {
|
|
4577
4581
|
checked2(self, context);
|
|
4578
|
-
const { serveAppOverStdio } = await import("./app-server-
|
|
4582
|
+
const { serveAppOverStdio } = await import("./app-server-YOIHLBNS.js");
|
|
4579
4583
|
await serveAppOverStdio(self, context, server());
|
|
4580
4584
|
}, "serveStdio"),
|
|
4581
4585
|
serveHttp: /* @__PURE__ */ __name(async (self, context, http) => {
|
|
4582
4586
|
checked2(self, context);
|
|
4583
|
-
const { serveAppOverHttp } = await import("./app-server-
|
|
4587
|
+
const { serveAppOverHttp } = await import("./app-server-YOIHLBNS.js");
|
|
4584
4588
|
await serveAppOverHttp(self, context, server(), http);
|
|
4585
4589
|
}, "serveHttp"),
|
|
4586
4590
|
instructions: /* @__PURE__ */ __name(async (profiles) => {
|
|
@@ -5461,7 +5465,7 @@ var botMcpCommand = /* @__PURE__ */ __name((bot) => {
|
|
|
5461
5465
|
const mcp = bot.mcp;
|
|
5462
5466
|
if (!mcp)
|
|
5463
5467
|
throw new Error("bot mcp is mounted only with BotMessenger.mcp");
|
|
5464
|
-
const [{ serveBotOverStdio }, run2] = await Promise.all([import("./server-
|
|
5468
|
+
const [{ serveBotOverStdio }, run2] = await Promise.all([import("./server-I6O72XP5.js"), mcp.program()]);
|
|
5465
5469
|
await serveBotOverStdio({
|
|
5466
5470
|
bot,
|
|
5467
5471
|
program: { run: run2, commands: describeProgram(rootOf2(this)) },
|
|
@@ -13167,12 +13171,12 @@ var hearOnline = /* @__PURE__ */ __name(async (messenger, connection, chat2, mes
|
|
|
13167
13171
|
}, "hearOnline");
|
|
13168
13172
|
var hearLocally = /* @__PURE__ */ __name(async (bytes, messageId, choice) => {
|
|
13169
13173
|
const { model: model2, directory, open, ffmpeg } = choice;
|
|
13170
|
-
const { decodeAudio } = await import("./decode-
|
|
13174
|
+
const { decodeAudio } = await import("./decode-2GATBZGH.js");
|
|
13171
13175
|
const { samples, rate } = await decodeAudio(bytes, ffmpeg);
|
|
13172
13176
|
if (choice.with === "openai") {
|
|
13173
13177
|
if (choice.refusal)
|
|
13174
13178
|
throw choice.refusal;
|
|
13175
|
-
const { transcribeOpenAI } = await import("./openai-
|
|
13179
|
+
const { transcribeOpenAI } = await import("./openai-5WMXY2KP.js");
|
|
13176
13180
|
const transcribeModel = choice.transcribeModel ?? OPENAI_TRANSCRIBE_MODEL;
|
|
13177
13181
|
const pieces = await transcribeOpenAI({ samples, rate }, {
|
|
13178
13182
|
apiKey: choice.apiKey ?? "",
|
|
@@ -13191,7 +13195,7 @@ var hearLocally = /* @__PURE__ */ __name(async (bytes, messageId, choice) => {
|
|
|
13191
13195
|
model: transcribeModel
|
|
13192
13196
|
};
|
|
13193
13197
|
}
|
|
13194
|
-
const { openRecognizer, toModelRate } = await import("./recognize-
|
|
13198
|
+
const { openRecognizer, toModelRate } = await import("./recognize-EUHRBA7V.js");
|
|
13195
13199
|
const recognizer = (open ?? openRecognizer)(model2, modelPath(directory, model2), vadPath(directory));
|
|
13196
13200
|
try {
|
|
13197
13201
|
return {
|
|
@@ -13368,7 +13372,7 @@ var downloadAudioModel = /* @__PURE__ */ __name(async (command, messenger, id3)
|
|
|
13368
13372
|
await install(model2, directory, { progress: /* @__PURE__ */ __name((line7) => context.renderer.note(line7), "progress") });
|
|
13369
13373
|
}
|
|
13370
13374
|
context.renderer.note(`${model2.id}: loading it once to check it works`);
|
|
13371
|
-
const { openRecognizer, SAMPLE_RATE } = await import("./recognize-
|
|
13375
|
+
const { openRecognizer, SAMPLE_RATE } = await import("./recognize-EUHRBA7V.js");
|
|
13372
13376
|
const recognizer = openRecognizer(model2, modelPath(directory, model2), vadPath(directory));
|
|
13373
13377
|
try {
|
|
13374
13378
|
recognizer.recognize(new Float32Array(SAMPLE_RATE));
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { createRequire as __bundleRequire } from "node:module";
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
CliError
|
|
5
|
-
} from "./chunk-EARO464A.js";
|
|
6
3
|
import {
|
|
7
4
|
importFrom
|
|
8
5
|
} from "./chunk-Y5E2WNWB.js";
|
|
6
|
+
import {
|
|
7
|
+
CliError
|
|
8
|
+
} from "./chunk-CCHHEMPM.js";
|
|
9
9
|
import {
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from "./chunk-L4CMCC3V.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-CCHHEMPM.js";
|
|
9
9
|
import {
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -44,12 +44,12 @@ var openCache = /* @__PURE__ */ __name(async (path) => {
|
|
|
44
44
|
}, "openCache");
|
|
45
45
|
var openFile = /* @__PURE__ */ __name((path) => "Bun" in globalThis ? openUnderBun(path) : openUnderNode(path), "openFile");
|
|
46
46
|
var openUnderBun = /* @__PURE__ */ __name(async (path) => {
|
|
47
|
-
const { openWithBunSqlite } = await import("./bun-sqlite-
|
|
47
|
+
const { openWithBunSqlite } = await import("./bun-sqlite-6B3BL5IV.js");
|
|
48
48
|
return await openWithBunSqlite(path);
|
|
49
49
|
}, "openUnderBun");
|
|
50
50
|
var openUnderNode = /* @__PURE__ */ __name(async (path) => {
|
|
51
51
|
quietSqliteWarning();
|
|
52
|
-
const { openWithNodeSqlite } = await import("./node-sqlite-
|
|
52
|
+
const { openWithNodeSqlite } = await import("./node-sqlite-GIDPALK3.js");
|
|
53
53
|
return openWithNodeSqlite(path);
|
|
54
54
|
}, "openUnderNode");
|
|
55
55
|
var runtime = /* @__PURE__ */ __name(() => {
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
installFiles,
|
|
6
6
|
megabytes,
|
|
7
7
|
sharedModelsDirectory
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import {
|
|
10
|
-
CliError
|
|
11
|
-
} from "./chunk-EARO464A.js";
|
|
8
|
+
} from "./chunk-PEJHI7QO.js";
|
|
12
9
|
import {
|
|
13
10
|
importFrom
|
|
14
11
|
} from "./chunk-Y5E2WNWB.js";
|
|
12
|
+
import {
|
|
13
|
+
CliError
|
|
14
|
+
} from "./chunk-CCHHEMPM.js";
|
|
15
15
|
import {
|
|
16
16
|
__name
|
|
17
17
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -2,38 +2,26 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
executableEnvironment,
|
|
5
|
-
executableOnPath
|
|
5
|
+
executableOnPath
|
|
6
|
+
} from "./chunk-PQLBPYJR.js";
|
|
7
|
+
import {
|
|
6
8
|
require_cross_spawn
|
|
7
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-D72URWJE.js";
|
|
8
10
|
import {
|
|
9
11
|
loadConfigFile,
|
|
10
12
|
saveConfigFile
|
|
11
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-NTW5ZE47.js";
|
|
12
14
|
import {
|
|
13
15
|
number,
|
|
14
16
|
object,
|
|
15
17
|
optional,
|
|
16
18
|
string
|
|
17
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-77M3IAVU.js";
|
|
18
20
|
import {
|
|
19
21
|
__name,
|
|
20
22
|
__toESM
|
|
21
23
|
} from "./chunk-ZVVMGPBJ.js";
|
|
22
24
|
|
|
23
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/installer.js
|
|
24
|
-
var installerOf = /* @__PURE__ */ __name((scriptPath) => {
|
|
25
|
-
const path = scriptPath.replaceAll("\\", "/");
|
|
26
|
-
if (path.includes("/_npx/"))
|
|
27
|
-
return "npx";
|
|
28
|
-
if (path.includes("/install/global/node_modules/"))
|
|
29
|
-
return "bun";
|
|
30
|
-
if (/\/\.?pnpm\//.test(path))
|
|
31
|
-
return "pnpm";
|
|
32
|
-
if (path.includes("/node_modules/"))
|
|
33
|
-
return "npm";
|
|
34
|
-
return path.includes("/dist/") ? "checkout" : "unknown";
|
|
35
|
-
}, "installerOf");
|
|
36
|
-
|
|
37
25
|
// node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/update/index.js
|
|
38
26
|
var import_cross_spawn = __toESM(require_cross_spawn(), 1);
|
|
39
27
|
import { existsSync } from "node:fs";
|
|
@@ -143,7 +131,6 @@ var commandWords = /* @__PURE__ */ __name((argv) => {
|
|
|
143
131
|
}, "commandWords");
|
|
144
132
|
|
|
145
133
|
export {
|
|
146
|
-
installerOf,
|
|
147
134
|
updateCommand,
|
|
148
135
|
isNewer,
|
|
149
136
|
latestVersion,
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
refuseLocalWrite,
|
|
8
8
|
refuseUnknownPermissionKeys,
|
|
9
9
|
sendsPathFor
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-PZAEI4NM.js";
|
|
11
11
|
import {
|
|
12
12
|
MAX_SEARCH_OFFSET,
|
|
13
13
|
chatRef,
|
|
@@ -17,10 +17,10 @@ import {
|
|
|
17
17
|
positiveCount,
|
|
18
18
|
refreshedFiles,
|
|
19
19
|
senderIsMe
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-IUDIRZVU.js";
|
|
21
21
|
import {
|
|
22
22
|
commandPathOf
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-AICS3TSF.js";
|
|
24
24
|
import {
|
|
25
25
|
CEILING_KEY,
|
|
26
26
|
DEFAULT_TEXT_MODEL,
|
|
@@ -37,23 +37,19 @@ import {
|
|
|
37
37
|
recalledAccount,
|
|
38
38
|
settingsFor,
|
|
39
39
|
writeOfKey
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-M7B5IMH3.js";
|
|
41
41
|
import {
|
|
42
42
|
MESSENGER_CHANGE_REFUSAL,
|
|
43
43
|
readOnlyLockOf,
|
|
44
44
|
readOnlyRefusal
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-D4E345BC.js";
|
|
46
46
|
import {
|
|
47
47
|
formatLocator,
|
|
48
48
|
hitFiles,
|
|
49
49
|
openStore,
|
|
50
50
|
parseLocator
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-BPPRR7TV.js";
|
|
52
52
|
import {
|
|
53
|
-
visibleControls
|
|
54
|
-
} from "./chunk-34USFPBF.js";
|
|
55
|
-
import {
|
|
56
|
-
CliError,
|
|
57
53
|
description,
|
|
58
54
|
object,
|
|
59
55
|
optional,
|
|
@@ -61,10 +57,14 @@ import {
|
|
|
61
57
|
string,
|
|
62
58
|
toStandardJsonSchema,
|
|
63
59
|
writes
|
|
64
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-77M3IAVU.js";
|
|
65
61
|
import {
|
|
66
62
|
importFrom
|
|
67
63
|
} from "./chunk-Y5E2WNWB.js";
|
|
64
|
+
import {
|
|
65
|
+
CliError,
|
|
66
|
+
visibleControls
|
|
67
|
+
} from "./chunk-CCHHEMPM.js";
|
|
68
68
|
import {
|
|
69
69
|
__name
|
|
70
70
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
strictObject,
|
|
19
19
|
string,
|
|
20
20
|
unknown
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-77M3IAVU.js";
|
|
22
22
|
|
|
23
23
|
// node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/entities/fields.js
|
|
24
24
|
var text = string();
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
MAX_SECRET_INPUT,
|
|
5
5
|
bufferedInput,
|
|
6
6
|
inputPolicy
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-AVWPMJ6E.js";
|
|
8
8
|
import {
|
|
9
9
|
CliError
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-CCHHEMPM.js";
|
|
11
11
|
import {
|
|
12
12
|
__name
|
|
13
13
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -6,21 +6,22 @@ import {
|
|
|
6
6
|
commandPathOf,
|
|
7
7
|
findCommand,
|
|
8
8
|
outputOf
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-AICS3TSF.js";
|
|
10
|
+
import "./chunk-M7B5IMH3.js";
|
|
11
|
+
import "./chunk-WMRFAK5B.js";
|
|
12
|
+
import "./chunk-POKTQZOM.js";
|
|
13
|
+
import "./chunk-OMP6ALBT.js";
|
|
14
|
+
import "./chunk-D4E345BC.js";
|
|
15
15
|
import "./chunk-KIZT2MI6.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-QK6VLKG5.js";
|
|
17
|
+
import "./chunk-A4BQGSKI.js";
|
|
18
|
+
import "./chunk-PEJHI7QO.js";
|
|
19
|
+
import "./chunk-63YKD7YA.js";
|
|
19
20
|
import "./chunk-NUN6OGOV.js";
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-EARO464A.js";
|
|
21
|
+
import "./chunk-NTW5ZE47.js";
|
|
22
|
+
import "./chunk-77M3IAVU.js";
|
|
23
23
|
import "./chunk-Y5E2WNWB.js";
|
|
24
|
+
import "./chunk-CCHHEMPM.js";
|
|
24
25
|
import "./chunk-ZVVMGPBJ.js";
|
|
25
26
|
export {
|
|
26
27
|
SCHEMA_DIALECT,
|