@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,220 +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
|
-
} from "./chunk-2ICEVELW.js";
|
|
8
|
-
import {
|
|
9
|
-
includeTypes,
|
|
10
|
-
writeFileAtomic
|
|
11
|
-
} from "./chunk-2HFY3DQT.js";
|
|
12
|
-
|
|
13
|
-
// ../node_modules/.bun/@wular+pnext@0.1.5+62547eec5a2188e3/node_modules/@wular/pnext/src/compat/tsconfig-defaults.ts
|
|
14
|
-
import { existsSync, readdirSync } from "node:fs";
|
|
15
|
-
import { readFile } from "node:fs/promises";
|
|
16
|
-
import { createRequire } from "node:module";
|
|
17
|
-
import path from "node:path";
|
|
18
|
-
function hasTypescriptSources(root, depth = 0) {
|
|
19
|
-
if (depth > 6) return false;
|
|
20
|
-
let entries;
|
|
21
|
-
try {
|
|
22
|
-
entries = readdirSync(root, { withFileTypes: true });
|
|
23
|
-
} catch {
|
|
24
|
-
return false;
|
|
25
|
-
}
|
|
26
|
-
for (const entry of entries) {
|
|
27
|
-
if (entry.name.startsWith(".") || entry.name === "node_modules") continue;
|
|
28
|
-
if (entry.isFile() && /\.(ts|tsx|mts|cts)$/.test(entry.name) && !entry.name.endsWith(".d.ts")) {
|
|
29
|
-
return true;
|
|
30
|
-
}
|
|
31
|
-
if (entry.isDirectory() && hasTypescriptSources(path.join(root, entry.name), depth + 1)) {
|
|
32
|
-
return true;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
return false;
|
|
36
|
-
}
|
|
37
|
-
function appTypescriptVersion(root) {
|
|
38
|
-
for (const base of [root, (__pnextRoot + "/src/compat")]) {
|
|
39
|
-
try {
|
|
40
|
-
const require2 = createRequire(path.join(base, "noop.js"));
|
|
41
|
-
const pkg = require2("typescript/package.json");
|
|
42
|
-
if (typeof pkg.version === "string") return pkg.version;
|
|
43
|
-
} catch {
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
return "5.9.0";
|
|
47
|
-
}
|
|
48
|
-
function versionGte(version, major, minor) {
|
|
49
|
-
const [maj = 0, min = 0] = version.split(".").map((part) => Number.parseInt(part, 10));
|
|
50
|
-
return maj > major || maj === major && min >= minor;
|
|
51
|
-
}
|
|
52
|
-
function getDesiredCompilerOptions(typescriptVersion, userTsConfig) {
|
|
53
|
-
const configuredModule = typeof userTsConfig.compilerOptions?.module === "string" ? userTsConfig.compilerOptions.module.toLowerCase() : void 0;
|
|
54
|
-
const preferBundlerResolution = versionGte(typescriptVersion, 5, 0) && configuredModule !== "commonjs" && configuredModule !== "amd";
|
|
55
|
-
const modulePreserve = versionGte(typescriptVersion, 5, 4) && configuredModule === "preserve";
|
|
56
|
-
return {
|
|
57
|
-
target: {
|
|
58
|
-
suggested: "ES2017",
|
|
59
|
-
reason: "For top-level `await`. Note: Next.js only polyfills for the esmodules target."
|
|
60
|
-
},
|
|
61
|
-
lib: { suggested: ["dom", "dom.iterable", "esnext"] },
|
|
62
|
-
allowJs: { suggested: true },
|
|
63
|
-
skipLibCheck: { suggested: true },
|
|
64
|
-
strict: { suggested: false },
|
|
65
|
-
noEmit: { suggested: true },
|
|
66
|
-
incremental: { suggested: true },
|
|
67
|
-
module: {
|
|
68
|
-
parsedValue: "esnext",
|
|
69
|
-
parsedValues: [
|
|
70
|
-
...versionGte(typescriptVersion, 5, 4) ? ["preserve"] : [],
|
|
71
|
-
"es2020",
|
|
72
|
-
"esnext",
|
|
73
|
-
"commonjs",
|
|
74
|
-
"amd",
|
|
75
|
-
"nodenext",
|
|
76
|
-
"node16"
|
|
77
|
-
],
|
|
78
|
-
value: "esnext",
|
|
79
|
-
reason: "for dynamic import() support"
|
|
80
|
-
},
|
|
81
|
-
// `module: "preserve"` implies moduleResolution: bundler, esModuleInterop
|
|
82
|
-
// and resolveJsonModule — the app does not need (and must not be told to
|
|
83
|
-
// add) any of them.
|
|
84
|
-
...modulePreserve ? {} : {
|
|
85
|
-
esModuleInterop: { value: true, reason: "requirement for SWC / babel" },
|
|
86
|
-
moduleResolution: {
|
|
87
|
-
parsedValue: preferBundlerResolution ? "bundler" : "node",
|
|
88
|
-
parsedValues: preferBundlerResolution ? ["node16", "nodenext", "bundler"] : ["node", "node12", "node16", "nodenext"],
|
|
89
|
-
value: preferBundlerResolution ? "bundler" : "node",
|
|
90
|
-
reason: preferBundlerResolution ? "to match modern bundler resolution" : "to match webpack resolution"
|
|
91
|
-
},
|
|
92
|
-
resolveJsonModule: { value: true, reason: "to match webpack resolution" }
|
|
93
|
-
},
|
|
94
|
-
...userTsConfig.compilerOptions?.verbatimModuleSyntax === true ? {} : { isolatedModules: { value: true, reason: "requirement for SWC / Babel" } },
|
|
95
|
-
jsx: {
|
|
96
|
-
// A missing value follows Next's automatic-runtime default, while an app
|
|
97
|
-
// that explicitly owns JSX emission keeps preserve. PNext's private
|
|
98
|
-
// typecheck project can analyze either without rewriting user intent.
|
|
99
|
-
parsedValue: "react-jsx",
|
|
100
|
-
parsedValues: ["preserve", "react-jsx"],
|
|
101
|
-
value: "react-jsx",
|
|
102
|
-
reason: "next.js uses the React automatic runtime"
|
|
103
|
-
}
|
|
104
|
-
};
|
|
105
|
-
}
|
|
106
|
-
function typeDefinitionGlobPatterns(distDir) {
|
|
107
|
-
return [`${distDir}/types/**/*.ts`, `${distDir}/dev/types/**/*.ts`].sort(
|
|
108
|
-
(a, b) => a.length - b.length
|
|
109
|
-
);
|
|
110
|
-
}
|
|
111
|
-
async function writeTsconfigDefaults(config) {
|
|
112
|
-
const tsConfigPath = path.join(config.root, "tsconfig.json");
|
|
113
|
-
const tempDirectory = path.dirname(config.root);
|
|
114
|
-
let isFirstTimeSetup = false;
|
|
115
|
-
if (!existsSync(tsConfigPath)) {
|
|
116
|
-
if (!hasTypescriptSources(config.root)) return;
|
|
117
|
-
isFirstTimeSetup = true;
|
|
118
|
-
await writeFileAtomic(tsConfigPath, "{}\n", tempDirectory);
|
|
119
|
-
}
|
|
120
|
-
let userTsConfig;
|
|
121
|
-
try {
|
|
122
|
-
userTsConfig = JSON.parse(await readFile(tsConfigPath, "utf8"));
|
|
123
|
-
} catch {
|
|
124
|
-
return;
|
|
125
|
-
}
|
|
126
|
-
if (userTsConfig === null || typeof userTsConfig !== "object") return;
|
|
127
|
-
if ("extends" in userTsConfig || "references" in userTsConfig) return;
|
|
128
|
-
if (userTsConfig.compilerOptions == null) userTsConfig.compilerOptions = {};
|
|
129
|
-
const compilerOptions = userTsConfig.compilerOptions;
|
|
130
|
-
const desired = getDesiredCompilerOptions(appTypescriptVersion(config.root), userTsConfig);
|
|
131
|
-
const suggestedActions = [];
|
|
132
|
-
const requiredActions = [];
|
|
133
|
-
for (const [optionKey, check] of Object.entries(desired)) {
|
|
134
|
-
if ("suggested" in check) {
|
|
135
|
-
if (!(optionKey in compilerOptions)) {
|
|
136
|
-
compilerOptions[optionKey] = check.suggested;
|
|
137
|
-
suggestedActions.push(
|
|
138
|
-
`${optionKey} was set to ${JSON.stringify(check.suggested)}` + (check.reason ? ` (${check.reason})` : "")
|
|
139
|
-
);
|
|
140
|
-
}
|
|
141
|
-
continue;
|
|
142
|
-
}
|
|
143
|
-
let existingValue = compilerOptions[optionKey];
|
|
144
|
-
if (typeof existingValue === "string") existingValue = existingValue.toLowerCase();
|
|
145
|
-
const satisfied = check.parsedValues ? check.parsedValues.includes(existingValue) : (check.parsedValue ?? check.value) === existingValue;
|
|
146
|
-
if (!satisfied) {
|
|
147
|
-
compilerOptions[optionKey] = check.value;
|
|
148
|
-
requiredActions.push(`${optionKey} was set to ${String(check.value)} (${check.reason})`);
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
const hasAppDir = existsSync(path.join(config.root, "app")) || existsSync(path.join(config.root, "src", "app"));
|
|
152
|
-
const hasPagesDir = existsSync(path.join(config.root, "pages")) || existsSync(path.join(config.root, "src", "pages"));
|
|
153
|
-
const strictRouteTypes = process.env.__NEXT_EXPERIMENTAL_STRICT_ROUTE_TYPES === "true";
|
|
154
|
-
const distDir = typeof getNextConfig().distDir === "string" ? getNextConfig().distDir : ".next";
|
|
155
|
-
const nextTypes = typeDefinitionGlobPatterns(distDir);
|
|
156
|
-
if (!("include" in userTsConfig)) {
|
|
157
|
-
const defaultInclude = hasAppDir && !strictRouteTypes ? ["next-env.d.ts", ...nextTypes, "**/*.mts", "**/*.ts", "**/*.tsx"] : ["next-env.d.ts", "**/*.mts", "**/*.ts", "**/*.tsx"];
|
|
158
|
-
includeTypes(userTsConfig, [], defaultInclude);
|
|
159
|
-
suggestedActions.push(
|
|
160
|
-
`include was set to [${defaultInclude.map((type) => `'${type}'`).join(", ")}]`
|
|
161
|
-
);
|
|
162
|
-
} else if (hasAppDir && !strictRouteTypes && Array.isArray(userTsConfig.include)) {
|
|
163
|
-
for (const type of includeTypes(userTsConfig, nextTypes, [])) {
|
|
164
|
-
suggestedActions.push(`include was updated to add '${type}'`);
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
if (hasAppDir) {
|
|
168
|
-
const plugins = [
|
|
169
|
-
...Array.isArray(userTsConfig.plugins) ? userTsConfig.plugins : [],
|
|
170
|
-
...Array.isArray(compilerOptions.plugins) ? compilerOptions.plugins : []
|
|
171
|
-
];
|
|
172
|
-
if (!plugins.some((plugin) => plugin?.name === "next")) {
|
|
173
|
-
if (!Array.isArray(compilerOptions.plugins)) compilerOptions.plugins = [];
|
|
174
|
-
compilerOptions.plugins.push({ name: "next" });
|
|
175
|
-
suggestedActions.push(`plugins was updated to add { name: 'next' }`);
|
|
176
|
-
}
|
|
177
|
-
if (hasPagesDir && !compilerOptions.strict && !("strictNullChecks" in compilerOptions)) {
|
|
178
|
-
compilerOptions.strictNullChecks = true;
|
|
179
|
-
suggestedActions.push("strictNullChecks was set to true");
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
if (!("exclude" in userTsConfig)) {
|
|
183
|
-
userTsConfig.exclude = ["node_modules"];
|
|
184
|
-
suggestedActions.push(`exclude was set to ['node_modules']`);
|
|
185
|
-
}
|
|
186
|
-
if (suggestedActions.length === 0 && requiredActions.length === 0) return;
|
|
187
|
-
await writeFileAtomic(tsConfigPath, `${JSON.stringify(userTsConfig, null, 2)}
|
|
188
|
-
`, tempDirectory);
|
|
189
|
-
if (isFirstTimeSetup) {
|
|
190
|
-
console.log(
|
|
191
|
-
"\nWe detected TypeScript in your project and created a tsconfig.json file for you."
|
|
192
|
-
);
|
|
193
|
-
return;
|
|
194
|
-
}
|
|
195
|
-
const lines = [
|
|
196
|
-
"",
|
|
197
|
-
`We detected TypeScript in your project and reconfigured your tsconfig.json file for you.${compilerOptions.strict ? "" : " Strict-mode is set to false by default."}`
|
|
198
|
-
];
|
|
199
|
-
if (suggestedActions.length > 0) {
|
|
200
|
-
lines.push(
|
|
201
|
-
`The following suggested values were added to your tsconfig.json. These values can be changed to fit your project's needs:
|
|
202
|
-
`,
|
|
203
|
-
...suggestedActions.map((action) => ` - ${action}`),
|
|
204
|
-
""
|
|
205
|
-
);
|
|
206
|
-
}
|
|
207
|
-
if (requiredActions.length > 0) {
|
|
208
|
-
lines.push(
|
|
209
|
-
`The following mandatory changes were made to your tsconfig.json:
|
|
210
|
-
`,
|
|
211
|
-
...requiredActions.map((action) => ` - ${action}`),
|
|
212
|
-
""
|
|
213
|
-
);
|
|
214
|
-
}
|
|
215
|
-
console.log(lines.join("\n"));
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
export {
|
|
219
|
-
writeTsconfigDefaults
|
|
220
|
-
};
|
|
@@ -1,72 +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
|
-
|
|
6
|
-
// ../node_modules/.bun/@wular+pnext@0.1.5+62547eec5a2188e3/node_modules/@wular/pnext/src/routing/request-environment.ts
|
|
7
|
-
var current;
|
|
8
|
-
function setRequestRuntime(runtime) {
|
|
9
|
-
current = runtime;
|
|
10
|
-
}
|
|
11
|
-
function getRequestRuntime() {
|
|
12
|
-
return current;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
// ../node_modules/.bun/@wular+pnext@0.1.5+62547eec5a2188e3/node_modules/@wular/pnext/src/api/navigation.ts
|
|
16
|
-
var notFoundDigest = "PNEXT_NOT_FOUND";
|
|
17
|
-
var redirectDigest = "PNEXT_REDIRECT";
|
|
18
|
-
var forbiddenDigest = "PNEXT_FORBIDDEN";
|
|
19
|
-
var unauthorizedDigest = "PNEXT_UNAUTHORIZED";
|
|
20
|
-
var nextNotFoundDigest = "NEXT_HTTP_ERROR_FALLBACK;404";
|
|
21
|
-
var nextForbiddenDigest = "NEXT_HTTP_ERROR_FALLBACK;403";
|
|
22
|
-
var nextUnauthorizedDigest = "NEXT_HTTP_ERROR_FALLBACK;401";
|
|
23
|
-
var PNextNotFoundError = class extends Error {
|
|
24
|
-
constructor() {
|
|
25
|
-
super("not found");
|
|
26
|
-
this.digest = notFoundDigest;
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
var PNextForbiddenError = class extends Error {
|
|
30
|
-
constructor() {
|
|
31
|
-
super("forbidden");
|
|
32
|
-
this.digest = forbiddenDigest;
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
var PNextUnauthorizedError = class extends Error {
|
|
36
|
-
constructor() {
|
|
37
|
-
super("unauthorized");
|
|
38
|
-
this.digest = unauthorizedDigest;
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
var PNextRedirectError = class extends Error {
|
|
42
|
-
constructor(location, status = 307) {
|
|
43
|
-
super(`redirect to ${location}`);
|
|
44
|
-
this.location = location;
|
|
45
|
-
this.status = status;
|
|
46
|
-
this.digest = redirectDigest;
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
function isNotFoundError(error) {
|
|
50
|
-
return error instanceof PNextNotFoundError || errorDigest(error) === notFoundDigest || errorDigest(error) === nextNotFoundDigest;
|
|
51
|
-
}
|
|
52
|
-
function isRedirectError(error) {
|
|
53
|
-
return error instanceof PNextRedirectError || errorDigest(error) === redirectDigest;
|
|
54
|
-
}
|
|
55
|
-
function isForbiddenError(error) {
|
|
56
|
-
return error instanceof PNextForbiddenError || errorDigest(error) === forbiddenDigest || errorDigest(error) === nextForbiddenDigest;
|
|
57
|
-
}
|
|
58
|
-
function isUnauthorizedError(error) {
|
|
59
|
-
return error instanceof PNextUnauthorizedError || errorDigest(error) === unauthorizedDigest || errorDigest(error) === nextUnauthorizedDigest;
|
|
60
|
-
}
|
|
61
|
-
function errorDigest(error) {
|
|
62
|
-
return typeof error === "object" && error !== null && "digest" in error ? error.digest : void 0;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export {
|
|
66
|
-
setRequestRuntime,
|
|
67
|
-
getRequestRuntime,
|
|
68
|
-
isNotFoundError,
|
|
69
|
-
isRedirectError,
|
|
70
|
-
isForbiddenError,
|
|
71
|
-
isUnauthorizedError
|
|
72
|
-
};
|
|
@@ -1,231 +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
|
-
} from "./chunk-2ICEVELW.js";
|
|
8
|
-
|
|
9
|
-
// ../node_modules/.bun/@wular+pnext@0.1.5+62547eec5a2188e3/node_modules/@wular/pnext/src/compat/bundler/config.ts
|
|
10
|
-
var PREDEFINED_SERVER_EXTERNAL_PACKAGES = [
|
|
11
|
-
"sharp",
|
|
12
|
-
"sqlite3",
|
|
13
|
-
"better-sqlite3",
|
|
14
|
-
"canvas",
|
|
15
|
-
"@node-rs/argon2",
|
|
16
|
-
"@node-rs/bcrypt"
|
|
17
|
-
];
|
|
18
|
-
function stringArray(value) {
|
|
19
|
-
return Array.isArray(value) ? value.filter((item) => typeof item === "string") : [];
|
|
20
|
-
}
|
|
21
|
-
function serverExternalPackages() {
|
|
22
|
-
const config = getNextConfig();
|
|
23
|
-
return /* @__PURE__ */ new Set([
|
|
24
|
-
...PREDEFINED_SERVER_EXTERNAL_PACKAGES,
|
|
25
|
-
...stringArray(config.serverExternalPackages)
|
|
26
|
-
]);
|
|
27
|
-
}
|
|
28
|
-
function deploymentId() {
|
|
29
|
-
const configured = getNextConfig().deploymentId;
|
|
30
|
-
if (typeof configured === "string" && configured.length > 0) return configured;
|
|
31
|
-
const fromEnv = process.env.NEXT_DEPLOYMENT_ID;
|
|
32
|
-
return fromEnv && fromEnv.length > 0 ? fromEnv : void 0;
|
|
33
|
-
}
|
|
34
|
-
function publicRuntimeConfig() {
|
|
35
|
-
const config = getNextConfig().publicRuntimeConfig;
|
|
36
|
-
return config && typeof config === "object" ? config : {};
|
|
37
|
-
}
|
|
38
|
-
function transpilePackages() {
|
|
39
|
-
return stringArray(getNextConfig().transpilePackages);
|
|
40
|
-
}
|
|
41
|
-
function modularizeImports() {
|
|
42
|
-
const raw = getNextConfig().modularizeImports;
|
|
43
|
-
if (!raw || typeof raw !== "object") return {};
|
|
44
|
-
const out = {};
|
|
45
|
-
for (const [specifier, value] of Object.entries(raw)) {
|
|
46
|
-
if (value && typeof value === "object" && typeof value.transform === "string") {
|
|
47
|
-
const rule = value;
|
|
48
|
-
out[specifier] = {
|
|
49
|
-
transform: rule.transform,
|
|
50
|
-
skipDefaultConversion: Boolean(rule.skipDefaultConversion)
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
return out;
|
|
55
|
-
}
|
|
56
|
-
function optimizePackageImports() {
|
|
57
|
-
const experimental = getNextConfig().experimental;
|
|
58
|
-
return stringArray(experimental?.optimizePackageImports);
|
|
59
|
-
}
|
|
60
|
-
function relayCompilerConfig() {
|
|
61
|
-
const compiler = getNextConfig().compiler;
|
|
62
|
-
const relay = compiler?.relay;
|
|
63
|
-
if (!relay || typeof relay !== "object" || typeof relay.src !== "string") return void 0;
|
|
64
|
-
const language = relay.language;
|
|
65
|
-
return {
|
|
66
|
-
src: relay.src,
|
|
67
|
-
artifactDirectory: typeof relay.artifactDirectory === "string" ? relay.artifactDirectory : void 0,
|
|
68
|
-
language: language === "typescript" || language === "flow" || language === "javascript" ? language : "javascript"
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
function esmExternals() {
|
|
72
|
-
const experimental = getNextConfig().experimental;
|
|
73
|
-
return experimental?.esmExternals ?? true;
|
|
74
|
-
}
|
|
75
|
-
function resolveExtensions() {
|
|
76
|
-
const config = getNextConfig();
|
|
77
|
-
const turbopack = config.turbopack;
|
|
78
|
-
const experimental = config.experimental;
|
|
79
|
-
for (const value of [
|
|
80
|
-
config.resolveExtensions,
|
|
81
|
-
turbopack?.resolveExtensions,
|
|
82
|
-
experimental?.turbo?.resolveExtensions
|
|
83
|
-
]) {
|
|
84
|
-
const list = stringArray(value);
|
|
85
|
-
if (list.length > 0) return list;
|
|
86
|
-
}
|
|
87
|
-
return void 0;
|
|
88
|
-
}
|
|
89
|
-
function tsconfigPath() {
|
|
90
|
-
const ts = getNextConfig().typescript;
|
|
91
|
-
return typeof ts?.tsconfigPath === "string" ? ts.tsconfigPath : void 0;
|
|
92
|
-
}
|
|
93
|
-
function normalizeDefineMap(value) {
|
|
94
|
-
if (!value || typeof value !== "object") return {};
|
|
95
|
-
const out = {};
|
|
96
|
-
for (const [key, raw] of Object.entries(value)) {
|
|
97
|
-
if (typeof raw === "string") out[key] = JSON.stringify(raw);
|
|
98
|
-
else if (typeof raw === "number" || typeof raw === "boolean") out[key] = String(raw);
|
|
99
|
-
}
|
|
100
|
-
return out;
|
|
101
|
-
}
|
|
102
|
-
function compilerDefines() {
|
|
103
|
-
const compiler = getNextConfig().compiler;
|
|
104
|
-
return {
|
|
105
|
-
define: normalizeDefineMap(compiler?.define),
|
|
106
|
-
defineServer: normalizeDefineMap(compiler?.defineServer)
|
|
107
|
-
};
|
|
108
|
-
}
|
|
109
|
-
var CONSOLE_METHODS = [
|
|
110
|
-
"assert",
|
|
111
|
-
"clear",
|
|
112
|
-
"count",
|
|
113
|
-
"countReset",
|
|
114
|
-
"debug",
|
|
115
|
-
"dir",
|
|
116
|
-
"dirxml",
|
|
117
|
-
"error",
|
|
118
|
-
"group",
|
|
119
|
-
"groupCollapsed",
|
|
120
|
-
"groupEnd",
|
|
121
|
-
"info",
|
|
122
|
-
"log",
|
|
123
|
-
"table",
|
|
124
|
-
"time",
|
|
125
|
-
"timeEnd",
|
|
126
|
-
"timeLog",
|
|
127
|
-
"trace",
|
|
128
|
-
"warn"
|
|
129
|
-
];
|
|
130
|
-
function removeConsoleTargets() {
|
|
131
|
-
const compiler = getNextConfig().compiler;
|
|
132
|
-
const removeConsole = compiler?.removeConsole;
|
|
133
|
-
if (!removeConsole) return void 0;
|
|
134
|
-
const exclude = new Set(
|
|
135
|
-
typeof removeConsole === "object" ? stringArray(removeConsole.exclude) : []
|
|
136
|
-
);
|
|
137
|
-
return CONSOLE_METHODS.filter((method) => !exclude.has(method)).map((method) => `console.${method}`);
|
|
138
|
-
}
|
|
139
|
-
function cacheComponentsEnabled() {
|
|
140
|
-
const config = getNextConfig();
|
|
141
|
-
const experimental = config.experimental;
|
|
142
|
-
return Boolean(config.cacheComponents ?? experimental?.cacheComponents);
|
|
143
|
-
}
|
|
144
|
-
function swcEnvUsageMode() {
|
|
145
|
-
const experimental = getNextConfig().experimental;
|
|
146
|
-
const mode = experimental?.swcEnvOptions?.mode;
|
|
147
|
-
return mode === "usage" || mode === "entry" ? mode : void 0;
|
|
148
|
-
}
|
|
149
|
-
function reactCompilerEnabled() {
|
|
150
|
-
const config = getNextConfig();
|
|
151
|
-
const experimental = config.experimental;
|
|
152
|
-
return Boolean(config.reactCompiler ?? experimental?.reactCompiler);
|
|
153
|
-
}
|
|
154
|
-
function turbopackLoaderRules() {
|
|
155
|
-
const config = getNextConfig();
|
|
156
|
-
const turbopack = config.turbopack;
|
|
157
|
-
const rules = turbopack?.rules;
|
|
158
|
-
if (!rules || typeof rules !== "object") return [];
|
|
159
|
-
const out = [];
|
|
160
|
-
for (const [glob, raw] of Object.entries(rules)) collectLoaderRuleEntries(glob, raw, out);
|
|
161
|
-
return out;
|
|
162
|
-
}
|
|
163
|
-
function collectLoaderRuleEntries(glob, raw, out) {
|
|
164
|
-
if (Array.isArray(raw)) {
|
|
165
|
-
if (raw.every((item) => typeof item === "string")) {
|
|
166
|
-
const loaders = stringArray(raw);
|
|
167
|
-
if (loaders.length > 0) out.push({ glob, loaders });
|
|
168
|
-
return;
|
|
169
|
-
}
|
|
170
|
-
for (const item of raw) {
|
|
171
|
-
if (item && typeof item === "object")
|
|
172
|
-
pushLoaderRuleObject(glob, item, out);
|
|
173
|
-
}
|
|
174
|
-
return;
|
|
175
|
-
}
|
|
176
|
-
if (raw && typeof raw === "object")
|
|
177
|
-
pushLoaderRuleObject(glob, raw, out);
|
|
178
|
-
}
|
|
179
|
-
function pushLoaderRuleObject(glob, entry, out) {
|
|
180
|
-
const loaders = stringArray(entry.loaders);
|
|
181
|
-
const as = typeof entry.as === "string" ? entry.as : void 0;
|
|
182
|
-
const condition = parseRuleCondition(entry.condition);
|
|
183
|
-
if (loaders.length > 0) {
|
|
184
|
-
out.push({ glob, loaders, as, ...condition ? { condition } : {} });
|
|
185
|
-
return;
|
|
186
|
-
}
|
|
187
|
-
const assetType = parseAssetRuleType(entry.type);
|
|
188
|
-
if (assetType) out.push({ glob, loaders: [], as, assetType });
|
|
189
|
-
}
|
|
190
|
-
function parseRuleCondition(value) {
|
|
191
|
-
if (!value || typeof value !== "object") return void 0;
|
|
192
|
-
const query = value.query;
|
|
193
|
-
if (typeof query === "string" || query instanceof RegExp) return { query };
|
|
194
|
-
return void 0;
|
|
195
|
-
}
|
|
196
|
-
function parseAssetRuleType(value) {
|
|
197
|
-
if (value === "asset" || value === "asset/resource") return "resource";
|
|
198
|
-
if (value === "bytes") return "bytes";
|
|
199
|
-
if (value === "asset/source") return "source";
|
|
200
|
-
return void 0;
|
|
201
|
-
}
|
|
202
|
-
function turbopackResolveAlias() {
|
|
203
|
-
const turbopack = getNextConfig().turbopack;
|
|
204
|
-
const alias = turbopack?.resolveAlias;
|
|
205
|
-
if (!alias || typeof alias !== "object") return {};
|
|
206
|
-
const out = {};
|
|
207
|
-
for (const [key, value] of Object.entries(alias)) {
|
|
208
|
-
if (typeof value === "string") out[key] = value;
|
|
209
|
-
}
|
|
210
|
-
return out;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
export {
|
|
214
|
-
serverExternalPackages,
|
|
215
|
-
deploymentId,
|
|
216
|
-
publicRuntimeConfig,
|
|
217
|
-
transpilePackages,
|
|
218
|
-
modularizeImports,
|
|
219
|
-
optimizePackageImports,
|
|
220
|
-
relayCompilerConfig,
|
|
221
|
-
esmExternals,
|
|
222
|
-
resolveExtensions,
|
|
223
|
-
tsconfigPath,
|
|
224
|
-
compilerDefines,
|
|
225
|
-
removeConsoleTargets,
|
|
226
|
-
cacheComponentsEnabled,
|
|
227
|
-
swcEnvUsageMode,
|
|
228
|
-
reactCompilerEnabled,
|
|
229
|
-
turbopackLoaderRules,
|
|
230
|
-
turbopackResolveAlias
|
|
231
|
-
};
|