@wirecat/amo-cli 0.5.0 → 0.6.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 (152) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/amo/oauth.d.ts.map +1 -1
  3. package/dist/amo/oauth.js +3 -4
  4. package/dist/amo/oauth.js.map +1 -1
  5. package/dist/amo/transport.d.ts.map +1 -1
  6. package/dist/amo/transport.js +3 -6
  7. package/dist/amo/transport.js.map +1 -1
  8. package/dist/bin/amo.js +2 -2
  9. package/dist/bundle/agent-VVACEKSX.js +42 -0
  10. package/dist/bundle/{all-profiles-PIWUQWBA.js → all-profiles-QNUKL4NA.js} +7 -7
  11. package/dist/bundle/amo.js +18 -18
  12. package/dist/bundle/{anthropic-47CMXBPQ.js → anthropic-PQN6MNP7.js} +2 -2
  13. package/dist/bundle/{app-server-QRBQODF2.js → app-server-Q2QEA7GP.js} +64 -63
  14. package/dist/bundle/{areas-QVHVU57Z.js → areas-27FRPBF3.js} +28 -20
  15. package/dist/bundle/{bun-OPDGMZZQ.js → bun-F4M4KCNA.js} +2 -2
  16. package/dist/bundle/{bun-sqlite-7I4X7CZW.js → bun-sqlite-P5IDBDVR.js} +3 -3
  17. package/dist/bundle/{chunk-RN6RT5CB.js → chunk-22KAQPX7.js} +3 -3
  18. package/dist/bundle/{chunk-43OW5NTG.js → chunk-2JGNMZ55.js} +4 -4
  19. package/dist/bundle/{chunk-TAVI73RW.js → chunk-2VDHC7QO.js} +2 -2
  20. package/dist/bundle/{chunk-3DEQUYEG.js → chunk-34ZOMVUK.js} +7 -7
  21. package/dist/bundle/{chunk-EHK73OSW.js → chunk-3J3EDSXF.js} +19 -97
  22. package/dist/bundle/{chunk-JLXXUEAM.js → chunk-3TYER5IK.js} +13 -5
  23. package/dist/bundle/{chunk-MDEPJZYJ.js → chunk-5NGLCDYQ.js} +2 -2
  24. package/dist/bundle/{chunk-63N46DJU.js → chunk-5SQTHOBI.js} +203 -168
  25. package/dist/bundle/{chunk-5UTB3ADZ.js → chunk-6GE36KUE.js} +10 -10
  26. package/dist/bundle/{chunk-DVZ75WZJ.js → chunk-6GZKY3HV.js} +10 -10
  27. package/dist/bundle/{chunk-CGW5R4UD.js → chunk-6OV2TRGF.js} +6 -6
  28. package/dist/bundle/{chunk-NSKMNIY6.js → chunk-7CPIZFOE.js} +6 -6
  29. package/dist/bundle/{chunk-BVVMIAQ6.js → chunk-A5K2NU3K.js} +394 -341
  30. package/dist/bundle/{chunk-6D4VWSJD.js → chunk-AEC4H5WZ.js} +5 -5
  31. package/dist/bundle/{chunk-4VN7RI4I.js → chunk-APBEDWOE.js} +4 -4
  32. package/dist/bundle/{chunk-VB7FZOYX.js → chunk-AQ5RIOUE.js} +1 -1
  33. package/dist/bundle/{chunk-FV4GQNIK.js → chunk-B7L5MSRP.js} +2 -2
  34. package/dist/bundle/{chunk-VZ5PPYDG.js → chunk-C7JPYWYQ.js} +1 -1
  35. package/dist/bundle/{chunk-H4AFNENN.js → chunk-DIZEHPS6.js} +30 -26
  36. package/dist/bundle/{chunk-43PMSR33.js → chunk-DUPCDJ3W.js} +7 -7
  37. package/dist/bundle/{chunk-ABX7BBS4.js → chunk-DWT24UVR.js} +1 -1
  38. package/dist/bundle/chunk-DXWJORSY.js +1703 -0
  39. package/dist/bundle/{chunk-G2TU5RYY.js → chunk-DY3PLWIH.js} +1 -1
  40. package/dist/bundle/{chunk-RIMPFMZE.js → chunk-DYWHAJRK.js} +23 -15
  41. package/dist/bundle/{chunk-R53XXHEI.js → chunk-EXRM3ML4.js} +2 -2
  42. package/dist/bundle/{chunk-JG6LCSEX.js → chunk-FFER7KJI.js} +12 -12
  43. package/dist/bundle/{chunk-6JTHXWPE.js → chunk-FIP2DG7W.js} +2 -2
  44. package/dist/bundle/{chunk-3HC5F3P7.js → chunk-FTH6WGYO.js} +1 -1
  45. package/dist/bundle/{chunk-3GX6KM2E.js → chunk-FWRLGIF6.js} +63 -61
  46. package/dist/bundle/{chunk-3PYE55JY.js → chunk-FYOPPKAN.js} +1 -1
  47. package/dist/bundle/{chunk-K7YY6SXR.js → chunk-G3N2RHGF.js} +12 -12
  48. package/dist/bundle/{chunk-NISH4UXM.js → chunk-G46PNDWL.js} +1 -1
  49. package/dist/bundle/{chunk-LKH3UKLO.js → chunk-G6NY7LFB.js} +3 -3
  50. package/dist/bundle/{chunk-M6VZXAJC.js → chunk-GOCMJBEE.js} +2 -2
  51. package/dist/bundle/{chunk-ADTI5RUO.js → chunk-GRGCZSES.js} +5 -5
  52. package/dist/bundle/{chunk-6WS6GJ4V.js → chunk-GVSKLZRD.js} +1 -1
  53. package/dist/bundle/{chunk-Q7ICVP25.js → chunk-GZ7WBU5Y.js} +1 -1
  54. package/dist/bundle/{chunk-FNV5HLHX.js → chunk-HN2LCLGT.js} +18 -18
  55. package/dist/bundle/{chunk-2JHVQMVC.js → chunk-HO4JGD4Q.js} +1 -1
  56. package/dist/bundle/{chunk-WOPVBRPV.js → chunk-HUAHLO6N.js} +1 -1
  57. package/dist/bundle/chunk-IDCZ4LWS.js +150 -0
  58. package/dist/bundle/{chunk-7IR2G5XY.js → chunk-IN3VL7UU.js} +15 -14
  59. package/dist/bundle/{chunk-NB7EOAUZ.js → chunk-ISQ23VKV.js} +1 -1
  60. package/dist/bundle/{chunk-633NQY2R.js → chunk-JVBCQHCS.js} +2 -2
  61. package/dist/bundle/{chunk-DQ6S5TFZ.js → chunk-K5W7YEHB.js} +61 -59
  62. package/dist/bundle/{chunk-LZPKBN3C.js → chunk-KAFSS35C.js} +1 -1
  63. package/dist/bundle/{chunk-IA7LLLEI.js → chunk-KLRCTMES.js} +2 -2
  64. package/dist/bundle/{chunk-GGMAIIVE.js → chunk-KYRYD4CR.js} +1 -1
  65. package/dist/bundle/{chunk-V2CNGXWX.js → chunk-LBZSURLL.js} +36 -36
  66. package/dist/bundle/{chunk-XEQQJBBO.js → chunk-LC7ZD2RW.js} +1 -1
  67. package/dist/bundle/{chunk-IB55P46L.js → chunk-LH6FJYMO.js} +4 -4
  68. package/dist/bundle/{chunk-HSPEU6S7.js → chunk-LJKINNWC.js} +6 -6
  69. package/dist/bundle/{chunk-GLYWZQY4.js → chunk-M36XP74N.js} +2 -2
  70. package/dist/bundle/chunk-MNPGZCKE.js +361 -0
  71. package/dist/bundle/{chunk-U5RJJ2EC.js → chunk-MRPMORLH.js} +7 -7
  72. package/dist/bundle/{chunk-57HFPNMF.js → chunk-NNREILWP.js} +6 -6
  73. package/dist/bundle/chunk-NSOY4FMN.js +159 -0
  74. package/dist/bundle/{chunk-2XBDILVW.js → chunk-OEEWVKJX.js} +1 -1
  75. package/dist/bundle/{chunk-6QGUK3H7.js → chunk-OGJFDKDL.js} +4 -4
  76. package/dist/bundle/{chunk-ZLUIRFJX.js → chunk-PATZAYFZ.js} +35 -362
  77. package/dist/bundle/{chunk-PPSAWFJD.js → chunk-PCR6GFNP.js} +39 -161
  78. package/dist/bundle/{chunk-XUT7DSM5.js → chunk-Q4MH2O5E.js} +2 -2
  79. package/dist/bundle/{chunk-AKRIUNYP.js → chunk-QQRJEWKB.js} +5 -5
  80. package/dist/bundle/{chunk-KZ2FIDI3.js → chunk-RNWUCAJJ.js} +2 -2
  81. package/dist/bundle/{chunk-BIKOE2IW.js → chunk-SDVUGWD7.js} +4 -4
  82. package/dist/bundle/{chunk-GDK7ETSB.js → chunk-SEFE6PGL.js} +10 -10
  83. package/dist/bundle/{chunk-WUFX4TKA.js → chunk-SWCJM3YD.js} +2 -2
  84. package/dist/bundle/{chunk-KEKXERBE.js → chunk-SYRDEMQE.js} +3664 -2704
  85. package/dist/bundle/{chunk-WXJYMMEL.js → chunk-SYYQZDHJ.js} +5 -5
  86. package/dist/bundle/{chunk-3YM4B2GT.js → chunk-T3W4V4A6.js} +1 -1
  87. package/dist/bundle/{chunk-4N7PP76S.js → chunk-TCT5D2X2.js} +1 -1
  88. package/dist/bundle/{chunk-YWDFYQOU.js → chunk-TES7MB6I.js} +1 -1
  89. package/dist/bundle/{chunk-S4ZHQMNM.js → chunk-U6XPWCWM.js} +3 -3
  90. package/dist/bundle/{chunk-W5JRXIG6.js → chunk-UFKC7TIX.js} +1213 -804
  91. package/dist/bundle/{chunk-XCCU2E3Z.js → chunk-UNWF3TH5.js} +3 -3
  92. package/dist/bundle/{chunk-UDSL3MUU.js → chunk-W3BOR6AT.js} +7 -7
  93. package/dist/bundle/{chunk-JXT6GY4V.js → chunk-X76RS6JO.js} +29 -9
  94. package/dist/bundle/{chunk-DSJ6EAOA.js → chunk-YF3S26TS.js} +51 -51
  95. package/dist/bundle/{chunk-TLG6ECZ2.js → chunk-ZCQ4H7CA.js} +1 -1
  96. package/dist/bundle/{chunk-D4NE7EON.js → chunk-ZOZV32IR.js} +2 -2
  97. package/dist/bundle/{chunk-7IWIFVXH.js → chunk-ZTKHXDEU.js} +3 -3
  98. package/dist/bundle/{cli-3NXOSENF.js → cli-EAD3WZLR.js} +81 -66
  99. package/dist/bundle/command-contract-SMEJ2ICG.js +40 -0
  100. package/dist/bundle/{command-server-entry-4ZQPNUL4.js → command-server-entry-YTZP6I4T.js} +25 -24
  101. package/dist/bundle/{decode-K7U7X5EL.js → decode-57BE5OBT.js} +2 -2
  102. package/dist/bundle/{echarts-O3TNDAXJ.js → echarts-QMAA7HH5.js} +2 -2
  103. package/dist/bundle/{embed-SWLVG73O.js → embed-NFGFYUO4.js} +3 -3
  104. package/dist/bundle/{embedder-EJN75BPV.js → embedder-SRBOJMXX.js} +6 -6
  105. package/dist/bundle/{first-run-WPGUUC4Z.js → first-run-HWRUL2GR.js} +6 -6
  106. package/dist/bundle/first-screen-ATN4D3FQ.js +41 -0
  107. package/dist/bundle/{instructions-AMH5RWVJ.js → instructions-4H7UREH2.js} +1 -1
  108. package/dist/bundle/meeting-combined-BGDEHCWY.js +26 -0
  109. package/dist/bundle/{meeting-model-YXXNETKC.js → meeting-model-WWGVRXPL.js} +8 -8
  110. package/dist/bundle/{meeting-semantic-U7EUB3ET.js → meeting-semantic-ZQ47BL2Z.js} +2 -2
  111. package/dist/bundle/{node-EGMCBAO7.js → node-P3PUHKYH.js} +2 -2
  112. package/dist/bundle/{node-sqlite-YVOGMDSP.js → node-sqlite-JOTSNH3P.js} +4 -4
  113. package/dist/bundle/{oauth-2SNRBIJM.js → oauth-XPSAL6VO.js} +4 -4
  114. package/dist/bundle/{open-ABCPY5IH.js → open-PO52FVA5.js} +2 -2
  115. package/dist/bundle/{openai-4D6PXJR7.js → openai-WITYLMY5.js} +12 -12
  116. package/dist/bundle/{process-SGHEN6MQ.js → process-AFIXYXWL.js} +1 -1
  117. package/dist/bundle/{program-CBDQBZZ3.js → program-JODTZNBZ.js} +107 -158
  118. package/dist/bundle/{prompt-2QUK5QST.js → prompt-XORLAXHY.js} +2 -2
  119. package/dist/bundle/{recognize-QMQSJRIH.js → recognize-JKMZHDYS.js} +1 -1
  120. package/dist/bundle/{remote-U7TC2BLZ.js → remote-3IMEJTEH.js} +6 -6
  121. package/dist/bundle/{rerank-5UPVXGVV.js → rerank-3F2E6NNN.js} +4 -4
  122. package/dist/bundle/{serve-VX6GUM6J.js → serve-6BWU3NMB.js} +6 -6
  123. package/dist/bundle/{server-FOPC6DJ3.js → server-GPSB5WFG.js} +56 -55
  124. package/dist/bundle/server-HMCC64ZU.js +88 -0
  125. package/dist/bundle/source-E72OS27D.js +47 -0
  126. package/dist/bundle/{sqlite-runtime-77NKDEXN.js → sqlite-runtime-YHYQDUXE.js} +3 -3
  127. package/dist/bundle/{state-X2HU6GB2.js → state-R7W4U6T4.js} +3 -3
  128. package/dist/bundle/{store-3CHPHFP7.js → store-HTVRL7FB.js} +51 -40
  129. package/dist/bundle/store-IWW6U6QN.js +34 -0
  130. package/dist/bundle/{store-2U4U6KL4.js → store-TBZ3ZS6H.js} +21 -19
  131. package/dist/bundle/store-maintenance-command-CJM2VLMW.js +75 -0
  132. package/dist/bundle/surface-5GBWNYBE.js +74 -0
  133. package/dist/bundle/writer-TW2Q55VJ.js +49 -0
  134. package/dist/commands/session.d.ts.map +1 -1
  135. package/dist/commands/session.js +1 -6
  136. package/dist/commands/session.js.map +1 -1
  137. package/dist/version.d.ts +1 -1
  138. package/dist/version.js +1 -1
  139. package/package.json +2 -2
  140. package/dist/bundle/agent-EFMUK732.js +0 -41
  141. package/dist/bundle/chunk-IG2TJQJ7.js +0 -79
  142. package/dist/bundle/chunk-KZN2BG3P.js +0 -721
  143. package/dist/bundle/chunk-RRTMPSQR.js +0 -29
  144. package/dist/bundle/command-contract-LNSAV5LA.js +0 -39
  145. package/dist/bundle/first-screen-JMNEUQ46.js +0 -40
  146. package/dist/bundle/meeting-combined-5TKG2RYD.js +0 -24
  147. package/dist/bundle/server-OIVNOMVK.js +0 -87
  148. package/dist/bundle/source-HWS5SJIV.js +0 -46
  149. package/dist/bundle/store-Z3747L5F.js +0 -34
  150. package/dist/bundle/store-maintenance-command-UOSZJTVP.js +0 -74
  151. package/dist/bundle/surface-MUT72QON.js +0 -73
  152. package/dist/bundle/writer-RBKQ64ZM.js +0 -48
