@wirecat/tg-cli 0.110.0 → 0.111.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 (91) hide show
  1. package/dist/bin/tg.js +2 -2
  2. package/dist/bundle/{adapter-JWUCHTXU.js → adapter-WFC2JAD4.js} +38 -38
  3. package/dist/bundle/{all-profiles-OMRCKP54.js → all-profiles-FEUSGHT7.js} +5 -5
  4. package/dist/bundle/{anthropic-WXFHH74P.js → anthropic-O646SJIJ.js} +3 -3
  5. package/dist/bundle/{app-server-ILIPNO6T.js → app-server-7P23Y45A.js} +35 -35
  6. package/dist/bundle/{bot-api-KV765AZK.js → bot-api-WTJCL6VF.js} +39 -39
  7. package/dist/bundle/{bot-history-3P6EIM5L.js → bot-history-5J2Q4SPC.js} +10 -10
  8. package/dist/bundle/{bun-MJOYPPEN.js → bun-KUKVEKDW.js} +2 -2
  9. package/dist/bundle/{bun-sqlite-GFRVRRDZ.js → bun-sqlite-2G5TXHYE.js} +2 -2
  10. package/dist/bundle/{chunk-4BMXELWN.js → chunk-2K6IGVSI.js} +4 -4
  11. package/dist/bundle/{chunk-3L2JTAVD.js → chunk-2ZH3PUQX.js} +1 -1
  12. package/dist/bundle/{chunk-6WTLP2SI.js → chunk-33HEHPIK.js} +7 -7
  13. package/dist/bundle/{chunk-4YOPRYEY.js → chunk-3BD24JYK.js} +96 -92
  14. package/dist/bundle/{chunk-54CWOD7V.js → chunk-3WUTBGZE.js} +4 -4
  15. package/dist/bundle/{chunk-XLNYDJKG.js → chunk-43ZFY6TW.js} +1 -1
  16. package/dist/bundle/{chunk-Q35J5LCO.js → chunk-5FJQG5UZ.js} +9 -8
  17. package/dist/bundle/{chunk-3XTMVGTS.js → chunk-5ZPLOYTP.js} +205 -204
  18. package/dist/bundle/{chunk-YWSNUUW5.js → chunk-7665YBJ7.js} +5 -5
  19. package/dist/bundle/{chunk-VM7I5VKX.js → chunk-7GQLD5TJ.js} +1 -1
  20. package/dist/bundle/{chunk-NFBOZT7H.js → chunk-AUWYMMYL.js} +3 -3
  21. package/dist/bundle/{chunk-TJA3BWY3.js → chunk-BNQOUCL2.js} +1 -1
  22. package/dist/bundle/{chunk-L3YDXUDK.js → chunk-CJUSP5X2.js} +2 -2
  23. package/dist/bundle/{chunk-TDQVVXPF.js → chunk-COHMFCHD.js} +11 -11
  24. package/dist/bundle/{chunk-BYOEVYY2.js → chunk-DEG4JJHG.js} +267 -258
  25. package/dist/bundle/{chunk-YPLL3Q3M.js → chunk-DREEXESG.js} +86 -50
  26. package/dist/bundle/{chunk-4GOF43MW.js → chunk-HN6ZMUAS.js} +1 -1
  27. package/dist/bundle/{chunk-SD5J5T7M.js → chunk-ITSSCYLP.js} +9 -9
  28. package/dist/bundle/{chunk-AXNBGLO5.js → chunk-J2Z5E7TO.js} +1 -1
  29. package/dist/bundle/{chunk-6KESAYMZ.js → chunk-J4QVXR5I.js} +2 -2
  30. package/dist/bundle/{chunk-KLOFBUXA.js → chunk-K457FHD4.js} +31 -21
  31. package/dist/bundle/{chunk-RXWG7OWT.js → chunk-KE47Y4PW.js} +839 -440
  32. package/dist/bundle/{chunk-QRH2AWBZ.js → chunk-KLHLWKWC.js} +59 -47
  33. package/dist/bundle/{chunk-GPIORQAD.js → chunk-LLAZSGS7.js} +20 -20
  34. package/dist/bundle/{chunk-F7RWNBC2.js → chunk-MSGYLWCH.js} +1 -1
  35. package/dist/bundle/{chunk-YPEAEEHF.js → chunk-NIKYFRDQ.js} +1 -1
  36. package/dist/bundle/{chunk-4I6HTOCM.js → chunk-NQAV7U7C.js} +1 -1
  37. package/dist/bundle/{chunk-HCAYTAJN.js → chunk-OYVDWHP5.js} +1 -1
  38. package/dist/bundle/{chunk-RARYRHQA.js → chunk-PNUHAHTF.js} +1 -1
  39. package/dist/bundle/{chunk-MZRD776E.js → chunk-PQGWEFJ2.js} +2 -2
  40. package/dist/bundle/{chunk-NDT22GBK.js → chunk-QAC6Z675.js} +1 -1
  41. package/dist/bundle/{chunk-5CMOXHQS.js → chunk-QEAMO2TS.js} +6 -6
  42. package/dist/bundle/{chunk-7LZBMZQM.js → chunk-QLLPZWYZ.js} +3 -3
  43. package/dist/bundle/{chunk-3KOF5T4N.js → chunk-QVM2HKJP.js} +4 -4
  44. package/dist/bundle/{chunk-32HEOKI2.js → chunk-T6DSAROY.js} +11 -9
  45. package/dist/bundle/{chunk-SLAPUEMZ.js → chunk-TWZTQHP6.js} +5 -5
  46. package/dist/bundle/{chunk-W3B6EEZU.js → chunk-UDYCZ5KB.js} +1 -1
  47. package/dist/bundle/{chunk-M3XIME74.js → chunk-UFIUMPXP.js} +3 -3
  48. package/dist/bundle/{chunk-AZYVTDAE.js → chunk-UMUJHC4M.js} +2 -2
  49. package/dist/bundle/{chunk-7ABA4EXC.js → chunk-UPRYEDAV.js} +2 -2
  50. package/dist/bundle/{chunk-FYAHTTOB.js → chunk-VIEVOF3O.js} +8 -8
  51. package/dist/bundle/{chunk-VOBMR7E5.js → chunk-WDRNVSWF.js} +42 -42
  52. package/dist/bundle/{chunk-2YWQEG2P.js → chunk-XIRASTVS.js} +10 -10
  53. package/dist/bundle/{chunk-F24EAGOU.js → chunk-XXOJ7PQY.js} +26 -26
  54. package/dist/bundle/{chunk-MXIBRT6W.js → chunk-YFK3DNNP.js} +4 -4
  55. package/dist/bundle/{chunk-RSZEEWOW.js → chunk-YG4BO7N3.js} +1 -1
  56. package/dist/bundle/{chunk-5ASW5BNM.js → chunk-ZCHC7TYO.js} +11 -11
  57. package/dist/bundle/{chunk-JDOSIWPN.js → chunk-ZCV4UEVH.js} +2 -2
  58. package/dist/bundle/{command-contract-TNSW7W6G.js → command-contract-JCRVVL7P.js} +12 -12
  59. package/dist/bundle/{decode-3KBXZCFM.js → decode-QJNVAAKJ.js} +2 -2
  60. package/dist/bundle/{echarts-24TVPFGC.js → echarts-2EDY7OUX.js} +2 -2
  61. package/dist/bundle/{embed-3BDPZ4Q7.js → embed-PZSXOQJO.js} +3 -3
  62. package/dist/bundle/{embedder-EMVDEZFR.js → embedder-O4EGMMUU.js} +6 -6
  63. package/dist/bundle/{entry-NQD6Z2BM.js → entry-DVLMQM6J.js} +3 -3
  64. package/dist/bundle/{first-run-ZBIO6C67.js → first-run-J67KTUWA.js} +5 -5
  65. package/dist/bundle/{first-screen-4HRCG7OX.js → first-screen-PYEE5NMQ.js} +13 -13
  66. package/dist/bundle/{identity-EDGOOTOM.js → identity-DSYY4FLQ.js} +1 -1
  67. package/dist/bundle/{instructions-N2WVMNFZ.js → instructions-O535XB2L.js} +1 -1
  68. package/dist/bundle/{node-VBZAZHUS.js → node-S3VEQNTE.js} +2 -2
  69. package/dist/bundle/{node-sqlite-C3V64OAL.js → node-sqlite-3DNWF2BW.js} +2 -2
  70. package/dist/bundle/{oauth-NZXELYDA.js → oauth-IU2RAZ3D.js} +4 -4
  71. package/dist/bundle/{open-2XRUGMV7.js → open-M2IPPXMI.js} +1 -1
  72. package/dist/bundle/{openai-OLGTN3ZB.js → openai-GDI7HISL.js} +10 -10
  73. package/dist/bundle/{process-CASPZ2DH.js → process-3IGMEATV.js} +1 -1
  74. package/dist/bundle/{program-QPQDSGYA.js → program-P7YPHVLD.js} +41 -41
  75. package/dist/bundle/{prompt-ESZL7SGX.js → prompt-S6R7IHDK.js} +2 -2
  76. package/dist/bundle/{recognize-LQ7QOG4T.js → recognize-PFZRQ3P4.js} +1 -1
  77. package/dist/bundle/{remote-34XP4EDN.js → remote-Q37V7LUX.js} +4 -4
  78. package/dist/bundle/{rerank-7F6NLBCW.js → rerank-V5YQQQAM.js} +4 -4
  79. package/dist/bundle/{serve-M6TTKXI4.js → serve-5CAD2UVG.js} +6 -6
  80. package/dist/bundle/{server-GLZ5M7PE.js → server-R6YAO2SG.js} +27 -27
  81. package/dist/bundle/server-RUQLAWWS.js +56 -0
  82. package/dist/bundle/{state-UKKPLMHS.js → state-Y3A2NEM3.js} +3 -3
  83. package/dist/bundle/{store-J2MBIDJK.js → store-H5K32CNI.js} +7 -7
  84. package/dist/bundle/store-maintenance-command-QZDC4WKW.js +45 -0
  85. package/dist/bundle/tg.js +2 -2
  86. package/dist/version.d.ts +1 -1
  87. package/dist/version.js +1 -1
  88. package/package.json +2 -2
  89. package/skills/tg-cli/SKILL.md +14 -9
  90. package/dist/bundle/server-KOW7OKE2.js +0 -56
  91. package/dist/bundle/store-maintenance-command-64B57C3U.js +0 -45
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  answerOf,
5
5
  messengerContext
