@wirecat/mail-cli 0.7.0 → 0.8.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 (115) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/bin/mail.js +2 -2
  3. package/dist/bundle/{all-profiles-SI67TKZM.js → all-profiles-MXGDUBAM.js} +9 -9
  4. package/dist/bundle/{anthropic-DALMLC3Y.js → anthropic-A2QA4W7L.js} +6 -6
  5. package/dist/bundle/{app-server-XOH327Z2.js → app-server-PMIMK6FK.js} +48 -48
  6. package/dist/bundle/{bun-ORL67CJ6.js → bun-3UW3LFNL.js} +2 -2
  7. package/dist/bundle/{bun-sqlite-DGXFNFHI.js → bun-sqlite-TGFZFKAX.js} +5 -5
  8. package/dist/bundle/{chunk-IYZHM3ZN.js → chunk-2KZJWBXB.js} +3 -3
  9. package/dist/bundle/{chunk-2M4K7HYR.js → chunk-2MQXXPPK.js} +17 -17
  10. package/dist/bundle/{chunk-VBOMKZ4E.js → chunk-4QDBMYK4.js} +70 -53
  11. package/dist/bundle/{chunk-23IEVVL2.js → chunk-5PWKPRTD.js} +4 -4
  12. package/dist/bundle/{chunk-RQVWZBW3.js → chunk-5W74YMCK.js} +3 -3
  13. package/dist/bundle/{chunk-7K6KJWTO.js → chunk-6J3DKKOV.js} +12 -12
  14. package/dist/bundle/{chunk-4NYWHINR.js → chunk-6JK46V5X.js} +6 -6
  15. package/dist/bundle/{chunk-CAKBG5FC.js → chunk-6U6Z3GXR.js} +6 -6
  16. package/dist/bundle/{chunk-V4TDG4KF.js → chunk-7JUTNCQX.js} +14 -14
  17. package/dist/bundle/{chunk-6XNPXAJU.js → chunk-AO3XYONW.js} +23 -23
  18. package/dist/bundle/{chunk-JFMUI4H6.js → chunk-BCDPLG7T.js} +1 -1
  19. package/dist/bundle/{chunk-PDL4UREY.js → chunk-BEUQ2X7U.js} +8 -8
  20. package/dist/bundle/{chunk-DXGMPMFP.js → chunk-CMNFLAUG.js} +4 -4
  21. package/dist/bundle/{chunk-U6UJ3HRS.js → chunk-CRS63C3T.js} +2 -2
  22. package/dist/bundle/{chunk-SQLCCKEL.js → chunk-DLB2JPLU.js} +1 -1
  23. package/dist/bundle/{chunk-XQJWMBDY.js → chunk-DM4ULDS3.js} +6 -6
  24. package/dist/bundle/{chunk-BGUMGCUY.js → chunk-DYCPBLUC.js} +2 -2
  25. package/dist/bundle/{chunk-3TYEJRMZ.js → chunk-EN3UZPGB.js} +4 -4
  26. package/dist/bundle/{chunk-DKQWTQVY.js → chunk-EU35YQXE.js} +23 -23
  27. package/dist/bundle/{chunk-GJUUTUK4.js → chunk-EVO77D3Y.js} +8 -8
  28. package/dist/bundle/{chunk-S4YUR4S3.js → chunk-FSBKLJXM.js} +219 -206
  29. package/dist/bundle/{chunk-EYT33MM3.js → chunk-J5RKMQ6A.js} +46 -46
  30. package/dist/bundle/{chunk-ZNGQ3NZ4.js → chunk-J6ACLZKV.js} +9 -9
  31. package/dist/bundle/{chunk-45KA5667.js → chunk-KBKEZV4L.js} +13 -13
  32. package/dist/bundle/{chunk-73OJJGZE.js → chunk-KEZHPPMI.js} +17 -3
  33. package/dist/bundle/{chunk-4ULY3GDL.js → chunk-KF4YULWC.js} +10 -10
  34. package/dist/bundle/{chunk-HFJNEXU7.js → chunk-L2ZHPIFC.js} +2 -2
  35. package/dist/bundle/{chunk-BM445GYF.js → chunk-L3KMVMRJ.js} +2 -2
  36. package/dist/bundle/{chunk-FTFNWGIR.js → chunk-LN7TNZIS.js} +8 -8
  37. package/dist/bundle/{chunk-NXJLC2WK.js → chunk-NAIJNJZZ.js} +12 -8
  38. package/dist/bundle/{chunk-5JEYIHS6.js → chunk-NEBO3NZU.js} +3 -3
  39. package/dist/bundle/{chunk-VNJMO5F6.js → chunk-NI6WX55Z.js} +2 -2
  40. package/dist/bundle/{chunk-M2JCUVCJ.js → chunk-NSODLSEL.js} +94 -94
  41. package/dist/bundle/{chunk-6RMMAUUW.js → chunk-NWKLBZN5.js} +30 -30
  42. package/dist/bundle/{chunk-5BSEGMNE.js → chunk-OAQ4UB6V.js} +4 -4
  43. package/dist/bundle/{chunk-FUB3X25H.js → chunk-PEF637VV.js} +4 -4
  44. package/dist/bundle/{chunk-NNIXREJH.js → chunk-PXCIM6D5.js} +7 -7
  45. package/dist/bundle/{chunk-6LK7KTWB.js → chunk-Q5DOXSBM.js} +1 -1
  46. package/dist/bundle/{chunk-35KD2CI2.js → chunk-QBBKSCQD.js} +286 -252
  47. package/dist/bundle/{chunk-MHQKHWCJ.js → chunk-RFWTPSJX.js} +34 -28
  48. package/dist/bundle/{chunk-QZBT6BOU.js → chunk-ROZBXOES.js} +1 -1
  49. package/dist/bundle/{chunk-AP7V256W.js → chunk-RVZ4JIRR.js} +1 -1
  50. package/dist/bundle/{chunk-MMXMVGA6.js → chunk-SZ5PKNDF.js} +7 -7
  51. package/dist/bundle/{chunk-VSHJWTX5.js → chunk-TCWJYOZV.js} +6 -6
  52. package/dist/bundle/{chunk-HV3EIYX4.js → chunk-TMQA4KR7.js} +1 -1
  53. package/dist/bundle/{chunk-VKPWP3AK.js → chunk-U4IF2MOB.js} +2 -2
  54. package/dist/bundle/{chunk-ZKCNMW7G.js → chunk-UR6WHUJF.js} +2 -2
  55. package/dist/bundle/{chunk-MCJ7LKYR.js → chunk-VGR3AGAC.js} +6 -6
  56. package/dist/bundle/{chunk-R5MML3FC.js → chunk-VSDVH2M2.js} +67 -59
  57. package/dist/bundle/{chunk-E3DRM6YP.js → chunk-W5J6I5GW.js} +3 -3
  58. package/dist/bundle/{chunk-FPOGVDLS.js → chunk-W7H3PZ67.js} +2 -2
  59. package/dist/bundle/{chunk-BEMLGWY4.js → chunk-WS4L47DG.js} +1 -1
  60. package/dist/bundle/{chunk-ZKZABB4K.js → chunk-WWNAQ75T.js} +3 -3
  61. package/dist/bundle/{chunk-Q44AYEOB.js → chunk-XWNCXFR5.js} +2 -2
  62. package/dist/bundle/{chunk-LZ5J3UXD.js → chunk-YS2WUWY7.js} +4 -4
  63. package/dist/bundle/{chunk-OHTR4WFO.js → chunk-Z5GDZ3QF.js} +2 -2
  64. package/dist/bundle/{chunk-Q2C3VMSU.js → chunk-ZISFMUYB.js} +18 -18
  65. package/dist/bundle/{chunk-3GZK5GTU.js → chunk-ZKAT6I2I.js} +1 -1
  66. package/dist/bundle/command-contract-Q32SL5KX.js +34 -0
  67. package/dist/bundle/{decode-KOBURZIQ.js → decode-NF4TGOR3.js} +5 -5
  68. package/dist/bundle/{dispatch-GDAH4JHS.js → dispatch-5C6XNGEE.js} +8 -8
  69. package/dist/bundle/{dist-T7HMT675.js → dist-DVYY3YFG.js} +13 -13
  70. package/dist/bundle/{echarts-LEWTQO6H.js → echarts-F3USGP5B.js} +2 -2
  71. package/dist/bundle/{embed-PUFE4BSQ.js → embed-2RXV3BEC.js} +6 -6
  72. package/dist/bundle/{embedder-3G4BQQ6X.js → embedder-I2SJMC6N.js} +9 -9
  73. package/dist/bundle/{failure-6COJAO7T.js → failure-YRGRZBTX.js} +2 -2
  74. package/dist/bundle/{first-run-FLXOC53U.js → first-run-3GA7YCKZ.js} +11 -11
  75. package/dist/bundle/first-screen-JFIXKYAK.js +32 -0
  76. package/dist/bundle/{instructions-HGSXDCBT.js → instructions-VHI5CWH5.js} +1 -1
  77. package/dist/bundle/mail.js +12 -12
  78. package/dist/bundle/{mcp-GAPDLFWA.js → mcp-B25MZCS7.js} +2 -2
  79. package/dist/bundle/{node-5Z7PS4F5.js → node-4RBB3RDY.js} +2 -2
  80. package/dist/bundle/{node-sqlite-OAW7APIX.js → node-sqlite-FWYX3P2D.js} +5 -5
  81. package/dist/bundle/{oauth-ZFZWPAJN.js → oauth-6JKKRGLX.js} +7 -7
  82. package/dist/bundle/{open-ZQMBZVH4.js → open-7JSNC3MR.js} +4 -4
  83. package/dist/bundle/{openai-XT2RIXAK.js → openai-ASLWL3D6.js} +14 -14
  84. package/dist/bundle/{process-VVEQIHPE.js → process-AB2D2G2Q.js} +1 -1
  85. package/dist/bundle/{program-RD3BBDNY.js → program-ZJPQ3IDU.js} +447 -382
  86. package/dist/bundle/{prompt-PU7GE4Z4.js → prompt-JDFVQR3L.js} +5 -5
  87. package/dist/bundle/{recognize-AG4A3KUK.js → recognize-PKYA4HRC.js} +4 -4
  88. package/dist/bundle/{remote-D6TQ6T7F.js → remote-USBVVO4O.js} +7 -7
  89. package/dist/bundle/{rerank-GO24HJPF.js → rerank-UBMV6KO6.js} +7 -7
  90. package/dist/bundle/{serve-WCHJAH6G.js → serve-SVS3YOYS.js} +9 -9
  91. package/dist/bundle/{server-CAVNBG3P.js → server-7PZMYXY6.js} +38 -38
  92. package/dist/bundle/server-KA7Q5XCL.js +63 -0
  93. package/dist/bundle/{sqlite-runtime-ANXC4AW2.js → sqlite-runtime-IDPTXAM7.js} +5 -5
  94. package/dist/bundle/{state-EGJ66A62.js → state-6G2TSVP7.js} +6 -6
  95. package/dist/bundle/{store-OON7FCMQ.js → store-7A464D4X.js} +15 -15
  96. package/dist/bundle/{store-SBFA444C.js → store-L56GFI4P.js} +13 -13
  97. package/dist/bundle/store-maintenance-command-2LM4GOI3.js +52 -0
  98. package/dist/commands/read.d.ts.map +1 -1
  99. package/dist/commands/read.js +1 -0
  100. package/dist/commands/read.js.map +1 -1
  101. package/dist/commands/server-search.d.ts.map +1 -1
  102. package/dist/commands/server-search.js +3 -2
  103. package/dist/commands/server-search.js.map +1 -1
  104. package/dist/providers.d.ts +8 -0
  105. package/dist/providers.d.ts.map +1 -1
  106. package/dist/providers.js +2 -0
  107. package/dist/providers.js.map +1 -1
  108. package/dist/version.d.ts +1 -1
  109. package/dist/version.js +1 -1
  110. package/package.json +3 -3
  111. package/dist/bundle/command-contract-CB5BII3S.js +0 -34
  112. package/dist/bundle/first-screen-VUZEDSQW.js +0 -32
  113. package/dist/bundle/server-5KJJ3D6P.js +0 -63
  114. package/dist/bundle/store-maintenance-command-UEOJLYMJ.js +0 -52
  115. /package/dist/bundle/{chunk-WJWLHLQ7.js → chunk-EKRM2QJB.js} +0 -0
