@wirecat/drive-cli 0.62.0 → 0.63.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 (111) hide show
  1. package/dist/bin/drive.js +2 -2
  2. package/dist/bundle/{all-profiles-CKD2DWUK.js → all-profiles-GZJS3UKC.js} +6 -7
  3. package/dist/bundle/{anthropic-E3T4USLA.js → anthropic-RGV3WXX5.js} +3 -3
  4. package/dist/bundle/{app-server-JB2AEWWL.js → app-server-AA2PJ7PV.js} +40 -41
  5. package/dist/bundle/{bun-CC44AAND.js → bun-OXZYIA3R.js} +2 -2
  6. package/dist/bundle/{bun-sqlite-AUMFKYVR.js → bun-sqlite-D45NSDM3.js} +2 -2
  7. package/dist/bundle/{chunk-WZKEU7WR.js → chunk-2NIC72HH.js} +1 -1
  8. package/dist/bundle/{chunk-HCNQT3QE.js → chunk-2TDUGC5D.js} +331 -280
  9. package/dist/bundle/{chunk-DWJHL6DV.js → chunk-2TFXK3R4.js} +4 -4
  10. package/dist/bundle/{chunk-PEQA6LA5.js → chunk-33MGFUED.js} +169 -140
  11. package/dist/bundle/{chunk-YPFUYQDP.js → chunk-3BZRKLJ6.js} +12 -12
  12. package/dist/bundle/{chunk-YALI4C7C.js → chunk-3HK5WMI5.js} +5 -5
  13. package/dist/bundle/{chunk-R347FPYU.js → chunk-3QINVLZI.js} +1 -1
  14. package/dist/bundle/{chunk-LQKD257P.js → chunk-44SBK6KB.js} +938 -532
  15. package/dist/bundle/{chunk-XZUS7XRO.js → chunk-4CIZWCXV.js} +1 -1
  16. package/dist/bundle/{chunk-XS5POQST.js → chunk-4S4JMW6I.js} +1 -1
  17. package/dist/bundle/{chunk-YMWENGKH.js → chunk-534OBX5Y.js} +1 -1
  18. package/dist/bundle/{chunk-4SIZEJ3M.js → chunk-5PPL7JDM.js} +1 -1
  19. package/dist/bundle/{chunk-L7K2MOIC.js → chunk-6KQJSFYF.js} +18 -18
  20. package/dist/bundle/{chunk-VAYB52HF.js → chunk-6MQSQ4LX.js} +20 -20
  21. package/dist/bundle/{chunk-DJOAMGF4.js → chunk-7EMQ26BA.js} +9 -9
  22. package/dist/bundle/{chunk-TDX4GZFO.js → chunk-ABYGSJZ4.js} +4 -4
  23. package/dist/bundle/{chunk-FNWIJ6EJ.js → chunk-AEX37ETW.js} +1 -1
  24. package/dist/bundle/{chunk-SVPCHFKI.js → chunk-BKYMKVHT.js} +2 -2
  25. package/dist/bundle/{chunk-OBH5BA62.js → chunk-CE2TJBLP.js} +2 -2
  26. package/dist/bundle/{chunk-QTI6IVHZ.js → chunk-DJ3SDJZY.js} +6 -6
  27. package/dist/bundle/{chunk-XFRRKZHQ.js → chunk-DJHLVUL6.js} +16 -13
  28. package/dist/bundle/{chunk-JK3U25QZ.js → chunk-E4SDKMBJ.js} +59 -1
  29. package/dist/bundle/{chunk-HG6CAYJH.js → chunk-FRIJUILO.js} +2 -2
  30. package/dist/bundle/{chunk-RPMKG63Z.js → chunk-HZZCEQTH.js} +3 -3
  31. package/dist/bundle/{chunk-YXYTY4GF.js → chunk-J24ZFCWM.js} +16 -16
  32. package/dist/bundle/{chunk-E43ENLJJ.js → chunk-J4DIHPZ6.js} +1 -1
  33. package/dist/bundle/{chunk-SW4I5BR7.js → chunk-L37LMMRJ.js} +1 -1
  34. package/dist/bundle/{chunk-Q2LRPOKL.js → chunk-LMAVCYLQ.js} +3 -3
  35. package/dist/bundle/{chunk-T7X53FCJ.js → chunk-LZEOQW7S.js} +31 -31
  36. package/dist/bundle/{chunk-T5NWWXS2.js → chunk-MOTRI3SY.js} +1 -1
  37. package/dist/bundle/{chunk-ONP2IBHY.js → chunk-ND6LLYGF.js} +97 -80
  38. package/dist/bundle/{chunk-2KN35F32.js → chunk-NEFSGCVA.js} +8 -8
  39. package/dist/bundle/{chunk-JN5TVEEL.js → chunk-OXY6SSZG.js} +101 -14
  40. package/dist/bundle/{chunk-W4RTIL7S.js → chunk-PDCCYHCH.js} +2 -2
  41. package/dist/bundle/{chunk-AH5C3D3D.js → chunk-PO5RQQIG.js} +4 -4
  42. package/dist/bundle/{chunk-CZ2GJHLL.js → chunk-Q5DJTRKV.js} +2 -2
  43. package/dist/bundle/{chunk-O7ALBI2I.js → chunk-RKELRWH7.js} +3 -3
  44. package/dist/bundle/{chunk-67ZQCWBV.js → chunk-S4RXABDR.js} +2 -2
  45. package/dist/bundle/{chunk-QCX6XZLA.js → chunk-SXM6MHRR.js} +9 -9
  46. package/dist/bundle/{chunk-RIDQNVZM.js → chunk-TF23BZW5.js} +2 -2
  47. package/dist/bundle/{chunk-N7OZPKU7.js → chunk-TWUH22Z5.js} +1 -1
  48. package/dist/bundle/chunk-UPOSDTPT.js +87 -0
  49. package/dist/bundle/{chunk-CJHY5YIF.js → chunk-V3NVXIQR.js} +353 -114
  50. package/dist/bundle/{chunk-QH7DOVO3.js → chunk-VAUMOZU5.js} +44 -28
  51. package/dist/bundle/{chunk-VQDD64A4.js → chunk-VJEOGKAN.js} +7 -9
  52. package/dist/bundle/{chunk-MN4VXU3M.js → chunk-VKPCONDQ.js} +3 -3
  53. package/dist/bundle/{chunk-LWE4JGRN.js → chunk-WYGWWHZP.js} +2 -2
  54. package/dist/bundle/{chunk-EW7PKB4M.js → chunk-XDC3TWTL.js} +25 -25
  55. package/dist/bundle/{chunk-KLFSRKHB.js → chunk-XIUDS3OK.js} +1 -1
  56. package/dist/bundle/{chunk-U2BFYSQV.js → chunk-XNVFKMVR.js} +8559 -3343
  57. package/dist/bundle/{chunk-IR4SQLBR.js → chunk-XR6ESRU6.js} +1 -1
  58. package/dist/bundle/{chunk-RWSXVCSG.js → chunk-Y6GNA7HE.js} +2 -2
  59. package/dist/bundle/{chunk-7ZXIWZQ6.js → chunk-YGU6ULU5.js} +10 -10
  60. package/dist/bundle/{chunk-UGXN5D7U.js → chunk-YIP7ELON.js} +108 -62
  61. package/dist/bundle/{chunk-XEW2EN6F.js → chunk-Z42YYLTS.js} +31 -23
  62. package/dist/bundle/{chunk-DRZZBN3V.js → chunk-Z5KC7XBR.js} +1 -1
  63. package/dist/bundle/{chunk-7W5HYGVW.js → chunk-ZM5J6ZMB.js} +1 -1
  64. package/dist/bundle/{chunk-YOJDGAPT.js → chunk-ZOJU7ZFI.js} +7 -7
  65. package/dist/bundle/{command-contract-OB5BRABN.js → command-contract-BRW3AP44.js} +13 -14
  66. package/dist/bundle/{decode-WIIX3Y2X.js → decode-G5YEIPNC.js} +2 -2
  67. package/dist/bundle/drive.js +3 -3
  68. package/dist/bundle/{echarts-OYINM4C4.js → echarts-W2CWHNXR.js} +2 -2
  69. package/dist/bundle/{embed-DWZIYMBX.js → embed-OBFFPVF4.js} +3 -3
  70. package/dist/bundle/{embedder-ILWH7ZRM.js → embedder-NGCBQHIG.js} +6 -6
  71. package/dist/bundle/{entry-V5V3TOTY.js → entry-ET6HGM7A.js} +5 -5
  72. package/dist/bundle/{first-run-V3VVLQF4.js → first-run-JG52UZVO.js} +5 -5
  73. package/dist/bundle/{first-screen-Y3RIN7FU.js → first-screen-CIL3GFAA.js} +14 -15
  74. package/dist/bundle/{google-KLZSUAVY.js → google-CIWUVJ5C.js} +4 -4
  75. package/dist/bundle/{google-api-HZQ5R4ZO.js → google-api-Z3NSTBBR.js} +44 -45
  76. package/dist/bundle/{grants-L7XLHLUT.js → grants-3S4RL3WB.js} +49 -50
  77. package/dist/bundle/{identity-J2DON4IO.js → identity-OM6GFZ7T.js} +1 -1
  78. package/dist/bundle/{instructions-HGOJ23AJ.js → instructions-YQBQSYSS.js} +1 -1
  79. package/dist/bundle/{login-BD2TS4GY.js → login-7RYSDVN3.js} +48 -49
  80. package/dist/bundle/{node-CPKTDPH7.js → node-IVU33RL7.js} +2 -2
  81. package/dist/bundle/{node-sqlite-IXDCRLSX.js → node-sqlite-SIH5BEW2.js} +3 -3
  82. package/dist/bundle/{oauth-HOGY4YBB.js → oauth-PT4JEHLL.js} +4 -4
  83. package/dist/bundle/{open-O7P3ZV3Y.js → open-IAO2SNII.js} +2 -2
  84. package/dist/bundle/{openai-RCFQKCXC.js → openai-SGOUBHXP.js} +10 -10
  85. package/dist/bundle/{process-KXDRJO22.js → process-BPBMV3AT.js} +1 -1
  86. package/dist/bundle/{program-UCHFC7JQ.js → program-MYKKJ4F6.js} +68 -67
  87. package/dist/bundle/{prompt-EVPPBN5W.js → prompt-3ZM64DCB.js} +2 -2
  88. package/dist/bundle/{recognize-MRCYGP2J.js → recognize-A5C5RPB3.js} +1 -1
  89. package/dist/bundle/{remote-L3L4PHKF.js → remote-VWYFLRGO.js} +4 -4
  90. package/dist/bundle/{rerank-PSOE6XFT.js → rerank-4NGQWREA.js} +4 -4
  91. package/dist/bundle/{serve-72OGS3BF.js → serve-Y6LQTFH5.js} +6 -6
  92. package/dist/bundle/{server-SCXKYHBO.js → server-6AUHIIUA.js} +32 -33
  93. package/dist/bundle/server-PFHI35HA.js +69 -0
  94. package/dist/bundle/{services-YAFTELBI.js → services-2W4J7EMW.js} +26 -21
  95. package/dist/bundle/{sqlite-runtime-DLK4SU33.js → sqlite-runtime-P6BBDX2H.js} +3 -3
  96. package/dist/bundle/{state-T5VNAJSZ.js → state-PXKKXR3R.js} +3 -3
  97. package/dist/bundle/{store-R6MSY2IM.js → store-CN6JEUC4.js} +18 -10
  98. package/dist/bundle/{store-4OFK7PKQ.js → store-IVV2BAGZ.js} +42 -12
  99. package/dist/bundle/store-maintenance-command-MSY2QNEH.js +59 -0
  100. package/dist/bundle/tokens-P4LPNUFW.js +102 -0
  101. package/dist/commands/config.d.ts.map +1 -1
  102. package/dist/commands/config.js +5 -1
  103. package/dist/commands/config.js.map +1 -1
  104. package/dist/version.d.ts +1 -1
  105. package/dist/version.js +1 -1
  106. package/package.json +2 -2
  107. package/dist/bundle/chunk-AQVUEZEP.js +0 -22
  108. package/dist/bundle/chunk-UOXOLGNG.js +0 -42
  109. package/dist/bundle/server-C5TGNFXW.js +0 -70
  110. package/dist/bundle/store-maintenance-command-QDMCXGV6.js +0 -60
  111. package/dist/bundle/tokens-HIG36RNS.js +0 -103
