@wirecat/mail-cli 0.17.0 → 0.18.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 (111) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/bin/mail.js +2 -2
  3. package/dist/bundle/{all-profiles-55AU2Q2N.js → all-profiles-4CVOXA5Y.js} +10 -10
  4. package/dist/bundle/{anthropic-I7RI7YPK.js → anthropic-5VIKYINO.js} +6 -6
  5. package/dist/bundle/{app-server-NY72GTQA.js → app-server-LTSQBDPF.js} +53 -50
  6. package/dist/bundle/{bun-C2R7UPM2.js → bun-C7DBRUW2.js} +2 -2
  7. package/dist/bundle/{bun-sqlite-RNPHH3KC.js → bun-sqlite-Y5JKT62B.js} +5 -5
  8. package/dist/bundle/{chunk-YO7BLBVE.js → chunk-23HWKHPZ.js} +301 -259
  9. package/dist/bundle/{chunk-OHS5CYZI.js → chunk-2NWOYXPJ.js} +56 -56
  10. package/dist/bundle/{chunk-JSB6BTPT.js → chunk-3DQYO7FB.js} +1 -1
  11. package/dist/bundle/{chunk-B73I6KLW.js → chunk-3W5H4TM7.js} +184 -16
  12. package/dist/bundle/{chunk-2EVM7GV5.js → chunk-3YRE6DNM.js} +8 -8
  13. package/dist/bundle/{chunk-YIJRPPF5.js → chunk-43I5XD7S.js} +1 -1
  14. package/dist/bundle/{chunk-HZL42476.js → chunk-5S6Q3SWU.js} +4 -2
  15. package/dist/bundle/{chunk-DG43I7MC.js → chunk-6RO5RDNR.js} +27 -9
  16. package/dist/bundle/{chunk-J7XH6CJC.js → chunk-7P4ICYJT.js} +1 -1
  17. package/dist/bundle/{chunk-BWCYUXF7.js → chunk-7SWWVDEZ.js} +4 -4
  18. package/dist/bundle/{chunk-24H2KUGW.js → chunk-A5OMARL4.js} +28 -28
  19. package/dist/bundle/{chunk-QDX2O5BN.js → chunk-ACLILULA.js} +3 -3
  20. package/dist/bundle/{chunk-QRNL5DIS.js → chunk-AOMSP4EI.js} +6 -6
  21. package/dist/bundle/{chunk-XJQJ3ZIY.js → chunk-BHNBWFT5.js} +8 -8
  22. package/dist/bundle/{chunk-LNC7XMEQ.js → chunk-BMFPCW6Q.js} +4 -4
  23. package/dist/bundle/{chunk-MG4NWXWI.js → chunk-BMGVKULS.js} +4 -4
  24. package/dist/bundle/{chunk-4HTTN4NO.js → chunk-BMV56JCL.js} +19 -19
  25. package/dist/bundle/{chunk-22WVQJW3.js → chunk-C4RUKMDT.js} +16 -10
  26. package/dist/bundle/{chunk-QU5TWVG5.js → chunk-C5T5K7HW.js} +127 -27
  27. package/dist/bundle/{chunk-KJKRLI2S.js → chunk-CPEN6BZZ.js} +2 -2
  28. package/dist/bundle/{chunk-YHUCNI2W.js → chunk-DALBYUPC.js} +2 -2
  29. package/dist/bundle/{chunk-6NN5ZX5T.js → chunk-DPSH46NO.js} +5 -5
  30. package/dist/bundle/{chunk-CHVHIDNK.js → chunk-EFP5NN7I.js} +3 -3
  31. package/dist/bundle/{chunk-22IKW3TY.js → chunk-ERBEBORA.js} +14 -14
  32. package/dist/bundle/{chunk-YCOBSDZY.js → chunk-FLOOPXOT.js} +12 -12
  33. package/dist/bundle/{chunk-F4P3VDJZ.js → chunk-GLLLYACZ.js} +6 -6
  34. package/dist/bundle/{chunk-S4NIDBLI.js → chunk-GRP67IQ4.js} +56 -47
  35. package/dist/bundle/{chunk-T4RRZILQ.js → chunk-HFUS33UT.js} +2 -2
  36. package/dist/bundle/{chunk-RFFE5ACS.js → chunk-HTFBXGJF.js} +2 -2
  37. package/dist/bundle/{chunk-MTFTMPB6.js → chunk-IANOK5SE.js} +2 -2
  38. package/dist/bundle/{chunk-WHI3LTAW.js → chunk-ITUC5WAV.js} +1 -1
  39. package/dist/bundle/{chunk-VMXMHC6E.js → chunk-JO3BIMYK.js} +3 -3
  40. package/dist/bundle/{chunk-45JQ72CH.js → chunk-KVSC657S.js} +19 -12
  41. package/dist/bundle/{chunk-OFZDCUUJ.js → chunk-L3YX7A5M.js} +7 -7
  42. package/dist/bundle/{chunk-2CY44MKY.js → chunk-M7C4IGJ6.js} +8 -8
  43. package/dist/bundle/{chunk-GBM7FFFI.js → chunk-MCR43SWG.js} +4 -4
  44. package/dist/bundle/{chunk-YB47AQWE.js → chunk-N5VEJ3E7.js} +10 -10
  45. package/dist/bundle/{chunk-IPFFPD3M.js → chunk-NDJZQCF3.js} +297 -174
  46. package/dist/bundle/{chunk-R3G33QIV.js → chunk-OLJDZTHB.js} +13 -13
  47. package/dist/bundle/{chunk-CHC2LWKY.js → chunk-OMKPALMX.js} +2 -2
  48. package/dist/bundle/{chunk-MRTSDBTN.js → chunk-OUGGAAXI.js} +1508 -559
  49. package/dist/bundle/{chunk-SHEVFBZT.js → chunk-P6WCG6X2.js} +36 -30
  50. package/dist/bundle/{chunk-GYCJQGFO.js → chunk-QPF4LTK5.js} +6 -6
  51. package/dist/bundle/{chunk-WOFGEJ6W.js → chunk-RIO3TD3I.js} +1 -1
  52. package/dist/bundle/{chunk-RIAHISWA.js → chunk-RQSF7X22.js} +1 -1
  53. package/dist/bundle/{chunk-2ON2PDHC.js → chunk-SIYT2BBI.js} +10 -10
  54. package/dist/bundle/{chunk-M6GLFDWV.js → chunk-SMS5YNPB.js} +3 -3
  55. package/dist/bundle/{chunk-H32SKDF2.js → chunk-SW2KERUB.js} +640 -123
  56. package/dist/bundle/{chunk-BPDUVWL2.js → chunk-TVZ77ZOV.js} +2 -2
  57. package/dist/bundle/{chunk-SQAAOEGI.js → chunk-U43HUE35.js} +9 -9
  58. package/dist/bundle/{chunk-RQGTRB73.js → chunk-UEGABYXI.js} +3 -3
  59. package/dist/bundle/{chunk-TCYLDGRA.js → chunk-UHC5I3JV.js} +1 -1
  60. package/dist/bundle/{chunk-XOJ5E777.js → chunk-UWL2IOII.js} +4 -4
  61. package/dist/bundle/{chunk-ITMGJX7I.js → chunk-UXD5JMS5.js} +1 -1
  62. package/dist/bundle/{chunk-JI225TBX.js → chunk-WA3DQSAZ.js} +2 -2
  63. package/dist/bundle/{chunk-VXBUDZV3.js → chunk-XGTW3GRX.js} +2 -2
  64. package/dist/bundle/{chunk-QEO7MI3E.js → chunk-YA2JPMYX.js} +2 -2
  65. package/dist/bundle/{chunk-A3PKKY24.js → chunk-ZLH465EU.js} +1 -1
  66. package/dist/bundle/{chunk-BD7OK4P5.js → chunk-ZT2Y267T.js} +3 -3
  67. package/dist/bundle/command-contract-Y3GIKCPB.js +34 -0
  68. package/dist/bundle/{decode-5AYG6LLW.js → decode-WVIDLK4E.js} +5 -5
  69. package/dist/bundle/{dispatch-EVLWT6N3.js → dispatch-R5OF2FVZ.js} +8 -8
  70. package/dist/bundle/{dist-JRTLLLLG.js → dist-KGQWS3XL.js} +24 -14
  71. package/dist/bundle/{echarts-EFAEE4D2.js → echarts-VMKACZBF.js} +2 -2
  72. package/dist/bundle/{embed-6SSOYGZQ.js → embed-EQINOOST.js} +6 -6
  73. package/dist/bundle/{embedder-VFSLGHBO.js → embedder-LM52TDRN.js} +9 -9
  74. package/dist/bundle/{failure-RBBZ7F3L.js → failure-WYKVF6RH.js} +2 -2
  75. package/dist/bundle/{first-run-PVEHOQOD.js → first-run-H4VXZAAF.js} +11 -11
  76. package/dist/bundle/first-screen-ZP74TJLK.js +32 -0
  77. package/dist/bundle/{instructions-EOLC3GYB.js → instructions-NLSME663.js} +1 -1
  78. package/dist/bundle/mail.js +12 -12
  79. package/dist/bundle/{mcp-JYLZR5LQ.js → mcp-CFVG2OUS.js} +2 -2
  80. package/dist/bundle/{node-2ZRMQAYF.js → node-FGMSXLTA.js} +2 -2
  81. package/dist/bundle/{node-sqlite-UKWOBONA.js → node-sqlite-K3T3ZRBY.js} +6 -6
  82. package/dist/bundle/{oauth-HFD46WAY.js → oauth-OJKJ6JLH.js} +7 -7
  83. package/dist/bundle/{open-2DLCQUC4.js → open-DCYIXHXS.js} +5 -5
  84. package/dist/bundle/{openai-A7YLLQEE.js → openai-C4H4W57J.js} +14 -14
  85. package/dist/bundle/{process-I3INVLFQ.js → process-MN4NSYGA.js} +1 -1
  86. package/dist/bundle/{program-4ZCATQND.js → program-ZZZOKWCX.js} +1028 -642
  87. package/dist/bundle/{prompt-R636OFYK.js → prompt-ELEJUDAU.js} +5 -5
  88. package/dist/bundle/{recognize-G4WUSU5I.js → recognize-G2FVMI5M.js} +4 -4
  89. package/dist/bundle/{remote-BMXVVYTN.js → remote-F4YVSEYM.js} +7 -7
  90. package/dist/bundle/{rerank-7W3QEZ3Q.js → rerank-7VM5R5N6.js} +7 -7
  91. package/dist/bundle/{serve-JQCPQYOJ.js → serve-A7NRFPRN.js} +9 -9
  92. package/dist/bundle/{server-IMOCOYXH.js → server-7R2BEIRY.js} +39 -39
  93. package/dist/bundle/server-DFJA2HBO.js +64 -0
  94. package/dist/bundle/{sqlite-runtime-H2IEHDRZ.js → sqlite-runtime-4SKUB4EN.js} +6 -6
  95. package/dist/bundle/{state-J5N3Y4LX.js → state-S2FKK2XB.js} +6 -6
  96. package/dist/bundle/{store-C4TIYTGI.js → store-4HAARQVR.js} +26 -18
  97. package/dist/bundle/{store-U5WIT3P4.js → store-FLHO3UMA.js} +17 -15
  98. package/dist/bundle/store-maintenance-command-BINJIQ6F.js +54 -0
  99. package/dist/commands/restore.js +1 -1
  100. package/dist/commands/restore.js.map +1 -1
  101. package/dist/commands/status.d.ts.map +1 -1
  102. package/dist/commands/status.js +2 -8
  103. package/dist/commands/status.js.map +1 -1
  104. package/dist/version.d.ts +1 -1
  105. package/dist/version.js +1 -1
  106. package/package.json +3 -3
  107. package/dist/bundle/command-contract-AUPKK5Y4.js +0 -34
  108. package/dist/bundle/first-screen-7ONKJ7QW.js +0 -32
  109. package/dist/bundle/server-GYVOIGF5.js +0 -64
  110. package/dist/bundle/store-maintenance-command-WRRZ7Q7B.js +0 -54
  111. /package/dist/bundle/{chunk-CNMSF5QU.js → chunk-QZLK2ISN.js} +0 -0
