@wirecat/tg-cli 0.123.0 → 0.124.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.
Files changed (131) hide show
  1. package/contracts/wirecat.json +47 -4
  2. package/dist/bin/tg.js +2 -2
  3. package/dist/bundle/{adapter-GAOG65O2.js → adapter-GEIZVMWU.js} +55 -53
  4. package/dist/bundle/{all-profiles-HLE6PHNI.js → all-profiles-EY4GJFWN.js} +10 -10
  5. package/dist/bundle/{anthropic-FZC4BS7T.js → anthropic-RIANJ7WM.js} +17 -10
  6. package/dist/bundle/{app-server-SHZNMV27.js → app-server-LW7WBFIF.js} +62 -52
  7. package/dist/bundle/{bot-api-LRS2KMDE.js → bot-api-FHIQ66OM.js} +54 -52
  8. package/dist/bundle/{bot-history-IJ7ZZKW5.js → bot-history-O34YZEFH.js} +18 -18
  9. package/dist/bundle/{bun-FACL53HM.js → bun-MJWD4VGV.js} +2 -2
  10. package/dist/bundle/{bun-sqlite-B2MD7RTL.js → bun-sqlite-LCHVO3OB.js} +6 -6
  11. package/dist/bundle/{chunk-3JISIGLP.js → chunk-2GFGZDWS.js} +2 -2
  12. package/dist/bundle/{chunk-EOUUI5FI.js → chunk-2NG4JPP7.js} +4 -4
  13. package/dist/bundle/{chunk-V4722KYX.js → chunk-2YLIVDWJ.js} +2 -2
  14. package/dist/bundle/chunk-3PLMMFP6.js +1068 -0
  15. package/dist/bundle/{chunk-Z5HHBTS5.js → chunk-3VVZFBE2.js} +23 -4
  16. package/dist/bundle/{chunk-XDL4L3OI.js → chunk-42R4YO4L.js} +3609 -1620
  17. package/dist/bundle/{chunk-3S6KZCZ7.js → chunk-4CIVGT4P.js} +57 -28
  18. package/dist/bundle/{chunk-QLXKWAET.js → chunk-4EGB7GSW.js} +87 -19
  19. package/dist/bundle/chunk-54JPEGQA.js +71 -0
  20. package/dist/bundle/chunk-5EL6E6PW.js +13 -0
  21. package/dist/bundle/{chunk-V23X3W2W.js → chunk-7AWJZ6NJ.js} +8 -8
  22. package/dist/bundle/{chunk-UB6J5HRW.js → chunk-A5RWKKBZ.js} +3 -3
  23. package/dist/bundle/{chunk-HJLTWT52.js → chunk-ASEBKZFY.js} +2 -2
  24. package/dist/bundle/{chunk-EISV5YWD.js → chunk-BV3HZYOX.js} +6959 -6230
  25. package/dist/bundle/{chunk-MFN5MSIL.js → chunk-CDSSKK5J.js} +3 -3
  26. package/dist/bundle/{chunk-7EFJHLKW.js → chunk-DFSLHF46.js} +1 -1
  27. package/dist/bundle/{chunk-E2Z4C6CQ.js → chunk-E66JBGZZ.js} +6 -6
  28. package/dist/bundle/{chunk-VUBZFMGP.js → chunk-E6VSARSU.js} +2 -2
  29. package/dist/bundle/{chunk-ZJPXRW65.js → chunk-F3GHTPAO.js} +4 -4
  30. package/dist/bundle/{chunk-SWGGYBCW.js → chunk-GUL6QLNI.js} +40 -21
  31. package/dist/bundle/{chunk-UBFDPLFQ.js → chunk-HEV23NIB.js} +6 -6
  32. package/dist/bundle/{chunk-EABZ2CUG.js → chunk-HSRO77SW.js} +34 -29
  33. package/dist/bundle/{chunk-ZOBRYIUG.js → chunk-I4JUKRW7.js} +2 -2
  34. package/dist/bundle/{chunk-QVMAZVSN.js → chunk-IK6XKMLL.js} +1 -1
  35. package/dist/bundle/{chunk-SNEJK4SN.js → chunk-ISGXVFA4.js} +4 -4
  36. package/dist/bundle/{chunk-KKMNMQMW.js → chunk-IVFUSI7G.js} +2 -2
  37. package/dist/bundle/{chunk-6FK2Z75N.js → chunk-KVJSCJGZ.js} +2 -2
  38. package/dist/bundle/{chunk-NYRAW4M5.js → chunk-LKMZ53GC.js} +4 -7
  39. package/dist/bundle/{chunk-B6G3TNN4.js → chunk-M4W4Y5YR.js} +132 -40
  40. package/dist/bundle/{chunk-BGUYYKS3.js → chunk-N5UM63JW.js} +343 -112
  41. package/dist/bundle/{chunk-OE5JMZSM.js → chunk-NL4COYPY.js} +9 -9
  42. package/dist/bundle/{chunk-3BUQXB7B.js → chunk-NQXVZ5WT.js} +15 -117
  43. package/dist/bundle/{chunk-DEMGDKCX.js → chunk-OH3IZ6GW.js} +2395 -2369
  44. package/dist/bundle/{chunk-RX5CJ55S.js → chunk-OIF4B526.js} +1 -1
  45. package/dist/bundle/{chunk-4W4EVVL4.js → chunk-OK4M4MWI.js} +4 -4
  46. package/dist/bundle/{chunk-OOWE2O5U.js → chunk-OVDB5CQM.js} +1 -1
  47. package/dist/bundle/{chunk-PZQ2MQFX.js → chunk-PI4XXMPG.js} +6 -6
  48. package/dist/bundle/{chunk-MCPOZNWG.js → chunk-PJGOQSE5.js} +1 -1
  49. package/dist/bundle/{chunk-U5FILNK6.js → chunk-PP4ZBLS4.js} +69 -6
  50. package/dist/bundle/{chunk-LVGX7VTD.js → chunk-PZ6H65D6.js} +4 -4
  51. package/dist/bundle/{chunk-4DCFLHLN.js → chunk-QFV36CAH.js} +4 -4
  52. package/dist/bundle/{chunk-Q74XVJFT.js → chunk-QGCVQRHV.js} +1 -1
  53. package/dist/bundle/{chunk-QLB3BFSN.js → chunk-QK4T3VN7.js} +1 -1
  54. package/dist/bundle/{chunk-5IHYZ6ED.js → chunk-QWAMX6CN.js} +12 -12
  55. package/dist/bundle/{chunk-SCGCDLI7.js → chunk-RBV4M2TC.js} +1 -1
  56. package/dist/bundle/{chunk-6KT5BTWL.js → chunk-RHJHOOUL.js} +341 -184
  57. package/dist/bundle/{chunk-STPYSD6W.js → chunk-SGBH3D5D.js} +3 -3
  58. package/dist/bundle/{chunk-ADI5R2MM.js → chunk-UII3D3HR.js} +51 -51
  59. package/dist/bundle/{chunk-PAHSIORC.js → chunk-UP3J3YXH.js} +6 -6
  60. package/dist/bundle/{chunk-SMFUKHG2.js → chunk-UR62DZ7Q.js} +24 -9
  61. package/dist/bundle/{chunk-ZQ3WGGKK.js → chunk-VAKSXD4F.js} +13 -13
  62. package/dist/bundle/{chunk-WA7YED3Y.js → chunk-VGUWIHXD.js} +1 -1
  63. package/dist/bundle/chunk-VIIIC5LU.js +32 -0
  64. package/dist/bundle/{chunk-3P7HWXDJ.js → chunk-VMWJGUVV.js} +14 -5
  65. package/dist/bundle/{chunk-V4JEZFW5.js → chunk-W4LMTNN2.js} +2 -2
  66. package/dist/bundle/{chunk-ENEMZAIJ.js → chunk-WKOVQ4OU.js} +14 -12
  67. package/dist/bundle/{chunk-T5OO7VDT.js → chunk-WSLIXJET.js} +3798 -3401
  68. package/dist/bundle/{chunk-WSLTW6MI.js → chunk-XDHGM2Z7.js} +3 -3
  69. package/dist/bundle/{chunk-5R5HGV2J.js → chunk-XSGUG5WG.js} +4 -4
  70. package/dist/bundle/{chunk-RDKPKS2P.js → chunk-YQFO7WXQ.js} +2 -2
  71. package/dist/bundle/{chunk-VVRWH5VH.js → chunk-ZL5YG2WK.js} +14 -9
  72. package/dist/bundle/{chunk-FFHX7VKP.js → chunk-ZNICTHSC.js} +1 -1
  73. package/dist/bundle/{chunk-BAB3ALHZ.js → chunk-ZTMV5M3D.js} +27 -25
  74. package/dist/bundle/command-contract-UKOL455D.js +34 -0
  75. package/dist/bundle/{command-server-entry-5LKDRLEX.js → command-server-entry-K52OEKIO.js} +24 -22
  76. package/dist/bundle/{decode-L4DQDHXA.js → decode-OAE25LEJ.js} +5 -5
  77. package/dist/bundle/{dispatch-PQSCFHEX.js → dispatch-6GVTXIZ2.js} +8 -8
  78. package/dist/bundle/{echarts-6LES2JIV.js → echarts-EO4ZGKMN.js} +2 -2
  79. package/dist/bundle/{embed-T5MLKX75.js → embed-TB2AS4AT.js} +6 -6
  80. package/dist/bundle/{embedder-56NMRLC5.js → embedder-YKC42G6L.js} +9 -9
  81. package/dist/bundle/{entry-U5GV6Y46.js → entry-AB6FU7BN.js} +9 -8
  82. package/dist/bundle/{failure-BX5HJAQE.js → failure-CY7ACT6V.js} +2 -2
  83. package/dist/bundle/{first-run-ISQ52V3I.js → first-run-CMQZHDI5.js} +11 -11
  84. package/dist/bundle/first-screen-XZ73W3VE.js +32 -0
  85. package/dist/bundle/{instructions-CJEXDI7E.js → instructions-RM3IB6ID.js} +1 -1
  86. package/dist/bundle/{mcp-7KQUJNFN.js → mcp-M5YCSWJJ.js} +2 -2
  87. package/dist/bundle/{node-QLWTGZW7.js → node-D2PM62TA.js} +2 -2
  88. package/dist/bundle/{node-sqlite-X2C3RR2Q.js → node-sqlite-UK5DE525.js} +7 -7
  89. package/dist/bundle/{oauth-VP3KMHLX.js → oauth-SKRG67A2.js} +7 -7
  90. package/dist/bundle/{open-GLR5EUZS.js → open-XP3SY62D.js} +5 -5
  91. package/dist/bundle/{openai-6CDCJ5LQ.js → openai-Q3U46UPA.js} +21 -17
  92. package/dist/bundle/{process-7FABZ3T2.js → process-YJ4LHMJB.js} +1 -1
  93. package/dist/bundle/{program-KUIAHJDX.js → program-EEPEFKTR.js} +80 -63
  94. package/dist/bundle/{prompt-XPHIZMD2.js → prompt-WYTODP4U.js} +5 -5
  95. package/dist/bundle/{proxy-transport-IIB7ZXIS.js → proxy-transport-HJMQ5QFT.js} +5 -5
  96. package/dist/bundle/{recognize-FVFYI3XX.js → recognize-K2S5QQU2.js} +4 -4
  97. package/dist/bundle/{remote-3AMCG2P4.js → remote-7RSAJ3JC.js} +9 -7
  98. package/dist/bundle/{rerank-XV4E25ML.js → rerank-RJX77BKD.js} +7 -7
  99. package/dist/bundle/{serve-NVSZA4UN.js → serve-3E7NN3VW.js} +14 -14
  100. package/dist/bundle/server-ITHYDPWQ.js +62 -0
  101. package/dist/bundle/{server-MBMPHRJE.js → server-O3KU56A4.js} +36 -35
  102. package/dist/bundle/sqlite-runtime-RCS5WSG5.js +19 -0
  103. package/dist/bundle/{state-JBMB2QUR.js → state-PLWSPSAG.js} +6 -6
  104. package/dist/bundle/store-3FYLH53Z.js +276 -0
  105. package/dist/bundle/{store-T4SCYTY2.js → store-DWMKCXYL.js} +15 -13
  106. package/dist/bundle/store-maintenance-command-3UEKINRB.js +52 -0
  107. package/dist/bundle/tg.js +13 -13
  108. package/dist/commands/account-removal.d.ts.map +1 -1
  109. package/dist/commands/account-removal.js +5 -3
  110. package/dist/commands/account-removal.js.map +1 -1
  111. package/dist/commands/session.d.ts.map +1 -1
  112. package/dist/commands/session.js +21 -3
  113. package/dist/commands/session.js.map +1 -1
  114. package/dist/paths.d.ts +6 -0
  115. package/dist/paths.d.ts.map +1 -1
  116. package/dist/paths.js +23 -2
  117. package/dist/paths.js.map +1 -1
  118. package/dist/program.d.ts +4 -1
  119. package/dist/program.d.ts.map +1 -1
  120. package/dist/program.js +5 -2
  121. package/dist/program.js.map +1 -1
  122. package/dist/version.d.ts +1 -1
  123. package/dist/version.js +1 -1
  124. package/package.json +4 -4
  125. package/dist/bundle/chunk-I7K4OR5Q.js +0 -265
  126. package/dist/bundle/chunk-PZJXQMSZ.js +0 -27
  127. package/dist/bundle/command-contract-HWSWHMO4.js +0 -33
  128. package/dist/bundle/first-screen-7L4AMZDO.js +0 -31
  129. package/dist/bundle/server-MHVGYRQZ.js +0 -61
  130. package/dist/bundle/store-maintenance-command-F7WQMTMP.js +0 -49
  131. /package/dist/bundle/{chunk-YVNHQFLC.js → chunk-HVJJWJYQ.js} +0 -0
