@wular/coder 0.4.2 → 0.4.4
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/dist/actions-CmfXOVXQ.js +20 -0
- package/dist/adapter-7SEiVsmp.js +1 -0
- package/dist/adapter-BLEfUqoQ.js +1 -0
- package/dist/adapter-H4GlcKQz.js +1 -0
- package/dist/add-Bffwutko.js +1 -0
- package/dist/add-Bz8uaOcu.js +1 -0
- package/dist/add-DTwoL7vJ.js +1 -0
- package/dist/add-cdKdz3K0.js +6 -0
- package/dist/add-json-BIcbE3Nf.js +1 -0
- package/dist/agent-BcXXkOmD.js +3 -0
- package/dist/agent-DQK_S1PE.js +1 -0
- package/dist/alias-KQ85bphl.js +2 -0
- package/dist/app-DaccLHrx.js +1 -0
- package/dist/approvals-CZt_aPCy.js +2 -0
- package/dist/approve-DxjyXd66.js +2 -0
- package/dist/apps-eueTmHR5.js +1 -0
- package/dist/archive-C3JazQuo.js +3 -0
- package/dist/archive-C9yrU4Wg.js +4 -0
- package/dist/archive-sweep-CHbOP-p6.js +1 -0
- package/dist/args-DEMOfLz2.js +1 -0
- package/dist/ask-DdYrvsTk.js +4 -0
- package/dist/auth-FTKev9__.js +1 -0
- package/dist/auth-q8CROpG-.js +1 -0
- package/dist/chat-bridge-18koyS7c.js +2 -0
- package/dist/chat-cknlIhVh.js +13 -0
- package/dist/cli-msOzZFXW.js +9 -0
- package/dist/cli.d.ts +1 -1
- package/dist/cli.js +1 -1
- package/dist/client-31YzOj-i.js +1 -0
- package/dist/config-BllYHi8S.js +3 -0
- package/dist/create-BYki3g42.js +1 -0
- package/dist/credentials-DLMuf9OT.js +1 -0
- package/dist/dash/standalone/node_modules/@tanstack/virtual-core/dist/esm/index.js +1238 -0
- package/dist/dash/standalone/node_modules/@tanstack/virtual-core/dist/esm/lazy-measurements.js +34 -0
- package/dist/dash/standalone/node_modules/@tanstack/virtual-core/dist/esm/utils.js +74 -0
- package/dist/dash/standalone/node_modules/@tanstack/virtual-core/package.json +56 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/config/ts/react.json +10 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/boot-bhemypxz.js +38 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/build-tier-0a96kmx3.js +2456 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/config-0tvz03a6.js +24 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/generate-myw9hef7.js +22 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-0r5eqfc7.js +279 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-0yjv5v47.js +105 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-11xpbfej.js +17 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-141vcwk6.js +109 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-29pq0kax.js +590 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-2vz0wzdn.js +59 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-2wfv4kvx.js +182 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-3e075kny.js +128 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-3ycf5ckv.js +472 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-4399bvd2.js +18 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-4da76t62.js +297 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-4zzebszd.js +10 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-52k54ykj.js +95 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-5hr4062s.js +70 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-68m3mwbd.js +84 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-6b009mt0.js +56 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-6kp9r0d9.js +11 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-6q7zvrap.js +134 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-71885zaq.js +284 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-73z4esab.js +38 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-79ngvam8.js +60 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-7wc9n8be.js +25 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-8ct7rqy3.js +198 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-8kcxdfya.js +206 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-9f49w76j.js +213 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-9hz3s0m8.js +851 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-akkrvjn6.js +535 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-b6wtkdp4.js +24 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-b7j671dj.js +207 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-bcws5eh2.js +35 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-bzd2ef7t.js +10 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-cjgqs13g.js +65 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-ckkdpht5.js +41 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-cn86z041.js +296 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-cvr4z22m.js +92 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-d158y67j.js +152 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-d1jsmhhk.js +955 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-dgr390q7.js +9438 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-e3a6yx84.js +18 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-en7n9f7m.js +22 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-ezgj0tr1.js +88 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-fn1chkkd.js +214 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-fp8r0sqs.js +64 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-gcmj16xy.js +92 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-gkndxkxf.js +736 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-grta8ap3.js +238 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-h2a70tg4.js +7 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-h4xy648y.js +51 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-hdbwtdv2.js +352 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-he6n2bvp.js +1270 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-j0m1jxqa.js +1253 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-j2zrcp1k.js +66 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-j681c48a.js +2530 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-jbj7ehef.js +50 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-jcsjq3d1.js +20 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-jks0x0a1.js +14 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-jn9rbhrx.js +1599 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-jt8e1pje.js +12 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-kdhxpwyq.js +483 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-knp0s912.js +7 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-kresp2n8.js +445 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-m63czgq5.js +590 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-n4hxpng2.js +11 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-n629dy38.js +1071 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-nf3df4jy.js +266 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-nqh3xhdc.js +57 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-pym1cezq.js +39 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-q3r9z8mq.js +213 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-q738kkhj.js +100 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-qcrvt6er.js +112 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-qjj6gddn.js +54 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-qpwsgt3a.js +158 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-ras0sdab.js +26 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-rcs322t1.js +19 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-rgj5mx84.js +101 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-rt9qq1va.js +4 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-sq3kvz3g.js +200 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-stbk3jhn.js +31 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-tf4j19ge.js +130 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-tgcakdxc.js +125 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-tgsfjmep.js +74 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-tq3b39a5.js +107 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-typcbcsv.js +819 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-v1ags1na.js +132 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-vmr35jjw.js +170 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-vz0km5qk.js +33 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-w6h8m6vp.js +138 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-web361b8.js +138 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-wm36rj4v.js +311 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-x0y005nh.js +283 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-x2m17v9c.js +6166 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-x9c55pzy.js +871 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-xh1nbk46.js +1299 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-xvj80c3a.js +30 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-y4d02znn.js +66 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-y7mzvq2q.js +110 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-ye9hmsvf.js +47 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-yhxkxghe.js +56 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-yrjkqtfj.js +86 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-z88qv16t.js +11 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/index-zqpqyg8p.js +666 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/pipeline-4t9q43ht.js +836 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/proxy-config-60gprphe.js +23 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/proxy-gfhmktbk.js +35 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/router-xnrva921.js +501 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/routes-ht868pdc.js +66 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/_chunks/tsconfig-defaults-bcn34eqb.js +21 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/dist/server/cli/start.js +158 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/package.json +98 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/src/api/client-navigation.ts +337 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/src/api/dynamic.tsx +188 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/src/api/link.tsx +118 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/src/api/navigation.ts +199 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/src/api/server.ts +349 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/src/api/suspense.ts +16 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/src/client/router/events.ts +68 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/src/client/router/history.ts +70 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/src/client/router/hub.ts +201 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/src/client/router/index.ts +168 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/src/client/router/page-slot.ts +139 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/src/client/router/policies.ts +107 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/src/client/router/runtime.ts +6272 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/src/request/cache.ts +64 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/src/routing/href.ts +236 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/src/utils/decode.ts +7 -0
- package/dist/dash/standalone/node_modules/@wular/pnext/tsconfig.json +10 -0
- package/dist/dash/standalone/node_modules/dotenv/lib/main.js +386 -0
- package/dist/dash/standalone/node_modules/dotenv/package.json +62 -0
- package/dist/dash/standalone/node_modules/preact/compat/client.mjs +24 -0
- package/dist/dash/standalone/node_modules/preact/compat/dist/compat.mjs +2 -0
- package/dist/dash/standalone/node_modules/preact/compat/package.json +55 -0
- package/dist/dash/standalone/node_modules/preact/dist/preact.mjs +2 -0
- package/dist/dash/standalone/node_modules/preact/hooks/dist/hooks.mjs +2 -0
- package/dist/dash/standalone/node_modules/preact/hooks/package.json +35 -0
- package/dist/dash/standalone/node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs +2 -0
- package/dist/dash/standalone/node_modules/preact/jsx-runtime/package.json +28 -0
- package/dist/dash/standalone/node_modules/preact/package.json +265 -0
- package/dist/dash/standalone/node_modules/preact-render-to-string/dist/index.mjs +2 -0
- package/dist/dash/standalone/node_modules/preact-render-to-string/dist/stream/index.mjs +2 -0
- package/dist/dash/standalone/node_modules/preact-render-to-string/package.json +147 -0
- package/dist/dash/standalone/node_modules/react/cjs/react.react-server.development.js +878 -0
- package/dist/dash/standalone/node_modules/react/cjs/react.react-server.production.js +436 -0
- package/dist/dash/standalone/node_modules/react/package.json +51 -0
- package/dist/dash/standalone/node_modules/react/react.react-server.js +7 -0
- package/dist/dash/standalone/node_modules/react-compiler-runtime/dist/index.js +385 -0
- package/dist/dash/standalone/node_modules/react-compiler-runtime/package.json +25 -0
- package/dist/dash/standalone/package.json +1 -0
- package/dist/dash/standalone/server/build-index.json +1 -0
- package/dist/dash/standalone/server/entry.js +1 -0
- package/dist/dash/standalone/server/manifest.json +3311 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/client/index.2feb1c162fab6033.js +336 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/core/defaults.f8b4eee28e030eda.js +27 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/core/errors.5e991e43e42bd943.js +21 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/core/task/log-view.d6aae19495a81adb.js +211 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/auth/sign-in.7ee1680af722840f.js +11 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/api/load.bdbf17006af803d1.js +45 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/api/types.0cf02e7714d7c1a2.js +5 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/connect/page.0a054a6c9dda53b3.js +23 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/account/loading.02d57ab48022f8d8.js +9 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/account/notify.b7451fdf9c3bb62a.js +34 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/account/page.f9ab6ed02876880e.js +113 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/account/sign-out.3368aed882d8f1ac.js +13 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/agents/(list)/agent-menu.e4b6d486442476b5.js +12 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/agents/(list)/agents-grid.0dbc57156286a18e.js +118 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/agents/(list)/connect-apps.3a5673bcd9aa57d9.js +42 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/agents/(list)/loading.8df9f4459410cfaa.js +18 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/agents/(list)/page.8f85fbaff456c5fe.js +71 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/agents/(list)/page.9ea9df9d5f80f310.css.pnext-asset.js +0 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/agents/[slug]/(tabs)/layout.d3aec63db0f5230d.js +105 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/agents/[slug]/(tabs)/loading.d53d174ffe56aab3.js +5 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/agents/[slug]/(tabs)/page.3120ea9ec90cb9cc.css.pnext-asset.js +0 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/agents/[slug]/(tabs)/page.7fd1bfcf08e25919.js +116 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/agents/[slug]/(tabs)/platforms/loading.849dc6e6050a7e21.js +10 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/agents/[slug]/(tabs)/platforms/page.143668a9c21806d6.css.pnext-asset.js +0 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/agents/[slug]/(tabs)/platforms/page.31687af871d75d39.js +170 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/agents/[slug]/(tabs)/platforms/platform-actions.754eff65aec1ab59.js +70 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/agents/[slug]/(tabs)/settings/agent-settings-form.861ed9832cbe89c1.js +268 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/agents/[slug]/(tabs)/settings/agent-settings-form.d6de90cb40c3bd46.css.pnext-asset.js +0 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/agents/[slug]/(tabs)/settings/loading.2ec7a3b893925df0.js +8 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/agents/[slug]/(tabs)/settings/page.1ed5379637860fab.js +35 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/agents/[slug]/(tabs)/tasks/loading.20a52282c5806719.js +5 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/agents/[slug]/(tabs)/tasks/page.4fd369ba79ed9943.js +11 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/agents/[slug]/(tabs)/usage/@/app/dash/usage/range-bar.4408a4e0ee81b7b6.css.pnext-asset.js +0 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/agents/[slug]/(tabs)/usage/@/comps/ui/segmented.ded4aa5c0cd2c608.css.pnext-asset.js +0 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/agents/[slug]/(tabs)/usage/loading.43b58c5eef3d4253.js +48 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/agents/[slug]/(tabs)/usage/page.78bf188a8077c64e.js +160 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/agents/[slug]/(tabs)/usage/page.ae5cbdfc43af6658.css.pnext-asset.js +0 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/agents/[slug]/(tabs)/versions-list.0c6811b66b2fcc49.js +41 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/agents/[slug]/edit/loading.a18042397ffeaf55.js +29 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/agents/[slug]/edit/page.1798dbd9cd334e8f.js +69 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/agents/agent/agent-pills.c5710a4f634f9d6a.js +67 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/agents/agent/agent-pills.dcf7e785044cc900.css.pnext-asset.js +0 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/agents/agent/hero.a794a01218c5c9ce.css.pnext-asset.js +0 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/agents/agent/hero.e5c5af2f9fab6a63.js +62 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/agents/agent/instructions.2176859ec1028fc0.css.pnext-asset.js +0 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/agents/agent/instructions.403838f7cb218391.js +74 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/agents/editor/@/app/dash/agents/(list)/page.f2e88eb443d45a74.css.pnext-asset.js +0 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/agents/editor/connect-repositories.6c7088fd2fcd54f4.js +11 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/agents/editor/editor.4b164e6eb19daa2f.js +691 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/agents/editor/editor.6b13621790a6d5d6.css.pnext-asset.js +0 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/agents/editor/import-picker.4bff9b5642aeab17.js +214 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/agents/editor/names.cf9e376a918a5341.js +30 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/agents/new/loading.72e1b274c475e39a.js +28 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/agents/new/page.44f60b1a32344f70.js +55 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/layout.946ec7c4ebb1d7c6.css.pnext-asset.js +0 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/layout.96376d18592adfa9.js +391 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/page.669f5926ae12d101.js +10 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/settings/[tab]/credentials-list.3bd27b14c0d60e48.css.pnext-asset.js +0 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/settings/[tab]/credentials-list.3fbc413d972a0447.js +538 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/settings/[tab]/credentials.6423846391b20446.js +34 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/settings/[tab]/engines-list.39cd71b7dc568516.css.pnext-asset.js +0 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/settings/[tab]/engines-list.5bad79f0d4e12e07.js +75 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/settings/[tab]/list.2a204889b73638d9.css.pnext-asset.js +0 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/settings/[tab]/list.2cafbe93b7b2dc0f.js +172 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/settings/[tab]/loading.1a810cc50ea61706.js +6 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/settings/[tab]/mcp-list.1fc0f6165dd85b8c.js +249 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/settings/[tab]/mcp-list.d743e37cd6dc85d8.css.pnext-asset.js +0 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/settings/[tab]/models-list.520cb30b291794c3.js +396 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/settings/[tab]/page.04b07f9c365be073.js +86 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/settings/[tab]/runners-list.3dac92fb9f64e2be.css.pnext-asset.js +0 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/settings/[tab]/runners-list.67786d7d51692d19.js +380 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/settings/layout.a619ac4fe999d1b5.js +39 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/settings/model-options.2ca6c87aedf3588c.js +87 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/settings/page.5edeae58f2154a50.js +6 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/settings/settings-head.d726e31e4dd04d60.js +32 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/settings/tunnel-guide.22448081e9e042d6.js +31 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/tasks/[id]/activity.b23683e6be363068.js +177 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/tasks/[id]/loading.a8f2aa099bd76606.js +37 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/tasks/[id]/page.d1ded90712ca586f.js +24 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/tasks/[id]/task-actions.f2be118dd5a02896.js +184 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/tasks/[id]/task-view.97433b52e6f7175c.js +593 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/tasks/[id]/task-view.c2288044c9032a89.css.pnext-asset.js +0 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/tasks/composer-data.e2d442d6ecbaa6d3.js +63 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/tasks/composer.41721fb98004e79e.css.pnext-asset.js +0 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/tasks/composer.78b7d3000d615c7c.js +730 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/tasks/list/status.9516cc22cbd5d84b.css.pnext-asset.js +0 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/tasks/list/status.d78e769ff1411932.js +16 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/tasks/list/task.674ebeabafa0a7e1.js +53 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/tasks/list/tasks-list.55fa11c945f9c6db.css.pnext-asset.js +0 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/tasks/list/tasks-list.9698bdff71c3b3c7.js +429 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/tasks/list/tasks-section.c77194f05c3f58fb.js +79 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/tasks/page.157ac3a0938206b0.js +16 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/usage/@/app/dash/usage/range-bar.72f0c7c440fb34af.css.pnext-asset.js +0 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/usage/@/comps/ui/segmented.81631cafb8e3b260.css.pnext-asset.js +0 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/usage/custom-range.9343f6115e244cb4.js +64 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/usage/day-chart.c7b7d04403f0fc79.css.pnext-asset.js +0 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/usage/day-chart.c7f6c8981a7acb15.js +70 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/usage/loading.1716941ff725f152.js +15 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/usage/metric.5481ab0e025e218e.js +10 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/usage/page.4159d729e8aa0439.js +132 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/usage/range-bar.671afdd0798f4de9.css.pnext-asset.js +0 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/usage/range-bar.8c9b18116c8eb5f0.js +60 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/usage/stats.3b02ee8317b9c4e3.css.pnext-asset.js +0 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/usage/stats.7b8db8c56920b311.js +12 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/usage/top-agents.441006da5b4eae17.css.pnext-asset.js +0 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/usage/top-agents.8af5d53eb64bae9c.js +89 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/usage/usage.d6df7cb6980171ce.css.pnext-asset.js +0 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/globals.89a59affc5df947b.css.pnext-asset.js +0 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/layout.77960a272f19bf24.js +41 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/login/page.33464bce52044759.js +50 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/login/page.f852a09edc8b6b44.css.pnext-asset.js +0 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/page.7e7f8611a9bb7b22.js +4 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/responsive.1fd73ea94977bfc0.css.pnext-asset.js +0 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/zone.66f36b17e74cf5f8.js +10 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/frame/@/comps/ui/toast.8d599c6821860a1c.css.pnext-asset.js +0 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/frame/auth-panel.3e020d19aa5ab464.js +48 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/frame/auth-panel.e5af611567239b13.css.pnext-asset.js +0 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/frame/drawer.9090aa789dffa730.css.pnext-asset.js +0 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/frame/drawer.cf0eb4936a2c7222.js +30 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/frame/heads.5407f7793f985b16.js +47 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/frame/loading-card.9648c7782502babc.js +64 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/frame/page-head.53db3a3d313c0473.css.pnext-asset.js +0 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/frame/page-head.857951b5dc1ad827.js +65 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/frame/stream.4c04416dab6ffc52.js +39 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/frame/task-toasts.b14bb1f66ed75e75.js +324 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/frame/theme-choices.60d3a5adbd49989f.js +49 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/nav/current-link.87758179b507850c.js +34 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/nav/side-toggle.581456c353d76d67.js +36 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/nav/to.248665fde7daaf07.js +11 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/badge.d21391f2f8573db8.css.pnext-asset.js +0 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/badge.e52db98d78836f9a.js +31 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/card.4f9265213510ffd3.css.pnext-asset.js +0 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/card.e6876039e375b849.js +40 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/collapse.60c9038c70fb9c46.css.pnext-asset.js +0 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/collapse.730d674a8f7eeeae.js +33 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/combo.d478120a76502dd1.js +115 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/confirm.cd23ea20bdf120d2.js +53 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/confirm.fc6d4da835b75a30.css.pnext-asset.js +0 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/field.37f93068217e1470.js +16 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/field.8db4420dfb447e42.css.pnext-asset.js +0 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/filter.3e8df59ca8abf397.js +252 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/filter.9311d535531caaf3.css.pnext-asset.js +0 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/icon.476b846e39908951.css.pnext-asset.js +0 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/icon.93605083edf7efe3.js +19 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/icons.e17bdd0b5504787f.js +36 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/menu.3b3026ecd4dc31f0.js +103 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/menu.d412af459c187b41.css.pnext-asset.js +0 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/segmented.171b067d7cb36977.css.pnext-asset.js +0 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/segmented.620f07f6b949d7f1.js +38 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/select.14e820c8a26ab8b5.js +218 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/select.5dbceaae2ba7ace4.css.pnext-asset.js +0 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/sentinel.332fb99b3a214f0e.css.pnext-asset.js +0 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/sentinel.50afec82b0fd53a1.js +59 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/tabs.051c87be5bbb7f2b.js +27 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/tabs.87bc5cdfc4d1b85e.css.pnext-asset.js +0 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/tail.25fd24d6cd0564b7.css.pnext-asset.js +0 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/tail.2d57d68076cef3e1.js +25 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/toolbar.32503820243ede06.js +80 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/toolbar.5e35e79f4d575452.css.pnext-asset.js +0 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/utils/client.f37a313f4811ddb8.js +26 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/utils/format.ba382c381ea40e77.js +75 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/utils/paged.64ead375df845ff2.js +152 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/utils/range.f0a5ef1763ff3cb9.js +102 -0
- package/dist/dash/standalone/static/assets/chunks/agent-pills-9f0b2f5ae78f8034.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/agent-settings-form-8b9eb7a50b6353c8.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/agents-grid-ec0a1369f485e044.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/badge-97931d920966447a.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/card-a390b476c49de404.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/combo-0c5bac507d410ec8.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/composer-2c92fc6e47ca91ca.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/composer-e73a0b422a64d24b.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/confirm-a7e97c1e3e7b1d98.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/connect-apps-70717f2cb7ae1e00.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/connect-repositories-6edbbdd3d805d960.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/credentials-list-c59af917890a58af.js +2 -0
- package/dist/dash/standalone/static/assets/chunks/custom-range-80abdcdffdfe237f.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/editor-40545d274265dd1a.js +7 -0
- package/dist/dash/standalone/static/assets/chunks/engines-list-7aaf3d15897cb0aa.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/field-b36938a3bc00cd3f.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/filter-c0ae37317df5452c.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/format-b19b8eec331414f4.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/heads-bdff7195a22cb2bd.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/instructions-439881899f58791f.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/instructions-5d6b6a16fc5275a6.js +2 -0
- package/dist/dash/standalone/static/assets/chunks/list-d0b7c0b48892cfe6.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/mcp-list-25126d98a226b790.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/models-list-6dfcd14261a538f5.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/paged-3ddb6077bef42752.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/platform-actions-b8a76b633d3d5ffc.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/runners-list-6723c3760642534a.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/runtime-37175329f2865f15-1.js +2 -0
- package/dist/dash/standalone/static/assets/chunks/segmented-1155c44ecf78eec1.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/select-dfbd5abe28b9ac3b.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/sentinel-4c64ec1196343d0e.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/shared-init-37175329f2865f15-2.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/shared-init-66a0fdc8472e9b2f.js +5 -0
- package/dist/dash/standalone/static/assets/chunks/shared-init-d2e3dd1b398d7232.js +2 -0
- package/dist/dash/standalone/static/assets/chunks/tail-3e63ab86a13c8c38.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/task-actions-a8e0042e51f40a41.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/task-ddfddeaf07fb684c.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/task-view-9da31d3338604fed.js +5 -0
- package/dist/dash/standalone/static/assets/chunks/tasks-list-07e674d269ecdf31.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/toolbar-7e424f4c5bb3db9a.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/versions-list-714c7f458a9370fc.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/wular-pnext-37175329f2865f15-0.js +1 -0
- package/dist/dash/standalone/static/assets/dash-account-edc56e85dbaaabe0.css +1 -0
- package/dist/dash/standalone/static/assets/dash-agents-edba57b67e4005d0.css +1 -0
- package/dist/dash/standalone/static/assets/dash-agents-new-fe22253fbada2fbf.css +1 -0
- package/dist/dash/standalone/static/assets/dash-agents-param-slug-adf52e9dacb2d825.css +1 -0
- package/dist/dash/standalone/static/assets/dash-agents-param-slug-edit-a2937a347689ef29.css +1 -0
- package/dist/dash/standalone/static/assets/dash-agents-param-slug-platforms-265ba13db32a460d.css +1 -0
- package/dist/dash/standalone/static/assets/dash-agents-param-slug-settings-8afc52eb0372bc4b.css +1 -0
- package/dist/dash/standalone/static/assets/dash-agents-param-slug-tasks-6193e646be68dbd2.css +1 -0
- package/dist/dash/standalone/static/assets/dash-agents-param-slug-usage-ceadb3a1c911c402.css +1 -0
- package/dist/dash/standalone/static/assets/dash-settings-cf1997cd7f72e518.css +1 -0
- package/dist/dash/standalone/static/assets/dash-settings-param-tab-b44dac8e79a560e6.css +1 -0
- package/dist/dash/standalone/static/assets/dash-tasks-916c7100a8058aa3.css +1 -0
- package/dist/dash/standalone/static/assets/dash-tasks-param-id-24265771fd1e3f78.css +1 -0
- package/dist/dash/standalone/static/assets/dash-usage-40940b289f85e0b6.css +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-0d42268f5239b3d5.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-0f7a0ab40127bf71.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-19cd968a8d93b747.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-34bb66f5f37ae387.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-4f02d1eb5fdd8301.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-4f5740d5c6a84a21.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-5398aea4b83e1bd3.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-6a3da44efd3d46e0.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-6c93bd1923a32212.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-76bea765346a5ac5.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-8a37985a7a1612d0.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-9849ecdcc3e58c7a.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-b7e97e8b42c8b547.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-cf0e73abe71d8cf4.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-d0c44499e53177b1.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-dca2adeac8045fa7.js +1 -0
- package/dist/default-aLeIO8IR.js +1 -0
- package/dist/default-fMaQH1wm.js +1 -0
- package/dist/delete-Cj16PYaw.js +2 -0
- package/dist/delete-DNj3leWA.js +4 -0
- package/dist/disable-CQg5Vybq.js +1 -0
- package/dist/discover-CaAtyC0h.js +1 -0
- package/dist/discover-bVM8EJEz.js +3 -0
- package/dist/dispatch-YW1aqjEg.js +14 -0
- package/dist/docs-Byrpar10.js +2 -0
- package/dist/docs-CqeYenUp.js +2 -0
- package/dist/enable-8m3z7i3i.js +1 -0
- package/dist/env-LsVTi18f.js +1 -0
- package/dist/exec-DgI3boHa.js +11 -0
- package/dist/executor-HWnIIYUL.js +10 -0
- package/dist/flow/builtin/review.js +1 -1
- package/dist/flow/index.d.ts +2 -2
- package/dist/flow/index.js +1 -1
- package/dist/flow-DeCL3x2p.js +1 -0
- package/dist/github-actions-CvLya8ve.js +24 -0
- package/dist/http-DG54kyx4.js +1 -0
- package/dist/index-Xe8n_t2Z.d.ts +365 -0
- package/dist/init-BujliQ7q.js +1 -0
- package/dist/integrations-6kXL9hRo.js +1 -0
- package/dist/integrations-B2CavXR1.js +5 -0
- package/dist/lib/broker.js +2 -2
- package/dist/list-BdiYneg5.js +1 -0
- package/dist/list-CXu4cr8D.js +4 -0
- package/dist/list-DGoVY-ao.js +1 -0
- package/dist/list-DbY1jyj3.js +2 -0
- package/dist/list-DhVfqr0A.js +1 -0
- package/dist/list-DyqtSWvn.js +1 -0
- package/dist/list-QLTjk5SN.js +3 -0
- package/dist/list-vKOTwd4G.js +4 -0
- package/dist/load-DDZfByUe.js +2 -0
- package/dist/local-B0GiaLV0.js +1 -0
- package/dist/log-view-DeJstSkw.js +3 -0
- package/dist/login-BzdlmD_o.js +1 -0
- package/dist/login-otJB9SYu.js +1 -0
- package/dist/logout-DOrRoxDV.js +1 -0
- package/dist/maintenance-Bg_FzXSq.js +1 -0
- package/dist/match-DMI54zg4.js +1 -0
- package/dist/mcp-DgMoPoUo.js +1 -0
- package/dist/mcp-xSvAWiXX.js +1 -0
- package/dist/migrate-CN-fdMV9.js +2 -0
- package/dist/migrate-DAC6sFgg.js +1 -0
- package/dist/model-BJ-Sokha.js +1 -0
- package/dist/models-DGPrMV51.js +1 -0
- package/dist/prompt-K7-bKcTC.js +7 -0
- package/dist/push-Cg7-XT5h.js +1 -0
- package/dist/queue-yo-Z8TaE.js +117 -0
- package/dist/refresh-CmBQALAW.js +1 -0
- package/dist/remote-AcWWfKVS.js +1 -0
- package/dist/remove-BuaShRZ3.js +1 -0
- package/dist/remove-C8Rm8KP-.js +1 -0
- package/dist/remove-CcMma1x3.js +1 -0
- package/dist/remove-DgMg_OOu.js +1 -0
- package/dist/rename-C0vNcl8e.js +1 -0
- package/dist/result-C6ovl_Dn.js +5 -0
- package/dist/result-oQey_hdw.js +18 -0
- package/dist/resume-T_TXWfqE.js +3 -0
- package/dist/review-CCs6XUSO.js +7 -0
- package/dist/rotate-key-CYimsQR5.js +1 -0
- package/dist/run-BFYg-zZt.js +5 -0
- package/dist/run-D7F7JPV6.js +2 -0
- package/dist/run-hiPyO7js.js +2 -0
- package/dist/runner-D5jaEfhG.js +1 -0
- package/dist/runner-c-2w6Eoj.js +1 -0
- package/dist/schema-DoNO0dPh.js +1 -0
- package/dist/sdk.d.ts +4 -3
- package/dist/sdk.js +1 -1
- package/dist/serve-BgGXjT_O.js +1 -0
- package/dist/serve-C-AD60Wa.js +12 -0
- package/dist/serve-GIK3fqKA.js +8 -0
- package/dist/serve-K3BVTcDI.js +2 -0
- package/dist/serve-xMihn4g-.js +1 -0
- package/dist/server-DQTGc55C.js +1 -0
- package/dist/setup-host-By8-gv_v.js +6 -0
- package/dist/shared-TznJgMFW.js +1 -0
- package/dist/show-C9ojrH5W.js +1 -0
- package/dist/show-o4yXzSWZ.js +1 -0
- package/dist/status-BBW7Qyde.js +1 -0
- package/dist/steer-D47cuggj.js +4 -0
- package/dist/stop-7brPdki9.js +1 -0
- package/dist/stop-CD2JW6dI.js +3 -0
- package/dist/store-BCBTo0rl.js +42 -0
- package/dist/store-qp7UE2ES.js +19 -0
- package/dist/task-CyrDqqf8.js +1 -0
- package/dist/task-DEp3GHwH.js +1 -0
- package/dist/task-DhZ5vhyY.js +5 -0
- package/dist/test-BcFQUHRo.js +1 -0
- package/dist/tools-D20XYPnO.js +1 -0
- package/dist/types-DMGBYB_K.d.ts +391 -0
- package/dist/unalias-G3sM8fVw.js +1 -0
- package/dist/update-JvgB6Xws.js +2 -0
- package/dist/upgrade-DN3hXDdo.js +2 -0
- package/dist/usage-C1oN2W9c.js +1 -0
- package/dist/usage-DR3wWtYD.js +1 -0
- package/dist/watch-DDmHonTf.js +5 -0
- package/dist/watch-DYkC6Q2q.js +8 -0
- package/dist/wire-DxxfWapP.js +1 -0
- package/dist/worker-C4Lo6rLS.js +9 -0
- package/dist/worker-CaNTsqcD.js +1 -0
- package/dist/workflow-7rqzHHWZ.js +1 -0
- package/docs/cli.md +1 -2
- package/docs/config.md +1 -1
- package/docs/flows.md +12 -1
- package/docs/mcp.md +1 -1
- package/docs/sdk.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 +2 -10
- 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/dist/actions-Mk3FSlpJ.js +0 -20
- package/dist/adapter-B0oYCI0S.js +0 -1
- package/dist/adapter-BKVzTDnn.js +0 -1
- package/dist/adapter-DPInwbJG.js +0 -1
- package/dist/add-C2y-mVzl.js +0 -1
- package/dist/add-CLYTF_up.js +0 -6
- package/dist/add-DRsPpQFl.js +0 -1
- package/dist/add-DkpUwhtO.js +0 -1
- package/dist/add-json-5uPnWPoD.js +0 -1
- package/dist/agent-hw3zKw8y.js +0 -3
- package/dist/agent-r5mMcehf.js +0 -1
- package/dist/alias-_0Rwf2cA.js +0 -2
- package/dist/app-oE8G1-bi.js +0 -1
- package/dist/approvals-DbVrsxec.js +0 -2
- package/dist/approve-DeAhFL-m.js +0 -2
- package/dist/apps-eujHiNca.js +0 -1
- package/dist/archive-BCUfymIB.js +0 -3
- package/dist/archive-DZ6vpMHb.js +0 -4
- package/dist/archive-sweep-Cxbh8yAI.js +0 -1
- package/dist/args-BOEEdpWk.js +0 -1
- package/dist/ask-BU2WVxVM.js +0 -4
- package/dist/auth-CBWTmAPA.js +0 -1
- package/dist/auth-Dmn2U7rr.js +0 -1
- package/dist/chat-B_yhNTo0.js +0 -13
- package/dist/chat-bridge-BS9WtP3X.js +0 -2
- package/dist/cli-DWCR7iqa.js +0 -9
- package/dist/client-D9IoAuDD.js +0 -1
- package/dist/config-12pK4qW7.js +0 -3
- package/dist/create-D3f6q0Yq.js +0 -1
- package/dist/credentials-l6dsrZLL.js +0 -1
- package/dist/dash/manifest.json +0 -3313
- package/dist/dash/public/assets/chunks/agent-pills-dd0b7643e125bbf1.js +0 -1
- package/dist/dash/public/assets/chunks/agent-settings-form-45ae6aeaaed2b568.js +0 -1
- package/dist/dash/public/assets/chunks/agents-grid-b906da80c31fc035.js +0 -1
- package/dist/dash/public/assets/chunks/badge-676b01e0c615bf7b.js +0 -1
- package/dist/dash/public/assets/chunks/card-e0901d68b79dfa93.js +0 -1
- package/dist/dash/public/assets/chunks/combo-952a457d52360d88.js +0 -1
- package/dist/dash/public/assets/chunks/composer-49f9e7c5c4dfda3b.js +0 -1
- package/dist/dash/public/assets/chunks/composer-f331d00837143aee.js +0 -1
- package/dist/dash/public/assets/chunks/confirm-f2fe4ba9905a89c6.js +0 -1
- package/dist/dash/public/assets/chunks/connect-apps-661f3b3a85f1776a.js +0 -1
- package/dist/dash/public/assets/chunks/connect-repositories-5389ec8701a3deac.js +0 -1
- package/dist/dash/public/assets/chunks/credentials-list-e6177d0943517929.js +0 -2
- package/dist/dash/public/assets/chunks/custom-range-03ba6fb2ade7d282.js +0 -1
- package/dist/dash/public/assets/chunks/editor-34cb529d6d8a4b09.js +0 -7
- package/dist/dash/public/assets/chunks/engines-list-2f1acee3ecc8461a.js +0 -1
- package/dist/dash/public/assets/chunks/field-901f1f35c18c39c9.js +0 -1
- package/dist/dash/public/assets/chunks/format-eb03fc9d9744d960.js +0 -1
- package/dist/dash/public/assets/chunks/heads-1570a3a6db331979.js +0 -1
- package/dist/dash/public/assets/chunks/instructions-052fa45a9daf6db6.js +0 -2
- package/dist/dash/public/assets/chunks/instructions-d0a4b0d95009c262.js +0 -1
- package/dist/dash/public/assets/chunks/list-87b359bebd26986a.js +0 -1
- package/dist/dash/public/assets/chunks/mcp-list-b42f0d2ee463b37d.js +0 -1
- package/dist/dash/public/assets/chunks/models-list-0669d26fd662aec3.js +0 -1
- package/dist/dash/public/assets/chunks/paged-bc6fa0c2b9d52ed7.js +0 -1
- package/dist/dash/public/assets/chunks/platform-actions-c92ca3c6198a9387.js +0 -1
- package/dist/dash/public/assets/chunks/runners-list-9fffa50432c470c9.js +0 -1
- package/dist/dash/public/assets/chunks/runtime-246221e985d863e5-1.js +0 -2
- package/dist/dash/public/assets/chunks/segmented-358ff2b4992b8384.js +0 -1
- package/dist/dash/public/assets/chunks/select-1013702bdfb1ade4.js +0 -1
- package/dist/dash/public/assets/chunks/sentinel-c972a33dc69a5135.js +0 -1
- package/dist/dash/public/assets/chunks/shared-init-20e199043ff5d00f.js +0 -2
- package/dist/dash/public/assets/chunks/shared-init-246221e985d863e5-2.js +0 -1
- package/dist/dash/public/assets/chunks/shared-init-88cce66bb3cfe1e5.js +0 -5
- package/dist/dash/public/assets/chunks/tail-7c27aab8ba268bd9.js +0 -1
- package/dist/dash/public/assets/chunks/task-actions-a9603d520434baab.js +0 -1
- package/dist/dash/public/assets/chunks/task-fa8b82e95e771c4a.js +0 -1
- package/dist/dash/public/assets/chunks/task-view-f7039cb330bcb0b5.js +0 -3
- package/dist/dash/public/assets/chunks/tasks-list-2a905b4a0c3a9042.js +0 -1
- package/dist/dash/public/assets/chunks/toolbar-f964fa864699f095.js +0 -1
- package/dist/dash/public/assets/chunks/versions-list-fc2e0d2a7382e049.js +0 -1
- package/dist/dash/public/assets/chunks/wular-pnext-246221e985d863e5-0.js +0 -1
- package/dist/dash/public/assets/dash-account-96fc41be318839fa.css +0 -1
- package/dist/dash/public/assets/dash-agents-290a7b21c7dc0c92.css +0 -1
- package/dist/dash/public/assets/dash-agents-new-a7a07bf4ebda24c2.css +0 -1
- package/dist/dash/public/assets/dash-agents-param-slug-69a72fb0bbd14cc2.css +0 -1
- package/dist/dash/public/assets/dash-agents-param-slug-edit-397bdfb2f0ca328c.css +0 -1
- package/dist/dash/public/assets/dash-agents-param-slug-platforms-a7b3b7247c27f1d2.css +0 -1
- package/dist/dash/public/assets/dash-agents-param-slug-settings-8389b7d0555e8ccf.css +0 -1
- package/dist/dash/public/assets/dash-agents-param-slug-tasks-5987b8aea5e8f30d.css +0 -1
- package/dist/dash/public/assets/dash-agents-param-slug-usage-19abc69e1d4e6b0a.css +0 -1
- package/dist/dash/public/assets/dash-settings-53b8e6a8f656fa1a.css +0 -1
- package/dist/dash/public/assets/dash-settings-param-tab-ac61fdfdd6fd533f.css +0 -1
- package/dist/dash/public/assets/dash-tasks-cc0b1d32874b731c.css +0 -1
- package/dist/dash/public/assets/dash-tasks-param-id-02b8c7bd99cc1090.css +0 -1
- package/dist/dash/public/assets/dash-usage-884943221f76ad93.css +0 -1
- package/dist/dash/public/assets/pnext-client-17ba55bb57a1f4da.js +0 -1
- package/dist/dash/public/assets/pnext-client-1afa4148bea69ad2.js +0 -1
- package/dist/dash/public/assets/pnext-client-2693db10b197ade1.js +0 -1
- package/dist/dash/public/assets/pnext-client-43f52a07f8067b1b.js +0 -1
- package/dist/dash/public/assets/pnext-client-4594b693fe612835.js +0 -1
- package/dist/dash/public/assets/pnext-client-73f73e24f8141fb6.js +0 -1
- package/dist/dash/public/assets/pnext-client-7574da4651b40eae.js +0 -1
- package/dist/dash/public/assets/pnext-client-7b3a2c1092cbbb02.js +0 -1
- package/dist/dash/public/assets/pnext-client-816fe5fc96d3f768.js +0 -1
- package/dist/dash/public/assets/pnext-client-86cb956b448b0887.js +0 -1
- package/dist/dash/public/assets/pnext-client-8b64e3c030164288.js +0 -1
- package/dist/dash/public/assets/pnext-client-8f6161084c595a22.js +0 -1
- package/dist/dash/public/assets/pnext-client-9203ec11926e5d04.js +0 -1
- package/dist/dash/public/assets/pnext-client-a38b446f941d44df.js +0 -1
- package/dist/dash/public/assets/pnext-client-bd8d51aaa095e8a4.js +0 -1
- package/dist/dash/public/assets/pnext-client-e9821d1f1bdb281d.js +0 -1
- package/dist/dash/server/bundle-0.1.6-b29ec45cb963d47f/entry.js +0 -2
- package/dist/default-CwQXCtoB.js +0 -1
- package/dist/default-De8FXiWz.js +0 -1
- package/dist/delete-BD6AnCLg.js +0 -2
- package/dist/delete-cS01oOIb.js +0 -4
- package/dist/disable-BMWWeYFQ.js +0 -1
- package/dist/discover-Cfx5RPU7.js +0 -3
- package/dist/discover-Dvr_3_Xr.js +0 -1
- package/dist/dispatch-BKeAch9E.js +0 -14
- package/dist/docs-BX65z2Iu.js +0 -2
- package/dist/docs-DWegDRiu.js +0 -2
- package/dist/enable-Cfzeau2x.js +0 -1
- package/dist/env-CRf6wkM2.js +0 -1
- package/dist/exec-RZFLclKX.js +0 -11
- package/dist/executor-BvAA7Cgw.js +0 -10
- package/dist/flow-kAxxVOiR.js +0 -1
- package/dist/github-actions-DwUzm4hC.js +0 -24
- package/dist/http-Bkg_OQ6r.js +0 -1
- package/dist/index-CZjFX5zV.d.ts +0 -357
- package/dist/init-C4tDFH4G.js +0 -1
- package/dist/integrations-BAgdVDhj.js +0 -5
- package/dist/integrations-D-L3uQRj.js +0 -1
- package/dist/list-5Ljf9TxF.js +0 -2
- package/dist/list-COAo7eZd.js +0 -4
- package/dist/list-DuPqU3fk.js +0 -3
- package/dist/list-DzGuMkQy.js +0 -1
- package/dist/list-J8d_zh-o.js +0 -1
- package/dist/list-vOvIpbOH.js +0 -1
- package/dist/list-vpyS-hv8.js +0 -1
- package/dist/list-way5oLO0.js +0 -4
- package/dist/load-BpEsAn51.js +0 -2
- package/dist/local-H3uvqEbq.js +0 -1
- package/dist/log-view-dg0TlKLA.js +0 -1
- package/dist/login-BBw95-S3.js +0 -1
- package/dist/login-CNmeRAL7.js +0 -1
- package/dist/logout-j0dTo_Ib.js +0 -1
- package/dist/maintenance-DkLVtqM7.js +0 -1
- package/dist/match-CXAjDhg7.js +0 -1
- package/dist/mcp-BgKb2Cdk.js +0 -1
- package/dist/mcp-CsmBtlW9.js +0 -1
- package/dist/migrate-D4nzYhk8.js +0 -2
- package/dist/migrate-N-85_N7J.js +0 -1
- package/dist/model-B79MFtRV.js +0 -1
- package/dist/models-_5LVGC3m.js +0 -1
- package/dist/prompt-CEuBMNhk.js +0 -7
- package/dist/push-DbdnbZYt.js +0 -1
- package/dist/queue-C9fSdE_X.js +0 -116
- package/dist/refresh-BDmap1RA.js +0 -1
- package/dist/remote-miQNTVRa.js +0 -1
- package/dist/remove-BNzbUhaK.js +0 -1
- package/dist/remove-CLpL12Ya.js +0 -1
- package/dist/remove-CaYH9Cna.js +0 -1
- package/dist/remove-D-QeeZQL.js +0 -1
- package/dist/rename-Bhcb4t9F.js +0 -1
- package/dist/result-BfTfJayl.js +0 -5
- package/dist/result-D8DsvJDu.js +0 -15
- package/dist/resume-aZ8yWDBh.js +0 -3
- package/dist/review-BEhDcX4b.js +0 -7
- package/dist/rotate-key-BqnKhTK8.js +0 -1
- package/dist/run-BWbabvub.js +0 -5
- package/dist/run-BdPjxaZU.js +0 -2
- package/dist/run-Dqe38jX8.js +0 -2
- package/dist/runner-BPpiJvHx.js +0 -1
- package/dist/runner-sUpWJ_k0.js +0 -1
- package/dist/schema-CU2iFkp8.js +0 -1
- package/dist/serve-BTeomYxW.js +0 -1
- package/dist/serve-C0WC-QrV.js +0 -2
- package/dist/serve-CcObDKKQ.js +0 -12
- package/dist/serve-Ck95047c.js +0 -1
- package/dist/serve-DA5I2qXj.js +0 -4
- package/dist/server-BxLFZL80.js +0 -1
- package/dist/setup-host-DLd_j2Uw.js +0 -6
- package/dist/shared-BLkGRKty.js +0 -1
- package/dist/show-DzoQIs75.js +0 -1
- package/dist/show-FC3dJcD-.js +0 -1
- package/dist/status-BU3DR1XU.js +0 -1
- package/dist/steer-P_38hRRD.js +0 -4
- package/dist/stop-BJGDRPsp.js +0 -1
- package/dist/stop-BWY6k6v5.js +0 -3
- package/dist/store-B3ZHoBJY.js +0 -8
- package/dist/store-BLi19UDE.js +0 -42
- package/dist/task-C6VAg5WU.js +0 -1
- package/dist/task-DeglY79z.js +0 -5
- package/dist/task-b2BK481M.js +0 -1
- package/dist/test-BrSrhop9.js +0 -1
- package/dist/tools-CgswhJzh.js +0 -1
- package/dist/types-I5Cwtl_K.d.ts +0 -389
- package/dist/unalias-mMHXqok7.js +0 -1
- package/dist/update-DbOWToPy.js +0 -2
- package/dist/upgrade-D6oC9HQI.js +0 -2
- package/dist/usage-Cb8Dtv9V.js +0 -1
- package/dist/usage-DMs-IIJC.js +0 -1
- package/dist/watch-BcMQXGYO.js +0 -8
- package/dist/watch-eE2XiwsC.js +0 -5
- package/dist/wire-BeT1Axeo.js +0 -1
- package/dist/worker-CXndxmGF.js +0 -9
- package/dist/worker-DrucI22w.js +0 -1
- package/dist/workflow-Cshghoas.js +0 -1
- package/src/client/index.ts +0 -573
- package/src/client/types.ts +0 -506
- package/src/core/defaults.ts +0 -25
- package/src/core/errors.ts +0 -72
- package/src/core/task/log-view.ts +0 -173
- package/src/server/auth/sign-in.ts +0 -14
- package/src/server/dash/api/load.ts +0 -62
- package/src/server/dash/api/types.ts +0 -11
- package/src/server/dash/app/connect/page.tsx +0 -42
- package/src/server/dash/app/dash/account/loading.tsx +0 -11
- package/src/server/dash/app/dash/account/notify.tsx +0 -42
- package/src/server/dash/app/dash/account/page.css +0 -81
- package/src/server/dash/app/dash/account/page.tsx +0 -126
- package/src/server/dash/app/dash/account/sign-out.tsx +0 -24
- package/src/server/dash/app/dash/agents/(list)/agent-menu.tsx +0 -10
- package/src/server/dash/app/dash/agents/(list)/agents-grid.tsx +0 -143
- package/src/server/dash/app/dash/agents/(list)/connect-apps.tsx +0 -46
- package/src/server/dash/app/dash/agents/(list)/loading.tsx +0 -14
- package/src/server/dash/app/dash/agents/(list)/page.css +0 -72
- package/src/server/dash/app/dash/agents/(list)/page.tsx +0 -89
- package/src/server/dash/app/dash/agents/[slug]/(tabs)/layout.tsx +0 -135
- package/src/server/dash/app/dash/agents/[slug]/(tabs)/loading.tsx +0 -5
- package/src/server/dash/app/dash/agents/[slug]/(tabs)/page.css +0 -21
- package/src/server/dash/app/dash/agents/[slug]/(tabs)/page.tsx +0 -173
- package/src/server/dash/app/dash/agents/[slug]/(tabs)/platforms/loading.tsx +0 -18
- package/src/server/dash/app/dash/agents/[slug]/(tabs)/platforms/page.css +0 -87
- package/src/server/dash/app/dash/agents/[slug]/(tabs)/platforms/page.tsx +0 -258
- package/src/server/dash/app/dash/agents/[slug]/(tabs)/platforms/platform-actions.tsx +0 -111
- package/src/server/dash/app/dash/agents/[slug]/(tabs)/settings/agent-settings-form.css +0 -114
- package/src/server/dash/app/dash/agents/[slug]/(tabs)/settings/agent-settings-form.tsx +0 -294
- package/src/server/dash/app/dash/agents/[slug]/(tabs)/settings/loading.tsx +0 -5
- package/src/server/dash/app/dash/agents/[slug]/(tabs)/settings/page.tsx +0 -54
- package/src/server/dash/app/dash/agents/[slug]/(tabs)/tasks/loading.tsx +0 -5
- package/src/server/dash/app/dash/agents/[slug]/(tabs)/tasks/page.tsx +0 -14
- package/src/server/dash/app/dash/agents/[slug]/(tabs)/usage/loading.tsx +0 -31
- package/src/server/dash/app/dash/agents/[slug]/(tabs)/usage/page.css +0 -12
- package/src/server/dash/app/dash/agents/[slug]/(tabs)/usage/page.tsx +0 -163
- package/src/server/dash/app/dash/agents/[slug]/(tabs)/versions-list.tsx +0 -53
- package/src/server/dash/app/dash/agents/[slug]/edit/loading.tsx +0 -31
- package/src/server/dash/app/dash/agents/[slug]/edit/page.tsx +0 -91
- package/src/server/dash/app/dash/agents/agent/agent-pills.css +0 -27
- package/src/server/dash/app/dash/agents/agent/agent-pills.tsx +0 -133
- package/src/server/dash/app/dash/agents/agent/hero.css +0 -40
- package/src/server/dash/app/dash/agents/agent/hero.tsx +0 -60
- package/src/server/dash/app/dash/agents/agent/instructions.css +0 -29
- package/src/server/dash/app/dash/agents/agent/instructions.tsx +0 -82
- package/src/server/dash/app/dash/agents/editor/connect-repositories.ts +0 -16
- package/src/server/dash/app/dash/agents/editor/editor.css +0 -263
- package/src/server/dash/app/dash/agents/editor/editor.tsx +0 -774
- package/src/server/dash/app/dash/agents/editor/import-picker.css +0 -48
- package/src/server/dash/app/dash/agents/editor/import-picker.tsx +0 -253
- package/src/server/dash/app/dash/agents/editor/names.ts +0 -35
- package/src/server/dash/app/dash/agents/new/loading.tsx +0 -25
- package/src/server/dash/app/dash/agents/new/page.tsx +0 -72
- package/src/server/dash/app/dash/layout.css +0 -322
- package/src/server/dash/app/dash/layout.tsx +0 -344
- package/src/server/dash/app/dash/page.tsx +0 -14
- package/src/server/dash/app/dash/settings/[tab]/credentials-list.css +0 -94
- package/src/server/dash/app/dash/settings/[tab]/credentials-list.tsx +0 -619
- package/src/server/dash/app/dash/settings/[tab]/credentials.tsx +0 -36
- package/src/server/dash/app/dash/settings/[tab]/engines-list.css +0 -16
- package/src/server/dash/app/dash/settings/[tab]/engines-list.tsx +0 -135
- package/src/server/dash/app/dash/settings/[tab]/list.css +0 -98
- package/src/server/dash/app/dash/settings/[tab]/list.tsx +0 -215
- package/src/server/dash/app/dash/settings/[tab]/loading.tsx +0 -6
- package/src/server/dash/app/dash/settings/[tab]/mcp-list.css +0 -43
- package/src/server/dash/app/dash/settings/[tab]/mcp-list.tsx +0 -290
- package/src/server/dash/app/dash/settings/[tab]/models-list.tsx +0 -513
- package/src/server/dash/app/dash/settings/[tab]/page.tsx +0 -89
- package/src/server/dash/app/dash/settings/[tab]/runners-list.css +0 -153
- package/src/server/dash/app/dash/settings/[tab]/runners-list.tsx +0 -457
- package/src/server/dash/app/dash/settings/layout.tsx +0 -50
- package/src/server/dash/app/dash/settings/model-options.ts +0 -117
- package/src/server/dash/app/dash/settings/page.tsx +0 -7
- package/src/server/dash/app/dash/settings/settings-head.tsx +0 -24
- package/src/server/dash/app/dash/settings/tunnel-guide.tsx +0 -28
- package/src/server/dash/app/dash/tasks/[id]/activity.tsx +0 -202
- package/src/server/dash/app/dash/tasks/[id]/loading.tsx +0 -31
- package/src/server/dash/app/dash/tasks/[id]/page.tsx +0 -30
- package/src/server/dash/app/dash/tasks/[id]/task-actions.tsx +0 -164
- package/src/server/dash/app/dash/tasks/[id]/task-view.css +0 -407
- package/src/server/dash/app/dash/tasks/[id]/task-view.tsx +0 -513
- package/src/server/dash/app/dash/tasks/composer-data.ts +0 -96
- package/src/server/dash/app/dash/tasks/composer.css +0 -316
- package/src/server/dash/app/dash/tasks/composer.tsx +0 -890
- package/src/server/dash/app/dash/tasks/list/status.css +0 -50
- package/src/server/dash/app/dash/tasks/list/status.tsx +0 -20
- package/src/server/dash/app/dash/tasks/list/task.ts +0 -45
- package/src/server/dash/app/dash/tasks/list/tasks-list.css +0 -85
- package/src/server/dash/app/dash/tasks/list/tasks-list.tsx +0 -402
- package/src/server/dash/app/dash/tasks/list/tasks-section.tsx +0 -96
- package/src/server/dash/app/dash/tasks/page.tsx +0 -53
- package/src/server/dash/app/dash/usage/custom-range.tsx +0 -63
- package/src/server/dash/app/dash/usage/day-chart.css +0 -109
- package/src/server/dash/app/dash/usage/day-chart.tsx +0 -110
- package/src/server/dash/app/dash/usage/loading.tsx +0 -17
- package/src/server/dash/app/dash/usage/metric.ts +0 -13
- package/src/server/dash/app/dash/usage/page.tsx +0 -117
- package/src/server/dash/app/dash/usage/range-bar.css +0 -13
- package/src/server/dash/app/dash/usage/range-bar.tsx +0 -69
- package/src/server/dash/app/dash/usage/stats.css +0 -52
- package/src/server/dash/app/dash/usage/stats.tsx +0 -19
- package/src/server/dash/app/dash/usage/top-agents.css +0 -40
- package/src/server/dash/app/dash/usage/top-agents.tsx +0 -138
- package/src/server/dash/app/globals.css +0 -692
- package/src/server/dash/app/layout.tsx +0 -52
- package/src/server/dash/app/login/page.css +0 -26
- package/src/server/dash/app/login/page.tsx +0 -57
- package/src/server/dash/app/page.tsx +0 -5
- package/src/server/dash/app/responsive.css +0 -49
- package/src/server/dash/app/zone.tsx +0 -13
- package/src/server/dash/comps/frame/auth-panel.css +0 -60
- package/src/server/dash/comps/frame/auth-panel.tsx +0 -44
- package/src/server/dash/comps/frame/drawer.css +0 -28
- package/src/server/dash/comps/frame/drawer.tsx +0 -39
- package/src/server/dash/comps/frame/heads.ts +0 -41
- package/src/server/dash/comps/frame/loading-card.tsx +0 -65
- package/src/server/dash/comps/frame/page-head.css +0 -83
- package/src/server/dash/comps/frame/page-head.tsx +0 -71
- package/src/server/dash/comps/frame/stream.tsx +0 -50
- package/src/server/dash/comps/frame/task-toasts.tsx +0 -214
- package/src/server/dash/comps/frame/theme-choices.tsx +0 -46
- package/src/server/dash/comps/nav/current-link.tsx +0 -53
- package/src/server/dash/comps/nav/side-toggle.tsx +0 -30
- package/src/server/dash/comps/nav/to.ts +0 -22
- package/src/server/dash/comps/ui/badge.css +0 -64
- package/src/server/dash/comps/ui/badge.tsx +0 -41
- package/src/server/dash/comps/ui/card.css +0 -93
- package/src/server/dash/comps/ui/card.tsx +0 -77
- package/src/server/dash/comps/ui/collapse.css +0 -32
- package/src/server/dash/comps/ui/collapse.tsx +0 -49
- package/src/server/dash/comps/ui/combo.tsx +0 -154
- package/src/server/dash/comps/ui/confirm.css +0 -36
- package/src/server/dash/comps/ui/confirm.tsx +0 -67
- package/src/server/dash/comps/ui/field.css +0 -25
- package/src/server/dash/comps/ui/field.tsx +0 -34
- package/src/server/dash/comps/ui/icon.css +0 -22
- package/src/server/dash/comps/ui/icon.tsx +0 -17
- package/src/server/dash/comps/ui/icons.ts +0 -44
- package/src/server/dash/comps/ui/menu.css +0 -178
- package/src/server/dash/comps/ui/menu.tsx +0 -156
- package/src/server/dash/comps/ui/segmented.css +0 -44
- package/src/server/dash/comps/ui/segmented.tsx +0 -58
- package/src/server/dash/comps/ui/select.css +0 -103
- package/src/server/dash/comps/ui/select.tsx +0 -250
- package/src/server/dash/comps/ui/sentinel.css +0 -58
- package/src/server/dash/comps/ui/sentinel.tsx +0 -67
- package/src/server/dash/comps/ui/tabs.css +0 -81
- package/src/server/dash/comps/ui/tabs.tsx +0 -32
- package/src/server/dash/comps/ui/tail.css +0 -12
- package/src/server/dash/comps/ui/tail.tsx +0 -37
- package/src/server/dash/comps/ui/toast.css +0 -73
- package/src/server/dash/comps/ui/toolbar.css +0 -143
- package/src/server/dash/comps/ui/toolbar.tsx +0 -93
- package/src/server/dash/package.json +0 -5
- package/src/server/dash/pnext-env.d.ts +0 -4
- package/src/server/dash/pnext.config.ts +0 -5
- package/src/server/dash/public/assets/apple-touch-icon.png +0 -0
- package/src/server/dash/public/assets/favicon.ico +0 -0
- package/src/server/dash/public/assets/favicon.svg +0 -1
- package/src/server/dash/public/assets/fonts/LICENSE-fira-code +0 -93
- package/src/server/dash/public/assets/fonts/fira-code-latin-400-normal-717ee080.woff2 +0 -0
- package/src/server/dash/public/assets/fonts/fira-code-latin-500-normal-530b6706.woff2 +0 -0
- package/src/server/dash/public/assets/fonts/fira-code-latin-700-normal-98730669.woff2 +0 -0
- package/src/server/dash/tsconfig.json +0 -10
- package/src/server/dash/utils/client.ts +0 -19
- package/src/server/dash/utils/format.ts +0 -75
- package/src/server/dash/utils/paged.ts +0 -184
- package/src/server/dash/utils/range.ts +0 -117
- /package/{src/server/dash/app/dash/usage/usage.css → dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/account/page.1df2bb5150dd9575.css.pnext-asset.js} +0 -0
- /package/dist/dash/{public → standalone/static}/assets/apple-touch-icon.png +0 -0
- /package/dist/dash/{public → standalone/static}/assets/chunks/composer-data-6f7608fed13f3dd7.js +0 -0
- /package/dist/dash/{public → standalone/static}/assets/chunks/model-options-15c53331a2f28a4f.js +0 -0
- /package/dist/dash/{public → standalone/static}/assets/chunks/shared-init-8f2ac936c95a7f7b.js +0 -0
- /package/dist/dash/{public → standalone/static}/assets/connect-382b1729a7ae7808.css +0 -0
- /package/dist/dash/{public → standalone/static}/assets/dash-49ca85b59ac65c20.css +0 -0
- /package/dist/dash/{public → standalone/static}/assets/favicon.ico +0 -0
- /package/dist/dash/{public → standalone/static}/assets/favicon.svg +0 -0
- /package/dist/dash/{public → standalone/static}/assets/fonts/LICENSE-fira-code +0 -0
- /package/dist/dash/{public → standalone/static}/assets/fonts/fira-code-latin-400-normal-717ee080.woff2 +0 -0
- /package/dist/dash/{public → standalone/static}/assets/fonts/fira-code-latin-500-normal-530b6706.woff2 +0 -0
- /package/dist/dash/{public → standalone/static}/assets/fonts/fira-code-latin-700-normal-98730669.woff2 +0 -0
- /package/dist/dash/{public → standalone/static}/assets/global-d2adbf01910d9df5.css +0 -0
- /package/dist/dash/{public → standalone/static}/assets/login-c129b1ce237be260.css +0 -0
|
@@ -0,0 +1,1270 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
actionId,
|
|
4
|
+
inlineUseServerFunctions,
|
|
5
|
+
moduleLevelUseServer,
|
|
6
|
+
workspaceRelative
|
|
7
|
+
} from "./index-6q7zvrap.js";
|
|
8
|
+
import {
|
|
9
|
+
isTaggedPrimitiveThrow,
|
|
10
|
+
tagPrimitiveThrow,
|
|
11
|
+
untagPrimitiveThrow
|
|
12
|
+
} from "./index-79ngvam8.js";
|
|
13
|
+
import {
|
|
14
|
+
revalidationEventCount
|
|
15
|
+
} from "./index-akkrvjn6.js";
|
|
16
|
+
import {
|
|
17
|
+
getNextConfig,
|
|
18
|
+
nextConfigReleased
|
|
19
|
+
} from "./index-m63czgq5.js";
|
|
20
|
+
import {
|
|
21
|
+
pathToFileHref
|
|
22
|
+
} from "./index-71885zaq.js";
|
|
23
|
+
import {
|
|
24
|
+
runWithRequest,
|
|
25
|
+
setPhase
|
|
26
|
+
} from "./index-grta8ap3.js";
|
|
27
|
+
|
|
28
|
+
// src/compat/actions/config.ts
|
|
29
|
+
import { existsSync } from "fs";
|
|
30
|
+
import { createRequire } from "module";
|
|
31
|
+
import path from "path";
|
|
32
|
+
|
|
33
|
+
// src/compat/actions/endpoint.ts
|
|
34
|
+
import { isNotFoundError, isRedirectError } from "../../../src/api/navigation.ts";
|
|
35
|
+
import { toNextRequest } from "../../../src/api/server.ts";
|
|
36
|
+
|
|
37
|
+
// src/compat/lifecycle/error-serialize.ts
|
|
38
|
+
var REDACTED_MESSAGE = "Minified React error #441; visit https://react.dev/errors/441 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
|
|
39
|
+
function stableDigest(input) {
|
|
40
|
+
let hash = 5381;
|
|
41
|
+
for (let i = 0;i < input.length; i++) {
|
|
42
|
+
hash = hash * 33 ^ input.charCodeAt(i);
|
|
43
|
+
}
|
|
44
|
+
return (hash >>> 0).toString();
|
|
45
|
+
}
|
|
46
|
+
function customDigest(error) {
|
|
47
|
+
const digest = error.digest;
|
|
48
|
+
return typeof digest === "string" && digest.length > 0 ? digest : undefined;
|
|
49
|
+
}
|
|
50
|
+
function digestSuffix(error) {
|
|
51
|
+
if (!isTaggedPrimitiveThrow(error))
|
|
52
|
+
return "";
|
|
53
|
+
const raw = untagPrimitiveThrow(error);
|
|
54
|
+
return raw === null || raw === undefined ? "@E394" : "";
|
|
55
|
+
}
|
|
56
|
+
function wrapThrownValue(value) {
|
|
57
|
+
const error = tagPrimitiveThrow(value);
|
|
58
|
+
error.stack = `Error: ${error.message}
|
|
59
|
+
at stringify (<anonymous>)`;
|
|
60
|
+
return error;
|
|
61
|
+
}
|
|
62
|
+
function formatErrorLog(trace, digest, error) {
|
|
63
|
+
const environmentName = error?.environmentName;
|
|
64
|
+
const environment = typeof environmentName === "string" ? ` environmentName: '${environmentName}',
|
|
65
|
+
` : "";
|
|
66
|
+
return `\u2A2F ${trace} {
|
|
67
|
+
${environment} digest: '${digest}'
|
|
68
|
+
}`;
|
|
69
|
+
}
|
|
70
|
+
function serializeBoundaryError(ctx) {
|
|
71
|
+
const { error, dev } = ctx;
|
|
72
|
+
const custom = customDigest(error);
|
|
73
|
+
const digest = custom ?? stableDigest(`${error.message}${error.stack ?? ""}`) + digestSuffix(error);
|
|
74
|
+
const boundaryError = new Error(dev ? error.message : REDACTED_MESSAGE);
|
|
75
|
+
boundaryError.name = error.name || "Error";
|
|
76
|
+
boundaryError.digest = digest;
|
|
77
|
+
boundaryError.stack = undefined;
|
|
78
|
+
return boundaryError;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
// src/compat/actions/registry.ts
|
|
82
|
+
var registry = new Map;
|
|
83
|
+
function registerActionModule(filePath, exportNames, options = {}) {
|
|
84
|
+
const modulePath = options.modulePath ?? filePath;
|
|
85
|
+
const entries = [];
|
|
86
|
+
for (const exportName of exportNames) {
|
|
87
|
+
const id = actionId(filePath, exportName, options.root);
|
|
88
|
+
const entry = { id, modulePath, exportName, filePath };
|
|
89
|
+
registry.set(id, entry);
|
|
90
|
+
entries.push(entry);
|
|
91
|
+
}
|
|
92
|
+
return entries;
|
|
93
|
+
}
|
|
94
|
+
function lookupAction(id) {
|
|
95
|
+
const entry = registry.get(id);
|
|
96
|
+
if (!entry)
|
|
97
|
+
return;
|
|
98
|
+
return { modulePath: entry.modulePath, exportName: entry.exportName };
|
|
99
|
+
}
|
|
100
|
+
function lookupActionSource(id) {
|
|
101
|
+
return registry.get(id)?.filePath;
|
|
102
|
+
}
|
|
103
|
+
function clearActions() {
|
|
104
|
+
registry.clear();
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
// src/compat/actions/instances.ts
|
|
108
|
+
import { createHash } from "crypto";
|
|
109
|
+
var instances = new Map;
|
|
110
|
+
function createInstanceScope(routeId) {
|
|
111
|
+
return { routeId, counts: new Map };
|
|
112
|
+
}
|
|
113
|
+
function registerActionInstance(scope, fn) {
|
|
114
|
+
const callable = fn;
|
|
115
|
+
const hash = sourceHash(callable);
|
|
116
|
+
const index = scope.counts.get(hash) ?? 0;
|
|
117
|
+
scope.counts.set(hash, index + 1);
|
|
118
|
+
const id = `i:${scope.routeId}:${hash}:${index}`;
|
|
119
|
+
instances.set(id, callable);
|
|
120
|
+
return id;
|
|
121
|
+
}
|
|
122
|
+
function lookupActionInstance(id) {
|
|
123
|
+
return instances.get(id);
|
|
124
|
+
}
|
|
125
|
+
function isInstanceActionId(id) {
|
|
126
|
+
return id.startsWith("i:");
|
|
127
|
+
}
|
|
128
|
+
function instanceActionRouteId(id) {
|
|
129
|
+
if (!isInstanceActionId(id))
|
|
130
|
+
return;
|
|
131
|
+
const parts = id.split(":");
|
|
132
|
+
if (parts.length < 4)
|
|
133
|
+
return;
|
|
134
|
+
return parts.slice(1, -2).join(":");
|
|
135
|
+
}
|
|
136
|
+
globalThis.__pnextMarkInlineAction = (fn) => {
|
|
137
|
+
if (typeof fn === "function")
|
|
138
|
+
fn.$$pnextInlineAction = true;
|
|
139
|
+
return fn;
|
|
140
|
+
};
|
|
141
|
+
function isMarkedInlineAction(fn) {
|
|
142
|
+
return typeof fn === "function" && fn.$$pnextInlineAction === true;
|
|
143
|
+
}
|
|
144
|
+
globalThis.__pnextTagInlineAction = (fn, id) => {
|
|
145
|
+
if (typeof fn !== "function")
|
|
146
|
+
return;
|
|
147
|
+
const tagged = fn;
|
|
148
|
+
instances.set(id, tagged);
|
|
149
|
+
tagged.$$pnextAssignedId = id;
|
|
150
|
+
if (!("$$id" in tagged)) {
|
|
151
|
+
Object.defineProperty(tagged, "$$id", { value: id, configurable: true, writable: true });
|
|
152
|
+
}
|
|
153
|
+
};
|
|
154
|
+
function overriddenActionId(fn) {
|
|
155
|
+
if (typeof fn !== "function")
|
|
156
|
+
return;
|
|
157
|
+
const tagged = fn;
|
|
158
|
+
if (typeof tagged.$$id === "string" && tagged.$$id !== tagged.$$pnextAssignedId) {
|
|
159
|
+
return tagged.$$id;
|
|
160
|
+
}
|
|
161
|
+
return;
|
|
162
|
+
}
|
|
163
|
+
function assignedInlineActionId(fn) {
|
|
164
|
+
if (typeof fn !== "function")
|
|
165
|
+
return;
|
|
166
|
+
const tagged = fn;
|
|
167
|
+
return typeof tagged.$$pnextAssignedId === "string" ? tagged.$$pnextAssignedId : undefined;
|
|
168
|
+
}
|
|
169
|
+
function sourceHash(fn) {
|
|
170
|
+
let source = "";
|
|
171
|
+
try {
|
|
172
|
+
source = String(fn);
|
|
173
|
+
} catch {
|
|
174
|
+
source = "opaque";
|
|
175
|
+
}
|
|
176
|
+
return createHash("sha256").update(source).digest("hex").slice(0, 10);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
// src/compat/actions/rewrite.ts
|
|
180
|
+
function rewriteInlineActionTags(source, file, root) {
|
|
181
|
+
if (!source.includes("use server"))
|
|
182
|
+
return source;
|
|
183
|
+
if (moduleLevelUseServer(source))
|
|
184
|
+
return source;
|
|
185
|
+
const topLevel = inlineUseServerFunctions(source).filter((action) => action.start === 0 || source[action.start - 1] === `
|
|
186
|
+
`);
|
|
187
|
+
if (topLevel.length === 0)
|
|
188
|
+
return source;
|
|
189
|
+
const key = workspaceRelative(file, root);
|
|
190
|
+
const insertions = [];
|
|
191
|
+
const fallbacks = [];
|
|
192
|
+
for (const action of topLevel) {
|
|
193
|
+
if (source.includes(`__pnextTagInlineAction(${action.name},`))
|
|
194
|
+
continue;
|
|
195
|
+
const id = inlineActionId(key, action.name);
|
|
196
|
+
const tag = `
|
|
197
|
+
;typeof ${action.name} === 'function' && globalThis.__pnextTagInlineAction && globalThis.__pnextTagInlineAction(${action.name}, ${JSON.stringify(id)});`;
|
|
198
|
+
const at = declarationEnd(source, action.directiveEnd);
|
|
199
|
+
if (at === undefined)
|
|
200
|
+
fallbacks.push(tag);
|
|
201
|
+
else
|
|
202
|
+
insertions.push({ at, text: tag });
|
|
203
|
+
}
|
|
204
|
+
let out = source;
|
|
205
|
+
for (const { at, text } of insertions.sort((a, b) => b.at - a.at)) {
|
|
206
|
+
out = out.slice(0, at) + text + out.slice(at);
|
|
207
|
+
}
|
|
208
|
+
if (fallbacks.length > 0)
|
|
209
|
+
out = `${out}
|
|
210
|
+
${fallbacks.join(`
|
|
211
|
+
`)}
|
|
212
|
+
`;
|
|
213
|
+
return out;
|
|
214
|
+
}
|
|
215
|
+
function rewriteAnonymousInlineActionMarks(source) {
|
|
216
|
+
if (!source.includes("use server"))
|
|
217
|
+
return source;
|
|
218
|
+
if (moduleLevelUseServer(source))
|
|
219
|
+
return source;
|
|
220
|
+
const wraps = anonymousInlineActionSpans(source);
|
|
221
|
+
if (wraps.length === 0)
|
|
222
|
+
return source;
|
|
223
|
+
let out = source;
|
|
224
|
+
for (const { start, end } of wraps.sort((a, b) => b.start - a.start)) {
|
|
225
|
+
const fn = out.slice(start, end);
|
|
226
|
+
out = `${out.slice(0, start)}(globalThis.__pnextMarkInlineAction ? globalThis.__pnextMarkInlineAction(${fn}) : ${fn})${out.slice(end)}`;
|
|
227
|
+
}
|
|
228
|
+
return out;
|
|
229
|
+
}
|
|
230
|
+
function anonymousInlineActionSpans(source) {
|
|
231
|
+
const directive = /\{\s*(['"])use server\1\s*;?/g;
|
|
232
|
+
const spans = [];
|
|
233
|
+
for (let match;match = directive.exec(source); ) {
|
|
234
|
+
const start = functionExpressionStart(source, match.index);
|
|
235
|
+
if (start === undefined)
|
|
236
|
+
continue;
|
|
237
|
+
const end = bodyEnd(source, match.index);
|
|
238
|
+
if (end === undefined)
|
|
239
|
+
continue;
|
|
240
|
+
spans.push({ start, end, directiveEnd: match.index + match[0].length });
|
|
241
|
+
}
|
|
242
|
+
return spans;
|
|
243
|
+
}
|
|
244
|
+
function functionExpressionStart(source, open) {
|
|
245
|
+
let i = skipBackWhitespace(source, open - 1);
|
|
246
|
+
if (source[i] === ">" && source[i - 1] === "=") {
|
|
247
|
+
i = skipBackWhitespace(source, i - 2);
|
|
248
|
+
const head = source[i] === ")" ? matchingOpenParen(source, i) : identifierStart(source, i);
|
|
249
|
+
if (head === undefined)
|
|
250
|
+
return;
|
|
251
|
+
i = head;
|
|
252
|
+
} else if (source[i] === ")") {
|
|
253
|
+
const paren = matchingOpenParen(source, i);
|
|
254
|
+
if (paren === undefined)
|
|
255
|
+
return;
|
|
256
|
+
let j = skipBackWhitespace(source, paren - 1);
|
|
257
|
+
const name = identifierStart(source, j);
|
|
258
|
+
if (name === undefined)
|
|
259
|
+
return;
|
|
260
|
+
if (source.slice(name, j + 1) !== "function") {
|
|
261
|
+
j = skipBackWhitespace(source, name - 1);
|
|
262
|
+
const keyword = identifierStart(source, j);
|
|
263
|
+
if (keyword === undefined || source.slice(keyword, j + 1) !== "function")
|
|
264
|
+
return;
|
|
265
|
+
i = keyword;
|
|
266
|
+
} else {
|
|
267
|
+
i = name;
|
|
268
|
+
}
|
|
269
|
+
} else {
|
|
270
|
+
return;
|
|
271
|
+
}
|
|
272
|
+
const withAsync = precedingKeyword(source, i, "async");
|
|
273
|
+
if (withAsync !== undefined)
|
|
274
|
+
i = withAsync;
|
|
275
|
+
const before = skipBackWhitespace(source, i - 1);
|
|
276
|
+
if (before < 0)
|
|
277
|
+
return;
|
|
278
|
+
if (source[before] === "{")
|
|
279
|
+
return isJsxExpressionContainer(source, before) ? i : undefined;
|
|
280
|
+
return "(,:[=?&|".includes(source[before] ?? "") ? i : undefined;
|
|
281
|
+
}
|
|
282
|
+
function isJsxExpressionContainer(source, open) {
|
|
283
|
+
const before = skipBackWhitespace(source, open - 1);
|
|
284
|
+
if (before < 0)
|
|
285
|
+
return false;
|
|
286
|
+
const ch = source[before];
|
|
287
|
+
if (source[before - 1] === "=")
|
|
288
|
+
return false;
|
|
289
|
+
return ch === "=" || ch === ">";
|
|
290
|
+
}
|
|
291
|
+
function skipBackWhitespace(source, from) {
|
|
292
|
+
let i = from;
|
|
293
|
+
while (i >= 0 && /\s/.test(source[i] ?? ""))
|
|
294
|
+
i--;
|
|
295
|
+
return i;
|
|
296
|
+
}
|
|
297
|
+
function identifierStart(source, end) {
|
|
298
|
+
if (!/[\w$]/.test(source[end] ?? ""))
|
|
299
|
+
return;
|
|
300
|
+
let i = end;
|
|
301
|
+
while (i >= 0 && /[\w$]/.test(source[i] ?? ""))
|
|
302
|
+
i--;
|
|
303
|
+
return i + 1;
|
|
304
|
+
}
|
|
305
|
+
function matchingOpenParen(source, close) {
|
|
306
|
+
let depth = 0;
|
|
307
|
+
for (let i = close;i >= 0; i--) {
|
|
308
|
+
if (source[i] === ")")
|
|
309
|
+
depth++;
|
|
310
|
+
else if (source[i] === "(") {
|
|
311
|
+
depth--;
|
|
312
|
+
if (depth === 0)
|
|
313
|
+
return i;
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
return;
|
|
317
|
+
}
|
|
318
|
+
function precedingKeyword(source, at, keyword) {
|
|
319
|
+
const end = skipBackWhitespace(source, at - 1);
|
|
320
|
+
const start = identifierStart(source, end);
|
|
321
|
+
if (start === undefined || source.slice(start, end + 1) !== keyword)
|
|
322
|
+
return;
|
|
323
|
+
return start;
|
|
324
|
+
}
|
|
325
|
+
function bodyEnd(source, open) {
|
|
326
|
+
const end = declarationEnd(source, open + 1);
|
|
327
|
+
if (end === undefined)
|
|
328
|
+
return;
|
|
329
|
+
return source[end - 1] === ";" ? end - 1 : end;
|
|
330
|
+
}
|
|
331
|
+
function declarationEnd(source, directiveEnd) {
|
|
332
|
+
let open = -1;
|
|
333
|
+
for (let i = directiveEnd - 1;i >= 0; i--) {
|
|
334
|
+
if (source[i] === "{") {
|
|
335
|
+
open = i;
|
|
336
|
+
break;
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
if (open === -1)
|
|
340
|
+
return;
|
|
341
|
+
let depth = 0;
|
|
342
|
+
for (let i = open;i < source.length; i++) {
|
|
343
|
+
const ch = source[i];
|
|
344
|
+
if (ch === '"' || ch === "'" || ch === "`") {
|
|
345
|
+
i = skipString(source, i, ch);
|
|
346
|
+
continue;
|
|
347
|
+
}
|
|
348
|
+
if (ch === "/" && source[i + 1] === "/") {
|
|
349
|
+
const nl = source.indexOf(`
|
|
350
|
+
`, i + 2);
|
|
351
|
+
if (nl === -1)
|
|
352
|
+
return;
|
|
353
|
+
i = nl;
|
|
354
|
+
continue;
|
|
355
|
+
}
|
|
356
|
+
if (ch === "/" && source[i + 1] === "*") {
|
|
357
|
+
const end = source.indexOf("*/", i + 2);
|
|
358
|
+
if (end === -1)
|
|
359
|
+
return;
|
|
360
|
+
i = end + 1;
|
|
361
|
+
continue;
|
|
362
|
+
}
|
|
363
|
+
if (ch === "{")
|
|
364
|
+
depth++;
|
|
365
|
+
else if (ch === "}") {
|
|
366
|
+
depth--;
|
|
367
|
+
if (depth === 0) {
|
|
368
|
+
let end = i + 1;
|
|
369
|
+
if (source[end] === ";")
|
|
370
|
+
end += 1;
|
|
371
|
+
return end;
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
return;
|
|
376
|
+
}
|
|
377
|
+
function skipString(source, i, quote) {
|
|
378
|
+
for (let j = i + 1;j < source.length; j++) {
|
|
379
|
+
const ch = source[j];
|
|
380
|
+
if (ch === "\\") {
|
|
381
|
+
j += 1;
|
|
382
|
+
continue;
|
|
383
|
+
}
|
|
384
|
+
if (ch === quote)
|
|
385
|
+
return j;
|
|
386
|
+
if (quote === "`" && ch === "$" && source[j + 1] === "{") {
|
|
387
|
+
let depth = 1;
|
|
388
|
+
j += 2;
|
|
389
|
+
while (j < source.length && depth > 0) {
|
|
390
|
+
if (source[j] === "{")
|
|
391
|
+
depth++;
|
|
392
|
+
else if (source[j] === "}")
|
|
393
|
+
depth--;
|
|
394
|
+
j++;
|
|
395
|
+
}
|
|
396
|
+
j -= 1;
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
return source.length;
|
|
400
|
+
}
|
|
401
|
+
function inlineActionId(fileKey, name) {
|
|
402
|
+
return `if:${encodeURIComponent(fileKey)}:${encodeURIComponent(name)}`;
|
|
403
|
+
}
|
|
404
|
+
function inlineActionModuleKey(id) {
|
|
405
|
+
if (!id.startsWith("if:"))
|
|
406
|
+
return;
|
|
407
|
+
const rest = id.slice(3);
|
|
408
|
+
const separator = rest.lastIndexOf(":");
|
|
409
|
+
if (separator === -1)
|
|
410
|
+
return;
|
|
411
|
+
try {
|
|
412
|
+
return decodeURIComponent(rest.slice(0, separator));
|
|
413
|
+
} catch {
|
|
414
|
+
return;
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
function isInlineActionId(id) {
|
|
418
|
+
return id.startsWith("if:");
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
// src/compat/actions/return.ts
|
|
422
|
+
var TEMP_REF_MARKER = "$$pnext_temp_ref";
|
|
423
|
+
var ACTION_ELEMENT_MARKER = "$$pnext_element";
|
|
424
|
+
var ACTION_ELEMENT_HTML_MARKER = "$$pnext_element_html";
|
|
425
|
+
var clientReferenceSymbol = Symbol.for("pnext.clientReference");
|
|
426
|
+
var ACTION_STREAM_CONTENT_TYPE = "x-component/pnext-stream";
|
|
427
|
+
function createTempRefScope() {
|
|
428
|
+
const ids = new WeakMap;
|
|
429
|
+
let active = false;
|
|
430
|
+
return {
|
|
431
|
+
track(object, id) {
|
|
432
|
+
ids.set(object, id);
|
|
433
|
+
active = true;
|
|
434
|
+
},
|
|
435
|
+
idFor(value) {
|
|
436
|
+
if (value === null || typeof value !== "object")
|
|
437
|
+
return;
|
|
438
|
+
return ids.get(value);
|
|
439
|
+
},
|
|
440
|
+
get active() {
|
|
441
|
+
return active;
|
|
442
|
+
}
|
|
443
|
+
};
|
|
444
|
+
}
|
|
445
|
+
function extractTempRefs(value, scope, seen = new Set) {
|
|
446
|
+
if (value === null || typeof value !== "object")
|
|
447
|
+
return value;
|
|
448
|
+
if (seen.has(value))
|
|
449
|
+
return value;
|
|
450
|
+
seen.add(value);
|
|
451
|
+
if (Array.isArray(value)) {
|
|
452
|
+
for (let i = 0;i < value.length; i++)
|
|
453
|
+
value[i] = extractTempRefs(value[i], scope, seen);
|
|
454
|
+
return value;
|
|
455
|
+
}
|
|
456
|
+
const record = value;
|
|
457
|
+
const id = record[TEMP_REF_MARKER];
|
|
458
|
+
if (typeof id === "string") {
|
|
459
|
+
delete record[TEMP_REF_MARKER];
|
|
460
|
+
scope.track(record, id);
|
|
461
|
+
}
|
|
462
|
+
for (const key of Object.keys(record)) {
|
|
463
|
+
record[key] = extractTempRefs(record[key], scope, seen);
|
|
464
|
+
}
|
|
465
|
+
return record;
|
|
466
|
+
}
|
|
467
|
+
async function serializeReturnWithTempRefs(value, scope, renderElement) {
|
|
468
|
+
const walk = async (input, seen) => {
|
|
469
|
+
if (input === null || typeof input !== "object")
|
|
470
|
+
return input;
|
|
471
|
+
const marker = scope.active ? scope.idFor(input) : undefined;
|
|
472
|
+
if (marker !== undefined)
|
|
473
|
+
return { [TEMP_REF_MARKER]: marker };
|
|
474
|
+
if (seen.has(input))
|
|
475
|
+
return input;
|
|
476
|
+
seen.add(input);
|
|
477
|
+
const element = clientReferenceElement(input);
|
|
478
|
+
if (element) {
|
|
479
|
+
return {
|
|
480
|
+
[ACTION_ELEMENT_MARKER]: {
|
|
481
|
+
id: element.id,
|
|
482
|
+
props: await walk(element.props, seen),
|
|
483
|
+
...element.key !== undefined ? { key: element.key } : {}
|
|
484
|
+
}
|
|
485
|
+
};
|
|
486
|
+
}
|
|
487
|
+
if (renderElement && isServerElement(input)) {
|
|
488
|
+
return { [ACTION_ELEMENT_HTML_MARKER]: await renderElement(input) };
|
|
489
|
+
}
|
|
490
|
+
if (Array.isArray(input))
|
|
491
|
+
return Promise.all(input.map((item) => walk(item, seen)));
|
|
492
|
+
const proto = Object.getPrototypeOf(input);
|
|
493
|
+
if (proto !== Object.prototype && proto !== null)
|
|
494
|
+
return input;
|
|
495
|
+
const out = {};
|
|
496
|
+
for (const [key, item] of Object.entries(input)) {
|
|
497
|
+
out[key] = await walk(item, seen);
|
|
498
|
+
}
|
|
499
|
+
return out;
|
|
500
|
+
};
|
|
501
|
+
return walk(value, new Set);
|
|
502
|
+
}
|
|
503
|
+
function isServerElement(value) {
|
|
504
|
+
const vnode = value;
|
|
505
|
+
if (!("type" in vnode) || !("props" in vnode))
|
|
506
|
+
return false;
|
|
507
|
+
if (vnode.$$typeof === Symbol.for("react.element"))
|
|
508
|
+
return true;
|
|
509
|
+
return Object.prototype.hasOwnProperty.call(value, "constructor") && value.constructor === undefined;
|
|
510
|
+
}
|
|
511
|
+
function clientReferenceElement(value) {
|
|
512
|
+
const vnode = value;
|
|
513
|
+
if (typeof vnode.type !== "function")
|
|
514
|
+
return;
|
|
515
|
+
const reference = vnode.type[clientReferenceSymbol];
|
|
516
|
+
if (typeof reference?.id !== "string")
|
|
517
|
+
return;
|
|
518
|
+
const key = typeof vnode.key === "string" || typeof vnode.key === "number" ? vnode.key : undefined;
|
|
519
|
+
return { id: reference.id, props: vnode.props ?? {}, ...key !== undefined ? { key } : {} };
|
|
520
|
+
}
|
|
521
|
+
function isReadableStreamReturn(value) {
|
|
522
|
+
return typeof ReadableStream !== "undefined" && value instanceof ReadableStream;
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
// src/compat/actions/protocol.ts
|
|
526
|
+
var ACTION_ID_HEADER = "next-action";
|
|
527
|
+
var ACTION_REDIRECT_HEADER = "x-action-redirect";
|
|
528
|
+
var ACTION_REFRESH_HEADER = "x-pnext-action-refresh";
|
|
529
|
+
var NEXT_ACTION_REVALIDATED_HEADER = "x-action-revalidated";
|
|
530
|
+
var ACTION_NOT_FOUND_HEADER = "x-pnext-action-not-found";
|
|
531
|
+
var NEXT_ACTION_NOT_FOUND_HEADER = "x-nextjs-action-not-found";
|
|
532
|
+
var REDIRECT_TYPE_HEADER = "x-pnext-redirect-type";
|
|
533
|
+
var ACTION_ERROR_DIGEST_HEADER = "x-pnext-action-error-digest";
|
|
534
|
+
var ARG_ACTION_MARKER = "$$pnext_action_ref";
|
|
535
|
+
var ACTION_ID_FIELD = "$pnext_action_id";
|
|
536
|
+
var SUBMIT_ACTION_ID_FIELD = "$pnext_submit_action_id";
|
|
537
|
+
var ACTION_ARGS_FIELD = "$pnext_args";
|
|
538
|
+
var FORM_STATE_FIELD = "$pnext_form_state";
|
|
539
|
+
var ARG_FORMDATA_MARKER = "$$pnext_fd";
|
|
540
|
+
var ARG_FILE_MARKER = "$$pnext_file";
|
|
541
|
+
var ARG_FORMDATA_PREFIX = "$pnext_fd_";
|
|
542
|
+
var ARG_FILE_PREFIX = "$pnext_file_";
|
|
543
|
+
var PROP_ACTION_MARKER = "$$pnextAction";
|
|
544
|
+
var MAX_ACTION_ARGS = 1000;
|
|
545
|
+
function tooManyArgsMessage(count) {
|
|
546
|
+
return `Server Action arguments list is too long (${count}). Maximum allowed is ${MAX_ACTION_ARGS}.`;
|
|
547
|
+
}
|
|
548
|
+
var MASKED_ACTION_ERROR = "Minified React error #441; visit https://react.dev/errors/441 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
|
|
549
|
+
|
|
550
|
+
// src/compat/actions/endpoint.ts
|
|
551
|
+
var DEFAULT_BODY_LIMIT_BYTES = 1024 * 1024;
|
|
552
|
+
function installServerActionDispatch(importModule) {
|
|
553
|
+
globalThis.__PNEXT_SERVER_ACTIONS__ = {
|
|
554
|
+
async call(dispatchId, dispatchArgs) {
|
|
555
|
+
const target = lookupAction(dispatchId);
|
|
556
|
+
if (!target) {
|
|
557
|
+
throw new Error(`Failed to find Server Action "${dispatchId}". This request might be from an older or newer deployment.`);
|
|
558
|
+
}
|
|
559
|
+
const module = await importModule(target.modulePath);
|
|
560
|
+
const fn = module[target.exportName];
|
|
561
|
+
if (typeof fn !== "function") {
|
|
562
|
+
throw new Error(`Failed to find Server Action "${dispatchId}".`);
|
|
563
|
+
}
|
|
564
|
+
return fn(...dispatchArgs);
|
|
565
|
+
}
|
|
566
|
+
};
|
|
567
|
+
}
|
|
568
|
+
async function runAction(request, options) {
|
|
569
|
+
const id = request.headers.get(ACTION_ID_HEADER);
|
|
570
|
+
if (!id) {
|
|
571
|
+
return errorResponse(`Missing ${ACTION_ID_HEADER} header`, 400);
|
|
572
|
+
}
|
|
573
|
+
installServerActionDispatch(options.importModule);
|
|
574
|
+
let action;
|
|
575
|
+
try {
|
|
576
|
+
action = await resolveAction(id, request, options);
|
|
577
|
+
} catch (error) {
|
|
578
|
+
console.error(error);
|
|
579
|
+
action = undefined;
|
|
580
|
+
}
|
|
581
|
+
if (!action) {
|
|
582
|
+
console.error(`Failed to find Server Action "${id}". This request might be from an older or newer deployment.
|
|
583
|
+
` + "Read more: https://nextjs.org/docs/messages/failed-to-find-server-action");
|
|
584
|
+
return new Response(`Server Action "${id}" was not found on the server.`, {
|
|
585
|
+
status: 404,
|
|
586
|
+
headers: {
|
|
587
|
+
"content-type": "text/plain; charset=utf-8",
|
|
588
|
+
[NEXT_ACTION_NOT_FOUND_HEADER]: "1"
|
|
589
|
+
}
|
|
590
|
+
});
|
|
591
|
+
}
|
|
592
|
+
const limit = options.maxBodyBytes ?? DEFAULT_BODY_LIMIT_BYTES;
|
|
593
|
+
let args;
|
|
594
|
+
try {
|
|
595
|
+
args = await decodeArgs(request, limit);
|
|
596
|
+
} catch (error) {
|
|
597
|
+
if (error instanceof BodyLimitError) {
|
|
598
|
+
console.error(`Error: ${error.message}`);
|
|
599
|
+
console.error("To configure the body size limit for Server Actions, see: https://nextjs.org/docs/app/api-reference/next-config-js/serverActions#bodysizelimit");
|
|
600
|
+
return errorResponse(options.dev ? error.message : MASKED_ACTION_ERROR, 500);
|
|
601
|
+
}
|
|
602
|
+
return errorResponse(`Invalid action payload: ${messageOf(error)}`, 400);
|
|
603
|
+
}
|
|
604
|
+
try {
|
|
605
|
+
args = await reviveActionRefs(args, (id2) => resolveAction(id2, request, options));
|
|
606
|
+
} catch (error) {
|
|
607
|
+
if (error instanceof UnknownActionReferenceError) {
|
|
608
|
+
return errorResponse(error.message, 404);
|
|
609
|
+
}
|
|
610
|
+
return errorResponse(`Invalid action payload: ${messageOf(error)}`, 400);
|
|
611
|
+
}
|
|
612
|
+
if (args.length > MAX_ACTION_ARGS) {
|
|
613
|
+
const message = tooManyArgsMessage(args.length);
|
|
614
|
+
console.error(`Error: ${message}`);
|
|
615
|
+
return errorResponse(options.dev ? message : MASKED_ACTION_ERROR, 500);
|
|
616
|
+
}
|
|
617
|
+
const tempRefs = createTempRefScope();
|
|
618
|
+
args = args.map((arg) => extractTempRefs(arg, tempRefs));
|
|
619
|
+
const responseHeaders = new Headers;
|
|
620
|
+
const revalidationsBefore = revalidationEventCount();
|
|
621
|
+
const nextRequest = toNextRequest(request);
|
|
622
|
+
try {
|
|
623
|
+
setPhase("action");
|
|
624
|
+
const data = await runWithRequest(nextRequest, () => Promise.resolve(action(...args)), {}, { responseHeaders }).finally(() => setPhase("render"));
|
|
625
|
+
const refresh = revalidationEventCount() !== revalidationsBefore || hasSetCookie(responseHeaders);
|
|
626
|
+
if (isReadableStreamReturn(data)) {
|
|
627
|
+
const headers2 = new Headers({ "content-type": ACTION_STREAM_CONTENT_TYPE });
|
|
628
|
+
setRefreshHeaders(headers2, refresh);
|
|
629
|
+
return withResponseHeaders(new Response(data, { status: 200, headers: headers2 }), responseHeaders);
|
|
630
|
+
}
|
|
631
|
+
const serialized = await serializeReturnWithTempRefs(data, tempRefs, options.renderActionElement);
|
|
632
|
+
const body = {
|
|
633
|
+
data: encodeBinaryReturn(serialized)
|
|
634
|
+
};
|
|
635
|
+
const headers = new Headers({ "content-type": "application/json; charset=utf-8" });
|
|
636
|
+
setRefreshHeaders(headers, refresh);
|
|
637
|
+
return withResponseHeaders(new Response(JSON.stringify(body), { status: 200, headers }), responseHeaders);
|
|
638
|
+
} catch (error) {
|
|
639
|
+
if (isRedirectError(error)) {
|
|
640
|
+
return withResponseHeaders(redirectResponse(error, revalidationEventCount() !== revalidationsBefore || hasSetCookie(responseHeaders)), responseHeaders);
|
|
641
|
+
}
|
|
642
|
+
if (isNotFoundError(error)) {
|
|
643
|
+
return withResponseHeaders(new Response("Not found", {
|
|
644
|
+
status: 404,
|
|
645
|
+
headers: {
|
|
646
|
+
"content-type": "text/plain; charset=utf-8",
|
|
647
|
+
[ACTION_NOT_FOUND_HEADER]: "1"
|
|
648
|
+
}
|
|
649
|
+
}), responseHeaders);
|
|
650
|
+
}
|
|
651
|
+
const message = messageOf(error);
|
|
652
|
+
let digest;
|
|
653
|
+
if (error instanceof Error) {
|
|
654
|
+
digest = serializeBoundaryError({ error, dev: Boolean(options.dev) }).digest;
|
|
655
|
+
const trace = error.stack ?? error.message;
|
|
656
|
+
console.error(typeof digest === "string" ? `${trace}
|
|
657
|
+
digest: '${digest}'` : trace);
|
|
658
|
+
} else {
|
|
659
|
+
console.error(error);
|
|
660
|
+
}
|
|
661
|
+
await options.onError?.(error, request);
|
|
662
|
+
const masked = errorResponse(options.dev ? message : MASKED_ACTION_ERROR, 500);
|
|
663
|
+
if (typeof digest === "string")
|
|
664
|
+
masked.headers.set(ACTION_ERROR_DIGEST_HEADER, digest);
|
|
665
|
+
return withResponseHeaders(masked, responseHeaders);
|
|
666
|
+
}
|
|
667
|
+
}
|
|
668
|
+
async function resolveAction(id, request, options) {
|
|
669
|
+
if (isInlineActionId(id)) {
|
|
670
|
+
let instance = lookupActionInstance(id);
|
|
671
|
+
if (!instance && options.importSourceModule) {
|
|
672
|
+
const moduleKey = inlineActionModuleKey(id);
|
|
673
|
+
if (moduleKey) {
|
|
674
|
+
try {
|
|
675
|
+
await options.importSourceModule(moduleKey);
|
|
676
|
+
} catch {}
|
|
677
|
+
instance = lookupActionInstance(id);
|
|
678
|
+
}
|
|
679
|
+
}
|
|
680
|
+
return instance;
|
|
681
|
+
}
|
|
682
|
+
if (isInstanceActionId(id)) {
|
|
683
|
+
let instance = lookupActionInstance(id);
|
|
684
|
+
if (!instance && options.rerenderRoute) {
|
|
685
|
+
const routeId = instanceActionRouteId(id);
|
|
686
|
+
if (routeId) {
|
|
687
|
+
try {
|
|
688
|
+
await options.rerenderRoute(routeId, request);
|
|
689
|
+
} catch {}
|
|
690
|
+
instance = lookupActionInstance(id);
|
|
691
|
+
}
|
|
692
|
+
}
|
|
693
|
+
return instance;
|
|
694
|
+
}
|
|
695
|
+
const target = lookupAction(id);
|
|
696
|
+
if (!target)
|
|
697
|
+
return;
|
|
698
|
+
const module = await options.importModule(target.modulePath);
|
|
699
|
+
const action = module[target.exportName];
|
|
700
|
+
return typeof action === "function" ? action : undefined;
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
class BodyLimitError extends Error {
|
|
704
|
+
}
|
|
705
|
+
async function readBodyBytesWithLimit(request, limit) {
|
|
706
|
+
const bytes = await request.arrayBuffer();
|
|
707
|
+
if (bytes.byteLength > limit) {
|
|
708
|
+
throw new BodyLimitError(`Body exceeded ${formatLimit(limit)} limit`);
|
|
709
|
+
}
|
|
710
|
+
return bytes;
|
|
711
|
+
}
|
|
712
|
+
function bufferedFormRequest(request, bytes) {
|
|
713
|
+
const headers = new Headers(request.headers);
|
|
714
|
+
headers.delete("content-length");
|
|
715
|
+
return new Request(request.url, {
|
|
716
|
+
method: request.method,
|
|
717
|
+
headers,
|
|
718
|
+
body: bytes.byteLength === 0 ? undefined : bytes
|
|
719
|
+
});
|
|
720
|
+
}
|
|
721
|
+
function formatLimit(limit) {
|
|
722
|
+
if (limit % (1024 * 1024) === 0)
|
|
723
|
+
return `${limit / (1024 * 1024)}mb`;
|
|
724
|
+
if (limit % 1024 === 0)
|
|
725
|
+
return `${limit / 1024}kb`;
|
|
726
|
+
return `${limit} bytes`;
|
|
727
|
+
}
|
|
728
|
+
async function decodeArgs(request, limit) {
|
|
729
|
+
const bytes = await readBodyBytesWithLimit(request, limit);
|
|
730
|
+
const contentType = request.headers.get("content-type") ?? "";
|
|
731
|
+
if (contentType.includes("multipart/form-data") || contentType.includes("form-urlencoded")) {
|
|
732
|
+
const form = await bufferedFormRequest(request, bytes).formData();
|
|
733
|
+
const argsField = form.get(ACTION_ARGS_FIELD);
|
|
734
|
+
form.delete(ACTION_ID_FIELD);
|
|
735
|
+
if (typeof argsField === "string") {
|
|
736
|
+
form.delete(ACTION_ARGS_FIELD);
|
|
737
|
+
return decodeStructuredArgs(argsField, form);
|
|
738
|
+
}
|
|
739
|
+
const stateField = form.get(FORM_STATE_FIELD);
|
|
740
|
+
if (typeof stateField === "string") {
|
|
741
|
+
form.delete(FORM_STATE_FIELD);
|
|
742
|
+
let state = null;
|
|
743
|
+
try {
|
|
744
|
+
state = JSON.parse(stateField);
|
|
745
|
+
} catch {
|
|
746
|
+
state = stateField;
|
|
747
|
+
}
|
|
748
|
+
return [state, form];
|
|
749
|
+
}
|
|
750
|
+
return [form];
|
|
751
|
+
}
|
|
752
|
+
const text = new TextDecoder("utf-8").decode(bytes);
|
|
753
|
+
if (text.trim() === "")
|
|
754
|
+
return [];
|
|
755
|
+
const parsed = JSON.parse(text);
|
|
756
|
+
return Array.isArray(parsed) ? parsed : [parsed];
|
|
757
|
+
}
|
|
758
|
+
async function reviveActionRefs(args, resolve) {
|
|
759
|
+
const reviveValue = async (value) => {
|
|
760
|
+
if (value === null || typeof value !== "object")
|
|
761
|
+
return value;
|
|
762
|
+
if (Array.isArray(value))
|
|
763
|
+
return Promise.all(value.map(reviveValue));
|
|
764
|
+
const record = value;
|
|
765
|
+
if (typeof record[ARG_ACTION_MARKER] === "string") {
|
|
766
|
+
const fn = await resolve(record[ARG_ACTION_MARKER]);
|
|
767
|
+
if (!fn) {
|
|
768
|
+
const id = String(record[ARG_ACTION_MARKER]);
|
|
769
|
+
console.error(`Failed to find Server Action "${id}". This request might be from an older or newer deployment.
|
|
770
|
+
` + "Read more: https://nextjs.org/docs/messages/failed-to-find-server-action");
|
|
771
|
+
throw new UnknownActionReferenceError(id);
|
|
772
|
+
}
|
|
773
|
+
return fn;
|
|
774
|
+
}
|
|
775
|
+
if (record.$$pnext_undefined === true)
|
|
776
|
+
return;
|
|
777
|
+
const binary = reviveBinaryMarker(record);
|
|
778
|
+
if (binary !== undefined)
|
|
779
|
+
return binary;
|
|
780
|
+
if (typeof record.$$pnext_date === "string")
|
|
781
|
+
return new Date(record.$$pnext_date);
|
|
782
|
+
if (Array.isArray(record.$$pnext_map)) {
|
|
783
|
+
const entries = await Promise.all(record.$$pnext_map.map(async ([k, v]) => [await reviveValue(k), await reviveValue(v)]));
|
|
784
|
+
return new Map(entries);
|
|
785
|
+
}
|
|
786
|
+
if (Array.isArray(record.$$pnext_set)) {
|
|
787
|
+
return new Set(await Promise.all(record.$$pnext_set.map(reviveValue)));
|
|
788
|
+
}
|
|
789
|
+
if (value instanceof FormData || value instanceof Blob)
|
|
790
|
+
return value;
|
|
791
|
+
if (Object.getPrototypeOf(value) !== Object.prototype && Object.getPrototypeOf(value) !== null) {
|
|
792
|
+
return value;
|
|
793
|
+
}
|
|
794
|
+
const out = {};
|
|
795
|
+
for (const [key, item] of Object.entries(record))
|
|
796
|
+
out[key] = await reviveValue(item);
|
|
797
|
+
return out;
|
|
798
|
+
};
|
|
799
|
+
return Promise.all(args.map(reviveValue));
|
|
800
|
+
}
|
|
801
|
+
var TYPED_ARRAY_MARKER = "$$pnext_typed_array";
|
|
802
|
+
var ARRAY_BUFFER_MARKER = "$$pnext_array_buffer";
|
|
803
|
+
var TYPED_ARRAY_CTORS = {
|
|
804
|
+
Int8Array,
|
|
805
|
+
Uint8Array,
|
|
806
|
+
Uint8ClampedArray,
|
|
807
|
+
Int16Array,
|
|
808
|
+
Uint16Array,
|
|
809
|
+
Int32Array,
|
|
810
|
+
Uint32Array,
|
|
811
|
+
Float32Array,
|
|
812
|
+
Float64Array,
|
|
813
|
+
BigInt64Array,
|
|
814
|
+
BigUint64Array
|
|
815
|
+
};
|
|
816
|
+
function isTypedArrayView(value) {
|
|
817
|
+
return ArrayBuffer.isView(value) && !(value instanceof DataView);
|
|
818
|
+
}
|
|
819
|
+
function encodeBinaryReturn(value, seen = new Set) {
|
|
820
|
+
if (value === null || typeof value !== "object")
|
|
821
|
+
return value;
|
|
822
|
+
if (value instanceof ArrayBuffer) {
|
|
823
|
+
return { [ARRAY_BUFFER_MARKER]: Buffer.from(new Uint8Array(value)).toString("base64") };
|
|
824
|
+
}
|
|
825
|
+
if (isTypedArrayView(value)) {
|
|
826
|
+
const bytes = new Uint8Array(value.buffer, value.byteOffset, value.byteLength);
|
|
827
|
+
return {
|
|
828
|
+
[TYPED_ARRAY_MARKER]: {
|
|
829
|
+
type: value.constructor.name,
|
|
830
|
+
data: Buffer.from(bytes).toString("base64")
|
|
831
|
+
}
|
|
832
|
+
};
|
|
833
|
+
}
|
|
834
|
+
if (seen.has(value))
|
|
835
|
+
return value;
|
|
836
|
+
seen.add(value);
|
|
837
|
+
if (Array.isArray(value))
|
|
838
|
+
return value.map((item) => encodeBinaryReturn(item, seen));
|
|
839
|
+
const proto = Object.getPrototypeOf(value);
|
|
840
|
+
if (proto !== Object.prototype && proto !== null)
|
|
841
|
+
return value;
|
|
842
|
+
const out = {};
|
|
843
|
+
for (const [key, item] of Object.entries(value)) {
|
|
844
|
+
out[key] = encodeBinaryReturn(item, seen);
|
|
845
|
+
}
|
|
846
|
+
return out;
|
|
847
|
+
}
|
|
848
|
+
function reviveBinaryMarker(record) {
|
|
849
|
+
const typed = record[TYPED_ARRAY_MARKER];
|
|
850
|
+
if (typed && typeof typed === "object") {
|
|
851
|
+
const { type, data } = typed;
|
|
852
|
+
const Ctor = type ? TYPED_ARRAY_CTORS[type] : undefined;
|
|
853
|
+
if (Ctor && typeof data === "string") {
|
|
854
|
+
const bytes = Buffer.from(data, "base64");
|
|
855
|
+
return new Ctor(bytes.buffer.slice(bytes.byteOffset, bytes.byteOffset + bytes.byteLength));
|
|
856
|
+
}
|
|
857
|
+
}
|
|
858
|
+
const buffer = record[ARRAY_BUFFER_MARKER];
|
|
859
|
+
if (typeof buffer === "string") {
|
|
860
|
+
const bytes = Buffer.from(buffer, "base64");
|
|
861
|
+
return bytes.buffer.slice(bytes.byteOffset, bytes.byteOffset + bytes.byteLength);
|
|
862
|
+
}
|
|
863
|
+
return;
|
|
864
|
+
}
|
|
865
|
+
|
|
866
|
+
class UnknownActionReferenceError extends Error {
|
|
867
|
+
actionId;
|
|
868
|
+
constructor(actionId2) {
|
|
869
|
+
super(`Server Action "${actionId2}" was not found on the server.`);
|
|
870
|
+
this.actionId = actionId2;
|
|
871
|
+
}
|
|
872
|
+
}
|
|
873
|
+
function decodeStructuredArgs(argsJson, form) {
|
|
874
|
+
const parsed = JSON.parse(argsJson);
|
|
875
|
+
const list = Array.isArray(parsed) ? parsed : [parsed];
|
|
876
|
+
return list.map((item) => reviveArg(item, form));
|
|
877
|
+
}
|
|
878
|
+
function reviveArg(value, form) {
|
|
879
|
+
if (value === null || typeof value !== "object")
|
|
880
|
+
return value;
|
|
881
|
+
if (Array.isArray(value))
|
|
882
|
+
return value.map((item) => reviveArg(item, form));
|
|
883
|
+
const record = value;
|
|
884
|
+
if (typeof record[ARG_FORMDATA_MARKER] === "number") {
|
|
885
|
+
const slot = record[ARG_FORMDATA_MARKER];
|
|
886
|
+
const prefix = `${ARG_FORMDATA_PREFIX}${slot}:`;
|
|
887
|
+
const data = new FormData;
|
|
888
|
+
for (const [key, item] of form.entries()) {
|
|
889
|
+
if (key.startsWith(prefix))
|
|
890
|
+
data.append(key.slice(prefix.length), item);
|
|
891
|
+
}
|
|
892
|
+
return data;
|
|
893
|
+
}
|
|
894
|
+
if (typeof record[ARG_FILE_MARKER] === "number") {
|
|
895
|
+
const slot = record[ARG_FILE_MARKER];
|
|
896
|
+
return form.get(`${ARG_FILE_PREFIX}${slot}`);
|
|
897
|
+
}
|
|
898
|
+
const revived = {};
|
|
899
|
+
for (const [key, item] of Object.entries(record))
|
|
900
|
+
revived[key] = reviveArg(item, form);
|
|
901
|
+
return revived;
|
|
902
|
+
}
|
|
903
|
+
function redirectResponse(error, refresh) {
|
|
904
|
+
const redirectType = error.redirectType;
|
|
905
|
+
const headers = new Headers({
|
|
906
|
+
location: error.location,
|
|
907
|
+
[ACTION_REDIRECT_HEADER]: error.location
|
|
908
|
+
});
|
|
909
|
+
if (redirectType === "replace")
|
|
910
|
+
headers.set(REDIRECT_TYPE_HEADER, "replace");
|
|
911
|
+
setRefreshHeaders(headers, refresh);
|
|
912
|
+
return new Response(null, { status: 303, headers });
|
|
913
|
+
}
|
|
914
|
+
function setRefreshHeaders(headers, refresh) {
|
|
915
|
+
if (!refresh)
|
|
916
|
+
return;
|
|
917
|
+
headers.set(ACTION_REFRESH_HEADER, "1");
|
|
918
|
+
headers.set(NEXT_ACTION_REVALIDATED_HEADER, "1");
|
|
919
|
+
}
|
|
920
|
+
function errorResponse(message, status) {
|
|
921
|
+
return new Response(message, {
|
|
922
|
+
status,
|
|
923
|
+
headers: { "content-type": "text/plain; charset=utf-8" }
|
|
924
|
+
});
|
|
925
|
+
}
|
|
926
|
+
function withResponseHeaders(response, extra) {
|
|
927
|
+
const setCookies = extra.getSetCookie?.() ?? [];
|
|
928
|
+
if (setCookies.length === 0)
|
|
929
|
+
return response;
|
|
930
|
+
for (const cookie of setCookies)
|
|
931
|
+
response.headers.append("set-cookie", cookie);
|
|
932
|
+
return response;
|
|
933
|
+
}
|
|
934
|
+
function hasSetCookie(headers) {
|
|
935
|
+
return headers.has("set-cookie");
|
|
936
|
+
}
|
|
937
|
+
function messageOf(error) {
|
|
938
|
+
return error instanceof Error ? error.message : String(error);
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
// src/compat/actions/config.ts
|
|
942
|
+
var SIZE_LIMIT_ERROR = "Server Actions Size Limit must be a valid number or filesize format larger than 1MB";
|
|
943
|
+
async function loadServerActionsConfig(root) {
|
|
944
|
+
const config = await loadResolvedNextConfig(root);
|
|
945
|
+
const experimental = config?.experimental;
|
|
946
|
+
const limit = config?.serverActions?.bodySizeLimit ?? (experimental && typeof experimental === "object" && experimental.serverActions ? experimental.serverActions.bodySizeLimit : undefined);
|
|
947
|
+
if (limit === undefined)
|
|
948
|
+
return { bodySizeLimitBytes: DEFAULT_BODY_LIMIT_BYTES };
|
|
949
|
+
return { bodySizeLimitBytes: parseBodySizeLimit(limit) };
|
|
950
|
+
}
|
|
951
|
+
async function loadResolvedNextConfig(root) {
|
|
952
|
+
return loadNextConfigFromStore() ?? await loadNextConfig(root);
|
|
953
|
+
}
|
|
954
|
+
function loadNextConfigFromStore() {
|
|
955
|
+
try {
|
|
956
|
+
const store = getNextConfig();
|
|
957
|
+
return store && Object.keys(store).length > 0 ? store : undefined;
|
|
958
|
+
} catch {
|
|
959
|
+
return;
|
|
960
|
+
}
|
|
961
|
+
}
|
|
962
|
+
async function loadNextConfig(root) {
|
|
963
|
+
if (nextConfigReleased())
|
|
964
|
+
return getNextConfig();
|
|
965
|
+
for (const name of ["next.config.js", "next.config.mjs", "next.config.cjs"]) {
|
|
966
|
+
const file = path.join(root, name);
|
|
967
|
+
if (!existsSync(file))
|
|
968
|
+
continue;
|
|
969
|
+
try {
|
|
970
|
+
if (name.endsWith(".js") || name.endsWith(".cjs")) {
|
|
971
|
+
const requireFrom = createRequire(path.join(root, "noop.js"));
|
|
972
|
+
delete requireFrom.cache[requireFrom.resolve(file)];
|
|
973
|
+
const required = requireFrom(file);
|
|
974
|
+
let value2 = required && typeof required === "object" && "default" in required ? required.default : required;
|
|
975
|
+
if (typeof value2 === "function") {
|
|
976
|
+
value2 = await value2("phase-production-server", { defaultConfig: {} });
|
|
977
|
+
}
|
|
978
|
+
return value2 ?? undefined;
|
|
979
|
+
}
|
|
980
|
+
const loaded = await import(`${pathToFileHref(file)}?v=${Date.now()}`);
|
|
981
|
+
let value = loaded.default ?? loaded;
|
|
982
|
+
if (typeof value === "function") {
|
|
983
|
+
value = await value("phase-production-server", { defaultConfig: {} });
|
|
984
|
+
}
|
|
985
|
+
return value ?? undefined;
|
|
986
|
+
} catch {
|
|
987
|
+
return;
|
|
988
|
+
}
|
|
989
|
+
}
|
|
990
|
+
return;
|
|
991
|
+
}
|
|
992
|
+
function validateServerActionsConfigSync(root) {
|
|
993
|
+
let config = nextConfigReleased() ? getNextConfig() : undefined;
|
|
994
|
+
const requireFrom = createRequire(path.join(root, "noop.js"));
|
|
995
|
+
for (const name of config ? [] : ["next.config.js", "next.config.cjs"]) {
|
|
996
|
+
const file = path.join(root, name);
|
|
997
|
+
if (!existsSync(file))
|
|
998
|
+
continue;
|
|
999
|
+
try {
|
|
1000
|
+
delete requireFrom.cache[requireFrom.resolve(file)];
|
|
1001
|
+
let value = requireFrom(file);
|
|
1002
|
+
if (value && typeof value === "object" && "default" in value) {
|
|
1003
|
+
value = value.default;
|
|
1004
|
+
}
|
|
1005
|
+
if (typeof value === "function") {
|
|
1006
|
+
value = value("phase-production-server", { defaultConfig: {} });
|
|
1007
|
+
}
|
|
1008
|
+
config = value;
|
|
1009
|
+
} catch (error) {
|
|
1010
|
+
if (error instanceof Error && error.message === SIZE_LIMIT_ERROR)
|
|
1011
|
+
throw error;
|
|
1012
|
+
return;
|
|
1013
|
+
}
|
|
1014
|
+
break;
|
|
1015
|
+
}
|
|
1016
|
+
if (!config)
|
|
1017
|
+
return;
|
|
1018
|
+
const experimental = config.experimental;
|
|
1019
|
+
const limit = config.serverActions?.bodySizeLimit ?? (experimental && typeof experimental === "object" && experimental.serverActions ? experimental.serverActions.bodySizeLimit : undefined);
|
|
1020
|
+
if (limit === undefined)
|
|
1021
|
+
return;
|
|
1022
|
+
parseBodySizeLimit(limit);
|
|
1023
|
+
}
|
|
1024
|
+
function parseBodySizeLimit(value) {
|
|
1025
|
+
if (typeof value === "number") {
|
|
1026
|
+
if (!Number.isFinite(value) || value <= 0)
|
|
1027
|
+
throw new Error(SIZE_LIMIT_ERROR);
|
|
1028
|
+
return Math.floor(value);
|
|
1029
|
+
}
|
|
1030
|
+
if (typeof value === "string") {
|
|
1031
|
+
const match = /^(\d+(?:\.\d+)?)\s*(b|kb|mb|gb)?$/i.exec(value.trim());
|
|
1032
|
+
if (!match)
|
|
1033
|
+
throw new Error(SIZE_LIMIT_ERROR);
|
|
1034
|
+
const amount = Number(match[1]);
|
|
1035
|
+
if (!Number.isFinite(amount) || amount <= 0)
|
|
1036
|
+
throw new Error(SIZE_LIMIT_ERROR);
|
|
1037
|
+
const unit = (match[2] ?? "b").toLowerCase();
|
|
1038
|
+
const factor = unit === "gb" ? 1073741824 : unit === "mb" ? 1048576 : unit === "kb" ? 1024 : 1;
|
|
1039
|
+
return Math.floor(amount * factor);
|
|
1040
|
+
}
|
|
1041
|
+
throw new Error(SIZE_LIMIT_ERROR);
|
|
1042
|
+
}
|
|
1043
|
+
|
|
1044
|
+
// src/compat/next/rewrites.ts
|
|
1045
|
+
var VALID_CONDITION_TYPES = new Set(["host", "header", "query", "cookie"]);
|
|
1046
|
+
async function loadCompatRewrites(root) {
|
|
1047
|
+
let config = await loadResolvedNextConfig(root);
|
|
1048
|
+
if (typeof config?.rewrites !== "function")
|
|
1049
|
+
config = await loadNextConfig(root);
|
|
1050
|
+
const producer = config?.rewrites;
|
|
1051
|
+
if (typeof producer !== "function")
|
|
1052
|
+
return [];
|
|
1053
|
+
let value;
|
|
1054
|
+
try {
|
|
1055
|
+
value = await producer();
|
|
1056
|
+
} catch {
|
|
1057
|
+
return [];
|
|
1058
|
+
}
|
|
1059
|
+
const entries = Array.isArray(value) ? value.map((entry) => ({ ...entry, fallback: false })) : value && typeof value === "object" ? ["beforeFiles", "afterFiles", "fallback"].flatMap((key) => {
|
|
1060
|
+
const list = value[key];
|
|
1061
|
+
return Array.isArray(list) ? list.map((entry) => ({ ...entry, fallback: key === "fallback" })) : [];
|
|
1062
|
+
}) : [];
|
|
1063
|
+
const rewrites = [];
|
|
1064
|
+
for (const entry of entries) {
|
|
1065
|
+
if (!entry?.source || !entry.destination)
|
|
1066
|
+
continue;
|
|
1067
|
+
const has = parseConditions(entry.has);
|
|
1068
|
+
const missing = parseConditions(entry.missing);
|
|
1069
|
+
if (has === null || missing === null)
|
|
1070
|
+
continue;
|
|
1071
|
+
const compiled = compileSource(entry.source);
|
|
1072
|
+
if (compiled) {
|
|
1073
|
+
rewrites.push({
|
|
1074
|
+
...compiled,
|
|
1075
|
+
destination: entry.destination,
|
|
1076
|
+
has,
|
|
1077
|
+
missing,
|
|
1078
|
+
fallback: entry.fallback,
|
|
1079
|
+
outsideBasePath: entry.basePath === false
|
|
1080
|
+
});
|
|
1081
|
+
}
|
|
1082
|
+
}
|
|
1083
|
+
return rewrites;
|
|
1084
|
+
}
|
|
1085
|
+
function parseConditions(value) {
|
|
1086
|
+
if (value === undefined)
|
|
1087
|
+
return [];
|
|
1088
|
+
if (!Array.isArray(value))
|
|
1089
|
+
return null;
|
|
1090
|
+
const conditions = [];
|
|
1091
|
+
for (const raw of value) {
|
|
1092
|
+
if (!raw || typeof raw !== "object")
|
|
1093
|
+
return null;
|
|
1094
|
+
const { type, key, value: condValue } = raw;
|
|
1095
|
+
if (typeof type !== "string" || !VALID_CONDITION_TYPES.has(type))
|
|
1096
|
+
return null;
|
|
1097
|
+
if (key !== undefined && typeof key !== "string")
|
|
1098
|
+
return null;
|
|
1099
|
+
if (condValue !== undefined && typeof condValue !== "string")
|
|
1100
|
+
return null;
|
|
1101
|
+
conditions.push({
|
|
1102
|
+
type,
|
|
1103
|
+
...typeof key === "string" ? { key } : {},
|
|
1104
|
+
...typeof condValue === "string" ? { value: condValue } : {}
|
|
1105
|
+
});
|
|
1106
|
+
}
|
|
1107
|
+
return conditions;
|
|
1108
|
+
}
|
|
1109
|
+
function compileSource(source) {
|
|
1110
|
+
const paramNames = [];
|
|
1111
|
+
const segments = source.split("/").filter(Boolean);
|
|
1112
|
+
const parts = [];
|
|
1113
|
+
for (const segment of segments) {
|
|
1114
|
+
const custom = /^:([A-Za-z_$][\w$]*)\((.*)\)$/.exec(segment);
|
|
1115
|
+
if (custom?.[1] !== undefined && custom[2] !== undefined) {
|
|
1116
|
+
paramNames.push(custom[1]);
|
|
1117
|
+
parts.push(`(${custom[2]})`);
|
|
1118
|
+
continue;
|
|
1119
|
+
}
|
|
1120
|
+
const catchAll = /^:([A-Za-z_$][\w$]*)[*+]$/.exec(segment);
|
|
1121
|
+
if (catchAll?.[1]) {
|
|
1122
|
+
paramNames.push(catchAll[1]);
|
|
1123
|
+
parts.push("(.*)");
|
|
1124
|
+
continue;
|
|
1125
|
+
}
|
|
1126
|
+
const optional = /^:([A-Za-z_$][\w$]*)\?$/.exec(segment);
|
|
1127
|
+
if (optional?.[1]) {
|
|
1128
|
+
paramNames.push(optional[1]);
|
|
1129
|
+
parts.push("([^/]*)");
|
|
1130
|
+
continue;
|
|
1131
|
+
}
|
|
1132
|
+
const param = /^:([A-Za-z_$][\w$]*)$/.exec(segment);
|
|
1133
|
+
if (param?.[1]) {
|
|
1134
|
+
paramNames.push(param[1]);
|
|
1135
|
+
parts.push("([^/]+)");
|
|
1136
|
+
continue;
|
|
1137
|
+
}
|
|
1138
|
+
if (segment.startsWith("(") && segment.endsWith(")")) {
|
|
1139
|
+
parts.push(`(?:${segment.slice(1, -1)})`);
|
|
1140
|
+
continue;
|
|
1141
|
+
}
|
|
1142
|
+
if (/^[\w.\- ]+$/.test(segment)) {
|
|
1143
|
+
parts.push(segment.replace(/\./g, "\\."));
|
|
1144
|
+
continue;
|
|
1145
|
+
}
|
|
1146
|
+
if (/[.*+?^${}()|[\]\\]/.test(segment))
|
|
1147
|
+
return null;
|
|
1148
|
+
parts.push(segment.replace(/[/\\]/g, ""));
|
|
1149
|
+
}
|
|
1150
|
+
return { regex: new RegExp(`^/${parts.join("/")}/?$`), paramNames };
|
|
1151
|
+
}
|
|
1152
|
+
function evaluateCondition(condition, ctx) {
|
|
1153
|
+
const target = conditionTarget(condition, ctx);
|
|
1154
|
+
if (target === undefined)
|
|
1155
|
+
return null;
|
|
1156
|
+
if (condition.value === undefined)
|
|
1157
|
+
return {};
|
|
1158
|
+
const regex = new RegExp(`^(?:${condition.value})$`);
|
|
1159
|
+
const match = regex.exec(target);
|
|
1160
|
+
if (!match)
|
|
1161
|
+
return null;
|
|
1162
|
+
return match.groups ? { ...match.groups } : {};
|
|
1163
|
+
}
|
|
1164
|
+
function conditionTarget(condition, ctx) {
|
|
1165
|
+
switch (condition.type) {
|
|
1166
|
+
case "host":
|
|
1167
|
+
return ctx.host;
|
|
1168
|
+
case "header":
|
|
1169
|
+
return condition.key ? ctx.headers.get(condition.key) ?? undefined : undefined;
|
|
1170
|
+
case "cookie":
|
|
1171
|
+
return condition.key ? ctx.cookies[condition.key] : undefined;
|
|
1172
|
+
case "query":
|
|
1173
|
+
return condition.key ? ctx.query.get(condition.key) ?? undefined : undefined;
|
|
1174
|
+
default:
|
|
1175
|
+
return;
|
|
1176
|
+
}
|
|
1177
|
+
}
|
|
1178
|
+
function applyCompatRewrites(rewrites, pathname, ctx) {
|
|
1179
|
+
return resolveCompatRewrite(rewrites, pathname, ctx)?.pathname;
|
|
1180
|
+
}
|
|
1181
|
+
function resolveCompatRewrite(rewrites, pathname, ctx) {
|
|
1182
|
+
const context = ctx ?? {
|
|
1183
|
+
host: "",
|
|
1184
|
+
headers: new Headers,
|
|
1185
|
+
cookies: {},
|
|
1186
|
+
query: new URLSearchParams
|
|
1187
|
+
};
|
|
1188
|
+
for (const rewrite of rewrites) {
|
|
1189
|
+
const match = rewrite.regex.exec(pathname);
|
|
1190
|
+
if (!match)
|
|
1191
|
+
continue;
|
|
1192
|
+
const params = {};
|
|
1193
|
+
rewrite.paramNames.forEach((name, index) => {
|
|
1194
|
+
params[name] = match[index + 1] ?? "";
|
|
1195
|
+
});
|
|
1196
|
+
const conditionParams = evaluateConditions(rewrite, context);
|
|
1197
|
+
if (conditionParams === null)
|
|
1198
|
+
continue;
|
|
1199
|
+
Object.assign(params, conditionParams);
|
|
1200
|
+
const [destPath, destQuery] = splitDestination(rewrite.destination);
|
|
1201
|
+
const { pathname: newPath, used: usedInPath } = substitute(destPath, params);
|
|
1202
|
+
const search = new URLSearchParams(context.query);
|
|
1203
|
+
let usedInQuery = false;
|
|
1204
|
+
if (destQuery) {
|
|
1205
|
+
const destParams = new URLSearchParams(destQuery);
|
|
1206
|
+
for (const [key, rawValue] of destParams.entries()) {
|
|
1207
|
+
const { pathname: value, used } = substitute(rawValue, params);
|
|
1208
|
+
if (used)
|
|
1209
|
+
usedInQuery = true;
|
|
1210
|
+
search.set(key, value);
|
|
1211
|
+
}
|
|
1212
|
+
}
|
|
1213
|
+
const anyUsed = usedInPath.size > 0 || usedInQuery;
|
|
1214
|
+
if (!anyUsed) {
|
|
1215
|
+
for (const [name, value] of Object.entries(params)) {
|
|
1216
|
+
if (!search.has(name))
|
|
1217
|
+
search.append(name, value);
|
|
1218
|
+
}
|
|
1219
|
+
}
|
|
1220
|
+
return {
|
|
1221
|
+
pathname: newPath,
|
|
1222
|
+
search,
|
|
1223
|
+
destination: /^https?:/.test(newPath) ? normalizeDestination(newPath, search) : undefined
|
|
1224
|
+
};
|
|
1225
|
+
}
|
|
1226
|
+
return;
|
|
1227
|
+
}
|
|
1228
|
+
function normalizeDestination(pathname, search) {
|
|
1229
|
+
try {
|
|
1230
|
+
const destination = new URL(pathname);
|
|
1231
|
+
for (const [key, value] of search.entries()) {
|
|
1232
|
+
destination.searchParams.set(key, value);
|
|
1233
|
+
}
|
|
1234
|
+
return destination.toString();
|
|
1235
|
+
} catch {
|
|
1236
|
+
return;
|
|
1237
|
+
}
|
|
1238
|
+
}
|
|
1239
|
+
function evaluateConditions(rule, ctx) {
|
|
1240
|
+
const params = {};
|
|
1241
|
+
for (const condition of rule.has) {
|
|
1242
|
+
const captured = evaluateCondition(condition, ctx);
|
|
1243
|
+
if (captured === null)
|
|
1244
|
+
return null;
|
|
1245
|
+
Object.assign(params, captured);
|
|
1246
|
+
}
|
|
1247
|
+
for (const condition of rule.missing) {
|
|
1248
|
+
if (evaluateCondition(condition, ctx) !== null)
|
|
1249
|
+
return null;
|
|
1250
|
+
}
|
|
1251
|
+
return params;
|
|
1252
|
+
}
|
|
1253
|
+
function splitDestination(destination) {
|
|
1254
|
+
const index = destination.indexOf("?");
|
|
1255
|
+
if (index === -1)
|
|
1256
|
+
return [destination, undefined];
|
|
1257
|
+
return [destination.slice(0, index), destination.slice(index + 1)];
|
|
1258
|
+
}
|
|
1259
|
+
function substitute(template, params) {
|
|
1260
|
+
const used = new Set;
|
|
1261
|
+
const result = template.replace(/:([A-Za-z_$][\w$]*)(\*|\+|\?)?/g, (whole, name) => {
|
|
1262
|
+
if (!(name in params))
|
|
1263
|
+
return whole;
|
|
1264
|
+
used.add(name);
|
|
1265
|
+
return params[name] ?? "";
|
|
1266
|
+
});
|
|
1267
|
+
return { pathname: result, used };
|
|
1268
|
+
}
|
|
1269
|
+
|
|
1270
|
+
export { wrapThrownValue, formatErrorLog, serializeBoundaryError, registerActionModule, lookupActionSource, clearActions, createInstanceScope, registerActionInstance, isInstanceActionId, instanceActionRouteId, isMarkedInlineAction, overriddenActionId, assignedInlineActionId, rewriteInlineActionTags, rewriteAnonymousInlineActionMarks, anonymousInlineActionSpans, inlineActionModuleKey, isInlineActionId, ACTION_ID_HEADER, ACTION_REDIRECT_HEADER, ACTION_REFRESH_HEADER, NEXT_ACTION_REVALIDATED_HEADER, ACTION_NOT_FOUND_HEADER, NEXT_ACTION_NOT_FOUND_HEADER, REDIRECT_TYPE_HEADER, ACTION_ID_FIELD, SUBMIT_ACTION_ID_FIELD, FORM_STATE_FIELD, PROP_ACTION_MARKER, MASKED_ACTION_ERROR, runAction, loadServerActionsConfig, loadResolvedNextConfig, loadNextConfig, validateServerActionsConfigSync, loadCompatRewrites, parseConditions, compileSource, applyCompatRewrites, resolveCompatRewrite, evaluateConditions, splitDestination, substitute };
|