@wirecat/tg-cli 0.103.0 → 0.104.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 (87) hide show
  1. package/README.md +1 -0
  2. package/dist/bin/tg.js +2 -2
  3. package/dist/bundle/{adapter-QG3YFFOY.js → adapter-QTAHA2JC.js} +37 -37
  4. package/dist/bundle/{all-profiles-ECXH3TBF.js → all-profiles-7CXBVRFU.js} +5 -5
  5. package/dist/bundle/{anthropic-5MKO3QX7.js → anthropic-FWBQ7JHT.js} +3 -3
  6. package/dist/bundle/app-server-XF4GY2Y6.js +222 -0
  7. package/dist/bundle/{bot-api-4DQPIOMK.js → bot-api-XDMMWRYI.js} +38 -38
  8. package/dist/bundle/{bot-history-UN74XXLU.js → bot-history-TU2X7RNN.js} +10 -10
  9. package/dist/bundle/{bun-PS73VF2C.js → bun-6GSDPKNZ.js} +2 -2
  10. package/dist/bundle/{bun-sqlite-RAWGPH23.js → bun-sqlite-AO27E35V.js} +2 -2
  11. package/dist/bundle/{chunk-ZHXSRYJ5.js → chunk-3GGU65YR.js} +7 -5
  12. package/dist/bundle/{chunk-SSV37M5T.js → chunk-3XZQQGCB.js} +46 -46
  13. package/dist/bundle/{chunk-VZN5LD26.js → chunk-54RJDS3X.js} +2 -2
  14. package/dist/bundle/{chunk-SSALGKMJ.js → chunk-5K7E36ND.js} +2 -2
  15. package/dist/bundle/{chunk-RKQIEJFR.js → chunk-6K4QGBXU.js} +1 -1
  16. package/dist/bundle/{chunk-DLF3H6NP.js → chunk-6YUFPSSE.js} +4 -4
  17. package/dist/bundle/{chunk-TEO2KP52.js → chunk-7WHM3KNI.js} +1 -1
  18. package/dist/bundle/{chunk-57XGUIXA.js → chunk-ADMV4WGV.js} +4 -4
  19. package/dist/bundle/{chunk-RD7SSY7H.js → chunk-B7TTM75D.js} +1 -1
  20. package/dist/bundle/{chunk-BV4N333Y.js → chunk-BI2AXVHY.js} +2 -2
  21. package/dist/bundle/{chunk-F27OI4J2.js → chunk-BIWJK5YU.js} +1 -1
  22. package/dist/bundle/{chunk-Q2LBOPKO.js → chunk-BKVJNPA6.js} +25 -14
  23. package/dist/bundle/{chunk-3CP7RK5R.js → chunk-C5N7G6UH.js} +1 -1
  24. package/dist/bundle/{chunk-QF7VVIF4.js → chunk-DANCAYRP.js} +11 -6
  25. package/dist/bundle/{chunk-EMC57SOZ.js → chunk-FRZHF2X6.js} +9 -7
  26. package/dist/bundle/{chunk-NIVZHTN4.js → chunk-FUWSIEYY.js} +9 -9
  27. package/dist/bundle/{chunk-EQHQ2AX3.js → chunk-GE22MYA6.js} +57 -48
  28. package/dist/bundle/{chunk-KCVDWZWS.js → chunk-GZ5CR5QB.js} +7 -7
  29. package/dist/bundle/{chunk-OGVBRRWY.js → chunk-HOR7DS3P.js} +20 -20
  30. package/dist/bundle/{chunk-6N25NZOE.js → chunk-KRLCUBII.js} +5 -5
  31. package/dist/bundle/{chunk-RMC2S3F4.js → chunk-LJCGQMGN.js} +4 -4
  32. package/dist/bundle/{chunk-YI72UVTJ.js → chunk-LOFG3Q35.js} +1 -1
  33. package/dist/bundle/{chunk-Z2DPNTSU.js → chunk-LSQUNABH.js} +1 -1
  34. package/dist/bundle/{chunk-537O7OVE.js → chunk-MB3PCNRL.js} +2 -2
  35. package/dist/bundle/{chunk-LAYPLF7G.js → chunk-MCD2GANK.js} +5 -5
  36. package/dist/bundle/{chunk-5HPAPVCB.js → chunk-MR4LW4EC.js} +2140 -1907
  37. package/dist/bundle/{chunk-AUKAZRF6.js → chunk-N6VHHMSZ.js} +1 -1
  38. package/dist/bundle/{chunk-MHHDVR4G.js → chunk-P3WU6UYJ.js} +193 -193
  39. package/dist/bundle/{chunk-3QX6SOEO.js → chunk-PHQTSF44.js} +4 -4
  40. package/dist/bundle/{chunk-GO354DJ5.js → chunk-PWIE7VBL.js} +1 -1
  41. package/dist/bundle/{chunk-KQ5BUI5T.js → chunk-QVTCOBN5.js} +257 -243
  42. package/dist/bundle/{chunk-NKN54EDN.js → chunk-QY7MW7HK.js} +2 -2
  43. package/dist/bundle/{chunk-HCDZWFXO.js → chunk-RRWMYR2H.js} +10 -9
  44. package/dist/bundle/{chunk-AAMJZJYC.js → chunk-RTAV5XNT.js} +8 -8
  45. package/dist/bundle/{server-6XYURULQ.js → chunk-SZE6425L.js} +46 -62
  46. package/dist/bundle/{chunk-FSPDODVT.js → chunk-TJR37WKA.js} +10 -10
  47. package/dist/bundle/{chunk-COZ74WW4.js → chunk-U2AK4QXY.js} +20 -2
  48. package/dist/bundle/{chunk-DWQ4QT6X.js → chunk-UDXRDFHN.js} +92 -91
  49. package/dist/bundle/{chunk-CMQ34EZL.js → chunk-UT6G2X7T.js} +4 -3
  50. package/dist/bundle/{chunk-S5M4HFOZ.js → chunk-UTVANQN5.js} +1 -1
  51. package/dist/bundle/{chunk-H2UTBYFC.js → chunk-UVYY5EIS.js} +1 -1
  52. package/dist/bundle/{chunk-G5IMOOPB.js → chunk-Y3VNNLUT.js} +1 -1
  53. package/dist/bundle/{chunk-TPFLD4OM.js → chunk-Y5PJQPMQ.js} +1 -1
  54. package/dist/bundle/{chunk-WULARSC4.js → chunk-YBQ753RP.js} +20 -20
  55. package/dist/bundle/{chunk-3IXKDIPH.js → chunk-YD6ZQ6LM.js} +44 -42
  56. package/dist/bundle/{chunk-BYYSVINK.js → chunk-ZBH7Z6WX.js} +2 -2
  57. package/dist/bundle/{command-contract-ZGFJTLB2.js → command-contract-RICU4OWW.js} +12 -12
  58. package/dist/bundle/{echarts-UEQDIHVQ.js → echarts-2YP32GX5.js} +2 -2
  59. package/dist/bundle/{embed-5DPZKRW5.js → embed-QNWVBCL5.js} +3 -3
  60. package/dist/bundle/{embedder-NBQXDXAO.js → embedder-ENS7ARPP.js} +6 -6
  61. package/dist/bundle/{entry-EE6YRAP4.js → entry-MPYSQPZO.js} +3 -3
  62. package/dist/bundle/{first-run-OSEVVWNT.js → first-run-YLB7RNGP.js} +5 -5
  63. package/dist/bundle/{first-screen-753THOU6.js → first-screen-AYOE4JFC.js} +13 -13
  64. package/dist/bundle/{identity-LNH33PN3.js → identity-XQLO7NYW.js} +1 -1
  65. package/dist/bundle/{instructions-PYGVIT7I.js → instructions-5F4XG3B6.js} +3 -1
  66. package/dist/bundle/{node-3OBKCX6M.js → node-JOUDFPFN.js} +2 -2
  67. package/dist/bundle/{node-sqlite-DMMTDRFB.js → node-sqlite-ZY6ZFFXS.js} +2 -2
  68. package/dist/bundle/{oauth-FX5DDCRS.js → oauth-KOR3ZNTA.js} +4 -4
  69. package/dist/bundle/{open-G6QRQAAL.js → open-JACXAGY5.js} +1 -1
  70. package/dist/bundle/{process-47MMIFIJ.js → process-7W3X5VME.js} +1 -1
  71. package/dist/bundle/{program-LBHBWRK5.js → program-NSZWGHNJ.js} +40 -40
  72. package/dist/bundle/{prompt-CJ6Y4JYC.js → prompt-CRRG5UB6.js} +2 -2
  73. package/dist/bundle/{recognize-7BLTOI45.js → recognize-ASXEB45M.js} +3 -3
  74. package/dist/bundle/{remote-Q4A4JY6U.js → remote-CB3GAXGJ.js} +4 -4
  75. package/dist/bundle/{rerank-CQAR46L3.js → rerank-PDD5BPID.js} +4 -4
  76. package/dist/bundle/{serve-2UO2YMMG.js → serve-M4XFAYUM.js} +6 -6
  77. package/dist/bundle/{server-FMKC4RLL.js → server-IN673OYO.js} +26 -26
  78. package/dist/bundle/server-ISWPSKQ6.js +55 -0
  79. package/dist/bundle/{state-RNWN2RDY.js → state-626GOOVZ.js} +3 -3
  80. package/dist/bundle/{store-BBHTR477.js → store-6JM4HJU5.js} +7 -7
  81. package/dist/bundle/store-maintenance-command-DI2UX4V3.js +44 -0
  82. package/dist/bundle/tg.js +2 -2
  83. package/dist/version.d.ts +1 -1
  84. package/dist/version.js +1 -1
  85. package/package.json +2 -2
  86. package/skills/tg-cli/SKILL.md +1 -0
  87. package/dist/bundle/store-maintenance-command-GD6OLRXH.js +0 -44
