@wirecat/zoom-cli 0.82.0 → 0.83.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 (222) hide show
  1. package/README.md +2 -2
  2. package/contracts/wirecat.json +54 -54
  3. package/dist/api.d.ts.map +1 -1
  4. package/dist/api.js +1 -1
  5. package/dist/api.js.map +1 -1
  6. package/dist/bin/main.js +2 -15
  7. package/dist/bin/main.js.map +1 -1
  8. package/dist/bin/zm.js +2 -2
  9. package/dist/bundle/agent-3HDWEZ5M.js +47 -0
  10. package/dist/bundle/{all-profiles-RULEKTDQ.js → all-profiles-RY2OMSDL.js} +8 -8
  11. package/dist/bundle/answer-policy-IFVXPPGW.js +131 -0
  12. package/dist/bundle/{anthropic-4NAQBZFL.js → anthropic-36VPSF7B.js} +3 -3
  13. package/dist/bundle/{app-server-VLR42U5L.js → app-server-ZVJVUGB7.js} +72 -71
  14. package/dist/bundle/{bun-OPDGMZZQ.js → bun-F4M4KCNA.js} +2 -2
  15. package/dist/bundle/{bun-sqlite-HC6X4AOX.js → bun-sqlite-IOPYIUA7.js} +4 -4
  16. package/dist/bundle/{chunk-MAJJ4PG3.js → chunk-26TW5RZ6.js} +31 -315
  17. package/dist/bundle/{chunk-XQQVMECZ.js → chunk-2DK5BBFF.js} +1 -1
  18. package/dist/bundle/{chunk-BP4FYANF.js → chunk-2IBKKVVZ.js} +4 -4
  19. package/dist/bundle/{chunk-52Y4ETKU.js → chunk-2S54TM4N.js} +3 -3
  20. package/dist/bundle/{chunk-DCYFT3FR.js → chunk-3AQHKXVR.js} +4 -4
  21. package/dist/bundle/{chunk-VS6WURLX.js → chunk-3CW2C7ZA.js} +2 -2
  22. package/dist/bundle/{chunk-6QYZP4E2.js → chunk-3KUEZK5Z.js} +2 -2
  23. package/dist/bundle/{chunk-YJXJJ2XP.js → chunk-3PXUQFHX.js} +7 -7
  24. package/dist/bundle/{chunk-PSKTMMCO.js → chunk-575JMTDR.js} +17 -16
  25. package/dist/bundle/{chunk-QPHBK63S.js → chunk-5B2LV4MS.js} +2 -1
  26. package/dist/bundle/{chunk-OGNO35A2.js → chunk-5WL5RHOO.js} +5 -100
  27. package/dist/bundle/{chunk-ASBDFXLS.js → chunk-6C7ESL5N.js} +2 -2
  28. package/dist/bundle/{chunk-676C2LE6.js → chunk-6E4KLYNP.js} +10 -10
  29. package/dist/bundle/chunk-7JDXR75Q.js +465 -0
  30. package/dist/bundle/{chunk-UR5DBODY.js → chunk-AK3H2C65.js} +30 -26
  31. package/dist/bundle/{chunk-VB7FZOYX.js → chunk-AQ5RIOUE.js} +1 -1
  32. package/dist/bundle/{chunk-UKAAAOPC.js → chunk-AQLUAQXJ.js} +23 -15
  33. package/dist/bundle/{chunk-V5EJSF2B.js → chunk-ASTLGFTR.js} +205 -170
  34. package/dist/bundle/{chunk-PWVJUIDQ.js → chunk-ATHBB7OU.js} +2 -2
  35. package/dist/bundle/{chunk-GTKPMYK7.js → chunk-B2NM65RD.js} +13 -5
  36. package/dist/bundle/{chunk-G6PETRMV.js → chunk-B4KHDXJE.js} +2 -2
  37. package/dist/bundle/{chunk-4HLQ2JGK.js → chunk-BAFC7WNI.js} +3 -3
  38. package/dist/bundle/{chunk-KVJ3I7UL.js → chunk-BTLZYRIW.js} +5 -5
  39. package/dist/bundle/{chunk-KKFY23AK.js → chunk-BZDS2X6Y.js} +61 -61
  40. package/dist/bundle/{chunk-VZ5PPYDG.js → chunk-C7JPYWYQ.js} +1 -1
  41. package/dist/bundle/{chunk-W5QHB53X.js → chunk-CDQUW25G.js} +10 -10
  42. package/dist/bundle/{chunk-AIKFOBDO.js → chunk-CJWGJBHW.js} +28 -8
  43. package/dist/bundle/{chunk-HP7A2ZOP.js → chunk-D7RCUODT.js} +7 -7
  44. package/dist/bundle/{chunk-LEKKTJKK.js → chunk-DQJECJUE.js} +23 -102
  45. package/dist/bundle/{chunk-B32KZRQM.js → chunk-E4JQ3MCW.js} +11 -11
  46. package/dist/bundle/{chunk-HZENBDW2.js → chunk-E4ODYLEK.js} +6 -6
  47. package/dist/bundle/{chunk-RQOZBTNI.js → chunk-EE45N67Q.js} +3 -3
  48. package/dist/bundle/{chunk-VB72LTSZ.js → chunk-EEEU4MKK.js} +11 -11
  49. package/dist/bundle/{chunk-EGTCQKHV.js → chunk-ETIZGA4P.js} +5 -5
  50. package/dist/bundle/{chunk-BDKVOU3I.js → chunk-F44QK6CK.js} +3 -3
  51. package/dist/bundle/{chunk-274SLQNW.js → chunk-FH2UFNH6.js} +2 -2
  52. package/dist/bundle/{chunk-3HC5F3P7.js → chunk-FTH6WGYO.js} +1 -1
  53. package/dist/bundle/chunk-FWACRG4X.js +160 -0
  54. package/dist/bundle/chunk-G5SZL7G2.js +150 -0
  55. package/dist/bundle/{chunk-EQG3PIH2.js → chunk-G6CHEFAG.js} +2 -2
  56. package/dist/bundle/{chunk-66ALX4ZI.js → chunk-GHJD7PE6.js} +18 -18
  57. package/dist/bundle/{chunk-Q7ICVP25.js → chunk-GZ7WBU5Y.js} +1 -1
  58. package/dist/bundle/{chunk-UL2PXLKT.js → chunk-H6A4NWYJ.js} +320 -43
  59. package/dist/bundle/{chunk-WMANRJR5.js → chunk-HKLRI2LB.js} +6 -6
  60. package/dist/bundle/{chunk-L75SMSJR.js → chunk-HMD4FZYY.js} +3 -3
  61. package/dist/bundle/{chunk-2JHVQMVC.js → chunk-HO4JGD4Q.js} +1 -1
  62. package/dist/bundle/{chunk-WOPVBRPV.js → chunk-HUAHLO6N.js} +1 -1
  63. package/dist/bundle/{chunk-6VK332XS.js → chunk-IQZXFWFI.js} +2 -2
  64. package/dist/bundle/{chunk-NB7EOAUZ.js → chunk-ISQ23VKV.js} +1 -1
  65. package/dist/bundle/{chunk-QVYAV7F2.js → chunk-JEH33ZCD.js} +3 -3
  66. package/dist/bundle/{chunk-ICPJT672.js → chunk-JUNQYWQ2.js} +6 -6
  67. package/dist/bundle/{chunk-K5JGJIV2.js → chunk-JUXMVQWJ.js} +311 -152
  68. package/dist/bundle/{chunk-OBXQLFT5.js → chunk-KHQDWYCG.js} +1 -1
  69. package/dist/bundle/{chunk-GGMAIIVE.js → chunk-KYRYD4CR.js} +1 -1
  70. package/dist/bundle/chunk-LBGT6W4R.js +377 -0
  71. package/dist/bundle/{chunk-JQ54DYAQ.js → chunk-LN7HRYTH.js} +1 -1
  72. package/dist/bundle/{chunk-G46WJ7YO.js → chunk-MEB7HBTM.js} +5 -5
  73. package/dist/bundle/{chunk-M7H4MCAX.js → chunk-MEEFWYX3.js} +3 -3
  74. package/dist/bundle/{chunk-73MOMNLL.js → chunk-MNOAMJ6H.js} +1 -1
  75. package/dist/bundle/{chunk-A6EZK5RG.js → chunk-MYHPXJDG.js} +1 -1
  76. package/dist/bundle/{chunk-HC6VN5CO.js → chunk-NGI37RFW.js} +7 -7
  77. package/dist/bundle/{chunk-2GP573Q4.js → chunk-NZMWD7Y3.js} +3656 -2697
  78. package/dist/bundle/chunk-O6IECJRM.js +54 -0
  79. package/dist/bundle/{chunk-Y6PVS55U.js → chunk-OBWL3BUV.js} +35 -35
  80. package/dist/bundle/{chunk-2XBDILVW.js → chunk-OEEWVKJX.js} +1 -1
  81. package/dist/bundle/chunk-OGTN2KVG.js +147 -0
  82. package/dist/bundle/{chunk-GWGHH56B.js → chunk-OQYZ3W4K.js} +10 -10
  83. package/dist/bundle/{chunk-2CI2OEZQ.js → chunk-P3ZCTYGW.js} +2 -2
  84. package/dist/bundle/{chunk-OIPYBF43.js → chunk-PVEBAHFU.js} +2 -2
  85. package/dist/bundle/{chunk-2SWKQ7C4.js → chunk-R6IA5UQB.js} +1 -1
  86. package/dist/bundle/{chunk-T7IAWEBU.js → chunk-RLOH7RDN.js} +7 -7
  87. package/dist/bundle/{chunk-KJ6USQDZ.js → chunk-RQ4AXSCJ.js} +5 -5
  88. package/dist/bundle/{chunk-XQ2WL3HB.js → chunk-RYGTCRFZ.js} +2 -2
  89. package/dist/bundle/{chunk-N46F72AF.js → chunk-S4PXWIE4.js} +84 -86
  90. package/dist/bundle/{chunk-MQLPZBMQ.js → chunk-SDZZYZLL.js} +1 -1
  91. package/dist/bundle/{chunk-E745WZKY.js → chunk-SHQAYUK6.js} +6 -6
  92. package/dist/bundle/{chunk-3YM4B2GT.js → chunk-T3W4V4A6.js} +1 -1
  93. package/dist/bundle/{chunk-4N7PP76S.js → chunk-TCT5D2X2.js} +1 -1
  94. package/dist/bundle/{chunk-7QPIUMUG.js → chunk-TDWPOSPR.js} +10 -10
  95. package/dist/bundle/{chunk-ZED2CJW5.js → chunk-TER3N27H.js} +6 -6
  96. package/dist/bundle/{chunk-UQCTXZEP.js → chunk-TMTNP7QN.js} +9 -9
  97. package/dist/bundle/{chunk-KWU46LNK.js → chunk-TO5UEWXR.js} +2 -2
  98. package/dist/bundle/{chunk-OQFQ77AY.js → chunk-UBH7YF3C.js} +61 -59
  99. package/dist/bundle/{chunk-QVSL5WJ7.js → chunk-UEAE3JUU.js} +488 -436
  100. package/dist/bundle/{chunk-5KYQ53EF.js → chunk-UHR363OD.js} +7 -7
  101. package/dist/bundle/{chunk-7UVDPRFK.js → chunk-UM52A76S.js} +5 -5
  102. package/dist/bundle/{chunk-ZOYOXWJB.js → chunk-URP6BTHN.js} +34 -156
  103. package/dist/bundle/{chunk-N3JLO63O.js → chunk-UWQEAA6S.js} +1 -1
  104. package/dist/bundle/{chunk-OO4TRVPB.js → chunk-VR7QZGRU.js} +5 -5
  105. package/dist/bundle/{chunk-GBHMT2IU.js → chunk-VRH5PBSL.js} +13 -13
  106. package/dist/bundle/chunk-VTLQTQKY.js +1756 -0
  107. package/dist/bundle/{chunk-ACI4YIEH.js → chunk-VTYNLTDW.js} +1 -1
  108. package/dist/bundle/{chunk-NEMX3UNN.js → chunk-WY7XG6TE.js} +2 -2
  109. package/dist/bundle/{chunk-AC6VJNMJ.js → chunk-XEOZTA3H.js} +1 -1
  110. package/dist/bundle/{chunk-QG6PILDO.js → chunk-XH23ML2V.js} +1 -1
  111. package/dist/bundle/{chunk-5HAUK3I4.js → chunk-XYF76A26.js} +1179 -783
  112. package/dist/bundle/{chunk-KQPUVXKX.js → chunk-ZDYJAEVB.js} +2 -2
  113. package/dist/bundle/{chunk-TKNM22OH.js → chunk-ZJ63HDBT.js} +1 -1
  114. package/dist/bundle/{chunk-5TU7Y5UW.js → chunk-ZT4ZPUIO.js} +11 -11
  115. package/dist/bundle/{cli-U4O5XB7J.js → cli-JK6PQSSN.js} +94 -79
  116. package/dist/bundle/command-contract-F3QNBKPX.js +46 -0
  117. package/dist/bundle/{command-server-entry-KKH6ZWJV.js → command-server-entry-DJLGN62J.js} +31 -30
  118. package/dist/bundle/config-TYYMV3HV.js +118 -0
  119. package/dist/bundle/{decode-TPCNXEK4.js → decode-ZZICNNFF.js} +3 -3
  120. package/dist/bundle/{dist-7CLBCYZN.js → dist-NQPF25XI.js} +47 -46
  121. package/dist/bundle/{echarts-O3TNDAXJ.js → echarts-QMAA7HH5.js} +2 -2
  122. package/dist/bundle/{embed-WCJSFVSK.js → embed-T64EUKUI.js} +4 -4
  123. package/dist/bundle/{embedder-TBBUPXBX.js → embedder-ZEKISZXI.js} +7 -7
  124. package/dist/bundle/{first-run-ELEMFW42.js → first-run-ZFNY4RRH.js} +8 -8
  125. package/dist/bundle/first-screen-LPGCHRHZ.js +47 -0
  126. package/dist/bundle/{folders-LXOL4N4S.js → folders-ROKVKSCT.js} +2 -2
  127. package/dist/bundle/{instructions-AMH5RWVJ.js → instructions-4H7UREH2.js} +1 -1
  128. package/dist/bundle/{main-YAA7WQ23.js → main-GCK3VYAA.js} +24 -34
  129. package/dist/bundle/meeting-combined-7HDPOUPB.js +28 -0
  130. package/dist/bundle/{meeting-model-3BZJ3EQP.js → meeting-model-MVUW7UPQ.js} +10 -10
  131. package/dist/bundle/{meeting-semantic-3HU7I2SJ.js → meeting-semantic-IF633WGX.js} +3 -3
  132. package/dist/bundle/{meetings-XWMB6FOH.js → meetings-RY2AAPHV.js} +2 -2
  133. package/dist/bundle/{node-EGMCBAO7.js → node-P3PUHKYH.js} +2 -2
  134. package/dist/bundle/{node-sqlite-IJBWENFX.js → node-sqlite-ASAZJNHE.js} +5 -5
  135. package/dist/bundle/{oauth-SZDDAP7A.js → oauth-4U3OCK3W.js} +5 -5
  136. package/dist/bundle/oauth-AJARLPSY.js +46 -0
  137. package/dist/bundle/{open-NS3TMKZX.js → open-SEJRY2ZI.js} +3 -3
  138. package/dist/bundle/{openai-4DN6WI3B.js → openai-FZDSC2AA.js} +12 -12
  139. package/dist/bundle/{output-file-2UB5JP3R.js → output-file-RYIOIXMD.js} +1 -1
  140. package/dist/bundle/{process-SGHEN6MQ.js → process-AFIXYXWL.js} +1 -1
  141. package/dist/bundle/{program-GVCGZP27.js → program-OYLVYA4Z.js} +174 -236
  142. package/dist/bundle/{prompt-HJFMPFVC.js → prompt-BCRD64F4.js} +3 -3
  143. package/dist/bundle/{public-C2ZB2AGQ.js → public-SVJILCNI.js} +43 -35
  144. package/dist/bundle/{recognize-2SEI5PPM.js → recognize-25ITJWGX.js} +2 -2
  145. package/dist/bundle/{remote-2DMS74XE.js → remote-5FBAJX7O.js} +8 -8
  146. package/dist/bundle/{rerank-H6GCYVIA.js → rerank-2HGWWORY.js} +5 -5
  147. package/dist/bundle/run-log-7HRF4Y47.js +145 -0
  148. package/dist/bundle/{serve-ODVRPFJO.js → serve-RL35MSJD.js} +7 -7
  149. package/dist/bundle/{server-PCLIO24L.js → server-QUSBWACP.js} +64 -63
  150. package/dist/bundle/server-SCK2SRDK.js +96 -0
  151. package/dist/bundle/{services-4QAPXBLO.js → services-BGRIQNDC.js} +55 -53
  152. package/dist/bundle/{speech-MA6ZT3WE.js → speech-4W3ZMTFK.js} +21 -21
  153. package/dist/bundle/{sqlite-runtime-PVMAUXRN.js → sqlite-runtime-K3KLRZCV.js} +4 -4
  154. package/dist/bundle/{state-QFMTYUME.js → state-GYL4C74G.js} +4 -4
  155. package/dist/bundle/{store-25OTAQC3.js → store-27UQMNEO.js} +23 -21
  156. package/dist/bundle/{store-F724QIKJ.js → store-NLYH5SQX.js} +54 -43
  157. package/dist/bundle/store-connection-CZILWRSR.js +112 -0
  158. package/dist/bundle/store-maintenance-command-Z3QLNSXJ.js +84 -0
  159. package/dist/bundle/{streaming-S22C4DG5.js → streaming-73EKEGPF.js} +2 -2
  160. package/dist/bundle/surface-CV3C4RV2.js +82 -0
  161. package/dist/bundle/tokens-PY3S22LY.js +27 -0
  162. package/dist/bundle/zm.js +2 -2
  163. package/dist/bundle/{zoom-app-YWFB367P.js → zoom-app-4F4YY4OI.js} +8 -6
  164. package/dist/commands.d.ts +1 -8
  165. package/dist/commands.d.ts.map +1 -1
  166. package/dist/commands.js +3 -33
  167. package/dist/commands.js.map +1 -1
  168. package/dist/index.d.ts +1 -2
  169. package/dist/index.d.ts.map +1 -1
  170. package/dist/index.js +1 -2
  171. package/dist/index.js.map +1 -1
  172. package/dist/program-bindings.d.ts.map +1 -1
  173. package/dist/program-bindings.js +2 -12
  174. package/dist/program-bindings.js.map +1 -1
  175. package/dist/program.d.ts +3 -5
  176. package/dist/program.d.ts.map +1 -1
  177. package/dist/run.d.ts.map +1 -1
  178. package/dist/run.js +6 -1
  179. package/dist/run.js.map +1 -1
  180. package/dist/setup-commands.d.ts +5 -14
  181. package/dist/setup-commands.d.ts.map +1 -1
  182. package/dist/setup-commands.js +7 -142
  183. package/dist/setup-commands.js.map +1 -1
  184. package/dist/tokens.d.ts +20 -44
  185. package/dist/tokens.d.ts.map +1 -1
  186. package/dist/tokens.js +95 -308
  187. package/dist/tokens.js.map +1 -1
  188. package/dist/version.d.ts +1 -1
  189. package/dist/version.js +1 -1
  190. package/dist/zoom-app.js +1 -1
  191. package/dist/zoom-app.js.map +1 -1
  192. package/dist/zoom-session.d.ts +6 -0
  193. package/dist/zoom-session.d.ts.map +1 -0
  194. package/dist/zoom-session.js +72 -0
  195. package/dist/zoom-session.js.map +1 -0
  196. package/package.json +2 -2
  197. package/skills/zoom-cli/references/setup.md +2 -2
  198. package/dist/bundle/agent-F4TRJWWS.js +0 -46
  199. package/dist/bundle/answer-policy-6XC57AEZ.js +0 -131
  200. package/dist/bundle/chunk-2DBF2IIC.js +0 -330
  201. package/dist/bundle/chunk-DSZYABYL.js +0 -808
  202. package/dist/bundle/chunk-KXJ3JEDH.js +0 -2
  203. package/dist/bundle/chunk-LAYYO4WD.js +0 -31
  204. package/dist/bundle/chunk-PMUPN6JW.js +0 -773
  205. package/dist/bundle/chunk-TKVBFJ5C.js +0 -37
  206. package/dist/bundle/chunk-YY7XKHDY.js +0 -79
  207. package/dist/bundle/command-contract-FBTK6GQX.js +0 -45
  208. package/dist/bundle/config-FRJSIZNN.js +0 -118
  209. package/dist/bundle/first-screen-DIOBWMKP.js +0 -46
  210. package/dist/bundle/meeting-combined-UXCF4SJ3.js +0 -26
  211. package/dist/bundle/run-log-QU26SUZP.js +0 -145
  212. package/dist/bundle/server-NBPF6IDZ.js +0 -95
  213. package/dist/bundle/store-connection-OGPXANGB.js +0 -111
  214. package/dist/bundle/store-maintenance-command-2CM7LLNQ.js +0 -83
  215. package/dist/bundle/surface-7PXHWCF6.js +0 -81
  216. package/dist/bundle/tokens-NLUHA2DW.js +0 -25
  217. package/dist/login.d.ts +0 -16
  218. package/dist/login.d.ts.map +0 -1
  219. package/dist/login.js +0 -98
  220. package/dist/login.js.map +0 -1
  221. package/dist/bundle/{chunk-6CWL5BKG.js → chunk-3QN5KDFZ.js} +147 -147
  222. /package/dist/bundle/{chunk-7O7XM37N.js → chunk-7ECP5ZQR.js} +0 -0
