@wirecat/amo-cli 0.3.0 → 0.5.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 (175) hide show
  1. package/CHANGELOG.md +52 -0
  2. package/README.md +8 -4
  3. package/contracts/wirecat.json +15 -14
  4. package/dist/amo/allow-list.d.ts +1 -1
  5. package/dist/amo/allow-list.d.ts.map +1 -1
  6. package/dist/amo/operation.d.ts +1 -1
  7. package/dist/amo/operation.d.ts.map +1 -1
  8. package/dist/bin/amo.js +2 -2
  9. package/dist/bundle/agent-EFMUK732.js +41 -0
  10. package/dist/bundle/{all-profiles-PPUN52SP.js → all-profiles-PIWUQWBA.js} +11 -11
  11. package/dist/bundle/amo.js +28 -28
  12. package/dist/bundle/{anthropic-RDNDT6ZP.js → anthropic-47CMXBPQ.js} +5 -5
  13. package/dist/bundle/{app-server-MMALJDBP.js → app-server-QRBQODF2.js} +70 -69
  14. package/dist/bundle/areas-QVHVU57Z.js +63 -0
  15. package/dist/bundle/{bun-Y4FRPURU.js → bun-OPDGMZZQ.js} +2 -2
  16. package/dist/bundle/{bun-sqlite-7NXJGZCO.js → bun-sqlite-7I4X7CZW.js} +6 -6
  17. package/dist/bundle/{chunk-OMH3WP7F.js → chunk-2JHVQMVC.js} +1 -1
  18. package/dist/bundle/{chunk-MPXKBF37.js → chunk-2XBDILVW.js} +1 -1
  19. package/dist/bundle/{chunk-XI75EKLG.js → chunk-3DEQUYEG.js} +9 -9
  20. package/dist/bundle/{chunk-TWZF7VO6.js → chunk-3GX6KM2E.js} +1666 -163
  21. package/dist/bundle/{chunk-E2DLRLJ5.js → chunk-3HC5F3P7.js} +1 -1
  22. package/dist/bundle/{chunk-D6UPCAPD.js → chunk-3PYE55JY.js} +1 -1
  23. package/dist/bundle/{chunk-UM6SDFB6.js → chunk-3YM4B2GT.js} +1 -1
  24. package/dist/bundle/{chunk-JTFAG3BX.js → chunk-43OW5NTG.js} +6 -6
  25. package/dist/bundle/{chunk-ZIFEIJRK.js → chunk-43PMSR33.js} +13 -9
  26. package/dist/bundle/{chunk-5DPMNYQT.js → chunk-4N7PP76S.js} +1 -1
  27. package/dist/bundle/{chunk-XM2G62YF.js → chunk-4VN7RI4I.js} +5 -7
  28. package/dist/bundle/{chunk-5POLHHDZ.js → chunk-57HFPNMF.js} +8 -8
  29. package/dist/bundle/{chunk-CQ472K6W.js → chunk-5UTB3ADZ.js} +11 -11
  30. package/dist/bundle/{chunk-3NDMVXGS.js → chunk-633NQY2R.js} +3 -3
  31. package/dist/bundle/{chunk-VPBSZ4HQ.js → chunk-63N46DJU.js} +220 -234
  32. package/dist/bundle/{chunk-SJZ52MZE.js → chunk-6D4VWSJD.js} +6 -6
  33. package/dist/bundle/{chunk-Q2YVY7IR.js → chunk-6JTHXWPE.js} +3 -3
  34. package/dist/bundle/{chunk-QQT7WUR4.js → chunk-6QGUK3H7.js} +4 -4
  35. package/dist/bundle/{chunk-AYR6FIXN.js → chunk-6WS6GJ4V.js} +2 -2
  36. package/dist/bundle/{chunk-N4A6E2LL.js → chunk-7IR2G5XY.js} +16 -16
  37. package/dist/bundle/{chunk-7Z6NYSAN.js → chunk-7IWIFVXH.js} +4 -4
  38. package/dist/bundle/{chunk-LOSOWTAZ.js → chunk-ABX7BBS4.js} +6 -6
  39. package/dist/bundle/{chunk-3YOZTGZ6.js → chunk-ADTI5RUO.js} +6 -6
  40. package/dist/bundle/{chunk-QHA33ZS6.js → chunk-AKRIUNYP.js} +7 -7
  41. package/dist/bundle/{chunk-KZDBO2FT.js → chunk-BIKOE2IW.js} +7 -7
  42. package/dist/bundle/{chunk-VY27K2SH.js → chunk-BVVMIAQ6.js} +769 -692
  43. package/dist/bundle/{chunk-SBQ5MFHM.js → chunk-CGW5R4UD.js} +7 -7
  44. package/dist/bundle/{chunk-UZLT6VSP.js → chunk-D4NE7EON.js} +3 -3
  45. package/dist/bundle/{chunk-L2ZQDTDU.js → chunk-DNCLQPOM.js} +1 -1
  46. package/dist/bundle/{chunk-VFU25P57.js → chunk-DPV53EZC.js} +4 -4
  47. package/dist/bundle/{chunk-KEOKH2OZ.js → chunk-DQ6S5TFZ.js} +185 -114
  48. package/dist/bundle/{chunk-5RXH35ZA.js → chunk-DSJ6EAOA.js} +61 -61
  49. package/dist/bundle/{chunk-HQH4YPO5.js → chunk-DVZ75WZJ.js} +157 -35
  50. package/dist/bundle/{chunk-VEGNZPQU.js → chunk-EHK73OSW.js} +38 -24
  51. package/dist/bundle/{chunk-IEAPNTHT.js → chunk-FNV5HLHX.js} +17 -17
  52. package/dist/bundle/{chunk-FPDTIQOK.js → chunk-FV4GQNIK.js} +2 -2
  53. package/dist/bundle/{chunk-7USADF2W.js → chunk-G2TU5RYY.js} +6 -6
  54. package/dist/bundle/{chunk-IDQ7BNCZ.js → chunk-GDK7ETSB.js} +12 -12
  55. package/dist/bundle/{chunk-B4ITT55D.js → chunk-GGMAIIVE.js} +1 -1
  56. package/dist/bundle/{chunk-NJ2LJKNH.js → chunk-GLYWZQY4.js} +3 -3
  57. package/dist/bundle/{chunk-XDT74W5P.js → chunk-H4AFNENN.js} +34 -29
  58. package/dist/bundle/{chunk-2YEDK2XV.js → chunk-HOF7GQWW.js} +4 -4
  59. package/dist/bundle/{chunk-H34RBRS3.js → chunk-HSPEU6S7.js} +8 -8
  60. package/dist/bundle/{chunk-VJHOBOJR.js → chunk-IA7LLLEI.js} +3 -3
  61. package/dist/bundle/{chunk-YSOGGUK3.js → chunk-IB55P46L.js} +6 -6
  62. package/dist/bundle/{chunk-PFZ7WG2B.js → chunk-IG2TJQJ7.js} +3 -3
  63. package/dist/bundle/{chunk-CUZISGWH.js → chunk-JG6LCSEX.js} +13 -13
  64. package/dist/bundle/{chunk-MMOEAH5G.js → chunk-JLXXUEAM.js} +2 -2
  65. package/dist/bundle/{chunk-3RP57VDS.js → chunk-JXT6GY4V.js} +174 -62
  66. package/dist/bundle/{chunk-7SBAHYZW.js → chunk-K7YY6SXR.js} +19 -15
  67. package/dist/bundle/{chunk-TCDER3G7.js → chunk-KEKXERBE.js} +14883 -11912
  68. package/dist/bundle/{chunk-JZ2AITOE.js → chunk-KZ2FIDI3.js} +3 -3
  69. package/dist/bundle/{chunk-ILUREFWJ.js → chunk-KZN2BG3P.js} +8 -8
  70. package/dist/bundle/{chunk-L3JDQNBC.js → chunk-LKH3UKLO.js} +4 -4
  71. package/dist/bundle/{chunk-UA7C57IB.js → chunk-LZPKBN3C.js} +2 -2
  72. package/dist/bundle/{chunk-FI2TP6TY.js → chunk-M6VZXAJC.js} +3 -3
  73. package/dist/bundle/{chunk-7VSYOMEH.js → chunk-MDEPJZYJ.js} +2 -2
  74. package/dist/bundle/{chunk-WBWVBEHH.js → chunk-NB7EOAUZ.js} +8 -1
  75. package/dist/bundle/{chunk-LYRICHEK.js → chunk-NISH4UXM.js} +2 -2
  76. package/dist/bundle/{chunk-VD7HD25M.js → chunk-NSKMNIY6.js} +9 -9
  77. package/dist/bundle/chunk-PPSAWFJD.js +1293 -0
  78. package/dist/bundle/{chunk-7E6QSIRQ.js → chunk-Q7ICVP25.js} +1 -1
  79. package/dist/bundle/{chunk-BKTLAXUK.js → chunk-QFOP3KUP.js} +8 -8
  80. package/dist/bundle/{chunk-ORFLQGWH.js → chunk-R53XXHEI.js} +4 -4
  81. package/dist/bundle/{chunk-UOPP6ORQ.js → chunk-RIMPFMZE.js} +28 -179
  82. package/dist/bundle/{chunk-MYMBPQPQ.js → chunk-RN6RT5CB.js} +4 -4
  83. package/dist/bundle/{chunk-BYVDMPLX.js → chunk-RRTMPSQR.js} +2 -2
  84. package/dist/bundle/{chunk-R23DRW2T.js → chunk-S4ZHQMNM.js} +5 -5
  85. package/dist/bundle/{chunk-GCUFGDKE.js → chunk-S6JG4YUH.js} +2 -2
  86. package/dist/bundle/{chunk-W4KY5JF5.js → chunk-TAVI73RW.js} +2 -2
  87. package/dist/bundle/{chunk-KTLCQ7GC.js → chunk-TLG6ECZ2.js} +2 -2
  88. package/dist/bundle/{chunk-V3ZWYMXT.js → chunk-TXDR6YSF.js} +1 -1
  89. package/dist/bundle/{chunk-KKXF6TSS.js → chunk-TY7NDMFY.js} +1 -1
  90. package/dist/bundle/{chunk-YVO2YGML.js → chunk-U5RJJ2EC.js} +8 -8
  91. package/dist/bundle/{chunk-I4QCJZW7.js → chunk-UDSL3MUU.js} +8 -8
  92. package/dist/bundle/{chunk-SJYVKR54.js → chunk-V2CNGXWX.js} +37 -37
  93. package/dist/bundle/{chunk-L72UALL5.js → chunk-VB7FZOYX.js} +1 -1
  94. package/dist/bundle/{chunk-T6D34X5S.js → chunk-VZ5PPYDG.js} +1 -1
  95. package/dist/bundle/{chunk-FPIUFSWK.js → chunk-W5JRXIG6.js} +826 -1619
  96. package/dist/bundle/{chunk-ELJGALVX.js → chunk-WIHN3ELW.js} +19 -19
  97. package/dist/bundle/chunk-WOPVBRPV.js +29 -0
  98. package/dist/bundle/{chunk-4MVTSMWP.js → chunk-WUFX4TKA.js} +2 -2
  99. package/dist/bundle/{chunk-GKP7CKW2.js → chunk-WXJYMMEL.js} +6 -6
  100. package/dist/bundle/{chunk-UT3ODJMI.js → chunk-XCCU2E3Z.js} +4 -4
  101. package/dist/bundle/{chunk-EHULZEXQ.js → chunk-XEQQJBBO.js} +1 -1
  102. package/dist/bundle/{chunk-EKNP326Q.js → chunk-XUT7DSM5.js} +2 -2
  103. package/dist/bundle/{chunk-4EYPFFTN.js → chunk-YWDFYQOU.js} +2 -2
  104. package/dist/bundle/{chunk-IYUWVMGP.js → chunk-ZLUIRFJX.js} +37 -18
  105. package/dist/bundle/{cli-GAO7LDDA.js → cli-3NXOSENF.js} +104 -105
  106. package/dist/bundle/command-contract-LNSAV5LA.js +39 -0
  107. package/dist/bundle/{command-server-entry-BCDJP7XE.js → command-server-entry-4ZQPNUL4.js} +28 -28
  108. package/dist/bundle/{decode-OY2GR442.js → decode-K7U7X5EL.js} +5 -5
  109. package/dist/bundle/{dispatch-JWEJCBTF.js → dispatch-56FECRCU.js} +8 -8
  110. package/dist/bundle/{echarts-AHEPEA5P.js → echarts-O3TNDAXJ.js} +2 -2
  111. package/dist/bundle/{embed-RVSUV54Z.js → embed-SWLVG73O.js} +6 -6
  112. package/dist/bundle/{embedder-GRZXZUXR.js → embedder-EJN75BPV.js} +9 -9
  113. package/dist/bundle/{failure-DDCSR54L.js → failure-WDSX6H3B.js} +2 -2
  114. package/dist/bundle/{first-run-G3WI4DH4.js → first-run-WPGUUC4Z.js} +12 -12
  115. package/dist/bundle/first-screen-JMNEUQ46.js +40 -0
  116. package/dist/bundle/{instructions-NWQC5IP4.js → instructions-AMH5RWVJ.js} +1 -1
  117. package/dist/bundle/{mcp-KGWT6TGO.js → mcp-5HFPWC3W.js} +2 -2
  118. package/dist/bundle/meeting-combined-5TKG2RYD.js +24 -0
  119. package/dist/bundle/{meeting-model-I6T5HIZ5.js → meeting-model-YXXNETKC.js} +11 -11
  120. package/dist/bundle/{meeting-semantic-47UA5JBF.js → meeting-semantic-U7EUB3ET.js} +6 -6
  121. package/dist/bundle/{node-7VXN7F4B.js → node-EGMCBAO7.js} +2 -2
  122. package/dist/bundle/{node-sqlite-BSEON57L.js → node-sqlite-YVOGMDSP.js} +7 -7
  123. package/dist/bundle/{oauth-V6UAT4YD.js → oauth-2SNRBIJM.js} +7 -7
  124. package/dist/bundle/{open-7LVAY7ZU.js → open-ABCPY5IH.js} +5 -5
  125. package/dist/bundle/{openai-OIEH342H.js → openai-4D6PXJR7.js} +15 -15
  126. package/dist/bundle/{process-PTUCNLZ7.js → process-SGHEN6MQ.js} +1 -1
  127. package/dist/bundle/{program-S5WY5IZP.js → program-CBDQBZZ3.js} +1319 -1079
  128. package/dist/bundle/{prompt-7XWTEQ62.js → prompt-2QUK5QST.js} +5 -5
  129. package/dist/bundle/{recognize-HGIAJXDR.js → recognize-QMQSJRIH.js} +4 -4
  130. package/dist/bundle/{remote-X4SVEMHS.js → remote-U7TC2BLZ.js} +9 -9
  131. package/dist/bundle/{rerank-QWM3DQMU.js → rerank-5UPVXGVV.js} +7 -7
  132. package/dist/bundle/{serve-VVG3TXYT.js → serve-VX6GUM6J.js} +9 -9
  133. package/dist/bundle/{server-EHYK62BJ.js → server-FOPC6DJ3.js} +62 -61
  134. package/dist/bundle/server-OIVNOMVK.js +87 -0
  135. package/dist/bundle/source-HWS5SJIV.js +46 -0
  136. package/dist/bundle/{sqlite-runtime-MCKXDNYC.js → sqlite-runtime-77NKDEXN.js} +6 -6
  137. package/dist/bundle/{state-MYNYQJCT.js → state-X2HU6GB2.js} +6 -6
  138. package/dist/bundle/{store-B7O3F3QB.js → store-2U4U6KL4.js} +22 -22
  139. package/dist/bundle/{store-FPIU2546.js → store-3CHPHFP7.js} +30 -24
  140. package/dist/bundle/store-Z3747L5F.js +34 -0
  141. package/dist/bundle/store-maintenance-command-UOSZJTVP.js +74 -0
  142. package/dist/bundle/surface-MUT72QON.js +73 -0
  143. package/dist/bundle/writer-RBKQ64ZM.js +48 -0
  144. package/dist/commands/account.d.ts +3 -2
  145. package/dist/commands/account.d.ts.map +1 -1
  146. package/dist/commands/account.js +38 -77
  147. package/dist/commands/account.js.map +1 -1
  148. package/dist/commands/crm-shared.d.ts.map +1 -1
  149. package/dist/commands/crm-shared.js +3 -1
  150. package/dist/commands/crm-shared.js.map +1 -1
  151. package/dist/commands/session.d.ts +0 -6
  152. package/dist/commands/session.d.ts.map +1 -1
  153. package/dist/commands/session.js +9 -34
  154. package/dist/commands/session.js.map +1 -1
  155. package/dist/program.d.ts.map +1 -1
  156. package/dist/program.js +0 -2
  157. package/dist/program.js.map +1 -1
  158. package/dist/reasons.d.ts.map +1 -1
  159. package/dist/reasons.js +0 -2
  160. package/dist/reasons.js.map +1 -1
  161. package/dist/version.d.ts +1 -1
  162. package/dist/version.js +1 -1
  163. package/package.json +4 -4
  164. package/skills/amo-cli/SKILL.md +6 -0
  165. package/dist/bundle/agent-FDNP27SW.js +0 -40
  166. package/dist/bundle/chunk-77FP6AWC.js +0 -1266
  167. package/dist/bundle/command-contract-RLIBGIDT.js +0 -39
  168. package/dist/bundle/first-screen-6MLCMW2U.js +0 -39
  169. package/dist/bundle/meeting-combined-SVTFVZNJ.js +0 -24
  170. package/dist/bundle/server-WRPTBVNW.js +0 -86
  171. package/dist/bundle/source-YISMYLBQ.js +0 -44
  172. package/dist/bundle/store-A7R2SZVD.js +0 -34
  173. package/dist/bundle/store-maintenance-command-D55FRTIK.js +0 -73
  174. package/dist/bundle/surface-3EX6IGHW.js +0 -72
  175. package/dist/bundle/writer-XDHZ54JD.js +0 -46
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/mcp/bot/instructions.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/mcp/bot/instructions.js
8
8
  var botInstructions = /* @__PURE__ */ __name(({ command, name, profile, writes, skill }) => [
9
9
  `The owner's ${name} bot "${profile}", through the official Bot API \u2014 not the owner's personal account. What it writes, people see as the bot.`,
10
10
  "Use these tools to read the chats this bot is in, find a message or a person, and \u2014 when the profile allows \u2014 write as the bot.",
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  values_exports
5
- } from "./chunk-TWZF7VO6.js";
5
+ } from "./chunk-3GX6KM2E.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/background/processes.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/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
  throughWrapper
