@wirecat/zoom-cli 0.73.0 → 0.75.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 (137) hide show
  1. package/contracts/wirecat.json +5 -4
  2. package/dist/bin/zm.js +2 -2
  3. package/dist/bundle/{all-profiles-V47CUJFK.js → all-profiles-WFLKFKJC.js} +19 -29
  4. package/dist/bundle/answer-policy-XCKC2LLN.js +110 -0
  5. package/dist/bundle/{anthropic-SID7Z3QN.js → anthropic-H45W4P22.js} +2 -2
  6. package/dist/bundle/{app-server-KCMUSY4A.js → app-server-I4FPLBIX.js} +49 -66
  7. package/dist/bundle/{bun-PWMM6L45.js → bun-V5QLYBZU.js} +2 -2
  8. package/dist/bundle/{bun-sqlite-3TLKUN5A.js → bun-sqlite-X2YZPHDS.js} +3 -3
  9. package/dist/bundle/{chunk-PGPHEC2X.js → chunk-2Q4CB4EI.js} +1 -1
  10. package/dist/bundle/{chunk-PACLT6IW.js → chunk-3U3W6YY5.js} +69 -68
  11. package/dist/bundle/{chunk-QVJMFZFW.js → chunk-3URYKAJP.js} +1 -1
  12. package/dist/bundle/{chunk-UYBLNGZ2.js → chunk-3YKAFLXY.js} +1 -1
  13. package/dist/bundle/{chunk-IKNOTHG2.js → chunk-3YRPDNWK.js} +544 -142
  14. package/dist/bundle/{chunk-CMWFYZ45.js → chunk-4J5GJJ2I.js} +1 -1
  15. package/dist/bundle/{chunk-Y3IH7EZC.js → chunk-4XDWV6VJ.js} +16 -16
  16. package/dist/bundle/{chunk-KHBZ4OEP.js → chunk-4YNUQGDP.js} +1 -1
  17. package/dist/bundle/{chunk-35CYSRGJ.js → chunk-532H3KT3.js} +2 -2
  18. package/dist/bundle/{chunk-TI2OANJZ.js → chunk-6XNTELM5.js} +1 -1
  19. package/dist/bundle/chunk-7ZVWV33Z.js +707 -0
  20. package/dist/bundle/{chunk-ERQRY6WZ.js → chunk-A3Q3PG54.js} +1 -1
  21. package/dist/bundle/{chunk-JQF4LM3V.js → chunk-AVCYD4WQ.js} +20 -19
  22. package/dist/bundle/{chunk-P4FU6R3Z.js → chunk-B6Q53CVA.js} +7 -7
  23. package/dist/bundle/{chunk-KSNJK4QM.js → chunk-BY2YPKZZ.js} +12 -12
  24. package/dist/bundle/{chunk-L6YSKCC3.js → chunk-C5WQ57AB.js} +1 -1
  25. package/dist/bundle/{chunk-AIEMFRBU.js → chunk-CAQ5GW3A.js} +1 -1
  26. package/dist/bundle/{chunk-G2TSDMTA.js → chunk-DQBLDZ7M.js} +3 -3
  27. package/dist/bundle/{chunk-ILDGZBZD.js → chunk-DUPFAY35.js} +6 -6
  28. package/dist/bundle/{chunk-GCZMYDKU.js → chunk-ELD5AC7Q.js} +2 -2
  29. package/dist/bundle/{chunk-CIUJEQH4.js → chunk-EOZAJGB4.js} +11 -12
  30. package/dist/bundle/{chunk-VJVYGTPM.js → chunk-F6RB5FHZ.js} +1 -1
  31. package/dist/bundle/{chunk-LVDTSCIN.js → chunk-F7K2V6OA.js} +10 -10
  32. package/dist/bundle/{chunk-4LFFDUUW.js → chunk-FBYGBR4Q.js} +3 -3
  33. package/dist/bundle/{chunk-6AO2RSYH.js → chunk-GPVSGZ4R.js} +1608 -1096
  34. package/dist/bundle/{chunk-2NQPB6MT.js → chunk-GU4FVTJV.js} +17 -1
  35. package/dist/bundle/{chunk-6NI4FE5G.js → chunk-HKPNQL52.js} +3 -3
  36. package/dist/bundle/{chunk-KUL7S5Y3.js → chunk-IDGWBKMH.js} +10 -10
  37. package/dist/bundle/{chunk-QS6DWXDB.js → chunk-IMDTC4MD.js} +34 -20
  38. package/dist/bundle/{chunk-LSVQCI6V.js → chunk-IO3BQ6JU.js} +22 -22
  39. package/dist/bundle/{chunk-V5Q2QKYM.js → chunk-IW245Q5B.js} +23 -25
  40. package/dist/bundle/{chunk-DPSTOVKC.js → chunk-JDTZCZ5K.js} +2 -2
  41. package/dist/bundle/{chunk-JIS34MLC.js → chunk-JTYWSXJG.js} +7 -7
  42. package/dist/bundle/{chunk-K5JFX5TK.js → chunk-K5E5MB4C.js} +18 -18
  43. package/dist/bundle/{chunk-VPPNYUQM.js → chunk-L5UILROP.js} +322 -11
  44. package/dist/bundle/{chunk-DYLYH7VE.js → chunk-LRCSDAYK.js} +3 -3
  45. package/dist/bundle/{chunk-PJ3FKBXG.js → chunk-MHXZ62CU.js} +1 -1
  46. package/dist/bundle/{chunk-OKOJEBHK.js → chunk-MNVT7EJS.js} +2 -2
  47. package/dist/bundle/{chunk-HAMDPWEZ.js → chunk-NE4GYKQA.js} +5 -5
  48. package/dist/bundle/{chunk-PKON63JH.js → chunk-NL6AZ6S2.js} +1 -1
  49. package/dist/bundle/{chunk-N3SOTKXC.js → chunk-NQLL4KRN.js} +5 -5
  50. package/dist/bundle/{chunk-XLY7V2LB.js → chunk-NQQVNLO6.js} +10 -10
  51. package/dist/bundle/{chunk-44YVZIA4.js → chunk-NU4FSSMN.js} +2 -2
  52. package/dist/bundle/{chunk-ZVQDOKDY.js → chunk-OUM4ZO53.js} +1 -1
  53. package/dist/bundle/{chunk-OU5OXA6Q.js → chunk-P4ZQQLZF.js} +1772 -718
  54. package/dist/bundle/{chunk-OMLVWOEF.js → chunk-P6MQ6FS4.js} +184 -16
  55. package/dist/bundle/{chunk-NBA2V6LB.js → chunk-PCJRHC5Y.js} +7 -7
  56. package/dist/bundle/{chunk-G3SIY4MQ.js → chunk-PPM7UTCT.js} +22 -21
  57. package/dist/bundle/{chunk-3ADFJ3UP.js → chunk-PX4IMYVB.js} +2 -2
  58. package/dist/bundle/{chunk-FJMRDRPN.js → chunk-QBKKTTA3.js} +1155 -484
  59. package/dist/bundle/{chunk-ZX4QWTMQ.js → chunk-QEO3XTIE.js} +37 -29
  60. package/dist/bundle/{chunk-FZLJ2G7A.js → chunk-QXQUANWE.js} +4 -4
  61. package/dist/bundle/{chunk-MG2CCAVG.js → chunk-RABCFGT3.js} +2 -2
  62. package/dist/bundle/{chunk-SYIOT45G.js → chunk-RBYVQE3S.js} +4 -4
  63. package/dist/bundle/{chunk-6WUTUCKH.js → chunk-RKI4BGWG.js} +2 -2
  64. package/dist/bundle/{chunk-EXWZCI5G.js → chunk-SEJBS7SI.js} +1 -1
  65. package/dist/bundle/{chunk-LQYMN36C.js → chunk-SR5X7YKB.js} +1 -1
  66. package/dist/bundle/{chunk-KK2IVZUQ.js → chunk-T25PR26L.js} +5 -5
  67. package/dist/bundle/{chunk-ZAIE3G5I.js → chunk-T4FMXDDV.js} +2 -2
  68. package/dist/bundle/{chunk-SO52EJ2W.js → chunk-TSHUBGN4.js} +2 -2
  69. package/dist/bundle/{chunk-OFA22L4G.js → chunk-V3UK6E5B.js} +4 -4
  70. package/dist/bundle/{chunk-Q43KX56Z.js → chunk-VLK3X53X.js} +2 -2
  71. package/dist/bundle/{chunk-Z5XCU4S7.js → chunk-VPSQZ2YR.js} +44 -52
  72. package/dist/bundle/{chunk-QWGEOQHA.js → chunk-VUPWDCYV.js} +1 -1
  73. package/dist/bundle/{chunk-K7EMVFJ7.js → chunk-W2AC2RAG.js} +13 -13
  74. package/dist/bundle/{chunk-UIKVP23D.js → chunk-WQOGHND4.js} +1 -1
  75. package/dist/bundle/{chunk-ETQNHS3A.js → chunk-WUWF4EXZ.js} +6 -6
  76. package/dist/bundle/{chunk-HO3GBTIT.js → chunk-XCJGDPMN.js} +1547 -917
  77. package/dist/bundle/{chunk-2VYEGKQ3.js → chunk-XUHQ7DVT.js} +1 -1
  78. package/dist/bundle/{chunk-IE7YBRUO.js → chunk-Y5J5CAG2.js} +1 -1
  79. package/dist/bundle/{chunk-MOKEB656.js → chunk-ZBYKCVSV.js} +1 -1
  80. package/dist/bundle/{chunk-CQBLPBZU.js → chunk-ZVVRRMLW.js} +98 -6
  81. package/dist/bundle/{cli-4ZYJ6OZE.js → cli-NPRYCWFH.js} +112 -83
  82. package/dist/bundle/command-contract-OJYRKQHR.js +41 -0
  83. package/dist/bundle/{command-server-entry-CASONRIJ.js → command-server-entry-BV4SUPUI.js} +24 -26
  84. package/dist/bundle/config-UMEV24OE.js +97 -0
  85. package/dist/bundle/{decode-KEFCVGEB.js → decode-PRMKCHHC.js} +2 -2
  86. package/dist/bundle/{dist-GCQ7KCKN.js → dist-HGLDGKUW.js} +18 -15
  87. package/dist/bundle/{echarts-SDZA2SWG.js → echarts-QIXLXS3G.js} +2 -2
  88. package/dist/bundle/{embed-43VJEPM6.js → embed-OZN2BIJY.js} +3 -3
  89. package/dist/bundle/{embedder-Q4ZHAGRP.js → embedder-RBDHO6Z6.js} +6 -6
  90. package/dist/bundle/{first-run-CPOLQVNA.js → first-run-HNCD7U3B.js} +6 -6
  91. package/dist/bundle/first-screen-374BBMO6.js +39 -0
  92. package/dist/bundle/{instructions-7T6JJIFS.js → instructions-MD2RZT5Z.js} +1 -1
  93. package/dist/bundle/{main-NA3QVPXS.js → main-FPMCCRIQ.js} +15 -15
  94. package/dist/bundle/{meetings-7CVIQJTA.js → meetings-WYCVHAIP.js} +17 -1
  95. package/dist/bundle/{node-BZDMUFTW.js → node-IEVT2FSJ.js} +2 -2
  96. package/dist/bundle/{node-sqlite-QHGB23B4.js → node-sqlite-O4C6IWSM.js} +4 -4
  97. package/dist/bundle/{oauth-BMEMCM2I.js → oauth-6VXOUXSE.js} +4 -4
  98. package/dist/bundle/{open-JGU2NRJP.js → open-AMUIWV3Y.js} +2 -2
  99. package/dist/bundle/{openai-VTXXFNCS.js → openai-MEDN6FSK.js} +10 -10
  100. package/dist/bundle/{process-756VBE7E.js → process-6Q23D3TO.js} +1 -1
  101. package/dist/bundle/{program-XM6CDIJ2.js → program-CF2NKA2A.js} +84 -87
  102. package/dist/bundle/{prompt-2IPFXJ4B.js → prompt-N3UZE4ZR.js} +2 -2
  103. package/dist/bundle/{recognize-672E2RIB.js → recognize-I5F3K3CZ.js} +1 -1
  104. package/dist/bundle/{remote-YLHRVPDS.js → remote-CJF5KMMY.js} +6 -6
  105. package/dist/bundle/{rerank-NBXQG3OS.js → rerank-6WLY6MKY.js} +4 -4
  106. package/dist/bundle/{run-log-3WITBT2F.js → run-log-FKF4ZX4M.js} +55 -57
  107. package/dist/bundle/{serve-FNLOUMYP.js → serve-FOQJ3WMX.js} +6 -6
  108. package/dist/bundle/server-BAGY5HEZ.js +74 -0
  109. package/dist/bundle/{server-7ZB5AK5H.js → server-OEEGRSQD.js} +47 -47
  110. package/dist/bundle/{services-Z4UWN64R.js → services-Q6SFESMS.js} +43 -28
  111. package/dist/bundle/{speech-XSYVCKR3.js → speech-PBVEIG4N.js} +12 -12
  112. package/dist/bundle/{sqlite-runtime-GAPXJNWU.js → sqlite-runtime-IWR65V6I.js} +3 -3
  113. package/dist/bundle/{state-QSA53EF5.js → state-G54C2N6U.js} +3 -3
  114. package/dist/bundle/{store-NOF5EYUC.js → store-7EWMPTTW.js} +20 -16
  115. package/dist/bundle/{store-EKI4OAJH.js → store-D5OLXIFW.js} +14 -14
  116. package/dist/bundle/store-connection-34747SCC.js +90 -0
  117. package/dist/bundle/store-maintenance-command-QBO67F7Z.js +65 -0
  118. package/dist/bundle/{tokens-WJQYQ3FK.js → tokens-J7TFHLEG.js} +4 -4
  119. package/dist/bundle/zm.js +2 -2
  120. package/dist/bundle/{zoom-app-Y7RMWLVU.js → zoom-app-SULPMVN4.js} +2 -2
  121. package/dist/recording-schedule-commands.d.ts.map +1 -1
  122. package/dist/recording-schedule-commands.js +2 -2
  123. package/dist/recording-schedule-commands.js.map +1 -1
  124. package/dist/version.d.ts +1 -1
  125. package/dist/version.js +1 -1
  126. package/package.json +2 -2
  127. package/dist/bundle/answer-policy-W6H72X2R.js +0 -112
  128. package/dist/bundle/chunk-2BAZRRJP.js +0 -1239
  129. package/dist/bundle/chunk-KQD4ZVNC.js +0 -153
  130. package/dist/bundle/chunk-R5FTCNLJ.js +0 -76
  131. package/dist/bundle/chunk-USIMMGWS.js +0 -997
  132. package/dist/bundle/command-contract-FJDDCHYP.js +0 -43
  133. package/dist/bundle/config-4DZHX2WX.js +0 -99
  134. package/dist/bundle/first-screen-XYESRGWW.js +0 -41
  135. package/dist/bundle/server-GGRGD4SH.js +0 -77
  136. package/dist/bundle/store-connection-2OZQGEIO.js +0 -92
  137. package/dist/bundle/store-maintenance-command-GNX3SOZ6.js +0 -67
