@wirecat/mail-cli 0.13.0 → 0.14.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 (104) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.md +4 -0
  3. package/dist/bin/mail.js +2 -2
  4. package/dist/bundle/{all-profiles-EEOMFTKE.js → all-profiles-O7HQNZOF.js} +8 -7
  5. package/dist/bundle/{anthropic-FPSVNB3F.js → anthropic-SNA6PTVO.js} +5 -5
  6. package/dist/bundle/{app-server-3T6UVR7B.js → app-server-LBKMJMKN.js} +43 -42
  7. package/dist/bundle/{bun-MSNAKMDK.js → bun-KF5QK2YN.js} +2 -2
  8. package/dist/bundle/{bun-sqlite-GIBBI5DV.js → bun-sqlite-2DKMM2PT.js} +4 -4
  9. package/dist/bundle/{chunk-URC4ATBD.js → chunk-2A4BAMNF.js} +4 -4
  10. package/dist/bundle/{chunk-7FCPLSSM.js → chunk-2F7D6YMB.js} +2 -2
  11. package/dist/bundle/{chunk-FVZST7ZH.js → chunk-2KVR7FF3.js} +11 -88
  12. package/dist/bundle/{chunk-Y2O3DACO.js → chunk-3EAAEF5U.js} +1 -1
  13. package/dist/bundle/{chunk-2Y3RKROM.js → chunk-3YGYB3LJ.js} +33 -6
  14. package/dist/bundle/{chunk-OHFSAYZG.js → chunk-5C74F7XX.js} +4 -4
  15. package/dist/bundle/{chunk-ZXLJ5EKZ.js → chunk-6CZQJ5XR.js} +7 -7
  16. package/dist/bundle/{chunk-3CBK26T2.js → chunk-6EZ7XGRG.js} +1 -1
  17. package/dist/bundle/{chunk-EFA7FRFJ.js → chunk-7GSE57K3.js} +2 -2
  18. package/dist/bundle/{chunk-UFWCJUGA.js → chunk-7LDC275M.js} +6 -6
  19. package/dist/bundle/{chunk-OHDDGTCH.js → chunk-AOVOIXGR.js} +9 -9
  20. package/dist/bundle/{chunk-VSHQITKC.js → chunk-B5XAETYU.js} +2 -2
  21. package/dist/bundle/chunk-BP3TZ4EY.js +91 -0
  22. package/dist/bundle/{chunk-V25TCQ3Z.js → chunk-DIP3ENSY.js} +1 -1
  23. package/dist/bundle/{chunk-WBI7J5B7.js → chunk-DPKHVBP3.js} +4 -4
  24. package/dist/bundle/{chunk-HANGU5HI.js → chunk-E7BTD4P6.js} +5 -5
  25. package/dist/bundle/{chunk-H5XCD6OG.js → chunk-ER6PJAPK.js} +2 -2
  26. package/dist/bundle/{chunk-JBLZ5XQG.js → chunk-F5SZVO3A.js} +3 -3
  27. package/dist/bundle/{chunk-3BC2XSNX.js → chunk-FTGCXIQA.js} +44 -24
  28. package/dist/bundle/{chunk-7L26RKOS.js → chunk-G53HRGTK.js} +16 -16
  29. package/dist/bundle/{chunk-H6Y2A4JA.js → chunk-H2ZURG7Q.js} +1 -1
  30. package/dist/bundle/{chunk-CJPEL2N5.js → chunk-H7OQ4YZV.js} +15 -15
  31. package/dist/bundle/{chunk-XV66LQXV.js → chunk-I62OTHDE.js} +2 -2
  32. package/dist/bundle/{chunk-CSJYZEFR.js → chunk-I7EWIIBC.js} +2 -2
  33. package/dist/bundle/{chunk-YMNF4QLY.js → chunk-IPKXRW6W.js} +22 -22
  34. package/dist/bundle/{chunk-M7JREJFC.js → chunk-IVDUR5Y4.js} +12 -0
  35. package/dist/bundle/{chunk-H3XWM2VA.js → chunk-KBFIKUCA.js} +27 -27
  36. package/dist/bundle/{chunk-7D7AKYQ2.js → chunk-KLLKDOO2.js} +2926 -1195
  37. package/dist/bundle/{chunk-UGXTDYUY.js → chunk-KQ5P5NLL.js} +1 -1
  38. package/dist/bundle/{chunk-SOCALLW5.js → chunk-M2YIJDBL.js} +5 -5
  39. package/dist/bundle/{chunk-6KDFUPBT.js → chunk-MQK2UNG4.js} +7 -7
  40. package/dist/bundle/{chunk-VNXCWZDW.js → chunk-MXG4L7NH.js} +248 -7
  41. package/dist/bundle/{chunk-NHVOJHHD.js → chunk-NGZW2JPK.js} +6 -6
  42. package/dist/bundle/{chunk-GQGJV53E.js → chunk-NVQUK2DH.js} +46 -46
  43. package/dist/bundle/{chunk-VNBQHV5H.js → chunk-OGK7LMYT.js} +5 -5
  44. package/dist/bundle/{chunk-BZBNBPCR.js → chunk-P547HU26.js} +9 -9
  45. package/dist/bundle/{chunk-XLCFCOT4.js → chunk-P62Z3Q35.js} +11 -11
  46. package/dist/bundle/{chunk-YHSXNUFQ.js → chunk-Q5EYTU3Q.js} +3 -3
  47. package/dist/bundle/{chunk-VD5UJUNR.js → chunk-QWRBAQZ7.js} +1 -1
  48. package/dist/bundle/{chunk-3QEYHTCQ.js → chunk-QZXHMQCM.js} +1 -1
  49. package/dist/bundle/{chunk-7CSK47S2.js → chunk-RE5SEGSR.js} +3 -3
  50. package/dist/bundle/{chunk-VMLGER4M.js → chunk-UHHARH5X.js} +192 -148
  51. package/dist/bundle/{chunk-LO66SLGD.js → chunk-UJEO3VWA.js} +1 -1
  52. package/dist/bundle/{chunk-JYZCISN7.js → chunk-UMWR5PKA.js} +12 -12
  53. package/dist/bundle/{chunk-XPBRNJ2V.js → chunk-V5ZID7KC.js} +1 -1
  54. package/dist/bundle/{chunk-MBWVZINS.js → chunk-VA3JKERH.js} +2 -2
  55. package/dist/bundle/{chunk-AXWTELO4.js → chunk-VERSKGJV.js} +2 -2
  56. package/dist/bundle/{chunk-6O6CM2ML.js → chunk-W643XZIR.js} +1 -1
  57. package/dist/bundle/{chunk-GIZILLRJ.js → chunk-WBJQEB6E.js} +11 -11
  58. package/dist/bundle/{chunk-UUBAWUUI.js → chunk-WVWNKZI4.js} +562 -404
  59. package/dist/bundle/chunk-X5XIFNTI.js +35 -0
  60. package/dist/bundle/{chunk-TBG3FRS6.js → chunk-XPREXN3W.js} +2 -2
  61. package/dist/bundle/{chunk-ZSS22YHM.js → chunk-XRJIQC6P.js} +1 -1
  62. package/dist/bundle/{chunk-5XTJUQZ5.js → chunk-YG4OI3HJ.js} +456 -201
  63. package/dist/bundle/{chunk-IGSHWMWC.js → chunk-ZCPUKUST.js} +1 -1
  64. package/dist/bundle/command-contract-B3OGAIDB.js +34 -0
  65. package/dist/bundle/{decode-YRTMNHC6.js → decode-X7Y2VSYZ.js} +4 -4
  66. package/dist/bundle/{dispatch-BCS2RDF4.js → dispatch-OWNO2CMC.js} +1 -1
  67. package/dist/bundle/{dist-NOBSXRL2.js → dist-L7FNC74Q.js} +40 -11
  68. package/dist/bundle/{echarts-5UKZVIF6.js → echarts-5AB3LFVD.js} +2 -2
  69. package/dist/bundle/{embed-G62XY6BJ.js → embed-VBS5LRCE.js} +5 -5
  70. package/dist/bundle/{embedder-SCHGLA74.js → embedder-VFSYBDKK.js} +8 -8
  71. package/dist/bundle/{failure-N5S6ZS62.js → failure-E534GZDF.js} +1 -1
  72. package/dist/bundle/{first-run-DPF2BBQN.js → first-run-NO2ODH2W.js} +8 -8
  73. package/dist/bundle/first-screen-7VJLGMJJ.js +32 -0
  74. package/dist/bundle/{instructions-7RP5OKLE.js → instructions-52W6ZQTU.js} +1 -1
  75. package/dist/bundle/mail.js +5 -5
  76. package/dist/bundle/{node-ENCKD6SS.js → node-TL2PBNKO.js} +2 -2
  77. package/dist/bundle/{node-sqlite-4ICXMPYY.js → node-sqlite-757HNQAD.js} +5 -5
  78. package/dist/bundle/{oauth-CX2WYMGN.js → oauth-VDRNJ7KN.js} +6 -6
  79. package/dist/bundle/{open-HQZYHMVE.js → open-NUWYOKPO.js} +4 -4
  80. package/dist/bundle/{openai-3ONJIA3F.js → openai-YLBFVK5X.js} +12 -12
  81. package/dist/bundle/{process-OK3HRPMD.js → process-PWAGP6YY.js} +1 -1
  82. package/dist/bundle/{program-FLKUE6LL.js → program-PPUPVL7O.js} +755 -646
  83. package/dist/bundle/{prompt-ZWKUQ42Y.js → prompt-M5U66RVJ.js} +4 -4
  84. package/dist/bundle/{recognize-PHDYO6DC.js → recognize-DCMDZA2U.js} +3 -3
  85. package/dist/bundle/{remote-4CX7GFMU.js → remote-4SHI5WJG.js} +6 -6
  86. package/dist/bundle/{rerank-ZCZTGXDQ.js → rerank-DYMZMNPQ.js} +6 -6
  87. package/dist/bundle/{serve-3LBS7CPR.js → serve-HO3WME4G.js} +8 -8
  88. package/dist/bundle/server-244FHPY4.js +64 -0
  89. package/dist/bundle/{server-2BKI2OQP.js → server-R3TIPRZN.js} +35 -34
  90. package/dist/bundle/{sqlite-runtime-J5T7SR5W.js → sqlite-runtime-DWRITUIH.js} +5 -5
  91. package/dist/bundle/{state-TIRNYVEL.js → state-QOMUDOGF.js} +5 -5
  92. package/dist/bundle/{store-F7ZXMIAP.js → store-LHHMOE5V.js} +21 -14
  93. package/dist/bundle/{store-NGE2E7KZ.js → store-RGO6IABA.js} +13 -12
  94. package/dist/bundle/store-maintenance-command-LU2ZBDUY.js +54 -0
  95. package/dist/config.d.ts +2 -0
  96. package/dist/config.d.ts.map +1 -1
  97. package/dist/version.d.ts +1 -1
  98. package/dist/version.js +1 -1
  99. package/package.json +2 -2
  100. package/dist/bundle/chunk-72CGQMAZ.js +0 -18
  101. package/dist/bundle/command-contract-6QSZ5QHQ.js +0 -33
  102. package/dist/bundle/first-screen-4MRKF6RQ.js +0 -31
  103. package/dist/bundle/server-X5F7VD2E.js +0 -63
  104. package/dist/bundle/store-maintenance-command-QZV76KAH.js +0 -53
