@kubb/agent 4.28.1 → 4.29.1

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 +416 -682
  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
- import { createHash, randomBytes } from 'node:crypto';
12
+ import { createHash } 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";
@@ -6027,15 +5903,12 @@ function isSessionValid(session) {
6027
5903
  }
6028
5904
  }
6029
5905
 
6030
- function generateToken() {
6031
- return randomBytes(32).toString("hex");
6032
- }
6033
- function generateSecureToken(id = generateToken()) {
6034
- return createHash("sha256").update(id).digest("hex");
5906
+ function hashToken(input) {
5907
+ return createHash("sha256").update(input).digest("hex");
6035
5908
  }
6036
5909
  function generateMachineToken() {
6037
- if (process.env.KUBB_AGENT_SECRET) {
6038
- return generateSecureToken(process.env.KUBB_AGENT_SECRET);
5910
+ if (process.env.KUBB_STUDIO_SECRET) {
5911
+ return hashToken(process.env.KUBB_STUDIO_SECRET);
6039
5912
  }
6040
5913
  const interfaces = os$1.networkInterfaces();
6041
5914
  const macs = [];
@@ -6046,9 +5919,7 @@ function generateMachineToken() {
6046
5919
  }
6047
5920
  }
6048
5921
  }
6049
- const hostname = os$1.hostname();
6050
- const rawId = macs.join(",") + hostname;
6051
- return generateSecureToken(rawId);
5922
+ return hashToken(macs.join(",") + os$1.hostname());
6052
5923
  }
6053
5924
 