package/CHANGELOG.md CHANGED
@@ -2,6 +2,26 @@
2
2
 
3
3
  Notable changes to `@wirecat/mail-cli`. One section per version, newest first.
4
4
 
5
+ ## 0.8.0 — 02.11.2026
6
+
7
+ ### Added
8
+
9
+ - **Every answer's `meta` says `now` and `now_local`**, the moment it was made (cli-core 0.541.0, cli-base 0.72.0).
10
+
11
+ ### Fixed
12
+
13
+ - **`search messages` waits 20 seconds for a Yandex server by default**, not 5: one IMAP SEARCH of a large Yandex
14
+ INBOX takes 5 to 7 seconds, so the old default always ran out. `--server-time` still sets it; the provider registry
15
+ holds the value.
16
+ - **A scheduled sync no longer fails at 30 seconds while it goes on running.** `schedule exec` waited for the sync with
17
+ the 30 s deadline of a one-shot command, answered `timeout` (exit 9) and left the sync writing for up to 15 minutes.
18
+ It now waits as long as the sync's own deadline allows, and a stop of the run stops the sync too (cli-core).
19
+ - **A Gmail sync uses about 200 MB, not 1 to 1.7 GB.** Each round asked the store about every stored email of the
20
+ account; on a 260,000-email mailbox a 30-day sync now takes seconds instead of minutes (cli-core).
21
+ - **`search messages --backend` stays inside its time bound**: reading the finds and their attachments counts toward
22
+ `--server-time`, the bound ends before the command's deadline, nothing is written after the command is stopped,
23
+ and a find over 5 MB is left on the server (`search.server-too-large`) (cli-core).
24
+
5
25
  ## 0.7.0 — 01.11.2026
