@wular/coder 0.4.1 → 0.4.3
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/actions-FzDNxMFf.js +20 -0
- package/dist/{adapter-BKVzTDnn.js → adapter-7SEiVsmp.js} +1 -1
- package/dist/{adapter-B0oYCI0S.js → adapter-BLEfUqoQ.js} +1 -1
- package/dist/{adapter-DPInwbJG.js → adapter-H4GlcKQz.js} +1 -1
- package/dist/{add-CE-70LFs.js → add-B50dIJGd.js} +1 -1
- package/dist/{add-BxpLHnvD.js → add-D7X3gxap.js} +1 -1
- package/dist/{add-ej0X9e3a.js → add-DOEUHIe7.js} +1 -1
- package/dist/{add-U-pty9qJ.js → add-QExQhTzi.js} +1 -1
- package/dist/{add-json-CEa-6luW.js → add-json-Ck4KIZrT.js} +1 -1
- package/dist/{agent-JdtZozvP.js → agent-BPtnEf1q.js} +1 -1
- package/dist/{agent-BsYx3Odz.js → agent-BlQ_dNNm.js} +2 -2
- package/dist/{alias-DX-Bm86x.js → alias-BwQBovke.js} +1 -1
- package/dist/{app-BT5f7zL5.js → app-y6BYm2eH.js} +1 -1
- package/dist/{approvals-C-AvFt6s.js → approvals-Cc9cq5T1.js} +2 -2
- package/dist/{approve-DOmpQRNd.js → approve-oO9k2fnK.js} +2 -2
- package/dist/{apps-CjfrZyM5.js → apps-CU2YalX8.js} +1 -1
- package/dist/{archive-BziJ1rQ-.js → archive-C5c_HQS1.js} +2 -2
- package/dist/{archive-BUB8gFKD.js → archive-CemlWlVY.js} +2 -2
- package/dist/archive-sweep-ehg-fWIt.js +1 -0
- package/dist/{args-BOEEdpWk.js → args-DcBCtXhz.js} +1 -1
- package/dist/{ask-dE3U3ss2.js → ask-Chu7Twu_.js} +2 -2
- package/dist/auth-BOyXPOtu.js +1 -0
- package/dist/auth-XbqKSbcD.js +1 -0
- package/dist/{chat-bridge-BS9WtP3X.js → chat-bridge-DXgZItGP.js} +1 -1
- package/dist/{chat-B_yhNTo0.js → chat-cknlIhVh.js} +1 -1
- package/dist/{cli-BilSDkvE.js → cli-B1ObVrL4.js} +5 -5
- package/dist/cli.d.ts +1 -1
- package/dist/cli.js +1 -1
- package/dist/{client-D9IoAuDD.js → client-31YzOj-i.js} +1 -1
- package/dist/{config-Da_cwoxI.js → config-DAE_qHYA.js} +1 -1
- package/dist/{create-C_iMJV4Y.js → create-CM8B8JxD.js} +1 -1
- package/dist/credentials-BXD4Qptk.js +1 -0
- package/dist/dash/manifest.json +934 -1014
- package/dist/dash/public/assets/chunks/{agent-pills-c9c4ac4d4a10df83.js → agent-pills-b6a6da91c9559d9f.js} +1 -1
- package/dist/dash/public/assets/chunks/{agent-settings-form-8be2ddab074aba6d.js → agent-settings-form-b615c677046cd6f2.js} +1 -1
- package/dist/dash/public/assets/chunks/agents-grid-f2e7b4ff9e11b6e3.js +1 -0
- package/dist/dash/public/assets/chunks/{badge-676b01e0c615bf7b.js → badge-215c7b2631dafc69.js} +1 -1
- package/dist/dash/public/assets/chunks/{card-e0901d68b79dfa93.js → card-e86dcc81326d2b14.js} +1 -1
- package/dist/dash/public/assets/chunks/{combo-41234c24668b1db1.js → combo-09e246dc9a517fa8.js} +1 -1
- package/dist/dash/public/assets/chunks/composer-417166b029f48c47.js +1 -0
- package/dist/dash/public/assets/chunks/composer-645ae8fa97a35280.js +1 -0
- package/dist/dash/public/assets/chunks/{confirm-f2fe4ba9905a89c6.js → confirm-5ae484241ad888fd.js} +1 -1
- package/dist/dash/public/assets/chunks/{connect-apps-aa2a3d82e48ed8c3.js → connect-apps-4147c45f45fde2b1.js} +1 -1
- package/dist/dash/public/assets/chunks/{connect-repositories-5389ec8701a3deac.js → connect-repositories-77591110836bdf03.js} +1 -1
- package/dist/dash/public/assets/chunks/credentials-list-e005a0783ec93465.js +2 -0
- package/dist/dash/public/assets/chunks/{custom-range-4761ab14f05149df.js → custom-range-463e119af4681c61.js} +1 -1
- package/dist/dash/public/assets/chunks/{editor-bfe8cd854f8001be.js → editor-804b84f4fe6539cd.js} +4 -4
- package/dist/dash/public/assets/chunks/{engines-list-f1191390f5715b39.js → engines-list-ceab51f13c690e8c.js} +1 -1
- package/dist/dash/public/assets/chunks/{field-901f1f35c18c39c9.js → field-aa0a4b98a976781e.js} +1 -1
- package/dist/dash/public/assets/chunks/filter-91144ac2eec6297f.js +1 -0
- package/dist/dash/public/assets/chunks/format-105c706345987fb2.js +1 -0
- package/dist/dash/public/assets/chunks/heads-a42817b32d2d7f08.js +1 -0
- package/dist/dash/public/assets/chunks/{instructions-052fa45a9daf6db6.js → instructions-3a1dcaff2d868aa5.js} +1 -1
- package/dist/dash/public/assets/chunks/instructions-6c6f981fffaa31e4.js +1 -0
- package/dist/dash/public/assets/chunks/{list-1d259660d7612c5f.js → list-7270361464fc3c04.js} +1 -1
- package/dist/dash/public/assets/chunks/{mcp-list-e3bebbbe831393b8.js → mcp-list-2e715d48666b54ad.js} +1 -1
- package/dist/dash/public/assets/chunks/{models-list-44f857a469ca04d5.js → models-list-d3c40f94c761a6e5.js} +1 -1
- package/dist/dash/public/assets/chunks/paged-3ddb6077bef42752.js +1 -0
- package/dist/dash/public/assets/chunks/{platform-actions-d1426602049926d2.js → platform-actions-271ec3b99a64280b.js} +1 -1
- package/dist/dash/public/assets/chunks/runners-list-767e49c7d0ec833a.js +1 -0
- package/dist/dash/public/assets/chunks/{segmented-358ff2b4992b8384.js → segmented-de4386ccaac7304d.js} +1 -1
- package/dist/dash/public/assets/chunks/{select-7ae25fd8a7d6c338.js → select-a90307706cffa6e0.js} +1 -1
- package/dist/dash/public/assets/chunks/{sentinel-c972a33dc69a5135.js → sentinel-b5e032b38604dfd3.js} +1 -1
- package/dist/dash/public/assets/chunks/shared-init-7f81ae7bc8c82438.js +2 -0
- package/dist/dash/public/assets/chunks/shared-init-933c7f9ee85be766.js +5 -0
- package/dist/dash/public/assets/chunks/{tail-7c27aab8ba268bd9.js → tail-4891e727ee526792.js} +1 -1
- package/dist/dash/public/assets/chunks/task-actions-ce854925a2dc78fd.js +1 -0
- package/dist/dash/public/assets/chunks/task-ddfddeaf07fb684c.js +1 -0
- package/dist/dash/public/assets/chunks/task-view-c37dcee08f21a279.js +5 -0
- package/dist/dash/public/assets/chunks/tasks-list-baef587999f322d8.js +1 -0
- package/dist/dash/public/assets/chunks/{toolbar-a75d2570f07cbb70.js → toolbar-8d98313606ad8a2d.js} +1 -1
- package/dist/dash/public/assets/chunks/{versions-list-fc2e0d2a7382e049.js → versions-list-532690efd9f1b0ea.js} +1 -1
- package/dist/dash/public/assets/dash-49ca85b59ac65c20.css +1 -0
- package/dist/dash/public/assets/dash-account-edc56e85dbaaabe0.css +1 -0
- package/dist/dash/public/assets/dash-agents-edba57b67e4005d0.css +1 -0
- package/dist/dash/public/assets/dash-agents-new-fe22253fbada2fbf.css +1 -0
- package/dist/dash/public/assets/dash-agents-param-slug-adf52e9dacb2d825.css +1 -0
- package/dist/dash/public/assets/dash-agents-param-slug-edit-a2937a347689ef29.css +1 -0
- package/dist/dash/public/assets/dash-agents-param-slug-platforms-265ba13db32a460d.css +1 -0
- package/dist/dash/public/assets/dash-agents-param-slug-settings-8afc52eb0372bc4b.css +1 -0
- package/dist/dash/public/assets/dash-agents-param-slug-tasks-6193e646be68dbd2.css +1 -0
- package/dist/dash/public/assets/dash-agents-param-slug-usage-ceadb3a1c911c402.css +1 -0
- package/dist/dash/public/assets/dash-settings-cf1997cd7f72e518.css +1 -0
- package/dist/dash/public/assets/dash-settings-param-tab-b44dac8e79a560e6.css +1 -0
- package/dist/dash/public/assets/dash-tasks-916c7100a8058aa3.css +1 -0
- package/dist/dash/public/assets/dash-tasks-param-id-194a6ffc20e872f2.css +1 -0
- package/dist/dash/public/assets/dash-usage-40940b289f85e0b6.css +1 -0
- package/dist/dash/public/assets/pnext-client-13aee92bef5c9e3f.js +1 -0
- package/dist/dash/public/assets/pnext-client-1f2686b2044f0df6.js +1 -0
- package/dist/dash/public/assets/pnext-client-26130234ebad7067.js +1 -0
- package/dist/dash/public/assets/pnext-client-311e35b0076bf406.js +1 -0
- package/dist/dash/public/assets/pnext-client-4ade1bf75c9c3d87.js +1 -0
- package/dist/dash/public/assets/pnext-client-61cd31b687ede1da.js +1 -0
- package/dist/dash/public/assets/pnext-client-61db65dc4223217a.js +1 -0
- package/dist/dash/public/assets/pnext-client-6ea656e7705e3f2a.js +1 -0
- package/dist/dash/public/assets/pnext-client-7fd0f793f0322cb9.js +1 -0
- package/dist/dash/public/assets/pnext-client-88159c0840fcfa4a.js +1 -0
- package/dist/dash/public/assets/pnext-client-b03f0c47c066b4f3.js +1 -0
- package/dist/dash/public/assets/{pnext-client-1b9ab0963a8ff77b.js → pnext-client-d6478835f543f901.js} +1 -1
- package/dist/dash/public/assets/pnext-client-dadb8359021ed590.js +1 -0
- package/dist/dash/public/assets/pnext-client-de07532d6aaebf2c.js +1 -0
- package/dist/dash/public/assets/pnext-client-f87a31890c8ff224.js +1 -0
- package/dist/dash/public/assets/pnext-client-ffe1c123a8e2a350.js +1 -0
- package/dist/dash/server/bundle-0.1.6-b29ec45cb963d47f/entry.js +2 -0
- package/dist/{default-vYPT26DR.js → default-BMvUMTFp.js} +1 -1
- package/dist/default-B_nKaX0-.js +1 -0
- package/dist/{delete-D8gEwoOj.js → delete-Bjteibld.js} +2 -2
- package/dist/{delete-z1_86nf6.js → delete-riCIKZwj.js} +2 -2
- package/dist/{disable-DVKd-0Xb.js → disable-DQC56YFy.js} +1 -1
- package/dist/{discover-Dvr_3_Xr.js → discover-Qanr5TEO.js} +1 -1
- package/dist/{discover-Df-a8K4R.js → discover-lgTYwoQp.js} +2 -2
- package/dist/dispatch-BsW_1m7e.js +14 -0
- package/dist/{docs-DKJnqZqt.js → docs-DFs7lOJp.js} +1 -1
- package/dist/{docs-BX65z2Iu.js → docs-DKROso-4.js} +2 -2
- package/dist/{enable-C8Zf_wpN.js → enable-D2DqZvcU.js} +1 -1
- package/dist/{env-CRf6wkM2.js → env-YRY3I60r.js} +1 -1
- package/dist/exec-DuUkLMqg.js +11 -0
- package/dist/executor-vMppVLB6.js +10 -0
- package/dist/flow/builtin/review.js +1 -1
- package/dist/flow/index.d.ts +1 -1
- package/dist/flow/index.js +1 -1
- package/dist/{flow-17k25MHt.js → flow-DmERAnR8.js} +1 -1
- package/dist/{github-actions-DwUzm4hC.js → github-actions-C_NkHVJq.js} +1 -1
- package/dist/http-D01Udu4u.js +1 -0
- package/dist/{index-CZjFX5zV.d.ts → index-B1L4zXZH.d.ts} +2 -1
- package/dist/{init-CoMfFxbG.js → init-Bd6JHzBc.js} +1 -1
- package/dist/integrations-B2CavXR1.js +5 -0
- package/dist/integrations-D1Dwy1kt.js +1 -0
- package/dist/lib/broker.js +2 -2
- package/dist/{list-DX-z3SBp.js → list-4Uo-0v9s.js} +1 -1
- package/dist/{list-BAKvxSbh.js → list-B0ujEZhd.js} +3 -3
- package/dist/{list-BYiG8Zav.js → list-B5oa1Bhy.js} +2 -2
- package/dist/{list-BxEywhHU.js → list-BjE_l6la.js} +1 -1
- package/dist/{list-VToARh3C.js → list-Ck9ibCs1.js} +1 -1
- package/dist/{list-CIW2joV1.js → list-DhgK4Zc4.js} +1 -1
- package/dist/{list-DpCf4G-H.js → list-KvL7AUhD.js} +2 -2
- package/dist/{list-C5w01-8q.js → list-byYLBl1U.js} +1 -1
- package/dist/{load-BpEsAn51.js → load-SnZd7xG1.js} +1 -1
- package/dist/{local-H3uvqEbq.js → local-BRy1EUq2.js} +1 -1
- package/dist/log-view-DeJstSkw.js +3 -0
- package/dist/{login-DkkslfBx.js → login-C-ahtDKV.js} +1 -1
- package/dist/{login-BFxX4jJy.js → login-zpwke8g1.js} +1 -1
- package/dist/{logout-BHAtw4Z8.js → logout-CI6Kf-T6.js} +1 -1
- package/dist/{maintenance-C5FklUw3.js → maintenance-BAzr9Jlr.js} +1 -1
- package/dist/{match-CXAjDhg7.js → match-DxV1d49D.js} +1 -1
- package/dist/{mcp-BgKb2Cdk.js → mcp-CmcL1MCG.js} +1 -1
- package/dist/{mcp-CCZOAo06.js → mcp-mhXwtGQT.js} +1 -1
- package/dist/{migrate-N-85_N7J.js → migrate-Czh3TEK5.js} +1 -1
- package/dist/{migrate-C4vM7DQN.js → migrate-w7KfzUAR.js} +1 -1
- package/dist/{model-Bs1StDo3.js → model-JRoTH9QK.js} +1 -1
- package/dist/models-C-S7HqSb.js +1 -0
- package/dist/{prompt-CEuBMNhk.js → prompt-CMXmt2l9.js} +4 -4
- package/dist/{push-CUC55Bqd.js → push-B8BhTyZs.js} +1 -1
- package/dist/queue-CirjEskI.js +117 -0
- package/dist/refresh-Bmy2r1Ee.js +1 -0
- package/dist/{remote-miQNTVRa.js → remote-CxFnEjZl.js} +1 -1
- package/dist/{remove-B93LNkZI.js → remove-C15WLaXT.js} +1 -1
- package/dist/{remove-C5_xggx7.js → remove-CTZYjjSr.js} +1 -1
- package/dist/{remove-eQ8y5C5p.js → remove-CTl-H0f0.js} +1 -1
- package/dist/{remove-CuH8a3L9.js → remove-DX2FVo5b.js} +1 -1
- package/dist/rename-D1g4TnHQ.js +1 -0
- package/dist/{result-BEtQZHaY.js → result-D49VN8PM.js} +3 -3
- package/dist/result-DGWyUHYU.js +18 -0
- package/dist/{resume-DYzKvyEw.js → resume-ywzc7z6A.js} +2 -2
- package/dist/{review-oIBeECZE.js → review-ZC0xG8XY.js} +2 -2
- package/dist/{rotate-key-IdMYH7gg.js → rotate-key-Bf8_99ck.js} +1 -1
- package/dist/{run-CTtd0Znc.js → run-D7SJ-ieT.js} +2 -2
- package/dist/run-DoRQSC_K.js +2 -0
- package/dist/{run-CawRGnOg.js → run-ukCf2Mdy.js} +1 -1
- package/dist/runner-D-REfOUe.js +1 -0
- package/dist/{runner-sUpWJ_k0.js → runner-wDYhkVsM.js} +1 -1
- package/dist/schema-DoNO0dPh.js +1 -0
- package/dist/sdk.d.ts +4 -2
- package/dist/sdk.js +1 -1
- package/dist/serve-BJ_Mbm2m.js +8 -0
- package/dist/{serve-CPnmrKyf.js → serve-C1MMhM1F.js} +2 -2
- package/dist/{serve-GmRO89s5.js → serve-DtrOHaoS.js} +2 -2
- package/dist/{serve-CE8YV2e9.js → serve-P9pFkEnE.js} +1 -1
- package/dist/{serve-BTeomYxW.js → serve-yjSw0B1a.js} +1 -1
- package/dist/{server-Kb22cWfF.js → server-DDWTnmbx.js} +1 -1
- package/dist/{setup-host-GFTUzzZJ.js → setup-host-L6Rnn5Cz.js} +1 -1
- package/dist/{shared-DVtzWhUT.js → shared-XsUX_ZZb.js} +1 -1
- package/dist/{show-COTZEYgc.js → show-CU-jqJ90.js} +1 -1
- package/dist/{show-CMUg8SJu.js → show-DVJmB2u-.js} +1 -1
- package/dist/{status-D26U--p8.js → status-CBydR7LE.js} +1 -1
- package/dist/{steer-C6uARLp5.js → steer-Cm_sHZqs.js} +2 -2
- package/dist/{stop-BrGI3hSS.js → stop-DJS7DAPJ.js} +1 -1
- package/dist/{stop-ByCAlbmN.js → stop-TrebIIuv.js} +2 -2
- package/dist/store-BrNMqJgk.js +42 -0
- package/dist/store-j8icrG0v.js +19 -0
- package/dist/task-C8lmcNsf.js +1 -0
- package/dist/{task-DeglY79z.js → task-CpUI19o2.js} +4 -4
- package/dist/task-CvSqiwxo.js +1 -0
- package/dist/{test-NEbhlxvo.js → test-CDKz4jY_.js} +1 -1
- package/dist/{tools-D0Zfs8Hx.js → tools-DBFeoosk.js} +1 -1
- package/dist/{types-I5Cwtl_K.d.ts → types-DMGBYB_K.d.ts} +3 -1
- package/dist/{unalias-C9NqmSDq.js → unalias-BfQFBnuK.js} +1 -1
- package/dist/{update-BTxYQj7Z.js → update-C4FFOie8.js} +1 -1
- package/dist/{upgrade-hA0yWBvx.js → upgrade-DLJqMnUQ.js} +2 -2
- package/dist/{usage-BhqoCjvE.js → usage-CSh-xwQ2.js} +1 -1
- package/dist/{usage-C4d9X2Uq.js → usage-D8mc4qXK.js} +1 -1
- package/dist/{watch-DtRuC0Wc.js → watch-CQu-tJKZ.js} +2 -2
- package/dist/{watch-CSdj24ct.js → watch-DmwaEvoi.js} +2 -2
- package/dist/{wire-BeT1Axeo.js → wire-DzGLZ3-O.js} +1 -1
- package/dist/worker-BLKTMLqa.js +1 -0
- package/dist/worker-nHemduM_.js +9 -0
- package/dist/{workflow-Dcmdooi8.js → workflow-IrouAus_.js} +1 -1
- package/docs/cli.md +145 -0
- package/docs/mcp.md +1 -1
- package/migrations/0000_initial.sql +8 -0
- package/migrations/meta/0000_snapshot.json +75 -1
- package/migrations/meta/_journal.json +1 -1
- package/package.json +3 -2
- package/plugins/agents/skills/coder/SKILL.md +1 -0
- package/plugins/claude/.claude-plugin/plugin.json +1 -1
- package/plugins/claude/skills/dispatch/SKILL.md +1 -1
- package/plugins/cursor/.cursor-plugin/plugin.json +1 -1
- package/plugins/cursor/skills/coder/SKILL.md +1 -0
- package/src/client/index.ts +10 -2
- package/src/client/types.ts +18 -0
- package/src/core/defaults.ts +36 -0
- package/src/core/task/log-view.ts +120 -6
- package/src/server/dash/app/dash/agents/(list)/agent-menu.tsx +4 -0
- package/src/server/dash/app/dash/agents/(list)/agents-grid.tsx +18 -35
- package/src/server/dash/app/dash/agents/(list)/loading.tsx +7 -1
- package/src/server/dash/app/dash/agents/[slug]/(tabs)/layout.tsx +2 -1
- package/src/server/dash/app/dash/layout.css +58 -1
- package/src/server/dash/app/dash/layout.tsx +29 -7
- package/src/server/dash/app/dash/settings/[tab]/credentials-list.tsx +20 -13
- package/src/server/dash/app/dash/settings/[tab]/page.tsx +1 -1
- package/src/server/dash/app/dash/settings/[tab]/runners-list.tsx +13 -12
- package/src/server/dash/app/dash/tasks/[id]/activity.tsx +49 -4
- package/src/server/dash/app/dash/tasks/[id]/task-actions.tsx +43 -6
- package/src/server/dash/app/dash/tasks/[id]/task-view.css +52 -31
- package/src/server/dash/app/dash/tasks/[id]/task-view.tsx +143 -51
- package/src/server/dash/app/dash/tasks/composer.css +4 -0
- package/src/server/dash/app/dash/tasks/composer.tsx +6 -5
- package/src/server/dash/app/dash/tasks/list/task.ts +29 -1
- package/src/server/dash/app/dash/tasks/list/tasks-list.css +20 -7
- package/src/server/dash/app/dash/tasks/list/tasks-list.tsx +256 -109
- package/src/server/dash/app/dash/tasks/list/tasks-section.tsx +9 -13
- package/src/server/dash/app/dash/tasks/page.tsx +3 -35
- package/src/server/dash/comps/frame/loading-card.tsx +4 -3
- package/src/server/dash/comps/frame/page-head.css +10 -0
- package/src/server/dash/comps/frame/page-head.tsx +3 -2
- package/src/server/dash/comps/frame/task-toasts.tsx +196 -50
- package/src/server/dash/comps/nav/side-toggle.tsx +16 -5
- package/src/server/dash/comps/ui/card.css +1 -0
- package/src/server/dash/comps/ui/filter.css +64 -0
- package/src/server/dash/comps/ui/filter.tsx +336 -0
- package/src/server/dash/comps/ui/icons.ts +2 -0
- package/src/server/dash/comps/ui/menu.tsx +9 -1
- package/src/server/dash/comps/ui/select.tsx +2 -2
- package/src/server/dash/comps/ui/toast.css +3 -2
- package/src/server/dash/comps/ui/toolbar.css +14 -0
- package/src/server/dash/utils/client.ts +21 -0
- package/src/server/dash/utils/format.ts +12 -4
- package/src/server/dash/utils/paged.ts +14 -6
- package/dist/actions-Mk3FSlpJ.js +0 -20
- package/dist/archive-sweep-CtBcARgN.js +0 -1
- package/dist/auth-BFny--17.js +0 -1
- package/dist/auth-DWHIzqbA.js +0 -1
- package/dist/credentials-B1jv6dkg.js +0 -1
- package/dist/dash/public/assets/chunks/agents-grid-951584b6f4c4314e.js +0 -1
- package/dist/dash/public/assets/chunks/composer-5534be50bc12385e.js +0 -1
- package/dist/dash/public/assets/chunks/composer-d10d4b1d54c4f751.js +0 -1
- package/dist/dash/public/assets/chunks/credentials-list-bc5bfcab058176c5.js +0 -2
- package/dist/dash/public/assets/chunks/format-eb03fc9d9744d960.js +0 -1
- package/dist/dash/public/assets/chunks/heads-f3bcd289663d48fa.js +0 -1
- package/dist/dash/public/assets/chunks/instructions-d0a4b0d95009c262.js +0 -1
- package/dist/dash/public/assets/chunks/paged-bc6fa0c2b9d52ed7.js +0 -1
- package/dist/dash/public/assets/chunks/runners-list-1901af8a5dea1f09.js +0 -1
- package/dist/dash/public/assets/chunks/shared-init-88cce66bb3cfe1e5.js +0 -5
- package/dist/dash/public/assets/chunks/shared-init-ffb3397e494137c9.js +0 -2
- package/dist/dash/public/assets/chunks/task-actions-8e1d93c788d001df.js +0 -1
- package/dist/dash/public/assets/chunks/task-fa8b82e95e771c4a.js +0 -1
- package/dist/dash/public/assets/chunks/task-view-6d7618d2820a5cb4.js +0 -3
- package/dist/dash/public/assets/chunks/tasks-list-f4784e5cbd0ed785.js +0 -1
- package/dist/dash/public/assets/dash-9e02d5d1a6d42ee3.css +0 -1
- package/dist/dash/public/assets/dash-account-04859899c1838ada.css +0 -1
- package/dist/dash/public/assets/dash-agents-9e678137267dec07.css +0 -1
- package/dist/dash/public/assets/dash-agents-new-26fa27b17ef9b8d8.css +0 -1
- package/dist/dash/public/assets/dash-agents-param-slug-b975c48f8abf3444.css +0 -1
- package/dist/dash/public/assets/dash-agents-param-slug-edit-e13fda599bb04843.css +0 -1
- package/dist/dash/public/assets/dash-agents-param-slug-platforms-70292932cb27bc96.css +0 -1
- package/dist/dash/public/assets/dash-agents-param-slug-settings-71f9a86251723fcc.css +0 -1
- package/dist/dash/public/assets/dash-agents-param-slug-tasks-fb8eb2ed71006601.css +0 -1
- package/dist/dash/public/assets/dash-agents-param-slug-usage-7c8740f1cdd52c71.css +0 -1
- package/dist/dash/public/assets/dash-settings-8eb818da462227e8.css +0 -1
- package/dist/dash/public/assets/dash-settings-param-tab-849a1a9542e273f5.css +0 -1
- package/dist/dash/public/assets/dash-tasks-81e510e0b6931b42.css +0 -1
- package/dist/dash/public/assets/dash-tasks-param-id-bbd2a83342f2ec10.css +0 -1
- package/dist/dash/public/assets/dash-usage-8e0259e03eaed1bd.css +0 -1
- package/dist/dash/public/assets/pnext-client-03b03b254e525e82.js +0 -1
- package/dist/dash/public/assets/pnext-client-1c7859bb888f4ef0.js +0 -1
- package/dist/dash/public/assets/pnext-client-3c748afe963fb05d.js +0 -1
- package/dist/dash/public/assets/pnext-client-4f47c2cae220f107.js +0 -1
- package/dist/dash/public/assets/pnext-client-6ab9fd9b53b794d2.js +0 -1
- package/dist/dash/public/assets/pnext-client-6c241786342498e4.js +0 -1
- package/dist/dash/public/assets/pnext-client-80b56d420f02b808.js +0 -1
- package/dist/dash/public/assets/pnext-client-83135c17bae850a3.js +0 -1
- package/dist/dash/public/assets/pnext-client-8e6fa4302ae0396f.js +0 -1
- package/dist/dash/public/assets/pnext-client-932c9d8cc0717fc8.js +0 -1
- package/dist/dash/public/assets/pnext-client-a42ae63d4de113f9.js +0 -1
- package/dist/dash/public/assets/pnext-client-d2ee6f8c1e337032.js +0 -1
- package/dist/dash/public/assets/pnext-client-d513f65ec23b7f20.js +0 -1
- package/dist/dash/public/assets/pnext-client-ecb88e2a8a109954.js +0 -1
- package/dist/dash/public/assets/pnext-client-f1545ee6270bbf9a.js +0 -1
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/boot-B2MFTRO2.js +0 -30
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/build-tier-XJJSL5FR.js +0 -2704
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-2HFY3DQT.js +0 -208
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-2ICEVELW.js +0 -834
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-3UPROT2C.js +0 -35
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-4P5CMIYT.js +0 -1582
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-4TKZKZ3Q.js +0 -131
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-5RDEILQB.js +0 -437
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-62KEQM43.js +0 -25
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-6KQSWT6D.js +0 -831
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-7DCNCW6O.js +0 -724
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-B4THCTQP.js +0 -22
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-C2LIV2MM.js +0 -172
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-CCATPVTW.js +0 -378
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-COXJAPTU.js +0 -89
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-E6IXL2NJ.js +0 -6270
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-FLGRBFAH.js +0 -1198
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-FTJVHFWD.js +0 -61
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-H523KSIH.js +0 -5151
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-HT6KKX6A.js +0 -20
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-JESFYECC.js +0 -438
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-JRPJM2XY.js +0 -17
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-L2IWDUXG.js +0 -107
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-L5P4Y4UC.js +0 -183
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-NQE46AZN.js +0 -647
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-PA4QEARJ.js +0 -129
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-PZ5AXOLW.js +0 -7146
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-SNVPTULL.js +0 -2397
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-T3QZT3PG.js +0 -220
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-VC5O2SDP.js +0 -72
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-WZX4V6CM.js +0 -231
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-XUUIDXY5.js +0 -627
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-ZHFDO3PR.js +0 -265
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/compile-CE2DN7ZA.js +0 -18
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/config-UREY7XJT.js +0 -16
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/config-loader-UI2XE3PZ.js +0 -17
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/entry.js +0 -219
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/generate-I2PPTDFD.js +0 -16
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/modules-UVOCE4C2.js +0 -48
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/pipeline-UW47K537.js +0 -963
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/proxy-ITGOVJBW.js +0 -26
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/register-4SA55SWT.js +0 -12579
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/router-JNKHLBCZ.js +0 -505
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/routes-PD6J2NXW.js +0 -54
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/tsconfig-defaults-ZXEH7RQK.js +0 -15
- package/dist/default-Bobztoxf.js +0 -1
- package/dist/dispatch-BKeAch9E.js +0 -14
- package/dist/exec-RZFLclKX.js +0 -11
- package/dist/executor-BvAA7Cgw.js +0 -10
- package/dist/http-Bkg_OQ6r.js +0 -1
- package/dist/integrations-5xCaXSd-.js +0 -1
- package/dist/integrations-BAgdVDhj.js +0 -5
- package/dist/log-view-dg0TlKLA.js +0 -1
- package/dist/models-_5LVGC3m.js +0 -1
- package/dist/queue-6io_NOP3.js +0 -116
- package/dist/refresh-BIrmrWYq.js +0 -1
- package/dist/rename-CYfy03FE.js +0 -1
- package/dist/result-BzaM3inj.js +0 -15
- package/dist/run-BDYl0CKl.js +0 -2
- package/dist/runner-D7ScbIHJ.js +0 -1
- package/dist/schema-CU2iFkp8.js +0 -1
- package/dist/serve-CQKZxzFE.js +0 -4
- package/dist/store-B94tSate.js +0 -42
- package/dist/store-DzqXS2wT.js +0 -8
- package/dist/task-C6VAg5WU.js +0 -1
- package/dist/task-CgOKgkEG.js +0 -1
- package/dist/worker-CXndxmGF.js +0 -9
- package/dist/worker-DX7P9kWl.js +0 -1
- package/src/server/dash/app/dash/token-from-hash.tsx +0 -17
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
import { createRequire as __coderRequire } from "node:module";
|
|
2
|
-
const __pnextRoot = __coderRequire(import.meta.url).resolve("@wular/pnext").replace(/\/src\/index\.ts$/, "");
|
|
3
|
-
import { createRequire as __pnextCreateRequire } from "node:module";
|
|
4
|
-
const require = __pnextCreateRequire(("file://" + __pnextRoot + "/package.json"));
|
|
5
|
-
import {
|
|
6
|
-
getNextConfig
|
|
7
|
-
} from "./chunk-2ICEVELW.js";
|
|
8
|
-
|
|
9
|
-
// ../node_modules/.bun/@wular+pnext@0.1.5+62547eec5a2188e3/node_modules/@wular/pnext/src/compat/mdx/compile.ts
|
|
10
|
-
import { existsSync } from "node:fs";
|
|
11
|
-
import { createRequire } from "node:module";
|
|
12
|
-
import path from "node:path";
|
|
13
|
-
import { pathToFileURL } from "node:url";
|
|
14
|
-
var cachedModule;
|
|
15
|
-
async function loadMdx() {
|
|
16
|
-
if (cachedModule !== void 0) return cachedModule;
|
|
17
|
-
try {
|
|
18
|
-
const specifier = "@mdx-js/mdx";
|
|
19
|
-
cachedModule = await import(
|
|
20
|
-
/* @vite-ignore */
|
|
21
|
-
specifier
|
|
22
|
-
);
|
|
23
|
-
} catch {
|
|
24
|
-
cachedModule = null;
|
|
25
|
-
}
|
|
26
|
-
return cachedModule;
|
|
27
|
-
}
|
|
28
|
-
function mdxOptionsFromConfig() {
|
|
29
|
-
const config = getNextConfig();
|
|
30
|
-
return config.mdxOptions ?? {};
|
|
31
|
-
}
|
|
32
|
-
function resolveMdxComponents(root) {
|
|
33
|
-
const bases = [root, path.join(root, "src")];
|
|
34
|
-
const names = [
|
|
35
|
-
"mdx-components.tsx",
|
|
36
|
-
"mdx-components.ts",
|
|
37
|
-
"mdx-components.jsx",
|
|
38
|
-
"mdx-components.js",
|
|
39
|
-
"mdx-components.mjs"
|
|
40
|
-
];
|
|
41
|
-
for (const base of bases) {
|
|
42
|
-
for (const name of names) {
|
|
43
|
-
const candidate = path.join(base, name);
|
|
44
|
-
if (existsSync(candidate)) return candidate;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
return void 0;
|
|
48
|
-
}
|
|
49
|
-
function interopDefault(module) {
|
|
50
|
-
return module?.default ?? module;
|
|
51
|
-
}
|
|
52
|
-
var UNRESOLVED_PLUGIN = Symbol("pnext.mdx.unresolved-plugin");
|
|
53
|
-
async function resolvePlugin(entry, resolveFrom) {
|
|
54
|
-
if (typeof entry === "function") return entry;
|
|
55
|
-
if (typeof entry === "string") {
|
|
56
|
-
return loadPlugin(entry, resolveFrom);
|
|
57
|
-
}
|
|
58
|
-
if (Array.isArray(entry) && typeof entry[0] === "string") {
|
|
59
|
-
const tuple = entry;
|
|
60
|
-
const plugin = await loadPlugin(tuple[0], resolveFrom);
|
|
61
|
-
if (plugin === UNRESOLVED_PLUGIN) return UNRESOLVED_PLUGIN;
|
|
62
|
-
return [plugin, ...tuple.slice(1)];
|
|
63
|
-
}
|
|
64
|
-
return entry;
|
|
65
|
-
}
|
|
66
|
-
async function loadPlugin(name, resolveFrom) {
|
|
67
|
-
let resolved;
|
|
68
|
-
try {
|
|
69
|
-
resolved = resolveFrom.resolve(name);
|
|
70
|
-
} catch {
|
|
71
|
-
console.warn(
|
|
72
|
-
`pnext: MDX plugin '${name}' is configured but not installed; skipping it. Install it to apply this remark/rehype/recma plugin.`
|
|
73
|
-
);
|
|
74
|
-
return UNRESOLVED_PLUGIN;
|
|
75
|
-
}
|
|
76
|
-
try {
|
|
77
|
-
return interopDefault(await import(pathToFileURL(resolved).href));
|
|
78
|
-
} catch (error) {
|
|
79
|
-
console.warn(
|
|
80
|
-
`pnext: MDX plugin '${name}' failed to load and was skipped: ${error instanceof Error ? error.message : String(error)}. Ensure it is installed in the app\u2019s node_modules (not only Bun\u2019s auto-install cache).`
|
|
81
|
-
);
|
|
82
|
-
return UNRESOLVED_PLUGIN;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
async function resolvePlugins(plugins, resolveFrom) {
|
|
86
|
-
const resolved = await Promise.all(plugins.map((entry) => resolvePlugin(entry, resolveFrom)));
|
|
87
|
-
return resolved.filter((entry) => entry !== UNRESOLVED_PLUGIN);
|
|
88
|
-
}
|
|
89
|
-
async function compileMdx(source, filePath, root) {
|
|
90
|
-
const mdx = await loadMdx();
|
|
91
|
-
if (!mdx) {
|
|
92
|
-
throw new Error(
|
|
93
|
-
"MDX support requires the '@mdx-js/mdx' package. Install it to render .mdx files."
|
|
94
|
-
);
|
|
95
|
-
}
|
|
96
|
-
const userOptions = mdxOptionsFromConfig();
|
|
97
|
-
const provider = resolveMdxComponents(root);
|
|
98
|
-
const resolveFrom = createRequire(path.join(root, "noop.js"));
|
|
99
|
-
const [remarkPlugins, rehypePlugins, recmaPlugins] = await Promise.all([
|
|
100
|
-
resolvePlugins(userOptions.remarkPlugins ?? [], resolveFrom),
|
|
101
|
-
resolvePlugins(userOptions.rehypePlugins ?? [], resolveFrom),
|
|
102
|
-
resolvePlugins(userOptions.recmaPlugins ?? [], resolveFrom)
|
|
103
|
-
]);
|
|
104
|
-
const compiled = await mdx.compile(
|
|
105
|
-
{ value: source, path: filePath },
|
|
106
|
-
{
|
|
107
|
-
// Emit JSX; esbuild's `jsx` loader performs the final transform with
|
|
108
|
-
// jsxImportSource: 'preact', matching every other compile site.
|
|
109
|
-
jsx: true,
|
|
110
|
-
jsxImportSource: "preact",
|
|
111
|
-
// Full MDX (not just markdown) so `import`/`export` and JSX in `.mdx` work.
|
|
112
|
-
format: "mdx",
|
|
113
|
-
// Development positions off — matches production build output.
|
|
114
|
-
development: false,
|
|
115
|
-
remarkPlugins,
|
|
116
|
-
rehypePlugins,
|
|
117
|
-
recmaPlugins,
|
|
118
|
-
...userOptions.remarkRehypeOptions ? { remarkRehypeOptions: userOptions.remarkRehypeOptions } : {},
|
|
119
|
-
// Only wire a components provider when the app supplies one; otherwise MDX
|
|
120
|
-
// emits plain host elements (the mdx-no-mdx-components contract).
|
|
121
|
-
...userOptions.providerImportSource ? { providerImportSource: userOptions.providerImportSource } : provider ? { providerImportSource: provider } : {}
|
|
122
|
-
}
|
|
123
|
-
);
|
|
124
|
-
return { code: compiled.toString() };
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
export {
|
|
128
|
-
mdxOptionsFromConfig,
|
|
129
|
-
resolveMdxComponents,
|
|
130
|
-
compileMdx
|
|
131
|
-
};
|
|
@@ -1,437 +0,0 @@
|
|
|
1
|
-
import { createRequire as __coderRequire } from "node:module";
|
|
2
|
-
const __pnextRoot = __coderRequire(import.meta.url).resolve("@wular/pnext").replace(/\/src\/index\.ts$/, "");
|
|
3
|
-
import { createRequire as __pnextCreateRequire } from "node:module";
|
|
4
|
-
const require = __pnextCreateRequire(("file://" + __pnextRoot + "/package.json"));
|
|
5
|
-
|
|
6
|
-
// ../node_modules/.bun/@wular+pnext@0.1.5+62547eec5a2188e3/node_modules/@wular/pnext/src/render/postpone.ts
|
|
7
|
-
var postponeSymbol = Symbol.for("pnext.postpone");
|
|
8
|
-
var _a, _b;
|
|
9
|
-
var PostponeError = class extends (_b = Error, _a = postponeSymbol, _b) {
|
|
10
|
-
constructor(api) {
|
|
11
|
-
super(`${api} postponed for partial prerendering`);
|
|
12
|
-
this.api = api;
|
|
13
|
-
this[_a] = true;
|
|
14
|
-
this.name = "PostponeError";
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
function isPostpone(error) {
|
|
18
|
-
return typeof error === "object" && error !== null && postponeSymbol in error;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
// ../node_modules/.bun/@wular+pnext@0.1.5+62547eec5a2188e3/node_modules/@wular/pnext/src/render/ppr.ts
|
|
22
|
-
import { AsyncLocalStorage } from "node:async_hooks";
|
|
23
|
-
var PRERENDER_STORAGE = Symbol.for("pnext.prerenderStorage");
|
|
24
|
-
var prerenderStorage = globalThis[PRERENDER_STORAGE] ??= new AsyncLocalStorage();
|
|
25
|
-
var CSR_BAILOUT_STORAGE = Symbol.for("pnext.csrBailoutStorage");
|
|
26
|
-
var csrBailoutStorage = globalThis[CSR_BAILOUT_STORAGE] ??= new AsyncLocalStorage();
|
|
27
|
-
var prerenderDynamicTrackerStorage = new AsyncLocalStorage();
|
|
28
|
-
async function trackPrerenderDynamic(callback) {
|
|
29
|
-
const tracker = { dynamic: false };
|
|
30
|
-
const value = await prerenderDynamicTrackerStorage.run(tracker, callback);
|
|
31
|
-
return { value, dynamic: tracker.dynamic };
|
|
32
|
-
}
|
|
33
|
-
function markPrerenderDynamic() {
|
|
34
|
-
const tracker = prerenderDynamicTrackerStorage.getStore();
|
|
35
|
-
if (tracker) tracker.dynamic = true;
|
|
36
|
-
}
|
|
37
|
-
var SHELL_SOURCES = Symbol.for("pnext.shellDynamicSources");
|
|
38
|
-
function shellSourceState() {
|
|
39
|
-
const root = globalThis;
|
|
40
|
-
return root[SHELL_SOURCES] ??= {
|
|
41
|
-
active: false,
|
|
42
|
-
cacheIO: false,
|
|
43
|
-
nonParamsRequest: false
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
function recordShellRequestApi(api) {
|
|
47
|
-
const state = shellSourceState();
|
|
48
|
-
if (state.active && api !== "params") state.nonParamsRequest = true;
|
|
49
|
-
}
|
|
50
|
-
function recordShellCacheIO() {
|
|
51
|
-
const state = shellSourceState();
|
|
52
|
-
if (state.active) state.cacheIO = true;
|
|
53
|
-
}
|
|
54
|
-
function runInPrerender(callback, options = {}) {
|
|
55
|
-
const controller = new AbortController();
|
|
56
|
-
activePrerenderControllers().add(controller);
|
|
57
|
-
const scope = {
|
|
58
|
-
signal: controller.signal,
|
|
59
|
-
abort: () => controller.abort(),
|
|
60
|
-
...options.runtimePrefetch ? { runtimePrefetch: true, awaitedRuntimeApi: false } : {},
|
|
61
|
-
...options.prefetchShell ? { prefetchShell: true } : {},
|
|
62
|
-
...options.taskBoundary ? { taskBoundary: true } : {}
|
|
63
|
-
};
|
|
64
|
-
return prerenderStorage.run(scope, callback);
|
|
65
|
-
}
|
|
66
|
-
var ACTIVE_PRERENDER_CONTROLLERS = Symbol.for("pnext.activePrerenderControllers");
|
|
67
|
-
function activePrerenderControllers() {
|
|
68
|
-
const root = globalThis;
|
|
69
|
-
return root[ACTIVE_PRERENDER_CONTROLLERS] ??= /* @__PURE__ */ new Set();
|
|
70
|
-
}
|
|
71
|
-
function isPrerendering() {
|
|
72
|
-
return prerenderStorage.getStore() !== void 0;
|
|
73
|
-
}
|
|
74
|
-
function runWithCsrBailout(callback) {
|
|
75
|
-
return csrBailoutStorage.run(true, callback);
|
|
76
|
-
}
|
|
77
|
-
function isCsrBailoutPrerender() {
|
|
78
|
-
return csrBailoutStorage.getStore() === true;
|
|
79
|
-
}
|
|
80
|
-
function isRuntimePrefetchPrerender() {
|
|
81
|
-
return prerenderStorage.getStore()?.runtimePrefetch === true;
|
|
82
|
-
}
|
|
83
|
-
function currentPrerenderScope() {
|
|
84
|
-
return prerenderStorage.getStore();
|
|
85
|
-
}
|
|
86
|
-
function completePrerender(scope) {
|
|
87
|
-
if (!scope) return;
|
|
88
|
-
scope.abort();
|
|
89
|
-
}
|
|
90
|
-
var taskPostponeSymbol = Symbol.for("pnext.taskPostpone");
|
|
91
|
-
function isTaskPostpone(error) {
|
|
92
|
-
return isPostpone(error) && taskPostponeSymbol in error;
|
|
93
|
-
}
|
|
94
|
-
function taskPostponeError() {
|
|
95
|
-
const error = new PostponeError("task");
|
|
96
|
-
Object.defineProperty(error, taskPostponeSymbol, { value: true });
|
|
97
|
-
return error;
|
|
98
|
-
}
|
|
99
|
-
function isTaskBoundaryPrerender() {
|
|
100
|
-
return prerenderStorage.getStore()?.taskBoundary === true;
|
|
101
|
-
}
|
|
102
|
-
var taskBoundaryArmedStorage = new AsyncLocalStorage();
|
|
103
|
-
var taskBoundarySuspendedStorage = new AsyncLocalStorage();
|
|
104
|
-
function runWithTaskBoundaryArmed(callback) {
|
|
105
|
-
return taskBoundaryArmedStorage.run(true, callback);
|
|
106
|
-
}
|
|
107
|
-
function runWithTaskBoundarySuspended(callback) {
|
|
108
|
-
return taskBoundarySuspendedStorage.run(true, callback);
|
|
109
|
-
}
|
|
110
|
-
var useCacheWrapperSymbol = Symbol.for("pnext.compat.useCacheWrapper");
|
|
111
|
-
var useCacheMemoWrappedSymbol = Symbol.for("pnext.compat.useCacheMemoWrapped");
|
|
112
|
-
function isCachedComponent(component) {
|
|
113
|
-
if (typeof component !== "function") return false;
|
|
114
|
-
const tagged = component;
|
|
115
|
-
return tagged[useCacheWrapperSymbol] === true || tagged[useCacheMemoWrappedSymbol] === true;
|
|
116
|
-
}
|
|
117
|
-
function awaitAtTaskBoundary(value) {
|
|
118
|
-
if (!isTaskBoundaryPrerender()) return value;
|
|
119
|
-
if (taskBoundaryArmedStorage.getStore() !== true) return value;
|
|
120
|
-
if (taskBoundarySuspendedStorage.getStore() === true) return value;
|
|
121
|
-
if (typeof value?.then !== "function") return value;
|
|
122
|
-
const deadline = taskDeadline();
|
|
123
|
-
return Promise.race([value, deadline.promise]).finally(
|
|
124
|
-
deadline.cancel
|
|
125
|
-
);
|
|
126
|
-
}
|
|
127
|
-
var MAX_CACHE_FILL_DEFERRALS = 50;
|
|
128
|
-
var CACHE_FILL_STATE = Symbol.for("pnext.prerenderCacheFills");
|
|
129
|
-
function cacheFillState() {
|
|
130
|
-
const root = globalThis;
|
|
131
|
-
return root[CACHE_FILL_STATE] ??= { pending: 0, waiters: [] };
|
|
132
|
-
}
|
|
133
|
-
function trackPrerenderCacheFill(fill) {
|
|
134
|
-
recordShellCacheIO();
|
|
135
|
-
const state = cacheFillState();
|
|
136
|
-
state.pending += 1;
|
|
137
|
-
const settled = () => {
|
|
138
|
-
state.pending -= 1;
|
|
139
|
-
if (state.pending > 0) return;
|
|
140
|
-
const waiters = state.waiters;
|
|
141
|
-
state.waiters = [];
|
|
142
|
-
for (const waiter of waiters) waiter();
|
|
143
|
-
};
|
|
144
|
-
fill.then(settled, settled);
|
|
145
|
-
return fill;
|
|
146
|
-
}
|
|
147
|
-
var MICROTASK_DRAIN_TURNS = 1e3;
|
|
148
|
-
function taskDeadline() {
|
|
149
|
-
let cancelled = false;
|
|
150
|
-
const promise = new Promise((_resolve, reject) => {
|
|
151
|
-
let deferrals = 0;
|
|
152
|
-
const drain = (remaining) => {
|
|
153
|
-
if (cancelled) return;
|
|
154
|
-
if (remaining === 0) {
|
|
155
|
-
const state = cacheFillState();
|
|
156
|
-
if (state.pending > 0 && deferrals < MAX_CACHE_FILL_DEFERRALS) {
|
|
157
|
-
deferrals += 1;
|
|
158
|
-
state.waiters.push(() => drain(MICROTASK_DRAIN_TURNS));
|
|
159
|
-
return;
|
|
160
|
-
}
|
|
161
|
-
reject(taskPostponeError());
|
|
162
|
-
return;
|
|
163
|
-
}
|
|
164
|
-
const next = () => void Promise.resolve().then(() => drain(remaining - 1));
|
|
165
|
-
if (typeof process?.nextTick === "function") process.nextTick(next);
|
|
166
|
-
else next();
|
|
167
|
-
};
|
|
168
|
-
drain(MICROTASK_DRAIN_TURNS);
|
|
169
|
-
});
|
|
170
|
-
promise.catch(() => void 0);
|
|
171
|
-
return {
|
|
172
|
-
promise,
|
|
173
|
-
cancel: () => {
|
|
174
|
-
cancelled = true;
|
|
175
|
-
}
|
|
176
|
-
};
|
|
177
|
-
}
|
|
178
|
-
function prerenderCompleteError(api) {
|
|
179
|
-
const message = `During prerendering, \`${api}\` rejects when the prerender is complete.`;
|
|
180
|
-
const error = new Error(message);
|
|
181
|
-
Object.defineProperty(error, Symbol.for("nodejs.util.inspect.custom"), {
|
|
182
|
-
value: () => {
|
|
183
|
-
const stackTail = (error.stack ?? "").split("\n").slice(1).join("\n");
|
|
184
|
-
return stackTail ? `Error: ${message}
|
|
185
|
-
${stackTail}` : `Error: ${message}`;
|
|
186
|
-
},
|
|
187
|
-
enumerable: false,
|
|
188
|
-
configurable: true
|
|
189
|
-
});
|
|
190
|
-
return error;
|
|
191
|
-
}
|
|
192
|
-
var HANGING_PROMISE = Symbol.for("pnext.hangingPromise");
|
|
193
|
-
function isHangingPromise(value) {
|
|
194
|
-
return typeof value === "object" && value !== null && value[HANGING_PROMISE] === true;
|
|
195
|
-
}
|
|
196
|
-
function hangingPromise(api) {
|
|
197
|
-
const scope = prerenderStorage.getStore();
|
|
198
|
-
if (!scope) {
|
|
199
|
-
const stray = Promise.reject(new PostponeError(api));
|
|
200
|
-
stray.catch(() => void 0);
|
|
201
|
-
return stray;
|
|
202
|
-
}
|
|
203
|
-
let settle;
|
|
204
|
-
const promise = new Promise((_resolve, reject) => {
|
|
205
|
-
settle = (error) => reject(error);
|
|
206
|
-
});
|
|
207
|
-
const rejectAwaited = () => settle?.(new PostponeError(api));
|
|
208
|
-
if (scope.signal.aborted) {
|
|
209
|
-
settle?.(prerenderCompleteError(api));
|
|
210
|
-
} else {
|
|
211
|
-
scope.signal.addEventListener("abort", () => settle?.(prerenderCompleteError(api)), {
|
|
212
|
-
once: true
|
|
213
|
-
});
|
|
214
|
-
}
|
|
215
|
-
promise.catch(() => void 0);
|
|
216
|
-
return new Proxy(promise, {
|
|
217
|
-
get(target, property) {
|
|
218
|
-
if (property === HANGING_PROMISE) return true;
|
|
219
|
-
if (property === "then") {
|
|
220
|
-
return (...args) => {
|
|
221
|
-
if (typeof args[0] === "function") rejectAwaited();
|
|
222
|
-
markPrerenderDynamic();
|
|
223
|
-
recordShellRequestApi(api);
|
|
224
|
-
return target.then(...args);
|
|
225
|
-
};
|
|
226
|
-
}
|
|
227
|
-
if (property === "catch") {
|
|
228
|
-
return (...args) => {
|
|
229
|
-
markPrerenderDynamic();
|
|
230
|
-
recordShellRequestApi(api);
|
|
231
|
-
return target.catch(...args);
|
|
232
|
-
};
|
|
233
|
-
}
|
|
234
|
-
if (property === "finally") {
|
|
235
|
-
return (...args) => {
|
|
236
|
-
markPrerenderDynamic();
|
|
237
|
-
recordShellRequestApi(api);
|
|
238
|
-
return target.finally(...args);
|
|
239
|
-
};
|
|
240
|
-
}
|
|
241
|
-
const value = Reflect.get(target, property, target);
|
|
242
|
-
return value;
|
|
243
|
-
}
|
|
244
|
-
});
|
|
245
|
-
}
|
|
246
|
-
var CACHE_COMPONENTS = Symbol.for("pnext.cacheComponents");
|
|
247
|
-
function setCacheComponents(enabled) {
|
|
248
|
-
;
|
|
249
|
-
globalThis[CACHE_COMPONENTS] = enabled;
|
|
250
|
-
}
|
|
251
|
-
function cacheComponents() {
|
|
252
|
-
return globalThis[CACHE_COMPONENTS] === true;
|
|
253
|
-
}
|
|
254
|
-
var REAL_NOW = Symbol.for("pnext.realNow");
|
|
255
|
-
function realNow() {
|
|
256
|
-
const stored = globalThis[REAL_NOW];
|
|
257
|
-
return typeof stored === "function" ? stored() : Date.now();
|
|
258
|
-
}
|
|
259
|
-
var USE_CACHE_SCOPE_STORAGE = Symbol.for("pnext.compat.useCacheScopeStorage");
|
|
260
|
-
function insideUseCacheScope() {
|
|
261
|
-
const storage = globalThis[USE_CACHE_SCOPE_STORAGE];
|
|
262
|
-
return storage?.getStore() !== void 0;
|
|
263
|
-
}
|
|
264
|
-
async function runWithPrerenderDeterminism(fn) {
|
|
265
|
-
if (!cacheComponents()) return fn();
|
|
266
|
-
const deterministicTime = 1;
|
|
267
|
-
const realRandom = Math.random;
|
|
268
|
-
const RealDate = Date;
|
|
269
|
-
globalThis[REAL_NOW] = RealDate.now.bind(RealDate);
|
|
270
|
-
let counter = 0;
|
|
271
|
-
Math.random = () => {
|
|
272
|
-
counter = counter * 1103515245 + 12345 & 2147483647;
|
|
273
|
-
return counter % 1e6 / 1e6;
|
|
274
|
-
};
|
|
275
|
-
const PatchedDate = function(...args) {
|
|
276
|
-
if (!new.target) return new RealDate(deterministicTime).toString();
|
|
277
|
-
if (args.length === 0) return new RealDate(deterministicTime);
|
|
278
|
-
return Reflect.construct(RealDate, args);
|
|
279
|
-
};
|
|
280
|
-
Object.setPrototypeOf(PatchedDate, RealDate);
|
|
281
|
-
Object.defineProperty(PatchedDate, "prototype", { value: RealDate.prototype });
|
|
282
|
-
PatchedDate.now = () => deterministicTime;
|
|
283
|
-
Date = PatchedDate;
|
|
284
|
-
try {
|
|
285
|
-
return await fn();
|
|
286
|
-
} finally {
|
|
287
|
-
Math.random = realRandom;
|
|
288
|
-
Date = RealDate;
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
function markRuntimeApiOnAwait(promise) {
|
|
292
|
-
const scope = prerenderStorage.getStore();
|
|
293
|
-
if (scope?.runtimePrefetch !== true) return promise;
|
|
294
|
-
return new Proxy(promise, {
|
|
295
|
-
get(target, property) {
|
|
296
|
-
if (property === "then") {
|
|
297
|
-
return (...args) => {
|
|
298
|
-
if (typeof args[0] === "function") scope.awaitedRuntimeApi = true;
|
|
299
|
-
return target.then(...args);
|
|
300
|
-
};
|
|
301
|
-
}
|
|
302
|
-
return Reflect.get(target, property, target);
|
|
303
|
-
}
|
|
304
|
-
});
|
|
305
|
-
}
|
|
306
|
-
function abortOnSynchronousPlatformIOAccess() {
|
|
307
|
-
const scope = prerenderStorage.getStore();
|
|
308
|
-
if (scope?.runtimePrefetch !== true || scope.awaitedRuntimeApi !== true) return;
|
|
309
|
-
if (insideUseCacheScope()) return;
|
|
310
|
-
throw new PostponeError("sync IO");
|
|
311
|
-
}
|
|
312
|
-
function patchMethod(owner, key, value) {
|
|
313
|
-
const hadOwn = Object.prototype.hasOwnProperty.call(owner, key);
|
|
314
|
-
const descriptor = Object.getOwnPropertyDescriptor(owner, key);
|
|
315
|
-
try {
|
|
316
|
-
Object.defineProperty(owner, key, {
|
|
317
|
-
value,
|
|
318
|
-
configurable: true,
|
|
319
|
-
writable: true,
|
|
320
|
-
enumerable: descriptor?.enumerable ?? false
|
|
321
|
-
});
|
|
322
|
-
} catch {
|
|
323
|
-
return () => void 0;
|
|
324
|
-
}
|
|
325
|
-
return () => {
|
|
326
|
-
try {
|
|
327
|
-
if (hadOwn && descriptor) Object.defineProperty(owner, key, descriptor);
|
|
328
|
-
else delete owner[key];
|
|
329
|
-
} catch {
|
|
330
|
-
}
|
|
331
|
-
};
|
|
332
|
-
}
|
|
333
|
-
var SYNC_IO_SHIMS = Symbol.for("pnext.runtimePrefetchSyncIoShims");
|
|
334
|
-
function syncIoShimState() {
|
|
335
|
-
const root = globalThis;
|
|
336
|
-
return root[SYNC_IO_SHIMS] ??= { depth: 0, restore: [] };
|
|
337
|
-
}
|
|
338
|
-
function installSyncIoShims() {
|
|
339
|
-
const state = syncIoShimState();
|
|
340
|
-
if (++state.depth > 1) return;
|
|
341
|
-
const root = globalThis;
|
|
342
|
-
const RealDate = Date;
|
|
343
|
-
const realRandom = Math.random;
|
|
344
|
-
const previousRealNow = root[REAL_NOW];
|
|
345
|
-
root[REAL_NOW] = RealDate.now.bind(RealDate);
|
|
346
|
-
const PatchedDate = function(...args) {
|
|
347
|
-
if (!new.target) {
|
|
348
|
-
abortOnSynchronousPlatformIOAccess();
|
|
349
|
-
return new RealDate().toString();
|
|
350
|
-
}
|
|
351
|
-
if (args.length === 0) {
|
|
352
|
-
abortOnSynchronousPlatformIOAccess();
|
|
353
|
-
return new RealDate();
|
|
354
|
-
}
|
|
355
|
-
return Reflect.construct(RealDate, args);
|
|
356
|
-
};
|
|
357
|
-
Object.setPrototypeOf(PatchedDate, RealDate);
|
|
358
|
-
Object.defineProperty(PatchedDate, "prototype", { value: RealDate.prototype });
|
|
359
|
-
PatchedDate.now = () => {
|
|
360
|
-
abortOnSynchronousPlatformIOAccess();
|
|
361
|
-
return RealDate.now();
|
|
362
|
-
};
|
|
363
|
-
Date = PatchedDate;
|
|
364
|
-
Math.random = () => {
|
|
365
|
-
abortOnSynchronousPlatformIOAccess();
|
|
366
|
-
return realRandom();
|
|
367
|
-
};
|
|
368
|
-
state.restore.push(() => {
|
|
369
|
-
Date = RealDate;
|
|
370
|
-
Math.random = realRandom;
|
|
371
|
-
root[REAL_NOW] = previousRealNow;
|
|
372
|
-
});
|
|
373
|
-
const perf = globalThis.performance;
|
|
374
|
-
if (perf) {
|
|
375
|
-
const realPerfNow = perf.now.bind(perf);
|
|
376
|
-
state.restore.push(
|
|
377
|
-
patchMethod(perf, "now", () => {
|
|
378
|
-
abortOnSynchronousPlatformIOAccess();
|
|
379
|
-
return realPerfNow();
|
|
380
|
-
})
|
|
381
|
-
);
|
|
382
|
-
}
|
|
383
|
-
const webCrypto = globalThis.crypto;
|
|
384
|
-
if (typeof webCrypto?.getRandomValues === "function") {
|
|
385
|
-
const realGetRandomValues = webCrypto.getRandomValues.bind(webCrypto);
|
|
386
|
-
state.restore.push(
|
|
387
|
-
patchMethod(webCrypto, "getRandomValues", (array) => {
|
|
388
|
-
abortOnSynchronousPlatformIOAccess();
|
|
389
|
-
return realGetRandomValues(array);
|
|
390
|
-
})
|
|
391
|
-
);
|
|
392
|
-
}
|
|
393
|
-
}
|
|
394
|
-
function restoreSyncIoShims() {
|
|
395
|
-
const state = syncIoShimState();
|
|
396
|
-
if (--state.depth > 0) return;
|
|
397
|
-
state.depth = 0;
|
|
398
|
-
const restore = state.restore;
|
|
399
|
-
state.restore = [];
|
|
400
|
-
for (const undo of restore) undo();
|
|
401
|
-
}
|
|
402
|
-
async function runWithRuntimePrefetchSyncIoAbort(fn) {
|
|
403
|
-
installSyncIoShims();
|
|
404
|
-
try {
|
|
405
|
-
return await fn();
|
|
406
|
-
} finally {
|
|
407
|
-
restoreSyncIoShims();
|
|
408
|
-
}
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
export {
|
|
412
|
-
PostponeError,
|
|
413
|
-
isPostpone,
|
|
414
|
-
trackPrerenderDynamic,
|
|
415
|
-
runInPrerender,
|
|
416
|
-
isPrerendering,
|
|
417
|
-
runWithCsrBailout,
|
|
418
|
-
isCsrBailoutPrerender,
|
|
419
|
-
isRuntimePrefetchPrerender,
|
|
420
|
-
currentPrerenderScope,
|
|
421
|
-
completePrerender,
|
|
422
|
-
isTaskPostpone,
|
|
423
|
-
isTaskBoundaryPrerender,
|
|
424
|
-
runWithTaskBoundaryArmed,
|
|
425
|
-
runWithTaskBoundarySuspended,
|
|
426
|
-
isCachedComponent,
|
|
427
|
-
awaitAtTaskBoundary,
|
|
428
|
-
trackPrerenderCacheFill,
|
|
429
|
-
isHangingPromise,
|
|
430
|
-
hangingPromise,
|
|
431
|
-
setCacheComponents,
|
|
432
|
-
cacheComponents,
|
|
433
|
-
realNow,
|
|
434
|
-
runWithPrerenderDeterminism,
|
|
435
|
-
markRuntimeApiOnAwait,
|
|
436
|
-
runWithRuntimePrefetchSyncIoAbort
|
|
437
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { createRequire as __coderRequire } from "node:module";
|
|
2
|
-
const __pnextRoot = __coderRequire(import.meta.url).resolve("@wular/pnext").replace(/\/src\/index\.ts$/, "");
|
|
3
|
-
import { createRequire as __pnextCreateRequire } from "node:module";
|
|
4
|
-
const require = __pnextCreateRequire(("file://" + __pnextRoot + "/package.json"));
|
|
5
|
-
|
|
6
|
-
// ../node_modules/.bun/@wular+pnext@0.1.5+62547eec5a2188e3/node_modules/@wular/pnext/src/utils/error-log.ts
|
|
7
|
-
var ERROR_LOGGED = Symbol.for("pnext.errorLogged");
|
|
8
|
-
function markErrorLogged(error) {
|
|
9
|
-
if (error === null || typeof error !== "object" && typeof error !== "function") {
|
|
10
|
-
return true;
|
|
11
|
-
}
|
|
12
|
-
const holder = error;
|
|
13
|
-
if (holder[ERROR_LOGGED]) return false;
|
|
14
|
-
Object.defineProperty(error, ERROR_LOGGED, {
|
|
15
|
-
value: true,
|
|
16
|
-
enumerable: false,
|
|
17
|
-
configurable: true,
|
|
18
|
-
writable: true
|
|
19
|
-
});
|
|
20
|
-
return true;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export {
|
|
24
|
-
markErrorLogged
|
|
25
|
-
};
|