6
- } from "./chunk-GPIORQAD.js";
6
+ } from "./chunk-LLAZSGS7.js";
7
7
  import {
8
8
  RULES_VERSION,
9
9
  applyTaskRulesOnArrival,
@@ -20,7 +20,7 @@ import {
20
20
  syncsOneChat,
21
21
  typedQuery,
22
22
  withQuery
23
- } from "./chunk-3XTMVGTS.js";
23
+ } from "./chunk-5ZPLOYTP.js";
24
24
  import {
25
25
  stringWidth,
26
26
  wrapAnsi
@@ -51,32 +51,32 @@ import {
51
51
  snakeKeys,
52
52
  storeTable,
53
53
  withoutProviderRefs
54
- } from "./chunk-QRH2AWBZ.js";
54
+ } from "./chunk-KLHLWKWC.js";
55
55
  import {
56
56
  failureKey
57
- } from "./chunk-Q35J5LCO.js";
57
+ } from "./chunk-5FJQG5UZ.js";
58
58
  import {
59
59
  envName
60
- } from "./chunk-XLNYDJKG.js";
60
+ } from "./chunk-43ZFY6TW.js";
61
61
  import {
62
62
  holdLock,
63
63
  lockPath,
64
64
  releaseLock,
65
65
  servingProfiles,
66
66
  takeLock
67
- } from "./chunk-7ABA4EXC.js";
67
+ } from "./chunk-UPRYEDAV.js";
68
68
  import {
69
69
  holdersOf
70
- } from "./chunk-RARYRHQA.js";
70
+ } from "./chunk-PNUHAHTF.js";
71
71
  import {
72
72
  checkedOptions,
73
73
  range
74
- } from "./chunk-RSZEEWOW.js";
74
+ } from "./chunk-YG4BO7N3.js";
75
75
  import {
76
76
  messagesFor,
77
77
  systemFor,
78
78
  validateImages
79
- } from "./chunk-NDT22GBK.js";
79
+ } from "./chunk-QAC6Z675.js";
80
80
  import {
81
81
  MIGRATIONS,
82
82
  drainNoteIndex,
@@ -105,19 +105,19 @@ import {
105
105
  storeClients,
106
106
  storeContents,
107
107
  vectorIndexCounts
108
- } from "./chunk-RXWG7OWT.js";
108
+ } from "./chunk-KE47Y4PW.js";
109
109
  import {
110
110
  queryFieldsOf
111
- } from "./chunk-YPLL3Q3M.js";
111
+ } from "./chunk-DREEXESG.js";
112
112
  import {
113
113
  storePath
114
- } from "./chunk-VM7I5VKX.js";
114
+ } from "./chunk-7GQLD5TJ.js";
115
115
  import {
116
116
  openCache
117
- } from "./chunk-SLAPUEMZ.js";
117
+ } from "./chunk-TWZTQHP6.js";
118
118
  import {
119
119
  readSecret
120
- } from "./chunk-MZRD776E.js";
120
+ } from "./chunk-PQGWEFJ2.js";
121
121
  import {
122
122
  Credentials,
123
123
  pathsAreOverridden,
@@ -5490,11 +5490,11 @@ var require_liquid_node = __commonJS({
5490
5490
  }
5491
5491
  });