6
26
 
7
27
  ### Changed — may break callers
package/dist/bin/mail.js CHANGED
@@ -9,7 +9,7 @@ if (
9
9
  (words[0] === "--version" || words[0] === "-V") &&
10
10
  !Object.keys(process.env).some((key) => key.endsWith("_TEST_ARGV_LOG"))
11
11
  ) {
12
- process.stdout.write("0.7.0\n")
12
+ process.stdout.write("0.8.0\n")
13
13
  } else {
14
14
  // Before the bundle compiles: the bundle's own call comes after its chunks.
15
15
  module.enableCompileCache()
@@ -29,7 +29,7 @@ if (
29
29
  })
30
30
  }
31
31
  const running = import("../bundle/mail.js")
32
- const chunks = ["../bundle/all-profiles-SI67TKZM.js","../bundle/anthropic-DALMLC3Y.js","../bundle/app-server-XOH327Z2.js","../bundle/bun-ORL67CJ6.js","../bundle/bun-sqlite-DGXFNFHI.js","../bundle/decode-KOBURZIQ.js","../bundle/dispatch-GDAH4JHS.js","../bundle/dist-HFUVURJG.js","../bundle/dist-T7HMT675.js","../bundle/echarts-LEWTQO6H.js","../bundle/embed-PUFE4BSQ.js","../bundle/embedder-3G4BQQ6X.js","../bundle/failure-6COJAO7T.js","../bundle/first-screen-VUZEDSQW.js","../bundle/instructions-HGSXDCBT.js","../bundle/mcp-GAPDLFWA.js","../bundle/node-5Z7PS4F5.js","../bundle/node-KM3CUABH.js","../bundle/node-TLZSIHIJ.js","../bundle/node-sqlite-OAW7APIX.js","../bundle/oauth-ZFZWPAJN.js","../bundle/open-ZQMBZVH4.js","../bundle/openai-XT2RIXAK.js","../bundle/process-VVEQIHPE.js","../bundle/program-RD3BBDNY.js","../bundle/prompt-PU7GE4Z4.js","../bundle/recognize-AG4A3KUK.js","../bundle/remote-D6TQ6T7F.js","../bundle/rerank-GO24HJPF.js","../bundle/serve-WCHJAH6G.js","../bundle/server-5KJJ3D6P.js","../bundle/server-CAVNBG3P.js","../bundle/sqlite-runtime-ANXC4AW2.js","../bundle/state-EGJ66A62.js","../bundle/store-OON7FCMQ.js","../bundle/store-SBFA444C.js","../bundle/store-maintenance-command-UEOJLYMJ.js"]
32
+ const chunks = ["../bundle/all-profiles-MXGDUBAM.js","../bundle/anthropic-A2QA4W7L.js","../bundle/app-server-PMIMK6FK.js","../bundle/bun-3UW3LFNL.js","../bundle/bun-sqlite-TGFZFKAX.js","../bundle/decode-NF4TGOR3.js","../bundle/dispatch-5C6XNGEE.js","../bundle/dist-DVYY3YFG.js","../bundle/dist-HFUVURJG.js","../bundle/echarts-F3USGP5B.js","../bundle/embed-2RXV3BEC.js","../bundle/embedder-I2SJMC6N.js","../bundle/failure-YRGRZBTX.js","../bundle/first-screen-JFIXKYAK.js","../bundle/instructions-VHI5CWH5.js","../bundle/mcp-B25MZCS7.js","../bundle/node-4RBB3RDY.js","../bundle/node-KM3CUABH.js","../bundle/node-TLZSIHIJ.js","../bundle/node-sqlite-FWYX3P2D.js","../bundle/oauth-6JKKRGLX.js","../bundle/open-7JSNC3MR.js","../bundle/openai-ASLWL3D6.js","../bundle/process-AB2D2G2Q.js","../bundle/program-ZJPQ3IDU.js","../bundle/prompt-JDFVQR3L.js","../bundle/recognize-PKYA4HRC.js","../bundle/remote-USBVVO4O.js","../bundle/rerank-UBMV6KO6.js","../bundle/serve-SVS3YOYS.js","../bundle/server-7PZMYXY6.js","../bundle/server-KA7Q5XCL.js","../bundle/sqlite-runtime-IDPTXAM7.js","../bundle/state-6G2TSVP7.js","../bundle/store-7A464D4X.js","../bundle/store-L56GFI4P.js","../bundle/store-maintenance-command-2LM4GOI3.js"]
33
33
  // After the server answers its first request, so it starts no later.
