@wirecat/mail-cli 0.36.0 → 0.37.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 (177) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/dist/bin/mail.js +2 -2
  3. package/dist/bundle/agent-OU4K7TKQ.js +40 -0
  4. package/dist/bundle/{all-profiles-RS6OV3YO.js → all-profiles-ICGWDPUU.js} +11 -11
  5. package/dist/bundle/{anthropic-PPQ7DTXN.js → anthropic-TL4WFWGU.js} +5 -5
  6. package/dist/bundle/{app-server-EBFBMFQC.js → app-server-YAR5EFOO.js} +69 -67
  7. package/dist/bundle/{bun-J7HAT7MW.js → bun-OPDGMZZQ.js} +2 -2
  8. package/dist/bundle/{bun-sqlite-PCSNAXIQ.js → bun-sqlite-WI3ZPANS.js} +6 -6
  9. package/dist/bundle/{chunk-U3BO342P.js → chunk-2JHVQMVC.js} +1 -1
  10. package/dist/bundle/{chunk-JCILSTFK.js → chunk-2XBDILVW.js} +1 -1
  11. package/dist/bundle/{chunk-WZFGZBGD.js → chunk-2YO3PLOE.js} +19 -19
  12. package/dist/bundle/{chunk-KVFBSOCV.js → chunk-3DHJF57U.js} +9 -9
  13. package/dist/bundle/{chunk-NJZR3OFK.js → chunk-3HC5F3P7.js} +1 -1
  14. package/dist/bundle/{chunk-4WSTWZUB.js → chunk-3SKTQ2HC.js} +2 -2
  15. package/dist/bundle/{chunk-3NOXZZJV.js → chunk-3YM4B2GT.js} +1 -1
  16. package/dist/bundle/{chunk-L4QLZDBZ.js → chunk-3ZOOTTFW.js} +6 -6
  17. package/dist/bundle/{chunk-2UNZ3L2H.js → chunk-4FTIHADB.js} +6 -6
  18. package/dist/bundle/{chunk-KTVQIKU5.js → chunk-4IZ6R5FS.js} +19 -15
  19. package/dist/bundle/{chunk-6NDPOY4N.js → chunk-4N7PP76S.js} +1 -1
  20. package/dist/bundle/{chunk-KP7JHJVP.js → chunk-7HRKUKKY.js} +23 -23
  21. package/dist/bundle/{chunk-42XY6D5C.js → chunk-7PDGZFXD.js} +5 -5
  22. package/dist/bundle/{chunk-REWV37HQ.js → chunk-7YKWFERX.js} +6 -6
  23. package/dist/bundle/{chunk-PF7ZNIVP.js → chunk-BNURKCQG.js} +2 -3
  24. package/dist/bundle/{chunk-ZRSLG3B3.js → chunk-BNVISIHP.js} +6 -6
  25. package/dist/bundle/{chunk-KLPFPNZP.js → chunk-BQMJYSA4.js} +11 -11
  26. package/dist/bundle/{chunk-NYYMMIVW.js → chunk-BYITYTRL.js} +16 -3
  27. package/dist/bundle/{chunk-ZV57PIPE.js → chunk-CICUPYHT.js} +2 -2
  28. package/dist/bundle/{chunk-CJHO6B3M.js → chunk-CQHLWMKK.js} +33 -28
  29. package/dist/bundle/{chunk-MRWV5VNQ.js → chunk-CUW7Y2HJ.js} +6 -6
  30. package/dist/bundle/{chunk-BBQERXQX.js → chunk-DJZIFZOT.js} +3 -3
  31. package/dist/bundle/{chunk-HPSESLOZ.js → chunk-DNCLQPOM.js} +1 -1
  32. package/dist/bundle/{chunk-EGR3YUWD.js → chunk-DPV53EZC.js} +4 -4
  33. package/dist/bundle/{chunk-GI6DNX7Q.js → chunk-DTR7JO2M.js} +35 -35
  34. package/dist/bundle/{chunk-5JEKBYIH.js → chunk-ES2FF42M.js} +14 -14
  35. package/dist/bundle/{chunk-GCTHVCJU.js → chunk-EV72K4IU.js} +4 -4
  36. package/dist/bundle/{chunk-3BYKGMRM.js → chunk-EZQ5BYNL.js} +6 -6
  37. package/dist/bundle/{chunk-QI2XGTFH.js → chunk-F2D3J5DR.js} +8 -8
  38. package/dist/bundle/{chunk-NYR7PIAG.js → chunk-FTT7UDYV.js} +3 -3
  39. package/dist/bundle/{chunk-GEU3WR75.js → chunk-FXNCKPQ7.js} +3 -3
  40. package/dist/bundle/{chunk-5TIWO6AR.js → chunk-G4VJN75G.js} +37 -18
  41. package/dist/bundle/{chunk-CMOO4INK.js → chunk-GGMAIIVE.js} +1 -1
  42. package/dist/bundle/{chunk-SJNFPBPF.js → chunk-GPUC3FTU.js} +2 -2
  43. package/dist/bundle/{chunk-XRVZMM5B.js → chunk-GQIMVR7C.js} +164 -36
  44. package/dist/bundle/{chunk-437UHSIO.js → chunk-HCRUGAIN.js} +190 -62
  45. package/dist/bundle/{chunk-OEL4DQTT.js → chunk-HES6YMYN.js} +4 -4
  46. package/dist/bundle/{chunk-LQQIYBHN.js → chunk-HFY7536N.js} +196 -110
  47. package/dist/bundle/{chunk-2VEFNFYZ.js → chunk-IA7LLLEI.js} +3 -3
  48. package/dist/bundle/{chunk-RJUVWJTA.js → chunk-IUJDWEGJ.js} +7 -7
  49. package/dist/bundle/{chunk-PMSZBUC7.js → chunk-IWFWWO37.js} +8 -8
  50. package/dist/bundle/{chunk-DVJPEZGV.js → chunk-JG6LCSEX.js} +13 -13
  51. package/dist/bundle/{chunk-3ZKNXKM7.js → chunk-JLXXUEAM.js} +2 -2
  52. package/dist/bundle/{chunk-645FQC4G.js → chunk-JNP3XGJI.js} +16 -16
  53. package/dist/bundle/{chunk-2RV4V55B.js → chunk-JZUYZ2XJ.js} +38 -24
  54. package/dist/bundle/chunk-K4DEQAEW.js +1291 -0
  55. package/dist/bundle/{chunk-PPIMXOBT.js → chunk-KCM3WSER.js} +6 -6
  56. package/dist/bundle/{chunk-C3JSQ7UJ.js → chunk-KP5JDYY6.js} +27 -8
  57. package/dist/bundle/{chunk-SCJVKWMV.js → chunk-KUX54EGR.js} +1981 -802
  58. package/dist/bundle/chunk-KXJ3JEDH.js +2 -0
  59. package/dist/bundle/{chunk-V5I7QP4T.js → chunk-KZD3H5QA.js} +2 -2
  60. package/dist/bundle/{chunk-RMWS7IQ4.js → chunk-LKH3UKLO.js} +4 -4
  61. package/dist/bundle/{chunk-ROK7Z5LQ.js → chunk-NAOLBEFX.js} +220 -163
  62. package/dist/bundle/{chunk-5G4MDFZ2.js → chunk-NB52JKLR.js} +13 -9
  63. package/dist/bundle/{chunk-NTUP5RCP.js → chunk-NB7EOAUZ.js} +8 -1
  64. package/dist/bundle/{chunk-5VPLQS4S.js → chunk-NISH4UXM.js} +2 -2
  65. package/dist/bundle/{chunk-6UYIWQLU.js → chunk-NQSKI7XK.js} +4 -4
  66. package/dist/bundle/{chunk-NSH2UHJR.js → chunk-OWPRJLHV.js} +8 -8
  67. package/dist/bundle/{chunk-U67XMAEE.js → chunk-OZKZT3ZI.js} +10 -3
  68. package/dist/bundle/{chunk-774VG5WZ.js → chunk-Q7ICVP25.js} +1 -1
  69. package/dist/bundle/{chunk-HH34WRQE.js → chunk-QLJGYDWG.js} +7 -7
  70. package/dist/bundle/{chunk-6VMJLOYO.js → chunk-R44KVISE.js} +12 -12
  71. package/dist/bundle/{chunk-AVR4FPYG.js → chunk-R73VWPNL.js} +8 -8
  72. package/dist/bundle/{chunk-6LJIENVT.js → chunk-RRTMPSQR.js} +2 -2
  73. package/dist/bundle/{chunk-PMGAU6AP.js → chunk-S6JG4YUH.js} +2 -2
  74. package/dist/bundle/{chunk-WNQECDIP.js → chunk-TMJLGR4A.js} +61 -61
  75. package/dist/bundle/{chunk-VIJV474N.js → chunk-TXDR6YSF.js} +1 -1
  76. package/dist/bundle/{chunk-QDNYJOWJ.js → chunk-TY7NDMFY.js} +1 -1
  77. package/dist/bundle/{chunk-CJMZQ2MZ.js → chunk-UDSL3MUU.js} +8 -8
  78. package/dist/bundle/{chunk-VIDPFLFM.js → chunk-UTS5NMR3.js} +2 -2
  79. package/dist/bundle/{chunk-TV634B6T.js → chunk-VB7FZOYX.js} +1 -1
  80. package/dist/bundle/{chunk-WPPPO427.js → chunk-VK24UQSD.js} +4 -4
  81. package/dist/bundle/{chunk-NCY55XIT.js → chunk-VYCB5EVI.js} +8 -8
  82. package/dist/bundle/{chunk-IBOWSQ7X.js → chunk-VZ5PPYDG.js} +1 -1
  83. package/dist/bundle/chunk-WOPVBRPV.js +29 -0
  84. package/dist/bundle/{chunk-6PKMUKUF.js → chunk-XEQQJBBO.js} +1 -1
  85. package/dist/bundle/{chunk-MQ6DQRRI.js → chunk-XWBTD2WP.js} +4 -4
  86. package/dist/bundle/chunk-XXPJF2VD.js +2 -0
  87. package/dist/bundle/{chunk-6FZPFNEU.js → chunk-YODGIMMM.js} +9 -9
  88. package/dist/bundle/{chunk-YPB5BEAD.js → chunk-YWDFYQOU.js} +2 -2
  89. package/dist/bundle/{chunk-MT3LYU4T.js → chunk-Z4BLNAWI.js} +15062 -11852
  90. package/dist/bundle/{chunk-Q6TPXXOS.js → chunk-ZSAPOC7B.js} +27 -176
  91. package/dist/bundle/{chunk-GBZIWCEP.js → chunk-ZTWTEXB2.js} +3 -3
  92. package/dist/bundle/command-contract-UC6IGCCM.js +39 -0
  93. package/dist/bundle/{command-server-entry-73RJELAV.js → command-server-entry-RA3ZX2KV.js} +28 -28
  94. package/dist/bundle/{decode-7BUWBDPT.js → decode-QVKRSRVF.js} +5 -5
  95. package/dist/bundle/{dispatch-IBOMVWZA.js → dispatch-USKS7J74.js} +8 -8
  96. package/dist/bundle/{dist-MULVCVSR.js → dist-ITIXJAXK.js} +20 -20
  97. package/dist/bundle/{echarts-VLWFC322.js → echarts-O3TNDAXJ.js} +2 -2
  98. package/dist/bundle/{embed-W3VH4HPY.js → embed-2HOODFQT.js} +6 -6
  99. package/dist/bundle/{embedder-I7ERQZJV.js → embedder-22AJGCZX.js} +9 -9
  100. package/dist/bundle/{failure-QMAPSQ7X.js → failure-D4FGOIWF.js} +2 -2
  101. package/dist/bundle/{first-run-LCVER6QN.js → first-run-FU4MFXOA.js} +12 -12
  102. package/dist/bundle/first-screen-A7SEI2ON.js +40 -0
  103. package/dist/bundle/{instructions-BNCVLSYQ.js → instructions-AMH5RWVJ.js} +1 -1
  104. package/dist/bundle/mail.js +12 -12
  105. package/dist/bundle/{mcp-Z2KZNCXB.js → mcp-5HFPWC3W.js} +2 -2
  106. package/dist/bundle/meeting-combined-KC6YGWA7.js +24 -0
  107. package/dist/bundle/{meeting-model-BWLSTNXA.js → meeting-model-QWGAOQHL.js} +11 -11
  108. package/dist/bundle/{meeting-semantic-ZIEHXN2R.js → meeting-semantic-7PVO6RNB.js} +6 -6
  109. package/dist/bundle/{node-RYFTRSG4.js → node-EGMCBAO7.js} +2 -2
  110. package/dist/bundle/{node-sqlite-XCHVNTGQ.js → node-sqlite-JXUELLMP.js} +7 -7
  111. package/dist/bundle/{oauth-FNUJSKKJ.js → oauth-OYAYWH4K.js} +7 -7
  112. package/dist/bundle/{open-WVWSJ3WI.js → open-GLEUJGNA.js} +5 -5
  113. package/dist/bundle/{openai-QOUTYYTF.js → openai-PYTVNB6L.js} +15 -15
  114. package/dist/bundle/{process-W5KPID53.js → process-SGHEN6MQ.js} +1 -1
  115. package/dist/bundle/{program-L5UANM3I.js → program-7CFNZ2DF.js} +2001 -2222
  116. package/dist/bundle/{prompt-JSBAPNJE.js → prompt-CYTILD7N.js} +5 -5
  117. package/dist/bundle/public-XWMXEGEF.js +196 -0
  118. package/dist/bundle/{recognize-FDX4SJ6Q.js → recognize-26UNETSQ.js} +4 -4
  119. package/dist/bundle/{remote-MYOXOQHM.js → remote-PKXBQA5N.js} +9 -9
  120. package/dist/bundle/{rerank-NY5MSZCR.js → rerank-LLKP7M6Q.js} +7 -7
  121. package/dist/bundle/{serve-URI6NZA3.js → serve-ZRJEAPJI.js} +9 -9
  122. package/dist/bundle/{server-HQ25RHQM.js → server-4OQ4G5JY.js} +61 -59
  123. package/dist/bundle/server-VVRQ4A34.js +86 -0
  124. package/dist/bundle/{sqlite-runtime-6UUPSSKG.js → sqlite-runtime-667VV4VY.js} +6 -6
  125. package/dist/bundle/{state-NDDVFPCI.js → state-V3CAAJBE.js} +6 -6
  126. package/dist/bundle/{store-2RDOICVN.js → store-BJCIMIAH.js} +31 -24
  127. package/dist/bundle/{store-PKYWPKKR.js → store-GLBBY4OZ.js} +22 -22
  128. package/dist/bundle/store-maintenance-command-N7L5OVUE.js +73 -0
  129. package/dist/bundle/surface-26EUQNDT.js +72 -0
  130. package/dist/commands/import.js +2 -2
  131. package/dist/commands/import.js.map +1 -1
  132. package/dist/commands/messages.js +3 -3
  133. package/dist/commands/messages.js.map +1 -1
  134. package/dist/commands/read.js +2 -2
  135. package/dist/commands/read.js.map +1 -1
  136. package/dist/commands/send.d.ts.map +1 -1
  137. package/dist/commands/send.js +1 -0
  138. package/dist/commands/send.js.map +1 -1
  139. package/dist/commands/session.d.ts.map +1 -1
  140. package/dist/commands/session.js +2 -2
  141. package/dist/commands/session.js.map +1 -1
  142. package/dist/commands/sync.js +1 -1
  143. package/dist/commands/sync.js.map +1 -1
  144. package/dist/commands/tags.d.ts.map +1 -1
  145. package/dist/commands/tags.js.map +1 -1
  146. package/dist/commands/words.js +1 -1
  147. package/dist/commands/words.js.map +1 -1
  148. package/dist/config.d.ts +2 -0
  149. package/dist/config.d.ts.map +1 -1
  150. package/dist/config.js +7 -0
  151. package/dist/config.js.map +1 -1
  152. package/dist/mail/imap/account.d.ts.map +1 -1
  153. package/dist/mail/imap/account.js +2 -1
  154. package/dist/mail/imap/account.js.map +1 -1
  155. package/dist/mail/send.d.ts +2 -0
  156. package/dist/mail/send.d.ts.map +1 -1
  157. package/dist/mail/send.js +1 -1
  158. package/dist/mail/send.js.map +1 -1
  159. package/dist/profile.js +1 -1
  160. package/dist/profile.js.map +1 -1
  161. package/dist/program.d.ts.map +1 -1
  162. package/dist/program.js +4 -4
  163. package/dist/program.js.map +1 -1
  164. package/dist/reasons.d.ts.map +1 -1
  165. package/dist/reasons.js +0 -1
  166. package/dist/reasons.js.map +1 -1
  167. package/dist/version.d.ts +1 -1
  168. package/dist/version.js +1 -1
  169. package/package.json +3 -3
  170. package/dist/bundle/agent-MW7YWUIY.js +0 -39
  171. package/dist/bundle/chunk-6TT62IUW.js +0 -1264
  172. package/dist/bundle/command-contract-WFTIRPL5.js +0 -39
  173. package/dist/bundle/first-screen-DCTHI4NQ.js +0 -39
  174. package/dist/bundle/meeting-combined-ITU7SZ7E.js +0 -24
  175. package/dist/bundle/server-UVYFU2JN.js +0 -84
  176. package/dist/bundle/store-maintenance-command-Y5XTO47X.js +0 -71
  177. package/dist/bundle/surface-3XKM3MQ2.js +0 -70
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  LEVELS
5
- } from "./chunk-RJUVWJTA.js";
5
+ } from "./chunk-IUJDWEGJ.js";
6
6
  import {
7
7
  WORD_BODY,
8
8
  e164Of
9
- } from "./chunk-2RV4V55B.js";
9
+ } from "./chunk-JZUYZ2XJ.js";
10
10
  import {
11
11
  resolvePaths,
12
12
  writeSecurely
13
- } from "./chunk-WZFGZBGD.js";
13
+ } from "./chunk-2YO3PLOE.js";
14
14
  import {
15
15
  array,
16
16
  getDotPath,
@@ -29,16 +29,16 @@ import {
29
29
  string,
30
30
  transform,
31
31
  unknown
32
- } from "./chunk-C3JSQ7UJ.js";
32
+ } from "./chunk-KP5JDYY6.js";
33
33
  import {
34
34
  CliError,
35
35
  visibleControls
36
- } from "./chunk-PMGAU6AP.js";
36
+ } from "./chunk-S6JG4YUH.js";
37
37
  import {
38
38
  __name
39
39
  } from "./chunk-ZVVMGPBJ.js";
