@wirecat/zoom-cli 0.67.0 → 0.68.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (177) hide show
  1. package/dist/answer-entities.d.ts +18 -0
  2. package/dist/answer-entities.d.ts.map +1 -1
  3. package/dist/answer-entities.js +12 -0
  4. package/dist/answer-entities.js.map +1 -1
  5. package/dist/answer-policy.d.ts.map +1 -1
  6. package/dist/answer-policy.js +2 -1
  7. package/dist/answer-policy.js.map +1 -1
  8. package/dist/bin/zm.js +2 -2
  9. package/dist/bundle/{all-profiles-SEW2VL76.js → all-profiles-R66UM3HM.js} +12 -12
  10. package/dist/bundle/answer-policy-UCGUO53A.js +104 -0
  11. package/dist/bundle/{anthropic-FSNASJML.js → anthropic-4ZI2BPLG.js} +7 -7
  12. package/dist/bundle/{app-server-EVSRYJ3H.js → app-server-64O5IQI5.js} +61 -58
  13. package/dist/bundle/{bun-DACL5SVO.js → bun-HUHQD76Z.js} +2 -2
  14. package/dist/bundle/{bun-sqlite-HQ2KOXSI.js → bun-sqlite-VOVHPTIF.js} +6 -6
  15. package/dist/bundle/{chunk-SMVO5R3T.js → chunk-2OSBCYJT.js} +39 -26
  16. package/dist/bundle/{chunk-TBRG2DPE.js → chunk-2T6XHWDX.js} +2 -2
  17. package/dist/bundle/{chunk-6AJDVJVZ.js → chunk-32FPA7P2.js} +2 -2
  18. package/dist/bundle/{chunk-7LLUUXJB.js → chunk-355PHJYX.js} +1 -1
  19. package/dist/bundle/{chunk-3GO3KME7.js → chunk-3BRV2YU2.js} +3 -3
  20. package/dist/bundle/{chunk-I7SOXH64.js → chunk-474WF55M.js} +53 -39
  21. package/dist/bundle/{chunk-L643D4RJ.js → chunk-4TLPOY22.js} +12 -12
  22. package/dist/bundle/{chunk-D6OXI2NV.js → chunk-4YFJYSSK.js} +205 -59
  23. package/dist/bundle/chunk-5JAYUG3X.js +261 -0
  24. package/dist/bundle/{chunk-VNIBTNV4.js → chunk-65T3PU75.js} +2 -2
  25. package/dist/bundle/{chunk-6TZF2JP7.js → chunk-6CJ7NHIP.js} +13 -13
  26. package/dist/bundle/{chunk-MWEOVTIF.js → chunk-6T3P226D.js} +4 -4
  27. package/dist/bundle/{chunk-EPDRF66S.js → chunk-6TJ62LZQ.js} +22 -14
  28. package/dist/bundle/{chunk-ZRMZBMOF.js → chunk-6XO7RTJY.js} +66 -6
  29. package/dist/bundle/{chunk-VFIEYRYD.js → chunk-77I67HWF.js} +8 -8
  30. package/dist/bundle/{chunk-QX2MAT6I.js → chunk-77KFLU5F.js} +3 -3
  31. package/dist/bundle/{chunk-4GCKDO2H.js → chunk-7AUP2WT3.js} +3 -3
  32. package/dist/bundle/{chunk-7VU5UGRR.js → chunk-7DUYFITC.js} +16 -16
  33. package/dist/bundle/{chunk-ASCHAVNW.js → chunk-7QNJICKZ.js} +27 -27
  34. package/dist/bundle/{chunk-KWRSC6O6.js → chunk-A63ZFOQJ.js} +18 -4
  35. package/dist/bundle/{chunk-SSXCOUP3.js → chunk-AJ7CMUGD.js} +464 -220
  36. package/dist/bundle/{chunk-SCFFCIIP.js → chunk-AVEIQMHZ.js} +2 -2
  37. package/dist/bundle/chunk-AYEVBAGO.js +178 -0
  38. package/dist/bundle/{chunk-AAZFLJSH.js → chunk-B6JMVB6R.js} +10 -10
  39. package/dist/bundle/{chunk-CRLBTNC4.js → chunk-BL36NSV5.js} +3 -3
  40. package/dist/bundle/{chunk-4UVT2QCO.js → chunk-BOAMDYLY.js} +4 -4
  41. package/dist/bundle/chunk-BSM43OMN.js +31 -0
  42. package/dist/bundle/{chunk-QEI55M2F.js → chunk-DGNPJGD3.js} +16 -10
  43. package/dist/bundle/{chunk-SOZVC3SV.js → chunk-DVA6MQWK.js} +1 -1
  44. package/dist/bundle/{chunk-YRNZT4GQ.js → chunk-DWSUSWAX.js} +98 -13
  45. package/dist/bundle/{chunk-LFQ73UFK.js → chunk-EH5QGQFR.js} +3 -3
  46. package/dist/bundle/{chunk-OZEYFJX2.js → chunk-EJDV5IIF.js} +1 -1
  47. package/dist/bundle/{chunk-VQTAU4DV.js → chunk-EWIBLDQQ.js} +8 -8
  48. package/dist/bundle/{chunk-4ZR5DJ26.js → chunk-EZRPSZJS.js} +3 -3
  49. package/dist/bundle/{chunk-KIJLM5UL.js → chunk-FBLUKCIR.js} +1 -1
  50. package/dist/bundle/{chunk-WZ5XK74U.js → chunk-FEM2JQN2.js} +1 -1
  51. package/dist/bundle/{chunk-GP4NSYDU.js → chunk-FMQS7HCC.js} +12 -12
  52. package/dist/bundle/{chunk-B5Z4XPVS.js → chunk-FNQASORM.js} +2 -2
  53. package/dist/bundle/{chunk-FWU3ZYHE.js → chunk-GOXDBCDM.js} +728 -130
  54. package/dist/bundle/{chunk-CLEZE65P.js → chunk-HXOAPH47.js} +1 -1
  55. package/dist/bundle/{chunk-7K5TDTZY.js → chunk-JO4YADNV.js} +7 -7
  56. package/dist/bundle/{chunk-4U2555EQ.js → chunk-JRCYFCPL.js} +30 -28
  57. package/dist/bundle/{chunk-L6CAUVMU.js → chunk-K67V24AT.js} +5 -5
  58. package/dist/bundle/{chunk-B3KWAULD.js → chunk-KAPJQGHE.js} +2 -2
  59. package/dist/bundle/{chunk-T6CZWSHF.js → chunk-KNE6VFHZ.js} +21 -21
  60. package/dist/bundle/{chunk-LM26DJOK.js → chunk-KUB2U5NT.js} +6 -6
  61. package/dist/bundle/{chunk-EUPZSR2G.js → chunk-L4WVLRXM.js} +4 -4
  62. package/dist/bundle/{chunk-BKY4XVB4.js → chunk-LBOSTBAY.js} +1248 -617
  63. package/dist/bundle/{chunk-C6UKW7JO.js → chunk-LV7QRR5S.js} +6 -6
  64. package/dist/bundle/{chunk-FGTPREAZ.js → chunk-LYWUG43B.js} +33 -33
  65. package/dist/bundle/{chunk-NTZDM5SJ.js → chunk-NRRI37NJ.js} +9 -9
  66. package/dist/bundle/{chunk-J3ZBEWQY.js → chunk-NUJMJQXV.js} +54 -147
  67. package/dist/bundle/{chunk-6IBM4Z3V.js → chunk-OE7EIP5L.js} +1 -1
  68. package/dist/bundle/{chunk-ZMPTO2WB.js → chunk-P2TISY3R.js} +1 -1
  69. package/dist/bundle/{chunk-KV4267S4.js → chunk-P3ASN72F.js} +1 -1
  70. package/dist/bundle/{chunk-V33VGWT3.js → chunk-PIHBD3YS.js} +16 -6
  71. package/dist/bundle/{chunk-RYKG6AEH.js → chunk-PUTGTW6W.js} +4 -2
  72. package/dist/bundle/{chunk-L6WUAGPN.js → chunk-QXTREL2M.js} +3 -3
  73. package/dist/bundle/{chunk-X67YD3QI.js → chunk-R7LFGEDE.js} +2 -2
  74. package/dist/bundle/{chunk-2UW533HQ.js → chunk-RGJ7OWHU.js} +4 -4
  75. package/dist/bundle/{chunk-LKJXTACE.js → chunk-RP3U3J53.js} +7 -7
  76. package/dist/bundle/{chunk-DG4DWAU7.js → chunk-RRYUD2EF.js} +3 -3
  77. package/dist/bundle/{chunk-Q65SDEFN.js → chunk-SRP6SFFD.js} +2 -2
  78. package/dist/bundle/{chunk-4KDZ22RA.js → chunk-SSPSNSC5.js} +1 -1
  79. package/dist/bundle/{chunk-DFUPETW7.js → chunk-TDGZMC6K.js} +130 -75
  80. package/dist/bundle/{chunk-EQ7XRRKV.js → chunk-TN3FH2GQ.js} +11 -11
  81. package/dist/bundle/chunk-TUNQ6NE2.js +64 -0
  82. package/dist/bundle/{chunk-FXQPK742.js → chunk-TZUKDM72.js} +29 -15
  83. package/dist/bundle/{chunk-IFDO3YPJ.js → chunk-UDJTRFRV.js} +1 -1
  84. package/dist/bundle/{chunk-ESFMHBHH.js → chunk-US5C3WAY.js} +60 -51
  85. package/dist/bundle/{chunk-KANH7GBB.js → chunk-UU5PLDRA.js} +2 -2
  86. package/dist/bundle/{chunk-OTMGAKUM.js → chunk-VLD7Y4SY.js} +7 -7
  87. package/dist/bundle/{chunk-YPF6OS37.js → chunk-VW6BF6M7.js} +1 -1
  88. package/dist/bundle/{chunk-JVCHGI7W.js → chunk-W42BJ65M.js} +1 -1
  89. package/dist/bundle/{chunk-RAMPYIO2.js → chunk-Y5LP5SHV.js} +11 -11
  90. package/dist/bundle/{chunk-WHQ4ZCJI.js → chunk-YJY3W2ZT.js} +210 -85
  91. package/dist/bundle/{chunk-3ZIHUSMM.js → chunk-YOAEZSDG.js} +2 -2
  92. package/dist/bundle/{chunk-M43MBWJX.js → chunk-YQRNFG2E.js} +13471 -1289
  93. package/dist/bundle/{chunk-7HAIM7GV.js → chunk-YTF2WPV4.js} +601 -443
  94. package/dist/bundle/{chunk-6UFWFKFH.js → chunk-ZRD3NDOX.js} +2 -2
  95. package/dist/bundle/{cli-YUATSOLA.js → cli-VQJ7ZRYR.js} +89 -61
  96. package/dist/bundle/command-contract-JPUWWYIV.js +41 -0
  97. package/dist/bundle/config-YGLLR77A.js +90 -0
  98. package/dist/bundle/{decode-IL44LNC3.js → decode-L3ENO2XH.js} +6 -6
  99. package/dist/bundle/{dispatch-3BGIXSJR.js → dispatch-5MGDLOK4.js} +9 -9
  100. package/dist/bundle/{dist-3W27UQ2S.js → dist-WQLS7U23.js} +47 -27
  101. package/dist/bundle/{echarts-CO4D26JF.js → echarts-5LLJ6JXC.js} +2 -2
  102. package/dist/bundle/{embed-XH2X4DFM.js → embed-37MYTCU7.js} +7 -7
  103. package/dist/bundle/{embedder-WTFWDXBJ.js → embedder-GNGHVJAO.js} +10 -10
  104. package/dist/bundle/{failure-HTIS3NLS.js → failure-CR64C4XA.js} +3 -3
  105. package/dist/bundle/{first-run-5RBH7FDO.js → first-run-NR5JKYP3.js} +12 -12
  106. package/dist/bundle/first-screen-RCR7ATO2.js +39 -0
  107. package/dist/bundle/{folders-F4DNQPIY.js → folders-VU4IN35Y.js} +5 -5
  108. package/dist/bundle/{instructions-EPPBL6TT.js → instructions-P72XX4AK.js} +1 -1
  109. package/dist/bundle/{main-LVQTCDZS.js → main-QYFCYSTW.js} +21 -23
  110. package/dist/bundle/{mcp-PPVOM4SE.js → mcp-M4QN2E7R.js} +2 -2
  111. package/dist/bundle/{meetings-BMELXRTR.js → meetings-66UQINKI.js} +13 -7
  112. package/dist/bundle/{node-CQVMWVIG.js → node-ZB4RNICS.js} +2 -2
  113. package/dist/bundle/{node-sqlite-QQEX7LZT.js → node-sqlite-XPRKBDF3.js} +7 -7
  114. package/dist/bundle/{oauth-AYGX7CQS.js → oauth-WJRDUU5J.js} +8 -8
  115. package/dist/bundle/{open-MIL2TOT6.js → open-S2YSIEOW.js} +6 -6
  116. package/dist/bundle/openai-CRNZFNZD.js +25 -0
  117. package/dist/bundle/{output-file-4XADZPYH.js → output-file-6COFGPUL.js} +6 -6
  118. package/dist/bundle/{process-NJVQK6GB.js → process-XNN4WG6N.js} +1 -1
  119. package/dist/bundle/{program-WUYRS6H7.js → program-BRPJKRCX.js} +115 -187
  120. package/dist/bundle/{prompt-J4QPFLEA.js → prompt-7RQOL25I.js} +6 -6
  121. package/dist/bundle/{recognize-OLJZVNWW.js → recognize-N5WADGQB.js} +5 -5
  122. package/dist/bundle/{remote-JPUXNYLV.js → remote-WHYV35IF.js} +8 -8
  123. package/dist/bundle/{rerank-XVV3X5TT.js → rerank-FBMZVWSH.js} +8 -8
  124. package/dist/bundle/{run-log-DJXBEVS5.js → run-log-TOCHREH2.js} +59 -59
  125. package/dist/bundle/{serve-NYYUO3MR.js → serve-4BABX4WS.js} +10 -10
  126. package/dist/bundle/{server-4Z5E4YTT.js → server-CDVI6LOB.js} +47 -47
  127. package/dist/bundle/server-XOFQKFVO.js +72 -0
  128. package/dist/bundle/{services-EKWM76HP.js → services-PIY33I7R.js} +43 -33
  129. package/dist/bundle/{speech-WFJ44ACJ.js → speech-LS5Q4FL2.js} +14 -14
  130. package/dist/bundle/{state-VIRCT4VW.js → state-YUX5R2R7.js} +7 -7
  131. package/dist/bundle/{store-ZTDZ6UY5.js → store-BD7HAXAA.js} +20 -18
  132. package/dist/bundle/{store-2Q4GEZJS.js → store-ERMGBF2B.js} +49 -29
  133. package/dist/bundle/store-connection-JBR6CMTJ.js +83 -0
  134. package/dist/bundle/store-maintenance-command-I5DUSO2C.js +62 -0
  135. package/dist/bundle/{streaming-7BPKIGAS.js → streaming-O53PIORL.js} +7 -7
  136. package/dist/bundle/{tokens-CQHMMKNX.js → tokens-QKNEP2GJ.js} +7 -7
  137. package/dist/bundle/zm.js +9 -10
  138. package/dist/bundle/zoom-app-XJXZ4ZBX.js +41 -0
  139. package/dist/commands.d.ts.map +1 -1
  140. package/dist/commands.js +1 -0
  141. package/dist/commands.js.map +1 -1
  142. package/dist/config.d.ts.map +1 -1
  143. package/dist/config.js +2 -3
  144. package/dist/config.js.map +1 -1
  145. package/dist/identity.d.ts +1 -0
  146. package/dist/identity.d.ts.map +1 -1
  147. package/dist/identity.js +11 -0
  148. package/dist/identity.js.map +1 -1
  149. package/dist/program-bindings.d.ts.map +1 -1
  150. package/dist/program-bindings.js +7 -2
  151. package/dist/program-bindings.js.map +1 -1
  152. package/dist/setup-commands.d.ts +6 -0
  153. package/dist/setup-commands.d.ts.map +1 -1
  154. package/dist/setup-commands.js +24 -9
  155. package/dist/setup-commands.js.map +1 -1
  156. package/dist/version.d.ts +1 -1
  157. package/dist/version.js +1 -1
  158. package/dist/zoom-app.d.ts +32 -0
  159. package/dist/zoom-app.d.ts.map +1 -1
  160. package/dist/zoom-app.js +61 -0
  161. package/dist/zoom-app.js.map +1 -1
  162. package/package.json +3 -3
  163. package/dist/bundle/answer-policy-5OYUL6UF.js +0 -103
  164. package/dist/bundle/chunk-54RTMQL6.js +0 -132
  165. package/dist/bundle/chunk-6VFORXL3.js +0 -101
  166. package/dist/bundle/chunk-D4KBD63W.js +0 -19
  167. package/dist/bundle/chunk-SXFODCYK.js +0 -9
  168. package/dist/bundle/chunk-Z3WXI4DK.js +0 -31
  169. package/dist/bundle/command-contract-UWHY55UE.js +0 -41
  170. package/dist/bundle/config-TGF6E6ZD.js +0 -89
  171. package/dist/bundle/first-screen-PGFIXJAX.js +0 -39
  172. package/dist/bundle/openai-7QZZXQW5.js +0 -25
  173. package/dist/bundle/server-VW5UVCH7.js +0 -72
  174. package/dist/bundle/store-connection-FKVVQLEF.js +0 -83
  175. package/dist/bundle/store-maintenance-command-AU73UVUQ.js +0 -62
  176. package/dist/bundle/zoom-app-OEKFMJS6.js +0 -25
  177. /package/dist/bundle/{chunk-LU3WKZBA.js → chunk-VOXIGICJ.js} +0 -0
