@wirecat/tg-cli 0.119.0 → 0.121.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 (112) hide show
  1. package/contracts/wirecat.json +27 -3
  2. package/dist/bin/tg.js +2 -2
  3. package/dist/bundle/{adapter-NEQQOANM.js → adapter-GVSBFSBY.js} +62 -58
  4. package/dist/bundle/{all-profiles-QFT46FTF.js → all-profiles-CTOGU4XR.js} +10 -10
  5. package/dist/bundle/{anthropic-UJ4RYCWU.js → anthropic-7472H6ES.js} +16 -7
  6. package/dist/bundle/{app-server-NE3EL5IK.js → app-server-GZWV4NPR.js} +47 -46
  7. package/dist/bundle/{bot-api-D4H5SCP5.js → bot-api-PPVAKICN.js} +53 -50
  8. package/dist/bundle/{bot-history-KF2PUMWA.js → bot-history-7YY7MCR4.js} +18 -18
  9. package/dist/bundle/{bun-F7MH5YKA.js → bun-KCN62RMD.js} +2 -2
  10. package/dist/bundle/{bun-sqlite-FYDJXUHF.js → bun-sqlite-2BNE56MY.js} +5 -5
  11. package/dist/bundle/{chunk-23JGV5FQ.js → chunk-24DWSW6H.js} +37 -122
  12. package/dist/bundle/{chunk-6ERQJRL2.js → chunk-3E35VJME.js} +2 -2
  13. package/dist/bundle/{chunk-CX2WCEQU.js → chunk-3EGVR7OF.js} +1795 -545
  14. package/dist/bundle/{chunk-RGU2G3KL.js → chunk-3HNI6GI7.js} +4 -4
  15. package/dist/bundle/{chunk-RUNFFBJU.js → chunk-4HJCWFPN.js} +119 -107
  16. package/dist/bundle/{chunk-7C6POLLO.js → chunk-4J34T6IQ.js} +1 -1
  17. package/dist/bundle/{chunk-QG5U6HCI.js → chunk-4W4EVVL4.js} +4 -4
  18. package/dist/bundle/{chunk-6K5R3YPN.js → chunk-54KFRAHF.js} +2 -2
  19. package/dist/bundle/{chunk-ROOUBFUW.js → chunk-5P43K3GL.js} +18950 -17132
  20. package/dist/bundle/{chunk-OG2CG2GS.js → chunk-6LRKWXCS.js} +17 -17
  21. package/dist/bundle/{chunk-QD27C3BG.js → chunk-6SQAE7NM.js} +10 -8
  22. package/dist/bundle/{chunk-IAGX5VFL.js → chunk-7DPWVKYS.js} +4 -4
  23. package/dist/bundle/{chunk-5EHJWIW4.js → chunk-7I6YVQHW.js} +2 -2
  24. package/dist/bundle/{chunk-ZEQ7ONPZ.js → chunk-7MXRFFIT.js} +3 -3
  25. package/dist/bundle/{chunk-3K65KTXD.js → chunk-7UIMMQOV.js} +2 -2
  26. package/dist/bundle/{chunk-7VUNJDYU.js → chunk-AYDLA27G.js} +4 -4
  27. package/dist/bundle/{chunk-TKHEVAEG.js → chunk-BJTJBNR7.js} +8 -8
  28. package/dist/bundle/{chunk-HPQQ76WF.js → chunk-CLMRF6XR.js} +3 -3
  29. package/dist/bundle/{chunk-D6YTBJY6.js → chunk-CMEWPXKU.js} +1 -1
  30. package/dist/bundle/{chunk-DQELQ7BL.js → chunk-CPDYPZIG.js} +4525 -4753
  31. package/dist/bundle/{chunk-QQ3QZFFD.js → chunk-DAK2J3FG.js} +8 -8
  32. package/dist/bundle/{chunk-S3HAFJVC.js → chunk-DG44ORQ3.js} +86 -29
  33. package/dist/bundle/{chunk-F223KYWG.js → chunk-ESLV57MC.js} +1 -1
  34. package/dist/bundle/{chunk-TEZKCH5B.js → chunk-FATTEYZH.js} +2 -2
  35. package/dist/bundle/{chunk-4AACB23H.js → chunk-FERGNQYA.js} +13 -13
  36. package/dist/bundle/{chunk-HGMMRT4G.js → chunk-GB55EDOF.js} +2 -2
  37. package/dist/bundle/chunk-GNGYV5NX.js +116 -0
  38. package/dist/bundle/{chunk-6OE5I3PR.js → chunk-KKD5ZPGD.js} +6 -6
  39. package/dist/bundle/{chunk-G3MQOH6Z.js → chunk-KPAUPIC3.js} +3 -3
  40. package/dist/bundle/chunk-KVW7LCZK.js +109 -0
  41. package/dist/bundle/{chunk-D4Y2KL5V.js → chunk-LTAHG7BO.js} +4 -4
  42. package/dist/bundle/{chunk-NDSRND3E.js → chunk-LVGX7VTD.js} +4 -4
  43. package/dist/bundle/{chunk-Z4CGZAFQ.js → chunk-M47CXY5J.js} +39 -58
  44. package/dist/bundle/{chunk-L33G5ARH.js → chunk-M73VM67N.js} +1920 -1325
  45. package/dist/bundle/{chunk-JKKEMVW3.js → chunk-MAPJUOTD.js} +4 -4
  46. package/dist/bundle/{chunk-5FEEFXJA.js → chunk-MCPOZNWG.js} +1 -1
  47. package/dist/bundle/{chunk-QTFXYR5W.js → chunk-MKAKM3V7.js} +4 -4
  48. package/dist/bundle/{chunk-FRW3CWC7.js → chunk-NR7PGYPO.js} +44 -42
  49. package/dist/bundle/chunk-PLBEUSZP.js +18 -0
  50. package/dist/bundle/{chunk-FJKP6MMP.js → chunk-QMNUQTA2.js} +2 -2
  51. package/dist/bundle/{chunk-FQ3C6DFV.js → chunk-QNNUNGPL.js} +3 -3
  52. package/dist/bundle/{chunk-CIDFV3IT.js → chunk-QQ264PXQ.js} +1 -1
  53. package/dist/bundle/{chunk-2BAJ6ORN.js → chunk-R6KXHBMW.js} +1 -1
  54. package/dist/bundle/{chunk-72QLHHSO.js → chunk-RPBO5XL3.js} +21 -19
  55. package/dist/bundle/{chunk-KBHK5UGL.js → chunk-RX5CJ55S.js} +1 -1
  56. package/dist/bundle/{chunk-W2BIBPRU.js → chunk-RZX7RDXY.js} +88 -48
  57. package/dist/bundle/{chunk-HV5YYAJX.js → chunk-S7P5X23R.js} +66 -29
  58. package/dist/bundle/{chunk-UBCLVM7C.js → chunk-SHIHW2YN.js} +3 -3
  59. package/dist/bundle/{chunk-YMWPRHXG.js → chunk-SQWTUENZ.js} +2063 -949
  60. package/dist/bundle/{chunk-XM3P7LLT.js → chunk-T7ONSJAA.js} +2 -2
  61. package/dist/bundle/{chunk-X5PDWCG7.js → chunk-TEMCXODM.js} +1 -1
  62. package/dist/bundle/{chunk-V5Z2JO6X.js → chunk-U6HEZPCR.js} +19 -19
  63. package/dist/bundle/{chunk-65BWMPCI.js → chunk-VAAZL6OD.js} +6 -6
  64. package/dist/bundle/{chunk-TT4CIXVH.js → chunk-VPNLTNQD.js} +6 -6
  65. package/dist/bundle/{chunk-SMHLQEE2.js → chunk-VUBZFMGP.js} +2 -2
  66. package/dist/bundle/{chunk-XDMJVWWR.js → chunk-W77WC6ZK.js} +3 -3
  67. package/dist/bundle/{chunk-KC4MQRAB.js → chunk-WGGSFGNZ.js} +8 -8
  68. package/dist/bundle/{chunk-BXIPT2BO.js → chunk-Y4CSR5RP.js} +3 -1
  69. package/dist/bundle/{chunk-3EQ7USKJ.js → chunk-YMJKHMHX.js} +2 -2
  70. package/dist/bundle/{chunk-FQZSS3AB.js → chunk-YRY752BB.js} +6 -6
  71. package/dist/bundle/{chunk-MDLSI3EN.js → chunk-ZSW7LN7T.js} +43 -597
  72. package/dist/bundle/command-contract-3W73W27G.js +33 -0
  73. package/dist/bundle/command-server-entry-37PKBJ5A.js +146 -0
  74. package/dist/bundle/{decode-5N4ERCHC.js → decode-F7KC7WT4.js} +5 -5
  75. package/dist/bundle/{dispatch-TBGXBDHE.js → dispatch-U2DW6UI7.js} +8 -8
  76. package/dist/bundle/{echarts-YDEBAMXT.js → echarts-4VYG66GX.js} +2 -2
  77. package/dist/bundle/{embed-T7H62XFR.js → embed-ENZ6R4HF.js} +6 -6
  78. package/dist/bundle/{embedder-AW3O2TR3.js → embedder-4CBICMFO.js} +9 -9
  79. package/dist/bundle/entry-XQ562EDO.js +21 -0
  80. package/dist/bundle/{failure-AWHPW2HE.js → failure-HJD7S5UA.js} +2 -2
  81. package/dist/bundle/{first-run-6PBZSRZU.js → first-run-PPXOC6ID.js} +11 -11
  82. package/dist/bundle/first-screen-JC6BYZYD.js +31 -0
  83. package/dist/bundle/{instructions-C3NJERO7.js → instructions-XLCMJ5PJ.js} +1 -1
  84. package/dist/bundle/{mcp-CWLASTLV.js → mcp-7KQUJNFN.js} +2 -2
  85. package/dist/bundle/{node-P3CIIYWU.js → node-SSAC67R5.js} +2 -2
  86. package/dist/bundle/{node-sqlite-YVHMNRVA.js → node-sqlite-SUUUSYSZ.js} +6 -6
  87. package/dist/bundle/{oauth-5OQYA2SV.js → oauth-2ZNHMPEX.js} +7 -7
  88. package/dist/bundle/{open-YGWUVSU7.js → open-EFNT7V2Q.js} +5 -5
  89. package/dist/bundle/{openai-U45JBQ6F.js → openai-7STFVJXA.js} +16 -16
  90. package/dist/bundle/{process-DCYX5EDG.js → process-63F4PNWH.js} +1 -1
  91. package/dist/bundle/{program-UZBFH2EZ.js → program-C2E3TQNK.js} +70 -67
  92. package/dist/bundle/{prompt-HPVTPTFI.js → prompt-QPO7EKD5.js} +5 -5
  93. package/dist/bundle/{proxy-transport-D7MCHGSV.js → proxy-transport-ENU2SJYT.js} +5 -5
  94. package/dist/bundle/{recognize-IJCPFJ76.js → recognize-MLXEHFYL.js} +4 -4
  95. package/dist/bundle/{remote-MWDYQWFW.js → remote-DO7FLJEF.js} +7 -7
  96. package/dist/bundle/{rerank-SXG64475.js → rerank-W3WSBDAM.js} +7 -7
  97. package/dist/bundle/{serve-KJQENHEH.js → serve-Z3TOTEMQ.js} +14 -14
  98. package/dist/bundle/{server-MXVXZWN6.js → server-BYSOJCUA.js} +36 -36
  99. package/dist/bundle/server-IRUVLXD4.js +61 -0
  100. package/dist/bundle/{state-CKKJWH27.js → state-PKRPBCMY.js} +6 -6
  101. package/dist/bundle/{store-R3BE4V56.js → store-Y4G7CNJT.js} +13 -13
  102. package/dist/bundle/store-maintenance-command-PHK43OSM.js +49 -0
  103. package/dist/bundle/tg.js +13 -13
  104. package/dist/version.d.ts +1 -1
  105. package/dist/version.js +1 -1
  106. package/package.json +3 -3
  107. package/dist/bundle/command-contract-7TGMZRBE.js +0 -33
  108. package/dist/bundle/entry-L2LJ2VPY.js +0 -18
  109. package/dist/bundle/first-screen-UKCD7D2R.js +0 -31
  110. package/dist/bundle/server-RTMCRKQF.js +0 -60
  111. package/dist/bundle/store-maintenance-command-KDGBSBNU.js +0 -49
  112. /package/dist/bundle/{chunk-DWX4DE2I.js → chunk-YVNHQFLC.js} +0 -0