@@ -0,0 +1,377 @@
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ CliError
5
+ } from "./chunk-IANKXHSE.js";
6
+ import {
7
+ __name
8
+ } from "./chunk-ZVVMGPBJ.js";
9
+
10
+ // node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/domain/money.js
11
+ var CURRENCY_SCALES = {
12
+ AED: 2,
13
+ AMD: 2,
14
+ AUD: 2,
15
+ BHD: 3,
16
+ BYN: 2,
17
+ CAD: 2,
18
+ CHF: 2,
19
+ CLP: 0,
20
+ CNY: 2,
21
+ CZK: 2,
22
+ DKK: 2,
23
+ EUR: 2,
24
+ GBP: 2,
25
+ GEL: 2,
26
+ HUF: 2,
27
+ ILS: 2,
28
+ INR: 2,
29
+ ISK: 0,
30
+ JPY: 0,
31
+ KGS: 2,
32
+ KRW: 0,
33
+ KWD: 3,
34
+ KZT: 2,
35
+ NOK: 2,
36
+ PLN: 2,
37
+ RSD: 2,
38
+ RUB: 2,
39
+ SEK: 2,
40
+ THB: 2,
41
+ TRY: 2,
42
+ UAH: 2,
43
+ USD: 2,
44
+ UZS: 2,
45
+ VND: 0
46
+ };
47
+ var refuse = /* @__PURE__ */ __name((message, reason) => {
48
+ throw new CliError("validation_error", message, { reason });
49
+ }, "refuse");
50
+ var DECIMAL = /^(\d{1,15})(?:\.(\d+))?$/;
51
+ var parseDecimal = /* @__PURE__ */ __name((text, scale) => {
52
+ const match = DECIMAL.exec(text.trim());
53
+ if (!match || (match[2] ?? "").length > scale)
54
+ return void 0;
55
+ return BigInt(`${match[1]}${(match[2] ?? "").padEnd(scale, "0")}`);
56
+ }, "parseDecimal");
57
+ var formatDecimal = /* @__PURE__ */ __name((units, scale) => {
58
+ const value = BigInt(units);
59
+ if (value < 0n)
60
+ return `-${formatDecimal(-value, scale)}`;
61
+ const digits = value.toString().padStart(scale + 1, "0");
62
+ return scale === 0 ? digits : `${digits.slice(0, -scale)}.${digits.slice(-scale)}`;
63
+ }, "formatDecimal");
64
+ var groupDigits = /* @__PURE__ */ __name((decimal) => {
65
+ const [whole = "0", fraction] = decimal.split(".");
66
+ const grouped = whole.replace(/\B(?=(\d{3})+(?!\d))/g, " ");
67
+ return fraction === void 0 ? grouped : `${grouped}.${fraction}`;
68
+ }, "groupDigits");
69
+ var currencyOf = /* @__PURE__ */ __name((text) => {
70
+ const code = typeof text === "string" ? text.trim().toUpperCase() : "";
71
+ if (CURRENCY_SCALES[code] === void 0)
72
+ return refuse(`${typeof text === "string" && text.trim() ? text.trim() : "an empty currency"} is not a currency the store keeps; use one of ${Object.keys(CURRENCY_SCALES).join(", ")}`, "money.currency");
73
+ return code;
74
+ }, "currencyOf");
75
+ var scaleOf = /* @__PURE__ */ __name((currency) => CURRENCY_SCALES[currencyOf(currency)], "scaleOf");
76
+ var minorUnits = /* @__PURE__ */ __name((amount, currency, what = "an amount") => {
77
+ const scale = scaleOf(currency);
78
+ const units = typeof amount === "string" ? parseDecimal(amount, scale) : void 0;
79
+ if (units === void 0 || units > BigInt(Number.MAX_SAFE_INTEGER))
80
+ return refuse(`${what} is a decimal string with at most ${scale} decimal${scale === 1 ? "" : "s"} for ${currency}, such as "${formatDecimal(5e3 * 10 ** scale, scale)}"`, "money.amount");
81
+ return Number(units);
82
+ }, "minorUnits");
83
+ var signedMinorUnits = /* @__PURE__ */ __name((amount, currency, what = "an amount") => {
84
+ if (typeof amount !== "string" || !amount.trim().startsWith("-"))
85
+ return minorUnits(amount, currency, what);
86
+ const units = minorUnits(amount.trim().slice(1), currency, what);
87
+ return units === 0 ? 0 : -units;
88
+ }, "signedMinorUnits");
89
+ var moneyOf = /* @__PURE__ */ __name((units, currency) => ({
90
+ amount: formatDecimal(units, scaleOf(currency)),
91
+ currency
92
+ }), "moneyOf");
93
+ var moneyLabel = /* @__PURE__ */ __name((units, currency) => `${groupDigits(formatDecimal(units, scaleOf(currency)))} ${currency}`, "moneyLabel");
94
+ var QUANTITY_SCALE = 3;
95
+ var quantityOf = /* @__PURE__ */ __name((text) => {
96
+ const thousandths = typeof text === "string" ? parseDecimal(text, QUANTITY_SCALE) : void 0;
97
+ if (thousandths === void 0 || thousandths === 0n)
98
+ return refuse('a quantity is a decimal string above 0 with at most 3 decimals, such as "1.5"', "money.quantity");
99
+ const plain = formatDecimal(thousandths, QUANTITY_SCALE).replace(/\.?0+$/, "");
100
+ return { text: plain, thousandths };
101
+ }, "quantityOf");
102
+ var lineUnits = /* @__PURE__ */ __name((thousandths, unitPrice) => Number((thousandths * BigInt(unitPrice) + 500n) / 1000n), "lineUnits");
103
+
104
+ // node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/domain/deals.js
105
+ var DEAL_KINDS = ["deal", "lead"];
106
+ var DEAL_STATUSES = ["open", "won", "lost"];
107
+ var STAGE_OUTCOMES = DEAL_STATUSES;
108
+ var DEAL_ROLES = ["owner", "contact", "decision-maker", "influencer"];
109
+ var dealLine = /* @__PURE__ */ __name((deal) => {
110
+ const money = deal.amount === null || deal.currency === null ? "" : `, ${moneyLabel(deal.amount, deal.currency)}`;
111
+ return `${deal.title} \xB7 ${deal.stage}${money}${deal.status === "open" ? "" : ` (${deal.status})`}`;
112
+ }, "dealLine");
113
+
114
+ // node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/domain/finance.js
115
+ var INVOICE_DIRECTIONS = ["receivable", "payable"];
116
+ var INVOICE_STATUSES = ["draft", "issued", "partly_paid", "paid", "void"];
117
+ var MONEY_DIRECTIONS = ["in", "out"];
118
+ var FINANCE_REVIEWS = ["proposed", "confirmed", "rejected"];
119
+ var settledStatus = /* @__PURE__ */ __name((current, total, paid) => {
120
+ if (current === "draft" || current === "void")
121
+ return current;
122
+ if (paid <= 0)
123
+ return "issued";
124
+ return paid < total ? "partly_paid" : "paid";
125
+ }, "settledStatus");
126
+ var dayMonth = /* @__PURE__ */ __name((date) => date === null ? null : `${date.slice(8, 10)}.${date.slice(5, 7)}`, "dayMonth");
127
+ var notes = /* @__PURE__ */ __name((...words) => {
128
+ const kept = words.filter((word) => word !== null);
129
+ return kept.length === 0 ? "" : ` (${kept.join(", ")})`;
130
+ }, "notes");
131
+ var invoiceLine = /* @__PURE__ */ __name((invoice) => {
132
+ const party = invoice.counterpartyName === null ? "" : `${invoice.direction === "receivable" ? " to" : " from"} ${invoice.counterpartyName}`;
133
+ const due = invoice.dueDate === null ? "" : `, due ${dayMonth(invoice.dueDate)}`;
134
+ return `${invoice.number ?? `#${invoice.id}`} \xB7 ${moneyLabel(invoice.total, invoice.currency)}${party}${due}` + notes(invoice.status.replace("_", " "), invoice.review === "confirmed" ? null : invoice.review);
135
+ }, "invoiceLine");
136
+ var paymentLine = /* @__PURE__ */ __name((payment) => {
137
+ const party = payment.partyName === null ? "" : `${payment.direction === "in" ? " from" : " to"} ${payment.partyName}`;
138
+ return `${moneyLabel(payment.amount, payment.currency)}${party}, ${dayMonth(payment.date)}` + notes(payment.review === "confirmed" ? null : payment.review);
139
+ }, "paymentLine");
140
+ var invoiceTitle = /* @__PURE__ */ __name((invoice) => `Invoice ${invoiceLine(invoice)}`, "invoiceTitle");
141
+ var paymentEntryTitle = /* @__PURE__ */ __name((payment) => `Payment \xB7 ${paymentLine(payment)}`, "paymentEntryTitle");
142
+
143
+ // node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/domain/orders.js
144
+ var ORDER_STATUSES = ["placed", "shipped", "delivered", "cancelled", "returned"];
145
+ var ORDER_PURPOSES = ["personal", "business", "client", "other"];
146
+ var orderLine = /* @__PURE__ */ __name((order) => {
147
+ const party = order.direction === "sale" && order.customerName !== null ? `to ${order.customerName}` : order.supplierName;
148
+ const money = order.total === null || order.currency === null ? "" : `, ${moneyLabel(order.total, order.currency)}`;
149
+ const notes2 = [order.status, order.review === "confirmed" ? null : order.review].filter(Boolean).join(", ");
150
+ return `${order.number ?? `#${order.id}`} \xB7 ${party}${money} (${notes2})`;
151
+ }, "orderLine");
152
+ var orderTitle = /* @__PURE__ */ __name((order) => `Order ${orderLine(order)}`, "orderTitle");
153
+
154
+ // node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/domain/relations.js
155
+ var ORGANIZATION_ROLES = [
156
+ "employee",
157
+ "contractor",
158
+ "founder",
159
+ "owner",
160
+ "manager",
161
+ "adviser",
162
+ "contact"
163
+ ];
164
+ var PROJECT_ROLES = ["owner", "manager", "contributor", "client-contact", "approver"];
165
+ var CONTRACT_ROLES = ["customer", "supplier", "signatory", "guarantor"];
166
+ var RELATED_ROLES = ["colleague", "adviser", "investor", "mentor", "family", "friend"];
167
+ var ENGAGEMENT_LEVELS = ["none", "low", "medium", "high"];
168
+ var isEngagement = /* @__PURE__ */ __name((value) => typeof value === "string" && ENGAGEMENT_LEVELS.includes(value), "isEngagement");
169
+ var checkEngagement = /* @__PURE__ */ __name((kind, from, to, level) => {
170
+ if (kind !== "member-of" || from !== "person" || to !== "project")
171
+ throw new CliError("validation_error", "an engagement level is set only on a person's member-of a project", {
172
+ reason: "relationship.engagement-ends"
173
+ });
174
+ if (!isEngagement(level))
175
+ throw new CliError("validation_error", `an engagement level is one of ${ENGAGEMENT_LEVELS.join(", ")}`, {
176
+ reason: "relationship.engagement-unknown"
177
+ });
178
+ return level;
179
+ }, "checkEngagement");
180
+ var ENGAGEMENT_ORDER = { high: 0, medium: 1, unknown: 2, low: 3, none: 4 };
181
+ var engagementRank = /* @__PURE__ */ __name((level) => ENGAGEMENT_ORDER[level ?? "unknown"], "engagementRank");
182
+ var byEngagement = /* @__PURE__ */ __name((items) => items.map((item, index) => ({ item, index })).sort((a, b) => engagementRank(a.item.engagement) - engagementRank(b.item.engagement) || a.index - b.index).map(({ item }) => item), "byEngagement");
183
+ var RELATIONS = {
184
+ "member-of": {
185
+ from: ["person", "organization", "project", "chat", "email_thread"],
186
+ to: ["organization", "project"],
187
+ roles: { to: { organization: ORGANIZATION_ROLES, project: PROJECT_ROLES } }
188
+ },
189
+ "reports-to": { from: ["person"], to: ["person"], inverse: "manages" },
190
+ "customer-of": { from: ["person", "organization"], to: ["organization"], inverse: "supplier of" },
191
+ "partner-of": { from: ["organization"], to: ["organization"], symmetric: true },
192
+ "related-to": {
193
+ from: ["person", "organization", "project", "task", "deal", "lead", "contract"],
194
+ to: ["person", "organization", "project", "task"],
195
+ roles: { from: { deal: DEAL_ROLES, lead: DEAL_ROLES, contract: CONTRACT_ROLES } }
196
+ }
197
+ };
198
+ var RELATION_KINDS = Object.keys(RELATIONS);
199
+ var specOf = /* @__PURE__ */ __name((kind) => Object.hasOwn(RELATIONS, kind) ? RELATIONS[kind] : void 0, "specOf");
200
+ var isRelationKind = /* @__PURE__ */ __name((kind) => specOf(kind) !== void 0, "isRelationKind");
201
+ var memberOnly = /* @__PURE__ */ __name((type) => type === "chat" || type === "email_thread", "memberOnly");
202
+ var partyOnly = /* @__PURE__ */ __name((from, to) => from === "contract" && to !== "person" && to !== "organization", "partyOnly");
203
+ var checkEnds = /* @__PURE__ */ __name((kind, from, to) => {
204
+ const spec = specOf(kind);
205
+ if (!spec)
206
+ throw new CliError("validation_error", `a relationship's kind is one of ${RELATION_KINDS.join(", ")}`);
207
+ if (memberOnly(from) && (kind !== "member-of" || to !== "project"))
208
+ throw new CliError("validation_error", `a ${from === "chat" ? "chat" : "mail thread"} is related only as member-of a project`);
209
+ if (partyOnly(from, to))
210
+ throw new CliError("validation_error", "a contract is related only to a person or an organization");
211
+ if (!spec.from.includes(from) || !spec.to.includes(to))
212
+ throw new CliError("validation_error", `${kind} joins ${spec.from.join(", ")} to ${spec.to.join(", ")}, not ${from} to ${to}`);
213
+ return spec;
214
+ }, "checkEnds");
215
+ var isParty = /* @__PURE__ */ __name((type) => type === "person" || type === "organization", "isParty");
216
+ var rolesOf = /* @__PURE__ */ __name((kind, from, to) => {
217
+ const spec = specOf(kind);
218
+ if (kind === "member-of" && from !== "person")
219
+ return void 0;
220
+ return spec?.roles?.from?.[from] ?? spec?.roles?.to?.[to];
221
+ }, "rolesOf");
222
+ var ROLE_LISTS = {
223
+ organization: ORGANIZATION_ROLES,
224
+ project: PROJECT_ROLES,
225
+ deal: DEAL_ROLES,
226
+ contract: CONTRACT_ROLES,
227
+ related: RELATED_ROLES
228
+ };
229
+ var roleListOf = /* @__PURE__ */ __name((kind, from, to) => {
230
+ if (kind === "related-to" && isParty(from) && isParty(to))
231
+ return "related";
232
+ const roles = rolesOf(kind, from, to);
233
+ return Object.keys(ROLE_LISTS).find((list) => ROLE_LISTS[list] === roles);
234
+ }, "roleListOf");
235
+ var checkRole = /* @__PURE__ */ __name((kind, from, to, role, extra = []) => {
236
+ const roles = rolesOf(kind, from, to)?.concat(extra);
237
+ if (roles && !roles.includes(role))
238
+ throw new CliError("validation_error", `a ${from}'s role on ${kind} ${to} is one of ${roles.join(", ")}`, {
239
+ reason: "relationship.role-unknown"
240
+ });
241
+ return role;
242
+ }, "checkRole");
243
+ var isSymmetric = /* @__PURE__ */ __name((kind) => specOf(kind)?.symmetric === true, "isSymmetric");
244
+ var inverseOf = /* @__PURE__ */ __name((kind) => specOf(kind)?.symmetric ? kind : specOf(kind)?.inverse ?? null, "inverseOf");
245
+ var STANDINGS = ["confirmed", "reported", "proposed", "ended"];
246
+ var standingOf = /* @__PURE__ */ __name((link, now) => {
247
+ if (link.endsAt != null && link.endsAt <= now)
248
+ return "ended";
249
+ if (link.confirmed)
250
+ return "confirmed";
251
+ if (link.deletedAt != null)
252
+ return "ended";
253
+ return link.accountId != null ? "reported" : "proposed";
254
+ }, "standingOf");
255
+ var isUsable = /* @__PURE__ */ __name((standing) => standing === "confirmed" || standing === "reported", "isUsable");
256
+ var usableLink = /* @__PURE__ */ __name((link, now) => isUsable(standingOf(link, now)), "usableLink");
257
+ var KEYED = "kind IN ('member-of', 'related-to', 'reports-to', 'customer-of', 'partner-of') AND to_id IS NOT NULL";
258
+ var notOverriddenSql = /* @__PURE__ */ __name((alias) => `NOT EXISTS (SELECT 1 FROM links override WHERE ${KEYED} AND override.kind = ${alias}.kind AND override.from_type = ${alias}.from_type AND override.from_id = ${alias}.from_id AND override.to_type = ${alias}.to_type AND override.to_id = ${alias}.to_id AND json_extract(override.metadata, '$.overrides') = ${alias}.id)`, "notOverriddenSql");
259
+ var usableLinkSql = /* @__PURE__ */ __name((alias, now) => `(${alias}.confirmed = 1 OR (${alias}.account_id IS NOT NULL AND ${alias}.deleted_at IS NULL))` + (now === void 0 ? "" : ` AND (${alias}.ends_at IS NULL OR ${alias}.ends_at > ${Math.trunc(now)})`), "usableLinkSql");
260
+
261
+ // node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/domain/crm.js
262
+ var CRM_KINDS = ["organization", "person", "deal", "lead"];
263
+ var CRM_ACTIVITY_KINDS = ["call", "email", "meeting", "todo", "task", "comment", "other"];
264
+ var isCrmUserId = /* @__PURE__ */ __name((id) => /^\d{1,20}$/.test(id), "isCrmUserId");
265
+ var normalCrmUserId = /* @__PURE__ */ __name((id) => {
266
+ const text = id.trim();
267
+ return /^\d+$/.test(text) ? text.replace(/^0+(?=\d)/, "") : text;
268
+ }, "normalCrmUserId");
269
+ var isItemKind = /* @__PURE__ */ __name((kind) => kind === "deal" || kind === "lead", "isItemKind");
270
+
271
+ // node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/domain/business.js
272
+ var CATALOG_KINDS = ["product", "service"];
273
+ var BUSINESS_KINDS = ["invoice", "payment", "order", "contract", "subscription", "product", "wallet"];
274
+ var CONTRACT_KINDS = ["sale", "purchase", "service", "lease", "employment", "nda", "license", "other"];
275
+ var CONTRACT_STATUSES = ["draft", "active", "ended", "terminated"];
276
+ var PERIOD_UNITS = ["day", "week", "month", "year"];
277
+ var SUBSCRIPTION_STATUSES = ["trial", "active", "paused", "cancelled", "ended"];
278
+ var WALLET_KINDS = ["bank", "card", "cash", "wallet", "other"];
279
+ var TRANSACTION_STATUSES = ["pending", "booked"];
280
+ var ORDER_DIRECTIONS = ["purchase", "sale"];
281
+ var intervalOf = /* @__PURE__ */ __name((text, reason = "subscription.interval") => {
282
+ const match = typeof text === "string" ? /^(?:([1-9]\d{0,2})-)?(day|week|month|year)$/.exec(text.trim()) : null;
283
+ if (!match)
284
+ throw new CliError("validation_error", "an interval is a count and a unit, such as 1-month or 2-week", { reason });
285
+ return { count: match[1] === void 0 ? 1 : Number(match[1]), unit: match[2] };
286
+ }, "intervalOf");
287
+ var intervalText = /* @__PURE__ */ __name(({ count, unit }) => `${count}-${unit}`, "intervalText");
288
+ var priced = /* @__PURE__ */ __name((units, currency) => units === null || currency === null ? "" : `, ${moneyLabel(units, currency)}`, "priced");
289
+ var pending = /* @__PURE__ */ __name((review) => review === "confirmed" ? null : review, "pending");
290
+ var productLine = /* @__PURE__ */ __name((product) => {
291
+ const price = product.unitPrice === null || product.currency === null ? "" : moneyLabel(product.unitPrice, product.currency);
292
+ const per = price && product.unit !== null ? ` per ${product.unit}` : "";
293
+ return `${product.name}${price ? ` \xB7 ${price}${per}` : ""}${notes(product.kind, product.archived ? "archived" : null)}`;
294
+ }, "productLine");
295
+ var contractLine = /* @__PURE__ */ __name((contract) => `${contract.number ?? `#${contract.id}`} \xB7 ${contract.name}${priced(contract.value, contract.currency)}` + notes(contract.status, pending(contract.review)), "contractLine");
296
+ var subscriptionLine = /* @__PURE__ */ __name((subscription) => `${subscription.name}${priced(subscription.price, subscription.currency)} every ${intervalText(subscription.interval)}` + notes(subscription.status, pending(subscription.review)), "subscriptionLine");
297
+ var walletLine = /* @__PURE__ */ __name((wallet) => `${wallet.name} \xB7 ${wallet.kind}, ${wallet.currency}${wallet.numberHint === null ? "" : `, \u2026${wallet.numberHint}`}` + notes(wallet.closed ? "closed" : null), "walletLine");
298
+ var transactionLine = /* @__PURE__ */ __name((transaction) => `${moneyLabel(transaction.amount, transaction.currency)} ${transaction.direction}${transaction.label === null ? "" : ` \xB7 ${transaction.label}`}, ${dayMonth(transaction.date)}` + notes(transaction.status === "pending" ? "pending" : null, pending(transaction.review)), "transactionLine");
299
+
300
+ export {
301
+ CURRENCY_SCALES,
302
+ parseDecimal,
303
+ formatDecimal,
304
+ currencyOf,
305
+ scaleOf,
306
+ minorUnits,
307
+ signedMinorUnits,
308
+ moneyOf,
309
+ moneyLabel,
310
+ quantityOf,
311
+ lineUnits,
312
+ DEAL_KINDS,
313
+ DEAL_STATUSES,
314
+ STAGE_OUTCOMES,
315
+ DEAL_ROLES,
316
+ dealLine,
317
+ INVOICE_DIRECTIONS,
318
+ INVOICE_STATUSES,
319
+ MONEY_DIRECTIONS,
320
+ FINANCE_REVIEWS,
321
+ settledStatus,
322
+ invoiceLine,
323
+ paymentLine,
324
+ invoiceTitle,
325
+ paymentEntryTitle,
326
+ ORDER_STATUSES,
327
+ ORDER_PURPOSES,
328
+ orderLine,
329
+ orderTitle,
330
+ ORGANIZATION_ROLES,
331
+ PROJECT_ROLES,
332
+ CONTRACT_ROLES,
333
+ RELATED_ROLES,
334
+ ENGAGEMENT_LEVELS,
335
+ isEngagement,
336
+ checkEngagement,
337
+ engagementRank,
338
+ byEngagement,
339
+ RELATIONS,
340
+ RELATION_KINDS,
341
+ isRelationKind,
342
+ checkEnds,
343
+ rolesOf,
344
+ ROLE_LISTS,
345
+ roleListOf,
346
+ checkRole,
347
+ isSymmetric,
348
+ inverseOf,
349
+ STANDINGS,
350
+ standingOf,
351
+ isUsable,
352
+ usableLink,
353
+ KEYED,
354
+ notOverriddenSql,
355
+ usableLinkSql,
356
+ CRM_KINDS,
357
+ CRM_ACTIVITY_KINDS,
358
+ isCrmUserId,
359
+ normalCrmUserId,
360
+ isItemKind,
361
+ CATALOG_KINDS,
362
+ BUSINESS_KINDS,
363
+ CONTRACT_KINDS,
364
+ CONTRACT_STATUSES,
365
+ PERIOD_UNITS,
366
+ SUBSCRIPTION_STATUSES,
367
+ WALLET_KINDS,
368
+ TRANSACTION_STATUSES,
369
+ ORDER_DIRECTIONS,
370
+ intervalOf,
371
+ intervalText,
372
+ productLine,
373
+ contractLine,
374
+ subscriptionLine,
375
+ walletLine,
376
+ transactionLine
377
+ };
@@ -11,7 +11,7 @@ import {
11
11
  __name
12
12
  } from "./chunk-ZVVMGPBJ.js";
13
13
 
14
- // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/domain/moment.js
14
+ // node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/domain/moment.js
15
15
  var calendarMoment = /* @__PURE__ */ __name((wanted, flag, { zone, end = false } = {}) => {
16
16
  try {
17
17
  return zonedMoment(wanted, timezoneOf(zone), { start: 0, end: wanted.length }, { end });
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  PRAGMAS
5
- } from "./chunk-GGMAIIVE.js";
5
+ } from "./chunk-KYRYD4CR.js";
6
6
  import {
7
7
  CliError
8
8
  } from "./chunk-IANKXHSE.js";
@@ -10,7 +10,7 @@ import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/store/sqlite-warning.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/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@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/store/open.js
34
+ // node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/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-HC6X4AOX.js");
47
+ const { openWithBunSqlite } = await import("./bun-sqlite-IOPYIUA7.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-IJBWENFX.js");
52
+ const { openWithNodeSqlite } = await import("./node-sqlite-ASAZJNHE.js");
53
53
  return openWithNodeSqlite(path);
54
54
  }, "openUnderNode");
