@redocly/cli 2.25.4 → 2.27.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 (278) hide show
  1. package/lib/commands/join/index.d.ts.map +1 -1
  2. package/lib/commands/join/index.js +2 -2
  3. package/lib/commands/join/index.js.map +1 -1
  4. package/lib/commands/join/utils/add-components-prefix.d.ts.map +1 -0
  5. package/lib/commands/join/utils/add-components-prefix.js.map +1 -0
  6. package/lib/commands/join/utils/add-info-section.d.ts.map +1 -0
  7. package/lib/commands/join/{helpers → utils}/add-info-section.js +1 -1
  8. package/lib/commands/join/utils/add-info-section.js.map +1 -0
  9. package/lib/commands/join/utils/add-prefix.d.ts.map +1 -0
  10. package/lib/commands/join/utils/add-prefix.js.map +1 -0
  11. package/lib/commands/join/utils/add-security-prefix.d.ts.map +1 -0
  12. package/lib/commands/join/utils/add-security-prefix.js.map +1 -0
  13. package/lib/commands/join/utils/collect-components.d.ts.map +1 -0
  14. package/lib/commands/join/{helpers → utils}/collect-components.js +1 -1
  15. package/lib/commands/join/utils/collect-components.js.map +1 -0
  16. package/lib/commands/join/utils/collect-external-docs.d.ts.map +1 -0
  17. package/lib/commands/join/utils/collect-external-docs.js.map +1 -0
  18. package/lib/commands/join/utils/collect-paths.d.ts.map +1 -0
  19. package/lib/commands/join/{helpers → utils}/collect-paths.js +1 -1
  20. package/lib/commands/join/utils/collect-paths.js.map +1 -0
  21. package/lib/commands/join/utils/collect-webhooks.d.ts.map +1 -0
  22. package/lib/commands/join/utils/collect-webhooks.js.map +1 -0
  23. package/lib/commands/join/utils/duplicate-tag-description-warning.d.ts.map +1 -0
  24. package/lib/commands/join/utils/duplicate-tag-description-warning.js.map +1 -0
  25. package/lib/commands/join/utils/filter-conflicts.d.ts.map +1 -0
  26. package/lib/commands/join/utils/filter-conflicts.js.map +1 -0
  27. package/lib/commands/join/utils/format-tags.d.ts.map +1 -0
  28. package/lib/commands/join/utils/format-tags.js.map +1 -0
  29. package/lib/commands/join/utils/get-api-filename.d.ts.map +1 -0
  30. package/lib/commands/join/utils/get-api-filename.js.map +1 -0
  31. package/lib/commands/join/utils/get-info-prefix.d.ts.map +1 -0
  32. package/lib/commands/join/utils/get-info-prefix.js.map +1 -0
  33. package/lib/commands/join/{helpers/index.js.map → utils/index.d.ts.map} +1 -1
  34. package/lib/commands/join/utils/index.js.map +1 -0
  35. package/lib/commands/join/utils/iterate-potential-conflicts.d.ts.map +1 -0
  36. package/lib/commands/join/{helpers → utils}/iterate-potential-conflicts.js +1 -1
  37. package/lib/commands/join/utils/iterate-potential-conflicts.js.map +1 -0
  38. package/lib/commands/join/utils/populate-tags.d.ts.map +1 -0
  39. package/lib/commands/join/utils/populate-tags.js.map +1 -0
  40. package/lib/commands/join/utils/prefix-tag-suggestion.d.ts.map +1 -0
  41. package/lib/commands/join/utils/prefix-tag-suggestion.js.map +1 -0
  42. package/lib/commands/join/utils/replace-$-refs.d.ts.map +1 -0
  43. package/lib/commands/join/{helpers → utils}/replace-$-refs.js +2 -1
  44. package/lib/commands/join/utils/replace-$-refs.js.map +1 -0
  45. package/lib/commands/join/utils/show-conflicts.d.ts.map +1 -0
  46. package/lib/commands/join/utils/show-conflicts.js.map +1 -0
  47. package/lib/commands/lint.d.ts.map +1 -1
  48. package/lib/commands/lint.js +2 -4
  49. package/lib/commands/lint.js.map +1 -1
  50. package/lib/commands/scorecard-classic/formatters/json-formatter.d.ts.map +1 -1
  51. package/lib/commands/scorecard-classic/formatters/json-formatter.js +1 -4
  52. package/lib/commands/scorecard-classic/formatters/json-formatter.js.map +1 -1
  53. package/lib/commands/scorecard-classic/formatters/junit-formatter.d.ts +3 -0
  54. package/lib/commands/scorecard-classic/formatters/junit-formatter.d.ts.map +1 -0
  55. package/lib/commands/scorecard-classic/formatters/junit-formatter.js +67 -0
  56. package/lib/commands/scorecard-classic/formatters/junit-formatter.js.map +1 -0
  57. package/lib/commands/scorecard-classic/index.d.ts.map +1 -1
  58. package/lib/commands/scorecard-classic/index.js +4 -0
  59. package/lib/commands/scorecard-classic/index.js.map +1 -1
  60. package/lib/commands/scorecard-classic/types.d.ts +2 -1
  61. package/lib/commands/scorecard-classic/types.d.ts.map +1 -1
  62. package/lib/commands/split/asyncapi/constants.d.ts +6 -0
  63. package/lib/commands/split/asyncapi/constants.d.ts.map +1 -0
  64. package/lib/commands/split/asyncapi/constants.js +71 -0
  65. package/lib/commands/split/asyncapi/constants.js.map +1 -0
  66. package/lib/commands/split/asyncapi/find-asyncapi-component-types.d.ts +2 -0
  67. package/lib/commands/split/asyncapi/find-asyncapi-component-types.d.ts.map +1 -0
  68. package/lib/commands/split/asyncapi/find-asyncapi-component-types.js +8 -0
  69. package/lib/commands/split/asyncapi/find-asyncapi-component-types.js.map +1 -0
  70. package/lib/commands/split/asyncapi/gather-asyncapi-component-files.d.ts +9 -0
  71. package/lib/commands/split/asyncapi/gather-asyncapi-component-files.d.ts.map +1 -0
  72. package/lib/commands/split/asyncapi/gather-asyncapi-component-files.js +28 -0
  73. package/lib/commands/split/asyncapi/gather-asyncapi-component-files.js.map +1 -0
  74. package/lib/commands/split/asyncapi/iterate-asyncapi-channels.d.ts +10 -0
  75. package/lib/commands/split/asyncapi/iterate-asyncapi-channels.d.ts.map +1 -0
  76. package/lib/commands/split/asyncapi/iterate-asyncapi-channels.js +27 -0
  77. package/lib/commands/split/asyncapi/iterate-asyncapi-channels.js.map +1 -0
  78. package/lib/commands/split/asyncapi/iterate-asyncapi-components.d.ts +10 -0
  79. package/lib/commands/split/asyncapi/iterate-asyncapi-components.d.ts.map +1 -0
  80. package/lib/commands/split/asyncapi/iterate-asyncapi-components.js +41 -0
  81. package/lib/commands/split/asyncapi/iterate-asyncapi-components.js.map +1 -0
  82. package/lib/commands/split/asyncapi/iterate-asyncapi-operations.d.ts +11 -0
  83. package/lib/commands/split/asyncapi/iterate-asyncapi-operations.d.ts.map +1 -0
  84. package/lib/commands/split/asyncapi/iterate-asyncapi-operations.js +26 -0
  85. package/lib/commands/split/asyncapi/iterate-asyncapi-operations.js.map +1 -0
  86. package/lib/commands/split/asyncapi/remove-asyncapi-empty-components.d.ts +3 -0
  87. package/lib/commands/split/asyncapi/remove-asyncapi-empty-components.d.ts.map +1 -0
  88. package/lib/commands/split/asyncapi/remove-asyncapi-empty-components.js +13 -0
  89. package/lib/commands/split/asyncapi/remove-asyncapi-empty-components.js.map +1 -0
  90. package/lib/commands/split/asyncapi/split-asyncapi-definition.d.ts +9 -0
  91. package/lib/commands/split/asyncapi/split-asyncapi-definition.d.ts.map +1 -0
  92. package/lib/commands/split/asyncapi/split-asyncapi-definition.js +51 -0
  93. package/lib/commands/split/asyncapi/split-asyncapi-definition.js.map +1 -0
  94. package/lib/commands/split/constants.d.ts +7 -0
  95. package/lib/commands/split/constants.d.ts.map +1 -0
  96. package/lib/commands/split/constants.js +7 -0
  97. package/lib/commands/split/constants.js.map +1 -0
  98. package/lib/commands/split/index.d.ts +2 -10
  99. package/lib/commands/split/index.d.ts.map +1 -1
  100. package/lib/commands/split/index.js +33 -245
  101. package/lib/commands/split/index.js.map +1 -1
  102. package/lib/commands/split/oas/constants.d.ts +3 -0
  103. package/lib/commands/split/oas/constants.d.ts.map +1 -0
  104. package/lib/commands/split/oas/constants.js +23 -0
  105. package/lib/commands/split/oas/constants.js.map +1 -0
  106. package/lib/commands/split/oas/split-oas-definition.d.ts +3 -0
  107. package/lib/commands/split/oas/split-oas-definition.d.ts.map +1 -0
  108. package/lib/commands/split/oas/split-oas-definition.js +19 -0
  109. package/lib/commands/split/oas/split-oas-definition.js.map +1 -0
  110. package/lib/commands/split/types.d.ts +19 -8
  111. package/lib/commands/split/types.d.ts.map +1 -1
  112. package/lib/commands/split/types.js +1 -26
  113. package/lib/commands/split/types.js.map +1 -1
  114. package/lib/commands/split/utils/crawl.d.ts +2 -0
  115. package/lib/commands/split/utils/crawl.d.ts.map +1 -0
  116. package/lib/commands/split/utils/crawl.js +15 -0
  117. package/lib/commands/split/utils/crawl.js.map +1 -0
  118. package/lib/commands/split/utils/create-component-dir.d.ts +2 -0
  119. package/lib/commands/split/utils/create-component-dir.d.ts.map +1 -0
  120. package/lib/commands/split/utils/create-component-dir.js +8 -0
  121. package/lib/commands/split/utils/create-component-dir.js.map +1 -0
  122. package/lib/commands/split/utils/does-file-differ.d.ts +2 -0
  123. package/lib/commands/split/utils/does-file-differ.d.ts.map +1 -0
  124. package/lib/commands/split/utils/does-file-differ.js +7 -0
  125. package/lib/commands/split/utils/does-file-differ.js.map +1 -0
  126. package/lib/commands/split/utils/extract-filename-from-path.d.ts +2 -0
  127. package/lib/commands/split/utils/extract-filename-from-path.d.ts.map +1 -0
  128. package/lib/commands/split/utils/extract-filename-from-path.js +5 -0
  129. package/lib/commands/split/utils/extract-filename-from-path.js.map +1 -0
  130. package/lib/commands/split/utils/find-component-type.d.ts +3 -0
  131. package/lib/commands/split/utils/find-component-type.d.ts.map +1 -0
  132. package/lib/commands/split/utils/find-component-type.js +8 -0
  133. package/lib/commands/split/utils/find-component-type.js.map +1 -0
  134. package/lib/commands/split/utils/gather-components-files.d.ts +4 -0
  135. package/lib/commands/split/utils/gather-components-files.d.ts.map +1 -0
  136. package/lib/commands/split/utils/gather-components-files.js +12 -0
  137. package/lib/commands/split/utils/gather-components-files.js.map +1 -0
  138. package/lib/commands/split/utils/get-file-name-path.d.ts +2 -0
  139. package/lib/commands/split/utils/get-file-name-path.d.ts.map +1 -0
  140. package/lib/commands/split/utils/get-file-name-path.js +5 -0
  141. package/lib/commands/split/utils/get-file-name-path.js.map +1 -0
  142. package/lib/commands/split/utils/implicitly-reference-discriminator.d.ts +2 -0
  143. package/lib/commands/split/utils/implicitly-reference-discriminator.d.ts.map +1 -0
  144. package/lib/commands/split/utils/implicitly-reference-discriminator.js +31 -0
  145. package/lib/commands/split/utils/implicitly-reference-discriminator.js.map +1 -0
  146. package/lib/commands/split/utils/is-not-security-component-type.d.ts +2 -0
  147. package/lib/commands/split/utils/is-not-security-component-type.d.ts.map +1 -0
  148. package/lib/commands/split/utils/is-not-security-component-type.js +4 -0
  149. package/lib/commands/split/utils/is-not-security-component-type.js.map +1 -0
  150. package/lib/commands/split/utils/is-supported-extension.d.ts +2 -0
  151. package/lib/commands/split/utils/is-supported-extension.d.ts.map +1 -0
  152. package/lib/commands/split/utils/is-supported-extension.js +4 -0
  153. package/lib/commands/split/utils/is-supported-extension.js.map +1 -0
  154. package/lib/commands/split/utils/iterate-components.d.ts +3 -0
  155. package/lib/commands/split/utils/iterate-components.d.ts.map +1 -0
  156. package/lib/commands/split/utils/iterate-components.js +55 -0
  157. package/lib/commands/split/utils/iterate-components.js.map +1 -0
  158. package/lib/commands/split/utils/iterate-path-items.d.ts +3 -0
  159. package/lib/commands/split/utils/iterate-path-items.d.ts.map +1 -0
  160. package/lib/commands/split/utils/iterate-path-items.js +42 -0
  161. package/lib/commands/split/utils/iterate-path-items.js.map +1 -0
  162. package/lib/commands/split/utils/remove-empty-components.d.ts +4 -0
  163. package/lib/commands/split/utils/remove-empty-components.d.ts.map +1 -0
  164. package/lib/commands/split/utils/remove-empty-components.js +10 -0
  165. package/lib/commands/split/utils/remove-empty-components.js.map +1 -0
  166. package/lib/commands/split/utils/replace-$-refs.d.ts +3 -0
  167. package/lib/commands/split/utils/replace-$-refs.d.ts.map +1 -0
  168. package/lib/commands/split/utils/replace-$-refs.js +34 -0
  169. package/lib/commands/split/utils/replace-$-refs.js.map +1 -0
  170. package/lib/commands/split/utils/replace-channel-refs.d.ts +3 -0
  171. package/lib/commands/split/utils/replace-channel-refs.d.ts.map +1 -0
  172. package/lib/commands/split/utils/replace-channel-refs.js +30 -0
  173. package/lib/commands/split/utils/replace-channel-refs.js.map +1 -0
  174. package/lib/commands/split/utils/starts-with-components.d.ts +2 -0
  175. package/lib/commands/split/utils/starts-with-components.d.ts.map +1 -0
  176. package/lib/commands/split/utils/starts-with-components.js +5 -0
  177. package/lib/commands/split/utils/starts-with-components.js.map +1 -0
  178. package/lib/commands/split/utils/traverse-directory-deep.d.ts +3 -0
  179. package/lib/commands/split/utils/traverse-directory-deep.d.ts.map +1 -0
  180. package/lib/commands/split/utils/traverse-directory-deep.js +27 -0
  181. package/lib/commands/split/utils/traverse-directory-deep.js.map +1 -0
  182. package/lib/commands/stats/index.d.ts.map +1 -1
  183. package/lib/commands/stats/index.js +3 -45
  184. package/lib/commands/stats/index.js.map +1 -1
  185. package/lib/commands/stats/print-stats/index.d.ts +3 -0
  186. package/lib/commands/stats/print-stats/index.d.ts.map +1 -0
  187. package/lib/commands/stats/print-stats/index.js +22 -0
  188. package/lib/commands/stats/print-stats/index.js.map +1 -0
  189. package/lib/commands/stats/print-stats/json.d.ts +3 -0
  190. package/lib/commands/stats/print-stats/json.d.ts.map +1 -0
  191. package/lib/commands/stats/print-stats/json.js +13 -0
  192. package/lib/commands/stats/print-stats/json.js.map +1 -0
  193. package/lib/commands/stats/print-stats/markdown.d.ts +3 -0
  194. package/lib/commands/stats/print-stats/markdown.d.ts.map +1 -0
  195. package/lib/commands/stats/print-stats/markdown.js +10 -0
  196. package/lib/commands/stats/print-stats/markdown.js.map +1 -0
  197. package/lib/commands/stats/print-stats/stylish.d.ts +3 -0
  198. package/lib/commands/stats/print-stats/stylish.d.ts.map +1 -0
  199. package/lib/commands/stats/print-stats/stylish.js +11 -0
  200. package/lib/commands/stats/print-stats/stylish.js.map +1 -0
  201. package/lib/index.js +6 -1
  202. package/lib/index.js.map +1 -1
  203. package/lib/types.d.ts +1 -1
  204. package/lib/utils/strip-ansi-codes.d.ts +2 -0
  205. package/lib/utils/strip-ansi-codes.d.ts.map +1 -0
  206. package/lib/utils/strip-ansi-codes.js +6 -0
  207. package/lib/utils/strip-ansi-codes.js.map +1 -0
  208. package/package.json +3 -3
  209. package/lib/commands/join/helpers/add-components-prefix.d.ts.map +0 -1
  210. package/lib/commands/join/helpers/add-components-prefix.js.map +0 -1
  211. package/lib/commands/join/helpers/add-info-section.d.ts.map +0 -1
  212. package/lib/commands/join/helpers/add-info-section.js.map +0 -1
  213. package/lib/commands/join/helpers/add-prefix.d.ts.map +0 -1
  214. package/lib/commands/join/helpers/add-prefix.js.map +0 -1
  215. package/lib/commands/join/helpers/add-security-prefix.d.ts.map +0 -1
  216. package/lib/commands/join/helpers/add-security-prefix.js.map +0 -1
  217. package/lib/commands/join/helpers/collect-components.d.ts.map +0 -1
  218. package/lib/commands/join/helpers/collect-components.js.map +0 -1
  219. package/lib/commands/join/helpers/collect-external-docs.d.ts.map +0 -1
  220. package/lib/commands/join/helpers/collect-external-docs.js.map +0 -1
  221. package/lib/commands/join/helpers/collect-paths.d.ts.map +0 -1
  222. package/lib/commands/join/helpers/collect-paths.js.map +0 -1
  223. package/lib/commands/join/helpers/collect-webhooks.d.ts.map +0 -1
  224. package/lib/commands/join/helpers/collect-webhooks.js.map +0 -1
  225. package/lib/commands/join/helpers/duplicate-tag-description-warning.d.ts.map +0 -1
  226. package/lib/commands/join/helpers/duplicate-tag-description-warning.js.map +0 -1
  227. package/lib/commands/join/helpers/filter-conflicts.d.ts.map +0 -1
  228. package/lib/commands/join/helpers/filter-conflicts.js.map +0 -1
  229. package/lib/commands/join/helpers/format-tags.d.ts.map +0 -1
  230. package/lib/commands/join/helpers/format-tags.js.map +0 -1
  231. package/lib/commands/join/helpers/get-api-filename.d.ts.map +0 -1
  232. package/lib/commands/join/helpers/get-api-filename.js.map +0 -1
  233. package/lib/commands/join/helpers/get-info-prefix.d.ts.map +0 -1
  234. package/lib/commands/join/helpers/get-info-prefix.js.map +0 -1
  235. package/lib/commands/join/helpers/index.d.ts.map +0 -1
  236. package/lib/commands/join/helpers/iterate-potential-conflicts.d.ts.map +0 -1
  237. package/lib/commands/join/helpers/iterate-potential-conflicts.js.map +0 -1
  238. package/lib/commands/join/helpers/populate-tags.d.ts.map +0 -1
  239. package/lib/commands/join/helpers/populate-tags.js.map +0 -1
  240. package/lib/commands/join/helpers/prefix-tag-suggestion.d.ts.map +0 -1
  241. package/lib/commands/join/helpers/prefix-tag-suggestion.js.map +0 -1
  242. package/lib/commands/join/helpers/replace-$-refs.d.ts.map +0 -1
  243. package/lib/commands/join/helpers/replace-$-refs.js.map +0 -1
  244. package/lib/commands/join/helpers/show-conflicts.d.ts.map +0 -1
  245. package/lib/commands/join/helpers/show-conflicts.js.map +0 -1
  246. /package/lib/commands/join/{helpers → utils}/add-components-prefix.d.ts +0 -0
  247. /package/lib/commands/join/{helpers → utils}/add-components-prefix.js +0 -0
  248. /package/lib/commands/join/{helpers → utils}/add-info-section.d.ts +0 -0
  249. /package/lib/commands/join/{helpers → utils}/add-prefix.d.ts +0 -0
  250. /package/lib/commands/join/{helpers → utils}/add-prefix.js +0 -0
  251. /package/lib/commands/join/{helpers → utils}/add-security-prefix.d.ts +0 -0
  252. /package/lib/commands/join/{helpers → utils}/add-security-prefix.js +0 -0
  253. /package/lib/commands/join/{helpers → utils}/collect-components.d.ts +0 -0
  254. /package/lib/commands/join/{helpers → utils}/collect-external-docs.d.ts +0 -0
  255. /package/lib/commands/join/{helpers → utils}/collect-external-docs.js +0 -0
  256. /package/lib/commands/join/{helpers → utils}/collect-paths.d.ts +0 -0
  257. /package/lib/commands/join/{helpers → utils}/collect-webhooks.d.ts +0 -0
  258. /package/lib/commands/join/{helpers → utils}/collect-webhooks.js +0 -0
  259. /package/lib/commands/join/{helpers → utils}/duplicate-tag-description-warning.d.ts +0 -0
  260. /package/lib/commands/join/{helpers → utils}/duplicate-tag-description-warning.js +0 -0
  261. /package/lib/commands/join/{helpers → utils}/filter-conflicts.d.ts +0 -0
  262. /package/lib/commands/join/{helpers → utils}/filter-conflicts.js +0 -0
  263. /package/lib/commands/join/{helpers → utils}/format-tags.d.ts +0 -0
  264. /package/lib/commands/join/{helpers → utils}/format-tags.js +0 -0
  265. /package/lib/commands/join/{helpers → utils}/get-api-filename.d.ts +0 -0
  266. /package/lib/commands/join/{helpers → utils}/get-api-filename.js +0 -0
  267. /package/lib/commands/join/{helpers → utils}/get-info-prefix.d.ts +0 -0
  268. /package/lib/commands/join/{helpers → utils}/get-info-prefix.js +0 -0
  269. /package/lib/commands/join/{helpers → utils}/index.d.ts +0 -0
  270. /package/lib/commands/join/{helpers → utils}/index.js +0 -0
  271. /package/lib/commands/join/{helpers → utils}/iterate-potential-conflicts.d.ts +0 -0
  272. /package/lib/commands/join/{helpers → utils}/populate-tags.d.ts +0 -0
  273. /package/lib/commands/join/{helpers → utils}/populate-tags.js +0 -0
  274. /package/lib/commands/join/{helpers → utils}/prefix-tag-suggestion.d.ts +0 -0
  275. /package/lib/commands/join/{helpers → utils}/prefix-tag-suggestion.js +0 -0
  276. /package/lib/commands/join/{helpers → utils}/replace-$-refs.d.ts +0 -0
  277. /package/lib/commands/join/{helpers → utils}/show-conflicts.d.ts +0 -0
  278. /package/lib/commands/join/{helpers → utils}/show-conflicts.js +0 -0
