@wirecat/tg-cli 0.114.0 → 0.116.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 (123) hide show
  1. package/dist/bin/tg.js +2 -2
  2. package/dist/bin/tg.js.map +1 -1
  3. package/dist/bot/transport.d.ts +10 -8
  4. package/dist/bot/transport.d.ts.map +1 -1
  5. package/dist/bot/transport.js +16 -2
  6. package/dist/bot/transport.js.map +1 -1
  7. package/dist/bundle/{adapter-YAEHX3QB.js → adapter-6CLMTQOV.js} +85 -56
  8. package/dist/bundle/{all-profiles-R5CW42HQ.js → all-profiles-R2UZMH24.js} +10 -8
  9. package/dist/bundle/{anthropic-F25RHYV2.js → anthropic-QKIPHV2Z.js} +6 -5
  10. package/dist/bundle/{app-server-FAG6FNXR.js → app-server-AZB2MFK6.js} +47 -43
  11. package/dist/bundle/{bot-api-KOIAXTQR.js → bot-api-2IM243J4.js} +53 -48
  12. package/dist/bundle/{bot-history-PRAOZEWC.js → bot-history-G6CRVCL2.js} +19 -17
  13. package/dist/bundle/{bun-XIMM6EHD.js → bun-JDKPISPX.js} +2 -2
  14. package/dist/bundle/{bun-sqlite-DSUCO4TR.js → bun-sqlite-X5PY5IQT.js} +5 -4
  15. package/dist/bundle/{chunk-CDCBFMEI.js → chunk-42GK3XRS.js} +2 -2
  16. package/dist/bundle/{chunk-YQ64ZNLD.js → chunk-4D5AUWAY.js} +28 -15
  17. package/dist/bundle/{chunk-IN25CJ3D.js → chunk-4IQZRW4O.js} +13 -13
  18. package/dist/bundle/{chunk-Y4LCSCSH.js → chunk-577MFPCP.js} +3 -3
  19. package/dist/bundle/{chunk-O7CBGHI7.js → chunk-5FCONCJO.js} +1 -1
  20. package/dist/bundle/{chunk-CS5DQ6KM.js → chunk-5VFPUOJO.js} +17 -14
  21. package/dist/bundle/{chunk-ZFMOPKPT.js → chunk-5ZIBAYIZ.js} +2 -2
  22. package/dist/bundle/{chunk-EARO464A.js → chunk-76CX2YPT.js} +210 -129
  23. package/dist/bundle/{chunk-E2IRSRTB.js → chunk-B4UOCWM4.js} +4 -2
  24. package/dist/bundle/{chunk-Y3AQHPAJ.js → chunk-BGMV66FC.js} +1 -1
  25. package/dist/bundle/{chunk-LPUFOWL3.js → chunk-D72URWJE.js} +1 -39
  26. package/dist/bundle/{chunk-WOQGUIXE.js → chunk-DP5LRU7K.js} +1 -1
  27. package/dist/bundle/chunk-EB2IULWB.js +72 -0
  28. package/dist/bundle/{chunk-4JOKO4IW.js → chunk-FDI4GOIP.js} +912 -493
  29. package/dist/bundle/{chunk-P4YBABUC.js → chunk-GV7ZJ33M.js} +6 -4
  30. package/dist/bundle/{chunk-C7K7AP6G.js → chunk-H72UEHNG.js} +69 -36
  31. package/dist/bundle/{chunk-2PAKHXIV.js → chunk-HBUJNNZD.js} +35 -35
  32. package/dist/bundle/{chunk-NTF34HJP.js → chunk-HK6SIIGG.js} +3 -3
  33. package/dist/bundle/{chunk-NUVBC3LJ.js → chunk-HLNYJPAB.js} +2 -2
  34. package/dist/bundle/{chunk-WIRDTH3J.js → chunk-HUOXUI2M.js} +22 -22
  35. package/dist/bundle/{chunk-RBC7JQ4Y.js → chunk-I6JF43YP.js} +5 -3
  36. package/dist/bundle/{chunk-OFDMD3YF.js → chunk-IR4S7POE.js} +8 -8
  37. package/dist/bundle/{chunk-3R43O3GG.js → chunk-JFTCOV37.js} +80 -24
  38. package/dist/bundle/{chunk-YPABTT7A.js → chunk-JJMQA272.js} +14 -89
  39. package/dist/bundle/{chunk-DQQEN3X4.js → chunk-K2RYCCTP.js} +4 -4
  40. package/dist/bundle/{chunk-OWHF6BON.js → chunk-K62YATVD.js} +6 -6
  41. package/dist/bundle/{chunk-6SPLZI5P.js → chunk-KA6EGOJY.js} +4 -4
  42. package/dist/bundle/chunk-KV4267S4.js +23 -0
  43. package/dist/bundle/{chunk-AL36NHO6.js → chunk-LFKEKSI5.js} +1043 -307
  44. package/dist/bundle/{chunk-7FOT4XD2.js → chunk-LSKGCJWD.js} +3426 -1298
  45. package/dist/bundle/{chunk-M3IWROIF.js → chunk-LXH3SKY3.js} +10 -8
  46. package/dist/bundle/{chunk-QCXYJKPF.js → chunk-MQ7MCVZV.js} +2 -2
  47. package/dist/bundle/{chunk-EQJG44KE.js → chunk-N42VUNTO.js} +2 -2
  48. package/dist/bundle/{chunk-KIZT2MI6.js → chunk-N6TIFJHW.js} +1 -1
  49. package/dist/bundle/{chunk-MQTTVQ3V.js → chunk-NL3PAFAE.js} +8 -8
  50. package/dist/bundle/{chunk-ULFTCR5W.js → chunk-NUYRMU56.js} +2 -2
  51. package/dist/bundle/{chunk-34USFPBF.js → chunk-OX6EWGSG.js} +185 -291
  52. package/dist/bundle/{chunk-KZQXOZFC.js → chunk-PPLFOIYX.js} +7 -20
  53. package/dist/bundle/{chunk-TTTDZOBW.js → chunk-PPSUA3IZ.js} +3 -3
  54. package/dist/bundle/{chunk-ALHKUQDZ.js → chunk-PXMHBTK3.js} +4 -4
  55. package/dist/bundle/{chunk-VVKEWWSO.js → chunk-QAKL3GXB.js} +1 -1
  56. package/dist/bundle/{chunk-I6BKSGZQ.js → chunk-QGL2UGML.js} +306 -190
  57. package/dist/bundle/{chunk-J5U2HKGZ.js → chunk-QHBVGKC3.js} +51 -30
  58. package/dist/bundle/{chunk-NJ2I4KFZ.js → chunk-R52RMHWF.js} +2 -2
  59. package/dist/bundle/chunk-RSDIPQXP.js +35 -0
  60. package/dist/bundle/{chunk-XDOPONC3.js → chunk-RSNGMNU5.js} +6 -6
  61. package/dist/bundle/{chunk-NKP3RUM4.js → chunk-SD5PUYKF.js} +14 -12
  62. package/dist/bundle/chunk-SKZ2E3WC.js +91 -0
  63. package/dist/bundle/{chunk-HA35XN2Z.js → chunk-T7CDLV33.js} +4 -4
  64. package/dist/bundle/{chunk-C34IDOA5.js → chunk-TZVL4U7U.js} +2 -2
  65. package/dist/bundle/{chunk-3EZ43DAF.js → chunk-UCSFO5GW.js} +3 -3
  66. package/dist/bundle/{chunk-NMVFFWF2.js → chunk-VQPLHOVQ.js} +9 -9
  67. package/dist/bundle/chunk-XBIPSSKI.js +166 -0
  68. package/dist/bundle/{chunk-VHO66SMY.js → chunk-XQUTJITP.js} +59 -57
  69. package/dist/bundle/{chunk-L4CMCC3V.js → chunk-Y6VWGJ4Q.js} +1 -1
  70. package/dist/bundle/{chunk-RFRI2HFT.js → chunk-YLRTLZF6.js} +1 -1
  71. package/dist/bundle/chunk-YPF6OS37.js +46 -0
  72. package/dist/bundle/{chunk-TKNCJMYN.js → chunk-YYKJN6H5.js} +946 -589
  73. package/dist/bundle/{chunk-5HKMEXVQ.js → chunk-ZDIAPICE.js} +4 -4
  74. package/dist/bundle/command-contract-DPXM4SZT.js +33 -0
  75. package/dist/bundle/{decode-7U4SXPAN.js → decode-W6YPTGJA.js} +7 -6
  76. package/dist/bundle/dispatch-H7EFNBEH.js +411 -0
  77. package/dist/bundle/{echarts-GKEZEAL7.js → echarts-YAWDIC5D.js} +2 -2
  78. package/dist/bundle/{embed-IDZDQMSW.js → embed-EN4UTLV5.js} +6 -5
  79. package/dist/bundle/{embedder-RY5R2PGO.js → embedder-HEKHRL7E.js} +11 -10
  80. package/dist/bundle/{entry-P6YZ3ZV6.js → entry-2KB6MTCG.js} +7 -6
  81. package/dist/bundle/failure-3DU3HLBQ.js +24 -0
  82. package/dist/bundle/first-run-LBG26WWO.js +27 -0
  83. package/dist/bundle/first-screen-TGTSLUI6.js +31 -0
  84. package/dist/bundle/{instructions-P5E34PQR.js → instructions-HA62QNPR.js} +1 -1
  85. package/dist/bundle/{mcp-FUSDPAOL.js → mcp-PPVOM4SE.js} +5 -3
  86. package/dist/bundle/{node-GKPRXS5Y.js → node-MZ2VWSQQ.js} +2 -2
  87. package/dist/bundle/{node-sqlite-VUXFVPJ6.js → node-sqlite-KNNS6DCM.js} +6 -5
  88. package/dist/bundle/{oauth-7SQIPMOY.js → oauth-KWUABBSQ.js} +7 -6
  89. package/dist/bundle/{open-W3BN2SIO.js → open-JXMCYCIV.js} +5 -4
  90. package/dist/bundle/{openai-LQTK3ZMC.js → openai-HL3IR4VT.js} +15 -14
  91. package/dist/bundle/{process-U2P5Z6UF.js → process-K2FICLWY.js} +1 -1
  92. package/dist/bundle/{program-DIPSLR6O.js → program-IFOMT4JS.js} +70 -57
  93. package/dist/bundle/{prompt-GESHKSM5.js → prompt-HVD3Q77P.js} +5 -4
  94. package/dist/bundle/{proxy-transport-C2EUUT32.js → proxy-transport-PA5SGMRY.js} +5 -4
  95. package/dist/bundle/{recognize-FEQTIJET.js → recognize-HHLVETKI.js} +4 -3
  96. package/dist/bundle/{remote-UXOPBPKS.js → remote-HUAKXJCS.js} +7 -6
  97. package/dist/bundle/{rerank-L4JM4REK.js → rerank-NWFIV7OF.js} +7 -6
  98. package/dist/bundle/{serve-DDWW44DB.js → serve-ANUKAJJN.js} +10 -9
  99. package/dist/bundle/{server-UTWBIZHB.js → server-7Q7WAOHO.js} +37 -34
  100. package/dist/bundle/server-HCQS4YDQ.js +60 -0
  101. package/dist/bundle/{state-EV7FGEK4.js → state-Y2AJ5XTP.js} +6 -5
  102. package/dist/bundle/{store-EXBUF4OG.js → store-S3IG5KWL.js} +15 -11
  103. package/dist/bundle/store-maintenance-command-V2WC4G6J.js +50 -0
  104. package/dist/bundle/tg.js +159 -14
  105. package/dist/commands/session.d.ts.map +1 -1
  106. package/dist/commands/session.js +7 -0
  107. package/dist/commands/session.js.map +1 -1
  108. package/dist/telegram/login.d.ts +2 -0
  109. package/dist/telegram/login.d.ts.map +1 -1
  110. package/dist/telegram/login.js +31 -2
  111. package/dist/telegram/login.js.map +1 -1
  112. package/dist/version.d.ts +1 -1
  113. package/dist/version.js +1 -1
  114. package/package.json +5 -4
  115. package/skills/tg-cli/SKILL.md +2 -0
  116. package/dist/bundle/chunk-TRRRRGMI.js +0 -18
  117. package/dist/bundle/command-contract-SOTDPG22.js +0 -31
  118. package/dist/bundle/first-run-66KTCVQK.js +0 -24
  119. package/dist/bundle/first-screen-NY46X6QU.js +0 -29
  120. package/dist/bundle/identity-GXVKGCNU.js +0 -11
  121. package/dist/bundle/server-ZI7WDAW6.js +0 -56
  122. package/dist/bundle/store-maintenance-command-UBZE2Z6T.js +0 -46
  123. /package/dist/bundle/{chunk-NUN6OGOV.js → chunk-LU3WKZBA.js} +0 -0
