@wirecat/tg-cli 0.115.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 (118) hide show
  1. package/dist/bin/tg.js +2 -2
  2. package/dist/bot/transport.d.ts +10 -8
  3. package/dist/bot/transport.d.ts.map +1 -1
  4. package/dist/bot/transport.js +16 -2
  5. package/dist/bot/transport.js.map +1 -1
  6. package/dist/bundle/{adapter-ODK7R4LY.js → adapter-6CLMTQOV.js} +76 -50
  7. package/dist/bundle/{all-profiles-AQYM65BS.js → all-profiles-R2UZMH24.js} +10 -9
  8. package/dist/bundle/{anthropic-VBDSVNIM.js → anthropic-QKIPHV2Z.js} +6 -6
  9. package/dist/bundle/{app-server-YOIHLBNS.js → app-server-AZB2MFK6.js} +43 -42
  10. package/dist/bundle/{bot-api-TRYLGQKK.js → bot-api-2IM243J4.js} +50 -49
  11. package/dist/bundle/{bot-history-7DTJLBBJ.js → bot-history-G6CRVCL2.js} +18 -17
  12. package/dist/bundle/{bun-XIMM6EHD.js → bun-JDKPISPX.js} +2 -2
  13. package/dist/bundle/{bun-sqlite-6B3BL5IV.js → bun-sqlite-X5PY5IQT.js} +5 -5
  14. package/dist/bundle/{chunk-XY7IGVVS.js → chunk-42GK3XRS.js} +2 -2
  15. package/dist/bundle/{chunk-PEKTB3FQ.js → chunk-4D5AUWAY.js} +25 -14
  16. package/dist/bundle/{chunk-XIYRHIBK.js → chunk-4IQZRW4O.js} +13 -13
  17. package/dist/bundle/{chunk-DIABP7ZP.js → chunk-577MFPCP.js} +3 -3
  18. package/dist/bundle/{chunk-O7CBGHI7.js → chunk-5FCONCJO.js} +1 -1
  19. package/dist/bundle/{chunk-GX4DMI4H.js → chunk-5VFPUOJO.js} +15 -12
  20. package/dist/bundle/{chunk-5ROWSRK7.js → chunk-5ZIBAYIZ.js} +2 -2
  21. package/dist/bundle/{chunk-77M3IAVU.js → chunk-76CX2YPT.js} +27 -8
  22. package/dist/bundle/{chunk-MUZ4KYGY.js → chunk-B4UOCWM4.js} +2 -2
  23. package/dist/bundle/{chunk-Y3AQHPAJ.js → chunk-BGMV66FC.js} +1 -1
  24. package/dist/bundle/{chunk-WOQGUIXE.js → chunk-DP5LRU7K.js} +1 -1
  25. package/dist/bundle/{chunk-CCHHEMPM.js → chunk-EB2IULWB.js} +3 -2
  26. package/dist/bundle/{chunk-IUDIRZVU.js → chunk-FDI4GOIP.js} +890 -473
  27. package/dist/bundle/{chunk-AICS3TSF.js → chunk-GV7ZJ33M.js} +4 -4
  28. package/dist/bundle/{chunk-WMG4IGEB.js → chunk-H72UEHNG.js} +66 -33
  29. package/dist/bundle/{chunk-HZKWB6WS.js → chunk-HBUJNNZD.js} +28 -28
  30. package/dist/bundle/{chunk-GCFU6WBE.js → chunk-HK6SIIGG.js} +3 -3
  31. package/dist/bundle/{chunk-BIEBJLYO.js → chunk-HLNYJPAB.js} +2 -2
  32. package/dist/bundle/{chunk-PZAEI4NM.js → chunk-HUOXUI2M.js} +22 -22
  33. package/dist/bundle/{chunk-TQYMLXDS.js → chunk-I6JF43YP.js} +3 -3
  34. package/dist/bundle/{chunk-OSP335AJ.js → chunk-IR4S7POE.js} +8 -8
  35. package/dist/bundle/{chunk-KDOBY524.js → chunk-JFTCOV37.js} +74 -20
  36. package/dist/bundle/{chunk-POKTQZOM.js → chunk-JJMQA272.js} +12 -89
  37. package/dist/bundle/{chunk-GWDMKEDY.js → chunk-K2RYCCTP.js} +4 -4
  38. package/dist/bundle/{chunk-RHUNMU4Q.js → chunk-K62YATVD.js} +4 -4
  39. package/dist/bundle/{chunk-UBQ3LOF6.js → chunk-KA6EGOJY.js} +2 -2
  40. package/dist/bundle/{chunk-ILHTNOIV.js → chunk-KV4267S4.js} +1 -1
  41. package/dist/bundle/{chunk-M7B5IMH3.js → chunk-LFKEKSI5.js} +1032 -298
  42. package/dist/bundle/{chunk-BPPRR7TV.js → chunk-LSKGCJWD.js} +3403 -1275
  43. package/dist/bundle/{chunk-CNO3R4O4.js → chunk-LXH3SKY3.js} +8 -8
  44. package/dist/bundle/{chunk-JZXQZW2D.js → chunk-MQ7MCVZV.js} +2 -2
  45. package/dist/bundle/{chunk-2TC76TLJ.js → chunk-N42VUNTO.js} +2 -2
  46. package/dist/bundle/{chunk-KIZT2MI6.js → chunk-N6TIFJHW.js} +1 -1
  47. package/dist/bundle/{chunk-WDNNN3J4.js → chunk-NL3PAFAE.js} +6 -6
  48. package/dist/bundle/{chunk-AVWPMJ6E.js → chunk-NUYRMU56.js} +2 -2
  49. package/dist/bundle/{chunk-NTW5ZE47.js → chunk-OX6EWGSG.js} +39 -33
  50. package/dist/bundle/{chunk-WINKEV4F.js → chunk-PPLFOIYX.js} +4 -4
  51. package/dist/bundle/{chunk-OMP6ALBT.js → chunk-PPSUA3IZ.js} +3 -3
  52. package/dist/bundle/{chunk-UY7GJRGY.js → chunk-PXMHBTK3.js} +4 -4
  53. package/dist/bundle/{chunk-VVKEWWSO.js → chunk-QAKL3GXB.js} +1 -1
  54. package/dist/bundle/{chunk-QK6VLKG5.js → chunk-QGL2UGML.js} +301 -185
  55. package/dist/bundle/{chunk-OUX3QMYI.js → chunk-QHBVGKC3.js} +45 -26
  56. package/dist/bundle/{chunk-BEQPZA3S.js → chunk-R52RMHWF.js} +2 -2
  57. package/dist/bundle/chunk-RSDIPQXP.js +35 -0
  58. package/dist/bundle/{chunk-VQCWVZWG.js → chunk-RSNGMNU5.js} +6 -6
  59. package/dist/bundle/{chunk-TMATSEP5.js → chunk-SD5PUYKF.js} +12 -12
  60. package/dist/bundle/chunk-SKZ2E3WC.js +91 -0
  61. package/dist/bundle/{chunk-PEJHI7QO.js → chunk-T7CDLV33.js} +4 -4
  62. package/dist/bundle/{chunk-D4E345BC.js → chunk-TZVL4U7U.js} +2 -2
  63. package/dist/bundle/{chunk-YCUQKFGD.js → chunk-UCSFO5GW.js} +3 -3
  64. package/dist/bundle/{chunk-A4BQGSKI.js → chunk-VQPLHOVQ.js} +6 -6
  65. package/dist/bundle/{chunk-EW3XTUPB.js → chunk-XBIPSSKI.js} +4 -4
  66. package/dist/bundle/{chunk-LUIPXRKN.js → chunk-XQUTJITP.js} +46 -46
  67. package/dist/bundle/{chunk-L4CMCC3V.js → chunk-Y6VWGJ4Q.js} +1 -1
  68. package/dist/bundle/{chunk-RFRI2HFT.js → chunk-YLRTLZF6.js} +1 -1
  69. package/dist/bundle/{chunk-PQLBPYJR.js → chunk-YPF6OS37.js} +1 -1
  70. package/dist/bundle/{chunk-U67TSAAO.js → chunk-YYKJN6H5.js} +908 -555
  71. package/dist/bundle/{chunk-WMRFAK5B.js → chunk-ZDIAPICE.js} +4 -4
  72. package/dist/bundle/command-contract-DPXM4SZT.js +33 -0
  73. package/dist/bundle/{decode-2GATBZGH.js → decode-W6YPTGJA.js} +5 -5
  74. package/dist/bundle/{dispatch-MJMW7WDH.js → dispatch-H7EFNBEH.js} +8 -8
  75. package/dist/bundle/{echarts-GKEZEAL7.js → echarts-YAWDIC5D.js} +2 -2
  76. package/dist/bundle/{embed-TBQPLA4Y.js → embed-EN4UTLV5.js} +6 -6
  77. package/dist/bundle/{embedder-B5DTNCRO.js → embedder-HEKHRL7E.js} +9 -9
  78. package/dist/bundle/{entry-A6DEW2TD.js → entry-2KB6MTCG.js} +7 -7
  79. package/dist/bundle/{failure-TLF3SISS.js → failure-3DU3HLBQ.js} +2 -2
  80. package/dist/bundle/{first-run-3N5AABEY.js → first-run-LBG26WWO.js} +11 -11
  81. package/dist/bundle/first-screen-TGTSLUI6.js +31 -0
  82. package/dist/bundle/{instructions-P5E34PQR.js → instructions-HA62QNPR.js} +1 -1
  83. package/dist/bundle/{mcp-MNI62HHE.js → mcp-PPVOM4SE.js} +2 -2
  84. package/dist/bundle/{node-GKPRXS5Y.js → node-MZ2VWSQQ.js} +2 -2
  85. package/dist/bundle/{node-sqlite-GIDPALK3.js → node-sqlite-KNNS6DCM.js} +6 -6
  86. package/dist/bundle/{oauth-C57W4IMD.js → oauth-KWUABBSQ.js} +7 -7
  87. package/dist/bundle/{open-E6Q4WRPU.js → open-JXMCYCIV.js} +5 -5
  88. package/dist/bundle/{openai-5WMXY2KP.js → openai-HL3IR4VT.js} +14 -14
  89. package/dist/bundle/{process-U2P5Z6UF.js → process-K2FICLWY.js} +1 -1
  90. package/dist/bundle/{program-FEUDU6GF.js → program-IFOMT4JS.js} +58 -50
  91. package/dist/bundle/{prompt-4NGAZGHE.js → prompt-HVD3Q77P.js} +5 -5
  92. package/dist/bundle/{proxy-transport-MGCJ7JAW.js → proxy-transport-PA5SGMRY.js} +5 -5
  93. package/dist/bundle/{recognize-EUHRBA7V.js → recognize-HHLVETKI.js} +4 -4
  94. package/dist/bundle/{remote-3JHLB2FV.js → remote-HUAKXJCS.js} +7 -7
  95. package/dist/bundle/{rerank-ZZ45SZPC.js → rerank-NWFIV7OF.js} +7 -7
  96. package/dist/bundle/{serve-XOGX5FC5.js → serve-ANUKAJJN.js} +9 -9
  97. package/dist/bundle/{server-I6O72XP5.js → server-7Q7WAOHO.js} +35 -34
  98. package/dist/bundle/server-HCQS4YDQ.js +60 -0
  99. package/dist/bundle/{state-BIUYTGH6.js → state-Y2AJ5XTP.js} +6 -6
  100. package/dist/bundle/{store-FOJFYOMR.js → store-S3IG5KWL.js} +15 -12
  101. package/dist/bundle/store-maintenance-command-V2WC4G6J.js +50 -0
  102. package/dist/bundle/tg.js +13 -13
  103. package/dist/commands/session.d.ts.map +1 -1
  104. package/dist/commands/session.js +7 -0
  105. package/dist/commands/session.js.map +1 -1
  106. package/dist/telegram/login.d.ts +2 -0
  107. package/dist/telegram/login.d.ts.map +1 -1
  108. package/dist/telegram/login.js +31 -2
  109. package/dist/telegram/login.js.map +1 -1
  110. package/dist/version.d.ts +1 -1
  111. package/dist/version.js +1 -1
  112. package/package.json +3 -3
  113. package/dist/bundle/chunk-63YKD7YA.js +0 -18
  114. package/dist/bundle/command-contract-YF4KGFXC.js +0 -32
  115. package/dist/bundle/first-screen-HANARM67.js +0 -30
  116. package/dist/bundle/server-DRE5MJ76.js +0 -59
  117. package/dist/bundle/store-maintenance-command-YKV2C34N.js +0 -49
  118. /package/dist/bundle/{chunk-NUN6OGOV.js → chunk-LU3WKZBA.js} +0 -0