@@ -5,23 +5,23 @@ import {
5
5
  installFiles,
6
6
  megabytes,
7
7
  sharedModelsDirectory
8
- } from "./chunk-GBM7FFFI.js";
8
+ } from "./chunk-MCR43SWG.js";
9
9
  import {
10
10
  importFrom
11
11
  } from "./chunk-Y5E2WNWB.js";
12
12
  import {
13
13
  CliError
14
- } from "./chunk-YHUCNI2W.js";
14
+ } from "./chunk-DALBYUPC.js";
15
15
  import {
16
16
  __name
17
17
  } from "./chunk-ZVVMGPBJ.js";
18
18
 
19
- // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
19
+ // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/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.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/embeddings/onnx-runtime.js
24
+ // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/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.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/embeddings/onnx-runtime.js
681
+ // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/embeddings/onnx-runtime.js
682
682
  var ONNX_RUNTIME_VERSION = "1.30.0";
683
683
  var release = /* @__PURE__ */ __name((name, sha256, bytes) => ({
684
684
  name,
@@ -858,7 +858,7 @@ var openSession = /* @__PURE__ */ __name(async (bytes, threads, options = {}) =>
858
858
  return { ort, session: await ort.InferenceSession.create(bytes, options) };
859
859
  }, "openSession");
860
860
 
861
- // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
861
+ // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
862
862
  var textModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedModelsDirectory("text", env), "textModelsDirectory");
863
863
  var placedText = /* @__PURE__ */ __name((model, directory) => model.files.map((file) => [file, join2(directory, model.id, file.name)]), "placedText");
864
864
  var isTextModelInstalled = /* @__PURE__ */ __name((model, directory) => filesPresent(placedText(model, directory)), "isTextModelInstalled");
@@ -8,14 +8,14 @@ import {
8
8
  refuseLacking,
9
9
  servicesFor,
10
10
  throughWrapper
11
- } from "./chunk-YO7BLBVE.js";
11
+ } from "./chunk-23HWKHPZ.js";
12
12
  import {
13
13
  chatReferenceOf,
14
14
  ensureAccount,
15
15
  foldName,
16
16
  isId,
17
17
  pickPerson
18
- } from "./chunk-2ON2PDHC.js";
18
+ } from "./chunk-SIYT2BBI.js";
19
19
  import {
20
20
  LOG_ATTRIBUTES,
21
21
  MESSENGER_CHANGE_REFUSAL,
@@ -35,7 +35,7 @@ import {
35
35
  recalledAccount,
36
36
  rememberAccount,
37
37
  rootOf2 as rootOf
38
- } from "./chunk-IPFFPD3M.js";
38
+ } from "./chunk-NDJZQCF3.js";
39
39
  import {
40
40
  AUTHORITY_KEY,
41
41
  CEILING_KEY,
@@ -46,34 +46,34 @@ import {
46
46
  levelFor,
47
47
  readKeysForCommand,
48
48
  skipFlagFor
49
- } from "./chunk-OFZDCUUJ.js";
49
+ } from "./chunk-L3YX7A5M.js";
50
50
  import {
51
51
  isCliFailure,
52
52
  providerErrorKey
53
- } from "./chunk-SQAAOEGI.js";
53
+ } from "./chunk-U43HUE35.js";
54
54
  import {
55
55
  servingProfiles
56
- } from "./chunk-RQGTRB73.js";
56
+ } from "./chunk-UEGABYXI.js";
57
57
  import {
58
58
  openStore
59
- } from "./chunk-MRTSDBTN.js";
59
+ } from "./chunk-OUGGAAXI.js";
60
60
  import {
61
61
  logRecordOf,
62
62
  realSleep,
63
63
  resolvePaths,
64
64
  writeSecurely
65
- } from "./chunk-4HTTN4NO.js";
65
+ } from "./chunk-BMV56JCL.js";
66
66
  import {
67
67
  CliError
68
- } from "./chunk-YHUCNI2W.js";
68
+ } from "./chunk-DALBYUPC.js";
69
69
  import {
70
70
  __name
71
71
  } from "./chunk-ZVVMGPBJ.js";