@@ -5,15 +5,15 @@ import {
5
5
  } from "./chunk-Y5E2WNWB.js";
6
6
  import {
7
7
  CliError
8
- } from "./chunk-SMHLQEE2.js";
8
+ } from "./chunk-VUBZFMGP.js";
9
9
  import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/speech/recognize.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/node_modules/@wirecat/cli-core/dist/speech/recognize.js
14
14
  import { createRequire } from "node:module";
15
15
 
16
- // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/speech/ogg-limit.js
16
+ // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/node_modules/@wirecat/cli-core/dist/speech/ogg-limit.js
17
17
  var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "local transcription needs a complete mono or stereo Ogg Opus recording"), "invalid");
18
18
  var checkOggDuration = /* @__PURE__ */ __name((bytes) => {
19
19
  const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
@@ -70,7 +70,7 @@ var checkOggDuration = /* @__PURE__ */ __name((bytes) => {
70
70
  throw invalid();
71
71
  }, "checkOggDuration");
72
72
 
73
- // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/speech/recognize.js
73
+ // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/node_modules/@wirecat/cli-core/dist/speech/recognize.js
74
74
  var SAMPLE_RATE = 16e3;
75
75
  var LEAD = SAMPLE_RATE / 2;
76
76
  var toModelRate = /* @__PURE__ */ __name((samples, rate) => {
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-base@0.87.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/executable.js
7
+ // 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/executable.js
8
8
  import { existsSync } from "node:fs";
9
9
  import { win32 } from "node:path";
10
10
  var variable = /* @__PURE__ */ __name((env, name) => Object.entries(env).find(([key]) => key.toUpperCase() === name)?.[1], "variable");
@@ -9,15 +9,15 @@ import {
9
9
  optional,
10
10
  pipe,
11
11
  safeParse
12
- } from "./chunk-KC4MQRAB.js";
12
+ } from "./chunk-WGGSFGNZ.js";
13
13
  import {
14
14
  CliError
15
- } from "./chunk-SMHLQEE2.js";
15
+ } from "./chunk-VUBZFMGP.js";
16
16
  import {
17
17
  __name
18
18
  } from "./chunk-ZVVMGPBJ.js";
19
19
 
20
- // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/models/options.js
20
+ // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/node_modules/@wirecat/cli-core/dist/models/options.js
21
21
  var checkedOptions = /* @__PURE__ */ __name((provider, schema, options) => {
22
22
  const parsed = safeParse(schema, options);
23
23
  if (!parsed.success) {
@@ -27,7 +27,7 @@ var checkedOptions = /* @__PURE__ */ __name((provider, schema, options) => {
27
27
  }, "checkedOptions");
28
28
  var range = /* @__PURE__ */ __name((min, max) => optional(pipe(number(), finite(), minValue(min), maxValue(max))), "range");
29
29
 
30
- // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/models/types.js
30
+ // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/node_modules/@wirecat/cli-core/dist/models/types.js
31
31
  var MAX_MODEL_IMAGE_BYTES = 4 * 1024 * 1024;
32
32
  var validateImages = /* @__PURE__ */ __name((images) => {
33
33
  if (images === void 0)
@@ -20,7 +20,7 @@ import {
20
20
  tool,
21
21
  toolKey,
22
22
  toolsFromCommands
23
- } from "./chunk-W2BIBPRU.js";
23
+ } from "./chunk-RZX7RDXY.js";
24
24
  import {
25
25
  CHART_KINDS,
26
26
  CHART_SIZE,
@@ -32,45 +32,57 @@ import {
32
32
  mcpUrlOf,
33
33
  refuseWriteBeforeConnecting,
34
34
  registerPrompts,
35
- stdinFieldOf,
36
35
  syncsFirst
37
- } from "./chunk-Z4CGZAFQ.js";
36
+ } from "./chunk-M47CXY5J.js";
38
37
  import {
39
38
  agentJson,
40
39
  skillResource
41
- } from "./chunk-HV5YYAJX.js";
40
+ } from "./chunk-S7P5X23R.js";
42
41
  import {
43
42
  instructions
44
- } from "./chunk-CIDFV3IT.js";
43
+ } from "./chunk-QQ264PXQ.js";
44
+ import {
45
+ mcpHttpMarker
46
+ } from "./chunk-3HNI6GI7.js";
45
47
  import {
46
48
  answeredWire
47
- } from "./chunk-2BAJ6ORN.js";
49
+ } from "./chunk-R6KXHBMW.js";
48
50
  import {
49
51
  StdioServerTransport,
50
52
  callerOf,
51
53
  callingAgent,
52
54
  serveStdio
53
- } from "./chunk-XM3P7LLT.js";
55
+ } from "./chunk-T7ONSJAA.js";
54
56
  import {
55
57
  McpServer,
56
58
  ResourceTemplate
57
59
  } from "./chunk-5D4AEUVA.js";
58
60
  import {
59
- connectedFor,
60
- guardFor
61
- } from "./chunk-MDLSI3EN.js";
61
+ connectedFor
62
+ } from "./chunk-ZSW7LN7T.js";
62
63
  import {
63
64
  capability,
64
65
  dateWindow,
66
+ guardFor,
65
67
  imageSize,
66
68
  lackedNeed,
67
69
  servicesFor,
68
70
  storedDeps,
69
71
  wholeList
70
- } from "./chunk-YMWPRHXG.js";
72
+ } from "./chunk-SQWTUENZ.js";
73
+ import {
74
+ openStore,
75
+ pdfPreviewLimits
76
+ } from "./chunk-5P43K3GL.js";
77
+ import {
78
+ warmEmbedders
79
+ } from "./chunk-KKD5ZPGD.js";
80
+ import {
81
+ stdinFieldOf
82
+ } from "./chunk-PLBEUSZP.js";
71
83
  import {
72
84
  findCommand
73
- } from "./chunk-D4Y2KL5V.js";
85
+ } from "./chunk-LTAHG7BO.js";
74
86
  import {
75
87
  DEFAULT_OUTPUT_BYTES,
76
88
  changesAuthorityAt,
@@ -84,31 +96,21 @@ import {
84
96
  recalledAccount,
85
97
  rootOf2 as rootOf,
86
98
  sealed,
87
- snakeKeys,
88
- typedCommand
89
- } from "./chunk-DQELQ7BL.js";
99
+ snakeKeys
100
+ } from "./chunk-CPDYPZIG.js";
90
101
  import {
91
102
  withCaller
92
- } from "./chunk-QD27C3BG.js";
103
+ } from "./chunk-6SQAE7NM.js";
93
104
  import {
94
105
  readOnlyLockOf
95
- } from "./chunk-6ERQJRL2.js";
106
+ } from "./chunk-3E35VJME.js";
96
107
  import {
97
- mcpHttpMarker
98
- } from "./chunk-RGU2G3KL.js";
99
- import {
100
- openStore,
101
- pdfPreviewLimits
102
- } from "./chunk-ROOUBFUW.js";
103
- import {
104
- timezoneOf
105
- } from "./chunk-CX2WCEQU.js";
108
+ timezoneOf,
109
+ typedCommand
110
+ } from "./chunk-3EGVR7OF.js";
106
111
  import {
107
112
  isCliFailure
108
- } from "./chunk-ZEQ7ONPZ.js";
109
- import {
110
- warmEmbedders
111
- } from "./chunk-6OE5I3PR.js";
113
+ } from "./chunk-7MXRFFIT.js";
112
114
  import {
113
115
  description,
114
116
  integer,
@@ -124,19 +126,19 @@ import {
124
126
  regex,
125
127
  strictObject,
126
128
  string
127
- } from "./chunk-KC4MQRAB.js";
129
+ } from "./chunk-WGGSFGNZ.js";
128
130
  import {
129
131
  CliError,
130
132
  visibleControls
131
- } from "./chunk-SMHLQEE2.js";
133
+ } from "./chunk-VUBZFMGP.js";
132
134
  import {
133
135
  __name
134
136
  } from "./chunk-ZVVMGPBJ.js";
