@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,645 +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
|
-
isCommonJsModuleSource
|
|
5
|
-
} from "./chunk-4P5CMIYT.js";
|
|
6
|
-
import {
|
|
7
|
-
__require,
|
|
8
|
-
loadNative
|
|
9
|
-
} from "./chunk-3UPROT2C.js";
|
|
10
|
-
|
|
11
|
-
// ../node_modules/.bun/@wular+pnext@0.1.5+62547eec5a2188e3/node_modules/@wular/pnext/src/client/reference.ts
|
|
12
|
-
import { createHash } from "node:crypto";
|
|
13
|
-
import path from "node:path";
|
|
14
|
-
var compiledClientReferences = /* @__PURE__ */ new Set();
|
|
15
|
-
function noteCompiledClientReference(file) {
|
|
16
|
-
compiledClientReferences.add(path.resolve(file));
|
|
17
|
-
}
|
|
18
|
-
var clientReferenceSymbol = Symbol.for("pnext.clientReference");
|
|
19
|
-
function clientReferenceId(file, exportName) {
|
|
20
|
-
return createHash("sha256").update(file).update("\0").update(exportName).digest("hex").slice(0, 10);
|
|
21
|
-
}
|
|
22
|
-
function ssrClientReference(reference) {
|
|
23
|
-
if (reference.sideEffect) return false;
|
|
24
|
-
if (reference.dynamic?.ssr === false) return false;
|
|
25
|
-
if (reference.dynamic?.load === "visible" && reference.dynamic.ssr !== true) return false;
|
|
26
|
-
return true;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
// ../node_modules/.bun/@wular+pnext@0.1.5+62547eec5a2188e3/node_modules/@wular/pnext/src/runtime/module-transform.ts
|
|
30
|
-
var transformSync = (...args) => (
|
|
31
|
-
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
32
|
-
loadNative(() => __require("/Users/muzam/Code/workshop/coder-workspace/node_modules/.bun/oxc-transform@0.136.0/node_modules/oxc-transform/index.js")).transformSync(
|
|
33
|
-
...args
|
|
34
|
-
)
|
|
35
|
-
);
|
|
36
|
-
var NON_LITERAL_DYNAMIC_IMPORT = /\bimport\s*\(\s*(?!['"])[^)]/;
|
|
37
|
-
var REQUIRE_CALL = /\brequire\s*\(/;
|
|
38
|
-
var COMMONJS_EXPORTS = /\bmodule\.exports\b|\bexports\s*\.\s*[A-Za-z_$]/;
|
|
39
|
-
var ENUM_DECLARATION = /(?:^|[^.\w$])enum\s+[A-Za-z_$]/;
|
|
40
|
-
function transformBailReason(source, file) {
|
|
41
|
-
if (REQUIRE_CALL.test(source) || COMMONJS_EXPORTS.test(source) || isCommonJsModuleSource(source, file)) {
|
|
42
|
-
return "commonjs";
|
|
43
|
-
}
|
|
44
|
-
if (NON_LITERAL_DYNAMIC_IMPORT.test(source)) return "glob-import";
|
|
45
|
-
if (ENUM_DECLARATION.test(source)) return "enum";
|
|
46
|
-
return void 0;
|
|
47
|
-
}
|
|
48
|
-
function transformServerModule(source, file, define) {
|
|
49
|
-
const options = {
|
|
50
|
-
lang: langForFile(file),
|
|
51
|
-
jsx: { runtime: "automatic", importSource: "preact" },
|
|
52
|
-
// No `target`: these modules are loaded by Bun, so syntax lowering buys nothing and oxc's
|
|
53
|
-
// lowering plugins are expensive on the transform line.
|
|
54
|
-
sourcemap: false,
|
|
55
|
-
...define ? { define } : {}
|
|
56
|
-
};
|
|
57
|
-
const result = transformSync(file, source, options);
|
|
58
|
-
if (result.errors.length > 0) return { bail: "parse-error" };
|
|
59
|
-
if (Object.keys(result.helpersUsed).length > 0) return { bail: "helpers" };
|
|
60
|
-
return { code: dropUnreferencedImports(result.code) };
|
|
61
|
-
}
|
|
62
|
-
function langForFile(file) {
|
|
63
|
-
if (/\.[mc]?ts$/.test(file)) return "ts";
|
|
64
|
-
if (file.endsWith(".tsx")) return "tsx";
|
|
65
|
-
return "jsx";
|
|
66
|
-
}
|
|
67
|
-
var SPECIFIER_RE = /(?:^|[\n;{}])\s*(?:import|export)\b[^;'"]*?\bfrom\s*("[^"]*"|'[^']*')|(?:^|[\n;{}])\s*import\s*("[^"]*"|'[^']*')|\bimport\s*\(\s*("[^"]*"|'[^']*')\s*\)/g;
|
|
68
|
-
function outputSpecifiers(code) {
|
|
69
|
-
const found = [];
|
|
70
|
-
SPECIFIER_RE.lastIndex = 0;
|
|
71
|
-
let match;
|
|
72
|
-
while (match = SPECIFIER_RE.exec(code)) {
|
|
73
|
-
for (let group = 1; group <= 3; group += 1) {
|
|
74
|
-
const literal = match[group];
|
|
75
|
-
if (literal === void 0) continue;
|
|
76
|
-
const start = match.index + match[0].lastIndexOf(literal);
|
|
77
|
-
found.push({
|
|
78
|
-
start,
|
|
79
|
-
end: start + literal.length,
|
|
80
|
-
value: literal.slice(1, -1),
|
|
81
|
-
kind: group === 3 ? "dynamic-import" : "import-statement"
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
return found;
|
|
86
|
-
}
|
|
87
|
-
function spliceSource(code, edits) {
|
|
88
|
-
let next = code;
|
|
89
|
-
for (const edit of [...edits].sort((a, b) => b.start - a.start)) {
|
|
90
|
-
next = `${next.slice(0, edit.start)}${edit.value}${next.slice(edit.end)}`;
|
|
91
|
-
}
|
|
92
|
-
return next;
|
|
93
|
-
}
|
|
94
|
-
var IMPORT_STATEMENT_RE = /(?:^|\n)[ \t]*import\s+([A-Za-z_$][\w$]*\s*,\s*)?(?:\*\s*as\s+([A-Za-z_$][\w$]*)|\{([^}]*)\}|([A-Za-z_$][\w$]*))\s+from\s*(?:"[^"]*"|'[^']*')\s*;?/g;
|
|
95
|
-
function dropUnreferencedImports(code) {
|
|
96
|
-
const statements = [];
|
|
97
|
-
IMPORT_STATEMENT_RE.lastIndex = 0;
|
|
98
|
-
let match;
|
|
99
|
-
while (match = IMPORT_STATEMENT_RE.exec(code)) {
|
|
100
|
-
const [text, defaultWithNamed, namespace, named, defaultOnly] = match;
|
|
101
|
-
const names = [];
|
|
102
|
-
if (defaultWithNamed) names.push(defaultWithNamed.replace(/\s*,\s*$/, "").trim());
|
|
103
|
-
if (namespace) names.push(namespace);
|
|
104
|
-
if (defaultOnly) names.push(defaultOnly);
|
|
105
|
-
if (named !== void 0) {
|
|
106
|
-
for (const part of named.split(",")) {
|
|
107
|
-
const local = part.split(/\bas\b/).pop()?.trim();
|
|
108
|
-
if (!local) continue;
|
|
109
|
-
if (!/^[A-Za-z_$][\w$]*$/.test(local)) return code;
|
|
110
|
-
names.push(local);
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
if (names.length === 0) continue;
|
|
114
|
-
const leading = text.startsWith("\n") ? 1 : 0;
|
|
115
|
-
statements.push({ start: match.index + leading, end: match.index + text.length, names });
|
|
116
|
-
}
|
|
117
|
-
if (statements.length === 0) return code;
|
|
118
|
-
const gaps = [];
|
|
119
|
-
let cursor = 0;
|
|
120
|
-
for (const statement of statements) {
|
|
121
|
-
gaps.push(code.slice(cursor, statement.start));
|
|
122
|
-
cursor = statement.end;
|
|
123
|
-
}
|
|
124
|
-
gaps.push(code.slice(cursor));
|
|
125
|
-
const used = referencedNames(gaps.join("\n"));
|
|
126
|
-
const unused = statements.filter((statement) => statement.names.every((name) => !used.has(name)));
|
|
127
|
-
if (unused.length === 0) return code;
|
|
128
|
-
return spliceSource(
|
|
129
|
-
code,
|
|
130
|
-
unused.map(({ start, end }) => ({ start, end, value: "" }))
|
|
131
|
-
);
|
|
132
|
-
}
|
|
133
|
-
var IDENTIFIER_RE = /[A-Za-z_$][\w$]*/g;
|
|
134
|
-
function referencedNames(body) {
|
|
135
|
-
const names = /* @__PURE__ */ new Set();
|
|
136
|
-
IDENTIFIER_RE.lastIndex = 0;
|
|
137
|
-
let match;
|
|
138
|
-
while (match = IDENTIFIER_RE.exec(body)) {
|
|
139
|
-
if (body[match.index - 1] === "." && body[match.index - 2] !== ".") continue;
|
|
140
|
-
names.add(match[0]);
|
|
141
|
-
}
|
|
142
|
-
return names;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
// ../node_modules/.bun/@wular+pnext@0.1.5+62547eec5a2188e3/node_modules/@wular/pnext/src/resolve/scan-facts.ts
|
|
146
|
-
var parseSync = (...args) => (
|
|
147
|
-
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
148
|
-
loadNative(() => __require("/Users/muzam/Code/workshop/coder-workspace/node_modules/.bun/oxc-parser@0.142.0/node_modules/oxc-parser/src-js/index.js")).parseSync(...args)
|
|
149
|
-
);
|
|
150
|
-
var { Bun: bun } = globalThis;
|
|
151
|
-
var stylesheetOrData = /\.(?:css|scss|sass|less|styl|json)$/;
|
|
152
|
-
var emptyFacts = {
|
|
153
|
-
imports: [],
|
|
154
|
-
dynamicImports: [],
|
|
155
|
-
requires: [],
|
|
156
|
-
exportNames: [],
|
|
157
|
-
exportStars: [],
|
|
158
|
-
useClient: false,
|
|
159
|
-
useServer: false,
|
|
160
|
-
dynamicCalls: []
|
|
161
|
-
};
|
|
162
|
-
var emptyRewriteFacts = {
|
|
163
|
-
edges: [],
|
|
164
|
-
imports: [],
|
|
165
|
-
importMetas: [],
|
|
166
|
-
unreliable: false
|
|
167
|
-
};
|
|
168
|
-
var memo = /* @__PURE__ */ new Map();
|
|
169
|
-
var hits = 0;
|
|
170
|
-
var misses = 0;
|
|
171
|
-
function scanFacts(file, source) {
|
|
172
|
-
if (stylesheetOrData.test(file)) return emptyFacts;
|
|
173
|
-
return parsed(file, source).scan;
|
|
174
|
-
}
|
|
175
|
-
function importSpecifiers(source, sourcefile = "source") {
|
|
176
|
-
const facts = scanFacts(sourcefile, source);
|
|
177
|
-
return [
|
|
178
|
-
...facts.imports.map((edge) => edge.specifier),
|
|
179
|
-
...facts.dynamicImports.map((entry) => entry.specifier),
|
|
180
|
-
...facts.requires.map((entry) => entry.specifier)
|
|
181
|
-
];
|
|
182
|
-
}
|
|
183
|
-
function moduleExportNames(source, sourcefile = "source.tsx") {
|
|
184
|
-
return scanFacts(sourcefile, source).exportNames;
|
|
185
|
-
}
|
|
186
|
-
function moduleExportStars(source, sourcefile = "source.tsx") {
|
|
187
|
-
return scanFacts(sourcefile, source).exportStars;
|
|
188
|
-
}
|
|
189
|
-
function dynamicCallFacts(source, file = "module.tsx") {
|
|
190
|
-
if (stylesheetOrData.test(file)) return [];
|
|
191
|
-
return parsed(file, source).scan.dynamicCalls;
|
|
192
|
-
}
|
|
193
|
-
function rewriteFacts(file, source) {
|
|
194
|
-
if (stylesheetOrData.test(file)) return emptyRewriteFacts;
|
|
195
|
-
return parsed(file, source).rewrite;
|
|
196
|
-
}
|
|
197
|
-
function moduleSpecifierEdges(source, file = "source") {
|
|
198
|
-
const facts = rewriteFacts(file, source);
|
|
199
|
-
return facts.unreliable ? textualEdges(source) : facts.edges;
|
|
200
|
-
}
|
|
201
|
-
function parsed(file, source, lang = langForFile2(file)) {
|
|
202
|
-
const key = `${lang}\0${source.length}\0${bun.hash(source).toString()}`;
|
|
203
|
-
const cached = memo.get(key);
|
|
204
|
-
if (cached) {
|
|
205
|
-
hits += 1;
|
|
206
|
-
return cached;
|
|
207
|
-
}
|
|
208
|
-
misses += 1;
|
|
209
|
-
const facts = parseFacts(file, source, lang);
|
|
210
|
-
memo.set(key, facts);
|
|
211
|
-
return facts;
|
|
212
|
-
}
|
|
213
|
-
function rewriteSpecifierLiterals(source, file, replace) {
|
|
214
|
-
const edges = moduleSpecifierEdges(source, file);
|
|
215
|
-
const edits = [];
|
|
216
|
-
for (const edge of edges) {
|
|
217
|
-
const value = replace(edge.specifier, edge.kind);
|
|
218
|
-
if (value !== void 0) edits.push({ start: edge.start, end: edge.end, value });
|
|
219
|
-
}
|
|
220
|
-
return edits.length > 0 ? spliceSource(source, edits) : source;
|
|
221
|
-
}
|
|
222
|
-
var textualSpecifier = /(\bfrom\s*|\b(?:import|require)\s*\(\s*)(['"])([^'"]+)\2/g;
|
|
223
|
-
function textualEdges(source) {
|
|
224
|
-
const edges = [];
|
|
225
|
-
textualSpecifier.lastIndex = 0;
|
|
226
|
-
let match;
|
|
227
|
-
while (match = textualSpecifier.exec(source)) {
|
|
228
|
-
const start = match.index + match[1].length;
|
|
229
|
-
edges.push({
|
|
230
|
-
specifier: match[3],
|
|
231
|
-
start,
|
|
232
|
-
end: start + match[3].length + 2,
|
|
233
|
-
kind: match[1].includes("require") ? "require" : match[1].includes("import") ? "dynamic" : "import"
|
|
234
|
-
});
|
|
235
|
-
}
|
|
236
|
-
return edges;
|
|
237
|
-
}
|
|
238
|
-
function parseFacts(file, source, lang) {
|
|
239
|
-
const result = parseSync(file, source, { lang });
|
|
240
|
-
const imports = [];
|
|
241
|
-
const exportNames = [];
|
|
242
|
-
const exportStars = [];
|
|
243
|
-
const edges = [];
|
|
244
|
-
const importStatements = [];
|
|
245
|
-
for (const statement of result.module.staticImports) {
|
|
246
|
-
const names = [];
|
|
247
|
-
const bindings = [];
|
|
248
|
-
let bindsValue = statement.entries.length === 0;
|
|
249
|
-
for (const entry of statement.entries) {
|
|
250
|
-
const kind = entry.importName.kind;
|
|
251
|
-
bindings.push({
|
|
252
|
-
imported: kind === "Default" ? "default" : kind === "NamespaceObject" ? "*" : entry.importName.name ?? "",
|
|
253
|
-
local: entry.localName.value ?? "",
|
|
254
|
-
type: entry.isType
|
|
255
|
-
});
|
|
256
|
-
if (entry.isType) continue;
|
|
257
|
-
bindsValue = true;
|
|
258
|
-
if (kind === "Default") names.push("default");
|
|
259
|
-
else if (kind === "NamespaceObject") names.push("*");
|
|
260
|
-
else if (entry.importName.name) names.push(entry.importName.name);
|
|
261
|
-
}
|
|
262
|
-
importStatements.push({
|
|
263
|
-
specifier: statement.moduleRequest.value,
|
|
264
|
-
start: statement.start,
|
|
265
|
-
end: statement.end,
|
|
266
|
-
specifierStart: statement.moduleRequest.start,
|
|
267
|
-
specifierEnd: statement.moduleRequest.end,
|
|
268
|
-
bindings
|
|
269
|
-
});
|
|
270
|
-
edges.push({
|
|
271
|
-
specifier: statement.moduleRequest.value,
|
|
272
|
-
start: statement.moduleRequest.start,
|
|
273
|
-
end: statement.moduleRequest.end,
|
|
274
|
-
kind: statement.entries.length === 0 ? "side-effect" : "import"
|
|
275
|
-
});
|
|
276
|
-
if (!bindsValue) continue;
|
|
277
|
-
imports.push({
|
|
278
|
-
specifier: statement.moduleRequest.value,
|
|
279
|
-
exports: names,
|
|
280
|
-
index: statement.start
|
|
281
|
-
});
|
|
282
|
-
}
|
|
283
|
-
const seenExportRequests = /* @__PURE__ */ new Set();
|
|
284
|
-
for (const statement of result.module.staticExports) {
|
|
285
|
-
for (const entry of statement.entries) {
|
|
286
|
-
const request = entry.moduleRequest;
|
|
287
|
-
if (!request || seenExportRequests.has(request.start)) continue;
|
|
288
|
-
seenExportRequests.add(request.start);
|
|
289
|
-
edges.push({
|
|
290
|
-
specifier: request.value,
|
|
291
|
-
start: request.start,
|
|
292
|
-
end: request.end,
|
|
293
|
-
kind: "export"
|
|
294
|
-
});
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
for (const statement of result.module.staticExports) {
|
|
298
|
-
const edges2 = /* @__PURE__ */ new Map();
|
|
299
|
-
for (const entry of statement.entries) {
|
|
300
|
-
if (entry.isType) continue;
|
|
301
|
-
const exportKind = entry.exportName.kind;
|
|
302
|
-
if (exportKind === "Default") exportNames.push("default");
|
|
303
|
-
else if (entry.exportName.name) exportNames.push(entry.exportName.name);
|
|
304
|
-
const specifier = entry.moduleRequest?.value;
|
|
305
|
-
if (!specifier) continue;
|
|
306
|
-
const importKind = entry.importName.kind;
|
|
307
|
-
const star = importKind === "AllButDefault";
|
|
308
|
-
if (star) exportStars.push(specifier);
|
|
309
|
-
let edge = edges2.get(specifier);
|
|
310
|
-
if (!edge) {
|
|
311
|
-
edge = {
|
|
312
|
-
specifier,
|
|
313
|
-
exports: [],
|
|
314
|
-
index: statement.start,
|
|
315
|
-
reexport: true,
|
|
316
|
-
exportMap: {}
|
|
317
|
-
};
|
|
318
|
-
edges2.set(specifier, edge);
|
|
319
|
-
imports.push(edge);
|
|
320
|
-
}
|
|
321
|
-
if (star) edge.star = true;
|
|
322
|
-
else if (importKind === "All") edge.exports.push("*");
|
|
323
|
-
else {
|
|
324
|
-
const imported = importKind === "Default" ? "default" : entry.importName.name;
|
|
325
|
-
if (!imported) continue;
|
|
326
|
-
edge.exports.push(imported);
|
|
327
|
-
const exported = exportKind === "Default" ? "default" : entry.exportName.name;
|
|
328
|
-
if (exported) edge.exportMap[exported] = imported;
|
|
329
|
-
}
|
|
330
|
-
}
|
|
331
|
-
}
|
|
332
|
-
imports.sort((a, b) => a.index - b.index);
|
|
333
|
-
const dynamicImports = [];
|
|
334
|
-
for (const entry of result.module.dynamicImports) {
|
|
335
|
-
const raw = source.slice(entry.moduleRequest.start, entry.moduleRequest.end);
|
|
336
|
-
const specifier = literalSpecifier(raw);
|
|
337
|
-
if (specifier === void 0) continue;
|
|
338
|
-
dynamicImports.push({ specifier, index: entry.start });
|
|
339
|
-
const lead = raw.length - raw.trimStart().length;
|
|
340
|
-
edges.push({
|
|
341
|
-
specifier,
|
|
342
|
-
start: entry.moduleRequest.start + lead,
|
|
343
|
-
end: entry.moduleRequest.start + lead + specifier.length + 2,
|
|
344
|
-
kind: "dynamic"
|
|
345
|
-
});
|
|
346
|
-
}
|
|
347
|
-
const requires = requireCalls(source, result.comments);
|
|
348
|
-
for (const call of requires) {
|
|
349
|
-
edges.push({
|
|
350
|
-
specifier: call.specifier,
|
|
351
|
-
start: call.specifierStart,
|
|
352
|
-
end: call.specifierStart + call.specifier.length + 2,
|
|
353
|
-
kind: "require"
|
|
354
|
-
});
|
|
355
|
-
}
|
|
356
|
-
edges.sort((a, b) => a.start - b.start);
|
|
357
|
-
return {
|
|
358
|
-
scan: {
|
|
359
|
-
imports,
|
|
360
|
-
dynamicImports,
|
|
361
|
-
requires,
|
|
362
|
-
exportNames,
|
|
363
|
-
exportStars,
|
|
364
|
-
useClient: moduleDirective(source, result, "use client"),
|
|
365
|
-
useServer: moduleDirective(source, result, "use server"),
|
|
366
|
-
// `result.program` deserializes the whole AST: walk it only for sources
|
|
367
|
-
// that can bind `dynamic()` at all (same cheap gate as resolve/dynamic.ts).
|
|
368
|
-
dynamicCalls: source.includes("@wular/pnext") || source.includes("next/dynamic") ? collectDynamicCalls(result.program) : []
|
|
369
|
-
},
|
|
370
|
-
rewrite: {
|
|
371
|
-
edges,
|
|
372
|
-
imports: importStatements,
|
|
373
|
-
importMetas: result.module.importMetas.map((meta) => ({ start: meta.start, end: meta.end })),
|
|
374
|
-
unreliable: result.errors.length > 0
|
|
375
|
-
}
|
|
376
|
-
};
|
|
377
|
-
}
|
|
378
|
-
function moduleDirective(source, result, directive) {
|
|
379
|
-
const sniffed = sniffDirective(source, directive);
|
|
380
|
-
if (sniffed !== void 0) return sniffed;
|
|
381
|
-
if (!source.includes(directive)) return false;
|
|
382
|
-
return hasDirective(result.program.body, directive);
|
|
383
|
-
}
|
|
384
|
-
var continuesExpression = /[+\-*/%.,?:=<>!&|^~([`)\]}]/;
|
|
385
|
-
var wordContinuation = /^(?:in|instanceof)\b/;
|
|
386
|
-
var lineTerminator = /[\n\r\u2028\u2029]/;
|
|
387
|
-
function sniffDirective(source, directive) {
|
|
388
|
-
let index = 0;
|
|
389
|
-
if (source.startsWith("#!")) {
|
|
390
|
-
const nl = source.search(lineTerminator);
|
|
391
|
-
if (nl < 0) return false;
|
|
392
|
-
index = nl + 1;
|
|
393
|
-
}
|
|
394
|
-
for (; ; ) {
|
|
395
|
-
index = skipTrivia(source, index);
|
|
396
|
-
if (index < 0) return void 0;
|
|
397
|
-
const quote = source[index];
|
|
398
|
-
if (quote !== '"' && quote !== "'") return false;
|
|
399
|
-
let end = index + 1;
|
|
400
|
-
while (end < source.length) {
|
|
401
|
-
const char = source[end];
|
|
402
|
-
if (char === "\\" || lineTerminator.test(char)) return void 0;
|
|
403
|
-
if (char === quote) break;
|
|
404
|
-
end += 1;
|
|
405
|
-
}
|
|
406
|
-
if (end >= source.length) return void 0;
|
|
407
|
-
const raw = source.slice(index + 1, end);
|
|
408
|
-
const after = skipTrivia(source, end + 1);
|
|
409
|
-
if (after < 0) return void 0;
|
|
410
|
-
const next = source[after];
|
|
411
|
-
let terminated = after >= source.length || next === ";";
|
|
412
|
-
if (!terminated && lineTerminator.test(source.slice(end + 1, after))) {
|
|
413
|
-
terminated = !continuesExpression.test(next) && !wordContinuation.test(source.slice(after, after + 11));
|
|
414
|
-
}
|
|
415
|
-
if (!terminated) return void 0;
|
|
416
|
-
if (raw === directive) return true;
|
|
417
|
-
index = next === ";" ? after + 1 : after;
|
|
418
|
-
if (index >= source.length) return false;
|
|
419
|
-
}
|
|
420
|
-
}
|
|
421
|
-
function skipTrivia(source, index) {
|
|
422
|
-
for (; ; ) {
|
|
423
|
-
while (index < source.length && /\s/.test(source[index])) index += 1;
|
|
424
|
-
if (source[index] !== "/") return index;
|
|
425
|
-
if (source[index + 1] === "/") {
|
|
426
|
-
let end = index + 2;
|
|
427
|
-
while (end < source.length && !lineTerminator.test(source[end])) end += 1;
|
|
428
|
-
index = end;
|
|
429
|
-
continue;
|
|
430
|
-
}
|
|
431
|
-
if (source[index + 1] === "*") {
|
|
432
|
-
const end = source.indexOf("*/", index + 2);
|
|
433
|
-
if (end < 0) return -1;
|
|
434
|
-
index = end + 2;
|
|
435
|
-
continue;
|
|
436
|
-
}
|
|
437
|
-
return index;
|
|
438
|
-
}
|
|
439
|
-
}
|
|
440
|
-
function hasDirective(body, directive) {
|
|
441
|
-
for (const statement of body) {
|
|
442
|
-
if (statement.type !== "ExpressionStatement" || typeof statement.directive !== "string")
|
|
443
|
-
return false;
|
|
444
|
-
if (statement.directive === directive) return true;
|
|
445
|
-
}
|
|
446
|
-
return false;
|
|
447
|
-
}
|
|
448
|
-
var requirePattern = /\brequire\s*\(\s*(['"])([^'"]+)\1\s*\)/g;
|
|
449
|
-
function requireCalls(source, comments) {
|
|
450
|
-
const calls = [];
|
|
451
|
-
if (!source.includes("require")) return calls;
|
|
452
|
-
requirePattern.lastIndex = 0;
|
|
453
|
-
let match;
|
|
454
|
-
let cursor = 0;
|
|
455
|
-
while (match = requirePattern.exec(source)) {
|
|
456
|
-
const index = match.index;
|
|
457
|
-
while (cursor < comments.length && comments[cursor].end <= index) cursor += 1;
|
|
458
|
-
if (cursor < comments.length && index >= comments[cursor].start) continue;
|
|
459
|
-
calls.push({
|
|
460
|
-
specifier: match[2],
|
|
461
|
-
index,
|
|
462
|
-
specifierStart: index + match[0].indexOf(match[1])
|
|
463
|
-
});
|
|
464
|
-
}
|
|
465
|
-
return calls;
|
|
466
|
-
}
|
|
467
|
-
function literalSpecifier(raw) {
|
|
468
|
-
return /^\s*(['"])([^'"]*)\1\s*$/.exec(raw)?.[2] || void 0;
|
|
469
|
-
}
|
|
470
|
-
function isNode(value) {
|
|
471
|
-
return typeof value === "object" && value !== null && typeof value.type === "string";
|
|
472
|
-
}
|
|
473
|
-
function child(node, key) {
|
|
474
|
-
const value = node?.[key];
|
|
475
|
-
return isNode(value) ? value : void 0;
|
|
476
|
-
}
|
|
477
|
-
function collectDynamicCalls(program) {
|
|
478
|
-
const calls = [];
|
|
479
|
-
const visit = (value) => {
|
|
480
|
-
if (Array.isArray(value)) {
|
|
481
|
-
for (const item of value) visit(item);
|
|
482
|
-
return;
|
|
483
|
-
}
|
|
484
|
-
if (!isNode(value)) return;
|
|
485
|
-
if (value.type === "CallExpression") {
|
|
486
|
-
const fact = dynamicCallFact(value);
|
|
487
|
-
if (fact) calls.push(fact);
|
|
488
|
-
}
|
|
489
|
-
for (const key in value) {
|
|
490
|
-
if (key === "type" || key === "loc" || key === "range") continue;
|
|
491
|
-
const entry = value[key];
|
|
492
|
-
if (entry && typeof entry === "object") visit(entry);
|
|
493
|
-
}
|
|
494
|
-
};
|
|
495
|
-
visit(program.body);
|
|
496
|
-
return calls.sort((a, b) => a.start - b.start);
|
|
497
|
-
}
|
|
498
|
-
function dynamicCallFact(call) {
|
|
499
|
-
const callee = child(call, "callee");
|
|
500
|
-
if (callee?.type !== "Identifier") return void 0;
|
|
501
|
-
const args = call.arguments;
|
|
502
|
-
if (!Array.isArray(args) || !isNode(args[0])) return void 0;
|
|
503
|
-
const loader = args[0];
|
|
504
|
-
let target;
|
|
505
|
-
let literal;
|
|
506
|
-
if (stringValue(loader) !== void 0) {
|
|
507
|
-
target = { specifier: loader, exportName: "default" };
|
|
508
|
-
literal = true;
|
|
509
|
-
} else if (loader.type === "ArrowFunctionExpression" || loader.type === "FunctionExpression") {
|
|
510
|
-
target = loaderImportTarget(loader) ?? firstImportTarget(loader);
|
|
511
|
-
}
|
|
512
|
-
if (!target) return void 0;
|
|
513
|
-
const specifier = stringValue(target.specifier);
|
|
514
|
-
if (specifier === void 0) return void 0;
|
|
515
|
-
const options = isNode(args[1]) ? args[1] : void 0;
|
|
516
|
-
return {
|
|
517
|
-
name: callee.name,
|
|
518
|
-
start: callee.start,
|
|
519
|
-
end: call.end,
|
|
520
|
-
specifier,
|
|
521
|
-
specifierStart: target.specifier.start,
|
|
522
|
-
specifierEnd: target.specifier.end,
|
|
523
|
-
exportName: target.exportName,
|
|
524
|
-
...literal ? { literal } : {},
|
|
525
|
-
loaderEnd: loader.end,
|
|
526
|
-
...options ? { optionsStart: options.start, optionsEnd: options.end } : {}
|
|
527
|
-
};
|
|
528
|
-
}
|
|
529
|
-
function stringValue(node) {
|
|
530
|
-
if (!node) return void 0;
|
|
531
|
-
if (node.type !== "Literal" && node.type !== "StringLiteral") return void 0;
|
|
532
|
-
return typeof node.value === "string" ? node.value : void 0;
|
|
533
|
-
}
|
|
534
|
-
function unwrapExpression(node) {
|
|
535
|
-
let current = node;
|
|
536
|
-
for (; ; ) {
|
|
537
|
-
if (!current) return void 0;
|
|
538
|
-
if (current.type === "ParenthesizedExpression" || current.type === "ChainExpression") {
|
|
539
|
-
current = child(current, "expression");
|
|
540
|
-
} else if (current.type === "AwaitExpression") {
|
|
541
|
-
current = child(current, "argument");
|
|
542
|
-
} else if (current.type === "TSAsExpression" || current.type === "TSNonNullExpression" || current.type === "TSSatisfiesExpression") {
|
|
543
|
-
current = child(current, "expression");
|
|
544
|
-
} else {
|
|
545
|
-
return current;
|
|
546
|
-
}
|
|
547
|
-
}
|
|
548
|
-
}
|
|
549
|
-
function loaderResult(fn) {
|
|
550
|
-
const body = child(fn, "body");
|
|
551
|
-
if (!body) return void 0;
|
|
552
|
-
if (body.type !== "BlockStatement" && body.type !== "FunctionBody") return unwrapExpression(body);
|
|
553
|
-
const statements = body.body;
|
|
554
|
-
if (!Array.isArray(statements)) return void 0;
|
|
555
|
-
for (const statement of statements) {
|
|
556
|
-
if (isNode(statement) && statement.type === "ReturnStatement") {
|
|
557
|
-
return unwrapExpression(child(statement, "argument"));
|
|
558
|
-
}
|
|
559
|
-
}
|
|
560
|
-
return void 0;
|
|
561
|
-
}
|
|
562
|
-
function importSource(node) {
|
|
563
|
-
if (node?.type !== "ImportExpression") return void 0;
|
|
564
|
-
const source = child(node, "source");
|
|
565
|
-
return source && stringValue(source) !== void 0 ? source : void 0;
|
|
566
|
-
}
|
|
567
|
-
function loaderImportTarget(fn) {
|
|
568
|
-
const result = loaderResult(fn);
|
|
569
|
-
if (!result) return void 0;
|
|
570
|
-
const direct = importSource(result);
|
|
571
|
-
if (direct) return { specifier: direct, exportName: "default" };
|
|
572
|
-
if (result.type === "MemberExpression" && result.computed !== true) {
|
|
573
|
-
const source2 = importSource(unwrapExpression(child(result, "object")));
|
|
574
|
-
const property = child(result, "property");
|
|
575
|
-
if (source2 && property?.type === "Identifier") {
|
|
576
|
-
return { specifier: source2, exportName: property.name };
|
|
577
|
-
}
|
|
578
|
-
}
|
|
579
|
-
if (result.type !== "CallExpression") return void 0;
|
|
580
|
-
const callee = child(result, "callee");
|
|
581
|
-
if (callee?.type !== "MemberExpression" || callee.computed === true) return void 0;
|
|
582
|
-
if (child(callee, "property")?.name !== "then") return void 0;
|
|
583
|
-
const source = importSource(unwrapExpression(child(callee, "object")));
|
|
584
|
-
if (!source) return void 0;
|
|
585
|
-
return { specifier: source, exportName: thenArmExport(result) ?? "default" };
|
|
586
|
-
}
|
|
587
|
-
function thenArmExport(thenCall) {
|
|
588
|
-
const args = thenCall.arguments;
|
|
589
|
-
if (!Array.isArray(args) || !isNode(args[0])) return void 0;
|
|
590
|
-
const arm = args[0];
|
|
591
|
-
if (arm.type !== "ArrowFunctionExpression" && arm.type !== "FunctionExpression") return void 0;
|
|
592
|
-
const params = arm.params;
|
|
593
|
-
const param = Array.isArray(params) && isNode(params[0]) ? params[0] : void 0;
|
|
594
|
-
if (param?.type !== "Identifier") return void 0;
|
|
595
|
-
const result = loaderResult(arm);
|
|
596
|
-
if (result?.type !== "MemberExpression" || result.computed === true) return void 0;
|
|
597
|
-
const object = unwrapExpression(child(result, "object"));
|
|
598
|
-
if (object?.type !== "Identifier" || object.name !== param.name) return void 0;
|
|
599
|
-
const property = child(result, "property");
|
|
600
|
-
return property?.type === "Identifier" ? property.name : void 0;
|
|
601
|
-
}
|
|
602
|
-
function firstImportTarget(fn) {
|
|
603
|
-
let found;
|
|
604
|
-
const visit = (value) => {
|
|
605
|
-
if (found) return;
|
|
606
|
-
if (Array.isArray(value)) {
|
|
607
|
-
for (const item of value) visit(item);
|
|
608
|
-
return;
|
|
609
|
-
}
|
|
610
|
-
if (!isNode(value)) return;
|
|
611
|
-
const source = importSource(value);
|
|
612
|
-
if (source) {
|
|
613
|
-
found = source;
|
|
614
|
-
return;
|
|
615
|
-
}
|
|
616
|
-
for (const key in value) {
|
|
617
|
-
const entry = value[key];
|
|
618
|
-
if (entry && typeof entry === "object") visit(entry);
|
|
619
|
-
}
|
|
620
|
-
};
|
|
621
|
-
visit(fn.body);
|
|
622
|
-
return found ? { specifier: found, exportName: "default" } : void 0;
|
|
623
|
-
}
|
|
624
|
-
function langForFile2(file) {
|
|
625
|
-
return /\.[mc]?ts$/.test(file) ? "ts" : "tsx";
|
|
626
|
-
}
|
|
627
|
-
|
|
628
|
-
export {
|
|
629
|
-
noteCompiledClientReference,
|
|
630
|
-
clientReferenceSymbol,
|
|
631
|
-
clientReferenceId,
|
|
632
|
-
ssrClientReference,
|
|
633
|
-
transformBailReason,
|
|
634
|
-
transformServerModule,
|
|
635
|
-
outputSpecifiers,
|
|
636
|
-
spliceSource,
|
|
637
|
-
scanFacts,
|
|
638
|
-
importSpecifiers,
|
|
639
|
-
moduleExportNames,
|
|
640
|
-
moduleExportStars,
|
|
641
|
-
dynamicCallFacts,
|
|
642
|
-
rewriteFacts,
|
|
643
|
-
moduleSpecifierEdges,
|
|
644
|
-
rewriteSpecifierLiterals
|
|
645
|
-
};
|