@@ -10,7 +10,7 @@ import {
10
10
  refuseLacking,
11
11
  servicesFor,
12
12
  throughWrapper
13
- } from "./chunk-MHHDVR4G.js";
13
+ } from "./chunk-P3WU6UYJ.js";
14
14
  import {
15
15
  CEILING_KEY,
16
16
  LOG_ATTRIBUTES,
@@ -34,21 +34,21 @@ import {
34
34
  rememberAccount,
35
35
  rootOf2 as rootOf,
36
36
  skipFlagFor
37
- } from "./chunk-EQHQ2AX3.js";
37
+ } from "./chunk-GE22MYA6.js";
38
38
  import {
39
39
  isCliFailure,
40
40
  providerErrorKey
41
- } from "./chunk-EMC57SOZ.js";
41
+ } from "./chunk-FRZHF2X6.js";
42
42
  import {
43
43
  MESSENGER_CHANGE_REFUSAL,
44
44
  readOnlyRefusal
45
- } from "./chunk-AUKAZRF6.js";
45
+ } from "./chunk-N6VHHMSZ.js";
46
46
  import {
47
47
  servingProfiles
48
- } from "./chunk-VZN5LD26.js";
48
+ } from "./chunk-54RJDS3X.js";
49
49
  import {
50
50
  openStore
51
- } from "./chunk-KQ5BUI5T.js";
51
+ } from "./chunk-QVTCOBN5.js";
52
52
  import {
53
53
  logRecordOf,
54
54
  realSleep,
@@ -62,7 +62,7 @@ import {
62
62
  __name
63
63
  } from "./chunk-ZVVMGPBJ.js";
64
64
 
65
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/cli/messenger/ask.js
65
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/cli/messenger/ask.js
66
66
  import { openSync } from "node:fs";
67
67
  import { createInterface } from "node:readline";
68
68
  import { ReadStream } from "node:tty";
@@ -117,10 +117,10 @@ var terminalAsker = /* @__PURE__ */ __name((command) => async (key, request) =>
117
117
  throw new CliError("cancelled", `${key}: not done \u2014 the answer was no`);
118
118
  }, "terminalAsker");
