@wirecat/cli-memo 0.131.44 → 0.131.46

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 (149) hide show
  1. package/dist/bin/memo.js +2 -2
  2. package/dist/bundle/{all-profiles-MFZPFIHO.js → all-profiles-I2JBJDOR.js} +5 -5
  3. package/dist/bundle/{anthropic-KJBO3FCU.js → anthropic-CARSCLDG.js} +3 -3
  4. package/dist/bundle/{app-server-A2XCJDGI.js → app-server-SAMZMY3C.js} +35 -35
  5. package/dist/bundle/auto-KD7L4X6G.js +86 -0
  6. package/dist/bundle/{bun-BT7YVHDQ.js → bun-T6E2RGI5.js} +2 -2
  7. package/dist/bundle/{bun-sqlite-EG4TSO2G.js → bun-sqlite-WWDLRDBW.js} +2 -2
  8. package/dist/bundle/{chunk-GWI3XFJR.js → chunk-2FYCJ3KB.js} +3 -3
  9. package/dist/bundle/{chunk-KKDTX2LO.js → chunk-2K7E5YOZ.js} +4 -4
  10. package/dist/bundle/{chunk-E454LAVZ.js → chunk-2MKPY6NU.js} +1 -1
  11. package/dist/bundle/{chunk-N4XNQ67E.js → chunk-36DLHVMS.js} +7 -1
  12. package/dist/bundle/{chunk-45LXRNPA.js → chunk-37D3IHOG.js} +56 -56
  13. package/dist/bundle/{chunk-SP7FRSAG.js → chunk-3ZLDPPI4.js} +5 -5
  14. package/dist/bundle/{chunk-MQ66CMD3.js → chunk-5FBJQHCG.js} +2 -2
  15. package/dist/bundle/{chunk-K6UTFYOL.js → chunk-5FN27OVR.js} +4 -4
  16. package/dist/bundle/{chunk-5Q5JMJKP.js → chunk-6B75W6XW.js} +19 -9
  17. package/dist/bundle/{chunk-5HODYN65.js → chunk-7UNXTC2J.js} +43 -36
  18. package/dist/bundle/{chunk-OEOU4MLY.js → chunk-AAKU7TGI.js} +2 -2
  19. package/dist/bundle/{chunk-O4VDVY67.js → chunk-ADBD5GOY.js} +1 -1
  20. package/dist/bundle/{chunk-2HHWU7GF.js → chunk-AXCYTZJD.js} +5 -5
  21. package/dist/bundle/{chunk-Q2SZI7LP.js → chunk-BJSZECFV.js} +2 -2
  22. package/dist/bundle/{chunk-WJBLLOBC.js → chunk-CV5MM7HG.js} +1 -1
  23. package/dist/bundle/{chunk-GTN4Z7XH.js → chunk-CWBRCYDY.js} +3 -3
  24. package/dist/bundle/{chunk-GZCZKPUM.js → chunk-F7XQEYF3.js} +826 -459
  25. package/dist/bundle/{chunk-N6XUB5Z6.js → chunk-GPBUD6WS.js} +20 -20
  26. package/dist/bundle/{chunk-NXCYAOYY.js → chunk-HDNMDLWC.js} +1 -1
  27. package/dist/bundle/{chunk-IKLSYWX7.js → chunk-HE535VWC.js} +4 -4
  28. package/dist/bundle/{chunk-S4PKJOJP.js → chunk-HFQZYHLX.js} +3 -3
  29. package/dist/bundle/{chunk-YGNKWWOX.js → chunk-ICF3LNBX.js} +1 -1
  30. package/dist/bundle/{chunk-T2NE3S47.js → chunk-IEVJMRL2.js} +1 -1
  31. package/dist/bundle/{chunk-BJS2EWG5.js → chunk-IFGMJXND.js} +2 -2
  32. package/dist/bundle/{chunk-Q2XEAF7Q.js → chunk-IPNORZSF.js} +9 -9
  33. package/dist/bundle/{chunk-WNZVZE3L.js → chunk-IQJQLLAV.js} +4 -4
  34. package/dist/bundle/{chunk-CJQYTFN6.js → chunk-J6EUSJ3X.js} +3 -3
  35. package/dist/bundle/{chunk-QZDSHJMZ.js → chunk-JX6JZTOI.js} +27 -27
  36. package/dist/bundle/{chunk-QNLXDR4W.js → chunk-KGVDWSGM.js} +2 -2
  37. package/dist/bundle/{chunk-7VXPMICZ.js → chunk-LOSAAPRY.js} +6 -6
  38. package/dist/bundle/{chunk-XTLFCF35.js → chunk-LTZHG4BX.js} +7 -7
  39. package/dist/bundle/{chunk-ZIRR4BJ5.js → chunk-MKA3NOUU.js} +5 -5
  40. package/dist/bundle/{chunk-NXJZMS35.js → chunk-NFSFUVP2.js} +5 -5
  41. package/dist/bundle/{chunk-JFGPXSHH.js → chunk-PIHAI7NF.js} +4 -4
  42. package/dist/bundle/{chunk-6LXBT4F3.js → chunk-PZQCIEMC.js} +4 -2
  43. package/dist/bundle/{chunk-NEQGFKOR.js → chunk-QR5HJROX.js} +1 -1
  44. package/dist/bundle/{chunk-OBFWJJFV.js → chunk-QUUYSYCG.js} +2 -2
  45. package/dist/bundle/{chunk-NKAXCQNN.js → chunk-RF3R3W2I.js} +53 -44
  46. package/dist/bundle/{chunk-IXAHSLWQ.js → chunk-TFWTSBON.js} +89 -45
  47. package/dist/bundle/{chunk-HQXTNBEY.js → chunk-TOSRVNCY.js} +7 -7
  48. package/dist/bundle/{chunk-GZTKZRWO.js → chunk-TU34HVOY.js} +2 -2
  49. package/dist/bundle/{chunk-XIZPBRIW.js → chunk-UEMY6RSB.js} +1 -1
  50. package/dist/bundle/{chunk-OK372VP3.js → chunk-UI4MKFTZ.js} +10 -10
  51. package/dist/bundle/{chunk-BBT2TWCN.js → chunk-UT2K3TAH.js} +1 -1
  52. package/dist/bundle/{chunk-I6JHSNDD.js → chunk-UYITVRUC.js} +1 -1
  53. package/dist/bundle/{chunk-EYKJXPDD.js → chunk-V7QNIJOE.js} +7 -7
  54. package/dist/bundle/{chunk-MEO3B2OF.js → chunk-VOUTO3WF.js} +12 -12
  55. package/dist/bundle/{chunk-T3ZQDLBU.js → chunk-VUSM6XFE.js} +1 -1
  56. package/dist/bundle/{chunk-X3PFDJSJ.js → chunk-VZRGIWJM.js} +4 -4
  57. package/dist/bundle/{chunk-R2YMI2ZV.js → chunk-W2EY5PSH.js} +1 -1
  58. package/dist/bundle/{chunk-KD4A5HF6.js → chunk-WXCRRP4B.js} +1 -1
  59. package/dist/bundle/{chunk-5OOASLTP.js → chunk-XB43J5VQ.js} +8 -8
  60. package/dist/bundle/{chunk-POSVGIP5.js → chunk-XFT24B7A.js} +285 -165
  61. package/dist/bundle/{chunk-4J6U4RIU.js → chunk-YBBCGTZO.js} +1499 -767
  62. package/dist/bundle/{chunk-SWE4LSXN.js → chunk-YFZ45S6S.js} +1 -1
  63. package/dist/bundle/{chunk-GURLGLGY.js → chunk-YPD27HJI.js} +11 -11
  64. package/dist/bundle/{chunk-TK6P24AN.js → chunk-ZGQSWRCY.js} +258 -257
  65. package/dist/bundle/{command-contract-JJQE3MCP.js → command-contract-B6MBG7GI.js} +11 -11
  66. package/dist/bundle/{decode-AMWZXLFS.js → decode-E3TI4HEU.js} +2 -2
  67. package/dist/bundle/{echarts-UCAIOY4N.js → echarts-B46XTHOI.js} +2 -2
  68. package/dist/bundle/{embed-DYNZ4223.js → embed-BIUMRFOQ.js} +3 -3
  69. package/dist/bundle/{embedder-XG344VNB.js → embedder-IA3CG6LB.js} +6 -6
  70. package/dist/bundle/{entry-CIUBRSDD.js → entry-E3QEAAYL.js} +4 -4
  71. package/dist/bundle/failure-UKRO32A7.js +66 -0
  72. package/dist/bundle/{first-run-DFXU6DO2.js → first-run-6UQRVGZ4.js} +5 -5
  73. package/dist/bundle/{first-screen-QDTJRHSS.js → first-screen-W3BPVWCT.js} +12 -12
  74. package/dist/bundle/{instructions-MFAYYVVL.js → instructions-6AISOK6M.js} +1 -1
  75. package/dist/bundle/{mcp-5GUDJIDV.js → mcp-RX3COQPC.js} +35 -35
  76. package/dist/bundle/memo.js +6 -6
  77. package/dist/bundle/{node-UILGGXFZ.js → node-6GP2V36M.js} +2 -2
  78. package/dist/bundle/{node-sqlite-FJR5DRBC.js → node-sqlite-2CC5J5RZ.js} +3 -3
  79. package/dist/bundle/{oauth-2WCGPG4N.js → oauth-VOOLTPGW.js} +4 -4
  80. package/dist/bundle/{open-I7ZYXOHK.js → open-AGFSOJG6.js} +2 -2
  81. package/dist/bundle/{openai-4GB2FGUR.js → openai-KPRA5NIB.js} +7 -7
  82. package/dist/bundle/{process-NRZZD4IS.js → process-J74KA6F3.js} +1 -1
  83. package/dist/bundle/{program-HYJUSSU4.js → program-VAYJBUPU.js} +498 -300
  84. package/dist/bundle/{prompt-F5RHTE7V.js → prompt-PDQD5OD5.js} +2 -2
  85. package/dist/bundle/{recognize-UXXDJQEW.js → recognize-QH6FBB2L.js} +1 -1
  86. package/dist/bundle/{remote-IW5FTICS.js → remote-BREQR2BJ.js} +4 -4
  87. package/dist/bundle/{rerank-RRLNQ5C2.js → rerank-HWNJXOHL.js} +4 -4
  88. package/dist/bundle/{serve-GXJLUYCV.js → serve-A63VR5F4.js} +6 -6
  89. package/dist/bundle/server-3FKLHDFN.js +48 -0
  90. package/dist/bundle/{server-646V4VPF.js → server-6UZJQQ4E.js} +50 -50
  91. package/dist/bundle/server-XKZXPS7I.js +61 -0
  92. package/dist/bundle/{state-3NLLRTD2.js → state-GMJJEIPI.js} +3 -3
  93. package/dist/bundle/{store-3DFD7E66.js → store-HLK3ZQ7A.js} +11 -9
  94. package/dist/bundle/store-maintenance-command-2WOANSCK.js +48 -0
  95. package/dist/bundle/update-GIAB6TXY.js +69 -0
  96. package/dist/digest/command.d.ts.map +1 -1
  97. package/dist/digest/command.js +2 -1
  98. package/dist/digest/command.js.map +1 -1
  99. package/dist/digest/digest.d.ts +5 -0
  100. package/dist/digest/digest.d.ts.map +1 -1
  101. package/dist/digest/digest.js +19 -5
  102. package/dist/digest/digest.js.map +1 -1
  103. package/dist/digest/known.d.ts +7 -0
  104. package/dist/digest/known.d.ts.map +1 -0
  105. package/dist/digest/known.js +28 -0
  106. package/dist/digest/known.js.map +1 -0
  107. package/dist/digest/text.d.ts.map +1 -1
  108. package/dist/digest/text.js +13 -1
  109. package/dist/digest/text.js.map +1 -1
  110. package/dist/doctor/command.d.ts +1 -1
  111. package/dist/mail/findings-command.d.ts.map +1 -1
  112. package/dist/mail/findings-command.js +20 -3
  113. package/dist/mail/findings-command.js.map +1 -1
  114. package/dist/mail/findings-duplicates.d.ts +19 -0
  115. package/dist/mail/findings-duplicates.d.ts.map +1 -0
  116. package/dist/mail/findings-duplicates.js +159 -0
  117. package/dist/mail/findings-duplicates.js.map +1 -0
  118. package/dist/program.d.ts.map +1 -1
  119. package/dist/program.js +0 -63
  120. package/dist/program.js.map +1 -1
  121. package/dist/reasons.d.ts.map +1 -1
  122. package/dist/reasons.js +6 -0
  123. package/dist/reasons.js.map +1 -1
  124. package/dist/schedule/command.d.ts.map +1 -1
  125. package/dist/schedule/command.js +2 -0
  126. package/dist/schedule/command.js.map +1 -1
  127. package/dist/schedule/mail-triage-input.d.ts +24 -0
  128. package/dist/schedule/mail-triage-input.d.ts.map +1 -0
  129. package/dist/schedule/mail-triage-input.js +53 -0
  130. package/dist/schedule/mail-triage-input.js.map +1 -0
  131. package/dist/search/command.d.ts.map +1 -1
  132. package/dist/search/command.js +3 -1
  133. package/dist/search/command.js.map +1 -1
  134. package/dist/search/search.d.ts.map +1 -1
  135. package/dist/search/search.js +10 -2
  136. package/dist/search/search.js.map +1 -1
  137. package/dist/version.d.ts +1 -1
  138. package/dist/version.js +1 -1
  139. package/package.json +3 -3
  140. package/skills/cli-memo/SKILL.md +3 -1
  141. package/skills/mail-triage/SKILL.md +25 -27
  142. package/skills/morning-digest/SKILL.md +5 -4
  143. package/dist/bundle/auto-W3BUP6YI.js +0 -86
  144. package/dist/bundle/failure-JTQUF4RT.js +0 -66
  145. package/dist/bundle/server-DJUCOKNC.js +0 -48
  146. package/dist/bundle/server-ITBSOGIC.js +0 -61
  147. package/dist/bundle/store-maintenance-command-D7O6QCVF.js +0 -48
  148. package/dist/bundle/update-GQFRQVAV.js +0 -69
  149. /package/dist/bundle/{chunk-NJG67ZXD.js → chunk-B6ZCQNF4.js} +0 -0