72
72
 
73
- // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/sends/guard.js
73
+ // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/sends/guard.js
74
74
  import { randomUUID } from "node:crypto";
75
75
 
76
- // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/sends/flood.js
76
+ // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/sends/flood.js
77
77
  import { mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
78
78
  import { dirname, join } from "node:path";
79
79
  var MOST_DEADLINES = 50;
@@ -157,11 +157,11 @@ var FloodMemory = class {
157
157
  }
158
158
  };
159
159
 
160
- // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/sends/journal.js
160
+ // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/sends/journal.js
161
161
  import { appendFileSync, mkdirSync as mkdirSync3, readFileSync as readFileSync2 } from "node:fs";
162
162
  import { dirname as dirname3, join as join2 } from "node:path";
163
163
 
164
- // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/sends/file-lock.js
164
+ // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/sends/file-lock.js
165
165
  import { closeSync, mkdirSync as mkdirSync2, openSync, statSync, unlinkSync } from "node:fs";
166
166
  import { dirname as dirname2 } from "node:path";
167
167
  var LOCK_WAIT_MS = 5e3;
@@ -228,7 +228,7 @@ var lockTime = /* @__PURE__ */ __name((lock) => {
228
228
  }
229
229
  }, "lockTime");
230
230
 
231
- // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/sends/journal.js
231
+ // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/sends/journal.js
232
232
  var sendsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "sends", `${profile}.jsonl`), "sendsPathFor");