5
- } from "./chunk-AYR6FIXN.js";
5
+ } from "./chunk-6WS6GJ4V.js";
6
6
  import {
7
7
  environmentOf,
8
8
  readOnlyLockOf
9
- } from "./chunk-VPBSZ4HQ.js";
9
+ } from "./chunk-63N46DJU.js";
10
10
  import {
11
11
  array,
12
12
  boolean,
@@ -16,15 +16,15 @@ import {
16
16
  safeParse,
17
17
  strictObject,
18
18
  string
19
- } from "./chunk-BKTLAXUK.js";
19
+ } from "./chunk-QFOP3KUP.js";
20
20
  import {
21
21
  CliError
22
- } from "./chunk-GCUFGDKE.js";
22
+ } from "./chunk-S6JG4YUH.js";
23
23
  import {
24
24
  __name
25
25
  } from "./chunk-ZVVMGPBJ.js";
26
26
 
27
- // node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/background/relay.js
27
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/background/relay.js
28
28
  import { createHash } from "node:crypto";
29
29
  import { chmodSync, lstatSync, mkdirSync, rmSync } from "node:fs";
30
30
  import { createConnection, createServer } from "node:net";
@@ -245,7 +245,7 @@ var relayCommand = /* @__PURE__ */ __name((path, request, options) => new Promis
245
245
  }, () => finish({ error: stopped() }));
