@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,18 +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
|
-
|
|
4
|
-
// ../node_modules/.bun/@wular+pnext@0.1.5+62547eec5a2188e3/node_modules/@wular/pnext/src/utils/ansi.ts
|
|
5
|
-
function color(open, close) {
|
|
6
|
-
return (value) => process.stdout.isTTY && !process.env.NO_COLOR ? `${open}${value}${close}` : value;
|
|
7
|
-
}
|
|
8
|
-
var dim = color("\x1B[38;5;244m", "\x1B[39m");
|
|
9
|
-
var bold = color("\x1B[1m", "\x1B[22m");
|
|
10
|
-
var cyan = color("\x1B[36m", "\x1B[39m");
|
|
11
|
-
var green = color("\x1B[32m", "\x1B[39m");
|
|
12
|
-
|
|
13
|
-
export {
|
|
14
|
-
dim,
|
|
15
|
-
bold,
|
|
16
|
-
cyan,
|
|
17
|
-
green
|
|
18
|
-
};
|
|
@@ -1,436 +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
|
-
isPrerendering,
|
|
5
|
-
isRuntimePrefetchPrerender,
|
|
6
|
-
setCacheComponents
|
|
7
|
-
} from "./chunk-5RDEILQB.js";
|
|
8
|
-
import {
|
|
9
|
-
findWorkspaceRoot
|
|
10
|
-
} from "./chunk-4P5CMIYT.js";
|
|
11
|
-
|
|
12
|
-
// ../node_modules/.bun/@wular+pnext@0.1.5+62547eec5a2188e3/node_modules/@wular/pnext/src/request/context.ts
|
|
13
|
-
import { AsyncLocalStorage } from "node:async_hooks";
|
|
14
|
-
var WORK_UNIT_STORAGE = Symbol.for("pnext.workUnitStorage");
|
|
15
|
-
var workUnitStorage = globalThis[WORK_UNIT_STORAGE] ??= new AsyncLocalStorage();
|
|
16
|
-
function runWithWorkUnit(phase, callback) {
|
|
17
|
-
const unit = { phase, afterTasks: [], flushed: false };
|
|
18
|
-
return workUnitStorage.run(unit, callback);
|
|
19
|
-
}
|
|
20
|
-
function getWorkUnit() {
|
|
21
|
-
return workUnitStorage.getStore();
|
|
22
|
-
}
|
|
23
|
-
function setPhase(phase) {
|
|
24
|
-
const unit = workUnitStorage.getStore();
|
|
25
|
-
if (unit) unit.phase = phase;
|
|
26
|
-
}
|
|
27
|
-
function setWorkUnitRoute(routeKind, routeMode, responseHints) {
|
|
28
|
-
const unit = workUnitStorage.getStore();
|
|
29
|
-
if (!unit) return;
|
|
30
|
-
unit.routeKind = routeKind;
|
|
31
|
-
if (routeMode) unit.routeMode = routeMode;
|
|
32
|
-
if (responseHints) unit.responseHints = responseHints;
|
|
33
|
-
}
|
|
34
|
-
function queueAfterTask(task) {
|
|
35
|
-
const unit = workUnitStorage.getStore();
|
|
36
|
-
if (!unit) return false;
|
|
37
|
-
unit.afterTasks.push(task);
|
|
38
|
-
return true;
|
|
39
|
-
}
|
|
40
|
-
function flushWorkUnit(unit = workUnitStorage.getStore()) {
|
|
41
|
-
if (!unit || unit.flushed) return;
|
|
42
|
-
unit.flushed = true;
|
|
43
|
-
if (unit.afterTasks.length === 0) return;
|
|
44
|
-
const afterUnit = { ...unit, phase: "after" };
|
|
45
|
-
const flushing = workUnitStorage.run(afterUnit, async () => {
|
|
46
|
-
while (afterUnit.afterTasks.length) {
|
|
47
|
-
const tasks = afterUnit.afterTasks;
|
|
48
|
-
afterUnit.afterTasks = [];
|
|
49
|
-
for (const task of tasks) {
|
|
50
|
-
try {
|
|
51
|
-
await task();
|
|
52
|
-
} catch (error) {
|
|
53
|
-
console.error("after() task failed:", error);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
pendingFlushes.add(flushing);
|
|
59
|
-
void flushing.finally(() => pendingFlushes.delete(flushing));
|
|
60
|
-
}
|
|
61
|
-
var pendingFlushes = /* @__PURE__ */ new Set();
|
|
62
|
-
async function drainWorkUnits(timeoutMs = 1e4) {
|
|
63
|
-
if (pendingFlushes.size === 0) return;
|
|
64
|
-
await Promise.race([
|
|
65
|
-
Promise.allSettled([...pendingFlushes]),
|
|
66
|
-
new Promise((resolve) => setTimeout(resolve, timeoutMs))
|
|
67
|
-
]);
|
|
68
|
-
}
|
|
69
|
-
function flushWorkUnitOnClose(response, unit, signal) {
|
|
70
|
-
if (!unit) return response;
|
|
71
|
-
if (!response.body) {
|
|
72
|
-
flushWorkUnit(unit);
|
|
73
|
-
return response;
|
|
74
|
-
}
|
|
75
|
-
if (response.headers.has("content-length")) {
|
|
76
|
-
flushWorkUnit(unit);
|
|
77
|
-
return response;
|
|
78
|
-
}
|
|
79
|
-
const reader = response.body.getReader();
|
|
80
|
-
const settle = () => {
|
|
81
|
-
signal?.removeEventListener("abort", settle);
|
|
82
|
-
flushWorkUnit(unit);
|
|
83
|
-
};
|
|
84
|
-
if (signal?.aborted) settle();
|
|
85
|
-
else signal?.addEventListener("abort", settle, { once: true });
|
|
86
|
-
const observed = new ReadableStream({
|
|
87
|
-
async pull(controller) {
|
|
88
|
-
try {
|
|
89
|
-
const chunk = await reader.read();
|
|
90
|
-
if (chunk.done) {
|
|
91
|
-
settle();
|
|
92
|
-
controller.close();
|
|
93
|
-
} else {
|
|
94
|
-
controller.enqueue(chunk.value);
|
|
95
|
-
}
|
|
96
|
-
} catch (error) {
|
|
97
|
-
settle();
|
|
98
|
-
controller.error(error);
|
|
99
|
-
}
|
|
100
|
-
},
|
|
101
|
-
cancel(reason) {
|
|
102
|
-
settle();
|
|
103
|
-
return reader.cancel(reason);
|
|
104
|
-
}
|
|
105
|
-
});
|
|
106
|
-
return new Response(observed, {
|
|
107
|
-
status: response.status,
|
|
108
|
-
statusText: response.statusText,
|
|
109
|
-
headers: response.headers
|
|
110
|
-
});
|
|
111
|
-
}
|
|
112
|
-
var REQUEST_STORAGE = Symbol.for("pnext.requestStorage");
|
|
113
|
-
var requestStorage = globalThis[REQUEST_STORAGE] ??= new AsyncLocalStorage();
|
|
114
|
-
function currentRequest() {
|
|
115
|
-
return requestStorage.getStore()?.request;
|
|
116
|
-
}
|
|
117
|
-
var WORK_UNIT_EXTERNAL = Symbol.for("pnext.workUnitExternal");
|
|
118
|
-
function workUnitExternalStore() {
|
|
119
|
-
const request = currentRequest();
|
|
120
|
-
const type = isRuntimePrefetchPrerender() ? "prerender-runtime" : isPrerendering() || !request ? "prerender" : "request";
|
|
121
|
-
return {
|
|
122
|
-
type,
|
|
123
|
-
cookies: request?.cookies,
|
|
124
|
-
headers: request?.headers ?? new Headers()
|
|
125
|
-
};
|
|
126
|
-
}
|
|
127
|
-
globalThis[WORK_UNIT_EXTERNAL] = workUnitExternalStore;
|
|
128
|
-
function runWithRequest(request, callback, params = {}, extras = {}) {
|
|
129
|
-
if (!request) return callback();
|
|
130
|
-
const scope = {
|
|
131
|
-
request,
|
|
132
|
-
params,
|
|
133
|
-
afterCallbacks: [],
|
|
134
|
-
responseHeaders: extras.responseHeaders
|
|
135
|
-
};
|
|
136
|
-
const result = requestStorage.run(scope, callback);
|
|
137
|
-
if (isThenable(result)) {
|
|
138
|
-
return result.then(
|
|
139
|
-
(value) => {
|
|
140
|
-
void flushAfterCallbacks(scope);
|
|
141
|
-
return value;
|
|
142
|
-
},
|
|
143
|
-
(error) => {
|
|
144
|
-
void flushAfterCallbacks(scope);
|
|
145
|
-
throw error;
|
|
146
|
-
}
|
|
147
|
-
);
|
|
148
|
-
}
|
|
149
|
-
void flushAfterCallbacks(scope);
|
|
150
|
-
return result;
|
|
151
|
-
}
|
|
152
|
-
async function flushAfterCallbacks(scope) {
|
|
153
|
-
while (scope.afterCallbacks?.length) {
|
|
154
|
-
const callbacks = scope.afterCallbacks;
|
|
155
|
-
scope.afterCallbacks = [];
|
|
156
|
-
for (const callback of callbacks) {
|
|
157
|
-
try {
|
|
158
|
-
await requestStorage.run(scope, callback);
|
|
159
|
-
} catch (error) {
|
|
160
|
-
console.error("after() callback failed:", error);
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
function isThenable(value) {
|
|
166
|
-
return typeof value?.then === "function";
|
|
167
|
-
}
|
|
168
|
-
var BAILOUT_PROBE = Symbol.for("pnext.dynamicBailoutProbe");
|
|
169
|
-
var LEGACY_REQUEST_APIS = Symbol.for("pnext.legacyRequestAPIs");
|
|
170
|
-
function setLegacyRequestAPIs(enabled) {
|
|
171
|
-
;
|
|
172
|
-
globalThis[LEGACY_REQUEST_APIS] = enabled;
|
|
173
|
-
}
|
|
174
|
-
function legacyRequestAPIs() {
|
|
175
|
-
return globalThis[LEGACY_REQUEST_APIS] === true;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
// ../node_modules/.bun/@wular+pnext@0.1.5+62547eec5a2188e3/node_modules/@wular/pnext/src/config.ts
|
|
179
|
-
import { existsSync, realpathSync } from "node:fs";
|
|
180
|
-
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
181
|
-
import path2 from "node:path";
|
|
182
|
-
|
|
183
|
-
// ../node_modules/.bun/@wular+pnext@0.1.5+62547eec5a2188e3/node_modules/@wular/pnext/src/env.ts
|
|
184
|
-
import { readFile, stat } from "node:fs/promises";
|
|
185
|
-
import path from "node:path";
|
|
186
|
-
import { parse } from "/Users/muzam/Code/workshop/coder-workspace/node_modules/.bun/dotenv@16.6.1/node_modules/dotenv/lib/main.js";
|
|
187
|
-
async function loadEnv(root, options = {}) {
|
|
188
|
-
const nodeEnvKey = "NODE_ENV";
|
|
189
|
-
const env = process.env;
|
|
190
|
-
if (!env[nodeEnvKey]) env[nodeEnvKey] = options.dev ? "development" : "production";
|
|
191
|
-
const mode = process.env[nodeEnvKey] ?? "production";
|
|
192
|
-
const loadedEnvFiles = [];
|
|
193
|
-
for (const file of envFilesForMode(mode)) {
|
|
194
|
-
const filePath = path.join(root, file);
|
|
195
|
-
if (!await isEnvFile(filePath)) continue;
|
|
196
|
-
const parsed = parse(await readFile(filePath, "utf8"));
|
|
197
|
-
const env2 = expandEnv(parsed);
|
|
198
|
-
for (const [key, value] of Object.entries(env2)) {
|
|
199
|
-
if (process.env[key] === void 0) process.env[key] = value;
|
|
200
|
-
}
|
|
201
|
-
loadedEnvFiles.push({ path: file, env: env2 });
|
|
202
|
-
}
|
|
203
|
-
return { mode, loadedEnvFiles };
|
|
204
|
-
}
|
|
205
|
-
function envFilesForMode(mode) {
|
|
206
|
-
return [
|
|
207
|
-
`.env.${mode}.local`,
|
|
208
|
-
mode === "test" ? void 0 : ".env.local",
|
|
209
|
-
`.env.${mode}`,
|
|
210
|
-
".env"
|
|
211
|
-
].filter((file) => Boolean(file));
|
|
212
|
-
}
|
|
213
|
-
async function isEnvFile(file) {
|
|
214
|
-
try {
|
|
215
|
-
const info = await stat(file);
|
|
216
|
-
return info.isFile();
|
|
217
|
-
} catch (error) {
|
|
218
|
-
if (error.code === "ENOENT") return false;
|
|
219
|
-
throw error;
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
function expandEnv(parsed) {
|
|
223
|
-
const env = {};
|
|
224
|
-
for (const [key, value] of Object.entries(parsed)) {
|
|
225
|
-
env[key] = expandValue(value, { ...parsed, ...env });
|
|
226
|
-
}
|
|
227
|
-
return env;
|
|
228
|
-
}
|
|
229
|
-
function expandValue(value, parsed) {
|
|
230
|
-
let result = value;
|
|
231
|
-
for (let index = searchLastEnvReference(result), attempts = 0; index !== -1 && attempts < 100; index = searchLastEnvReference(result), attempts += 1) {
|
|
232
|
-
const match = result.slice(index).match(/^\$({?)([\w]+)(?::-([^}]*))?}?/);
|
|
233
|
-
if (!match) break;
|
|
234
|
-
const token = match[0] ?? "";
|
|
235
|
-
const braced = match[1] ?? "";
|
|
236
|
-
const key = match[2] ?? "";
|
|
237
|
-
const fallback = match[3] ?? "";
|
|
238
|
-
const hasClosingBrace = braced ? token.endsWith("}") : true;
|
|
239
|
-
if (!hasClosingBrace) break;
|
|
240
|
-
const replacement = process.env[key] || fallback || parsed[key] || "";
|
|
241
|
-
result = `${result.slice(0, index)}${replacement}${result.slice(index + token.length)}`;
|
|
242
|
-
}
|
|
243
|
-
return result.replace(/\\\$/g, "$");
|
|
244
|
-
}
|
|
245
|
-
function searchLastEnvReference(value) {
|
|
246
|
-
const matches = [...value.matchAll(/(?<!\\)\$/g)];
|
|
247
|
-
return matches.length > 0 ? matches.at(-1)?.index ?? -1 : -1;
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
// ../node_modules/.bun/@wular+pnext@0.1.5+62547eec5a2188e3/node_modules/@wular/pnext/src/types.ts
|
|
251
|
-
var PREFETCH_MODES = ["visible", "intent", "load", false];
|
|
252
|
-
|
|
253
|
-
// ../node_modules/.bun/@wular+pnext@0.1.5+62547eec5a2188e3/node_modules/@wular/pnext/src/config.ts
|
|
254
|
-
var DEFAULT_OUT_DIR = ".pnext";
|
|
255
|
-
var defaultConfig = {
|
|
256
|
-
outDir: DEFAULT_OUT_DIR,
|
|
257
|
-
basePath: ""
|
|
258
|
-
};
|
|
259
|
-
var configSource;
|
|
260
|
-
function registerConfigSource(source) {
|
|
261
|
-
configSource = source;
|
|
262
|
-
}
|
|
263
|
-
async function resolveConfigSource(config, root, options) {
|
|
264
|
-
if (!config.compat?.next) return {};
|
|
265
|
-
if (!configSource) {
|
|
266
|
-
await import("./config-UREY7XJT.js").then((module) => module.registerConfigSource());
|
|
267
|
-
}
|
|
268
|
-
if (!configSource) return {};
|
|
269
|
-
return configSource(root, options);
|
|
270
|
-
}
|
|
271
|
-
async function loadConfig(rootInput = process.cwd(), options = {}) {
|
|
272
|
-
const root = canonicalRoot(path2.resolve(rootInput));
|
|
273
|
-
await loadEnv(root, options);
|
|
274
|
-
const configPath = path2.join(root, "pnext.config.ts");
|
|
275
|
-
const loadedConfig = existsSync(configPath) ? await import(pathToFileHref(configPath)) : {};
|
|
276
|
-
const config = {
|
|
277
|
-
...loadedConfig.default ?? {},
|
|
278
|
-
// eslint-disable-next-line turbo/no-undeclared-env-vars
|
|
279
|
-
...process.env.PNEXT_COMPAT === "next" ? {
|
|
280
|
-
compat: {
|
|
281
|
-
...loadedConfig.default?.compat ?? {},
|
|
282
|
-
// An object `next` already enables compat — keep its options rather than flattening to true.
|
|
283
|
-
next: loadedConfig.default?.compat?.next || true
|
|
284
|
-
}
|
|
285
|
-
} : {}
|
|
286
|
-
};
|
|
287
|
-
validateConfig(config);
|
|
288
|
-
setLegacyRequestAPIs(
|
|
289
|
-
typeof config.compat?.next === "object" && config.compat.next.legacyRequestAPIs === true
|
|
290
|
-
);
|
|
291
|
-
setCacheComponents(false);
|
|
292
|
-
const sourceOverrides = stripUndefined(await resolveConfigSource(config, root, options));
|
|
293
|
-
const merged = { ...defaultConfig, ...config, ...sourceOverrides };
|
|
294
|
-
const appPath = await resolveAppPath(root, config);
|
|
295
|
-
const outRootPath = path2.resolve(root, merged.outDir);
|
|
296
|
-
const workspaceRoot = canonicalRoot(
|
|
297
|
-
config.workspaceRoot ? path2.resolve(root, config.workspaceRoot) : findWorkspaceRoot(root) ?? root
|
|
298
|
-
);
|
|
299
|
-
return {
|
|
300
|
-
...config,
|
|
301
|
-
trailingSlash: merged.trailingSlash ?? config.trailingSlash,
|
|
302
|
-
productionBrowserSourceMaps: merged.productionBrowserSourceMaps ?? config.productionBrowserSourceMaps,
|
|
303
|
-
skipTrailingSlashRedirect: merged.skipTrailingSlashRedirect ?? config.skipTrailingSlashRedirect,
|
|
304
|
-
appDir: path2.relative(root, appPath),
|
|
305
|
-
publicDir: "public",
|
|
306
|
-
outDir: merged.outDir,
|
|
307
|
-
basePath: merged.basePath,
|
|
308
|
-
// Assets are addressed under basePath (the server 404s outside it), so an
|
|
309
|
-
// app that sets basePath without an explicit assetPrefix serves assets at
|
|
310
|
-
// `${basePath}/assets/...` — Next's default (assetPrefix falls back to
|
|
311
|
-
// basePath).
|
|
312
|
-
assetPrefix: merged.assetPrefix ?? merged.basePath,
|
|
313
|
-
root,
|
|
314
|
-
workspaceRoot,
|
|
315
|
-
appPath,
|
|
316
|
-
publicPath: path2.resolve(root, "public"),
|
|
317
|
-
// Dev owns `<outRoot>/dev` exclusively so a concurrent `pnext build` — which
|
|
318
|
-
// wipes its own outputs under the out root — can never pull a running dev
|
|
319
|
-
// server's cache, manifest or assets out from under it.
|
|
320
|
-
outPath: options.dev ? path2.join(outRootPath, devOutSegment) : outRootPath,
|
|
321
|
-
outRootPath,
|
|
322
|
-
typesPath: path2.join(outRootPath, "types"),
|
|
323
|
-
checksPath: path2.join(outRootPath, "typecheck", "checks")
|
|
324
|
-
};
|
|
325
|
-
}
|
|
326
|
-
var enumFields = [
|
|
327
|
-
["prefetch", PREFETCH_MODES]
|
|
328
|
-
];
|
|
329
|
-
function validateConfig(config) {
|
|
330
|
-
for (const [field, allowed] of enumFields) {
|
|
331
|
-
const value = config[field];
|
|
332
|
-
if (value === void 0 || allowed.includes(value)) continue;
|
|
333
|
-
const list = allowed.map((v) => typeof v === "string" ? `'${v}'` : String(v)).join(", ");
|
|
334
|
-
throw new Error(
|
|
335
|
-
`Invalid pnext config: '${field}' must be one of ${list} (received ${JSON.stringify(value)}).`
|
|
336
|
-
);
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
var devOutSegment = "dev";
|
|
340
|
-
function canonicalRoot(dir) {
|
|
341
|
-
try {
|
|
342
|
-
return realpathSync(dir);
|
|
343
|
-
} catch {
|
|
344
|
-
return dir;
|
|
345
|
-
}
|
|
346
|
-
}
|
|
347
|
-
function stripUndefined(value) {
|
|
348
|
-
return Object.fromEntries(Object.entries(value).filter(([, v]) => v !== void 0));
|
|
349
|
-
}
|
|
350
|
-
function pathToFileHref(filePath) {
|
|
351
|
-
return pathToFileURL(path2.resolve(filePath)).href;
|
|
352
|
-
}
|
|
353
|
-
function publicEnvDefines() {
|
|
354
|
-
const publicEnv = Object.fromEntries([
|
|
355
|
-
// eslint-disable-next-line turbo/no-undeclared-env-vars
|
|
356
|
-
["NODE_ENV", process.env.NODE_ENV ?? "production"],
|
|
357
|
-
...Object.entries(process.env).filter(
|
|
358
|
-
([key]) => key.startsWith("NEXT_PUBLIC_") || key.startsWith("PNEXT_PUBLIC_")
|
|
359
|
-
)
|
|
360
|
-
]);
|
|
361
|
-
return {
|
|
362
|
-
// The whole object, not just the keys that happen to be SET at build time. A browser has no
|
|
363
|
-
// `process`, so a `NEXT_PUBLIC_*` the source reads but the environment never defined would
|
|
364
|
-
// otherwise survive as a bare reference and throw ReferenceError on first evaluation - taking
|
|
365
|
-
// hydration, and every event handler on the page, down with it. Reading a missing key off this
|
|
366
|
-
// yields undefined, which is what Next inlines for one.
|
|
367
|
-
"process.env": JSON.stringify(publicEnv),
|
|
368
|
-
...Object.fromEntries(
|
|
369
|
-
Object.entries(publicEnv).map(([key, value]) => [
|
|
370
|
-
`process.env.${key}`,
|
|
371
|
-
JSON.stringify(value)
|
|
372
|
-
])
|
|
373
|
-
)
|
|
374
|
-
};
|
|
375
|
-
}
|
|
376
|
-
var frameworkRuntimeAliases;
|
|
377
|
-
function frameworkRuntimeAliasEntries() {
|
|
378
|
-
frameworkRuntimeAliases ??= {
|
|
379
|
-
preact: resolveRuntimeModule("preact"),
|
|
380
|
-
"preact/hooks": resolveRuntimeModule("preact/hooks"),
|
|
381
|
-
"preact/compat": resolveRuntimeModule("preact/compat"),
|
|
382
|
-
"preact/compat/client": resolveRuntimeModule("preact/compat/client"),
|
|
383
|
-
"preact/jsx-runtime": resolveRuntimeModule("preact/jsx-runtime"),
|
|
384
|
-
"preact/jsx-dev-runtime": resolveRuntimeModule("preact/jsx-dev-runtime"),
|
|
385
|
-
"react-compiler-runtime": resolveRuntimeModule("react-compiler-runtime")
|
|
386
|
-
};
|
|
387
|
-
return frameworkRuntimeAliases;
|
|
388
|
-
}
|
|
389
|
-
function resolveRuntimeModule(specifier) {
|
|
390
|
-
return fileURLToPath(((specifier2) => Bun.pathToFileURL(Bun.resolveSync(specifier2, "/Users/muzam/Code/workshop/coder-workspace/node_modules/.bun/@wular+pnext@0.1.5+62547eec5a2188e3/node_modules/@wular/pnext/src")).href)(specifier));
|
|
391
|
-
}
|
|
392
|
-
function pnextAliases(target) {
|
|
393
|
-
if (target !== "client") return {};
|
|
394
|
-
return {
|
|
395
|
-
"@wular/pnext/cache": path2.resolve("/Users/muzam/Code/workshop/coder-workspace/node_modules/.bun/@wular+pnext@0.1.5+62547eec5a2188e3/node_modules/@wular/pnext/src", "api/client-cache.ts")
|
|
396
|
-
};
|
|
397
|
-
}
|
|
398
|
-
async function resolveAppPath(root, config) {
|
|
399
|
-
const rootApp = path2.join(root, "app");
|
|
400
|
-
if (config.compat?.next) {
|
|
401
|
-
const pagesPath = path2.join(root, "pages");
|
|
402
|
-
const hasPages = existsSync(pagesPath);
|
|
403
|
-
if (existsSync(rootApp)) {
|
|
404
|
-
if (hasPages) {
|
|
405
|
-
const { materializePagesApp: materializePagesApp2 } = await import("./router-JNKHLBCZ.js");
|
|
406
|
-
const hybrid = await materializePagesApp2(root);
|
|
407
|
-
if (hybrid) return hybrid;
|
|
408
|
-
}
|
|
409
|
-
return rootApp;
|
|
410
|
-
}
|
|
411
|
-
const { materializePagesApp } = await import("./router-JNKHLBCZ.js");
|
|
412
|
-
const pagesApp = await materializePagesApp(root);
|
|
413
|
-
if (pagesApp) return pagesApp;
|
|
414
|
-
} else if (existsSync(rootApp)) return rootApp;
|
|
415
|
-
return path2.join(root, "src", "app");
|
|
416
|
-
}
|
|
417
|
-
|
|
418
|
-
export {
|
|
419
|
-
runWithWorkUnit,
|
|
420
|
-
getWorkUnit,
|
|
421
|
-
setPhase,
|
|
422
|
-
setWorkUnitRoute,
|
|
423
|
-
queueAfterTask,
|
|
424
|
-
flushWorkUnit,
|
|
425
|
-
drainWorkUnits,
|
|
426
|
-
flushWorkUnitOnClose,
|
|
427
|
-
currentRequest,
|
|
428
|
-
runWithRequest,
|
|
429
|
-
legacyRequestAPIs,
|
|
430
|
-
registerConfigSource,
|
|
431
|
-
loadConfig,
|
|
432
|
-
pathToFileHref,
|
|
433
|
-
publicEnvDefines,
|
|
434
|
-
frameworkRuntimeAliasEntries,
|
|
435
|
-
pnextAliases
|
|
436
|
-
};
|
|
@@ -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
|
-
|
|
4
|
-
// ../node_modules/.bun/@wular+pnext@0.1.5+62547eec5a2188e3/node_modules/@wular/pnext/src/utils/decode.ts
|
|
5
|
-
function safeDecode(value) {
|
|
6
|
-
try {
|
|
7
|
-
return decodeURIComponent(value);
|
|
8
|
-
} catch {
|
|
9
|
-
return value;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export {
|
|
14
|
-
safeDecode
|
|
15
|
-
};
|
|
@@ -1,105 +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
|
-
pathToFileHref
|
|
5
|
-
} from "./chunk-JESFYECC.js";
|
|
6
|
-
import {
|
|
7
|
-
clientReferenceId,
|
|
8
|
-
moduleExportNames,
|
|
9
|
-
moduleExportStars
|
|
10
|
-
} from "./chunk-NQE46AZN.js";
|
|
11
|
-
import {
|
|
12
|
-
readText
|
|
13
|
-
} from "./chunk-2HFY3DQT.js";
|
|
14
|
-
import {
|
|
15
|
-
resolveImport
|
|
16
|
-
} from "./chunk-4P5CMIYT.js";
|
|
17
|
-
|
|
18
|
-
// ../node_modules/.bun/@wular+pnext@0.1.5+62547eec5a2188e3/node_modules/@wular/pnext/src/client/reference-stub.ts
|
|
19
|
-
import path from "node:path";
|
|
20
|
-
var clientReferenceRuntimeFile = path.resolve("/Users/muzam/Code/workshop/coder-workspace/node_modules/.bun/@wular+pnext@0.1.5+62547eec5a2188e3/node_modules/@wular/pnext/src/client", "reference.ts");
|
|
21
|
-
function clientReferenceModuleSource(sourceFile, exportNames, options = {}) {
|
|
22
|
-
const reference = (exportName) => `createReference({ id: ${JSON.stringify(`c-${clientReferenceId(sourceFile, exportName)}`)}, file: ${JSON.stringify(sourceFile)}, exportName: ${JSON.stringify(exportName)} })`;
|
|
23
|
-
const defaultExport = exportNames.includes("default") ? `export default ${reference("default")};` : "";
|
|
24
|
-
const namedExports = exportNames.filter((name) => name !== "default").map((name) => `export const ${name} = ${reference(name)};`);
|
|
25
|
-
const symbol = options.inlineSymbol ? `const clientReferenceSymbol = Symbol.for('pnext.clientReference');` : `import { clientReferenceSymbol } from ${JSON.stringify(pathToFileHref(clientReferenceRuntimeFile))};`;
|
|
26
|
-
return `${symbol}
|
|
27
|
-
|
|
28
|
-
function createReference(reference) {
|
|
29
|
-
function ClientReference({ children }) {
|
|
30
|
-
return children ?? null;
|
|
31
|
-
}
|
|
32
|
-
ClientReference[clientReferenceSymbol] = reference;
|
|
33
|
-
return ClientReference;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
${defaultExport}
|
|
37
|
-
${namedExports.join("\n")}
|
|
38
|
-
`;
|
|
39
|
-
}
|
|
40
|
-
async function clientReferenceExportNames(config, file, source, visited = /* @__PURE__ */ new Set()) {
|
|
41
|
-
const key = path.resolve(file);
|
|
42
|
-
if (visited.has(key)) return [];
|
|
43
|
-
visited.add(key);
|
|
44
|
-
const text = source ?? await readText(file);
|
|
45
|
-
const names = new Set(moduleExportNames(text, file));
|
|
46
|
-
if (names.size === 0) {
|
|
47
|
-
for (const match of text.matchAll(/\bexports\.([A-Za-z_$][\w$]*)\s*=/g)) {
|
|
48
|
-
if (match[1] !== "__esModule") names.add(match[1]);
|
|
49
|
-
}
|
|
50
|
-
if (/\bmodule\.exports\s*=/.test(text)) names.add("default");
|
|
51
|
-
}
|
|
52
|
-
for (const specifier of moduleExportStars(text, file)) {
|
|
53
|
-
const resolved = resolveImport(config.root, file, specifier, config.workspaceRoot);
|
|
54
|
-
if (!resolved || !isInside(config.workspaceRoot, resolved)) continue;
|
|
55
|
-
for (const name of await clientReferenceExportNames(config, resolved, void 0, visited)) {
|
|
56
|
-
if (name !== "default") names.add(name);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
return [...names];
|
|
60
|
-
}
|
|
61
|
-
function hasUseClientDirective(source) {
|
|
62
|
-
const isSpace = (index) => {
|
|
63
|
-
const code = source.charCodeAt(index);
|
|
64
|
-
return code === 32 || code >= 9 && code <= 13 || code > 127 && /\s/.test(source[index]);
|
|
65
|
-
};
|
|
66
|
-
let i = 0;
|
|
67
|
-
for (; ; ) {
|
|
68
|
-
while (i < source.length && isSpace(i)) i += 1;
|
|
69
|
-
if (source.startsWith("//", i)) {
|
|
70
|
-
const newline = source.indexOf("\n", i);
|
|
71
|
-
if (newline === -1) return false;
|
|
72
|
-
i = newline + 1;
|
|
73
|
-
continue;
|
|
74
|
-
}
|
|
75
|
-
if (source.startsWith("/*", i)) {
|
|
76
|
-
const end2 = source.indexOf("*/", i + 2);
|
|
77
|
-
if (end2 === -1) return false;
|
|
78
|
-
i = end2 + 2;
|
|
79
|
-
continue;
|
|
80
|
-
}
|
|
81
|
-
const quote = source[i];
|
|
82
|
-
if (quote !== '"' && quote !== "'") return false;
|
|
83
|
-
let end = i + 1;
|
|
84
|
-
while (end < source.length) {
|
|
85
|
-
const char = source[end];
|
|
86
|
-
if (char === quote || char === "\n" || char === "\\") break;
|
|
87
|
-
end += 1;
|
|
88
|
-
}
|
|
89
|
-
if (source[end] !== quote) return false;
|
|
90
|
-
if (source.slice(i + 1, end) === "use client") return true;
|
|
91
|
-
i = end + 1;
|
|
92
|
-
while (i < source.length && isSpace(i)) i += 1;
|
|
93
|
-
if (source[i] === ";") i += 1;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
function isInside(root, file) {
|
|
97
|
-
const relative = path.relative(root, file);
|
|
98
|
-
return relative === "" || !relative.startsWith("..") && !path.isAbsolute(relative);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
export {
|
|
102
|
-
clientReferenceModuleSource,
|
|
103
|
-
clientReferenceExportNames,
|
|
104
|
-
hasUseClientDirective
|
|
105
|
-
};
|