@@ -3,17 +3,17 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  SAMPLE_RATE,
5
5
  toModelRate
6
- } from "./chunk-GWI3XFJR.js";
6
+ } from "./chunk-2FYCJ3KB.js";
7
7
  import {
8
8
  OPENAI_URL
9
- } from "./chunk-BJS2EWG5.js";
9
+ } from "./chunk-IFGMJXND.js";
10
10
  import {
11
11
  OPENAI_TRANSCRIBE_MODEL,
12
12
  VAD,
13
13
  filesPresent,
14
14
  modelsDirectory,
15
15
  vadPath
16
- } from "./chunk-CJQYTFN6.js";
16
+ } from "./chunk-J6EUSJ3X.js";
17
17
  import {
18
18
  DEFAULT_RETRY,
19
19
  backoffMs
@@ -25,7 +25,7 @@ import {
25
25
  __name
26
26
  } from "./chunk-ZVVMGPBJ.js";
27
27
 
28
- // node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/speech/openai.js
28
+ // node_modules/.pnpm/@wirecat+cli-core@0.597.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_e61f089635abd97613f35385460a4858/node_modules/@wirecat/cli-core/dist/speech/openai.js
29
29
  import { setTimeout as wait } from "node:timers/promises";
30
30
 
31
31
  // node_modules/.pnpm/@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/http/index.js
@@ -52,7 +52,7 @@ var parseRateLimitReset = /* @__PURE__ */ __name((header, now) => {
52
52
  }, "parseRateLimitReset");
53
53
  var providerWaitMs = /* @__PURE__ */ __name((headers, now) => parseRetryAfter(headers.get("retry-after"), now) ?? parseRateLimitReset(headers.get("x-ratelimit-reset"), now), "providerWaitMs");
54
54
 
55
- // node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/speech/wav.js
55
+ // node_modules/.pnpm/@wirecat+cli-core@0.597.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_e61f089635abd97613f35385460a4858/node_modules/@wirecat/cli-core/dist/speech/wav.js
56
56
  var encodeWav = /* @__PURE__ */ __name((samples, sampleRate = 16e3) => {
57
57
  const bytes = Buffer.alloc(44 + samples.length * 2);
58
58
  bytes.write("RIFF", 0, "ascii");
@@ -73,7 +73,7 @@ var encodeWav = /* @__PURE__ */ __name((samples, sampleRate = 16e3) => {
73
73
  return new Uint8Array(bytes.buffer, bytes.byteOffset, bytes.length);
74
74
  }, "encodeWav");
75
75
 
76
- // node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/speech/openai.js
76
+ // node_modules/.pnpm/@wirecat+cli-core@0.597.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_e61f089635abd97613f35385460a4858/node_modules/@wirecat/cli-core/dist/speech/openai.js
77
77
  var LONGEST_REQUEST_SECONDS = 600;
78
78
  var JOINED_SECONDS = 0.2;
79
79
  var PAD_SECONDS = 0.2;
@@ -195,7 +195,7 @@ var piecesOf = /* @__PURE__ */ __name((spans, limit) => {
195
195
  return pieces;
196
196
  }, "piecesOf");
197
197
  var openCutter = /* @__PURE__ */ __name(async (vadModel) => {
198
- const { openSpeechCutter } = await import("./recognize-UXXDJQEW.js");
198
+ const { openSpeechCutter } = await import("./recognize-QH6FBB2L.js");
199
199
  return openSpeechCutter(vadModel);
200
200
  }, "openCutter");
201
201
  var checkKeywords = /* @__PURE__ */ __name((keywords = []) => {
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  loadConfig
5
- } from "./chunk-5HODYN65.js";
5
+ } from "./chunk-7UNXTC2J.js";
6
6
  import {
7
7
  upgradeCommand
8
- } from "./chunk-GZCZKPUM.js";
8
+ } from "./chunk-F7XQEYF3.js";
9
9
  import {
10
10
  FETCH,
11
11
  annotate,
12
12
  overrideSharedContract
13
- } from "./chunk-POSVGIP5.js";
13
+ } from "./chunk-XFT24B7A.js";
14
14
  import {
15
15
  latestVersion,
16
16
  runUpdate,
@@ -19,7 +19,7 @@ import {
19
19
  import {
20
20
  APP,
21
21
  VERSION
22
- } from "./chunk-N4XNQ67E.js";
22
+ } from "./chunk-36DLHVMS.js";
23
23
  import {
24
24
  installerOf
25
25
  } from "./chunk-CID4MNRQ.js";
@@ -34,7 +34,7 @@ import {
34
34
  // dist/update.js
35
35
  import { join } from "node:path";
36
36
 
37
- // node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/update/index.js
37
+ // node_modules/.pnpm/@wirecat+cli-core@0.597.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_e61f089635abd97613f35385460a4858/node_modules/@wirecat/cli-core/dist/update/index.js
38
38
  import { realpathSync } from "node:fs";
39
39
  import { fileURLToPath } from "node:url";
40
40
  var QUIET_WORDS = [
@@ -5,7 +5,7 @@ import {
5
5
  installFiles,
6
6
  megabytes,
7
7
  sharedModelsDirectory
8
- } from "./chunk-CJQYTFN6.js";
8
+ } from "./chunk-J6EUSJ3X.js";
9
9
  import {
10
10
  importFrom
11
11
  } from "./chunk-Y5E2WNWB.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.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
19
+ // node_modules/.pnpm/@wirecat+cli-core@0.597.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_e61f089635abd97613f35385460a4858/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.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/embeddings/onnx-runtime.js
24
+ // node_modules/.pnpm/@wirecat+cli-core@0.597.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_e61f089635abd97613f35385460a4858/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.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/embeddings/onnx-runtime.js
681
+ // node_modules/.pnpm/@wirecat+cli-core@0.597.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_e61f089635abd97613f35385460a4858/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.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
861
+ // node_modules/.pnpm/@wirecat+cli-core@0.597.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_e61f089635abd97613f35385460a4858/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");
@@ -3,21 +3,21 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  answers,
5
5
  itemAnswer
6
- } from "./chunk-WNZVZE3L.js";
6
+ } from "./chunk-IQJQLLAV.js";
7
7
  import {
8
8
  loadConfig,
9
9
  updateConfig
10
- } from "./chunk-5HODYN65.js";
10
+ } from "./chunk-7UNXTC2J.js";
11
11
  import {
12
12
  failingNotice,
13
13
  recordRun
14
- } from "./chunk-GZCZKPUM.js";
14
+ } from "./chunk-F7XQEYF3.js";
15
15
  import {
16
16
  InvalidArgumentError,
17
17
  LOCAL_READ,
18
18
  LOCAL_WRITE,
19
19
  annotate
20
- } from "./chunk-POSVGIP5.js";
20
+ } from "./chunk-XFT24B7A.js";
21
21
  import {
22
22
  installerOf
23
23
  } from "./chunk-CID4MNRQ.js";
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/store/driver.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.597.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_e61f089635abd97613f35385460a4858/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 {
@@ -25,10 +25,12 @@ var PRAGMAS = `
25
25
  PRAGMA journal_mode = WAL;
26
26
  PRAGMA foreign_keys = ON;
27
27
  `;
28
+ var isQueryOnly = /* @__PURE__ */ __name((database) => Number(Object.values(database.prepare("PRAGMA query_only").get() ?? {})[0]) === 1, "isQueryOnly");
28
29
 
29
30
  export {
30
31
  TIME_LIMIT_FUNCTION,
31
32
  TimeLimitReached,
32
33
  beforeTimeLimit,
33
- PRAGMAS
34
+ PRAGMAS,
35
+ isQueryOnly
34
36
  };
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/mcp/instructions.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.597.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_e61f089635abd97613f35385460a4858/node_modules/@wirecat/cli-core/dist/mcp/instructions.js
8
8
  var instructions = /* @__PURE__ */ __name(({ command, name, profile, writes, skill }) => {
9
9
  const all = typeof profile !== "string";
10
10
  const offers = /* @__PURE__ */ __name((key) => all || writes.includes(key), "offers");
@@ -7,7 +7,7 @@ import {
7
7
  describeOptions,
8
8
  keyForCommand,
9
9
  metaOf
10
- } from "./chunk-POSVGIP5.js";
10
+ } from "./chunk-XFT24B7A.js";
11
11
  import {
12
12
  jsonSchemaOf
13
13
  } from "./chunk-SN63VOE6.js";
@@ -18,7 +18,7 @@ import {
18
18
  __name
19
19
  } from "./chunk-ZVVMGPBJ.js";
20
20
 
21
- // node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/cli/command-contract.js
21
+ // node_modules/.pnpm/@wirecat+cli-core@0.597.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_e61f089635abd97613f35385460a4858/node_modules/@wirecat/cli-core/dist/cli/command-contract.js
22
22
  var SCHEMA_DIALECT = "https://json-schema.org/draft/2020-12/schema";
23
23
  var outputOf = /* @__PURE__ */ __name((command) => {
24
24
  const entity = answerEntitySchema(command);
@@ -13,7 +13,7 @@ import {
13
13
  refuseLacking,
14
14
  servicesFor,
15
15
  throughWrapper
16
- } from "./chunk-TK6P24AN.js";
16
+ } from "./chunk-ZGQSWRCY.js";
17
17
  import {
18
18
  CEILING_KEY,
19
19
  LOG_ATTRIBUTES,
@@ -38,21 +38,21 @@ import {
38
38
  rememberAccount,
39
39
  rootOf2 as rootOf,
40
40
  skipFlagFor
41
- } from "./chunk-POSVGIP5.js";
41
+ } from "./chunk-XFT24B7A.js";
42
42
  import {
43
43
  isCliFailure,
44
44
  providerErrorKey
45
- } from "./chunk-EYKJXPDD.js";
45
+ } from "./chunk-V7QNIJOE.js";
46
46
  import {
47
47
  MESSENGER_CHANGE_REFUSAL,
48
48
  readOnlyRefusal
49
- } from "./chunk-BBT2TWCN.js";
49
+ } from "./chunk-UT2K3TAH.js";
50
50
  import {
51
51
  servingProfiles
52
- } from "./chunk-MQ66CMD3.js";
52
+ } from "./chunk-5FBJQHCG.js";
53
53
  import {
54
54
  openStore
55
- } from "./chunk-4J6U4RIU.js";
55
+ } from "./chunk-YBBCGTZO.js";
56
56
  import {
57
57
  logRecordOf,
58
58
  realSleep,
@@ -66,7 +66,7 @@ import {
66
66
  __name
67
67
  } from "./chunk-ZVVMGPBJ.js";
68
68
 
69
- // node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/cli/messenger/ask.js
69
+ // node_modules/.pnpm/@wirecat+cli-core@0.597.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_e61f089635abd97613f35385460a4858/node_modules/@wirecat/cli-core/dist/cli/messenger/ask.js
70
70
  import { openSync } from "node:fs";
71
71
  import { createInterface } from "node:readline";
72
72
  import { ReadStream } from "node:tty";
@@ -121,10 +121,10 @@ var terminalAsker = /* @__PURE__ */ __name((command) => async (key, request) =>
121
121
  throw new CliError("cancelled", `${key}: not done \u2014 the answer was no`);
122
122
  }, "terminalAsker");