@@ -0,0 +1,71 @@
1
+ export const ASYNCAPI_ACTION_NAMES = ['send', 'receive'];
2
+ export const ASYNCAPI2_COMPONENT_NAMES = [
3
+ 'schemas',
4
+ 'messages',
5
+ 'parameters',
6
+ 'correlationIds',
7
+ 'messageTraits',
8
+ 'operationTraits',
9
+ 'securitySchemes',
10
+ 'servers',
11
+ 'serverVariables',
12
+ 'channels',
13
+ 'serverBindings',
14
+ 'channelBindings',
15
+ 'operationBindings',
16
+ 'messageBindings',
17
+ ];
18
+ export const ASYNCAPI2_SPLITTABLE_COMPONENT_NAMES = [
19
+ 'schemas',
20
+ 'messages',
21
+ 'securitySchemes',
22
+ 'parameters',
23
+ 'correlationIds',
24
+ 'messageTraits',
25
+ 'operationTraits',
26
+ 'serverBindings',
27
+ 'channelBindings',
28
+ 'operationBindings',
29
+ 'messageBindings',
30
+ ];
31
+ export const ASYNCAPI3_COMPONENT_NAMES = [
32
+ 'schemas',
33
+ 'messages',
34
+ 'parameters',
35
+ 'replies',
36
+ 'replyAddresses',
37
+ 'correlationIds',
38
+ 'messageTraits',
39
+ 'operationTraits',
40
+ 'tags',
41
+ 'externalDocs',
42
+ 'securitySchemes',
43
+ 'servers',
44
+ 'serverVariables',
45
+ 'channels',
46
+ 'operations',
47
+ 'serverBindings',
48
+ 'channelBindings',
49
+ 'operationBindings',
50
+ 'messageBindings',
51
+ ];
52
+ export const ASYNCAPI3_SPLITTABLE_COMPONENT_NAMES = [
53
+ 'schemas',
54
+ 'messages',
55
+ 'securitySchemes',
56
+ 'servers',
57
+ 'serverVariables',
58
+ 'parameters',
59
+ 'replies',
60
+ 'replyAddresses',
61
+ 'correlationIds',
62
+ 'messageTraits',
63
+ 'operationTraits',
64
+ 'tags',
65
+ 'externalDocs',
66
+ 'serverBindings',
67
+ 'channelBindings',
68
+ 'operationBindings',
69
+ 'messageBindings',
70
+ ];
71
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../src/commands/split/asyncapi/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,MAAM,EAAE,SAAS,CAAU,CAAC;AAClE,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,SAAS;IACT,UAAU;IACV,YAAY;IACZ,gBAAgB;IAChB,eAAe;IACf,iBAAiB;IACjB,iBAAiB;IACjB,SAAS;IACT,iBAAiB;IACjB,UAAU;IACV,gBAAgB;IAChB,iBAAiB;IACjB,mBAAmB;IACnB,iBAAiB;CACT,CAAC;AAEX,MAAM,CAAC,MAAM,oCAAoC,GAAG;IAClD,SAAS;IACT,UAAU;IACV,iBAAiB;IACjB,YAAY;IACZ,gBAAgB;IAChB,eAAe;IACf,iBAAiB;IACjB,gBAAgB;IAChB,iBAAiB;IACjB,mBAAmB;IACnB,iBAAiB;CACT,CAAC;AAEX,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,SAAS;IACT,UAAU;IACV,YAAY;IACZ,SAAS;IACT,gBAAgB;IAChB,gBAAgB;IAChB,eAAe;IACf,iBAAiB;IACjB,MAAM;IACN,cAAc;IACd,iBAAiB;IACjB,SAAS;IACT,iBAAiB;IACjB,UAAU;IACV,YAAY;IACZ,gBAAgB;IAChB,iBAAiB;IACjB,mBAAmB;IACnB,iBAAiB;CACT,CAAC;AAEX,MAAM,CAAC,MAAM,oCAAoC,GAAG;IAClD,SAAS;IACT,UAAU;IACV,iBAAiB;IACjB,SAAS;IACT,iBAAiB;IACjB,YAAY;IACZ,SAAS;IACT,gBAAgB;IAChB,gBAAgB;IAChB,eAAe;IACf,iBAAiB;IACjB,MAAM;IACN,cAAc;IACd,gBAAgB;IAChB,iBAAiB;IACjB,mBAAmB;IACnB,iBAAiB;CACT,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare function findAsyncApiComponentTypes(components: Record<string, unknown>, specVersion: 'async2' | 'async3'): ("servers" | "tags" | "externalDocs" | "parameters" | "schemas" | "messages" | "correlationIds" | "messageTraits" | "operationTraits" | "securitySchemes" | "serverVariables" | "serverBindings" | "channelBindings" | "operationBindings" | "messageBindings" | "replies" | "replyAddresses")[];
2
+ //# sourceMappingURL=find-asyncapi-component-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"find-asyncapi-component-types.d.ts","sourceRoot":"","sources":["../../../../src/commands/split/asyncapi/find-asyncapi-component-types.ts"],"names":[],"mappings":"AAKA,wBAAgB,0BAA0B,CACxC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACnC,WAAW,EAAE,QAAQ,GAAG,QAAQ,oSAQjC"}
@@ -0,0 +1,8 @@
1
+ import { ASYNCAPI2_SPLITTABLE_COMPONENT_NAMES, ASYNCAPI3_SPLITTABLE_COMPONENT_NAMES, } from './constants.js';
2
+ export function findAsyncApiComponentTypes(components, specVersion) {
3
+ const componentNames = specVersion === 'async2'
4
+ ? ASYNCAPI2_SPLITTABLE_COMPONENT_NAMES
5
+ : ASYNCAPI3_SPLITTABLE_COMPONENT_NAMES;
6
+ return componentNames.filter((item) => item in components);
7
+ }
8
+ //# sourceMappingURL=find-asyncapi-component-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"find-asyncapi-component-types.js","sourceRoot":"","sources":["../../../../src/commands/split/asyncapi/find-asyncapi-component-types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oCAAoC,EACpC,oCAAoC,GACrC,MAAM,gBAAgB,CAAC;AAExB,MAAM,UAAU,0BAA0B,CACxC,UAAmC,EACnC,WAAgC;IAEhC,MAAM,cAAc,GAClB,WAAW,KAAK,QAAQ;QACtB,CAAC,CAAC,oCAAoC;QACtC,CAAC,CAAC,oCAAoC,CAAC;IAE3C,OAAO,cAAc,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,IAAI,UAAU,CAAC,CAAC;AAC7D,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { type ComponentsFiles, type AnyAsyncApiDefinition } from '../types.js';
2
+ export declare function gatherAsyncApiComponentFiles({ asyncapi, asyncapiDir, componentsFiles, ext, specVersion, }: {
3
+ asyncapi: AnyAsyncApiDefinition;
4
+ asyncapiDir: string;
5
+ componentsFiles: ComponentsFiles;
6
+ ext: string;
7
+ specVersion: 'async2' | 'async3';
8
+ }): void;
9
+ //# sourceMappingURL=gather-asyncapi-component-files.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gather-asyncapi-component-files.d.ts","sourceRoot":"","sources":["../../../../src/commands/split/asyncapi/gather-asyncapi-component-files.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,eAAe,EAAE,KAAK,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAI/E,wBAAgB,4BAA4B,CAAC,EAC3C,QAAQ,EACR,WAAW,EACX,eAAe,EACf,GAAG,EACH,WAAW,GACZ,EAAE;IACD,QAAQ,EAAE,qBAAqB,CAAC;IAChC,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,eAAe,CAAC;IACjC,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,QAAQ,GAAG,QAAQ,CAAC;CAClC,QAsBA"}
@@ -0,0 +1,28 @@
1
+ import { isTruthy } from '@redocly/openapi-core';
2
+ import * as path from 'node:path';
3
+ import { COMPONENTS } from '../constants.js';
4
+ import { getFileNamePath } from '../utils/get-file-name-path.js';
5
+ import { findAsyncApiComponentTypes } from './find-asyncapi-component-types.js';
6
+ export function gatherAsyncApiComponentFiles({ asyncapi, asyncapiDir, componentsFiles, ext, specVersion, }) {
7
+ const { components } = asyncapi;
8
+ if (!components)
9
+ return;
10
+ const componentsDir = path.join(asyncapiDir, COMPONENTS);
11
+ const componentTypes = findAsyncApiComponentTypes(components, specVersion);
12
+ for (const componentType of componentTypes) {
13
+ const componentDirPath = path.join(componentsDir, componentType);
14
+ for (const componentName of Object.keys(components[componentType] || {})) {
15
+ const filename = getFileNamePath(componentDirPath, componentName, ext);
16
+ let inherits = [];
17
+ if (componentType === 'schemas') {
18
+ inherits = (components[componentType]?.[componentName]
19
+ ?.allOf || [])
20
+ .map(({ $ref }) => $ref)
21
+ .filter(isTruthy);
22
+ }
23
+ componentsFiles[componentType] = componentsFiles[componentType] || {};
24
+ componentsFiles[componentType][componentName] = { inherits, filename };
25
+ }
26
+ }
27
+ }
28
+ //# sourceMappingURL=gather-asyncapi-component-files.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gather-asyncapi-component-files.js","sourceRoot":"","sources":["../../../../src/commands/split/asyncapi/gather-asyncapi-component-files.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAElC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAEhF,MAAM,UAAU,4BAA4B,CAAC,EAC3C,QAAQ,EACR,WAAW,EACX,eAAe,EACf,GAAG,EACH,WAAW,GAOZ;IACC,MAAM,EAAE,UAAU,EAAE,GAAG,QAAQ,CAAC;IAChC,IAAI,CAAC,UAAU;QAAE,OAAO;IACxB,MAAM,aAAa,GAAG,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC;IACzD,MAAM,cAAc,GAAG,0BAA0B,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;IAC3E,KAAK,MAAM,aAAa,IAAI,cAAc,EAAE,CAAC;QAC3C,MAAM,gBAAgB,GAAG,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,aAAa,CAAC,CAAC;QACjE,KAAK,MAAM,aAAa,IAAI,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC;YACzE,MAAM,QAAQ,GAAG,eAAe,CAAC,gBAAgB,EAAE,aAAa,EAAE,GAAG,CAAC,CAAC;YACvE,IAAI,QAAQ,GAAa,EAAE,CAAC;YAC5B,IAAI,aAAa,KAAK,SAAS,EAAE,CAAC;gBAChC,QAAQ,GAAG,CACR,UAAU,CAAC,aAAa,CAAC,EAAE,CAAC,aAAa,CAA0C;oBAClF,EAAE,KAAK,IAAI,EAAE,CAChB;qBACE,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC;qBACvB,MAAM,CAAC,QAAQ,CAAC,CAAC;YACtB,CAAC;YACD,eAAe,CAAC,aAAa,CAAC,GAAG,eAAe,CAAC,aAAa,CAAC,IAAI,EAAE,CAAC;YACtE,eAAe,CAAC,aAAa,CAAC,CAAC,aAAa,CAAC,GAAG,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC;QACzE,CAAC;IACH,CAAC;AACH,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { type ChannelsFiles, type ComponentsFiles } from '../types.js';
2
+ export declare function iterateAsyncApiChannels({ channels, asyncapiDir, outDir, componentsFiles, pathSeparator, ext, }: {
3
+ channels: Record<string, any> | undefined;
4
+ asyncapiDir: string;
5
+ outDir: string;
6
+ componentsFiles: ComponentsFiles;
7
+ pathSeparator: string;
8
+ ext: string;
9
+ }): ChannelsFiles;
10
+ //# sourceMappingURL=iterate-asyncapi-channels.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"iterate-asyncapi-channels.d.ts","sourceRoot":"","sources":["../../../../src/commands/split/asyncapi/iterate-asyncapi-channels.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,eAAe,EAAE,MAAM,aAAa,CAAC;AAOvE,wBAAgB,uBAAuB,CAAC,EACtC,QAAQ,EACR,WAAW,EACX,MAAM,EACN,eAAe,EACf,aAAa,EACb,GAAG,GACJ,EAAE;IACD,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,CAAC;IAC1C,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,eAAe,CAAC;IACjC,aAAa,EAAE,MAAM,CAAC;IACtB,GAAG,EAAE,MAAM,CAAC;CACb,GAAG,aAAa,CAqBhB"}
@@ -0,0 +1,27 @@
1
+ import { slash, isRef } from '@redocly/openapi-core';
2
+ import * as fs from 'node:fs';
3
+ import * as path from 'node:path';
4
+ import { pathToFilename, writeToFileByExtension } from '../../../utils/miscellaneous.js';
5
+ import { replace$Refs } from '../utils/replace-$-refs.js';
6
+ import { traverseDirectoryDeep, traverseDirectoryDeepCallback, } from '../utils/traverse-directory-deep.js';
7
+ export function iterateAsyncApiChannels({ channels, asyncapiDir, outDir, componentsFiles, pathSeparator, ext, }) {
8
+ const channelsFiles = {};
9
+ if (!channels)
10
+ return channelsFiles;
11
+ fs.mkdirSync(outDir, { recursive: true });
12
+ for (const channelName of Object.keys(channels)) {
13
+ const channelFile = `${path.join(outDir, pathToFilename(channelName, pathSeparator))}.${ext}`;
14
+ const channelData = channels[channelName];
15
+ if (isRef(channelData))
16
+ continue;
17
+ channelsFiles[channelName] = channelFile;
18
+ replace$Refs(channelData, path.dirname(channelFile), componentsFiles);
19
+ writeToFileByExtension(channelData, channelFile);
20
+ channels[channelName] = {
21
+ $ref: slash(path.relative(asyncapiDir, channelFile)),
22
+ };
23
+ traverseDirectoryDeep(outDir, traverseDirectoryDeepCallback, componentsFiles);
24
+ }
25
+ return channelsFiles;
26
+ }
27
+ //# sourceMappingURL=iterate-asyncapi-channels.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"iterate-asyncapi-channels.js","sourceRoot":"","sources":["../../../../src/commands/split/asyncapi/iterate-asyncapi-channels.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAElC,OAAO,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AAEzF,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EACL,qBAAqB,EACrB,6BAA6B,GAC9B,MAAM,qCAAqC,CAAC;AAE7C,MAAM,UAAU,uBAAuB,CAAC,EACtC,QAAQ,EACR,WAAW,EACX,MAAM,EACN,eAAe,EACf,aAAa,EACb,GAAG,GAQJ;IACC,MAAM,aAAa,GAAkB,EAAE,CAAC;IACxC,IAAI,CAAC,QAAQ;QAAE,OAAO,aAAa,CAAC;IACpC,EAAE,CAAC,SAAS,CAAC,MAAM,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IAE1C,KAAK,MAAM,WAAW,IAAI,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC;QAChD,MAAM,WAAW,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,cAAc,CAAC,WAAW,EAAE,aAAa,CAAC,CAAC,IAAI,GAAG,EAAE,CAAC;QAC9F,MAAM,WAAW,GAAG,QAAQ,CAAC,WAAW,CAAC,CAAC;QAE1C,IAAI,KAAK,CAAC,WAAW,CAAC;YAAE,SAAS;QAEjC,aAAa,CAAC,WAAW,CAAC,GAAG,WAAW,CAAC;QACzC,YAAY,CAAC,WAAW,EAAE,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,EAAE,eAAe,CAAC,CAAC;QACtE,sBAAsB,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;QACjD,QAAQ,CAAC,WAAW,CAAC,GAAG;YACtB,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;SACrD,CAAC;QAEF,qBAAqB,CAAC,MAAM,EAAE,6BAA6B,EAAE,eAAe,CAAC,CAAC;IAChF,CAAC;IACD,OAAO,aAAa,CAAC;AACvB,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { type ChannelsFiles, type ComponentsFiles, type AnyAsyncApiDefinition } from '../types.js';
2
+ export declare function iterateAsyncApiComponents({ asyncapi, asyncapiDir, componentsFiles, channelsFiles, ext, specVersion, }: {
3
+ asyncapi: AnyAsyncApiDefinition;
4
+ asyncapiDir: string;
5
+ componentsFiles: ComponentsFiles;
6
+ channelsFiles: ChannelsFiles;
7
+ ext: string;
8
+ specVersion: 'async2' | 'async3';
9
+ }): void;
10
+ //# sourceMappingURL=iterate-asyncapi-components.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"iterate-asyncapi-components.d.ts","sourceRoot":"","sources":["../../../../src/commands/split/asyncapi/iterate-asyncapi-components.ts"],"names":[],"mappings":"AAOA,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAG3B,MAAM,aAAa,CAAC;AASrB,wBAAgB,yBAAyB,CAAC,EACxC,QAAQ,EACR,WAAW,EACX,eAAe,EACf,aAAa,EACb,GAAG,EACH,WAAW,GACZ,EAAE;IACD,QAAQ,EAAE,qBAAqB,CAAC;IAChC,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,eAAe,CAAC;IACjC,aAAa,EAAE,aAAa,CAAC;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,QAAQ,GAAG,QAAQ,CAAC;CAClC,QAkCA"}
@@ -0,0 +1,41 @@
1
+ import { logger } from '@redocly/openapi-core';
2
+ import { blue } from 'colorette';
3
+ import * as fs from 'node:fs';
4
+ import * as path from 'node:path';
5
+ import { writeToFileByExtension } from '../../../utils/miscellaneous.js';
6
+ import { COMPONENTS } from '../constants.js';
7
+ import { createComponentDir } from '../utils/create-component-dir.js';
8
+ import { doesFileDiffer } from '../utils/does-file-differ.js';
9
+ import { getFileNamePath } from '../utils/get-file-name-path.js';
10
+ import { replace$Refs } from '../utils/replace-$-refs.js';
11
+ import { replaceChannelRefs } from '../utils/replace-channel-refs.js';
12
+ import { findAsyncApiComponentTypes } from './find-asyncapi-component-types.js';
13
+ import { removeAsyncApiEmptyComponents } from './remove-asyncapi-empty-components.js';
14
+ export function iterateAsyncApiComponents({ asyncapi, asyncapiDir, componentsFiles, channelsFiles, ext, specVersion, }) {
15
+ const { components } = asyncapi;
16
+ if (components) {
17
+ const componentsDir = path.join(asyncapiDir, COMPONENTS);
18
+ fs.mkdirSync(componentsDir, { recursive: true });
19
+ const componentTypes = findAsyncApiComponentTypes(components, specVersion);
20
+ componentTypes.forEach(iterateComponentTypes);
21
+ function iterateComponentTypes(componentType) {
22
+ const componentDirPath = path.join(componentsDir, componentType);
23
+ createComponentDir(componentDirPath, componentType);
24
+ for (const componentName of Object.keys(components?.[componentType] || {})) {
25
+ const filename = getFileNamePath(componentDirPath, componentName, ext);
26
+ const componentData = components?.[componentType]?.[componentName];
27
+ replace$Refs(componentData, path.dirname(filename), componentsFiles);
28
+ replaceChannelRefs(componentData, path.dirname(filename), channelsFiles);
29
+ if (doesFileDiffer(filename, componentData)) {
30
+ logger.warn(`warning: conflict for ${componentName} - file already exists with different content: ${blue(filename)} ... Skip.\n`);
31
+ }
32
+ else {
33
+ writeToFileByExtension(componentData, filename);
34
+ }
35
+ delete asyncapi.components?.[componentType]?.[componentName];
36
+ }
37
+ removeAsyncApiEmptyComponents(asyncapi, componentType);
38
+ }
39
+ }
40
+ }
41
+ //# sourceMappingURL=iterate-asyncapi-components.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"iterate-asyncapi-components.js","sourceRoot":"","sources":["../../../../src/commands/split/asyncapi/iterate-asyncapi-components.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAElC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AACzE,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAQ7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAChF,OAAO,EAAE,6BAA6B,EAAE,MAAM,uCAAuC,CAAC;AAEtF,MAAM,UAAU,yBAAyB,CAAC,EACxC,QAAQ,EACR,WAAW,EACX,eAAe,EACf,aAAa,EACb,GAAG,EACH,WAAW,GAQZ;IACC,MAAM,EAAE,UAAU,EAAE,GAAG,QAAQ,CAAC;IAChC,IAAI,UAAU,EAAE,CAAC;QACf,MAAM,aAAa,GAAG,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC;QACzD,EAAE,CAAC,SAAS,CAAC,aAAa,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;QACjD,MAAM,cAAc,GAAG,0BAA0B,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;QAC3E,cAAc,CAAC,OAAO,CAAC,qBAAqB,CAAC,CAAC;QAE9C,SAAS,qBAAqB,CAC5B,aAA0E;YAE1E,MAAM,gBAAgB,GAAG,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,aAAa,CAAC,CAAC;YACjE,kBAAkB,CAAC,gBAAgB,EAAE,aAAa,CAAC,CAAC;YACpD,KAAK,MAAM,aAAa,IAAI,MAAM,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC,aAAa,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC;gBAC3E,MAAM,QAAQ,GAAG,eAAe,CAAC,gBAAgB,EAAE,aAAa,EAAE,GAAG,CAAC,CAAC;gBACvE,MAAM,aAAa,GAAG,UAAU,EAAE,CAAC,aAAa,CAAC,EAAE,CAAC,aAAa,CAAC,CAAC;gBACnE,YAAY,CAAC,aAAa,EAAE,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,eAAe,CAAC,CAAC;gBACrE,kBAAkB,CAAC,aAAa,EAAE,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,aAAa,CAAC,CAAC;gBAEzE,IAAI,cAAc,CAAC,QAAQ,EAAE,aAAa,CAAC,EAAE,CAAC;oBAC5C,MAAM,CAAC,IAAI,CACT,yBAAyB,aAAa,kDAAkD,IAAI,CAC1F,QAAQ,CACT,cAAc,CAChB,CAAC;gBACJ,CAAC;qBAAM,CAAC;oBACN,sBAAsB,CAAC,aAAa,EAAE,QAAQ,CAAC,CAAC;gBAClD,CAAC;gBAED,OAAO,QAAQ,CAAC,UAAU,EAAE,CAAC,aAAa,CAAC,EAAE,CAAC,aAAa,CAAC,CAAC;YAC/D,CAAC;YACD,6BAA6B,CAAC,QAAQ,EAAE,aAAa,CAAC,CAAC;QACzD,CAAC;IACH,CAAC;AACH,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { type ChannelsFiles, type ComponentsFiles } from '../types.js';
2
+ export declare function iterateAsyncApiOperations({ operations, asyncapiDir, outDir, componentsFiles, channelsFiles, pathSeparator, ext, }: {
3
+ operations: Record<string, any> | undefined;
4
+ asyncapiDir: string;
5
+ outDir: string;
6
+ componentsFiles: ComponentsFiles;
7
+ channelsFiles: ChannelsFiles;
8
+ pathSeparator: string;
9
+ ext: string;
10
+ }): void;
11
+ //# sourceMappingURL=iterate-asyncapi-operations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"iterate-asyncapi-operations.d.ts","sourceRoot":"","sources":["../../../../src/commands/split/asyncapi/iterate-asyncapi-operations.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,eAAe,EAAE,MAAM,aAAa,CAAC;AAQvE,wBAAgB,yBAAyB,CAAC,EACxC,UAAU,EACV,WAAW,EACX,MAAM,EACN,eAAe,EACf,aAAa,EACb,aAAa,EACb,GAAG,GACJ,EAAE;IACD,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,CAAC;IAC5C,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,eAAe,CAAC;IACjC,aAAa,EAAE,aAAa,CAAC;IAC7B,aAAa,EAAE,MAAM,CAAC;IACtB,GAAG,EAAE,MAAM,CAAC;CACb,QAsBA"}
@@ -0,0 +1,26 @@
1
+ import { slash, isRef } from '@redocly/openapi-core';
2
+ import * as fs from 'node:fs';
3
+ import * as path from 'node:path';
4
+ import { pathToFilename, writeToFileByExtension } from '../../../utils/miscellaneous.js';
5
+ import { replace$Refs } from '../utils/replace-$-refs.js';
6
+ import { replaceChannelRefs } from '../utils/replace-channel-refs.js';
7
+ import { traverseDirectoryDeep, traverseDirectoryDeepCallback, } from '../utils/traverse-directory-deep.js';
8
+ export function iterateAsyncApiOperations({ operations, asyncapiDir, outDir, componentsFiles, channelsFiles, pathSeparator, ext, }) {
9
+ if (!operations)
10
+ return;
11
+ fs.mkdirSync(outDir, { recursive: true });
12
+ for (const operationName of Object.keys(operations)) {
13
+ const operationFile = `${path.join(outDir, pathToFilename(operationName, pathSeparator))}.${ext}`;
14
+ const operationData = operations[operationName];
15
+ if (isRef(operationData))
16
+ continue;
17
+ replace$Refs(operationData, path.dirname(operationFile), componentsFiles);
18
+ replaceChannelRefs(operationData, path.dirname(operationFile), channelsFiles);
19
+ writeToFileByExtension(operationData, operationFile);
20
+ operations[operationName] = {
21
+ $ref: slash(path.relative(asyncapiDir, operationFile)),
22
+ };
23
+ traverseDirectoryDeep(outDir, traverseDirectoryDeepCallback, componentsFiles);
24
+ }
25
+ }
26
+ //# sourceMappingURL=iterate-asyncapi-operations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"iterate-asyncapi-operations.js","sourceRoot":"","sources":["../../../../src/commands/split/asyncapi/iterate-asyncapi-operations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAElC,OAAO,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AAEzF,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EACL,qBAAqB,EACrB,6BAA6B,GAC9B,MAAM,qCAAqC,CAAC;AAE7C,MAAM,UAAU,yBAAyB,CAAC,EACxC,UAAU,EACV,WAAW,EACX,MAAM,EACN,eAAe,EACf,aAAa,EACb,aAAa,EACb,GAAG,GASJ;IACC,IAAI,CAAC,UAAU;QAAE,OAAO;IACxB,EAAE,CAAC,SAAS,CAAC,MAAM,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IAE1C,KAAK,MAAM,aAAa,IAAI,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC;QACpD,MAAM,aAAa,GAAG,GAAG,IAAI,CAAC,IAAI,CAChC,MAAM,EACN,cAAc,CAAC,aAAa,EAAE,aAAa,CAAC,CAC7C,IAAI,GAAG,EAAE,CAAC;QACX,MAAM,aAAa,GAAG,UAAU,CAAC,aAAa,CAAC,CAAC;QAEhD,IAAI,KAAK,CAAC,aAAa,CAAC;YAAE,SAAS;QAEnC,YAAY,CAAC,aAAa,EAAE,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,EAAE,eAAe,CAAC,CAAC;QAC1E,kBAAkB,CAAC,aAAa,EAAE,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,EAAE,aAAa,CAAC,CAAC;QAC9E,sBAAsB,CAAC,aAAa,EAAE,aAAa,CAAC,CAAC;QACrD,UAAU,CAAC,aAAa,CAAC,GAAG;YAC1B,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,WAAW,EAAE,aAAa,CAAC,CAAC;SACvD,CAAC;QAEF,qBAAqB,CAAC,MAAM,EAAE,6BAA6B,EAAE,eAAe,CAAC,CAAC;IAChF,CAAC;AACH,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { AnyAsyncApiDefinition, AsyncApi2SplittableComponent, AsyncApi3SplittableComponent } from '../types.js';
2
+ export declare function removeAsyncApiEmptyComponents(asyncapi: AnyAsyncApiDefinition, componentType: AsyncApi2SplittableComponent | AsyncApi3SplittableComponent): void;
3
+ //# sourceMappingURL=remove-asyncapi-empty-components.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"remove-asyncapi-empty-components.d.ts","sourceRoot":"","sources":["../../../../src/commands/split/asyncapi/remove-asyncapi-empty-components.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,qBAAqB,EACrB,4BAA4B,EAC5B,4BAA4B,EAC7B,MAAM,aAAa,CAAC;AAErB,wBAAgB,6BAA6B,CAC3C,QAAQ,EAAE,qBAAqB,EAC/B,aAAa,EAAE,4BAA4B,GAAG,4BAA4B,QAY3E"}
@@ -0,0 +1,13 @@
1
+ import { isEmptyObject } from '@redocly/openapi-core';
2
+ export function removeAsyncApiEmptyComponents(asyncapi, componentType) {
3
+ const components = asyncapi.components;
4
+ if (!components)
5
+ return;
6
+ if (isEmptyObject(components[componentType])) {
7
+ delete components[componentType];
8
+ }
9
+ if (isEmptyObject(components)) {
10
+ delete asyncapi.components;
11
+ }
12
+ }
13
+ //# sourceMappingURL=remove-asyncapi-empty-components.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"remove-asyncapi-empty-components.js","sourceRoot":"","sources":["../../../../src/commands/split/asyncapi/remove-asyncapi-empty-components.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAQtD,MAAM,UAAU,6BAA6B,CAC3C,QAA+B,EAC/B,aAA0E;IAE1E,MAAM,UAAU,GAAG,QAAQ,CAAC,UAAU,CAAC;IACvC,IAAI,CAAC,UAAU;QAAE,OAAO;IAExB,IAAI,aAAa,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC,EAAE,CAAC;QAC7C,OAAO,UAAU,CAAC,aAAa,CAAC,CAAC;IACnC,CAAC;IAED,IAAI,aAAa,CAAC,UAAU,CAAC,EAAE,CAAC;QAC9B,OAAO,QAAQ,CAAC,UAAU,CAAC;IAC7B,CAAC;AACH,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { type AnyAsyncApiDefinition } from '../types.js';
2
+ export declare function splitAsyncApiDefinition({ asyncapi, asyncapiDir, pathSeparator, ext, specVersion, }: {
3
+ asyncapi: AnyAsyncApiDefinition;
4
+ asyncapiDir: string;
5
+ pathSeparator: string;
6
+ ext: string;
7
+ specVersion: 'async2' | 'async3';
8
+ }): void;
9
+ //# sourceMappingURL=split-asyncapi-definition.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"split-asyncapi-definition.d.ts","sourceRoot":"","sources":["../../../../src/commands/split/asyncapi/split-asyncapi-definition.ts"],"names":[],"mappings":"AAMA,OAAO,EAA4C,KAAK,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAOnG,wBAAgB,uBAAuB,CAAC,EACtC,QAAQ,EACR,WAAW,EACX,aAAa,EACb,GAAG,EACH,WAAW,GACZ,EAAE;IACD,QAAQ,EAAE,qBAAqB,CAAC;IAChC,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,QAAQ,GAAG,QAAQ,CAAC;CAClC,QA8CA"}
@@ -0,0 +1,51 @@
1
+ import * as fs from 'node:fs';
2
+ import * as path from 'node:path';
3
+ import { writeToFileByExtension } from '../../../utils/miscellaneous.js';
4
+ import { CHANNELS, OPERATIONS } from '../constants.js';
5
+ import { replace$Refs } from '../utils/replace-$-refs.js';
6
+ import { gatherAsyncApiComponentFiles } from './gather-asyncapi-component-files.js';
7
+ import { iterateAsyncApiChannels } from './iterate-asyncapi-channels.js';
8
+ import { iterateAsyncApiComponents } from './iterate-asyncapi-components.js';
9
+ import { iterateAsyncApiOperations } from './iterate-asyncapi-operations.js';
10
+ export function splitAsyncApiDefinition({ asyncapi, asyncapiDir, pathSeparator, ext, specVersion, }) {
11
+ fs.mkdirSync(asyncapiDir, { recursive: true });
12
+ const componentsFiles = {};
13
+ // Phase 1: gather component file paths so replace$Refs can resolve #/components/... when writing channels
14
+ gatherAsyncApiComponentFiles({ asyncapi, asyncapiDir, componentsFiles, ext, specVersion });
15
+ // Phase 2: split channels (componentsFiles is populated → replace$Refs rewrites #/components/... refs)
16
+ const channels = asyncapi.channels;
17
+ const channelsFiles = channels
18
+ ? iterateAsyncApiChannels({
19
+ channels,
20
+ asyncapiDir,
21
+ outDir: path.join(asyncapiDir, CHANNELS),
22
+ componentsFiles,
23
+ pathSeparator,
24
+ ext,
25
+ })
26
+ : {};
27
+ // Phase 3: write component files (channelsFiles is populated → replaceChannelRefs rewrites #/channels/... refs)
28
+ iterateAsyncApiComponents({
29
+ asyncapi,
30
+ asyncapiDir,
31
+ componentsFiles,
32
+ channelsFiles,
33
+ ext,
34
+ specVersion,
35
+ });
36
+ // Phase 4: split operations for AsyncAPI 3
37
+ if (specVersion === 'async3' && asyncapi.operations) {
38
+ iterateAsyncApiOperations({
39
+ operations: asyncapi.operations,
40
+ asyncapiDir,
41
+ outDir: path.join(asyncapiDir, OPERATIONS),
42
+ componentsFiles,
43
+ channelsFiles,
44
+ pathSeparator,
45
+ ext,
46
+ });
47
+ }
48
+ replace$Refs(asyncapi, asyncapiDir, componentsFiles);
49
+ writeToFileByExtension(asyncapi, path.join(asyncapiDir, `asyncapi.${ext}`));
50
+ }
51
+ //# sourceMappingURL=split-asyncapi-definition.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"split-asyncapi-definition.js","sourceRoot":"","sources":["../../../../src/commands/split/asyncapi/split-asyncapi-definition.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAElC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AACzE,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAEvD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,4BAA4B,EAAE,MAAM,sCAAsC,CAAC;AACpF,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AACzE,OAAO,EAAE,yBAAyB,EAAE,MAAM,kCAAkC,CAAC;AAC7E,OAAO,EAAE,yBAAyB,EAAE,MAAM,kCAAkC,CAAC;AAE7E,MAAM,UAAU,uBAAuB,CAAC,EACtC,QAAQ,EACR,WAAW,EACX,aAAa,EACb,GAAG,EACH,WAAW,GAOZ;IACC,EAAE,CAAC,SAAS,CAAC,WAAW,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IAE/C,MAAM,eAAe,GAAoB,EAAE,CAAC;IAE5C,0GAA0G;IAC1G,4BAA4B,CAAC,EAAE,QAAQ,EAAE,WAAW,EAAE,eAAe,EAAE,GAAG,EAAE,WAAW,EAAE,CAAC,CAAC;IAE3F,uGAAuG;IACvG,MAAM,QAAQ,GAAG,QAAQ,CAAC,QAAQ,CAAC;IACnC,MAAM,aAAa,GAAkB,QAAQ;QAC3C,CAAC,CAAC,uBAAuB,CAAC;YACtB,QAAQ;YACR,WAAW;YACX,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,QAAQ,CAAC;YACxC,eAAe;YACf,aAAa;YACb,GAAG;SACJ,CAAC;QACJ,CAAC,CAAC,EAAE,CAAC;IAEP,gHAAgH;IAChH,yBAAyB,CAAC;QACxB,QAAQ;QACR,WAAW;QACX,eAAe;QACf,aAAa;QACb,GAAG;QACH,WAAW;KACZ,CAAC,CAAC;IAEH,2CAA2C;IAC3C,IAAI,WAAW,KAAK,QAAQ,IAAK,QAA6B,CAAC,UAAU,EAAE,CAAC;QAC1E,yBAAyB,CAAC;YACxB,UAAU,EAAG,QAA6B,CAAC,UAAW;YACtD,WAAW;YACX,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,UAAU,CAAC;YAC1C,eAAe;YACf,aAAa;YACb,aAAa;YACb,GAAG;SACJ,CAAC,CAAC;IACL,CAAC;IAED,YAAY,CAAC,QAAQ,EAAE,WAAW,EAAE,eAAe,CAAC,CAAC;IACrD,sBAAsB,CAAC,QAAQ,EAAE,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,YAAY,GAAG,EAAE,CAAC,CAAC,CAAC;AAC9E,CAAC"}
@@ -0,0 +1,7 @@
1
+ export declare const COMPONENTS = "components";
2
+ export declare const PATHS = "paths";
3
+ export declare const WEBHOOKS = "webhooks";
4
+ export declare const xWEBHOOKS = "x-webhooks";
5
+ export declare const CHANNELS = "channels";
6
+ export declare const OPERATIONS = "operations";
7
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/commands/split/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,eAAe,CAAC;AACvC,eAAO,MAAM,KAAK,UAAU,CAAC;AAC7B,eAAO,MAAM,QAAQ,aAAa,CAAC;AACnC,eAAO,MAAM,SAAS,eAAe,CAAC;AACtC,eAAO,MAAM,QAAQ,aAAa,CAAC;AACnC,eAAO,MAAM,UAAU,eAAe,CAAC"}
@@ -0,0 +1,7 @@
1
+ export const COMPONENTS = 'components';
2
+ export const PATHS = 'paths';
3
+ export const WEBHOOKS = 'webhooks';
4
+ export const xWEBHOOKS = 'x-webhooks';
5
+ export const CHANNELS = 'channels';
6
+ export const OPERATIONS = 'operations';
7
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/commands/split/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,UAAU,GAAG,YAAY,CAAC;AACvC,MAAM,CAAC,MAAM,KAAK,GAAG,OAAO,CAAC;AAC7B,MAAM,CAAC,MAAM,QAAQ,GAAG,UAAU,CAAC;AACnC,MAAM,CAAC,MAAM,SAAS,GAAG,YAAY,CAAC;AACtC,MAAM,CAAC,MAAM,QAAQ,GAAG,UAAU,CAAC;AACnC,MAAM,CAAC,MAAM,UAAU,GAAG,YAAY,CAAC"}
@@ -1,14 +1,6 @@
1
- import { type Oas3PathItem, type Referenced } from '@redocly/openapi-core';
2
- import type { VerifyConfigOptions } from '../../types.js';
3
1
  import type { CommandArgs } from '../../wrapper.js';