55
55
  var runtime = /* @__PURE__ */ __name(() => {
@@ -5,7 +5,7 @@ import {
5
5
  isNewer,
6
6
  readNoticeState,
7
7
  writeUpdateState
8
- } from "./chunk-A6EZK5RG.js";
8
+ } from "./chunk-MYHPXJDG.js";
9
9
  import {
10
10
  executableEnvironment,
11
11
  executableOnPath
@@ -14,13 +14,13 @@ import {
14
14
  Command,
15
15
  Option,
16
16
  annotate
17
- } from "./chunk-V5EJSF2B.js";
17
+ } from "./chunk-ASTLGFTR.js";
18
18
  import {
19
19
  require_cross_spawn
20
20
  } from "./chunk-D72URWJE.js";
21
21
  import {
22
22
  refuseOwnerHomeInTests
23
- } from "./chunk-6CWL5BKG.js";
23
+ } from "./chunk-3QN5KDFZ.js";
24
24
  import {
25
25
  CliError
26
26
  } from "./chunk-IANKXHSE.js";
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/runs/secrets.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/runs/secrets.js
8
8
  var SECRET_WORDS = /* @__PURE__ */ new Set([
9
9
  "authorization",
10
10
  "cookie",
@@ -10,7 +10,7 @@ import {
10
10
  import {
11
11
  loadConfigFile,
12
12
  saveConfigFile
13
- } from "./chunk-6CWL5BKG.js";
13
+ } from "./chunk-3QN5KDFZ.js";
14
14
  import {
15
15
  number,
16
16
  object,
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  LEVELS
5
- } from "./chunk-KJ6USQDZ.js";
5
+ } from "./chunk-RQ4AXSCJ.js";
6
6
  import {
7
7
  WORD_BODY,
8
8
  e164Of
9
- } from "./chunk-LEKKTJKK.js";
9
+ } from "./chunk-DQJECJUE.js";
10
10
  import {
11
11
  resolvePaths,
12
12
  writeSecurely
13
- } from "./chunk-6CWL5BKG.js";
13
+ } from "./chunk-3QN5KDFZ.js";
14
14
  import {
15
15
  array,
16
16
  getDotPath,
@@ -40,7 +40,7 @@ import {
40
40
  __name
41
41
  } from "./chunk-ZVVMGPBJ.js";
42
42
 
43
- // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/domain/vcard.js
43
+ // node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/domain/vcard.js
44
44
  import { createHash } from "node:crypto";
45
45
  var MAX_ID = 512;
46
46
  var AS_WORD = new RegExp(`^${WORD_BODY}$`);
@@ -271,7 +271,7 @@ var envelopeOfVcard = /* @__PURE__ */ __name((text, { provider, account, batchId
271
271
  };
272
272
  }, "envelopeOfVcard");
273
273
 
274
- // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/domain/formatting.js
274
+ // node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/domain/formatting.js
275
275
  var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "the messenger formatter returned invalid text spans"), "invalid");
276
276
  var validateFormattedText = /* @__PURE__ */ __name((formatted) => {
277
277
  const { text, spans } = formatted;
@@ -331,7 +331,7 @@ var visibleFormattedText = /* @__PURE__ */ __name((formatted) => {
331
331
  };
332
332
  }, "visibleFormattedText");
333
333
 
334
- // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/moderation/check.js
334
+ // node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/moderation/check.js
335
335
  var INVITE = /max\.ru\/join\/|(t|telegram)\.me\/(\+|joinchat\/)|tg:\/\/join/i;
336
336
  var LINK = /https?:\/\/\S+/i;
337
337
  var STRENGTH = { report: 0, delete: 1, remove: 2 };
@@ -519,7 +519,7 @@ var nextPoint = /* @__PURE__ */ __name((rows, found) => {
519
519
  }, "nextPoint");
520
520
  var someUndone = /* @__PURE__ */ __name((rows) => rows.some(undone), "someUndone");
521
521
 
522
- // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/moderation/rules.js
522
+ // node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/moderation/rules.js
523
523
  import { existsSync, readdirSync, readFileSync } from "node:fs";
524
524
  import { join } from "node:path";
525
525
  var RULE_ACTIONS = ["report", "delete", "remove"];