@@ -7,15 +7,15 @@ import {
7
7
  agentJson,
8
8
  commandAvailability,
9
9
  failureContext
10
- } from "./chunk-JN5TVEEL.js";
10
+ } from "./chunk-OXY6SSZG.js";
11
11
  import {
12
12
  callerOf
13
- } from "./chunk-LWE4JGRN.js";
13
+ } from "./chunk-WYGWWHZP.js";
14
14
  import {
15
15
  QUERY_ARGUMENT,
16
16
  lentConnection,
17
17
  refuseLacking
18
- } from "./chunk-YXYTY4GF.js";
18
+ } from "./chunk-J24ZFCWM.js";
19
19
  import {
20
20
  DEFAULT_OUTPUT_BYTES,
21
21
  ENTITIES,
@@ -30,18 +30,18 @@ import {
30
30
  refuseStoreChange,
31
31
  sealed,
32
32
  startRecording
33
- } from "./chunk-PEQA6LA5.js";
33
+ } from "./chunk-33MGFUED.js";
34
34
  import {
35
35
  currentCaller,
36
36
  keepsSuccess,
37
37
  runContextOf,
38
38
  withCaller
39
- } from "./chunk-VQDD64A4.js";
39
+ } from "./chunk-VJEOGKAN.js";
40
40
  import {
41
41
  onlineDeps,
42
42
  servicesFor,
43
43
  storeModeDeps
44
- } from "./chunk-LQKD257P.js";
44
+ } from "./chunk-44SBK6KB.js";
45
45
  import {
46
46
  authorityAllowed,
47
47
  botApiAllowed,
@@ -52,13 +52,16 @@ import {
52
52
  newRunId,
53
53
  readKeysForCommand,
54
54
  traceOf
55
- } from "./chunk-VAYB52HF.js";
55
+ } from "./chunk-6MQSQ4LX.js";
56
56
  import {
57
57
  queryDescription
58
58
  } from "./chunk-EOOGWUTP.js";
