@wirecat/mail-cli 0.35.0 → 0.36.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 (140) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/bin/mail.js +2 -2
  3. package/dist/bundle/agent-MW7YWUIY.js +39 -0
  4. package/dist/bundle/{all-profiles-6BDSMVOO.js → all-profiles-RS6OV3YO.js} +11 -11
  5. package/dist/bundle/{anthropic-C3XUXUCJ.js → anthropic-PPQ7DTXN.js} +5 -5
  6. package/dist/bundle/{app-server-GUHDK4OR.js → app-server-EBFBMFQC.js} +67 -67
  7. package/dist/bundle/{bun-FN7AM4AG.js → bun-J7HAT7MW.js} +2 -2
  8. package/dist/bundle/{bun-sqlite-56IVBF22.js → bun-sqlite-PCSNAXIQ.js} +6 -6
  9. package/dist/bundle/{chunk-DREU6TN6.js → chunk-2RV4V55B.js} +18 -18
  10. package/dist/bundle/{chunk-CMGZXBJW.js → chunk-2UNZ3L2H.js} +6 -6
  11. package/dist/bundle/{chunk-5WYBI35N.js → chunk-2VEFNFYZ.js} +3 -3
  12. package/dist/bundle/{chunk-XQNKAM26.js → chunk-3BYKGMRM.js} +6 -6
  13. package/dist/bundle/{chunk-ZMYRPMAJ.js → chunk-3NOXZZJV.js} +1 -1
  14. package/dist/bundle/{chunk-UWDRU3R6.js → chunk-3ZKNXKM7.js} +2 -2
  15. package/dist/bundle/{chunk-GG634DR3.js → chunk-42XY6D5C.js} +5 -5
  16. package/dist/bundle/{chunk-4IASS7NQ.js → chunk-437UHSIO.js} +69 -5
  17. package/dist/bundle/{chunk-6Q5THDNW.js → chunk-4WSTWZUB.js} +2 -2
  18. package/dist/bundle/{chunk-46SBNO67.js → chunk-5G4MDFZ2.js} +7 -7
  19. package/dist/bundle/{chunk-TP766H4O.js → chunk-5JEKBYIH.js} +14 -14
  20. package/dist/bundle/{chunk-6VARUB3J.js → chunk-5TIWO6AR.js} +12 -12
  21. package/dist/bundle/{chunk-DFHUJTP5.js → chunk-5VPLQS4S.js} +2 -2
  22. package/dist/bundle/{chunk-G662S2M4.js → chunk-645FQC4G.js} +16 -16
  23. package/dist/bundle/{chunk-OTP2HJ67.js → chunk-6FZPFNEU.js} +9 -9
  24. package/dist/bundle/{chunk-YTI533XF.js → chunk-6LJIENVT.js} +2 -2
  25. package/dist/bundle/{chunk-W7ICCFG5.js → chunk-6NDPOY4N.js} +1 -1
  26. package/dist/bundle/{chunk-3ACF6TIV.js → chunk-6PKMUKUF.js} +1 -1
  27. package/dist/bundle/{chunk-DZHEVVXA.js → chunk-6TT62IUW.js} +25 -25
  28. package/dist/bundle/{chunk-EU4J6GCJ.js → chunk-6UYIWQLU.js} +4 -4
  29. package/dist/bundle/{chunk-W4JYGMTU.js → chunk-6VMJLOYO.js} +12 -12
  30. package/dist/bundle/{chunk-CDGVYQXG.js → chunk-774VG5WZ.js} +1 -1
  31. package/dist/bundle/{chunk-MCJYJIH5.js → chunk-AVR4FPYG.js} +8 -8
  32. package/dist/bundle/{chunk-WDEVKKAD.js → chunk-BBQERXQX.js} +3 -3
  33. package/dist/bundle/{chunk-YA44BG3N.js → chunk-C3JSQ7UJ.js} +23 -10
  34. package/dist/bundle/{chunk-6B4WZVLN.js → chunk-CJHO6B3M.js} +26 -26
  35. package/dist/bundle/{chunk-ODQCRZX5.js → chunk-CJMZQ2MZ.js} +8 -8
  36. package/dist/bundle/{chunk-2UNQTKRH.js → chunk-CMOO4INK.js} +1 -1
  37. package/dist/bundle/{chunk-7PXAUMK5.js → chunk-DVJPEZGV.js} +13 -13
  38. package/dist/bundle/{chunk-7JVKQ6NM.js → chunk-EGR3YUWD.js} +4 -4
  39. package/dist/bundle/{chunk-RQJGX7F7.js → chunk-GBZIWCEP.js} +3 -3
  40. package/dist/bundle/{chunk-635AFLZO.js → chunk-GCTHVCJU.js} +4 -4
  41. package/dist/bundle/{chunk-DD2P67NP.js → chunk-GEU3WR75.js} +3 -3
  42. package/dist/bundle/{chunk-ILEKGH44.js → chunk-GI6DNX7Q.js} +35 -35
  43. package/dist/bundle/{chunk-Q5U2HIBJ.js → chunk-HH34WRQE.js} +7 -7
  44. package/dist/bundle/{chunk-AV2ZJ4WX.js → chunk-HPSESLOZ.js} +1 -1
  45. package/dist/bundle/{chunk-EHAXFDDP.js → chunk-IBOWSQ7X.js} +3 -4
  46. package/dist/bundle/{chunk-RJNKM3CQ.js → chunk-JCILSTFK.js} +1 -1
  47. package/dist/bundle/{chunk-4U5ODZO7.js → chunk-KLPFPNZP.js} +11 -11
  48. package/dist/bundle/{chunk-PQDQCCGG.js → chunk-KP7JHJVP.js} +17 -17
  49. package/dist/bundle/{chunk-3EV2B7KZ.js → chunk-KTVQIKU5.js} +13 -13
  50. package/dist/bundle/{chunk-YCIWSKOH.js → chunk-KVFBSOCV.js} +9 -9
  51. package/dist/bundle/{chunk-7YMLEWTX.js → chunk-L4QLZDBZ.js} +6 -6
  52. package/dist/bundle/{chunk-2B67TUIF.js → chunk-LQQIYBHN.js} +64 -60
  53. package/dist/bundle/{chunk-J5ULUTWE.js → chunk-MQ6DQRRI.js} +4 -4
  54. package/dist/bundle/{chunk-HKWZG7CZ.js → chunk-MRWV5VNQ.js} +6 -6
  55. package/dist/bundle/{chunk-EX4Z7CCO.js → chunk-MT3LYU4T.js} +379 -379
  56. package/dist/bundle/{chunk-TP2BCK2Z.js → chunk-NCY55XIT.js} +8 -8
  57. package/dist/bundle/{chunk-5XQI7WCJ.js → chunk-NJZR3OFK.js} +1 -1
  58. package/dist/bundle/{chunk-YRAJFTFU.js → chunk-NSH2UHJR.js} +8 -8
  59. package/dist/bundle/{chunk-3KAJCOJP.js → chunk-NTUP5RCP.js} +8 -1
  60. package/dist/bundle/{chunk-OO4OKMNB.js → chunk-NYR7PIAG.js} +3 -3
  61. package/dist/bundle/{chunk-TARNPINT.js → chunk-NYYMMIVW.js} +3 -3
  62. package/dist/bundle/{chunk-YQTRKNZQ.js → chunk-OEL4DQTT.js} +4 -4
  63. package/dist/bundle/{chunk-E6HSSKRX.js → chunk-PF7ZNIVP.js} +2 -2
  64. package/dist/bundle/{chunk-HM6AMYHR.js → chunk-PMGAU6AP.js} +2 -2
  65. package/dist/bundle/{chunk-UHGKN5US.js → chunk-PMSZBUC7.js} +8 -8
  66. package/dist/bundle/{chunk-7KMI47AP.js → chunk-PPIMXOBT.js} +6 -6
  67. package/dist/bundle/{chunk-WZKM5I7B.js → chunk-Q6TPXXOS.js} +16 -16
  68. package/dist/bundle/{chunk-CFQQTDSA.js → chunk-QDNYJOWJ.js} +1 -1
  69. package/dist/bundle/{chunk-AISQNKT7.js → chunk-QI2XGTFH.js} +8 -8
  70. package/dist/bundle/{chunk-OOQFBRNR.js → chunk-REWV37HQ.js} +6 -6
  71. package/dist/bundle/{chunk-HF5QWKK2.js → chunk-RJUVWJTA.js} +7 -7
  72. package/dist/bundle/{chunk-XKKYRMGG.js → chunk-RMWS7IQ4.js} +4 -4
  73. package/dist/bundle/{chunk-QYCMB7JY.js → chunk-ROK7Z5LQ.js} +162 -157
  74. package/dist/bundle/{chunk-QFMKCU42.js → chunk-SCJVKWMV.js} +265 -264
  75. package/dist/bundle/{chunk-3WAZKCDF.js → chunk-SJNFPBPF.js} +2 -2
  76. package/dist/bundle/{chunk-RBV2AM52.js → chunk-TV634B6T.js} +1 -1
  77. package/dist/bundle/{chunk-L4RCWRWS.js → chunk-U3BO342P.js} +1 -1
  78. package/dist/bundle/{chunk-V4O47JV6.js → chunk-U67XMAEE.js} +3 -3
  79. package/dist/bundle/{chunk-HJDIMVFW.js → chunk-V5I7QP4T.js} +2 -2
  80. package/dist/bundle/{chunk-ZYEU35MB.js → chunk-VIDPFLFM.js} +2 -2
  81. package/dist/bundle/{chunk-HVXOA4FO.js → chunk-VIJV474N.js} +1 -1
  82. package/dist/bundle/{chunk-AXKIXVQA.js → chunk-WNQECDIP.js} +61 -61
  83. package/dist/bundle/{chunk-RQHWSNX4.js → chunk-WPPPO427.js} +4 -4
  84. package/dist/bundle/{chunk-7FXZKQAC.js → chunk-WZFGZBGD.js} +19 -19
  85. package/dist/bundle/{chunk-ZX7HZDD6.js → chunk-XRVZMM5B.js} +46 -32
  86. package/dist/bundle/{chunk-NEDS4ORI.js → chunk-YPB5BEAD.js} +2 -2
  87. package/dist/bundle/{chunk-I3QZCQJT.js → chunk-ZRSLG3B3.js} +6 -6
  88. package/dist/bundle/{chunk-GU3PYIV2.js → chunk-ZV57PIPE.js} +2 -2
  89. package/dist/bundle/command-contract-WFTIRPL5.js +39 -0
  90. package/dist/bundle/{command-server-entry-TPJ47FYS.js → command-server-entry-73RJELAV.js} +28 -28
  91. package/dist/bundle/{decode-XHUASXQK.js → decode-7BUWBDPT.js} +5 -5
  92. package/dist/bundle/{dispatch-MQZHGGVP.js → dispatch-IBOMVWZA.js} +8 -8
  93. package/dist/bundle/{dist-BAE4IQ52.js → dist-MULVCVSR.js} +20 -18
  94. package/dist/bundle/{echarts-U7Z2PKIG.js → echarts-VLWFC322.js} +2 -2
  95. package/dist/bundle/{embed-W7GPB6EI.js → embed-W3VH4HPY.js} +6 -6
  96. package/dist/bundle/{embedder-T72XLFQ5.js → embedder-I7ERQZJV.js} +9 -9
  97. package/dist/bundle/{failure-MP6VKL5Y.js → failure-QMAPSQ7X.js} +2 -2
  98. package/dist/bundle/{first-run-C44TJXRI.js → first-run-LCVER6QN.js} +12 -12
  99. package/dist/bundle/first-screen-DCTHI4NQ.js +39 -0
  100. package/dist/bundle/{instructions-WGMWQNPP.js → instructions-BNCVLSYQ.js} +1 -1
  101. package/dist/bundle/mail.js +12 -12
  102. package/dist/bundle/{mcp-YGOAUNC3.js → mcp-Z2KZNCXB.js} +2 -2
  103. package/dist/bundle/meeting-combined-ITU7SZ7E.js +24 -0
  104. package/dist/bundle/{meeting-model-QVHLD4WI.js → meeting-model-BWLSTNXA.js} +11 -11
  105. package/dist/bundle/{meeting-semantic-QKQHUHXX.js → meeting-semantic-ZIEHXN2R.js} +6 -6
  106. package/dist/bundle/{node-WANDMJJQ.js → node-RYFTRSG4.js} +2 -2
  107. package/dist/bundle/{node-sqlite-NM5XA4DR.js → node-sqlite-XCHVNTGQ.js} +7 -7
  108. package/dist/bundle/{oauth-6E63ELEE.js → oauth-FNUJSKKJ.js} +7 -7
  109. package/dist/bundle/{open-5542RTLE.js → open-WVWSJ3WI.js} +5 -5
  110. package/dist/bundle/{openai-NOYNPFB5.js → openai-QOUTYYTF.js} +15 -15
  111. package/dist/bundle/{process-7AEXXSBX.js → process-W5KPID53.js} +1 -1
  112. package/dist/bundle/{program-VMA5CGNR.js → program-L5UANM3I.js} +662 -505
  113. package/dist/bundle/{prompt-WYYO4AJL.js → prompt-JSBAPNJE.js} +5 -5
  114. package/dist/bundle/{recognize-UGCCOMAS.js → recognize-FDX4SJ6Q.js} +4 -4
  115. package/dist/bundle/{remote-VZS6BNQB.js → remote-MYOXOQHM.js} +9 -9
  116. package/dist/bundle/{rerank-O46D5GJ2.js → rerank-NY5MSZCR.js} +7 -7
  117. package/dist/bundle/{serve-QAAF2LCW.js → serve-URI6NZA3.js} +9 -9
  118. package/dist/bundle/{server-Q3PUZLLX.js → server-HQ25RHQM.js} +59 -59
  119. package/dist/bundle/server-UVYFU2JN.js +84 -0
  120. package/dist/bundle/{sqlite-runtime-EQBCDO2U.js → sqlite-runtime-6UUPSSKG.js} +6 -6
  121. package/dist/bundle/{state-XIOHYXCR.js → state-NDDVFPCI.js} +6 -6
  122. package/dist/bundle/{store-VJBL5XKR.js → store-2RDOICVN.js} +24 -24
  123. package/dist/bundle/{store-OXJZZUR7.js → store-PKYWPKKR.js} +22 -22
  124. package/dist/bundle/store-maintenance-command-Y5XTO47X.js +71 -0
  125. package/dist/bundle/surface-3XKM3MQ2.js +70 -0
  126. package/dist/commands/session-start.js +1 -1
  127. package/dist/commands/session-start.js.map +1 -1
  128. package/dist/oauth.d.ts.map +1 -1
  129. package/dist/oauth.js +2 -1
  130. package/dist/oauth.js.map +1 -1
  131. package/dist/version.d.ts +1 -1
  132. package/dist/version.js +1 -1
  133. package/package.json +3 -3
  134. package/dist/bundle/agent-KWLCQCSC.js +0 -39
  135. package/dist/bundle/command-contract-D5UXWHMS.js +0 -39
  136. package/dist/bundle/first-screen-IESI7DAU.js +0 -39
  137. package/dist/bundle/meeting-combined-XGZBSWIQ.js +0 -24
  138. package/dist/bundle/server-456MYK3X.js +0 -84
  139. package/dist/bundle/store-maintenance-command-D7XYIX52.js +0 -71
  140. package/dist/bundle/surface-N7LK7PKN.js +0 -70