5492
5492
 
5493
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
5493
+ // node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
5494
5494
  import { chmodSync, constants, copyFileSync, existsSync as existsSync7, mkdirSync, realpathSync, renameSync as renameSync2, rmSync as rmSync2, statfsSync, statSync as statSync3, writeFileSync } from "node:fs";
5495
5495
  import { dirname, resolve } from "node:path";
5496
5496
 
5497
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/sealed.js
5497
+ // node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/sealed.js
5498
5498
  import { createCipheriv, createDecipheriv, createHash, randomBytes, scrypt, timingSafeEqual } from "node:crypto";
5499
5499
  import { closeSync, createReadStream, createWriteStream, existsSync, openSync, readSync, renameSync, rmSync, statSync } from "node:fs";
5500
5500
  import { Transform } from "node:stream";
@@ -5601,7 +5601,7 @@ var unsealFile = /* @__PURE__ */ __name(async (from, to, password) => {
5601
5601
  renameSync(pending, to);
5602
5602
  }, "unsealFile");
5603
5603
 
5604
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/store/compatibility.js
5604
+ // node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/store/compatibility.js
5605
5605
  var SPEAKS = MIGRATIONS.at(-1)?.version ?? 0;
5606
5606
  var fileSchemaOf = /* @__PURE__ */ __name((database) => {
5607
5607
  const tracked = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'schema_migrations'").get();
@@ -5625,7 +5625,7 @@ var compatibilityOf = /* @__PURE__ */ __name((file2, migrations = MIGRATIONS) =>
5625
5625
  };
5626
5626
  }, "compatibilityOf");
5627
5627
 
5628
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/store/repair.js
5628
+ // node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/store/repair.js
5629
5629
  import { createHash as createHash2 } from "node:crypto";
5630
5630
  var COPY_MARK = "__repair_";
5631
5631
  var COPY_NAME = /__repair_[0-9a-f]{8}(_\d+)?$/;