@@ -2,72 +2,73 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  TELEGRAM_BOT
5
- } from "./chunk-YQ64ZNLD.js";
5
+ } from "./chunk-4D5AUWAY.js";
6
6
  import {
7
7
  BotTokenStore,
8
- ChatRegistry,
9
8
  apiPlainJson,
10
9
  botContext,
11
10
  checkApiBody,
12
11
  checkApiParameter,
13
12
  generatedApiCommand,
14
13
  prepareRpcApiBody
15
- } from "./chunk-TKNCJMYN.js";
16
- import "./chunk-WOQGUIXE.js";
17
- import "./chunk-E2IRSRTB.js";
18
- import "./chunk-Y3AQHPAJ.js";
19
- import "./chunk-C7K7AP6G.js";
20
- import "./chunk-3R43O3GG.js";
21
- import "./chunk-VHO66SMY.js";
22
- import "./chunk-WIRDTH3J.js";
14
+ } from "./chunk-YYKJN6H5.js";
15
+ import "./chunk-DP5LRU7K.js";
16
+ import "./chunk-B4UOCWM4.js";
17
+ import "./chunk-BGMV66FC.js";
18
+ import "./chunk-H72UEHNG.js";
19
+ import "./chunk-JFTCOV37.js";
20
+ import "./chunk-XQUTJITP.js";
21
+ import "./chunk-HUOXUI2M.js";
23
22
  import {
24
23
  newOperationId,
25
24
  readUpload,
26
25
  uploadBytes
27
- } from "./chunk-4JOKO4IW.js";
28
- import "./chunk-IN25CJ3D.js";
29
- import "./chunk-DQQEN3X4.js";
30
- import "./chunk-M3IWROIF.js";
26
+ } from "./chunk-FDI4GOIP.js";
27
+ import "./chunk-4IQZRW4O.js";
28
+ import "./chunk-K2RYCCTP.js";
29
+ import "./chunk-LXH3SKY3.js";
31
30
  import "./chunk-2ABQZVK4.js";