34
34
  if (serves) setTimeout(() => void Promise.allSettled(chunks.map((chunk) => import(chunk))), 2000).unref()
35
35
  await running
@@ -2,28 +2,28 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  answeredWire
5
- } from "./chunk-3GZK5GTU.js";
5
+ } from "./chunk-ZKAT6I2I.js";
6
6
  import {
7
7
  CALLER_META_KEY,
8
8
  PROXY_CLIENT_NAME,
9
9
  StdioServerTransport,
10
10
  callerOf,
11
11
  serveStdio
12
- } from "./chunk-VNJMO5F6.js";
12
+ } from "./chunk-NI6WX55Z.js";
13
13
  import {
14
14
  McpServer
15
15
  } from "./chunk-5D4AEUVA.js";
16
- import "./chunk-ZNGQ3NZ4.js";
17
- import "./chunk-WJWLHLQ7.js";
18
- import "./chunk-Q2C3VMSU.js";
19
- import "./chunk-NXJLC2WK.js";
16
+ import "./chunk-J6ACLZKV.js";
17
+ import "./chunk-EKRM2QJB.js";
18
+ import "./chunk-ZISFMUYB.js";
19
+ import "./chunk-NAIJNJZZ.js";
20
20
  import "./chunk-Y5E2WNWB.js";
