@circuitwall/jarela 2.2.1 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.next/standalone/.next/BUILD_ID +1 -1
- package/.next/standalone/.next/app-path-routes-manifest.json +2 -1
- package/.next/standalone/.next/build-manifest.json +2 -2
- package/.next/standalone/.next/prerender-manifest.json +3 -3
- package/.next/standalone/.next/routes-manifest.json +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 +100 -93
- package/.next/standalone/.next/server/app/api/v1/access/route.js +176 -169
- package/.next/standalone/.next/server/app/api/v1/agents/[id]/compact/route.js +89 -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 +139 -127
- package/.next/standalone/.next/server/app/api/v1/agents/[id]/route.js +107 -100
- package/.next/standalone/.next/server/app/api/v1/agents/[id]/thread/route.js +765 -753
- package/.next/standalone/.next/server/app/api/v1/agents/route.js +72 -65
- package/.next/standalone/.next/server/app/api/v1/allowed-sites/[hostname]/route.js +371 -364
- package/.next/standalone/.next/server/app/api/v1/allowed-sites/route.js +809 -802
- package/.next/standalone/.next/server/app/api/v1/artifacts/lifecycle/route.js +9 -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 +583 -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 +41 -30
- package/.next/standalone/.next/server/app/api/v1/bridges/[id]/ignores/route.js +48 -37
- package/.next/standalone/.next/server/app/api/v1/bridges/[id]/lookup/route.js +697 -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 +703 -136
- 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 +796 -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 +762 -746
- package/.next/standalone/.next/server/app/api/v1/bridges/[id]/routes/route.js +1050 -1034
- package/.next/standalone/.next/server/app/api/v1/bridges/[id]/status/route.js +673 -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 +811 -804
- package/.next/standalone/.next/server/app/api/v1/bridges/kinds/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/bridges/route.js +718 -706
- package/.next/standalone/.next/server/app/api/v1/bridges/route.js.nft.json +1 -1
- 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 +796 -784
- package/.next/standalone/.next/server/app/api/v1/dashboard/pricing/route.js +30 -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 +385 -378
- package/.next/standalone/.next/server/app/api/v1/documents/settings/route.js +51 -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 +375 -368
- package/.next/standalone/.next/server/app/api/v1/env-sync/route.js +51 -44
- package/.next/standalone/.next/server/app/api/v1/events/route.js +745 -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 +51 -44
- package/.next/standalone/.next/server/app/api/v1/extension/browser/foreground/route.js +16 -9
- package/.next/standalone/.next/server/app/api/v1/extension/browser/history/route.js +72 -65
- package/.next/standalone/.next/server/app/api/v1/extension/browser/poll/route.js +41 -34
- package/.next/standalone/.next/server/app/api/v1/extension/browser/progress/route.js +211 -204
- package/.next/standalone/.next/server/app/api/v1/extension/browser/result/route.js +140 -133
- package/.next/standalone/.next/server/app/api/v1/extension/browser/retry/route.js +113 -106
- package/.next/standalone/.next/server/app/api/v1/extension/browser/status/route.js +121 -114
- package/.next/standalone/.next/server/app/api/v1/extension/browser/tabs/route.js +141 -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 +228 -221
- package/.next/standalone/.next/server/app/api/v1/harnesses/default/route.js +65 -58
- package/.next/standalone/.next/server/app/api/v1/harnesses/route.js +79 -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 +783 -771
- package/.next/standalone/.next/server/app/api/v1/integrations/[name]/route.js +140 -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 +370 -363
- package/.next/standalone/.next/server/app/api/v1/integrations/gmail/oauth/start/route.js +240 -233
- package/.next/standalone/.next/server/app/api/v1/integrations/gmail/oauth/status/route.js +689 -682
- package/.next/standalone/.next/server/app/api/v1/integrations/outlook/oauth/callback/route.js +886 -879
- package/.next/standalone/.next/server/app/api/v1/integrations/outlook/oauth/start/route.js +115 -108
- package/.next/standalone/.next/server/app/api/v1/integrations/outlook/oauth/status/route.js +955 -948
- package/.next/standalone/.next/server/app/api/v1/integrations/route.js +223 -216
- package/.next/standalone/.next/server/app/api/v1/lifecycle/adoption/route.js +876 -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 +79 -72
- package/.next/standalone/.next/server/app/api/v1/mcp-servers/[name]/route.js +991 -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 +19 -7
- package/.next/standalone/.next/server/app/api/v1/memory/[namespace]/[key]/route.js +539 -532
- package/.next/standalone/.next/server/app/api/v1/memory/policy/route.js +86 -79
- package/.next/standalone/.next/server/app/api/v1/memory/route.js +58 -51
- package/.next/standalone/.next/server/app/api/v1/memory/search/route.js +138 -131
- package/.next/standalone/.next/server/app/api/v1/models/[name]/compact-threads/route.js +381 -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 +150 -143
- package/.next/standalone/.next/server/app/api/v1/models/route.js +634 -627
- 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 +529 -514
- 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 +37 -30
- package/.next/standalone/.next/server/app/api/v1/profile/route.js +171 -164
- package/.next/standalone/.next/server/app/api/v1/providers/[provider]/models/route.js +51 -44
- package/.next/standalone/.next/server/app/api/v1/providers/[provider]/probe/route.js +15 -8
- package/.next/standalone/.next/server/app/api/v1/providers/github-copilot/auth/route.js +171 -164
- package/.next/standalone/.next/server/app/api/v1/providers/route.js +101 -94
- package/.next/standalone/.next/server/app/api/v1/proxy-config/route.js +457 -450
- package/.next/standalone/.next/server/app/api/v1/redaction/init/route.js +44 -37
- package/.next/standalone/.next/server/app/api/v1/redaction/route.js +65 -58
- package/.next/standalone/.next/server/app/api/v1/scheduled-tasks/[id]/route.js +617 -605
- 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 +739 -732
- package/.next/standalone/.next/server/app/api/v1/security/idle-timeout/route.js +329 -322
- package/.next/standalone/.next/server/app/api/v1/security/pin/route.js +204 -197
- package/.next/standalone/.next/server/app/api/v1/security/state/route.js +58 -51
- package/.next/standalone/.next/server/app/api/v1/security/unlock/route.js +183 -176
- package/.next/standalone/.next/server/app/api/v1/security/verify-pin/route.js +194 -187
- 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 +776 -769
- package/.next/standalone/.next/server/app/api/v1/skills/repos/[id]/route.js +122 -115
- package/.next/standalone/.next/server/app/api/v1/skills/repos/route.js +334 -327
- package/.next/standalone/.next/server/app/api/v1/skills/route.js +873 -866
- 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 +122 -115
- package/.next/standalone/.next/server/app/api/v1/tasks/route.js +30 -23
- package/.next/standalone/.next/server/app/api/v1/threads/[thread_id]/activity/route.js +1436 -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 +638 -631
- 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 +60 -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 -173
- 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 +925 -913
- 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 +241 -229
- package/.next/standalone/.next/server/app/api/v1/voice/tts/route.js +989 -977
- package/.next/standalone/.next/server/app/api/v1/watchers/[id]/route.js +40 -28
- 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 +1179 -743
- package/.next/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/setup/page.js +99 -91
- package/.next/standalone/.next/server/app/setup/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app-paths-manifest.json +2 -1
- package/.next/standalone/.next/server/chunks/{424.js → 1388.js} +441 -1022
- 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/2068.js +47 -10
- package/.next/standalone/.next/server/chunks/210.js +3 -3
- 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/2447.js +10 -5
- package/.next/standalone/.next/server/chunks/2471.js +45 -45
- 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 +24 -16
- package/.next/standalone/.next/server/chunks/{4540.js → 309.js} +104 -38
- package/.next/standalone/.next/server/chunks/{2350.js → 3272.js} +104 -37
- package/.next/standalone/.next/server/chunks/3399.js +526 -526
- package/.next/standalone/.next/server/chunks/3524.js +150 -67
- 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/4433.js +146 -146
- package/.next/standalone/.next/server/chunks/4508.js +3 -3
- package/.next/standalone/.next/server/chunks/4588.js +1 -0
- package/.next/standalone/.next/server/chunks/46.js +78 -28
- 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/5908.js +63 -42
- package/.next/standalone/.next/server/chunks/6142.js +10 -2
- 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 +3 -3
- 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 +24 -17
- 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 +4 -3
- package/.next/standalone/.next/server/chunks/{2563.js → 9164.js} +33389 -31418
- package/.next/standalone/.next/server/chunks/9237.js +396 -396
- package/.next/standalone/.next/server/chunks/{9640.js → 9304.js} +1672 -575
- package/.next/standalone/.next/server/chunks/9406.js +1 -1
- package/.next/standalone/.next/server/chunks/9590.js +68 -18
- 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 +486 -415
- 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-04748847c6ff866f.js} +1013 -585
- 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 → 2669e8744cc8c212.css} +2 -2
- package/.next/standalone/docs/adoption/changesets.json +358 -0
- package/.next/standalone/lib/skills/builtins/memory-organization/SKILL.md +16 -0
- package/.next/standalone/package.json +3 -3
- package/CHANGELOG.md +44 -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/app/api/v1/threads/[thread_id]/run/route.ts +0 -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/MessageBubble.tsx +12 -0
- 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/integrations/NetworkSection.tsx +2 -2
- package/components/ui/BootScreen.tsx +17 -0
- package/components/ui/WorkflowChecklist.tsx +71 -33
- package/hooks/useSSE.ts +28 -3
- package/lib/agents/citation-checker.test.ts +40 -2
- package/lib/agents/citation-checker.ts +56 -11
- package/lib/agents/compaction-pipeline.test.ts +202 -0
- package/lib/agents/compaction-pipeline.ts +483 -0
- package/lib/agents/context-boundary.ts +5 -6
- package/lib/agents/conversation-summary.ts +37 -21
- package/lib/agents/instruction-edits.test.ts +120 -0
- package/lib/agents/instruction-edits.ts +65 -42
- 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 -2
- package/lib/agents/prepare/system-prompt.test.ts +49 -0
- package/lib/agents/prepare/system-prompt.ts +16 -5
- 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/proposals.test.ts +76 -0
- package/lib/agents/proposals.ts +13 -5
- package/lib/agents/run-registry.test.ts +22 -0
- package/lib/agents/run-registry.ts +29 -0
- package/lib/agents/run-thread.auto-boundary.test.ts +125 -5
- package/lib/agents/run-thread.retry.test.ts +67 -1
- package/lib/agents/run-thread.ts +110 -10
- package/lib/agents/sqlite-checkpoint-saver.test.ts +91 -0
- 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 +346 -143
- package/lib/agents/warm-topics.test.ts +191 -0
- package/lib/agents/warm-topics.ts +317 -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/bridges/dispatcher.ts +1 -0
- package/lib/bridges/message-role.test.ts +81 -0
- package/lib/bridges/message-role.ts +23 -10
- package/lib/bridges/types.ts +6 -0
- package/lib/bridges/whatsapp-link.test.ts +32 -0
- package/lib/bridges/whatsapp-link.ts +21 -0
- package/lib/bridges/whatsapp.inbound.test.ts +239 -0
- package/lib/bridges/whatsapp.sender.test.ts +80 -1
- package/lib/bridges/whatsapp.ts +76 -38
- 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/pricing/snapshot.test.ts +70 -0
- package/lib/pricing/snapshot.ts +10 -2
- package/lib/providers/external.ts +0 -2
- package/lib/proxy/dispatcher.test.ts +119 -1
- package/lib/proxy/dispatcher.ts +22 -9
- package/lib/skills/builtins/memory-organization/SKILL.md +16 -0
- package/lib/stores/agent-configs.ts +10 -5
- package/lib/stores/bridges.test.ts +81 -0
- package/lib/stores/bridges.ts +9 -8
- package/lib/stores/proxy-config.test.ts +120 -0
- package/lib/stores/proxy-config.ts +22 -4
- package/lib/stores/threads.test.ts +9 -0
- package/lib/stores/threads.ts +33 -19
- 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/calendar.test.ts +43 -2
- package/lib/tools/communications/calendar.ts +2 -0
- package/lib/tools/communications/gmail.test.ts +51 -1
- package/lib/tools/communications/gmail.ts +44 -2
- package/lib/tools/communications/ms-todo.ts +0 -7
- package/lib/tools/communications/outlook-calendar.ts +2 -0
- package/lib/tools/communications/outlook.test.ts +33 -2
- package/lib/tools/communications/outlook.ts +2 -0
- package/lib/tools/filesystem/edit-match.test.ts +133 -0
- package/lib/tools/filesystem/edit-match.ts +7 -2
- 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/tools/support/result-refs.test.ts +131 -0
- package/lib/tools/support/result-refs.ts +41 -9
- package/lib/triggers/registry.ts +0 -4
- package/lib/utils/source-link.test.ts +51 -0
- package/lib/utils/source-link.ts +45 -0
- 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 → hwujW4hR1b-r3k5WdMxZO}/_buildManifest.js +0 -0
- /package/.next/standalone/.next/static/{NUrC9xax1sp1Q70nlFqS6 → hwujW4hR1b-r3k5WdMxZO}/_ssgManifest.js +0 -0
|
@@ -54,612 +54,168 @@ module.exports = require("next/dist/compiled/next-server/app-page.runtime.prod.j
|
|
|
54
54
|
|
|
55
55
|
/***/ }),
|
|
56
56
|
|
|
57
|
-
/***/
|
|
57
|
+
/***/ 16698:
|
|
58
|
+
/***/ ((module) => {
|
|
59
|
+
|
|
60
|
+
module.exports = require("node:async_hooks");
|
|
61
|
+
|
|
62
|
+
/***/ }),
|
|
63
|
+
|
|
64
|
+
/***/ 18156:
|
|
58
65
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
59
66
|
|
|
60
|
-
__webpack_require__.r(__webpack_exports__);
|
|
61
67
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
62
|
-
/* harmony export */
|
|
63
|
-
/* harmony export */ patchFetch: () => (/* binding */ patchFetch),
|
|
64
|
-
/* harmony export */ routeModule: () => (/* binding */ routeModule),
|
|
65
|
-
/* harmony export */ serverHooks: () => (/* binding */ serverHooks),
|
|
66
|
-
/* harmony export */ workAsyncStorage: () => (/* binding */ workAsyncStorage),
|
|
67
|
-
/* harmony export */ workUnitAsyncStorage: () => (/* binding */ workUnitAsyncStorage)
|
|
68
|
+
/* harmony export */ W: () => (/* binding */ rowResponse)
|
|
68
69
|
/* harmony export */ });
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
70
|
+
// Shared response shape for scheduled-task routes. Lives in `_response.ts`
|
|
71
|
+
// (underscore prefix) so Next's router treats it as a co-located helper
|
|
72
|
+
// instead of a route. Export-from-route.ts breaks the App Router type
|
|
73
|
+
// guard that only allows known HTTP-method exports.
|
|
74
|
+
function rowResponse(r) {
|
|
75
|
+
let scriptArgs = null;
|
|
76
|
+
if (r.reaction_script_args) {
|
|
77
|
+
try {
|
|
78
|
+
scriptArgs = JSON.parse(r.reaction_script_args);
|
|
79
|
+
} catch {
|
|
80
|
+
scriptArgs = null;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
return {
|
|
84
|
+
id: r.id,
|
|
85
|
+
agent_id: r.agent_id,
|
|
86
|
+
prompt: r.prompt,
|
|
87
|
+
description: r.description,
|
|
88
|
+
kind: r.kind,
|
|
89
|
+
schedule: r.schedule,
|
|
90
|
+
next_run_at: r.next_run_at,
|
|
91
|
+
last_run_at: r.last_run_at,
|
|
92
|
+
last_error: r.last_error,
|
|
93
|
+
enabled: r.enabled === 1,
|
|
94
|
+
silent: r.silent === 1,
|
|
95
|
+
reaction_kind: r.reaction_kind,
|
|
96
|
+
reaction_script: r.reaction_script,
|
|
97
|
+
reaction_script_args: scriptArgs,
|
|
98
|
+
created_at: r.created_at,
|
|
99
|
+
updated_at: r.updated_at
|
|
100
|
+
};
|
|
101
|
+
}
|
|
101
102
|
|
|
102
103
|
|
|
104
|
+
/***/ }),
|
|
103
105
|
|
|
106
|
+
/***/ 19121:
|
|
107
|
+
/***/ ((module) => {
|
|
104
108
|
|
|
109
|
+
module.exports = require("next/dist/server/app-render/action-async-storage.external.js");
|
|
105
110
|
|
|
111
|
+
/***/ }),
|
|
106
112
|
|
|
113
|
+
/***/ 27910:
|
|
114
|
+
/***/ ((module) => {
|
|
107
115
|
|
|
116
|
+
module.exports = require("stream");
|
|
108
117
|
|
|
118
|
+
/***/ }),
|
|
109
119
|
|
|
120
|
+
/***/ 28354:
|
|
121
|
+
/***/ ((module) => {
|
|
110
122
|
|
|
123
|
+
module.exports = require("util");
|
|
111
124
|
|
|
125
|
+
/***/ }),
|
|
112
126
|
|
|
127
|
+
/***/ 29021:
|
|
128
|
+
/***/ ((module) => {
|
|
113
129
|
|
|
130
|
+
module.exports = require("fs");
|
|
114
131
|
|
|
132
|
+
/***/ }),
|
|
115
133
|
|
|
134
|
+
/***/ 29294:
|
|
135
|
+
/***/ ((module) => {
|
|
116
136
|
|
|
137
|
+
module.exports = require("next/dist/server/app-render/work-async-storage.external.js");
|
|
117
138
|
|
|
139
|
+
/***/ }),
|
|
118
140
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
141
|
+
/***/ 31421:
|
|
142
|
+
/***/ ((module) => {
|
|
143
|
+
|
|
144
|
+
module.exports = require("node:child_process");
|
|
145
|
+
|
|
146
|
+
/***/ }),
|
|
147
|
+
|
|
148
|
+
/***/ 33873:
|
|
149
|
+
/***/ ((module) => {
|
|
150
|
+
|
|
151
|
+
module.exports = require("path");
|
|
152
|
+
|
|
153
|
+
/***/ }),
|
|
154
|
+
|
|
155
|
+
/***/ 37067:
|
|
156
|
+
/***/ ((module) => {
|
|
157
|
+
|
|
158
|
+
module.exports = require("node:http");
|
|
159
|
+
|
|
160
|
+
/***/ }),
|
|
161
|
+
|
|
162
|
+
/***/ 38522:
|
|
163
|
+
/***/ ((module) => {
|
|
164
|
+
|
|
165
|
+
module.exports = require("node:zlib");
|
|
166
|
+
|
|
167
|
+
/***/ }),
|
|
168
|
+
|
|
169
|
+
/***/ 39947:
|
|
170
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
171
|
+
|
|
172
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
173
|
+
/* harmony export */ Bm: () => (/* binding */ cachedJson),
|
|
174
|
+
/* harmony export */ HN: () => (/* binding */ notFoundResponse),
|
|
175
|
+
/* harmony export */ Jb: () => (/* binding */ validateBody),
|
|
176
|
+
/* harmony export */ K2: () => (/* binding */ createdResponse),
|
|
177
|
+
/* harmony export */ Ng: () => (/* binding */ noStoreJson),
|
|
178
|
+
/* harmony export */ yj: () => (/* binding */ errorResponse)
|
|
179
|
+
/* harmony export */ });
|
|
180
|
+
/* harmony import */ var next_server__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23211);
|
|
181
|
+
// Shared HTTP response builders for app/api/v1/** route handlers.
|
|
182
|
+
//
|
|
183
|
+
// Goal: every error/success payload across the v1 surface has the same
|
|
184
|
+
// shape. Before this lived inline, response bodies drifted —
|
|
185
|
+
// `{error: "x"}` vs `{message: "x"}`, 400 vs 422 for the same condition,
|
|
186
|
+
// some routes returned Zod's raw issue array, others stringified it.
|
|
187
|
+
|
|
188
|
+
function errorResponse(message, status = 400) {
|
|
189
|
+
return next_server__WEBPACK_IMPORTED_MODULE_0__.NextResponse.json({
|
|
190
|
+
error: message
|
|
191
|
+
}, {
|
|
192
|
+
status
|
|
156
193
|
});
|
|
157
194
|
}
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
(0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.addRequestMeta)(req, 'devRequestTimingInternalsEnd', process.hrtime.bigint());
|
|
165
|
-
}
|
|
166
|
-
let srcPage = "/api/v1/scheduled-tasks/[id]/route";
|
|
167
|
-
// turbopack doesn't normalize `/index` in the page name
|
|
168
|
-
// so we need to to process dynamic routes properly
|
|
169
|
-
// TODO: fix turbopack providing differing value from webpack
|
|
170
|
-
if (false) {} else if (srcPage === '/index') {
|
|
171
|
-
// we always normalize /index specifically
|
|
172
|
-
srcPage = '/';
|
|
173
|
-
}
|
|
174
|
-
const multiZoneDraftMode = false;
|
|
175
|
-
const prepareResult = await routeModule.prepare(req, res, {
|
|
176
|
-
srcPage,
|
|
177
|
-
multiZoneDraftMode
|
|
195
|
+
function notFoundResponse(message = "Not found") {
|
|
196
|
+
return errorResponse(message, 404);
|
|
197
|
+
}
|
|
198
|
+
function createdResponse(data) {
|
|
199
|
+
return next_server__WEBPACK_IMPORTED_MODULE_0__.NextResponse.json(data, {
|
|
200
|
+
status: 201
|
|
178
201
|
});
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
}
|
|
197
|
-
return null;
|
|
198
|
-
};
|
|
199
|
-
if (isIsr && !isDraftMode) {
|
|
200
|
-
const prerenderInfo = prerenderManifest.dynamicRoutes[normalizedSrcPage];
|
|
201
|
-
if (prerenderInfo) {
|
|
202
|
-
if (prerenderInfo.fallback === false && !isPrerendered) {
|
|
203
|
-
if (nextConfig.adapterPath) {
|
|
204
|
-
return await render404();
|
|
205
|
-
}
|
|
206
|
-
throw new next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_15__.NoFallbackError();
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
let cacheKey = null;
|
|
211
|
-
if (isIsr && !routeModule.isDev && !isDraftMode) {
|
|
212
|
-
cacheKey = resolvedPathname;
|
|
213
|
-
// ensure /index and / is normalized to one key
|
|
214
|
-
cacheKey = cacheKey === '/index' ? '/' : cacheKey;
|
|
215
|
-
}
|
|
216
|
-
// Before rendering (which initializes component tree modules), we have to
|
|
217
|
-
// set the reference manifests to our global store so Server Action's
|
|
218
|
-
// encryption util can access to them at the top level of the page module.
|
|
219
|
-
if (serverActionsManifest && clientReferenceManifest) {
|
|
220
|
-
(0,next_dist_server_app_render_manifests_singleton__WEBPACK_IMPORTED_MODULE_5__.setManifestsSingleton)({
|
|
221
|
-
page: srcPage,
|
|
222
|
-
clientReferenceManifest,
|
|
223
|
-
serverActionsManifest
|
|
224
|
-
});
|
|
225
|
-
}
|
|
226
|
-
const method = req.method || 'GET';
|
|
227
|
-
const tracer = (0,next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.getTracer)();
|
|
228
|
-
const activeSpan = tracer.getActiveScopeSpan();
|
|
229
|
-
const isWrappedByNextServer = Boolean(routerServerContext == null ? void 0 : routerServerContext.isWrappedByNextServer);
|
|
230
|
-
const isMinimalMode = Boolean((0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.getRequestMeta)(req, 'minimalMode'));
|
|
231
|
-
const incrementalCache = (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.getRequestMeta)(req, 'incrementalCache') || await routeModule.getIncrementalCache(req, nextConfig, previewProps, prerenderManifest, isMinimalMode);
|
|
232
|
-
incrementalCache == null ? void 0 : incrementalCache.resetRequestCache();
|
|
233
|
-
globalThis.__incrementalCache = incrementalCache;
|
|
234
|
-
const context = {
|
|
235
|
-
params,
|
|
236
|
-
previewProps,
|
|
237
|
-
renderOpts: {
|
|
238
|
-
experimental: {
|
|
239
|
-
authInterrupts: Boolean(nextConfig.experimental.authInterrupts),
|
|
240
|
-
useCacheTimeout: nextConfig.experimental.useCacheTimeout,
|
|
241
|
-
durableUseCacheEntries: Boolean(nextConfig.experimental.durableUseCacheEntries)
|
|
242
|
-
},
|
|
243
|
-
cacheComponents: Boolean(nextConfig.cacheComponents),
|
|
244
|
-
validationLevel: nextConfig.experimental.instantInsights.validationLevel,
|
|
245
|
-
isDraftMode,
|
|
246
|
-
incrementalCache,
|
|
247
|
-
hmrRefreshHash: (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.getRequestMeta)(req, 'hmrRefreshHash'),
|
|
248
|
-
cacheLifeProfiles: nextConfig.cacheLife,
|
|
249
|
-
staticPageGenerationTimeout: nextConfig.staticPageGenerationTimeout,
|
|
250
|
-
waitUntil: ctx.waitUntil,
|
|
251
|
-
onClose: (cb)=>{
|
|
252
|
-
res.on('close', cb);
|
|
253
|
-
},
|
|
254
|
-
onAfterTaskError: undefined
|
|
255
|
-
},
|
|
256
|
-
sharedContext: {
|
|
257
|
-
buildId,
|
|
258
|
-
deploymentId
|
|
259
|
-
}
|
|
260
|
-
};
|
|
261
|
-
const nodeNextReq = new next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_7__.NodeNextRequest(req);
|
|
262
|
-
const nodeNextRes = new next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_7__.NodeNextResponse(res);
|
|
263
|
-
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));
|
|
264
|
-
const responseGenerator = async ({ previousCacheEntry })=>{
|
|
265
|
-
try {
|
|
266
|
-
if (!isMinimalMode && isOnDemandRevalidate && revalidateOnlyGenerated && !previousCacheEntry) {
|
|
267
|
-
res.statusCode = 404;
|
|
268
|
-
// on-demand revalidate always sets this header
|
|
269
|
-
res.setHeader('x-nextjs-cache', 'REVALIDATED');
|
|
270
|
-
res.end('This page could not be found');
|
|
271
|
-
return null;
|
|
272
|
-
}
|
|
273
|
-
const response = cacheKey === null ? await routeModule.handle(nextReq, context) : await routeModule.prerender(nextReq, context);
|
|
274
|
-
req.fetchMetrics = context.renderOpts.fetchMetrics;
|
|
275
|
-
let pendingWaitUntil = context.renderOpts.pendingWaitUntil;
|
|
276
|
-
// Attempt using provided waitUntil if available
|
|
277
|
-
// if it's not we fallback to sendResponse's handling
|
|
278
|
-
if (pendingWaitUntil) {
|
|
279
|
-
if (ctx.waitUntil) {
|
|
280
|
-
ctx.waitUntil(pendingWaitUntil);
|
|
281
|
-
pendingWaitUntil = undefined;
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
const cacheTags = context.renderOpts.collectedTags;
|
|
285
|
-
// If the request is for a static response, we can cache it so long
|
|
286
|
-
// as it's not edge.
|
|
287
|
-
if (isIsr) {
|
|
288
|
-
const blob = await response.blob();
|
|
289
|
-
// Copy the headers from the response.
|
|
290
|
-
const headers = (0,next_dist_server_web_utils__WEBPACK_IMPORTED_MODULE_12__.toNodeOutgoingHttpHeaders)(response.headers);
|
|
291
|
-
if (cacheTags) {
|
|
292
|
-
headers[next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__.NEXT_CACHE_TAGS_HEADER] = cacheTags;
|
|
293
|
-
}
|
|
294
|
-
if (!headers['content-type'] && blob.type) {
|
|
295
|
-
headers['content-type'] = blob.type;
|
|
296
|
-
}
|
|
297
|
-
const revalidate = typeof context.renderOpts.collectedRevalidate === 'undefined' || context.renderOpts.collectedRevalidate >= next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__.INFINITE_CACHE ? false : context.renderOpts.collectedRevalidate;
|
|
298
|
-
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
|
|
299
|
-
// explicit `expire` (e.g. via `cacheLife`). This mirrors the
|
|
300
|
-
// build-time fallback in `build/index.ts` so cache entries
|
|
301
|
-
// and the response Cache-Control header agree on the route's
|
|
302
|
-
// effective expire. Routes that opt out of revalidation
|
|
303
|
-
// (`revalidate: false`) or that are dynamic (`revalidate: 0`)
|
|
304
|
-
// keep `expire: undefined`.
|
|
305
|
-
revalidate !== false && revalidate > 0 ? nextConfig.expireTime : undefined : context.renderOpts.collectedExpire;
|
|
306
|
-
// Create the cache entry for the response.
|
|
307
|
-
const cacheEntry = {
|
|
308
|
-
value: {
|
|
309
|
-
kind: next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__.CachedRouteKind.APP_ROUTE,
|
|
310
|
-
status: response.status,
|
|
311
|
-
body: Buffer.from(await blob.arrayBuffer()),
|
|
312
|
-
headers
|
|
313
|
-
},
|
|
314
|
-
cacheControl: {
|
|
315
|
-
revalidate,
|
|
316
|
-
expire
|
|
317
|
-
}
|
|
318
|
-
};
|
|
319
|
-
return cacheEntry;
|
|
320
|
-
} else {
|
|
321
|
-
// send response without caching if not ISR
|
|
322
|
-
await (0,next_dist_server_send_response__WEBPACK_IMPORTED_MODULE_11__/* .sendResponse */ .I)(nodeNextReq, nodeNextRes, response, pendingWaitUntil);
|
|
323
|
-
return null;
|
|
324
|
-
}
|
|
325
|
-
} catch (err) {
|
|
326
|
-
// if this is a background revalidate we need to report
|
|
327
|
-
// the request error here as it won't be bubbled
|
|
328
|
-
if (previousCacheEntry == null ? void 0 : previousCacheEntry.isStale) {
|
|
329
|
-
const silenceLog = false;
|
|
330
|
-
await routeModule.onRequestError(req, err, {
|
|
331
|
-
routerKind: 'App Router',
|
|
332
|
-
routePath: srcPage,
|
|
333
|
-
routeType: 'route',
|
|
334
|
-
revalidateReason: (0,next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_10__.getRevalidateReason)({
|
|
335
|
-
isStaticGeneration: cacheKey !== null,
|
|
336
|
-
isOnDemandRevalidate
|
|
337
|
-
})
|
|
338
|
-
}, silenceLog, routerServerContext);
|
|
339
|
-
}
|
|
340
|
-
throw err;
|
|
341
|
-
}
|
|
342
|
-
};
|
|
343
|
-
const handleResponse = async (currentSpan, parentSpan)=>{
|
|
344
|
-
try {
|
|
345
|
-
var _cacheEntry_value;
|
|
346
|
-
const cacheEntry = await routeModule.handleResponse({
|
|
347
|
-
req,
|
|
348
|
-
nextConfig,
|
|
349
|
-
cacheKey,
|
|
350
|
-
routeKind: next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__.RouteKind.APP_ROUTE,
|
|
351
|
-
isFallback: false,
|
|
352
|
-
previewProps,
|
|
353
|
-
prerenderManifest,
|
|
354
|
-
isRoutePPREnabled: false,
|
|
355
|
-
isOnDemandRevalidate,
|
|
356
|
-
revalidateOnlyGenerated,
|
|
357
|
-
responseGenerator,
|
|
358
|
-
waitUntil: ctx.waitUntil,
|
|
359
|
-
isMinimalMode
|
|
360
|
-
});
|
|
361
|
-
if (cacheEntry !== null && 'error' in cacheEntry) {
|
|
362
|
-
throw cacheEntry.error;
|
|
363
|
-
}
|
|
364
|
-
// we don't create a cacheEntry for ISR
|
|
365
|
-
if (!isIsr) {
|
|
366
|
-
return;
|
|
367
|
-
}
|
|
368
|
-
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) {
|
|
369
|
-
var _cacheEntry_value1;
|
|
370
|
-
throw new Error(`Invariant: app-route received invalid cache entry ${cacheEntry == null ? void 0 : (_cacheEntry_value1 = cacheEntry.value) == null ? void 0 : _cacheEntry_value1.kind}`);
|
|
371
|
-
}
|
|
372
|
-
if (!isMinimalMode) {
|
|
373
|
-
res.setHeader('x-nextjs-cache', isOnDemandRevalidate ? 'REVALIDATED' : cacheEntry.isMiss ? 'MISS' : cacheEntry.isStale ? 'STALE' : 'HIT');
|
|
374
|
-
}
|
|
375
|
-
// Draft mode should never be cached
|
|
376
|
-
if (isDraftMode) {
|
|
377
|
-
res.setHeader('Cache-Control', 'private, no-cache, no-store, max-age=0, must-revalidate');
|
|
378
|
-
}
|
|
379
|
-
const headers = (0,next_dist_server_web_utils__WEBPACK_IMPORTED_MODULE_12__.fromNodeOutgoingHttpHeaders)(cacheEntry.value.headers);
|
|
380
|
-
if (!(isMinimalMode && isIsr)) {
|
|
381
|
-
headers.delete(next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__.NEXT_CACHE_TAGS_HEADER);
|
|
382
|
-
}
|
|
383
|
-
// If cache control is already set on the response we don't
|
|
384
|
-
// override it to allow users to customize it via next.config
|
|
385
|
-
if (cacheEntry.cacheControl && !res.getHeader('Cache-Control') && !headers.get('Cache-Control')) {
|
|
386
|
-
headers.set('Cache-Control', (0,next_dist_server_lib_cache_control__WEBPACK_IMPORTED_MODULE_13__.getCacheControlHeader)(cacheEntry.cacheControl));
|
|
387
|
-
}
|
|
388
|
-
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'.
|
|
389
|
-
new Response(cacheEntry.value.body, {
|
|
390
|
-
headers,
|
|
391
|
-
status: cacheEntry.value.status || 200
|
|
392
|
-
}));
|
|
393
|
-
return;
|
|
394
|
-
} catch (err) {
|
|
395
|
-
if (!(err instanceof next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_15__.NoFallbackError)) {
|
|
396
|
-
const silenceLog = false;
|
|
397
|
-
await routeModule.onRequestError(req, err, {
|
|
398
|
-
routerKind: 'App Router',
|
|
399
|
-
routePath: normalizedSrcPage,
|
|
400
|
-
routeType: 'route',
|
|
401
|
-
revalidateReason: (0,next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_10__.getRevalidateReason)({
|
|
402
|
-
isStaticGeneration: cacheKey !== null,
|
|
403
|
-
isOnDemandRevalidate
|
|
404
|
-
})
|
|
405
|
-
}, silenceLog, routerServerContext);
|
|
406
|
-
}
|
|
407
|
-
// rethrow so that we can handle serving error page
|
|
408
|
-
// If this is during static generation, throw the error again.
|
|
409
|
-
if (isIsr) throw err;
|
|
410
|
-
// Otherwise, send a 500 response unless the original response has
|
|
411
|
-
// already committed. In that case, preserve its status code for
|
|
412
|
-
// telemetry while still recording the failure and terminating a response
|
|
413
|
-
// that the failed pipeline left open.
|
|
414
|
-
if (res.headersSent) {
|
|
415
|
-
if (currentSpan) {
|
|
416
|
-
const error = err instanceof Error ? err : new Error('Unknown app route error');
|
|
417
|
-
currentSpan.recordException(error);
|
|
418
|
-
currentSpan.setStatus({
|
|
419
|
-
code: next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.SpanStatusCode.ERROR,
|
|
420
|
-
message: error.message
|
|
421
|
-
});
|
|
422
|
-
currentSpan.setAttribute('error.type', error.name);
|
|
423
|
-
}
|
|
424
|
-
if (!res.writableEnded && !res.destroyed) {
|
|
425
|
-
res.end();
|
|
426
|
-
}
|
|
427
|
-
} else {
|
|
428
|
-
await (0,next_dist_server_send_response__WEBPACK_IMPORTED_MODULE_11__/* .sendResponse */ .I)(nodeNextReq, nodeNextRes, new Response(null, {
|
|
429
|
-
status: 500
|
|
430
|
-
}));
|
|
431
|
-
}
|
|
432
|
-
return;
|
|
433
|
-
} finally{
|
|
434
|
-
;
|
|
435
|
-
(()=>{
|
|
436
|
-
if (!currentSpan) {
|
|
437
|
-
return;
|
|
438
|
-
}
|
|
439
|
-
let statusCode = res.statusCode;
|
|
440
|
-
currentSpan.setAttributes({
|
|
441
|
-
'http.status_code': statusCode,
|
|
442
|
-
'next.rsc': false
|
|
443
|
-
});
|
|
444
|
-
if (statusCode && statusCode >= 500) {
|
|
445
|
-
// For 5xx status codes: SHOULD be set to 'Error' span status.
|
|
446
|
-
// x-ref: https://opentelemetry.io/docs/specs/semconv/http/http-spans/#status
|
|
447
|
-
currentSpan.setStatus({
|
|
448
|
-
code: next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.SpanStatusCode.ERROR
|
|
449
|
-
});
|
|
450
|
-
// For span status 'Error', SHOULD set 'error.type' attribute.
|
|
451
|
-
currentSpan.setAttribute('error.type', statusCode.toString());
|
|
452
|
-
}
|
|
453
|
-
const rootSpanAttributes = tracer.getRootSpanAttributes();
|
|
454
|
-
// We were unable to get attributes, probably OTEL is not enabled
|
|
455
|
-
if (!rootSpanAttributes) {
|
|
456
|
-
return;
|
|
457
|
-
}
|
|
458
|
-
if (rootSpanAttributes.get('next.span_type') !== next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_9__.BaseServerSpan.handleRequest) {
|
|
459
|
-
console.warn(`Unexpected root span type '${rootSpanAttributes.get('next.span_type')}'. Please report this Next.js issue https://github.com/vercel/next.js`);
|
|
460
|
-
return;
|
|
461
|
-
}
|
|
462
|
-
const route = rootSpanAttributes.get('next.route') || normalizedSrcPage;
|
|
463
|
-
const name = `${method} ${route}`;
|
|
464
|
-
currentSpan.setAttributes({
|
|
465
|
-
'next.route': route,
|
|
466
|
-
'http.route': route,
|
|
467
|
-
'next.span_name': name
|
|
468
|
-
});
|
|
469
|
-
currentSpan.updateName(name);
|
|
470
|
-
// Propagate http.route to the parent span if one exists (e.g.
|
|
471
|
-
// a platform-created HTTP span in adapter deployments).
|
|
472
|
-
if (parentSpan && parentSpan !== currentSpan) {
|
|
473
|
-
parentSpan.setAttribute('http.route', route);
|
|
474
|
-
parentSpan.updateName(name);
|
|
475
|
-
}
|
|
476
|
-
})();
|
|
477
|
-
}
|
|
478
|
-
};
|
|
479
|
-
// TODO: activeSpan code path is for when wrapped by
|
|
480
|
-
// next-server can be removed when this is no longer used
|
|
481
|
-
if (isWrappedByNextServer && activeSpan) {
|
|
482
|
-
await handleResponse(activeSpan, undefined);
|
|
483
|
-
} else {
|
|
484
|
-
let parentSpan = tracer.getActiveScopeSpan();
|
|
485
|
-
await tracer.withPropagatedContext(req.headers, ()=>tracer.trace(next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_9__.BaseServerSpan.handleRequest, {
|
|
486
|
-
spanName: `${method} ${srcPage}`,
|
|
487
|
-
kind: next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.SpanKind.SERVER,
|
|
488
|
-
attributes: {
|
|
489
|
-
'http.method': method,
|
|
490
|
-
'http.target': req.url
|
|
491
|
-
}
|
|
492
|
-
}, (span)=>handleResponse(span, parentSpan)), undefined, !isWrappedByNextServer);
|
|
493
|
-
}
|
|
494
|
-
}
|
|
495
|
-
|
|
496
|
-
//# sourceMappingURL=app-route.js.map
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
/***/ }),
|
|
500
|
-
|
|
501
|
-
/***/ 16698:
|
|
502
|
-
/***/ ((module) => {
|
|
503
|
-
|
|
504
|
-
module.exports = require("node:async_hooks");
|
|
505
|
-
|
|
506
|
-
/***/ }),
|
|
507
|
-
|
|
508
|
-
/***/ 18156:
|
|
509
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
510
|
-
|
|
511
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
512
|
-
/* harmony export */ W: () => (/* binding */ rowResponse)
|
|
513
|
-
/* harmony export */ });
|
|
514
|
-
// Shared response shape for scheduled-task routes. Lives in `_response.ts`
|
|
515
|
-
// (underscore prefix) so Next's router treats it as a co-located helper
|
|
516
|
-
// instead of a route. Export-from-route.ts breaks the App Router type
|
|
517
|
-
// guard that only allows known HTTP-method exports.
|
|
518
|
-
function rowResponse(r) {
|
|
519
|
-
let scriptArgs = null;
|
|
520
|
-
if (r.reaction_script_args) {
|
|
521
|
-
try {
|
|
522
|
-
scriptArgs = JSON.parse(r.reaction_script_args);
|
|
523
|
-
} catch {
|
|
524
|
-
scriptArgs = null;
|
|
525
|
-
}
|
|
526
|
-
}
|
|
527
|
-
return {
|
|
528
|
-
id: r.id,
|
|
529
|
-
agent_id: r.agent_id,
|
|
530
|
-
prompt: r.prompt,
|
|
531
|
-
description: r.description,
|
|
532
|
-
kind: r.kind,
|
|
533
|
-
schedule: r.schedule,
|
|
534
|
-
next_run_at: r.next_run_at,
|
|
535
|
-
last_run_at: r.last_run_at,
|
|
536
|
-
last_error: r.last_error,
|
|
537
|
-
enabled: r.enabled === 1,
|
|
538
|
-
silent: r.silent === 1,
|
|
539
|
-
reaction_kind: r.reaction_kind,
|
|
540
|
-
reaction_script: r.reaction_script,
|
|
541
|
-
reaction_script_args: scriptArgs,
|
|
542
|
-
created_at: r.created_at,
|
|
543
|
-
updated_at: r.updated_at
|
|
544
|
-
};
|
|
545
|
-
}
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
/***/ }),
|
|
549
|
-
|
|
550
|
-
/***/ 19121:
|
|
551
|
-
/***/ ((module) => {
|
|
552
|
-
|
|
553
|
-
module.exports = require("next/dist/server/app-render/action-async-storage.external.js");
|
|
554
|
-
|
|
555
|
-
/***/ }),
|
|
556
|
-
|
|
557
|
-
/***/ 27910:
|
|
558
|
-
/***/ ((module) => {
|
|
559
|
-
|
|
560
|
-
module.exports = require("stream");
|
|
561
|
-
|
|
562
|
-
/***/ }),
|
|
563
|
-
|
|
564
|
-
/***/ 28354:
|
|
565
|
-
/***/ ((module) => {
|
|
566
|
-
|
|
567
|
-
module.exports = require("util");
|
|
568
|
-
|
|
569
|
-
/***/ }),
|
|
570
|
-
|
|
571
|
-
/***/ 29021:
|
|
572
|
-
/***/ ((module) => {
|
|
573
|
-
|
|
574
|
-
module.exports = require("fs");
|
|
575
|
-
|
|
576
|
-
/***/ }),
|
|
577
|
-
|
|
578
|
-
/***/ 29294:
|
|
579
|
-
/***/ ((module) => {
|
|
580
|
-
|
|
581
|
-
module.exports = require("next/dist/server/app-render/work-async-storage.external.js");
|
|
582
|
-
|
|
583
|
-
/***/ }),
|
|
584
|
-
|
|
585
|
-
/***/ 31421:
|
|
586
|
-
/***/ ((module) => {
|
|
587
|
-
|
|
588
|
-
module.exports = require("node:child_process");
|
|
589
|
-
|
|
590
|
-
/***/ }),
|
|
591
|
-
|
|
592
|
-
/***/ 33873:
|
|
593
|
-
/***/ ((module) => {
|
|
594
|
-
|
|
595
|
-
module.exports = require("path");
|
|
596
|
-
|
|
597
|
-
/***/ }),
|
|
598
|
-
|
|
599
|
-
/***/ 37067:
|
|
600
|
-
/***/ ((module) => {
|
|
601
|
-
|
|
602
|
-
module.exports = require("node:http");
|
|
603
|
-
|
|
604
|
-
/***/ }),
|
|
605
|
-
|
|
606
|
-
/***/ 38522:
|
|
607
|
-
/***/ ((module) => {
|
|
608
|
-
|
|
609
|
-
module.exports = require("node:zlib");
|
|
610
|
-
|
|
611
|
-
/***/ }),
|
|
612
|
-
|
|
613
|
-
/***/ 39947:
|
|
614
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
615
|
-
|
|
616
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
617
|
-
/* harmony export */ Bm: () => (/* binding */ cachedJson),
|
|
618
|
-
/* harmony export */ HN: () => (/* binding */ notFoundResponse),
|
|
619
|
-
/* harmony export */ Jb: () => (/* binding */ validateBody),
|
|
620
|
-
/* harmony export */ K2: () => (/* binding */ createdResponse),
|
|
621
|
-
/* harmony export */ Ng: () => (/* binding */ noStoreJson),
|
|
622
|
-
/* harmony export */ yj: () => (/* binding */ errorResponse)
|
|
623
|
-
/* harmony export */ });
|
|
624
|
-
/* harmony import */ var next_server__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23211);
|
|
625
|
-
// Shared HTTP response builders for app/api/v1/** route handlers.
|
|
626
|
-
//
|
|
627
|
-
// Goal: every error/success payload across the v1 surface has the same
|
|
628
|
-
// shape. Before this lived inline, response bodies drifted —
|
|
629
|
-
// `{error: "x"}` vs `{message: "x"}`, 400 vs 422 for the same condition,
|
|
630
|
-
// some routes returned Zod's raw issue array, others stringified it.
|
|
631
|
-
|
|
632
|
-
function errorResponse(message, status = 400) {
|
|
633
|
-
return next_server__WEBPACK_IMPORTED_MODULE_0__.NextResponse.json({
|
|
634
|
-
error: message
|
|
635
|
-
}, {
|
|
636
|
-
status
|
|
637
|
-
});
|
|
638
|
-
}
|
|
639
|
-
function notFoundResponse(message = "Not found") {
|
|
640
|
-
return errorResponse(message, 404);
|
|
641
|
-
}
|
|
642
|
-
function createdResponse(data) {
|
|
643
|
-
return next_server__WEBPACK_IMPORTED_MODULE_0__.NextResponse.json(data, {
|
|
644
|
-
status: 201
|
|
645
|
-
});
|
|
646
|
-
}
|
|
647
|
-
// Wrap a 200 JSON response with a private Cache-Control header. Use on safe
|
|
648
|
-
// GET endpoints that serve user-scoped data the client refetches often (panel
|
|
649
|
-
// mounts, navigation back/forward) but mutates rarely. The TTL is short
|
|
650
|
-
// enough that explicit mutations — which patch the client-side ApiClient
|
|
651
|
-
// cache in place — stay observably consistent without an extra roundtrip.
|
|
652
|
-
//
|
|
653
|
-
// swrSeconds (optional): stale-while-revalidate window. When set, the browser
|
|
654
|
-
// serves the cached response immediately and refreshes in the background,
|
|
655
|
-
// making navigation feel instant. Use for data that can tolerate brief
|
|
656
|
-
// staleness (tool list, agent configs, model list). Omit for real-time data
|
|
657
|
-
// (dashboard metrics, credential state).
|
|
658
|
-
function cachedJson(data, maxAgeSeconds, swrSeconds) {
|
|
659
|
-
const swr = swrSeconds ? `, stale-while-revalidate=${swrSeconds}` : "";
|
|
660
|
-
return next_server__WEBPACK_IMPORTED_MODULE_0__.NextResponse.json(data, {
|
|
661
|
-
headers: {
|
|
662
|
-
"Cache-Control": `private, max-age=${maxAgeSeconds}${swr}`
|
|
202
|
+
}
|
|
203
|
+
// Wrap a 200 JSON response with a private Cache-Control header. Use on safe
|
|
204
|
+
// GET endpoints that serve user-scoped data the client refetches often (panel
|
|
205
|
+
// mounts, navigation back/forward) but mutates rarely. The TTL is short
|
|
206
|
+
// enough that explicit mutations — which patch the client-side ApiClient
|
|
207
|
+
// cache in place — stay observably consistent without an extra roundtrip.
|
|
208
|
+
//
|
|
209
|
+
// swrSeconds (optional): stale-while-revalidate window. When set, the browser
|
|
210
|
+
// serves the cached response immediately and refreshes in the background,
|
|
211
|
+
// making navigation feel instant. Use for data that can tolerate brief
|
|
212
|
+
// staleness (tool list, agent configs, model list). Omit for real-time data
|
|
213
|
+
// (dashboard metrics, credential state).
|
|
214
|
+
function cachedJson(data, maxAgeSeconds, swrSeconds) {
|
|
215
|
+
const swr = swrSeconds ? `, stale-while-revalidate=${swrSeconds}` : "";
|
|
216
|
+
return next_server__WEBPACK_IMPORTED_MODULE_0__.NextResponse.json(data, {
|
|
217
|
+
headers: {
|
|
218
|
+
"Cache-Control": `private, max-age=${maxAgeSeconds}${swr}`
|
|
663
219
|
}
|
|
664
220
|
});
|
|
665
221
|
}
|
|
@@ -832,12 +388,17 @@ function upsertAgentConfigTransaction(input) {
|
|
|
832
388
|
const db = (0,_lib_db__WEBPACK_IMPORTED_MODULE_0__/* .getDb */ .Lf)();
|
|
833
389
|
const existing = getAgentConfig(input.id);
|
|
834
390
|
const created_at = existing?.created_at ?? t;
|
|
835
|
-
const
|
|
391
|
+
const existingMbti = toMbti(existing?.adaptive_mbti);
|
|
392
|
+
const mbti = input.adaptive_mbti ?? existingMbti ?? "INTJ";
|
|
836
393
|
const preset = _lib_agents_adaptive_persona_presets__WEBPACK_IMPORTED_MODULE_2__/* .MBTI_PRESETS */ .e[mbti];
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
const
|
|
394
|
+
// Omitted sliders keep their tuned values; they only fall back to the
|
|
395
|
+
// preset when the type changes or the agent is new. Otherwise every
|
|
396
|
+
// partial update (approved proposals, tool edits) reset them.
|
|
397
|
+
const keepTuned = existing !== null && existing !== undefined && mbti === existingMbti;
|
|
398
|
+
const strength = input.adaptive_persona_strength ?? (keepTuned ? existing.adaptive_persona_strength : preset.strength);
|
|
399
|
+
const empathy = input.adaptive_empathy ?? (keepTuned ? existing.adaptive_empathy : preset.empathy);
|
|
400
|
+
const expressiveness = input.adaptive_expressiveness ?? (keepTuned ? existing.adaptive_expressiveness : preset.expressiveness);
|
|
401
|
+
const verbosity = input.adaptive_verbosity ?? (keepTuned ? existing.adaptive_verbosity : preset.verbosity);
|
|
841
402
|
if (input.is_default) db.prepare("UPDATE agent_configs SET is_default=0").run();
|
|
842
403
|
// harness_id: explicit `undefined` means "keep existing"; explicit `null`
|
|
843
404
|
// means "use the global default". Empty string is normalised to null too,
|
|
@@ -1334,6 +895,13 @@ module.exports = require("node:path");
|
|
|
1334
895
|
|
|
1335
896
|
/***/ }),
|
|
1336
897
|
|
|
898
|
+
/***/ 77030:
|
|
899
|
+
/***/ ((module) => {
|
|
900
|
+
|
|
901
|
+
module.exports = require("node:net");
|
|
902
|
+
|
|
903
|
+
/***/ }),
|
|
904
|
+
|
|
1337
905
|
/***/ 77598:
|
|
1338
906
|
/***/ ((module) => {
|
|
1339
907
|
|
|
@@ -1515,28 +1083,472 @@ const MAX_REACTION_SCRIPT_ARGS_CHARS = 4000;
|
|
|
1515
1083
|
if (!input.reaction_script) {
|
|
1516
1084
|
throw new Error("reaction_kind='script' requires reaction_script");
|
|
1517
1085
|
}
|
|
1518
|
-
return {
|
|
1519
|
-
kind,
|
|
1520
|
-
prompt: null,
|
|
1521
|
-
script: validateReactionScript(input.reaction_script),
|
|
1522
|
-
scriptArgs: normaliseReactionScriptArgs(input.reaction_script_args ?? null)
|
|
1523
|
-
};
|
|
1524
|
-
}
|
|
1525
|
-
return {
|
|
1526
|
-
kind,
|
|
1527
|
-
prompt: normaliseReactionPrompt(input.reaction_prompt),
|
|
1528
|
-
script: null,
|
|
1529
|
-
scriptArgs: null
|
|
1086
|
+
return {
|
|
1087
|
+
kind,
|
|
1088
|
+
prompt: null,
|
|
1089
|
+
script: validateReactionScript(input.reaction_script),
|
|
1090
|
+
scriptArgs: normaliseReactionScriptArgs(input.reaction_script_args ?? null)
|
|
1091
|
+
};
|
|
1092
|
+
}
|
|
1093
|
+
return {
|
|
1094
|
+
kind,
|
|
1095
|
+
prompt: normaliseReactionPrompt(input.reaction_prompt),
|
|
1096
|
+
script: null,
|
|
1097
|
+
scriptArgs: null
|
|
1098
|
+
};
|
|
1099
|
+
}
|
|
1100
|
+
|
|
1101
|
+
|
|
1102
|
+
/***/ }),
|
|
1103
|
+
|
|
1104
|
+
/***/ 94735:
|
|
1105
|
+
/***/ ((module) => {
|
|
1106
|
+
|
|
1107
|
+
module.exports = require("events");
|
|
1108
|
+
|
|
1109
|
+
/***/ }),
|
|
1110
|
+
|
|
1111
|
+
/***/ 99163:
|
|
1112
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1113
|
+
|
|
1114
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1115
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1116
|
+
/* harmony export */ handler: () => (/* binding */ handler),
|
|
1117
|
+
/* harmony export */ patchFetch: () => (/* binding */ patchFetch),
|
|
1118
|
+
/* harmony export */ routeModule: () => (/* binding */ routeModule),
|
|
1119
|
+
/* harmony export */ serverHooks: () => (/* binding */ serverHooks),
|
|
1120
|
+
/* harmony export */ workAsyncStorage: () => (/* binding */ workAsyncStorage),
|
|
1121
|
+
/* harmony export */ workUnitAsyncStorage: () => (/* binding */ workUnitAsyncStorage)
|
|
1122
|
+
/* harmony export */ });
|
|
1123
|
+
/* harmony import */ var next_dist_server_route_modules_app_route_module_compiled__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(19225);
|
|
1124
|
+
/* 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__);
|
|
1125
|
+
/* harmony import */ var next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(84006);
|
|
1126
|
+
/* harmony import */ var next_dist_server_lib_patch_fetch__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8317);
|
|
1127
|
+
/* 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__);
|
|
1128
|
+
/* harmony import */ var next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(99373);
|
|
1129
|
+
/* 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__);
|
|
1130
|
+
/* harmony import */ var next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(34775);
|
|
1131
|
+
/* 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__);
|
|
1132
|
+
/* harmony import */ var next_dist_server_app_render_manifests_singleton__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(24235);
|
|
1133
|
+
/* 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__);
|
|
1134
|
+
/* harmony import */ var next_dist_shared_lib_router_utils_app_paths__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(261);
|
|
1135
|
+
/* 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__);
|
|
1136
|
+
/* harmony import */ var next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(54365);
|
|
1137
|
+
/* 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__);
|
|
1138
|
+
/* harmony import */ var next_dist_server_web_spec_extension_adapters_next_request__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(90771);
|
|
1139
|
+
/* 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__);
|
|
1140
|
+
/* harmony import */ var next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(73461);
|
|
1141
|
+
/* 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__);
|
|
1142
|
+
/* harmony import */ var next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(67798);
|
|
1143
|
+
/* harmony import */ var next_dist_server_send_response__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(92280);
|
|
1144
|
+
/* harmony import */ var next_dist_server_web_utils__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(62018);
|
|
1145
|
+
/* 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__);
|
|
1146
|
+
/* harmony import */ var next_dist_server_lib_cache_control__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(45696);
|
|
1147
|
+
/* harmony import */ var next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(47929);
|
|
1148
|
+
/* harmony import */ var next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__);
|
|
1149
|
+
/* harmony import */ var next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(86439);
|
|
1150
|
+
/* 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__);
|
|
1151
|
+
/* harmony import */ var next_dist_server_lib_route_cache_key__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(10246);
|
|
1152
|
+
/* 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__);
|
|
1153
|
+
/* harmony import */ var next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(37527);
|
|
1154
|
+
/* 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__);
|
|
1155
|
+
|
|
1156
|
+
|
|
1157
|
+
|
|
1158
|
+
|
|
1159
|
+
|
|
1160
|
+
|
|
1161
|
+
|
|
1162
|
+
|
|
1163
|
+
|
|
1164
|
+
|
|
1165
|
+
|
|
1166
|
+
|
|
1167
|
+
|
|
1168
|
+
|
|
1169
|
+
|
|
1170
|
+
|
|
1171
|
+
|
|
1172
|
+
|
|
1173
|
+
// We inject the nextConfigOutput here so that we can use them in the route
|
|
1174
|
+
// module.
|
|
1175
|
+
const nextConfigOutput = "standalone"
|
|
1176
|
+
const routeModule = new next_dist_server_route_modules_app_route_module_compiled__WEBPACK_IMPORTED_MODULE_0__.AppRouteRouteModule({
|
|
1177
|
+
definition: {
|
|
1178
|
+
kind: next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__.RouteKind.APP_ROUTE,
|
|
1179
|
+
page: "/api/v1/scheduled-tasks/[id]/route",
|
|
1180
|
+
pathname: "/api/v1/scheduled-tasks/[id]",
|
|
1181
|
+
filename: "route",
|
|
1182
|
+
bundlePath: "app/api/v1/scheduled-tasks/[id]/route"
|
|
1183
|
+
},
|
|
1184
|
+
distDir: ".next" || 0,
|
|
1185
|
+
relativeProjectDir: false || '',
|
|
1186
|
+
resolvedPagePath: "/home/runner/work/jarela/jarela/app/api/v1/scheduled-tasks/[id]/route.ts",
|
|
1187
|
+
nextConfigOutput,
|
|
1188
|
+
// The lazy require factory ensures that:
|
|
1189
|
+
// - In dev: devRequestTimingInternalsEnd is set before userland executes,
|
|
1190
|
+
// correctly attributing module load time to application-code rather than
|
|
1191
|
+
// framework internals.
|
|
1192
|
+
// - In all modes: async modules (route files with top-level await) are
|
|
1193
|
+
// handled correctly — require() returns a Promise for such modules, which
|
|
1194
|
+
// ensureUserland() awaits before the first request is handled.
|
|
1195
|
+
userland: ()=>__webpack_require__(56965),
|
|
1196
|
+
// In Turbopack dev mode, also provide a synchronous per-request getter so
|
|
1197
|
+
// server HMR updates are picked up without re-executing the entry chunk.
|
|
1198
|
+
// Using require() (synchronous) avoids adding async overhead that would be
|
|
1199
|
+
// incorrectly attributed to application-code time in devRequestTiming.
|
|
1200
|
+
... false ? 0 : {}
|
|
1201
|
+
});
|
|
1202
|
+
// Pull out the exports that we need to expose from the module. This should
|
|
1203
|
+
// be eliminated when we've moved the other routes to the new format. These
|
|
1204
|
+
// are used to hook into the route.
|
|
1205
|
+
const { workAsyncStorage, workUnitAsyncStorage, serverHooks } = routeModule;
|
|
1206
|
+
function patchFetch() {
|
|
1207
|
+
return (0,next_dist_server_lib_patch_fetch__WEBPACK_IMPORTED_MODULE_2__.patchFetch)({
|
|
1208
|
+
workAsyncStorage,
|
|
1209
|
+
workUnitAsyncStorage
|
|
1210
|
+
});
|
|
1211
|
+
}
|
|
1212
|
+
|
|
1213
|
+
async function handler(req, res, ctx) {
|
|
1214
|
+
if (ctx.requestMeta) {
|
|
1215
|
+
(0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.setRequestMeta)(req, ctx.requestMeta);
|
|
1216
|
+
}
|
|
1217
|
+
if (routeModule.isDev) {
|
|
1218
|
+
(0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.addRequestMeta)(req, 'devRequestTimingInternalsEnd', process.hrtime.bigint());
|
|
1219
|
+
}
|
|
1220
|
+
let srcPage = "/api/v1/scheduled-tasks/[id]/route";
|
|
1221
|
+
// turbopack doesn't normalize `/index` in the page name
|
|
1222
|
+
// so we need to to process dynamic routes properly
|
|
1223
|
+
// TODO: fix turbopack providing differing value from webpack
|
|
1224
|
+
if (false) {} else if (srcPage === '/index') {
|
|
1225
|
+
// we always normalize /index specifically
|
|
1226
|
+
srcPage = '/';
|
|
1227
|
+
}
|
|
1228
|
+
const multiZoneDraftMode = false;
|
|
1229
|
+
const prepareResult = await routeModule.prepare(req, res, {
|
|
1230
|
+
srcPage,
|
|
1231
|
+
multiZoneDraftMode
|
|
1232
|
+
});
|
|
1233
|
+
if (!prepareResult) {
|
|
1234
|
+
res.statusCode = 400;
|
|
1235
|
+
res.end('Bad Request');
|
|
1236
|
+
ctx.waitUntil == null ? void 0 : ctx.waitUntil.call(ctx, Promise.resolve());
|
|
1237
|
+
return null;
|
|
1238
|
+
}
|
|
1239
|
+
const { buildId, deploymentId, params, nextConfig, parsedUrl, isDraftMode, prerenderManifest, routerServerContext, isOnDemandRevalidate, revalidateOnlyGenerated, resolvedPathname, clientReferenceManifest, serverActionsManifest, previewProps } = prepareResult;
|
|
1240
|
+
const normalizedSrcPage = (0,next_dist_shared_lib_router_utils_app_paths__WEBPACK_IMPORTED_MODULE_6__.normalizeAppPath)(srcPage);
|
|
1241
|
+
// Only this route's prerenders can establish ISR or admit generated params.
|
|
1242
|
+
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]));
|
|
1243
|
+
let isIsr = Boolean(prerenderManifest.dynamicRoutes[normalizedSrcPage] || isPrerendered);
|
|
1244
|
+
const render404 = async ()=>{
|
|
1245
|
+
// TODO: should route-module itself handle rendering the 404
|
|
1246
|
+
if (routerServerContext == null ? void 0 : routerServerContext.render404) {
|
|
1247
|
+
await routerServerContext.render404(req, res, parsedUrl, false);
|
|
1248
|
+
} else {
|
|
1249
|
+
res.end('This page could not be found');
|
|
1250
|
+
}
|
|
1251
|
+
return null;
|
|
1252
|
+
};
|
|
1253
|
+
if (isIsr && !isDraftMode) {
|
|
1254
|
+
const prerenderInfo = prerenderManifest.dynamicRoutes[normalizedSrcPage];
|
|
1255
|
+
if (prerenderInfo) {
|
|
1256
|
+
if (prerenderInfo.fallback === false && !isPrerendered) {
|
|
1257
|
+
if (nextConfig.adapterPath) {
|
|
1258
|
+
return await render404();
|
|
1259
|
+
}
|
|
1260
|
+
throw new next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_15__.NoFallbackError();
|
|
1261
|
+
}
|
|
1262
|
+
}
|
|
1263
|
+
}
|
|
1264
|
+
let cacheKey = null;
|
|
1265
|
+
if (isIsr && !routeModule.isDev && !isDraftMode) {
|
|
1266
|
+
cacheKey = resolvedPathname;
|
|
1267
|
+
// ensure /index and / is normalized to one key
|
|
1268
|
+
cacheKey = cacheKey === '/index' ? '/' : cacheKey;
|
|
1269
|
+
}
|
|
1270
|
+
// Before rendering (which initializes component tree modules), we have to
|
|
1271
|
+
// set the reference manifests to our global store so Server Action's
|
|
1272
|
+
// encryption util can access to them at the top level of the page module.
|
|
1273
|
+
if (serverActionsManifest && clientReferenceManifest) {
|
|
1274
|
+
(0,next_dist_server_app_render_manifests_singleton__WEBPACK_IMPORTED_MODULE_5__.setManifestsSingleton)({
|
|
1275
|
+
page: srcPage,
|
|
1276
|
+
clientReferenceManifest,
|
|
1277
|
+
serverActionsManifest
|
|
1278
|
+
});
|
|
1279
|
+
}
|
|
1280
|
+
const method = req.method || 'GET';
|
|
1281
|
+
const tracer = (0,next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.getTracer)();
|
|
1282
|
+
const activeSpan = tracer.getActiveScopeSpan();
|
|
1283
|
+
const isWrappedByNextServer = Boolean(routerServerContext == null ? void 0 : routerServerContext.isWrappedByNextServer);
|
|
1284
|
+
const isMinimalMode = Boolean((0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.getRequestMeta)(req, 'minimalMode'));
|
|
1285
|
+
const incrementalCache = (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.getRequestMeta)(req, 'incrementalCache') || await routeModule.getIncrementalCache(req, nextConfig, previewProps, prerenderManifest, isMinimalMode);
|
|
1286
|
+
incrementalCache == null ? void 0 : incrementalCache.resetRequestCache();
|
|
1287
|
+
globalThis.__incrementalCache = incrementalCache;
|
|
1288
|
+
const context = {
|
|
1289
|
+
params,
|
|
1290
|
+
previewProps,
|
|
1291
|
+
renderOpts: {
|
|
1292
|
+
experimental: {
|
|
1293
|
+
authInterrupts: Boolean(nextConfig.experimental.authInterrupts),
|
|
1294
|
+
useCacheTimeout: nextConfig.experimental.useCacheTimeout,
|
|
1295
|
+
durableUseCacheEntries: Boolean(nextConfig.experimental.durableUseCacheEntries)
|
|
1296
|
+
},
|
|
1297
|
+
cacheComponents: Boolean(nextConfig.cacheComponents),
|
|
1298
|
+
validationLevel: nextConfig.experimental.instantInsights.validationLevel,
|
|
1299
|
+
isDraftMode,
|
|
1300
|
+
incrementalCache,
|
|
1301
|
+
hmrRefreshHash: (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.getRequestMeta)(req, 'hmrRefreshHash'),
|
|
1302
|
+
cacheLifeProfiles: nextConfig.cacheLife,
|
|
1303
|
+
staticPageGenerationTimeout: nextConfig.staticPageGenerationTimeout,
|
|
1304
|
+
waitUntil: ctx.waitUntil,
|
|
1305
|
+
onClose: (cb)=>{
|
|
1306
|
+
res.on('close', cb);
|
|
1307
|
+
},
|
|
1308
|
+
onAfterTaskError: undefined
|
|
1309
|
+
},
|
|
1310
|
+
sharedContext: {
|
|
1311
|
+
buildId,
|
|
1312
|
+
deploymentId
|
|
1313
|
+
}
|
|
1314
|
+
};
|
|
1315
|
+
const nodeNextReq = new next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_7__.NodeNextRequest(req);
|
|
1316
|
+
const nodeNextRes = new next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_7__.NodeNextResponse(res);
|
|
1317
|
+
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));
|
|
1318
|
+
const responseGenerator = async ({ previousCacheEntry })=>{
|
|
1319
|
+
try {
|
|
1320
|
+
if (!isMinimalMode && isOnDemandRevalidate && revalidateOnlyGenerated && !previousCacheEntry) {
|
|
1321
|
+
res.statusCode = 404;
|
|
1322
|
+
// on-demand revalidate always sets this header
|
|
1323
|
+
res.setHeader('x-nextjs-cache', 'REVALIDATED');
|
|
1324
|
+
res.end('This page could not be found');
|
|
1325
|
+
return null;
|
|
1326
|
+
}
|
|
1327
|
+
const response = cacheKey === null ? await routeModule.handle(nextReq, context) : await routeModule.prerender(nextReq, context);
|
|
1328
|
+
req.fetchMetrics = context.renderOpts.fetchMetrics;
|
|
1329
|
+
let pendingWaitUntil = context.renderOpts.pendingWaitUntil;
|
|
1330
|
+
// Attempt using provided waitUntil if available
|
|
1331
|
+
// if it's not we fallback to sendResponse's handling
|
|
1332
|
+
if (pendingWaitUntil) {
|
|
1333
|
+
if (ctx.waitUntil) {
|
|
1334
|
+
ctx.waitUntil(pendingWaitUntil);
|
|
1335
|
+
pendingWaitUntil = undefined;
|
|
1336
|
+
}
|
|
1337
|
+
}
|
|
1338
|
+
const cacheTags = context.renderOpts.collectedTags;
|
|
1339
|
+
// If the request is for a static response, we can cache it so long
|
|
1340
|
+
// as it's not edge.
|
|
1341
|
+
if (isIsr) {
|
|
1342
|
+
const blob = await response.blob();
|
|
1343
|
+
// Copy the headers from the response.
|
|
1344
|
+
const headers = (0,next_dist_server_web_utils__WEBPACK_IMPORTED_MODULE_12__.toNodeOutgoingHttpHeaders)(response.headers);
|
|
1345
|
+
if (cacheTags) {
|
|
1346
|
+
headers[next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__.NEXT_CACHE_TAGS_HEADER] = cacheTags;
|
|
1347
|
+
}
|
|
1348
|
+
if (!headers['content-type'] && blob.type) {
|
|
1349
|
+
headers['content-type'] = blob.type;
|
|
1350
|
+
}
|
|
1351
|
+
const revalidate = typeof context.renderOpts.collectedRevalidate === 'undefined' || context.renderOpts.collectedRevalidate >= next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__.INFINITE_CACHE ? false : context.renderOpts.collectedRevalidate;
|
|
1352
|
+
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
|
|
1353
|
+
// explicit `expire` (e.g. via `cacheLife`). This mirrors the
|
|
1354
|
+
// build-time fallback in `build/index.ts` so cache entries
|
|
1355
|
+
// and the response Cache-Control header agree on the route's
|
|
1356
|
+
// effective expire. Routes that opt out of revalidation
|
|
1357
|
+
// (`revalidate: false`) or that are dynamic (`revalidate: 0`)
|
|
1358
|
+
// keep `expire: undefined`.
|
|
1359
|
+
revalidate !== false && revalidate > 0 ? nextConfig.expireTime : undefined : context.renderOpts.collectedExpire;
|
|
1360
|
+
// Create the cache entry for the response.
|
|
1361
|
+
const cacheEntry = {
|
|
1362
|
+
value: {
|
|
1363
|
+
kind: next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__.CachedRouteKind.APP_ROUTE,
|
|
1364
|
+
status: response.status,
|
|
1365
|
+
body: Buffer.from(await blob.arrayBuffer()),
|
|
1366
|
+
headers
|
|
1367
|
+
},
|
|
1368
|
+
cacheControl: {
|
|
1369
|
+
revalidate,
|
|
1370
|
+
expire
|
|
1371
|
+
}
|
|
1372
|
+
};
|
|
1373
|
+
return cacheEntry;
|
|
1374
|
+
} else {
|
|
1375
|
+
// send response without caching if not ISR
|
|
1376
|
+
await (0,next_dist_server_send_response__WEBPACK_IMPORTED_MODULE_11__/* .sendResponse */ .I)(nodeNextReq, nodeNextRes, response, pendingWaitUntil);
|
|
1377
|
+
return null;
|
|
1378
|
+
}
|
|
1379
|
+
} catch (err) {
|
|
1380
|
+
// if this is a background revalidate we need to report
|
|
1381
|
+
// the request error here as it won't be bubbled
|
|
1382
|
+
if (previousCacheEntry == null ? void 0 : previousCacheEntry.isStale) {
|
|
1383
|
+
const silenceLog = false;
|
|
1384
|
+
await routeModule.onRequestError(req, err, {
|
|
1385
|
+
routerKind: 'App Router',
|
|
1386
|
+
routePath: srcPage,
|
|
1387
|
+
routeType: 'route',
|
|
1388
|
+
revalidateReason: (0,next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_10__.getRevalidateReason)({
|
|
1389
|
+
isStaticGeneration: cacheKey !== null,
|
|
1390
|
+
isOnDemandRevalidate
|
|
1391
|
+
})
|
|
1392
|
+
}, silenceLog, routerServerContext);
|
|
1393
|
+
}
|
|
1394
|
+
throw err;
|
|
1395
|
+
}
|
|
1396
|
+
};
|
|
1397
|
+
const handleResponse = async (currentSpan, parentSpan)=>{
|
|
1398
|
+
try {
|
|
1399
|
+
var _cacheEntry_value;
|
|
1400
|
+
const cacheEntry = await routeModule.handleResponse({
|
|
1401
|
+
req,
|
|
1402
|
+
nextConfig,
|
|
1403
|
+
cacheKey,
|
|
1404
|
+
routeKind: next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__.RouteKind.APP_ROUTE,
|
|
1405
|
+
isFallback: false,
|
|
1406
|
+
previewProps,
|
|
1407
|
+
prerenderManifest,
|
|
1408
|
+
isRoutePPREnabled: false,
|
|
1409
|
+
isOnDemandRevalidate,
|
|
1410
|
+
revalidateOnlyGenerated,
|
|
1411
|
+
responseGenerator,
|
|
1412
|
+
waitUntil: ctx.waitUntil,
|
|
1413
|
+
isMinimalMode
|
|
1414
|
+
});
|
|
1415
|
+
if (cacheEntry !== null && 'error' in cacheEntry) {
|
|
1416
|
+
throw cacheEntry.error;
|
|
1417
|
+
}
|
|
1418
|
+
// we don't create a cacheEntry for ISR
|
|
1419
|
+
if (!isIsr) {
|
|
1420
|
+
return;
|
|
1421
|
+
}
|
|
1422
|
+
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) {
|
|
1423
|
+
var _cacheEntry_value1;
|
|
1424
|
+
throw new Error(`Invariant: app-route received invalid cache entry ${cacheEntry == null ? void 0 : (_cacheEntry_value1 = cacheEntry.value) == null ? void 0 : _cacheEntry_value1.kind}`);
|
|
1425
|
+
}
|
|
1426
|
+
if (!isMinimalMode) {
|
|
1427
|
+
res.setHeader('x-nextjs-cache', isOnDemandRevalidate ? 'REVALIDATED' : cacheEntry.isMiss ? 'MISS' : cacheEntry.isStale ? 'STALE' : 'HIT');
|
|
1428
|
+
}
|
|
1429
|
+
// Draft mode should never be cached
|
|
1430
|
+
if (isDraftMode) {
|
|
1431
|
+
res.setHeader('Cache-Control', 'private, no-cache, no-store, max-age=0, must-revalidate');
|
|
1432
|
+
}
|
|
1433
|
+
const headers = (0,next_dist_server_web_utils__WEBPACK_IMPORTED_MODULE_12__.fromNodeOutgoingHttpHeaders)(cacheEntry.value.headers);
|
|
1434
|
+
if (!(isMinimalMode && isIsr)) {
|
|
1435
|
+
headers.delete(next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__.NEXT_CACHE_TAGS_HEADER);
|
|
1436
|
+
}
|
|
1437
|
+
// If cache control is already set on the response we don't
|
|
1438
|
+
// override it to allow users to customize it via next.config
|
|
1439
|
+
if (cacheEntry.cacheControl && !res.getHeader('Cache-Control') && !headers.get('Cache-Control')) {
|
|
1440
|
+
headers.set('Cache-Control', (0,next_dist_server_lib_cache_control__WEBPACK_IMPORTED_MODULE_13__.getCacheControlHeader)(cacheEntry.cacheControl));
|
|
1441
|
+
}
|
|
1442
|
+
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'.
|
|
1443
|
+
new Response(cacheEntry.value.body, {
|
|
1444
|
+
headers,
|
|
1445
|
+
status: cacheEntry.value.status || 200
|
|
1446
|
+
}));
|
|
1447
|
+
return;
|
|
1448
|
+
} catch (err) {
|
|
1449
|
+
if (!(err instanceof next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_15__.NoFallbackError)) {
|
|
1450
|
+
const silenceLog = false;
|
|
1451
|
+
await routeModule.onRequestError(req, err, {
|
|
1452
|
+
routerKind: 'App Router',
|
|
1453
|
+
routePath: normalizedSrcPage,
|
|
1454
|
+
routeType: 'route',
|
|
1455
|
+
revalidateReason: (0,next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_10__.getRevalidateReason)({
|
|
1456
|
+
isStaticGeneration: cacheKey !== null,
|
|
1457
|
+
isOnDemandRevalidate
|
|
1458
|
+
})
|
|
1459
|
+
}, silenceLog, routerServerContext);
|
|
1460
|
+
}
|
|
1461
|
+
// rethrow so that we can handle serving error page
|
|
1462
|
+
// If this is during static generation, throw the error again.
|
|
1463
|
+
if (isIsr) throw err;
|
|
1464
|
+
// Otherwise, send a 500 response unless the original response has
|
|
1465
|
+
// already committed. In that case, preserve its status code for
|
|
1466
|
+
// telemetry while still recording the failure and terminating a response
|
|
1467
|
+
// that the failed pipeline left open.
|
|
1468
|
+
if (res.headersSent) {
|
|
1469
|
+
if (currentSpan) {
|
|
1470
|
+
const error = err instanceof Error ? err : new Error('Unknown app route error');
|
|
1471
|
+
currentSpan.recordException(error);
|
|
1472
|
+
currentSpan.setStatus({
|
|
1473
|
+
code: next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.SpanStatusCode.ERROR,
|
|
1474
|
+
message: error.message
|
|
1475
|
+
});
|
|
1476
|
+
currentSpan.setAttribute('error.type', error.name);
|
|
1477
|
+
}
|
|
1478
|
+
if (!res.writableEnded && !res.destroyed) {
|
|
1479
|
+
res.end();
|
|
1480
|
+
}
|
|
1481
|
+
} else {
|
|
1482
|
+
await (0,next_dist_server_send_response__WEBPACK_IMPORTED_MODULE_11__/* .sendResponse */ .I)(nodeNextReq, nodeNextRes, new Response(null, {
|
|
1483
|
+
status: 500
|
|
1484
|
+
}));
|
|
1485
|
+
}
|
|
1486
|
+
return;
|
|
1487
|
+
} finally{
|
|
1488
|
+
;
|
|
1489
|
+
(()=>{
|
|
1490
|
+
if (!currentSpan) {
|
|
1491
|
+
return;
|
|
1492
|
+
}
|
|
1493
|
+
let statusCode = res.statusCode;
|
|
1494
|
+
currentSpan.setAttributes({
|
|
1495
|
+
'http.status_code': statusCode,
|
|
1496
|
+
'next.rsc': false
|
|
1497
|
+
});
|
|
1498
|
+
if (statusCode && statusCode >= 500) {
|
|
1499
|
+
// For 5xx status codes: SHOULD be set to 'Error' span status.
|
|
1500
|
+
// x-ref: https://opentelemetry.io/docs/specs/semconv/http/http-spans/#status
|
|
1501
|
+
currentSpan.setStatus({
|
|
1502
|
+
code: next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.SpanStatusCode.ERROR
|
|
1503
|
+
});
|
|
1504
|
+
// For span status 'Error', SHOULD set 'error.type' attribute.
|
|
1505
|
+
currentSpan.setAttribute('error.type', statusCode.toString());
|
|
1506
|
+
}
|
|
1507
|
+
const rootSpanAttributes = tracer.getRootSpanAttributes();
|
|
1508
|
+
// We were unable to get attributes, probably OTEL is not enabled
|
|
1509
|
+
if (!rootSpanAttributes) {
|
|
1510
|
+
return;
|
|
1511
|
+
}
|
|
1512
|
+
if (rootSpanAttributes.get('next.span_type') !== next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_9__.BaseServerSpan.handleRequest) {
|
|
1513
|
+
console.warn(`Unexpected root span type '${rootSpanAttributes.get('next.span_type')}'. Please report this Next.js issue https://github.com/vercel/next.js`);
|
|
1514
|
+
return;
|
|
1515
|
+
}
|
|
1516
|
+
const route = rootSpanAttributes.get('next.route') || normalizedSrcPage;
|
|
1517
|
+
const name = `${method} ${route}`;
|
|
1518
|
+
currentSpan.setAttributes({
|
|
1519
|
+
'next.route': route,
|
|
1520
|
+
'http.route': route,
|
|
1521
|
+
'next.span_name': name
|
|
1522
|
+
});
|
|
1523
|
+
currentSpan.updateName(name);
|
|
1524
|
+
// Propagate http.route to the parent span if one exists (e.g.
|
|
1525
|
+
// a platform-created HTTP span in adapter deployments).
|
|
1526
|
+
if (parentSpan && parentSpan !== currentSpan) {
|
|
1527
|
+
parentSpan.setAttribute('http.route', route);
|
|
1528
|
+
parentSpan.updateName(name);
|
|
1529
|
+
}
|
|
1530
|
+
})();
|
|
1531
|
+
}
|
|
1530
1532
|
};
|
|
1533
|
+
// TODO: activeSpan code path is for when wrapped by
|
|
1534
|
+
// next-server can be removed when this is no longer used
|
|
1535
|
+
if (isWrappedByNextServer && activeSpan) {
|
|
1536
|
+
await handleResponse(activeSpan, undefined);
|
|
1537
|
+
} else {
|
|
1538
|
+
let parentSpan = tracer.getActiveScopeSpan();
|
|
1539
|
+
await tracer.withPropagatedContext(req.headers, ()=>tracer.trace(next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_9__.BaseServerSpan.handleRequest, {
|
|
1540
|
+
spanName: `${method} ${srcPage}`,
|
|
1541
|
+
kind: next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.SpanKind.SERVER,
|
|
1542
|
+
attributes: {
|
|
1543
|
+
'http.method': method,
|
|
1544
|
+
'http.target': req.url
|
|
1545
|
+
}
|
|
1546
|
+
}, (span)=>handleResponse(span, parentSpan)), undefined, !isWrappedByNextServer);
|
|
1547
|
+
}
|
|
1531
1548
|
}
|
|
1532
1549
|
|
|
1550
|
+
//# sourceMappingURL=app-route.js.map
|
|
1533
1551
|
|
|
1534
|
-
/***/ }),
|
|
1535
|
-
|
|
1536
|
-
/***/ 94735:
|
|
1537
|
-
/***/ ((module) => {
|
|
1538
|
-
|
|
1539
|
-
module.exports = require("events");
|
|
1540
1552
|
|
|
1541
1553
|
/***/ }),
|
|
1542
1554
|
|
|
@@ -1554,7 +1566,7 @@ module.exports = import("@huggingface/transformers");;
|
|
|
1554
1566
|
var __webpack_require__ = require("../../../../../webpack-runtime.js");
|
|
1555
1567
|
__webpack_require__.C(exports);
|
|
1556
1568
|
var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
|
|
1557
|
-
var __webpack_exports__ = __webpack_require__.X(0, [2970,7377,1813,7981,6299,4992,46], () => (__webpack_exec__(
|
|
1569
|
+
var __webpack_exports__ = __webpack_require__.X(0, [2970,7377,1813,7981,6299,4992,46], () => (__webpack_exec__(99163)));
|
|
1558
1570
|
module.exports = __webpack_exports__;
|
|
1559
1571
|
|
|
1560
1572
|
})();
|