@wirecat/bitrix24-cli 0.2.0 → 0.4.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 (178) hide show
  1. package/CHANGELOG.md +60 -0
  2. package/dist/api-keys.d.ts +30 -8
  3. package/dist/api-keys.d.ts.map +1 -1
  4. package/dist/api-keys.js +81 -18
  5. package/dist/api-keys.js.map +1 -1
  6. package/dist/bin/b24.js +2 -2
  7. package/dist/bitrix/methods.d.ts.map +1 -1
  8. package/dist/bitrix/methods.js +7 -3
  9. package/dist/bitrix/methods.js.map +1 -1
  10. package/dist/bitrix/transport.d.ts +4 -7
  11. package/dist/bitrix/transport.d.ts.map +1 -1
  12. package/dist/bitrix/transport.js +12 -16
  13. package/dist/bitrix/transport.js.map +1 -1
  14. package/dist/bundle/{all-profiles-QJ444GSX.js → all-profiles-MBQZCOVK.js} +6 -6
  15. package/dist/bundle/{anthropic-RHRAVHC2.js → anthropic-QCYLKSJJ.js} +4 -4
  16. package/dist/bundle/{app-server-QIT6S7AZ.js → app-server-FSLZ2Y6N.js} +42 -42
  17. package/dist/bundle/b24.js +12 -12
  18. package/dist/bundle/{bun-H6RSODZ3.js → bun-UYRQXF33.js} +2 -2
  19. package/dist/bundle/{bun-sqlite-BO4LTQHX.js → bun-sqlite-GXME7EMT.js} +3 -3
  20. package/dist/bundle/{chunk-MBDK4YXG.js → chunk-2D5W4LWL.js} +1 -1
  21. package/dist/bundle/{chunk-U5ACMCAQ.js → chunk-2IZ6GGU2.js} +151 -151
  22. package/dist/bundle/{chunk-VEWWAGTD.js → chunk-4OVK5XW2.js} +8 -8
  23. package/dist/bundle/{chunk-45AKJVKV.js → chunk-66QLBRIT.js} +1 -1
  24. package/dist/bundle/{chunk-P364PLIK.js → chunk-6BLVBGRK.js} +9 -9
  25. package/dist/bundle/{chunk-FOTREPNS.js → chunk-6ERX33NC.js} +8 -8
  26. package/dist/bundle/{chunk-LRGYKOCP.js → chunk-AMVRNYD6.js} +1 -1
  27. package/dist/bundle/{chunk-YZ5LHE5Q.js → chunk-AOUNT22U.js} +2 -2
  28. package/dist/bundle/{chunk-ZDQQCXFG.js → chunk-B252WFK7.js} +13 -13
  29. package/dist/bundle/{chunk-WKRQ44EH.js → chunk-BHZ5VDDY.js} +13 -13
  30. package/dist/bundle/{chunk-ZIAQPTUS.js → chunk-COOOXDKZ.js} +3 -3
  31. package/dist/bundle/{chunk-GDFNH33E.js → chunk-CR3TLGM4.js} +9 -4
  32. package/dist/bundle/{chunk-D5S6QV6R.js → chunk-D2IRPC5I.js} +6 -6
  33. package/dist/bundle/{chunk-POC3V3AO.js → chunk-DQIQIZQS.js} +297 -256
  34. package/dist/bundle/{chunk-QGMDQ2PM.js → chunk-EIGPMMGC.js} +3 -3
  35. package/dist/bundle/{chunk-WTPMJYMD.js → chunk-ELBOQHJA.js} +45 -45
  36. package/dist/bundle/{chunk-LSPIOT6Z.js → chunk-EQLWU6ZB.js} +7 -7
  37. package/dist/bundle/{chunk-WII44RXN.js → chunk-F5NH3UJQ.js} +2 -2
  38. package/dist/bundle/{chunk-HAXNUIGQ.js → chunk-GTDOUP6L.js} +26 -23
  39. package/dist/bundle/{chunk-QQXH2OPB.js → chunk-GTFRSYYJ.js} +17 -12
  40. package/dist/bundle/{chunk-H2ADPPSH.js → chunk-GTMCLOYY.js} +670 -465
  41. package/dist/bundle/{chunk-7GRZAKBB.js → chunk-IF27EQN6.js} +2 -2
  42. package/dist/bundle/{chunk-FZL7F5NR.js → chunk-IWEWDVZ6.js} +22 -22
  43. package/dist/bundle/{program-UYX5362I.js → chunk-J7OMY6EO.js} +16672 -18336
  44. package/dist/bundle/{chunk-QIPTIUMJ.js → chunk-JAS3OZSP.js} +4 -4
  45. package/dist/bundle/{chunk-OTD2ZRXD.js → chunk-JB7OXYAU.js} +4 -4
  46. package/dist/bundle/{chunk-ZEW4P6AH.js → chunk-K7XWCZF6.js} +8 -8
  47. package/dist/bundle/{chunk-YYO7D2MO.js → chunk-LAYH344Y.js} +28 -28
  48. package/dist/bundle/{chunk-K3UIB6ZF.js → chunk-M5XMAUGZ.js} +2 -2
  49. package/dist/bundle/{chunk-2KCZ7BKW.js → chunk-MPI2FDJ4.js} +11 -11
  50. package/dist/bundle/{chunk-HGL63O5V.js → chunk-MY6FAZRA.js} +2 -2
  51. package/dist/bundle/{chunk-QC53QBNC.js → chunk-NDSOBIR3.js} +3 -3
  52. package/dist/bundle/{chunk-XRFJWHY5.js → chunk-NEK7LKC6.js} +4 -4
  53. package/dist/bundle/{chunk-2SNUMZ7S.js → chunk-NKLLI4B2.js} +6 -6
  54. package/dist/bundle/{chunk-QMPN6WKD.js → chunk-NWKXMMON.js} +100 -81
  55. package/dist/bundle/{chunk-P33NDCDI.js → chunk-O7FVOICH.js} +1 -1
  56. package/dist/bundle/{chunk-SFRNX2TI.js → chunk-OCRCVLZQ.js} +1 -1
  57. package/dist/bundle/{chunk-TE3FR6MI.js → chunk-OKDC6CLH.js} +5 -5
  58. package/dist/bundle/{chunk-DTXERR44.js → chunk-OWILUBCI.js} +2 -2
  59. package/dist/bundle/{chunk-CXL33BFL.js → chunk-OYLJHX74.js} +1 -1
  60. package/dist/bundle/{chunk-6WY72XVQ.js → chunk-POUSZWMP.js} +4 -4
  61. package/dist/bundle/{chunk-N6FLBXZS.js → chunk-Q4ILKTV4.js} +3 -3
  62. package/dist/bundle/{chunk-FLUEXJ4X.js → chunk-Q7Z5IMVY.js} +1 -1
  63. package/dist/bundle/{chunk-XJXONOB5.js → chunk-QVZSLBR6.js} +1 -1
  64. package/dist/bundle/{chunk-IRV2PCQ2.js → chunk-SBW2Y7AZ.js} +26 -26
  65. package/dist/bundle/{chunk-XNHSPHUN.js → chunk-UCLWWSQK.js} +2 -2
  66. package/dist/bundle/{chunk-BCF7P4FZ.js → chunk-UH56WLDS.js} +8 -8
  67. package/dist/bundle/{chunk-ZGZT5S6B.js → chunk-VMQL4GNH.js} +55 -55
  68. package/dist/bundle/{chunk-XD4FRDSL.js → chunk-VTIUWHZ3.js} +5 -5
  69. package/dist/bundle/{chunk-SGRYYE4X.js → chunk-WJRBX5QB.js} +4 -4
  70. package/dist/bundle/{chunk-VL6SPMZV.js → chunk-XG6QKS7L.js} +5 -5
  71. package/dist/bundle/{chunk-RRJNNPR4.js → chunk-XKQZLR2X.js} +1 -1
  72. package/dist/bundle/{chunk-QSNROIJL.js → chunk-XOPMSWFC.js} +9 -9
  73. package/dist/bundle/{chunk-EVYSBZ3I.js → chunk-XR5SUCAC.js} +4 -4
  74. package/dist/bundle/{chunk-PH5FZX6E.js → chunk-Y5PPMGCS.js} +2 -2
  75. package/dist/bundle/{chunk-EXOOKUEA.js → chunk-YFZXI3NN.js} +2 -2
  76. package/dist/bundle/{chunk-CNNEA2M4.js → chunk-ZU4HXKEW.js} +3 -3
  77. package/dist/bundle/command-contract-UON4EIC4.js +30 -0
  78. package/dist/bundle/{decode-5ZPLTYV6.js → decode-IF2F2SFC.js} +3 -3
  79. package/dist/bundle/{echarts-J6LAPIX7.js → echarts-WDDVEJO2.js} +2 -2
  80. package/dist/bundle/{embed-YG5LDHME.js → embed-VDUGYEAR.js} +4 -4
  81. package/dist/bundle/{embedder-7FNUA5OZ.js → embedder-DUN62H3Z.js} +7 -7
  82. package/dist/bundle/{first-run-JPZNWIJN.js → first-run-NDGYBQEN.js} +8 -8
  83. package/dist/bundle/first-screen-QAVKP5RF.js +28 -0
  84. package/dist/bundle/{instructions-AXWTQHMR.js → instructions-JIIKWS7X.js} +1 -1
  85. package/dist/bundle/{mcp-7F46P6AM.js → mcp-33JX6KP4.js} +2 -2
  86. package/dist/bundle/{mcp-HUD6UH5X.js → mcp-57EQ6QJO.js} +58 -47
  87. package/dist/bundle/mcp-PFJER2DE.js +87 -0
  88. package/dist/bundle/{node-CWKAIOEM.js → node-K57WT42O.js} +2 -2
  89. package/dist/bundle/{node-sqlite-LSEKVRDA.js → node-sqlite-KS6ORRIG.js} +4 -4
  90. package/dist/bundle/{oauth-THYNLRLD.js → oauth-SLSANN37.js} +5 -5
  91. package/dist/bundle/{open-E47QYKFC.js → open-WJPHADEX.js} +3 -3
  92. package/dist/bundle/{openai-EWSGC3BC.js → openai-HXB3GTOD.js} +12 -12
  93. package/dist/bundle/{process-WKTEA3WE.js → process-P73TFAXT.js} +1 -1
  94. package/dist/bundle/program-7BMG5NIN.js +2250 -0
  95. package/dist/bundle/{prompt-CAQ7QR3U.js → prompt-WDPV37R4.js} +3 -3
  96. package/dist/bundle/{recognize-6KGHNZC3.js → recognize-CXIFL6IV.js} +2 -2
  97. package/dist/bundle/{remote-3UO2WDC3.js → remote-Q4VJ4OQW.js} +5 -5
  98. package/dist/bundle/{rerank-2JVDPZBX.js → rerank-SUFYK63I.js} +5 -5
  99. package/dist/bundle/{serve-ES7AG5IK.js → serve-B7PGFOC2.js} +7 -7
  100. package/dist/bundle/server-4DBNJWW6.js +58 -0
  101. package/dist/bundle/server-OKE7SXJ2.js +45 -0
  102. package/dist/bundle/{state-7NH5G4XJ.js → state-EZCCXQV7.js} +4 -4
  103. package/dist/bundle/{store-7O4JQD2Z.js → store-MZ7JBYR6.js} +12 -12
  104. package/dist/bundle/store-maintenance-command-T5QZMENJ.js +47 -0
  105. package/dist/commands/api.d.ts.map +1 -1
  106. package/dist/commands/api.js +57 -7
  107. package/dist/commands/api.js.map +1 -1
  108. package/dist/commands/crm-writes.d.ts.map +1 -1
  109. package/dist/commands/crm-writes.js +24 -8
  110. package/dist/commands/crm-writes.js.map +1 -1
  111. package/dist/commands/crm.d.ts.map +1 -1
  112. package/dist/commands/crm.js +29 -3
  113. package/dist/commands/crm.js.map +1 -1
  114. package/dist/commands/fields.d.ts +3 -0
  115. package/dist/commands/fields.d.ts.map +1 -0
  116. package/dist/commands/fields.js +45 -0
  117. package/dist/commands/fields.js.map +1 -0
  118. package/dist/commands/write.d.ts +6 -1
  119. package/dist/commands/write.d.ts.map +1 -1
  120. package/dist/commands/write.js +7 -5
  121. package/dist/commands/write.js.map +1 -1
  122. package/dist/config.d.ts.map +1 -1
  123. package/dist/config.js +2 -1
  124. package/dist/config.js.map +1 -1
  125. package/dist/crm/conditions.js +1 -1
  126. package/dist/crm/conditions.js.map +1 -1
  127. package/dist/crm/custom-query.d.ts +19 -0
  128. package/dist/crm/custom-query.d.ts.map +1 -0
  129. package/dist/crm/custom-query.js +79 -0
  130. package/dist/crm/custom-query.js.map +1 -0
  131. package/dist/crm/deal.d.ts +7 -3
  132. package/dist/crm/deal.d.ts.map +1 -1
  133. package/dist/crm/deal.js +3 -3
  134. package/dist/crm/deal.js.map +1 -1
  135. package/dist/crm/fields.d.ts +44 -0
  136. package/dist/crm/fields.d.ts.map +1 -0
  137. package/dist/crm/fields.js +143 -0
  138. package/dist/crm/fields.js.map +1 -0
  139. package/dist/crm/items.d.ts +9 -3
  140. package/dist/crm/items.d.ts.map +1 -1
  141. package/dist/crm/items.js +27 -6
  142. package/dist/crm/items.js.map +1 -1
  143. package/dist/crm/lead.d.ts +7 -3
  144. package/dist/crm/lead.d.ts.map +1 -1
  145. package/dist/crm/lead.js +3 -3
  146. package/dist/crm/lead.js.map +1 -1
  147. package/dist/crm/organization.d.ts +7 -3
  148. package/dist/crm/organization.d.ts.map +1 -1
  149. package/dist/crm/organization.js +3 -3
  150. package/dist/crm/organization.js.map +1 -1
  151. package/dist/crm/person.d.ts +7 -3
  152. package/dist/crm/person.d.ts.map +1 -1
  153. package/dist/crm/person.js +3 -3
  154. package/dist/crm/person.js.map +1 -1
  155. package/dist/crm/values.d.ts +12 -1
  156. package/dist/crm/values.d.ts.map +1 -1
  157. package/dist/crm/values.js +12 -2
  158. package/dist/crm/values.js.map +1 -1
  159. package/dist/mcp.d.ts.map +1 -1
  160. package/dist/mcp.js +4 -1
  161. package/dist/mcp.js.map +1 -1
  162. package/dist/program.d.ts.map +1 -1
  163. package/dist/program.js +4 -1
  164. package/dist/program.js.map +1 -1
  165. package/dist/reasons.d.ts.map +1 -1
  166. package/dist/reasons.js +6 -1
  167. package/dist/reasons.js.map +1 -1
  168. package/dist/version.d.ts +1 -1
  169. package/dist/version.js +1 -1
  170. package/package.json +3 -3
  171. package/skills/bitrix24-cli/SKILL.md +8 -3
  172. package/dist/bundle/command-contract-OKQOE6G4.js +0 -30
  173. package/dist/bundle/first-screen-VQM4MTS7.js +0 -28
  174. package/dist/bundle/mcp-J5R5A65I.js +0 -87
  175. package/dist/bundle/server-5LE5LNUQ.js +0 -45
  176. package/dist/bundle/server-BU4VBM6S.js +0 -58
  177. package/dist/bundle/store-maintenance-command-UDVGEY2D.js +0 -47
  178. /package/dist/bundle/{chunk-4PDYYS5K.js → chunk-NDTJE6JQ.js} +0 -0