@@ -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-WZ5XK74U.js";
5
+ } from "./chunk-FEM2JQN2.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/ports/app.js
10
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/ports/app.js
11
11
  var envName = /* @__PURE__ */ __name((app, name) => `${app.envPrefix}_${name}`, "envName");
12
12
  var readOnlyLockOf = /* @__PURE__ */ __name((app, env) => {
13
13
  const name = envName(app, "READ_ONLY");
@@ -0,0 +1,178 @@
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ CliError
5
+ } from "./chunk-FEM2JQN2.js";
6
+ import {
7
+ singleLine
8
+ } from "./chunk-OE7EIP5L.js";
9
+ import {
10
+ __name
11
+ } from "./chunk-ZVVMGPBJ.js";
12
+
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/domain/tags.js
14
+ var TAG_TYPES = ["chat", "contact", "message", "task"];
15
+ var TAG = /^[a-z0-9-]{1,32}$/;
16
+ var tagOf = /* @__PURE__ */ __name((value) => {
17
+ const tag = value.trim().toLowerCase();
18
+ return TAG.test(tag) ? tag : void 0;
19
+ }, "tagOf");
20
+ var normalizeTag = /* @__PURE__ */ __name((value) => {
21
+ const tag = tagOf(value);
22
+ if (tag === void 0)
23
+ throw new CliError("validation_error", `"${singleLine(value)}" is not a tag \u2014 use 1\u201332 letters a\u2013z, digits and hyphens`, { reason: "tag.invalid" });
24
+ return tag;
25
+ }, "normalizeTag");
26
+
27
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/domain/money.js
28
+ var CURRENCY_SCALES = {
29
+ AED: 2,
30
+ AMD: 2,
31
+ AUD: 2,
32
+ BHD: 3,
33
+ BYN: 2,
34
+ CAD: 2,
35
+ CHF: 2,
36
+ CLP: 0,
37
+ CNY: 2,
38
+ CZK: 2,
39
+ DKK: 2,
40
+ EUR: 2,
41
+ GBP: 2,
42
+ GEL: 2,
43
+ HUF: 2,
44
+ ILS: 2,
45
+ INR: 2,
46
+ ISK: 0,
47
+ JPY: 0,
48
+ KGS: 2,
49
+ KRW: 0,
50
+ KWD: 3,
51
+ KZT: 2,
52
+ NOK: 2,
53
+ PLN: 2,
54
+ RSD: 2,
55
+ RUB: 2,
56
+ SEK: 2,
57
+ THB: 2,
58
+ TRY: 2,
59
+ UAH: 2,
60
+ USD: 2,
61
+ UZS: 2,
62
+ VND: 0
63
+ };
64
+ var refuse = /* @__PURE__ */ __name((message, reason) => {
65
+ throw new CliError("validation_error", message, { reason });
66
+ }, "refuse");
67
+ var DECIMAL = /^(\d{1,15})(?:\.(\d+))?$/;
68
+ var parseDecimal = /* @__PURE__ */ __name((text, scale) => {
69
+ const match = DECIMAL.exec(text.trim());
70
+ if (!match || (match[2] ?? "").length > scale)
71
+ return void 0;
72
+ return BigInt(`${match[1]}${(match[2] ?? "").padEnd(scale, "0")}`);
73
+ }, "parseDecimal");
74
+ var formatDecimal = /* @__PURE__ */ __name((units, scale) => {
75
+ const digits = BigInt(units).toString().padStart(scale + 1, "0");
76
+ return scale === 0 ? digits : `${digits.slice(0, -scale)}.${digits.slice(-scale)}`;
77
+ }, "formatDecimal");
78
+ var groupDigits = /* @__PURE__ */ __name((decimal) => {
79
+ const [whole = "0", fraction] = decimal.split(".");
80
+ const grouped = whole.replace(/\B(?=(\d{3})+(?!\d))/g, " ");
81
+ return fraction === void 0 ? grouped : `${grouped}.${fraction}`;
82
+ }, "groupDigits");
83
+ var currencyOf = /* @__PURE__ */ __name((text) => {
84
+ const code = typeof text === "string" ? text.trim().toUpperCase() : "";
85
+ if (CURRENCY_SCALES[code] === void 0)
86
+ 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");
87
+ return code;
88
+ }, "currencyOf");
89
+ var scaleOf = /* @__PURE__ */ __name((currency) => CURRENCY_SCALES[currencyOf(currency)], "scaleOf");
90
+ var minorUnits = /* @__PURE__ */ __name((amount, currency, what = "an amount") => {
91
+ const scale = scaleOf(currency);
92
+ const units = typeof amount === "string" ? parseDecimal(amount, scale) : void 0;
93
+ if (units === void 0 || units > BigInt(Number.MAX_SAFE_INTEGER))
94
+ 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");
95
+ return Number(units);
96
+ }, "minorUnits");
97
+ var moneyOf = /* @__PURE__ */ __name((units, currency) => ({
98
+ amount: formatDecimal(units, scaleOf(currency)),
99
+ currency
100
+ }), "moneyOf");
101
+ var moneyLabel = /* @__PURE__ */ __name((units, currency) => `${groupDigits(formatDecimal(units, scaleOf(currency)))} ${currency}`, "moneyLabel");
102
+ var QUANTITY_SCALE = 3;
103
+ var quantityOf = /* @__PURE__ */ __name((text) => {
104
+ const thousandths = typeof text === "string" ? parseDecimal(text, QUANTITY_SCALE) : void 0;
105
+ if (thousandths === void 0 || thousandths === 0n)
106
+ return refuse('a quantity is a decimal string above 0 with at most 3 decimals, such as "1.5"', "money.quantity");
107
+ const plain = formatDecimal(thousandths, QUANTITY_SCALE).replace(/\.?0+$/, "");
108
+ return { text: plain, thousandths };
109
+ }, "quantityOf");
110
+ var lineUnits = /* @__PURE__ */ __name((thousandths, unitPrice) => Number((thousandths * BigInt(unitPrice) + 500n) / 1000n), "lineUnits");
111
+
112
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/domain/finance.js
113
+ var INVOICE_DIRECTIONS = ["receivable", "payable"];
114
+ var INVOICE_STATUSES = ["draft", "issued", "partly_paid", "paid", "void"];
115
+ var MONEY_DIRECTIONS = ["in", "out"];
116
+ var FINANCE_REVIEWS = ["proposed", "confirmed", "rejected"];
117
+ var settledStatus = /* @__PURE__ */ __name((current, total, paid) => {
118
+ if (current === "draft" || current === "void")
119
+ return current;
120
+ if (paid <= 0)
121
+ return "issued";
122
+ return paid < total ? "partly_paid" : "paid";
123
+ }, "settledStatus");
124
+ var dayMonth = /* @__PURE__ */ __name((date) => date === null ? null : `${date.slice(8, 10)}.${date.slice(5, 7)}`, "dayMonth");
125
+ var notes = /* @__PURE__ */ __name((...words) => {
126
+ const kept = words.filter((word) => word !== null);
127
+ return kept.length === 0 ? "" : ` (${kept.join(", ")})`;
128
+ }, "notes");
129
+ var invoiceLine = /* @__PURE__ */ __name((invoice) => {
130
+ const party = invoice.counterpartyName === null ? "" : `${invoice.direction === "receivable" ? " to" : " from"} ${invoice.counterpartyName}`;
131
+ const due = invoice.dueDate === null ? "" : `, due ${dayMonth(invoice.dueDate)}`;
132
+ return `${invoice.number ?? `#${invoice.id}`} \xB7 ${moneyLabel(invoice.total, invoice.currency)}${party}${due}` + notes(invoice.status.replace("_", " "), invoice.review === "confirmed" ? null : invoice.review);
133
+ }, "invoiceLine");
134
+ var paymentLine = /* @__PURE__ */ __name((payment) => {
135
+ const party = payment.partyName === null ? "" : `${payment.direction === "in" ? " from" : " to"} ${payment.partyName}`;
136
+ return `${moneyLabel(payment.amount, payment.currency)}${party}, ${dayMonth(payment.date)}` + notes(payment.review === "confirmed" ? null : payment.review);
137
+ }, "paymentLine");
138
+ var invoiceTitle = /* @__PURE__ */ __name((invoice) => `Invoice ${invoiceLine(invoice)}`, "invoiceTitle");
139
+ var paymentEntryTitle = /* @__PURE__ */ __name((payment) => `Payment \xB7 ${paymentLine(payment)}`, "paymentEntryTitle");
140
+
141
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/domain/orders.js
142
+ var ORDER_STATUSES = ["placed", "shipped", "delivered", "cancelled", "returned"];
143
+ var ORDER_PURPOSES = ["personal", "business", "client", "other"];
144
+ var orderLine = /* @__PURE__ */ __name((order) => {
145
+ const money = order.total === null || order.currency === null ? "" : `, ${moneyLabel(order.total, order.currency)}`;
146
+ const notes2 = [order.status, order.review === "confirmed" ? null : order.review].filter(Boolean).join(", ");
147
+ return `${order.number ?? `#${order.id}`} \xB7 ${order.supplierName}${money} (${notes2})`;
148
+ }, "orderLine");
149
+ var orderTitle = /* @__PURE__ */ __name((order) => `Order ${orderLine(order)}`, "orderTitle");
150
+
151
+ export {
152
+ TAG_TYPES,
153
+ tagOf,
154
+ normalizeTag,
155
+ CURRENCY_SCALES,
156
+ parseDecimal,
157
+ formatDecimal,
158
+ currencyOf,
159
+ scaleOf,
160
+ minorUnits,
161
+ moneyOf,
162
+ moneyLabel,
163
+ quantityOf,
164
+ lineUnits,
165
+ INVOICE_DIRECTIONS,
166
+ INVOICE_STATUSES,
167
+ MONEY_DIRECTIONS,
168
+ FINANCE_REVIEWS,
169
+ settledStatus,
170
+ invoiceLine,
171
+ paymentLine,
172
+ invoiceTitle,
173
+ paymentEntryTitle,
174
+ ORDER_STATUSES,
175
+ ORDER_PURPOSES,
176
+ orderLine,
177
+ orderTitle
178
+ };
@@ -19,16 +19,16 @@ import {
19
19
  reference,
20
20
  string,
21
21
  variant
22
- } from "./chunk-NTZDM5SJ.js";
22
+ } from "./chunk-NRRI37NJ.js";
23
23
  import {
24
24
  CliError,
25
25
  isCliError
26
- } from "./chunk-WZ5XK74U.js";
26
+ } from "./chunk-FEM2JQN2.js";
27
27
  import {
28
28
  __name
29
29
  } from "./chunk-ZVVMGPBJ.js";
