@wirecat/tg-cli 0.127.0 → 0.128.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 (97) hide show
  1. package/dist/bin/tg.js +2 -2
  2. package/dist/bundle/{adapter-EZFS2UR6.js → adapter-JOI34QLS.js} +43 -43
  3. package/dist/bundle/{all-profiles-TNIUBQK6.js → all-profiles-2BZEE7J2.js} +18 -28
  4. package/dist/bundle/{anthropic-NGIS5LTL.js → anthropic-NW7DL3S3.js} +2 -2
  5. package/dist/bundle/{app-server-RPU76G7D.js → app-server-RUTYKELF.js} +39 -54
  6. package/dist/bundle/{bot-api-QJ6U6BLG.js → bot-api-DW6NAZAQ.js} +44 -44
  7. package/dist/bundle/{bot-history-THULK2C6.js → bot-history-FAJ2W42U.js} +12 -12
  8. package/dist/bundle/{bun-QLSLLP27.js → bun-IVP5LSVI.js} +2 -2
  9. package/dist/bundle/{bun-sqlite-SH5245ZY.js → bun-sqlite-ATPCJ4CT.js} +3 -3
  10. package/dist/bundle/{chunk-4CQ3PV3V.js → chunk-2A3TC52A.js} +7 -7
  11. package/dist/bundle/{chunk-SN52ZGFN.js → chunk-2IL4YDGG.js} +2 -2
  12. package/dist/bundle/{chunk-TGKTIDYS.js → chunk-2QHIOPSA.js} +176 -150
  13. package/dist/bundle/{chunk-ZSS3BH6Z.js → chunk-3UGRMFWK.js} +2 -2
  14. package/dist/bundle/{chunk-QPVCFSVU.js → chunk-4DSIGS2E.js} +5 -5
  15. package/dist/bundle/{chunk-BNM6KNUQ.js → chunk-5AP25FMW.js} +1 -1
  16. package/dist/bundle/{chunk-ERUB3KU3.js → chunk-7D6LI2N7.js} +5 -5
  17. package/dist/bundle/{chunk-FSDLSEZA.js → chunk-7I5NMVX7.js} +1 -1
  18. package/dist/bundle/{chunk-3WI53AA4.js → chunk-AF2XVV5P.js} +648 -239
  19. package/dist/bundle/{chunk-3I3TGKVG.js → chunk-BVCRDHI2.js} +3 -3
  20. package/dist/bundle/{chunk-JF7D2Y4K.js → chunk-E56QE3UC.js} +352 -325
  21. package/dist/bundle/{chunk-J6FHZXNS.js → chunk-EAUHYQUK.js} +40 -48
  22. package/dist/bundle/{chunk-IWJ5OLU6.js → chunk-F4UIBEQK.js} +2 -2
  23. package/dist/bundle/{chunk-DNNYE6PS.js → chunk-FHGAJK4I.js} +16 -13
  24. package/dist/bundle/{chunk-MTU3UP5U.js → chunk-G3PL3R45.js} +1 -1
  25. package/dist/bundle/{chunk-Y7UA7HGL.js → chunk-GYO4WXLG.js} +2 -2
  26. package/dist/bundle/{chunk-LOG65WHO.js → chunk-IHLNXL2D.js} +1 -1
  27. package/dist/bundle/{chunk-P5NJECXX.js → chunk-IIHCSJV2.js} +507 -340
  28. package/dist/bundle/{chunk-4FFKCC7Y.js → chunk-IV2KJQ5F.js} +16 -15
  29. package/dist/bundle/{chunk-EGNQSWPH.js → chunk-J3SX36NE.js} +1 -1
  30. package/dist/bundle/{chunk-CXWAKV2O.js → chunk-JI2PFQFL.js} +5 -5
  31. package/dist/bundle/{chunk-S3XUJPPL.js → chunk-JJGPU24U.js} +4 -4
  32. package/dist/bundle/{chunk-XUAVZ6YX.js → chunk-KF2Q776U.js} +7 -7
  33. package/dist/bundle/{chunk-3CV5TBBR.js → chunk-KKZQK6IK.js} +2 -2
  34. package/dist/bundle/{chunk-VMV5CMLH.js → chunk-LTADKMP5.js} +1 -1
  35. package/dist/bundle/{chunk-X4ECHJNG.js → chunk-MC6FOTCV.js} +98 -6
  36. package/dist/bundle/{chunk-BWHVHPAQ.js → chunk-MDGLKMLD.js} +5 -5
  37. package/dist/bundle/{chunk-APSMQIA4.js → chunk-MGBVVQTU.js} +2 -2
  38. package/dist/bundle/{chunk-JWEKUAVZ.js → chunk-MOUPWPNL.js} +10 -10
  39. package/dist/bundle/{chunk-NBN5OYXH.js → chunk-NXDQXDRN.js} +3 -3
  40. package/dist/bundle/{chunk-GHVRCLJI.js → chunk-ODBK56ZR.js} +1 -1
  41. package/dist/bundle/{chunk-7GE6KMLB.js → chunk-OX6574YV.js} +11 -11
  42. package/dist/bundle/{chunk-2R6ZSE3O.js → chunk-PJA43HVE.js} +2 -2
  43. package/dist/bundle/{chunk-5AOFOJQA.js → chunk-Q3ZO6Q3M.js} +4 -4
  44. package/dist/bundle/{chunk-FD44T7HC.js → chunk-QO4ON2X7.js} +1 -1
  45. package/dist/bundle/{chunk-Y65BQJOY.js → chunk-QYN5RDTZ.js} +2 -2
  46. package/dist/bundle/{chunk-R52ZZZKZ.js → chunk-R4QVV3LN.js} +23 -12
  47. package/dist/bundle/{chunk-UIQMBOXU.js → chunk-RIGNCUZD.js} +1 -1
  48. package/dist/bundle/{chunk-5SN6KFPC.js → chunk-RZFIQMOA.js} +55 -52
  49. package/dist/bundle/{chunk-4MKRKW6V.js → chunk-SDLJJF7E.js} +12 -12
  50. package/dist/bundle/{chunk-HPM47WO3.js → chunk-T2CWSFGY.js} +394 -378
  51. package/dist/bundle/{chunk-JFQZ6BWI.js → chunk-TGUXKG4B.js} +16 -16
  52. package/dist/bundle/{chunk-Y62I2T36.js → chunk-TQFUAKU6.js} +1 -1
  53. package/dist/bundle/{chunk-UW34Z7J3.js → chunk-UURJO46N.js} +1 -1
  54. package/dist/bundle/{chunk-K4VO7S6Q.js → chunk-WG3BF7SA.js} +1 -1
  55. package/dist/bundle/{chunk-YIPOWJPN.js → chunk-WMF6SL5D.js} +1 -1
  56. package/dist/bundle/{chunk-UY2TRFYN.js → chunk-WMUPZ3IY.js} +10 -10
  57. package/dist/bundle/{chunk-H7GAFD4N.js → chunk-WPMJQIEU.js} +1 -1
  58. package/dist/bundle/{chunk-5FDYMMEQ.js → chunk-XYAH6QQO.js} +2 -2
  59. package/dist/bundle/{chunk-YZGIQY2R.js → chunk-YSXDCSBP.js} +33 -23
  60. package/dist/bundle/{chunk-45URY64S.js → chunk-YVV5S2QA.js} +1 -1
  61. package/dist/bundle/{chunk-5KZKVKWU.js → chunk-ZVLYK6CZ.js} +6 -6
  62. package/dist/bundle/{command-contract-DY6Y4TES.js → command-contract-3BSXDYBC.js} +13 -13
  63. package/dist/bundle/{command-server-entry-UG2CLYXI.js → command-server-entry-BU3X4XNL.js} +20 -20
  64. package/dist/bundle/{decode-3NEUZJ2N.js → decode-NXB7E46F.js} +2 -2
  65. package/dist/bundle/{echarts-CN6ZVAJZ.js → echarts-NAXLKJLA.js} +2 -2
  66. package/dist/bundle/{embed-M4EHIKA5.js → embed-LB6ONWHX.js} +3 -3
  67. package/dist/bundle/{embedder-K2XL2UB4.js → embedder-WE7B2RU5.js} +6 -6
  68. package/dist/bundle/{entry-6M55YL2H.js → entry-W6Y52ZRN.js} +6 -6
  69. package/dist/bundle/{first-run-TLJILIOF.js → first-run-NVYNZZA6.js} +5 -5
  70. package/dist/bundle/{first-screen-WME7ILW2.js → first-screen-Z6TVHK6I.js} +14 -14
  71. package/dist/bundle/{instructions-QLC2AXAB.js → instructions-MRUC57NS.js} +1 -1
  72. package/dist/bundle/{node-BAA3T4CH.js → node-G7PMDYQV.js} +2 -2
  73. package/dist/bundle/{node-sqlite-FNYVHQCO.js → node-sqlite-RXWQ3SES.js} +4 -4
  74. package/dist/bundle/{oauth-32T5KL5E.js → oauth-6ZWOL6KX.js} +4 -4
  75. package/dist/bundle/{open-4VQ6FUEI.js → open-V7LMZCFI.js} +2 -2
  76. package/dist/bundle/{openai-HDOKCN3Z.js → openai-P472V4ZM.js} +12 -12
  77. package/dist/bundle/{process-GOUBIWKC.js → process-GSNPENHL.js} +1 -1
  78. package/dist/bundle/{program-QFXJL2R5.js → program-IELITPKT.js} +46 -46
  79. package/dist/bundle/{prompt-YYODWYFO.js → prompt-2CP6CQ5N.js} +2 -2
  80. package/dist/bundle/{recognize-7ZULX5HL.js → recognize-R2DEQ5TC.js} +1 -1
  81. package/dist/bundle/{remote-TUG7M5Y5.js → remote-JG3POFES.js} +6 -6
  82. package/dist/bundle/{rerank-D2EZWG66.js → rerank-TVMR3OLL.js} +4 -4
  83. package/dist/bundle/{serve-MP3GA2XX.js → serve-DBWSMLPH.js} +6 -6
  84. package/dist/bundle/{server-D277L3H3.js → server-EXJ2WNZY.js} +37 -35
  85. package/dist/bundle/server-SXNFFAIR.js +61 -0
  86. package/dist/bundle/{sqlite-runtime-XHZXEOLY.js → sqlite-runtime-AWMY7W4Q.js} +3 -3
  87. package/dist/bundle/{state-YI3W6HGO.js → state-HN44BWNQ.js} +3 -3
  88. package/dist/bundle/{store-C4RFPYPK.js → store-GIYS3LHV.js} +9 -9
  89. package/dist/bundle/{store-CIZPJFWE.js → store-LOVKYQDC.js} +11 -11
  90. package/dist/bundle/store-maintenance-command-X3VOYNCG.js +52 -0
  91. package/dist/bundle/tg.js +3 -3
  92. package/dist/version.d.ts +1 -1
  93. package/dist/version.js +1 -1
  94. package/package.json +2 -2
  95. package/dist/bundle/chunk-ZIPUVOGT.js +0 -76
  96. package/dist/bundle/server-GEP7QXGI.js +0 -62
  97. package/dist/bundle/store-maintenance-command-JNDYWFD2.js +0 -52