@@ -2,71 +2,72 @@ 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-PEKTB3FQ.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-U67TSAAO.js";
16
- import "./chunk-WOQGUIXE.js";
17
- import "./chunk-MUZ4KYGY.js";
18
- import "./chunk-Y3AQHPAJ.js";
19
- import "./chunk-WMG4IGEB.js";
20
- import "./chunk-KDOBY524.js";
21
- import "./chunk-LUIPXRKN.js";
22
- import "./chunk-PZAEI4NM.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-IUDIRZVU.js";
28
- import "./chunk-XIYRHIBK.js";
29
- import "./chunk-GWDMKEDY.js";
30
- import "./chunk-CNO3R4O4.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-AICS3TSF.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-M7B5IMH3.js";
40
- import "./chunk-WMRFAK5B.js";
41
- import "./chunk-POKTQZOM.js";
42
- import "./chunk-TMATSEP5.js";
43
- import "./chunk-WINKEV4F.js";
44
- import "./chunk-PQLBPYJR.js";
45
- import "./chunk-OMP6ALBT.js";
46
- import "./chunk-GX4DMI4H.js";
47
- import "./chunk-D4E345BC.js";
48
- import "./chunk-UY7GJRGY.js";
49
- import "./chunk-GCFU6WBE.js";
50
- import "./chunk-KIZT2MI6.js";
51
- import "./chunk-BPPRR7TV.js";
52
- import "./chunk-QK6VLKG5.js";
53
- import "./chunk-OSP335AJ.js";
54
- import "./chunk-A4BQGSKI.js";
55
- import "./chunk-YCUQKFGD.js";
56
- import "./chunk-AVWPMJ6E.js";
57
- import "./chunk-TQYMLXDS.js";
58
- import "./chunk-JZXQZW2D.js";
59
- import "./chunk-DIABP7ZP.js";
60
- import "./chunk-WDNNN3J4.js";
61
- import "./chunk-PEJHI7QO.js";
62
- import "./chunk-63YKD7YA.js";
63
- import "./chunk-BIEBJLYO.js";
64
- import "./chunk-ILHTNOIV.js";
65
- import "./chunk-NUN6OGOV.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";
66
67
  import "./chunk-D72URWJE.js";