package/CHANGELOG.md CHANGED
@@ -2,6 +2,24 @@
2
2
 
3
3
  Notable changes to `@wirecat/mail-cli`. One section per version, newest first.
4
4
 
5
+ ## 0.14.0 — 05.11.2026
6
+
7
+ ### Added
8
+
9
+ - **`config migrate` writes each setting your config file lacks, at its default**, and keeps your values, their order
10
+ and keys it does not know; it creates no section and running it again adds nothing. A first run now writes every
11
+ shared setting into the file, and `config set` and `config unset` fill in the missing ones. `config show` gives each
12
+ setting its default and description, and no longer creates a missing file. From cli-core 0.563.0.
13
+
14
+ ### Changed — may break callers
15
+
16
+ - **Mail sync reads attachments up to 10 MB a file by default**, and can skip them. From cli-core 0.563.0.
17
+ - **`review --holder` leaves out mail from suspicious senders too**, beside bulk, envelopes, drafts and partial mail.
18
+ From cli-core 0.560.0.
19
+ - **An answer over the output cap names what to run instead** (WC-OUT-22). From cli-core 0.563.0.
20
+ - **The store moves to version 48** (invoices and payments, imports through one envelope, the cleanup of test rows
21
+ that leaked into a real store). The first run of this version migrates it. From cli-core 0.557.0–0.560.0.
22
+
5
23
  ## 0.13.0 — 02.11.2026
