@wirecat/mail-cli 0.16.3 → 0.17.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 (260) hide show
  1. package/CHANGELOG.md +86 -0
  2. package/README.md +7 -4
  3. package/dist/bin/mail.js +2 -2
  4. package/dist/bundle/{all-profiles-TUDREUUW.js → all-profiles-55AU2Q2N.js} +10 -10
  5. package/dist/bundle/{anthropic-KQOVSP6C.js → anthropic-I7RI7YPK.js} +6 -6
  6. package/dist/bundle/{app-server-QK7PKVT7.js → app-server-NY72GTQA.js} +47 -47
  7. package/dist/bundle/{bun-2NMWL5YB.js → bun-C2R7UPM2.js} +2 -2
  8. package/dist/bundle/{bun-sqlite-Y4FP6SDX.js → bun-sqlite-RNPHH3KC.js} +5 -5
  9. package/dist/bundle/{chunk-KJV3BI7S.js → chunk-22IKW3TY.js} +23 -21
  10. package/dist/bundle/{chunk-B2NDDA2W.js → chunk-22WVQJW3.js} +10 -10
  11. package/dist/bundle/{chunk-4IIH5PXR.js → chunk-24H2KUGW.js} +28 -28
  12. package/dist/bundle/{chunk-VP5FL5JQ.js → chunk-2CY44MKY.js} +8 -8
  13. package/dist/bundle/{chunk-CGH6UH3T.js → chunk-2EVM7GV5.js} +8 -8
  14. package/dist/bundle/{chunk-GAYW2JRW.js → chunk-2ON2PDHC.js} +10 -10
  15. package/dist/bundle/{chunk-EBEYU7RW.js → chunk-45JQ72CH.js} +36 -142
  16. package/dist/bundle/{chunk-QCNK3YUZ.js → chunk-4HTTN4NO.js} +19 -19
  17. package/dist/bundle/{chunk-6DVPPLAN.js → chunk-6NN5ZX5T.js} +5 -5
  18. package/dist/bundle/{chunk-CRYWPLJP.js → chunk-A3PKKY24.js} +1 -1
  19. package/dist/bundle/{chunk-I3K6JG4I.js → chunk-B73I6KLW.js} +14 -60
  20. package/dist/bundle/{chunk-HVAXTTOT.js → chunk-BD7OK4P5.js} +3 -3
  21. package/dist/bundle/{chunk-Q4T2HBZP.js → chunk-BPDUVWL2.js} +2 -2
  22. package/dist/bundle/{chunk-XBIPSSKI.js → chunk-BWCYUXF7.js} +4 -4
  23. package/dist/bundle/{chunk-3ZJE5TIG.js → chunk-CHC2LWKY.js} +2 -2
  24. package/dist/bundle/{chunk-VTJ5TMGN.js → chunk-CHVHIDNK.js} +3 -3
  25. package/dist/bundle/{chunk-XEIGKPYU.js → chunk-DG43I7MC.js} +32 -3
  26. package/dist/bundle/{chunk-R6SBRHVG.js → chunk-F4P3VDJZ.js} +6 -6
  27. package/dist/bundle/{chunk-ZS6YKNYS.js → chunk-GBM7FFFI.js} +4 -4
  28. package/dist/bundle/{chunk-K2OQCQ2N.js → chunk-GYCJQGFO.js} +6 -6
  29. package/dist/bundle/{chunk-PYX6K527.js → chunk-H32SKDF2.js} +55 -54
  30. package/dist/bundle/{chunk-KMZRXGTF.js → chunk-HZL42476.js} +1 -1
  31. package/dist/bundle/{chunk-IJYYD2JU.js → chunk-IPFFPD3M.js} +325 -212
  32. package/dist/bundle/{chunk-M6O4DH5F.js → chunk-ITMGJX7I.js} +1 -1
  33. package/dist/bundle/{chunk-OYB3FUYQ.js → chunk-J7XH6CJC.js} +1 -1
  34. package/dist/bundle/{chunk-ANFIIXBL.js → chunk-JI225TBX.js} +2 -2
  35. package/dist/bundle/{chunk-YPF6OS37.js → chunk-JSB6BTPT.js} +1 -1
  36. package/dist/bundle/{chunk-7LMTWOTP.js → chunk-KJKRLI2S.js} +2 -2
  37. package/dist/bundle/{chunk-FHY664YS.js → chunk-LNC7XMEQ.js} +4 -4
  38. package/dist/bundle/chunk-M6GLFDWV.js +64 -0
  39. package/dist/bundle/{chunk-PWTEWT4M.js → chunk-MG4NWXWI.js} +4 -4
  40. package/dist/bundle/{chunk-X7EBOXBY.js → chunk-MRTSDBTN.js} +12178 -1120
  41. package/dist/bundle/{chunk-N7DLDEFU.js → chunk-MTFTMPB6.js} +2 -2
  42. package/dist/bundle/{chunk-DDQXDX4U.js → chunk-OFZDCUUJ.js} +7 -7
  43. package/dist/bundle/{chunk-4IEDXIUN.js → chunk-OHS5CYZI.js} +240 -64
  44. package/dist/bundle/{chunk-ZNW4E3SG.js → chunk-QDX2O5BN.js} +3 -3
  45. package/dist/bundle/{chunk-VD6GZ3W2.js → chunk-QEO7MI3E.js} +2 -2
  46. package/dist/bundle/{chunk-EZIJPXDZ.js → chunk-QRNL5DIS.js} +6 -6
  47. package/dist/bundle/{chunk-XAANQN4R.js → chunk-QU5TWVG5.js} +108 -83
  48. package/dist/bundle/{chunk-HN3EDDVX.js → chunk-R3G33QIV.js} +13 -13
  49. package/dist/bundle/{chunk-TTOKDZQX.js → chunk-RFFE5ACS.js} +2 -2
  50. package/dist/bundle/{chunk-5FPQGUJA.js → chunk-RIAHISWA.js} +1 -1
  51. package/dist/bundle/{chunk-CT2MIWXY.js → chunk-RQGTRB73.js} +3 -3
  52. package/dist/bundle/{chunk-WKHHCCJE.js → chunk-S4NIDBLI.js} +23 -23
  53. package/dist/bundle/{chunk-YGJO5VNR.js → chunk-SHEVFBZT.js} +24 -24
  54. package/dist/bundle/{chunk-DKIAHQRN.js → chunk-SQAAOEGI.js} +9 -9
  55. package/dist/bundle/{chunk-5KPPP3QN.js → chunk-T4RRZILQ.js} +14 -2
  56. package/dist/bundle/{chunk-KV4267S4.js → chunk-TCYLDGRA.js} +1 -1
  57. package/dist/bundle/{chunk-POS35G6D.js → chunk-VMXMHC6E.js} +3 -3
  58. package/dist/bundle/{chunk-FROWEHK7.js → chunk-VXBUDZV3.js} +2 -2
  59. package/dist/bundle/{chunk-3CVDHJER.js → chunk-WHI3LTAW.js} +1 -1
  60. package/dist/bundle/{chunk-ARDUJR5Z.js → chunk-WOFGEJ6W.js} +1 -1
  61. package/dist/bundle/{chunk-G6RG2AZV.js → chunk-XJQJ3ZIY.js} +55 -8
  62. package/dist/bundle/{chunk-EDJQDR5X.js → chunk-XOJ5E777.js} +4 -4
  63. package/dist/bundle/{chunk-UBLFUQ7O.js → chunk-YB47AQWE.js} +97 -12
  64. package/dist/bundle/{chunk-RPEW7E3S.js → chunk-YCOBSDZY.js} +12 -12
  65. package/dist/bundle/{chunk-EB2IULWB.js → chunk-YHUCNI2W.js} +2 -2
  66. package/dist/bundle/{chunk-LMN7SYX4.js → chunk-YIJRPPF5.js} +1 -1
  67. package/dist/bundle/{chunk-MLWN27HF.js → chunk-YO7BLBVE.js} +243 -247
  68. package/dist/bundle/command-contract-AUPKK5Y4.js +34 -0
  69. package/dist/bundle/{decode-WCS4KOHV.js → decode-5AYG6LLW.js} +5 -5
  70. package/dist/bundle/{dispatch-3ILCYZ4Q.js → dispatch-EVLWT6N3.js} +8 -8
  71. package/dist/bundle/{dist-FL422DTA.js → dist-JRTLLLLG.js} +31 -23
  72. package/dist/bundle/{echarts-45D6USAX.js → echarts-EFAEE4D2.js} +2 -2
  73. package/dist/bundle/{embed-4B4ATLCN.js → embed-6SSOYGZQ.js} +6 -6
  74. package/dist/bundle/{embedder-ASWGJXNV.js → embedder-VFSLGHBO.js} +9 -9
  75. package/dist/bundle/{failure-UDL5QZRZ.js → failure-RBBZ7F3L.js} +2 -2
  76. package/dist/bundle/{first-run-5K3UD4BU.js → first-run-PVEHOQOD.js} +11 -11
  77. package/dist/bundle/first-screen-7ONKJ7QW.js +32 -0
  78. package/dist/bundle/{instructions-6EFSPC7C.js → instructions-EOLC3GYB.js} +1 -1
  79. package/dist/bundle/mail.js +12 -12
  80. package/dist/bundle/{mcp-PPVOM4SE.js → mcp-JYLZR5LQ.js} +2 -2
  81. package/dist/bundle/{node-OXC26QXO.js → node-2ZRMQAYF.js} +2 -2
  82. package/dist/bundle/{node-sqlite-PXHZAG7Y.js → node-sqlite-UKWOBONA.js} +6 -6
  83. package/dist/bundle/{oauth-YK2QLC7U.js → oauth-HFD46WAY.js} +7 -7
  84. package/dist/bundle/{open-SABDXZ4B.js → open-2DLCQUC4.js} +5 -5
  85. package/dist/bundle/{openai-DPURPXEU.js → openai-A7YLLQEE.js} +14 -14
  86. package/dist/bundle/{process-YWPAOI6G.js → process-I3INVLFQ.js} +1 -1
  87. package/dist/bundle/{program-4ILOQHLO.js → program-4ZCATQND.js} +3380 -12407
  88. package/dist/bundle/{prompt-GKVNFGFE.js → prompt-R636OFYK.js} +5 -5
  89. package/dist/bundle/{recognize-344YDSLX.js → recognize-G4WUSU5I.js} +4 -4
  90. package/dist/bundle/{remote-53UZUJJU.js → remote-BMXVVYTN.js} +7 -7
  91. package/dist/bundle/{rerank-PAIRND6R.js → rerank-7W3QEZ3Q.js} +7 -7
  92. package/dist/bundle/{serve-DZSO7LJK.js → serve-JQCPQYOJ.js} +9 -9
  93. package/dist/bundle/server-GYVOIGF5.js +64 -0
  94. package/dist/bundle/{server-EGG3V67I.js → server-IMOCOYXH.js} +39 -39
  95. package/dist/bundle/{sqlite-runtime-ZQ6F3VYZ.js → sqlite-runtime-H2IEHDRZ.js} +6 -6
  96. package/dist/bundle/{state-LXPOWLZ5.js → state-J5N3Y4LX.js} +6 -6
  97. package/dist/bundle/{store-PHT75I6S.js → store-C4TIYTGI.js} +25 -25
  98. package/dist/bundle/{store-4ZMSK5R5.js → store-U5WIT3P4.js} +15 -15
  99. package/dist/bundle/store-maintenance-command-WRRZ7Q7B.js +54 -0
  100. package/dist/commands/account.d.ts.map +1 -1
  101. package/dist/commands/account.js +56 -64
  102. package/dist/commands/account.js.map +1 -1
  103. package/dist/commands/attachments.d.ts.map +1 -1
  104. package/dist/commands/attachments.js +15 -12
  105. package/dist/commands/attachments.js.map +1 -1
  106. package/dist/commands/context.d.ts +4 -0
  107. package/dist/commands/context.d.ts.map +1 -1
  108. package/dist/commands/context.js +12 -1
  109. package/dist/commands/context.js.map +1 -1
  110. package/dist/commands/doctor.d.ts.map +1 -0
  111. package/dist/{mail → commands}/doctor.js +1 -1
  112. package/dist/commands/doctor.js.map +1 -0
  113. package/dist/commands/drafts-send.d.ts.map +1 -1
  114. package/dist/commands/drafts-send.js +12 -10
  115. package/dist/commands/drafts-send.js.map +1 -1
  116. package/dist/commands/drafts.d.ts.map +1 -1
  117. package/dist/commands/drafts.js +28 -14
  118. package/dist/commands/drafts.js.map +1 -1
  119. package/dist/commands/export.d.ts.map +1 -1
  120. package/dist/commands/export.js +194 -195
  121. package/dist/commands/export.js.map +1 -1
  122. package/dist/commands/folders.d.ts.map +1 -1
  123. package/dist/commands/folders.js +19 -32
  124. package/dist/commands/folders.js.map +1 -1
  125. package/dist/commands/import.d.ts.map +1 -1
  126. package/dist/commands/import.js +10 -5
  127. package/dist/commands/import.js.map +1 -1
  128. package/dist/commands/messages.d.ts +0 -21
  129. package/dist/commands/messages.d.ts.map +1 -1
  130. package/dist/commands/messages.js +10 -278
  131. package/dist/commands/messages.js.map +1 -1
  132. package/dist/commands/organising.d.ts +98 -0
  133. package/dist/commands/organising.d.ts.map +1 -0
  134. package/dist/commands/organising.js +231 -0
  135. package/dist/commands/organising.js.map +1 -0
  136. package/dist/commands/restore.d.ts +3 -0
  137. package/dist/commands/restore.d.ts.map +1 -0
  138. package/dist/commands/restore.js +93 -0
  139. package/dist/commands/restore.js.map +1 -0
  140. package/dist/commands/rules.d.ts.map +1 -1
  141. package/dist/commands/rules.js +3 -2
  142. package/dist/commands/rules.js.map +1 -1
  143. package/dist/commands/send.d.ts +14 -3
  144. package/dist/commands/send.d.ts.map +1 -1
  145. package/dist/commands/send.js +18 -11
  146. package/dist/commands/send.js.map +1 -1
  147. package/dist/commands/session-start.d.ts.map +1 -1
  148. package/dist/commands/session-start.js +14 -4
  149. package/dist/commands/session-start.js.map +1 -1
  150. package/dist/commands/status.d.ts.map +1 -1
  151. package/dist/commands/status.js +10 -4
  152. package/dist/commands/status.js.map +1 -1
  153. package/dist/commands/sync.d.ts.map +1 -1
  154. package/dist/commands/sync.js +136 -141
  155. package/dist/commands/sync.js.map +1 -1
  156. package/dist/commands/tags.d.ts.map +1 -1
  157. package/dist/commands/tags.js +11 -7
  158. package/dist/commands/tags.js.map +1 -1
  159. package/dist/commands/words.d.ts +8 -0
  160. package/dist/commands/words.d.ts.map +1 -0
  161. package/dist/commands/words.js +52 -0
  162. package/dist/commands/words.js.map +1 -0
  163. package/dist/discovery.d.ts.map +1 -1
  164. package/dist/discovery.js +2 -1
  165. package/dist/discovery.js.map +1 -1
  166. package/dist/export/journal.d.ts +8 -6
  167. package/dist/export/journal.d.ts.map +1 -1
  168. package/dist/export/journal.js +39 -14
  169. package/dist/export/journal.js.map +1 -1
  170. package/dist/mail/changes.d.ts +9 -2
  171. package/dist/mail/changes.d.ts.map +1 -1
  172. package/dist/mail/changes.js +45 -17
  173. package/dist/mail/changes.js.map +1 -1
  174. package/dist/mail/cleanup.d.ts.map +1 -1
  175. package/dist/mail/cleanup.js +5 -1
  176. package/dist/mail/cleanup.js.map +1 -1
  177. package/dist/mail/domain-age.d.ts.map +1 -1
  178. package/dist/mail/domain-age.js +24 -6
  179. package/dist/mail/domain-age.js.map +1 -1
  180. package/dist/mail/drafts.d.ts.map +1 -1
  181. package/dist/mail/drafts.js +9 -7
  182. package/dist/mail/drafts.js.map +1 -1
  183. package/dist/mail/imap/connection.d.ts.map +1 -1
  184. package/dist/mail/imap/connection.js +8 -9
  185. package/dist/mail/imap/connection.js.map +1 -1
  186. package/dist/mail/imap/errors.d.ts.map +1 -1
  187. package/dist/mail/imap/errors.js +2 -2
  188. package/dist/mail/imap/errors.js.map +1 -1
  189. package/dist/mail/imap/read.d.ts.map +1 -1
  190. package/dist/mail/imap/read.js +8 -5
  191. package/dist/mail/imap/read.js.map +1 -1
  192. package/dist/mail/imap/write.d.ts.map +1 -1
  193. package/dist/mail/imap/write.js +2 -1
  194. package/dist/mail/imap/write.js.map +1 -1
  195. package/dist/mail/locate.d.ts +32 -0
  196. package/dist/mail/locate.d.ts.map +1 -0
  197. package/dist/mail/locate.js +99 -0
  198. package/dist/mail/locate.js.map +1 -0
  199. package/dist/mail/mbox.d.ts.map +1 -1
  200. package/dist/mail/mbox.js +7 -5
  201. package/dist/mail/mbox.js.map +1 -1
  202. package/dist/mail/organise.d.ts +35 -50
  203. package/dist/mail/organise.d.ts.map +1 -1
  204. package/dist/mail/organise.js +44 -279
  205. package/dist/mail/organise.js.map +1 -1
  206. package/dist/mail/restore.d.ts +22 -0
  207. package/dist/mail/restore.d.ts.map +1 -0
  208. package/dist/mail/restore.js +193 -0
  209. package/dist/mail/restore.js.map +1 -0
  210. package/dist/mail/rules/apply.d.ts.map +1 -1
  211. package/dist/mail/rules/apply.js +5 -4
  212. package/dist/mail/rules/apply.js.map +1 -1
  213. package/dist/mail/rules/file.d.ts.map +1 -1
  214. package/dist/mail/rules/file.js +37 -8
  215. package/dist/mail/rules/file.js.map +1 -1
  216. package/dist/mail/rules/filters.d.ts.map +1 -1
  217. package/dist/mail/rules/filters.js +13 -7
  218. package/dist/mail/rules/filters.js.map +1 -1
  219. package/dist/mail/rules/query.d.ts.map +1 -1
  220. package/dist/mail/rules/query.js +7 -7
  221. package/dist/mail/rules/query.js.map +1 -1
  222. package/dist/mail/save.js +1 -1
  223. package/dist/mail/save.js.map +1 -1
  224. package/dist/mail/send.d.ts +4 -3
  225. package/dist/mail/send.d.ts.map +1 -1
  226. package/dist/mail/send.js +8 -8
  227. package/dist/mail/send.js.map +1 -1
  228. package/dist/mail/smtp.js +1 -1
  229. package/dist/mail/smtp.js.map +1 -1
  230. package/dist/oauth.d.ts +3 -2
  231. package/dist/oauth.d.ts.map +1 -1
  232. package/dist/oauth.js +16 -7
  233. package/dist/oauth.js.map +1 -1
  234. package/dist/profile.d.ts.map +1 -1
  235. package/dist/profile.js +3 -2
  236. package/dist/profile.js.map +1 -1
  237. package/dist/program.js +1 -1
  238. package/dist/program.js.map +1 -1
  239. package/dist/providers.js +3 -3
  240. package/dist/providers.js.map +1 -1
  241. package/dist/reasons.d.ts.map +1 -1
  242. package/dist/reasons.js +12 -0
  243. package/dist/reasons.js.map +1 -1
  244. package/dist/version.d.ts +1 -1
  245. package/dist/version.js +1 -1
  246. package/package.json +5 -4
  247. package/skills/mail-cli/SKILL.md +3 -3
  248. package/dist/bundle/chunk-GIKNAOER.js +0 -132
  249. package/dist/bundle/command-contract-GVNLRXWS.js +0 -34
  250. package/dist/bundle/first-screen-NNX54MYC.js +0 -32
  251. package/dist/bundle/server-SGGMRV2K.js +0 -64
  252. package/dist/bundle/store-maintenance-command-C6ONZNRX.js +0 -54
  253. package/dist/index.d.ts +0 -3
  254. package/dist/index.d.ts.map +0 -1
  255. package/dist/index.js +0 -3
  256. package/dist/index.js.map +0 -1
  257. package/dist/mail/doctor.d.ts.map +0 -1
  258. package/dist/mail/doctor.js.map +0 -1
  259. /package/dist/bundle/{chunk-LU3WKZBA.js → chunk-CNMSF5QU.js} +0 -0
  260. /package/dist/{mail → commands}/doctor.d.ts +0 -0
