@wirecat/mail-cli 0.37.0 → 0.38.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 (147) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/contracts/wirecat.json +1 -0
  3. package/dist/bin/mail.js +2 -2
  4. package/dist/bundle/agent-U43CYLAP.js +41 -0
  5. package/dist/bundle/{all-profiles-ICGWDPUU.js → all-profiles-OCUZMXMI.js} +7 -7
  6. package/dist/bundle/{anthropic-TL4WFWGU.js → anthropic-CABWJABQ.js} +2 -2
  7. package/dist/bundle/{app-server-YAR5EFOO.js → app-server-TTWPIGWG.js} +63 -62
  8. package/dist/bundle/{bun-OPDGMZZQ.js → bun-F4M4KCNA.js} +2 -2
  9. package/dist/bundle/{bun-sqlite-WI3ZPANS.js → bun-sqlite-YKYG25CR.js} +3 -3
  10. package/dist/bundle/{chunk-YODGIMMM.js → chunk-24UGTK32.js} +7 -7
  11. package/dist/bundle/{chunk-IUJDWEGJ.js → chunk-2HDXD6LM.js} +4 -4
  12. package/dist/bundle/{chunk-UTS5NMR3.js → chunk-2SQLHBDP.js} +1 -1
  13. package/dist/bundle/{chunk-JLXXUEAM.js → chunk-3TYER5IK.js} +13 -5
  14. package/dist/bundle/{chunk-R73VWPNL.js → chunk-4FXDUXZP.js} +6 -6
  15. package/dist/bundle/{chunk-XWBTD2WP.js → chunk-5ICUC66S.js} +2 -2
  16. package/dist/bundle/{chunk-TMJLGR4A.js → chunk-725OPCHI.js} +51 -51
  17. package/dist/bundle/{chunk-ZSAPOC7B.js → chunk-77YTUOKN.js} +22 -14
  18. package/dist/bundle/{chunk-NB52JKLR.js → chunk-7EJWHADX.js} +7 -7
  19. package/dist/bundle/{chunk-FXNCKPQ7.js → chunk-7KO5FSAW.js} +2 -2
  20. package/dist/bundle/{chunk-OWPRJLHV.js → chunk-A3KNH3Q4.js} +7 -7
  21. package/dist/bundle/{chunk-KUX54EGR.js → chunk-AGO3OVKW.js} +441 -377
  22. package/dist/bundle/{chunk-VB7FZOYX.js → chunk-AQ5RIOUE.js} +1 -1
  23. package/dist/bundle/{chunk-NAOLBEFX.js → chunk-BA5B5ZF4.js} +203 -168
  24. package/dist/bundle/{chunk-CICUPYHT.js → chunk-C4PUDTGD.js} +2 -2
  25. package/dist/bundle/{chunk-VZ5PPYDG.js → chunk-C7JPYWYQ.js} +1 -1
  26. package/dist/bundle/{chunk-DJZIFZOT.js → chunk-CJJFOT7W.js} +2 -2
  27. package/dist/bundle/{chunk-JNP3XGJI.js → chunk-CLTFTGBP.js} +15 -14
  28. package/dist/bundle/{chunk-GQIMVR7C.js → chunk-DKGKPJA3.js} +10 -10
  29. package/dist/bundle/{chunk-DTR7JO2M.js → chunk-DYCE72XB.js} +34 -34
  30. package/dist/bundle/{chunk-7PDGZFXD.js → chunk-EDWY73H7.js} +3 -3
  31. package/dist/bundle/{chunk-3ZOOTTFW.js → chunk-EJQAP6A6.js} +5 -5
  32. package/dist/bundle/{chunk-7YKWFERX.js → chunk-ESNZL7SB.js} +1 -1
  33. package/dist/bundle/{chunk-JG6LCSEX.js → chunk-FFER7KJI.js} +12 -12
  34. package/dist/bundle/{chunk-3HC5F3P7.js → chunk-FTH6WGYO.js} +1 -1
  35. package/dist/bundle/{chunk-GPUC3FTU.js → chunk-FWGNDKJK.js} +1 -1
  36. package/dist/bundle/{chunk-NISH4UXM.js → chunk-G46PNDWL.js} +1 -1
  37. package/dist/bundle/{chunk-K4DEQAEW.js → chunk-G5HG7ZWQ.js} +42 -164
  38. package/dist/bundle/{chunk-LKH3UKLO.js → chunk-G6NY7LFB.js} +3 -3
  39. package/dist/bundle/{chunk-KCM3WSER.js → chunk-GMWKNWWY.js} +1 -1
  40. package/dist/bundle/{chunk-Q7ICVP25.js → chunk-GZ7WBU5Y.js} +1 -1
  41. package/dist/bundle/{chunk-HFY7536N.js → chunk-HFDDVGDH.js} +62 -60
  42. package/dist/bundle/{chunk-BYITYTRL.js → chunk-HFRH5YJ6.js} +2 -2
  43. package/dist/bundle/{chunk-EZQ5BYNL.js → chunk-HI6MTNID.js} +4 -4
  44. package/dist/bundle/{chunk-BNURKCQG.js → chunk-HIKPVWCL.js} +2 -1
  45. package/dist/bundle/{chunk-2JHVQMVC.js → chunk-HO4JGD4Q.js} +1 -1
  46. package/dist/bundle/{chunk-WOPVBRPV.js → chunk-HUAHLO6N.js} +1 -1
  47. package/dist/bundle/{chunk-F2D3J5DR.js → chunk-HYUUAH2N.js} +6 -6
  48. package/dist/bundle/chunk-I4AWLFYH.js +377 -0
  49. package/dist/bundle/{chunk-CUW7Y2HJ.js → chunk-I4PZOWYG.js} +4 -4
  50. package/dist/bundle/chunk-IDCZ4LWS.js +150 -0
  51. package/dist/bundle/{chunk-NB7EOAUZ.js → chunk-ISQ23VKV.js} +1 -1
  52. package/dist/bundle/{chunk-IA7LLLEI.js → chunk-KLRCTMES.js} +2 -2
  53. package/dist/bundle/{chunk-GGMAIIVE.js → chunk-KYRYD4CR.js} +1 -1
  54. package/dist/bundle/{chunk-4IZ6R5FS.js → chunk-LB2CF3GG.js} +13 -13
  55. package/dist/bundle/{chunk-XEQQJBBO.js → chunk-LC7ZD2RW.js} +1 -1
  56. package/dist/bundle/{chunk-4FTIHADB.js → chunk-M65NILSA.js} +5 -5
  57. package/dist/bundle/{chunk-IWFWWO37.js → chunk-NQFG7AES.js} +7 -7
  58. package/dist/bundle/chunk-OAO3JKQD.js +463 -0
  59. package/dist/bundle/{chunk-2XBDILVW.js → chunk-OEEWVKJX.js} +1 -1
  60. package/dist/bundle/{chunk-R44KVISE.js → chunk-OVHC7OV4.js} +10 -10
  61. package/dist/bundle/{chunk-HES6YMYN.js → chunk-PT4VLN3K.js} +4 -4
  62. package/dist/bundle/chunk-QETNCUWB.js +1703 -0
  63. package/dist/bundle/{chunk-BNVISIHP.js → chunk-QK3Z7BCC.js} +5 -5
  64. package/dist/bundle/{chunk-CQHLWMKK.js → chunk-QWF3TFW4.js} +34 -25
  65. package/dist/bundle/{chunk-FTT7UDYV.js → chunk-RHEDE7D4.js} +2 -2
  66. package/dist/bundle/{chunk-7HRKUKKY.js → chunk-RI5YZ23Y.js} +20 -20
  67. package/dist/bundle/{chunk-JZUYZ2XJ.js → chunk-ROUZN6UQ.js} +19 -98
  68. package/dist/bundle/{chunk-3SKTQ2HC.js → chunk-RQD7CAGF.js} +2 -2
  69. package/dist/bundle/{chunk-BQMJYSA4.js → chunk-SBLHQAH3.js} +10 -10
  70. package/dist/bundle/{chunk-NQSKI7XK.js → chunk-SXLIADMY.js} +3 -3
  71. package/dist/bundle/{chunk-ES2FF42M.js → chunk-SYCM6SQ5.js} +12 -12
  72. package/dist/bundle/{chunk-3YM4B2GT.js → chunk-T3W4V4A6.js} +1 -1
  73. package/dist/bundle/{chunk-4N7PP76S.js → chunk-TCT5D2X2.js} +1 -1
  74. package/dist/bundle/{chunk-YWDFYQOU.js → chunk-TES7MB6I.js} +1 -1
  75. package/dist/bundle/{chunk-HCRUGAIN.js → chunk-UGFMQWAZ.js} +29 -9
  76. package/dist/bundle/{chunk-3DHJF57U.js → chunk-VA6PHTMV.js} +6 -6
  77. package/dist/bundle/{chunk-Z4BLNAWI.js → chunk-VUHH4MQW.js} +8817 -2581
  78. package/dist/bundle/{chunk-UDSL3MUU.js → chunk-W3BOR6AT.js} +7 -7
  79. package/dist/bundle/chunk-WA53OJ7V.js +160 -0
  80. package/dist/bundle/{chunk-QLJGYDWG.js → chunk-XGVMQMTS.js} +5 -5
  81. package/dist/bundle/{chunk-ZTWTEXB2.js → chunk-YP4FYLFI.js} +2 -2
  82. package/dist/bundle/{chunk-KZD3H5QA.js → chunk-ZDBWBCEO.js} +2 -2
  83. package/dist/bundle/{chunk-EV72K4IU.js → chunk-ZKVUAH5N.js} +3 -3
  84. package/dist/bundle/command-contract-V2WIL6RL.js +40 -0
  85. package/dist/bundle/{command-server-entry-RA3ZX2KV.js → command-server-entry-ZC5YF4EC.js} +25 -24
  86. package/dist/bundle/{decode-QVKRSRVF.js → decode-NXAGEUAD.js} +2 -2
  87. package/dist/bundle/{dist-ITIXJAXK.js → dist-XN2CRP3U.js} +45 -44
  88. package/dist/bundle/{echarts-O3TNDAXJ.js → echarts-QMAA7HH5.js} +2 -2
  89. package/dist/bundle/{embed-2HOODFQT.js → embed-3P3LSM2O.js} +3 -3
  90. package/dist/bundle/{embedder-22AJGCZX.js → embedder-2SANUF2X.js} +6 -6
  91. package/dist/bundle/{first-run-FU4MFXOA.js → first-run-HEZKQLJL.js} +6 -6
  92. package/dist/bundle/first-screen-7TQZ4I6X.js +41 -0
  93. package/dist/bundle/{instructions-AMH5RWVJ.js → instructions-4H7UREH2.js} +1 -1
  94. package/dist/bundle/mail.js +2 -2
  95. package/dist/bundle/meeting-combined-HF2NL4PU.js +26 -0
  96. package/dist/bundle/{meeting-model-QWGAOQHL.js → meeting-model-B7RVFB7L.js} +8 -8
  97. package/dist/bundle/{meeting-semantic-7PVO6RNB.js → meeting-semantic-YQTL7YVQ.js} +2 -2
  98. package/dist/bundle/{node-EGMCBAO7.js → node-P3PUHKYH.js} +2 -2
  99. package/dist/bundle/{node-sqlite-JXUELLMP.js → node-sqlite-OFHTCHJH.js} +4 -4
  100. package/dist/bundle/{oauth-OYAYWH4K.js → oauth-IVB5RP7T.js} +4 -4
  101. package/dist/bundle/{open-GLEUJGNA.js → open-KDGDLCWV.js} +2 -2
  102. package/dist/bundle/{openai-PYTVNB6L.js → openai-NVUBKA7Z.js} +12 -12
  103. package/dist/bundle/{process-SGHEN6MQ.js → process-AFIXYXWL.js} +1 -1
  104. package/dist/bundle/{program-7CFNZ2DF.js → program-JQ7EFODJ.js} +1615 -6308
  105. package/dist/bundle/{prompt-CYTILD7N.js → prompt-QG7FC2SA.js} +2 -2
  106. package/dist/bundle/{public-XWMXEGEF.js → public-FBD7MQUM.js} +42 -34
  107. package/dist/bundle/{recognize-26UNETSQ.js → recognize-ZBR5KNID.js} +1 -1
  108. package/dist/bundle/{remote-PKXBQA5N.js → remote-QOTHNO2M.js} +6 -6
  109. package/dist/bundle/{rerank-LLKP7M6Q.js → rerank-JD2NIUW6.js} +4 -4
  110. package/dist/bundle/{serve-ZRJEAPJI.js → serve-QZT3FKK7.js} +6 -6
  111. package/dist/bundle/{server-4OQ4G5JY.js → server-M6JJ7IKS.js} +55 -54
  112. package/dist/bundle/server-TAMXMWK6.js +87 -0
  113. package/dist/bundle/{sqlite-runtime-667VV4VY.js → sqlite-runtime-N2PY7C7J.js} +3 -3
  114. package/dist/bundle/{state-V3CAAJBE.js → state-OGRUMU7P.js} +3 -3
  115. package/dist/bundle/{store-BJCIMIAH.js → store-7UE63OQR.js} +52 -41
  116. package/dist/bundle/{store-GLBBY4OZ.js → store-DGJKE4ZJ.js} +21 -19
  117. package/dist/bundle/store-maintenance-command-WIDKMZLK.js +74 -0
  118. package/dist/bundle/surface-LTEEEZU4.js +73 -0
  119. package/dist/commands/sync.d.ts.map +1 -1
  120. package/dist/commands/sync.js +28 -4
  121. package/dist/commands/sync.js.map +1 -1
  122. package/dist/identity.d.ts.map +1 -1
  123. package/dist/identity.js +1 -0
  124. package/dist/identity.js.map +1 -1
  125. package/dist/mail/send-as.d.ts +21 -0
  126. package/dist/mail/send-as.d.ts.map +1 -0
  127. package/dist/mail/send-as.js +66 -0
  128. package/dist/mail/send-as.js.map +1 -0
  129. package/dist/mail/send.d.ts.map +1 -1
  130. package/dist/mail/send.js +3 -1
  131. package/dist/mail/send.js.map +1 -1
  132. package/dist/version.d.ts +1 -1
  133. package/dist/version.js +1 -1
  134. package/package.json +2 -2
  135. package/dist/bundle/agent-OU4K7TKQ.js +0 -40
  136. package/dist/bundle/chunk-G4VJN75G.js +0 -806
  137. package/dist/bundle/chunk-OZKZT3ZI.js +0 -79
  138. package/dist/bundle/chunk-RRTMPSQR.js +0 -29
  139. package/dist/bundle/chunk-VYCB5EVI.js +0 -721
  140. package/dist/bundle/command-contract-UC6IGCCM.js +0 -39
  141. package/dist/bundle/first-screen-A7SEI2ON.js +0 -40
  142. package/dist/bundle/meeting-combined-KC6YGWA7.js +0 -24
  143. package/dist/bundle/server-VVRQ4A34.js +0 -86
  144. package/dist/bundle/store-maintenance-command-N7L5OVUE.js +0 -73
  145. package/dist/bundle/surface-26EUQNDT.js +0 -72
  146. /package/dist/bundle/{chunk-KXJ3JEDH.js → chunk-7ECP5ZQR.js} +0 -0
  147. /package/dist/bundle/{chunk-XXPJF2VD.js → chunk-TQDSBLQB.js} +0 -0