59
+ import {
60
+ storeDamaged
61
+ } from "./chunk-E4SDKMBJ.js";
59
62
  import {
60
63
  MAX_BUFFERED_INPUT
61
- } from "./chunk-IR4SQLBR.js";
64
+ } from "./chunk-XR6ESRU6.js";
62
65
  import {
63
66
  captureStreams
64
67
  } from "./chunk-OD4U7GUY.js";
@@ -114,7 +117,7 @@ import {
114
117
  __name
115
118
  } from "./chunk-ZVVMGPBJ.js";
116
119
 
117
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/mcp/agent.js
120
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/mcp/agent.js
118
121
  import { Readable } from "node:stream";
119
122
 
120
123
  // node_modules/.pnpm/@wirecat+cli-base@0.80.9_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
@@ -2995,7 +2998,7 @@ var VOCABULARY = defineVocabulary({
2995
2998
  ]
2996
2999
  });
2997
3000
 
2998
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/mcp/agent.js
3001
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/mcp/agent.js
2999
3002
  var TYPES = new Map(VOCABULARY.flags.map((flag) => [flag.name, flag.type]));
3000
3003
  var snake = /* @__PURE__ */ __name((name) => name.replaceAll("|", "_or_").replace(/[^a-z0-9]+/gi, "_"), "snake");
