@kubb/agent 4.28.0 → 4.29.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 (290) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/server/chunks/nitro/nitro.mjs +382 -642
  3. package/.output/server/chunks/nitro/nitro.mjs.map +1 -1
  4. package/.output/server/chunks/routes/api/health.get.mjs +4 -6
  5. package/.output/server/chunks/routes/api/health.get.mjs.map +1 -1
  6. package/.output/server/index.mjs +4 -6
  7. package/.output/server/index.mjs.map +1 -1
  8. package/.output/server/node_modules/@kubb/fabric-core/dist/{defaultParser-BD_N68Bo.js → defaultParser-C1atU7yU.js} +2 -3
  9. package/.output/server/node_modules/@kubb/fabric-core/dist/{getRelativePath-C4Au07ON.js → getRelativePath-BcieQL5M.js} +1 -2
  10. package/.output/server/node_modules/@kubb/fabric-core/dist/index.js +8 -9
  11. package/.output/server/node_modules/@kubb/fabric-core/dist/{Root-BQX3eHqb.js → onProcessExit-CF200hsz.js} +109 -190
  12. package/.output/server/node_modules/@kubb/fabric-core/dist/parsers/typescript.js +3 -4
  13. package/.output/server/node_modules/@kubb/fabric-core/dist/parsers.js +2 -3
  14. package/.output/server/node_modules/@kubb/fabric-core/dist/plugins.js +58 -298
  15. package/.output/server/node_modules/@kubb/fabric-core/package.json +8 -18
  16. package/.output/server/node_modules/@kubb/react-fabric/dist/{chunk-DbZtQ4qb.js → chunk-Cnw5r_-A.js} +1 -5
  17. package/.output/server/node_modules/@kubb/react-fabric/dist/index.js +39 -41
  18. package/.output/server/node_modules/@kubb/react-fabric/dist/{jsx-runtime-CQFBnRKx.js → jsx-runtime-Dm7PKVbc.js} +6 -24
  19. package/.output/server/node_modules/@kubb/react-fabric/dist/jsx-runtime.js +5 -4
  20. package/.output/server/node_modules/@kubb/react-fabric/dist/plugins.js +3 -3
  21. package/.output/server/node_modules/@kubb/react-fabric/dist/{react--draJ5Pm.js → react-D652OKii.js} +31 -91
  22. package/.output/server/node_modules/@kubb/react-fabric/dist/{reactPlugin-DqJsInTf.js → reactPlugin-BkDkx1cs.js} +410 -1650
  23. package/.output/server/node_modules/@kubb/react-fabric/package.json +8 -11
  24. package/.output/server/node_modules/empathic/access.js +39 -0
  25. package/.output/server/node_modules/empathic/access.mjs +34 -0
  26. package/.output/server/node_modules/empathic/find.js +81 -0
  27. package/.output/server/node_modules/empathic/find.mjs +76 -0
  28. package/.output/server/node_modules/empathic/package.json +49 -0
  29. package/.output/server/node_modules/empathic/package.mjs +52 -0
  30. package/.output/server/node_modules/empathic/resolve.js +31 -0
  31. package/.output/server/node_modules/empathic/resolve.mjs +27 -0
  32. package/.output/server/node_modules/empathic/walk.js +22 -0
  33. package/.output/server/node_modules/empathic/walk.mjs +20 -0
  34. package/.output/server/node_modules/tinyexec/dist/main.js +633 -0
  35. package/.output/server/node_modules/tinyexec/package.json +61 -0
  36. package/.output/server/package.json +6 -44
  37. package/package.json +19 -21
  38. package/.output/server/node_modules/.nitro/path-key@3.1.1/index.js +0 -16
  39. package/.output/server/node_modules/.nitro/path-key@3.1.1/package.json +0 -39
  40. package/.output/server/node_modules/.nitro/path-key@4.0.0/index.js +0 -12
  41. package/.output/server/node_modules/.nitro/path-key@4.0.0/package.json +0 -41
  42. package/.output/server/node_modules/.nitro/path-to-regexp@3.3.0/index.js +0 -421
  43. package/.output/server/node_modules/.nitro/path-to-regexp@3.3.0/package.json +0 -46
  44. package/.output/server/node_modules/@kubb/fabric-core/dist/chunk-BVHe6Par.js +0 -22
  45. package/.output/server/node_modules/@sec-ant/readable-stream/dist/ponyfill/asyncIterator.js +0 -89
  46. package/.output/server/node_modules/@sec-ant/readable-stream/dist/ponyfill/fromAnyIterable.js +0 -34
  47. package/.output/server/node_modules/@sec-ant/readable-stream/dist/ponyfill/index.js +0 -6
  48. package/.output/server/node_modules/@sec-ant/readable-stream/package.json +0 -98
  49. package/.output/server/node_modules/@sindresorhus/merge-streams/index.js +0 -265
  50. package/.output/server/node_modules/@sindresorhus/merge-streams/package.json +0 -49
  51. package/.output/server/node_modules/balanced-match/index.js +0 -62
  52. package/.output/server/node_modules/balanced-match/package.json +0 -48
  53. package/.output/server/node_modules/brace-expansion/index.js +0 -201
  54. package/.output/server/node_modules/brace-expansion/package.json +0 -50
  55. package/.output/server/node_modules/bytes/index.js +0 -159
  56. package/.output/server/node_modules/bytes/package.json +0 -39
  57. package/.output/server/node_modules/concat-map/index.js +0 -13
  58. package/.output/server/node_modules/concat-map/package.json +0 -59
  59. package/.output/server/node_modules/content-disposition/index.js +0 -445
  60. package/.output/server/node_modules/content-disposition/package.json +0 -39
  61. package/.output/server/node_modules/cross-spawn/index.js +0 -39
  62. package/.output/server/node_modules/cross-spawn/lib/enoent.js +0 -59
  63. package/.output/server/node_modules/cross-spawn/lib/parse.js +0 -91
  64. package/.output/server/node_modules/cross-spawn/lib/util/escape.js +0 -47
  65. package/.output/server/node_modules/cross-spawn/lib/util/readShebang.js +0 -23
  66. package/.output/server/node_modules/cross-spawn/lib/util/resolveCommand.js +0 -52
  67. package/.output/server/node_modules/cross-spawn/package.json +0 -73
  68. package/.output/server/node_modules/execa/index.js +0 -28
  69. package/.output/server/node_modules/execa/lib/arguments/command.js +0 -20
  70. package/.output/server/node_modules/execa/lib/arguments/cwd.js +0 -39
  71. package/.output/server/node_modules/execa/lib/arguments/encoding-option.js +0 -50
  72. package/.output/server/node_modules/execa/lib/arguments/escape.js +0 -88
  73. package/.output/server/node_modules/execa/lib/arguments/fd-options.js +0 -108
  74. package/.output/server/node_modules/execa/lib/arguments/file-url.js +0 -25
  75. package/.output/server/node_modules/execa/lib/arguments/options.js +0 -96
  76. package/.output/server/node_modules/execa/lib/arguments/shell.js +0 -11
  77. package/.output/server/node_modules/execa/lib/arguments/specific.js +0 -111
  78. package/.output/server/node_modules/execa/lib/convert/add.js +0 -15
  79. package/.output/server/node_modules/execa/lib/convert/concurrent.js +0 -33
  80. package/.output/server/node_modules/execa/lib/convert/duplex.js +0 -69
  81. package/.output/server/node_modules/execa/lib/convert/iterable.js +0 -34
  82. package/.output/server/node_modules/execa/lib/convert/readable.js +0 -113
  83. package/.output/server/node_modules/execa/lib/convert/shared.js +0 -46
  84. package/.output/server/node_modules/execa/lib/convert/writable.js +0 -90
  85. package/.output/server/node_modules/execa/lib/io/contents.js +0 -116
  86. package/.output/server/node_modules/execa/lib/io/input-sync.js +0 -44
  87. package/.output/server/node_modules/execa/lib/io/iterate.js +0 -110
  88. package/.output/server/node_modules/execa/lib/io/max-buffer.js +0 -89
  89. package/.output/server/node_modules/execa/lib/io/output-async.js +0 -80
  90. package/.output/server/node_modules/execa/lib/io/output-sync.js +0 -135
  91. package/.output/server/node_modules/execa/lib/io/pipeline.js +0 -48
  92. package/.output/server/node_modules/execa/lib/io/strip-newline.js +0 -12
  93. package/.output/server/node_modules/execa/lib/ipc/array.js +0 -4
  94. package/.output/server/node_modules/execa/lib/ipc/buffer-messages.js +0 -47
  95. package/.output/server/node_modules/execa/lib/ipc/forward.js +0 -56
  96. package/.output/server/node_modules/execa/lib/ipc/get-each.js +0 -89
  97. package/.output/server/node_modules/execa/lib/ipc/get-one.js +0 -69
  98. package/.output/server/node_modules/execa/lib/ipc/graceful.js +0 -72
  99. package/.output/server/node_modules/execa/lib/ipc/incoming.js +0 -79
  100. package/.output/server/node_modules/execa/lib/ipc/ipc-input.js +0 -44
  101. package/.output/server/node_modules/execa/lib/ipc/methods.js +0 -49
  102. package/.output/server/node_modules/execa/lib/ipc/outgoing.js +0 -47
  103. package/.output/server/node_modules/execa/lib/ipc/reference.js +0 -44
  104. package/.output/server/node_modules/execa/lib/ipc/send.js +0 -91
  105. package/.output/server/node_modules/execa/lib/ipc/strict.js +0 -113
  106. package/.output/server/node_modules/execa/lib/ipc/validation.js +0 -111
  107. package/.output/server/node_modules/execa/lib/methods/bind.js +0 -23
  108. package/.output/server/node_modules/execa/lib/methods/command.js +0 -43
  109. package/.output/server/node_modules/execa/lib/methods/create.js +0 -65
  110. package/.output/server/node_modules/execa/lib/methods/main-async.js +0 -194
  111. package/.output/server/node_modules/execa/lib/methods/main-sync.js +0 -163
  112. package/.output/server/node_modules/execa/lib/methods/node.js +0 -51
  113. package/.output/server/node_modules/execa/lib/methods/parameters.js +0 -31
  114. package/.output/server/node_modules/execa/lib/methods/promise.js +0 -15
  115. package/.output/server/node_modules/execa/lib/methods/script.js +0 -22
  116. package/.output/server/node_modules/execa/lib/methods/template.js +0 -153
  117. package/.output/server/node_modules/execa/lib/pipe/abort.js +0 -20
  118. package/.output/server/node_modules/execa/lib/pipe/pipe-arguments.js +0 -91
  119. package/.output/server/node_modules/execa/lib/pipe/sequence.js +0 -24
  120. package/.output/server/node_modules/execa/lib/pipe/setup.js +0 -72
  121. package/.output/server/node_modules/execa/lib/pipe/streaming.js +0 -51
  122. package/.output/server/node_modules/execa/lib/pipe/throw.js +0 -58
  123. package/.output/server/node_modules/execa/lib/resolve/all-async.js +0 -46
  124. package/.output/server/node_modules/execa/lib/resolve/all-sync.js +0 -33
  125. package/.output/server/node_modules/execa/lib/resolve/exit-async.js +0 -54
  126. package/.output/server/node_modules/execa/lib/resolve/exit-sync.js +0 -25
  127. package/.output/server/node_modules/execa/lib/resolve/stdio.js +0 -47
  128. package/.output/server/node_modules/execa/lib/resolve/wait-stream.js +0 -96
  129. package/.output/server/node_modules/execa/lib/resolve/wait-subprocess.js +0 -146
  130. package/.output/server/node_modules/execa/lib/return/duration.js +0 -8
  131. package/.output/server/node_modules/execa/lib/return/early-error.js +0 -60
  132. package/.output/server/node_modules/execa/lib/return/final-error.js +0 -40
  133. package/.output/server/node_modules/execa/lib/return/message.js +0 -157
  134. package/.output/server/node_modules/execa/lib/return/reject.js +0 -13
  135. package/.output/server/node_modules/execa/lib/return/result.js +0 -186
  136. package/.output/server/node_modules/execa/lib/stdio/direction.js +0 -76
  137. package/.output/server/node_modules/execa/lib/stdio/duplicate.js +0 -116
  138. package/.output/server/node_modules/execa/lib/stdio/handle-async.js +0 -52
  139. package/.output/server/node_modules/execa/lib/stdio/handle-sync.js +0 -57
  140. package/.output/server/node_modules/execa/lib/stdio/handle.js +0 -214
  141. package/.output/server/node_modules/execa/lib/stdio/input-option.js +0 -50
  142. package/.output/server/node_modules/execa/lib/stdio/native.js +0 -106
  143. package/.output/server/node_modules/execa/lib/stdio/stdio-option.js +0 -60
  144. package/.output/server/node_modules/execa/lib/stdio/type.js +0 -173
  145. package/.output/server/node_modules/execa/lib/terminate/cancel.js +0 -20
  146. package/.output/server/node_modules/execa/lib/terminate/cleanup.js +0 -16
  147. package/.output/server/node_modules/execa/lib/terminate/graceful.js +0 -71
  148. package/.output/server/node_modules/execa/lib/terminate/kill.js +0 -93
  149. package/.output/server/node_modules/execa/lib/terminate/signal.js +0 -70
  150. package/.output/server/node_modules/execa/lib/terminate/timeout.js +0 -21
  151. package/.output/server/node_modules/execa/lib/transform/encoding-transform.js +0 -51
  152. package/.output/server/node_modules/execa/lib/transform/generator.js +0 -107
  153. package/.output/server/node_modules/execa/lib/transform/normalize.js +0 -111
  154. package/.output/server/node_modules/execa/lib/transform/object-mode.js +0 -41
  155. package/.output/server/node_modules/execa/lib/transform/run-async.js +0 -60
  156. package/.output/server/node_modules/execa/lib/transform/run-sync.js +0 -50
  157. package/.output/server/node_modules/execa/lib/transform/split.js +0 -110
  158. package/.output/server/node_modules/execa/lib/transform/validate.js +0 -43
  159. package/.output/server/node_modules/execa/lib/utils/abort-signal.js +0 -8
  160. package/.output/server/node_modules/execa/lib/utils/deferred.js +0 -7
  161. package/.output/server/node_modules/execa/lib/utils/max-listeners.js +0 -14
  162. package/.output/server/node_modules/execa/lib/utils/standard-stream.js +0 -6
  163. package/.output/server/node_modules/execa/lib/utils/uint-array.js +0 -69
  164. package/.output/server/node_modules/execa/lib/verbose/complete.js +0 -24
  165. package/.output/server/node_modules/execa/lib/verbose/custom.js +0 -26
  166. package/.output/server/node_modules/execa/lib/verbose/default.js +0 -54
  167. package/.output/server/node_modules/execa/lib/verbose/error.js +0 -13
  168. package/.output/server/node_modules/execa/lib/verbose/info.js +0 -39
  169. package/.output/server/node_modules/execa/lib/verbose/ipc.js +0 -15
  170. package/.output/server/node_modules/execa/lib/verbose/log.js +0 -54
  171. package/.output/server/node_modules/execa/lib/verbose/output.js +0 -60
  172. package/.output/server/node_modules/execa/lib/verbose/start.js +0 -15
  173. package/.output/server/node_modules/execa/lib/verbose/values.js +0 -33
  174. package/.output/server/node_modules/execa/package.json +0 -105
  175. package/.output/server/node_modules/figures/index.js +0 -292
  176. package/.output/server/node_modules/figures/package.json +0 -49
  177. package/.output/server/node_modules/fs-extra/lib/copy/copy-sync.js +0 -176
  178. package/.output/server/node_modules/fs-extra/lib/copy/copy.js +0 -180
  179. package/.output/server/node_modules/fs-extra/lib/copy/index.js +0 -7
  180. package/.output/server/node_modules/fs-extra/lib/empty/index.js +0 -39
  181. package/.output/server/node_modules/fs-extra/lib/ensure/file.js +0 -66
  182. package/.output/server/node_modules/fs-extra/lib/ensure/index.js +0 -23
  183. package/.output/server/node_modules/fs-extra/lib/ensure/link.js +0 -64
  184. package/.output/server/node_modules/fs-extra/lib/ensure/symlink-paths.js +0 -101
  185. package/.output/server/node_modules/fs-extra/lib/ensure/symlink-type.js +0 -34
  186. package/.output/server/node_modules/fs-extra/lib/ensure/symlink.js +0 -67
  187. package/.output/server/node_modules/fs-extra/lib/fs/index.js +0 -146
  188. package/.output/server/node_modules/fs-extra/lib/index.js +0 -16
  189. package/.output/server/node_modules/fs-extra/lib/json/index.js +0 -16
  190. package/.output/server/node_modules/fs-extra/lib/json/jsonfile.js +0 -11
  191. package/.output/server/node_modules/fs-extra/lib/json/output-json-sync.js +0 -12
  192. package/.output/server/node_modules/fs-extra/lib/json/output-json.js +0 -12
  193. package/.output/server/node_modules/fs-extra/lib/mkdirs/index.js +0 -14
  194. package/.output/server/node_modules/fs-extra/lib/mkdirs/make-dir.js +0 -27
  195. package/.output/server/node_modules/fs-extra/lib/mkdirs/utils.js +0 -21
  196. package/.output/server/node_modules/fs-extra/lib/move/index.js +0 -7
  197. package/.output/server/node_modules/fs-extra/lib/move/move-sync.js +0 -55
  198. package/.output/server/node_modules/fs-extra/lib/move/move.js +0 -59
  199. package/.output/server/node_modules/fs-extra/lib/output-file/index.js +0 -31
  200. package/.output/server/node_modules/fs-extra/lib/path-exists/index.js +0 -12
  201. package/.output/server/node_modules/fs-extra/lib/remove/index.js +0 -17
  202. package/.output/server/node_modules/fs-extra/lib/util/async.js +0 -29
  203. package/.output/server/node_modules/fs-extra/lib/util/stat.js +0 -159
  204. package/.output/server/node_modules/fs-extra/lib/util/utimes.js +0 -36
  205. package/.output/server/node_modules/fs-extra/package.json +0 -71
  206. package/.output/server/node_modules/get-stream/package.json +0 -60
  207. package/.output/server/node_modules/get-stream/source/array-buffer.js +0 -84
  208. package/.output/server/node_modules/get-stream/source/array.js +0 -32
  209. package/.output/server/node_modules/get-stream/source/buffer.js +0 -19
  210. package/.output/server/node_modules/get-stream/source/contents.js +0 -121
  211. package/.output/server/node_modules/get-stream/source/exports.js +0 -5
  212. package/.output/server/node_modules/get-stream/source/index.js +0 -13
  213. package/.output/server/node_modules/get-stream/source/stream.js +0 -65
  214. package/.output/server/node_modules/get-stream/source/string.js +0 -41
  215. package/.output/server/node_modules/get-stream/source/utils.js +0 -11
  216. package/.output/server/node_modules/graceful-fs/clone.js +0 -23
  217. package/.output/server/node_modules/graceful-fs/graceful-fs.js +0 -448
  218. package/.output/server/node_modules/graceful-fs/legacy-streams.js +0 -118
  219. package/.output/server/node_modules/graceful-fs/package.json +0 -53
  220. package/.output/server/node_modules/graceful-fs/polyfills.js +0 -355
  221. package/.output/server/node_modules/human-signals/build/src/core.js +0 -273
  222. package/.output/server/node_modules/human-signals/build/src/main.js +0 -70
  223. package/.output/server/node_modules/human-signals/build/src/realtime.js +0 -16
  224. package/.output/server/node_modules/human-signals/build/src/signals.js +0 -34
  225. package/.output/server/node_modules/human-signals/package.json +0 -66
  226. package/.output/server/node_modules/is-plain-obj/index.js +0 -8
  227. package/.output/server/node_modules/is-plain-obj/package.json +0 -41
  228. package/.output/server/node_modules/is-stream/index.js +0 -37
  229. package/.output/server/node_modules/is-stream/package.json +0 -48
  230. package/.output/server/node_modules/is-unicode-supported/index.js +0 -21
  231. package/.output/server/node_modules/is-unicode-supported/package.json +0 -47
  232. package/.output/server/node_modules/isexe/index.js +0 -57
  233. package/.output/server/node_modules/isexe/mode.js +0 -41
  234. package/.output/server/node_modules/isexe/package.json +0 -31
  235. package/.output/server/node_modules/isexe/windows.js +0 -42
  236. package/.output/server/node_modules/js-runtime/dist/index.js +0 -5
  237. package/.output/server/node_modules/js-runtime/package.json +0 -72
  238. package/.output/server/node_modules/jsonfile/index.js +0 -88
  239. package/.output/server/node_modules/jsonfile/package.json +0 -40
  240. package/.output/server/node_modules/jsonfile/utils.js +0 -14
  241. package/.output/server/node_modules/mime-db/db.json +0 -7088
  242. package/.output/server/node_modules/mime-db/index.js +0 -11
  243. package/.output/server/node_modules/mime-db/package.json +0 -57
  244. package/.output/server/node_modules/mime-types/index.js +0 -188
  245. package/.output/server/node_modules/mime-types/package.json +0 -43
  246. package/.output/server/node_modules/minimatch/minimatch.js +0 -947
  247. package/.output/server/node_modules/minimatch/package.json +0 -33
  248. package/.output/server/node_modules/natural-orderby/dist/main.js +0 -19
  249. package/.output/server/node_modules/natural-orderby/dist/umd/natural-orderby.development.js +0 -420
  250. package/.output/server/node_modules/natural-orderby/dist/umd/natural-orderby.production.min.js +0 -11
  251. package/.output/server/node_modules/natural-orderby/package.json +0 -119
  252. package/.output/server/node_modules/npm-run-path/index.js +0 -55
  253. package/.output/server/node_modules/npm-run-path/package.json +0 -52
  254. package/.output/server/node_modules/parse-ms/index.js +0 -45
  255. package/.output/server/node_modules/parse-ms/package.json +0 -47
  256. package/.output/server/node_modules/path-is-inside/lib/path-is-inside.js +0 -28
  257. package/.output/server/node_modules/path-is-inside/package.json +0 -27
  258. package/.output/server/node_modules/pretty-ms/index.js +0 -149
  259. package/.output/server/node_modules/pretty-ms/package.json +0 -55
  260. package/.output/server/node_modules/range-parser/index.js +0 -158
  261. package/.output/server/node_modules/range-parser/package.json +0 -40
  262. package/.output/server/node_modules/serve-handler/package.json +0 -68
  263. package/.output/server/node_modules/serve-handler/src/directory.js +0 -16
  264. package/.output/server/node_modules/serve-handler/src/error.js +0 -10
  265. package/.output/server/node_modules/serve-handler/src/glob-slash.js +0 -9
  266. package/.output/server/node_modules/serve-handler/src/index.js +0 -769
  267. package/.output/server/node_modules/shebang-command/index.js +0 -19
  268. package/.output/server/node_modules/shebang-command/package.json +0 -34
  269. package/.output/server/node_modules/shebang-regex/index.js +0 -2
  270. package/.output/server/node_modules/shebang-regex/package.json +0 -35
  271. package/.output/server/node_modules/signal-exit/dist/mjs/index.js +0 -275
  272. package/.output/server/node_modules/signal-exit/dist/mjs/package.json +0 -3
  273. package/.output/server/node_modules/signal-exit/dist/mjs/signals.js +0 -39
  274. package/.output/server/node_modules/signal-exit/package.json +0 -106
  275. package/.output/server/node_modules/string-argv/index.js +0 -41
  276. package/.output/server/node_modules/string-argv/package.json +0 -51
  277. package/.output/server/node_modules/strip-final-newline/index.js +0 -26
  278. package/.output/server/node_modules/strip-final-newline/package.json +0 -49
  279. package/.output/server/node_modules/unicorn-magic/default.js +0 -14
  280. package/.output/server/node_modules/unicorn-magic/node.js +0 -49
  281. package/.output/server/node_modules/unicorn-magic/package.json +0 -62
  282. package/.output/server/node_modules/universalify/index.js +0 -24
  283. package/.output/server/node_modules/universalify/package.json +0 -34
  284. package/.output/server/node_modules/which/package.json +0 -43
  285. package/.output/server/node_modules/which/which.js +0 -125
  286. package/.output/server/node_modules/yoctocolors/base.js +0 -94
  287. package/.output/server/node_modules/yoctocolors/index.js +0 -2
  288. package/.output/server/node_modules/yoctocolors/package.json +0 -69
  289. /package/.output/server/node_modules/{.nitro/path-to-regexp@8.3.0 → path-to-regexp}/dist/index.js +0 -0
  290. /package/.output/server/node_modules/{.nitro/path-to-regexp@8.3.0 → path-to-regexp}/package.json +0 -0