@@ -1,79 +0,0 @@
1
- import { createRequire as __bundleRequire } from "node:module";
2
- const require = __bundleRequire(import.meta.url);
3
- import {
4
- QUERY_LIMITS,
5
- queryError
6
- } from "./chunk-TMJLGR4A.js";
7
- import {
8
- CliError,
9
- isCliError
10
- } from "./chunk-S6JG4YUH.js";
11
- import {
12
- __name
13
- } from "./chunk-ZVVMGPBJ.js";
14
-
15
- // 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/search/lucene/types.js
16
- var QUERY_VERSION = 1;
17
- var QUERY_LIMITS2 = {
18
- ...QUERY_LIMITS,
19
- pattern: 1024,
20
- states: 1e4,
21
- expansions: 1e4,
22
- candidates: 5e4,
23
- bodyBytes: 8388608,
24
- milliseconds: 2e3,
25
- work: 1e7
26
- };
27
- var SEARCH_QUERY = {
28
- command: "search",
29
- guide: "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md"
30
- };
31
- var MESSAGE_PARSING = { ...SEARCH_QUERY, proximity: true };
32
- var MOST_WORDS_APART = 50;
33
- function searchError(reason, span, alternative) {
34
- queryError(reason, span, alternative, SEARCH_QUERY);
35
- }
36
- __name(searchError, "searchError");
37
- var ANSWER_MS = 1e3;
38
- var searchTimeLimit = /* @__PURE__ */ __name((deadline, now = Date.now()) => deadline?.explicit ? Math.max(QUERY_LIMITS2.milliseconds, deadline.endsAt - now - ANSWER_MS) : void 0, "searchTimeLimit");
39
- function outOfTime(limitMs = QUERY_LIMITS2.milliseconds) {
40
- throw new CliError("timeout", `search stopped at its time limit of ${limitMs / 1e3}s \u2014 the query is valid; add chat: or date: to search less of the store`, { reason: "query.time-limit", budget: "time", limit_ms: limitMs, complete: false });
41
- }
42
- __name(outOfTime, "outOfTime");
43
- var isQueryLimit = /* @__PURE__ */ __name((error) => isCliError(error) && (error.details.reason === "query.too-large" || error.details.reason === "query.time-limit"), "isQueryLimit");
44
- var SQLITE_TOO_LARGE = /nested too deep|too many terms in compound SELECT|Expression tree is too large|parser stack overflow/;
45
- var sqliteLimit = /* @__PURE__ */ __name((error) => {
46
- if (error instanceof Error && SQLITE_TOO_LARGE.test(error.message))
47
- exhausted("nodes");
48
- return error;
49
- }, "sqliteLimit");
50
- function exhausted(budget) {
51
- throw new CliError("validation_error", `search exceeded its ${budget} budget \u2014 narrow the chat or date range`, {
52
- reason: "query.too-large",
53
- budget,
54
- complete: false
55
- });
56
- }
57
- __name(exhausted, "exhausted");
58
- function tooWideTerm([term], budget) {
59
- if (term === void 0)
60
- exhausted(budget);
61
- const part = term.replace(/[*?]+/gu, " ").trim().split(/\s+/u).sort((a, b) => b.length - a.length)[0] ?? term;
62
- throw new CliError("validation_error", `search exceeded its ${budget} budget: ${term} is checked word by word, and too many messages hold it \u2014 write *${part}* (any word holding it, read from the index), more of the word, or add chat: or date:`, { reason: "query.too-large", budget, term, complete: false });
63
- }
64
- __name(tooWideTerm, "tooWideTerm");
65
-
66
- export {
67
- QUERY_VERSION,
68
- QUERY_LIMITS2 as QUERY_LIMITS,
69
- SEARCH_QUERY,
70
- MESSAGE_PARSING,
71
- MOST_WORDS_APART,
72
- searchError,
73
- searchTimeLimit,
74
- outOfTime,
75
- isQueryLimit,
76
- sqliteLimit,
77
- exhausted,
78
- tooWideTerm
79
- };
@@ -1,29 +0,0 @@
1
- import { createRequire as __bundleRequire } from "node:module";
2
- const require = __bundleRequire(import.meta.url);
3
- import {
4
- CliError,
5
- singleLine
6
- } from "./chunk-S6JG4YUH.js";
7
- import {
8
- __name
9
- } from "./chunk-ZVVMGPBJ.js";
10
-
11
- // 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/tags.js
12
- var TAG_TYPES = ["chat", "contact", "message", "task"];
13
- var TAG = /^[a-z0-9-]{1,32}$/;
14
- var tagOf = /* @__PURE__ */ __name((value) => {
15
- const tag = value.trim().toLowerCase();
16
- return TAG.test(tag) ? tag : void 0;
17
- }, "tagOf");
18
- var normalizeTag = /* @__PURE__ */ __name((value) => {
19
- const tag = tagOf(value);
20
- if (tag === void 0)
21
- throw new CliError("validation_error", `"${singleLine(value)}" is not a tag \u2014 use 1\u201332 letters a\u2013z, digits and hyphens`, { reason: "tag.invalid" });
22
- return tag;
23
- }, "normalizeTag");
24
-
25
- export {
26
- TAG_TYPES,
27
- tagOf,
28
- normalizeTag
29
- };