32
- import "./chunk-P4YBABUC.js";
31
+ import "./chunk-GV7ZJ33M.js";
33
32
  import {
33
+ ChatRegistry,
34
34
  DEFAULT_PERMISSIONS,
35
35
  guardedWrite,
36
36
  levelFor,
37
37
  overrideSharedContract,
38
38
  ownerOnlyOption
39
- } from "./chunk-AL36NHO6.js";
40
- import "./chunk-5HKMEXVQ.js";
41
- import "./chunk-YPABTT7A.js";
42
- import "./chunk-NKP3RUM4.js";
43
- import "./chunk-KZQXOZFC.js";
44
- import "./chunk-LPUFOWL3.js";
45
- import "./chunk-TTTDZOBW.js";
46
- import "./chunk-CS5DQ6KM.js";
47
- import "./chunk-C34IDOA5.js";
48
- import "./chunk-NUVBC3LJ.js";
49
- import "./chunk-ALHKUQDZ.js";
50
- import "./chunk-NTF34HJP.js";
51
- import "./chunk-KIZT2MI6.js";
52
- import "./chunk-RBC7JQ4Y.js";
53
- import "./chunk-QCXYJKPF.js";
54
- import "./chunk-Y4LCSCSH.js";
55
- import "./chunk-MQTTVQ3V.js";
56
- import "./chunk-HA35XN2Z.js";
57
- import "./chunk-7FOT4XD2.js";
58
- import "./chunk-I6BKSGZQ.js";
59
- import "./chunk-OFDMD3YF.js";
60
- import "./chunk-NMVFFWF2.js";
61
- import "./chunk-NUN6OGOV.js";
62
- import "./chunk-TRRRRGMI.js";
63
- import "./chunk-XDOPONC3.js";
64
- import "./chunk-L4CMCC3V.js";
65
- import "./chunk-O7CBGHI7.js";
66
- import "./chunk-3EZ43DAF.js";
67
- import "./chunk-ULFTCR5W.js";
68
- import "./chunk-34USFPBF.js";
39
+ } from "./chunk-LFKEKSI5.js";
40
+ import "./chunk-ZDIAPICE.js";
41
+ import "./chunk-JJMQA272.js";
42
+ import "./chunk-SD5PUYKF.js";
43
+ import "./chunk-PPLFOIYX.js";
44
+ import "./chunk-YPF6OS37.js";
45
+ import "./chunk-PPSUA3IZ.js";
46
+ import "./chunk-5VFPUOJO.js";
47
+ import "./chunk-TZVL4U7U.js";
48
+ import "./chunk-PXMHBTK3.js";
49
+ import "./chunk-HK6SIIGG.js";
50
+ import "./chunk-N6TIFJHW.js";
51
+ import "./chunk-LSKGCJWD.js";
52
+ import "./chunk-QGL2UGML.js";
53
+ import "./chunk-SKZ2E3WC.js";
54
+ import "./chunk-IR4S7POE.js";
55
+ import "./chunk-VQPLHOVQ.js";
56
+ import "./chunk-UCSFO5GW.js";
57
+ import "./chunk-NUYRMU56.js";
58
+ import "./chunk-I6JF43YP.js";
59
+ import "./chunk-MQ7MCVZV.js";
60
+ import "./chunk-577MFPCP.js";
61
+ import "./chunk-NL3PAFAE.js";
62
+ import "./chunk-T7CDLV33.js";
63
+ import "./chunk-RSDIPQXP.js";
64
+ import "./chunk-HLNYJPAB.js";
65
+ import "./chunk-KV4267S4.js";
66
+ import "./chunk-LU3WKZBA.js";
67
+ import "./chunk-D72URWJE.js";
68
+ import "./chunk-RSNGMNU5.js";
69
+ import "./chunk-Y6VWGJ4Q.js";
70
+ import "./chunk-OX6EWGSG.js";
69
71
  import {
70
- CliError,
71
72
  array,
72
73
  boolean,
73
74
  check,
@@ -81,8 +82,12 @@ import {
81
82
  string,
82
83
  transform,
83
84
  union
84
- } from "./chunk-EARO464A.js";
85
+ } from "./chunk-76CX2YPT.js";
85
86
  import "./chunk-Y5E2WNWB.js";