3001
3004
  var longOf = /* @__PURE__ */ __name((option) => option.flags.match(/--[a-z0-9][a-z0-9-]*/)?.[0], "longOf");
@@ -3218,7 +3221,7 @@ var runCommandForAgent = /* @__PURE__ */ __name(async (program, path, input, ctx
3218
3221
  }
3219
3222
  }, "runCommandForAgent");
3220
3223
 
3221
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/mcp/tool.js
3224
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/mcp/tool.js
3222
3225
  var limit = optional(pipe(number(), integer(), minValue(1), maxValue(100), description("how many")));
3223
3226
  var page = optional(pipe(number(), integer(), minValue(1), description("which page, from 1")));
3224
3227
  var message = pipe(
@@ -3474,10 +3477,10 @@ var answered = /* @__PURE__ */ __name((answer, maxBytes = DEFAULT_OUTPUT_BYTES,
3474
3477
  var failed = /* @__PURE__ */ __name((error, errors, effects) => {
3475
3478
  const judged = judgedEffects(effects);
3476
3479
  const context = { ...failureContext(errors), ...judged ? { effects: judged } : {} };
3477
- return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(error, context))));
3480
+ return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(storeDamaged(error), context))));
3478
3481
  }, "failed");
3479
3482
 
3480
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/mcp/surface.js
3483
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/mcp/surface.js
3481
3484
  import { randomUUID } from "node:crypto";
3482
3485
  var MATCHES = 8;
3483
3486
  var ANSWER = answerSchema();
@@ -1,10 +1,61 @@
1
1
  import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ CliError,
5
+ errorCodes
6
+ } from "./chunk-4OSSOWDM.js";
3
7
  import {
4
8
  __name
5
9
  } from "./chunk-ZVVMGPBJ.js";