246
246
  }), "relayCommand");
247
247
 
248
- // node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-relay.js
248
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-relay.js
249
249
  var lentConnection = /* @__PURE__ */ __name((connection, watchers) => throughWrapper(connection, {
250
250
  close: /* @__PURE__ */ __name(async () => {
251
251
  }, "close"),
@@ -2,11 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  WIRECAT_TOOLS
5
- } from "./chunk-WBWVBEHH.js";
5
+ } from "./chunk-NB7EOAUZ.js";
6
+ import {
7
+ hasOwnAction,
8
+ isHidden
9
+ } from "./chunk-WOPVBRPV.js";
6
10
  import {
7
11
  commandPathOf,
8
12
  outputOf
9
- } from "./chunk-R23DRW2T.js";
13
+ } from "./chunk-S4ZHQMNM.js";
10
14
  import {
11
15
  Command,
12
16
  Help,
@@ -17,21 +21,21 @@ import {
17
21
  environmentOf,
18
22
  metaOf,
19
23
  takesProfile
20
- } from "./chunk-VPBSZ4HQ.js";
24
+ } from "./chunk-63N46DJU.js";
21
25
  import {
22
26
  wrapAnsi
23
27
  } from "./chunk-EH6ZEJGT.js";
24
28
  import {
25
29
  writes
26
- } from "./chunk-BKTLAXUK.js";
30
+ } from "./chunk-QFOP3KUP.js";
27
31
  import {
28
32
  CliError
29
- } from "./chunk-GCUFGDKE.js";
33
+ } from "./chunk-S6JG4YUH.js";
30
34
  import {
31
35
  __name
32
36
  } from "./chunk-ZVVMGPBJ.js";