@@ -4,15 +4,16 @@ import {
4
4
  firstRunAt,
5
5
  openBrowser,
6
6
  startCli
7
- } from "./chunk-ENEMZAIJ.js";
8
- import "./chunk-NYRAW4M5.js";
9
- import "./chunk-UBFDPLFQ.js";
10
- import "./chunk-FFHX7VKP.js";
11
- import "./chunk-PZJXQMSZ.js";
12
- import "./chunk-3S6KZCZ7.js";
13
- import "./chunk-SMFUKHG2.js";
7
+ } from "./chunk-WKOVQ4OU.js";
8
+ import "./chunk-5EL6E6PW.js";
9
+ import "./chunk-LKMZ53GC.js";
10
+ import "./chunk-HEV23NIB.js";
11
+ import "./chunk-ZNICTHSC.js";
12
+ import "./chunk-54JPEGQA.js";
13
+ import "./chunk-4CIVGT4P.js";
14
+ import "./chunk-UR62DZ7Q.js";
14
15
  import "./chunk-Y5E2WNWB.js";
15
- import "./chunk-VUBZFMGP.js";
16
+ import "./chunk-E6VSARSU.js";
16
17
  import "./chunk-ZVVMGPBJ.js";
17
18
  export {
18
19
  firstRunAt,
@@ -9,8 +9,8 @@ import {
9
9
  mcpErrorResult,
10
10
  renderError,
11
11
  retryOf
12
- } from "./chunk-SMFUKHG2.js";
13
- import "./chunk-VUBZFMGP.js";
12
+ } from "./chunk-UR62DZ7Q.js";
13
+ import "./chunk-E6VSARSU.js";
14
14
  import "./chunk-ZVVMGPBJ.js";