119
119
 
120
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/sends/guard.js
120
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/sends/guard.js
121
121
  import { randomUUID } from "node:crypto";
122
122
 
123
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/sends/flood.js
123
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/sends/flood.js
124
124
  import { mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
125
125
  import { dirname, join } from "node:path";
126
126
  var MOST_DEADLINES = 50;
@@ -204,11 +204,11 @@ var FloodMemory = class {
204
204
  }
205
205
  };
206
206
 
207
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/sends/journal.js
207
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/sends/journal.js
208
208
  import { appendFileSync, mkdirSync as mkdirSync3, readFileSync as readFileSync2 } from "node:fs";
209
209
  import { dirname as dirname3, join as join2 } from "node:path";
210
210
 
211
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/sends/file-lock.js
211
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/sends/file-lock.js
212
212
  import { closeSync, mkdirSync as mkdirSync2, openSync as openSync2, statSync, unlinkSync } from "node:fs";
213
213
  import { dirname as dirname2 } from "node:path";
214
214
  var LOCK_WAIT_MS = 5e3;
@@ -275,7 +275,7 @@ var lockTime = /* @__PURE__ */ __name((lock) => {
275
275
  }
276
276
  }, "lockTime");
277
277
 
278
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/sends/journal.js
278
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/sends/journal.js
279
279
  var sendsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "sends", `${profile}.jsonl`), "sendsPathFor");
