@wirecat/zoom-cli 0.74.0 → 0.76.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 (166) hide show
  1. package/contracts/wirecat.json +5 -4
  2. package/dist/bin/zm.js +2 -2
  3. package/dist/bundle/{all-profiles-SDOAABLC.js → all-profiles-AAMFP7IN.js} +22 -32
  4. package/dist/bundle/answer-policy-ETAELI4A.js +110 -0
  5. package/dist/bundle/{anthropic-HCVY2PIN.js → anthropic-6KIS53QB.js} +6 -6
  6. package/dist/bundle/{app-server-V64VS6KN.js → app-server-6QYNNYEU.js} +59 -74
  7. package/dist/bundle/{bun-EBQHHLKR.js → bun-QVVCH4MJ.js} +2 -2
  8. package/dist/bundle/{bun-sqlite-PVMXO2JB.js → bun-sqlite-Y2ZFMNQ3.js} +7 -7
  9. package/dist/bundle/{chunk-3ROL6MBJ.js → chunk-25GMFXPF.js} +949 -772
  10. package/dist/bundle/{chunk-APLV37JA.js → chunk-2HKUQ7DR.js} +3 -3
  11. package/dist/bundle/{chunk-M4OP5ASJ.js → chunk-35AH33VJ.js} +1 -1
  12. package/dist/bundle/{chunk-4RJL32PF.js → chunk-3D5PETD2.js} +26 -9
  13. package/dist/bundle/{chunk-QLKCKTM4.js → chunk-4ERYXY4Y.js} +1 -1
  14. package/dist/bundle/{chunk-XFT3YIHU.js → chunk-4JPOELCT.js} +4 -4
  15. package/dist/bundle/{chunk-TN2YUZBF.js → chunk-55SWKR6Y.js} +189 -160
  16. package/dist/bundle/{chunk-2PYZTRRC.js → chunk-5EII5RIL.js} +1 -1
  17. package/dist/bundle/{chunk-OPUGV7VW.js → chunk-5T7TBK5Y.js} +1 -1
  18. package/dist/bundle/{chunk-6EMOZGSN.js → chunk-64N7MY3I.js} +3 -3
  19. package/dist/bundle/{chunk-DXZN3DU6.js → chunk-65VRWNDP.js} +4 -4
  20. package/dist/bundle/{chunk-4EZKR6Q4.js → chunk-6SXCGS3A.js} +7 -7
  21. package/dist/bundle/{chunk-FL2TKSZY.js → chunk-6VCQ4CTK.js} +1 -1
  22. package/dist/bundle/{chunk-Y4KWWPIO.js → chunk-7RORMNKP.js} +2 -2
  23. package/dist/bundle/{chunk-N7KCNMKL.js → chunk-B7ZREOBD.js} +12 -12
  24. package/dist/bundle/{chunk-QSWR7VDA.js → chunk-CE5Y7PQU.js} +4 -4
  25. package/dist/bundle/{chunk-LHPYSVGP.js → chunk-CPOFLYPU.js} +33 -29
  26. package/dist/bundle/{chunk-HNWDEDMU.js → chunk-CS62FET6.js} +21 -21
  27. package/dist/bundle/{chunk-WYV5IITK.js → chunk-CXHUOPN5.js} +7 -7
  28. package/dist/bundle/{chunk-IZUOL4Q6.js → chunk-D2TGXSHQ.js} +5 -5
  29. package/dist/bundle/{chunk-ZYMTS3CI.js → chunk-DQHS336B.js} +6 -6
  30. package/dist/bundle/{chunk-WRRGO246.js → chunk-EBIK5Q73.js} +1 -1
  31. package/dist/bundle/{chunk-NKBMLSWK.js → chunk-ELW3LMJZ.js} +1281 -435
  32. package/dist/bundle/{chunk-HCZYJMBP.js → chunk-EPPE6ZTS.js} +1 -1
  33. package/dist/bundle/{chunk-TKPIDOW5.js → chunk-EZJSAYWZ.js} +21 -21
  34. package/dist/bundle/{chunk-2PNG76LV.js → chunk-EZXW3ZCR.js} +35 -13
  35. package/dist/bundle/{chunk-UW3BB2XW.js → chunk-FBVJGJDM.js} +29 -28
  36. package/dist/bundle/{chunk-ZMHZ6CQS.js → chunk-FGRFIXG2.js} +2 -2
  37. package/dist/bundle/{chunk-3HTJBGNP.js → chunk-FMJ4QSSU.js} +21 -16
  38. package/dist/bundle/{chunk-7W23N2YW.js → chunk-GB5LI5RM.js} +6 -6
  39. package/dist/bundle/{chunk-TLNZUPGU.js → chunk-GPIQY4YB.js} +14 -14
  40. package/dist/bundle/{chunk-OP6HK2QL.js → chunk-GYTAHH5Y.js} +2 -2
  41. package/dist/bundle/{chunk-LN2LWPN2.js → chunk-GZYICXO4.js} +1 -1
  42. package/dist/bundle/{chunk-R4J4DLJV.js → chunk-HUHH25AG.js} +833 -625
  43. package/dist/bundle/{chunk-X2FILY5F.js → chunk-HWYSJ4SL.js} +3 -3
  44. package/dist/bundle/{chunk-UXSTXFZQ.js → chunk-IUSY4ZJK.js} +6170 -6003
  45. package/dist/bundle/{chunk-UGLNVUFX.js → chunk-IVFNHIU4.js} +5 -5
  46. package/dist/bundle/{chunk-BKMC4ETU.js → chunk-IXPBSDKB.js} +4 -4
  47. package/dist/bundle/{chunk-XGEPAJBY.js → chunk-JADBHKBP.js} +1 -1
  48. package/dist/bundle/{chunk-KBRIMLVN.js → chunk-JWMOHEDL.js} +22 -12
  49. package/dist/bundle/{chunk-EA2OB75T.js → chunk-K3K3WKDB.js} +1 -1
  50. package/dist/bundle/{chunk-LQR4V5EY.js → chunk-KEFDP6NL.js} +12 -12
  51. package/dist/bundle/{chunk-5KDBLEUF.js → chunk-LEVOI6Z3.js} +12 -12
  52. package/dist/bundle/{chunk-QAGSAOYS.js → chunk-LGBLYFKI.js} +2 -2
  53. package/dist/bundle/{chunk-SKDQNYKA.js → chunk-LOEK6IFQ.js} +48 -39
  54. package/dist/bundle/{chunk-4ELLWJT4.js → chunk-M7WYBGQT.js} +8 -8
  55. package/dist/bundle/{chunk-DSRG5NRF.js → chunk-MDTEAKA5.js} +5 -5
  56. package/dist/bundle/{chunk-PKM2UKAZ.js → chunk-NQ356ERO.js} +15 -4
  57. package/dist/bundle/{chunk-FY2X6U6O.js → chunk-OFODCJ2A.js} +3 -3
  58. package/dist/bundle/{chunk-6GPBDVQ2.js → chunk-OINDAHXC.js} +4 -4
  59. package/dist/bundle/{chunk-NV2REPY6.js → chunk-OOYIPK4F.js} +1 -1
  60. package/dist/bundle/{chunk-5R6EBM5Z.js → chunk-ORM73DZO.js} +2 -2
  61. package/dist/bundle/{chunk-R35YGFKQ.js → chunk-OWZETMRE.js} +34 -9
  62. package/dist/bundle/{chunk-PMHMKZEJ.js → chunk-PFLJJQWW.js} +46 -54
  63. package/dist/bundle/{chunk-UVWNUY3W.js → chunk-QLUU3BV2.js} +2 -2
  64. package/dist/bundle/{chunk-3TYNBHBK.js → chunk-QY6GE7CL.js} +2 -2
  65. package/dist/bundle/{chunk-RQJ2RXFO.js → chunk-R47GYLNN.js} +37 -30
  66. package/dist/bundle/{chunk-LUBG5GKK.js → chunk-RJK5ADMH.js} +18 -19
  67. package/dist/bundle/{chunk-FIVFP53N.js → chunk-RXUVXAMM.js} +1 -1
  68. package/dist/bundle/{chunk-RRW54FK6.js → chunk-T2QVWRJF.js} +13 -13
  69. package/dist/bundle/{chunk-SPWKGRTO.js → chunk-TK77DCE5.js} +1 -1
  70. package/dist/bundle/{chunk-7R4UU65O.js → chunk-TYAFL66K.js} +43 -26
  71. package/dist/bundle/{chunk-HZUUVNWC.js → chunk-UAV74EY4.js} +1 -1
  72. package/dist/bundle/{chunk-BOGGQOVO.js → chunk-UG2QDGAH.js} +1 -1
  73. package/dist/bundle/{chunk-YNI57LTZ.js → chunk-UYZDH5LK.js} +1 -1
  74. package/dist/bundle/{chunk-YFLTHGB3.js → chunk-VABYJQYE.js} +10 -10
  75. package/dist/bundle/{chunk-IJCUAKR5.js → chunk-VCFSUGPE.js} +4 -4
  76. package/dist/bundle/{chunk-TMCXUWTY.js → chunk-VG63EXRC.js} +2 -2
  77. package/dist/bundle/{chunk-XCC7R47Z.js → chunk-VJANMYEC.js} +3 -3
  78. package/dist/bundle/{chunk-KCPRTZBZ.js → chunk-VRA4RVQU.js} +98 -6
  79. package/dist/bundle/{chunk-HGUYJUNO.js → chunk-WKT5RPSY.js} +8 -8
  80. package/dist/bundle/{chunk-GPGIU3OG.js → chunk-WNXC42IU.js} +9 -9
  81. package/dist/bundle/{chunk-FT7X74RT.js → chunk-WZJ7ZYR4.js} +4 -4
  82. package/dist/bundle/{chunk-I2D4ZZOD.js → chunk-X73YEFQE.js} +21 -18
  83. package/dist/bundle/{chunk-7NE3LB7A.js → chunk-XC4V6YCS.js} +1 -1
  84. package/dist/bundle/{chunk-LZ4AVHBS.js → chunk-XHVFX74L.js} +2 -2
  85. package/dist/bundle/{chunk-AFUHT7F7.js → chunk-XRH2NKW4.js} +6 -6
  86. package/dist/bundle/{chunk-P53CLAXD.js → chunk-XWQKRKMT.js} +63 -60
  87. package/dist/bundle/{chunk-RJJ4OYNH.js → chunk-Y2BGABXP.js} +3 -3
  88. package/dist/bundle/{chunk-KYL5FYOW.js → chunk-Y4WEAWU7.js} +1 -1
  89. package/dist/bundle/{chunk-F6PUM6ZK.js → chunk-YEBWRWE3.js} +17 -17
  90. package/dist/bundle/{chunk-SY4MIIWF.js → chunk-YESHGC3M.js} +2 -2
  91. package/dist/bundle/{chunk-IS6FUZCP.js → chunk-YGKM2ZWF.js} +3 -3
  92. package/dist/bundle/{chunk-YM6ZATEK.js → chunk-ZETM63M6.js} +6 -6
  93. package/dist/bundle/{chunk-MAE5UGRQ.js → chunk-ZFYNJERV.js} +6 -6
  94. package/dist/bundle/{cli-5ALOQCAC.js → cli-FHMLYHUZ.js} +78 -66
  95. package/dist/bundle/command-contract-HUZ4I23S.js +41 -0
  96. package/dist/bundle/{command-server-entry-ICOMIJIH.js → command-server-entry-YEZM52R5.js} +31 -31
  97. package/dist/bundle/config-KVTWN7QZ.js +97 -0
  98. package/dist/bundle/{decode-7LFOROWF.js → decode-SIYRMJOK.js} +6 -6
  99. package/dist/bundle/{dispatch-EU67WGME.js → dispatch-SMER3WDX.js} +9 -9
  100. package/dist/bundle/{dist-KJOOYNCP.js → dist-BSJETSFE.js} +24 -20
  101. package/dist/bundle/{echarts-EJXBKCJT.js → echarts-UZJ6AREV.js} +2 -2
  102. package/dist/bundle/{embed-TOZCKRRO.js → embed-A7DSHVI7.js} +7 -7
  103. package/dist/bundle/{embedder-QKEKUCS5.js → embedder-WQBR4UGS.js} +10 -10
  104. package/dist/bundle/{failure-CTJLEB2R.js → failure-73UQXQTW.js} +3 -3
  105. package/dist/bundle/first-run-SY6XSUZ3.js +29 -0
  106. package/dist/bundle/first-screen-ZDMODGWS.js +39 -0
  107. package/dist/bundle/{folders-MSBTAPAG.js → folders-BH4SV6SI.js} +5 -5
  108. package/dist/bundle/{instructions-Z7GVGWXS.js → instructions-SDDUBGH4.js} +1 -1
  109. package/dist/bundle/{main-RL3GC4OX.js → main-KL4FN5F3.js} +24 -24
  110. package/dist/bundle/{mcp-TDKGDB4V.js → mcp-GN4FTJX5.js} +2 -2
  111. package/dist/bundle/{meetings-JCMLE5AO.js → meetings-URPXBHV7.js} +41 -7
  112. package/dist/bundle/{node-L2PVEW3N.js → node-ELCNUOCE.js} +2 -2
  113. package/dist/bundle/{node-sqlite-4YW3W4XI.js → node-sqlite-QLSNHZBM.js} +8 -8
  114. package/dist/bundle/{oauth-NNHWAT6A.js → oauth-LZ64S7Y3.js} +8 -8
  115. package/dist/bundle/{open-PF2JHJIY.js → open-WB4HUPQT.js} +6 -6
  116. package/dist/bundle/openai-KN6JE4QU.js +28 -0
  117. package/dist/bundle/{output-file-VDOCYH2G.js → output-file-AHPQA5LR.js} +6 -6
  118. package/dist/bundle/{process-MNZTQ2DA.js → process-67DAKAAQ.js} +1 -1
  119. package/dist/bundle/{program-FOCBZZZS.js → program-CIMACIBE.js} +90 -83
  120. package/dist/bundle/{prompt-RBSUKMV7.js → prompt-GG53UBDJ.js} +6 -6
  121. package/dist/bundle/{recognize-RM6TQKK3.js → recognize-CFJ3CAEH.js} +5 -5
  122. package/dist/bundle/{remote-UKHTU3YR.js → remote-BLEM7C3Q.js} +11 -11
  123. package/dist/bundle/{rerank-3LBRVESU.js → rerank-ERN6PC66.js} +8 -8
  124. package/dist/bundle/run-log-S67YPJF6.js +124 -0
  125. package/dist/bundle/{serve-OOZFTW3W.js → serve-FJPPTJXH.js} +10 -10
  126. package/dist/bundle/{server-YNQPNIJD.js → server-FLUSDUGM.js} +57 -55
  127. package/dist/bundle/server-UNJY3TSJ.js +74 -0
  128. package/dist/bundle/{services-SLEOMN4B.js → services-LXC6DVUQ.js} +43 -41
  129. package/dist/bundle/{speech-FZZ6QVGU.js → speech-WFEZTKXA.js} +17 -17
  130. package/dist/bundle/{sqlite-runtime-WUR4PWYB.js → sqlite-runtime-KN33VSP7.js} +7 -7
  131. package/dist/bundle/{state-ET36L4TY.js → state-TXS4ZHIT.js} +7 -7
  132. package/dist/bundle/{store-SQB2DOVJ.js → store-MUOXLVL4.js} +22 -22
  133. package/dist/bundle/{store-DI6OUBXA.js → store-ZUREZYZB.js} +20 -20
  134. package/dist/bundle/store-connection-NRNEBUPU.js +90 -0
  135. package/dist/bundle/store-maintenance-command-OBOPYFZ5.js +65 -0
  136. package/dist/bundle/{streaming-PQEXKTE5.js → streaming-ZSCHRC5S.js} +7 -7
  137. package/dist/bundle/{tokens-SUHRRQ25.js → tokens-YVDOY4EV.js} +10 -10
  138. package/dist/bundle/zm.js +9 -9
  139. package/dist/bundle/{zoom-app-GE4SSHOP.js → zoom-app-O6GIMB7Y.js} +8 -8
  140. package/dist/meeting-search-commands.d.ts.map +1 -1
  141. package/dist/meeting-search-commands.js +6 -5
  142. package/dist/meeting-search-commands.js.map +1 -1
  143. package/dist/program-bindings.d.ts.map +1 -1
  144. package/dist/program-bindings.js +2 -1
  145. package/dist/program-bindings.js.map +1 -1
  146. package/dist/recording-schedule-commands.d.ts.map +1 -1
  147. package/dist/recording-schedule-commands.js +2 -2
  148. package/dist/recording-schedule-commands.js.map +1 -1
  149. package/dist/run.d.ts.map +1 -1
  150. package/dist/run.js +3 -1
  151. package/dist/run.js.map +1 -1
  152. package/dist/version.d.ts +1 -1
  153. package/dist/version.js +1 -1
  154. package/package.json +3 -3
  155. package/dist/bundle/answer-policy-RHS74QYY.js +0 -110
  156. package/dist/bundle/chunk-IJONJTST.js +0 -76
  157. package/dist/bundle/command-contract-WO5QJVLZ.js +0 -41
  158. package/dist/bundle/config-YQA5TJ7Y.js +0 -97
  159. package/dist/bundle/first-run-S7CQVGK6.js +0 -29
  160. package/dist/bundle/first-screen-6GW6FD6S.js +0 -39
  161. package/dist/bundle/openai-C72ADYMD.js +0 -28
  162. package/dist/bundle/run-log-UXINNGKA.js +0 -124
  163. package/dist/bundle/server-DM5ZPFZB.js +0 -75
  164. package/dist/bundle/store-connection-M6LVRAZ5.js +0 -90
  165. package/dist/bundle/store-maintenance-command-B66KWG6K.js +0 -65
  166. /package/dist/bundle/{chunk-XWBPP2HX.js → chunk-BDCC2J2Z.js} +0 -0