15
15
  export {
16
16
  catchCrashes,
@@ -5,19 +5,19 @@ import {
5
5
  asksAtStart,
6
6
  setupAtStart,
7
7
  systemLanguage
8
- } from "./chunk-5IHYZ6ED.js";
9
- import "./chunk-5R5HGV2J.js";
10
- import "./chunk-MCPOZNWG.js";
11
- import "./chunk-V23X3W2W.js";
12
- import "./chunk-RX5CJ55S.js";
8
+ } from "./chunk-QWAMX6CN.js";
9
+ import "./chunk-XSGUG5WG.js";
10
+ import "./chunk-PJGOQSE5.js";
11
+ import "./chunk-7AWJZ6NJ.js";
12
+ import "./chunk-OIF4B526.js";
13
13
  import "./chunk-D72URWJE.js";
14
- import "./chunk-STPYSD6W.js";
15
- import "./chunk-PAHSIORC.js";
16
- import "./chunk-KKMNMQMW.js";
17
- import "./chunk-3S6KZCZ7.js";
18
- import "./chunk-SMFUKHG2.js";
14
+ import "./chunk-SGBH3D5D.js";
15
+ import "./chunk-UP3J3YXH.js";
16
+ import "./chunk-IVFUSI7G.js";
17
+ import "./chunk-4CIVGT4P.js";
18
+ import "./chunk-UR62DZ7Q.js";
19
19
  import "./chunk-Y5E2WNWB.js";
