@cmmd-center/forge 0.9.0 → 0.9.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 (362) hide show
  1. package/dist/{NodeHttpServer-Bz_E-Tc6.mjs → Mime-B75_d9aw.mjs} +1382 -591
  2. package/dist/{NodeHttpServer-BNIz9o3J.cjs → Mime-aSilaQX9.cjs} +1392 -594
  3. package/dist/NodeHttpServer-C7YMYP5R.cjs +616 -0
  4. package/dist/NodeHttpServer-D5-EtRwc.mjs +605 -0
  5. package/dist/bin.cjs +39802 -32457
  6. package/dist/bin.mjs +33185 -25842
  7. package/dist/{open-DV4yE_Ex.mjs → open-Cf0bgbyx.mjs} +8 -8
  8. package/package.json +35 -41
  9. package/dist/Mime-DScmpfRF.cjs +0 -1400
  10. package/dist/Mime-DyOxeoNi.mjs +0 -1395
  11. package/dist/client/apple-touch-icon.png +0 -0
  12. package/dist/client/apple-touch-icon.png.publish-bak +0 -0
  13. package/dist/client/assets/CanvasPanel-3rA_1Duc.js +0 -441
  14. package/dist/client/assets/CompositeItem-Cri8je9D.js +0 -2
  15. package/dist/client/assets/DiffPanel-DjYjvDqQ.js +0 -64
  16. package/dist/client/assets/DiffPanel.logic-BC-Ita_E.js +0 -21
  17. package/dist/client/assets/DiffPanelShell-RhpdhrM8.js +0 -2531
  18. package/dist/client/assets/DiffWorkerPoolProvider-BxFap7OD.js +0 -73
  19. package/dist/client/assets/PullRequestCodePanel-CNmmm4rN.js +0 -5
  20. package/dist/client/assets/Stream-BMdvXqG9.js +0 -15
  21. package/dist/client/assets/Virtualizer-BXHF0wby.js +0 -2
  22. package/dist/client/assets/__vite-browser-external-2W3EstLn.js +0 -2
  23. package/dist/client/assets/abap-CLvhMVsD.js +0 -2
  24. package/dist/client/assets/actionscript-3--17pq3dv.js +0 -2
  25. package/dist/client/assets/ada-C5qYipkI.js +0 -2
  26. package/dist/client/assets/andromeeda-vGVdxbeo.js +0 -2
  27. package/dist/client/assets/angular-html-B8mrqUL5.js +0 -2
  28. package/dist/client/assets/angular-ts-Bzix210W.js +0 -2
  29. package/dist/client/assets/apache-U0d_L8uA.js +0 -2
  30. package/dist/client/assets/apex-CGTLDQj6.js +0 -2
  31. package/dist/client/assets/apl-Dhin1L29.js +0 -2
  32. package/dist/client/assets/applescript-CCn79oCD.js +0 -2
  33. package/dist/client/assets/ara-4CJ0cIlV.js +0 -2
  34. package/dist/client/assets/asciidoc-DE70LPWp.js +0 -2
  35. package/dist/client/assets/asm-Cmm7eHzH.js +0 -2
  36. package/dist/client/assets/astro-B-4NNgOP.js +0 -2
  37. package/dist/client/assets/atomRegistry-BeRUHdbd.js +0 -3
  38. package/dist/client/assets/aurora-x-CDeNXAV0.js +0 -2
  39. package/dist/client/assets/awk-BWXHIvNe.js +0 -2
  40. package/dist/client/assets/ayu-dark-DluEY0Gj.js +0 -2
  41. package/dist/client/assets/ayu-light-C3h-C4tm.js +0 -2
  42. package/dist/client/assets/ayu-mirage-Bqwy1Gya.js +0 -2
  43. package/dist/client/assets/ballerina-B7ZEbQpA.js +0 -2
  44. package/dist/client/assets/bat-Bo4NYOV-.js +0 -2
  45. package/dist/client/assets/beancount-D-usSTwE.js +0 -2
  46. package/dist/client/assets/berry-DKpUyyne.js +0 -2
  47. package/dist/client/assets/bibtex-Ci_nEsc7.js +0 -2
  48. package/dist/client/assets/bicep-CUHmPFLl.js +0 -2
  49. package/dist/client/assets/bird2-C6vDhewU.js +0 -2
  50. package/dist/client/assets/blade-Wr94ul2N.js +0 -2
  51. package/dist/client/assets/bsl-BkkzgIyY.js +0 -2
  52. package/dist/client/assets/c-iCihek07.js +0 -2
  53. package/dist/client/assets/c3-CnJL0r0V.js +0 -2
  54. package/dist/client/assets/cadence-CQ2zXKGN.js +0 -2
  55. package/dist/client/assets/cairo-DLTphjLi.js +0 -2
  56. package/dist/client/assets/canvasStateStore-CNUwMFbA.js +0 -2
  57. package/dist/client/assets/catppuccin-frappe-3VR1Za6u.js +0 -2
  58. package/dist/client/assets/catppuccin-latte-DwIHMF0Q.js +0 -2
  59. package/dist/client/assets/catppuccin-macchiato-DYnBP6_5.js +0 -2
  60. package/dist/client/assets/catppuccin-mocha-DYhrFGRu.js +0 -2
  61. package/dist/client/assets/clarity-SemFz856.js +0 -2
  62. package/dist/client/assets/clojure-DqKBuwfJ.js +0 -2
  63. package/dist/client/assets/cmake-Bj61d0ZC.js +0 -2
  64. package/dist/client/assets/cmmdAuthRedirect-Csm6xK2d.js +0 -2
  65. package/dist/client/assets/cobol-Cw2-KvLW.js +0 -2
  66. package/dist/client/assets/codeowners-C8r90Shi.js +0 -2
  67. package/dist/client/assets/codeql-oeQT6MSM.js +0 -2
  68. package/dist/client/assets/coffee-CiiSLhB6.js +0 -2
  69. package/dist/client/assets/common-lisp-Cv5bFMCO.js +0 -2
  70. package/dist/client/assets/coq-BrsZFFmf.js +0 -2
  71. package/dist/client/assets/cpp-DjoE5qBx.js +0 -2
  72. package/dist/client/assets/crystal-wCJpIkgB.js +0 -2
  73. package/dist/client/assets/csharp-Ct8U2NOr.js +0 -2
  74. package/dist/client/assets/css-CNuuLpMC.js +0 -2
  75. package/dist/client/assets/csv-Dx-8-gkx.js +0 -2
  76. package/dist/client/assets/cue-CE9AQfxI.js +0 -2
  77. package/dist/client/assets/cypher-ClKdZ_lG.js +0 -2
  78. package/dist/client/assets/d-qD-0Kul2.js +0 -2
  79. package/dist/client/assets/dark-plus-Cs2F2srj.js +0 -2
  80. package/dist/client/assets/dart-CnvKMtbv.js +0 -2
  81. package/dist/client/assets/dax-BkyTk9wS.js +0 -2
  82. package/dist/client/assets/desktop-Dlh5hvp9.js +0 -2
  83. package/dist/client/assets/diff-woXpYk--.js +0 -2
  84. package/dist/client/assets/docker-IyjqRm3v.js +0 -2
  85. package/dist/client/assets/dotenv-_5a1GRtc.js +0 -2
  86. package/dist/client/assets/dracula-BHWKrbxM.js +0 -2
  87. package/dist/client/assets/dracula-soft-5eyTD99u.js +0 -2
  88. package/dist/client/assets/dream-maker-DW3nJb8Q.js +0 -2
  89. package/dist/client/assets/edge-DCY0a-ow.js +0 -2
  90. package/dist/client/assets/elixir-DP304Xio.js +0 -2
  91. package/dist/client/assets/elm-o4NJxfws.js +0 -2
  92. package/dist/client/assets/emacs-lisp-B4R74twV.js +0 -2
  93. package/dist/client/assets/erb-BcNYoZVd.js +0 -2
  94. package/dist/client/assets/erlang-Cphh6RMH.js +0 -2
  95. package/dist/client/assets/everforest-dark-sB-x3p7T.js +0 -2
  96. package/dist/client/assets/everforest-light-Df2xbC6M.js +0 -2
  97. package/dist/client/assets/fennel-DQxkIbk2.js +0 -2
  98. package/dist/client/assets/fish-BJitypiv.js +0 -2
  99. package/dist/client/assets/fluent-C03EYrpw.js +0 -2
  100. package/dist/client/assets/fortran-fixed-form-DEKoE2YW.js +0 -2
  101. package/dist/client/assets/fortran-free-form-CYNrtFtB.js +0 -2
  102. package/dist/client/assets/fsharp-D13ZGOAj.js +0 -2
  103. package/dist/client/assets/gdresource-C0sCabJj.js +0 -2
  104. package/dist/client/assets/gdscript-Cp2uCuqX.js +0 -2
  105. package/dist/client/assets/gdshader-CBce3t8t.js +0 -2
  106. package/dist/client/assets/genie-CV2tkWYe.js +0 -2
  107. package/dist/client/assets/gherkin-DExj1W_8.js +0 -2
  108. package/dist/client/assets/git-commit-BSykSTBG.js +0 -2
  109. package/dist/client/assets/git-rebase-BDPpS8w6.js +0 -2
  110. package/dist/client/assets/github-dark-C-LZuMrd.js +0 -2
  111. package/dist/client/assets/github-dark-default-DXG-b-1a.js +0 -2
  112. package/dist/client/assets/github-dark-dimmed-Bx1FflLF.js +0 -2
  113. package/dist/client/assets/github-dark-high-contrast-B_tTalzw.js +0 -2
  114. package/dist/client/assets/github-light-EUqPIrTm.js +0 -2
  115. package/dist/client/assets/github-light-default-BXViO-2h.js +0 -2
  116. package/dist/client/assets/github-light-high-contrast-B68TUdTA.js +0 -2
  117. package/dist/client/assets/gleam-CSRkHgEL.js +0 -2
  118. package/dist/client/assets/glimmer-js-BONyzAsu.js +0 -2
  119. package/dist/client/assets/glimmer-ts-f9c0GCOe.js +0 -2
  120. package/dist/client/assets/glsl-D5MA2a_X.js +0 -2
  121. package/dist/client/assets/gn-ilITqXS6.js +0 -2
  122. package/dist/client/assets/gnuplot-7GGW24-e.js +0 -2
  123. package/dist/client/assets/go-rLFTqkRN.js +0 -2
  124. package/dist/client/assets/graphql-Ctjuxyvl.js +0 -2
  125. package/dist/client/assets/groovy-CacY0gHj.js +0 -2
  126. package/dist/client/assets/gruvbox-dark-hard-C820rvS2.js +0 -2
  127. package/dist/client/assets/gruvbox-dark-medium-BPjhmG05.js +0 -2
  128. package/dist/client/assets/gruvbox-dark-soft-MrdJrrXF.js +0 -2
  129. package/dist/client/assets/gruvbox-light-hard-BC_s9l72.js +0 -2
  130. package/dist/client/assets/gruvbox-light-medium-BAWPOn9u.js +0 -2
  131. package/dist/client/assets/gruvbox-light-soft-BSMLrYjP.js +0 -2
  132. package/dist/client/assets/hack-7ztQ7Up-.js +0 -2
  133. package/dist/client/assets/haml-CwEpbK1d.js +0 -2
  134. package/dist/client/assets/handlebars-ryMP1rBR.js +0 -2
  135. package/dist/client/assets/haskell-D8IpX4py.js +0 -2
  136. package/dist/client/assets/haxe-OTjmBuCE.js +0 -2
  137. package/dist/client/assets/hcl-Dh228itO.js +0 -2
  138. package/dist/client/assets/hjson-CxZEssPk.js +0 -2
  139. package/dist/client/assets/hlsl-Cvrh5tZx.js +0 -2
  140. package/dist/client/assets/horizon-CE9ld1lL.js +0 -2
  141. package/dist/client/assets/horizon-bright-DSNQnXHK.js +0 -2
  142. package/dist/client/assets/houston-CsvMBhTu.js +0 -2
  143. package/dist/client/assets/html-XwrE-1r6.js +0 -2
  144. package/dist/client/assets/html-derivative-i4STDFnl.js +0 -2
  145. package/dist/client/assets/html2canvas-CA7kyov8.js +0 -6
  146. package/dist/client/assets/http-kmH8AyfE.js +0 -2
  147. package/dist/client/assets/hurl-DCZHXKU4.js +0 -2
  148. package/dist/client/assets/hxml-B0Qn7Nwc.js +0 -2
  149. package/dist/client/assets/hy-CZbG8q4J.js +0 -2
  150. package/dist/client/assets/imba-DsUTQ-LC.js +0 -2
  151. package/dist/client/assets/index-BpibLjVJ.js +0 -151
  152. package/dist/client/assets/index-Cgryohjr.css +0 -1
  153. package/dist/client/assets/index.es-DH1ipSb3.js +0 -6
  154. package/dist/client/assets/ini-B5eOa1yu.js +0 -2
  155. package/dist/client/assets/java-DdHNQ9hk.js +0 -2
  156. package/dist/client/assets/javascript-obGGvMPs.js +0 -2
  157. package/dist/client/assets/jinja-B-tLrNsM.js +0 -2
  158. package/dist/client/assets/jison-CBjhYtSs.js +0 -2
  159. package/dist/client/assets/json-DAgxKhMr.js +0 -2
  160. package/dist/client/assets/json5-BR5RXkoi.js +0 -2
  161. package/dist/client/assets/jsonc-CYpm1nAK.js +0 -2
  162. package/dist/client/assets/jsonl-CmCQp5Yx.js +0 -2
  163. package/dist/client/assets/jsonnet-CJTPZ8u_.js +0 -2
  164. package/dist/client/assets/jspdf.es.min-Hx4pHu4X.js +0 -80
  165. package/dist/client/assets/jssm-DXw9l8Rf.js +0 -2
  166. package/dist/client/assets/jsx-gTgmArGx.js +0 -2
  167. package/dist/client/assets/julia-CjHxn3vf.js +0 -2
  168. package/dist/client/assets/just-CZ9bduw9.js +0 -2
  169. package/dist/client/assets/kanagawa-dragon-CXtmUGW6.js +0 -2
  170. package/dist/client/assets/kanagawa-lotus-BN08jTvb.js +0 -2
  171. package/dist/client/assets/kanagawa-wave-CTweb8Dz.js +0 -2
  172. package/dist/client/assets/kdl-CsD5j6eV.js +0 -2
  173. package/dist/client/assets/kotlin-DhhofPvG.js +0 -2
  174. package/dist/client/assets/kusto-C7mF5XQf.js +0 -2
  175. package/dist/client/assets/laserwave-C_8bwKvT.js +0 -2
  176. package/dist/client/assets/latex-D9bvcAJr.js +0 -2
  177. package/dist/client/assets/lean-CewbzKMR.js +0 -2
  178. package/dist/client/assets/less-DVTAwKKz.js +0 -2
  179. package/dist/client/assets/light-plus-DVQuIRkW.js +0 -2
  180. package/dist/client/assets/liquid-G0MH4h_m.js +0 -2
  181. package/dist/client/assets/llvm-Cm23YOpf.js +0 -2
  182. package/dist/client/assets/log-BNLmms1o.js +0 -2
  183. package/dist/client/assets/logo-Cluzi2Zq.js +0 -2
  184. package/dist/client/assets/lua-FONpmTUP.js +0 -2
  185. package/dist/client/assets/luau-CNKltnaQ.js +0 -2
  186. package/dist/client/assets/make-Dixweg8N.js +0 -2
  187. package/dist/client/assets/markdown-BYOwaDjH.js +0 -2
  188. package/dist/client/assets/marko-DV5GrDmo.js +0 -2
  189. package/dist/client/assets/material-theme-Bm3Qr25_.js +0 -2
  190. package/dist/client/assets/material-theme-darker-2IIEA8gg.js +0 -2
  191. package/dist/client/assets/material-theme-lighter-uhdI0v04.js +0 -2
  192. package/dist/client/assets/material-theme-ocean-CHQ94UKr.js +0 -2
  193. package/dist/client/assets/material-theme-palenight-B5W6OYN7.js +0 -2
  194. package/dist/client/assets/matlab-D7qyCx1q.js +0 -2
  195. package/dist/client/assets/mdc-cg1lnqpW.js +0 -2
  196. package/dist/client/assets/mdx-DQZ5AkYe.js +0 -2
  197. package/dist/client/assets/mermaid-Bk4SNUv9.js +0 -2
  198. package/dist/client/assets/min-dark-BSWPekZh.js +0 -2
  199. package/dist/client/assets/min-light-DDpmG2fV.js +0 -2
  200. package/dist/client/assets/mipsasm-BMqwQI7S.js +0 -2
  201. package/dist/client/assets/module-CPO4cjSm.js +0 -4
  202. package/dist/client/assets/mojo-BgCJLMeH.js +0 -2
  203. package/dist/client/assets/monokai-CdkpiU2Y.js +0 -2
  204. package/dist/client/assets/moonbit-CaWjb8XO.js +0 -2
  205. package/dist/client/assets/move-B1IS1UjX.js +0 -2
  206. package/dist/client/assets/narrat-_X_XdTYD.js +0 -2
  207. package/dist/client/assets/nextflow-BJtWHP5T.js +0 -2
  208. package/dist/client/assets/nextflow-groovy-DJMQeKeT.js +0 -2
  209. package/dist/client/assets/nginx-BTMw9COX.js +0 -2
  210. package/dist/client/assets/night-owl-DhmEMT88.js +0 -2
  211. package/dist/client/assets/night-owl-light-eJ-hLW7d.js +0 -2
  212. package/dist/client/assets/nim-B6yJ_yaC.js +0 -2
  213. package/dist/client/assets/nix-IvuFDN5E.js +0 -2
  214. package/dist/client/assets/nord-Cb4Vim4T.js +0 -2
  215. package/dist/client/assets/nushell-DcLAeLz5.js +0 -2
  216. package/dist/client/assets/objective-c-D1A_Heim.js +0 -2
  217. package/dist/client/assets/objective-cpp-BsSzOQcm.js +0 -2
  218. package/dist/client/assets/ocaml-O90oeIOV.js +0 -2
  219. package/dist/client/assets/odin-B1RWQWA5.js +0 -2
  220. package/dist/client/assets/one-dark-pro-CLwyXe_n.js +0 -2
  221. package/dist/client/assets/one-light-D7Lr4KcI.js +0 -2
  222. package/dist/client/assets/openscad-BUDT5pXO.js +0 -2
  223. package/dist/client/assets/pascal-4ZHwLPI5.js +0 -2
  224. package/dist/client/assets/perl-BAov3eih.js +0 -2
  225. package/dist/client/assets/php-Cg76ANFt.js +0 -2
  226. package/dist/client/assets/pierre-dark-CpLgRqie.js +0 -2
  227. package/dist/client/assets/pierre-dark-protanopia-deuteranopia-B35FxJx-.js +0 -2
  228. package/dist/client/assets/pierre-dark-soft-kZQmAZld.js +0 -2
  229. package/dist/client/assets/pierre-dark-tritanopia-CpjhbsIL.js +0 -2
  230. package/dist/client/assets/pierre-dark-vibrant-CpQYzh95.js +0 -2
  231. package/dist/client/assets/pierre-light-CoaEpmwp.js +0 -2
  232. package/dist/client/assets/pierre-light-protanopia-deuteranopia-0fSaH845.js +0 -2
  233. package/dist/client/assets/pierre-light-soft-lWLdNTOI.js +0 -2
  234. package/dist/client/assets/pierre-light-tritanopia-CEbqgOJL.js +0 -2
  235. package/dist/client/assets/pierre-light-vibrant-D80Fkn33.js +0 -2
  236. package/dist/client/assets/pkl-ot-7Btpt.js +0 -2
  237. package/dist/client/assets/plastic-DQwYfKfQ.js +0 -2
  238. package/dist/client/assets/plsql-DGHpHOYJ.js +0 -2
  239. package/dist/client/assets/po-BiJDBrnU.js +0 -2
  240. package/dist/client/assets/poimandres-DRFjx7u4.js +0 -2
  241. package/dist/client/assets/polar-C7UOKdEL.js +0 -2
  242. package/dist/client/assets/postcss-BXeXVLqQ.js +0 -2
  243. package/dist/client/assets/powerquery-DNMTfnFr.js +0 -2
  244. package/dist/client/assets/powershell-DshXNtvi.js +0 -2
  245. package/dist/client/assets/preload-helper-Czpn1I53.js +0 -1
  246. package/dist/client/assets/prisma-BsRQq5mF.js +0 -2
  247. package/dist/client/assets/prolog-iXnhIJG7.js +0 -2
  248. package/dist/client/assets/proto-DB4EqR-F.js +0 -2
  249. package/dist/client/assets/pug-DkgDHZci.js +0 -2
  250. package/dist/client/assets/puppet-CDv2pdJW.js +0 -2
  251. package/dist/client/assets/purescript-9MfHhQsQ.js +0 -2
  252. package/dist/client/assets/purify.es-BlKBIatO.js +0 -4
  253. package/dist/client/assets/python-gzcpVVnB.js +0 -2
  254. package/dist/client/assets/qml-_a-QhfPD.js +0 -2
  255. package/dist/client/assets/qmldir-DCQb3MpD.js +0 -2
  256. package/dist/client/assets/qss-Fe1Jh2GI.js +0 -2
  257. package/dist/client/assets/r-D6UWEOL2.js +0 -2
  258. package/dist/client/assets/racket-DcIDlBhZ.js +0 -2
  259. package/dist/client/assets/raku-B3gFvitq.js +0 -2
  260. package/dist/client/assets/razor-D3EoCAik.js +0 -2
  261. package/dist/client/assets/red-CJ3rzSJv.js +0 -2
  262. package/dist/client/assets/reg-CRGYupPL.js +0 -2
  263. package/dist/client/assets/regexp-DR20uMnK.js +0 -2
  264. package/dist/client/assets/rel-BtDbiS_P.js +0 -2
  265. package/dist/client/assets/riscv-Ckw8ddFX.js +0 -2
  266. package/dist/client/assets/rolldown-runtime-hePW80VL.js +0 -1
  267. package/dist/client/assets/ron-VUp2lXgN.js +0 -2
  268. package/dist/client/assets/rose-pine-BthvhNj6.js +0 -2
  269. package/dist/client/assets/rose-pine-dawn-Dg85fqjY.js +0 -2
  270. package/dist/client/assets/rose-pine-moon-hon4tzzS.js +0 -2
  271. package/dist/client/assets/rosmsg-CAekHB0j.js +0 -2
  272. package/dist/client/assets/rst-YTmaoyaq.js +0 -2
  273. package/dist/client/assets/ruby-2bd251b9.js +0 -2
  274. package/dist/client/assets/rust-Cfkwpbl8.js +0 -2
  275. package/dist/client/assets/sas-B6p8-ynO.js +0 -2
  276. package/dist/client/assets/sass-DXrisJhu.js +0 -2
  277. package/dist/client/assets/scala-DKOlJaKm.js +0 -2
  278. package/dist/client/assets/scheme-DQCgrYNe.js +0 -2
  279. package/dist/client/assets/scss-YesllqfO.js +0 -2
  280. package/dist/client/assets/sdbl-bTVj8UrX.js +0 -2
  281. package/dist/client/assets/shaderlab-TOUzSsQk.js +0 -2
  282. package/dist/client/assets/shellscript-Da78Ox-3.js +0 -2
  283. package/dist/client/assets/shellsession-CVsQGYfZ.js +0 -2
  284. package/dist/client/assets/slack-dark-DnToyrRv.js +0 -2
  285. package/dist/client/assets/slack-ochin-B2OO5cIa.js +0 -2
  286. package/dist/client/assets/smalltalk-B16xEiuN.js +0 -2
  287. package/dist/client/assets/snazzy-light-4G7pJPwS.js +0 -2
  288. package/dist/client/assets/solarized-dark-DV17i1UV.js +0 -2
  289. package/dist/client/assets/solarized-light-DSh2HLQt.js +0 -2
  290. package/dist/client/assets/solidity-CKzVLygQ.js +0 -2
  291. package/dist/client/assets/soy-DEd-qcad.js +0 -2
  292. package/dist/client/assets/sparql-D_iOobhT.js +0 -2
  293. package/dist/client/assets/splunk-BC2Px7Mm.js +0 -2
  294. package/dist/client/assets/sql-ClgswhA6.js +0 -2
  295. package/dist/client/assets/src-DIz6MF7Y.js +0 -3
  296. package/dist/client/assets/ssh-config-BgfXC-Er.js +0 -2
  297. package/dist/client/assets/stata-RoaAgbqU.js +0 -2
  298. package/dist/client/assets/stylus-B6D30XZt.js +0 -2
  299. package/dist/client/assets/surrealql-DIn4NJsS.js +0 -2
  300. package/dist/client/assets/svelte-Bj3Hmc9F.js +0 -2
  301. package/dist/client/assets/swift-DonLKvLd.js +0 -2
  302. package/dist/client/assets/synthwave-84-nFMaYfgc.js +0 -2
  303. package/dist/client/assets/system-verilog-DJ5XKQeo.js +0 -2
  304. package/dist/client/assets/systemd-BxMlprV5.js +0 -2
  305. package/dist/client/assets/talonscript-CohzipZa.js +0 -2
  306. package/dist/client/assets/tasl-DMoTqEGO.js +0 -2
  307. package/dist/client/assets/tcl-CZd0xW_V.js +0 -2
  308. package/dist/client/assets/templ-TjxbArHn.js +0 -2
  309. package/dist/client/assets/terraform-DswuEJGm.js +0 -2
  310. package/dist/client/assets/tex-0w6-Dtgt.js +0 -2
  311. package/dist/client/assets/toggle-Cs1dDm-P.js +0 -2
  312. package/dist/client/assets/tokyo-night-oM2G3aXe.js +0 -2
  313. package/dist/client/assets/toml-CcmNWLt0.js +0 -2
  314. package/dist/client/assets/transport-CgH8pQK3.js +0 -2
  315. package/dist/client/assets/ts-tags-DFwAVxhO.js +0 -2
  316. package/dist/client/assets/tsv-sltzmVWM.js +0 -2
  317. package/dist/client/assets/tsx-CUOciP0b.js +0 -2
  318. package/dist/client/assets/turtle-ByJddavk.js +0 -2
  319. package/dist/client/assets/twig-BbcH-NR0.js +0 -2
  320. package/dist/client/assets/typeof-B5XbjTb1.js +0 -2
  321. package/dist/client/assets/typescript-BydbNFcO.js +0 -2
  322. package/dist/client/assets/typespec-BRdr0IET.js +0 -2
  323. package/dist/client/assets/typst-DI99ib-x.js +0 -2
  324. package/dist/client/assets/useTriggerFocusGuards-w66TPlKd.js +0 -2
  325. package/dist/client/assets/v-DETTlOr0.js +0 -2
  326. package/dist/client/assets/vala-zf12oZj6.js +0 -2
  327. package/dist/client/assets/vb-Djn5o6TS.js +0 -2
  328. package/dist/client/assets/verilog-CiiDBU1e.js +0 -2
  329. package/dist/client/assets/vesper-D5bVUKB1.js +0 -2
  330. package/dist/client/assets/vhdl-BroJfC0k.js +0 -2
  331. package/dist/client/assets/viml-DvXPmvsu.js +0 -2
  332. package/dist/client/assets/vitesse-black-fwtXNY1n.js +0 -2
  333. package/dist/client/assets/vitesse-dark-BZCL-v6S.js +0 -2
  334. package/dist/client/assets/vitesse-light-VbXTXTou.js +0 -2
  335. package/dist/client/assets/vue-BNi0qJZP.js +0 -2
  336. package/dist/client/assets/vue-html-DkKkQnZL.js +0 -2
  337. package/dist/client/assets/vue-vine-DFaKYU4X.js +0 -2
  338. package/dist/client/assets/vyper-CgoNMtux.js +0 -2
  339. package/dist/client/assets/wasm-BnjxR4X6.js +0 -2
  340. package/dist/client/assets/wasm-ByWQv1Qj.js +0 -2
  341. package/dist/client/assets/wenyan-C8pVoKbM.js +0 -2
  342. package/dist/client/assets/wgsl-BsKzXJz4.js +0 -2
  343. package/dist/client/assets/wikitext-ClFFjSW2.js +0 -2
  344. package/dist/client/assets/wit-DdvCle-K.js +0 -2
  345. package/dist/client/assets/wolfram-DLL8P-h_.js +0 -2
  346. package/dist/client/assets/worker-Cvq2iJN1.js +0 -162
  347. package/dist/client/assets/workspaceReadinessAtom-BTyIyjks.js +0 -2
  348. package/dist/client/assets/xml-BlnrEAEy.js +0 -2
  349. package/dist/client/assets/xsl-BOPS8gLt.js +0 -2
  350. package/dist/client/assets/yaml-Du_6cdrH.js +0 -2
  351. package/dist/client/assets/zenscript-BnlCZFoB.js +0 -2
  352. package/dist/client/assets/zig-CMLA9XwU.js +0 -2
  353. package/dist/client/favicon-16x16.png +0 -0
  354. package/dist/client/favicon-16x16.png.publish-bak +0 -0
  355. package/dist/client/favicon-32x32.png +0 -0
  356. package/dist/client/favicon-32x32.png.publish-bak +0 -0
  357. package/dist/client/favicon.ico +0 -0
  358. package/dist/client/favicon.ico.publish-bak +0 -0
  359. package/dist/client/forge-mark.svg +0 -5
  360. package/dist/client/index.html +0 -131
  361. package/dist/client/mockServiceWorker.js +0 -336
  362. package/dist/client/sidebar/forge-ember-field.webp +0 -0