@@ -5879,7 +5879,7 @@ var deleteCopy = /* @__PURE__ */ __name((database, name) => {
5879
5879
  return found;
5880
5880
  }, "deleteCopy");
5881
5881
 
5882
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/cli/store-info.js
5882
+ // node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/cli/store-info.js
5883
5883
  import { existsSync as existsSync2, statSync as statSync2 } from "node:fs";
5884
5884
  var pendingIfKnown = /* @__PURE__ */ __name((database) => database.prepare("SELECT 1 FROM pragma_table_info('messages') WHERE name = 'normalized_text'").get() ? pendingNormalization(database) : null, "pendingIfKnown");
5885
5885
  var bytesOf = /* @__PURE__ */ __name((path) => existsSync2(path) ? statSync2(path).size : 0, "bytesOf");
@@ -5926,7 +5926,7 @@ var storeInfoCommand = /* @__PURE__ */ __name(() => annotate(new Command("info")
5926
5926
  renderAnswer(this, outputFor(this), itemOf(answer));
5927
5927
  }), "storeInfoCommand");
5928
5928
 
5929
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/cli/messenger/password.js
5929
+ // node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/cli/messenger/password.js
5930
5930
  var ENCRYPT_OPTION = [
5931
5931
  "--encrypt",
5932
5932
  "compress and encrypt with a password, typed at a hidden prompt or piped on stdin; it is never kept \u2014 lose it and the file cannot be opened"
@@ -5945,7 +5945,7 @@ var passwordOf = /* @__PURE__ */ __name(async (command, { twice }) => {
5945
5945
  return password;
5946
5946
  }, "passwordOf");
5947
5947
 
5948
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/replies/rules.js
5948
+ // node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/replies/rules.js
5949
5949
  import { existsSync as existsSync3, readFileSync } from "node:fs";
5950
5950
  import { join } from "node:path";
5951
5951
  var REPLY_ACTIONS = ["reply", "task"];
@@ -6116,7 +6116,7 @@ var problem = /* @__PURE__ */ __name((issue) => {
6116
6116
  }, "problem");
6117
6117
  var broken = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply rules ${path} cannot be read (${why}) \u2014 fix the file`), "broken");
6118
6118
 
6119
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/replies/state.js
6119
+ // node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/replies/state.js
6120
6120
  import { existsSync as existsSync4, readFileSync as readFileSync2 } from "node:fs";
6121
6121
  import { join as join2 } from "node:path";
6122
6122
  var ANSWERED_KEPT = 1e3;
@@ -6169,7 +6169,7 @@ var recordReply = /* @__PURE__ */ __name((state, rule2, message, now) => {
6169
6169
  }, "recordReply");
6170
6170
  var broken2 = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply state ${path} cannot be read (${why}) \u2014 fix or move the file`), "broken");
6171
6171
 
6172
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/replies/decide.js
6172
+ // node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/replies/decide.js
6173
6173
  var skip = /* @__PURE__ */ __name((why) => ({ skip: why }), "skip");