6
10
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/runs/secrets.js
11
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/errors/failures.js
12
+ var isCliFailure = /* @__PURE__ */ __name((value) => value instanceof Error && value.name === "CliError" && errorCodes.includes(value.code), "isCliFailure");
13
+ var isCommanderFailure = /* @__PURE__ */ __name((value) => {
14
+ const { code, exitCode } = value ?? {};
15
+ return value instanceof Error && typeof code === "string" && code.startsWith("commander.") && typeof exitCode === "number";
16
+ }, "isCommanderFailure");
17
+ var failureKey = /* @__PURE__ */ __name((error) => isCliFailure(error) ? error.code : error instanceof Error ? error.name : "error", "failureKey");
18
+ var SQLITE_CORRUPT = 11;
19
+ var SQLITE_NOTADB = 26;
20
+ var DAMAGED_TEXT = /database disk image is malformed|file is not a database|fts5: corruption/i;
21
+ var sqliteCode = /* @__PURE__ */ __name((error) => {
22
+ const { errcode, errno, name } = error ?? {};
23
+ const code = typeof errcode === "number" ? errcode : name === "SQLiteError" && typeof errno === "number" ? errno : null;
24
+ return code === null ? void 0 : code & 255;
25
+ }, "sqliteCode");
26
+ var damageIn = /* @__PURE__ */ __name((error) => {
27
+ if (isCliFailure(error) || isCommanderFailure(error))
28
+ return void 0;
29
+ let at = error;
30
+ for (let depth = 0; depth < 5 && at instanceof Error; depth += 1) {
31
+ const code = sqliteCode(at);
32
+ if (code !== void 0 && [SQLITE_CORRUPT, SQLITE_NOTADB].includes(code) || DAMAGED_TEXT.test(at.message))
33
+ return at;
34
+ at = at.cause;
35
+ }
36
+ return void 0;
37
+ }, "damageIn");
38
+ var wrapping = /* @__PURE__ */ __name((error, original) => {
39
+ Object.defineProperty(error, "cause", { value: original, configurable: true, writable: true });
40
+ if (original instanceof Error && original.stack)
41
+ error.stack = original.stack;
42
+ return error;
43
+ }, "wrapping");
44
+ var storeDamaged = /* @__PURE__ */ __name((error, next) => damageIn(error) ? wrapping(new CliError("configuration_error", `the store file is damaged${next ? `; \`${next}\` says what is damaged and what to do` : ""}`, { reason: "store.damaged" }), error) : error, "storeDamaged");
45
+ var damagedFile = /* @__PURE__ */ __name(async (files, work) => {
46
+ try {
47
+ return await work();
48
+ } catch (error) {
49
+ if (!damageIn(error))
50
+ throw error;
51
+ throw wrapping(new CliError("validation_error", `${files.join(" or ")} is damaged or not a database`, {
52
+ reason: "store.file-damaged"
53
+ }), error);
54
+ }
55
+ }, "damagedFile");
56
+ var isStoreDamage = /* @__PURE__ */ __name((error) => damageIn(error) !== void 0, "isStoreDamage");
57
+
58
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/runs/secrets.js
8
59
  var SECRET_WORDS = /* @__PURE__ */ new Set([
9
60
  "authorization",
10
61
  "cookie",
@@ -87,6 +138,13 @@ var RUN = /(?<![A-Za-z0-9_+/-])[A-Za-z0-9_+/-]{20,}/g;
87
138
  var HEX = /(?<![A-Za-z0-9])(?=[0-9]*[a-f])[0-9a-f]{20,}(?![A-Za-z0-9])/g;
88
139
 
89
140
  export {
141
+ isCliFailure,
142
+ isCommanderFailure,
143
+ failureKey,
144
+ sqliteCode,
145
+ storeDamaged,
146
+ damagedFile,
147
+ isStoreDamage,
90
148
  secretNamed,
91
149
  holdsCredential,
92
150
  withoutSecrets
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  alive
5
- } from "./chunk-YMWENGKH.js";
5
+ } from "./chunk-534OBX5Y.js";
6
6
  import {
7
7
  resolvePaths,
8
8
  writeSecurely
@@ -11,7 +11,7 @@ import {
11
11
  __name
12
12
  } from "./chunk-ZVVMGPBJ.js";
13
13
 
14
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/background/lock.js
14
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/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");
@@ -10,10 +10,10 @@ import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/speech/recognize.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/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.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/speech/ogg-limit.js
16
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/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.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/speech/recognize.js
73
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/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) => {
@@ -13,17 +13,17 @@ import {
13
13
  renderAnswer,
14
14
  sharedCommand,
15
15
  snakeKeys
16
- } from "./chunk-PEQA6LA5.js";
16
+ } from "./chunk-33MGFUED.js";
17
17
  import {
18
18
  readOnlyLockOf
19
- } from "./chunk-7W5HYGVW.js";
19
+ } from "./chunk-ZM5J6ZMB.js";
20
20
  import {
21
21
  AUDIT_MIN_SCORE,
22
22
  throughWrapper
23
- } from "./chunk-LQKD257P.js";
23
+ } from "./chunk-44SBK6KB.js";
24
24
  import {
25
25
  formatReference
26
- } from "./chunk-U2BFYSQV.js";
26
+ } from "./chunk-XNVFKMVR.js";
27
27
  import {
28
28
  EVENT_QUERY,
29
29
  MEETING_PROJECT_EVIDENCE_QUERY,
@@ -46,7 +46,7 @@ import {
46
46
  readMeetingProjectEvidence,
47
47
  validateMeetingHitSearch,
48
48
  validateMeetingPassage
49
- } from "./chunk-CJHY5YIF.js";
49
+ } from "./chunk-V3NVXIQR.js";
50
50
  import {
51
51
  OPERATORS_BY_TYPE,
52
52
  dateRange,
@@ -77,7 +77,7 @@ import {
77
77
  __name
78
78
  } from "./chunk-ZVVMGPBJ.js";
79
79
 
80
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/cli/messenger/lacks.js
80
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/cli/messenger/lacks.js
81
81
  var COMMAND_NEEDS = {
82
82
  "account update": ["updateProfile", "change the profile"],
83
83
  "account sessions list": ["sessions", "list the account's sessions"],
@@ -127,7 +127,7 @@ var hideNever = /* @__PURE__ */ __name((messenger, group) => {
127
127
  return group;
128
128
  }, "hideNever");
129
129
 
130
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/meetings/cli/query-options.js
130
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/meetings/cli/query-options.js
131
131
  var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
132
132
  command.allowUnknownOption();
133
133
  const parse = command.parseOptions.bind(command);
@@ -147,7 +147,7 @@ var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
147
147
  return command;
148
148
  }, "queryWordsAfterOptions");
149
149
 
150
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/meetings/cli/passage.js
150
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/meetings/cli/passage.js
151
151
  var count = /* @__PURE__ */ __name((value) => {
152
152
  if (!/^(0|[1-9]\d*)$/.test(value) || !Number.isSafeInteger(Number(value)))
153
153
  throw new CliError("validation_error", "expected a nonnegative safe integer");
@@ -189,7 +189,7 @@ var addMeetingPassageCommandDefinition = /* @__PURE__ */ __name((program, deps)
189
189
  var createMeetingPassageCommand = sharedCommand(createMeetingPassageCommandDefinition);
190
190
  var addMeetingPassageCommand = sharedCommand(addMeetingPassageCommandDefinition);
191
191
 
192
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/meetings/cli/project-evidence.js
192
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/meetings/cli/project-evidence.js
193
193
  var integer = /* @__PURE__ */ __name((value) => {
194
194
  if (!/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
195
195
  throw new CliError("validation_error", "expected a positive safe integer");
@@ -212,7 +212,7 @@ ${fieldsHelp(MEETING_PROJECT_EVIDENCE_QUERY)}`).option("--limit <n>", "hits in o
212
212
  }, "addMeetingProjectEvidenceCommandDefinition");