6
24
 
7
25
  ### Added
package/README.md CHANGED
@@ -1,3 +1,7 @@
1
+ <p align="center">
2
+ <img src="https://raw.githubusercontent.com/WireCatLabs/mail-cli/main/docs/images/social-preview.png" alt="Your mailbox for your AI agents" width="100%">
3
+ </p>
4
+
1
5
  # mail CLI for people, scripts and agents
2
6
 
3
7
  `mail` copies your mailbox into the shared WireCat store on your computer, so you and your AI agents can search it
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.13.0\n")
12
+ process.stdout.write("0.14.0\n")
13
13
  } else {
14
14
  // Before the bundle compiles: the bundle's own call comes after its chunks.
15
15
  module.enableCompileCache()
@@ -28,7 +28,7 @@ if (
28
28
  : next(specifier, context),
29
29
  })
30
30
  }
31
- const chunks = ["../bundle/all-profiles-EEOMFTKE.js","../bundle/anthropic-FPSVNB3F.js","../bundle/app-server-3T6UVR7B.js","../bundle/bun-MSNAKMDK.js","../bundle/bun-sqlite-GIBBI5DV.js","../bundle/decode-YRTMNHC6.js","../bundle/dispatch-BCS2RDF4.js","../bundle/dist-HFUVURJG.js","../bundle/dist-NOBSXRL2.js","../bundle/echarts-5UKZVIF6.js","../bundle/embed-G62XY6BJ.js","../bundle/embedder-SCHGLA74.js","../bundle/failure-N5S6ZS62.js","../bundle/first-screen-4MRKF6RQ.js","../bundle/instructions-7RP5OKLE.js","../bundle/mcp-MNI62HHE.js","../bundle/node-ENCKD6SS.js","../bundle/node-KM3CUABH.js","../bundle/node-TLZSIHIJ.js","../bundle/node-sqlite-4ICXMPYY.js","../bundle/oauth-CX2WYMGN.js","../bundle/open-HQZYHMVE.js","../bundle/openai-3ONJIA3F.js","../bundle/process-OK3HRPMD.js","../bundle/program-FLKUE6LL.js","../bundle/prompt-ZWKUQ42Y.js","../bundle/recognize-PHDYO6DC.js","../bundle/remote-4CX7GFMU.js","../bundle/rerank-ZCZTGXDQ.js","../bundle/serve-3LBS7CPR.js","../bundle/server-2BKI2OQP.js","../bundle/server-X5F7VD2E.js","../bundle/sqlite-runtime-J5T7SR5W.js","../bundle/state-TIRNYVEL.js","../bundle/store-F7ZXMIAP.js","../bundle/store-NGE2E7KZ.js","../bundle/store-maintenance-command-QZV76KAH.js"]
31
+ const chunks = ["../bundle/all-profiles-O7HQNZOF.js","../bundle/anthropic-SNA6PTVO.js","../bundle/app-server-LBKMJMKN.js","../bundle/bun-KF5QK2YN.js","../bundle/bun-sqlite-2DKMM2PT.js","../bundle/decode-X7Y2VSYZ.js","../bundle/dispatch-OWNO2CMC.js","../bundle/dist-HFUVURJG.js","../bundle/dist-L7FNC74Q.js","../bundle/echarts-5AB3LFVD.js","../bundle/embed-VBS5LRCE.js","../bundle/embedder-VFSYBDKK.js","../bundle/failure-E534GZDF.js","../bundle/first-screen-7VJLGMJJ.js","../bundle/instructions-52W6ZQTU.js","../bundle/mcp-MNI62HHE.js","../bundle/node-KM3CUABH.js","../bundle/node-TL2PBNKO.js","../bundle/node-TLZSIHIJ.js","../bundle/node-sqlite-757HNQAD.js","../bundle/oauth-VDRNJ7KN.js","../bundle/open-NUWYOKPO.js","../bundle/openai-YLBFVK5X.js","../bundle/process-PWAGP6YY.js","../bundle/program-PPUPVL7O.js","../bundle/prompt-M5U66RVJ.js","../bundle/recognize-DCMDZA2U.js","../bundle/remote-4SHI5WJG.js","../bundle/rerank-DYMZMNPQ.js","../bundle/serve-HO3WME4G.js","../bundle/server-244FHPY4.js","../bundle/server-R3TIPRZN.js","../bundle/sqlite-runtime-DWRITUIH.js","../bundle/state-QOMUDOGF.js","../bundle/store-LHHMOE5V.js","../bundle/store-RGO6IABA.js","../bundle/store-maintenance-command-LU2ZBDUY.js"]
32
32
  if (((words) => words
33
33
  .filter((word) => !word.startsWith("-"))
34
34
  .slice(0, 2)
@@ -2,28 +2,29 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  answeredWire
5
- } from "./chunk-UGXTDYUY.js";
5
+ } from "./chunk-KQ5P5NLL.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-AXWTELO4.js";
12
+ } from "./chunk-VERSKGJV.js";
13
13
  import {
14
14
  McpServer
15
15
  } from "./chunk-5D4AEUVA.js";