20
- import "./chunk-VUBZFMGP.js";
20
+ import "./chunk-E6VSARSU.js";
21
21
  import "./chunk-ZVVMGPBJ.js";
22
22
  export {
23
23
  askSetupQuestions,
@@ -0,0 +1,32 @@
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ WIRECAT_TOOLS,
5
+ firstScreen,
6
+ installHelp
7
+ } from "./chunk-NQXVZ5WT.js";
8
+ import "./chunk-2ABQZVK4.js";
9
+ import "./chunk-F3GHTPAO.js";
10
+ import "./chunk-RHJHOOUL.js";
11
+ import "./chunk-ZL5YG2WK.js";
12
+ import "./chunk-SGBH3D5D.js";
13
+ import "./chunk-54JPEGQA.js";
14
+ import "./chunk-QK4T3VN7.js";
15
+ import "./chunk-VIIIC5LU.js";
16
+ import "./chunk-A5RWKKBZ.js";
17
+ import "./chunk-2NG4JPP7.js";
18
+ import "./chunk-OH3IZ6GW.js";
19
+ import "./chunk-3VVZFBE2.js";
20
+ import "./chunk-UP3J3YXH.js";
21
+ import "./chunk-HVJJWJYQ.js";
22
+ import "./chunk-IVFUSI7G.js";
23
+ import "./chunk-4CIVGT4P.js";
24
+ import "./chunk-UR62DZ7Q.js";
25
+ import "./chunk-Y5E2WNWB.js";
26
+ import "./chunk-E6VSARSU.js";
27
+ import "./chunk-ZVVMGPBJ.js";
28
+ export {
29
+ WIRECAT_TOOLS,
30
+ firstScreen,
31
+ installHelp
32
+ };
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  appInstructions,
5
5
  instructions
6
- } from "./chunk-7EFJHLKW.js";
6
+ } from "./chunk-DFSLHF46.js";
7
7
  import "./chunk-ZVVMGPBJ.js";
8
8
  export {
9
9
  appInstructions,
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  executableEnvironment,
5
5
  executableOnPath
6
- } from "./chunk-MCPOZNWG.js";
6
+ } from "./chunk-PJGOQSE5.js";
7
7
  import {
8
8
  require_cross_spawn
9
9
  } from "./chunk-D72URWJE.js";
@@ -12,7 +12,7 @@ import {
12
12
  __toESM
13
13
  } from "./chunk-ZVVMGPBJ.js";
14
14
 
15
- // node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/mcp/index.js
15
+ // node_modules/.pnpm/@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/mcp/index.js
16
16
  var import_cross_spawn = __toESM(require_cross_spawn(), 1);