4
- export type SplitArgv = {
5
- api: string;
6
- outDir: string;
7
- separator: string;
8
- } & VerifyConfigOptions;
2
+ import { type SplitArgv } from './types.js';
3
+ import { iteratePathItems } from './utils/iterate-path-items.js';
9
4
  export declare function handleSplit({ argv, collectSpecData }: CommandArgs<SplitArgv>): Promise<void>;
10
- export declare function startsWithComponents(node: string): boolean;
11
- export declare function crawl(object: unknown, visitor: (node: Record<string, unknown>) => void): void;
12
- declare function iteratePathItems(pathItems: Record<string, Referenced<Oas3PathItem>> | undefined, openapiDir: string, outDir: string, componentsFiles: object, pathSeparator: string, codeSamplesPathPrefix: string | undefined, ext: string): void;
13
5
  export { iteratePathItems };
14
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/split/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAkBL,KAAK,YAAY,EAEjB,KAAK,UAAU,EAChB,MAAM,uBAAuB,CAAC;AAM/B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAW1D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAapD,MAAM,MAAM,SAAS,GAAG;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;CACnB,GAAG,mBAAmB,CAAC;AAExB,wBAAsB,WAAW,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,EAAE,WAAW,CAAC,SAAS,CAAC,iBAalF;AAuCD,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,WAEhD;AAkDD,wBAAgB,KAAK,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,QAWtF;AA6HD,iBAAS,gBAAgB,CACvB,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,YAAY,CAAC,CAAC,GAAG,SAAS,EAC/D,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,MAAM,EACd,eAAe,EAAE,MAAM,EACvB,aAAa,EAAE,MAAM,EACrB,qBAAqB,EAAE,MAAM,YAAK,EAClC,GAAG,EAAE,MAAM,QA2CZ;AA4DD,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/split/index.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAGpD,OAAO,EAIL,KAAK,SAAS,EACf,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEjE,wBAAsB,WAAW,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,EAAE,WAAW,CAAC,SAAS,CAAC,iBAyClF;AAED,OAAO,EAAE,gBAAgB,EAAE,CAAC"}