87
+ import {
88
+ CliError
89
+ } from "./chunk-EB2IULWB.js";
90
+ import "./chunk-5FCONCJO.js";
86
91
  import {
87
92
  __name
88
93
  } from "./chunk-ZVVMGPBJ.js";
@@ -34546,7 +34551,7 @@ If you'd like to make sure that the webhook was set by you, you can specify secr
34546
34551
  }
34547
34552
  ];
34548
34553
 
34549
- // 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/codegen/runtime.js
34554
+ // node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/codegen/runtime.js
34550
34555
  var isLossless = /* @__PURE__ */ __name((input) => typeof input === "object" && input !== null && input.isLosslessNumber === true && typeof input.value === "string", "isLossless");
34551
34556
  var INTEGER = /^-?\d+$/;
34552
34557
  var INT64_MIN = -(2n ** 63n);
@@ -5,28 +5,30 @@ import {
5
5
  toCliError,
6
6
  toHistoryChannel,
7
7
  toHistoryMessages
8
- } from "./chunk-NJ2I4KFZ.js";
8
+ } from "./chunk-R52RMHWF.js";
9
9
  import {
10
10
  proxiedTransport
11
- } from "./chunk-ZFMOPKPT.js";
12
- import "./chunk-E2IRSRTB.js";
13
- import "./chunk-DQQEN3X4.js";
14
- import "./chunk-5HKMEXVQ.js";
15
- import "./chunk-7FOT4XD2.js";
16
- import "./chunk-I6BKSGZQ.js";
17
- import "./chunk-OFDMD3YF.js";
18
- import "./chunk-NMVFFWF2.js";
19
- import "./chunk-NUN6OGOV.js";
20
- import "./chunk-TRRRRGMI.js";
21
- import "./chunk-XDOPONC3.js";
22
- import "./chunk-L4CMCC3V.js";
23
- import "./chunk-O7CBGHI7.js";
24
- import "./chunk-34USFPBF.js";
11
+ } from "./chunk-5ZIBAYIZ.js";
12
+ import "./chunk-B4UOCWM4.js";
13
+ import "./chunk-K2RYCCTP.js";
14
+ import "./chunk-ZDIAPICE.js";
15
+ import "./chunk-LSKGCJWD.js";
16
+ import "./chunk-QGL2UGML.js";
17
+ import "./chunk-SKZ2E3WC.js";
18
+ import "./chunk-IR4S7POE.js";
19
+ import "./chunk-VQPLHOVQ.js";
20
+ import "./chunk-RSDIPQXP.js";
21
+ import "./chunk-LU3WKZBA.js";
22
+ import "./chunk-RSNGMNU5.js";
23
+ import "./chunk-Y6VWGJ4Q.js";
24
+ import "./chunk-OX6EWGSG.js";
25
+ import "./chunk-76CX2YPT.js";
26
+ import "./chunk-Y5E2WNWB.js";
25
27
  import {
26
28
  CliError,
27
29
  isCliError
28
- } from "./chunk-EARO464A.js";
29
- import "./chunk-Y5E2WNWB.js";
30
+ } from "./chunk-EB2IULWB.js";
31
+ import "./chunk-5FCONCJO.js";
30
32
  import {
31
33
  __name
32
34
  } from "./chunk-ZVVMGPBJ.js";
