@wirecat/cli-memo 0.131.45 → 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 (113) hide show
  1. package/dist/bin/memo.js +2 -2
  2. package/dist/bundle/{all-profiles-ZBASDAVU.js → all-profiles-I2JBJDOR.js} +5 -5
  3. package/dist/bundle/{anthropic-3ZS3RCUH.js → anthropic-CARSCLDG.js} +3 -3
  4. package/dist/bundle/{app-server-PQF22PMD.js → app-server-SAMZMY3C.js} +35 -35
  5. package/dist/bundle/auto-KD7L4X6G.js +86 -0
  6. package/dist/bundle/{bun-3CGVV3V2.js → bun-T6E2RGI5.js} +2 -2
  7. package/dist/bundle/{bun-sqlite-D6T3ESTG.js → bun-sqlite-WWDLRDBW.js} +2 -2
  8. package/dist/bundle/{chunk-CH37NCAP.js → chunk-2FYCJ3KB.js} +3 -3
  9. package/dist/bundle/{chunk-NB267XRJ.js → chunk-2K7E5YOZ.js} +4 -4
  10. package/dist/bundle/{chunk-5ZHM6SZW.js → chunk-2MKPY6NU.js} +1 -1
  11. package/dist/bundle/{chunk-OMBFF6Z6.js → chunk-36DLHVMS.js} +1 -1
  12. package/dist/bundle/{chunk-5IYS3BWO.js → chunk-37D3IHOG.js} +56 -56
  13. package/dist/bundle/{chunk-CAPDRDQU.js → chunk-3ZLDPPI4.js} +5 -5
  14. package/dist/bundle/{chunk-TKFG75MJ.js → chunk-5FBJQHCG.js} +2 -2
  15. package/dist/bundle/{chunk-SK3TPK5Y.js → chunk-5FN27OVR.js} +4 -4
  16. package/dist/bundle/{chunk-25MS26SH.js → chunk-6B75W6XW.js} +15 -10
  17. package/dist/bundle/{chunk-CRLYBXV5.js → chunk-7UNXTC2J.js} +43 -36
  18. package/dist/bundle/{chunk-GBRK3WXY.js → chunk-AAKU7TGI.js} +2 -2
  19. package/dist/bundle/{chunk-YWTWDX4F.js → chunk-ADBD5GOY.js} +1 -1
  20. package/dist/bundle/{chunk-2OYB4PWV.js → chunk-AXCYTZJD.js} +5 -5
  21. package/dist/bundle/{chunk-G6TRTDHB.js → chunk-BJSZECFV.js} +2 -2
  22. package/dist/bundle/{chunk-L45FSDH3.js → chunk-CV5MM7HG.js} +1 -1
  23. package/dist/bundle/{chunk-OT4CLMVF.js → chunk-CWBRCYDY.js} +3 -3
  24. package/dist/bundle/{chunk-FRT7URL7.js → chunk-F7XQEYF3.js} +466 -278
  25. package/dist/bundle/{chunk-GOJZ3FQY.js → chunk-GPBUD6WS.js} +20 -20
  26. package/dist/bundle/{chunk-EJ4X6XH2.js → chunk-HDNMDLWC.js} +1 -1
  27. package/dist/bundle/{chunk-FMMIPFTU.js → chunk-HE535VWC.js} +4 -4
  28. package/dist/bundle/{chunk-UP2K5XUA.js → chunk-HFQZYHLX.js} +3 -3
  29. package/dist/bundle/{chunk-C6GSSMDG.js → chunk-ICF3LNBX.js} +1 -1
  30. package/dist/bundle/{chunk-HXCSD2XV.js → chunk-IEVJMRL2.js} +1 -1
  31. package/dist/bundle/{chunk-IJBJ47GI.js → chunk-IFGMJXND.js} +2 -2
  32. package/dist/bundle/{chunk-CXRCADXS.js → chunk-IPNORZSF.js} +9 -9
  33. package/dist/bundle/{chunk-PMUAUR5S.js → chunk-IQJQLLAV.js} +4 -4
  34. package/dist/bundle/{chunk-OTOKJAYR.js → chunk-J6EUSJ3X.js} +3 -3
  35. package/dist/bundle/{chunk-IQ2MW47B.js → chunk-JX6JZTOI.js} +27 -27
  36. package/dist/bundle/{chunk-6NQTGFAL.js → chunk-KGVDWSGM.js} +2 -2
  37. package/dist/bundle/{chunk-AOSSO4YI.js → chunk-LOSAAPRY.js} +6 -6
  38. package/dist/bundle/{chunk-GTPWWGQI.js → chunk-LTZHG4BX.js} +7 -7
  39. package/dist/bundle/{chunk-LL3Z6KA3.js → chunk-MKA3NOUU.js} +5 -5
  40. package/dist/bundle/{chunk-IYJGFBNN.js → chunk-NFSFUVP2.js} +5 -5
  41. package/dist/bundle/{chunk-7EA6M6RA.js → chunk-PIHAI7NF.js} +4 -4
  42. package/dist/bundle/{chunk-7G7N3IUO.js → chunk-PZQCIEMC.js} +4 -2
  43. package/dist/bundle/{chunk-EJ2PEYQU.js → chunk-QR5HJROX.js} +1 -1
  44. package/dist/bundle/{chunk-7WJEQ36E.js → chunk-QUUYSYCG.js} +2 -2
  45. package/dist/bundle/{chunk-65MK55RS.js → chunk-RF3R3W2I.js} +20 -20
  46. package/dist/bundle/{chunk-PXSGUVZP.js → chunk-TFWTSBON.js} +89 -45
  47. package/dist/bundle/{chunk-CGJFYMVZ.js → chunk-TOSRVNCY.js} +7 -7
  48. package/dist/bundle/{chunk-WGX73SAA.js → chunk-TU34HVOY.js} +2 -2
  49. package/dist/bundle/{chunk-ZJXAYYLF.js → chunk-UEMY6RSB.js} +1 -1
  50. package/dist/bundle/{chunk-75RJJQ2Q.js → chunk-UI4MKFTZ.js} +10 -10
  51. package/dist/bundle/{chunk-F2VTAFIT.js → chunk-UT2K3TAH.js} +1 -1
  52. package/dist/bundle/{chunk-KE3CYUON.js → chunk-UYITVRUC.js} +1 -1
  53. package/dist/bundle/{chunk-7G63XPDR.js → chunk-V7QNIJOE.js} +7 -7
  54. package/dist/bundle/{chunk-HAPE26JK.js → chunk-VOUTO3WF.js} +12 -12
  55. package/dist/bundle/{chunk-IAPKZSC5.js → chunk-VUSM6XFE.js} +1 -1
  56. package/dist/bundle/{chunk-YDNM5KYV.js → chunk-VZRGIWJM.js} +4 -4
  57. package/dist/bundle/{chunk-U4J7TAOW.js → chunk-W2EY5PSH.js} +1 -1
  58. package/dist/bundle/{chunk-MKVUBQEG.js → chunk-WXCRRP4B.js} +1 -1
  59. package/dist/bundle/{chunk-B4PZQYGP.js → chunk-XB43J5VQ.js} +8 -8
  60. package/dist/bundle/{chunk-G3FRUKAD.js → chunk-XFT24B7A.js} +176 -155
  61. package/dist/bundle/{chunk-NBA3GJBR.js → chunk-YBBCGTZO.js} +792 -345
  62. package/dist/bundle/{chunk-NTFEJ52I.js → chunk-YFZ45S6S.js} +1 -1
  63. package/dist/bundle/{chunk-75EEQB2R.js → chunk-YPD27HJI.js} +11 -11
  64. package/dist/bundle/{chunk-TVZEELSS.js → chunk-ZGQSWRCY.js} +257 -257
  65. package/dist/bundle/{command-contract-K3GJRRXT.js → command-contract-B6MBG7GI.js} +11 -11
  66. package/dist/bundle/{decode-TTMBMSGQ.js → decode-E3TI4HEU.js} +2 -2
  67. package/dist/bundle/{echarts-7XN2RLJT.js → echarts-B46XTHOI.js} +2 -2
  68. package/dist/bundle/{embed-UKTHDQH5.js → embed-BIUMRFOQ.js} +3 -3
  69. package/dist/bundle/{embedder-SCKLAVKW.js → embedder-IA3CG6LB.js} +6 -6
  70. package/dist/bundle/{entry-VQRYB2HE.js → entry-E3QEAAYL.js} +4 -4
  71. package/dist/bundle/failure-UKRO32A7.js +66 -0
  72. package/dist/bundle/{first-run-RL6ZRY3Y.js → first-run-6UQRVGZ4.js} +5 -5
  73. package/dist/bundle/{first-screen-CRURWNKP.js → first-screen-W3BPVWCT.js} +12 -12
  74. package/dist/bundle/{instructions-KGU67SPR.js → instructions-6AISOK6M.js} +1 -1
  75. package/dist/bundle/{mcp-CSN7BDNG.js → mcp-RX3COQPC.js} +35 -35
  76. package/dist/bundle/memo.js +6 -6
  77. package/dist/bundle/{node-S5LQLVMO.js → node-6GP2V36M.js} +2 -2
  78. package/dist/bundle/{node-sqlite-PFCIEDPX.js → node-sqlite-2CC5J5RZ.js} +3 -3
  79. package/dist/bundle/{oauth-KJOGYDPV.js → oauth-VOOLTPGW.js} +4 -4
  80. package/dist/bundle/{open-TPBENKAD.js → open-AGFSOJG6.js} +2 -2
  81. package/dist/bundle/{openai-UOYTHO32.js → openai-KPRA5NIB.js} +7 -7
  82. package/dist/bundle/{process-JWKE7GPV.js → process-J74KA6F3.js} +1 -1
  83. package/dist/bundle/{program-RJ6X4DXE.js → program-VAYJBUPU.js} +102 -55
  84. package/dist/bundle/{prompt-5HQ3Z7ZS.js → prompt-PDQD5OD5.js} +2 -2
  85. package/dist/bundle/{recognize-5ILXEPII.js → recognize-QH6FBB2L.js} +1 -1
  86. package/dist/bundle/{remote-WIN3HJII.js → remote-BREQR2BJ.js} +4 -4
  87. package/dist/bundle/{rerank-JKHDSEBI.js → rerank-HWNJXOHL.js} +4 -4
  88. package/dist/bundle/{serve-VMHFRDYH.js → serve-A63VR5F4.js} +6 -6
  89. package/dist/bundle/server-3FKLHDFN.js +48 -0
  90. package/dist/bundle/{server-TKWVP4OJ.js → server-6UZJQQ4E.js} +50 -50
  91. package/dist/bundle/server-XKZXPS7I.js +61 -0
  92. package/dist/bundle/{state-OWOLD7JI.js → state-GMJJEIPI.js} +3 -3
  93. package/dist/bundle/{store-6GFFSNRY.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/schedule/command.d.ts.map +1 -1
  97. package/dist/schedule/command.js +2 -0
  98. package/dist/schedule/command.js.map +1 -1
  99. package/dist/schedule/mail-triage-input.d.ts +24 -0
  100. package/dist/schedule/mail-triage-input.d.ts.map +1 -0
  101. package/dist/schedule/mail-triage-input.js +53 -0
  102. package/dist/schedule/mail-triage-input.js.map +1 -0
  103. package/dist/version.d.ts +1 -1
  104. package/dist/version.js +1 -1
  105. package/package.json +2 -2
  106. package/skills/mail-triage/SKILL.md +25 -27
  107. package/dist/bundle/auto-NW7IP4ST.js +0 -86
  108. package/dist/bundle/failure-JHW2U2OF.js +0 -66
  109. package/dist/bundle/server-IBJ23GCB.js +0 -48
  110. package/dist/bundle/server-SNWCFMJN.js +0 -61
  111. package/dist/bundle/store-maintenance-command-7DMPWFT4.js +0 -48
  112. package/dist/bundle/update-KSB7VYAW.js +0 -69
  113. /package/dist/bundle/{chunk-DL5LDAOS.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-CH37NCAP.js";
6
+ } from "./chunk-2FYCJ3KB.js";
7
7
  import {
8
8
  OPENAI_URL
9
- } from "./chunk-IJBJ47GI.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-OTOKJAYR.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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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-5ILXEPII.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-CRLYBXV5.js";
5
+ } from "./chunk-7UNXTC2J.js";
6
6
  import {
7
7
  upgradeCommand
8
- } from "./chunk-FRT7URL7.js";
8
+ } from "./chunk-F7XQEYF3.js";
9
9
  import {
10
10
  FETCH,
11
11
  annotate,
12
12
  overrideSharedContract
13
- } from "./chunk-G3FRUKAD.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-OMBFF6Z6.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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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-OTOKJAYR.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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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-PMUAUR5S.js";
6
+ } from "./chunk-IQJQLLAV.js";
7
7
  import {
8
8
  loadConfig,
9
9
  updateConfig
10
- } from "./chunk-CRLYBXV5.js";
10
+ } from "./chunk-7UNXTC2J.js";
11
11
  import {
12
12
  failingNotice,
13
13
  recordRun
14
- } from "./chunk-FRT7URL7.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-G3FRUKAD.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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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-G3FRUKAD.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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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-TVZEELSS.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-G3FRUKAD.js";
41
+ } from "./chunk-XFT24B7A.js";
42
42
  import {
43
43
  isCliFailure,
44
44
  providerErrorKey
45
- } from "./chunk-7G63XPDR.js";
45
+ } from "./chunk-V7QNIJOE.js";
46
46
  import {
47
47
  MESSENGER_CHANGE_REFUSAL,
48
48
  readOnlyRefusal
49
- } from "./chunk-F2VTAFIT.js";
49
+ } from "./chunk-UT2K3TAH.js";
50
50
  import {
51
51
  servingProfiles
52
- } from "./chunk-TKFG75MJ.js";
52
+ } from "./chunk-5FBJQHCG.js";
53
53
  import {
54
54
  openStore
55
- } from "./chunk-NBA3GJBR.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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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 };
@@ -751,7 +751,7 @@ var waitForTurn = /* @__PURE__ */ __name(async (pacer, options) => {
751
751
  await (options.sleep ?? ((ms) => new Promise((resolve) => setTimeout(resolve, ms))))(waitMs);
752
752
  }, "waitForTurn");
