@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,882 +19,882 @@ module.exports = require("node:async_hooks");
|
|
|
19
19
|
|
|
20
20
|
/***/ }),
|
|
21
21
|
|
|
22
|
-
/***/
|
|
23
|
-
/***/ ((
|
|
22
|
+
/***/ 51455:
|
|
23
|
+
/***/ ((module) => {
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
27
|
-
/* harmony export */ handler: () => (/* binding */ handler),
|
|
28
|
-
/* harmony export */ patchFetch: () => (/* binding */ patchFetch),
|
|
29
|
-
/* harmony export */ routeModule: () => (/* binding */ routeModule),
|
|
30
|
-
/* harmony export */ serverHooks: () => (/* binding */ serverHooks),
|
|
31
|
-
/* harmony export */ workAsyncStorage: () => (/* binding */ workAsyncStorage),
|
|
32
|
-
/* harmony export */ workUnitAsyncStorage: () => (/* binding */ workUnitAsyncStorage)
|
|
33
|
-
/* harmony export */ });
|
|
34
|
-
/* harmony import */ var next_dist_server_route_modules_app_route_module_compiled__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(319225);
|
|
35
|
-
/* 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__);
|
|
36
|
-
/* harmony import */ var next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(684006);
|
|
37
|
-
/* harmony import */ var next_dist_server_lib_patch_fetch__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8317);
|
|
38
|
-
/* 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__);
|
|
39
|
-
/* harmony import */ var next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(799373);
|
|
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");
|
|
66
26
|
|
|
27
|
+
/***/ }),
|
|
67
28
|
|
|
29
|
+
/***/ 55591:
|
|
30
|
+
/***/ ((module) => {
|
|
68
31
|
|
|
32
|
+
module.exports = require("https");
|
|
69
33
|
|
|
34
|
+
/***/ }),
|
|
70
35
|
|
|
36
|
+
/***/ 79868:
|
|
37
|
+
/***/ ((module) => {
|
|
71
38
|
|
|
39
|
+
module.exports = require("node:sqlite");
|
|
72
40
|
|
|
41
|
+
/***/ }),
|
|
73
42
|
|
|
43
|
+
/***/ 108128:
|
|
44
|
+
/***/ ((module) => {
|
|
74
45
|
|
|
46
|
+
module.exports = require("next/dist/server/runtime-reacts.external.js");
|
|
75
47
|
|
|
48
|
+
/***/ }),
|
|
76
49
|
|
|
50
|
+
/***/ 157075:
|
|
51
|
+
/***/ ((module) => {
|
|
77
52
|
|
|
53
|
+
module.exports = require("node:stream");
|
|
78
54
|
|
|
55
|
+
/***/ }),
|
|
79
56
|
|
|
57
|
+
/***/ 176760:
|
|
58
|
+
/***/ ((module) => {
|
|
80
59
|
|
|
60
|
+
module.exports = require("node:path");
|
|
81
61
|
|
|
62
|
+
/***/ }),
|
|
82
63
|
|
|
64
|
+
/***/ 200261:
|
|
65
|
+
/***/ ((module) => {
|
|
83
66
|
|
|
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/bridges/[id]/ignores/[remote_jid]/route",
|
|
91
|
-
pathname: "/api/v1/bridges/[id]/ignores/[remote_jid]",
|
|
92
|
-
filename: "route",
|
|
93
|
-
bundlePath: "app/api/v1/bridges/[id]/ignores/[remote_jid]/route"
|
|
94
|
-
},
|
|
95
|
-
distDir: ".next" || 0,
|
|
96
|
-
relativeProjectDir: false || '',
|
|
97
|
-
resolvedPagePath: "/home/runner/work/jarela/jarela/app/api/v1/bridges/[id]/ignores/[remote_jid]/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__(489704),
|
|
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
|
-
}
|
|
67
|
+
module.exports = require("next/dist/shared/lib/router/utils/app-paths");
|
|
123
68
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
69
|
+
/***/ }),
|
|
70
|
+
|
|
71
|
+
/***/ 257975:
|
|
72
|
+
/***/ ((module) => {
|
|
73
|
+
|
|
74
|
+
module.exports = require("node:util");
|
|
75
|
+
|
|
76
|
+
/***/ }),
|
|
77
|
+
|
|
78
|
+
/***/ 309956:
|
|
79
|
+
/***/ ((module) => {
|
|
80
|
+
|
|
81
|
+
module.exports = require("undici");
|
|
82
|
+
|
|
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
|
+
/***/ 478361:
|
|
142
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
143
|
+
|
|
144
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
145
|
+
/* harmony export */ $6: () => (/* binding */ findRoute),
|
|
146
|
+
/* harmony export */ Bn: () => (/* binding */ listRoutes),
|
|
147
|
+
/* harmony export */ DL: () => (/* binding */ updateRoute),
|
|
148
|
+
/* harmony export */ GB: () => (/* binding */ addIgnore),
|
|
149
|
+
/* harmony export */ KC: () => (/* binding */ bumpRouteLastSeenTs),
|
|
150
|
+
/* harmony export */ OO: () => (/* binding */ createBridge),
|
|
151
|
+
/* harmony export */ Pu: () => (/* binding */ deleteBridge),
|
|
152
|
+
/* harmony export */ V7: () => (/* binding */ deleteRoute),
|
|
153
|
+
/* harmony export */ X9: () => (/* binding */ listBridges),
|
|
154
|
+
/* harmony export */ aM: () => (/* binding */ getRoute),
|
|
155
|
+
/* harmony export */ e1: () => (/* binding */ getBridge),
|
|
156
|
+
/* harmony export */ gH: () => (/* binding */ getRouteLastSeenTsMap),
|
|
157
|
+
/* harmony export */ kZ: () => (/* binding */ listIgnores),
|
|
158
|
+
/* harmony export */ nE: () => (/* binding */ removeIgnore),
|
|
159
|
+
/* harmony export */ pi: () => (/* binding */ isIgnored),
|
|
160
|
+
/* harmony export */ po: () => (/* binding */ updateBridge),
|
|
161
|
+
/* harmony export */ un: () => (/* binding */ createRoute)
|
|
162
|
+
/* harmony export */ });
|
|
163
|
+
/* harmony import */ var node_crypto__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(977598);
|
|
164
|
+
/* harmony import */ var node_crypto__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(node_crypto__WEBPACK_IMPORTED_MODULE_0__);
|
|
165
|
+
/* harmony import */ var _lib_db__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(251244);
|
|
166
|
+
/* harmony import */ var _lib_db_transaction__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(999043);
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
const now = ()=>new Date().toISOString();
|
|
171
|
+
// ---------------------------------------------------------------------------
|
|
172
|
+
// Bridge CRUD
|
|
173
|
+
// ---------------------------------------------------------------------------
|
|
174
|
+
function listBridges() {
|
|
175
|
+
return (0,_lib_db__WEBPACK_IMPORTED_MODULE_1__/* .getDb */ .Lf)().prepare("SELECT * FROM bridges ORDER BY created_at ASC").all();
|
|
154
176
|
}
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
res.end('This page could not be found');
|
|
177
|
-
}
|
|
178
|
-
return null;
|
|
177
|
+
function getBridge(id) {
|
|
178
|
+
return (0,_lib_db__WEBPACK_IMPORTED_MODULE_1__/* .getDb */ .Lf)().prepare("SELECT * FROM bridges WHERE id=?").get(id) ?? null;
|
|
179
|
+
}
|
|
180
|
+
function createBridge(input) {
|
|
181
|
+
const id = (0,node_crypto__WEBPACK_IMPORTED_MODULE_0__.randomUUID)();
|
|
182
|
+
const t = now();
|
|
183
|
+
(0,_lib_db__WEBPACK_IMPORTED_MODULE_1__/* .getDb */ .Lf)().prepare(`INSERT INTO bridges (id, kind, name, status, qr, last_error, paired_id, enabled, forward_group_profile_updates, forward_group_participants_updates, created_at, updated_at)
|
|
184
|
+
VALUES (?, ?, ?, 'disconnected', NULL, NULL, NULL, 0, 1, 1, ?, ?)`).run(id, input.kind, input.name, t, t);
|
|
185
|
+
return {
|
|
186
|
+
id,
|
|
187
|
+
kind: input.kind,
|
|
188
|
+
name: input.name,
|
|
189
|
+
status: "disconnected",
|
|
190
|
+
qr: null,
|
|
191
|
+
last_error: null,
|
|
192
|
+
paired_id: null,
|
|
193
|
+
enabled: 0,
|
|
194
|
+
forward_group_profile_updates: 1,
|
|
195
|
+
forward_group_participants_updates: 1,
|
|
196
|
+
created_at: t,
|
|
197
|
+
updated_at: t
|
|
179
198
|
};
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
cacheKey = cacheKey === '/index' ? '/' : cacheKey;
|
|
196
|
-
}
|
|
197
|
-
// Before rendering (which initializes component tree modules), we have to
|
|
198
|
-
// set the reference manifests to our global store so Server Action's
|
|
199
|
-
// encryption util can access to them at the top level of the page module.
|
|
200
|
-
if (serverActionsManifest && clientReferenceManifest) {
|
|
201
|
-
(0,next_dist_server_app_render_manifests_singleton__WEBPACK_IMPORTED_MODULE_5__.setManifestsSingleton)({
|
|
202
|
-
page: srcPage,
|
|
203
|
-
clientReferenceManifest,
|
|
204
|
-
serverActionsManifest
|
|
205
|
-
});
|
|
206
|
-
}
|
|
207
|
-
const method = req.method || 'GET';
|
|
208
|
-
const tracer = (0,next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.getTracer)();
|
|
209
|
-
const isWrappedByNextServer = Boolean(routerServerContext == null ? void 0 : routerServerContext.isWrappedByNextServer);
|
|
210
|
-
const isMinimalMode = Boolean((0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.getRequestMeta)(req, 'minimalMode'));
|
|
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
|
-
}
|
|
199
|
+
}
|
|
200
|
+
function updateBridge(id, patch) {
|
|
201
|
+
const existing = getBridge(id);
|
|
202
|
+
if (!existing) return null;
|
|
203
|
+
const merged = {
|
|
204
|
+
...existing,
|
|
205
|
+
name: patch.name ?? existing.name,
|
|
206
|
+
enabled: patch.enabled ?? existing.enabled,
|
|
207
|
+
status: patch.status ?? existing.status,
|
|
208
|
+
qr: patch.qr !== undefined ? patch.qr : existing.qr,
|
|
209
|
+
last_error: patch.last_error !== undefined ? patch.last_error : existing.last_error,
|
|
210
|
+
paired_id: patch.paired_id !== undefined ? patch.paired_id : existing.paired_id,
|
|
211
|
+
forward_group_profile_updates: patch.forward_group_profile_updates !== undefined ? patch.forward_group_profile_updates : existing.forward_group_profile_updates,
|
|
212
|
+
forward_group_participants_updates: patch.forward_group_participants_updates !== undefined ? patch.forward_group_participants_updates : existing.forward_group_participants_updates,
|
|
213
|
+
updated_at: now()
|
|
240
214
|
};
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
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
|
-
}
|
|
215
|
+
(0,_lib_db__WEBPACK_IMPORTED_MODULE_1__/* .getDb */ .Lf)().prepare(`UPDATE bridges
|
|
216
|
+
SET name=?, enabled=?, status=?, qr=?, last_error=?, paired_id=?, forward_group_profile_updates=?, forward_group_participants_updates=?, updated_at=?
|
|
217
|
+
WHERE id=?`).run(merged.name, merged.enabled, merged.status, merged.qr, merged.last_error, merged.paired_id, merged.forward_group_profile_updates, merged.forward_group_participants_updates, merged.updated_at, id);
|
|
218
|
+
return merged;
|
|
219
|
+
}
|
|
220
|
+
function deleteBridge(id) {
|
|
221
|
+
return (0,_lib_db_transaction__WEBPACK_IMPORTED_MODULE_2__/* .withDbTransaction */ .J)(()=>{
|
|
222
|
+
const db = (0,_lib_db__WEBPACK_IMPORTED_MODULE_1__/* .getDb */ .Lf)();
|
|
223
|
+
db.prepare("DELETE FROM bridge_routes WHERE bridge_id=?").run(id);
|
|
224
|
+
db.prepare("DELETE FROM bridge_ignores WHERE bridge_id=?").run(id);
|
|
225
|
+
const r = db.prepare("DELETE FROM bridges WHERE id=?").run(id);
|
|
226
|
+
return r.changes > 0;
|
|
227
|
+
});
|
|
228
|
+
}
|
|
229
|
+
// ---------------------------------------------------------------------------
|
|
230
|
+
// Route CRUD
|
|
231
|
+
// ---------------------------------------------------------------------------
|
|
232
|
+
function listRoutes(bridgeId) {
|
|
233
|
+
return (0,_lib_db__WEBPACK_IMPORTED_MODULE_1__/* .getDb */ .Lf)().prepare("SELECT * FROM bridge_routes WHERE bridge_id=? ORDER BY created_at ASC").all(bridgeId);
|
|
234
|
+
}
|
|
235
|
+
function getRoute(id) {
|
|
236
|
+
return (0,_lib_db__WEBPACK_IMPORTED_MODULE_1__/* .getDb */ .Lf)().prepare("SELECT * FROM bridge_routes WHERE id=?").get(id) ?? null;
|
|
237
|
+
}
|
|
238
|
+
function findRoute(bridgeId, remoteJid) {
|
|
239
|
+
return (0,_lib_db__WEBPACK_IMPORTED_MODULE_1__/* .getDb */ .Lf)().prepare("SELECT * FROM bridge_routes WHERE bridge_id=? AND remote_jid=?").get(bridgeId, remoteJid) ?? null;
|
|
240
|
+
}
|
|
241
|
+
function createRoute(input) {
|
|
242
|
+
const id = (0,node_crypto__WEBPACK_IMPORTED_MODULE_0__.randomUUID)();
|
|
243
|
+
const t = now();
|
|
244
|
+
const silent = input.silent_mode ? 1 : 0;
|
|
245
|
+
const respondTo = input.respond_to ?? "counterpart";
|
|
246
|
+
(0,_lib_db__WEBPACK_IMPORTED_MODULE_1__/* .getDb */ .Lf)().prepare(`INSERT INTO bridge_routes (id, bridge_id, remote_jid, agent_id, label, silent_mode, respond_to, created_at, updated_at)
|
|
247
|
+
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)`).run(id, input.bridge_id, input.remote_jid, input.agent_id, input.label ?? null, silent, respondTo, t, t);
|
|
248
|
+
return {
|
|
249
|
+
id,
|
|
250
|
+
bridge_id: input.bridge_id,
|
|
251
|
+
remote_jid: input.remote_jid,
|
|
252
|
+
agent_id: input.agent_id,
|
|
253
|
+
label: input.label ?? null,
|
|
254
|
+
silent_mode: silent,
|
|
255
|
+
respond_to: respondTo,
|
|
256
|
+
last_seen_ts: null,
|
|
257
|
+
created_at: t,
|
|
258
|
+
updated_at: t
|
|
322
259
|
};
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
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
|
-
}
|
|
260
|
+
}
|
|
261
|
+
function updateRoute(id, patch) {
|
|
262
|
+
const existing = getRoute(id);
|
|
263
|
+
if (!existing) return null;
|
|
264
|
+
const merged = {
|
|
265
|
+
...existing,
|
|
266
|
+
remote_jid: patch.remote_jid ?? existing.remote_jid,
|
|
267
|
+
agent_id: patch.agent_id ?? existing.agent_id,
|
|
268
|
+
label: patch.label !== undefined ? patch.label : existing.label,
|
|
269
|
+
silent_mode: patch.silent_mode !== undefined ? patch.silent_mode ? 1 : 0 : existing.silent_mode,
|
|
270
|
+
respond_to: patch.respond_to ?? existing.respond_to,
|
|
271
|
+
updated_at: now()
|
|
459
272
|
};
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
273
|
+
(0,_lib_db__WEBPACK_IMPORTED_MODULE_1__/* .getDb */ .Lf)().prepare("UPDATE bridge_routes SET remote_jid=?, agent_id=?, label=?, silent_mode=?, respond_to=?, updated_at=? WHERE id=?").run(merged.remote_jid, merged.agent_id, merged.label, merged.silent_mode, merged.respond_to, merged.updated_at, id);
|
|
274
|
+
return merged;
|
|
275
|
+
}
|
|
276
|
+
function deleteRoute(id) {
|
|
277
|
+
const r = (0,_lib_db__WEBPACK_IMPORTED_MODULE_1__/* .getDb */ .Lf)().prepare("DELETE FROM bridge_routes WHERE id=?").run(id);
|
|
278
|
+
return r.changes > 0;
|
|
279
|
+
}
|
|
280
|
+
// Catch-up watermark. The WhatsApp adapter calls this with the
|
|
281
|
+
// messageTimestamp (epoch ms) of the most recent inbound that reached the
|
|
282
|
+
// agent. Only writes when `ts` is strictly greater than the persisted
|
|
283
|
+
// value so out-of-order replays from the server-side backlog can't roll
|
|
284
|
+
// the watermark backward. No-op when no route exists for the pair
|
|
285
|
+
// (catch-all routing handles those at the dispatcher layer).
|
|
286
|
+
function bumpRouteLastSeenTs(bridgeId, remoteJid, ts) {
|
|
287
|
+
if (!Number.isFinite(ts) || ts <= 0) return;
|
|
288
|
+
(0,_lib_db__WEBPACK_IMPORTED_MODULE_1__/* .getDb */ .Lf)().prepare("UPDATE bridge_routes SET last_seen_ts=? WHERE bridge_id=? AND remote_jid=? AND (last_seen_ts IS NULL OR last_seen_ts < ?)").run(ts, bridgeId, remoteJid, ts);
|
|
289
|
+
}
|
|
290
|
+
// Per-chat watermarks for every explicitly routed chat on a bridge, loaded
|
|
291
|
+
// once per upsert batch. Each chat is gated only by its own progress: a
|
|
292
|
+
// bridge-wide maximum would drop chat B's offline backlog as soon as a newer
|
|
293
|
+
// message from chat A had been delivered.
|
|
294
|
+
function getRouteLastSeenTsMap(bridgeId) {
|
|
295
|
+
const rows = (0,_lib_db__WEBPACK_IMPORTED_MODULE_1__/* .getDb */ .Lf)().prepare("SELECT remote_jid, last_seen_ts FROM bridge_routes WHERE bridge_id=? AND last_seen_ts IS NOT NULL").all(bridgeId);
|
|
296
|
+
return new Map(rows.map((r)=>[
|
|
297
|
+
r.remote_jid,
|
|
298
|
+
r.last_seen_ts
|
|
299
|
+
]));
|
|
300
|
+
}
|
|
301
|
+
// ---------------------------------------------------------------------------
|
|
302
|
+
// Ignore-list CRUD (per-bridge chat blocklist)
|
|
303
|
+
//
|
|
304
|
+
// Independent from routes: an ignore entry short-circuits the router even
|
|
305
|
+
// when an explicit route or catch-all would otherwise match. The intent
|
|
306
|
+
// is "listen to everything EXCEPT these chats" — messages from ignored
|
|
307
|
+
// chats are dropped before any agent runs, so no history, no memory, no
|
|
308
|
+
// tools. Delete the entry to resume forwarding.
|
|
309
|
+
// ---------------------------------------------------------------------------
|
|
310
|
+
function listIgnores(bridgeId) {
|
|
311
|
+
return (0,_lib_db__WEBPACK_IMPORTED_MODULE_1__/* .getDb */ .Lf)().prepare("SELECT * FROM bridge_ignores WHERE bridge_id=? ORDER BY created_at ASC").all(bridgeId);
|
|
312
|
+
}
|
|
313
|
+
function isIgnored(bridgeId, remoteJid) {
|
|
314
|
+
const row = (0,_lib_db__WEBPACK_IMPORTED_MODULE_1__/* .getDb */ .Lf)().prepare("SELECT 1 FROM bridge_ignores WHERE bridge_id=? AND remote_jid=? LIMIT 1").get(bridgeId, remoteJid);
|
|
315
|
+
return !!row;
|
|
316
|
+
}
|
|
317
|
+
/**
|
|
318
|
+
* Add a chat to the bridge's ignore list. Idempotent — re-adding the
|
|
319
|
+
* same (bridge_id, remote_jid) throws a SQLite UNIQUE violation which
|
|
320
|
+
* the caller can surface as a 409. Callers who want upsert semantics
|
|
321
|
+
* should catch and update the label separately.
|
|
322
|
+
*/ function addIgnore(input) {
|
|
323
|
+
const id = (0,node_crypto__WEBPACK_IMPORTED_MODULE_0__.randomUUID)();
|
|
324
|
+
const t = now();
|
|
325
|
+
(0,_lib_db__WEBPACK_IMPORTED_MODULE_1__/* .getDb */ .Lf)().prepare(`INSERT INTO bridge_ignores (id, bridge_id, remote_jid, label, created_at)
|
|
326
|
+
VALUES (?, ?, ?, ?, ?)`).run(id, input.bridge_id, input.remote_jid, input.label ?? null, t);
|
|
327
|
+
return {
|
|
328
|
+
id,
|
|
329
|
+
bridge_id: input.bridge_id,
|
|
330
|
+
remote_jid: input.remote_jid,
|
|
331
|
+
label: input.label ?? null,
|
|
332
|
+
created_at: t
|
|
333
|
+
};
|
|
334
|
+
}
|
|
335
|
+
function removeIgnore(bridgeId, remoteJid) {
|
|
336
|
+
const r = (0,_lib_db__WEBPACK_IMPORTED_MODULE_1__/* .getDb */ .Lf)().prepare("DELETE FROM bridge_ignores WHERE bridge_id=? AND remote_jid=?").run(bridgeId, remoteJid);
|
|
337
|
+
return r.changes > 0;
|
|
467
338
|
}
|
|
468
|
-
|
|
469
|
-
//# sourceMappingURL=app-route.js.map
|
|
470
339
|
|
|
471
340
|
|
|
472
341
|
/***/ }),
|
|
473
342
|
|
|
474
|
-
/***/
|
|
475
|
-
/***/ ((
|
|
343
|
+
/***/ 489704:
|
|
344
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
345
|
+
|
|
346
|
+
__webpack_require__.r(__webpack_exports__);
|
|
347
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
348
|
+
/* harmony export */ DELETE: () => (/* binding */ DELETE)
|
|
349
|
+
/* harmony export */ });
|
|
350
|
+
/* harmony import */ var next_server__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(945592);
|
|
351
|
+
/* harmony import */ var _lib_stores_bridges__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(478361);
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
async function DELETE(_req, { params }) {
|
|
355
|
+
const { id, remote_jid } = await params;
|
|
356
|
+
if (!(0,_lib_stores_bridges__WEBPACK_IMPORTED_MODULE_1__/* .getBridge */ .e1)(id)) return next_server__WEBPACK_IMPORTED_MODULE_0__.NextResponse.json({
|
|
357
|
+
error: "not found"
|
|
358
|
+
}, {
|
|
359
|
+
status: 404
|
|
360
|
+
});
|
|
361
|
+
const ok = (0,_lib_stores_bridges__WEBPACK_IMPORTED_MODULE_1__/* .removeIgnore */ .nE)(id, decodeURIComponent(remote_jid));
|
|
362
|
+
return next_server__WEBPACK_IMPORTED_MODULE_0__.NextResponse.json({
|
|
363
|
+
deleted: ok
|
|
364
|
+
}, {
|
|
365
|
+
status: ok ? 200 : 404
|
|
366
|
+
});
|
|
367
|
+
}
|
|
476
368
|
|
|
477
|
-
module.exports = require("node:fs/promises");
|
|
478
369
|
|
|
479
370
|
/***/ }),
|
|
480
371
|
|
|
481
|
-
/***/
|
|
372
|
+
/***/ 529294:
|
|
482
373
|
/***/ ((module) => {
|
|
483
374
|
|
|
484
|
-
module.exports = require("
|
|
375
|
+
module.exports = require("next/dist/server/app-render/work-async-storage.external.js");
|
|
485
376
|
|
|
486
377
|
/***/ }),
|
|
487
378
|
|
|
488
|
-
/***/
|
|
379
|
+
/***/ 594735:
|
|
489
380
|
/***/ ((module) => {
|
|
490
381
|
|
|
491
|
-
module.exports = require("
|
|
382
|
+
module.exports = require("events");
|
|
492
383
|
|
|
493
384
|
/***/ }),
|
|
494
385
|
|
|
495
|
-
/***/
|
|
386
|
+
/***/ 629021:
|
|
496
387
|
/***/ ((module) => {
|
|
497
388
|
|
|
498
|
-
module.exports = require("
|
|
389
|
+
module.exports = require("fs");
|
|
499
390
|
|
|
500
391
|
/***/ }),
|
|
501
392
|
|
|
502
|
-
/***/
|
|
393
|
+
/***/ 638522:
|
|
503
394
|
/***/ ((module) => {
|
|
504
395
|
|
|
505
|
-
module.exports = require("node:
|
|
396
|
+
module.exports = require("node:zlib");
|
|
506
397
|
|
|
507
398
|
/***/ }),
|
|
508
399
|
|
|
509
|
-
/***/
|
|
400
|
+
/***/ 663033:
|
|
510
401
|
/***/ ((module) => {
|
|
511
402
|
|
|
512
|
-
module.exports = require("
|
|
403
|
+
module.exports = require("next/dist/server/app-render/work-unit-async-storage.external.js");
|
|
513
404
|
|
|
514
405
|
/***/ }),
|
|
515
406
|
|
|
516
|
-
/***/
|
|
407
|
+
/***/ 710846:
|
|
517
408
|
/***/ ((module) => {
|
|
518
409
|
|
|
519
|
-
module.exports = require("next/dist/
|
|
410
|
+
module.exports = require("next/dist/compiled/next-server/app-page.runtime.prod.js");
|
|
520
411
|
|
|
521
412
|
/***/ }),
|
|
522
413
|
|
|
523
|
-
/***/
|
|
414
|
+
/***/ 731421:
|
|
524
415
|
/***/ ((module) => {
|
|
525
416
|
|
|
526
|
-
module.exports = require("node:
|
|
417
|
+
module.exports = require("node:child_process");
|
|
527
418
|
|
|
528
419
|
/***/ }),
|
|
529
420
|
|
|
530
|
-
/***/
|
|
421
|
+
/***/ 744870:
|
|
531
422
|
/***/ ((module) => {
|
|
532
423
|
|
|
533
|
-
module.exports = require("
|
|
424
|
+
module.exports = require("next/dist/compiled/next-server/app-route.runtime.prod.js");
|
|
534
425
|
|
|
535
426
|
/***/ }),
|
|
536
427
|
|
|
537
|
-
/***/
|
|
428
|
+
/***/ 775919:
|
|
538
429
|
/***/ ((module) => {
|
|
539
430
|
|
|
540
|
-
module.exports = require("
|
|
431
|
+
module.exports = require("node:worker_threads");
|
|
541
432
|
|
|
542
433
|
/***/ }),
|
|
543
434
|
|
|
544
|
-
/***/
|
|
435
|
+
/***/ 777030:
|
|
545
436
|
/***/ ((module) => {
|
|
546
437
|
|
|
547
|
-
module.exports = require("
|
|
438
|
+
module.exports = require("node:net");
|
|
548
439
|
|
|
549
440
|
/***/ }),
|
|
550
441
|
|
|
551
|
-
/***/
|
|
442
|
+
/***/ 781630:
|
|
552
443
|
/***/ ((module) => {
|
|
553
444
|
|
|
554
|
-
module.exports = require("
|
|
445
|
+
module.exports = require("http");
|
|
555
446
|
|
|
556
447
|
/***/ }),
|
|
557
448
|
|
|
558
|
-
/***/
|
|
559
|
-
/***/ ((
|
|
449
|
+
/***/ 811444:
|
|
450
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
560
451
|
|
|
561
|
-
|
|
452
|
+
__webpack_require__.r(__webpack_exports__);
|
|
453
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
454
|
+
/* harmony export */ handler: () => (/* binding */ handler),
|
|
455
|
+
/* harmony export */ patchFetch: () => (/* binding */ patchFetch),
|
|
456
|
+
/* harmony export */ routeModule: () => (/* binding */ routeModule),
|
|
457
|
+
/* harmony export */ serverHooks: () => (/* binding */ serverHooks),
|
|
458
|
+
/* harmony export */ workAsyncStorage: () => (/* binding */ workAsyncStorage),
|
|
459
|
+
/* harmony export */ workUnitAsyncStorage: () => (/* binding */ workUnitAsyncStorage)
|
|
460
|
+
/* harmony export */ });
|
|
461
|
+
/* harmony import */ var next_dist_server_route_modules_app_route_module_compiled__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(319225);
|
|
462
|
+
/* 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__);
|
|
463
|
+
/* harmony import */ var next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(684006);
|
|
464
|
+
/* harmony import */ var next_dist_server_lib_patch_fetch__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8317);
|
|
465
|
+
/* 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__);
|
|
466
|
+
/* harmony import */ var next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(799373);
|
|
467
|
+
/* 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__);
|
|
468
|
+
/* harmony import */ var next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(434775);
|
|
469
|
+
/* 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__);
|
|
470
|
+
/* harmony import */ var next_dist_server_app_render_manifests_singleton__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(524235);
|
|
471
|
+
/* 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__);
|
|
472
|
+
/* harmony import */ var next_dist_shared_lib_router_utils_app_paths__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(200261);
|
|
473
|
+
/* 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__);
|
|
474
|
+
/* harmony import */ var next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(754365);
|
|
475
|
+
/* 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__);
|
|
476
|
+
/* harmony import */ var next_dist_server_web_spec_extension_adapters_next_request__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(590771);
|
|
477
|
+
/* 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__);
|
|
478
|
+
/* harmony import */ var next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(473461);
|
|
479
|
+
/* 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__);
|
|
480
|
+
/* harmony import */ var next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(767798);
|
|
481
|
+
/* harmony import */ var next_dist_server_send_response__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(192280);
|
|
482
|
+
/* harmony import */ var next_dist_server_web_utils__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(662018);
|
|
483
|
+
/* 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__);
|
|
484
|
+
/* harmony import */ var next_dist_server_lib_cache_control__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(445696);
|
|
485
|
+
/* harmony import */ var next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(347929);
|
|
486
|
+
/* harmony import */ var next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__);
|
|
487
|
+
/* harmony import */ var next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(986439);
|
|
488
|
+
/* 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__);
|
|
489
|
+
/* harmony import */ var next_dist_server_lib_route_cache_key__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(710246);
|
|
490
|
+
/* 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__);
|
|
491
|
+
/* harmony import */ var next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(137527);
|
|
492
|
+
/* 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__);
|
|
562
493
|
|
|
563
|
-
/***/ }),
|
|
564
494
|
|
|
565
|
-
/***/ 380481:
|
|
566
|
-
/***/ ((module) => {
|
|
567
495
|
|
|
568
|
-
module.exports = require("node:readline");
|
|
569
496
|
|
|
570
|
-
/***/ }),
|
|
571
497
|
|
|
572
|
-
/***/ 399253:
|
|
573
|
-
/***/ ((module) => {
|
|
574
498
|
|
|
575
|
-
module.exports = import("@huggingface/transformers");;
|
|
576
499
|
|
|
577
|
-
/***/ }),
|
|
578
500
|
|
|
579
|
-
/***/ 419121:
|
|
580
|
-
/***/ ((module) => {
|
|
581
501
|
|
|
582
|
-
module.exports = require("next/dist/server/app-render/action-async-storage.external.js");
|
|
583
502
|
|
|
584
|
-
/***/ }),
|
|
585
503
|
|
|
586
|
-
/***/ 455511:
|
|
587
|
-
/***/ ((module) => {
|
|
588
504
|
|
|
589
|
-
module.exports = require("crypto");
|
|
590
505
|
|
|
591
|
-
/***/ }),
|
|
592
506
|
|
|
593
|
-
/***/ 478361:
|
|
594
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
595
507
|
|
|
596
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
597
|
-
/* harmony export */ $6: () => (/* binding */ findRoute),
|
|
598
|
-
/* harmony export */ Bn: () => (/* binding */ listRoutes),
|
|
599
|
-
/* harmony export */ DL: () => (/* binding */ updateRoute),
|
|
600
|
-
/* harmony export */ GB: () => (/* binding */ addIgnore),
|
|
601
|
-
/* harmony export */ KC: () => (/* binding */ bumpRouteLastSeenTs),
|
|
602
|
-
/* harmony export */ OO: () => (/* binding */ createBridge),
|
|
603
|
-
/* harmony export */ Pu: () => (/* binding */ deleteBridge),
|
|
604
|
-
/* harmony export */ V7: () => (/* binding */ deleteRoute),
|
|
605
|
-
/* harmony export */ X9: () => (/* binding */ listBridges),
|
|
606
|
-
/* harmony export */ aM: () => (/* binding */ getRoute),
|
|
607
|
-
/* harmony export */ e1: () => (/* binding */ getBridge),
|
|
608
|
-
/* harmony export */ gH: () => (/* binding */ getRouteLastSeenTsMap),
|
|
609
|
-
/* harmony export */ kZ: () => (/* binding */ listIgnores),
|
|
610
|
-
/* harmony export */ nE: () => (/* binding */ removeIgnore),
|
|
611
|
-
/* harmony export */ pi: () => (/* binding */ isIgnored),
|
|
612
|
-
/* harmony export */ po: () => (/* binding */ updateBridge),
|
|
613
|
-
/* harmony export */ un: () => (/* binding */ createRoute)
|
|
614
|
-
/* harmony export */ });
|
|
615
|
-
/* harmony import */ var node_crypto__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(977598);
|
|
616
|
-
/* harmony import */ var node_crypto__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(node_crypto__WEBPACK_IMPORTED_MODULE_0__);
|
|
617
|
-
/* harmony import */ var _lib_db__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(251244);
|
|
618
|
-
/* harmony import */ var _lib_db_transaction__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(999043);
|
|
619
508
|
|
|
620
509
|
|
|
621
510
|
|
|
622
|
-
|
|
623
|
-
//
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
status: patch.status ?? existing.status,
|
|
660
|
-
qr: patch.qr !== undefined ? patch.qr : existing.qr,
|
|
661
|
-
last_error: patch.last_error !== undefined ? patch.last_error : existing.last_error,
|
|
662
|
-
paired_id: patch.paired_id !== undefined ? patch.paired_id : existing.paired_id,
|
|
663
|
-
forward_group_profile_updates: patch.forward_group_profile_updates !== undefined ? patch.forward_group_profile_updates : existing.forward_group_profile_updates,
|
|
664
|
-
forward_group_participants_updates: patch.forward_group_participants_updates !== undefined ? patch.forward_group_participants_updates : existing.forward_group_participants_updates,
|
|
665
|
-
updated_at: now()
|
|
666
|
-
};
|
|
667
|
-
(0,_lib_db__WEBPACK_IMPORTED_MODULE_1__/* .getDb */ .Lf)().prepare(`UPDATE bridges
|
|
668
|
-
SET name=?, enabled=?, status=?, qr=?, last_error=?, paired_id=?, forward_group_profile_updates=?, forward_group_participants_updates=?, updated_at=?
|
|
669
|
-
WHERE id=?`).run(merged.name, merged.enabled, merged.status, merged.qr, merged.last_error, merged.paired_id, merged.forward_group_profile_updates, merged.forward_group_participants_updates, merged.updated_at, id);
|
|
670
|
-
return merged;
|
|
671
|
-
}
|
|
672
|
-
function deleteBridge(id) {
|
|
673
|
-
return (0,_lib_db_transaction__WEBPACK_IMPORTED_MODULE_2__/* .withDbTransaction */ .J)(()=>{
|
|
674
|
-
const db = (0,_lib_db__WEBPACK_IMPORTED_MODULE_1__/* .getDb */ .Lf)();
|
|
675
|
-
db.prepare("DELETE FROM bridge_routes WHERE bridge_id=?").run(id);
|
|
676
|
-
db.prepare("DELETE FROM bridge_ignores WHERE bridge_id=?").run(id);
|
|
677
|
-
const r = db.prepare("DELETE FROM bridges WHERE id=?").run(id);
|
|
678
|
-
return r.changes > 0;
|
|
511
|
+
// We inject the nextConfigOutput here so that we can use them in the route
|
|
512
|
+
// module.
|
|
513
|
+
const nextConfigOutput = "standalone"
|
|
514
|
+
const routeModule = new next_dist_server_route_modules_app_route_module_compiled__WEBPACK_IMPORTED_MODULE_0__.AppRouteRouteModule({
|
|
515
|
+
definition: {
|
|
516
|
+
kind: next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__.RouteKind.APP_ROUTE,
|
|
517
|
+
page: "/api/v1/bridges/[id]/ignores/[remote_jid]/route",
|
|
518
|
+
pathname: "/api/v1/bridges/[id]/ignores/[remote_jid]",
|
|
519
|
+
filename: "route",
|
|
520
|
+
bundlePath: "app/api/v1/bridges/[id]/ignores/[remote_jid]/route"
|
|
521
|
+
},
|
|
522
|
+
distDir: ".next" || 0,
|
|
523
|
+
relativeProjectDir: false || '',
|
|
524
|
+
resolvedPagePath: "/home/runner/work/jarela/jarela/app/api/v1/bridges/[id]/ignores/[remote_jid]/route.ts",
|
|
525
|
+
nextConfigOutput,
|
|
526
|
+
// The lazy require factory ensures that:
|
|
527
|
+
// - In dev: devRequestTimingInternalsEnd is set before userland executes,
|
|
528
|
+
// correctly attributing module load time to application-code rather than
|
|
529
|
+
// framework internals.
|
|
530
|
+
// - In all modes: async modules (route files with top-level await) are
|
|
531
|
+
// handled correctly — require() returns a Promise for such modules, which
|
|
532
|
+
// ensureUserland() awaits before the first request is handled.
|
|
533
|
+
userland: ()=>__webpack_require__(489704),
|
|
534
|
+
// In Turbopack dev mode, also provide a synchronous per-request getter so
|
|
535
|
+
// server HMR updates are picked up without re-executing the entry chunk.
|
|
536
|
+
// Using require() (synchronous) avoids adding async overhead that would be
|
|
537
|
+
// incorrectly attributed to application-code time in devRequestTiming.
|
|
538
|
+
... false ? 0 : {}
|
|
539
|
+
});
|
|
540
|
+
// Pull out the exports that we need to expose from the module. This should
|
|
541
|
+
// be eliminated when we've moved the other routes to the new format. These
|
|
542
|
+
// are used to hook into the route.
|
|
543
|
+
const { workAsyncStorage, workUnitAsyncStorage, serverHooks } = routeModule;
|
|
544
|
+
function patchFetch() {
|
|
545
|
+
return (0,next_dist_server_lib_patch_fetch__WEBPACK_IMPORTED_MODULE_2__.patchFetch)({
|
|
546
|
+
workAsyncStorage,
|
|
547
|
+
workUnitAsyncStorage
|
|
679
548
|
});
|
|
680
549
|
}
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
550
|
+
|
|
551
|
+
async function handler(req, res, ctx) {
|
|
552
|
+
if (ctx.requestMeta) {
|
|
553
|
+
(0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.setRequestMeta)(req, ctx.requestMeta);
|
|
554
|
+
}
|
|
555
|
+
if (routeModule.isDev) {
|
|
556
|
+
(0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.addRequestMeta)(req, 'devRequestTimingInternalsEnd', process.hrtime.bigint());
|
|
557
|
+
}
|
|
558
|
+
let srcPage = "/api/v1/bridges/[id]/ignores/[remote_jid]/route";
|
|
559
|
+
// turbopack doesn't normalize `/index` in the page name
|
|
560
|
+
// so we need to to process dynamic routes properly
|
|
561
|
+
// TODO: fix turbopack providing differing value from webpack
|
|
562
|
+
if (false) {} else if (srcPage === '/index') {
|
|
563
|
+
// we always normalize /index specifically
|
|
564
|
+
srcPage = '/';
|
|
565
|
+
}
|
|
566
|
+
const multiZoneDraftMode = false;
|
|
567
|
+
// Registering `instrumentation.ts` usually installs the tracer provider, so
|
|
568
|
+
// do it before starting the request span. The span is started before
|
|
569
|
+
// `prepare`, so route module preparation is part of the request's trace.
|
|
570
|
+
// When this request triggers registration, the lifecycle spans of
|
|
571
|
+
// `instrumentation.ts` are emitted inside the request span.
|
|
572
|
+
const { instrumentation } = await routeModule.ensureInstrumentation(req, {
|
|
573
|
+
deferSpans: true
|
|
574
|
+
});
|
|
575
|
+
return routeModule.traceRequest(req, {
|
|
576
|
+
tracer: (0,next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.getTracer)(),
|
|
577
|
+
spanName: `${req.method || 'GET'} ${srcPage}`,
|
|
578
|
+
httpTarget: req.url,
|
|
579
|
+
instrumentation
|
|
580
|
+
}, (requestSpan, requestRootSpan)=>handleRequest(req, res, ctx, srcPage, multiZoneDraftMode, requestSpan, requestRootSpan));
|
|
692
581
|
}
|
|
693
|
-
function
|
|
694
|
-
const
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
582
|
+
async function handleRequest(req, res, ctx, srcPage, multiZoneDraftMode, requestSpan, requestRootSpan) {
|
|
583
|
+
const prepareResult = await routeModule.prepare(req, res, {
|
|
584
|
+
srcPage,
|
|
585
|
+
multiZoneDraftMode
|
|
586
|
+
});
|
|
587
|
+
if (!prepareResult) {
|
|
588
|
+
res.statusCode = 400;
|
|
589
|
+
res.end('Bad Request');
|
|
590
|
+
ctx.waitUntil == null ? void 0 : ctx.waitUntil.call(ctx, Promise.resolve());
|
|
591
|
+
return null;
|
|
592
|
+
}
|
|
593
|
+
const { buildId, deploymentId, params, nextConfig, parsedUrl, isDraftMode, prerenderManifest, routerServerContext, isOnDemandRevalidate, revalidateOnlyGenerated, resolvedPathname, clientReferenceManifest, serverActionsManifest, previewProps } = prepareResult;
|
|
594
|
+
const normalizedSrcPage = (0,next_dist_shared_lib_router_utils_app_paths__WEBPACK_IMPORTED_MODULE_6__.normalizeAppPath)(srcPage);
|
|
595
|
+
// Only this route's prerenders can establish ISR or admit generated params.
|
|
596
|
+
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]));
|
|
597
|
+
let isIsr = Boolean(prerenderManifest.dynamicRoutes[normalizedSrcPage] || isPrerendered);
|
|
598
|
+
const render404 = async ()=>{
|
|
599
|
+
// TODO: should route-module itself handle rendering the 404
|
|
600
|
+
if (routerServerContext == null ? void 0 : routerServerContext.render404) {
|
|
601
|
+
await routerServerContext.render404(req, res, parsedUrl, false);
|
|
602
|
+
} else {
|
|
603
|
+
res.end('This page could not be found');
|
|
604
|
+
}
|
|
605
|
+
return null;
|
|
711
606
|
};
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
607
|
+
if (isIsr && !isDraftMode) {
|
|
608
|
+
const prerenderInfo = prerenderManifest.dynamicRoutes[normalizedSrcPage];
|
|
609
|
+
if (prerenderInfo) {
|
|
610
|
+
if (prerenderInfo.fallback === false && !isPrerendered) {
|
|
611
|
+
if (nextConfig.adapterPath) {
|
|
612
|
+
return await render404();
|
|
613
|
+
}
|
|
614
|
+
throw new next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_15__.NoFallbackError();
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
let cacheKey = null;
|
|
619
|
+
if (isIsr && !routeModule.isDev && !isDraftMode) {
|
|
620
|
+
cacheKey = resolvedPathname;
|
|
621
|
+
// ensure /index and / is normalized to one key
|
|
622
|
+
cacheKey = cacheKey === '/index' ? '/' : cacheKey;
|
|
623
|
+
}
|
|
624
|
+
// Before rendering (which initializes component tree modules), we have to
|
|
625
|
+
// set the reference manifests to our global store so Server Action's
|
|
626
|
+
// encryption util can access to them at the top level of the page module.
|
|
627
|
+
if (serverActionsManifest && clientReferenceManifest) {
|
|
628
|
+
(0,next_dist_server_app_render_manifests_singleton__WEBPACK_IMPORTED_MODULE_5__.setManifestsSingleton)({
|
|
629
|
+
page: srcPage,
|
|
630
|
+
clientReferenceManifest,
|
|
631
|
+
serverActionsManifest
|
|
632
|
+
});
|
|
633
|
+
}
|
|
634
|
+
const method = req.method || 'GET';
|
|
635
|
+
const tracer = (0,next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.getTracer)();
|
|
636
|
+
const isWrappedByNextServer = Boolean(routerServerContext == null ? void 0 : routerServerContext.isWrappedByNextServer);
|
|
637
|
+
const isMinimalMode = Boolean((0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.getRequestMeta)(req, 'minimalMode'));
|
|
638
|
+
const incrementalCache = (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.getRequestMeta)(req, 'incrementalCache') || await routeModule.getIncrementalCache(req, nextConfig, previewProps, prerenderManifest, isMinimalMode);
|
|
639
|
+
incrementalCache == null ? void 0 : incrementalCache.resetRequestCache();
|
|
640
|
+
globalThis.__incrementalCache = incrementalCache;
|
|
641
|
+
const context = {
|
|
642
|
+
params,
|
|
643
|
+
previewProps,
|
|
644
|
+
renderOpts: {
|
|
645
|
+
experimental: {
|
|
646
|
+
authInterrupts: Boolean(nextConfig.experimental.authInterrupts),
|
|
647
|
+
useCacheTimeout: nextConfig.experimental.useCacheTimeout,
|
|
648
|
+
durableUseCacheEntries: Boolean(nextConfig.experimental.durableUseCacheEntries)
|
|
649
|
+
},
|
|
650
|
+
cacheComponents: Boolean(nextConfig.cacheComponents),
|
|
651
|
+
validationLevel: nextConfig.experimental.instantInsights.validationLevel,
|
|
652
|
+
isDraftMode,
|
|
653
|
+
incrementalCache,
|
|
654
|
+
hmrRefreshHash: (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.getRequestMeta)(req, 'hmrRefreshHash'),
|
|
655
|
+
cacheLifeProfiles: nextConfig.cacheLife,
|
|
656
|
+
staticPageGenerationTimeout: nextConfig.staticPageGenerationTimeout,
|
|
657
|
+
waitUntil: ctx.waitUntil,
|
|
658
|
+
onClose: (cb)=>{
|
|
659
|
+
res.on('close', cb);
|
|
660
|
+
},
|
|
661
|
+
onAfterTaskError: undefined
|
|
662
|
+
},
|
|
663
|
+
sharedContext: {
|
|
664
|
+
buildId,
|
|
665
|
+
deploymentId
|
|
666
|
+
}
|
|
724
667
|
};
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
//
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
//
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
668
|
+
const nodeNextReq = new next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_7__.NodeNextRequest(req);
|
|
669
|
+
const nodeNextRes = new next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_7__.NodeNextResponse(res);
|
|
670
|
+
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));
|
|
671
|
+
const responseGenerator = async ({ previousCacheEntry })=>{
|
|
672
|
+
try {
|
|
673
|
+
if (!isMinimalMode && isOnDemandRevalidate && revalidateOnlyGenerated && !previousCacheEntry) {
|
|
674
|
+
res.statusCode = 404;
|
|
675
|
+
// on-demand revalidate always sets this header
|
|
676
|
+
res.setHeader('x-nextjs-cache', 'REVALIDATED');
|
|
677
|
+
res.end('This page could not be found');
|
|
678
|
+
return null;
|
|
679
|
+
}
|
|
680
|
+
const response = cacheKey === null ? await routeModule.handle(nextReq, context) : await routeModule.prerender(nextReq, context);
|
|
681
|
+
req.fetchMetrics = context.renderOpts.fetchMetrics;
|
|
682
|
+
let pendingWaitUntil = context.renderOpts.pendingWaitUntil;
|
|
683
|
+
// Attempt using provided waitUntil if available
|
|
684
|
+
// if it's not we fallback to sendResponse's handling
|
|
685
|
+
if (pendingWaitUntil) {
|
|
686
|
+
if (ctx.waitUntil) {
|
|
687
|
+
ctx.waitUntil(pendingWaitUntil);
|
|
688
|
+
pendingWaitUntil = undefined;
|
|
689
|
+
}
|
|
690
|
+
}
|
|
691
|
+
const cacheTags = context.renderOpts.collectedTags;
|
|
692
|
+
// If the request is for a static response, we can cache it so long
|
|
693
|
+
// as it's not edge.
|
|
694
|
+
if (isIsr) {
|
|
695
|
+
const blob = await response.blob();
|
|
696
|
+
// Copy the headers from the response.
|
|
697
|
+
const headers = (0,next_dist_server_web_utils__WEBPACK_IMPORTED_MODULE_12__.toNodeOutgoingHttpHeaders)(response.headers);
|
|
698
|
+
if (cacheTags) {
|
|
699
|
+
headers[next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__.NEXT_CACHE_TAGS_HEADER] = cacheTags;
|
|
700
|
+
}
|
|
701
|
+
if (!headers['content-type'] && blob.type) {
|
|
702
|
+
headers['content-type'] = blob.type;
|
|
703
|
+
}
|
|
704
|
+
const revalidate = typeof context.renderOpts.collectedRevalidate === 'undefined' || context.renderOpts.collectedRevalidate >= next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__.INFINITE_CACHE ? false : context.renderOpts.collectedRevalidate;
|
|
705
|
+
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
|
|
706
|
+
// explicit `expire` (e.g. via `cacheLife`). This mirrors the
|
|
707
|
+
// build-time fallback in `build/index.ts` so cache entries
|
|
708
|
+
// and the response Cache-Control header agree on the route's
|
|
709
|
+
// effective expire. Routes that opt out of revalidation
|
|
710
|
+
// (`revalidate: false`) or that are dynamic (`revalidate: 0`)
|
|
711
|
+
// keep `expire: undefined`.
|
|
712
|
+
revalidate !== false && revalidate > 0 ? nextConfig.expireTime : undefined : context.renderOpts.collectedExpire;
|
|
713
|
+
// Create the cache entry for the response.
|
|
714
|
+
const cacheEntry = {
|
|
715
|
+
value: {
|
|
716
|
+
kind: next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__.CachedRouteKind.APP_ROUTE,
|
|
717
|
+
status: response.status,
|
|
718
|
+
body: Buffer.from(await blob.arrayBuffer()),
|
|
719
|
+
headers
|
|
720
|
+
},
|
|
721
|
+
cacheControl: {
|
|
722
|
+
revalidate,
|
|
723
|
+
expire
|
|
724
|
+
}
|
|
725
|
+
};
|
|
726
|
+
return cacheEntry;
|
|
727
|
+
} else {
|
|
728
|
+
// send response without caching if not ISR
|
|
729
|
+
await (0,next_dist_server_send_response__WEBPACK_IMPORTED_MODULE_11__/* .sendResponse */ .I)(nodeNextReq, nodeNextRes, response, pendingWaitUntil);
|
|
730
|
+
return null;
|
|
731
|
+
}
|
|
732
|
+
} catch (err) {
|
|
733
|
+
// if this is a background revalidate we need to report
|
|
734
|
+
// the request error here as it won't be bubbled
|
|
735
|
+
if (previousCacheEntry == null ? void 0 : previousCacheEntry.isStale) {
|
|
736
|
+
const silenceLog = false;
|
|
737
|
+
await routeModule.onRequestError(req, err, {
|
|
738
|
+
routerKind: 'App Router',
|
|
739
|
+
routePath: srcPage,
|
|
740
|
+
routeType: 'route',
|
|
741
|
+
revalidateReason: (0,next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_10__.getRevalidateReason)({
|
|
742
|
+
isStaticGeneration: cacheKey !== null,
|
|
743
|
+
isOnDemandRevalidate
|
|
744
|
+
})
|
|
745
|
+
}, silenceLog, routerServerContext);
|
|
746
|
+
}
|
|
747
|
+
throw err;
|
|
748
|
+
}
|
|
785
749
|
};
|
|
750
|
+
const handleResponse = async (currentSpan)=>{
|
|
751
|
+
try {
|
|
752
|
+
var _cacheEntry_value;
|
|
753
|
+
const cacheEntry = await routeModule.handleResponse({
|
|
754
|
+
req,
|
|
755
|
+
nextConfig,
|
|
756
|
+
cacheKey,
|
|
757
|
+
routeKind: next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__.RouteKind.APP_ROUTE,
|
|
758
|
+
isFallback: false,
|
|
759
|
+
previewProps,
|
|
760
|
+
prerenderManifest,
|
|
761
|
+
isRoutePPREnabled: false,
|
|
762
|
+
isOnDemandRevalidate,
|
|
763
|
+
revalidateOnlyGenerated,
|
|
764
|
+
responseGenerator,
|
|
765
|
+
waitUntil: ctx.waitUntil,
|
|
766
|
+
isMinimalMode
|
|
767
|
+
});
|
|
768
|
+
if (cacheEntry !== null && 'error' in cacheEntry) {
|
|
769
|
+
throw cacheEntry.error;
|
|
770
|
+
}
|
|
771
|
+
// we don't create a cacheEntry for ISR
|
|
772
|
+
if (!isIsr) {
|
|
773
|
+
return;
|
|
774
|
+
}
|
|
775
|
+
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) {
|
|
776
|
+
var _cacheEntry_value1;
|
|
777
|
+
throw new Error(`Invariant: app-route received invalid cache entry ${cacheEntry == null ? void 0 : (_cacheEntry_value1 = cacheEntry.value) == null ? void 0 : _cacheEntry_value1.kind}`);
|
|
778
|
+
}
|
|
779
|
+
if (!isMinimalMode) {
|
|
780
|
+
res.setHeader('x-nextjs-cache', isOnDemandRevalidate ? 'REVALIDATED' : cacheEntry.isMiss ? 'MISS' : cacheEntry.isStale ? 'STALE' : 'HIT');
|
|
781
|
+
}
|
|
782
|
+
// Draft mode should never be cached
|
|
783
|
+
if (isDraftMode) {
|
|
784
|
+
res.setHeader('Cache-Control', 'private, no-cache, no-store, max-age=0, must-revalidate');
|
|
785
|
+
}
|
|
786
|
+
const headers = (0,next_dist_server_web_utils__WEBPACK_IMPORTED_MODULE_12__.fromNodeOutgoingHttpHeaders)(cacheEntry.value.headers);
|
|
787
|
+
if (!(isMinimalMode && isIsr)) {
|
|
788
|
+
headers.delete(next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__.NEXT_CACHE_TAGS_HEADER);
|
|
789
|
+
}
|
|
790
|
+
// If cache control is already set on the response we don't
|
|
791
|
+
// override it to allow users to customize it via next.config
|
|
792
|
+
if (cacheEntry.cacheControl && !res.getHeader('Cache-Control') && !headers.get('Cache-Control')) {
|
|
793
|
+
headers.set('Cache-Control', (0,next_dist_server_lib_cache_control__WEBPACK_IMPORTED_MODULE_13__.getCacheControlHeader)(cacheEntry.cacheControl));
|
|
794
|
+
}
|
|
795
|
+
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'.
|
|
796
|
+
new Response(cacheEntry.value.body, {
|
|
797
|
+
headers,
|
|
798
|
+
status: cacheEntry.value.status || 200
|
|
799
|
+
}));
|
|
800
|
+
return;
|
|
801
|
+
} catch (err) {
|
|
802
|
+
if (!(err instanceof next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_15__.NoFallbackError)) {
|
|
803
|
+
const silenceLog = false;
|
|
804
|
+
await routeModule.onRequestError(req, err, {
|
|
805
|
+
routerKind: 'App Router',
|
|
806
|
+
routePath: normalizedSrcPage,
|
|
807
|
+
routeType: 'route',
|
|
808
|
+
revalidateReason: (0,next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_10__.getRevalidateReason)({
|
|
809
|
+
isStaticGeneration: cacheKey !== null,
|
|
810
|
+
isOnDemandRevalidate
|
|
811
|
+
})
|
|
812
|
+
}, silenceLog, routerServerContext);
|
|
813
|
+
}
|
|
814
|
+
// rethrow so that we can handle serving error page
|
|
815
|
+
// If this is during static generation, throw the error again.
|
|
816
|
+
if (isIsr) throw err;
|
|
817
|
+
// Otherwise, send a 500 response unless the original response has
|
|
818
|
+
// already committed. In that case, preserve its status code for
|
|
819
|
+
// telemetry while still recording the failure and terminating a response
|
|
820
|
+
// that the failed pipeline left open.
|
|
821
|
+
if (res.headersSent) {
|
|
822
|
+
if (currentSpan) {
|
|
823
|
+
const error = err instanceof Error ? err : new Error('Unknown app route error');
|
|
824
|
+
currentSpan.recordException(error);
|
|
825
|
+
currentSpan.setStatus({
|
|
826
|
+
code: next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.SpanStatusCode.ERROR,
|
|
827
|
+
message: error.message
|
|
828
|
+
});
|
|
829
|
+
currentSpan.setAttribute('error.type', error.name);
|
|
830
|
+
}
|
|
831
|
+
if (!res.writableEnded && !res.destroyed) {
|
|
832
|
+
res.end();
|
|
833
|
+
}
|
|
834
|
+
} else {
|
|
835
|
+
await (0,next_dist_server_send_response__WEBPACK_IMPORTED_MODULE_11__/* .sendResponse */ .I)(nodeNextReq, nodeNextRes, new Response(null, {
|
|
836
|
+
status: 500
|
|
837
|
+
}));
|
|
838
|
+
}
|
|
839
|
+
return;
|
|
840
|
+
} finally{
|
|
841
|
+
;
|
|
842
|
+
(()=>{
|
|
843
|
+
if (!currentSpan) {
|
|
844
|
+
return;
|
|
845
|
+
}
|
|
846
|
+
let statusCode = res.statusCode;
|
|
847
|
+
currentSpan.setAttributes({
|
|
848
|
+
'http.status_code': statusCode,
|
|
849
|
+
'next.rsc': false
|
|
850
|
+
});
|
|
851
|
+
if (statusCode && statusCode >= 500) {
|
|
852
|
+
// For 5xx status codes: SHOULD be set to 'Error' span status.
|
|
853
|
+
// x-ref: https://opentelemetry.io/docs/specs/semconv/http/http-spans/#status
|
|
854
|
+
currentSpan.setStatus({
|
|
855
|
+
code: next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.SpanStatusCode.ERROR
|
|
856
|
+
});
|
|
857
|
+
// For span status 'Error', SHOULD set 'error.type' attribute.
|
|
858
|
+
currentSpan.setAttribute('error.type', statusCode.toString());
|
|
859
|
+
}
|
|
860
|
+
const rootSpanAttributes = tracer.getRootSpanAttributes();
|
|
861
|
+
// We were unable to get attributes, probably OTEL is not enabled
|
|
862
|
+
if (!rootSpanAttributes) {
|
|
863
|
+
return;
|
|
864
|
+
}
|
|
865
|
+
if (rootSpanAttributes.get('next.span_type') !== next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_9__.BaseServerSpan.handleRequest) {
|
|
866
|
+
console.warn(`Unexpected root span type '${rootSpanAttributes.get('next.span_type')}'. Please report this Next.js issue https://github.com/vercel/next.js`);
|
|
867
|
+
return;
|
|
868
|
+
}
|
|
869
|
+
const route = rootSpanAttributes.get('next.route') || normalizedSrcPage;
|
|
870
|
+
const name = `${method} ${route}`;
|
|
871
|
+
currentSpan.setAttributes({
|
|
872
|
+
'next.route': route,
|
|
873
|
+
'http.route': route,
|
|
874
|
+
'next.span_name': name
|
|
875
|
+
});
|
|
876
|
+
currentSpan.updateName(name);
|
|
877
|
+
// Propagate http.route to the request's root span if it isn't the
|
|
878
|
+
// request span (e.g. a platform-created HTTP span in adapter
|
|
879
|
+
// deployments).
|
|
880
|
+
if (requestRootSpan && requestRootSpan !== currentSpan) {
|
|
881
|
+
requestRootSpan.setAttribute('http.route', route);
|
|
882
|
+
requestRootSpan.updateName(name);
|
|
883
|
+
}
|
|
884
|
+
})();
|
|
885
|
+
}
|
|
886
|
+
};
|
|
887
|
+
// When invoked directly, the request span was started before `prepare`;
|
|
888
|
+
// record the request target as normalized by it. next-server's request span
|
|
889
|
+
// already has it.
|
|
890
|
+
if (!isWrappedByNextServer && req.url !== undefined) {
|
|
891
|
+
requestSpan == null ? void 0 : requestSpan.setAttribute('http.target', req.url);
|
|
892
|
+
}
|
|
893
|
+
await handleResponse(requestSpan);
|
|
786
894
|
}
|
|
787
|
-
function removeIgnore(bridgeId, remoteJid) {
|
|
788
|
-
const r = (0,_lib_db__WEBPACK_IMPORTED_MODULE_1__/* .getDb */ .Lf)().prepare("DELETE FROM bridge_ignores WHERE bridge_id=? AND remote_jid=?").run(bridgeId, remoteJid);
|
|
789
|
-
return r.changes > 0;
|
|
790
|
-
}
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
/***/ }),
|
|
794
|
-
|
|
795
|
-
/***/ 489704:
|
|
796
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
797
|
-
|
|
798
|
-
__webpack_require__.r(__webpack_exports__);
|
|
799
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
800
|
-
/* harmony export */ DELETE: () => (/* binding */ DELETE)
|
|
801
|
-
/* harmony export */ });
|
|
802
|
-
/* harmony import */ var next_server__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(945592);
|
|
803
|
-
/* harmony import */ var _lib_stores_bridges__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(478361);
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
async function DELETE(_req, { params }) {
|
|
807
|
-
const { id, remote_jid } = await params;
|
|
808
|
-
if (!(0,_lib_stores_bridges__WEBPACK_IMPORTED_MODULE_1__/* .getBridge */ .e1)(id)) return next_server__WEBPACK_IMPORTED_MODULE_0__.NextResponse.json({
|
|
809
|
-
error: "not found"
|
|
810
|
-
}, {
|
|
811
|
-
status: 404
|
|
812
|
-
});
|
|
813
|
-
const ok = (0,_lib_stores_bridges__WEBPACK_IMPORTED_MODULE_1__/* .removeIgnore */ .nE)(id, decodeURIComponent(remote_jid));
|
|
814
|
-
return next_server__WEBPACK_IMPORTED_MODULE_0__.NextResponse.json({
|
|
815
|
-
deleted: ok
|
|
816
|
-
}, {
|
|
817
|
-
status: ok ? 200 : 404
|
|
818
|
-
});
|
|
819
|
-
}
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
/***/ }),
|
|
823
|
-
|
|
824
|
-
/***/ 529294:
|
|
825
|
-
/***/ ((module) => {
|
|
826
|
-
|
|
827
|
-
module.exports = require("next/dist/server/app-render/work-async-storage.external.js");
|
|
828
|
-
|
|
829
|
-
/***/ }),
|
|
830
|
-
|
|
831
|
-
/***/ 594735:
|
|
832
|
-
/***/ ((module) => {
|
|
833
895
|
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
/***/ }),
|
|
837
|
-
|
|
838
|
-
/***/ 629021:
|
|
839
|
-
/***/ ((module) => {
|
|
840
|
-
|
|
841
|
-
module.exports = require("fs");
|
|
842
|
-
|
|
843
|
-
/***/ }),
|
|
844
|
-
|
|
845
|
-
/***/ 638522:
|
|
846
|
-
/***/ ((module) => {
|
|
847
|
-
|
|
848
|
-
module.exports = require("node:zlib");
|
|
849
|
-
|
|
850
|
-
/***/ }),
|
|
851
|
-
|
|
852
|
-
/***/ 663033:
|
|
853
|
-
/***/ ((module) => {
|
|
854
|
-
|
|
855
|
-
module.exports = require("next/dist/server/app-render/work-unit-async-storage.external.js");
|
|
856
|
-
|
|
857
|
-
/***/ }),
|
|
858
|
-
|
|
859
|
-
/***/ 710846:
|
|
860
|
-
/***/ ((module) => {
|
|
861
|
-
|
|
862
|
-
module.exports = require("next/dist/compiled/next-server/app-page.runtime.prod.js");
|
|
863
|
-
|
|
864
|
-
/***/ }),
|
|
865
|
-
|
|
866
|
-
/***/ 731421:
|
|
867
|
-
/***/ ((module) => {
|
|
868
|
-
|
|
869
|
-
module.exports = require("node:child_process");
|
|
870
|
-
|
|
871
|
-
/***/ }),
|
|
872
|
-
|
|
873
|
-
/***/ 744870:
|
|
874
|
-
/***/ ((module) => {
|
|
875
|
-
|
|
876
|
-
module.exports = require("next/dist/compiled/next-server/app-route.runtime.prod.js");
|
|
877
|
-
|
|
878
|
-
/***/ }),
|
|
879
|
-
|
|
880
|
-
/***/ 775919:
|
|
881
|
-
/***/ ((module) => {
|
|
882
|
-
|
|
883
|
-
module.exports = require("node:worker_threads");
|
|
884
|
-
|
|
885
|
-
/***/ }),
|
|
886
|
-
|
|
887
|
-
/***/ 777030:
|
|
888
|
-
/***/ ((module) => {
|
|
889
|
-
|
|
890
|
-
module.exports = require("node:net");
|
|
891
|
-
|
|
892
|
-
/***/ }),
|
|
893
|
-
|
|
894
|
-
/***/ 781630:
|
|
895
|
-
/***/ ((module) => {
|
|
896
|
+
//# sourceMappingURL=app-route.js.map
|
|
896
897
|
|
|
897
|
-
module.exports = require("http");
|
|
898
898
|
|
|
899
899
|
/***/ }),
|
|
900
900
|
|
|
@@ -961,7 +961,7 @@ module.exports = require("next/dist/shared/lib/no-fallback-error.external");
|
|
|
961
961
|
var __webpack_require__ = require("../../../../../../../webpack-runtime.js");
|
|
962
962
|
__webpack_require__.C(exports);
|
|
963
963
|
var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
|
|
964
|
-
var __webpack_exports__ = __webpack_require__.X(0, [2970,7377,1813,4891,4992,1244], () => (__webpack_exec__(
|
|
964
|
+
var __webpack_exports__ = __webpack_require__.X(0, [2970,7377,1813,4891,4992,1244], () => (__webpack_exec__(811444)));
|
|
965
965
|
module.exports = __webpack_exports__;
|
|
966
966
|
|
|
967
967
|
})();
|