@wular/coder 0.4.0 → 0.4.2

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 (263) hide show
  1. package/README.md +69 -70
  2. package/dist/{add-ej0X9e3a.js → add-C2y-mVzl.js} +1 -1
  3. package/dist/{add-U-pty9qJ.js → add-CLYTF_up.js} +1 -1
  4. package/dist/{add-CE-70LFs.js → add-DRsPpQFl.js} +1 -1
  5. package/dist/{add-BxpLHnvD.js → add-DkpUwhtO.js} +1 -1
  6. package/dist/{add-json-CEa-6luW.js → add-json-5uPnWPoD.js} +1 -1
  7. package/dist/{agent-BsYx3Odz.js → agent-hw3zKw8y.js} +1 -1
  8. package/dist/{agent-JdtZozvP.js → agent-r5mMcehf.js} +1 -1
  9. package/dist/{alias-DX-Bm86x.js → alias-_0Rwf2cA.js} +1 -1
  10. package/dist/{app-BT5f7zL5.js → app-oE8G1-bi.js} +1 -1
  11. package/dist/{approvals-C-AvFt6s.js → approvals-DbVrsxec.js} +1 -1
  12. package/dist/{approve-DOmpQRNd.js → approve-DeAhFL-m.js} +1 -1
  13. package/dist/{apps-CjfrZyM5.js → apps-eujHiNca.js} +1 -1
  14. package/dist/{archive-BziJ1rQ-.js → archive-BCUfymIB.js} +1 -1
  15. package/dist/{archive-BUB8gFKD.js → archive-DZ6vpMHb.js} +1 -1
  16. package/dist/{archive-sweep-CtBcARgN.js → archive-sweep-Cxbh8yAI.js} +1 -1
  17. package/dist/{ask-dE3U3ss2.js → ask-BU2WVxVM.js} +1 -1
  18. package/dist/auth-CBWTmAPA.js +1 -0
  19. package/dist/{auth-BFny--17.js → auth-Dmn2U7rr.js} +1 -1
  20. package/dist/{cli-BilSDkvE.js → cli-DWCR7iqa.js} +1 -1
  21. package/dist/cli.d.ts +1 -1
  22. package/dist/cli.js +1 -1
  23. package/dist/{config-Da_cwoxI.js → config-12pK4qW7.js} +1 -1
  24. package/dist/{create-C_iMJV4Y.js → create-D3f6q0Yq.js} +1 -1
  25. package/dist/credentials-l6dsrZLL.js +1 -0
  26. package/dist/dash/manifest.json +841 -955
  27. package/dist/dash/public/assets/chunks/{agent-pills-69c965aae1737cef.js → agent-pills-dd0b7643e125bbf1.js} +1 -1
  28. package/dist/dash/public/assets/chunks/{agent-settings-form-a1ce70812eea3f20.js → agent-settings-form-45ae6aeaaed2b568.js} +1 -1
  29. package/dist/dash/public/assets/chunks/{agents-grid-f62180478e43c192.js → agents-grid-b906da80c31fc035.js} +1 -1
  30. package/dist/dash/public/assets/chunks/{badge-d07f35e9abc80e14.js → badge-676b01e0c615bf7b.js} +1 -1
  31. package/dist/dash/public/assets/chunks/{card-be04148b64223a52.js → card-e0901d68b79dfa93.js} +1 -1
  32. package/dist/dash/public/assets/chunks/{combo-32c321a7a84fa902.js → combo-952a457d52360d88.js} +1 -1
  33. package/dist/dash/public/assets/chunks/{composer-aec9c3c691f1f79a.js → composer-49f9e7c5c4dfda3b.js} +1 -1
  34. package/dist/dash/public/assets/chunks/composer-f331d00837143aee.js +1 -0
  35. package/dist/dash/public/assets/chunks/{confirm-b4e2c16aef4b3431.js → confirm-f2fe4ba9905a89c6.js} +1 -1
  36. package/dist/dash/public/assets/chunks/{connect-apps-a5a63941e287c33f.js → connect-apps-661f3b3a85f1776a.js} +1 -1
  37. package/dist/dash/public/assets/chunks/{connect-repositories-e4c049b5b4384623.js → connect-repositories-5389ec8701a3deac.js} +1 -1
  38. package/dist/dash/public/assets/chunks/{credentials-list-2b7d0c771b89f9c5.js → credentials-list-e6177d0943517929.js} +2 -2
  39. package/dist/dash/public/assets/chunks/{custom-range-53b70e0d9eeae84e.js → custom-range-03ba6fb2ade7d282.js} +1 -1
  40. package/dist/dash/public/assets/chunks/{editor-691d2bcecb1ecb87.js → editor-34cb529d6d8a4b09.js} +2 -2
  41. package/dist/dash/public/assets/chunks/{engines-list-a5fe1671601ce3b0.js → engines-list-2f1acee3ecc8461a.js} +1 -1
  42. package/dist/dash/public/assets/chunks/{field-9e12e5fc8774b6e5.js → field-901f1f35c18c39c9.js} +1 -1
  43. package/dist/dash/public/assets/chunks/{heads-4041a925d63ab116.js → heads-1570a3a6db331979.js} +1 -1
  44. package/dist/dash/public/assets/chunks/{instructions-4e0d18b9b40edbd7.js → instructions-052fa45a9daf6db6.js} +1 -1
  45. package/dist/dash/public/assets/chunks/instructions-d0a4b0d95009c262.js +1 -0
  46. package/dist/dash/public/assets/chunks/{list-d7eb9e02cf261fbe.js → list-87b359bebd26986a.js} +1 -1
  47. package/dist/dash/public/assets/chunks/{mcp-list-a450533109045ef5.js → mcp-list-b42f0d2ee463b37d.js} +1 -1
  48. package/dist/dash/public/assets/chunks/{models-list-1e273c6843858148.js → models-list-0669d26fd662aec3.js} +1 -1
  49. package/dist/dash/public/assets/chunks/{platform-actions-87f3f76ec1b840cb.js → platform-actions-c92ca3c6198a9387.js} +1 -1
  50. package/dist/dash/public/assets/chunks/{runners-list-fc7cdae4fa93e78b.js → runners-list-9fffa50432c470c9.js} +1 -1
  51. package/dist/dash/public/assets/chunks/{segmented-6091dfb2f954799f.js → segmented-358ff2b4992b8384.js} +1 -1
  52. package/dist/dash/public/assets/chunks/{select-dd09a6b9544cfde2.js → select-1013702bdfb1ade4.js} +1 -1
  53. package/dist/dash/public/assets/chunks/{sentinel-ff7143a47fd22835.js → sentinel-c972a33dc69a5135.js} +1 -1
  54. package/dist/dash/public/assets/chunks/shared-init-20e199043ff5d00f.js +2 -0
  55. package/dist/dash/public/assets/chunks/shared-init-88cce66bb3cfe1e5.js +5 -0
  56. package/dist/dash/public/assets/chunks/{tail-5a5bfcd308535d70.js → tail-7c27aab8ba268bd9.js} +1 -1
  57. package/dist/dash/public/assets/chunks/{task-actions-7919ca0e901131f4.js → task-actions-a9603d520434baab.js} +1 -1
  58. package/dist/dash/public/assets/chunks/{task-view-e8a0f99c992fa11e.js → task-view-f7039cb330bcb0b5.js} +3 -3
  59. package/dist/dash/public/assets/chunks/{tasks-list-7b72f5b295349532.js → tasks-list-2a905b4a0c3a9042.js} +1 -1
  60. package/dist/dash/public/assets/chunks/{toolbar-9b18a5d26dee37c3.js → toolbar-f964fa864699f095.js} +1 -1
  61. package/dist/dash/public/assets/chunks/{versions-list-8cdf3a41c56b2152.js → versions-list-fc2e0d2a7382e049.js} +1 -1
  62. package/dist/dash/public/assets/dash-49ca85b59ac65c20.css +1 -0
  63. package/dist/dash/public/assets/dash-account-96fc41be318839fa.css +1 -0
  64. package/dist/dash/public/assets/dash-agents-290a7b21c7dc0c92.css +1 -0
  65. package/dist/dash/public/assets/dash-agents-new-a7a07bf4ebda24c2.css +1 -0
  66. package/dist/dash/public/assets/dash-agents-param-slug-69a72fb0bbd14cc2.css +1 -0
  67. package/dist/dash/public/assets/dash-agents-param-slug-edit-397bdfb2f0ca328c.css +1 -0
  68. package/dist/dash/public/assets/dash-agents-param-slug-platforms-a7b3b7247c27f1d2.css +1 -0
  69. package/dist/dash/public/assets/dash-agents-param-slug-settings-8389b7d0555e8ccf.css +1 -0
  70. package/dist/dash/public/assets/dash-agents-param-slug-tasks-5987b8aea5e8f30d.css +1 -0
  71. package/dist/dash/public/assets/dash-agents-param-slug-usage-19abc69e1d4e6b0a.css +1 -0
  72. package/dist/dash/public/assets/dash-settings-53b8e6a8f656fa1a.css +1 -0
  73. package/dist/dash/public/assets/dash-settings-param-tab-ac61fdfdd6fd533f.css +1 -0
  74. package/dist/dash/public/assets/dash-tasks-cc0b1d32874b731c.css +1 -0
  75. package/dist/dash/public/assets/dash-tasks-param-id-02b8c7bd99cc1090.css +1 -0
  76. package/dist/dash/public/assets/dash-usage-884943221f76ad93.css +1 -0
  77. package/dist/dash/public/assets/pnext-client-17ba55bb57a1f4da.js +1 -0
  78. package/dist/dash/public/assets/{pnext-client-0b6720fdec66eeb0.js → pnext-client-1afa4148bea69ad2.js} +1 -1
  79. package/dist/dash/public/assets/{pnext-client-4cf2e27d0b9c0365.js → pnext-client-2693db10b197ade1.js} +1 -1
  80. package/dist/dash/public/assets/pnext-client-43f52a07f8067b1b.js +1 -0
  81. package/dist/dash/public/assets/pnext-client-4594b693fe612835.js +1 -0
  82. package/dist/dash/public/assets/pnext-client-73f73e24f8141fb6.js +1 -0
  83. package/dist/dash/public/assets/pnext-client-7574da4651b40eae.js +1 -0
  84. package/dist/dash/public/assets/pnext-client-7b3a2c1092cbbb02.js +1 -0
  85. package/dist/dash/public/assets/pnext-client-816fe5fc96d3f768.js +1 -0
  86. package/dist/dash/public/assets/pnext-client-86cb956b448b0887.js +1 -0
  87. package/dist/dash/public/assets/pnext-client-8b64e3c030164288.js +1 -0
  88. package/dist/dash/public/assets/pnext-client-8f6161084c595a22.js +1 -0
  89. package/dist/dash/public/assets/pnext-client-9203ec11926e5d04.js +1 -0
  90. package/dist/dash/public/assets/pnext-client-a38b446f941d44df.js +1 -0
  91. package/dist/dash/public/assets/pnext-client-bd8d51aaa095e8a4.js +1 -0
  92. package/dist/dash/public/assets/pnext-client-e9821d1f1bdb281d.js +1 -0
  93. package/dist/dash/server/bundle-0.1.6-b29ec45cb963d47f/entry.js +2 -0
  94. package/dist/{default-vYPT26DR.js → default-CwQXCtoB.js} +1 -1
  95. package/dist/{default-Bobztoxf.js → default-De8FXiWz.js} +1 -1
  96. package/dist/{delete-z1_86nf6.js → delete-BD6AnCLg.js} +1 -1
  97. package/dist/{delete-D8gEwoOj.js → delete-cS01oOIb.js} +1 -1
  98. package/dist/{disable-DVKd-0Xb.js → disable-BMWWeYFQ.js} +1 -1
  99. package/dist/{discover-Df-a8K4R.js → discover-Cfx5RPU7.js} +1 -1
  100. package/dist/{docs-DKJnqZqt.js → docs-DWegDRiu.js} +1 -1
  101. package/dist/{enable-C8Zf_wpN.js → enable-Cfzeau2x.js} +1 -1
  102. package/dist/flow/index.d.ts +1 -1
  103. package/dist/{flow-17k25MHt.js → flow-kAxxVOiR.js} +1 -1
  104. package/dist/{index-DT7EST00.d.ts → index-CZjFX5zV.d.ts} +1 -1
  105. package/dist/{init-CoMfFxbG.js → init-C4tDFH4G.js} +1 -1
  106. package/dist/integrations-D-L3uQRj.js +1 -0
  107. package/dist/{list-BYiG8Zav.js → list-5Ljf9TxF.js} +2 -2
  108. package/dist/{list-BAKvxSbh.js → list-COAo7eZd.js} +1 -1
  109. package/dist/{list-DX-z3SBp.js → list-DuPqU3fk.js} +1 -1
  110. package/dist/{list-C5w01-8q.js → list-DzGuMkQy.js} +1 -1
  111. package/dist/{list-VToARh3C.js → list-J8d_zh-o.js} +1 -1
  112. package/dist/{list-BxEywhHU.js → list-vOvIpbOH.js} +1 -1
  113. package/dist/{list-CIW2joV1.js → list-vpyS-hv8.js} +1 -1
  114. package/dist/{list-DpCf4G-H.js → list-way5oLO0.js} +1 -1
  115. package/dist/{login-DkkslfBx.js → login-BBw95-S3.js} +1 -1
  116. package/dist/{login-BFxX4jJy.js → login-CNmeRAL7.js} +1 -1
  117. package/dist/{logout-BHAtw4Z8.js → logout-j0dTo_Ib.js} +1 -1
  118. package/dist/{maintenance-C5FklUw3.js → maintenance-DkLVtqM7.js} +1 -1
  119. package/dist/{mcp-CCZOAo06.js → mcp-CsmBtlW9.js} +1 -1
  120. package/dist/{migrate-C4vM7DQN.js → migrate-D4nzYhk8.js} +1 -1
  121. package/dist/{model-Bs1StDo3.js → model-B79MFtRV.js} +1 -1
  122. package/dist/{push-CUC55Bqd.js → push-DbdnbZYt.js} +1 -1
  123. package/dist/{queue-6io_NOP3.js → queue-C9fSdE_X.js} +27 -27
  124. package/dist/refresh-BDmap1RA.js +1 -0
  125. package/dist/{remove-B93LNkZI.js → remove-BNzbUhaK.js} +1 -1
  126. package/dist/{remove-eQ8y5C5p.js → remove-CLpL12Ya.js} +1 -1
  127. package/dist/{remove-CuH8a3L9.js → remove-CaYH9Cna.js} +1 -1
  128. package/dist/{remove-C5_xggx7.js → remove-D-QeeZQL.js} +1 -1
  129. package/dist/{rename-CYfy03FE.js → rename-Bhcb4t9F.js} +1 -1
  130. package/dist/{result-BEtQZHaY.js → result-BfTfJayl.js} +1 -1
  131. package/dist/{result-BzaM3inj.js → result-D8DsvJDu.js} +1 -1
  132. package/dist/{resume-DYzKvyEw.js → resume-aZ8yWDBh.js} +1 -1
  133. package/dist/{review-oIBeECZE.js → review-BEhDcX4b.js} +1 -1
  134. package/dist/{rotate-key-IdMYH7gg.js → rotate-key-BqnKhTK8.js} +1 -1
  135. package/dist/{run-CTtd0Znc.js → run-BWbabvub.js} +1 -1
  136. package/dist/{run-CawRGnOg.js → run-BdPjxaZU.js} +1 -1
  137. package/dist/{run-BDYl0CKl.js → run-Dqe38jX8.js} +1 -1
  138. package/dist/runner-BPpiJvHx.js +1 -0
  139. package/dist/sdk.d.ts +2 -2
  140. package/dist/sdk.js +1 -1
  141. package/dist/{serve-CPnmrKyf.js → serve-C0WC-QrV.js} +2 -2
  142. package/dist/{serve-GmRO89s5.js → serve-CcObDKKQ.js} +1 -1
  143. package/dist/{serve-CE8YV2e9.js → serve-Ck95047c.js} +1 -1
  144. package/dist/{serve-CQKZxzFE.js → serve-DA5I2qXj.js} +2 -2
  145. package/dist/{server-Kb22cWfF.js → server-BxLFZL80.js} +1 -1
  146. package/dist/{setup-host-GFTUzzZJ.js → setup-host-DLd_j2Uw.js} +1 -1
  147. package/dist/{shared-DVtzWhUT.js → shared-BLkGRKty.js} +1 -1
  148. package/dist/{show-COTZEYgc.js → show-DzoQIs75.js} +1 -1
  149. package/dist/{show-CMUg8SJu.js → show-FC3dJcD-.js} +1 -1
  150. package/dist/{status-D26U--p8.js → status-BU3DR1XU.js} +1 -1
  151. package/dist/{steer-C6uARLp5.js → steer-P_38hRRD.js} +1 -1
  152. package/dist/{stop-BrGI3hSS.js → stop-BJGDRPsp.js} +1 -1
  153. package/dist/{stop-ByCAlbmN.js → stop-BWY6k6v5.js} +1 -1
  154. package/dist/{store-DzqXS2wT.js → store-B3ZHoBJY.js} +4 -4
  155. package/dist/{store-B94tSate.js → store-BLi19UDE.js} +1 -1
  156. package/dist/{task-CgOKgkEG.js → task-b2BK481M.js} +1 -1
  157. package/dist/{test-NEbhlxvo.js → test-BrSrhop9.js} +1 -1
  158. package/dist/{tools-D0Zfs8Hx.js → tools-CgswhJzh.js} +1 -1
  159. package/dist/{types-Dve7Z0ZP.d.ts → types-I5Cwtl_K.d.ts} +2 -2
  160. package/dist/{unalias-C9NqmSDq.js → unalias-mMHXqok7.js} +1 -1
  161. package/dist/{update-BTxYQj7Z.js → update-DbOWToPy.js} +1 -1
  162. package/dist/{upgrade-hA0yWBvx.js → upgrade-D6oC9HQI.js} +2 -2
  163. package/dist/{usage-BhqoCjvE.js → usage-Cb8Dtv9V.js} +1 -1
  164. package/dist/{usage-C4d9X2Uq.js → usage-DMs-IIJC.js} +1 -1
  165. package/dist/{watch-DtRuC0Wc.js → watch-BcMQXGYO.js} +1 -1
  166. package/dist/{watch-CSdj24ct.js → watch-eE2XiwsC.js} +1 -1
  167. package/dist/{worker-DX7P9kWl.js → worker-DrucI22w.js} +1 -1
  168. package/dist/{workflow-Dcmdooi8.js → workflow-Cshghoas.js} +1 -1
  169. package/docs/cli.md +145 -0
  170. package/package.json +3 -2
  171. package/plugins/claude/.claude-plugin/plugin.json +1 -1
  172. package/plugins/cursor/.cursor-plugin/plugin.json +1 -1
  173. package/src/core/defaults.ts +25 -0
  174. package/src/server/dash/app/dash/layout.css +58 -1
  175. package/src/server/dash/app/dash/layout.tsx +16 -4
  176. package/src/server/dash/app/dash/settings/[tab]/page.tsx +1 -1
  177. package/src/server/dash/comps/nav/side-toggle.tsx +1 -1
  178. package/src/server/dash/comps/ui/menu.tsx +5 -1
  179. package/src/server/dash/comps/ui/toast.css +3 -2
  180. package/dist/auth-DWHIzqbA.js +0 -1
  181. package/dist/credentials-B1jv6dkg.js +0 -1
  182. package/dist/dash/public/assets/chunks/composer-e56860d72742379e.js +0 -1
  183. package/dist/dash/public/assets/chunks/instructions-b00959bd4bb70502.js +0 -1
  184. package/dist/dash/public/assets/chunks/shared-init-986901c810947c12.js +0 -5
  185. package/dist/dash/public/assets/chunks/shared-init-baceed9fd2d43661.js +0 -2
  186. package/dist/dash/public/assets/dash-9e02d5d1a6d42ee3.css +0 -1
  187. package/dist/dash/public/assets/dash-account-04859899c1838ada.css +0 -1
  188. package/dist/dash/public/assets/dash-agents-9e678137267dec07.css +0 -1
  189. package/dist/dash/public/assets/dash-agents-new-26fa27b17ef9b8d8.css +0 -1
  190. package/dist/dash/public/assets/dash-agents-param-slug-b975c48f8abf3444.css +0 -1
  191. package/dist/dash/public/assets/dash-agents-param-slug-edit-e13fda599bb04843.css +0 -1
  192. package/dist/dash/public/assets/dash-agents-param-slug-platforms-70292932cb27bc96.css +0 -1
  193. package/dist/dash/public/assets/dash-agents-param-slug-settings-71f9a86251723fcc.css +0 -1
  194. package/dist/dash/public/assets/dash-agents-param-slug-tasks-fb8eb2ed71006601.css +0 -1
  195. package/dist/dash/public/assets/dash-agents-param-slug-usage-7c8740f1cdd52c71.css +0 -1
  196. package/dist/dash/public/assets/dash-settings-8eb818da462227e8.css +0 -1
  197. package/dist/dash/public/assets/dash-settings-param-tab-849a1a9542e273f5.css +0 -1
  198. package/dist/dash/public/assets/dash-tasks-81e510e0b6931b42.css +0 -1
  199. package/dist/dash/public/assets/dash-tasks-param-id-bbd2a83342f2ec10.css +0 -1
  200. package/dist/dash/public/assets/dash-usage-8e0259e03eaed1bd.css +0 -1
  201. package/dist/dash/public/assets/pnext-client-073464b8f422ef57.js +0 -1
  202. package/dist/dash/public/assets/pnext-client-1e9cb2f4f6387a87.js +0 -1
  203. package/dist/dash/public/assets/pnext-client-2f0e78dd006fed0f.js +0 -1
  204. package/dist/dash/public/assets/pnext-client-3c62e2aa2cbe9fe1.js +0 -1
  205. package/dist/dash/public/assets/pnext-client-43a88896ed42dd39.js +0 -1
  206. package/dist/dash/public/assets/pnext-client-587008fa987d3073.js +0 -1
  207. package/dist/dash/public/assets/pnext-client-676360cc86f31573.js +0 -1
  208. package/dist/dash/public/assets/pnext-client-813427605f424145.js +0 -1
  209. package/dist/dash/public/assets/pnext-client-82de7cf6dfc35b98.js +0 -1
  210. package/dist/dash/public/assets/pnext-client-831e8004c09f0b5b.js +0 -1
  211. package/dist/dash/public/assets/pnext-client-9b557fe468a45ca3.js +0 -1
  212. package/dist/dash/public/assets/pnext-client-ab7c900c802fe827.js +0 -1
  213. package/dist/dash/public/assets/pnext-client-d87d00e402811f0c.js +0 -1
  214. package/dist/dash/public/assets/pnext-client-fbdb7c1da7eda7e5.js +0 -1
  215. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/boot-B2MFTRO2.js +0 -28
  216. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/build-tier-XJJSL5FR.js +0 -2702
  217. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-2HFY3DQT.js +0 -206
  218. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-2ICEVELW.js +0 -832
  219. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-3UPROT2C.js +0 -33
  220. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-4P5CMIYT.js +0 -1580
  221. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-4TKZKZ3Q.js +0 -129
  222. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-5RDEILQB.js +0 -435
  223. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-62KEQM43.js +0 -23
  224. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-6KQSWT6D.js +0 -829
  225. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-7DCNCW6O.js +0 -722
  226. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-B4THCTQP.js +0 -20
  227. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-C2LIV2MM.js +0 -170
  228. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-CCATPVTW.js +0 -376
  229. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-COXJAPTU.js +0 -87
  230. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-E6IXL2NJ.js +0 -6268
  231. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-FLGRBFAH.js +0 -1196
  232. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-FTJVHFWD.js +0 -59
  233. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-H523KSIH.js +0 -5149
  234. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-HT6KKX6A.js +0 -18
  235. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-JESFYECC.js +0 -436
  236. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-JRPJM2XY.js +0 -15
  237. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-L2IWDUXG.js +0 -105
  238. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-L5P4Y4UC.js +0 -181
  239. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-NQE46AZN.js +0 -645
  240. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-PA4QEARJ.js +0 -127
  241. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-PZ5AXOLW.js +0 -7144
  242. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-SNVPTULL.js +0 -2395
  243. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-T3QZT3PG.js +0 -218
  244. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-VC5O2SDP.js +0 -70
  245. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-WZX4V6CM.js +0 -229
  246. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-XUUIDXY5.js +0 -625
  247. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-ZHFDO3PR.js +0 -263
  248. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/compile-CE2DN7ZA.js +0 -16
  249. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/config-UREY7XJT.js +0 -14
  250. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/config-loader-UI2XE3PZ.js +0 -15
  251. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/entry.js +0 -217
  252. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/generate-I2PPTDFD.js +0 -14
  253. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/modules-UVOCE4C2.js +0 -46
  254. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/pipeline-UW47K537.js +0 -961
  255. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/proxy-ITGOVJBW.js +0 -24
  256. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/register-4SA55SWT.js +0 -12577
  257. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/router-JNKHLBCZ.js +0 -503
  258. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/routes-PD6J2NXW.js +0 -52
  259. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/tsconfig-defaults-ZXEH7RQK.js +0 -13
  260. package/dist/integrations-5xCaXSd-.js +0 -1
  261. package/dist/refresh-BIrmrWYq.js +0 -1
  262. package/dist/runner-D7ScbIHJ.js +0 -1
  263. package/src/server/dash/app/dash/token-from-hash.tsx +0 -17