67
- import "./chunk-VQCWVZWG.js";
68
- import "./chunk-L4CMCC3V.js";
69
- import "./chunk-NTW5ZE47.js";
68
+ import "./chunk-RSNGMNU5.js";
69
+ import "./chunk-Y6VWGJ4Q.js";
70
+ import "./chunk-OX6EWGSG.js";
70
71
  import {
71
72
  array,
72
73
  boolean,
@@ -81,12 +82,12 @@ import {
81
82
  string,
82
83
  transform,
83
84
  union
84
- } from "./chunk-77M3IAVU.js";
85
+ } from "./chunk-76CX2YPT.js";
85
86
  import "./chunk-Y5E2WNWB.js";
86
87
  import {
87
88
  CliError
88
- } from "./chunk-CCHHEMPM.js";
89
- import "./chunk-O7CBGHI7.js";
89
+ } from "./chunk-EB2IULWB.js";
90
+ import "./chunk-5FCONCJO.js";
90
91
  import {
91
92
  __name
92
93
  } from "./chunk-ZVVMGPBJ.js";
@@ -34550,7 +34551,7 @@ If you'd like to make sure that the webhook was set by you, you can specify secr
34550
34551
  }
34551
34552
  ];
34552
34553
 
34553
- // 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
34554
34555
  var isLossless = /* @__PURE__ */ __name((input) => typeof input === "object" && input !== null && input.isLosslessNumber === true && typeof input.value === "string", "isLossless");
