@wirecat/tg-cli 0.121.0 → 0.123.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 (106) hide show
  1. package/contracts/wirecat.json +15 -0
  2. package/dist/bin/tg.js +2 -2
  3. package/dist/bundle/{adapter-GVSBFSBY.js → adapter-GAOG65O2.js} +46 -46
  4. package/dist/bundle/{all-profiles-CTOGU4XR.js → all-profiles-HLE6PHNI.js} +8 -8
  5. package/dist/bundle/{anthropic-7472H6ES.js → anthropic-FZC4BS7T.js} +4 -4
  6. package/dist/bundle/{app-server-GZWV4NPR.js → app-server-SHZNMV27.js} +40 -40
  7. package/dist/bundle/{bot-api-PPVAKICN.js → bot-api-LRS2KMDE.js} +46 -46
  8. package/dist/bundle/{bot-history-7YY7MCR4.js → bot-history-IJ7ZZKW5.js} +16 -16
  9. package/dist/bundle/{bun-KCN62RMD.js → bun-FACL53HM.js} +2 -2
  10. package/dist/bundle/{bun-sqlite-2BNE56MY.js → bun-sqlite-B2MD7RTL.js} +8 -4
  11. package/dist/bundle/{chunk-BJTJBNR7.js → chunk-3BUQXB7B.js} +7 -7
  12. package/dist/bundle/{chunk-T7ONSJAA.js → chunk-3JISIGLP.js} +2 -2
  13. package/dist/bundle/{chunk-MKAKM3V7.js → chunk-3P7HWXDJ.js} +3 -3
  14. package/dist/bundle/{chunk-U6HEZPCR.js → chunk-3S6KZCZ7.js} +1 -1
  15. package/dist/bundle/{chunk-MAPJUOTD.js → chunk-4DCFLHLN.js} +3 -3
  16. package/dist/bundle/{chunk-6LRKWXCS.js → chunk-5IHYZ6ED.js} +11 -11
  17. package/dist/bundle/{chunk-7DPWVKYS.js → chunk-5R5HGV2J.js} +2 -2
  18. package/dist/bundle/{chunk-7UIMMQOV.js → chunk-6FK2Z75N.js} +2 -2
  19. package/dist/bundle/{chunk-CPDYPZIG.js → chunk-6KT5BTWL.js} +192 -153
  20. package/dist/bundle/{chunk-QQ264PXQ.js → chunk-7EFJHLKW.js} +1 -1
  21. package/dist/bundle/{chunk-NR7PGYPO.js → chunk-ADI5R2MM.js} +29 -29
  22. package/dist/bundle/{chunk-RZX7RDXY.js → chunk-B6G3TNN4.js} +14 -14
  23. package/dist/bundle/{chunk-M47CXY5J.js → chunk-BAB3ALHZ.js} +27 -24
  24. package/dist/bundle/{chunk-4HJCWFPN.js → chunk-BGUYYKS3.js} +48 -48
  25. package/dist/bundle/{chunk-3EGVR7OF.js → chunk-DEMGDKCX.js} +97 -81
  26. package/dist/bundle/{chunk-VAAZL6OD.js → chunk-E2Z4C6CQ.js} +2 -2
  27. package/dist/bundle/{chunk-ZSW7LN7T.js → chunk-EABZ2CUG.js} +15 -14
  28. package/dist/bundle/{chunk-M73VM67N.js → chunk-EISV5YWD.js} +1493 -1001
  29. package/dist/bundle/{chunk-24DWSW6H.js → chunk-ENEMZAIJ.js} +12 -11
  30. package/dist/bundle/{chunk-AYDLA27G.js → chunk-EOUUI5FI.js} +3 -3
  31. package/dist/bundle/{chunk-Y4CSR5RP.js → chunk-FFHX7VKP.js} +1 -1
  32. package/dist/bundle/{chunk-7I6YVQHW.js → chunk-HJLTWT52.js} +1 -1
  33. package/dist/bundle/{chunk-DG44ORQ3.js → chunk-I7K4OR5Q.js} +4 -4
  34. package/dist/bundle/chunk-KKMNMQMW.js +53 -0
  35. package/dist/bundle/{chunk-W77WC6ZK.js → chunk-MFN5MSIL.js} +3 -3
  36. package/dist/bundle/{chunk-KVW7LCZK.js → chunk-NYRAW4M5.js} +3 -3
  37. package/dist/bundle/chunk-OE5JMZSM.js +185 -0
  38. package/dist/bundle/{chunk-R6KXHBMW.js → chunk-OOWE2O5U.js} +1 -1
  39. package/dist/bundle/{chunk-YRY752BB.js → chunk-PAHSIORC.js} +5 -5
  40. package/dist/bundle/{chunk-3E35VJME.js → chunk-PZJXQMSZ.js} +1 -1
  41. package/dist/bundle/{chunk-KKD5ZPGD.js → chunk-PZQ2MQFX.js} +5 -5
  42. package/dist/bundle/{chunk-TEMCXODM.js → chunk-Q74XVJFT.js} +1 -1
  43. package/dist/bundle/{chunk-CMEWPXKU.js → chunk-QLB3BFSN.js} +1 -1
  44. package/dist/bundle/{chunk-S7P5X23R.js → chunk-QLXKWAET.js} +38 -11
  45. package/dist/bundle/{chunk-PLBEUSZP.js → chunk-QVMAZVSN.js} +1 -1
  46. package/dist/bundle/{chunk-YMJKHMHX.js → chunk-RDKPKS2P.js} +1 -1
  47. package/dist/bundle/{chunk-ESLV57MC.js → chunk-SCGCDLI7.js} +1 -1
  48. package/dist/bundle/{chunk-WGGSFGNZ.js → chunk-SMFUKHG2.js} +24 -0
  49. package/dist/bundle/{chunk-3HNI6GI7.js → chunk-SNEJK4SN.js} +4 -4
  50. package/dist/bundle/{chunk-SHIHW2YN.js → chunk-STPYSD6W.js} +2 -2
  51. package/dist/bundle/{chunk-RPBO5XL3.js → chunk-SWGGYBCW.js} +13 -13
  52. package/dist/bundle/{chunk-SQWTUENZ.js → chunk-T5OO7VDT.js} +306 -261
  53. package/dist/bundle/{chunk-QNNUNGPL.js → chunk-U5FILNK6.js} +2 -2
  54. package/dist/bundle/{chunk-KPAUPIC3.js → chunk-UB6J5HRW.js} +3 -3
  55. package/dist/bundle/{chunk-VPNLTNQD.js → chunk-UBFDPLFQ.js} +5 -5
  56. package/dist/bundle/{chunk-DAK2J3FG.js → chunk-V23X3W2W.js} +7 -7
  57. package/dist/bundle/{chunk-QMNUQTA2.js → chunk-V4722KYX.js} +1 -1
  58. package/dist/bundle/{chunk-GB55EDOF.js → chunk-V4JEZFW5.js} +1 -1
  59. package/dist/bundle/{chunk-6SQAE7NM.js → chunk-VVRWH5VH.js} +7 -7
  60. package/dist/bundle/{chunk-4J34T6IQ.js → chunk-WA7YED3Y.js} +1 -1
  61. package/dist/bundle/{chunk-CLMRF6XR.js → chunk-WSLTW6MI.js} +2 -2
  62. package/dist/bundle/{chunk-5P43K3GL.js → chunk-XDL4L3OI.js} +24584 -23597
  63. package/dist/bundle/{chunk-7MXRFFIT.js → chunk-Z5HHBTS5.js} +2 -2
  64. package/dist/bundle/{chunk-LTAHG7BO.js → chunk-ZJPXRW65.js} +3 -3
  65. package/dist/bundle/{chunk-FATTEYZH.js → chunk-ZOBRYIUG.js} +1 -1
  66. package/dist/bundle/{chunk-FERGNQYA.js → chunk-ZQ3WGGKK.js} +12 -12
  67. package/dist/bundle/command-contract-HWSWHMO4.js +33 -0
  68. package/dist/bundle/{command-server-entry-37PKBJ5A.js → command-server-entry-5LKDRLEX.js} +69 -53
  69. package/dist/bundle/{decode-F7KC7WT4.js → decode-L4DQDHXA.js} +4 -4
  70. package/dist/bundle/{dispatch-U2DW6UI7.js → dispatch-PQSCFHEX.js} +1 -1
  71. package/dist/bundle/{echarts-4VYG66GX.js → echarts-6LES2JIV.js} +2 -2
  72. package/dist/bundle/{embed-ENZ6R4HF.js → embed-T5MLKX75.js} +5 -5
  73. package/dist/bundle/{embedder-4CBICMFO.js → embedder-56NMRLC5.js} +8 -8
  74. package/dist/bundle/{entry-XQ562EDO.js → entry-U5GV6Y46.js} +7 -7
  75. package/dist/bundle/{failure-HJD7S5UA.js → failure-BX5HJAQE.js} +1 -1
  76. package/dist/bundle/{first-run-PPXOC6ID.js → first-run-ISQ52V3I.js} +8 -8
  77. package/dist/bundle/first-screen-7L4AMZDO.js +31 -0
  78. package/dist/bundle/{instructions-XLCMJ5PJ.js → instructions-CJEXDI7E.js} +1 -1
  79. package/dist/bundle/{node-SSAC67R5.js → node-QLWTGZW7.js} +2 -2
  80. package/dist/bundle/{node-sqlite-SUUUSYSZ.js → node-sqlite-X2C3RR2Q.js} +9 -5
  81. package/dist/bundle/{oauth-2ZNHMPEX.js → oauth-VP3KMHLX.js} +6 -6
  82. package/dist/bundle/{open-EFNT7V2Q.js → open-GLR5EUZS.js} +4 -4
  83. package/dist/bundle/{openai-7STFVJXA.js → openai-6CDCJ5LQ.js} +12 -12
  84. package/dist/bundle/{process-63F4PNWH.js → process-7FABZ3T2.js} +1 -1
  85. package/dist/bundle/{program-C2E3TQNK.js → program-KUIAHJDX.js} +49 -49
  86. package/dist/bundle/{prompt-QPO7EKD5.js → prompt-XPHIZMD2.js} +4 -4
  87. package/dist/bundle/{proxy-transport-ENU2SJYT.js → proxy-transport-IIB7ZXIS.js} +4 -4
  88. package/dist/bundle/{recognize-MLXEHFYL.js → recognize-FVFYI3XX.js} +3 -3
  89. package/dist/bundle/{remote-DO7FLJEF.js → remote-3AMCG2P4.js} +6 -6
  90. package/dist/bundle/{rerank-W3WSBDAM.js → rerank-XV4E25ML.js} +6 -6
  91. package/dist/bundle/{serve-Z3TOTEMQ.js → serve-NVSZA4UN.js} +8 -8
  92. package/dist/bundle/{server-BYSOJCUA.js → server-MBMPHRJE.js} +31 -31
  93. package/dist/bundle/server-MHVGYRQZ.js +61 -0
  94. package/dist/bundle/{state-PKRPBCMY.js → state-JBMB2QUR.js} +5 -5
  95. package/dist/bundle/{store-Y4G7CNJT.js → store-T4SCYTY2.js} +11 -11
  96. package/dist/bundle/store-maintenance-command-F7WQMTMP.js +49 -0
  97. package/dist/bundle/tg.js +6 -6
  98. package/dist/version.d.ts +1 -1
  99. package/dist/version.js +1 -1
  100. package/package.json +2 -2
  101. package/dist/bundle/chunk-54KFRAHF.js +0 -35
  102. package/dist/bundle/chunk-GNGYV5NX.js +0 -116
  103. package/dist/bundle/command-contract-3W73W27G.js +0 -33
  104. package/dist/bundle/first-screen-JC6BYZYD.js +0 -31
  105. package/dist/bundle/server-IRUVLXD4.js +0 -61
  106. package/dist/bundle/store-maintenance-command-PHK43OSM.js +0 -49
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  unit
5
- } from "./chunk-KKD5ZPGD.js";
5
+ } from "./chunk-PZQ2MQFX.js";
6
6
  import {
7
7
  CliError
8
8
  } from "./chunk-VUBZFMGP.js";