40
40
 
41
- // 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/vcard.js
41
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/domain/vcard.js
42
42
  import { createHash } from "node:crypto";
43
43
  var MAX_ID = 512;
44
44
  var AS_WORD = new RegExp(`^${WORD_BODY}$`);
@@ -269,7 +269,7 @@ var envelopeOfVcard = /* @__PURE__ */ __name((text, { provider, account, batchId
269
269
  };
270
270
  }, "envelopeOfVcard");
271
271
 
272
- // 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/formatting.js
272
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/domain/formatting.js
273
273
  var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "the messenger formatter returned invalid text spans"), "invalid");
274
274
  var validateFormattedText = /* @__PURE__ */ __name((formatted) => {
275
275
  const { text, spans } = formatted;
@@ -329,7 +329,7 @@ var visibleFormattedText = /* @__PURE__ */ __name((formatted) => {
329
329
  };
330
330
  }, "visibleFormattedText");
331
331
 
332
- // 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/moderation/check.js
332
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/moderation/check.js
333
333
  var INVITE = /max\.ru\/join\/|(t|telegram)\.me\/(\+|joinchat\/)|tg:\/\/join/i;
334
334
  var LINK = /https?:\/\/\S+/i;
335
335
  var STRENGTH = { report: 0, delete: 1, remove: 2 };
@@ -517,7 +517,7 @@ var nextPoint = /* @__PURE__ */ __name((rows, found) => {
517
517
  }, "nextPoint");
518
518
  var someUndone = /* @__PURE__ */ __name((rows) => rows.some(undone), "someUndone");
519
519
 
520
- // 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/moderation/rules.js
520
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/moderation/rules.js
521
521
  import { existsSync, readdirSync, readFileSync } from "node:fs";
522
522
  import { join } from "node:path";
523
523
  var RULE_ACTIONS = ["report", "delete", "remove"];
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
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/mcp/bot/instructions.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/mcp/bot/instructions.js
8
8
  var botInstructions = /* @__PURE__ */ __name(({ command, name, profile, writes, skill }) => [
9
9
  `The owner's ${name} bot "${profile}", through the official Bot API \u2014 not the owner's personal account. What it writes, people see as the bot.`,
10
10
  "Use these tools to read the chats this bot is in, find a message or a person, and \u2014 when the profile allows \u2014 write as the bot.",
@@ -8,12 +8,12 @@ import {
8
8
  ACCESS_SECONDS,
9
9
  REFRESH_SECONDS,
10
10
  readStored
11
- } from "./chunk-OEL4DQTT.js";
11
+ } from "./chunk-HES6YMYN.js";
12
12
  import {
13
13
  __name
14
14
  } from "./chunk-ZVVMGPBJ.js";
15
15
 
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
16
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/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";
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
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
7
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/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) => {
@@ -5,23 +5,23 @@ import {
5
5
  installFiles,
6
6
  megabytes,
7
7
  sharedModelsDirectory
8
- } from "./chunk-GCTHVCJU.js";
8
+ } from "./chunk-EV72K4IU.js";
9
9
  import {
10
10
  importFrom
11
11
  } from "./chunk-Y5E2WNWB.js";
12
12
  import {
13
13
  CliError
14
- } from "./chunk-PMGAU6AP.js";
14
+ } from "./chunk-S6JG4YUH.js";
15
15
  import {
16
16
  __name
17
17
  } from "./chunk-ZVVMGPBJ.js";