@@ -6,26 +6,24 @@ import http, { Server as Server$2 } from 'node:http';
6
6
  import https, { Server as Server$1 } from 'node:https';
7
7
  import { EventEmitter } from 'node:events';
8
8
  import { Buffer as Buffer$1 } from 'node:buffer';
9
- import fs$2, { promises, existsSync, readFileSync, writeFileSync } from 'node:fs';
9
+ import fs$1, { promises, existsSync, readFileSync, writeFileSync } from 'node:fs';
10
10
  import path$2, { resolve, dirname, relative, join, normalize } from 'node:path';
11
11
  import anymatch from 'anymatch';
12
12
  import { createHash, randomBytes } from 'node:crypto';
13
13
  import process$1, { version as version$2 } from 'node:process';
14
- import { orderBy } from 'natural-orderby';
15
- import { merge as merge$1, mergeDeep, isPlainObject as isPlainObject$1, uniqueWith, isDeepEqual, isNumber, isFunction, difference } from 'remeda';
16
- import { execaCommand, execa } from 'execa';
14
+ import { sortBy, mergeDeep, isPlainObject as isPlainObject$1, uniqueWith, isDeepEqual, isNumber, isFunction, difference } from 'remeda';
15
+ import { x } from 'tinyexec';
17
16
  import os$1 from 'node:os';
18
- import pc from 'picocolors';
19
- import fs$1 from 'fs-extra';
20
- import { switcher } from 'js-runtime';
17
+ import { styleText } from 'node:util';
18
+ import { access, rm, readFile as readFile$1, mkdir, writeFile as writeFile$1 } from 'node:fs/promises';
21
19
  import { performance as performance$1 } from 'node:perf_hooks';
22
20
  import mod, { createRequire } from 'node:module';
23
21
  import { createFabric, createReactFabric, App, File, Function as Function$1, Const, FunctionParams, Type as Type$1, useApp } from '@kubb/react-fabric';
24
22
  import { typescriptParser } from '@kubb/react-fabric/parsers';
25
23
  import { fsPlugin } from '@kubb/react-fabric/plugins';
26
24
  import { pathToFileURL, fileURLToPath } from 'node:url';
25
+ import * as pkg from 'empathic/package';
27
26
  import { coerce, satisfies } from 'semver';
28
- import { parseArgsStringToArgv } from 'string-argv';
29
27
  import { createJiti } from 'jiti';
30
28
  import jsonpointer from 'jsonpointer';
31
29
  import BaseOas from 'oas';
@@ -40,7 +38,7 @@ import * as fs from 'fs';
40
38
  import * as path$1 from 'path';
41
39
  import * as os from 'os';
42
40
  import * as inspector from 'inspector';
43
- import pkg from 'handlebars';
41
+ import pkg$1 from 'handlebars';
44
42
  import WebSocket from 'ws';
45
43
 
46
44
  const suspectProtoRx = /"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/;