213
213
  var addMeetingProjectEvidenceCommand = sharedCommand(addMeetingProjectEvidenceCommandDefinition);
214
214
 
215
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/meetings/cli/search.js
215
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/meetings/cli/search.js
216
216
  var ZONED = /(?:Z|[+-]\d{2}:?\d{2})$/i;
217
217
  var moment = /* @__PURE__ */ __name((flag, end, readIn) => (value) => {
218
218
  const zone = timezoneOf();
@@ -298,7 +298,7 @@ var addMeetingSearchCommandDefinition = /* @__PURE__ */ __name((program, deps) =
298
298
  var createMeetingSearchCommand = sharedCommand(createMeetingSearchCommandDefinition);
299
299
  var addMeetingSearchCommand = sharedCommand(addMeetingSearchCommandDefinition);
300
300
 
301
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/meetings/cli/index.js
301
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/meetings/cli/index.js
302
302
  var integer3 = /* @__PURE__ */ __name((text) => {
303
303
  if (!/^[1-9]\d*$/.test(text) || !Number.isSafeInteger(Number(text)))
304
304
  throw new InvalidArgumentError("expected a positive integer");
@@ -442,7 +442,7 @@ ${fieldsHelp(EVENT_QUERY, MEETING_QUERY_GUIDE)}`);
442
442
  }, "addMeetingCommandsDefinition");
443
443
  var addMeetingCommands = sharedCommand(addMeetingCommandsDefinition);
444
444
 
445
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/cli/list-query.js
445
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/cli/list-query.js
446
446
  var LIST_QUERY_GUIDE = "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md";
447
447
  var QUERY_ARGUMENT = "field:value terms that narrow the list \u2014 the fields are below";
448
448
  var withQuery = /* @__PURE__ */ __name((command, registry) => {
@@ -575,7 +575,7 @@ var termField = /* @__PURE__ */ __name((name, type, example, more = {}) => nativ
575
575
  var queryHelp = /* @__PURE__ */ __name((registry) => `
576
576
  ${fieldsHelp(registry, LIST_QUERY_GUIDE)}`, "queryHelp");
577
577
 
578
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/cli/paging.js
578
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/cli/paging.js
579
579
  var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
580
580
  if (!/^\d+$/.test(value.trim()) || Number(value) < 1)
581
581
  throw new CliError("validation_error", `${flag} takes a whole number from 1 upwards, not "${value}"`);
@@ -584,7 +584,7 @@ var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
584
584
  var withPaging = /* @__PURE__ */ __name((command) => command.option("--limit <n>", "how many to show", positiveCount("--limit")).option("--page <n>", "which page, starting at 1", positiveCount("--page")).option("--all", "every row, no paging"), "withPaging");
585
585
  var window = /* @__PURE__ */ __name(({ limit, page, all }) => all ? { offset: 0 } : { limit, offset: (page - 1) * limit }, "window");
586
586
 
587
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/cli/messenger/chat-answers.js
587
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/cli/messenger/chat-answers.js
588
588
  var defined = /* @__PURE__ */ __name((record2) => Object.fromEntries(Object.entries(record2).filter(([, value]) => value !== void 0)), "defined");
589
589
  var chatRef = /* @__PURE__ */ __name((account, chat) => formatReference({ type: "chat", provider: account.provider, account: account.account, chat }), "chatRef");
590
590
  var settingsOf = /* @__PURE__ */ __name((settings) => defined({
@@ -846,7 +846,7 @@ var sessionAnswer = /* @__PURE__ */ __name(({ current, client, device, location,
846
846
  ...createdAt === void 0 ? {} : { created_at: createdAt }
847
847
  }), "sessionAnswer");
848
848
 
849
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/background/relay.js
849
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/background/relay.js
850
850
  import { createHash } from "node:crypto";
851
851
  import { chmodSync, lstatSync, mkdirSync, rmSync } from "node:fs";
852
852
  import { createConnection, createServer } from "node:net";
@@ -1067,7 +1067,7 @@ var relayCommand = /* @__PURE__ */ __name((path, request, options) => new Promis
1067
1067
  }, () => finish({ error: stopped() }));
1068
1068
  }), "relayCommand");
1069
1069
 
1070
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-relay.js
1070
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-relay.js
1071
1071
  var lentConnection = /* @__PURE__ */ __name((connection, watchers) => throughWrapper(connection, {
1072
1072
  close: /* @__PURE__ */ __name(async () => {
1073
1073
  }, "close"),
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/mcp/stdio-wire.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/mcp/stdio-wire.js
8
8
  import { PassThrough, Writable } from "node:stream";
9
9
  var lineReader = /* @__PURE__ */ __name((onMessage) => {
10
10
  let rest = "";
@@ -10,7 +10,7 @@ import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/store/vector-extension.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/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
  wirecatDirectory
5
- } from "./chunk-FNWIJ6EJ.js";
5
+ } from "./chunk-AEX37ETW.js";
6
6
  import {
7
7
  CliError
8
8
  } from "./chunk-4OSSOWDM.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.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/speech/models.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/speech/models.js
14
14
  var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/csukuangfj/${repository}/resolve/${commit}/${name}`, "huggingFace");
15
15
  var gigaam = huggingFace("sherpa-onnx-nemo-transducer-punct-giga-am-v3-russian-2025-12-16", "a6039be7cee829a9044a69ac0ebaf1c191217c97");
16
16
  var gigaamCtc = huggingFace("sherpa-onnx-nemo-ctc-punct-giga-am-v3-russian-2025-12-16", "4fb5407ff028a69fec516cdf4c10fac9ddea7c16");
@@ -137,7 +137,7 @@ var speechModel = /* @__PURE__ */ __name((id) => {
137
137
  return model;
138
138
  }, "speechModel");
139
139
 
140
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/speech/install.js
140
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/speech/install.js
141
141
  import { createHash, randomUUID } from "node:crypto";
142
142
  import { createReadStream, createWriteStream, mkdirSync, statSync } from "node:fs";
143
143
  import { rename, rm } from "node:fs/promises";
@@ -13,7 +13,7 @@ import {
13
13
  registerPrompts,
14
14
  stdinFieldOf,
15
15
  syncsFirst
16
- } from "./chunk-XEW2EN6F.js";
16
+ } from "./chunk-Z42YYLTS.js";
17
17
  import {
18
18
  BinaryResource,
19
19
  Picture,
@@ -34,20 +34,20 @@ import {
34
34
  tool,
35
35
  toolKey,
36
36
  toolsFromCommands
37
- } from "./chunk-XFRRKZHQ.js";
37
+ } from "./chunk-DJHLVUL6.js";
38
38
  import {
39
39
  agentJson,
40
40
  skillResource
41
- } from "./chunk-JN5TVEEL.js";
41
+ } from "./chunk-OXY6SSZG.js";
42
42
  import {
43
43
  answeredWire
44
- } from "./chunk-E43ENLJJ.js";
44
+ } from "./chunk-J4DIHPZ6.js";
45
45
  import {
46
46
  StdioServerTransport,
47
47
  callerOf,
48
48
  callingAgent,
49
49
  serveStdio
50
- } from "./chunk-LWE4JGRN.js";
50
+ } from "./chunk-WYGWWHZP.js";
51
51
  import {
52
52
  McpServer,
53
53
  ResourceTemplate
@@ -55,14 +55,14 @@ import {
55
55
  import {
56
56
  connectedFor,
57
57
  guardFor
58
- } from "./chunk-EW7PKB4M.js";
58
+ } from "./chunk-XDC3TWTL.js";
59
59
  import {
60
60
  lackedNeed,
61
61
  wholeList
62
- } from "./chunk-YXYTY4GF.js";
62
+ } from "./chunk-J24ZFCWM.js";
63
63
  import {
64
64
  findCommand
65
- } from "./chunk-O7ALBI2I.js";
65
+ } from "./chunk-RKELRWH7.js";
66
66
  import {
67
67
  DEFAULT_OUTPUT_BYTES,
68
68
  changesAuthorityAt,
@@ -75,46 +75,46 @@ import {
75
75
  rootOf2 as rootOf,
76
76
  sealed,
77
77
  snakeKeys
78
- } from "./chunk-PEQA6LA5.js";
78
+ } from "./chunk-33MGFUED.js";
79
79
  import {
80
80
  withCaller
81
- } from "./chunk-VQDD64A4.js";
81
+ } from "./chunk-VJEOGKAN.js";
82
82
  import {
83
83
  readOnlyLockOf
84
- } from "./chunk-7W5HYGVW.js";
84
+ } from "./chunk-ZM5J6ZMB.js";
85
85
  import {
86
86
  mcpHttpMarker
87
- } from "./chunk-DWJHL6DV.js";
87
+ } from "./chunk-2TFXK3R4.js";
88
88
  import {
89
89
  instructions
90
- } from "./chunk-R347FPYU.js";
90
+ } from "./chunk-3QINVLZI.js";
91
91
  import {
92
92
  capability,
93
93
  dateWindow,
94
94
  imageSize,
95
95
  servicesFor,
96
96
  storedDeps
97
- } from "./chunk-LQKD257P.js";
97
+ } from "./chunk-44SBK6KB.js";
98
98
  import {
99
99
  levelFor,
100
100
  readKeysForCommand,
101
101
  typedCommand
102
- } from "./chunk-VAYB52HF.js";
103
- import {
104
- isCliFailure
105
- } from "./chunk-AQVUEZEP.js";
102
+ } from "./chunk-6MQSQ4LX.js";
106
103
  import {
107
104
  warmEmbedders
108
- } from "./chunk-AH5C3D3D.js";
105
+ } from "./chunk-PO5RQQIG.js";
109
106
  import {
110
107
  openStore
111
- } from "./chunk-U2BFYSQV.js";
108
+ } from "./chunk-XNVFKMVR.js";
112
109
  import {
113
110
  pdfPreviewLimits
114
- } from "./chunk-UOXOLGNG.js";
111
+ } from "./chunk-UPOSDTPT.js";
115
112
  import {
116
113
  timezoneOf
117
114
  } from "./chunk-EOOGWUTP.js";