135
137
 
136
- // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/mcp/server.js
138
+ // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/node_modules/@wirecat/cli-core/dist/mcp/server.js
137
139
  import { randomUUID } from "node:crypto";
138
140
 
139
- // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/mcp/agent-log.js
141
+ // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/node_modules/@wirecat/cli-core/dist/mcp/agent-log.js
140
142
  var agentLog = /* @__PURE__ */ __name((open) => {
141
143
  let held;
142
144
  return {
@@ -155,7 +157,7 @@ var agentLog = /* @__PURE__ */ __name((open) => {
155
157
  };
156
158
  }, "agentLog");
157
159
 
158
- // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/mcp/resources.js
160
+ // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/node_modules/@wirecat/cli-core/dist/mcp/resources.js
159
161
  var LISTED = 100;
160
162
  var registerResources = /* @__PURE__ */ __name((server, session, { command, name, limit, recorded, withStore, messenger, guard, assertRead }) => {
161
163
  server.registerResource("chat", new ResourceTemplate(`${command}://chat/{id}`, {
@@ -193,7 +195,7 @@ var registerResources = /* @__PURE__ */ __name((server, session, { command, name
193
195
  });
194
196
  }, "registerResources");
195
197
 
196
- // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/mcp/session.js
198
+ // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/node_modules/@wirecat/cli-core/dist/mcp/session.js
197
199
  var HARMLESS = /* @__PURE__ */ new Set(["validation_error", "not_found", "permission_error", "confirmation_required", "rate_limited"]);
198
200
  var harmless = /* @__PURE__ */ __name((code) => HARMLESS.has(code), "harmless");
199
201
  var MessengerSession = class {
@@ -268,7 +270,7 @@ var MessengerSession = class {
268
270
  }
269
271
  };
270
272
 
271
- // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/mcp/tools/attachments.js
273
+ // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/node_modules/@wirecat/cli-core/dist/mcp/tools/attachments.js
272
274
  var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
273
275
  const _command = messenger.app.command;
274
276
  return {
@@ -322,7 +324,7 @@ var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
322
324
  };
323
325
  }, "attachmentsTools");
324
326
 
325
- // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/mcp/tools/messages-photo.js
327
+ // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/node_modules/@wirecat/cli-core/dist/mcp/tools/messages-photo.js
326
328
  var PHOTO_LIMIT = 512 * 1024;
327
329
  var IMAGE_TYPES = [
328
330
  ["image/jpeg", (b) => b[0] === 255 && b[1] === 216 && b[2] === 255],
@@ -376,7 +378,7 @@ var readUpTo = /* @__PURE__ */ __name(async (file, limit, saveIt) => {
376
378
  return new Uint8Array(Buffer.concat(chunks));
377
379
  }, "readUpTo");
378
380
 
379
- // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/mcp/tools/stats.js
381
+ // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/node_modules/@wirecat/cli-core/dist/mcp/tools/stats.js
380
382
  var statsTools = /* @__PURE__ */ __name((messenger) => ({
381
383
  stats_charts: tool({
382
384
  title: "A chart from a chat's statistics",
@@ -413,14 +415,14 @@ var statsTools = /* @__PURE__ */ __name((messenger) => ({
413
415
  })
414
416
  }), "statsTools");
415
417
 
416
- // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/mcp/tools.js
418
+ // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/node_modules/@wirecat/cli-core/dist/mcp/tools.js
417
419
  var pictureTools = /* @__PURE__ */ __name((messenger) => Object.fromEntries(Object.entries({
418
420
  ...messagesPhotoTools(messenger),
419
421
  ...attachmentsTools(messenger),
420
422
  ...statsTools(messenger)
421
423
  }).map(([name, definition]) => [name, { ...definition, input: strictObject(definition.input.entries) }])), "pictureTools");
422
424
 
423
- // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/mcp/server.js
425
+ // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/node_modules/@wirecat/cli-core/dist/mcp/server.js
424
426
  var PER_RUN = /* @__PURE__ */ new Set([
425
427
  "streams",
426
428
  "stdin",
@@ -744,7 +746,7 @@ var serveOverStdio = /* @__PURE__ */ __name(async (command, context, messenger,
744
746
  }, "serveOverStdio");
745
747
  var serveOverHttpUntilStopped = /* @__PURE__ */ __name(async (command, context, messenger, options, http) => {
746
748
  const { session, embedders, build, log } = createServer(command, context, messenger, options);
747
- const { serveOverHttp } = await import("./serve-KJQENHEH.js");
749
+ const { serveOverHttp } = await import("./serve-Z3TOTEMQ.js");
748
750
  const appName = messenger.app.command;
749
751
  const appEnvPrefix = messenger.app.envPrefix;
750
752
  const listening = await serveOverHttp(build, {
@@ -0,0 +1,18 @@
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ __name
5
+ } from "./chunk-ZVVMGPBJ.js";
6
+
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/node_modules/@wirecat/cli-core/dist/cli/stdin-field.js
8
+ var fields = /* @__PURE__ */ new WeakMap();
9
+ var readsStdin = /* @__PURE__ */ __name((command, field) => {
10
+ fields.set(command, field);
11
+ return command;
12
+ }, "readsStdin");
13
+ var stdinFieldOf = /* @__PURE__ */ __name((command) => fields.get(command), "stdinFieldOf");
14
+
15
+ export {
16
+ readsStdin,
17
+ stdinFieldOf
18
+ };
@@ -2,11 +2,11 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  openCache
5
- } from "./chunk-TT4CIXVH.js";
5
+ } from "./chunk-VPNLTNQD.js";
6
6
  import {
7
7
  CliError,
8
8
  isCliError
9
- } from "./chunk-SMHLQEE2.js";
9
+ } from "./chunk-VUBZFMGP.js";
10
10
  import {
11
11
  __name
12
12
  } from "./chunk-ZVVMGPBJ.js";
@@ -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-6OE5I3PR.js";
5
+ } from "./chunk-KKD5ZPGD.js";
6
6
  import {
7
7
  CliError
8
- } from "./chunk-SMHLQEE2.js";
8
+ } from "./chunk-VUBZFMGP.js";
9
9
  import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/embeddings/remote.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/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.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/mcp/instructions.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/node_modules/@wirecat/cli-core/dist/mcp/instructions.js
8
8
  var instructions = /* @__PURE__ */ __name(({ command, name, profile, writes, skill }) => {
9
9
  const all = typeof profile !== "string";
10
10
  const offers = /* @__PURE__ */ __name((key) => all || writes.includes(key), "offers");
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/mcp/stdio-wire.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/node_modules/@wirecat/cli-core/dist/mcp/stdio-wire.js
8
8
  import { PassThrough, Writable } from "node:stream";
9
9
  var lineReader = /* @__PURE__ */ __name((onMessage) => {
10
10
  let rest = "";
@@ -1,8 +1,5 @@
1
1
  import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
- import {
4
- hostFetch
5
- } from "./chunk-NDSRND3E.js";
6
3
  import {
7
4
  ADMIN_RIGHTS,
8
5
  BotTokenStore,
@@ -16,46 +13,51 @@ import {
16
13
  privateFiles,
17
14
  providerRequest,
18
15
  withSqliteSidecars
19
- } from "./chunk-L33G5ARH.js";
16
+ } from "./chunk-M73VM67N.js";
17
+ import {
18
+ hostFetch
19
+ } from "./chunk-LVGX7VTD.js";
20
20
  import {
21
21
  parseProxy,
22
22
  proxyAddress,
23
23
  proxyError,
24
24
  proxyLabel,
25
25
  proxySetting
26
- } from "./chunk-TEZKCH5B.js";
26
+ } from "./chunk-FATTEYZH.js";
27
27
  import {
28
28
  messengerContext
29
- } from "./chunk-MDLSI3EN.js";
29
+ } from "./chunk-ZSW7LN7T.js";
30
30
  import {
31
31
  uploadBlob
32
- } from "./chunk-YMWPRHXG.js";
32
+ } from "./chunk-SQWTUENZ.js";
33
+ import {
34
+ DESKTOP,
35
+ TG
36
+ } from "./chunk-7UIMMQOV.js";
33
37
  import {
34
38
  asFirstWord,
35
- currentAttempt,
36
39
  environmentOf,
37
40
  fromFile,
38
41
  settingsFor
39
- } from "./chunk-DQELQ7BL.js";
42
+ } from "./chunk-CPDYPZIG.js";
40
43
  import {
41
- DESKTOP,
42
- TG
43
- } from "./chunk-3K65KTXD.js";
44
+ currentAttempt
45
+ } from "./chunk-3EGVR7OF.js";
44
46
  import {
45
47
  Credentials,
46
48
  pathsAreOverridden,
47
49
  resolvePaths
48
- } from "./chunk-V5Z2JO6X.js";
50
+ } from "./chunk-U6HEZPCR.js";
49
51
  import {
50
52
  optional
51
- } from "./chunk-KC4MQRAB.js";
53
+ } from "./chunk-WGGSFGNZ.js";
52
54
  import {
53
55
  importFrom
54
56
  } from "./chunk-Y5E2WNWB.js";
55
57
  import {
56
58
  CliError,
57
59
  isCliError
58
- } from "./chunk-SMHLQEE2.js";
60
+ } from "./chunk-VUBZFMGP.js";
59
61
  import {
60
62
  __name
61
63
  } from "./chunk-ZVVMGPBJ.js";
@@ -171,7 +173,7 @@ var logOut = /* @__PURE__ */ __name(async (profile, sessionPath, context) => {
171
173
  checks: checkWords("tg", profile),
172
174
  ...keyring ? { keyring } : {}
173
175
  });
174
- const { TelegramAdapter } = await import("./adapter-NEQQOANM.js");
176
+ const { TelegramAdapter } = await import("./adapter-GVSBFSBY.js");
175
177
  const adapter = await TelegramAdapter.open({ credentials, sessionPath, ...through ? { proxy: through.proxy } : {} });
176
178
  try {
177
179
  await adapter.logout();
@@ -234,7 +236,7 @@ var telegramOf = /* @__PURE__ */ __name((command, base) => {
234
236
  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" } : {});
235
237
  }
236
238
  const options = { credentials: resolved, sessionPath, ...connecting };
237
- return environment.adapter ? await environment.adapter(options) : await (await import("./adapter-NEQQOANM.js")).TelegramAdapter.open({
239
+ return environment.adapter ? await environment.adapter(options) : await (await import("./adapter-GVSBFSBY.js")).TelegramAdapter.open({
238
240
  ...options,
239
241
  ...proxyOption(proxy()),
240
242
  diagnostic: /* @__PURE__ */ __name((line) => base.streams.diagnostic(line), "diagnostic"),
@@ -959,7 +961,7 @@ var TELEGRAM_BOT = {
959
961
  const botId = token.split(":", 1)[0] ?? "";
960
962
  if (!/^\d+$/.test(botId))
961
963
  throw new CliError("authentication_error", "the bot token has no valid bot id");
962
- const reader = await (environment.botHistory ?? (await import("./bot-history-KF2PUMWA.js")).openBotHistory)({
964
+ const reader = await (environment.botHistory ?? (await import("./bot-history-7YY7MCR4.js")).openBotHistory)({
963
965
  credentials,
964
966
  sessionPath: botSessionFile(profile, botId, env),
965
967
  token,
@@ -979,7 +981,7 @@ var TELEGRAM_BOT = {
979
981
  return void 0;
980
982
  let personal;
981
983
  try {
982
- personal = environment.adapter ? await environment.adapter({ credentials, sessionPath: personalPath }) : await (await import("./adapter-NEQQOANM.js")).TelegramAdapter.open({
984
+ personal = environment.adapter ? await environment.adapter({ credentials, sessionPath: personalPath }) : await (await import("./adapter-GVSBFSBY.js")).TelegramAdapter.open({
983
985
  credentials,
984
986
  sessionPath: personalPath,
985
987
  checks: words,
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-base@0.87.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/installer.js
7
+ // 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/installer.js
8
8
  var installerOf = /* @__PURE__ */ __name((scriptPath) => {
9
9
  const path = scriptPath.replaceAll("\\", "/");
10
10
  if (path.includes("/_npx/"))