233
233
  var SendJournal = class {
234
234
  static {
@@ -305,7 +305,7 @@ var withSendId = /* @__PURE__ */ __name((entry) => {
305
305
  return cid === void 0 || rest.sendId !== void 0 ? rest : { ...rest, sendId: String(cid) };
306
306
  }, "withSendId");
307
307
 
308
- // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/sends/recipients.js
308
+ // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/sends/recipients.js
309
309
  import { existsSync, readFileSync as readFileSync3, rmSync } from "node:fs";
310
310
  import { join as join3 } from "node:path";
311
311
  var recipientsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "profiles", `${profile}.recipients.json`), "recipientsPathFor");
@@ -417,7 +417,7 @@ var RecipientList = class {
417
417
  }
418
418
  };
419
419
 
420
- // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/sends/guard.js
420
+ // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/sends/guard.js
421
421
  var HOUR_MS = 60 * 60 * 1e3;
422
422
  var READS_UNDER_HOLD = /* @__PURE__ */ new Set([
423
423
  "attachments.extract",
@@ -610,7 +610,7 @@ var guardFor = /* @__PURE__ */ __name((app, settings, warn, env = process.env, a
610
610
  }), "guardFor");
611
611
  var journalFailure = /* @__PURE__ */ __name((error) => error?.code ?? (error instanceof Error ? error.name : "error"), "journalFailure");
612
612
 
613
- // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/cli/messenger/ask.js
613
+ // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/cli/messenger/ask.js
614
614
  import { openSync as openSync2 } from "node:fs";
615
615
  import { createInterface } from "node:readline";
616
616
  import { ReadStream } from "node:tty";
@@ -665,7 +665,7 @@ var terminalAsker = /* @__PURE__ */ __name((command) => async (key, request) =>
665
665
  throw new CliError("cancelled", `${key}: not done \u2014 the answer was no`);
666
666
  }, "terminalAsker");
667
667
 
668
- // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/sends/pace.js
668
+ // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/sends/pace.js
669
669
  import { readFileSync as readFileSync4, renameSync as renameSync2, writeFileSync as writeFileSync2 } from "node:fs";
670
670
  import { join as join4 } from "node:path";
671
671
  var DEFAULT_PACE = { perMinute: 60, burst: 20 };
@@ -723,8 +723,39 @@ var Pacer = class {
723
723
  renameSync2(temporary, this.path);
724
724
  }
725
725
  };
726
+ var ANNOUNCE_WAIT_MS = 5e3;
727
+ var LONGEST_PACE_WAIT_MS = 5 * 6e4;
728
+ var waitForTurn = /* @__PURE__ */ __name(async (pacer, options) => {
729
+ const { name, operation, warn } = options;
730
+ const now = options.now ?? Date.now;
731
+ let at = now();
732
+ try {
733
+ at = await pacer.reserve();
734
+ } catch (error) {
735
+ warn?.(`could not remember ${name}'s wait (${error instanceof Error ? error.message : String(error)})`, {
736
+ event: "warning",
737
+ code: "wait_not_remembered",
738
+ operation
739
+ });
740
+ }
741
+ const waitMs = at - now();
742
+ if (waitMs <= 0)
743
+ return;
744
+ if (waitMs > LONGEST_PACE_WAIT_MS)
745
+ throw new CliError("rate_limited", `${name} asked this profile to wait, ${Math.ceil(waitMs / 1e3)} s are left \u2014 nothing was sent to ${name}`, { retry_after_ms: waitMs, retry_at: new Date(at).toISOString(), remembered: true });
746
+ if (waitMs >= ANNOUNCE_WAIT_MS) {
747
+ const seconds = Math.ceil(waitMs / 1e3);
748
+ warn?.(`waiting ${seconds} s to keep this profile's pace with ${name}`, {
749
+ event: "warning",
750
+ code: "pace_wait",
751
+ operation,
752
+ counts: { seconds }
753
+ });
754
+ }
755
+ await (options.sleep ?? ((ms) => new Promise((resolve) => setTimeout(resolve, ms))))(waitMs);
756
+ }, "waitForTurn");
726
757
 
