@wirecat/tg-cli 0.112.0 → 0.114.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 (108) hide show
  1. package/dist/bin/tg.js +6 -2
  2. package/dist/bundle/{adapter-ILDV2YSZ.js → adapter-YAEHX3QB.js} +45 -45
  3. package/dist/bundle/{all-profiles-4SH2Q4WV.js → all-profiles-R5CW42HQ.js} +8 -8
  4. package/dist/bundle/{anthropic-64SM23YO.js → anthropic-F25RHYV2.js} +5 -5
  5. package/dist/bundle/{app-server-SSYZWCDJ.js → app-server-FAG6FNXR.js} +43 -42
  6. package/dist/bundle/{bot-api-OHAGQMES.js → bot-api-KOIAXTQR.js} +46 -46
  7. package/dist/bundle/{bot-history-AUFO7UL2.js → bot-history-PRAOZEWC.js} +16 -15
  8. package/dist/bundle/{bun-AHZX63TR.js → bun-XIMM6EHD.js} +2 -2
  9. package/dist/bundle/{bun-sqlite-KBIIODPV.js → bun-sqlite-DSUCO4TR.js} +4 -4
  10. package/dist/bundle/{chunk-JYOQMYNJ.js → chunk-2PAKHXIV.js} +31 -30
  11. package/dist/bundle/{chunk-KLNQXUDX.js → chunk-34USFPBF.js} +20 -18
  12. package/dist/bundle/{chunk-QMJGHSGN.js → chunk-3EZ43DAF.js} +3 -3
  13. package/dist/bundle/{chunk-NKACHGB2.js → chunk-3R43O3GG.js} +74 -15
  14. package/dist/bundle/{chunk-KYYAHIG2.js → chunk-4JOKO4IW.js} +6992 -5870
  15. package/dist/bundle/{chunk-XSYJKEA5.js → chunk-5HKMEXVQ.js} +35 -35
  16. package/dist/bundle/{chunk-NQKPXVLX.js → chunk-6SPLZI5P.js} +2 -2
  17. package/dist/bundle/{chunk-BIERCQVG.js → chunk-7FOT4XD2.js} +2232 -922
  18. package/dist/bundle/{chunk-4JXZKMXV.js → chunk-AL36NHO6.js} +5122 -949
  19. package/dist/bundle/{chunk-4IDJ7QCG.js → chunk-ALHKUQDZ.js} +4 -4
  20. package/dist/bundle/{chunk-2IGZLBTE.js → chunk-C34IDOA5.js} +2 -2
  21. package/dist/bundle/{chunk-KGYPSBTI.js → chunk-C7K7AP6G.js} +81 -33
  22. package/dist/bundle/{chunk-PDVSMGWO.js → chunk-CDCBFMEI.js} +2 -2
  23. package/dist/bundle/{chunk-TOBJGMMA.js → chunk-CS5DQ6KM.js} +15 -14
  24. package/dist/bundle/{chunk-DNYGJAEP.js → chunk-DQQEN3X4.js} +4 -4
  25. package/dist/bundle/{chunk-SC2DUQAK.js → chunk-E2IRSRTB.js} +1 -1
  26. package/dist/bundle/{chunk-QL4WBCL5.js → chunk-EARO464A.js} +13 -7
  27. package/dist/bundle/{chunk-5BNYW5RA.js → chunk-EQJG44KE.js} +4 -4
  28. package/dist/bundle/{chunk-WWKXTKCE.js → chunk-HA35XN2Z.js} +6 -4
  29. package/dist/bundle/{chunk-EO7PQE3J.js → chunk-I6BKSGZQ.js} +364 -178
  30. package/dist/bundle/{chunk-TUJEJ4D5.js → chunk-IN25CJ3D.js} +13 -13
  31. package/dist/bundle/{chunk-MCXVGHL6.js → chunk-J5U2HKGZ.js} +41 -28
  32. package/dist/bundle/{chunk-3GL4AOOG.js → chunk-KIZT2MI6.js} +1 -1
  33. package/dist/bundle/{chunk-3AJO4GER.js → chunk-KZQXOZFC.js} +5 -5
  34. package/dist/bundle/chunk-L4CMCC3V.js +34 -0
  35. package/dist/bundle/{chunk-COTC7HF3.js → chunk-LPUFOWL3.js} +1 -1
  36. package/dist/bundle/{chunk-ICEJKOKO.js → chunk-M3IWROIF.js} +7 -7
  37. package/dist/bundle/{chunk-K7VOCHVS.js → chunk-MQTTVQ3V.js} +6 -6
  38. package/dist/bundle/{chunk-D5JP2YWG.js → chunk-NJ2I4KFZ.js} +2 -2
  39. package/dist/bundle/{chunk-PXUHQO66.js → chunk-NKP3RUM4.js} +11 -11
  40. package/dist/bundle/{chunk-WI2S6INJ.js → chunk-NMVFFWF2.js} +6 -6
  41. package/dist/bundle/{chunk-GW7JRFTF.js → chunk-NTF34HJP.js} +3 -3
  42. package/dist/bundle/{chunk-EPAOLRUL.js → chunk-NUVBC3LJ.js} +8 -3
  43. package/dist/bundle/{chunk-7MFJFVUN.js → chunk-O7CBGHI7.js} +1 -1
  44. package/dist/bundle/{chunk-5W72OARG.js → chunk-OFDMD3YF.js} +8 -8
  45. package/dist/bundle/{chunk-RANORATG.js → chunk-OWHF6BON.js} +4 -4
  46. package/dist/bundle/{chunk-UXCWUEN7.js → chunk-P4YBABUC.js} +5 -40
  47. package/dist/bundle/{chunk-RPNRCFEE.js → chunk-QCXYJKPF.js} +2 -2
  48. package/dist/bundle/{chunk-6KGENDPF.js → chunk-RBC7JQ4Y.js} +2 -2
  49. package/dist/bundle/{chunk-GM44UNGL.js → chunk-RFRI2HFT.js} +1 -1
  50. package/dist/bundle/{chunk-UQOSZ2XX.js → chunk-TKNCJMYN.js} +1467 -707
  51. package/dist/bundle/{chunk-RHYMEHYK.js → chunk-TRRRRGMI.js} +2 -2
  52. package/dist/bundle/{chunk-UVRD447S.js → chunk-TTTDZOBW.js} +3 -3
  53. package/dist/bundle/{chunk-E4EJ2UTT.js → chunk-ULFTCR5W.js} +2 -2
  54. package/dist/bundle/{chunk-JPRYFDOJ.js → chunk-VHO66SMY.js} +174 -45
  55. package/dist/bundle/{chunk-GSGS62LX.js → chunk-VVKEWWSO.js} +1 -1
  56. package/dist/bundle/{chunk-JIGYVVWA.js → chunk-WIRDTH3J.js} +121 -31
  57. package/dist/bundle/{chunk-BTAET4U3.js → chunk-WOQGUIXE.js} +1 -1
  58. package/dist/bundle/{chunk-3W7BU2BL.js → chunk-XDOPONC3.js} +8 -13
  59. package/dist/bundle/{chunk-DFUTZGEV.js → chunk-Y3AQHPAJ.js} +1 -1
  60. package/dist/bundle/{chunk-JLB5LEXJ.js → chunk-Y4LCSCSH.js} +3 -3
  61. package/dist/bundle/{chunk-RC7EBLHM.js → chunk-YPABTT7A.js} +8 -8
  62. package/dist/bundle/{chunk-JXTYTAWE.js → chunk-YQ64ZNLD.js} +14 -13
  63. package/dist/bundle/{chunk-SFJFBIYP.js → chunk-ZFMOPKPT.js} +2 -2
  64. package/dist/bundle/command-contract-SOTDPG22.js +31 -0
  65. package/dist/bundle/{decode-FR3QHHJI.js → decode-7U4SXPAN.js} +4 -4
  66. package/dist/bundle/{echarts-VTV4C2OS.js → echarts-GKEZEAL7.js} +2 -2
  67. package/dist/bundle/{embed-US7X5P5D.js → embed-IDZDQMSW.js} +5 -5
  68. package/dist/bundle/{embedder-63Z7ZBYG.js → embedder-RY5R2PGO.js} +8 -8
  69. package/dist/bundle/{entry-B4J7IAG3.js → entry-P6YZ3ZV6.js} +8 -5
  70. package/dist/bundle/{first-run-MXPPUGII.js → first-run-66KTCVQK.js} +9 -9
  71. package/dist/bundle/first-screen-NY46X6QU.js +29 -0
  72. package/dist/bundle/{identity-AQWKU7SM.js → identity-GXVKGCNU.js} +3 -3
  73. package/dist/bundle/{instructions-GBR6DJTK.js → instructions-P5E34PQR.js} +1 -1
  74. package/dist/bundle/{mcp-YJEQYYTR.js → mcp-FUSDPAOL.js} +2 -2
  75. package/dist/bundle/{node-QXGPMDH2.js → node-GKPRXS5Y.js} +2 -2
  76. package/dist/bundle/{node-sqlite-L6CAMXQ2.js → node-sqlite-VUXFVPJ6.js} +10 -4
  77. package/dist/bundle/{oauth-5RK6J4SG.js → oauth-7SQIPMOY.js} +6 -6
  78. package/dist/bundle/{open-A3IAG7U6.js → open-W3BN2SIO.js} +4 -3
  79. package/dist/bundle/{openai-YKNGCHVV.js → openai-LQTK3ZMC.js} +13 -13
  80. package/dist/bundle/{process-CGLNXFIU.js → process-U2P5Z6UF.js} +1 -1
  81. package/dist/bundle/{program-AEDR6R5P.js → program-DIPSLR6O.js} +48 -48
  82. package/dist/bundle/{prompt-65CSCL2T.js → prompt-GESHKSM5.js} +4 -4
  83. package/dist/bundle/{proxy-transport-U3QOYMQF.js → proxy-transport-C2EUUT32.js} +4 -4
  84. package/dist/bundle/{recognize-ECRO6CFK.js → recognize-FEQTIJET.js} +3 -3
  85. package/dist/bundle/{remote-6IEFZFGO.js → remote-UXOPBPKS.js} +6 -6
  86. package/dist/bundle/{rerank-23GXWT2V.js → rerank-L4JM4REK.js} +6 -6
  87. package/dist/bundle/{serve-S65YTPZN.js → serve-DDWW44DB.js} +10 -9
  88. package/dist/bundle/{server-MVTBK7GV.js → server-UTWBIZHB.js} +32 -32
  89. package/dist/bundle/server-ZI7WDAW6.js +56 -0
  90. package/dist/bundle/{state-TH3UVQAW.js → state-EV7FGEK4.js} +5 -5
  91. package/dist/bundle/{store-2WFTUSNG.js → store-EXBUF4OG.js} +11 -10
  92. package/dist/bundle/store-maintenance-command-UBZE2Z6T.js +46 -0
  93. package/dist/bundle/tg.js +4 -4
  94. package/dist/commands/context.d.ts.map +1 -1
  95. package/dist/commands/context.js +6 -4
  96. package/dist/commands/context.js.map +1 -1
  97. package/dist/reasons.d.ts.map +1 -1
  98. package/dist/reasons.js +5 -0
  99. package/dist/reasons.js.map +1 -1
  100. package/dist/version.d.ts +1 -1
  101. package/dist/version.js +1 -1
  102. package/package.json +3 -3
  103. package/dist/bundle/chunk-B3Y2KZRS.js +0 -3588
  104. package/dist/bundle/command-contract-4KVJJZ46.js +0 -32
  105. package/dist/bundle/first-screen-GFYHUBBD.js +0 -30
  106. package/dist/bundle/server-IH24WEAC.js +0 -56
  107. package/dist/bundle/store-maintenance-command-PUOU2CL6.js +0 -45
  108. /package/dist/bundle/{chunk-WJWLHLQ7.js → chunk-NUN6OGOV.js} +0 -0