123
123
 
124
- // node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/sends/guard.js
124
+ // node_modules/.pnpm/@wirecat+cli-core@0.597.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_e61f089635abd97613f35385460a4858/node_modules/@wirecat/cli-core/dist/sends/guard.js
125
125
  import { randomUUID } from "node:crypto";
126
126
 
127
- // node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/sends/flood.js
127
+ // node_modules/.pnpm/@wirecat+cli-core@0.597.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_e61f089635abd97613f35385460a4858/node_modules/@wirecat/cli-core/dist/sends/flood.js
128
128
  import { mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
129
129
  import { dirname, join } from "node:path";
130
130
  var MOST_DEADLINES = 50;
@@ -208,11 +208,11 @@ var FloodMemory = class {
208
208
  }
209
209
  };
210
210
 
211
- // node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/sends/journal.js
211
+ // node_modules/.pnpm/@wirecat+cli-core@0.597.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_e61f089635abd97613f35385460a4858/node_modules/@wirecat/cli-core/dist/sends/journal.js
212
212
  import { appendFileSync, mkdirSync as mkdirSync3, readFileSync as readFileSync2 } from "node:fs";
213
213
  import { dirname as dirname3, join as join2 } from "node:path";
214
214
 
215
- // node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/sends/file-lock.js
215
+ // node_modules/.pnpm/@wirecat+cli-core@0.597.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_e61f089635abd97613f35385460a4858/node_modules/@wirecat/cli-core/dist/sends/file-lock.js
216
216
  import { closeSync, mkdirSync as mkdirSync2, openSync as openSync2, statSync, unlinkSync } from "node:fs";