@@ -12,10 +12,7 @@ import {
12
12
  refuseWriteBeforeConnecting,
13
13
  registerPrompts,
14
14
  syncsFirst
15
- } from "./chunk-ZX4QWTMQ.js";
16
- import {
17
- answeredWire
18
- } from "./chunk-R5FTCNLJ.js";
15
+ } from "./chunk-QEO3XTIE.js";
19
16
  import {
20
17
  BinaryResource,
21
18
  Picture,
@@ -36,34 +33,35 @@ import {
36
33
  tool,
37
34
  toolKey,
38
35
  toolsFromCommands
39
- } from "./chunk-JQF4LM3V.js";
36
+ } from "./chunk-AVCYD4WQ.js";
40
37
  import {
41
38
  agentJson,
42
39
  skillResource
43
- } from "./chunk-CIUJEQH4.js";
40
+ } from "./chunk-EOZAJGB4.js";
44
41
  import {
45
42
  StdioServerTransport,
43
+ answeredWire,
46
44
  callerOf,
47
45
  callingAgent,
48
46
  serveStdio
49
- } from "./chunk-CQBLPBZU.js";
47
+ } from "./chunk-ZVVRRMLW.js";
50
48
  import {
51
49
  McpServer,
52
50
  ResourceTemplate
53
51
  } from "./chunk-5D4AEUVA.js";