@@ -10,7 +10,7 @@ import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/node_modules/@wirecat/cli-core/dist/embeddings/remote.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/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 = {
@@ -5,7 +5,7 @@ import {
5
5
  id,
6
6
  text,
7
7
  time
8
- } from "./chunk-3EGVR7OF.js";
8
+ } from "./chunk-DEMGDKCX.js";
9
9
  import {
10
10
  array,
11
11
  nullable,
@@ -16,9 +16,9 @@ import {
16
16
  strictObject,
17
17
  string,
18
18
  unknown
19
- } from "./chunk-WGGSFGNZ.js";
19
+ } from "./chunk-SMFUKHG2.js";
20
20
 
21
- // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/node_modules/@wirecat/cli-core/dist/entities/note.js
21
+ // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/note.js
22
22
  var link = {
23
23
  target_text: nullable(text),
24
24
  kind: text,
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  PRAGMAS
5
- } from "./chunk-Y4CSR5RP.js";
5
+ } from "./chunk-FFHX7VKP.js";
6
6
  import {
7
7
  CliError
8
8
  } from "./chunk-VUBZFMGP.js";
@@ -10,7 +10,7 @@ import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/node_modules/@wirecat/cli-core/dist/store/sqlite-warning.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/store/sqlite-warning.js
14
14
  var SQLITE_WARNING = "SQLite is an experimental feature";