217
217
  import { dirname as dirname2 } from "node:path";
218
218
  var LOCK_WAIT_MS = 5e3;
@@ -279,7 +279,7 @@ var lockTime = /* @__PURE__ */ __name((lock) => {
279
279
  }
280
280
  }, "lockTime");
281
281
 
282
- // node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/sends/journal.js
282
+ // node_modules/.pnpm/@wirecat+cli-core@0.597.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_e61f089635abd97613f35385460a4858/node_modules/@wirecat/cli-core/dist/sends/journal.js
283
283
  var sendsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "sends", `${profile}.jsonl`), "sendsPathFor");
284
284
  var SendJournal = class {
285
285
  static {
@@ -356,7 +356,7 @@ var withSendId = /* @__PURE__ */ __name((entry) => {
356
356
  return cid === void 0 || rest.sendId !== void 0 ? rest : { ...rest, sendId: String(cid) };
357
357
  }, "withSendId");
358
358
 
359
- // node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/sends/recipients.js
359
+ // node_modules/.pnpm/@wirecat+cli-core@0.597.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_e61f089635abd97613f35385460a4858/node_modules/@wirecat/cli-core/dist/sends/recipients.js
360
360
  import { existsSync, readFileSync as readFileSync3, rmSync } from "node:fs";
361
361
  import { join as join3 } from "node:path";
362
362
  var recipientsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "profiles", `${profile}.recipients.json`), "recipientsPathFor");