16
- import "./chunk-FVZST7ZH.js";
16
+ import "./chunk-2KVR7FF3.js";
17
+ import "./chunk-BP3TZ4EY.js";
17
18
  import "./chunk-NUN6OGOV.js";
18
- import "./chunk-Y2O3DACO.js";
19
- import "./chunk-M7JREJFC.js";
19
+ import "./chunk-3EAAEF5U.js";
20
+ import "./chunk-IVDUR5Y4.js";
20
21
  import "./chunk-Y5E2WNWB.js";
21
22
  import "./chunk-CCHHEMPM.js";
22
23
  import {
23
24
  __name
24
25
  } from "./chunk-ZVVMGPBJ.js";
25
26
 
26
- // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/mcp/all-profiles.js
27
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/mcp/all-profiles.js
27
28
  import { spawn } from "node:child_process";
28
29
  import { randomUUID } from "node:crypto";
29
30
  var PROTOCOL = "2025-06-18";
@@ -257,7 +258,7 @@ var serveAllProfilesOverStdio = /* @__PURE__ */ __name(async (options, io = {})
257
258
  }, "serveAllProfilesOverStdio");
258
259
  var serveAllProfilesOverHttp = /* @__PURE__ */ __name(async (options, http) => {
259
260
  const { build, close } = allProfilesServer(options);
260
- const { serveOverHttp } = await import("./serve-3LBS7CPR.js");
261
+ const { serveOverHttp } = await import("./serve-HO3WME4G.js");
261
262
  const listening = await serveOverHttp(build, {
262
263
  ...http,
263
264
  appName: options.command,
@@ -5,25 +5,25 @@ import {
5
5
  } from "./chunk-XQUUANA2.js";
6
6
  import {
7
7
  checkedOptions
8
- } from "./chunk-XV66LQXV.js";
8
+ } from "./chunk-I62OTHDE.js";
9
9
  import {
10
10
  messagesFor,
11
11
  systemFor
12
- } from "./chunk-3CBK26T2.js";
13
- import "./chunk-Y2O3DACO.js";
12
+ } from "./chunk-6EZ7XGRG.js";
13
+ import "./chunk-3EAAEF5U.js";
14
14
  import {
15
15
  array,
16
16
  optional,
17
17
  strictObject,
18
18
  string
19
- } from "./chunk-M7JREJFC.js";
19
+ } from "./chunk-IVDUR5Y4.js";
20
20
  import "./chunk-Y5E2WNWB.js";
21
21
  import "./chunk-CCHHEMPM.js";
22
22
  import {
23
23
  __name
24
24
  } from "./chunk-ZVVMGPBJ.js";
25
25
 
26
- // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/models/anthropic.js
26
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/models/anthropic.js
27
27
  var options = strictObject({
28
28
  stop_sequences: optional(array(string()))
29
29
  });
@@ -3,42 +3,42 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  PER_RUN,
5
5
  envelope
6
- } from "./chunk-H3XWM2VA.js";
6
+ } from "./chunk-KBFIKUCA.js";
7
7
  import {
8
8
  answered,
9
9
  failed,
10
10
  registerCommands,
11
11
  runCommandForAgent,
12
12
  toolsFromCommands
13
- } from "./chunk-CJPEL2N5.js";
13
+ } from "./chunk-H7OQ4YZV.js";
14
14
  import {
15
15
  mcpUrlOf
16
- } from "./chunk-3BC2XSNX.js";
16
+ } from "./chunk-FTGCXIQA.js";
17
17
  import {
18
18
  agentJson,
19
19
  skillResource
20
- } from "./chunk-XLCFCOT4.js";
21
- import "./chunk-2Y3RKROM.js";
20
+ } from "./chunk-P62Z3Q35.js";
21
+ import "./chunk-3YGYB3LJ.js";
22
22
  import {
23
23
  appInstructions
24
- } from "./chunk-IGSHWMWC.js";
24
+ } from "./chunk-ZCPUKUST.js";
25
25
  import {
26
26
  answeredWire
27
- } from "./chunk-UGXTDYUY.js";
27
+ } from "./chunk-KQ5P5NLL.js";
28
28
  import {
29
29
  StdioServerTransport,
30
30
  serveStdio
31
- } from "./chunk-AXWTELO4.js";
31
+ } from "./chunk-VERSKGJV.js";
32
32
  import {
33
33
  McpServer
34
34
  } from "./chunk-5D4AEUVA.js";
35
- import "./chunk-YMNF4QLY.js";
36
- import "./chunk-UUBAWUUI.js";
37
- import "./chunk-JYZCISN7.js";
38
- import "./chunk-BZBNBPCR.js";
39
- import "./chunk-3CBK26T2.js";
40
- import "./chunk-H6Y2A4JA.js";
41
- import "./chunk-WBI7J5B7.js";
35
+ import "./chunk-IPKXRW6W.js";
36
+ import "./chunk-WVWNKZI4.js";
37
+ import "./chunk-UMWR5PKA.js";
38
+ import "./chunk-P547HU26.js";
39
+ import "./chunk-6EZ7XGRG.js";
40
+ import "./chunk-H2ZURG7Q.js";
41
+ import "./chunk-DPKHVBP3.js";
42
42
  import {
43
43
  DEFAULT_OUTPUT_BYTES,
44
44
  changesAuthorityAt,
@@ -48,48 +48,49 @@ import {
48
48
  readOnlyLockOf,
49
49
  readsOverMcpAt,
50
50
  rootOf2 as rootOf
51
- } from "./chunk-5XTJUQZ5.js";
52
- import "./chunk-UFWCJUGA.js";
53
- import "./chunk-FVZST7ZH.js";
54
- import "./chunk-7FCPLSSM.js";
51
+ } from "./chunk-YG4OI3HJ.js";
52
+ import "./chunk-7LDC275M.js";
53
+ import "./chunk-2KVR7FF3.js";
54
+ import "./chunk-2F7D6YMB.js";
55
55
  import "./chunk-PQLBPYJR.js";
