@wirecat/tg-cli 0.102.0 → 0.103.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 (114) hide show
  1. package/dist/bin/tg.js +31 -19
  2. package/dist/bundle/{adapter-M2HRSFFL.js → adapter-QG3YFFOY.js} +49 -48
  3. package/dist/bundle/{all-profiles-GOD2QNTK.js → all-profiles-ECXH3TBF.js} +13 -13
  4. package/dist/bundle/{anthropic-LKU7RWMA.js → anthropic-5MKO3QX7.js} +10 -10
  5. package/dist/bundle/{bot-api-X3MPFVPL.js → bot-api-4DQPIOMK.js} +50 -49
  6. package/dist/bundle/{bot-history-OUMVVG22.js → bot-history-UN74XXLU.js} +19 -19
  7. package/dist/bundle/{bun-LIZ6MKFS.js → bun-PS73VF2C.js} +5 -5
  8. package/dist/bundle/{bun-sqlite-2IFQYQ44.js → bun-sqlite-RAWGPH23.js} +8 -8
  9. package/dist/bundle/{chunk-ZZLKX62Z.js → chunk-2ABQZVK4.js} +3 -3
  10. package/dist/bundle/{chunk-5D6OJREA.js → chunk-3CP7RK5R.js} +4 -4
  11. package/dist/bundle/{chunk-QL7CQ6VZ.js → chunk-3IXKDIPH.js} +48 -48
  12. package/dist/bundle/{chunk-F2TG3BA2.js → chunk-3QX6SOEO.js} +9 -9
  13. package/dist/bundle/{chunk-MGG7JSNO.js → chunk-537O7OVE.js} +6 -6
  14. package/dist/bundle/{chunk-M5UH5CF3.js → chunk-57XGUIXA.js} +8 -8
  15. package/dist/bundle/{chunk-WMOEOVWZ.js → chunk-5D4AEUVA.js} +3 -3
  16. package/dist/bundle/{chunk-ENE5CSVY.js → chunk-5HPAPVCB.js} +276 -260
  17. package/dist/bundle/{chunk-OEJ5DMCX.js → chunk-67SRVSPU.js} +10 -10
  18. package/dist/bundle/{chunk-CLWYQNSC.js → chunk-6N25NZOE.js} +9 -9
  19. package/dist/bundle/{chunk-4QB4WDLT.js → chunk-AAMJZJYC.js} +15 -15
  20. package/dist/bundle/{chunk-AVWK4NCW.js → chunk-ADLS6FVG.js} +13 -13
  21. package/dist/bundle/{chunk-2SUTCDGO.js → chunk-AUKAZRF6.js} +5 -5
  22. package/dist/bundle/{chunk-OHBHHBYL.js → chunk-BV4N333Y.js} +6 -6
  23. package/dist/bundle/{chunk-UR6ASUSG.js → chunk-BYYSVINK.js} +6 -6
  24. package/dist/bundle/{chunk-Y4XSWI22.js → chunk-CMQ34EZL.js} +6 -6
  25. package/dist/bundle/{chunk-ERQDBK5I.js → chunk-COZ74WW4.js} +4 -4
  26. package/dist/bundle/{chunk-7BFO3DY6.js → chunk-DFDN6AUB.js} +2 -2
  27. package/dist/bundle/{chunk-264DAFJV.js → chunk-DLF3H6NP.js} +7 -7
  28. package/dist/bundle/{chunk-BQYTIYGB.js → chunk-DWQ4QT6X.js} +96 -96
  29. package/dist/bundle/{chunk-DE7LFMY2.js → chunk-EMC57SOZ.js} +11 -11
  30. package/dist/bundle/{chunk-GSKFAE3I.js → chunk-EQHQ2AX3.js} +148 -55
  31. package/dist/bundle/{chunk-XXTJUZMB.js → chunk-F27OI4J2.js} +4 -4
  32. package/dist/bundle/{chunk-2XBSVRT2.js → chunk-FG2QTYEF.js} +4 -4
  33. package/dist/bundle/{chunk-334UBWOB.js → chunk-FSPDODVT.js} +14 -14
  34. package/dist/bundle/{chunk-YHB57PFN.js → chunk-G5IMOOPB.js} +4 -4
  35. package/dist/bundle/{chunk-AUOXTGTU.js → chunk-GO354DJ5.js} +4 -4
  36. package/dist/bundle/{chunk-FOUE7XLK.js → chunk-H2UTBYFC.js} +4 -4
  37. package/dist/bundle/{chunk-V52SBQYF.js → chunk-HCDZWFXO.js} +17 -17
  38. package/dist/bundle/{chunk-5VSR5ENL.js → chunk-KCVDWZWS.js} +11 -11
  39. package/dist/bundle/{chunk-TV5DGHBT.js → chunk-KQ5BUI5T.js} +248 -248
  40. package/dist/bundle/{chunk-U4RRZUNP.js → chunk-LAYPLF7G.js} +35 -282
  41. package/dist/bundle/{chunk-5KU4UQBM.js → chunk-MFS52LTZ.js} +4 -4
  42. package/dist/bundle/{chunk-FBWOQMPE.js → chunk-MHHDVR4G.js} +227 -283
  43. package/dist/bundle/{chunk-VUJ34PEQ.js → chunk-NIVZHTN4.js} +15 -15
  44. package/dist/bundle/{chunk-JFSVXMN6.js → chunk-NKN54EDN.js} +6 -6
  45. package/dist/bundle/chunk-O5EHUB2V.js +2 -0
  46. package/dist/bundle/{chunk-PSH7K6TL.js → chunk-OGVBRRWY.js} +25 -25
  47. package/dist/bundle/{chunk-Q2NYEX4A.js → chunk-Q2LBOPKO.js} +57 -27
  48. package/dist/bundle/{chunk-UK3GAN7Q.js → chunk-QF7VVIF4.js} +11 -11
  49. package/dist/bundle/{chunk-WVEHUKCZ.js → chunk-RD7SSY7H.js} +4 -4
  50. package/dist/bundle/{chunk-TXBUDJ3P.js → chunk-RKQIEJFR.js} +5 -5
  51. package/dist/bundle/chunk-RMC2S3F4.js +264 -0
  52. package/dist/bundle/{chunk-4PDEQL6T.js → chunk-S5M4HFOZ.js} +6 -6
  53. package/dist/bundle/{chunk-BBC546ZA.js → chunk-SSALGKMJ.js} +6 -6
  54. package/dist/bundle/{chunk-QEPZUFPL.js → chunk-SSV37M5T.js} +59 -59
  55. package/dist/bundle/{chunk-DG62L57H.js → chunk-T4SDOYPY.js} +20 -20
  56. package/dist/bundle/{chunk-HLAZ65AW.js → chunk-TEO2KP52.js} +5 -5
  57. package/dist/bundle/{chunk-ZRNRQFTF.js → chunk-TPFLD4OM.js} +5 -5
  58. package/dist/bundle/{chunk-PYTOIDSM.js → chunk-VMU4SGCE.js} +7 -7
  59. package/dist/bundle/{chunk-W5EB4JLV.js → chunk-VZN5LD26.js} +6 -6
  60. package/dist/bundle/{chunk-ZJVZXJOG.js → chunk-WAGDZB62.js} +5 -5
  61. package/dist/bundle/{chunk-CRZPQQHE.js → chunk-WULARSC4.js} +26 -26
  62. package/dist/bundle/{chunk-BJG6JA5U.js → chunk-Y5E2WNWB.js} +4 -4
  63. package/dist/bundle/{chunk-OCWARAFE.js → chunk-YI72UVTJ.js} +5 -5
  64. package/dist/bundle/{chunk-SRU3OF4R.js → chunk-Z2DPNTSU.js} +5 -5
  65. package/dist/bundle/{chunk-5DFGJPT6.js → chunk-ZHXSRYJ5.js} +6 -6
  66. package/dist/bundle/{chunk-AFV74GK3.js → chunk-ZVVMGPBJ.js} +2 -2
  67. package/dist/bundle/command-contract-ZGFJTLB2.js +32 -0
  68. package/dist/bundle/{dist-RJMT44PL.js → dist-I7OZPHAZ.js} +3 -3
  69. package/dist/bundle/{echarts-27W2CIBD.js → echarts-UEQDIHVQ.js} +5 -5
  70. package/dist/bundle/{embed-FGJ273X2.js → embed-5DPZKRW5.js} +9 -8
  71. package/dist/bundle/{embedder-7ELL3CQ3.js → embedder-NBQXDXAO.js} +12 -11
  72. package/dist/bundle/entry-EE6YRAP4.js +14 -0
  73. package/dist/bundle/first-run-OSEVVWNT.js +24 -0
  74. package/dist/bundle/first-screen-753THOU6.js +30 -0
  75. package/dist/bundle/identity-LNH33PN3.js +11 -0
  76. package/dist/bundle/instructions-PYGVIT7I.js +9 -0
  77. package/dist/bundle/{mcp-4Y37G2UY.js → mcp-OQBZXELQ.js} +5 -5
  78. package/dist/bundle/{node-RSL3HANO.js → node-3OBKCX6M.js} +5 -5
  79. package/dist/bundle/{node-IUL5HSYI.js → node-P4E63KXA.js} +5 -5
  80. package/dist/bundle/node-TLZSIHIJ.js +21 -0
  81. package/dist/bundle/{node-sqlite-7R3PYQGJ.js → node-sqlite-DMMTDRFB.js} +8 -8
  82. package/dist/bundle/oauth-FX5DDCRS.js +18 -0
  83. package/dist/bundle/open-G6QRQAAL.js +20 -0
  84. package/dist/bundle/{process-RMV3AKLB.js → process-47MMIFIJ.js} +5 -5
  85. package/dist/bundle/{program-PIUYQHBF.js → program-LBHBWRK5.js} +52 -51
  86. package/dist/bundle/prompt-CJ6Y4JYC.js +13 -0
  87. package/dist/bundle/proxy-transport-YSBYG26I.js +17 -0
  88. package/dist/bundle/{recognize-3GMOLZF4.js → recognize-7BLTOI45.js} +9 -9
  89. package/dist/bundle/remote-Q4A4JY6U.js +27 -0
  90. package/dist/bundle/{rerank-W3OSXXBN.js → rerank-CQAR46L3.js} +10 -9
  91. package/dist/bundle/{serve-ZCPO44NO.js → serve-2UO2YMMG.js} +13 -13
  92. package/dist/bundle/{server-YWL4HDOP.js → server-6XYURULQ.js} +53 -50
  93. package/dist/bundle/{server-FXU4QFRB.js → server-FMKC4RLL.js} +37 -35
  94. package/dist/bundle/{state-MJPTDIB5.js → state-RNWN2RDY.js} +9 -9
  95. package/dist/bundle/{store-6VNQG56O.js → store-BBHTR477.js} +14 -14
  96. package/dist/bundle/store-maintenance-command-GD6OLRXH.js +44 -0
  97. package/dist/bundle/tg.js +8 -8
  98. package/dist/version.d.ts +1 -1
  99. package/dist/version.js +1 -1
  100. package/package.json +4 -4
  101. package/dist/bundle/chunk-2SJOUK6J.js +0 -2
  102. package/dist/bundle/command-contract-A6VZN3ZR.js +0 -31
  103. package/dist/bundle/entry-SEE5YWIX.js +0 -14
  104. package/dist/bundle/first-run-BD7FEC3W.js +0 -24
  105. package/dist/bundle/first-screen-ASZV6LSA.js +0 -29
  106. package/dist/bundle/identity-QR4F42T6.js +0 -11
  107. package/dist/bundle/instructions-L74K64PV.js +0 -9
  108. package/dist/bundle/node-UPPL626U.js +0 -21
  109. package/dist/bundle/oauth-4ESGXF6U.js +0 -18
  110. package/dist/bundle/open-DFYEUGTA.js +0 -20
  111. package/dist/bundle/prompt-H7GYQQLL.js +0 -13
  112. package/dist/bundle/proxy-transport-G4MA6BGU.js +0 -17
  113. package/dist/bundle/remote-IRWTCI2B.js +0 -26
  114. package/dist/bundle/store-maintenance-command-62TQTMER.js +0 -43
