@wirecat/mail-cli 0.14.0 → 0.16.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 (163) hide show
  1. package/CHANGELOG.md +60 -0
  2. package/README.md +5 -4
  3. package/dist/bin/mail.js +2 -2
  4. package/dist/bundle/{all-profiles-O7HQNZOF.js → all-profiles-TUDREUUW.js} +10 -10
  5. package/dist/bundle/{anthropic-SNA6PTVO.js → anthropic-KQOVSP6C.js} +6 -6
  6. package/dist/bundle/{app-server-LBKMJMKN.js → app-server-QK7PKVT7.js} +47 -47
  7. package/dist/bundle/{bun-KF5QK2YN.js → bun-2NMWL5YB.js} +2 -2
  8. package/dist/bundle/{bun-sqlite-2DKMM2PT.js → bun-sqlite-Y4FP6SDX.js} +5 -5
  9. package/dist/bundle/{chunk-UJEO3VWA.js → chunk-3CVDHJER.js} +1 -1
  10. package/dist/bundle/{chunk-6EZ7XGRG.js → chunk-3ZJE5TIG.js} +2 -2
  11. package/dist/bundle/{chunk-UHHARH5X.js → chunk-4IEDXIUN.js} +308 -236
  12. package/dist/bundle/{chunk-KBFIKUCA.js → chunk-4IIH5PXR.js} +28 -28
  13. package/dist/bundle/{chunk-ZCPUKUST.js → chunk-5FPQGUJA.js} +1 -1
  14. package/dist/bundle/{chunk-DPKHVBP3.js → chunk-6DVPPLAN.js} +5 -5
  15. package/dist/bundle/{chunk-XRJIQC6P.js → chunk-7LMTWOTP.js} +2 -2
  16. package/dist/bundle/{chunk-H2ZURG7Q.js → chunk-ANFIIXBL.js} +2 -2
  17. package/dist/bundle/{chunk-KQ5P5NLL.js → chunk-ARDUJR5Z.js} +1 -1
  18. package/dist/bundle/{chunk-AOVOIXGR.js → chunk-B2NDDA2W.js} +10 -10
  19. package/dist/bundle/{chunk-MQK2UNG4.js → chunk-CGH6UH3T.js} +8 -8
  20. package/dist/bundle/{chunk-BP3TZ4EY.js → chunk-CRYWPLJP.js} +1 -1
  21. package/dist/bundle/{chunk-Q5EYTU3Q.js → chunk-CT2MIWXY.js} +3 -3
  22. package/dist/bundle/{chunk-7LDC275M.js → chunk-DDQXDX4U.js} +7 -7
  23. package/dist/bundle/{chunk-2KVR7FF3.js → chunk-DKIAHQRN.js} +9 -9
  24. package/dist/bundle/{chunk-CCHHEMPM.js → chunk-EB2IULWB.js} +3 -2
  25. package/dist/bundle/{chunk-MXG4L7NH.js → chunk-EBEYU7RW.js} +10 -10
  26. package/dist/bundle/{chunk-2F7D6YMB.js → chunk-EDJQDR5X.js} +4 -4
  27. package/dist/bundle/{chunk-E7BTD4P6.js → chunk-EZIJPXDZ.js} +6 -6
  28. package/dist/bundle/{chunk-RE5SEGSR.js → chunk-FHY664YS.js} +4 -4
  29. package/dist/bundle/{chunk-B5XAETYU.js → chunk-FROWEHK7.js} +2 -2
  30. package/dist/bundle/{chunk-IVDUR5Y4.js → chunk-G6RG2AZV.js} +15 -8
  31. package/dist/bundle/{chunk-P547HU26.js → chunk-GAYW2JRW.js} +10 -10
  32. package/dist/bundle/{chunk-2A4BAMNF.js → chunk-GIKNAOER.js} +4 -4
  33. package/dist/bundle/{chunk-UMWR5PKA.js → chunk-HN3EDDVX.js} +13 -13
  34. package/dist/bundle/{chunk-7GSE57K3.js → chunk-HVAXTTOT.js} +3 -3
  35. package/dist/bundle/{chunk-G53HRGTK.js → chunk-I3K6JG4I.js} +17 -17
  36. package/dist/bundle/{chunk-YG4OI3HJ.js → chunk-IJYYD2JU.js} +383 -204
  37. package/dist/bundle/{chunk-M2YIJDBL.js → chunk-K2OQCQ2N.js} +6 -6
  38. package/dist/bundle/{chunk-P62Z3Q35.js → chunk-KJV3BI7S.js} +14 -14
  39. package/dist/bundle/{chunk-DIP3ENSY.js → chunk-KMZRXGTF.js} +1 -1
  40. package/dist/bundle/{chunk-ILHTNOIV.js → chunk-KV4267S4.js} +1 -1
  41. package/dist/bundle/{chunk-QWRBAQZ7.js → chunk-LMN7SYX4.js} +1 -1
  42. package/dist/bundle/{chunk-I7EWIIBC.js → chunk-M24BGP7M.js} +2 -3
  43. package/dist/bundle/{chunk-V5ZID7KC.js → chunk-M6O4DH5F.js} +1 -1
  44. package/dist/bundle/{chunk-WVWNKZI4.js → chunk-MLWN27HF.js} +465 -280
  45. package/dist/bundle/{chunk-VA3JKERH.js → chunk-N7DLDEFU.js} +2 -2
  46. package/dist/bundle/{chunk-QZXHMQCM.js → chunk-OYB3FUYQ.js} +1 -1
  47. package/dist/bundle/{chunk-I62OTHDE.js → chunk-POS35G6D.js} +3 -3
  48. package/dist/bundle/{chunk-5C74F7XX.js → chunk-PWTEWT4M.js} +4 -4
  49. package/dist/bundle/{chunk-NVQUK2DH.js → chunk-PYX6K527.js} +47 -47
  50. package/dist/bundle/{chunk-VERSKGJV.js → chunk-Q4T2HBZP.js} +2 -2
  51. package/dist/bundle/{chunk-3EAAEF5U.js → chunk-QCNK3YUZ.js} +95 -36
  52. package/dist/bundle/{chunk-OGK7LMYT.js → chunk-R6SBRHVG.js} +6 -6
  53. package/dist/bundle/{chunk-WBJQEB6E.js → chunk-RPEW7E3S.js} +12 -12
  54. package/dist/bundle/{chunk-X5XIFNTI.js → chunk-TTOKDZQX.js} +2 -2
  55. package/dist/bundle/{chunk-NGZW2JPK.js → chunk-UBLFUQ7O.js} +7 -7
  56. package/dist/bundle/{chunk-W643XZIR.js → chunk-VD6GZ3W2.js} +2 -2
  57. package/dist/bundle/{chunk-6CZQJ5XR.js → chunk-VP5FL5JQ.js} +8 -8
  58. package/dist/bundle/{chunk-XPREXN3W.js → chunk-VTJ5TMGN.js} +3 -3
  59. package/dist/bundle/{chunk-IPKXRW6W.js → chunk-WKHHCCJE.js} +26 -25
  60. package/dist/bundle/{chunk-KLLKDOO2.js → chunk-X7EBOXBY.js} +485 -309
  61. package/dist/bundle/{chunk-H7OQ4YZV.js → chunk-XAANQN4R.js} +47 -28
  62. package/dist/bundle/{chunk-EW3XTUPB.js → chunk-XBIPSSKI.js} +4 -4
  63. package/dist/bundle/{chunk-3YGYB3LJ.js → chunk-XEIGKPYU.js} +27 -6
  64. package/dist/bundle/{chunk-FTGCXIQA.js → chunk-YGJO5VNR.js} +47 -33
  65. package/dist/bundle/{chunk-PQLBPYJR.js → chunk-YPF6OS37.js} +1 -1
  66. package/dist/bundle/{chunk-ER6PJAPK.js → chunk-ZNW4E3SG.js} +3 -3
  67. package/dist/bundle/{chunk-F5SZVO3A.js → chunk-ZS6YKNYS.js} +4 -4
  68. package/dist/bundle/command-contract-GVNLRXWS.js +34 -0
  69. package/dist/bundle/{decode-X7Y2VSYZ.js → decode-WCS4KOHV.js} +5 -5
  70. package/dist/bundle/{dispatch-OWNO2CMC.js → dispatch-3ILCYZ4Q.js} +8 -8
  71. package/dist/bundle/{dist-L7FNC74Q.js → dist-FL422DTA.js} +14 -14
  72. package/dist/bundle/{echarts-5AB3LFVD.js → echarts-45D6USAX.js} +2 -2
  73. package/dist/bundle/{embed-VBS5LRCE.js → embed-4B4ATLCN.js} +6 -6
  74. package/dist/bundle/{embedder-VFSYBDKK.js → embedder-ASWGJXNV.js} +9 -9
  75. package/dist/bundle/{failure-E534GZDF.js → failure-UDL5QZRZ.js} +2 -2
  76. package/dist/bundle/{first-run-NO2ODH2W.js → first-run-5K3UD4BU.js} +11 -11
  77. package/dist/bundle/first-screen-NNX54MYC.js +32 -0
  78. package/dist/bundle/{instructions-52W6ZQTU.js → instructions-6EFSPC7C.js} +1 -1
  79. package/dist/bundle/mail.js +12 -12
  80. package/dist/bundle/{mcp-MNI62HHE.js → mcp-PPVOM4SE.js} +2 -2
  81. package/dist/bundle/{node-TL2PBNKO.js → node-OXC26QXO.js} +2 -2
  82. package/dist/bundle/{node-sqlite-757HNQAD.js → node-sqlite-PXHZAG7Y.js} +6 -6
  83. package/dist/bundle/{oauth-VDRNJ7KN.js → oauth-YK2QLC7U.js} +7 -7
  84. package/dist/bundle/{open-NUWYOKPO.js → open-SABDXZ4B.js} +5 -5
  85. package/dist/bundle/{openai-YLBFVK5X.js → openai-DPURPXEU.js} +14 -14
  86. package/dist/bundle/{process-PWAGP6YY.js → process-YWPAOI6G.js} +1 -1
  87. package/dist/bundle/{program-PPUPVL7O.js → program-L43S7DRF.js} +12245 -11133
  88. package/dist/bundle/{prompt-M5U66RVJ.js → prompt-GKVNFGFE.js} +5 -5
  89. package/dist/bundle/{recognize-DCMDZA2U.js → recognize-344YDSLX.js} +4 -4
  90. package/dist/bundle/{remote-4SHI5WJG.js → remote-53UZUJJU.js} +7 -7
  91. package/dist/bundle/{rerank-DYMZMNPQ.js → rerank-PAIRND6R.js} +7 -7
  92. package/dist/bundle/{serve-HO3WME4G.js → serve-DZSO7LJK.js} +9 -9
  93. package/dist/bundle/{server-R3TIPRZN.js → server-EGG3V67I.js} +39 -39
  94. package/dist/bundle/server-SGGMRV2K.js +64 -0
  95. package/dist/bundle/{sqlite-runtime-DWRITUIH.js → sqlite-runtime-ZQ6F3VYZ.js} +6 -6
  96. package/dist/bundle/{state-QOMUDOGF.js → state-LXPOWLZ5.js} +6 -6
  97. package/dist/bundle/{store-RGO6IABA.js → store-4ZMSK5R5.js} +15 -15
  98. package/dist/bundle/{store-LHHMOE5V.js → store-PHT75I6S.js} +21 -19
  99. package/dist/bundle/store-maintenance-command-C6ONZNRX.js +54 -0
  100. package/dist/commands/account.d.ts.map +1 -1
  101. package/dist/commands/account.js +149 -3
  102. package/dist/commands/account.js.map +1 -1
  103. package/dist/commands/context.d.ts +3 -0
  104. package/dist/commands/context.d.ts.map +1 -1
  105. package/dist/commands/context.js +2 -2
  106. package/dist/commands/context.js.map +1 -1
  107. package/dist/commands/import.d.ts +3 -0
  108. package/dist/commands/import.d.ts.map +1 -0
  109. package/dist/commands/import.js +92 -0
  110. package/dist/commands/import.js.map +1 -0
  111. package/dist/commands/read.d.ts.map +1 -1
  112. package/dist/commands/read.js +29 -3
  113. package/dist/commands/read.js.map +1 -1
  114. package/dist/commands/session-start.d.ts.map +1 -1
  115. package/dist/commands/session-start.js +9 -7
  116. package/dist/commands/session-start.js.map +1 -1
  117. package/dist/commands/stats.d.ts.map +1 -1
  118. package/dist/commands/stats.js +49 -2
  119. package/dist/commands/stats.js.map +1 -1
  120. package/dist/commands/sync.d.ts +2 -0
  121. package/dist/commands/sync.d.ts.map +1 -1
  122. package/dist/commands/sync.js +38 -4
  123. package/dist/commands/sync.js.map +1 -1
  124. package/dist/config.d.ts +12 -1
  125. package/dist/config.d.ts.map +1 -1
  126. package/dist/config.js +30 -1
  127. package/dist/config.js.map +1 -1
  128. package/dist/mail/doctor.d.ts +3 -2
  129. package/dist/mail/doctor.d.ts.map +1 -1
  130. package/dist/mail/doctor.js +14 -16
  131. package/dist/mail/doctor.js.map +1 -1
  132. package/dist/mail/domain-age.d.ts +29 -0
  133. package/dist/mail/domain-age.d.ts.map +1 -0
  134. package/dist/mail/domain-age.js +157 -0
  135. package/dist/mail/domain-age.js.map +1 -0
  136. package/dist/mail/mbox.d.ts +9 -0
  137. package/dist/mail/mbox.d.ts.map +1 -0
  138. package/dist/mail/mbox.js +230 -0
  139. package/dist/mail/mbox.js.map +1 -0
  140. package/dist/oauth.d.ts +13 -9
  141. package/dist/oauth.d.ts.map +1 -1
  142. package/dist/oauth.js +12 -25
  143. package/dist/oauth.js.map +1 -1
  144. package/dist/profile.d.ts +4 -1
  145. package/dist/profile.d.ts.map +1 -1
  146. package/dist/profile.js +6 -1
  147. package/dist/profile.js.map +1 -1
  148. package/dist/program.d.ts.map +1 -1
  149. package/dist/program.js +15 -2
  150. package/dist/program.js.map +1 -1
  151. package/dist/reasons.d.ts +1 -1
  152. package/dist/reasons.d.ts.map +1 -1
  153. package/dist/reasons.js +0 -1
  154. package/dist/reasons.js.map +1 -1
  155. package/dist/version.d.ts +1 -1
  156. package/dist/version.js +1 -1
  157. package/package.json +4 -4
  158. package/skills/mail-cli/SKILL.md +2 -0
  159. package/dist/bundle/command-contract-B3OGAIDB.js +0 -34
  160. package/dist/bundle/first-screen-7VJLGMJJ.js +0 -32
  161. package/dist/bundle/server-244FHPY4.js +0 -64
  162. package/dist/bundle/store-maintenance-command-LU2ZBDUY.js +0 -54
  163. /package/dist/bundle/{chunk-NUN6OGOV.js → chunk-LU3WKZBA.js} +0 -0