@@ -7,10 +7,10 @@ import {
7
7
  agentJson,
8
8
  commandAvailability,
9
9
  failureContext
10
- } from "./chunk-R52ZZZKZ.js";
10
+ } from "./chunk-R4QVV3LN.js";
11
11
  import {
12
12
  callerOf
13
- } from "./chunk-X4ECHJNG.js";
13
+ } from "./chunk-MC6FOTCV.js";
14
14
  import {
15
15
  QUERY_ARGUMENT,
16
16
  lentConnection,
@@ -18,10 +18,10 @@ import {
18
18
  refuseLacking,
19
19
  servicesFor,
20
20
  storeModeDeps
21
- } from "./chunk-P5NJECXX.js";
21
+ } from "./chunk-IIHCSJV2.js";
22
22
  import {
23
23
  MAX_BUFFERED_INPUT
24
- } from "./chunk-FSDLSEZA.js";
24
+ } from "./chunk-7I5NMVX7.js";
25
25
  import {
26
26
  DEFAULT_OUTPUT_BYTES,
27
27
  ENTITIES,
@@ -31,6 +31,7 @@ import {
31
31
  authorityAllowed,
32
32
  botApiAllowed,
33
33
  changesMessenger,
34
+ fetchesAt,
34
35
  flatten,
35
36
  judgedAnswer,
36
37
  judgedEffects,
@@ -41,23 +42,23 @@ import {
41
42
  refuseStoreChange,
42
43
  sealed,
43
44
  startRecording
44
- } from "./chunk-TGKTIDYS.js";
45
+ } from "./chunk-2QHIOPSA.js";
45
46
  import {
46
47
  currentCaller,
47
48
  keepsSuccess,
48
49
  runContextOf,
49
50
  withCaller
50
- } from "./chunk-5KZKVKWU.js";
51
+ } from "./chunk-ZVLYK6CZ.js";
51
52
  import {
52
53
  enclosingTraceId,
53
54
  inRun,
54
55
  newRunId,
55
56
  queryDescription,
56
57
  traceOf
57
- } from "./chunk-3WI53AA4.js";
58
+ } from "./chunk-AF2XVV5P.js";
58
59
  import {
59
60
  storeDamaged
60
- } from "./chunk-APSMQIA4.js";
61
+ } from "./chunk-MGBVVQTU.js";
61
62
  import {
62
63
  captureStreams,
63
64
  traceIdOf
@@ -109,7 +110,7 @@ import {
109
110
  __name
110
111
  } from "./chunk-ZVVMGPBJ.js";
111
112
 
112
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/mcp/agent.js
113
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/mcp/agent.js
113
114
  import { Readable } from "node:stream";
114
115
 
115
116
  // node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/lint.js
@@ -3281,7 +3282,7 @@ var VOCABULARY = defineVocabulary({
3281
3282
  ]
3282
3283
  });
