@wirecat/tg-cli 0.133.0 → 0.134.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 (153) hide show
  1. package/README.md +2 -3
  2. package/contracts/wirecat.json +82 -2
  3. package/dist/bin/tg.js +2 -2
  4. package/dist/bot/generated/types.d.ts +188 -0
  5. package/dist/bot/generated/types.d.ts.map +1 -1
  6. package/dist/bundle/{adapter-GSGX3WBH.js → adapter-Y4IXTXAG.js} +104 -69
  7. package/dist/bundle/agent-G7VHOJMS.js +37 -0
  8. package/dist/bundle/{all-profiles-VOCJ55YH.js → all-profiles-SUGID6CX.js} +62 -20
  9. package/dist/bundle/{anthropic-J6CTLU3W.js → anthropic-4QKTXT4B.js} +5 -5
  10. package/dist/bundle/{app-server-GVFGA4TJ.js → app-server-TPOD6LIJ.js} +72 -62
  11. package/dist/bundle/{bot-api-LWONPIGK.js → bot-api-KBESP422.js} +73 -92
  12. package/dist/bundle/{bot-history-XOW7Y2GC.js → bot-history-3EORA23G.js} +23 -22
  13. package/dist/bundle/{bun-436CH6CP.js → bun-FL76M4M2.js} +2 -2
  14. package/dist/bundle/{bun-sqlite-ZLB5RK5Q.js → bun-sqlite-H37OSTAJ.js} +6 -6
  15. package/dist/bundle/{chunk-YY6FGKGD.js → chunk-2GT563YH.js} +2 -2
  16. package/dist/bundle/{chunk-5L44DSHV.js → chunk-2JWY7CXJ.js} +4 -4
  17. package/dist/bundle/{chunk-OX73ERZW.js → chunk-3O25FAPA.js} +3 -4
  18. package/dist/bundle/{chunk-TCI7I6YF.js → chunk-3PG6QVQZ.js} +11 -25
  19. package/dist/bundle/{chunk-NTWXL2QV.js → chunk-3QQWTP77.js} +2 -2
  20. package/dist/bundle/{chunk-TTDZVWDU.js → chunk-3ZNO27UE.js} +1 -1
  21. package/dist/bundle/{chunk-7NYP4RBO.js → chunk-4R2ZJGFF.js} +2125 -1179
  22. package/dist/bundle/{chunk-VGN5YXYI.js → chunk-4S2DHHJM.js} +2 -100
  23. package/dist/bundle/{chunk-H7ML7X3G.js → chunk-4X6BX3XP.js} +144 -10
  24. package/dist/bundle/{chunk-D2SJLZSH.js → chunk-6DGVK5KS.js} +2 -2
  25. package/dist/bundle/chunk-6DJJVFSG.js +388 -0
  26. package/dist/bundle/{chunk-M6QOM6SL.js → chunk-6MEHKUN6.js} +1 -1
  27. package/dist/bundle/{chunk-6CHIGUCY.js → chunk-6UNLEQA5.js} +31 -20
  28. package/dist/bundle/{chunk-WCYKVX3B.js → chunk-77E7Q4EQ.js} +7 -7
  29. package/dist/bundle/chunk-7GGDCQJ5.js +353 -0
  30. package/dist/bundle/{chunk-UIAKLELF.js → chunk-AHVWZDXO.js} +79 -64
  31. package/dist/bundle/{chunk-NO2LIHWA.js → chunk-ANBI3OXK.js} +1 -1
  32. package/dist/bundle/{chunk-LQQSDGQ6.js → chunk-AYWST6NA.js} +56 -46
  33. package/dist/bundle/{chunk-NAXOT35J.js → chunk-CA7DY2YU.js} +3 -3
  34. package/dist/bundle/{chunk-UKBK2VWZ.js → chunk-CDKXZLMP.js} +225 -175
  35. package/dist/bundle/{chunk-5HKPQPD4.js → chunk-CNGNR4CY.js} +6 -6
  36. package/dist/bundle/{chunk-KUA24HWG.js → chunk-CSXCCK6J.js} +2 -2
  37. package/dist/bundle/{chunk-VTQMR3XG.js → chunk-DG35TQ6P.js} +3 -3
  38. package/dist/bundle/{chunk-IPPCQ7IK.js → chunk-EXMAWEHC.js} +2 -2
  39. package/dist/bundle/{chunk-CEJYNB3I.js → chunk-FR3ATU5I.js} +4 -4
  40. package/dist/bundle/{chunk-XOX4BX5A.js → chunk-FR4Y5CGW.js} +4 -4
  41. package/dist/bundle/{chunk-JPNVEPS4.js → chunk-GIGZTI74.js} +2023 -1928
  42. package/dist/bundle/{chunk-UZ63ORMY.js → chunk-H3TLAYGY.js} +4 -4
  43. package/dist/bundle/{chunk-LBZEZO32.js → chunk-HD7DV5B2.js} +65 -43
  44. package/dist/bundle/{chunk-TPD37ECC.js → chunk-HETHFOHC.js} +3 -3
  45. package/dist/bundle/{chunk-JKSD43L7.js → chunk-HEZK4W3U.js} +6 -6
  46. package/dist/bundle/{chunk-SMU6NA7F.js → chunk-IJ7R2WMK.js} +4 -4
  47. package/dist/bundle/{chunk-7NF3V5L2.js → chunk-ITJ7DGNA.js} +4 -4
  48. package/dist/bundle/{chunk-JGMXBAGH.js → chunk-J5RB4ASI.js} +140 -433
  49. package/dist/bundle/{chunk-57KJ3TRS.js → chunk-JAL443BH.js} +9 -9
  50. package/dist/bundle/{chunk-IH4Z3KZU.js → chunk-JCDD5T3A.js} +2 -2
  51. package/dist/bundle/{chunk-BXVB42KJ.js → chunk-JHZJBNDO.js} +2 -2
  52. package/dist/bundle/chunk-JWLODUN3.js +555 -0
  53. package/dist/bundle/{chunk-54WLIPIQ.js → chunk-JWNSG5GI.js} +1 -1
  54. package/dist/bundle/{chunk-UGS57TT5.js → chunk-JXEO5EIN.js} +2 -2
  55. package/dist/bundle/{chunk-QYLZD4DS.js → chunk-K5FK6WWN.js} +1 -1
  56. package/dist/bundle/{chunk-QWO7L4UH.js → chunk-L47PFECD.js} +7 -7
  57. package/dist/bundle/{chunk-IYAXLLGR.js → chunk-L4PNDW4S.js} +6 -6
  58. package/dist/bundle/{chunk-ZHO3TPHM.js → chunk-M323L5SG.js} +30 -15
  59. package/dist/bundle/{chunk-6A44ZZFC.js → chunk-MMDFPBFZ.js} +43 -64
  60. package/dist/bundle/{chunk-OWY52JBO.js → chunk-MUV73B5A.js} +7 -7
  61. package/dist/bundle/{chunk-2KQDJHF3.js → chunk-MXA3FU2R.js} +29 -1
  62. package/dist/bundle/{chunk-6H2NW6HK.js → chunk-NUD4CBHK.js} +3 -3
  63. package/dist/bundle/{chunk-RABUG4KA.js → chunk-NYEVPAF2.js} +511 -472
  64. package/dist/bundle/{chunk-VWJTYAIQ.js → chunk-O3QBO6NW.js} +17 -17
  65. package/dist/bundle/{chunk-N7QREPZW.js → chunk-O4ZOQJ6W.js} +9 -9
  66. package/dist/bundle/{chunk-KEN4B57V.js → chunk-OJSPB4LA.js} +2 -2
  67. package/dist/bundle/{chunk-UQYL6TJ7.js → chunk-PCBVSHKD.js} +4 -4
  68. package/dist/bundle/{chunk-LIQMUDIZ.js → chunk-PK5WEGPJ.js} +2 -2
  69. package/dist/bundle/{chunk-5D4AEUVA.js → chunk-PL5P7UKW.js} +434 -1
  70. package/dist/bundle/{chunk-O6JUVATT.js → chunk-PRI2XTM7.js} +35 -12
  71. package/dist/bundle/chunk-PRM7GKBV.js +340 -0
  72. package/dist/bundle/{chunk-YAPDU3SV.js → chunk-PZ2ZFPGO.js} +1 -1
  73. package/dist/bundle/chunk-QYRK4XXH.js +727 -0
  74. package/dist/bundle/{chunk-XDQU5HBO.js → chunk-RVA3CRSY.js} +12 -12
  75. package/dist/bundle/{chunk-QVGEL66U.js → chunk-SPXNI53Z.js} +38 -9
  76. package/dist/bundle/{chunk-QGWISM4W.js → chunk-TI5U6AUT.js} +34 -28
  77. package/dist/bundle/{chunk-THYGLTRB.js → chunk-TKWYXM7L.js} +7 -7
  78. package/dist/bundle/{chunk-XKOMP3HV.js → chunk-TZCFJJEU.js} +6 -6
  79. package/dist/bundle/chunk-UTTEAOJ3.js +7 -0
  80. package/dist/bundle/chunk-V6G4LTXU.js +50 -0
  81. package/dist/bundle/{chunk-KVFUH5IT.js → chunk-VH4J7IIS.js} +1 -1
  82. package/dist/bundle/{chunk-VCAOH45X.js → chunk-VNJRWFHP.js} +1 -1
  83. package/dist/bundle/chunk-W2QSDPG6.js +80 -0
  84. package/dist/bundle/{chunk-LOS4D6ZB.js → chunk-WGGUKQE7.js} +113 -567
  85. package/dist/bundle/{chunk-ZYAHZKYF.js → chunk-WPXVJGSL.js} +3 -3
  86. package/dist/bundle/{chunk-IBCXEVNY.js → chunk-XLNV3U6N.js} +3 -3
  87. package/dist/bundle/{chunk-6S77EKZU.js → chunk-XS4EE7MO.js} +17 -15
  88. package/dist/bundle/{chunk-6VCSOQFL.js → chunk-XVRLD3LN.js} +2 -2
  89. package/dist/bundle/{chunk-HB5DP6L5.js → chunk-XZ6XEAJP.js} +18 -18
  90. package/dist/bundle/{chunk-N3JUHGKM.js → chunk-YHTSJMZ5.js} +3706 -3372
  91. package/dist/bundle/chunk-YPJCURT6.js +108 -0
  92. package/dist/bundle/{chunk-SMI2EUH4.js → chunk-Z77R76S2.js} +1 -1
  93. package/dist/bundle/{chunk-KHUXDSXN.js → chunk-ZC7OEYDX.js} +1 -1
  94. package/dist/bundle/{chunk-5LRTYBZW.js → chunk-ZW2N2GI2.js} +12 -12
  95. package/dist/bundle/command-contract-LEFXJAA3.js +37 -0
  96. package/dist/bundle/{command-server-entry-AE27QXTE.js → command-server-entry-WQAE5UGU.js} +27 -27
  97. package/dist/bundle/{decode-RQPPZ72F.js → decode-2J2DOVGV.js} +5 -5
  98. package/dist/bundle/{dispatch-KQO2MCSH.js → dispatch-IZ2TP5GW.js} +8 -8
  99. package/dist/bundle/dist-PAKDDIBT.js +191 -0
  100. package/dist/bundle/{echarts-FZRIACN4.js → echarts-GFIIHZ4U.js} +2 -2
  101. package/dist/bundle/{embed-TOSWWMDL.js → embed-AGOXADHW.js} +6 -6
  102. package/dist/bundle/{embedder-JHIQSBGD.js → embedder-PCIXGM2Y.js} +9 -9
  103. package/dist/bundle/{entry-DU4KRXTG.js → entry-HUQXUV52.js} +9 -9
  104. package/dist/bundle/{failure-3YC3YGYO.js → failure-JSRHZ2S6.js} +2 -2
  105. package/dist/bundle/{first-run-DQQT4FID.js → first-run-2LXN7B33.js} +12 -12
  106. package/dist/bundle/first-screen-VUE6RCSF.js +37 -0
  107. package/dist/bundle/{instructions-WI64CJQ6.js → instructions-RSLTJVFJ.js} +1 -1
  108. package/dist/bundle/{mcp-VMS6PBCU.js → mcp-MMENCB7I.js} +2 -2
  109. package/dist/bundle/meeting-combined-PBNPHOM3.js +23 -0
  110. package/dist/bundle/{meeting-model-XNRSREIK.js → meeting-model-SI77WMMK.js} +11 -11
  111. package/dist/bundle/{meeting-semantic-OOSCHQMB.js → meeting-semantic-WRXWUR4M.js} +6 -6
  112. package/dist/bundle/{node-JLKDNVKV.js → node-5XGMCUGQ.js} +2 -2
  113. package/dist/bundle/{node-sqlite-YOGH26O2.js → node-sqlite-ES7SQSIC.js} +7 -7
  114. package/dist/bundle/{oauth-FOMXM5HP.js → oauth-QFM4Y6N7.js} +8 -8
  115. package/dist/bundle/{open-SM2UXUKM.js → open-2MD2DKGQ.js} +5 -5
  116. package/dist/bundle/{openai-J2H7S6ZF.js → openai-6TMKJKYO.js} +15 -15
  117. package/dist/bundle/{process-HI7OZBOI.js → process-VA2DP7MY.js} +1 -1
  118. package/dist/bundle/{program-VY4HFU25.js → program-K3SLEA42.js} +70 -64
  119. package/dist/bundle/{prompt-NUUVFMOF.js → prompt-VZSPCE6E.js} +5 -5
  120. package/dist/bundle/{proxy-transport-AN4VMRRN.js → proxy-transport-OJU2EOOC.js} +5 -5
  121. package/dist/bundle/{recognize-MALJHPDI.js → recognize-LH3ZZEIL.js} +4 -4
  122. package/dist/bundle/{remote-QUDRSTS2.js → remote-JNW5HN2I.js} +9 -9
  123. package/dist/bundle/{rerank-2DSO3D3S.js → rerank-P23UJMII.js} +7 -7
  124. package/dist/bundle/{serve-NCJ52MY3.js → serve-VSLLMILH.js} +15 -15
  125. package/dist/bundle/{server-Y3M544AM.js → server-FBRRRKCS.js} +65 -54
  126. package/dist/bundle/server-TA4QP7PG.js +78 -0
  127. package/dist/bundle/{sqlite-runtime-NJUSXVKK.js → sqlite-runtime-LWATDAAU.js} +6 -6
  128. package/dist/bundle/{state-AVOWQVET.js → state-3AFJL2EL.js} +6 -6
  129. package/dist/bundle/{store-MMIYOL4H.js → store-6TLYL2VU.js} +28 -17
  130. package/dist/bundle/{store-BZ5ICDRP.js → store-PEXV5DNA.js} +20 -19
  131. package/dist/bundle/store-maintenance-command-IYJLUQ5X.js +65 -0
  132. package/dist/bundle/surface-L4VY4WFG.js +64 -0
  133. package/dist/bundle/tg.js +13 -13
  134. package/dist/telegram/adapter.d.ts +9 -2
  135. package/dist/telegram/adapter.d.ts.map +1 -1
  136. package/dist/telegram/adapter.js +5 -6
  137. package/dist/telegram/adapter.js.map +1 -1
  138. package/dist/telegram/messages.d.ts +12 -0
  139. package/dist/telegram/messages.d.ts.map +1 -1
  140. package/dist/telegram/messages.js +40 -0
  141. package/dist/telegram/messages.js.map +1 -1
  142. package/dist/version.d.ts +1 -1
  143. package/dist/version.js +1 -1
  144. package/package.json +3 -3
  145. package/skills/tg-cli/SKILL.md +4 -2
  146. package/skills/tg-cli/references/messages.md +5 -1
  147. package/skills/tg-cli/references/search.md +2 -0
  148. package/dist/bundle/chunk-SHTHNBHG.js +0 -2
  149. package/dist/bundle/command-contract-TQIARAB4.js +0 -37
  150. package/dist/bundle/first-screen-7N4CTZSA.js +0 -37
  151. package/dist/bundle/meeting-combined-3RAOFQ7M.js +0 -23
  152. package/dist/bundle/server-CHGON5I2.js +0 -70
  153. package/dist/bundle/store-maintenance-command-VKZ4WHUB.js +0 -61