33
37
 
34
- // node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/cli/help/command-help.js
38
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/cli/help/command-help.js
35
39
  var ARGUMENT_KINDS = {
36
40
  chat: "chat",
37
41
  chats: "chat",
@@ -109,8 +113,8 @@ var nextUsually = /* @__PURE__ */ __name((command, choice) => {
109
113
  return command;
110
114
  }, "nextUsually");
111
115
  var kindOfArgument = /* @__PURE__ */ __name((argument) => ARGUMENT_KINDS[argument.name()], "kindOfArgument");
112
- var runs = /* @__PURE__ */ __name((command) => command.commands.length === 0 || Boolean(command._actionHandler), "runs");
113
- var leaves = /* @__PURE__ */ __name((command) => command.commands.filter((child) => !child._hidden).flatMap((child) => [...runs(child) ? [child] : [], ...leaves(child)]), "leaves");
116
+ var runs = /* @__PURE__ */ __name((command) => command.commands.length === 0 || hasOwnAction(command), "runs");
117
+ var leaves = /* @__PURE__ */ __name((command) => command.commands.filter((child) => !isHidden(child)).flatMap((child) => [...runs(child) ? [child] : [], ...leaves(child)]), "leaves");
114
118
  var rootOf = /* @__PURE__ */ __name((command) => {
115
119
  let at = command;
116
120
  while (at.parent)
@@ -253,7 +257,7 @@ var exampleReport = /* @__PURE__ */ __name((program) => {
253
257
  return { written, generated, text };
254
258
  }, "exampleReport");
255
259
 
256
- // node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/cli/help/first-screen.js
260
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/cli/help/first-screen.js
257
261
  var WIDTH = 100;
258
262
  var widest = /* @__PURE__ */ __name((texts) => texts.reduce((most, text) => Math.max(most, text.length), 0), "widest");
259
263
  var block = /* @__PURE__ */ __name((title, rows, column) => rows.length === 0 ? [] : ["", `${title}:`, ...rows.map(([left, right]) => ` ${left.padEnd(column)}${right}`)], "block");
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/shared-5XR7K42U.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/shared-5XR7K42U.js
8
8
  var entityKind = /* @__PURE__ */ Symbol.for("drizzle:entityKind");
9
9
  var kindsByConstructor = /* @__PURE__ */ new WeakMap();
10
10
  function collectKinds(ctor) {
@@ -2,18 +2,18 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  REASONS
5
- } from "./chunk-3RP57VDS.js";
5
+ } from "./chunk-JXT6GY4V.js";
6
6
  import {
7
7
  RECORD_TYPES
8
- } from "./chunk-VEGNZPQU.js";
8
+ } from "./chunk-EHK73OSW.js";
9
9
  import {
10
10
  defineReasons
11
- } from "./chunk-BKTLAXUK.js";
11
+ } from "./chunk-QFOP3KUP.js";
12
12
  import {
13
13
  __name
14
14
  } from "./chunk-ZVVMGPBJ.js";