18
18
 
19
- // 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/embeddings/embed.js
19
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
20
20
  import { readFileSync as readFileSync2 } from "node:fs";
21
21
  import { availableParallelism } from "node:os";
22
22
  import { basename, join as join2 } from "node:path";
23
23
 
24
- // node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/embeddings/onnx-runtime.js
24
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/embeddings/onnx-runtime.js
25
25
  import { createHash } from "node:crypto";
26
26
  import { copyFileSync, mkdirSync, mkdtempSync, readFileSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
27
27
  import { join } from "node:path";
@@ -678,7 +678,7 @@ var Unzip = /* @__PURE__ */ (function() {
678
678
  return Unzip2;
679
679
  })();
680
680
 
681
- // node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/embeddings/onnx-runtime.js
681
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/embeddings/onnx-runtime.js
682
682
  var ONNX_RUNTIME_VERSION = "1.30.0";
683
683
  var REGISTRY = "https://registry.npmjs.org";
684
684
  var wirecat = /* @__PURE__ */ __name((target, sha256, bytes, library) => ({
@@ -837,7 +837,7 @@ var openSession = /* @__PURE__ */ __name(async (bytes, threads, options = {}) =>
837
837
  return { ort, session: await ort.InferenceSession.create(bytes, options) };
838
838
  }, "openSession");
839
839
 
840
- // 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/embeddings/embed.js
840
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
841
841
  var textModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedModelsDirectory("text", env), "textModelsDirectory");
842
842
  var placedText = /* @__PURE__ */ __name((model, directory) => model.files.map((file) => [file, join2(directory, model.id, file.name)]), "placedText");
843
843
  var isTextModelInstalled = /* @__PURE__ */ __name((model, directory) => filesPresent(placedText(model, directory)), "isTextModelInstalled");
@@ -3,29 +3,29 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  textModel,
5
5
  vectorModelKey
6
- } from "./chunk-MRWV5VNQ.js";
6
+ } from "./chunk-CUW7Y2HJ.js";
7
7
  import {
8
8
  OPENAI_URL,
9
9
  openRemote,
10
10
  remoteKey,
11
11
  remoteModel
12
- } from "./chunk-6FZPFNEU.js";
12
+ } from "./chunk-YODGIMMM.js";
13
13
  import {
14
14
  endpointFetch
15
- } from "./chunk-REWV37HQ.js";
15
+ } from "./chunk-7YKWFERX.js";
16
16
  import {
17
17
  isTextModelInstalled,
18
18
  openEmbedder,
19
19
  textModelsDirectory
20
- } from "./chunk-L4QLZDBZ.js";
20
+ } from "./chunk-3ZOOTTFW.js";
21
21
  import {
22
22
  CliError
23
- } from "./chunk-PMGAU6AP.js";
23
+ } from "./chunk-S6JG4YUH.js";
24
24
  import {
25
25
  __name
26
26
  } from "./chunk-ZVVMGPBJ.js";