@@ -1872,7 +1872,7 @@ var require_cli_table3 = __commonJS({
1872
1872
  }
1873
1873
  });
1874
1874
 
1875
- // node_modules/.pnpm/@wirecat+cli-base@0.79.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/errors.js
1875
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/errors.js
1876
1876
  var errorCodes = [
1877
1877
  "validation_error",
1878
1878
  "configuration_error",
@@ -3752,7 +3752,7 @@ function toStandardJsonSchema(schema) {
3752
3752
  }
3753
3753
  __name(toStandardJsonSchema, "toStandardJsonSchema");
3754
3754
 
3755
- // node_modules/.pnpm/@wirecat+cli-base@0.79.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/registry.js
3755
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/registry.js
3756
3756
  var word = pipe(string(), regex(/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/, "a lower-case word, words joined by -"));
3757
3757
  var SNAKE_CASE = /^[a-z][a-z0-9]*(_[a-z0-9]+)*$/;
3758
3758
  var text = pipe(string(), regex(/\S/, "must not be empty"));
@@ -3794,7 +3794,7 @@ var fill = /* @__PURE__ */ __name((template, values) => template.replace(PLACEHO
3794
3794
  return String(value);
3795
3795
  }), "fill");
3796
3796
 
3797
- // node_modules/.pnpm/@wirecat+cli-base@0.79.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/exit-codes.js
3797
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/exit-codes.js
3798
3798
  var EXIT_CODES = {
3799
3799
  validation_error: 2,
3800
3800
  configuration_error: 3,
@@ -3815,7 +3815,7 @@ var EXIT_CODES = {
3815
3815
  var exitCodeFor = /* @__PURE__ */ __name((code) => EXIT_CODES[code], "exitCodeFor");
3816
3816
  var GENERIC_FAILURE = 1;
3817
3817
 
3818
- // node_modules/.pnpm/@wirecat+cli-base@0.79.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/sanitize.js
3818
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/sanitize.js
3819
3819
  var CONTROL = (
3820
3820
  // biome-ignore lint/suspicious/noControlCharactersInRegex: matching them is the whole point
3821
3821
  /[\u0000-\u0008\u000B-\u001F\u007F-\u009F\u200B\u200E\u200F\u202A-\u202E\u2066-\u2069\uFEFF\u{E0000}-\u{E007F}]/gu
@@ -3839,7 +3839,7 @@ var visibleControls = /* @__PURE__ */ __name((text2) => {
3839
3839
  }, "visibleControls");
3840
3840
  var singleLine = /* @__PURE__ */ __name((text2) => visibleControls(text2).replace(LINE_BREAKS, escaped), "singleLine");
3841
3841
 
3842
- // node_modules/.pnpm/@wirecat+cli-base@0.79.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/effects.js
3842
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/effects.js
3843
3843
  var EFFECT_LEVELS = ["none", "read", "write"];
3844
3844
  var effectsSchema = strictObject({
3845
3845
  remote: picklist(EFFECT_LEVELS),
@@ -3847,7 +3847,7 @@ var effectsSchema = strictObject({
3847
3847
  });
3848
3848
  var writes = /* @__PURE__ */ __name((effects) => effects === void 0 || effects.remote === "write" || effects.local === "write", "writes");
3849
3849
 
3850
- // node_modules/.pnpm/@wirecat+cli-base@0.79.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/output.js
3850
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/output.js
3851
3851
  var MAX_NEXT_STEPS = 2;
3852
3852
  var COMPACT_FLAG = "--compact";
3853
3853
  var isoTime = pipe(string(), isoTimestamp("an ISO 8601 time in UTC"), endsWith("Z", "an ISO 8601 time in UTC, ending in `Z`"));
@@ -3959,7 +3959,7 @@ var jsonlOf = /* @__PURE__ */ __name(({ items, page, meta }) => [
3959
3959
  JSON.stringify({ type: "end", complete: meta.complete, ...meta.issues ? { issues: meta.issues } : {}, page })
3960
3960
  ].join("\n"), "jsonlOf");
3961
3961
 
3962
- // node_modules/.pnpm/@wirecat+cli-base@0.79.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/errors.js
3962
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/errors.js
3963
3963
  var CRASH_CODE = "internal_error";
3964
3964
  var CRASH_REASON = "command.crashed";
3965
3965
  var errorObjectSchema = strictObject({
@@ -4052,7 +4052,7 @@ var BASE_REASONS = defineReasons([
4052
4052
  { reason: CRASH_REASON, code: CRASH_CODE, message: "the command failed; this is a bug", details: [] }
4053
4053
  ]);
4054
4054
 
4055
- // node_modules/.pnpm/@wirecat+cli-base@0.79.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/steps.js
4055
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/steps.js
4056
4056
  var SAME_COMMAND = "*";
4057
4057
  var commandPath = pipe(string(), regex(/^[a-z][a-z0-9-]*( [a-z][a-z0-9-]*)*$/, "a command path such as `messages sync`"));
4058
4058
  var stepSchema = union([
@@ -4131,7 +4131,7 @@ var STEPS = defineSteps([
4131
4131
  }
4132
4132
  ]);
4133
4133
 
4134
- // node_modules/.pnpm/@wirecat+cli-base@0.79.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/failure.js
4134
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/failure.js
4135
4135
  var recognise = /* @__PURE__ */ __name((failure) => {
4136
4136
  if (isCliError(failure))
4137
4137
  return failure;
@@ -4278,7 +4278,7 @@ var catchCrashes = /* @__PURE__ */ __name((options) => {
4278
4278
  };
4279
4279
  }, "catchCrashes");
4280
4280
 
4281
- // node_modules/.pnpm/@wirecat+cli-base@0.79.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/paths.js
4281
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/paths.js
4282
4282
  import { homedir, userInfo } from "node:os";
4283
4283
  import { join, posix, win32 } from "node:path";
4284
4284
  var PATH_KINDS = ["config", "state", "cache"];
@@ -4330,7 +4330,7 @@ var homeIsMoved = /* @__PURE__ */ __name(({ env = process.env, platform = proces
4330
4330
  var isMovedRun = /* @__PURE__ */ __name((options) => pathsAreOverridden(options) || homeIsMoved(options), "isMovedRun");
4331
4331
  var configFilePath = /* @__PURE__ */ __name((configDir, fileName = "config.json") => join(configDir, fileName), "configFilePath");
4332
4332
 
4333
- // node_modules/.pnpm/@wirecat+cli-base@0.79.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/retry.js
4333
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/retry.js
4334
4334
  var DEFAULT_RETRY = {
4335
4335
  retries: 1,
4336
4336
  baseDelayMs: 250,
@@ -4342,7 +4342,7 @@ var backoffMs = /* @__PURE__ */ __name((attempt, config, random) => {
4342
4342
  return Math.round(random() * ceiling);
4343
4343
  }, "backoffMs");
4344
4344
 
4345
- // node_modules/.pnpm/@wirecat+cli-base@0.79.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/result-fields.js
4345
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/result-fields.js
4346
4346
  var forbidden = /* @__PURE__ */ new Set(["__proto__", "prototype", "constructor"]);
4347
4347
  var validate = /* @__PURE__ */ __name((paths) => {
4348
4348
  if (paths.length === 0 || paths.length > 128 || paths.some((path) => path.length > 256 || !/^[A-Za-z][A-Za-z0-9_]*(?:\.[A-Za-z][A-Za-z0-9_]*)*$/.test(path) || path.split(".").some((part) => forbidden.has(part))))
@@ -4407,7 +4407,7 @@ var projectFields = /* @__PURE__ */ __name((value, fields) => {
4407
4407
  return project(value, fields);
4408
4408
  }, "projectFields");
4409
4409
 
4410
- // node_modules/.pnpm/@wirecat+cli-base@0.79.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/batch.js
4410
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/batch.js
4411
4411
  var BATCH_LIMITS = Object.freeze({
4412
4412
  requests: 32,
4413
4413
  input_bytes: 262144,
@@ -4534,7 +4534,7 @@ var runBatch = /* @__PURE__ */ __name(async (requests, options = {}) => {
4534
4534
  };
4535
4535
  }, "runBatch");
4536
4536
 
4537
- // node_modules/.pnpm/@wirecat+cli-base@0.79.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/config.js
4537
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/config.js
4538
4538
  import { randomBytes } from "node:crypto";
4539
4539
  import { mkdirSync, readFileSync, renameSync, rmSync, writeFileSync } from "node:fs";
4540
4540
  import { dirname, join as join2 } from "node:path";
@@ -4578,16 +4578,16 @@ var saveConfigFile = /* @__PURE__ */ __name((path, config) => {
4578
4578
  `, 384);
4579
4579
  }, "saveConfigFile");
4580
4580
 
4581
- // node_modules/.pnpm/@wirecat+cli-base@0.79.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/constants.js
4581
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/constants.js
4582
4582
  var BASE_CONSTANTS = new URL("../constants.json", new URL("constants.js", import.meta.resolve("@wirecat/cli-base")).href);
4583
4583
  var baseConstantsSchema = object({});
4584
4584
  var LayerSchema = record(string(), unknown());
4585
4585
 
4586
- // node_modules/.pnpm/@wirecat+cli-base@0.79.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/credentials.js
4586
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/credentials.js
4587
4587
  import { readFileSync as readFileSync2 } from "node:fs";
4588
4588
  import { join as join3, resolve } from "node:path";
4589
4589
 
4590
- // node_modules/.pnpm/@wirecat+cli-base@0.79.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/keyring.js
4590
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/keyring.js
4591
4591
  import { createRequire } from "node:module";
4592
4592
  var ENTRY_OPTIONS = { linux: { store: "secret-service" } };
4593
4593
  var require2 = createRequire(new URL("keyring.js", import.meta.resolve("@wirecat/cli-base")).href);
@@ -4607,7 +4607,7 @@ var systemKeyring = {
4607
4607
  delete: /* @__PURE__ */ __name((service, account) => entry(service, account).deletePassword(), "delete")
4608
4608
  };
4609
4609
 
4610
- // node_modules/.pnpm/@wirecat+cli-base@0.79.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/credentials.js
4610
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/credentials.js
4611
4611
  var movedRunService = /* @__PURE__ */ __name((service, configDir) => `${service}:${resolve(configDir)}`, "movedRunService");
4612
4612
  var warnedRuns = /* @__PURE__ */ new WeakSet();
4613
4613
  var Credentials = class {
@@ -4742,7 +4742,7 @@ var Credentials = class {
4742
4742
  }
4743
4743
  };
4744
4744
 
4745
- // node_modules/.pnpm/@wirecat+cli-base@0.79.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/time.js
4745
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/time.js
4746
4746
  var abortError = /* @__PURE__ */ __name(() => new DOMException("The operation was aborted.", "AbortError"), "abortError");
4747
4747
  var realSleep = /* @__PURE__ */ __name((ms, signal) => new Promise((resolve2, reject) => {
4748
4748
  if (signal?.aborted) {
@@ -4757,10 +4757,10 @@ var realSleep = /* @__PURE__ */ __name((ms, signal) => new Promise((resolve2, re
4757
4757
  }), "realSleep");
4758
4758
  var wallClock = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "wallClock");
4759
4759
 
4760
- // node_modules/.pnpm/@wirecat+cli-base@0.79.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/logging.js
4760
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/logging.js
4761
4761
  import { appendFileSync } from "node:fs";
4762
4762
 
4763
- // node_modules/.pnpm/@wirecat+cli-base@0.79.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/log.js
4763
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/log.js
4764
4764
  var LOG_SEVERITIES = ["trace", "debug", "info", "warn", "error", "fatal"];
4765
4765
  var logRecordSchema = strictObject({
4766
4766
  time: isoTime,
@@ -4838,7 +4838,7 @@ var traceIdOf = /* @__PURE__ */ __name((traceparent) => {
4838
4838
  return traceId;
4839
4839
  }, "traceIdOf");
4840
4840
 
4841
- // node_modules/.pnpm/@wirecat+cli-base@0.79.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/logging.js
4841
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/logging.js
4842
4842
  var REDACTED_FIELDS = [
4843
4843
  "authorization",
4844
4844
  "Authorization",
@@ -4932,7 +4932,7 @@ var silent = {
4932
4932
  }, "error")
4933
4933
  };
4934
4934
 
4935
- // node_modules/.pnpm/@wirecat+cli-base@0.79.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/pretty.js
4935
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/pretty.js
4936
4936
  var import_cli_table3 = __toESM(require_cli_table3(), 1);
4937
4937
  import { styleText } from "node:util";
4938
4938
  var renderPretty = /* @__PURE__ */ __name((value, options) => {
@@ -5006,7 +5006,7 @@ var BORDERLESS = {
5006
5006
  middle: ""
5007
5007
  };
5008
5008
 
5009
- // node_modules/.pnpm/@wirecat+cli-base@0.79.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/drain.js
5009
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/drain.js
5010
5010
  var waitForDrain = /* @__PURE__ */ __name((stream, signal) => {
5011
5011
  if (signal?.aborted)
5012
5012
  return Promise.reject(signal.reason);
@@ -5034,7 +5034,7 @@ var waitForDrain = /* @__PURE__ */ __name((stream, signal) => {
5034
5034
  });
5035
5035
  }, "waitForDrain");
5036
5036
 
5037
- // node_modules/.pnpm/@wirecat+cli-base@0.79.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/streams.js
5037
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/streams.js
5038
5038
  var processStreams = {
5039
5039
  drain: /* @__PURE__ */ __name(async (signal) => {
5040
5040
  await Promise.all([waitForDrain(process.stdout, signal), waitForDrain(process.stderr, signal)]);
@@ -5063,7 +5063,7 @@ var captureStreams = /* @__PURE__ */ __name(() => {
5063
5063
  };
5064
5064
  }, "captureStreams");
5065
5065
 
5066
- // node_modules/.pnpm/@wirecat+cli-base@0.79.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/renderer.js
5066
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/renderer.js
5067
5067
  var createRenderer = /* @__PURE__ */ __name(({ format, color, streams = processStreams, quiet = false }) => {
5068
5068
  const mark = /* @__PURE__ */ __name((symbol, message) => format === "pretty" ? `${symbol} ${visibleControls(message)}` : visibleControls(message), "mark");
5069
5069
  const say = /* @__PURE__ */ __name((symbol) => (message) => {
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  CliError
5
- } from "./chunk-IRV2PCQ2.js";
5
+ } from "./chunk-SBW2Y7AZ.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // node_modules/.pnpm/@wirecat+cli-core@0.586.0_@wirecat+cli-base@0.79.0_commander@15.0.0_esbuild@0.28.2_type_bdecddef0ae5a50ae90cab8b9e35c13b/node_modules/@wirecat/cli-core/dist/http/public-url.js
10
+ // node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/http/public-url.js
11
11
  var EXAMPLE = "--public-url https://<name>.ts.net";
12
12
  var publicUrlOf = /* @__PURE__ */ __name((given, { missing, reaches, path = false }) => {
13
13
  if (!given)
@@ -2,13 +2,13 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  LEVELS
5
- } from "./chunk-XD4FRDSL.js";
5
+ } from "./chunk-VTIUWHZ3.js";
6
6
  import {
7
7
  looksLikeReference,
8
8
  parseReference,
9
9
  providerLabel,
10
10
  providerNamed
11
- } from "./chunk-QQXH2OPB.js";
11
+ } from "./chunk-GTFRSYYJ.js";
12
12
  import {
13
13
  CliError,
14
14
  array,
@@ -32,12 +32,12 @@ import {
32
32
  unknown,
33
33
  visibleControls,
34
34
  writeSecurely
35
- } from "./chunk-IRV2PCQ2.js";
35
+ } from "./chunk-SBW2Y7AZ.js";
36
36
  import {
37
37
  __name
38
38
  } from "./chunk-ZVVMGPBJ.js";
39
39
 
40
- // node_modules/.pnpm/@wirecat+cli-core@0.586.0_@wirecat+cli-base@0.79.0_commander@15.0.0_esbuild@0.28.2_type_bdecddef0ae5a50ae90cab8b9e35c13b/node_modules/@wirecat/cli-core/dist/domain/formatting.js
40
+ // node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/domain/formatting.js
41
41
  var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "the messenger formatter returned invalid text spans"), "invalid");
42
42
  var validateFormattedText = /* @__PURE__ */ __name((formatted) => {
43
43
  const { text, spans } = formatted;
@@ -97,7 +97,7 @@ var visibleFormattedText = /* @__PURE__ */ __name((formatted) => {
97
97
  };
98
98
  }, "visibleFormattedText");
99
99
 
100
- // node_modules/.pnpm/@wirecat+cli-core@0.586.0_@wirecat+cli-base@0.79.0_commander@15.0.0_esbuild@0.28.2_type_bdecddef0ae5a50ae90cab8b9e35c13b/node_modules/@wirecat/cli-core/dist/moderation/check.js
100
+ // node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/moderation/check.js
101
101
  var INVITE = /max\.ru\/join\/|(t|telegram)\.me\/(\+|joinchat\/)|tg:\/\/join/i;
102
102
  var LINK = /https?:\/\/\S+/i;
103
103
  var STRENGTH = { report: 0, delete: 1, remove: 2 };
@@ -285,7 +285,7 @@ var nextPoint = /* @__PURE__ */ __name((rows, found) => {
285
285
  }, "nextPoint");
286
286
  var someUndone = /* @__PURE__ */ __name((rows) => rows.some(undone), "someUndone");
287
287
 
288
- // node_modules/.pnpm/@wirecat+cli-core@0.586.0_@wirecat+cli-base@0.79.0_commander@15.0.0_esbuild@0.28.2_type_bdecddef0ae5a50ae90cab8b9e35c13b/node_modules/@wirecat/cli-core/dist/moderation/rules.js
288
+ // node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/moderation/rules.js
289
289
  import { existsSync, readFileSync } from "node:fs";
290
290
  import { join } from "node:path";
291
291
  var RULE_ACTIONS = ["report", "delete", "remove"];
@@ -428,7 +428,7 @@ var assign = /* @__PURE__ */ __name((rules, key, value) => {
428
428
  return { ...rules, [head]: { ...rules[head], [tail]: value } };
429
429
  }, "assign");
430
430
 
431
- // node_modules/.pnpm/@wirecat+cli-core@0.586.0_@wirecat+cli-base@0.79.0_commander@15.0.0_esbuild@0.28.2_type_bdecddef0ae5a50ae90cab8b9e35c13b/node_modules/@wirecat/cli-core/dist/domain/ref-arguments.js
431
+ // node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/domain/ref-arguments.js
432
432
  var TAKES = {
433
433
  chat: "a chat: chat:<provider>/<account>/<chat>, its id or its title",
434
434
  message: "a message: msg:<provider>/<account>/<chat>/<message>, or a chat and the message's id"
@@ -488,7 +488,7 @@ var ensureAccount = /* @__PURE__ */ __name(async (reference, scope, profilesOn)
488
488
  throw wrongAccount(reference, scope, profiles);
489
489
  }, "ensureAccount");
490
490
 
491
- // node_modules/.pnpm/@wirecat+cli-core@0.586.0_@wirecat+cli-base@0.79.0_commander@15.0.0_esbuild@0.28.2_type_bdecddef0ae5a50ae90cab8b9e35c13b/node_modules/@wirecat/cli-core/dist/resolve.js
491
+ // node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/resolve.js
492
492
  var isId = /* @__PURE__ */ __name((reference) => /^-?\d+$/.test(reference.trim()), "isId");
493
493
  var foldName = /* @__PURE__ */ __name((name) => name.normalize("NFC").replace(/[\uFE0E\uFE0F\u200D]/g, "").toLowerCase(), "foldName");
494
494
  var pickChat = /* @__PURE__ */ __name((reference, chats) => {