@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
|
@@ -75,867 +75,867 @@ module.exports = require("next/dist/shared/lib/router/utils/app-paths");
|
|
|
75
75
|
|
|
76
76
|
/***/ }),
|
|
77
77
|
|
|
78
|
-
/***/
|
|
79
|
-
/***/ ((
|
|
80
|
-
|
|
81
|
-
module.exports = require("node:util");
|
|
82
|
-
|
|
83
|
-
/***/ }),
|
|
84
|
-
|
|
85
|
-
/***/ 309956:
|
|
86
|
-
/***/ ((module) => {
|
|
87
|
-
|
|
88
|
-
module.exports = require("undici");
|
|
89
|
-
|
|
90
|
-
/***/ }),
|
|
91
|
-
|
|
92
|
-
/***/ 328354:
|
|
93
|
-
/***/ ((module) => {
|
|
94
|
-
|
|
95
|
-
module.exports = require("util");
|
|
96
|
-
|
|
97
|
-
/***/ }),
|
|
98
|
-
|
|
99
|
-
/***/ 333873:
|
|
100
|
-
/***/ ((module) => {
|
|
101
|
-
|
|
102
|
-
module.exports = require("path");
|
|
103
|
-
|
|
104
|
-
/***/ }),
|
|
105
|
-
|
|
106
|
-
/***/ 344708:
|
|
107
|
-
/***/ ((module) => {
|
|
108
|
-
|
|
109
|
-
module.exports = require("node:https");
|
|
110
|
-
|
|
111
|
-
/***/ }),
|
|
112
|
-
|
|
113
|
-
/***/ 358500:
|
|
114
|
-
/***/ ((module) => {
|
|
115
|
-
|
|
116
|
-
module.exports = require("node:timers/promises");
|
|
117
|
-
|
|
118
|
-
/***/ }),
|
|
119
|
-
|
|
120
|
-
/***/ 379551:
|
|
121
|
-
/***/ ((module) => {
|
|
122
|
-
|
|
123
|
-
module.exports = require("url");
|
|
124
|
-
|
|
125
|
-
/***/ }),
|
|
126
|
-
|
|
127
|
-
/***/ 380481:
|
|
128
|
-
/***/ ((module) => {
|
|
129
|
-
|
|
130
|
-
module.exports = require("node:readline");
|
|
131
|
-
|
|
132
|
-
/***/ }),
|
|
133
|
-
|
|
134
|
-
/***/ 399253:
|
|
135
|
-
/***/ ((module) => {
|
|
136
|
-
|
|
137
|
-
module.exports = import("@huggingface/transformers");;
|
|
138
|
-
|
|
139
|
-
/***/ }),
|
|
140
|
-
|
|
141
|
-
/***/ 419121:
|
|
142
|
-
/***/ ((module) => {
|
|
143
|
-
|
|
144
|
-
module.exports = require("next/dist/server/app-render/action-async-storage.external.js");
|
|
145
|
-
|
|
146
|
-
/***/ }),
|
|
147
|
-
|
|
148
|
-
/***/ 455511:
|
|
149
|
-
/***/ ((module) => {
|
|
150
|
-
|
|
151
|
-
module.exports = require("crypto");
|
|
78
|
+
/***/ 253178:
|
|
79
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
152
80
|
|
|
153
|
-
|
|
81
|
+
__webpack_require__.r(__webpack_exports__);
|
|
82
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
83
|
+
/* harmony export */ handler: () => (/* binding */ handler),
|
|
84
|
+
/* harmony export */ patchFetch: () => (/* binding */ patchFetch),
|
|
85
|
+
/* harmony export */ routeModule: () => (/* binding */ routeModule),
|
|
86
|
+
/* harmony export */ serverHooks: () => (/* binding */ serverHooks),
|
|
87
|
+
/* harmony export */ workAsyncStorage: () => (/* binding */ workAsyncStorage),
|
|
88
|
+
/* harmony export */ workUnitAsyncStorage: () => (/* binding */ workUnitAsyncStorage)
|
|
89
|
+
/* harmony export */ });
|
|
90
|
+
/* harmony import */ var next_dist_server_route_modules_app_route_module_compiled__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(319225);
|
|
91
|
+
/* 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__);
|
|
92
|
+
/* harmony import */ var next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(684006);
|
|
93
|
+
/* harmony import */ var next_dist_server_lib_patch_fetch__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8317);
|
|
94
|
+
/* 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__);
|
|
95
|
+
/* harmony import */ var next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(799373);
|
|
96
|
+
/* 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__);
|
|
97
|
+
/* harmony import */ var next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(434775);
|
|
98
|
+
/* 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__);
|
|
99
|
+
/* harmony import */ var next_dist_server_app_render_manifests_singleton__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(524235);
|
|
100
|
+
/* 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__);
|
|
101
|
+
/* harmony import */ var next_dist_shared_lib_router_utils_app_paths__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(200261);
|
|
102
|
+
/* 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__);
|
|
103
|
+
/* harmony import */ var next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(754365);
|
|
104
|
+
/* 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__);
|
|
105
|
+
/* harmony import */ var next_dist_server_web_spec_extension_adapters_next_request__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(590771);
|
|
106
|
+
/* 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__);
|
|
107
|
+
/* harmony import */ var next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(473461);
|
|
108
|
+
/* 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__);
|
|
109
|
+
/* harmony import */ var next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(767798);
|
|
110
|
+
/* harmony import */ var next_dist_server_send_response__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(192280);
|
|
111
|
+
/* harmony import */ var next_dist_server_web_utils__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(662018);
|
|
112
|
+
/* 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__);
|
|
113
|
+
/* harmony import */ var next_dist_server_lib_cache_control__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(445696);
|
|
114
|
+
/* harmony import */ var next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(347929);
|
|
115
|
+
/* harmony import */ var next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__);
|
|
116
|
+
/* harmony import */ var next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(986439);
|
|
117
|
+
/* 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__);
|
|
118
|
+
/* harmony import */ var next_dist_server_lib_route_cache_key__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(710246);
|
|
119
|
+
/* 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__);
|
|
120
|
+
/* harmony import */ var next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(137527);
|
|
121
|
+
/* 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__);
|
|
154
122
|
|
|
155
|
-
/***/ 529294:
|
|
156
|
-
/***/ ((module) => {
|
|
157
123
|
|
|
158
|
-
module.exports = require("next/dist/server/app-render/work-async-storage.external.js");
|
|
159
124
|
|
|
160
|
-
/***/ }),
|
|
161
125
|
|
|
162
|
-
/***/ 590347:
|
|
163
|
-
/***/ ((module) => {
|
|
164
126
|
|
|
165
|
-
module.exports = import("@langchain/mcp-adapters");;
|
|
166
127
|
|
|
167
|
-
/***/ }),
|
|
168
128
|
|
|
169
|
-
/***/ 594735:
|
|
170
|
-
/***/ ((module) => {
|
|
171
129
|
|
|
172
|
-
module.exports = require("events");
|
|
173
130
|
|
|
174
|
-
/***/ }),
|
|
175
131
|
|
|
176
|
-
/***/ 629021:
|
|
177
|
-
/***/ ((module) => {
|
|
178
132
|
|
|
179
|
-
module.exports = require("fs");
|
|
180
133
|
|
|
181
|
-
/***/ }),
|
|
182
134
|
|
|
183
|
-
/***/ 638522:
|
|
184
|
-
/***/ ((module) => {
|
|
185
135
|
|
|
186
|
-
module.exports = require("node:zlib");
|
|
187
136
|
|
|
188
|
-
/***/ }),
|
|
189
137
|
|
|
190
|
-
/***/ 651463:
|
|
191
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
192
138
|
|
|
193
|
-
__webpack_require__.r(__webpack_exports__);
|
|
194
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
195
|
-
/* harmony export */ GET: () => (/* binding */ GET)
|
|
196
|
-
/* harmony export */ });
|
|
197
|
-
/* harmony import */ var next_server__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(945592);
|
|
198
|
-
/* harmony import */ var _lib_health_runner__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(683333);
|
|
199
|
-
// GET /api/v1/health/probes → returns the last known probe snapshot.
|
|
200
|
-
// GET /api/v1/health/probes?refresh=1 → runs every probe synchronously
|
|
201
|
-
// then returns the fresh snapshot.
|
|
202
|
-
//
|
|
203
|
-
// Sibling of /api/v1/health (which is a liveness check). The probe data
|
|
204
|
-
// drives a future "Status" panel and the early-error toasts described in
|
|
205
|
-
// lib/health/runner.ts.
|
|
206
139
|
|
|
140
|
+
// We inject the nextConfigOutput here so that we can use them in the route
|
|
141
|
+
// module.
|
|
142
|
+
const nextConfigOutput = "standalone"
|
|
143
|
+
const routeModule = new next_dist_server_route_modules_app_route_module_compiled__WEBPACK_IMPORTED_MODULE_0__.AppRouteRouteModule({
|
|
144
|
+
definition: {
|
|
145
|
+
kind: next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__.RouteKind.APP_ROUTE,
|
|
146
|
+
page: "/api/v1/health/probes/route",
|
|
147
|
+
pathname: "/api/v1/health/probes",
|
|
148
|
+
filename: "route",
|
|
149
|
+
bundlePath: "app/api/v1/health/probes/route"
|
|
150
|
+
},
|
|
151
|
+
distDir: ".next" || 0,
|
|
152
|
+
relativeProjectDir: false || '',
|
|
153
|
+
resolvedPagePath: "/home/runner/work/jarela/jarela/app/api/v1/health/probes/route.ts",
|
|
154
|
+
nextConfigOutput,
|
|
155
|
+
// The lazy require factory ensures that:
|
|
156
|
+
// - In dev: devRequestTimingInternalsEnd is set before userland executes,
|
|
157
|
+
// correctly attributing module load time to application-code rather than
|
|
158
|
+
// framework internals.
|
|
159
|
+
// - In all modes: async modules (route files with top-level await) are
|
|
160
|
+
// handled correctly — require() returns a Promise for such modules, which
|
|
161
|
+
// ensureUserland() awaits before the first request is handled.
|
|
162
|
+
userland: ()=>__webpack_require__(651463),
|
|
163
|
+
// In Turbopack dev mode, also provide a synchronous per-request getter so
|
|
164
|
+
// server HMR updates are picked up without re-executing the entry chunk.
|
|
165
|
+
// Using require() (synchronous) avoids adding async overhead that would be
|
|
166
|
+
// incorrectly attributed to application-code time in devRequestTiming.
|
|
167
|
+
... false ? 0 : {}
|
|
168
|
+
});
|
|
169
|
+
// Pull out the exports that we need to expose from the module. This should
|
|
170
|
+
// be eliminated when we've moved the other routes to the new format. These
|
|
171
|
+
// are used to hook into the route.
|
|
172
|
+
const { workAsyncStorage, workUnitAsyncStorage, serverHooks } = routeModule;
|
|
173
|
+
function patchFetch() {
|
|
174
|
+
return (0,next_dist_server_lib_patch_fetch__WEBPACK_IMPORTED_MODULE_2__.patchFetch)({
|
|
175
|
+
workAsyncStorage,
|
|
176
|
+
workUnitAsyncStorage
|
|
177
|
+
});
|
|
178
|
+
}
|
|
207
179
|
|
|
208
|
-
async function
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
if (refresh) {
|
|
212
|
-
const snapshot = await (0,_lib_health_runner__WEBPACK_IMPORTED_MODULE_1__/* .runAllHealthProbes */ .eq)();
|
|
213
|
-
return next_server__WEBPACK_IMPORTED_MODULE_0__.NextResponse.json(snapshot);
|
|
180
|
+
async function handler(req, res, ctx) {
|
|
181
|
+
if (ctx.requestMeta) {
|
|
182
|
+
(0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.setRequestMeta)(req, ctx.requestMeta);
|
|
214
183
|
}
|
|
215
|
-
|
|
184
|
+
if (routeModule.isDev) {
|
|
185
|
+
(0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.addRequestMeta)(req, 'devRequestTimingInternalsEnd', process.hrtime.bigint());
|
|
186
|
+
}
|
|
187
|
+
let srcPage = "/api/v1/health/probes/route";
|
|
188
|
+
// turbopack doesn't normalize `/index` in the page name
|
|
189
|
+
// so we need to to process dynamic routes properly
|
|
190
|
+
// TODO: fix turbopack providing differing value from webpack
|
|
191
|
+
if (false) {} else if (srcPage === '/index') {
|
|
192
|
+
// we always normalize /index specifically
|
|
193
|
+
srcPage = '/';
|
|
194
|
+
}
|
|
195
|
+
const multiZoneDraftMode = false;
|
|
196
|
+
// Registering `instrumentation.ts` usually installs the tracer provider, so
|
|
197
|
+
// do it before starting the request span. The span is started before
|
|
198
|
+
// `prepare`, so route module preparation is part of the request's trace.
|
|
199
|
+
// When this request triggers registration, the lifecycle spans of
|
|
200
|
+
// `instrumentation.ts` are emitted inside the request span.
|
|
201
|
+
const { instrumentation } = await routeModule.ensureInstrumentation(req, {
|
|
202
|
+
deferSpans: true
|
|
203
|
+
});
|
|
204
|
+
return routeModule.traceRequest(req, {
|
|
205
|
+
tracer: (0,next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.getTracer)(),
|
|
206
|
+
spanName: `${req.method || 'GET'} ${srcPage}`,
|
|
207
|
+
httpTarget: req.url,
|
|
208
|
+
instrumentation
|
|
209
|
+
}, (requestSpan, requestRootSpan)=>handleRequest(req, res, ctx, srcPage, multiZoneDraftMode, requestSpan, requestRootSpan));
|
|
216
210
|
}
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
/***/ 683333:
|
|
229
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
230
|
-
|
|
231
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
232
|
-
/* harmony export */ BC: () => (/* binding */ getHealthSnapshot),
|
|
233
|
-
/* harmony export */ eq: () => (/* binding */ runAllHealthProbes)
|
|
234
|
-
/* harmony export */ });
|
|
235
|
-
/* unused harmony export _resetHealthRunner */
|
|
236
|
-
/* harmony import */ var _lib_notifications_bus__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(776445);
|
|
237
|
-
/* harmony import */ var _lib_utils_global_state__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(115559);
|
|
238
|
-
/* harmony import */ var _probes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(106793);
|
|
239
|
-
/* harmony import */ var _lib_utils_error__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(922032);
|
|
240
|
-
// Periodic health-probe runner. Iterates the registered probes from
|
|
241
|
-
// ./probes.ts, races each against a short timeout, and translates state
|
|
242
|
-
// transitions into `health_alert` notification events.
|
|
243
|
-
//
|
|
244
|
-
// Why state transitions: the probe pool runs every ~10min server-side and
|
|
245
|
-
// can also be triggered on demand. Without dedup the user would see the
|
|
246
|
-
// same "Atlassian rejected the token" toast every cycle until they fixed
|
|
247
|
-
// it. We publish:
|
|
248
|
-
// * fail → first failure since last success, OR every RE_ALERT_MS while
|
|
249
|
-
// still failing (so the user is reminded the integration is
|
|
250
|
-
// still broken even if they dismissed the toast).
|
|
251
|
-
// * recovered → the probe that was failing is now green again.
|
|
252
|
-
//
|
|
253
|
-
// "Unconfigured" probes (operator never set the credential) are silently
|
|
254
|
-
// ignored — only configured-but-broken probes alert. State lives on
|
|
255
|
-
// globalThis (per-process, in-memory) so a restart re-evaluates from
|
|
256
|
-
// scratch.
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
const RE_ALERT_MS = 30 * 60 * 1000; // re-fire after 30 min of continuous failure
|
|
262
|
-
const state = (0,_lib_utils_global_state__WEBPACK_IMPORTED_MODULE_2__/* .getOrCreateGlobal */ .X)("__jarela_health_runner", ()=>({
|
|
263
|
-
probes: new Map(),
|
|
264
|
-
lastRunAt: 0,
|
|
265
|
-
inFlight: false
|
|
266
|
-
}));
|
|
267
|
-
function getOrInit(name) {
|
|
268
|
-
let s = state.probes.get(name);
|
|
269
|
-
if (!s) {
|
|
270
|
-
s = {
|
|
271
|
-
name,
|
|
272
|
-
category: (0,_probes__WEBPACK_IMPORTED_MODULE_1__/* .probeCategory */ .z1)(name),
|
|
273
|
-
label: (0,_probes__WEBPACK_IMPORTED_MODULE_1__/* .probeLabel */ .h2)(name),
|
|
274
|
-
lastResult: null,
|
|
275
|
-
lastCheckedAt: 0,
|
|
276
|
-
failingSince: null,
|
|
277
|
-
lastAlertAt: 0
|
|
278
|
-
};
|
|
279
|
-
state.probes.set(name, s);
|
|
211
|
+
async function handleRequest(req, res, ctx, srcPage, multiZoneDraftMode, requestSpan, requestRootSpan) {
|
|
212
|
+
const prepareResult = await routeModule.prepare(req, res, {
|
|
213
|
+
srcPage,
|
|
214
|
+
multiZoneDraftMode
|
|
215
|
+
});
|
|
216
|
+
if (!prepareResult) {
|
|
217
|
+
res.statusCode = 400;
|
|
218
|
+
res.end('Bad Request');
|
|
219
|
+
ctx.waitUntil == null ? void 0 : ctx.waitUntil.call(ctx, Promise.resolve());
|
|
220
|
+
return null;
|
|
280
221
|
}
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
const
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
status: "never_checked",
|
|
293
|
-
ok: false,
|
|
294
|
-
error: null,
|
|
295
|
-
detail: null,
|
|
296
|
-
lastCheckedAt: 0,
|
|
297
|
-
failingSince: null
|
|
298
|
-
});
|
|
299
|
-
continue;
|
|
222
|
+
const { buildId, deploymentId, params, nextConfig, parsedUrl, isDraftMode, prerenderManifest, routerServerContext, isOnDemandRevalidate, revalidateOnlyGenerated, resolvedPathname, clientReferenceManifest, serverActionsManifest, previewProps } = prepareResult;
|
|
223
|
+
const normalizedSrcPage = (0,next_dist_shared_lib_router_utils_app_paths__WEBPACK_IMPORTED_MODULE_6__.normalizeAppPath)(srcPage);
|
|
224
|
+
// Only this route's prerenders can establish ISR or admit generated params.
|
|
225
|
+
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]));
|
|
226
|
+
let isIsr = Boolean(prerenderManifest.dynamicRoutes[normalizedSrcPage] || isPrerendered);
|
|
227
|
+
const render404 = async ()=>{
|
|
228
|
+
// TODO: should route-module itself handle rendering the 404
|
|
229
|
+
if (routerServerContext == null ? void 0 : routerServerContext.render404) {
|
|
230
|
+
await routerServerContext.render404(req, res, parsedUrl, false);
|
|
231
|
+
} else {
|
|
232
|
+
res.end('This page could not be found');
|
|
300
233
|
}
|
|
301
|
-
|
|
302
|
-
name: s.name,
|
|
303
|
-
category: s.category,
|
|
304
|
-
label: s.label,
|
|
305
|
-
status: s.lastResult?.status ?? "never_checked",
|
|
306
|
-
ok: s.lastResult?.ok ?? false,
|
|
307
|
-
error: s.lastResult?.error ?? null,
|
|
308
|
-
detail: s.lastResult?.detail ?? null,
|
|
309
|
-
lastCheckedAt: s.lastCheckedAt,
|
|
310
|
-
failingSince: s.failingSince
|
|
311
|
-
});
|
|
312
|
-
}
|
|
313
|
-
return {
|
|
314
|
-
ranAt: state.lastRunAt,
|
|
315
|
-
probes
|
|
234
|
+
return null;
|
|
316
235
|
};
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
label: s.label,
|
|
327
|
-
category: s.category,
|
|
328
|
-
status: "recovered",
|
|
329
|
-
error: null,
|
|
330
|
-
ts: now
|
|
331
|
-
});
|
|
236
|
+
if (isIsr && !isDraftMode) {
|
|
237
|
+
const prerenderInfo = prerenderManifest.dynamicRoutes[normalizedSrcPage];
|
|
238
|
+
if (prerenderInfo) {
|
|
239
|
+
if (prerenderInfo.fallback === false && !isPrerendered) {
|
|
240
|
+
if (nextConfig.adapterPath) {
|
|
241
|
+
return await render404();
|
|
242
|
+
}
|
|
243
|
+
throw new next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_15__.NoFallbackError();
|
|
244
|
+
}
|
|
332
245
|
}
|
|
333
|
-
s.failingSince = null;
|
|
334
|
-
s.lastAlertAt = 0;
|
|
335
|
-
return;
|
|
336
246
|
}
|
|
337
|
-
|
|
338
|
-
if (
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
247
|
+
let cacheKey = null;
|
|
248
|
+
if (isIsr && !routeModule.isDev && !isDraftMode) {
|
|
249
|
+
cacheKey = resolvedPathname;
|
|
250
|
+
// ensure /index and / is normalized to one key
|
|
251
|
+
cacheKey = cacheKey === '/index' ? '/' : cacheKey;
|
|
342
252
|
}
|
|
343
|
-
//
|
|
344
|
-
//
|
|
345
|
-
//
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
s.lastAlertAt = now;
|
|
352
|
-
// Tag transient/error/auth_failed verbatim so the UI can colour-code.
|
|
353
|
-
const alertStatus = next.status === "auth_failed" ? "auth_failed" : next.status === "transient" ? "transient" : "error";
|
|
354
|
-
(0,_lib_notifications_bus__WEBPACK_IMPORTED_MODULE_0__/* .publish */ .mk)({
|
|
355
|
-
type: "health_alert",
|
|
356
|
-
probe: s.name,
|
|
357
|
-
label: s.label,
|
|
358
|
-
category: s.category,
|
|
359
|
-
status: alertStatus,
|
|
360
|
-
error: next.error ?? "probe failed",
|
|
361
|
-
ts: now
|
|
253
|
+
// Before rendering (which initializes component tree modules), we have to
|
|
254
|
+
// set the reference manifests to our global store so Server Action's
|
|
255
|
+
// encryption util can access to them at the top level of the page module.
|
|
256
|
+
if (serverActionsManifest && clientReferenceManifest) {
|
|
257
|
+
(0,next_dist_server_app_render_manifests_singleton__WEBPACK_IMPORTED_MODULE_5__.setManifestsSingleton)({
|
|
258
|
+
page: srcPage,
|
|
259
|
+
clientReferenceManifest,
|
|
260
|
+
serverActionsManifest
|
|
362
261
|
});
|
|
363
262
|
}
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
263
|
+
const method = req.method || 'GET';
|
|
264
|
+
const tracer = (0,next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.getTracer)();
|
|
265
|
+
const isWrappedByNextServer = Boolean(routerServerContext == null ? void 0 : routerServerContext.isWrappedByNextServer);
|
|
266
|
+
const isMinimalMode = Boolean((0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.getRequestMeta)(req, 'minimalMode'));
|
|
267
|
+
const incrementalCache = (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.getRequestMeta)(req, 'incrementalCache') || await routeModule.getIncrementalCache(req, nextConfig, previewProps, prerenderManifest, isMinimalMode);
|
|
268
|
+
incrementalCache == null ? void 0 : incrementalCache.resetRequestCache();
|
|
269
|
+
globalThis.__incrementalCache = incrementalCache;
|
|
270
|
+
const context = {
|
|
271
|
+
params,
|
|
272
|
+
previewProps,
|
|
273
|
+
renderOpts: {
|
|
274
|
+
experimental: {
|
|
275
|
+
authInterrupts: Boolean(nextConfig.experimental.authInterrupts),
|
|
276
|
+
useCacheTimeout: nextConfig.experimental.useCacheTimeout,
|
|
277
|
+
durableUseCacheEntries: Boolean(nextConfig.experimental.durableUseCacheEntries)
|
|
278
|
+
},
|
|
279
|
+
cacheComponents: Boolean(nextConfig.cacheComponents),
|
|
280
|
+
validationLevel: nextConfig.experimental.instantInsights.validationLevel,
|
|
281
|
+
isDraftMode,
|
|
282
|
+
incrementalCache,
|
|
283
|
+
hmrRefreshHash: (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.getRequestMeta)(req, 'hmrRefreshHash'),
|
|
284
|
+
cacheLifeProfiles: nextConfig.cacheLife,
|
|
285
|
+
staticPageGenerationTimeout: nextConfig.staticPageGenerationTimeout,
|
|
286
|
+
waitUntil: ctx.waitUntil,
|
|
287
|
+
onClose: (cb)=>{
|
|
288
|
+
res.on('close', cb);
|
|
289
|
+
},
|
|
290
|
+
onAfterTaskError: undefined
|
|
291
|
+
},
|
|
292
|
+
sharedContext: {
|
|
293
|
+
buildId,
|
|
294
|
+
deploymentId
|
|
390
295
|
}
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
}
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
296
|
+
};
|
|
297
|
+
const nodeNextReq = new next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_7__.NodeNextRequest(req);
|
|
298
|
+
const nodeNextRes = new next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_7__.NodeNextResponse(res);
|
|
299
|
+
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));
|
|
300
|
+
const responseGenerator = async ({ previousCacheEntry })=>{
|
|
301
|
+
try {
|
|
302
|
+
if (!isMinimalMode && isOnDemandRevalidate && revalidateOnlyGenerated && !previousCacheEntry) {
|
|
303
|
+
res.statusCode = 404;
|
|
304
|
+
// on-demand revalidate always sets this header
|
|
305
|
+
res.setHeader('x-nextjs-cache', 'REVALIDATED');
|
|
306
|
+
res.end('This page could not be found');
|
|
307
|
+
return null;
|
|
308
|
+
}
|
|
309
|
+
const response = cacheKey === null ? await routeModule.handle(nextReq, context) : await routeModule.prerender(nextReq, context);
|
|
310
|
+
req.fetchMetrics = context.renderOpts.fetchMetrics;
|
|
311
|
+
let pendingWaitUntil = context.renderOpts.pendingWaitUntil;
|
|
312
|
+
// Attempt using provided waitUntil if available
|
|
313
|
+
// if it's not we fallback to sendResponse's handling
|
|
314
|
+
if (pendingWaitUntil) {
|
|
315
|
+
if (ctx.waitUntil) {
|
|
316
|
+
ctx.waitUntil(pendingWaitUntil);
|
|
317
|
+
pendingWaitUntil = undefined;
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
const cacheTags = context.renderOpts.collectedTags;
|
|
321
|
+
// If the request is for a static response, we can cache it so long
|
|
322
|
+
// as it's not edge.
|
|
323
|
+
if (isIsr) {
|
|
324
|
+
const blob = await response.blob();
|
|
325
|
+
// Copy the headers from the response.
|
|
326
|
+
const headers = (0,next_dist_server_web_utils__WEBPACK_IMPORTED_MODULE_12__.toNodeOutgoingHttpHeaders)(response.headers);
|
|
327
|
+
if (cacheTags) {
|
|
328
|
+
headers[next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__.NEXT_CACHE_TAGS_HEADER] = cacheTags;
|
|
329
|
+
}
|
|
330
|
+
if (!headers['content-type'] && blob.type) {
|
|
331
|
+
headers['content-type'] = blob.type;
|
|
332
|
+
}
|
|
333
|
+
const revalidate = typeof context.renderOpts.collectedRevalidate === 'undefined' || context.renderOpts.collectedRevalidate >= next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__.INFINITE_CACHE ? false : context.renderOpts.collectedRevalidate;
|
|
334
|
+
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
|
|
335
|
+
// explicit `expire` (e.g. via `cacheLife`). This mirrors the
|
|
336
|
+
// build-time fallback in `build/index.ts` so cache entries
|
|
337
|
+
// and the response Cache-Control header agree on the route's
|
|
338
|
+
// effective expire. Routes that opt out of revalidation
|
|
339
|
+
// (`revalidate: false`) or that are dynamic (`revalidate: 0`)
|
|
340
|
+
// keep `expire: undefined`.
|
|
341
|
+
revalidate !== false && revalidate > 0 ? nextConfig.expireTime : undefined : context.renderOpts.collectedExpire;
|
|
342
|
+
// Create the cache entry for the response.
|
|
343
|
+
const cacheEntry = {
|
|
344
|
+
value: {
|
|
345
|
+
kind: next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__.CachedRouteKind.APP_ROUTE,
|
|
346
|
+
status: response.status,
|
|
347
|
+
body: Buffer.from(await blob.arrayBuffer()),
|
|
348
|
+
headers
|
|
349
|
+
},
|
|
350
|
+
cacheControl: {
|
|
351
|
+
revalidate,
|
|
352
|
+
expire
|
|
353
|
+
}
|
|
354
|
+
};
|
|
355
|
+
return cacheEntry;
|
|
356
|
+
} else {
|
|
357
|
+
// send response without caching if not ISR
|
|
358
|
+
await (0,next_dist_server_send_response__WEBPACK_IMPORTED_MODULE_11__/* .sendResponse */ .I)(nodeNextReq, nodeNextRes, response, pendingWaitUntil);
|
|
359
|
+
return null;
|
|
360
|
+
}
|
|
361
|
+
} catch (err) {
|
|
362
|
+
// if this is a background revalidate we need to report
|
|
363
|
+
// the request error here as it won't be bubbled
|
|
364
|
+
if (previousCacheEntry == null ? void 0 : previousCacheEntry.isStale) {
|
|
365
|
+
const silenceLog = false;
|
|
366
|
+
await routeModule.onRequestError(req, err, {
|
|
367
|
+
routerKind: 'App Router',
|
|
368
|
+
routePath: srcPage,
|
|
369
|
+
routeType: 'route',
|
|
370
|
+
revalidateReason: (0,next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_10__.getRevalidateReason)({
|
|
371
|
+
isStaticGeneration: cacheKey !== null,
|
|
372
|
+
isOnDemandRevalidate
|
|
373
|
+
})
|
|
374
|
+
}, silenceLog, routerServerContext);
|
|
375
|
+
}
|
|
376
|
+
throw err;
|
|
377
|
+
}
|
|
378
|
+
};
|
|
379
|
+
const handleResponse = async (currentSpan)=>{
|
|
380
|
+
try {
|
|
381
|
+
var _cacheEntry_value;
|
|
382
|
+
const cacheEntry = await routeModule.handleResponse({
|
|
383
|
+
req,
|
|
384
|
+
nextConfig,
|
|
385
|
+
cacheKey,
|
|
386
|
+
routeKind: next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__.RouteKind.APP_ROUTE,
|
|
387
|
+
isFallback: false,
|
|
388
|
+
previewProps,
|
|
389
|
+
prerenderManifest,
|
|
390
|
+
isRoutePPREnabled: false,
|
|
391
|
+
isOnDemandRevalidate,
|
|
392
|
+
revalidateOnlyGenerated,
|
|
393
|
+
responseGenerator,
|
|
394
|
+
waitUntil: ctx.waitUntil,
|
|
395
|
+
isMinimalMode
|
|
396
|
+
});
|
|
397
|
+
if (cacheEntry !== null && 'error' in cacheEntry) {
|
|
398
|
+
throw cacheEntry.error;
|
|
399
|
+
}
|
|
400
|
+
// we don't create a cacheEntry for ISR
|
|
401
|
+
if (!isIsr) {
|
|
402
|
+
return;
|
|
403
|
+
}
|
|
404
|
+
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) {
|
|
405
|
+
var _cacheEntry_value1;
|
|
406
|
+
throw new Error(`Invariant: app-route received invalid cache entry ${cacheEntry == null ? void 0 : (_cacheEntry_value1 = cacheEntry.value) == null ? void 0 : _cacheEntry_value1.kind}`);
|
|
407
|
+
}
|
|
408
|
+
if (!isMinimalMode) {
|
|
409
|
+
res.setHeader('x-nextjs-cache', isOnDemandRevalidate ? 'REVALIDATED' : cacheEntry.isMiss ? 'MISS' : cacheEntry.isStale ? 'STALE' : 'HIT');
|
|
410
|
+
}
|
|
411
|
+
// Draft mode should never be cached
|
|
412
|
+
if (isDraftMode) {
|
|
413
|
+
res.setHeader('Cache-Control', 'private, no-cache, no-store, max-age=0, must-revalidate');
|
|
414
|
+
}
|
|
415
|
+
const headers = (0,next_dist_server_web_utils__WEBPACK_IMPORTED_MODULE_12__.fromNodeOutgoingHttpHeaders)(cacheEntry.value.headers);
|
|
416
|
+
if (!(isMinimalMode && isIsr)) {
|
|
417
|
+
headers.delete(next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__.NEXT_CACHE_TAGS_HEADER);
|
|
418
|
+
}
|
|
419
|
+
// If cache control is already set on the response we don't
|
|
420
|
+
// override it to allow users to customize it via next.config
|
|
421
|
+
if (cacheEntry.cacheControl && !res.getHeader('Cache-Control') && !headers.get('Cache-Control')) {
|
|
422
|
+
headers.set('Cache-Control', (0,next_dist_server_lib_cache_control__WEBPACK_IMPORTED_MODULE_13__.getCacheControlHeader)(cacheEntry.cacheControl));
|
|
423
|
+
}
|
|
424
|
+
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'.
|
|
425
|
+
new Response(cacheEntry.value.body, {
|
|
426
|
+
headers,
|
|
427
|
+
status: cacheEntry.value.status || 200
|
|
428
|
+
}));
|
|
429
|
+
return;
|
|
430
|
+
} catch (err) {
|
|
431
|
+
if (!(err instanceof next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_15__.NoFallbackError)) {
|
|
432
|
+
const silenceLog = false;
|
|
433
|
+
await routeModule.onRequestError(req, err, {
|
|
434
|
+
routerKind: 'App Router',
|
|
435
|
+
routePath: normalizedSrcPage,
|
|
436
|
+
routeType: 'route',
|
|
437
|
+
revalidateReason: (0,next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_10__.getRevalidateReason)({
|
|
438
|
+
isStaticGeneration: cacheKey !== null,
|
|
439
|
+
isOnDemandRevalidate
|
|
440
|
+
})
|
|
441
|
+
}, silenceLog, routerServerContext);
|
|
442
|
+
}
|
|
443
|
+
// rethrow so that we can handle serving error page
|
|
444
|
+
// If this is during static generation, throw the error again.
|
|
445
|
+
if (isIsr) throw err;
|
|
446
|
+
// Otherwise, send a 500 response unless the original response has
|
|
447
|
+
// already committed. In that case, preserve its status code for
|
|
448
|
+
// telemetry while still recording the failure and terminating a response
|
|
449
|
+
// that the failed pipeline left open.
|
|
450
|
+
if (res.headersSent) {
|
|
451
|
+
if (currentSpan) {
|
|
452
|
+
const error = err instanceof Error ? err : new Error('Unknown app route error');
|
|
453
|
+
currentSpan.recordException(error);
|
|
454
|
+
currentSpan.setStatus({
|
|
455
|
+
code: next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.SpanStatusCode.ERROR,
|
|
456
|
+
message: error.message
|
|
457
|
+
});
|
|
458
|
+
currentSpan.setAttribute('error.type', error.name);
|
|
459
|
+
}
|
|
460
|
+
if (!res.writableEnded && !res.destroyed) {
|
|
461
|
+
res.end();
|
|
462
|
+
}
|
|
463
|
+
} else {
|
|
464
|
+
await (0,next_dist_server_send_response__WEBPACK_IMPORTED_MODULE_11__/* .sendResponse */ .I)(nodeNextReq, nodeNextRes, new Response(null, {
|
|
465
|
+
status: 500
|
|
466
|
+
}));
|
|
467
|
+
}
|
|
468
|
+
return;
|
|
469
|
+
} finally{
|
|
470
|
+
;
|
|
471
|
+
(()=>{
|
|
472
|
+
if (!currentSpan) {
|
|
473
|
+
return;
|
|
474
|
+
}
|
|
475
|
+
let statusCode = res.statusCode;
|
|
476
|
+
currentSpan.setAttributes({
|
|
477
|
+
'http.status_code': statusCode,
|
|
478
|
+
'next.rsc': false
|
|
479
|
+
});
|
|
480
|
+
if (statusCode && statusCode >= 500) {
|
|
481
|
+
// For 5xx status codes: SHOULD be set to 'Error' span status.
|
|
482
|
+
// x-ref: https://opentelemetry.io/docs/specs/semconv/http/http-spans/#status
|
|
483
|
+
currentSpan.setStatus({
|
|
484
|
+
code: next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.SpanStatusCode.ERROR
|
|
485
|
+
});
|
|
486
|
+
// For span status 'Error', SHOULD set 'error.type' attribute.
|
|
487
|
+
currentSpan.setAttribute('error.type', statusCode.toString());
|
|
488
|
+
}
|
|
489
|
+
const rootSpanAttributes = tracer.getRootSpanAttributes();
|
|
490
|
+
// We were unable to get attributes, probably OTEL is not enabled
|
|
491
|
+
if (!rootSpanAttributes) {
|
|
492
|
+
return;
|
|
493
|
+
}
|
|
494
|
+
if (rootSpanAttributes.get('next.span_type') !== next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_9__.BaseServerSpan.handleRequest) {
|
|
495
|
+
console.warn(`Unexpected root span type '${rootSpanAttributes.get('next.span_type')}'. Please report this Next.js issue https://github.com/vercel/next.js`);
|
|
496
|
+
return;
|
|
497
|
+
}
|
|
498
|
+
const route = rootSpanAttributes.get('next.route') || normalizedSrcPage;
|
|
499
|
+
const name = `${method} ${route}`;
|
|
500
|
+
currentSpan.setAttributes({
|
|
501
|
+
'next.route': route,
|
|
502
|
+
'http.route': route,
|
|
503
|
+
'next.span_name': name
|
|
504
|
+
});
|
|
505
|
+
currentSpan.updateName(name);
|
|
506
|
+
// Propagate http.route to the request's root span if it isn't the
|
|
507
|
+
// request span (e.g. a platform-created HTTP span in adapter
|
|
508
|
+
// deployments).
|
|
509
|
+
if (requestRootSpan && requestRootSpan !== currentSpan) {
|
|
510
|
+
requestRootSpan.setAttribute('http.route', route);
|
|
511
|
+
requestRootSpan.updateName(name);
|
|
512
|
+
}
|
|
513
|
+
})();
|
|
514
|
+
}
|
|
515
|
+
};
|
|
516
|
+
// When invoked directly, the request span was started before `prepare`;
|
|
517
|
+
// record the request target as normalized by it. next-server's request span
|
|
518
|
+
// already has it.
|
|
519
|
+
if (!isWrappedByNextServer && req.url !== undefined) {
|
|
520
|
+
requestSpan == null ? void 0 : requestSpan.setAttribute('http.target', req.url);
|
|
521
|
+
}
|
|
522
|
+
await handleResponse(requestSpan);
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
//# sourceMappingURL=app-route.js.map
|
|
436
526
|
|
|
437
|
-
module.exports = require("node:net");
|
|
438
527
|
|
|
439
528
|
/***/ }),
|
|
440
529
|
|
|
441
|
-
/***/
|
|
530
|
+
/***/ 257975:
|
|
442
531
|
/***/ ((module) => {
|
|
443
532
|
|
|
444
|
-
module.exports = require("
|
|
533
|
+
module.exports = require("node:util");
|
|
445
534
|
|
|
446
535
|
/***/ }),
|
|
447
536
|
|
|
448
|
-
/***/
|
|
537
|
+
/***/ 309956:
|
|
449
538
|
/***/ ((module) => {
|
|
450
539
|
|
|
451
|
-
module.exports = require("
|
|
540
|
+
module.exports = require("undici");
|
|
452
541
|
|
|
453
542
|
/***/ }),
|
|
454
543
|
|
|
455
|
-
/***/
|
|
544
|
+
/***/ 328354:
|
|
456
545
|
/***/ ((module) => {
|
|
457
546
|
|
|
458
|
-
module.exports =
|
|
547
|
+
module.exports = require("util");
|
|
459
548
|
|
|
460
549
|
/***/ }),
|
|
461
550
|
|
|
462
|
-
/***/
|
|
551
|
+
/***/ 333873:
|
|
463
552
|
/***/ ((module) => {
|
|
464
553
|
|
|
465
|
-
module.exports = require("
|
|
554
|
+
module.exports = require("path");
|
|
466
555
|
|
|
467
556
|
/***/ }),
|
|
468
557
|
|
|
469
|
-
/***/
|
|
558
|
+
/***/ 344708:
|
|
470
559
|
/***/ ((module) => {
|
|
471
560
|
|
|
472
|
-
module.exports = require("
|
|
561
|
+
module.exports = require("node:https");
|
|
473
562
|
|
|
474
563
|
/***/ }),
|
|
475
564
|
|
|
476
|
-
/***/
|
|
565
|
+
/***/ 358500:
|
|
477
566
|
/***/ ((module) => {
|
|
478
567
|
|
|
479
|
-
module.exports = require("
|
|
568
|
+
module.exports = require("node:timers/promises");
|
|
480
569
|
|
|
481
570
|
/***/ }),
|
|
482
571
|
|
|
483
|
-
/***/
|
|
572
|
+
/***/ 379551:
|
|
484
573
|
/***/ ((module) => {
|
|
485
574
|
|
|
486
|
-
module.exports = require("
|
|
575
|
+
module.exports = require("url");
|
|
487
576
|
|
|
488
577
|
/***/ }),
|
|
489
578
|
|
|
490
|
-
/***/
|
|
491
|
-
/***/ ((
|
|
579
|
+
/***/ 380481:
|
|
580
|
+
/***/ ((module) => {
|
|
492
581
|
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
/* harmony export */ patchFetch: () => (/* binding */ patchFetch),
|
|
497
|
-
/* harmony export */ routeModule: () => (/* binding */ routeModule),
|
|
498
|
-
/* harmony export */ serverHooks: () => (/* binding */ serverHooks),
|
|
499
|
-
/* harmony export */ workAsyncStorage: () => (/* binding */ workAsyncStorage),
|
|
500
|
-
/* harmony export */ workUnitAsyncStorage: () => (/* binding */ workUnitAsyncStorage)
|
|
501
|
-
/* harmony export */ });
|
|
502
|
-
/* harmony import */ var next_dist_server_route_modules_app_route_module_compiled__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(319225);
|
|
503
|
-
/* 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__);
|
|
504
|
-
/* harmony import */ var next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(684006);
|
|
505
|
-
/* harmony import */ var next_dist_server_lib_patch_fetch__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8317);
|
|
506
|
-
/* 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__);
|
|
507
|
-
/* harmony import */ var next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(799373);
|
|
508
|
-
/* 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__);
|
|
509
|
-
/* harmony import */ var next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(434775);
|
|
510
|
-
/* 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__);
|
|
511
|
-
/* harmony import */ var next_dist_server_app_render_manifests_singleton__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(524235);
|
|
512
|
-
/* 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__);
|
|
513
|
-
/* harmony import */ var next_dist_shared_lib_router_utils_app_paths__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(200261);
|
|
514
|
-
/* 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__);
|
|
515
|
-
/* harmony import */ var next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(754365);
|
|
516
|
-
/* 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__);
|
|
517
|
-
/* harmony import */ var next_dist_server_web_spec_extension_adapters_next_request__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(590771);
|
|
518
|
-
/* 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__);
|
|
519
|
-
/* harmony import */ var next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(473461);
|
|
520
|
-
/* 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__);
|
|
521
|
-
/* harmony import */ var next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(767798);
|
|
522
|
-
/* harmony import */ var next_dist_server_send_response__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(192280);
|
|
523
|
-
/* harmony import */ var next_dist_server_web_utils__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(662018);
|
|
524
|
-
/* 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__);
|
|
525
|
-
/* harmony import */ var next_dist_server_lib_cache_control__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(445696);
|
|
526
|
-
/* harmony import */ var next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(347929);
|
|
527
|
-
/* harmony import */ var next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__);
|
|
528
|
-
/* harmony import */ var next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(986439);
|
|
529
|
-
/* 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__);
|
|
530
|
-
/* harmony import */ var next_dist_server_lib_route_cache_key__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(710246);
|
|
531
|
-
/* 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__);
|
|
532
|
-
/* harmony import */ var next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(137527);
|
|
533
|
-
/* 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__);
|
|
582
|
+
module.exports = require("node:readline");
|
|
583
|
+
|
|
584
|
+
/***/ }),
|
|
534
585
|
|
|
586
|
+
/***/ 399253:
|
|
587
|
+
/***/ ((module) => {
|
|
535
588
|
|
|
589
|
+
module.exports = import("@huggingface/transformers");;
|
|
536
590
|
|
|
591
|
+
/***/ }),
|
|
537
592
|
|
|
593
|
+
/***/ 419121:
|
|
594
|
+
/***/ ((module) => {
|
|
538
595
|
|
|
596
|
+
module.exports = require("next/dist/server/app-render/action-async-storage.external.js");
|
|
539
597
|
|
|
598
|
+
/***/ }),
|
|
540
599
|
|
|
600
|
+
/***/ 455511:
|
|
601
|
+
/***/ ((module) => {
|
|
541
602
|
|
|
603
|
+
module.exports = require("crypto");
|
|
542
604
|
|
|
605
|
+
/***/ }),
|
|
543
606
|
|
|
607
|
+
/***/ 529294:
|
|
608
|
+
/***/ ((module) => {
|
|
544
609
|
|
|
610
|
+
module.exports = require("next/dist/server/app-render/work-async-storage.external.js");
|
|
545
611
|
|
|
612
|
+
/***/ }),
|
|
546
613
|
|
|
614
|
+
/***/ 590347:
|
|
615
|
+
/***/ ((module) => {
|
|
547
616
|
|
|
617
|
+
module.exports = import("@langchain/mcp-adapters");;
|
|
548
618
|
|
|
619
|
+
/***/ }),
|
|
549
620
|
|
|
621
|
+
/***/ 594735:
|
|
622
|
+
/***/ ((module) => {
|
|
550
623
|
|
|
624
|
+
module.exports = require("events");
|
|
551
625
|
|
|
552
|
-
|
|
553
|
-
// module.
|
|
554
|
-
const nextConfigOutput = "standalone"
|
|
555
|
-
const routeModule = new next_dist_server_route_modules_app_route_module_compiled__WEBPACK_IMPORTED_MODULE_0__.AppRouteRouteModule({
|
|
556
|
-
definition: {
|
|
557
|
-
kind: next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__.RouteKind.APP_ROUTE,
|
|
558
|
-
page: "/api/v1/health/probes/route",
|
|
559
|
-
pathname: "/api/v1/health/probes",
|
|
560
|
-
filename: "route",
|
|
561
|
-
bundlePath: "app/api/v1/health/probes/route"
|
|
562
|
-
},
|
|
563
|
-
distDir: ".next" || 0,
|
|
564
|
-
relativeProjectDir: false || '',
|
|
565
|
-
resolvedPagePath: "/home/runner/work/jarela/jarela/app/api/v1/health/probes/route.ts",
|
|
566
|
-
nextConfigOutput,
|
|
567
|
-
// The lazy require factory ensures that:
|
|
568
|
-
// - In dev: devRequestTimingInternalsEnd is set before userland executes,
|
|
569
|
-
// correctly attributing module load time to application-code rather than
|
|
570
|
-
// framework internals.
|
|
571
|
-
// - In all modes: async modules (route files with top-level await) are
|
|
572
|
-
// handled correctly — require() returns a Promise for such modules, which
|
|
573
|
-
// ensureUserland() awaits before the first request is handled.
|
|
574
|
-
userland: ()=>__webpack_require__(651463),
|
|
575
|
-
// In Turbopack dev mode, also provide a synchronous per-request getter so
|
|
576
|
-
// server HMR updates are picked up without re-executing the entry chunk.
|
|
577
|
-
// Using require() (synchronous) avoids adding async overhead that would be
|
|
578
|
-
// incorrectly attributed to application-code time in devRequestTiming.
|
|
579
|
-
... false ? 0 : {}
|
|
580
|
-
});
|
|
581
|
-
// Pull out the exports that we need to expose from the module. This should
|
|
582
|
-
// be eliminated when we've moved the other routes to the new format. These
|
|
583
|
-
// are used to hook into the route.
|
|
584
|
-
const { workAsyncStorage, workUnitAsyncStorage, serverHooks } = routeModule;
|
|
585
|
-
function patchFetch() {
|
|
586
|
-
return (0,next_dist_server_lib_patch_fetch__WEBPACK_IMPORTED_MODULE_2__.patchFetch)({
|
|
587
|
-
workAsyncStorage,
|
|
588
|
-
workUnitAsyncStorage
|
|
589
|
-
});
|
|
590
|
-
}
|
|
626
|
+
/***/ }),
|
|
591
627
|
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
628
|
+
/***/ 629021:
|
|
629
|
+
/***/ ((module) => {
|
|
630
|
+
|
|
631
|
+
module.exports = require("fs");
|
|
632
|
+
|
|
633
|
+
/***/ }),
|
|
634
|
+
|
|
635
|
+
/***/ 638522:
|
|
636
|
+
/***/ ((module) => {
|
|
637
|
+
|
|
638
|
+
module.exports = require("node:zlib");
|
|
639
|
+
|
|
640
|
+
/***/ }),
|
|
641
|
+
|
|
642
|
+
/***/ 651463:
|
|
643
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
644
|
+
|
|
645
|
+
__webpack_require__.r(__webpack_exports__);
|
|
646
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
647
|
+
/* harmony export */ GET: () => (/* binding */ GET)
|
|
648
|
+
/* harmony export */ });
|
|
649
|
+
/* harmony import */ var next_server__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(945592);
|
|
650
|
+
/* harmony import */ var _lib_health_runner__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(683333);
|
|
651
|
+
// GET /api/v1/health/probes → returns the last known probe snapshot.
|
|
652
|
+
// GET /api/v1/health/probes?refresh=1 → runs every probe synchronously
|
|
653
|
+
// then returns the fresh snapshot.
|
|
654
|
+
//
|
|
655
|
+
// Sibling of /api/v1/health (which is a liveness check). The probe data
|
|
656
|
+
// drives a future "Status" panel and the early-error toasts described in
|
|
657
|
+
// lib/health/runner.ts.
|
|
658
|
+
|
|
659
|
+
|
|
660
|
+
async function GET(req) {
|
|
661
|
+
const url = new URL(req.url);
|
|
662
|
+
const refresh = url.searchParams.get("refresh") === "1";
|
|
663
|
+
if (refresh) {
|
|
664
|
+
const snapshot = await (0,_lib_health_runner__WEBPACK_IMPORTED_MODULE_1__/* .runAllHealthProbes */ .eq)();
|
|
665
|
+
return next_server__WEBPACK_IMPORTED_MODULE_0__.NextResponse.json(snapshot);
|
|
606
666
|
}
|
|
607
|
-
|
|
608
|
-
// Registering `instrumentation.ts` usually installs the tracer provider, so
|
|
609
|
-
// do it before starting the request span. The span is started before
|
|
610
|
-
// `prepare`, so route module preparation is part of the request's trace.
|
|
611
|
-
// When this request triggers registration, the lifecycle spans of
|
|
612
|
-
// `instrumentation.ts` are emitted inside the request span.
|
|
613
|
-
const { instrumentation } = await routeModule.ensureInstrumentation(req, {
|
|
614
|
-
deferSpans: true
|
|
615
|
-
});
|
|
616
|
-
return routeModule.traceRequest(req, {
|
|
617
|
-
tracer: (0,next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.getTracer)(),
|
|
618
|
-
spanName: `${req.method || 'GET'} ${srcPage}`,
|
|
619
|
-
httpTarget: req.url,
|
|
620
|
-
instrumentation
|
|
621
|
-
}, (requestSpan, requestRootSpan)=>handleRequest(req, res, ctx, srcPage, multiZoneDraftMode, requestSpan, requestRootSpan));
|
|
667
|
+
return next_server__WEBPACK_IMPORTED_MODULE_0__.NextResponse.json((0,_lib_health_runner__WEBPACK_IMPORTED_MODULE_1__/* .getHealthSnapshot */ .BC)());
|
|
622
668
|
}
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
669
|
+
|
|
670
|
+
|
|
671
|
+
/***/ }),
|
|
672
|
+
|
|
673
|
+
/***/ 663033:
|
|
674
|
+
/***/ ((module) => {
|
|
675
|
+
|
|
676
|
+
module.exports = require("next/dist/server/app-render/work-unit-async-storage.external.js");
|
|
677
|
+
|
|
678
|
+
/***/ }),
|
|
679
|
+
|
|
680
|
+
/***/ 683333:
|
|
681
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
682
|
+
|
|
683
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
684
|
+
/* harmony export */ BC: () => (/* binding */ getHealthSnapshot),
|
|
685
|
+
/* harmony export */ eq: () => (/* binding */ runAllHealthProbes)
|
|
686
|
+
/* harmony export */ });
|
|
687
|
+
/* unused harmony export _resetHealthRunner */
|
|
688
|
+
/* harmony import */ var _lib_notifications_bus__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(776445);
|
|
689
|
+
/* harmony import */ var _lib_utils_global_state__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(115559);
|
|
690
|
+
/* harmony import */ var _probes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(106793);
|
|
691
|
+
/* harmony import */ var _lib_utils_error__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(922032);
|
|
692
|
+
// Periodic health-probe runner. Iterates the registered probes from
|
|
693
|
+
// ./probes.ts, races each against a short timeout, and translates state
|
|
694
|
+
// transitions into `health_alert` notification events.
|
|
695
|
+
//
|
|
696
|
+
// Why state transitions: the probe pool runs every ~10min server-side and
|
|
697
|
+
// can also be triggered on demand. Without dedup the user would see the
|
|
698
|
+
// same "Atlassian rejected the token" toast every cycle until they fixed
|
|
699
|
+
// it. We publish:
|
|
700
|
+
// * fail → first failure since last success, OR every RE_ALERT_MS while
|
|
701
|
+
// still failing (so the user is reminded the integration is
|
|
702
|
+
// still broken even if they dismissed the toast).
|
|
703
|
+
// * recovered → the probe that was failing is now green again.
|
|
704
|
+
//
|
|
705
|
+
// "Unconfigured" probes (operator never set the credential) are silently
|
|
706
|
+
// ignored — only configured-but-broken probes alert. State lives on
|
|
707
|
+
// globalThis (per-process, in-memory) so a restart re-evaluates from
|
|
708
|
+
// scratch.
|
|
709
|
+
|
|
710
|
+
|
|
711
|
+
|
|
712
|
+
|
|
713
|
+
const RE_ALERT_MS = 30 * 60 * 1000; // re-fire after 30 min of continuous failure
|
|
714
|
+
const state = (0,_lib_utils_global_state__WEBPACK_IMPORTED_MODULE_2__/* .getOrCreateGlobal */ .X)("__jarela_health_runner", ()=>({
|
|
715
|
+
probes: new Map(),
|
|
716
|
+
lastRunAt: 0,
|
|
717
|
+
inFlight: false
|
|
718
|
+
}));
|
|
719
|
+
function getOrInit(name) {
|
|
720
|
+
let s = state.probes.get(name);
|
|
721
|
+
if (!s) {
|
|
722
|
+
s = {
|
|
723
|
+
name,
|
|
724
|
+
category: (0,_probes__WEBPACK_IMPORTED_MODULE_1__/* .probeCategory */ .z1)(name),
|
|
725
|
+
label: (0,_probes__WEBPACK_IMPORTED_MODULE_1__/* .probeLabel */ .h2)(name),
|
|
726
|
+
lastResult: null,
|
|
727
|
+
lastCheckedAt: 0,
|
|
728
|
+
failingSince: null,
|
|
729
|
+
lastAlertAt: 0
|
|
730
|
+
};
|
|
731
|
+
state.probes.set(name, s);
|
|
633
732
|
}
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
const
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
733
|
+
return s;
|
|
734
|
+
}
|
|
735
|
+
function getHealthSnapshot() {
|
|
736
|
+
const probes = [];
|
|
737
|
+
for (const name of (0,_probes__WEBPACK_IMPORTED_MODULE_1__/* .listProbes */ .kk)()){
|
|
738
|
+
const s = state.probes.get(name);
|
|
739
|
+
if (!s) {
|
|
740
|
+
probes.push({
|
|
741
|
+
name,
|
|
742
|
+
category: (0,_probes__WEBPACK_IMPORTED_MODULE_1__/* .probeCategory */ .z1)(name),
|
|
743
|
+
label: (0,_probes__WEBPACK_IMPORTED_MODULE_1__/* .probeLabel */ .h2)(name),
|
|
744
|
+
status: "never_checked",
|
|
745
|
+
ok: false,
|
|
746
|
+
error: null,
|
|
747
|
+
detail: null,
|
|
748
|
+
lastCheckedAt: 0,
|
|
749
|
+
failingSince: null
|
|
750
|
+
});
|
|
751
|
+
continue;
|
|
645
752
|
}
|
|
646
|
-
|
|
753
|
+
probes.push({
|
|
754
|
+
name: s.name,
|
|
755
|
+
category: s.category,
|
|
756
|
+
label: s.label,
|
|
757
|
+
status: s.lastResult?.status ?? "never_checked",
|
|
758
|
+
ok: s.lastResult?.ok ?? false,
|
|
759
|
+
error: s.lastResult?.error ?? null,
|
|
760
|
+
detail: s.lastResult?.detail ?? null,
|
|
761
|
+
lastCheckedAt: s.lastCheckedAt,
|
|
762
|
+
failingSince: s.failingSince
|
|
763
|
+
});
|
|
764
|
+
}
|
|
765
|
+
return {
|
|
766
|
+
ranAt: state.lastRunAt,
|
|
767
|
+
probes
|
|
647
768
|
};
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
769
|
+
}
|
|
770
|
+
// Publish-vs-skip decision for a single probe transition.
|
|
771
|
+
function reconcileProbe(s, prev, next, now) {
|
|
772
|
+
if (next.ok) {
|
|
773
|
+
if (s.failingSince !== null) {
|
|
774
|
+
// Was failing, now green — publish a one-shot recovery.
|
|
775
|
+
(0,_lib_notifications_bus__WEBPACK_IMPORTED_MODULE_0__/* .publish */ .mk)({
|
|
776
|
+
type: "health_alert",
|
|
777
|
+
probe: s.name,
|
|
778
|
+
label: s.label,
|
|
779
|
+
category: s.category,
|
|
780
|
+
status: "recovered",
|
|
781
|
+
error: null,
|
|
782
|
+
ts: now
|
|
783
|
+
});
|
|
657
784
|
}
|
|
785
|
+
s.failingSince = null;
|
|
786
|
+
s.lastAlertAt = 0;
|
|
787
|
+
return;
|
|
658
788
|
}
|
|
659
|
-
|
|
660
|
-
if (
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
789
|
+
// Unconfigured probes never alert — operator hasn't configured them.
|
|
790
|
+
if (next.status === "unconfigured") {
|
|
791
|
+
s.failingSince = null;
|
|
792
|
+
s.lastAlertAt = 0;
|
|
793
|
+
return;
|
|
664
794
|
}
|
|
665
|
-
//
|
|
666
|
-
//
|
|
667
|
-
//
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
795
|
+
// Failing: alert on first failure since last green, OR on re-alert
|
|
796
|
+
// interval. Don't compare equal error strings — a flapping vendor
|
|
797
|
+
// shouldn't fall through the cracks.
|
|
798
|
+
const wasFailing = s.failingSince !== null;
|
|
799
|
+
if (!wasFailing) s.failingSince = now;
|
|
800
|
+
const sinceLastAlert = now - s.lastAlertAt;
|
|
801
|
+
const shouldAlert = !wasFailing || sinceLastAlert >= RE_ALERT_MS;
|
|
802
|
+
if (shouldAlert) {
|
|
803
|
+
s.lastAlertAt = now;
|
|
804
|
+
// Tag transient/error/auth_failed verbatim so the UI can colour-code.
|
|
805
|
+
const alertStatus = next.status === "auth_failed" ? "auth_failed" : next.status === "transient" ? "transient" : "error";
|
|
806
|
+
(0,_lib_notifications_bus__WEBPACK_IMPORTED_MODULE_0__/* .publish */ .mk)({
|
|
807
|
+
type: "health_alert",
|
|
808
|
+
probe: s.name,
|
|
809
|
+
label: s.label,
|
|
810
|
+
category: s.category,
|
|
811
|
+
status: alertStatus,
|
|
812
|
+
error: next.error ?? "probe failed",
|
|
813
|
+
ts: now
|
|
673
814
|
});
|
|
674
815
|
}
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
},
|
|
702
|
-
onAfterTaskError: undefined
|
|
703
|
-
},
|
|
704
|
-
sharedContext: {
|
|
705
|
-
buildId,
|
|
706
|
-
deploymentId
|
|
707
|
-
}
|
|
708
|
-
};
|
|
709
|
-
const nodeNextReq = new next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_7__.NodeNextRequest(req);
|
|
710
|
-
const nodeNextRes = new next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_7__.NodeNextResponse(res);
|
|
711
|
-
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));
|
|
712
|
-
const responseGenerator = async ({ previousCacheEntry })=>{
|
|
713
|
-
try {
|
|
714
|
-
if (!isMinimalMode && isOnDemandRevalidate && revalidateOnlyGenerated && !previousCacheEntry) {
|
|
715
|
-
res.statusCode = 404;
|
|
716
|
-
// on-demand revalidate always sets this header
|
|
717
|
-
res.setHeader('x-nextjs-cache', 'REVALIDATED');
|
|
718
|
-
res.end('This page could not be found');
|
|
719
|
-
return null;
|
|
720
|
-
}
|
|
721
|
-
const response = cacheKey === null ? await routeModule.handle(nextReq, context) : await routeModule.prerender(nextReq, context);
|
|
722
|
-
req.fetchMetrics = context.renderOpts.fetchMetrics;
|
|
723
|
-
let pendingWaitUntil = context.renderOpts.pendingWaitUntil;
|
|
724
|
-
// Attempt using provided waitUntil if available
|
|
725
|
-
// if it's not we fallback to sendResponse's handling
|
|
726
|
-
if (pendingWaitUntil) {
|
|
727
|
-
if (ctx.waitUntil) {
|
|
728
|
-
ctx.waitUntil(pendingWaitUntil);
|
|
729
|
-
pendingWaitUntil = undefined;
|
|
730
|
-
}
|
|
731
|
-
}
|
|
732
|
-
const cacheTags = context.renderOpts.collectedTags;
|
|
733
|
-
// If the request is for a static response, we can cache it so long
|
|
734
|
-
// as it's not edge.
|
|
735
|
-
if (isIsr) {
|
|
736
|
-
const blob = await response.blob();
|
|
737
|
-
// Copy the headers from the response.
|
|
738
|
-
const headers = (0,next_dist_server_web_utils__WEBPACK_IMPORTED_MODULE_12__.toNodeOutgoingHttpHeaders)(response.headers);
|
|
739
|
-
if (cacheTags) {
|
|
740
|
-
headers[next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__.NEXT_CACHE_TAGS_HEADER] = cacheTags;
|
|
741
|
-
}
|
|
742
|
-
if (!headers['content-type'] && blob.type) {
|
|
743
|
-
headers['content-type'] = blob.type;
|
|
744
|
-
}
|
|
745
|
-
const revalidate = typeof context.renderOpts.collectedRevalidate === 'undefined' || context.renderOpts.collectedRevalidate >= next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__.INFINITE_CACHE ? false : context.renderOpts.collectedRevalidate;
|
|
746
|
-
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
|
|
747
|
-
// explicit `expire` (e.g. via `cacheLife`). This mirrors the
|
|
748
|
-
// build-time fallback in `build/index.ts` so cache entries
|
|
749
|
-
// and the response Cache-Control header agree on the route's
|
|
750
|
-
// effective expire. Routes that opt out of revalidation
|
|
751
|
-
// (`revalidate: false`) or that are dynamic (`revalidate: 0`)
|
|
752
|
-
// keep `expire: undefined`.
|
|
753
|
-
revalidate !== false && revalidate > 0 ? nextConfig.expireTime : undefined : context.renderOpts.collectedExpire;
|
|
754
|
-
// Create the cache entry for the response.
|
|
755
|
-
const cacheEntry = {
|
|
756
|
-
value: {
|
|
757
|
-
kind: next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__.CachedRouteKind.APP_ROUTE,
|
|
758
|
-
status: response.status,
|
|
759
|
-
body: Buffer.from(await blob.arrayBuffer()),
|
|
760
|
-
headers
|
|
761
|
-
},
|
|
762
|
-
cacheControl: {
|
|
763
|
-
revalidate,
|
|
764
|
-
expire
|
|
765
|
-
}
|
|
766
|
-
};
|
|
767
|
-
return cacheEntry;
|
|
768
|
-
} else {
|
|
769
|
-
// send response without caching if not ISR
|
|
770
|
-
await (0,next_dist_server_send_response__WEBPACK_IMPORTED_MODULE_11__/* .sendResponse */ .I)(nodeNextReq, nodeNextRes, response, pendingWaitUntil);
|
|
771
|
-
return null;
|
|
772
|
-
}
|
|
773
|
-
} catch (err) {
|
|
774
|
-
// if this is a background revalidate we need to report
|
|
775
|
-
// the request error here as it won't be bubbled
|
|
776
|
-
if (previousCacheEntry == null ? void 0 : previousCacheEntry.isStale) {
|
|
777
|
-
const silenceLog = false;
|
|
778
|
-
await routeModule.onRequestError(req, err, {
|
|
779
|
-
routerKind: 'App Router',
|
|
780
|
-
routePath: srcPage,
|
|
781
|
-
routeType: 'route',
|
|
782
|
-
revalidateReason: (0,next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_10__.getRevalidateReason)({
|
|
783
|
-
isStaticGeneration: cacheKey !== null,
|
|
784
|
-
isOnDemandRevalidate
|
|
785
|
-
})
|
|
786
|
-
}, silenceLog, routerServerContext);
|
|
787
|
-
}
|
|
788
|
-
throw err;
|
|
789
|
-
}
|
|
790
|
-
};
|
|
791
|
-
const handleResponse = async (currentSpan)=>{
|
|
792
|
-
try {
|
|
793
|
-
var _cacheEntry_value;
|
|
794
|
-
const cacheEntry = await routeModule.handleResponse({
|
|
795
|
-
req,
|
|
796
|
-
nextConfig,
|
|
797
|
-
cacheKey,
|
|
798
|
-
routeKind: next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__.RouteKind.APP_ROUTE,
|
|
799
|
-
isFallback: false,
|
|
800
|
-
previewProps,
|
|
801
|
-
prerenderManifest,
|
|
802
|
-
isRoutePPREnabled: false,
|
|
803
|
-
isOnDemandRevalidate,
|
|
804
|
-
revalidateOnlyGenerated,
|
|
805
|
-
responseGenerator,
|
|
806
|
-
waitUntil: ctx.waitUntil,
|
|
807
|
-
isMinimalMode
|
|
808
|
-
});
|
|
809
|
-
if (cacheEntry !== null && 'error' in cacheEntry) {
|
|
810
|
-
throw cacheEntry.error;
|
|
811
|
-
}
|
|
812
|
-
// we don't create a cacheEntry for ISR
|
|
813
|
-
if (!isIsr) {
|
|
814
|
-
return;
|
|
815
|
-
}
|
|
816
|
-
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) {
|
|
817
|
-
var _cacheEntry_value1;
|
|
818
|
-
throw new Error(`Invariant: app-route received invalid cache entry ${cacheEntry == null ? void 0 : (_cacheEntry_value1 = cacheEntry.value) == null ? void 0 : _cacheEntry_value1.kind}`);
|
|
819
|
-
}
|
|
820
|
-
if (!isMinimalMode) {
|
|
821
|
-
res.setHeader('x-nextjs-cache', isOnDemandRevalidate ? 'REVALIDATED' : cacheEntry.isMiss ? 'MISS' : cacheEntry.isStale ? 'STALE' : 'HIT');
|
|
822
|
-
}
|
|
823
|
-
// Draft mode should never be cached
|
|
824
|
-
if (isDraftMode) {
|
|
825
|
-
res.setHeader('Cache-Control', 'private, no-cache, no-store, max-age=0, must-revalidate');
|
|
826
|
-
}
|
|
827
|
-
const headers = (0,next_dist_server_web_utils__WEBPACK_IMPORTED_MODULE_12__.fromNodeOutgoingHttpHeaders)(cacheEntry.value.headers);
|
|
828
|
-
if (!(isMinimalMode && isIsr)) {
|
|
829
|
-
headers.delete(next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__.NEXT_CACHE_TAGS_HEADER);
|
|
830
|
-
}
|
|
831
|
-
// If cache control is already set on the response we don't
|
|
832
|
-
// override it to allow users to customize it via next.config
|
|
833
|
-
if (cacheEntry.cacheControl && !res.getHeader('Cache-Control') && !headers.get('Cache-Control')) {
|
|
834
|
-
headers.set('Cache-Control', (0,next_dist_server_lib_cache_control__WEBPACK_IMPORTED_MODULE_13__.getCacheControlHeader)(cacheEntry.cacheControl));
|
|
835
|
-
}
|
|
836
|
-
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'.
|
|
837
|
-
new Response(cacheEntry.value.body, {
|
|
838
|
-
headers,
|
|
839
|
-
status: cacheEntry.value.status || 200
|
|
840
|
-
}));
|
|
841
|
-
return;
|
|
842
|
-
} catch (err) {
|
|
843
|
-
if (!(err instanceof next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_15__.NoFallbackError)) {
|
|
844
|
-
const silenceLog = false;
|
|
845
|
-
await routeModule.onRequestError(req, err, {
|
|
846
|
-
routerKind: 'App Router',
|
|
847
|
-
routePath: normalizedSrcPage,
|
|
848
|
-
routeType: 'route',
|
|
849
|
-
revalidateReason: (0,next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_10__.getRevalidateReason)({
|
|
850
|
-
isStaticGeneration: cacheKey !== null,
|
|
851
|
-
isOnDemandRevalidate
|
|
852
|
-
})
|
|
853
|
-
}, silenceLog, routerServerContext);
|
|
854
|
-
}
|
|
855
|
-
// rethrow so that we can handle serving error page
|
|
856
|
-
// If this is during static generation, throw the error again.
|
|
857
|
-
if (isIsr) throw err;
|
|
858
|
-
// Otherwise, send a 500 response unless the original response has
|
|
859
|
-
// already committed. In that case, preserve its status code for
|
|
860
|
-
// telemetry while still recording the failure and terminating a response
|
|
861
|
-
// that the failed pipeline left open.
|
|
862
|
-
if (res.headersSent) {
|
|
863
|
-
if (currentSpan) {
|
|
864
|
-
const error = err instanceof Error ? err : new Error('Unknown app route error');
|
|
865
|
-
currentSpan.recordException(error);
|
|
866
|
-
currentSpan.setStatus({
|
|
867
|
-
code: next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.SpanStatusCode.ERROR,
|
|
868
|
-
message: error.message
|
|
869
|
-
});
|
|
870
|
-
currentSpan.setAttribute('error.type', error.name);
|
|
871
|
-
}
|
|
872
|
-
if (!res.writableEnded && !res.destroyed) {
|
|
873
|
-
res.end();
|
|
874
|
-
}
|
|
875
|
-
} else {
|
|
876
|
-
await (0,next_dist_server_send_response__WEBPACK_IMPORTED_MODULE_11__/* .sendResponse */ .I)(nodeNextReq, nodeNextRes, new Response(null, {
|
|
877
|
-
status: 500
|
|
878
|
-
}));
|
|
879
|
-
}
|
|
880
|
-
return;
|
|
881
|
-
} finally{
|
|
882
|
-
;
|
|
883
|
-
(()=>{
|
|
884
|
-
if (!currentSpan) {
|
|
885
|
-
return;
|
|
886
|
-
}
|
|
887
|
-
let statusCode = res.statusCode;
|
|
888
|
-
currentSpan.setAttributes({
|
|
889
|
-
'http.status_code': statusCode,
|
|
890
|
-
'next.rsc': false
|
|
891
|
-
});
|
|
892
|
-
if (statusCode && statusCode >= 500) {
|
|
893
|
-
// For 5xx status codes: SHOULD be set to 'Error' span status.
|
|
894
|
-
// x-ref: https://opentelemetry.io/docs/specs/semconv/http/http-spans/#status
|
|
895
|
-
currentSpan.setStatus({
|
|
896
|
-
code: next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.SpanStatusCode.ERROR
|
|
897
|
-
});
|
|
898
|
-
// For span status 'Error', SHOULD set 'error.type' attribute.
|
|
899
|
-
currentSpan.setAttribute('error.type', statusCode.toString());
|
|
900
|
-
}
|
|
901
|
-
const rootSpanAttributes = tracer.getRootSpanAttributes();
|
|
902
|
-
// We were unable to get attributes, probably OTEL is not enabled
|
|
903
|
-
if (!rootSpanAttributes) {
|
|
904
|
-
return;
|
|
905
|
-
}
|
|
906
|
-
if (rootSpanAttributes.get('next.span_type') !== next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_9__.BaseServerSpan.handleRequest) {
|
|
907
|
-
console.warn(`Unexpected root span type '${rootSpanAttributes.get('next.span_type')}'. Please report this Next.js issue https://github.com/vercel/next.js`);
|
|
908
|
-
return;
|
|
909
|
-
}
|
|
910
|
-
const route = rootSpanAttributes.get('next.route') || normalizedSrcPage;
|
|
911
|
-
const name = `${method} ${route}`;
|
|
912
|
-
currentSpan.setAttributes({
|
|
913
|
-
'next.route': route,
|
|
914
|
-
'http.route': route,
|
|
915
|
-
'next.span_name': name
|
|
916
|
-
});
|
|
917
|
-
currentSpan.updateName(name);
|
|
918
|
-
// Propagate http.route to the request's root span if it isn't the
|
|
919
|
-
// request span (e.g. a platform-created HTTP span in adapter
|
|
920
|
-
// deployments).
|
|
921
|
-
if (requestRootSpan && requestRootSpan !== currentSpan) {
|
|
922
|
-
requestRootSpan.setAttribute('http.route', route);
|
|
923
|
-
requestRootSpan.updateName(name);
|
|
924
|
-
}
|
|
925
|
-
})();
|
|
816
|
+
// Keep prev referenced for future diff logic without leaking unused param.
|
|
817
|
+
void prev;
|
|
818
|
+
}
|
|
819
|
+
/**
|
|
820
|
+
* Run every registered probe in parallel and reconcile state. Returns the
|
|
821
|
+
* fresh snapshot. Safe to call concurrently — re-entrant calls return the
|
|
822
|
+
* stale snapshot until the in-flight run finishes.
|
|
823
|
+
*/ async function runAllHealthProbes(now = Date.now()) {
|
|
824
|
+
if (state.inFlight) return getHealthSnapshot();
|
|
825
|
+
state.inFlight = true;
|
|
826
|
+
try {
|
|
827
|
+
const probes = (0,_probes__WEBPACK_IMPORTED_MODULE_1__/* .listProbes */ .kk)();
|
|
828
|
+
const results = await Promise.allSettled(probes.map((p)=>(0,_probes__WEBPACK_IMPORTED_MODULE_1__/* .runProbe */ .mW)(p)));
|
|
829
|
+
for(let i = 0; i < probes.length; i++){
|
|
830
|
+
const name = probes[i];
|
|
831
|
+
const s = getOrInit(name);
|
|
832
|
+
const r = results[i];
|
|
833
|
+
const next = r.status === "fulfilled" ? r.value : {
|
|
834
|
+
ok: false,
|
|
835
|
+
status: "error",
|
|
836
|
+
error: (0,_lib_utils_error__WEBPACK_IMPORTED_MODULE_3__/* .errorMessage */ .g)(r.reason)
|
|
837
|
+
};
|
|
838
|
+
const prev = s.lastResult;
|
|
839
|
+
s.lastResult = next;
|
|
840
|
+
s.lastCheckedAt = now;
|
|
841
|
+
reconcileProbe(s, prev, next, now);
|
|
926
842
|
}
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
if (!isWrappedByNextServer && req.url !== undefined) {
|
|
932
|
-
requestSpan == null ? void 0 : requestSpan.setAttribute('http.target', req.url);
|
|
843
|
+
state.lastRunAt = now;
|
|
844
|
+
return getHealthSnapshot();
|
|
845
|
+
} finally{
|
|
846
|
+
state.inFlight = false;
|
|
933
847
|
}
|
|
934
|
-
|
|
848
|
+
}
|
|
849
|
+
/** Exposed for tests so they can reset state between cases. */ function _resetHealthRunner() {
|
|
850
|
+
state.probes.clear();
|
|
851
|
+
state.lastRunAt = 0;
|
|
852
|
+
state.inFlight = false;
|
|
935
853
|
}
|
|
936
854
|
|
|
937
|
-
//# sourceMappingURL=app-route.js.map
|
|
938
855
|
|
|
856
|
+
/***/ }),
|
|
857
|
+
|
|
858
|
+
/***/ 710846:
|
|
859
|
+
/***/ ((module) => {
|
|
860
|
+
|
|
861
|
+
module.exports = require("next/dist/compiled/next-server/app-page.runtime.prod.js");
|
|
862
|
+
|
|
863
|
+
/***/ }),
|
|
864
|
+
|
|
865
|
+
/***/ 731421:
|
|
866
|
+
/***/ ((module) => {
|
|
867
|
+
|
|
868
|
+
module.exports = require("node:child_process");
|
|
869
|
+
|
|
870
|
+
/***/ }),
|
|
871
|
+
|
|
872
|
+
/***/ 744870:
|
|
873
|
+
/***/ ((module) => {
|
|
874
|
+
|
|
875
|
+
module.exports = require("next/dist/compiled/next-server/app-route.runtime.prod.js");
|
|
876
|
+
|
|
877
|
+
/***/ }),
|
|
878
|
+
|
|
879
|
+
/***/ 775919:
|
|
880
|
+
/***/ ((module) => {
|
|
881
|
+
|
|
882
|
+
module.exports = require("node:worker_threads");
|
|
883
|
+
|
|
884
|
+
/***/ }),
|
|
885
|
+
|
|
886
|
+
/***/ 777030:
|
|
887
|
+
/***/ ((module) => {
|
|
888
|
+
|
|
889
|
+
module.exports = require("node:net");
|
|
890
|
+
|
|
891
|
+
/***/ }),
|
|
892
|
+
|
|
893
|
+
/***/ 781630:
|
|
894
|
+
/***/ ((module) => {
|
|
895
|
+
|
|
896
|
+
module.exports = require("http");
|
|
897
|
+
|
|
898
|
+
/***/ }),
|
|
899
|
+
|
|
900
|
+
/***/ 840610:
|
|
901
|
+
/***/ ((module) => {
|
|
902
|
+
|
|
903
|
+
module.exports = require("node:dns");
|
|
904
|
+
|
|
905
|
+
/***/ }),
|
|
906
|
+
|
|
907
|
+
/***/ 842482:
|
|
908
|
+
/***/ ((module) => {
|
|
909
|
+
|
|
910
|
+
module.exports = import("sharp");;
|
|
911
|
+
|
|
912
|
+
/***/ }),
|
|
913
|
+
|
|
914
|
+
/***/ 848161:
|
|
915
|
+
/***/ ((module) => {
|
|
916
|
+
|
|
917
|
+
module.exports = require("node:os");
|
|
918
|
+
|
|
919
|
+
/***/ }),
|
|
920
|
+
|
|
921
|
+
/***/ 903295:
|
|
922
|
+
/***/ ((module) => {
|
|
923
|
+
|
|
924
|
+
module.exports = require("next/dist/server/app-render/after-task-async-storage.external.js");
|
|
925
|
+
|
|
926
|
+
/***/ }),
|
|
927
|
+
|
|
928
|
+
/***/ 927910:
|
|
929
|
+
/***/ ((module) => {
|
|
930
|
+
|
|
931
|
+
module.exports = require("stream");
|
|
932
|
+
|
|
933
|
+
/***/ }),
|
|
934
|
+
|
|
935
|
+
/***/ 937067:
|
|
936
|
+
/***/ ((module) => {
|
|
937
|
+
|
|
938
|
+
module.exports = require("node:http");
|
|
939
939
|
|
|
940
940
|
/***/ }),
|
|
941
941
|
|
|
@@ -1370,7 +1370,7 @@ module.exports = require("next/dist/shared/lib/no-fallback-error.external");
|
|
|
1370
1370
|
var __webpack_require__ = require("../../../../../webpack-runtime.js");
|
|
1371
1371
|
__webpack_require__.C(exports);
|
|
1372
1372
|
var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
|
|
1373
|
-
var __webpack_exports__ = __webpack_require__.X(0, [2970,7377,1813,4891,513,4992,1244,3042,3566,2068,4377,5585,9174], () => (__webpack_exec__(
|
|
1373
|
+
var __webpack_exports__ = __webpack_require__.X(0, [2970,7377,1813,4891,513,4992,1244,3042,3566,2068,4377,5585,9174], () => (__webpack_exec__(253178)));
|
|
1374
1374
|
module.exports = __webpack_exports__;
|
|
1375
1375
|
|
|
1376
1376
|
})();
|