@@ -18,12 +18,12 @@ import {
18
18
  jitCompatCheck,
19
19
  refineSqliteCodecs,
20
20
  sql
21
- } from "./chunk-O7CBGHI7.js";
21
+ } from "./chunk-5FCONCJO.js";
22
22
  import {
23
23
  __name
24
24
  } from "./chunk-ZVVMGPBJ.js";
25
25
 
26
- // 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/store/sqlite/drizzle/bun.js
26
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.77.1_commander@15._f1cdf35b93ce465cee2c32ebaca13ce7/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/bun.js
27
27
  import { Database } from "bun:sqlite";
28
28
  var bunSQLiteCodecs = refineSqliteCodecs({
29
29
  "integer:boolean": { normalize: booleanFromInteger },
@@ -3,17 +3,18 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  loadVectorExtension,
5
5
  vectorExtension
6
- } from "./chunk-6SPLZI5P.js";
7
- import "./chunk-34USFPBF.js";
8
- import "./chunk-EARO464A.js";
6
+ } from "./chunk-KA6EGOJY.js";
7
+ import "./chunk-OX6EWGSG.js";
8
+ import "./chunk-76CX2YPT.js";
9
9
  import {
10
10
  importFrom
11
11
  } from "./chunk-Y5E2WNWB.js";
12
+ import "./chunk-EB2IULWB.js";
12
13
  import {
13
14
  __name
14
15
  } from "./chunk-ZVVMGPBJ.js";
15
16
 
16
- // 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/store/drivers/bun-sqlite.js
17
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.77.1_commander@15._f1cdf35b93ce465cee2c32ebaca13ce7/node_modules/@wirecat/cli-core/dist/store/drivers/bun-sqlite.js
17
18
  var customised = false;
18
19
  var ownLibrary = /* @__PURE__ */ __name(async () => {
19
20
  try {
@@ -29,7 +29,7 @@ import {
29
29
  agentOf,
30
30
  clientHash,
31
31
  currentCaller
32
- } from "./chunk-YPABTT7A.js";
32
+ } from "./chunk-JJMQA272.js";
33
33
  import {
34
34
  __name
35
35
  } from "./chunk-ZVVMGPBJ.js";
@@ -541,7 +541,7 @@ function toError(value) {
541
541
  }
542
542
  __name(toError, "toError");
543
543
 
544
- // 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/mcp/caller.js
544
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.77.1_commander@15._f1cdf35b93ce465cee2c32ebaca13ce7/node_modules/@wirecat/cli-core/dist/mcp/caller.js
545
545
  var callingAgent = /* @__PURE__ */ __name((fallback, caller = currentCaller()) => {
546
546
  const client = caller?.agent?.client?.name;
547
547
  if (client && client !== "unknown")
@@ -13,43 +13,45 @@ import {
13
13
  privateFiles,
14
14
  providerRequest,
15
15
  withSqliteSidecars
16
- } from "./chunk-TKNCJMYN.js";
16
+ } from "./chunk-YYKJN6H5.js";
17
17
  import {
18
18
  parseProxy,
19
19
  proxyAddress,
20
20
  proxyError,
21
21
  proxyLabel,
22
22
  proxySetting
23
- } from "./chunk-E2IRSRTB.js";
23
+ } from "./chunk-B4UOCWM4.js";
24
24
  import {
25
25
  messengerContext
26
- } from "./chunk-WIRDTH3J.js";
26
+ } from "./chunk-HUOXUI2M.js";
27
27
  import {
28
28
  uploadBlob
29
- } from "./chunk-4JOKO4IW.js";
29
+ } from "./chunk-FDI4GOIP.js";
30
30
  import {
31
31
  asFirstWord,
32
32
  currentAttempt,
33
33
  environmentOf,
34
34
  fromFile,
35
35
  settingsFor
36
- } from "./chunk-AL36NHO6.js";
36
+ } from "./chunk-LFKEKSI5.js";
37
37
  import {
38
38
  TG
39
- } from "./chunk-NUVBC3LJ.js";
39
+ } from "./chunk-HLNYJPAB.js";
40
40
  import {
41
41
  Credentials,
42
42
  pathsAreOverridden,
43
43
  resolvePaths
44
- } from "./chunk-34USFPBF.js";
44
+ } from "./chunk-OX6EWGSG.js";
45
45
  import {
46
- CliError,
47
- isCliError,
48
46
  optional
49
- } from "./chunk-EARO464A.js";
47
+ } from "./chunk-76CX2YPT.js";
50
48
  import {
51
49
  importFrom
52
50
  } from "./chunk-Y5E2WNWB.js";
51
+ import {
52
+ CliError,
53
+ isCliError
54
+ } from "./chunk-EB2IULWB.js";
53
55
  import {
54
56
  __name
55
57
  } from "./chunk-ZVVMGPBJ.js";