@@ -2,23 +2,23 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  storePath
5
- } from "./chunk-RHYMEHYK.js";
5
+ } from "./chunk-TRRRRGMI.js";
6
6
  import {
7
7
  resolvePaths,
8
8
  singleLine
9
- } from "./chunk-KLNQXUDX.js";
9
+ } from "./chunk-34USFPBF.js";
10
10
  import {
11
11
  CliError
12
- } from "./chunk-QL4WBCL5.js";
12
+ } from "./chunk-EARO464A.js";
13
13
  import {
14
14
  __name
15
15
  } from "./chunk-ZVVMGPBJ.js";
16
16
 
17
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/store/shared-config.js
17
+ // node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/store/shared-config.js
18
18
  import { mkdirSync, readFileSync, renameSync, statSync, writeFileSync } from "node:fs";
19
19
  import { dirname, join, resolve } from "node:path";
20
20
 
21
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/domain/task-categories.js
21
+ // node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/domain/task-categories.js
22
22
  var DEFAULT_TASK_CATEGORIES = [
23
23
  {
24
24
  name: "taxes",
@@ -773,7 +773,7 @@ var storedTaskCategories = /* @__PURE__ */ __name((json) => {
773
773
  }
774
774
  }, "storedTaskCategories");
775
775
 
776
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/store/shared-config.js
776
+ // node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/store/shared-config.js
777
777
  var SECTION = "task_categories";
778
778
  var sharedConfigPath = /* @__PURE__ */ __name((store, env = process.env) => {
779
779
  const paths = resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env });
@@ -2,16 +2,16 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  alive
5
- } from "./chunk-3GL4AOOG.js";
5
+ } from "./chunk-KIZT2MI6.js";
6
6
  import {
7
7
  resolvePaths,
8
8
  writeSecurely
9
- } from "./chunk-KLNQXUDX.js";
9
+ } from "./chunk-34USFPBF.js";
10
10
  import {
11
11
  __name
12
12
  } from "./chunk-ZVVMGPBJ.js";