54
52
  import {
55
53
  connectedFor
56
- } from "./chunk-G3SIY4MQ.js";
54
+ } from "./chunk-PPM7UTCT.js";
57
55
  import {
58
56
  lackedNeed,
59
57
  wholeList
60
- } from "./chunk-2BAZRRJP.js";
58
+ } from "./chunk-7ZVWV33Z.js";
61
59
  import {
62
60
  mcpHttpMarker
63
- } from "./chunk-OFA22L4G.js";
61
+ } from "./chunk-V3UK6E5B.js";
64
62
  import {
65
63
  instructions
66
- } from "./chunk-AIEMFRBU.js";
64
+ } from "./chunk-CAQ5GW3A.js";
67
65
  import {
68
66
  capability,
69
67
  dateWindow,
@@ -71,16 +69,16 @@ import {
71
69
  imageSize,
72
70
  servicesFor,
73
71
  storedDeps
74
- } from "./chunk-OU5OXA6Q.js";
72
+ } from "./chunk-P4ZQQLZF.js";
75
73
  import {
76
74
  warmEmbedders
77
- } from "./chunk-HAMDPWEZ.js";
75
+ } from "./chunk-NE4GYKQA.js";
78
76
  import {
79
77
  stdinFieldOf
80
- } from "./chunk-PJ3FKBXG.js";
78
+ } from "./chunk-MHXZ62CU.js";
81
79
  import {
82
80
  findCommand
83
- } from "./chunk-G2TSDMTA.js";
81
+ } from "./chunk-DQBLDZ7M.js";
84
82
  import {
85
83
  DEFAULT_OUTPUT_BYTES,
86
84
  changesAuthorityAt,
@@ -94,32 +92,34 @@ import {
94
92
  rootOf2 as rootOf,
95
93
  sealed,
96
94
  snakeKeys
97
- } from "./chunk-FJMRDRPN.js";
98
- import {
99
- withCaller
100
- } from "./chunk-ILDGZBZD.js";
95
+ } from "./chunk-QBKKTTA3.js";
101
96
  import {
102
97
  readOnlyLockOf
103
- } from "./chunk-MOKEB656.js";
98
+ } from "./chunk-ZBYKCVSV.js";
104
99
  import {
100
+ withCaller
101
+ } from "./chunk-DUPFAY35.js";
102
+ import {
103
+ fetchesAt,
105
104
  levelFor,
106
105
  readKeysForCommand
107
- } from "./chunk-OMLVWOEF.js";
106
+ } from "./chunk-P6MQ6FS4.js";
108
107
  import {
109
108
  openStore,
110
109
  pdfPreviewLimits
111
- } from "./chunk-HO3GBTIT.js";
110
+ } from "./chunk-XCJGDPMN.js";
112
111
  import {
113
112
  typedCommand
114
- } from "./chunk-LSVQCI6V.js";
113
+ } from "./chunk-IO3BQ6JU.js";
115
114
  import {
116
115
  isCliFailure
117
- } from "./chunk-UYBLNGZ2.js";
116
+ } from "./chunk-3YKAFLXY.js";
118
117
  import {
119
118
  timezoneOf
120
119
  } from "./chunk-3HTJBGNP.js";