727
- // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/cli/permission-keys.js
758
+ // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/cli/permission-keys.js
728
759
  var HOUSEKEEPING = /* @__PURE__ */ new Set([
729
760
  "help",
730
761
  "guide",
@@ -804,12 +835,10 @@ var refuseUnknownPermissionKeys = /* @__PURE__ */ __name((command, settings, too
804
835
  throw new CliError("validation_error", `--permission ${key} names no command`, { permission: key });
805
836
  }, "refuseUnknownPermissionKeys");
806
837
 
807
- // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
838
+ // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
808
839
  var LONG_LIVED = /* @__PURE__ */ new Set(["self", "newSendId", "close", "formatMarkdown", "formatHtml", "storedChats"]);
809
840
  var LISTENING = /* @__PURE__ */ new Set(["watch", "feed", "listen", "listenHistory"]);
810
841
  var BLOCKING = /* @__PURE__ */ new Set(["frozen", "limited", "banned"]);
811
- var ANNOUNCE_WAIT_MS = 5e3;
812
- var LONGEST_PACE_WAIT_MS = 5 * 6e4;
813
842
  var chatOf = /* @__PURE__ */ __name((args) => typeof args[0] === "string" && /^-?\d+$/.test(args[0]) ? args[0] : void 0, "chatOf");
814
843
  var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer }) => {
815
844
  const kept = /* @__PURE__ */ __name(async (operation, what2) => {
@@ -865,28 +894,8 @@ var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer })
865
894
  await kept(operation, () => pacer.holdFor(waitMs));
866
895
  }, "noted");
867
896
  const turn = /* @__PURE__ */ __name(async (operation) => {
868
- if (!pacer)
869
- return;
870
- let at = Date.now();
871
- await kept(operation, async () => {
872
- at = await pacer.reserve();
873
- });
874
- const waitMs = at - Date.now();
875
- if (waitMs <= 0)
876
- return;
877
- if (waitMs > LONGEST_PACE_WAIT_MS) {
878
- throw new CliError("rate_limited", `${name} asked this profile to wait, ${Math.ceil(waitMs / 1e3)} s are left \u2014 nothing was sent to ${name}`, { retry_after_ms: waitMs, retry_at: new Date(at).toISOString(), remembered: true });
879
- }
880
- if (waitMs >= ANNOUNCE_WAIT_MS) {
881
- const seconds = Math.ceil(waitMs / 1e3);
882
- warn(`waiting ${seconds} s to keep this profile's pace with ${name}`, {
883
- event: "warning",
884
- code: "pace_wait",
885
- operation,
886
- counts: { seconds }
887
- });
888
- }
889
- await new Promise((resolve) => setTimeout(resolve, waitMs));
897
+ if (pacer)
898
+ await waitForTurn(pacer, { name, operation, warn });
890
899
  }, "turn");
891
900
  return throughWrapper(messenger, {}, (operation, call) => {
892
901
  if (LONG_LIVED.has(operation))
@@ -923,7 +932,7 @@ var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer })
923
932
  });
924
933
  }, "flooded");
925
934
 