280
280
  var SendJournal = class {
281
281
  static {
@@ -352,7 +352,7 @@ var withSendId = /* @__PURE__ */ __name((entry) => {
352
352
  return cid === void 0 || rest.sendId !== void 0 ? rest : { ...rest, sendId: String(cid) };
353
353
  }, "withSendId");
354
354
 
355
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/sends/recipients.js
355
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/sends/recipients.js
356
356
  import { existsSync, readFileSync as readFileSync3, rmSync } from "node:fs";
357
357
  import { join as join3 } from "node:path";
358
358
  var recipientsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "profiles", `${profile}.recipients.json`), "recipientsPathFor");
@@ -464,7 +464,7 @@ var RecipientList = class {
464
464
  }
465
465
  };
466
466
 
467
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/sends/guard.js
467
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/sends/guard.js
468
468
  var HOUR_MS = 60 * 60 * 1e3;
469
469
  var READS_UNDER_HOLD = /* @__PURE__ */ new Set([
470
470
  "attachments.extract",
@@ -657,7 +657,7 @@ var guardFor = /* @__PURE__ */ __name((app, settings, warn, env = process.env, a
657
657
  }), "guardFor");
658
658
  var journalFailure = /* @__PURE__ */ __name((error) => error?.code ?? (error instanceof Error ? error.name : "error"), "journalFailure");
659
659
 
660
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/sends/pace.js
660
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/sends/pace.js
661
661
  import { readFileSync as readFileSync4, renameSync as renameSync2, writeFileSync as writeFileSync2 } from "node:fs";
662
662
  import { join as join4 } from "node:path";
663
663
  var DEFAULT_PACE = { perMinute: 60, burst: 20 };
@@ -716,7 +716,7 @@ var Pacer = class {
716
716
  }
717
717
  };
718
718
 
719
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/cli/permission-keys.js
719
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/cli/permission-keys.js
720
720
  var pathOf = /* @__PURE__ */ __name((command) => {
721
721
  const words = [];
722
722
  for (let at = command; at?.parent; at = at.parent)
@@ -776,7 +776,7 @@ var refuseUnknownPermissionKeys = /* @__PURE__ */ __name((command, settings, too
776
776
  throw new CliError("validation_error", `--permission ${key} names no command`, { permission: key });
777
777
  }, "refuseUnknownPermissionKeys");
778
778
 
779
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
779
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
780
780
  var LONG_LIVED = /* @__PURE__ */ new Set(["self", "newSendId", "close", "formatMarkdown", "formatHtml", "storedChats"]);
781
781
  var LISTENING = /* @__PURE__ */ new Set(["watch", "feed", "listen", "listenHistory"]);
782
782
  var BLOCKING = /* @__PURE__ */ new Set(["frozen", "limited", "banned"]);
@@ -895,7 +895,7 @@ var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer })
895
895
  });
896
896
  }, "flooded");
897
897
 