@@ -12,7 +12,13 @@ import {
12
12
  refuseWriteBeforeConnecting,
13
13
  registerPrompts,
14
14
  syncsFirst
15
- } from "./chunk-QGWISM4W.js";
15
+ } from "./chunk-TI5U6AUT.js";
16
+ import {
17
+ skillResources
18
+ } from "./chunk-6DJJVFSG.js";
19
+ import {
20
+ instructions
21
+ } from "./chunk-JWNSG5GI.js";
16
22
  import {
17
23
  BinaryResource,
18
24
  Picture,
@@ -27,60 +33,64 @@ import {
27
33
  outcomeOf,
28
34
  outputOf,
29
35
  registerCommands,
30
- runCommandForAgent,
31
36
  surfaceCommands,
32
37
  tierOf,
33
38
  tool,
34
- toolKey,
35
- toolsFromCommands
36
- } from "./chunk-LOS4D6ZB.js";
39
+ toolKey
40
+ } from "./chunk-JWLODUN3.js";
37
41
  import {
38
- agentJson,
39
- skillResources
40
- } from "./chunk-JGMXBAGH.js";
42
+ agentJson
43
+ } from "./chunk-J5RB4ASI.js";
41
44
  import {
42
45
  StdioServerTransport,
43
46
  answeredWire,
44
- callerOf,
45
- callingAgent,
46
47
  serveStdio
47
- } from "./chunk-VGN5YXYI.js";
48
- import {
49
- McpServer,
50
- ResourceTemplate
51
- } from "./chunk-5D4AEUVA.js";
48
+ } from "./chunk-4S2DHHJM.js";
52
49
  import {
53
50
  connectedFor
54
- } from "./chunk-6S77EKZU.js";
51
+ } from "./chunk-XS4EE7MO.js";
52
+ import {
53
+ wholeList
54
+ } from "./chunk-7GGDCQJ5.js";
55
55
  import {
56
- capability,
57
- dateWindow,
58
56
  guardFor,
59
57
  imageSize,
60
58
  lackedNeed,
61
59
  servicesFor,
62
- storedDeps,
63
- wholeList
64
- } from "./chunk-N3JUHGKM.js";
60
+ storedDeps
61
+ } from "./chunk-YHTSJMZ5.js";
65
62
  import {
66
63
  mcpHttpMarker
67
- } from "./chunk-UZ63ORMY.js";
64
+ } from "./chunk-H3TLAYGY.js";
68
65
  import {
69
- instructions
70
- } from "./chunk-54WLIPIQ.js";
66
+ runCommandForAgent,
67
+ toolsFromCommands
68
+ } from "./chunk-WGGUKQE7.js";
69
+ import {
70
+ callerOf,
71
+ callingAgent
72
+ } from "./chunk-YPJCURT6.js";
73
+ import {
74
+ capability,
75
+ dateWindow
76
+ } from "./chunk-QYRK4XXH.js";
77
+ import {
78
+ McpServer,
79
+ ResourceTemplate
80
+ } from "./chunk-PL5P7UKW.js";
71
81
  import {
72
82
  warmEmbedders
73
- } from "./chunk-6A44ZZFC.js";
83
+ } from "./chunk-MMDFPBFZ.js";
74
84
  import {
75
85
  stdinFieldOf
76
- } from "./chunk-KHUXDSXN.js";
86
+ } from "./chunk-ZC7OEYDX.js";
77
87
  import {
78
88
  openStore,
79
89
  pdfPreviewLimits
80
- } from "./chunk-7NYP4RBO.js";
90
+ } from "./chunk-4R2ZJGFF.js";
81
91
  import {
82
92
  findCommand
83
- } from "./chunk-SMU6NA7F.js";
93
+ } from "./chunk-IJ7R2WMK.js";
84
94
  import {
85
95
  DEFAULT_OUTPUT_BYTES,
86
96
  changesAuthorityAt,
@@ -97,22 +107,22 @@ import {
97
107
  rootOf2 as rootOf,
98
108
  sealed,
99
109
  snakeKeys
100
- } from "./chunk-UKBK2VWZ.js";
110
+ } from "./chunk-CDKXZLMP.js";
101
111
  import {
102
112
  withCaller
103
- } from "./chunk-QWO7L4UH.js";
113
+ } from "./chunk-L47PFECD.js";
104
114
  import {
105
115
  readOnlyLockOf
106
- } from "./chunk-KEN4B57V.js";
116
+ } from "./chunk-OJSPB4LA.js";
107
117
  import {
108
118
  typedCommand
109
- } from "./chunk-LBZEZO32.js";
119
+ } from "./chunk-HD7DV5B2.js";
110
120
  import {
111
121
  isCliFailure
112
- } from "./chunk-ZYAHZKYF.js";
122
+ } from "./chunk-WPXVJGSL.js";
113
123
  import {
114
124
  timezoneOf
115
- } from "./chunk-RABUG4KA.js";
125
+ } from "./chunk-NYEVPAF2.js";
116
126
  import {
117
127
  description,
118
128
  errorObjectOf,
@@ -129,19 +139,19 @@ import {
129
139
  regex,
130
140
  strictObject,
131
141
  string
132
- } from "./chunk-QVGEL66U.js";
142
+ } from "./chunk-SPXNI53Z.js";
133
143
  import {
134
144
  CliError,
135
145
  visibleControls
136
- } from "./chunk-LIQMUDIZ.js";
146
+ } from "./chunk-PK5WEGPJ.js";
137
147
  import {
138
148
  __name
139
149
  } from "./chunk-ZVVMGPBJ.js";
