@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
  QUERY_REASONS
5
- } from "./chunk-WNQECDIP.js";
5
+ } from "./chunk-TMJLGR4A.js";
6
6
  import {
7
7
  readSharedSection,
8
8
  sharedConfigPath,
9
9
  writeSharedSection
10
- } from "./chunk-HH34WRQE.js";
10
+ } from "./chunk-QLJGYDWG.js";
11
11
  import {
12
12
  storePath
13
- } from "./chunk-VIDPFLFM.js";
13
+ } from "./chunk-UTS5NMR3.js";
14
14
  import {
15
15
  defineReasons,
16
16
  isoTimestamp,
@@ -19,15 +19,15 @@ import {
19
19
  safeParse,
20
20
  strictObject,
21
21
  string
22
- } from "./chunk-C3JSQ7UJ.js";
22
+ } from "./chunk-KP5JDYY6.js";
23
23
  import {
24
24
  CliError
25
- } from "./chunk-PMGAU6AP.js";
25
+ } from "./chunk-S6JG4YUH.js";
26
26
  import {
27
27
  __name
28
28
  } from "./chunk-ZVVMGPBJ.js";
29
29
 
30
- // node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/models/chat-sending.js
30
+ // 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/chat-sending.js
31
31
  var CHAT_SENDING_MODES = ["allowed", "ask", "denied"];
32
32
  var SECTION = "chat_sending";