898
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/cli/messenger/observed.js
898
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/cli/messenger/observed.js
899
899
  var observed = /* @__PURE__ */ __name((messenger, events) => {
900
900
  const timed = /* @__PURE__ */ __name(async (operation, named, work, after) => {
901
901
  const write = currentOperation();
@@ -994,7 +994,7 @@ var byPart = /* @__PURE__ */ __name((batch, counts) => {
994
994
  counts[part] = (counts[part] ?? 0) + items.length;
995
995
  }, "byPart");
996
996
 
997
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/cli/messenger/stored.js
997
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/cli/messenger/stored.js
998
998
  var REKEY_PACING = { lockMs: 50, pauseMs: 25 };
999
999
  var stored = /* @__PURE__ */ __name((messenger, { account, store, warn, events, pending, announcing, deletedWithoutChat, profile, rekeyed, rekeyPacing = REKEY_PACING, closing, namesFromStore, recipientIds, countsUnread = false }) => {
1000
1000
  let warned = false;
@@ -1486,7 +1486,7 @@ var keep = /* @__PURE__ */ __name(async (store, account, event, seenAt, among, c
1486
1486
  }
1487
1487
  }, "keep");
1488
1488
 
1489
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/cli/messenger/context.js
1489
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/cli/messenger/context.js
1490
1490
  var lazyStore = /* @__PURE__ */ __name((env, command, version) => {
1491
1491
  let opened;
1492
1492
  return {
@@ -7,14 +7,14 @@ import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/driver.js
10
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/driver.js
11
11
  var PRAGMAS = `
12
12
  PRAGMA busy_timeout = 5000;
13
13
  PRAGMA journal_mode = WAL;
14
14
  PRAGMA foreign_keys = ON;
15
15
  `;
16
16
 
17
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite-warning.js
17
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite-warning.js
18
18
  var SQLITE_WARNING = "SQLite is an experimental feature";
19
19
  var quieted = /* @__PURE__ */ new WeakSet();
20
20
  var quietSqliteWarning = /* @__PURE__ */ __name((host = process) => {
@@ -35,7 +35,7 @@ var isSqliteWarning = /* @__PURE__ */ __name((warning, options) => {
35
35
  return name === "ExperimentalWarning" && message.startsWith(SQLITE_WARNING);
36
36
  }, "isSqliteWarning");
37
37
 
38
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/open.js
38
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/open.js
39
39
  var openCache = /* @__PURE__ */ __name(async (path) => {
40
40
  const database = await openFile(path);
41
41
  try {
@@ -48,12 +48,12 @@ var openCache = /* @__PURE__ */ __name(async (path) => {
48
48
  }, "openCache");
49
49
  var openFile = /* @__PURE__ */ __name((path) => "Bun" in globalThis ? openUnderBun(path) : openUnderNode(path), "openFile");
50
50
  var openUnderBun = /* @__PURE__ */ __name(async (path) => {
51
- const { openWithBunSqlite } = await import("./bun-sqlite-RAWGPH23.js");
51
+ const { openWithBunSqlite } = await import("./bun-sqlite-AO27E35V.js");
52
52
  return await openWithBunSqlite(path);
53
53
  }, "openUnderBun");
54
54
  var openUnderNode = /* @__PURE__ */ __name(async (path) => {
55
55
  quietSqliteWarning();
56
- const { openWithNodeSqlite } = await import("./node-sqlite-DMMTDRFB.js");
56
+ const { openWithNodeSqlite } = await import("./node-sqlite-ZY6ZFFXS.js");
57
57
  return openWithNodeSqlite(path);
58
58
  }, "openUnderNode");
59
59
  var runtime = /* @__PURE__ */ __name(() => {
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  wirecatDirectory
5
- } from "./chunk-TPFLD4OM.js";
5
+ } from "./chunk-Y5PJQPMQ.js";
6
6
  import {
7
7
  CliError
8
8
  } from "./chunk-67SRVSPU.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.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/speech/install.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/speech/install.js
14
14
  import { createHash, randomUUID } from "node:crypto";
15
15
  import { createReadStream, createWriteStream, mkdirSync, statSync } from "node:fs";
16
16
  import { rename, rm } from "node:fs/promises";
@@ -18,7 +18,7 @@ import { dirname, join } from "node:path";
18
18
  import { Readable, Transform } from "node:stream";
19
19
  import { pipeline } from "node:stream/promises";
20
20
 
21
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/speech/models.js
21
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/speech/models.js
22
22
  var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/csukuangfj/${repository}/resolve/${commit}/${name}`, "huggingFace");
23
23
  var gigaam = huggingFace("sherpa-onnx-nemo-transducer-punct-giga-am-v3-russian-2025-12-16", "a6039be7cee829a9044a69ac0ebaf1c191217c97");
24
24
  var gigaamCtc = huggingFace("sherpa-onnx-nemo-ctc-punct-giga-am-v3-russian-2025-12-16", "4fb5407ff028a69fec516cdf4c10fac9ddea7c16");
@@ -142,7 +142,7 @@ var speechModel = /* @__PURE__ */ __name((id) => {
142
142
  return model;
143
143
  }, "speechModel");
144
144
 
145
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/speech/install.js
145
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/speech/install.js
146
146
  var sharedModelsDirectory = /* @__PURE__ */ __name((kind, env = process.env) => join(wirecatDirectory(env), "models", kind), "sharedModelsDirectory");
147
147
  var modelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedModelsDirectory("audio", env), "modelsDirectory");
148
148
  var STALL_MS = 6e4;
@@ -7,7 +7,7 @@ import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/models/types.js
10
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/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)
@@ -15,7 +15,7 @@ import {
15
15
  __name
16
16
  } from "./chunk-ZVVMGPBJ.js";
17
17
 
18
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/models/options.js
18
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/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
  MAX_SECRET_INPUT,
5
5
  bufferedInput,
6
6
  inputPolicy
7
- } from "./chunk-TEO2KP52.js";
7
+ } from "./chunk-7WHM3KNI.js";
8
8
  import {
9
9
  CliError
10
10
  } from "./chunk-67SRVSPU.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.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/terminal/prompt.js
15
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/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 readSecret = /* @__PURE__ */ __name(async (prompt, { input = process.stdin, output = process.stderr, echo = false, signal: givenSignal } = {}) => {
@@ -5,7 +5,7 @@ import {
5
5
  installFiles,
6
6
  megabytes,
7
7
  sharedModelsDirectory
8
- } from "./chunk-RMC2S3F4.js";
8
+ } from "./chunk-LJCGQMGN.js";
9
9
  import {
10
10
  CliError
11
11
  } from "./chunk-67SRVSPU.js";
@@ -16,12 +16,12 @@ import {
16
16
  __name
17
17
  } from "./chunk-ZVVMGPBJ.js";
18
18
 
19
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
19
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
20
20
  import { readFileSync as readFileSync2 } from "node:fs";
21
21
  import { availableParallelism } from "node:os";
22
22
  import { basename, join as join2 } from "node:path";
23
23
 
24
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/embeddings/onnx-runtime.js
24
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/embeddings/onnx-runtime.js
25
25
  import { createHash } from "node:crypto";
26
26
  import { copyFileSync, mkdirSync, mkdtempSync, readFileSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
27
27
  import { join } from "node:path";
@@ -678,7 +678,7 @@ var Unzip = /* @__PURE__ */ (function() {
678
678
  return Unzip2;
679
679
  })();
680
680
 
681
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/embeddings/onnx-runtime.js
681
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/embeddings/onnx-runtime.js
682
682
  var ONNX_RUNTIME_VERSION = "1.30.0";
683
683
  var release = /* @__PURE__ */ __name((name, sha256, bytes) => ({
684
684
  name,
@@ -858,7 +858,7 @@ var openSession = /* @__PURE__ */ __name(async (bytes, threads, options = {}) =>
858
858
  return { ort, session: await ort.InferenceSession.create(bytes, options) };
859
859
  }, "openSession");
860
860
 
861
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
861
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
862
862
  var textModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedModelsDirectory("text", env), "textModelsDirectory");
863
863
  var placedText = /* @__PURE__ */ __name((model, directory) => model.files.map((file) => [file, join2(directory, model.id, file.name)]), "placedText");
864
864
  var isTextModelInstalled = /* @__PURE__ */ __name((model, directory) => filesPresent(placedText(model, directory)), "isTextModelInstalled");