@@ -3,15 +3,15 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  readSharedSection,
5
5
  writeSharedSection
6
- } from "./chunk-K2OQCQ2N.js";
6
+ } from "./chunk-GYCJQGFO.js";
7
7
  import {
8
8
  CliError
9
- } from "./chunk-EB2IULWB.js";
9
+ } from "./chunk-YHUCNI2W.js";
10
10
  import {
11
11
  __name
12
12
  } from "./chunk-ZVVMGPBJ.js";
13
13
 
14
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/setup-answers.js
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/cli/setup-answers.js
15
15
  var PERMISSION_ANSWERS = ["readonly", "allow"];
16
16
  var QUESTIONS = ["languages", "tools", "permissions"];
17
17
  var SECTION = "setup";
@@ -7,12 +7,12 @@ import {
7
7
  import {
8
8
  singleLine,
9
9
  visibleControls
10
- } from "./chunk-EB2IULWB.js";
10
+ } from "./chunk-YHUCNI2W.js";
11
11
  import {
12
12
  __name
13
13
  } from "./chunk-ZVVMGPBJ.js";
14
14
 
15
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/render/messages.js
15
+ // 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/render/messages.js
16
16
  import { styleText } from "node:util";
17
17
  var TIME_WIDTH = 8;
18
18
  var INDENT = " ".repeat(TIME_WIDTH + 2);
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  PRAGMAS
5
- } from "./chunk-KMZRXGTF.js";
5
+ } from "./chunk-HZL42476.js";
6
6
  import {
7
7
  CliError
8
- } from "./chunk-EB2IULWB.js";
8
+ } from "./chunk-YHUCNI2W.js";
9
9
  import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite-warning.js
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/store/sqlite-warning.js
14
14
  var SQLITE_WARNING = "SQLite is an experimental feature";