34555
34556
  var INTEGER = /^-?\d+$/;
34556
34557
  var INT64_MIN = -(2n ** 63n);
@@ -5,29 +5,30 @@ import {
5
5
  toCliError,
6
6
  toHistoryChannel,
7
7
  toHistoryMessages
8
- } from "./chunk-BEQPZA3S.js";
8
+ } from "./chunk-R52RMHWF.js";
9
9
  import {
10
10
  proxiedTransport
11
- } from "./chunk-5ROWSRK7.js";
12
- import "./chunk-MUZ4KYGY.js";
13
- import "./chunk-GWDMKEDY.js";
14
- import "./chunk-WMRFAK5B.js";
15
- import "./chunk-BPPRR7TV.js";
16
- import "./chunk-QK6VLKG5.js";
17
- import "./chunk-OSP335AJ.js";
18
- import "./chunk-A4BQGSKI.js";
19
- import "./chunk-63YKD7YA.js";
20
- import "./chunk-NUN6OGOV.js";
21
- import "./chunk-VQCWVZWG.js";
22
- import "./chunk-L4CMCC3V.js";
23
- import "./chunk-NTW5ZE47.js";
24
- import "./chunk-77M3IAVU.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";
25
26
  import "./chunk-Y5E2WNWB.js";
26
27
  import {
27
28
  CliError,
28
29
  isCliError
29
- } from "./chunk-CCHHEMPM.js";
30
- import "./chunk-O7CBGHI7.js";
30
+ } from "./chunk-EB2IULWB.js";
31
+ import "./chunk-5FCONCJO.js";
31
32
  import {
32
33
  __name
33
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,18 +3,18 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  loadVectorExtension,
5
5
  vectorExtension
6
- } from "./chunk-UBQ3LOF6.js";
7
- import "./chunk-NTW5ZE47.js";
8
- import "./chunk-77M3IAVU.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-CCHHEMPM.js";
12
+ import "./chunk-EB2IULWB.js";
13
13
  import {
14
14
  __name
15
15
  } from "./chunk-ZVVMGPBJ.js";