@@ -0,0 +1,605 @@
1
+ #!/usr/bin/env node
2
+
3
+ import { $r as scope, Da as addFinalizer, Dr as matchCauseEffect, Ei as void_, Hn as die, Jr as runForkWith, Js as seconds, Kn as fail, Oa as addFinalizerExit, On as cached, Pa as provide$1, Qn as flatMap, Qr as runSync, Rc as makeUnsafe, Sa as succeed$1, Sr as map, Wc as fromNullishOr, Yl as flow, Zl as pipe, _i as tryPromise, _n as acquireRelease, ai as succeed, ba as provide, ci as suspend, di as tapCause, fa as effect, ga as fresh, gi as timeoutOrElse, ja as forkUnsafe, ki as withFiber, kn as callback, li as sync, lo as combine, nr as fnUntraced, pr as interruptible, qn as failCause, uo as die$1, vi as try_, vl as Class, xa as provideMerge, ya as mergeAll } from "./Schema-CTXk8IgN.mjs";
4
+ import { Ht as makeUnsafe$1, M as map$1, q as runForEachArray, qt as runIn, rt as unwrap, z as orDie } from "./Path-Bwl3ltR5.mjs";
5
+ import { f as fromReadable, h as toUint8Array, m as toString, p as toArrayBuffer } from "./NodeTerminal-_XekCzf-.mjs";
6
+ import { n as layer$3, r as layer$2 } from "./NodeServices-Bqqy4DuH.mjs";
7
+ import { $ as raw, At as toSetCookieHeaders, B as causeResponse, C as toPersisted, Ct as fromInput$1, Dt as merge, Et as fromRecordUnsafe, F as HttpServerError, H as layer$5, I as RequestParseError, K as layer$4, L as ResponseError, M as fromWebSocket, Ot as isEmpty, P as ClientAbort, S as makeConfig, T as make$4, Tt as fromInput, V as RequestInit, b as TypeId$1, dt as TypeId, ft as inspect, h as TypeId$2, kt as parseHeader, l as toHandled, n as layerTestClient, o as HttpPlatform, p as HttpServerRequest, q as layerWeak, r as make$5, s as make$3, t as HttpServer, ut as MaxBodySize, w as decodeField, y as MultipartError, z as ServeError } from "./HttpServer-ByyNdEXm.mjs";
8
+ import { h as unwrap$1 } from "./Config-DrOyN3WS.mjs";
9
+ import { n as import_websocket_server, t as Mime_default } from "./Mime-B75_d9aw.mjs";
10
+ import { Duplex, Readable } from "node:stream";
11
+ import * as Fs from "node:fs";
12
+ import * as Http from "node:http";
13
+ import * as NodeStreamP from "node:stream/promises";
14
+ import { pipeline } from "node:stream/promises";
15
+ //#region ../../node_modules/.bun/@effect+platform-node@4.0.0-beta.45+6a386fbfc71a3ef3/node_modules/@effect/platform-node/dist/NodeHttpIncomingMessage.js
16
+ /**
17
+ * @since 1.0.0
18
+ */
19
+ /**
20
+ * @since 1.0.0
21
+ * @category Constructors
22
+ */
23
+ var NodeHttpIncomingMessage = class extends Class {
24
+ /**
25
+ * @since 1.0.0
26
+ */
27
+ [TypeId];
28
+ source;
29
+ onError;
30
+ remoteAddressOverride;
31
+ constructor(source, onError, remoteAddressOverride) {
32
+ super();
33
+ this[TypeId] = TypeId;
34
+ this.source = source;
35
+ this.onError = onError;
36
+ this.remoteAddressOverride = remoteAddressOverride;
37
+ }
38
+ get headers() {
39
+ return fromInput(this.source.headers);
40
+ }
41
+ get remoteAddress() {
42
+ return this.remoteAddressOverride ?? fromNullishOr(this.source.socket.remoteAddress);
43
+ }
44
+ textEffect;
45
+ get text() {
46
+ if (this.textEffect) return this.textEffect;
47
+ this.textEffect = runSync(cached(flatMap(MaxBodySize.asEffect(), (maxBodySize) => toString(() => this.source, {
48
+ onError: this.onError,
49
+ maxBytes: maxBodySize
50
+ }))));
51
+ return this.textEffect;
52
+ }
53
+ get textUnsafe() {
54
+ return runSync(this.text);
55
+ }
56
+ get json() {
57
+ return flatMap(this.text, (text) => try_({
58
+ try: () => text === "" ? null : JSON.parse(text),
59
+ catch: this.onError
60
+ }));
61
+ }
62
+ get jsonUnsafe() {
63
+ return runSync(this.json);
64
+ }
65
+ get urlParamsBody() {
66
+ return flatMap(this.text, (_) => try_({
67
+ try: () => fromInput$1(new URLSearchParams(_)),
68
+ catch: this.onError
69
+ }));
70
+ }
71
+ get stream() {
72
+ return fromReadable({
73
+ evaluate: () => this.source,
74
+ onError: this.onError
75
+ });
76
+ }
77
+ get arrayBuffer() {
78
+ return withFiber((fiber) => toArrayBuffer(() => this.source, {
79
+ onError: this.onError,
80
+ maxBytes: fiber.getRef(MaxBodySize)
81
+ }));
82
+ }
83
+ };
84
+ //#endregion
85
+ //#region ../../node_modules/.bun/@effect+platform-node@4.0.0-beta.45+6a386fbfc71a3ef3/node_modules/@effect/platform-node/dist/NodeHttpPlatform.js
86
+ /**
87
+ * @since 1.0.0
88
+ */
89
+ /**
90
+ * @since 1.0.0
91
+ * @category Constructors
92
+ */
93
+ const make$2 = /* @__PURE__ */ make$3({
94
+ fileResponse(path, status, statusText, headers, start, end, contentLength) {
95
+ return raw(contentLength === 0 ? Readable.from([]) : Fs.createReadStream(path, {
96
+ start,
97
+ end: end === void 0 ? void 0 : end - 1
98
+ }), {
99
+ headers: {
100
+ ...headers,
101
+ "content-type": headers["content-type"] ?? Mime_default.getType(path) ?? "application/octet-stream",
102
+ "content-length": contentLength.toString()
103
+ },
104
+ status,
105
+ statusText
106
+ });
107
+ },
108
+ fileWebResponse(file, status, statusText, headers, _options) {
109
+ return raw(Readable.fromWeb(file.stream()), {
110
+ headers: merge(headers, fromRecordUnsafe({
111
+ "content-type": headers["content-type"] ?? Mime_default.getType(file.name) ?? "application/octet-stream",
112
+ "content-length": file.size.toString()
113
+ })),
114
+ status,
115
+ statusText
116
+ });
117
+ }
118
+ });
119
+ /**
120
+ * @since 1.0.0
121
+ * @category Layers
122
+ */
123
+ const layer$1 = /* @__PURE__ */ pipe(/* @__PURE__ */ effect(HttpPlatform)(make$2), /* @__PURE__ */ provide(layer$2), /* @__PURE__ */ provide(layer$4));
124
+ //#endregion
125
+ //#region ../../node_modules/.bun/multipasta@0.2.7/node_modules/multipasta/dist/esm/node.js
126
+ var MultipastaStream = class extends Duplex {
127
+ _parser;
128
+ _canWrite = true;
129
+ _writeCallback;
130
+ constructor(config) {
131
+ super({ readableObjectMode: true });
132
+ let currentError;
133
+ let currentFile;
134
+ this._parser = make$4({
135
+ ...config,
136
+ onField: (info, value) => {
137
+ if (currentError !== void 0) return;
138
+ const field = {
139
+ _tag: "Field",
140
+ info,
141
+ value
142
+ };
143
+ this.push(field);
144
+ this.emit("field", field);
145
+ },
146
+ onFile: (info) => {
147
+ if (currentError !== void 0) return (_) => {};
148
+ const file = new FileStream(info, this);
149
+ currentFile = file;
150
+ this.push(file);
151
+ this.emit("file", file);
152
+ return (chunk) => {
153
+ this._canWrite = file.push(chunk);
154
+ if (chunk === null && !this._canWrite) {
155
+ currentFile = void 0;
156
+ this._resume();
157
+ }
158
+ };
159
+ },
160
+ onError: (error) => {
161
+ this.emit("error", error);
162
+ currentFile?.emit("error", error);
163
+ currentError = error;
164
+ },
165
+ onDone: () => {
166
+ this.push(null);
167
+ }
168
+ });
169
+ }
170
+ _resume() {
171
+ this._canWrite = true;
172
+ if (this._writeCallback !== void 0) {
173
+ const callback = this._writeCallback;
174
+ this._writeCallback = void 0;
175
+ callback();
176
+ }
177
+ }
178
+ _read(_size) {}
179
+ _write(chunk, encoding, callback) {
180
+ this._parser.write(chunk instanceof Uint8Array ? chunk : Buffer.from(chunk, encoding));
181
+ if (this._canWrite) callback();
182
+ else this._writeCallback = callback;
183
+ }
184
+ _final(callback) {
185
+ this._parser.end();
186
+ callback();
187
+ }
188
+ };
189
+ const make$1 = (config) => new MultipastaStream(config);
190
+ var FileStream = class extends Readable {
191
+ info;
192
+ _parent;
193
+ _tag = "File";
194
+ filename;
195
+ constructor(info, _parent) {
196
+ super();
197
+ this.info = info;
198
+ this._parent = _parent;
199
+ this.filename = info.filename;
200
+ }
201
+ _read(_size) {
202
+ if (this._parent._canWrite === false) this._parent._resume();
203
+ }
204
+ };
205
+ //#endregion
206
+ //#region ../../node_modules/.bun/@effect+platform-node@4.0.0-beta.45+6a386fbfc71a3ef3/node_modules/@effect/platform-node/dist/NodeMultipart.js
207
+ /**
208
+ * @since 1.0.0
209
+ */
210
+ /**
211
+ * @since 1.0.0
212
+ * @category constructors
213
+ */
214
+ const stream = (source, headers) => makeConfig(headers).pipe(map((config) => fromReadable({
215
+ evaluate() {
216
+ const parser = make$1(config);
217
+ source.pipe(parser);
218
+ return parser;
219
+ },
220
+ onError: (error) => convertError(error)
221
+ })), unwrap, map$1(convertPart));
222
+ /**
223
+ * @since 1.0.0
224
+ * @category constructors
225
+ */
226
+ const persisted = (source, headers) => toPersisted(stream(source, headers), (path, file) => tryPromise({
227
+ try: (signal) => NodeStreamP.pipeline(file.file, Fs.createWriteStream(path), { signal }),
228
+ catch: (cause) => MultipartError.fromReason("InternalError", cause)
229
+ }));
230
+ const convertPart = (part) => part._tag === "Field" ? new FieldImpl(part.info, part.value) : new FileImpl(part);
231
+ var PartBase = class extends Class {
232
+ [TypeId$1];
233
+ constructor() {
234
+ super();
235
+ this[TypeId$1] = TypeId$1;
236
+ }
237
+ };
238
+ var FieldImpl = class extends PartBase {
239
+ _tag = "Field";
240
+ key;
241
+ contentType;
242
+ value;
243
+ constructor(info, value) {
244
+ super();
245
+ this.key = info.name;
246
+ this.contentType = info.contentType;
247
+ this.value = decodeField(info, value);
248
+ }
249
+ toJSON() {
250
+ return {
251
+ _id: "@effect/platform/Multipart/Part",
252
+ _tag: "Field",
253
+ key: this.key,
254
+ value: this.value,
255
+ contentType: this.contentType
256
+ };
257
+ }
258
+ };
259
+ var FileImpl = class extends PartBase {
260
+ _tag = "File";
261
+ key;
262
+ name;
263
+ contentType;
264
+ content;
265
+ contentEffect;
266
+ file;
267
+ constructor(file) {
268
+ super();
269
+ this.file = file;
270
+ this.key = file.info.name;
271
+ this.name = file.filename ?? file.info.name;
272
+ this.contentType = file.info.contentType;
273
+ this.content = fromReadable({
274
+ evaluate: () => file,
275
+ onError: (cause) => MultipartError.fromReason("InternalError", cause)
276
+ });
277
+ this.contentEffect = toUint8Array(() => file, { onError: (cause) => MultipartError.fromReason("InternalError", cause) });
278
+ }
279
+ toJSON() {
280
+ return {
281
+ _id: "@effect/platform/Multipart/Part",
282
+ _tag: "File",
283
+ key: this.key,
284
+ name: this.name,
285
+ contentType: this.contentType
286
+ };
287
+ }
288
+ };
289
+ function convertError(cause) {
290
+ switch (cause._tag) {
291
+ case "ReachedLimit": switch (cause.limit) {
292
+ case "MaxParts": return MultipartError.fromReason("TooManyParts", cause);
293
+ case "MaxFieldSize": return MultipartError.fromReason("FieldTooLarge", cause);
294
+ case "MaxPartSize": return MultipartError.fromReason("FileTooLarge", cause);
295
+ case "MaxTotalSize": return MultipartError.fromReason("BodyTooLarge", cause);
296
+ }
297
+ default: return MultipartError.fromReason("Parse", cause);
298
+ }
299
+ }
300
+ //#endregion
301
+ //#region ../../node_modules/.bun/@effect+platform-node@4.0.0-beta.45+6a386fbfc71a3ef3/node_modules/@effect/platform-node/dist/NodeHttpServer.js
302
+ /**
303
+ * @since 1.0.0
304
+ */
305
+ /**
306
+ * @since 1.0.0
307
+ * @category constructors
308
+ */
309
+ const make = /* @__PURE__ */ fnUntraced(function* (evaluate, options) {
310
+ const scope$1 = yield* scope;
311
+ const server = evaluate();
312
+ const shutdown = yield* callback((resume) => {
313
+ if (!server.listening) return resume(void_);
314
+ server.close((error) => {
315
+ if (error) resume(die(error));
316
+ else resume(void_);
317
+ });
318
+ }).pipe(cached);
319
+ const preemptiveShutdown = options.disablePreemptiveShutdown ? void_ : timeoutOrElse(shutdown, {
320
+ duration: options.gracefulShutdownTimeout ?? seconds(20),
321
+ orElse: () => void_
322
+ });
323
+ yield* addFinalizer(scope$1, shutdown);
324
+ yield* callback((resume) => {
325
+ function onError(cause) {
326
+ resume(fail(new ServeError({ cause })));
327
+ }
328
+ server.on("error", onError);
329
+ server.listen(options, () => {
330
+ server.off("error", onError);
331
+ resume(void_);
332
+ });
333
+ });
334
+ const address = server.address();
335
+ const wss = yield* acquireRelease(sync(() => new import_websocket_server.default({ noServer: true })), (wss) => callback((resume) => {
336
+ wss.close(() => resume(void_));
337
+ })).pipe(provide$1(scope$1), cached);
338
+ return make$5({
339
+ address: typeof address === "string" ? {
340
+ _tag: "UnixAddress",
341
+ path: address
342
+ } : {
343
+ _tag: "TcpAddress",
344
+ hostname: address.address === "::" ? "0.0.0.0" : address.address,
345
+ port: address.port
346
+ },
347
+ serve: fnUntraced(function* (httpApp, middleware) {
348
+ const serveScope = yield* scope;
349
+ const scope$2 = forkUnsafe(serveScope, "parallel");
350
+ const handler = yield* makeHandler(httpApp, {
351
+ middleware,
352
+ scope: scope$2
353
+ });
354
+ const upgradeHandler = yield* makeUpgradeHandler(wss, httpApp, {
355
+ middleware,
356
+ scope: scope$2
357
+ });
358
+ yield* addFinalizerExit(serveScope, () => {
359
+ server.off("request", handler);
360
+ server.off("upgrade", upgradeHandler);
361
+ return preemptiveShutdown;
362
+ });
363
+ server.on("request", handler);
364
+ server.on("upgrade", upgradeHandler);
365
+ })
366
+ });
367
+ });
368
+ /**
369
+ * @since 1.0.0
370
+ * @category Handlers
371
+ */
372
+ const makeHandler = (httpEffect, options) => {
373
+ const handled = toHandled(httpEffect, handleResponse, options.middleware);
374
+ return withFiber((parent) => {
375
+ const services = parent.context;
376
+ return succeed(function handler(nodeRequest, nodeResponse) {
377
+ const map = new Map(services.mapUnsafe);
378
+ map.set(HttpServerRequest.key, new ServerRequestImpl(nodeRequest, nodeResponse));
379
+ const fiber = runIn(runForkWith(makeUnsafe(map))(handled), options.scope);
380
+ nodeResponse.on("close", () => {
381
+ if (!nodeResponse.writableEnded) fiber.interruptUnsafe(parent.id, ClientAbort.annotation);
382
+ });
383
+ });
384
+ });
385
+ };
386
+ /**
387
+ * @since 1.0.0
388
+ * @category Handlers
389
+ */
390
+ const makeUpgradeHandler = (lazyWss, httpEffect, options) => {
391
+ const handledApp = toHandled(httpEffect, handleResponse, options.middleware);
392
+ return withFiber((parent) => {
393
+ const services = parent.context;
394
+ return succeed(function handler(nodeRequest, socket, head) {
395
+ let nodeResponse_ = void 0;
396
+ const nodeResponse = () => {
397
+ if (nodeResponse_ === void 0) {
398
+ nodeResponse_ = new Http.ServerResponse(nodeRequest);
399
+ nodeResponse_.assignSocket(socket);
400
+ nodeResponse_.on("finish", () => {
401
+ socket.end();
402
+ });
403
+ }
404
+ return nodeResponse_;
405
+ };
406
+ const upgradeEffect = fromWebSocket(flatMap(lazyWss, (wss) => acquireRelease(callback((resume) => wss.handleUpgrade(nodeRequest, socket, head, (ws) => {
407
+ resume(succeed(ws));
408
+ })), (ws) => sync(() => ws.close()))));
409
+ const map = new Map(services.mapUnsafe);
410
+ map.set(HttpServerRequest.key, new ServerRequestImpl(nodeRequest, nodeResponse, upgradeEffect));
411
+ const fiber = runIn(runForkWith(makeUnsafe(map))(handledApp), options.scope);
412
+ socket.on("close", () => {
413
+ if (!socket.writableEnded) fiber.interruptUnsafe(parent.id, ClientAbort.annotation);
414
+ });
415
+ });
416
+ });
417
+ };
418
+ var ServerRequestImpl = class ServerRequestImpl extends NodeHttpIncomingMessage {
419
+ [TypeId$2];
420
+ response;
421
+ upgradeEffect;
422
+ url;
423
+ headersOverride;
424
+ constructor(source, response, upgradeEffect, url = source.url, headersOverride, remoteAddressOverride) {
425
+ super(source, (cause) => new HttpServerError({ reason: new RequestParseError({
426
+ request: this,
427
+ cause
428
+ }) }), remoteAddressOverride);
429
+ this[TypeId$2] = TypeId$2;
430
+ this.response = response;
431
+ this.upgradeEffect = upgradeEffect;
432
+ this.url = url;
433
+ this.headersOverride = headersOverride;
434
+ }
435
+ cachedCookies;
436
+ get cookies() {
437
+ if (this.cachedCookies) return this.cachedCookies;
438
+ return this.cachedCookies = parseHeader(this.headers.cookie ?? "");
439
+ }
440
+ get resolvedResponse() {
441
+ return typeof this.response === "function" ? this.response() : this.response;
442
+ }
443
+ modify(options) {
444
+ return new ServerRequestImpl(this.source, this.response, this.upgradeEffect, options.url ?? this.url, options.headers ?? this.headersOverride, "remoteAddress" in options ? options.remoteAddress : this.remoteAddressOverride);
445
+ }
446
+ get originalUrl() {
447
+ return this.source.url;
448
+ }
449
+ get method() {
450
+ return this.source.method.toUpperCase();
451
+ }
452
+ get headers() {
453
+ this.headersOverride ??= this.source.headers;
454
+ return this.headersOverride;
455
+ }
456
+ multipartEffect;
457
+ get multipart() {
458
+ if (this.multipartEffect) return this.multipartEffect;
459
+ this.multipartEffect = runSync(cached(persisted(this.source, this.source.headers)));
460
+ return this.multipartEffect;
461
+ }
462
+ get multipartStream() {
463
+ return stream(this.source, this.source.headers);
464
+ }
465
+ get upgrade() {
466
+ return this.upgradeEffect ?? fail(new HttpServerError({ reason: new RequestParseError({
467
+ request: this,
468
+ description: "not an upgradeable ServerRequest"
469
+ }) }));
470
+ }
471
+ toString() {
472
+ return `ServerRequest(${this.method} ${this.url})`;
473
+ }
474
+ toJSON() {
475
+ return inspect(this, {
476
+ _id: "HttpServerRequest",
477
+ method: this.method,
478
+ url: this.originalUrl
479
+ });
480
+ }
481
+ };
482
+ /**
483
+ * @since 1.0.0
484
+ * @category Layers
485
+ */
486
+ const layerServer = /* @__PURE__ */ flow(make, /* @__PURE__ */ effect(HttpServer));
487
+ /**
488
+ * @since 1.0.0
489
+ * @category Layers
490
+ */
491
+ const layerHttpServices = /* @__PURE__ */ mergeAll(layer$1, layerWeak, layer$3);
492
+ /**
493
+ * @since 1.0.0
494
+ * @category Layers
495
+ */
496
+ const layer = (evaluate, options) => mergeAll(layerServer(evaluate, options), layerHttpServices);
497
+ /**
498
+ * @since 1.0.0
499
+ * @category Layers
500
+ */
501
+ const layerConfig = (evaluate, options) => mergeAll(effect(HttpServer)(flatMap(unwrap$1(options).asEffect(), (options) => make(evaluate, options))), layerHttpServices);
502
+ /**
503
+ * @since 1.0.0
504
+ * @category Testing
505
+ */
506
+ const layerTest = /* @__PURE__ */ layerTestClient.pipe(/* @__PURE__ */ provide(/* @__PURE__ */ fresh(layer$5).pipe(/* @__PURE__ */ provide(/* @__PURE__ */ succeed$1(RequestInit)({ keepalive: false })))), /* @__PURE__ */ provideMerge(/* @__PURE__ */ layer(Http.createServer, { port: 0 })));
507
+ const handleResponse = (request, response) => {
508
+ const nodeResponse = request.resolvedResponse;
509
+ if (nodeResponse.writableEnded) return void_;
510
+ let headers = response.headers;
511
+ if (!isEmpty(response.cookies)) {
512
+ headers = { ...headers };
513
+ const toSet = toSetCookieHeaders(response.cookies);
514
+ if (headers["set-cookie"] !== void 0) toSet.push(headers["set-cookie"]);
515
+ headers["set-cookie"] = toSet;
516
+ }
517
+ if (request.method === "HEAD") {
518
+ nodeResponse.writeHead(response.status, headers);
519
+ return callback((resume) => {
520
+ nodeResponse.end(() => resume(void_));
521
+ });
522
+ }
523
+ const body = response.body;
524
+ switch (body._tag) {
525
+ case "Empty":
526
+ nodeResponse.writeHead(response.status, headers);
527
+ nodeResponse.end();
528
+ return void_;
529
+ case "Raw":
530
+ nodeResponse.writeHead(response.status, headers);
531
+ if (typeof body.body === "object" && body.body !== null && "pipe" in body.body && typeof body.body.pipe === "function") return tryPromise({
532
+ try: (signal) => pipeline(body.body, nodeResponse, {
533
+ signal,
534
+ end: true
535
+ }),
536
+ catch: (cause) => new HttpServerError({ reason: new ResponseError({
537
+ request,
538
+ response,
539
+ description: "Error writing raw response",
540
+ cause
541
+ }) })
542
+ }).pipe(interruptible, tapCause(handleCause(nodeResponse, response)));
543
+ return callback((resume) => {
544
+ nodeResponse.end(body.body, () => resume(void_));
545
+ });
546
+ case "Uint8Array":
547
+ nodeResponse.writeHead(response.status, headers);
548
+ if (body.body.length < 1024 * 1024) {
549
+ nodeResponse.end(body.body);
550
+ return void_;
551
+ }
552
+ return callback((resume) => {
553
+ nodeResponse.end(body.body, () => resume(void_));
554
+ });
555
+ case "FormData": return suspend(() => {
556
+ const r = new globalThis.Response(body.formData);
557
+ nodeResponse.writeHead(response.status, {
558
+ ...headers,
559
+ ...Object.fromEntries(r.headers)
560
+ });
561
+ return callback((resume, signal) => {
562
+ Readable.fromWeb(r.body, { signal }).pipe(nodeResponse).on("error", (cause) => {
563
+ resume(fail(new HttpServerError({ reason: new ResponseError({
564
+ request,
565
+ response,
566
+ description: "Error writing FormData response",
567
+ cause
568
+ }) })));
569
+ }).once("finish", () => {
570
+ resume(void_);
571
+ });
572
+ }).pipe(interruptible, tapCause(handleCause(nodeResponse, response)));
573
+ });
574
+ case "Stream": {
575
+ nodeResponse.writeHead(response.status, headers);
576
+ const drainLatch = makeUnsafe$1();
577
+ nodeResponse.on("drain", () => drainLatch.openUnsafe());
578
+ return body.stream.pipe(orDie, runForEachArray((array) => {
579
+ let needDrain = false;
580
+ for (let i = 0; i < array.length; i++) {
581
+ const written = nodeResponse.write(array[i]);
582
+ if (!written && !needDrain) {
583
+ needDrain = true;
584
+ drainLatch.closeUnsafe();
585
+ } else if (written && needDrain) needDrain = false;
586
+ }
587
+ if (!needDrain) return void_;
588
+ return drainLatch.await;
589
+ }), interruptible, matchCauseEffect({
590
+ onSuccess: () => sync(() => nodeResponse.end()),
591
+ onFailure: handleCause(nodeResponse, response)
592
+ }));
593
+ }
594
+ }
595
+ };
596
+ const handleCause = (nodeResponse, originalResponse) => (originalCause) => flatMap(causeResponse(originalCause), ([response, cause]) => {
597
+ const headersSent = nodeResponse.headersSent;
598
+ if (!headersSent) nodeResponse.writeHead(response.status);
599
+ if (!nodeResponse.writableEnded) nodeResponse.end();
600
+ return failCause(headersSent ? combine(originalCause, die$1(originalResponse)) : cause);
601
+ });
602
+ //#endregion
603
+ export { layer, layerConfig, layerHttpServices, layerServer, layerTest, make, makeHandler, makeUpgradeHandler };
604
+
605
+ //# sourceMappingURL=NodeHttpServer-D5-EtRwc.mjs.map