@circuitwall/jarela 2.2.1 → 2.3.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 +6 -5
- 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 +8 -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 +76 -76
- 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 +93 -93
- package/.next/standalone/.next/server/app/api/v1/access/route.js +169 -169
- package/.next/standalone/.next/server/app/api/v1/agents/[id]/compact/route.js +82 -56
- package/.next/standalone/.next/server/app/api/v1/agents/[id]/compact/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/agents/[id]/display-filters/route.js +122 -122
- 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 +753 -753
- package/.next/standalone/.next/server/app/api/v1/agents/route.js +65 -65
- package/.next/standalone/.next/server/app/api/v1/allowed-sites/[hostname]/route.js +364 -364
- package/.next/standalone/.next/server/app/api/v1/allowed-sites/route.js +802 -802
- package/.next/standalone/.next/server/app/api/v1/artifacts/lifecycle/route.js +2 -2
- package/.next/standalone/.next/server/app/api/v1/attachments/files/route.js +49 -49
- package/.next/standalone/.next/server/app/api/v1/attachments/images/route.js +910 -910
- package/.next/standalone/.next/server/app/api/v1/bridges/[id]/chats/route.js +589 -16
- 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 +23 -23
- package/.next/standalone/.next/server/app/api/v1/bridges/[id]/ignores/route.js +30 -30
- package/.next/standalone/.next/server/app/api/v1/bridges/[id]/lookup/route.js +703 -130
- 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 +708 -135
- 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 +802 -229
- 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 +739 -739
- package/.next/standalone/.next/server/app/api/v1/bridges/[id]/routes/route.js +1035 -1035
- package/.next/standalone/.next/server/app/api/v1/bridges/[id]/status/route.js +679 -106
- 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 +804 -804
- package/.next/standalone/.next/server/app/api/v1/bridges/route.js +700 -700
- package/.next/standalone/.next/server/app/api/v1/builtin-tools/route.js +9 -9
- 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 +85 -85
- package/.next/standalone/.next/server/app/api/v1/credentials/[id]/route.js +709 -709
- 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 +2 -2
- 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 +10 -10
- package/.next/standalone/.next/server/app/api/v1/dashboard/metrics/route.js +784 -784
- package/.next/standalone/.next/server/app/api/v1/dashboard/pricing/route.js +23 -23
- package/.next/standalone/.next/server/app/api/v1/dashboard/pricing-task/route.js +86 -86
- 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 +57 -57
- 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/search/route.js +523 -523
- package/.next/standalone/.next/server/app/api/v1/documents/settings/route.js +44 -44
- package/.next/standalone/.next/server/app/api/v1/documents/sources/[id]/reindex/route.js +65 -65
- 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 +122 -122
- 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 +37 -37
- 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 +9 -9
- package/.next/standalone/.next/server/app/api/v1/env-sync/allowlist/route.js +368 -368
- package/.next/standalone/.next/server/app/api/v1/env-sync/route.js +44 -44
- package/.next/standalone/.next/server/app/api/v1/events/route.js +751 -178
- 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 +77 -77
- package/.next/standalone/.next/server/app/api/v1/extension/agents/route.js +763 -763
- 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 +44 -44
- package/.next/standalone/.next/server/app/api/v1/extension/browser/foreground/route.js +9 -9
- package/.next/standalone/.next/server/app/api/v1/extension/browser/history/route.js +65 -65
- package/.next/standalone/.next/server/app/api/v1/extension/browser/poll/route.js +34 -34
- package/.next/standalone/.next/server/app/api/v1/extension/browser/progress/route.js +204 -204
- package/.next/standalone/.next/server/app/api/v1/extension/browser/result/route.js +133 -133
- package/.next/standalone/.next/server/app/api/v1/extension/browser/retry/route.js +106 -106
- package/.next/standalone/.next/server/app/api/v1/extension/browser/status/route.js +114 -114
- package/.next/standalone/.next/server/app/api/v1/extension/browser/tabs/route.js +134 -134
- package/.next/standalone/.next/server/app/api/v1/extension/fill/route.js +690 -690
- 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 +93 -93
- 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 +9 -9
- 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 +185 -185
- 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 +171 -171
- 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 +396 -396
- 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 +212 -212
- 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 +235 -235
- package/.next/standalone/.next/server/app/api/v1/fs/browse/route.js +26 -26
- package/.next/standalone/.next/server/app/api/v1/harnesses/[id]/route.js +221 -221
- package/.next/standalone/.next/server/app/api/v1/harnesses/default/route.js +58 -58
- package/.next/standalone/.next/server/app/api/v1/harnesses/route.js +72 -72
- package/.next/standalone/.next/server/app/api/v1/health/probes/route.js +9 -9
- 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 +772 -772
- package/.next/standalone/.next/server/app/api/v1/integrations/[name]/route.js +133 -133
- package/.next/standalone/.next/server/app/api/v1/integrations/[name]/test/route.js +9 -9
- 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 +363 -363
- package/.next/standalone/.next/server/app/api/v1/integrations/gmail/oauth/start/route.js +233 -233
- package/.next/standalone/.next/server/app/api/v1/integrations/gmail/oauth/status/route.js +682 -682
- package/.next/standalone/.next/server/app/api/v1/integrations/outlook/oauth/callback/route.js +879 -879
- package/.next/standalone/.next/server/app/api/v1/integrations/outlook/oauth/start/route.js +108 -108
- package/.next/standalone/.next/server/app/api/v1/integrations/outlook/oauth/status/route.js +952 -952
- package/.next/standalone/.next/server/app/api/v1/integrations/route.js +216 -216
- package/.next/standalone/.next/server/app/api/v1/lifecycle/adoption/route.js +864 -847
- package/.next/standalone/.next/server/app/api/v1/lifecycle/adoption/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/local-file/route.js +26 -26
- package/.next/standalone/.next/server/app/api/v1/logs/route.js +70 -70
- package/.next/standalone/.next/server/app/api/v1/maps/embed/route.js +72 -72
- package/.next/standalone/.next/server/app/api/v1/mcp-servers/[name]/route.js +979 -979
- package/.next/standalone/.next/server/app/api/v1/mcp-servers/registry/route.js +196 -196
- package/.next/standalone/.next/server/app/api/v1/mcp-servers/route.js +2 -2
- package/.next/standalone/.next/server/app/api/v1/memory/[namespace]/[key]/route.js +381 -381
- package/.next/standalone/.next/server/app/api/v1/memory/policy/route.js +79 -79
- package/.next/standalone/.next/server/app/api/v1/memory/route.js +51 -51
- package/.next/standalone/.next/server/app/api/v1/memory/search/route.js +131 -131
- package/.next/standalone/.next/server/app/api/v1/models/[name]/compact-threads/route.js +374 -369
- package/.next/standalone/.next/server/app/api/v1/models/[name]/compact-threads/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/models/[name]/route.js +143 -143
- package/.next/standalone/.next/server/app/api/v1/models/route.js +543 -543
- package/.next/standalone/.next/server/app/api/v1/packages/catalog/route.js +445 -445
- package/.next/standalone/.next/server/app/api/v1/packages/defaults/[id]/route.js +120 -120
- 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 +234 -234
- 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 +407 -407
- 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 +37 -37
- 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 +107 -107
- 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 +228 -228
- 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 +9 -9
- 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 +148 -148
- 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 +787 -787
- 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 +507 -507
- 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 +181 -181
- 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 +258 -258
- 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 +30 -30
- package/.next/standalone/.next/server/app/api/v1/profile/route.js +164 -164
- package/.next/standalone/.next/server/app/api/v1/providers/[provider]/models/route.js +44 -44
- package/.next/standalone/.next/server/app/api/v1/providers/[provider]/probe/route.js +9 -9
- package/.next/standalone/.next/server/app/api/v1/providers/github-copilot/auth/route.js +164 -164
- package/.next/standalone/.next/server/app/api/v1/providers/route.js +94 -94
- package/.next/standalone/.next/server/app/api/v1/proxy-config/route.js +450 -450
- package/.next/standalone/.next/server/app/api/v1/redaction/init/route.js +37 -37
- package/.next/standalone/.next/server/app/api/v1/redaction/route.js +58 -58
- package/.next/standalone/.next/server/app/api/v1/scheduled-tasks/[id]/route.js +600 -600
- package/.next/standalone/.next/server/app/api/v1/scheduled-tasks/[id]/run/route.js +44 -44
- 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 +732 -732
- package/.next/standalone/.next/server/app/api/v1/security/idle-timeout/route.js +359 -359
- package/.next/standalone/.next/server/app/api/v1/security/pin/route.js +197 -197
- package/.next/standalone/.next/server/app/api/v1/security/state/route.js +51 -51
- package/.next/standalone/.next/server/app/api/v1/security/unlock/route.js +176 -176
- package/.next/standalone/.next/server/app/api/v1/security/verify-pin/route.js +190 -190
- package/.next/standalone/.next/server/app/api/v1/setup/test-key/route.js +26 -26
- package/.next/standalone/.next/server/app/api/v1/skills/[id]/route.js +770 -770
- package/.next/standalone/.next/server/app/api/v1/skills/repos/[id]/route.js +115 -115
- package/.next/standalone/.next/server/app/api/v1/skills/repos/route.js +327 -327
- package/.next/standalone/.next/server/app/api/v1/skills/route.js +870 -870
- package/.next/standalone/.next/server/app/api/v1/system/abort/route.js +838 -808
- package/.next/standalone/.next/server/app/api/v1/system/restart/route.js +177 -177
- 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 +164 -164
- package/.next/standalone/.next/server/app/api/v1/tasks/[agent_id]/route.js +115 -115
- 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 +1429 -0
- package/.next/standalone/.next/server/app/api/v1/threads/[thread_id]/activity/route.js.nft.json +1 -0
- package/.next/standalone/.next/server/app/api/v1/threads/[thread_id]/activity/route_client-reference-manifest.js +1 -0
- package/.next/standalone/.next/server/app/api/v1/threads/[thread_id]/context-pin/route.js +635 -634
- package/.next/standalone/.next/server/app/api/v1/threads/[thread_id]/context-pin/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/threads/[thread_id]/route.js +53 -439
- package/.next/standalone/.next/server/app/api/v1/threads/[thread_id]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/threads/[thread_id]/run/route.js +172 -172
- 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 +908 -908
- package/.next/standalone/.next/server/app/api/v1/tools/route.js +2 -2
- 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 +17 -17
- 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 +570 -570
- package/.next/standalone/.next/server/app/api/v1/voice/transcribe/route.js +224 -224
- package/.next/standalone/.next/server/app/api/v1/voice/tts/route.js +975 -975
- package/.next/standalone/.next/server/app/api/v1/watchers/[id]/route.js +23 -23
- package/.next/standalone/.next/server/app/api/v1/watchers/[id]/run/route.js +72 -72
- 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 +128 -128
- package/.next/standalone/.next/server/app/api/v1/watchers/route.js +164 -164
- 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 +62 -62
- package/.next/standalone/.next/server/app/manifest.webmanifest/route.js +436 -436
- package/.next/standalone/.next/server/app/page.js +1243 -854
- 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 +6 -5
- package/.next/standalone/.next/server/chunks/{424.js → 1388.js} +335 -986
- package/.next/standalone/.next/server/chunks/1433.js +1 -1
- package/.next/standalone/.next/server/chunks/1638.js +1 -2
- package/.next/standalone/.next/server/chunks/1738.js +1 -1
- package/.next/standalone/.next/server/chunks/210.js +6 -6
- package/.next/standalone/.next/server/chunks/2151.js +31 -1
- package/.next/standalone/.next/server/chunks/2207.js +1 -0
- package/.next/standalone/.next/server/chunks/2471.js +28 -28
- package/.next/standalone/.next/server/chunks/2504.js +1 -1
- package/.next/standalone/.next/server/chunks/2695.js +17 -17
- package/.next/standalone/.next/server/chunks/3042.js +14 -8
- package/.next/standalone/.next/server/chunks/3399.js +1 -1
- package/.next/standalone/.next/server/chunks/3566.js +1 -1
- package/.next/standalone/.next/server/chunks/4189.js +946 -0
- package/.next/standalone/.next/server/chunks/{9590.js → 423.js} +8 -3
- package/.next/standalone/.next/server/chunks/4433.js +146 -146
- package/.next/standalone/.next/server/chunks/4508.js +1 -1
- package/.next/standalone/.next/server/chunks/4588.js +1 -0
- package/.next/standalone/.next/server/chunks/46.js +5 -0
- package/.next/standalone/.next/server/chunks/466.js +12 -0
- package/.next/standalone/.next/server/chunks/4868.js +206 -206
- package/.next/standalone/.next/server/chunks/4992.js +13 -0
- package/.next/standalone/.next/server/chunks/5120.js +963 -0
- package/.next/standalone/.next/server/chunks/5701.js +1 -1
- package/.next/standalone/.next/server/chunks/5900.js +1 -1
- package/.next/standalone/.next/server/chunks/6210.js +1 -0
- package/.next/standalone/.next/server/chunks/6213.js +1 -1
- package/.next/standalone/.next/server/chunks/6649.js +2 -2
- package/.next/standalone/.next/server/chunks/6703.js +3 -3
- package/.next/standalone/.next/server/chunks/7445.js +1 -0
- package/.next/standalone/.next/server/chunks/8067.js +12 -0
- package/.next/standalone/.next/server/chunks/8461.js +14 -9
- package/.next/standalone/.next/server/chunks/8558.js +1 -1
- package/.next/standalone/.next/server/chunks/8724.js +1 -1
- package/.next/standalone/.next/server/chunks/8849.js +91 -91
- package/.next/standalone/.next/server/chunks/9032.js +6 -5
- package/.next/standalone/.next/server/chunks/{2563.js → 9164.js} +33173 -31461
- package/.next/standalone/.next/server/chunks/9237.js +396 -396
- package/.next/standalone/.next/server/chunks/{9640.js → 9304.js} +1628 -570
- package/.next/standalone/.next/server/chunks/9406.js +1 -1
- package/.next/standalone/.next/server/chunks/9824.js +98 -98
- package/.next/standalone/.next/server/chunks/9826.js +1 -0
- package/.next/standalone/.next/server/middleware-build-manifest.js +2 -2
- package/.next/standalone/.next/server/middleware.js +415 -397
- 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/chunks/{1395-a340fb0a345382a4.js → 1395-e4a99912b8f83044.js} +13 -1
- package/.next/standalone/.next/static/chunks/app/_global-error/{page-36cb8b428b38b26a.js → page-6fc5f8e744c81802.js} +1 -1
- package/.next/standalone/.next/static/chunks/app/api/v1/access/[identity]/{route-36cb8b428b38b26a.js → route-6fc5f8e744c81802.js} +1 -1
- package/.next/standalone/.next/static/chunks/app/api/v1/access/{route-36cb8b428b38b26a.js → route-6fc5f8e744c81802.js} +1 -1
- package/.next/standalone/.next/static/chunks/app/api/v1/agents/[id]/compact/{route-36cb8b428b38b26a.js → route-6fc5f8e744c81802.js} +1 -1
- package/.next/standalone/.next/static/chunks/app/api/v1/agents/[id]/display-filters/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/agents/[id]/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/agents/[id]/thread/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/agents/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/allowed-sites/[hostname]/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/allowed-sites/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/artifacts/lifecycle/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/attachments/files/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/attachments/images/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/[id]/chats/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/[id]/ignores/[remote_jid]/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/[id]/ignores/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/[id]/lookup/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/[id]/pair/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/[id]/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/[id]/routes/[route_id]/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/[id]/routes/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/[id]/status/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/kinds/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/builtin-tools/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/config/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/credentials/[id]/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/credentials/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/dashboard/currency/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/dashboard/metrics/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/dashboard/pricing/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/dashboard/pricing-task/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/delegations/codex/[job_id]/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/documents/search/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/documents/settings/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/documents/sources/[id]/reindex/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/documents/sources/[id]/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/documents/sources/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/env/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/env-sync/allowlist/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/env-sync/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/events/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/events/test/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/agents/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/browser/activate/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/browser/foreground/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/browser/history/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/browser/poll/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/browser/progress/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/browser/result/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/browser/retry/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/browser/status/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/browser/tabs/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/fill/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/refine/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/turn/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/extensions/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/extensions/tools/[name]/config/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/extensions/tools/[name]/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/extensions/tools/[name]/secrets/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/files/[name]/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/fs/browse/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/harnesses/[id]/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/harnesses/default/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/harnesses/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/health/probes/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/health/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/integrations/[name]/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/integrations/[name]/test/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/integrations/gmail/oauth/callback/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/integrations/gmail/oauth/start/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/integrations/gmail/oauth/status/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/integrations/outlook/oauth/callback/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/integrations/outlook/oauth/start/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/integrations/outlook/oauth/status/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/integrations/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/lifecycle/adoption/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/local-file/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/logs/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/maps/embed/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/mcp-servers/[name]/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/mcp-servers/registry/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/mcp-servers/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/memory/[namespace]/[key]/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/memory/policy/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/memory/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/memory/search/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/models/[name]/compact-threads/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/models/[name]/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/models/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/packages/catalog/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/packages/defaults/[id]/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/packages/install/[id]/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/packages/install/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/packages/manifests/[name]/enabled/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/packages/manifests/[name]/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/packages/manifests/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/packages/reload/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/packages/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/page-capture/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/pending-actions/[id]/approve/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/pending-actions/[id]/deny/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/pending-actions/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/profile/location/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/profile/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/providers/[provider]/models/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/providers/[provider]/probe/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/providers/github-copilot/auth/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/providers/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/proxy-config/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/redaction/init/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/redaction/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/scheduled-tasks/[id]/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/scheduled-tasks/[id]/run/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/scheduled-tasks/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/security/idle-timeout/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/security/pin/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/security/state/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/security/unlock/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/security/verify-pin/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/setup/test-key/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/skills/[id]/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/skills/repos/[id]/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/skills/repos/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/skills/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/system/abort/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/system/restart/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/tailscale/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/tasks/[agent_id]/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/tasks/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/threads/[thread_id]/activity/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/threads/[thread_id]/context-pin/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/threads/[thread_id]/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/threads/[thread_id]/run/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/threads/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/tools/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/update/apply/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/update/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/voice/transcribe/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/voice/tts/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/watchers/[id]/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/watchers/[id]/run/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/watchers/reaction-scripts/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/watchers/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/manifest.webmanifest/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/{page-7017f07f8a7a083c.js → page-213a623b37226452.js} +1041 -652
- package/.next/standalone/.next/static/chunks/next/dist/client/components/builtin/app-error-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/next/dist/client/components/builtin/forbidden-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/next/dist/client/components/builtin/not-found-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/next/dist/client/components/builtin/unauthorized-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/css/{d80058f0b9b41c09.css → 312542a5725ba0d5.css} +2 -2
- package/.next/standalone/docs/adoption/changesets.json +309 -0
- package/.next/standalone/lib/skills/builtins/memory-organization/SKILL.md +16 -0
- package/.next/standalone/package.json +3 -3
- package/CHANGELOG.md +25 -0
- package/api/client.ts +9 -0
- package/api/types.ts +29 -0
- package/app/api/v1/lifecycle/adoption/route.ts +14 -2
- package/app/api/v1/models/[name]/compact-threads/route.ts +14 -11
- package/app/api/v1/threads/[thread_id]/activity/route.ts +19 -0
- package/app/api/v1/threads/[thread_id]/context-pin/route.test.ts +1 -0
- package/app/api/v1/threads/[thread_id]/context-pin/route.ts +2 -1
- package/app/api/v1/threads/[thread_id]/route.ts +5 -1
- package/components/chat/ChatView.tsx +52 -11
- package/components/chat/ContextBoundary.test.tsx +68 -1
- package/components/chat/ContextBoundary.tsx +92 -13
- package/components/chat/MessageList.test.tsx +31 -0
- package/components/chat/MessageList.tsx +49 -28
- package/components/chat/ToolList.test.tsx +92 -16
- package/components/chat/ToolList.tsx +59 -4
- package/components/chat/chat-helpers.test.tsx +24 -1
- package/components/chat/chat-helpers.ts +47 -4
- package/components/chat/useThreadActivity.test.tsx +113 -0
- package/components/chat/useThreadActivity.ts +94 -0
- package/components/chat/useThreadData.ts +16 -16
- package/components/chat/workflow-step-retry.ts +25 -0
- package/components/ui/BootScreen.tsx +17 -0
- package/components/ui/WorkflowChecklist.tsx +71 -33
- package/hooks/useSSE.ts +28 -3
- package/lib/agents/compaction-pipeline.test.ts +202 -0
- package/lib/agents/compaction-pipeline.ts +483 -0
- package/lib/agents/conversation-summary.ts +37 -21
- package/lib/agents/prepare/history-window.test.ts +18 -0
- package/lib/agents/prepare/history-window.ts +11 -2
- package/lib/agents/prepare/request.ts +4 -0
- package/lib/agents/prepare/system-prompt.test.ts +39 -0
- package/lib/agents/prepare/system-prompt.ts +8 -3
- package/lib/agents/prompt-registry.test.ts +5 -140
- package/lib/agents/prompt-registry.ts +45 -1
- package/lib/agents/prompt-variants.ts +146 -0
- package/lib/agents/run-registry.test.ts +22 -0
- package/lib/agents/run-registry.ts +29 -0
- package/lib/agents/run-thread.retry.test.ts +67 -1
- package/lib/agents/run-thread.ts +86 -1
- package/lib/agents/thread-activity.test.ts +31 -0
- package/lib/agents/thread-activity.ts +27 -0
- package/lib/agents/thread-compaction-state.test.ts +82 -0
- package/lib/agents/thread-compaction-state.ts +121 -0
- package/lib/agents/thread-compaction.test.ts +83 -4
- package/lib/agents/thread-compaction.ts +34 -11
- package/lib/agents/warm-summary-background.test.ts +219 -5
- package/lib/agents/warm-summary-background.ts +325 -142
- package/lib/agents/warm-topics.test.ts +37 -0
- package/lib/agents/warm-topics.ts +297 -0
- package/lib/agents/workflow-step-retry.test.ts +96 -0
- package/lib/agents/workflow-step-retry.ts +216 -0
- package/lib/api/browser-control.ts +0 -3
- package/lib/db/migrations.ts +5 -0
- package/lib/env/config.ts +2 -0
- package/lib/env/schema.ts +12 -0
- package/lib/lifecycle/changeset-build.test.ts +93 -0
- package/lib/lifecycle/changeset-build.ts +210 -0
- package/lib/lifecycle/changesets.test.ts +101 -0
- package/lib/lifecycle/changesets.ts +166 -0
- package/lib/lifecycle/surface-collect.test.ts +88 -0
- package/lib/lifecycle/surface-collect.ts +64 -0
- package/lib/lifecycle/surface-snapshot.test.ts +104 -0
- package/lib/lifecycle/surface-snapshot.ts +210 -0
- package/lib/memory/record.ts +0 -2
- package/lib/providers/external.ts +0 -2
- package/lib/skills/builtins/memory-organization/SKILL.md +16 -0
- package/lib/stores/threads.test.ts +9 -0
- package/lib/stores/threads.ts +21 -11
- package/lib/stores/version-adoption.test.ts +96 -0
- package/lib/stores/version-adoption.ts +239 -26
- package/lib/stores/workflow-progress.ts +3 -0
- package/lib/tools/communications/ms-todo.ts +0 -7
- package/lib/tools/general/memory.ts +1 -1
- package/lib/tools/general/workflow-progress.ts +2 -0
- package/lib/tools/runtime/catalog.ts +1 -25
- package/lib/triggers/registry.ts +0 -4
- package/package.json +3 -3
- package/scripts/install-to-system.ps1 +39 -11
- package/scripts/install-to-system.sh +37 -3
- package/.next/standalone/.next/server/chunks/3979.js +0 -581
- package/.next/standalone/.next/server/chunks/5936.js +0 -594
- package/.next/standalone/.next/static/chunks/app/api/v1/agents/[id]/display-filters/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/agents/[id]/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/agents/[id]/thread/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/agents/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/allowed-sites/[hostname]/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/allowed-sites/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/artifacts/lifecycle/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/attachments/files/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/attachments/images/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/[id]/chats/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/[id]/ignores/[remote_jid]/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/[id]/ignores/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/[id]/lookup/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/[id]/pair/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/[id]/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/[id]/routes/[route_id]/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/[id]/routes/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/[id]/status/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/kinds/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/builtin-tools/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/config/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/credentials/[id]/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/credentials/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/dashboard/currency/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/dashboard/metrics/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/dashboard/pricing/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/dashboard/pricing-task/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/delegations/codex/[job_id]/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/documents/search/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/documents/settings/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/documents/sources/[id]/reindex/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/documents/sources/[id]/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/documents/sources/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/env/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/env-sync/allowlist/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/env-sync/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/events/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/events/test/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/agents/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/browser/activate/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/browser/foreground/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/browser/history/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/browser/poll/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/browser/progress/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/browser/result/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/browser/retry/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/browser/status/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/browser/tabs/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/fill/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/refine/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/turn/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/extensions/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/extensions/tools/[name]/config/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/extensions/tools/[name]/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/extensions/tools/[name]/secrets/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/files/[name]/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/fs/browse/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/harnesses/[id]/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/harnesses/default/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/harnesses/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/health/probes/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/health/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/integrations/[name]/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/integrations/[name]/test/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/integrations/gmail/oauth/callback/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/integrations/gmail/oauth/start/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/integrations/gmail/oauth/status/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/integrations/outlook/oauth/callback/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/integrations/outlook/oauth/start/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/integrations/outlook/oauth/status/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/integrations/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/lifecycle/adoption/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/local-file/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/logs/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/maps/embed/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/mcp-servers/[name]/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/mcp-servers/registry/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/mcp-servers/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/memory/[namespace]/[key]/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/memory/policy/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/memory/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/memory/search/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/models/[name]/compact-threads/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/models/[name]/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/models/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/packages/catalog/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/packages/defaults/[id]/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/packages/install/[id]/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/packages/install/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/packages/manifests/[name]/enabled/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/packages/manifests/[name]/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/packages/manifests/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/packages/reload/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/packages/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/page-capture/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/pending-actions/[id]/approve/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/pending-actions/[id]/deny/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/pending-actions/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/profile/location/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/profile/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/providers/[provider]/models/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/providers/[provider]/probe/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/providers/github-copilot/auth/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/providers/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/proxy-config/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/redaction/init/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/redaction/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/scheduled-tasks/[id]/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/scheduled-tasks/[id]/run/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/scheduled-tasks/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/security/idle-timeout/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/security/pin/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/security/state/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/security/unlock/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/security/verify-pin/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/setup/test-key/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/skills/[id]/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/skills/repos/[id]/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/skills/repos/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/skills/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/system/abort/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/system/restart/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/tailscale/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/tasks/[agent_id]/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/tasks/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/threads/[thread_id]/context-pin/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/threads/[thread_id]/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/threads/[thread_id]/run/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/threads/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/tools/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/update/apply/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/update/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/voice/transcribe/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/voice/tts/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/watchers/[id]/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/watchers/[id]/run/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/watchers/reaction-scripts/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/watchers/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/manifest.webmanifest/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/next/dist/client/components/builtin/app-error-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/next/dist/client/components/builtin/forbidden-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/next/dist/client/components/builtin/not-found-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/next/dist/client/components/builtin/unauthorized-36cb8b428b38b26a.js +0 -17
- /package/.next/standalone/.next/static/{NUrC9xax1sp1Q70nlFqS6 → bMRK5y3ruT7c3WtBfCQOG}/_buildManifest.js +0 -0
- /package/.next/standalone/.next/static/{NUrC9xax1sp1Q70nlFqS6 → bMRK5y3ruT7c3WtBfCQOG}/_ssgManifest.js +0 -0
|
@@ -12,576 +12,132 @@ module.exports = require("next/dist/shared/lib/router/utils/app-paths");
|
|
|
12
12
|
|
|
13
13
|
/***/ }),
|
|
14
14
|
|
|
15
|
-
/***/
|
|
16
|
-
/***/ ((
|
|
17
|
-
|
|
18
|
-
__webpack_require__.r(__webpack_exports__);
|
|
19
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
20
|
-
/* harmony export */ handler: () => (/* binding */ handler),
|
|
21
|
-
/* harmony export */ patchFetch: () => (/* binding */ patchFetch),
|
|
22
|
-
/* harmony export */ routeModule: () => (/* binding */ routeModule),
|
|
23
|
-
/* harmony export */ serverHooks: () => (/* binding */ serverHooks),
|
|
24
|
-
/* harmony export */ workAsyncStorage: () => (/* binding */ workAsyncStorage),
|
|
25
|
-
/* harmony export */ workUnitAsyncStorage: () => (/* binding */ workUnitAsyncStorage)
|
|
26
|
-
/* harmony export */ });
|
|
27
|
-
/* harmony import */ var next_dist_server_route_modules_app_route_module_compiled__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(19225);
|
|
28
|
-
/* 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__);
|
|
29
|
-
/* harmony import */ var next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(84006);
|
|
30
|
-
/* harmony import */ var next_dist_server_lib_patch_fetch__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8317);
|
|
31
|
-
/* 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__);
|
|
32
|
-
/* harmony import */ var next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(99373);
|
|
33
|
-
/* 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__);
|
|
34
|
-
/* harmony import */ var next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(34775);
|
|
35
|
-
/* 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__);
|
|
36
|
-
/* harmony import */ var next_dist_server_app_render_manifests_singleton__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(24235);
|
|
37
|
-
/* 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__);
|
|
38
|
-
/* harmony import */ var next_dist_shared_lib_router_utils_app_paths__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(261);
|
|
39
|
-
/* 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__);
|
|
40
|
-
/* harmony import */ var next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(54365);
|
|
41
|
-
/* 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__);
|
|
42
|
-
/* harmony import */ var next_dist_server_web_spec_extension_adapters_next_request__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(90771);
|
|
43
|
-
/* 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__);
|
|
44
|
-
/* harmony import */ var next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(73461);
|
|
45
|
-
/* 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__);
|
|
46
|
-
/* harmony import */ var next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(67798);
|
|
47
|
-
/* harmony import */ var next_dist_server_send_response__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(92280);
|
|
48
|
-
/* harmony import */ var next_dist_server_web_utils__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(62018);
|
|
49
|
-
/* 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__);
|
|
50
|
-
/* harmony import */ var next_dist_server_lib_cache_control__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(45696);
|
|
51
|
-
/* harmony import */ var next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(47929);
|
|
52
|
-
/* harmony import */ var next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__);
|
|
53
|
-
/* harmony import */ var next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(86439);
|
|
54
|
-
/* 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__);
|
|
55
|
-
/* harmony import */ var next_dist_server_lib_route_cache_key__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(10246);
|
|
56
|
-
/* 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__);
|
|
57
|
-
/* harmony import */ var next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(37527);
|
|
58
|
-
/* 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__);
|
|
15
|
+
/***/ 1708:
|
|
16
|
+
/***/ ((module) => {
|
|
59
17
|
|
|
18
|
+
module.exports = require("node:process");
|
|
60
19
|
|
|
20
|
+
/***/ }),
|
|
61
21
|
|
|
22
|
+
/***/ 1932:
|
|
23
|
+
/***/ ((module) => {
|
|
62
24
|
|
|
25
|
+
module.exports = require("url");
|
|
63
26
|
|
|
27
|
+
/***/ }),
|
|
64
28
|
|
|
29
|
+
/***/ 3295:
|
|
30
|
+
/***/ ((module) => {
|
|
65
31
|
|
|
32
|
+
module.exports = require("next/dist/server/app-render/after-task-async-storage.external.js");
|
|
66
33
|
|
|
34
|
+
/***/ }),
|
|
67
35
|
|
|
36
|
+
/***/ 8128:
|
|
37
|
+
/***/ ((module) => {
|
|
68
38
|
|
|
39
|
+
module.exports = require("next/dist/server/runtime-reacts.external.js");
|
|
69
40
|
|
|
41
|
+
/***/ }),
|
|
70
42
|
|
|
43
|
+
/***/ 9956:
|
|
44
|
+
/***/ ((module) => {
|
|
71
45
|
|
|
46
|
+
module.exports = require("undici");
|
|
72
47
|
|
|
48
|
+
/***/ }),
|
|
73
49
|
|
|
50
|
+
/***/ 10846:
|
|
51
|
+
/***/ ((module) => {
|
|
74
52
|
|
|
53
|
+
module.exports = require("next/dist/compiled/next-server/app-page.runtime.prod.js");
|
|
75
54
|
|
|
55
|
+
/***/ }),
|
|
76
56
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
const nextConfigOutput = "standalone"
|
|
80
|
-
const routeModule = new next_dist_server_route_modules_app_route_module_compiled__WEBPACK_IMPORTED_MODULE_0__.AppRouteRouteModule({
|
|
81
|
-
definition: {
|
|
82
|
-
kind: next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__.RouteKind.APP_ROUTE,
|
|
83
|
-
page: "/api/v1/integrations/gmail/oauth/status/route",
|
|
84
|
-
pathname: "/api/v1/integrations/gmail/oauth/status",
|
|
85
|
-
filename: "route",
|
|
86
|
-
bundlePath: "app/api/v1/integrations/gmail/oauth/status/route"
|
|
87
|
-
},
|
|
88
|
-
distDir: ".next" || 0,
|
|
89
|
-
relativeProjectDir: false || '',
|
|
90
|
-
resolvedPagePath: "/home/runner/work/jarela/jarela/app/api/v1/integrations/gmail/oauth/status/route.ts",
|
|
91
|
-
nextConfigOutput,
|
|
92
|
-
// The lazy require factory ensures that:
|
|
93
|
-
// - In dev: devRequestTimingInternalsEnd is set before userland executes,
|
|
94
|
-
// correctly attributing module load time to application-code rather than
|
|
95
|
-
// framework internals.
|
|
96
|
-
// - In all modes: async modules (route files with top-level await) are
|
|
97
|
-
// handled correctly — require() returns a Promise for such modules, which
|
|
98
|
-
// ensureUserland() awaits before the first request is handled.
|
|
99
|
-
userland: ()=>__webpack_require__(96210),
|
|
100
|
-
// In Turbopack dev mode, also provide a synchronous per-request getter so
|
|
101
|
-
// server HMR updates are picked up without re-executing the entry chunk.
|
|
102
|
-
// Using require() (synchronous) avoids adding async overhead that would be
|
|
103
|
-
// incorrectly attributed to application-code time in devRequestTiming.
|
|
104
|
-
... false ? 0 : {}
|
|
105
|
-
});
|
|
106
|
-
// Pull out the exports that we need to expose from the module. This should
|
|
107
|
-
// be eliminated when we've moved the other routes to the new format. These
|
|
108
|
-
// are used to hook into the route.
|
|
109
|
-
const { workAsyncStorage, workUnitAsyncStorage, serverHooks } = routeModule;
|
|
110
|
-
function patchFetch() {
|
|
111
|
-
return (0,next_dist_server_lib_patch_fetch__WEBPACK_IMPORTED_MODULE_2__.patchFetch)({
|
|
112
|
-
workAsyncStorage,
|
|
113
|
-
workUnitAsyncStorage
|
|
114
|
-
});
|
|
115
|
-
}
|
|
57
|
+
/***/ 12199:
|
|
58
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
116
59
|
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
60
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
61
|
+
/* harmony export */ BQ: () => (/* binding */ readResponseText),
|
|
62
|
+
/* harmony export */ WO: () => (/* binding */ readJsonResponse),
|
|
63
|
+
/* harmony export */ Yn: () => (/* binding */ readResponseTextCapped)
|
|
64
|
+
/* harmony export */ });
|
|
65
|
+
// Node's fetch decodes correctly labelled gzip responses. Some upstreams
|
|
66
|
+
// omit Content-Encoding, so detect and decode raw gzip bodies as a fallback.
|
|
67
|
+
async function readResponseTextCapped(res, maxBytes) {
|
|
68
|
+
if (!res.body) {
|
|
69
|
+
const text = await res.text();
|
|
70
|
+
const bytes = new TextEncoder().encode(text);
|
|
71
|
+
return {
|
|
72
|
+
text: new TextDecoder().decode(bytes.subarray(0, maxBytes)),
|
|
73
|
+
bytesRead: Math.min(bytes.length, maxBytes),
|
|
74
|
+
truncated: bytes.length > maxBytes
|
|
75
|
+
};
|
|
123
76
|
}
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
77
|
+
const sourceReader = res.body.getReader();
|
|
78
|
+
const prefix = [];
|
|
79
|
+
let prefixBytes = 0;
|
|
80
|
+
let sourceDone = false;
|
|
81
|
+
while(prefixBytes < 2){
|
|
82
|
+
const next = await sourceReader.read();
|
|
83
|
+
if (next.done) {
|
|
84
|
+
sourceDone = true;
|
|
85
|
+
break;
|
|
86
|
+
}
|
|
87
|
+
if (next.value.byteLength === 0) continue;
|
|
88
|
+
prefix.push(next.value);
|
|
89
|
+
prefixBytes += next.value.byteLength;
|
|
131
90
|
}
|
|
132
|
-
const
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
res.end('Bad Request');
|
|
140
|
-
ctx.waitUntil == null ? void 0 : ctx.waitUntil.call(ctx, Promise.resolve());
|
|
141
|
-
return null;
|
|
91
|
+
const signature = new Uint8Array(2);
|
|
92
|
+
let signatureBytes = 0;
|
|
93
|
+
for (const chunk of prefix){
|
|
94
|
+
const take = Math.min(signature.length - signatureBytes, chunk.byteLength);
|
|
95
|
+
signature.set(chunk.subarray(0, take), signatureBytes);
|
|
96
|
+
signatureBytes += take;
|
|
97
|
+
if (signatureBytes === signature.length) break;
|
|
142
98
|
}
|
|
143
|
-
const
|
|
144
|
-
const
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
99
|
+
const isGzip = signatureBytes === 2 && signature[0] === 0x1f && signature[1] === 0x8b;
|
|
100
|
+
const source = new ReadableStream({
|
|
101
|
+
start (controller) {
|
|
102
|
+
for (const chunk of prefix)controller.enqueue(chunk);
|
|
103
|
+
if (sourceDone) controller.close();
|
|
104
|
+
},
|
|
105
|
+
async pull (controller) {
|
|
106
|
+
const next = await sourceReader.read();
|
|
107
|
+
if (next.done) controller.close();
|
|
108
|
+
else if (next.value) controller.enqueue(next.value);
|
|
109
|
+
},
|
|
110
|
+
cancel (reason) {
|
|
111
|
+
return sourceReader.cancel(reason);
|
|
154
112
|
}
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
113
|
+
});
|
|
114
|
+
const gunzip = new DecompressionStream("gzip");
|
|
115
|
+
const decoded = isGzip ? source.pipeThrough(gunzip) : source;
|
|
116
|
+
const reader = decoded.getReader();
|
|
117
|
+
const limit = Math.max(0, Math.floor(maxBytes));
|
|
118
|
+
const chunks = [];
|
|
119
|
+
let bytesRead = 0;
|
|
120
|
+
let truncated = false;
|
|
121
|
+
try {
|
|
122
|
+
while(true){
|
|
123
|
+
const next = await reader.read();
|
|
124
|
+
if (next.done) break;
|
|
125
|
+
if (!next.value.byteLength) continue;
|
|
126
|
+
const remaining = limit - bytesRead;
|
|
127
|
+
const kept = Math.min(remaining, next.value.byteLength);
|
|
128
|
+
if (kept > 0) chunks.push(next.value.subarray(0, kept));
|
|
129
|
+
bytesRead += kept;
|
|
130
|
+
if (kept < next.value.byteLength) {
|
|
131
|
+
truncated = true;
|
|
132
|
+
await reader.cancel();
|
|
133
|
+
break;
|
|
165
134
|
}
|
|
166
135
|
}
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
cacheKey = resolvedPathname;
|
|
171
|
-
// ensure /index and / is normalized to one key
|
|
172
|
-
cacheKey = cacheKey === '/index' ? '/' : cacheKey;
|
|
173
|
-
}
|
|
174
|
-
// Before rendering (which initializes component tree modules), we have to
|
|
175
|
-
// set the reference manifests to our global store so Server Action's
|
|
176
|
-
// encryption util can access to them at the top level of the page module.
|
|
177
|
-
if (serverActionsManifest && clientReferenceManifest) {
|
|
178
|
-
(0,next_dist_server_app_render_manifests_singleton__WEBPACK_IMPORTED_MODULE_5__.setManifestsSingleton)({
|
|
179
|
-
page: srcPage,
|
|
180
|
-
clientReferenceManifest,
|
|
181
|
-
serverActionsManifest
|
|
136
|
+
} catch (error) {
|
|
137
|
+
if (isGzip) throw new Error("Gzip response could not be decompressed.", {
|
|
138
|
+
cause: error
|
|
182
139
|
});
|
|
183
|
-
|
|
184
|
-
const method = req.method || 'GET';
|
|
185
|
-
const tracer = (0,next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.getTracer)();
|
|
186
|
-
const activeSpan = tracer.getActiveScopeSpan();
|
|
187
|
-
const isWrappedByNextServer = Boolean(routerServerContext == null ? void 0 : routerServerContext.isWrappedByNextServer);
|
|
188
|
-
const isMinimalMode = Boolean((0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.getRequestMeta)(req, 'minimalMode'));
|
|
189
|
-
const incrementalCache = (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.getRequestMeta)(req, 'incrementalCache') || await routeModule.getIncrementalCache(req, nextConfig, previewProps, prerenderManifest, isMinimalMode);
|
|
190
|
-
incrementalCache == null ? void 0 : incrementalCache.resetRequestCache();
|
|
191
|
-
globalThis.__incrementalCache = incrementalCache;
|
|
192
|
-
const context = {
|
|
193
|
-
params,
|
|
194
|
-
previewProps,
|
|
195
|
-
renderOpts: {
|
|
196
|
-
experimental: {
|
|
197
|
-
authInterrupts: Boolean(nextConfig.experimental.authInterrupts),
|
|
198
|
-
useCacheTimeout: nextConfig.experimental.useCacheTimeout,
|
|
199
|
-
durableUseCacheEntries: Boolean(nextConfig.experimental.durableUseCacheEntries)
|
|
200
|
-
},
|
|
201
|
-
cacheComponents: Boolean(nextConfig.cacheComponents),
|
|
202
|
-
validationLevel: nextConfig.experimental.instantInsights.validationLevel,
|
|
203
|
-
isDraftMode,
|
|
204
|
-
incrementalCache,
|
|
205
|
-
hmrRefreshHash: (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.getRequestMeta)(req, 'hmrRefreshHash'),
|
|
206
|
-
cacheLifeProfiles: nextConfig.cacheLife,
|
|
207
|
-
staticPageGenerationTimeout: nextConfig.staticPageGenerationTimeout,
|
|
208
|
-
waitUntil: ctx.waitUntil,
|
|
209
|
-
onClose: (cb)=>{
|
|
210
|
-
res.on('close', cb);
|
|
211
|
-
},
|
|
212
|
-
onAfterTaskError: undefined
|
|
213
|
-
},
|
|
214
|
-
sharedContext: {
|
|
215
|
-
buildId,
|
|
216
|
-
deploymentId
|
|
217
|
-
}
|
|
218
|
-
};
|
|
219
|
-
const nodeNextReq = new next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_7__.NodeNextRequest(req);
|
|
220
|
-
const nodeNextRes = new next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_7__.NodeNextResponse(res);
|
|
221
|
-
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));
|
|
222
|
-
const responseGenerator = async ({ previousCacheEntry })=>{
|
|
223
|
-
try {
|
|
224
|
-
if (!isMinimalMode && isOnDemandRevalidate && revalidateOnlyGenerated && !previousCacheEntry) {
|
|
225
|
-
res.statusCode = 404;
|
|
226
|
-
// on-demand revalidate always sets this header
|
|
227
|
-
res.setHeader('x-nextjs-cache', 'REVALIDATED');
|
|
228
|
-
res.end('This page could not be found');
|
|
229
|
-
return null;
|
|
230
|
-
}
|
|
231
|
-
const response = cacheKey === null ? await routeModule.handle(nextReq, context) : await routeModule.prerender(nextReq, context);
|
|
232
|
-
req.fetchMetrics = context.renderOpts.fetchMetrics;
|
|
233
|
-
let pendingWaitUntil = context.renderOpts.pendingWaitUntil;
|
|
234
|
-
// Attempt using provided waitUntil if available
|
|
235
|
-
// if it's not we fallback to sendResponse's handling
|
|
236
|
-
if (pendingWaitUntil) {
|
|
237
|
-
if (ctx.waitUntil) {
|
|
238
|
-
ctx.waitUntil(pendingWaitUntil);
|
|
239
|
-
pendingWaitUntil = undefined;
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
const cacheTags = context.renderOpts.collectedTags;
|
|
243
|
-
// If the request is for a static response, we can cache it so long
|
|
244
|
-
// as it's not edge.
|
|
245
|
-
if (isIsr) {
|
|
246
|
-
const blob = await response.blob();
|
|
247
|
-
// Copy the headers from the response.
|
|
248
|
-
const headers = (0,next_dist_server_web_utils__WEBPACK_IMPORTED_MODULE_12__.toNodeOutgoingHttpHeaders)(response.headers);
|
|
249
|
-
if (cacheTags) {
|
|
250
|
-
headers[next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__.NEXT_CACHE_TAGS_HEADER] = cacheTags;
|
|
251
|
-
}
|
|
252
|
-
if (!headers['content-type'] && blob.type) {
|
|
253
|
-
headers['content-type'] = blob.type;
|
|
254
|
-
}
|
|
255
|
-
const revalidate = typeof context.renderOpts.collectedRevalidate === 'undefined' || context.renderOpts.collectedRevalidate >= next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__.INFINITE_CACHE ? false : context.renderOpts.collectedRevalidate;
|
|
256
|
-
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
|
|
257
|
-
// explicit `expire` (e.g. via `cacheLife`). This mirrors the
|
|
258
|
-
// build-time fallback in `build/index.ts` so cache entries
|
|
259
|
-
// and the response Cache-Control header agree on the route's
|
|
260
|
-
// effective expire. Routes that opt out of revalidation
|
|
261
|
-
// (`revalidate: false`) or that are dynamic (`revalidate: 0`)
|
|
262
|
-
// keep `expire: undefined`.
|
|
263
|
-
revalidate !== false && revalidate > 0 ? nextConfig.expireTime : undefined : context.renderOpts.collectedExpire;
|
|
264
|
-
// Create the cache entry for the response.
|
|
265
|
-
const cacheEntry = {
|
|
266
|
-
value: {
|
|
267
|
-
kind: next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__.CachedRouteKind.APP_ROUTE,
|
|
268
|
-
status: response.status,
|
|
269
|
-
body: Buffer.from(await blob.arrayBuffer()),
|
|
270
|
-
headers
|
|
271
|
-
},
|
|
272
|
-
cacheControl: {
|
|
273
|
-
revalidate,
|
|
274
|
-
expire
|
|
275
|
-
}
|
|
276
|
-
};
|
|
277
|
-
return cacheEntry;
|
|
278
|
-
} else {
|
|
279
|
-
// send response without caching if not ISR
|
|
280
|
-
await (0,next_dist_server_send_response__WEBPACK_IMPORTED_MODULE_11__/* .sendResponse */ .I)(nodeNextReq, nodeNextRes, response, pendingWaitUntil);
|
|
281
|
-
return null;
|
|
282
|
-
}
|
|
283
|
-
} catch (err) {
|
|
284
|
-
// if this is a background revalidate we need to report
|
|
285
|
-
// the request error here as it won't be bubbled
|
|
286
|
-
if (previousCacheEntry == null ? void 0 : previousCacheEntry.isStale) {
|
|
287
|
-
const silenceLog = false;
|
|
288
|
-
await routeModule.onRequestError(req, err, {
|
|
289
|
-
routerKind: 'App Router',
|
|
290
|
-
routePath: srcPage,
|
|
291
|
-
routeType: 'route',
|
|
292
|
-
revalidateReason: (0,next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_10__.getRevalidateReason)({
|
|
293
|
-
isStaticGeneration: cacheKey !== null,
|
|
294
|
-
isOnDemandRevalidate
|
|
295
|
-
})
|
|
296
|
-
}, silenceLog, routerServerContext);
|
|
297
|
-
}
|
|
298
|
-
throw err;
|
|
299
|
-
}
|
|
300
|
-
};
|
|
301
|
-
const handleResponse = async (currentSpan, parentSpan)=>{
|
|
302
|
-
try {
|
|
303
|
-
var _cacheEntry_value;
|
|
304
|
-
const cacheEntry = await routeModule.handleResponse({
|
|
305
|
-
req,
|
|
306
|
-
nextConfig,
|
|
307
|
-
cacheKey,
|
|
308
|
-
routeKind: next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__.RouteKind.APP_ROUTE,
|
|
309
|
-
isFallback: false,
|
|
310
|
-
previewProps,
|
|
311
|
-
prerenderManifest,
|
|
312
|
-
isRoutePPREnabled: false,
|
|
313
|
-
isOnDemandRevalidate,
|
|
314
|
-
revalidateOnlyGenerated,
|
|
315
|
-
responseGenerator,
|
|
316
|
-
waitUntil: ctx.waitUntil,
|
|
317
|
-
isMinimalMode
|
|
318
|
-
});
|
|
319
|
-
if (cacheEntry !== null && 'error' in cacheEntry) {
|
|
320
|
-
throw cacheEntry.error;
|
|
321
|
-
}
|
|
322
|
-
// we don't create a cacheEntry for ISR
|
|
323
|
-
if (!isIsr) {
|
|
324
|
-
return;
|
|
325
|
-
}
|
|
326
|
-
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) {
|
|
327
|
-
var _cacheEntry_value1;
|
|
328
|
-
throw new Error(`Invariant: app-route received invalid cache entry ${cacheEntry == null ? void 0 : (_cacheEntry_value1 = cacheEntry.value) == null ? void 0 : _cacheEntry_value1.kind}`);
|
|
329
|
-
}
|
|
330
|
-
if (!isMinimalMode) {
|
|
331
|
-
res.setHeader('x-nextjs-cache', isOnDemandRevalidate ? 'REVALIDATED' : cacheEntry.isMiss ? 'MISS' : cacheEntry.isStale ? 'STALE' : 'HIT');
|
|
332
|
-
}
|
|
333
|
-
// Draft mode should never be cached
|
|
334
|
-
if (isDraftMode) {
|
|
335
|
-
res.setHeader('Cache-Control', 'private, no-cache, no-store, max-age=0, must-revalidate');
|
|
336
|
-
}
|
|
337
|
-
const headers = (0,next_dist_server_web_utils__WEBPACK_IMPORTED_MODULE_12__.fromNodeOutgoingHttpHeaders)(cacheEntry.value.headers);
|
|
338
|
-
if (!(isMinimalMode && isIsr)) {
|
|
339
|
-
headers.delete(next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__.NEXT_CACHE_TAGS_HEADER);
|
|
340
|
-
}
|
|
341
|
-
// If cache control is already set on the response we don't
|
|
342
|
-
// override it to allow users to customize it via next.config
|
|
343
|
-
if (cacheEntry.cacheControl && !res.getHeader('Cache-Control') && !headers.get('Cache-Control')) {
|
|
344
|
-
headers.set('Cache-Control', (0,next_dist_server_lib_cache_control__WEBPACK_IMPORTED_MODULE_13__.getCacheControlHeader)(cacheEntry.cacheControl));
|
|
345
|
-
}
|
|
346
|
-
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'.
|
|
347
|
-
new Response(cacheEntry.value.body, {
|
|
348
|
-
headers,
|
|
349
|
-
status: cacheEntry.value.status || 200
|
|
350
|
-
}));
|
|
351
|
-
return;
|
|
352
|
-
} catch (err) {
|
|
353
|
-
if (!(err instanceof next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_15__.NoFallbackError)) {
|
|
354
|
-
const silenceLog = false;
|
|
355
|
-
await routeModule.onRequestError(req, err, {
|
|
356
|
-
routerKind: 'App Router',
|
|
357
|
-
routePath: normalizedSrcPage,
|
|
358
|
-
routeType: 'route',
|
|
359
|
-
revalidateReason: (0,next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_10__.getRevalidateReason)({
|
|
360
|
-
isStaticGeneration: cacheKey !== null,
|
|
361
|
-
isOnDemandRevalidate
|
|
362
|
-
})
|
|
363
|
-
}, silenceLog, routerServerContext);
|
|
364
|
-
}
|
|
365
|
-
// rethrow so that we can handle serving error page
|
|
366
|
-
// If this is during static generation, throw the error again.
|
|
367
|
-
if (isIsr) throw err;
|
|
368
|
-
// Otherwise, send a 500 response unless the original response has
|
|
369
|
-
// already committed. In that case, preserve its status code for
|
|
370
|
-
// telemetry while still recording the failure and terminating a response
|
|
371
|
-
// that the failed pipeline left open.
|
|
372
|
-
if (res.headersSent) {
|
|
373
|
-
if (currentSpan) {
|
|
374
|
-
const error = err instanceof Error ? err : new Error('Unknown app route error');
|
|
375
|
-
currentSpan.recordException(error);
|
|
376
|
-
currentSpan.setStatus({
|
|
377
|
-
code: next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.SpanStatusCode.ERROR,
|
|
378
|
-
message: error.message
|
|
379
|
-
});
|
|
380
|
-
currentSpan.setAttribute('error.type', error.name);
|
|
381
|
-
}
|
|
382
|
-
if (!res.writableEnded && !res.destroyed) {
|
|
383
|
-
res.end();
|
|
384
|
-
}
|
|
385
|
-
} else {
|
|
386
|
-
await (0,next_dist_server_send_response__WEBPACK_IMPORTED_MODULE_11__/* .sendResponse */ .I)(nodeNextReq, nodeNextRes, new Response(null, {
|
|
387
|
-
status: 500
|
|
388
|
-
}));
|
|
389
|
-
}
|
|
390
|
-
return;
|
|
391
|
-
} finally{
|
|
392
|
-
;
|
|
393
|
-
(()=>{
|
|
394
|
-
if (!currentSpan) {
|
|
395
|
-
return;
|
|
396
|
-
}
|
|
397
|
-
let statusCode = res.statusCode;
|
|
398
|
-
currentSpan.setAttributes({
|
|
399
|
-
'http.status_code': statusCode,
|
|
400
|
-
'next.rsc': false
|
|
401
|
-
});
|
|
402
|
-
if (statusCode && statusCode >= 500) {
|
|
403
|
-
// For 5xx status codes: SHOULD be set to 'Error' span status.
|
|
404
|
-
// x-ref: https://opentelemetry.io/docs/specs/semconv/http/http-spans/#status
|
|
405
|
-
currentSpan.setStatus({
|
|
406
|
-
code: next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.SpanStatusCode.ERROR
|
|
407
|
-
});
|
|
408
|
-
// For span status 'Error', SHOULD set 'error.type' attribute.
|
|
409
|
-
currentSpan.setAttribute('error.type', statusCode.toString());
|
|
410
|
-
}
|
|
411
|
-
const rootSpanAttributes = tracer.getRootSpanAttributes();
|
|
412
|
-
// We were unable to get attributes, probably OTEL is not enabled
|
|
413
|
-
if (!rootSpanAttributes) {
|
|
414
|
-
return;
|
|
415
|
-
}
|
|
416
|
-
if (rootSpanAttributes.get('next.span_type') !== next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_9__.BaseServerSpan.handleRequest) {
|
|
417
|
-
console.warn(`Unexpected root span type '${rootSpanAttributes.get('next.span_type')}'. Please report this Next.js issue https://github.com/vercel/next.js`);
|
|
418
|
-
return;
|
|
419
|
-
}
|
|
420
|
-
const route = rootSpanAttributes.get('next.route') || normalizedSrcPage;
|
|
421
|
-
const name = `${method} ${route}`;
|
|
422
|
-
currentSpan.setAttributes({
|
|
423
|
-
'next.route': route,
|
|
424
|
-
'http.route': route,
|
|
425
|
-
'next.span_name': name
|
|
426
|
-
});
|
|
427
|
-
currentSpan.updateName(name);
|
|
428
|
-
// Propagate http.route to the parent span if one exists (e.g.
|
|
429
|
-
// a platform-created HTTP span in adapter deployments).
|
|
430
|
-
if (parentSpan && parentSpan !== currentSpan) {
|
|
431
|
-
parentSpan.setAttribute('http.route', route);
|
|
432
|
-
parentSpan.updateName(name);
|
|
433
|
-
}
|
|
434
|
-
})();
|
|
435
|
-
}
|
|
436
|
-
};
|
|
437
|
-
// TODO: activeSpan code path is for when wrapped by
|
|
438
|
-
// next-server can be removed when this is no longer used
|
|
439
|
-
if (isWrappedByNextServer && activeSpan) {
|
|
440
|
-
await handleResponse(activeSpan, undefined);
|
|
441
|
-
} else {
|
|
442
|
-
let parentSpan = tracer.getActiveScopeSpan();
|
|
443
|
-
await tracer.withPropagatedContext(req.headers, ()=>tracer.trace(next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_9__.BaseServerSpan.handleRequest, {
|
|
444
|
-
spanName: `${method} ${srcPage}`,
|
|
445
|
-
kind: next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.SpanKind.SERVER,
|
|
446
|
-
attributes: {
|
|
447
|
-
'http.method': method,
|
|
448
|
-
'http.target': req.url
|
|
449
|
-
}
|
|
450
|
-
}, (span)=>handleResponse(span, parentSpan)), undefined, !isWrappedByNextServer);
|
|
451
|
-
}
|
|
452
|
-
}
|
|
453
|
-
|
|
454
|
-
//# sourceMappingURL=app-route.js.map
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
/***/ }),
|
|
458
|
-
|
|
459
|
-
/***/ 1708:
|
|
460
|
-
/***/ ((module) => {
|
|
461
|
-
|
|
462
|
-
module.exports = require("node:process");
|
|
463
|
-
|
|
464
|
-
/***/ }),
|
|
465
|
-
|
|
466
|
-
/***/ 1932:
|
|
467
|
-
/***/ ((module) => {
|
|
468
|
-
|
|
469
|
-
module.exports = require("url");
|
|
470
|
-
|
|
471
|
-
/***/ }),
|
|
472
|
-
|
|
473
|
-
/***/ 3295:
|
|
474
|
-
/***/ ((module) => {
|
|
475
|
-
|
|
476
|
-
module.exports = require("next/dist/server/app-render/after-task-async-storage.external.js");
|
|
477
|
-
|
|
478
|
-
/***/ }),
|
|
479
|
-
|
|
480
|
-
/***/ 8128:
|
|
481
|
-
/***/ ((module) => {
|
|
482
|
-
|
|
483
|
-
module.exports = require("next/dist/server/runtime-reacts.external.js");
|
|
484
|
-
|
|
485
|
-
/***/ }),
|
|
486
|
-
|
|
487
|
-
/***/ 9956:
|
|
488
|
-
/***/ ((module) => {
|
|
489
|
-
|
|
490
|
-
module.exports = require("undici");
|
|
491
|
-
|
|
492
|
-
/***/ }),
|
|
493
|
-
|
|
494
|
-
/***/ 10846:
|
|
495
|
-
/***/ ((module) => {
|
|
496
|
-
|
|
497
|
-
module.exports = require("next/dist/compiled/next-server/app-page.runtime.prod.js");
|
|
498
|
-
|
|
499
|
-
/***/ }),
|
|
500
|
-
|
|
501
|
-
/***/ 12199:
|
|
502
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
503
|
-
|
|
504
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
505
|
-
/* harmony export */ BQ: () => (/* binding */ readResponseText),
|
|
506
|
-
/* harmony export */ WO: () => (/* binding */ readJsonResponse),
|
|
507
|
-
/* harmony export */ Yn: () => (/* binding */ readResponseTextCapped)
|
|
508
|
-
/* harmony export */ });
|
|
509
|
-
// Node's fetch decodes correctly labelled gzip responses. Some upstreams
|
|
510
|
-
// omit Content-Encoding, so detect and decode raw gzip bodies as a fallback.
|
|
511
|
-
async function readResponseTextCapped(res, maxBytes) {
|
|
512
|
-
if (!res.body) {
|
|
513
|
-
const text = await res.text();
|
|
514
|
-
const bytes = new TextEncoder().encode(text);
|
|
515
|
-
return {
|
|
516
|
-
text: new TextDecoder().decode(bytes.subarray(0, maxBytes)),
|
|
517
|
-
bytesRead: Math.min(bytes.length, maxBytes),
|
|
518
|
-
truncated: bytes.length > maxBytes
|
|
519
|
-
};
|
|
520
|
-
}
|
|
521
|
-
const sourceReader = res.body.getReader();
|
|
522
|
-
const prefix = [];
|
|
523
|
-
let prefixBytes = 0;
|
|
524
|
-
let sourceDone = false;
|
|
525
|
-
while(prefixBytes < 2){
|
|
526
|
-
const next = await sourceReader.read();
|
|
527
|
-
if (next.done) {
|
|
528
|
-
sourceDone = true;
|
|
529
|
-
break;
|
|
530
|
-
}
|
|
531
|
-
if (next.value.byteLength === 0) continue;
|
|
532
|
-
prefix.push(next.value);
|
|
533
|
-
prefixBytes += next.value.byteLength;
|
|
534
|
-
}
|
|
535
|
-
const signature = new Uint8Array(2);
|
|
536
|
-
let signatureBytes = 0;
|
|
537
|
-
for (const chunk of prefix){
|
|
538
|
-
const take = Math.min(signature.length - signatureBytes, chunk.byteLength);
|
|
539
|
-
signature.set(chunk.subarray(0, take), signatureBytes);
|
|
540
|
-
signatureBytes += take;
|
|
541
|
-
if (signatureBytes === signature.length) break;
|
|
542
|
-
}
|
|
543
|
-
const isGzip = signatureBytes === 2 && signature[0] === 0x1f && signature[1] === 0x8b;
|
|
544
|
-
const source = new ReadableStream({
|
|
545
|
-
start (controller) {
|
|
546
|
-
for (const chunk of prefix)controller.enqueue(chunk);
|
|
547
|
-
if (sourceDone) controller.close();
|
|
548
|
-
},
|
|
549
|
-
async pull (controller) {
|
|
550
|
-
const next = await sourceReader.read();
|
|
551
|
-
if (next.done) controller.close();
|
|
552
|
-
else if (next.value) controller.enqueue(next.value);
|
|
553
|
-
},
|
|
554
|
-
cancel (reason) {
|
|
555
|
-
return sourceReader.cancel(reason);
|
|
556
|
-
}
|
|
557
|
-
});
|
|
558
|
-
const gunzip = new DecompressionStream("gzip");
|
|
559
|
-
const decoded = isGzip ? source.pipeThrough(gunzip) : source;
|
|
560
|
-
const reader = decoded.getReader();
|
|
561
|
-
const limit = Math.max(0, Math.floor(maxBytes));
|
|
562
|
-
const chunks = [];
|
|
563
|
-
let bytesRead = 0;
|
|
564
|
-
let truncated = false;
|
|
565
|
-
try {
|
|
566
|
-
while(true){
|
|
567
|
-
const next = await reader.read();
|
|
568
|
-
if (next.done) break;
|
|
569
|
-
if (!next.value.byteLength) continue;
|
|
570
|
-
const remaining = limit - bytesRead;
|
|
571
|
-
const kept = Math.min(remaining, next.value.byteLength);
|
|
572
|
-
if (kept > 0) chunks.push(next.value.subarray(0, kept));
|
|
573
|
-
bytesRead += kept;
|
|
574
|
-
if (kept < next.value.byteLength) {
|
|
575
|
-
truncated = true;
|
|
576
|
-
await reader.cancel();
|
|
577
|
-
break;
|
|
578
|
-
}
|
|
579
|
-
}
|
|
580
|
-
} catch (error) {
|
|
581
|
-
if (isGzip) throw new Error("Gzip response could not be decompressed.", {
|
|
582
|
-
cause: error
|
|
583
|
-
});
|
|
584
|
-
throw error;
|
|
140
|
+
throw error;
|
|
585
141
|
}
|
|
586
142
|
const bytes = Buffer.concat(chunks.map((chunk)=>Buffer.from(chunk)), bytesRead);
|
|
587
143
|
return {
|
|
@@ -692,169 +248,613 @@ module.exports = require("path");
|
|
|
692
248
|
|
|
693
249
|
module.exports = require("node:http");
|
|
694
250
|
|
|
695
|
-
/***/ }),
|
|
251
|
+
/***/ }),
|
|
252
|
+
|
|
253
|
+
/***/ 38522:
|
|
254
|
+
/***/ ((module) => {
|
|
255
|
+
|
|
256
|
+
module.exports = require("node:zlib");
|
|
257
|
+
|
|
258
|
+
/***/ }),
|
|
259
|
+
|
|
260
|
+
/***/ 44708:
|
|
261
|
+
/***/ ((module) => {
|
|
262
|
+
|
|
263
|
+
module.exports = require("node:https");
|
|
264
|
+
|
|
265
|
+
/***/ }),
|
|
266
|
+
|
|
267
|
+
/***/ 44870:
|
|
268
|
+
/***/ ((module) => {
|
|
269
|
+
|
|
270
|
+
module.exports = require("next/dist/compiled/next-server/app-route.runtime.prod.js");
|
|
271
|
+
|
|
272
|
+
/***/ }),
|
|
273
|
+
|
|
274
|
+
/***/ 48161:
|
|
275
|
+
/***/ ((module) => {
|
|
276
|
+
|
|
277
|
+
module.exports = require("node:os");
|
|
278
|
+
|
|
279
|
+
/***/ }),
|
|
280
|
+
|
|
281
|
+
/***/ 51455:
|
|
282
|
+
/***/ ((module) => {
|
|
283
|
+
|
|
284
|
+
module.exports = require("node:fs/promises");
|
|
285
|
+
|
|
286
|
+
/***/ }),
|
|
287
|
+
|
|
288
|
+
/***/ 53638:
|
|
289
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
290
|
+
|
|
291
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
292
|
+
/* harmony export */ p: () => (/* binding */ parseJsonSafe)
|
|
293
|
+
/* harmony export */ });
|
|
294
|
+
// JSON.parse with a fallback value when the input is malformed (or empty).
|
|
295
|
+
// Used everywhere we read responses from external APIs — they're contractually
|
|
296
|
+
// JSON but a transient 502 / proxy interstitial occasionally returns HTML.
|
|
297
|
+
function parseJsonSafe(text, fallback) {
|
|
298
|
+
try {
|
|
299
|
+
return JSON.parse(text);
|
|
300
|
+
} catch {
|
|
301
|
+
return fallback;
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
/***/ }),
|
|
307
|
+
|
|
308
|
+
/***/ 55511:
|
|
309
|
+
/***/ ((module) => {
|
|
310
|
+
|
|
311
|
+
module.exports = require("crypto");
|
|
312
|
+
|
|
313
|
+
/***/ }),
|
|
314
|
+
|
|
315
|
+
/***/ 55591:
|
|
316
|
+
/***/ ((module) => {
|
|
317
|
+
|
|
318
|
+
module.exports = require("https");
|
|
319
|
+
|
|
320
|
+
/***/ }),
|
|
321
|
+
|
|
322
|
+
/***/ 56362:
|
|
323
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
324
|
+
|
|
325
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
326
|
+
/* harmony export */ R: () => (/* binding */ createOAuthFlowStore)
|
|
327
|
+
/* harmony export */ });
|
|
328
|
+
/* harmony import */ var node_crypto__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(77598);
|
|
329
|
+
/* harmony import */ var node_crypto__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(node_crypto__WEBPACK_IMPORTED_MODULE_0__);
|
|
330
|
+
/* harmony import */ var _lib_utils_global_state__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(15559);
|
|
331
|
+
// Ephemeral state store for in-app OAuth flows (Gmail, Microsoft, ...).
|
|
332
|
+
//
|
|
333
|
+
// Why this exists: the user types client_id + client_secret in the
|
|
334
|
+
// Integrations panel, we POST to /oauth/start, stash them here keyed by a
|
|
335
|
+
// random `state`, and return the provider's authorize URL. The browser
|
|
336
|
+
// bounces back to /oauth/callback with `?code&state`, we exchange, and
|
|
337
|
+
// persist the integration. Meanwhile the panel polls /oauth/status.
|
|
338
|
+
//
|
|
339
|
+
// Pinned to globalThis so HMR in dev doesn't lose pending flows.
|
|
340
|
+
//
|
|
341
|
+
// Same shape used by both gmail-oauth.ts and microsoft-oauth.ts — pass a
|
|
342
|
+
// unique `globalKey` per provider so they don't share a Map.
|
|
343
|
+
|
|
344
|
+
|
|
345
|
+
const DEFAULT_TTL_MS = 10 * 60 * 1000;
|
|
346
|
+
const DEFAULT_MAX_FLOWS = 32;
|
|
347
|
+
function createOAuthFlowStore(opts) {
|
|
348
|
+
const ttlMs = opts.ttlMs ?? DEFAULT_TTL_MS;
|
|
349
|
+
const maxFlows = opts.maxFlows ?? DEFAULT_MAX_FLOWS;
|
|
350
|
+
const flows = (0,_lib_utils_global_state__WEBPACK_IMPORTED_MODULE_1__/* .getOrCreateGlobal */ .X)(opts.globalKey, ()=>new Map());
|
|
351
|
+
function gc() {
|
|
352
|
+
const now = Date.now();
|
|
353
|
+
for (const [k, v] of flows){
|
|
354
|
+
if (now - v.createdAt > ttlMs) flows.delete(k);
|
|
355
|
+
}
|
|
356
|
+
// Hard cap so a stuck UI can't grow this unbounded.
|
|
357
|
+
if (flows.size > maxFlows) {
|
|
358
|
+
const oldest = [
|
|
359
|
+
...flows.entries()
|
|
360
|
+
].sort((a, b)=>a[1].createdAt - b[1].createdAt);
|
|
361
|
+
for(let i = 0; i < oldest.length - maxFlows; i++)flows.delete(oldest[i][0]);
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
return {
|
|
365
|
+
create (input) {
|
|
366
|
+
gc();
|
|
367
|
+
const state = (0,node_crypto__WEBPACK_IMPORTED_MODULE_0__.randomBytes)(16).toString("hex");
|
|
368
|
+
const flow = {
|
|
369
|
+
createdAt: Date.now(),
|
|
370
|
+
status: "pending",
|
|
371
|
+
...input
|
|
372
|
+
};
|
|
373
|
+
flows.set(state, flow);
|
|
374
|
+
return {
|
|
375
|
+
state,
|
|
376
|
+
flow
|
|
377
|
+
};
|
|
378
|
+
},
|
|
379
|
+
get (state) {
|
|
380
|
+
gc();
|
|
381
|
+
return flows.get(state);
|
|
382
|
+
},
|
|
383
|
+
update (state, patch) {
|
|
384
|
+
const f = flows.get(state);
|
|
385
|
+
if (f) Object.assign(f, patch);
|
|
386
|
+
},
|
|
387
|
+
delete (state) {
|
|
388
|
+
flows.delete(state);
|
|
389
|
+
}
|
|
390
|
+
};
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
|
|
394
|
+
/***/ }),
|
|
395
|
+
|
|
396
|
+
/***/ 57075:
|
|
397
|
+
/***/ ((module) => {
|
|
398
|
+
|
|
399
|
+
module.exports = require("node:stream");
|
|
400
|
+
|
|
401
|
+
/***/ }),
|
|
402
|
+
|
|
403
|
+
/***/ 57975:
|
|
404
|
+
/***/ ((module) => {
|
|
405
|
+
|
|
406
|
+
module.exports = require("node:util");
|
|
407
|
+
|
|
408
|
+
/***/ }),
|
|
409
|
+
|
|
410
|
+
/***/ 63033:
|
|
411
|
+
/***/ ((module) => {
|
|
412
|
+
|
|
413
|
+
module.exports = require("next/dist/server/app-render/work-unit-async-storage.external.js");
|
|
414
|
+
|
|
415
|
+
/***/ }),
|
|
416
|
+
|
|
417
|
+
/***/ 68141:
|
|
418
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
419
|
+
|
|
420
|
+
__webpack_require__.r(__webpack_exports__);
|
|
421
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
422
|
+
/* harmony export */ handler: () => (/* binding */ handler),
|
|
423
|
+
/* harmony export */ patchFetch: () => (/* binding */ patchFetch),
|
|
424
|
+
/* harmony export */ routeModule: () => (/* binding */ routeModule),
|
|
425
|
+
/* harmony export */ serverHooks: () => (/* binding */ serverHooks),
|
|
426
|
+
/* harmony export */ workAsyncStorage: () => (/* binding */ workAsyncStorage),
|
|
427
|
+
/* harmony export */ workUnitAsyncStorage: () => (/* binding */ workUnitAsyncStorage)
|
|
428
|
+
/* harmony export */ });
|
|
429
|
+
/* harmony import */ var next_dist_server_route_modules_app_route_module_compiled__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(19225);
|
|
430
|
+
/* 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__);
|
|
431
|
+
/* harmony import */ var next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(84006);
|
|
432
|
+
/* harmony import */ var next_dist_server_lib_patch_fetch__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8317);
|
|
433
|
+
/* 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__);
|
|
434
|
+
/* harmony import */ var next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(99373);
|
|
435
|
+
/* 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__);
|
|
436
|
+
/* harmony import */ var next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(34775);
|
|
437
|
+
/* 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__);
|
|
438
|
+
/* harmony import */ var next_dist_server_app_render_manifests_singleton__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(24235);
|
|
439
|
+
/* 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__);
|
|
440
|
+
/* harmony import */ var next_dist_shared_lib_router_utils_app_paths__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(261);
|
|
441
|
+
/* 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__);
|
|
442
|
+
/* harmony import */ var next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(54365);
|
|
443
|
+
/* 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__);
|
|
444
|
+
/* harmony import */ var next_dist_server_web_spec_extension_adapters_next_request__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(90771);
|
|
445
|
+
/* 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__);
|
|
446
|
+
/* harmony import */ var next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(73461);
|
|
447
|
+
/* 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__);
|
|
448
|
+
/* harmony import */ var next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(67798);
|
|
449
|
+
/* harmony import */ var next_dist_server_send_response__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(92280);
|
|
450
|
+
/* harmony import */ var next_dist_server_web_utils__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(62018);
|
|
451
|
+
/* 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__);
|
|
452
|
+
/* harmony import */ var next_dist_server_lib_cache_control__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(45696);
|
|
453
|
+
/* harmony import */ var next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(47929);
|
|
454
|
+
/* harmony import */ var next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__);
|
|
455
|
+
/* harmony import */ var next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(86439);
|
|
456
|
+
/* 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__);
|
|
457
|
+
/* harmony import */ var next_dist_server_lib_route_cache_key__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(10246);
|
|
458
|
+
/* 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__);
|
|
459
|
+
/* harmony import */ var next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(37527);
|
|
460
|
+
/* 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__);
|
|
461
|
+
|
|
696
462
|
|
|
697
|
-
/***/ 38522:
|
|
698
|
-
/***/ ((module) => {
|
|
699
463
|
|
|
700
|
-
module.exports = require("node:zlib");
|
|
701
464
|
|
|
702
|
-
/***/ }),
|
|
703
465
|
|
|
704
|
-
/***/ 44708:
|
|
705
|
-
/***/ ((module) => {
|
|
706
466
|
|
|
707
|
-
module.exports = require("node:https");
|
|
708
467
|
|
|
709
|
-
/***/ }),
|
|
710
468
|
|
|
711
|
-
/***/ 44870:
|
|
712
|
-
/***/ ((module) => {
|
|
713
469
|
|
|
714
|
-
module.exports = require("next/dist/compiled/next-server/app-route.runtime.prod.js");
|
|
715
470
|
|
|
716
|
-
/***/ }),
|
|
717
471
|
|
|
718
|
-
/***/ 48161:
|
|
719
|
-
/***/ ((module) => {
|
|
720
472
|
|
|
721
|
-
module.exports = require("node:os");
|
|
722
473
|
|
|
723
|
-
/***/ }),
|
|
724
474
|
|
|
725
|
-
/***/ 51455:
|
|
726
|
-
/***/ ((module) => {
|
|
727
475
|
|
|
728
|
-
module.exports = require("node:fs/promises");
|
|
729
476
|
|
|
730
|
-
/***/ }),
|
|
731
477
|
|
|
732
|
-
/***/ 53638:
|
|
733
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
734
478
|
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
479
|
+
// We inject the nextConfigOutput here so that we can use them in the route
|
|
480
|
+
// module.
|
|
481
|
+
const nextConfigOutput = "standalone"
|
|
482
|
+
const routeModule = new next_dist_server_route_modules_app_route_module_compiled__WEBPACK_IMPORTED_MODULE_0__.AppRouteRouteModule({
|
|
483
|
+
definition: {
|
|
484
|
+
kind: next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__.RouteKind.APP_ROUTE,
|
|
485
|
+
page: "/api/v1/integrations/gmail/oauth/status/route",
|
|
486
|
+
pathname: "/api/v1/integrations/gmail/oauth/status",
|
|
487
|
+
filename: "route",
|
|
488
|
+
bundlePath: "app/api/v1/integrations/gmail/oauth/status/route"
|
|
489
|
+
},
|
|
490
|
+
distDir: ".next" || 0,
|
|
491
|
+
relativeProjectDir: false || '',
|
|
492
|
+
resolvedPagePath: "/home/runner/work/jarela/jarela/app/api/v1/integrations/gmail/oauth/status/route.ts",
|
|
493
|
+
nextConfigOutput,
|
|
494
|
+
// The lazy require factory ensures that:
|
|
495
|
+
// - In dev: devRequestTimingInternalsEnd is set before userland executes,
|
|
496
|
+
// correctly attributing module load time to application-code rather than
|
|
497
|
+
// framework internals.
|
|
498
|
+
// - In all modes: async modules (route files with top-level await) are
|
|
499
|
+
// handled correctly — require() returns a Promise for such modules, which
|
|
500
|
+
// ensureUserland() awaits before the first request is handled.
|
|
501
|
+
userland: ()=>__webpack_require__(96210),
|
|
502
|
+
// In Turbopack dev mode, also provide a synchronous per-request getter so
|
|
503
|
+
// server HMR updates are picked up without re-executing the entry chunk.
|
|
504
|
+
// Using require() (synchronous) avoids adding async overhead that would be
|
|
505
|
+
// incorrectly attributed to application-code time in devRequestTiming.
|
|
506
|
+
... false ? 0 : {}
|
|
507
|
+
});
|
|
508
|
+
// Pull out the exports that we need to expose from the module. This should
|
|
509
|
+
// be eliminated when we've moved the other routes to the new format. These
|
|
510
|
+
// are used to hook into the route.
|
|
511
|
+
const { workAsyncStorage, workUnitAsyncStorage, serverHooks } = routeModule;
|
|
512
|
+
function patchFetch() {
|
|
513
|
+
return (0,next_dist_server_lib_patch_fetch__WEBPACK_IMPORTED_MODULE_2__.patchFetch)({
|
|
514
|
+
workAsyncStorage,
|
|
515
|
+
workUnitAsyncStorage
|
|
516
|
+
});
|
|
747
517
|
}
|
|
748
518
|
|
|
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
|
-
|
|
785
|
-
|
|
786
|
-
// unique `globalKey` per provider so they don't share a Map.
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
const DEFAULT_TTL_MS = 10 * 60 * 1000;
|
|
790
|
-
const DEFAULT_MAX_FLOWS = 32;
|
|
791
|
-
function createOAuthFlowStore(opts) {
|
|
792
|
-
const ttlMs = opts.ttlMs ?? DEFAULT_TTL_MS;
|
|
793
|
-
const maxFlows = opts.maxFlows ?? DEFAULT_MAX_FLOWS;
|
|
794
|
-
const flows = (0,_lib_utils_global_state__WEBPACK_IMPORTED_MODULE_1__/* .getOrCreateGlobal */ .X)(opts.globalKey, ()=>new Map());
|
|
795
|
-
function gc() {
|
|
796
|
-
const now = Date.now();
|
|
797
|
-
for (const [k, v] of flows){
|
|
798
|
-
if (now - v.createdAt > ttlMs) flows.delete(k);
|
|
519
|
+
async function handler(req, res, ctx) {
|
|
520
|
+
if (ctx.requestMeta) {
|
|
521
|
+
(0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.setRequestMeta)(req, ctx.requestMeta);
|
|
522
|
+
}
|
|
523
|
+
if (routeModule.isDev) {
|
|
524
|
+
(0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.addRequestMeta)(req, 'devRequestTimingInternalsEnd', process.hrtime.bigint());
|
|
525
|
+
}
|
|
526
|
+
let srcPage = "/api/v1/integrations/gmail/oauth/status/route";
|
|
527
|
+
// turbopack doesn't normalize `/index` in the page name
|
|
528
|
+
// so we need to to process dynamic routes properly
|
|
529
|
+
// TODO: fix turbopack providing differing value from webpack
|
|
530
|
+
if (false) {} else if (srcPage === '/index') {
|
|
531
|
+
// we always normalize /index specifically
|
|
532
|
+
srcPage = '/';
|
|
533
|
+
}
|
|
534
|
+
const multiZoneDraftMode = false;
|
|
535
|
+
const prepareResult = await routeModule.prepare(req, res, {
|
|
536
|
+
srcPage,
|
|
537
|
+
multiZoneDraftMode
|
|
538
|
+
});
|
|
539
|
+
if (!prepareResult) {
|
|
540
|
+
res.statusCode = 400;
|
|
541
|
+
res.end('Bad Request');
|
|
542
|
+
ctx.waitUntil == null ? void 0 : ctx.waitUntil.call(ctx, Promise.resolve());
|
|
543
|
+
return null;
|
|
544
|
+
}
|
|
545
|
+
const { buildId, deploymentId, params, nextConfig, parsedUrl, isDraftMode, prerenderManifest, routerServerContext, isOnDemandRevalidate, revalidateOnlyGenerated, resolvedPathname, clientReferenceManifest, serverActionsManifest, previewProps } = prepareResult;
|
|
546
|
+
const normalizedSrcPage = (0,next_dist_shared_lib_router_utils_app_paths__WEBPACK_IMPORTED_MODULE_6__.normalizeAppPath)(srcPage);
|
|
547
|
+
// Only this route's prerenders can establish ISR or admit generated params.
|
|
548
|
+
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]));
|
|
549
|
+
let isIsr = Boolean(prerenderManifest.dynamicRoutes[normalizedSrcPage] || isPrerendered);
|
|
550
|
+
const render404 = async ()=>{
|
|
551
|
+
// TODO: should route-module itself handle rendering the 404
|
|
552
|
+
if (routerServerContext == null ? void 0 : routerServerContext.render404) {
|
|
553
|
+
await routerServerContext.render404(req, res, parsedUrl, false);
|
|
554
|
+
} else {
|
|
555
|
+
res.end('This page could not be found');
|
|
799
556
|
}
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
557
|
+
return null;
|
|
558
|
+
};
|
|
559
|
+
if (isIsr && !isDraftMode) {
|
|
560
|
+
const prerenderInfo = prerenderManifest.dynamicRoutes[normalizedSrcPage];
|
|
561
|
+
if (prerenderInfo) {
|
|
562
|
+
if (prerenderInfo.fallback === false && !isPrerendered) {
|
|
563
|
+
if (nextConfig.adapterPath) {
|
|
564
|
+
return await render404();
|
|
565
|
+
}
|
|
566
|
+
throw new next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_15__.NoFallbackError();
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
let cacheKey = null;
|
|
571
|
+
if (isIsr && !routeModule.isDev && !isDraftMode) {
|
|
572
|
+
cacheKey = resolvedPathname;
|
|
573
|
+
// ensure /index and / is normalized to one key
|
|
574
|
+
cacheKey = cacheKey === '/index' ? '/' : cacheKey;
|
|
575
|
+
}
|
|
576
|
+
// Before rendering (which initializes component tree modules), we have to
|
|
577
|
+
// set the reference manifests to our global store so Server Action's
|
|
578
|
+
// encryption util can access to them at the top level of the page module.
|
|
579
|
+
if (serverActionsManifest && clientReferenceManifest) {
|
|
580
|
+
(0,next_dist_server_app_render_manifests_singleton__WEBPACK_IMPORTED_MODULE_5__.setManifestsSingleton)({
|
|
581
|
+
page: srcPage,
|
|
582
|
+
clientReferenceManifest,
|
|
583
|
+
serverActionsManifest
|
|
584
|
+
});
|
|
585
|
+
}
|
|
586
|
+
const method = req.method || 'GET';
|
|
587
|
+
const tracer = (0,next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.getTracer)();
|
|
588
|
+
const activeSpan = tracer.getActiveScopeSpan();
|
|
589
|
+
const isWrappedByNextServer = Boolean(routerServerContext == null ? void 0 : routerServerContext.isWrappedByNextServer);
|
|
590
|
+
const isMinimalMode = Boolean((0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.getRequestMeta)(req, 'minimalMode'));
|
|
591
|
+
const incrementalCache = (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.getRequestMeta)(req, 'incrementalCache') || await routeModule.getIncrementalCache(req, nextConfig, previewProps, prerenderManifest, isMinimalMode);
|
|
592
|
+
incrementalCache == null ? void 0 : incrementalCache.resetRequestCache();
|
|
593
|
+
globalThis.__incrementalCache = incrementalCache;
|
|
594
|
+
const context = {
|
|
595
|
+
params,
|
|
596
|
+
previewProps,
|
|
597
|
+
renderOpts: {
|
|
598
|
+
experimental: {
|
|
599
|
+
authInterrupts: Boolean(nextConfig.experimental.authInterrupts),
|
|
600
|
+
useCacheTimeout: nextConfig.experimental.useCacheTimeout,
|
|
601
|
+
durableUseCacheEntries: Boolean(nextConfig.experimental.durableUseCacheEntries)
|
|
602
|
+
},
|
|
603
|
+
cacheComponents: Boolean(nextConfig.cacheComponents),
|
|
604
|
+
validationLevel: nextConfig.experimental.instantInsights.validationLevel,
|
|
605
|
+
isDraftMode,
|
|
606
|
+
incrementalCache,
|
|
607
|
+
hmrRefreshHash: (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.getRequestMeta)(req, 'hmrRefreshHash'),
|
|
608
|
+
cacheLifeProfiles: nextConfig.cacheLife,
|
|
609
|
+
staticPageGenerationTimeout: nextConfig.staticPageGenerationTimeout,
|
|
610
|
+
waitUntil: ctx.waitUntil,
|
|
611
|
+
onClose: (cb)=>{
|
|
612
|
+
res.on('close', cb);
|
|
613
|
+
},
|
|
614
|
+
onAfterTaskError: undefined
|
|
615
|
+
},
|
|
616
|
+
sharedContext: {
|
|
617
|
+
buildId,
|
|
618
|
+
deploymentId
|
|
619
|
+
}
|
|
620
|
+
};
|
|
621
|
+
const nodeNextReq = new next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_7__.NodeNextRequest(req);
|
|
622
|
+
const nodeNextRes = new next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_7__.NodeNextResponse(res);
|
|
623
|
+
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));
|
|
624
|
+
const responseGenerator = async ({ previousCacheEntry })=>{
|
|
625
|
+
try {
|
|
626
|
+
if (!isMinimalMode && isOnDemandRevalidate && revalidateOnlyGenerated && !previousCacheEntry) {
|
|
627
|
+
res.statusCode = 404;
|
|
628
|
+
// on-demand revalidate always sets this header
|
|
629
|
+
res.setHeader('x-nextjs-cache', 'REVALIDATED');
|
|
630
|
+
res.end('This page could not be found');
|
|
631
|
+
return null;
|
|
632
|
+
}
|
|
633
|
+
const response = cacheKey === null ? await routeModule.handle(nextReq, context) : await routeModule.prerender(nextReq, context);
|
|
634
|
+
req.fetchMetrics = context.renderOpts.fetchMetrics;
|
|
635
|
+
let pendingWaitUntil = context.renderOpts.pendingWaitUntil;
|
|
636
|
+
// Attempt using provided waitUntil if available
|
|
637
|
+
// if it's not we fallback to sendResponse's handling
|
|
638
|
+
if (pendingWaitUntil) {
|
|
639
|
+
if (ctx.waitUntil) {
|
|
640
|
+
ctx.waitUntil(pendingWaitUntil);
|
|
641
|
+
pendingWaitUntil = undefined;
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
const cacheTags = context.renderOpts.collectedTags;
|
|
645
|
+
// If the request is for a static response, we can cache it so long
|
|
646
|
+
// as it's not edge.
|
|
647
|
+
if (isIsr) {
|
|
648
|
+
const blob = await response.blob();
|
|
649
|
+
// Copy the headers from the response.
|
|
650
|
+
const headers = (0,next_dist_server_web_utils__WEBPACK_IMPORTED_MODULE_12__.toNodeOutgoingHttpHeaders)(response.headers);
|
|
651
|
+
if (cacheTags) {
|
|
652
|
+
headers[next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__.NEXT_CACHE_TAGS_HEADER] = cacheTags;
|
|
653
|
+
}
|
|
654
|
+
if (!headers['content-type'] && blob.type) {
|
|
655
|
+
headers['content-type'] = blob.type;
|
|
656
|
+
}
|
|
657
|
+
const revalidate = typeof context.renderOpts.collectedRevalidate === 'undefined' || context.renderOpts.collectedRevalidate >= next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__.INFINITE_CACHE ? false : context.renderOpts.collectedRevalidate;
|
|
658
|
+
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
|
|
659
|
+
// explicit `expire` (e.g. via `cacheLife`). This mirrors the
|
|
660
|
+
// build-time fallback in `build/index.ts` so cache entries
|
|
661
|
+
// and the response Cache-Control header agree on the route's
|
|
662
|
+
// effective expire. Routes that opt out of revalidation
|
|
663
|
+
// (`revalidate: false`) or that are dynamic (`revalidate: 0`)
|
|
664
|
+
// keep `expire: undefined`.
|
|
665
|
+
revalidate !== false && revalidate > 0 ? nextConfig.expireTime : undefined : context.renderOpts.collectedExpire;
|
|
666
|
+
// Create the cache entry for the response.
|
|
667
|
+
const cacheEntry = {
|
|
668
|
+
value: {
|
|
669
|
+
kind: next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__.CachedRouteKind.APP_ROUTE,
|
|
670
|
+
status: response.status,
|
|
671
|
+
body: Buffer.from(await blob.arrayBuffer()),
|
|
672
|
+
headers
|
|
673
|
+
},
|
|
674
|
+
cacheControl: {
|
|
675
|
+
revalidate,
|
|
676
|
+
expire
|
|
677
|
+
}
|
|
678
|
+
};
|
|
679
|
+
return cacheEntry;
|
|
680
|
+
} else {
|
|
681
|
+
// send response without caching if not ISR
|
|
682
|
+
await (0,next_dist_server_send_response__WEBPACK_IMPORTED_MODULE_11__/* .sendResponse */ .I)(nodeNextReq, nodeNextRes, response, pendingWaitUntil);
|
|
683
|
+
return null;
|
|
684
|
+
}
|
|
685
|
+
} catch (err) {
|
|
686
|
+
// if this is a background revalidate we need to report
|
|
687
|
+
// the request error here as it won't be bubbled
|
|
688
|
+
if (previousCacheEntry == null ? void 0 : previousCacheEntry.isStale) {
|
|
689
|
+
const silenceLog = false;
|
|
690
|
+
await routeModule.onRequestError(req, err, {
|
|
691
|
+
routerKind: 'App Router',
|
|
692
|
+
routePath: srcPage,
|
|
693
|
+
routeType: 'route',
|
|
694
|
+
revalidateReason: (0,next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_10__.getRevalidateReason)({
|
|
695
|
+
isStaticGeneration: cacheKey !== null,
|
|
696
|
+
isOnDemandRevalidate
|
|
697
|
+
})
|
|
698
|
+
}, silenceLog, routerServerContext);
|
|
699
|
+
}
|
|
700
|
+
throw err;
|
|
806
701
|
}
|
|
807
|
-
}
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
const
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
702
|
+
};
|
|
703
|
+
const handleResponse = async (currentSpan, parentSpan)=>{
|
|
704
|
+
try {
|
|
705
|
+
var _cacheEntry_value;
|
|
706
|
+
const cacheEntry = await routeModule.handleResponse({
|
|
707
|
+
req,
|
|
708
|
+
nextConfig,
|
|
709
|
+
cacheKey,
|
|
710
|
+
routeKind: next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__.RouteKind.APP_ROUTE,
|
|
711
|
+
isFallback: false,
|
|
712
|
+
previewProps,
|
|
713
|
+
prerenderManifest,
|
|
714
|
+
isRoutePPREnabled: false,
|
|
715
|
+
isOnDemandRevalidate,
|
|
716
|
+
revalidateOnlyGenerated,
|
|
717
|
+
responseGenerator,
|
|
718
|
+
waitUntil: ctx.waitUntil,
|
|
719
|
+
isMinimalMode
|
|
720
|
+
});
|
|
721
|
+
if (cacheEntry !== null && 'error' in cacheEntry) {
|
|
722
|
+
throw cacheEntry.error;
|
|
723
|
+
}
|
|
724
|
+
// we don't create a cacheEntry for ISR
|
|
725
|
+
if (!isIsr) {
|
|
726
|
+
return;
|
|
727
|
+
}
|
|
728
|
+
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) {
|
|
729
|
+
var _cacheEntry_value1;
|
|
730
|
+
throw new Error(`Invariant: app-route received invalid cache entry ${cacheEntry == null ? void 0 : (_cacheEntry_value1 = cacheEntry.value) == null ? void 0 : _cacheEntry_value1.kind}`);
|
|
731
|
+
}
|
|
732
|
+
if (!isMinimalMode) {
|
|
733
|
+
res.setHeader('x-nextjs-cache', isOnDemandRevalidate ? 'REVALIDATED' : cacheEntry.isMiss ? 'MISS' : cacheEntry.isStale ? 'STALE' : 'HIT');
|
|
734
|
+
}
|
|
735
|
+
// Draft mode should never be cached
|
|
736
|
+
if (isDraftMode) {
|
|
737
|
+
res.setHeader('Cache-Control', 'private, no-cache, no-store, max-age=0, must-revalidate');
|
|
738
|
+
}
|
|
739
|
+
const headers = (0,next_dist_server_web_utils__WEBPACK_IMPORTED_MODULE_12__.fromNodeOutgoingHttpHeaders)(cacheEntry.value.headers);
|
|
740
|
+
if (!(isMinimalMode && isIsr)) {
|
|
741
|
+
headers.delete(next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__.NEXT_CACHE_TAGS_HEADER);
|
|
742
|
+
}
|
|
743
|
+
// If cache control is already set on the response we don't
|
|
744
|
+
// override it to allow users to customize it via next.config
|
|
745
|
+
if (cacheEntry.cacheControl && !res.getHeader('Cache-Control') && !headers.get('Cache-Control')) {
|
|
746
|
+
headers.set('Cache-Control', (0,next_dist_server_lib_cache_control__WEBPACK_IMPORTED_MODULE_13__.getCacheControlHeader)(cacheEntry.cacheControl));
|
|
747
|
+
}
|
|
748
|
+
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'.
|
|
749
|
+
new Response(cacheEntry.value.body, {
|
|
750
|
+
headers,
|
|
751
|
+
status: cacheEntry.value.status || 200
|
|
752
|
+
}));
|
|
753
|
+
return;
|
|
754
|
+
} catch (err) {
|
|
755
|
+
if (!(err instanceof next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_15__.NoFallbackError)) {
|
|
756
|
+
const silenceLog = false;
|
|
757
|
+
await routeModule.onRequestError(req, err, {
|
|
758
|
+
routerKind: 'App Router',
|
|
759
|
+
routePath: normalizedSrcPage,
|
|
760
|
+
routeType: 'route',
|
|
761
|
+
revalidateReason: (0,next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_10__.getRevalidateReason)({
|
|
762
|
+
isStaticGeneration: cacheKey !== null,
|
|
763
|
+
isOnDemandRevalidate
|
|
764
|
+
})
|
|
765
|
+
}, silenceLog, routerServerContext);
|
|
766
|
+
}
|
|
767
|
+
// rethrow so that we can handle serving error page
|
|
768
|
+
// If this is during static generation, throw the error again.
|
|
769
|
+
if (isIsr) throw err;
|
|
770
|
+
// Otherwise, send a 500 response unless the original response has
|
|
771
|
+
// already committed. In that case, preserve its status code for
|
|
772
|
+
// telemetry while still recording the failure and terminating a response
|
|
773
|
+
// that the failed pipeline left open.
|
|
774
|
+
if (res.headersSent) {
|
|
775
|
+
if (currentSpan) {
|
|
776
|
+
const error = err instanceof Error ? err : new Error('Unknown app route error');
|
|
777
|
+
currentSpan.recordException(error);
|
|
778
|
+
currentSpan.setStatus({
|
|
779
|
+
code: next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.SpanStatusCode.ERROR,
|
|
780
|
+
message: error.message
|
|
781
|
+
});
|
|
782
|
+
currentSpan.setAttribute('error.type', error.name);
|
|
783
|
+
}
|
|
784
|
+
if (!res.writableEnded && !res.destroyed) {
|
|
785
|
+
res.end();
|
|
786
|
+
}
|
|
787
|
+
} else {
|
|
788
|
+
await (0,next_dist_server_send_response__WEBPACK_IMPORTED_MODULE_11__/* .sendResponse */ .I)(nodeNextReq, nodeNextRes, new Response(null, {
|
|
789
|
+
status: 500
|
|
790
|
+
}));
|
|
791
|
+
}
|
|
792
|
+
return;
|
|
793
|
+
} finally{
|
|
794
|
+
;
|
|
795
|
+
(()=>{
|
|
796
|
+
if (!currentSpan) {
|
|
797
|
+
return;
|
|
798
|
+
}
|
|
799
|
+
let statusCode = res.statusCode;
|
|
800
|
+
currentSpan.setAttributes({
|
|
801
|
+
'http.status_code': statusCode,
|
|
802
|
+
'next.rsc': false
|
|
803
|
+
});
|
|
804
|
+
if (statusCode && statusCode >= 500) {
|
|
805
|
+
// For 5xx status codes: SHOULD be set to 'Error' span status.
|
|
806
|
+
// x-ref: https://opentelemetry.io/docs/specs/semconv/http/http-spans/#status
|
|
807
|
+
currentSpan.setStatus({
|
|
808
|
+
code: next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.SpanStatusCode.ERROR
|
|
809
|
+
});
|
|
810
|
+
// For span status 'Error', SHOULD set 'error.type' attribute.
|
|
811
|
+
currentSpan.setAttribute('error.type', statusCode.toString());
|
|
812
|
+
}
|
|
813
|
+
const rootSpanAttributes = tracer.getRootSpanAttributes();
|
|
814
|
+
// We were unable to get attributes, probably OTEL is not enabled
|
|
815
|
+
if (!rootSpanAttributes) {
|
|
816
|
+
return;
|
|
817
|
+
}
|
|
818
|
+
if (rootSpanAttributes.get('next.span_type') !== next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_9__.BaseServerSpan.handleRequest) {
|
|
819
|
+
console.warn(`Unexpected root span type '${rootSpanAttributes.get('next.span_type')}'. Please report this Next.js issue https://github.com/vercel/next.js`);
|
|
820
|
+
return;
|
|
821
|
+
}
|
|
822
|
+
const route = rootSpanAttributes.get('next.route') || normalizedSrcPage;
|
|
823
|
+
const name = `${method} ${route}`;
|
|
824
|
+
currentSpan.setAttributes({
|
|
825
|
+
'next.route': route,
|
|
826
|
+
'http.route': route,
|
|
827
|
+
'next.span_name': name
|
|
828
|
+
});
|
|
829
|
+
currentSpan.updateName(name);
|
|
830
|
+
// Propagate http.route to the parent span if one exists (e.g.
|
|
831
|
+
// a platform-created HTTP span in adapter deployments).
|
|
832
|
+
if (parentSpan && parentSpan !== currentSpan) {
|
|
833
|
+
parentSpan.setAttribute('http.route', route);
|
|
834
|
+
parentSpan.updateName(name);
|
|
835
|
+
}
|
|
836
|
+
})();
|
|
833
837
|
}
|
|
834
838
|
};
|
|
839
|
+
// TODO: activeSpan code path is for when wrapped by
|
|
840
|
+
// next-server can be removed when this is no longer used
|
|
841
|
+
if (isWrappedByNextServer && activeSpan) {
|
|
842
|
+
await handleResponse(activeSpan, undefined);
|
|
843
|
+
} else {
|
|
844
|
+
let parentSpan = tracer.getActiveScopeSpan();
|
|
845
|
+
await tracer.withPropagatedContext(req.headers, ()=>tracer.trace(next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_9__.BaseServerSpan.handleRequest, {
|
|
846
|
+
spanName: `${method} ${srcPage}`,
|
|
847
|
+
kind: next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.SpanKind.SERVER,
|
|
848
|
+
attributes: {
|
|
849
|
+
'http.method': method,
|
|
850
|
+
'http.target': req.url
|
|
851
|
+
}
|
|
852
|
+
}, (span)=>handleResponse(span, parentSpan)), undefined, !isWrappedByNextServer);
|
|
853
|
+
}
|
|
835
854
|
}
|
|
836
855
|
|
|
856
|
+
//# sourceMappingURL=app-route.js.map
|
|
837
857
|
|
|
838
|
-
/***/ }),
|
|
839
|
-
|
|
840
|
-
/***/ 57075:
|
|
841
|
-
/***/ ((module) => {
|
|
842
|
-
|
|
843
|
-
module.exports = require("node:stream");
|
|
844
|
-
|
|
845
|
-
/***/ }),
|
|
846
|
-
|
|
847
|
-
/***/ 57975:
|
|
848
|
-
/***/ ((module) => {
|
|
849
|
-
|
|
850
|
-
module.exports = require("node:util");
|
|
851
|
-
|
|
852
|
-
/***/ }),
|
|
853
|
-
|
|
854
|
-
/***/ 63033:
|
|
855
|
-
/***/ ((module) => {
|
|
856
|
-
|
|
857
|
-
module.exports = require("next/dist/server/app-render/work-unit-async-storage.external.js");
|
|
858
858
|
|
|
859
859
|
/***/ }),
|
|
860
860
|
|
|
@@ -1277,7 +1277,7 @@ module.exports = import("@huggingface/transformers");;
|
|
|
1277
1277
|
var __webpack_require__ = require("../../../../../../../webpack-runtime.js");
|
|
1278
1278
|
__webpack_require__.C(exports);
|
|
1279
1279
|
var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
|
|
1280
|
-
var __webpack_exports__ = __webpack_require__.X(0, [2970,7377,1813,7981,4992,46], () => (__webpack_exec__(
|
|
1280
|
+
var __webpack_exports__ = __webpack_require__.X(0, [2970,7377,1813,7981,4992,46], () => (__webpack_exec__(68141)));
|
|
1281
1281
|
module.exports = __webpack_exports__;
|
|
1282
1282
|
|
|
1283
1283
|
})();
|