@@ -1,503 +0,0 @@
1
- import { createRequire as __pnextCreateRequire } from "node:module";
2
- const require = __pnextCreateRequire("file:///Users/muzam/Code/workshop/coder-workspace/node_modules/.bun/@wular+pnext@0.1.5+62547eec5a2188e3/node_modules/@wular/pnext/package.json");
3
- import {
4
- getNextConfig
5
- } from "./chunk-2ICEVELW.js";
6
- import {
7
- hasUseClientDirective
8
- } from "./chunk-L2IWDUXG.js";
9
- import "./chunk-JESFYECC.js";
10
- import "./chunk-5RDEILQB.js";
11
- import "./chunk-NQE46AZN.js";
12
- import {
13
- listFiles,
14
- listFilesSync,
15
- toPosixPath
16
- } from "./chunk-2HFY3DQT.js";
17
- import "./chunk-4P5CMIYT.js";
18
- import "./chunk-FTJVHFWD.js";
19
- import "./chunk-3UPROT2C.js";
20
-
21
- // ../node_modules/.bun/@wular+pnext@0.1.5+62547eec5a2188e3/node_modules/@wular/pnext/src/compat/pages/router.ts
22
- import { createHash } from "node:crypto";
23
- import { existsSync, statSync } from "node:fs";
24
- import {
25
- copyFile,
26
- mkdir,
27
- readdir,
28
- readFile,
29
- rename,
30
- rm,
31
- symlink,
32
- writeFile
33
- } from "node:fs/promises";
34
- import path from "node:path";
35
- import { tmpdir } from "node:os";
36
- import { fileURLToPath } from "node:url";
37
- var basePageExtensions = ["tsx", "ts", "jsx", "js", "mjs"];
38
- function materializeExtensions() {
39
- const configured = getNextConfig().pageExtensions;
40
- const extras = Array.isArray(configured) ? configured.filter((ext) => typeof ext === "string" && ext.length > 0) : [];
41
- return [.../* @__PURE__ */ new Set([...basePageExtensions, ...extras])];
42
- }
43
- var appConventions = /* @__PURE__ */ new Set([
44
- "default",
45
- "error",
46
- "forbidden",
47
- "global-error",
48
- "layout",
49
- "loading",
50
- "not-found",
51
- "page",
52
- "route",
53
- "template",
54
- "unauthorized"
55
- ]);
56
- var metadataConventionPattern = /^(robots|sitemap|manifest|icon\d*|apple-icon\d*|opengraph-image\d*|twitter-image\d*)$/;
57
- function isAppConvention(name) {
58
- return appConventions.has(name) || metadataConventionPattern.test(name);
59
- }
60
- async function materializePagesApp(root) {
61
- const pagesPath = path.join(root, "pages");
62
- if (!existsSync(pagesPath)) return void 0;
63
- const nativeApp = path.join(root, "app");
64
- const pages = await discoverPages(pagesPath);
65
- const apiRoutes = await discoverPagesApi(pagesPath);
66
- if (pages.length === 0 && apiRoutes.length === 0) return void 0;
67
- const generatedRoot = path.join(
68
- tmpdir(),
69
- "pnext-pages-compat",
70
- materializationKey(root, nativeApp, pages, apiRoutes)
71
- );
72
- const appPath = path.join(generatedRoot, "app");
73
- if (existsSync(appPath)) return appPath;
74
- const staging = `${generatedRoot}.${process.pid.toString(36)}.staging`;
75
- await buildMaterializedApp(staging, root, pagesPath, nativeApp, pages, apiRoutes);
76
- try {
77
- await rename(staging, generatedRoot);
78
- } catch {
79
- await rm(staging, { recursive: true, force: true });
80
- if (!existsSync(appPath)) throw new Error(`pnext: could not materialize ${root}/pages`);
81
- }
82
- void sweepStaleMaterializations(path.dirname(generatedRoot));
83
- return appPath;
84
- }
85
- function materializationKey(root, nativeApp, pages, apiRoutes) {
86
- const stamp = (file) => {
87
- const info = statSync(file, { throwIfNoEntry: false });
88
- return info ? `${info.size}:${info.mtimeMs}` : "";
89
- };
90
- const nativeFiles = existsSync(nativeApp) ? listFilesSync(nativeApp).map((file) => `${toPosixPath(path.relative(nativeApp, file))}\0${stamp(file)}`).sort() : [];
91
- const byRelative = (routes) => [...routes].sort((a, b) => a.relative.localeCompare(b.relative));
92
- return createHash("sha256").update(
93
- JSON.stringify([
94
- root,
95
- materializeExtensions(),
96
- byRelative(pages),
97
- byRelative(apiRoutes),
98
- nativeFiles,
99
- stamp(fileURLToPath("file:///Users/muzam/Code/workshop/coder-workspace/node_modules/.bun/@wular+pnext@0.1.5+62547eec5a2188e3/node_modules/@wular/pnext/src/compat/pages/router.ts"))
100
- ])
101
- ).digest("hex").slice(0, 16);
102
- }
103
- var STALE_MATERIALIZATION_MS = 7 * 24 * 60 * 6e4;
104
- async function sweepStaleMaterializations(base) {
105
- try {
106
- const cutoff = Date.now() - STALE_MATERIALIZATION_MS;
107
- for (const entry of await readdir(base)) {
108
- const dir = path.join(base, entry);
109
- const info = statSync(dir, { throwIfNoEntry: false });
110
- if (info && info.mtimeMs < cutoff) await rm(dir, { recursive: true, force: true });
111
- }
112
- } catch {
113
- }
114
- }
115
- async function buildMaterializedApp(generatedRoot, root, pagesPath, nativeApp, pages, apiRoutes) {
116
- const appPath = path.join(generatedRoot, "app");
117
- const sourcePages = path.join(generatedRoot, "source-pages");
118
- const sourceApp = path.join(generatedRoot, "source-app");
119
- await rm(generatedRoot, { recursive: true, force: true });
120
- await mkdir(appPath, { recursive: true });
121
- await symlink(pagesPath, sourcePages, "dir");
122
- const nodeModules = path.join(root, "node_modules");
123
- if (existsSync(nodeModules))
124
- await symlink(nodeModules, path.join(generatedRoot, "node_modules"), "dir");
125
- const publicDir = path.join(root, "public");
126
- if (existsSync(publicDir)) await symlink(publicDir, path.join(generatedRoot, "public"), "dir");
127
- if (existsSync(nativeApp)) {
128
- await symlink(nativeApp, sourceApp, "dir");
129
- await materializeNativeApp(sourceApp, appPath);
130
- }
131
- if (!existsSync(path.join(appPath, "layout.js"))) {
132
- await writeFile(
133
- path.join(appPath, "layout.js"),
134
- "export default function PagesLayout({ children }) {\n return <html><body>{children}</body></html>\n}\n"
135
- );
136
- }
137
- for (const page of pages) {
138
- const destination = path.join(appPath, ...encodePrivateSegments(page.segments), "page.js");
139
- if (existsSync(destination)) continue;
140
- await mkdir(path.dirname(destination), { recursive: true });
141
- const pagesPattern = `/${page.segments.join("/")}`.replace(/\/+$/, "") || "/";
142
- const sourceSpecifier = relativeImport(destination, path.join(sourcePages, page.relative));
143
- let clientSpecifier;
144
- if (page.hasStaticProps || page.hasServerSideProps) {
145
- const clientDestination = path.join(path.dirname(destination), "pnext-page-client.js");
146
- await writeFile(
147
- clientDestination,
148
- `'use client';
149
- export { default } from ${JSON.stringify(sourceSpecifier)};
150
- `
151
- );
152
- clientSpecifier = "./pnext-page-client.js";
153
- }
154
- await writeFile(
155
- destination,
156
- wrapperSource(
157
- sourceSpecifier,
158
- // A pages-router component is implicitly a client module: it SSRs AND
159
- // hydrates (hooks, event handlers, next/router). Without the client
160
- // wrapper it renders as a server component and never becomes
161
- // interactive. Data functions keep a server wrapper and pass their
162
- // props into the page's client facade.
163
- !page.hasServerSideProps && !page.hasStaticProps,
164
- page.hasServerSideProps,
165
- page.hasStaticProps,
166
- clientSpecifier,
167
- page.runtime,
168
- page.maxDuration,
169
- pagesPattern
170
- )
171
- );
172
- }
173
- for (const apiRoute of apiRoutes) {
174
- const destination = path.join(appPath, "api", ...apiRoute.segments, "route.js");
175
- if (existsSync(destination)) continue;
176
- await mkdir(path.dirname(destination), { recursive: true });
177
- await writeFile(
178
- destination,
179
- pagesApiWrapperSource(
180
- relativeImport(destination, path.join(sourcePages, apiRoute.relative)),
181
- apiRoute.runtime
182
- )
183
- );
184
- }
185
- }
186
- async function materializeNativeApp(sourceApp, appPath) {
187
- for (const file of await listFiles(sourceApp)) {
188
- const relative = toPosixPath(path.relative(sourceApp, file));
189
- const parsed = path.parse(relative);
190
- if (!materializeExtensions().includes(parsed.ext.slice(1))) {
191
- const destination2 = path.join(appPath, relative);
192
- await mkdir(path.dirname(destination2), { recursive: true });
193
- await copyFile(file, destination2);
194
- continue;
195
- }
196
- if (!isAppConvention(parsed.name)) continue;
197
- const destination = path.join(appPath, parsed.dir, `${parsed.name}.js`);
198
- await mkdir(path.dirname(destination), { recursive: true });
199
- const source = await readFile(file, "utf8");
200
- const client = hasUseClientDirective(source) || await defaultExportImportsClientModule(file, source);
201
- await writeFile(
202
- destination,
203
- wrapperSource(
204
- relativeImport(destination, file),
205
- client,
206
- false,
207
- false,
208
- void 0,
209
- runtimeFromSource(source)
210
- )
211
- );
212
- }
213
- }
214
- async function defaultExportImportsClientModule(file, source) {
215
- const defaultExport = /export\s+default\s+([A-Za-z_$][\w$]*)\s*;?/.exec(source);
216
- if (!defaultExport?.[1]) return false;
217
- const binding = defaultExport[1];
218
- const imports = /import\s*\{([^}]*)\}\s*from\s*['"]([^'"]+)['"]/g;
219
- let match;
220
- while (match = imports.exec(source)) {
221
- const importsBinding = (match[1] ?? "").split(",").some((value) => {
222
- const names = /^\s*([A-Za-z_$][\w$]*)(?:\s+as\s+([A-Za-z_$][\w$]*))?\s*$/.exec(value);
223
- return (names?.[2] ?? names?.[1]) === binding;
224
- });
225
- if (!importsBinding || !match[2]?.startsWith(".")) continue;
226
- const imported = resolveSourceImport(file, match[2]);
227
- if (imported && hasUseClientDirective(await readFile(imported, "utf8"))) return true;
228
- }
229
- return false;
230
- }
231
- function resolveSourceImport(file, specifier) {
232
- const base = path.resolve(path.dirname(file), specifier);
233
- for (const candidate of [
234
- base,
235
- ...materializeExtensions().flatMap((extension) => [
236
- `${base}.${extension}`,
237
- path.join(base, `index.${extension}`)
238
- ])
239
- ]) {
240
- if (existsSync(candidate) && statSync(candidate).isFile()) return candidate;
241
- }
242
- return void 0;
243
- }
244
- function encodePrivateSegments(segments) {
245
- return segments.map((segment) => segment.startsWith("_") ? `%5F${segment.slice(1)}` : segment);
246
- }
247
- async function discoverPages(pagesPath) {
248
- const routes = /* @__PURE__ */ new Map();
249
- const files = await listFiles(pagesPath);
250
- for (const extension of materializeExtensions()) {
251
- for (const file of files) {
252
- if (!file.endsWith(`.${extension}`)) continue;
253
- const relative = toPosixPath(path.relative(pagesPath, file));
254
- const withoutExtension = relative.slice(0, -extension.length - 1);
255
- const sourceSegments = withoutExtension.split("/");
256
- if (sourceSegments[0] === "api") continue;
257
- if (sourceSegments.length === 1 && (sourceSegments[0] === "_app" || sourceSegments[0] === "_document" || sourceSegments[0] === "_error")) {
258
- continue;
259
- }
260
- const segments = sourceSegments.at(-1) === "index" ? sourceSegments.slice(0, -1) : sourceSegments;
261
- const key = segments.join("/");
262
- if (!routes.has(key)) {
263
- const source = await readFile(file, "utf8");
264
- routes.set(key, {
265
- relative,
266
- segments,
267
- hasServerSideProps: /\bgetServerSideProps\b/.test(source),
268
- hasStaticProps: /\bgetStaticProps\b/.test(source),
269
- runtime: runtimeFromSource(source),
270
- maxDuration: maxDurationFromSource(source)
271
- });
272
- }
273
- }
274
- }
275
- return [...routes.values()];
276
- }
277
- async function discoverPagesApi(pagesPath) {
278
- const routes = /* @__PURE__ */ new Map();
279
- const files = await listFiles(path.join(pagesPath, "api"));
280
- for (const extension of materializeExtensions()) {
281
- for (const file of files) {
282
- if (!file.endsWith(`.${extension}`)) continue;
283
- const relative = toPosixPath(path.relative(pagesPath, file));
284
- const segments = relative.slice(0, -extension.length - 1).split("/").slice(1);
285
- if (segments.some((segment) => segment.startsWith("_"))) continue;
286
- const key = segments.join("/");
287
- if (routes.has(key)) continue;
288
- routes.set(key, {
289
- relative,
290
- segments,
291
- runtime: runtimeFromSource(await readFile(file, "utf8"))
292
- });
293
- }
294
- }
295
- return [...routes.values()];
296
- }
297
- function routerStateModulePath() {
298
- return path.join("/Users/muzam/Code/workshop/coder-workspace/node_modules/.bun/@wular+pnext@0.1.5+62547eec5a2188e3/node_modules/@wular/pnext/src/compat/pages", "router-state.ts");
299
- }
300
- function routerStateSnippet(pagesPattern) {
301
- if (!pagesPattern) {
302
- return { imports: "", render: "return createElement(Page, result?.props ?? {});" };
303
- }
304
- return {
305
- imports: `import { pagesRouterSsrState, serializePagesRouterState } from ${JSON.stringify(
306
- routerStateModulePath()
307
- )};
308
- `,
309
- render: `const routerState = pagesRouterSsrState(${JSON.stringify(pagesPattern)}, resolvedParams);
310
- return createElement(
311
- Fragment,
312
- null,
313
- createElement('script', {
314
- type: 'application/json',
315
- id: '__PNEXT_PAGES_DATA__',
316
- dangerouslySetInnerHTML: { __html: serializePagesRouterState(routerState) },
317
- }),
318
- createElement(Page, result?.props ?? {}),
319
- );`
320
- };
321
- }
322
- function wrapperSource(specifier, client = false, hasServerSideProps = false, hasStaticProps = false, clientSpecifier, runtime, maxDuration, pagesPattern) {
323
- const runtimeExport = runtime ? `export const runtime = ${JSON.stringify(runtime)};
324
- ` : "";
325
- const maxDurationExport = maxDuration === void 0 ? "" : `export const maxDuration = ${maxDuration};
326
- `;
327
- const routerState = routerStateSnippet(pagesPattern);
328
- if (hasStaticProps && clientSpecifier) {
329
- return `import { createElement, Fragment } from 'react';
330
- import { notFound, redirect } from 'next/navigation';
331
- import Page from ${JSON.stringify(clientSpecifier)};
332
- import * as pageModule from ${JSON.stringify(specifier)};
333
- ${routerState.imports}export * from ${JSON.stringify(specifier)};
334
- ${runtimeExport}${maxDurationExport}export default async function PagesCompatStaticPage({ params }) {
335
- // The otel compat exposes a span wrapper (Render.getStaticProps) at runtime.
336
- const withSpan = globalThis.__PNEXT_PAGES_DATA_SPAN__ ?? ((kind, fn) => fn());
337
- const resolvedParams = await params;
338
- const invoke = async () => pageModule.getStaticProps?.({ params: resolvedParams });
339
- const result = await withSpan('getStaticProps', invoke);
340
- if (result?.notFound) notFound();
341
- if (result?.redirect) redirect(result.redirect.destination);
342
- ${routerState.render}
343
- }
344
- `;
345
- }
346
- if (!hasServerSideProps) {
347
- if (client) {
348
- return `'use client';
349
- export { default } from ${JSON.stringify(specifier)};
350
- ${runtimeExport}${maxDurationExport}`;
351
- }
352
- return `import * as __pnext_page_ns from ${JSON.stringify(specifier)};
353
- export default __pnext_page_ns.default;
354
- export * from ${JSON.stringify(specifier)};
355
- ${runtimeExport}${maxDurationExport}`;
356
- }
357
- return `import { createElement, Fragment } from 'react';
358
- import { notFound, redirect } from 'next/navigation';
359
- import { cookies, headers } from 'next/headers';
360
- import Page from ${JSON.stringify(clientSpecifier)};
361
- import * as pageModule from ${JSON.stringify(specifier)};
362
- ${routerState.imports}export * from ${JSON.stringify(specifier)};
363
- export const dynamic = 'force-dynamic';
364
- ${runtimeExport}${maxDurationExport}export default async function PagesCompatPage({ params, searchParams }) {
365
- // The otel compat exposes a span wrapper (Render.getServerSideProps) at runtime.
366
- const withSpan = globalThis.__PNEXT_PAGES_DATA_SPAN__ ?? ((kind, fn) => fn());
367
- const resolvedParams = await params;
368
- // getServerSideProps reads a node-shaped \`req\`/\`res\`. This page is
369
- // force-dynamic, so headers()/cookies() are available; \`method\` is always
370
- // 'GET' and \`res\` is inert (writes are dropped) \u2014 a workable baseline until
371
- // the pages layer threads the real request through.
372
- const requestHeaders = Object.fromEntries((await headers()).entries());
373
- const requestCookies = Object.fromEntries(
374
- (await cookies()).getAll().map(cookie => [cookie.name, cookie.value]),
375
- );
376
- const invoke = async () => pageModule.getServerSideProps?.({
377
- params: resolvedParams,
378
- query: (await searchParams) ?? {},
379
- req: {
380
- headers: requestHeaders,
381
- cookies: requestCookies,
382
- method: 'GET',
383
- url: ${JSON.stringify(pagesPattern ?? "/")},
384
- },
385
- res: {
386
- statusCode: 200,
387
- setHeader() {},
388
- getHeader() {},
389
- getHeaders() { return {}; },
390
- removeHeader() {},
391
- end() {},
392
- write() { return true; },
393
- },
394
- resolvedUrl: ${JSON.stringify(pagesPattern ?? "/")},
395
- preview: false,
396
- previewData: undefined,
397
- draftMode: false,
398
- });
399
- const result = await withSpan('getServerSideProps', invoke);
400
- if (result?.notFound) notFound();
401
- if (result?.redirect) redirect(result.redirect.destination);
402
- ${routerState.render}
403
- }
404
- `;
405
- }
406
- function runtimeFromSource(source) {
407
- const runtime = /\bruntime\b\s*[:=]\s*(['"`])(edge|nodejs|experimental-edge)\1/.exec(source)?.[2];
408
- return runtime === "experimental-edge" ? "edge" : runtime;
409
- }
410
- function maxDurationFromSource(source) {
411
- const value = /\bmaxDuration\s*:\s*(\d+)\b/.exec(source)?.[1];
412
- return value === void 0 ? void 0 : Number(value);
413
- }
414
- function pagesApiWrapperSource(specifier, runtime) {
415
- const runtimeExport = runtime ? `export const runtime = ${JSON.stringify(runtime)};
416
- ` : "";
417
- return `import handler from ${JSON.stringify(specifier)};
418
- import { NextRequest } from 'next/server';
419
- import { Writable } from 'node:stream';
420
- ${runtimeExport}export async function GET(request) {
421
- return run(handler, request);
422
- }
423
- export async function POST(request) {
424
- return run(handler, request);
425
- }
426
- export async function PUT(request) {
427
- return run(handler, request);
428
- }
429
- export async function PATCH(request) {
430
- return run(handler, request);
431
- }
432
- export async function DELETE(request) {
433
- return run(handler, request);
434
- }
435
- // Bridge a pages-API handler onto the app-route Response contract. Edge-style
436
- // handlers (request-only, return a Response) pass through; node-style handlers
437
- // get a real Writable \`res\` whose bytes stream into the Response body, with
438
- // client disconnects surfaced as res 'close'/destroy (stream cancellation).
439
- async function run(handler, request) {
440
- const nextRequest = request instanceof NextRequest ? request : new NextRequest(request);
441
- const state = { status: 200, headers: new Headers() };
442
- let controller;
443
- let started = false;
444
- let notifyStarted = () => {};
445
- const startedPromise = new Promise(resolve => { notifyStarted = resolve; });
446
- const start = () => {
447
- if (!started) {
448
- started = true;
449
- notifyStarted();
450
- }
451
- };
452
- const body = new ReadableStream({
453
- start(c) { controller = c; },
454
- cancel() { res.destroy(); },
455
- });
456
- const enqueue = chunk => {
457
- try {
458
- controller.enqueue(typeof chunk === 'string' ? new TextEncoder().encode(chunk) : new Uint8Array(chunk));
459
- } catch {}
460
- };
461
- const res = new Writable({
462
- write(chunk, _encoding, callback) { start(); enqueue(chunk); callback(); },
463
- final(callback) { start(); try { controller.close(); } catch {} callback(); },
464
- destroy(error, callback) { try { controller.close(); } catch {} callback(error); },
465
- });
466
- Object.defineProperty(res, 'statusCode', {
467
- get: () => state.status,
468
- set: value => { state.status = value; },
469
- });
470
- res.setHeader = (name, value) => { state.headers.set(name, String(value)); return res; };
471
- res.getHeader = name => state.headers.get(name) ?? undefined;
472
- res.removeHeader = name => { state.headers.delete(name); };
473
- res.status = code => { state.status = code; return res; };
474
- res.json = value => { state.headers.set('content-type', 'application/json'); res.end(JSON.stringify(value)); };
475
- res.send = value => { res.end(value); };
476
- // A client disconnect aborts the request signal; pages handlers observe it
477
- // as the response closing (res.on('close') per Node semantics).
478
- request.signal?.addEventListener?.('abort', () => res.destroy(), { once: true });
479
- const finished = Promise.resolve()
480
- .then(() => handler(nextRequest, res))
481
- .catch(error => {
482
- if (!started) throw error;
483
- try { controller.error(error); } catch {}
484
- });
485
- const outcome = await Promise.race([
486
- startedPromise.then(() => 'started'),
487
- finished.then(() => 'done'),
488
- ]);
489
- if (outcome === 'done' && !started) {
490
- const result = await finished;
491
- return result instanceof Response ? result : new Response(null, { status: state.status, headers: state.headers });
492
- }
493
- return new Response(body, { status: state.status, headers: state.headers });
494
- }
495
- `;
496
- }
497
- function relativeImport(fromFile, targetFile) {
498
- const relative = toPosixPath(path.relative(path.dirname(fromFile), targetFile));
499
- return relative.startsWith(".") ? relative : `./${relative}`;
500
- }
501
- export {
502
- materializePagesApp
503
- };
@@ -1,52 +0,0 @@
1
- import { createRequire as __pnextCreateRequire } from "node:module";
2
- const require = __pnextCreateRequire("file:///Users/muzam/Code/workshop/coder-workspace/node_modules/.bun/@wular+pnext@0.1.5+62547eec5a2188e3/node_modules/@wular/pnext/package.json");
3
- import {
4
- addClientEntryReason,
5
- assertNoServerActionsWithoutCompat,
6
- collectFileCss,
7
- collectNotFoundCss,
8
- findConventionFiles,
9
- findGlobalError,
10
- findLayouts,
11
- matchInterception,
12
- matchRoute,
13
- materializeRouteFacts,
14
- materializeRouteFactsPaced,
15
- normalizePathname,
16
- parseNavState,
17
- routeFactsResolved,
18
- routeFactsVersion,
19
- scanRoutes,
20
- selectRouteForRequest,
21
- serverActionsUnsupportedMessage,
22
- setRouteFactsStore
23
- } from "./chunk-SNVPTULL.js";
24
- import "./chunk-JRPJM2XY.js";
25
- import "./chunk-CCATPVTW.js";
26
- import "./chunk-HT6KKX6A.js";
27
- import "./chunk-NQE46AZN.js";
28
- import "./chunk-2HFY3DQT.js";
29
- import "./chunk-4P5CMIYT.js";
30
- import "./chunk-FTJVHFWD.js";
31
- import "./chunk-3UPROT2C.js";
32
- export {
33
- addClientEntryReason,
34
- assertNoServerActionsWithoutCompat,
35
- collectFileCss,
36
- collectNotFoundCss,
37
- findConventionFiles,
38
- findGlobalError,
39
- findLayouts,
40
- matchInterception,
41
- matchRoute,
42
- materializeRouteFacts,
43
- materializeRouteFactsPaced,
44
- normalizePathname,
45
- parseNavState,
46
- routeFactsResolved,
47
- routeFactsVersion,
48
- scanRoutes,
49
- selectRouteForRequest,
50
- serverActionsUnsupportedMessage,
51
- setRouteFactsStore
52
- };
@@ -1,13 +0,0 @@
1
- import { createRequire as __pnextCreateRequire } from "node:module";
2
- const require = __pnextCreateRequire("file:///Users/muzam/Code/workshop/coder-workspace/node_modules/.bun/@wular+pnext@0.1.5+62547eec5a2188e3/node_modules/@wular/pnext/package.json");
3
- import {
4
- writeTsconfigDefaults
5
- } from "./chunk-T3QZT3PG.js";
6
- import "./chunk-2ICEVELW.js";
7
- import "./chunk-5RDEILQB.js";
8
- import "./chunk-2HFY3DQT.js";
9
- import "./chunk-FTJVHFWD.js";
10
- import "./chunk-3UPROT2C.js";
11
- export {
12
- writeTsconfigDefaults
13
- };
@@ -1 +0,0 @@
1
- import{s as e}from"./cli-BilSDkvE.js";const t=e(`agent integrations`,{list:async()=>(await import(`./list-VToARh3C.js`)).commandIntegrationsList,ls:async()=>(await import(`./list-VToARh3C.js`)).commandIntegrationsList,show:async()=>(await import(`./show-COTZEYgc.js`)).commandIntegrationsShow},{menu:[{usage:`list`,blurb:`list integrations with their events and tools`},{usage:`show <id>`,blurb:`events and tools of one integration`}],description:[`The platforms an agent can listen to and act on: their events and tool presets.`]},{aliases:{ls:`list`}});export{t as commandAgentIntegrations};
@@ -1 +0,0 @@
1
- import{D as e,bn as t}from"./dispatch-BKeAch9E.js";import{i as n}from"./cli-BilSDkvE.js";const r=n({name:`upgrade refresh`,options:{},run:()=>e(t())});export{r as commandRefreshUpdate};
@@ -1 +0,0 @@
1
- import{s as e}from"./cli-BilSDkvE.js";const t=e(`runner`,{add:async()=>(await import(`./add-BxpLHnvD.js`)).commandRunnerAdd,default:async()=>(await import(`./default-Bobztoxf.js`)).commandRunnerDefault,test:async()=>(await import(`./test-NEbhlxvo.js`)).commandRunnerTest,serve:async()=>(await import(`./serve-CE8YV2e9.js`)).commandRunnerServe,list:async()=>(await import(`./list-C5w01-8q.js`)).commandRunnerList,rename:async()=>(await import(`./rename-CYfy03FE.js`)).commandRunnerRename,remove:async()=>(await import(`./remove-B93LNkZI.js`)).commandRunnerRemove},{menu:[{usage:`add <kind>`,blurb:`connect a runner`},{usage:`default <id>`,blurb:`set the default in its scope`},{usage:`test <id>`,blurb:`check a runner connection`},{usage:`serve --url <public url>`,blurb:`run your server's tasks on this machine`},{usage:`list`,blurb:`list your runners and the workspace's`},{usage:`rename <id> <name>`,blurb:`rename a runner`},{usage:`remove <id>`,blurb:`remove a runner`}],description:[`Run your Coder server's tasks on your own machine, reached through any tunnel.`],exampleCommand:`runner serve`});export{t as commandRunner};
@@ -1,17 +0,0 @@
1
- 'use client';
2
-
3
- import { useEffect } from 'preact/hooks';
4
-
5
- /** `serve` opens /dash#token=…: the fragment never reaches the server, and it leaves history before the form posts it. */
6
- export function TokenFromHash() {
7
- useEffect(() => {
8
- const token = /(?:^|&)token=([^&]+)/.exec(location.hash.slice(1))?.[1];
9
- if (!token) return;
10
- history.replaceState(null, '', location.pathname + location.search);
11
- const form = document.getElementById('token-form') as HTMLFormElement | null;
12
- if (!form) return;
13
- (form.elements.namedItem('token') as HTMLInputElement).value = decodeURIComponent(token);
14
- form.submit();
15
- }, []);
16
- return null;
17
- }