140
150
 
141
- // node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/mcp/server.js
151
+ // node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/mcp/server.js
142
152
  import { randomUUID } from "node:crypto";
143
153
 
144
- // node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/mcp/agent-log.js
154
+ // node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/mcp/agent-log.js
145
155
  var agentLog = /* @__PURE__ */ __name((open) => {
146
156
  let held;
147
157
  return {
@@ -160,7 +170,7 @@ var agentLog = /* @__PURE__ */ __name((open) => {
160
170
  };
161
171
  }, "agentLog");
162
172
 
163
- // node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/mcp/resources.js
173
+ // node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/mcp/resources.js
164
174
  var LISTED = 100;
165
175
  var registerResources = /* @__PURE__ */ __name((server, session, { command, name, limit, recorded, withStore, messenger, guard, assertRead }) => {
166
176
  server.registerResource("chat", new ResourceTemplate(`${command}://chat/{id}`, {
@@ -198,7 +208,7 @@ var registerResources = /* @__PURE__ */ __name((server, session, { command, name
198
208
  });
199
209
  }, "registerResources");
200
210
 
201
- // node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/mcp/session.js
211
+ // node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/mcp/session.js
202
212
  var HARMLESS = /* @__PURE__ */ new Set(["validation_error", "not_found", "permission_error", "confirmation_required", "rate_limited"]);
203
213
  var harmless = /* @__PURE__ */ __name((code) => HARMLESS.has(code), "harmless");
204
214
  var MessengerSession = class {
@@ -273,7 +283,7 @@ var MessengerSession = class {
273
283
  }
274
284
  };
275
285
 
276
- // node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/mcp/tools/attachments.js
286
+ // node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/mcp/tools/attachments.js
277
287
  var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
278
288
  const _command = messenger.app.command;
279
289
  return {
@@ -327,7 +337,7 @@ var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
327
337
  };
328
338
  }, "attachmentsTools");
329
339
 
330
- // node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/mcp/tools/messages-photo.js
340
+ // node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/mcp/tools/messages-photo.js
331
341
  var PHOTO_LIMIT = 512 * 1024;
332
342
  var IMAGE_TYPES = [
333
343
  ["image/jpeg", (b) => b[0] === 255 && b[1] === 216 && b[2] === 255],
@@ -383,7 +393,7 @@ var readUpTo = /* @__PURE__ */ __name(async (file, limit, saveIt) => {
383
393
  return new Uint8Array(Buffer.concat(chunks));
384
394
  }, "readUpTo");
385
395
 
386
- // node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/mcp/tools/stats.js
396
+ // node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/mcp/tools/stats.js
387
397
  var statsTools = /* @__PURE__ */ __name((messenger) => ({
388
398
  stats_charts: tool({
389
399
  title: "A chart from a chat's statistics",
@@ -420,14 +430,14 @@ var statsTools = /* @__PURE__ */ __name((messenger) => ({
420
430
  })
421
431
  }), "statsTools");
422
432
 
423
- // node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/mcp/tools.js
433
+ // node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/mcp/tools.js
424
434
  var pictureTools = /* @__PURE__ */ __name((messenger) => Object.fromEntries(Object.entries({
425
435
  ...messagesPhotoTools(messenger),
426
436
  ...attachmentsTools(messenger),
427
437
  ...statsTools(messenger)
428
438
  }).map(([name, definition]) => [name, { ...definition, input: strictObject(definition.input.entries) }])), "pictureTools");
429
439
 
430
- // node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/mcp/server.js
440
+ // node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/mcp/server.js
431
441
  var PER_RUN = /* @__PURE__ */ new Set([
432
442
  "streams",
433
443
  "stdin",
@@ -743,7 +753,7 @@ var serveOverStdio = /* @__PURE__ */ __name(async (command, context, messenger,
743
753
  }, "serveOverStdio");
744
754
  var serveOverHttpUntilStopped = /* @__PURE__ */ __name(async (command, context, messenger, options, http) => {
745
755
  const { session, embedders, build, log } = createServer(command, context, messenger, options);
746
- const { serveOverHttp } = await import("./serve-NCJ52MY3.js");
756
+ const { serveOverHttp } = await import("./serve-VSLLMILH.js");
747
757
  const appName = messenger.app.command;
748
758
  const appEnvPrefix = messenger.app.envPrefix;
749
759
  const listening = await serveOverHttp(build, {
@@ -3,15 +3,15 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  readSharedSection,
5
5
  writeSharedSection
6
- } from "./chunk-WCYKVX3B.js";
6
+ } from "./chunk-77E7Q4EQ.js";
7
7
  import {
8
8
  CliError
9
- } from "./chunk-LIQMUDIZ.js";
9
+ } from "./chunk-PK5WEGPJ.js";
10
10
  import {
11
11
  __name
12
12
  } from "./chunk-ZVVMGPBJ.js";
13
13
 
14
- // node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/cli/setup-answers.js
14
+ // node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/cli/setup-answers.js
15
15
  var PERMISSION_ANSWERS = ["readonly", "allow"];
16
16
  var QUESTIONS = ["languages", "tools", "permissions"];
17
17
  var SECTION = "setup";