17
17
  var realRun = /* @__PURE__ */ __name((file, args) => {
18
18
  const result = import_cross_spawn.default.sync(executableOnPath(file, process.env), args, {
@@ -18,12 +18,12 @@ import {
18
18
  jitCompatCheck,
19
19
  refineSqliteCodecs,
20
20
  sql
21
- } from "./chunk-Q74XVJFT.js";
21
+ } from "./chunk-QGCVQRHV.js";
22
22
  import {
23
23
  __name
24
24
  } from "./chunk-ZVVMGPBJ.js";
25
25
 
26
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/node.js
26
+ // node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/node.js
27
27
  import { DatabaseSync } from "node:sqlite";
28
28
  var nodeSQLiteCodecs = refineSqliteCodecs({
29
29
  "integer:boolean": { normalize: booleanFromInteger },
@@ -3,23 +3,23 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  loadVectorExtension,
5
5
  vectorExtension
6
- } from "./chunk-RDKPKS2P.js";
6
+ } from "./chunk-YQFO7WXQ.js";
7
7
  import {
8
8
  TIME_LIMIT_FUNCTION,
9
9
  beforeTimeLimit
10
- } from "./chunk-FFHX7VKP.js";
10
+ } from "./chunk-ZNICTHSC.js";
11
11
  import {
12
12
  refuseOwnerStoreInTests
13
- } from "./chunk-KKMNMQMW.js";
14
- import "./chunk-3S6KZCZ7.js";
15
- import "./chunk-SMFUKHG2.js";
13
+ } from "./chunk-IVFUSI7G.js";
14
+ import "./chunk-4CIVGT4P.js";
15
+ import "./chunk-UR62DZ7Q.js";
16
16
  import "./chunk-Y5E2WNWB.js";
17
- import "./chunk-VUBZFMGP.js";
17
+ import "./chunk-E6VSARSU.js";
18
18
  import {
19
19
  __name
20
20
  } from "./chunk-ZVVMGPBJ.js";
21
21
 
22
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/store/drivers/node-sqlite.js
22
+ // node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/store/drivers/node-sqlite.js
23
23
  import { DatabaseSync } from "node:sqlite";
24
24
  var openWithNodeSqlite = /* @__PURE__ */ __name(async (path) => cacheOverNodeSqlite(await nodeClient(path)), "openWithNodeSqlite");
25
25
  var nodeClient = /* @__PURE__ */ __name(async (path, { readOnly = false } = {}) => {
@@ -3,15 +3,15 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  ownerLogin,
5
5
  revokeAll
6
- } from "./chunk-E2Z4C6CQ.js";
7
- import "./chunk-SNEJK4SN.js";
6
+ } from "./chunk-E66JBGZZ.js";
8
7
  import "./chunk-5D4AEUVA.js";
9
- import "./chunk-MFN5MSIL.js";
10
- import "./chunk-QLB3BFSN.js";
11
- import "./chunk-3S6KZCZ7.js";
12
- import "./chunk-SMFUKHG2.js";
8
+ import "./chunk-ISGXVFA4.js";
9
+ import "./chunk-CDSSKK5J.js";
10
+ import "./chunk-QK4T3VN7.js";
11
+ import "./chunk-4CIVGT4P.js";
12
+ import "./chunk-UR62DZ7Q.js";
13
13
  import "./chunk-Y5E2WNWB.js";
14
- import "./chunk-VUBZFMGP.js";
14
+ import "./chunk-E6VSARSU.js";
15
15
  import "./chunk-ZVVMGPBJ.js";
16
16
  export {
17
17
  ownerLogin,
@@ -6,12 +6,12 @@ import {
6
6
  openCache,
7
7
  openFile,
8
8
  storeCapable
9
- } from "./chunk-UBFDPLFQ.js";
10
- import "./chunk-FFHX7VKP.js";
11
- import "./chunk-3S6KZCZ7.js";
12
- import "./chunk-SMFUKHG2.js";
9
+ } from "./chunk-HEV23NIB.js";
10
+ import "./chunk-ZNICTHSC.js";
11
+ import "./chunk-4CIVGT4P.js";
12
+ import "./chunk-UR62DZ7Q.js";
13
13
  import "./chunk-Y5E2WNWB.js";
14
- import "./chunk-VUBZFMGP.js";
14
+ import "./chunk-E6VSARSU.js";
15
15
  import "./chunk-ZVVMGPBJ.js";
16
16
  export {
17
17
  CAPABILITY_STATEMENTS,
@@ -1,42 +1,45 @@
1
1
  import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ providerWaitMs
5
+ } from "./chunk-PZ6H65D6.js";
3
6
  import {
4
7
  SAMPLE_RATE,
5
8
  toModelRate
6
- } from "./chunk-4DCFLHLN.js";
7
- import {
8
- providerWaitMs
9
- } from "./chunk-LVGX7VTD.js";
10
- import "./chunk-ZQ3WGGKK.js";
9
+ } from "./chunk-QFV36CAH.js";
10
+ import "./chunk-VAKSXD4F.js";
11
11
  import {
12
- OPENAI_URL
13
- } from "./chunk-U5FILNK6.js";
14
- import "./chunk-PZQ2MQFX.js";
12
+ OPENAI_URL,
13
+ refuseModelAddress
14
+ } from "./chunk-PP4ZBLS4.js";
15
+ import "./chunk-PI4XXMPG.js";
16
+ import "./chunk-VIIIC5LU.js";
15
17
  import {
16
18
  OPENAI_TRANSCRIBE_MODEL,
17
19
  VAD,
18
20
  filesPresent,
19
21
  modelsDirectory,
20
22
  vadPath
21
- } from "./chunk-EOUUI5FI.js";
22
- import "./chunk-KKMNMQMW.js";
23
+ } from "./chunk-2NG4JPP7.js";
24
+ import "./chunk-UP3J3YXH.js";
25
+ import "./chunk-IVFUSI7G.js";
23
26
  import {
24
27
  DEFAULT_RETRY,
25
28
  backoffMs
26
- } from "./chunk-3S6KZCZ7.js";
27
- import "./chunk-SMFUKHG2.js";
29
+ } from "./chunk-4CIVGT4P.js";
30
+ import "./chunk-UR62DZ7Q.js";
28
31
  import "./chunk-Y5E2WNWB.js";
29
32
  import {
30
33
  CliError
31
- } from "./chunk-VUBZFMGP.js";
34
+ } from "./chunk-E6VSARSU.js";
32
35
  import {
33
36
  __name
34
37
  } from "./chunk-ZVVMGPBJ.js";
35
38
 
36
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/speech/openai.js
39
+ // node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/speech/openai.js
37
40
  import { setTimeout as wait } from "node:timers/promises";
38
41
 
