@wular/coder 0.4.1 → 0.4.3

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 (378) hide show
  1. package/README.md +69 -70
  2. package/dist/actions-FzDNxMFf.js +20 -0
  3. package/dist/{adapter-BKVzTDnn.js → adapter-7SEiVsmp.js} +1 -1
  4. package/dist/{adapter-B0oYCI0S.js → adapter-BLEfUqoQ.js} +1 -1
  5. package/dist/{adapter-DPInwbJG.js → adapter-H4GlcKQz.js} +1 -1
  6. package/dist/{add-CE-70LFs.js → add-B50dIJGd.js} +1 -1
  7. package/dist/{add-BxpLHnvD.js → add-D7X3gxap.js} +1 -1
  8. package/dist/{add-ej0X9e3a.js → add-DOEUHIe7.js} +1 -1
  9. package/dist/{add-U-pty9qJ.js → add-QExQhTzi.js} +1 -1
  10. package/dist/{add-json-CEa-6luW.js → add-json-Ck4KIZrT.js} +1 -1
  11. package/dist/{agent-JdtZozvP.js → agent-BPtnEf1q.js} +1 -1
  12. package/dist/{agent-BsYx3Odz.js → agent-BlQ_dNNm.js} +2 -2
  13. package/dist/{alias-DX-Bm86x.js → alias-BwQBovke.js} +1 -1
  14. package/dist/{app-BT5f7zL5.js → app-y6BYm2eH.js} +1 -1
  15. package/dist/{approvals-C-AvFt6s.js → approvals-Cc9cq5T1.js} +2 -2
  16. package/dist/{approve-DOmpQRNd.js → approve-oO9k2fnK.js} +2 -2
  17. package/dist/{apps-CjfrZyM5.js → apps-CU2YalX8.js} +1 -1
  18. package/dist/{archive-BziJ1rQ-.js → archive-C5c_HQS1.js} +2 -2
  19. package/dist/{archive-BUB8gFKD.js → archive-CemlWlVY.js} +2 -2
  20. package/dist/archive-sweep-ehg-fWIt.js +1 -0
  21. package/dist/{args-BOEEdpWk.js → args-DcBCtXhz.js} +1 -1
  22. package/dist/{ask-dE3U3ss2.js → ask-Chu7Twu_.js} +2 -2
  23. package/dist/auth-BOyXPOtu.js +1 -0
  24. package/dist/auth-XbqKSbcD.js +1 -0
  25. package/dist/{chat-bridge-BS9WtP3X.js → chat-bridge-DXgZItGP.js} +1 -1
  26. package/dist/{chat-B_yhNTo0.js → chat-cknlIhVh.js} +1 -1
  27. package/dist/{cli-BilSDkvE.js → cli-B1ObVrL4.js} +5 -5
  28. package/dist/cli.d.ts +1 -1
  29. package/dist/cli.js +1 -1
  30. package/dist/{client-D9IoAuDD.js → client-31YzOj-i.js} +1 -1
  31. package/dist/{config-Da_cwoxI.js → config-DAE_qHYA.js} +1 -1
  32. package/dist/{create-C_iMJV4Y.js → create-CM8B8JxD.js} +1 -1
  33. package/dist/credentials-BXD4Qptk.js +1 -0
  34. package/dist/dash/manifest.json +934 -1014
  35. package/dist/dash/public/assets/chunks/{agent-pills-c9c4ac4d4a10df83.js → agent-pills-b6a6da91c9559d9f.js} +1 -1
  36. package/dist/dash/public/assets/chunks/{agent-settings-form-8be2ddab074aba6d.js → agent-settings-form-b615c677046cd6f2.js} +1 -1
  37. package/dist/dash/public/assets/chunks/agents-grid-f2e7b4ff9e11b6e3.js +1 -0
  38. package/dist/dash/public/assets/chunks/{badge-676b01e0c615bf7b.js → badge-215c7b2631dafc69.js} +1 -1
  39. package/dist/dash/public/assets/chunks/{card-e0901d68b79dfa93.js → card-e86dcc81326d2b14.js} +1 -1
  40. package/dist/dash/public/assets/chunks/{combo-41234c24668b1db1.js → combo-09e246dc9a517fa8.js} +1 -1
  41. package/dist/dash/public/assets/chunks/composer-417166b029f48c47.js +1 -0
  42. package/dist/dash/public/assets/chunks/composer-645ae8fa97a35280.js +1 -0
  43. package/dist/dash/public/assets/chunks/{confirm-f2fe4ba9905a89c6.js → confirm-5ae484241ad888fd.js} +1 -1
  44. package/dist/dash/public/assets/chunks/{connect-apps-aa2a3d82e48ed8c3.js → connect-apps-4147c45f45fde2b1.js} +1 -1
  45. package/dist/dash/public/assets/chunks/{connect-repositories-5389ec8701a3deac.js → connect-repositories-77591110836bdf03.js} +1 -1
  46. package/dist/dash/public/assets/chunks/credentials-list-e005a0783ec93465.js +2 -0
  47. package/dist/dash/public/assets/chunks/{custom-range-4761ab14f05149df.js → custom-range-463e119af4681c61.js} +1 -1
  48. package/dist/dash/public/assets/chunks/{editor-bfe8cd854f8001be.js → editor-804b84f4fe6539cd.js} +4 -4
  49. package/dist/dash/public/assets/chunks/{engines-list-f1191390f5715b39.js → engines-list-ceab51f13c690e8c.js} +1 -1
  50. package/dist/dash/public/assets/chunks/{field-901f1f35c18c39c9.js → field-aa0a4b98a976781e.js} +1 -1
  51. package/dist/dash/public/assets/chunks/filter-91144ac2eec6297f.js +1 -0
  52. package/dist/dash/public/assets/chunks/format-105c706345987fb2.js +1 -0
  53. package/dist/dash/public/assets/chunks/heads-a42817b32d2d7f08.js +1 -0
  54. package/dist/dash/public/assets/chunks/{instructions-052fa45a9daf6db6.js → instructions-3a1dcaff2d868aa5.js} +1 -1
  55. package/dist/dash/public/assets/chunks/instructions-6c6f981fffaa31e4.js +1 -0
  56. package/dist/dash/public/assets/chunks/{list-1d259660d7612c5f.js → list-7270361464fc3c04.js} +1 -1
  57. package/dist/dash/public/assets/chunks/{mcp-list-e3bebbbe831393b8.js → mcp-list-2e715d48666b54ad.js} +1 -1
  58. package/dist/dash/public/assets/chunks/{models-list-44f857a469ca04d5.js → models-list-d3c40f94c761a6e5.js} +1 -1
  59. package/dist/dash/public/assets/chunks/paged-3ddb6077bef42752.js +1 -0
  60. package/dist/dash/public/assets/chunks/{platform-actions-d1426602049926d2.js → platform-actions-271ec3b99a64280b.js} +1 -1
  61. package/dist/dash/public/assets/chunks/runners-list-767e49c7d0ec833a.js +1 -0
  62. package/dist/dash/public/assets/chunks/{segmented-358ff2b4992b8384.js → segmented-de4386ccaac7304d.js} +1 -1
  63. package/dist/dash/public/assets/chunks/{select-7ae25fd8a7d6c338.js → select-a90307706cffa6e0.js} +1 -1
  64. package/dist/dash/public/assets/chunks/{sentinel-c972a33dc69a5135.js → sentinel-b5e032b38604dfd3.js} +1 -1
  65. package/dist/dash/public/assets/chunks/shared-init-7f81ae7bc8c82438.js +2 -0
  66. package/dist/dash/public/assets/chunks/shared-init-933c7f9ee85be766.js +5 -0
  67. package/dist/dash/public/assets/chunks/{tail-7c27aab8ba268bd9.js → tail-4891e727ee526792.js} +1 -1
  68. package/dist/dash/public/assets/chunks/task-actions-ce854925a2dc78fd.js +1 -0
  69. package/dist/dash/public/assets/chunks/task-ddfddeaf07fb684c.js +1 -0
  70. package/dist/dash/public/assets/chunks/task-view-c37dcee08f21a279.js +5 -0
  71. package/dist/dash/public/assets/chunks/tasks-list-baef587999f322d8.js +1 -0
  72. package/dist/dash/public/assets/chunks/{toolbar-a75d2570f07cbb70.js → toolbar-8d98313606ad8a2d.js} +1 -1
  73. package/dist/dash/public/assets/chunks/{versions-list-fc2e0d2a7382e049.js → versions-list-532690efd9f1b0ea.js} +1 -1
  74. package/dist/dash/public/assets/dash-49ca85b59ac65c20.css +1 -0
  75. package/dist/dash/public/assets/dash-account-edc56e85dbaaabe0.css +1 -0
  76. package/dist/dash/public/assets/dash-agents-edba57b67e4005d0.css +1 -0
  77. package/dist/dash/public/assets/dash-agents-new-fe22253fbada2fbf.css +1 -0
  78. package/dist/dash/public/assets/dash-agents-param-slug-adf52e9dacb2d825.css +1 -0
  79. package/dist/dash/public/assets/dash-agents-param-slug-edit-a2937a347689ef29.css +1 -0
  80. package/dist/dash/public/assets/dash-agents-param-slug-platforms-265ba13db32a460d.css +1 -0
  81. package/dist/dash/public/assets/dash-agents-param-slug-settings-8afc52eb0372bc4b.css +1 -0
  82. package/dist/dash/public/assets/dash-agents-param-slug-tasks-6193e646be68dbd2.css +1 -0
  83. package/dist/dash/public/assets/dash-agents-param-slug-usage-ceadb3a1c911c402.css +1 -0
  84. package/dist/dash/public/assets/dash-settings-cf1997cd7f72e518.css +1 -0
  85. package/dist/dash/public/assets/dash-settings-param-tab-b44dac8e79a560e6.css +1 -0
  86. package/dist/dash/public/assets/dash-tasks-916c7100a8058aa3.css +1 -0
  87. package/dist/dash/public/assets/dash-tasks-param-id-194a6ffc20e872f2.css +1 -0
  88. package/dist/dash/public/assets/dash-usage-40940b289f85e0b6.css +1 -0
  89. package/dist/dash/public/assets/pnext-client-13aee92bef5c9e3f.js +1 -0
  90. package/dist/dash/public/assets/pnext-client-1f2686b2044f0df6.js +1 -0
  91. package/dist/dash/public/assets/pnext-client-26130234ebad7067.js +1 -0
  92. package/dist/dash/public/assets/pnext-client-311e35b0076bf406.js +1 -0
  93. package/dist/dash/public/assets/pnext-client-4ade1bf75c9c3d87.js +1 -0
  94. package/dist/dash/public/assets/pnext-client-61cd31b687ede1da.js +1 -0
  95. package/dist/dash/public/assets/pnext-client-61db65dc4223217a.js +1 -0
  96. package/dist/dash/public/assets/pnext-client-6ea656e7705e3f2a.js +1 -0
  97. package/dist/dash/public/assets/pnext-client-7fd0f793f0322cb9.js +1 -0
  98. package/dist/dash/public/assets/pnext-client-88159c0840fcfa4a.js +1 -0
  99. package/dist/dash/public/assets/pnext-client-b03f0c47c066b4f3.js +1 -0
  100. package/dist/dash/public/assets/{pnext-client-1b9ab0963a8ff77b.js → pnext-client-d6478835f543f901.js} +1 -1
  101. package/dist/dash/public/assets/pnext-client-dadb8359021ed590.js +1 -0
  102. package/dist/dash/public/assets/pnext-client-de07532d6aaebf2c.js +1 -0
  103. package/dist/dash/public/assets/pnext-client-f87a31890c8ff224.js +1 -0
  104. package/dist/dash/public/assets/pnext-client-ffe1c123a8e2a350.js +1 -0
  105. package/dist/dash/server/bundle-0.1.6-b29ec45cb963d47f/entry.js +2 -0
  106. package/dist/{default-vYPT26DR.js → default-BMvUMTFp.js} +1 -1
  107. package/dist/default-B_nKaX0-.js +1 -0
  108. package/dist/{delete-D8gEwoOj.js → delete-Bjteibld.js} +2 -2
  109. package/dist/{delete-z1_86nf6.js → delete-riCIKZwj.js} +2 -2
  110. package/dist/{disable-DVKd-0Xb.js → disable-DQC56YFy.js} +1 -1
  111. package/dist/{discover-Dvr_3_Xr.js → discover-Qanr5TEO.js} +1 -1
  112. package/dist/{discover-Df-a8K4R.js → discover-lgTYwoQp.js} +2 -2
  113. package/dist/dispatch-BsW_1m7e.js +14 -0
  114. package/dist/{docs-DKJnqZqt.js → docs-DFs7lOJp.js} +1 -1
  115. package/dist/{docs-BX65z2Iu.js → docs-DKROso-4.js} +2 -2
  116. package/dist/{enable-C8Zf_wpN.js → enable-D2DqZvcU.js} +1 -1
  117. package/dist/{env-CRf6wkM2.js → env-YRY3I60r.js} +1 -1
  118. package/dist/exec-DuUkLMqg.js +11 -0
  119. package/dist/executor-vMppVLB6.js +10 -0
  120. package/dist/flow/builtin/review.js +1 -1
  121. package/dist/flow/index.d.ts +1 -1
  122. package/dist/flow/index.js +1 -1
  123. package/dist/{flow-17k25MHt.js → flow-DmERAnR8.js} +1 -1
  124. package/dist/{github-actions-DwUzm4hC.js → github-actions-C_NkHVJq.js} +1 -1
  125. package/dist/http-D01Udu4u.js +1 -0
  126. package/dist/{index-CZjFX5zV.d.ts → index-B1L4zXZH.d.ts} +2 -1
  127. package/dist/{init-CoMfFxbG.js → init-Bd6JHzBc.js} +1 -1
  128. package/dist/integrations-B2CavXR1.js +5 -0
  129. package/dist/integrations-D1Dwy1kt.js +1 -0
  130. package/dist/lib/broker.js +2 -2
  131. package/dist/{list-DX-z3SBp.js → list-4Uo-0v9s.js} +1 -1
  132. package/dist/{list-BAKvxSbh.js → list-B0ujEZhd.js} +3 -3
  133. package/dist/{list-BYiG8Zav.js → list-B5oa1Bhy.js} +2 -2
  134. package/dist/{list-BxEywhHU.js → list-BjE_l6la.js} +1 -1
  135. package/dist/{list-VToARh3C.js → list-Ck9ibCs1.js} +1 -1
  136. package/dist/{list-CIW2joV1.js → list-DhgK4Zc4.js} +1 -1
  137. package/dist/{list-DpCf4G-H.js → list-KvL7AUhD.js} +2 -2
  138. package/dist/{list-C5w01-8q.js → list-byYLBl1U.js} +1 -1
  139. package/dist/{load-BpEsAn51.js → load-SnZd7xG1.js} +1 -1
  140. package/dist/{local-H3uvqEbq.js → local-BRy1EUq2.js} +1 -1
  141. package/dist/log-view-DeJstSkw.js +3 -0
  142. package/dist/{login-DkkslfBx.js → login-C-ahtDKV.js} +1 -1
  143. package/dist/{login-BFxX4jJy.js → login-zpwke8g1.js} +1 -1
  144. package/dist/{logout-BHAtw4Z8.js → logout-CI6Kf-T6.js} +1 -1
  145. package/dist/{maintenance-C5FklUw3.js → maintenance-BAzr9Jlr.js} +1 -1
  146. package/dist/{match-CXAjDhg7.js → match-DxV1d49D.js} +1 -1
  147. package/dist/{mcp-BgKb2Cdk.js → mcp-CmcL1MCG.js} +1 -1
  148. package/dist/{mcp-CCZOAo06.js → mcp-mhXwtGQT.js} +1 -1
  149. package/dist/{migrate-N-85_N7J.js → migrate-Czh3TEK5.js} +1 -1
  150. package/dist/{migrate-C4vM7DQN.js → migrate-w7KfzUAR.js} +1 -1
  151. package/dist/{model-Bs1StDo3.js → model-JRoTH9QK.js} +1 -1
  152. package/dist/models-C-S7HqSb.js +1 -0
  153. package/dist/{prompt-CEuBMNhk.js → prompt-CMXmt2l9.js} +4 -4
  154. package/dist/{push-CUC55Bqd.js → push-B8BhTyZs.js} +1 -1
  155. package/dist/queue-CirjEskI.js +117 -0
  156. package/dist/refresh-Bmy2r1Ee.js +1 -0
  157. package/dist/{remote-miQNTVRa.js → remote-CxFnEjZl.js} +1 -1
  158. package/dist/{remove-B93LNkZI.js → remove-C15WLaXT.js} +1 -1
  159. package/dist/{remove-C5_xggx7.js → remove-CTZYjjSr.js} +1 -1
  160. package/dist/{remove-eQ8y5C5p.js → remove-CTl-H0f0.js} +1 -1
  161. package/dist/{remove-CuH8a3L9.js → remove-DX2FVo5b.js} +1 -1
  162. package/dist/rename-D1g4TnHQ.js +1 -0
  163. package/dist/{result-BEtQZHaY.js → result-D49VN8PM.js} +3 -3
  164. package/dist/result-DGWyUHYU.js +18 -0
  165. package/dist/{resume-DYzKvyEw.js → resume-ywzc7z6A.js} +2 -2
  166. package/dist/{review-oIBeECZE.js → review-ZC0xG8XY.js} +2 -2
  167. package/dist/{rotate-key-IdMYH7gg.js → rotate-key-Bf8_99ck.js} +1 -1
  168. package/dist/{run-CTtd0Znc.js → run-D7SJ-ieT.js} +2 -2
  169. package/dist/run-DoRQSC_K.js +2 -0
  170. package/dist/{run-CawRGnOg.js → run-ukCf2Mdy.js} +1 -1
  171. package/dist/runner-D-REfOUe.js +1 -0
  172. package/dist/{runner-sUpWJ_k0.js → runner-wDYhkVsM.js} +1 -1
  173. package/dist/schema-DoNO0dPh.js +1 -0
  174. package/dist/sdk.d.ts +4 -2
  175. package/dist/sdk.js +1 -1
  176. package/dist/serve-BJ_Mbm2m.js +8 -0
  177. package/dist/{serve-CPnmrKyf.js → serve-C1MMhM1F.js} +2 -2
  178. package/dist/{serve-GmRO89s5.js → serve-DtrOHaoS.js} +2 -2
  179. package/dist/{serve-CE8YV2e9.js → serve-P9pFkEnE.js} +1 -1
  180. package/dist/{serve-BTeomYxW.js → serve-yjSw0B1a.js} +1 -1
  181. package/dist/{server-Kb22cWfF.js → server-DDWTnmbx.js} +1 -1
  182. package/dist/{setup-host-GFTUzzZJ.js → setup-host-L6Rnn5Cz.js} +1 -1
  183. package/dist/{shared-DVtzWhUT.js → shared-XsUX_ZZb.js} +1 -1
  184. package/dist/{show-COTZEYgc.js → show-CU-jqJ90.js} +1 -1
  185. package/dist/{show-CMUg8SJu.js → show-DVJmB2u-.js} +1 -1
  186. package/dist/{status-D26U--p8.js → status-CBydR7LE.js} +1 -1
  187. package/dist/{steer-C6uARLp5.js → steer-Cm_sHZqs.js} +2 -2
  188. package/dist/{stop-BrGI3hSS.js → stop-DJS7DAPJ.js} +1 -1
  189. package/dist/{stop-ByCAlbmN.js → stop-TrebIIuv.js} +2 -2
  190. package/dist/store-BrNMqJgk.js +42 -0
  191. package/dist/store-j8icrG0v.js +19 -0
  192. package/dist/task-C8lmcNsf.js +1 -0
  193. package/dist/{task-DeglY79z.js → task-CpUI19o2.js} +4 -4
  194. package/dist/task-CvSqiwxo.js +1 -0
  195. package/dist/{test-NEbhlxvo.js → test-CDKz4jY_.js} +1 -1
  196. package/dist/{tools-D0Zfs8Hx.js → tools-DBFeoosk.js} +1 -1
  197. package/dist/{types-I5Cwtl_K.d.ts → types-DMGBYB_K.d.ts} +3 -1
  198. package/dist/{unalias-C9NqmSDq.js → unalias-BfQFBnuK.js} +1 -1
  199. package/dist/{update-BTxYQj7Z.js → update-C4FFOie8.js} +1 -1
  200. package/dist/{upgrade-hA0yWBvx.js → upgrade-DLJqMnUQ.js} +2 -2
  201. package/dist/{usage-BhqoCjvE.js → usage-CSh-xwQ2.js} +1 -1
  202. package/dist/{usage-C4d9X2Uq.js → usage-D8mc4qXK.js} +1 -1
  203. package/dist/{watch-DtRuC0Wc.js → watch-CQu-tJKZ.js} +2 -2
  204. package/dist/{watch-CSdj24ct.js → watch-DmwaEvoi.js} +2 -2
  205. package/dist/{wire-BeT1Axeo.js → wire-DzGLZ3-O.js} +1 -1
  206. package/dist/worker-BLKTMLqa.js +1 -0
  207. package/dist/worker-nHemduM_.js +9 -0
  208. package/dist/{workflow-Dcmdooi8.js → workflow-IrouAus_.js} +1 -1
  209. package/docs/cli.md +145 -0
  210. package/docs/mcp.md +1 -1
  211. package/migrations/0000_initial.sql +8 -0
  212. package/migrations/meta/0000_snapshot.json +75 -1
  213. package/migrations/meta/_journal.json +1 -1
  214. package/package.json +3 -2
  215. package/plugins/agents/skills/coder/SKILL.md +1 -0
  216. package/plugins/claude/.claude-plugin/plugin.json +1 -1
  217. package/plugins/claude/skills/dispatch/SKILL.md +1 -1
  218. package/plugins/cursor/.cursor-plugin/plugin.json +1 -1
  219. package/plugins/cursor/skills/coder/SKILL.md +1 -0
  220. package/src/client/index.ts +10 -2
  221. package/src/client/types.ts +18 -0
  222. package/src/core/defaults.ts +36 -0
  223. package/src/core/task/log-view.ts +120 -6
  224. package/src/server/dash/app/dash/agents/(list)/agent-menu.tsx +4 -0
  225. package/src/server/dash/app/dash/agents/(list)/agents-grid.tsx +18 -35
  226. package/src/server/dash/app/dash/agents/(list)/loading.tsx +7 -1
  227. package/src/server/dash/app/dash/agents/[slug]/(tabs)/layout.tsx +2 -1
  228. package/src/server/dash/app/dash/layout.css +58 -1
  229. package/src/server/dash/app/dash/layout.tsx +29 -7
  230. package/src/server/dash/app/dash/settings/[tab]/credentials-list.tsx +20 -13
  231. package/src/server/dash/app/dash/settings/[tab]/page.tsx +1 -1
  232. package/src/server/dash/app/dash/settings/[tab]/runners-list.tsx +13 -12
  233. package/src/server/dash/app/dash/tasks/[id]/activity.tsx +49 -4
  234. package/src/server/dash/app/dash/tasks/[id]/task-actions.tsx +43 -6
  235. package/src/server/dash/app/dash/tasks/[id]/task-view.css +52 -31
  236. package/src/server/dash/app/dash/tasks/[id]/task-view.tsx +143 -51
  237. package/src/server/dash/app/dash/tasks/composer.css +4 -0
  238. package/src/server/dash/app/dash/tasks/composer.tsx +6 -5
  239. package/src/server/dash/app/dash/tasks/list/task.ts +29 -1
  240. package/src/server/dash/app/dash/tasks/list/tasks-list.css +20 -7
  241. package/src/server/dash/app/dash/tasks/list/tasks-list.tsx +256 -109
  242. package/src/server/dash/app/dash/tasks/list/tasks-section.tsx +9 -13
  243. package/src/server/dash/app/dash/tasks/page.tsx +3 -35
  244. package/src/server/dash/comps/frame/loading-card.tsx +4 -3
  245. package/src/server/dash/comps/frame/page-head.css +10 -0
  246. package/src/server/dash/comps/frame/page-head.tsx +3 -2
  247. package/src/server/dash/comps/frame/task-toasts.tsx +196 -50
  248. package/src/server/dash/comps/nav/side-toggle.tsx +16 -5
  249. package/src/server/dash/comps/ui/card.css +1 -0
  250. package/src/server/dash/comps/ui/filter.css +64 -0
  251. package/src/server/dash/comps/ui/filter.tsx +336 -0
  252. package/src/server/dash/comps/ui/icons.ts +2 -0
  253. package/src/server/dash/comps/ui/menu.tsx +9 -1
  254. package/src/server/dash/comps/ui/select.tsx +2 -2
  255. package/src/server/dash/comps/ui/toast.css +3 -2
  256. package/src/server/dash/comps/ui/toolbar.css +14 -0
  257. package/src/server/dash/utils/client.ts +21 -0
  258. package/src/server/dash/utils/format.ts +12 -4
  259. package/src/server/dash/utils/paged.ts +14 -6
  260. package/dist/actions-Mk3FSlpJ.js +0 -20
  261. package/dist/archive-sweep-CtBcARgN.js +0 -1
  262. package/dist/auth-BFny--17.js +0 -1
  263. package/dist/auth-DWHIzqbA.js +0 -1
  264. package/dist/credentials-B1jv6dkg.js +0 -1
  265. package/dist/dash/public/assets/chunks/agents-grid-951584b6f4c4314e.js +0 -1
  266. package/dist/dash/public/assets/chunks/composer-5534be50bc12385e.js +0 -1
  267. package/dist/dash/public/assets/chunks/composer-d10d4b1d54c4f751.js +0 -1
  268. package/dist/dash/public/assets/chunks/credentials-list-bc5bfcab058176c5.js +0 -2
  269. package/dist/dash/public/assets/chunks/format-eb03fc9d9744d960.js +0 -1
  270. package/dist/dash/public/assets/chunks/heads-f3bcd289663d48fa.js +0 -1
  271. package/dist/dash/public/assets/chunks/instructions-d0a4b0d95009c262.js +0 -1
  272. package/dist/dash/public/assets/chunks/paged-bc6fa0c2b9d52ed7.js +0 -1
  273. package/dist/dash/public/assets/chunks/runners-list-1901af8a5dea1f09.js +0 -1
  274. package/dist/dash/public/assets/chunks/shared-init-88cce66bb3cfe1e5.js +0 -5
  275. package/dist/dash/public/assets/chunks/shared-init-ffb3397e494137c9.js +0 -2
  276. package/dist/dash/public/assets/chunks/task-actions-8e1d93c788d001df.js +0 -1
  277. package/dist/dash/public/assets/chunks/task-fa8b82e95e771c4a.js +0 -1
  278. package/dist/dash/public/assets/chunks/task-view-6d7618d2820a5cb4.js +0 -3
  279. package/dist/dash/public/assets/chunks/tasks-list-f4784e5cbd0ed785.js +0 -1
  280. package/dist/dash/public/assets/dash-9e02d5d1a6d42ee3.css +0 -1
  281. package/dist/dash/public/assets/dash-account-04859899c1838ada.css +0 -1
  282. package/dist/dash/public/assets/dash-agents-9e678137267dec07.css +0 -1
  283. package/dist/dash/public/assets/dash-agents-new-26fa27b17ef9b8d8.css +0 -1
  284. package/dist/dash/public/assets/dash-agents-param-slug-b975c48f8abf3444.css +0 -1
  285. package/dist/dash/public/assets/dash-agents-param-slug-edit-e13fda599bb04843.css +0 -1
  286. package/dist/dash/public/assets/dash-agents-param-slug-platforms-70292932cb27bc96.css +0 -1
  287. package/dist/dash/public/assets/dash-agents-param-slug-settings-71f9a86251723fcc.css +0 -1
  288. package/dist/dash/public/assets/dash-agents-param-slug-tasks-fb8eb2ed71006601.css +0 -1
  289. package/dist/dash/public/assets/dash-agents-param-slug-usage-7c8740f1cdd52c71.css +0 -1
  290. package/dist/dash/public/assets/dash-settings-8eb818da462227e8.css +0 -1
  291. package/dist/dash/public/assets/dash-settings-param-tab-849a1a9542e273f5.css +0 -1
  292. package/dist/dash/public/assets/dash-tasks-81e510e0b6931b42.css +0 -1
  293. package/dist/dash/public/assets/dash-tasks-param-id-bbd2a83342f2ec10.css +0 -1
  294. package/dist/dash/public/assets/dash-usage-8e0259e03eaed1bd.css +0 -1
  295. package/dist/dash/public/assets/pnext-client-03b03b254e525e82.js +0 -1
  296. package/dist/dash/public/assets/pnext-client-1c7859bb888f4ef0.js +0 -1
  297. package/dist/dash/public/assets/pnext-client-3c748afe963fb05d.js +0 -1
  298. package/dist/dash/public/assets/pnext-client-4f47c2cae220f107.js +0 -1
  299. package/dist/dash/public/assets/pnext-client-6ab9fd9b53b794d2.js +0 -1
  300. package/dist/dash/public/assets/pnext-client-6c241786342498e4.js +0 -1
  301. package/dist/dash/public/assets/pnext-client-80b56d420f02b808.js +0 -1
  302. package/dist/dash/public/assets/pnext-client-83135c17bae850a3.js +0 -1
  303. package/dist/dash/public/assets/pnext-client-8e6fa4302ae0396f.js +0 -1
  304. package/dist/dash/public/assets/pnext-client-932c9d8cc0717fc8.js +0 -1
  305. package/dist/dash/public/assets/pnext-client-a42ae63d4de113f9.js +0 -1
  306. package/dist/dash/public/assets/pnext-client-d2ee6f8c1e337032.js +0 -1
  307. package/dist/dash/public/assets/pnext-client-d513f65ec23b7f20.js +0 -1
  308. package/dist/dash/public/assets/pnext-client-ecb88e2a8a109954.js +0 -1
  309. package/dist/dash/public/assets/pnext-client-f1545ee6270bbf9a.js +0 -1
  310. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/boot-B2MFTRO2.js +0 -30
  311. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/build-tier-XJJSL5FR.js +0 -2704
  312. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-2HFY3DQT.js +0 -208
  313. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-2ICEVELW.js +0 -834
  314. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-3UPROT2C.js +0 -35
  315. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-4P5CMIYT.js +0 -1582
  316. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-4TKZKZ3Q.js +0 -131
  317. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-5RDEILQB.js +0 -437
  318. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-62KEQM43.js +0 -25
  319. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-6KQSWT6D.js +0 -831
  320. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-7DCNCW6O.js +0 -724
  321. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-B4THCTQP.js +0 -22
  322. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-C2LIV2MM.js +0 -172
  323. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-CCATPVTW.js +0 -378
  324. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-COXJAPTU.js +0 -89
  325. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-E6IXL2NJ.js +0 -6270
  326. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-FLGRBFAH.js +0 -1198
  327. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-FTJVHFWD.js +0 -61
  328. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-H523KSIH.js +0 -5151
  329. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-HT6KKX6A.js +0 -20
  330. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-JESFYECC.js +0 -438
  331. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-JRPJM2XY.js +0 -17
  332. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-L2IWDUXG.js +0 -107
  333. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-L5P4Y4UC.js +0 -183
  334. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-NQE46AZN.js +0 -647
  335. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-PA4QEARJ.js +0 -129
  336. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-PZ5AXOLW.js +0 -7146
  337. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-SNVPTULL.js +0 -2397
  338. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-T3QZT3PG.js +0 -220
  339. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-VC5O2SDP.js +0 -72
  340. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-WZX4V6CM.js +0 -231
  341. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-XUUIDXY5.js +0 -627
  342. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-ZHFDO3PR.js +0 -265
  343. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/compile-CE2DN7ZA.js +0 -18
  344. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/config-UREY7XJT.js +0 -16
  345. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/config-loader-UI2XE3PZ.js +0 -17
  346. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/entry.js +0 -219
  347. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/generate-I2PPTDFD.js +0 -16
  348. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/modules-UVOCE4C2.js +0 -48
  349. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/pipeline-UW47K537.js +0 -963
  350. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/proxy-ITGOVJBW.js +0 -26
  351. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/register-4SA55SWT.js +0 -12579
  352. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/router-JNKHLBCZ.js +0 -505
  353. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/routes-PD6J2NXW.js +0 -54
  354. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/tsconfig-defaults-ZXEH7RQK.js +0 -15
  355. package/dist/default-Bobztoxf.js +0 -1
  356. package/dist/dispatch-BKeAch9E.js +0 -14
  357. package/dist/exec-RZFLclKX.js +0 -11
  358. package/dist/executor-BvAA7Cgw.js +0 -10
  359. package/dist/http-Bkg_OQ6r.js +0 -1
  360. package/dist/integrations-5xCaXSd-.js +0 -1
  361. package/dist/integrations-BAgdVDhj.js +0 -5
  362. package/dist/log-view-dg0TlKLA.js +0 -1
  363. package/dist/models-_5LVGC3m.js +0 -1
  364. package/dist/queue-6io_NOP3.js +0 -116
  365. package/dist/refresh-BIrmrWYq.js +0 -1
  366. package/dist/rename-CYfy03FE.js +0 -1
  367. package/dist/result-BzaM3inj.js +0 -15
  368. package/dist/run-BDYl0CKl.js +0 -2
  369. package/dist/runner-D7ScbIHJ.js +0 -1
  370. package/dist/schema-CU2iFkp8.js +0 -1
  371. package/dist/serve-CQKZxzFE.js +0 -4
  372. package/dist/store-B94tSate.js +0 -42
  373. package/dist/store-DzqXS2wT.js +0 -8
  374. package/dist/task-C6VAg5WU.js +0 -1
  375. package/dist/task-CgOKgkEG.js +0 -1
  376. package/dist/worker-CXndxmGF.js +0 -9
  377. package/dist/worker-DX7P9kWl.js +0 -1
  378. package/src/server/dash/app/dash/token-from-hash.tsx +0 -17