15
15
  var quieted = /* @__PURE__ */ new WeakSet();
16
16
  var quietSqliteWarning = /* @__PURE__ */ __name((host = process) => {
@@ -31,7 +31,7 @@ var isSqliteWarning = /* @__PURE__ */ __name((warning, options) => {
31
31
  return name === "ExperimentalWarning" && message.startsWith(SQLITE_WARNING);
32
32
  }, "isSqliteWarning");
33
33
 
34
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/open.js
34
+ // 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/open.js
35
35
  var openCache = /* @__PURE__ */ __name(async (path) => {
36
36
  const database = await openFile(path);
37
37
  try {
@@ -44,12 +44,12 @@ var openCache = /* @__PURE__ */ __name(async (path) => {
44
44
  }, "openCache");
45
45
  var openFile = /* @__PURE__ */ __name((path) => "Bun" in globalThis ? openUnderBun(path) : openUnderNode(path), "openFile");
46
46
  var openUnderBun = /* @__PURE__ */ __name(async (path) => {
47
- const { openWithBunSqlite } = await import("./bun-sqlite-Y4FP6SDX.js");
47
+ const { openWithBunSqlite } = await import("./bun-sqlite-RNPHH3KC.js");
48
48
  return await openWithBunSqlite(path);
49
49
  }, "openUnderBun");
50
50
  var openUnderNode = /* @__PURE__ */ __name(async (path) => {
51
51
  quietSqliteWarning();
52
- const { openWithNodeSqlite } = await import("./node-sqlite-PXHZAG7Y.js");
52
+ const { openWithNodeSqlite } = await import("./node-sqlite-UKWOBONA.js");
53
53
  return openWithNodeSqlite(path);
54
54
  }, "openUnderNode");
55
55
  var runtime = /* @__PURE__ */ __name(() => {
@@ -6,13 +6,13 @@ import {
6
6
  agentArguments,
7
7
  agentJson,
8
8
  commandAvailability
9
- } from "./chunk-KJV3BI7S.js";
9
+ } from "./chunk-22IKW3TY.js";
10
10
  import {
11
11
  failureContext
12
- } from "./chunk-XEIGKPYU.js";
12
+ } from "./chunk-DG43I7MC.js";
13
13
  import {
14
14
  callerOf
15
- } from "./chunk-Q4T2HBZP.js";
15
+ } from "./chunk-BPDUVWL2.js";
16
16
  import {
17
17
  QUERY_ARGUMENT,
18
18
  lentConnection,
@@ -20,10 +20,10 @@ import {
20
20
  refuseLacking,
21
21
  servicesFor,
22
22
  storeModeDeps
23
- } from "./chunk-MLWN27HF.js";
23
+ } from "./chunk-YO7BLBVE.js";
24
24
  import {
25
25
  MAX_BUFFERED_INPUT
26
- } from "./chunk-ANFIIXBL.js";
26
+ } from "./chunk-JI225TBX.js";
27
27
  import {
28
28
  DEFAULT_OUTPUT_BYTES,
29
29
  ENTITIES,
@@ -42,27 +42,27 @@ import {
42
42
  sealed,
43
43
  startRecording,
44
44
  traceOf
45
- } from "./chunk-IJYYD2JU.js";
45
+ } from "./chunk-IPFFPD3M.js";
46
46
  import {
47
47
  authorityAllowed,
48
48
  botApiAllowed,
49
49
  keyForCommand,
50
50
  levelFor,
51
51
  readKeysForCommand
52
- } from "./chunk-DDQXDX4U.js";
52
+ } from "./chunk-OFZDCUUJ.js";
53
53
  import {
54
54
  currentCaller,
55
55
  keepsSuccess,
56
56
  runContextOf,
57
57
  withCaller
58
- } from "./chunk-DKIAHQRN.js";
58
+ } from "./chunk-SQAAOEGI.js";
59
59
  import {
60
60
  queryDescription
61
- } from "./chunk-4IEDXIUN.js";
61
+ } from "./chunk-OHS5CYZI.js";
62
62
  import {
63
63
  captureStreams,
64
64
  traceIdOf
65
- } from "./chunk-QCNK3YUZ.js";
65
+ } from "./chunk-4HTTN4NO.js";
66
66
  import {
67
67
  COMPACT_FLAG,
68
68
  SNAKE_CASE,
@@ -101,19 +101,19 @@ import {
101
101
  unknown,
102
102
  word,
103
103
  writes
104
- } from "./chunk-G6RG2AZV.js";
104
+ } from "./chunk-XJQJ3ZIY.js";
105
105
  import {
106
106
  CliError,
107
107
  errorCodes
108
- } from "./chunk-EB2IULWB.js";
108
+ } from "./chunk-YHUCNI2W.js";
109
109
  import {
110
110
  __name
111
111
  } from "./chunk-ZVVMGPBJ.js";