@@ -3,18 +3,18 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  formatMeetingReference,
5
5
  parseMeetingReference
6
- } from "./chunk-NKBMLSWK.js";
6
+ } from "./chunk-ELW3LMJZ.js";
7
7
  import {
8
8
  CliError
9
- } from "./chunk-EA2OB75T.js";
9
+ } from "./chunk-K3K3WKDB.js";
10
10
  import {
11
11
  singleLine
12
- } from "./chunk-HCZYJMBP.js";
12
+ } from "./chunk-EPPE6ZTS.js";
13
13
  import {
14
14
  __name
15
15
  } from "./chunk-ZVVMGPBJ.js";
16
16
 
17
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/domain/money.js
17
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/domain/money.js
18
18
  var CURRENCY_SCALES = {
19
19
  AED: 2,
20
20
  AMD: 2,
@@ -108,7 +108,7 @@ var quantityOf = /* @__PURE__ */ __name((text) => {
108
108
  }, "quantityOf");
109
109
  var lineUnits = /* @__PURE__ */ __name((thousandths, unitPrice) => Number((thousandths * BigInt(unitPrice) + 500n) / 1000n), "lineUnits");
110
110
 
111
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/domain/deals.js
111
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/domain/deals.js
112
112
  var DEAL_KINDS = ["deal", "lead"];
113
113
  var DEAL_STATUSES = ["open", "won", "lost"];
114
114
  var STAGE_OUTCOMES = DEAL_STATUSES;
@@ -118,7 +118,7 @@ var dealLine = /* @__PURE__ */ __name((deal) => {
118
118
  return `${deal.title} \xB7 ${deal.stage}${money}${deal.status === "open" ? "" : ` (${deal.status})`}`;
119
119
  }, "dealLine");
120
120
 
121
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/domain/finance.js
121
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/domain/finance.js
122
122
  var INVOICE_DIRECTIONS = ["receivable", "payable"];
123
123
  var INVOICE_STATUSES = ["draft", "issued", "partly_paid", "paid", "void"];
124
124
  var MONEY_DIRECTIONS = ["in", "out"];
@@ -147,7 +147,7 @@ var paymentLine = /* @__PURE__ */ __name((payment) => {
147
147
  var invoiceTitle = /* @__PURE__ */ __name((invoice) => `Invoice ${invoiceLine(invoice)}`, "invoiceTitle");
148
148
  var paymentEntryTitle = /* @__PURE__ */ __name((payment) => `Payment \xB7 ${paymentLine(payment)}`, "paymentEntryTitle");
149
149
 
150
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/domain/orders.js
150
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/domain/orders.js
151
151
  var ORDER_STATUSES = ["placed", "shipped", "delivered", "cancelled", "returned"];
152
152
  var ORDER_PURPOSES = ["personal", "business", "client", "other"];
153
153
  var orderLine = /* @__PURE__ */ __name((order) => {
@@ -158,7 +158,7 @@ var orderLine = /* @__PURE__ */ __name((order) => {
158
158
  }, "orderLine");
159
159
  var orderTitle = /* @__PURE__ */ __name((order) => `Order ${orderLine(order)}`, "orderTitle");
160
160
 
161
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/domain/relations.js
161
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/domain/relations.js
162
162
  var ORGANIZATION_ROLES = [
163
163
  "employee",
164
164
  "contractor",
@@ -265,7 +265,7 @@ var KEYED = "kind IN ('member-of', 'related-to', 'reports-to', 'customer-of', 'p
265
265
  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");
266
266
  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");
267
267
 
268
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/domain/crm.js
268
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/domain/crm.js
269
269
  var CRM_KINDS = ["organization", "person", "deal", "lead"];
270
270
  var CRM_ACTIVITY_KINDS = ["call", "email", "meeting", "todo", "task", "comment", "other"];
271
271
  var isCrmUserId = /* @__PURE__ */ __name((id) => /^\d{1,20}$/.test(id), "isCrmUserId");
@@ -275,7 +275,7 @@ var normalCrmUserId = /* @__PURE__ */ __name((id) => {
275
275
  }, "normalCrmUserId");
276
276
  var isItemKind = /* @__PURE__ */ __name((kind2) => kind2 === "deal" || kind2 === "lead", "isItemKind");
277
277
 
278
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/domain/business.js
278
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/domain/business.js
279
279
  var CATALOG_KINDS = ["product", "service"];
280
280
  var BUSINESS_KINDS = ["invoice", "payment", "order", "contract", "subscription", "product", "wallet"];
281
281
  var CONTRACT_KINDS = ["sale", "purchase", "service", "lease", "employment", "nda", "license", "other"];
@@ -304,7 +304,7 @@ var subscriptionLine = /* @__PURE__ */ __name((subscription) => `${subscription.
304
304
  var walletLine = /* @__PURE__ */ __name((wallet) => `${wallet.name} \xB7 ${wallet.kind}, ${wallet.currency}${wallet.numberHint === null ? "" : `, \u2026${wallet.numberHint}`}` + notes(wallet.closed ? "closed" : null), "walletLine");
305
305
  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");
306
306
 
307
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/domain/tags.js
307
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/domain/tags.js
308
308
  var TAG_TYPES = ["chat", "contact", "message", "task"];
309
309
  var TAG = /^[a-z0-9-]{1,32}$/;
310
310
  var tagOf = /* @__PURE__ */ __name((value) => {
@@ -318,21 +318,28 @@ var normalizeTag = /* @__PURE__ */ __name((value) => {
318
318
  return tag;
319
319
  }, "normalizeTag");
320
320
 
321
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/domain/locator.js
321
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/domain/locator.js
322
322
  var SCHEME = "msg:";
323
323
  var formatLocator = /* @__PURE__ */ __name(({ provider, account, chat, message }) => SCHEME + [provider, account, chat, message].map(encodeURIComponent).join("/"), "formatLocator");
324
324
  var isLocator = /* @__PURE__ */ __name((reference) => reference.trim().startsWith(SCHEME), "isLocator");
325
325
  var parseLocator = /* @__PURE__ */ __name((reference) => {
326
326
  const trimmed = reference.trim();
327
327
  const parts2 = trimmed.startsWith(SCHEME) ? trimmed.slice(SCHEME.length).split("/") : [];
328
- if (parts2.length !== 4 || parts2.some((part) => part === "")) {
329
- throw new CliError("validation_error", `"${singleLine(reference)}" is not a message locator \u2014 expected msg:<provider>/<account>/<chat>/<message>`);
330
- }
331
- const [provider, account, chat, message] = parts2.map(decodeURIComponent);
328
+ const malformed2 = /* @__PURE__ */ __name(() => new CliError("validation_error", `"${singleLine(reference)}" is not a message locator \u2014 expected msg:<provider>/<account>/<chat>/<message>`), "malformed");
329
+ if (parts2.length !== 4 || parts2.some((part) => part === ""))
330
+ throw malformed2();
331
+ const decoded2 = /* @__PURE__ */ __name((part) => {
332
+ try {
333
+ return decodeURIComponent(part);
334
+ } catch {
335
+ throw malformed2();
336
+ }
337
+ }, "decoded");
338
+ const [provider, account, chat, message] = parts2.map(decoded2);
332
339
  return { provider, account, chat, message };
333
340
  }, "parseLocator");
334
341
 
335
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/domain/references.js
342
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/domain/references.js
336
343
  var SIMPLE_REFERENCES = [
337
344
  "note",
338
345
  "document",
@@ -360,11 +367,18 @@ var SIMPLE_REFERENCES = [
360
367
  var malformed = /* @__PURE__ */ __name((text, shape) => new CliError("validation_error", `"${singleLine(text)}" is not a reference \u2014 expected ${shape}`, {
361
368
  reason: "ref.malformed"
362
369
  }), "malformed");
370
+ var decoded = /* @__PURE__ */ __name((part, text, shape) => {
371
+ try {
372
+ return decodeURIComponent(part);
373
+ } catch {
374
+ throw malformed(text, shape);
375
+ }
376
+ }, "decoded");
363
377
  var parts = /* @__PURE__ */ __name((rest, count, text, shape) => {
364
378
  const split = rest.split("/");
365
379
  if (split.length !== count || split.some((part) => part === ""))
366
380
  throw malformed(text, shape);
367
- return split.map(decodeURIComponent);
381
+ return split.map((part) => decoded(part, text, shape));
368
382
  }, "parts");
369
383
  var encoded = /* @__PURE__ */ __name((...values) => values.map(encodeURIComponent).join("/"), "encoded");
370
384
  var folderPath = /* @__PURE__ */ __name((path) => {
@@ -426,8 +440,8 @@ var REF_KINDS = [
426
440
  shape: "folder:<id>[/<path>]",
427
441
  parse: /* @__PURE__ */ __name((rest, text) => {
428
442
  const slash = rest.indexOf("/");
429
- const id = decodeURIComponent(slash < 0 ? rest : rest.slice(0, slash));
430
- const path = slash < 0 ? null : folderPath(decodeURIComponent(rest.slice(slash + 1)));
443
+ const id = decoded(slash < 0 ? rest : rest.slice(0, slash), text, "folder:<id>[/<path>]");
444
+ const path = slash < 0 ? null : folderPath(decoded(rest.slice(slash + 1), text, "folder:<id>[/<path>]"));
431
445
  if (!id.trim() || path === "")
432
446
  throw malformed(text, "folder:<id>[/<path>]");
433
447
  return { type: "folder", id, path };
@@ -488,7 +502,7 @@ var looksLikeReference = /* @__PURE__ */ __name((text) => {
488
502
  return match !== null && byPrefix.has(match[1]);
489
503
  }, "looksLikeReference");
490
504
 
491
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/domain/providers.js
505
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/domain/providers.js
492
506
  var KINDS = ["messages", "mail", "notes", "documents", "meetings", "events", "crm"];
493
507
  var MESSENGER_OPENS = { chat: "messages list", message: "messages show", contact: "contacts show" };
494
508
  var CRM_OPENS = { deal: "deals show", lead: "leads show", pipeline: "pipelines show" };
@@ -505,7 +519,8 @@ var PROVIDERS = [
505
519
  { name: "obsidian", kind: "notes", aliases: [] },
506
520
  { name: "added", kind: "notes", aliases: [] },
507
521
  { name: "zoom", kind: "meetings", aliases: [] },
508
- { name: "google-meet", kind: "meetings", aliases: [], command: "meet" },
522
+ { name: "google-meet", kind: "meetings", aliases: [], command: "gmeet" },
523
+ { name: "google-drive", kind: "documents", aliases: [] },
509
524
  // Its meetings come from the notes Telemost mails (`keeper@telemost.yandex.ru`), read by a mail rule.
510
525
  { name: "telemost", kind: "meetings", aliases: [] },
511
526
  // A phone export's records: its SMS and its calls in the one account the import names.
@@ -531,12 +546,13 @@ var FOLDER_PROVIDERS = ["local", "obsidian", "folder"];
531
546
  var isFolderProvider = /* @__PURE__ */ __name((provider) => FOLDER_PROVIDERS.includes(provider), "isFolderProvider");
532
547
  var folderProviderSql = /* @__PURE__ */ __name((column = "provider") => `${column} IN (${FOLDER_PROVIDERS.map((name) => `'${name}'`).join(", ")})`, "folderProviderSql");
533
548
  var folderProviderOf = /* @__PURE__ */ __name((format) => format === "markdown" ? "local" : "obsidian", "folderProviderOf");
534
- var DOCUMENT_ACCOUNT_PROVIDERS = ["google-drive"];
535
- var isDocumentAccountProvider = /* @__PURE__ */ __name((provider) => DOCUMENT_ACCOUNT_PROVIDERS.includes(provider), "isDocumentAccountProvider");
549
+ var documentAccountProviders = /* @__PURE__ */ __name(() => registry.filter((entry) => entry.kind === "documents" && entry.imported !== true).map(({ name }) => name), "documentAccountProviders");
550
+ var isDocumentAccountProvider = /* @__PURE__ */ __name((provider) => typeof provider === "string" && documentAccountProviders().includes(provider), "isDocumentAccountProvider");
551
+ var documentAccountProvidersSql = /* @__PURE__ */ __name(() => documentAccountProviders().map((name) => `'${name}'`).join(", ") || "NULL", "documentAccountProvidersSql");
536
552
  var ADDED_PROVIDER = "added";
537
553
  var ADDED_ACCOUNT = "owner";
538
554
  var notAdded = `d.account_id NOT IN (SELECT id FROM accounts WHERE provider = '${ADDED_PROVIDER}')`;
539
- var filesAccountSql = /* @__PURE__ */ __name((column = "provider") => `${column} IN (${[...FOLDER_PROVIDERS, ...DOCUMENT_ACCOUNT_PROVIDERS, ADDED_PROVIDER].map((name) => `'${name}'`).join(", ")})`, "filesAccountSql");
555
+ var filesAccountSql = /* @__PURE__ */ __name((column = "provider") => `${column} IN (${[...FOLDER_PROVIDERS, ...documentAccountProviders(), ADDED_PROVIDER].map((name) => `'${name}'`).join(", ")})`, "filesAccountSql");
540
556
  var INTERNAL_NOTES = "internal";
541
557
  var UNKNOWN_PROVIDER = "unknown provider \u2014 run its CLI once";
542
558
  var WORD = /^[a-z0-9][a-z0-9_-]*$/;
@@ -761,8 +777,9 @@ export {
761
777
  isFolderProvider,
762
778
  folderProviderSql,
763
779
  folderProviderOf,
764
- DOCUMENT_ACCOUNT_PROVIDERS,
780
+ documentAccountProviders,
765
781
  isDocumentAccountProvider,
782
+ documentAccountProvidersSql,
766
783
  ADDED_PROVIDER,
767
784
  ADDED_ACCOUNT,
768
785
  notAdded,
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/cli/stdin-field.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/cli/stdin-field.js
8
8
  var fields = /* @__PURE__ */ new WeakMap();
9
9
  var readsStdin = /* @__PURE__ */ __name((command, field) => {
10
10
  fields.set(command, field);
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/background/processes.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/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) => {
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/http/listen.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/http/listen.js
8
8
  import { createServer } from "node:http";
9
9
  import { Readable } from "node:stream";
10
10
  var MAX_BODY = 4 * 1024 * 1024;
@@ -2,40 +2,40 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  encodeWav
5
- } from "./chunk-XCC7R47Z.js";
5
+ } from "./chunk-VJANMYEC.js";
6
6
  import {
7
7
  SAMPLE_RATE,
8
8
  toModelRate
9
- } from "./chunk-QSWR7VDA.js";
9
+ } from "./chunk-CE5Y7PQU.js";
10
10
  import {
11
11
  OPENAI_URL,
12
12
  refuseModelAddress
13
- } from "./chunk-GPGIU3OG.js";
13
+ } from "./chunk-WNXC42IU.js";
14
14
  import {
15
15
  endpointFetch
16
- } from "./chunk-IS6FUZCP.js";
16
+ } from "./chunk-YGKM2ZWF.js";
17
17
  import {
18
18
  providerWaitMs
19
- } from "./chunk-MAE5UGRQ.js";
19
+ } from "./chunk-ZFYNJERV.js";
20
20
  import {
21
21
  OPENAI_TRANSCRIBE_MODEL,
22
22
  VAD,
23
23
  filesPresent,
24
24
  modelsDirectory,
25
25
  vadPath
26
- } from "./chunk-6GPBDVQ2.js";
26
+ } from "./chunk-OINDAHXC.js";
27
27
  import {
28
28
  DEFAULT_RETRY,
29
29
  backoffMs
30
- } from "./chunk-HNWDEDMU.js";
30
+ } from "./chunk-CS62FET6.js";
31
31
  import {
32
32
  CliError
33
- } from "./chunk-EA2OB75T.js";
33
+ } from "./chunk-K3K3WKDB.js";
34
34
  import {
35
35
  __name
36
36
  } from "./chunk-ZVVMGPBJ.js";
37
37
 
38
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/speech/openai.js
38
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/speech/openai.js
39
39
  import { setTimeout as wait } from "node:timers/promises";
40
40
  var LONGEST_REQUEST_SECONDS = 600;
41
41
  var JOINED_SECONDS = 0.2;
@@ -159,7 +159,7 @@ var piecesOf = /* @__PURE__ */ __name((spans, limit) => {
159
159
  return pieces;
160
160
  }, "piecesOf");
161
161
  var openCutter = /* @__PURE__ */ __name(async (vadModel) => {
162
- const { openSpeechCutter } = await import("./recognize-RM6TQKK3.js");
162
+ const { openSpeechCutter } = await import("./recognize-CFJ3CAEH.js");
163
163
  return openSpeechCutter(vadModel);
164
164
  }, "openCutter");
165
165
  var checkKeywords = /* @__PURE__ */ __name((keywords = []) => {
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  singleLine
5
- } from "./chunk-HCZYJMBP.js";
5
+ } from "./chunk-EPPE6ZTS.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/names.js
10
+ // node_modules/.pnpm/@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/names.js
11
11
  var FIRST_PARTY_TOOLS = [
12
12
  { name: "tg", package: "@wirecat/tg-cli" },
13
13
  { name: "max", package: "@wirecat/max-cli" },
@@ -31,7 +31,7 @@ var DESCRIBE_FLAG = "--wcat-describe";
31
31
  var DESCRIBE_MAX_BYTES = 64 * 1024;
32
32
  var DISPATCH_FLAG = "--wcat-dispatch";
33
33
 
34
- // node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/describe.js
34
+ // node_modules/.pnpm/@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/describe.js
35
35
  var DESCRIBE_FORMAT = 1;
36
36
  var DESCRIBE_MANIFEST_FORMAT = 2;
37
37
  var describeAnswer = /* @__PURE__ */ __name((tool, manifest) => {
@@ -74,7 +74,7 @@ var parseDescribe = /* @__PURE__ */ __name((text) => {
74
74
  };
75
75
  }, "parseDescribe");
76
76
 
77
- // node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/shim.js
77
+ // node_modules/.pnpm/@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/shim.js
78
78
  import { lstatSync, readFileSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
79
79
  import { join } from "node:path";
80
80
  var SHIM_FORMAT = 2;
@@ -3,12 +3,12 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  CliError,
5
5
  errorCodes
6
- } from "./chunk-EA2OB75T.js";
6
+ } from "./chunk-K3K3WKDB.js";
7
7
  import {
8
8
  __name
9
9
  } from "./chunk-ZVVMGPBJ.js";
10
10
 
11
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/errors/failures.js
11
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/errors/failures.js
12
12
  var isCliFailure = /* @__PURE__ */ __name((value) => value instanceof Error && value.name === "CliError" && errorCodes.includes(value.code), "isCliFailure");
13
13
  var isCommanderFailure = /* @__PURE__ */ __name((value) => {
14
14
  const { code, exitCode } = value ?? {};
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  openOrdinaryFile
5
- } from "./chunk-TLNZUPGU.js";
5
+ } from "./chunk-GPIQY4YB.js";
6
6
  import {
7
7
  CliError
8
- } from "./chunk-EA2OB75T.js";
8
+ } from "./chunk-K3K3WKDB.js";
9
9
  import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/speech/wav.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/speech/wav.js
14
14
  import { createHash } from "node:crypto";
15
15
  import { basename, resolve } from "node:path";
16
16
  var prepared = /* @__PURE__ */ new WeakMap();
@@ -18,7 +18,7 @@ import {
18
18
  isJSONRPCRequest,
19
19
  isJSONRPCResultResponse,
20
20
  modernOnlyStrictRejection,
21
- process,
21
+ process as process2,
22
22
  requestMetaOf,
23
23
  serializeMessage,
24
24
  serverIdentityOf,
@@ -29,7 +29,7 @@ import {
29
29
  agentOf,
30
30
  clientHash,
31
31
  currentCaller
32
- } from "./chunk-WYV5IITK.js";
32
+ } from "./chunk-CXHUOPN5.js";
33
33
  import {
34
34
  __name
35
35
  } from "./chunk-ZVVMGPBJ.js";
@@ -43,7 +43,7 @@ var StdioServerTransport = class {
43
43
  _readBuffer;
44
44
  _started = false;
45
45
  _closed = false;
46
- constructor(_stdin = process.stdin, _stdout = process.stdout, options) {
46
+ constructor(_stdin = process2.stdin, _stdout = process2.stdout, options) {
47
47
  this._stdin = _stdin;
48
48
  this._stdout = _stdout;
49
49
  this._readBuffer = new ReadBuffer({ maxBufferSize: options?.maxBufferSize });
@@ -541,7 +541,7 @@ function toError(value) {
541
541
  }
542
542
  __name(toError, "toError");
543
543
 
544
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/mcp/caller.js
544
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/mcp/caller.js
545
545
  var callingAgent = /* @__PURE__ */ __name((fallback, caller = currentCaller()) => {
546
546
  const client = caller?.agent?.client?.name;
547
547
  if (client && client !== "unknown")
@@ -567,7 +567,7 @@ var callerOf = /* @__PURE__ */ __name((ctx, tool, source) => {
567
567
  const meta = ctx?.mcpReq?._meta;
568
568
  const requestId = ctx?.mcpReq?.id;
569
569
  const initialized = source.client?.();
570
- const proxied = initialized?.name === PROXY_CLIENT_NAME ? passedOn(meta?.[CALLER_META_KEY], tool) : void 0;
570
+ const proxied = initialized?.name === PROXY_CLIENT_NAME && !ctx?.http ? passedOn(meta?.[CALLER_META_KEY], tool) : void 0;
571
571
  if (proxied)
572
572
  return proxied;
573
573
  const client = clientFrom(meta?.[CLIENT_INFO_META_KEY]) ?? clientFrom(initialized);
@@ -629,11 +629,103 @@ var passedOn = /* @__PURE__ */ __name((value, tool) => {
629
629
  };
630
630
  }, "passedOn");
631
631
 
632
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/mcp/stdio-wire.js
633
+ import { PassThrough, Writable } from "node:stream";
634
+ var lineReader = /* @__PURE__ */ __name((onMessage) => {
635
+ let rest = "";
636
+ return (chunk) => {
637
+ const lines = (rest + chunk.toString()).split("\n");
638
+ rest = lines.pop() ?? "";
639
+ for (const line of lines) {
640
+ try {
641
+ const message = JSON.parse(line);
642
+ if (message !== null && typeof message === "object")
643
+ onMessage(message);
644
+ } catch {
645
+ }
646
+ }
647
+ };
648
+ }, "lineReader");
649
+ var answeredWire = /* @__PURE__ */ __name((source, sink) => {
650
+ const asked = /* @__PURE__ */ new Set();
651
+ let settle;
652
+ const input = new PassThrough();
653
+ const answeredOne = /* @__PURE__ */ __name((id) => {
654
+ asked.delete(JSON.stringify(id));
655
+ if (asked.size === 0)
656
+ settle?.();
657
+ }, "answeredOne");
658
+ const onData = lineReader(({ jsonrpc, id, method, params }) => {
659
+ if (jsonrpc !== "2.0" || typeof method !== "string")
660
+ return;
661
+ if (method === "notifications/cancelled")
662
+ answeredOne(params?.requestId);
663
+ else if (id !== void 0)
664
+ asked.add(JSON.stringify(id));
665
+ });
666
+ const output = new Writable({
667
+ write: /* @__PURE__ */ __name((chunk, _encoding, done) => {
668
+ noteAnswer(chunk);
669
+ sink.write(chunk, done);
670
+ }, "write")
671
+ });
672
+ const noteAnswer = lineReader(({ id, method }) => {
673
+ if (id !== void 0 && method === void 0)
674
+ answeredOne(id);
675
+ });
676
+ const forward = /* @__PURE__ */ __name((chunk) => {
677
+ onData(chunk);
678
+ input.write(chunk);
679
+ }, "forward");
680
+ source.on("data", forward);
681
+ const ended = new Promise((resolve) => {
682
+ source.once("end", resolve);
683
+ source.once("close", resolve);
684
+ });
685
+ return {
686
+ input,
687
+ output,
688
+ /**
689
+ * Until the client's stdin ended and everything it asked was answered, or until a stop: `signal` for a session
690
+ * relayed on other streams, SIGINT or SIGTERM for this process's own. A stop never waits for answers.
691
+ */
692
+ finished: /* @__PURE__ */ __name((signal) => new Promise((resolve) => {
693
+ const stop = /* @__PURE__ */ __name(() => {
694
+ process.off("SIGINT", stop);
695
+ process.off("SIGTERM", stop);
696
+ resolve();
697
+ }, "stop");
698
+ if (signal) {
699
+ if (signal.aborted)
700
+ return resolve();
701
+ signal.addEventListener("abort", stop, { once: true });
702
+ } else {
703
+ process.once("SIGINT", stop);
704
+ process.once("SIGTERM", stop);
705
+ }
706
+ ended.then(() => {
707
+ if (asked.size === 0)
708
+ stop();
709
+ else
710
+ settle = stop;
711
+ });
712
+ }), "finished"),
713
+ /** Lets go of the real stdin, so it no longer holds the process open. */
714
+ release: /* @__PURE__ */ __name(() => {
715
+ source.off("data", forward);
716
+ if (source.listenerCount("data") === 0)
717
+ source.pause();
718
+ input.end();
719
+ }, "release")
720
+ };
721
+ }, "answeredWire");
722
+
632
723
  export {
633
724
  StdioServerTransport,
634
725
  serveStdio,
635
726
  callingAgent,
636
727
  CALLER_META_KEY,
637
728
  PROXY_CLIENT_NAME,
638
- callerOf
729
+ callerOf,
730
+ answeredWire
639
731
  };
@@ -2,26 +2,26 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  storePath
5
- } from "./chunk-LZ4AVHBS.js";
5
+ } from "./chunk-XHVFX74L.js";
6
6
  import {
7
7
  resolvePaths,
8
8
  writeSecurely
9
- } from "./chunk-HNWDEDMU.js";
9
+ } from "./chunk-CS62FET6.js";
10
10
  import {
11
11
  CliError
12
- } from "./chunk-EA2OB75T.js";
12
+ } from "./chunk-K3K3WKDB.js";
13
13
  import {
14
14
  singleLine
15
- } from "./chunk-HCZYJMBP.js";
15
+ } from "./chunk-EPPE6ZTS.js";
16
16
  import {
17
17
  __name
18
18
  } from "./chunk-ZVVMGPBJ.js";
19
19
 
20
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/store/shared-config.js
20
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/store/shared-config.js
21
21
  import { existsSync, mkdirSync, readFileSync, renameSync, statSync, writeFileSync } from "node:fs";
22
22
  import { dirname, join, resolve } from "node:path";
23
23
 
24
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/domain/config-repair.js
24
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/domain/config-repair.js
25
25
  var REPAIR_WORDS = {
26
26
  byte_order_mark: "an invisible byte-order mark at the start",
27
27
  comment: "a comment, which JSON does not allow",
@@ -305,7 +305,7 @@ var explainBrokenJson = /* @__PURE__ */ __name((text, result) => {
305
305
  return `line ${line}, column ${column}: ${why}${around(line)}; likely fix: ${fix ?? "correct that part by hand"}`;
306
306
  }, "explainBrokenJson");
307
307
 
308
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/domain/task-categories.js
308
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/domain/task-categories.js
309
309
  var DEFAULT_TASK_CATEGORIES = [
310
310
  {
311
311
  name: "taxes",
@@ -1060,7 +1060,7 @@ var storedTaskCategories = /* @__PURE__ */ __name((json) => {
1060
1060
  }
1061
1061
  }, "storedTaskCategories");
1062
1062
 
1063
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/store/shared-config.js
1063
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/store/shared-config.js
1064
1064
  var SECTION = "task_categories";
1065
1065
  var sharedConfigPath = /* @__PURE__ */ __name((store, env = process.env) => {
1066
1066
  const paths = resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env });
@@ -2,20 +2,20 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  unit
5
- } from "./chunk-7W23N2YW.js";
5
+ } from "./chunk-GB5LI5RM.js";
6
6
  import {
7
7
  PLAIN_HTTP_REFUSED,
8
8
  modelAddressAllowed,
9
9
  onThisComputer
10
- } from "./chunk-IS6FUZCP.js";
10
+ } from "./chunk-YGKM2ZWF.js";
11
11
  import {
12
12
  readSharedSection,
13
13
  sharedConfigPath,
14
14
  writeSharedSection
15
- } from "./chunk-HGUYJUNO.js";
15
+ } from "./chunk-WKT5RPSY.js";
16
16
  import {
17
17
  storePath
18
- } from "./chunk-LZ4AVHBS.js";
18
+ } from "./chunk-XHVFX74L.js";
19
19
  import {
20
20
  boolean,
21
21
  isoTimestamp,
@@ -23,18 +23,18 @@ import {
23
23
  safeParse,
24
24
  strictObject,
25
25
  string
26
- } from "./chunk-4RJL32PF.js";
26
+ } from "./chunk-3D5PETD2.js";
27
27
  import {
28
28
  CliError
29
- } from "./chunk-EA2OB75T.js";
29
+ } from "./chunk-K3K3WKDB.js";
30
30
  import {
31
31
  __name
32
32
  } from "./chunk-ZVVMGPBJ.js";
33
33
 
34
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/embeddings/remote.js
34
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/embeddings/remote.js
35
35
  import { setTimeout } from "node:timers/promises";
36
36
 
37
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/models/local-only.js
37
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/models/local-only.js
38
38
  var SECTION = "local_only";
39
39
  var Setting = strictObject({
40
40
  on: boolean(),
@@ -68,7 +68,7 @@ var refuseModelAddress = /* @__PURE__ */ __name((env, address, what) => {
68
68
  refuseOffComputer(env, address, what);
69
69
  }, "refuseModelAddress");
70
70
 
71
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/embeddings/remote.js
71
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/embeddings/remote.js
72
72
  var OPENAI_URL = "https://api.openai.com/v1";
73
73
  var OPENAI_MODELS = {
74
74
  "text-embedding-3-small": { dims: 1536, perMillion: 0.02 },