115
+ import {
116
+ isCliFailure
117
+ } from "./chunk-E4SDKMBJ.js";
118
118
  import {
119
119
  mcpErrorResult
120
120
  } from "./chunk-UQLWMGSD.js";
@@ -143,10 +143,10 @@ import {
143
143
  __name
144
144
  } from "./chunk-ZVVMGPBJ.js";
145
145
 
146
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/mcp/server.js
146
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/mcp/server.js
147
147
  import { randomUUID } from "node:crypto";
148
148
 
149
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/mcp/agent-log.js
149
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/mcp/agent-log.js
150
150
  var agentLog = /* @__PURE__ */ __name((open) => {
151
151
  let held;
152
152
  return {
@@ -165,7 +165,7 @@ var agentLog = /* @__PURE__ */ __name((open) => {
165
165
  };
166
166
  }, "agentLog");
167
167
 
168
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/mcp/resources.js
168
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/mcp/resources.js
169
169
  var LISTED = 100;
170
170
  var registerResources = /* @__PURE__ */ __name((server, session, { command, name, limit, recorded, withStore, messenger, guard, assertRead }) => {
171
171
  server.registerResource("chat", new ResourceTemplate(`${command}://chat/{id}`, {
@@ -203,7 +203,7 @@ var registerResources = /* @__PURE__ */ __name((server, session, { command, name
203
203
  });
204
204
  }, "registerResources");
205
205
 
206
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/mcp/session.js
206
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/mcp/session.js
207
207
  var HARMLESS = /* @__PURE__ */ new Set(["validation_error", "not_found", "permission_error", "confirmation_required", "rate_limited"]);
208
208
  var harmless = /* @__PURE__ */ __name((code) => HARMLESS.has(code), "harmless");
209
209
  var MessengerSession = class {
@@ -278,7 +278,7 @@ var MessengerSession = class {
278
278
  }
279
279
  };
280
280
 
281
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/mcp/tools/attachments.js
281
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/mcp/tools/attachments.js
282
282
  var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
283
283
  const _command = messenger.app.command;
284
284
  return {
@@ -332,7 +332,7 @@ var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
332
332
  };
333
333
  }, "attachmentsTools");
334
334
 
335
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/mcp/tools/messages-photo.js
335
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/mcp/tools/messages-photo.js
336
336
  var PHOTO_LIMIT = 512 * 1024;
337
337
  var IMAGE_TYPES = [
338
338
  ["image/jpeg", (b) => b[0] === 255 && b[1] === 216 && b[2] === 255],
@@ -386,7 +386,7 @@ var readUpTo = /* @__PURE__ */ __name(async (file, limit, saveIt) => {
386
386
  return new Uint8Array(Buffer.concat(chunks));
387
387
  }, "readUpTo");
388
388
 
389
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/mcp/tools/stats.js
389
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/mcp/tools/stats.js
390
390
  var statsTools = /* @__PURE__ */ __name((messenger) => ({
391
391
  stats_charts: tool({
392
392
  title: "A chart from a chat's statistics",
@@ -423,14 +423,14 @@ var statsTools = /* @__PURE__ */ __name((messenger) => ({
423
423
  })
424
424
  }), "statsTools");
425
425
 
426
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/mcp/tools.js
426
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/mcp/tools.js
427
427
  var pictureTools = /* @__PURE__ */ __name((messenger) => Object.fromEntries(Object.entries({
428
428
  ...messagesPhotoTools(messenger),
429
429
  ...attachmentsTools(messenger),
430
430
  ...statsTools(messenger)
431
431
  }).map(([name, definition]) => [name, { ...definition, input: strictObject(definition.input.entries) }])), "pictureTools");
432
432
 
433
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/mcp/server.js
433
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/mcp/server.js
434
434
  var PER_RUN = /* @__PURE__ */ new Set([
435
435
  "streams",
436
436
  "stdin",
@@ -754,7 +754,7 @@ var serveOverStdio = /* @__PURE__ */ __name(async (command, context, messenger,
754
754
  }, "serveOverStdio");
755
755
  var serveOverHttpUntilStopped = /* @__PURE__ */ __name(async (command, context, messenger, options, http) => {
756
756
  const { session, embedders, build, log } = createServer(command, context, messenger, options);
757
- const { serveOverHttp } = await import("./serve-72OGS3BF.js");
757
+ const { serveOverHttp } = await import("./serve-Y6LQTFH5.js");
758
758
  const appName = messenger.app.command;
759
759
  const appEnvPrefix = messenger.app.envPrefix;
760
760
  const listening = await serveOverHttp(build, {
@@ -7,7 +7,7 @@ import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/models/types.js
10
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/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)