@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
|
@@ -367,781 +367,781 @@ module.exports = require("next/dist/server/runtime-reacts.external.js");
|
|
|
367
367
|
|
|
368
368
|
/***/ }),
|
|
369
369
|
|
|
370
|
-
/***/
|
|
370
|
+
/***/ 149720:
|
|
371
371
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
372
372
|
|
|
373
|
-
__webpack_require__.r(__webpack_exports__);
|
|
374
373
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
375
|
-
/* harmony export */
|
|
376
|
-
/* harmony export */
|
|
377
|
-
/* harmony export */
|
|
378
|
-
/* harmony export */ serverHooks: () => (/* binding */ serverHooks),
|
|
379
|
-
/* harmony export */ workAsyncStorage: () => (/* binding */ workAsyncStorage),
|
|
380
|
-
/* harmony export */ workUnitAsyncStorage: () => (/* binding */ workUnitAsyncStorage)
|
|
374
|
+
/* harmony export */ Ng: () => (/* binding */ USAGE_PROFILE_VALUES),
|
|
375
|
+
/* harmony export */ R3: () => (/* binding */ USAGE_PROFILES),
|
|
376
|
+
/* harmony export */ vs: () => (/* binding */ DEFAULT_PERSONA_STYLE)
|
|
381
377
|
/* harmony export */ });
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
378
|
+
const USAGE_PROFILE_VALUES = [
|
|
379
|
+
"home",
|
|
380
|
+
"work",
|
|
381
|
+
"dev",
|
|
382
|
+
"custom"
|
|
383
|
+
];
|
|
384
|
+
const DEFAULT_PERSONA_STYLE = {
|
|
385
|
+
strength: 50,
|
|
386
|
+
empathy: 50,
|
|
387
|
+
expressiveness: 50,
|
|
388
|
+
verbosity: 50
|
|
389
|
+
};
|
|
390
|
+
const USAGE_PROFILES = {
|
|
391
|
+
home: {
|
|
392
|
+
label: "Home",
|
|
393
|
+
hint: "Friendly summaries, chat-first layout, everyday integrations",
|
|
394
|
+
compactChat: true,
|
|
395
|
+
style: {
|
|
396
|
+
strength: 40,
|
|
397
|
+
empathy: 80,
|
|
398
|
+
expressiveness: 65,
|
|
399
|
+
verbosity: 25
|
|
400
|
+
},
|
|
401
|
+
responseInstruction: "Lead with a short useful summary and the next action. Use approachable, plain language. Avoid technical jargon and routine diagnostic narration. Expand after the summary when asked, when troubleshooting needs it, or when risk or complexity requires it.",
|
|
402
|
+
citationStrictness: "standard"
|
|
403
|
+
},
|
|
404
|
+
work: {
|
|
405
|
+
label: "Work",
|
|
406
|
+
hint: "Professional decisions, next steps, balanced detail",
|
|
407
|
+
compactChat: true,
|
|
408
|
+
style: {
|
|
409
|
+
strength: 30,
|
|
410
|
+
empathy: 55,
|
|
411
|
+
expressiveness: 35,
|
|
412
|
+
verbosity: 45
|
|
413
|
+
},
|
|
414
|
+
responseInstruction: "Be professional and outcome-focused. Lead with the decision or result, then action items, owners and deadlines only when known. Separate decisions, assumptions, and open questions. Add rationale and tradeoffs where useful, not a routine execution log.",
|
|
415
|
+
citationStrictness: "standard"
|
|
416
|
+
},
|
|
417
|
+
dev: {
|
|
418
|
+
label: "Developer",
|
|
419
|
+
hint: "Full diagnostics, evidence-backed claims, explicit validation",
|
|
420
|
+
compactChat: false,
|
|
421
|
+
style: {
|
|
422
|
+
strength: 20,
|
|
423
|
+
empathy: 30,
|
|
424
|
+
expressiveness: 20,
|
|
425
|
+
verbosity: 60
|
|
426
|
+
},
|
|
427
|
+
responseInstruction: "Be precise and evidence-first. Ground every factual claim in observed tool results or provided sources. Distinguish observations from inferences, assumptions, and unknowns; assumptions do not substantiate factual claims. Name relevant files, commands, test results, validation limits, and reproducible next checks. Give a compact evidence summary when brevity is requested, not an unsupported conclusion.",
|
|
428
|
+
citationStrictness: "strict"
|
|
429
|
+
},
|
|
430
|
+
custom: {
|
|
431
|
+
label: "Custom / Everything",
|
|
432
|
+
hint: "All integrations, full diagnostics, no added response-style rules",
|
|
433
|
+
compactChat: false,
|
|
434
|
+
style: null,
|
|
435
|
+
responseInstruction: "No preset response organization. Follow the agent instructions, explicit user requests, and any enabled style controls.",
|
|
436
|
+
citationStrictness: "off"
|
|
437
|
+
}
|
|
438
|
+
};
|
|
414
439
|
|
|
415
440
|
|
|
441
|
+
/***/ }),
|
|
416
442
|
|
|
443
|
+
/***/ 157075:
|
|
444
|
+
/***/ ((module) => {
|
|
417
445
|
|
|
446
|
+
module.exports = require("node:stream");
|
|
418
447
|
|
|
448
|
+
/***/ }),
|
|
419
449
|
|
|
450
|
+
/***/ 176760:
|
|
451
|
+
/***/ ((module) => {
|
|
420
452
|
|
|
453
|
+
module.exports = require("node:path");
|
|
421
454
|
|
|
455
|
+
/***/ }),
|
|
422
456
|
|
|
457
|
+
/***/ 200261:
|
|
458
|
+
/***/ ((module) => {
|
|
423
459
|
|
|
460
|
+
module.exports = require("next/dist/shared/lib/router/utils/app-paths");
|
|
424
461
|
|
|
462
|
+
/***/ }),
|
|
425
463
|
|
|
464
|
+
/***/ 257975:
|
|
465
|
+
/***/ ((module) => {
|
|
426
466
|
|
|
467
|
+
module.exports = require("node:util");
|
|
427
468
|
|
|
469
|
+
/***/ }),
|
|
428
470
|
|
|
471
|
+
/***/ 309956:
|
|
472
|
+
/***/ ((module) => {
|
|
429
473
|
|
|
474
|
+
module.exports = require("undici");
|
|
430
475
|
|
|
476
|
+
/***/ }),
|
|
431
477
|
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
const nextConfigOutput = "standalone"
|
|
435
|
-
const routeModule = new next_dist_server_route_modules_app_route_module_compiled__WEBPACK_IMPORTED_MODULE_0__.AppRouteRouteModule({
|
|
436
|
-
definition: {
|
|
437
|
-
kind: next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__.RouteKind.APP_ROUTE,
|
|
438
|
-
page: "/api/v1/agents/[id]/display-filters/route",
|
|
439
|
-
pathname: "/api/v1/agents/[id]/display-filters",
|
|
440
|
-
filename: "route",
|
|
441
|
-
bundlePath: "app/api/v1/agents/[id]/display-filters/route"
|
|
442
|
-
},
|
|
443
|
-
distDir: ".next" || 0,
|
|
444
|
-
relativeProjectDir: false || '',
|
|
445
|
-
resolvedPagePath: "/home/runner/work/jarela/jarela/app/api/v1/agents/[id]/display-filters/route.ts",
|
|
446
|
-
nextConfigOutput,
|
|
447
|
-
// The lazy require factory ensures that:
|
|
448
|
-
// - In dev: devRequestTimingInternalsEnd is set before userland executes,
|
|
449
|
-
// correctly attributing module load time to application-code rather than
|
|
450
|
-
// framework internals.
|
|
451
|
-
// - In all modes: async modules (route files with top-level await) are
|
|
452
|
-
// handled correctly — require() returns a Promise for such modules, which
|
|
453
|
-
// ensureUserland() awaits before the first request is handled.
|
|
454
|
-
userland: ()=>__webpack_require__(860320),
|
|
455
|
-
// In Turbopack dev mode, also provide a synchronous per-request getter so
|
|
456
|
-
// server HMR updates are picked up without re-executing the entry chunk.
|
|
457
|
-
// Using require() (synchronous) avoids adding async overhead that would be
|
|
458
|
-
// incorrectly attributed to application-code time in devRequestTiming.
|
|
459
|
-
... false ? 0 : {}
|
|
460
|
-
});
|
|
461
|
-
// Pull out the exports that we need to expose from the module. This should
|
|
462
|
-
// be eliminated when we've moved the other routes to the new format. These
|
|
463
|
-
// are used to hook into the route.
|
|
464
|
-
const { workAsyncStorage, workUnitAsyncStorage, serverHooks } = routeModule;
|
|
465
|
-
function patchFetch() {
|
|
466
|
-
return (0,next_dist_server_lib_patch_fetch__WEBPACK_IMPORTED_MODULE_2__.patchFetch)({
|
|
467
|
-
workAsyncStorage,
|
|
468
|
-
workUnitAsyncStorage
|
|
469
|
-
});
|
|
470
|
-
}
|
|
478
|
+
/***/ 328354:
|
|
479
|
+
/***/ ((module) => {
|
|
471
480
|
|
|
472
|
-
|
|
473
|
-
if (ctx.requestMeta) {
|
|
474
|
-
(0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.setRequestMeta)(req, ctx.requestMeta);
|
|
475
|
-
}
|
|
476
|
-
if (routeModule.isDev) {
|
|
477
|
-
(0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.addRequestMeta)(req, 'devRequestTimingInternalsEnd', process.hrtime.bigint());
|
|
478
|
-
}
|
|
479
|
-
let srcPage = "/api/v1/agents/[id]/display-filters/route";
|
|
480
|
-
// turbopack doesn't normalize `/index` in the page name
|
|
481
|
-
// so we need to to process dynamic routes properly
|
|
482
|
-
// TODO: fix turbopack providing differing value from webpack
|
|
483
|
-
if (false) {} else if (srcPage === '/index') {
|
|
484
|
-
// we always normalize /index specifically
|
|
485
|
-
srcPage = '/';
|
|
486
|
-
}
|
|
487
|
-
const multiZoneDraftMode = false;
|
|
488
|
-
// Registering `instrumentation.ts` usually installs the tracer provider, so
|
|
489
|
-
// do it before starting the request span. The span is started before
|
|
490
|
-
// `prepare`, so route module preparation is part of the request's trace.
|
|
491
|
-
// When this request triggers registration, the lifecycle spans of
|
|
492
|
-
// `instrumentation.ts` are emitted inside the request span.
|
|
493
|
-
const { instrumentation } = await routeModule.ensureInstrumentation(req, {
|
|
494
|
-
deferSpans: true
|
|
495
|
-
});
|
|
496
|
-
return routeModule.traceRequest(req, {
|
|
497
|
-
tracer: (0,next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.getTracer)(),
|
|
498
|
-
spanName: `${req.method || 'GET'} ${srcPage}`,
|
|
499
|
-
httpTarget: req.url,
|
|
500
|
-
instrumentation
|
|
501
|
-
}, (requestSpan, requestRootSpan)=>handleRequest(req, res, ctx, srcPage, multiZoneDraftMode, requestSpan, requestRootSpan));
|
|
502
|
-
}
|
|
503
|
-
async function handleRequest(req, res, ctx, srcPage, multiZoneDraftMode, requestSpan, requestRootSpan) {
|
|
504
|
-
const prepareResult = await routeModule.prepare(req, res, {
|
|
505
|
-
srcPage,
|
|
506
|
-
multiZoneDraftMode
|
|
507
|
-
});
|
|
508
|
-
if (!prepareResult) {
|
|
509
|
-
res.statusCode = 400;
|
|
510
|
-
res.end('Bad Request');
|
|
511
|
-
ctx.waitUntil == null ? void 0 : ctx.waitUntil.call(ctx, Promise.resolve());
|
|
512
|
-
return null;
|
|
513
|
-
}
|
|
514
|
-
const { buildId, deploymentId, params, nextConfig, parsedUrl, isDraftMode, prerenderManifest, routerServerContext, isOnDemandRevalidate, revalidateOnlyGenerated, resolvedPathname, clientReferenceManifest, serverActionsManifest, previewProps } = prepareResult;
|
|
515
|
-
const normalizedSrcPage = (0,next_dist_shared_lib_router_utils_app_paths__WEBPACK_IMPORTED_MODULE_6__.normalizeAppPath)(srcPage);
|
|
516
|
-
// Only this route's prerenders can establish ISR or admit generated params.
|
|
517
|
-
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]));
|
|
518
|
-
let isIsr = Boolean(prerenderManifest.dynamicRoutes[normalizedSrcPage] || isPrerendered);
|
|
519
|
-
const render404 = async ()=>{
|
|
520
|
-
// TODO: should route-module itself handle rendering the 404
|
|
521
|
-
if (routerServerContext == null ? void 0 : routerServerContext.render404) {
|
|
522
|
-
await routerServerContext.render404(req, res, parsedUrl, false);
|
|
523
|
-
} else {
|
|
524
|
-
res.end('This page could not be found');
|
|
525
|
-
}
|
|
526
|
-
return null;
|
|
527
|
-
};
|
|
528
|
-
if (isIsr && !isDraftMode) {
|
|
529
|
-
const prerenderInfo = prerenderManifest.dynamicRoutes[normalizedSrcPage];
|
|
530
|
-
if (prerenderInfo) {
|
|
531
|
-
if (prerenderInfo.fallback === false && !isPrerendered) {
|
|
532
|
-
if (nextConfig.adapterPath) {
|
|
533
|
-
return await render404();
|
|
534
|
-
}
|
|
535
|
-
throw new next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_15__.NoFallbackError();
|
|
536
|
-
}
|
|
537
|
-
}
|
|
538
|
-
}
|
|
539
|
-
let cacheKey = null;
|
|
540
|
-
if (isIsr && !routeModule.isDev && !isDraftMode) {
|
|
541
|
-
cacheKey = resolvedPathname;
|
|
542
|
-
// ensure /index and / is normalized to one key
|
|
543
|
-
cacheKey = cacheKey === '/index' ? '/' : cacheKey;
|
|
544
|
-
}
|
|
545
|
-
// Before rendering (which initializes component tree modules), we have to
|
|
546
|
-
// set the reference manifests to our global store so Server Action's
|
|
547
|
-
// encryption util can access to them at the top level of the page module.
|
|
548
|
-
if (serverActionsManifest && clientReferenceManifest) {
|
|
549
|
-
(0,next_dist_server_app_render_manifests_singleton__WEBPACK_IMPORTED_MODULE_5__.setManifestsSingleton)({
|
|
550
|
-
page: srcPage,
|
|
551
|
-
clientReferenceManifest,
|
|
552
|
-
serverActionsManifest
|
|
553
|
-
});
|
|
554
|
-
}
|
|
555
|
-
const method = req.method || 'GET';
|
|
556
|
-
const tracer = (0,next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.getTracer)();
|
|
557
|
-
const isWrappedByNextServer = Boolean(routerServerContext == null ? void 0 : routerServerContext.isWrappedByNextServer);
|
|
558
|
-
const isMinimalMode = Boolean((0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.getRequestMeta)(req, 'minimalMode'));
|
|
559
|
-
const incrementalCache = (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.getRequestMeta)(req, 'incrementalCache') || await routeModule.getIncrementalCache(req, nextConfig, previewProps, prerenderManifest, isMinimalMode);
|
|
560
|
-
incrementalCache == null ? void 0 : incrementalCache.resetRequestCache();
|
|
561
|
-
globalThis.__incrementalCache = incrementalCache;
|
|
562
|
-
const context = {
|
|
563
|
-
params,
|
|
564
|
-
previewProps,
|
|
565
|
-
renderOpts: {
|
|
566
|
-
experimental: {
|
|
567
|
-
authInterrupts: Boolean(nextConfig.experimental.authInterrupts),
|
|
568
|
-
useCacheTimeout: nextConfig.experimental.useCacheTimeout,
|
|
569
|
-
durableUseCacheEntries: Boolean(nextConfig.experimental.durableUseCacheEntries)
|
|
570
|
-
},
|
|
571
|
-
cacheComponents: Boolean(nextConfig.cacheComponents),
|
|
572
|
-
validationLevel: nextConfig.experimental.instantInsights.validationLevel,
|
|
573
|
-
isDraftMode,
|
|
574
|
-
incrementalCache,
|
|
575
|
-
hmrRefreshHash: (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.getRequestMeta)(req, 'hmrRefreshHash'),
|
|
576
|
-
cacheLifeProfiles: nextConfig.cacheLife,
|
|
577
|
-
staticPageGenerationTimeout: nextConfig.staticPageGenerationTimeout,
|
|
578
|
-
waitUntil: ctx.waitUntil,
|
|
579
|
-
onClose: (cb)=>{
|
|
580
|
-
res.on('close', cb);
|
|
581
|
-
},
|
|
582
|
-
onAfterTaskError: undefined
|
|
583
|
-
},
|
|
584
|
-
sharedContext: {
|
|
585
|
-
buildId,
|
|
586
|
-
deploymentId
|
|
587
|
-
}
|
|
588
|
-
};
|
|
589
|
-
const nodeNextReq = new next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_7__.NodeNextRequest(req);
|
|
590
|
-
const nodeNextRes = new next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_7__.NodeNextResponse(res);
|
|
591
|
-
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));
|
|
592
|
-
const responseGenerator = async ({ previousCacheEntry })=>{
|
|
593
|
-
try {
|
|
594
|
-
if (!isMinimalMode && isOnDemandRevalidate && revalidateOnlyGenerated && !previousCacheEntry) {
|
|
595
|
-
res.statusCode = 404;
|
|
596
|
-
// on-demand revalidate always sets this header
|
|
597
|
-
res.setHeader('x-nextjs-cache', 'REVALIDATED');
|
|
598
|
-
res.end('This page could not be found');
|
|
599
|
-
return null;
|
|
600
|
-
}
|
|
601
|
-
const response = cacheKey === null ? await routeModule.handle(nextReq, context) : await routeModule.prerender(nextReq, context);
|
|
602
|
-
req.fetchMetrics = context.renderOpts.fetchMetrics;
|
|
603
|
-
let pendingWaitUntil = context.renderOpts.pendingWaitUntil;
|
|
604
|
-
// Attempt using provided waitUntil if available
|
|
605
|
-
// if it's not we fallback to sendResponse's handling
|
|
606
|
-
if (pendingWaitUntil) {
|
|
607
|
-
if (ctx.waitUntil) {
|
|
608
|
-
ctx.waitUntil(pendingWaitUntil);
|
|
609
|
-
pendingWaitUntil = undefined;
|
|
610
|
-
}
|
|
611
|
-
}
|
|
612
|
-
const cacheTags = context.renderOpts.collectedTags;
|
|
613
|
-
// If the request is for a static response, we can cache it so long
|
|
614
|
-
// as it's not edge.
|
|
615
|
-
if (isIsr) {
|
|
616
|
-
const blob = await response.blob();
|
|
617
|
-
// Copy the headers from the response.
|
|
618
|
-
const headers = (0,next_dist_server_web_utils__WEBPACK_IMPORTED_MODULE_12__.toNodeOutgoingHttpHeaders)(response.headers);
|
|
619
|
-
if (cacheTags) {
|
|
620
|
-
headers[next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__.NEXT_CACHE_TAGS_HEADER] = cacheTags;
|
|
621
|
-
}
|
|
622
|
-
if (!headers['content-type'] && blob.type) {
|
|
623
|
-
headers['content-type'] = blob.type;
|
|
624
|
-
}
|
|
625
|
-
const revalidate = typeof context.renderOpts.collectedRevalidate === 'undefined' || context.renderOpts.collectedRevalidate >= next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__.INFINITE_CACHE ? false : context.renderOpts.collectedRevalidate;
|
|
626
|
-
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
|
|
627
|
-
// explicit `expire` (e.g. via `cacheLife`). This mirrors the
|
|
628
|
-
// build-time fallback in `build/index.ts` so cache entries
|
|
629
|
-
// and the response Cache-Control header agree on the route's
|
|
630
|
-
// effective expire. Routes that opt out of revalidation
|
|
631
|
-
// (`revalidate: false`) or that are dynamic (`revalidate: 0`)
|
|
632
|
-
// keep `expire: undefined`.
|
|
633
|
-
revalidate !== false && revalidate > 0 ? nextConfig.expireTime : undefined : context.renderOpts.collectedExpire;
|
|
634
|
-
// Create the cache entry for the response.
|
|
635
|
-
const cacheEntry = {
|
|
636
|
-
value: {
|
|
637
|
-
kind: next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__.CachedRouteKind.APP_ROUTE,
|
|
638
|
-
status: response.status,
|
|
639
|
-
body: Buffer.from(await blob.arrayBuffer()),
|
|
640
|
-
headers
|
|
641
|
-
},
|
|
642
|
-
cacheControl: {
|
|
643
|
-
revalidate,
|
|
644
|
-
expire
|
|
645
|
-
}
|
|
646
|
-
};
|
|
647
|
-
return cacheEntry;
|
|
648
|
-
} else {
|
|
649
|
-
// send response without caching if not ISR
|
|
650
|
-
await (0,next_dist_server_send_response__WEBPACK_IMPORTED_MODULE_11__/* .sendResponse */ .I)(nodeNextReq, nodeNextRes, response, pendingWaitUntil);
|
|
651
|
-
return null;
|
|
652
|
-
}
|
|
653
|
-
} catch (err) {
|
|
654
|
-
// if this is a background revalidate we need to report
|
|
655
|
-
// the request error here as it won't be bubbled
|
|
656
|
-
if (previousCacheEntry == null ? void 0 : previousCacheEntry.isStale) {
|
|
657
|
-
const silenceLog = false;
|
|
658
|
-
await routeModule.onRequestError(req, err, {
|
|
659
|
-
routerKind: 'App Router',
|
|
660
|
-
routePath: srcPage,
|
|
661
|
-
routeType: 'route',
|
|
662
|
-
revalidateReason: (0,next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_10__.getRevalidateReason)({
|
|
663
|
-
isStaticGeneration: cacheKey !== null,
|
|
664
|
-
isOnDemandRevalidate
|
|
665
|
-
})
|
|
666
|
-
}, silenceLog, routerServerContext);
|
|
667
|
-
}
|
|
668
|
-
throw err;
|
|
669
|
-
}
|
|
670
|
-
};
|
|
671
|
-
const handleResponse = async (currentSpan)=>{
|
|
672
|
-
try {
|
|
673
|
-
var _cacheEntry_value;
|
|
674
|
-
const cacheEntry = await routeModule.handleResponse({
|
|
675
|
-
req,
|
|
676
|
-
nextConfig,
|
|
677
|
-
cacheKey,
|
|
678
|
-
routeKind: next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__.RouteKind.APP_ROUTE,
|
|
679
|
-
isFallback: false,
|
|
680
|
-
previewProps,
|
|
681
|
-
prerenderManifest,
|
|
682
|
-
isRoutePPREnabled: false,
|
|
683
|
-
isOnDemandRevalidate,
|
|
684
|
-
revalidateOnlyGenerated,
|
|
685
|
-
responseGenerator,
|
|
686
|
-
waitUntil: ctx.waitUntil,
|
|
687
|
-
isMinimalMode
|
|
688
|
-
});
|
|
689
|
-
if (cacheEntry !== null && 'error' in cacheEntry) {
|
|
690
|
-
throw cacheEntry.error;
|
|
691
|
-
}
|
|
692
|
-
// we don't create a cacheEntry for ISR
|
|
693
|
-
if (!isIsr) {
|
|
694
|
-
return;
|
|
695
|
-
}
|
|
696
|
-
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) {
|
|
697
|
-
var _cacheEntry_value1;
|
|
698
|
-
throw new Error(`Invariant: app-route received invalid cache entry ${cacheEntry == null ? void 0 : (_cacheEntry_value1 = cacheEntry.value) == null ? void 0 : _cacheEntry_value1.kind}`);
|
|
699
|
-
}
|
|
700
|
-
if (!isMinimalMode) {
|
|
701
|
-
res.setHeader('x-nextjs-cache', isOnDemandRevalidate ? 'REVALIDATED' : cacheEntry.isMiss ? 'MISS' : cacheEntry.isStale ? 'STALE' : 'HIT');
|
|
702
|
-
}
|
|
703
|
-
// Draft mode should never be cached
|
|
704
|
-
if (isDraftMode) {
|
|
705
|
-
res.setHeader('Cache-Control', 'private, no-cache, no-store, max-age=0, must-revalidate');
|
|
706
|
-
}
|
|
707
|
-
const headers = (0,next_dist_server_web_utils__WEBPACK_IMPORTED_MODULE_12__.fromNodeOutgoingHttpHeaders)(cacheEntry.value.headers);
|
|
708
|
-
if (!(isMinimalMode && isIsr)) {
|
|
709
|
-
headers.delete(next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__.NEXT_CACHE_TAGS_HEADER);
|
|
710
|
-
}
|
|
711
|
-
// If cache control is already set on the response we don't
|
|
712
|
-
// override it to allow users to customize it via next.config
|
|
713
|
-
if (cacheEntry.cacheControl && !res.getHeader('Cache-Control') && !headers.get('Cache-Control')) {
|
|
714
|
-
headers.set('Cache-Control', (0,next_dist_server_lib_cache_control__WEBPACK_IMPORTED_MODULE_13__.getCacheControlHeader)(cacheEntry.cacheControl));
|
|
715
|
-
}
|
|
716
|
-
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'.
|
|
717
|
-
new Response(cacheEntry.value.body, {
|
|
718
|
-
headers,
|
|
719
|
-
status: cacheEntry.value.status || 200
|
|
720
|
-
}));
|
|
721
|
-
return;
|
|
722
|
-
} catch (err) {
|
|
723
|
-
if (!(err instanceof next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_15__.NoFallbackError)) {
|
|
724
|
-
const silenceLog = false;
|
|
725
|
-
await routeModule.onRequestError(req, err, {
|
|
726
|
-
routerKind: 'App Router',
|
|
727
|
-
routePath: normalizedSrcPage,
|
|
728
|
-
routeType: 'route',
|
|
729
|
-
revalidateReason: (0,next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_10__.getRevalidateReason)({
|
|
730
|
-
isStaticGeneration: cacheKey !== null,
|
|
731
|
-
isOnDemandRevalidate
|
|
732
|
-
})
|
|
733
|
-
}, silenceLog, routerServerContext);
|
|
734
|
-
}
|
|
735
|
-
// rethrow so that we can handle serving error page
|
|
736
|
-
// If this is during static generation, throw the error again.
|
|
737
|
-
if (isIsr) throw err;
|
|
738
|
-
// Otherwise, send a 500 response unless the original response has
|
|
739
|
-
// already committed. In that case, preserve its status code for
|
|
740
|
-
// telemetry while still recording the failure and terminating a response
|
|
741
|
-
// that the failed pipeline left open.
|
|
742
|
-
if (res.headersSent) {
|
|
743
|
-
if (currentSpan) {
|
|
744
|
-
const error = err instanceof Error ? err : new Error('Unknown app route error');
|
|
745
|
-
currentSpan.recordException(error);
|
|
746
|
-
currentSpan.setStatus({
|
|
747
|
-
code: next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.SpanStatusCode.ERROR,
|
|
748
|
-
message: error.message
|
|
749
|
-
});
|
|
750
|
-
currentSpan.setAttribute('error.type', error.name);
|
|
751
|
-
}
|
|
752
|
-
if (!res.writableEnded && !res.destroyed) {
|
|
753
|
-
res.end();
|
|
754
|
-
}
|
|
755
|
-
} else {
|
|
756
|
-
await (0,next_dist_server_send_response__WEBPACK_IMPORTED_MODULE_11__/* .sendResponse */ .I)(nodeNextReq, nodeNextRes, new Response(null, {
|
|
757
|
-
status: 500
|
|
758
|
-
}));
|
|
759
|
-
}
|
|
760
|
-
return;
|
|
761
|
-
} finally{
|
|
762
|
-
;
|
|
763
|
-
(()=>{
|
|
764
|
-
if (!currentSpan) {
|
|
765
|
-
return;
|
|
766
|
-
}
|
|
767
|
-
let statusCode = res.statusCode;
|
|
768
|
-
currentSpan.setAttributes({
|
|
769
|
-
'http.status_code': statusCode,
|
|
770
|
-
'next.rsc': false
|
|
771
|
-
});
|
|
772
|
-
if (statusCode && statusCode >= 500) {
|
|
773
|
-
// For 5xx status codes: SHOULD be set to 'Error' span status.
|
|
774
|
-
// x-ref: https://opentelemetry.io/docs/specs/semconv/http/http-spans/#status
|
|
775
|
-
currentSpan.setStatus({
|
|
776
|
-
code: next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.SpanStatusCode.ERROR
|
|
777
|
-
});
|
|
778
|
-
// For span status 'Error', SHOULD set 'error.type' attribute.
|
|
779
|
-
currentSpan.setAttribute('error.type', statusCode.toString());
|
|
780
|
-
}
|
|
781
|
-
const rootSpanAttributes = tracer.getRootSpanAttributes();
|
|
782
|
-
// We were unable to get attributes, probably OTEL is not enabled
|
|
783
|
-
if (!rootSpanAttributes) {
|
|
784
|
-
return;
|
|
785
|
-
}
|
|
786
|
-
if (rootSpanAttributes.get('next.span_type') !== next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_9__.BaseServerSpan.handleRequest) {
|
|
787
|
-
console.warn(`Unexpected root span type '${rootSpanAttributes.get('next.span_type')}'. Please report this Next.js issue https://github.com/vercel/next.js`);
|
|
788
|
-
return;
|
|
789
|
-
}
|
|
790
|
-
const route = rootSpanAttributes.get('next.route') || normalizedSrcPage;
|
|
791
|
-
const name = `${method} ${route}`;
|
|
792
|
-
currentSpan.setAttributes({
|
|
793
|
-
'next.route': route,
|
|
794
|
-
'http.route': route,
|
|
795
|
-
'next.span_name': name
|
|
796
|
-
});
|
|
797
|
-
currentSpan.updateName(name);
|
|
798
|
-
// Propagate http.route to the request's root span if it isn't the
|
|
799
|
-
// request span (e.g. a platform-created HTTP span in adapter
|
|
800
|
-
// deployments).
|
|
801
|
-
if (requestRootSpan && requestRootSpan !== currentSpan) {
|
|
802
|
-
requestRootSpan.setAttribute('http.route', route);
|
|
803
|
-
requestRootSpan.updateName(name);
|
|
804
|
-
}
|
|
805
|
-
})();
|
|
806
|
-
}
|
|
807
|
-
};
|
|
808
|
-
// When invoked directly, the request span was started before `prepare`;
|
|
809
|
-
// record the request target as normalized by it. next-server's request span
|
|
810
|
-
// already has it.
|
|
811
|
-
if (!isWrappedByNextServer && req.url !== undefined) {
|
|
812
|
-
requestSpan == null ? void 0 : requestSpan.setAttribute('http.target', req.url);
|
|
813
|
-
}
|
|
814
|
-
await handleResponse(requestSpan);
|
|
815
|
-
}
|
|
481
|
+
module.exports = require("util");
|
|
816
482
|
|
|
817
|
-
|
|
483
|
+
/***/ }),
|
|
484
|
+
|
|
485
|
+
/***/ 333873:
|
|
486
|
+
/***/ ((module) => {
|
|
818
487
|
|
|
488
|
+
module.exports = require("path");
|
|
819
489
|
|
|
820
490
|
/***/ }),
|
|
821
491
|
|
|
822
|
-
/***/
|
|
823
|
-
/***/ ((
|
|
492
|
+
/***/ 344708:
|
|
493
|
+
/***/ ((module) => {
|
|
824
494
|
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
"home",
|
|
832
|
-
"work",
|
|
833
|
-
"dev",
|
|
834
|
-
"custom"
|
|
835
|
-
];
|
|
836
|
-
const DEFAULT_PERSONA_STYLE = {
|
|
837
|
-
strength: 50,
|
|
838
|
-
empathy: 50,
|
|
839
|
-
expressiveness: 50,
|
|
840
|
-
verbosity: 50
|
|
841
|
-
};
|
|
842
|
-
const USAGE_PROFILES = {
|
|
843
|
-
home: {
|
|
844
|
-
label: "Home",
|
|
845
|
-
hint: "Friendly summaries, chat-first layout, everyday integrations",
|
|
846
|
-
compactChat: true,
|
|
847
|
-
style: {
|
|
848
|
-
strength: 40,
|
|
849
|
-
empathy: 80,
|
|
850
|
-
expressiveness: 65,
|
|
851
|
-
verbosity: 25
|
|
852
|
-
},
|
|
853
|
-
responseInstruction: "Lead with a short useful summary and the next action. Use approachable, plain language. Avoid technical jargon and routine diagnostic narration. Expand after the summary when asked, when troubleshooting needs it, or when risk or complexity requires it.",
|
|
854
|
-
citationStrictness: "standard"
|
|
855
|
-
},
|
|
856
|
-
work: {
|
|
857
|
-
label: "Work",
|
|
858
|
-
hint: "Professional decisions, next steps, balanced detail",
|
|
859
|
-
compactChat: true,
|
|
860
|
-
style: {
|
|
861
|
-
strength: 30,
|
|
862
|
-
empathy: 55,
|
|
863
|
-
expressiveness: 35,
|
|
864
|
-
verbosity: 45
|
|
865
|
-
},
|
|
866
|
-
responseInstruction: "Be professional and outcome-focused. Lead with the decision or result, then action items, owners and deadlines only when known. Separate decisions, assumptions, and open questions. Add rationale and tradeoffs where useful, not a routine execution log.",
|
|
867
|
-
citationStrictness: "standard"
|
|
868
|
-
},
|
|
869
|
-
dev: {
|
|
870
|
-
label: "Developer",
|
|
871
|
-
hint: "Full diagnostics, evidence-backed claims, explicit validation",
|
|
872
|
-
compactChat: false,
|
|
873
|
-
style: {
|
|
874
|
-
strength: 20,
|
|
875
|
-
empathy: 30,
|
|
876
|
-
expressiveness: 20,
|
|
877
|
-
verbosity: 60
|
|
878
|
-
},
|
|
879
|
-
responseInstruction: "Be precise and evidence-first. Ground every factual claim in observed tool results or provided sources. Distinguish observations from inferences, assumptions, and unknowns; assumptions do not substantiate factual claims. Name relevant files, commands, test results, validation limits, and reproducible next checks. Give a compact evidence summary when brevity is requested, not an unsupported conclusion.",
|
|
880
|
-
citationStrictness: "strict"
|
|
881
|
-
},
|
|
882
|
-
custom: {
|
|
883
|
-
label: "Custom / Everything",
|
|
884
|
-
hint: "All integrations, full diagnostics, no added response-style rules",
|
|
885
|
-
compactChat: false,
|
|
886
|
-
style: null,
|
|
887
|
-
responseInstruction: "No preset response organization. Follow the agent instructions, explicit user requests, and any enabled style controls.",
|
|
888
|
-
citationStrictness: "off"
|
|
889
|
-
}
|
|
890
|
-
};
|
|
495
|
+
module.exports = require("node:https");
|
|
496
|
+
|
|
497
|
+
/***/ }),
|
|
498
|
+
|
|
499
|
+
/***/ 379551:
|
|
500
|
+
/***/ ((module) => {
|
|
891
501
|
|
|
502
|
+
module.exports = require("url");
|
|
892
503
|
|
|
893
504
|
/***/ }),
|
|
894
505
|
|
|
895
|
-
/***/
|
|
506
|
+
/***/ 380481:
|
|
896
507
|
/***/ ((module) => {
|
|
897
508
|
|
|
898
|
-
module.exports = require("node:
|
|
509
|
+
module.exports = require("node:readline");
|
|
899
510
|
|
|
900
511
|
/***/ }),
|
|
901
512
|
|
|
902
|
-
/***/
|
|
513
|
+
/***/ 399253:
|
|
903
514
|
/***/ ((module) => {
|
|
904
515
|
|
|
905
|
-
module.exports =
|
|
516
|
+
module.exports = import("@huggingface/transformers");;
|
|
906
517
|
|
|
907
518
|
/***/ }),
|
|
908
519
|
|
|
909
|
-
/***/
|
|
520
|
+
/***/ 419121:
|
|
910
521
|
/***/ ((module) => {
|
|
911
522
|
|
|
912
|
-
module.exports = require("next/dist/
|
|
523
|
+
module.exports = require("next/dist/server/app-render/action-async-storage.external.js");
|
|
913
524
|
|
|
914
525
|
/***/ }),
|
|
915
526
|
|
|
916
|
-
/***/
|
|
527
|
+
/***/ 455511:
|
|
917
528
|
/***/ ((module) => {
|
|
918
529
|
|
|
919
|
-
module.exports = require("
|
|
530
|
+
module.exports = require("crypto");
|
|
920
531
|
|
|
921
532
|
/***/ }),
|
|
922
533
|
|
|
923
|
-
/***/
|
|
534
|
+
/***/ 529294:
|
|
924
535
|
/***/ ((module) => {
|
|
925
536
|
|
|
926
|
-
module.exports = require("
|
|
537
|
+
module.exports = require("next/dist/server/app-render/work-async-storage.external.js");
|
|
927
538
|
|
|
928
539
|
/***/ }),
|
|
929
540
|
|
|
930
|
-
/***/
|
|
541
|
+
/***/ 594735:
|
|
931
542
|
/***/ ((module) => {
|
|
932
543
|
|
|
933
|
-
module.exports = require("
|
|
544
|
+
module.exports = require("events");
|
|
934
545
|
|
|
935
546
|
/***/ }),
|
|
936
547
|
|
|
937
|
-
/***/
|
|
548
|
+
/***/ 629021:
|
|
938
549
|
/***/ ((module) => {
|
|
939
550
|
|
|
940
|
-
module.exports = require("
|
|
551
|
+
module.exports = require("fs");
|
|
941
552
|
|
|
942
553
|
/***/ }),
|
|
943
554
|
|
|
944
|
-
/***/
|
|
555
|
+
/***/ 638522:
|
|
945
556
|
/***/ ((module) => {
|
|
946
557
|
|
|
947
|
-
module.exports = require("node:
|
|
558
|
+
module.exports = require("node:zlib");
|
|
948
559
|
|
|
949
560
|
/***/ }),
|
|
950
561
|
|
|
951
|
-
/***/
|
|
562
|
+
/***/ 663033:
|
|
952
563
|
/***/ ((module) => {
|
|
953
564
|
|
|
954
|
-
module.exports = require("
|
|
565
|
+
module.exports = require("next/dist/server/app-render/work-unit-async-storage.external.js");
|
|
955
566
|
|
|
956
567
|
/***/ }),
|
|
957
568
|
|
|
958
|
-
/***/
|
|
569
|
+
/***/ 710846:
|
|
959
570
|
/***/ ((module) => {
|
|
960
571
|
|
|
961
|
-
module.exports = require("
|
|
572
|
+
module.exports = require("next/dist/compiled/next-server/app-page.runtime.prod.js");
|
|
962
573
|
|
|
963
574
|
/***/ }),
|
|
964
575
|
|
|
965
|
-
/***/
|
|
576
|
+
/***/ 731421:
|
|
966
577
|
/***/ ((module) => {
|
|
967
578
|
|
|
968
|
-
module.exports =
|
|
579
|
+
module.exports = require("node:child_process");
|
|
969
580
|
|
|
970
581
|
/***/ }),
|
|
971
582
|
|
|
972
|
-
/***/
|
|
583
|
+
/***/ 739947:
|
|
584
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
585
|
+
|
|
586
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
587
|
+
/* harmony export */ Bm: () => (/* binding */ cachedJson),
|
|
588
|
+
/* harmony export */ HN: () => (/* binding */ notFoundResponse),
|
|
589
|
+
/* harmony export */ Jb: () => (/* binding */ validateBody),
|
|
590
|
+
/* harmony export */ K2: () => (/* binding */ createdResponse),
|
|
591
|
+
/* harmony export */ Ng: () => (/* binding */ noStoreJson),
|
|
592
|
+
/* harmony export */ yj: () => (/* binding */ errorResponse)
|
|
593
|
+
/* harmony export */ });
|
|
594
|
+
/* harmony import */ var next_server__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(945592);
|
|
595
|
+
// Shared HTTP response builders for app/api/v1/** route handlers.
|
|
596
|
+
//
|
|
597
|
+
// Goal: every error/success payload across the v1 surface has the same
|
|
598
|
+
// shape. Before this lived inline, response bodies drifted —
|
|
599
|
+
// `{error: "x"}` vs `{message: "x"}`, 400 vs 422 for the same condition,
|
|
600
|
+
// some routes returned Zod's raw issue array, others stringified it.
|
|
601
|
+
|
|
602
|
+
function errorResponse(message, status = 400) {
|
|
603
|
+
return next_server__WEBPACK_IMPORTED_MODULE_0__.NextResponse.json({
|
|
604
|
+
error: message
|
|
605
|
+
}, {
|
|
606
|
+
status
|
|
607
|
+
});
|
|
608
|
+
}
|
|
609
|
+
function notFoundResponse(message = "Not found") {
|
|
610
|
+
return errorResponse(message, 404);
|
|
611
|
+
}
|
|
612
|
+
function createdResponse(data) {
|
|
613
|
+
return next_server__WEBPACK_IMPORTED_MODULE_0__.NextResponse.json(data, {
|
|
614
|
+
status: 201
|
|
615
|
+
});
|
|
616
|
+
}
|
|
617
|
+
// Wrap a 200 JSON response with a private Cache-Control header. Use on safe
|
|
618
|
+
// GET endpoints that serve user-scoped data the client refetches often (panel
|
|
619
|
+
// mounts, navigation back/forward) but mutates rarely. The TTL is short
|
|
620
|
+
// enough that explicit mutations — which patch the client-side ApiClient
|
|
621
|
+
// cache in place — stay observably consistent without an extra roundtrip.
|
|
622
|
+
//
|
|
623
|
+
// swrSeconds (optional): stale-while-revalidate window. When set, the browser
|
|
624
|
+
// serves the cached response immediately and refreshes in the background,
|
|
625
|
+
// making navigation feel instant. Use for data that can tolerate brief
|
|
626
|
+
// staleness (tool list, agent configs, model list). Omit for real-time data
|
|
627
|
+
// (dashboard metrics, credential state).
|
|
628
|
+
function cachedJson(data, maxAgeSeconds, swrSeconds) {
|
|
629
|
+
const swr = swrSeconds ? `, stale-while-revalidate=${swrSeconds}` : "";
|
|
630
|
+
return next_server__WEBPACK_IMPORTED_MODULE_0__.NextResponse.json(data, {
|
|
631
|
+
headers: {
|
|
632
|
+
"Cache-Control": `private, max-age=${maxAgeSeconds}${swr}`
|
|
633
|
+
}
|
|
634
|
+
});
|
|
635
|
+
}
|
|
636
|
+
// Use for endpoints whose response contains live state that must never be
|
|
637
|
+
// served from cache — credentials, connection status, live config values.
|
|
638
|
+
function noStoreJson(data) {
|
|
639
|
+
return next_server__WEBPACK_IMPORTED_MODULE_0__.NextResponse.json(data, {
|
|
640
|
+
headers: {
|
|
641
|
+
"Cache-Control": "no-store"
|
|
642
|
+
}
|
|
643
|
+
});
|
|
644
|
+
}
|
|
645
|
+
// Validate a JSON request body against a zod schema.
|
|
646
|
+
// Returns either the parsed data or a 400 NextResponse explaining the issue.
|
|
647
|
+
// Caller pattern:
|
|
648
|
+
// const parsed = await validateBody(req, Schema);
|
|
649
|
+
// if (parsed instanceof NextResponse) return parsed;
|
|
650
|
+
// // use parsed.field
|
|
651
|
+
async function validateBody(req, schema) {
|
|
652
|
+
let raw;
|
|
653
|
+
try {
|
|
654
|
+
raw = await req.json();
|
|
655
|
+
} catch {
|
|
656
|
+
return errorResponse("Request body must be valid JSON", 400);
|
|
657
|
+
}
|
|
658
|
+
const parsed = schema.safeParse(raw);
|
|
659
|
+
if (!parsed.success) {
|
|
660
|
+
return errorResponse(parsed.error.issues[0]?.message ?? "invalid body", 400);
|
|
661
|
+
}
|
|
662
|
+
return parsed.data;
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
|
|
666
|
+
/***/ }),
|
|
667
|
+
|
|
668
|
+
/***/ 744870:
|
|
973
669
|
/***/ ((module) => {
|
|
974
670
|
|
|
975
|
-
module.exports = require("next/dist/server/app-
|
|
671
|
+
module.exports = require("next/dist/compiled/next-server/app-route.runtime.prod.js");
|
|
976
672
|
|
|
977
673
|
/***/ }),
|
|
978
674
|
|
|
979
|
-
/***/
|
|
675
|
+
/***/ 775919:
|
|
980
676
|
/***/ ((module) => {
|
|
981
677
|
|
|
982
|
-
module.exports = require("
|
|
678
|
+
module.exports = require("node:worker_threads");
|
|
983
679
|
|
|
984
680
|
/***/ }),
|
|
985
681
|
|
|
986
|
-
/***/
|
|
682
|
+
/***/ 777030:
|
|
987
683
|
/***/ ((module) => {
|
|
988
684
|
|
|
989
|
-
module.exports = require("
|
|
685
|
+
module.exports = require("node:net");
|
|
990
686
|
|
|
991
687
|
/***/ }),
|
|
992
688
|
|
|
993
|
-
/***/
|
|
689
|
+
/***/ 781630:
|
|
994
690
|
/***/ ((module) => {
|
|
995
691
|
|
|
996
|
-
module.exports = require("
|
|
692
|
+
module.exports = require("http");
|
|
997
693
|
|
|
998
694
|
/***/ }),
|
|
999
695
|
|
|
1000
|
-
/***/
|
|
1001
|
-
/***/ ((
|
|
696
|
+
/***/ 796180:
|
|
697
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
698
|
+
|
|
699
|
+
__webpack_require__.r(__webpack_exports__);
|
|
700
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
701
|
+
/* harmony export */ handler: () => (/* binding */ handler),
|
|
702
|
+
/* harmony export */ patchFetch: () => (/* binding */ patchFetch),
|
|
703
|
+
/* harmony export */ routeModule: () => (/* binding */ routeModule),
|
|
704
|
+
/* harmony export */ serverHooks: () => (/* binding */ serverHooks),
|
|
705
|
+
/* harmony export */ workAsyncStorage: () => (/* binding */ workAsyncStorage),
|
|
706
|
+
/* harmony export */ workUnitAsyncStorage: () => (/* binding */ workUnitAsyncStorage)
|
|
707
|
+
/* harmony export */ });
|
|
708
|
+
/* harmony import */ var next_dist_server_route_modules_app_route_module_compiled__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(319225);
|
|
709
|
+
/* 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__);
|
|
710
|
+
/* harmony import */ var next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(684006);
|
|
711
|
+
/* harmony import */ var next_dist_server_lib_patch_fetch__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8317);
|
|
712
|
+
/* 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__);
|
|
713
|
+
/* harmony import */ var next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(799373);
|
|
714
|
+
/* 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__);
|
|
715
|
+
/* harmony import */ var next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(434775);
|
|
716
|
+
/* 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__);
|
|
717
|
+
/* harmony import */ var next_dist_server_app_render_manifests_singleton__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(524235);
|
|
718
|
+
/* 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__);
|
|
719
|
+
/* harmony import */ var next_dist_shared_lib_router_utils_app_paths__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(200261);
|
|
720
|
+
/* 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__);
|
|
721
|
+
/* harmony import */ var next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(754365);
|
|
722
|
+
/* 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__);
|
|
723
|
+
/* harmony import */ var next_dist_server_web_spec_extension_adapters_next_request__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(590771);
|
|
724
|
+
/* 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__);
|
|
725
|
+
/* harmony import */ var next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(473461);
|
|
726
|
+
/* 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__);
|
|
727
|
+
/* harmony import */ var next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(767798);
|
|
728
|
+
/* harmony import */ var next_dist_server_send_response__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(192280);
|
|
729
|
+
/* harmony import */ var next_dist_server_web_utils__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(662018);
|
|
730
|
+
/* 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__);
|
|
731
|
+
/* harmony import */ var next_dist_server_lib_cache_control__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(445696);
|
|
732
|
+
/* harmony import */ var next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(347929);
|
|
733
|
+
/* harmony import */ var next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__);
|
|
734
|
+
/* harmony import */ var next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(986439);
|
|
735
|
+
/* 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__);
|
|
736
|
+
/* harmony import */ var next_dist_server_lib_route_cache_key__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(710246);
|
|
737
|
+
/* 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__);
|
|
738
|
+
/* harmony import */ var next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(137527);
|
|
739
|
+
/* 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__);
|
|
740
|
+
|
|
1002
741
|
|
|
1003
|
-
module.exports = require("fs");
|
|
1004
742
|
|
|
1005
|
-
/***/ }),
|
|
1006
743
|
|
|
1007
|
-
/***/ 638522:
|
|
1008
|
-
/***/ ((module) => {
|
|
1009
744
|
|
|
1010
|
-
module.exports = require("node:zlib");
|
|
1011
745
|
|
|
1012
|
-
/***/ }),
|
|
1013
746
|
|
|
1014
|
-
/***/ 663033:
|
|
1015
|
-
/***/ ((module) => {
|
|
1016
747
|
|
|
1017
|
-
module.exports = require("next/dist/server/app-render/work-unit-async-storage.external.js");
|
|
1018
748
|
|
|
1019
|
-
/***/ }),
|
|
1020
749
|
|
|
1021
|
-
/***/ 710846:
|
|
1022
|
-
/***/ ((module) => {
|
|
1023
750
|
|
|
1024
|
-
module.exports = require("next/dist/compiled/next-server/app-page.runtime.prod.js");
|
|
1025
751
|
|
|
1026
|
-
/***/ }),
|
|
1027
752
|
|
|
1028
|
-
/***/ 731421:
|
|
1029
|
-
/***/ ((module) => {
|
|
1030
753
|
|
|
1031
|
-
module.exports = require("node:child_process");
|
|
1032
754
|
|
|
1033
|
-
/***/ }),
|
|
1034
755
|
|
|
1035
|
-
/***/ 739947:
|
|
1036
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1037
756
|
|
|
1038
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1039
|
-
/* harmony export */ Bm: () => (/* binding */ cachedJson),
|
|
1040
|
-
/* harmony export */ HN: () => (/* binding */ notFoundResponse),
|
|
1041
|
-
/* harmony export */ Jb: () => (/* binding */ validateBody),
|
|
1042
|
-
/* harmony export */ K2: () => (/* binding */ createdResponse),
|
|
1043
|
-
/* harmony export */ Ng: () => (/* binding */ noStoreJson),
|
|
1044
|
-
/* harmony export */ yj: () => (/* binding */ errorResponse)
|
|
1045
|
-
/* harmony export */ });
|
|
1046
|
-
/* harmony import */ var next_server__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(945592);
|
|
1047
|
-
// Shared HTTP response builders for app/api/v1/** route handlers.
|
|
1048
|
-
//
|
|
1049
|
-
// Goal: every error/success payload across the v1 surface has the same
|
|
1050
|
-
// shape. Before this lived inline, response bodies drifted —
|
|
1051
|
-
// `{error: "x"}` vs `{message: "x"}`, 400 vs 422 for the same condition,
|
|
1052
|
-
// some routes returned Zod's raw issue array, others stringified it.
|
|
1053
757
|
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
758
|
+
// We inject the nextConfigOutput here so that we can use them in the route
|
|
759
|
+
// module.
|
|
760
|
+
const nextConfigOutput = "standalone"
|
|
761
|
+
const routeModule = new next_dist_server_route_modules_app_route_module_compiled__WEBPACK_IMPORTED_MODULE_0__.AppRouteRouteModule({
|
|
762
|
+
definition: {
|
|
763
|
+
kind: next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__.RouteKind.APP_ROUTE,
|
|
764
|
+
page: "/api/v1/agents/[id]/display-filters/route",
|
|
765
|
+
pathname: "/api/v1/agents/[id]/display-filters",
|
|
766
|
+
filename: "route",
|
|
767
|
+
bundlePath: "app/api/v1/agents/[id]/display-filters/route"
|
|
768
|
+
},
|
|
769
|
+
distDir: ".next" || 0,
|
|
770
|
+
relativeProjectDir: false || '',
|
|
771
|
+
resolvedPagePath: "/home/runner/work/jarela/jarela/app/api/v1/agents/[id]/display-filters/route.ts",
|
|
772
|
+
nextConfigOutput,
|
|
773
|
+
// The lazy require factory ensures that:
|
|
774
|
+
// - In dev: devRequestTimingInternalsEnd is set before userland executes,
|
|
775
|
+
// correctly attributing module load time to application-code rather than
|
|
776
|
+
// framework internals.
|
|
777
|
+
// - In all modes: async modules (route files with top-level await) are
|
|
778
|
+
// handled correctly — require() returns a Promise for such modules, which
|
|
779
|
+
// ensureUserland() awaits before the first request is handled.
|
|
780
|
+
userland: ()=>__webpack_require__(860320),
|
|
781
|
+
// In Turbopack dev mode, also provide a synchronous per-request getter so
|
|
782
|
+
// server HMR updates are picked up without re-executing the entry chunk.
|
|
783
|
+
// Using require() (synchronous) avoids adding async overhead that would be
|
|
784
|
+
// incorrectly attributed to application-code time in devRequestTiming.
|
|
785
|
+
... false ? 0 : {}
|
|
786
|
+
});
|
|
787
|
+
// Pull out the exports that we need to expose from the module. This should
|
|
788
|
+
// be eliminated when we've moved the other routes to the new format. These
|
|
789
|
+
// are used to hook into the route.
|
|
790
|
+
const { workAsyncStorage, workUnitAsyncStorage, serverHooks } = routeModule;
|
|
791
|
+
function patchFetch() {
|
|
792
|
+
return (0,next_dist_server_lib_patch_fetch__WEBPACK_IMPORTED_MODULE_2__.patchFetch)({
|
|
793
|
+
workAsyncStorage,
|
|
794
|
+
workUnitAsyncStorage
|
|
1059
795
|
});
|
|
1060
796
|
}
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
797
|
+
|
|
798
|
+
async function handler(req, res, ctx) {
|
|
799
|
+
if (ctx.requestMeta) {
|
|
800
|
+
(0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.setRequestMeta)(req, ctx.requestMeta);
|
|
801
|
+
}
|
|
802
|
+
if (routeModule.isDev) {
|
|
803
|
+
(0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.addRequestMeta)(req, 'devRequestTimingInternalsEnd', process.hrtime.bigint());
|
|
804
|
+
}
|
|
805
|
+
let srcPage = "/api/v1/agents/[id]/display-filters/route";
|
|
806
|
+
// turbopack doesn't normalize `/index` in the page name
|
|
807
|
+
// so we need to to process dynamic routes properly
|
|
808
|
+
// TODO: fix turbopack providing differing value from webpack
|
|
809
|
+
if (false) {} else if (srcPage === '/index') {
|
|
810
|
+
// we always normalize /index specifically
|
|
811
|
+
srcPage = '/';
|
|
812
|
+
}
|
|
813
|
+
const multiZoneDraftMode = false;
|
|
814
|
+
// Registering `instrumentation.ts` usually installs the tracer provider, so
|
|
815
|
+
// do it before starting the request span. The span is started before
|
|
816
|
+
// `prepare`, so route module preparation is part of the request's trace.
|
|
817
|
+
// When this request triggers registration, the lifecycle spans of
|
|
818
|
+
// `instrumentation.ts` are emitted inside the request span.
|
|
819
|
+
const { instrumentation } = await routeModule.ensureInstrumentation(req, {
|
|
820
|
+
deferSpans: true
|
|
1067
821
|
});
|
|
822
|
+
return routeModule.traceRequest(req, {
|
|
823
|
+
tracer: (0,next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.getTracer)(),
|
|
824
|
+
spanName: `${req.method || 'GET'} ${srcPage}`,
|
|
825
|
+
httpTarget: req.url,
|
|
826
|
+
instrumentation
|
|
827
|
+
}, (requestSpan, requestRootSpan)=>handleRequest(req, res, ctx, srcPage, multiZoneDraftMode, requestSpan, requestRootSpan));
|
|
1068
828
|
}
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
const
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
829
|
+
async function handleRequest(req, res, ctx, srcPage, multiZoneDraftMode, requestSpan, requestRootSpan) {
|
|
830
|
+
const prepareResult = await routeModule.prepare(req, res, {
|
|
831
|
+
srcPage,
|
|
832
|
+
multiZoneDraftMode
|
|
833
|
+
});
|
|
834
|
+
if (!prepareResult) {
|
|
835
|
+
res.statusCode = 400;
|
|
836
|
+
res.end('Bad Request');
|
|
837
|
+
ctx.waitUntil == null ? void 0 : ctx.waitUntil.call(ctx, Promise.resolve());
|
|
838
|
+
return null;
|
|
839
|
+
}
|
|
840
|
+
const { buildId, deploymentId, params, nextConfig, parsedUrl, isDraftMode, prerenderManifest, routerServerContext, isOnDemandRevalidate, revalidateOnlyGenerated, resolvedPathname, clientReferenceManifest, serverActionsManifest, previewProps } = prepareResult;
|
|
841
|
+
const normalizedSrcPage = (0,next_dist_shared_lib_router_utils_app_paths__WEBPACK_IMPORTED_MODULE_6__.normalizeAppPath)(srcPage);
|
|
842
|
+
// Only this route's prerenders can establish ISR or admit generated params.
|
|
843
|
+
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]));
|
|
844
|
+
let isIsr = Boolean(prerenderManifest.dynamicRoutes[normalizedSrcPage] || isPrerendered);
|
|
845
|
+
const render404 = async ()=>{
|
|
846
|
+
// TODO: should route-module itself handle rendering the 404
|
|
847
|
+
if (routerServerContext == null ? void 0 : routerServerContext.render404) {
|
|
848
|
+
await routerServerContext.render404(req, res, parsedUrl, false);
|
|
849
|
+
} else {
|
|
850
|
+
res.end('This page could not be found');
|
|
851
|
+
}
|
|
852
|
+
return null;
|
|
853
|
+
};
|
|
854
|
+
if (isIsr && !isDraftMode) {
|
|
855
|
+
const prerenderInfo = prerenderManifest.dynamicRoutes[normalizedSrcPage];
|
|
856
|
+
if (prerenderInfo) {
|
|
857
|
+
if (prerenderInfo.fallback === false && !isPrerendered) {
|
|
858
|
+
if (nextConfig.adapterPath) {
|
|
859
|
+
return await render404();
|
|
860
|
+
}
|
|
861
|
+
throw new next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_15__.NoFallbackError();
|
|
862
|
+
}
|
|
863
|
+
}
|
|
864
|
+
}
|
|
865
|
+
let cacheKey = null;
|
|
866
|
+
if (isIsr && !routeModule.isDev && !isDraftMode) {
|
|
867
|
+
cacheKey = resolvedPathname;
|
|
868
|
+
// ensure /index and / is normalized to one key
|
|
869
|
+
cacheKey = cacheKey === '/index' ? '/' : cacheKey;
|
|
870
|
+
}
|
|
871
|
+
// Before rendering (which initializes component tree modules), we have to
|
|
872
|
+
// set the reference manifests to our global store so Server Action's
|
|
873
|
+
// encryption util can access to them at the top level of the page module.
|
|
874
|
+
if (serverActionsManifest && clientReferenceManifest) {
|
|
875
|
+
(0,next_dist_server_app_render_manifests_singleton__WEBPACK_IMPORTED_MODULE_5__.setManifestsSingleton)({
|
|
876
|
+
page: srcPage,
|
|
877
|
+
clientReferenceManifest,
|
|
878
|
+
serverActionsManifest
|
|
879
|
+
});
|
|
880
|
+
}
|
|
881
|
+
const method = req.method || 'GET';
|
|
882
|
+
const tracer = (0,next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.getTracer)();
|
|
883
|
+
const isWrappedByNextServer = Boolean(routerServerContext == null ? void 0 : routerServerContext.isWrappedByNextServer);
|
|
884
|
+
const isMinimalMode = Boolean((0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.getRequestMeta)(req, 'minimalMode'));
|
|
885
|
+
const incrementalCache = (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.getRequestMeta)(req, 'incrementalCache') || await routeModule.getIncrementalCache(req, nextConfig, previewProps, prerenderManifest, isMinimalMode);
|
|
886
|
+
incrementalCache == null ? void 0 : incrementalCache.resetRequestCache();
|
|
887
|
+
globalThis.__incrementalCache = incrementalCache;
|
|
888
|
+
const context = {
|
|
889
|
+
params,
|
|
890
|
+
previewProps,
|
|
891
|
+
renderOpts: {
|
|
892
|
+
experimental: {
|
|
893
|
+
authInterrupts: Boolean(nextConfig.experimental.authInterrupts),
|
|
894
|
+
useCacheTimeout: nextConfig.experimental.useCacheTimeout,
|
|
895
|
+
durableUseCacheEntries: Boolean(nextConfig.experimental.durableUseCacheEntries)
|
|
896
|
+
},
|
|
897
|
+
cacheComponents: Boolean(nextConfig.cacheComponents),
|
|
898
|
+
validationLevel: nextConfig.experimental.instantInsights.validationLevel,
|
|
899
|
+
isDraftMode,
|
|
900
|
+
incrementalCache,
|
|
901
|
+
hmrRefreshHash: (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.getRequestMeta)(req, 'hmrRefreshHash'),
|
|
902
|
+
cacheLifeProfiles: nextConfig.cacheLife,
|
|
903
|
+
staticPageGenerationTimeout: nextConfig.staticPageGenerationTimeout,
|
|
904
|
+
waitUntil: ctx.waitUntil,
|
|
905
|
+
onClose: (cb)=>{
|
|
906
|
+
res.on('close', cb);
|
|
907
|
+
},
|
|
908
|
+
onAfterTaskError: undefined
|
|
909
|
+
},
|
|
910
|
+
sharedContext: {
|
|
911
|
+
buildId,
|
|
912
|
+
deploymentId
|
|
913
|
+
}
|
|
914
|
+
};
|
|
915
|
+
const nodeNextReq = new next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_7__.NodeNextRequest(req);
|
|
916
|
+
const nodeNextRes = new next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_7__.NodeNextResponse(res);
|
|
917
|
+
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));
|
|
918
|
+
const responseGenerator = async ({ previousCacheEntry })=>{
|
|
919
|
+
try {
|
|
920
|
+
if (!isMinimalMode && isOnDemandRevalidate && revalidateOnlyGenerated && !previousCacheEntry) {
|
|
921
|
+
res.statusCode = 404;
|
|
922
|
+
// on-demand revalidate always sets this header
|
|
923
|
+
res.setHeader('x-nextjs-cache', 'REVALIDATED');
|
|
924
|
+
res.end('This page could not be found');
|
|
925
|
+
return null;
|
|
926
|
+
}
|
|
927
|
+
const response = cacheKey === null ? await routeModule.handle(nextReq, context) : await routeModule.prerender(nextReq, context);
|
|
928
|
+
req.fetchMetrics = context.renderOpts.fetchMetrics;
|
|
929
|
+
let pendingWaitUntil = context.renderOpts.pendingWaitUntil;
|
|
930
|
+
// Attempt using provided waitUntil if available
|
|
931
|
+
// if it's not we fallback to sendResponse's handling
|
|
932
|
+
if (pendingWaitUntil) {
|
|
933
|
+
if (ctx.waitUntil) {
|
|
934
|
+
ctx.waitUntil(pendingWaitUntil);
|
|
935
|
+
pendingWaitUntil = undefined;
|
|
936
|
+
}
|
|
937
|
+
}
|
|
938
|
+
const cacheTags = context.renderOpts.collectedTags;
|
|
939
|
+
// If the request is for a static response, we can cache it so long
|
|
940
|
+
// as it's not edge.
|
|
941
|
+
if (isIsr) {
|
|
942
|
+
const blob = await response.blob();
|
|
943
|
+
// Copy the headers from the response.
|
|
944
|
+
const headers = (0,next_dist_server_web_utils__WEBPACK_IMPORTED_MODULE_12__.toNodeOutgoingHttpHeaders)(response.headers);
|
|
945
|
+
if (cacheTags) {
|
|
946
|
+
headers[next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__.NEXT_CACHE_TAGS_HEADER] = cacheTags;
|
|
947
|
+
}
|
|
948
|
+
if (!headers['content-type'] && blob.type) {
|
|
949
|
+
headers['content-type'] = blob.type;
|
|
950
|
+
}
|
|
951
|
+
const revalidate = typeof context.renderOpts.collectedRevalidate === 'undefined' || context.renderOpts.collectedRevalidate >= next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__.INFINITE_CACHE ? false : context.renderOpts.collectedRevalidate;
|
|
952
|
+
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
|
|
953
|
+
// explicit `expire` (e.g. via `cacheLife`). This mirrors the
|
|
954
|
+
// build-time fallback in `build/index.ts` so cache entries
|
|
955
|
+
// and the response Cache-Control header agree on the route's
|
|
956
|
+
// effective expire. Routes that opt out of revalidation
|
|
957
|
+
// (`revalidate: false`) or that are dynamic (`revalidate: 0`)
|
|
958
|
+
// keep `expire: undefined`.
|
|
959
|
+
revalidate !== false && revalidate > 0 ? nextConfig.expireTime : undefined : context.renderOpts.collectedExpire;
|
|
960
|
+
// Create the cache entry for the response.
|
|
961
|
+
const cacheEntry = {
|
|
962
|
+
value: {
|
|
963
|
+
kind: next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__.CachedRouteKind.APP_ROUTE,
|
|
964
|
+
status: response.status,
|
|
965
|
+
body: Buffer.from(await blob.arrayBuffer()),
|
|
966
|
+
headers
|
|
967
|
+
},
|
|
968
|
+
cacheControl: {
|
|
969
|
+
revalidate,
|
|
970
|
+
expire
|
|
971
|
+
}
|
|
972
|
+
};
|
|
973
|
+
return cacheEntry;
|
|
974
|
+
} else {
|
|
975
|
+
// send response without caching if not ISR
|
|
976
|
+
await (0,next_dist_server_send_response__WEBPACK_IMPORTED_MODULE_11__/* .sendResponse */ .I)(nodeNextReq, nodeNextRes, response, pendingWaitUntil);
|
|
977
|
+
return null;
|
|
978
|
+
}
|
|
979
|
+
} catch (err) {
|
|
980
|
+
// if this is a background revalidate we need to report
|
|
981
|
+
// the request error here as it won't be bubbled
|
|
982
|
+
if (previousCacheEntry == null ? void 0 : previousCacheEntry.isStale) {
|
|
983
|
+
const silenceLog = false;
|
|
984
|
+
await routeModule.onRequestError(req, err, {
|
|
985
|
+
routerKind: 'App Router',
|
|
986
|
+
routePath: srcPage,
|
|
987
|
+
routeType: 'route',
|
|
988
|
+
revalidateReason: (0,next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_10__.getRevalidateReason)({
|
|
989
|
+
isStaticGeneration: cacheKey !== null,
|
|
990
|
+
isOnDemandRevalidate
|
|
991
|
+
})
|
|
992
|
+
}, silenceLog, routerServerContext);
|
|
993
|
+
}
|
|
994
|
+
throw err;
|
|
1085
995
|
}
|
|
1086
|
-
}
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
996
|
+
};
|
|
997
|
+
const handleResponse = async (currentSpan)=>{
|
|
998
|
+
try {
|
|
999
|
+
var _cacheEntry_value;
|
|
1000
|
+
const cacheEntry = await routeModule.handleResponse({
|
|
1001
|
+
req,
|
|
1002
|
+
nextConfig,
|
|
1003
|
+
cacheKey,
|
|
1004
|
+
routeKind: next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__.RouteKind.APP_ROUTE,
|
|
1005
|
+
isFallback: false,
|
|
1006
|
+
previewProps,
|
|
1007
|
+
prerenderManifest,
|
|
1008
|
+
isRoutePPREnabled: false,
|
|
1009
|
+
isOnDemandRevalidate,
|
|
1010
|
+
revalidateOnlyGenerated,
|
|
1011
|
+
responseGenerator,
|
|
1012
|
+
waitUntil: ctx.waitUntil,
|
|
1013
|
+
isMinimalMode
|
|
1014
|
+
});
|
|
1015
|
+
if (cacheEntry !== null && 'error' in cacheEntry) {
|
|
1016
|
+
throw cacheEntry.error;
|
|
1017
|
+
}
|
|
1018
|
+
// we don't create a cacheEntry for ISR
|
|
1019
|
+
if (!isIsr) {
|
|
1020
|
+
return;
|
|
1021
|
+
}
|
|
1022
|
+
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) {
|
|
1023
|
+
var _cacheEntry_value1;
|
|
1024
|
+
throw new Error(`Invariant: app-route received invalid cache entry ${cacheEntry == null ? void 0 : (_cacheEntry_value1 = cacheEntry.value) == null ? void 0 : _cacheEntry_value1.kind}`);
|
|
1025
|
+
}
|
|
1026
|
+
if (!isMinimalMode) {
|
|
1027
|
+
res.setHeader('x-nextjs-cache', isOnDemandRevalidate ? 'REVALIDATED' : cacheEntry.isMiss ? 'MISS' : cacheEntry.isStale ? 'STALE' : 'HIT');
|
|
1028
|
+
}
|
|
1029
|
+
// Draft mode should never be cached
|
|
1030
|
+
if (isDraftMode) {
|
|
1031
|
+
res.setHeader('Cache-Control', 'private, no-cache, no-store, max-age=0, must-revalidate');
|
|
1032
|
+
}
|
|
1033
|
+
const headers = (0,next_dist_server_web_utils__WEBPACK_IMPORTED_MODULE_12__.fromNodeOutgoingHttpHeaders)(cacheEntry.value.headers);
|
|
1034
|
+
if (!(isMinimalMode && isIsr)) {
|
|
1035
|
+
headers.delete(next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__.NEXT_CACHE_TAGS_HEADER);
|
|
1036
|
+
}
|
|
1037
|
+
// If cache control is already set on the response we don't
|
|
1038
|
+
// override it to allow users to customize it via next.config
|
|
1039
|
+
if (cacheEntry.cacheControl && !res.getHeader('Cache-Control') && !headers.get('Cache-Control')) {
|
|
1040
|
+
headers.set('Cache-Control', (0,next_dist_server_lib_cache_control__WEBPACK_IMPORTED_MODULE_13__.getCacheControlHeader)(cacheEntry.cacheControl));
|
|
1041
|
+
}
|
|
1042
|
+
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'.
|
|
1043
|
+
new Response(cacheEntry.value.body, {
|
|
1044
|
+
headers,
|
|
1045
|
+
status: cacheEntry.value.status || 200
|
|
1046
|
+
}));
|
|
1047
|
+
return;
|
|
1048
|
+
} catch (err) {
|
|
1049
|
+
if (!(err instanceof next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_15__.NoFallbackError)) {
|
|
1050
|
+
const silenceLog = false;
|
|
1051
|
+
await routeModule.onRequestError(req, err, {
|
|
1052
|
+
routerKind: 'App Router',
|
|
1053
|
+
routePath: normalizedSrcPage,
|
|
1054
|
+
routeType: 'route',
|
|
1055
|
+
revalidateReason: (0,next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_10__.getRevalidateReason)({
|
|
1056
|
+
isStaticGeneration: cacheKey !== null,
|
|
1057
|
+
isOnDemandRevalidate
|
|
1058
|
+
})
|
|
1059
|
+
}, silenceLog, routerServerContext);
|
|
1060
|
+
}
|
|
1061
|
+
// rethrow so that we can handle serving error page
|
|
1062
|
+
// If this is during static generation, throw the error again.
|
|
1063
|
+
if (isIsr) throw err;
|
|
1064
|
+
// Otherwise, send a 500 response unless the original response has
|
|
1065
|
+
// already committed. In that case, preserve its status code for
|
|
1066
|
+
// telemetry while still recording the failure and terminating a response
|
|
1067
|
+
// that the failed pipeline left open.
|
|
1068
|
+
if (res.headersSent) {
|
|
1069
|
+
if (currentSpan) {
|
|
1070
|
+
const error = err instanceof Error ? err : new Error('Unknown app route error');
|
|
1071
|
+
currentSpan.recordException(error);
|
|
1072
|
+
currentSpan.setStatus({
|
|
1073
|
+
code: next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.SpanStatusCode.ERROR,
|
|
1074
|
+
message: error.message
|
|
1075
|
+
});
|
|
1076
|
+
currentSpan.setAttribute('error.type', error.name);
|
|
1077
|
+
}
|
|
1078
|
+
if (!res.writableEnded && !res.destroyed) {
|
|
1079
|
+
res.end();
|
|
1080
|
+
}
|
|
1081
|
+
} else {
|
|
1082
|
+
await (0,next_dist_server_send_response__WEBPACK_IMPORTED_MODULE_11__/* .sendResponse */ .I)(nodeNextReq, nodeNextRes, new Response(null, {
|
|
1083
|
+
status: 500
|
|
1084
|
+
}));
|
|
1085
|
+
}
|
|
1086
|
+
return;
|
|
1087
|
+
} finally{
|
|
1088
|
+
;
|
|
1089
|
+
(()=>{
|
|
1090
|
+
if (!currentSpan) {
|
|
1091
|
+
return;
|
|
1092
|
+
}
|
|
1093
|
+
let statusCode = res.statusCode;
|
|
1094
|
+
currentSpan.setAttributes({
|
|
1095
|
+
'http.status_code': statusCode,
|
|
1096
|
+
'next.rsc': false
|
|
1097
|
+
});
|
|
1098
|
+
if (statusCode && statusCode >= 500) {
|
|
1099
|
+
// For 5xx status codes: SHOULD be set to 'Error' span status.
|
|
1100
|
+
// x-ref: https://opentelemetry.io/docs/specs/semconv/http/http-spans/#status
|
|
1101
|
+
currentSpan.setStatus({
|
|
1102
|
+
code: next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.SpanStatusCode.ERROR
|
|
1103
|
+
});
|
|
1104
|
+
// For span status 'Error', SHOULD set 'error.type' attribute.
|
|
1105
|
+
currentSpan.setAttribute('error.type', statusCode.toString());
|
|
1106
|
+
}
|
|
1107
|
+
const rootSpanAttributes = tracer.getRootSpanAttributes();
|
|
1108
|
+
// We were unable to get attributes, probably OTEL is not enabled
|
|
1109
|
+
if (!rootSpanAttributes) {
|
|
1110
|
+
return;
|
|
1111
|
+
}
|
|
1112
|
+
if (rootSpanAttributes.get('next.span_type') !== next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_9__.BaseServerSpan.handleRequest) {
|
|
1113
|
+
console.warn(`Unexpected root span type '${rootSpanAttributes.get('next.span_type')}'. Please report this Next.js issue https://github.com/vercel/next.js`);
|
|
1114
|
+
return;
|
|
1115
|
+
}
|
|
1116
|
+
const route = rootSpanAttributes.get('next.route') || normalizedSrcPage;
|
|
1117
|
+
const name = `${method} ${route}`;
|
|
1118
|
+
currentSpan.setAttributes({
|
|
1119
|
+
'next.route': route,
|
|
1120
|
+
'http.route': route,
|
|
1121
|
+
'next.span_name': name
|
|
1122
|
+
});
|
|
1123
|
+
currentSpan.updateName(name);
|
|
1124
|
+
// Propagate http.route to the request's root span if it isn't the
|
|
1125
|
+
// request span (e.g. a platform-created HTTP span in adapter
|
|
1126
|
+
// deployments).
|
|
1127
|
+
if (requestRootSpan && requestRootSpan !== currentSpan) {
|
|
1128
|
+
requestRootSpan.setAttribute('http.route', route);
|
|
1129
|
+
requestRootSpan.updateName(name);
|
|
1130
|
+
}
|
|
1131
|
+
})();
|
|
1094
1132
|
}
|
|
1095
|
-
}
|
|
1096
|
-
|
|
1097
|
-
//
|
|
1098
|
-
//
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
// if (parsed instanceof NextResponse) return parsed;
|
|
1102
|
-
// // use parsed.field
|
|
1103
|
-
async function validateBody(req, schema) {
|
|
1104
|
-
let raw;
|
|
1105
|
-
try {
|
|
1106
|
-
raw = await req.json();
|
|
1107
|
-
} catch {
|
|
1108
|
-
return errorResponse("Request body must be valid JSON", 400);
|
|
1109
|
-
}
|
|
1110
|
-
const parsed = schema.safeParse(raw);
|
|
1111
|
-
if (!parsed.success) {
|
|
1112
|
-
return errorResponse(parsed.error.issues[0]?.message ?? "invalid body", 400);
|
|
1133
|
+
};
|
|
1134
|
+
// When invoked directly, the request span was started before `prepare`;
|
|
1135
|
+
// record the request target as normalized by it. next-server's request span
|
|
1136
|
+
// already has it.
|
|
1137
|
+
if (!isWrappedByNextServer && req.url !== undefined) {
|
|
1138
|
+
requestSpan == null ? void 0 : requestSpan.setAttribute('http.target', req.url);
|
|
1113
1139
|
}
|
|
1114
|
-
|
|
1140
|
+
await handleResponse(requestSpan);
|
|
1115
1141
|
}
|
|
1116
1142
|
|
|
1143
|
+
//# sourceMappingURL=app-route.js.map
|
|
1117
1144
|
|
|
1118
|
-
/***/ }),
|
|
1119
|
-
|
|
1120
|
-
/***/ 744870:
|
|
1121
|
-
/***/ ((module) => {
|
|
1122
|
-
|
|
1123
|
-
module.exports = require("next/dist/compiled/next-server/app-route.runtime.prod.js");
|
|
1124
|
-
|
|
1125
|
-
/***/ }),
|
|
1126
|
-
|
|
1127
|
-
/***/ 775919:
|
|
1128
|
-
/***/ ((module) => {
|
|
1129
|
-
|
|
1130
|
-
module.exports = require("node:worker_threads");
|
|
1131
|
-
|
|
1132
|
-
/***/ }),
|
|
1133
|
-
|
|
1134
|
-
/***/ 777030:
|
|
1135
|
-
/***/ ((module) => {
|
|
1136
|
-
|
|
1137
|
-
module.exports = require("node:net");
|
|
1138
|
-
|
|
1139
|
-
/***/ }),
|
|
1140
|
-
|
|
1141
|
-
/***/ 781630:
|
|
1142
|
-
/***/ ((module) => {
|
|
1143
|
-
|
|
1144
|
-
module.exports = require("http");
|
|
1145
1145
|
|
|
1146
1146
|
/***/ }),
|
|
1147
1147
|
|
|
@@ -1258,7 +1258,7 @@ module.exports = require("next/dist/shared/lib/no-fallback-error.external");
|
|
|
1258
1258
|
var __webpack_require__ = require("../../../../../../webpack-runtime.js");
|
|
1259
1259
|
__webpack_require__.C(exports);
|
|
1260
1260
|
var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
|
|
1261
|
-
var __webpack_exports__ = __webpack_require__.X(0, [2970,7377,1813,4891,4992,1244], () => (__webpack_exec__(
|
|
1261
|
+
var __webpack_exports__ = __webpack_require__.X(0, [2970,7377,1813,4891,4992,1244], () => (__webpack_exec__(796180)));
|
|
1262
1262
|
module.exports = __webpack_exports__;
|
|
1263
1263
|
|
|
1264
1264
|
})();
|