@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
|
@@ -70,13 +70,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
70
70
|
/* harmony export */ POST: () => (/* binding */ POST)
|
|
71
71
|
/* harmony export */ });
|
|
72
72
|
/* harmony import */ var next_server__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(945592);
|
|
73
|
-
/* harmony import */ var
|
|
73
|
+
/* harmony import */ var zod__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(497377);
|
|
74
74
|
/* harmony import */ var _lib_providers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(360034);
|
|
75
75
|
/* harmony import */ var _lib_providers_capabilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(723619);
|
|
76
76
|
/* harmony import */ var _lib_stores_model_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(780937);
|
|
77
77
|
/* harmony import */ var _lib_api_responses__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(739947);
|
|
78
78
|
/* harmony import */ var _lib_providers_known_context_windows__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(845552);
|
|
79
|
-
/* harmony import */ var
|
|
79
|
+
/* harmony import */ var _lib_utils_error__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(922032);
|
|
80
|
+
/* harmony import */ var _lib_stores_model_metadata__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(775502);
|
|
80
81
|
|
|
81
82
|
|
|
82
83
|
|
|
@@ -85,8 +86,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
85
86
|
|
|
86
87
|
|
|
87
88
|
|
|
88
|
-
|
|
89
|
-
|
|
89
|
+
|
|
90
|
+
const CatalogBody = zod__WEBPACK_IMPORTED_MODULE_7__/* .object */ .Ikc({
|
|
91
|
+
params: zod__WEBPACK_IMPORTED_MODULE_7__/* .record */ .g1P(zod__WEBPACK_IMPORTED_MODULE_7__/* .string */ .YjP(), zod__WEBPACK_IMPORTED_MODULE_7__/* .unknown */ .L5J()).optional()
|
|
90
92
|
});
|
|
91
93
|
// Live provider catalogs hit external APIs. Cache per-provider briefly so
|
|
92
94
|
// opening the model browser repeatedly doesn't re-hit upstream.
|
|
@@ -110,7 +112,7 @@ async function GET(req, { params }) {
|
|
|
110
112
|
const force = req.nextUrl.searchParams.get("fresh") === "1";
|
|
111
113
|
try {
|
|
112
114
|
const models = await getCachedCatalog(provider, force);
|
|
113
|
-
return next_server__WEBPACK_IMPORTED_MODULE_0__.NextResponse.json(models, {
|
|
115
|
+
return next_server__WEBPACK_IMPORTED_MODULE_0__.NextResponse.json(withModelMetadata(provider, models), {
|
|
114
116
|
headers: {
|
|
115
117
|
"Cache-Control": "private, max-age=300, stale-while-revalidate=600"
|
|
116
118
|
}
|
|
@@ -141,7 +143,7 @@ async function POST(req, { params }) {
|
|
|
141
143
|
try {
|
|
142
144
|
const models = await fetchCatalog(provider, body.params);
|
|
143
145
|
catalogCache.delete(provider);
|
|
144
|
-
return next_server__WEBPACK_IMPORTED_MODULE_0__.NextResponse.json(models, {
|
|
146
|
+
return next_server__WEBPACK_IMPORTED_MODULE_0__.NextResponse.json(withModelMetadata(provider, models), {
|
|
145
147
|
headers: {
|
|
146
148
|
"Cache-Control": "no-store"
|
|
147
149
|
}
|
|
@@ -150,6 +152,25 @@ async function POST(req, { params }) {
|
|
|
150
152
|
return catalogErrorResponse(err);
|
|
151
153
|
}
|
|
152
154
|
}
|
|
155
|
+
function withModelMetadata(provider, models) {
|
|
156
|
+
const metadata = (0,_lib_stores_model_metadata__WEBPACK_IMPORTED_MODULE_6__/* .listModelMetadata */ .nY)(provider);
|
|
157
|
+
return models.map((model)=>{
|
|
158
|
+
const observed = (0,_lib_stores_model_metadata__WEBPACK_IMPORTED_MODULE_6__/* .resolvedModelMetadata */ .Zp)(provider, model.id, metadata);
|
|
159
|
+
const capabilities = {
|
|
160
|
+
...model.capabilities
|
|
161
|
+
};
|
|
162
|
+
for (const [key, claim] of Object.entries(observed.model_metadata?.capabilities ?? {})){
|
|
163
|
+
if (claim) Object.assign(capabilities, {
|
|
164
|
+
[key]: claim.value
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
return {
|
|
168
|
+
...model,
|
|
169
|
+
capabilities,
|
|
170
|
+
model_metadata: observed.model_metadata
|
|
171
|
+
};
|
|
172
|
+
});
|
|
173
|
+
}
|
|
153
174
|
async function fetchCatalog(provider, overrides) {
|
|
154
175
|
switch(provider){
|
|
155
176
|
case "openai":
|
|
@@ -457,7 +478,7 @@ async function fetchCopilotChatCatalog(sessionToken) {
|
|
|
457
478
|
}
|
|
458
479
|
});
|
|
459
480
|
if (!res.ok) {
|
|
460
|
-
const body = await (0,
|
|
481
|
+
const body = await (0,_lib_utils_error__WEBPACK_IMPORTED_MODULE_8__/* .readErrorBody */ .N)(res);
|
|
461
482
|
throw new Error(`GitHub Copilot catalog error: ${res.status} ${body}`);
|
|
462
483
|
}
|
|
463
484
|
const data = await res.json();
|
|
@@ -488,7 +509,7 @@ async function exchangeCopilotSessionToken(githubToken) {
|
|
|
488
509
|
}
|
|
489
510
|
});
|
|
490
511
|
if (!res.ok) {
|
|
491
|
-
const body = await (0,
|
|
512
|
+
const body = await (0,_lib_utils_error__WEBPACK_IMPORTED_MODULE_8__/* .readErrorBody */ .N)(res);
|
|
492
513
|
throw new Error(`GitHub Copilot token exchange failed: ${res.status} ${body}`);
|
|
493
514
|
}
|
|
494
515
|
const json = await res.json();
|
|
@@ -792,596 +813,172 @@ module.exports = require("next/dist/server/app-render/action-async-storage.exter
|
|
|
792
813
|
|
|
793
814
|
/***/ }),
|
|
794
815
|
|
|
795
|
-
/***/
|
|
796
|
-
/***/ ((
|
|
816
|
+
/***/ 455511:
|
|
817
|
+
/***/ ((module) => {
|
|
818
|
+
|
|
819
|
+
module.exports = require("crypto");
|
|
820
|
+
|
|
821
|
+
/***/ }),
|
|
822
|
+
|
|
823
|
+
/***/ 529294:
|
|
824
|
+
/***/ ((module) => {
|
|
825
|
+
|
|
826
|
+
module.exports = require("next/dist/server/app-render/work-async-storage.external.js");
|
|
827
|
+
|
|
828
|
+
/***/ }),
|
|
829
|
+
|
|
830
|
+
/***/ 576658:
|
|
831
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
797
832
|
|
|
798
|
-
__webpack_require__.r(__webpack_exports__);
|
|
799
833
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
800
|
-
/* harmony export */
|
|
801
|
-
/* harmony export */ patchFetch: () => (/* binding */ patchFetch),
|
|
802
|
-
/* harmony export */ routeModule: () => (/* binding */ routeModule),
|
|
803
|
-
/* harmony export */ serverHooks: () => (/* binding */ serverHooks),
|
|
804
|
-
/* harmony export */ workAsyncStorage: () => (/* binding */ workAsyncStorage),
|
|
805
|
-
/* harmony export */ workUnitAsyncStorage: () => (/* binding */ workUnitAsyncStorage)
|
|
834
|
+
/* harmony export */ w$: () => (/* binding */ datetime)
|
|
806
835
|
/* harmony export */ });
|
|
807
|
-
/* harmony
|
|
808
|
-
/* harmony import */ var
|
|
809
|
-
/* harmony import */ var
|
|
810
|
-
/* harmony import */ var next_dist_server_lib_patch_fetch__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8317);
|
|
811
|
-
/* 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__);
|
|
812
|
-
/* harmony import */ var next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(799373);
|
|
813
|
-
/* 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__);
|
|
814
|
-
/* harmony import */ var next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(434775);
|
|
815
|
-
/* 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__);
|
|
816
|
-
/* harmony import */ var next_dist_server_app_render_manifests_singleton__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(524235);
|
|
817
|
-
/* 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__);
|
|
818
|
-
/* harmony import */ var next_dist_shared_lib_router_utils_app_paths__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(200261);
|
|
819
|
-
/* 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__);
|
|
820
|
-
/* harmony import */ var next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(754365);
|
|
821
|
-
/* 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__);
|
|
822
|
-
/* harmony import */ var next_dist_server_web_spec_extension_adapters_next_request__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(590771);
|
|
823
|
-
/* 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__);
|
|
824
|
-
/* harmony import */ var next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(473461);
|
|
825
|
-
/* 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__);
|
|
826
|
-
/* harmony import */ var next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(767798);
|
|
827
|
-
/* harmony import */ var next_dist_server_send_response__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(192280);
|
|
828
|
-
/* harmony import */ var next_dist_server_web_utils__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(662018);
|
|
829
|
-
/* 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__);
|
|
830
|
-
/* harmony import */ var next_dist_server_lib_cache_control__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(445696);
|
|
831
|
-
/* harmony import */ var next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(347929);
|
|
832
|
-
/* harmony import */ var next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__);
|
|
833
|
-
/* harmony import */ var next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(986439);
|
|
834
|
-
/* 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__);
|
|
835
|
-
/* harmony import */ var next_dist_server_lib_route_cache_key__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(710246);
|
|
836
|
-
/* 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__);
|
|
837
|
-
/* harmony import */ var next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(137527);
|
|
838
|
-
/* 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__);
|
|
836
|
+
/* unused harmony exports date, time, duration */
|
|
837
|
+
/* harmony import */ var _core_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(954746);
|
|
838
|
+
/* harmony import */ var _schemas_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(497377);
|
|
839
839
|
|
|
840
840
|
|
|
841
841
|
|
|
842
|
+
function datetime(params) {
|
|
843
|
+
return _core_index_js__WEBPACK_IMPORTED_MODULE_0__/* ._isoDateTime */ .G1(_schemas_js__WEBPACK_IMPORTED_MODULE_1__/* .ZodISODateTime */ .You, params);
|
|
844
|
+
}
|
|
845
|
+
function date(params) {
|
|
846
|
+
return core._isoDate(ZodISODate, params);
|
|
847
|
+
}
|
|
848
|
+
function time(params) {
|
|
849
|
+
return core._isoTime(ZodISOTime, params);
|
|
850
|
+
}
|
|
851
|
+
function duration(params) {
|
|
852
|
+
return core._isoDuration(ZodISODuration, params);
|
|
853
|
+
}
|
|
842
854
|
|
|
843
855
|
|
|
856
|
+
/***/ }),
|
|
844
857
|
|
|
858
|
+
/***/ 594735:
|
|
859
|
+
/***/ ((module) => {
|
|
845
860
|
|
|
861
|
+
module.exports = require("events");
|
|
846
862
|
|
|
863
|
+
/***/ }),
|
|
847
864
|
|
|
865
|
+
/***/ 629021:
|
|
866
|
+
/***/ ((module) => {
|
|
848
867
|
|
|
868
|
+
module.exports = require("fs");
|
|
849
869
|
|
|
870
|
+
/***/ }),
|
|
850
871
|
|
|
872
|
+
/***/ 638522:
|
|
873
|
+
/***/ ((module) => {
|
|
851
874
|
|
|
875
|
+
module.exports = require("node:zlib");
|
|
852
876
|
|
|
877
|
+
/***/ }),
|
|
853
878
|
|
|
879
|
+
/***/ 663033:
|
|
880
|
+
/***/ ((module) => {
|
|
854
881
|
|
|
882
|
+
module.exports = require("next/dist/server/app-render/work-unit-async-storage.external.js");
|
|
855
883
|
|
|
884
|
+
/***/ }),
|
|
856
885
|
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
const nextConfigOutput = "standalone"
|
|
860
|
-
const routeModule = new next_dist_server_route_modules_app_route_module_compiled__WEBPACK_IMPORTED_MODULE_0__.AppRouteRouteModule({
|
|
861
|
-
definition: {
|
|
862
|
-
kind: next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__.RouteKind.APP_ROUTE,
|
|
863
|
-
page: "/api/v1/providers/[provider]/models/route",
|
|
864
|
-
pathname: "/api/v1/providers/[provider]/models",
|
|
865
|
-
filename: "route",
|
|
866
|
-
bundlePath: "app/api/v1/providers/[provider]/models/route"
|
|
867
|
-
},
|
|
868
|
-
distDir: ".next" || 0,
|
|
869
|
-
relativeProjectDir: false || '',
|
|
870
|
-
resolvedPagePath: "/home/runner/work/jarela/jarela/app/api/v1/providers/[provider]/models/route.ts",
|
|
871
|
-
nextConfigOutput,
|
|
872
|
-
// The lazy require factory ensures that:
|
|
873
|
-
// - In dev: devRequestTimingInternalsEnd is set before userland executes,
|
|
874
|
-
// correctly attributing module load time to application-code rather than
|
|
875
|
-
// framework internals.
|
|
876
|
-
// - In all modes: async modules (route files with top-level await) are
|
|
877
|
-
// handled correctly — require() returns a Promise for such modules, which
|
|
878
|
-
// ensureUserland() awaits before the first request is handled.
|
|
879
|
-
userland: ()=>__webpack_require__(193748),
|
|
880
|
-
// In Turbopack dev mode, also provide a synchronous per-request getter so
|
|
881
|
-
// server HMR updates are picked up without re-executing the entry chunk.
|
|
882
|
-
// Using require() (synchronous) avoids adding async overhead that would be
|
|
883
|
-
// incorrectly attributed to application-code time in devRequestTiming.
|
|
884
|
-
... false ? 0 : {}
|
|
885
|
-
});
|
|
886
|
-
// Pull out the exports that we need to expose from the module. This should
|
|
887
|
-
// be eliminated when we've moved the other routes to the new format. These
|
|
888
|
-
// are used to hook into the route.
|
|
889
|
-
const { workAsyncStorage, workUnitAsyncStorage, serverHooks } = routeModule;
|
|
890
|
-
function patchFetch() {
|
|
891
|
-
return (0,next_dist_server_lib_patch_fetch__WEBPACK_IMPORTED_MODULE_2__.patchFetch)({
|
|
892
|
-
workAsyncStorage,
|
|
893
|
-
workUnitAsyncStorage
|
|
894
|
-
});
|
|
895
|
-
}
|
|
886
|
+
/***/ 710846:
|
|
887
|
+
/***/ ((module) => {
|
|
896
888
|
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
renderOpts: {
|
|
991
|
-
experimental: {
|
|
992
|
-
authInterrupts: Boolean(nextConfig.experimental.authInterrupts),
|
|
993
|
-
useCacheTimeout: nextConfig.experimental.useCacheTimeout,
|
|
994
|
-
durableUseCacheEntries: Boolean(nextConfig.experimental.durableUseCacheEntries)
|
|
995
|
-
},
|
|
996
|
-
cacheComponents: Boolean(nextConfig.cacheComponents),
|
|
997
|
-
validationLevel: nextConfig.experimental.instantInsights.validationLevel,
|
|
998
|
-
isDraftMode,
|
|
999
|
-
incrementalCache,
|
|
1000
|
-
hmrRefreshHash: (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.getRequestMeta)(req, 'hmrRefreshHash'),
|
|
1001
|
-
cacheLifeProfiles: nextConfig.cacheLife,
|
|
1002
|
-
staticPageGenerationTimeout: nextConfig.staticPageGenerationTimeout,
|
|
1003
|
-
waitUntil: ctx.waitUntil,
|
|
1004
|
-
onClose: (cb)=>{
|
|
1005
|
-
res.on('close', cb);
|
|
1006
|
-
},
|
|
1007
|
-
onAfterTaskError: undefined
|
|
1008
|
-
},
|
|
1009
|
-
sharedContext: {
|
|
1010
|
-
buildId,
|
|
1011
|
-
deploymentId
|
|
1012
|
-
}
|
|
1013
|
-
};
|
|
1014
|
-
const nodeNextReq = new next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_7__.NodeNextRequest(req);
|
|
1015
|
-
const nodeNextRes = new next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_7__.NodeNextResponse(res);
|
|
1016
|
-
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));
|
|
1017
|
-
const responseGenerator = async ({ previousCacheEntry })=>{
|
|
1018
|
-
try {
|
|
1019
|
-
if (!isMinimalMode && isOnDemandRevalidate && revalidateOnlyGenerated && !previousCacheEntry) {
|
|
1020
|
-
res.statusCode = 404;
|
|
1021
|
-
// on-demand revalidate always sets this header
|
|
1022
|
-
res.setHeader('x-nextjs-cache', 'REVALIDATED');
|
|
1023
|
-
res.end('This page could not be found');
|
|
1024
|
-
return null;
|
|
1025
|
-
}
|
|
1026
|
-
const response = cacheKey === null ? await routeModule.handle(nextReq, context) : await routeModule.prerender(nextReq, context);
|
|
1027
|
-
req.fetchMetrics = context.renderOpts.fetchMetrics;
|
|
1028
|
-
let pendingWaitUntil = context.renderOpts.pendingWaitUntil;
|
|
1029
|
-
// Attempt using provided waitUntil if available
|
|
1030
|
-
// if it's not we fallback to sendResponse's handling
|
|
1031
|
-
if (pendingWaitUntil) {
|
|
1032
|
-
if (ctx.waitUntil) {
|
|
1033
|
-
ctx.waitUntil(pendingWaitUntil);
|
|
1034
|
-
pendingWaitUntil = undefined;
|
|
1035
|
-
}
|
|
1036
|
-
}
|
|
1037
|
-
const cacheTags = context.renderOpts.collectedTags;
|
|
1038
|
-
// If the request is for a static response, we can cache it so long
|
|
1039
|
-
// as it's not edge.
|
|
1040
|
-
if (isIsr) {
|
|
1041
|
-
const blob = await response.blob();
|
|
1042
|
-
// Copy the headers from the response.
|
|
1043
|
-
const headers = (0,next_dist_server_web_utils__WEBPACK_IMPORTED_MODULE_12__.toNodeOutgoingHttpHeaders)(response.headers);
|
|
1044
|
-
if (cacheTags) {
|
|
1045
|
-
headers[next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__.NEXT_CACHE_TAGS_HEADER] = cacheTags;
|
|
1046
|
-
}
|
|
1047
|
-
if (!headers['content-type'] && blob.type) {
|
|
1048
|
-
headers['content-type'] = blob.type;
|
|
1049
|
-
}
|
|
1050
|
-
const revalidate = typeof context.renderOpts.collectedRevalidate === 'undefined' || context.renderOpts.collectedRevalidate >= next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__.INFINITE_CACHE ? false : context.renderOpts.collectedRevalidate;
|
|
1051
|
-
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
|
|
1052
|
-
// explicit `expire` (e.g. via `cacheLife`). This mirrors the
|
|
1053
|
-
// build-time fallback in `build/index.ts` so cache entries
|
|
1054
|
-
// and the response Cache-Control header agree on the route's
|
|
1055
|
-
// effective expire. Routes that opt out of revalidation
|
|
1056
|
-
// (`revalidate: false`) or that are dynamic (`revalidate: 0`)
|
|
1057
|
-
// keep `expire: undefined`.
|
|
1058
|
-
revalidate !== false && revalidate > 0 ? nextConfig.expireTime : undefined : context.renderOpts.collectedExpire;
|
|
1059
|
-
// Create the cache entry for the response.
|
|
1060
|
-
const cacheEntry = {
|
|
1061
|
-
value: {
|
|
1062
|
-
kind: next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__.CachedRouteKind.APP_ROUTE,
|
|
1063
|
-
status: response.status,
|
|
1064
|
-
body: Buffer.from(await blob.arrayBuffer()),
|
|
1065
|
-
headers
|
|
1066
|
-
},
|
|
1067
|
-
cacheControl: {
|
|
1068
|
-
revalidate,
|
|
1069
|
-
expire
|
|
1070
|
-
}
|
|
1071
|
-
};
|
|
1072
|
-
return cacheEntry;
|
|
1073
|
-
} else {
|
|
1074
|
-
// send response without caching if not ISR
|
|
1075
|
-
await (0,next_dist_server_send_response__WEBPACK_IMPORTED_MODULE_11__/* .sendResponse */ .I)(nodeNextReq, nodeNextRes, response, pendingWaitUntil);
|
|
1076
|
-
return null;
|
|
1077
|
-
}
|
|
1078
|
-
} catch (err) {
|
|
1079
|
-
// if this is a background revalidate we need to report
|
|
1080
|
-
// the request error here as it won't be bubbled
|
|
1081
|
-
if (previousCacheEntry == null ? void 0 : previousCacheEntry.isStale) {
|
|
1082
|
-
const silenceLog = false;
|
|
1083
|
-
await routeModule.onRequestError(req, err, {
|
|
1084
|
-
routerKind: 'App Router',
|
|
1085
|
-
routePath: srcPage,
|
|
1086
|
-
routeType: 'route',
|
|
1087
|
-
revalidateReason: (0,next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_10__.getRevalidateReason)({
|
|
1088
|
-
isStaticGeneration: cacheKey !== null,
|
|
1089
|
-
isOnDemandRevalidate
|
|
1090
|
-
})
|
|
1091
|
-
}, silenceLog, routerServerContext);
|
|
1092
|
-
}
|
|
1093
|
-
throw err;
|
|
1094
|
-
}
|
|
1095
|
-
};
|
|
1096
|
-
const handleResponse = async (currentSpan)=>{
|
|
1097
|
-
try {
|
|
1098
|
-
var _cacheEntry_value;
|
|
1099
|
-
const cacheEntry = await routeModule.handleResponse({
|
|
1100
|
-
req,
|
|
1101
|
-
nextConfig,
|
|
1102
|
-
cacheKey,
|
|
1103
|
-
routeKind: next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__.RouteKind.APP_ROUTE,
|
|
1104
|
-
isFallback: false,
|
|
1105
|
-
previewProps,
|
|
1106
|
-
prerenderManifest,
|
|
1107
|
-
isRoutePPREnabled: false,
|
|
1108
|
-
isOnDemandRevalidate,
|
|
1109
|
-
revalidateOnlyGenerated,
|
|
1110
|
-
responseGenerator,
|
|
1111
|
-
waitUntil: ctx.waitUntil,
|
|
1112
|
-
isMinimalMode
|
|
1113
|
-
});
|
|
1114
|
-
if (cacheEntry !== null && 'error' in cacheEntry) {
|
|
1115
|
-
throw cacheEntry.error;
|
|
1116
|
-
}
|
|
1117
|
-
// we don't create a cacheEntry for ISR
|
|
1118
|
-
if (!isIsr) {
|
|
1119
|
-
return;
|
|
1120
|
-
}
|
|
1121
|
-
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) {
|
|
1122
|
-
var _cacheEntry_value1;
|
|
1123
|
-
throw new Error(`Invariant: app-route received invalid cache entry ${cacheEntry == null ? void 0 : (_cacheEntry_value1 = cacheEntry.value) == null ? void 0 : _cacheEntry_value1.kind}`);
|
|
1124
|
-
}
|
|
1125
|
-
if (!isMinimalMode) {
|
|
1126
|
-
res.setHeader('x-nextjs-cache', isOnDemandRevalidate ? 'REVALIDATED' : cacheEntry.isMiss ? 'MISS' : cacheEntry.isStale ? 'STALE' : 'HIT');
|
|
1127
|
-
}
|
|
1128
|
-
// Draft mode should never be cached
|
|
1129
|
-
if (isDraftMode) {
|
|
1130
|
-
res.setHeader('Cache-Control', 'private, no-cache, no-store, max-age=0, must-revalidate');
|
|
1131
|
-
}
|
|
1132
|
-
const headers = (0,next_dist_server_web_utils__WEBPACK_IMPORTED_MODULE_12__.fromNodeOutgoingHttpHeaders)(cacheEntry.value.headers);
|
|
1133
|
-
if (!(isMinimalMode && isIsr)) {
|
|
1134
|
-
headers.delete(next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__.NEXT_CACHE_TAGS_HEADER);
|
|
1135
|
-
}
|
|
1136
|
-
// If cache control is already set on the response we don't
|
|
1137
|
-
// override it to allow users to customize it via next.config
|
|
1138
|
-
if (cacheEntry.cacheControl && !res.getHeader('Cache-Control') && !headers.get('Cache-Control')) {
|
|
1139
|
-
headers.set('Cache-Control', (0,next_dist_server_lib_cache_control__WEBPACK_IMPORTED_MODULE_13__.getCacheControlHeader)(cacheEntry.cacheControl));
|
|
1140
|
-
}
|
|
1141
|
-
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'.
|
|
1142
|
-
new Response(cacheEntry.value.body, {
|
|
1143
|
-
headers,
|
|
1144
|
-
status: cacheEntry.value.status || 200
|
|
1145
|
-
}));
|
|
1146
|
-
return;
|
|
1147
|
-
} catch (err) {
|
|
1148
|
-
if (!(err instanceof next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_15__.NoFallbackError)) {
|
|
1149
|
-
const silenceLog = false;
|
|
1150
|
-
await routeModule.onRequestError(req, err, {
|
|
1151
|
-
routerKind: 'App Router',
|
|
1152
|
-
routePath: normalizedSrcPage,
|
|
1153
|
-
routeType: 'route',
|
|
1154
|
-
revalidateReason: (0,next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_10__.getRevalidateReason)({
|
|
1155
|
-
isStaticGeneration: cacheKey !== null,
|
|
1156
|
-
isOnDemandRevalidate
|
|
1157
|
-
})
|
|
1158
|
-
}, silenceLog, routerServerContext);
|
|
1159
|
-
}
|
|
1160
|
-
// rethrow so that we can handle serving error page
|
|
1161
|
-
// If this is during static generation, throw the error again.
|
|
1162
|
-
if (isIsr) throw err;
|
|
1163
|
-
// Otherwise, send a 500 response unless the original response has
|
|
1164
|
-
// already committed. In that case, preserve its status code for
|
|
1165
|
-
// telemetry while still recording the failure and terminating a response
|
|
1166
|
-
// that the failed pipeline left open.
|
|
1167
|
-
if (res.headersSent) {
|
|
1168
|
-
if (currentSpan) {
|
|
1169
|
-
const error = err instanceof Error ? err : new Error('Unknown app route error');
|
|
1170
|
-
currentSpan.recordException(error);
|
|
1171
|
-
currentSpan.setStatus({
|
|
1172
|
-
code: next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.SpanStatusCode.ERROR,
|
|
1173
|
-
message: error.message
|
|
1174
|
-
});
|
|
1175
|
-
currentSpan.setAttribute('error.type', error.name);
|
|
1176
|
-
}
|
|
1177
|
-
if (!res.writableEnded && !res.destroyed) {
|
|
1178
|
-
res.end();
|
|
1179
|
-
}
|
|
1180
|
-
} else {
|
|
1181
|
-
await (0,next_dist_server_send_response__WEBPACK_IMPORTED_MODULE_11__/* .sendResponse */ .I)(nodeNextReq, nodeNextRes, new Response(null, {
|
|
1182
|
-
status: 500
|
|
1183
|
-
}));
|
|
1184
|
-
}
|
|
1185
|
-
return;
|
|
1186
|
-
} finally{
|
|
1187
|
-
;
|
|
1188
|
-
(()=>{
|
|
1189
|
-
if (!currentSpan) {
|
|
1190
|
-
return;
|
|
1191
|
-
}
|
|
1192
|
-
let statusCode = res.statusCode;
|
|
1193
|
-
currentSpan.setAttributes({
|
|
1194
|
-
'http.status_code': statusCode,
|
|
1195
|
-
'next.rsc': false
|
|
1196
|
-
});
|
|
1197
|
-
if (statusCode && statusCode >= 500) {
|
|
1198
|
-
// For 5xx status codes: SHOULD be set to 'Error' span status.
|
|
1199
|
-
// x-ref: https://opentelemetry.io/docs/specs/semconv/http/http-spans/#status
|
|
1200
|
-
currentSpan.setStatus({
|
|
1201
|
-
code: next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.SpanStatusCode.ERROR
|
|
1202
|
-
});
|
|
1203
|
-
// For span status 'Error', SHOULD set 'error.type' attribute.
|
|
1204
|
-
currentSpan.setAttribute('error.type', statusCode.toString());
|
|
1205
|
-
}
|
|
1206
|
-
const rootSpanAttributes = tracer.getRootSpanAttributes();
|
|
1207
|
-
// We were unable to get attributes, probably OTEL is not enabled
|
|
1208
|
-
if (!rootSpanAttributes) {
|
|
1209
|
-
return;
|
|
1210
|
-
}
|
|
1211
|
-
if (rootSpanAttributes.get('next.span_type') !== next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_9__.BaseServerSpan.handleRequest) {
|
|
1212
|
-
console.warn(`Unexpected root span type '${rootSpanAttributes.get('next.span_type')}'. Please report this Next.js issue https://github.com/vercel/next.js`);
|
|
1213
|
-
return;
|
|
1214
|
-
}
|
|
1215
|
-
const route = rootSpanAttributes.get('next.route') || normalizedSrcPage;
|
|
1216
|
-
const name = `${method} ${route}`;
|
|
1217
|
-
currentSpan.setAttributes({
|
|
1218
|
-
'next.route': route,
|
|
1219
|
-
'http.route': route,
|
|
1220
|
-
'next.span_name': name
|
|
1221
|
-
});
|
|
1222
|
-
currentSpan.updateName(name);
|
|
1223
|
-
// Propagate http.route to the request's root span if it isn't the
|
|
1224
|
-
// request span (e.g. a platform-created HTTP span in adapter
|
|
1225
|
-
// deployments).
|
|
1226
|
-
if (requestRootSpan && requestRootSpan !== currentSpan) {
|
|
1227
|
-
requestRootSpan.setAttribute('http.route', route);
|
|
1228
|
-
requestRootSpan.updateName(name);
|
|
1229
|
-
}
|
|
1230
|
-
})();
|
|
1231
|
-
}
|
|
1232
|
-
};
|
|
1233
|
-
// When invoked directly, the request span was started before `prepare`;
|
|
1234
|
-
// record the request target as normalized by it. next-server's request span
|
|
1235
|
-
// already has it.
|
|
1236
|
-
if (!isWrappedByNextServer && req.url !== undefined) {
|
|
1237
|
-
requestSpan == null ? void 0 : requestSpan.setAttribute('http.target', req.url);
|
|
1238
|
-
}
|
|
1239
|
-
await handleResponse(requestSpan);
|
|
1240
|
-
}
|
|
1241
|
-
|
|
1242
|
-
//# sourceMappingURL=app-route.js.map
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
/***/ }),
|
|
1246
|
-
|
|
1247
|
-
/***/ 455511:
|
|
1248
|
-
/***/ ((module) => {
|
|
1249
|
-
|
|
1250
|
-
module.exports = require("crypto");
|
|
1251
|
-
|
|
1252
|
-
/***/ }),
|
|
1253
|
-
|
|
1254
|
-
/***/ 529294:
|
|
1255
|
-
/***/ ((module) => {
|
|
1256
|
-
|
|
1257
|
-
module.exports = require("next/dist/server/app-render/work-async-storage.external.js");
|
|
1258
|
-
|
|
1259
|
-
/***/ }),
|
|
1260
|
-
|
|
1261
|
-
/***/ 594735:
|
|
1262
|
-
/***/ ((module) => {
|
|
1263
|
-
|
|
1264
|
-
module.exports = require("events");
|
|
1265
|
-
|
|
1266
|
-
/***/ }),
|
|
1267
|
-
|
|
1268
|
-
/***/ 629021:
|
|
1269
|
-
/***/ ((module) => {
|
|
1270
|
-
|
|
1271
|
-
module.exports = require("fs");
|
|
1272
|
-
|
|
1273
|
-
/***/ }),
|
|
1274
|
-
|
|
1275
|
-
/***/ 638522:
|
|
1276
|
-
/***/ ((module) => {
|
|
1277
|
-
|
|
1278
|
-
module.exports = require("node:zlib");
|
|
1279
|
-
|
|
1280
|
-
/***/ }),
|
|
1281
|
-
|
|
1282
|
-
/***/ 663033:
|
|
1283
|
-
/***/ ((module) => {
|
|
1284
|
-
|
|
1285
|
-
module.exports = require("next/dist/server/app-render/work-unit-async-storage.external.js");
|
|
1286
|
-
|
|
1287
|
-
/***/ }),
|
|
1288
|
-
|
|
1289
|
-
/***/ 710846:
|
|
1290
|
-
/***/ ((module) => {
|
|
1291
|
-
|
|
1292
|
-
module.exports = require("next/dist/compiled/next-server/app-page.runtime.prod.js");
|
|
1293
|
-
|
|
1294
|
-
/***/ }),
|
|
1295
|
-
|
|
1296
|
-
/***/ 723619:
|
|
1297
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1298
|
-
|
|
1299
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1300
|
-
/* harmony export */ AT: () => (/* binding */ thinkingReductionParams),
|
|
1301
|
-
/* harmony export */ _8: () => (/* binding */ modelCapabilities),
|
|
1302
|
-
/* harmony export */ ne: () => (/* binding */ modelThinksByDefault)
|
|
1303
|
-
/* harmony export */ });
|
|
1304
|
-
/* unused harmony exports modelSupportsImages, isProviderClassified */
|
|
1305
|
-
/**
|
|
1306
|
-
* Static per-provider classification of which model ids accept image inputs.
|
|
1307
|
-
*
|
|
1308
|
-
* Used purely to surface UI hints — "this agent's model can read WhatsApp
|
|
1309
|
-
* images" — so a user can pick a vision-capable model BEFORE pointing a
|
|
1310
|
-
* bridge route at an agent. The runtime never enforces this: the bridge
|
|
1311
|
-
* always forwards whatever payload it captured, and the provider returns
|
|
1312
|
-
* whatever ignore/error behaviour the upstream model chose if it isn't
|
|
1313
|
-
* actually multi-modal.
|
|
1314
|
-
*
|
|
1315
|
-
* Patterns intentionally err on the *generous* side. A false positive just
|
|
1316
|
-
* means the user sees no warning for a model that quietly ignores images;
|
|
1317
|
-
* a false negative would mean users see a scary warning on a model that
|
|
1318
|
-
* actually works fine. We update the patterns as new model families ship.
|
|
1319
|
-
*
|
|
1320
|
-
* NOTE: this module is intentionally free of server-only imports so the
|
|
1321
|
-
* BridgeEditor / AgentEditor UIs can import it directly.
|
|
1322
|
-
*/ const PATTERNS = {
|
|
1323
|
-
// OpenAI — every modern flagship is multi-modal; only the legacy
|
|
1324
|
-
// gpt-3.5-* / text-davinci-* / o3-mini-text family stay text-only.
|
|
1325
|
-
openai: [
|
|
1326
|
-
/^gpt-4o/i,
|
|
1327
|
-
/^gpt-4\.1/i,
|
|
1328
|
-
/^gpt-4-turbo/i,
|
|
1329
|
-
/^gpt-4-vision/i,
|
|
1330
|
-
/^gpt-5/i,
|
|
1331
|
-
/^chatgpt-4o/i,
|
|
1332
|
-
/^o[134](?:-|$)/i
|
|
1333
|
-
],
|
|
1334
|
-
// Anthropic — Claude 3 onwards is vision-native across all tiers.
|
|
1335
|
-
anthropic: [
|
|
1336
|
-
/^claude-3/i,
|
|
1337
|
-
/^claude-sonnet/i,
|
|
1338
|
-
/^claude-opus/i,
|
|
1339
|
-
/^claude-haiku-4/i,
|
|
1340
|
-
/^claude-[45](?:-|$)/i
|
|
1341
|
-
],
|
|
1342
|
-
// Google — Gemini 1.5+ are multi-modal; legacy gemini-pro is text-only,
|
|
1343
|
-
// but gemini-pro-vision was the explicit vision SKU before 1.5.
|
|
1344
|
-
gemini: [
|
|
1345
|
-
/^gemini-(1\.5|2|3)/i,
|
|
1346
|
-
/^gemini-pro-vision/i
|
|
1347
|
-
],
|
|
1348
|
-
// GitHub Copilot — proxies vision-capable models from OpenAI / Anthropic /
|
|
1349
|
-
// Google. Mirror those families (the actual capability is gated server-
|
|
1350
|
-
// side by Copilot; we just don't warn).
|
|
1351
|
-
"github-copilot": [
|
|
1352
|
-
/^gpt-4o/i,
|
|
1353
|
-
/^gpt-4\.1/i,
|
|
1354
|
-
/^gpt-5/i,
|
|
1355
|
-
/^o[134](?:-|$)/i,
|
|
1356
|
-
/^claude-3/i,
|
|
1357
|
-
/^claude-sonnet/i,
|
|
1358
|
-
/^claude-opus/i,
|
|
1359
|
-
/^claude-haiku-4/i,
|
|
1360
|
-
/^claude-[45](?:-|$)/i,
|
|
1361
|
-
/^gemini-(1\.5|2|3)/i
|
|
1362
|
-
],
|
|
1363
|
-
// DeepSeek V4.1 Flash is multimodal (`deepseek-v4-flash` is a legacy alias for it);
|
|
1364
|
-
// V4 Pro and Cohere chat SKUs are text-only.
|
|
1365
|
-
deepseek: [
|
|
1366
|
-
/^deepseek-(?:v4-)?flash/i
|
|
1367
|
-
],
|
|
1368
|
-
cohere: [],
|
|
1369
|
-
// LangChain pass-through could be anything; treat as unknown (handled
|
|
1370
|
-
// separately below) rather than yes/no.
|
|
1371
|
-
langchain: [],
|
|
1372
|
-
// Tests assume the mock accepts images.
|
|
1373
|
-
mock: [
|
|
1374
|
-
/.*/
|
|
1375
|
-
]
|
|
1376
|
-
};
|
|
1377
|
-
/**
|
|
1378
|
-
* Returns true when the given (provider, model_id) pair is known to accept
|
|
1379
|
-
* image inputs. Unknown providers / models return false — call
|
|
1380
|
-
* `isProviderClassified` if you want to distinguish "definitely no" from
|
|
1381
|
-
* "we don't recognize this".
|
|
1382
|
-
*/ function modelSupportsImages(provider, modelId) {
|
|
1383
|
-
const pats = PATTERNS[provider.toLowerCase()] ?? [];
|
|
1384
|
-
return pats.some((re)=>re.test(modelId));
|
|
889
|
+
module.exports = require("next/dist/compiled/next-server/app-page.runtime.prod.js");
|
|
890
|
+
|
|
891
|
+
/***/ }),
|
|
892
|
+
|
|
893
|
+
/***/ 723619:
|
|
894
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
895
|
+
|
|
896
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
897
|
+
/* harmony export */ AT: () => (/* binding */ thinkingReductionParams),
|
|
898
|
+
/* harmony export */ _8: () => (/* binding */ modelCapabilities),
|
|
899
|
+
/* harmony export */ ne: () => (/* binding */ modelThinksByDefault)
|
|
900
|
+
/* harmony export */ });
|
|
901
|
+
/* unused harmony exports modelSupportsImages, isProviderClassified */
|
|
902
|
+
/**
|
|
903
|
+
* Static per-provider classification of which model ids accept image inputs.
|
|
904
|
+
*
|
|
905
|
+
* Used purely to surface UI hints — "this agent's model can read WhatsApp
|
|
906
|
+
* images" — so a user can pick a vision-capable model BEFORE pointing a
|
|
907
|
+
* bridge route at an agent. The runtime never enforces this: the bridge
|
|
908
|
+
* always forwards whatever payload it captured, and the provider returns
|
|
909
|
+
* whatever ignore/error behaviour the upstream model chose if it isn't
|
|
910
|
+
* actually multi-modal.
|
|
911
|
+
*
|
|
912
|
+
* Patterns intentionally err on the *generous* side. A false positive just
|
|
913
|
+
* means the user sees no warning for a model that quietly ignores images;
|
|
914
|
+
* a false negative would mean users see a scary warning on a model that
|
|
915
|
+
* actually works fine. We update the patterns as new model families ship.
|
|
916
|
+
*
|
|
917
|
+
* NOTE: this module is intentionally free of server-only imports so the
|
|
918
|
+
* BridgeEditor / AgentEditor UIs can import it directly.
|
|
919
|
+
*/ const PATTERNS = {
|
|
920
|
+
// OpenAI — every modern flagship is multi-modal; only the legacy
|
|
921
|
+
// gpt-3.5-* / text-davinci-* / o3-mini-text family stay text-only.
|
|
922
|
+
openai: [
|
|
923
|
+
/^gpt-4o/i,
|
|
924
|
+
/^gpt-4\.1/i,
|
|
925
|
+
/^gpt-4-turbo/i,
|
|
926
|
+
/^gpt-4-vision/i,
|
|
927
|
+
/^gpt-5/i,
|
|
928
|
+
/^chatgpt-4o/i,
|
|
929
|
+
/^o[134](?:-|$)/i
|
|
930
|
+
],
|
|
931
|
+
// Anthropic — Claude 3 onwards is vision-native across all tiers.
|
|
932
|
+
anthropic: [
|
|
933
|
+
/^claude-3/i,
|
|
934
|
+
/^claude-sonnet/i,
|
|
935
|
+
/^claude-opus/i,
|
|
936
|
+
/^claude-haiku-4/i,
|
|
937
|
+
/^claude-[45](?:-|$)/i
|
|
938
|
+
],
|
|
939
|
+
// Google — Gemini 1.5+ are multi-modal; legacy gemini-pro is text-only,
|
|
940
|
+
// but gemini-pro-vision was the explicit vision SKU before 1.5.
|
|
941
|
+
gemini: [
|
|
942
|
+
/^gemini-(1\.5|2|3)/i,
|
|
943
|
+
/^gemini-pro-vision/i
|
|
944
|
+
],
|
|
945
|
+
// GitHub Copilot — proxies vision-capable models from OpenAI / Anthropic /
|
|
946
|
+
// Google. Mirror those families (the actual capability is gated server-
|
|
947
|
+
// side by Copilot; we just don't warn).
|
|
948
|
+
"github-copilot": [
|
|
949
|
+
/^gpt-4o/i,
|
|
950
|
+
/^gpt-4\.1/i,
|
|
951
|
+
/^gpt-5/i,
|
|
952
|
+
/^o[134](?:-|$)/i,
|
|
953
|
+
/^claude-3/i,
|
|
954
|
+
/^claude-sonnet/i,
|
|
955
|
+
/^claude-opus/i,
|
|
956
|
+
/^claude-haiku-4/i,
|
|
957
|
+
/^claude-[45](?:-|$)/i,
|
|
958
|
+
/^gemini-(1\.5|2|3)/i
|
|
959
|
+
],
|
|
960
|
+
// DeepSeek V4.1 Flash is multimodal (`deepseek-v4-flash` is a legacy alias for it);
|
|
961
|
+
// V4 Pro and Cohere chat SKUs are text-only.
|
|
962
|
+
deepseek: [
|
|
963
|
+
/^deepseek-(?:v4-)?flash/i
|
|
964
|
+
],
|
|
965
|
+
cohere: [],
|
|
966
|
+
// LangChain pass-through could be anything; treat as unknown (handled
|
|
967
|
+
// separately below) rather than yes/no.
|
|
968
|
+
langchain: [],
|
|
969
|
+
// Tests assume the mock accepts images.
|
|
970
|
+
mock: [
|
|
971
|
+
/.*/
|
|
972
|
+
]
|
|
973
|
+
};
|
|
974
|
+
/**
|
|
975
|
+
* Returns true when the given (provider, model_id) pair is known to accept
|
|
976
|
+
* image inputs. Unknown providers / models return false — call
|
|
977
|
+
* `isProviderClassified` if you want to distinguish "definitely no" from
|
|
978
|
+
* "we don't recognize this".
|
|
979
|
+
*/ function modelSupportsImages(provider, modelId) {
|
|
980
|
+
const pats = PATTERNS[provider.toLowerCase()] ?? [];
|
|
981
|
+
return pats.some((re)=>re.test(modelId));
|
|
1385
982
|
}
|
|
1386
983
|
/**
|
|
1387
984
|
* True when we have an explicit capability list for the provider. Used by
|
|
@@ -1551,125 +1148,701 @@ function matchesAny(map, provider, modelId) {
|
|
|
1551
1148
|
}
|
|
1552
1149
|
|
|
1553
1150
|
|
|
1554
|
-
/***/ }),
|
|
1151
|
+
/***/ }),
|
|
1152
|
+
|
|
1153
|
+
/***/ 731421:
|
|
1154
|
+
/***/ ((module) => {
|
|
1155
|
+
|
|
1156
|
+
module.exports = require("node:child_process");
|
|
1157
|
+
|
|
1158
|
+
/***/ }),
|
|
1159
|
+
|
|
1160
|
+
/***/ 739947:
|
|
1161
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1162
|
+
|
|
1163
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1164
|
+
/* harmony export */ Bm: () => (/* binding */ cachedJson),
|
|
1165
|
+
/* harmony export */ HN: () => (/* binding */ notFoundResponse),
|
|
1166
|
+
/* harmony export */ Jb: () => (/* binding */ validateBody),
|
|
1167
|
+
/* harmony export */ K2: () => (/* binding */ createdResponse),
|
|
1168
|
+
/* harmony export */ Ng: () => (/* binding */ noStoreJson),
|
|
1169
|
+
/* harmony export */ yj: () => (/* binding */ errorResponse)
|
|
1170
|
+
/* harmony export */ });
|
|
1171
|
+
/* harmony import */ var next_server__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(945592);
|
|
1172
|
+
// Shared HTTP response builders for app/api/v1/** route handlers.
|
|
1173
|
+
//
|
|
1174
|
+
// Goal: every error/success payload across the v1 surface has the same
|
|
1175
|
+
// shape. Before this lived inline, response bodies drifted —
|
|
1176
|
+
// `{error: "x"}` vs `{message: "x"}`, 400 vs 422 for the same condition,
|
|
1177
|
+
// some routes returned Zod's raw issue array, others stringified it.
|
|
1178
|
+
|
|
1179
|
+
function errorResponse(message, status = 400) {
|
|
1180
|
+
return next_server__WEBPACK_IMPORTED_MODULE_0__.NextResponse.json({
|
|
1181
|
+
error: message
|
|
1182
|
+
}, {
|
|
1183
|
+
status
|
|
1184
|
+
});
|
|
1185
|
+
}
|
|
1186
|
+
function notFoundResponse(message = "Not found") {
|
|
1187
|
+
return errorResponse(message, 404);
|
|
1188
|
+
}
|
|
1189
|
+
function createdResponse(data) {
|
|
1190
|
+
return next_server__WEBPACK_IMPORTED_MODULE_0__.NextResponse.json(data, {
|
|
1191
|
+
status: 201
|
|
1192
|
+
});
|
|
1193
|
+
}
|
|
1194
|
+
// Wrap a 200 JSON response with a private Cache-Control header. Use on safe
|
|
1195
|
+
// GET endpoints that serve user-scoped data the client refetches often (panel
|
|
1196
|
+
// mounts, navigation back/forward) but mutates rarely. The TTL is short
|
|
1197
|
+
// enough that explicit mutations — which patch the client-side ApiClient
|
|
1198
|
+
// cache in place — stay observably consistent without an extra roundtrip.
|
|
1199
|
+
//
|
|
1200
|
+
// swrSeconds (optional): stale-while-revalidate window. When set, the browser
|
|
1201
|
+
// serves the cached response immediately and refreshes in the background,
|
|
1202
|
+
// making navigation feel instant. Use for data that can tolerate brief
|
|
1203
|
+
// staleness (tool list, agent configs, model list). Omit for real-time data
|
|
1204
|
+
// (dashboard metrics, credential state).
|
|
1205
|
+
function cachedJson(data, maxAgeSeconds, swrSeconds) {
|
|
1206
|
+
const swr = swrSeconds ? `, stale-while-revalidate=${swrSeconds}` : "";
|
|
1207
|
+
return next_server__WEBPACK_IMPORTED_MODULE_0__.NextResponse.json(data, {
|
|
1208
|
+
headers: {
|
|
1209
|
+
"Cache-Control": `private, max-age=${maxAgeSeconds}${swr}`
|
|
1210
|
+
}
|
|
1211
|
+
});
|
|
1212
|
+
}
|
|
1213
|
+
// Use for endpoints whose response contains live state that must never be
|
|
1214
|
+
// served from cache — credentials, connection status, live config values.
|
|
1215
|
+
function noStoreJson(data) {
|
|
1216
|
+
return next_server__WEBPACK_IMPORTED_MODULE_0__.NextResponse.json(data, {
|
|
1217
|
+
headers: {
|
|
1218
|
+
"Cache-Control": "no-store"
|
|
1219
|
+
}
|
|
1220
|
+
});
|
|
1221
|
+
}
|
|
1222
|
+
// Validate a JSON request body against a zod schema.
|
|
1223
|
+
// Returns either the parsed data or a 400 NextResponse explaining the issue.
|
|
1224
|
+
// Caller pattern:
|
|
1225
|
+
// const parsed = await validateBody(req, Schema);
|
|
1226
|
+
// if (parsed instanceof NextResponse) return parsed;
|
|
1227
|
+
// // use parsed.field
|
|
1228
|
+
async function validateBody(req, schema) {
|
|
1229
|
+
let raw;
|
|
1230
|
+
try {
|
|
1231
|
+
raw = await req.json();
|
|
1232
|
+
} catch {
|
|
1233
|
+
return errorResponse("Request body must be valid JSON", 400);
|
|
1234
|
+
}
|
|
1235
|
+
const parsed = schema.safeParse(raw);
|
|
1236
|
+
if (!parsed.success) {
|
|
1237
|
+
return errorResponse(parsed.error.issues[0]?.message ?? "invalid body", 400);
|
|
1238
|
+
}
|
|
1239
|
+
return parsed.data;
|
|
1240
|
+
}
|
|
1241
|
+
|
|
1242
|
+
|
|
1243
|
+
/***/ }),
|
|
1244
|
+
|
|
1245
|
+
/***/ 744870:
|
|
1246
|
+
/***/ ((module) => {
|
|
1247
|
+
|
|
1248
|
+
module.exports = require("next/dist/compiled/next-server/app-route.runtime.prod.js");
|
|
1249
|
+
|
|
1250
|
+
/***/ }),
|
|
1251
|
+
|
|
1252
|
+
/***/ 775502:
|
|
1253
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1254
|
+
|
|
1255
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1256
|
+
/* harmony export */ In: () => (/* binding */ saveModelMetadata),
|
|
1257
|
+
/* harmony export */ L5: () => (/* binding */ capabilityKeySchema),
|
|
1258
|
+
/* harmony export */ Zp: () => (/* binding */ resolvedModelMetadata),
|
|
1259
|
+
/* harmony export */ nY: () => (/* binding */ listModelMetadata),
|
|
1260
|
+
/* harmony export */ qT: () => (/* binding */ saveProviderFeatures),
|
|
1261
|
+
/* harmony export */ rk: () => (/* binding */ listProviderFeatures)
|
|
1262
|
+
/* harmony export */ });
|
|
1263
|
+
/* unused harmony exports modelMetadataSchema, providerFeatureSchema, canonicalMetadataProvider */
|
|
1264
|
+
/* harmony import */ var zod__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(497377);
|
|
1265
|
+
/* harmony import */ var zod__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(576658);
|
|
1266
|
+
/* harmony import */ var _lib_db__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(251244);
|
|
1267
|
+
/* harmony import */ var _lib_db_transaction__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(999043);
|
|
1268
|
+
/* harmony import */ var _lib_providers_capabilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(723619);
|
|
1269
|
+
|
|
1270
|
+
|
|
1271
|
+
|
|
1272
|
+
|
|
1273
|
+
const capabilityKeySchema = zod__WEBPACK_IMPORTED_MODULE_3__/* ["enum"] */ .k5n([
|
|
1274
|
+
"vision",
|
|
1275
|
+
"tools",
|
|
1276
|
+
"streaming",
|
|
1277
|
+
"json_mode",
|
|
1278
|
+
"web_search",
|
|
1279
|
+
"audio",
|
|
1280
|
+
"files"
|
|
1281
|
+
]);
|
|
1282
|
+
const provenance = {
|
|
1283
|
+
evidence: zod__WEBPACK_IMPORTED_MODULE_3__/* .string */ .YjP().trim().min(1).max(1200),
|
|
1284
|
+
source_url: zod__WEBPACK_IMPORTED_MODULE_3__/* .url */ .OZ5(),
|
|
1285
|
+
checked_at: zod__WEBPACK_IMPORTED_MODULE_4__/* .datetime */ .w$()
|
|
1286
|
+
};
|
|
1287
|
+
const modelMetadataSchema = zod__WEBPACK_IMPORTED_MODULE_3__/* .object */ .Ikc({
|
|
1288
|
+
provider: zod__WEBPACK_IMPORTED_MODULE_3__/* .string */ .YjP().min(1),
|
|
1289
|
+
model_id: zod__WEBPACK_IMPORTED_MODULE_3__/* .string */ .YjP().min(1),
|
|
1290
|
+
version: zod__WEBPACK_IMPORTED_MODULE_3__/* .object */ .Ikc({
|
|
1291
|
+
value: zod__WEBPACK_IMPORTED_MODULE_3__/* .string */ .YjP().min(1),
|
|
1292
|
+
...provenance
|
|
1293
|
+
}).optional(),
|
|
1294
|
+
capabilities: zod__WEBPACK_IMPORTED_MODULE_3__/* .partialRecord */ .jgl(capabilityKeySchema, zod__WEBPACK_IMPORTED_MODULE_3__/* .object */ .Ikc({
|
|
1295
|
+
value: zod__WEBPACK_IMPORTED_MODULE_3__/* .boolean */ .zMY(),
|
|
1296
|
+
...provenance
|
|
1297
|
+
}))
|
|
1298
|
+
});
|
|
1299
|
+
const providerFeatureSchema = zod__WEBPACK_IMPORTED_MODULE_3__/* .object */ .Ikc({
|
|
1300
|
+
provider: zod__WEBPACK_IMPORTED_MODULE_3__/* .string */ .YjP().min(1),
|
|
1301
|
+
feature: zod__WEBPACK_IMPORTED_MODULE_3__/* ["enum"] */ .k5n([
|
|
1302
|
+
"web_search",
|
|
1303
|
+
"web_fetch"
|
|
1304
|
+
]),
|
|
1305
|
+
...provenance
|
|
1306
|
+
});
|
|
1307
|
+
const NAMESPACE = "model-metadata";
|
|
1308
|
+
function canonicalMetadataProvider(provider) {
|
|
1309
|
+
const canonical = provider.trim().toLowerCase();
|
|
1310
|
+
return canonical === "google-gemini" || canonical === "google" ? "gemini" : canonical;
|
|
1311
|
+
}
|
|
1312
|
+
function listModelMetadata(provider) {
|
|
1313
|
+
const rows = (0,_lib_db__WEBPACK_IMPORTED_MODULE_0__/* .getDb */ .Lf)().prepare("SELECT value FROM memory_store WHERE namespace=?").all(NAMESPACE);
|
|
1314
|
+
return rows.map((row)=>modelMetadataSchema.parse(JSON.parse(row.value))).filter((row)=>!provider || row.provider === canonicalMetadataProvider(provider));
|
|
1315
|
+
}
|
|
1316
|
+
function saveModelMetadata(observations) {
|
|
1317
|
+
(0,_lib_db_transaction__WEBPACK_IMPORTED_MODULE_1__/* .withDbTransaction */ .J)(()=>{
|
|
1318
|
+
const previous = new Map(listModelMetadata().map((row)=>[
|
|
1319
|
+
`${row.provider}:${row.model_id}`,
|
|
1320
|
+
row
|
|
1321
|
+
]));
|
|
1322
|
+
const now = new Date().toISOString();
|
|
1323
|
+
const statement = (0,_lib_db__WEBPACK_IMPORTED_MODULE_0__/* .getDb */ .Lf)().prepare("INSERT INTO memory_store (namespace,key,value,created_at,updated_at) VALUES (?,?,?,?,?) " + "ON CONFLICT(namespace,key) DO UPDATE SET value=excluded.value,updated_at=excluded.updated_at");
|
|
1324
|
+
for (const observation of observations){
|
|
1325
|
+
const row = modelMetadataSchema.parse({
|
|
1326
|
+
...observation,
|
|
1327
|
+
provider: canonicalMetadataProvider(observation.provider),
|
|
1328
|
+
model_id: observation.model_id.trim().toLowerCase()
|
|
1329
|
+
});
|
|
1330
|
+
const key = `${row.provider}:${row.model_id}`;
|
|
1331
|
+
const old = previous.get(key);
|
|
1332
|
+
const merged = {
|
|
1333
|
+
...old,
|
|
1334
|
+
...row,
|
|
1335
|
+
version: row.version ?? old?.version,
|
|
1336
|
+
capabilities: {
|
|
1337
|
+
...old?.capabilities,
|
|
1338
|
+
...row.capabilities
|
|
1339
|
+
}
|
|
1340
|
+
};
|
|
1341
|
+
statement.run(NAMESPACE, key, JSON.stringify(merged), now, now);
|
|
1342
|
+
previous.set(key, merged);
|
|
1343
|
+
}
|
|
1344
|
+
});
|
|
1345
|
+
}
|
|
1346
|
+
function resolvedModelMetadata(provider, modelId, rows = listModelMetadata(provider)) {
|
|
1347
|
+
const metadata = rows.find((row)=>row.provider === canonicalMetadataProvider(provider) && row.model_id === modelId.toLowerCase());
|
|
1348
|
+
const capabilities = (0,_lib_providers_capabilities__WEBPACK_IMPORTED_MODULE_2__/* .modelCapabilities */ ._8)(canonicalMetadataProvider(provider), modelId);
|
|
1349
|
+
for (const key of capabilityKeySchema.options){
|
|
1350
|
+
const observation = metadata?.capabilities[key];
|
|
1351
|
+
if (observation) capabilities[key] = observation.value;
|
|
1352
|
+
}
|
|
1353
|
+
return {
|
|
1354
|
+
capabilities,
|
|
1355
|
+
model_metadata: metadata
|
|
1356
|
+
};
|
|
1357
|
+
}
|
|
1358
|
+
function listProviderFeatures() {
|
|
1359
|
+
const rows = (0,_lib_db__WEBPACK_IMPORTED_MODULE_0__/* .getDb */ .Lf)().prepare("SELECT value FROM memory_store WHERE namespace=?").all("provider-api-features");
|
|
1360
|
+
return rows.map((row)=>providerFeatureSchema.parse(JSON.parse(row.value)));
|
|
1361
|
+
}
|
|
1362
|
+
function saveProviderFeatures(features) {
|
|
1363
|
+
(0,_lib_db_transaction__WEBPACK_IMPORTED_MODULE_1__/* .withDbTransaction */ .J)(()=>{
|
|
1364
|
+
const statement = (0,_lib_db__WEBPACK_IMPORTED_MODULE_0__/* .getDb */ .Lf)().prepare("INSERT INTO memory_store (namespace,key,value,created_at,updated_at) VALUES (?,?,?,?,?) " + "ON CONFLICT(namespace,key) DO UPDATE SET value=excluded.value,updated_at=excluded.updated_at");
|
|
1365
|
+
const now = new Date().toISOString();
|
|
1366
|
+
for (const feature of features){
|
|
1367
|
+
const row = providerFeatureSchema.parse(feature);
|
|
1368
|
+
statement.run("provider-api-features", `${row.provider}:${row.feature}`, JSON.stringify(row), now, now);
|
|
1369
|
+
}
|
|
1370
|
+
});
|
|
1371
|
+
}
|
|
1372
|
+
|
|
1373
|
+
|
|
1374
|
+
/***/ }),
|
|
1375
|
+
|
|
1376
|
+
/***/ 775919:
|
|
1377
|
+
/***/ ((module) => {
|
|
1378
|
+
|
|
1379
|
+
module.exports = require("node:worker_threads");
|
|
1380
|
+
|
|
1381
|
+
/***/ }),
|
|
1382
|
+
|
|
1383
|
+
/***/ 777030:
|
|
1384
|
+
/***/ ((module) => {
|
|
1385
|
+
|
|
1386
|
+
module.exports = require("node:net");
|
|
1387
|
+
|
|
1388
|
+
/***/ }),
|
|
1389
|
+
|
|
1390
|
+
/***/ 781630:
|
|
1391
|
+
/***/ ((module) => {
|
|
1392
|
+
|
|
1393
|
+
module.exports = require("http");
|
|
1394
|
+
|
|
1395
|
+
/***/ }),
|
|
1396
|
+
|
|
1397
|
+
/***/ 823836:
|
|
1398
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1399
|
+
|
|
1400
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1401
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1402
|
+
/* harmony export */ handler: () => (/* binding */ handler),
|
|
1403
|
+
/* harmony export */ patchFetch: () => (/* binding */ patchFetch),
|
|
1404
|
+
/* harmony export */ routeModule: () => (/* binding */ routeModule),
|
|
1405
|
+
/* harmony export */ serverHooks: () => (/* binding */ serverHooks),
|
|
1406
|
+
/* harmony export */ workAsyncStorage: () => (/* binding */ workAsyncStorage),
|
|
1407
|
+
/* harmony export */ workUnitAsyncStorage: () => (/* binding */ workUnitAsyncStorage)
|
|
1408
|
+
/* harmony export */ });
|
|
1409
|
+
/* harmony import */ var next_dist_server_route_modules_app_route_module_compiled__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(319225);
|
|
1410
|
+
/* 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__);
|
|
1411
|
+
/* harmony import */ var next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(684006);
|
|
1412
|
+
/* harmony import */ var next_dist_server_lib_patch_fetch__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8317);
|
|
1413
|
+
/* 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__);
|
|
1414
|
+
/* harmony import */ var next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(799373);
|
|
1415
|
+
/* 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__);
|
|
1416
|
+
/* harmony import */ var next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(434775);
|
|
1417
|
+
/* 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__);
|
|
1418
|
+
/* harmony import */ var next_dist_server_app_render_manifests_singleton__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(524235);
|
|
1419
|
+
/* 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__);
|
|
1420
|
+
/* harmony import */ var next_dist_shared_lib_router_utils_app_paths__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(200261);
|
|
1421
|
+
/* 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__);
|
|
1422
|
+
/* harmony import */ var next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(754365);
|
|
1423
|
+
/* 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__);
|
|
1424
|
+
/* harmony import */ var next_dist_server_web_spec_extension_adapters_next_request__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(590771);
|
|
1425
|
+
/* 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__);
|
|
1426
|
+
/* harmony import */ var next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(473461);
|
|
1427
|
+
/* 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__);
|
|
1428
|
+
/* harmony import */ var next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(767798);
|
|
1429
|
+
/* harmony import */ var next_dist_server_send_response__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(192280);
|
|
1430
|
+
/* harmony import */ var next_dist_server_web_utils__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(662018);
|
|
1431
|
+
/* 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__);
|
|
1432
|
+
/* harmony import */ var next_dist_server_lib_cache_control__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(445696);
|
|
1433
|
+
/* harmony import */ var next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(347929);
|
|
1434
|
+
/* harmony import */ var next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__);
|
|
1435
|
+
/* harmony import */ var next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(986439);
|
|
1436
|
+
/* 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__);
|
|
1437
|
+
/* harmony import */ var next_dist_server_lib_route_cache_key__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(710246);
|
|
1438
|
+
/* 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__);
|
|
1439
|
+
/* harmony import */ var next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(137527);
|
|
1440
|
+
/* 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__);
|
|
1441
|
+
|
|
1442
|
+
|
|
1555
1443
|
|
|
1556
|
-
/***/ 731421:
|
|
1557
|
-
/***/ ((module) => {
|
|
1558
1444
|
|
|
1559
|
-
module.exports = require("node:child_process");
|
|
1560
1445
|
|
|
1561
|
-
/***/ }),
|
|
1562
1446
|
|
|
1563
|
-
/***/ 739947:
|
|
1564
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1565
1447
|
|
|
1566
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1567
|
-
/* harmony export */ Bm: () => (/* binding */ cachedJson),
|
|
1568
|
-
/* harmony export */ HN: () => (/* binding */ notFoundResponse),
|
|
1569
|
-
/* harmony export */ Jb: () => (/* binding */ validateBody),
|
|
1570
|
-
/* harmony export */ K2: () => (/* binding */ createdResponse),
|
|
1571
|
-
/* harmony export */ Ng: () => (/* binding */ noStoreJson),
|
|
1572
|
-
/* harmony export */ yj: () => (/* binding */ errorResponse)
|
|
1573
|
-
/* harmony export */ });
|
|
1574
|
-
/* harmony import */ var next_server__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(945592);
|
|
1575
|
-
// Shared HTTP response builders for app/api/v1/** route handlers.
|
|
1576
|
-
//
|
|
1577
|
-
// Goal: every error/success payload across the v1 surface has the same
|
|
1578
|
-
// shape. Before this lived inline, response bodies drifted —
|
|
1579
|
-
// `{error: "x"}` vs `{message: "x"}`, 400 vs 422 for the same condition,
|
|
1580
|
-
// some routes returned Zod's raw issue array, others stringified it.
|
|
1581
1448
|
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1449
|
+
|
|
1450
|
+
|
|
1451
|
+
|
|
1452
|
+
|
|
1453
|
+
|
|
1454
|
+
|
|
1455
|
+
|
|
1456
|
+
|
|
1457
|
+
|
|
1458
|
+
|
|
1459
|
+
// We inject the nextConfigOutput here so that we can use them in the route
|
|
1460
|
+
// module.
|
|
1461
|
+
const nextConfigOutput = "standalone"
|
|
1462
|
+
const routeModule = new next_dist_server_route_modules_app_route_module_compiled__WEBPACK_IMPORTED_MODULE_0__.AppRouteRouteModule({
|
|
1463
|
+
definition: {
|
|
1464
|
+
kind: next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__.RouteKind.APP_ROUTE,
|
|
1465
|
+
page: "/api/v1/providers/[provider]/models/route",
|
|
1466
|
+
pathname: "/api/v1/providers/[provider]/models",
|
|
1467
|
+
filename: "route",
|
|
1468
|
+
bundlePath: "app/api/v1/providers/[provider]/models/route"
|
|
1469
|
+
},
|
|
1470
|
+
distDir: ".next" || 0,
|
|
1471
|
+
relativeProjectDir: false || '',
|
|
1472
|
+
resolvedPagePath: "/home/runner/work/jarela/jarela/app/api/v1/providers/[provider]/models/route.ts",
|
|
1473
|
+
nextConfigOutput,
|
|
1474
|
+
// The lazy require factory ensures that:
|
|
1475
|
+
// - In dev: devRequestTimingInternalsEnd is set before userland executes,
|
|
1476
|
+
// correctly attributing module load time to application-code rather than
|
|
1477
|
+
// framework internals.
|
|
1478
|
+
// - In all modes: async modules (route files with top-level await) are
|
|
1479
|
+
// handled correctly — require() returns a Promise for such modules, which
|
|
1480
|
+
// ensureUserland() awaits before the first request is handled.
|
|
1481
|
+
userland: ()=>__webpack_require__(193748),
|
|
1482
|
+
// In Turbopack dev mode, also provide a synchronous per-request getter so
|
|
1483
|
+
// server HMR updates are picked up without re-executing the entry chunk.
|
|
1484
|
+
// Using require() (synchronous) avoids adding async overhead that would be
|
|
1485
|
+
// incorrectly attributed to application-code time in devRequestTiming.
|
|
1486
|
+
... false ? 0 : {}
|
|
1487
|
+
});
|
|
1488
|
+
// Pull out the exports that we need to expose from the module. This should
|
|
1489
|
+
// be eliminated when we've moved the other routes to the new format. These
|
|
1490
|
+
// are used to hook into the route.
|
|
1491
|
+
const { workAsyncStorage, workUnitAsyncStorage, serverHooks } = routeModule;
|
|
1492
|
+
function patchFetch() {
|
|
1493
|
+
return (0,next_dist_server_lib_patch_fetch__WEBPACK_IMPORTED_MODULE_2__.patchFetch)({
|
|
1494
|
+
workAsyncStorage,
|
|
1495
|
+
workUnitAsyncStorage
|
|
1587
1496
|
});
|
|
1588
1497
|
}
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1498
|
+
|
|
1499
|
+
async function handler(req, res, ctx) {
|
|
1500
|
+
if (ctx.requestMeta) {
|
|
1501
|
+
(0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.setRequestMeta)(req, ctx.requestMeta);
|
|
1502
|
+
}
|
|
1503
|
+
if (routeModule.isDev) {
|
|
1504
|
+
(0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.addRequestMeta)(req, 'devRequestTimingInternalsEnd', process.hrtime.bigint());
|
|
1505
|
+
}
|
|
1506
|
+
let srcPage = "/api/v1/providers/[provider]/models/route";
|
|
1507
|
+
// turbopack doesn't normalize `/index` in the page name
|
|
1508
|
+
// so we need to to process dynamic routes properly
|
|
1509
|
+
// TODO: fix turbopack providing differing value from webpack
|
|
1510
|
+
if (false) {} else if (srcPage === '/index') {
|
|
1511
|
+
// we always normalize /index specifically
|
|
1512
|
+
srcPage = '/';
|
|
1513
|
+
}
|
|
1514
|
+
const multiZoneDraftMode = false;
|
|
1515
|
+
// Registering `instrumentation.ts` usually installs the tracer provider, so
|
|
1516
|
+
// do it before starting the request span. The span is started before
|
|
1517
|
+
// `prepare`, so route module preparation is part of the request's trace.
|
|
1518
|
+
// When this request triggers registration, the lifecycle spans of
|
|
1519
|
+
// `instrumentation.ts` are emitted inside the request span.
|
|
1520
|
+
const { instrumentation } = await routeModule.ensureInstrumentation(req, {
|
|
1521
|
+
deferSpans: true
|
|
1595
1522
|
});
|
|
1523
|
+
return routeModule.traceRequest(req, {
|
|
1524
|
+
tracer: (0,next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.getTracer)(),
|
|
1525
|
+
spanName: `${req.method || 'GET'} ${srcPage}`,
|
|
1526
|
+
httpTarget: req.url,
|
|
1527
|
+
instrumentation
|
|
1528
|
+
}, (requestSpan, requestRootSpan)=>handleRequest(req, res, ctx, srcPage, multiZoneDraftMode, requestSpan, requestRootSpan));
|
|
1596
1529
|
}
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
const
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1530
|
+
async function handleRequest(req, res, ctx, srcPage, multiZoneDraftMode, requestSpan, requestRootSpan) {
|
|
1531
|
+
const prepareResult = await routeModule.prepare(req, res, {
|
|
1532
|
+
srcPage,
|
|
1533
|
+
multiZoneDraftMode
|
|
1534
|
+
});
|
|
1535
|
+
if (!prepareResult) {
|
|
1536
|
+
res.statusCode = 400;
|
|
1537
|
+
res.end('Bad Request');
|
|
1538
|
+
ctx.waitUntil == null ? void 0 : ctx.waitUntil.call(ctx, Promise.resolve());
|
|
1539
|
+
return null;
|
|
1540
|
+
}
|
|
1541
|
+
const { buildId, deploymentId, params, nextConfig, parsedUrl, isDraftMode, prerenderManifest, routerServerContext, isOnDemandRevalidate, revalidateOnlyGenerated, resolvedPathname, clientReferenceManifest, serverActionsManifest, previewProps } = prepareResult;
|
|
1542
|
+
const normalizedSrcPage = (0,next_dist_shared_lib_router_utils_app_paths__WEBPACK_IMPORTED_MODULE_6__.normalizeAppPath)(srcPage);
|
|
1543
|
+
// Only this route's prerenders can establish ISR or admit generated params.
|
|
1544
|
+
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]));
|
|
1545
|
+
let isIsr = Boolean(prerenderManifest.dynamicRoutes[normalizedSrcPage] || isPrerendered);
|
|
1546
|
+
const render404 = async ()=>{
|
|
1547
|
+
// TODO: should route-module itself handle rendering the 404
|
|
1548
|
+
if (routerServerContext == null ? void 0 : routerServerContext.render404) {
|
|
1549
|
+
await routerServerContext.render404(req, res, parsedUrl, false);
|
|
1550
|
+
} else {
|
|
1551
|
+
res.end('This page could not be found');
|
|
1552
|
+
}
|
|
1553
|
+
return null;
|
|
1554
|
+
};
|
|
1555
|
+
if (isIsr && !isDraftMode) {
|
|
1556
|
+
const prerenderInfo = prerenderManifest.dynamicRoutes[normalizedSrcPage];
|
|
1557
|
+
if (prerenderInfo) {
|
|
1558
|
+
if (prerenderInfo.fallback === false && !isPrerendered) {
|
|
1559
|
+
if (nextConfig.adapterPath) {
|
|
1560
|
+
return await render404();
|
|
1561
|
+
}
|
|
1562
|
+
throw new next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_15__.NoFallbackError();
|
|
1563
|
+
}
|
|
1564
|
+
}
|
|
1565
|
+
}
|
|
1566
|
+
let cacheKey = null;
|
|
1567
|
+
if (isIsr && !routeModule.isDev && !isDraftMode) {
|
|
1568
|
+
cacheKey = resolvedPathname;
|
|
1569
|
+
// ensure /index and / is normalized to one key
|
|
1570
|
+
cacheKey = cacheKey === '/index' ? '/' : cacheKey;
|
|
1571
|
+
}
|
|
1572
|
+
// Before rendering (which initializes component tree modules), we have to
|
|
1573
|
+
// set the reference manifests to our global store so Server Action's
|
|
1574
|
+
// encryption util can access to them at the top level of the page module.
|
|
1575
|
+
if (serverActionsManifest && clientReferenceManifest) {
|
|
1576
|
+
(0,next_dist_server_app_render_manifests_singleton__WEBPACK_IMPORTED_MODULE_5__.setManifestsSingleton)({
|
|
1577
|
+
page: srcPage,
|
|
1578
|
+
clientReferenceManifest,
|
|
1579
|
+
serverActionsManifest
|
|
1580
|
+
});
|
|
1581
|
+
}
|
|
1582
|
+
const method = req.method || 'GET';
|
|
1583
|
+
const tracer = (0,next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.getTracer)();
|
|
1584
|
+
const isWrappedByNextServer = Boolean(routerServerContext == null ? void 0 : routerServerContext.isWrappedByNextServer);
|
|
1585
|
+
const isMinimalMode = Boolean((0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.getRequestMeta)(req, 'minimalMode'));
|
|
1586
|
+
const incrementalCache = (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.getRequestMeta)(req, 'incrementalCache') || await routeModule.getIncrementalCache(req, nextConfig, previewProps, prerenderManifest, isMinimalMode);
|
|
1587
|
+
incrementalCache == null ? void 0 : incrementalCache.resetRequestCache();
|
|
1588
|
+
globalThis.__incrementalCache = incrementalCache;
|
|
1589
|
+
const context = {
|
|
1590
|
+
params,
|
|
1591
|
+
previewProps,
|
|
1592
|
+
renderOpts: {
|
|
1593
|
+
experimental: {
|
|
1594
|
+
authInterrupts: Boolean(nextConfig.experimental.authInterrupts),
|
|
1595
|
+
useCacheTimeout: nextConfig.experimental.useCacheTimeout,
|
|
1596
|
+
durableUseCacheEntries: Boolean(nextConfig.experimental.durableUseCacheEntries)
|
|
1597
|
+
},
|
|
1598
|
+
cacheComponents: Boolean(nextConfig.cacheComponents),
|
|
1599
|
+
validationLevel: nextConfig.experimental.instantInsights.validationLevel,
|
|
1600
|
+
isDraftMode,
|
|
1601
|
+
incrementalCache,
|
|
1602
|
+
hmrRefreshHash: (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.getRequestMeta)(req, 'hmrRefreshHash'),
|
|
1603
|
+
cacheLifeProfiles: nextConfig.cacheLife,
|
|
1604
|
+
staticPageGenerationTimeout: nextConfig.staticPageGenerationTimeout,
|
|
1605
|
+
waitUntil: ctx.waitUntil,
|
|
1606
|
+
onClose: (cb)=>{
|
|
1607
|
+
res.on('close', cb);
|
|
1608
|
+
},
|
|
1609
|
+
onAfterTaskError: undefined
|
|
1610
|
+
},
|
|
1611
|
+
sharedContext: {
|
|
1612
|
+
buildId,
|
|
1613
|
+
deploymentId
|
|
1614
|
+
}
|
|
1615
|
+
};
|
|
1616
|
+
const nodeNextReq = new next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_7__.NodeNextRequest(req);
|
|
1617
|
+
const nodeNextRes = new next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_7__.NodeNextResponse(res);
|
|
1618
|
+
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));
|
|
1619
|
+
const responseGenerator = async ({ previousCacheEntry })=>{
|
|
1620
|
+
try {
|
|
1621
|
+
if (!isMinimalMode && isOnDemandRevalidate && revalidateOnlyGenerated && !previousCacheEntry) {
|
|
1622
|
+
res.statusCode = 404;
|
|
1623
|
+
// on-demand revalidate always sets this header
|
|
1624
|
+
res.setHeader('x-nextjs-cache', 'REVALIDATED');
|
|
1625
|
+
res.end('This page could not be found');
|
|
1626
|
+
return null;
|
|
1627
|
+
}
|
|
1628
|
+
const response = cacheKey === null ? await routeModule.handle(nextReq, context) : await routeModule.prerender(nextReq, context);
|
|
1629
|
+
req.fetchMetrics = context.renderOpts.fetchMetrics;
|
|
1630
|
+
let pendingWaitUntil = context.renderOpts.pendingWaitUntil;
|
|
1631
|
+
// Attempt using provided waitUntil if available
|
|
1632
|
+
// if it's not we fallback to sendResponse's handling
|
|
1633
|
+
if (pendingWaitUntil) {
|
|
1634
|
+
if (ctx.waitUntil) {
|
|
1635
|
+
ctx.waitUntil(pendingWaitUntil);
|
|
1636
|
+
pendingWaitUntil = undefined;
|
|
1637
|
+
}
|
|
1638
|
+
}
|
|
1639
|
+
const cacheTags = context.renderOpts.collectedTags;
|
|
1640
|
+
// If the request is for a static response, we can cache it so long
|
|
1641
|
+
// as it's not edge.
|
|
1642
|
+
if (isIsr) {
|
|
1643
|
+
const blob = await response.blob();
|
|
1644
|
+
// Copy the headers from the response.
|
|
1645
|
+
const headers = (0,next_dist_server_web_utils__WEBPACK_IMPORTED_MODULE_12__.toNodeOutgoingHttpHeaders)(response.headers);
|
|
1646
|
+
if (cacheTags) {
|
|
1647
|
+
headers[next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__.NEXT_CACHE_TAGS_HEADER] = cacheTags;
|
|
1648
|
+
}
|
|
1649
|
+
if (!headers['content-type'] && blob.type) {
|
|
1650
|
+
headers['content-type'] = blob.type;
|
|
1651
|
+
}
|
|
1652
|
+
const revalidate = typeof context.renderOpts.collectedRevalidate === 'undefined' || context.renderOpts.collectedRevalidate >= next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__.INFINITE_CACHE ? false : context.renderOpts.collectedRevalidate;
|
|
1653
|
+
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
|
|
1654
|
+
// explicit `expire` (e.g. via `cacheLife`). This mirrors the
|
|
1655
|
+
// build-time fallback in `build/index.ts` so cache entries
|
|
1656
|
+
// and the response Cache-Control header agree on the route's
|
|
1657
|
+
// effective expire. Routes that opt out of revalidation
|
|
1658
|
+
// (`revalidate: false`) or that are dynamic (`revalidate: 0`)
|
|
1659
|
+
// keep `expire: undefined`.
|
|
1660
|
+
revalidate !== false && revalidate > 0 ? nextConfig.expireTime : undefined : context.renderOpts.collectedExpire;
|
|
1661
|
+
// Create the cache entry for the response.
|
|
1662
|
+
const cacheEntry = {
|
|
1663
|
+
value: {
|
|
1664
|
+
kind: next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__.CachedRouteKind.APP_ROUTE,
|
|
1665
|
+
status: response.status,
|
|
1666
|
+
body: Buffer.from(await blob.arrayBuffer()),
|
|
1667
|
+
headers
|
|
1668
|
+
},
|
|
1669
|
+
cacheControl: {
|
|
1670
|
+
revalidate,
|
|
1671
|
+
expire
|
|
1672
|
+
}
|
|
1673
|
+
};
|
|
1674
|
+
return cacheEntry;
|
|
1675
|
+
} else {
|
|
1676
|
+
// send response without caching if not ISR
|
|
1677
|
+
await (0,next_dist_server_send_response__WEBPACK_IMPORTED_MODULE_11__/* .sendResponse */ .I)(nodeNextReq, nodeNextRes, response, pendingWaitUntil);
|
|
1678
|
+
return null;
|
|
1679
|
+
}
|
|
1680
|
+
} catch (err) {
|
|
1681
|
+
// if this is a background revalidate we need to report
|
|
1682
|
+
// the request error here as it won't be bubbled
|
|
1683
|
+
if (previousCacheEntry == null ? void 0 : previousCacheEntry.isStale) {
|
|
1684
|
+
const silenceLog = false;
|
|
1685
|
+
await routeModule.onRequestError(req, err, {
|
|
1686
|
+
routerKind: 'App Router',
|
|
1687
|
+
routePath: srcPage,
|
|
1688
|
+
routeType: 'route',
|
|
1689
|
+
revalidateReason: (0,next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_10__.getRevalidateReason)({
|
|
1690
|
+
isStaticGeneration: cacheKey !== null,
|
|
1691
|
+
isOnDemandRevalidate
|
|
1692
|
+
})
|
|
1693
|
+
}, silenceLog, routerServerContext);
|
|
1694
|
+
}
|
|
1695
|
+
throw err;
|
|
1613
1696
|
}
|
|
1614
|
-
}
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1697
|
+
};
|
|
1698
|
+
const handleResponse = async (currentSpan)=>{
|
|
1699
|
+
try {
|
|
1700
|
+
var _cacheEntry_value;
|
|
1701
|
+
const cacheEntry = await routeModule.handleResponse({
|
|
1702
|
+
req,
|
|
1703
|
+
nextConfig,
|
|
1704
|
+
cacheKey,
|
|
1705
|
+
routeKind: next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__.RouteKind.APP_ROUTE,
|
|
1706
|
+
isFallback: false,
|
|
1707
|
+
previewProps,
|
|
1708
|
+
prerenderManifest,
|
|
1709
|
+
isRoutePPREnabled: false,
|
|
1710
|
+
isOnDemandRevalidate,
|
|
1711
|
+
revalidateOnlyGenerated,
|
|
1712
|
+
responseGenerator,
|
|
1713
|
+
waitUntil: ctx.waitUntil,
|
|
1714
|
+
isMinimalMode
|
|
1715
|
+
});
|
|
1716
|
+
if (cacheEntry !== null && 'error' in cacheEntry) {
|
|
1717
|
+
throw cacheEntry.error;
|
|
1718
|
+
}
|
|
1719
|
+
// we don't create a cacheEntry for ISR
|
|
1720
|
+
if (!isIsr) {
|
|
1721
|
+
return;
|
|
1722
|
+
}
|
|
1723
|
+
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) {
|
|
1724
|
+
var _cacheEntry_value1;
|
|
1725
|
+
throw new Error(`Invariant: app-route received invalid cache entry ${cacheEntry == null ? void 0 : (_cacheEntry_value1 = cacheEntry.value) == null ? void 0 : _cacheEntry_value1.kind}`);
|
|
1726
|
+
}
|
|
1727
|
+
if (!isMinimalMode) {
|
|
1728
|
+
res.setHeader('x-nextjs-cache', isOnDemandRevalidate ? 'REVALIDATED' : cacheEntry.isMiss ? 'MISS' : cacheEntry.isStale ? 'STALE' : 'HIT');
|
|
1729
|
+
}
|
|
1730
|
+
// Draft mode should never be cached
|
|
1731
|
+
if (isDraftMode) {
|
|
1732
|
+
res.setHeader('Cache-Control', 'private, no-cache, no-store, max-age=0, must-revalidate');
|
|
1733
|
+
}
|
|
1734
|
+
const headers = (0,next_dist_server_web_utils__WEBPACK_IMPORTED_MODULE_12__.fromNodeOutgoingHttpHeaders)(cacheEntry.value.headers);
|
|
1735
|
+
if (!(isMinimalMode && isIsr)) {
|
|
1736
|
+
headers.delete(next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__.NEXT_CACHE_TAGS_HEADER);
|
|
1737
|
+
}
|
|
1738
|
+
// If cache control is already set on the response we don't
|
|
1739
|
+
// override it to allow users to customize it via next.config
|
|
1740
|
+
if (cacheEntry.cacheControl && !res.getHeader('Cache-Control') && !headers.get('Cache-Control')) {
|
|
1741
|
+
headers.set('Cache-Control', (0,next_dist_server_lib_cache_control__WEBPACK_IMPORTED_MODULE_13__.getCacheControlHeader)(cacheEntry.cacheControl));
|
|
1742
|
+
}
|
|
1743
|
+
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'.
|
|
1744
|
+
new Response(cacheEntry.value.body, {
|
|
1745
|
+
headers,
|
|
1746
|
+
status: cacheEntry.value.status || 200
|
|
1747
|
+
}));
|
|
1748
|
+
return;
|
|
1749
|
+
} catch (err) {
|
|
1750
|
+
if (!(err instanceof next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_15__.NoFallbackError)) {
|
|
1751
|
+
const silenceLog = false;
|
|
1752
|
+
await routeModule.onRequestError(req, err, {
|
|
1753
|
+
routerKind: 'App Router',
|
|
1754
|
+
routePath: normalizedSrcPage,
|
|
1755
|
+
routeType: 'route',
|
|
1756
|
+
revalidateReason: (0,next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_10__.getRevalidateReason)({
|
|
1757
|
+
isStaticGeneration: cacheKey !== null,
|
|
1758
|
+
isOnDemandRevalidate
|
|
1759
|
+
})
|
|
1760
|
+
}, silenceLog, routerServerContext);
|
|
1761
|
+
}
|
|
1762
|
+
// rethrow so that we can handle serving error page
|
|
1763
|
+
// If this is during static generation, throw the error again.
|
|
1764
|
+
if (isIsr) throw err;
|
|
1765
|
+
// Otherwise, send a 500 response unless the original response has
|
|
1766
|
+
// already committed. In that case, preserve its status code for
|
|
1767
|
+
// telemetry while still recording the failure and terminating a response
|
|
1768
|
+
// that the failed pipeline left open.
|
|
1769
|
+
if (res.headersSent) {
|
|
1770
|
+
if (currentSpan) {
|
|
1771
|
+
const error = err instanceof Error ? err : new Error('Unknown app route error');
|
|
1772
|
+
currentSpan.recordException(error);
|
|
1773
|
+
currentSpan.setStatus({
|
|
1774
|
+
code: next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.SpanStatusCode.ERROR,
|
|
1775
|
+
message: error.message
|
|
1776
|
+
});
|
|
1777
|
+
currentSpan.setAttribute('error.type', error.name);
|
|
1778
|
+
}
|
|
1779
|
+
if (!res.writableEnded && !res.destroyed) {
|
|
1780
|
+
res.end();
|
|
1781
|
+
}
|
|
1782
|
+
} else {
|
|
1783
|
+
await (0,next_dist_server_send_response__WEBPACK_IMPORTED_MODULE_11__/* .sendResponse */ .I)(nodeNextReq, nodeNextRes, new Response(null, {
|
|
1784
|
+
status: 500
|
|
1785
|
+
}));
|
|
1786
|
+
}
|
|
1787
|
+
return;
|
|
1788
|
+
} finally{
|
|
1789
|
+
;
|
|
1790
|
+
(()=>{
|
|
1791
|
+
if (!currentSpan) {
|
|
1792
|
+
return;
|
|
1793
|
+
}
|
|
1794
|
+
let statusCode = res.statusCode;
|
|
1795
|
+
currentSpan.setAttributes({
|
|
1796
|
+
'http.status_code': statusCode,
|
|
1797
|
+
'next.rsc': false
|
|
1798
|
+
});
|
|
1799
|
+
if (statusCode && statusCode >= 500) {
|
|
1800
|
+
// For 5xx status codes: SHOULD be set to 'Error' span status.
|
|
1801
|
+
// x-ref: https://opentelemetry.io/docs/specs/semconv/http/http-spans/#status
|
|
1802
|
+
currentSpan.setStatus({
|
|
1803
|
+
code: next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.SpanStatusCode.ERROR
|
|
1804
|
+
});
|
|
1805
|
+
// For span status 'Error', SHOULD set 'error.type' attribute.
|
|
1806
|
+
currentSpan.setAttribute('error.type', statusCode.toString());
|
|
1807
|
+
}
|
|
1808
|
+
const rootSpanAttributes = tracer.getRootSpanAttributes();
|
|
1809
|
+
// We were unable to get attributes, probably OTEL is not enabled
|
|
1810
|
+
if (!rootSpanAttributes) {
|
|
1811
|
+
return;
|
|
1812
|
+
}
|
|
1813
|
+
if (rootSpanAttributes.get('next.span_type') !== next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_9__.BaseServerSpan.handleRequest) {
|
|
1814
|
+
console.warn(`Unexpected root span type '${rootSpanAttributes.get('next.span_type')}'. Please report this Next.js issue https://github.com/vercel/next.js`);
|
|
1815
|
+
return;
|
|
1816
|
+
}
|
|
1817
|
+
const route = rootSpanAttributes.get('next.route') || normalizedSrcPage;
|
|
1818
|
+
const name = `${method} ${route}`;
|
|
1819
|
+
currentSpan.setAttributes({
|
|
1820
|
+
'next.route': route,
|
|
1821
|
+
'http.route': route,
|
|
1822
|
+
'next.span_name': name
|
|
1823
|
+
});
|
|
1824
|
+
currentSpan.updateName(name);
|
|
1825
|
+
// Propagate http.route to the request's root span if it isn't the
|
|
1826
|
+
// request span (e.g. a platform-created HTTP span in adapter
|
|
1827
|
+
// deployments).
|
|
1828
|
+
if (requestRootSpan && requestRootSpan !== currentSpan) {
|
|
1829
|
+
requestRootSpan.setAttribute('http.route', route);
|
|
1830
|
+
requestRootSpan.updateName(name);
|
|
1831
|
+
}
|
|
1832
|
+
})();
|
|
1622
1833
|
}
|
|
1623
|
-
}
|
|
1624
|
-
|
|
1625
|
-
//
|
|
1626
|
-
//
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
// if (parsed instanceof NextResponse) return parsed;
|
|
1630
|
-
// // use parsed.field
|
|
1631
|
-
async function validateBody(req, schema) {
|
|
1632
|
-
let raw;
|
|
1633
|
-
try {
|
|
1634
|
-
raw = await req.json();
|
|
1635
|
-
} catch {
|
|
1636
|
-
return errorResponse("Request body must be valid JSON", 400);
|
|
1637
|
-
}
|
|
1638
|
-
const parsed = schema.safeParse(raw);
|
|
1639
|
-
if (!parsed.success) {
|
|
1640
|
-
return errorResponse(parsed.error.issues[0]?.message ?? "invalid body", 400);
|
|
1834
|
+
};
|
|
1835
|
+
// When invoked directly, the request span was started before `prepare`;
|
|
1836
|
+
// record the request target as normalized by it. next-server's request span
|
|
1837
|
+
// already has it.
|
|
1838
|
+
if (!isWrappedByNextServer && req.url !== undefined) {
|
|
1839
|
+
requestSpan == null ? void 0 : requestSpan.setAttribute('http.target', req.url);
|
|
1641
1840
|
}
|
|
1642
|
-
|
|
1841
|
+
await handleResponse(requestSpan);
|
|
1643
1842
|
}
|
|
1644
1843
|
|
|
1844
|
+
//# sourceMappingURL=app-route.js.map
|
|
1645
1845
|
|
|
1646
|
-
/***/ }),
|
|
1647
|
-
|
|
1648
|
-
/***/ 744870:
|
|
1649
|
-
/***/ ((module) => {
|
|
1650
|
-
|
|
1651
|
-
module.exports = require("next/dist/compiled/next-server/app-route.runtime.prod.js");
|
|
1652
|
-
|
|
1653
|
-
/***/ }),
|
|
1654
|
-
|
|
1655
|
-
/***/ 775919:
|
|
1656
|
-
/***/ ((module) => {
|
|
1657
|
-
|
|
1658
|
-
module.exports = require("node:worker_threads");
|
|
1659
|
-
|
|
1660
|
-
/***/ }),
|
|
1661
|
-
|
|
1662
|
-
/***/ 777030:
|
|
1663
|
-
/***/ ((module) => {
|
|
1664
|
-
|
|
1665
|
-
module.exports = require("node:net");
|
|
1666
|
-
|
|
1667
|
-
/***/ }),
|
|
1668
|
-
|
|
1669
|
-
/***/ 781630:
|
|
1670
|
-
/***/ ((module) => {
|
|
1671
|
-
|
|
1672
|
-
module.exports = require("http");
|
|
1673
1846
|
|
|
1674
1847
|
/***/ }),
|
|
1675
1848
|
|
|
@@ -2000,7 +2173,7 @@ module.exports = require("next/dist/shared/lib/no-fallback-error.external");
|
|
|
2000
2173
|
var __webpack_require__ = require("../../../../../../webpack-runtime.js");
|
|
2001
2174
|
__webpack_require__.C(exports);
|
|
2002
2175
|
var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
|
|
2003
|
-
var __webpack_exports__ = __webpack_require__.X(0, [2970,7377,1813,4891,4992,1244], () => (__webpack_exec__(
|
|
2176
|
+
var __webpack_exports__ = __webpack_require__.X(0, [2970,7377,1813,4891,4992,1244], () => (__webpack_exec__(823836)));
|
|
2004
2177
|
module.exports = __webpack_exports__;
|
|
2005
2178
|
|
|
2006
2179
|
})();
|