@@ -468,7 +468,7 @@ var RecipientList = class {
468
468
  }
469
469
  };
470
470
 
471
- // node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/sends/guard.js
471
+ // node_modules/.pnpm/@wirecat+cli-core@0.597.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_e61f089635abd97613f35385460a4858/node_modules/@wirecat/cli-core/dist/sends/guard.js
472
472
  var HOUR_MS = 60 * 60 * 1e3;
473
473
  var READS_UNDER_HOLD = /* @__PURE__ */ new Set([
474
474
  "attachments.extract",
@@ -661,7 +661,7 @@ var guardFor = /* @__PURE__ */ __name((app, settings, warn, env = process.env, a
661
661
  }), "guardFor");
662
662
  var journalFailure = /* @__PURE__ */ __name((error) => error?.code ?? (error instanceof Error ? error.name : "error"), "journalFailure");
663
663
 
664
- // node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/sends/pace.js
664
+ // node_modules/.pnpm/@wirecat+cli-core@0.597.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_e61f089635abd97613f35385460a4858/node_modules/@wirecat/cli-core/dist/sends/pace.js
665
665
  import { readFileSync as readFileSync4, renameSync as renameSync2, writeFileSync as writeFileSync2 } from "node:fs";
666
666
  import { join as join4 } from "node:path";
667
667
  var DEFAULT_PACE = { perMinute: 60, burst: 20 };
@@ -719,8 +719,39 @@ var Pacer = class {
719
719
  renameSync2(temporary, this.path);
720
720
  }
721
721
  };