@@ -1,30 +1,30 @@
1
- import { createRequire as __tgRequire } from "node:module";
2
- const require = __tgRequire(import.meta.url);
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  envName,
5
5
  readOnlyLockOf
6
- } from "./chunk-2SUTCDGO.js";
6
+ } from "./chunk-AUKAZRF6.js";
7
7
  import {
8
8
  CAPABILITY_STATEMENTS,
9
9
  storeCapable
10
- } from "./chunk-CLWYQNSC.js";
10
+ } from "./chunk-6N25NZOE.js";
11
11
  import {
12
12
  catchCrashes
13
- } from "./chunk-DG62L57H.js";
13
+ } from "./chunk-T4SDOYPY.js";
14
14
  import {
15
15
  CliError
16
- } from "./chunk-OEJ5DMCX.js";
16
+ } from "./chunk-67SRVSPU.js";
17
17
  import {
18
18
  importFrom
19
- } from "./chunk-BJG6JA5U.js";
19
+ } from "./chunk-Y5E2WNWB.js";
20
20
  import {
21
21
  __name
22
- } from "./chunk-AFV74GK3.js";
22
+ } from "./chunk-ZVVMGPBJ.js";
23
23
 
24
- // node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/cli/entry.js
24
+ // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/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.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/sqlite-runtime.js
27
+ // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/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.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/cli/argv-log.js
115
+ // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/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.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/cli/entry.js
139
+ // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/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-BD7FEC3W.js"),
194
- import("./command-contract-A6VZN3ZR.js")
193
+ import("./first-run-OSEVVWNT.js"),
194
+ import("./command-contract-ZGFJTLB2.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-H7GYQQLL.js");
209
+ const { readSecret } = await import("./prompt-CJ6Y4JYC.js");
210
210
  const answer = await readSecret(`${question} [y/N] `, {
211
211
  input: io.stdin,
212
212
  output: io.stderr,
@@ -1,16 +1,16 @@
1
- import { createRequire as __tgRequire } from "node:module";
2
- const require = __tgRequire(import.meta.url);
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  unit
5
- } from "./chunk-U4RRZUNP.js";
5
+ } from "./chunk-LAYPLF7G.js";
6
6
  import {
7
7
  CliError
8
- } from "./chunk-OEJ5DMCX.js";
8
+ } from "./chunk-67SRVSPU.js";
9
9
  import {
10
10
  __name
11
- } from "./chunk-AFV74GK3.js";
11
+ } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/embeddings/remote.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/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 = {
@@ -0,0 +1,2 @@
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
@@ -1,5 +1,5 @@
1
- import { createRequire as __tgRequire } from "node:module";
2
- const require = __tgRequire(import.meta.url);
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  OFFLINE,
5
5
  capability,
@@ -10,7 +10,7 @@ import {
10
10
  refuseLacking,
11
11
  servicesFor,
12
12
  throughWrapper
13
- } from "./chunk-FBWOQMPE.js";
13
+ } from "./chunk-MHHDVR4G.js";
14
14
  import {
15
15
  CEILING_KEY,
16
16
  LOG_ATTRIBUTES,
@@ -34,35 +34,35 @@ import {
34
34
  rememberAccount,
35
35
  rootOf2 as rootOf,
36
36
  skipFlagFor
37
- } from "./chunk-GSKFAE3I.js";
37
+ } from "./chunk-EQHQ2AX3.js";
38
38
  import {
39
39
  isCliFailure,
40
40
  providerErrorKey
41
- } from "./chunk-DE7LFMY2.js";
41
+ } from "./chunk-EMC57SOZ.js";
42
42
  import {
43
43
  MESSENGER_CHANGE_REFUSAL,
44
44
  readOnlyRefusal
45
- } from "./chunk-2SUTCDGO.js";
45
+ } from "./chunk-AUKAZRF6.js";
46
46
  import {
47
47
  servingProfiles
48
- } from "./chunk-W5EB4JLV.js";
48
+ } from "./chunk-VZN5LD26.js";
49
49
  import {
50
50
  openStore
51
- } from "./chunk-TV5DGHBT.js";
51
+ } from "./chunk-KQ5BUI5T.js";
52
52
  import {
53
53
  logRecordOf,
54
54
  realSleep,
55
55
  resolvePaths,
56
56
  writeSecurely
57
- } from "./chunk-DG62L57H.js";
57
+ } from "./chunk-T4SDOYPY.js";
58
58
  import {
59
59
  CliError
60
- } from "./chunk-OEJ5DMCX.js";
60
+ } from "./chunk-67SRVSPU.js";
61
61
  import {
62
62
  __name
63
- } from "./chunk-AFV74GK3.js";
63
+ } from "./chunk-ZVVMGPBJ.js";
64
64
 
