@wular/coder 0.4.1 → 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.
- package/README.md +69 -70
- package/dist/{add-ej0X9e3a.js → add-C2y-mVzl.js} +1 -1
- package/dist/{add-U-pty9qJ.js → add-CLYTF_up.js} +1 -1
- package/dist/{add-CE-70LFs.js → add-DRsPpQFl.js} +1 -1
- package/dist/{add-BxpLHnvD.js → add-DkpUwhtO.js} +1 -1
- package/dist/{add-json-CEa-6luW.js → add-json-5uPnWPoD.js} +1 -1
- package/dist/{agent-BsYx3Odz.js → agent-hw3zKw8y.js} +1 -1
- package/dist/{agent-JdtZozvP.js → agent-r5mMcehf.js} +1 -1
- package/dist/{alias-DX-Bm86x.js → alias-_0Rwf2cA.js} +1 -1
- package/dist/{app-BT5f7zL5.js → app-oE8G1-bi.js} +1 -1
- package/dist/{approvals-C-AvFt6s.js → approvals-DbVrsxec.js} +1 -1
- package/dist/{approve-DOmpQRNd.js → approve-DeAhFL-m.js} +1 -1
- package/dist/{apps-CjfrZyM5.js → apps-eujHiNca.js} +1 -1
- package/dist/{archive-BziJ1rQ-.js → archive-BCUfymIB.js} +1 -1
- package/dist/{archive-BUB8gFKD.js → archive-DZ6vpMHb.js} +1 -1
- package/dist/{archive-sweep-CtBcARgN.js → archive-sweep-Cxbh8yAI.js} +1 -1
- package/dist/{ask-dE3U3ss2.js → ask-BU2WVxVM.js} +1 -1
- package/dist/auth-CBWTmAPA.js +1 -0
- package/dist/{auth-BFny--17.js → auth-Dmn2U7rr.js} +1 -1
- package/dist/{cli-BilSDkvE.js → cli-DWCR7iqa.js} +1 -1
- package/dist/cli.js +1 -1
- package/dist/{config-Da_cwoxI.js → config-12pK4qW7.js} +1 -1
- package/dist/{create-C_iMJV4Y.js → create-D3f6q0Yq.js} +1 -1
- package/dist/credentials-l6dsrZLL.js +1 -0
- package/dist/dash/manifest.json +744 -858
- package/dist/dash/public/assets/chunks/{agent-pills-c9c4ac4d4a10df83.js → agent-pills-dd0b7643e125bbf1.js} +1 -1
- package/dist/dash/public/assets/chunks/{agent-settings-form-8be2ddab074aba6d.js → agent-settings-form-45ae6aeaaed2b568.js} +1 -1
- package/dist/dash/public/assets/chunks/{agents-grid-951584b6f4c4314e.js → agents-grid-b906da80c31fc035.js} +1 -1
- package/dist/dash/public/assets/chunks/{combo-41234c24668b1db1.js → combo-952a457d52360d88.js} +1 -1
- package/dist/dash/public/assets/chunks/{composer-d10d4b1d54c4f751.js → composer-49f9e7c5c4dfda3b.js} +1 -1
- package/dist/dash/public/assets/chunks/{composer-5534be50bc12385e.js → composer-f331d00837143aee.js} +1 -1
- package/dist/dash/public/assets/chunks/{connect-apps-aa2a3d82e48ed8c3.js → connect-apps-661f3b3a85f1776a.js} +1 -1
- package/dist/dash/public/assets/chunks/{credentials-list-bc5bfcab058176c5.js → credentials-list-e6177d0943517929.js} +2 -2
- package/dist/dash/public/assets/chunks/{custom-range-4761ab14f05149df.js → custom-range-03ba6fb2ade7d282.js} +1 -1
- package/dist/dash/public/assets/chunks/{editor-bfe8cd854f8001be.js → editor-34cb529d6d8a4b09.js} +1 -1
- package/dist/dash/public/assets/chunks/{engines-list-f1191390f5715b39.js → engines-list-2f1acee3ecc8461a.js} +1 -1
- package/dist/dash/public/assets/chunks/{heads-f3bcd289663d48fa.js → heads-1570a3a6db331979.js} +1 -1
- package/dist/dash/public/assets/chunks/{list-1d259660d7612c5f.js → list-87b359bebd26986a.js} +1 -1
- package/dist/dash/public/assets/chunks/{mcp-list-e3bebbbe831393b8.js → mcp-list-b42f0d2ee463b37d.js} +1 -1
- package/dist/dash/public/assets/chunks/{models-list-44f857a469ca04d5.js → models-list-0669d26fd662aec3.js} +1 -1
- package/dist/dash/public/assets/chunks/{platform-actions-d1426602049926d2.js → platform-actions-c92ca3c6198a9387.js} +1 -1
- package/dist/dash/public/assets/chunks/{runners-list-1901af8a5dea1f09.js → runners-list-9fffa50432c470c9.js} +1 -1
- package/dist/dash/public/assets/chunks/{select-7ae25fd8a7d6c338.js → select-1013702bdfb1ade4.js} +1 -1
- package/dist/dash/public/assets/chunks/shared-init-20e199043ff5d00f.js +2 -0
- package/dist/dash/public/assets/chunks/{task-actions-8e1d93c788d001df.js → task-actions-a9603d520434baab.js} +1 -1
- package/dist/dash/public/assets/chunks/{task-view-6d7618d2820a5cb4.js → task-view-f7039cb330bcb0b5.js} +3 -3
- package/dist/dash/public/assets/chunks/{tasks-list-f4784e5cbd0ed785.js → tasks-list-2a905b4a0c3a9042.js} +1 -1
- package/dist/dash/public/assets/chunks/{toolbar-a75d2570f07cbb70.js → toolbar-f964fa864699f095.js} +1 -1
- package/dist/dash/public/assets/dash-49ca85b59ac65c20.css +1 -0
- package/dist/dash/public/assets/dash-account-96fc41be318839fa.css +1 -0
- package/dist/dash/public/assets/dash-agents-290a7b21c7dc0c92.css +1 -0
- package/dist/dash/public/assets/dash-agents-new-a7a07bf4ebda24c2.css +1 -0
- package/dist/dash/public/assets/dash-agents-param-slug-69a72fb0bbd14cc2.css +1 -0
- package/dist/dash/public/assets/dash-agents-param-slug-edit-397bdfb2f0ca328c.css +1 -0
- package/dist/dash/public/assets/dash-agents-param-slug-platforms-a7b3b7247c27f1d2.css +1 -0
- package/dist/dash/public/assets/dash-agents-param-slug-settings-8389b7d0555e8ccf.css +1 -0
- package/dist/dash/public/assets/dash-agents-param-slug-tasks-5987b8aea5e8f30d.css +1 -0
- package/dist/dash/public/assets/dash-agents-param-slug-usage-19abc69e1d4e6b0a.css +1 -0
- package/dist/dash/public/assets/dash-settings-53b8e6a8f656fa1a.css +1 -0
- package/dist/dash/public/assets/dash-settings-param-tab-ac61fdfdd6fd533f.css +1 -0
- package/dist/dash/public/assets/dash-tasks-cc0b1d32874b731c.css +1 -0
- package/dist/dash/public/assets/dash-tasks-param-id-02b8c7bd99cc1090.css +1 -0
- package/dist/dash/public/assets/dash-usage-884943221f76ad93.css +1 -0
- package/dist/dash/public/assets/pnext-client-17ba55bb57a1f4da.js +1 -0
- package/dist/dash/public/assets/{pnext-client-1b9ab0963a8ff77b.js → pnext-client-1afa4148bea69ad2.js} +1 -1
- package/dist/dash/public/assets/pnext-client-2693db10b197ade1.js +1 -0
- package/dist/dash/public/assets/pnext-client-43f52a07f8067b1b.js +1 -0
- package/dist/dash/public/assets/pnext-client-4594b693fe612835.js +1 -0
- package/dist/dash/public/assets/pnext-client-73f73e24f8141fb6.js +1 -0
- package/dist/dash/public/assets/pnext-client-7574da4651b40eae.js +1 -0
- package/dist/dash/public/assets/pnext-client-7b3a2c1092cbbb02.js +1 -0
- package/dist/dash/public/assets/pnext-client-816fe5fc96d3f768.js +1 -0
- package/dist/dash/public/assets/pnext-client-86cb956b448b0887.js +1 -0
- package/dist/dash/public/assets/pnext-client-8b64e3c030164288.js +1 -0
- package/dist/dash/public/assets/pnext-client-8f6161084c595a22.js +1 -0
- package/dist/dash/public/assets/pnext-client-9203ec11926e5d04.js +1 -0
- package/dist/dash/public/assets/pnext-client-a38b446f941d44df.js +1 -0
- package/dist/dash/public/assets/pnext-client-bd8d51aaa095e8a4.js +1 -0
- package/dist/dash/public/assets/pnext-client-e9821d1f1bdb281d.js +1 -0
- package/dist/dash/server/bundle-0.1.6-b29ec45cb963d47f/entry.js +2 -0
- package/dist/{default-vYPT26DR.js → default-CwQXCtoB.js} +1 -1
- package/dist/{default-Bobztoxf.js → default-De8FXiWz.js} +1 -1
- package/dist/{delete-z1_86nf6.js → delete-BD6AnCLg.js} +1 -1
- package/dist/{delete-D8gEwoOj.js → delete-cS01oOIb.js} +1 -1
- package/dist/{disable-DVKd-0Xb.js → disable-BMWWeYFQ.js} +1 -1
- package/dist/{discover-Df-a8K4R.js → discover-Cfx5RPU7.js} +1 -1
- package/dist/{docs-DKJnqZqt.js → docs-DWegDRiu.js} +1 -1
- package/dist/{enable-C8Zf_wpN.js → enable-Cfzeau2x.js} +1 -1
- package/dist/{flow-17k25MHt.js → flow-kAxxVOiR.js} +1 -1
- package/dist/{init-CoMfFxbG.js → init-C4tDFH4G.js} +1 -1
- package/dist/integrations-D-L3uQRj.js +1 -0
- package/dist/{list-BYiG8Zav.js → list-5Ljf9TxF.js} +2 -2
- package/dist/{list-BAKvxSbh.js → list-COAo7eZd.js} +1 -1
- package/dist/{list-DX-z3SBp.js → list-DuPqU3fk.js} +1 -1
- package/dist/{list-C5w01-8q.js → list-DzGuMkQy.js} +1 -1
- package/dist/{list-VToARh3C.js → list-J8d_zh-o.js} +1 -1
- package/dist/{list-BxEywhHU.js → list-vOvIpbOH.js} +1 -1
- package/dist/{list-CIW2joV1.js → list-vpyS-hv8.js} +1 -1
- package/dist/{list-DpCf4G-H.js → list-way5oLO0.js} +1 -1
- package/dist/{login-DkkslfBx.js → login-BBw95-S3.js} +1 -1
- package/dist/{login-BFxX4jJy.js → login-CNmeRAL7.js} +1 -1
- package/dist/{logout-BHAtw4Z8.js → logout-j0dTo_Ib.js} +1 -1
- package/dist/{maintenance-C5FklUw3.js → maintenance-DkLVtqM7.js} +1 -1
- package/dist/{mcp-CCZOAo06.js → mcp-CsmBtlW9.js} +1 -1
- package/dist/{migrate-C4vM7DQN.js → migrate-D4nzYhk8.js} +1 -1
- package/dist/{model-Bs1StDo3.js → model-B79MFtRV.js} +1 -1
- package/dist/{push-CUC55Bqd.js → push-DbdnbZYt.js} +1 -1
- package/dist/{queue-6io_NOP3.js → queue-C9fSdE_X.js} +27 -27
- package/dist/refresh-BDmap1RA.js +1 -0
- package/dist/{remove-B93LNkZI.js → remove-BNzbUhaK.js} +1 -1
- package/dist/{remove-eQ8y5C5p.js → remove-CLpL12Ya.js} +1 -1
- package/dist/{remove-CuH8a3L9.js → remove-CaYH9Cna.js} +1 -1
- package/dist/{remove-C5_xggx7.js → remove-D-QeeZQL.js} +1 -1
- package/dist/{rename-CYfy03FE.js → rename-Bhcb4t9F.js} +1 -1
- package/dist/{result-BEtQZHaY.js → result-BfTfJayl.js} +1 -1
- package/dist/{result-BzaM3inj.js → result-D8DsvJDu.js} +1 -1
- package/dist/{resume-DYzKvyEw.js → resume-aZ8yWDBh.js} +1 -1
- package/dist/{review-oIBeECZE.js → review-BEhDcX4b.js} +1 -1
- package/dist/{rotate-key-IdMYH7gg.js → rotate-key-BqnKhTK8.js} +1 -1
- package/dist/{run-CTtd0Znc.js → run-BWbabvub.js} +1 -1
- package/dist/{run-CawRGnOg.js → run-BdPjxaZU.js} +1 -1
- package/dist/{run-BDYl0CKl.js → run-Dqe38jX8.js} +1 -1
- package/dist/runner-BPpiJvHx.js +1 -0
- package/dist/sdk.js +1 -1
- package/dist/{serve-CPnmrKyf.js → serve-C0WC-QrV.js} +2 -2
- package/dist/{serve-GmRO89s5.js → serve-CcObDKKQ.js} +1 -1
- package/dist/{serve-CE8YV2e9.js → serve-Ck95047c.js} +1 -1
- package/dist/{serve-CQKZxzFE.js → serve-DA5I2qXj.js} +2 -2
- package/dist/{server-Kb22cWfF.js → server-BxLFZL80.js} +1 -1
- package/dist/{setup-host-GFTUzzZJ.js → setup-host-DLd_j2Uw.js} +1 -1
- package/dist/{shared-DVtzWhUT.js → shared-BLkGRKty.js} +1 -1
- package/dist/{show-COTZEYgc.js → show-DzoQIs75.js} +1 -1
- package/dist/{show-CMUg8SJu.js → show-FC3dJcD-.js} +1 -1
- package/dist/{status-D26U--p8.js → status-BU3DR1XU.js} +1 -1
- package/dist/{steer-C6uARLp5.js → steer-P_38hRRD.js} +1 -1
- package/dist/{stop-BrGI3hSS.js → stop-BJGDRPsp.js} +1 -1
- package/dist/{stop-ByCAlbmN.js → stop-BWY6k6v5.js} +1 -1
- package/dist/{store-DzqXS2wT.js → store-B3ZHoBJY.js} +4 -4
- package/dist/{store-B94tSate.js → store-BLi19UDE.js} +1 -1
- package/dist/{task-CgOKgkEG.js → task-b2BK481M.js} +1 -1
- package/dist/{test-NEbhlxvo.js → test-BrSrhop9.js} +1 -1
- package/dist/{tools-D0Zfs8Hx.js → tools-CgswhJzh.js} +1 -1
- package/dist/{unalias-C9NqmSDq.js → unalias-mMHXqok7.js} +1 -1
- package/dist/{update-BTxYQj7Z.js → update-DbOWToPy.js} +1 -1
- package/dist/{upgrade-hA0yWBvx.js → upgrade-D6oC9HQI.js} +2 -2
- package/dist/{usage-BhqoCjvE.js → usage-Cb8Dtv9V.js} +1 -1
- package/dist/{usage-C4d9X2Uq.js → usage-DMs-IIJC.js} +1 -1
- package/dist/{watch-DtRuC0Wc.js → watch-BcMQXGYO.js} +1 -1
- package/dist/{watch-CSdj24ct.js → watch-eE2XiwsC.js} +1 -1
- package/dist/{worker-DX7P9kWl.js → worker-DrucI22w.js} +1 -1
- package/dist/{workflow-Dcmdooi8.js → workflow-Cshghoas.js} +1 -1
- package/docs/cli.md +145 -0
- package/package.json +3 -2
- package/plugins/claude/.claude-plugin/plugin.json +1 -1
- package/plugins/cursor/.cursor-plugin/plugin.json +1 -1
- package/src/core/defaults.ts +25 -0
- package/src/server/dash/app/dash/layout.css +58 -1
- package/src/server/dash/app/dash/layout.tsx +16 -4
- package/src/server/dash/app/dash/settings/[tab]/page.tsx +1 -1
- package/src/server/dash/comps/nav/side-toggle.tsx +1 -1
- package/src/server/dash/comps/ui/menu.tsx +5 -1
- package/src/server/dash/comps/ui/toast.css +3 -2
- package/dist/auth-DWHIzqbA.js +0 -1
- package/dist/credentials-B1jv6dkg.js +0 -1
- package/dist/dash/public/assets/chunks/shared-init-ffb3397e494137c9.js +0 -2
- package/dist/dash/public/assets/dash-9e02d5d1a6d42ee3.css +0 -1
- package/dist/dash/public/assets/dash-account-04859899c1838ada.css +0 -1
- package/dist/dash/public/assets/dash-agents-9e678137267dec07.css +0 -1
- package/dist/dash/public/assets/dash-agents-new-26fa27b17ef9b8d8.css +0 -1
- package/dist/dash/public/assets/dash-agents-param-slug-b975c48f8abf3444.css +0 -1
- package/dist/dash/public/assets/dash-agents-param-slug-edit-e13fda599bb04843.css +0 -1
- package/dist/dash/public/assets/dash-agents-param-slug-platforms-70292932cb27bc96.css +0 -1
- package/dist/dash/public/assets/dash-agents-param-slug-settings-71f9a86251723fcc.css +0 -1
- package/dist/dash/public/assets/dash-agents-param-slug-tasks-fb8eb2ed71006601.css +0 -1
- package/dist/dash/public/assets/dash-agents-param-slug-usage-7c8740f1cdd52c71.css +0 -1
- package/dist/dash/public/assets/dash-settings-8eb818da462227e8.css +0 -1
- package/dist/dash/public/assets/dash-settings-param-tab-849a1a9542e273f5.css +0 -1
- package/dist/dash/public/assets/dash-tasks-81e510e0b6931b42.css +0 -1
- package/dist/dash/public/assets/dash-tasks-param-id-bbd2a83342f2ec10.css +0 -1
- package/dist/dash/public/assets/dash-usage-8e0259e03eaed1bd.css +0 -1
- package/dist/dash/public/assets/pnext-client-03b03b254e525e82.js +0 -1
- package/dist/dash/public/assets/pnext-client-1c7859bb888f4ef0.js +0 -1
- package/dist/dash/public/assets/pnext-client-3c748afe963fb05d.js +0 -1
- package/dist/dash/public/assets/pnext-client-4f47c2cae220f107.js +0 -1
- package/dist/dash/public/assets/pnext-client-6ab9fd9b53b794d2.js +0 -1
- package/dist/dash/public/assets/pnext-client-6c241786342498e4.js +0 -1
- package/dist/dash/public/assets/pnext-client-80b56d420f02b808.js +0 -1
- package/dist/dash/public/assets/pnext-client-83135c17bae850a3.js +0 -1
- package/dist/dash/public/assets/pnext-client-8e6fa4302ae0396f.js +0 -1
- package/dist/dash/public/assets/pnext-client-932c9d8cc0717fc8.js +0 -1
- package/dist/dash/public/assets/pnext-client-a42ae63d4de113f9.js +0 -1
- package/dist/dash/public/assets/pnext-client-d2ee6f8c1e337032.js +0 -1
- package/dist/dash/public/assets/pnext-client-d513f65ec23b7f20.js +0 -1
- package/dist/dash/public/assets/pnext-client-ecb88e2a8a109954.js +0 -1
- package/dist/dash/public/assets/pnext-client-f1545ee6270bbf9a.js +0 -1
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/boot-B2MFTRO2.js +0 -30
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/build-tier-XJJSL5FR.js +0 -2704
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-2HFY3DQT.js +0 -208
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-2ICEVELW.js +0 -834
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-3UPROT2C.js +0 -35
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-4P5CMIYT.js +0 -1582
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-4TKZKZ3Q.js +0 -131
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-5RDEILQB.js +0 -437
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-62KEQM43.js +0 -25
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-6KQSWT6D.js +0 -831
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-7DCNCW6O.js +0 -724
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-B4THCTQP.js +0 -22
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-C2LIV2MM.js +0 -172
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-CCATPVTW.js +0 -378
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-COXJAPTU.js +0 -89
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-E6IXL2NJ.js +0 -6270
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-FLGRBFAH.js +0 -1198
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-FTJVHFWD.js +0 -61
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-H523KSIH.js +0 -5151
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-HT6KKX6A.js +0 -20
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-JESFYECC.js +0 -438
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-JRPJM2XY.js +0 -17
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-L2IWDUXG.js +0 -107
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-L5P4Y4UC.js +0 -183
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-NQE46AZN.js +0 -647
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-PA4QEARJ.js +0 -129
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-PZ5AXOLW.js +0 -7146
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-SNVPTULL.js +0 -2397
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-T3QZT3PG.js +0 -220
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-VC5O2SDP.js +0 -72
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-WZX4V6CM.js +0 -231
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-XUUIDXY5.js +0 -627
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-ZHFDO3PR.js +0 -265
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/compile-CE2DN7ZA.js +0 -18
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/config-UREY7XJT.js +0 -16
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/config-loader-UI2XE3PZ.js +0 -17
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/entry.js +0 -219
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/generate-I2PPTDFD.js +0 -16
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/modules-UVOCE4C2.js +0 -48
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/pipeline-UW47K537.js +0 -963
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/proxy-ITGOVJBW.js +0 -26
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/register-4SA55SWT.js +0 -12579
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/router-JNKHLBCZ.js +0 -505
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/routes-PD6J2NXW.js +0 -54
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/tsconfig-defaults-ZXEH7RQK.js +0 -15
- package/dist/integrations-5xCaXSd-.js +0 -1
- package/dist/refresh-BIrmrWYq.js +0 -1
- package/dist/runner-D7ScbIHJ.js +0 -1
- package/src/server/dash/app/dash/token-from-hash.tsx +0 -17
|
@@ -1,265 +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
|
-
activateTestProxy
|
|
7
|
-
} from "./chunk-L5P4Y4UC.js";
|
|
8
|
-
import {
|
|
9
|
-
nextCompatEnabled
|
|
10
|
-
} from "./chunk-XUUIDXY5.js";
|
|
11
|
-
import {
|
|
12
|
-
findProxyFiles,
|
|
13
|
-
setProxyRewriteObserver
|
|
14
|
-
} from "./chunk-7DCNCW6O.js";
|
|
15
|
-
import {
|
|
16
|
-
getNextConfig
|
|
17
|
-
} from "./chunk-2ICEVELW.js";
|
|
18
|
-
import {
|
|
19
|
-
getWorkUnit,
|
|
20
|
-
legacyRequestAPIs
|
|
21
|
-
} from "./chunk-JESFYECC.js";
|
|
22
|
-
import {
|
|
23
|
-
moduleExportNames
|
|
24
|
-
} from "./chunk-NQE46AZN.js";
|
|
25
|
-
import {
|
|
26
|
-
readText,
|
|
27
|
-
toPosixPath
|
|
28
|
-
} from "./chunk-2HFY3DQT.js";
|
|
29
|
-
import {
|
|
30
|
-
setProxyExtensions,
|
|
31
|
-
setProxyResponseProtocol
|
|
32
|
-
} from "./chunk-4P5CMIYT.js";
|
|
33
|
-
|
|
34
|
-
// ../node_modules/.bun/@wular+pnext@0.1.5+62547eec5a2188e3/node_modules/@wular/pnext/src/compat/register/proxy.ts
|
|
35
|
-
import path from "node:path";
|
|
36
|
-
|
|
37
|
-
// ../node_modules/.bun/@wular+pnext@0.1.5+62547eec5a2188e3/node_modules/@wular/pnext/src/compat/protocol.ts
|
|
38
|
-
var ROUTER_VARY = [
|
|
39
|
-
"rsc",
|
|
40
|
-
"next-router-state-tree",
|
|
41
|
-
"next-router-prefetch",
|
|
42
|
-
"next-router-segment-prefetch"
|
|
43
|
-
];
|
|
44
|
-
var rewrites = /* @__PURE__ */ new WeakMap();
|
|
45
|
-
function recordRewrite(from, to) {
|
|
46
|
-
const unit = getWorkUnit();
|
|
47
|
-
if (!unit) return;
|
|
48
|
-
if (from.pathname === to.pathname && from.search === to.search) return;
|
|
49
|
-
const query = to.search.replace(/^\?/, "");
|
|
50
|
-
rewrites.set(unit, {
|
|
51
|
-
...to.pathname !== from.pathname ? { path: to.pathname } : {},
|
|
52
|
-
...query ? { query } : {}
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
var CACHE_BUSTING_REDIRECT_HEADER = "x-pnext-cache-bust";
|
|
56
|
-
var APP_ROUTE_KINDS = /* @__PURE__ */ new Set([
|
|
57
|
-
"html",
|
|
58
|
-
"data",
|
|
59
|
-
"route-handler"
|
|
60
|
-
]);
|
|
61
|
-
var protocolFinalizer = (ctx) => {
|
|
62
|
-
if (!APP_ROUTE_KINDS.has(ctx.routeKind)) return;
|
|
63
|
-
if (!isPlainRedirect(ctx)) mergeVary(ctx.headers, ROUTER_VARY);
|
|
64
|
-
normalizeRscRedirectStatus(ctx);
|
|
65
|
-
applyRewrittenHeaders(ctx);
|
|
66
|
-
applyEdgeRuntimeHeader(ctx);
|
|
67
|
-
};
|
|
68
|
-
function isPlainRedirect(ctx) {
|
|
69
|
-
if (ctx.status < 300 || ctx.status >= 400 || !ctx.headers.has("location")) return false;
|
|
70
|
-
return ctx.request.headers.get("rsc") !== "1" && !ctx.request.headers.has("next-router-prefetch") && !ctx.request.headers.has("next-router-segment-prefetch");
|
|
71
|
-
}
|
|
72
|
-
function applyEdgeRuntimeHeader(ctx) {
|
|
73
|
-
const runtime = ctx.hints?.runtime;
|
|
74
|
-
if (runtime === "edge" || runtime === "experimental-edge") {
|
|
75
|
-
ctx.headers.set("x-edge-runtime", "1");
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
function mergeVary(headers, values) {
|
|
79
|
-
const existing = headers.get("vary");
|
|
80
|
-
const present = new Set(
|
|
81
|
-
(existing ?? "").split(",").map((token) => token.trim().toLowerCase()).filter(Boolean)
|
|
82
|
-
);
|
|
83
|
-
const merged = existing ? existing.split(",").map((token) => token.trim()).filter(Boolean) : [];
|
|
84
|
-
for (const value of values) {
|
|
85
|
-
if (present.has(value.toLowerCase())) continue;
|
|
86
|
-
present.add(value.toLowerCase());
|
|
87
|
-
merged.push(value);
|
|
88
|
-
}
|
|
89
|
-
if (merged.length > 0) headers.set("vary", merged.join(", "));
|
|
90
|
-
}
|
|
91
|
-
function applyRewrittenHeaders(ctx) {
|
|
92
|
-
if (ctx.request.headers.get("rsc") !== "1") return;
|
|
93
|
-
const unit = getWorkUnit();
|
|
94
|
-
if (!unit) return;
|
|
95
|
-
const info = rewrites.get(unit);
|
|
96
|
-
if (!info) return;
|
|
97
|
-
if (info.path !== void 0) ctx.headers.set("x-nextjs-rewritten-path", info.path);
|
|
98
|
-
if (info.query !== void 0) ctx.headers.set("x-nextjs-rewritten-query", info.query);
|
|
99
|
-
}
|
|
100
|
-
function normalizeRscRedirectStatus(ctx) {
|
|
101
|
-
if (ctx.headers.has(CACHE_BUSTING_REDIRECT_HEADER)) {
|
|
102
|
-
ctx.headers.delete(CACHE_BUSTING_REDIRECT_HEADER);
|
|
103
|
-
return;
|
|
104
|
-
}
|
|
105
|
-
if (ctx.routeKind !== "html") return;
|
|
106
|
-
if (ctx.request.headers.get("rsc") !== "1") return;
|
|
107
|
-
if (ctx.request.headers.has("x-pnext-soft-nav")) return;
|
|
108
|
-
if (!ctx.headers.has("location")) return;
|
|
109
|
-
if (ctx.status !== 307 && ctx.status !== 308) return;
|
|
110
|
-
ctx.status = 200;
|
|
111
|
-
}
|
|
112
|
-
function isValidFlightRouterState(value) {
|
|
113
|
-
if (!Array.isArray(value)) return false;
|
|
114
|
-
const [segment, parallelRoutes] = value;
|
|
115
|
-
if (typeof segment !== "string" && !Array.isArray(segment)) return false;
|
|
116
|
-
if (typeof parallelRoutes !== "object" || parallelRoutes === null) return false;
|
|
117
|
-
if (Array.isArray(parallelRoutes)) return false;
|
|
118
|
-
return Object.values(parallelRoutes).every(isValidFlightRouterState);
|
|
119
|
-
}
|
|
120
|
-
var routerStateTreeInterceptor = (request) => Promise.resolve(validateRouterStateTree(request));
|
|
121
|
-
function validateRouterStateTree(request) {
|
|
122
|
-
if (request.headers.get("rsc") !== "1") return void 0;
|
|
123
|
-
if (request.headers.has("x-pnext-soft-nav")) return void 0;
|
|
124
|
-
const header = request.headers.get("next-router-state-tree");
|
|
125
|
-
if (header === null) return void 0;
|
|
126
|
-
let tree;
|
|
127
|
-
try {
|
|
128
|
-
tree = JSON.parse(decodeURIComponent(header));
|
|
129
|
-
} catch {
|
|
130
|
-
try {
|
|
131
|
-
tree = JSON.parse(header);
|
|
132
|
-
} catch {
|
|
133
|
-
return new Response("Internal Server Error", { status: 500 });
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
return isValidFlightRouterState(tree) ? void 0 : new Response("Internal Server Error", { status: 500 });
|
|
137
|
-
}
|
|
138
|
-
function protocolInterceptors(config) {
|
|
139
|
-
if (!nextCompatEnabled(config)) return [];
|
|
140
|
-
return [routerStateTreeInterceptor];
|
|
141
|
-
}
|
|
142
|
-
function protocolFinalizers(config) {
|
|
143
|
-
if (!nextCompatEnabled(config)) return [];
|
|
144
|
-
return [protocolFinalizer];
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
// ../node_modules/.bun/@wular+pnext@0.1.5+62547eec5a2188e3/node_modules/@wular/pnext/src/compat/next/canonical-url.ts
|
|
148
|
-
var CANONICAL_URL_KEY = Symbol.for("pnext.compat.navigation.canonicalUrl");
|
|
149
|
-
function recordCanonicalUrl(from) {
|
|
150
|
-
const unit = getWorkUnit();
|
|
151
|
-
if (!unit) return;
|
|
152
|
-
const compat = unit.compat ??= {};
|
|
153
|
-
if (typeof compat[CANONICAL_URL_KEY] === "string") return;
|
|
154
|
-
compat[CANONICAL_URL_KEY] = from.href;
|
|
155
|
-
}
|
|
156
|
-
function canonicalUrlHref() {
|
|
157
|
-
const value = getWorkUnit()?.compat?.[CANONICAL_URL_KEY];
|
|
158
|
-
return typeof value === "string" ? value : void 0;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
// ../node_modules/.bun/@wular+pnext@0.1.5+62547eec5a2188e3/node_modules/@wular/pnext/src/compat/register/proxy.ts
|
|
162
|
-
function registerProxyExtensions(_config) {
|
|
163
|
-
setProxyResponseProtocol({
|
|
164
|
-
nextHeader: "x-middleware-next",
|
|
165
|
-
rewriteHeader: "x-middleware-rewrite"
|
|
166
|
-
});
|
|
167
|
-
setProxyExtensions({
|
|
168
|
-
names: ["proxy", "middleware"],
|
|
169
|
-
validateFiles: validateNextProxyFiles,
|
|
170
|
-
handlerExport: (module) => module.proxy ?? module.default ?? module.middleware,
|
|
171
|
-
skipUrlNormalize: () => getNextConfig().skipProxyUrlNormalize === true,
|
|
172
|
-
locale: proxyLocale,
|
|
173
|
-
onExternalRewrite: (request) => activateTestProxy(request.headers),
|
|
174
|
-
clientMaxBodySize: proxyClientMaxBodySize
|
|
175
|
-
});
|
|
176
|
-
setProxyRewriteObserver((from, to) => {
|
|
177
|
-
recordCanonicalUrl(from);
|
|
178
|
-
recordRewrite(from, to);
|
|
179
|
-
});
|
|
180
|
-
}
|
|
181
|
-
var DEFAULT_PROXY_CLIENT_MAX_BODY_SIZE = 10 * 1024 * 1024;
|
|
182
|
-
function proxyClientMaxBodySize() {
|
|
183
|
-
const experimental = getNextConfig().experimental ?? {};
|
|
184
|
-
const raw = experimental.proxyClientMaxBodySize ?? experimental.middlewareClientMaxBodySize;
|
|
185
|
-
if (typeof raw === "number" && raw > 0) return raw;
|
|
186
|
-
if (typeof raw === "string") {
|
|
187
|
-
const match = /^(\d+(?:\.\d+)?)\s*(b|kb|mb|gb)?$/i.exec(raw.trim());
|
|
188
|
-
if (match?.[1]) {
|
|
189
|
-
const unit = (match[2] ?? "b").toLowerCase();
|
|
190
|
-
const multiplier = unit === "gb" ? 1024 ** 3 : unit === "mb" ? 1024 ** 2 : unit === "kb" ? 1024 : 1;
|
|
191
|
-
const bytes = Math.floor(Number(match[1]) * multiplier);
|
|
192
|
-
if (bytes > 0) return bytes;
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
return DEFAULT_PROXY_CLIENT_MAX_BODY_SIZE;
|
|
196
|
-
}
|
|
197
|
-
function proxyLocale(url) {
|
|
198
|
-
const i18n = getNextConfig().i18n;
|
|
199
|
-
if (!Array.isArray(i18n?.locales)) return "";
|
|
200
|
-
const locales = i18n.locales.filter((locale) => typeof locale === "string");
|
|
201
|
-
const dataLocale = /^\/_next\/data\/[^/]+\/([^/]+)(?:\/|$)/.exec(url.pathname)?.[1];
|
|
202
|
-
const candidate = dataLocale ?? url.pathname.split("/")[1];
|
|
203
|
-
return locales.find((locale) => locale.toLowerCase() === candidate?.toLowerCase()) ?? "";
|
|
204
|
-
}
|
|
205
|
-
async function validateNextProxyFiles(config) {
|
|
206
|
-
const files = findProxyFiles(config, ["proxy", "middleware"]);
|
|
207
|
-
const middleware = files.find((file) => path.basename(file).startsWith("middleware."));
|
|
208
|
-
const proxy = files.find((file) => path.basename(file).startsWith("proxy."));
|
|
209
|
-
if (middleware && proxy) {
|
|
210
|
-
throw new Error(
|
|
211
|
-
`Both middleware file "${relativeProxyPath(config, middleware)}" and proxy file "${relativeProxyPath(config, proxy)}" are detected. Please use "${relativeProxyPath(config, proxy)}" only.`
|
|
212
|
-
);
|
|
213
|
-
}
|
|
214
|
-
if (middleware && !proxy && !legacyRequestAPIs()) {
|
|
215
|
-
console.warn('The "middleware" file convention is deprecated. Please use "proxy" instead.');
|
|
216
|
-
}
|
|
217
|
-
await Promise.all(files.map((file) => validateNextProxyFile(config, file)));
|
|
218
|
-
}
|
|
219
|
-
async function validateNextProxyFile(config, file) {
|
|
220
|
-
const source = await readText(file);
|
|
221
|
-
const name = path.basename(file).split(".")[0];
|
|
222
|
-
const exports = moduleExportNames(source, file);
|
|
223
|
-
const validExport = exports.includes("default") || (name === "proxy" ? exports.includes("proxy") : exports.includes("middleware"));
|
|
224
|
-
if (!validExport) {
|
|
225
|
-
throw new Error(proxyMissingExportError(config, file));
|
|
226
|
-
}
|
|
227
|
-
if (name === "proxy" && hasRuntimeConfig(source)) {
|
|
228
|
-
throw new Error(
|
|
229
|
-
`Route segment config is not allowed in Proxy file at "${relativeProxyPath(config, file)}". Proxy always runs on Node.js runtime. Learn more: https://nextjs.org/docs/messages/middleware-to-proxy`
|
|
230
|
-
);
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
function proxyMissingExportError(config, file) {
|
|
234
|
-
const name = path.basename(file).split(".")[0] === "middleware" ? "middleware" : "proxy";
|
|
235
|
-
const migrationReason = name === "proxy" ? "- You are migrating from `middleware` to `proxy`, but haven't updated the exported function.\n" : "";
|
|
236
|
-
const target = name === "proxy" ? "proxy (previously called middleware)" : "middleware";
|
|
237
|
-
return `The file "${relativeProxyPath(config, file)}" must export a function, either as a default export or as a named "${name}" export.
|
|
238
|
-
This function is what Next.js runs for every request handled by this ${target}.
|
|
239
|
-
|
|
240
|
-
Why this happens:
|
|
241
|
-
${migrationReason}- The file exists but doesn't export a function.
|
|
242
|
-
- The export is not a function (e.g., an object or constant).
|
|
243
|
-
- There's a syntax error preventing the export from being recognized.
|
|
244
|
-
|
|
245
|
-
To fix it:
|
|
246
|
-
- Ensure this file has either a default or "${name}" function export.
|
|
247
|
-
|
|
248
|
-
Learn more: https://nextjs.org/docs/messages/middleware-to-proxy`;
|
|
249
|
-
}
|
|
250
|
-
function hasRuntimeConfig(source) {
|
|
251
|
-
return /\bexport\s+const\s+config\s*=/.test(source) && /\bruntime\s*:/.test(source);
|
|
252
|
-
}
|
|
253
|
-
function relativeProxyPath(config, file) {
|
|
254
|
-
return `./${toPosixPath(path.relative(config.root, file))}`;
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
export {
|
|
258
|
-
recordRewrite,
|
|
259
|
-
CACHE_BUSTING_REDIRECT_HEADER,
|
|
260
|
-
protocolInterceptors,
|
|
261
|
-
protocolFinalizers,
|
|
262
|
-
recordCanonicalUrl,
|
|
263
|
-
canonicalUrlHref,
|
|
264
|
-
registerProxyExtensions
|
|
265
|
-
};
|
|
@@ -1,18 +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
|
-
compileMdx,
|
|
7
|
-
mdxOptionsFromConfig,
|
|
8
|
-
resolveMdxComponents
|
|
9
|
-
} from "./chunk-4TKZKZ3Q.js";
|
|
10
|
-
import "./chunk-2ICEVELW.js";
|
|
11
|
-
import "./chunk-5RDEILQB.js";
|
|
12
|
-
import "./chunk-FTJVHFWD.js";
|
|
13
|
-
import "./chunk-3UPROT2C.js";
|
|
14
|
-
export {
|
|
15
|
-
compileMdx,
|
|
16
|
-
mdxOptionsFromConfig,
|
|
17
|
-
resolveMdxComponents
|
|
18
|
-
};
|
|
@@ -1,16 +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
|
-
registerConfigSource
|
|
7
|
-
} from "./chunk-B4THCTQP.js";
|
|
8
|
-
import "./chunk-2ICEVELW.js";
|
|
9
|
-
import "./chunk-JESFYECC.js";
|
|
10
|
-
import "./chunk-5RDEILQB.js";
|
|
11
|
-
import "./chunk-4P5CMIYT.js";
|
|
12
|
-
import "./chunk-FTJVHFWD.js";
|
|
13
|
-
import "./chunk-3UPROT2C.js";
|
|
14
|
-
export {
|
|
15
|
-
registerConfigSource
|
|
16
|
-
};
|
|
@@ -1,17 +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
|
-
getNextConfig,
|
|
7
|
-
loadNextConfig,
|
|
8
|
-
setNextConfig
|
|
9
|
-
} from "./chunk-2ICEVELW.js";
|
|
10
|
-
import "./chunk-5RDEILQB.js";
|
|
11
|
-
import "./chunk-FTJVHFWD.js";
|
|
12
|
-
import "./chunk-3UPROT2C.js";
|
|
13
|
-
export {
|
|
14
|
-
getNextConfig,
|
|
15
|
-
loadNextConfig,
|
|
16
|
-
setNextConfig
|
|
17
|
-
};
|
|
@@ -1,219 +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
|
-
bootstrapCompat
|
|
7
|
-
} from "./chunk-COXJAPTU.js";
|
|
8
|
-
import {
|
|
9
|
-
markErrorLogged
|
|
10
|
-
} from "./chunk-62KEQM43.js";
|
|
11
|
-
import {
|
|
12
|
-
drainWorkUnits,
|
|
13
|
-
loadConfig
|
|
14
|
-
} from "./chunk-JESFYECC.js";
|
|
15
|
-
import {
|
|
16
|
-
isPostpone
|
|
17
|
-
} from "./chunk-5RDEILQB.js";
|
|
18
|
-
import {
|
|
19
|
-
bold,
|
|
20
|
-
cyan,
|
|
21
|
-
dim,
|
|
22
|
-
green
|
|
23
|
-
} from "./chunk-HT6KKX6A.js";
|
|
24
|
-
import {
|
|
25
|
-
getBuildExtensions
|
|
26
|
-
} from "./chunk-4P5CMIYT.js";
|
|
27
|
-
import "./chunk-3UPROT2C.js";
|
|
28
|
-
|
|
29
|
-
// ../node_modules/.bun/@wular+pnext@0.1.5+62547eec5a2188e3/node_modules/@wular/pnext/src/cli/start.ts
|
|
30
|
-
import { readFile } from "node:fs/promises";
|
|
31
|
-
import path from "node:path";
|
|
32
|
-
|
|
33
|
-
// ../node_modules/.bun/@wular+pnext@0.1.5+62547eec5a2188e3/node_modules/@wular/pnext/src/cli/serve/ui.ts
|
|
34
|
-
import { networkInterfaces } from "node:os";
|
|
35
|
-
function browserHost(hostname) {
|
|
36
|
-
if (hostname === "::" || hostname === "::1") return "[::1]";
|
|
37
|
-
if (["0.0.0.0", "127.0.0.1"].includes(hostname)) return "localhost";
|
|
38
|
-
return hostname;
|
|
39
|
-
}
|
|
40
|
-
function printServerReady({ mode, hostname, port, elapsedMs }) {
|
|
41
|
-
const rows = [["Local:", cyan(`http://${browserHost(hostname)}:${port}`)]];
|
|
42
|
-
const lan = hostname === "::" ? "[::]" : wildcard(hostname) ? lanAddress() : void 0;
|
|
43
|
-
if (lan) rows.push(["Network:", cyan(`http://${lan}:${port}`)]);
|
|
44
|
-
const ready = elapsedMs === void 0 ? `${green("\u2713")} ${bold("Ready")}` : `${green("\u2713")} ${bold("Ready")} ${dim(`in ${Math.round(elapsedMs)}ms`)}`;
|
|
45
|
-
const pad = Math.max(...rows.map(([label]) => label.length));
|
|
46
|
-
console.log("");
|
|
47
|
-
console.log(`\u26A1 ${bold("pnext")} ${dim(mode)}`);
|
|
48
|
-
for (const [label, value] of rows) {
|
|
49
|
-
console.log(` ${dim("-")} ${dim(label.padEnd(pad))} ${value}`);
|
|
50
|
-
}
|
|
51
|
-
console.log("");
|
|
52
|
-
console.log(ready);
|
|
53
|
-
console.log("");
|
|
54
|
-
}
|
|
55
|
-
function wildcard(hostname) {
|
|
56
|
-
return hostname === "0.0.0.0" || hostname === "::";
|
|
57
|
-
}
|
|
58
|
-
async function ensurePortFree(port, hostname, options = {}) {
|
|
59
|
-
const attempts = options.attempts ?? 1;
|
|
60
|
-
const delayMs = options.delayMs ?? 300;
|
|
61
|
-
const candidates = wildcard(hostname) || hostname === "localhost" ? ["127.0.0.1", "::1"] : [hostname];
|
|
62
|
-
for (const candidate of candidates) {
|
|
63
|
-
let inUse = await portInUse(candidate, port);
|
|
64
|
-
for (let attempt = 1; inUse && attempt < attempts; attempt += 1) {
|
|
65
|
-
await new Promise((resolve) => setTimeout(resolve, delayMs));
|
|
66
|
-
inUse = await portInUse(candidate, port);
|
|
67
|
-
}
|
|
68
|
-
if (inUse) {
|
|
69
|
-
throw new Error(
|
|
70
|
-
`Port ${port} is already in use on ${candidate} (another pnext dev/start or process). Stop it or pass --port. To find it: lsof -nP -iTCP:${port} -sTCP:LISTEN`
|
|
71
|
-
);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
function portInUse(hostname, port) {
|
|
76
|
-
return new Promise((resolve) => {
|
|
77
|
-
const timer = setTimeout(() => resolve(false), 300);
|
|
78
|
-
Bun.connect({
|
|
79
|
-
hostname,
|
|
80
|
-
port,
|
|
81
|
-
socket: {
|
|
82
|
-
open(socket) {
|
|
83
|
-
clearTimeout(timer);
|
|
84
|
-
socket.end();
|
|
85
|
-
resolve(true);
|
|
86
|
-
},
|
|
87
|
-
data() {
|
|
88
|
-
},
|
|
89
|
-
connectError() {
|
|
90
|
-
clearTimeout(timer);
|
|
91
|
-
resolve(false);
|
|
92
|
-
},
|
|
93
|
-
error() {
|
|
94
|
-
clearTimeout(timer);
|
|
95
|
-
resolve(false);
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
}).catch(() => {
|
|
99
|
-
clearTimeout(timer);
|
|
100
|
-
resolve(false);
|
|
101
|
-
});
|
|
102
|
-
});
|
|
103
|
-
}
|
|
104
|
-
function lanAddress() {
|
|
105
|
-
for (const addresses of Object.values(networkInterfaces())) {
|
|
106
|
-
for (const address of addresses ?? []) {
|
|
107
|
-
if (address.family === "IPv4" && !address.internal) return address.address;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
return void 0;
|
|
111
|
-
}
|
|
112
|
-
function openBrowser(url) {
|
|
113
|
-
const browser = process.env.BROWSER;
|
|
114
|
-
if (browser === "none" || process.env.CI || process.env.NODE_ENV === "test") return;
|
|
115
|
-
const browserArgs = process.env.BROWSER_ARGS?.split(/\s+/).filter(Boolean) ?? [];
|
|
116
|
-
const command = browser ? process.platform === "darwin" ? ["open", "-a", browser, ...browserArgs, url] : [browser, ...browserArgs, url] : process.platform === "darwin" ? ["open", url] : process.platform === "win32" ? ["cmd", "/c", "start", "", url] : ["xdg-open", url];
|
|
117
|
-
try {
|
|
118
|
-
Bun.spawn(command, { stdout: "ignore", stderr: "ignore", stdin: "ignore" }).unref();
|
|
119
|
-
} catch {
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
// ../node_modules/.bun/@wular+pnext@0.1.5+62547eec5a2188e3/node_modules/@wular/pnext/src/cli/start.ts
|
|
124
|
-
async function createRequestHandler(options = {}) {
|
|
125
|
-
const { createRequestHandler: create } = await import("./pipeline-UW47K537.js");
|
|
126
|
-
return create(options);
|
|
127
|
-
}
|
|
128
|
-
async function maybeBuiltFile(...args) {
|
|
129
|
-
const { maybeBuiltFile: impl } = await import("./pipeline-UW47K537.js");
|
|
130
|
-
return impl(...args);
|
|
131
|
-
}
|
|
132
|
-
async function start(options = {}) {
|
|
133
|
-
const startedAt = Date.now();
|
|
134
|
-
const port = options.port ?? 3e3;
|
|
135
|
-
const hostname = options.hostname ?? "0.0.0.0";
|
|
136
|
-
const config = await guardUnservableOutputMode(options.root);
|
|
137
|
-
const manifest = await readProductionManifest(config);
|
|
138
|
-
await ensurePortFree(port, hostname);
|
|
139
|
-
let handler;
|
|
140
|
-
let pending;
|
|
141
|
-
const ensureHandler = () => pending ??= createRequestHandler({ root: options.root, config, manifest }).then((ready) => {
|
|
142
|
-
handler = ready;
|
|
143
|
-
return ready;
|
|
144
|
-
});
|
|
145
|
-
const server = Bun.serve({
|
|
146
|
-
hostname,
|
|
147
|
-
port,
|
|
148
|
-
fetch: (request, server2) => handler ? handler(request, server2) : ensureHandler().then((ready) => ready(request, server2))
|
|
149
|
-
});
|
|
150
|
-
printServerReady({
|
|
151
|
-
mode: "production",
|
|
152
|
-
hostname,
|
|
153
|
-
port: server.port ?? port,
|
|
154
|
-
elapsedMs: Date.now() - startedAt
|
|
155
|
-
});
|
|
156
|
-
void ensureHandler().catch(() => void 0);
|
|
157
|
-
openBrowser(`http://${browserHost(hostname)}:${server.port ?? port}`);
|
|
158
|
-
installShutdownHandlers(server);
|
|
159
|
-
installProcessErrorHandlers();
|
|
160
|
-
return server;
|
|
161
|
-
}
|
|
162
|
-
function installProcessErrorHandlers() {
|
|
163
|
-
const globalWithFlag = globalThis;
|
|
164
|
-
if (globalWithFlag.__pnextProcessErrorHandlers) return;
|
|
165
|
-
globalWithFlag.__pnextProcessErrorHandlers = true;
|
|
166
|
-
const report = (reason) => {
|
|
167
|
-
if (isPostpone(reason)) return;
|
|
168
|
-
if (markErrorLogged(reason)) console.error(reason);
|
|
169
|
-
};
|
|
170
|
-
process.on("unhandledRejection", report);
|
|
171
|
-
process.on("uncaughtException", report);
|
|
172
|
-
}
|
|
173
|
-
async function readProductionManifest(config) {
|
|
174
|
-
try {
|
|
175
|
-
return JSON.parse(
|
|
176
|
-
await readFile(path.join(config.outPath, "manifest.json"), "utf8")
|
|
177
|
-
);
|
|
178
|
-
} catch (error) {
|
|
179
|
-
if (error.code === "ENOENT") {
|
|
180
|
-
throw new Error("No production build found. Run 'pnext build' first.");
|
|
181
|
-
}
|
|
182
|
-
throw error;
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
async function guardUnservableOutputMode(root) {
|
|
186
|
-
const config = await loadConfig(root, { serve: true });
|
|
187
|
-
await bootstrapCompat(config);
|
|
188
|
-
const mode = getBuildExtensions().compat.nextOutputMode();
|
|
189
|
-
if (mode === "export") {
|
|
190
|
-
console.error(
|
|
191
|
-
'"next start" does not work with "output: export" configuration. Use "npx serve@latest out" instead.'
|
|
192
|
-
);
|
|
193
|
-
process.exit(1);
|
|
194
|
-
}
|
|
195
|
-
if (mode === "standalone" && !process.env.__NEXT_PRIVATE_STANDALONE_CONFIG) {
|
|
196
|
-
console.warn(
|
|
197
|
-
'"next start" does not work with "output: standalone" configuration. Use "node .next/standalone/server.js" instead.'
|
|
198
|
-
);
|
|
199
|
-
}
|
|
200
|
-
return config;
|
|
201
|
-
}
|
|
202
|
-
function installShutdownHandlers(server) {
|
|
203
|
-
let shuttingDown = false;
|
|
204
|
-
const shutdown = async () => {
|
|
205
|
-
if (shuttingDown) return;
|
|
206
|
-
shuttingDown = true;
|
|
207
|
-
server.stop();
|
|
208
|
-
await drainWorkUnits();
|
|
209
|
-
process.exit(0);
|
|
210
|
-
};
|
|
211
|
-
process.on("SIGINT", shutdown);
|
|
212
|
-
process.on("SIGTERM", shutdown);
|
|
213
|
-
}
|
|
214
|
-
export {
|
|
215
|
-
createRequestHandler,
|
|
216
|
-
maybeBuiltFile,
|
|
217
|
-
readProductionManifest,
|
|
218
|
-
start
|
|
219
|
-
};
|
|
@@ -1,16 +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
|
-
generateTypedRoutes
|
|
7
|
-
} from "./chunk-6KQSWT6D.js";
|
|
8
|
-
import "./chunk-PA4QEARJ.js";
|
|
9
|
-
import "./chunk-2ICEVELW.js";
|
|
10
|
-
import "./chunk-5RDEILQB.js";
|
|
11
|
-
import "./chunk-2HFY3DQT.js";
|
|
12
|
-
import "./chunk-FTJVHFWD.js";
|
|
13
|
-
import "./chunk-3UPROT2C.js";
|
|
14
|
-
export {
|
|
15
|
-
generateTypedRoutes
|
|
16
|
-
};
|
|
@@ -1,48 +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
|
-
clearDevRouteBundleKeys,
|
|
7
|
-
compiledSpecifiersManifestSuffix,
|
|
8
|
-
devClientModuleHref,
|
|
9
|
-
devClientReferenceGroups,
|
|
10
|
-
devClientReferenceModules,
|
|
11
|
-
devModuleGraph,
|
|
12
|
-
devRouteModuleLoaders,
|
|
13
|
-
devServerModuleHref,
|
|
14
|
-
devVendorSeedSplit,
|
|
15
|
-
importDevModule,
|
|
16
|
-
importModuleOnce,
|
|
17
|
-
resetModuleGraphFailure,
|
|
18
|
-
setEmitCompiledSpecifiersManifest,
|
|
19
|
-
throwIfModuleGraphFailed,
|
|
20
|
-
warmDevModulePipeline
|
|
21
|
-
} from "./chunk-E6IXL2NJ.js";
|
|
22
|
-
import "./chunk-L2IWDUXG.js";
|
|
23
|
-
import "./chunk-JESFYECC.js";
|
|
24
|
-
import "./chunk-5RDEILQB.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
|
-
clearDevRouteBundleKeys,
|
|
34
|
-
compiledSpecifiersManifestSuffix,
|
|
35
|
-
devClientModuleHref,
|
|
36
|
-
devClientReferenceGroups,
|
|
37
|
-
devClientReferenceModules,
|
|
38
|
-
devModuleGraph,
|
|
39
|
-
devRouteModuleLoaders,
|
|
40
|
-
devServerModuleHref,
|
|
41
|
-
devVendorSeedSplit,
|
|
42
|
-
importDevModule,
|
|
43
|
-
importModuleOnce,
|
|
44
|
-
resetModuleGraphFailure,
|
|
45
|
-
setEmitCompiledSpecifiersManifest,
|
|
46
|
-
throwIfModuleGraphFailed,
|
|
47
|
-
warmDevModulePipeline
|
|
48
|
-
};
|