722
+ var ANNOUNCE_WAIT_MS = 5e3;
723
+ var LONGEST_PACE_WAIT_MS = 5 * 6e4;
724
+ var waitForTurn = /* @__PURE__ */ __name(async (pacer, options) => {
725
+ const { name, operation, warn } = options;
726
+ const now = options.now ?? Date.now;
727
+ let at = now();
728
+ try {
729
+ at = await pacer.reserve();
730
+ } catch (error) {
731
+ warn?.(`could not remember ${name}'s wait (${error instanceof Error ? error.message : String(error)})`, {
732
+ event: "warning",
733
+ code: "wait_not_remembered",
734
+ operation
735
+ });
736
+ }
737
+ const waitMs = at - now();
738
+ if (waitMs <= 0)
739
+ return;
740
+ if (waitMs > LONGEST_PACE_WAIT_MS)
741
+ throw new CliError("rate_limited", `${name} asked this profile to wait, ${Math.ceil(waitMs / 1e3)} s are left \u2014 nothing was sent to ${name}`, { retry_after_ms: waitMs, retry_at: new Date(at).toISOString(), remembered: true });
742
+ if (waitMs >= ANNOUNCE_WAIT_MS) {
743
+ const seconds = Math.ceil(waitMs / 1e3);
744
+ warn?.(`waiting ${seconds} s to keep this profile's pace with ${name}`, {
745
+ event: "warning",
746
+ code: "pace_wait",
747
+ operation,
748
+ counts: { seconds }
749
+ });
750
+ }
751
+ await (options.sleep ?? ((ms) => new Promise((resolve) => setTimeout(resolve, ms))))(waitMs);
752
+ }, "waitForTurn");
722
753
 