15
15
 
16
- // node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/domain/records-table.js
16
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/domain/records-table.js
17
17
  var TABLE_RECORD_TYPES = Object.keys(RECORD_TYPES).filter((type) => RECORD_TYPES[type].sheet !== false);
18
18
 
19
19
  // node_modules/.pnpm/qrcode-generator@2.0.4/node_modules/qrcode-generator/dist/qrcode.mjs
@@ -1658,8 +1658,6 @@ var OWN = [
1658
1658
  ["connect.url-invalid", "configuration_error", "AMO_CONNECT_URL is not an https address"],
1659
1659
  ["oauth.browser-amocrm-only", "validation_error", "the browser sign-in works only for amoCRM accounts at amocrm.ru"],
1660
1660
  ["session.expired", "authentication_error", "amoCRM refused the token: it expired or was revoked"],
1661
- ["session.duplicate", "conflict", "another profile here already signs in to this account as this user"],
1662
- ["account-remove.account-shared", "conflict", "another profile reads the same account, whose copy the store shares"],
1663
1661
  ["amo.subscription-ended", "permission_error", "the amoCRM subscription has ended"],
1664
1662
  ["amo.access-denied", "permission_error", "the token's user may not do this in amoCRM"],
1665
1663
  ["amo.blocked", "permission_error", "amoCRM blocks every request from here"],
@@ -1680,7 +1678,7 @@ var REASONS2 = defineReasons(OWN.filter(([reason]) => !CORE.has(reason)).map(([r
1680
1678
  var DETAILS2 = ["fields", "account", "profiles"];
1681
1679
 
1682
1680
  // dist/version.js
1683
- var VERSION = "0.3.0";
1681
+ var VERSION = "0.5.0";
1684
1682
 
1685
1683
  // dist/identity.js
1686
1684
  var PACKAGE = "@wirecat/amo-cli";
@@ -2,33 +2,33 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  stdinFieldOf
5
- } from "./chunk-7E6QSIRQ.js";
5
+ } from "./chunk-Q7ICVP25.js";
6
6
  import {
7
7
  commandPathOf
8
- } from "./chunk-R23DRW2T.js";
8
+ } from "./chunk-S4ZHQMNM.js";
9
9
  import {
10
10
  commandServerRequest,
11
11
  metaOf
12
- } from "./chunk-VPBSZ4HQ.js";
12
+ } from "./chunk-63N46DJU.js";
13
13
  import {
14
14
  errorObjectOf,
15
15
  renderError
16
- } from "./chunk-BKTLAXUK.js";
16
+ } from "./chunk-QFOP3KUP.js";
17
17
  import {
18
18
  CliError
19
- } from "./chunk-GCUFGDKE.js";
19
+ } from "./chunk-S6JG4YUH.js";
20
20
  import {
21
21
  __name
22
22
  } from "./chunk-ZVVMGPBJ.js";