27
27
 
28
- // 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/services/meeting-model.js
28
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/services/meeting-model.js
29
29
  var integer = /* @__PURE__ */ __name((value, name, max) => {
30
30
  if (!Number.isSafeInteger(value) || value < 1 || value > max)
31
31
  throw new CliError("validation_error", `Invalid ${name}`);
@@ -1,5 +1,9 @@
1
1
  import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ helpOptionOf,
5
+ rejectUnknownOption
6
+ } from "./chunk-WOPVBRPV.js";
3
7
  import {
4
8
  Command,
5
9
  InvalidArgumentError,
@@ -8,10 +12,10 @@ import {
8
12
  annotateOption,
9
13
  listOf,
10
14
  sharedCommand
11
- } from "./chunk-ROK7Z5LQ.js";
15
+ } from "./chunk-NAOLBEFX.js";
12
16
  import {
13
17
  readMoment
14
- } from "./chunk-NYR7PIAG.js";
18
+ } from "./chunk-FTT7UDYV.js";
15
19
  import {
16
20
  BACKENDS,
17
21
  EVENT_QUERY,
@@ -51,15 +55,15 @@ import {
51
55
  validateMeetingHitSearch,
52
56
  validateMeetingPassage,
53
57
  validateQuery
54
- } from "./chunk-WNQECDIP.js";
58
+ } from "./chunk-TMJLGR4A.js";
55
59
  import {
56
60
  CliError
57
- } from "./chunk-PMGAU6AP.js";
61
+ } from "./chunk-S6JG4YUH.js";
58
62
  import {
59
63
  __name
60
64
  } from "./chunk-ZVVMGPBJ.js";