65
- // node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/cli/messenger/ask.js
65
+ // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/cli/messenger/ask.js
66
66
  import { openSync } from "node:fs";
67
67
  import { createInterface } from "node:readline";
68
68
  import { ReadStream } from "node:tty";
@@ -117,10 +117,10 @@ var terminalAsker = /* @__PURE__ */ __name((command) => async (key, request) =>
117
117
  throw new CliError("cancelled", `${key}: not done \u2014 the answer was no`);
118
118
  }, "terminalAsker");
119
119
 
120
- // node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/sends/guard.js
120
+ // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/sends/guard.js
121
121
  import { randomUUID } from "node:crypto";
122
122
 
123
- // node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/sends/flood.js
123
+ // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/sends/flood.js
124
124
  import { mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
125
125
  import { dirname, join } from "node:path";
126
126
  var MOST_DEADLINES = 50;
@@ -204,11 +204,11 @@ var FloodMemory = class {
204
204
  }
205
205
  };
206
206
 
207
- // node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/sends/journal.js
207
+ // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/sends/journal.js
208
208
  import { appendFileSync, mkdirSync as mkdirSync3, readFileSync as readFileSync2 } from "node:fs";
209
209
  import { dirname as dirname3, join as join2 } from "node:path";
210
210
 
211
- // node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/sends/file-lock.js
211
+ // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/sends/file-lock.js
212
212
  import { closeSync, mkdirSync as mkdirSync2, openSync as openSync2, statSync, unlinkSync } from "node:fs";