@@ -2,11 +2,11 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  throughWrapper
5
- } from "./chunk-3EV2B7KZ.js";
5
+ } from "./chunk-KTVQIKU5.js";
6
6
  import {
7
7
  environmentOf,
8
8
  readOnlyLockOf
9
- } from "./chunk-QYCMB7JY.js";
9
+ } from "./chunk-ROK7Z5LQ.js";
10
10
  import {
11
11
  array,
12
12
  boolean,
@@ -16,15 +16,15 @@ import {
16
16
  safeParse,
17
17
  strictObject,
18
18
  string
19
- } from "./chunk-YA44BG3N.js";
19
+ } from "./chunk-C3JSQ7UJ.js";
20
20
  import {
21
21
  CliError
22
- } from "./chunk-HM6AMYHR.js";
22
+ } from "./chunk-PMGAU6AP.js";
23
23
  import {
24
24
  __name
25
25
  } from "./chunk-ZVVMGPBJ.js";
26
26
 
27
- // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/background/relay.js
27
+ // node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/background/relay.js
28
28
  import { createHash } from "node:crypto";
29
29
  import { chmodSync, lstatSync, mkdirSync, rmSync } from "node:fs";
30
30
  import { createConnection, createServer } from "node:net";
@@ -245,7 +245,7 @@ var relayCommand = /* @__PURE__ */ __name((path, request, options) => new Promis
245
245
  }, () => finish({ error: stopped() }));
