@circuitwall/jarela 2.7.0 → 3.0.0
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/.next/standalone/.next/BUILD_ID +1 -1
- package/.next/standalone/.next/app-path-routes-manifest.json +2 -1
- package/.next/standalone/.next/build-manifest.json +2 -2
- package/.next/standalone/.next/prerender-manifest.json +3 -3
- package/.next/standalone/.next/routes-manifest.json +6 -0
- package/.next/standalone/.next/server/app/_global-error/page.js +68 -68
- package/.next/standalone/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/_global-error.html +1 -1
- package/.next/standalone/.next/server/app/_global-error.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found/page.js +58 -58
- package/.next/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/_not-found.html +2 -2
- package/.next/standalone/.next/server/app/_not-found.rsc +2 -2
- package/.next/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/api/v1/access/[identity]/route.js +127 -127
- package/.next/standalone/.next/server/app/api/v1/access/route.js +372 -372
- package/.next/standalone/.next/server/app/api/v1/agents/[id]/compact/route.js +79 -79
- package/.next/standalone/.next/server/app/api/v1/agents/[id]/display-filters/route.js +641 -641
- package/.next/standalone/.next/server/app/api/v1/agents/[id]/duplicate/route.js +723 -723
- package/.next/standalone/.next/server/app/api/v1/agents/[id]/route.js +100 -100
- package/.next/standalone/.next/server/app/api/v1/agents/[id]/thread/route.js +65 -65
- package/.next/standalone/.next/server/app/api/v1/agents/recent-replies/route.js +227 -227
- package/.next/standalone/.next/server/app/api/v1/agents/route.js +16 -16
- package/.next/standalone/.next/server/app/api/v1/allowed-sites/[hostname]/route.js +384 -384
- package/.next/standalone/.next/server/app/api/v1/allowed-sites/route.js +9 -9
- package/.next/standalone/.next/server/app/api/v1/artifacts/lifecycle/route.js +23 -23
- package/.next/standalone/.next/server/app/api/v1/attachments/files/route.js +203 -203
- package/.next/standalone/.next/server/app/api/v1/attachments/images/route.js +17 -17
- package/.next/standalone/.next/server/app/api/v1/bridges/[id]/chats/route.js +2 -2
- package/.next/standalone/.next/server/app/api/v1/bridges/[id]/chats/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/bridges/[id]/ignores/[remote_jid]/route.js +760 -760
- package/.next/standalone/.next/server/app/api/v1/bridges/[id]/ignores/route.js +699 -699
- package/.next/standalone/.next/server/app/api/v1/bridges/[id]/lookup/route.js +30 -30
- package/.next/standalone/.next/server/app/api/v1/bridges/[id]/lookup/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/bridges/[id]/pair/route.js +37 -37
- package/.next/standalone/.next/server/app/api/v1/bridges/[id]/pair/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/bridges/[id]/route.js +480 -480
- package/.next/standalone/.next/server/app/api/v1/bridges/[id]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/bridges/[id]/routes/[route_id]/route.js +675 -675
- package/.next/standalone/.next/server/app/api/v1/bridges/[id]/routes/route.js +559 -559
- package/.next/standalone/.next/server/app/api/v1/bridges/[id]/status/route.js +23 -23
- package/.next/standalone/.next/server/app/api/v1/bridges/[id]/status/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/bridges/kinds/route.js +37 -37
- package/.next/standalone/.next/server/app/api/v1/bridges/route.js +1269 -1269
- package/.next/standalone/.next/server/app/api/v1/builtin-tools/route.js +199 -199
- package/.next/standalone/.next/server/app/api/v1/builtin-tools/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/config/route.js +99 -99
- package/.next/standalone/.next/server/app/api/v1/credentials/[id]/route.js +23 -23
- package/.next/standalone/.next/server/app/api/v1/credentials/[id]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/credentials/route.js +169 -169
- package/.next/standalone/.next/server/app/api/v1/credentials/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/dashboard/currency/route.js +515 -515
- package/.next/standalone/.next/server/app/api/v1/dashboard/metrics/route.js +380 -380
- package/.next/standalone/.next/server/app/api/v1/dashboard/metrics/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/dashboard/pricing/route.js +256 -256
- package/.next/standalone/.next/server/app/api/v1/dashboard/pricing/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/dashboard/pricing-task/route.js +80 -97
- package/.next/standalone/.next/server/app/api/v1/dashboard/pricing-task/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/delegations/codex/[job_id]/route.js +677 -677
- package/.next/standalone/.next/server/app/api/v1/delegations/codex/[job_id]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/documents/recall-policy/route.js +856 -0
- package/.next/standalone/.next/server/app/api/v1/documents/recall-policy/route.js.nft.json +1 -0
- package/.next/standalone/.next/server/app/api/v1/documents/recall-policy/route_client-reference-manifest.js +1 -0
- package/.next/standalone/.next/server/app/api/v1/documents/search/route.js +299 -247
- package/.next/standalone/.next/server/app/api/v1/documents/settings/route.js +486 -486
- package/.next/standalone/.next/server/app/api/v1/documents/sources/[id]/reindex/route.js +18 -11
- package/.next/standalone/.next/server/app/api/v1/documents/sources/[id]/reindex/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/documents/sources/[id]/route.js +666 -666
- package/.next/standalone/.next/server/app/api/v1/documents/sources/[id]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/documents/sources/route.js +128 -100
- package/.next/standalone/.next/server/app/api/v1/documents/sources/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/env/route.js +207 -207
- package/.next/standalone/.next/server/app/api/v1/env-sync/allowlist/route.js +128 -128
- package/.next/standalone/.next/server/app/api/v1/env-sync/route.js +16 -16
- package/.next/standalone/.next/server/app/api/v1/events/route.js +154 -154
- package/.next/standalone/.next/server/app/api/v1/events/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/events/test/route.js +16 -16
- package/.next/standalone/.next/server/app/api/v1/extension/agents/route.js +97 -97
- package/.next/standalone/.next/server/app/api/v1/extension/agents/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/extension/browser/activate/route.js +188 -188
- package/.next/standalone/.next/server/app/api/v1/extension/browser/foreground/route.js +93 -93
- package/.next/standalone/.next/server/app/api/v1/extension/browser/history/route.js +9 -9
- package/.next/standalone/.next/server/app/api/v1/extension/browser/poll/route.js +93 -93
- package/.next/standalone/.next/server/app/api/v1/extension/browser/progress/route.js +69 -69
- package/.next/standalone/.next/server/app/api/v1/extension/browser/result/route.js +69 -69
- package/.next/standalone/.next/server/app/api/v1/extension/browser/retry/route.js +65 -65
- package/.next/standalone/.next/server/app/api/v1/extension/browser/status/route.js +223 -223
- package/.next/standalone/.next/server/app/api/v1/extension/browser/tabs/route.js +44 -44
- package/.next/standalone/.next/server/app/api/v1/extension/fill/route.js +93 -93
- package/.next/standalone/.next/server/app/api/v1/extension/fill/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/extension/refine/route.js +44 -44
- package/.next/standalone/.next/server/app/api/v1/extension/refine/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/extension/turn/route.js +16 -16
- package/.next/standalone/.next/server/app/api/v1/extension/turn/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/extensions/route.js +722 -722
- package/.next/standalone/.next/server/app/api/v1/extensions/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/extensions/tools/[name]/config/route.js +481 -481
- package/.next/standalone/.next/server/app/api/v1/extensions/tools/[name]/config/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/extensions/tools/[name]/route.js +378 -378
- package/.next/standalone/.next/server/app/api/v1/extensions/tools/[name]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/extensions/tools/[name]/secrets/route.js +510 -510
- package/.next/standalone/.next/server/app/api/v1/extensions/tools/[name]/secrets/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/files/[name]/route.js +17 -17
- package/.next/standalone/.next/server/app/api/v1/fs/browse/route.js +33 -33
- package/.next/standalone/.next/server/app/api/v1/harnesses/[id]/route.js +397 -397
- package/.next/standalone/.next/server/app/api/v1/harnesses/default/route.js +129 -129
- package/.next/standalone/.next/server/app/api/v1/harnesses/route.js +9 -9
- package/.next/standalone/.next/server/app/api/v1/health/probes/route.js +757 -757
- package/.next/standalone/.next/server/app/api/v1/health/probes/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/health/route.js +228 -228
- package/.next/standalone/.next/server/app/api/v1/integrations/[name]/route.js +37 -37
- package/.next/standalone/.next/server/app/api/v1/integrations/[name]/test/route.js +198 -198
- package/.next/standalone/.next/server/app/api/v1/integrations/[name]/test/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/integrations/gmail/oauth/callback/route.js +9 -9
- package/.next/standalone/.next/server/app/api/v1/integrations/gmail/oauth/start/route.js +845 -845
- package/.next/standalone/.next/server/app/api/v1/integrations/gmail/oauth/status/route.js +23 -23
- package/.next/standalone/.next/server/app/api/v1/integrations/outlook/oauth/callback/route.js +106 -106
- package/.next/standalone/.next/server/app/api/v1/integrations/outlook/oauth/start/route.js +747 -747
- package/.next/standalone/.next/server/app/api/v1/integrations/outlook/oauth/status/route.js +37 -37
- package/.next/standalone/.next/server/app/api/v1/integrations/route.js +37 -37
- package/.next/standalone/.next/server/app/api/v1/lifecycle/adoption/route.js +420 -420
- package/.next/standalone/.next/server/app/api/v1/local-file/route.js +34 -34
- package/.next/standalone/.next/server/app/api/v1/logs/route.js +819 -819
- package/.next/standalone/.next/server/app/api/v1/maps/embed/route.js +217 -217
- package/.next/standalone/.next/server/app/api/v1/mcp-servers/[name]/route.js +1034 -1034
- package/.next/standalone/.next/server/app/api/v1/mcp-servers/registry/route.js +2 -2
- package/.next/standalone/.next/server/app/api/v1/mcp-servers/route.js +58 -58
- package/.next/standalone/.next/server/app/api/v1/memory/[namespace]/[key]/route.js +150 -150
- package/.next/standalone/.next/server/app/api/v1/memory/policy/route.js +72 -72
- package/.next/standalone/.next/server/app/api/v1/memory/route.js +9 -9
- package/.next/standalone/.next/server/app/api/v1/memory/search/route.js +16 -16
- package/.next/standalone/.next/server/app/api/v1/models/[name]/compact-threads/route.js +72 -72
- package/.next/standalone/.next/server/app/api/v1/models/[name]/route.js +87 -538
- package/.next/standalone/.next/server/app/api/v1/models/[name]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/models/route.js +273 -722
- package/.next/standalone/.next/server/app/api/v1/models/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/packages/catalog/route.js +73 -73
- package/.next/standalone/.next/server/app/api/v1/packages/defaults/[id]/route.js +248 -239
- package/.next/standalone/.next/server/app/api/v1/packages/defaults/[id]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/packages/install/[id]/route.js +128 -128
- package/.next/standalone/.next/server/app/api/v1/packages/install/[id]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/packages/install/route.js +44 -44
- package/.next/standalone/.next/server/app/api/v1/packages/install/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/packages/manifests/[name]/enabled/route.js +72 -72
- package/.next/standalone/.next/server/app/api/v1/packages/manifests/[name]/enabled/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/packages/manifests/[name]/route.js +37 -37
- package/.next/standalone/.next/server/app/api/v1/packages/manifests/[name]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/packages/manifests/route.js +81 -81
- package/.next/standalone/.next/server/app/api/v1/packages/manifests/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/packages/reload/route.js +34 -25
- package/.next/standalone/.next/server/app/api/v1/packages/reload/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/packages/route.js +48 -39
- package/.next/standalone/.next/server/app/api/v1/packages/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/page-capture/route.js +51 -51
- package/.next/standalone/.next/server/app/api/v1/page-capture/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/pending-actions/[id]/approve/route.js +863 -863
- package/.next/standalone/.next/server/app/api/v1/pending-actions/[id]/approve/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/pending-actions/[id]/deny/route.js +230 -230
- package/.next/standalone/.next/server/app/api/v1/pending-actions/[id]/deny/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/pending-actions/route.js +44 -44
- package/.next/standalone/.next/server/app/api/v1/pending-actions/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/profile/location/route.js +138 -138
- package/.next/standalone/.next/server/app/api/v1/profile/route.js +51 -51
- package/.next/standalone/.next/server/app/api/v1/providers/[provider]/models/route.js +853 -680
- package/.next/standalone/.next/server/app/api/v1/providers/[provider]/probe/route.js +65 -65
- package/.next/standalone/.next/server/app/api/v1/providers/github-copilot/auth/route.js +171 -171
- package/.next/standalone/.next/server/app/api/v1/providers/route.js +96 -96
- package/.next/standalone/.next/server/app/api/v1/proxy-config/route.js +157 -157
- package/.next/standalone/.next/server/app/api/v1/redaction/init/route.js +47 -47
- package/.next/standalone/.next/server/app/api/v1/redaction/route.js +206 -206
- package/.next/standalone/.next/server/app/api/v1/scheduled-tasks/[id]/route.js +140 -140
- package/.next/standalone/.next/server/app/api/v1/scheduled-tasks/[id]/run/route.js +166 -166
- package/.next/standalone/.next/server/app/api/v1/scheduled-tasks/[id]/run/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/scheduled-tasks/route.js +52 -52
- package/.next/standalone/.next/server/app/api/v1/security/idle-timeout/route.js +722 -722
- package/.next/standalone/.next/server/app/api/v1/security/pin/route.js +23 -23
- package/.next/standalone/.next/server/app/api/v1/security/state/route.js +243 -243
- package/.next/standalone/.next/server/app/api/v1/security/unlock/route.js +518 -518
- package/.next/standalone/.next/server/app/api/v1/security/verify-pin/route.js +9 -9
- package/.next/standalone/.next/server/app/api/v1/setup/test-key/route.js +25 -25
- package/.next/standalone/.next/server/app/api/v1/skills/[id]/route.js +9 -9
- package/.next/standalone/.next/server/app/api/v1/skills/repos/[id]/route.js +609 -609
- package/.next/standalone/.next/server/app/api/v1/skills/repos/route.js +129 -129
- package/.next/standalone/.next/server/app/api/v1/skills/route.js +9 -9
- package/.next/standalone/.next/server/app/api/v1/system/abort/route.js +112 -112
- package/.next/standalone/.next/server/app/api/v1/system/restart/route.js +86 -86
- package/.next/standalone/.next/server/app/api/v1/system/restart/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/tailscale/route.js +9 -9
- package/.next/standalone/.next/server/app/api/v1/tasks/[agent_id]/route.js +83 -83
- package/.next/standalone/.next/server/app/api/v1/tasks/route.js +23 -23
- package/.next/standalone/.next/server/app/api/v1/threads/[thread_id]/activity/route.js +121 -121
- package/.next/standalone/.next/server/app/api/v1/threads/[thread_id]/context-pin/route.js +139 -139
- package/.next/standalone/.next/server/app/api/v1/threads/[thread_id]/messages/[message_id]/route.js +51 -51
- package/.next/standalone/.next/server/app/api/v1/threads/[thread_id]/route.js +58 -58
- package/.next/standalone/.next/server/app/api/v1/threads/[thread_id]/run/route.js +1182 -1182
- package/.next/standalone/.next/server/app/api/v1/threads/[thread_id]/run/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/threads/route.js +158 -158
- package/.next/standalone/.next/server/app/api/v1/tools/route.js +137 -137
- package/.next/standalone/.next/server/app/api/v1/tools/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/update/apply/route.js +73 -73
- package/.next/standalone/.next/server/app/api/v1/update/apply/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/update/route.js +72 -72
- package/.next/standalone/.next/server/app/api/v1/voice/transcribe/route.js +30 -30
- package/.next/standalone/.next/server/app/api/v1/voice/tts/route.js +79 -79
- package/.next/standalone/.next/server/app/api/v1/watchers/[id]/route.js +9 -9
- package/.next/standalone/.next/server/app/api/v1/watchers/[id]/run/route.js +45 -45
- package/.next/standalone/.next/server/app/api/v1/watchers/[id]/run/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/watchers/reaction-scripts/route.js +2 -2
- package/.next/standalone/.next/server/app/api/v1/watchers/route.js +37 -37
- package/.next/standalone/.next/server/app/api/v1/watchers/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/icon.svg/route.js +55 -55
- package/.next/standalone/.next/server/app/manifest.webmanifest/route.js +18 -18
- package/.next/standalone/.next/server/app/page.js +2112 -1235
- package/.next/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/setup/page.js +91 -91
- package/.next/standalone/.next/server/app/setup/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app-paths-manifest.json +2 -1
- package/.next/standalone/.next/server/chunks/1244.js +136 -4
- package/.next/standalone/.next/server/chunks/1387.js +733 -57
- package/.next/standalone/.next/server/chunks/1433.js +1 -1
- package/.next/standalone/.next/server/chunks/210.js +3 -3
- package/.next/standalone/.next/server/chunks/2175.js +874 -0
- package/.next/standalone/.next/server/chunks/3042.js +34 -32
- package/.next/standalone/.next/server/chunks/309.js +21 -40
- package/.next/standalone/.next/server/chunks/3272.js +21 -40
- package/.next/standalone/.next/server/chunks/{540.js → 3326.js} +189 -61
- package/.next/standalone/.next/server/chunks/{6142.js → 3479.js} +170 -159
- package/.next/standalone/.next/server/chunks/3566.js +1 -1
- package/.next/standalone/.next/server/chunks/{5323.js → 3692.js} +31 -3
- package/.next/standalone/.next/server/chunks/4189.js +14 -2
- package/.next/standalone/.next/server/chunks/4377.js +2 -2
- package/.next/standalone/.next/server/chunks/4596.js +18 -9
- package/.next/standalone/.next/server/chunks/{639.js → 4728.js} +23676 -22755
- package/.next/standalone/.next/server/chunks/4955.js +81 -14
- package/.next/standalone/.next/server/chunks/5290.js +136 -5
- package/.next/standalone/.next/server/chunks/{2267.js → 6408.js} +990 -926
- package/.next/standalone/.next/server/chunks/{9667.js → 6911.js} +31 -3
- package/.next/standalone/.next/server/chunks/7033.js +7 -4
- package/.next/standalone/.next/server/chunks/7377.js +7 -4
- package/.next/standalone/.next/server/chunks/8461.js +31 -29
- package/.next/standalone/.next/server/chunks/9032.js +3 -3
- package/.next/standalone/.next/server/chunks/9174.js +18 -9
- package/.next/standalone/.next/server/chunks/9408.js +37 -15
- package/.next/standalone/.next/server/chunks/9824.js +2288 -2288
- package/.next/standalone/.next/server/middleware-build-manifest.js +2 -2
- package/.next/standalone/.next/server/middleware.js +104638 -104532
- package/.next/standalone/.next/server/pages/404.html +2 -2
- package/.next/standalone/.next/server/pages/500.html +1 -1
- package/.next/standalone/.next/server/preview-props.json +3 -3
- package/.next/standalone/.next/server/server-reference-manifest.json +1 -1
- package/.next/standalone/.next/static/2BAUJZ7x8eXCYpuZ-Kp7h/_buildManifest.js +1 -0
- package/.next/standalone/.next/static/chunks/{877-145c9df8aa0aee63.js → 877-367eb49b20edd3d6.js} +38 -16
- package/.next/standalone/.next/static/chunks/app/_global-error/page-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/access/[identity]/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/access/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/agents/[id]/compact/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/agents/[id]/display-filters/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/agents/[id]/duplicate/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/agents/[id]/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/agents/[id]/thread/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/agents/recent-replies/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/agents/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/allowed-sites/[hostname]/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/allowed-sites/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/artifacts/lifecycle/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/attachments/files/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/attachments/images/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/[id]/chats/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/[id]/ignores/[remote_jid]/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/[id]/ignores/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/[id]/lookup/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/[id]/pair/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/[id]/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/[id]/routes/[route_id]/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/[id]/routes/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/[id]/status/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/kinds/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/builtin-tools/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/config/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/credentials/[id]/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/credentials/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/dashboard/currency/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/dashboard/metrics/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/dashboard/pricing/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/dashboard/pricing-task/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/delegations/codex/[job_id]/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/documents/recall-policy/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/documents/search/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/documents/settings/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/documents/sources/[id]/reindex/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/documents/sources/[id]/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/documents/sources/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/env/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/env-sync/allowlist/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/env-sync/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/events/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/events/test/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/agents/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/browser/activate/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/browser/foreground/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/browser/history/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/browser/poll/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/browser/progress/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/browser/result/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/browser/retry/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/browser/status/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/browser/tabs/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/fill/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/refine/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/turn/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/extensions/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/extensions/tools/[name]/config/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/extensions/tools/[name]/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/extensions/tools/[name]/secrets/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/files/[name]/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/fs/browse/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/harnesses/[id]/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/harnesses/default/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/harnesses/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/health/probes/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/health/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/integrations/[name]/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/integrations/[name]/test/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/integrations/gmail/oauth/callback/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/integrations/gmail/oauth/start/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/integrations/gmail/oauth/status/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/integrations/outlook/oauth/callback/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/integrations/outlook/oauth/start/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/integrations/outlook/oauth/status/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/integrations/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/lifecycle/adoption/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/local-file/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/logs/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/maps/embed/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/mcp-servers/[name]/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/mcp-servers/registry/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/mcp-servers/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/memory/[namespace]/[key]/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/memory/policy/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/memory/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/memory/search/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/models/[name]/compact-threads/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/models/[name]/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/models/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/packages/catalog/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/packages/defaults/[id]/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/packages/install/[id]/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/packages/install/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/packages/manifests/[name]/enabled/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/packages/manifests/[name]/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/packages/manifests/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/packages/reload/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/packages/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/page-capture/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/pending-actions/[id]/approve/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/pending-actions/[id]/deny/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/pending-actions/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/profile/location/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/profile/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/providers/[provider]/models/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/providers/[provider]/probe/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/providers/github-copilot/auth/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/providers/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/proxy-config/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/redaction/init/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/redaction/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/scheduled-tasks/[id]/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/scheduled-tasks/[id]/run/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/scheduled-tasks/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/security/idle-timeout/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/security/pin/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/security/state/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/security/unlock/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/security/verify-pin/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/setup/test-key/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/skills/[id]/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/skills/repos/[id]/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/skills/repos/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/skills/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/system/abort/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/system/restart/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/tailscale/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/tasks/[agent_id]/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/tasks/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/threads/[thread_id]/activity/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/threads/[thread_id]/context-pin/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/threads/[thread_id]/messages/[message_id]/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/threads/[thread_id]/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/threads/[thread_id]/run/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/threads/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/tools/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/update/apply/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/update/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/voice/transcribe/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/voice/tts/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/watchers/[id]/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/watchers/[id]/run/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/watchers/reaction-scripts/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/watchers/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/manifest.webmanifest/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/{page-64585ef79400f17f.js → page-a584dfa806a1afdb.js} +1082 -205
- package/.next/standalone/.next/static/chunks/next/dist/client/components/builtin/app-error-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/next/dist/client/components/builtin/forbidden-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/next/dist/client/components/builtin/not-found-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/next/dist/client/components/builtin/unauthorized-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/css/19e1cd815490b47c.css +5 -0
- package/.next/standalone/docs/adoption/changesets.json +148 -0
- package/.next/standalone/package.json +5 -4
- package/CHANGELOG.md +51 -0
- package/README.md +115 -1
- package/api/client.startup.test.ts +29 -0
- package/api/client.ts +9 -2
- package/api/types.ts +20 -1
- package/app/api/v1/dashboard/pricing-task/route.ts +3 -1
- package/app/api/v1/documents/recall-policy/route.test.ts +59 -0
- package/app/api/v1/documents/recall-policy/route.ts +20 -0
- package/app/api/v1/documents/search/route.test.ts +36 -0
- package/app/api/v1/documents/search/route.ts +17 -5
- package/app/api/v1/documents/sources/[id]/reindex/route.test.ts +44 -0
- package/app/api/v1/documents/sources/[id]/reindex/route.ts +4 -1
- package/app/api/v1/documents/sources/route.test.ts +67 -0
- package/app/api/v1/documents/sources/route.ts +20 -2
- package/app/api/v1/models/[name]/route.ts +2 -0
- package/app/api/v1/models/route.ts +4 -0
- package/app/api/v1/providers/[provider]/models/route.test.ts +28 -0
- package/app/api/v1/providers/[provider]/models/route.ts +16 -2
- package/app/globals.css +51 -4
- package/components/agents/AgentsPanel.tsx +2 -2
- package/components/agents/agent-editor/AdvancedSection.tsx +1 -1
- package/components/agents/agent-editor/ModelSection.tsx +2 -2
- package/components/bridges/BridgeEditor.tsx +1 -1
- package/components/bridges/BridgesPanel.tsx +1 -1
- package/components/chat/InputBar.tsx +1 -1
- package/components/chat/MessageList.tsx +3 -3
- package/components/chat/useUserProfileAndAgent.test.tsx +43 -1
- package/components/chat/useUserProfileAndAgent.ts +16 -5
- package/components/credentials/CredentialsPanel.tsx +1 -1
- package/components/dashboard/CostBreakdown.test.tsx +34 -0
- package/components/dashboard/CostBreakdown.tsx +21 -0
- package/components/dashboard/DashboardPanel.test.tsx +9 -0
- package/components/dashboard/DashboardPanel.tsx +3 -3
- package/components/dashboard/Donuts.tsx +5 -2
- package/components/dashboard/ModelPricingSection.test.tsx +42 -0
- package/components/dashboard/ModelPricingSection.tsx +23 -21
- package/components/dashboard/Series.test.tsx +1 -0
- package/components/dashboard/Series.tsx +5 -0
- package/components/dashboard/SummaryCards.tsx +39 -27
- package/components/dashboard/VendorModelReportSection.tsx +2 -0
- package/components/documents/AddSourceFields.tsx +52 -15
- package/components/documents/AddSourceForm.tsx +61 -19
- package/components/documents/DocumentsPanel.tsx +22 -2
- package/components/documents/RecallExclusions.tsx +73 -0
- package/components/documents/SearchProbe.tsx +42 -5
- package/components/documents/helpers.ts +17 -3
- package/components/documents/indexing-controls.test.tsx +137 -0
- package/components/documents/useDocumentsPanel.test.tsx +87 -0
- package/components/documents/useDocumentsPanel.ts +47 -6
- package/components/env/EnvVarsPanel.tsx +1 -1
- package/components/harness/HarnessPanel.tsx +2 -2
- package/components/integrations/NetworkPanel.tsx +1 -1
- package/components/layout/AgentCardControls.test.tsx +162 -0
- package/components/layout/AgentCardControls.tsx +126 -0
- package/components/layout/AgentSwitcher.test.tsx +37 -0
- package/components/layout/AgentSwitcher.tsx +28 -3
- package/components/layout/AppShell.tsx +16 -9
- package/components/layout/MenuPanel.test.tsx +125 -2
- package/components/layout/MenuPanel.tsx +96 -2
- package/components/logs/LogsPanel.tsx +1 -1
- package/components/mcp/MCPPanel.tsx +1 -1
- package/components/memory/UnifiedMemoryPanel.tsx +4 -4
- package/components/models/CapBadges.tsx +1 -1
- package/components/models/EmbeddingModelSection.test.tsx +41 -0
- package/components/models/EmbeddingModelSection.tsx +5 -0
- package/components/models/ModelFeatureGuide.tsx +16 -8
- package/components/models/ModelsPanel.tsx +8 -3
- package/components/models/model-editor/ModelEditorBody.tsx +1 -0
- package/components/models/model-editor/ModelIdSection.tsx +5 -0
- package/components/profile/ProfileEditor.test.tsx +70 -0
- package/components/profile/ProfileEditor.tsx +6 -2
- package/components/profile/ProfilePanel.test.tsx +6 -0
- package/components/profile/ProfilePanel.tsx +1 -1
- package/components/scheduled-tasks/ScheduledTasksPanel.tsx +1 -1
- package/components/settings/AppearancePanel.tsx +1 -1
- package/components/settings/SettingsPanel.test.tsx +23 -0
- package/components/settings/SettingsPanel.tsx +2 -2
- package/components/skills/SkillsPanel.tsx +1 -1
- package/components/tools/BrowserPanel.tsx +1 -1
- package/components/tools/PackagesPanel.tsx +1 -1
- package/components/tools/UnifiedPackageList.tsx +1 -1
- package/components/ui/PanelHeader.tsx +1 -1
- package/components/ui/SubTabBar.tsx +1 -1
- package/docs/INSTALL.md +7 -5
- package/hooks/useAgents.ts +2 -2
- package/lib/agents/prepare/system-prompt.test.ts +65 -0
- package/lib/agents/prepare/system-prompt.ts +27 -20
- package/lib/agents/prompt-registry.test.ts +42 -0
- package/lib/agents/prompt-registry.ts +21 -0
- package/lib/bridges/whatsapp.inbound.test.ts +38 -1
- package/lib/bridges/whatsapp.ts +10 -33
- package/lib/db/index.ts +2 -0
- package/lib/db/migrations.test.ts +10 -0
- package/lib/db/migrations.ts +10 -0
- package/lib/db/statement-cache.test.ts +77 -0
- package/lib/db/statement-cache.ts +31 -0
- package/lib/documents/indexer.test.ts +16 -1
- package/lib/documents/indexer.ts +8 -7
- package/lib/documents/mail-source-config.ts +31 -0
- package/lib/documents/recall-policy.ts +24 -0
- package/lib/documents/remote/icloud.ts +56 -0
- package/lib/documents/remote/index.ts +4 -1
- package/lib/documents/remote/mail.test.ts +232 -0
- package/lib/documents/remote/mail.ts +48 -40
- package/lib/documents/search.test.ts +81 -2
- package/lib/documents/search.ts +47 -7
- package/lib/embeddings/cache.test.ts +16 -2
- package/lib/embeddings/index.test.ts +7 -0
- package/lib/embeddings/index.ts +12 -1
- package/lib/integrations/deepseek-web/manifest.ts +68 -0
- package/lib/integrations/gmail/manifest.ts +2 -3
- package/lib/integrations/icloud/manifest.ts +19 -5
- package/lib/integrations/registry.test.ts +8 -0
- package/lib/integrations/registry.ts +2 -0
- package/lib/lifecycle/changeset-build.test.ts +3 -0
- package/lib/lifecycle/changeset-build.ts +6 -0
- package/lib/lifecycle/changesets.ts +9 -0
- package/lib/pricing/llm-extract.ts +1 -1
- package/lib/pricing/maintenance-task.ts +19 -3
- package/lib/pricing/model-updates.test.ts +192 -0
- package/lib/pricing/model-updates.ts +205 -0
- package/lib/stores/app-settings.ts +17 -1
- package/lib/stores/dashboard-metrics-cache.test.ts +44 -0
- package/lib/stores/dashboard-metrics.test.ts +47 -4
- package/lib/stores/dashboard-metrics.ts +73 -8
- package/lib/stores/document-sources.ts +1 -0
- package/lib/stores/integrations.test.ts +20 -0
- package/lib/stores/integrations.ts +15 -4
- package/lib/stores/langgraph-store.test.ts +53 -0
- package/lib/stores/langgraph-store.ts +9 -21
- package/lib/stores/model-metadata.ts +89 -0
- package/lib/stores/threads.test.ts +34 -0
- package/lib/stores/threads.ts +17 -20
- package/lib/stores/tool-stats.test.ts +31 -0
- package/lib/stores/tool-stats.ts +16 -0
- package/lib/stores/version-adoption.test.ts +8 -0
- package/lib/stores/version-adoption.ts +5 -2
- package/lib/tools/general/documents.test.ts +5 -0
- package/lib/tools/general/pricing-maintenance.test.ts +5 -0
- package/lib/tools/general/pricing-maintenance.ts +4 -1
- package/lib/tools/packages/default-packages/icloud.test.ts +49 -0
- package/lib/tools/packages/default-packages/icloud.ts +8 -6
- package/lib/tools/packages/default-packages.test.ts +16 -0
- package/lib/tools/packages/langchain-packages.ts +2 -2
- package/lib/tools/runtime/category-filter.test.ts +22 -0
- package/lib/tools/web/deepseek.test.ts +76 -0
- package/lib/tools/web/deepseek.ts +68 -0
- package/lib/tools/web/fetch.test.ts +130 -2
- package/lib/tools/web/fetch.ts +48 -1
- package/lib/tools/web/search.test.ts +139 -2
- package/lib/tools/web/search.ts +48 -1
- package/lib/triggers/handlers/scheduled-task.test.ts +18 -0
- package/lib/triggers/handlers/scheduled-task.ts +6 -0
- package/lib/ui/feature-readiness.test.ts +7 -0
- package/lib/ui/feature-readiness.ts +2 -1
- package/package.json +5 -4
- package/scripts/check-npm-package.mjs +1 -0
- package/scripts/jarela-bin.mjs +3 -0
- package/scripts/runtime-version.mjs +19 -0
- package/scripts/start-prod.mjs +3 -0
- package/.next/standalone/.next/static/6qLnqWdsfBTJOAJApUYXy/_buildManifest.js +0 -1
- package/.next/standalone/.next/static/chunks/app/_global-error/page-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/access/[identity]/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/access/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/agents/[id]/compact/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/agents/[id]/display-filters/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/agents/[id]/duplicate/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/agents/[id]/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/agents/[id]/thread/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/agents/recent-replies/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/agents/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/allowed-sites/[hostname]/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/allowed-sites/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/artifacts/lifecycle/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/attachments/files/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/attachments/images/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/[id]/chats/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/[id]/ignores/[remote_jid]/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/[id]/ignores/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/[id]/lookup/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/[id]/pair/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/[id]/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/[id]/routes/[route_id]/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/[id]/routes/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/[id]/status/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/kinds/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/builtin-tools/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/config/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/credentials/[id]/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/credentials/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/dashboard/currency/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/dashboard/metrics/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/dashboard/pricing/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/dashboard/pricing-task/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/delegations/codex/[job_id]/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/documents/search/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/documents/settings/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/documents/sources/[id]/reindex/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/documents/sources/[id]/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/documents/sources/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/env/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/env-sync/allowlist/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/env-sync/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/events/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/events/test/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/agents/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/browser/activate/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/browser/foreground/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/browser/history/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/browser/poll/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/browser/progress/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/browser/result/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/browser/retry/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/browser/status/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/browser/tabs/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/fill/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/refine/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/turn/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/extensions/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/extensions/tools/[name]/config/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/extensions/tools/[name]/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/extensions/tools/[name]/secrets/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/files/[name]/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/fs/browse/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/harnesses/[id]/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/harnesses/default/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/harnesses/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/health/probes/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/health/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/integrations/[name]/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/integrations/[name]/test/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/integrations/gmail/oauth/callback/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/integrations/gmail/oauth/start/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/integrations/gmail/oauth/status/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/integrations/outlook/oauth/callback/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/integrations/outlook/oauth/start/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/integrations/outlook/oauth/status/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/integrations/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/lifecycle/adoption/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/local-file/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/logs/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/maps/embed/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/mcp-servers/[name]/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/mcp-servers/registry/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/mcp-servers/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/memory/[namespace]/[key]/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/memory/policy/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/memory/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/memory/search/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/models/[name]/compact-threads/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/models/[name]/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/models/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/packages/catalog/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/packages/defaults/[id]/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/packages/install/[id]/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/packages/install/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/packages/manifests/[name]/enabled/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/packages/manifests/[name]/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/packages/manifests/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/packages/reload/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/packages/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/page-capture/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/pending-actions/[id]/approve/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/pending-actions/[id]/deny/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/pending-actions/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/profile/location/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/profile/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/providers/[provider]/models/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/providers/[provider]/probe/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/providers/github-copilot/auth/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/providers/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/proxy-config/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/redaction/init/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/redaction/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/scheduled-tasks/[id]/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/scheduled-tasks/[id]/run/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/scheduled-tasks/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/security/idle-timeout/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/security/pin/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/security/state/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/security/unlock/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/security/verify-pin/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/setup/test-key/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/skills/[id]/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/skills/repos/[id]/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/skills/repos/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/skills/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/system/abort/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/system/restart/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/tailscale/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/tasks/[agent_id]/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/tasks/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/threads/[thread_id]/activity/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/threads/[thread_id]/context-pin/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/threads/[thread_id]/messages/[message_id]/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/threads/[thread_id]/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/threads/[thread_id]/run/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/threads/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/tools/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/update/apply/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/update/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/voice/transcribe/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/voice/tts/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/watchers/[id]/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/watchers/[id]/run/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/watchers/reaction-scripts/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/watchers/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/manifest.webmanifest/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/next/dist/client/components/builtin/app-error-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/next/dist/client/components/builtin/forbidden-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/next/dist/client/components/builtin/not-found-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/next/dist/client/components/builtin/unauthorized-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/css/c4a8bed1da2c748f.css +0 -5
- /package/.next/standalone/.next/static/{6qLnqWdsfBTJOAJApUYXy → 2BAUJZ7x8eXCYpuZ-Kp7h}/_ssgManifest.js +0 -0
|
@@ -440,169 +440,621 @@ const USAGE_PROFILES = {
|
|
|
440
440
|
|
|
441
441
|
/***/ }),
|
|
442
442
|
|
|
443
|
-
/***/
|
|
444
|
-
/***/ ((module) => {
|
|
445
|
-
|
|
446
|
-
module.exports = require("node:stream");
|
|
447
|
-
|
|
448
|
-
/***/ }),
|
|
449
|
-
|
|
450
|
-
/***/ 176760:
|
|
451
|
-
/***/ ((module) => {
|
|
452
|
-
|
|
453
|
-
module.exports = require("node:path");
|
|
454
|
-
|
|
455
|
-
/***/ }),
|
|
456
|
-
|
|
457
|
-
/***/ 200261:
|
|
458
|
-
/***/ ((module) => {
|
|
459
|
-
|
|
460
|
-
module.exports = require("next/dist/shared/lib/router/utils/app-paths");
|
|
461
|
-
|
|
462
|
-
/***/ }),
|
|
463
|
-
|
|
464
|
-
/***/ 253638:
|
|
443
|
+
/***/ 149878:
|
|
465
444
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
466
445
|
|
|
446
|
+
__webpack_require__.r(__webpack_exports__);
|
|
467
447
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
468
|
-
/* harmony export */
|
|
448
|
+
/* harmony export */ handler: () => (/* binding */ handler),
|
|
449
|
+
/* harmony export */ patchFetch: () => (/* binding */ patchFetch),
|
|
450
|
+
/* harmony export */ routeModule: () => (/* binding */ routeModule),
|
|
451
|
+
/* harmony export */ serverHooks: () => (/* binding */ serverHooks),
|
|
452
|
+
/* harmony export */ workAsyncStorage: () => (/* binding */ workAsyncStorage),
|
|
453
|
+
/* harmony export */ workUnitAsyncStorage: () => (/* binding */ workUnitAsyncStorage)
|
|
469
454
|
/* harmony export */ });
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
/***/ }),
|
|
504
|
-
|
|
505
|
-
/***/ 333873:
|
|
506
|
-
/***/ ((module) => {
|
|
507
|
-
|
|
508
|
-
module.exports = require("path");
|
|
509
|
-
|
|
510
|
-
/***/ }),
|
|
511
|
-
|
|
512
|
-
/***/ 344708:
|
|
513
|
-
/***/ ((module) => {
|
|
455
|
+
/* harmony import */ var next_dist_server_route_modules_app_route_module_compiled__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(319225);
|
|
456
|
+
/* harmony import */ var next_dist_server_route_modules_app_route_module_compiled__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_route_modules_app_route_module_compiled__WEBPACK_IMPORTED_MODULE_0__);
|
|
457
|
+
/* harmony import */ var next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(684006);
|
|
458
|
+
/* harmony import */ var next_dist_server_lib_patch_fetch__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8317);
|
|
459
|
+
/* harmony import */ var next_dist_server_lib_patch_fetch__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_lib_patch_fetch__WEBPACK_IMPORTED_MODULE_2__);
|
|
460
|
+
/* harmony import */ var next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(799373);
|
|
461
|
+
/* harmony import */ var next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__);
|
|
462
|
+
/* harmony import */ var next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(434775);
|
|
463
|
+
/* harmony import */ var next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__);
|
|
464
|
+
/* harmony import */ var next_dist_server_app_render_manifests_singleton__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(524235);
|
|
465
|
+
/* harmony import */ var next_dist_server_app_render_manifests_singleton__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_app_render_manifests_singleton__WEBPACK_IMPORTED_MODULE_5__);
|
|
466
|
+
/* harmony import */ var next_dist_shared_lib_router_utils_app_paths__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(200261);
|
|
467
|
+
/* harmony import */ var next_dist_shared_lib_router_utils_app_paths__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(next_dist_shared_lib_router_utils_app_paths__WEBPACK_IMPORTED_MODULE_6__);
|
|
468
|
+
/* harmony import */ var next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(754365);
|
|
469
|
+
/* harmony import */ var next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_7__);
|
|
470
|
+
/* harmony import */ var next_dist_server_web_spec_extension_adapters_next_request__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(590771);
|
|
471
|
+
/* harmony import */ var next_dist_server_web_spec_extension_adapters_next_request__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_web_spec_extension_adapters_next_request__WEBPACK_IMPORTED_MODULE_8__);
|
|
472
|
+
/* harmony import */ var next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(473461);
|
|
473
|
+
/* harmony import */ var next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_9__);
|
|
474
|
+
/* harmony import */ var next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(767798);
|
|
475
|
+
/* harmony import */ var next_dist_server_send_response__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(192280);
|
|
476
|
+
/* harmony import */ var next_dist_server_web_utils__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(662018);
|
|
477
|
+
/* harmony import */ var next_dist_server_web_utils__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_web_utils__WEBPACK_IMPORTED_MODULE_12__);
|
|
478
|
+
/* harmony import */ var next_dist_server_lib_cache_control__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(445696);
|
|
479
|
+
/* harmony import */ var next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(347929);
|
|
480
|
+
/* harmony import */ var next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__);
|
|
481
|
+
/* harmony import */ var next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(986439);
|
|
482
|
+
/* harmony import */ var next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_15__);
|
|
483
|
+
/* harmony import */ var next_dist_server_lib_route_cache_key__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(710246);
|
|
484
|
+
/* harmony import */ var next_dist_server_lib_route_cache_key__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_lib_route_cache_key__WEBPACK_IMPORTED_MODULE_16__);
|
|
485
|
+
/* harmony import */ var next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(137527);
|
|
486
|
+
/* harmony import */ var next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__);
|
|
514
487
|
|
|
515
|
-
module.exports = require("node:https");
|
|
516
488
|
|
|
517
|
-
/***/ }),
|
|
518
489
|
|
|
519
|
-
/***/ 379551:
|
|
520
|
-
/***/ ((module) => {
|
|
521
490
|
|
|
522
|
-
module.exports = require("url");
|
|
523
491
|
|
|
524
|
-
/***/ }),
|
|
525
492
|
|
|
526
|
-
/***/ 380481:
|
|
527
|
-
/***/ ((module) => {
|
|
528
493
|
|
|
529
|
-
module.exports = require("node:readline");
|
|
530
494
|
|
|
531
|
-
/***/ }),
|
|
532
495
|
|
|
533
|
-
/***/ 399253:
|
|
534
|
-
/***/ ((module) => {
|
|
535
496
|
|
|
536
|
-
module.exports = import("@huggingface/transformers");;
|
|
537
497
|
|
|
538
|
-
/***/ }),
|
|
539
498
|
|
|
540
|
-
/***/ 419121:
|
|
541
|
-
/***/ ((module) => {
|
|
542
499
|
|
|
543
|
-
module.exports = require("next/dist/server/app-render/action-async-storage.external.js");
|
|
544
500
|
|
|
545
|
-
/***/ }),
|
|
546
501
|
|
|
547
|
-
/***/ 455511:
|
|
548
|
-
/***/ ((module) => {
|
|
549
502
|
|
|
550
|
-
module.exports = require("crypto");
|
|
551
503
|
|
|
552
|
-
/***/ }),
|
|
553
504
|
|
|
554
|
-
|
|
555
|
-
|
|
505
|
+
// We inject the nextConfigOutput here so that we can use them in the route
|
|
506
|
+
// module.
|
|
507
|
+
const nextConfigOutput = "standalone"
|
|
508
|
+
const routeModule = new next_dist_server_route_modules_app_route_module_compiled__WEBPACK_IMPORTED_MODULE_0__.AppRouteRouteModule({
|
|
509
|
+
definition: {
|
|
510
|
+
kind: next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__.RouteKind.APP_ROUTE,
|
|
511
|
+
page: "/api/v1/agents/[id]/duplicate/route",
|
|
512
|
+
pathname: "/api/v1/agents/[id]/duplicate",
|
|
513
|
+
filename: "route",
|
|
514
|
+
bundlePath: "app/api/v1/agents/[id]/duplicate/route"
|
|
515
|
+
},
|
|
516
|
+
distDir: ".next" || 0,
|
|
517
|
+
relativeProjectDir: false || '',
|
|
518
|
+
resolvedPagePath: "/home/runner/work/jarela/jarela/app/api/v1/agents/[id]/duplicate/route.ts",
|
|
519
|
+
nextConfigOutput,
|
|
520
|
+
// The lazy require factory ensures that:
|
|
521
|
+
// - In dev: devRequestTimingInternalsEnd is set before userland executes,
|
|
522
|
+
// correctly attributing module load time to application-code rather than
|
|
523
|
+
// framework internals.
|
|
524
|
+
// - In all modes: async modules (route files with top-level await) are
|
|
525
|
+
// handled correctly — require() returns a Promise for such modules, which
|
|
526
|
+
// ensureUserland() awaits before the first request is handled.
|
|
527
|
+
userland: ()=>__webpack_require__(616137),
|
|
528
|
+
// In Turbopack dev mode, also provide a synchronous per-request getter so
|
|
529
|
+
// server HMR updates are picked up without re-executing the entry chunk.
|
|
530
|
+
// Using require() (synchronous) avoids adding async overhead that would be
|
|
531
|
+
// incorrectly attributed to application-code time in devRequestTiming.
|
|
532
|
+
... false ? 0 : {}
|
|
533
|
+
});
|
|
534
|
+
// Pull out the exports that we need to expose from the module. This should
|
|
535
|
+
// be eliminated when we've moved the other routes to the new format. These
|
|
536
|
+
// are used to hook into the route.
|
|
537
|
+
const { workAsyncStorage, workUnitAsyncStorage, serverHooks } = routeModule;
|
|
538
|
+
function patchFetch() {
|
|
539
|
+
return (0,next_dist_server_lib_patch_fetch__WEBPACK_IMPORTED_MODULE_2__.patchFetch)({
|
|
540
|
+
workAsyncStorage,
|
|
541
|
+
workUnitAsyncStorage
|
|
542
|
+
});
|
|
543
|
+
}
|
|
556
544
|
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
const
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
545
|
+
async function handler(req, res, ctx) {
|
|
546
|
+
if (ctx.requestMeta) {
|
|
547
|
+
(0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.setRequestMeta)(req, ctx.requestMeta);
|
|
548
|
+
}
|
|
549
|
+
if (routeModule.isDev) {
|
|
550
|
+
(0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.addRequestMeta)(req, 'devRequestTimingInternalsEnd', process.hrtime.bigint());
|
|
551
|
+
}
|
|
552
|
+
let srcPage = "/api/v1/agents/[id]/duplicate/route";
|
|
553
|
+
// turbopack doesn't normalize `/index` in the page name
|
|
554
|
+
// so we need to to process dynamic routes properly
|
|
555
|
+
// TODO: fix turbopack providing differing value from webpack
|
|
556
|
+
if (false) {} else if (srcPage === '/index') {
|
|
557
|
+
// we always normalize /index specifically
|
|
558
|
+
srcPage = '/';
|
|
559
|
+
}
|
|
560
|
+
const multiZoneDraftMode = false;
|
|
561
|
+
// Registering `instrumentation.ts` usually installs the tracer provider, so
|
|
562
|
+
// do it before starting the request span. The span is started before
|
|
563
|
+
// `prepare`, so route module preparation is part of the request's trace.
|
|
564
|
+
// When this request triggers registration, the lifecycle spans of
|
|
565
|
+
// `instrumentation.ts` are emitted inside the request span.
|
|
566
|
+
const { instrumentation } = await routeModule.ensureInstrumentation(req, {
|
|
567
|
+
deferSpans: true
|
|
568
|
+
});
|
|
569
|
+
return routeModule.traceRequest(req, {
|
|
570
|
+
tracer: (0,next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.getTracer)(),
|
|
571
|
+
spanName: `${req.method || 'GET'} ${srcPage}`,
|
|
572
|
+
httpTarget: req.url,
|
|
573
|
+
instrumentation
|
|
574
|
+
}, (requestSpan, requestRootSpan)=>handleRequest(req, res, ctx, srcPage, multiZoneDraftMode, requestSpan, requestRootSpan));
|
|
576
575
|
}
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
}
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
title: "Output formatting",
|
|
588
|
-
hint: "Markdown / HTML extras, code fences, images, maps, citation refs block."
|
|
589
|
-
},
|
|
590
|
-
citation: {
|
|
591
|
-
title: "Source attribution",
|
|
592
|
-
hint: "Anti-hallucination rules: every substantive claim must be tagged with its source."
|
|
593
|
-
},
|
|
594
|
-
self_config: {
|
|
595
|
-
title: "Self-configuration proposals",
|
|
596
|
-
hint: "Lets the agent propose config changes (install MCP, edit agent, set keys) for user approval."
|
|
576
|
+
async function handleRequest(req, res, ctx, srcPage, multiZoneDraftMode, requestSpan, requestRootSpan) {
|
|
577
|
+
const prepareResult = await routeModule.prepare(req, res, {
|
|
578
|
+
srcPage,
|
|
579
|
+
multiZoneDraftMode
|
|
580
|
+
});
|
|
581
|
+
if (!prepareResult) {
|
|
582
|
+
res.statusCode = 400;
|
|
583
|
+
res.end('Bad Request');
|
|
584
|
+
ctx.waitUntil == null ? void 0 : ctx.waitUntil.call(ctx, Promise.resolve());
|
|
585
|
+
return null;
|
|
597
586
|
}
|
|
598
|
-
};
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
587
|
+
const { buildId, deploymentId, params, nextConfig, parsedUrl, isDraftMode, prerenderManifest, routerServerContext, isOnDemandRevalidate, revalidateOnlyGenerated, resolvedPathname, clientReferenceManifest, serverActionsManifest, previewProps } = prepareResult;
|
|
588
|
+
const normalizedSrcPage = (0,next_dist_shared_lib_router_utils_app_paths__WEBPACK_IMPORTED_MODULE_6__.normalizeAppPath)(srcPage);
|
|
589
|
+
// Only this route's prerenders can establish ISR or admit generated params.
|
|
590
|
+
const isPrerendered = Boolean(prerenderManifest.routes[resolvedPathname]) && (routeModule.isDev || (0,next_dist_server_lib_route_cache_key__WEBPACK_IMPORTED_MODULE_16__.isRouteCacheOwner)(resolvedPathname, routeModule.cacheOwner, prerenderManifest.routes[resolvedPathname]));
|
|
591
|
+
let isIsr = Boolean(prerenderManifest.dynamicRoutes[normalizedSrcPage] || isPrerendered);
|
|
592
|
+
const render404 = async ()=>{
|
|
593
|
+
// TODO: should route-module itself handle rendering the 404
|
|
594
|
+
if (routerServerContext == null ? void 0 : routerServerContext.render404) {
|
|
595
|
+
await routerServerContext.render404(req, res, parsedUrl, false);
|
|
596
|
+
} else {
|
|
597
|
+
res.end('This page could not be found');
|
|
598
|
+
}
|
|
599
|
+
return null;
|
|
600
|
+
};
|
|
601
|
+
if (isIsr && !isDraftMode) {
|
|
602
|
+
const prerenderInfo = prerenderManifest.dynamicRoutes[normalizedSrcPage];
|
|
603
|
+
if (prerenderInfo) {
|
|
604
|
+
if (prerenderInfo.fallback === false && !isPrerendered) {
|
|
605
|
+
if (nextConfig.adapterPath) {
|
|
606
|
+
return await render404();
|
|
607
|
+
}
|
|
608
|
+
throw new next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_15__.NoFallbackError();
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
let cacheKey = null;
|
|
613
|
+
if (isIsr && !routeModule.isDev && !isDraftMode) {
|
|
614
|
+
cacheKey = resolvedPathname;
|
|
615
|
+
// ensure /index and / is normalized to one key
|
|
616
|
+
cacheKey = cacheKey === '/index' ? '/' : cacheKey;
|
|
617
|
+
}
|
|
618
|
+
// Before rendering (which initializes component tree modules), we have to
|
|
619
|
+
// set the reference manifests to our global store so Server Action's
|
|
620
|
+
// encryption util can access to them at the top level of the page module.
|
|
621
|
+
if (serverActionsManifest && clientReferenceManifest) {
|
|
622
|
+
(0,next_dist_server_app_render_manifests_singleton__WEBPACK_IMPORTED_MODULE_5__.setManifestsSingleton)({
|
|
623
|
+
page: srcPage,
|
|
624
|
+
clientReferenceManifest,
|
|
625
|
+
serverActionsManifest
|
|
626
|
+
});
|
|
627
|
+
}
|
|
628
|
+
const method = req.method || 'GET';
|
|
629
|
+
const tracer = (0,next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.getTracer)();
|
|
630
|
+
const isWrappedByNextServer = Boolean(routerServerContext == null ? void 0 : routerServerContext.isWrappedByNextServer);
|
|
631
|
+
const isMinimalMode = Boolean((0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.getRequestMeta)(req, 'minimalMode'));
|
|
632
|
+
const incrementalCache = (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.getRequestMeta)(req, 'incrementalCache') || await routeModule.getIncrementalCache(req, nextConfig, previewProps, prerenderManifest, isMinimalMode);
|
|
633
|
+
incrementalCache == null ? void 0 : incrementalCache.resetRequestCache();
|
|
634
|
+
globalThis.__incrementalCache = incrementalCache;
|
|
635
|
+
const context = {
|
|
636
|
+
params,
|
|
637
|
+
previewProps,
|
|
638
|
+
renderOpts: {
|
|
639
|
+
experimental: {
|
|
640
|
+
authInterrupts: Boolean(nextConfig.experimental.authInterrupts),
|
|
641
|
+
useCacheTimeout: nextConfig.experimental.useCacheTimeout,
|
|
642
|
+
durableUseCacheEntries: Boolean(nextConfig.experimental.durableUseCacheEntries)
|
|
643
|
+
},
|
|
644
|
+
cacheComponents: Boolean(nextConfig.cacheComponents),
|
|
645
|
+
validationLevel: nextConfig.experimental.instantInsights.validationLevel,
|
|
646
|
+
isDraftMode,
|
|
647
|
+
incrementalCache,
|
|
648
|
+
hmrRefreshHash: (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.getRequestMeta)(req, 'hmrRefreshHash'),
|
|
649
|
+
cacheLifeProfiles: nextConfig.cacheLife,
|
|
650
|
+
staticPageGenerationTimeout: nextConfig.staticPageGenerationTimeout,
|
|
651
|
+
waitUntil: ctx.waitUntil,
|
|
652
|
+
onClose: (cb)=>{
|
|
653
|
+
res.on('close', cb);
|
|
654
|
+
},
|
|
655
|
+
onAfterTaskError: undefined
|
|
656
|
+
},
|
|
657
|
+
sharedContext: {
|
|
658
|
+
buildId,
|
|
659
|
+
deploymentId
|
|
660
|
+
}
|
|
661
|
+
};
|
|
662
|
+
const nodeNextReq = new next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_7__.NodeNextRequest(req);
|
|
663
|
+
const nodeNextRes = new next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_7__.NodeNextResponse(res);
|
|
664
|
+
const nextReq = next_dist_server_web_spec_extension_adapters_next_request__WEBPACK_IMPORTED_MODULE_8__.NextRequestAdapter.fromNodeNextRequest(nodeNextReq, (0,next_dist_server_web_spec_extension_adapters_next_request__WEBPACK_IMPORTED_MODULE_8__.signalFromNodeResponse)(res));
|
|
665
|
+
const responseGenerator = async ({ previousCacheEntry })=>{
|
|
666
|
+
try {
|
|
667
|
+
if (!isMinimalMode && isOnDemandRevalidate && revalidateOnlyGenerated && !previousCacheEntry) {
|
|
668
|
+
res.statusCode = 404;
|
|
669
|
+
// on-demand revalidate always sets this header
|
|
670
|
+
res.setHeader('x-nextjs-cache', 'REVALIDATED');
|
|
671
|
+
res.end('This page could not be found');
|
|
672
|
+
return null;
|
|
673
|
+
}
|
|
674
|
+
const response = cacheKey === null ? await routeModule.handle(nextReq, context) : await routeModule.prerender(nextReq, context);
|
|
675
|
+
req.fetchMetrics = context.renderOpts.fetchMetrics;
|
|
676
|
+
let pendingWaitUntil = context.renderOpts.pendingWaitUntil;
|
|
677
|
+
// Attempt using provided waitUntil if available
|
|
678
|
+
// if it's not we fallback to sendResponse's handling
|
|
679
|
+
if (pendingWaitUntil) {
|
|
680
|
+
if (ctx.waitUntil) {
|
|
681
|
+
ctx.waitUntil(pendingWaitUntil);
|
|
682
|
+
pendingWaitUntil = undefined;
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
const cacheTags = context.renderOpts.collectedTags;
|
|
686
|
+
// If the request is for a static response, we can cache it so long
|
|
687
|
+
// as it's not edge.
|
|
688
|
+
if (isIsr) {
|
|
689
|
+
const blob = await response.blob();
|
|
690
|
+
// Copy the headers from the response.
|
|
691
|
+
const headers = (0,next_dist_server_web_utils__WEBPACK_IMPORTED_MODULE_12__.toNodeOutgoingHttpHeaders)(response.headers);
|
|
692
|
+
if (cacheTags) {
|
|
693
|
+
headers[next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__.NEXT_CACHE_TAGS_HEADER] = cacheTags;
|
|
694
|
+
}
|
|
695
|
+
if (!headers['content-type'] && blob.type) {
|
|
696
|
+
headers['content-type'] = blob.type;
|
|
697
|
+
}
|
|
698
|
+
const revalidate = typeof context.renderOpts.collectedRevalidate === 'undefined' || context.renderOpts.collectedRevalidate >= next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__.INFINITE_CACHE ? false : context.renderOpts.collectedRevalidate;
|
|
699
|
+
const expire = typeof context.renderOpts.collectedExpire === 'undefined' || context.renderOpts.collectedExpire >= next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__.INFINITE_CACHE ? // route has a numeric `revalidate` but didn't declare an
|
|
700
|
+
// explicit `expire` (e.g. via `cacheLife`). This mirrors the
|
|
701
|
+
// build-time fallback in `build/index.ts` so cache entries
|
|
702
|
+
// and the response Cache-Control header agree on the route's
|
|
703
|
+
// effective expire. Routes that opt out of revalidation
|
|
704
|
+
// (`revalidate: false`) or that are dynamic (`revalidate: 0`)
|
|
705
|
+
// keep `expire: undefined`.
|
|
706
|
+
revalidate !== false && revalidate > 0 ? nextConfig.expireTime : undefined : context.renderOpts.collectedExpire;
|
|
707
|
+
// Create the cache entry for the response.
|
|
708
|
+
const cacheEntry = {
|
|
709
|
+
value: {
|
|
710
|
+
kind: next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__.CachedRouteKind.APP_ROUTE,
|
|
711
|
+
status: response.status,
|
|
712
|
+
body: Buffer.from(await blob.arrayBuffer()),
|
|
713
|
+
headers
|
|
714
|
+
},
|
|
715
|
+
cacheControl: {
|
|
716
|
+
revalidate,
|
|
717
|
+
expire
|
|
718
|
+
}
|
|
719
|
+
};
|
|
720
|
+
return cacheEntry;
|
|
721
|
+
} else {
|
|
722
|
+
// send response without caching if not ISR
|
|
723
|
+
await (0,next_dist_server_send_response__WEBPACK_IMPORTED_MODULE_11__/* .sendResponse */ .I)(nodeNextReq, nodeNextRes, response, pendingWaitUntil);
|
|
724
|
+
return null;
|
|
725
|
+
}
|
|
726
|
+
} catch (err) {
|
|
727
|
+
// if this is a background revalidate we need to report
|
|
728
|
+
// the request error here as it won't be bubbled
|
|
729
|
+
if (previousCacheEntry == null ? void 0 : previousCacheEntry.isStale) {
|
|
730
|
+
const silenceLog = false;
|
|
731
|
+
await routeModule.onRequestError(req, err, {
|
|
732
|
+
routerKind: 'App Router',
|
|
733
|
+
routePath: srcPage,
|
|
734
|
+
routeType: 'route',
|
|
735
|
+
revalidateReason: (0,next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_10__.getRevalidateReason)({
|
|
736
|
+
isStaticGeneration: cacheKey !== null,
|
|
737
|
+
isOnDemandRevalidate
|
|
738
|
+
})
|
|
739
|
+
}, silenceLog, routerServerContext);
|
|
740
|
+
}
|
|
741
|
+
throw err;
|
|
742
|
+
}
|
|
743
|
+
};
|
|
744
|
+
const handleResponse = async (currentSpan)=>{
|
|
745
|
+
try {
|
|
746
|
+
var _cacheEntry_value;
|
|
747
|
+
const cacheEntry = await routeModule.handleResponse({
|
|
748
|
+
req,
|
|
749
|
+
nextConfig,
|
|
750
|
+
cacheKey,
|
|
751
|
+
routeKind: next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__.RouteKind.APP_ROUTE,
|
|
752
|
+
isFallback: false,
|
|
753
|
+
previewProps,
|
|
754
|
+
prerenderManifest,
|
|
755
|
+
isRoutePPREnabled: false,
|
|
756
|
+
isOnDemandRevalidate,
|
|
757
|
+
revalidateOnlyGenerated,
|
|
758
|
+
responseGenerator,
|
|
759
|
+
waitUntil: ctx.waitUntil,
|
|
760
|
+
isMinimalMode
|
|
761
|
+
});
|
|
762
|
+
if (cacheEntry !== null && 'error' in cacheEntry) {
|
|
763
|
+
throw cacheEntry.error;
|
|
764
|
+
}
|
|
765
|
+
// we don't create a cacheEntry for ISR
|
|
766
|
+
if (!isIsr) {
|
|
767
|
+
return;
|
|
768
|
+
}
|
|
769
|
+
if ((cacheEntry == null ? void 0 : (_cacheEntry_value = cacheEntry.value) == null ? void 0 : _cacheEntry_value.kind) !== next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__.CachedRouteKind.APP_ROUTE) {
|
|
770
|
+
var _cacheEntry_value1;
|
|
771
|
+
throw new Error(`Invariant: app-route received invalid cache entry ${cacheEntry == null ? void 0 : (_cacheEntry_value1 = cacheEntry.value) == null ? void 0 : _cacheEntry_value1.kind}`);
|
|
772
|
+
}
|
|
773
|
+
if (!isMinimalMode) {
|
|
774
|
+
res.setHeader('x-nextjs-cache', isOnDemandRevalidate ? 'REVALIDATED' : cacheEntry.isMiss ? 'MISS' : cacheEntry.isStale ? 'STALE' : 'HIT');
|
|
775
|
+
}
|
|
776
|
+
// Draft mode should never be cached
|
|
777
|
+
if (isDraftMode) {
|
|
778
|
+
res.setHeader('Cache-Control', 'private, no-cache, no-store, max-age=0, must-revalidate');
|
|
779
|
+
}
|
|
780
|
+
const headers = (0,next_dist_server_web_utils__WEBPACK_IMPORTED_MODULE_12__.fromNodeOutgoingHttpHeaders)(cacheEntry.value.headers);
|
|
781
|
+
if (!(isMinimalMode && isIsr)) {
|
|
782
|
+
headers.delete(next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__.NEXT_CACHE_TAGS_HEADER);
|
|
783
|
+
}
|
|
784
|
+
// If cache control is already set on the response we don't
|
|
785
|
+
// override it to allow users to customize it via next.config
|
|
786
|
+
if (cacheEntry.cacheControl && !res.getHeader('Cache-Control') && !headers.get('Cache-Control')) {
|
|
787
|
+
headers.set('Cache-Control', (0,next_dist_server_lib_cache_control__WEBPACK_IMPORTED_MODULE_13__.getCacheControlHeader)(cacheEntry.cacheControl));
|
|
788
|
+
}
|
|
789
|
+
await (0,next_dist_server_send_response__WEBPACK_IMPORTED_MODULE_11__/* .sendResponse */ .I)(nodeNextReq, nodeNextRes, // @ts-expect-error - Argument of type 'Buffer<ArrayBufferLike>' is not assignable to parameter of type 'BodyInit | null | undefined'.
|
|
790
|
+
new Response(cacheEntry.value.body, {
|
|
791
|
+
headers,
|
|
792
|
+
status: cacheEntry.value.status || 200
|
|
793
|
+
}));
|
|
794
|
+
return;
|
|
795
|
+
} catch (err) {
|
|
796
|
+
if (!(err instanceof next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_15__.NoFallbackError)) {
|
|
797
|
+
const silenceLog = false;
|
|
798
|
+
await routeModule.onRequestError(req, err, {
|
|
799
|
+
routerKind: 'App Router',
|
|
800
|
+
routePath: normalizedSrcPage,
|
|
801
|
+
routeType: 'route',
|
|
802
|
+
revalidateReason: (0,next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_10__.getRevalidateReason)({
|
|
803
|
+
isStaticGeneration: cacheKey !== null,
|
|
804
|
+
isOnDemandRevalidate
|
|
805
|
+
})
|
|
806
|
+
}, silenceLog, routerServerContext);
|
|
807
|
+
}
|
|
808
|
+
// rethrow so that we can handle serving error page
|
|
809
|
+
// If this is during static generation, throw the error again.
|
|
810
|
+
if (isIsr) throw err;
|
|
811
|
+
// Otherwise, send a 500 response unless the original response has
|
|
812
|
+
// already committed. In that case, preserve its status code for
|
|
813
|
+
// telemetry while still recording the failure and terminating a response
|
|
814
|
+
// that the failed pipeline left open.
|
|
815
|
+
if (res.headersSent) {
|
|
816
|
+
if (currentSpan) {
|
|
817
|
+
const error = err instanceof Error ? err : new Error('Unknown app route error');
|
|
818
|
+
currentSpan.recordException(error);
|
|
819
|
+
currentSpan.setStatus({
|
|
820
|
+
code: next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.SpanStatusCode.ERROR,
|
|
821
|
+
message: error.message
|
|
822
|
+
});
|
|
823
|
+
currentSpan.setAttribute('error.type', error.name);
|
|
824
|
+
}
|
|
825
|
+
if (!res.writableEnded && !res.destroyed) {
|
|
826
|
+
res.end();
|
|
827
|
+
}
|
|
828
|
+
} else {
|
|
829
|
+
await (0,next_dist_server_send_response__WEBPACK_IMPORTED_MODULE_11__/* .sendResponse */ .I)(nodeNextReq, nodeNextRes, new Response(null, {
|
|
830
|
+
status: 500
|
|
831
|
+
}));
|
|
832
|
+
}
|
|
833
|
+
return;
|
|
834
|
+
} finally{
|
|
835
|
+
;
|
|
836
|
+
(()=>{
|
|
837
|
+
if (!currentSpan) {
|
|
838
|
+
return;
|
|
839
|
+
}
|
|
840
|
+
let statusCode = res.statusCode;
|
|
841
|
+
currentSpan.setAttributes({
|
|
842
|
+
'http.status_code': statusCode,
|
|
843
|
+
'next.rsc': false
|
|
844
|
+
});
|
|
845
|
+
if (statusCode && statusCode >= 500) {
|
|
846
|
+
// For 5xx status codes: SHOULD be set to 'Error' span status.
|
|
847
|
+
// x-ref: https://opentelemetry.io/docs/specs/semconv/http/http-spans/#status
|
|
848
|
+
currentSpan.setStatus({
|
|
849
|
+
code: next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.SpanStatusCode.ERROR
|
|
850
|
+
});
|
|
851
|
+
// For span status 'Error', SHOULD set 'error.type' attribute.
|
|
852
|
+
currentSpan.setAttribute('error.type', statusCode.toString());
|
|
853
|
+
}
|
|
854
|
+
const rootSpanAttributes = tracer.getRootSpanAttributes();
|
|
855
|
+
// We were unable to get attributes, probably OTEL is not enabled
|
|
856
|
+
if (!rootSpanAttributes) {
|
|
857
|
+
return;
|
|
858
|
+
}
|
|
859
|
+
if (rootSpanAttributes.get('next.span_type') !== next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_9__.BaseServerSpan.handleRequest) {
|
|
860
|
+
console.warn(`Unexpected root span type '${rootSpanAttributes.get('next.span_type')}'. Please report this Next.js issue https://github.com/vercel/next.js`);
|
|
861
|
+
return;
|
|
862
|
+
}
|
|
863
|
+
const route = rootSpanAttributes.get('next.route') || normalizedSrcPage;
|
|
864
|
+
const name = `${method} ${route}`;
|
|
865
|
+
currentSpan.setAttributes({
|
|
866
|
+
'next.route': route,
|
|
867
|
+
'http.route': route,
|
|
868
|
+
'next.span_name': name
|
|
869
|
+
});
|
|
870
|
+
currentSpan.updateName(name);
|
|
871
|
+
// Propagate http.route to the request's root span if it isn't the
|
|
872
|
+
// request span (e.g. a platform-created HTTP span in adapter
|
|
873
|
+
// deployments).
|
|
874
|
+
if (requestRootSpan && requestRootSpan !== currentSpan) {
|
|
875
|
+
requestRootSpan.setAttribute('http.route', route);
|
|
876
|
+
requestRootSpan.updateName(name);
|
|
877
|
+
}
|
|
878
|
+
})();
|
|
879
|
+
}
|
|
880
|
+
};
|
|
881
|
+
// When invoked directly, the request span was started before `prepare`;
|
|
882
|
+
// record the request target as normalized by it. next-server's request span
|
|
883
|
+
// already has it.
|
|
884
|
+
if (!isWrappedByNextServer && req.url !== undefined) {
|
|
885
|
+
requestSpan == null ? void 0 : requestSpan.setAttribute('http.target', req.url);
|
|
886
|
+
}
|
|
887
|
+
await handleResponse(requestSpan);
|
|
888
|
+
}
|
|
889
|
+
|
|
890
|
+
//# sourceMappingURL=app-route.js.map
|
|
891
|
+
|
|
892
|
+
|
|
893
|
+
/***/ }),
|
|
894
|
+
|
|
895
|
+
/***/ 157075:
|
|
896
|
+
/***/ ((module) => {
|
|
897
|
+
|
|
898
|
+
module.exports = require("node:stream");
|
|
899
|
+
|
|
900
|
+
/***/ }),
|
|
901
|
+
|
|
902
|
+
/***/ 176760:
|
|
903
|
+
/***/ ((module) => {
|
|
904
|
+
|
|
905
|
+
module.exports = require("node:path");
|
|
906
|
+
|
|
907
|
+
/***/ }),
|
|
908
|
+
|
|
909
|
+
/***/ 200261:
|
|
910
|
+
/***/ ((module) => {
|
|
911
|
+
|
|
912
|
+
module.exports = require("next/dist/shared/lib/router/utils/app-paths");
|
|
913
|
+
|
|
914
|
+
/***/ }),
|
|
915
|
+
|
|
916
|
+
/***/ 253638:
|
|
917
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
918
|
+
|
|
919
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
920
|
+
/* harmony export */ p: () => (/* binding */ parseJsonSafe)
|
|
921
|
+
/* harmony export */ });
|
|
922
|
+
// JSON.parse with a fallback value when the input is malformed (or empty).
|
|
923
|
+
// Used everywhere we read responses from external APIs — they're contractually
|
|
924
|
+
// JSON but a transient 502 / proxy interstitial occasionally returns HTML.
|
|
925
|
+
function parseJsonSafe(text, fallback) {
|
|
926
|
+
try {
|
|
927
|
+
return JSON.parse(text);
|
|
928
|
+
} catch {
|
|
929
|
+
return fallback;
|
|
930
|
+
}
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
|
|
934
|
+
/***/ }),
|
|
935
|
+
|
|
936
|
+
/***/ 257975:
|
|
937
|
+
/***/ ((module) => {
|
|
938
|
+
|
|
939
|
+
module.exports = require("node:util");
|
|
940
|
+
|
|
941
|
+
/***/ }),
|
|
942
|
+
|
|
943
|
+
/***/ 309956:
|
|
944
|
+
/***/ ((module) => {
|
|
945
|
+
|
|
946
|
+
module.exports = require("undici");
|
|
947
|
+
|
|
948
|
+
/***/ }),
|
|
949
|
+
|
|
950
|
+
/***/ 328354:
|
|
951
|
+
/***/ ((module) => {
|
|
952
|
+
|
|
953
|
+
module.exports = require("util");
|
|
954
|
+
|
|
955
|
+
/***/ }),
|
|
956
|
+
|
|
957
|
+
/***/ 333873:
|
|
958
|
+
/***/ ((module) => {
|
|
959
|
+
|
|
960
|
+
module.exports = require("path");
|
|
961
|
+
|
|
962
|
+
/***/ }),
|
|
963
|
+
|
|
964
|
+
/***/ 344708:
|
|
965
|
+
/***/ ((module) => {
|
|
966
|
+
|
|
967
|
+
module.exports = require("node:https");
|
|
968
|
+
|
|
969
|
+
/***/ }),
|
|
970
|
+
|
|
971
|
+
/***/ 379551:
|
|
972
|
+
/***/ ((module) => {
|
|
973
|
+
|
|
974
|
+
module.exports = require("url");
|
|
975
|
+
|
|
976
|
+
/***/ }),
|
|
977
|
+
|
|
978
|
+
/***/ 380481:
|
|
979
|
+
/***/ ((module) => {
|
|
980
|
+
|
|
981
|
+
module.exports = require("node:readline");
|
|
982
|
+
|
|
983
|
+
/***/ }),
|
|
984
|
+
|
|
985
|
+
/***/ 399253:
|
|
986
|
+
/***/ ((module) => {
|
|
987
|
+
|
|
988
|
+
module.exports = import("@huggingface/transformers");;
|
|
989
|
+
|
|
990
|
+
/***/ }),
|
|
991
|
+
|
|
992
|
+
/***/ 419121:
|
|
993
|
+
/***/ ((module) => {
|
|
994
|
+
|
|
995
|
+
module.exports = require("next/dist/server/app-render/action-async-storage.external.js");
|
|
996
|
+
|
|
997
|
+
/***/ }),
|
|
998
|
+
|
|
999
|
+
/***/ 455511:
|
|
1000
|
+
/***/ ((module) => {
|
|
1001
|
+
|
|
1002
|
+
module.exports = require("crypto");
|
|
1003
|
+
|
|
1004
|
+
/***/ }),
|
|
1005
|
+
|
|
1006
|
+
/***/ 489793:
|
|
1007
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1008
|
+
|
|
1009
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1010
|
+
/* harmony export */ RX: () => (/* binding */ DEFAULT_HARNESS_ID),
|
|
1011
|
+
/* harmony export */ YX: () => (/* binding */ CUSTOM_HARNESS_ID_PREFIX),
|
|
1012
|
+
/* harmony export */ cX: () => (/* binding */ HARNESS_SECTION_KEYS),
|
|
1013
|
+
/* harmony export */ vf: () => (/* binding */ isBuiltinHarnessId)
|
|
1014
|
+
/* harmony export */ });
|
|
1015
|
+
/* unused harmony exports BUILTIN_HARNESS_ID_PREFIX, SECTION_DISPLAY */
|
|
1016
|
+
const HARNESS_SECTION_KEYS = [
|
|
1017
|
+
"capabilities",
|
|
1018
|
+
"plan_first",
|
|
1019
|
+
"presentation",
|
|
1020
|
+
"citation",
|
|
1021
|
+
"self_config"
|
|
1022
|
+
];
|
|
1023
|
+
const BUILTIN_HARNESS_ID_PREFIX = "builtin:";
|
|
1024
|
+
const CUSTOM_HARNESS_ID_PREFIX = "custom:";
|
|
1025
|
+
const DEFAULT_HARNESS_ID = "builtin:default";
|
|
1026
|
+
function isBuiltinHarnessId(id) {
|
|
1027
|
+
return id.startsWith(BUILTIN_HARNESS_ID_PREFIX);
|
|
1028
|
+
}
|
|
1029
|
+
const SECTION_DISPLAY = {
|
|
1030
|
+
capabilities: {
|
|
1031
|
+
title: "Host capabilities",
|
|
1032
|
+
hint: "What the surrounding app can do — notifications, scheduling, watchers, document indexing."
|
|
1033
|
+
},
|
|
1034
|
+
plan_first: {
|
|
1035
|
+
title: "Plan-first acknowledgment",
|
|
1036
|
+
hint: "Acknowledge-before-acting rules, action principle, anti-fabrication, follow-through."
|
|
1037
|
+
},
|
|
1038
|
+
presentation: {
|
|
1039
|
+
title: "Output formatting",
|
|
1040
|
+
hint: "Markdown / HTML extras, code fences, images, maps, citation refs block."
|
|
1041
|
+
},
|
|
1042
|
+
citation: {
|
|
1043
|
+
title: "Source attribution",
|
|
1044
|
+
hint: "Anti-hallucination rules: every substantive claim must be tagged with its source."
|
|
1045
|
+
},
|
|
1046
|
+
self_config: {
|
|
1047
|
+
title: "Self-configuration proposals",
|
|
1048
|
+
hint: "Lets the agent propose config changes (install MCP, edit agent, set keys) for user approval."
|
|
1049
|
+
}
|
|
1050
|
+
};
|
|
1051
|
+
|
|
1052
|
+
|
|
1053
|
+
/***/ }),
|
|
1054
|
+
|
|
1055
|
+
/***/ 524318:
|
|
1056
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1057
|
+
|
|
606
1058
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
607
1059
|
/* harmony export */ u_: () => (/* binding */ DEFAULT_HOT_TURN_LIMIT)
|
|
608
1060
|
/* harmony export */ });
|
|
@@ -855,604 +1307,152 @@ function mcpServerToResponse(r) {
|
|
|
855
1307
|
}
|
|
856
1308
|
}
|
|
857
1309
|
/**
|
|
858
|
-
* Resolve the bar's 100% baseline. Per-row `context_window_tokens`
|
|
859
|
-
* (snapshotted at run time) wins so the bar matches the cap the agent
|
|
860
|
-
* actually applied; legacy rows fall back to the model-config value;
|
|
861
|
-
* unconfigured agents fall back to the default. Centralised so the
|
|
862
|
-
* route and the UI share the same precedence rule.
|
|
863
|
-
*/ function resolveContextWindowTokens(modelConfiguredTokens, defaultTokens) {
|
|
864
|
-
if (typeof modelConfiguredTokens === "number" && modelConfiguredTokens > 0) {
|
|
865
|
-
return modelConfiguredTokens;
|
|
866
|
-
}
|
|
867
|
-
return defaultTokens;
|
|
868
|
-
}
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
/***/ }),
|
|
872
|
-
|
|
873
|
-
/***/ 710846:
|
|
874
|
-
/***/ ((module) => {
|
|
875
|
-
|
|
876
|
-
module.exports = require("next/dist/compiled/next-server/app-page.runtime.prod.js");
|
|
877
|
-
|
|
878
|
-
/***/ }),
|
|
879
|
-
|
|
880
|
-
/***/ 731421:
|
|
881
|
-
/***/ ((module) => {
|
|
882
|
-
|
|
883
|
-
module.exports = require("node:child_process");
|
|
884
|
-
|
|
885
|
-
/***/ }),
|
|
886
|
-
|
|
887
|
-
/***/ 739947:
|
|
888
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
889
|
-
|
|
890
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
891
|
-
/* harmony export */ Bm: () => (/* binding */ cachedJson),
|
|
892
|
-
/* harmony export */ HN: () => (/* binding */ notFoundResponse),
|
|
893
|
-
/* harmony export */ Jb: () => (/* binding */ validateBody),
|
|
894
|
-
/* harmony export */ K2: () => (/* binding */ createdResponse),
|
|
895
|
-
/* harmony export */ Ng: () => (/* binding */ noStoreJson),
|
|
896
|
-
/* harmony export */ yj: () => (/* binding */ errorResponse)
|
|
897
|
-
/* harmony export */ });
|
|
898
|
-
/* harmony import */ var next_server__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(945592);
|
|
899
|
-
// Shared HTTP response builders for app/api/v1/** route handlers.
|
|
900
|
-
//
|
|
901
|
-
// Goal: every error/success payload across the v1 surface has the same
|
|
902
|
-
// shape. Before this lived inline, response bodies drifted —
|
|
903
|
-
// `{error: "x"}` vs `{message: "x"}`, 400 vs 422 for the same condition,
|
|
904
|
-
// some routes returned Zod's raw issue array, others stringified it.
|
|
905
|
-
|
|
906
|
-
function errorResponse(message, status = 400) {
|
|
907
|
-
return next_server__WEBPACK_IMPORTED_MODULE_0__.NextResponse.json({
|
|
908
|
-
error: message
|
|
909
|
-
}, {
|
|
910
|
-
status
|
|
911
|
-
});
|
|
912
|
-
}
|
|
913
|
-
function notFoundResponse(message = "Not found") {
|
|
914
|
-
return errorResponse(message, 404);
|
|
915
|
-
}
|
|
916
|
-
function createdResponse(data) {
|
|
917
|
-
return next_server__WEBPACK_IMPORTED_MODULE_0__.NextResponse.json(data, {
|
|
918
|
-
status: 201
|
|
919
|
-
});
|
|
920
|
-
}
|
|
921
|
-
// Wrap a 200 JSON response with a private Cache-Control header. Use on safe
|
|
922
|
-
// GET endpoints that serve user-scoped data the client refetches often (panel
|
|
923
|
-
// mounts, navigation back/forward) but mutates rarely. The TTL is short
|
|
924
|
-
// enough that explicit mutations — which patch the client-side ApiClient
|
|
925
|
-
// cache in place — stay observably consistent without an extra roundtrip.
|
|
926
|
-
//
|
|
927
|
-
// swrSeconds (optional): stale-while-revalidate window. When set, the browser
|
|
928
|
-
// serves the cached response immediately and refreshes in the background,
|
|
929
|
-
// making navigation feel instant. Use for data that can tolerate brief
|
|
930
|
-
// staleness (tool list, agent configs, model list). Omit for real-time data
|
|
931
|
-
// (dashboard metrics, credential state).
|
|
932
|
-
function cachedJson(data, maxAgeSeconds, swrSeconds) {
|
|
933
|
-
const swr = swrSeconds ? `, stale-while-revalidate=${swrSeconds}` : "";
|
|
934
|
-
return next_server__WEBPACK_IMPORTED_MODULE_0__.NextResponse.json(data, {
|
|
935
|
-
headers: {
|
|
936
|
-
"Cache-Control": `private, max-age=${maxAgeSeconds}${swr}`
|
|
937
|
-
}
|
|
938
|
-
});
|
|
939
|
-
}
|
|
940
|
-
// Use for endpoints whose response contains live state that must never be
|
|
941
|
-
// served from cache — credentials, connection status, live config values.
|
|
942
|
-
function noStoreJson(data) {
|
|
943
|
-
return next_server__WEBPACK_IMPORTED_MODULE_0__.NextResponse.json(data, {
|
|
944
|
-
headers: {
|
|
945
|
-
"Cache-Control": "no-store"
|
|
946
|
-
}
|
|
947
|
-
});
|
|
948
|
-
}
|
|
949
|
-
// Validate a JSON request body against a zod schema.
|
|
950
|
-
// Returns either the parsed data or a 400 NextResponse explaining the issue.
|
|
951
|
-
// Caller pattern:
|
|
952
|
-
// const parsed = await validateBody(req, Schema);
|
|
953
|
-
// if (parsed instanceof NextResponse) return parsed;
|
|
954
|
-
// // use parsed.field
|
|
955
|
-
async function validateBody(req, schema) {
|
|
956
|
-
let raw;
|
|
957
|
-
try {
|
|
958
|
-
raw = await req.json();
|
|
959
|
-
} catch {
|
|
960
|
-
return errorResponse("Request body must be valid JSON", 400);
|
|
961
|
-
}
|
|
962
|
-
const parsed = schema.safeParse(raw);
|
|
963
|
-
if (!parsed.success) {
|
|
964
|
-
return errorResponse(parsed.error.issues[0]?.message ?? "invalid body", 400);
|
|
965
|
-
}
|
|
966
|
-
return parsed.data;
|
|
967
|
-
}
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
/***/ }),
|
|
971
|
-
|
|
972
|
-
/***/ 744870:
|
|
973
|
-
/***/ ((module) => {
|
|
974
|
-
|
|
975
|
-
module.exports = require("next/dist/compiled/next-server/app-route.runtime.prod.js");
|
|
976
|
-
|
|
977
|
-
/***/ }),
|
|
978
|
-
|
|
979
|
-
/***/ 775919:
|
|
980
|
-
/***/ ((module) => {
|
|
981
|
-
|
|
982
|
-
module.exports = require("node:worker_threads");
|
|
983
|
-
|
|
984
|
-
/***/ }),
|
|
985
|
-
|
|
986
|
-
/***/ 777030:
|
|
987
|
-
/***/ ((module) => {
|
|
988
|
-
|
|
989
|
-
module.exports = require("node:net");
|
|
990
|
-
|
|
991
|
-
/***/ }),
|
|
992
|
-
|
|
993
|
-
/***/ 781630:
|
|
994
|
-
/***/ ((module) => {
|
|
995
|
-
|
|
996
|
-
module.exports = require("http");
|
|
997
|
-
|
|
998
|
-
/***/ }),
|
|
999
|
-
|
|
1000
|
-
/***/ 848161:
|
|
1001
|
-
/***/ ((module) => {
|
|
1002
|
-
|
|
1003
|
-
module.exports = require("node:os");
|
|
1004
|
-
|
|
1005
|
-
/***/ }),
|
|
1006
|
-
|
|
1007
|
-
/***/ 867973:
|
|
1008
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1009
|
-
|
|
1010
|
-
__webpack_require__.r(__webpack_exports__);
|
|
1011
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1012
|
-
/* harmony export */ handler: () => (/* binding */ handler),
|
|
1013
|
-
/* harmony export */ patchFetch: () => (/* binding */ patchFetch),
|
|
1014
|
-
/* harmony export */ routeModule: () => (/* binding */ routeModule),
|
|
1015
|
-
/* harmony export */ serverHooks: () => (/* binding */ serverHooks),
|
|
1016
|
-
/* harmony export */ workAsyncStorage: () => (/* binding */ workAsyncStorage),
|
|
1017
|
-
/* harmony export */ workUnitAsyncStorage: () => (/* binding */ workUnitAsyncStorage)
|
|
1018
|
-
/* harmony export */ });
|
|
1019
|
-
/* harmony import */ var next_dist_server_route_modules_app_route_module_compiled__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(319225);
|
|
1020
|
-
/* harmony import */ var next_dist_server_route_modules_app_route_module_compiled__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_route_modules_app_route_module_compiled__WEBPACK_IMPORTED_MODULE_0__);
|
|
1021
|
-
/* harmony import */ var next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(684006);
|
|
1022
|
-
/* harmony import */ var next_dist_server_lib_patch_fetch__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8317);
|
|
1023
|
-
/* harmony import */ var next_dist_server_lib_patch_fetch__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_lib_patch_fetch__WEBPACK_IMPORTED_MODULE_2__);
|
|
1024
|
-
/* harmony import */ var next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(799373);
|
|
1025
|
-
/* harmony import */ var next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__);
|
|
1026
|
-
/* harmony import */ var next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(434775);
|
|
1027
|
-
/* harmony import */ var next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__);
|
|
1028
|
-
/* harmony import */ var next_dist_server_app_render_manifests_singleton__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(524235);
|
|
1029
|
-
/* harmony import */ var next_dist_server_app_render_manifests_singleton__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_app_render_manifests_singleton__WEBPACK_IMPORTED_MODULE_5__);
|
|
1030
|
-
/* harmony import */ var next_dist_shared_lib_router_utils_app_paths__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(200261);
|
|
1031
|
-
/* harmony import */ var next_dist_shared_lib_router_utils_app_paths__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(next_dist_shared_lib_router_utils_app_paths__WEBPACK_IMPORTED_MODULE_6__);
|
|
1032
|
-
/* harmony import */ var next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(754365);
|
|
1033
|
-
/* harmony import */ var next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_7__);
|
|
1034
|
-
/* harmony import */ var next_dist_server_web_spec_extension_adapters_next_request__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(590771);
|
|
1035
|
-
/* harmony import */ var next_dist_server_web_spec_extension_adapters_next_request__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_web_spec_extension_adapters_next_request__WEBPACK_IMPORTED_MODULE_8__);
|
|
1036
|
-
/* harmony import */ var next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(473461);
|
|
1037
|
-
/* harmony import */ var next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_9__);
|
|
1038
|
-
/* harmony import */ var next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(767798);
|
|
1039
|
-
/* harmony import */ var next_dist_server_send_response__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(192280);
|
|
1040
|
-
/* harmony import */ var next_dist_server_web_utils__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(662018);
|
|
1041
|
-
/* harmony import */ var next_dist_server_web_utils__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_web_utils__WEBPACK_IMPORTED_MODULE_12__);
|
|
1042
|
-
/* harmony import */ var next_dist_server_lib_cache_control__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(445696);
|
|
1043
|
-
/* harmony import */ var next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(347929);
|
|
1044
|
-
/* harmony import */ var next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__);
|
|
1045
|
-
/* harmony import */ var next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(986439);
|
|
1046
|
-
/* harmony import */ var next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_15__);
|
|
1047
|
-
/* harmony import */ var next_dist_server_lib_route_cache_key__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(710246);
|
|
1048
|
-
/* harmony import */ var next_dist_server_lib_route_cache_key__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_lib_route_cache_key__WEBPACK_IMPORTED_MODULE_16__);
|
|
1049
|
-
/* harmony import */ var next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(137527);
|
|
1050
|
-
/* harmony import */ var next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__);
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1310
|
+
* Resolve the bar's 100% baseline. Per-row `context_window_tokens`
|
|
1311
|
+
* (snapshotted at run time) wins so the bar matches the cap the agent
|
|
1312
|
+
* actually applied; legacy rows fall back to the model-config value;
|
|
1313
|
+
* unconfigured agents fall back to the default. Centralised so the
|
|
1314
|
+
* route and the UI share the same precedence rule.
|
|
1315
|
+
*/ function resolveContextWindowTokens(modelConfiguredTokens, defaultTokens) {
|
|
1316
|
+
if (typeof modelConfiguredTokens === "number" && modelConfiguredTokens > 0) {
|
|
1317
|
+
return modelConfiguredTokens;
|
|
1318
|
+
}
|
|
1319
|
+
return defaultTokens;
|
|
1320
|
+
}
|
|
1062
1321
|
|
|
1063
1322
|
|
|
1323
|
+
/***/ }),
|
|
1064
1324
|
|
|
1325
|
+
/***/ 710846:
|
|
1326
|
+
/***/ ((module) => {
|
|
1065
1327
|
|
|
1328
|
+
module.exports = require("next/dist/compiled/next-server/app-page.runtime.prod.js");
|
|
1066
1329
|
|
|
1330
|
+
/***/ }),
|
|
1067
1331
|
|
|
1332
|
+
/***/ 731421:
|
|
1333
|
+
/***/ ((module) => {
|
|
1068
1334
|
|
|
1069
|
-
|
|
1070
|
-
// module.
|
|
1071
|
-
const nextConfigOutput = "standalone"
|
|
1072
|
-
const routeModule = new next_dist_server_route_modules_app_route_module_compiled__WEBPACK_IMPORTED_MODULE_0__.AppRouteRouteModule({
|
|
1073
|
-
definition: {
|
|
1074
|
-
kind: next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__.RouteKind.APP_ROUTE,
|
|
1075
|
-
page: "/api/v1/agents/[id]/duplicate/route",
|
|
1076
|
-
pathname: "/api/v1/agents/[id]/duplicate",
|
|
1077
|
-
filename: "route",
|
|
1078
|
-
bundlePath: "app/api/v1/agents/[id]/duplicate/route"
|
|
1079
|
-
},
|
|
1080
|
-
distDir: ".next" || 0,
|
|
1081
|
-
relativeProjectDir: false || '',
|
|
1082
|
-
resolvedPagePath: "/home/runner/work/jarela/jarela/app/api/v1/agents/[id]/duplicate/route.ts",
|
|
1083
|
-
nextConfigOutput,
|
|
1084
|
-
// The lazy require factory ensures that:
|
|
1085
|
-
// - In dev: devRequestTimingInternalsEnd is set before userland executes,
|
|
1086
|
-
// correctly attributing module load time to application-code rather than
|
|
1087
|
-
// framework internals.
|
|
1088
|
-
// - In all modes: async modules (route files with top-level await) are
|
|
1089
|
-
// handled correctly — require() returns a Promise for such modules, which
|
|
1090
|
-
// ensureUserland() awaits before the first request is handled.
|
|
1091
|
-
userland: ()=>__webpack_require__(616137),
|
|
1092
|
-
// In Turbopack dev mode, also provide a synchronous per-request getter so
|
|
1093
|
-
// server HMR updates are picked up without re-executing the entry chunk.
|
|
1094
|
-
// Using require() (synchronous) avoids adding async overhead that would be
|
|
1095
|
-
// incorrectly attributed to application-code time in devRequestTiming.
|
|
1096
|
-
... false ? 0 : {}
|
|
1097
|
-
});
|
|
1098
|
-
// Pull out the exports that we need to expose from the module. This should
|
|
1099
|
-
// be eliminated when we've moved the other routes to the new format. These
|
|
1100
|
-
// are used to hook into the route.
|
|
1101
|
-
const { workAsyncStorage, workUnitAsyncStorage, serverHooks } = routeModule;
|
|
1102
|
-
function patchFetch() {
|
|
1103
|
-
return (0,next_dist_server_lib_patch_fetch__WEBPACK_IMPORTED_MODULE_2__.patchFetch)({
|
|
1104
|
-
workAsyncStorage,
|
|
1105
|
-
workUnitAsyncStorage
|
|
1106
|
-
});
|
|
1107
|
-
}
|
|
1335
|
+
module.exports = require("node:child_process");
|
|
1108
1336
|
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
}
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
res.end('This page could not be found');
|
|
1162
|
-
}
|
|
1163
|
-
return null;
|
|
1164
|
-
};
|
|
1165
|
-
if (isIsr && !isDraftMode) {
|
|
1166
|
-
const prerenderInfo = prerenderManifest.dynamicRoutes[normalizedSrcPage];
|
|
1167
|
-
if (prerenderInfo) {
|
|
1168
|
-
if (prerenderInfo.fallback === false && !isPrerendered) {
|
|
1169
|
-
if (nextConfig.adapterPath) {
|
|
1170
|
-
return await render404();
|
|
1171
|
-
}
|
|
1172
|
-
throw new next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_15__.NoFallbackError();
|
|
1173
|
-
}
|
|
1174
|
-
}
|
|
1175
|
-
}
|
|
1176
|
-
let cacheKey = null;
|
|
1177
|
-
if (isIsr && !routeModule.isDev && !isDraftMode) {
|
|
1178
|
-
cacheKey = resolvedPathname;
|
|
1179
|
-
// ensure /index and / is normalized to one key
|
|
1180
|
-
cacheKey = cacheKey === '/index' ? '/' : cacheKey;
|
|
1181
|
-
}
|
|
1182
|
-
// Before rendering (which initializes component tree modules), we have to
|
|
1183
|
-
// set the reference manifests to our global store so Server Action's
|
|
1184
|
-
// encryption util can access to them at the top level of the page module.
|
|
1185
|
-
if (serverActionsManifest && clientReferenceManifest) {
|
|
1186
|
-
(0,next_dist_server_app_render_manifests_singleton__WEBPACK_IMPORTED_MODULE_5__.setManifestsSingleton)({
|
|
1187
|
-
page: srcPage,
|
|
1188
|
-
clientReferenceManifest,
|
|
1189
|
-
serverActionsManifest
|
|
1190
|
-
});
|
|
1191
|
-
}
|
|
1192
|
-
const method = req.method || 'GET';
|
|
1193
|
-
const tracer = (0,next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.getTracer)();
|
|
1194
|
-
const isWrappedByNextServer = Boolean(routerServerContext == null ? void 0 : routerServerContext.isWrappedByNextServer);
|
|
1195
|
-
const isMinimalMode = Boolean((0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.getRequestMeta)(req, 'minimalMode'));
|
|
1196
|
-
const incrementalCache = (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.getRequestMeta)(req, 'incrementalCache') || await routeModule.getIncrementalCache(req, nextConfig, previewProps, prerenderManifest, isMinimalMode);
|
|
1197
|
-
incrementalCache == null ? void 0 : incrementalCache.resetRequestCache();
|
|
1198
|
-
globalThis.__incrementalCache = incrementalCache;
|
|
1199
|
-
const context = {
|
|
1200
|
-
params,
|
|
1201
|
-
previewProps,
|
|
1202
|
-
renderOpts: {
|
|
1203
|
-
experimental: {
|
|
1204
|
-
authInterrupts: Boolean(nextConfig.experimental.authInterrupts),
|
|
1205
|
-
useCacheTimeout: nextConfig.experimental.useCacheTimeout,
|
|
1206
|
-
durableUseCacheEntries: Boolean(nextConfig.experimental.durableUseCacheEntries)
|
|
1207
|
-
},
|
|
1208
|
-
cacheComponents: Boolean(nextConfig.cacheComponents),
|
|
1209
|
-
validationLevel: nextConfig.experimental.instantInsights.validationLevel,
|
|
1210
|
-
isDraftMode,
|
|
1211
|
-
incrementalCache,
|
|
1212
|
-
hmrRefreshHash: (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.getRequestMeta)(req, 'hmrRefreshHash'),
|
|
1213
|
-
cacheLifeProfiles: nextConfig.cacheLife,
|
|
1214
|
-
staticPageGenerationTimeout: nextConfig.staticPageGenerationTimeout,
|
|
1215
|
-
waitUntil: ctx.waitUntil,
|
|
1216
|
-
onClose: (cb)=>{
|
|
1217
|
-
res.on('close', cb);
|
|
1218
|
-
},
|
|
1219
|
-
onAfterTaskError: undefined
|
|
1220
|
-
},
|
|
1221
|
-
sharedContext: {
|
|
1222
|
-
buildId,
|
|
1223
|
-
deploymentId
|
|
1224
|
-
}
|
|
1225
|
-
};
|
|
1226
|
-
const nodeNextReq = new next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_7__.NodeNextRequest(req);
|
|
1227
|
-
const nodeNextRes = new next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_7__.NodeNextResponse(res);
|
|
1228
|
-
const nextReq = next_dist_server_web_spec_extension_adapters_next_request__WEBPACK_IMPORTED_MODULE_8__.NextRequestAdapter.fromNodeNextRequest(nodeNextReq, (0,next_dist_server_web_spec_extension_adapters_next_request__WEBPACK_IMPORTED_MODULE_8__.signalFromNodeResponse)(res));
|
|
1229
|
-
const responseGenerator = async ({ previousCacheEntry })=>{
|
|
1230
|
-
try {
|
|
1231
|
-
if (!isMinimalMode && isOnDemandRevalidate && revalidateOnlyGenerated && !previousCacheEntry) {
|
|
1232
|
-
res.statusCode = 404;
|
|
1233
|
-
// on-demand revalidate always sets this header
|
|
1234
|
-
res.setHeader('x-nextjs-cache', 'REVALIDATED');
|
|
1235
|
-
res.end('This page could not be found');
|
|
1236
|
-
return null;
|
|
1237
|
-
}
|
|
1238
|
-
const response = cacheKey === null ? await routeModule.handle(nextReq, context) : await routeModule.prerender(nextReq, context);
|
|
1239
|
-
req.fetchMetrics = context.renderOpts.fetchMetrics;
|
|
1240
|
-
let pendingWaitUntil = context.renderOpts.pendingWaitUntil;
|
|
1241
|
-
// Attempt using provided waitUntil if available
|
|
1242
|
-
// if it's not we fallback to sendResponse's handling
|
|
1243
|
-
if (pendingWaitUntil) {
|
|
1244
|
-
if (ctx.waitUntil) {
|
|
1245
|
-
ctx.waitUntil(pendingWaitUntil);
|
|
1246
|
-
pendingWaitUntil = undefined;
|
|
1247
|
-
}
|
|
1248
|
-
}
|
|
1249
|
-
const cacheTags = context.renderOpts.collectedTags;
|
|
1250
|
-
// If the request is for a static response, we can cache it so long
|
|
1251
|
-
// as it's not edge.
|
|
1252
|
-
if (isIsr) {
|
|
1253
|
-
const blob = await response.blob();
|
|
1254
|
-
// Copy the headers from the response.
|
|
1255
|
-
const headers = (0,next_dist_server_web_utils__WEBPACK_IMPORTED_MODULE_12__.toNodeOutgoingHttpHeaders)(response.headers);
|
|
1256
|
-
if (cacheTags) {
|
|
1257
|
-
headers[next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__.NEXT_CACHE_TAGS_HEADER] = cacheTags;
|
|
1258
|
-
}
|
|
1259
|
-
if (!headers['content-type'] && blob.type) {
|
|
1260
|
-
headers['content-type'] = blob.type;
|
|
1261
|
-
}
|
|
1262
|
-
const revalidate = typeof context.renderOpts.collectedRevalidate === 'undefined' || context.renderOpts.collectedRevalidate >= next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__.INFINITE_CACHE ? false : context.renderOpts.collectedRevalidate;
|
|
1263
|
-
const expire = typeof context.renderOpts.collectedExpire === 'undefined' || context.renderOpts.collectedExpire >= next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__.INFINITE_CACHE ? // route has a numeric `revalidate` but didn't declare an
|
|
1264
|
-
// explicit `expire` (e.g. via `cacheLife`). This mirrors the
|
|
1265
|
-
// build-time fallback in `build/index.ts` so cache entries
|
|
1266
|
-
// and the response Cache-Control header agree on the route's
|
|
1267
|
-
// effective expire. Routes that opt out of revalidation
|
|
1268
|
-
// (`revalidate: false`) or that are dynamic (`revalidate: 0`)
|
|
1269
|
-
// keep `expire: undefined`.
|
|
1270
|
-
revalidate !== false && revalidate > 0 ? nextConfig.expireTime : undefined : context.renderOpts.collectedExpire;
|
|
1271
|
-
// Create the cache entry for the response.
|
|
1272
|
-
const cacheEntry = {
|
|
1273
|
-
value: {
|
|
1274
|
-
kind: next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__.CachedRouteKind.APP_ROUTE,
|
|
1275
|
-
status: response.status,
|
|
1276
|
-
body: Buffer.from(await blob.arrayBuffer()),
|
|
1277
|
-
headers
|
|
1278
|
-
},
|
|
1279
|
-
cacheControl: {
|
|
1280
|
-
revalidate,
|
|
1281
|
-
expire
|
|
1282
|
-
}
|
|
1283
|
-
};
|
|
1284
|
-
return cacheEntry;
|
|
1285
|
-
} else {
|
|
1286
|
-
// send response without caching if not ISR
|
|
1287
|
-
await (0,next_dist_server_send_response__WEBPACK_IMPORTED_MODULE_11__/* .sendResponse */ .I)(nodeNextReq, nodeNextRes, response, pendingWaitUntil);
|
|
1288
|
-
return null;
|
|
1289
|
-
}
|
|
1290
|
-
} catch (err) {
|
|
1291
|
-
// if this is a background revalidate we need to report
|
|
1292
|
-
// the request error here as it won't be bubbled
|
|
1293
|
-
if (previousCacheEntry == null ? void 0 : previousCacheEntry.isStale) {
|
|
1294
|
-
const silenceLog = false;
|
|
1295
|
-
await routeModule.onRequestError(req, err, {
|
|
1296
|
-
routerKind: 'App Router',
|
|
1297
|
-
routePath: srcPage,
|
|
1298
|
-
routeType: 'route',
|
|
1299
|
-
revalidateReason: (0,next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_10__.getRevalidateReason)({
|
|
1300
|
-
isStaticGeneration: cacheKey !== null,
|
|
1301
|
-
isOnDemandRevalidate
|
|
1302
|
-
})
|
|
1303
|
-
}, silenceLog, routerServerContext);
|
|
1304
|
-
}
|
|
1305
|
-
throw err;
|
|
1337
|
+
/***/ }),
|
|
1338
|
+
|
|
1339
|
+
/***/ 739947:
|
|
1340
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1341
|
+
|
|
1342
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1343
|
+
/* harmony export */ Bm: () => (/* binding */ cachedJson),
|
|
1344
|
+
/* harmony export */ HN: () => (/* binding */ notFoundResponse),
|
|
1345
|
+
/* harmony export */ Jb: () => (/* binding */ validateBody),
|
|
1346
|
+
/* harmony export */ K2: () => (/* binding */ createdResponse),
|
|
1347
|
+
/* harmony export */ Ng: () => (/* binding */ noStoreJson),
|
|
1348
|
+
/* harmony export */ yj: () => (/* binding */ errorResponse)
|
|
1349
|
+
/* harmony export */ });
|
|
1350
|
+
/* harmony import */ var next_server__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(945592);
|
|
1351
|
+
// Shared HTTP response builders for app/api/v1/** route handlers.
|
|
1352
|
+
//
|
|
1353
|
+
// Goal: every error/success payload across the v1 surface has the same
|
|
1354
|
+
// shape. Before this lived inline, response bodies drifted —
|
|
1355
|
+
// `{error: "x"}` vs `{message: "x"}`, 400 vs 422 for the same condition,
|
|
1356
|
+
// some routes returned Zod's raw issue array, others stringified it.
|
|
1357
|
+
|
|
1358
|
+
function errorResponse(message, status = 400) {
|
|
1359
|
+
return next_server__WEBPACK_IMPORTED_MODULE_0__.NextResponse.json({
|
|
1360
|
+
error: message
|
|
1361
|
+
}, {
|
|
1362
|
+
status
|
|
1363
|
+
});
|
|
1364
|
+
}
|
|
1365
|
+
function notFoundResponse(message = "Not found") {
|
|
1366
|
+
return errorResponse(message, 404);
|
|
1367
|
+
}
|
|
1368
|
+
function createdResponse(data) {
|
|
1369
|
+
return next_server__WEBPACK_IMPORTED_MODULE_0__.NextResponse.json(data, {
|
|
1370
|
+
status: 201
|
|
1371
|
+
});
|
|
1372
|
+
}
|
|
1373
|
+
// Wrap a 200 JSON response with a private Cache-Control header. Use on safe
|
|
1374
|
+
// GET endpoints that serve user-scoped data the client refetches often (panel
|
|
1375
|
+
// mounts, navigation back/forward) but mutates rarely. The TTL is short
|
|
1376
|
+
// enough that explicit mutations — which patch the client-side ApiClient
|
|
1377
|
+
// cache in place — stay observably consistent without an extra roundtrip.
|
|
1378
|
+
//
|
|
1379
|
+
// swrSeconds (optional): stale-while-revalidate window. When set, the browser
|
|
1380
|
+
// serves the cached response immediately and refreshes in the background,
|
|
1381
|
+
// making navigation feel instant. Use for data that can tolerate brief
|
|
1382
|
+
// staleness (tool list, agent configs, model list). Omit for real-time data
|
|
1383
|
+
// (dashboard metrics, credential state).
|
|
1384
|
+
function cachedJson(data, maxAgeSeconds, swrSeconds) {
|
|
1385
|
+
const swr = swrSeconds ? `, stale-while-revalidate=${swrSeconds}` : "";
|
|
1386
|
+
return next_server__WEBPACK_IMPORTED_MODULE_0__.NextResponse.json(data, {
|
|
1387
|
+
headers: {
|
|
1388
|
+
"Cache-Control": `private, max-age=${maxAgeSeconds}${swr}`
|
|
1306
1389
|
}
|
|
1307
|
-
};
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
routeKind: next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__.RouteKind.APP_ROUTE,
|
|
1316
|
-
isFallback: false,
|
|
1317
|
-
previewProps,
|
|
1318
|
-
prerenderManifest,
|
|
1319
|
-
isRoutePPREnabled: false,
|
|
1320
|
-
isOnDemandRevalidate,
|
|
1321
|
-
revalidateOnlyGenerated,
|
|
1322
|
-
responseGenerator,
|
|
1323
|
-
waitUntil: ctx.waitUntil,
|
|
1324
|
-
isMinimalMode
|
|
1325
|
-
});
|
|
1326
|
-
if (cacheEntry !== null && 'error' in cacheEntry) {
|
|
1327
|
-
throw cacheEntry.error;
|
|
1328
|
-
}
|
|
1329
|
-
// we don't create a cacheEntry for ISR
|
|
1330
|
-
if (!isIsr) {
|
|
1331
|
-
return;
|
|
1332
|
-
}
|
|
1333
|
-
if ((cacheEntry == null ? void 0 : (_cacheEntry_value = cacheEntry.value) == null ? void 0 : _cacheEntry_value.kind) !== next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__.CachedRouteKind.APP_ROUTE) {
|
|
1334
|
-
var _cacheEntry_value1;
|
|
1335
|
-
throw new Error(`Invariant: app-route received invalid cache entry ${cacheEntry == null ? void 0 : (_cacheEntry_value1 = cacheEntry.value) == null ? void 0 : _cacheEntry_value1.kind}`);
|
|
1336
|
-
}
|
|
1337
|
-
if (!isMinimalMode) {
|
|
1338
|
-
res.setHeader('x-nextjs-cache', isOnDemandRevalidate ? 'REVALIDATED' : cacheEntry.isMiss ? 'MISS' : cacheEntry.isStale ? 'STALE' : 'HIT');
|
|
1339
|
-
}
|
|
1340
|
-
// Draft mode should never be cached
|
|
1341
|
-
if (isDraftMode) {
|
|
1342
|
-
res.setHeader('Cache-Control', 'private, no-cache, no-store, max-age=0, must-revalidate');
|
|
1343
|
-
}
|
|
1344
|
-
const headers = (0,next_dist_server_web_utils__WEBPACK_IMPORTED_MODULE_12__.fromNodeOutgoingHttpHeaders)(cacheEntry.value.headers);
|
|
1345
|
-
if (!(isMinimalMode && isIsr)) {
|
|
1346
|
-
headers.delete(next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__.NEXT_CACHE_TAGS_HEADER);
|
|
1347
|
-
}
|
|
1348
|
-
// If cache control is already set on the response we don't
|
|
1349
|
-
// override it to allow users to customize it via next.config
|
|
1350
|
-
if (cacheEntry.cacheControl && !res.getHeader('Cache-Control') && !headers.get('Cache-Control')) {
|
|
1351
|
-
headers.set('Cache-Control', (0,next_dist_server_lib_cache_control__WEBPACK_IMPORTED_MODULE_13__.getCacheControlHeader)(cacheEntry.cacheControl));
|
|
1352
|
-
}
|
|
1353
|
-
await (0,next_dist_server_send_response__WEBPACK_IMPORTED_MODULE_11__/* .sendResponse */ .I)(nodeNextReq, nodeNextRes, // @ts-expect-error - Argument of type 'Buffer<ArrayBufferLike>' is not assignable to parameter of type 'BodyInit | null | undefined'.
|
|
1354
|
-
new Response(cacheEntry.value.body, {
|
|
1355
|
-
headers,
|
|
1356
|
-
status: cacheEntry.value.status || 200
|
|
1357
|
-
}));
|
|
1358
|
-
return;
|
|
1359
|
-
} catch (err) {
|
|
1360
|
-
if (!(err instanceof next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_15__.NoFallbackError)) {
|
|
1361
|
-
const silenceLog = false;
|
|
1362
|
-
await routeModule.onRequestError(req, err, {
|
|
1363
|
-
routerKind: 'App Router',
|
|
1364
|
-
routePath: normalizedSrcPage,
|
|
1365
|
-
routeType: 'route',
|
|
1366
|
-
revalidateReason: (0,next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_10__.getRevalidateReason)({
|
|
1367
|
-
isStaticGeneration: cacheKey !== null,
|
|
1368
|
-
isOnDemandRevalidate
|
|
1369
|
-
})
|
|
1370
|
-
}, silenceLog, routerServerContext);
|
|
1371
|
-
}
|
|
1372
|
-
// rethrow so that we can handle serving error page
|
|
1373
|
-
// If this is during static generation, throw the error again.
|
|
1374
|
-
if (isIsr) throw err;
|
|
1375
|
-
// Otherwise, send a 500 response unless the original response has
|
|
1376
|
-
// already committed. In that case, preserve its status code for
|
|
1377
|
-
// telemetry while still recording the failure and terminating a response
|
|
1378
|
-
// that the failed pipeline left open.
|
|
1379
|
-
if (res.headersSent) {
|
|
1380
|
-
if (currentSpan) {
|
|
1381
|
-
const error = err instanceof Error ? err : new Error('Unknown app route error');
|
|
1382
|
-
currentSpan.recordException(error);
|
|
1383
|
-
currentSpan.setStatus({
|
|
1384
|
-
code: next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.SpanStatusCode.ERROR,
|
|
1385
|
-
message: error.message
|
|
1386
|
-
});
|
|
1387
|
-
currentSpan.setAttribute('error.type', error.name);
|
|
1388
|
-
}
|
|
1389
|
-
if (!res.writableEnded && !res.destroyed) {
|
|
1390
|
-
res.end();
|
|
1391
|
-
}
|
|
1392
|
-
} else {
|
|
1393
|
-
await (0,next_dist_server_send_response__WEBPACK_IMPORTED_MODULE_11__/* .sendResponse */ .I)(nodeNextReq, nodeNextRes, new Response(null, {
|
|
1394
|
-
status: 500
|
|
1395
|
-
}));
|
|
1396
|
-
}
|
|
1397
|
-
return;
|
|
1398
|
-
} finally{
|
|
1399
|
-
;
|
|
1400
|
-
(()=>{
|
|
1401
|
-
if (!currentSpan) {
|
|
1402
|
-
return;
|
|
1403
|
-
}
|
|
1404
|
-
let statusCode = res.statusCode;
|
|
1405
|
-
currentSpan.setAttributes({
|
|
1406
|
-
'http.status_code': statusCode,
|
|
1407
|
-
'next.rsc': false
|
|
1408
|
-
});
|
|
1409
|
-
if (statusCode && statusCode >= 500) {
|
|
1410
|
-
// For 5xx status codes: SHOULD be set to 'Error' span status.
|
|
1411
|
-
// x-ref: https://opentelemetry.io/docs/specs/semconv/http/http-spans/#status
|
|
1412
|
-
currentSpan.setStatus({
|
|
1413
|
-
code: next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.SpanStatusCode.ERROR
|
|
1414
|
-
});
|
|
1415
|
-
// For span status 'Error', SHOULD set 'error.type' attribute.
|
|
1416
|
-
currentSpan.setAttribute('error.type', statusCode.toString());
|
|
1417
|
-
}
|
|
1418
|
-
const rootSpanAttributes = tracer.getRootSpanAttributes();
|
|
1419
|
-
// We were unable to get attributes, probably OTEL is not enabled
|
|
1420
|
-
if (!rootSpanAttributes) {
|
|
1421
|
-
return;
|
|
1422
|
-
}
|
|
1423
|
-
if (rootSpanAttributes.get('next.span_type') !== next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_9__.BaseServerSpan.handleRequest) {
|
|
1424
|
-
console.warn(`Unexpected root span type '${rootSpanAttributes.get('next.span_type')}'. Please report this Next.js issue https://github.com/vercel/next.js`);
|
|
1425
|
-
return;
|
|
1426
|
-
}
|
|
1427
|
-
const route = rootSpanAttributes.get('next.route') || normalizedSrcPage;
|
|
1428
|
-
const name = `${method} ${route}`;
|
|
1429
|
-
currentSpan.setAttributes({
|
|
1430
|
-
'next.route': route,
|
|
1431
|
-
'http.route': route,
|
|
1432
|
-
'next.span_name': name
|
|
1433
|
-
});
|
|
1434
|
-
currentSpan.updateName(name);
|
|
1435
|
-
// Propagate http.route to the request's root span if it isn't the
|
|
1436
|
-
// request span (e.g. a platform-created HTTP span in adapter
|
|
1437
|
-
// deployments).
|
|
1438
|
-
if (requestRootSpan && requestRootSpan !== currentSpan) {
|
|
1439
|
-
requestRootSpan.setAttribute('http.route', route);
|
|
1440
|
-
requestRootSpan.updateName(name);
|
|
1441
|
-
}
|
|
1442
|
-
})();
|
|
1390
|
+
});
|
|
1391
|
+
}
|
|
1392
|
+
// Use for endpoints whose response contains live state that must never be
|
|
1393
|
+
// served from cache — credentials, connection status, live config values.
|
|
1394
|
+
function noStoreJson(data) {
|
|
1395
|
+
return next_server__WEBPACK_IMPORTED_MODULE_0__.NextResponse.json(data, {
|
|
1396
|
+
headers: {
|
|
1397
|
+
"Cache-Control": "no-store"
|
|
1443
1398
|
}
|
|
1444
|
-
};
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1399
|
+
});
|
|
1400
|
+
}
|
|
1401
|
+
// Validate a JSON request body against a zod schema.
|
|
1402
|
+
// Returns either the parsed data or a 400 NextResponse explaining the issue.
|
|
1403
|
+
// Caller pattern:
|
|
1404
|
+
// const parsed = await validateBody(req, Schema);
|
|
1405
|
+
// if (parsed instanceof NextResponse) return parsed;
|
|
1406
|
+
// // use parsed.field
|
|
1407
|
+
async function validateBody(req, schema) {
|
|
1408
|
+
let raw;
|
|
1409
|
+
try {
|
|
1410
|
+
raw = await req.json();
|
|
1411
|
+
} catch {
|
|
1412
|
+
return errorResponse("Request body must be valid JSON", 400);
|
|
1450
1413
|
}
|
|
1451
|
-
|
|
1414
|
+
const parsed = schema.safeParse(raw);
|
|
1415
|
+
if (!parsed.success) {
|
|
1416
|
+
return errorResponse(parsed.error.issues[0]?.message ?? "invalid body", 400);
|
|
1417
|
+
}
|
|
1418
|
+
return parsed.data;
|
|
1452
1419
|
}
|
|
1453
1420
|
|
|
1454
|
-
//# sourceMappingURL=app-route.js.map
|
|
1455
1421
|
|
|
1422
|
+
/***/ }),
|
|
1423
|
+
|
|
1424
|
+
/***/ 744870:
|
|
1425
|
+
/***/ ((module) => {
|
|
1426
|
+
|
|
1427
|
+
module.exports = require("next/dist/compiled/next-server/app-route.runtime.prod.js");
|
|
1428
|
+
|
|
1429
|
+
/***/ }),
|
|
1430
|
+
|
|
1431
|
+
/***/ 775919:
|
|
1432
|
+
/***/ ((module) => {
|
|
1433
|
+
|
|
1434
|
+
module.exports = require("node:worker_threads");
|
|
1435
|
+
|
|
1436
|
+
/***/ }),
|
|
1437
|
+
|
|
1438
|
+
/***/ 777030:
|
|
1439
|
+
/***/ ((module) => {
|
|
1440
|
+
|
|
1441
|
+
module.exports = require("node:net");
|
|
1442
|
+
|
|
1443
|
+
/***/ }),
|
|
1444
|
+
|
|
1445
|
+
/***/ 781630:
|
|
1446
|
+
/***/ ((module) => {
|
|
1447
|
+
|
|
1448
|
+
module.exports = require("http");
|
|
1449
|
+
|
|
1450
|
+
/***/ }),
|
|
1451
|
+
|
|
1452
|
+
/***/ 848161:
|
|
1453
|
+
/***/ ((module) => {
|
|
1454
|
+
|
|
1455
|
+
module.exports = require("node:os");
|
|
1456
1456
|
|
|
1457
1457
|
/***/ }),
|
|
1458
1458
|
|
|
@@ -1512,7 +1512,7 @@ module.exports = require("next/dist/shared/lib/no-fallback-error.external");
|
|
|
1512
1512
|
var __webpack_require__ = require("../../../../../../webpack-runtime.js");
|
|
1513
1513
|
__webpack_require__.C(exports);
|
|
1514
1514
|
var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
|
|
1515
|
-
var __webpack_exports__ = __webpack_require__.X(0, [2970,7377,1813,4891,4992,1244], () => (__webpack_exec__(
|
|
1515
|
+
var __webpack_exports__ = __webpack_require__.X(0, [2970,7377,1813,4891,4992,1244], () => (__webpack_exec__(149878)));
|
|
1516
1516
|
module.exports = __webpack_exports__;
|
|
1517
1517
|
|
|
1518
1518
|
})();
|