6174
6174
  var decide = /* @__PURE__ */ __name((rule2, incoming, state, now) => {
6175
6175
  const { message, chat, owner, sender } = incoming;
@@ -6275,7 +6275,7 @@ var filled = /* @__PURE__ */ __name((template2, senderName) => {
6275
6275
  return template2.replaceAll("{firstName}", name.split(/\s+/)[0] ?? name).replaceAll("{name}", name);
6276
6276
  }, "filled");
6277
6277
 
6278
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/replies/template.js
6278
+ // node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/replies/template.js
6279
6279
  var import_liquidjs = __toESM(require_liquid_node(), 1);
6280
6280
  var TEMPLATE_LIMITS = {
6281
6281
  parse: 32768,
@@ -6435,7 +6435,7 @@ var renderReplyTemplate = /* @__PURE__ */ __name(async (reply, input) => {
6435
6435
  }
6436
6436
  }, "renderReplyTemplate");
6437
6437
 
6438
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/replies/dry-run.js
6438
+ // node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/replies/dry-run.js
6439
6439
  var DRY_RUN_DAYS = 7;
6440
6440
  var PAGE = 500;
6441
6441
  var dryRun = /* @__PURE__ */ __name(async (store, account, rules, { since, until = Date.now(), only, audience, render }) => {
@@ -6549,7 +6549,7 @@ var storedSince = /* @__PURE__ */ __name(async (store, account, chat, since) =>
6549
6549
  }
6550
6550
  }, "storedSince");
6551
6551
 
6552
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/embeddings/keys.js
6552
+ // node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/embeddings/keys.js
6553
6553
  var endpointKeyName = /* @__PURE__ */ __name((baseUrl) => {
6554
6554
  const host = new URL(baseUrl).host;
6555
6555
  return ["openai", "anthropic"].includes(host) ? `endpoint:${host}` : host;
@@ -6580,7 +6580,7 @@ var embeddingKeys = /* @__PURE__ */ __name((app, env = process.env, keyring) =>
6580
6580
  };
6581
6581
  }, "embeddingKeys");
6582
6582
 
6583
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/models/openai.js
6583
+ // node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/models/openai.js
6584
6584
  var options = strictObject({
6585
6585
  temperature: range(0, 2),
6586
6586
  top_p: range(0, 1),
@@ -6629,7 +6629,7 @@ var openai = {
6629
6629
  }, "complete")
6630
6630
  };
6631
6631
 
6632
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/models/index.js
6632
+ // node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/models/index.js
6633
6633
  var modelGateway = /* @__PURE__ */ __name((deps) => ({
6634
6634
  complete: /* @__PURE__ */ __name(async (request) => {
6635
6635
  if (deps.signal?.aborted)
@@ -6644,7 +6644,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
6644
6644
  if (!adapter && target.provider === "openai")
6645
6645
  adapter = openai;
6646
6646
  if (!adapter && target.provider === "anthropic")
6647
- adapter = (await import("./anthropic-WXFHH74P.js")).anthropic;
6647
+ adapter = (await import("./anthropic-O646SJIJ.js")).anthropic;
6648
6648
  if (!adapter)
6649
6649
  throw new CliError("validation_error", `no model adapter for ${target.provider}`);
6650
6650
  if (request.images !== void 0 && adapter.images !== true)
@@ -6685,7 +6685,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
6685
6685
  }, "complete")
6686
6686
  }), "modelGateway");
6687
6687
 
6688
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/replies/consents.js
6688
+ // node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/replies/consents.js
6689
6689
  import { existsSync as existsSync5, readFileSync as readFileSync3 } from "node:fs";
6690
6690
  import { join as join3 } from "node:path";
6691
6691
  var shape = strictObject({
@@ -6710,7 +6710,7 @@ var mayModelReply = /* @__PURE__ */ __name((path, provider, chat) => {
6710
6710
  return consent.provider === provider && !consent.deniedChats.includes(chat);
6711
6711
  }, "mayModelReply");
6712
6712
 
6713
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/replies/rendering.js
6713
+ // node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/replies/rendering.js
6714
6714
  var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, options2 = {
6715
6715
  ai: true
6716
6716
  }) => async (rule2, message, chat, now) => {
@@ -6757,7 +6757,7 @@ var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, o
6757
6757
  return result2;
6758
6758
  }, "replyRenderer");
6759
6759
 
6760
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/replies/serve.js
6760
+ // node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/replies/serve.js
6761
6761
  var NOT_ALLOWED = "replies.send is not allow";
6762
6762
  var NO_RULES = "no rules";
6763
6763
  var ONLY_TASK = "opened a task, sent nothing";
@@ -6850,7 +6850,7 @@ var replyTo = /* @__PURE__ */ __name(async (deps, message) => {
6850
6850
  return { skip: why };
6851
6851
  }, "replyTo");
6852
6852
 
6853
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-members.js
6853
+ // node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-members.js
6854
6854
  var FIRST_FETCH_MS = 6e4;
6855
6855
  var DAY_MS = 864e5;
6856
6856
  var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch: fetch2, warn, firstMs = FIRST_FETCH_MS, everyMs = DAY_MS }) => {
@@ -6904,7 +6904,7 @@ var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch: fetch2, warn, fi
6904
6904
  };
6905
6905
  }, "memberFetches");
6906
6906
 
6907
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-notice.js
6907
+ // node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-notice.js
6908
6908
  var record2 = /* @__PURE__ */ __name((context, app, severity, attributes) => recordLogFor(context.streams.diagnostic, app, { command: currentRun().command || "serve" })[severity](attributes), "record");
6909
6909
  var noticeFor = /* @__PURE__ */ __name((context, app, severity = "warn") => ({ text, ...attributes }) => {
6910
6910
  if (context.format === "pretty") {
@@ -6937,7 +6937,7 @@ var recordDiagnostics = /* @__PURE__ */ __name((context, app) => {
6937
6937
  return context;
6938
6938
  }, "recordDiagnostics");
6939
6939
 
6940
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-stems.js
6940
+ // node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-stems.js
6941
6941
  var STEMS_EVERY_MS = 3e4;
6942
6942
  var STEMS_SLICE_MS = 2e3;
6943
6943
  var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY_MS, sliceMs = STEMS_SLICE_MS }) => {
@@ -6977,7 +6977,7 @@ var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY
6977
6977
  };
6978
6978
  }, "stemFills");
6979
6979
 
6980
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/render/messages.js
6980
+ // node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/render/messages.js
6981
6981
  import { styleText } from "node:util";
6982
6982
  var TIME_WIDTH = 8;
6983
6983
  var INDENT = " ".repeat(TIME_WIDTH + 2);
@@ -7153,7 +7153,7 @@ var editedAt = /* @__PURE__ */ __name((message, options2) => {
7153
7153
  return day(edited) === day(message.timestamp) ? time : `${day(edited)} ${time}`;
7154
7154
  }, "editedAt");
7155
7155
 
7156
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/cli/messenger/message-items.js
7156
+ // node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/cli/messenger/message-items.js
7157
7157
  var defined = /* @__PURE__ */ __name((value) => Object.fromEntries(Object.entries(value).filter(([, one]) => one !== void 0)), "defined");