246
246
  }), "relayCommand");
247
247
 
248
- // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-relay.js
248
+ // node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-relay.js
249
249
  var lentConnection = /* @__PURE__ */ __name((connection, watchers) => throughWrapper(connection, {
250
250
  close: /* @__PURE__ */ __name(async () => {
251
251
  }, "close"),
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/background/processes.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/background/processes.js
8
8
  import { execFileSync } from "node:child_process";
9
9
  import { readdirSync, readFileSync, readlinkSync } from "node:fs";
10
10
  var alive = /* @__PURE__ */ __name((pid) => {
@@ -3,12 +3,12 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  CliError,
5
5
  errorCodes
6
- } from "./chunk-HM6AMYHR.js";
6
+ } from "./chunk-PMGAU6AP.js";
7
7
  import {
8
8
  __name
9
9
  } from "./chunk-ZVVMGPBJ.js";
10
10
 
11
- // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/errors/failures.js
11
+ // node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/errors/failures.js
12
12
  var isCliFailure = /* @__PURE__ */ __name((value) => value instanceof Error && value.name === "CliError" && errorCodes.includes(value.code), "isCliFailure");
13
13
  var isCommanderFailure = /* @__PURE__ */ __name((value) => {
14
14
  const { code, exitCode } = value ?? {};
@@ -6,21 +6,21 @@ import {
6
6
  answerSchema,
7
7
  describeOptions,
8
8
  metaOf
9
- } from "./chunk-QYCMB7JY.js";
9
+ } from "./chunk-ROK7Z5LQ.js";
10
10
  import {
11
11
  keyForCommand
12
- } from "./chunk-HF5QWKK2.js";
12
+ } from "./chunk-RJUVWJTA.js";
13
13
  import {
14
14
  jsonSchemaOf
15
- } from "./chunk-YA44BG3N.js";
15
+ } from "./chunk-C3JSQ7UJ.js";
16
16
  import {
17
17
  CliError
18
- } from "./chunk-HM6AMYHR.js";
18
+ } from "./chunk-PMGAU6AP.js";
19
19
  import {
20
20
  __name
21
21
  } from "./chunk-ZVVMGPBJ.js";
22
22
 
23
- // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/cli/command-contract.js
23
+ // node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/cli/command-contract.js
24
24
  var SCHEMA_DIALECT = "https://json-schema.org/draft/2020-12/schema";
25
25
  var outputOf = /* @__PURE__ */ __name((command) => {
26
26
  const entity = answerEntitySchema(command);
@@ -2,15 +2,61 @@ 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-AXKIXVQA.js";
5
+ } from "./chunk-WNQECDIP.js";
6
6
  import {
7
- defineReasons
8
- } from "./chunk-YA44BG3N.js";
7
+ readSharedSection,
8
+ sharedConfigPath,
9
+ writeSharedSection
10
+ } from "./chunk-HH34WRQE.js";
11
+ import {
12
+ storePath
13
+ } from "./chunk-VIDPFLFM.js";
14
+ import {
15
+ defineReasons,
16
+ isoTimestamp,
17
+ picklist,
18
+ pipe,
19
+ safeParse,
20
+ strictObject,
21
+ string
22
+ } from "./chunk-C3JSQ7UJ.js";
23
+ import {
24
+ CliError
25
+ } from "./chunk-PMGAU6AP.js";
9
26
  import {
10
27
  __name
11
28
  } from "./chunk-ZVVMGPBJ.js";
12
29
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/errors/reasons.js
30
+ // node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/models/chat-sending.js
31
+ var CHAT_SENDING_MODES = ["allowed", "ask", "denied"];
32
+ var SECTION = "chat_sending";
33
+ var Setting = strictObject({
34
+ mode: picklist(CHAT_SENDING_MODES),
35
+ at: pipe(string(), isoTimestamp())
36
+ });
37
+ var CHAT_SENDING_ASK_DETAILS = ["emails", "threads", "tokens", "host", "model", "estimated_cost_usd"];
38
+ var pathOf = /* @__PURE__ */ __name((env) => sharedConfigPath(storePath(env), env), "pathOf");
39
+ var readChatSending = /* @__PURE__ */ __name((env) => {
40
+ const section = readSharedSection(pathOf(env), SECTION);
41
+ if (section === void 0 || section === null)
42
+ return void 0;
43
+ const checked = safeParse(Setting, section);
44
+ return checked.success ? checked.output : { mode: "denied", at: (/* @__PURE__ */ new Date(0)).toISOString() };
45
+ }, "readChatSending");
46
+ var chatSendingMode = /* @__PURE__ */ __name((env) => readChatSending(env)?.mode ?? "ask", "chatSendingMode");
47
+ var writeChatSending = /* @__PURE__ */ __name((env, mode) => writeSharedSection(pathOf(env), SECTION, mode === "ask" ? void 0 : { mode, at: (/* @__PURE__ */ new Date()).toISOString() }), "writeChatSending");
48
+ var STRICTNESS = { allowed: 0, ask: 1, denied: 2 };
49
+ var loosens = /* @__PURE__ */ __name((from, to) => STRICTNESS[to] < STRICTNESS[from], "loosens");
50
+ var chatSendingCommand = /* @__PURE__ */ __name((command, mode) => `${command} models chats set ${mode}`, "chatSendingCommand");
51
+ var chatSendingAllowed = /* @__PURE__ */ __name((env, host, command) => {
52
+ const mode = chatSendingMode(env);
53
+ if (mode === "denied")
54
+ throw new CliError("permission_error", `sending chat text to a model outside this computer is denied by the setting \`models chats\`; nothing was sent to ${host}, and --yes does not change that. Use a model on this computer, or ask the owner to run \`${chatSendingCommand(command, "ask")}\` (or \`allowed\`)`, { reason: "chat-sending.denied" });
55
+ return mode === "allowed";
56
+ }, "chatSendingAllowed");
57
+ var chatSendingAskRefusal = /* @__PURE__ */ __name((what, command, details = {}) => new CliError("confirmation_required", `${what} \u2014 add --yes to send them (an agent may pass yes), or ask the owner to run \`${chatSendingCommand(command, "allowed")}\` so no yes is needed`, { ...details, reason: "chat-sending.ask" }), "chatSendingAskRefusal");
58
+
59
+ // node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/errors/reasons.js
14
60
  var validation = /* @__PURE__ */ __name((reason, message) => [reason, "validation_error", message], "validation");
15
61
  var QUERY = [
16
62
  ["query.aborted", "the search was stopped before it finished"],
@@ -233,6 +279,13 @@ var OTHERS = [
233
279
  "confirmation_required",
234
280
  "the sync would delete more files than the guard allows; check them with --dry-run and allow them explicitly"
235
281
  ],
282
+ [
283
+ "mirror.too-many-replacements",
284
+ "confirmation_required",
285
+ "the sync would replace more files than the guard allows; check them with --dry-run and allow them explicitly"
286
+ ],
287
+ validation("mirror.no-space", "the sync needs more free space than the local drive has"),
288
+ validation("mirror.bad-exclusion", "the exclusion is not a path pattern inside the mirror"),
236
289
  [
237
290
  "mirror.version-not-kept",
238
291
  "provider_error",
@@ -723,6 +776,10 @@ var INPUT_FIELD_REASONS = defineReasons([
723
776
  details: ["fields"]
724
777
  }
725
778
  ]);
779
+ var DETAILED = {
780
+ "vocabulary.consolidation-over-budget": ["table"],
781
+ "chat-sending.ask": CHAT_SENDING_ASK_DETAILS
782
+ };
726
783
  var REASONS = defineReasons([
727
784
  ...QUERY_REASONS,
728
785
  ...INPUT_FIELD_REASONS,
@@ -730,7 +787,7 @@ var REASONS = defineReasons([
730
787
  reason,
731
788
  code,
732
789
  message,
733
- details: reason === "vocabulary.consolidation-over-budget" ? ["table"] : []
790
+ details: DETAILED[reason] ?? []
734
791
  }))
735
792
  ]);
736
793
  var DETAILS = [
@@ -825,6 +882,13 @@ var failureContext = /* @__PURE__ */ __name((errors) => {
825
882
  }, "failureContext");
826
883
 
827
884
  export {
885
+ CHAT_SENDING_MODES,
886
+ readChatSending,
887
+ chatSendingMode,
888
+ writeChatSending,
889
+ loosens,
890
+ chatSendingAllowed,
891
+ chatSendingAskRefusal,
828
892
  INPUT_FIELD_REASONS,
829
893
  REASONS,
830
894
  DETAILS,
@@ -8,12 +8,12 @@ import {
8
8
  ACCESS_SECONDS,
9
9
  REFRESH_SECONDS,
10
10
  readStored
11
- } from "./chunk-YQTRKNZQ.js";
11
+ } from "./chunk-OEL4DQTT.js";
12
12
  import {
13
13
  __name
14
14
  } from "./chunk-ZVVMGPBJ.js";
15
15
 
16
- // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/mcp/http/oauth.js
16
+ // node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/mcp/http/oauth.js
17
17
  import { createHash, randomBytes, randomInt, timingSafeEqual } from "node:crypto";
18
18
  import { chmodSync, mkdirSync, renameSync, rmSync, writeFileSync } from "node:fs";
19
19
  import { dirname } from "node:path";
@@ -5,11 +5,11 @@ import {
5
5
  } from "./chunk-HTQTIKWP.js";
6
6
  import {
7
7
  WIRECAT_TOOLS
8
- } from "./chunk-3KAJCOJP.js";
8
+ } from "./chunk-NTUP5RCP.js";
9
9
  import {
10
10
  commandPathOf,
11
11
  outputOf
12
- } from "./chunk-GG634DR3.js";
12
+ } from "./chunk-42XY6D5C.js";
13
13
  import {
14
14
  Command,
15
15
  Help,
@@ -20,18 +20,18 @@ import {
20
20
  environmentOf,
21
21
  metaOf,
22
22
  takesProfile
23
- } from "./chunk-QYCMB7JY.js";
23
+ } from "./chunk-ROK7Z5LQ.js";
24
24
  import {
25
25
  writes
26
- } from "./chunk-YA44BG3N.js";
26
+ } from "./chunk-C3JSQ7UJ.js";
27
27
  import {
28
28
  CliError
29
- } from "./chunk-HM6AMYHR.js";
29
+ } from "./chunk-PMGAU6AP.js";
30
30
  import {
31
31
  __name
32
32
  } from "./chunk-ZVVMGPBJ.js";