23
23
 
24
- // node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/cli/command-server.js
24
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/cli/command-server.js
25
25
  import { createInterface } from "node:readline";
26
26
 
27
- // node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/cli/command-server-argv.js
27
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/cli/command-server-argv.js
28
28
  var COMMAND_SERVER_ARGV = ["commands", "--serve"];
29
29
  var isCommandServer = /* @__PURE__ */ __name((args) => args.length === COMMAND_SERVER_ARGV.length && COMMAND_SERVER_ARGV.every((word, at) => args[at] === word), "isCommandServer");
30
30
 
31
- // node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/cli/command-server.js
31
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/cli/command-server.js
32
32
  var COMMAND_SERVER_PROTOCOL = 1;
33
33
  var COMMAND_SERVER_IDLE_MS = 10 * 6e4;
34
34
  var COMMAND_SERVER_CONCURRENT = 8;
@@ -2,19 +2,19 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  validateVector
5
- } from "./chunk-UZLT6VSP.js";
5
+ } from "./chunk-D4NE7EON.js";
6
6
  import {
7
7
  meaningFloor
8
- } from "./chunk-YSOGGUK3.js";
8
+ } from "./chunk-IB55P46L.js";
9
9
  import {
10
10
  RRF_K
11
- } from "./chunk-ILUREFWJ.js";
11
+ } from "./chunk-KZN2BG3P.js";
12
12
  import {
13
13
  MESSAGE_PARSING
14
- } from "./chunk-PFZ7WG2B.js";
14
+ } from "./chunk-IG2TJQJ7.js";
15
15
  import {
16
16
  normalize
17
- } from "./chunk-OMH3WP7F.js";
17
+ } from "./chunk-2JHVQMVC.js";
18
18
  import {
19
19
  formatMeetingReference,
20
20
  implicitTextTerms,
@@ -23,18 +23,18 @@ import {
23
23
  parseMeetingReference,
24
24
  refreshMeetingIndex,
25
25
  walkQuery
26
- } from "./chunk-5RXH35ZA.js";
26
+ } from "./chunk-DSJ6EAOA.js";
27
27
  import {
28
28
  CliError
29
- } from "./chunk-GCUFGDKE.js";
29
+ } from "./chunk-S6JG4YUH.js";
30
30
  import {
31
31
  __name
32
32
  } from "./chunk-ZVVMGPBJ.js";