@@ -179,7 +181,7 @@ var telegramOf = /* @__PURE__ */ __name((command, base) => {
179
181
  throw new CliError(temporary ? "provider_unavailable" : "authentication_error", loggedIn ? `no Telegram app credentials found for profile "${profile}", although it has logged in on this machine \u2014 the keyring is probably out of reach (cron, ssh, an MCP client that trims the environment: set XDG_RUNTIME_DIR); \`tg ${asFirstWord(profile)}doctor\` shows it. Log in again only if they were removed` : `no Telegram app credentials for profile "${profile}" \u2014 run ${setup} in a local terminal first, or sign in from ${desktop}; agents: read \`tg skill show\``, temporary ? { reason: "credentials.unreachable" } : {});
180
182
  }
181
183
  const options = { credentials: resolved, sessionPath, ...connecting };
182
- return environment.adapter ? await environment.adapter(options) : await (await import("./adapter-YAEHX3QB.js")).TelegramAdapter.open({
184
+ return environment.adapter ? await environment.adapter(options) : await (await import("./adapter-6CLMTQOV.js")).TelegramAdapter.open({
183
185
  ...options,
184
186
  ...proxyOption(proxy()),
185
187
  diagnostic: /* @__PURE__ */ __name((line) => base.streams.diagnostic(line), "diagnostic"),
@@ -716,7 +718,18 @@ var TelegramBotTransport = class {
716
718
  * anyone. `file` goes up in the same request, as multipart: Telegram has no upload step of its own.
717
719
  * `timeoutMs` replaces the transport's for one call — a long poll waits longer than any other request.
718
720
  */
719
- async call(method, params = {}, { reads = true, file, files = [], body, secrets = [], timeoutMs = this.#timeoutMs } = {}) {
721
+ async call(method, params = {}, options = {}) {
722
+ const timeoutMs = options.timeoutMs ?? this.#timeoutMs;
723
+ const deadline = new AbortController();
724
+ const timer = setTimeout(() => deadline.abort(new DOMException(`${method} timed out`, "TimeoutError")), timeoutMs);
725
+ timer.unref();
726
+ try {
727
+ return await this.#send(method, params, { ...options, timeoutMs }, deadline.signal);
728
+ } finally {
729
+ clearTimeout(timer);
730
+ }
731
+ }
732
+ async #send(method, params, { reads = true, file, files = [], body, secrets = [], timeoutMs = this.#timeoutMs }, deadline) {
720
733
  const end = providerRequest(method, this.#events ?? (() => {
721
734
  }), {
722
735
  method: "POST",
@@ -725,7 +738,7 @@ var TelegramBotTransport = class {
725
738
  // A rate-limit retry is made above the transport (cli-core's `patiently`), which names the attempt itself.
726
739
  ...currentAttempt() ? {} : { attempt: 1 }
727
740
  });
728
- const signals = [AbortSignal.timeout(timeoutMs), ...this.#signal ? [this.#signal] : []];
741
+ const signals = [deadline, ...this.#signal ? [this.#signal] : []];
729
742
  let response;
730
743
  try {
731
744
  response = await this.#fetch(`${this.#baseUrl}/bot${this.#token}/${method}`, {
@@ -865,7 +878,7 @@ var TELEGRAM_BOT = {
865
878
  const botId = token.split(":", 1)[0] ?? "";
866
879
  if (!/^\d+$/.test(botId))
867
880
  throw new CliError("authentication_error", "the bot token has no valid bot id");
868
- const reader = await (environment.botHistory ?? (await import("./bot-history-PRAOZEWC.js")).openBotHistory)({
881
+ const reader = await (environment.botHistory ?? (await import("./bot-history-G6CRVCL2.js")).openBotHistory)({
869
882
  credentials,
870
883
  sessionPath: botSessionFile(profile, botId, env),
871
884
  token,
@@ -885,7 +898,7 @@ var TELEGRAM_BOT = {
885
898
  return void 0;
886
899
  let personal;
887
900
  try {
888
- personal = environment.adapter ? await environment.adapter({ credentials, sessionPath: personalPath }) : await (await import("./adapter-YAEHX3QB.js")).TelegramAdapter.open({
901
+ personal = environment.adapter ? await environment.adapter({ credentials, sessionPath: personalPath }) : await (await import("./adapter-6CLMTQOV.js")).TelegramAdapter.open({
889
902
  credentials,
890
903
  sessionPath: personalPath,
891
904
  checks: words,
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  CliError
5
- } from "./chunk-EARO464A.js";
5
+ } from "./chunk-EB2IULWB.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // 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/files/ordinary-file.js
10
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.77.1_commander@15._f1cdf35b93ce465cee2c32ebaca13ce7/node_modules/@wirecat/cli-core/dist/files/ordinary-file.js
11
11
  import { constants } from "node:fs";
12
12
  import { lstat, open } from "node:fs/promises";
13
13
  var deviceOf = /* @__PURE__ */ __name((dev) => process.platform === "win32" ? BigInt.asUintN(32, dev) : dev, "deviceOf");
@@ -73,7 +73,7 @@ var syncDirectory = /* @__PURE__ */ __name(async (path) => {
73
73
  }
74
74
  }, "syncDirectory");
75
75
 
76
- // 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/files/atomic-write.js
76
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.77.1_commander@15._f1cdf35b93ce465cee2c32ebaca13ce7/node_modules/@wirecat/cli-core/dist/files/atomic-write.js
77
77
  import { randomUUID } from "node:crypto";
78
78
  import { constants as constants2 } from "node:fs";
79
79
  import { link, open as open2, realpath, rename, unlink } from "node:fs/promises";
@@ -111,7 +111,7 @@ var writeFileAtomic = /* @__PURE__ */ __name(async (path, content, { mode = 384,
111
111
  }
112
112
  }, "writeFileAtomic");
113
113
 
114
- // 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/files/bounded-utf8.js
114
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.77.1_commander@15._f1cdf35b93ce465cee2c32ebaca13ce7/node_modules/@wirecat/cli-core/dist/files/bounded-utf8.js
115
115
  var readBoundedUtf8File = /* @__PURE__ */ __name(async (path, { maxBytes }) => {
116
116
  if (!Number.isSafeInteger(maxBytes) || maxBytes < 1 || maxBytes > 16 * 1024 * 1024)
117
117
  throw new CliError("validation_error", "file maxBytes takes 1\u201316777216 bytes");
@@ -140,21 +140,21 @@ var readBoundedUtf8File = /* @__PURE__ */ __name(async (path, { maxBytes }) => {
140
140
  }
141
141
  }, "readBoundedUtf8File");
142
142
 
143
- // 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/files/lock.js
143
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.77.1_commander@15._f1cdf35b93ce465cee2c32ebaca13ce7/node_modules/@wirecat/cli-core/dist/files/lock.js
144
144
  import { mkdir as mkdir2 } from "node:fs/promises";
145
145
  import { basename as basename2, dirname as dirname2 } from "node:path";
146
146
 
147
- // 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/files/native-writer-lease.js
147
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.77.1_commander@15._f1cdf35b93ce465cee2c32ebaca13ce7/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
148
148
  import { randomUUID as randomUUID2 } from "node:crypto";
149
149
  import { lstat as lstat3, mkdir, open as open3, realpath as realpath3, rmdir as rmdir2, unlink as unlink4 } from "node:fs/promises";
150
150
  import { hostname as hostname2 } from "node:os";
151
151
  import { join as join3 } from "node:path";
152
152
 
153
- // 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/files/native-lease-inspection.js
153
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.77.1_commander@15._f1cdf35b93ce465cee2c32ebaca13ce7/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
154
154
  import { lstat as lstat2, readdir, realpath as realpath2, unlink as unlink2 } from "node:fs/promises";
155
155
  import { join as join2 } from "node:path";
156
156
 
157
- // 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/files/native-lease-owner.js
157
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.77.1_commander@15._f1cdf35b93ce465cee2c32ebaca13ce7/node_modules/@wirecat/cli-core/dist/files/native-lease-owner.js
158
158
  import { hostname } from "node:os";
159
159
  var missingLeaseFile = /* @__PURE__ */ __name((error) => typeof error === "object" && error !== null && "code" in error && error.code === "ENOENT", "missingLeaseFile");
160
160
  var readLeaseOwner = /* @__PURE__ */ __name(async (path, name, signal) => {
@@ -199,7 +199,7 @@ var leaseOwnerStatus = /* @__PURE__ */ __name((owner) => {
199
199
  }
200
200
  }, "leaseOwnerStatus");
201
201
 
202
- // 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/files/native-lease-inspection.js
202
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.77.1_commander@15._f1cdf35b93ce465cee2c32ebaca13ce7/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
203
203
  var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
204
204
  const inspect = /* @__PURE__ */ __name(async (destination, options = {}) => {
205
205
  options.signal?.throwIfAborted();
@@ -258,7 +258,7 @@ var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
258
258
  return { inspect, recover };
259
259
  }, "leaseInspection");
260
260
 
261
- // 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/files/native-lease-release.js
261
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.77.1_commander@15._f1cdf35b93ce465cee2c32ebaca13ce7/node_modules/@wirecat/cli-core/dist/files/native-lease-release.js
262
262
  import { rmdir, unlink as unlink3 } from "node:fs/promises";
263
263
  var ownedNativeLease = /* @__PURE__ */ __name((path, name, owner, folder, identity) => {
264
264
  let releasing;
@@ -283,7 +283,7 @@ var ownedNativeLease = /* @__PURE__ */ __name((path, name, owner, folder, identi
283
283
  };
284
284
  }, "ownedNativeLease");
285
285
 
286
- // 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/files/native-writer-lease.js
286
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.77.1_commander@15._f1cdf35b93ce465cee2c32ebaca13ce7/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
287
287
  var validName = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length > 0 && value !== "." && value !== ".." && !/[\\/\0:]/.test(value), "validName");
288
288
  var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
289
289
  const { markerDirectory, legacyMarker } = layout;
@@ -354,7 +354,7 @@ var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
354
354
  };
355
355
  }, "nativeWriterLeaseStore");
356
356
 
357
- // 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/files/lock.js
357
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.77.1_commander@15._f1cdf35b93ce465cee2c32ebaca13ce7/node_modules/@wirecat/cli-core/dist/files/lock.js
358
358
  var acquireLock = /* @__PURE__ */ __name(async (path, { signal } = {}) => {
359
359
  const folder = dirname2(path);
360
360
  await mkdir2(folder, { recursive: true, mode: 448 });
@@ -369,7 +369,7 @@ var acquireLock = /* @__PURE__ */ __name(async (path, { signal } = {}) => {
369
369
  });
370
370
  }, "acquireLock");
371
371
 
372
- // 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/files/safe-name.js
372
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.77.1_commander@15._f1cdf35b93ce465cee2c32ebaca13ce7/node_modules/@wirecat/cli-core/dist/files/safe-name.js
373
373
  import { basename as basename3 } from "node:path";
374
374
  var safeName = /* @__PURE__ */ __name((name, platform = process.platform) => {
375
375
  let plain = name === void 0 ? "" : basename3(name.replaceAll("\\", "/")).replace(/[\p{Cc}​-‏‪-‮⁦-⁩]/gu, "").replace(/^\.+/, "");
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  unit
5
- } from "./chunk-MQTTVQ3V.js";
5
+ } from "./chunk-NL3PAFAE.js";
6
6
  import {
7
7
  CliError
8
- } from "./chunk-EARO464A.js";
8
+ } from "./chunk-EB2IULWB.js";
9
9
  import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // 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/embeddings/remote.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.77.1_commander@15._f1cdf35b93ce465cee2c32ebaca13ce7/node_modules/@wirecat/cli-core/dist/embeddings/remote.js
14
14
  import { setTimeout } from "node:timers/promises";
15
15
  var OPENAI_URL = "https://api.openai.com/v1";
16
16
  var OPENAI_MODELS = {
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // 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/store/sqlite/drizzle/shared-55XJMTPA.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.77.1_commander@15._f1cdf35b93ce465cee2c32ebaca13ce7/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/shared-55XJMTPA.js
8
8
  var entityKind = /* @__PURE__ */ Symbol.for("drizzle:entityKind");
9
9
  var kindsByConstructor = /* @__PURE__ */ new WeakMap();
10
10
  function collectKinds(ctor) {
@@ -3,28 +3,28 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  envName,
5
5
  readOnlyLockOf
6
- } from "./chunk-C34IDOA5.js";
6
+ } from "./chunk-TZVL4U7U.js";
7
7
  import {
8
8
  CAPABILITY_STATEMENTS,
9
9
  storeCapable
10
- } from "./chunk-XDOPONC3.js";
10
+ } from "./chunk-RSNGMNU5.js";
11
11
  import {
12
12
  catchCrashes
13
- } from "./chunk-34USFPBF.js";
14
- import {
15
- CliError
16
- } from "./chunk-EARO464A.js";
13
+ } from "./chunk-76CX2YPT.js";
17
14
  import {
18
15
  importFrom
19
16
  } from "./chunk-Y5E2WNWB.js";
17
+ import {
18
+ CliError
19
+ } from "./chunk-EB2IULWB.js";
20
20
  import {
21
21
  __name
22
22
  } from "./chunk-ZVVMGPBJ.js";
23
23
 
24
- // 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/cli/entry.js
24
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.77.1_commander@15._f1cdf35b93ce465cee2c32ebaca13ce7/node_modules/@wirecat/cli-core/dist/cli/entry.js
25
25
  import { spawn as spawn2 } from "node:child_process";
26
26
 
27
- // 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/sqlite-runtime.js
27
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.77.1_commander@15._f1cdf35b93ce465cee2c32ebaca13ce7/node_modules/@wirecat/cli-core/dist/sqlite-runtime.js
28
28
  import { spawn, spawnSync } from "node:child_process";
29
29
  import { readFileSync } from "node:fs";
30
30
  import { dirname } from "node:path";
@@ -112,7 +112,7 @@ var relay = /* @__PURE__ */ __name((child, host = process) => new Promise(() =>
112
112
  });
113
113
  }), "relay");
114
114
 
115
- // 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/cli/argv-log.js
115
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.77.1_commander@15._f1cdf35b93ce465cee2c32ebaca13ce7/node_modules/@wirecat/cli-core/dist/cli/argv-log.js
116
116
  import { appendFileSync } from "node:fs";
117
117
  var logParsedArgv = /* @__PURE__ */ __name((file, action) => {
118
118
  const words = [];
@@ -136,7 +136,7 @@ var logVersion = /* @__PURE__ */ __name((file) => {
136
136
  `);
137
137
  }, "logVersion");
138
138
 
139
- // 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/cli/entry.js
139
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.77.1_commander@15._f1cdf35b93ce465cee2c32ebaca13ce7/node_modules/@wirecat/cli-core/dist/cli/entry.js
140
140
  var processIo = /* @__PURE__ */ __name(() => ({
141
141
  argv: process.argv,
142
142
  env: process.env,
@@ -190,8 +190,8 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
190
190
  if (command.optsWithGlobals().dryRun === true)
191
191
  return;
192
192
  const [{ setupAtStart }, { commandPathOf }] = await Promise.all([
193
- import("./first-run-66KTCVQK.js"),
194
- import("./command-contract-SOTDPG22.js")
193
+ import("./first-run-LBG26WWO.js"),
194
+ import("./command-contract-DPXM4SZT.js")
195
195
  ]);
196
196
  await setupAtStart({
197
197
  command: entry.app.command,
@@ -206,7 +206,7 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
206
206
  ask: /* @__PURE__ */ __name(async (question, command) => {
207
207
  if (headless(command) || io.stdin.isTTY !== true)
208
208
  return false;
209
- const { readSecret } = await import("./prompt-GESHKSM5.js");
209
+ const { readSecret } = await import("./prompt-HVD3Q77P.js");
210
210
  const answer = await readSecret(`${question} [y/N] `, {
211
211
  input: io.stdin,
212
212
  output: io.stderr,
@@ -215,7 +215,10 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
215
215
  });
216
216
  return /^(y|yes)$/i.test(answer.trim());
217
217
  }, "ask"),
218
- openBrowser: /* @__PURE__ */ __name((url, browser) => openBrowser(url, browser, io), "openBrowser"),
218
+ openBrowser: /* @__PURE__ */ __name(async (url, browser, command) => {
219
+ if (!headless(command))
220
+ await openBrowser(url, browser, io);
221
+ }, "openBrowser"),
219
222
  outputClosed: /* @__PURE__ */ __name(() => closed, "outputClosed")
220
223
  };
221
224
  let code;
@@ -3,10 +3,10 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  proxyError,
5
5
  proxyLabel
6
- } from "./chunk-E2IRSRTB.js";
6
+ } from "./chunk-B4UOCWM4.js";
7
7
  import {
8
8
  CliError
9
- } from "./chunk-EARO464A.js";
9
+ } from "./chunk-EB2IULWB.js";
10
10
  import {
11
11
  __name
12
12
  } from "./chunk-ZVVMGPBJ.js";