21
- import "./chunk-BM445GYF.js";
21
+ import "./chunk-L3KMVMRJ.js";
22
22
  import {
23
23
  __name
24
24
  } from "./chunk-ZVVMGPBJ.js";
25
25
 
26
- // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/mcp/all-profiles.js
26
+ // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/mcp/all-profiles.js
27
27
  import { spawn } from "node:child_process";
28
28
  import { randomUUID } from "node:crypto";
29
29
  var PROTOCOL = "2025-06-18";
@@ -257,7 +257,7 @@ var serveAllProfilesOverStdio = /* @__PURE__ */ __name(async (options, io = {})
257
257
  }, "serveAllProfilesOverStdio");
258
258
  var serveAllProfilesOverHttp = /* @__PURE__ */ __name(async (options, http) => {
259
259
  const { build, close } = allProfilesServer(options);
260
- const { serveOverHttp } = await import("./serve-WCHJAH6G.js");
260
+ const { serveOverHttp } = await import("./serve-SVS3YOYS.js");
261
261
  const listening = await serveOverHttp(build, {
262
262
  ...http,
263
263
  appName: options.command,
@@ -5,25 +5,25 @@ import {
5
5
  } from "./chunk-XQUUANA2.js";
6
6
  import {
7
7
  checkedOptions
8
- } from "./chunk-ZKZABB4K.js";
8
+ } from "./chunk-WWNAQ75T.js";
9
9
  import {
10
10
  messagesFor,
11
11
  systemFor
12
- } from "./chunk-ZKCNMW7G.js";
13
- import "./chunk-Q2C3VMSU.js";
12
+ } from "./chunk-UR6WHUJF.js";
13
+ import "./chunk-ZISFMUYB.js";
14
14
  import {
15
15
  array,
16
16
  optional,
17
17
  strictObject,
18
18
  string
19
- } from "./chunk-NXJLC2WK.js";
19
+ } from "./chunk-NAIJNJZZ.js";
20
20
  import "./chunk-Y5E2WNWB.js";
21
- import "./chunk-BM445GYF.js";
21
+ import "./chunk-L3KMVMRJ.js";
22
22
  import {
23
23
  __name
24
24
  } from "./chunk-ZVVMGPBJ.js";
25
25
 
26
- // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/models/anthropic.js
26
+ // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/models/anthropic.js
27
27
  var options = strictObject({
28
28
  stop_sequences: optional(array(string()))
29
29
  });
@@ -3,93 +3,93 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  PER_RUN,
5
5
  envelope
6
- } from "./chunk-6RMMAUUW.js";
6
+ } from "./chunk-NWKLBZN5.js";
7
7
  import {
8
8
  answered,
9
9
  failed,
10
10
  registerCommands,
11
11
  runCommandForAgent,
12
12
  toolsFromCommands
13
- } from "./chunk-MHQKHWCJ.js";
13
+ } from "./chunk-RFWTPSJX.js";
14
14
  import {
15
15
  mcpUrlOf
16
- } from "./chunk-6XNPXAJU.js";
16
+ } from "./chunk-AO3XYONW.js";
17
17
  import {
18
18
  agentJson,
19
19
  skillResource
20
- } from "./chunk-V4TDG4KF.js";
21
- import "./chunk-73OJJGZE.js";
20
+ } from "./chunk-7JUTNCQX.js";
21
+ import "./chunk-KEZHPPMI.js";
22
22
  import {
23
23
  appInstructions
24
- } from "./chunk-JFMUI4H6.js";
24
+ } from "./chunk-BCDPLG7T.js";
25
25
  import {
26
26
  answeredWire
27
- } from "./chunk-3GZK5GTU.js";
27
+ } from "./chunk-ZKAT6I2I.js";
28
28
  import {
29
29
  StdioServerTransport,
30
30
  serveStdio
31
- } from "./chunk-VNJMO5F6.js";
31
+ } from "./chunk-NI6WX55Z.js";
32
32
  import {
33
33
  McpServer
34
34
  } from "./chunk-5D4AEUVA.js";