@@ -1,49 +1,56 @@
1
1
  import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
+ BOT_SENDS,
4
5
  IMPORTED_DOCUMENT_QUERY,
5
6
  MENTION_QUERY,
6
7
  ORGANIZATION_KINDS,
7
8
  PEOPLE_SORTS,
8
- PROJECT_TASK_FIELDS,
9
9
  PROJECT_TYPES,
10
10
  PROPOSAL_STATUSES,
11
11
  QUOTE_LIMIT,
12
12
  SCOPES,
13
13
  TASK_RELATION_KINDS,
14
14
  TASK_ROLES,
15
- TASK_SORTS,
16
15
  addedSourceKeyOf,
17
16
  crmIdentityId,
18
17
  crmSettingKey,
19
18
  parseMergeId,
20
19
  quoteKept
21
- } from "./chunk-KEKXERBE.js";
22
- import "./chunk-UDSL3MUU.js";
23
- import "./chunk-633NQY2R.js";
24
- import "./chunk-KZN2BG3P.js";
25
- import "./chunk-PPSAWFJD.js";
26
- import "./chunk-JLXXUEAM.js";
27
- import "./chunk-EHK73OSW.js";
28
- import "./chunk-IG2TJQJ7.js";
29
- import "./chunk-2JHVQMVC.js";
30
- import "./chunk-ZLUIRFJX.js";
31
- import "./chunk-XEQQJBBO.js";
32
- import "./chunk-RRTMPSQR.js";
33
- import "./chunk-DSJ6EAOA.js";
20
+ } from "./chunk-SYRDEMQE.js";
21
+ import "./chunk-JVBCQHCS.js";
22
+ import {
23
+ MAIL_TYPES,
24
+ PROJECT_TASK_FIELDS,
25
+ REACHES,
26
+ TASK_SORTS
27
+ } from "./chunk-DXWJORSY.js";
28
+ import "./chunk-W3BOR6AT.js";
29
+ import "./chunk-PCR6GFNP.js";
30
+ import "./chunk-3TYER5IK.js";
31
+ import "./chunk-IDCZ4LWS.js";
32
+ import "./chunk-3J3EDSXF.js";
33
+ import "./chunk-NSOY4FMN.js";
34
+ import "./chunk-HO4JGD4Q.js";
35
+ import "./chunk-MNPGZCKE.js";
36
+ import "./chunk-LC7ZD2RW.js";
37
+ import "./chunk-PATZAYFZ.js";
38
+ import "./chunk-YF3S26TS.js";
34
39
  import "./chunk-DNCLQPOM.js";