16
16
 
17
- // 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
18
18
  var customised = false;
19
19
  var ownLibrary = /* @__PURE__ */ __name(async () => {
20
20
  try {
@@ -29,7 +29,7 @@ import {
29
29
  agentOf,
30
30
  clientHash,
31
31
  currentCaller
32
- } from "./chunk-POKTQZOM.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,45 +13,45 @@ import {
13
13
  privateFiles,
14
14
  providerRequest,
15
15
  withSqliteSidecars
16
- } from "./chunk-U67TSAAO.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-MUZ4KYGY.js";
23
+ } from "./chunk-B4UOCWM4.js";
24
24
  import {
25
25
  messengerContext
26
- } from "./chunk-PZAEI4NM.js";
26
+ } from "./chunk-HUOXUI2M.js";
27
27
  import {
28
28
  uploadBlob
29
- } from "./chunk-IUDIRZVU.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-M7B5IMH3.js";
36
+ } from "./chunk-LFKEKSI5.js";
37
37
  import {
38
38
  TG
39
- } from "./chunk-BIEBJLYO.js";
39
+ } from "./chunk-HLNYJPAB.js";
40
40
  import {
41
41
  Credentials,
42
42
  pathsAreOverridden,
43
43
  resolvePaths
44
- } from "./chunk-NTW5ZE47.js";
44
+ } from "./chunk-OX6EWGSG.js";
45
45
  import {
46
46
  optional
47
- } from "./chunk-77M3IAVU.js";
47
+ } from "./chunk-76CX2YPT.js";
48
48
  import {
49
49
  importFrom
50
50
  } from "./chunk-Y5E2WNWB.js";
51
51
  import {
52
52
  CliError,
53
53
  isCliError
54
- } from "./chunk-CCHHEMPM.js";
54
+ } from "./chunk-EB2IULWB.js";
55
55
  import {
56
56
  __name
57
57
  } from "./chunk-ZVVMGPBJ.js";