35
- import "./chunk-DKQWTQVY.js";
36
- import "./chunk-S4YUR4S3.js";
37
- import "./chunk-45KA5667.js";
38
- import "./chunk-FTFNWGIR.js";
39
- import "./chunk-ZKCNMW7G.js";
40
- import "./chunk-BGUMGCUY.js";
41
- import "./chunk-NNIXREJH.js";
42
- import "./chunk-M2JCUVCJ.js";
35
+ import "./chunk-EU35YQXE.js";
36
+ import "./chunk-FSBKLJXM.js";
37
+ import "./chunk-KBKEZV4L.js";
38
+ import "./chunk-LN7TNZIS.js";
39
+ import "./chunk-UR6WHUJF.js";
40
+ import "./chunk-DYCPBLUC.js";
41
+ import "./chunk-PXCIM6D5.js";
42
+ import "./chunk-NSODLSEL.js";
43
43
  import {
44
44
  DEFAULT_OUTPUT_BYTES,
45
45
  changesAuthorityAt,
46
46
  describeProgram,
47
47
  environmentOf,
48
- fetchesOnlyAt,
49
48
  judgedTargets,
50
49
  readOnlyLockOf,
50
+ readsOverMcpAt,
51
51
  rootOf2 as rootOf
52
- } from "./chunk-R5MML3FC.js";
53
- import "./chunk-VSHJWTX5.js";
54
- import "./chunk-ZNGQ3NZ4.js";
55
- import "./chunk-23IEVVL2.js";
56
- import "./chunk-QZBT6BOU.js";
57
- import "./chunk-IYZHM3ZN.js";
52
+ } from "./chunk-VSDVH2M2.js";
53
+ import "./chunk-TCWJYOZV.js";
54
+ import "./chunk-J6ACLZKV.js";
55
+ import "./chunk-5PWKPRTD.js";
56
+ import "./chunk-ROZBXOES.js";
57
+ import "./chunk-2KZJWBXB.js";
58
58
  import {
59
59
  mcpHttpMarker
60
- } from "./chunk-DXGMPMFP.js";
61
- import "./chunk-5JEYIHS6.js";
62
- import "./chunk-6LK7KTWB.js";
63
- import "./chunk-RQVWZBW3.js";
64
- import "./chunk-2M4K7HYR.js";
65
- import "./chunk-5BSEGMNE.js";
66
- import "./chunk-35KD2CI2.js";
67
- import "./chunk-MCJ7LKYR.js";
68
- import "./chunk-MMXMVGA6.js";
69
- import "./chunk-VBOMKZ4E.js";
70
- import "./chunk-GJUUTUK4.js";
71
- import "./chunk-4NYWHINR.js";
72
- import "./chunk-XQJWMBDY.js";
73
- import "./chunk-AP7V256W.js";
74
- import "./chunk-SQLCCKEL.js";
75
- import "./chunk-WJWLHLQ7.js";
60
+ } from "./chunk-CMNFLAUG.js";
61
+ import "./chunk-NEBO3NZU.js";
62
+ import "./chunk-Q5DOXSBM.js";
63
+ import "./chunk-5W74YMCK.js";
64
+ import "./chunk-2MQXXPPK.js";
65
+ import "./chunk-OAQ4UB6V.js";
66
+ import "./chunk-QBBKSCQD.js";
67
+ import "./chunk-VGR3AGAC.js";
68
+ import "./chunk-SZ5PKNDF.js";
69
+ import "./chunk-4QDBMYK4.js";
70
+ import "./chunk-EVO77D3Y.js";
71
+ import "./chunk-6JK46V5X.js";
72
+ import "./chunk-DM4ULDS3.js";
73
+ import "./chunk-RVZ4JIRR.js";
74
+ import "./chunk-DLB2JPLU.js";
75
+ import "./chunk-EKRM2QJB.js";
76
76
  import "./chunk-D72URWJE.js";
77
- import "./chunk-CAKBG5FC.js";
78
- import "./chunk-3TYEJRMZ.js";
79
- import "./chunk-Q44AYEOB.js";
80
- import "./chunk-Q2C3VMSU.js";
77
+ import "./chunk-6U6Z3GXR.js";
78
+ import "./chunk-EN3UZPGB.js";
79
+ import "./chunk-XWNCXFR5.js";
80
+ import "./chunk-ZISFMUYB.js";
81
81
  import {
82
82
  mcpErrorResult
83
- } from "./chunk-NXJLC2WK.js";
83
+ } from "./chunk-NAIJNJZZ.js";
84
84
  import "./chunk-Y5E2WNWB.js";
85
85
  import {
86
86
  CliError
87
- } from "./chunk-BM445GYF.js";
87
+ } from "./chunk-L3KMVMRJ.js";
88
88
  import {
89
89
  __name
90
90
  } from "./chunk-ZVVMGPBJ.js";
91
91
 
92
- // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/mcp/app-server.js
92
+ // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/mcp/app-server.js
93
93
  var EXCLUDED = [["mcp"]];