39
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/speech/wav.js
42
+ // node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/speech/wav.js
40
43
  var encodeWav = /* @__PURE__ */ __name((samples, sampleRate = 16e3) => {
41
44
  const bytes = Buffer.alloc(44 + samples.length * 2);
42
45
  bytes.write("RIFF", 0, "ascii");
@@ -57,7 +60,7 @@ var encodeWav = /* @__PURE__ */ __name((samples, sampleRate = 16e3) => {
57
60
  return new Uint8Array(bytes.buffer, bytes.byteOffset, bytes.length);
58
61
  }, "encodeWav");
59
62
 
60
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/speech/openai.js
63
+ // node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/speech/openai.js
61
64
  var LONGEST_REQUEST_SECONDS = 600;
62
65
  var JOINED_SECONDS = 0.2;
63
66
  var PAD_SECONDS = 0.2;
@@ -179,7 +182,7 @@ var piecesOf = /* @__PURE__ */ __name((spans, limit) => {
179
182
  return pieces;
180
183
  }, "piecesOf");
181
184
  var openCutter = /* @__PURE__ */ __name(async (vadModel) => {
182
- const { openSpeechCutter } = await import("./recognize-FVFYI3XX.js");
185
+ const { openSpeechCutter } = await import("./recognize-K2S5QQU2.js");
183
186
  return openSpeechCutter(vadModel);
184
187
  }, "openCutter");
185
188
  var checkKeywords = /* @__PURE__ */ __name((keywords = []) => {
@@ -188,6 +191,7 @@ var checkKeywords = /* @__PURE__ */ __name((keywords = []) => {
188
191
  throw new CliError("validation_error", "a keyword must be a non-empty single line without < or > \u2014 OpenAI refuses the whole request otherwise");
189
192
  }, "checkKeywords");
190
193
  var transcribeOpenAI = /* @__PURE__ */ __name(async (audio, options) => {
194
+ refuseModelAddress(options.env ?? process.env, options.baseUrl ?? OPENAI_URL, "audio");
191
195
  if (!options.apiKey)
192
196
  throw new CliError("authentication_error", "no OpenAI key \u2014 `models keys set openai`, or OPENAI_API_KEY", {
193
197
  reason: "transcription.no-key"
@@ -5,7 +5,7 @@ import {
5
5
  __name
6
6
  } from "./chunk-ZVVMGPBJ.js";
7
7
 
8
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/embeddings/process.js
8
+ // node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/embeddings/process.js
9
9
  import { spawn } from "node:child_process";
10
10
  import { createInterface } from "node:readline";
11
11
  import { fileURLToPath } from "node:url";
@@ -13,8 +13,9 @@ import {
13
13
  pathsFor,
14
14
  proxiedFetch,
15
15
  proxySecrets,
16
- resolveSettings
17
- } from "./chunk-SWGGYBCW.js";
16
+ resolveSettings,
17
+ usesOwnersSession
18
+ } from "./chunk-GUL6QLNI.js";
18
19
  import {
19
20
  AGENTS,
20
21
  MEMO_SCENARIOS,
@@ -34,8 +35,10 @@ import {
34
35
  floodCommand,
35
36
  guideCommand,
36
37
  imagesCommand,
38
+ inSection,
37
39
  inboxCommand,
38
40
  loginQr,
41
+ mayRevoke,
39
42
  mcpCommand,
40
43
  mentionsCommand,
41
44
  messagesCommand,
@@ -67,64 +70,63 @@ import {
67
70
  topicsCommand,
68
71
  upgradeCommand,
69
72
  watchCommand
70
- } from "./chunk-EISV5YWD.js";
71
- import "./chunk-WA7YED3Y.js";
72
- import "./chunk-LVGX7VTD.js";
73
+ } from "./chunk-BV3HZYOX.js";
73
74
  import {
74
75
  parseProxy,
75
76
  proxyLabel
76
- } from "./chunk-ZOBRYIUG.js";
77
- import "./chunk-SCGCDLI7.js";
78
- import "./chunk-BAB3ALHZ.js";
77
+ } from "./chunk-I4JUKRW7.js";
78
+ import "./chunk-VGUWIHXD.js";
79
+ import "./chunk-PZ6H65D6.js";
80
+ import "./chunk-QWAMX6CN.js";
81
+ import "./chunk-WKOVQ4OU.js";
82
+ import "./chunk-RBV4M2TC.js";
83
+ import "./chunk-ZTMV5M3D.js";
79
84
  import {
80
85
  installSkill
81
- } from "./chunk-QLXKWAET.js";
82
- import "./chunk-SNEJK4SN.js";
83
- import "./chunk-BGUYYKS3.js";
84
- import "./chunk-EABZ2CUG.js";
85
- import "./chunk-T5OO7VDT.js";
86
- import "./chunk-I7K4OR5Q.js";
87
- import "./chunk-ZQ3WGGKK.js";
88
- import {
89
- servingProfiles
90
- } from "./chunk-MFN5MSIL.js";
91
- import "./chunk-U5FILNK6.js";
92
- import {
93
- inSection
94
- } from "./chunk-3BUQXB7B.js";
95
- import "./chunk-2ABQZVK4.js";
96
- import "./chunk-5IHYZ6ED.js";
86
+ } from "./chunk-4EGB7GSW.js";
87
+ import "./chunk-ISGXVFA4.js";
88
+ import "./chunk-N5UM63JW.js";
89
+ import "./chunk-HSRO77SW.js";
90
+ import "./chunk-WSLIXJET.js";
91
+ import "./chunk-VAKSXD4F.js";
97
92
  import {
98
93
  latestVersion,
99
94
  runUpdate,
100
95
  updateNotice
101
- } from "./chunk-5R5HGV2J.js";
102
- import "./chunk-MCPOZNWG.js";
103
- import "./chunk-ENEMZAIJ.js";
96
+ } from "./chunk-XSGUG5WG.js";
97
+ import "./chunk-PJGOQSE5.js";
98
+ import {
99
+ servingProfiles
100
+ } from "./chunk-CDSSKK5J.js";
101
+ import "./chunk-PP4ZBLS4.js";
102
+ import "./chunk-3PLMMFP6.js";
103
+ import "./chunk-PI4XXMPG.js";
104
+ import "./chunk-NQXVZ5WT.js";
105
+ import "./chunk-2ABQZVK4.js";
106
+ import "./chunk-NL4COYPY.js";
107
+ import "./chunk-5EL6E6PW.js";
108
+ import "./chunk-IK6XKMLL.js";
104
109
  import {
105
110
  readSecret
106
- } from "./chunk-WSLTW6MI.js";
107
- import "./chunk-V4JEZFW5.js";
108
- import "./chunk-XDL4L3OI.js";
109
- import "./chunk-V23X3W2W.js";
110
- import "./chunk-Q74XVJFT.js";
111
- import "./chunk-3P7HWXDJ.js";
112
- import "./chunk-PZQ2MQFX.js";
111
+ } from "./chunk-XDHGM2Z7.js";
112
+ import "./chunk-W4LMTNN2.js";
113
+ import "./chunk-42R4YO4L.js";
114
+ import "./chunk-7AWJZ6NJ.js";
115
+ import "./chunk-QGCVQRHV.js";
116
+ import "./chunk-VMWJGUVV.js";
113
117
  import {
114
118
  DESKTOP,
115
119
  TG,
116
120
  VERSION
117
- } from "./chunk-6FK2Z75N.js";
121
+ } from "./chunk-KVJSCJGZ.js";
118
122
  import {
119
123
  installerOf
120
- } from "./chunk-RX5CJ55S.js";
124
+ } from "./chunk-OIF4B526.js";
121
125
  import "./chunk-D72URWJE.js";
122
- import "./chunk-OE5JMZSM.js";
123
- import "./chunk-QVMAZVSN.js";
124
- import "./chunk-NYRAW4M5.js";
125
- import "./chunk-UBFDPLFQ.js";
126
- import "./chunk-FFHX7VKP.js";
127
- import "./chunk-ZJPXRW65.js";
126
+ import "./chunk-LKMZ53GC.js";
127
+ import "./chunk-HEV23NIB.js";
128
+ import "./chunk-ZNICTHSC.js";
129
+ import "./chunk-F3GHTPAO.js";
128
130
  import {
129
131
  Argument,
130
132
  Command,
@@ -145,37 +147,38 @@ import {
145
147
  rootOf,
146
148
  secretInputOf,
147
149
  withDeadline
148
- } from "./chunk-6KT5BTWL.js";
149
- import "./chunk-UB6J5HRW.js";
150
- import "./chunk-QLB3BFSN.js";
151
- import "./chunk-VVRWH5VH.js";
152
- import "./chunk-STPYSD6W.js";
153
- import "./chunk-PZJXQMSZ.js";
150
+ } from "./chunk-RHJHOOUL.js";
151
+ import "./chunk-ZL5YG2WK.js";
152
+ import "./chunk-SGBH3D5D.js";
153
+ import "./chunk-54JPEGQA.js";
154
+ import "./chunk-QK4T3VN7.js";
155
+ import "./chunk-VIIIC5LU.js";
156
+ import "./chunk-A5RWKKBZ.js";
157
+ import "./chunk-2NG4JPP7.js";
154
158
  import {
155
159
  runtime,
156
160
  timezoneOf
157
- } from "./chunk-DEMGDKCX.js";
158
- import "./chunk-Z5HHBTS5.js";
159
- import "./chunk-PAHSIORC.js";
160
- import "./chunk-EOUUI5FI.js";
161
- import "./chunk-YVNHQFLC.js";
162
- import "./chunk-KKMNMQMW.js";
161
+ } from "./chunk-OH3IZ6GW.js";
162
+ import "./chunk-3VVZFBE2.js";
163
+ import "./chunk-UP3J3YXH.js";
164
+ import "./chunk-HVJJWJYQ.js";
165
+ import "./chunk-IVFUSI7G.js";
163
166
  import {
164
167
  configFilePath,
165
168
  indent,
166
169
  processStreams,
167
170
  renderPretty,
168
171
  resolvePaths
169
- } from "./chunk-3S6KZCZ7.js";
172
+ } from "./chunk-4CIVGT4P.js";
170
173
  import {
171
174
  exitCodeFor
172
- } from "./chunk-SMFUKHG2.js";
175
+ } from "./chunk-UR62DZ7Q.js";
173
176
  import "./chunk-Y5E2WNWB.js";