@@ -1,834 +0,0 @@
1
- import { createRequire as __coderRequire } from "node:module";
2
- const __pnextRoot = __coderRequire(import.meta.url).resolve("@wular/pnext").replace(/\/src\/index\.ts$/, "");
3
- import { createRequire as __pnextCreateRequire } from "node:module";
4
- const require = __pnextCreateRequire(("file://" + __pnextRoot + "/package.json"));
5
- import {
6
- setCacheComponents
7
- } from "./chunk-5RDEILQB.js";
8
- import {
9
- build
10
- } from "./chunk-FTJVHFWD.js";
11
-
12
- // ../node_modules/.bun/@wular+pnext@0.1.5+62547eec5a2188e3/node_modules/@wular/pnext/src/compat/next/config-loader.ts
13
- import { existsSync, mkdirSync, readFileSync, readdirSync, rmSync, writeFileSync } from "node:fs";
14
- import { createRequire } from "node:module";
15
- import path2 from "node:path";
16
- import { pathToFileURL } from "node:url";
17
-
18
- // ../node_modules/.bun/@wular+pnext@0.1.5+62547eec5a2188e3/node_modules/@wular/pnext/src/compat/next/config.ts
19
- var runtimeConfig = {
20
- serverRuntimeConfig: {},
21
- publicRuntimeConfig: typeof __PNEXT_PUBLIC_RUNTIME_CONFIG_INLINED__ === "boolean" ? __PNEXT_PUBLIC_RUNTIME_CONFIG_INLINE__ : {}
22
- };
23
- function setConfig(config) {
24
- Object.assign(runtimeConfig, config);
25
- }
26
-
27
- // ../node_modules/.bun/@wular+pnext@0.1.5+62547eec5a2188e3/node_modules/@wular/pnext/src/compat/next/constants.ts
28
- var PHASE_PRODUCTION_BUILD = "phase-production-build";
29
- var PHASE_DEVELOPMENT_SERVER = "phase-development-server";
30
-
31
- // ../node_modules/.bun/@wular+pnext@0.1.5+62547eec5a2188e3/node_modules/@wular/pnext/src/compat/mdx/stub.ts
32
- var NEXT_MDX_STUB_CONTENTS = `
33
- const createMDX = (pluginOptions = {}) => (nextConfig = {}) => ({
34
- ...nextConfig,
35
- mdxOptions: (pluginOptions && pluginOptions.options) || {},
36
- });
37
- module.exports = createMDX;
38
- module.exports.default = createMDX;
39
- `;
40
- function nextMdxConfigStubPlugin() {
41
- return {
42
- name: "pnext-next-mdx-config-stub",
43
- setup(build2) {
44
- build2.onResolve({ filter: /^@next\/mdx(?:\/|$)/ }, (args) => ({
45
- path: args.path,
46
- namespace: "pnext-next-mdx-stub"
47
- }));
48
- build2.onLoad({ filter: /.*/, namespace: "pnext-next-mdx-stub" }, () => ({
49
- contents: NEXT_MDX_STUB_CONTENTS,
50
- loader: "js"
51
- }));
52
- }
53
- };
54
- }
55
-
56
- // ../node_modules/.bun/@wular+pnext@0.1.5+62547eec5a2188e3/node_modules/@wular/pnext/src/compat/next/image/validate.ts
57
- import fs from "node:fs";
58
- import path from "node:path";
59
- var LOADERS = ["default", "imgix", "cloudinary", "akamai", "custom"];
60
- var FORMATS = ["image/avif", "image/webp"];
61
- var DISPOSITIONS = ["inline", "attachment"];
62
- var REMOTE_PATTERN_KEYS = /* @__PURE__ */ new Set(["protocol", "hostname", "port", "pathname", "search"]);
63
- var LOCAL_PATTERN_KEYS = /* @__PURE__ */ new Set(["pathname", "search"]);
64
- function hasDefaultExport(file) {
65
- let source;
66
- try {
67
- source = fs.readFileSync(file, "utf8");
68
- } catch {
69
- return false;
70
- }
71
- return /\bexport\s+default\b/.test(source) || /\bmodule\.exports\s*=/.test(source);
72
- }
73
- function received(value) {
74
- if (value === null) return "null";
75
- if (Array.isArray(value)) return "array";
76
- return typeof value;
77
- }
78
- function quotedUnion(options) {
79
- return options.map((option) => `'${option}'`).join(" | ");
80
- }
81
- function collectImagesConfigErrors(config, root) {
82
- const errors = [];
83
- const assetPrefix = config.assetPrefix;
84
- if (typeof assetPrefix === "string" && assetPrefix !== "" && !assetPrefix.startsWith("/")) {
85
- try {
86
- new URL(assetPrefix);
87
- } catch {
88
- errors.push("Invalid assetPrefix provided. Original error: TypeError: Invalid URL");
89
- }
90
- }
91
- const images = config.images;
92
- if (images === void 0 || images === null) return errors;
93
- if (typeof images !== "object" || Array.isArray(images)) {
94
- errors.push(`Expected object, received ${received(images)} at "images"`);
95
- return errors;
96
- }
97
- const img = images;
98
- validateSizeArray(errors, img.deviceSizes, "images.deviceSizes");
99
- validateSizeArray(errors, img.imageSizes, "images.imageSizes");
100
- if (img.domains !== void 0) {
101
- if (!Array.isArray(img.domains)) {
102
- errors.push(`Expected array, received ${received(img.domains)} at "images.domains"`);
103
- } else if (img.domains.length > 50) {
104
- errors.push('Array must contain at most 50 element(s) at "images.domains"');
105
- }
106
- }
107
- if (img.qualities !== void 0) {
108
- if (!Array.isArray(img.qualities)) {
109
- errors.push(`Expected array, received ${received(img.qualities)} at "images.qualities"`);
110
- } else {
111
- if (img.qualities.length < 1) {
112
- errors.push('Array must contain at least 1 element(s) at "images.qualities"');
113
- }
114
- if (img.qualities.length > 20) {
115
- errors.push('Array must contain at most 20 element(s) at "images.qualities"');
116
- }
117
- img.qualities.forEach((quality, index) => {
118
- if (typeof quality !== "number") {
119
- errors.push(
120
- `Expected number, received ${received(quality)} at "images.qualities[${index}]"`
121
- );
122
- } else if (!Number.isInteger(quality)) {
123
- errors.push(`Expected integer, received float at "images.qualities[${index}]"`);
124
- } else if (quality < 1) {
125
- errors.push(`Number must be greater than or equal to 1 at "images.qualities[${index}]"`);
126
- } else if (quality > 100) {
127
- errors.push(`Number must be less than or equal to 100 at "images.qualities[${index}]"`);
128
- }
129
- });
130
- }
131
- }
132
- if (img.localPatterns !== void 0) {
133
- if (!Array.isArray(img.localPatterns)) {
134
- errors.push(
135
- `Expected array, received ${received(img.localPatterns)} at "images.localPatterns"`
136
- );
137
- } else {
138
- if (img.localPatterns.length > 25) {
139
- errors.push('Array must contain at most 25 element(s) at "images.localPatterns"');
140
- }
141
- img.localPatterns.forEach((pattern, index) => {
142
- if (!pattern || typeof pattern !== "object") return;
143
- const unknown = Object.keys(pattern).filter(
144
- (key) => !LOCAL_PATTERN_KEYS.has(key)
145
- );
146
- if (unknown.length > 0) {
147
- errors.push(
148
- `Unrecognized key(s) in object: ${unknown.map((key) => `'${key}'`).join(", ")} at "images.localPatterns[${index}]"`
149
- );
150
- }
151
- });
152
- }
153
- }
154
- if (img.remotePatterns !== void 0) {
155
- if (!Array.isArray(img.remotePatterns)) {
156
- errors.push(
157
- `Expected array, received ${received(img.remotePatterns)} at "images.remotePatterns"`
158
- );
159
- } else {
160
- if (img.remotePatterns.length > 50) {
161
- errors.push('Array must contain at most 50 element(s) at "images.remotePatterns"');
162
- }
163
- img.remotePatterns.forEach((pattern, index) => {
164
- if (pattern instanceof URL) {
165
- const protocol = pattern.protocol.replace(/:$/, "");
166
- if (protocol !== "http" && protocol !== "https") {
167
- errors.push(
168
- `Specified images.remotePatterns must have protocol "http" or "https" received "${protocol}"`
169
- );
170
- }
171
- return;
172
- }
173
- if (!pattern || typeof pattern !== "object") {
174
- errors.push(
175
- `Expected object, received ${received(pattern)} at "images.remotePatterns[${index}]"`
176
- );
177
- return;
178
- }
179
- const obj = pattern;
180
- const unknown = Object.keys(obj).filter((key) => !REMOTE_PATTERN_KEYS.has(key));
181
- if (unknown.length > 0) {
182
- errors.push(
183
- `Unrecognized key(s) in object: ${unknown.map((key) => `'${key}'`).join(", ")} at "images.remotePatterns[${index}]"`
184
- );
185
- }
186
- if (typeof obj.hostname !== "string") {
187
- errors.push(`"images.remotePatterns[${index}].hostname" is missing, expected string`);
188
- }
189
- });
190
- }
191
- }
192
- if (img.loader !== void 0) {
193
- if (typeof img.loader !== "string" || !LOADERS.includes(img.loader)) {
194
- errors.push(
195
- `Expected ${quotedUnion(LOADERS)}, received '${received(img.loader) === "string" ? img.loader : received(img.loader)}' at "images.loader"`
196
- );
197
- } else if (img.loader !== "default" && img.loader !== "custom") {
198
- const loader = img.loader;
199
- if (typeof img.path !== "string" || img.path === "" || img.path === "/_next/image") {
200
- errors.push(
201
- `Specified images.loader property (${loader}) also requires images.path property to be assigned to a URL prefix.`
202
- );
203
- }
204
- if (typeof img.loaderFile === "string" && img.loaderFile !== "") {
205
- errors.push(
206
- `Specified images.loader property (${loader}) cannot be used with images.loaderFile property. Please set images.loader to "custom".`
207
- );
208
- }
209
- }
210
- }
211
- if (typeof img.loaderFile === "string" && img.loaderFile !== "") {
212
- const absolute = img.loaderFile.startsWith("/") ? path.join(root, img.loaderFile) : path.resolve(root, img.loaderFile);
213
- if (!fs.existsSync(absolute)) {
214
- errors.push(`Specified images.loaderFile does not exist at "${absolute}".`);
215
- } else if (!hasDefaultExport(absolute)) {
216
- errors.push(
217
- "images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"
218
- );
219
- }
220
- }
221
- if (img.formats !== void 0) {
222
- if (!Array.isArray(img.formats)) {
223
- errors.push(`Expected array, received ${received(img.formats)} at "images.formats"`);
224
- } else {
225
- img.formats.forEach((format, index) => {
226
- if (!FORMATS.includes(format)) {
227
- errors.push(
228
- `Expected ${quotedUnion(FORMATS)}, received '${String(format)}' at "images.formats[${index}]"`
229
- );
230
- }
231
- });
232
- }
233
- }
234
- if (img.contentDispositionType !== void 0 && !DISPOSITIONS.includes(img.contentDispositionType)) {
235
- errors.push(
236
- `Expected ${quotedUnion(DISPOSITIONS)}, received '${typeof img.contentDispositionType === "string" ? img.contentDispositionType : received(img.contentDispositionType)}' at "images.contentDispositionType"`
237
- );
238
- }
239
- if (img.contentSecurityPolicy !== void 0 && typeof img.contentSecurityPolicy !== "string") {
240
- errors.push(
241
- `Expected string, received ${received(img.contentSecurityPolicy)} at "images.contentSecurityPolicy"`
242
- );
243
- }
244
- if (img.minimumCacheTTL !== void 0) {
245
- if (typeof img.minimumCacheTTL !== "number") {
246
- errors.push(
247
- `Expected number, received ${received(img.minimumCacheTTL)} at "images.minimumCacheTTL"`
248
- );
249
- } else if (img.minimumCacheTTL < 0) {
250
- errors.push('Number must be greater than or equal to 0 at "images.minimumCacheTTL"');
251
- }
252
- }
253
- for (const key of ["dangerouslyAllowSVG", "unoptimized", "disableStaticImages"]) {
254
- if (img[key] !== void 0 && typeof img[key] !== "boolean") {
255
- errors.push(`Expected boolean, received ${received(img[key])} at "images.${key}"`);
256
- }
257
- }
258
- return errors;
259
- }
260
- function validateSizeArray(errors, value, label) {
261
- if (value === void 0) return;
262
- if (!Array.isArray(value)) {
263
- errors.push(`Expected array, received ${received(value)} at "${label}"`);
264
- return;
265
- }
266
- if (value.length > 25) {
267
- errors.push(`Array must contain at most 25 element(s) at "${label}"`);
268
- }
269
- value.forEach((size, index) => {
270
- if (typeof size !== "number") {
271
- errors.push(`Expected number, received ${received(size)} at "${label}[${index}]"`);
272
- } else if (size < 1) {
273
- errors.push(`Number must be greater than or equal to 1 at "${label}[${index}]"`);
274
- } else if (size > 1e4) {
275
- errors.push(`Number must be less than or equal to 10000 at "${label}[${index}]"`);
276
- }
277
- });
278
- }
279
-
280
- // ../node_modules/.bun/@wular+pnext@0.1.5+62547eec5a2188e3/node_modules/@wular/pnext/src/compat/next/svgr.ts
281
- var svgAsComponent = false;
282
- function setSvgAsComponentEnabled(enabled) {
283
- svgAsComponent = enabled;
284
- }
285
- function isSvgAsComponentEnabled() {
286
- return svgAsComponent;
287
- }
288
- function webpackReferencesSvgr(config) {
289
- return typeof config.webpack === "function" && String(config.webpack).includes("@svgr/webpack");
290
- }
291
- var XML_PROLOGUE = /^\uFEFF?\s*(?:<\?xml[^>]*\?>\s*)?(?:<!DOCTYPE[^>]*>\s*)?/i;
292
- var SVG_TAG = /^<svg([^>]*)>([\s\S]*)<\/svg>\s*$/i;
293
- var ATTR = /([a-zA-Z_:][-a-zA-Z0-9_:.]*)\s*=\s*"([^"]*)"|([a-zA-Z_:][-a-zA-Z0-9_:.]*)\s*=\s*'([^']*)'/g;
294
- function parseRootAttrs(raw) {
295
- const attrs = {};
296
- for (const match of raw.matchAll(ATTR)) {
297
- const name = match[1] ?? match[3];
298
- const value = match[2] ?? match[4] ?? "";
299
- if (name) attrs[name] = value;
300
- }
301
- return attrs;
302
- }
303
- function svgComponentModule(bytes) {
304
- const text = new TextDecoder().decode(bytes).replace(XML_PROLOGUE, "").trim();
305
- const match = SVG_TAG.exec(text);
306
- const rootAttrs = match ? parseRootAttrs(match[1] ?? "") : {};
307
- const inner = match ? match[2] : text;
308
- return `import { h } from 'preact';
309
- const __pnextSvgAttrs = ${JSON.stringify(rootAttrs)};
310
- const __pnextSvgInner = ${JSON.stringify(inner)};
311
- function SvgComponent(props) {
312
- return h('svg', { ...__pnextSvgAttrs, ...props, dangerouslySetInnerHTML: { __html: __pnextSvgInner } });
313
- }
314
- export default SvgComponent;
315
- `;
316
- }
317
-
318
- // ../node_modules/.bun/@wular+pnext@0.1.5+62547eec5a2188e3/node_modules/@wular/pnext/src/compat/next/telemetry.ts
319
- var EVENT_CLI_SESSION_STARTED = "NEXT_CLI_SESSION_STARTED";
320
- var EVENT_BUILD_FEATURE_USAGE = "NEXT_BUILD_FEATURE_USAGE";
321
- var emitted = false;
322
- var featureUsageEmitted = false;
323
- function configuredStaleTimes(config) {
324
- const experimental = config.experimental;
325
- if (!experimental || typeof experimental !== "object") return {};
326
- const staleTimes = experimental.staleTimes;
327
- if (!staleTimes || typeof staleTimes !== "object") return {};
328
- const value = staleTimes;
329
- return {
330
- ...typeof value.static === "number" ? { static: value.static } : {},
331
- ...typeof value.dynamic === "number" ? { dynamic: value.dynamic } : {}
332
- };
333
- }
334
- function emitSessionStartedTelemetry(config) {
335
- if (emitted) return;
336
- if (!process.env.NEXT_TELEMETRY_DEBUG) return;
337
- emitted = true;
338
- const staleTimes = configuredStaleTimes(config);
339
- const event = {
340
- eventName: EVENT_CLI_SESSION_STARTED,
341
- payload: {
342
- nodeVersion: process.version,
343
- cliCommand: process.argv[2] ?? "unknown",
344
- staticStaleTime: staleTimes.static ?? null,
345
- dynamicStaleTime: staleTimes.dynamic ?? null
346
- }
347
- };
348
- console.log(`[telemetry] ${JSON.stringify(event, null, 2)}`);
349
- }
350
- function emitBuildFeatureUsageTelemetry(config) {
351
- if (featureUsageEmitted) return;
352
- if (!process.env.NEXT_TELEMETRY_DEBUG) return;
353
- if ((process.argv[2] ?? "") !== "build") return;
354
- featureUsageEmitted = true;
355
- const experimental = config.experimental;
356
- const esmExternals = experimental && typeof experimental === "object" ? experimental.esmExternals : void 0;
357
- if (esmExternals !== void 0 && esmExternals !== true) {
358
- console.log(
359
- `[telemetry] ${JSON.stringify(
360
- {
361
- eventName: EVENT_BUILD_FEATURE_USAGE,
362
- payload: { featureName: "esmExternals", invocationCount: 1 }
363
- },
364
- null,
365
- 2
366
- )}`
367
- );
368
- }
369
- }
370
-
371
- // ../node_modules/.bun/@wular+pnext@0.1.5+62547eec5a2188e3/node_modules/@wular/pnext/src/compat/next/config-loader.ts
372
- var CONFIG_BASENAMES = [
373
- "next.config.ts",
374
- "next.config.mts",
375
- "next.config.cts",
376
- "next.config.js",
377
- "next.config.mjs",
378
- "next.config.cjs"
379
- ];
380
- var store = {};
381
- function getNextConfig() {
382
- return store;
383
- }
384
- function readCacheComponentsFlag(config) {
385
- if (process.env.__NEXT_CACHE_COMPONENTS === "true") return true;
386
- if (config.cacheComponents === true) return true;
387
- const experimental = config.experimental;
388
- if (experimental?.cacheComponents === true) return true;
389
- if (experimental?.dynamicIO === true) return true;
390
- return false;
391
- }
392
- function setNextConfig(config) {
393
- store = config;
394
- setCacheComponents(readCacheComponentsFlag(config));
395
- setSvgAsComponentEnabled(webpackReferencesSvgr(config));
396
- globalThis.__PNEXT_BASE_PATH__ = typeof config.basePath === "string" ? config.basePath : "";
397
- globalThis.__PNEXT_SKIP_TRAILING_SLASH__ = config.skipTrailingSlashRedirect === true;
398
- globalThis.__PNEXT_TRAILING_SLASH__ = config.trailingSlash === true;
399
- }
400
- function findConfigPath(root) {
401
- for (const name of CONFIG_BASENAMES) {
402
- const candidate = path2.join(root, name);
403
- if (existsSync(candidate)) return candidate;
404
- }
405
- return void 0;
406
- }
407
- var { Bun: bun } = globalThis;
408
- function configSourceKey(configPath) {
409
- try {
410
- return bun.hash(readFileSync(configPath)).toString(36);
411
- } catch {
412
- return "config";
413
- }
414
- }
415
- function findTsconfig(root) {
416
- const candidate = path2.join(root, "tsconfig.json");
417
- return existsSync(candidate) ? candidate : void 0;
418
- }
419
- async function importConfigModule(configPath, root, options) {
420
- const cjs = cjsConfigFormat(configPath, root);
421
- if (process.env.PNEXT_CONFIG_FAST !== "0" && selfContainedConfig(configPath)) {
422
- if (cjs) return createRequire(pathToFileURL(configPath))(configPath);
423
- const module = await import(pathToFileURL(configPath).href);
424
- return module.default ?? {};
425
- }
426
- const outDir = path2.join(root, ".pnext", ...options.dev ? ["dev"] : [], "config");
427
- const outfile = path2.join(
428
- outDir,
429
- `next.config.${configSourceKey(configPath)}.${cjs ? "cjs" : "mjs"}`
430
- );
431
- if (options.serve && existsSync(outfile)) return importConfigBundle(outfile, cjs);
432
- try {
433
- mkdirSync(outDir, { recursive: true });
434
- await bundleConfig({ configPath, root, outDir, outfile, cjs });
435
- } catch (error) {
436
- if (!options.serve) throw error;
437
- throw new Error(
438
- `pnext: ${path2.relative(root, outfile)} is missing and could not be rebuilt here \u2014 run \`pnext build\` and deploy its output dir, which carries the config bundle. Cause: ` + (error instanceof Error ? error.message : String(error)),
439
- { cause: error }
440
- );
441
- }
442
- pruneStaleConfigBundles(outDir, outfile);
443
- return importConfigBundle(outfile, cjs);
444
- }
445
- function bundleConfig({
446
- configPath,
447
- root,
448
- outDir,
449
- outfile,
450
- cjs
451
- }) {
452
- return build({
453
- entryPoints: [configPath],
454
- outfile,
455
- bundle: true,
456
- platform: "node",
457
- format: cjs ? "cjs" : "esm",
458
- target: "esnext",
459
- // Keep bare package imports external so Node resolves them from the app's
460
- // node_modules at import time (preserves CJS/ESM interop and identity).
461
- packages: "external",
462
- // Fixture/app configs may require() or require.resolve() Next internals
463
- // (next/dist/*) that don't exist without a real `next` install. Stub them
464
- // so the config still loads; features pointing at the stubs degrade
465
- // gracefully instead of crashing config loading.
466
- plugins: [nextDistStubPlugin(outDir), nextMdxConfigStubPlugin()],
467
- banner: cjs ? {
468
- js: `var __pnextNodeRequire = module.require.bind(module);
469
- var require = __pnextNodeRequire("node:module").createRequire(${JSON.stringify(pathToFileURL(configPath).href)});`
470
- } : {
471
- js: `import { createRequire as __pnextCreateRequire } from "node:module";
472
- const require = __pnextCreateRequire(${JSON.stringify(pathToFileURL(configPath).href)});`
473
- },
474
- // Relative/absolute imports (incl. .ts/.cts/.mts/.cjs/.mjs and tsconfig
475
- // `paths` aliases) are bundled in. esbuild reads `paths`/`extends` and
476
- // `baseUrl` from the app tsconfig.
477
- tsconfig: findTsconfig(root),
478
- // __dirname / __filename in CJS-authored .ts configs (node-api-cjs) and
479
- // import.meta.url in ESM configs (node-api-esm) must point at the config's
480
- // original location, not the emitted file under .pnext/config.
481
- define: {
482
- __dirname: JSON.stringify(path2.dirname(configPath)),
483
- __filename: JSON.stringify(configPath),
484
- "import.meta.url": JSON.stringify(pathToFileURL(configPath).href)
485
- },
486
- logLevel: "silent",
487
- sourcemap: false,
488
- metafile: false
489
- });
490
- }
491
- async function importConfigBundle(outfile, cjs) {
492
- if (cjs) return createRequire(pathToFileURL(outfile))(outfile);
493
- const module = await import(pathToFileURL(outfile).href);
494
- return module.default ?? {};
495
- }
496
- function pruneStaleConfigBundles(outDir, outfile) {
497
- try {
498
- for (const entry of readdirSync(outDir)) {
499
- if (!/^next\.config\..+\.[cm]js$/.test(entry)) continue;
500
- if (path2.join(outDir, entry) === outfile) continue;
501
- rmSync(path2.join(outDir, entry), { force: true });
502
- }
503
- } catch {
504
- }
505
- }
506
- function selfContainedConfig(configPath) {
507
- try {
508
- const source = readFileSync(configPath, "utf8").replaceAll("import.meta", "");
509
- return !/\b(?:import|require|__dirname|__filename)\b/.test(source);
510
- } catch {
511
- return false;
512
- }
513
- }
514
- function cjsConfigFormat(configPath, root) {
515
- if (configPath.endsWith(".cjs") || configPath.endsWith(".cts")) return true;
516
- if (!configPath.endsWith(".js")) return false;
517
- try {
518
- const pkg = JSON.parse(readFileSync(path2.join(root, "package.json"), "utf8"));
519
- return pkg.type !== "module";
520
- } catch {
521
- return true;
522
- }
523
- }
524
- var NEXT_DIST_STUB_CONTENTS = 'class PNextConfigStub {}\nmodule.exports = new Proxy(PNextConfigStub, { get: (t, k) => (k === "default" ? PNextConfigStub : t[k] ?? PNextConfigStub) });\n';
525
- function nextDistStubPlugin(outDir) {
526
- return {
527
- name: "pnext-next-dist-stub",
528
- setup(build2) {
529
- build2.onResolve({ filter: /^next\/dist\// }, (args) => {
530
- if (args.kind === "require-resolve") {
531
- const stubPath = path2.join(outDir, "next-dist-stub", `${args.path}.cjs`);
532
- mkdirSync(path2.dirname(stubPath), { recursive: true });
533
- writeFileSync(stubPath, NEXT_DIST_STUB_CONTENTS);
534
- return { path: stubPath, external: true };
535
- }
536
- return { path: args.path, namespace: "pnext-next-dist-stub" };
537
- });
538
- build2.onLoad({ filter: /.*/, namespace: "pnext-next-dist-stub" }, () => ({
539
- contents: NEXT_DIST_STUB_CONTENTS,
540
- loader: "js"
541
- }));
542
- }
543
- };
544
- }
545
- function currentPhase(dev) {
546
- return dev ? PHASE_DEVELOPMENT_SERVER : PHASE_PRODUCTION_BUILD;
547
- }
548
- function isModuleNotFoundError(error) {
549
- if (!error || typeof error !== "object") return false;
550
- const code = error.code;
551
- if (code === "ERR_MODULE_NOT_FOUND" || code === "MODULE_NOT_FOUND") return true;
552
- const message = error.message;
553
- return typeof message === "string" && /Cannot find (?:module|package)/.test(message);
554
- }
555
- function describeMissingModule(error) {
556
- const message = error.message;
557
- const match = typeof message === "string" ? /Cannot find (?:module|package) ['"]([^'"]+)['"]/.exec(message) : null;
558
- return match ? `${match[1]} not installed` : "a required module is not installed";
559
- }
560
- async function resolveConfigExport(exported, dev) {
561
- const value = typeof exported === "function" ? await exported(currentPhase(dev), { defaultConfig: {} }) : await exported;
562
- return value ?? {};
563
- }
564
- function mapOverrides(config) {
565
- const overrides = {};
566
- if (typeof config.basePath === "string") overrides.basePath = config.basePath;
567
- if (typeof config.assetPrefix === "string" && config.assetPrefix.length > 0) {
568
- overrides.assetPrefix = config.assetPrefix;
569
- }
570
- if (typeof config.trailingSlash === "boolean") overrides.trailingSlash = config.trailingSlash;
571
- if (typeof config.skipTrailingSlashRedirect === "boolean")
572
- overrides.skipTrailingSlashRedirect = config.skipTrailingSlashRedirect;
573
- if (typeof config.productionBrowserSourceMaps === "boolean")
574
- overrides.productionBrowserSourceMaps = config.productionBrowserSourceMaps;
575
- if (typeof config.distDir === "string" && config.distDir.length > 0 && config.output !== "export") {
576
- overrides.outDir = config.distDir;
577
- }
578
- return overrides;
579
- }
580
- function normalizeCacheHandlerPath(config, root) {
581
- const value = config.cacheHandler;
582
- const cacheHandlers = config.cacheHandlers;
583
- let next = config;
584
- if (typeof value === "string" && isRelativePathSpecifier(value)) {
585
- next = { ...next, cacheHandler: path2.resolve(root, value) };
586
- }
587
- if (cacheHandlers && typeof cacheHandlers === "object" && !Array.isArray(cacheHandlers)) {
588
- const normalized = {};
589
- let changed = false;
590
- for (const [key, handlerPath] of Object.entries(cacheHandlers)) {
591
- if (typeof handlerPath === "string" && isRelativePathSpecifier(handlerPath)) {
592
- normalized[key] = path2.resolve(root, handlerPath);
593
- changed = true;
594
- } else {
595
- normalized[key] = handlerPath;
596
- }
597
- }
598
- if (changed) next = { ...next, cacheHandlers: normalized };
599
- }
600
- return next;
601
- }
602
- function isRelativePathSpecifier(value) {
603
- return value === "." || value === ".." || value.startsWith("./") || value.startsWith("../");
604
- }
605
- function applyEnv(config) {
606
- const env = config.env;
607
- if (!env || typeof env !== "object") return;
608
- for (const [key, value] of Object.entries(env)) {
609
- if (value === void 0 || value === null) continue;
610
- if (process.env[key] !== void 0) continue;
611
- process.env[key] = typeof value === "string" ? value : JSON.stringify(value) ?? "";
612
- }
613
- }
614
- function applyRuntimeConfig(config) {
615
- const serverRuntimeConfig = config.serverRuntimeConfig;
616
- const publicRuntimeConfig = config.publicRuntimeConfig;
617
- if (!serverRuntimeConfig && !publicRuntimeConfig) return;
618
- setConfig({
619
- ...serverRuntimeConfig && typeof serverRuntimeConfig === "object" ? { serverRuntimeConfig } : {},
620
- ...publicRuntimeConfig && typeof publicRuntimeConfig === "object" ? { publicRuntimeConfig } : {}
621
- });
622
- }
623
- var VALID_DEV_INDICATOR_POSITIONS = /* @__PURE__ */ new Set([
624
- "top-left",
625
- "top-right",
626
- "bottom-left",
627
- "bottom-right"
628
- ]);
629
- var KNOWN_TOP_LEVEL_CONFIG_KEYS = /* @__PURE__ */ new Set([
630
- "adapterPath",
631
- "agentRules",
632
- "allowedDevOrigins",
633
- "assetPrefix",
634
- "basePath",
635
- "bundlePagesRouterDependencies",
636
- "cacheComponents",
637
- "cacheHandler",
638
- "cacheHandlers",
639
- "cacheLife",
640
- "cacheMaxMemorySize",
641
- "cleanDistDir",
642
- "compiler",
643
- "compress",
644
- "configFile",
645
- "configFileName",
646
- "configOrigin",
647
- "crossOrigin",
648
- "deploymentId",
649
- "devIndicators",
650
- "distDir",
651
- "enablePrerenderSourceMaps",
652
- "env",
653
- "excludeDefaultMomentLocales",
654
- "expireTime",
655
- "experimental",
656
- "exportPathMap",
657
- "generateBuildId",
658
- "generateEtags",
659
- "headers",
660
- "htmlLimitedBots",
661
- "httpAgentOptions",
662
- "images",
663
- "logging",
664
- "modularizeImports",
665
- "onDemandEntries",
666
- "output",
667
- "outputFileTracingExcludes",
668
- "outputFileTracingIncludes",
669
- "outputFileTracingRoot",
670
- "pageExtensions",
671
- "partialPrefetching",
672
- "poweredByHeader",
673
- "productionBrowserSourceMaps",
674
- "publicRuntimeConfig",
675
- "reactCompiler",
676
- "reactMaxHeadersLength",
677
- "reactProductionProfiling",
678
- "reactStrictMode",
679
- "resolveExtensions",
680
- "redirects",
681
- "rewrites",
682
- "sassOptions",
683
- "serverExternalPackages",
684
- "serverRuntimeConfig",
685
- "skipProxyUrlNormalize",
686
- "skipTrailingSlashRedirect",
687
- "staticPageGenerationTimeout",
688
- "i18n",
689
- "instrumentationClientInject",
690
- "trailingSlash",
691
- "skipMiddlewareUrlNormalize",
692
- "transpilePackages",
693
- "turbopack",
694
- "typedRoutes",
695
- "typescript",
696
- "useFileSystemPublicRoutes",
697
- "watchOptions",
698
- "webpack"
699
- ]);
700
- var DEPRECATED_CONFIG_OPTIONS = [
701
- {
702
- key: "experimental.middlewarePrefetch",
703
- reason: (file) => `\`experimental.middlewarePrefetch\` is deprecated. Please use \`experimental.proxyPrefetch\` instead in ${file}.`
704
- },
705
- {
706
- key: "experimental.middlewareClientMaxBodySize",
707
- reason: (file) => `\`experimental.middlewareClientMaxBodySize\` is deprecated. Please use \`experimental.proxyClientMaxBodySize\` instead in ${file}.`
708
- },
709
- {
710
- key: "experimental.externalMiddlewareRewritesResolve",
711
- reason: (file) => `\`experimental.externalMiddlewareRewritesResolve\` is deprecated. Please use \`experimental.externalProxyRewritesResolve\` instead in ${file}.`
712
- },
713
- {
714
- key: "skipMiddlewareUrlNormalize",
715
- reason: (file) => `\`skipMiddlewareUrlNormalize\` is deprecated. Please use \`skipProxyUrlNormalize\` instead in ${file}.`
716
- },
717
- {
718
- key: "experimental.instrumentationHook",
719
- reason: (file) => `\`experimental.instrumentationHook\` is no longer needed, because \`instrumentation.js\` is available by default. You can remove it from ${file}.`
720
- }
721
- ];
722
- var warnedConfigPaths = /* @__PURE__ */ new Set();
723
- function validateConfig(config, configPath, emitWarnings) {
724
- if (emitWarnings && !warnedConfigPaths.has(configPath)) {
725
- warnedConfigPaths.add(configPath);
726
- const configFileName = path2.basename(configPath);
727
- warnUnknownConfigKeys(config);
728
- warnEsmExternalsFalse(config);
729
- warnDeprecatedConfigOptions(config, configFileName);
730
- warnWebpackCompat(config, configFileName);
731
- }
732
- validateDevIndicatorPosition(config);
733
- const imageErrors = collectImagesConfigErrors(config, path2.dirname(configPath));
734
- if (imageErrors.length > 0) {
735
- throw new Error(
736
- `Invalid next.config.js options detected:
737
- ${imageErrors.map((e) => ` ${e}`).join("\n")}
738
- See more info here: https://nextjs.org/docs/messages/invalid-next-config`
739
- );
740
- }
741
- }
742
- function hasNestedKey(config, dottedKey) {
743
- let current = config;
744
- for (const key of dottedKey.split(".")) {
745
- if (!current || typeof current !== "object") return false;
746
- current = current[key];
747
- if (current === void 0) return false;
748
- }
749
- return true;
750
- }
751
- function warnDeprecatedConfigOptions(config, configFileName) {
752
- for (const { key, reason } of DEPRECATED_CONFIG_OPTIONS) {
753
- if (hasNestedKey(config, key)) console.warn(reason(configFileName));
754
- }
755
- }
756
- function warnUnknownConfigKeys(config) {
757
- const invalid = Object.keys(config).filter((key) => !KNOWN_TOP_LEVEL_CONFIG_KEYS.has(key));
758
- if (invalid.length === 0) return;
759
- console.warn(
760
- `Invalid next.config.js options detected: ${invalid.map((key) => `"${key}"`).join(", ")}`
761
- );
762
- }
763
- function warnWebpackCompat(config, configFileName) {
764
- if (typeof config.webpack !== "function") return;
765
- console.warn(
766
- `\`webpack\` in ${configFileName} is not executed by pnext \u2014 esbuild is the only bundler. \`transpilePackages\`, \`experimental.optimizePackageImports\`, and \`turbopack.resolveAlias\` are supported natively; see https://pnext.dev/docs/compat.`
767
- );
768
- if (webpackReferencesSvgr(config)) {
769
- console.info(
770
- "pnext detected @svgr/webpack in `webpack()` and will compile `.svg` imports to inline Preact components instead (see https://pnext.dev/docs/compat)."
771
- );
772
- }
773
- }
774
- function warnEsmExternalsFalse(config) {
775
- const experimental = config.experimental;
776
- if (!experimental || typeof experimental !== "object") return;
777
- if (experimental.esmExternals !== false) return;
778
- console.warn(
779
- 'The "experimental.esmExternals" option has been modified. experimental.esmExternals is not recommended to be modified as it may disrupt module resolution. It should be removed from your next.config.js'
780
- );
781
- }
782
- function validateDevIndicatorPosition(config) {
783
- const devIndicators = config.devIndicators;
784
- if (!devIndicators || typeof devIndicators !== "object") return;
785
- const position = devIndicators.position;
786
- if (typeof position !== "string" || VALID_DEV_INDICATOR_POSITIONS.has(position)) return;
787
- throw new Error(
788
- `Invalid "devIndicator.position" provided, expected one of top-left, top-right, bottom-left, bottom-right, received ${position}`
789
- );
790
- }
791
- async function loadNextConfig(root, options = {}) {
792
- const configPath = findConfigPath(root);
793
- if (!configPath) {
794
- setNextConfig({});
795
- emitSessionStartedTelemetry({});
796
- return { config: {}, overrides: {} };
797
- }
798
- let exported;
799
- try {
800
- exported = await importConfigModule(configPath, root, {
801
- dev: Boolean(options.dev),
802
- serve: Boolean(options.serve)
803
- });
804
- } catch (error) {
805
- if (isModuleNotFoundError(error)) {
806
- console.warn(
807
- `pnext: could not load ${path2.relative(root, configPath)} (${describeMissingModule(error)}); continuing with default config`
808
- );
809
- setNextConfig({});
810
- emitSessionStartedTelemetry({});
811
- return { config: {}, overrides: {} };
812
- }
813
- throw error;
814
- }
815
- const config = normalizeCacheHandlerPath(
816
- await resolveConfigExport(exported, Boolean(options.dev)),
817
- root
818
- );
819
- validateConfig(config, configPath, options.warnings !== false);
820
- setNextConfig(config);
821
- applyEnv(config);
822
- applyRuntimeConfig(config);
823
- emitSessionStartedTelemetry(config);
824
- emitBuildFeatureUsageTelemetry(config);
825
- return { config, overrides: mapOverrides(config) };
826
- }
827
-
828
- export {
829
- isSvgAsComponentEnabled,
830
- svgComponentModule,
831
- getNextConfig,
832
- setNextConfig,
833
- loadNextConfig
834
- };