15
15
  var quieted = /* @__PURE__ */ new WeakSet();
16
16
  var quietSqliteWarning = /* @__PURE__ */ __name((host = process) => {
@@ -31,7 +31,7 @@ var isSqliteWarning = /* @__PURE__ */ __name((warning, options) => {
31
31
  return name === "ExperimentalWarning" && message.startsWith(SQLITE_WARNING);
32
32
  }, "isSqliteWarning");
33
33
 
34
- // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/node_modules/@wirecat/cli-core/dist/store/open.js
34
+ // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/store/open.js
35
35
  var openCache = /* @__PURE__ */ __name(async (path) => {
36
36
  const database = await openFile(path);
37
37
  try {
@@ -44,12 +44,12 @@ var openCache = /* @__PURE__ */ __name(async (path) => {
44
44
  }, "openCache");
45
45
  var openFile = /* @__PURE__ */ __name((path) => "Bun" in globalThis ? openUnderBun(path) : openUnderNode(path), "openFile");
46
46
  var openUnderBun = /* @__PURE__ */ __name(async (path) => {
47
- const { openWithBunSqlite } = await import("./bun-sqlite-2BNE56MY.js");
47
+ const { openWithBunSqlite } = await import("./bun-sqlite-B2MD7RTL.js");
48
48
  return await openWithBunSqlite(path);
49
49
  }, "openUnderBun");
50
50
  var openUnderNode = /* @__PURE__ */ __name(async (path) => {
51
51
  quietSqliteWarning();
52
- const { openWithNodeSqlite } = await import("./node-sqlite-SUUUSYSZ.js");
52
+ const { openWithNodeSqlite } = await import("./node-sqlite-X2C3RR2Q.js");
53
53
  return openWithNodeSqlite(path);
54
54
  }, "openUnderNode");
55
55
  var runtime = /* @__PURE__ */ __name(() => {
@@ -7,7 +7,7 @@ import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/node_modules/@wirecat/cli-core/dist/search/languages.js
10
+ // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/search/languages.js
11
11
  var LANGUAGES = [
12
12
  { name: "russian", code: "ru", label: "Russian", script: "cyrillic", dictionary: "dictionary-ru" },
13
13
  { name: "english", code: "en", label: "English", script: "latin", dictionary: "dictionary-en" },
@@ -15,12 +15,12 @@ var LANGUAGES = [
15
15
  ];
16
16
  var languagesOf = /* @__PURE__ */ __name((script) => LANGUAGES.filter((one) => one.script === script).map(({ name }) => name), "languagesOf");
17
17
 
18
- // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/node_modules/@wirecat/cli-core/dist/store/normalize.js
18
+ // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/store/normalize.js
19
19
  var NORMALIZER_VERSION = 1;
20
20
  var fold = /* @__PURE__ */ __name((text) => text.normalize("NFKD").replace(new RegExp("\\p{M}+", "gu"), "").normalize("NFC").toLowerCase(), "fold");
21
21
  var normalize = /* @__PURE__ */ __name((text) => fold(text).replace(new RegExp("\\p{Cc}", "gu"), " ").replace(/\s+/gu, " ").trim(), "normalize");
22
22
 
23
- // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/node_modules/@wirecat/cli-core/dist/search/snowball/base-stemmer.js
23
+ // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/search/snowball/base-stemmer.js
24
24
  var BaseStemmer = class {
25
25
  static {
26
26
  __name(this, "BaseStemmer");
@@ -395,7 +395,7 @@ var BaseStemmer = class {
395
395
  }
396
396
  };
397
397
 
398
- // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/node_modules/@wirecat/cli-core/dist/search/snowball/english-stemmer.js
398
+ // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/search/snowball/english-stemmer.js
399
399
  var a_0 = [
400
400
  ["arsen", -1],
401
401
  ["commun", -1],
@@ -1096,7 +1096,7 @@ var english_stemmer_default = class extends BaseStemmer {
1096
1096
  stemWord = this.stem;
1097
1097
  };
1098
1098
 
1099
- // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/node_modules/@wirecat/cli-core/dist/search/snowball/russian-stemmer.js
1099
+ // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/search/snowball/russian-stemmer.js
1100
1100
  var a_02 = [
1101
1101
  ["\u0432", 1],
1102
1102
  ["\u0438\u0432", 2, 1],
@@ -1519,7 +1519,7 @@ var russian_stemmer_default = class extends BaseStemmer {
1519
1519
  stemWord = this.stem;
1520
1520
  };
1521
1521
 
1522
- // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/node_modules/@wirecat/cli-core/dist/search/snowball/spanish-stemmer.js
1522
+ // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/search/snowball/spanish-stemmer.js
1523
1523
  var a_03 = [
1524
1524
  ["", 6],
1525
1525
  ["\xE1", 1, 1],
@@ -2195,7 +2195,7 @@ var spanish_stemmer_default = class extends BaseStemmer {
2195
2195
  stemWord = this.stem;
2196
2196
  };
2197
2197
 
2198
- // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/node_modules/@wirecat/cli-core/dist/search/stem.js
2198
+ // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/search/stem.js
2199
2199
  var SNOWBALL_VERSION = "3.1.1";
2200
2200
  var CYRILLIC_STEMMERS = [...languagesOf("cyrillic"), "none"];
2201
2201
  var LATIN_STEMMERS = [...languagesOf("latin"), "none"];
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  openCache
5
- } from "./chunk-VPNLTNQD.js";
5
+ } from "./chunk-UBFDPLFQ.js";
6
6
  import {
7
7
  CliError,
8
8
  isCliError
@@ -7,7 +7,7 @@ import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/node_modules/@wirecat/cli-core/dist/cli/input-policy.js
10
+ // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/cli/input-policy.js
11
11
  var MAX_BUFFERED_INPUT = 16 * 1024 * 1024;
12
12
  var MAX_SECRET_INPUT = 64 * 1024;
13
13
  var policies = /* @__PURE__ */ new WeakMap();
@@ -4,22 +4,22 @@ import {
4
4
  isCliFailure,
5
5
  secretNamed,
6
6
  withoutSecrets
7
- } from "./chunk-7MXRFFIT.js";
7
+ } from "./chunk-Z5HHBTS5.js";
8
8
  import {
9
9
  isContentKey
10
- } from "./chunk-U6HEZPCR.js";
10
+ } from "./chunk-3S6KZCZ7.js";
11
11
  import {
12
12
  __name
13
13
  } from "./chunk-ZVVMGPBJ.js";
14
14
 
15
- // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/node_modules/@wirecat/cli-core/dist/runs/run-context.js
15
+ // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/runs/run-context.js
16
16
  import { AsyncLocalStorage } from "node:async_hooks";
17
17
  import { createHash } from "node:crypto";
18
18
 
19
- // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
19
+ // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
20
20
  import { homedir } from "node:os";
21
21
 
22
- // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/node_modules/@wirecat/cli-core/dist/runs/events.js
22
+ // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/runs/events.js
23
23
  var providerErrorKey = /* @__PURE__ */ __name((value) => typeof value === "string" && /^[A-Za-z][A-Za-z0-9._-]{0,63}$/.test(value) ? value : void 0, "providerErrorKey");
24
24
  var renderEvent = /* @__PURE__ */ __name((event) => {
25
25
  if (event.event === "store")
@@ -69,7 +69,7 @@ var MARK = { request: "\u2192", response: "\u2190", cache: "\u2022", warning: "!
69
69
  var age = /* @__PURE__ */ __name((ms) => ms < 1e3 ? `${ms}ms` : `${Math.round(ms / 1e3)}s`, "age");
70
70
  var size = /* @__PURE__ */ __name((bytes) => bytes < 1e3 ? `${bytes} B` : `${(bytes / 1e3).toFixed(1)} kB`, "size");
71
71
 
72
- // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
72
+ // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
73
73
  var MESSAGE_AT_MOST = 500;
74
74
  var CAUSES_AT_MOST = 5;
75
75
  var FRAMES_AT_MOST = 15;
@@ -178,7 +178,7 @@ var redactText = /* @__PURE__ */ __name((text) => {
178
178
  return out.length > MESSAGE_AT_MOST ? `${out.slice(0, MESSAGE_AT_MOST)}\u2026` : out;
179
179
  }, "redactText");
180
180
 
181
- // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/node_modules/@wirecat/cli-core/dist/runs/run-context.js
181
+ // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/runs/run-context.js
182
182
  var REDACTED = "[redacted]";
183
183
  var keepsSuccess = /* @__PURE__ */ __name(({ record, fromFlag, env, caller, persistent = false }) => {
184
184
  if (!record)
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/node_modules/@wirecat/cli-core/dist/mcp/bot/instructions.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/mcp/bot/instructions.js
8
8
  var botInstructions = /* @__PURE__ */ __name(({ command, name, profile, writes, skill }) => [
9
9
  `The owner's ${name} bot "${profile}", through the official Bot API \u2014 not the owner's personal account. What it writes, people see as the bot.`,
10
10
  "Use these tools to read the chats this bot is in, find a message or a person, and \u2014 when the profile allows \u2014 write as the bot.",
@@ -4,7 +4,7 @@ import {
4
4
  MAX_SECRET_INPUT,
5
5
  bufferedInput,
6
6
  inputPolicy
7
- } from "./chunk-GB55EDOF.js";
7
+ } from "./chunk-V4JEZFW5.js";
8
8
  import {
9
9
  CliError
10
10
  } from "./chunk-VUBZFMGP.js";
@@ -12,7 +12,7 @@ import {
12
12
  __name
13
13
  } from "./chunk-ZVVMGPBJ.js";
14
14
 
15
- // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/node_modules/@wirecat/cli-core/dist/terminal/prompt.js
15
+ // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/terminal/prompt.js
16
16
  import { createInterface } from "node:readline";
17
17
  import { Writable } from "node:stream";
18
18
  var EMPTY_TRIES = 3;