174
177
  import {
175
178
  CliError,
176
179
  isCliError,
177
180
  singleLine
178
- } from "./chunk-VUBZFMGP.js";
181
+ } from "./chunk-E6VSARSU.js";
179
182
  import {
180
183
  __name
181
184
  } from "./chunk-ZVVMGPBJ.js";
@@ -249,7 +252,7 @@ var withProxySecrets = /* @__PURE__ */ __name((config) => {
249
252
  throw new CliError("validation_error", "a proxy password or MTProxy secret never goes on the command line \u2014 run `tg config set proxy -` and paste the URL");
250
253
  if (proxy.kind === "mtproxy" && proxy.secret === void 0)
251
254
  throw new CliError("validation_error", "an MTProxy link needs its secret \u2014 run `tg config set proxy -` and paste the whole link");
252
- const { checkProxy } = await import("./proxy-transport-IIB7ZXIS.js");
255
+ const { checkProxy } = await import("./proxy-transport-HJMQ5QFT.js");
253
256
  asValidation(() => checkProxy(proxy));
254
257
  const label = proxyLabel(proxy);
255
258
  action.processedArgs[1] = label;
@@ -724,9 +727,23 @@ var sessionCommandDefinition = /* @__PURE__ */ __name(() => {
724
727
  printItem(context, { profile: context.profile, ended: false });
725
728
  return;
726
729
  }
730
+ if (usesOwnersSession(context.profile, context.env)) {
731
+ printItem(context, { profile: context.profile, ended: false, kept: "owners-sign-in" });
732
+ context.renderer.note(`kept "${context.profile}" logged in: this run's folders are moved, and it uses the owner's session (${context.sessionPath}), which only a run with the owner's own folders can end`);
733
+ return;
734
+ }
735
+ const forget = /* @__PURE__ */ __name(() => {
736
+ for (const suffix of ["", "-wal", "-shm"])
737
+ rmSync(`${context.sessionPath}${suffix}`, { force: true });
738
+ }, "forget");
739
+ if (!mayRevoke(TG, context.env, environmentOf(this).keyring)) {
740
+ forget();
741
+ printItem(context, { profile: context.profile, ended: true, logged_out: false });
742
+ context.renderer.note(`forgot "${context.profile}"'s session here without logging it out on Telegram: this run's folders are moved; the device stays in a Telegram app's list of sessions until you end it there`);
743
+ return;
744
+ }
727
745
  await context.withTelegram((telegram) => telegram.logout());
728
- for (const suffix of ["", "-wal", "-shm"])
729
- rmSync(`${context.sessionPath}${suffix}`, { force: true });
746
+ forget();
730
747
  printItem(context, { profile: context.profile, ended: true });
731
748
  });
732
749
  return session;
@@ -740,7 +757,7 @@ import { accessSync, constants, existsSync as existsSync2, mkdirSync } from "nod
740
757
  import { join } from "node:path";
741
758
  import { fileURLToPath as fileURLToPath2 } from "node:url";
742
759
 
743
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/update/index.js
760
+ // node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/update/index.js
744
761
  import { realpathSync } from "node:fs";
745
762
  import { fileURLToPath } from "node:url";
746
763
  var QUIET_WORDS = [
@@ -958,7 +975,7 @@ var upgradeCommand2 = /* @__PURE__ */ __name(() => upgradeCommand(TG, PACKAGE, (
958
975
  }), "upgradeCommand");
959
976
 
960
977
  // dist/program.js
961
- var NO_RESTART_ON = [exitCodeFor("authentication_error")];
978
+ var NO_RESTART_ON = [exitCodeFor("authentication_error"), exitCodeFor("not_found")];
962
979
  var botApi;
963
980
  var useBotApi = /* @__PURE__ */ __name((group) => {
964
981
  botApi = group;
@@ -1058,7 +1075,7 @@ var definition = {
1058
1075
  };
1059
1076
  var run2 = /* @__PURE__ */ __name(async (argv, environment = {}) => {
1060
1077
  if (!botApi && needsBotApi(argv, environment.env ?? process.env))
1061
- useBotApi((await import("./bot-api-LRS2KMDE.js")).telegramBotApiCommand);
1078
+ useBotApi((await import("./bot-api-FHIQ66OM.js")).telegramBotApiCommand);
1062
1079
  const notice = updateNotice2(argv, {
1063
1080
  ...environment.tty === void 0 ? {} : { tty: environment.tty },
1064
1081
  ...environment.update ? { environment: environment.update } : {},
@@ -3,12 +3,12 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  pasteHint,
5
5
  readSecret
6
- } from "./chunk-WSLTW6MI.js";
7
- import "./chunk-V4JEZFW5.js";
8
- import "./chunk-3S6KZCZ7.js";
9
- import "./chunk-SMFUKHG2.js";
6
+ } from "./chunk-XDHGM2Z7.js";
7
+ import "./chunk-W4LMTNN2.js";
8
+ import "./chunk-4CIVGT4P.js";
9
+ import "./chunk-UR62DZ7Q.js";
10
10
  import "./chunk-Y5E2WNWB.js";
11
- import "./chunk-VUBZFMGP.js";
11
+ import "./chunk-E6VSARSU.js";
12
12
  import "./chunk-ZVVMGPBJ.js";
13
13
  export {
14
14
  pasteHint,
@@ -4,12 +4,12 @@ import {
4
4
  checkProxy,
5
5
  proxiedTransport,
6
6
  proxyFailure
7
- } from "./chunk-HJLTWT52.js";
8
- import "./chunk-ZOBRYIUG.js";
9
- import "./chunk-3S6KZCZ7.js";
10
- import "./chunk-SMFUKHG2.js";
7
+ } from "./chunk-ASEBKZFY.js";
8
+ import "./chunk-I4JUKRW7.js";
9
+ import "./chunk-4CIVGT4P.js";
10
+ import "./chunk-UR62DZ7Q.js";
11
11
  import "./chunk-Y5E2WNWB.js";
12
- import "./chunk-VUBZFMGP.js";
12
+ import "./chunk-E6VSARSU.js";
13
13
  import "./chunk-ZVVMGPBJ.js";
14
14
  export {
15
15
  checkProxy,
@@ -8,11 +8,11 @@ import {
8
8
  openRecognizer,
9
9
  openSpeechCutter,
10
10
  toModelRate
11
- } from "./chunk-4DCFLHLN.js";
12
- import "./chunk-3S6KZCZ7.js";
13
- import "./chunk-SMFUKHG2.js";
11
+ } from "./chunk-QFV36CAH.js";
12
+ import "./chunk-4CIVGT4P.js";
13
+ import "./chunk-UR62DZ7Q.js";
14
14
  import "./chunk-Y5E2WNWB.js";
15
- import "./chunk-VUBZFMGP.js";
15
+ import "./chunk-E6VSARSU.js";
16
16
  import "./chunk-ZVVMGPBJ.js";
17
17
  export {
18
18
  SAMPLE_RATE,
@@ -8,14 +8,16 @@ import {
8
8
  openRemote,
9
9
  remoteKey,
10
10
  remoteModel
11
- } from "./chunk-U5FILNK6.js";
12
- import "./chunk-PZQ2MQFX.js";
13
- import "./chunk-EOUUI5FI.js";
14
- import "./chunk-KKMNMQMW.js";
15
- import "./chunk-3S6KZCZ7.js";
16
- import "./chunk-SMFUKHG2.js";
11
+ } from "./chunk-PP4ZBLS4.js";
12
+ import "./chunk-PI4XXMPG.js";
13
+ import "./chunk-VIIIC5LU.js";
14
+ import "./chunk-2NG4JPP7.js";
15
+ import "./chunk-UP3J3YXH.js";
16
+ import "./chunk-IVFUSI7G.js";
17
+ import "./chunk-4CIVGT4P.js";
18
+ import "./chunk-UR62DZ7Q.js";
17
19
  import "./chunk-Y5E2WNWB.js";
18
- import "./chunk-VUBZFMGP.js";
20
+ import "./chunk-E6VSARSU.js";
19
21
  import "./chunk-ZVVMGPBJ.js";
20
22
  export {
21
23
  DEFAULT_OPENAI_MODEL,