3283
3284
 
3284
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/mcp/agent.js
3285
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/mcp/agent.js
3285
3286
  var TYPES = new Map(VOCABULARY.flags.map((flag) => [flag.name, flag.type]));
3286
3287
  var snake = /* @__PURE__ */ __name((name) => name.replaceAll("|", "_or_").replace(/[^a-z0-9]+/gi, "_"), "snake");
3287
3288
  var longOf = /* @__PURE__ */ __name((option) => option.flags.match(/--[a-z0-9][a-z0-9-]*/)?.[0], "longOf");
@@ -3508,7 +3509,7 @@ var runCommandForAgent = /* @__PURE__ */ __name(async (program, path, input, ctx
3508
3509
  }
3509
3510
  }, "runCommandForAgent");
3510
3511
 
3511
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/mcp/tool.js
3512
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/mcp/tool.js
3512
3513
  var limit = optional(pipe(number(), integer(), minValue(1), maxValue(100), description("how many")));
3513
3514
  var page = optional(pipe(number(), integer(), minValue(1), description("which page, from 1")));
3514
3515
  var message = pipe(
@@ -3562,8 +3563,8 @@ var toolKey = /* @__PURE__ */ __name((name, definition) => definition.key !== vo
3562
3563
  var inputOf = /* @__PURE__ */ __name((definition, syncAllowed) => strictObject(syncAllowed || !("sync_first" in definition.input.entries) ? definition.input.entries : Object.fromEntries(Object.entries(definition.input.entries).filter(([name]) => !["sync_first", "sync_time", "max_chats", "max_messages"].includes(name)))), "inputOf");
3563
3564
  var syncAllowedFor = /* @__PURE__ */ __name((key2, defaults) => {
3564
3565
  const permissions = defaults.settings.permissions ?? {};
3565
- const shared = defaults.syncAllowed ?? levelFor(permissions, "messages.sync-first").level === "allow";
3566
- return shared && (!key2.startsWith("stats_") || levelFor(permissions, `${key2.replaceAll("_", ".")}.sync-first`).level === "allow");
3566
+ const shared = defaults.syncAllowed ?? fetchesAt(levelFor(permissions, "messages.sync-first").level);
3567
+ return shared && (!key2.startsWith("stats_") || fetchesAt(levelFor(permissions, `${key2.replaceAll("_", ".")}.sync-first`).level));
3567
3568
  }, "syncAllowedFor");
3568
3569
  var entryRunner = /* @__PURE__ */ __name((registration) => {
3569
3570
  const run = callRunner(registration);
@@ -3726,7 +3727,7 @@ var BinaryResource = class {
3726
3727
  };
3727
3728
  var answered = /* @__PURE__ */ __name((answer, maxBytes = DEFAULT_OUTPUT_BYTES, targets) => {
3728
3729
  const bounded = /* @__PURE__ */ __name((result) => {
3729
- if (maxBytes !== 0 && Buffer.byteLength(JSON.stringify(result)) > maxBytes)
3730
+ if (maxBytes !== 0 && Buffer.byteLength(JSON.stringify(result.content)) > maxBytes)
3730
3731
  throw new CliError("invalid_response", "tool output exceeds its byte limit \u2014 reduce limit or use a narrower request", { reason: "output.too-large", max_bytes: maxBytes, retryable: false });
3731
3732
  return result;
3732
3733
  }, "bounded");
@@ -3767,7 +3768,7 @@ var failed = /* @__PURE__ */ __name((error, errors, effects) => {
3767
3768
  return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(storeDamaged(error), context))));
3768
3769
  }, "failed");
3769
3770
 
3770
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/mcp/surface.js
3771
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/mcp/surface.js
3771
3772
  import { randomUUID } from "node:crypto";
3772
3773
  var MATCHES = 8;
3773
3774
  var ANSWER = answerSchema();
@@ -10,7 +10,7 @@ import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/store/vector-extension.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/store/vector-extension.js
14
14
  import { readFileSync } from "node:fs";
15
15
  var musl = /* @__PURE__ */ __name(() => {
16
16
  if (process.platform !== "linux")
@@ -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-VMV5CMLH.js";
5
+ } from "./chunk-LTADKMP5.js";
6
6
  import {
7
7
  CliError
8
8
  } from "./chunk-7KCBPAQS.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.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/store/sqlite-warning.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/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.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/store/open.js
34
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/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-SH5245ZY.js");
47
+ const { openWithBunSqlite } = await import("./bun-sqlite-ATPCJ4CT.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-FNYVHQCO.js");
52
+ const { openWithNodeSqlite } = await import("./node-sqlite-RXWQ3SES.js");
53
53
  return openWithNodeSqlite(path);
54
54
  }, "openUnderNode");
55
55
  var runtime = /* @__PURE__ */ __name(() => {
@@ -6,7 +6,7 @@ import {
6
6
  import {
7
7
  commandPathOf,
8
8
  outputOf
9
- } from "./chunk-5FDYMMEQ.js";
9
+ } from "./chunk-XYAH6QQO.js";
10
10
  import {
11
11
  Command,
12
12
  Help,
@@ -17,7 +17,7 @@ import {
17
17
  environmentOf,
18
18
  metaOf,
19
19
  takesProfile
20
- } from "./chunk-TGKTIDYS.js";
20
+ } from "./chunk-2QHIOPSA.js";
21
21
  import {
22
22
  writes
23
23
  } from "./chunk-XS5C5TQ7.js";
@@ -28,7 +28,7 @@ import {
28
28
  __name
29
29
  } from "./chunk-ZVVMGPBJ.js";
30
30
 
31
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/cli/help/command-help.js
31
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/cli/help/command-help.js
32
32
  var ARGUMENT_KINDS = {
33
33
  chat: "chat",
34
34
  chats: "chat",
@@ -221,7 +221,7 @@ var installCommandHelp = /* @__PURE__ */ __name((program, { profile = true } = {
221
221
  command.addHelpText("after", () => commandHelpText(command));
222
222
  }, "installCommandHelp");
223
223
 
224
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/cli/help/first-screen.js
224
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/cli/help/first-screen.js
225
225
  var WIRECAT_TOOLS = [
226
226
  {
227
227
  command: "tg",
@@ -2,20 +2,20 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  unit
5
- } from "./chunk-QPVCFSVU.js";
5
+ } from "./chunk-4DSIGS2E.js";
6
6
  import {
7
7
  PLAIN_HTTP_REFUSED,
8
8
  modelAddressAllowed,
9
9
  onThisComputer
10
- } from "./chunk-UIQMBOXU.js";
10
+ } from "./chunk-RIGNCUZD.js";
11
11
  import {
12
12
  readSharedSection,
13
13
  sharedConfigPath,
14
14
  writeSharedSection
15
- } from "./chunk-ERUB3KU3.js";
15
+ } from "./chunk-7D6LI2N7.js";
16
16
  import {
17
17
  storePath
18
- } from "./chunk-Y62I2T36.js";
18
+ } from "./chunk-TQFUAKU6.js";
19
19
  import {
20
20
  boolean,
21
21
  isoTimestamp,
@@ -31,10 +31,10 @@ import {
31
31
  __name
32
32
  } from "./chunk-ZVVMGPBJ.js";
33
33
 
34
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/embeddings/remote.js
34
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/embeddings/remote.js
35
35
  import { setTimeout } from "node:timers/promises";
36
36
 
37
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/models/local-only.js
37
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/models/local-only.js
38
38
  var SECTION = "local_only";
39
39
  var Setting = strictObject({
40
40
  on: boolean(),
@@ -68,7 +68,7 @@ var refuseModelAddress = /* @__PURE__ */ __name((env, address, what) => {
68
68
  refuseOffComputer(env, address, what);
69
69
  }, "refuseModelAddress");
70
70
 
71
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/embeddings/remote.js
71
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/embeddings/remote.js
72
72
  var OPENAI_URL = "https://api.openai.com/v1";
73
73
  var OPENAI_MODELS = {
74
74
  "text-embedding-3-small": { dims: 1536, perMillion: 0.02 },
@@ -8,12 +8,12 @@ import {
8
8
  ACCESS_SECONDS,
9
9
  REFRESH_SECONDS,
10
10
  readStored
11
- } from "./chunk-5AOFOJQA.js";
11
+ } from "./chunk-Q3ZO6Q3M.js";
12
12
  import {
13
13
  __name
14
14
  } from "./chunk-ZVVMGPBJ.js";
15
15
 
16
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/mcp/http/oauth.js
16
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/mcp/http/oauth.js
17
17
  import { createHash, randomBytes, randomInt, timingSafeEqual } from "node:crypto";
18
18
  import { chmodSync, mkdirSync, renameSync, rmSync, writeFileSync } from "node:fs";
19
19
  import { dirname } from "node:path";
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/store/driver.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/store/driver.js
8
8
  var TIME_LIMIT_FUNCTION = "wc_time_limit";
9
9
  var TimeLimitReached = class extends Error {
10
10
  static {
@@ -18,7 +18,7 @@ import {
18
18
  isJSONRPCRequest,
19
19
  isJSONRPCResultResponse,
20
20
  modernOnlyStrictRejection,
21
- process,
21
+ process as process2,
22
22
  requestMetaOf,
23
23
  serializeMessage,
24
24
  serverIdentityOf,
@@ -29,7 +29,7 @@ import {
29
29
  agentOf,
30
30
  clientHash,
31
31
  currentCaller
32
- } from "./chunk-5KZKVKWU.js";
32
+ } from "./chunk-ZVLYK6CZ.js";
33
33
  import {
34
34
  __name
35
35
  } from "./chunk-ZVVMGPBJ.js";
@@ -43,7 +43,7 @@ var StdioServerTransport = class {
43
43
  _readBuffer;
44
44
  _started = false;
45
45
  _closed = false;
46
- constructor(_stdin = process.stdin, _stdout = process.stdout, options) {
46
+ constructor(_stdin = process2.stdin, _stdout = process2.stdout, options) {
47
47
  this._stdin = _stdin;
48
48
  this._stdout = _stdout;
49
49
  this._readBuffer = new ReadBuffer({ maxBufferSize: options?.maxBufferSize });
@@ -541,7 +541,7 @@ function toError(value) {
541
541
  }
542
542
  __name(toError, "toError");
543
543
 
544
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/mcp/caller.js
544
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/mcp/caller.js
545
545
  var callingAgent = /* @__PURE__ */ __name((fallback, caller = currentCaller()) => {
546
546
  const client = caller?.agent?.client?.name;
547
547
  if (client && client !== "unknown")
@@ -567,7 +567,7 @@ var callerOf = /* @__PURE__ */ __name((ctx, tool, source) => {
567
567
  const meta = ctx?.mcpReq?._meta;
568
568
  const requestId = ctx?.mcpReq?.id;
569
569
  const initialized = source.client?.();
570
- const proxied = initialized?.name === PROXY_CLIENT_NAME ? passedOn(meta?.[CALLER_META_KEY], tool) : void 0;
570
+ const proxied = initialized?.name === PROXY_CLIENT_NAME && !ctx?.http ? passedOn(meta?.[CALLER_META_KEY], tool) : void 0;
571
571
  if (proxied)
572
572
  return proxied;
573
573
  const client = clientFrom(meta?.[CLIENT_INFO_META_KEY]) ?? clientFrom(initialized);
@@ -629,11 +629,103 @@ var passedOn = /* @__PURE__ */ __name((value, tool) => {
629
629
  };
630
630
  }, "passedOn");
631
631
 
632
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/mcp/stdio-wire.js
633
+ import { PassThrough, Writable } from "node:stream";
634
+ var lineReader = /* @__PURE__ */ __name((onMessage) => {
635
+ let rest = "";
636
+ return (chunk) => {
637
+ const lines = (rest + chunk.toString()).split("\n");
638
+ rest = lines.pop() ?? "";
639
+ for (const line of lines) {
640
+ try {
641
+ const message = JSON.parse(line);
642
+ if (message !== null && typeof message === "object")
643
+ onMessage(message);
644
+ } catch {
645
+ }
646
+ }
647
+ };
648
+ }, "lineReader");
649
+ var answeredWire = /* @__PURE__ */ __name((source, sink) => {
650
+ const asked = /* @__PURE__ */ new Set();
651
+ let settle;
652
+ const input = new PassThrough();
653
+ const answeredOne = /* @__PURE__ */ __name((id) => {
654
+ asked.delete(JSON.stringify(id));
655
+ if (asked.size === 0)
656
+ settle?.();
657
+ }, "answeredOne");
658
+ const onData = lineReader(({ jsonrpc, id, method, params }) => {
659
+ if (jsonrpc !== "2.0" || typeof method !== "string")
660
+ return;
661
+ if (method === "notifications/cancelled")
662
+ answeredOne(params?.requestId);
663
+ else if (id !== void 0)
664
+ asked.add(JSON.stringify(id));
665
+ });
666
+ const output = new Writable({
667
+ write: /* @__PURE__ */ __name((chunk, _encoding, done) => {
668
+ noteAnswer(chunk);
669
+ sink.write(chunk, done);
670
+ }, "write")
671
+ });
672
+ const noteAnswer = lineReader(({ id, method }) => {
673
+ if (id !== void 0 && method === void 0)
674
+ answeredOne(id);
675
+ });
676
+ const forward = /* @__PURE__ */ __name((chunk) => {
677
+ onData(chunk);
678
+ input.write(chunk);
679
+ }, "forward");
680
+ source.on("data", forward);
681
+ const ended = new Promise((resolve) => {
682
+ source.once("end", resolve);
683
+ source.once("close", resolve);
684
+ });
685
+ return {
686
+ input,
687
+ output,
688
+ /**
689
+ * Until the client's stdin ended and everything it asked was answered, or until a stop: `signal` for a session
690
+ * relayed on other streams, SIGINT or SIGTERM for this process's own. A stop never waits for answers.
691
+ */
692
+ finished: /* @__PURE__ */ __name((signal) => new Promise((resolve) => {
693
+ const stop = /* @__PURE__ */ __name(() => {
694
+ process.off("SIGINT", stop);
695
+ process.off("SIGTERM", stop);
696
+ resolve();
697
+ }, "stop");
698
+ if (signal) {
699
+ if (signal.aborted)
700
+ return resolve();
701
+ signal.addEventListener("abort", stop, { once: true });
702
+ } else {
703
+ process.once("SIGINT", stop);
704
+ process.once("SIGTERM", stop);
705
+ }
706
+ ended.then(() => {
707
+ if (asked.size === 0)
708
+ stop();
709
+ else
710
+ settle = stop;
711
+ });
712
+ }), "finished"),
713
+ /** Lets go of the real stdin, so it no longer holds the process open. */
714
+ release: /* @__PURE__ */ __name(() => {
715
+ source.off("data", forward);
716
+ if (source.listenerCount("data") === 0)
717
+ source.pause();
718
+ input.end();
719
+ }, "release")
720
+ };
721
+ }, "answeredWire");
722
+
632
723
  export {
633
724
  StdioServerTransport,
634
725
  serveStdio,
635
726
  callingAgent,
636
727
  CALLER_META_KEY,
637
728
  PROXY_CLIENT_NAME,
638
- callerOf
729
+ callerOf,
730
+ answeredWire
639
731
  };
@@ -2,17 +2,17 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  isCommandServer
5
- } from "./chunk-UW34Z7J3.js";
5
+ } from "./chunk-UURJO46N.js";
6
6
  import {
7
7
  stdinFieldOf
8
- } from "./chunk-GHVRCLJI.js";
8
+ } from "./chunk-ODBK56ZR.js";
9
9
  import {
10
10
  commandPathOf
11
- } from "./chunk-5FDYMMEQ.js";
11
+ } from "./chunk-XYAH6QQO.js";
12
12
  import {
13
13
  commandServerRequest,
14
14
  metaOf
15
- } from "./chunk-TGKTIDYS.js";
15
+ } from "./chunk-2QHIOPSA.js";
16
16
  import {
17
17
  errorObjectOf,
18
18
  renderError
@@ -24,7 +24,7 @@ import {
24
24
  __name
25
25
  } from "./chunk-ZVVMGPBJ.js";
26
26
 
27
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/cli/command-server.js
27
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/cli/command-server.js
28
28
  import { createInterface } from "node:readline";
29
29
  var COMMAND_SERVER_PROTOCOL = 1;
30
30
  var COMMAND_SERVER_IDLE_MS = 10 * 6e4;
@@ -8,7 +8,7 @@ import {
8
8
  __name
9
9
  } from "./chunk-ZVVMGPBJ.js";
10
10
 
11
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/errors/failures.js
11
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/errors/failures.js
12
12
  var isCliFailure = /* @__PURE__ */ __name((value) => value instanceof Error && value.name === "CliError" && errorCodes.includes(value.code), "isCliFailure");
13
13
  var isCommanderFailure = /* @__PURE__ */ __name((value) => {
14
14
  const { code, exitCode } = value ?? {};
@@ -60,7 +60,7 @@ var damagedFile = /* @__PURE__ */ __name(async (files, work) => {
60
60
  }, "damagedFile");
61
61
  var isStoreDamage = /* @__PURE__ */ __name((error) => damageIn(error) !== void 0, "isStoreDamage");
62
62
 
63
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/runs/secrets.js
63
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/runs/secrets.js
64
64
  var SECRET_WORDS = /* @__PURE__ */ new Set([
65
65
  "authorization",
66
66
  "cookie",
@@ -6,7 +6,7 @@ import {
6
6
  import {
7
7
  DEFAULT_STEMMERS,
8
8
  LANGUAGES
9
- } from "./chunk-4CQ3PV3V.js";
9
+ } from "./chunk-2A3TC52A.js";
10
10
  import {
11
11
  installerOf
12
12
  } from "./chunk-M4OP5ASJ.js";
@@ -15,18 +15,18 @@ import {
15
15
  readSetupAnswers,
16
16
  unanswered,
17
17
  writeSetupAnswers
18
- } from "./chunk-Y65BQJOY.js";
18
+ } from "./chunk-QYN5RDTZ.js";
19
19
  import {
20
20
  sharedConfigPath
21
- } from "./chunk-ERUB3KU3.js";
21
+ } from "./chunk-7D6LI2N7.js";
22
22
  import {
23
23
  storePath
24
- } from "./chunk-Y62I2T36.js";
24
+ } from "./chunk-TQFUAKU6.js";
25
25
  import {
26
26
  __name
27
27
  } from "./chunk-ZVVMGPBJ.js";
28
28
 
29
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/cli/first-run.js
29
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/cli/first-run.js
30
30
  import { spawnSync } from "node:child_process";
31
31
  import { accessSync, constants, realpathSync } from "node:fs";
32
32
  import { delimiter, join } from "node:path";
@@ -84,7 +84,7 @@ var suggested = /* @__PURE__ */ __name((env, contentLanguages) => {
84
84
  return (own.length ? own : LANGUAGES.filter(({ code }) => code === "en" || code === system)).map(({ name }) => name);
85
85
  }, "suggested");
86
86
  var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLanguages }) => {
87
- const { openStore } = await import("./store-C4RFPYPK.js");
87
+ const { openStore } = await import("./store-GIYS3LHV.js");
88
88
  const store = await openStore({ env });
89
89
  let rebuild = false;
90
90
  try {
@@ -113,8 +113,8 @@ var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLang
113
113
  if (!rebuild)
114
114
  return;
115
115
  const [{ openCache }, { buildStems }] = await Promise.all([
116
- import("./open-4VQ6FUEI.js"),
117
- import("./store-maintenance-command-JNDYWFD2.js")
116
+ import("./open-V7LMZCFI.js"),
117
+ import("./store-maintenance-command-X3VOYNCG.js")
118
118
  ]);
119
119
  const database = await openCache(storePath(env));
120
120
  try {
@@ -126,7 +126,7 @@ var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLang
126
126
  var askTools = /* @__PURE__ */ __name(async (run) => {
127
127
  const { command, env, io } = run;
128
128
  const installed = run.installed ?? ((name) => onPath(name, env));
129
- const { WIRECAT_TOOLS } = await import("./first-screen-WME7ILW2.js");
129
+ const { WIRECAT_TOOLS } = await import("./first-screen-Z6TVHK6I.js");
130
130
  const others = WIRECAT_TOOLS.filter((tool) => tool.command !== command);
131
131
  const missing = others.filter((tool) => !installed(tool.command));
132
132
  io.say("Other WireCat tools \u2014 they share this store, so one search finds everything:");
@@ -199,7 +199,7 @@ var setupAtStart = /* @__PURE__ */ __name(async (start) => {
199
199
  contentLanguages: start.contentLanguages,
200
200
  all: start.path[0] === "setup",
201
201
  io: {
202
- ask: /* @__PURE__ */ __name(async (prompt) => (await import("./prompt-YYODWYFO.js")).readSecret(prompt, { input, echo: true }), "ask"),
202
+ ask: /* @__PURE__ */ __name(async (prompt) => (await import("./prompt-2CP6CQ5N.js")).readSecret(prompt, { input, echo: true }), "ask"),
203
203
  say: /* @__PURE__ */ __name((text) => process.stderr.write(`${text}
204
204
  `), "say")
205
205
  }
@@ -10,10 +10,10 @@ import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/speech/recognize.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/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.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/speech/ogg-limit.js
16
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/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.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/speech/recognize.js
73
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/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) => {
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/cli/stdin-field.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/cli/stdin-field.js
8
8
  var fields = /* @__PURE__ */ new WeakMap();
9
9
  var readsStdin = /* @__PURE__ */ __name((command, field) => {
10
10
  fields.set(command, field);