926
- // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/cli/messenger/observed.js
935
+ // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/cli/messenger/observed.js
927
936
  var observed = /* @__PURE__ */ __name((messenger, events) => {
928
937
  const timed = /* @__PURE__ */ __name(async (operation, named, work, after) => {
929
938
  const write = currentOperation();
@@ -1022,7 +1031,7 @@ var byPart = /* @__PURE__ */ __name((batch, counts) => {
1022
1031
  counts[part] = (counts[part] ?? 0) + items.length;
1023
1032
  }, "byPart");
1024
1033
 
1025
- // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/cli/messenger/stored.js
1034
+ // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/cli/messenger/stored.js
1026
1035
  var REKEY_PACING = { lockMs: 50, pauseMs: 25 };
1027
1036
  var stored = /* @__PURE__ */ __name((messenger, { account, store, warn, events, pending, announcing, deletedWithoutChat, profile, rekeyed, rekeyPacing = REKEY_PACING, closing, namesFromStore, recipientIds, countsUnread = false, historyLimits, command = "cli" }) => {
1028
1037
  let warned = false;
@@ -1598,7 +1607,7 @@ var keep = /* @__PURE__ */ __name(async (store, account, event, seenAt, among, c
1598
1607
  }
1599
1608
  }, "keep");
1600
1609
 
1601
- // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/cli/messenger/context.js
1610
+ // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/cli/messenger/context.js
1602
1611
  var lazyStore = /* @__PURE__ */ __name((env, command, version) => {
1603
1612
  let opened;
1604
1613
  return {
@@ -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-XJQJ3ZIY.js";
5
+ } from "./chunk-BHNBWFT5.js";
6
6
 
7
7
  // dist/reasons.js
8
8
  var ENTRIES = [
@@ -49,7 +49,7 @@ var ENTRIES = [
49
49
  var REASONS = defineReasons(ENTRIES.map(([reason, code, message]) => ({ reason, code, message, details: [] })));
50
50
 
51
51
  // dist/version.js
52
- var VERSION = "0.17.0";
52
+ var VERSION = "0.18.0";
53
53
 
54
54
  // dist/identity.js
55
55
  var PACKAGE = "@wirecat/mail-cli";
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  resolvePaths
5
- } from "./chunk-4HTTN4NO.js";
5
+ } from "./chunk-BMV56JCL.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/store/path.js
10
+ // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/store/path.js
11
11
  import { userInfo } from "node:os";
12
12
  import { isAbsolute, join, relative, resolve } from "node:path";
13
13
  var wirecatDirectory = /* @__PURE__ */ __name((env = process.env, platform) => resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env, ...platform ? { platform } : {} }).state, "wirecatDirectory");
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  CAPABILITY_STATEMENTS,
5
5
  storeCapable
6
- } from "./chunk-QRNL5DIS.js";
6
+ } from "./chunk-AOMSP4EI.js";
7
7
  import {
8
8
  importFrom
9
9
  } from "./chunk-Y5E2WNWB.js";
@@ -11,7 +11,7 @@ import {
11
11
  __name
12
12
  } from "./chunk-ZVVMGPBJ.js";
13
13
 
14
- // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/sqlite-runtime.js
14
+ // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/sqlite-runtime.js
15
15
  import { spawn, spawnSync } from "node:child_process";
16
16
  import { readFileSync } from "node:fs";
17
17
  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.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/background/processes.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/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) => {
@@ -9,15 +9,15 @@ import {
9
9
  optional,
10
10
  pipe,
11
11
  safeParse
12
- } from "./chunk-XJQJ3ZIY.js";
12
+ } from "./chunk-BHNBWFT5.js";
13
13
  import {
14
14
  CliError
15
- } from "./chunk-YHUCNI2W.js";
15
+ } from "./chunk-DALBYUPC.js";
16
16
  import {
17
17
  __name
18
18
  } from "./chunk-ZVVMGPBJ.js";
19
19
 
20
- // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/models/options.js
20
+ // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/models/options.js
21
21
  var checkedOptions = /* @__PURE__ */ __name((provider, schema, options) => {
22
22
  const parsed = safeParse(schema, options);
23
23
  if (!parsed.success) {
@@ -4,16 +4,16 @@ import {
4
4
  formatMeetingReference,
5
5
  moneyLabel,
6
6
  parseMeetingReference
7
- } from "./chunk-OHS5CYZI.js";
7
+ } from "./chunk-2NWOYXPJ.js";
8
8
  import {
9
9
  CliError,
10
10
  singleLine
11
- } from "./chunk-YHUCNI2W.js";
11
+ } from "./chunk-DALBYUPC.js";
12
12
  import {
13
13
  __name
14
14
  } from "./chunk-ZVVMGPBJ.js";
15
15
 
16
- // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/domain/locator.js
16
+ // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/domain/locator.js
17
17
  var SCHEME = "msg:";
18
18
  var formatLocator = /* @__PURE__ */ __name(({ provider, account, chat, message }) => SCHEME + [provider, account, chat, message].map(encodeURIComponent).join("/"), "formatLocator");
19
19
  var isLocator = /* @__PURE__ */ __name((reference) => reference.trim().startsWith(SCHEME), "isLocator");
@@ -27,7 +27,7 @@ var parseLocator = /* @__PURE__ */ __name((reference) => {
27
27
  return { provider, account, chat, message };
28
28
  }, "parseLocator");
29
29
 
30
- // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/domain/references.js
30
+ // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/domain/references.js
31
31
  var SIMPLE_REFERENCES = [
32
32
  "note",
33
33
  "document",
@@ -43,6 +43,8 @@ var SIMPLE_REFERENCES = [
43
43
  "payment",
44
44
  "order",
45
45
  "deal",
46
+ "lead",
47
+ "pipeline",
46
48
  "entity"
47
49
  ];
48
50
  var malformed = /* @__PURE__ */ __name((text, shape) => new CliError("validation_error", `"${singleLine(text)}" is not a reference \u2014 expected ${shape}`, {
@@ -176,9 +178,10 @@ var looksLikeReference = /* @__PURE__ */ __name((text) => {
176
178
  return match !== null && byPrefix.has(match[1]);
177
179
  }, "looksLikeReference");
178
180
 
179
- // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/domain/providers.js
180
- var KINDS = ["messages", "mail", "notes", "documents", "meetings", "events"];
181
+ // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/domain/providers.js
182
+ var KINDS = ["messages", "mail", "notes", "documents", "meetings", "events", "crm"];
181
183
  var MESSENGER_OPENS = { chat: "messages list", message: "messages show", contact: "contacts show" };
184
+ var CRM_OPENS = { deal: "deals show", lead: "leads show", pipeline: "pipelines show" };
182
185
  var PROVIDERS = [
183
186
  { name: "telegram", kind: "messages", aliases: ["tg"], command: "tg", opens: MESSENGER_OPENS },
184
187
  { name: "telegram-bot", kind: "messages", aliases: ["tg-bot"] },
@@ -295,7 +298,7 @@ var providerNamed = /* @__PURE__ */ __name((word) => {
295
298
  var kindIn = /* @__PURE__ */ __name((provider) => isFolderProvider(provider) ? "notes" : registry.find(({ name }) => name === provider)?.kind, "kindIn");
296
299
  var kindOf = /* @__PURE__ */ __name((provider) => kindIn(provider) ?? "messages", "kindOf");
297
300
 
298
- // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/domain/counters.js
301
+ // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/domain/counters.js
299
302
  var COUNTER_FIELDS = ["views", "reactions", "comments"];
300
303
  var validCounter = /* @__PURE__ */ __name((value) => typeof value === "number" && Number.isFinite(value) && value >= 0, "validCounter");
301
304
  var counterValue = /* @__PURE__ */ __name((message, field) => {
@@ -332,16 +335,17 @@ var counterFreshness = /* @__PURE__ */ __name((states) => {
332
335
  return states.some((one) => one.freshness === "stale") ? "stale" : "fresh";
333
336
  }, "counterFreshness");
334
337
 
335
- // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/domain/deals.js
338
+ // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/domain/deals.js
339
+ var DEAL_KINDS = ["deal", "lead"];
336
340
  var DEAL_STATUSES = ["open", "won", "lost"];
341
+ var STAGE_OUTCOMES = DEAL_STATUSES;
337
342
  var DEAL_ROLES = ["owner", "contact", "decision-maker"];
338
343
  var dealLine = /* @__PURE__ */ __name((deal) => {
339
344
  const money = deal.amount === null || deal.currency === null ? "" : `, ${moneyLabel(deal.amount, deal.currency)}`;
340
- const notes = [deal.status === "open" ? null : deal.status, deal.review === "confirmed" ? null : deal.review].filter(Boolean).join(", ");
341
- return `${deal.title} \xB7 ${deal.stage}${money}${notes ? ` (${notes})` : ""}`;
345
+ return `${deal.title} \xB7 ${deal.stage}${money}${deal.status === "open" ? "" : ` (${deal.status})`}`;
342
346
  }, "dealLine");
343
347
 
344
- // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/domain/rankings-options.js
348
+ // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/domain/rankings-options.js
345
349
  var MESSAGE_MEASURES = ["views", "reactions", "forwards", "comments", "replies", "thread-size"];
346
350
  var AUTHOR_MEASURES = [
347
351
  "messages",
@@ -481,7 +485,7 @@ var withoutUrls = /* @__PURE__ */ __name((text) => text.replace(/\S+/gu, (token)
481
485
  var rankingWords = /* @__PURE__ */ __name((text) => withoutUrls(text).match(/[\p{L}\p{N}]+/gu)?.length ?? 0, "rankingWords");
482
486
  var rankingQuestion = /* @__PURE__ */ __name((text) => withoutUrls(text).includes("?"), "rankingQuestion");
483
487
 
484
- // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/domain/records.js
488
+ // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/domain/records.js
485
489
  import { createHash } from "node:crypto";
486
490
  var RECORDS_SCHEMA_VERSION = 1;
487
491
  var RECORD_OPERATIONS = ["upsert", "delete"];
@@ -602,6 +606,7 @@ export {
602
606
  canonicalReference,
603
607
  looksLikeReference,
604
608
  KINDS,
609
+ CRM_OPENS,
605
610
  PROVIDERS,
606
611
  providerLabel,
607
612
  FOLDER_PROVIDERS,
@@ -628,7 +633,9 @@ export {
628
633
  counterObservationTime,
629
634
  observedCounters,
630
635
  counterFreshness,
636
+ DEAL_KINDS,
631
637
  DEAL_STATUSES,
638
+ STAGE_OUTCOMES,
632
639
  DEAL_ROLES,
633
640
  dealLine,
634
641
  MESSAGE_MEASURES,
@@ -5,19 +5,19 @@ import {
5
5
  fieldsOf,
6
6
  processStreams,
7
7
  projectFields
8
- } from "./chunk-4HTTN4NO.js";
8
+ } from "./chunk-BMV56JCL.js";
9
9
  import {
10
10
  COMPACT_FLAG
11
- } from "./chunk-XJQJ3ZIY.js";
11
+ } from "./chunk-BHNBWFT5.js";
12
12
  import {
13
13
  CliError,
14
14
  singleLine
15
- } from "./chunk-YHUCNI2W.js";
15
+ } from "./chunk-DALBYUPC.js";
16
16
  import {
17
17
  __name
18
18
  } from "./chunk-ZVVMGPBJ.js";
19
19
 
20
- // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/sends/permissions.js
20
+ // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/sends/permissions.js
21
21
  var LEVELS = ["deny", "readonly", "ask", "allow"];
22
22
  var DANGEROUS = /* @__PURE__ */ new Set(["messages.delete", "bot.messages.delete", "topics.delete", "chats.delete", "chats.clear"]);
23
23
  var skipFlagFor = /* @__PURE__ */ __name((key) => DANGEROUS.has(key) ? "--allow-dangerous" : "--yes", "skipFlagFor");
@@ -413,7 +413,7 @@ var assertRetentionEvidenceRead = /* @__PURE__ */ __name((permissions) => {
413
413
  }
414
414
  }, "assertRetentionEvidenceRead");
415
415
 
416
- // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/cli/result-fields.js
416
+ // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/cli/result-fields.js
417
417
  var named = /* @__PURE__ */ __name((work) => {
418
418
  try {
419
419
  return work();
@@ -440,7 +440,7 @@ var projectFields2 = /* @__PURE__ */ __name((value, fields) => named(() => {
440
440
  return projectFields(value, fields);
441
441
  }), "projectFields");
442
442
 
443
- // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/output-detail.js
443
+ // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/output-detail.js
444
444
  var RARELY_SET = ["editedAt", "replyTo", "forwardedFrom", "reactions"];
445
445
  var BRIEF = ["locator", "chatTitle", "timestamp", "senderName", "excerpt", "score"];
446
446
  var SNAKE_BRIEF = ["ref", "chat_title", "timestamp", "sender_name", "excerpt", "score"];
@@ -476,7 +476,7 @@ var atDetail = /* @__PURE__ */ __name((value, detail = "default") => {
476
476
  return value;
477
477
  }, "atDetail");
478
478
 
479
- // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/output.js
479
+ // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/output.js
480
480
  var refuseCompact = /* @__PURE__ */ __name(({ json, jsonl, fields, hitDetail }) => {
481
481
  const other = jsonl ? "--jsonl" : fields !== void 0 ? "--json=\u2026" : json ? "--json" : hitDetail === "brief" ? "--brief" : "";
482
482
  if (other)
@@ -4,7 +4,7 @@ import {
4
4
  commandPathOf,
5
5
  findCommand,
6
6
  outputOf
7
- } from "./chunk-6NN5ZX5T.js";
7
+ } from "./chunk-DPSH46NO.js";
8
8
  import {
9
9
  wrapAnsi
10
10
  } from "./chunk-HTQTIKWP.js";
@@ -18,18 +18,18 @@ import {
18
18
  environmentOf,
19
19
  metaOf,
20
20
  takesProfile
21
- } from "./chunk-IPFFPD3M.js";
21
+ } from "./chunk-NDJZQCF3.js";
22
22
  import {
23
23
  writes
24
- } from "./chunk-XJQJ3ZIY.js";
24
+ } from "./chunk-BHNBWFT5.js";
25
25
  import {
26
26
  CliError
27
- } from "./chunk-YHUCNI2W.js";
27
+ } from "./chunk-DALBYUPC.js";
28
28
  import {
29
29
  __name
30
30
  } from "./chunk-ZVVMGPBJ.js";
31
31
 
32
- // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/cli/help/sections.js
32
+ // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/cli/help/sections.js
33
33
  var SECTIONS = {
34
34
  read: "Read",
35
35
  write: "Write",
@@ -90,7 +90,7 @@ var CORE_SECTIONS = {
90
90
  upgrade: "setup"
91
91
  };
92
92
 
93
- // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/cli/help/commands-text.js
93
+ // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/cli/help/commands-text.js
94
94
  var DESCRIPTION = 90;
95
95
  var COLUMN = 52;
96
96
  var short = /* @__PURE__ */ __name((text) => {
@@ -129,7 +129,7 @@ var commandsText = /* @__PURE__ */ __name((root, commands, scope) => {
129
129
  `;
130
130
  }, "commandsText");
131
131
 
132
- // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/cli/help/command-help.js
132
+ // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/cli/help/command-help.js
133
133
  var ARGUMENT_KINDS = {
134
134
  chat: "chat",
135
135
  chats: "chat",
@@ -321,7 +321,7 @@ var installCommandHelp = /* @__PURE__ */ __name((program, { profile = true } = {
321
321
  command.addHelpText("after", () => commandHelpText(command));
322
322
  }, "installCommandHelp");
323
323
 
324
- // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/cli/help/first-screen.js
324
+ // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/cli/help/first-screen.js
325
325
  var WIRECAT_TOOLS = [
326
326
  {
327
327
  command: "tg",
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  wirecatDirectory
5
- } from "./chunk-RFFE5ACS.js";
5
+ } from "./chunk-HTFBXGJF.js";
6
6
  import {
7
7
  CliError
8
- } from "./chunk-YHUCNI2W.js";
8
+ } from "./chunk-DALBYUPC.js";
9
9
  import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/speech/models.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/speech/models.js
14
14
  var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/csukuangfj/${repository}/resolve/${commit}/${name}`, "huggingFace");
15
15
  var gigaam = huggingFace("sherpa-onnx-nemo-transducer-punct-giga-am-v3-russian-2025-12-16", "a6039be7cee829a9044a69ac0ebaf1c191217c97");
16
16
  var gigaamCtc = huggingFace("sherpa-onnx-nemo-ctc-punct-giga-am-v3-russian-2025-12-16", "4fb5407ff028a69fec516cdf4c10fac9ddea7c16");
@@ -137,7 +137,7 @@ var speechModel = /* @__PURE__ */ __name((id) => {
137
137
  return model;
138
138
  }, "speechModel");
139
139
 
140
- // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/speech/install.js
140
+ // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/speech/install.js
141
141
  import { createHash, randomUUID } from "node:crypto";
142
142
  import { createReadStream, createWriteStream, mkdirSync, statSync } from "node:fs";
143
143
  import { rename, rm } from "node:fs/promises";