56
- import "./chunk-H5XCD6OG.js";
56
+ import "./chunk-ER6PJAPK.js";
57
57
  import {
58
58
  mcpHttpMarker
59
- } from "./chunk-OHFSAYZG.js";
60
- import "./chunk-YHSXNUFQ.js";
61
- import "./chunk-LO66SLGD.js";
62
- import "./chunk-EFA7FRFJ.js";
63
- import "./chunk-VNBQHV5H.js";
64
- import "./chunk-JBLZ5XQG.js";
65
- import "./chunk-7L26RKOS.js";
66
- import "./chunk-URC4ATBD.js";
67
- import "./chunk-7D7AKYQ2.js";
68
- import "./chunk-VNXCWZDW.js";
69
- import "./chunk-NHVOJHHD.js";
70
- import "./chunk-VMLGER4M.js";
71
- import "./chunk-6KDFUPBT.js";
72
- import "./chunk-SOCALLW5.js";
73
- import "./chunk-72CGQMAZ.js";
59
+ } from "./chunk-5C74F7XX.js";
60
+ import "./chunk-Q5EYTU3Q.js";
61
+ import "./chunk-UJEO3VWA.js";
62
+ import "./chunk-7GSE57K3.js";
63
+ import "./chunk-OGK7LMYT.js";
64
+ import "./chunk-F5SZVO3A.js";
65
+ import "./chunk-G53HRGTK.js";
66
+ import "./chunk-2A4BAMNF.js";
67
+ import "./chunk-KLLKDOO2.js";
68
+ import "./chunk-MXG4L7NH.js";
69
+ import "./chunk-NGZW2JPK.js";
70
+ import "./chunk-UHHARH5X.js";
71
+ import "./chunk-BP3TZ4EY.js";
72
+ import "./chunk-MQK2UNG4.js";
73
+ import "./chunk-M2YIJDBL.js";
74
+ import "./chunk-X5XIFNTI.js";
74
75
  import "./chunk-ILHTNOIV.js";
75
76
  import "./chunk-NUN6OGOV.js";
76
77
  import "./chunk-D72URWJE.js";
77
- import "./chunk-HANGU5HI.js";
78
- import "./chunk-V25TCQ3Z.js";
79
- import "./chunk-Y2O3DACO.js";
78
+ import "./chunk-E7BTD4P6.js";
79
+ import "./chunk-DIP3ENSY.js";
80
+ import "./chunk-3EAAEF5U.js";
80
81
  import {
81
82
  mcpErrorResult
82
- } from "./chunk-M7JREJFC.js";
83
+ } from "./chunk-IVDUR5Y4.js";
83
84
  import "./chunk-Y5E2WNWB.js";
84
85
  import {
85
86
  CliError
86
87
  } from "./chunk-CCHHEMPM.js";
87
- import "./chunk-VD5UJUNR.js";
88
+ import "./chunk-QWRBAQZ7.js";
88
89
  import {
89
90
  __name
90
91
  } from "./chunk-ZVVMGPBJ.js";
91
92
 
92
- // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/mcp/app-server.js
93
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/mcp/app-server.js
93
94
  var EXCLUDED = [["mcp"]];