33
33
 
34
- // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/cli/help/command-help.js
34
+ // node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/cli/help/command-help.js
35
35
  var ARGUMENT_KINDS = {
36
36
  chat: "chat",
37
37
  chats: "chat",
@@ -224,7 +224,7 @@ var installCommandHelp = /* @__PURE__ */ __name((program, { profile = true } = {
224
224
  command.addHelpText("after", () => commandHelpText(command));
225
225
  }, "installCommandHelp");
226
226
 
227
- // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/cli/help/first-screen.js
227
+ // node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/cli/help/first-screen.js
228
228
  var WIDTH = 100;
229
229
  var widest = /* @__PURE__ */ __name((texts) => texts.reduce((most, text) => Math.max(most, text.length), 0), "widest");
230
230
  var block = /* @__PURE__ */ __name((title, rows, column) => rows.length === 0 ? [] : ["", `${title}:`, ...rows.map(([left, right]) => ` ${left.padEnd(column)}${right}`)], "block");
@@ -2,34 +2,34 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  validateFormattedText
5
- } from "./chunk-YCIWSKOH.js";
5
+ } from "./chunk-KVFBSOCV.js";
6
6
  import {
7
7
  inputPolicy
8
- } from "./chunk-NEDS4ORI.js";
8
+ } from "./chunk-YPB5BEAD.js";
9
9
  import {
10
10
  RECORDS_SCHEMA_VERSION,
11
11
  RECORD_TYPES,
12
12
  pointerOf
13
- } from "./chunk-DREU6TN6.js";
13
+ } from "./chunk-2RV4V55B.js";
14
14
  import {
15
15
  parseReference
16
- } from "./chunk-6VARUB3J.js";
16
+ } from "./chunk-5TIWO6AR.js";
17
17
  import {
18
18
  indent
19
- } from "./chunk-7FXZKQAC.js";
19
+ } from "./chunk-WZFGZBGD.js";
20
20
  import {
21
21
  CliError
22
- } from "./chunk-HM6AMYHR.js";
22
+ } from "./chunk-PMGAU6AP.js";
23
23
  import {
24
24
  __name
25
25
  } from "./chunk-ZVVMGPBJ.js";