33
33
  var Setting = strictObject({
@@ -56,8 +56,84 @@ var chatSendingAllowed = /* @__PURE__ */ __name((env, host, command) => {
56
56
  }, "chatSendingAllowed");
57
57
  var chatSendingAskRefusal = /* @__PURE__ */ __name((what, command, details = {}) => new CliError("confirmation_required", `${what} \u2014 add --yes to send them (an agent may pass yes), or ask the owner to run \`${chatSendingCommand(command, "allowed")}\` so no yes is needed`, { ...details, reason: "chat-sending.ask" }), "chatSendingAskRefusal");
58
58
 
59
- // node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/errors/reasons.js
59
+ // 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/errors/sftp-reasons.js
60
60
  var validation = /* @__PURE__ */ __name((reason, message) => [reason, "validation_error", message], "validation");
61
+ var SFTP = [
62
+ ["sftp.host-key-missing", "configuration_error", "no host key is pinned for the SFTP server"],
63
+ ["sftp.host-key-mismatch", "authentication_error", "the SFTP server's host key is not the pinned one"],
64
+ ["sftp.auth-missing", "configuration_error", "an SFTP connection needs a password or a private key"],
65
+ ["sftp.key-invalid", "configuration_error", "the SFTP private key or its passphrase cannot be read"],
66
+ ["sftp.library-missing", "configuration_error", "SFTP needs the ssh2 package in the CLI's dependencies"],
67
+ ["sftp.timeout", "timeout", "the SFTP server did not answer in time"],
68
+ validation("sftp.too-large", "the file is larger than the read's byte limit"),
69
+ validation("sftp.closed", "the SFTP connection was closed before the operation"),
70
+ validation("sftp.file-changed", "the file changed on the server while a stream read it; read it again"),
71
+ ["ssh.forward-refused", "permission_error", "the SSH server does not allow forwarding to that address"],
72
+ ["ssh.forward-failed", "network_error", "the SSH server could not reach the address behind it"]
73
+ ];
74
+
75
+ // 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/errors/store-reasons.js
76
+ var STORE = [
77
+ validation("store.refused", "the local store refused the document text"),
78
+ ["store.not-writable", "permission_error", "the message store cannot be written from this process"],
79
+ [
80
+ "store.damaged",
81
+ "configuration_error",
82
+ "the store file is damaged; store recover says what is lost and recovers it"
83
+ ],
84
+ [
85
+ "store.journal-replaced",
86
+ "conflict",
87
+ "another program deleted or replaced the store's journal file while it was open; store recover says what to do"
88
+ ],
89
+ validation("store.file-damaged", "the named store file is damaged or not a database"),
90
+ ["store.unopenable", "configuration_error", "the store file cannot be opened at its path; details.path names it"],
91
+ [
92
+ "store.unreadable",
93
+ "configuration_error",
94
+ "the store file's header or schema is damaged, so it cannot be recovered"
95
+ ],
96
+ validation("store.in-use", "a process or a scheduled timer has the store open; stop it, then recover the store"),
97
+ [
98
+ "store.sqlite3-missing",
99
+ "configuration_error",
100
+ "recovering the store needs the sqlite3 program, 3.43 or newer, with its .recover command"
101
+ ],
102
+ validation("store.recovery-failed", "the recovered store did not pass its check, so the store was left as it was"),
103
+ validation("store.recovering", "another recovery of the store is running; wait for it to finish"),
104
+ validation("store.changed-during-recovery", "the store was written to during the recovery, so it was left as it was"),
105
+ [
106
+ "store.vector-extension-missing",
107
+ "configuration_error",
108
+ "the install has no sqlite-vec extension for this platform; reinstall the CLI"
109
+ ],
110
+ ["store.vector-extension-failed", "configuration_error", "the sqlite-vec extension did not load; reinstall the CLI"],
111
+ validation("store.vector-invalid", "a vector to store had a non-finite value")
112
+ ];
113
+ var STORE_MIGRATION = [
114
+ [
115
+ "store.unknown-columns",
116
+ "configuration_error",
117
+ "a migration would drop columns this store has and this build does not know; nothing was changed"
118
+ ],
119
+ [
120
+ "store.rows-break-checks",
121
+ "configuration_error",
122
+ "the store holds rows the new schema refuses, so it was not migrated; the rows are named"
123
+ ],
124
+ [
125
+ "store.rows-lost",
126
+ "configuration_error",
127
+ "a migration would change how many rows a table holds, so it was not run; the tables and counts are named"
128
+ ],
129
+ [
130
+ "store.foreign-keys",
131
+ "configuration_error",
132
+ "a migration would break references between rows, so it was not run; the store is whole"
133
+ ]
134
+ ];
135
+
136
+ // 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/errors/reasons.js
61
137
  var QUERY = [
62
138
  ["query.aborted", "the search was stopped before it finished"],
63
139
  ["query.conflict", "two parts of the query contradict each other"],
@@ -103,19 +179,42 @@ var SIGN_IN = [
103
179
  validation("profile.missing", "no profile named, and none is picked for the owner; details.profiles lists the ones here"),
104
180
  ["profile.unknown", "not_found", "no profile by this name on this computer; details.profiles lists the ones here"],
105
181
  ["account-remove.busy", "conflict", "a serve or a sync runs for this profile; stop it first"],
182
+ ["account-remove.account-shared", "conflict", "another profile reads the same account, whose copy the store shares"],
183
+ ["session.duplicate", "conflict", "another profile here already signs in to this account as this user"],
184
+ [
185
+ "account-remove.account-unknown",
186
+ "conflict",
187
+ "which account another profile holds could not be read, so --delete-data waits"
188
+ ],
189
+ validation("profile.reserved", "the profile name is a folder every CRM account shares; pick another"),
106
190
  ["account-remove.unconfirmed", "confirmation_required", "removing an account asks first; add --yes"],
107
191
  ["account-remove.path-outside", "configuration_error", "the tool named a path outside its own folders"],
108
192
  [
109
193
  "account-remove.folder-outside",
110
194
  "configuration_error",
111
195
  "the tool named a folder of its own outside the home folder"
112
- ]
196
+ ],
197
+ ["account-rename.taken", "conflict", "the new name, or a file or keyring entry under it, already exists"],
198
+ ["account-rename.busy", "conflict", "a serve, a background service, a schedule or a sync uses this profile"],
199
+ ["account-rename.bot", "conflict", "the profile is also a bot profile, which keeps its name"],
200
+ ["account-rename.unconfirmed", "confirmation_required", "renaming a profile asks first; add --yes"],
201
+ ["account-rename.moved-run", "permission_error", "a run with moved folders never renames a profile"],
202
+ ["account-rename.unpaired", "configuration_error", "the tool named different paths for the old and new name"]
113
203
  ];
114
204
  var PROVIDER_API = [
115
205
  ["offline.refused", "permission_error", "this command needs the provider; --offline was given"],
116
206
  validation("api.unknown-method", "the provider has no method by this name"),
117
207
  ["api.disabled", "configuration_error", "the provider's API is turned off for this OAuth project"],
118
208
  ["manifest.invalid", "configuration_error", "the source manifest does not match its shape or the generated API"],
209
+ ["source.no-id", "invalid_response", "a row of the provider's answer has no id where the source manifest says"],
210
+ ["source.no-account", "invalid_response", "the provider's answer does not name the signed-in account"],
211
+ validation("source.token-invalid", "the change token is not one this source gave"),
212
+ [
213
+ "source.changes-too-many",
214
+ "invalid_response",
215
+ "more changed since one sync than a round reads, and the provider does not list changes oldest first"
216
+ ],
217
+ ["source.deletions-unchecked", "permission_error", "the provider refused its deletions; sync --rescan finds them"],
119
218
  ["verify.no-id", "provider_error", "the answer to the sign-in check holds no account id where auth.verify says"],
120
219
  ["provider.usage-limit", "rate_limited", "the account's usage limit at the provider is reached; wait, do not retry"],
121
220
  ["access.denied", "permission_error", "the provider refused this account access to the item"],
@@ -123,20 +222,8 @@ var PROVIDER_API = [
123
222
  ["file.not-found", "not_found", "the file named, or its folder, does not exist"],
124
223
  validation("file.not-a-file", "the path names a folder or another thing that is not a file"),
125
224
  ["file.denied", "permission_error", "the file cannot be opened: permission denied"],
126
- validation("file.too-large", "the file is larger than the limit set for this read")
127
- ];
128
- var SFTP = [
129
- ["sftp.host-key-missing", "configuration_error", "no host key is pinned for the SFTP server"],
130
- ["sftp.host-key-mismatch", "authentication_error", "the SFTP server's host key is not the pinned one"],
131
- ["sftp.auth-missing", "configuration_error", "an SFTP connection needs a password or a private key"],
132
- ["sftp.key-invalid", "configuration_error", "the SFTP private key or its passphrase cannot be read"],
133
- ["sftp.library-missing", "configuration_error", "SFTP needs the ssh2 package in the CLI's dependencies"],
134
- ["sftp.timeout", "timeout", "the SFTP server did not answer in time"],
135
- validation("sftp.too-large", "the file is larger than the read's byte limit"),
136
- validation("sftp.closed", "the SFTP connection was closed before the operation"),
137
- validation("sftp.file-changed", "the file changed on the server while a stream read it; read it again"),
138
- ["ssh.forward-refused", "permission_error", "the SSH server does not allow forwarding to that address"],
139
- ["ssh.forward-failed", "network_error", "the SSH server could not reach the address behind it"]
225
+ validation("file.too-large", "the file is larger than the limit set for this read"),
226
+ validation("file.not-plain-text", "the file's text is extracted on a read; writing it back would replace the file")
140
227
  ];
141
228
  var SQL = [
142
229
  validation("sql.bad-identifier", "a table or column name is not a plain identifier"),
@@ -149,7 +236,29 @@ var SQL = [
149
236
  ["db.timeout", "timeout", "the database server did not answer in time"],
150
237
  ["db.failed", "provider_error", "the database server failed the query"]
151
238
  ];
239
+ var OFFICE = [
240
+ ["office.wrong-format", "the file is not the Office format the command edits, or its parts cannot be read"],
241
+ ["office.invalid-cell", "a cell is not an address like B7"],
242
+ ["office.invalid-value", "a value cannot be written: an infinite number, a cell text too long, an unknown style"],
243
+ ["office.no-sheet", "the workbook has no such sheet, or several when none is named"],
244
+ ["office.duplicate-edit", "the same cell or paragraph is changed twice in one call"],
245
+ ["office.formula-cell", "the cell holds a formula; --replace writes the value over it"],
246
+ ["office.shared-formula", "the cell holds a formula other cells share; replacing it would break theirs"],
247
+ ["office.array-formula", "the cell is part of an array formula; change it in Excel"],
248
+ ["office.rich-value", "the cell holds a picture or a linked data type, which the editor does not replace"],
249
+ ["office.table-header", "the cell is a table's header or total, whose part repeats the text; change it in Excel"],
250
+ ["office.implicit-rows", "the sheet has rows without numbers, so a row cannot be added"],
251
+ ["office.implicit-cells", "the row has cells without addresses, so a cell cannot be added"],
252
+ ["office.no-paragraph", "the document has no paragraph at that index"],
253
+ ["office.unsafe-paragraph", "the paragraph cannot be edited safely; documents show gives the reason"],
254
+ ["office.tracked-change", "the paragraph holds a tracked change"],
255
+ ["office.section-break", "the paragraph ends a section; deleting it would merge two sections"],
256
+ ["office.bookmark", "the paragraph holds a bookmark a cross-reference may point at"],
257
+ ["office.last-paragraph", "the delete would leave the document or a table cell without a paragraph"],
258
+ ["office.invalid-sheet-name", "a new sheet's name is empty, too long, repeated or holds a character Excel refuses"]
259
+ ].map(([reason, message]) => validation(reason, message));
152
260
  var OTHERS = [
261
+ ["office.file-exists", "conflict", "a file is there already; create never replaces one, update changes it"],
153
262
  validation("doctor.report-exists", "the report's file exists; a problem report never overwrites a file"),
154
263
  validation("usage.unknown-command", "no command by this name; the CLI's help lists them"),
155
264
  validation("usage.unknown-option", "the command takes no option by this name; its help lists them"),
@@ -231,6 +340,11 @@ var OTHERS = [
231
340
  "nothing holds this agent to the CLI's commands, so no schedule starts it"
232
341
  ],
233
342
  ["read-only.output-outside", "permission_error", "a read-only process writes files only inside its working folder"],
343
+ [
344
+ "schedule.outside-folder",
345
+ "permission_error",
346
+ "schedule exec runs only a schedule file in the tool's own schedules folder"
347
+ ],
234
348
  [
235
349
  "agent.refused",
236
350
  "permission_error",
@@ -238,12 +352,26 @@ var OTHERS = [
238
352
  ],
239
353
  validation("agent.cost-unknown", "the agent reports no cost, so a cost cap cannot stop it"),
240
354
  validation("document.changed", "the document changed while it was read; nothing was saved"),
355
+ validation("document.needs-ocr", "the PDF has no text layer; a documents sync reads it with OCR (read_scans)"),
356
+ validation("document.scan-unread", "OCR could not read the scan or picture; a sync tries again once the file changes"),
357
+ validation("document.scan-later", "OCR stopped at its page limit or a busy model; the next sync goes on"),
358
+ [
359
+ "document.scan-unturned",
360
+ "configuration_error",
361
+ "tesseract has no osd data, so a page on its side is read as it lies; install it to read scans again"
362
+ ],
241
363
  ["document.not-imported", "not_found", "the document is not imported in this source account"],
364
+ ["document.version-missing", "not_found", "the local copy holds no such version of the document"],
242
365
  ["document.not-found", "not_found", "no listed document has that reference"],
243
366
  ["state.unreadable", "configuration_error", "a sync state file cannot be read; move it away and sync again"],
244
367
  ["profile.busy", "provider_unavailable", "another sync or write holds this profile's local copy"],
245
368
  ["profile.account-taken", "conflict", "another profile here already uses this provider account"],
246
369
  ["profile.other-account", "conflict", "this profile's copy was synced from another provider account"],
370
+ [
371
+ "documents.other-account",
372
+ "configuration_error",
373
+ "the documents are signed in as another account than the tracker copy of the same provider"
374
+ ],
247
375
  ["profile.not-synced", "not_found", "the profile has no local copy yet; sync it first"],
248
376
  ["provider.failed", "provider_error", "a read from the provider failed"],
249
377
  ["identity.none", "not_found", "the provider shows no accounts on a document"],
@@ -270,6 +398,11 @@ var OTHERS = [
270
398
  "the email could not be read again, so its skipped attachments have no text"
271
399
  ],
272
400
  ["mirror.partial", "provider_error", "some mirrored files were not synced"],
401
+ [
402
+ "mirror.stopped",
403
+ "timeout",
404
+ "the mirror's run reached its deadline before it was done; run it again with more time"
405
+ ],
273
406
  ["mirror.none", "not_found", "the profile has no mirrors; add one with mirrors add"],
274
407
  ["mirror.not-found", "not_found", "no such mirror in this profile; see mirrors list"],
275
408
  validation("mirror.not-folder", "the path to mirror is not a folder"),
@@ -292,6 +425,9 @@ var OTHERS = [
292
425
  "the earlier content could not be kept in the version store, so the sync did not replace it"
293
426
  ],
294
427
  ["mirror.remote-changed", "conflict", "the remote file changed since the listing; the next sync settles it"],
428
+ ["mirror.local-changed", "conflict", "the local file changed since the conflict was found; nothing was written"],
429
+ ["mirror.no-conflict", "not_found", "the path has no recorded conflict; the last sync settled it or never saw one"],
430
+ ["upload.replace-interrupted", "conflict", "another file took the path during a replace; the new content is kept"],
295
431
  ["upload.mismatch", "conflict", "the uploaded file reads back with other content; the local file changed meanwhile"],
296
432
  ["download.mismatch", "invalid_response", "the downloaded file has other content than the listing said"],
297
433
  ["catalog.unavailable", "configuration_error", "the store has no shared catalog for this account"],
@@ -304,6 +440,7 @@ var OTHERS = [
304
440
  validation("push.too-many-files", "the folder holds more files than one push takes"),
305
441
  validation("push.unreadable", "the folder to push could not be read"),
306
442
  validation("spreadsheet.unreadable", "the workbook could not be read"),
443
+ ["config.unreadable", "configuration_error", "the config file cannot be read"],
307
444
  [
308
445
  "config.unrepairable",
309
446
  "configuration_error",
@@ -399,46 +536,11 @@ var OTHERS = [
399
536
  "outcome_unknown",
400
537
  "a message the server found was stored without its attachments; the next sync reads it whole"
401
538
  ],
402
- validation("store.refused", "the local store refused the document text"),
403
- ["store.not-writable", "permission_error", "the message store cannot be written from this process"],
404
- [
405
- "store.damaged",
406
- "configuration_error",
407
- "the store file is damaged; store recover says what is lost and recovers it"
408
- ],
409
- [
410
- "store.journal-replaced",
411
- "conflict",
412
- "another program deleted or replaced the store's journal file while it was open; store recover says what to do"
413
- ],
414
- validation("store.file-damaged", "the named store file is damaged or not a database"),
415
- ["store.unopenable", "configuration_error", "the store file cannot be opened at its path; details.path names it"],
416
- [
417
- "store.unreadable",
418
- "configuration_error",
419
- "the store file's header or schema is damaged, so it cannot be recovered"
420
- ],
421
- validation("store.in-use", "a process or a scheduled timer has the store open; stop it, then recover the store"),
422
- [
423
- "store.sqlite3-missing",
424
- "configuration_error",
425
- "recovering the store needs the sqlite3 program, 3.43 or newer, with its .recover command"
426
- ],
427
- validation("store.recovery-failed", "the recovered store did not pass its check, so the store was left as it was"),
428
539
  [
429
540
  "serve.outdated",
430
541
  "configuration_error",
431
542
  "the store or the installed version is newer than this serve; it stopped so its unit starts the installed one"
432
543
  ],
433
- validation("store.recovering", "another recovery of the store is running; wait for it to finish"),
434
- validation("store.changed-during-recovery", "the store was written to during the recovery, so it was left as it was"),
435
- [
436
- "store.vector-extension-missing",
437
- "configuration_error",
438
- "the install has no sqlite-vec extension for this platform; reinstall the CLI"
439
- ],
440
- ["store.vector-extension-failed", "configuration_error", "the sqlite-vec extension did not load; reinstall the CLI"],
441
- validation("store.vector-invalid", "a vector to store had a non-finite value"),
442
544
  validation("evidence.quote-length", "a quote from the evidence is empty or over 500 characters"),
443
545
  validation("evidence.quote-not-found", "the cited source does not say the quoted words"),
444
546
  validation("evidence.row-too-large", "one evidence row is over its size limit"),
@@ -559,10 +661,21 @@ var OTHERS = [
559
661
  validation("field.not-filterable", "the CRM cannot filter a list by that custom field"),
560
662
  validation("query.bad-value", "a term's value is not the kind its field takes, such as an id or a number"),
561
663
  validation("crm.record-field", "a contact's or company's field is not valid"),
664
+ validation("crm.activity-field", "a comment's or task's field is not valid, or the kind does not take it"),
562
665
  validation("crm.owner-unknown", "owner: names no CRM user: me without a known sign-in user, or not a user id"),
563
666
  validation("crm.write-unsupported", "the CRM does not take this write, or does not recognise a repeated one"),
564
- validation("crm.unlisted-held", "a list of every id would mark most of a kind deleted; nothing was, until --rescan"),
565
- validation("tracker.unlisted-held", "a tracker's id list would mark too much deleted, or the sign-in read only part; nothing was, until --rescan"),
667
+ validation("crm.unlisted-held", "a list of every id would mark most of a kind deleted, or the sign-in read only part; nothing was"),
668
+ validation("tracker.unlisted-held", "a tracker's id list would mark too much deleted, or the sign-in read only part; nothing was"),
669
+ validation("tracker.write-unsupported", "the tracker does not take this write, or does not recognise a repeated one"),
670
+ validation("tracker.field", "a field of an issue or a comment the tracker's write does not take as given"),
671
+ validation("tracker.reference", "a team, state, label, project, user or sprint no single row of the copy has by that name"),
672
+ validation("tracker.team-required", "a new issue needs its team: name one, or sync a copy that holds one"),
673
+ ["tracker.no-record", "invalid_response", "the tracker answered a write with no record and no error; sync and look"],
674
+ [
675
+ "tracker.kind-unread",
676
+ "permission_error",
677
+ "the sign-in cannot read this kind of the tracker; the copy has none of it"
678
+ ],
566
679
  validation("content.unlisted-held", "a content id list would mark too much deleted, the sign-in read only part, or the site moved; nothing was"),
567
680
  validation("content.conflict", "the post changed at the source since the last sync; sync, then write again"),
568
681
  validation("content.lossy-body", "the post's text holds blocks or embeds Markdown does not keep; --replace-body"),
@@ -577,6 +690,7 @@ var OTHERS = [
577
690
  validation("crm.reference-unknown", "a CRM row names a contact, company or user the store does not hold; that link was not made"),
578
691
  validation("crm.pending-dropped", "relationships waited too long for an end that never came; they were dropped"),
579
692
  validation("crm.activities-failed", "the activities and tasks could not be read; the deals and leads were synced"),
693
+ validation("crm.activities-unlisted-held", "a full list would mark most activities deleted; held until --rescan"),
580
694
  validation("crm.stage-history-failed", "the CRM's stage history could not be read; stage tasks wait for the next sync"),
581
695
  validation("crm.email-ambiguous", "a CRM contact's email belongs to more than one person; the owner decides"),
582
696
  validation("crm.own-unknown", "no own company of the CRM account is stored, so its users are no one's employees yet"),
@@ -615,11 +729,17 @@ var OTHERS = [
615
729
  validation("order.ref", "the reference names no order, or a shop's number names more than one"),
616
730
  validation("order.status", "a rejected or deleted order's status does not change"),
617
731
  ["model.not-downloaded", "not_found", "the model is not downloaded on this machine"],
732
+ [
733
+ "tracker.no-vectors",
734
+ "not_found",
735
+ "no issue, project or comment is embedded with the model yet; sync --embed builds them"
736
+ ],
618
737
  ["person.no-owner", "not_found", "no person is marked as the owner in the store"],
619
738
  ["person.unknown", "not_found", "the store has no person by that reference; people list gives person:<uid>"],
620
739
  ["person.no-doubt", "not_found", "nothing about that person is in doubt; people links check lists who is"],
621
- validation("person.owner", "the owner's own person is not test data"),
740
+ validation("person.owner", "the owner's own person is not test data, and is never deleted"),
622
741
  validation("person.no-identity", "a person with no identity is not test data; there is nothing to hide"),
742
+ validation("person.erase-blocked", "an invoice, order, subscription or a row the person wrote still names them; change those first, nothing was deleted"),
623
743
  validation("person.from-required", "say whom the identity leaves: --from person:<uid>, or person:me for the owner"),
624
744
  [
625
745
  "identity.separated",
@@ -629,7 +749,7 @@ var OTHERS = [
629
749
  [
630
750
  "identity.owner-only",
631
751
  "permission_error",
632
- "only the owner undoes a merge, splits a person, confirms or undoes a link, or links an identity to themselves"
752
+ "only the owner undoes or confirms a merge, a split or a link, links an identity to themselves, or moves a sender"
633
753
  ],
634
754
  [
635
755
  "identity.stale",
@@ -659,11 +779,18 @@ var OTHERS = [
659
779
  validation("identity.agent-unnamed", "an agent's link names the agent, and never as the owner"),
660
780
  validation("identity.not-shared", "only a match on a shared mailbox can say the mailbox is a company's"),
661
781
  ["organization.not-found", "not_found", "no stored organization has that id"],
782
+ validation("organization.own", "the organization is one of your own companies and is never deleted"),
783
+ validation("organization.erase-blocked", "an invoice, order, subscription or a row the organization wrote still names it; change those first, nothing was deleted"),
662
784
  validation("organization.unnamed", "a free mailbox names no company; name the organization or the company"),
663
785
  validation("organization.ambiguous", "more than one organization matches; name the one meant as a reference"),
664
786
  validation("identity.shared-phone", "more than six people share the phone number, so it proposes no one"),
665
787
  validation("identity.common-name", "more than six people have the name, so it proposes no one"),
788
+ validation("identity.not-a-person", "a bot, a program or an organization is never proposed as a person by name"),
666
789
  validation("identity.owner", "one side is the owner's person, and only the owner joins anyone to themselves"),
790
+ ["sender-bot.not-found", "not_found", "no sender bot has that id; people list kind:automated lists them"],
791
+ validation("sender-bot.owner", "the owner's own person is never a bot"),
792
+ validation("sender-bot.not-a-person", "the person named is a sender bot; name a person"),
793
+ validation("sender-bot.assignee", "a sender bot is no one's assignee; move it to a person first"),
667
794
  validation("identity.shared-email", "more than six people share the address, so it proposes no one"),
668
795
  validation("identity-link.dedicated-review", "an identity link is staged and decided through the people review"),
669
796
  validation("identity-split.dedicated-review", "a split of a person is staged and decided through the people review"),
@@ -783,7 +910,7 @@ var DETAILED = {
783
910
  var REASONS = defineReasons([
784
911
  ...QUERY_REASONS,
785
912
  ...INPUT_FIELD_REASONS,
786
- ...[...QUERY, ...SIGN_IN, ...PROVIDER_API, ...SFTP, ...SQL, ...OTHERS].map(([reason, code, message]) => ({
913
+ ...[...QUERY, ...SIGN_IN, ...PROVIDER_API, ...SFTP, ...STORE, ...STORE_MIGRATION, ...SQL, ...OFFICE, ...OTHERS].map(([reason, code, message]) => ({
787
914
  reason,
788
915
  code,
789
916
  message,
@@ -791,6 +918,7 @@ var REASONS = defineReasons([
791
918
  }))
792
919
  ]);
793
920
  var DETAILS = [
921
+ "account",
794
922
  "holders",
795
923
  "profile",
796
924
  "contracts",
@@ -5,15 +5,15 @@ import {
5
5
  readLock,
6
6
  releaseLock,
7
7
  takeLock
8
- } from "./chunk-NYYMMIVW.js";
8
+ } from "./chunk-BYITYTRL.js";
9
9
  import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
13
+ // 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/state.js
14
14
  import { existsSync as existsSync2, readFileSync as readFileSync2 } from "node:fs";
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/activity.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/activity.js
17
17
  import { randomBytes } from "node:crypto";
18
18
  import { chmodSync, existsSync, mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
19
19
  import { dirname } from "node:path";
@@ -86,7 +86,7 @@ var activityRecorder = /* @__PURE__ */ __name((path, now = Date.now) => {
86
86
  };
87
87
  }, "activityRecorder");
88
88
 
89
- // node_modules/.pnpm/@wirecat+cli-core@0.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/state.js
89
+ // 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/state.js
90
90
  var ACCESS_SECONDS = 60 * 60;
91
91
  var REFRESH_SECONDS = 30 * 24 * 60 * 60;
92
92
  var readStored = /* @__PURE__ */ __name((path) => existsSync2(path) ? JSON.parse(readFileSync2(path, "utf8")) : { clients: [], tokens: [] }, "readStored");