35
- import "./chunk-AKRIUNYP.js";
36
- import "./chunk-TLG6ECZ2.js";
37
- import "./chunk-WXJYMMEL.js";
38
- import "./chunk-GGMAIIVE.js";
40
+ import "./chunk-QQRJEWKB.js";
41
+ import "./chunk-ZCQ4H7CA.js";
42
+ import "./chunk-SYYQZDHJ.js";
43
+ import "./chunk-KYRYD4CR.js";
39
44
  import "./chunk-WIHN3ELW.js";
40
45
  import "./chunk-QFOP3KUP.js";
41
46
  import "./chunk-Y5E2WNWB.js";
42
47
  import "./chunk-S6JG4YUH.js";
43
- import "./chunk-4N7PP76S.js";
48
+ import "./chunk-TCT5D2X2.js";
44
49
  import "./chunk-ZVVMGPBJ.js";
45
50
  export {
51
+ BOT_SENDS,
46
52
  IMPORTED_DOCUMENT_QUERY,
53
+ MAIL_TYPES,
47
54
  MENTION_QUERY,
48
55
  ORGANIZATION_KINDS,
49
56
  PEOPLE_SORTS,
@@ -51,6 +58,7 @@ export {
51
58
  PROJECT_TYPES,
52
59
  PROPOSAL_STATUSES,
53
60
  QUOTE_LIMIT,
61
+ REACHES,
54
62
  SCOPES,
55
63
  TASK_RELATION_KINDS,
56
64
  TASK_ROLES,
@@ -18,12 +18,12 @@ import {
18
18
  jitCompatCheck,
19
19
  refineSqliteCodecs,
20
20
  sql
21
- } from "./chunk-4N7PP76S.js";
21
+ } from "./chunk-TCT5D2X2.js";
22
22
  import {
23
23
  __name
24
24
  } from "./chunk-ZVVMGPBJ.js";
25
25
 
26
- // 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/bun.js
26
+ // node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/bun.js
27
27
  import { Database } from "bun:sqlite";
28
28
  var bunSQLiteCodecs = refineSqliteCodecs({
29
29
  "integer:boolean": { normalize: booleanFromInteger },
@@ -3,10 +3,10 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  loadVectorExtension,
5
5
  vectorExtension
6
- } from "./chunk-NISH4UXM.js";
6
+ } from "./chunk-G46PNDWL.js";
7
7
  import {
8
8
  refuseOwnerStoreInTests
9
- } from "./chunk-TLG6ECZ2.js";
9
+ } from "./chunk-ZCQ4H7CA.js";
10
10
  import "./chunk-WIHN3ELW.js";