33
33
 
34
- // node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/services/meeting-combined.js
34
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/services/meeting-combined.js
35
35
  import { createHash } from "node:crypto";
36
36
 
37
- // node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/search/question-plan.js
37
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/search/question-plan.js
38
38
  var words = /* @__PURE__ */ __name((text) => normalize(text).match(/[\p{L}\p{N}]+/gu) ?? [], "words");
39
39
  var joinedHyphens = /* @__PURE__ */ __name((text) => (normalize(text).match(new RegExp("(?<![:\\p{L}\\p{N}-])\\p{L}[\\p{L}\\p{N}]*(?:-\\p{L}[\\p{L}\\p{N}]*)+", "gu")) ?? []).map((word) => word.replaceAll("-", "")), "joinedHyphens");
40
40
  var scaffolding = new Set(words("what which how many much who where when is are was were do does did can could should we the a an for of to under from in on at has have \u0441\u043A\u043E\u043B\u044C\u043A\u043E \u043A\u0430\u043A\u043E\u0439 \u043A\u0430\u043A\u0430\u044F \u043A\u0430\u043A\u0438\u0435 \u043A\u0430\u043A\u043E\u0435 \u043A\u0442\u043E \u043A\u043E\u043C\u0443 \u043A\u0435\u043C \u0433\u0434\u0435 \u043A\u043E\u0433\u0434\u0430 \u043A\u0430\u043A \u0447\u0442\u043E \u0432\u043E \u043F\u043E \u043D\u0430 \u0432 \u043A \u0441 \u0443 \u0447\u0435\u0440\u0435\u0437 \u043B\u0438 \u0434\u043E\u043B\u0436\u0435\u043D \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0443\u0436\u043D\u043E \u0438\u0434\u0451\u0442 \u0438\u0434\u0435\u0442 \u043C\u043E\u0436\u043D\u043E \u043C\u043E\u0436\u0435\u0442 \u043C\u043E\u0433\u0443\u0442"));
