@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
|
@@ -19,802 +19,802 @@ module.exports = require("node:async_hooks");
|
|
|
19
19
|
|
|
20
20
|
/***/ }),
|
|
21
21
|
|
|
22
|
-
/***/
|
|
23
|
-
/***/ ((
|
|
22
|
+
/***/ 51455:
|
|
23
|
+
/***/ ((module) => {
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
/* 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__);
|
|
41
|
-
/* harmony import */ var next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(434775);
|
|
42
|
-
/* 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__);
|
|
43
|
-
/* harmony import */ var next_dist_server_app_render_manifests_singleton__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(524235);
|
|
44
|
-
/* 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__);
|
|
45
|
-
/* harmony import */ var next_dist_shared_lib_router_utils_app_paths__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(200261);
|
|
46
|
-
/* 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__);
|
|
47
|
-
/* harmony import */ var next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(754365);
|
|
48
|
-
/* 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__);
|
|
49
|
-
/* harmony import */ var next_dist_server_web_spec_extension_adapters_next_request__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(590771);
|
|
50
|
-
/* 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__);
|
|
51
|
-
/* harmony import */ var next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(473461);
|
|
52
|
-
/* 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__);
|
|
53
|
-
/* harmony import */ var next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(767798);
|
|
54
|
-
/* harmony import */ var next_dist_server_send_response__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(192280);
|
|
55
|
-
/* harmony import */ var next_dist_server_web_utils__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(662018);
|
|
56
|
-
/* 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__);
|
|
57
|
-
/* harmony import */ var next_dist_server_lib_cache_control__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(445696);
|
|
58
|
-
/* harmony import */ var next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(347929);
|
|
59
|
-
/* harmony import */ var next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__);
|
|
60
|
-
/* harmony import */ var next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(986439);
|
|
61
|
-
/* 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__);
|
|
62
|
-
/* harmony import */ var next_dist_server_lib_route_cache_key__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(710246);
|
|
63
|
-
/* 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__);
|
|
64
|
-
/* harmony import */ var next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(137527);
|
|
65
|
-
/* 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__);
|
|
25
|
+
module.exports = require("node:fs/promises");
|
|
26
|
+
|
|
27
|
+
/***/ }),
|
|
28
|
+
|
|
29
|
+
/***/ 55591:
|
|
30
|
+
/***/ ((module) => {
|
|
31
|
+
|
|
32
|
+
module.exports = require("https");
|
|
33
|
+
|
|
34
|
+
/***/ }),
|
|
35
|
+
|
|
36
|
+
/***/ 79868:
|
|
37
|
+
/***/ ((module) => {
|
|
38
|
+
|
|
39
|
+
module.exports = require("node:sqlite");
|
|
66
40
|
|
|
41
|
+
/***/ }),
|
|
67
42
|
|
|
43
|
+
/***/ 108128:
|
|
44
|
+
/***/ ((module) => {
|
|
68
45
|
|
|
46
|
+
module.exports = require("next/dist/server/runtime-reacts.external.js");
|
|
69
47
|
|
|
48
|
+
/***/ }),
|
|
70
49
|
|
|
50
|
+
/***/ 157075:
|
|
51
|
+
/***/ ((module) => {
|
|
71
52
|
|
|
53
|
+
module.exports = require("node:stream");
|
|
72
54
|
|
|
55
|
+
/***/ }),
|
|
73
56
|
|
|
57
|
+
/***/ 176760:
|
|
58
|
+
/***/ ((module) => {
|
|
74
59
|
|
|
60
|
+
module.exports = require("node:path");
|
|
75
61
|
|
|
62
|
+
/***/ }),
|
|
76
63
|
|
|
64
|
+
/***/ 200261:
|
|
65
|
+
/***/ ((module) => {
|
|
77
66
|
|
|
67
|
+
module.exports = require("next/dist/shared/lib/router/utils/app-paths");
|
|
78
68
|
|
|
69
|
+
/***/ }),
|
|
79
70
|
|
|
71
|
+
/***/ 257975:
|
|
72
|
+
/***/ ((module) => {
|
|
80
73
|
|
|
74
|
+
module.exports = require("node:util");
|
|
81
75
|
|
|
76
|
+
/***/ }),
|
|
82
77
|
|
|
78
|
+
/***/ 309956:
|
|
79
|
+
/***/ ((module) => {
|
|
83
80
|
|
|
84
|
-
|
|
85
|
-
// module.
|
|
86
|
-
const nextConfigOutput = "standalone"
|
|
87
|
-
const routeModule = new next_dist_server_route_modules_app_route_module_compiled__WEBPACK_IMPORTED_MODULE_0__.AppRouteRouteModule({
|
|
88
|
-
definition: {
|
|
89
|
-
kind: next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__.RouteKind.APP_ROUTE,
|
|
90
|
-
page: "/api/v1/security/idle-timeout/route",
|
|
91
|
-
pathname: "/api/v1/security/idle-timeout",
|
|
92
|
-
filename: "route",
|
|
93
|
-
bundlePath: "app/api/v1/security/idle-timeout/route"
|
|
94
|
-
},
|
|
95
|
-
distDir: ".next" || 0,
|
|
96
|
-
relativeProjectDir: false || '',
|
|
97
|
-
resolvedPagePath: "/home/runner/work/jarela/jarela/app/api/v1/security/idle-timeout/route.ts",
|
|
98
|
-
nextConfigOutput,
|
|
99
|
-
// The lazy require factory ensures that:
|
|
100
|
-
// - In dev: devRequestTimingInternalsEnd is set before userland executes,
|
|
101
|
-
// correctly attributing module load time to application-code rather than
|
|
102
|
-
// framework internals.
|
|
103
|
-
// - In all modes: async modules (route files with top-level await) are
|
|
104
|
-
// handled correctly — require() returns a Promise for such modules, which
|
|
105
|
-
// ensureUserland() awaits before the first request is handled.
|
|
106
|
-
userland: ()=>__webpack_require__(714268),
|
|
107
|
-
// In Turbopack dev mode, also provide a synchronous per-request getter so
|
|
108
|
-
// server HMR updates are picked up without re-executing the entry chunk.
|
|
109
|
-
// Using require() (synchronous) avoids adding async overhead that would be
|
|
110
|
-
// incorrectly attributed to application-code time in devRequestTiming.
|
|
111
|
-
... false ? 0 : {}
|
|
112
|
-
});
|
|
113
|
-
// Pull out the exports that we need to expose from the module. This should
|
|
114
|
-
// be eliminated when we've moved the other routes to the new format. These
|
|
115
|
-
// are used to hook into the route.
|
|
116
|
-
const { workAsyncStorage, workUnitAsyncStorage, serverHooks } = routeModule;
|
|
117
|
-
function patchFetch() {
|
|
118
|
-
return (0,next_dist_server_lib_patch_fetch__WEBPACK_IMPORTED_MODULE_2__.patchFetch)({
|
|
119
|
-
workAsyncStorage,
|
|
120
|
-
workUnitAsyncStorage
|
|
121
|
-
});
|
|
122
|
-
}
|
|
81
|
+
module.exports = require("undici");
|
|
123
82
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
83
|
+
/***/ }),
|
|
84
|
+
|
|
85
|
+
/***/ 328354:
|
|
86
|
+
/***/ ((module) => {
|
|
87
|
+
|
|
88
|
+
module.exports = require("util");
|
|
89
|
+
|
|
90
|
+
/***/ }),
|
|
91
|
+
|
|
92
|
+
/***/ 333873:
|
|
93
|
+
/***/ ((module) => {
|
|
94
|
+
|
|
95
|
+
module.exports = require("path");
|
|
96
|
+
|
|
97
|
+
/***/ }),
|
|
98
|
+
|
|
99
|
+
/***/ 344708:
|
|
100
|
+
/***/ ((module) => {
|
|
101
|
+
|
|
102
|
+
module.exports = require("node:https");
|
|
103
|
+
|
|
104
|
+
/***/ }),
|
|
105
|
+
|
|
106
|
+
/***/ 379551:
|
|
107
|
+
/***/ ((module) => {
|
|
108
|
+
|
|
109
|
+
module.exports = require("url");
|
|
110
|
+
|
|
111
|
+
/***/ }),
|
|
112
|
+
|
|
113
|
+
/***/ 380481:
|
|
114
|
+
/***/ ((module) => {
|
|
115
|
+
|
|
116
|
+
module.exports = require("node:readline");
|
|
117
|
+
|
|
118
|
+
/***/ }),
|
|
119
|
+
|
|
120
|
+
/***/ 399253:
|
|
121
|
+
/***/ ((module) => {
|
|
122
|
+
|
|
123
|
+
module.exports = import("@huggingface/transformers");;
|
|
124
|
+
|
|
125
|
+
/***/ }),
|
|
126
|
+
|
|
127
|
+
/***/ 419121:
|
|
128
|
+
/***/ ((module) => {
|
|
129
|
+
|
|
130
|
+
module.exports = require("next/dist/server/app-render/action-async-storage.external.js");
|
|
131
|
+
|
|
132
|
+
/***/ }),
|
|
133
|
+
|
|
134
|
+
/***/ 455511:
|
|
135
|
+
/***/ ((module) => {
|
|
136
|
+
|
|
137
|
+
module.exports = require("crypto");
|
|
138
|
+
|
|
139
|
+
/***/ }),
|
|
140
|
+
|
|
141
|
+
/***/ 520971:
|
|
142
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
143
|
+
|
|
144
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
145
|
+
/* harmony export */ Gk: () => (/* binding */ getIdleTimeoutMs),
|
|
146
|
+
/* harmony export */ HI: () => (/* binding */ isScreenLocked),
|
|
147
|
+
/* harmony export */ LT: () => (/* binding */ unlockScreen),
|
|
148
|
+
/* harmony export */ yW: () => (/* binding */ setIdleTimeoutMs)
|
|
149
|
+
/* harmony export */ });
|
|
150
|
+
/* unused harmony exports recordUserActivity, lockScreen */
|
|
151
|
+
/* harmony import */ var _lib_stores_app_settings__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4400);
|
|
152
|
+
/**
|
|
153
|
+
* Screen-lock state for the running app process.
|
|
154
|
+
*
|
|
155
|
+
* Distinct from the master-key lock (lib/crypto/master-key.ts):
|
|
156
|
+
*
|
|
157
|
+
* - Master-key lock = crypto lock. Key wiped from memory; decryption
|
|
158
|
+
* throws; background work stalls until PIN unwraps the keyfile.
|
|
159
|
+
*
|
|
160
|
+
* - Screen lock = presence lock. The master key stays in memory so
|
|
161
|
+
* scheduled tasks, bridges, and streaming runs keep going. The UI
|
|
162
|
+
* is hidden behind a PIN re-prompt that just verifies the user
|
|
163
|
+
* entered the same PIN that wraps their keyfile — a "is the human
|
|
164
|
+
* still here?" check, not a re-derivation of the key.
|
|
165
|
+
*
|
|
166
|
+
* Triggered by inactivity: the proxy records every non-polling /api/v1/*
|
|
167
|
+
* request as user activity. After `idleTimeoutMs` of silence the next
|
|
168
|
+
* request flips the screen-locked flag and gets a 423.
|
|
169
|
+
*
|
|
170
|
+
* Pinned to globalThis to survive Next.js dev bundle isolation (each
|
|
171
|
+
* route handler / proxy file gets its own ESM instance — bare module-
|
|
172
|
+
* level `let`s wouldn't share state). Same pattern as master-key.ts.
|
|
173
|
+
*/
|
|
174
|
+
const DEFAULT_IDLE_TIMEOUT_MS = 60 * 60 * 1000; // 1 hour
|
|
175
|
+
const _host = globalThis;
|
|
176
|
+
const _g = _host.__jarelaScreenLock ?? (_host.__jarelaScreenLock = {
|
|
177
|
+
lastActivity: Date.now(),
|
|
178
|
+
idleTimeoutMs: DEFAULT_IDLE_TIMEOUT_MS,
|
|
179
|
+
locked: false,
|
|
180
|
+
hydrated: false
|
|
181
|
+
});
|
|
182
|
+
// Pull the user-configured timeout off disk the first time we're asked
|
|
183
|
+
// after a process start. Done lazily so importing this module doesn't
|
|
184
|
+
// force a DB open before initMasterKey() has run.
|
|
185
|
+
function hydrateOnce() {
|
|
186
|
+
if (_g.hydrated) return;
|
|
187
|
+
try {
|
|
188
|
+
const persisted = (0,_lib_stores_app_settings__WEBPACK_IMPORTED_MODULE_0__/* .getScreenLockIdleTimeoutMs */ .J2)();
|
|
189
|
+
if (persisted !== null) _g.idleTimeoutMs = persisted;
|
|
190
|
+
_g.hydrated = true;
|
|
191
|
+
} catch (err) {
|
|
192
|
+
// DB not ready yet (first request before initMasterKey ran). Leave
|
|
193
|
+
// the default and try again on the next call — don't flip hydrated.
|
|
194
|
+
console.warn("[screen-lock] could not hydrate idle timeout:", err);
|
|
130
195
|
}
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* Record a user-initiated HTTP request. Resets the idle timer and (if
|
|
199
|
+
* the screen was locked passively) does NOT unlock it — only an explicit
|
|
200
|
+
* verify-pin call may clear the lock.
|
|
201
|
+
*/ function recordUserActivity() {
|
|
202
|
+
if (!_g.locked) {
|
|
203
|
+
_g.lastActivity = Date.now();
|
|
138
204
|
}
|
|
139
|
-
const multiZoneDraftMode = false;
|
|
140
|
-
// Registering `instrumentation.ts` usually installs the tracer provider, so
|
|
141
|
-
// do it before starting the request span. The span is started before
|
|
142
|
-
// `prepare`, so route module preparation is part of the request's trace.
|
|
143
|
-
// When this request triggers registration, the lifecycle spans of
|
|
144
|
-
// `instrumentation.ts` are emitted inside the request span.
|
|
145
|
-
const { instrumentation } = await routeModule.ensureInstrumentation(req, {
|
|
146
|
-
deferSpans: true
|
|
147
|
-
});
|
|
148
|
-
return routeModule.traceRequest(req, {
|
|
149
|
-
tracer: (0,next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.getTracer)(),
|
|
150
|
-
spanName: `${req.method || 'GET'} ${srcPage}`,
|
|
151
|
-
httpTarget: req.url,
|
|
152
|
-
instrumentation
|
|
153
|
-
}, (requestSpan, requestRootSpan)=>handleRequest(req, res, ctx, srcPage, multiZoneDraftMode, requestSpan, requestRootSpan));
|
|
154
205
|
}
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
206
|
+
/**
|
|
207
|
+
* Returns true if the screen should be considered locked right now.
|
|
208
|
+
* Lazily flips the flag when the idle timeout has elapsed so we don't
|
|
209
|
+
* need a background timer.
|
|
210
|
+
*/ function isScreenLocked() {
|
|
211
|
+
hydrateOnce();
|
|
212
|
+
if (_g.locked) return true;
|
|
213
|
+
if (_g.idleTimeoutMs <= 0) return false; // disabled
|
|
214
|
+
if (Date.now() - _g.lastActivity > _g.idleTimeoutMs) {
|
|
215
|
+
_g.locked = true;
|
|
216
|
+
return true;
|
|
165
217
|
}
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
if (
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
}
|
|
189
|
-
}
|
|
218
|
+
return false;
|
|
219
|
+
}
|
|
220
|
+
/** Unlock — called after a successful verify-pin. */ function unlockScreen() {
|
|
221
|
+
_g.locked = false;
|
|
222
|
+
_g.lastActivity = Date.now();
|
|
223
|
+
}
|
|
224
|
+
/** Force-lock immediately. Used by manual "lock now" actions. */ function lockScreen() {
|
|
225
|
+
_g.locked = true;
|
|
226
|
+
}
|
|
227
|
+
function getIdleTimeoutMs() {
|
|
228
|
+
hydrateOnce();
|
|
229
|
+
return _g.idleTimeoutMs;
|
|
230
|
+
}
|
|
231
|
+
/** 0 disables the auto-lock entirely. */ function setIdleTimeoutMs(ms) {
|
|
232
|
+
if (!Number.isFinite(ms) || ms < 0) throw new Error("invalid timeout");
|
|
233
|
+
_g.idleTimeoutMs = Math.floor(ms);
|
|
234
|
+
_g.lastActivity = Date.now();
|
|
235
|
+
_g.hydrated = true; // we just set it; skip the load-from-disk path
|
|
236
|
+
try {
|
|
237
|
+
(0,_lib_stores_app_settings__WEBPACK_IMPORTED_MODULE_0__/* .setScreenLockIdleTimeoutMs */ .Z0)(_g.idleTimeoutMs);
|
|
238
|
+
} catch (err) {
|
|
239
|
+
console.warn("[screen-lock] could not persist idle timeout:", err);
|
|
190
240
|
}
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
/***/ }),
|
|
245
|
+
|
|
246
|
+
/***/ 529294:
|
|
247
|
+
/***/ ((module) => {
|
|
248
|
+
|
|
249
|
+
module.exports = require("next/dist/server/app-render/work-async-storage.external.js");
|
|
250
|
+
|
|
251
|
+
/***/ }),
|
|
252
|
+
|
|
253
|
+
/***/ 594735:
|
|
254
|
+
/***/ ((module) => {
|
|
255
|
+
|
|
256
|
+
module.exports = require("events");
|
|
257
|
+
|
|
258
|
+
/***/ }),
|
|
259
|
+
|
|
260
|
+
/***/ 629021:
|
|
261
|
+
/***/ ((module) => {
|
|
262
|
+
|
|
263
|
+
module.exports = require("fs");
|
|
264
|
+
|
|
265
|
+
/***/ }),
|
|
266
|
+
|
|
267
|
+
/***/ 638522:
|
|
268
|
+
/***/ ((module) => {
|
|
269
|
+
|
|
270
|
+
module.exports = require("node:zlib");
|
|
271
|
+
|
|
272
|
+
/***/ }),
|
|
273
|
+
|
|
274
|
+
/***/ 663033:
|
|
275
|
+
/***/ ((module) => {
|
|
276
|
+
|
|
277
|
+
module.exports = require("next/dist/server/app-render/work-unit-async-storage.external.js");
|
|
278
|
+
|
|
279
|
+
/***/ }),
|
|
280
|
+
|
|
281
|
+
/***/ 710846:
|
|
282
|
+
/***/ ((module) => {
|
|
283
|
+
|
|
284
|
+
module.exports = require("next/dist/compiled/next-server/app-page.runtime.prod.js");
|
|
285
|
+
|
|
286
|
+
/***/ }),
|
|
287
|
+
|
|
288
|
+
/***/ 714268:
|
|
289
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
290
|
+
|
|
291
|
+
__webpack_require__.r(__webpack_exports__);
|
|
292
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
293
|
+
/* harmony export */ GET: () => (/* binding */ GET),
|
|
294
|
+
/* harmony export */ PATCH: () => (/* binding */ PATCH)
|
|
295
|
+
/* harmony export */ });
|
|
296
|
+
/* harmony import */ var next_server__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(945592);
|
|
297
|
+
/* harmony import */ var zod__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(497377);
|
|
298
|
+
/* harmony import */ var _lib_db__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(251244);
|
|
299
|
+
/* harmony import */ var _lib_security_screen_lock__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(520971);
|
|
300
|
+
/**
|
|
301
|
+
* @public — `GET/PATCH /api/v1/security/idle-timeout`
|
|
302
|
+
*
|
|
303
|
+
* Reads or updates the screen-lock idle timeout. The value persists
|
|
304
|
+
* across restarts (stored in app-settings). 0 disables the auto-lock.
|
|
305
|
+
*
|
|
306
|
+
* GET returns: `{ idle_timeout_ms: number }`
|
|
307
|
+
* PATCH body: `{ idle_timeout_ms: number }` (0 to 24h)
|
|
308
|
+
* PATCH returns: `{ idle_timeout_ms: number }`
|
|
309
|
+
*/
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
const ONE_DAY_MS = 24 * 60 * 60 * 1000;
|
|
314
|
+
const PatchBody = zod__WEBPACK_IMPORTED_MODULE_3__/* .object */ .Ikc({
|
|
315
|
+
idle_timeout_ms: zod__WEBPACK_IMPORTED_MODULE_3__/* .number */ .aig().int().min(0).max(ONE_DAY_MS)
|
|
316
|
+
});
|
|
317
|
+
// Reachable from any whitelisted caller so the settings UI can render
|
|
318
|
+
// + adjust the timeout from any device. The proxy's tailscale-identity
|
|
319
|
+
// gate is the security boundary.
|
|
320
|
+
function GET(_req) {
|
|
321
|
+
(0,_lib_db__WEBPACK_IMPORTED_MODULE_1__/* .getDb */ .Lf)();
|
|
322
|
+
return next_server__WEBPACK_IMPORTED_MODULE_0__.NextResponse.json({
|
|
323
|
+
idle_timeout_ms: (0,_lib_security_screen_lock__WEBPACK_IMPORTED_MODULE_2__/* .getIdleTimeoutMs */ .Gk)()
|
|
324
|
+
});
|
|
325
|
+
}
|
|
326
|
+
async function PATCH(req) {
|
|
327
|
+
(0,_lib_db__WEBPACK_IMPORTED_MODULE_1__/* .getDb */ .Lf)();
|
|
328
|
+
let body;
|
|
329
|
+
try {
|
|
330
|
+
body = await req.json();
|
|
331
|
+
} catch {
|
|
332
|
+
return next_server__WEBPACK_IMPORTED_MODULE_0__.NextResponse.json({
|
|
333
|
+
error: "bad-json"
|
|
334
|
+
}, {
|
|
335
|
+
status: 400
|
|
336
|
+
});
|
|
196
337
|
}
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
clientReferenceManifest,
|
|
204
|
-
serverActionsManifest
|
|
338
|
+
const parsed = PatchBody.safeParse(body);
|
|
339
|
+
if (!parsed.success) {
|
|
340
|
+
return next_server__WEBPACK_IMPORTED_MODULE_0__.NextResponse.json({
|
|
341
|
+
error: "bad-timeout"
|
|
342
|
+
}, {
|
|
343
|
+
status: 400
|
|
205
344
|
});
|
|
206
345
|
}
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
const incrementalCache = (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.getRequestMeta)(req, 'incrementalCache') || await routeModule.getIncrementalCache(req, nextConfig, previewProps, prerenderManifest, isMinimalMode);
|
|
212
|
-
incrementalCache == null ? void 0 : incrementalCache.resetRequestCache();
|
|
213
|
-
globalThis.__incrementalCache = incrementalCache;
|
|
214
|
-
const context = {
|
|
215
|
-
params,
|
|
216
|
-
previewProps,
|
|
217
|
-
renderOpts: {
|
|
218
|
-
experimental: {
|
|
219
|
-
authInterrupts: Boolean(nextConfig.experimental.authInterrupts),
|
|
220
|
-
useCacheTimeout: nextConfig.experimental.useCacheTimeout,
|
|
221
|
-
durableUseCacheEntries: Boolean(nextConfig.experimental.durableUseCacheEntries)
|
|
222
|
-
},
|
|
223
|
-
cacheComponents: Boolean(nextConfig.cacheComponents),
|
|
224
|
-
validationLevel: nextConfig.experimental.instantInsights.validationLevel,
|
|
225
|
-
isDraftMode,
|
|
226
|
-
incrementalCache,
|
|
227
|
-
hmrRefreshHash: (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.getRequestMeta)(req, 'hmrRefreshHash'),
|
|
228
|
-
cacheLifeProfiles: nextConfig.cacheLife,
|
|
229
|
-
staticPageGenerationTimeout: nextConfig.staticPageGenerationTimeout,
|
|
230
|
-
waitUntil: ctx.waitUntil,
|
|
231
|
-
onClose: (cb)=>{
|
|
232
|
-
res.on('close', cb);
|
|
233
|
-
},
|
|
234
|
-
onAfterTaskError: undefined
|
|
235
|
-
},
|
|
236
|
-
sharedContext: {
|
|
237
|
-
buildId,
|
|
238
|
-
deploymentId
|
|
239
|
-
}
|
|
240
|
-
};
|
|
241
|
-
const nodeNextReq = new next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_7__.NodeNextRequest(req);
|
|
242
|
-
const nodeNextRes = new next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_7__.NodeNextResponse(res);
|
|
243
|
-
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));
|
|
244
|
-
const responseGenerator = async ({ previousCacheEntry })=>{
|
|
245
|
-
try {
|
|
246
|
-
if (!isMinimalMode && isOnDemandRevalidate && revalidateOnlyGenerated && !previousCacheEntry) {
|
|
247
|
-
res.statusCode = 404;
|
|
248
|
-
// on-demand revalidate always sets this header
|
|
249
|
-
res.setHeader('x-nextjs-cache', 'REVALIDATED');
|
|
250
|
-
res.end('This page could not be found');
|
|
251
|
-
return null;
|
|
252
|
-
}
|
|
253
|
-
const response = cacheKey === null ? await routeModule.handle(nextReq, context) : await routeModule.prerender(nextReq, context);
|
|
254
|
-
req.fetchMetrics = context.renderOpts.fetchMetrics;
|
|
255
|
-
let pendingWaitUntil = context.renderOpts.pendingWaitUntil;
|
|
256
|
-
// Attempt using provided waitUntil if available
|
|
257
|
-
// if it's not we fallback to sendResponse's handling
|
|
258
|
-
if (pendingWaitUntil) {
|
|
259
|
-
if (ctx.waitUntil) {
|
|
260
|
-
ctx.waitUntil(pendingWaitUntil);
|
|
261
|
-
pendingWaitUntil = undefined;
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
const cacheTags = context.renderOpts.collectedTags;
|
|
265
|
-
// If the request is for a static response, we can cache it so long
|
|
266
|
-
// as it's not edge.
|
|
267
|
-
if (isIsr) {
|
|
268
|
-
const blob = await response.blob();
|
|
269
|
-
// Copy the headers from the response.
|
|
270
|
-
const headers = (0,next_dist_server_web_utils__WEBPACK_IMPORTED_MODULE_12__.toNodeOutgoingHttpHeaders)(response.headers);
|
|
271
|
-
if (cacheTags) {
|
|
272
|
-
headers[next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__.NEXT_CACHE_TAGS_HEADER] = cacheTags;
|
|
273
|
-
}
|
|
274
|
-
if (!headers['content-type'] && blob.type) {
|
|
275
|
-
headers['content-type'] = blob.type;
|
|
276
|
-
}
|
|
277
|
-
const revalidate = typeof context.renderOpts.collectedRevalidate === 'undefined' || context.renderOpts.collectedRevalidate >= next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__.INFINITE_CACHE ? false : context.renderOpts.collectedRevalidate;
|
|
278
|
-
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
|
|
279
|
-
// explicit `expire` (e.g. via `cacheLife`). This mirrors the
|
|
280
|
-
// build-time fallback in `build/index.ts` so cache entries
|
|
281
|
-
// and the response Cache-Control header agree on the route's
|
|
282
|
-
// effective expire. Routes that opt out of revalidation
|
|
283
|
-
// (`revalidate: false`) or that are dynamic (`revalidate: 0`)
|
|
284
|
-
// keep `expire: undefined`.
|
|
285
|
-
revalidate !== false && revalidate > 0 ? nextConfig.expireTime : undefined : context.renderOpts.collectedExpire;
|
|
286
|
-
// Create the cache entry for the response.
|
|
287
|
-
const cacheEntry = {
|
|
288
|
-
value: {
|
|
289
|
-
kind: next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__.CachedRouteKind.APP_ROUTE,
|
|
290
|
-
status: response.status,
|
|
291
|
-
body: Buffer.from(await blob.arrayBuffer()),
|
|
292
|
-
headers
|
|
293
|
-
},
|
|
294
|
-
cacheControl: {
|
|
295
|
-
revalidate,
|
|
296
|
-
expire
|
|
297
|
-
}
|
|
298
|
-
};
|
|
299
|
-
return cacheEntry;
|
|
300
|
-
} else {
|
|
301
|
-
// send response without caching if not ISR
|
|
302
|
-
await (0,next_dist_server_send_response__WEBPACK_IMPORTED_MODULE_11__/* .sendResponse */ .I)(nodeNextReq, nodeNextRes, response, pendingWaitUntil);
|
|
303
|
-
return null;
|
|
304
|
-
}
|
|
305
|
-
} catch (err) {
|
|
306
|
-
// if this is a background revalidate we need to report
|
|
307
|
-
// the request error here as it won't be bubbled
|
|
308
|
-
if (previousCacheEntry == null ? void 0 : previousCacheEntry.isStale) {
|
|
309
|
-
const silenceLog = false;
|
|
310
|
-
await routeModule.onRequestError(req, err, {
|
|
311
|
-
routerKind: 'App Router',
|
|
312
|
-
routePath: srcPage,
|
|
313
|
-
routeType: 'route',
|
|
314
|
-
revalidateReason: (0,next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_10__.getRevalidateReason)({
|
|
315
|
-
isStaticGeneration: cacheKey !== null,
|
|
316
|
-
isOnDemandRevalidate
|
|
317
|
-
})
|
|
318
|
-
}, silenceLog, routerServerContext);
|
|
319
|
-
}
|
|
320
|
-
throw err;
|
|
321
|
-
}
|
|
322
|
-
};
|
|
323
|
-
const handleResponse = async (currentSpan)=>{
|
|
324
|
-
try {
|
|
325
|
-
var _cacheEntry_value;
|
|
326
|
-
const cacheEntry = await routeModule.handleResponse({
|
|
327
|
-
req,
|
|
328
|
-
nextConfig,
|
|
329
|
-
cacheKey,
|
|
330
|
-
routeKind: next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__.RouteKind.APP_ROUTE,
|
|
331
|
-
isFallback: false,
|
|
332
|
-
previewProps,
|
|
333
|
-
prerenderManifest,
|
|
334
|
-
isRoutePPREnabled: false,
|
|
335
|
-
isOnDemandRevalidate,
|
|
336
|
-
revalidateOnlyGenerated,
|
|
337
|
-
responseGenerator,
|
|
338
|
-
waitUntil: ctx.waitUntil,
|
|
339
|
-
isMinimalMode
|
|
340
|
-
});
|
|
341
|
-
if (cacheEntry !== null && 'error' in cacheEntry) {
|
|
342
|
-
throw cacheEntry.error;
|
|
343
|
-
}
|
|
344
|
-
// we don't create a cacheEntry for ISR
|
|
345
|
-
if (!isIsr) {
|
|
346
|
-
return;
|
|
347
|
-
}
|
|
348
|
-
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) {
|
|
349
|
-
var _cacheEntry_value1;
|
|
350
|
-
throw new Error(`Invariant: app-route received invalid cache entry ${cacheEntry == null ? void 0 : (_cacheEntry_value1 = cacheEntry.value) == null ? void 0 : _cacheEntry_value1.kind}`);
|
|
351
|
-
}
|
|
352
|
-
if (!isMinimalMode) {
|
|
353
|
-
res.setHeader('x-nextjs-cache', isOnDemandRevalidate ? 'REVALIDATED' : cacheEntry.isMiss ? 'MISS' : cacheEntry.isStale ? 'STALE' : 'HIT');
|
|
354
|
-
}
|
|
355
|
-
// Draft mode should never be cached
|
|
356
|
-
if (isDraftMode) {
|
|
357
|
-
res.setHeader('Cache-Control', 'private, no-cache, no-store, max-age=0, must-revalidate');
|
|
358
|
-
}
|
|
359
|
-
const headers = (0,next_dist_server_web_utils__WEBPACK_IMPORTED_MODULE_12__.fromNodeOutgoingHttpHeaders)(cacheEntry.value.headers);
|
|
360
|
-
if (!(isMinimalMode && isIsr)) {
|
|
361
|
-
headers.delete(next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__.NEXT_CACHE_TAGS_HEADER);
|
|
362
|
-
}
|
|
363
|
-
// If cache control is already set on the response we don't
|
|
364
|
-
// override it to allow users to customize it via next.config
|
|
365
|
-
if (cacheEntry.cacheControl && !res.getHeader('Cache-Control') && !headers.get('Cache-Control')) {
|
|
366
|
-
headers.set('Cache-Control', (0,next_dist_server_lib_cache_control__WEBPACK_IMPORTED_MODULE_13__.getCacheControlHeader)(cacheEntry.cacheControl));
|
|
367
|
-
}
|
|
368
|
-
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'.
|
|
369
|
-
new Response(cacheEntry.value.body, {
|
|
370
|
-
headers,
|
|
371
|
-
status: cacheEntry.value.status || 200
|
|
372
|
-
}));
|
|
373
|
-
return;
|
|
374
|
-
} catch (err) {
|
|
375
|
-
if (!(err instanceof next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_15__.NoFallbackError)) {
|
|
376
|
-
const silenceLog = false;
|
|
377
|
-
await routeModule.onRequestError(req, err, {
|
|
378
|
-
routerKind: 'App Router',
|
|
379
|
-
routePath: normalizedSrcPage,
|
|
380
|
-
routeType: 'route',
|
|
381
|
-
revalidateReason: (0,next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_10__.getRevalidateReason)({
|
|
382
|
-
isStaticGeneration: cacheKey !== null,
|
|
383
|
-
isOnDemandRevalidate
|
|
384
|
-
})
|
|
385
|
-
}, silenceLog, routerServerContext);
|
|
386
|
-
}
|
|
387
|
-
// rethrow so that we can handle serving error page
|
|
388
|
-
// If this is during static generation, throw the error again.
|
|
389
|
-
if (isIsr) throw err;
|
|
390
|
-
// Otherwise, send a 500 response unless the original response has
|
|
391
|
-
// already committed. In that case, preserve its status code for
|
|
392
|
-
// telemetry while still recording the failure and terminating a response
|
|
393
|
-
// that the failed pipeline left open.
|
|
394
|
-
if (res.headersSent) {
|
|
395
|
-
if (currentSpan) {
|
|
396
|
-
const error = err instanceof Error ? err : new Error('Unknown app route error');
|
|
397
|
-
currentSpan.recordException(error);
|
|
398
|
-
currentSpan.setStatus({
|
|
399
|
-
code: next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.SpanStatusCode.ERROR,
|
|
400
|
-
message: error.message
|
|
401
|
-
});
|
|
402
|
-
currentSpan.setAttribute('error.type', error.name);
|
|
403
|
-
}
|
|
404
|
-
if (!res.writableEnded && !res.destroyed) {
|
|
405
|
-
res.end();
|
|
406
|
-
}
|
|
407
|
-
} else {
|
|
408
|
-
await (0,next_dist_server_send_response__WEBPACK_IMPORTED_MODULE_11__/* .sendResponse */ .I)(nodeNextReq, nodeNextRes, new Response(null, {
|
|
409
|
-
status: 500
|
|
410
|
-
}));
|
|
411
|
-
}
|
|
412
|
-
return;
|
|
413
|
-
} finally{
|
|
414
|
-
;
|
|
415
|
-
(()=>{
|
|
416
|
-
if (!currentSpan) {
|
|
417
|
-
return;
|
|
418
|
-
}
|
|
419
|
-
let statusCode = res.statusCode;
|
|
420
|
-
currentSpan.setAttributes({
|
|
421
|
-
'http.status_code': statusCode,
|
|
422
|
-
'next.rsc': false
|
|
423
|
-
});
|
|
424
|
-
if (statusCode && statusCode >= 500) {
|
|
425
|
-
// For 5xx status codes: SHOULD be set to 'Error' span status.
|
|
426
|
-
// x-ref: https://opentelemetry.io/docs/specs/semconv/http/http-spans/#status
|
|
427
|
-
currentSpan.setStatus({
|
|
428
|
-
code: next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.SpanStatusCode.ERROR
|
|
429
|
-
});
|
|
430
|
-
// For span status 'Error', SHOULD set 'error.type' attribute.
|
|
431
|
-
currentSpan.setAttribute('error.type', statusCode.toString());
|
|
432
|
-
}
|
|
433
|
-
const rootSpanAttributes = tracer.getRootSpanAttributes();
|
|
434
|
-
// We were unable to get attributes, probably OTEL is not enabled
|
|
435
|
-
if (!rootSpanAttributes) {
|
|
436
|
-
return;
|
|
437
|
-
}
|
|
438
|
-
if (rootSpanAttributes.get('next.span_type') !== next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_9__.BaseServerSpan.handleRequest) {
|
|
439
|
-
console.warn(`Unexpected root span type '${rootSpanAttributes.get('next.span_type')}'. Please report this Next.js issue https://github.com/vercel/next.js`);
|
|
440
|
-
return;
|
|
441
|
-
}
|
|
442
|
-
const route = rootSpanAttributes.get('next.route') || normalizedSrcPage;
|
|
443
|
-
const name = `${method} ${route}`;
|
|
444
|
-
currentSpan.setAttributes({
|
|
445
|
-
'next.route': route,
|
|
446
|
-
'http.route': route,
|
|
447
|
-
'next.span_name': name
|
|
448
|
-
});
|
|
449
|
-
currentSpan.updateName(name);
|
|
450
|
-
// Propagate http.route to the request's root span if it isn't the
|
|
451
|
-
// request span (e.g. a platform-created HTTP span in adapter
|
|
452
|
-
// deployments).
|
|
453
|
-
if (requestRootSpan && requestRootSpan !== currentSpan) {
|
|
454
|
-
requestRootSpan.setAttribute('http.route', route);
|
|
455
|
-
requestRootSpan.updateName(name);
|
|
456
|
-
}
|
|
457
|
-
})();
|
|
458
|
-
}
|
|
459
|
-
};
|
|
460
|
-
// When invoked directly, the request span was started before `prepare`;
|
|
461
|
-
// record the request target as normalized by it. next-server's request span
|
|
462
|
-
// already has it.
|
|
463
|
-
if (!isWrappedByNextServer && req.url !== undefined) {
|
|
464
|
-
requestSpan == null ? void 0 : requestSpan.setAttribute('http.target', req.url);
|
|
465
|
-
}
|
|
466
|
-
await handleResponse(requestSpan);
|
|
346
|
+
(0,_lib_security_screen_lock__WEBPACK_IMPORTED_MODULE_2__/* .setIdleTimeoutMs */ .yW)(parsed.data.idle_timeout_ms);
|
|
347
|
+
return next_server__WEBPACK_IMPORTED_MODULE_0__.NextResponse.json({
|
|
348
|
+
idle_timeout_ms: (0,_lib_security_screen_lock__WEBPACK_IMPORTED_MODULE_2__/* .getIdleTimeoutMs */ .Gk)()
|
|
349
|
+
});
|
|
467
350
|
}
|
|
468
351
|
|
|
469
|
-
//# sourceMappingURL=app-route.js.map
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
/***/ }),
|
|
473
|
-
|
|
474
|
-
/***/ 51455:
|
|
475
|
-
/***/ ((module) => {
|
|
476
|
-
|
|
477
|
-
module.exports = require("node:fs/promises");
|
|
478
|
-
|
|
479
|
-
/***/ }),
|
|
480
|
-
|
|
481
|
-
/***/ 55591:
|
|
482
|
-
/***/ ((module) => {
|
|
483
|
-
|
|
484
|
-
module.exports = require("https");
|
|
485
|
-
|
|
486
|
-
/***/ }),
|
|
487
|
-
|
|
488
|
-
/***/ 79868:
|
|
489
|
-
/***/ ((module) => {
|
|
490
|
-
|
|
491
|
-
module.exports = require("node:sqlite");
|
|
492
|
-
|
|
493
|
-
/***/ }),
|
|
494
|
-
|
|
495
|
-
/***/ 108128:
|
|
496
|
-
/***/ ((module) => {
|
|
497
|
-
|
|
498
|
-
module.exports = require("next/dist/server/runtime-reacts.external.js");
|
|
499
|
-
|
|
500
|
-
/***/ }),
|
|
501
|
-
|
|
502
|
-
/***/ 157075:
|
|
503
|
-
/***/ ((module) => {
|
|
504
|
-
|
|
505
|
-
module.exports = require("node:stream");
|
|
506
352
|
|
|
507
353
|
/***/ }),
|
|
508
354
|
|
|
509
|
-
/***/
|
|
355
|
+
/***/ 731421:
|
|
510
356
|
/***/ ((module) => {
|
|
511
357
|
|
|
512
|
-
module.exports = require("node:
|
|
358
|
+
module.exports = require("node:child_process");
|
|
513
359
|
|
|
514
360
|
/***/ }),
|
|
515
361
|
|
|
516
|
-
/***/
|
|
362
|
+
/***/ 744870:
|
|
517
363
|
/***/ ((module) => {
|
|
518
364
|
|
|
519
|
-
module.exports = require("next/dist/
|
|
365
|
+
module.exports = require("next/dist/compiled/next-server/app-route.runtime.prod.js");
|
|
520
366
|
|
|
521
367
|
/***/ }),
|
|
522
368
|
|
|
523
|
-
/***/
|
|
524
|
-
/***/ ((
|
|
525
|
-
|
|
526
|
-
module.exports = require("node:util");
|
|
527
|
-
|
|
528
|
-
/***/ }),
|
|
369
|
+
/***/ 752652:
|
|
370
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
529
371
|
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
372
|
+
__webpack_require__.r(__webpack_exports__);
|
|
373
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
374
|
+
/* harmony export */ handler: () => (/* binding */ handler),
|
|
375
|
+
/* harmony export */ patchFetch: () => (/* binding */ patchFetch),
|
|
376
|
+
/* harmony export */ routeModule: () => (/* binding */ routeModule),
|
|
377
|
+
/* harmony export */ serverHooks: () => (/* binding */ serverHooks),
|
|
378
|
+
/* harmony export */ workAsyncStorage: () => (/* binding */ workAsyncStorage),
|
|
379
|
+
/* harmony export */ workUnitAsyncStorage: () => (/* binding */ workUnitAsyncStorage)
|
|
380
|
+
/* harmony export */ });
|
|
381
|
+
/* harmony import */ var next_dist_server_route_modules_app_route_module_compiled__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(319225);
|
|
382
|
+
/* 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__);
|
|
383
|
+
/* harmony import */ var next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(684006);
|
|
384
|
+
/* harmony import */ var next_dist_server_lib_patch_fetch__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8317);
|
|
385
|
+
/* 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__);
|
|
386
|
+
/* harmony import */ var next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(799373);
|
|
387
|
+
/* 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__);
|
|
388
|
+
/* harmony import */ var next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(434775);
|
|
389
|
+
/* 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__);
|
|
390
|
+
/* harmony import */ var next_dist_server_app_render_manifests_singleton__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(524235);
|
|
391
|
+
/* 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__);
|
|
392
|
+
/* harmony import */ var next_dist_shared_lib_router_utils_app_paths__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(200261);
|
|
393
|
+
/* 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__);
|
|
394
|
+
/* harmony import */ var next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(754365);
|
|
395
|
+
/* 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__);
|
|
396
|
+
/* harmony import */ var next_dist_server_web_spec_extension_adapters_next_request__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(590771);
|
|
397
|
+
/* 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__);
|
|
398
|
+
/* harmony import */ var next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(473461);
|
|
399
|
+
/* 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__);
|
|
400
|
+
/* harmony import */ var next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(767798);
|
|
401
|
+
/* harmony import */ var next_dist_server_send_response__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(192280);
|
|
402
|
+
/* harmony import */ var next_dist_server_web_utils__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(662018);
|
|
403
|
+
/* 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__);
|
|
404
|
+
/* harmony import */ var next_dist_server_lib_cache_control__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(445696);
|
|
405
|
+
/* harmony import */ var next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(347929);
|
|
406
|
+
/* harmony import */ var next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__);
|
|
407
|
+
/* harmony import */ var next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(986439);
|
|
408
|
+
/* 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__);
|
|
409
|
+
/* harmony import */ var next_dist_server_lib_route_cache_key__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(710246);
|
|
410
|
+
/* 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__);
|
|
411
|
+
/* harmony import */ var next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(137527);
|
|
412
|
+
/* 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__);
|
|
555
413
|
|
|
556
|
-
/***/ }),
|
|
557
414
|
|
|
558
|
-
/***/ 379551:
|
|
559
|
-
/***/ ((module) => {
|
|
560
415
|
|
|
561
|
-
module.exports = require("url");
|
|
562
416
|
|
|
563
|
-
/***/ }),
|
|
564
417
|
|
|
565
|
-
/***/ 380481:
|
|
566
|
-
/***/ ((module) => {
|
|
567
418
|
|
|
568
|
-
module.exports = require("node:readline");
|
|
569
419
|
|
|
570
|
-
/***/ }),
|
|
571
420
|
|
|
572
|
-
/***/ 399253:
|
|
573
|
-
/***/ ((module) => {
|
|
574
421
|
|
|
575
|
-
module.exports = import("@huggingface/transformers");;
|
|
576
422
|
|
|
577
|
-
/***/ }),
|
|
578
423
|
|
|
579
|
-
/***/ 419121:
|
|
580
|
-
/***/ ((module) => {
|
|
581
424
|
|
|
582
|
-
module.exports = require("next/dist/server/app-render/action-async-storage.external.js");
|
|
583
425
|
|
|
584
|
-
/***/ }),
|
|
585
426
|
|
|
586
|
-
/***/ 455511:
|
|
587
|
-
/***/ ((module) => {
|
|
588
427
|
|
|
589
|
-
module.exports = require("crypto");
|
|
590
428
|
|
|
591
|
-
/***/ }),
|
|
592
429
|
|
|
593
|
-
/***/ 520971:
|
|
594
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
595
430
|
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
* level `let`s wouldn't share state). Same pattern as master-key.ts.
|
|
625
|
-
*/
|
|
626
|
-
const DEFAULT_IDLE_TIMEOUT_MS = 60 * 60 * 1000; // 1 hour
|
|
627
|
-
const _host = globalThis;
|
|
628
|
-
const _g = _host.__jarelaScreenLock ?? (_host.__jarelaScreenLock = {
|
|
629
|
-
lastActivity: Date.now(),
|
|
630
|
-
idleTimeoutMs: DEFAULT_IDLE_TIMEOUT_MS,
|
|
631
|
-
locked: false,
|
|
632
|
-
hydrated: false
|
|
431
|
+
// We inject the nextConfigOutput here so that we can use them in the route
|
|
432
|
+
// module.
|
|
433
|
+
const nextConfigOutput = "standalone"
|
|
434
|
+
const routeModule = new next_dist_server_route_modules_app_route_module_compiled__WEBPACK_IMPORTED_MODULE_0__.AppRouteRouteModule({
|
|
435
|
+
definition: {
|
|
436
|
+
kind: next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__.RouteKind.APP_ROUTE,
|
|
437
|
+
page: "/api/v1/security/idle-timeout/route",
|
|
438
|
+
pathname: "/api/v1/security/idle-timeout",
|
|
439
|
+
filename: "route",
|
|
440
|
+
bundlePath: "app/api/v1/security/idle-timeout/route"
|
|
441
|
+
},
|
|
442
|
+
distDir: ".next" || 0,
|
|
443
|
+
relativeProjectDir: false || '',
|
|
444
|
+
resolvedPagePath: "/home/runner/work/jarela/jarela/app/api/v1/security/idle-timeout/route.ts",
|
|
445
|
+
nextConfigOutput,
|
|
446
|
+
// The lazy require factory ensures that:
|
|
447
|
+
// - In dev: devRequestTimingInternalsEnd is set before userland executes,
|
|
448
|
+
// correctly attributing module load time to application-code rather than
|
|
449
|
+
// framework internals.
|
|
450
|
+
// - In all modes: async modules (route files with top-level await) are
|
|
451
|
+
// handled correctly — require() returns a Promise for such modules, which
|
|
452
|
+
// ensureUserland() awaits before the first request is handled.
|
|
453
|
+
userland: ()=>__webpack_require__(714268),
|
|
454
|
+
// In Turbopack dev mode, also provide a synchronous per-request getter so
|
|
455
|
+
// server HMR updates are picked up without re-executing the entry chunk.
|
|
456
|
+
// Using require() (synchronous) avoids adding async overhead that would be
|
|
457
|
+
// incorrectly attributed to application-code time in devRequestTiming.
|
|
458
|
+
... false ? 0 : {}
|
|
633
459
|
});
|
|
634
|
-
// Pull the
|
|
635
|
-
//
|
|
636
|
-
//
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
} catch (err) {
|
|
644
|
-
// DB not ready yet (first request before initMasterKey ran). Leave
|
|
645
|
-
// the default and try again on the next call — don't flip hydrated.
|
|
646
|
-
console.warn("[screen-lock] could not hydrate idle timeout:", err);
|
|
647
|
-
}
|
|
460
|
+
// Pull out the exports that we need to expose from the module. This should
|
|
461
|
+
// be eliminated when we've moved the other routes to the new format. These
|
|
462
|
+
// are used to hook into the route.
|
|
463
|
+
const { workAsyncStorage, workUnitAsyncStorage, serverHooks } = routeModule;
|
|
464
|
+
function patchFetch() {
|
|
465
|
+
return (0,next_dist_server_lib_patch_fetch__WEBPACK_IMPORTED_MODULE_2__.patchFetch)({
|
|
466
|
+
workAsyncStorage,
|
|
467
|
+
workUnitAsyncStorage
|
|
468
|
+
});
|
|
648
469
|
}
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
*/ function recordUserActivity() {
|
|
654
|
-
if (!_g.locked) {
|
|
655
|
-
_g.lastActivity = Date.now();
|
|
470
|
+
|
|
471
|
+
async function handler(req, res, ctx) {
|
|
472
|
+
if (ctx.requestMeta) {
|
|
473
|
+
(0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.setRequestMeta)(req, ctx.requestMeta);
|
|
656
474
|
}
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
* Returns true if the screen should be considered locked right now.
|
|
660
|
-
* Lazily flips the flag when the idle timeout has elapsed so we don't
|
|
661
|
-
* need a background timer.
|
|
662
|
-
*/ function isScreenLocked() {
|
|
663
|
-
hydrateOnce();
|
|
664
|
-
if (_g.locked) return true;
|
|
665
|
-
if (_g.idleTimeoutMs <= 0) return false; // disabled
|
|
666
|
-
if (Date.now() - _g.lastActivity > _g.idleTimeoutMs) {
|
|
667
|
-
_g.locked = true;
|
|
668
|
-
return true;
|
|
475
|
+
if (routeModule.isDev) {
|
|
476
|
+
(0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.addRequestMeta)(req, 'devRequestTimingInternalsEnd', process.hrtime.bigint());
|
|
669
477
|
}
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
_g.locked = true;
|
|
678
|
-
}
|
|
679
|
-
function getIdleTimeoutMs() {
|
|
680
|
-
hydrateOnce();
|
|
681
|
-
return _g.idleTimeoutMs;
|
|
682
|
-
}
|
|
683
|
-
/** 0 disables the auto-lock entirely. */ function setIdleTimeoutMs(ms) {
|
|
684
|
-
if (!Number.isFinite(ms) || ms < 0) throw new Error("invalid timeout");
|
|
685
|
-
_g.idleTimeoutMs = Math.floor(ms);
|
|
686
|
-
_g.lastActivity = Date.now();
|
|
687
|
-
_g.hydrated = true; // we just set it; skip the load-from-disk path
|
|
688
|
-
try {
|
|
689
|
-
(0,_lib_stores_app_settings__WEBPACK_IMPORTED_MODULE_0__/* .setScreenLockIdleTimeoutMs */ .Z0)(_g.idleTimeoutMs);
|
|
690
|
-
} catch (err) {
|
|
691
|
-
console.warn("[screen-lock] could not persist idle timeout:", err);
|
|
478
|
+
let srcPage = "/api/v1/security/idle-timeout/route";
|
|
479
|
+
// turbopack doesn't normalize `/index` in the page name
|
|
480
|
+
// so we need to to process dynamic routes properly
|
|
481
|
+
// TODO: fix turbopack providing differing value from webpack
|
|
482
|
+
if (false) {} else if (srcPage === '/index') {
|
|
483
|
+
// we always normalize /index specifically
|
|
484
|
+
srcPage = '/';
|
|
692
485
|
}
|
|
486
|
+
const multiZoneDraftMode = false;
|
|
487
|
+
// Registering `instrumentation.ts` usually installs the tracer provider, so
|
|
488
|
+
// do it before starting the request span. The span is started before
|
|
489
|
+
// `prepare`, so route module preparation is part of the request's trace.
|
|
490
|
+
// When this request triggers registration, the lifecycle spans of
|
|
491
|
+
// `instrumentation.ts` are emitted inside the request span.
|
|
492
|
+
const { instrumentation } = await routeModule.ensureInstrumentation(req, {
|
|
493
|
+
deferSpans: true
|
|
494
|
+
});
|
|
495
|
+
return routeModule.traceRequest(req, {
|
|
496
|
+
tracer: (0,next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.getTracer)(),
|
|
497
|
+
spanName: `${req.method || 'GET'} ${srcPage}`,
|
|
498
|
+
httpTarget: req.url,
|
|
499
|
+
instrumentation
|
|
500
|
+
}, (requestSpan, requestRootSpan)=>handleRequest(req, res, ctx, srcPage, multiZoneDraftMode, requestSpan, requestRootSpan));
|
|
693
501
|
}
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
/***/ 529294:
|
|
699
|
-
/***/ ((module) => {
|
|
700
|
-
|
|
701
|
-
module.exports = require("next/dist/server/app-render/work-async-storage.external.js");
|
|
702
|
-
|
|
703
|
-
/***/ }),
|
|
704
|
-
|
|
705
|
-
/***/ 594735:
|
|
706
|
-
/***/ ((module) => {
|
|
707
|
-
|
|
708
|
-
module.exports = require("events");
|
|
709
|
-
|
|
710
|
-
/***/ }),
|
|
711
|
-
|
|
712
|
-
/***/ 629021:
|
|
713
|
-
/***/ ((module) => {
|
|
714
|
-
|
|
715
|
-
module.exports = require("fs");
|
|
716
|
-
|
|
717
|
-
/***/ }),
|
|
718
|
-
|
|
719
|
-
/***/ 638522:
|
|
720
|
-
/***/ ((module) => {
|
|
721
|
-
|
|
722
|
-
module.exports = require("node:zlib");
|
|
723
|
-
|
|
724
|
-
/***/ }),
|
|
725
|
-
|
|
726
|
-
/***/ 663033:
|
|
727
|
-
/***/ ((module) => {
|
|
728
|
-
|
|
729
|
-
module.exports = require("next/dist/server/app-render/work-unit-async-storage.external.js");
|
|
730
|
-
|
|
731
|
-
/***/ }),
|
|
732
|
-
|
|
733
|
-
/***/ 710846:
|
|
734
|
-
/***/ ((module) => {
|
|
735
|
-
|
|
736
|
-
module.exports = require("next/dist/compiled/next-server/app-page.runtime.prod.js");
|
|
737
|
-
|
|
738
|
-
/***/ }),
|
|
739
|
-
|
|
740
|
-
/***/ 714268:
|
|
741
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
742
|
-
|
|
743
|
-
__webpack_require__.r(__webpack_exports__);
|
|
744
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
745
|
-
/* harmony export */ GET: () => (/* binding */ GET),
|
|
746
|
-
/* harmony export */ PATCH: () => (/* binding */ PATCH)
|
|
747
|
-
/* harmony export */ });
|
|
748
|
-
/* harmony import */ var next_server__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(945592);
|
|
749
|
-
/* harmony import */ var zod__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(497377);
|
|
750
|
-
/* harmony import */ var _lib_db__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(251244);
|
|
751
|
-
/* harmony import */ var _lib_security_screen_lock__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(520971);
|
|
752
|
-
/**
|
|
753
|
-
* @public — `GET/PATCH /api/v1/security/idle-timeout`
|
|
754
|
-
*
|
|
755
|
-
* Reads or updates the screen-lock idle timeout. The value persists
|
|
756
|
-
* across restarts (stored in app-settings). 0 disables the auto-lock.
|
|
757
|
-
*
|
|
758
|
-
* GET returns: `{ idle_timeout_ms: number }`
|
|
759
|
-
* PATCH body: `{ idle_timeout_ms: number }` (0 to 24h)
|
|
760
|
-
* PATCH returns: `{ idle_timeout_ms: number }`
|
|
761
|
-
*/
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
const ONE_DAY_MS = 24 * 60 * 60 * 1000;
|
|
766
|
-
const PatchBody = zod__WEBPACK_IMPORTED_MODULE_3__/* .object */ .Ikc({
|
|
767
|
-
idle_timeout_ms: zod__WEBPACK_IMPORTED_MODULE_3__/* .number */ .aig().int().min(0).max(ONE_DAY_MS)
|
|
768
|
-
});
|
|
769
|
-
// Reachable from any whitelisted caller so the settings UI can render
|
|
770
|
-
// + adjust the timeout from any device. The proxy's tailscale-identity
|
|
771
|
-
// gate is the security boundary.
|
|
772
|
-
function GET(_req) {
|
|
773
|
-
(0,_lib_db__WEBPACK_IMPORTED_MODULE_1__/* .getDb */ .Lf)();
|
|
774
|
-
return next_server__WEBPACK_IMPORTED_MODULE_0__.NextResponse.json({
|
|
775
|
-
idle_timeout_ms: (0,_lib_security_screen_lock__WEBPACK_IMPORTED_MODULE_2__/* .getIdleTimeoutMs */ .Gk)()
|
|
502
|
+
async function handleRequest(req, res, ctx, srcPage, multiZoneDraftMode, requestSpan, requestRootSpan) {
|
|
503
|
+
const prepareResult = await routeModule.prepare(req, res, {
|
|
504
|
+
srcPage,
|
|
505
|
+
multiZoneDraftMode
|
|
776
506
|
});
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
body = await req.json();
|
|
783
|
-
} catch {
|
|
784
|
-
return next_server__WEBPACK_IMPORTED_MODULE_0__.NextResponse.json({
|
|
785
|
-
error: "bad-json"
|
|
786
|
-
}, {
|
|
787
|
-
status: 400
|
|
788
|
-
});
|
|
507
|
+
if (!prepareResult) {
|
|
508
|
+
res.statusCode = 400;
|
|
509
|
+
res.end('Bad Request');
|
|
510
|
+
ctx.waitUntil == null ? void 0 : ctx.waitUntil.call(ctx, Promise.resolve());
|
|
511
|
+
return null;
|
|
789
512
|
}
|
|
790
|
-
const
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
513
|
+
const { buildId, deploymentId, params, nextConfig, parsedUrl, isDraftMode, prerenderManifest, routerServerContext, isOnDemandRevalidate, revalidateOnlyGenerated, resolvedPathname, clientReferenceManifest, serverActionsManifest, previewProps } = prepareResult;
|
|
514
|
+
const normalizedSrcPage = (0,next_dist_shared_lib_router_utils_app_paths__WEBPACK_IMPORTED_MODULE_6__.normalizeAppPath)(srcPage);
|
|
515
|
+
// Only this route's prerenders can establish ISR or admit generated params.
|
|
516
|
+
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]));
|
|
517
|
+
let isIsr = Boolean(prerenderManifest.dynamicRoutes[normalizedSrcPage] || isPrerendered);
|
|
518
|
+
const render404 = async ()=>{
|
|
519
|
+
// TODO: should route-module itself handle rendering the 404
|
|
520
|
+
if (routerServerContext == null ? void 0 : routerServerContext.render404) {
|
|
521
|
+
await routerServerContext.render404(req, res, parsedUrl, false);
|
|
522
|
+
} else {
|
|
523
|
+
res.end('This page could not be found');
|
|
524
|
+
}
|
|
525
|
+
return null;
|
|
526
|
+
};
|
|
527
|
+
if (isIsr && !isDraftMode) {
|
|
528
|
+
const prerenderInfo = prerenderManifest.dynamicRoutes[normalizedSrcPage];
|
|
529
|
+
if (prerenderInfo) {
|
|
530
|
+
if (prerenderInfo.fallback === false && !isPrerendered) {
|
|
531
|
+
if (nextConfig.adapterPath) {
|
|
532
|
+
return await render404();
|
|
533
|
+
}
|
|
534
|
+
throw new next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_15__.NoFallbackError();
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
let cacheKey = null;
|
|
539
|
+
if (isIsr && !routeModule.isDev && !isDraftMode) {
|
|
540
|
+
cacheKey = resolvedPathname;
|
|
541
|
+
// ensure /index and / is normalized to one key
|
|
542
|
+
cacheKey = cacheKey === '/index' ? '/' : cacheKey;
|
|
543
|
+
}
|
|
544
|
+
// Before rendering (which initializes component tree modules), we have to
|
|
545
|
+
// set the reference manifests to our global store so Server Action's
|
|
546
|
+
// encryption util can access to them at the top level of the page module.
|
|
547
|
+
if (serverActionsManifest && clientReferenceManifest) {
|
|
548
|
+
(0,next_dist_server_app_render_manifests_singleton__WEBPACK_IMPORTED_MODULE_5__.setManifestsSingleton)({
|
|
549
|
+
page: srcPage,
|
|
550
|
+
clientReferenceManifest,
|
|
551
|
+
serverActionsManifest
|
|
796
552
|
});
|
|
797
553
|
}
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
554
|
+
const method = req.method || 'GET';
|
|
555
|
+
const tracer = (0,next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.getTracer)();
|
|
556
|
+
const isWrappedByNextServer = Boolean(routerServerContext == null ? void 0 : routerServerContext.isWrappedByNextServer);
|
|
557
|
+
const isMinimalMode = Boolean((0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.getRequestMeta)(req, 'minimalMode'));
|
|
558
|
+
const incrementalCache = (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.getRequestMeta)(req, 'incrementalCache') || await routeModule.getIncrementalCache(req, nextConfig, previewProps, prerenderManifest, isMinimalMode);
|
|
559
|
+
incrementalCache == null ? void 0 : incrementalCache.resetRequestCache();
|
|
560
|
+
globalThis.__incrementalCache = incrementalCache;
|
|
561
|
+
const context = {
|
|
562
|
+
params,
|
|
563
|
+
previewProps,
|
|
564
|
+
renderOpts: {
|
|
565
|
+
experimental: {
|
|
566
|
+
authInterrupts: Boolean(nextConfig.experimental.authInterrupts),
|
|
567
|
+
useCacheTimeout: nextConfig.experimental.useCacheTimeout,
|
|
568
|
+
durableUseCacheEntries: Boolean(nextConfig.experimental.durableUseCacheEntries)
|
|
569
|
+
},
|
|
570
|
+
cacheComponents: Boolean(nextConfig.cacheComponents),
|
|
571
|
+
validationLevel: nextConfig.experimental.instantInsights.validationLevel,
|
|
572
|
+
isDraftMode,
|
|
573
|
+
incrementalCache,
|
|
574
|
+
hmrRefreshHash: (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.getRequestMeta)(req, 'hmrRefreshHash'),
|
|
575
|
+
cacheLifeProfiles: nextConfig.cacheLife,
|
|
576
|
+
staticPageGenerationTimeout: nextConfig.staticPageGenerationTimeout,
|
|
577
|
+
waitUntil: ctx.waitUntil,
|
|
578
|
+
onClose: (cb)=>{
|
|
579
|
+
res.on('close', cb);
|
|
580
|
+
},
|
|
581
|
+
onAfterTaskError: undefined
|
|
582
|
+
},
|
|
583
|
+
sharedContext: {
|
|
584
|
+
buildId,
|
|
585
|
+
deploymentId
|
|
586
|
+
}
|
|
587
|
+
};
|
|
588
|
+
const nodeNextReq = new next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_7__.NodeNextRequest(req);
|
|
589
|
+
const nodeNextRes = new next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_7__.NodeNextResponse(res);
|
|
590
|
+
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));
|
|
591
|
+
const responseGenerator = async ({ previousCacheEntry })=>{
|
|
592
|
+
try {
|
|
593
|
+
if (!isMinimalMode && isOnDemandRevalidate && revalidateOnlyGenerated && !previousCacheEntry) {
|
|
594
|
+
res.statusCode = 404;
|
|
595
|
+
// on-demand revalidate always sets this header
|
|
596
|
+
res.setHeader('x-nextjs-cache', 'REVALIDATED');
|
|
597
|
+
res.end('This page could not be found');
|
|
598
|
+
return null;
|
|
599
|
+
}
|
|
600
|
+
const response = cacheKey === null ? await routeModule.handle(nextReq, context) : await routeModule.prerender(nextReq, context);
|
|
601
|
+
req.fetchMetrics = context.renderOpts.fetchMetrics;
|
|
602
|
+
let pendingWaitUntil = context.renderOpts.pendingWaitUntil;
|
|
603
|
+
// Attempt using provided waitUntil if available
|
|
604
|
+
// if it's not we fallback to sendResponse's handling
|
|
605
|
+
if (pendingWaitUntil) {
|
|
606
|
+
if (ctx.waitUntil) {
|
|
607
|
+
ctx.waitUntil(pendingWaitUntil);
|
|
608
|
+
pendingWaitUntil = undefined;
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
const cacheTags = context.renderOpts.collectedTags;
|
|
612
|
+
// If the request is for a static response, we can cache it so long
|
|
613
|
+
// as it's not edge.
|
|
614
|
+
if (isIsr) {
|
|
615
|
+
const blob = await response.blob();
|
|
616
|
+
// Copy the headers from the response.
|
|
617
|
+
const headers = (0,next_dist_server_web_utils__WEBPACK_IMPORTED_MODULE_12__.toNodeOutgoingHttpHeaders)(response.headers);
|
|
618
|
+
if (cacheTags) {
|
|
619
|
+
headers[next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__.NEXT_CACHE_TAGS_HEADER] = cacheTags;
|
|
620
|
+
}
|
|
621
|
+
if (!headers['content-type'] && blob.type) {
|
|
622
|
+
headers['content-type'] = blob.type;
|
|
623
|
+
}
|
|
624
|
+
const revalidate = typeof context.renderOpts.collectedRevalidate === 'undefined' || context.renderOpts.collectedRevalidate >= next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__.INFINITE_CACHE ? false : context.renderOpts.collectedRevalidate;
|
|
625
|
+
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
|
|
626
|
+
// explicit `expire` (e.g. via `cacheLife`). This mirrors the
|
|
627
|
+
// build-time fallback in `build/index.ts` so cache entries
|
|
628
|
+
// and the response Cache-Control header agree on the route's
|
|
629
|
+
// effective expire. Routes that opt out of revalidation
|
|
630
|
+
// (`revalidate: false`) or that are dynamic (`revalidate: 0`)
|
|
631
|
+
// keep `expire: undefined`.
|
|
632
|
+
revalidate !== false && revalidate > 0 ? nextConfig.expireTime : undefined : context.renderOpts.collectedExpire;
|
|
633
|
+
// Create the cache entry for the response.
|
|
634
|
+
const cacheEntry = {
|
|
635
|
+
value: {
|
|
636
|
+
kind: next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__.CachedRouteKind.APP_ROUTE,
|
|
637
|
+
status: response.status,
|
|
638
|
+
body: Buffer.from(await blob.arrayBuffer()),
|
|
639
|
+
headers
|
|
640
|
+
},
|
|
641
|
+
cacheControl: {
|
|
642
|
+
revalidate,
|
|
643
|
+
expire
|
|
644
|
+
}
|
|
645
|
+
};
|
|
646
|
+
return cacheEntry;
|
|
647
|
+
} else {
|
|
648
|
+
// send response without caching if not ISR
|
|
649
|
+
await (0,next_dist_server_send_response__WEBPACK_IMPORTED_MODULE_11__/* .sendResponse */ .I)(nodeNextReq, nodeNextRes, response, pendingWaitUntil);
|
|
650
|
+
return null;
|
|
651
|
+
}
|
|
652
|
+
} catch (err) {
|
|
653
|
+
// if this is a background revalidate we need to report
|
|
654
|
+
// the request error here as it won't be bubbled
|
|
655
|
+
if (previousCacheEntry == null ? void 0 : previousCacheEntry.isStale) {
|
|
656
|
+
const silenceLog = false;
|
|
657
|
+
await routeModule.onRequestError(req, err, {
|
|
658
|
+
routerKind: 'App Router',
|
|
659
|
+
routePath: srcPage,
|
|
660
|
+
routeType: 'route',
|
|
661
|
+
revalidateReason: (0,next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_10__.getRevalidateReason)({
|
|
662
|
+
isStaticGeneration: cacheKey !== null,
|
|
663
|
+
isOnDemandRevalidate
|
|
664
|
+
})
|
|
665
|
+
}, silenceLog, routerServerContext);
|
|
666
|
+
}
|
|
667
|
+
throw err;
|
|
668
|
+
}
|
|
669
|
+
};
|
|
670
|
+
const handleResponse = async (currentSpan)=>{
|
|
671
|
+
try {
|
|
672
|
+
var _cacheEntry_value;
|
|
673
|
+
const cacheEntry = await routeModule.handleResponse({
|
|
674
|
+
req,
|
|
675
|
+
nextConfig,
|
|
676
|
+
cacheKey,
|
|
677
|
+
routeKind: next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__.RouteKind.APP_ROUTE,
|
|
678
|
+
isFallback: false,
|
|
679
|
+
previewProps,
|
|
680
|
+
prerenderManifest,
|
|
681
|
+
isRoutePPREnabled: false,
|
|
682
|
+
isOnDemandRevalidate,
|
|
683
|
+
revalidateOnlyGenerated,
|
|
684
|
+
responseGenerator,
|
|
685
|
+
waitUntil: ctx.waitUntil,
|
|
686
|
+
isMinimalMode
|
|
687
|
+
});
|
|
688
|
+
if (cacheEntry !== null && 'error' in cacheEntry) {
|
|
689
|
+
throw cacheEntry.error;
|
|
690
|
+
}
|
|
691
|
+
// we don't create a cacheEntry for ISR
|
|
692
|
+
if (!isIsr) {
|
|
693
|
+
return;
|
|
694
|
+
}
|
|
695
|
+
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) {
|
|
696
|
+
var _cacheEntry_value1;
|
|
697
|
+
throw new Error(`Invariant: app-route received invalid cache entry ${cacheEntry == null ? void 0 : (_cacheEntry_value1 = cacheEntry.value) == null ? void 0 : _cacheEntry_value1.kind}`);
|
|
698
|
+
}
|
|
699
|
+
if (!isMinimalMode) {
|
|
700
|
+
res.setHeader('x-nextjs-cache', isOnDemandRevalidate ? 'REVALIDATED' : cacheEntry.isMiss ? 'MISS' : cacheEntry.isStale ? 'STALE' : 'HIT');
|
|
701
|
+
}
|
|
702
|
+
// Draft mode should never be cached
|
|
703
|
+
if (isDraftMode) {
|
|
704
|
+
res.setHeader('Cache-Control', 'private, no-cache, no-store, max-age=0, must-revalidate');
|
|
705
|
+
}
|
|
706
|
+
const headers = (0,next_dist_server_web_utils__WEBPACK_IMPORTED_MODULE_12__.fromNodeOutgoingHttpHeaders)(cacheEntry.value.headers);
|
|
707
|
+
if (!(isMinimalMode && isIsr)) {
|
|
708
|
+
headers.delete(next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__.NEXT_CACHE_TAGS_HEADER);
|
|
709
|
+
}
|
|
710
|
+
// If cache control is already set on the response we don't
|
|
711
|
+
// override it to allow users to customize it via next.config
|
|
712
|
+
if (cacheEntry.cacheControl && !res.getHeader('Cache-Control') && !headers.get('Cache-Control')) {
|
|
713
|
+
headers.set('Cache-Control', (0,next_dist_server_lib_cache_control__WEBPACK_IMPORTED_MODULE_13__.getCacheControlHeader)(cacheEntry.cacheControl));
|
|
714
|
+
}
|
|
715
|
+
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'.
|
|
716
|
+
new Response(cacheEntry.value.body, {
|
|
717
|
+
headers,
|
|
718
|
+
status: cacheEntry.value.status || 200
|
|
719
|
+
}));
|
|
720
|
+
return;
|
|
721
|
+
} catch (err) {
|
|
722
|
+
if (!(err instanceof next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_15__.NoFallbackError)) {
|
|
723
|
+
const silenceLog = false;
|
|
724
|
+
await routeModule.onRequestError(req, err, {
|
|
725
|
+
routerKind: 'App Router',
|
|
726
|
+
routePath: normalizedSrcPage,
|
|
727
|
+
routeType: 'route',
|
|
728
|
+
revalidateReason: (0,next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_10__.getRevalidateReason)({
|
|
729
|
+
isStaticGeneration: cacheKey !== null,
|
|
730
|
+
isOnDemandRevalidate
|
|
731
|
+
})
|
|
732
|
+
}, silenceLog, routerServerContext);
|
|
733
|
+
}
|
|
734
|
+
// rethrow so that we can handle serving error page
|
|
735
|
+
// If this is during static generation, throw the error again.
|
|
736
|
+
if (isIsr) throw err;
|
|
737
|
+
// Otherwise, send a 500 response unless the original response has
|
|
738
|
+
// already committed. In that case, preserve its status code for
|
|
739
|
+
// telemetry while still recording the failure and terminating a response
|
|
740
|
+
// that the failed pipeline left open.
|
|
741
|
+
if (res.headersSent) {
|
|
742
|
+
if (currentSpan) {
|
|
743
|
+
const error = err instanceof Error ? err : new Error('Unknown app route error');
|
|
744
|
+
currentSpan.recordException(error);
|
|
745
|
+
currentSpan.setStatus({
|
|
746
|
+
code: next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.SpanStatusCode.ERROR,
|
|
747
|
+
message: error.message
|
|
748
|
+
});
|
|
749
|
+
currentSpan.setAttribute('error.type', error.name);
|
|
750
|
+
}
|
|
751
|
+
if (!res.writableEnded && !res.destroyed) {
|
|
752
|
+
res.end();
|
|
753
|
+
}
|
|
754
|
+
} else {
|
|
755
|
+
await (0,next_dist_server_send_response__WEBPACK_IMPORTED_MODULE_11__/* .sendResponse */ .I)(nodeNextReq, nodeNextRes, new Response(null, {
|
|
756
|
+
status: 500
|
|
757
|
+
}));
|
|
758
|
+
}
|
|
759
|
+
return;
|
|
760
|
+
} finally{
|
|
761
|
+
;
|
|
762
|
+
(()=>{
|
|
763
|
+
if (!currentSpan) {
|
|
764
|
+
return;
|
|
765
|
+
}
|
|
766
|
+
let statusCode = res.statusCode;
|
|
767
|
+
currentSpan.setAttributes({
|
|
768
|
+
'http.status_code': statusCode,
|
|
769
|
+
'next.rsc': false
|
|
770
|
+
});
|
|
771
|
+
if (statusCode && statusCode >= 500) {
|
|
772
|
+
// For 5xx status codes: SHOULD be set to 'Error' span status.
|
|
773
|
+
// x-ref: https://opentelemetry.io/docs/specs/semconv/http/http-spans/#status
|
|
774
|
+
currentSpan.setStatus({
|
|
775
|
+
code: next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.SpanStatusCode.ERROR
|
|
776
|
+
});
|
|
777
|
+
// For span status 'Error', SHOULD set 'error.type' attribute.
|
|
778
|
+
currentSpan.setAttribute('error.type', statusCode.toString());
|
|
779
|
+
}
|
|
780
|
+
const rootSpanAttributes = tracer.getRootSpanAttributes();
|
|
781
|
+
// We were unable to get attributes, probably OTEL is not enabled
|
|
782
|
+
if (!rootSpanAttributes) {
|
|
783
|
+
return;
|
|
784
|
+
}
|
|
785
|
+
if (rootSpanAttributes.get('next.span_type') !== next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_9__.BaseServerSpan.handleRequest) {
|
|
786
|
+
console.warn(`Unexpected root span type '${rootSpanAttributes.get('next.span_type')}'. Please report this Next.js issue https://github.com/vercel/next.js`);
|
|
787
|
+
return;
|
|
788
|
+
}
|
|
789
|
+
const route = rootSpanAttributes.get('next.route') || normalizedSrcPage;
|
|
790
|
+
const name = `${method} ${route}`;
|
|
791
|
+
currentSpan.setAttributes({
|
|
792
|
+
'next.route': route,
|
|
793
|
+
'http.route': route,
|
|
794
|
+
'next.span_name': name
|
|
795
|
+
});
|
|
796
|
+
currentSpan.updateName(name);
|
|
797
|
+
// Propagate http.route to the request's root span if it isn't the
|
|
798
|
+
// request span (e.g. a platform-created HTTP span in adapter
|
|
799
|
+
// deployments).
|
|
800
|
+
if (requestRootSpan && requestRootSpan !== currentSpan) {
|
|
801
|
+
requestRootSpan.setAttribute('http.route', route);
|
|
802
|
+
requestRootSpan.updateName(name);
|
|
803
|
+
}
|
|
804
|
+
})();
|
|
805
|
+
}
|
|
806
|
+
};
|
|
807
|
+
// When invoked directly, the request span was started before `prepare`;
|
|
808
|
+
// record the request target as normalized by it. next-server's request span
|
|
809
|
+
// already has it.
|
|
810
|
+
if (!isWrappedByNextServer && req.url !== undefined) {
|
|
811
|
+
requestSpan == null ? void 0 : requestSpan.setAttribute('http.target', req.url);
|
|
812
|
+
}
|
|
813
|
+
await handleResponse(requestSpan);
|
|
802
814
|
}
|
|
803
815
|
|
|
816
|
+
//# sourceMappingURL=app-route.js.map
|
|
804
817
|
|
|
805
|
-
/***/ }),
|
|
806
|
-
|
|
807
|
-
/***/ 731421:
|
|
808
|
-
/***/ ((module) => {
|
|
809
|
-
|
|
810
|
-
module.exports = require("node:child_process");
|
|
811
|
-
|
|
812
|
-
/***/ }),
|
|
813
|
-
|
|
814
|
-
/***/ 744870:
|
|
815
|
-
/***/ ((module) => {
|
|
816
|
-
|
|
817
|
-
module.exports = require("next/dist/compiled/next-server/app-route.runtime.prod.js");
|
|
818
818
|
|
|
819
819
|
/***/ }),
|
|
820
820
|
|
|
@@ -902,7 +902,7 @@ module.exports = require("next/dist/shared/lib/no-fallback-error.external");
|
|
|
902
902
|
var __webpack_require__ = require("../../../../../webpack-runtime.js");
|
|
903
903
|
__webpack_require__.C(exports);
|
|
904
904
|
var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
|
|
905
|
-
var __webpack_exports__ = __webpack_require__.X(0, [2970,7377,1813,4891,4992,1244], () => (__webpack_exec__(
|
|
905
|
+
var __webpack_exports__ = __webpack_require__.X(0, [2970,7377,1813,4891,4992,1244], () => (__webpack_exec__(752652)));
|
|
906
906
|
module.exports = __webpack_exports__;
|
|
907
907
|
|
|
908
908
|
})();
|