30
30
 
31
- // 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/query/types.js
31
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/types.js
32
32
  var QUERY_LIMITS = {
33
33
  bytes: 8192,
34
34
  depth: 32,
@@ -72,7 +72,7 @@ function queryError(reason, span, alternative, context = {}, details = {}) {
72
72
  __name(queryError, "queryError");
73
73
  var walkQuery = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? [node] : node.clauses.flatMap(({ node: node2 }) => walkQuery(node2)), "walkQuery");
74
74
 
75
- // 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/query/dates.js
75
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/dates.js
76
76
  var timezoneOf = /* @__PURE__ */ __name((given) => {
77
77
  const zone = given ?? Intl.DateTimeFormat().resolvedOptions().timeZone ?? "UTC";
78
78
  try {
@@ -217,7 +217,7 @@ var dateRange = /* @__PURE__ */ __name((lower, upper, lowerInclusive, upperInclu
217
217
  };
218
218
  }, "dateRange");
219
219
 
220
- // 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/query/fields.js
220
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/fields.js
221
221
  var FIELD_TYPES = ["kw", "txt", "enum", "num", "time", "bool", "ref"];
222
222
  var OPERATORS_BY_TYPE = {
223
223
  kw: ["term", "phrase", "wildcard"],
@@ -296,7 +296,7 @@ var queryFieldsOf = /* @__PURE__ */ __name((schema, annotations = {}) => {
296
296
  return [...own, ...relations, ...states];
297
297
  }, "queryFieldsOf");
298
298
 
299
- // 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/query/help.js
299
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/help.js
300
300
  var shownOf = /* @__PURE__ */ __name((registry) => registry.backend === "native" ? registry.fields.filter((field) => field.native) : registry.fields, "shownOf");
301
301
  var leftOut = /* @__PURE__ */ __name((fields) => fields.filter((field) => field.negatable).map((field) => field.name), "leftOut");
302
302
  var has = /* @__PURE__ */ __name((fields, operator) => fields.some((field) => field.operators.includes(operator)), "has");
@@ -333,7 +333,7 @@ var queryDescription = /* @__PURE__ */ __name((registry) => {
333
333
  return `${terms}; fields: ${fields.join(", ")}; e.g. ${shown[0]?.example ?? ""}${defaults}`;
334
334
  }, "queryDescription");
335
335
 
336
- // 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/query/parser.js
336
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/parser.js
337
337
  var whitespace = /* @__PURE__ */ __name((c) => /[ \t\n\r\u3000]/u.test(c), "whitespace");
338
338
  var reserved = /* @__PURE__ */ new Set([
339
339
  "+",
@@ -642,7 +642,7 @@ var implicitTextTerms = /* @__PURE__ */ __name((text) => {
642
642
  return new Set(tokens.flatMap((token, index) => (token.kind === "term" || token.kind === "number") && ![":", "=", "<", ">", "<=", ">="].includes(tokens[index - 1]?.kind ?? "") && ![":", "=", "<", ">", "<=", ">="].includes(tokens[index + 1]?.kind ?? "") ? [token.span.start] : []));
643
643
  }, "implicitTextTerms");
644
644
 
645
- // 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/query/validate.js
645
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/validate.js
646
646
  var inContext = /* @__PURE__ */ __name((context, run) => {
647
647
  try {
648
648
  run();
@@ -717,7 +717,7 @@ var validateQuery = /* @__PURE__ */ __name((ast, registry, options = {}) => {
717
717
  }, "validateQuery");
718
718
  var fieldsNamed = /* @__PURE__ */ __name((ast) => new Set(walkQuery(ast.root).map((node) => node.field)), "fieldsNamed");
719
719
 
720
- // 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/query/registry.js
720
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/registry.js
721
721
  var describeQuery = /* @__PURE__ */ __name((registry) => ({
722
722
  entity: registry.entity,
723
723
  backend: registry.backend,
@@ -788,7 +788,7 @@ var QUERY_REASONS = defineReasons([
788
788
  details: [...SPAN, ...details]
789
789
  })));
790
790
 
791
- // 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/query/evaluate.js
791
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/evaluate.js
792
792
  var wordsOf = /* @__PURE__ */ __name((text) => text.toLowerCase().match(/[\p{L}\p{N}]+/gu) ?? [], "wordsOf");
793
793
  var pattern = /* @__PURE__ */ __name((value) => new RegExp(`^${[...value].map((char) => char === "*" ? ".*" : char === "?" ? "." : char.replace(/[.+^${}()|[\]\\]/, "\\$&")).join("")}$`, "iu"), "pattern");
794
794
  var present = /* @__PURE__ */ __name((value) => value !== void 0 && value !== null && value !== "", "present");
@@ -3,14 +3,14 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  checkCancelled,
5
5
  object
6
- } from "./chunk-B3KWAULD.js";
6
+ } from "./chunk-KAPJQGHE.js";
7
7
  import {
8
8
  Credentials
9
- } from "./chunk-T6CZWSHF.js";
9
+ } from "./chunk-KNE6VFHZ.js";
10
10
  import {
11
11
  CliError,
12
12
  isCliError
13
- } from "./chunk-WZ5XK74U.js";
13
+ } from "./chunk-FEM2JQN2.js";
14
14
  import {
15
15
  __name
16
16
  } from "./chunk-ZVVMGPBJ.js";
@@ -3,26 +3,26 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  executableEnvironment,
5
5
  executableOnPath
6
- } from "./chunk-YPF6OS37.js";
6
+ } from "./chunk-VW6BF6M7.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-T6CZWSHF.js";
13
+ } from "./chunk-KNE6VFHZ.js";
14
14
  import {
15
15
  number,
16
16
  object,
17
17
  optional,
18
18
  string
19
- } from "./chunk-NTZDM5SJ.js";
19
+ } from "./chunk-NRRI37NJ.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.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
25
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.8_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) => {
@@ -0,0 +1,31 @@
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
+
4
+ // dist/version.js
5
+ var VERSION = "0.68.0";
6
+
7
+ // dist/identity.js
8
+ var CLIENT_ID_MISSING = "zoom.client-id-missing";
9
+ var ZOOM_REASONS = [
10
+ {
11
+ reason: CLIENT_ID_MISSING,
12
+ code: "configuration_error",
13
+ message: "no Zoom app is set: zoom.client_id and ZM_ZOOM_CLIENT_ID are empty",
14
+ details: []
15
+ }
16
+ ];
17
+ var ZM = {
18
+ command: "zm",
19
+ appName: "zoom-cli",
20
+ envPrefix: "ZM",
21
+ description: "Zoom meeting transcripts and summaries",
22
+ version: VERSION,
23
+ messenger: false,
24
+ errors: { reasons: ZOOM_REASONS }
25
+ };
26
+
27
+ export {
28
+ VERSION,
29
+ CLIENT_ID_MISSING,
30
+ ZM
31
+ };
@@ -2,26 +2,30 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  validateFormattedText
5
- } from "./chunk-GP4NSYDU.js";
5
+ } from "./chunk-FMQS7HCC.js";
6
6
  import {
7
7
  inputPolicy
8
- } from "./chunk-TBRG2DPE.js";
8
+ } from "./chunk-2T6XHWDX.js";
9
9
  import {
10
10
  indent
11
- } from "./chunk-T6CZWSHF.js";
11
+ } from "./chunk-KNE6VFHZ.js";
12
12
  import {
13
13
  CliError
14
- } from "./chunk-WZ5XK74U.js";
14
+ } from "./chunk-FEM2JQN2.js";
15
15
  import {
16
16
  __name
17
17
  } from "./chunk-ZVVMGPBJ.js";