13
13
 
14
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/background/lock.js
14
+ // node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/background/lock.js
15
15
  import { existsSync, linkSync, mkdirSync, readdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
16
16
  import { dirname, join } from "node:path";
17
17
  var lockPath = /* @__PURE__ */ __name((app, profile, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "serve", `${profile}.lock`), "lockPath");
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  defineReasons
5
- } from "./chunk-QL4WBCL5.js";
5
+ } from "./chunk-EARO464A.js";
6
6
 
7
7
  // dist/reasons.js
8
8
  var REASONS = defineReasons([
@@ -17,11 +17,16 @@ var REASONS = defineReasons([
17
17
  "provider_unavailable",
18
18
  "Telegram's updates stopped arriving although the connection is open"
19
19
  ],
20
- ["write.unanswered", "outcome_unknown", "Telegram did not answer a write, so it may have happened"]
20
+ ["write.unanswered", "outcome_unknown", "Telegram did not answer a write, so it may have happened"],
21
+ [
22
+ "credentials.unreachable",
23
+ "provider_unavailable",
24
+ "this profile has logged in here, but the keyring holding its keys is locked or out of reach"
25
+ ]
21
26
  ].map(([reason, code, message]) => ({ reason, code, message, details: [] })));
22
27
 
23
28
  // dist/version.js
24
- var VERSION = "0.112.0";
29
+ var VERSION = "0.114.0";
25
30
 
26
31
  // dist/identity.js
27
32
  var TG = {
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/shared-55XJMTPA.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/shared-55XJMTPA.js
8
8
  var entityKind = /* @__PURE__ */ Symbol.for("drizzle:entityKind");
9
9
  var kindsByConstructor = /* @__PURE__ */ new WeakMap();
10
10
  function collectKinds(ctor) {
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  CliError
5
- } from "./chunk-QL4WBCL5.js";
5
+ } from "./chunk-EARO464A.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/search/languages.js
10
+ // node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/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.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/store/normalize.js
18
+ // node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/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.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/search/snowball/base-stemmer.js
23
+ // node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/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.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/search/snowball/english-stemmer.js
398
+ // node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/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.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/search/snowball/russian-stemmer.js
1099
+ // node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/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.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/search/snowball/spanish-stemmer.js
1522
+ // node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/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.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/search/stem.js
2198
+ // node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/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
  CliError
5
- } from "./chunk-QL4WBCL5.js";
5
+ } from "./chunk-EARO464A.js";
6
6
  import {
7
7
  importFrom
8
8
  } from "./chunk-Y5E2WNWB.js";