213
213
  import { dirname as dirname2 } from "node:path";
214
214
  var LOCK_WAIT_MS = 5e3;
@@ -275,7 +275,7 @@ var lockTime = /* @__PURE__ */ __name((lock) => {
275
275
  }
276
276
  }, "lockTime");
277
277
 
278
- // node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/sends/journal.js
278
+ // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/sends/journal.js
279
279
  var sendsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "sends", `${profile}.jsonl`), "sendsPathFor");
280
280
  var SendJournal = class {
281
281
  static {
@@ -352,7 +352,7 @@ var withSendId = /* @__PURE__ */ __name((entry) => {
352
352
  return cid === void 0 || rest.sendId !== void 0 ? rest : { ...rest, sendId: String(cid) };
353
353
  }, "withSendId");
354
354
 
355
- // node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/sends/recipients.js
355
+ // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/sends/recipients.js
356
356
  import { existsSync, readFileSync as readFileSync3, rmSync } from "node:fs";
357
357
  import { join as join3 } from "node:path";
358
358
  var recipientsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "profiles", `${profile}.recipients.json`), "recipientsPathFor");
@@ -464,7 +464,7 @@ var RecipientList = class {
464
464
  }
465
465
  };
466
466
 
467
- // node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/sends/guard.js
467
+ // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/sends/guard.js
468
468
  var HOUR_MS = 60 * 60 * 1e3;
