@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
|
@@ -232,739 +232,739 @@ module.exports = require("node:path");
|
|
|
232
232
|
|
|
233
233
|
/***/ }),
|
|
234
234
|
|
|
235
|
-
/***/
|
|
235
|
+
/***/ 188939:
|
|
236
236
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
237
237
|
|
|
238
|
-
__webpack_require__.r(__webpack_exports__);
|
|
239
238
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
240
|
-
/* harmony export */
|
|
241
|
-
/* harmony export */
|
|
242
|
-
/* harmony export */
|
|
243
|
-
/* harmony export */
|
|
244
|
-
/* harmony export */
|
|
245
|
-
/* harmony export */
|
|
239
|
+
/* harmony export */ H0: () => (/* binding */ listAsyncResults),
|
|
240
|
+
/* harmony export */ Ss: () => (/* binding */ getAsyncResult),
|
|
241
|
+
/* harmony export */ W_: () => (/* binding */ startOwnedAsyncCall),
|
|
242
|
+
/* harmony export */ eN: () => (/* binding */ completeAsyncCall),
|
|
243
|
+
/* harmony export */ m3: () => (/* binding */ consumeAsyncResult),
|
|
244
|
+
/* harmony export */ zc: () => (/* binding */ failAsyncCall)
|
|
246
245
|
/* harmony export */ });
|
|
247
|
-
/* harmony
|
|
248
|
-
/* harmony import */ var
|
|
249
|
-
/* harmony import */ var
|
|
250
|
-
/* harmony import */ var
|
|
251
|
-
/* harmony import */ var
|
|
252
|
-
/* harmony import */ var
|
|
253
|
-
/* harmony import */ var
|
|
254
|
-
/* harmony import */ var
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
/* harmony import */ var next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__);
|
|
273
|
-
/* harmony import */ var next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(986439);
|
|
274
|
-
/* 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__);
|
|
275
|
-
/* harmony import */ var next_dist_server_lib_route_cache_key__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(710246);
|
|
276
|
-
/* 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__);
|
|
277
|
-
/* harmony import */ var next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(137527);
|
|
278
|
-
/* 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__);
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
246
|
+
/* unused harmony exports DEFAULT_TTL_MS, MAX_ENTRIES, stopAsyncResults, startAsyncCall, retryAsyncResultSettlements, attachAsyncResultOwner, sweepExpired, __resetStore, __backdateFinished */
|
|
247
|
+
/* harmony import */ var node_crypto__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(977598);
|
|
248
|
+
/* harmony import */ var node_crypto__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(node_crypto__WEBPACK_IMPORTED_MODULE_0__);
|
|
249
|
+
/* harmony import */ var _lib_utils_error__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(922032);
|
|
250
|
+
/* harmony import */ var _lib_stores_background_results__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(576332);
|
|
251
|
+
/* harmony import */ var _lib_stores_system_signals__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(441982);
|
|
252
|
+
/* harmony import */ var _lib_lifecycle_system_signals__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(583566);
|
|
253
|
+
/* harmony import */ var _lib_utils_global_state__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(115559);
|
|
254
|
+
// In-process keyed store for async tool results.
|
|
255
|
+
//
|
|
256
|
+
// When the wallclock wrapper sees `async_run: true` on a tool call it
|
|
257
|
+
// returns immediately with a key, kicks the real invocation off in the
|
|
258
|
+
// background, and parks the eventual result here. The agent later
|
|
259
|
+
// retrieves the result via the `tool_result_get` built-in.
|
|
260
|
+
//
|
|
261
|
+
// The key map is a cache. Agent-owned background result envelopes are also
|
|
262
|
+
// encrypted in SQLite and retrieved with thread-owner checks after restart.
|
|
263
|
+
// Oversized payloads use the existing spill/reference API.
|
|
264
|
+
//
|
|
265
|
+
// Memory hygiene:
|
|
266
|
+
// - TTL (DEFAULT_TTL_MS) caps how long a finished result hangs around
|
|
267
|
+
// unread. A background sweeper runs on a slow interval.
|
|
268
|
+
// - Cap on concurrent entries (MAX_ENTRIES). When exceeded, the
|
|
269
|
+
// oldest *finished* entry is evicted first; if none, the oldest
|
|
270
|
+
// pending entry is dropped (with a console warn).
|
|
291
271
|
|
|
292
272
|
|
|
293
273
|
|
|
294
274
|
|
|
295
275
|
|
|
296
276
|
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
const
|
|
300
|
-
const
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
// correctly attributing module load time to application-code rather than
|
|
315
|
-
// framework internals.
|
|
316
|
-
// - In all modes: async modules (route files with top-level await) are
|
|
317
|
-
// handled correctly — require() returns a Promise for such modules, which
|
|
318
|
-
// ensureUserland() awaits before the first request is handled.
|
|
319
|
-
userland: ()=>__webpack_require__(624628),
|
|
320
|
-
// In Turbopack dev mode, also provide a synchronous per-request getter so
|
|
321
|
-
// server HMR updates are picked up without re-executing the entry chunk.
|
|
322
|
-
// Using require() (synchronous) avoids adding async overhead that would be
|
|
323
|
-
// incorrectly attributed to application-code time in devRequestTiming.
|
|
324
|
-
... false ? 0 : {}
|
|
325
|
-
});
|
|
326
|
-
// Pull out the exports that we need to expose from the module. This should
|
|
327
|
-
// be eliminated when we've moved the other routes to the new format. These
|
|
328
|
-
// are used to hook into the route.
|
|
329
|
-
const { workAsyncStorage, workUnitAsyncStorage, serverHooks } = routeModule;
|
|
330
|
-
function patchFetch() {
|
|
331
|
-
return (0,next_dist_server_lib_patch_fetch__WEBPACK_IMPORTED_MODULE_2__.patchFetch)({
|
|
332
|
-
workAsyncStorage,
|
|
333
|
-
workUnitAsyncStorage
|
|
334
|
-
});
|
|
277
|
+
/** How long a finished result stays around if nobody reads it. */ const DEFAULT_TTL_MS = 10 * 60 * 1000;
|
|
278
|
+
/** Soft cap on total entries (pending + finished). */ const MAX_ENTRIES = 256;
|
|
279
|
+
/** How often the background sweeper runs. */ const SWEEP_INTERVAL_MS = 60 * 1000;
|
|
280
|
+
const state = (0,_lib_utils_global_state__WEBPACK_IMPORTED_MODULE_4__/* .getOrCreateGlobal */ .X)("__jarela_async_result_state", ()=>({
|
|
281
|
+
records: new Map(),
|
|
282
|
+
pendingSettlements: new Map(),
|
|
283
|
+
sweeper: null
|
|
284
|
+
}));
|
|
285
|
+
const STORE = state.records;
|
|
286
|
+
const pendingSettlements = state.pendingSettlements;
|
|
287
|
+
function ensureSweeper() {
|
|
288
|
+
if (state.sweeper) return;
|
|
289
|
+
state.sweeper = setInterval(()=>{
|
|
290
|
+
retryAsyncResultSettlements();
|
|
291
|
+
sweepExpired(DEFAULT_TTL_MS);
|
|
292
|
+
}, SWEEP_INTERVAL_MS);
|
|
293
|
+
state.sweeper.unref?.();
|
|
335
294
|
}
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
}
|
|
344
|
-
let srcPage = "/api/v1/delegations/codex/[job_id]/route";
|
|
345
|
-
// turbopack doesn't normalize `/index` in the page name
|
|
346
|
-
// so we need to to process dynamic routes properly
|
|
347
|
-
// TODO: fix turbopack providing differing value from webpack
|
|
348
|
-
if (false) {} else if (srcPage === '/index') {
|
|
349
|
-
// we always normalize /index specifically
|
|
350
|
-
srcPage = '/';
|
|
295
|
+
/**
|
|
296
|
+
* Tear down the sweeper. Called from the shutdown drain so the timer
|
|
297
|
+
* isn't keeping the event loop alive past close-time. Idempotent.
|
|
298
|
+
*/ function stopAsyncResults() {
|
|
299
|
+
if (state.sweeper) {
|
|
300
|
+
clearInterval(state.sweeper);
|
|
301
|
+
state.sweeper = null;
|
|
351
302
|
}
|
|
352
|
-
const multiZoneDraftMode = false;
|
|
353
|
-
// Registering `instrumentation.ts` usually installs the tracer provider, so
|
|
354
|
-
// do it before starting the request span. The span is started before
|
|
355
|
-
// `prepare`, so route module preparation is part of the request's trace.
|
|
356
|
-
// When this request triggers registration, the lifecycle spans of
|
|
357
|
-
// `instrumentation.ts` are emitted inside the request span.
|
|
358
|
-
const { instrumentation } = await routeModule.ensureInstrumentation(req, {
|
|
359
|
-
deferSpans: true
|
|
360
|
-
});
|
|
361
|
-
return routeModule.traceRequest(req, {
|
|
362
|
-
tracer: (0,next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.getTracer)(),
|
|
363
|
-
spanName: `${req.method || 'GET'} ${srcPage}`,
|
|
364
|
-
httpTarget: req.url,
|
|
365
|
-
instrumentation
|
|
366
|
-
}, (requestSpan, requestRootSpan)=>handleRequest(req, res, ctx, srcPage, multiZoneDraftMode, requestSpan, requestRootSpan));
|
|
367
303
|
}
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
304
|
+
/**
|
|
305
|
+
* Carve out a slot for a new async tool call and return its key.
|
|
306
|
+
* The key is opaque and URL-safe — the agent treats it as a token.
|
|
307
|
+
*/ function startAsyncCall(tool) {
|
|
308
|
+
ensureSweeper();
|
|
309
|
+
enforceCap();
|
|
310
|
+
const key = `async_${node_crypto__WEBPACK_IMPORTED_MODULE_0___default().randomBytes(8).toString("hex")}`;
|
|
311
|
+
STORE.set(key, {
|
|
312
|
+
key,
|
|
313
|
+
tool,
|
|
314
|
+
status: "pending",
|
|
315
|
+
started_at: Date.now(),
|
|
316
|
+
finished_at: null,
|
|
317
|
+
result: null,
|
|
318
|
+
error: null
|
|
372
319
|
});
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
const normalizedSrcPage = (0,next_dist_shared_lib_router_utils_app_paths__WEBPACK_IMPORTED_MODULE_6__.normalizeAppPath)(srcPage);
|
|
381
|
-
// Only this route's prerenders can establish ISR or admit generated params.
|
|
382
|
-
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]));
|
|
383
|
-
let isIsr = Boolean(prerenderManifest.dynamicRoutes[normalizedSrcPage] || isPrerendered);
|
|
384
|
-
const render404 = async ()=>{
|
|
385
|
-
// TODO: should route-module itself handle rendering the 404
|
|
386
|
-
if (routerServerContext == null ? void 0 : routerServerContext.render404) {
|
|
387
|
-
await routerServerContext.render404(req, res, parsedUrl, false);
|
|
388
|
-
} else {
|
|
389
|
-
res.end('This page could not be found');
|
|
390
|
-
}
|
|
391
|
-
return null;
|
|
320
|
+
return key;
|
|
321
|
+
}
|
|
322
|
+
function startOwnedAsyncCall(tool, threadId, signalContinuation = false, extraPayload = {}) {
|
|
323
|
+
const key = startAsyncCall(tool);
|
|
324
|
+
if (typeof threadId !== "string") return {
|
|
325
|
+
key,
|
|
326
|
+
owned: false
|
|
392
327
|
};
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
328
|
+
let owned = false;
|
|
329
|
+
try {
|
|
330
|
+
(0,_lib_stores_system_signals__WEBPACK_IMPORTED_MODULE_2__/* .withSystemSignalTransaction */ .yg)(()=>{
|
|
331
|
+
const operationId = (0,_lib_lifecycle_system_signals__WEBPACK_IMPORTED_MODULE_3__/* .beginThreadOperation */ .ll)(threadId, "background_tool", key, {
|
|
332
|
+
...extraPayload,
|
|
333
|
+
tool,
|
|
334
|
+
wake_eligible: !signalContinuation
|
|
335
|
+
});
|
|
336
|
+
if (operationId && typeof threadId === "string") {
|
|
337
|
+
attachAsyncResultOwner(key, threadId);
|
|
338
|
+
owned = true;
|
|
401
339
|
}
|
|
402
|
-
}
|
|
403
|
-
}
|
|
404
|
-
let cacheKey = null;
|
|
405
|
-
if (isIsr && !routeModule.isDev && !isDraftMode) {
|
|
406
|
-
cacheKey = resolvedPathname;
|
|
407
|
-
// ensure /index and / is normalized to one key
|
|
408
|
-
cacheKey = cacheKey === '/index' ? '/' : cacheKey;
|
|
409
|
-
}
|
|
410
|
-
// Before rendering (which initializes component tree modules), we have to
|
|
411
|
-
// set the reference manifests to our global store so Server Action's
|
|
412
|
-
// encryption util can access to them at the top level of the page module.
|
|
413
|
-
if (serverActionsManifest && clientReferenceManifest) {
|
|
414
|
-
(0,next_dist_server_app_render_manifests_singleton__WEBPACK_IMPORTED_MODULE_5__.setManifestsSingleton)({
|
|
415
|
-
page: srcPage,
|
|
416
|
-
clientReferenceManifest,
|
|
417
|
-
serverActionsManifest
|
|
418
340
|
});
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
}
|
|
466
|
-
const response = cacheKey === null ? await routeModule.handle(nextReq, context) : await routeModule.prerender(nextReq, context);
|
|
467
|
-
req.fetchMetrics = context.renderOpts.fetchMetrics;
|
|
468
|
-
let pendingWaitUntil = context.renderOpts.pendingWaitUntil;
|
|
469
|
-
// Attempt using provided waitUntil if available
|
|
470
|
-
// if it's not we fallback to sendResponse's handling
|
|
471
|
-
if (pendingWaitUntil) {
|
|
472
|
-
if (ctx.waitUntil) {
|
|
473
|
-
ctx.waitUntil(pendingWaitUntil);
|
|
474
|
-
pendingWaitUntil = undefined;
|
|
475
|
-
}
|
|
476
|
-
}
|
|
477
|
-
const cacheTags = context.renderOpts.collectedTags;
|
|
478
|
-
// If the request is for a static response, we can cache it so long
|
|
479
|
-
// as it's not edge.
|
|
480
|
-
if (isIsr) {
|
|
481
|
-
const blob = await response.blob();
|
|
482
|
-
// Copy the headers from the response.
|
|
483
|
-
const headers = (0,next_dist_server_web_utils__WEBPACK_IMPORTED_MODULE_12__.toNodeOutgoingHttpHeaders)(response.headers);
|
|
484
|
-
if (cacheTags) {
|
|
485
|
-
headers[next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__.NEXT_CACHE_TAGS_HEADER] = cacheTags;
|
|
486
|
-
}
|
|
487
|
-
if (!headers['content-type'] && blob.type) {
|
|
488
|
-
headers['content-type'] = blob.type;
|
|
489
|
-
}
|
|
490
|
-
const revalidate = typeof context.renderOpts.collectedRevalidate === 'undefined' || context.renderOpts.collectedRevalidate >= next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__.INFINITE_CACHE ? false : context.renderOpts.collectedRevalidate;
|
|
491
|
-
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
|
|
492
|
-
// explicit `expire` (e.g. via `cacheLife`). This mirrors the
|
|
493
|
-
// build-time fallback in `build/index.ts` so cache entries
|
|
494
|
-
// and the response Cache-Control header agree on the route's
|
|
495
|
-
// effective expire. Routes that opt out of revalidation
|
|
496
|
-
// (`revalidate: false`) or that are dynamic (`revalidate: 0`)
|
|
497
|
-
// keep `expire: undefined`.
|
|
498
|
-
revalidate !== false && revalidate > 0 ? nextConfig.expireTime : undefined : context.renderOpts.collectedExpire;
|
|
499
|
-
// Create the cache entry for the response.
|
|
500
|
-
const cacheEntry = {
|
|
501
|
-
value: {
|
|
502
|
-
kind: next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__.CachedRouteKind.APP_ROUTE,
|
|
503
|
-
status: response.status,
|
|
504
|
-
body: Buffer.from(await blob.arrayBuffer()),
|
|
505
|
-
headers
|
|
506
|
-
},
|
|
507
|
-
cacheControl: {
|
|
508
|
-
revalidate,
|
|
509
|
-
expire
|
|
510
|
-
}
|
|
511
|
-
};
|
|
512
|
-
return cacheEntry;
|
|
513
|
-
} else {
|
|
514
|
-
// send response without caching if not ISR
|
|
515
|
-
await (0,next_dist_server_send_response__WEBPACK_IMPORTED_MODULE_11__/* .sendResponse */ .I)(nodeNextReq, nodeNextRes, response, pendingWaitUntil);
|
|
516
|
-
return null;
|
|
517
|
-
}
|
|
518
|
-
} catch (err) {
|
|
519
|
-
// if this is a background revalidate we need to report
|
|
520
|
-
// the request error here as it won't be bubbled
|
|
521
|
-
if (previousCacheEntry == null ? void 0 : previousCacheEntry.isStale) {
|
|
522
|
-
const silenceLog = false;
|
|
523
|
-
await routeModule.onRequestError(req, err, {
|
|
524
|
-
routerKind: 'App Router',
|
|
525
|
-
routePath: srcPage,
|
|
526
|
-
routeType: 'route',
|
|
527
|
-
revalidateReason: (0,next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_10__.getRevalidateReason)({
|
|
528
|
-
isStaticGeneration: cacheKey !== null,
|
|
529
|
-
isOnDemandRevalidate
|
|
530
|
-
})
|
|
531
|
-
}, silenceLog, routerServerContext);
|
|
532
|
-
}
|
|
533
|
-
throw err;
|
|
341
|
+
return {
|
|
342
|
+
key,
|
|
343
|
+
owned
|
|
344
|
+
};
|
|
345
|
+
} catch (error) {
|
|
346
|
+
STORE.delete(key);
|
|
347
|
+
throw error;
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
/** Mark a pending call as completed successfully. */ function completeAsyncCall(key, result) {
|
|
351
|
+
const rec = STORE.get(key);
|
|
352
|
+
if (!rec) return;
|
|
353
|
+
settleAsyncResult(rec, {
|
|
354
|
+
status: "done",
|
|
355
|
+
result,
|
|
356
|
+
error: null,
|
|
357
|
+
kind: "background_tool.completed",
|
|
358
|
+
attempts: 0,
|
|
359
|
+
availableAt: Date.now()
|
|
360
|
+
});
|
|
361
|
+
}
|
|
362
|
+
/** Mark a pending call as failed. */ function failAsyncCall(key, err, kind = "background_tool.failed") {
|
|
363
|
+
const rec = STORE.get(key);
|
|
364
|
+
if (!rec) return;
|
|
365
|
+
settleAsyncResult(rec, {
|
|
366
|
+
status: "error",
|
|
367
|
+
result: null,
|
|
368
|
+
error: (0,_lib_utils_error__WEBPACK_IMPORTED_MODULE_5__/* .errorMessage */ .g)(err),
|
|
369
|
+
kind,
|
|
370
|
+
attempts: 0,
|
|
371
|
+
availableAt: Date.now()
|
|
372
|
+
});
|
|
373
|
+
}
|
|
374
|
+
function settleAsyncResult(record, settlement) {
|
|
375
|
+
if (record.owner_thread_id) {
|
|
376
|
+
if (Buffer.byteLength(JSON.stringify({
|
|
377
|
+
result: settlement.result,
|
|
378
|
+
error: settlement.error
|
|
379
|
+
})) > _lib_stores_background_results__WEBPACK_IMPORTED_MODULE_1__/* .BACKGROUND_RESULT_MAX_BYTES */ .sO) {
|
|
380
|
+
settlement = {
|
|
381
|
+
...settlement,
|
|
382
|
+
status: "error",
|
|
383
|
+
result: null,
|
|
384
|
+
error: "Background output exceeded its durable storage budget. The operation may have completed; verify external effects before retrying.",
|
|
385
|
+
kind: "background_tool.failed"
|
|
386
|
+
};
|
|
534
387
|
}
|
|
535
|
-
};
|
|
536
|
-
const handleResponse = async (currentSpan)=>{
|
|
537
388
|
try {
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
isOnDemandRevalidate,
|
|
549
|
-
revalidateOnlyGenerated,
|
|
550
|
-
responseGenerator,
|
|
551
|
-
waitUntil: ctx.waitUntil,
|
|
552
|
-
isMinimalMode
|
|
553
|
-
});
|
|
554
|
-
if (cacheEntry !== null && 'error' in cacheEntry) {
|
|
555
|
-
throw cacheEntry.error;
|
|
556
|
-
}
|
|
557
|
-
// we don't create a cacheEntry for ISR
|
|
558
|
-
if (!isIsr) {
|
|
389
|
+
(0,_lib_stores_system_signals__WEBPACK_IMPORTED_MODULE_2__/* .finishBackgroundOperation */ .Fb)(record.key, settlement.status, settlement.result, settlement.error, settlement.kind);
|
|
390
|
+
} catch {
|
|
391
|
+
settlement.attempts++;
|
|
392
|
+
if (settlement.attempts < 5) {
|
|
393
|
+
settlement.availableAt = Date.now() + Math.min(60000, 1000 * 2 ** settlement.attempts);
|
|
394
|
+
pendingSettlements.set(record.key, settlement);
|
|
395
|
+
console.warn("[async-results] outcome settlement deferred", {
|
|
396
|
+
key: record.key,
|
|
397
|
+
attempt: settlement.attempts
|
|
398
|
+
});
|
|
559
399
|
return;
|
|
560
400
|
}
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
}
|
|
568
|
-
// Draft mode should never be cached
|
|
569
|
-
if (isDraftMode) {
|
|
570
|
-
res.setHeader('Cache-Control', 'private, no-cache, no-store, max-age=0, must-revalidate');
|
|
571
|
-
}
|
|
572
|
-
const headers = (0,next_dist_server_web_utils__WEBPACK_IMPORTED_MODULE_12__.fromNodeOutgoingHttpHeaders)(cacheEntry.value.headers);
|
|
573
|
-
if (!(isMinimalMode && isIsr)) {
|
|
574
|
-
headers.delete(next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__.NEXT_CACHE_TAGS_HEADER);
|
|
575
|
-
}
|
|
576
|
-
// If cache control is already set on the response we don't
|
|
577
|
-
// override it to allow users to customize it via next.config
|
|
578
|
-
if (cacheEntry.cacheControl && !res.getHeader('Cache-Control') && !headers.get('Cache-Control')) {
|
|
579
|
-
headers.set('Cache-Control', (0,next_dist_server_lib_cache_control__WEBPACK_IMPORTED_MODULE_13__.getCacheControlHeader)(cacheEntry.cacheControl));
|
|
580
|
-
}
|
|
581
|
-
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'.
|
|
582
|
-
new Response(cacheEntry.value.body, {
|
|
583
|
-
headers,
|
|
584
|
-
status: cacheEntry.value.status || 200
|
|
585
|
-
}));
|
|
586
|
-
return;
|
|
587
|
-
} catch (err) {
|
|
588
|
-
if (!(err instanceof next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_15__.NoFallbackError)) {
|
|
589
|
-
const silenceLog = false;
|
|
590
|
-
await routeModule.onRequestError(req, err, {
|
|
591
|
-
routerKind: 'App Router',
|
|
592
|
-
routePath: normalizedSrcPage,
|
|
593
|
-
routeType: 'route',
|
|
594
|
-
revalidateReason: (0,next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_10__.getRevalidateReason)({
|
|
595
|
-
isStaticGeneration: cacheKey !== null,
|
|
596
|
-
isOnDemandRevalidate
|
|
597
|
-
})
|
|
598
|
-
}, silenceLog, routerServerContext);
|
|
599
|
-
}
|
|
600
|
-
// rethrow so that we can handle serving error page
|
|
601
|
-
// If this is during static generation, throw the error again.
|
|
602
|
-
if (isIsr) throw err;
|
|
603
|
-
// Otherwise, send a 500 response unless the original response has
|
|
604
|
-
// already committed. In that case, preserve its status code for
|
|
605
|
-
// telemetry while still recording the failure and terminating a response
|
|
606
|
-
// that the failed pipeline left open.
|
|
607
|
-
if (res.headersSent) {
|
|
608
|
-
if (currentSpan) {
|
|
609
|
-
const error = err instanceof Error ? err : new Error('Unknown app route error');
|
|
610
|
-
currentSpan.recordException(error);
|
|
611
|
-
currentSpan.setStatus({
|
|
612
|
-
code: next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.SpanStatusCode.ERROR,
|
|
613
|
-
message: error.message
|
|
614
|
-
});
|
|
615
|
-
currentSpan.setAttribute('error.type', error.name);
|
|
616
|
-
}
|
|
617
|
-
if (!res.writableEnded && !res.destroyed) {
|
|
618
|
-
res.end();
|
|
619
|
-
}
|
|
620
|
-
} else {
|
|
621
|
-
await (0,next_dist_server_send_response__WEBPACK_IMPORTED_MODULE_11__/* .sendResponse */ .I)(nodeNextReq, nodeNextRes, new Response(null, {
|
|
622
|
-
status: 500
|
|
623
|
-
}));
|
|
624
|
-
}
|
|
401
|
+
record.status = "error";
|
|
402
|
+
record.error = "Background outcome persistence failed repeatedly. The external outcome may be unknown; do not automatically repeat the operation.";
|
|
403
|
+
record.finished_at = Date.now();
|
|
404
|
+
pendingSettlements.delete(record.key);
|
|
405
|
+
console.error("[async-results] outcome settlement exhausted", {
|
|
406
|
+
key: record.key
|
|
407
|
+
});
|
|
625
408
|
return;
|
|
626
|
-
} finally{
|
|
627
|
-
;
|
|
628
|
-
(()=>{
|
|
629
|
-
if (!currentSpan) {
|
|
630
|
-
return;
|
|
631
|
-
}
|
|
632
|
-
let statusCode = res.statusCode;
|
|
633
|
-
currentSpan.setAttributes({
|
|
634
|
-
'http.status_code': statusCode,
|
|
635
|
-
'next.rsc': false
|
|
636
|
-
});
|
|
637
|
-
if (statusCode && statusCode >= 500) {
|
|
638
|
-
// For 5xx status codes: SHOULD be set to 'Error' span status.
|
|
639
|
-
// x-ref: https://opentelemetry.io/docs/specs/semconv/http/http-spans/#status
|
|
640
|
-
currentSpan.setStatus({
|
|
641
|
-
code: next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.SpanStatusCode.ERROR
|
|
642
|
-
});
|
|
643
|
-
// For span status 'Error', SHOULD set 'error.type' attribute.
|
|
644
|
-
currentSpan.setAttribute('error.type', statusCode.toString());
|
|
645
|
-
}
|
|
646
|
-
const rootSpanAttributes = tracer.getRootSpanAttributes();
|
|
647
|
-
// We were unable to get attributes, probably OTEL is not enabled
|
|
648
|
-
if (!rootSpanAttributes) {
|
|
649
|
-
return;
|
|
650
|
-
}
|
|
651
|
-
if (rootSpanAttributes.get('next.span_type') !== next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_9__.BaseServerSpan.handleRequest) {
|
|
652
|
-
console.warn(`Unexpected root span type '${rootSpanAttributes.get('next.span_type')}'. Please report this Next.js issue https://github.com/vercel/next.js`);
|
|
653
|
-
return;
|
|
654
|
-
}
|
|
655
|
-
const route = rootSpanAttributes.get('next.route') || normalizedSrcPage;
|
|
656
|
-
const name = `${method} ${route}`;
|
|
657
|
-
currentSpan.setAttributes({
|
|
658
|
-
'next.route': route,
|
|
659
|
-
'http.route': route,
|
|
660
|
-
'next.span_name': name
|
|
661
|
-
});
|
|
662
|
-
currentSpan.updateName(name);
|
|
663
|
-
// Propagate http.route to the request's root span if it isn't the
|
|
664
|
-
// request span (e.g. a platform-created HTTP span in adapter
|
|
665
|
-
// deployments).
|
|
666
|
-
if (requestRootSpan && requestRootSpan !== currentSpan) {
|
|
667
|
-
requestRootSpan.setAttribute('http.route', route);
|
|
668
|
-
requestRootSpan.updateName(name);
|
|
669
|
-
}
|
|
670
|
-
})();
|
|
671
409
|
}
|
|
672
|
-
};
|
|
673
|
-
// When invoked directly, the request span was started before `prepare`;
|
|
674
|
-
// record the request target as normalized by it. next-server's request span
|
|
675
|
-
// already has it.
|
|
676
|
-
if (!isWrappedByNextServer && req.url !== undefined) {
|
|
677
|
-
requestSpan == null ? void 0 : requestSpan.setAttribute('http.target', req.url);
|
|
678
410
|
}
|
|
679
|
-
|
|
411
|
+
pendingSettlements.delete(record.key);
|
|
412
|
+
record.status = settlement.status;
|
|
413
|
+
record.result = settlement.result;
|
|
414
|
+
record.error = settlement.error;
|
|
415
|
+
record.finished_at = Date.now();
|
|
416
|
+
}
|
|
417
|
+
function retryAsyncResultSettlements() {
|
|
418
|
+
for (const [key, settlement] of pendingSettlements){
|
|
419
|
+
if (settlement.availableAt > Date.now()) continue;
|
|
420
|
+
const record = STORE.get(key);
|
|
421
|
+
if (record) settleAsyncResult(record, settlement);
|
|
422
|
+
else pendingSettlements.delete(key);
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
/** Read a record without consuming it. */ function getAsyncResult(key, threadId) {
|
|
426
|
+
const record = STORE.get(key);
|
|
427
|
+
if (record?.owner_thread_id && !(0,_lib_stores_background_results__WEBPACK_IMPORTED_MODULE_1__/* .backgroundResultExists */ .q_)(key, record.owner_thread_id)) {
|
|
428
|
+
STORE.delete(key);
|
|
429
|
+
pendingSettlements.delete(key);
|
|
430
|
+
return null;
|
|
431
|
+
}
|
|
432
|
+
if (record && (record.owner_thread_id ? record.owner_thread_id === threadId : threadId === undefined)) return record;
|
|
433
|
+
return threadId ? (0,_lib_stores_background_results__WEBPACK_IMPORTED_MODULE_1__/* .getBackgroundResult */ .u7)(key, threadId) : null;
|
|
434
|
+
}
|
|
435
|
+
function attachAsyncResultOwner(key, threadId) {
|
|
436
|
+
const record = STORE.get(key);
|
|
437
|
+
if (!record) throw new Error("Unknown background result key");
|
|
438
|
+
(0,_lib_stores_background_results__WEBPACK_IMPORTED_MODULE_1__/* .createBackgroundResult */ .uS)(key, threadId, record.tool);
|
|
439
|
+
record.owner_thread_id = threadId;
|
|
440
|
+
}
|
|
441
|
+
/** Read and immediately delete a record. */ function consumeAsyncResult(key, threadId) {
|
|
442
|
+
const rec = getAsyncResult(key, threadId);
|
|
443
|
+
if (!rec) return null;
|
|
444
|
+
if (threadId) (0,_lib_stores_background_results__WEBPACK_IMPORTED_MODULE_1__/* .getBackgroundResult */ .u7)(key, threadId, true);
|
|
445
|
+
STORE.delete(key);
|
|
446
|
+
return rec;
|
|
447
|
+
}
|
|
448
|
+
/** Snapshot of all current records (newest first). For tool_result_list. */ function listAsyncResults(threadId) {
|
|
449
|
+
const records = new Map();
|
|
450
|
+
if (threadId) for (const record of (0,_lib_stores_background_results__WEBPACK_IMPORTED_MODULE_1__/* .listBackgroundResults */ .$X)(threadId))records.set(record.key, record);
|
|
451
|
+
for (const record of STORE.values()){
|
|
452
|
+
if (record.owner_thread_id && !(0,_lib_stores_background_results__WEBPACK_IMPORTED_MODULE_1__/* .backgroundResultExists */ .q_)(record.key, record.owner_thread_id)) {
|
|
453
|
+
STORE.delete(record.key);
|
|
454
|
+
pendingSettlements.delete(record.key);
|
|
455
|
+
continue;
|
|
456
|
+
}
|
|
457
|
+
if (record.owner_thread_id ? record.owner_thread_id === threadId : threadId === undefined) records.set(record.key, record);
|
|
458
|
+
}
|
|
459
|
+
return [
|
|
460
|
+
...records.values()
|
|
461
|
+
].sort((left, right)=>right.started_at - left.started_at);
|
|
462
|
+
}
|
|
463
|
+
/**
|
|
464
|
+
* Drop finished entries older than `ttlMs` (measured from `finished_at`).
|
|
465
|
+
* Pending entries are never expired here — a stuck tool would otherwise
|
|
466
|
+
* vanish out from under the agent.
|
|
467
|
+
*/ function sweepExpired(ttlMs) {
|
|
468
|
+
const now = Date.now();
|
|
469
|
+
let removed = 0;
|
|
470
|
+
for (const [k, r] of STORE){
|
|
471
|
+
if (r.status === "pending") continue;
|
|
472
|
+
if (r.finished_at == null) continue;
|
|
473
|
+
if (now - r.finished_at >= ttlMs) {
|
|
474
|
+
STORE.delete(k);
|
|
475
|
+
removed++;
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
return removed;
|
|
479
|
+
}
|
|
480
|
+
function enforceCap() {
|
|
481
|
+
if (STORE.size < MAX_ENTRIES) return;
|
|
482
|
+
// Prefer evicting finished entries (oldest first). Only if every entry
|
|
483
|
+
// is pending do we drop a pending one.
|
|
484
|
+
const sorted = [
|
|
485
|
+
...STORE.values()
|
|
486
|
+
].sort((a, b)=>a.started_at - b.started_at);
|
|
487
|
+
const finished = sorted.find((r)=>r.status !== "pending");
|
|
488
|
+
const victim = finished ?? sorted.find((record)=>!record.owner_thread_id);
|
|
489
|
+
if (!victim) throw new Error("Background tool capacity reached; wait for an active call to finish");
|
|
490
|
+
if (!victim) return;
|
|
491
|
+
STORE.delete(victim.key);
|
|
492
|
+
if (!finished) {
|
|
493
|
+
console.warn(`[async-results] evicted pending entry ${victim.key} (tool=${victim.tool}) ` + `to make room — STORE cap of ${MAX_ENTRIES} hit.`);
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
/** Test-only helper. */ function __resetStore() {
|
|
497
|
+
STORE.clear();
|
|
498
|
+
pendingSettlements.clear();
|
|
499
|
+
if (state.sweeper) {
|
|
500
|
+
clearInterval(state.sweeper);
|
|
501
|
+
state.sweeper = null;
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
/** Test-only helper. */ function __backdateFinished(key, finishedAt) {
|
|
505
|
+
const rec = STORE.get(key);
|
|
506
|
+
if (rec) rec.finished_at = finishedAt;
|
|
680
507
|
}
|
|
681
508
|
|
|
682
|
-
//# sourceMappingURL=app-route.js.map
|
|
683
509
|
|
|
510
|
+
/***/ }),
|
|
511
|
+
|
|
512
|
+
/***/ 200261:
|
|
513
|
+
/***/ ((module) => {
|
|
514
|
+
|
|
515
|
+
module.exports = require("next/dist/shared/lib/router/utils/app-paths");
|
|
684
516
|
|
|
685
517
|
/***/ }),
|
|
686
518
|
|
|
687
|
-
/***/
|
|
519
|
+
/***/ 225444:
|
|
688
520
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
689
521
|
|
|
522
|
+
__webpack_require__.r(__webpack_exports__);
|
|
690
523
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
691
|
-
/* harmony export */
|
|
692
|
-
/* harmony export */
|
|
693
|
-
/* harmony export */
|
|
694
|
-
/* harmony export */
|
|
695
|
-
/* harmony export */
|
|
696
|
-
/* harmony export */
|
|
524
|
+
/* harmony export */ handler: () => (/* binding */ handler),
|
|
525
|
+
/* harmony export */ patchFetch: () => (/* binding */ patchFetch),
|
|
526
|
+
/* harmony export */ routeModule: () => (/* binding */ routeModule),
|
|
527
|
+
/* harmony export */ serverHooks: () => (/* binding */ serverHooks),
|
|
528
|
+
/* harmony export */ workAsyncStorage: () => (/* binding */ workAsyncStorage),
|
|
529
|
+
/* harmony export */ workUnitAsyncStorage: () => (/* binding */ workUnitAsyncStorage)
|
|
697
530
|
/* harmony export */ });
|
|
698
|
-
/*
|
|
699
|
-
/* harmony import */ var
|
|
700
|
-
/* harmony import */ var
|
|
701
|
-
/* harmony import */ var
|
|
702
|
-
/* harmony import */ var
|
|
703
|
-
/* harmony import */ var
|
|
704
|
-
/* harmony import */ var
|
|
705
|
-
/* harmony import */ var
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
531
|
+
/* harmony import */ var next_dist_server_route_modules_app_route_module_compiled__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(319225);
|
|
532
|
+
/* 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__);
|
|
533
|
+
/* harmony import */ var next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(684006);
|
|
534
|
+
/* harmony import */ var next_dist_server_lib_patch_fetch__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8317);
|
|
535
|
+
/* 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__);
|
|
536
|
+
/* harmony import */ var next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(799373);
|
|
537
|
+
/* 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__);
|
|
538
|
+
/* harmony import */ var next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(434775);
|
|
539
|
+
/* 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__);
|
|
540
|
+
/* harmony import */ var next_dist_server_app_render_manifests_singleton__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(524235);
|
|
541
|
+
/* 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__);
|
|
542
|
+
/* harmony import */ var next_dist_shared_lib_router_utils_app_paths__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(200261);
|
|
543
|
+
/* 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__);
|
|
544
|
+
/* harmony import */ var next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(754365);
|
|
545
|
+
/* 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__);
|
|
546
|
+
/* harmony import */ var next_dist_server_web_spec_extension_adapters_next_request__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(590771);
|
|
547
|
+
/* 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__);
|
|
548
|
+
/* harmony import */ var next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(473461);
|
|
549
|
+
/* 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__);
|
|
550
|
+
/* harmony import */ var next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(767798);
|
|
551
|
+
/* harmony import */ var next_dist_server_send_response__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(192280);
|
|
552
|
+
/* harmony import */ var next_dist_server_web_utils__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(662018);
|
|
553
|
+
/* 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__);
|
|
554
|
+
/* harmony import */ var next_dist_server_lib_cache_control__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(445696);
|
|
555
|
+
/* harmony import */ var next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(347929);
|
|
556
|
+
/* harmony import */ var next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__);
|
|
557
|
+
/* harmony import */ var next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(986439);
|
|
558
|
+
/* 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__);
|
|
559
|
+
/* harmony import */ var next_dist_server_lib_route_cache_key__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(710246);
|
|
560
|
+
/* 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__);
|
|
561
|
+
/* harmony import */ var next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(137527);
|
|
562
|
+
/* 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__);
|
|
723
563
|
|
|
724
564
|
|
|
725
565
|
|
|
726
566
|
|
|
727
567
|
|
|
728
568
|
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
569
|
+
|
|
570
|
+
|
|
571
|
+
|
|
572
|
+
|
|
573
|
+
|
|
574
|
+
|
|
575
|
+
|
|
576
|
+
|
|
577
|
+
|
|
578
|
+
|
|
579
|
+
|
|
580
|
+
|
|
581
|
+
// We inject the nextConfigOutput here so that we can use them in the route
|
|
582
|
+
// module.
|
|
583
|
+
const nextConfigOutput = "standalone"
|
|
584
|
+
const routeModule = new next_dist_server_route_modules_app_route_module_compiled__WEBPACK_IMPORTED_MODULE_0__.AppRouteRouteModule({
|
|
585
|
+
definition: {
|
|
586
|
+
kind: next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__.RouteKind.APP_ROUTE,
|
|
587
|
+
page: "/api/v1/delegations/codex/[job_id]/route",
|
|
588
|
+
pathname: "/api/v1/delegations/codex/[job_id]",
|
|
589
|
+
filename: "route",
|
|
590
|
+
bundlePath: "app/api/v1/delegations/codex/[job_id]/route"
|
|
591
|
+
},
|
|
592
|
+
distDir: ".next" || 0,
|
|
593
|
+
relativeProjectDir: false || '',
|
|
594
|
+
resolvedPagePath: "/home/runner/work/jarela/jarela/app/api/v1/delegations/codex/[job_id]/route.ts",
|
|
595
|
+
nextConfigOutput,
|
|
596
|
+
// The lazy require factory ensures that:
|
|
597
|
+
// - In dev: devRequestTimingInternalsEnd is set before userland executes,
|
|
598
|
+
// correctly attributing module load time to application-code rather than
|
|
599
|
+
// framework internals.
|
|
600
|
+
// - In all modes: async modules (route files with top-level await) are
|
|
601
|
+
// handled correctly — require() returns a Promise for such modules, which
|
|
602
|
+
// ensureUserland() awaits before the first request is handled.
|
|
603
|
+
userland: ()=>__webpack_require__(624628),
|
|
604
|
+
// In Turbopack dev mode, also provide a synchronous per-request getter so
|
|
605
|
+
// server HMR updates are picked up without re-executing the entry chunk.
|
|
606
|
+
// Using require() (synchronous) avoids adding async overhead that would be
|
|
607
|
+
// incorrectly attributed to application-code time in devRequestTiming.
|
|
608
|
+
... false ? 0 : {}
|
|
609
|
+
});
|
|
610
|
+
// Pull out the exports that we need to expose from the module. This should
|
|
611
|
+
// be eliminated when we've moved the other routes to the new format. These
|
|
612
|
+
// are used to hook into the route.
|
|
613
|
+
const { workAsyncStorage, workUnitAsyncStorage, serverHooks } = routeModule;
|
|
614
|
+
function patchFetch() {
|
|
615
|
+
return (0,next_dist_server_lib_patch_fetch__WEBPACK_IMPORTED_MODULE_2__.patchFetch)({
|
|
616
|
+
workAsyncStorage,
|
|
617
|
+
workUnitAsyncStorage
|
|
618
|
+
});
|
|
755
619
|
}
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
620
|
+
|
|
621
|
+
async function handler(req, res, ctx) {
|
|
622
|
+
if (ctx.requestMeta) {
|
|
623
|
+
(0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.setRequestMeta)(req, ctx.requestMeta);
|
|
624
|
+
}
|
|
625
|
+
if (routeModule.isDev) {
|
|
626
|
+
(0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.addRequestMeta)(req, 'devRequestTimingInternalsEnd', process.hrtime.bigint());
|
|
627
|
+
}
|
|
628
|
+
let srcPage = "/api/v1/delegations/codex/[job_id]/route";
|
|
629
|
+
// turbopack doesn't normalize `/index` in the page name
|
|
630
|
+
// so we need to to process dynamic routes properly
|
|
631
|
+
// TODO: fix turbopack providing differing value from webpack
|
|
632
|
+
if (false) {} else if (srcPage === '/index') {
|
|
633
|
+
// we always normalize /index specifically
|
|
634
|
+
srcPage = '/';
|
|
635
|
+
}
|
|
636
|
+
const multiZoneDraftMode = false;
|
|
637
|
+
// Registering `instrumentation.ts` usually installs the tracer provider, so
|
|
638
|
+
// do it before starting the request span. The span is started before
|
|
639
|
+
// `prepare`, so route module preparation is part of the request's trace.
|
|
640
|
+
// When this request triggers registration, the lifecycle spans of
|
|
641
|
+
// `instrumentation.ts` are emitted inside the request span.
|
|
642
|
+
const { instrumentation } = await routeModule.ensureInstrumentation(req, {
|
|
643
|
+
deferSpans: true
|
|
771
644
|
});
|
|
772
|
-
return
|
|
645
|
+
return routeModule.traceRequest(req, {
|
|
646
|
+
tracer: (0,next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.getTracer)(),
|
|
647
|
+
spanName: `${req.method || 'GET'} ${srcPage}`,
|
|
648
|
+
httpTarget: req.url,
|
|
649
|
+
instrumentation
|
|
650
|
+
}, (requestSpan, requestRootSpan)=>handleRequest(req, res, ctx, srcPage, multiZoneDraftMode, requestSpan, requestRootSpan));
|
|
773
651
|
}
|
|
774
|
-
function
|
|
775
|
-
const
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
652
|
+
async function handleRequest(req, res, ctx, srcPage, multiZoneDraftMode, requestSpan, requestRootSpan) {
|
|
653
|
+
const prepareResult = await routeModule.prepare(req, res, {
|
|
654
|
+
srcPage,
|
|
655
|
+
multiZoneDraftMode
|
|
656
|
+
});
|
|
657
|
+
if (!prepareResult) {
|
|
658
|
+
res.statusCode = 400;
|
|
659
|
+
res.end('Bad Request');
|
|
660
|
+
ctx.waitUntil == null ? void 0 : ctx.waitUntil.call(ctx, Promise.resolve());
|
|
661
|
+
return null;
|
|
662
|
+
}
|
|
663
|
+
const { buildId, deploymentId, params, nextConfig, parsedUrl, isDraftMode, prerenderManifest, routerServerContext, isOnDemandRevalidate, revalidateOnlyGenerated, resolvedPathname, clientReferenceManifest, serverActionsManifest, previewProps } = prepareResult;
|
|
664
|
+
const normalizedSrcPage = (0,next_dist_shared_lib_router_utils_app_paths__WEBPACK_IMPORTED_MODULE_6__.normalizeAppPath)(srcPage);
|
|
665
|
+
// Only this route's prerenders can establish ISR or admit generated params.
|
|
666
|
+
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]));
|
|
667
|
+
let isIsr = Boolean(prerenderManifest.dynamicRoutes[normalizedSrcPage] || isPrerendered);
|
|
668
|
+
const render404 = async ()=>{
|
|
669
|
+
// TODO: should route-module itself handle rendering the 404
|
|
670
|
+
if (routerServerContext == null ? void 0 : routerServerContext.render404) {
|
|
671
|
+
await routerServerContext.render404(req, res, parsedUrl, false);
|
|
672
|
+
} else {
|
|
673
|
+
res.end('This page could not be found');
|
|
674
|
+
}
|
|
675
|
+
return null;
|
|
779
676
|
};
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
if (operationId && typeof threadId === "string") {
|
|
789
|
-
attachAsyncResultOwner(key, threadId);
|
|
790
|
-
owned = true;
|
|
677
|
+
if (isIsr && !isDraftMode) {
|
|
678
|
+
const prerenderInfo = prerenderManifest.dynamicRoutes[normalizedSrcPage];
|
|
679
|
+
if (prerenderInfo) {
|
|
680
|
+
if (prerenderInfo.fallback === false && !isPrerendered) {
|
|
681
|
+
if (nextConfig.adapterPath) {
|
|
682
|
+
return await render404();
|
|
683
|
+
}
|
|
684
|
+
throw new next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_15__.NoFallbackError();
|
|
791
685
|
}
|
|
686
|
+
}
|
|
687
|
+
}
|
|
688
|
+
let cacheKey = null;
|
|
689
|
+
if (isIsr && !routeModule.isDev && !isDraftMode) {
|
|
690
|
+
cacheKey = resolvedPathname;
|
|
691
|
+
// ensure /index and / is normalized to one key
|
|
692
|
+
cacheKey = cacheKey === '/index' ? '/' : cacheKey;
|
|
693
|
+
}
|
|
694
|
+
// Before rendering (which initializes component tree modules), we have to
|
|
695
|
+
// set the reference manifests to our global store so Server Action's
|
|
696
|
+
// encryption util can access to them at the top level of the page module.
|
|
697
|
+
if (serverActionsManifest && clientReferenceManifest) {
|
|
698
|
+
(0,next_dist_server_app_render_manifests_singleton__WEBPACK_IMPORTED_MODULE_5__.setManifestsSingleton)({
|
|
699
|
+
page: srcPage,
|
|
700
|
+
clientReferenceManifest,
|
|
701
|
+
serverActionsManifest
|
|
792
702
|
});
|
|
793
|
-
return {
|
|
794
|
-
key,
|
|
795
|
-
owned
|
|
796
|
-
};
|
|
797
|
-
} catch (error) {
|
|
798
|
-
STORE.delete(key);
|
|
799
|
-
throw error;
|
|
800
703
|
}
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
const
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
...settlement,
|
|
834
|
-
status: "error",
|
|
835
|
-
result: null,
|
|
836
|
-
error: "Background output exceeded its durable storage budget. The operation may have completed; verify external effects before retrying.",
|
|
837
|
-
kind: "background_tool.failed"
|
|
838
|
-
};
|
|
704
|
+
const method = req.method || 'GET';
|
|
705
|
+
const tracer = (0,next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.getTracer)();
|
|
706
|
+
const isWrappedByNextServer = Boolean(routerServerContext == null ? void 0 : routerServerContext.isWrappedByNextServer);
|
|
707
|
+
const isMinimalMode = Boolean((0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.getRequestMeta)(req, 'minimalMode'));
|
|
708
|
+
const incrementalCache = (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.getRequestMeta)(req, 'incrementalCache') || await routeModule.getIncrementalCache(req, nextConfig, previewProps, prerenderManifest, isMinimalMode);
|
|
709
|
+
incrementalCache == null ? void 0 : incrementalCache.resetRequestCache();
|
|
710
|
+
globalThis.__incrementalCache = incrementalCache;
|
|
711
|
+
const context = {
|
|
712
|
+
params,
|
|
713
|
+
previewProps,
|
|
714
|
+
renderOpts: {
|
|
715
|
+
experimental: {
|
|
716
|
+
authInterrupts: Boolean(nextConfig.experimental.authInterrupts),
|
|
717
|
+
useCacheTimeout: nextConfig.experimental.useCacheTimeout,
|
|
718
|
+
durableUseCacheEntries: Boolean(nextConfig.experimental.durableUseCacheEntries)
|
|
719
|
+
},
|
|
720
|
+
cacheComponents: Boolean(nextConfig.cacheComponents),
|
|
721
|
+
validationLevel: nextConfig.experimental.instantInsights.validationLevel,
|
|
722
|
+
isDraftMode,
|
|
723
|
+
incrementalCache,
|
|
724
|
+
hmrRefreshHash: (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.getRequestMeta)(req, 'hmrRefreshHash'),
|
|
725
|
+
cacheLifeProfiles: nextConfig.cacheLife,
|
|
726
|
+
staticPageGenerationTimeout: nextConfig.staticPageGenerationTimeout,
|
|
727
|
+
waitUntil: ctx.waitUntil,
|
|
728
|
+
onClose: (cb)=>{
|
|
729
|
+
res.on('close', cb);
|
|
730
|
+
},
|
|
731
|
+
onAfterTaskError: undefined
|
|
732
|
+
},
|
|
733
|
+
sharedContext: {
|
|
734
|
+
buildId,
|
|
735
|
+
deploymentId
|
|
839
736
|
}
|
|
737
|
+
};
|
|
738
|
+
const nodeNextReq = new next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_7__.NodeNextRequest(req);
|
|
739
|
+
const nodeNextRes = new next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_7__.NodeNextResponse(res);
|
|
740
|
+
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));
|
|
741
|
+
const responseGenerator = async ({ previousCacheEntry })=>{
|
|
840
742
|
try {
|
|
841
|
-
(
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
743
|
+
if (!isMinimalMode && isOnDemandRevalidate && revalidateOnlyGenerated && !previousCacheEntry) {
|
|
744
|
+
res.statusCode = 404;
|
|
745
|
+
// on-demand revalidate always sets this header
|
|
746
|
+
res.setHeader('x-nextjs-cache', 'REVALIDATED');
|
|
747
|
+
res.end('This page could not be found');
|
|
748
|
+
return null;
|
|
749
|
+
}
|
|
750
|
+
const response = cacheKey === null ? await routeModule.handle(nextReq, context) : await routeModule.prerender(nextReq, context);
|
|
751
|
+
req.fetchMetrics = context.renderOpts.fetchMetrics;
|
|
752
|
+
let pendingWaitUntil = context.renderOpts.pendingWaitUntil;
|
|
753
|
+
// Attempt using provided waitUntil if available
|
|
754
|
+
// if it's not we fallback to sendResponse's handling
|
|
755
|
+
if (pendingWaitUntil) {
|
|
756
|
+
if (ctx.waitUntil) {
|
|
757
|
+
ctx.waitUntil(pendingWaitUntil);
|
|
758
|
+
pendingWaitUntil = undefined;
|
|
759
|
+
}
|
|
760
|
+
}
|
|
761
|
+
const cacheTags = context.renderOpts.collectedTags;
|
|
762
|
+
// If the request is for a static response, we can cache it so long
|
|
763
|
+
// as it's not edge.
|
|
764
|
+
if (isIsr) {
|
|
765
|
+
const blob = await response.blob();
|
|
766
|
+
// Copy the headers from the response.
|
|
767
|
+
const headers = (0,next_dist_server_web_utils__WEBPACK_IMPORTED_MODULE_12__.toNodeOutgoingHttpHeaders)(response.headers);
|
|
768
|
+
if (cacheTags) {
|
|
769
|
+
headers[next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__.NEXT_CACHE_TAGS_HEADER] = cacheTags;
|
|
770
|
+
}
|
|
771
|
+
if (!headers['content-type'] && blob.type) {
|
|
772
|
+
headers['content-type'] = blob.type;
|
|
773
|
+
}
|
|
774
|
+
const revalidate = typeof context.renderOpts.collectedRevalidate === 'undefined' || context.renderOpts.collectedRevalidate >= next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__.INFINITE_CACHE ? false : context.renderOpts.collectedRevalidate;
|
|
775
|
+
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
|
|
776
|
+
// explicit `expire` (e.g. via `cacheLife`). This mirrors the
|
|
777
|
+
// build-time fallback in `build/index.ts` so cache entries
|
|
778
|
+
// and the response Cache-Control header agree on the route's
|
|
779
|
+
// effective expire. Routes that opt out of revalidation
|
|
780
|
+
// (`revalidate: false`) or that are dynamic (`revalidate: 0`)
|
|
781
|
+
// keep `expire: undefined`.
|
|
782
|
+
revalidate !== false && revalidate > 0 ? nextConfig.expireTime : undefined : context.renderOpts.collectedExpire;
|
|
783
|
+
// Create the cache entry for the response.
|
|
784
|
+
const cacheEntry = {
|
|
785
|
+
value: {
|
|
786
|
+
kind: next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__.CachedRouteKind.APP_ROUTE,
|
|
787
|
+
status: response.status,
|
|
788
|
+
body: Buffer.from(await blob.arrayBuffer()),
|
|
789
|
+
headers
|
|
790
|
+
},
|
|
791
|
+
cacheControl: {
|
|
792
|
+
revalidate,
|
|
793
|
+
expire
|
|
794
|
+
}
|
|
795
|
+
};
|
|
796
|
+
return cacheEntry;
|
|
797
|
+
} else {
|
|
798
|
+
// send response without caching if not ISR
|
|
799
|
+
await (0,next_dist_server_send_response__WEBPACK_IMPORTED_MODULE_11__/* .sendResponse */ .I)(nodeNextReq, nodeNextRes, response, pendingWaitUntil);
|
|
800
|
+
return null;
|
|
801
|
+
}
|
|
802
|
+
} catch (err) {
|
|
803
|
+
// if this is a background revalidate we need to report
|
|
804
|
+
// the request error here as it won't be bubbled
|
|
805
|
+
if (previousCacheEntry == null ? void 0 : previousCacheEntry.isStale) {
|
|
806
|
+
const silenceLog = false;
|
|
807
|
+
await routeModule.onRequestError(req, err, {
|
|
808
|
+
routerKind: 'App Router',
|
|
809
|
+
routePath: srcPage,
|
|
810
|
+
routeType: 'route',
|
|
811
|
+
revalidateReason: (0,next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_10__.getRevalidateReason)({
|
|
812
|
+
isStaticGeneration: cacheKey !== null,
|
|
813
|
+
isOnDemandRevalidate
|
|
814
|
+
})
|
|
815
|
+
}, silenceLog, routerServerContext);
|
|
852
816
|
}
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
817
|
+
throw err;
|
|
818
|
+
}
|
|
819
|
+
};
|
|
820
|
+
const handleResponse = async (currentSpan)=>{
|
|
821
|
+
try {
|
|
822
|
+
var _cacheEntry_value;
|
|
823
|
+
const cacheEntry = await routeModule.handleResponse({
|
|
824
|
+
req,
|
|
825
|
+
nextConfig,
|
|
826
|
+
cacheKey,
|
|
827
|
+
routeKind: next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__.RouteKind.APP_ROUTE,
|
|
828
|
+
isFallback: false,
|
|
829
|
+
previewProps,
|
|
830
|
+
prerenderManifest,
|
|
831
|
+
isRoutePPREnabled: false,
|
|
832
|
+
isOnDemandRevalidate,
|
|
833
|
+
revalidateOnlyGenerated,
|
|
834
|
+
responseGenerator,
|
|
835
|
+
waitUntil: ctx.waitUntil,
|
|
836
|
+
isMinimalMode
|
|
859
837
|
});
|
|
838
|
+
if (cacheEntry !== null && 'error' in cacheEntry) {
|
|
839
|
+
throw cacheEntry.error;
|
|
840
|
+
}
|
|
841
|
+
// we don't create a cacheEntry for ISR
|
|
842
|
+
if (!isIsr) {
|
|
843
|
+
return;
|
|
844
|
+
}
|
|
845
|
+
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) {
|
|
846
|
+
var _cacheEntry_value1;
|
|
847
|
+
throw new Error(`Invariant: app-route received invalid cache entry ${cacheEntry == null ? void 0 : (_cacheEntry_value1 = cacheEntry.value) == null ? void 0 : _cacheEntry_value1.kind}`);
|
|
848
|
+
}
|
|
849
|
+
if (!isMinimalMode) {
|
|
850
|
+
res.setHeader('x-nextjs-cache', isOnDemandRevalidate ? 'REVALIDATED' : cacheEntry.isMiss ? 'MISS' : cacheEntry.isStale ? 'STALE' : 'HIT');
|
|
851
|
+
}
|
|
852
|
+
// Draft mode should never be cached
|
|
853
|
+
if (isDraftMode) {
|
|
854
|
+
res.setHeader('Cache-Control', 'private, no-cache, no-store, max-age=0, must-revalidate');
|
|
855
|
+
}
|
|
856
|
+
const headers = (0,next_dist_server_web_utils__WEBPACK_IMPORTED_MODULE_12__.fromNodeOutgoingHttpHeaders)(cacheEntry.value.headers);
|
|
857
|
+
if (!(isMinimalMode && isIsr)) {
|
|
858
|
+
headers.delete(next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__.NEXT_CACHE_TAGS_HEADER);
|
|
859
|
+
}
|
|
860
|
+
// If cache control is already set on the response we don't
|
|
861
|
+
// override it to allow users to customize it via next.config
|
|
862
|
+
if (cacheEntry.cacheControl && !res.getHeader('Cache-Control') && !headers.get('Cache-Control')) {
|
|
863
|
+
headers.set('Cache-Control', (0,next_dist_server_lib_cache_control__WEBPACK_IMPORTED_MODULE_13__.getCacheControlHeader)(cacheEntry.cacheControl));
|
|
864
|
+
}
|
|
865
|
+
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'.
|
|
866
|
+
new Response(cacheEntry.value.body, {
|
|
867
|
+
headers,
|
|
868
|
+
status: cacheEntry.value.status || 200
|
|
869
|
+
}));
|
|
860
870
|
return;
|
|
871
|
+
} catch (err) {
|
|
872
|
+
if (!(err instanceof next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_15__.NoFallbackError)) {
|
|
873
|
+
const silenceLog = false;
|
|
874
|
+
await routeModule.onRequestError(req, err, {
|
|
875
|
+
routerKind: 'App Router',
|
|
876
|
+
routePath: normalizedSrcPage,
|
|
877
|
+
routeType: 'route',
|
|
878
|
+
revalidateReason: (0,next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_10__.getRevalidateReason)({
|
|
879
|
+
isStaticGeneration: cacheKey !== null,
|
|
880
|
+
isOnDemandRevalidate
|
|
881
|
+
})
|
|
882
|
+
}, silenceLog, routerServerContext);
|
|
883
|
+
}
|
|
884
|
+
// rethrow so that we can handle serving error page
|
|
885
|
+
// If this is during static generation, throw the error again.
|
|
886
|
+
if (isIsr) throw err;
|
|
887
|
+
// Otherwise, send a 500 response unless the original response has
|
|
888
|
+
// already committed. In that case, preserve its status code for
|
|
889
|
+
// telemetry while still recording the failure and terminating a response
|
|
890
|
+
// that the failed pipeline left open.
|
|
891
|
+
if (res.headersSent) {
|
|
892
|
+
if (currentSpan) {
|
|
893
|
+
const error = err instanceof Error ? err : new Error('Unknown app route error');
|
|
894
|
+
currentSpan.recordException(error);
|
|
895
|
+
currentSpan.setStatus({
|
|
896
|
+
code: next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.SpanStatusCode.ERROR,
|
|
897
|
+
message: error.message
|
|
898
|
+
});
|
|
899
|
+
currentSpan.setAttribute('error.type', error.name);
|
|
900
|
+
}
|
|
901
|
+
if (!res.writableEnded && !res.destroyed) {
|
|
902
|
+
res.end();
|
|
903
|
+
}
|
|
904
|
+
} else {
|
|
905
|
+
await (0,next_dist_server_send_response__WEBPACK_IMPORTED_MODULE_11__/* .sendResponse */ .I)(nodeNextReq, nodeNextRes, new Response(null, {
|
|
906
|
+
status: 500
|
|
907
|
+
}));
|
|
908
|
+
}
|
|
909
|
+
return;
|
|
910
|
+
} finally{
|
|
911
|
+
;
|
|
912
|
+
(()=>{
|
|
913
|
+
if (!currentSpan) {
|
|
914
|
+
return;
|
|
915
|
+
}
|
|
916
|
+
let statusCode = res.statusCode;
|
|
917
|
+
currentSpan.setAttributes({
|
|
918
|
+
'http.status_code': statusCode,
|
|
919
|
+
'next.rsc': false
|
|
920
|
+
});
|
|
921
|
+
if (statusCode && statusCode >= 500) {
|
|
922
|
+
// For 5xx status codes: SHOULD be set to 'Error' span status.
|
|
923
|
+
// x-ref: https://opentelemetry.io/docs/specs/semconv/http/http-spans/#status
|
|
924
|
+
currentSpan.setStatus({
|
|
925
|
+
code: next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.SpanStatusCode.ERROR
|
|
926
|
+
});
|
|
927
|
+
// For span status 'Error', SHOULD set 'error.type' attribute.
|
|
928
|
+
currentSpan.setAttribute('error.type', statusCode.toString());
|
|
929
|
+
}
|
|
930
|
+
const rootSpanAttributes = tracer.getRootSpanAttributes();
|
|
931
|
+
// We were unable to get attributes, probably OTEL is not enabled
|
|
932
|
+
if (!rootSpanAttributes) {
|
|
933
|
+
return;
|
|
934
|
+
}
|
|
935
|
+
if (rootSpanAttributes.get('next.span_type') !== next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_9__.BaseServerSpan.handleRequest) {
|
|
936
|
+
console.warn(`Unexpected root span type '${rootSpanAttributes.get('next.span_type')}'. Please report this Next.js issue https://github.com/vercel/next.js`);
|
|
937
|
+
return;
|
|
938
|
+
}
|
|
939
|
+
const route = rootSpanAttributes.get('next.route') || normalizedSrcPage;
|
|
940
|
+
const name = `${method} ${route}`;
|
|
941
|
+
currentSpan.setAttributes({
|
|
942
|
+
'next.route': route,
|
|
943
|
+
'http.route': route,
|
|
944
|
+
'next.span_name': name
|
|
945
|
+
});
|
|
946
|
+
currentSpan.updateName(name);
|
|
947
|
+
// Propagate http.route to the request's root span if it isn't the
|
|
948
|
+
// request span (e.g. a platform-created HTTP span in adapter
|
|
949
|
+
// deployments).
|
|
950
|
+
if (requestRootSpan && requestRootSpan !== currentSpan) {
|
|
951
|
+
requestRootSpan.setAttribute('http.route', route);
|
|
952
|
+
requestRootSpan.updateName(name);
|
|
953
|
+
}
|
|
954
|
+
})();
|
|
861
955
|
}
|
|
956
|
+
};
|
|
957
|
+
// When invoked directly, the request span was started before `prepare`;
|
|
958
|
+
// record the request target as normalized by it. next-server's request span
|
|
959
|
+
// already has it.
|
|
960
|
+
if (!isWrappedByNextServer && req.url !== undefined) {
|
|
961
|
+
requestSpan == null ? void 0 : requestSpan.setAttribute('http.target', req.url);
|
|
862
962
|
}
|
|
863
|
-
|
|
864
|
-
record.status = settlement.status;
|
|
865
|
-
record.result = settlement.result;
|
|
866
|
-
record.error = settlement.error;
|
|
867
|
-
record.finished_at = Date.now();
|
|
868
|
-
}
|
|
869
|
-
function retryAsyncResultSettlements() {
|
|
870
|
-
for (const [key, settlement] of pendingSettlements){
|
|
871
|
-
if (settlement.availableAt > Date.now()) continue;
|
|
872
|
-
const record = STORE.get(key);
|
|
873
|
-
if (record) settleAsyncResult(record, settlement);
|
|
874
|
-
else pendingSettlements.delete(key);
|
|
875
|
-
}
|
|
876
|
-
}
|
|
877
|
-
/** Read a record without consuming it. */ function getAsyncResult(key, threadId) {
|
|
878
|
-
const record = STORE.get(key);
|
|
879
|
-
if (record?.owner_thread_id && !(0,_lib_stores_background_results__WEBPACK_IMPORTED_MODULE_1__/* .backgroundResultExists */ .q_)(key, record.owner_thread_id)) {
|
|
880
|
-
STORE.delete(key);
|
|
881
|
-
pendingSettlements.delete(key);
|
|
882
|
-
return null;
|
|
883
|
-
}
|
|
884
|
-
if (record && (record.owner_thread_id ? record.owner_thread_id === threadId : threadId === undefined)) return record;
|
|
885
|
-
return threadId ? (0,_lib_stores_background_results__WEBPACK_IMPORTED_MODULE_1__/* .getBackgroundResult */ .u7)(key, threadId) : null;
|
|
886
|
-
}
|
|
887
|
-
function attachAsyncResultOwner(key, threadId) {
|
|
888
|
-
const record = STORE.get(key);
|
|
889
|
-
if (!record) throw new Error("Unknown background result key");
|
|
890
|
-
(0,_lib_stores_background_results__WEBPACK_IMPORTED_MODULE_1__/* .createBackgroundResult */ .uS)(key, threadId, record.tool);
|
|
891
|
-
record.owner_thread_id = threadId;
|
|
892
|
-
}
|
|
893
|
-
/** Read and immediately delete a record. */ function consumeAsyncResult(key, threadId) {
|
|
894
|
-
const rec = getAsyncResult(key, threadId);
|
|
895
|
-
if (!rec) return null;
|
|
896
|
-
if (threadId) (0,_lib_stores_background_results__WEBPACK_IMPORTED_MODULE_1__/* .getBackgroundResult */ .u7)(key, threadId, true);
|
|
897
|
-
STORE.delete(key);
|
|
898
|
-
return rec;
|
|
899
|
-
}
|
|
900
|
-
/** Snapshot of all current records (newest first). For tool_result_list. */ function listAsyncResults(threadId) {
|
|
901
|
-
const records = new Map();
|
|
902
|
-
if (threadId) for (const record of (0,_lib_stores_background_results__WEBPACK_IMPORTED_MODULE_1__/* .listBackgroundResults */ .$X)(threadId))records.set(record.key, record);
|
|
903
|
-
for (const record of STORE.values()){
|
|
904
|
-
if (record.owner_thread_id && !(0,_lib_stores_background_results__WEBPACK_IMPORTED_MODULE_1__/* .backgroundResultExists */ .q_)(record.key, record.owner_thread_id)) {
|
|
905
|
-
STORE.delete(record.key);
|
|
906
|
-
pendingSettlements.delete(record.key);
|
|
907
|
-
continue;
|
|
908
|
-
}
|
|
909
|
-
if (record.owner_thread_id ? record.owner_thread_id === threadId : threadId === undefined) records.set(record.key, record);
|
|
910
|
-
}
|
|
911
|
-
return [
|
|
912
|
-
...records.values()
|
|
913
|
-
].sort((left, right)=>right.started_at - left.started_at);
|
|
914
|
-
}
|
|
915
|
-
/**
|
|
916
|
-
* Drop finished entries older than `ttlMs` (measured from `finished_at`).
|
|
917
|
-
* Pending entries are never expired here — a stuck tool would otherwise
|
|
918
|
-
* vanish out from under the agent.
|
|
919
|
-
*/ function sweepExpired(ttlMs) {
|
|
920
|
-
const now = Date.now();
|
|
921
|
-
let removed = 0;
|
|
922
|
-
for (const [k, r] of STORE){
|
|
923
|
-
if (r.status === "pending") continue;
|
|
924
|
-
if (r.finished_at == null) continue;
|
|
925
|
-
if (now - r.finished_at >= ttlMs) {
|
|
926
|
-
STORE.delete(k);
|
|
927
|
-
removed++;
|
|
928
|
-
}
|
|
929
|
-
}
|
|
930
|
-
return removed;
|
|
931
|
-
}
|
|
932
|
-
function enforceCap() {
|
|
933
|
-
if (STORE.size < MAX_ENTRIES) return;
|
|
934
|
-
// Prefer evicting finished entries (oldest first). Only if every entry
|
|
935
|
-
// is pending do we drop a pending one.
|
|
936
|
-
const sorted = [
|
|
937
|
-
...STORE.values()
|
|
938
|
-
].sort((a, b)=>a.started_at - b.started_at);
|
|
939
|
-
const finished = sorted.find((r)=>r.status !== "pending");
|
|
940
|
-
const victim = finished ?? sorted.find((record)=>!record.owner_thread_id);
|
|
941
|
-
if (!victim) throw new Error("Background tool capacity reached; wait for an active call to finish");
|
|
942
|
-
if (!victim) return;
|
|
943
|
-
STORE.delete(victim.key);
|
|
944
|
-
if (!finished) {
|
|
945
|
-
console.warn(`[async-results] evicted pending entry ${victim.key} (tool=${victim.tool}) ` + `to make room — STORE cap of ${MAX_ENTRIES} hit.`);
|
|
946
|
-
}
|
|
947
|
-
}
|
|
948
|
-
/** Test-only helper. */ function __resetStore() {
|
|
949
|
-
STORE.clear();
|
|
950
|
-
pendingSettlements.clear();
|
|
951
|
-
if (state.sweeper) {
|
|
952
|
-
clearInterval(state.sweeper);
|
|
953
|
-
state.sweeper = null;
|
|
954
|
-
}
|
|
955
|
-
}
|
|
956
|
-
/** Test-only helper. */ function __backdateFinished(key, finishedAt) {
|
|
957
|
-
const rec = STORE.get(key);
|
|
958
|
-
if (rec) rec.finished_at = finishedAt;
|
|
963
|
+
await handleResponse(requestSpan);
|
|
959
964
|
}
|
|
960
965
|
|
|
966
|
+
//# sourceMappingURL=app-route.js.map
|
|
961
967
|
|
|
962
|
-
/***/ }),
|
|
963
|
-
|
|
964
|
-
/***/ 200261:
|
|
965
|
-
/***/ ((module) => {
|
|
966
|
-
|
|
967
|
-
module.exports = require("next/dist/shared/lib/router/utils/app-paths");
|
|
968
968
|
|
|
969
969
|
/***/ }),
|
|
970
970
|
|
|
@@ -1284,7 +1284,7 @@ module.exports = require("next/dist/shared/lib/no-fallback-error.external");
|
|
|
1284
1284
|
var __webpack_require__ = require("../../../../../../webpack-runtime.js");
|
|
1285
1285
|
__webpack_require__.C(exports);
|
|
1286
1286
|
var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
|
|
1287
|
-
var __webpack_exports__ = __webpack_require__.X(0, [2970,7377,1813,4891,4992,1244,3042,3566], () => (__webpack_exec__(
|
|
1287
|
+
var __webpack_exports__ = __webpack_require__.X(0, [2970,7377,1813,4891,4992,1244,3042,3566], () => (__webpack_exec__(225444)));
|
|
1288
1288
|
module.exports = __webpack_exports__;
|
|
1289
1289
|
|
|
1290
1290
|
})();
|