@wular/coder 0.4.0 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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.d.ts +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 +841 -955
- package/dist/dash/public/assets/chunks/{agent-pills-69c965aae1737cef.js → agent-pills-dd0b7643e125bbf1.js} +1 -1
- package/dist/dash/public/assets/chunks/{agent-settings-form-a1ce70812eea3f20.js → agent-settings-form-45ae6aeaaed2b568.js} +1 -1
- package/dist/dash/public/assets/chunks/{agents-grid-f62180478e43c192.js → agents-grid-b906da80c31fc035.js} +1 -1
- package/dist/dash/public/assets/chunks/{badge-d07f35e9abc80e14.js → badge-676b01e0c615bf7b.js} +1 -1
- package/dist/dash/public/assets/chunks/{card-be04148b64223a52.js → card-e0901d68b79dfa93.js} +1 -1
- package/dist/dash/public/assets/chunks/{combo-32c321a7a84fa902.js → combo-952a457d52360d88.js} +1 -1
- package/dist/dash/public/assets/chunks/{composer-aec9c3c691f1f79a.js → composer-49f9e7c5c4dfda3b.js} +1 -1
- package/dist/dash/public/assets/chunks/composer-f331d00837143aee.js +1 -0
- package/dist/dash/public/assets/chunks/{confirm-b4e2c16aef4b3431.js → confirm-f2fe4ba9905a89c6.js} +1 -1
- package/dist/dash/public/assets/chunks/{connect-apps-a5a63941e287c33f.js → connect-apps-661f3b3a85f1776a.js} +1 -1
- package/dist/dash/public/assets/chunks/{connect-repositories-e4c049b5b4384623.js → connect-repositories-5389ec8701a3deac.js} +1 -1
- package/dist/dash/public/assets/chunks/{credentials-list-2b7d0c771b89f9c5.js → credentials-list-e6177d0943517929.js} +2 -2
- package/dist/dash/public/assets/chunks/{custom-range-53b70e0d9eeae84e.js → custom-range-03ba6fb2ade7d282.js} +1 -1
- package/dist/dash/public/assets/chunks/{editor-691d2bcecb1ecb87.js → editor-34cb529d6d8a4b09.js} +2 -2
- package/dist/dash/public/assets/chunks/{engines-list-a5fe1671601ce3b0.js → engines-list-2f1acee3ecc8461a.js} +1 -1
- package/dist/dash/public/assets/chunks/{field-9e12e5fc8774b6e5.js → field-901f1f35c18c39c9.js} +1 -1
- package/dist/dash/public/assets/chunks/{heads-4041a925d63ab116.js → heads-1570a3a6db331979.js} +1 -1
- package/dist/dash/public/assets/chunks/{instructions-4e0d18b9b40edbd7.js → instructions-052fa45a9daf6db6.js} +1 -1
- package/dist/dash/public/assets/chunks/instructions-d0a4b0d95009c262.js +1 -0
- package/dist/dash/public/assets/chunks/{list-d7eb9e02cf261fbe.js → list-87b359bebd26986a.js} +1 -1
- package/dist/dash/public/assets/chunks/{mcp-list-a450533109045ef5.js → mcp-list-b42f0d2ee463b37d.js} +1 -1
- package/dist/dash/public/assets/chunks/{models-list-1e273c6843858148.js → models-list-0669d26fd662aec3.js} +1 -1
- package/dist/dash/public/assets/chunks/{platform-actions-87f3f76ec1b840cb.js → platform-actions-c92ca3c6198a9387.js} +1 -1
- package/dist/dash/public/assets/chunks/{runners-list-fc7cdae4fa93e78b.js → runners-list-9fffa50432c470c9.js} +1 -1
- package/dist/dash/public/assets/chunks/{segmented-6091dfb2f954799f.js → segmented-358ff2b4992b8384.js} +1 -1
- package/dist/dash/public/assets/chunks/{select-dd09a6b9544cfde2.js → select-1013702bdfb1ade4.js} +1 -1
- package/dist/dash/public/assets/chunks/{sentinel-ff7143a47fd22835.js → sentinel-c972a33dc69a5135.js} +1 -1
- package/dist/dash/public/assets/chunks/shared-init-20e199043ff5d00f.js +2 -0
- package/dist/dash/public/assets/chunks/shared-init-88cce66bb3cfe1e5.js +5 -0
- package/dist/dash/public/assets/chunks/{tail-5a5bfcd308535d70.js → tail-7c27aab8ba268bd9.js} +1 -1
- package/dist/dash/public/assets/chunks/{task-actions-7919ca0e901131f4.js → task-actions-a9603d520434baab.js} +1 -1
- package/dist/dash/public/assets/chunks/{task-view-e8a0f99c992fa11e.js → task-view-f7039cb330bcb0b5.js} +3 -3
- package/dist/dash/public/assets/chunks/{tasks-list-7b72f5b295349532.js → tasks-list-2a905b4a0c3a9042.js} +1 -1
- package/dist/dash/public/assets/chunks/{toolbar-9b18a5d26dee37c3.js → toolbar-f964fa864699f095.js} +1 -1
- package/dist/dash/public/assets/chunks/{versions-list-8cdf3a41c56b2152.js → versions-list-fc2e0d2a7382e049.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-0b6720fdec66eeb0.js → pnext-client-1afa4148bea69ad2.js} +1 -1
- package/dist/dash/public/assets/{pnext-client-4cf2e27d0b9c0365.js → pnext-client-2693db10b197ade1.js} +1 -1
- 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/index.d.ts +1 -1
- package/dist/{flow-17k25MHt.js → flow-kAxxVOiR.js} +1 -1
- package/dist/{index-DT7EST00.d.ts → index-CZjFX5zV.d.ts} +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.d.ts +2 -2
- 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/{types-Dve7Z0ZP.d.ts → types-I5Cwtl_K.d.ts} +2 -2
- 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/composer-e56860d72742379e.js +0 -1
- package/dist/dash/public/assets/chunks/instructions-b00959bd4bb70502.js +0 -1
- package/dist/dash/public/assets/chunks/shared-init-986901c810947c12.js +0 -5
- package/dist/dash/public/assets/chunks/shared-init-baceed9fd2d43661.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-073464b8f422ef57.js +0 -1
- package/dist/dash/public/assets/pnext-client-1e9cb2f4f6387a87.js +0 -1
- package/dist/dash/public/assets/pnext-client-2f0e78dd006fed0f.js +0 -1
- package/dist/dash/public/assets/pnext-client-3c62e2aa2cbe9fe1.js +0 -1
- package/dist/dash/public/assets/pnext-client-43a88896ed42dd39.js +0 -1
- package/dist/dash/public/assets/pnext-client-587008fa987d3073.js +0 -1
- package/dist/dash/public/assets/pnext-client-676360cc86f31573.js +0 -1
- package/dist/dash/public/assets/pnext-client-813427605f424145.js +0 -1
- package/dist/dash/public/assets/pnext-client-82de7cf6dfc35b98.js +0 -1
- package/dist/dash/public/assets/pnext-client-831e8004c09f0b5b.js +0 -1
- package/dist/dash/public/assets/pnext-client-9b557fe468a45ca3.js +0 -1
- package/dist/dash/public/assets/pnext-client-ab7c900c802fe827.js +0 -1
- package/dist/dash/public/assets/pnext-client-d87d00e402811f0c.js +0 -1
- package/dist/dash/public/assets/pnext-client-fbdb7c1da7eda7e5.js +0 -1
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/boot-B2MFTRO2.js +0 -28
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/build-tier-XJJSL5FR.js +0 -2702
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-2HFY3DQT.js +0 -206
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-2ICEVELW.js +0 -832
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-3UPROT2C.js +0 -33
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-4P5CMIYT.js +0 -1580
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-4TKZKZ3Q.js +0 -129
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-5RDEILQB.js +0 -435
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-62KEQM43.js +0 -23
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-6KQSWT6D.js +0 -829
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-7DCNCW6O.js +0 -722
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-B4THCTQP.js +0 -20
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-C2LIV2MM.js +0 -170
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-CCATPVTW.js +0 -376
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-COXJAPTU.js +0 -87
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-E6IXL2NJ.js +0 -6268
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-FLGRBFAH.js +0 -1196
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-FTJVHFWD.js +0 -59
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-H523KSIH.js +0 -5149
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-HT6KKX6A.js +0 -18
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-JESFYECC.js +0 -436
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-JRPJM2XY.js +0 -15
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-L2IWDUXG.js +0 -105
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-L5P4Y4UC.js +0 -181
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-NQE46AZN.js +0 -645
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-PA4QEARJ.js +0 -127
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-PZ5AXOLW.js +0 -7144
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-SNVPTULL.js +0 -2395
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-T3QZT3PG.js +0 -218
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-VC5O2SDP.js +0 -70
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-WZX4V6CM.js +0 -229
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-XUUIDXY5.js +0 -625
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-ZHFDO3PR.js +0 -263
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/compile-CE2DN7ZA.js +0 -16
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/config-UREY7XJT.js +0 -14
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/config-loader-UI2XE3PZ.js +0 -15
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/entry.js +0 -217
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/generate-I2PPTDFD.js +0 -14
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/modules-UVOCE4C2.js +0 -46
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/pipeline-UW47K537.js +0 -961
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/proxy-ITGOVJBW.js +0 -24
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/register-4SA55SWT.js +0 -12577
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/router-JNKHLBCZ.js +0 -503
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/routes-PD6J2NXW.js +0 -52
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/tsconfig-defaults-ZXEH7RQK.js +0 -13
- 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,263 +0,0 @@
|
|
|
1
|
-
import { createRequire as __pnextCreateRequire } from "node:module";
|
|
2
|
-
const require = __pnextCreateRequire("file:///Users/muzam/Code/workshop/coder-workspace/node_modules/.bun/@wular+pnext@0.1.5+62547eec5a2188e3/node_modules/@wular/pnext/package.json");
|
|
3
|
-
import {
|
|
4
|
-
activateTestProxy
|
|
5
|
-
} from "./chunk-L5P4Y4UC.js";
|
|
6
|
-
import {
|
|
7
|
-
nextCompatEnabled
|
|
8
|
-
} from "./chunk-XUUIDXY5.js";
|
|
9
|
-
import {
|
|
10
|
-
findProxyFiles,
|
|
11
|
-
setProxyRewriteObserver
|
|
12
|
-
} from "./chunk-7DCNCW6O.js";
|
|
13
|
-
import {
|
|
14
|
-
getNextConfig
|
|
15
|
-
} from "./chunk-2ICEVELW.js";
|
|
16
|
-
import {
|
|
17
|
-
getWorkUnit,
|
|
18
|
-
legacyRequestAPIs
|
|
19
|
-
} from "./chunk-JESFYECC.js";
|
|
20
|
-
import {
|
|
21
|
-
moduleExportNames
|
|
22
|
-
} from "./chunk-NQE46AZN.js";
|
|
23
|
-
import {
|
|
24
|
-
readText,
|
|
25
|
-
toPosixPath
|
|
26
|
-
} from "./chunk-2HFY3DQT.js";
|
|
27
|
-
import {
|
|
28
|
-
setProxyExtensions,
|
|
29
|
-
setProxyResponseProtocol
|
|
30
|
-
} from "./chunk-4P5CMIYT.js";
|
|
31
|
-
|
|
32
|
-
// ../node_modules/.bun/@wular+pnext@0.1.5+62547eec5a2188e3/node_modules/@wular/pnext/src/compat/register/proxy.ts
|
|
33
|
-
import path from "node:path";
|
|
34
|
-
|
|
35
|
-
// ../node_modules/.bun/@wular+pnext@0.1.5+62547eec5a2188e3/node_modules/@wular/pnext/src/compat/protocol.ts
|
|
36
|
-
var ROUTER_VARY = [
|
|
37
|
-
"rsc",
|
|
38
|
-
"next-router-state-tree",
|
|
39
|
-
"next-router-prefetch",
|
|
40
|
-
"next-router-segment-prefetch"
|
|
41
|
-
];
|
|
42
|
-
var rewrites = /* @__PURE__ */ new WeakMap();
|
|
43
|
-
function recordRewrite(from, to) {
|
|
44
|
-
const unit = getWorkUnit();
|
|
45
|
-
if (!unit) return;
|
|
46
|
-
if (from.pathname === to.pathname && from.search === to.search) return;
|
|
47
|
-
const query = to.search.replace(/^\?/, "");
|
|
48
|
-
rewrites.set(unit, {
|
|
49
|
-
...to.pathname !== from.pathname ? { path: to.pathname } : {},
|
|
50
|
-
...query ? { query } : {}
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
var CACHE_BUSTING_REDIRECT_HEADER = "x-pnext-cache-bust";
|
|
54
|
-
var APP_ROUTE_KINDS = /* @__PURE__ */ new Set([
|
|
55
|
-
"html",
|
|
56
|
-
"data",
|
|
57
|
-
"route-handler"
|
|
58
|
-
]);
|
|
59
|
-
var protocolFinalizer = (ctx) => {
|
|
60
|
-
if (!APP_ROUTE_KINDS.has(ctx.routeKind)) return;
|
|
61
|
-
if (!isPlainRedirect(ctx)) mergeVary(ctx.headers, ROUTER_VARY);
|
|
62
|
-
normalizeRscRedirectStatus(ctx);
|
|
63
|
-
applyRewrittenHeaders(ctx);
|
|
64
|
-
applyEdgeRuntimeHeader(ctx);
|
|
65
|
-
};
|
|
66
|
-
function isPlainRedirect(ctx) {
|
|
67
|
-
if (ctx.status < 300 || ctx.status >= 400 || !ctx.headers.has("location")) return false;
|
|
68
|
-
return ctx.request.headers.get("rsc") !== "1" && !ctx.request.headers.has("next-router-prefetch") && !ctx.request.headers.has("next-router-segment-prefetch");
|
|
69
|
-
}
|
|
70
|
-
function applyEdgeRuntimeHeader(ctx) {
|
|
71
|
-
const runtime = ctx.hints?.runtime;
|
|
72
|
-
if (runtime === "edge" || runtime === "experimental-edge") {
|
|
73
|
-
ctx.headers.set("x-edge-runtime", "1");
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
function mergeVary(headers, values) {
|
|
77
|
-
const existing = headers.get("vary");
|
|
78
|
-
const present = new Set(
|
|
79
|
-
(existing ?? "").split(",").map((token) => token.trim().toLowerCase()).filter(Boolean)
|
|
80
|
-
);
|
|
81
|
-
const merged = existing ? existing.split(",").map((token) => token.trim()).filter(Boolean) : [];
|
|
82
|
-
for (const value of values) {
|
|
83
|
-
if (present.has(value.toLowerCase())) continue;
|
|
84
|
-
present.add(value.toLowerCase());
|
|
85
|
-
merged.push(value);
|
|
86
|
-
}
|
|
87
|
-
if (merged.length > 0) headers.set("vary", merged.join(", "));
|
|
88
|
-
}
|
|
89
|
-
function applyRewrittenHeaders(ctx) {
|
|
90
|
-
if (ctx.request.headers.get("rsc") !== "1") return;
|
|
91
|
-
const unit = getWorkUnit();
|
|
92
|
-
if (!unit) return;
|
|
93
|
-
const info = rewrites.get(unit);
|
|
94
|
-
if (!info) return;
|
|
95
|
-
if (info.path !== void 0) ctx.headers.set("x-nextjs-rewritten-path", info.path);
|
|
96
|
-
if (info.query !== void 0) ctx.headers.set("x-nextjs-rewritten-query", info.query);
|
|
97
|
-
}
|
|
98
|
-
function normalizeRscRedirectStatus(ctx) {
|
|
99
|
-
if (ctx.headers.has(CACHE_BUSTING_REDIRECT_HEADER)) {
|
|
100
|
-
ctx.headers.delete(CACHE_BUSTING_REDIRECT_HEADER);
|
|
101
|
-
return;
|
|
102
|
-
}
|
|
103
|
-
if (ctx.routeKind !== "html") return;
|
|
104
|
-
if (ctx.request.headers.get("rsc") !== "1") return;
|
|
105
|
-
if (ctx.request.headers.has("x-pnext-soft-nav")) return;
|
|
106
|
-
if (!ctx.headers.has("location")) return;
|
|
107
|
-
if (ctx.status !== 307 && ctx.status !== 308) return;
|
|
108
|
-
ctx.status = 200;
|
|
109
|
-
}
|
|
110
|
-
function isValidFlightRouterState(value) {
|
|
111
|
-
if (!Array.isArray(value)) return false;
|
|
112
|
-
const [segment, parallelRoutes] = value;
|
|
113
|
-
if (typeof segment !== "string" && !Array.isArray(segment)) return false;
|
|
114
|
-
if (typeof parallelRoutes !== "object" || parallelRoutes === null) return false;
|
|
115
|
-
if (Array.isArray(parallelRoutes)) return false;
|
|
116
|
-
return Object.values(parallelRoutes).every(isValidFlightRouterState);
|
|
117
|
-
}
|
|
118
|
-
var routerStateTreeInterceptor = (request) => Promise.resolve(validateRouterStateTree(request));
|
|
119
|
-
function validateRouterStateTree(request) {
|
|
120
|
-
if (request.headers.get("rsc") !== "1") return void 0;
|
|
121
|
-
if (request.headers.has("x-pnext-soft-nav")) return void 0;
|
|
122
|
-
const header = request.headers.get("next-router-state-tree");
|
|
123
|
-
if (header === null) return void 0;
|
|
124
|
-
let tree;
|
|
125
|
-
try {
|
|
126
|
-
tree = JSON.parse(decodeURIComponent(header));
|
|
127
|
-
} catch {
|
|
128
|
-
try {
|
|
129
|
-
tree = JSON.parse(header);
|
|
130
|
-
} catch {
|
|
131
|
-
return new Response("Internal Server Error", { status: 500 });
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
return isValidFlightRouterState(tree) ? void 0 : new Response("Internal Server Error", { status: 500 });
|
|
135
|
-
}
|
|
136
|
-
function protocolInterceptors(config) {
|
|
137
|
-
if (!nextCompatEnabled(config)) return [];
|
|
138
|
-
return [routerStateTreeInterceptor];
|
|
139
|
-
}
|
|
140
|
-
function protocolFinalizers(config) {
|
|
141
|
-
if (!nextCompatEnabled(config)) return [];
|
|
142
|
-
return [protocolFinalizer];
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
// ../node_modules/.bun/@wular+pnext@0.1.5+62547eec5a2188e3/node_modules/@wular/pnext/src/compat/next/canonical-url.ts
|
|
146
|
-
var CANONICAL_URL_KEY = Symbol.for("pnext.compat.navigation.canonicalUrl");
|
|
147
|
-
function recordCanonicalUrl(from) {
|
|
148
|
-
const unit = getWorkUnit();
|
|
149
|
-
if (!unit) return;
|
|
150
|
-
const compat = unit.compat ??= {};
|
|
151
|
-
if (typeof compat[CANONICAL_URL_KEY] === "string") return;
|
|
152
|
-
compat[CANONICAL_URL_KEY] = from.href;
|
|
153
|
-
}
|
|
154
|
-
function canonicalUrlHref() {
|
|
155
|
-
const value = getWorkUnit()?.compat?.[CANONICAL_URL_KEY];
|
|
156
|
-
return typeof value === "string" ? value : void 0;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
// ../node_modules/.bun/@wular+pnext@0.1.5+62547eec5a2188e3/node_modules/@wular/pnext/src/compat/register/proxy.ts
|
|
160
|
-
function registerProxyExtensions(_config) {
|
|
161
|
-
setProxyResponseProtocol({
|
|
162
|
-
nextHeader: "x-middleware-next",
|
|
163
|
-
rewriteHeader: "x-middleware-rewrite"
|
|
164
|
-
});
|
|
165
|
-
setProxyExtensions({
|
|
166
|
-
names: ["proxy", "middleware"],
|
|
167
|
-
validateFiles: validateNextProxyFiles,
|
|
168
|
-
handlerExport: (module) => module.proxy ?? module.default ?? module.middleware,
|
|
169
|
-
skipUrlNormalize: () => getNextConfig().skipProxyUrlNormalize === true,
|
|
170
|
-
locale: proxyLocale,
|
|
171
|
-
onExternalRewrite: (request) => activateTestProxy(request.headers),
|
|
172
|
-
clientMaxBodySize: proxyClientMaxBodySize
|
|
173
|
-
});
|
|
174
|
-
setProxyRewriteObserver((from, to) => {
|
|
175
|
-
recordCanonicalUrl(from);
|
|
176
|
-
recordRewrite(from, to);
|
|
177
|
-
});
|
|
178
|
-
}
|
|
179
|
-
var DEFAULT_PROXY_CLIENT_MAX_BODY_SIZE = 10 * 1024 * 1024;
|
|
180
|
-
function proxyClientMaxBodySize() {
|
|
181
|
-
const experimental = getNextConfig().experimental ?? {};
|
|
182
|
-
const raw = experimental.proxyClientMaxBodySize ?? experimental.middlewareClientMaxBodySize;
|
|
183
|
-
if (typeof raw === "number" && raw > 0) return raw;
|
|
184
|
-
if (typeof raw === "string") {
|
|
185
|
-
const match = /^(\d+(?:\.\d+)?)\s*(b|kb|mb|gb)?$/i.exec(raw.trim());
|
|
186
|
-
if (match?.[1]) {
|
|
187
|
-
const unit = (match[2] ?? "b").toLowerCase();
|
|
188
|
-
const multiplier = unit === "gb" ? 1024 ** 3 : unit === "mb" ? 1024 ** 2 : unit === "kb" ? 1024 : 1;
|
|
189
|
-
const bytes = Math.floor(Number(match[1]) * multiplier);
|
|
190
|
-
if (bytes > 0) return bytes;
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
return DEFAULT_PROXY_CLIENT_MAX_BODY_SIZE;
|
|
194
|
-
}
|
|
195
|
-
function proxyLocale(url) {
|
|
196
|
-
const i18n = getNextConfig().i18n;
|
|
197
|
-
if (!Array.isArray(i18n?.locales)) return "";
|
|
198
|
-
const locales = i18n.locales.filter((locale) => typeof locale === "string");
|
|
199
|
-
const dataLocale = /^\/_next\/data\/[^/]+\/([^/]+)(?:\/|$)/.exec(url.pathname)?.[1];
|
|
200
|
-
const candidate = dataLocale ?? url.pathname.split("/")[1];
|
|
201
|
-
return locales.find((locale) => locale.toLowerCase() === candidate?.toLowerCase()) ?? "";
|
|
202
|
-
}
|
|
203
|
-
async function validateNextProxyFiles(config) {
|
|
204
|
-
const files = findProxyFiles(config, ["proxy", "middleware"]);
|
|
205
|
-
const middleware = files.find((file) => path.basename(file).startsWith("middleware."));
|
|
206
|
-
const proxy = files.find((file) => path.basename(file).startsWith("proxy."));
|
|
207
|
-
if (middleware && proxy) {
|
|
208
|
-
throw new Error(
|
|
209
|
-
`Both middleware file "${relativeProxyPath(config, middleware)}" and proxy file "${relativeProxyPath(config, proxy)}" are detected. Please use "${relativeProxyPath(config, proxy)}" only.`
|
|
210
|
-
);
|
|
211
|
-
}
|
|
212
|
-
if (middleware && !proxy && !legacyRequestAPIs()) {
|
|
213
|
-
console.warn('The "middleware" file convention is deprecated. Please use "proxy" instead.');
|
|
214
|
-
}
|
|
215
|
-
await Promise.all(files.map((file) => validateNextProxyFile(config, file)));
|
|
216
|
-
}
|
|
217
|
-
async function validateNextProxyFile(config, file) {
|
|
218
|
-
const source = await readText(file);
|
|
219
|
-
const name = path.basename(file).split(".")[0];
|
|
220
|
-
const exports = moduleExportNames(source, file);
|
|
221
|
-
const validExport = exports.includes("default") || (name === "proxy" ? exports.includes("proxy") : exports.includes("middleware"));
|
|
222
|
-
if (!validExport) {
|
|
223
|
-
throw new Error(proxyMissingExportError(config, file));
|
|
224
|
-
}
|
|
225
|
-
if (name === "proxy" && hasRuntimeConfig(source)) {
|
|
226
|
-
throw new Error(
|
|
227
|
-
`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`
|
|
228
|
-
);
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
function proxyMissingExportError(config, file) {
|
|
232
|
-
const name = path.basename(file).split(".")[0] === "middleware" ? "middleware" : "proxy";
|
|
233
|
-
const migrationReason = name === "proxy" ? "- You are migrating from `middleware` to `proxy`, but haven't updated the exported function.\n" : "";
|
|
234
|
-
const target = name === "proxy" ? "proxy (previously called middleware)" : "middleware";
|
|
235
|
-
return `The file "${relativeProxyPath(config, file)}" must export a function, either as a default export or as a named "${name}" export.
|
|
236
|
-
This function is what Next.js runs for every request handled by this ${target}.
|
|
237
|
-
|
|
238
|
-
Why this happens:
|
|
239
|
-
${migrationReason}- The file exists but doesn't export a function.
|
|
240
|
-
- The export is not a function (e.g., an object or constant).
|
|
241
|
-
- There's a syntax error preventing the export from being recognized.
|
|
242
|
-
|
|
243
|
-
To fix it:
|
|
244
|
-
- Ensure this file has either a default or "${name}" function export.
|
|
245
|
-
|
|
246
|
-
Learn more: https://nextjs.org/docs/messages/middleware-to-proxy`;
|
|
247
|
-
}
|
|
248
|
-
function hasRuntimeConfig(source) {
|
|
249
|
-
return /\bexport\s+const\s+config\s*=/.test(source) && /\bruntime\s*:/.test(source);
|
|
250
|
-
}
|
|
251
|
-
function relativeProxyPath(config, file) {
|
|
252
|
-
return `./${toPosixPath(path.relative(config.root, file))}`;
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
export {
|
|
256
|
-
recordRewrite,
|
|
257
|
-
CACHE_BUSTING_REDIRECT_HEADER,
|
|
258
|
-
protocolInterceptors,
|
|
259
|
-
protocolFinalizers,
|
|
260
|
-
recordCanonicalUrl,
|
|
261
|
-
canonicalUrlHref,
|
|
262
|
-
registerProxyExtensions
|
|
263
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { createRequire as __pnextCreateRequire } from "node:module";
|
|
2
|
-
const require = __pnextCreateRequire("file:///Users/muzam/Code/workshop/coder-workspace/node_modules/.bun/@wular+pnext@0.1.5+62547eec5a2188e3/node_modules/@wular/pnext/package.json");
|
|
3
|
-
import {
|
|
4
|
-
compileMdx,
|
|
5
|
-
mdxOptionsFromConfig,
|
|
6
|
-
resolveMdxComponents
|
|
7
|
-
} from "./chunk-4TKZKZ3Q.js";
|
|
8
|
-
import "./chunk-2ICEVELW.js";
|
|
9
|
-
import "./chunk-5RDEILQB.js";
|
|
10
|
-
import "./chunk-FTJVHFWD.js";
|
|
11
|
-
import "./chunk-3UPROT2C.js";
|
|
12
|
-
export {
|
|
13
|
-
compileMdx,
|
|
14
|
-
mdxOptionsFromConfig,
|
|
15
|
-
resolveMdxComponents
|
|
16
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { createRequire as __pnextCreateRequire } from "node:module";
|
|
2
|
-
const require = __pnextCreateRequire("file:///Users/muzam/Code/workshop/coder-workspace/node_modules/.bun/@wular+pnext@0.1.5+62547eec5a2188e3/node_modules/@wular/pnext/package.json");
|
|
3
|
-
import {
|
|
4
|
-
registerConfigSource
|
|
5
|
-
} from "./chunk-B4THCTQP.js";
|
|
6
|
-
import "./chunk-2ICEVELW.js";
|
|
7
|
-
import "./chunk-JESFYECC.js";
|
|
8
|
-
import "./chunk-5RDEILQB.js";
|
|
9
|
-
import "./chunk-4P5CMIYT.js";
|
|
10
|
-
import "./chunk-FTJVHFWD.js";
|
|
11
|
-
import "./chunk-3UPROT2C.js";
|
|
12
|
-
export {
|
|
13
|
-
registerConfigSource
|
|
14
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { createRequire as __pnextCreateRequire } from "node:module";
|
|
2
|
-
const require = __pnextCreateRequire("file:///Users/muzam/Code/workshop/coder-workspace/node_modules/.bun/@wular+pnext@0.1.5+62547eec5a2188e3/node_modules/@wular/pnext/package.json");
|
|
3
|
-
import {
|
|
4
|
-
getNextConfig,
|
|
5
|
-
loadNextConfig,
|
|
6
|
-
setNextConfig
|
|
7
|
-
} from "./chunk-2ICEVELW.js";
|
|
8
|
-
import "./chunk-5RDEILQB.js";
|
|
9
|
-
import "./chunk-FTJVHFWD.js";
|
|
10
|
-
import "./chunk-3UPROT2C.js";
|
|
11
|
-
export {
|
|
12
|
-
getNextConfig,
|
|
13
|
-
loadNextConfig,
|
|
14
|
-
setNextConfig
|
|
15
|
-
};
|
|
@@ -1,217 +0,0 @@
|
|
|
1
|
-
import { createRequire as __pnextCreateRequire } from "node:module";
|
|
2
|
-
const require = __pnextCreateRequire("file:///Users/muzam/Code/workshop/coder-workspace/node_modules/.bun/@wular+pnext@0.1.5+62547eec5a2188e3/node_modules/@wular/pnext/package.json");
|
|
3
|
-
import {
|
|
4
|
-
bootstrapCompat
|
|
5
|
-
} from "./chunk-COXJAPTU.js";
|
|
6
|
-
import {
|
|
7
|
-
markErrorLogged
|
|
8
|
-
} from "./chunk-62KEQM43.js";
|
|
9
|
-
import {
|
|
10
|
-
drainWorkUnits,
|
|
11
|
-
loadConfig
|
|
12
|
-
} from "./chunk-JESFYECC.js";
|
|
13
|
-
import {
|
|
14
|
-
isPostpone
|
|
15
|
-
} from "./chunk-5RDEILQB.js";
|
|
16
|
-
import {
|
|
17
|
-
bold,
|
|
18
|
-
cyan,
|
|
19
|
-
dim,
|
|
20
|
-
green
|
|
21
|
-
} from "./chunk-HT6KKX6A.js";
|
|
22
|
-
import {
|
|
23
|
-
getBuildExtensions
|
|
24
|
-
} from "./chunk-4P5CMIYT.js";
|
|
25
|
-
import "./chunk-3UPROT2C.js";
|
|
26
|
-
|
|
27
|
-
// ../node_modules/.bun/@wular+pnext@0.1.5+62547eec5a2188e3/node_modules/@wular/pnext/src/cli/start.ts
|
|
28
|
-
import { readFile } from "node:fs/promises";
|
|
29
|
-
import path from "node:path";
|
|
30
|
-
|
|
31
|
-
// ../node_modules/.bun/@wular+pnext@0.1.5+62547eec5a2188e3/node_modules/@wular/pnext/src/cli/serve/ui.ts
|
|
32
|
-
import { networkInterfaces } from "node:os";
|
|
33
|
-
function browserHost(hostname) {
|
|
34
|
-
if (hostname === "::" || hostname === "::1") return "[::1]";
|
|
35
|
-
if (["0.0.0.0", "127.0.0.1"].includes(hostname)) return "localhost";
|
|
36
|
-
return hostname;
|
|
37
|
-
}
|
|
38
|
-
function printServerReady({ mode, hostname, port, elapsedMs }) {
|
|
39
|
-
const rows = [["Local:", cyan(`http://${browserHost(hostname)}:${port}`)]];
|
|
40
|
-
const lan = hostname === "::" ? "[::]" : wildcard(hostname) ? lanAddress() : void 0;
|
|
41
|
-
if (lan) rows.push(["Network:", cyan(`http://${lan}:${port}`)]);
|
|
42
|
-
const ready = elapsedMs === void 0 ? `${green("\u2713")} ${bold("Ready")}` : `${green("\u2713")} ${bold("Ready")} ${dim(`in ${Math.round(elapsedMs)}ms`)}`;
|
|
43
|
-
const pad = Math.max(...rows.map(([label]) => label.length));
|
|
44
|
-
console.log("");
|
|
45
|
-
console.log(`\u26A1 ${bold("pnext")} ${dim(mode)}`);
|
|
46
|
-
for (const [label, value] of rows) {
|
|
47
|
-
console.log(` ${dim("-")} ${dim(label.padEnd(pad))} ${value}`);
|
|
48
|
-
}
|
|
49
|
-
console.log("");
|
|
50
|
-
console.log(ready);
|
|
51
|
-
console.log("");
|
|
52
|
-
}
|
|
53
|
-
function wildcard(hostname) {
|
|
54
|
-
return hostname === "0.0.0.0" || hostname === "::";
|
|
55
|
-
}
|
|
56
|
-
async function ensurePortFree(port, hostname, options = {}) {
|
|
57
|
-
const attempts = options.attempts ?? 1;
|
|
58
|
-
const delayMs = options.delayMs ?? 300;
|
|
59
|
-
const candidates = wildcard(hostname) || hostname === "localhost" ? ["127.0.0.1", "::1"] : [hostname];
|
|
60
|
-
for (const candidate of candidates) {
|
|
61
|
-
let inUse = await portInUse(candidate, port);
|
|
62
|
-
for (let attempt = 1; inUse && attempt < attempts; attempt += 1) {
|
|
63
|
-
await new Promise((resolve) => setTimeout(resolve, delayMs));
|
|
64
|
-
inUse = await portInUse(candidate, port);
|
|
65
|
-
}
|
|
66
|
-
if (inUse) {
|
|
67
|
-
throw new Error(
|
|
68
|
-
`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`
|
|
69
|
-
);
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
function portInUse(hostname, port) {
|
|
74
|
-
return new Promise((resolve) => {
|
|
75
|
-
const timer = setTimeout(() => resolve(false), 300);
|
|
76
|
-
Bun.connect({
|
|
77
|
-
hostname,
|
|
78
|
-
port,
|
|
79
|
-
socket: {
|
|
80
|
-
open(socket) {
|
|
81
|
-
clearTimeout(timer);
|
|
82
|
-
socket.end();
|
|
83
|
-
resolve(true);
|
|
84
|
-
},
|
|
85
|
-
data() {
|
|
86
|
-
},
|
|
87
|
-
connectError() {
|
|
88
|
-
clearTimeout(timer);
|
|
89
|
-
resolve(false);
|
|
90
|
-
},
|
|
91
|
-
error() {
|
|
92
|
-
clearTimeout(timer);
|
|
93
|
-
resolve(false);
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
}).catch(() => {
|
|
97
|
-
clearTimeout(timer);
|
|
98
|
-
resolve(false);
|
|
99
|
-
});
|
|
100
|
-
});
|
|
101
|
-
}
|
|
102
|
-
function lanAddress() {
|
|
103
|
-
for (const addresses of Object.values(networkInterfaces())) {
|
|
104
|
-
for (const address of addresses ?? []) {
|
|
105
|
-
if (address.family === "IPv4" && !address.internal) return address.address;
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
return void 0;
|
|
109
|
-
}
|
|
110
|
-
function openBrowser(url) {
|
|
111
|
-
const browser = process.env.BROWSER;
|
|
112
|
-
if (browser === "none" || process.env.CI || process.env.NODE_ENV === "test") return;
|
|
113
|
-
const browserArgs = process.env.BROWSER_ARGS?.split(/\s+/).filter(Boolean) ?? [];
|
|
114
|
-
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];
|
|
115
|
-
try {
|
|
116
|
-
Bun.spawn(command, { stdout: "ignore", stderr: "ignore", stdin: "ignore" }).unref();
|
|
117
|
-
} catch {
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
// ../node_modules/.bun/@wular+pnext@0.1.5+62547eec5a2188e3/node_modules/@wular/pnext/src/cli/start.ts
|
|
122
|
-
async function createRequestHandler(options = {}) {
|
|
123
|
-
const { createRequestHandler: create } = await import("./pipeline-UW47K537.js");
|
|
124
|
-
return create(options);
|
|
125
|
-
}
|
|
126
|
-
async function maybeBuiltFile(...args) {
|
|
127
|
-
const { maybeBuiltFile: impl } = await import("./pipeline-UW47K537.js");
|
|
128
|
-
return impl(...args);
|
|
129
|
-
}
|
|
130
|
-
async function start(options = {}) {
|
|
131
|
-
const startedAt = Date.now();
|
|
132
|
-
const port = options.port ?? 3e3;
|
|
133
|
-
const hostname = options.hostname ?? "0.0.0.0";
|
|
134
|
-
const config = await guardUnservableOutputMode(options.root);
|
|
135
|
-
const manifest = await readProductionManifest(config);
|
|
136
|
-
await ensurePortFree(port, hostname);
|
|
137
|
-
let handler;
|
|
138
|
-
let pending;
|
|
139
|
-
const ensureHandler = () => pending ??= createRequestHandler({ root: options.root, config, manifest }).then((ready) => {
|
|
140
|
-
handler = ready;
|
|
141
|
-
return ready;
|
|
142
|
-
});
|
|
143
|
-
const server = Bun.serve({
|
|
144
|
-
hostname,
|
|
145
|
-
port,
|
|
146
|
-
fetch: (request, server2) => handler ? handler(request, server2) : ensureHandler().then((ready) => ready(request, server2))
|
|
147
|
-
});
|
|
148
|
-
printServerReady({
|
|
149
|
-
mode: "production",
|
|
150
|
-
hostname,
|
|
151
|
-
port: server.port ?? port,
|
|
152
|
-
elapsedMs: Date.now() - startedAt
|
|
153
|
-
});
|
|
154
|
-
void ensureHandler().catch(() => void 0);
|
|
155
|
-
openBrowser(`http://${browserHost(hostname)}:${server.port ?? port}`);
|
|
156
|
-
installShutdownHandlers(server);
|
|
157
|
-
installProcessErrorHandlers();
|
|
158
|
-
return server;
|
|
159
|
-
}
|
|
160
|
-
function installProcessErrorHandlers() {
|
|
161
|
-
const globalWithFlag = globalThis;
|
|
162
|
-
if (globalWithFlag.__pnextProcessErrorHandlers) return;
|
|
163
|
-
globalWithFlag.__pnextProcessErrorHandlers = true;
|
|
164
|
-
const report = (reason) => {
|
|
165
|
-
if (isPostpone(reason)) return;
|
|
166
|
-
if (markErrorLogged(reason)) console.error(reason);
|
|
167
|
-
};
|
|
168
|
-
process.on("unhandledRejection", report);
|
|
169
|
-
process.on("uncaughtException", report);
|
|
170
|
-
}
|
|
171
|
-
async function readProductionManifest(config) {
|
|
172
|
-
try {
|
|
173
|
-
return JSON.parse(
|
|
174
|
-
await readFile(path.join(config.outPath, "manifest.json"), "utf8")
|
|
175
|
-
);
|
|
176
|
-
} catch (error) {
|
|
177
|
-
if (error.code === "ENOENT") {
|
|
178
|
-
throw new Error("No production build found. Run 'pnext build' first.");
|
|
179
|
-
}
|
|
180
|
-
throw error;
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
async function guardUnservableOutputMode(root) {
|
|
184
|
-
const config = await loadConfig(root, { serve: true });
|
|
185
|
-
await bootstrapCompat(config);
|
|
186
|
-
const mode = getBuildExtensions().compat.nextOutputMode();
|
|
187
|
-
if (mode === "export") {
|
|
188
|
-
console.error(
|
|
189
|
-
'"next start" does not work with "output: export" configuration. Use "npx serve@latest out" instead.'
|
|
190
|
-
);
|
|
191
|
-
process.exit(1);
|
|
192
|
-
}
|
|
193
|
-
if (mode === "standalone" && !process.env.__NEXT_PRIVATE_STANDALONE_CONFIG) {
|
|
194
|
-
console.warn(
|
|
195
|
-
'"next start" does not work with "output: standalone" configuration. Use "node .next/standalone/server.js" instead.'
|
|
196
|
-
);
|
|
197
|
-
}
|
|
198
|
-
return config;
|
|
199
|
-
}
|
|
200
|
-
function installShutdownHandlers(server) {
|
|
201
|
-
let shuttingDown = false;
|
|
202
|
-
const shutdown = async () => {
|
|
203
|
-
if (shuttingDown) return;
|
|
204
|
-
shuttingDown = true;
|
|
205
|
-
server.stop();
|
|
206
|
-
await drainWorkUnits();
|
|
207
|
-
process.exit(0);
|
|
208
|
-
};
|
|
209
|
-
process.on("SIGINT", shutdown);
|
|
210
|
-
process.on("SIGTERM", shutdown);
|
|
211
|
-
}
|
|
212
|
-
export {
|
|
213
|
-
createRequestHandler,
|
|
214
|
-
maybeBuiltFile,
|
|
215
|
-
readProductionManifest,
|
|
216
|
-
start
|
|
217
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { createRequire as __pnextCreateRequire } from "node:module";
|
|
2
|
-
const require = __pnextCreateRequire("file:///Users/muzam/Code/workshop/coder-workspace/node_modules/.bun/@wular+pnext@0.1.5+62547eec5a2188e3/node_modules/@wular/pnext/package.json");
|
|
3
|
-
import {
|
|
4
|
-
generateTypedRoutes
|
|
5
|
-
} from "./chunk-6KQSWT6D.js";
|
|
6
|
-
import "./chunk-PA4QEARJ.js";
|
|
7
|
-
import "./chunk-2ICEVELW.js";
|
|
8
|
-
import "./chunk-5RDEILQB.js";
|
|
9
|
-
import "./chunk-2HFY3DQT.js";
|
|
10
|
-
import "./chunk-FTJVHFWD.js";
|
|
11
|
-
import "./chunk-3UPROT2C.js";
|
|
12
|
-
export {
|
|
13
|
-
generateTypedRoutes
|
|
14
|
-
};
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { createRequire as __pnextCreateRequire } from "node:module";
|
|
2
|
-
const require = __pnextCreateRequire("file:///Users/muzam/Code/workshop/coder-workspace/node_modules/.bun/@wular+pnext@0.1.5+62547eec5a2188e3/node_modules/@wular/pnext/package.json");
|
|
3
|
-
import {
|
|
4
|
-
clearDevRouteBundleKeys,
|
|
5
|
-
compiledSpecifiersManifestSuffix,
|
|
6
|
-
devClientModuleHref,
|
|
7
|
-
devClientReferenceGroups,
|
|
8
|
-
devClientReferenceModules,
|
|
9
|
-
devModuleGraph,
|
|
10
|
-
devRouteModuleLoaders,
|
|
11
|
-
devServerModuleHref,
|
|
12
|
-
devVendorSeedSplit,
|
|
13
|
-
importDevModule,
|
|
14
|
-
importModuleOnce,
|
|
15
|
-
resetModuleGraphFailure,
|
|
16
|
-
setEmitCompiledSpecifiersManifest,
|
|
17
|
-
throwIfModuleGraphFailed,
|
|
18
|
-
warmDevModulePipeline
|
|
19
|
-
} from "./chunk-E6IXL2NJ.js";
|
|
20
|
-
import "./chunk-L2IWDUXG.js";
|
|
21
|
-
import "./chunk-JESFYECC.js";
|
|
22
|
-
import "./chunk-5RDEILQB.js";
|
|
23
|
-
import "./chunk-CCATPVTW.js";
|
|
24
|
-
import "./chunk-HT6KKX6A.js";
|
|
25
|
-
import "./chunk-NQE46AZN.js";
|
|
26
|
-
import "./chunk-2HFY3DQT.js";
|
|
27
|
-
import "./chunk-4P5CMIYT.js";
|
|
28
|
-
import "./chunk-FTJVHFWD.js";
|
|
29
|
-
import "./chunk-3UPROT2C.js";
|
|
30
|
-
export {
|
|
31
|
-
clearDevRouteBundleKeys,
|
|
32
|
-
compiledSpecifiersManifestSuffix,
|
|
33
|
-
devClientModuleHref,
|
|
34
|
-
devClientReferenceGroups,
|
|
35
|
-
devClientReferenceModules,
|
|
36
|
-
devModuleGraph,
|
|
37
|
-
devRouteModuleLoaders,
|
|
38
|
-
devServerModuleHref,
|
|
39
|
-
devVendorSeedSplit,
|
|
40
|
-
importDevModule,
|
|
41
|
-
importModuleOnce,
|
|
42
|
-
resetModuleGraphFailure,
|
|
43
|
-
setEmitCompiledSpecifiersManifest,
|
|
44
|
-
throwIfModuleGraphFailed,
|
|
45
|
-
warmDevModulePipeline
|
|
46
|
-
};
|