18
18
 
19
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/domain/checks.js
19
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/domain/checks.js
20
20
  var spelled = /* @__PURE__ */ __name((check, args) => `${check.replaceAll(".", " ")}${args === void 0 ? "" : ` ${args}`}`, "spelled");
21
21
  var bareCheck = /* @__PURE__ */ __name((check, args) => `\`${spelled(check, args)}\``, "bareCheck");
22
22
  var checkWords = /* @__PURE__ */ __name((command, profile) => (check, args) => `\`${command} ${profile === void 0 ? "" : `${profile} `}${spelled(check, args)}\``, "checkWords");
23
23
 
24
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/domain/markdown.js
24
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/domain/crm.js
25
+ var CRM_KINDS = ["organization", "person", "deal", "lead"];
26
+ var isItemKind = /* @__PURE__ */ __name((kind) => kind === "deal" || kind === "lead", "isItemKind");
27
+
28
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/domain/markdown.js
25
29
  var MARKERS = [
26
30
  ["**", "bold"],
27
31
  ["~~", "strike"],
@@ -67,7 +71,7 @@ var closing = /* @__PURE__ */ __name((input, open, marker) => {
67
71
  return end;
68
72
  }, "closing");
69
73
 
70
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/domain/markdown-spans.js
74
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/domain/markdown-spans.js
71
75
  var STYLES = [
72
76
  ["**", "bold"],
73
77
  ["__", "underline"],
@@ -227,7 +231,7 @@ var parseMarkdownSpans = /* @__PURE__ */ __name((input) => {
227
231
  return validateFormattedText(result);
228
232
  }, "parseMarkdownSpans");
229
233
 
230
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/domain/polls.js
234
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/domain/polls.js
231
235
  var countedPoll = /* @__PURE__ */ __name((poll, votes, self) => {
232
236
  const cast = votes.filter((vote) => vote.answers.length > 0);
233
237
  const mine = self === null ? void 0 : votes.find((vote) => vote.person.id === self);
@@ -1876,7 +1880,7 @@ var createDataURL = /* @__PURE__ */ __name(function(width, height, getPixel) {
1876
1880
  var qrcode_default = qrcode;
1877
1881
  var stringToBytes = qrcode.stringToBytes;
1878
1882
 
1879
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/terminal/qr.js
1883
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/terminal/qr.js
1880
1884
  var QUIET_ZONE = 4;
1881
1885
  var BLACK_ON_WHITE = "\x1B[30;107m";
1882
1886
  var RESET = "\x1B[0m";
@@ -1923,7 +1927,7 @@ var plainQr = /* @__PURE__ */ __name((link) => {
1923
1927
  return lines.join("\n");
1924
1928
  }, "plainQr");
1925
1929
 
1926
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/terminal/login-qr.js
1930
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/terminal/login-qr.js
1927
1931
  var MARGIN = 2;
1928
1932
  var atTerminal = /* @__PURE__ */ __name((input) => input.isTTY === true && !inputPolicy(input).noInput, "atTerminal");
1929
1933
  var PASTE_QR = "agents: paste the QR code above into the chat as a code block, exactly as printed; when a new one is printed, paste it and say the old one expired";
@@ -1961,6 +1965,8 @@ ${indent(drawn.text, pad + MARGIN)}`);
1961
1965
  export {
1962
1966
  bareCheck,
1963
1967
  checkWords,
1968
+ CRM_KINDS,
1969
+ isItemKind,
1964
1970
  parseMarkdown,
1965
1971
  parseMarkdownSpans,
1966
1972
  countedPoll,
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/background/processes.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/background/processes.js
8
8
  import { execFileSync } from "node:child_process";
9
9
  import { readdirSync, readFileSync, readlinkSync } from "node:fs";
10
10
  var alive = /* @__PURE__ */ __name((pid) => {
@@ -1,13 +1,32 @@
1
1
  import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ array,
5
+ boolean,
6
+ integer,
7
+ isoTime,
8
+ isoTimestamp,
9
+ minLength,
10
+ minValue,
11
+ nullable,
12
+ number,
13
+ optional,
14
+ picklist,
15
+ pipe,
16
+ record,
17
+ reference,
18
+ strictObject,
19
+ string,
20
+ unknown
21
+ } from "./chunk-NRRI37NJ.js";
3
22
  import {
4
23
  CliError
5
- } from "./chunk-WZ5XK74U.js";
24
+ } from "./chunk-FEM2JQN2.js";
6
25
  import {
7
26
  __name
8
27
  } from "./chunk-ZVVMGPBJ.js";
9
28
 
10
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/tasks/model.js
29
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/tasks/model.js
11
30
  var TASK_KINDS = ["question", "request", "mention", "promise"];
12
31
  var TASK_STATES = ["open", "todo", "in_progress", "done", "dismissed"];
13
32
  var CLOSED_STATES = ["done", "dismissed"];
@@ -22,7 +41,7 @@ function closeTask(task, state, by, at, reason) {
22
41
  }
23
42
  __name(closeTask, "closeTask");
24
43
 
25
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/tasks/priority.js
44
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/tasks/priority.js
26
45
  var PRIORITY_LABELS = ["low", "medium", "high", "critical"];
27
46
  var MIDDLE = { low: 0.125, medium: 0.375, high: 0.625, critical: 0.875 };
28
47
  var LEGACY_PRIORITY_SCORES = [0.875, 0.625, 0.375, 0.1875, 0.0625];
@@ -51,12 +70,12 @@ var priorityOf = /* @__PURE__ */ __name((value) => {
51
70
  }, "priorityOf");
52
71
  var priorityOption = /* @__PURE__ */ __name((value) => priorityOf(value) ?? "none", "priorityOption");
53
72
 
54
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/tasks/service.js
73
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/tasks/service.js
55
74
  function createTaskService({ store, now = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "now"), newId = /* @__PURE__ */ __name(() => crypto.randomUUID(), "newId") }) {
56
- async function find(id) {
57
- const task = await store.get(id);
75
+ async function find(id2) {
76
+ const task = await store.get(id2);
58
77
  if (!task)
59
- throw new CliError("not_found", `no task ${id}`);
78
+ throw new CliError("not_found", `no task ${id2}`);
60
79
  return task;
61
80
  }
62
81
  __name(find, "find");
@@ -78,8 +97,8 @@ function createTaskService({ store, now = /* @__PURE__ */ __name(() => /* @__PUR
78
97
  return { task, created: true };
79
98
  return { task, created: true, review: await store.reviewDuplicates(task.id) };
80
99
  },
81
- async close(id, { as, by, reason }) {
82
- const task = closeTask(await find(id), as, by, now(), reason);
100
+ async close(id2, { as, by, reason }) {
101
+ const task = closeTask(await find(id2), as, by, now(), reason);
83
102
  await store.update(task);
84
103
  return task;
85
104
  },
@@ -111,13 +130,13 @@ function median(values) {
111
130
  }
112
131
  __name(median, "median");
113
132
 
114
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/tasks/store.js
133
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/tasks/store.js
115
134
  function matches(task, filter) {
116
135
  return (filter.account === void 0 || task.account === filter.account) && (filter.state === void 0 || task.state === filter.state) && (filter.group === void 0 || task.group === filter.group) && (filter.kind === void 0 || task.kind === filter.kind) && (filter.createdBefore === void 0 || task.createdAt < filter.createdBefore);
117
136
  }
118
137
  __name(matches, "matches");
119
138
 
120
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/domain/knowledge.js
139
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/domain/knowledge.js
121
140
  var FACT_STATUSES = ["proposed", "accepted", "superseded", "reversed", "rejected"];
122
141
  var MEMORY_KINDS = ["summary", "digest", "preference"];
123
142
  var MEMORY_STATUSES = ["proposed", "confirmed", "stale", "superseded"];
@@ -125,7 +144,61 @@ var MEMORY_SCOPES = ["personal", "work"];
125
144
  var WORK_TASK_TYPES = ["bug", "feature", "chore"];
126
145
  var TASK_TYPES = [...WORK_TASK_TYPES, ...TASK_KINDS];
127
146
 
128
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/store/sqlite/link-kinds.js
147
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/fields.js
148
+ var text = string();
149
+ var id = pipe(string(), minLength(1));
150
+ var time = isoTime;
151
+ var zonedTime = pipe(string(), isoTimestamp("an ISO 8601 time with a zone"));
152
+ var count = pipe(number(), integer(), minValue(0));
153
+ var untrusted = optional(array(text));
154
+ var providerMetadata = optional(record(string(), unknown()));
155
+ var evidenceSource = strictObject({
156
+ ref: nullable(reference),
157
+ kind: text,
158
+ title: nullable(text),
159
+ sender: nullable(text),
160
+ at: nullable(time),
161
+ excerpt: nullable(text),
162
+ tool: nullable(text),
163
+ missing: boolean()
164
+ });
165
+ var author = strictObject({
166
+ type: picklist(["person", "bot"]),
167
+ id,
168
+ name: nullable(text)
169
+ });
170
+
171
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/knowledge-lists.js
172
+ var organization = strictObject({
173
+ id,
174
+ ref: reference,
175
+ kind: picklist(["company", "team", "family", "community"]),
176
+ name: text,
177
+ scope: picklist(["personal", "work"]),
178
+ created_at: time
179
+ });
180
+ var project = strictObject({
181
+ id,
182
+ ref: reference,
183
+ key: text,
184
+ name: text,
185
+ kind: picklist(["project", "inbox"]),
186
+ type: picklist(["work", "client", "personal", "oss", "other"]),
187
+ organization_id: nullable(id),
188
+ scope: picklist(["personal", "work"]),
189
+ created_at: time
190
+ });
191
+ var reminder = strictObject({
192
+ id,
193
+ task: text,
194
+ due_at: time,
195
+ timezone: text,
196
+ state: picklist(["pending", "leased", "delivered", "cancelled"]),
197
+ revision: number(),
198
+ receipt: nullable(text)
199
+ });
200
+
201
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/link-kinds.js
129
202
  var LINK_KINDS = [
130
203
  "links-to",
131
204
  "blocked-by",
@@ -172,5 +245,17 @@ export {
172
245
  MEMORY_STATUSES,
173
246
  MEMORY_SCOPES,
174
247
  WORK_TASK_TYPES,
175
- TASK_TYPES
248
+ TASK_TYPES,
249
+ text,
250
+ id,
251
+ time,
252
+ zonedTime,
253
+ count,
254
+ untrusted,
255
+ providerMetadata,
256
+ evidenceSource,
257
+ author,
258
+ organization,
259
+ project,
260
+ reminder
176
261
  };
@@ -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-SOZVC3SV.js";
5
+ } from "./chunk-DVA6MQWK.js";
6
6
  import {
7
7
  resolvePaths,
8
8
  writeSecurely
9
- } from "./chunk-T6CZWSHF.js";
9
+ } from "./chunk-KNE6VFHZ.js";
10
10
  import {
11
11
  __name
12
12
  } from "./chunk-ZVVMGPBJ.js";
13
13
 
14
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/background/lock.js
14
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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");