121
120
  import {
122
121
  description,
122
+ errorObjectOf,
123
123
  integer,
124
124
  maxValue,
125
125
  mcpErrorResult,
@@ -144,10 +144,10 @@ import {
144
144
  __name
145
145
  } from "./chunk-ZVVMGPBJ.js";
146
146
 
147
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/mcp/server.js
147
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/mcp/server.js
148
148
  import { randomUUID } from "node:crypto";
149
149
 
150
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/mcp/agent-log.js
150
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/mcp/agent-log.js
151
151
  var agentLog = /* @__PURE__ */ __name((open) => {
152
152
  let held;
153
153
  return {
@@ -166,7 +166,7 @@ var agentLog = /* @__PURE__ */ __name((open) => {
166
166
  };
167
167
  }, "agentLog");
168
168
 
169
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/mcp/resources.js
169
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/mcp/resources.js
170
170
  var LISTED = 100;
171
171
  var registerResources = /* @__PURE__ */ __name((server, session, { command, name, limit, recorded, withStore, messenger, guard, assertRead }) => {
172
172
  server.registerResource("chat", new ResourceTemplate(`${command}://chat/{id}`, {
@@ -204,7 +204,7 @@ var registerResources = /* @__PURE__ */ __name((server, session, { command, name
204
204
  });
205
205
  }, "registerResources");
206
206
 
207
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/mcp/session.js
207
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/mcp/session.js
208
208
  var HARMLESS = /* @__PURE__ */ new Set(["validation_error", "not_found", "permission_error", "confirmation_required", "rate_limited"]);
209
209
  var harmless = /* @__PURE__ */ __name((code) => HARMLESS.has(code), "harmless");
210
210
  var MessengerSession = class {
@@ -279,7 +279,7 @@ var MessengerSession = class {
279
279
  }
280
280
  };
281
281
 
282
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/mcp/tools/attachments.js
282
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/mcp/tools/attachments.js
283
283
  var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
284
284
  const _command = messenger.app.command;
285
285
  return {
@@ -333,7 +333,7 @@ var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
333
333
  };
334
334
  }, "attachmentsTools");
335
335
 
336
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/mcp/tools/messages-photo.js
336
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/mcp/tools/messages-photo.js
337
337
  var PHOTO_LIMIT = 512 * 1024;
338
338
  var IMAGE_TYPES = [
339
339
  ["image/jpeg", (b) => b[0] === 255 && b[1] === 216 && b[2] === 255],
@@ -349,14 +349,16 @@ var messagesPhotoTools = /* @__PURE__ */ __name((messenger) => ({
349
349
  input: object({
350
350
  chat: chatOf(messenger),
351
351
  message,
352
- index: optional(pipe(number(), integer(), minValue(0), description("attachment index from 0; omit for the first photo")))
352
+ attachment: optional(pipe(number(), integer(), minValue(1), description("which file of the message, from 1; omit for the first photo")))
353
353
  }),
354
354
  annotations: READ,
355
355
  online: /* @__PURE__ */ __name(async (adapter, args, defaults) => {
356
356
  const { id: chatId } = await adapter.resolve(args.chat);
357
357
  const saveIt = `the owner can save it with \`${typedCommand(messenger.app.command, `messages download ${chatId} ${args.message}`)}\``;
358
358
  const { files } = await capability(adapter, "download", "download attachments")(chatId, args.message);
359
- const photo = args.index === void 0 ? files.find((file) => file.kind === "photo") : files[args.index];
359
+ if (args.attachment !== void 0 && args.attachment > files.length)
360
+ throw new CliError("not_found", `message ${args.message} has ${files.length} file${files.length === 1 ? "" : "s"}, no file ${args.attachment}`);
361
+ const photo = args.attachment === void 0 ? files.find((file) => file.kind === "photo") : files[args.attachment - 1];
360
362
  if (!photo) {
361
363
  const kinds = files.map((file) => file.kind).join(", ");
362
364
  throw new CliError(files.length === 0 ? "not_found" : "validation_error", files.length === 0 ? `message ${args.message} has no photo` : `the message has a ${kinds}, not a photo \u2014 ${saveIt}`);
@@ -387,7 +389,7 @@ var readUpTo = /* @__PURE__ */ __name(async (file, limit, saveIt) => {
387
389
  return new Uint8Array(Buffer.concat(chunks));
388
390
  }, "readUpTo");
389
391
 
390
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/mcp/tools/stats.js
392
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/mcp/tools/stats.js
391
393
  var statsTools = /* @__PURE__ */ __name((messenger) => ({
392
394
  stats_charts: tool({
393
395
  title: "A chart from a chat's statistics",
@@ -424,14 +426,14 @@ var statsTools = /* @__PURE__ */ __name((messenger) => ({
424
426
  })
425
427
  }), "statsTools");
426
428
 
427
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/mcp/tools.js
429
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/mcp/tools.js
428
430
  var pictureTools = /* @__PURE__ */ __name((messenger) => Object.fromEntries(Object.entries({
429
431
  ...messagesPhotoTools(messenger),
430
432
  ...attachmentsTools(messenger),
431
433
  ...statsTools(messenger)
432
434
  }).map(([name, definition]) => [name, { ...definition, input: strictObject(definition.input.entries) }])), "pictureTools");
433
435
 
434
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/mcp/server.js
436
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/mcp/server.js
435
437
  var PER_RUN = /* @__PURE__ */ new Set([
436
438
  "streams",
437
439
  "stdin",
@@ -490,7 +492,7 @@ var createServer = /* @__PURE__ */ __name((command, context, messenger, sessionO
490
492
  return void 0;
491
493
  }
492
494
  }, "stdin");
493
- const syncAllowed = /* @__PURE__ */ __name((path) => syncsFirst(messenger) && levelOf("messages.sync-first") === "allow" && (path[0] !== "stats" || levelOf(`${path.join(".")}.sync-first`) === "allow"), "syncAllowed");
495
+ const syncAllowed = /* @__PURE__ */ __name((path) => syncsFirst(messenger) && fetchesAt(levelOf("messages.sync-first")) && (path[0] !== "stats" || fetchesAt(levelOf(`${path.join(".")}.sync-first`))), "syncAllowed");
494
496
  const generated = toolsFromCommands(program.commands, {
495
497
  includeUnavailable: true,
496
498
  exclude: [["bot"]],
@@ -596,8 +598,8 @@ var createServer = /* @__PURE__ */ __name((command, context, messenger, sessionO
596
598
  });
597
599
  }), "invoke");
598
600
  let queue = Promise.resolve();
599
- const queued = /* @__PURE__ */ __name((one, input, env, caller) => {
600
- const next = queue.then(() => invoke(one, input, env, caller));
601
+ const queued = /* @__PURE__ */ __name((one, input, env, caller, signal) => {
602
+ const next = queue.then(() => signal?.aborted ? { error: errorObjectOf(new CliError("cancelled", `${one.command} was cancelled before it started`)) } : invoke(one, input, env, caller));
601
603
  queue = next.catch(() => void 0);
602
604
  return next;
603
605
  }, "queued");
@@ -613,7 +615,7 @@ var createServer = /* @__PURE__ */ __name((command, context, messenger, sessionO
613
615
  const traceparent = ctx?.mcpReq?._meta?.traceparent;
614
616
  const env = typeof traceparent === "string" ? { ...context.env, TRACEPARENT: traceparent } : context.env;
615
617
  const caller = callerOf(ctx, keyOfCommand(one.command), source);
616
- const answer = await withCaller(caller, () => queued(one, args, env, caller));
618
+ const answer = await withCaller(caller, () => queued(one, args, env, caller, ctx?.mcpReq?.signal));
617
619
  const result = "error" in answer ? mcpErrorResult(JSON.parse(agentJson(answer.error))) : (() => {
618
620
  try {
619
621
  return answered(envelope(one.command, answer.result), DEFAULT_OUTPUT_BYTES, targets);
@@ -669,7 +671,7 @@ var createServer = /* @__PURE__ */ __name((command, context, messenger, sessionO
669
671
  spawnJob: sessionOptions.spawnJob,
670
672
  limit: settings.limit,
671
673
  get syncAllowed() {
672
- return syncsFirst(messenger) && levelOf("messages.sync-first") === "allow";
674
+ return syncsFirst(messenger) && fetchesAt(levelOf("messages.sync-first"));
673
675
  },
674
676
  guard,
675
677
  settings,
@@ -736,18 +738,8 @@ var serveOverStdio = /* @__PURE__ */ __name(async (command, context, messenger,
736
738
  transport: new StdioServerTransport(wire.input, wire.output),
737
739
  onerror: /* @__PURE__ */ __name((error) => context.renderer.note(`mcp: ${error.message}`), "onerror")
738
740
  });
739
- const ended = await new Promise((resolve) => {
740
- wire.ended.then(() => resolve("input"));
741
- if (own)
742
- signal?.addEventListener("abort", () => resolve("stopped"), { once: true });
743
- else {
744
- process.once("SIGINT", () => resolve("stopped"));
745
- process.once("SIGTERM", () => resolve("stopped"));
746
- }
747
- });
741
+ await wire.finished(own ? signal : void 0);
748
742
  try {
749
- if (ended === "input")
750
- await wire.answered();
751
743
  wire.release();
752
744
  await handle.close();
753
745
  await session.close();
@@ -758,7 +750,7 @@ var serveOverStdio = /* @__PURE__ */ __name(async (command, context, messenger,
758
750
  }, "serveOverStdio");
759
751
  var serveOverHttpUntilStopped = /* @__PURE__ */ __name(async (command, context, messenger, options, http) => {
760
752
  const { session, embedders, build, log } = createServer(command, context, messenger, options);
761
- const { serveOverHttp } = await import("./serve-FNLOUMYP.js");
753
+ const { serveOverHttp } = await import("./serve-FOQJ3WMX.js");
762
754
  const appName = messenger.app.command;
763
755
  const appEnvPrefix = messenger.app.envPrefix;
764
756
  const listening = await serveOverHttp(build, {
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/runs/secrets.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/runs/secrets.js
8
8
  var SECRET_WORDS = /* @__PURE__ */ new Set([
9
9
  "authorization",
10
10
  "cookie",
@@ -7,24 +7,24 @@ import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/files/lock.js
10
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/files/lock.js
11
11
  import { mkdir as mkdir2 } from "node:fs/promises";
12
12
  import { basename, dirname } from "node:path";
13
13
 
14
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
14
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
15
15
  import { randomUUID } from "node:crypto";
16
16
  import { lstat as lstat3, mkdir, open as open2, realpath as realpath2, rmdir as rmdir2, unlink as unlink3 } from "node:fs/promises";
17
17
  import { hostname as hostname2 } from "node:os";
18
18
  import { join as join2 } from "node:path";
19
19
 
20
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
20
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
21
21
  import { lstat as lstat2, readdir, realpath, unlink } from "node:fs/promises";
22
22
  import { join } from "node:path";
23
23
 
24
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/files/native-lease-owner.js
24
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/files/native-lease-owner.js
25
25
  import { hostname } from "node:os";
26
26
 
27
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/files/ordinary-file.js
27
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/files/ordinary-file.js
28
28
  import { constants } from "node:fs";
29
29
  import { lstat, open } from "node:fs/promises";
30
30
  var deviceOf = /* @__PURE__ */ __name((dev) => process.platform === "win32" ? BigInt.asUintN(32, dev) : dev, "deviceOf");
@@ -90,7 +90,7 @@ var syncDirectory = /* @__PURE__ */ __name(async (path) => {
90
90
  }
91
91
  }, "syncDirectory");
92
92
 
93
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/files/native-lease-owner.js
93
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/files/native-lease-owner.js
94
94
  var missingLeaseFile = /* @__PURE__ */ __name((error) => typeof error === "object" && error !== null && "code" in error && error.code === "ENOENT", "missingLeaseFile");
95
95
  var readLeaseOwner = /* @__PURE__ */ __name(async (path, name, signal) => {
96
96
  signal?.throwIfAborted();
@@ -134,7 +134,7 @@ var leaseOwnerStatus = /* @__PURE__ */ __name((owner) => {
134
134
  }
135
135
  }, "leaseOwnerStatus");
136
136
 
137
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
137
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
138
138
  var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
139
139
  const inspect = /* @__PURE__ */ __name(async (destination, options = {}) => {
140
140
  options.signal?.throwIfAborted();
@@ -193,7 +193,7 @@ var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
193
193
  return { inspect, recover };
194
194
  }, "leaseInspection");
195
195
 
196
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/files/native-lease-release.js
196
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/files/native-lease-release.js
197
197
  import { rmdir, unlink as unlink2 } from "node:fs/promises";
198
198
  var ownedNativeLease = /* @__PURE__ */ __name((path, name, owner, folder, identity) => {
199
199
  let releasing;
@@ -218,7 +218,7 @@ var ownedNativeLease = /* @__PURE__ */ __name((path, name, owner, folder, identi
218
218
  };
219
219
  }, "ownedNativeLease");
220
220
 
221
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
221
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
222
222
  var validName = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length > 0 && value !== "." && value !== ".." && !/[\\/\0:]/.test(value), "validName");
223
223
  var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
224
224
  const { markerDirectory, legacyMarker } = layout;
@@ -289,7 +289,7 @@ var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
289
289
  };
290
290
  }, "nativeWriterLeaseStore");
291
291
 
292
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/files/lock.js
292
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/files/lock.js
293
293
  var acquireLock = /* @__PURE__ */ __name(async (path, { signal } = {}) => {
294
294
  const folder = dirname(path);
295
295
  await mkdir2(folder, { recursive: true, mode: 448 });
@@ -304,7 +304,7 @@ var acquireLock = /* @__PURE__ */ __name(async (path, { signal } = {}) => {
304
304
  });
305
305
  }, "acquireLock");
306
306
 
307
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/files/atomic-write.js
307
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/files/atomic-write.js
308
308
  import { randomUUID as randomUUID2 } from "node:crypto";
309
309
  import { constants as constants2 } from "node:fs";
310
310
  import { link, open as open3, realpath as realpath3, rename, unlink as unlink4 } from "node:fs/promises";
@@ -342,7 +342,7 @@ var writeFileAtomic = /* @__PURE__ */ __name(async (path, content, { mode = 384,
342
342
  }
343
343
  }, "writeFileAtomic");
344
344
 
345
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/files/bounded-utf8.js
345
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/files/bounded-utf8.js
346
346
  var readBoundedUtf8File = /* @__PURE__ */ __name(async (path, { maxBytes }) => {
347
347
  if (!Number.isSafeInteger(maxBytes) || maxBytes < 1 || maxBytes > 16 * 1024 * 1024)
348
348
  throw new CliError("validation_error", "file maxBytes takes 1\u201316777216 bytes");
@@ -371,7 +371,7 @@ var readBoundedUtf8File = /* @__PURE__ */ __name(async (path, { maxBytes }) => {
371
371
  }
372
372
  }, "readBoundedUtf8File");
373
373
 
374
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/files/safe-name.js
374
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/files/safe-name.js
375
375
  import { basename as basename3 } from "node:path";
376
376
  var safeName = /* @__PURE__ */ __name((name, platform = process.platform) => {
377
377
  let plain = name === void 0 ? "" : basename3(name.replaceAll("\\", "/")).replace(/[\p{Cc}​-‏‪-‮⁦-⁩]/gu, "").replace(/^\.+/, "");
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/background/processes.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/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) => {
@@ -2,11 +2,11 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  LEVELS
5
- } from "./chunk-OMLVWOEF.js";
5
+ } from "./chunk-P6MQ6FS4.js";
6
6
  import {
7
7
  WORD_BODY,
8
8
  e164Of
9
- } from "./chunk-K5JFX5TK.js";
9
+ } from "./chunk-K5E5MB4C.js";
10
10
  import {
11
11
  resolvePaths,
12
12
  writeSecurely
@@ -40,7 +40,7 @@ import {
40
40
  __name
41
41
  } from "./chunk-ZVVMGPBJ.js";
42
42
 
43
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/domain/vcard.js
43
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/vcard.js
44
44
  import { createHash } from "node:crypto";
45
45
  var MAX_ID = 512;
46
46
  var AS_WORD = new RegExp(`^${WORD_BODY}$`);
@@ -271,7 +271,7 @@ var envelopeOfVcard = /* @__PURE__ */ __name((text, { provider, account, batchId
271
271
  };
272
272
  }, "envelopeOfVcard");
273
273
 
274
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/domain/formatting.js
274
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/formatting.js
275
275
  var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "the messenger formatter returned invalid text spans"), "invalid");
276
276
  var validateFormattedText = /* @__PURE__ */ __name((formatted) => {
277
277
  const { text, spans } = formatted;
@@ -331,7 +331,7 @@ var visibleFormattedText = /* @__PURE__ */ __name((formatted) => {
331
331
  };
332
332
  }, "visibleFormattedText");
333
333
 
334
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/moderation/check.js
334
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/moderation/check.js
335
335
  var INVITE = /max\.ru\/join\/|(t|telegram)\.me\/(\+|joinchat\/)|tg:\/\/join/i;
336
336
  var LINK = /https?:\/\/\S+/i;
337
337
  var STRENGTH = { report: 0, delete: 1, remove: 2 };
@@ -519,7 +519,7 @@ var nextPoint = /* @__PURE__ */ __name((rows, found) => {
519
519
  }, "nextPoint");
520
520
  var someUndone = /* @__PURE__ */ __name((rows) => rows.some(undone), "someUndone");
521
521
 
522
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/moderation/rules.js
522
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/moderation/rules.js
523
523
  import { existsSync, readFileSync } from "node:fs";
524
524
  import { join } from "node:path";
525
525
  var RULE_ACTIONS = ["report", "delete", "remove"];