@@ -10,10 +10,10 @@ import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/speech/recognize.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/speech/recognize.js
14
14
  import { createRequire } from "node:module";
15
15
 
16
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/speech/ogg-limit.js
16
+ // node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/speech/ogg-limit.js
17
17
  var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "local transcription needs a complete mono or stereo Ogg Opus recording"), "invalid");
18
18
  var checkOggDuration = /* @__PURE__ */ __name((bytes) => {
19
19
  const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
@@ -70,7 +70,7 @@ var checkOggDuration = /* @__PURE__ */ __name((bytes) => {
70
70
  throw invalid();
71
71
  }, "checkOggDuration");
72
72
 
73
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/speech/recognize.js
73
+ // node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/speech/recognize.js
74
74
  var SAMPLE_RATE = 16e3;
75
75
  var LEAD = SAMPLE_RATE / 2;
76
76
  var toModelRate = /* @__PURE__ */ __name((samples, rate) => {
@@ -1,54 +1,22 @@
1
1
  import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
- ENTITIES
5
- } from "./chunk-B3Y2KZRS.js";
6
- import {
7
- annotate,
4
+ answerEntitySchema,
5
+ answerProjectionSchema,
8
6
  answerSchema,
9
7
  describeOptions,
10
8
  keyForCommand,
11
9
  metaOf
12
- } from "./chunk-4JXZKMXV.js";
10
+ } from "./chunk-AL36NHO6.js";
13
11
  import {
14
12
  CliError,
15
13
  jsonSchemaOf
16
- } from "./chunk-QL4WBCL5.js";
14
+ } from "./chunk-EARO464A.js";
17
15
  import {
18
16
  __name
19
17
  } from "./chunk-ZVVMGPBJ.js";
20
18
 
21
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/cli/answer-entity.js
22
- var schemas = /* @__PURE__ */ new WeakMap();
23
- var answerEntity = /* @__PURE__ */ __name((command, name, schema, options = {}) => {
24
- if (Object.hasOwn(ENTITIES, name))
25
- throw new Error(`${name} is a shared entity; use its existing schema`);
26
- if (!/^[a-z][a-z0-9_]*$/.test(name))
27
- throw new Error("an answer entity needs a lowercase name");
28
- if (!("entries" in schema) && schema.type !== "union")
29
- throw new Error("an answer entity needs an object schema or a union of object schemas");
30
- if (options.project && !("entries" in options.project) && options.project.type !== "union")
31
- throw new Error("projection needs an object schema or a union of object schemas");
32
- schemas.set(command, { name, schema, ...options });
33
- return annotate(command, { output: { entity: name } });
34
- }, "answerEntity");
35
- var answerEntitySchema = /* @__PURE__ */ __name((command) => {
36
- const output = command && metaOf(command).output;
37
- if (!output)
38
- return void 0;
39
- const name = output.view ? `${output.entity}.${output.view}` : output.entity;
40
- const shared = ENTITIES[name];
41
- if (shared)
42
- return shared;
43
- const own = schemas.get(command);
44
- return own?.name === name ? own.schema : void 0;
45
- }, "answerEntitySchema");
46
- var answerProjectionSchema = /* @__PURE__ */ __name((command) => {
47
- const own = command && schemas.get(command);
48
- return own && metaOf(command).output?.entity === own.name ? own.project : void 0;
49
- }, "answerProjectionSchema");
50
-
51
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/cli/command-contract.js
19
+ // node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/cli/command-contract.js
52
20
  var SCHEMA_DIALECT = "https://json-schema.org/draft/2020-12/schema";
53
21
  var outputOf = /* @__PURE__ */ __name((command) => {
54
22
  const entity = answerEntitySchema(command);
@@ -153,9 +121,6 @@ var commandContract = /* @__PURE__ */ __name((command) => {
153
121
  }, "commandContract");
154
122
 
155
123
  export {
156
- answerEntity,
157
- answerEntitySchema,
158
- answerProjectionSchema,
159
124
  SCHEMA_DIALECT,
160
125
  outputOf,
161
126
  commandPathOf,
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  CliError
5
- } from "./chunk-QL4WBCL5.js";
5
+ } from "./chunk-EARO464A.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/models/types.js
10
+ // node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/models/types.js
11
11
  var MAX_MODEL_IMAGE_BYTES = 4 * 1024 * 1024;
12
12
  var validateImages = /* @__PURE__ */ __name((images) => {
13
13
  if (images === void 0)
@@ -10,12 +10,12 @@ import {
10
10
  optional,
11
11
  pipe,
12
12
  safeParse
13
- } from "./chunk-QL4WBCL5.js";
13
+ } from "./chunk-EARO464A.js";
14
14
  import {
15
15
  __name
16
16
  } from "./chunk-ZVVMGPBJ.js";
17
17
 
18
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/models/options.js
18
+ // node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/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) {
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/mcp/instructions.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/mcp/instructions.js
8
8
  var instructions = /* @__PURE__ */ __name(({ command, name, profile, writes, skill }) => {
9
9
  const all = typeof profile !== "string";
10
10
  const offers = /* @__PURE__ */ __name((key) => all || writes.includes(key), "offers");