61
65
 
62
- // 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/services/moment.js
66
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/services/moment.js
63
67
  var read = /* @__PURE__ */ __name((reference, flag, now, at) => {
64
68
  const found = readMoment(reference, flag, { ...at, now });
65
69
  if (found === void 0)
@@ -88,7 +92,7 @@ var dateWindow = /* @__PURE__ */ __name(({ sinceTime, untilTime, zone, now = Dat
88
92
  };
89
93
  }, "dateWindow");
90
94
 
91
- // 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/meetings/cli/management.js
95
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/meetings/cli/management.js
92
96
  var REMOTE_READ = { remote: "read", local: "read" };
93
97
  var REMOTE_WRITE = { remote: "write", local: "write" };
94
98
  var minutes = /* @__PURE__ */ __name((text) => {
@@ -193,18 +197,18 @@ var addMeetingManagementCommands = /* @__PURE__ */ __name((group, deps) => {
193
197
  }).description("the invitation text the service writes for a meeting"))).action(async (id, _flags, command) => inRun(command, async () => print({ item: { ...await management.invitation(id, signalled()), untrusted: ["invitation"] } }, command)));
194
198
  }, "addMeetingManagementCommands");
195
199
 
196
- // 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/meetings/cli/query-options.js
200
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/meetings/cli/query-options.js
197
201
  var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
198
202
  command.allowUnknownOption();
199
203
  const parse = command.parseOptions.bind(command);
200
204
  command.parseOptions = (args) => {
201
205
  const parsed = parse(args);
202
206
  const end = parsed.unknown.indexOf("--");
203
- const help = command._getHelpOption();
207
+ const help = helpOptionOf(command);
204
208
  const typo = parsed.unknown.slice(0, end < 0 ? void 0 : end).find((word) => word.startsWith("--") && !help?.is(word));
205
209
  if (typo !== void 0) {
206
210
  command.allowUnknownOption(false);
207
- command.unknownOption(typo);
211
+ rejectUnknownOption(command, typo);
208
212
  }
209
213
  if (end >= 0)
210
214
  parsed.unknown.splice(end, 1);
@@ -213,7 +217,7 @@ var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
213
217
  return command;
214
218
  }, "queryWordsAfterOptions");
215
219
 