@@ -4391,79 +4389,46 @@ function defineNitroPlugin(def) {
4391
4389
 
4392
4390
  const logger = {
4393
4391
  info(message, details) {
4394
- const text = details ? `${message} ${pc.dim(details)}` : message;
4395
- console.info(`${pc.blue("\u2139")} ${text}`);
4392
+ const text = details ? `${message} ${styleText("dim", details)}` : message;
4393
+ console.info(`${styleText("blue", "\u2139")} ${text}`);
4396
4394
  },
4397
4395
  success(message, details) {
4398
- const text = details ? `${message} ${pc.dim(details)}` : message;
4399
- console.log(`${pc.green("\u2713")} ${text}`);
4396
+ const text = details ? `${message} ${styleText("dim", details)}` : message;
4397
+ console.log(`${styleText("green", "\u2713")} ${text}`);
4400
4398
  },
4401
4399
  warn(message, details) {
4402
- const text = details ? `${message} ${pc.dim(details)}` : message;
4403
- console.warn(`${pc.yellow("\u26A0")} ${text}`);
4400
+ const text = details ? `${message} ${styleText("dim", details)}` : message;
4401
+ console.warn(`${styleText("yellow", "\u26A0")} ${text}`);
4404
4402
  },
4405
4403
  error(message, details) {
4406
- const text = details ? `${message} ${pc.dim(details)}` : message;
4407
- console.error(`${pc.red("\u2717")} ${text}`);
4404
+ const text = details ? `${message} ${styleText("dim", details)}` : message;
4405
+ console.error(`${styleText("red", "\u2717")} ${text}`);
4408
4406
  }
4409
4407
  };
4410
4408
 
4411
4409
  const _KZ9YuROWp70nNn4X1C4BxF_W0D7H9EWgBo03XvMd7w0 = defineNitroPlugin(() => {
4412
4410
  });
4413
4411
 
4414
- var __defProp$a = Object.defineProperty;
4415
- var __name$6 = (target, value) => __defProp$a(target, "name", {
4416
- value,
4417
- configurable: true
4418
- });
4419
-
4420
- async function clean(path$1) {
4421
- return fs$1.remove(path$1);
4412
+ async function clean(path) {
4413
+ return rm(path, {
4414
+ recursive: true,
4415
+ force: true
4416
+ });
4422
4417
  }
4423
- const reader$1 = switcher({
4424
- node: async (path$1) => {
4425
- return fs$1.pathExists(path$1);
4426
- },
4427
- bun: async (path$1) => {
4428
- return Bun.file(path$1).exists();
4429
- }
4430
- }, "node");
4431
- switcher({
4432
- node: (path$1) => {
4433
- return fs$1.pathExistsSync(path$1);
4434
- },
4435
- bun: () => {
4436
- throw new Error("Bun cannot read sync");
4437
- }
4438
- }, "node");
4439
- async function exists(path$1) {
4440
- return reader$1(path$1);
4418
+ async function exists(path) {
4419
+ if (typeof Bun !== "undefined") return Bun.file(path).exists();
4420
+ return access(path).then(() => true, () => false);
4441
4421
  }
4442
- const reader = switcher({
4443
- node: async (path$1) => {
4444
- return fs$1.readFile(path$1, { encoding: "utf8" });
4445
- },
4446
- bun: async (path$1) => {
4447
- return Bun.file(path$1).text();
4448
- }
4449
- }, "node");
4450
- const syncReader = switcher({
4451
- node: (path$1) => {
4452
- return fs$1.readFileSync(path$1, { encoding: "utf8" });
4453
- },
4454
- bun: () => {
4455
- throw new Error("Bun cannot read sync");
4456
- }
4457
- }, "node");
4458
- async function read(path$1) {
4459
- return reader(path$1);
4422
+ async function read(path) {
4423
+ if (typeof Bun !== "undefined") return Bun.file(path).text();
4424
+ return readFile$1(path, { encoding: "utf8" });
4460
4425
  }
4461
- function readSync(path$1) {
4462
- return syncReader(path$1);
4426
+ function readSync(path) {
4427
+ return readFileSync(path, { encoding: "utf8" });
4463
4428
  }
4464
- function slash(path$1, platform = "linux") {
4465
- const isWindowsPath = /^\\\\\?\\/.test(path$1);
4466
- const normalizedPath = normalize(path$1);
4429
+ function slash(path, platform = "linux") {
4430
+ const isWindowsPath = /^\\\\\?\\/.test(path);
4431
+ const normalizedPath = normalize(path);
4467
4432
  if (["linux", "mac"].includes(platform) && !isWindowsPath) return normalizedPath.replaceAll(/\\/g, "/").replace("../", "");
4468
4433
  return normalizedPath.replaceAll(/\\/g, "/").replace("../", "");
4469
4434
  }
@@ -4473,33 +4438,25 @@ function getRelativePath(rootDir, filePath, platform = "linux") {
4473
4438
  if (slashedPath.startsWith("../")) return slashedPath;
4474
4439
  return `./${slashedPath}`;
4475
4440
  }
4476
- const writer = switcher({
4477
- node: async (path$1, data, { sanity }) => {
4478
- var _a;
4479
- try {
4480
- if (((_a = await fs$1.readFile(resolve(path$1), { encoding: "utf-8" })) == null ? void 0 : _a.toString()) === (data == null ? void 0 : data.toString())) return;
4481
- } catch (_err) {
4482
- }
4483
- await fs$1.outputFile(resolve(path$1), data, { encoding: "utf-8" });
4484
- if (sanity) {
4485
- const savedData = await fs$1.readFile(resolve(path$1), { encoding: "utf-8" });
4486
- if ((savedData == null ? void 0 : savedData.toString()) !== (data == null ? void 0 : data.toString())) throw new Error(`Sanity check failed for ${path$1}
4487
-
4488
- Data[${data.length}]:
4489
- ${data}
4490
-
4491
- Saved[${savedData.length}]:
4492
- ${savedData}
4493
- `);
4494
- return savedData;
4495
- }
4496
- return data;
4497
- },
4498
- bun: async (path$1, data, { sanity }) => {
4499
- await Bun.write(resolve(path$1), data);
4500
- if (sanity) {
4501
- const savedData = await Bun.file(resolve(path$1)).text();
4502
- if ((savedData == null ? void 0 : savedData.toString()) !== (data == null ? void 0 : data.toString())) throw new Error(`Sanity check failed for ${path$1}
4441
+ async function write(path, data, options = {}) {
4442
+ var _a;
4443
+ if (data.trim() === "") return;
4444
+ const resolved = resolve(path);
4445
+ if (typeof Bun !== "undefined") {
4446
+ const file = Bun.file(resolved);
4447
+ if ((await file.exists() ? await file.text() : null) === data.trim()) return;
4448
+ await Bun.write(resolved, data.trim());
4449
+ return data.trim();
4450
+ }
4451
+ try {
4452
+ if (((_a = await readFile$1(resolved, { encoding: "utf-8" })) == null ? void 0 : _a.toString()) === data.trim()) return;
4453
+ } catch (_err) {
4454
+ }
4455
+ await mkdir(dirname(resolved), { recursive: true });
4456
+ await writeFile$1(resolved, data.trim(), { encoding: "utf-8" });
4457
+ if (options.sanity) {
4458
+ const savedData = await readFile$1(resolved, { encoding: "utf-8" });
4459
+ if ((savedData == null ? void 0 : savedData.toString()) !== data.trim()) throw new Error(`Sanity check failed for ${path}
4503
4460
 
4504
4461
  Data[${data.length}]:
4505
4462
  ${data}
@@ -4507,14 +4464,9 @@ ${data}
4507
4464
  Saved[${savedData.length}]:
4508
4465
  ${savedData}
4509
4466
  `);
4510
- return savedData;
4511
- }
4512
- return data;
4467
+ return savedData;
4513
4468
  }
4514
- }, "node");
4515
- async function write(path$1, data, options = {}) {
4516
- if (data.trim() === "") return;
4517
- return writer(path$1, data.trim(), options);
4469
+ return data.trim();
4518
4470
  }
4519
4471
 
4520
4472
  const reservedWords = [
@@ -4623,73 +4575,13 @@ function trimQuotes(text) {
4623
4575
  if (text.match(/^`(.*)`$/)) return text.replace(/^`(.*)`$/, "$1");
4624
4576
  return text;
4625
4577
  }
4626
- const UPPERCASE = /[\p{Lu}]/u;
4627
- const LOWERCASE = /[\p{Ll}]/u;
4628
- const LEADING_CAPITAL = /^[\p{Lu}](?![\p{Lu}])/gu;
4629
- const IDENTIFIER = /([\p{Alpha}\p{N}_]|$)/u;
4630
- const SEPARATORS = /[_.\- ]+/;
4631
- const LEADING_SEPARATORS = /* @__PURE__ */ new RegExp("^" + SEPARATORS.source);
4632
- const SEPARATORS_AND_IDENTIFIER = new RegExp(SEPARATORS.source + IDENTIFIER.source, "gu");
4633
- const NUMBERS_AND_IDENTIFIER = new RegExp("\\d+" + IDENTIFIER.source, "gu");
4634
- const preserveCamelCase = (string, toLowerCase, toUpperCase, preserveConsecutiveUppercase$1) => {
4635
- let isLastCharLower = false;
4636
- let isLastCharUpper = false;
4637
- let isLastLastCharUpper = false;
4638
- let isLastLastCharPreserved = false;
4639
- for (let index = 0; index < string.length; index++) {
4640
- const character = string[index];
4641
- isLastLastCharPreserved = index > 2 ? string[index - 3] === "-" : true;
4642
- if (isLastCharLower && UPPERCASE.test(character)) {
4643
- string = string.slice(0, index) + "-" + string.slice(index);
4644
- isLastCharLower = false;
4645
- isLastLastCharUpper = isLastCharUpper;
4646
- isLastCharUpper = true;
4647
- index++;
4648
- } else if (isLastCharUpper && isLastLastCharUpper && LOWERCASE.test(character) && (!isLastLastCharPreserved || preserveConsecutiveUppercase$1)) {
4649
- string = string.slice(0, index - 1) + "-" + string.slice(index - 1);
4650
- isLastLastCharUpper = isLastCharUpper;
4651
- isLastCharUpper = false;
4652
- isLastCharLower = true;
4653
- } else {
4654
- isLastCharLower = toLowerCase(character) === character && toUpperCase(character) !== character;
4655
- isLastLastCharUpper = isLastCharUpper;
4656
- isLastCharUpper = toUpperCase(character) === character && toLowerCase(character) !== character;
4657
- }
4658
- }
4659
- return string;
4660
- };
4661
- const preserveConsecutiveUppercase = (input, toLowerCase) => {
4662
- LEADING_CAPITAL.lastIndex = 0;
4663
- return input.replaceAll(LEADING_CAPITAL, (match) => toLowerCase(match));
4664
- };
4665
- const postProcess = (input, toUpperCase) => {
4666
- SEPARATORS_AND_IDENTIFIER.lastIndex = 0;
4667
- NUMBERS_AND_IDENTIFIER.lastIndex = 0;
4668
- return input.replaceAll(NUMBERS_AND_IDENTIFIER, (match, pattern, offset) => ["_", "-"].includes(input.charAt(offset + match.length)) ? match : toUpperCase(match)).replaceAll(SEPARATORS_AND_IDENTIFIER, (_, identifier) => toUpperCase(identifier));
4669
- };
4670
- function camelCase$1(input, options) {
4671
- if (!(typeof input === "string" || Array.isArray(input))) throw new TypeError("Expected the input to be `string | string[]`");
4672
- options = {
4673
- pascalCase: false,
4674
- preserveConsecutiveUppercase: false,
4675
- ...options
4676
- };
4677
- if (Array.isArray(input)) input = input.map((x) => x.trim()).filter((x) => x.length).join("-");
4678
- else input = input.trim();
4679
- if (input.length === 0) return "";
4680
- const toLowerCase = options.locale === false ? (string) => string.toLowerCase() : (string) => string.toLocaleLowerCase(options.locale);
4681
- const toUpperCase = options.locale === false ? (string) => string.toUpperCase() : (string) => string.toLocaleUpperCase(options.locale);
4682
- if (input.length === 1) {
4683
- if (SEPARATORS.test(input)) return "";
4684
- return options.pascalCase ? toUpperCase(input) : toLowerCase(input);
4685
- }
4686
- if (input !== toLowerCase(input)) input = preserveCamelCase(input, toLowerCase, toUpperCase, options.preserveConsecutiveUppercase);
4687
- input = input.replace(LEADING_SEPARATORS, "");
4688
- input = options.preserveConsecutiveUppercase ? preserveConsecutiveUppercase(input, toLowerCase) : toLowerCase(input);
4689
- if (options.pascalCase) input = toUpperCase(input.charAt(0)) + input.slice(1);
4690
- return postProcess(input, toUpperCase);
4578
+ function toCamelOrPascal(text, pascal) {
4579
+ return text.trim().replace(/([a-z\d])([A-Z])/g, "$1 $2").replace(/([A-Z]+)([A-Z][a-z])/g, "$1 $2").replace(/(\d)([a-z])/g, "$1 $2").split(/[\s\-_./\\:]+/).filter(Boolean).map((word, i) => {
4580
+ if (word.length > 1 && word === word.toUpperCase()) return word;
4581
+ if (i === 0 && !pascal) return word[0].toLowerCase() + word.slice(1);
4582
+ return word[0].toUpperCase() + word.slice(1);
4583
+ }).join("").replace(/[^a-zA-Z0-9]/g, "");
4691
4584
  }
4692
- __name$6(camelCase$1, "camelCase");
4693
4585
  function camelCase(text, { isFile, prefix = "", suffix = "" } = {}) {
4694
4586
  if (isFile) {
4695
4587
  const splitArray = text.split(".");
@@ -4698,10 +4590,7 @@ function camelCase(text, { isFile, prefix = "", suffix = "" } = {}) {
4698
4590
  suffix
4699
4591
  }) : camelCase(item)).join("/");
4700
4592
  }
4701
- return camelCase$1(`${prefix} ${text} ${suffix}`, {
4702
- pascalCase: false,
4703
- preserveConsecutiveUppercase: true
4704
- }).replace(/[^a-zA-Z0-9]/g, "");
4593
+ return toCamelOrPascal(`${prefix} ${text} ${suffix}`, false);
4705
4594
  }
4706
4595
  function pascalCase(text, { isFile, prefix = "", suffix = "" } = {}) {
4707
4596
  if (isFile) {
@@ -4711,10 +4600,7 @@ function pascalCase(text, { isFile, prefix = "", suffix = "" } = {}) {
4711
4600
  suffix
4712
4601
  }) : camelCase(item)).join("/");
4713
4602
  }
4714
- return camelCase$1(`${prefix} ${text} ${suffix}`, {
4715
- pascalCase: true,
4716
- preserveConsecutiveUppercase: true
4717
- }).replace(/[^a-zA-Z0-9]/g, "");
4603
+ return toCamelOrPascal(`${prefix} ${text} ${suffix}`, true);
4718
4604
  }
4719
4605
  function snakeCase(text, { prefix = "", suffix = "" } = {}) {
4720
4606
  return `${prefix} ${text} ${suffix}`.trim().replace(/([a-z])([A-Z])/g, "$1_$2").replace(/[\s\-.]+/g, "_").replace(/[^a-zA-Z0-9_]/g, "").toLowerCase().replace(/_+/g, "_").replace(/^_|_$/g, "");
@@ -4786,11 +4672,11 @@ function stringify(value) {
4786
4672
  return JSON.stringify(trimQuotes(value.toString()));
4787
4673
  }
4788
4674
  function stringifyObject(value) {
4789
- return Object.entries(value).map(([key, value$1]) => {
4790
- if (typeof value$1 === "object") return `${key}: {
4791
- ${stringifyObject(value$1)}
4675
+ return Object.entries(value).map(([key, value2]) => {
4676
+ if (typeof value2 === "object") return `${key}: {
4677
+ ${stringifyObject(value2)}
4792
4678
  }`;
4793
- return `${key}: ${value$1}`;
4679
+ return `${key}: ${value2}`;
4794
4680
  }).filter(Boolean).join(",\n");
4795
4681
  }
4796
4682
  function toRegExpString(text, func = "RegExp") {
@@ -4804,28 +4690,6 @@ function toRegExpString(text, func = "RegExp") {
4804
4690
  if (func === null) return `/${source}/${flags}`;
4805
4691
  return `new ${func}(${JSON.stringify(source)}${flags ? `, ${JSON.stringify(flags)}` : ""})`;
4806
4692
  }
4807
- var transformers_default = {
4808
- combineCodes,
4809
- escape,
4810
- jsStringEscape,
4811
- createIndent,
4812
- transformReservedWord,
4813
- isValidVarName,
4814
- nameSorter,
4815
- searchAndReplace,
4816
- stringify,
4817
- stringifyObject,
4818
- toRegExpString,
4819
- trim,
4820
- trimQuotes,
4821
- JSDoc: { createJSDocBlockText },
4822
- orderBy,
4823
- merge: merge$1,
4824
- camelCase,
4825
- pascalCase,
4826
- snakeCase,
4827
- screamingSnakeCase
4828
- };
4829
4693
 
4830
4694
  var __defProp$9 = Object.defineProperty;
4831
4695
  var __typeError$5 = (msg) => {
@@ -4905,7 +4769,7 @@ var Queue$1 = (_a$4 = class {
4905
4769
  while (__privateGet$4(this, _head$1)) yield this.dequeue();
4906
4770
  }
4907
4771
  }, _head$1 = new WeakMap(), _tail$1 = new WeakMap(), _size$1 = new WeakMap(), _a$4);
4908
- function pLimit$2(concurrency) {
4772
+ function pLimit$1(concurrency) {
4909
4773
  let rejectOnClear = false;
4910
4774
  if (typeof concurrency === "object") ({ concurrency, rejectOnClear = false } = concurrency);
4911
4775
  validateConcurrency$1(concurrency);
@@ -4922,25 +4786,25 @@ function pLimit$2(concurrency) {
4922
4786
  activeCount--;
4923
4787
  resumeNext();
4924
4788
  };
4925
- const run = async (function_, resolve$1, arguments_) => {
4789
+ const run = async (function_, resolve, arguments_) => {
4926
4790
  const result = (async () => function_(...arguments_))();
4927
- resolve$1(result);
4791
+ resolve(result);
4928
4792
  try {
4929
4793
  await result;
4930
4794
  } catch {
4931
4795
  }
4932
4796
  next();
4933
4797
  };
4934
- const enqueue = (function_, resolve$1, reject, arguments_) => {
4798
+ const enqueue = (function_, resolve, reject, arguments_) => {
4935
4799
  const queueItem = { reject };
4936
4800
  new Promise((internalResolve) => {
4937
4801
  queueItem.run = internalResolve;
4938
4802
  queue.enqueue(queueItem);
4939
- }).then(run.bind(void 0, function_, resolve$1, arguments_));
4803
+ }).then(run.bind(void 0, function_, resolve, arguments_));
4940
4804
  if (activeCount < concurrency) resumeNext();
4941
4805
  };
4942
- const generator = (function_, ...arguments_) => new Promise((resolve$1, reject) => {
4943
- enqueue(function_, resolve$1, reject, arguments_);
4806
+ const generator = (function_, ...arguments_) => new Promise((resolve, reject) => {
4807
+ enqueue(function_, resolve, reject, arguments_);
4944
4808
  });
4945
4809
  Object.defineProperties(generator, {
4946
4810
  activeCount: { get: () => activeCount },
@@ -4991,7 +4855,7 @@ function hookFirst(promises, nullCheck = (state) => state !== null) {
4991
4855
  return promise;
4992
4856
  }
4993
4857
  function hookParallel(promises, concurrency = Number.POSITIVE_INFINITY) {
4994
- const limit = pLimit$2(concurrency);
4858
+ const limit = pLimit$1(concurrency);
4995
4859
  const tasks = promises.filter(Boolean).map((promise) => limit(() => promise()));
4996
4860
  return Promise.allSettled(tasks);
4997
4861
  }
@@ -5121,15 +4985,15 @@ var PluginManager = (_c = class {
5121
4985
  }
5122
4986
  getFile({ name, mode, extname, pluginKey, options }) {
5123
4987
  const baseName = `${name}${extname}`;
5124
- const path$1 = this.resolvePath({
4988
+ const path2 = this.resolvePath({
5125
4989
  baseName,
5126
4990
  mode,
5127
4991
  pluginKey,
5128
4992
  options
5129
4993
  });
5130
- if (!path$1) throw new Error(`Filepath should be defined for resolvedName "${name}" and pluginKey [${JSON.stringify(pluginKey)}]`);
4994
+ if (!path2) throw new Error(`Filepath should be defined for resolvedName "${name}" and pluginKey [${JSON.stringify(pluginKey)}]`);
5131
4995
  return {
5132
- path: path$1,
4996
+ path: path2,
5133
4997
  baseName,
5134
4998
  meta: { pluginKey },
5135
4999
  sources: [],
@@ -5480,10 +5344,10 @@ function formatMs(ms) {
5480
5344
  return `${Math.round(ms).toFixed(0)}ms`;
5481
5345
  }
5482
5346
  var URLPath = (_e = class {
5483
- constructor(path$1, options = {}) {
5347
+ constructor(path2, options = {}) {
5484
5348
  __publicField$2(this, "path");
5485
5349
  __privateAdd$5(this, _options2);
5486
- this.path = path$1;
5350
+ this.path = path2;
5487
5351
  __privateSet$3(this, _options2, options);
5488
5352
  return this;
5489
5353
  }
@@ -5539,11 +5403,11 @@ var URLPath = (_e = class {
5539
5403
  toTemplateString({ prefix = "", replacer } = {}) {
5540
5404
  const found = this.path.match(/{(\w|-)*}/g);
5541
5405
  let newPath = this.path.replaceAll("{", "${");
5542
- if (found) newPath = found.reduce((prev, path$1) => {
5543
- const pathWithoutBrackets = path$1.replaceAll("{", "").replaceAll("}", "");
5406
+ if (found) newPath = found.reduce((prev, path2) => {
5407
+ const pathWithoutBrackets = path2.replaceAll("{", "").replaceAll("}", "");
5544
5408
  let param = isValidVarName(pathWithoutBrackets) ? pathWithoutBrackets : camelCase(pathWithoutBrackets);
5545
5409
  if (__privateGet$4(this, _options2).casing === "camelcase") param = camelCase(param);
5546
- return prev.replace(path$1, `\${${replacer ? replacer(param) : param}}`);
5410
+ return prev.replace(path2, `\${${replacer ? replacer(param) : param}}`);
5547
5411
  }, this.path);
5548
5412
  return `\`${prefix}${newPath}\``;
5549
5413
  }
@@ -5715,7 +5579,7 @@ var BarrelManager = class {
5715
5579
  (((_a4 = item.data.file) == null ? void 0 : _a4.sources) || []).forEach((source) => {
5716
5580
  var _a5, _b3, _c3, _d2, _e2, _f2;
5717
5581
  if (!((_a5 = item.data.file) == null ? void 0 : _a5.path) || !source.isIndexable || !source.name) return;
5718
- if (previousBarrelFile == null ? void 0 : previousBarrelFile.sources.some((item$1) => item$1.name === source.name && item$1.isTypeOnly === source.isTypeOnly)) return;
5582
+ if (previousBarrelFile == null ? void 0 : previousBarrelFile.sources.some((item2) => item2.name === source.name && item2.isTypeOnly === source.isTypeOnly)) return;
5719
5583
  if (!barrelFile.exports) barrelFile.exports = [];
5720
5584
  if (!!((_e2 = (_d2 = (_c3 = (_b3 = treeNode.parent) == null ? void 0 : _b3.data.path) == null ? void 0 : _c3.split) == null ? void 0 : _d2.call(_c3, "/")) == null ? void 0 : _e2.length)) barrelFile.exports.push({
5721
5585
  name: [source.name],
@@ -5823,7 +5687,7 @@ ${comments.map((c) => `${indent}${c}`).join("\n")}
5823
5687
  ...item,
5824
5688
  type: void 0
5825
5689
  });
5826
- if (items.some((item$1) => item$1.type)) type = __privateMethod$4(_b3 = _b$2, _FunctionParams_static, addParams_fn).call(_b3, type, item);
5690
+ if (items.some((item2) => item2.type)) type = __privateMethod$4(_b3 = _b$2, _FunctionParams_static, addParams_fn).call(_b3, type, item);
5827
5691
  });
5828
5692
  return {
5829
5693
  name: `{ ${name.join(", ")} }`,
@@ -5856,14 +5720,10 @@ ${comments.map((c) => `${indent}${c}`).join("\n")}
5856
5720
  return _b$2.toString(items);
5857
5721
  }
5858
5722
  }, _items = new WeakMap(), _FunctionParams_static = new WeakSet(), orderItems_fn = function(items) {
5859
- return orderBy(items.filter(Boolean), [(v) => {
5860
- if (Array.isArray(v)) return;
5861
- return !v.default;
5862
- }, (v) => {
5723
+ return sortBy(items.filter(Boolean), [(item) => Array.isArray(item), "desc"], [(item) => !Array.isArray(item) && item.default !== void 0, "asc"], [(item) => {
5863
5724
  var _a2;
5864
- if (Array.isArray(v)) return;
5865
- return (_a2 = v.required) != null ? _a2 : true;
5866
- }], ["desc", "desc"]);
5725
+ return Array.isArray(item) || ((_a2 = item.required) != null ? _a2 : true);
5726
+ }, "desc"]);
5867
5727
  }, addParams_fn = function(acc, item) {
5868
5728
  const { enabled = true, name, type, required = true, ...rest } = item;
5869
5729
  if (!enabled) return acc;
@@ -5904,7 +5764,7 @@ const formatters = {
5904
5764
  };
5905
5765
  async function isFormatterAvailable(formatter) {
5906
5766
  try {
5907
- await execaCommand(`${formatter} --version`, { stdio: "ignore" });
5767
+ await x(formatter, ["--version"], { nodeOptions: { stdio: "ignore" } });
5908
5768
  return true;
5909
5769
  } catch {
5910
5770
  return false;
@@ -5980,7 +5840,7 @@ const linters = {
5980
5840
  };
5981
5841
  async function isLinterAvailable(linter) {
5982
5842
  try {
5983
- await execaCommand(`${linter} --version`, { stdio: "ignore" });
5843
+ await x(linter, ["--version"], { nodeOptions: { stdio: "ignore" } });
5984
5844
  return true;
5985
5845
  } catch {
5986
5846
  return false;
@@ -6005,6 +5865,22 @@ function serializePluginOptions(options) {
6005
5865
  }
6006
5866
  return serialized;
6007
5867
  }
5868
+ function tokenize(command) {
5869
+ const args = [];
5870
+ let current = "";
5871
+ let quote = "";
5872
+ for (const ch of command) if (quote) if (ch === quote) quote = "";
5873
+ else current += ch;
5874
+ else if (ch === '"' || ch === "'") quote = ch;
5875
+ else if (ch === " " || ch === " ") {
5876
+ if (current) {
5877
+ args.push(current);
5878
+ current = "";
5879
+ }
5880
+ } else current += ch;
5881
+ if (current) args.push(current);
5882
+ return args;
5883
+ }
6008
5884
 
6009
5885
  function isCommandMessage(msg) {
6010
5886
  return msg.type === "command";
@@ -6156,7 +6032,7 @@ var BaseGenerator = (_a$3 = class {
6156
6032
  function isInputPath(config) {
6157
6033
  return typeof (config == null ? void 0 : config.input) === "object" && config.input !== null && "path" in config.input;
6158
6034
  }
6159
- var version$1 = "4.28.0";
6035
+ var version$1 = "4.29.0";
6160
6036
  function getDiagnosticInfo() {
6161
6037
  return {
6162
6038
  nodeVersion: version$2,
@@ -6393,172 +6269,8 @@ async function safeBuild(options, overrides) {
6393
6269
  };
6394
6270
  }
6395
6271
  }
6396
- function definePlugin(build$1) {
6397
- return (options) => build$1(options != null ? options : {});
6398
- }
6399
- function pLimit$1(concurrency) {
6400
- if (!((Number.isInteger(concurrency) || concurrency === Number.POSITIVE_INFINITY) && concurrency > 0)) throw new TypeError("Expected `concurrency` to be a number from 1 and up");
6401
- const queue = new Queue$1();
6402
- let activeCount = 0;
6403
- const next = () => {
6404
- activeCount--;
6405
- if (queue.size > 0) queue.dequeue()();
6406
- };
6407
- const run = async (fn, resolve$1, args) => {
6408
- activeCount++;
6409
- const result = (async () => fn(...args))();
6410
- resolve$1(result);
6411
- try {
6412
- await result;
6413
- } catch {
6414
- }
6415
- next();
6416
- };
6417
- const enqueue = (fn, resolve$1, args) => {
6418
- queue.enqueue(run.bind(void 0, fn, resolve$1, args));
6419
- (async () => {
6420
- await Promise.resolve();
6421
- if (activeCount < concurrency && queue.size > 0) queue.dequeue()();
6422
- })();
6423
- };
6424
- const generator = (fn, ...args) => new Promise((resolve$1) => {
6425
- enqueue(fn, resolve$1, args);
6426
- });
6427
- Object.defineProperties(generator, {
6428
- activeCount: { get: () => activeCount },
6429
- pendingCount: { get: () => queue.size },
6430
- clearQueue: { value: () => {
6431
- queue.clear();
6432
- } }
6433
- });
6434
- return generator;
6435
- }
6436
- var EndError = class extends Error {
6437
- constructor(value) {
6438
- super();
6439
- this.value = value;
6440
- }
6441
- };
6442
- const testElement = async (element, tester) => tester(await element);
6443
- const finder = async (element) => {
6444
- const values = await Promise.all(element);
6445
- if (values[1] === true) throw new EndError(values[0]);
6446
- return false;
6447
- };
6448
- async function pLocate(iterable, tester, { concurrency = Number.POSITIVE_INFINITY, preserveOrder = true } = {}) {
6449
- const limit = pLimit$1(concurrency);
6450
- const items = [...iterable].map((element) => [element, limit(testElement, element, tester)]);
6451
- const checkLimit = pLimit$1(preserveOrder ? 1 : Number.POSITIVE_INFINITY);
6452
- try {
6453
- await Promise.all(items.map((element) => checkLimit(finder, element)));
6454
- } catch (error) {
6455
- if (error instanceof EndError) return error.value;
6456
- throw error;
6457
- }
6458
- }
6459
- const typeMappings = {
6460
- directory: "isDirectory",
6461
- file: "isFile"
6462
- };
6463
- function checkType(type) {
6464
- if (Object.hasOwnProperty.call(typeMappings, type)) return;
6465
- throw new Error(`Invalid type specified: ${type}`);
6466
- }
6467
- const matchType = (type, stat) => stat[typeMappings[type]]();
6468
- const toPath$1 = /* @__PURE__ */ __name$6((urlOrPath) => urlOrPath instanceof URL ? fileURLToPath(urlOrPath) : urlOrPath, "toPath");
6469
- async function locatePath(paths, { cwd = process$1.cwd(), type = "file", allowSymlinks = true, concurrency, preserveOrder } = {}) {
6470
- checkType(type);
6471
- cwd = toPath$1(cwd);
6472
- const statFunction = allowSymlinks ? promises.stat : promises.lstat;
6473
- return pLocate(paths, async (path_) => {
6474
- try {
6475
- return matchType(type, await statFunction(path$2.resolve(cwd, path_)));
6476
- } catch {
6477
- return false;
6478
- }
6479
- }, {
6480
- concurrency,
6481
- preserveOrder
6482
- });
6483
- }
6484
- function locatePathSync(paths, { cwd = process$1.cwd(), type = "file", allowSymlinks = true } = {}) {
6485
- checkType(type);
6486
- cwd = toPath$1(cwd);
6487
- const statFunction = allowSymlinks ? fs$2.statSync : fs$2.lstatSync;
6488
- for (const path_ of paths) try {
6489
- const stat = statFunction(path$2.resolve(cwd, path_), { throwIfNoEntry: false });
6490
- if (!stat) continue;
6491
- if (matchType(type, stat)) return path_;
6492
- } catch {
6493
- }
6494
- }
6495
- function toPath(urlOrPath) {
6496
- return urlOrPath instanceof URL ? fileURLToPath(urlOrPath) : urlOrPath;
6497
- }
6498
- const findUpStop = /* @__PURE__ */ Symbol("findUpStop");
6499
- async function findUpMultiple(name, options = {}) {
6500
- var _a2, _b2, _c;
6501
- let directory = path$2.resolve((_a2 = toPath(options.cwd)) != null ? _a2 : "");
6502
- const { root } = path$2.parse(directory);
6503
- const stopAt = path$2.resolve(directory, toPath((_b2 = options.stopAt) != null ? _b2 : root));
6504
- const limit = (_c = options.limit) != null ? _c : Number.POSITIVE_INFINITY;
6505
- const paths = [name].flat();
6506
- const runMatcher = async (locateOptions) => {
6507
- if (typeof name !== "function") return locatePath(paths, locateOptions);
6508
- const foundPath = await name(locateOptions.cwd);
6509
- if (typeof foundPath === "string") return locatePath([foundPath], locateOptions);
6510
- return foundPath;
6511
- };
6512
- const matches = [];
6513
- while (true) {
6514
- const foundPath = await runMatcher({
6515
- ...options,
6516
- cwd: directory
6517
- });
6518
- if (foundPath === findUpStop) break;
6519
- if (foundPath) matches.push(path$2.resolve(directory, foundPath));
6520
- if (directory === stopAt || matches.length >= limit) break;
6521
- directory = path$2.dirname(directory);
6522
- }
6523
- return matches;
6524
- }
6525
- function findUpMultipleSync(name, options = {}) {
6526
- var _a2, _b2, _c;
6527
- let directory = path$2.resolve((_a2 = toPath(options.cwd)) != null ? _a2 : "");
6528
- const { root } = path$2.parse(directory);
6529
- const stopAt = path$2.resolve(directory, (_b2 = toPath(options.stopAt)) != null ? _b2 : root);
6530
- const limit = (_c = options.limit) != null ? _c : Number.POSITIVE_INFINITY;
6531
- const paths = [name].flat();
6532
- const runMatcher = (locateOptions) => {
6533
- if (typeof name !== "function") return locatePathSync(paths, locateOptions);
6534
- const foundPath = name(locateOptions.cwd);
6535
- if (typeof foundPath === "string") return locatePathSync([foundPath], locateOptions);
6536
- return foundPath;
6537
- };
6538
- const matches = [];
6539
- while (true) {
6540
- const foundPath = runMatcher({
6541
- ...options,
6542
- cwd: directory
6543
- });
6544
- if (foundPath === findUpStop) break;
6545
- if (foundPath) matches.push(path$2.resolve(directory, foundPath));
6546
- if (directory === stopAt || matches.length >= limit) break;
6547
- directory = path$2.dirname(directory);
6548
- }
6549
- return matches;
6550
- }
6551
- async function findUp(name, options = {}) {
6552
- return (await findUpMultiple(name, {
6553
- ...options,
6554
- limit: 1
6555
- }))[0];
6556
- }
6557
- function findUpSync(name, options = {}) {
6558
- return findUpMultipleSync(name, {
6559
- ...options,
6560
- limit: 1
6561
- })[0];
6272
+ function definePlugin(build2) {
6273
+ return (options) => build2(options != null ? options : {});
6562
6274
  }
6563
6275
  var PackageManager = (_b$1 = class {
6564
6276
  constructor(workspace) {
@@ -6579,15 +6291,15 @@ var PackageManager = (_b$1 = class {
6579
6291
  if (lastChar && !__privateGet$2(this, _SLASHES).has(lastChar)) return `${directory}/`;
6580
6292
  return directory;
6581
6293
  }
6582
- getLocation(path$1) {
6583
- let location = path$1;
6584
- if (__privateGet$2(this, _cwd)) location = mod.createRequire(this.normalizeDirectory(__privateGet$2(this, _cwd))).resolve(path$1);
6294
+ getLocation(path) {
6295
+ let location = path;
6296
+ if (__privateGet$2(this, _cwd)) location = mod.createRequire(this.normalizeDirectory(__privateGet$2(this, _cwd))).resolve(path);
6585
6297
  return location;
6586
6298
  }
6587
- async import(path$1) {
6299
+ async import(path) {
6588
6300
  var _a2;
6589
6301
  try {
6590
- let location = this.getLocation(path$1);
6302
+ let location = this.getLocation(path);
6591
6303
  if (os$1.platform() === "win32") location = pathToFileURL(location).href;
6592
6304
  const module = await import(location);
6593
6305
  return (_a2 = module == null ? void 0 : module.default) != null ? _a2 : module;
@@ -6597,19 +6309,19 @@ var PackageManager = (_b$1 = class {
6597
6309
  }
6598
6310
  }
6599
6311
  async getPackageJSON() {
6600
- const pkgPath = await findUp(["package.json"], { cwd: __privateGet$2(this, _cwd) });
6312
+ const pkgPath = pkg.up({ cwd: __privateGet$2(this, _cwd) });
6601
6313
  if (!pkgPath) return;
6602
6314
  const json = await read(pkgPath);
6603
6315
  return JSON.parse(json);
6604
6316
  }
6605
6317
  getPackageJSONSync() {
6606
- const pkgPath = findUpSync(["package.json"], { cwd: __privateGet$2(this, _cwd) });
6318
+ const pkgPath = pkg.up({ cwd: __privateGet$2(this, _cwd) });
6607
6319
  if (!pkgPath) return;
6608
6320
  const json = readSync(pkgPath);
6609
6321
  return JSON.parse(json);
6610
6322
  }
6611
- static setVersion(dependency, version$2) {
6612
- __privateGet$2(_b$1, _cache)[dependency] = version$2;
6323
+ static setVersion(dependency, version2) {
6324
+ __privateGet$2(_b$1, _cache)[dependency] = version2;
6613
6325
  }
6614
6326
  async getVersion(dependency) {
6615
6327
  if (typeof dependency === "string" && __privateGet$2(_b$1, _cache)[dependency]) return __privateGet$2(_b$1, _cache)[dependency];
@@ -6623,21 +6335,21 @@ var PackageManager = (_b$1 = class {
6623
6335
  if (!packageJSON) return;
6624
6336
  return __privateMethod$3(this, _PackageManager_instances, match_fn).call(this, packageJSON, dependency);
6625
6337
  }
6626
- async isValid(dependency, version$2) {
6338
+ async isValid(dependency, version2) {
6627
6339
  const packageVersion = await this.getVersion(dependency);
6628
6340
  if (!packageVersion) return false;
6629
- if (packageVersion === version$2) return true;
6341
+ if (packageVersion === version2) return true;
6630
6342
  const semVer = coerce(packageVersion);
6631
6343
  if (!semVer) return false;
6632
- return satisfies(semVer, version$2);
6344
+ return satisfies(semVer, version2);
6633
6345
  }
6634
- isValidSync(dependency, version$2) {
6346
+ isValidSync(dependency, version2) {
6635
6347
  const packageVersion = this.getVersionSync(dependency);
6636
6348
  if (!packageVersion) return false;
6637
- if (packageVersion === version$2) return true;
6349
+ if (packageVersion === version2) return true;
6638
6350
  const semVer = coerce(packageVersion);
6639
6351
  if (!semVer) return false;
6640
- return satisfies(semVer, version$2);
6352
+ return satisfies(semVer, version2);
6641
6353
  }
6642
6354
  }, _cache = new WeakMap(), _cwd = new WeakMap(), _SLASHES = new WeakMap(), _PackageManager_instances = new WeakSet(), match_fn = function(packageJSON, dependency) {
6643
6355
  const dependencies = {
@@ -6652,7 +6364,7 @@ var PackageManager = (_b$1 = class {
6652
6364
  async function executeHooks({ hooks, events }) {
6653
6365
  const commands = Array.isArray(hooks.done) ? hooks.done : [hooks.done].filter(Boolean);
6654
6366
  for (const command of commands) {
6655
- const [cmd, ...args] = [...parseArgsStringToArgv(command)];
6367
+ const [cmd, ...args] = tokenize(command);
6656
6368
  if (!cmd) {
6657
6369
  continue;
6658
6370
  }
@@ -6740,7 +6452,7 @@ async function generate({ config, events }) {
6740
6452
  await events.emit("warn", "No linter found (biome, oxlint, or eslint). Skipping linting.");
6741
6453
  } else {
6742
6454
  linter = detectedLinter;
6743
- await events.emit("info", `Auto-detected linter: ${pc.dim(linter)}`);
6455
+ await events.emit("info", `Auto-detected linter: ${styleText("dim", linter)}`);
6744
6456
  }
6745
6457
  }
6746
6458
  if (linter && linter !== "auto" && linter in linters) {
@@ -6857,6 +6569,27 @@ function isKeyword(meta, keyword) {
6857
6569
  return meta.keyword === keyword;
6858
6570
  }
6859
6571
 
6572
+ var transformers_default = {
6573
+ combineCodes,
6574
+ escape,
6575
+ jsStringEscape,
6576
+ createIndent,
6577
+ transformReservedWord,
6578
+ isValidVarName,
6579
+ nameSorter,
6580
+ searchAndReplace,
6581
+ stringify,
6582
+ stringifyObject,
6583
+ toRegExpString,
6584
+ trim,
6585
+ trimQuotes,
6586
+ JSDoc: { createJSDocBlockText },
6587
+ camelCase,
6588
+ pascalCase,
6589
+ snakeCase,
6590
+ screamingSnakeCase
6591
+ };
6592
+
6860
6593
  var __create = Object.create;
6861
6594
  var __defProp$7 = Object.defineProperty;
6862
6595
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -6865,7 +6598,7 @@ var __getProtoOf = Object.getPrototypeOf;
6865
6598
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6866
6599
  var __esmMin = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
6867
6600
  var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
6868
- var __exportAll = (all, symbols) => {
6601
+ var __exportAll = (all, no_symbols) => {
6869
6602
  let target = {};
6870
6603
  for (var name in all) {
6871
6604
  __defProp$7(target, name, {
@@ -6873,6 +6606,9 @@ var __exportAll = (all, symbols) => {
6873
6606
  enumerable: true
6874
6607
  });
6875
6608
  }
6609
+ {
6610
+ __defProp$7(target, Symbol.toStringTag, { value: "Module" });
6611
+ }
6876
6612
  return target;
6877
6613
  };
6878
6614
  var __copyProps = (to, from, except, desc) => {
@@ -7274,9 +7010,9 @@ function __asyncValues(o) {
7274
7010
  };
7275
7011
  }
7276
7012
  function settle(resolve, reject, d, v) {
7277
- Promise.resolve(v).then(function(v$1) {
7013
+ Promise.resolve(v).then(function(v2) {
7278
7014
  resolve({
7279
- value: v$1,
7015
+ value: v2,
7280
7016
  done: d
7281
7017
  });
7282
7018
  }, reject);
@@ -7369,24 +7105,24 @@ function __disposeResources(env) {
7369
7105
  }
7370
7106
  return next();
7371
7107
  }
7372
- function __rewriteRelativeImportExtension(path$1, preserveJsx) {
7373
- if (typeof path$1 === "string" && /^\.\.?\//.test(path$1)) return path$1.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function(m, tsx, d, ext, cm) {
7108
+ function __rewriteRelativeImportExtension(path2, preserveJsx) {
7109
+ if (typeof path2 === "string" && /^\.\.?\//.test(path2)) return path2.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function(m, tsx, d, ext, cm) {
7374
7110
  return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : d + ext + "." + cm.toLowerCase() + "js";
7375
7111
  });
7376
- return path$1;
7112
+ return path2;
7377
7113
  }
7378
7114
  var extendStatics, __assign, __createBinding, __setModuleDefault, ownKeys, _SuppressedError, tslib_es6_default;
7379
7115
  var init_tslib_es6 = __esmMin((() => {
7380
7116
  extendStatics = function(d, b) {
7381
- extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d$1, b$1) {
7382
- d$1.__proto__ = b$1;
7383
- } || function(d$1, b$1) {
7384
- for (var p in b$1) if (Object.prototype.hasOwnProperty.call(b$1, p)) d$1[p] = b$1[p];
7117
+ extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
7118
+ d2.__proto__ = b2;
7119
+ } || function(d2, b2) {
7120
+ for (var p in b2) if (Object.prototype.hasOwnProperty.call(b2, p)) d2[p] = b2[p];
7385
7121
  };
7386
7122
  return extendStatics(d, b);
7387
7123
  };
7388
7124
  __assign = function() {
7389
- __assign = Object.assign || function __assign$1(t) {
7125
+ __assign = Object.assign || function __assign2(t) {
7390
7126
  for (var s, i = 1, n = arguments.length; i < n; i++) {
7391
7127
  s = arguments[i];
7392
7128
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
@@ -7418,9 +7154,9 @@ var init_tslib_es6 = __esmMin((() => {
7418
7154
  o["default"] = v;
7419
7155
  };
7420
7156
  ownKeys = function(o) {
7421
- ownKeys = Object.getOwnPropertyNames || function(o$1) {
7157
+ ownKeys = Object.getOwnPropertyNames || function(o2) {
7422
7158
  var ar = [];
7423
- for (var k in o$1) if (Object.prototype.hasOwnProperty.call(o$1, k)) ar[ar.length] = k;
7159
+ for (var k in o2) if (Object.prototype.hasOwnProperty.call(o2, k)) ar[ar.length] = k;
7424
7160
  return ar;
7425
7161
  };
7426
7162
  return ownKeys(o);
@@ -8029,7 +7765,7 @@ var require_int = /* @__PURE__ */ __commonJSMin(((exports$1, module) => {
8029
7765
  var require_float = /* @__PURE__ */ __commonJSMin(((exports$1, module) => {
8030
7766
  const common = require_common();
8031
7767
  const type_1 = require_type();
8032
- var YAML_FLOAT_PATTERN = /* @__PURE__ */ new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
7768
+ var YAML_FLOAT_PATTERN = new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
8033
7769
  function resolveYamlFloat(data) {
8034
7770
  if (null === data) return false;
8035
7771
  if (!YAML_FLOAT_PATTERN.test(data)) return false;
@@ -8115,7 +7851,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((exports$1, module) => {
8115
7851
  }));
8116
7852
  var require_timestamp = /* @__PURE__ */ __commonJSMin(((exports$1, module) => {
8117
7853
  const type_1 = require_type();
8118
- var YAML_TIMESTAMP_REGEXP = /* @__PURE__ */ new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?)?$");
7854
+ var YAML_TIMESTAMP_REGEXP = new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?)?$");
8119
7855
  function resolveYamlTimestamp(data) {
8120
7856
  if (null === data) return false;
8121
7857
  if (null === YAML_TIMESTAMP_REGEXP.exec(data)) return false;
@@ -8420,6 +8156,7 @@ var require_regexp = /* @__PURE__ */ __commonJSMin(((exports$1, module) => {
8420
8156
  regexp = regexp.slice(1, regexp.length - modifiers.length - 1);
8421
8157
  }
8422
8158
  try {
8159
+ new RegExp(regexp, modifiers);
8423
8160
  return true;
8424
8161
  } catch (error) {
8425
8162
  return false;
@@ -9729,8 +9466,8 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports$1) => {
9729
9466
  var indent = state.indent * Math.max(1, level);
9730
9467
  var lineWidth = state.lineWidth === -1 ? -1 : Math.max(Math.min(state.lineWidth, 40), state.lineWidth - indent);
9731
9468
  var singleLineOnly = iskey || state.flowLevel > -1 && level >= state.flowLevel;
9732
- function testAmbiguity(string$1) {
9733
- return testImplicitResolving(state, string$1);
9469
+ function testAmbiguity(string2) {
9470
+ return testImplicitResolving(state, string2);
9734
9471
  }
9735
9472
  switch (chooseScalarStyle(string, singleLineOnly, state.indent, lineWidth, testAmbiguity)) {
9736
9473
  case STYLE_PLAIN:
@@ -10194,29 +9931,29 @@ var require_buildJsonPath = /* @__PURE__ */ __commonJSMin(((exports$1) => {
10194
9931
  const types_1 = require_types();
10195
9932
  const utils_1 = require_utils();
10196
9933
  function buildJsonPath(node) {
10197
- const path$1 = [];
9934
+ const path2 = [];
10198
9935
  let prevNode = node;
10199
9936
  while (node) {
10200
9937
  switch (node.kind) {
10201
9938
  case types_1.Kind.SCALAR:
10202
- path$1.unshift(node.value);
9939
+ path2.unshift(node.value);
10203
9940
  break;
10204
9941
  case types_1.Kind.MAPPING:
10205
- if (prevNode !== node.key) if (path$1.length > 0 && utils_1.isObject(node.value) && node.value.value === path$1[0]) path$1[0] = node.key.value;
10206
- else path$1.unshift(node.key.value);
9942
+ if (prevNode !== node.key) if (path2.length > 0 && utils_1.isObject(node.value) && node.value.value === path2[0]) path2[0] = node.key.value;
9943
+ else path2.unshift(node.key.value);
10207
9944
  break;
10208
9945
  case types_1.Kind.SEQ:
10209
9946
  if (prevNode) {
10210
9947
  const index = node.items.indexOf(prevNode);
10211
- if (prevNode.kind === types_1.Kind.SCALAR) path$1[0] = index;
10212
- else if (index !== -1) path$1.unshift(index);
9948
+ if (prevNode.kind === types_1.Kind.SCALAR) path2[0] = index;
9949
+ else if (index !== -1) path2.unshift(index);
10213
9950
  }
10214
9951
  break;
10215
9952
  }
10216
9953
  prevNode = node;
10217
9954
  node = node.parent;
10218
9955
  }
10219
- return path$1;
9956
+ return path2;
10220
9957
  }
10221
9958
  exports$1.buildJsonPath = buildJsonPath;
10222
9959
  }));
@@ -10260,9 +9997,9 @@ var require_getJsonPathForPosition = /* @__PURE__ */ __commonJSMin(((exports$1)
10260
9997
  const startOffset = line === 0 ? 0 : lineMap[line - 1] + 1;
10261
9998
  const node = findClosestScalar(ast, Math.min(lineMap[line] - 1, startOffset + character), line, lineMap);
10262
9999
  if (!utils_1.isObject(node)) return;
10263
- const path$1 = buildJsonPath_1.buildJsonPath(node);
10264
- if (path$1.length === 0) return;
10265
- return path$1;
10000
+ const path2 = buildJsonPath_1.buildJsonPath(node);
10001
+ if (path2.length === 0) return;
10002
+ return path2;
10266
10003
  };
10267
10004
  function* walk(node) {
10268
10005
  switch (node.kind) {
@@ -10336,8 +10073,8 @@ var require_getLocationForJsonPath = /* @__PURE__ */ __commonJSMin(((exports$1)
10336
10073
  const lineForPosition_1 = require_lineForPosition();
10337
10074
  const types_1 = require_types();
10338
10075
  const utils_1 = require_utils();
10339
- exports$1.getLocationForJsonPath = ({ ast, lineMap, metadata }, path$1, closest = false) => {
10340
- const node = findNodeAtPath(ast, path$1, {
10076
+ exports$1.getLocationForJsonPath = ({ ast, lineMap, metadata }, path2, closest = false) => {
10077
+ const node = findNodeAtPath(ast, path2, {
10341
10078
  closest,
10342
10079
  mergeKeys: metadata !== void 0 && metadata.mergeKeys === true
10343
10080
  });
@@ -10376,8 +10113,8 @@ var require_getLocationForJsonPath = /* @__PURE__ */ __commonJSMin(((exports$1)
10376
10113
  }
10377
10114
  return node.endPosition;
10378
10115
  }
10379
- function findNodeAtPath(node, path$1, { closest, mergeKeys }) {
10380
- pathLoop: for (const segment of path$1) {
10116
+ function findNodeAtPath(node, path2, { closest, mergeKeys }) {
10117
+ pathLoop: for (const segment of path2) {
10381
10118
  if (!utils_1.isObject(node)) return closest ? node : void 0;
10382
10119
  switch (node.kind) {
10383
10120
  case types_1.Kind.MAP:
@@ -11308,17 +11045,17 @@ var Oas = (_a$2 = class extends BaseOas {
11308
11045
  getDiscriminator(schema) {
11309
11046
  if (!isDiscriminator(schema) || !schema) return null;
11310
11047
  const { mapping = {}, propertyName } = schema.discriminator;
11311
- const getDiscriminatorValue = (schema$1) => {
11048
+ const getDiscriminatorValue = (schema2) => {
11312
11049
  var _a2, _b;
11313
- if (!schema$1) return null;
11050
+ if (!schema2) return null;
11314
11051
  if (propertyName.startsWith("x-")) {
11315
- const extensionValue = schema$1[propertyName];
11052
+ const extensionValue = schema2[propertyName];
11316
11053
  if (extensionValue && typeof extensionValue === "string") return extensionValue;
11317
11054
  }
11318
- const propertySchema = (_a2 = schema$1.properties) == null ? void 0 : _a2[propertyName];
11055
+ const propertySchema = (_a2 = schema2.properties) == null ? void 0 : _a2[propertyName];
11319
11056
  if (propertySchema && "const" in propertySchema && propertySchema.const !== void 0) return String(propertySchema.const);
11320
11057
  if (propertySchema && ((_b = propertySchema.enum) == null ? void 0 : _b.length) === 1) return String(propertySchema.enum[0]);
11321
- return schema$1.title || null;
11058
+ return schema2.title || null;
11322
11059
  };
11323
11060
  const processSchemas = (schemas, existingMapping) => {
11324
11061
  schemas.forEach((schemaItem, index) => {
@@ -11355,9 +11092,9 @@ var Oas = (_a$2 = class extends BaseOas {
11355
11092
  }
11356
11093
  getResponseSchema(operation, statusCode) {
11357
11094
  if (operation.schema.responses) Object.keys(operation.schema.responses).forEach((key) => {
11358
- const schema$1 = operation.schema.responses[key];
11359
- const $ref = isReference(schema$1) ? schema$1.$ref : void 0;
11360
- if (schema$1 && $ref) operation.schema.responses[key] = this.get($ref);
11095
+ const schema2 = operation.schema.responses[key];
11096
+ const $ref = isReference(schema2) ? schema2.$ref : void 0;
11097
+ if (schema2 && $ref) operation.schema.responses[key] = this.get($ref);
11361
11098
  });
11362
11099
  const getResponseBody = __privateMethod$2(this, _Oas_instances, getResponseBodyFactory_fn).call(this, operation.getResponseByStatusCode(statusCode));
11363
11100
  const { contentType } = __privateGet$1(this, _options);
@@ -11890,27 +11627,27 @@ var SchemaGenerator = (_b = class extends BaseGenerator {
11890
11627
  }
11891
11628
  async build(...generators) {
11892
11629
  var _a2;
11893
- const { oas, contentType: contentType$1, include } = this.context;
11630
+ const { oas, contentType, include } = this.context;
11894
11631
  if (!__privateGet(this, _nameMappingInitialized)) {
11895
- const { schemas: schemas$1, nameMapping } = oas.getSchemas({
11896
- contentType: contentType$1,
11632
+ const { schemas: schemas2, nameMapping } = oas.getSchemas({
11633
+ contentType,
11897
11634
  includes: include
11898
11635
  });
11899
11636
  __privateSet(this, _schemaNameMapping, nameMapping);
11900
11637
  __privateSet(this, _nameMappingInitialized, true);
11901
- const schemaEntries = Object.entries(schemas$1);
11638
+ const schemaEntries = Object.entries(schemas2);
11902
11639
  (_a2 = this.context.events) == null ? void 0 : _a2.emit("debug", {
11903
11640
  date: /* @__PURE__ */ new Date(),
11904
11641
  logs: [
11905
11642
  `Building ${schemaEntries.length} schemas`,
11906
- ` \u2022 Content Type: ${contentType$1 || "application/json"}`,
11643
+ ` \u2022 Content Type: ${contentType || "application/json"}`,
11907
11644
  ` \u2022 Generators: ${generators.length}`
11908
11645
  ]
11909
11646
  });
11910
- return __privateMethod$1(this, _SchemaGenerator_instances, doBuild_fn).call(this, schemas$1, generators);
11647
+ return __privateMethod$1(this, _SchemaGenerator_instances, doBuild_fn).call(this, schemas2, generators);
11911
11648
  }
11912
11649
  const { schemas } = oas.getSchemas({
11913
- contentType: contentType$1,
11650
+ contentType,
11914
11651
  includes: include
11915
11652
  });
11916
11653
  return __privateMethod$1(this, _SchemaGenerator_instances, doBuild_fn).call(this, schemas, generators);
@@ -11920,9 +11657,9 @@ var SchemaGenerator = (_b = class extends BaseGenerator {
11920
11657
  */
11921
11658
  ensureNameMapping_fn = function() {
11922
11659
  if (__privateGet(this, _nameMappingInitialized)) return;
11923
- const { oas, contentType: contentType$1, include } = this.context;
11660
+ const { oas, contentType, include } = this.context;
11924
11661
  const { nameMapping } = oas.getSchemas({
11925
- contentType: contentType$1,
11662
+ contentType,
11926
11663
  includes: include
11927
11664
  });
11928
11665
  __privateSet(this, _schemaNameMapping, nameMapping);
@@ -12348,12 +12085,12 @@ parseSchemaObject_fn = function({ schema: _schemaObject, name, parentName, rootN
12348
12085
  enum: schemaObject.enum
12349
12086
  };
12350
12087
  const { enum: _, ...schemaWithoutEnum } = schemaObject;
12351
- const normalizedSchema$1 = {
12088
+ const normalizedSchema2 = {
12352
12089
  ...schemaWithoutEnum,
12353
12090
  items: normalizedItems
12354
12091
  };
12355
12092
  return this.parse({
12356
- schema: normalizedSchema$1,
12093
+ schema: normalizedSchema2,
12357
12094
  name,
12358
12095
  parentName,
12359
12096
  rootName
@@ -12385,10 +12122,10 @@ parseSchemaObject_fn = function({ schema: _schemaObject, name, parentName, rootN
12385
12122
  name,
12386
12123
  typeName,
12387
12124
  asConst: false,
12388
- items: [...new Set(schemaObject[extensionKey])].map((name$1, index) => {
12125
+ items: [...new Set(schemaObject[extensionKey])].map((name2, index) => {
12389
12126
  var _a3, _b3;
12390
12127
  return {
12391
- name: transformers_default.stringify(name$1),
12128
+ name: transformers_default.stringify(name2),
12392
12129
  value: (_a3 = schemaObject.enum) == null ? void 0 : _a3[index],
12393
12130
  format: isNumber((_b3 = schemaObject.enum) == null ? void 0 : _b3[index]) ? "number" : "string"
12394
12131
  };
@@ -12404,8 +12141,8 @@ parseSchemaObject_fn = function({ schema: _schemaObject, name, parentName, rootN
12404
12141
  name: enumName,
12405
12142
  typeName,
12406
12143
  asConst: true,
12407
- items: ((_l = enumNames == null ? void 0 : enumNames.args) == null ? void 0 : _l.items) ? [...new Set(enumNames.args.items)].map(({ name: name$1, value }) => ({
12408
- name: name$1,
12144
+ items: ((_l = enumNames == null ? void 0 : enumNames.args) == null ? void 0 : _l.items) ? [...new Set(enumNames.args.items)].map(({ name: name2, value }) => ({
12145
+ name: name2,
12409
12146
  value,
12410
12147
  format: "number"
12411
12148
  })) : [...new Set(filteredValues)].map((value) => {
@@ -12426,8 +12163,8 @@ parseSchemaObject_fn = function({ schema: _schemaObject, name, parentName, rootN
12426
12163
  name: enumName,
12427
12164
  typeName,
12428
12165
  asConst: true,
12429
- items: ((_n = enumNames == null ? void 0 : enumNames.args) == null ? void 0 : _n.items) ? [...new Set(enumNames.args.items)].map(({ name: name$1, value }) => ({
12430
- name: name$1,
12166
+ items: ((_n = enumNames == null ? void 0 : enumNames.args) == null ? void 0 : _n.items) ? [...new Set(enumNames.args.items)].map(({ name: name2, value }) => ({
12167
+ name: name2,
12431
12168
  value,
12432
12169
  format: "boolean"
12433
12170
  })) : [...new Set(filteredValues)].map((value) => {
@@ -12458,13 +12195,13 @@ parseSchemaObject_fn = function({ schema: _schemaObject, name, parentName, rootN
12458
12195
  if ("prefixItems" in schemaObject) {
12459
12196
  const prefixItems = schemaObject.prefixItems;
12460
12197
  const items = "items" in schemaObject ? schemaObject.items : [];
12461
- const min$1 = (_q = (_p = (_o = schemaObject.minimum) != null ? _o : schemaObject.minLength) != null ? _p : schemaObject.minItems) != null ? _q : void 0;
12462
- const max$1 = (_t = (_s = (_r = schemaObject.maximum) != null ? _r : schemaObject.maxLength) != null ? _s : schemaObject.maxItems) != null ? _t : void 0;
12198
+ const min2 = (_q = (_p = (_o = schemaObject.minimum) != null ? _o : schemaObject.minLength) != null ? _p : schemaObject.minItems) != null ? _q : void 0;
12199
+ const max2 = (_t = (_s = (_r = schemaObject.maximum) != null ? _r : schemaObject.maxLength) != null ? _s : schemaObject.maxItems) != null ? _t : void 0;
12463
12200
  return [{
12464
12201
  keyword: schemaKeywords.tuple,
12465
12202
  args: {
12466
- min: min$1,
12467
- max: max$1,
12203
+ min: min2,
12204
+ max: max2,
12468
12205
  items: prefixItems.map((item) => {
12469
12206
  return this.parse({
12470
12207
  schema: item,
@@ -12496,6 +12233,10 @@ parseSchemaObject_fn = function({ schema: _schemaObject, name, parentName, rootN
12496
12233
  }
12497
12234
  }, ...baseItems];
12498
12235
  }
12236
+ if (schemaObject.type === "string" && schemaObject.contentMediaType === "application/octet-stream") {
12237
+ baseItems.unshift({ keyword: schemaKeywords.blob });
12238
+ return baseItems;
12239
+ }
12499
12240
  if (schemaObject.format) {
12500
12241
  if (schemaObject.type === "integer" && schemaObject.format === "int64") {
12501
12242
  baseItems.unshift({ keyword: options.integerType === "number" ? schemaKeywords.integer : schemaKeywords.bigint });
@@ -12600,8 +12341,8 @@ parseSchemaObject_fn = function({ schema: _schemaObject, name, parentName, rootN
12600
12341
  return baseItems;
12601
12342
  }
12602
12343
  if ("items" in schemaObject || schemaObject.type === "array") {
12603
- const min$1 = (_w = (_v = (_u = schemaObject.minimum) != null ? _u : schemaObject.minLength) != null ? _v : schemaObject.minItems) != null ? _w : void 0;
12604
- const max$1 = (_z = (_y = (_x = schemaObject.maximum) != null ? _x : schemaObject.maxLength) != null ? _y : schemaObject.maxItems) != null ? _z : void 0;
12344
+ const min2 = (_w = (_v = (_u = schemaObject.minimum) != null ? _u : schemaObject.minLength) != null ? _v : schemaObject.minItems) != null ? _w : void 0;
12345
+ const max2 = (_z = (_y = (_x = schemaObject.maximum) != null ? _x : schemaObject.maxLength) != null ? _y : schemaObject.maxItems) != null ? _z : void 0;
12605
12346
  const items = this.parse({
12606
12347
  schema: "items" in schemaObject ? schemaObject.items : [],
12607
12348
  name,
@@ -12613,8 +12354,8 @@ parseSchemaObject_fn = function({ schema: _schemaObject, name, parentName, rootN
12613
12354
  keyword: schemaKeywords.array,
12614
12355
  args: {
12615
12356
  items,
12616
- min: min$1,
12617
- max: max$1,
12357
+ min: min2,
12358
+ max: max2,
12618
12359
  unique
12619
12360
  }
12620
12361
  }, ...baseItems.filter((item) => item.keyword !== schemaKeywords.min && item.keyword !== schemaKeywords.max)];
@@ -12988,12 +12729,12 @@ function getParams$d({ paramsType, paramsCasing, pathParamsType, typeSchemas, is
12988
12729
  function Client({ name, isExportable = true, isIndexable = true, returnType, typeSchemas, baseURL, dataReturnType, parser, zodSchemas, paramsType, paramsCasing, pathParamsType, operation, urlName, children, isConfigurable = true }) {
12989
12730
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
12990
12731
  const path = new URLPath(operation.path);
12991
- const contentType$1 = operation.getContentType();
12992
- const isFormData = contentType$1 === "multipart/form-data";
12732
+ const contentType = operation.getContentType();
12733
+ const isFormData = contentType === "multipart/form-data";
12993
12734
  const pathParamsMapping = paramsCasing ? getParamsMapping(typeSchemas.pathParams, { casing: paramsCasing }) : void 0;
12994
12735
  const queryParamsMapping = paramsCasing ? getParamsMapping(typeSchemas.queryParams, { casing: paramsCasing }) : void 0;
12995
12736
  const headerParamsMapping = paramsCasing ? getParamsMapping(typeSchemas.headerParams, { casing: paramsCasing }) : void 0;
12996
- const headers = [contentType$1 !== "application/json" && contentType$1 !== "multipart/form-data" ? `'Content-Type': '${contentType$1}'` : void 0, ((_a = typeSchemas.headerParams) == null ? void 0 : _a.name) ? headerParamsMapping ? "...mappedHeaders" : "...headers" : void 0].filter(Boolean);
12737
+ const headers = [contentType !== "application/json" && contentType !== "multipart/form-data" ? `'Content-Type': '${contentType}'` : void 0, ((_a = typeSchemas.headerParams) == null ? void 0 : _a.name) ? headerParamsMapping ? "...mappedHeaders" : "...headers" : void 0].filter(Boolean);
12997
12738
  const TError = `ResponseErrorConfig<${((_b = typeSchemas.errors) == null ? void 0 : _b.map((item) => item.name).join(" | ")) || "Error"}>`;
12998
12739
  const generics = [
12999
12740
  typeSchemas.response.name,
@@ -13070,8 +12811,8 @@ function Client({ name, isExportable = true, isIndexable = true, returnType, typ
13070
12811
  })] });
13071
12812
  }
13072
12813
  Client.getParams = getParams$d;
13073
- function buildHeaders$1(contentType$1, hasHeaderParams) {
13074
- return [contentType$1 !== "application/json" && contentType$1 !== "multipart/form-data" ? `'Content-Type': '${contentType$1}'` : void 0, hasHeaderParams ? "...headers" : void 0].filter(Boolean);
12814
+ function buildHeaders$1(contentType, hasHeaderParams) {
12815
+ return [contentType !== "application/json" && contentType !== "multipart/form-data" ? `'Content-Type': '${contentType}'` : void 0, hasHeaderParams ? "...headers" : void 0].filter(Boolean);
13075
12816
  }
13076
12817
  __name$5(buildHeaders$1, "buildHeaders");
13077
12818
  function buildGenerics$1(typeSchemas) {
@@ -13121,9 +12862,9 @@ __name$5(buildReturnStatement$1, "buildReturnStatement");
13121
12862
  function generateMethod$1({ operation, name, typeSchemas, zodSchemas, baseURL, dataReturnType, parser, paramsType, paramsCasing, pathParamsType }) {
13122
12863
  var _a, _b;
13123
12864
  const path = new URLPath(operation.path, { casing: paramsCasing });
13124
- const contentType$1 = operation.getContentType();
13125
- const isFormData = contentType$1 === "multipart/form-data";
13126
- const headers = buildHeaders$1(contentType$1, !!((_a = typeSchemas.headerParams) == null ? void 0 : _a.name));
12865
+ const contentType = operation.getContentType();
12866
+ const isFormData = contentType === "multipart/form-data";
12867
+ const headers = buildHeaders$1(contentType, !!((_a = typeSchemas.headerParams) == null ? void 0 : _a.name));
13127
12868
  const generics = buildGenerics$1(typeSchemas);
13128
12869
  const params = ClassClient.getParams({
13129
12870
  paramsType,
@@ -13213,8 +12954,8 @@ function Operations$1({ name, operations }) {
13213
12954
  })
13214
12955
  });
13215
12956
  }
13216
- function buildHeaders(contentType$1, hasHeaderParams) {
13217
- return [contentType$1 !== "application/json" && contentType$1 !== "multipart/form-data" ? `'Content-Type': '${contentType$1}'` : void 0, hasHeaderParams ? "...headers" : void 0].filter(Boolean);
12957
+ function buildHeaders(contentType, hasHeaderParams) {
12958
+ return [contentType !== "application/json" && contentType !== "multipart/form-data" ? `'Content-Type': '${contentType}'` : void 0, hasHeaderParams ? "...headers" : void 0].filter(Boolean);
13218
12959
  }
13219
12960
  function buildGenerics(typeSchemas) {
13220
12961
  var _a, _b;
@@ -13258,9 +12999,9 @@ function buildReturnStatement({ dataReturnType, parser, zodSchemas }) {
13258
12999
  function generateMethod({ operation, name, typeSchemas, zodSchemas, baseURL, dataReturnType, parser, paramsType, paramsCasing, pathParamsType }) {
13259
13000
  var _a, _b;
13260
13001
  const path = new URLPath(operation.path, { casing: paramsCasing });
13261
- const contentType$1 = operation.getContentType();
13262
- const isFormData = contentType$1 === "multipart/form-data";
13263
- const headers = buildHeaders(contentType$1, !!((_a = typeSchemas.headerParams) == null ? void 0 : _a.name));
13002
+ const contentType = operation.getContentType();
13003
+ const isFormData = contentType === "multipart/form-data";
13004
+ const headers = buildHeaders(contentType, !!((_a = typeSchemas.headerParams) == null ? void 0 : _a.name));
13264
13005
  const generics = buildGenerics(typeSchemas);
13265
13006
  const params = Client.getParams({
13266
13007
  paramsType,
@@ -13421,7 +13162,7 @@ var OperationGenerator = (_a = class extends BaseGenerator {
13421
13162
  var _a2;
13422
13163
  const { override = [] } = this.context;
13423
13164
  const operationId = operation.getOperationId({ friendlyCase: true });
13424
- const contentType$1 = operation.getContentType();
13165
+ const contentType = operation.getContentType();
13425
13166
  return ((_a2 = override.find(({ pattern, type }) => {
13426
13167
  switch (type) {
13427
13168
  case "tag":
@@ -13433,7 +13174,7 @@ var OperationGenerator = (_a = class extends BaseGenerator {
13433
13174
  case "method":
13434
13175
  return !!method.match(pattern);
13435
13176
  case "contentType":
13436
- return !!contentType$1.match(pattern);
13177
+ return !!contentType.match(pattern);
13437
13178
  default:
13438
13179
  return false;
13439
13180
  }
@@ -13527,12 +13268,12 @@ var OperationGenerator = (_a = class extends BaseGenerator {
13527
13268
  async getOperations() {
13528
13269
  const { oas } = this.context;
13529
13270
  const paths = oas.getPaths();
13530
- return Object.entries(paths).flatMap(([path$1, methods]) => Object.entries(methods).map((values) => {
13271
+ return Object.entries(paths).flatMap(([path2, methods]) => Object.entries(methods).map((values) => {
13531
13272
  const [method, operation] = values;
13532
13273
  if (__privateMethod(this, _OperationGenerator_instances, isExcluded_fn).call(this, operation, method)) return null;
13533
13274
  if (this.context.include && !__privateMethod(this, _OperationGenerator_instances, isIncluded_fn).call(this, operation, method)) return null;
13534
13275
  return operation ? {
13535
- path: path$1,
13276
+ path: path2,
13536
13277
  method,
13537
13278
  operation
13538
13279
  } : null;
@@ -13605,7 +13346,7 @@ var OperationGenerator = (_a = class extends BaseGenerator {
13605
13346
  }, _OperationGenerator_instances = new WeakSet(), isExcluded_fn = function(operation, method) {
13606
13347
  const { exclude = [] } = this.context;
13607
13348
  const operationId = operation.getOperationId({ friendlyCase: true });
13608
- const contentType$1 = operation.getContentType();
13349
+ const contentType = operation.getContentType();
13609
13350
  return exclude.some(({ pattern, type }) => {
13610
13351
  switch (type) {
13611
13352
  case "tag":
@@ -13617,7 +13358,7 @@ var OperationGenerator = (_a = class extends BaseGenerator {
13617
13358
  case "method":
13618
13359
  return !!method.match(pattern);
13619
13360
  case "contentType":
13620
- return !!contentType$1.match(pattern);
13361
+ return !!contentType.match(pattern);
13621
13362
  default:
13622
13363
  return false;
13623
13364
  }
@@ -13625,7 +13366,7 @@ var OperationGenerator = (_a = class extends BaseGenerator {
13625
13366
  }, isIncluded_fn = function(operation, method) {
13626
13367
  const { include = [] } = this.context;
13627
13368
  const operationId = operation.getOperationId({ friendlyCase: true });
13628
- const contentType$1 = operation.getContentType();
13369
+ const contentType = operation.getContentType();
13629
13370
  return include.some(({ pattern, type }) => {
13630
13371
  switch (type) {
13631
13372
  case "tag":
@@ -13637,7 +13378,7 @@ var OperationGenerator = (_a = class extends BaseGenerator {
13637
13378
  case "method":
13638
13379
  return !!method.match(pattern);
13639
13380
  case "contentType":
13640
- return !!contentType$1.match(pattern);
13381
+ return !!contentType.match(pattern);
13641
13382
  default:
13642
13383
  return false;
13643
13384
  }
@@ -13645,16 +13386,16 @@ var OperationGenerator = (_a = class extends BaseGenerator {
13645
13386
  }, _a);
13646
13387
  const pluginOasName = "plugin-oas";
13647
13388
  const pluginOas = definePlugin((options) => {
13648
- const { output = { path: "schemas" }, group, validate = true, generators = [jsonGenerator], serverIndex, contentType: contentType$1, oasClass, discriminator = "strict", collisionDetection = false } = options;
13649
- const getOas = async ({ validate: validate$1, config, events }) => {
13389
+ const { output = { path: "schemas" }, group, validate = true, generators = [jsonGenerator], serverIndex, contentType, oasClass, discriminator = "strict", collisionDetection = false } = options;
13390
+ const getOas = async ({ validate: validate2, config, events }) => {
13650
13391
  const oas = await parseFromConfig(config, oasClass);
13651
13392
  oas.setOptions({
13652
- contentType: contentType$1,
13393
+ contentType,
13653
13394
  discriminator,
13654
13395
  collisionDetection
13655
13396
  });
13656
13397
  try {
13657
- if (validate$1) await oas.validate();
13398
+ if (validate2) await oas.validate();
13658
13399
  } catch (er) {
13659
13400
  const caughtError = er;
13660
13401
  const errorTimestamp = /* @__PURE__ */ new Date();
@@ -13680,36 +13421,36 @@ const pluginOas = definePlugin((options) => {
13680
13421
  const events = this.events;
13681
13422
  let oas;
13682
13423
  return {
13683
- async getOas({ validate: validate$1 = false } = {}) {
13424
+ async getOas({ validate: validate2 = false } = {}) {
13684
13425
  if (!oas) oas = await getOas({
13685
13426
  config,
13686
13427
  events,
13687
- validate: validate$1
13428
+ validate: validate2
13688
13429
  });
13689
13430
  return oas;
13690
13431
  },
13691
13432
  async getBaseURL() {
13692
13433
  var _a2, _b;
13693
- const oas$1 = await getOas({
13434
+ const oas2 = await getOas({
13694
13435
  config,
13695
13436
  events,
13696
13437
  validate: false
13697
13438
  });
13698
- if (serverIndex !== void 0) return (_b = (_a2 = oas$1.api.servers) == null ? void 0 : _a2.at(serverIndex)) == null ? void 0 : _b.url;
13439
+ if (serverIndex !== void 0) return (_b = (_a2 = oas2.api.servers) == null ? void 0 : _a2.at(serverIndex)) == null ? void 0 : _b.url;
13699
13440
  }
13700
13441
  };
13701
13442
  },
13702
- resolvePath(baseName, pathMode, options$1) {
13443
+ resolvePath(baseName, pathMode, options2) {
13703
13444
  var _a2, _b;
13704
13445
  const root = path$2.resolve(this.config.root, this.config.output.path);
13705
13446
  if ((pathMode != null ? pathMode : getMode(path$2.resolve(root, output.path))) === "single")
13706
13447
  return path$2.resolve(root, output.path);
13707
- if (group && (((_a2 = options$1 == null ? void 0 : options$1.group) == null ? void 0 : _a2.path) || ((_b = options$1 == null ? void 0 : options$1.group) == null ? void 0 : _b.tag))) {
13448
+ if (group && (((_a2 = options2 == null ? void 0 : options2.group) == null ? void 0 : _a2.path) || ((_b = options2 == null ? void 0 : options2.group) == null ? void 0 : _b.tag))) {
13708
13449
  const groupName = (group == null ? void 0 : group.name) ? group.name : (ctx) => {
13709
13450
  if ((group == null ? void 0 : group.type) === "path") return `${ctx.group.split("/")[1]}`;
13710
13451
  return `${camelCase(ctx.group)}Controller`;
13711
13452
  };
13712
- return path$2.resolve(root, output.path, groupName({ group: group.type === "path" ? options$1.group.path : options$1.group.tag }), baseName);
13453
+ return path$2.resolve(root, output.path, groupName({ group: group.type === "path" ? options2.group.path : options2.group.tag }), baseName);
13713
13454
  }
13714
13455
  return path$2.resolve(root, output.path, baseName);
13715
13456
  },
@@ -13734,7 +13475,7 @@ const pluginOas = definePlugin((options) => {
13734
13475
  pluginManager: this.pluginManager,
13735
13476
  events: this.events,
13736
13477
  plugin: this.plugin,
13737
- contentType: contentType$1,
13478
+ contentType,
13738
13479
  include: void 0,
13739
13480
  override: void 0,
13740
13481
  mode: "split",
@@ -13747,7 +13488,7 @@ const pluginOas = definePlugin((options) => {
13747
13488
  pluginManager: this.pluginManager,
13748
13489
  events: this.events,
13749
13490
  plugin: this.plugin,
13750
- contentType: contentType$1,
13491
+ contentType,
13751
13492
  exclude: void 0,
13752
13493
  include: void 0,
13753
13494
  override: void 0,
@@ -14098,7 +13839,7 @@ function sort(items) {
14098
13839
  schemaKeywords.nullish
14099
13840
  ];
14100
13841
  if (!items) return [];
14101
- return transformers_default.orderBy(items, [(v) => order.indexOf(v.keyword)], ["asc"]);
13842
+ return sortBy(items, [(v) => order.indexOf(v.keyword), "asc"]);
14102
13843
  }
14103
13844
  const miniModifierKeywords = [
14104
13845
  schemaKeywords.optional,
@@ -14149,18 +13890,18 @@ const parse$2 = createParser({
14149
13890
  siblings
14150
13891
  }, options);
14151
13892
  if (Array.isArray(current.args) && !current.args.length) return "";
14152
- return zodKeywordMapper.union(sort(current.args).map((it, _index, siblings$1) => this.parse({
13893
+ return zodKeywordMapper.union(sort(current.args).map((it, _index, siblings2) => this.parse({
14153
13894
  schema,
14154
13895
  parent: current,
14155
13896
  name,
14156
13897
  current: it,
14157
- siblings: siblings$1
13898
+ siblings: siblings2
14158
13899
  }, options)).filter(Boolean));
14159
13900
  },
14160
13901
  and(tree, options) {
14161
13902
  const { current, schema, name } = tree;
14162
- const items = sort(current.args).filter((schema$1) => {
14163
- return ![schemaKeywords.optional, schemaKeywords.describe].includes(schema$1.keyword);
13903
+ const items = sort(current.args).filter((schema2) => {
13904
+ return ![schemaKeywords.optional, schemaKeywords.describe].includes(schema2.keyword);
14164
13905
  }).map((it, _index, siblings) => this.parse({
14165
13906
  schema,
14166
13907
  parent: current,
@@ -14198,9 +13939,9 @@ const parse$2 = createParser({
14198
13939
  siblings: [child]
14199
13940
  }, options);
14200
13941
  }
14201
- return zodKeywordMapper.union(current.args.items.map((schema$1) => ({
13942
+ return zodKeywordMapper.union(current.args.items.map((schema2) => ({
14202
13943
  keyword: schemaKeywords.const,
14203
- args: schema$1
13944
+ args: schema2
14204
13945
  })).map((it, _index, siblings) => {
14205
13946
  return this.parse({
14206
13947
  schema,
@@ -14211,10 +13952,10 @@ const parse$2 = createParser({
14211
13952
  }, options);
14212
13953
  }).filter(Boolean));
14213
13954
  }
14214
- return zodKeywordMapper.enum(current.args.items.map((schema$1) => {
14215
- if (schema$1.format === "boolean") return transformers_default.stringify(schema$1.value);
14216
- if (schema$1.format === "number") return transformers_default.stringify(schema$1.value);
14217
- return transformers_default.stringify(schema$1.value);
13955
+ return zodKeywordMapper.enum(current.args.items.map((schema2) => {
13956
+ if (schema2.format === "boolean") return transformers_default.stringify(schema2.value);
13957
+ if (schema2.format === "number") return transformers_default.stringify(schema2.value);
13958
+ return transformers_default.stringify(schema2.value);
14218
13959
  }));
14219
13960
  },
14220
13961
  ref(tree, options) {
@@ -14227,8 +13968,8 @@ const parse$2 = createParser({
14227
13968
  var _a, _b, _c, _d;
14228
13969
  const { current, schema, name } = tree;
14229
13970
  const properties = Object.entries(((_a = current.args) == null ? void 0 : _a.properties) || {}).filter((item) => {
14230
- const schema$1 = item[1];
14231
- return schema$1 && typeof schema$1.map === "function";
13971
+ const schema2 = item[1];
13972
+ return schema2 && typeof schema2.map === "function";
14232
13973
  }).map(([propertyName, schemas]) => {
14233
13974
  var _a2, _b2;
14234
13975
  const nameSchema = schemas.find((it) => it.keyword === schemaKeywords.name);
@@ -14238,8 +13979,8 @@ const parse$2 = createParser({
14238
13979
  const hasRef = !!SchemaGenerator.find(schemas, schemaKeywords.ref);
14239
13980
  const mappedName = (nameSchema == null ? void 0 : nameSchema.args) || propertyName;
14240
13981
  if (options.mapper && Object.hasOwn(options.mapper, mappedName)) return `"${propertyName}": ${(_a2 = options.mapper) == null ? void 0 : _a2[mappedName]}`;
14241
- const baseSchemaOutput = sort(schemas).filter((schema$1) => {
14242
- return !isKeyword(schema$1, schemaKeywords.optional) && !isKeyword(schema$1, schemaKeywords.nullable) && !isKeyword(schema$1, schemaKeywords.nullish);
13982
+ const baseSchemaOutput = sort(schemas).filter((schema2) => {
13983
+ return !isKeyword(schema2, schemaKeywords.optional) && !isKeyword(schema2, schemaKeywords.nullable) && !isKeyword(schema2, schemaKeywords.nullish);
14243
13984
  }).map((it) => {
14244
13985
  const skipLazyForRefs = options.version === "4" && hasRef;
14245
13986
  return this.parse({
@@ -212416,11 +212157,11 @@ function createUnionDeclaration({ nodes, withParentheses }) {
212416
212157
  if (withParentheses) return factory.createParenthesizedType(node);
212417
212158
  return node;
212418
212159
  }
212419
- function createPropertySignature({ readOnly, modifiers: modifiers$1 = [], name, questionToken: questionToken$1, type }) {
212420
- return factory.createPropertySignature([...modifiers$1, readOnly ? factory.createToken(ts.SyntaxKind.ReadonlyKeyword) : void 0].filter(Boolean), propertyName(name), createQuestionToken(questionToken$1), type);
212160
+ function createPropertySignature({ readOnly, modifiers: modifiers2 = [], name, questionToken: questionToken2, type }) {
212161
+ return factory.createPropertySignature([...modifiers2, readOnly ? factory.createToken(ts.SyntaxKind.ReadonlyKeyword) : void 0].filter(Boolean), propertyName(name), createQuestionToken(questionToken2), type);
212421
212162
  }
212422
- function createParameterSignature(name, { modifiers: modifiers$1, dotDotDotToken, questionToken: questionToken$1, type, initializer }) {
212423
- return factory.createParameterDeclaration(modifiers$1, dotDotDotToken, name, createQuestionToken(questionToken$1), type, initializer);
212163
+ function createParameterSignature(name, { modifiers: modifiers2, dotDotDotToken, questionToken: questionToken2, type, initializer }) {
212164
+ return factory.createParameterDeclaration(modifiers2, dotDotDotToken, name, createQuestionToken(questionToken2), type, initializer);
212424
212165
  }
212425
212166
  function appendJSDocToNode({ node, comments }) {
212426
212167
  const filteredComments = comments.filter(Boolean);
@@ -212432,14 +212173,14 @@ function appendJSDocToNode({ node, comments }) {
212432
212173
  return ts.addSyntheticLeadingComment(node, ts.SyntaxKind.MultiLineCommentTrivia, `${text || "*"}
212433
212174
  `, true);
212434
212175
  }
212435
- function createIndexSignature(type, { modifiers: modifiers$1, indexName = "key", indexType = factory.createKeywordTypeNode(ts.SyntaxKind.StringKeyword) } = {}) {
212436
- return factory.createIndexSignature(modifiers$1, [createParameterSignature(indexName, { type: indexType })], type);
212176
+ function createIndexSignature(type, { modifiers: modifiers2, indexName = "key", indexType = factory.createKeywordTypeNode(ts.SyntaxKind.StringKeyword) } = {}) {
212177
+ return factory.createIndexSignature(modifiers2, [createParameterSignature(indexName, { type: indexType })], type);
212437
212178
  }
212438
- function createTypeAliasDeclaration({ modifiers: modifiers$1, name, typeParameters, type }) {
212439
- return factory.createTypeAliasDeclaration(modifiers$1, name, typeParameters, type);
212179
+ function createTypeAliasDeclaration({ modifiers: modifiers2, name, typeParameters, type }) {
212180
+ return factory.createTypeAliasDeclaration(modifiers2, name, typeParameters, type);
212440
212181
  }
212441
- function createInterfaceDeclaration({ modifiers: modifiers$1, name, typeParameters, members }) {
212442
- return factory.createInterfaceDeclaration(modifiers$1, name, typeParameters, void 0, members);
212182
+ function createInterfaceDeclaration({ modifiers: modifiers2, name, typeParameters, members }) {
212183
+ return factory.createInterfaceDeclaration(modifiers2, name, typeParameters, void 0, members);
212443
212184
  }
212444
212185
  function createTypeDeclaration({ syntax, isExportable, comments, name, type }) {
212445
212186
  if (syntax === "interface" && "members" in type) return appendJSDocToNode({
@@ -212637,9 +212378,9 @@ const typeKeywordMapper = {
212637
212378
  phone: void 0,
212638
212379
  readOnly: void 0,
212639
212380
  writeOnly: void 0,
212640
- ref: (propertyName$1) => {
212641
- if (!propertyName$1) return;
212642
- return createTypeReferenceNode(propertyName$1, void 0);
212381
+ ref: (propertyName2) => {
212382
+ if (!propertyName2) return;
212383
+ return createTypeReferenceNode(propertyName2, void 0);
212643
212384
  },
212644
212385
  blob: () => createTypeReferenceNode("Blob", []),
212645
212386
  deprecated: void 0,
@@ -212729,26 +212470,26 @@ const parse$1 = createParser({
212729
212470
  const properties = Object.entries(((_a = current.args) == null ? void 0 : _a.properties) || {}).filter((item) => {
212730
212471
  const schemas = item[1];
212731
212472
  return schemas && typeof schemas.map === "function";
212732
- }).map(([name$1, schemas]) => {
212473
+ }).map(([name2, schemas]) => {
212733
212474
  var _a2, _b2, _c2, _d2, _e2;
212734
- const mappedName = ((_a2 = schemas.find((schema$1) => schema$1.keyword === schemaKeywords.name)) == null ? void 0 : _a2.args) || name$1;
212475
+ const mappedName = ((_a2 = schemas.find((schema2) => schema2.keyword === schemaKeywords.name)) == null ? void 0 : _a2.args) || name2;
212735
212476
  if (options.mapper && Object.hasOwn(options.mapper, mappedName)) return options.mapper[mappedName];
212736
- const isNullish = schemas.some((schema$1) => schema$1.keyword === schemaKeywords.nullish);
212737
- const isNullable = schemas.some((schema$1) => schema$1.keyword === schemaKeywords.nullable);
212738
- const isOptional = schemas.some((schema$1) => schema$1.keyword === schemaKeywords.optional);
212739
- const isReadonly = schemas.some((schema$1) => schema$1.keyword === schemaKeywords.readOnly);
212740
- const describeSchema = schemas.find((schema$1) => schema$1.keyword === schemaKeywords.describe);
212741
- const deprecatedSchema = schemas.find((schema$1) => schema$1.keyword === schemaKeywords.deprecated);
212742
- const defaultSchema = schemas.find((schema$1) => schema$1.keyword === schemaKeywords.default);
212743
- const exampleSchema = schemas.find((schema$1) => schema$1.keyword === schemaKeywords.example);
212744
- const schemaSchema = schemas.find((schema$1) => schema$1.keyword === schemaKeywords.schema);
212745
- const minSchema = schemas.find((schema$1) => schema$1.keyword === schemaKeywords.min);
212746
- const maxSchema = schemas.find((schema$1) => schema$1.keyword === schemaKeywords.max);
212747
- const matchesSchema = schemas.find((schema$1) => schema$1.keyword === schemaKeywords.matches);
212477
+ const isNullish = schemas.some((schema2) => schema2.keyword === schemaKeywords.nullish);
212478
+ const isNullable = schemas.some((schema2) => schema2.keyword === schemaKeywords.nullable);
212479
+ const isOptional = schemas.some((schema2) => schema2.keyword === schemaKeywords.optional);
212480
+ const isReadonly = schemas.some((schema2) => schema2.keyword === schemaKeywords.readOnly);
212481
+ const describeSchema = schemas.find((schema2) => schema2.keyword === schemaKeywords.describe);
212482
+ const deprecatedSchema = schemas.find((schema2) => schema2.keyword === schemaKeywords.deprecated);
212483
+ const defaultSchema = schemas.find((schema2) => schema2.keyword === schemaKeywords.default);
212484
+ const exampleSchema = schemas.find((schema2) => schema2.keyword === schemaKeywords.example);
212485
+ const schemaSchema = schemas.find((schema2) => schema2.keyword === schemaKeywords.schema);
212486
+ const minSchema = schemas.find((schema2) => schema2.keyword === schemaKeywords.min);
212487
+ const maxSchema = schemas.find((schema2) => schema2.keyword === schemaKeywords.max);
212488
+ const matchesSchema = schemas.find((schema2) => schema2.keyword === schemaKeywords.matches);
212748
212489
  let type = schemas.map((it) => this.parse({
212749
212490
  schema,
212750
212491
  parent: current,
212751
- name: name$1,
212492
+ name: name2,
212752
212493
  current: it,
212753
212494
  siblings: schemas
212754
212495
  }, options)).filter(Boolean)[0];
@@ -212784,7 +212525,7 @@ const parse$1 = createParser({
212784
212525
  current: it,
212785
212526
  siblings: []
212786
212527
  }, options)).filter(Boolean).at(0);
212787
- if ((_d = current.args) == null ? void 0 : _d.additionalProperties.some((schema$1) => isKeyword(schema$1, schemaKeywords.nullable))) additionalPropertiesType = createUnionDeclaration({ nodes: [additionalPropertiesType, keywordTypeNodes.null] });
212528
+ if ((_d = current.args) == null ? void 0 : _d.additionalProperties.some((schema2) => isKeyword(schema2, schemaKeywords.nullable))) additionalPropertiesType = createUnionDeclaration({ nodes: [additionalPropertiesType, keywordTypeNodes.null] });
212788
212529
  const indexSignatureType = properties.length > 0 ? keywordTypeNodes.unknown : additionalPropertiesType;
212789
212530
  additionalProperties = createIndexSignature(indexSignatureType);
212790
212531
  }
@@ -212799,7 +212540,7 @@ const parse$1 = createParser({
212799
212540
  current: it,
212800
212541
  siblings: []
212801
212542
  }, options)).filter(Boolean).at(0);
212802
- if (allPatternSchemas.some((schema$1) => isKeyword(schema$1, schemaKeywords.nullable))) patternProperties = createUnionDeclaration({ nodes: [patternProperties, keywordTypeNodes.null] });
212543
+ if (allPatternSchemas.some((schema2) => isKeyword(schema2, schemaKeywords.nullable))) patternProperties = createUnionDeclaration({ nodes: [patternProperties, keywordTypeNodes.null] });
212803
212544
  patternProperties = createIndexSignature(patternProperties);
212804
212545
  }
212805
212546
  }
@@ -212879,10 +212620,10 @@ function Type({ name, typedName, tree, keysToOmit, schema, optionalType, arrayTy
212879
212620
  ]
212880
212621
  }));
212881
212622
  const enums = [...new Set(enumSchemas)].map((enumSchema) => {
212882
- const name$1 = enumType === "asPascalConst" ? transformers_default.pascalCase(enumSchema.args.name) : transformers_default.camelCase(enumSchema.args.name);
212623
+ const name2 = enumType === "asPascalConst" ? transformers_default.pascalCase(enumSchema.args.name) : transformers_default.camelCase(enumSchema.args.name);
212883
212624
  const typeName = ["asConst", "asPascalConst"].includes(enumType) ? `${enumSchema.args.typeName}Key` : enumSchema.args.typeName;
212884
212625
  const [nameNode, typeNode] = createEnumDeclaration({
212885
- name: name$1,
212626
+ name: name2,
212886
212627
  typeName,
212887
212628
  enums: enumSchema.args.items.map((item) => {
212888
212629
  var _a;
@@ -212894,14 +212635,14 @@ function Type({ name, typedName, tree, keysToOmit, schema, optionalType, arrayTy
212894
212635
  return {
212895
212636
  nameNode,
212896
212637
  typeNode,
212897
- name: name$1,
212638
+ name: name2,
212898
212639
  typeName
212899
212640
  };
212900
212641
  });
212901
212642
  const shouldExportEnums = enumType !== "inlineLiteral";
212902
212643
  const shouldExportType = enumType === "inlineLiteral" || enums.every((item) => item.typeName !== name);
212903
- return /* @__PURE__ */ jsxs(Fragment, { children: [shouldExportEnums && enums.map(({ name: name$1, nameNode, typeName, typeNode }) => /* @__PURE__ */ jsxs(Fragment, { children: [nameNode && /* @__PURE__ */ jsx(File.Source, {
212904
- name: name$1,
212644
+ return /* @__PURE__ */ jsxs(Fragment, { children: [shouldExportEnums && enums.map(({ name: name2, nameNode, typeName, typeNode }) => /* @__PURE__ */ jsxs(Fragment, { children: [nameNode && /* @__PURE__ */ jsx(File.Source, {
212645
+ name: name2,
212905
212646
  isExportable: true,
212906
212647
  isIndexable: true,
212907
212648
  isTypeOnly: false,
@@ -213328,19 +213069,19 @@ const typeGenerator = createReactGenerator({
213328
213069
  schemas.request,
213329
213070
  schemas.response
213330
213071
  ].flat().filter(Boolean);
213331
- const mapOperationSchema = ({ name: name$1, schema, description, keysToOmit, ...options$1 }) => {
213332
- const transformedSchema = paramsCasing && isParameterSchema(name$1) ? applyParamsCasing(schema, paramsCasing) : schema;
213072
+ const mapOperationSchema = ({ name: name2, schema, description, keysToOmit, ...options2 }) => {
213073
+ const transformedSchema = paramsCasing && isParameterSchema(name2) ? applyParamsCasing(schema, paramsCasing) : schema;
213333
213074
  const tree = schemaGenerator.parse({
213334
213075
  schema: transformedSchema,
213335
- name: name$1,
213076
+ name: name2,
213336
213077
  parentName: null
213337
213078
  });
213338
213079
  const imports = getImports(tree);
213339
- const group = options$1.operation ? getGroup(options$1.operation) : void 0;
213080
+ const group = options2.operation ? getGroup(options2.operation) : void 0;
213340
213081
  const type = {
213341
- name: schemaManager.getName(name$1, { type: "type" }),
213342
- typedName: schemaManager.getName(name$1, { type: "type" }),
213343
- file: schemaManager.getFile(options$1.operationName || name$1, { group })
213082
+ name: schemaManager.getName(name2, { type: "type" }),
213083
+ typedName: schemaManager.getName(name2, { type: "type" }),
213084
+ file: schemaManager.getFile(options2.operationName || name2, { group })
213344
213085
  };
213345
213086
  return /* @__PURE__ */ jsxs(Fragment, { children: [mode === "split" && imports.map((imp) => /* @__PURE__ */ jsx(File.Import, {
213346
213087
  root: file.path,
@@ -213348,7 +213089,7 @@ const typeGenerator = createReactGenerator({
213348
213089
  name: imp.name,
213349
213090
  isTypeOnly: true
213350
213091
  }, [
213351
- name$1,
213092
+ name2,
213352
213093
  imp.name,
213353
213094
  imp.path,
213354
213095
  imp.isTypeOnly
@@ -213475,12 +213216,12 @@ const pluginTs = definePlugin((options) => {
213475
213216
  const { output = {
213476
213217
  path: "types",
213477
213218
  barrelType: "named"
213478
- }, group, exclude = [], include, override = [], enumType = "asConst", enumKeyCasing = "none", enumSuffix = "enum", dateType = "string", integerType = "bigint", unknownType = "any", optionalType = "questionToken", arrayType = "array", emptySchemaType = unknownType, syntaxType = "type", transformers: transformers$1 = {}, mapper = {}, paramsCasing, generators = [typeGenerator].filter(Boolean), contentType, UNSTABLE_NAMING } = options;
213219
+ }, group, exclude = [], include, override = [], enumType = "asConst", enumKeyCasing = "none", enumSuffix = "enum", dateType = "string", integerType = "bigint", unknownType = "any", optionalType = "questionToken", arrayType = "array", emptySchemaType = unknownType, syntaxType = "type", transformers: transformers2 = {}, mapper = {}, paramsCasing, generators = [typeGenerator].filter(Boolean), contentType, UNSTABLE_NAMING } = options;
213479
213220
  return {
213480
213221
  name: pluginTsName,
213481
213222
  options: {
213482
213223
  output,
213483
- transformers: transformers$1,
213224
+ transformers: transformers2,
213484
213225
  dateType,
213485
213226
  integerType,
213486
213227
  optionalType,
@@ -213498,24 +213239,24 @@ const pluginTs = definePlugin((options) => {
213498
213239
  usedEnumNames: {}
213499
213240
  },
213500
213241
  pre: [pluginOasName],
213501
- resolvePath(baseName, pathMode, options$1) {
213242
+ resolvePath(baseName, pathMode, options2) {
213502
213243
  var _a, _b;
213503
213244
  const root = path$2.resolve(this.config.root, this.config.output.path);
213504
213245
  if ((pathMode != null ? pathMode : getMode(path$2.resolve(root, output.path))) === "single")
213505
213246
  return path$2.resolve(root, output.path);
213506
- if (group && (((_a = options$1 == null ? void 0 : options$1.group) == null ? void 0 : _a.path) || ((_b = options$1 == null ? void 0 : options$1.group) == null ? void 0 : _b.tag))) {
213247
+ if (group && (((_a = options2 == null ? void 0 : options2.group) == null ? void 0 : _a.path) || ((_b = options2 == null ? void 0 : options2.group) == null ? void 0 : _b.tag))) {
213507
213248
  const groupName = (group == null ? void 0 : group.name) ? group.name : (ctx) => {
213508
213249
  if ((group == null ? void 0 : group.type) === "path") return `${ctx.group.split("/")[1]}`;
213509
213250
  return `${camelCase(ctx.group)}Controller`;
213510
213251
  };
213511
- return path$2.resolve(root, output.path, groupName({ group: group.type === "path" ? options$1.group.path : options$1.group.tag }), baseName);
213252
+ return path$2.resolve(root, output.path, groupName({ group: group.type === "path" ? options2.group.path : options2.group.tag }), baseName);
213512
213253
  }
213513
213254
  return path$2.resolve(root, output.path, baseName);
213514
213255
  },
213515
213256
  resolveName(name, type) {
213516
213257
  var _a;
213517
213258
  const resolvedName = pascalCase(name, { isFile: type === "file" });
213518
- if (type) return ((_a = transformers$1 == null ? void 0 : transformers$1.name) == null ? void 0 : _a.call(transformers$1, resolvedName, type)) || resolvedName;
213259
+ if (type) return ((_a = transformers2 == null ? void 0 : transformers2.name) == null ? void 0 : _a.call(transformers2, resolvedName, type)) || resolvedName;
213519
213260
  return resolvedName;
213520
213261
  },
213521
213262
  async install() {
@@ -213648,7 +213389,7 @@ const zodGenerator = createReactGenerator({
213648
213389
  schemas.request,
213649
213390
  schemas.response
213650
213391
  ].flat().filter(Boolean);
213651
- const mapOperationSchema = ({ name, schema: schemaOriginal, description, keysToOmit: keysToOmitOriginal, ...options$1 }) => {
213392
+ const mapOperationSchema = ({ name, schema: schemaOriginal, description, keysToOmit: keysToOmitOriginal, ...options2 }) => {
213652
213393
  var _a;
213653
213394
  let schemaObject = schemaOriginal;
213654
213395
  let keysToOmit = keysToOmitOriginal;
@@ -213669,7 +213410,7 @@ const zodGenerator = createReactGenerator({
213669
213410
  parentName: null
213670
213411
  }), optional ? { keyword: schemaKeywords.optional } : void 0].filter(Boolean);
213671
213412
  const imports = getImports(tree);
213672
- const group = options$1.operation ? getGroup(options$1.operation) : void 0;
213413
+ const group = options2.operation ? getGroup(options2.operation) : void 0;
213673
213414
  const coercion = name.includes("Params") ? {
213674
213415
  numbers: true,
213675
213416
  strings: false,
@@ -213685,7 +213426,7 @@ const zodGenerator = createReactGenerator({
213685
213426
  type: "type",
213686
213427
  pluginKey: [pluginTsName]
213687
213428
  }),
213688
- file: schemaManager.getFile(options$1.operationName || name, {
213429
+ file: schemaManager.getFile(options2.operationName || name, {
213689
213430
  pluginKey: [pluginTsName],
213690
213431
  group
213691
213432
  })
@@ -213835,12 +213576,12 @@ const pluginZod = definePlugin((options) => {
213835
213576
  const { output = {
213836
213577
  path: "zod",
213837
213578
  barrelType: "named"
213838
- }, group, exclude = [], include, override = [], transformers: transformers$1 = {}, dateType = "string", unknownType = "any", emptySchemaType = unknownType, typed = false, mapper = {}, operations = false, mini = false, version = mini ? "4" : new PackageManager().isValidSync("zod", ">=4") ? "4" : "3", guidType = "uuid", importPath = mini ? "zod/mini" : version === "4" ? "zod/v4" : "zod", coercion = false, inferred = false, generators = [zodGenerator, operations ? operationsGenerator$1 : void 0].filter(Boolean), wrapOutput = void 0, contentType } = options;
213579
+ }, group, exclude = [], include, override = [], transformers = {}, dateType = "string", unknownType = "any", emptySchemaType = unknownType, typed = false, mapper = {}, operations = false, mini = false, version = mini ? "4" : new PackageManager().isValidSync("zod", ">=4") ? "4" : "3", guidType = "uuid", importPath = mini ? "zod/mini" : version === "4" ? "zod/v4" : "zod", coercion = false, inferred = false, generators = [zodGenerator, operations ? operationsGenerator$1 : void 0].filter(Boolean), wrapOutput = void 0, contentType } = options;
213839
213580
  return {
213840
213581
  name: pluginZodName,
213841
213582
  options: {
213842
213583
  output,
213843
- transformers: transformers$1,
213584
+ transformers,
213844
213585
  include,
213845
213586
  exclude,
213846
213587
  override,
@@ -213861,17 +213602,17 @@ const pluginZod = definePlugin((options) => {
213861
213602
  usedEnumNames: {}
213862
213603
  },
213863
213604
  pre: [pluginOasName, typed ? pluginTsName : void 0].filter(Boolean),
213864
- resolvePath(baseName, pathMode, options$1) {
213605
+ resolvePath(baseName, pathMode, options2) {
213865
213606
  var _a, _b;
213866
213607
  const root = path$2.resolve(this.config.root, this.config.output.path);
213867
213608
  if ((pathMode != null ? pathMode : getMode(path$2.resolve(root, output.path))) === "single")
213868
213609
  return path$2.resolve(root, output.path);
213869
- if (group && (((_a = options$1 == null ? void 0 : options$1.group) == null ? void 0 : _a.path) || ((_b = options$1 == null ? void 0 : options$1.group) == null ? void 0 : _b.tag))) {
213610
+ if (group && (((_a = options2 == null ? void 0 : options2.group) == null ? void 0 : _a.path) || ((_b = options2 == null ? void 0 : options2.group) == null ? void 0 : _b.tag))) {
213870
213611
  const groupName = (group == null ? void 0 : group.name) ? group.name : (ctx) => {
213871
213612
  if ((group == null ? void 0 : group.type) === "path") return `${ctx.group.split("/")[1]}`;
213872
213613
  return `${camelCase(ctx.group)}Controller`;
213873
213614
  };
213874
- return path$2.resolve(root, output.path, groupName({ group: group.type === "path" ? options$1.group.path : options$1.group.tag }), baseName);
213615
+ return path$2.resolve(root, output.path, groupName({ group: group.type === "path" ? options2.group.path : options2.group.tag }), baseName);
213875
213616
  }
213876
213617
  return path$2.resolve(root, output.path, baseName);
213877
213618
  },
@@ -213882,7 +213623,7 @@ const pluginZod = definePlugin((options) => {
213882
213623
  isFile: type === "file"
213883
213624
  });
213884
213625
  if (type === "type") resolvedName = pascalCase(resolvedName);
213885
- if (type) return ((_a = transformers$1 == null ? void 0 : transformers$1.name) == null ? void 0 : _a.call(transformers$1, resolvedName, type)) || resolvedName;
213626
+ if (type) return ((_a = transformers == null ? void 0 : transformers.name) == null ? void 0 : _a.call(transformers, resolvedName, type)) || resolvedName;
213886
213627
  return resolvedName;
213887
213628
  },
213888
213629
  async install() {
@@ -214623,17 +214364,17 @@ const pluginClient = definePlugin((options) => {
214623
214364
  urlType
214624
214365
  },
214625
214366
  pre: [pluginOasName, parser === "zod" ? pluginZodName : void 0].filter(Boolean),
214626
- resolvePath(baseName, pathMode, options$1) {
214367
+ resolvePath(baseName, pathMode, options2) {
214627
214368
  var _a2, _b;
214628
214369
  const root = path$2.resolve(this.config.root, this.config.output.path);
214629
214370
  if ((pathMode != null ? pathMode : getMode(path$2.resolve(root, output.path))) === "single")
214630
214371
  return path$2.resolve(root, output.path);
214631
- if (group && (((_a2 = options$1 == null ? void 0 : options$1.group) == null ? void 0 : _a2.path) || ((_b = options$1 == null ? void 0 : options$1.group) == null ? void 0 : _b.tag))) {
214372
+ if (group && (((_a2 = options2 == null ? void 0 : options2.group) == null ? void 0 : _a2.path) || ((_b = options2 == null ? void 0 : options2.group) == null ? void 0 : _b.tag))) {
214632
214373
  const groupName = (group == null ? void 0 : group.name) ? group.name : (ctx) => {
214633
214374
  if ((group == null ? void 0 : group.type) === "path") return `${ctx.group.split("/")[1]}`;
214634
214375
  return `${camelCase(ctx.group)}Controller`;
214635
214376
  };
214636
- return path$2.resolve(root, output.path, groupName({ group: group.type === "path" ? options$1.group.path : options$1.group.tag }), baseName);
214377
+ return path$2.resolve(root, output.path, groupName({ group: group.type === "path" ? options2.group.path : options2.group.tag }), baseName);
214637
214378
  }
214638
214379
  return path$2.resolve(root, output.path, baseName);
214639
214380
  },
@@ -214648,7 +214389,7 @@ const pluginClient = definePlugin((options) => {
214648
214389
  const root = path$2.resolve(this.config.root, this.config.output.path);
214649
214390
  const mode = getMode(path$2.resolve(root, output.path));
214650
214391
  const oas = await this.getOas();
214651
- const baseURL$1 = await this.getBaseURL();
214392
+ const baseURL2 = await this.getBaseURL();
214652
214393
  if (bundle && !this.plugin.options.importPath) await this.addFile({
214653
214394
  baseName: "fetch.ts",
214654
214395
  path: path$2.resolve(root, ".kubb/fetch.ts"),
@@ -214673,9 +214414,9 @@ const pluginClient = definePlugin((options) => {
214673
214414
  imports: [],
214674
214415
  exports: []
214675
214416
  });
214676
- const files = await new OperationGenerator(baseURL$1 ? {
214417
+ const files = await new OperationGenerator(baseURL2 ? {
214677
214418
  ...this.plugin.options,
214678
- baseURL: baseURL$1
214419
+ baseURL: baseURL2
214679
214420
  } : this.plugin.options, {
214680
214421
  fabric: this.fabric,
214681
214422
  oas,
@@ -214871,17 +214612,17 @@ const pluginCypress = definePlugin((options) => {
214871
214612
  pathParamsType
214872
214613
  },
214873
214614
  pre: [pluginOasName, pluginTsName].filter(Boolean),
214874
- resolvePath(baseName, pathMode, options$1) {
214615
+ resolvePath(baseName, pathMode, options2) {
214875
214616
  var _a, _b;
214876
214617
  const root = path$2.resolve(this.config.root, this.config.output.path);
214877
214618
  if ((pathMode != null ? pathMode : getMode(path$2.resolve(root, output.path))) === "single")
214878
214619
  return path$2.resolve(root, output.path);
214879
- if (group && (((_a = options$1 == null ? void 0 : options$1.group) == null ? void 0 : _a.path) || ((_b = options$1 == null ? void 0 : options$1.group) == null ? void 0 : _b.tag))) {
214620
+ if (group && (((_a = options2 == null ? void 0 : options2.group) == null ? void 0 : _a.path) || ((_b = options2 == null ? void 0 : options2.group) == null ? void 0 : _b.tag))) {
214880
214621
  const groupName = (group == null ? void 0 : group.name) ? group.name : (ctx) => {
214881
214622
  if ((group == null ? void 0 : group.type) === "path") return `${ctx.group.split("/")[1]}`;
214882
214623
  return `${camelCase(ctx.group)}Requests`;
214883
214624
  };
214884
- return path$2.resolve(root, output.path, groupName({ group: group.type === "path" ? options$1.group.path : options$1.group.tag }), baseName);
214625
+ return path$2.resolve(root, output.path, groupName({ group: group.type === "path" ? options2.group.path : options2.group.tag }), baseName);
214885
214626
  }
214886
214627
  return path$2.resolve(root, output.path, baseName);
214887
214628
  },
@@ -215095,11 +214836,11 @@ const parse = createParser({
215095
214836
  var _a;
215096
214837
  const { current, schema } = tree;
215097
214838
  return `{${Object.entries(((_a = current.args) == null ? void 0 : _a.properties) || {}).filter((item) => {
215098
- const schema$1 = item[1];
215099
- return schema$1 && typeof schema$1.map === "function";
214839
+ const schema2 = item[1];
214840
+ return schema2 && typeof schema2.map === "function";
215100
214841
  }).map(([name, schemas]) => {
215101
214842
  var _a2, _b;
215102
- const mappedName = ((_a2 = schemas.find((schema$1) => schema$1.keyword === schemaKeywords.name)) == null ? void 0 : _a2.args) || name;
214843
+ const mappedName = ((_a2 = schemas.find((schema2) => schema2.keyword === schemaKeywords.name)) == null ? void 0 : _a2.args) || name;
215103
214844
  if (options.mapper && Object.hasOwn(options.mapper, mappedName)) return `"${name}": ${(_b = options.mapper) == null ? void 0 : _b[mappedName]}`;
215104
214845
  return `"${name}": ${joinItems(schemas.sort(schemaKeywordSorter).map((it) => this.parse({
215105
214846
  schema,
@@ -215288,7 +215029,7 @@ const fakerGenerator = createReactGenerator({
215288
215029
  schemas.request,
215289
215030
  schemas.response
215290
215031
  ].flat().filter(Boolean);
215291
- const mapOperationSchema = ({ name, schema, description, ...options$1 }) => {
215032
+ const mapOperationSchema = ({ name, schema, description, ...options2 }) => {
215292
215033
  const transformedSchema = isParameterSchema(name) && plugin.options.paramsCasing ? applyParamsCasing(schema, plugin.options.paramsCasing) : schema;
215293
215034
  const tree = schemaGenerator.parse({
215294
215035
  schema: transformedSchema,
@@ -215296,7 +215037,7 @@ const fakerGenerator = createReactGenerator({
215296
215037
  parentName: null
215297
215038
  });
215298
215039
  const imports = getImports(tree);
215299
- const group = options$1.operation ? getGroup(options$1.operation) : void 0;
215040
+ const group = options2.operation ? getGroup(options2.operation) : void 0;
215300
215041
  const faker = {
215301
215042
  name: schemaManager.getName(name, { type: "function" }),
215302
215043
  file: schemaManager.getFile(name)
@@ -215306,7 +215047,7 @@ const fakerGenerator = createReactGenerator({
215306
215047
  type: "type",
215307
215048
  pluginKey: [pluginTsName]
215308
215049
  }),
215309
- file: schemaManager.getFile(options$1.operationName || name, {
215050
+ file: schemaManager.getFile(options2.operationName || name, {
215310
215051
  pluginKey: [pluginTsName],
215311
215052
  group
215312
215053
  })
@@ -215451,12 +215192,12 @@ const pluginFaker = definePlugin((options) => {
215451
215192
  const { output = {
215452
215193
  path: "mocks",
215453
215194
  barrelType: "named"
215454
- }, seed, group, exclude = [], include, override = [], transformers: transformers$1 = {}, mapper = {}, unknownType = "any", emptySchemaType = unknownType, dateType = "string", dateParser = "faker", generators = [fakerGenerator].filter(Boolean), regexGenerator = "faker", paramsCasing, contentType } = options;
215195
+ }, seed, group, exclude = [], include, override = [], transformers = {}, mapper = {}, unknownType = "any", emptySchemaType = unknownType, dateType = "string", dateParser = "faker", generators = [fakerGenerator].filter(Boolean), regexGenerator = "faker", paramsCasing, contentType } = options;
215455
215196
  return {
215456
215197
  name: pluginFakerName,
215457
215198
  options: {
215458
215199
  output,
215459
- transformers: transformers$1,
215200
+ transformers,
215460
215201
  seed,
215461
215202
  dateType,
215462
215203
  unknownType,
@@ -215470,17 +215211,17 @@ const pluginFaker = definePlugin((options) => {
215470
215211
  usedEnumNames: {}
215471
215212
  },
215472
215213
  pre: [pluginOasName, pluginTsName],
215473
- resolvePath(baseName, pathMode, options$1) {
215214
+ resolvePath(baseName, pathMode, options2) {
215474
215215
  var _a, _b;
215475
215216
  const root = path$2.resolve(this.config.root, this.config.output.path);
215476
215217
  if ((pathMode != null ? pathMode : getMode(path$2.resolve(root, output.path))) === "single")
215477
215218
  return path$2.resolve(root, output.path);
215478
- if (group && (((_a = options$1 == null ? void 0 : options$1.group) == null ? void 0 : _a.path) || ((_b = options$1 == null ? void 0 : options$1.group) == null ? void 0 : _b.tag))) {
215219
+ if (group && (((_a = options2 == null ? void 0 : options2.group) == null ? void 0 : _a.path) || ((_b = options2 == null ? void 0 : options2.group) == null ? void 0 : _b.tag))) {
215479
215220
  const groupName = (group == null ? void 0 : group.name) ? group.name : (ctx) => {
215480
215221
  if ((group == null ? void 0 : group.type) === "path") return `${ctx.group.split("/")[1]}`;
215481
215222
  return `${camelCase(ctx.group)}Controller`;
215482
215223
  };
215483
- return path$2.resolve(root, output.path, groupName({ group: group.type === "path" ? options$1.group.path : options$1.group.tag }), baseName);
215224
+ return path$2.resolve(root, output.path, groupName({ group: group.type === "path" ? options2.group.path : options2.group.tag }), baseName);
215484
215225
  }
215485
215226
  return path$2.resolve(root, output.path, baseName);
215486
215227
  },
@@ -215490,7 +215231,7 @@ const pluginFaker = definePlugin((options) => {
215490
215231
  prefix: type ? "create" : void 0,
215491
215232
  isFile: type === "file"
215492
215233
  });
215493
- if (type) return ((_a = transformers$1 == null ? void 0 : transformers$1.name) == null ? void 0 : _a.call(transformers$1, resolvedName, type)) || resolvedName;
215234
+ if (type) return ((_a = transformers == null ? void 0 : transformers.name) == null ? void 0 : _a.call(transformers, resolvedName, type)) || resolvedName;
215494
215235
  return resolvedName;
215495
215236
  },
215496
215237
  async install() {
@@ -215903,17 +215644,17 @@ const pluginMcp = definePlugin((options) => {
215903
215644
  pluginTsName,
215904
215645
  pluginZodName
215905
215646
  ].filter(Boolean),
215906
- resolvePath(baseName, pathMode, options$1) {
215647
+ resolvePath(baseName, pathMode, options2) {
215907
215648
  var _a2, _b2;
215908
215649
  const root = path$2.resolve(this.config.root, this.config.output.path);
215909
215650
  if ((pathMode != null ? pathMode : getMode(path$2.resolve(root, output.path))) === "single")
215910
215651
  return path$2.resolve(root, output.path);
215911
- if (group && (((_a2 = options$1 == null ? void 0 : options$1.group) == null ? void 0 : _a2.path) || ((_b2 = options$1 == null ? void 0 : options$1.group) == null ? void 0 : _b2.tag))) {
215652
+ if (group && (((_a2 = options2 == null ? void 0 : options2.group) == null ? void 0 : _a2.path) || ((_b2 = options2 == null ? void 0 : options2.group) == null ? void 0 : _b2.tag))) {
215912
215653
  const groupName = (group == null ? void 0 : group.name) ? group.name : (ctx) => {
215913
215654
  if ((group == null ? void 0 : group.type) === "path") return `${ctx.group.split("/")[1]}`;
215914
215655
  return `${camelCase(ctx.group)}Requests`;
215915
215656
  };
215916
- return path$2.resolve(root, output.path, groupName({ group: group.type === "path" ? options$1.group.path : options$1.group.tag }), baseName);
215657
+ return path$2.resolve(root, output.path, groupName({ group: group.type === "path" ? options2.group.path : options2.group.tag }), baseName);
215917
215658
  }
215918
215659
  return path$2.resolve(root, output.path, baseName);
215919
215660
  },
@@ -216255,17 +215996,17 @@ const pluginMsw = definePlugin((options) => {
216255
215996
  pluginTsName,
216256
215997
  parser === "faker" ? pluginFakerName : void 0
216257
215998
  ].filter(Boolean),
216258
- resolvePath(baseName, pathMode, options$1) {
215999
+ resolvePath(baseName, pathMode, options2) {
216259
216000
  var _a, _b;
216260
216001
  const root = path$2.resolve(this.config.root, this.config.output.path);
216261
216002
  if ((pathMode != null ? pathMode : getMode(path$2.resolve(root, output.path))) === "single")
216262
216003
  return path$2.resolve(root, output.path);
216263
- if (group && (((_a = options$1 == null ? void 0 : options$1.group) == null ? void 0 : _a.path) || ((_b = options$1 == null ? void 0 : options$1.group) == null ? void 0 : _b.tag))) {
216004
+ if (group && (((_a = options2 == null ? void 0 : options2.group) == null ? void 0 : _a.path) || ((_b = options2 == null ? void 0 : options2.group) == null ? void 0 : _b.tag))) {
216264
216005
  const groupName = (group == null ? void 0 : group.name) ? group.name : (ctx) => {
216265
216006
  if ((group == null ? void 0 : group.type) === "path") return `${ctx.group.split("/")[1]}`;
216266
216007
  return `${camelCase(ctx.group)}Controller`;
216267
216008
  };
216268
- return path$2.resolve(root, output.path, groupName({ group: group.type === "path" ? options$1.group.path : options$1.group.tag }), baseName);
216009
+ return path$2.resolve(root, output.path, groupName({ group: group.type === "path" ? options2.group.path : options2.group.tag }), baseName);
216269
216010
  }
216270
216011
  return path$2.resolve(root, output.path, baseName);
216271
216012
  },
@@ -217644,8 +217385,8 @@ const customHookOptionsFileGenerator = createReactGenerator({
217644
217385
  const { importPath, name } = options.customOptions;
217645
217386
  const root = path$2.resolve(config.root, config.output.path);
217646
217387
  const reactQueryImportPath = options.query ? options.query.importPath : "@tanstack/react-query";
217647
- const getHookFilePath = (operations$1) => {
217648
- const firstOperation = operations$1[0];
217388
+ const getHookFilePath = (operations2) => {
217389
+ const firstOperation = operations2[0];
217649
217390
  if (firstOperation != null) return getFile(firstOperation, { prefix: "use" }).path;
217650
217391
  return pluginManager.getFile({
217651
217392
  name: "index",
@@ -217666,7 +217407,7 @@ const customHookOptionsFileGenerator = createReactGenerator({
217666
217407
  };
217667
217408
  };
217668
217409
  const file = getExternalFile(importPath, path$2.dirname(getHookFilePath(operations)));
217669
- if (fs$2.existsSync(file.path) && !override) return null;
217410
+ if (fs$1.existsSync(file.path) && !override) return null;
217670
217411
  return /* @__PURE__ */ jsxs(File, {
217671
217412
  baseName: file.baseName,
217672
217413
  path: file.path,
@@ -219110,17 +218851,17 @@ const pluginReactQuery = definePlugin((options) => {
219110
218851
  pluginTsName,
219111
218852
  parser === "zod" ? pluginZodName : void 0
219112
218853
  ].filter(Boolean),
219113
- resolvePath(baseName, pathMode, options$1) {
218854
+ resolvePath(baseName, pathMode, options2) {
219114
218855
  var _a2, _b2;
219115
218856
  const root = path$2.resolve(this.config.root, this.config.output.path);
219116
218857
  if ((pathMode != null ? pathMode : getMode(path$2.resolve(root, output.path))) === "single")
219117
218858
  return path$2.resolve(root, output.path);
219118
- if (group && (((_a2 = options$1 == null ? void 0 : options$1.group) == null ? void 0 : _a2.path) || ((_b2 = options$1 == null ? void 0 : options$1.group) == null ? void 0 : _b2.tag))) {
218859
+ if (group && (((_a2 = options2 == null ? void 0 : options2.group) == null ? void 0 : _a2.path) || ((_b2 = options2 == null ? void 0 : options2.group) == null ? void 0 : _b2.tag))) {
219119
218860
  const groupName = (group == null ? void 0 : group.name) ? group.name : (ctx) => {
219120
218861
  if ((group == null ? void 0 : group.type) === "path") return `${ctx.group.split("/")[1]}`;
219121
218862
  return `${camelCase(ctx.group)}Controller`;
219122
218863
  };
219123
- return path$2.resolve(root, output.path, groupName({ group: group.type === "path" ? options$1.group.path : options$1.group.tag }), baseName);
218864
+ return path$2.resolve(root, output.path, groupName({ group: group.type === "path" ? options2.group.path : options2.group.tag }), baseName);
219124
218865
  }
219125
218866
  return path$2.resolve(root, output.path, baseName);
219126
218867
  },
@@ -219192,7 +218933,7 @@ const __filename$1 = fileURLToPath(globalThis._importMeta_.url);
219192
218933
  const __dirname$1 = path$2.dirname(__filename$1);
219193
218934
  async function getPageHTML(api, { title, disableGoogleFont, templateOptions } = {}) {
219194
218935
  const templateFileName = path$2.join(__dirname$1, "../static/redoc.hbs");
219195
- return pkg.compile(fs$2.readFileSync(templateFileName).toString())({
218936
+ return pkg$1.compile(fs$1.readFileSync(templateFileName).toString())({
219196
218937
  title: title || api.info.title || "ReDoc documentation",
219197
218938
  redocHTML: `
219198
218939
  <script src="https://cdn.redoc.ly/redoc/latest/bundles/redoc.standalone.js"> <\/script>
@@ -220176,17 +219917,17 @@ const pluginSolidQuery = definePlugin((options) => {
220176
219917
  pluginTsName,
220177
219918
  parser === "zod" ? pluginZodName : void 0
220178
219919
  ].filter(Boolean),
220179
- resolvePath(baseName, pathMode, options$1) {
219920
+ resolvePath(baseName, pathMode, options2) {
220180
219921
  var _a2, _b2;
220181
219922
  const root = path$2.resolve(this.config.root, this.config.output.path);
220182
219923
  if ((pathMode != null ? pathMode : getMode(path$2.resolve(root, output.path))) === "single")
220183
219924
  return path$2.resolve(root, output.path);
220184
- if (group && (((_a2 = options$1 == null ? void 0 : options$1.group) == null ? void 0 : _a2.path) || ((_b2 = options$1 == null ? void 0 : options$1.group) == null ? void 0 : _b2.tag))) {
219925
+ if (group && (((_a2 = options2 == null ? void 0 : options2.group) == null ? void 0 : _a2.path) || ((_b2 = options2 == null ? void 0 : options2.group) == null ? void 0 : _b2.tag))) {
220185
219926
  const groupName = (group == null ? void 0 : group.name) ? group.name : (ctx) => {
220186
219927
  if ((group == null ? void 0 : group.type) === "path") return `${ctx.group.split("/")[1]}`;
220187
219928
  return `${camelCase(ctx.group)}Controller`;
220188
219929
  };
220189
- return path$2.resolve(root, output.path, groupName({ group: group.type === "path" ? options$1.group.path : options$1.group.tag }), baseName);
219930
+ return path$2.resolve(root, output.path, groupName({ group: group.type === "path" ? options2.group.path : options2.group.tag }), baseName);
220190
219931
  }
220191
219932
  return path$2.resolve(root, output.path, baseName);
220192
219933
  },
@@ -221189,17 +220930,17 @@ const pluginSvelteQuery = definePlugin((options) => {
221189
220930
  pluginTsName,
221190
220931
  parser === "zod" ? pluginZodName : void 0
221191
220932
  ].filter(Boolean),
221192
- resolvePath(baseName, pathMode, options$1) {
220933
+ resolvePath(baseName, pathMode, options2) {
221193
220934
  var _a2, _b2;
221194
220935
  const root = path$2.resolve(this.config.root, this.config.output.path);
221195
220936
  if ((pathMode != null ? pathMode : getMode(path$2.resolve(root, output.path))) === "single")
221196
220937
  return path$2.resolve(root, output.path);
221197
- if (group && (((_a2 = options$1 == null ? void 0 : options$1.group) == null ? void 0 : _a2.path) || ((_b2 = options$1 == null ? void 0 : options$1.group) == null ? void 0 : _b2.tag))) {
220938
+ if (group && (((_a2 = options2 == null ? void 0 : options2.group) == null ? void 0 : _a2.path) || ((_b2 = options2 == null ? void 0 : options2.group) == null ? void 0 : _b2.tag))) {
221198
220939
  const groupName = (group == null ? void 0 : group.name) ? group.name : (ctx) => {
221199
220940
  if ((group == null ? void 0 : group.type) === "path") return `${ctx.group.split("/")[1]}`;
221200
220941
  return `${camelCase(ctx.group)}Controller`;
221201
220942
  };
221202
- return path$2.resolve(root, output.path, groupName({ group: group.type === "path" ? options$1.group.path : options$1.group.tag }), baseName);
220943
+ return path$2.resolve(root, output.path, groupName({ group: group.type === "path" ? options2.group.path : options2.group.tag }), baseName);
221203
220944
  }
221204
220945
  return path$2.resolve(root, output.path, baseName);
221205
220946
  },
@@ -221415,13 +221156,13 @@ function Mutation$1({ name, clientName, mutationKeyName, mutationKeyTypeName, pa
221415
221156
  return acc;
221416
221157
  }, {})
221417
221158
  } });
221418
- const params$1 = getTriggerParams({
221159
+ const params2 = getTriggerParams({
221419
221160
  dataReturnType,
221420
221161
  typeSchemas,
221421
221162
  mutationKeyTypeName,
221422
221163
  mutationArgTypeName
221423
221164
  });
221424
- const generics$1 = [
221165
+ const generics2 = [
221425
221166
  TData,
221426
221167
  TError,
221427
221168
  `${mutationKeyTypeName} | null`,
@@ -221445,13 +221186,13 @@ function Mutation$1({ name, clientName, mutationKeyName, mutationKeyTypeName, pa
221445
221186
  children: /* @__PURE__ */ jsx(Function$1, {
221446
221187
  name,
221447
221188
  export: true,
221448
- params: params$1.toConstructor(),
221189
+ params: params2.toConstructor(),
221449
221190
  JSDoc: { comments: getComments(operation) },
221450
221191
  children: `
221451
221192
  const { mutation: mutationOptions, client: config = {}, shouldFetch = true } = options ?? {}
221452
221193
  const mutationKey = ${mutationKeyName}(${mutationKeyParams.toCall()})
221453
221194
 
221454
- return useSWRMutation<${generics$1.join(", ")}>(
221195
+ return useSWRMutation<${generics2.join(", ")}>(
221455
221196
  shouldFetch ? mutationKey : null,
221456
221197
  async (_url${hasMutationParams ? `, { arg: ${argParams.toCall()} }` : ""}) => {
221457
221198
  return ${clientName}(${clientParams.toCall()})
@@ -222224,17 +221965,17 @@ const pluginSwr = definePlugin((options) => {
222224
221965
  pluginTsName,
222225
221966
  parser === "zod" ? pluginZodName : void 0
222226
221967
  ].filter(Boolean),
222227
- resolvePath(baseName, pathMode, options$1) {
221968
+ resolvePath(baseName, pathMode, options2) {
222228
221969
  var _a2, _b2;
222229
221970
  const root = path$2.resolve(this.config.root, this.config.output.path);
222230
221971
  if ((pathMode != null ? pathMode : getMode(path$2.resolve(root, output.path))) === "single")
222231
221972
  return path$2.resolve(root, output.path);
222232
- if (group && (((_a2 = options$1 == null ? void 0 : options$1.group) == null ? void 0 : _a2.path) || ((_b2 = options$1 == null ? void 0 : options$1.group) == null ? void 0 : _b2.tag))) {
221973
+ if (group && (((_a2 = options2 == null ? void 0 : options2.group) == null ? void 0 : _a2.path) || ((_b2 = options2 == null ? void 0 : options2.group) == null ? void 0 : _b2.tag))) {
222233
221974
  const groupName = (group == null ? void 0 : group.name) ? group.name : (ctx) => {
222234
221975
  if ((group == null ? void 0 : group.type) === "path") return `${ctx.group.split("/")[1]}`;
222235
221976
  return `${camelCase(ctx.group)}Controller`;
222236
221977
  };
222237
- return path$2.resolve(root, output.path, groupName({ group: group.type === "path" ? options$1.group.path : options$1.group.tag }), baseName);
221978
+ return path$2.resolve(root, output.path, groupName({ group: group.type === "path" ? options2.group.path : options2.group.tag }), baseName);
222238
221979
  }
222239
221980
  return path$2.resolve(root, output.path, baseName);
222240
221981
  },
@@ -222499,8 +222240,8 @@ function QueryOptions({ name, clientName, dataReturnType, typeSchemas, paramsCas
222499
222240
  if (!config.signal) {
222500
222241
  config.signal = signal
222501
222242
  }
222502
- return ${clientName}(${clientParams.toCall({ transformName(name$1) {
222503
- return `toValue(${name$1})`;
222243
+ return ${clientName}(${clientParams.toCall({ transformName(name2) {
222244
+ return `toValue(${name2})`;
222504
222245
  } })})
222505
222246
  },
222506
222247
  })
@@ -222813,8 +222554,8 @@ function InfiniteQueryOptions({ name, clientName, initialPageParam, cursorParam,
222813
222554
  config.signal = signal
222814
222555
  }
222815
222556
  ${infiniteOverrideParams}
222816
- return ${clientName}(${clientParams.toCall({ transformName(name$1) {
222817
- return `toValue(${name$1})`;
222557
+ return ${clientName}(${clientParams.toCall({ transformName(name2) {
222558
+ return `toValue(${name2})`;
222818
222559
  } })})
222819
222560
  },
222820
222561
  ${queryOptions.join(",\n")}
@@ -223848,17 +223589,17 @@ const pluginVueQuery = definePlugin((options) => {
223848
223589
  pluginTsName,
223849
223590
  parser === "zod" ? pluginZodName : void 0
223850
223591
  ].filter(Boolean),
223851
- resolvePath(baseName, pathMode, options$1) {
223592
+ resolvePath(baseName, pathMode, options2) {
223852
223593
  var _a2, _b2;
223853
223594
  const root = path$2.resolve(this.config.root, this.config.output.path);
223854
223595
  if ((pathMode != null ? pathMode : getMode(path$2.resolve(root, output.path))) === "single")
223855
223596
  return path$2.resolve(root, output.path);
223856
- if (group && (((_a2 = options$1 == null ? void 0 : options$1.group) == null ? void 0 : _a2.path) || ((_b2 = options$1 == null ? void 0 : options$1.group) == null ? void 0 : _b2.tag))) {
223597
+ if (group && (((_a2 = options2 == null ? void 0 : options2.group) == null ? void 0 : _a2.path) || ((_b2 = options2 == null ? void 0 : options2.group) == null ? void 0 : _b2.tag))) {
223857
223598
  const groupName = (group == null ? void 0 : group.name) ? group.name : (ctx) => {
223858
223599
  if ((group == null ? void 0 : group.type) === "path") return `${ctx.group.split("/")[1]}`;
223859
223600
  return `${camelCase(ctx.group)}Controller`;
223860
223601
  };
223861
- return path$2.resolve(root, output.path, groupName({ group: group.type === "path" ? options$1.group.path : options$1.group.tag }), baseName);
223602
+ return path$2.resolve(root, output.path, groupName({ group: group.type === "path" ? options2.group.path : options2.group.tag }), baseName);
223862
223603
  }
223863
223604
  return path$2.resolve(root, output.path, baseName);
223864
223605
  },
@@ -224097,7 +223838,7 @@ function setupEventsStream(ws, events) {
224097
223838
  });
224098
223839
  }
224099
223840
 
224100
- var version = "4.28.0";
223841
+ var version = "4.29.0";
224101
223842
 
224102
223843
  const _zcw7I4pYH8OiCfaDcjy_x7I6IH1tLDQR3W_yRZgP6E = defineNitroPlugin(async (nitro) => {
224103
223844
  const studioUrl = process$1.env.KUBB_STUDIO_URL || "https://studio.kubb.dev";
@@ -224134,12 +223875,11 @@ const _zcw7I4pYH8OiCfaDcjy_x7I6IH1tLDQR3W_yRZgP6E = defineNitroPlugin(async (nit
224134
223875
  return;
224135
223876
  }
224136
223877
  try {
224137
- const result = await execa(command, args, {
224138
- cwd: root,
224139
- detached: true,
224140
- stripFinalNewline: true
223878
+ const result = await x(command, [...args != null ? args : []], {
223879
+ nodeOptions: { cwd: root, detached: true },
223880
+ throwOnError: true
224141
223881
  });
224142
- console.log(result.stdout);
223882
+ console.log(result.stdout.trimEnd());
224143
223883
  await events.emit("hook:end", {
224144
223884
  command,
224145
223885
  args,