26
26
 
27
- // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/domain/checks.js
27
+ // node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/domain/checks.js
28
28
  var spelled = /* @__PURE__ */ __name((check, args) => `${check.replaceAll(".", " ")}${args === void 0 ? "" : ` ${args}`}`, "spelled");
29
29
  var bareCheck = /* @__PURE__ */ __name((check, args) => `\`${spelled(check, args)}\``, "bareCheck");
30
30
  var checkWords = /* @__PURE__ */ __name((command, profile) => (check, args) => `\`${command} ${profile === void 0 ? "" : `${profile} `}${spelled(check, args)}\``, "checkWords");
31
31
 
32
- // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/domain/links.js
32
+ // node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/domain/links.js
33
33
  var LINK_VERSION = "v1";
34
34
  var DEFAULT_LINK_CONFIG = { base: "https://wirecat.dev/o", enabled: true };
35
35
  var APP_PREFIX = "wirecat://open";
@@ -150,7 +150,7 @@ var linkFor = /* @__PURE__ */ __name((ref, { form, config = DEFAULT_LINK_CONFIG,
150
150
  return form === "app" ? `${APP_PREFIX}${path}` : `${config.base}#${path}`;
151
151
  }, "linkFor");
152
152
 
153
- // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/domain/markdown.js
153
+ // node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/domain/markdown.js
154
154
  var MARKERS = [
155
155
  ["**", "bold"],
156
156
  ["~~", "strike"],
@@ -196,7 +196,7 @@ var closing = /* @__PURE__ */ __name((input, open, marker) => {
196
196
  return end;
197
197
  }, "closing");
198
198
 
199
- // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/domain/markdown-spans.js
199
+ // node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/domain/markdown-spans.js
200
200
  var STYLES = [
201
201
  ["**", "bold"],
202
202
  ["__", "underline"],
@@ -356,7 +356,7 @@ var parseMarkdownSpans = /* @__PURE__ */ __name((input) => {
356
356
  return validateFormattedText(result);
357
357
  }, "parseMarkdownSpans");
358
358
 
359
- // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/domain/polls.js
359
+ // node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/domain/polls.js
360
360
  var countedPoll = /* @__PURE__ */ __name((poll, votes, self) => {
361
361
  const cast = votes.filter((vote) => vote.answers.length > 0);
362
362
  const mine = self === null ? void 0 : votes.find((vote) => vote.person.id === self);
@@ -371,7 +371,7 @@ var countedPoll = /* @__PURE__ */ __name((poll, votes, self) => {
371
371
  };
372
372
  }, "countedPoll");
373
373
 
374
- // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/domain/records-table.js
374
+ // node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/domain/records-table.js
375
375
  var TABLE_RECORD_TYPES = Object.keys(RECORD_TYPES).filter((type) => RECORD_TYPES[type].sheet !== false);
376
376
  var TableError = class extends Error {
377
377
  static {
@@ -2361,7 +2361,7 @@ var createDataURL = /* @__PURE__ */ __name(function(width, height, getPixel) {
2361
2361
  var qrcode_default = qrcode;
2362
2362
  var stringToBytes = qrcode.stringToBytes;
2363
2363
 
2364
- // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/terminal/qr.js
2364
+ // node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/terminal/qr.js
2365
2365
  var QUIET_ZONE = 4;
2366
2366
  var BLACK_ON_WHITE = "\x1B[30;107m";
2367
2367
  var RESET = "\x1B[0m";
@@ -2408,7 +2408,7 @@ var plainQr = /* @__PURE__ */ __name((link) => {
2408
2408
  return lines.join("\n");
2409
2409
  }, "plainQr");
2410
2410
 
2411
- // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/terminal/login-qr.js
2411
+ // node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/terminal/login-qr.js
2412
2412
  var MARGIN = 2;
2413
2413
  var atTerminal = /* @__PURE__ */ __name((input) => input.isTTY === true && !inputPolicy(input).noInput, "atTerminal");
2414
2414
  var PASTE_QR = "agents: paste the QR code above into the chat as a code block, exactly as printed; when a new one is printed, paste it and say the old one expired";
@@ -3,16 +3,16 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  formatMeetingReference,
5
5
  parseMeetingReference
6
- } from "./chunk-AXKIXVQA.js";
6
+ } from "./chunk-WNQECDIP.js";
7
7
  import {
8
8
  CliError,
9
9
  singleLine
10
- } from "./chunk-HM6AMYHR.js";
10
+ } from "./chunk-PMGAU6AP.js";
11
11
  import {
12
12
  __name
13
13
  } from "./chunk-ZVVMGPBJ.js";
14
14
 
15
- // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/domain/locator.js
15
+ // node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/domain/locator.js
16
16
  var SCHEME = "msg:";
17
17
  var formatLocator = /* @__PURE__ */ __name(({ provider, account, chat, message }) => SCHEME + [provider, account, chat, message].map(encodeURIComponent).join("/"), "formatLocator");
18
18
  var isLocator = /* @__PURE__ */ __name((reference) => reference.trim().startsWith(SCHEME), "isLocator");
@@ -33,7 +33,7 @@ var parseLocator = /* @__PURE__ */ __name((reference) => {
33
33
  return { provider, account, chat, message };
34
34
  }, "parseLocator");
35
35
 
36
- // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/domain/references.js
36
+ // node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/domain/references.js
37
37
  var SIMPLE_REFERENCES = [
38
38
  "note",
39
39
  "document",
@@ -196,7 +196,7 @@ var looksLikeReference = /* @__PURE__ */ __name((text) => {
196
196
  return match !== null && byPrefix.has(match[1]);
197
197
  }, "looksLikeReference");
198
198
 
199
- // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/domain/providers.js
199
+ // node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/domain/providers.js
200
200
  var KINDS = ["messages", "mail", "notes", "documents", "meetings", "events", "crm"];
201
201
  var MESSENGER_OPENS = { chat: "messages list", message: "messages show", contact: "contacts show" };
202
202
  var CRM_OPENS = { deal: "deals show", lead: "leads show", pipeline: "pipelines show" };
@@ -375,7 +375,7 @@ var holdsKind = /* @__PURE__ */ __name((provider, kind2) => kindsIn(provider).in
375
375
  var holdsKindOf = /* @__PURE__ */ __name((provider, kind2) => kindIn(provider) === void 0 ? kind2 === "messages" : holdsKind(provider, kind2), "holdsKindOf");
376
376
  var kindOf = /* @__PURE__ */ __name((provider) => kindIn(provider) ?? "messages", "kindOf");
377
377
 
378
- // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/domain/money.js
378
+ // node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/domain/money.js
379
379
  var CURRENCY_SCALES = {
380
380
  AED: 2,
381
381
  AMD: 2,
@@ -469,7 +469,7 @@ var quantityOf = /* @__PURE__ */ __name((text) => {
469
469
  }, "quantityOf");
470
470
  var lineUnits = /* @__PURE__ */ __name((thousandths, unitPrice) => Number((thousandths * BigInt(unitPrice) + 500n) / 1000n), "lineUnits");
471
471
 
472
- // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/domain/deals.js
472
+ // node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/domain/deals.js
473
473
  var DEAL_KINDS = ["deal", "lead"];
474
474
  var DEAL_STATUSES = ["open", "won", "lost"];
475
475
  var STAGE_OUTCOMES = DEAL_STATUSES;
@@ -479,7 +479,7 @@ var dealLine = /* @__PURE__ */ __name((deal) => {
479
479
  return `${deal.title} \xB7 ${deal.stage}${money}${deal.status === "open" ? "" : ` (${deal.status})`}`;
480
480
  }, "dealLine");
481
481
 
482
- // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/domain/finance.js
482
+ // node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/domain/finance.js
483
483
  var INVOICE_DIRECTIONS = ["receivable", "payable"];
484
484
  var INVOICE_STATUSES = ["draft", "issued", "partly_paid", "paid", "void"];
485
485
  var MONEY_DIRECTIONS = ["in", "out"];
@@ -508,7 +508,7 @@ var paymentLine = /* @__PURE__ */ __name((payment) => {
508
508
  var invoiceTitle = /* @__PURE__ */ __name((invoice) => `Invoice ${invoiceLine(invoice)}`, "invoiceTitle");
509
509
  var paymentEntryTitle = /* @__PURE__ */ __name((payment) => `Payment \xB7 ${paymentLine(payment)}`, "paymentEntryTitle");
510
510
 
511
- // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/domain/orders.js
511
+ // node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/domain/orders.js
512
512
  var ORDER_STATUSES = ["placed", "shipped", "delivered", "cancelled", "returned"];
513
513
  var ORDER_PURPOSES = ["personal", "business", "client", "other"];
514
514
  var orderLine = /* @__PURE__ */ __name((order) => {
@@ -519,7 +519,7 @@ var orderLine = /* @__PURE__ */ __name((order) => {
519
519
  }, "orderLine");
520
520
  var orderTitle = /* @__PURE__ */ __name((order) => `Order ${orderLine(order)}`, "orderTitle");
521
521
 
522
- // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/domain/relations.js
522
+ // node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/domain/relations.js
523
523
  var ORGANIZATION_ROLES = [
524
524
  "employee",
525
525
  "contractor",
@@ -626,7 +626,7 @@ var KEYED = "kind IN ('member-of', 'related-to', 'reports-to', 'customer-of', 'p
626
626
  var notOverriddenSql = /* @__PURE__ */ __name((alias) => `NOT EXISTS (SELECT 1 FROM links override WHERE ${KEYED} AND override.kind = ${alias}.kind AND override.from_type = ${alias}.from_type AND override.from_id = ${alias}.from_id AND override.to_type = ${alias}.to_type AND override.to_id = ${alias}.to_id AND json_extract(override.metadata, '$.overrides') = ${alias}.id)`, "notOverriddenSql");
627
627
  var usableLinkSql = /* @__PURE__ */ __name((alias, now) => `(${alias}.confirmed = 1 OR (${alias}.account_id IS NOT NULL AND ${alias}.deleted_at IS NULL))` + (now === void 0 ? "" : ` AND (${alias}.ends_at IS NULL OR ${alias}.ends_at > ${Math.trunc(now)})`), "usableLinkSql");
628
628
 
629
- // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/domain/crm.js
629
+ // node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/domain/crm.js
630
630
  var CRM_KINDS = ["organization", "person", "deal", "lead"];
631
631
  var CRM_ACTIVITY_KINDS = ["call", "email", "meeting", "todo", "task", "comment", "other"];
632
632
  var isCrmUserId = /* @__PURE__ */ __name((id) => /^\d{1,20}$/.test(id), "isCrmUserId");
@@ -636,7 +636,7 @@ var normalCrmUserId = /* @__PURE__ */ __name((id) => {
636
636
  }, "normalCrmUserId");
637
637
  var isItemKind = /* @__PURE__ */ __name((kind2) => kind2 === "deal" || kind2 === "lead", "isItemKind");
638
638
 
639
- // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/domain/business.js
639
+ // node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/domain/business.js
640
640
  var CATALOG_KINDS = ["product", "service"];
641
641
  var BUSINESS_KINDS = ["invoice", "payment", "order", "contract", "subscription", "product", "wallet"];
642
642
  var CONTRACT_KINDS = ["sale", "purchase", "service", "lease", "employment", "nda", "license", "other"];
@@ -5,12 +5,12 @@ import {
5
5
  } from "./chunk-Y5E2WNWB.js";
6
6
  import {
7
7
  CliError
8
- } from "./chunk-HM6AMYHR.js";
8
+ } from "./chunk-PMGAU6AP.js";
9
9
  import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/store/vector-extension.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/store/vector-extension.js
14
14
  import { readFileSync } from "node:fs";
15
15
  var musl = /* @__PURE__ */ __name(() => {
16
16
  if (process.platform !== "linux")
@@ -5,19 +5,19 @@ import {
5
5
  UNTRUSTED_NEUTRAL,
6
6
  agentArguments,
7
7
  agentJson
8
- } from "./chunk-MCJYJIH5.js";
8
+ } from "./chunk-AVR4FPYG.js";
9
9
  import {
10
10
  failureContext
11
- } from "./chunk-4IASS7NQ.js";
11
+ } from "./chunk-437UHSIO.js";
12
12
  import {
13
13
  onlineDeps,
14
14
  refuseLacking,
15
15
  servicesFor,
16
16
  storeModeDeps
17
- } from "./chunk-QFMKCU42.js";
17
+ } from "./chunk-SCJVKWMV.js";
18
18
  import {
19
19
  callerOf
20
- } from "./chunk-HJDIMVFW.js";
20
+ } from "./chunk-V5I7QP4T.js";
21
21
  import {
22
22
  DEFAULT_OUTPUT_BYTES,
23
23
  ENTITIES,
@@ -30,32 +30,32 @@ import {
30
30
  refuseStoreChange,
31
31
  sealed,
32
32
  startRecording
33
- } from "./chunk-QYCMB7JY.js";
33
+ } from "./chunk-ROK7Z5LQ.js";
34
34
  import {
35
35
  fetchesAt,
36
36
  keyForCommand,
37
37
  levelFor,
38
38
  readKeysForCommand
39
- } from "./chunk-HF5QWKK2.js";
39
+ } from "./chunk-RJUVWJTA.js";
40
40
  import {
41
41
  currentCaller,
42
42
  keepsSuccess,
43
43
  runContextOf,
44
44
  withCaller
45
- } from "./chunk-UHGKN5US.js";
45
+ } from "./chunk-PMSZBUC7.js";
46
46
  import {
47
47
  MAX_BUFFERED_INPUT
48
- } from "./chunk-NEDS4ORI.js";
48
+ } from "./chunk-YPB5BEAD.js";
49
49
  import {
50
50
  inRun,
51
51
  newRunId
52
- } from "./chunk-DZHEVVXA.js";
52
+ } from "./chunk-6TT62IUW.js";
53
53
  import {
54
54
  storeDamaged
55
- } from "./chunk-UWDRU3R6.js";
55
+ } from "./chunk-3ZKNXKM7.js";
56
56
  import {
57
57
  traceIdOf
58
- } from "./chunk-7FXZKQAC.js";
58
+ } from "./chunk-WZFGZBGD.js";
59
59
  import {
60
60
  array,
61
61
  boolean,
@@ -82,19 +82,19 @@ import {
82
82
  toJsonSchema,
83
83
  toStandardJsonSchema,
84
84
  unknown
85
- } from "./chunk-YA44BG3N.js";
85
+ } from "./chunk-C3JSQ7UJ.js";
86
86
  import {
87
87
  CliError,
88
88
  errorCodes
89
- } from "./chunk-HM6AMYHR.js";
89
+ } from "./chunk-PMGAU6AP.js";
90
90
  import {
91
91
  __name
92
92
  } from "./chunk-ZVVMGPBJ.js";
93
93
 
94
- // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/mcp/surface.js
94
+ // node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/mcp/surface.js
95
95
  import { randomUUID } from "node:crypto";
96
96
 
97
- // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/mcp/tool.js
97
+ // node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/mcp/tool.js
98
98
  var limit = optional(pipe(number(), integer(), minValue(1), maxValue(100), description("how many")));
99
99
  var page = optional(pipe(number(), integer(), minValue(1), description("which page, from 1")));
100
100
  var message = pipe(
@@ -353,7 +353,7 @@ var failed = /* @__PURE__ */ __name((error, errors, effects) => {
353
353
  return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(storeDamaged(error), context))));
354
354
  }, "failed");
355
355
 
356
- // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/mcp/surface.js
356
+ // node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/mcp/surface.js
357
357
  var MATCHES = 8;
358
358
  var ANSWER = answerSchema();
359
359
  var agentAnswer = /* @__PURE__ */ __name((prefix, writes) => {