723
- // node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/cli/permission-keys.js
754
+ // node_modules/.pnpm/@wirecat+cli-core@0.597.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_e61f089635abd97613f35385460a4858/node_modules/@wirecat/cli-core/dist/cli/permission-keys.js
724
755
  var pathOf = /* @__PURE__ */ __name((command) => {
725
756
  const words = [];
726
757
  for (let at = command; at?.parent; at = at.parent)
@@ -780,12 +811,10 @@ var refuseUnknownPermissionKeys = /* @__PURE__ */ __name((command, settings, too
780
811
  throw new CliError("validation_error", `--permission ${key} names no command`, { permission: key });
781
812
  }, "refuseUnknownPermissionKeys");
782
813
 
783
- // node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
814
+ // node_modules/.pnpm/@wirecat+cli-core@0.597.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_e61f089635abd97613f35385460a4858/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
784
815
  var LONG_LIVED = /* @__PURE__ */ new Set(["self", "newSendId", "close", "formatMarkdown", "formatHtml", "storedChats"]);
785
816
  var LISTENING = /* @__PURE__ */ new Set(["watch", "feed", "listen", "listenHistory"]);
786
817
  var BLOCKING = /* @__PURE__ */ new Set(["frozen", "limited", "banned"]);
787
- var ANNOUNCE_WAIT_MS = 5e3;
788
- var LONGEST_PACE_WAIT_MS = 5 * 6e4;
789
818
  var chatOf = /* @__PURE__ */ __name((args) => typeof args[0] === "string" && /^-?\d+$/.test(args[0]) ? args[0] : void 0, "chatOf");
790
819
  var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer }) => {
791
820
  const kept = /* @__PURE__ */ __name(async (operation, what2) => {
@@ -841,28 +870,8 @@ var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer })
841
870
  await kept(operation, () => pacer.holdFor(waitMs));
842
871
  }, "noted");