753
753
 
754
- // node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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
755
755
  var pathOf = /* @__PURE__ */ __name((command) => {
756
756
  const words = [];
757
757
  for (let at = command; at?.parent; at = at.parent)
@@ -811,7 +811,7 @@ var refuseUnknownPermissionKeys = /* @__PURE__ */ __name((command, settings, too
811
811
  throw new CliError("validation_error", `--permission ${key} names no command`, { permission: key });
812
812
  }, "refuseUnknownPermissionKeys");
813
813
 
814
- // node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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
815
815
  var LONG_LIVED = /* @__PURE__ */ new Set(["self", "newSendId", "close", "formatMarkdown", "formatHtml", "storedChats"]);
816
816
  var LISTENING = /* @__PURE__ */ new Set(["watch", "feed", "listen", "listenHistory"]);
817
817
  var BLOCKING = /* @__PURE__ */ new Set(["frozen", "limited", "banned"]);
@@ -908,7 +908,7 @@ var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer })
908
908
  });
909
909
  }, "flooded");
910
910
 
911
- // node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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
912
912
  var observed = /* @__PURE__ */ __name((messenger, events) => {
913
913
  const timed = /* @__PURE__ */ __name(async (operation, named, work, after) => {
914
914
  const write = currentOperation();
@@ -1007,7 +1007,7 @@ var byPart = /* @__PURE__ */ __name((batch, counts) => {
1007
1007
  counts[part] = (counts[part] ?? 0) + items.length;
1008
1008
  }, "byPart");
1009
1009
 
1010
- // node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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
1011
1011
  var REKEY_PACING = { lockMs: 50, pauseMs: 25 };
1012
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" }) => {
1013
1013
  let warned = false;
@@ -1583,7 +1583,7 @@ var keep = /* @__PURE__ */ __name(async (store, account, event, seenAt, among, c
1583
1583
  }
1584
1584
  }, "keep");
1585
1585
 
1586
- // node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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
1587
1587
  var lazyStore = /* @__PURE__ */ __name((env, command, version) => {
1588
1588
  let opened;
1589
1589
  return {