11
11
  import "./chunk-QFOP3KUP.js";
12
12
  import {
@@ -17,7 +17,7 @@ import {
17
17
  __name
18
18
  } from "./chunk-ZVVMGPBJ.js";
19
19
 
20
- // 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/drivers/bun-sqlite.js
20
+ // node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/store/drivers/bun-sqlite.js
21
21
  var customised = false;
22
22
  var ownLibrary = /* @__PURE__ */ __name(async () => {
23
23
  try {
@@ -4,10 +4,10 @@ import {
4
4
  readSharedSection,
5
5
  sharedConfigPath,
6
6
  writeSharedSection
7
- } from "./chunk-AKRIUNYP.js";
7
+ } from "./chunk-QQRJEWKB.js";
8
8
  import {
9
9
  storePath
10
- } from "./chunk-TLG6ECZ2.js";
10
+ } from "./chunk-ZCQ4H7CA.js";
11
11
  import {
12
12
  CliError
13
13
  } from "./chunk-S6JG4YUH.js";
@@ -15,7 +15,7 @@ import {
15
15
  __name
16
16
  } from "./chunk-ZVVMGPBJ.js";
17
17
 
18
- // 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/setup-answers.js
18
+ // node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/cli/setup-answers.js
19
19
  var PERMISSION_ANSWERS = ["readonly", "allow"];
20
20
  var QUESTIONS = ["languages", "tools", "permissions"];
21
21
  var SECTION = "setup";
@@ -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-6WS6GJ4V.js";
5
+ } from "./chunk-GVSKLZRD.js";
6
6
  import {
7
7
  environmentOf,
8
8
  readOnlyLockOf
9
- } from "./chunk-63N46DJU.js";
9
+ } from "./chunk-5SQTHOBI.js";
10
10
  import {
11
11
  array,
12
12
  boolean,
@@ -24,7 +24,7 @@ import {
24
24
  __name
25
25
  } from "./chunk-ZVVMGPBJ.js";
26
26
 
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
27
+ // node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/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@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
248
+ // node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-relay.js
249
249
  var lentConnection = /* @__PURE__ */ __name((connection, watchers) => throughWrapper(connection, {
250
250
  close: /* @__PURE__ */ __name(async () => {
251
251
  }, "close"),
@@ -8,12 +8,12 @@ import {
8
8
  ACCESS_SECONDS,
9
9
  REFRESH_SECONDS,
10
10
  readStored
11
- } from "./chunk-6QGUK3H7.js";
11
+ } from "./chunk-OGJFDKDL.js";
12
12
  import {
13
13
  __name
14
14
  } from "./chunk-ZVVMGPBJ.js";
15
15
 
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/mcp/http/oauth.js
16
+ // node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/mcp/http/oauth.js
17
17
  import { createHash, randomBytes, randomInt, timingSafeEqual } from "node:crypto";
18
18
  import { chmodSync, mkdirSync, renameSync, rmSync, writeFileSync } from "node:fs";
19
19
  import { dirname } from "node:path";
@@ -4,18 +4,18 @@ import {
4
4
  PLAIN_HTTP_REFUSED,
5
5
  modelAddressAllowed,
6
6
  onThisComputer
7
- } from "./chunk-G2TU5RYY.js";
7
+ } from "./chunk-DY3PLWIH.js";
8
8
  import {
9
9
  unit
10
- } from "./chunk-ADTI5RUO.js";
10
+ } from "./chunk-GRGCZSES.js";
11
11
  import {
12
12
  readSharedSection,
13
13
  sharedConfigPath,
14
14
  writeSharedSection
15
- } from "./chunk-AKRIUNYP.js";
15
+ } from "./chunk-QQRJEWKB.js";
16
16
  import {
17
17
  storePath
18
- } from "./chunk-TLG6ECZ2.js";
18
+ } from "./chunk-ZCQ4H7CA.js";
19
19
  import {
20
20
  boolean,
21
21
  isoTimestamp,
@@ -31,10 +31,10 @@ import {
31
31
  __name
32
32
  } from "./chunk-ZVVMGPBJ.js";
33
33
 
34
- // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/embeddings/remote.js
34
+ // node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/embeddings/remote.js
35
35
  import { setTimeout } from "node:timers/promises";
36
36
 
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/models/local-only.js
37
+ // node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/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@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/embeddings/remote.js
71
+ // node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/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 },
@@ -4,10 +4,10 @@ import {
4
4
  QUERY_LIMITS,
5
5
  exhausted,
6
6
  searchError
7
- } from "./chunk-IG2TJQJ7.js";
7
+ } from "./chunk-NSOY4FMN.js";
8
8
  import {
9
9
  fold
10
- } from "./chunk-2JHVQMVC.js";
10
+ } from "./chunk-HO4JGD4Q.js";
11
11
  import {
12
12
  CATALOG_KINDS,
13
13
  CONTRACT_KINDS,
@@ -21,12 +21,14 @@ import {
21
21
  ORDER_STATUSES,
22
22
  SUBSCRIPTION_STATUSES,
23
23
  TRANSACTION_STATUSES,
24
- WALLET_KINDS,
24
+ WALLET_KINDS
25
+ } from "./chunk-MNPGZCKE.js";
26
+ import {
25
27
  looksLikeReference,
26
28
  parseReference,
27
29
  providerLabel,
28
30
  providerNamed
29
- } from "./chunk-ZLUIRFJX.js";
31
+ } from "./chunk-PATZAYFZ.js";
30
32
  import {
31
33
  CliError,
32
34
  singleLine
@@ -35,82 +37,7 @@ import {
35
37
  __name
36
38
  } from "./chunk-ZVVMGPBJ.js";
37
39
 
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/domain/addresses.js
39
- var EMAIL_ADDRESS = /^[^\s@]+@[^\s@]+\.[^\s@]+$/u;
40
- var isEmailAddress = /* @__PURE__ */ __name((value) => EMAIL_ADDRESS.test(value), "isEmailAddress");
41
- var ROLE_ADDRESS_WORDS = {
42
- noReply: ["noreply", "no-reply", "donotreply", "do-not-reply", "mailer-daemon", "bounce", "bounces"],
43
- shared: [
44
- "info",
45
- "hello",
46
- "hi",
47
- "contact",
48
- "contacts",
49
- "support",
50
- "help",
51
- "helpdesk",
52
- "service",
53
- "sales",
54
- "office",
55
- "admin",
56
- "team",
57
- "billing",
58
- "accounts",
59
- "accounting",
60
- "invoices",
61
- "finance",
62
- "hr",
63
- "jobs",
64
- "careers",
65
- "press",
66
- "media",
67
- "marketing",
68
- "partners",
69
- "legal",
70
- "privacy",
71
- "security",
72
- "abuse",
73
- "postmaster",
74
- "webmaster",
75
- "mail",
76
- "inbox",
77
- "enquiries",
78
- "inquiries",
79
- "booking",
80
- "reservations",
81
- "orders",
82
- "feedback",
83
- "newsletter",
84
- "notifications",
85
- "alerts"
86
- ]
87
- };
88
- var bare = /* @__PURE__ */ __name((word) => word.replace(/[.\-_]/gu, ""), "bare");
89
- var NO_REPLY = new Set(ROLE_ADDRESS_WORDS.noReply.map(bare));
90
- var ROLE = new Set([...ROLE_ADDRESS_WORDS.shared, ...ROLE_ADDRESS_WORDS.noReply].map(bare));
91
- var PART_ONLY = /* @__PURE__ */ new Set(["bounce", "bounces"]);
92
- var NOTIFY = /* @__PURE__ */ new Set(["notify", "notification", "notifications", "alert", "alerts"]);
93
- var localPart = /* @__PURE__ */ __name((address) => {
94
- const local = address.trim().toLowerCase().split("@")[0] ?? "";
95
- return local.split("+")[0] ?? "";
96
- }, "localPart");
97
- var localWord = /* @__PURE__ */ __name((address) => bare(localPart(address)), "localWord");
98
- var SEPARATORS = /[.\-_]/u;
99
- var partsOf = /* @__PURE__ */ __name((address) => localPart(address).split(SEPARATORS), "partsOf");
100
- var NO_REPLY_PARTS = ROLE_ADDRESS_WORDS.noReply.map((word) => `.${word.split(SEPARATORS).join(".")}.`);
101
- var isNoReplyAddress = /* @__PURE__ */ __name((address) => {
102
- const word = localWord(address);
103
- const parts = `.${partsOf(address).join(".")}.`;
104
- if (NO_REPLY_PARTS.some((one) => parts.includes(one)))
105
- return true;
106
- return [...NO_REPLY].some((one) => !PART_ONLY.has(one) && (word.startsWith(one) || word.endsWith(one)));
107
- }, "isNoReplyAddress");
108
- var isRoleAddress = /* @__PURE__ */ __name((address) => ROLE.has(localWord(address)) || isNoReplyAddress(address), "isRoleAddress");
109
- var PERSON_LIKE = /* @__PURE__ */ new Set(["hr"]);
110
- var isPersonLikeRoleAddress = /* @__PURE__ */ __name((address) => PERSON_LIKE.has(localWord(address)), "isPersonLikeRoleAddress");
111
- var isNotificationAddress = /* @__PURE__ */ __name((address) => partsOf(address).some((part) => NOTIFY.has(part)), "isNotificationAddress");
112
-
113
- // 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/ref-arguments.js
40
+ // node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/domain/ref-arguments.js
114
41
  var TAKES = {
115
42
  chat: "a chat: chat:<provider>/<account>/<chat>, its id or its title",
116
43
  message: "a message: msg:<provider>/<account>/<chat>/<message>, or a chat and the message's id"
@@ -170,7 +97,7 @@ var ensureAccount = /* @__PURE__ */ __name(async (reference, scope, profilesOn)
170
97
  throw wrongAccount(reference, scope, profiles);
171
98
  }, "ensureAccount");
172
99
 
173
- // 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/lucene/automaton.js
100
+ // node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/search/lucene/automaton.js
174
101
  var any = { kind: "char", ranges: [[0, 1114111]], negate: false };
175
102
  var literal = /* @__PURE__ */ __name((c) => ({
176
103
  kind: "char",
@@ -570,7 +497,7 @@ var foldRegex = /* @__PURE__ */ __name((pattern, span) => {
570
497
  return out;
571
498
  }, "foldRegex");
572
499
 
573
- // 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/trigrams.js
500
+ // node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/search/trigrams.js
574
501
  var trigrams = /* @__PURE__ */ __name((term) => {
575
502
  const padded = ` ${term} `;
576
503
  const pieces = /* @__PURE__ */ new Set();
@@ -579,7 +506,7 @@ var trigrams = /* @__PURE__ */ __name((term) => {
579
506
  return [...pieces];
580
507
  }, "trigrams");
581
508
 
582
- // 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/resolve.js
509
+ // node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/resolve.js
583
510
  var isId = /* @__PURE__ */ __name((reference) => /^-?\d+$/.test(reference.trim()), "isId");
584
511
  var foldName = /* @__PURE__ */ __name((name) => name.normalize("NFC").replace(/[\uFE0E\uFE0F\u200D]/g, "").toLowerCase().replaceAll("\u0451", "\u0435"), "foldName");
585
512
  var pickChat = /* @__PURE__ */ __name((reference, chats) => {
@@ -650,7 +577,7 @@ ${lines}`, { candidates });
650
577
  }, "ambiguous");
651
578
  var isPresent = /* @__PURE__ */ __name((value) => value !== null && value !== void 0, "isPresent");
652
579
 
653
- // 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/display-names.js
580
+ // node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/domain/display-names.js
654
581
  var QUOTES = [
655
582
  ['"', '"'],
656
583
  ["'", "'"],
@@ -708,7 +635,7 @@ var nameKey = /* @__PURE__ */ __name((name) => {
708
635
  }, "nameKey");
709
636
  var isReadable = /* @__PURE__ */ __name((shown) => shown !== null && READABLE.test(shown), "isReadable");
710
637
 
711
- // 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/phone-plans.generated.js
638
+ // node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/domain/phone-plans.generated.js
712
639
  var PHONE_PLANS = [
713
640
  {
714
641
  country: "us",
@@ -1088,7 +1015,7 @@ var PHONE_PLANS = [
1088
1015
  }
1089
1016
  ];
1090
1017
 
1091
- // 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/phones.js
1018
+ // node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/domain/phones.js
1092
1019
  var PHONE_COUNTRIES = PHONE_PLANS.map((plan) => plan.country);
1093
1020
  var DEFAULT_PHONE_COUNTRIES = ["ru"];
1094
1021
  var parsePhoneCountries = /* @__PURE__ */ __name((value) => {
@@ -1163,7 +1090,7 @@ var storedPhone = /* @__PURE__ */ __name((raw, provider) => {
1163
1090
  return found ? `+${found[1]}` : void 0;
1164
1091
  }, "storedPhone");
1165
1092
 
1166
- // 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/record-fields.js
1093
+ // node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/domain/record-fields.js
1167
1094
  var DECIMAL_PATTERN = "^[0-9]{1,16}(\\.[0-9]{1,6})?$";
1168
1095
  var SIGNED_DECIMAL = "^-?[0-9]{1,16}(\\.[0-9]{1,6})?$";
1169
1096
  var DAY = "^[0-9]{4}-[0-9]{2}-[0-9]{2}$";
@@ -1213,7 +1140,7 @@ var arrayOf = /* @__PURE__ */ __name((item, maxItems, description) => ({
1213
1140
  }), "arrayOf");
1214
1141
  var isObject = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isObject");
1215
1142
 
1216
- // 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/record-types.js
1143
+ // node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/domain/record-types.js
1217
1144
  var kept = /* @__PURE__ */ __name((description) => ({ description }), "kept");
1218
1145
  var PARTY = ["person", "organization"];
1219
1146
  var ORGANIZATION = ["organization"];
@@ -1608,7 +1535,7 @@ var hasV1Roles = /* @__PURE__ */ __name((type) => rolesOf(type).some(([, role])
1608
1535
  var IDENTITY_TYPES = RECORD_ENTITY_TYPES.filter((type) => RECORD_TYPES[type].review === "identity");
1609
1536
  var article2 = /* @__PURE__ */ __name((word) => /^[aeiou]/.test(word) ? "an" : "a", "article");
1610
1537
 
1611
- // 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.js
1538
+ // node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/domain/records.js
1612
1539
  import { createHash } from "node:crypto";
1613
1540
  var RECORDS_SCHEMA_VERSION = 1;
1614
1541
  var RECORD_OPERATIONS = ["upsert", "delete"];
@@ -1749,7 +1676,7 @@ var fieldReferences = /* @__PURE__ */ __name((record, options = {}) => {
1749
1676
  return found;
1750
1677
  }, "fieldReferences");
1751
1678
 
1752
- // 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/counters.js
1679
+ // node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/domain/counters.js
1753
1680
  var COUNTER_FIELDS = ["views", "reactions", "comments"];
1754
1681
  var validCounter = /* @__PURE__ */ __name((value) => typeof value === "number" && Number.isFinite(value) && value >= 0, "validCounter");
1755
1682
  var counterObservationTime = /* @__PURE__ */ __name((observation, now) => {
@@ -1768,7 +1695,7 @@ var counterFreshness = /* @__PURE__ */ __name((states) => {
1768
1695
  return states.some((one) => one.freshness === "stale") ? "stale" : "fresh";
1769
1696
  }, "counterFreshness");
1770
1697
 
1771
- // 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/rankings-options.js
1698
+ // node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/domain/rankings-options.js
1772
1699
  var MESSAGE_MEASURES = ["views", "reactions", "forwards", "comments", "replies", "thread-size"];
1773
1700
  var AUTHOR_MEASURES = [
1774
1701
  "messages",
@@ -1908,7 +1835,7 @@ var withoutUrls = /* @__PURE__ */ __name((text2) => text2.replace(/\S+/gu, (toke
1908
1835
  var rankingWords = /* @__PURE__ */ __name((text2) => withoutUrls(text2).match(/[\p{L}\p{N}]+/gu)?.length ?? 0, "rankingWords");
1909
1836
  var rankingQuestion = /* @__PURE__ */ __name((text2) => withoutUrls(text2).includes("?"), "rankingQuestion");
1910
1837
 
1911
- // 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/relation-role-labels.js
1838
+ // node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/domain/relation-role-labels.js
1912
1839
  var label = /* @__PURE__ */ __name((en, ru, es) => ({ en, ru, es }), "label");
1913
1840
  var ROLE_LABELS = {
1914
1841
  organization: {
@@ -1950,11 +1877,6 @@ var ROLE_LABELS = {
1950
1877
  };
1951
1878
 
1952
1879
  export {
1953
- isEmailAddress,
1954
- isNoReplyAddress,
1955
- isRoleAddress,
1956
- isPersonLikeRoleAddress,
1957
- isNotificationAddress,
1958
1880
  COUNTER_FIELDS,
1959
1881
  validCounter,
1960
1882
  counterObservationTime,
@@ -8,7 +8,7 @@ import {
8
8
  __name
9
9
  } from "./chunk-ZVVMGPBJ.js";
10
10
 
11
- // 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/errors/failures.js
11
+ // node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/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 ?? {};
@@ -20,6 +20,7 @@ var USAGE_REASONS = {
20
20
  };
21
21
  var usageReason = /* @__PURE__ */ __name((code) => USAGE_REASONS[code], "usageReason");
22
22
  var failureKey = /* @__PURE__ */ __name((error) => isCliFailure(error) ? error.code : error instanceof Error ? error.name : "error", "failureKey");
23
+ var SQLITE_BUSY = 5;
23
24
  var SQLITE_CORRUPT = 11;
24
25
  var SQLITE_NOTADB = 26;
25
26
  var DAMAGED_TEXT = /database disk image is malformed|file is not a database|fts5: corruption/i;
@@ -28,18 +29,21 @@ var sqliteCode = /* @__PURE__ */ __name((error) => {
28
29
  const code = typeof errcode === "number" ? errcode : name === "SQLiteError" && typeof errno === "number" ? errno : null;
29
30
  return code === null ? void 0 : code & 255;
30
31
  }, "sqliteCode");
31
- var damageIn = /* @__PURE__ */ __name((error) => {
32
+ var sqliteFailureIn = /* @__PURE__ */ __name((error, matches) => {
32
33
  if (isCliFailure(error) || isCommanderFailure(error))
33
34
  return void 0;
34
35
  let at = error;
35
36
  for (let depth = 0; depth < 5 && at instanceof Error; depth += 1) {
36
- const code = sqliteCode(at);
37
- if (code !== void 0 && [SQLITE_CORRUPT, SQLITE_NOTADB].includes(code) || DAMAGED_TEXT.test(at.message))
37
+ if (matches(at))
38
38
  return at;
39
39
  at = at.cause;
40
40
  }
41
41
  return void 0;
42
- }, "damageIn");
42
+ }, "sqliteFailureIn");
43
+ var damageIn = /* @__PURE__ */ __name((error) => sqliteFailureIn(error, (at) => {
44
+ const code = sqliteCode(at);
45
+ return code !== void 0 && [SQLITE_CORRUPT, SQLITE_NOTADB].includes(code) || DAMAGED_TEXT.test(at.message);
46
+ }), "damageIn");
43
47
  var wrapping = /* @__PURE__ */ __name((error, original) => {
44
48
  Object.defineProperty(error, "cause", { value: original, configurable: true, writable: true });
45
49
  if (original instanceof Error && original.stack)
@@ -47,6 +51,9 @@ var wrapping = /* @__PURE__ */ __name((error, original) => {
47
51
  return error;
48
52
  }, "wrapping");
49
53
  var storeDamaged = /* @__PURE__ */ __name((error, next) => damageIn(error) ? wrapping(new CliError("configuration_error", `the store file is damaged${next ? `; \`${next}\` says what is damaged and what to do` : ""}`, { reason: "store.damaged" }), error) : error, "storeDamaged");
54
+ var storeBusy = /* @__PURE__ */ __name((error) => sqliteFailureIn(error, (at) => sqliteCode(at) === SQLITE_BUSY) ? wrapping(new CliError("conflict", "another process held the store for longer than this command waits; run it again", {
55
+ reason: "store.busy"
56
+ }), error) : error, "storeBusy");
50
57
  var damagedFile = /* @__PURE__ */ __name(async (files, work) => {
51
58
  try {
52
59
  return await work();
@@ -67,6 +74,7 @@ export {
67
74
  failureKey,
68
75
  sqliteCode,
69
76
  storeDamaged,
77
+ storeBusy,
70
78
  damagedFile,
71
79
  isStoreDamage
72
80
  };
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  CAPABILITY_STATEMENTS,
5
5
  storeCapable
6
- } from "./chunk-WXJYMMEL.js";
6
+ } from "./chunk-SYYQZDHJ.js";
7
7
  import {
8
8
  importFrom
9
9
  } from "./chunk-Y5E2WNWB.js";
@@ -11,7 +11,7 @@ import {
11
11
  __name
12
12
  } from "./chunk-ZVVMGPBJ.js";
13
13
 
14
- // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/sqlite-runtime.js
14
+ // node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/sqlite-runtime.js
15
15
  import { spawn, spawnSync } from "node:child_process";
16
16
  import { readFileSync } from "node:fs";
17
17
  import { dirname } from "node:path";