469
469
  var READS_UNDER_HOLD = /* @__PURE__ */ new Set([
470
470
  "attachments.extract",
@@ -657,7 +657,7 @@ var guardFor = /* @__PURE__ */ __name((app, settings, warn, env = process.env, a
657
657
  }), "guardFor");
658
658
  var journalFailure = /* @__PURE__ */ __name((error) => error?.code ?? (error instanceof Error ? error.name : "error"), "journalFailure");
659
659
 
660
- // node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/sends/pace.js
660
+ // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/sends/pace.js
661
661
  import { readFileSync as readFileSync4, renameSync as renameSync2, writeFileSync as writeFileSync2 } from "node:fs";
662
662
  import { join as join4 } from "node:path";
663
663
  var DEFAULT_PACE = { perMinute: 60, burst: 20 };
@@ -716,7 +716,7 @@ var Pacer = class {
716
716
  }
717
717
  };
718
718
 
719
- // node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/cli/permission-keys.js
719
+ // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/cli/permission-keys.js
720
720
  var pathOf = /* @__PURE__ */ __name((command) => {
721
721
  const words = [];
722
722
  for (let at = command; at?.parent; at = at.parent)
@@ -776,7 +776,7 @@ var refuseUnknownPermissionKeys = /* @__PURE__ */ __name((command, settings, too
776
776
  throw new CliError("validation_error", `--permission ${key} names no command`, { permission: key });
777
777
  }, "refuseUnknownPermissionKeys");
778
778
 
779
- // node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
779
+ // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
780
780
  var LONG_LIVED = /* @__PURE__ */ new Set(["self", "newSendId", "close", "formatMarkdown", "formatHtml", "storedChats"]);
781
781
  var LISTENING = /* @__PURE__ */ new Set(["watch", "feed", "listen", "listenHistory"]);
782
782
  var BLOCKING = /* @__PURE__ */ new Set(["frozen", "limited", "banned"]);
@@ -895,7 +895,7 @@ var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer })
895
895
  });
896
896
  }, "flooded");
897
897
 
898
- // node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/cli/messenger/observed.js
898
+ // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/cli/messenger/observed.js
899
899
  var observed = /* @__PURE__ */ __name((messenger, events) => {
900
900
  const timed = /* @__PURE__ */ __name(async (operation, named, work, after) => {
901
901
  const write = currentOperation();
@@ -994,7 +994,7 @@ var byPart = /* @__PURE__ */ __name((batch, counts) => {
994
994
  counts[part] = (counts[part] ?? 0) + items.length;
995
995
  }, "byPart");
996
996
 
997
- // node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/cli/messenger/stored.js
997
+ // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/cli/messenger/stored.js
998
998
  var REKEY_PACING = { lockMs: 50, pauseMs: 25 };
999
999
  var stored = /* @__PURE__ */ __name((messenger, { account, store, warn, events, pending, announcing, deletedWithoutChat, profile, rekeyed, rekeyPacing = REKEY_PACING, closing, namesFromStore, recipientIds, countsUnread = false }) => {
1000
1000
  let warned = false;
@@ -1486,7 +1486,7 @@ var keep = /* @__PURE__ */ __name(async (store, account, event, seenAt, among, c
1486
1486
  }
1487
1487
  }, "keep");
1488
1488
 
1489
- // node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/cli/messenger/context.js
1489
+ // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/cli/messenger/context.js
1490
1490
  var lazyStore = /* @__PURE__ */ __name((env, command, version) => {
1491
1491
  let opened;
1492
1492
  return {
@@ -1,5 +1,5 @@
1
- import { createRequire as __tgRequire } from "node:module";
2
- const require = __tgRequire(import.meta.url);
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  UNTRUSTED,
5
5
  UNTRUSTED_NEUTRAL,
@@ -7,20 +7,20 @@ import {
7
7
  agentJson,
8
8
  commandAvailability,
9
9
  failureContext
10
- } from "./chunk-V52SBQYF.js";
10
+ } from "./chunk-HCDZWFXO.js";
11
11
  import {
12
12
  callerOf
13
- } from "./chunk-BBC546ZA.js";
13
+ } from "./chunk-SSALGKMJ.js";
14
14
  import {
15
15
  lentConnection,
16
16
  onlineDeps,
17
17
  refuseLacking,
18
18
  servicesFor,
19
19
  storeModeDeps
20
- } from "./chunk-FBWOQMPE.js";
20
+ } from "./chunk-MHHDVR4G.js";
21
21
  import {
22
22
  ENTITIES
23
- } from "./chunk-BQYTIYGB.js";
23
+ } from "./chunk-DWQ4QT6X.js";
24
24
  import {
25
25
  DEFAULT_OUTPUT_BYTES,
26
26
  LOCAL_WRITE,
@@ -41,21 +41,21 @@ import {
41
41
  refuseStoreChange,
42
42
  sealed,
43
43
  startRecording
44
- } from "./chunk-GSKFAE3I.js";
44
+ } from "./chunk-EQHQ2AX3.js";
45
45
  import {
46
46
  currentCaller,
47
47
  keepsSuccess,
48
48
  runContextOf,
49
49
  withCaller
50
- } from "./chunk-DE7LFMY2.js";
50
+ } from "./chunk-EMC57SOZ.js";
51
51
  import {
52
52
  MAX_BUFFERED_INPUT
53
- } from "./chunk-HLAZ65AW.js";
53
+ } from "./chunk-TEO2KP52.js";
54
54
  import {
55
55
  captureStreams,
56
56
  errorObjectOf,
57
57
  mcpErrorResult
58
- } from "./chunk-DG62L57H.js";
58
+ } from "./chunk-T4SDOYPY.js";
59
59
  import {
60
60
  CliError,
61
61
  SNAKE_CASE,
@@ -94,15 +94,15 @@ import {
94
94
  unknown,
95
95
  word,
96
96
  writes
97
- } from "./chunk-OEJ5DMCX.js";
97
+ } from "./chunk-67SRVSPU.js";
98
98
  import {
99
99
  __name
100
- } from "./chunk-AFV74GK3.js";
100
+ } from "./chunk-ZVVMGPBJ.js";
101
101
 