@@ -171,7 +171,7 @@ var questionLookup = /* @__PURE__ */ __name((text) => {
171
171
  return terms.length ? anyOfTerms(terms, plan.scope) : void 0;
172
172
  }, "questionLookup");
173
173
 
174
- // node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/services/meeting-hit-search.js
174
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/services/meeting-hit-search.js
175
175
  var resolveMeetingSelection = /* @__PURE__ */ __name(async (store, request) => {
176
176
  const { project, tag, topic, ...input } = request;
177
177
  input.signal?.throwIfAborted();
@@ -209,7 +209,7 @@ var resolveMeetingSelection = /* @__PURE__ */ __name(async (store, request) => {
209
209
  return { input, selection };
210
210
  }, "resolveMeetingSelection");
211
211
 
212
- // node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/services/meeting-combined.js
212
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/services/meeting-combined.js
213
213
  var DEPTH = 200;
214
214
  var cursorOf = /* @__PURE__ */ __name((value, key) => {
215
215
  if (value === void 0)
@@ -3,15 +3,15 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  timezoneOf,
5
5
  zonedMoment
6
- } from "./chunk-5RXH35ZA.js";
6
+ } from "./chunk-DSJ6EAOA.js";
7
7
  import {
8
8
  CliError
9
- } from "./chunk-GCUFGDKE.js";
9
+ } from "./chunk-S6JG4YUH.js";
10
10
  import {
11
11
  __name
12
12
  } from "./chunk-ZVVMGPBJ.js";
13
13
 
14
- // node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/domain/moment.js
14
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/domain/moment.js
15
15
  var calendarMoment = /* @__PURE__ */ __name((wanted, flag, { zone, end = false } = {}) => {
16
16
  try {
17
17
  return zonedMoment(wanted, timezoneOf(zone), { start: 0, end: wanted.length }, { end });