@@ -3,16 +3,16 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  formatMeetingReference,
5
5
  parseMeetingReference
6
- } from "./chunk-UHHARH5X.js";
6
+ } from "./chunk-4IEDXIUN.js";
7
7
  import {
8
8
  CliError,
9
9
  singleLine
10
- } from "./chunk-CCHHEMPM.js";
10
+ } from "./chunk-EB2IULWB.js";
11
11
  import {
12
12
  __name
13
13
  } from "./chunk-ZVVMGPBJ.js";
14
14
 
15
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/domain/locator.js
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/domain/locator.js
16
16
  var SCHEME = "msg:";
17
17
  var formatLocator = /* @__PURE__ */ __name(({ provider, account, chat, message }) => SCHEME + [provider, account, chat, message].map(encodeURIComponent).join("/"), "formatLocator");
18
18
  var isLocator = /* @__PURE__ */ __name((reference) => reference.trim().startsWith(SCHEME), "isLocator");
@@ -26,7 +26,7 @@ var parseLocator = /* @__PURE__ */ __name((reference) => {
26
26
  return { provider, account, chat, message };
27
27
  }, "parseLocator");
28
28
 
29
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/domain/references.js
29
+ // 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/domain/references.js
30
30
  var SIMPLE_REFERENCES = [
31
31
  "note",
32
32
  "document",
@@ -173,7 +173,7 @@ var looksLikeReference = /* @__PURE__ */ __name((text) => {
173
173
  return match !== null && byPrefix.has(match[1]);
174
174
  }, "looksLikeReference");
175
175
 
176
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/domain/providers.js
176
+ // 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/domain/providers.js
177
177
  var KINDS = ["messages", "mail", "notes", "documents", "meetings", "events"];
178
178
  var MESSENGER_OPENS = { chat: "messages list", message: "messages show", contact: "contacts show" };
179
179
  var PROVIDERS = [
@@ -292,7 +292,7 @@ var providerNamed = /* @__PURE__ */ __name((word) => {
292
292
  var kindIn = /* @__PURE__ */ __name((provider) => isFolderProvider(provider) ? "notes" : registry.find(({ name }) => name === provider)?.kind, "kindIn");
293
293
  var kindOf = /* @__PURE__ */ __name((provider) => kindIn(provider) ?? "messages", "kindOf");
294
294
 
295
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/domain/counters.js
295
+ // 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/domain/counters.js
296
296
  var COUNTER_FIELDS = ["views", "reactions", "comments"];
297
297
  var validCounter = /* @__PURE__ */ __name((value) => typeof value === "number" && Number.isFinite(value) && value >= 0, "validCounter");
298
298
  var counterValue = /* @__PURE__ */ __name((message, field) => {
@@ -329,7 +329,7 @@ var counterFreshness = /* @__PURE__ */ __name((states) => {
329
329
  return states.some((one) => one.freshness === "stale") ? "stale" : "fresh";
330
330
  }, "counterFreshness");
331
331
 
332
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/domain/money.js
332
+ // 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/domain/money.js
333
333
  var CURRENCY_SCALES = {
334
334
  AED: 2,
335
335
  AMD: 2,
@@ -414,7 +414,7 @@ var quantityOf = /* @__PURE__ */ __name((text) => {
414
414
  }, "quantityOf");
415
415
  var lineUnits = /* @__PURE__ */ __name((thousandths, unitPrice) => Number((thousandths * BigInt(unitPrice) + 500n) / 1000n), "lineUnits");
416
416
 
417
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/domain/finance.js
417
+ // 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/domain/finance.js
418
418
  var INVOICE_DIRECTIONS = ["receivable", "payable"];
419
419
  var INVOICE_STATUSES = ["draft", "issued", "partly_paid", "paid", "void"];
420
420
  var MONEY_DIRECTIONS = ["in", "out"];
@@ -443,7 +443,7 @@ var paymentLine = /* @__PURE__ */ __name((payment) => {
443
443
  var invoiceTitle = /* @__PURE__ */ __name((invoice) => `Invoice ${invoiceLine(invoice)}`, "invoiceTitle");
444
444
  var paymentEntryTitle = /* @__PURE__ */ __name((payment) => `Payment \xB7 ${paymentLine(payment)}`, "paymentEntryTitle");
445
445
 
446
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/domain/rankings-options.js
446
+ // 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/domain/rankings-options.js
447
447
  var MESSAGE_MEASURES = ["views", "reactions", "forwards", "comments", "replies", "thread-size"];
448
448
  var AUTHOR_MEASURES = [
449
449
  "messages",
@@ -583,7 +583,7 @@ var withoutUrls = /* @__PURE__ */ __name((text) => text.replace(/\S+/gu, (token)
583
583
  var rankingWords = /* @__PURE__ */ __name((text) => withoutUrls(text).match(/[\p{L}\p{N}]+/gu)?.length ?? 0, "rankingWords");
584
584
  var rankingQuestion = /* @__PURE__ */ __name((text) => withoutUrls(text).includes("?"), "rankingQuestion");
585
585
 
586
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/domain/records.js
586
+ // 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/domain/records.js
587
587
  import { createHash } from "node:crypto";
588
588
  var RECORDS_SCHEMA_VERSION = 1;
589
589
  var RECORD_OPERATIONS = ["upsert", "delete"];
@@ -3,26 +3,26 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  executableEnvironment,
5
5
  executableOnPath
6
- } from "./chunk-PQLBPYJR.js";
6
+ } from "./chunk-YPF6OS37.js";
7
7
  import {
8
8
  require_cross_spawn
9
9
  } from "./chunk-D72URWJE.js";
10
10
  import {
11
11
  loadConfigFile,
12
12
  saveConfigFile
13
- } from "./chunk-3EAAEF5U.js";
13
+ } from "./chunk-QCNK3YUZ.js";
14
14
  import {
15
15
  number,
16
16
  object,
17
17
  optional,
18
18
  string
19
- } from "./chunk-IVDUR5Y4.js";
19
+ } from "./chunk-G6RG2AZV.js";
20
20
  import {
21
21
  __name,
22
22
  __toESM
23
23
  } from "./chunk-ZVVMGPBJ.js";
24
24
 
25
- // node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/update/index.js
25
+ // 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/update/index.js
26
26
  var import_cross_spawn = __toESM(require_cross_spawn(), 1);
27
27
  import { existsSync } from "node:fs";
28
28
  var updateCommand = /* @__PURE__ */ __name((installer, packageName) => {
@@ -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-DIP3ENSY.js";
5
+ } from "./chunk-KMZRXGTF.js";
6
6
  import {
7
7
  CliError
8
- } from "./chunk-CCHHEMPM.js";
8
+ } from "./chunk-EB2IULWB.js";
9
9
  import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/store/sqlite-warning.js
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
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.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/store/open.js
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
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-2DKMM2PT.js");
47
+ const { openWithBunSqlite } = await import("./bun-sqlite-Y4FP6SDX.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-757HNQAD.js");
52
+ const { openWithNodeSqlite } = await import("./node-sqlite-PXHZAG7Y.js");
53
53
  return openWithNodeSqlite(path);
54
54
  }, "openUnderNode");
55
55
  var runtime = /* @__PURE__ */ __name(() => {
@@ -5,15 +5,15 @@ import {
5
5
  } from "./chunk-Y5E2WNWB.js";
6
6
  import {
7
7
  CliError
8
- } from "./chunk-CCHHEMPM.js";
8
+ } from "./chunk-EB2IULWB.js";
9
9
  import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/speech/recognize.js
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/speech/recognize.js
14
14
  import { createRequire } from "node:module";
15
15
 
16
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/speech/ogg-limit.js
16
+ // 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/speech/ogg-limit.js
17
17
  var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "local transcription needs a complete mono or stereo Ogg Opus recording"), "invalid");
18
18
  var checkOggDuration = /* @__PURE__ */ __name((bytes) => {
19
19
  const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
@@ -70,7 +70,7 @@ var checkOggDuration = /* @__PURE__ */ __name((bytes) => {
70
70
  throw invalid();
71
71
  }, "checkOggDuration");
72
72
 
73
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/speech/recognize.js
73
+ // 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/speech/recognize.js
74
74
  var SAMPLE_RATE = 16e3;
75
75
  var LEAD = SAMPLE_RATE / 2;
76
76
  var toModelRate = /* @__PURE__ */ __name((samples, rate) => {
@@ -8,12 +8,12 @@ import {
8
8
  ACCESS_SECONDS,
9
9
  REFRESH_SECONDS,
10
10
  readStored
11
- } from "./chunk-5C74F7XX.js";
11
+ } from "./chunk-PWTEWT4M.js";
12
12
  import {
13
13
  __name
14
14
  } from "./chunk-ZVVMGPBJ.js";
15
15
 
16
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/mcp/http/oauth.js
16
+ // 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/http/oauth.js
17
17
  import { createHash, randomBytes, randomInt, timingSafeEqual } from "node:crypto";
18
18
  import { chmodSync, mkdirSync, renameSync, rmSync, writeFileSync } from "node:fs";
19
19
  import { dirname } from "node:path";
@@ -4,12 +4,12 @@ import {
4
4
  errorCodes,
5
5
  isCliError,
6
6
  visibleControls
7
- } from "./chunk-CCHHEMPM.js";
7
+ } from "./chunk-EB2IULWB.js";
8
8
  import {
9
9
  __name
10
10
  } from "./chunk-ZVVMGPBJ.js";
11
11
 
12
- // node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/exit-codes.js
12
+ // 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/exit-codes.js
13
13
  var EXIT_CODES = {
14
14
  validation_error: 2,
15
15
  configuration_error: 3,
@@ -24,6 +24,7 @@ var EXIT_CODES = {
24
24
  provider_unavailable: 12,
25
25
  invalid_response: 13,
26
26
  outcome_unknown: 14,
27
+ conflict: 15,
27
28
  cancelled: 130
28
29
  };
29
30
  var exitCodeFor = /* @__PURE__ */ __name((code) => EXIT_CODES[code], "exitCodeFor");
@@ -1245,7 +1246,7 @@ function unwrap(schema) {
1245
1246
  }
1246
1247
  __name(unwrap, "unwrap");
1247
1248
 
1248
- // node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/effects.js
1249
+ // 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/effects.js
1249
1250
  var EFFECT_LEVELS = ["none", "read", "write"];
1250
1251
  var effectsSchema = strictObject({
1251
1252
  remote: picklist(EFFECT_LEVELS),
@@ -1882,7 +1883,7 @@ function toStandardJsonSchema(schema) {
1882
1883
  }
1883
1884
  __name(toStandardJsonSchema, "toStandardJsonSchema");
1884
1885
 
1885
- // node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/registry.js
1886
+ // 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/registry.js
1886
1887
  var word = pipe(string(), regex(/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/, "a lower-case word, words joined by -"));
1887
1888
  var SNAKE_CASE = /^[a-z][a-z0-9]*(_[a-z0-9]+)*$/;
1888
1889
  var text = pipe(string(), regex(/\S/, "must not be empty"));
@@ -1924,7 +1925,7 @@ var fill = /* @__PURE__ */ __name((template, values) => template.replace(PLACEHO
1924
1925
  return String(value);
1925
1926
  }), "fill");
1926
1927
 
1927
- // node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/output.js
1928
+ // 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/output.js
1928
1929
  var MAX_NEXT_STEPS = 2;
1929
1930
  var COMPACT_FLAG = "--compact";
1930
1931
  var isoTime = pipe(string(), isoTimestamp("an ISO 8601 time in UTC"), endsWith("Z", "an ISO 8601 time in UTC, ending in `Z`"));
@@ -2036,7 +2037,7 @@ var jsonlOf = /* @__PURE__ */ __name(({ items, page, meta }) => [
2036
2037
  JSON.stringify({ type: "end", complete: meta.complete, ...meta.issues ? { issues: meta.issues } : {}, page })
2037
2038
  ].join("\n"), "jsonlOf");
2038
2039
 
2039
- // node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/errors.js
2040
+ // 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/errors.js
2040
2041
  var CRASH_CODE = "internal_error";
2041
2042
  var CRASH_REASON = "command.crashed";
2042
2043
  var errorObjectSchema = strictObject({
@@ -2119,11 +2120,17 @@ var BASE_REASONS = defineReasons([
2119
2120
  details: []
2120
2121
  },
2121
2122
  { reason: "outcome.unknown", code: "outcome_unknown", message: "it is not known whether it worked", details: [] },
2123
+ {
2124
+ reason: "write.conflict",
2125
+ code: "conflict",
2126
+ message: "it changed since it was read; read it again",
2127
+ details: []
2128
+ },
2122
2129
  { reason: "command.cancelled", code: "cancelled", message: "the command was cancelled", details: [] },
2123
2130
  { reason: CRASH_REASON, code: CRASH_CODE, message: "the command failed; this is a bug", details: [] }
2124
2131
  ]);
2125
2132
 
2126
- // node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/steps.js
2133
+ // 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/steps.js
2127
2134
  var SAME_COMMAND = "*";
2128
2135
  var commandPath = pipe(string(), regex(/^[a-z][a-z0-9-]*( [a-z][a-z0-9-]*)*$/, "a command path such as `messages sync`"));
2129
2136
  var stepSchema = union([
@@ -2202,7 +2209,7 @@ var STEPS = defineSteps([
2202
2209
  }
2203
2210
  ]);
2204
2211
 
2205
- // node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/failure.js
2212
+ // 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/failure.js
2206
2213
  var recognise = /* @__PURE__ */ __name((failure) => {
2207
2214
  if (isCliError(failure))
2208
2215
  return failure;
@@ -2,17 +2,17 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  LEVELS
5
- } from "./chunk-7LDC275M.js";
5
+ } from "./chunk-DDQXDX4U.js";
6
6
  import {
7
7
  looksLikeReference,
8
8
  parseReference,
9
9
  providerLabel,
10
10
  providerNamed
11
- } from "./chunk-MXG4L7NH.js";
11
+ } from "./chunk-EBEYU7RW.js";
12
12
  import {
13
13
  resolvePaths,
14
14
  writeSecurely
15
- } from "./chunk-3EAAEF5U.js";
15
+ } from "./chunk-QCNK3YUZ.js";
16
16
  import {
17
17
  array,
18
18
  getDotPath,
@@ -31,17 +31,17 @@ import {
31
31
  string,
32
32
  transform,
33
33
  unknown
34
- } from "./chunk-IVDUR5Y4.js";
34
+ } from "./chunk-G6RG2AZV.js";
35
35
  import {
36
36
  CliError,
37
37
  singleLine,
38
38
  visibleControls
39
- } from "./chunk-CCHHEMPM.js";
39
+ } from "./chunk-EB2IULWB.js";
40
40
  import {
41
41
  __name
42
42
  } from "./chunk-ZVVMGPBJ.js";
43
43
 
44
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/domain/ref-arguments.js
44
+ // 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/domain/ref-arguments.js
45
45
  var TAKES = {
46
46
  chat: "a chat: chat:<provider>/<account>/<chat>, its id or its title",
47
47
  message: "a message: msg:<provider>/<account>/<chat>/<message>, or a chat and the message's id"
@@ -101,7 +101,7 @@ var ensureAccount = /* @__PURE__ */ __name(async (reference, scope, profilesOn)
101
101
  throw wrongAccount(reference, scope, profiles);
102
102
  }, "ensureAccount");
103
103
 
104
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/resolve.js
104
+ // 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/resolve.js
105
105
  var isId = /* @__PURE__ */ __name((reference) => /^-?\d+$/.test(reference.trim()), "isId");
106
106
  var foldName = /* @__PURE__ */ __name((name) => name.normalize("NFC").replace(/[\uFE0E\uFE0F\u200D]/g, "").toLowerCase(), "foldName");
107
107
  var pickChat = /* @__PURE__ */ __name((reference, chats) => {
@@ -146,7 +146,7 @@ ${lines}`, { candidates });
146
146
  }, "ambiguous");
147
147
  var isPresent = /* @__PURE__ */ __name((value) => value !== null && value !== void 0, "isPresent");
148
148
 
149
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/domain/formatting.js
149
+ // 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/domain/formatting.js
150
150
  var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "the messenger formatter returned invalid text spans"), "invalid");
151
151
  var validateFormattedText = /* @__PURE__ */ __name((formatted) => {
152
152
  const { text, spans } = formatted;
@@ -206,7 +206,7 @@ var visibleFormattedText = /* @__PURE__ */ __name((formatted) => {
206
206
  };
207
207
  }, "visibleFormattedText");
208
208
 
209
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/moderation/check.js
209
+ // 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/moderation/check.js
210
210
  var INVITE = /max\.ru\/join\/|(t|telegram)\.me\/(\+|joinchat\/)|tg:\/\/join/i;
211
211
  var LINK = /https?:\/\/\S+/i;
212
212
  var STRENGTH = { report: 0, delete: 1, remove: 2 };
@@ -394,7 +394,7 @@ var nextPoint = /* @__PURE__ */ __name((rows, found) => {
394
394
  }, "nextPoint");
395
395
  var someUndone = /* @__PURE__ */ __name((rows) => rows.some(undone), "someUndone");
396
396
 
397
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/moderation/rules.js
397
+ // 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/moderation/rules.js
398
398
  import { existsSync, readFileSync } from "node:fs";
399
399
  import { join } from "node:path";
400
400
  var RULE_ACTIONS = ["report", "delete", "remove"];
@@ -18,9 +18,9 @@ import {
18
18
  strictObject,
19
19
  string,
20
20
  unknown
21
- } from "./chunk-IVDUR5Y4.js";
21
+ } from "./chunk-G6RG2AZV.js";
22
22
 
23
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/fields.js
23
+ // 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/entities/fields.js
24
24
  var text = string();
25
25
  var id = pipe(string(), minLength(1));
26
26
  var time = isoTime;
@@ -44,7 +44,7 @@ var author = strictObject({
44
44
  name: nullable(text)
45
45
  });
46
46
 
47
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/knowledge-lists.js
47
+ // 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/entities/knowledge-lists.js
48
48
  var organization = strictObject({
49
49
  id,
50
50
  ref: reference,
@@ -74,7 +74,7 @@ var reminder = strictObject({
74
74
  receipt: nullable(text)
75
75
  });
76
76
 
77
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/note.js
77
+ // 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/entities/note.js
78
78
  var link = {
79
79
  target_text: nullable(text),
80
80
  kind: text,
@@ -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-CCHHEMPM.js";
5
+ } from "./chunk-EB2IULWB.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/files/ordinary-file.js
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
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.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/files/atomic-write.js
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
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.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/files/bounded-utf8.js
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
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.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/files/lock.js
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
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.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
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
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.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
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
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.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/files/native-lease-owner.js
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
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.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
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
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.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/files/native-lease-release.js
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
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.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
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
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.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/files/lock.js
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
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.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/files/safe-name.js
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
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,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  unit
5
- } from "./chunk-OGK7LMYT.js";
5
+ } from "./chunk-R6SBRHVG.js";
6
6
  import {
7
7
  CliError
8
- } from "./chunk-CCHHEMPM.js";
8
+ } from "./chunk-EB2IULWB.js";
9
9
  import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/embeddings/remote.js
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/embeddings/remote.js
14
14
  import { setTimeout } from "node:timers/promises";
15
15
  var OPENAI_URL = "https://api.openai.com/v1";
16
16
  var OPENAI_MODELS = {