94
95
  var createAppServer = /* @__PURE__ */ __name((command, context, options) => {
95
96
  const { app } = options;
@@ -204,7 +205,7 @@ var serveAppOverStdio = /* @__PURE__ */ __name(async (command, context, options)
204
205
  var serveAppOverHttp = /* @__PURE__ */ __name(async (command, context, options, http) => {
205
206
  const { app } = options;
206
207
  const { build } = createAppServer(command, context, options);
207
- const { serveOverHttp } = await import("./serve-3LBS7CPR.js");
208
+ const { serveOverHttp } = await import("./serve-HO3WME4G.js");
208
209
  const listening = await serveOverHttp(build, {
209
210
  ...http,
210
211
  appName: app.command,
@@ -18,12 +18,12 @@ import {
18
18
  jitCompatCheck,
19
19
  refineSqliteCodecs,
20
20
  sql
21
- } from "./chunk-VD5UJUNR.js";
21
+ } from "./chunk-QWRBAQZ7.js";
22
22
  import {
23
23
  __name
24
24
  } from "./chunk-ZVVMGPBJ.js";
25
25
 
26
- // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/bun.js
26
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/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,9 +3,9 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  loadVectorExtension,
5
5
  vectorExtension
6
- } from "./chunk-ZSS22YHM.js";
7
- import "./chunk-Y2O3DACO.js";
8
- import "./chunk-M7JREJFC.js";
6
+ } from "./chunk-XRJIQC6P.js";
7
+ import "./chunk-3EAAEF5U.js";
8
+ import "./chunk-IVDUR5Y4.js";
9
9
  import {
10
10
  importFrom
11
11
  } from "./chunk-Y5E2WNWB.js";
@@ -14,7 +14,7 @@ import {
14
14
  __name
15
15
  } from "./chunk-ZVVMGPBJ.js";
16
16
 
17
- // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/store/drivers/bun-sqlite.js
17
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/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 {
@@ -18,9 +18,9 @@ import {
18
18
  strictObject,
19
19
  string,
20
20
  unknown
21
- } from "./chunk-M7JREJFC.js";
21
+ } from "./chunk-IVDUR5Y4.js";
22
22
 
23
- // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/fields.js
23
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/fields.js
24
24
  var text = string();
25
25
  var id = pipe(string(), minLength(1));
26
26
  var time = isoTime;
@@ -44,7 +44,7 @@ var author = strictObject({
44
44
  name: nullable(text)
45
45
  });
46
46
 
47
- // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/knowledge-lists.js
47
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/knowledge-lists.js
48
48
  var organization = strictObject({
49
49
  id,
50
50
  ref: reference,
@@ -74,7 +74,7 @@ var reminder = strictObject({
74
74
  receipt: nullable(text)
75
75
  });
76
76
 
77
- // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/note.js
77
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/note.js
78
78
  var link = {
79
79
  target_text: nullable(text),
80
80
  kind: text,
@@ -10,13 +10,13 @@ import {
10
10
  import {
11
11
  loadConfigFile,
12
12
  saveConfigFile
13
- } from "./chunk-Y2O3DACO.js";
13
+ } from "./chunk-3EAAEF5U.js";
14
14
  import {
15
15
  number,
16
16
  object,
17
17
  optional,
18
18
  string
19
- } from "./chunk-M7JREJFC.js";
19
+ } from "./chunk-IVDUR5Y4.js";
20
20
  import {
21
21
  __name,
22
22
  __toESM
@@ -1,8 +1,12 @@
1
1
  import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ secretNamed,
5
+ withoutSecrets
6
+ } from "./chunk-BP3TZ4EY.js";
3
7
  import {
4
8
  isContentKey
5
- } from "./chunk-Y2O3DACO.js";
9
+ } from "./chunk-3EAAEF5U.js";
6
10
  import {
7
11
  errorCodes
8
12
  } from "./chunk-CCHHEMPM.js";
@@ -10,14 +14,14 @@ import {
10
14
  __name
11
15
  } from "./chunk-ZVVMGPBJ.js";
12
16
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/runs/run-context.js
17
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/runs/run-context.js
14
18
  import { AsyncLocalStorage } from "node:async_hooks";
15
19
  import { createHash } from "node:crypto";
16
20
 
17
- // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
21
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
18
22
  import { homedir } from "node:os";
19
23
 
20
- // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/errors/failures.js
24
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/errors/failures.js
21
25
  var isCliFailure = /* @__PURE__ */ __name((value) => value instanceof Error && value.name === "CliError" && errorCodes.includes(value.code), "isCliFailure");
22
26
  var isCommanderFailure = /* @__PURE__ */ __name((value) => {
23
27
  const { code, exitCode } = value ?? {};
@@ -25,7 +29,7 @@ var isCommanderFailure = /* @__PURE__ */ __name((value) => {
25
29
  }, "isCommanderFailure");
26
30
  var failureKey = /* @__PURE__ */ __name((error) => isCliFailure(error) ? error.code : error instanceof Error ? error.name : "error", "failureKey");
27
31
 
28
- // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/runs/events.js
32
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/runs/events.js
29
33
  var providerErrorKey = /* @__PURE__ */ __name((value) => typeof value === "string" && /^[A-Za-z][A-Za-z0-9._-]{0,63}$/.test(value) ? value : void 0, "providerErrorKey");
30
34
  var renderEvent = /* @__PURE__ */ __name((event) => {
31
35
  if (event.event === "warning") {
@@ -73,88 +77,7 @@ var MARK = { request: "\u2192", response: "\u2190", cache: "\u2022", warning: "!
73
77
  var age = /* @__PURE__ */ __name((ms) => ms < 1e3 ? `${ms}ms` : `${Math.round(ms / 1e3)}s`, "age");
74
78
  var size = /* @__PURE__ */ __name((bytes) => bytes < 1e3 ? `${bytes} B` : `${(bytes / 1e3).toFixed(1)} kB`, "size");
75
79
 
76
- // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/runs/secrets.js
77
- var SECRET_WORDS = /* @__PURE__ */ new Set([
78
- "authorization",
79
- "cookie",
80
- "credential",
81
- "credentials",
82
- "passphrase",
83
- "password",
84
- "passwd",
85
- "pwd",
86
- "pass",
87
- "passcode",
88
- "pin",
89
- "otp",
90
- "2fa",
91
- "secret",
92
- "token",
93
- "contrase\xF1a",
94
- "contrasena",
95
- "clave",
96
- "\u043F\u0430\u0440\u043E\u043B\u044C",
97
- "\u043F\u0438\u043D",
98
- "\u043A\u043E\u0434",
99
- ...["api", "auth", "service", "account", "db", "database", "priv", "private", "client"].map((word) => `${word}key`),
100
- ...["db", "database", "key"].map((word) => `${word}pass`)
101
- ]);
102
- var secretNamed = /* @__PURE__ */ __name((name) => {
103
- const words = name.replace(/([a-z0-9])([A-Z])/g, "$1 $2").split(/[\s_.-]+/).map((word) => word.toLowerCase());
104
- return words.some((word, at) => SECRET_WORDS.has(word) || SECRET_WORDS.has(word + (words[at + 1] ?? "")));
105
- }, "secretNamed");
106
- var START = "(?<![A-Za-z0-9_-])";
107
- var END = "(?![A-Za-z0-9_-])";
108
- var KNOWN_TOKENS = new RegExp(`${[
109
- "gh[pousr]_[A-Za-z0-9]{36,}",
110
- "github_pat_[A-Za-z0-9_]{22,}",
111
- "sk-[A-Za-z0-9_-]{20,}",
112
- "xox[abprs]-[A-Za-z0-9-]{10,}",
113
- "(?:AKIA|ASIA)[A-Z0-9]{16}",
114
- "AIza[A-Za-z0-9_-]{35}",
115
- "(?:sk|rk)_(?:live|test)_[A-Za-z0-9]{10,}",
116
- "npm_[A-Za-z0-9]{36}",
117
- "eyJ[A-Za-z0-9_-]{5,}\\.eyJ[A-Za-z0-9_-]{5,}\\.[A-Za-z0-9_-]*"
118
- ].map((pattern) => `${START}${pattern}${END}`).join("|")}|(?<!\\d)\\d{8,10}:[A-Za-z0-9_-]{35}${END}`, "g");
119
- var PRIVATE_KEY = /-----BEGIN[A-Z ]* PRIVATE KEY-----[\s\S]*?(?:-----END[A-Z ]* PRIVATE KEY-----|$)/g;
120
- var SCHEME = /(?<![A-Za-z])(Bearer|Basic)(\s+)(?![A-Z]?[a-z]+(?![A-Za-z0-9]))[A-Za-z0-9._~+/=-]{8,}/g;
121
- var NAMED_PAIR = /(?<![\p{L}\p{N}])([\p{L}\p{N}_.-]*(?:token|pass|pwd|pin|otp|2fa|secret|credential|cookie|authorization|key|contrase|clave|пароль|пин|код)[\p{L}\p{N}_.-]*)(["']?\s*(?:=>|[:=])\s*["']?|\s+(?![\p{L}]+(?![\p{L}\p{N}])))((?:Bearer\s+|Basic\s+)?)([^\s"'&,;]+)/giu;
122
- var looksRandom = /* @__PURE__ */ __name((run) => {
123
- if (run.length < 20)
124
- return false;
125
- const classes = [/[a-z]/, /[A-Z]/, /\d/, /[^A-Za-z0-9]/].filter((kind) => kind.test(run)).length;
126
- if (classes < 3)
127
- return false;
128
- let switches = 0;
129
- for (let at = 1; at < run.length; at++) {
130
- const [before, after] = [run[at - 1], run[at]];
131
- if (/[a-z]/.test(before) && /[A-Z]/.test(after) || /[A-Z]/.test(before) && /[a-z]/.test(after))
132
- switches += 1;
133
- }
134
- if (switches / run.length < 0.15)
135
- return false;
136
- const pieces = run.match(/[A-Z]?[a-z]+|[A-Z]+(?![a-z])|\d+/g) ?? [];
137
- if (pieces.join("").length / Math.max(pieces.length, 1) >= 2.75)
138
- return false;
139
- return entropy(run) >= 3.5;
140
- }, "looksRandom");
141
- var entropy = /* @__PURE__ */ __name((text) => {
142
- const counts = /* @__PURE__ */ new Map();
143
- for (const char of text)
144
- counts.set(char, (counts.get(char) ?? 0) + 1);
145
- let bits = 0;
146
- for (const count of counts.values())
147
- bits -= count / text.length * Math.log2(count / text.length);
148
- return bits;
149
- }, "entropy");
150
- var withoutSecrets = /* @__PURE__ */ __name((text, mark = "[redacted]") => text.replace(PRIVATE_KEY, mark).replace(KNOWN_TOKENS, mark).replace(SCHEME, `$1$2${mark}`).replace(NAMED_PAIR, (whole, name, separator, scheme) => secretNamed(name) ? `${name}${separator}${scheme}${mark}` : whole).replace(/[!-~]{20,}/g, (token) => (
151
- // A URL or a path is somebody's address, not a key; a credential in one is caught by the rules above.
152
- token.includes("://") || /^(?:\/|~\/|\.\.?\/)/.test(token) ? token : token.replace(RUN, (run) => looksRandom(run) ? mark : run.replace(HEX, (hex) => entropy(hex) >= 3 ? mark : hex))
153
- )), "withoutSecrets");
154
- var RUN = /(?<![A-Za-z0-9_+/-])[A-Za-z0-9_+/-]{20,}/g;
155
- var HEX = /(?<![A-Za-z0-9])(?=[0-9]*[a-f])[0-9a-f]{20,}(?![A-Za-z0-9])/g;
156
-
157
- // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
80
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
158
81
  var MESSAGE_AT_MOST = 500;
159
82
  var CAUSES_AT_MOST = 5;
160
83
  var FRAMES_AT_MOST = 15;
@@ -263,7 +186,7 @@ var redactText = /* @__PURE__ */ __name((text) => {
263
186
  return out.length > MESSAGE_AT_MOST ? `${out.slice(0, MESSAGE_AT_MOST)}\u2026` : out;
264
187
  }, "redactText");
265
188
 
266
- // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/runs/run-context.js
189
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/runs/run-context.js
267
190
  var REDACTED = "[redacted]";
268
191
  var keepsSuccess = /* @__PURE__ */ __name(({ record, fromFlag, env, caller, persistent = false }) => {
269
192
  if (!record)
@@ -18,7 +18,7 @@ import {
18
18
  string,
19
19
  text,
20
20
  unknown
21
- } from "./chunk-M7JREJFC.js";
21
+ } from "./chunk-IVDUR5Y4.js";
22
22
  import {
23
23
  CliError,
24
24
  visibleControls
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  QUERY_REASONS
5
- } from "./chunk-VMLGER4M.js";
5
+ } from "./chunk-UHHARH5X.js";
6
6
  import {
7
7
  defineReasons
8
- } from "./chunk-M7JREJFC.js";
8
+ } from "./chunk-IVDUR5Y4.js";
9
9
  import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/errors/reasons.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/errors/reasons.js
14
14
  var validation = /* @__PURE__ */ __name((reason, message) => [reason, "validation_error", message], "validation");
15
15
  var QUERY = [
16
16
  ["query.aborted", "the search was stopped before it finished"],
@@ -54,7 +54,10 @@ var OTHERS = [
54
54
  validation("meeting-findings.stale", "meeting findings changed since they were read; stage a new batch"),
55
55
  validation("meeting-findings.dedicated-review", "review meeting findings through the dedicated findings command"),
56
56
  validation("evidence-findings.stale", "evidence findings changed since they were read; stage a new batch"),
57
+ validation("mail-findings.stale", "mail findings cite mail that changed since it was read; stage a new batch"),
58
+ validation("mail-findings.partial", "a cited email is not stored whole yet; cite it once it is"),
57
59
  validation("evidence-findings.dedicated-review", "review evidence findings through the dedicated findings command"),
60
+ validation("mail-findings.dedicated-review", "review mail findings through the dedicated findings command"),
58
61
  validation("document.changed", "the document changed while it was read; nothing was saved"),
59
62
  ["document.not-imported", "not_found", "the document is not imported in this source account"],
60
63
  ["extraction.invalid-proposals", "invalid_response", "the model's memory proposals could not be used"],
@@ -115,6 +118,7 @@ var OTHERS = [
115
118
  ["meetings.index-pending", "not_found", "some stored meetings are not indexed by person yet"],
116
119
  ["profile.locked", "permission_error", "a profile lock pins this process to its own account"],
117
120
  ["busy.offline", "permission_error", "calendars busy asks the provider; --offline was given"],
121
+ ["busy.unanswered", "provider_error", "the provider gave no busy times for a calendar or person that was asked"],
118
122
  validation("busy.no-calendars", "no calendar syncs and no person was named, so there is nobody to ask"),
119
123
  ["search.offline", "permission_error", "search --backend server asks the provider; --offline was given"],
120
124
  validation("search.no-calendars", "no calendar of this profile syncs yet, so the provider has nothing to search"),
@@ -148,8 +152,33 @@ var OTHERS = [
148
152
  validation("input.required", "the command needs an answer and cannot ask for one"),
149
153
  validation("input.too-large", "the input is over its size limit"),
150
154
  ["meeting-project.stale", "configuration_error", "the meeting's project changed meanwhile"],
155
+ validation("fact.payment-retired", "a payment is a payments row in store.finance, not a fact"),
156
+ validation("finance.allocate", "the invoice or payment cannot take an allocation in its state"),
157
+ validation("finance.currency", "the payment and the invoice are in different currencies; nothing is converted"),
158
+ validation("finance.field", "a field of the invoice or payment is not valid"),
159
+ validation("finance.line-amount", "the line's amount is not its quantity times its unit price"),
160
+ validation("finance.lines", "the invoice's lines are not valid"),
161
+ validation("finance.over-invoice", "the allocation would settle more than the invoice's total"),
162
+ validation("finance.over-payment", "the allocation would use more than the payment's amount"),
163
+ ["finance.owner-only", "permission_error", "only the owner does this with money"],
164
+ validation("finance.party", "a party is a person: or organization: reference"),
165
+ validation("finance.ref", "the reference names no invoice or payment"),
166
+ validation("finance.status", "the invoice's status does not allow this"),
167
+ validation("finance.total", "the invoice's total is not the sum of its lines"),
168
+ validation("record.entity", "the invoice or payment the record stands for was refused"),
169
+ ["record.map-owner-only", "permission_error", "only the owner says which entity a source record is"],
170
+ validation("record.map-type", "a record maps only to an entity of its own type"),
171
+ validation("record.mapped", "the record already stands for another entity"),
172
+ validation("record.not-found", "the store holds no such record to delete"),
173
+ validation("record.invalid", "a field of the record is not the kind the entity needs"),
174
+ validation("record.reference-not-found", "a reference in the record's fields is not in the store"),
175
+ validation("record.relation-ambiguous", "the record names more than one target for a role that takes one"),
176
+ validation("record.stale-revision", "the store holds a newer revision of the record"),
151
177
  validation("memory.evidence-required", "a memory needs its evidence"),
152
178
  validation("memory.scope-required", "a memory needs its scope"),
179
+ validation("money.amount", "the amount is not a decimal string in the currency's scale"),
180
+ validation("money.currency", "the currency is not one the store keeps money in"),
181
+ validation("money.quantity", "the quantity is not a decimal above 0"),
153
182
  ["model.not-downloaded", "not_found", "the model is not downloaded on this machine"],
154
183
  ["person.no-owner", "not_found", "no person is marked as the owner in the store"],
155
184
  ["transcription.no-key", "authentication_error", "no OpenAI key is set for transcription"],
@@ -200,8 +229,7 @@ var OTHERS = [
200
229
  ["task.stale", "configuration_error", "the task changed since it was read; read it again"],
201
230
  validation("task.column", "the task beside which it moves is in another column than the status asked for"),
202
231
  validation("task.dependency-cycle", "the task would depend on itself"),
203
- validation("task.has-subtasks", "the task has subtasks; move or detach them before it moves to another project"),
204
- validation("task.is-subtask", "a subtask moves to another project only when it is detached from its parent in the same write"),
232
+ validation("task.is-subtask", "a subtask moves to another project alone only when it is detached from its parent in the same write"),
205
233
  validation("task.duplicate-candidates", "open tasks may be the same job: attach to one, or add it as new"),
206
234
  validation("task.already-read", "the message was already read for tasks: a read again only updates and closes tasks unless --open-new"),
207
235
  validation("task.certainty-required", "an agent closes a task with its certainty, 0 to 1"),
@@ -277,7 +305,6 @@ var DETAILS = [
277
305
  "operation_ids",
278
306
  "text_limit",
279
307
  "store_refused_in",
280
- "subtasks",
281
308
  "partial_output",
282
309
  "parent",
283
310
  "path",
@@ -5,15 +5,15 @@ import {
5
5
  readLock,
6
6
  releaseLock,
7
7
  takeLock
8
- } from "./chunk-YHSXNUFQ.js";
8
+ } from "./chunk-Q5EYTU3Q.js";
9
9
  import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
14
14
  import { existsSync as existsSync2, readFileSync as readFileSync2 } from "node:fs";
15
15
 
16
- // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/mcp/http/activity.js
16
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/mcp/http/activity.js
17
17
  import { randomBytes } from "node:crypto";
18
18
  import { chmodSync, existsSync, mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
19
19
  import { dirname } from "node:path";
@@ -86,7 +86,7 @@ var activityRecorder = /* @__PURE__ */ __name((path, now = Date.now) => {
86
86
  };
87
87
  }, "activityRecorder");
88
88
 
89
- // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
89
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
90
90
  var ACCESS_SECONDS = 60 * 60;
91
91
  var REFRESH_SECONDS = 30 * 24 * 60 * 60;
92
92
  var readStored = /* @__PURE__ */ __name((path) => existsSync2(path) ? JSON.parse(readFileSync2(path, "utf8")) : { clients: [], tokens: [] }, "readStored");