843
872
  const turn = /* @__PURE__ */ __name(async (operation) => {
844
- if (!pacer)
845
- return;
846
- let at = Date.now();
847
- await kept(operation, async () => {
848
- at = await pacer.reserve();
849
- });
850
- const waitMs = at - Date.now();
851
- if (waitMs <= 0)
852
- return;
853
- if (waitMs > LONGEST_PACE_WAIT_MS) {
854
- throw new CliError("rate_limited", `${name} asked this profile to wait, ${Math.ceil(waitMs / 1e3)} s are left \u2014 nothing was sent to ${name}`, { retry_after_ms: waitMs, retry_at: new Date(at).toISOString(), remembered: true });
855
- }
856
- if (waitMs >= ANNOUNCE_WAIT_MS) {
857
- const seconds = Math.ceil(waitMs / 1e3);
858
- warn(`waiting ${seconds} s to keep this profile's pace with ${name}`, {
859
- event: "warning",
860
- code: "pace_wait",
861
- operation,
862
- counts: { seconds }
863
- });
864
- }
865
- await new Promise((resolve) => setTimeout(resolve, waitMs));
873
+ if (pacer)
874
+ await waitForTurn(pacer, { name, operation, warn });
866
875
  }, "turn");
867
876
  return throughWrapper(messenger, {}, (operation, call) => {
868
877
  if (LONG_LIVED.has(operation))
@@ -899,7 +908,7 @@ var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer })
899
908
  });
900
909
  }, "flooded");
901
910
 
902
- // node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/cli/messenger/observed.js
911
+ // node_modules/.pnpm/@wirecat+cli-core@0.597.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_e61f089635abd97613f35385460a4858/node_modules/@wirecat/cli-core/dist/cli/messenger/observed.js
903
912
  var observed = /* @__PURE__ */ __name((messenger, events) => {
904
913
  const timed = /* @__PURE__ */ __name(async (operation, named, work, after) => {
905
914
  const write = currentOperation();
@@ -998,7 +1007,7 @@ var byPart = /* @__PURE__ */ __name((batch, counts) => {
998
1007
  counts[part] = (counts[part] ?? 0) + items.length;
999
1008
  }, "byPart");
1000
1009
 
1001
- // node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/cli/messenger/stored.js
1010
+ // node_modules/.pnpm/@wirecat+cli-core@0.597.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_e61f089635abd97613f35385460a4858/node_modules/@wirecat/cli-core/dist/cli/messenger/stored.js
1002
1011
  var REKEY_PACING = { lockMs: 50, pauseMs: 25 };
1003
1012
  var stored = /* @__PURE__ */ __name((messenger, { account, store, warn, events, pending, announcing, deletedWithoutChat, profile, rekeyed, rekeyPacing = REKEY_PACING, closing, namesFromStore, recipientIds, countsUnread = false, historyLimits, command = "cli" }) => {
1004
1013
  let warned = false;
@@ -1574,7 +1583,7 @@ var keep = /* @__PURE__ */ __name(async (store, account, event, seenAt, among, c
1574
1583
  }
1575
1584
  }, "keep");
1576
1585
 
1577
- // node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/cli/messenger/context.js
1586
+ // node_modules/.pnpm/@wirecat+cli-core@0.597.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_e61f089635abd97613f35385460a4858/node_modules/@wirecat/cli-core/dist/cli/messenger/context.js
1578
1587
  var lazyStore = /* @__PURE__ */ __name((env, command, version) => {
1579
1588
  let opened;
1580
1589
  return {