6054
5925
  async function createAgentSession({ token, studioUrl, noCache }) {
@@ -6156,7 +6027,7 @@ var BaseGenerator = (_a$3 = class {
6156
6027
  function isInputPath(config) {
6157
6028
  return typeof (config == null ? void 0 : config.input) === "object" && config.input !== null && "path" in config.input;
6158
6029
  }
6159
- var version$1 = "4.28.1";
6030
+ var version$1 = "4.29.1";
6160
6031
  function getDiagnosticInfo() {
6161
6032
  return {
6162
6033
  nodeVersion: version$2,
@@ -6393,172 +6264,8 @@ async function safeBuild(options, overrides) {
6393
6264
  };
6394
6265
  }
6395
6266
  }
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];
6267
+ function definePlugin(build2) {
6268
+ return (options) => build2(options != null ? options : {});
6562
6269
  }
6563
6270
  var PackageManager = (_b$1 = class {
6564
6271
  constructor(workspace) {
@@ -6579,15 +6286,15 @@ var PackageManager = (_b$1 = class {
6579
6286
  if (lastChar && !__privateGet$2(this, _SLASHES).has(lastChar)) return `${directory}/`;
6580
6287
  return directory;
6581
6288
  }
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);
6289
+ getLocation(path) {
6290
+ let location = path;
6291
+ if (__privateGet$2(this, _cwd)) location = mod.createRequire(this.normalizeDirectory(__privateGet$2(this, _cwd))).resolve(path);
6585
6292
  return location;
6586
6293
  }
6587
- async import(path$1) {
6294
+ async import(path) {
6588
6295
  var _a2;
6589
6296
  try {
6590
- let location = this.getLocation(path$1);
6297
+ let location = this.getLocation(path);
6591
6298
  if (os$1.platform() === "win32") location = pathToFileURL(location).href;
6592
6299
  const module = await import(location);
6593
6300
  return (_a2 = module == null ? void 0 : module.default) != null ? _a2 : module;
@@ -6597,19 +6304,19 @@ var PackageManager = (_b$1 = class {
6597
6304
  }
6598
6305
  }
6599
6306
  async getPackageJSON() {
6600
- const pkgPath = await findUp(["package.json"], { cwd: __privateGet$2(this, _cwd) });
6307
+ const pkgPath = pkg.up({ cwd: __privateGet$2(this, _cwd) });
6601
6308
  if (!pkgPath) return;
6602
6309
  const json = await read(pkgPath);
6603
6310
  return JSON.parse(json);
6604
6311
  }
6605
6312
  getPackageJSONSync() {
6606
- const pkgPath = findUpSync(["package.json"], { cwd: __privateGet$2(this, _cwd) });
6313
+ const pkgPath = pkg.up({ cwd: __privateGet$2(this, _cwd) });
6607
6314
  if (!pkgPath) return;
6608
6315
  const json = readSync(pkgPath);
6609
6316
  return JSON.parse(json);
6610
6317
  }
6611
- static setVersion(dependency, version$2) {
6612
- __privateGet$2(_b$1, _cache)[dependency] = version$2;
6318
+ static setVersion(dependency, version2) {
6319
+ __privateGet$2(_b$1, _cache)[dependency] = version2;
6613
6320
  }
6614
6321
  async getVersion(dependency) {
6615
6322
  if (typeof dependency === "string" && __privateGet$2(_b$1, _cache)[dependency]) return __privateGet$2(_b$1, _cache)[dependency];
@@ -6623,21 +6330,21 @@ var PackageManager = (_b$1 = class {
6623
6330
  if (!packageJSON) return;
6624
6331
  return __privateMethod$3(this, _PackageManager_instances, match_fn).call(this, packageJSON, dependency);
6625
6332
  }
6626
- async isValid(dependency, version$2) {
6333
+ async isValid(dependency, version2) {
6627
6334
  const packageVersion = await this.getVersion(dependency);
6628
6335
  if (!packageVersion) return false;
6629
- if (packageVersion === version$2) return true;
6336
+ if (packageVersion === version2) return true;
6630
6337
  const semVer = coerce(packageVersion);
6631
6338
  if (!semVer) return false;
6632
- return satisfies(semVer, version$2);
6339
+ return satisfies(semVer, version2);
6633
6340
  }
6634
- isValidSync(dependency, version$2) {
6341
+ isValidSync(dependency, version2) {
6635
6342
  const packageVersion = this.getVersionSync(dependency);
6636
6343
  if (!packageVersion) return false;
6637
- if (packageVersion === version$2) return true;
6344
+ if (packageVersion === version2) return true;
6638
6345
  const semVer = coerce(packageVersion);
6639
6346
  if (!semVer) return false;
6640
- return satisfies(semVer, version$2);
6347
+ return satisfies(semVer, version2);
6641
6348
  }
6642
6349
  }, _cache = new WeakMap(), _cwd = new WeakMap(), _SLASHES = new WeakMap(), _PackageManager_instances = new WeakSet(), match_fn = function(packageJSON, dependency) {
6643
6350
  const dependencies = {
@@ -6652,7 +6359,7 @@ var PackageManager = (_b$1 = class {
6652
6359
  async function executeHooks({ hooks, events }) {
6653
6360
  const commands = Array.isArray(hooks.done) ? hooks.done : [hooks.done].filter(Boolean);
6654
6361
  for (const command of commands) {
6655
- const [cmd, ...args] = [...parseArgsStringToArgv(command)];
6362
+ const [cmd, ...args] = tokenize(command);
6656
6363
  if (!cmd) {
6657
6364
  continue;
6658
6365
  }
@@ -6740,7 +6447,7 @@ async function generate({ config, events }) {
6740
6447
  await events.emit("warn", "No linter found (biome, oxlint, or eslint). Skipping linting.");
6741
6448
  } else {
6742
6449
  linter = detectedLinter;
6743
- await events.emit("info", `Auto-detected linter: ${pc.dim(linter)}`);
6450
+ await events.emit("info", `Auto-detected linter: ${styleText("dim", linter)}`);
6744
6451
  }
6745
6452
  }
6746
6453
  if (linter && linter !== "auto" && linter in linters) {
@@ -6857,6 +6564,27 @@ function isKeyword(meta, keyword) {
6857
6564
  return meta.keyword === keyword;
6858
6565
  }
6859
6566
 
6567
+ var transformers_default = {
6568
+ combineCodes,
6569
+ escape,
6570
+ jsStringEscape,
6571
+ createIndent,
6572
+ transformReservedWord,
6573
+ isValidVarName,
6574
+ nameSorter,
6575
+ searchAndReplace,
6576
+ stringify,
6577
+ stringifyObject,
6578
+ toRegExpString,
6579
+ trim,
6580
+ trimQuotes,
6581
+ JSDoc: { createJSDocBlockText },
6582
+ camelCase,
6583
+ pascalCase,
6584
+ snakeCase,
6585
+ screamingSnakeCase
6586
+ };
6587
+
6860
6588
  var __create = Object.create;
6861
6589
  var __defProp$7 = Object.defineProperty;
6862
6590
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -6865,7 +6593,7 @@ var __getProtoOf = Object.getPrototypeOf;
6865
6593
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6866
6594
  var __esmMin = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
6867
6595
  var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
6868
- var __exportAll = (all, symbols) => {
6596
+ var __exportAll = (all, no_symbols) => {
6869
6597
  let target = {};
6870
6598
  for (var name in all) {
6871
6599
  __defProp$7(target, name, {
@@ -6873,6 +6601,9 @@ var __exportAll = (all, symbols) => {
6873
6601
  enumerable: true
6874
6602
  });
6875
6603
  }
6604
+ {
6605
+ __defProp$7(target, Symbol.toStringTag, { value: "Module" });
6606
+ }
6876
6607
  return target;
6877
6608
  };
6878
6609
  var __copyProps = (to, from, except, desc) => {
@@ -7274,9 +7005,9 @@ function __asyncValues(o) {
7274
7005
  };
7275
7006
  }
7276
7007
  function settle(resolve, reject, d, v) {
7277
- Promise.resolve(v).then(function(v$1) {
7008
+ Promise.resolve(v).then(function(v2) {
7278
7009
  resolve({
7279
- value: v$1,
7010
+ value: v2,
7280
7011
  done: d
7281
7012
  });
7282
7013
  }, reject);
@@ -7369,24 +7100,24 @@ function __disposeResources(env) {
7369
7100
  }
7370
7101
  return next();
7371
7102
  }
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) {
7103
+ function __rewriteRelativeImportExtension(path2, preserveJsx) {
7104
+ if (typeof path2 === "string" && /^\.\.?\//.test(path2)) return path2.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function(m, tsx, d, ext, cm) {
7374
7105
  return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : d + ext + "." + cm.toLowerCase() + "js";
7375
7106
  });
7376
- return path$1;
7107
+ return path2;
7377
7108
  }
7378
7109
  var extendStatics, __assign, __createBinding, __setModuleDefault, ownKeys, _SuppressedError, tslib_es6_default;
7379
7110
  var init_tslib_es6 = __esmMin((() => {
7380
7111
  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];
7112
+ extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
7113
+ d2.__proto__ = b2;
7114
+ } || function(d2, b2) {
7115
+ for (var p in b2) if (Object.prototype.hasOwnProperty.call(b2, p)) d2[p] = b2[p];
7385
7116
  };
7386
7117
  return extendStatics(d, b);
7387
7118
  };
7388
7119
  __assign = function() {
7389
- __assign = Object.assign || function __assign$1(t) {
7120
+ __assign = Object.assign || function __assign2(t) {
7390
7121
  for (var s, i = 1, n = arguments.length; i < n; i++) {
7391
7122
  s = arguments[i];
7392
7123
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
@@ -7418,9 +7149,9 @@ var init_tslib_es6 = __esmMin((() => {
7418
7149
  o["default"] = v;
7419
7150
  };
7420
7151
  ownKeys = function(o) {
7421
- ownKeys = Object.getOwnPropertyNames || function(o$1) {
7152
+ ownKeys = Object.getOwnPropertyNames || function(o2) {
7422
7153
  var ar = [];
7423
- for (var k in o$1) if (Object.prototype.hasOwnProperty.call(o$1, k)) ar[ar.length] = k;
7154
+ for (var k in o2) if (Object.prototype.hasOwnProperty.call(o2, k)) ar[ar.length] = k;
7424
7155
  return ar;
7425
7156
  };
7426
7157
  return ownKeys(o);
@@ -8029,7 +7760,7 @@ var require_int = /* @__PURE__ */ __commonJSMin(((exports$1, module) => {
8029
7760
  var require_float = /* @__PURE__ */ __commonJSMin(((exports$1, module) => {
8030
7761
  const common = require_common();
8031
7762
  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))$");
7763
+ 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
7764
  function resolveYamlFloat(data) {
8034
7765
  if (null === data) return false;
8035
7766
  if (!YAML_FLOAT_PATTERN.test(data)) return false;
@@ -8115,7 +7846,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((exports$1, module) => {
8115
7846
  }));
8116
7847
  var require_timestamp = /* @__PURE__ */ __commonJSMin(((exports$1, module) => {
8117
7848
  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]))?))?)?$");
7849
+ 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
7850
  function resolveYamlTimestamp(data) {
8120
7851
  if (null === data) return false;
8121
7852
  if (null === YAML_TIMESTAMP_REGEXP.exec(data)) return false;
@@ -8420,6 +8151,7 @@ var require_regexp = /* @__PURE__ */ __commonJSMin(((exports$1, module) => {
8420
8151
  regexp = regexp.slice(1, regexp.length - modifiers.length - 1);
8421
8152
  }
8422
8153
  try {
8154
+ new RegExp(regexp, modifiers);
8423
8155
  return true;
8424
8156
  } catch (error) {
8425
8157
  return false;
@@ -9729,8 +9461,8 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports$1) => {
9729
9461
  var indent = state.indent * Math.max(1, level);
9730
9462
  var lineWidth = state.lineWidth === -1 ? -1 : Math.max(Math.min(state.lineWidth, 40), state.lineWidth - indent);
9731
9463
  var singleLineOnly = iskey || state.flowLevel > -1 && level >= state.flowLevel;
9732
- function testAmbiguity(string$1) {
9733
- return testImplicitResolving(state, string$1);
9464
+ function testAmbiguity(string2) {
9465
+ return testImplicitResolving(state, string2);
9734
9466
  }
9735
9467
  switch (chooseScalarStyle(string, singleLineOnly, state.indent, lineWidth, testAmbiguity)) {
9736
9468
  case STYLE_PLAIN:
@@ -10194,29 +9926,29 @@ var require_buildJsonPath = /* @__PURE__ */ __commonJSMin(((exports$1) => {
10194
9926
  const types_1 = require_types();
10195
9927
  const utils_1 = require_utils();
10196
9928
  function buildJsonPath(node) {
10197
- const path$1 = [];
9929
+ const path2 = [];
10198
9930
  let prevNode = node;
10199
9931
  while (node) {
10200
9932
  switch (node.kind) {
10201
9933
  case types_1.Kind.SCALAR:
10202
- path$1.unshift(node.value);
9934
+ path2.unshift(node.value);
10203
9935
  break;
10204
9936
  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);
9937
+ if (prevNode !== node.key) if (path2.length > 0 && utils_1.isObject(node.value) && node.value.value === path2[0]) path2[0] = node.key.value;
9938
+ else path2.unshift(node.key.value);
10207
9939
  break;
10208
9940
  case types_1.Kind.SEQ:
10209
9941
  if (prevNode) {
10210
9942
  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);
9943
+ if (prevNode.kind === types_1.Kind.SCALAR) path2[0] = index;
9944
+ else if (index !== -1) path2.unshift(index);
10213
9945
  }
10214
9946
  break;
10215
9947
  }
10216
9948
  prevNode = node;
10217
9949
  node = node.parent;
10218
9950
  }
10219
- return path$1;
9951
+ return path2;
10220
9952
  }
10221
9953
  exports$1.buildJsonPath = buildJsonPath;
10222
9954
  }));
@@ -10260,9 +9992,9 @@ var require_getJsonPathForPosition = /* @__PURE__ */ __commonJSMin(((exports$1)
10260
9992
  const startOffset = line === 0 ? 0 : lineMap[line - 1] + 1;
10261
9993
  const node = findClosestScalar(ast, Math.min(lineMap[line] - 1, startOffset + character), line, lineMap);
10262
9994
  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;
9995
+ const path2 = buildJsonPath_1.buildJsonPath(node);
9996
+ if (path2.length === 0) return;
9997
+ return path2;
10266
9998
  };
10267
9999
  function* walk(node) {
10268
10000
  switch (node.kind) {
@@ -10336,8 +10068,8 @@ var require_getLocationForJsonPath = /* @__PURE__ */ __commonJSMin(((exports$1)
10336
10068
  const lineForPosition_1 = require_lineForPosition();
10337
10069
  const types_1 = require_types();
10338
10070
  const utils_1 = require_utils();
10339
- exports$1.getLocationForJsonPath = ({ ast, lineMap, metadata }, path$1, closest = false) => {
10340
- const node = findNodeAtPath(ast, path$1, {
10071
+ exports$1.getLocationForJsonPath = ({ ast, lineMap, metadata }, path2, closest = false) => {
10072
+ const node = findNodeAtPath(ast, path2, {
10341
10073
  closest,
10342
10074
  mergeKeys: metadata !== void 0 && metadata.mergeKeys === true
10343
10075
  });
@@ -10376,8 +10108,8 @@ var require_getLocationForJsonPath = /* @__PURE__ */ __commonJSMin(((exports$1)
10376
10108
  }
10377
10109
  return node.endPosition;
10378
10110
  }
10379
- function findNodeAtPath(node, path$1, { closest, mergeKeys }) {
10380
- pathLoop: for (const segment of path$1) {
10111
+ function findNodeAtPath(node, path2, { closest, mergeKeys }) {
10112
+ pathLoop: for (const segment of path2) {
10381
10113
  if (!utils_1.isObject(node)) return closest ? node : void 0;
10382
10114
  switch (node.kind) {
10383
10115
  case types_1.Kind.MAP:
@@ -11308,17 +11040,17 @@ var Oas = (_a$2 = class extends BaseOas {
11308
11040
  getDiscriminator(schema) {
11309
11041
  if (!isDiscriminator(schema) || !schema) return null;
11310
11042
  const { mapping = {}, propertyName } = schema.discriminator;
11311
- const getDiscriminatorValue = (schema$1) => {
11043
+ const getDiscriminatorValue = (schema2) => {
11312
11044
  var _a2, _b;
11313
- if (!schema$1) return null;
11045
+ if (!schema2) return null;
11314
11046
  if (propertyName.startsWith("x-")) {
11315
- const extensionValue = schema$1[propertyName];
11047
+ const extensionValue = schema2[propertyName];
11316
11048
  if (extensionValue && typeof extensionValue === "string") return extensionValue;
11317
11049
  }
11318
- const propertySchema = (_a2 = schema$1.properties) == null ? void 0 : _a2[propertyName];
11050
+ const propertySchema = (_a2 = schema2.properties) == null ? void 0 : _a2[propertyName];
11319
11051
  if (propertySchema && "const" in propertySchema && propertySchema.const !== void 0) return String(propertySchema.const);
11320
11052
  if (propertySchema && ((_b = propertySchema.enum) == null ? void 0 : _b.length) === 1) return String(propertySchema.enum[0]);
11321
- return schema$1.title || null;
11053
+ return schema2.title || null;
11322
11054
  };
11323
11055
  const processSchemas = (schemas, existingMapping) => {
11324
11056
  schemas.forEach((schemaItem, index) => {
@@ -11355,9 +11087,9 @@ var Oas = (_a$2 = class extends BaseOas {
11355
11087
  }
11356
11088
  getResponseSchema(operation, statusCode) {
11357
11089
  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);
11090
+ const schema2 = operation.schema.responses[key];
11091
+ const $ref = isReference(schema2) ? schema2.$ref : void 0;
11092
+ if (schema2 && $ref) operation.schema.responses[key] = this.get($ref);
11361
11093
  });
11362
11094
  const getResponseBody = __privateMethod$2(this, _Oas_instances, getResponseBodyFactory_fn).call(this, operation.getResponseByStatusCode(statusCode));
11363
11095
  const { contentType } = __privateGet$1(this, _options);
@@ -11890,27 +11622,27 @@ var SchemaGenerator = (_b = class extends BaseGenerator {
11890
11622
  }
11891
11623
  async build(...generators) {
11892
11624
  var _a2;
11893
- const { oas, contentType: contentType$1, include } = this.context;
11625
+ const { oas, contentType, include } = this.context;
11894
11626
  if (!__privateGet(this, _nameMappingInitialized)) {
11895
- const { schemas: schemas$1, nameMapping } = oas.getSchemas({
11896
- contentType: contentType$1,
11627
+ const { schemas: schemas2, nameMapping } = oas.getSchemas({
11628
+ contentType,
11897
11629
  includes: include
11898
11630
  });
11899
11631
  __privateSet(this, _schemaNameMapping, nameMapping);
11900
11632
  __privateSet(this, _nameMappingInitialized, true);
11901
- const schemaEntries = Object.entries(schemas$1);
11633
+ const schemaEntries = Object.entries(schemas2);
11902
11634
  (_a2 = this.context.events) == null ? void 0 : _a2.emit("debug", {
11903
11635
  date: /* @__PURE__ */ new Date(),
11904
11636
  logs: [
11905
11637
  `Building ${schemaEntries.length} schemas`,
11906
- ` \u2022 Content Type: ${contentType$1 || "application/json"}`,
11638
+ ` \u2022 Content Type: ${contentType || "application/json"}`,
11907
11639
  ` \u2022 Generators: ${generators.length}`
11908
11640
  ]
11909
11641
  });
11910
- return __privateMethod$1(this, _SchemaGenerator_instances, doBuild_fn).call(this, schemas$1, generators);
11642
+ return __privateMethod$1(this, _SchemaGenerator_instances, doBuild_fn).call(this, schemas2, generators);
11911
11643
  }
11912
11644
  const { schemas } = oas.getSchemas({
11913
- contentType: contentType$1,
11645
+ contentType,
11914
11646
  includes: include
11915
11647
  });
11916
11648
  return __privateMethod$1(this, _SchemaGenerator_instances, doBuild_fn).call(this, schemas, generators);
@@ -11920,9 +11652,9 @@ var SchemaGenerator = (_b = class extends BaseGenerator {
11920
11652
  */
11921
11653
  ensureNameMapping_fn = function() {
11922
11654
  if (__privateGet(this, _nameMappingInitialized)) return;
11923
- const { oas, contentType: contentType$1, include } = this.context;
11655
+ const { oas, contentType, include } = this.context;
11924
11656
  const { nameMapping } = oas.getSchemas({
11925
- contentType: contentType$1,
11657
+ contentType,
11926
11658
  includes: include
11927
11659
  });
11928
11660
  __privateSet(this, _schemaNameMapping, nameMapping);
@@ -12348,12 +12080,12 @@ parseSchemaObject_fn = function({ schema: _schemaObject, name, parentName, rootN
12348
12080
  enum: schemaObject.enum
12349
12081
  };
12350
12082
  const { enum: _, ...schemaWithoutEnum } = schemaObject;
12351
- const normalizedSchema$1 = {
12083
+ const normalizedSchema2 = {
12352
12084
  ...schemaWithoutEnum,
12353
12085
  items: normalizedItems
12354
12086
  };
12355
12087
  return this.parse({
12356
- schema: normalizedSchema$1,
12088
+ schema: normalizedSchema2,
12357
12089
  name,
12358
12090
  parentName,
12359
12091
  rootName
@@ -12385,10 +12117,10 @@ parseSchemaObject_fn = function({ schema: _schemaObject, name, parentName, rootN
12385
12117
  name,
12386
12118
  typeName,
12387
12119
  asConst: false,
12388
- items: [...new Set(schemaObject[extensionKey])].map((name$1, index) => {
12120
+ items: [...new Set(schemaObject[extensionKey])].map((name2, index) => {
12389
12121
  var _a3, _b3;
12390
12122
  return {
12391
- name: transformers_default.stringify(name$1),
12123
+ name: transformers_default.stringify(name2),
12392
12124
  value: (_a3 = schemaObject.enum) == null ? void 0 : _a3[index],
12393
12125
  format: isNumber((_b3 = schemaObject.enum) == null ? void 0 : _b3[index]) ? "number" : "string"
12394
12126
  };
@@ -12404,8 +12136,8 @@ parseSchemaObject_fn = function({ schema: _schemaObject, name, parentName, rootN
12404
12136
  name: enumName,
12405
12137
  typeName,
12406
12138
  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,
12139
+ items: ((_l = enumNames == null ? void 0 : enumNames.args) == null ? void 0 : _l.items) ? [...new Set(enumNames.args.items)].map(({ name: name2, value }) => ({
12140
+ name: name2,
12409
12141
  value,
12410
12142
  format: "number"
12411
12143
  })) : [...new Set(filteredValues)].map((value) => {
@@ -12426,8 +12158,8 @@ parseSchemaObject_fn = function({ schema: _schemaObject, name, parentName, rootN
12426
12158
  name: enumName,
12427
12159
  typeName,
12428
12160
  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,
12161
+ items: ((_n = enumNames == null ? void 0 : enumNames.args) == null ? void 0 : _n.items) ? [...new Set(enumNames.args.items)].map(({ name: name2, value }) => ({
12162
+ name: name2,
12431
12163
  value,
12432
12164
  format: "boolean"
12433
12165
  })) : [...new Set(filteredValues)].map((value) => {
@@ -12458,13 +12190,13 @@ parseSchemaObject_fn = function({ schema: _schemaObject, name, parentName, rootN
12458
12190
  if ("prefixItems" in schemaObject) {
12459
12191
  const prefixItems = schemaObject.prefixItems;
12460
12192
  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;
12193
+ const min2 = (_q = (_p = (_o = schemaObject.minimum) != null ? _o : schemaObject.minLength) != null ? _p : schemaObject.minItems) != null ? _q : void 0;
12194
+ const max2 = (_t = (_s = (_r = schemaObject.maximum) != null ? _r : schemaObject.maxLength) != null ? _s : schemaObject.maxItems) != null ? _t : void 0;
12463
12195
  return [{
12464
12196
  keyword: schemaKeywords.tuple,
12465
12197
  args: {
12466
- min: min$1,
12467
- max: max$1,
12198
+ min: min2,
12199
+ max: max2,
12468
12200
  items: prefixItems.map((item) => {
12469
12201
  return this.parse({
12470
12202
  schema: item,
@@ -12502,7 +12234,7 @@ parseSchemaObject_fn = function({ schema: _schemaObject, name, parentName, rootN
12502
12234
  }
12503
12235
  if (schemaObject.format) {
12504
12236
  if (schemaObject.type === "integer" && schemaObject.format === "int64") {
12505
- baseItems.unshift({ keyword: options.integerType === "number" ? schemaKeywords.integer : schemaKeywords.bigint });
12237
+ baseItems.unshift({ keyword: options.integerType === "bigint" ? schemaKeywords.bigint : schemaKeywords.integer });
12506
12238
  return baseItems;
12507
12239
  }
12508
12240
  if (schemaObject.type === "integer" && schemaObject.format === "int32") {
@@ -12604,8 +12336,8 @@ parseSchemaObject_fn = function({ schema: _schemaObject, name, parentName, rootN
12604
12336
  return baseItems;
12605
12337
  }
12606
12338
  if ("items" in schemaObject || schemaObject.type === "array") {
12607
- const min$1 = (_w = (_v = (_u = schemaObject.minimum) != null ? _u : schemaObject.minLength) != null ? _v : schemaObject.minItems) != null ? _w : void 0;
12608
- const max$1 = (_z = (_y = (_x = schemaObject.maximum) != null ? _x : schemaObject.maxLength) != null ? _y : schemaObject.maxItems) != null ? _z : void 0;
12339
+ const min2 = (_w = (_v = (_u = schemaObject.minimum) != null ? _u : schemaObject.minLength) != null ? _v : schemaObject.minItems) != null ? _w : void 0;
12340
+ const max2 = (_z = (_y = (_x = schemaObject.maximum) != null ? _x : schemaObject.maxLength) != null ? _y : schemaObject.maxItems) != null ? _z : void 0;
12609
12341
  const items = this.parse({
12610
12342
  schema: "items" in schemaObject ? schemaObject.items : [],
12611
12343
  name,
@@ -12617,8 +12349,8 @@ parseSchemaObject_fn = function({ schema: _schemaObject, name, parentName, rootN
12617
12349
  keyword: schemaKeywords.array,
12618
12350
  args: {
12619
12351
  items,
12620
- min: min$1,
12621
- max: max$1,
12352
+ min: min2,
12353
+ max: max2,
12622
12354
  unique
12623
12355
  }
12624
12356
  }, ...baseItems.filter((item) => item.keyword !== schemaKeywords.min && item.keyword !== schemaKeywords.max)];
@@ -12992,12 +12724,12 @@ function getParams$d({ paramsType, paramsCasing, pathParamsType, typeSchemas, is
12992
12724
  function Client({ name, isExportable = true, isIndexable = true, returnType, typeSchemas, baseURL, dataReturnType, parser, zodSchemas, paramsType, paramsCasing, pathParamsType, operation, urlName, children, isConfigurable = true }) {
12993
12725
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
12994
12726
  const path = new URLPath(operation.path);
12995
- const contentType$1 = operation.getContentType();
12996
- const isFormData = contentType$1 === "multipart/form-data";
12727
+ const contentType = operation.getContentType();
12728
+ const isFormData = contentType === "multipart/form-data";
12997
12729
  const pathParamsMapping = paramsCasing ? getParamsMapping(typeSchemas.pathParams, { casing: paramsCasing }) : void 0;
12998
12730
  const queryParamsMapping = paramsCasing ? getParamsMapping(typeSchemas.queryParams, { casing: paramsCasing }) : void 0;
12999
12731
  const headerParamsMapping = paramsCasing ? getParamsMapping(typeSchemas.headerParams, { casing: paramsCasing }) : void 0;
13000
- 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);
12732
+ 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);
13001
12733
  const TError = `ResponseErrorConfig<${((_b = typeSchemas.errors) == null ? void 0 : _b.map((item) => item.name).join(" | ")) || "Error"}>`;
13002
12734
  const generics = [
13003
12735
  typeSchemas.response.name,
@@ -13074,8 +12806,8 @@ function Client({ name, isExportable = true, isIndexable = true, returnType, typ
13074
12806
  })] });
13075
12807
  }
13076
12808
  Client.getParams = getParams$d;
13077
- function buildHeaders$1(contentType$1, hasHeaderParams) {
13078
- return [contentType$1 !== "application/json" && contentType$1 !== "multipart/form-data" ? `'Content-Type': '${contentType$1}'` : void 0, hasHeaderParams ? "...headers" : void 0].filter(Boolean);
12809
+ function buildHeaders$1(contentType, hasHeaderParams) {
12810
+ return [contentType !== "application/json" && contentType !== "multipart/form-data" ? `'Content-Type': '${contentType}'` : void 0, hasHeaderParams ? "...headers" : void 0].filter(Boolean);
13079
12811
  }
13080
12812
  __name$5(buildHeaders$1, "buildHeaders");
13081
12813
  function buildGenerics$1(typeSchemas) {
@@ -13125,9 +12857,9 @@ __name$5(buildReturnStatement$1, "buildReturnStatement");
13125
12857
  function generateMethod$1({ operation, name, typeSchemas, zodSchemas, baseURL, dataReturnType, parser, paramsType, paramsCasing, pathParamsType }) {
13126
12858
  var _a, _b;
13127
12859
  const path = new URLPath(operation.path, { casing: paramsCasing });
13128
- const contentType$1 = operation.getContentType();
13129
- const isFormData = contentType$1 === "multipart/form-data";
13130
- const headers = buildHeaders$1(contentType$1, !!((_a = typeSchemas.headerParams) == null ? void 0 : _a.name));
12860
+ const contentType = operation.getContentType();
12861
+ const isFormData = contentType === "multipart/form-data";
12862
+ const headers = buildHeaders$1(contentType, !!((_a = typeSchemas.headerParams) == null ? void 0 : _a.name));
13131
12863
  const generics = buildGenerics$1(typeSchemas);
13132
12864
  const params = ClassClient.getParams({
13133
12865
  paramsType,
@@ -13217,8 +12949,8 @@ function Operations$1({ name, operations }) {
13217
12949
  })
13218
12950
  });
13219
12951
  }
13220
- function buildHeaders(contentType$1, hasHeaderParams) {
13221
- return [contentType$1 !== "application/json" && contentType$1 !== "multipart/form-data" ? `'Content-Type': '${contentType$1}'` : void 0, hasHeaderParams ? "...headers" : void 0].filter(Boolean);
12952
+ function buildHeaders(contentType, hasHeaderParams) {
12953
+ return [contentType !== "application/json" && contentType !== "multipart/form-data" ? `'Content-Type': '${contentType}'` : void 0, hasHeaderParams ? "...headers" : void 0].filter(Boolean);
13222
12954
  }
13223
12955
  function buildGenerics(typeSchemas) {
13224
12956
  var _a, _b;
@@ -13262,9 +12994,9 @@ function buildReturnStatement({ dataReturnType, parser, zodSchemas }) {
13262
12994
  function generateMethod({ operation, name, typeSchemas, zodSchemas, baseURL, dataReturnType, parser, paramsType, paramsCasing, pathParamsType }) {
13263
12995
  var _a, _b;
13264
12996
  const path = new URLPath(operation.path, { casing: paramsCasing });
13265
- const contentType$1 = operation.getContentType();
13266
- const isFormData = contentType$1 === "multipart/form-data";
13267
- const headers = buildHeaders(contentType$1, !!((_a = typeSchemas.headerParams) == null ? void 0 : _a.name));
12997
+ const contentType = operation.getContentType();
12998
+ const isFormData = contentType === "multipart/form-data";
12999
+ const headers = buildHeaders(contentType, !!((_a = typeSchemas.headerParams) == null ? void 0 : _a.name));
13268
13000
  const generics = buildGenerics(typeSchemas);
13269
13001
  const params = Client.getParams({
13270
13002
  paramsType,
@@ -13425,7 +13157,7 @@ var OperationGenerator = (_a = class extends BaseGenerator {
13425
13157
  var _a2;
13426
13158
  const { override = [] } = this.context;
13427
13159
  const operationId = operation.getOperationId({ friendlyCase: true });
13428
- const contentType$1 = operation.getContentType();
13160
+ const contentType = operation.getContentType();
13429
13161
  return ((_a2 = override.find(({ pattern, type }) => {
13430
13162
  switch (type) {
13431
13163
  case "tag":
@@ -13437,7 +13169,7 @@ var OperationGenerator = (_a = class extends BaseGenerator {
13437
13169
  case "method":
13438
13170
  return !!method.match(pattern);
13439
13171
  case "contentType":
13440
- return !!contentType$1.match(pattern);
13172
+ return !!contentType.match(pattern);
13441
13173
  default:
13442
13174
  return false;
13443
13175
  }
@@ -13531,12 +13263,12 @@ var OperationGenerator = (_a = class extends BaseGenerator {
13531
13263
  async getOperations() {
13532
13264
  const { oas } = this.context;
13533
13265
  const paths = oas.getPaths();
13534
- return Object.entries(paths).flatMap(([path$1, methods]) => Object.entries(methods).map((values) => {
13266
+ return Object.entries(paths).flatMap(([path2, methods]) => Object.entries(methods).map((values) => {
13535
13267
  const [method, operation] = values;
13536
13268
  if (__privateMethod(this, _OperationGenerator_instances, isExcluded_fn).call(this, operation, method)) return null;
13537
13269
  if (this.context.include && !__privateMethod(this, _OperationGenerator_instances, isIncluded_fn).call(this, operation, method)) return null;
13538
13270
  return operation ? {
13539
- path: path$1,
13271
+ path: path2,
13540
13272
  method,
13541
13273
  operation
13542
13274
  } : null;
@@ -13609,7 +13341,7 @@ var OperationGenerator = (_a = class extends BaseGenerator {
13609
13341
  }, _OperationGenerator_instances = new WeakSet(), isExcluded_fn = function(operation, method) {
13610
13342
  const { exclude = [] } = this.context;
13611
13343
  const operationId = operation.getOperationId({ friendlyCase: true });
13612
- const contentType$1 = operation.getContentType();
13344
+ const contentType = operation.getContentType();
13613
13345
  return exclude.some(({ pattern, type }) => {
13614
13346
  switch (type) {
13615
13347
  case "tag":
@@ -13621,7 +13353,7 @@ var OperationGenerator = (_a = class extends BaseGenerator {
13621
13353
  case "method":
13622
13354
  return !!method.match(pattern);
13623
13355
  case "contentType":
13624
- return !!contentType$1.match(pattern);
13356
+ return !!contentType.match(pattern);
13625
13357
  default:
13626
13358
  return false;
13627
13359
  }
@@ -13629,7 +13361,7 @@ var OperationGenerator = (_a = class extends BaseGenerator {
13629
13361
  }, isIncluded_fn = function(operation, method) {
13630
13362
  const { include = [] } = this.context;
13631
13363
  const operationId = operation.getOperationId({ friendlyCase: true });
13632
- const contentType$1 = operation.getContentType();
13364
+ const contentType = operation.getContentType();
13633
13365
  return include.some(({ pattern, type }) => {
13634
13366
  switch (type) {
13635
13367
  case "tag":
@@ -13641,7 +13373,7 @@ var OperationGenerator = (_a = class extends BaseGenerator {
13641
13373
  case "method":
13642
13374
  return !!method.match(pattern);
13643
13375
  case "contentType":
13644
- return !!contentType$1.match(pattern);
13376
+ return !!contentType.match(pattern);
13645
13377
  default:
13646
13378
  return false;
13647
13379
  }
@@ -13649,16 +13381,16 @@ var OperationGenerator = (_a = class extends BaseGenerator {
13649
13381
  }, _a);
13650
13382
  const pluginOasName = "plugin-oas";
13651
13383
  const pluginOas = definePlugin((options) => {
13652
- const { output = { path: "schemas" }, group, validate = true, generators = [jsonGenerator], serverIndex, contentType: contentType$1, oasClass, discriminator = "strict", collisionDetection = false } = options;
13653
- const getOas = async ({ validate: validate$1, config, events }) => {
13384
+ const { output = { path: "schemas" }, group, validate = true, generators = [jsonGenerator], serverIndex, contentType, oasClass, discriminator = "strict", collisionDetection = false } = options;
13385
+ const getOas = async ({ validate: validate2, config, events }) => {
13654
13386
  const oas = await parseFromConfig(config, oasClass);
13655
13387
  oas.setOptions({
13656
- contentType: contentType$1,
13388
+ contentType,
13657
13389
  discriminator,
13658
13390
  collisionDetection
13659
13391
  });
13660
13392
  try {
13661
- if (validate$1) await oas.validate();
13393
+ if (validate2) await oas.validate();
13662
13394
  } catch (er) {
13663
13395
  const caughtError = er;
13664
13396
  const errorTimestamp = /* @__PURE__ */ new Date();
@@ -13684,36 +13416,36 @@ const pluginOas = definePlugin((options) => {
13684
13416
  const events = this.events;
13685
13417
  let oas;
13686
13418
  return {
13687
- async getOas({ validate: validate$1 = false } = {}) {
13419
+ async getOas({ validate: validate2 = false } = {}) {
13688
13420
  if (!oas) oas = await getOas({
13689
13421
  config,
13690
13422
  events,
13691
- validate: validate$1
13423
+ validate: validate2
13692
13424
  });
13693
13425
  return oas;
13694
13426
  },
13695
13427
  async getBaseURL() {
13696
13428
  var _a2, _b;
13697
- const oas$1 = await getOas({
13429
+ const oas2 = await getOas({
13698
13430
  config,
13699
13431
  events,
13700
13432
  validate: false
13701
13433
  });
13702
- if (serverIndex !== void 0) return (_b = (_a2 = oas$1.api.servers) == null ? void 0 : _a2.at(serverIndex)) == null ? void 0 : _b.url;
13434
+ if (serverIndex !== void 0) return (_b = (_a2 = oas2.api.servers) == null ? void 0 : _a2.at(serverIndex)) == null ? void 0 : _b.url;
13703
13435
  }
13704
13436
  };
13705
13437
  },
13706
- resolvePath(baseName, pathMode, options$1) {
13438
+ resolvePath(baseName, pathMode, options2) {
13707
13439
  var _a2, _b;
13708
13440
  const root = path$2.resolve(this.config.root, this.config.output.path);
13709
13441
  if ((pathMode != null ? pathMode : getMode(path$2.resolve(root, output.path))) === "single")
13710
13442
  return path$2.resolve(root, output.path);
13711
- 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))) {
13443
+ 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))) {
13712
13444
  const groupName = (group == null ? void 0 : group.name) ? group.name : (ctx) => {
13713
13445
  if ((group == null ? void 0 : group.type) === "path") return `${ctx.group.split("/")[1]}`;
13714
13446
  return `${camelCase(ctx.group)}Controller`;
13715
13447
  };
13716
- return path$2.resolve(root, output.path, groupName({ group: group.type === "path" ? options$1.group.path : options$1.group.tag }), baseName);
13448
+ return path$2.resolve(root, output.path, groupName({ group: group.type === "path" ? options2.group.path : options2.group.tag }), baseName);
13717
13449
  }
13718
13450
  return path$2.resolve(root, output.path, baseName);
13719
13451
  },
@@ -13738,7 +13470,7 @@ const pluginOas = definePlugin((options) => {
13738
13470
  pluginManager: this.pluginManager,
13739
13471
  events: this.events,
13740
13472
  plugin: this.plugin,
13741
- contentType: contentType$1,
13473
+ contentType,
13742
13474
  include: void 0,
13743
13475
  override: void 0,
13744
13476
  mode: "split",
@@ -13751,7 +13483,7 @@ const pluginOas = definePlugin((options) => {
13751
13483
  pluginManager: this.pluginManager,
13752
13484
  events: this.events,
13753
13485
  plugin: this.plugin,
13754
- contentType: contentType$1,
13486
+ contentType,
13755
13487
  exclude: void 0,
13756
13488
  include: void 0,
13757
13489
  override: void 0,
@@ -14102,7 +13834,7 @@ function sort(items) {
14102
13834
  schemaKeywords.nullish
14103
13835
  ];
14104
13836
  if (!items) return [];
14105
- return transformers_default.orderBy(items, [(v) => order.indexOf(v.keyword)], ["asc"]);
13837
+ return sortBy(items, [(v) => order.indexOf(v.keyword), "asc"]);
14106
13838
  }
14107
13839
  const miniModifierKeywords = [
14108
13840
  schemaKeywords.optional,
@@ -14153,18 +13885,18 @@ const parse$2 = createParser({
14153
13885
  siblings
14154
13886
  }, options);
14155
13887
  if (Array.isArray(current.args) && !current.args.length) return "";
14156
- return zodKeywordMapper.union(sort(current.args).map((it, _index, siblings$1) => this.parse({
13888
+ return zodKeywordMapper.union(sort(current.args).map((it, _index, siblings2) => this.parse({
14157
13889
  schema,
14158
13890
  parent: current,
14159
13891
  name,
14160
13892
  current: it,
14161
- siblings: siblings$1
13893
+ siblings: siblings2
14162
13894
  }, options)).filter(Boolean));
14163
13895
  },
14164
13896
  and(tree, options) {
14165
13897
  const { current, schema, name } = tree;
14166
- const items = sort(current.args).filter((schema$1) => {
14167
- return ![schemaKeywords.optional, schemaKeywords.describe].includes(schema$1.keyword);
13898
+ const items = sort(current.args).filter((schema2) => {
13899
+ return ![schemaKeywords.optional, schemaKeywords.describe].includes(schema2.keyword);
14168
13900
  }).map((it, _index, siblings) => this.parse({
14169
13901
  schema,
14170
13902
  parent: current,
@@ -14202,9 +13934,9 @@ const parse$2 = createParser({
14202
13934
  siblings: [child]
14203
13935
  }, options);
14204
13936
  }
14205
- return zodKeywordMapper.union(current.args.items.map((schema$1) => ({
13937
+ return zodKeywordMapper.union(current.args.items.map((schema2) => ({
14206
13938
  keyword: schemaKeywords.const,
14207
- args: schema$1
13939
+ args: schema2
14208
13940
  })).map((it, _index, siblings) => {
14209
13941
  return this.parse({
14210
13942
  schema,
@@ -14215,10 +13947,10 @@ const parse$2 = createParser({
14215
13947
  }, options);
14216
13948
  }).filter(Boolean));
14217
13949
  }
14218
- return zodKeywordMapper.enum(current.args.items.map((schema$1) => {
14219
- if (schema$1.format === "boolean") return transformers_default.stringify(schema$1.value);
14220
- if (schema$1.format === "number") return transformers_default.stringify(schema$1.value);
14221
- return transformers_default.stringify(schema$1.value);
13950
+ return zodKeywordMapper.enum(current.args.items.map((schema2) => {
13951
+ if (schema2.format === "boolean") return transformers_default.stringify(schema2.value);
13952
+ if (schema2.format === "number") return transformers_default.stringify(schema2.value);
13953
+ return transformers_default.stringify(schema2.value);
14222
13954
  }));
14223
13955
  },
14224
13956
  ref(tree, options) {
@@ -14231,8 +13963,8 @@ const parse$2 = createParser({
14231
13963
  var _a, _b, _c, _d;
14232
13964
  const { current, schema, name } = tree;
14233
13965
  const properties = Object.entries(((_a = current.args) == null ? void 0 : _a.properties) || {}).filter((item) => {
14234
- const schema$1 = item[1];
14235
- return schema$1 && typeof schema$1.map === "function";
13966
+ const schema2 = item[1];
13967
+ return schema2 && typeof schema2.map === "function";
14236
13968
  }).map(([propertyName, schemas]) => {
14237
13969
  var _a2, _b2;
14238
13970
  const nameSchema = schemas.find((it) => it.keyword === schemaKeywords.name);
@@ -14242,8 +13974,8 @@ const parse$2 = createParser({
14242
13974
  const hasRef = !!SchemaGenerator.find(schemas, schemaKeywords.ref);
14243
13975
  const mappedName = (nameSchema == null ? void 0 : nameSchema.args) || propertyName;
14244
13976
  if (options.mapper && Object.hasOwn(options.mapper, mappedName)) return `"${propertyName}": ${(_a2 = options.mapper) == null ? void 0 : _a2[mappedName]}`;
14245
- const baseSchemaOutput = sort(schemas).filter((schema$1) => {
14246
- return !isKeyword(schema$1, schemaKeywords.optional) && !isKeyword(schema$1, schemaKeywords.nullable) && !isKeyword(schema$1, schemaKeywords.nullish);
13977
+ const baseSchemaOutput = sort(schemas).filter((schema2) => {
13978
+ return !isKeyword(schema2, schemaKeywords.optional) && !isKeyword(schema2, schemaKeywords.nullable) && !isKeyword(schema2, schemaKeywords.nullish);
14247
13979
  }).map((it) => {
14248
13980
  const skipLazyForRefs = options.version === "4" && hasRef;
14249
13981
  return this.parse({
@@ -212420,11 +212152,11 @@ function createUnionDeclaration({ nodes, withParentheses }) {
212420
212152
  if (withParentheses) return factory.createParenthesizedType(node);
212421
212153
  return node;
212422
212154
  }
212423
- function createPropertySignature({ readOnly, modifiers: modifiers$1 = [], name, questionToken: questionToken$1, type }) {
212424
- return factory.createPropertySignature([...modifiers$1, readOnly ? factory.createToken(ts.SyntaxKind.ReadonlyKeyword) : void 0].filter(Boolean), propertyName(name), createQuestionToken(questionToken$1), type);
212155
+ function createPropertySignature({ readOnly, modifiers: modifiers2 = [], name, questionToken: questionToken2, type }) {
212156
+ return factory.createPropertySignature([...modifiers2, readOnly ? factory.createToken(ts.SyntaxKind.ReadonlyKeyword) : void 0].filter(Boolean), propertyName(name), createQuestionToken(questionToken2), type);
212425
212157
  }
212426
- function createParameterSignature(name, { modifiers: modifiers$1, dotDotDotToken, questionToken: questionToken$1, type, initializer }) {
212427
- return factory.createParameterDeclaration(modifiers$1, dotDotDotToken, name, createQuestionToken(questionToken$1), type, initializer);
212158
+ function createParameterSignature(name, { modifiers: modifiers2, dotDotDotToken, questionToken: questionToken2, type, initializer }) {
212159
+ return factory.createParameterDeclaration(modifiers2, dotDotDotToken, name, createQuestionToken(questionToken2), type, initializer);
212428
212160
  }
212429
212161
  function appendJSDocToNode({ node, comments }) {
212430
212162
  const filteredComments = comments.filter(Boolean);
@@ -212436,14 +212168,14 @@ function appendJSDocToNode({ node, comments }) {
212436
212168
  return ts.addSyntheticLeadingComment(node, ts.SyntaxKind.MultiLineCommentTrivia, `${text || "*"}
212437
212169
  `, true);
212438
212170
  }
212439
- function createIndexSignature(type, { modifiers: modifiers$1, indexName = "key", indexType = factory.createKeywordTypeNode(ts.SyntaxKind.StringKeyword) } = {}) {
212440
- return factory.createIndexSignature(modifiers$1, [createParameterSignature(indexName, { type: indexType })], type);
212171
+ function createIndexSignature(type, { modifiers: modifiers2, indexName = "key", indexType = factory.createKeywordTypeNode(ts.SyntaxKind.StringKeyword) } = {}) {
212172
+ return factory.createIndexSignature(modifiers2, [createParameterSignature(indexName, { type: indexType })], type);
212441
212173
  }
212442
- function createTypeAliasDeclaration({ modifiers: modifiers$1, name, typeParameters, type }) {
212443
- return factory.createTypeAliasDeclaration(modifiers$1, name, typeParameters, type);
212174
+ function createTypeAliasDeclaration({ modifiers: modifiers2, name, typeParameters, type }) {
212175
+ return factory.createTypeAliasDeclaration(modifiers2, name, typeParameters, type);
212444
212176
  }
212445
- function createInterfaceDeclaration({ modifiers: modifiers$1, name, typeParameters, members }) {
212446
- return factory.createInterfaceDeclaration(modifiers$1, name, typeParameters, void 0, members);
212177
+ function createInterfaceDeclaration({ modifiers: modifiers2, name, typeParameters, members }) {
212178
+ return factory.createInterfaceDeclaration(modifiers2, name, typeParameters, void 0, members);
212447
212179
  }
212448
212180
  function createTypeDeclaration({ syntax, isExportable, comments, name, type }) {
212449
212181
  if (syntax === "interface" && "members" in type) return appendJSDocToNode({
@@ -212641,9 +212373,9 @@ const typeKeywordMapper = {
212641
212373
  phone: void 0,
212642
212374
  readOnly: void 0,
212643
212375
  writeOnly: void 0,
212644
- ref: (propertyName$1) => {
212645
- if (!propertyName$1) return;
212646
- return createTypeReferenceNode(propertyName$1, void 0);
212376
+ ref: (propertyName2) => {
212377
+ if (!propertyName2) return;
212378
+ return createTypeReferenceNode(propertyName2, void 0);
212647
212379
  },
212648
212380
  blob: () => createTypeReferenceNode("Blob", []),
212649
212381
  deprecated: void 0,
@@ -212733,26 +212465,26 @@ const parse$1 = createParser({
212733
212465
  const properties = Object.entries(((_a = current.args) == null ? void 0 : _a.properties) || {}).filter((item) => {
212734
212466
  const schemas = item[1];
212735
212467
  return schemas && typeof schemas.map === "function";
212736
- }).map(([name$1, schemas]) => {
212468
+ }).map(([name2, schemas]) => {
212737
212469
  var _a2, _b2, _c2, _d2, _e2;
212738
- const mappedName = ((_a2 = schemas.find((schema$1) => schema$1.keyword === schemaKeywords.name)) == null ? void 0 : _a2.args) || name$1;
212470
+ const mappedName = ((_a2 = schemas.find((schema2) => schema2.keyword === schemaKeywords.name)) == null ? void 0 : _a2.args) || name2;
212739
212471
  if (options.mapper && Object.hasOwn(options.mapper, mappedName)) return options.mapper[mappedName];
212740
- const isNullish = schemas.some((schema$1) => schema$1.keyword === schemaKeywords.nullish);
212741
- const isNullable = schemas.some((schema$1) => schema$1.keyword === schemaKeywords.nullable);
212742
- const isOptional = schemas.some((schema$1) => schema$1.keyword === schemaKeywords.optional);
212743
- const isReadonly = schemas.some((schema$1) => schema$1.keyword === schemaKeywords.readOnly);
212744
- const describeSchema = schemas.find((schema$1) => schema$1.keyword === schemaKeywords.describe);
212745
- const deprecatedSchema = schemas.find((schema$1) => schema$1.keyword === schemaKeywords.deprecated);
212746
- const defaultSchema = schemas.find((schema$1) => schema$1.keyword === schemaKeywords.default);
212747
- const exampleSchema = schemas.find((schema$1) => schema$1.keyword === schemaKeywords.example);
212748
- const schemaSchema = schemas.find((schema$1) => schema$1.keyword === schemaKeywords.schema);
212749
- const minSchema = schemas.find((schema$1) => schema$1.keyword === schemaKeywords.min);
212750
- const maxSchema = schemas.find((schema$1) => schema$1.keyword === schemaKeywords.max);
212751
- const matchesSchema = schemas.find((schema$1) => schema$1.keyword === schemaKeywords.matches);
212472
+ const isNullish = schemas.some((schema2) => schema2.keyword === schemaKeywords.nullish);
212473
+ const isNullable = schemas.some((schema2) => schema2.keyword === schemaKeywords.nullable);
212474
+ const isOptional = schemas.some((schema2) => schema2.keyword === schemaKeywords.optional);
212475
+ const isReadonly = schemas.some((schema2) => schema2.keyword === schemaKeywords.readOnly);
212476
+ const describeSchema = schemas.find((schema2) => schema2.keyword === schemaKeywords.describe);
212477
+ const deprecatedSchema = schemas.find((schema2) => schema2.keyword === schemaKeywords.deprecated);
212478
+ const defaultSchema = schemas.find((schema2) => schema2.keyword === schemaKeywords.default);
212479
+ const exampleSchema = schemas.find((schema2) => schema2.keyword === schemaKeywords.example);
212480
+ const schemaSchema = schemas.find((schema2) => schema2.keyword === schemaKeywords.schema);
212481
+ const minSchema = schemas.find((schema2) => schema2.keyword === schemaKeywords.min);
212482
+ const maxSchema = schemas.find((schema2) => schema2.keyword === schemaKeywords.max);
212483
+ const matchesSchema = schemas.find((schema2) => schema2.keyword === schemaKeywords.matches);
212752
212484
  let type = schemas.map((it) => this.parse({
212753
212485
  schema,
212754
212486
  parent: current,
212755
- name: name$1,
212487
+ name: name2,
212756
212488
  current: it,
212757
212489
  siblings: schemas
212758
212490
  }, options)).filter(Boolean)[0];
@@ -212788,7 +212520,7 @@ const parse$1 = createParser({
212788
212520
  current: it,
212789
212521
  siblings: []
212790
212522
  }, options)).filter(Boolean).at(0);
212791
- if ((_d = current.args) == null ? void 0 : _d.additionalProperties.some((schema$1) => isKeyword(schema$1, schemaKeywords.nullable))) additionalPropertiesType = createUnionDeclaration({ nodes: [additionalPropertiesType, keywordTypeNodes.null] });
212523
+ if ((_d = current.args) == null ? void 0 : _d.additionalProperties.some((schema2) => isKeyword(schema2, schemaKeywords.nullable))) additionalPropertiesType = createUnionDeclaration({ nodes: [additionalPropertiesType, keywordTypeNodes.null] });
212792
212524
  const indexSignatureType = properties.length > 0 ? keywordTypeNodes.unknown : additionalPropertiesType;
212793
212525
  additionalProperties = createIndexSignature(indexSignatureType);
212794
212526
  }
@@ -212803,7 +212535,7 @@ const parse$1 = createParser({
212803
212535
  current: it,
212804
212536
  siblings: []
212805
212537
  }, options)).filter(Boolean).at(0);
212806
- if (allPatternSchemas.some((schema$1) => isKeyword(schema$1, schemaKeywords.nullable))) patternProperties = createUnionDeclaration({ nodes: [patternProperties, keywordTypeNodes.null] });
212538
+ if (allPatternSchemas.some((schema2) => isKeyword(schema2, schemaKeywords.nullable))) patternProperties = createUnionDeclaration({ nodes: [patternProperties, keywordTypeNodes.null] });
212807
212539
  patternProperties = createIndexSignature(patternProperties);
212808
212540
  }
212809
212541
  }
@@ -212883,10 +212615,10 @@ function Type({ name, typedName, tree, keysToOmit, schema, optionalType, arrayTy
212883
212615
  ]
212884
212616
  }));
212885
212617
  const enums = [...new Set(enumSchemas)].map((enumSchema) => {
212886
- const name$1 = enumType === "asPascalConst" ? transformers_default.pascalCase(enumSchema.args.name) : transformers_default.camelCase(enumSchema.args.name);
212618
+ const name2 = enumType === "asPascalConst" ? transformers_default.pascalCase(enumSchema.args.name) : transformers_default.camelCase(enumSchema.args.name);
212887
212619
  const typeName = ["asConst", "asPascalConst"].includes(enumType) ? `${enumSchema.args.typeName}Key` : enumSchema.args.typeName;
212888
212620
  const [nameNode, typeNode] = createEnumDeclaration({
212889
- name: name$1,
212621
+ name: name2,
212890
212622
  typeName,
212891
212623
  enums: enumSchema.args.items.map((item) => {
212892
212624
  var _a;
@@ -212898,14 +212630,14 @@ function Type({ name, typedName, tree, keysToOmit, schema, optionalType, arrayTy
212898
212630
  return {
212899
212631
  nameNode,
212900
212632
  typeNode,
212901
- name: name$1,
212633
+ name: name2,
212902
212634
  typeName
212903
212635
  };
212904
212636
  });
212905
212637
  const shouldExportEnums = enumType !== "inlineLiteral";
212906
212638
  const shouldExportType = enumType === "inlineLiteral" || enums.every((item) => item.typeName !== name);
212907
- return /* @__PURE__ */ jsxs(Fragment, { children: [shouldExportEnums && enums.map(({ name: name$1, nameNode, typeName, typeNode }) => /* @__PURE__ */ jsxs(Fragment, { children: [nameNode && /* @__PURE__ */ jsx(File.Source, {
212908
- name: name$1,
212639
+ return /* @__PURE__ */ jsxs(Fragment, { children: [shouldExportEnums && enums.map(({ name: name2, nameNode, typeName, typeNode }) => /* @__PURE__ */ jsxs(Fragment, { children: [nameNode && /* @__PURE__ */ jsx(File.Source, {
212640
+ name: name2,
212909
212641
  isExportable: true,
212910
212642
  isIndexable: true,
212911
212643
  isTypeOnly: false,
@@ -213332,19 +213064,19 @@ const typeGenerator = createReactGenerator({
213332
213064
  schemas.request,
213333
213065
  schemas.response
213334
213066
  ].flat().filter(Boolean);
213335
- const mapOperationSchema = ({ name: name$1, schema, description, keysToOmit, ...options$1 }) => {
213336
- const transformedSchema = paramsCasing && isParameterSchema(name$1) ? applyParamsCasing(schema, paramsCasing) : schema;
213067
+ const mapOperationSchema = ({ name: name2, schema, description, keysToOmit, ...options2 }) => {
213068
+ const transformedSchema = paramsCasing && isParameterSchema(name2) ? applyParamsCasing(schema, paramsCasing) : schema;
213337
213069
  const tree = schemaGenerator.parse({
213338
213070
  schema: transformedSchema,
213339
- name: name$1,
213071
+ name: name2,
213340
213072
  parentName: null
213341
213073
  });
213342
213074
  const imports = getImports(tree);
213343
- const group = options$1.operation ? getGroup(options$1.operation) : void 0;
213075
+ const group = options2.operation ? getGroup(options2.operation) : void 0;
213344
213076
  const type = {
213345
- name: schemaManager.getName(name$1, { type: "type" }),
213346
- typedName: schemaManager.getName(name$1, { type: "type" }),
213347
- file: schemaManager.getFile(options$1.operationName || name$1, { group })
213077
+ name: schemaManager.getName(name2, { type: "type" }),
213078
+ typedName: schemaManager.getName(name2, { type: "type" }),
213079
+ file: schemaManager.getFile(options2.operationName || name2, { group })
213348
213080
  };
213349
213081
  return /* @__PURE__ */ jsxs(Fragment, { children: [mode === "split" && imports.map((imp) => /* @__PURE__ */ jsx(File.Import, {
213350
213082
  root: file.path,
@@ -213352,7 +213084,7 @@ const typeGenerator = createReactGenerator({
213352
213084
  name: imp.name,
213353
213085
  isTypeOnly: true
213354
213086
  }, [
213355
- name$1,
213087
+ name2,
213356
213088
  imp.name,
213357
213089
  imp.path,
213358
213090
  imp.isTypeOnly
@@ -213479,12 +213211,12 @@ const pluginTs = definePlugin((options) => {
213479
213211
  const { output = {
213480
213212
  path: "types",
213481
213213
  barrelType: "named"
213482
- }, 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;
213214
+ }, group, exclude = [], include, override = [], enumType = "asConst", enumKeyCasing = "none", enumSuffix = "enum", dateType = "string", integerType = "number", unknownType = "any", optionalType = "questionToken", arrayType = "array", emptySchemaType = unknownType, syntaxType = "type", transformers: transformers2 = {}, mapper = {}, paramsCasing, generators = [typeGenerator].filter(Boolean), contentType, UNSTABLE_NAMING } = options;
213483
213215
  return {
213484
213216
  name: pluginTsName,
213485
213217
  options: {
213486
213218
  output,
213487
- transformers: transformers$1,
213219
+ transformers: transformers2,
213488
213220
  dateType,
213489
213221
  integerType,
213490
213222
  optionalType,
@@ -213502,24 +213234,24 @@ const pluginTs = definePlugin((options) => {
213502
213234
  usedEnumNames: {}
213503
213235
  },
213504
213236
  pre: [pluginOasName],
213505
- resolvePath(baseName, pathMode, options$1) {
213237
+ resolvePath(baseName, pathMode, options2) {
213506
213238
  var _a, _b;
213507
213239
  const root = path$2.resolve(this.config.root, this.config.output.path);
213508
213240
  if ((pathMode != null ? pathMode : getMode(path$2.resolve(root, output.path))) === "single")
213509
213241
  return path$2.resolve(root, output.path);
213510
- 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))) {
213242
+ 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))) {
213511
213243
  const groupName = (group == null ? void 0 : group.name) ? group.name : (ctx) => {
213512
213244
  if ((group == null ? void 0 : group.type) === "path") return `${ctx.group.split("/")[1]}`;
213513
213245
  return `${camelCase(ctx.group)}Controller`;
213514
213246
  };
213515
- return path$2.resolve(root, output.path, groupName({ group: group.type === "path" ? options$1.group.path : options$1.group.tag }), baseName);
213247
+ return path$2.resolve(root, output.path, groupName({ group: group.type === "path" ? options2.group.path : options2.group.tag }), baseName);
213516
213248
  }
213517
213249
  return path$2.resolve(root, output.path, baseName);
213518
213250
  },
213519
213251
  resolveName(name, type) {
213520
213252
  var _a;
213521
213253
  const resolvedName = pascalCase(name, { isFile: type === "file" });
213522
- if (type) return ((_a = transformers$1 == null ? void 0 : transformers$1.name) == null ? void 0 : _a.call(transformers$1, resolvedName, type)) || resolvedName;
213254
+ if (type) return ((_a = transformers2 == null ? void 0 : transformers2.name) == null ? void 0 : _a.call(transformers2, resolvedName, type)) || resolvedName;
213523
213255
  return resolvedName;
213524
213256
  },
213525
213257
  async install() {
@@ -213652,7 +213384,7 @@ const zodGenerator = createReactGenerator({
213652
213384
  schemas.request,
213653
213385
  schemas.response
213654
213386
  ].flat().filter(Boolean);
213655
- const mapOperationSchema = ({ name, schema: schemaOriginal, description, keysToOmit: keysToOmitOriginal, ...options$1 }) => {
213387
+ const mapOperationSchema = ({ name, schema: schemaOriginal, description, keysToOmit: keysToOmitOriginal, ...options2 }) => {
213656
213388
  var _a;
213657
213389
  let schemaObject = schemaOriginal;
213658
213390
  let keysToOmit = keysToOmitOriginal;
@@ -213673,7 +213405,7 @@ const zodGenerator = createReactGenerator({
213673
213405
  parentName: null
213674
213406
  }), optional ? { keyword: schemaKeywords.optional } : void 0].filter(Boolean);
213675
213407
  const imports = getImports(tree);
213676
- const group = options$1.operation ? getGroup(options$1.operation) : void 0;
213408
+ const group = options2.operation ? getGroup(options2.operation) : void 0;
213677
213409
  const coercion = name.includes("Params") ? {
213678
213410
  numbers: true,
213679
213411
  strings: false,
@@ -213689,7 +213421,7 @@ const zodGenerator = createReactGenerator({
213689
213421
  type: "type",
213690
213422
  pluginKey: [pluginTsName]
213691
213423
  }),
213692
- file: schemaManager.getFile(options$1.operationName || name, {
213424
+ file: schemaManager.getFile(options2.operationName || name, {
213693
213425
  pluginKey: [pluginTsName],
213694
213426
  group
213695
213427
  })
@@ -213839,12 +213571,12 @@ const pluginZod = definePlugin((options) => {
213839
213571
  const { output = {
213840
213572
  path: "zod",
213841
213573
  barrelType: "named"
213842
- }, 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;
213574
+ }, group, exclude = [], include, override = [], transformers = {}, dateType = "string", unknownType = "any", emptySchemaType = unknownType, integerType = "number", 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;
213843
213575
  return {
213844
213576
  name: pluginZodName,
213845
213577
  options: {
213846
213578
  output,
213847
- transformers: transformers$1,
213579
+ transformers,
213848
213580
  include,
213849
213581
  exclude,
213850
213582
  override,
@@ -213852,6 +213584,7 @@ const pluginZod = definePlugin((options) => {
213852
213584
  dateType,
213853
213585
  unknownType,
213854
213586
  emptySchemaType,
213587
+ integerType,
213855
213588
  mapper,
213856
213589
  importPath,
213857
213590
  coercion,
@@ -213865,17 +213598,17 @@ const pluginZod = definePlugin((options) => {
213865
213598
  usedEnumNames: {}
213866
213599
  },
213867
213600
  pre: [pluginOasName, typed ? pluginTsName : void 0].filter(Boolean),
213868
- resolvePath(baseName, pathMode, options$1) {
213601
+ resolvePath(baseName, pathMode, options2) {
213869
213602
  var _a, _b;
213870
213603
  const root = path$2.resolve(this.config.root, this.config.output.path);
213871
213604
  if ((pathMode != null ? pathMode : getMode(path$2.resolve(root, output.path))) === "single")
213872
213605
  return path$2.resolve(root, output.path);
213873
- 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))) {
213606
+ 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))) {
213874
213607
  const groupName = (group == null ? void 0 : group.name) ? group.name : (ctx) => {
213875
213608
  if ((group == null ? void 0 : group.type) === "path") return `${ctx.group.split("/")[1]}`;
213876
213609
  return `${camelCase(ctx.group)}Controller`;
213877
213610
  };
213878
- return path$2.resolve(root, output.path, groupName({ group: group.type === "path" ? options$1.group.path : options$1.group.tag }), baseName);
213611
+ return path$2.resolve(root, output.path, groupName({ group: group.type === "path" ? options2.group.path : options2.group.tag }), baseName);
213879
213612
  }
213880
213613
  return path$2.resolve(root, output.path, baseName);
213881
213614
  },
@@ -213886,7 +213619,7 @@ const pluginZod = definePlugin((options) => {
213886
213619
  isFile: type === "file"
213887
213620
  });
213888
213621
  if (type === "type") resolvedName = pascalCase(resolvedName);
213889
- if (type) return ((_a = transformers$1 == null ? void 0 : transformers$1.name) == null ? void 0 : _a.call(transformers$1, resolvedName, type)) || resolvedName;
213622
+ if (type) return ((_a = transformers == null ? void 0 : transformers.name) == null ? void 0 : _a.call(transformers, resolvedName, type)) || resolvedName;
213890
213623
  return resolvedName;
213891
213624
  },
213892
213625
  async install() {
@@ -214627,17 +214360,17 @@ const pluginClient = definePlugin((options) => {
214627
214360
  urlType
214628
214361
  },
214629
214362
  pre: [pluginOasName, parser === "zod" ? pluginZodName : void 0].filter(Boolean),
214630
- resolvePath(baseName, pathMode, options$1) {
214363
+ resolvePath(baseName, pathMode, options2) {
214631
214364
  var _a2, _b;
214632
214365
  const root = path$2.resolve(this.config.root, this.config.output.path);
214633
214366
  if ((pathMode != null ? pathMode : getMode(path$2.resolve(root, output.path))) === "single")
214634
214367
  return path$2.resolve(root, output.path);
214635
- 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))) {
214368
+ 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))) {
214636
214369
  const groupName = (group == null ? void 0 : group.name) ? group.name : (ctx) => {
214637
214370
  if ((group == null ? void 0 : group.type) === "path") return `${ctx.group.split("/")[1]}`;
214638
214371
  return `${camelCase(ctx.group)}Controller`;
214639
214372
  };
214640
- return path$2.resolve(root, output.path, groupName({ group: group.type === "path" ? options$1.group.path : options$1.group.tag }), baseName);
214373
+ return path$2.resolve(root, output.path, groupName({ group: group.type === "path" ? options2.group.path : options2.group.tag }), baseName);
214641
214374
  }
214642
214375
  return path$2.resolve(root, output.path, baseName);
214643
214376
  },
@@ -214652,7 +214385,7 @@ const pluginClient = definePlugin((options) => {
214652
214385
  const root = path$2.resolve(this.config.root, this.config.output.path);
214653
214386
  const mode = getMode(path$2.resolve(root, output.path));
214654
214387
  const oas = await this.getOas();
214655
- const baseURL$1 = await this.getBaseURL();
214388
+ const baseURL2 = await this.getBaseURL();
214656
214389
  if (bundle && !this.plugin.options.importPath) await this.addFile({
214657
214390
  baseName: "fetch.ts",
214658
214391
  path: path$2.resolve(root, ".kubb/fetch.ts"),
@@ -214677,9 +214410,9 @@ const pluginClient = definePlugin((options) => {
214677
214410
  imports: [],
214678
214411
  exports: []
214679
214412
  });
214680
- const files = await new OperationGenerator(baseURL$1 ? {
214413
+ const files = await new OperationGenerator(baseURL2 ? {
214681
214414
  ...this.plugin.options,
214682
- baseURL: baseURL$1
214415
+ baseURL: baseURL2
214683
214416
  } : this.plugin.options, {
214684
214417
  fabric: this.fabric,
214685
214418
  oas,
@@ -214875,17 +214608,17 @@ const pluginCypress = definePlugin((options) => {
214875
214608
  pathParamsType
214876
214609
  },
214877
214610
  pre: [pluginOasName, pluginTsName].filter(Boolean),
214878
- resolvePath(baseName, pathMode, options$1) {
214611
+ resolvePath(baseName, pathMode, options2) {
214879
214612
  var _a, _b;
214880
214613
  const root = path$2.resolve(this.config.root, this.config.output.path);
214881
214614
  if ((pathMode != null ? pathMode : getMode(path$2.resolve(root, output.path))) === "single")
214882
214615
  return path$2.resolve(root, output.path);
214883
- 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))) {
214616
+ 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))) {
214884
214617
  const groupName = (group == null ? void 0 : group.name) ? group.name : (ctx) => {
214885
214618
  if ((group == null ? void 0 : group.type) === "path") return `${ctx.group.split("/")[1]}`;
214886
214619
  return `${camelCase(ctx.group)}Requests`;
214887
214620
  };
214888
- return path$2.resolve(root, output.path, groupName({ group: group.type === "path" ? options$1.group.path : options$1.group.tag }), baseName);
214621
+ return path$2.resolve(root, output.path, groupName({ group: group.type === "path" ? options2.group.path : options2.group.tag }), baseName);
214889
214622
  }
214890
214623
  return path$2.resolve(root, output.path, baseName);
214891
214624
  },
@@ -215099,11 +214832,11 @@ const parse = createParser({
215099
214832
  var _a;
215100
214833
  const { current, schema } = tree;
215101
214834
  return `{${Object.entries(((_a = current.args) == null ? void 0 : _a.properties) || {}).filter((item) => {
215102
- const schema$1 = item[1];
215103
- return schema$1 && typeof schema$1.map === "function";
214835
+ const schema2 = item[1];
214836
+ return schema2 && typeof schema2.map === "function";
215104
214837
  }).map(([name, schemas]) => {
215105
214838
  var _a2, _b;
215106
- const mappedName = ((_a2 = schemas.find((schema$1) => schema$1.keyword === schemaKeywords.name)) == null ? void 0 : _a2.args) || name;
214839
+ const mappedName = ((_a2 = schemas.find((schema2) => schema2.keyword === schemaKeywords.name)) == null ? void 0 : _a2.args) || name;
215107
214840
  if (options.mapper && Object.hasOwn(options.mapper, mappedName)) return `"${name}": ${(_b = options.mapper) == null ? void 0 : _b[mappedName]}`;
215108
214841
  return `"${name}": ${joinItems(schemas.sort(schemaKeywordSorter).map((it) => this.parse({
215109
214842
  schema,
@@ -215292,7 +215025,7 @@ const fakerGenerator = createReactGenerator({
215292
215025
  schemas.request,
215293
215026
  schemas.response
215294
215027
  ].flat().filter(Boolean);
215295
- const mapOperationSchema = ({ name, schema, description, ...options$1 }) => {
215028
+ const mapOperationSchema = ({ name, schema, description, ...options2 }) => {
215296
215029
  const transformedSchema = isParameterSchema(name) && plugin.options.paramsCasing ? applyParamsCasing(schema, plugin.options.paramsCasing) : schema;
215297
215030
  const tree = schemaGenerator.parse({
215298
215031
  schema: transformedSchema,
@@ -215300,7 +215033,7 @@ const fakerGenerator = createReactGenerator({
215300
215033
  parentName: null
215301
215034
  });
215302
215035
  const imports = getImports(tree);
215303
- const group = options$1.operation ? getGroup(options$1.operation) : void 0;
215036
+ const group = options2.operation ? getGroup(options2.operation) : void 0;
215304
215037
  const faker = {
215305
215038
  name: schemaManager.getName(name, { type: "function" }),
215306
215039
  file: schemaManager.getFile(name)
@@ -215310,7 +215043,7 @@ const fakerGenerator = createReactGenerator({
215310
215043
  type: "type",
215311
215044
  pluginKey: [pluginTsName]
215312
215045
  }),
215313
- file: schemaManager.getFile(options$1.operationName || name, {
215046
+ file: schemaManager.getFile(options2.operationName || name, {
215314
215047
  pluginKey: [pluginTsName],
215315
215048
  group
215316
215049
  })
@@ -215455,14 +215188,15 @@ const pluginFaker = definePlugin((options) => {
215455
215188
  const { output = {
215456
215189
  path: "mocks",
215457
215190
  barrelType: "named"
215458
- }, 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;
215191
+ }, seed, group, exclude = [], include, override = [], transformers = {}, mapper = {}, unknownType = "any", emptySchemaType = unknownType, dateType = "string", integerType = "number", dateParser = "faker", generators = [fakerGenerator].filter(Boolean), regexGenerator = "faker", paramsCasing, contentType } = options;
215459
215192
  return {
215460
215193
  name: pluginFakerName,
215461
215194
  options: {
215462
215195
  output,
215463
- transformers: transformers$1,
215196
+ transformers,
215464
215197
  seed,
215465
215198
  dateType,
215199
+ integerType,
215466
215200
  unknownType,
215467
215201
  emptySchemaType,
215468
215202
  dateParser,
@@ -215474,17 +215208,17 @@ const pluginFaker = definePlugin((options) => {
215474
215208
  usedEnumNames: {}
215475
215209
  },
215476
215210
  pre: [pluginOasName, pluginTsName],
215477
- resolvePath(baseName, pathMode, options$1) {
215211
+ resolvePath(baseName, pathMode, options2) {
215478
215212
  var _a, _b;
215479
215213
  const root = path$2.resolve(this.config.root, this.config.output.path);
215480
215214
  if ((pathMode != null ? pathMode : getMode(path$2.resolve(root, output.path))) === "single")
215481
215215
  return path$2.resolve(root, output.path);
215482
- 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))) {
215216
+ 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))) {
215483
215217
  const groupName = (group == null ? void 0 : group.name) ? group.name : (ctx) => {
215484
215218
  if ((group == null ? void 0 : group.type) === "path") return `${ctx.group.split("/")[1]}`;
215485
215219
  return `${camelCase(ctx.group)}Controller`;
215486
215220
  };
215487
- return path$2.resolve(root, output.path, groupName({ group: group.type === "path" ? options$1.group.path : options$1.group.tag }), baseName);
215221
+ return path$2.resolve(root, output.path, groupName({ group: group.type === "path" ? options2.group.path : options2.group.tag }), baseName);
215488
215222
  }
215489
215223
  return path$2.resolve(root, output.path, baseName);
215490
215224
  },
@@ -215494,7 +215228,7 @@ const pluginFaker = definePlugin((options) => {
215494
215228
  prefix: type ? "create" : void 0,
215495
215229
  isFile: type === "file"
215496
215230
  });
215497
- if (type) return ((_a = transformers$1 == null ? void 0 : transformers$1.name) == null ? void 0 : _a.call(transformers$1, resolvedName, type)) || resolvedName;
215231
+ if (type) return ((_a = transformers == null ? void 0 : transformers.name) == null ? void 0 : _a.call(transformers, resolvedName, type)) || resolvedName;
215498
215232
  return resolvedName;
215499
215233
  },
215500
215234
  async install() {
@@ -215907,17 +215641,17 @@ const pluginMcp = definePlugin((options) => {
215907
215641
  pluginTsName,
215908
215642
  pluginZodName
215909
215643
  ].filter(Boolean),
215910
- resolvePath(baseName, pathMode, options$1) {
215644
+ resolvePath(baseName, pathMode, options2) {
215911
215645
  var _a2, _b2;
215912
215646
  const root = path$2.resolve(this.config.root, this.config.output.path);
215913
215647
  if ((pathMode != null ? pathMode : getMode(path$2.resolve(root, output.path))) === "single")
215914
215648
  return path$2.resolve(root, output.path);
215915
- 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))) {
215649
+ 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))) {
215916
215650
  const groupName = (group == null ? void 0 : group.name) ? group.name : (ctx) => {
215917
215651
  if ((group == null ? void 0 : group.type) === "path") return `${ctx.group.split("/")[1]}`;
215918
215652
  return `${camelCase(ctx.group)}Requests`;
215919
215653
  };
215920
- return path$2.resolve(root, output.path, groupName({ group: group.type === "path" ? options$1.group.path : options$1.group.tag }), baseName);
215654
+ return path$2.resolve(root, output.path, groupName({ group: group.type === "path" ? options2.group.path : options2.group.tag }), baseName);
215921
215655
  }
215922
215656
  return path$2.resolve(root, output.path, baseName);
215923
215657
  },
@@ -216259,17 +215993,17 @@ const pluginMsw = definePlugin((options) => {
216259
215993
  pluginTsName,
216260
215994
  parser === "faker" ? pluginFakerName : void 0
216261
215995
  ].filter(Boolean),
216262
- resolvePath(baseName, pathMode, options$1) {
215996
+ resolvePath(baseName, pathMode, options2) {
216263
215997
  var _a, _b;
216264
215998
  const root = path$2.resolve(this.config.root, this.config.output.path);
216265
215999
  if ((pathMode != null ? pathMode : getMode(path$2.resolve(root, output.path))) === "single")
216266
216000
  return path$2.resolve(root, output.path);
216267
- 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))) {
216001
+ 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))) {
216268
216002
  const groupName = (group == null ? void 0 : group.name) ? group.name : (ctx) => {
216269
216003
  if ((group == null ? void 0 : group.type) === "path") return `${ctx.group.split("/")[1]}`;
216270
216004
  return `${camelCase(ctx.group)}Controller`;
216271
216005
  };
216272
- return path$2.resolve(root, output.path, groupName({ group: group.type === "path" ? options$1.group.path : options$1.group.tag }), baseName);
216006
+ return path$2.resolve(root, output.path, groupName({ group: group.type === "path" ? options2.group.path : options2.group.tag }), baseName);
216273
216007
  }
216274
216008
  return path$2.resolve(root, output.path, baseName);
216275
216009
  },
@@ -217648,8 +217382,8 @@ const customHookOptionsFileGenerator = createReactGenerator({
217648
217382
  const { importPath, name } = options.customOptions;
217649
217383
  const root = path$2.resolve(config.root, config.output.path);
217650
217384
  const reactQueryImportPath = options.query ? options.query.importPath : "@tanstack/react-query";
217651
- const getHookFilePath = (operations$1) => {
217652
- const firstOperation = operations$1[0];
217385
+ const getHookFilePath = (operations2) => {
217386
+ const firstOperation = operations2[0];
217653
217387
  if (firstOperation != null) return getFile(firstOperation, { prefix: "use" }).path;
217654
217388
  return pluginManager.getFile({
217655
217389
  name: "index",
@@ -217670,7 +217404,7 @@ const customHookOptionsFileGenerator = createReactGenerator({
217670
217404
  };
217671
217405
  };
217672
217406
  const file = getExternalFile(importPath, path$2.dirname(getHookFilePath(operations)));
217673
- if (fs$2.existsSync(file.path) && !override) return null;
217407
+ if (fs$1.existsSync(file.path) && !override) return null;
217674
217408
  return /* @__PURE__ */ jsxs(File, {
217675
217409
  baseName: file.baseName,
217676
217410
  path: file.path,
@@ -219114,17 +218848,17 @@ const pluginReactQuery = definePlugin((options) => {
219114
218848
  pluginTsName,
219115
218849
  parser === "zod" ? pluginZodName : void 0
219116
218850
  ].filter(Boolean),
219117
- resolvePath(baseName, pathMode, options$1) {
218851
+ resolvePath(baseName, pathMode, options2) {
219118
218852
  var _a2, _b2;
219119
218853
  const root = path$2.resolve(this.config.root, this.config.output.path);
219120
218854
  if ((pathMode != null ? pathMode : getMode(path$2.resolve(root, output.path))) === "single")
219121
218855
  return path$2.resolve(root, output.path);
219122
- 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))) {
218856
+ 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))) {
219123
218857
  const groupName = (group == null ? void 0 : group.name) ? group.name : (ctx) => {
219124
218858
  if ((group == null ? void 0 : group.type) === "path") return `${ctx.group.split("/")[1]}`;
219125
218859
  return `${camelCase(ctx.group)}Controller`;
219126
218860
  };
219127
- return path$2.resolve(root, output.path, groupName({ group: group.type === "path" ? options$1.group.path : options$1.group.tag }), baseName);
218861
+ return path$2.resolve(root, output.path, groupName({ group: group.type === "path" ? options2.group.path : options2.group.tag }), baseName);
219128
218862
  }
219129
218863
  return path$2.resolve(root, output.path, baseName);
219130
218864
  },
@@ -219196,7 +218930,7 @@ const __filename$1 = fileURLToPath(globalThis._importMeta_.url);
219196
218930
  const __dirname$1 = path$2.dirname(__filename$1);
219197
218931
  async function getPageHTML(api, { title, disableGoogleFont, templateOptions } = {}) {
219198
218932
  const templateFileName = path$2.join(__dirname$1, "../static/redoc.hbs");
219199
- return pkg.compile(fs$2.readFileSync(templateFileName).toString())({
218933
+ return pkg$1.compile(fs$1.readFileSync(templateFileName).toString())({
219200
218934
  title: title || api.info.title || "ReDoc documentation",
219201
218935
  redocHTML: `
219202
218936
  <script src="https://cdn.redoc.ly/redoc/latest/bundles/redoc.standalone.js"> <\/script>
@@ -220180,17 +219914,17 @@ const pluginSolidQuery = definePlugin((options) => {
220180
219914
  pluginTsName,
220181
219915
  parser === "zod" ? pluginZodName : void 0
220182
219916
  ].filter(Boolean),
220183
- resolvePath(baseName, pathMode, options$1) {
219917
+ resolvePath(baseName, pathMode, options2) {
220184
219918
  var _a2, _b2;
220185
219919
  const root = path$2.resolve(this.config.root, this.config.output.path);
220186
219920
  if ((pathMode != null ? pathMode : getMode(path$2.resolve(root, output.path))) === "single")
220187
219921
  return path$2.resolve(root, output.path);
220188
- 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))) {
219922
+ 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))) {
220189
219923
  const groupName = (group == null ? void 0 : group.name) ? group.name : (ctx) => {
220190
219924
  if ((group == null ? void 0 : group.type) === "path") return `${ctx.group.split("/")[1]}`;
220191
219925
  return `${camelCase(ctx.group)}Controller`;
220192
219926
  };
220193
- return path$2.resolve(root, output.path, groupName({ group: group.type === "path" ? options$1.group.path : options$1.group.tag }), baseName);
219927
+ return path$2.resolve(root, output.path, groupName({ group: group.type === "path" ? options2.group.path : options2.group.tag }), baseName);
220194
219928
  }
220195
219929
  return path$2.resolve(root, output.path, baseName);
220196
219930
  },
@@ -221193,17 +220927,17 @@ const pluginSvelteQuery = definePlugin((options) => {
221193
220927
  pluginTsName,
221194
220928
  parser === "zod" ? pluginZodName : void 0
221195
220929
  ].filter(Boolean),
221196
- resolvePath(baseName, pathMode, options$1) {
220930
+ resolvePath(baseName, pathMode, options2) {
221197
220931
  var _a2, _b2;
221198
220932
  const root = path$2.resolve(this.config.root, this.config.output.path);
221199
220933
  if ((pathMode != null ? pathMode : getMode(path$2.resolve(root, output.path))) === "single")
221200
220934
  return path$2.resolve(root, output.path);
221201
- 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))) {
220935
+ 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))) {
221202
220936
  const groupName = (group == null ? void 0 : group.name) ? group.name : (ctx) => {
221203
220937
  if ((group == null ? void 0 : group.type) === "path") return `${ctx.group.split("/")[1]}`;
221204
220938
  return `${camelCase(ctx.group)}Controller`;
221205
220939
  };
221206
- return path$2.resolve(root, output.path, groupName({ group: group.type === "path" ? options$1.group.path : options$1.group.tag }), baseName);
220940
+ return path$2.resolve(root, output.path, groupName({ group: group.type === "path" ? options2.group.path : options2.group.tag }), baseName);
221207
220941
  }
221208
220942
  return path$2.resolve(root, output.path, baseName);
221209
220943
  },
@@ -221419,13 +221153,13 @@ function Mutation$1({ name, clientName, mutationKeyName, mutationKeyTypeName, pa
221419
221153
  return acc;
221420
221154
  }, {})
221421
221155
  } });
221422
- const params$1 = getTriggerParams({
221156
+ const params2 = getTriggerParams({
221423
221157
  dataReturnType,
221424
221158
  typeSchemas,
221425
221159
  mutationKeyTypeName,
221426
221160
  mutationArgTypeName
221427
221161
  });
221428
- const generics$1 = [
221162
+ const generics2 = [
221429
221163
  TData,
221430
221164
  TError,
221431
221165
  `${mutationKeyTypeName} | null`,
@@ -221449,13 +221183,13 @@ function Mutation$1({ name, clientName, mutationKeyName, mutationKeyTypeName, pa
221449
221183
  children: /* @__PURE__ */ jsx(Function$1, {
221450
221184
  name,
221451
221185
  export: true,
221452
- params: params$1.toConstructor(),
221186
+ params: params2.toConstructor(),
221453
221187
  JSDoc: { comments: getComments(operation) },
221454
221188
  children: `
221455
221189
  const { mutation: mutationOptions, client: config = {}, shouldFetch = true } = options ?? {}
221456
221190
  const mutationKey = ${mutationKeyName}(${mutationKeyParams.toCall()})
221457
221191
 
221458
- return useSWRMutation<${generics$1.join(", ")}>(
221192
+ return useSWRMutation<${generics2.join(", ")}>(
221459
221193
  shouldFetch ? mutationKey : null,
221460
221194
  async (_url${hasMutationParams ? `, { arg: ${argParams.toCall()} }` : ""}) => {
221461
221195
  return ${clientName}(${clientParams.toCall()})
@@ -222228,17 +221962,17 @@ const pluginSwr = definePlugin((options) => {
222228
221962
  pluginTsName,
222229
221963
  parser === "zod" ? pluginZodName : void 0
222230
221964
  ].filter(Boolean),
222231
- resolvePath(baseName, pathMode, options$1) {
221965
+ resolvePath(baseName, pathMode, options2) {
222232
221966
  var _a2, _b2;
222233
221967
  const root = path$2.resolve(this.config.root, this.config.output.path);
222234
221968
  if ((pathMode != null ? pathMode : getMode(path$2.resolve(root, output.path))) === "single")
222235
221969
  return path$2.resolve(root, output.path);
222236
- 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))) {
221970
+ 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))) {
222237
221971
  const groupName = (group == null ? void 0 : group.name) ? group.name : (ctx) => {
222238
221972
  if ((group == null ? void 0 : group.type) === "path") return `${ctx.group.split("/")[1]}`;
222239
221973
  return `${camelCase(ctx.group)}Controller`;
222240
221974
  };
222241
- return path$2.resolve(root, output.path, groupName({ group: group.type === "path" ? options$1.group.path : options$1.group.tag }), baseName);
221975
+ return path$2.resolve(root, output.path, groupName({ group: group.type === "path" ? options2.group.path : options2.group.tag }), baseName);
222242
221976
  }
222243
221977
  return path$2.resolve(root, output.path, baseName);
222244
221978
  },
@@ -222503,8 +222237,8 @@ function QueryOptions({ name, clientName, dataReturnType, typeSchemas, paramsCas
222503
222237
  if (!config.signal) {
222504
222238
  config.signal = signal
222505
222239
  }
222506
- return ${clientName}(${clientParams.toCall({ transformName(name$1) {
222507
- return `toValue(${name$1})`;
222240
+ return ${clientName}(${clientParams.toCall({ transformName(name2) {
222241
+ return `toValue(${name2})`;
222508
222242
  } })})
222509
222243
  },
222510
222244
  })
@@ -222817,8 +222551,8 @@ function InfiniteQueryOptions({ name, clientName, initialPageParam, cursorParam,
222817
222551
  config.signal = signal
222818
222552
  }
222819
222553
  ${infiniteOverrideParams}
222820
- return ${clientName}(${clientParams.toCall({ transformName(name$1) {
222821
- return `toValue(${name$1})`;
222554
+ return ${clientName}(${clientParams.toCall({ transformName(name2) {
222555
+ return `toValue(${name2})`;
222822
222556
  } })})
222823
222557
  },
222824
222558
  ${queryOptions.join(",\n")}
@@ -223852,17 +223586,17 @@ const pluginVueQuery = definePlugin((options) => {
223852
223586
  pluginTsName,
223853
223587
  parser === "zod" ? pluginZodName : void 0
223854
223588
  ].filter(Boolean),
223855
- resolvePath(baseName, pathMode, options$1) {
223589
+ resolvePath(baseName, pathMode, options2) {
223856
223590
  var _a2, _b2;
223857
223591
  const root = path$2.resolve(this.config.root, this.config.output.path);
223858
223592
  if ((pathMode != null ? pathMode : getMode(path$2.resolve(root, output.path))) === "single")
223859
223593
  return path$2.resolve(root, output.path);
223860
- 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))) {
223594
+ 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))) {
223861
223595
  const groupName = (group == null ? void 0 : group.name) ? group.name : (ctx) => {
223862
223596
  if ((group == null ? void 0 : group.type) === "path") return `${ctx.group.split("/")[1]}`;
223863
223597
  return `${camelCase(ctx.group)}Controller`;
223864
223598
  };
223865
- return path$2.resolve(root, output.path, groupName({ group: group.type === "path" ? options$1.group.path : options$1.group.tag }), baseName);
223599
+ return path$2.resolve(root, output.path, groupName({ group: group.type === "path" ? options2.group.path : options2.group.tag }), baseName);
223866
223600
  }
223867
223601
  return path$2.resolve(root, output.path, baseName);
223868
223602
  },
@@ -224101,7 +223835,7 @@ function setupEventsStream(ws, events) {
224101
223835
  });
224102
223836
  }
224103
223837
 
224104
- var version = "4.28.1";
223838
+ var version = "4.29.1";
224105
223839
 
224106
223840
  const _zcw7I4pYH8OiCfaDcjy_x7I6IH1tLDQR3W_yRZgP6E = defineNitroPlugin(async (nitro) => {
224107
223841
  const studioUrl = process$1.env.KUBB_STUDIO_URL || "https://studio.kubb.dev";
@@ -224132,37 +223866,6 @@ const _zcw7I4pYH8OiCfaDcjy_x7I6IH1tLDQR3W_yRZgP6E = defineNitroPlugin(async (nit
224132
223866
  Authorization: `Bearer ${token}`
224133
223867
  }
224134
223868
  };
224135
- events.on("hook:start", async ({ id, command, args }) => {
224136
- const commandWithArgs = (args == null ? void 0 : args.length) ? `${command} ${args.join(" ")}` : command;
224137
- if (!id) {
224138
- return;
224139
- }
224140
- try {
224141
- const result = await execa(command, args, {
224142
- cwd: root,
224143
- detached: true,
224144
- stripFinalNewline: true
224145
- });
224146
- console.log(result.stdout);
224147
- await events.emit("hook:end", {
224148
- command,
224149
- args,
224150
- id,
224151
- success: true,
224152
- error: null
224153
- });
224154
- } catch (_err) {
224155
- const errorMessage = new Error(`Hook execute failed: ${commandWithArgs}`);
224156
- await events.emit("hook:end", {
224157
- command,
224158
- args,
224159
- id,
224160
- success: false,
224161
- error: errorMessage
224162
- });
224163
- await events.emit("error", errorMessage);
224164
- }
224165
- });
224166
223869
  async function reconnectToStudio() {
224167
223870
  logger.info(`Retrying connection in ${formatMs(retryInterval)} to Kubb Studio ...`);
224168
223871
  setTimeout(async () => {
@@ -224171,6 +223874,37 @@ const _zcw7I4pYH8OiCfaDcjy_x7I6IH1tLDQR3W_yRZgP6E = defineNitroPlugin(async (nit
224171
223874
  }
224172
223875
  async function connectToStudio() {
224173
223876
  try {
223877
+ events.removeAll();
223878
+ events.on("hook:start", async ({ id, command, args }) => {
223879
+ const commandWithArgs = (args == null ? void 0 : args.length) ? `${command} ${args.join(" ")}` : command;
223880
+ if (!id) {
223881
+ return;
223882
+ }
223883
+ try {
223884
+ const result = await x(command, [...args != null ? args : []], {
223885
+ nodeOptions: { cwd: root, detached: true },
223886
+ throwOnError: true
223887
+ });
223888
+ console.log(result.stdout.trimEnd());
223889
+ await events.emit("hook:end", {
223890
+ command,
223891
+ args,
223892
+ id,
223893
+ success: true,
223894
+ error: null
223895
+ });
223896
+ } catch (_err) {
223897
+ const errorMessage = new Error(`Hook execute failed: ${commandWithArgs}`);
223898
+ await events.emit("hook:end", {
223899
+ command,
223900
+ args,
223901
+ id,
223902
+ success: false,
223903
+ error: errorMessage
223904
+ });
223905
+ await events.emit("error", errorMessage);
223906
+ }
223907
+ });
224174
223908
  const { sessionToken, wsUrl, isSandbox } = await createAgentSession({
224175
223909
  noCache,
224176
223910
  token,
@@ -224201,9 +223935,9 @@ const _zcw7I4pYH8OiCfaDcjy_x7I6IH1tLDQR3W_yRZgP6E = defineNitroPlugin(async (nit
224201
223935
  studioUrl,
224202
223936
  token
224203
223937
  }).catch(async () => {
224204
- await storage.removeItem(getSessionKey(token));
224205
- await reconnectToStudio();
224206
223938
  });
223939
+ await storage.removeItem(getSessionKey(token));
223940
+ await reconnectToStudio();
224207
223941
  }
224208
223942
  };
224209
223943
  const cleanup = () => {