102
- // node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/mcp/agent.js
102
+ // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/mcp/agent.js
103
103
  import { Readable } from "node:stream";
104
104
 
105
- // node_modules/.pnpm/@wirecat+cli-base@0.64.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/lint.js
105
+ // node_modules/.pnpm/@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/lint.js
106
106
  var LINT_SEVERITIES = ["high", "medium", "low"];
107
107
  var lintRuleSchema = strictObject({
108
108
  id: word,
@@ -229,7 +229,7 @@ var overridesSchema = array(strictObject({
229
229
  review_after: pipe(string(), isoDate("a date, YYYY-MM-DD"))
230
230
  }));
231
231
 
232
- // node_modules/.pnpm/@wirecat+cli-base@0.64.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/audit.js
232
+ // node_modules/.pnpm/@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/audit.js
233
233
  var auditRuleSchema = strictObject({ id: word, severity: picklist(LINT_SEVERITIES), summary: text });
234
234
  var defineAuditRules = /* @__PURE__ */ __name((input) => parseRegistry("audit rules", array(auditRuleSchema), input, (rules) => duplicates(rules.map((rule) => rule.id)).map((id) => `"${id}" is listed twice`)), "defineAuditRules");
235
235
  var AUDIT_RULES = defineAuditRules([
@@ -287,9 +287,17 @@ var PARITY_GROUPS = defineParityGroups([
287
287
  { name: "messengers", members: ["tg", "max"], covers: "tree", differences: [] },
288
288
  {
289
289
  name: "all",
290
- members: ["tg", "max", "memo", "drive", "zm", "wa", "gcal"],
290
+ members: ["tg", "max", "memo", "drive", "zm", "wa"],
291
291
  covers: ["commands", "doctor", "skill", "mcp", "upgrade", "search", "notes", "meetings"],
292
292
  differences: []
293
+ },
294
+ // gcal is compared on what it already shares with every CLI; doctor, mcp, search and skill wait until the published
295
+ // CLIs agree there (https://github.com/WireCatLabs/cli-base/issues/390), then gcal moves back into "all".
296
+ {
297
+ name: "gcal-shared",
298
+ members: ["tg", "max", "memo", "drive", "zm", "wa", "gcal"],
299
+ covers: ["commands", "upgrade", "notes", "meetings"],
300
+ differences: []
293
301
  }
294
302
  ]);
295
303
  var requiredRootSchema = strictObject({ path: pipe(array(segment), minLength(1)), meaning: text });
@@ -303,7 +311,7 @@ var REQUIRED_ROOTS = defineRequiredRoots([
303
311
  { path: ["upgrade"], meaning: "updates the CLI" }
304
312
  ]);
305
313
 
306
- // node_modules/.pnpm/@wirecat+cli-base@0.64.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/fields.js
314
+ // node_modules/.pnpm/@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/fields.js
307
315
  var fieldRuleSchema = strictObject({ id: word, rule: text });
308
316
  var defineFieldRules = /* @__PURE__ */ __name((input) => parseRegistry("output field rules", array(fieldRuleSchema), input, (rules) => duplicates(rules.map((rule) => rule.id)).map((id) => `"${id}" is listed twice`)), "defineFieldRules");
309
317
  var FIELD_RULES = defineFieldRules([
@@ -319,7 +327,7 @@ var FIELD_RULES = defineFieldRules([
319
327
  }
320
328
  ]);
321
329
 
322
- // node_modules/.pnpm/@wirecat+cli-base@0.64.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/identifiers.js
330
+ // node_modules/.pnpm/@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/identifiers.js
323
331
  var key = pipe(string(), regex(SNAKE_CASE, "a snake_case key"));
324
332
  var identifierSchema = strictObject({ key, meaning: text, replaces: optional(array(key)) });
325
333
  var defineIdentifiers = /* @__PURE__ */ __name((input) => parseRegistry("identifiers", array(identifierSchema), input, (identifiers) => {
@@ -341,7 +349,7 @@ var IDENTIFIERS = defineIdentifiers([
341
349
  { key: "trace_id", meaning: "the distributed trace a run belongs to, from `traceparent`" }
342
350
  ]);
343
351
 
344
- // node_modules/.pnpm/@wirecat+cli-base@0.64.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-calendar.js
352
+ // node_modules/.pnpm/@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-calendar.js
345
353
  var CALENDAR_FLAGS = [
346
354
  { name: "--end-time", value: "<time>", role: "value", type: "time", meaning: "when it ends" },
347
355
  {
@@ -399,10 +407,23 @@ var CALENDAR_FLAGS = [
399
407
  role: "target",
400
408
  type: "switch",
401
409
  meaning: "act on the whole repeating event, not only this occurrence"
410
+ },
411
+ {
412
+ name: "--following",
413
+ role: "target",
414
+ type: "switch",
415
+ meaning: "act on this occurrence and every later one of the repeating event"
416
+ },
417
+ {
418
+ name: "--to-calendar",
419
+ value: "<id>",
420
+ role: "target",
421
+ type: "id",
422
+ meaning: "the calendar it moves to, of the same account"
402
423
  }
403
424
  ];
404
425
 
405
- // node_modules/.pnpm/@wirecat+cli-base@0.64.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-how.js
426
+ // node_modules/.pnpm/@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-how.js
406
427
  var HOW_FLAGS = [
407
428
  {
408
429
  name: "--limit",
@@ -1382,7 +1403,7 @@ var HOW_FLAGS = [
1382
1403
  }
1383
1404
  ];
1384
1405
 
1385
- // node_modules/.pnpm/@wirecat+cli-base@0.64.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-what.js
1406
+ // node_modules/.pnpm/@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-what.js
1386
1407
  var WHAT_FLAGS = [
1387
1408
  {
1388
1409
  name: "--analysis-provider",
@@ -1572,6 +1593,13 @@ var WHAT_FLAGS = [
1572
1593
  type: "string",
1573
1594
  meaning: "the profile to use, instead of the first word"
1574
1595
  },
1596
+ {
1597
+ name: "--profiles",
1598
+ value: "<names|all>",
1599
+ role: "scope",
1600
+ type: "list",
1601
+ meaning: "the profiles an MCP server serves, comma-separated, or all of them"
1602
+ },
1575
1603
  {
1576
1604
  name: "--history-since-time",
1577
1605
  value: "<time>",
@@ -2365,7 +2393,7 @@ var WHAT_FLAGS = [
2365
2393
  }
2366
2394
  ];
2367
2395
 
2368
- // node_modules/.pnpm/@wirecat+cli-base@0.64.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/vocabulary.js
2396
+ // node_modules/.pnpm/@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/vocabulary.js
2369
2397
  var FLAG_TYPES = [
2370
2398
  "switch",
2371
2399
  "count",
@@ -2473,7 +2501,9 @@ var verbs = [
2473
2501
  ["start", "start a running process, or a login session"],
2474
2502
  ["stop", "stop a running process"],
2475
2503
  ["restart", "stop and start a running process"],
2504
+ ["serve", "run a server in this process and answer its clients until stopped"],
2476
2505
  ["end", "end a login session"],
2506
+ ["revoke", "take back what was granted, so it stops working: a login, an invite link, a consent"],
2477
2507
  ["install", "install a system unit"],
2478
2508
  ["uninstall", "remove a system unit"],
2479
2509
  ["cancel", "stop a job or a pending thing"],
@@ -2538,7 +2568,7 @@ var verbs = [
2538
2568
  ["reject", "the owner refuses what an agent proposed"],
2539
2569
  ["review", "list what waits for the owner's decision"],
2540
2570
  ["resolve", "settle one thing that waits for the owner's decision, with the owner's choice"],
2541
- ["move", "move a file in the source"],
2571
+ ["move", "move a thing to another place in the source: a file to a folder, an event to a calendar"],
2542
2572
  ["copy", "copy a file in the source"],
2543
2573
  ["run", "run a saved job once, now, as its timer would"],
2544
2574
  ["claim", "take a thing for a while so no other agent works it at once; the claim lapses by itself"],
@@ -2717,7 +2747,7 @@ var VOCABULARY = defineVocabulary({
2717
2747
  flags: [...HOW_FLAGS, ...WHAT_FLAGS, ...CALENDAR_FLAGS]
2718
2748
  });
2719
2749
 
2720
- // node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/mcp/agent.js
2750
+ // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/mcp/agent.js
2721
2751
  var TYPES = new Map(VOCABULARY.flags.map((flag) => [flag.name, flag.type]));
2722
2752
  var snake = /* @__PURE__ */ __name((name) => name.replaceAll("|", "_or_").replace(/[^a-z0-9]+/gi, "_"), "snake");
2723
2753
  var longOf = /* @__PURE__ */ __name((option) => option.flags.match(/--[a-z0-9][a-z0-9-]*/)?.[0], "longOf");
@@ -2836,7 +2866,7 @@ var toolsFromCommands = /* @__PURE__ */ __name((commands, options = {}) => {
2836
2866
  path: info.path,
2837
2867
  title: info.summary ?? info.description,
2838
2868
  description: info.description,
2839
- writes: writes(info.effects),
2869
+ writes: writes(info.effects) && options.fetchOnly?.(info.path) !== true,
2840
2870
  input: schemaOf(fieldsOf(info, options)),
2841
2871
  ...info.output ? { output: info.output } : {}
2842
2872
  }));
@@ -2929,7 +2959,7 @@ var runCommandForAgent = /* @__PURE__ */ __name(async (program, path, input, ctx
2929
2959
  }
2930
2960
  }, "runCommandForAgent");
2931
2961
 
2932
- // node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/mcp/tool.js
2962
+ // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/mcp/tool.js
2933
2963
  var limit = optional(pipe(number(), integer(), minValue(1), maxValue(100), description("how many")));
2934
2964
  var page = optional(pipe(number(), integer(), minValue(1), description("which page, from 1")));
2935
2965
  var message = pipe(
@@ -3188,7 +3218,7 @@ var failed = /* @__PURE__ */ __name((error, errors, effects) => {
3188
3218
  return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(error, context))));
3189
3219
  }, "failed");
3190
3220
 
3191
- // node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/mcp/surface.js
3221
+ // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/mcp/surface.js
3192
3222
  import { randomUUID } from "node:crypto";
3193
3223
  var MATCHES = 8;
3194
3224
  var ANSWER = answerSchema();
@@ -1,13 +1,13 @@
1
- import { createRequire as __tgRequire } from "node:module";
2
- const require = __tgRequire(import.meta.url);
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  wrapAnsi
5
- } from "./chunk-ZZLKX62Z.js";
5
+ } from "./chunk-2ABQZVK4.js";
6
6
  import {
7
7
  commandPathOf,
8
8
  findCommand,
9
9
  outputOf
10
- } from "./chunk-M5UH5CF3.js";
10
+ } from "./chunk-57XGUIXA.js";
11
11
  import {
12
12
  Command,
13
13
  Help,
@@ -18,16 +18,16 @@ import {
18
18
  environmentOf,
19
19
  metaOf,
20
20
  takesProfile
21
- } from "./chunk-GSKFAE3I.js";
21
+ } from "./chunk-EQHQ2AX3.js";
22
22
  import {
23
23
  CliError,
24
24
  writes
25
- } from "./chunk-OEJ5DMCX.js";
25
+ } from "./chunk-67SRVSPU.js";
26
26
  import {
27
27
  __name
28
- } from "./chunk-AFV74GK3.js";
28
+ } from "./chunk-ZVVMGPBJ.js";
29
29
 
30
- // node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/cli/help/sections.js
30
+ // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/cli/help/sections.js
31
31
  var SECTIONS = {
32
32
  read: "Read",
33
33
  write: "Write",
@@ -92,7 +92,7 @@ var CORE_SECTIONS = {
92
92
  upgrade: "setup"
93
93
  };
94
94
 
95
- // node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/cli/help/commands-text.js
95
+ // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/cli/help/commands-text.js
96
96
  var DESCRIPTION = 90;
97
97
  var COLUMN = 52;
98
98
  var short = /* @__PURE__ */ __name((text) => {
@@ -131,7 +131,7 @@ var commandsText = /* @__PURE__ */ __name((root, commands, scope) => {
131
131
  `;
132
132
  }, "commandsText");
133
133
 
134
- // node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/cli/help/command-help.js
134
+ // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/cli/help/command-help.js
135
135
  var ARGUMENT_KINDS = {
136
136
  chat: "chat",
137
137
  chats: "chat",
@@ -321,7 +321,7 @@ var installCommandHelp = /* @__PURE__ */ __name((program, { profile = true } = {
321
321
  command.addHelpText("after", () => commandHelpText(command));
322
322
  }, "installCommandHelp");
323
323
 
324
- // node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/cli/help/first-screen.js
324
+ // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/cli/help/first-screen.js
325
325
  var WIRECAT_TOOLS = [
326
326
  {
327
327
  command: "tg",
@@ -1,10 +1,10 @@
1
- import { createRequire as __tgRequire } from "node:module";
2
- const require = __tgRequire(import.meta.url);
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  __name
5
- } from "./chunk-AFV74GK3.js";
5
+ } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/background/processes.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/background/processes.js
8
8
  import { execFileSync } from "node:child_process";
9
9
  import { readdirSync, readFileSync, readlinkSync } from "node:fs";
10
10
  var alive = /* @__PURE__ */ __name((pid) => {
@@ -1,15 +1,15 @@
1
- import { createRequire as __tgRequire } from "node:module";
2
- const require = __tgRequire(import.meta.url);
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  openCache
5
- } from "./chunk-CLWYQNSC.js";
5
+ } from "./chunk-6N25NZOE.js";
6
6
  import {
7
7
  CliError,
8
8
  isCliError
9
- } from "./chunk-OEJ5DMCX.js";
9
+ } from "./chunk-67SRVSPU.js";
10
10
  import {
11
11
  __name
12
- } from "./chunk-AFV74GK3.js";
12
+ } from "./chunk-ZVVMGPBJ.js";
13
13
 
14
14
  // dist/telegram/map.js
15
15
  import { extname } from "node:path";