112
112
 
113
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/mcp/agent.js
113
+ // 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/mcp/agent.js
114
114
  import { Readable } from "node:stream";
115
115
 
116
- // node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/lint.js
116
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/lint.js
117
117
  var LINT_SEVERITIES = ["high", "medium", "low"];
118
118
  var lintRuleSchema = strictObject({
119
119
  id: word,
@@ -241,7 +241,7 @@ var overrideSchema = strictObject({
241
241
  });
242
242
  var overridesSchema = array(overrideSchema);
243
243
 
244
- // node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/audit.js
244
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/audit.js
245
245
  var auditRuleSchema = strictObject({ id: word, severity: picklist(LINT_SEVERITIES), summary: text });
246
246
  var defineAuditRules = /* @__PURE__ */ __name((input) => parseRegistry("audit rules", array(auditRuleSchema), input, (rules) => duplicates(rules.map((rule) => rule.id)).map((id) => `"${id}" is listed twice`)), "defineAuditRules");
247
247
  var AUDIT_RULES = defineAuditRules([
@@ -350,7 +350,7 @@ var REQUIRED_ROOTS = defineRequiredRoots([
350
350
  { path: ["upgrade"], meaning: "updates the CLI" }
351
351
  ]);
352
352
 
353
- // node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/fields.js
353
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/fields.js
354
354
  var fieldRuleSchema = strictObject({ id: word, rule: text });
355
355
  var defineFieldRules = /* @__PURE__ */ __name((input) => parseRegistry("output field rules", array(fieldRuleSchema), input, (rules) => duplicates(rules.map((rule) => rule.id)).map((id) => `"${id}" is listed twice`)), "defineFieldRules");
356
356
  var FIELD_RULES = defineFieldRules([
@@ -366,7 +366,7 @@ var FIELD_RULES = defineFieldRules([
366
366
  }
367
367
  ]);
368
368
 
369
- // node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/identifiers.js
369
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/identifiers.js
370
370
  var key = pipe(string(), regex(SNAKE_CASE, "a snake_case key"));
371
371
  var identifierSchema = strictObject({ key, meaning: text, replaces: optional(array(key)) });
372
372
  var defineIdentifiers = /* @__PURE__ */ __name((input) => parseRegistry("identifiers", array(identifierSchema), input, (identifiers) => {
@@ -388,7 +388,7 @@ var IDENTIFIERS = defineIdentifiers([
388
388
  { key: "trace_id", meaning: "the distributed trace a run belongs to, from `traceparent`" }
389
389
  ]);
390
390
 
391
- // node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-calendar.js
391
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-calendar.js
392
392
  var CALENDAR_FLAGS = [
393
393
  { name: "--end-time", value: "<time>", role: "value", type: "time", meaning: "when it ends" },
394
394
  {
@@ -462,7 +462,7 @@ var CALENDAR_FLAGS = [
462
462
  }
463
463
  ];
464
464
 
465
- // node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-how.js
465
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-how.js
466
466
  var HOW_FLAGS = [
467
467
  {
468
468
  name: "--limit",
@@ -1456,7 +1456,7 @@ var HOW_FLAGS = [
1456
1456
  }
1457
1457
  ];
1458
1458
 
1459
- // node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-mail.js
1459
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-mail.js
1460
1460
  var MAIL_FLAGS = [
1461
1461
  {
1462
1462
  name: "--cc",
@@ -1486,7 +1486,68 @@ var MAIL_FLAGS = [
1486
1486
  }
1487
1487
  ];
1488
1488
 
1489
- // node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-what.js
1489
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-privacy.js
1490
+ var PRIVACY_FLAGS = [
1491
+ {
1492
+ name: "--about-text",
1493
+ value: "<who>",
1494
+ role: "value",
1495
+ type: "choice",
1496
+ meaning: "who sees the about text: everyone, contacts or nobody"
1497
+ },
1498
+ {
1499
+ name: "--calls",
1500
+ value: "<who>",
1501
+ role: "value",
1502
+ type: "choice",
1503
+ meaning: "whose calls ring: everyone, contacts or nobody"
1504
+ },
1505
+ {
1506
+ name: "--chat-invites",
1507
+ value: "<who>",
1508
+ role: "value",
1509
+ type: "choice",
1510
+ meaning: "who may add the account to groups and channels: everyone, contacts or nobody"
1511
+ },
1512
+ {
1513
+ name: "--find-by-phone",
1514
+ value: "<who>",
1515
+ role: "value",
1516
+ type: "choice",
1517
+ meaning: "who finds the account by its number: everyone, contacts or nobody"
1518
+ },
1519
+ {
1520
+ name: "--hide-online",
1521
+ value: "<on|off>",
1522
+ role: "value",
1523
+ type: "choice",
1524
+ meaning: "hide online status and last seen"
1525
+ },
1526
+ {
1527
+ name: "--last-seen",
1528
+ value: "<who>",
1529
+ role: "value",
1530
+ type: "choice",
1531
+ meaning: "who sees when the account was last online: everyone, contacts or nobody"
1532
+ },
1533
+ {
1534
+ name: "--phone-number",
1535
+ value: "<who>",
1536
+ role: "value",
1537
+ type: "choice",
1538
+ meaning: "who sees the number: everyone, contacts or nobody"
1539
+ },
1540
+ {
1541
+ name: "--profile-photo",
1542
+ value: "<who>",
1543
+ role: "value",
1544
+ type: "choice",
1545
+ meaning: "who sees the profile photo: everyone, contacts or nobody"
1546
+ },
1547
+ { name: "--read-receipts", value: "<on|off>", role: "value", type: "choice", meaning: "send read receipts" }
1548
+ ];
1549
+
1550
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-what.js
1490
1551
  var WHAT_FLAGS = [
1491
1552
  {
1492
1553
  name: "--analysis-provider",
@@ -1909,6 +1970,13 @@ var WHAT_FLAGS = [
1909
1970
  meaning: "look again from this day, for what arrived late"
1910
1971
  },
1911
1972
  { name: "--run", value: "<id>", role: "target", type: "id", meaning: "the run it is about" },
1973
+ {
1974
+ name: "--write",
1975
+ value: "<id>",
1976
+ role: "target",
1977
+ type: "id",
1978
+ meaning: "one write of a run, by the operation_id its answer listed: undo or act on that write alone"
1979
+ },
1912
1980
  {
1913
1981
  name: "--target",
1914
1982
  value: "<ref>",
@@ -2111,63 +2179,6 @@ var WHAT_FLAGS = [
2111
2179
  type: "path",
2112
2180
  meaning: "an Ogg Opus file sent as a voice message"
2113
2181
  },
2114
- {
2115
- name: "--about-text",
2116
- value: "<who>",
2117
- role: "value",
2118
- type: "choice",
2119
- meaning: "who sees the about text: everyone, contacts or nobody"
2120
- },
2121
- {
2122
- name: "--calls",
2123
- value: "<who>",
2124
- role: "value",
2125
- type: "choice",
2126
- meaning: "whose calls ring: everyone, contacts or nobody"
2127
- },
2128
- {
2129
- name: "--chat-invites",
2130
- value: "<who>",
2131
- role: "value",
2132
- type: "choice",
2133
- meaning: "who may add the account to groups and channels: everyone, contacts or nobody"
2134
- },
2135
- {
2136
- name: "--find-by-phone",
2137
- value: "<who>",
2138
- role: "value",
2139
- type: "choice",
2140
- meaning: "who finds the account by its number: everyone, contacts or nobody"
2141
- },
2142
- {
2143
- name: "--hide-online",
2144
- value: "<on|off>",
2145
- role: "value",
2146
- type: "choice",
2147
- meaning: "hide online status and last seen"
2148
- },
2149
- {
2150
- name: "--last-seen",
2151
- value: "<who>",
2152
- role: "value",
2153
- type: "choice",
2154
- meaning: "who sees when the account was last online: everyone, contacts or nobody"
2155
- },
2156
- {
2157
- name: "--phone-number",
2158
- value: "<who>",
2159
- role: "value",
2160
- type: "choice",
2161
- meaning: "who sees the number: everyone, contacts or nobody"
2162
- },
2163
- {
2164
- name: "--profile-photo",
2165
- value: "<who>",
2166
- role: "value",
2167
- type: "choice",
2168
- meaning: "who sees the profile photo: everyone, contacts or nobody"
2169
- },
2170
- { name: "--read-receipts", value: "<on|off>", role: "value", type: "choice", meaning: "send read receipts" },
2171
2182
  {
2172
2183
  name: "--until",
2173
2184
  value: "<time>",
@@ -2484,7 +2495,7 @@ var WHAT_FLAGS = [
2484
2495
  }
2485
2496
  ];
2486
2497
 
2487
- // node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/vocabulary.js
2498
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/vocabulary.js
2488
2499
  var FLAG_TYPES = [
2489
2500
  "switch",
2490
2501
  "count",
@@ -2625,6 +2636,7 @@ var verbs = [
2625
2636
  // Only when someone asks, never from a matching name: WC-ACCT-11 in docs/standards/accounts.md.
2626
2637
  ["link", "record that two identities are one person"],
2627
2638
  ["unlink", "undo a link"],
2639
+ ["allocate", "match a payment to the invoice or order it settles, in whole or in part"],
2628
2640
  ["lookup", "ask the messenger who is behind a phone number"],
2629
2641
  [
2630
2642
  "inspect",
@@ -2725,6 +2737,19 @@ var collections = [
2725
2737
  "derived records attached to a selected entity, with explicit coverage of included and omitted facets"
2726
2738
  ],
2727
2739
  ["organizations", "companies, teams, families or communities"],
2740
+ [
2741
+ "records",
2742
+ "documents of the owner's business, such as an invoice or a receipt, kept with the things they are about"
2743
+ ],
2744
+ ["invoices", "bills the owner sends or receives, with their amounts and due dates"],
2745
+ ["orders", "what a customer asked for and the owner owes or delivers"],
2746
+ ["payments", "money that moved in or out, each one matched to the invoices it settles"],
2747
+ ["deals", "sales the owner works on, each at a stage of a pipeline, with an amount and an outcome"],
2748
+ ["leads", "possible customers not yet qualified into a deal"],
2749
+ ["pipelines", "ordered sets of stages a deal moves through"],
2750
+ ["stages", "steps of a pipeline, each open, won or lost"],
2751
+ ["products", "goods and services the owner sells, with their prices"],
2752
+ ["users", "people who work in the owner's account at a service, such as a CRM's employees"],
2728
2753
  [
2729
2754
  "identities",
2730
2755
  "ways to reach a person or an organization: an account in one messenger or mailbox, an e-mail address, a phone"
@@ -2854,10 +2879,10 @@ var VOCABULARY = defineVocabulary({
2854
2879
  ],
2855
2880
  views: views.map(([entry, meaning]) => ({ word: entry, meaning })),
2856
2881
  roots: roots.map(([entry, meaning]) => ({ word: entry, meaning })),
2857
- flags: [...HOW_FLAGS, ...WHAT_FLAGS, ...CALENDAR_FLAGS, ...MAIL_FLAGS]
2882
+ flags: [...HOW_FLAGS, ...WHAT_FLAGS, ...PRIVACY_FLAGS, ...CALENDAR_FLAGS, ...MAIL_FLAGS]
2858
2883
  });
2859
2884
 
2860
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/mcp/agent.js
2885
+ // 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/mcp/agent.js
2861
2886
  var TYPES = new Map(VOCABULARY.flags.map((flag) => [flag.name, flag.type]));
2862
2887
  var snake = /* @__PURE__ */ __name((name) => name.replaceAll("|", "_or_").replace(/[^a-z0-9]+/gi, "_"), "snake");
2863
2888
  var longOf = /* @__PURE__ */ __name((option) => option.flags.match(/--[a-z0-9][a-z0-9-]*/)?.[0], "longOf");
@@ -3080,7 +3105,7 @@ var runCommandForAgent = /* @__PURE__ */ __name(async (program, path, input, ctx
3080
3105
  }
3081
3106
  }, "runCommandForAgent");
3082
3107
 
3083
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/mcp/tool.js
3108
+ // 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/mcp/tool.js
3084
3109
  var limit = optional(pipe(number(), integer(), minValue(1), maxValue(100), description("how many")));
3085
3110
  var page = optional(pipe(number(), integer(), minValue(1), description("which page, from 1")));
3086
3111
  var message = pipe(
@@ -3339,7 +3364,7 @@ var failed = /* @__PURE__ */ __name((error, errors, effects) => {
3339
3364
  return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(error, context))));
3340
3365
  }, "failed");
3341
3366
 
3342
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/mcp/surface.js
3367
+ // 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/mcp/surface.js
3343
3368
  import { randomUUID } from "node:crypto";
3344
3369
  var MATCHES = 8;
3345
3370
  var ANSWER = answerSchema();
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  CliError
5
- } from "./chunk-EB2IULWB.js";
5
+ } from "./chunk-YHUCNI2W.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/files/ordinary-file.js
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/files/ordinary-file.js
11
11
  import { constants } from "node:fs";
12
12
  import { lstat, open } from "node:fs/promises";
13
13
  var deviceOf = /* @__PURE__ */ __name((dev) => process.platform === "win32" ? BigInt.asUintN(32, dev) : dev, "deviceOf");
@@ -73,7 +73,7 @@ var syncDirectory = /* @__PURE__ */ __name(async (path) => {
73
73
  }
74
74
  }, "syncDirectory");
75
75
 
76
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/files/atomic-write.js
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/files/atomic-write.js
77
77
  import { randomUUID } from "node:crypto";
78
78
  import { constants as constants2 } from "node:fs";
79
79
  import { link, open as open2, realpath, rename, unlink } from "node:fs/promises";
@@ -111,7 +111,7 @@ var writeFileAtomic = /* @__PURE__ */ __name(async (path, content, { mode = 384,
111
111
  }
112
112
  }, "writeFileAtomic");
113
113
 
114
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/files/bounded-utf8.js
114
+ // 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/files/bounded-utf8.js
115
115
  var readBoundedUtf8File = /* @__PURE__ */ __name(async (path, { maxBytes }) => {
116
116
  if (!Number.isSafeInteger(maxBytes) || maxBytes < 1 || maxBytes > 16 * 1024 * 1024)
117
117
  throw new CliError("validation_error", "file maxBytes takes 1\u201316777216 bytes");
@@ -140,21 +140,21 @@ var readBoundedUtf8File = /* @__PURE__ */ __name(async (path, { maxBytes }) => {
140
140
  }
141
141
  }, "readBoundedUtf8File");
142
142
 
143
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/files/lock.js
143
+ // 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/files/lock.js
144
144
  import { mkdir as mkdir2 } from "node:fs/promises";
145
145
  import { basename as basename2, dirname as dirname2 } from "node:path";
146
146
 
147
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
147
+ // 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/files/native-writer-lease.js
148
148
  import { randomUUID as randomUUID2 } from "node:crypto";
149
149
  import { lstat as lstat3, mkdir, open as open3, realpath as realpath3, rmdir as rmdir2, unlink as unlink4 } from "node:fs/promises";
150
150
  import { hostname as hostname2 } from "node:os";
151
151
  import { join as join3 } from "node:path";
152
152
 
153
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
153
+ // 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/files/native-lease-inspection.js
154
154
  import { lstat as lstat2, readdir, realpath as realpath2, unlink as unlink2 } from "node:fs/promises";
155
155
  import { join as join2 } from "node:path";
156
156
 
157
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/files/native-lease-owner.js
157
+ // 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/files/native-lease-owner.js
158
158
  import { hostname } from "node:os";
159
159
  var missingLeaseFile = /* @__PURE__ */ __name((error) => typeof error === "object" && error !== null && "code" in error && error.code === "ENOENT", "missingLeaseFile");
160
160
  var readLeaseOwner = /* @__PURE__ */ __name(async (path, name, signal) => {
@@ -199,7 +199,7 @@ var leaseOwnerStatus = /* @__PURE__ */ __name((owner) => {
199
199
  }
200
200
  }, "leaseOwnerStatus");
201
201
 
202
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
202
+ // 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/files/native-lease-inspection.js
203
203
  var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
204
204
  const inspect = /* @__PURE__ */ __name(async (destination, options = {}) => {
205
205
  options.signal?.throwIfAborted();
@@ -258,7 +258,7 @@ var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
258
258
  return { inspect, recover };
259
259
  }, "leaseInspection");
260
260
 
261
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/files/native-lease-release.js
261
+ // 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/files/native-lease-release.js
262
262
  import { rmdir, unlink as unlink3 } from "node:fs/promises";
263
263
  var ownedNativeLease = /* @__PURE__ */ __name((path, name, owner, folder, identity) => {
264
264
  let releasing;
@@ -283,7 +283,7 @@ var ownedNativeLease = /* @__PURE__ */ __name((path, name, owner, folder, identi
283
283
  };
284
284
  }, "ownedNativeLease");
285
285
 
286
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
286
+ // 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/files/native-writer-lease.js
287
287
  var validName = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length > 0 && value !== "." && value !== ".." && !/[\\/\0:]/.test(value), "validName");
288
288
  var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
289
289
  const { markerDirectory, legacyMarker } = layout;
@@ -354,7 +354,7 @@ var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
354
354
  };
355
355
  }, "nativeWriterLeaseStore");
356
356
 
357
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/files/lock.js
357
+ // 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/files/lock.js
358
358
  var acquireLock = /* @__PURE__ */ __name(async (path, { signal } = {}) => {
359
359
  const folder = dirname2(path);
360
360
  await mkdir2(folder, { recursive: true, mode: 448 });
@@ -369,7 +369,7 @@ var acquireLock = /* @__PURE__ */ __name(async (path, { signal } = {}) => {
369
369
  });
370
370
  }, "acquireLock");
371
371
 
372
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/files/safe-name.js
372
+ // 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/files/safe-name.js
373
373
  import { basename as basename3 } from "node:path";
374
374
  var safeName = /* @__PURE__ */ __name((name, platform = process.platform) => {
375
375
  let plain = name === void 0 ? "" : basename3(name.replaceAll("\\", "/")).replace(/[\p{Cc}​-‏‪-‮⁦-⁩]/gu, "").replace(/^\.+/, "");
@@ -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-QCNK3YUZ.js";
5
+ } from "./chunk-4HTTN4NO.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/path.js
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
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");
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/mcp/instructions.js
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/mcp/instructions.js
8
8
  var instructions = /* @__PURE__ */ __name(({ command, name, profile, writes, skill }) => {
9
9
  const all = typeof profile !== "string";
10
10
  const offers = /* @__PURE__ */ __name((key) => all || writes.includes(key), "offers");
@@ -2,16 +2,16 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  alive
5
- } from "./chunk-3CVDHJER.js";
5
+ } from "./chunk-WHI3LTAW.js";
6
6
  import {
7
7
  resolvePaths,
8
8
  writeSecurely
9
- } from "./chunk-QCNK3YUZ.js";
9
+ } from "./chunk-4HTTN4NO.js";
10
10
  import {
11
11
  __name
12
12
  } from "./chunk-ZVVMGPBJ.js";
13
13
 
14
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/background/lock.js
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/background/lock.js
15
15
  import { existsSync, linkSync, mkdirSync, readdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
16
16
  import { dirname, join } from "node:path";
17
17
  var lockPath = /* @__PURE__ */ __name((app, profile, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "serve", `${profile}.lock`), "lockPath");