94
94
  var createAppServer = /* @__PURE__ */ __name((command, context, options) => {
95
95
  const { app } = options;
@@ -113,7 +113,7 @@ var createAppServer = /* @__PURE__ */ __name((command, context, options) => {
113
113
  currentLevels: levels,
114
114
  readOnly: readOnly(),
115
115
  authority,
116
- fetchOnly: fetchesOnlyAt(root),
116
+ fetchOnly: readsOverMcpAt(root),
117
117
  permissions: options.permissions
118
118
  });
119
119
  const availability = /* @__PURE__ */ __name((one) => () => {
@@ -204,7 +204,7 @@ var serveAppOverStdio = /* @__PURE__ */ __name(async (command, context, options)
204
204
  var serveAppOverHttp = /* @__PURE__ */ __name(async (command, context, options, http) => {
205
205
  const { app } = options;
206
206
  const { build } = createAppServer(command, context, options);
207
- const { serveOverHttp } = await import("./serve-WCHJAH6G.js");
207
+ const { serveOverHttp } = await import("./serve-SVS3YOYS.js");
208
208
  const listening = await serveOverHttp(build, {
209
209
  ...http,
210
210
  appName: app.command,
@@ -18,12 +18,12 @@ import {
18
18
  jitCompatCheck,
19
19
  refineSqliteCodecs,
20
20
  sql
21
- } from "./chunk-AP7V256W.js";
21
+ } from "./chunk-RVZ4JIRR.js";
22
22
  import {
23
23
  __name
24
24
  } from "./chunk-ZVVMGPBJ.js";
25
25
 
26
- // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/bun.js
26
+ // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/bun.js
27
27
  import { Database } from "bun:sqlite";
28
28
  var bunSQLiteCodecs = refineSqliteCodecs({
29
29
  "integer:boolean": { normalize: booleanFromInteger },
@@ -3,18 +3,18 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  loadVectorExtension,
5
5
  vectorExtension
6
- } from "./chunk-VKPWP3AK.js";
7
- import "./chunk-Q2C3VMSU.js";
8
- import "./chunk-NXJLC2WK.js";
6
+ } from "./chunk-U4IF2MOB.js";
7
+ import "./chunk-ZISFMUYB.js";
8
+ import "./chunk-NAIJNJZZ.js";
9
9
  import {
10
10
  importFrom
11
11
  } from "./chunk-Y5E2WNWB.js";
12
- import "./chunk-BM445GYF.js";
12
+ import "./chunk-L3KMVMRJ.js";
13
13
  import {
14
14
  __name
15
15
  } from "./chunk-ZVVMGPBJ.js";
16
16
 
17
- // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/store/drivers/bun-sqlite.js
17
+ // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/store/drivers/bun-sqlite.js
18
18
  var customised = false;
19
19
  var ownLibrary = /* @__PURE__ */ __name(async () => {
20
20
  try {
@@ -3,15 +3,15 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  readSharedSection,
5
5
  writeSharedSection
6
- } from "./chunk-4NYWHINR.js";
6
+ } from "./chunk-6JK46V5X.js";
7
7
  import {
8
8
  CliError
9
- } from "./chunk-BM445GYF.js";
9
+ } from "./chunk-L3KMVMRJ.js";
10
10
  import {
11
11
  __name
12
12
  } from "./chunk-ZVVMGPBJ.js";
13
13
 
14
- // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/cli/setup-answers.js
14
+ // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/cli/setup-answers.js
15
15
  var PERMISSION_ANSWERS = ["readonly", "allow"];
16
16
  var QUESTIONS = ["languages", "tools", "permissions"];
17
17
  var SECTION = "setup";
@@ -4,7 +4,7 @@ import {
4
4
  organization,
5
5
  project,
6
6
  reminder
7
- } from "./chunk-5BSEGMNE.js";
7
+ } from "./chunk-OAQ4UB6V.js";
8
8
  import {
9
9
  MIGRATIONS,
10
10
  SnapshotBudget,
@@ -28,31 +28,31 @@ import {
28
28
  tagMemberIds,
29
29
  thingOf,
30
30
  write
31
- } from "./chunk-35KD2CI2.js";
31
+ } from "./chunk-QBBKSCQD.js";
32
32
  import {
33
33
  filesAccountSql,
34
34
  folderProviderOf,
35
35
  folderProviderSql,
36
36
  isDocumentAccountProvider
37
- } from "./chunk-MCJ7LKYR.js";
37
+ } from "./chunk-VGR3AGAC.js";
38
38
  import {
39
39
  queryFieldsOf
40
- } from "./chunk-VBOMKZ4E.js";
40
+ } from "./chunk-4QDBMYK4.js";
41
41
  import {
42
42
  fold
43
- } from "./chunk-GJUUTUK4.js";
43
+ } from "./chunk-EVO77D3Y.js";
44
44
  import {
45
45
  CliError
46
- } from "./chunk-BM445GYF.js";
46
+ } from "./chunk-L3KMVMRJ.js";
47
47
  import {
48
48
  __name
49
49
  } from "./chunk-ZVVMGPBJ.js";
50
50
 
51
- // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/store/document-transfer/index.js
51
+ // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/store/document-transfer/index.js
52
52
  import { realpathSync, statSync } from "node:fs";
53
53
  import { resolve } from "node:path";
54
54
 
55
- // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/people.js
55
+ // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/people.js
56
56
  var planPeople = /* @__PURE__ */ __name((database, snapshot, mappings, bindings, conflicts) => {
57
57
  const creatable = /* @__PURE__ */ new Set();
58
58
  let people = 0, identities = 0;
@@ -115,11 +115,11 @@ var copyPeople = /* @__PURE__ */ __name((database, snapshot, mappings, now) => {
115
115
  }
116
116
  }, "copyPeople");
117
117
 
118
- // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/store/document-transfer/digest.js
118
+ // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/store/document-transfer/digest.js
119
119
  import { createHash } from "node:crypto";
120
120
  var digest = /* @__PURE__ */ __name((value) => createHash("sha256").update(JSON.stringify(value)).digest("hex"), "digest");
121
121
 
122
- // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/collection.js
122
+ // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/collection.js
123
123
  var documentsKeyOf = /* @__PURE__ */ __name((collection) => {
124
124
  const colon = collection.indexOf(":");
125
125
  const provider = collection.slice(0, colon);
@@ -163,7 +163,7 @@ var currentCollection = /* @__PURE__ */ __name((row) => {
163
163
  };
164
164
  }, "currentCollection");
165
165
 
166
- // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/plan.js
166
+ // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/plan.js
167
167
  var planTransfer = /* @__PURE__ */ __name((database, snapshot, sourceKey, bindings) => {
168
168
  const mappings = /* @__PURE__ */ new Map();
169
169
  const missing = /* @__PURE__ */ new Set(), conflicts = /* @__PURE__ */ new Set();
@@ -330,7 +330,7 @@ var planTransfer = /* @__PURE__ */ __name((database, snapshot, sourceKey, bindin
330
330
  };
331
331
  }, "planTransfer");
332
332
 
333
- // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/snapshot.js
333
+ // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/snapshot.js
334
334
  var TRANSFER_TABLES = { document: "documents", note: "notes", memory: "memories", fact: "facts" };
335
335
  var MAX_ENTITIES = 1e3;
336
336
  var MAX_AUXILIARY = 1e4;
@@ -492,7 +492,7 @@ var transferSnapshot = /* @__PURE__ */ __name((database, collection) => read(dat
492
492
  };
493
493
  }), "transferSnapshot");
494
494
 
495
- // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/apply.js
495
+ // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/apply.js
496
496
  var providerHere = /* @__PURE__ */ __name(({ provider, name, settings }) => {
497
497
  if (provider !== "folder" || String(name ?? "").startsWith("google-drive:"))
498
498
  return provider ?? null;
@@ -664,7 +664,7 @@ var remapEntity = /* @__PURE__ */ __name((database, entity, id, mappings) => {
664
664
  database.prepare(`UPDATE ${TRANSFER_TABLES[entity.kind]} SET ${columns.join(",")} WHERE id=?`).run(...values, id);
665
665
  }, "remapEntity");
666
666
 
667
- // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/store/document-transfer/index.js
667
+ // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/store/document-transfer/index.js
668
668
  var locations = /* @__PURE__ */ __name((options) => {
669
669
  for (const value of [options.source, options.destination, options.collection])
670
670
  if (typeof value !== "string" || !value.trim())
@@ -760,7 +760,7 @@ var applyDocumentTransfer = /* @__PURE__ */ __name(async (options) => {
760
760
  }
761
761
  }, "applyDocumentTransfer");
762
762
 
763
- // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/store/knowledge-query.js
763
+ // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/store/knowledge-query.js
764
764
  var ORGANIZATIONS_QUERY = {
765
765
  entity: "organization",
766
766
  backend: "sql",
@@ -795,7 +795,7 @@ var REMINDERS_QUERY = {
795
795
  })
796
796
  };
797
797
 
798
- // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/store/project-transfer/preview.js
798
+ // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/store/project-transfer/preview.js
799
799
  var previewProjectAnnotationSnapshot = /* @__PURE__ */ __name(async (options) => {
800
800
  if (!options || typeof options !== "object" || Array.isArray(options))
801
801
  throw new CliError("validation_error", "project preview options are required");
@@ -817,7 +817,7 @@ var previewProjectAnnotationSnapshot = /* @__PURE__ */ __name(async (options) =>
817
817
  }
818
818
  }, "previewProjectAnnotationSnapshot");
819
819
 
820
- // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot.js
820
+ // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot.js
821
821
  var snapshotProjectAnnotations = /* @__PURE__ */ __name(async (options) => {
822
822
  if (!options || typeof options !== "object" || Array.isArray(options))
823
823
  throw new CliError("validation_error", "snapshot options are required");