7158
7158
  var attachmentItem = /* @__PURE__ */ __name((attachment) => defined({
7159
7159
  kind: attachment.kind,
@@ -7248,7 +7248,7 @@ var viewOf = /* @__PURE__ */ __name((context, messenger) => ({
7248
7248
  locale: messenger.app.locale
7249
7249
  }), "viewOf");
7250
7250
 
7251
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-answers.js
7251
+ // node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-answers.js
7252
7252
  var observed = /* @__PURE__ */ __name((value) => ({
7253
7253
  value: value.value,
7254
7254
  observed_at: value.observedAt,
@@ -7315,7 +7315,7 @@ var watchEventItem = /* @__PURE__ */ __name((value, account) => {
7315
7315
  }
7316
7316
  }, "watchEventItem");
7317
7317
 
7318
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-command.js
7318
+ // node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-command.js
7319
7319
  var watchCommand = /* @__PURE__ */ __name((messenger) => annotate(new Command("watch"), {
7320
7320
  output: { entity: "watch_item" },
7321
7321
  effects: REMOTE_READ,
@@ -7470,7 +7470,7 @@ var describe = /* @__PURE__ */ __name((event, render) => {
7470
7470
  }
7471
7471
  }, "describe");
7472
7472
 
7473
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-command.js
7473
+ // node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-command.js
7474
7474
  var serveCommand = /* @__PURE__ */ __name((messenger) => {
7475
7475
  const command = annotate(new Command("serve"), {
7476
7476
  output: { entity: "serve_summary" },
@@ -7686,7 +7686,7 @@ var tasking = /* @__PURE__ */ __name((context, warn) => {
7686
7686
  };
7687
7687
  }, "tasking");
7688
7688
 
7689
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/cli/messenger/store-tables-command.js
7689
+ // node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/cli/messenger/store-tables-command.js
7690
7690
  import { existsSync as existsSync6 } from "node:fs";
7691
7691
  var PATH = "store tables list";
7692
7692
  var STORE_TABLES_QUERY = {
@@ -7729,7 +7729,7 @@ var storeTablesCommand = /* @__PURE__ */ __name((messenger) => {
7729
7729
  return tables;
7730
7730
  }, "storeTablesCommand");
7731
7731
 
7732
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
7732
+ // node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
7733
7733
  var SEARCH_INDEXES = ["messages_fts", "chats_fts", "identities_fts"];
7734
7734
  var WORD_INDEX = "message_words";
7735
7735
  var schemaOf = /* @__PURE__ */ __name((database) => {
@@ -9,22 +9,22 @@ import {
9
9
  readSetupAnswers,
10
10
  unanswered,
11
11
  writeSetupAnswers
12
- } from "./chunk-JDOSIWPN.js";
12
+ } from "./chunk-ZCV4UEVH.js";
13
13
  import {
14
14
  DEFAULT_STEMMERS,
15
15
  LANGUAGES
16
- } from "./chunk-6WTLP2SI.js";
16
+ } from "./chunk-33HEHPIK.js";
17
17
  import {
18
18
  sharedConfigPath
19
- } from "./chunk-54CWOD7V.js";
19
+ } from "./chunk-3WUTBGZE.js";
20
20
  import {
21
21
  storePath
22
- } from "./chunk-VM7I5VKX.js";
22
+ } from "./chunk-7GQLD5TJ.js";
23
23
  import {
24
24
  __name
25
25
  } from "./chunk-ZVVMGPBJ.js";
26
26
 
27
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/cli/first-run.js
27
+ // node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/cli/first-run.js
28
28
  import { spawnSync } from "node:child_process";
29
29
  import { accessSync, constants, realpathSync } from "node:fs";
30
30
  import { delimiter, join } from "node:path";
@@ -82,7 +82,7 @@ var suggested = /* @__PURE__ */ __name((env, contentLanguages) => {
82
82
  return (own.length ? own : LANGUAGES.filter(({ code }) => code === "en" || code === system)).map(({ name }) => name);
83
83
  }, "suggested");
84
84
  var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLanguages }) => {
85
- const { openStore } = await import("./store-J2MBIDJK.js");
85
+ const { openStore } = await import("./store-H5K32CNI.js");
86
86
  const store = await openStore({ env });
87
87
  let rebuild = false;
88
88
  try {
@@ -111,8 +111,8 @@ var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLang
111
111
  if (!rebuild)
112
112
  return;
113
113
  const [{ openCache }, { buildStems }] = await Promise.all([
114
- import("./open-2XRUGMV7.js"),
115
- import("./store-maintenance-command-64B57C3U.js")
114
+ import("./open-M2IPPXMI.js"),
115
+ import("./store-maintenance-command-QZDC4WKW.js")
116
116
  ]);
117
117
  const database = await openCache(storePath(env));
118
118
  try {
@@ -124,7 +124,7 @@ var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLang
124
124
  var askTools = /* @__PURE__ */ __name(async (run) => {
125
125
  const { command, env, io } = run;
126
126
  const installed = run.installed ?? ((name) => onPath(name, env));
127
- const { WIRECAT_TOOLS } = await import("./first-screen-4HRCG7OX.js");
127
+ const { WIRECAT_TOOLS } = await import("./first-screen-PYEE5NMQ.js");
128
128
  const others = WIRECAT_TOOLS.filter((tool) => tool.command !== command);
129
129
  const missing = others.filter((tool) => !installed(tool.command));
130
130
  io.say("Other WireCat tools \u2014 they share this store, so one search finds everything:");
@@ -197,7 +197,7 @@ var setupAtStart = /* @__PURE__ */ __name(async (start) => {
197
197
  contentLanguages: start.contentLanguages,
198
198
  all: start.path[0] === "setup",
199
199
  io: {
200
- ask: /* @__PURE__ */ __name(async (prompt) => (await import("./prompt-ESZL7SGX.js")).readSecret(prompt, { input, echo: true }), "ask"),
200
+ ask: /* @__PURE__ */ __name(async (prompt) => (await import("./prompt-S6R7IHDK.js")).readSecret(prompt, { input, echo: true }), "ask"),
201
201
  say: /* @__PURE__ */ __name((text) => process.stderr.write(`${text}
202
202
  `), "say")
203
203
  }
@@ -20,7 +20,7 @@ import {
20
20
  tool,
21
21
  toolKey,
22
22
  toolsFromCommands
23
- } from "./chunk-TDQVVXPF.js";
23
+ } from "./chunk-COHMFCHD.js";
24
24
  import {
25
25
  CHART_KINDS,
26
26
  CHART_SIZE,
@@ -34,20 +34,20 @@ import {
34
34
  registerPrompts,
35
35
  stdinFieldOf,
36
36
  syncsFirst
37
- } from "./chunk-KLOFBUXA.js";
37
+ } from "./chunk-K457FHD4.js";
38
38
  import {
39
39
  agentJson,
40
40
  skillResource
41
- } from "./chunk-32HEOKI2.js";
41
+ } from "./chunk-T6DSAROY.js";
42
42
  import {
43
43
  answeredWire
44
- } from "./chunk-4I6HTOCM.js";
44
+ } from "./chunk-NQAV7U7C.js";
45
45
  import {
46
46
  StdioServerTransport,
47
47
  callerOf,
48
48
  callingAgent,
49
49
  serveStdio
50
- } from "./chunk-L3YDXUDK.js";
50
+ } from "./chunk-CJUSP5X2.js";
51
51
  import {
52
52
  McpServer,
53
53
  ResourceTemplate
@@ -55,7 +55,7 @@ import {
55
55
  import {
56
56
  connectedFor,
57
57
  guardFor
58
- } from "./chunk-GPIORQAD.js";
58
+ } from "./chunk-LLAZSGS7.js";
59
59
  import {
60
60
  capability,
61
61
  dateWindow,
@@ -64,10 +64,10 @@ import {
64
64
  servicesFor,
65
65
  storedDeps,
66
66
  wholeList
67
- } from "./chunk-3XTMVGTS.js";
67
+ } from "./chunk-5ZPLOYTP.js";
68
68
  import {
69
69
  findCommand
70
- } from "./chunk-4BMXELWN.js";
70
+ } from "./chunk-2K6IGVSI.js";
71
71
  import {
72
72
  DEFAULT_OUTPUT_BYTES,
73
73
  changesAuthorityAt,
@@ -83,30 +83,30 @@ import {
83
83
  sealed,
84
84
  snakeKeys,
85
85
  typedCommand
86
- } from "./chunk-QRH2AWBZ.js";
86
+ } from "./chunk-KLHLWKWC.js";
87
87
  import {
88
88
  isCliFailure,
89
89
  withCaller
90
- } from "./chunk-Q35J5LCO.js";
90
+ } from "./chunk-5FJQG5UZ.js";
91
91
  import {
92
92
  readOnlyLockOf
93
- } from "./chunk-XLNYDJKG.js";
93
+ } from "./chunk-43ZFY6TW.js";
94
94
  import {
95
95
  mcpHttpMarker
96
- } from "./chunk-MXIBRT6W.js";
96
+ } from "./chunk-YFK3DNNP.js";
97
97
  import {
98
98
  instructions
99
- } from "./chunk-TJA3BWY3.js";
99
+ } from "./chunk-BNQOUCL2.js";
100
100
  import {
101
101
  warmEmbedders
102
- } from "./chunk-YWSNUUW5.js";
102
+ } from "./chunk-7665YBJ7.js";
103
103
  import {
104
104
  openStore,
105
105
  pdfPreviewLimits
106
- } from "./chunk-RXWG7OWT.js";
106
+ } from "./chunk-KE47Y4PW.js";
107
107
  import {
108
108
  timezoneOf
109
- } from "./chunk-YPLL3Q3M.js";
109
+ } from "./chunk-DREEXESG.js";
110
110
  import {
111
111
  mcpErrorResult,
112
112
  visibleControls
@@ -131,10 +131,10 @@ import {
131
131
  __name
132
132
  } from "./chunk-ZVVMGPBJ.js";
133
133
 
134
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/mcp/server.js
134
+ // node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/mcp/server.js
135
135
  import { randomUUID } from "node:crypto";
136
136
 
137
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/mcp/agent-log.js
137
+ // node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/mcp/agent-log.js
138
138
  var agentLog = /* @__PURE__ */ __name((open) => {
139
139
  let held;
140
140
  return {
@@ -153,7 +153,7 @@ var agentLog = /* @__PURE__ */ __name((open) => {
153
153
  };
154
154
  }, "agentLog");
155
155
 
156
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/mcp/resources.js
156
+ // node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/mcp/resources.js
157
157
  var LISTED = 100;
158
158
  var registerResources = /* @__PURE__ */ __name((server, session, { command, name, limit, recorded, withStore, messenger, guard, assertRead }) => {
159
159
  server.registerResource("chat", new ResourceTemplate(`${command}://chat/{id}`, {
@@ -191,7 +191,7 @@ var registerResources = /* @__PURE__ */ __name((server, session, { command, name
191
191
  });
192
192
  }, "registerResources");
193
193
 
194
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/mcp/session.js
194
+ // node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/mcp/session.js
195
195
  var HARMLESS = /* @__PURE__ */ new Set(["validation_error", "not_found", "permission_error", "confirmation_required", "rate_limited"]);
196
196
  var harmless = /* @__PURE__ */ __name((code) => HARMLESS.has(code), "harmless");
197
197
  var MessengerSession = class {
@@ -266,7 +266,7 @@ var MessengerSession = class {
266
266
  }
267
267
  };
268
268
 
269
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/mcp/tools/attachments.js
269
+ // node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/mcp/tools/attachments.js
270
270
  var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
271
271
  const _command = messenger.app.command;
272
272
  return {
@@ -320,7 +320,7 @@ var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
320
320
  };
321
321
  }, "attachmentsTools");
322
322
 
323
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/mcp/tools/messages-photo.js
323
+ // node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/mcp/tools/messages-photo.js
324
324
  var PHOTO_LIMIT = 512 * 1024;
325
325
  var IMAGE_TYPES = [
326
326
  ["image/jpeg", (b) => b[0] === 255 && b[1] === 216 && b[2] === 255],
@@ -374,7 +374,7 @@ var readUpTo = /* @__PURE__ */ __name(async (file, limit, saveIt) => {
374
374
  return new Uint8Array(Buffer.concat(chunks));
375
375
  }, "readUpTo");
376
376
 
377
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/mcp/tools/stats.js
377
+ // node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/mcp/tools/stats.js
378
378
  var statsTools = /* @__PURE__ */ __name((messenger) => ({
379
379
  stats_charts: tool({
380
380
  title: "A chart from a chat's statistics",
@@ -411,14 +411,14 @@ var statsTools = /* @__PURE__ */ __name((messenger) => ({
411
411
  })
412
412
  }), "statsTools");
413
413
 
414
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/mcp/tools.js
414
+ // node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/mcp/tools.js
415
415
  var pictureTools = /* @__PURE__ */ __name((messenger) => Object.fromEntries(Object.entries({
416
416
  ...messagesPhotoTools(messenger),
417
417
  ...attachmentsTools(messenger),
418
418
  ...statsTools(messenger)
419
419
  }).map(([name, definition]) => [name, { ...definition, input: strictObject(definition.input.entries) }])), "pictureTools");
420
420
 
421
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/mcp/server.js
421
+ // node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/mcp/server.js
422
422
  var PER_RUN = /* @__PURE__ */ new Set([
423
423
  "streams",
424
424
  "stdin",
@@ -742,7 +742,7 @@ var serveOverStdio = /* @__PURE__ */ __name(async (command, context, messenger,
742
742
  }, "serveOverStdio");
743
743
  var serveOverHttpUntilStopped = /* @__PURE__ */ __name(async (command, context, messenger, options, http) => {
744
744
  const { session, embedders, build, log } = createServer(command, context, messenger, options);
745
- const { serveOverHttp } = await import("./serve-M6TTKXI4.js");
745
+ const { serveOverHttp } = await import("./serve-5CAD2UVG.js");
746
746
  const appName = messenger.app.command;
747
747
  const appEnvPrefix = messenger.app.envPrefix;
748
748
  const listening = await serveOverHttp(build, {
@@ -5,15 +5,15 @@ import {
5
5
  readLock,
6
6
  releaseLock,
7
7
  takeLock
8
- } from "./chunk-7ABA4EXC.js";
8
+ } from "./chunk-UPRYEDAV.js";
9
9
  import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
14
14
  import { existsSync as existsSync2, readFileSync as readFileSync2 } from "node:fs";
15
15
 
16
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/mcp/http/activity.js
16
+ // node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/mcp/http/activity.js
17
17
  import { randomBytes } from "node:crypto";
18
18
  import { chmodSync, existsSync, mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
19
19
  import { dirname } from "node:path";
@@ -86,7 +86,7 @@ var activityRecorder = /* @__PURE__ */ __name((path, now = Date.now) => {
86
86
  };
87
87
  }, "activityRecorder");
88
88
 
89
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
89
+ // node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
90
90
  var ACCESS_SECONDS = 60 * 60;
91
91
  var REFRESH_SECONDS = 30 * 24 * 60 * 60;
92
92
  var readStored = /* @__PURE__ */ __name((path) => existsSync2(path) ? JSON.parse(readFileSync2(path, "utf8")) : { clients: [], tokens: [] }, "readStored");
@@ -15,7 +15,7 @@ import {
15
15
  __name
16
16
  } from "./chunk-ZVVMGPBJ.js";
17
17
 
18
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/models/options.js
18
+ // node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/models/options.js
19
19
  var checkedOptions = /* @__PURE__ */ __name((provider, schema, options) => {
20
20
  const parsed = safeParse(schema, options);
21
21
  if (!parsed.success) {