216
- // 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/meetings/cli/passage.js
220
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/meetings/cli/passage.js
217
221
  var count = /* @__PURE__ */ __name((value) => {
218
222
  if (!/^(0|[1-9]\d*)$/.test(value) || !Number.isSafeInteger(Number(value)))
219
223
  throw new CliError("validation_error", "expected a nonnegative safe integer");
@@ -255,7 +259,7 @@ var addMeetingPassageCommandDefinition = /* @__PURE__ */ __name((program, deps)
255
259
  var createMeetingPassageCommand = sharedCommand(createMeetingPassageCommandDefinition);
256
260
  var addMeetingPassageCommand = sharedCommand(addMeetingPassageCommandDefinition);
257
261
 
258
- // 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/meetings/cli/project-evidence.js
262
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/meetings/cli/project-evidence.js
259
263
  var integer = /* @__PURE__ */ __name((value) => {
260
264
  if (!/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
261
265
  throw new CliError("validation_error", "expected a positive safe integer");
@@ -278,7 +282,7 @@ ${fieldsHelp(MEETING_PROJECT_EVIDENCE_QUERY)}`).option("--limit <n>", "hits in o
278
282
  }, "addMeetingProjectEvidenceCommandDefinition");
279
283
  var addMeetingProjectEvidenceCommand = sharedCommand(addMeetingProjectEvidenceCommandDefinition);
280
284
 
281
- // 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/meetings/cli/search.js
285
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/meetings/cli/search.js
282
286
  var moment = /* @__PURE__ */ __name((flag, end, readIn) => (value) => {
283
287
  const { since, until, meta } = dateWindow(end ? { untilTime: value, names: [flag, flag] } : { sinceTime: value, names: [flag, flag] });
284
288
  if (meta.timezone)
@@ -357,7 +361,7 @@ var addMeetingSearchCommandDefinition = /* @__PURE__ */ __name((program, deps) =
357
361
  var createMeetingSearchCommand = sharedCommand(createMeetingSearchCommandDefinition);
358
362
  var addMeetingSearchCommand = sharedCommand(addMeetingSearchCommandDefinition);
359
363
 
360
- // 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/meetings/cli/index.js
364
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/meetings/cli/index.js
361
365
  var EVENT_UNTRUSTED = ["title", "description", "location"];
362
366
  var integer3 = /* @__PURE__ */ __name((text) => {
363
367
  if (!/^[1-9]\d*$/.test(text) || !Number.isSafeInteger(Number(text)))
@@ -543,7 +547,7 @@ ${fieldsHelp(EVENT_QUERY, MEETING_QUERY_GUIDE)}`);
543
547
  }, "addMeetingCommandsDefinition");
544
548
  var addMeetingCommands = sharedCommand(addMeetingCommandsDefinition);
545
549
 
546
- // 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/list-query.js
550
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/cli/list-query.js
547
551
  var LIST_QUERY_GUIDE = "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md";
548
552
  var QUERY_ARGUMENT = "field:value terms that narrow the list \u2014 the fields are below";
549
553
  var withQuery = /* @__PURE__ */ __name((command, registry) => {
@@ -679,7 +683,7 @@ var termField = /* @__PURE__ */ __name((name, type, example, more = {}) => nativ
679
683
  var queryHelp = /* @__PURE__ */ __name((registry) => `
680
684
  ${fieldsHelp(registry, LIST_QUERY_GUIDE)}`, "queryHelp");
681
685
 
682
- // 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/ports/messenger.js
686
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/ports/messenger.js
683
687
  var throughWrapper = /* @__PURE__ */ __name((inner, handled, wrap = (_, call) => call) => new Proxy(handled, {
684
688
  get: /* @__PURE__ */ __name((own, key) => {
685
689
  if (key in own)
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
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/store/sqlite/drizzle/shared-5XR7K42U.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/shared-5XR7K42U.js
8
8
  var entityKind = /* @__PURE__ */ Symbol.for("drizzle:entityKind");
9
9
  var kindsByConstructor = /* @__PURE__ */ new WeakMap();
10
10
  function collectKinds(ctor) {
@@ -23,28 +23,28 @@ import {
23
23
  tagMemberIds,
24
24
  thingOf,
25
25
  write
26
- } from "./chunk-MT3LYU4T.js";
26
+ } from "./chunk-Z4BLNAWI.js";
27
27
  import {
28
28
  fold
29
- } from "./chunk-U3BO342P.js";
29
+ } from "./chunk-2JHVQMVC.js";
30
30
  import {
31
31
  ADDED_PROVIDER,
32
32
  filesAccountSql,
33
33
  folderProviderOf,
34
34
  folderProviderSql,
35
35
  isDocumentAccountProvider
36
- } from "./chunk-5TIWO6AR.js";
36
+ } from "./chunk-G4VJN75G.js";
37
37
  import {
38
38
  damagedFile
39
- } from "./chunk-3ZKNXKM7.js";
39
+ } from "./chunk-JLXXUEAM.js";
40
40
  import {
41
41
  CliError
42
- } from "./chunk-PMGAU6AP.js";
42
+ } from "./chunk-S6JG4YUH.js";
43
43
  import {
44
44
  __name
45
45
  } from "./chunk-ZVVMGPBJ.js";
46
46
 
47
- // 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/damage.js
47
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/store/damage.js
48
48
  var DERIVED = /* @__PURE__ */ new Set(["mentions", "involvements", "embeddings"]);
49
49
  var named = /* @__PURE__ */ __name((tables) => tables.length <= 5 ? tables.join(", ") : `${tables.slice(0, 5).join(", ")} and ${tables.length - 5} more`, "named");
50
50
  var isDerivedTable = /* @__PURE__ */ __name((table, searchIndexes) => DERIVED.has(table) || table.startsWith("vector_index_") || searchIndexes.some((index) => table === index || table.startsWith(`${index}_`)), "isDerivedTable");
@@ -147,11 +147,11 @@ var storeDamageReport = /* @__PURE__ */ __name(({ health, command, mark = null,
147
147
  };
148
148
  }, "storeDamageReport");
149
149
 
150
- // 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/document-transfer/index.js
150
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/store/document-transfer/index.js
151
151
  import { realpathSync, statSync } from "node:fs";
152
152
  import { resolve } from "node:path";
153
153
 
154
- // 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/sqlite/document-transfer/people.js
154
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/people.js
155
155
  var planPeople = /* @__PURE__ */ __name((database, snapshot, mappings, bindings, conflicts) => {
156
156
  const creatable = /* @__PURE__ */ new Set();
157
157
  let people = 0, identities = 0;
@@ -214,11 +214,11 @@ var copyPeople = /* @__PURE__ */ __name((database, snapshot, mappings, now) => {
214
214
  }
215
215
  }, "copyPeople");
216
216
 
217
- // 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/document-transfer/digest.js
217
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/store/document-transfer/digest.js
218
218
  import { createHash } from "node:crypto";
219
219
  var digest = /* @__PURE__ */ __name((value) => createHash("sha256").update(JSON.stringify(value)).digest("hex"), "digest");
220
220
 
221
- // 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/sqlite/document-transfer/collection.js
221
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/collection.js
222
222
  var documentsKeyOf = /* @__PURE__ */ __name((collection) => {
223
223
  const colon = collection.indexOf(":");
224
224
  const provider = collection.slice(0, colon);
@@ -262,7 +262,7 @@ var currentCollection = /* @__PURE__ */ __name((row) => {
262
262
  };
263
263
  }, "currentCollection");
264
264
 
265
- // 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/sqlite/document-transfer/plan.js
265
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/plan.js
266
266
  var planTransfer = /* @__PURE__ */ __name((database, snapshot, sourceKey, bindings) => {
267
267
  const mappings = /* @__PURE__ */ new Map();
268
268
  const missing = /* @__PURE__ */ new Set(), conflicts = /* @__PURE__ */ new Set();
@@ -344,8 +344,8 @@ var planTransfer = /* @__PURE__ */ __name((database, snapshot, sourceKey, bindin
344
344
  else
345
345
  missing.add(external.reference);
346
346
  }
347
- const organization2 = snapshot.collection.organization_id == null ? null : mappings.get(`organization:${String(snapshot.collection.organization_id)}`)?.id;
348
- if (target && target.organization_id !== organization2)
347
+ const organization = snapshot.collection.organization_id == null ? null : mappings.get(`organization:${String(snapshot.collection.organization_id)}`)?.id;
348
+ if (target && target.organization_id !== organization)
349
349
  conflicts.add("the destination collection has a different organization binding");
350
350
  for (const tagging of snapshot.taggings) {
351
351
  if (Number(tagging.tag_group_size ?? 1) > 1)
@@ -429,7 +429,7 @@ var planTransfer = /* @__PURE__ */ __name((database, snapshot, sourceKey, bindin
429
429
  };
430
430
  }, "planTransfer");
431
431
 
432
- // 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/sqlite/document-transfer/snapshot.js
432
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/snapshot.js
433
433
  var TRANSFER_TABLES = { document: "documents", note: "notes", memory: "memories", fact: "facts" };
434
434
  var MAX_ENTITIES = 1e3;
435
435
  var MAX_AUXILIARY = 1e4;
@@ -591,7 +591,7 @@ var transferSnapshot = /* @__PURE__ */ __name((database, collection) => read(dat
591
591
  };
592
592
  }), "transferSnapshot");
593
593
 
594
- // 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/sqlite/document-transfer/apply.js
594
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/apply.js
595
595
  var providerHere = /* @__PURE__ */ __name(({ provider, name, settings }) => {
596
596
  if (provider !== "folder" || String(name ?? "").startsWith("google-drive:"))
597
597
  return provider ?? null;
@@ -645,11 +645,11 @@ var applyTransfer = /* @__PURE__ */ __name((database, snapshot, sourceKey, bindi
645
645
  mappings.set(external.key, botNamed(database, external.bot.name, now(), external.bot.kind));
646
646
  let collectionId = plan.collectionId;
647
647
  if (collectionId === void 0) {
648
- const organization2 = snapshot.collection.organization_id == null ? void 0 : mapped(mappings, "organization", snapshot.collection.organization_id);
648
+ const organization = snapshot.collection.organization_id == null ? void 0 : mapped(mappings, "organization", snapshot.collection.organization_id);
649
649
  collectionId = insert(database, "accounts", "provider external_id name created_at settings updated_at scope organization_id", {
650
650
  ...snapshot.collection,
651
651
  provider: providerHere(snapshot.collection),
652
- organization_id: organization2?.id ?? null
652
+ organization_id: organization?.id ?? null
653
653
  });
654
654
  }
655
655
  mappings.set(`account:${String(snapshot.collection.id)}`, { type: "account", id: collectionId });
@@ -763,7 +763,7 @@ var remapEntity = /* @__PURE__ */ __name((database, entity, id, mappings) => {
763
763
  database.prepare(`UPDATE ${TRANSFER_TABLES[entity.kind]} SET ${columns.join(",")} WHERE id=?`).run(...values, id);
764
764
  }, "remapEntity");
765
765
 
766
- // 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/document-transfer/index.js
766
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/store/document-transfer/index.js
767
767
  var locations = /* @__PURE__ */ __name((options) => {
768
768
  for (const value of [options.source, options.destination, options.collection])
769
769
  if (typeof value !== "string" || !value.trim())
@@ -865,7 +865,7 @@ var applyWith = /* @__PURE__ */ __name(async (location, options) => {
865
865
  }
866
866
  }, "applyWith");
867
867
 
868
- // 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/health.js
868
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/store/health.js
869
869
  import { existsSync, statSync as statSync2 } from "node:fs";
870
870
  var JSON_COLUMNS = {
871
871
  accounts: ["settings"],
@@ -1007,7 +1007,7 @@ var storeHealth = /* @__PURE__ */ __name(async (path, { deep = false } = {}) =>
1007
1007
  }
1008
1008
  }, "storeHealth");
1009
1009
 
1010
- // 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/project-transfer/preview.js
1010
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/store/project-transfer/preview.js
1011
1011
  var previewProjectAnnotationSnapshot = /* @__PURE__ */ __name(async (options) => {
1012
1012
  if (!options || typeof options !== "object" || Array.isArray(options))
1013
1013
  throw new CliError("validation_error", "project preview options are required");
@@ -1022,18 +1022,18 @@ var previewProjectAnnotationSnapshot = /* @__PURE__ */ __name(async (options) =>
1022
1022
  throw new CliError("validation_error", "project preview project is a project:<safe integer id> reference");
1023
1023
  const budget = new SnapshotBudget(options.maxReadBytes ?? 4 * 1024 * 1024);
1024
1024
  const target = options.target;
1025
- const project2 = options.project;
1025
+ const project = options.project;
1026
1026
  return damagedFile([target], async () => {
1027
1027
  const context = await openStoreContext({ path: target, env: options.env, readOnly: true });
1028
1028
  try {
1029
- return previewAnnotationSnapshot(context.database, Number(project2.slice(8)), snapshot, options.bindings, budget);
1029
+ return previewAnnotationSnapshot(context.database, Number(project.slice(8)), snapshot, options.bindings, budget);
1030
1030
  } finally {
1031
1031
  context.database.close();
1032
1032
  }
1033
1033
  });
1034
1034
  }, "previewProjectAnnotationSnapshot");
1035
1035
 
1036
- // 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/project-transfer/snapshot.js
1036
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot.js
1037
1037
  var snapshotProjectAnnotations = /* @__PURE__ */ __name(async (options) => {
1038
1038
  if (!options || typeof options !== "object" || Array.isArray(options))
1039
1039
  throw new CliError("validation_error", "snapshot options are required");
@@ -6,21 +6,21 @@ import {
6
6
  answerSchema,
7
7
  describeOptions,
8
8
  metaOf
9
- } from "./chunk-ROK7Z5LQ.js";
9
+ } from "./chunk-NAOLBEFX.js";
10
10
  import {
11
11
  keyForCommand
12
- } from "./chunk-RJUVWJTA.js";
12
+ } from "./chunk-IUJDWEGJ.js";
13
13
  import {
14
14
  jsonSchemaOf
15
- } from "./chunk-C3JSQ7UJ.js";
15
+ } from "./chunk-KP5JDYY6.js";
16
16
  import {
17
17
  CliError
18
- } from "./chunk-PMGAU6AP.js";
18
+ } from "./chunk-S6JG4YUH.js";
19
19
  import {
20
20
  __name
21
21
  } from "./chunk-ZVVMGPBJ.js";
22
22
 
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
23
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/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);
@@ -3,12 +3,12 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  CliError,
5
5
  isCliError
6
- } from "./chunk-PMGAU6AP.js";
6
+ } from "./chunk-S6JG4YUH.js";
7
7
  import {
8
8
  __name
9
9
  } from "./chunk-ZVVMGPBJ.js";
10
10
 
11
- // node_modules/.pnpm/@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/http/body.js
11
+ // node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/http/body.js
12
12
  var interrupted = /* @__PURE__ */ __name((signal) => isCliError(signal.reason) ? signal.reason : new CliError(signal.reason instanceof Error && signal.reason.name === "TimeoutError" ? "timeout" : "cancelled", "HTTP response read was interrupted"), "interrupted");
13
13
  var checked = /* @__PURE__ */ __name((signal) => {
14
14
  if (signal?.aborted)
@@ -93,7 +93,7 @@ var readJsonResponse = /* @__PURE__ */ __name(async (response, options) => {
93
93
  }
94
94
  }, "readJsonResponse");
95
95
 
96
- // node_modules/.pnpm/@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/http/hosts.js
96
+ // node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/http/hosts.js
97
97
  var LABEL = "[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?";
98
98
  var HOST_PATTERN = new RegExp(`^(?:${LABEL}(?:\\.${LABEL})*|\\*\\.${LABEL}(?:\\.${LABEL})+)$`);
99
99
  var hostProblems = /* @__PURE__ */ __name((hosts) => [
@@ -105,7 +105,7 @@ var hostCovered = /* @__PURE__ */ __name((hostname, hosts) => {
105
105
  return hosts.some((host) => host.startsWith("*.") ? name.endsWith(host.slice(1)) : name === host);
106
106
  }, "hostCovered");
107
107
 
108
- // node_modules/.pnpm/@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/http/fetch.js
108
+ // node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/http/fetch.js
109
109
  var HOST_FETCH_TIMEOUT_MS = 3e4;
110
110
  var REDIRECTS = 5;
111
111
  var REDIRECT_STATUSES = /* @__PURE__ */ new Set([301, 302, 303, 307, 308]);
@@ -223,7 +223,7 @@ var hostFetch = /* @__PURE__ */ __name((options) => {
223
223
  };
224
224
  }, "hostFetch");
225
225
 
226
- // node_modules/.pnpm/@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/http/index.js
226
+ // node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/http/index.js
227
227
  var parseRetryAfter = /* @__PURE__ */ __name((header, now) => {
228
228
  if (!header)
229
229
  return void 0;
@@ -264,7 +264,7 @@ var statusToCode = /* @__PURE__ */ __name((status) => {
264
264
  return "provider_error";
265
265
  }, "statusToCode");
266
266
 
267
- // 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/endpoint.js
267
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/models/endpoint.js
268
268
  var endpoint = /* @__PURE__ */ __name((value) => {
269
269
  try {
270
270
  const url = new URL(value);
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  defineReasons
5
- } from "./chunk-C3JSQ7UJ.js";
5
+ } from "./chunk-KP5JDYY6.js";
6
6
 
7
7
  // dist/reasons.js
8
8
  var ENTRIES = [
@@ -44,7 +44,6 @@ var ENTRIES = [
44
44
  ["mail.original-gone", "not_found", "the message is not where the store last saw it on the server"],
45
45
  ["mail.others-for-agent", "permission_error", "over MCP the profile mails only its owner"],
46
46
  ["mail.no-submission", "configuration_error", "the profile names no submission server"],
47
- ["mail.config-unreadable", "configuration_error", "the config file cannot be read"],
48
47
  ["mail.profile-exists", "validation_error", "a profile of this name already exists"],
49
48
  ["mail.server-unknown", "not_found", "no mail server was found for the address's domain"],
50
49
  ["mail.export-other", "validation_error", "the export folder holds an export of another format or mailbox"],
@@ -58,7 +57,7 @@ var ENTRIES = [
58
57
  var REASONS = defineReasons(ENTRIES.map(([reason, code, message]) => ({ reason, code, message, details: [] })));
59
58
 
60
59
  // dist/version.js
61
- var VERSION = "0.36.0";
60
+ var VERSION = "0.37.0";
62
61
 
63
62
  // dist/identity.js
64
63
  var PACKAGE = "@wirecat/mail-cli";