@@ -181,7 +181,7 @@ var telegramOf = /* @__PURE__ */ __name((command, base) => {
181
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" } : {});
182
182
  }
183
183
  const options = { credentials: resolved, sessionPath, ...connecting };
184
- return environment.adapter ? await environment.adapter(options) : await (await import("./adapter-ODK7R4LY.js")).TelegramAdapter.open({
184
+ return environment.adapter ? await environment.adapter(options) : await (await import("./adapter-6CLMTQOV.js")).TelegramAdapter.open({
185
185
  ...options,
186
186
  ...proxyOption(proxy()),
187
187
  diagnostic: /* @__PURE__ */ __name((line) => base.streams.diagnostic(line), "diagnostic"),
@@ -718,7 +718,18 @@ var TelegramBotTransport = class {
718
718
  * anyone. `file` goes up in the same request, as multipart: Telegram has no upload step of its own.
719
719
  * `timeoutMs` replaces the transport's for one call — a long poll waits longer than any other request.
720
720
  */
721
- 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) {
722
733
  const end = providerRequest(method, this.#events ?? (() => {
723
734
  }), {
724
735
  method: "POST",
@@ -727,7 +738,7 @@ var TelegramBotTransport = class {
727
738
  // A rate-limit retry is made above the transport (cli-core's `patiently`), which names the attempt itself.
728
739
  ...currentAttempt() ? {} : { attempt: 1 }
729
740
  });
730
- const signals = [AbortSignal.timeout(timeoutMs), ...this.#signal ? [this.#signal] : []];
741
+ const signals = [deadline, ...this.#signal ? [this.#signal] : []];
731
742
  let response;
732
743
  try {
733
744
  response = await this.#fetch(`${this.#baseUrl}/bot${this.#token}/${method}`, {
@@ -867,7 +878,7 @@ var TELEGRAM_BOT = {
867
878
  const botId = token.split(":", 1)[0] ?? "";
868
879
  if (!/^\d+$/.test(botId))
869
880
  throw new CliError("authentication_error", "the bot token has no valid bot id");
870
- const reader = await (environment.botHistory ?? (await import("./bot-history-7DTJLBBJ.js")).openBotHistory)({
881
+ const reader = await (environment.botHistory ?? (await import("./bot-history-G6CRVCL2.js")).openBotHistory)({
871
882
  credentials,
872
883
  sessionPath: botSessionFile(profile, botId, env),
873
884
  token,
@@ -887,7 +898,7 @@ var TELEGRAM_BOT = {
887
898
  return void 0;
888
899
  let personal;
889
900
  try {
890
- personal = environment.adapter ? await environment.adapter({ credentials, sessionPath: personalPath }) : await (await import("./adapter-ODK7R4LY.js")).TelegramAdapter.open({
901
+ personal = environment.adapter ? await environment.adapter({ credentials, sessionPath: personalPath }) : await (await import("./adapter-6CLMTQOV.js")).TelegramAdapter.open({
891
902
  credentials,
892
903
  sessionPath: personalPath,
893
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-CCHHEMPM.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-WDNNN3J4.js";
5
+ } from "./chunk-NL3PAFAE.js";
6
6
  import {
7
7
  CliError
8
- } from "./chunk-CCHHEMPM.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-D4E345BC.js";
6
+ } from "./chunk-TZVL4U7U.js";
7
7
  import {
8
8
  CAPABILITY_STATEMENTS,
9
9
  storeCapable
10
- } from "./chunk-VQCWVZWG.js";
10
+ } from "./chunk-RSNGMNU5.js";
11
11
  import {
12
12
  catchCrashes
13
- } from "./chunk-77M3IAVU.js";
13
+ } from "./chunk-76CX2YPT.js";
14
14
  import {
15
15
  importFrom
16
16
  } from "./chunk-Y5E2WNWB.js";
17
17
  import {
18
18
  CliError
19
- } from "./chunk-CCHHEMPM.js";
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-3N5AABEY.js"),
194
- import("./command-contract-YF4KGFXC.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-4NGAZGHE.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-MUZ4KYGY.js";
6
+ } from "./chunk-B4UOCWM4.js";
7
7
  import {
8
8
  CliError
9
- } from "./chunk-CCHHEMPM.js";
9
+ } from "./chunk-EB2IULWB.js";
10
10
  import {
11
11
  __name
12
12
  } from "./chunk-ZVVMGPBJ.js";