@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
|
@@ -107,615 +107,171 @@ module.exports = require("node:child_process");
|
|
|
107
107
|
|
|
108
108
|
/***/ }),
|
|
109
109
|
|
|
110
|
-
/***/
|
|
111
|
-
/***/ ((
|
|
110
|
+
/***/ 33873:
|
|
111
|
+
/***/ ((module) => {
|
|
112
112
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
/* harmony import */ var next_dist_shared_lib_router_utils_app_paths__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(261);
|
|
134
|
-
/* 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__);
|
|
135
|
-
/* harmony import */ var next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(54365);
|
|
136
|
-
/* 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__);
|
|
137
|
-
/* harmony import */ var next_dist_server_web_spec_extension_adapters_next_request__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(90771);
|
|
138
|
-
/* 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__);
|
|
139
|
-
/* harmony import */ var next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(73461);
|
|
140
|
-
/* 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__);
|
|
141
|
-
/* harmony import */ var next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(67798);
|
|
142
|
-
/* harmony import */ var next_dist_server_send_response__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(92280);
|
|
143
|
-
/* harmony import */ var next_dist_server_web_utils__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(62018);
|
|
144
|
-
/* 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__);
|
|
145
|
-
/* harmony import */ var next_dist_server_lib_cache_control__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(45696);
|
|
146
|
-
/* harmony import */ var next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(47929);
|
|
147
|
-
/* harmony import */ var next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__);
|
|
148
|
-
/* harmony import */ var next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(86439);
|
|
149
|
-
/* 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__);
|
|
150
|
-
/* harmony import */ var next_dist_server_lib_route_cache_key__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(10246);
|
|
151
|
-
/* 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__);
|
|
152
|
-
/* harmony import */ var next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(37527);
|
|
153
|
-
/* 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__);
|
|
113
|
+
module.exports = require("path");
|
|
114
|
+
|
|
115
|
+
/***/ }),
|
|
116
|
+
|
|
117
|
+
/***/ 37067:
|
|
118
|
+
/***/ ((module) => {
|
|
119
|
+
|
|
120
|
+
module.exports = require("node:http");
|
|
121
|
+
|
|
122
|
+
/***/ }),
|
|
123
|
+
|
|
124
|
+
/***/ 38522:
|
|
125
|
+
/***/ ((module) => {
|
|
126
|
+
|
|
127
|
+
module.exports = require("node:zlib");
|
|
128
|
+
|
|
129
|
+
/***/ }),
|
|
130
|
+
|
|
131
|
+
/***/ 40610:
|
|
132
|
+
/***/ ((module) => {
|
|
154
133
|
|
|
134
|
+
module.exports = require("node:dns");
|
|
155
135
|
|
|
136
|
+
/***/ }),
|
|
156
137
|
|
|
138
|
+
/***/ 42482:
|
|
139
|
+
/***/ ((module) => {
|
|
157
140
|
|
|
141
|
+
module.exports = import("sharp");;
|
|
158
142
|
|
|
143
|
+
/***/ }),
|
|
159
144
|
|
|
145
|
+
/***/ 44708:
|
|
146
|
+
/***/ ((module) => {
|
|
160
147
|
|
|
148
|
+
module.exports = require("node:https");
|
|
161
149
|
|
|
150
|
+
/***/ }),
|
|
162
151
|
|
|
152
|
+
/***/ 44870:
|
|
153
|
+
/***/ ((module) => {
|
|
163
154
|
|
|
155
|
+
module.exports = require("next/dist/compiled/next-server/app-route.runtime.prod.js");
|
|
164
156
|
|
|
157
|
+
/***/ }),
|
|
165
158
|
|
|
159
|
+
/***/ 48161:
|
|
160
|
+
/***/ ((module) => {
|
|
166
161
|
|
|
162
|
+
module.exports = require("node:os");
|
|
167
163
|
|
|
164
|
+
/***/ }),
|
|
168
165
|
|
|
166
|
+
/***/ 51455:
|
|
167
|
+
/***/ ((module) => {
|
|
169
168
|
|
|
169
|
+
module.exports = require("node:fs/promises");
|
|
170
170
|
|
|
171
|
+
/***/ }),
|
|
171
172
|
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
bundlePath: "app/api/v1/extension/fill/route"
|
|
182
|
-
},
|
|
183
|
-
distDir: ".next" || 0,
|
|
184
|
-
relativeProjectDir: false || '',
|
|
185
|
-
resolvedPagePath: "/home/runner/work/jarela/jarela/app/api/v1/extension/fill/route.ts",
|
|
186
|
-
nextConfigOutput,
|
|
187
|
-
// The lazy require factory ensures that:
|
|
188
|
-
// - In dev: devRequestTimingInternalsEnd is set before userland executes,
|
|
189
|
-
// correctly attributing module load time to application-code rather than
|
|
190
|
-
// framework internals.
|
|
191
|
-
// - In all modes: async modules (route files with top-level await) are
|
|
192
|
-
// handled correctly — require() returns a Promise for such modules, which
|
|
193
|
-
// ensureUserland() awaits before the first request is handled.
|
|
194
|
-
userland: ()=>__webpack_require__(92632),
|
|
195
|
-
// In Turbopack dev mode, also provide a synchronous per-request getter so
|
|
196
|
-
// server HMR updates are picked up without re-executing the entry chunk.
|
|
197
|
-
// Using require() (synchronous) avoids adding async overhead that would be
|
|
198
|
-
// incorrectly attributed to application-code time in devRequestTiming.
|
|
199
|
-
... false ? 0 : {}
|
|
173
|
+
/***/ 51903:
|
|
174
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
// EXPORTS
|
|
178
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
179
|
+
CZ: () => (/* binding */ handleExtensionAgents),
|
|
180
|
+
dT: () => (/* binding */ handleExtensionTurn),
|
|
181
|
+
eH: () => (/* binding */ handleGenericExtensionTurn)
|
|
200
182
|
});
|
|
201
|
-
// Pull out the exports that we need to expose from the module. This should
|
|
202
|
-
// be eliminated when we've moved the other routes to the new format. These
|
|
203
|
-
// are used to hook into the route.
|
|
204
|
-
const { workAsyncStorage, workUnitAsyncStorage, serverHooks } = routeModule;
|
|
205
|
-
function patchFetch() {
|
|
206
|
-
return (0,next_dist_server_lib_patch_fetch__WEBPACK_IMPORTED_MODULE_2__.patchFetch)({
|
|
207
|
-
workAsyncStorage,
|
|
208
|
-
workUnitAsyncStorage
|
|
209
|
-
});
|
|
210
|
-
}
|
|
211
183
|
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
184
|
+
// UNUSED EXPORTS: ExtensionAction
|
|
185
|
+
|
|
186
|
+
// EXTERNAL MODULE: ./node_modules/zod/v4/classic/schemas.js + 4 modules
|
|
187
|
+
var schemas = __webpack_require__(97377);
|
|
188
|
+
// EXTERNAL MODULE: ./lib/stores/threads.ts
|
|
189
|
+
var threads = __webpack_require__(83042);
|
|
190
|
+
// EXTERNAL MODULE: ./lib/stores/agent-configs.ts
|
|
191
|
+
var agent_configs = __webpack_require__(41720);
|
|
192
|
+
// EXTERNAL MODULE: ./lib/agents/agent-turn.ts
|
|
193
|
+
var agent_turn = __webpack_require__(62032);
|
|
194
|
+
// EXTERNAL MODULE: ./lib/notifications/bus.ts
|
|
195
|
+
var bus = __webpack_require__(76445);
|
|
196
|
+
;// ./lib/api/extension-turn-prompt.ts
|
|
197
|
+
// Browser-extension turn message (refine / fill / rewrite_clipboard).
|
|
198
|
+
// `composePrompt` lives next to the server handler so the format is
|
|
199
|
+
// authored once. `parseExtensionTurn` reverses it for the chat UI so the
|
|
200
|
+
// user bubble can show a tight collapsible card instead of raw text.
|
|
201
|
+
|
|
202
|
+
const ExtensionActionEnum = schemas/* enum */.k5n([
|
|
203
|
+
"refine",
|
|
204
|
+
"fill",
|
|
205
|
+
"rewrite_clipboard"
|
|
206
|
+
]);
|
|
207
|
+
function composePrompt(action, input) {
|
|
208
|
+
const header = action === "refine" ? "[Extension refine turn] Improve or refine the selected content based on the instruction below." : action === "fill" ? "[Extension fill turn] Produce text intended to be inserted into the currently focused editable field. Use nearby form context and page context to stay relevant. Return only the final field text." : "[Extension rewrite to clipboard turn] Rewrite ONLY the text under 'Selected context:' according to the instruction. Ignore any URL/title/heading hints — they are NOT the rewrite target. Return ONLY the rewritten text, no commentary, no quotes, no labels.";
|
|
209
|
+
const lines = [
|
|
210
|
+
header,
|
|
211
|
+
`Instruction: ${input.instruction}`
|
|
212
|
+
];
|
|
213
|
+
// rewrite_clipboard is intentionally selection-sovereign: the selection IS
|
|
214
|
+
// the input. Page metadata adds noise and the model has been observed
|
|
215
|
+
// echoing the page H1/H2 as the "rewrite" instead of operating on the
|
|
216
|
+
// selection. Strip every page hint for this action.
|
|
217
|
+
if (action !== "rewrite_clipboard") {
|
|
218
|
+
if (input.url) lines.push(`URL: ${input.url}`);
|
|
219
|
+
if (input.title) lines.push(`Title: ${input.title}`);
|
|
220
|
+
if (input.selector) lines.push(`Selector: ${input.selector}`);
|
|
221
|
+
if (input.page_context) lines.push("", "Page/form context:", input.page_context);
|
|
215
222
|
}
|
|
216
|
-
|
|
217
|
-
|
|
223
|
+
lines.push("", "Selected context:", input.text && input.text.trim().length > 0 ? input.text : "(none provided)");
|
|
224
|
+
return lines.join("\n");
|
|
225
|
+
}
|
|
226
|
+
const ACTION_LABEL = {
|
|
227
|
+
fill: "Fill focused field",
|
|
228
|
+
refine: "Refine selection",
|
|
229
|
+
rewrite_clipboard: "Rewrite to clipboard"
|
|
230
|
+
};
|
|
231
|
+
function parseExtensionTurn(raw) {
|
|
232
|
+
const headerRe = /^\[Extension (refine|fill|rewrite to clipboard) turn\][^\n]*\n/;
|
|
233
|
+
const hm = headerRe.exec(raw);
|
|
234
|
+
if (!hm) return null;
|
|
235
|
+
const actionWord = hm[1];
|
|
236
|
+
const action = actionWord === "fill" ? "fill" : actionWord === "refine" ? "refine" : "rewrite_clipboard";
|
|
237
|
+
let rest = raw.slice(hm[0].length);
|
|
238
|
+
function takeLine(label) {
|
|
239
|
+
const re = new RegExp(`^${label}:\\s*([^\\n]*)\\n?`);
|
|
240
|
+
const m = re.exec(rest);
|
|
241
|
+
if (!m) return null;
|
|
242
|
+
rest = rest.slice(m[0].length);
|
|
243
|
+
return m[1].trim() || null;
|
|
218
244
|
}
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
245
|
+
const instruction = takeLine("Instruction") ?? "";
|
|
246
|
+
const url = takeLine("URL");
|
|
247
|
+
const title = takeLine("Title");
|
|
248
|
+
const selector = takeLine("Selector");
|
|
249
|
+
let pageContext = null;
|
|
250
|
+
const pageHeaderRe = /^\nPage\/form context:\n/;
|
|
251
|
+
if (pageHeaderRe.test(rest)) {
|
|
252
|
+
rest = rest.replace(pageHeaderRe, "");
|
|
253
|
+
const idx = rest.indexOf("\n\nSelected context:");
|
|
254
|
+
if (idx >= 0) {
|
|
255
|
+
pageContext = rest.slice(0, idx).trim() || null;
|
|
256
|
+
rest = rest.slice(idx + 2);
|
|
257
|
+
}
|
|
226
258
|
}
|
|
227
|
-
|
|
228
|
-
const
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
res.statusCode = 400;
|
|
234
|
-
res.end('Bad Request');
|
|
235
|
-
ctx.waitUntil == null ? void 0 : ctx.waitUntil.call(ctx, Promise.resolve());
|
|
236
|
-
return null;
|
|
259
|
+
let selectedText = null;
|
|
260
|
+
const selHeaderRe = /^\n?Selected context:\n([\s\S]*)$/;
|
|
261
|
+
const sm = selHeaderRe.exec(rest);
|
|
262
|
+
if (sm) {
|
|
263
|
+
const body = sm[1].trim();
|
|
264
|
+
selectedText = body === "(none provided)" ? null : body || null;
|
|
237
265
|
}
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
} else {
|
|
248
|
-
res.end('This page could not be found');
|
|
249
|
-
}
|
|
250
|
-
return null;
|
|
251
|
-
};
|
|
252
|
-
if (isIsr && !isDraftMode) {
|
|
253
|
-
const prerenderInfo = prerenderManifest.dynamicRoutes[normalizedSrcPage];
|
|
254
|
-
if (prerenderInfo) {
|
|
255
|
-
if (prerenderInfo.fallback === false && !isPrerendered) {
|
|
256
|
-
if (nextConfig.adapterPath) {
|
|
257
|
-
return await render404();
|
|
258
|
-
}
|
|
259
|
-
throw new next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_15__.NoFallbackError();
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
let cacheKey = null;
|
|
264
|
-
if (isIsr && !routeModule.isDev && !isDraftMode) {
|
|
265
|
-
cacheKey = resolvedPathname;
|
|
266
|
-
// ensure /index and / is normalized to one key
|
|
267
|
-
cacheKey = cacheKey === '/index' ? '/' : cacheKey;
|
|
268
|
-
}
|
|
269
|
-
// Before rendering (which initializes component tree modules), we have to
|
|
270
|
-
// set the reference manifests to our global store so Server Action's
|
|
271
|
-
// encryption util can access to them at the top level of the page module.
|
|
272
|
-
if (serverActionsManifest && clientReferenceManifest) {
|
|
273
|
-
(0,next_dist_server_app_render_manifests_singleton__WEBPACK_IMPORTED_MODULE_5__.setManifestsSingleton)({
|
|
274
|
-
page: srcPage,
|
|
275
|
-
clientReferenceManifest,
|
|
276
|
-
serverActionsManifest
|
|
277
|
-
});
|
|
278
|
-
}
|
|
279
|
-
const method = req.method || 'GET';
|
|
280
|
-
const tracer = (0,next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.getTracer)();
|
|
281
|
-
const activeSpan = tracer.getActiveScopeSpan();
|
|
282
|
-
const isWrappedByNextServer = Boolean(routerServerContext == null ? void 0 : routerServerContext.isWrappedByNextServer);
|
|
283
|
-
const isMinimalMode = Boolean((0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.getRequestMeta)(req, 'minimalMode'));
|
|
284
|
-
const incrementalCache = (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.getRequestMeta)(req, 'incrementalCache') || await routeModule.getIncrementalCache(req, nextConfig, previewProps, prerenderManifest, isMinimalMode);
|
|
285
|
-
incrementalCache == null ? void 0 : incrementalCache.resetRequestCache();
|
|
286
|
-
globalThis.__incrementalCache = incrementalCache;
|
|
287
|
-
const context = {
|
|
288
|
-
params,
|
|
289
|
-
previewProps,
|
|
290
|
-
renderOpts: {
|
|
291
|
-
experimental: {
|
|
292
|
-
authInterrupts: Boolean(nextConfig.experimental.authInterrupts),
|
|
293
|
-
useCacheTimeout: nextConfig.experimental.useCacheTimeout,
|
|
294
|
-
durableUseCacheEntries: Boolean(nextConfig.experimental.durableUseCacheEntries)
|
|
295
|
-
},
|
|
296
|
-
cacheComponents: Boolean(nextConfig.cacheComponents),
|
|
297
|
-
validationLevel: nextConfig.experimental.instantInsights.validationLevel,
|
|
298
|
-
isDraftMode,
|
|
299
|
-
incrementalCache,
|
|
300
|
-
hmrRefreshHash: (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.getRequestMeta)(req, 'hmrRefreshHash'),
|
|
301
|
-
cacheLifeProfiles: nextConfig.cacheLife,
|
|
302
|
-
staticPageGenerationTimeout: nextConfig.staticPageGenerationTimeout,
|
|
303
|
-
waitUntil: ctx.waitUntil,
|
|
304
|
-
onClose: (cb)=>{
|
|
305
|
-
res.on('close', cb);
|
|
306
|
-
},
|
|
307
|
-
onAfterTaskError: undefined
|
|
308
|
-
},
|
|
309
|
-
sharedContext: {
|
|
310
|
-
buildId,
|
|
311
|
-
deploymentId
|
|
312
|
-
}
|
|
313
|
-
};
|
|
314
|
-
const nodeNextReq = new next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_7__.NodeNextRequest(req);
|
|
315
|
-
const nodeNextRes = new next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_7__.NodeNextResponse(res);
|
|
316
|
-
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));
|
|
317
|
-
const responseGenerator = async ({ previousCacheEntry })=>{
|
|
318
|
-
try {
|
|
319
|
-
if (!isMinimalMode && isOnDemandRevalidate && revalidateOnlyGenerated && !previousCacheEntry) {
|
|
320
|
-
res.statusCode = 404;
|
|
321
|
-
// on-demand revalidate always sets this header
|
|
322
|
-
res.setHeader('x-nextjs-cache', 'REVALIDATED');
|
|
323
|
-
res.end('This page could not be found');
|
|
324
|
-
return null;
|
|
325
|
-
}
|
|
326
|
-
const response = cacheKey === null ? await routeModule.handle(nextReq, context) : await routeModule.prerender(nextReq, context);
|
|
327
|
-
req.fetchMetrics = context.renderOpts.fetchMetrics;
|
|
328
|
-
let pendingWaitUntil = context.renderOpts.pendingWaitUntil;
|
|
329
|
-
// Attempt using provided waitUntil if available
|
|
330
|
-
// if it's not we fallback to sendResponse's handling
|
|
331
|
-
if (pendingWaitUntil) {
|
|
332
|
-
if (ctx.waitUntil) {
|
|
333
|
-
ctx.waitUntil(pendingWaitUntil);
|
|
334
|
-
pendingWaitUntil = undefined;
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
const cacheTags = context.renderOpts.collectedTags;
|
|
338
|
-
// If the request is for a static response, we can cache it so long
|
|
339
|
-
// as it's not edge.
|
|
340
|
-
if (isIsr) {
|
|
341
|
-
const blob = await response.blob();
|
|
342
|
-
// Copy the headers from the response.
|
|
343
|
-
const headers = (0,next_dist_server_web_utils__WEBPACK_IMPORTED_MODULE_12__.toNodeOutgoingHttpHeaders)(response.headers);
|
|
344
|
-
if (cacheTags) {
|
|
345
|
-
headers[next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__.NEXT_CACHE_TAGS_HEADER] = cacheTags;
|
|
346
|
-
}
|
|
347
|
-
if (!headers['content-type'] && blob.type) {
|
|
348
|
-
headers['content-type'] = blob.type;
|
|
349
|
-
}
|
|
350
|
-
const revalidate = typeof context.renderOpts.collectedRevalidate === 'undefined' || context.renderOpts.collectedRevalidate >= next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__.INFINITE_CACHE ? false : context.renderOpts.collectedRevalidate;
|
|
351
|
-
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
|
|
352
|
-
// explicit `expire` (e.g. via `cacheLife`). This mirrors the
|
|
353
|
-
// build-time fallback in `build/index.ts` so cache entries
|
|
354
|
-
// and the response Cache-Control header agree on the route's
|
|
355
|
-
// effective expire. Routes that opt out of revalidation
|
|
356
|
-
// (`revalidate: false`) or that are dynamic (`revalidate: 0`)
|
|
357
|
-
// keep `expire: undefined`.
|
|
358
|
-
revalidate !== false && revalidate > 0 ? nextConfig.expireTime : undefined : context.renderOpts.collectedExpire;
|
|
359
|
-
// Create the cache entry for the response.
|
|
360
|
-
const cacheEntry = {
|
|
361
|
-
value: {
|
|
362
|
-
kind: next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__.CachedRouteKind.APP_ROUTE,
|
|
363
|
-
status: response.status,
|
|
364
|
-
body: Buffer.from(await blob.arrayBuffer()),
|
|
365
|
-
headers
|
|
366
|
-
},
|
|
367
|
-
cacheControl: {
|
|
368
|
-
revalidate,
|
|
369
|
-
expire
|
|
370
|
-
}
|
|
371
|
-
};
|
|
372
|
-
return cacheEntry;
|
|
373
|
-
} else {
|
|
374
|
-
// send response without caching if not ISR
|
|
375
|
-
await (0,next_dist_server_send_response__WEBPACK_IMPORTED_MODULE_11__/* .sendResponse */ .I)(nodeNextReq, nodeNextRes, response, pendingWaitUntil);
|
|
376
|
-
return null;
|
|
377
|
-
}
|
|
378
|
-
} catch (err) {
|
|
379
|
-
// if this is a background revalidate we need to report
|
|
380
|
-
// the request error here as it won't be bubbled
|
|
381
|
-
if (previousCacheEntry == null ? void 0 : previousCacheEntry.isStale) {
|
|
382
|
-
const silenceLog = false;
|
|
383
|
-
await routeModule.onRequestError(req, err, {
|
|
384
|
-
routerKind: 'App Router',
|
|
385
|
-
routePath: srcPage,
|
|
386
|
-
routeType: 'route',
|
|
387
|
-
revalidateReason: (0,next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_10__.getRevalidateReason)({
|
|
388
|
-
isStaticGeneration: cacheKey !== null,
|
|
389
|
-
isOnDemandRevalidate
|
|
390
|
-
})
|
|
391
|
-
}, silenceLog, routerServerContext);
|
|
392
|
-
}
|
|
393
|
-
throw err;
|
|
394
|
-
}
|
|
395
|
-
};
|
|
396
|
-
const handleResponse = async (currentSpan, parentSpan)=>{
|
|
397
|
-
try {
|
|
398
|
-
var _cacheEntry_value;
|
|
399
|
-
const cacheEntry = await routeModule.handleResponse({
|
|
400
|
-
req,
|
|
401
|
-
nextConfig,
|
|
402
|
-
cacheKey,
|
|
403
|
-
routeKind: next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__.RouteKind.APP_ROUTE,
|
|
404
|
-
isFallback: false,
|
|
405
|
-
previewProps,
|
|
406
|
-
prerenderManifest,
|
|
407
|
-
isRoutePPREnabled: false,
|
|
408
|
-
isOnDemandRevalidate,
|
|
409
|
-
revalidateOnlyGenerated,
|
|
410
|
-
responseGenerator,
|
|
411
|
-
waitUntil: ctx.waitUntil,
|
|
412
|
-
isMinimalMode
|
|
413
|
-
});
|
|
414
|
-
if (cacheEntry !== null && 'error' in cacheEntry) {
|
|
415
|
-
throw cacheEntry.error;
|
|
416
|
-
}
|
|
417
|
-
// we don't create a cacheEntry for ISR
|
|
418
|
-
if (!isIsr) {
|
|
419
|
-
return;
|
|
420
|
-
}
|
|
421
|
-
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) {
|
|
422
|
-
var _cacheEntry_value1;
|
|
423
|
-
throw new Error(`Invariant: app-route received invalid cache entry ${cacheEntry == null ? void 0 : (_cacheEntry_value1 = cacheEntry.value) == null ? void 0 : _cacheEntry_value1.kind}`);
|
|
424
|
-
}
|
|
425
|
-
if (!isMinimalMode) {
|
|
426
|
-
res.setHeader('x-nextjs-cache', isOnDemandRevalidate ? 'REVALIDATED' : cacheEntry.isMiss ? 'MISS' : cacheEntry.isStale ? 'STALE' : 'HIT');
|
|
427
|
-
}
|
|
428
|
-
// Draft mode should never be cached
|
|
429
|
-
if (isDraftMode) {
|
|
430
|
-
res.setHeader('Cache-Control', 'private, no-cache, no-store, max-age=0, must-revalidate');
|
|
431
|
-
}
|
|
432
|
-
const headers = (0,next_dist_server_web_utils__WEBPACK_IMPORTED_MODULE_12__.fromNodeOutgoingHttpHeaders)(cacheEntry.value.headers);
|
|
433
|
-
if (!(isMinimalMode && isIsr)) {
|
|
434
|
-
headers.delete(next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__.NEXT_CACHE_TAGS_HEADER);
|
|
435
|
-
}
|
|
436
|
-
// If cache control is already set on the response we don't
|
|
437
|
-
// override it to allow users to customize it via next.config
|
|
438
|
-
if (cacheEntry.cacheControl && !res.getHeader('Cache-Control') && !headers.get('Cache-Control')) {
|
|
439
|
-
headers.set('Cache-Control', (0,next_dist_server_lib_cache_control__WEBPACK_IMPORTED_MODULE_13__.getCacheControlHeader)(cacheEntry.cacheControl));
|
|
440
|
-
}
|
|
441
|
-
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'.
|
|
442
|
-
new Response(cacheEntry.value.body, {
|
|
443
|
-
headers,
|
|
444
|
-
status: cacheEntry.value.status || 200
|
|
445
|
-
}));
|
|
446
|
-
return;
|
|
447
|
-
} catch (err) {
|
|
448
|
-
if (!(err instanceof next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_15__.NoFallbackError)) {
|
|
449
|
-
const silenceLog = false;
|
|
450
|
-
await routeModule.onRequestError(req, err, {
|
|
451
|
-
routerKind: 'App Router',
|
|
452
|
-
routePath: normalizedSrcPage,
|
|
453
|
-
routeType: 'route',
|
|
454
|
-
revalidateReason: (0,next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_10__.getRevalidateReason)({
|
|
455
|
-
isStaticGeneration: cacheKey !== null,
|
|
456
|
-
isOnDemandRevalidate
|
|
457
|
-
})
|
|
458
|
-
}, silenceLog, routerServerContext);
|
|
459
|
-
}
|
|
460
|
-
// rethrow so that we can handle serving error page
|
|
461
|
-
// If this is during static generation, throw the error again.
|
|
462
|
-
if (isIsr) throw err;
|
|
463
|
-
// Otherwise, send a 500 response unless the original response has
|
|
464
|
-
// already committed. In that case, preserve its status code for
|
|
465
|
-
// telemetry while still recording the failure and terminating a response
|
|
466
|
-
// that the failed pipeline left open.
|
|
467
|
-
if (res.headersSent) {
|
|
468
|
-
if (currentSpan) {
|
|
469
|
-
const error = err instanceof Error ? err : new Error('Unknown app route error');
|
|
470
|
-
currentSpan.recordException(error);
|
|
471
|
-
currentSpan.setStatus({
|
|
472
|
-
code: next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.SpanStatusCode.ERROR,
|
|
473
|
-
message: error.message
|
|
474
|
-
});
|
|
475
|
-
currentSpan.setAttribute('error.type', error.name);
|
|
476
|
-
}
|
|
477
|
-
if (!res.writableEnded && !res.destroyed) {
|
|
478
|
-
res.end();
|
|
479
|
-
}
|
|
480
|
-
} else {
|
|
481
|
-
await (0,next_dist_server_send_response__WEBPACK_IMPORTED_MODULE_11__/* .sendResponse */ .I)(nodeNextReq, nodeNextRes, new Response(null, {
|
|
482
|
-
status: 500
|
|
483
|
-
}));
|
|
484
|
-
}
|
|
485
|
-
return;
|
|
486
|
-
} finally{
|
|
487
|
-
;
|
|
488
|
-
(()=>{
|
|
489
|
-
if (!currentSpan) {
|
|
490
|
-
return;
|
|
491
|
-
}
|
|
492
|
-
let statusCode = res.statusCode;
|
|
493
|
-
currentSpan.setAttributes({
|
|
494
|
-
'http.status_code': statusCode,
|
|
495
|
-
'next.rsc': false
|
|
496
|
-
});
|
|
497
|
-
if (statusCode && statusCode >= 500) {
|
|
498
|
-
// For 5xx status codes: SHOULD be set to 'Error' span status.
|
|
499
|
-
// x-ref: https://opentelemetry.io/docs/specs/semconv/http/http-spans/#status
|
|
500
|
-
currentSpan.setStatus({
|
|
501
|
-
code: next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.SpanStatusCode.ERROR
|
|
502
|
-
});
|
|
503
|
-
// For span status 'Error', SHOULD set 'error.type' attribute.
|
|
504
|
-
currentSpan.setAttribute('error.type', statusCode.toString());
|
|
505
|
-
}
|
|
506
|
-
const rootSpanAttributes = tracer.getRootSpanAttributes();
|
|
507
|
-
// We were unable to get attributes, probably OTEL is not enabled
|
|
508
|
-
if (!rootSpanAttributes) {
|
|
509
|
-
return;
|
|
510
|
-
}
|
|
511
|
-
if (rootSpanAttributes.get('next.span_type') !== next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_9__.BaseServerSpan.handleRequest) {
|
|
512
|
-
console.warn(`Unexpected root span type '${rootSpanAttributes.get('next.span_type')}'. Please report this Next.js issue https://github.com/vercel/next.js`);
|
|
513
|
-
return;
|
|
514
|
-
}
|
|
515
|
-
const route = rootSpanAttributes.get('next.route') || normalizedSrcPage;
|
|
516
|
-
const name = `${method} ${route}`;
|
|
517
|
-
currentSpan.setAttributes({
|
|
518
|
-
'next.route': route,
|
|
519
|
-
'http.route': route,
|
|
520
|
-
'next.span_name': name
|
|
521
|
-
});
|
|
522
|
-
currentSpan.updateName(name);
|
|
523
|
-
// Propagate http.route to the parent span if one exists (e.g.
|
|
524
|
-
// a platform-created HTTP span in adapter deployments).
|
|
525
|
-
if (parentSpan && parentSpan !== currentSpan) {
|
|
526
|
-
parentSpan.setAttribute('http.route', route);
|
|
527
|
-
parentSpan.updateName(name);
|
|
528
|
-
}
|
|
529
|
-
})();
|
|
530
|
-
}
|
|
531
|
-
};
|
|
532
|
-
// TODO: activeSpan code path is for when wrapped by
|
|
533
|
-
// next-server can be removed when this is no longer used
|
|
534
|
-
if (isWrappedByNextServer && activeSpan) {
|
|
535
|
-
await handleResponse(activeSpan, undefined);
|
|
536
|
-
} else {
|
|
537
|
-
let parentSpan = tracer.getActiveScopeSpan();
|
|
538
|
-
await tracer.withPropagatedContext(req.headers, ()=>tracer.trace(next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_9__.BaseServerSpan.handleRequest, {
|
|
539
|
-
spanName: `${method} ${srcPage}`,
|
|
540
|
-
kind: next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.SpanKind.SERVER,
|
|
541
|
-
attributes: {
|
|
542
|
-
'http.method': method,
|
|
543
|
-
'http.target': req.url
|
|
544
|
-
}
|
|
545
|
-
}, (span)=>handleResponse(span, parentSpan)), undefined, !isWrappedByNextServer);
|
|
546
|
-
}
|
|
547
|
-
}
|
|
548
|
-
|
|
549
|
-
//# sourceMappingURL=app-route.js.map
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
/***/ }),
|
|
553
|
-
|
|
554
|
-
/***/ 33873:
|
|
555
|
-
/***/ ((module) => {
|
|
556
|
-
|
|
557
|
-
module.exports = require("path");
|
|
558
|
-
|
|
559
|
-
/***/ }),
|
|
560
|
-
|
|
561
|
-
/***/ 37067:
|
|
562
|
-
/***/ ((module) => {
|
|
563
|
-
|
|
564
|
-
module.exports = require("node:http");
|
|
565
|
-
|
|
566
|
-
/***/ }),
|
|
567
|
-
|
|
568
|
-
/***/ 38522:
|
|
569
|
-
/***/ ((module) => {
|
|
570
|
-
|
|
571
|
-
module.exports = require("node:zlib");
|
|
572
|
-
|
|
573
|
-
/***/ }),
|
|
574
|
-
|
|
575
|
-
/***/ 40610:
|
|
576
|
-
/***/ ((module) => {
|
|
577
|
-
|
|
578
|
-
module.exports = require("node:dns");
|
|
579
|
-
|
|
580
|
-
/***/ }),
|
|
581
|
-
|
|
582
|
-
/***/ 42482:
|
|
583
|
-
/***/ ((module) => {
|
|
584
|
-
|
|
585
|
-
module.exports = import("sharp");;
|
|
586
|
-
|
|
587
|
-
/***/ }),
|
|
588
|
-
|
|
589
|
-
/***/ 44708:
|
|
590
|
-
/***/ ((module) => {
|
|
591
|
-
|
|
592
|
-
module.exports = require("node:https");
|
|
593
|
-
|
|
594
|
-
/***/ }),
|
|
595
|
-
|
|
596
|
-
/***/ 44870:
|
|
597
|
-
/***/ ((module) => {
|
|
598
|
-
|
|
599
|
-
module.exports = require("next/dist/compiled/next-server/app-route.runtime.prod.js");
|
|
600
|
-
|
|
601
|
-
/***/ }),
|
|
602
|
-
|
|
603
|
-
/***/ 48161:
|
|
604
|
-
/***/ ((module) => {
|
|
605
|
-
|
|
606
|
-
module.exports = require("node:os");
|
|
607
|
-
|
|
608
|
-
/***/ }),
|
|
609
|
-
|
|
610
|
-
/***/ 51455:
|
|
611
|
-
/***/ ((module) => {
|
|
612
|
-
|
|
613
|
-
module.exports = require("node:fs/promises");
|
|
614
|
-
|
|
615
|
-
/***/ }),
|
|
616
|
-
|
|
617
|
-
/***/ 51903:
|
|
618
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
// EXPORTS
|
|
622
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
623
|
-
CZ: () => (/* binding */ handleExtensionAgents),
|
|
624
|
-
dT: () => (/* binding */ handleExtensionTurn),
|
|
625
|
-
eH: () => (/* binding */ handleGenericExtensionTurn)
|
|
626
|
-
});
|
|
627
|
-
|
|
628
|
-
// UNUSED EXPORTS: ExtensionAction
|
|
629
|
-
|
|
630
|
-
// EXTERNAL MODULE: ./node_modules/zod/v4/classic/schemas.js + 4 modules
|
|
631
|
-
var schemas = __webpack_require__(97377);
|
|
632
|
-
// EXTERNAL MODULE: ./lib/stores/threads.ts
|
|
633
|
-
var threads = __webpack_require__(83042);
|
|
634
|
-
// EXTERNAL MODULE: ./lib/stores/agent-configs.ts
|
|
635
|
-
var agent_configs = __webpack_require__(41720);
|
|
636
|
-
// EXTERNAL MODULE: ./lib/agents/agent-turn.ts
|
|
637
|
-
var agent_turn = __webpack_require__(62032);
|
|
638
|
-
// EXTERNAL MODULE: ./lib/notifications/bus.ts
|
|
639
|
-
var bus = __webpack_require__(76445);
|
|
640
|
-
;// ./lib/api/extension-turn-prompt.ts
|
|
641
|
-
// Browser-extension turn message (refine / fill / rewrite_clipboard).
|
|
642
|
-
// `composePrompt` lives next to the server handler so the format is
|
|
643
|
-
// authored once. `parseExtensionTurn` reverses it for the chat UI so the
|
|
644
|
-
// user bubble can show a tight collapsible card instead of raw text.
|
|
645
|
-
|
|
646
|
-
const ExtensionActionEnum = schemas/* enum */.k5n([
|
|
647
|
-
"refine",
|
|
648
|
-
"fill",
|
|
649
|
-
"rewrite_clipboard"
|
|
650
|
-
]);
|
|
651
|
-
function composePrompt(action, input) {
|
|
652
|
-
const header = action === "refine" ? "[Extension refine turn] Improve or refine the selected content based on the instruction below." : action === "fill" ? "[Extension fill turn] Produce text intended to be inserted into the currently focused editable field. Use nearby form context and page context to stay relevant. Return only the final field text." : "[Extension rewrite to clipboard turn] Rewrite ONLY the text under 'Selected context:' according to the instruction. Ignore any URL/title/heading hints — they are NOT the rewrite target. Return ONLY the rewritten text, no commentary, no quotes, no labels.";
|
|
653
|
-
const lines = [
|
|
654
|
-
header,
|
|
655
|
-
`Instruction: ${input.instruction}`
|
|
656
|
-
];
|
|
657
|
-
// rewrite_clipboard is intentionally selection-sovereign: the selection IS
|
|
658
|
-
// the input. Page metadata adds noise and the model has been observed
|
|
659
|
-
// echoing the page H1/H2 as the "rewrite" instead of operating on the
|
|
660
|
-
// selection. Strip every page hint for this action.
|
|
661
|
-
if (action !== "rewrite_clipboard") {
|
|
662
|
-
if (input.url) lines.push(`URL: ${input.url}`);
|
|
663
|
-
if (input.title) lines.push(`Title: ${input.title}`);
|
|
664
|
-
if (input.selector) lines.push(`Selector: ${input.selector}`);
|
|
665
|
-
if (input.page_context) lines.push("", "Page/form context:", input.page_context);
|
|
666
|
-
}
|
|
667
|
-
lines.push("", "Selected context:", input.text && input.text.trim().length > 0 ? input.text : "(none provided)");
|
|
668
|
-
return lines.join("\n");
|
|
669
|
-
}
|
|
670
|
-
const ACTION_LABEL = {
|
|
671
|
-
fill: "Fill focused field",
|
|
672
|
-
refine: "Refine selection",
|
|
673
|
-
rewrite_clipboard: "Rewrite to clipboard"
|
|
674
|
-
};
|
|
675
|
-
function parseExtensionTurn(raw) {
|
|
676
|
-
const headerRe = /^\[Extension (refine|fill|rewrite to clipboard) turn\][^\n]*\n/;
|
|
677
|
-
const hm = headerRe.exec(raw);
|
|
678
|
-
if (!hm) return null;
|
|
679
|
-
const actionWord = hm[1];
|
|
680
|
-
const action = actionWord === "fill" ? "fill" : actionWord === "refine" ? "refine" : "rewrite_clipboard";
|
|
681
|
-
let rest = raw.slice(hm[0].length);
|
|
682
|
-
function takeLine(label) {
|
|
683
|
-
const re = new RegExp(`^${label}:\\s*([^\\n]*)\\n?`);
|
|
684
|
-
const m = re.exec(rest);
|
|
685
|
-
if (!m) return null;
|
|
686
|
-
rest = rest.slice(m[0].length);
|
|
687
|
-
return m[1].trim() || null;
|
|
688
|
-
}
|
|
689
|
-
const instruction = takeLine("Instruction") ?? "";
|
|
690
|
-
const url = takeLine("URL");
|
|
691
|
-
const title = takeLine("Title");
|
|
692
|
-
const selector = takeLine("Selector");
|
|
693
|
-
let pageContext = null;
|
|
694
|
-
const pageHeaderRe = /^\nPage\/form context:\n/;
|
|
695
|
-
if (pageHeaderRe.test(rest)) {
|
|
696
|
-
rest = rest.replace(pageHeaderRe, "");
|
|
697
|
-
const idx = rest.indexOf("\n\nSelected context:");
|
|
698
|
-
if (idx >= 0) {
|
|
699
|
-
pageContext = rest.slice(0, idx).trim() || null;
|
|
700
|
-
rest = rest.slice(idx + 2);
|
|
701
|
-
}
|
|
702
|
-
}
|
|
703
|
-
let selectedText = null;
|
|
704
|
-
const selHeaderRe = /^\n?Selected context:\n([\s\S]*)$/;
|
|
705
|
-
const sm = selHeaderRe.exec(rest);
|
|
706
|
-
if (sm) {
|
|
707
|
-
const body = sm[1].trim();
|
|
708
|
-
selectedText = body === "(none provided)" ? null : body || null;
|
|
709
|
-
}
|
|
710
|
-
return {
|
|
711
|
-
action,
|
|
712
|
-
actionLabel: ACTION_LABEL[action],
|
|
713
|
-
instruction,
|
|
714
|
-
url,
|
|
715
|
-
title,
|
|
716
|
-
selector,
|
|
717
|
-
pageContext,
|
|
718
|
-
selectedText
|
|
266
|
+
return {
|
|
267
|
+
action,
|
|
268
|
+
actionLabel: ACTION_LABEL[action],
|
|
269
|
+
instruction,
|
|
270
|
+
url,
|
|
271
|
+
title,
|
|
272
|
+
selector,
|
|
273
|
+
pageContext,
|
|
274
|
+
selectedText
|
|
719
275
|
};
|
|
720
276
|
}
|
|
721
277
|
|
|
@@ -1001,140 +557,584 @@ module.exports = require("fs/promises");
|
|
|
1001
557
|
|
|
1002
558
|
/***/ }),
|
|
1003
559
|
|
|
1004
|
-
/***/ 80099:
|
|
1005
|
-
/***/ ((module) => {
|
|
560
|
+
/***/ 80099:
|
|
561
|
+
/***/ ((module) => {
|
|
562
|
+
|
|
563
|
+
module.exports = require("node:sqlite");
|
|
564
|
+
|
|
565
|
+
/***/ }),
|
|
566
|
+
|
|
567
|
+
/***/ 80481:
|
|
568
|
+
/***/ ((module) => {
|
|
569
|
+
|
|
570
|
+
module.exports = require("node:readline");
|
|
571
|
+
|
|
572
|
+
/***/ }),
|
|
573
|
+
|
|
574
|
+
/***/ 81630:
|
|
575
|
+
/***/ ((module) => {
|
|
576
|
+
|
|
577
|
+
module.exports = require("http");
|
|
578
|
+
|
|
579
|
+
/***/ }),
|
|
580
|
+
|
|
581
|
+
/***/ 86439:
|
|
582
|
+
/***/ ((module) => {
|
|
583
|
+
|
|
584
|
+
module.exports = require("next/dist/shared/lib/no-fallback-error.external");
|
|
585
|
+
|
|
586
|
+
/***/ }),
|
|
587
|
+
|
|
588
|
+
/***/ 90347:
|
|
589
|
+
/***/ ((module) => {
|
|
590
|
+
|
|
591
|
+
module.exports = import("@langchain/mcp-adapters");;
|
|
592
|
+
|
|
593
|
+
/***/ }),
|
|
594
|
+
|
|
595
|
+
/***/ 92280:
|
|
596
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
597
|
+
|
|
598
|
+
var __webpack_unused_export__;
|
|
599
|
+
|
|
600
|
+
__webpack_unused_export__ = ({
|
|
601
|
+
value: true
|
|
602
|
+
});
|
|
603
|
+
Object.defineProperty(exports, "I", ({
|
|
604
|
+
enumerable: true,
|
|
605
|
+
get: function() {
|
|
606
|
+
return sendResponse;
|
|
607
|
+
}
|
|
608
|
+
}));
|
|
609
|
+
const _helpers = __webpack_require__(28208);
|
|
610
|
+
const _pipereadable = __webpack_require__(47617);
|
|
611
|
+
const _utils = __webpack_require__(62018);
|
|
612
|
+
async function sendResponse(req, res, response, waitUntil) {
|
|
613
|
+
if (// The type check here ensures that `req` is correctly typed, and the
|
|
614
|
+
// environment variable check provides dead code elimination.
|
|
615
|
+
true && (0, _helpers.isNodeNextResponse)(res)) {
|
|
616
|
+
var // Copy over the response headers.
|
|
617
|
+
_response_headers;
|
|
618
|
+
// Copy over the response status.
|
|
619
|
+
res.statusCode = response.status;
|
|
620
|
+
res.statusMessage = response.statusText;
|
|
621
|
+
// TODO: this is not spec-compliant behavior and we should not restrict
|
|
622
|
+
// headers that are allowed to appear many times.
|
|
623
|
+
//
|
|
624
|
+
// See:
|
|
625
|
+
// https://github.com/vercel/next.js/pull/70127
|
|
626
|
+
const headersWithMultipleValuesAllowed = [
|
|
627
|
+
// can add more headers to this list if needed
|
|
628
|
+
'set-cookie',
|
|
629
|
+
'www-authenticate',
|
|
630
|
+
'proxy-authenticate',
|
|
631
|
+
'vary'
|
|
632
|
+
];
|
|
633
|
+
(_response_headers = response.headers) == null ? void 0 : _response_headers.forEach((value, name)=>{
|
|
634
|
+
// `x-middleware-set-cookie` is an internal header not needed for the response
|
|
635
|
+
if (name.toLowerCase() === 'x-middleware-set-cookie') {
|
|
636
|
+
return;
|
|
637
|
+
}
|
|
638
|
+
// The append handling is special cased for `set-cookie`.
|
|
639
|
+
if (name.toLowerCase() === 'set-cookie') {
|
|
640
|
+
// TODO: (wyattjoh) replace with native response iteration when we can upgrade undici
|
|
641
|
+
for (const cookie of (0, _utils.splitCookiesString)(value)){
|
|
642
|
+
res.appendHeader(name, cookie);
|
|
643
|
+
}
|
|
644
|
+
} else {
|
|
645
|
+
// only append the header if it is either not present in the outbound response
|
|
646
|
+
// or if the header supports multiple values
|
|
647
|
+
const isHeaderPresent = typeof res.getHeader(name) !== 'undefined';
|
|
648
|
+
if (headersWithMultipleValuesAllowed.includes(name.toLowerCase()) || !isHeaderPresent) {
|
|
649
|
+
res.appendHeader(name, value);
|
|
650
|
+
}
|
|
651
|
+
}
|
|
652
|
+
});
|
|
653
|
+
/**
|
|
654
|
+
* The response can't be directly piped to the underlying response. The
|
|
655
|
+
* following is duplicated from the edge runtime handler.
|
|
656
|
+
*
|
|
657
|
+
* See packages/next/server/next-server.ts
|
|
658
|
+
*/ const { originalResponse } = res;
|
|
659
|
+
// A response body must not be sent for HEAD requests. See https://httpwg.org/specs/rfc9110.html#HEAD
|
|
660
|
+
if (response.body && req.method !== 'HEAD') {
|
|
661
|
+
await (0, _pipereadable.pipeToNodeResponse)(response.body, originalResponse, waitUntil);
|
|
662
|
+
} else {
|
|
663
|
+
originalResponse.end();
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
//# sourceMappingURL=send-response.js.map
|
|
669
|
+
|
|
670
|
+
/***/ }),
|
|
671
|
+
|
|
672
|
+
/***/ 92632:
|
|
673
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
674
|
+
|
|
675
|
+
__webpack_require__.r(__webpack_exports__);
|
|
676
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
677
|
+
/* harmony export */ POST: () => (/* binding */ POST)
|
|
678
|
+
/* harmony export */ });
|
|
679
|
+
/* harmony import */ var _lib_api_extension_turn__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(51903);
|
|
680
|
+
|
|
681
|
+
/**
|
|
682
|
+
* @public-internal — browser-extension fill request.
|
|
683
|
+
*/ async function POST(req) {
|
|
684
|
+
return (0,_lib_api_extension_turn__WEBPACK_IMPORTED_MODULE_0__/* .handleExtensionTurn */ .dT)("fill", req);
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
|
|
688
|
+
/***/ }),
|
|
689
|
+
|
|
690
|
+
/***/ 94735:
|
|
691
|
+
/***/ ((module) => {
|
|
692
|
+
|
|
693
|
+
module.exports = require("events");
|
|
694
|
+
|
|
695
|
+
/***/ }),
|
|
696
|
+
|
|
697
|
+
/***/ 98037:
|
|
698
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
699
|
+
|
|
700
|
+
__webpack_require__.r(__webpack_exports__);
|
|
701
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
702
|
+
/* harmony export */ handler: () => (/* binding */ handler),
|
|
703
|
+
/* harmony export */ patchFetch: () => (/* binding */ patchFetch),
|
|
704
|
+
/* harmony export */ routeModule: () => (/* binding */ routeModule),
|
|
705
|
+
/* harmony export */ serverHooks: () => (/* binding */ serverHooks),
|
|
706
|
+
/* harmony export */ workAsyncStorage: () => (/* binding */ workAsyncStorage),
|
|
707
|
+
/* harmony export */ workUnitAsyncStorage: () => (/* binding */ workUnitAsyncStorage)
|
|
708
|
+
/* harmony export */ });
|
|
709
|
+
/* harmony import */ var next_dist_server_route_modules_app_route_module_compiled__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(19225);
|
|
710
|
+
/* 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__);
|
|
711
|
+
/* harmony import */ var next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(84006);
|
|
712
|
+
/* harmony import */ var next_dist_server_lib_patch_fetch__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8317);
|
|
713
|
+
/* 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__);
|
|
714
|
+
/* harmony import */ var next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(99373);
|
|
715
|
+
/* 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__);
|
|
716
|
+
/* harmony import */ var next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(34775);
|
|
717
|
+
/* 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__);
|
|
718
|
+
/* harmony import */ var next_dist_server_app_render_manifests_singleton__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(24235);
|
|
719
|
+
/* 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__);
|
|
720
|
+
/* harmony import */ var next_dist_shared_lib_router_utils_app_paths__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(261);
|
|
721
|
+
/* 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__);
|
|
722
|
+
/* harmony import */ var next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(54365);
|
|
723
|
+
/* 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__);
|
|
724
|
+
/* harmony import */ var next_dist_server_web_spec_extension_adapters_next_request__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(90771);
|
|
725
|
+
/* 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__);
|
|
726
|
+
/* harmony import */ var next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(73461);
|
|
727
|
+
/* 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__);
|
|
728
|
+
/* harmony import */ var next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(67798);
|
|
729
|
+
/* harmony import */ var next_dist_server_send_response__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(92280);
|
|
730
|
+
/* harmony import */ var next_dist_server_web_utils__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(62018);
|
|
731
|
+
/* 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__);
|
|
732
|
+
/* harmony import */ var next_dist_server_lib_cache_control__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(45696);
|
|
733
|
+
/* harmony import */ var next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(47929);
|
|
734
|
+
/* harmony import */ var next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__);
|
|
735
|
+
/* harmony import */ var next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(86439);
|
|
736
|
+
/* 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__);
|
|
737
|
+
/* harmony import */ var next_dist_server_lib_route_cache_key__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(10246);
|
|
738
|
+
/* 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__);
|
|
739
|
+
/* harmony import */ var next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(37527);
|
|
740
|
+
/* 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__);
|
|
741
|
+
|
|
1006
742
|
|
|
1007
|
-
module.exports = require("node:sqlite");
|
|
1008
743
|
|
|
1009
|
-
/***/ }),
|
|
1010
744
|
|
|
1011
|
-
/***/ 80481:
|
|
1012
|
-
/***/ ((module) => {
|
|
1013
745
|
|
|
1014
|
-
module.exports = require("node:readline");
|
|
1015
746
|
|
|
1016
|
-
/***/ }),
|
|
1017
747
|
|
|
1018
|
-
/***/ 81630:
|
|
1019
|
-
/***/ ((module) => {
|
|
1020
748
|
|
|
1021
|
-
module.exports = require("http");
|
|
1022
749
|
|
|
1023
|
-
/***/ }),
|
|
1024
750
|
|
|
1025
|
-
/***/ 86439:
|
|
1026
|
-
/***/ ((module) => {
|
|
1027
751
|
|
|
1028
|
-
module.exports = require("next/dist/shared/lib/no-fallback-error.external");
|
|
1029
752
|
|
|
1030
|
-
/***/ }),
|
|
1031
753
|
|
|
1032
|
-
/***/ 90347:
|
|
1033
|
-
/***/ ((module) => {
|
|
1034
754
|
|
|
1035
|
-
module.exports = import("@langchain/mcp-adapters");;
|
|
1036
755
|
|
|
1037
|
-
/***/ }),
|
|
1038
756
|
|
|
1039
|
-
/***/ 92280:
|
|
1040
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
1041
757
|
|
|
1042
|
-
var __webpack_unused_export__;
|
|
1043
758
|
|
|
1044
|
-
|
|
1045
|
-
|
|
759
|
+
// We inject the nextConfigOutput here so that we can use them in the route
|
|
760
|
+
// module.
|
|
761
|
+
const nextConfigOutput = "standalone"
|
|
762
|
+
const routeModule = new next_dist_server_route_modules_app_route_module_compiled__WEBPACK_IMPORTED_MODULE_0__.AppRouteRouteModule({
|
|
763
|
+
definition: {
|
|
764
|
+
kind: next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__.RouteKind.APP_ROUTE,
|
|
765
|
+
page: "/api/v1/extension/fill/route",
|
|
766
|
+
pathname: "/api/v1/extension/fill",
|
|
767
|
+
filename: "route",
|
|
768
|
+
bundlePath: "app/api/v1/extension/fill/route"
|
|
769
|
+
},
|
|
770
|
+
distDir: ".next" || 0,
|
|
771
|
+
relativeProjectDir: false || '',
|
|
772
|
+
resolvedPagePath: "/home/runner/work/jarela/jarela/app/api/v1/extension/fill/route.ts",
|
|
773
|
+
nextConfigOutput,
|
|
774
|
+
// The lazy require factory ensures that:
|
|
775
|
+
// - In dev: devRequestTimingInternalsEnd is set before userland executes,
|
|
776
|
+
// correctly attributing module load time to application-code rather than
|
|
777
|
+
// framework internals.
|
|
778
|
+
// - In all modes: async modules (route files with top-level await) are
|
|
779
|
+
// handled correctly — require() returns a Promise for such modules, which
|
|
780
|
+
// ensureUserland() awaits before the first request is handled.
|
|
781
|
+
userland: ()=>__webpack_require__(92632),
|
|
782
|
+
// In Turbopack dev mode, also provide a synchronous per-request getter so
|
|
783
|
+
// server HMR updates are picked up without re-executing the entry chunk.
|
|
784
|
+
// Using require() (synchronous) avoids adding async overhead that would be
|
|
785
|
+
// incorrectly attributed to application-code time in devRequestTiming.
|
|
786
|
+
... false ? 0 : {}
|
|
1046
787
|
});
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
788
|
+
// Pull out the exports that we need to expose from the module. This should
|
|
789
|
+
// be eliminated when we've moved the other routes to the new format. These
|
|
790
|
+
// are used to hook into the route.
|
|
791
|
+
const { workAsyncStorage, workUnitAsyncStorage, serverHooks } = routeModule;
|
|
792
|
+
function patchFetch() {
|
|
793
|
+
return (0,next_dist_server_lib_patch_fetch__WEBPACK_IMPORTED_MODULE_2__.patchFetch)({
|
|
794
|
+
workAsyncStorage,
|
|
795
|
+
workUnitAsyncStorage
|
|
796
|
+
});
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
async function handler(req, res, ctx) {
|
|
800
|
+
if (ctx.requestMeta) {
|
|
801
|
+
(0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.setRequestMeta)(req, ctx.requestMeta);
|
|
1051
802
|
}
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
//
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
803
|
+
if (routeModule.isDev) {
|
|
804
|
+
(0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.addRequestMeta)(req, 'devRequestTimingInternalsEnd', process.hrtime.bigint());
|
|
805
|
+
}
|
|
806
|
+
let srcPage = "/api/v1/extension/fill/route";
|
|
807
|
+
// turbopack doesn't normalize `/index` in the page name
|
|
808
|
+
// so we need to to process dynamic routes properly
|
|
809
|
+
// TODO: fix turbopack providing differing value from webpack
|
|
810
|
+
if (false) {} else if (srcPage === '/index') {
|
|
811
|
+
// we always normalize /index specifically
|
|
812
|
+
srcPage = '/';
|
|
813
|
+
}
|
|
814
|
+
const multiZoneDraftMode = false;
|
|
815
|
+
const prepareResult = await routeModule.prepare(req, res, {
|
|
816
|
+
srcPage,
|
|
817
|
+
multiZoneDraftMode
|
|
818
|
+
});
|
|
819
|
+
if (!prepareResult) {
|
|
820
|
+
res.statusCode = 400;
|
|
821
|
+
res.end('Bad Request');
|
|
822
|
+
ctx.waitUntil == null ? void 0 : ctx.waitUntil.call(ctx, Promise.resolve());
|
|
823
|
+
return null;
|
|
824
|
+
}
|
|
825
|
+
const { buildId, deploymentId, params, nextConfig, parsedUrl, isDraftMode, prerenderManifest, routerServerContext, isOnDemandRevalidate, revalidateOnlyGenerated, resolvedPathname, clientReferenceManifest, serverActionsManifest, previewProps } = prepareResult;
|
|
826
|
+
const normalizedSrcPage = (0,next_dist_shared_lib_router_utils_app_paths__WEBPACK_IMPORTED_MODULE_6__.normalizeAppPath)(srcPage);
|
|
827
|
+
// Only this route's prerenders can establish ISR or admit generated params.
|
|
828
|
+
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]));
|
|
829
|
+
let isIsr = Boolean(prerenderManifest.dynamicRoutes[normalizedSrcPage] || isPrerendered);
|
|
830
|
+
const render404 = async ()=>{
|
|
831
|
+
// TODO: should route-module itself handle rendering the 404
|
|
832
|
+
if (routerServerContext == null ? void 0 : routerServerContext.render404) {
|
|
833
|
+
await routerServerContext.render404(req, res, parsedUrl, false);
|
|
834
|
+
} else {
|
|
835
|
+
res.end('This page could not be found');
|
|
836
|
+
}
|
|
837
|
+
return null;
|
|
838
|
+
};
|
|
839
|
+
if (isIsr && !isDraftMode) {
|
|
840
|
+
const prerenderInfo = prerenderManifest.dynamicRoutes[normalizedSrcPage];
|
|
841
|
+
if (prerenderInfo) {
|
|
842
|
+
if (prerenderInfo.fallback === false && !isPrerendered) {
|
|
843
|
+
if (nextConfig.adapterPath) {
|
|
844
|
+
return await render404();
|
|
845
|
+
}
|
|
846
|
+
throw new next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_15__.NoFallbackError();
|
|
847
|
+
}
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
let cacheKey = null;
|
|
851
|
+
if (isIsr && !routeModule.isDev && !isDraftMode) {
|
|
852
|
+
cacheKey = resolvedPathname;
|
|
853
|
+
// ensure /index and / is normalized to one key
|
|
854
|
+
cacheKey = cacheKey === '/index' ? '/' : cacheKey;
|
|
855
|
+
}
|
|
856
|
+
// Before rendering (which initializes component tree modules), we have to
|
|
857
|
+
// set the reference manifests to our global store so Server Action's
|
|
858
|
+
// encryption util can access to them at the top level of the page module.
|
|
859
|
+
if (serverActionsManifest && clientReferenceManifest) {
|
|
860
|
+
(0,next_dist_server_app_render_manifests_singleton__WEBPACK_IMPORTED_MODULE_5__.setManifestsSingleton)({
|
|
861
|
+
page: srcPage,
|
|
862
|
+
clientReferenceManifest,
|
|
863
|
+
serverActionsManifest
|
|
864
|
+
});
|
|
865
|
+
}
|
|
866
|
+
const method = req.method || 'GET';
|
|
867
|
+
const tracer = (0,next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.getTracer)();
|
|
868
|
+
const activeSpan = tracer.getActiveScopeSpan();
|
|
869
|
+
const isWrappedByNextServer = Boolean(routerServerContext == null ? void 0 : routerServerContext.isWrappedByNextServer);
|
|
870
|
+
const isMinimalMode = Boolean((0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.getRequestMeta)(req, 'minimalMode'));
|
|
871
|
+
const incrementalCache = (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.getRequestMeta)(req, 'incrementalCache') || await routeModule.getIncrementalCache(req, nextConfig, previewProps, prerenderManifest, isMinimalMode);
|
|
872
|
+
incrementalCache == null ? void 0 : incrementalCache.resetRequestCache();
|
|
873
|
+
globalThis.__incrementalCache = incrementalCache;
|
|
874
|
+
const context = {
|
|
875
|
+
params,
|
|
876
|
+
previewProps,
|
|
877
|
+
renderOpts: {
|
|
878
|
+
experimental: {
|
|
879
|
+
authInterrupts: Boolean(nextConfig.experimental.authInterrupts),
|
|
880
|
+
useCacheTimeout: nextConfig.experimental.useCacheTimeout,
|
|
881
|
+
durableUseCacheEntries: Boolean(nextConfig.experimental.durableUseCacheEntries)
|
|
882
|
+
},
|
|
883
|
+
cacheComponents: Boolean(nextConfig.cacheComponents),
|
|
884
|
+
validationLevel: nextConfig.experimental.instantInsights.validationLevel,
|
|
885
|
+
isDraftMode,
|
|
886
|
+
incrementalCache,
|
|
887
|
+
hmrRefreshHash: (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.getRequestMeta)(req, 'hmrRefreshHash'),
|
|
888
|
+
cacheLifeProfiles: nextConfig.cacheLife,
|
|
889
|
+
staticPageGenerationTimeout: nextConfig.staticPageGenerationTimeout,
|
|
890
|
+
waitUntil: ctx.waitUntil,
|
|
891
|
+
onClose: (cb)=>{
|
|
892
|
+
res.on('close', cb);
|
|
893
|
+
},
|
|
894
|
+
onAfterTaskError: undefined
|
|
895
|
+
},
|
|
896
|
+
sharedContext: {
|
|
897
|
+
buildId,
|
|
898
|
+
deploymentId
|
|
899
|
+
}
|
|
900
|
+
};
|
|
901
|
+
const nodeNextReq = new next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_7__.NodeNextRequest(req);
|
|
902
|
+
const nodeNextRes = new next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_7__.NodeNextResponse(res);
|
|
903
|
+
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));
|
|
904
|
+
const responseGenerator = async ({ previousCacheEntry })=>{
|
|
905
|
+
try {
|
|
906
|
+
if (!isMinimalMode && isOnDemandRevalidate && revalidateOnlyGenerated && !previousCacheEntry) {
|
|
907
|
+
res.statusCode = 404;
|
|
908
|
+
// on-demand revalidate always sets this header
|
|
909
|
+
res.setHeader('x-nextjs-cache', 'REVALIDATED');
|
|
910
|
+
res.end('This page could not be found');
|
|
911
|
+
return null;
|
|
912
|
+
}
|
|
913
|
+
const response = cacheKey === null ? await routeModule.handle(nextReq, context) : await routeModule.prerender(nextReq, context);
|
|
914
|
+
req.fetchMetrics = context.renderOpts.fetchMetrics;
|
|
915
|
+
let pendingWaitUntil = context.renderOpts.pendingWaitUntil;
|
|
916
|
+
// Attempt using provided waitUntil if available
|
|
917
|
+
// if it's not we fallback to sendResponse's handling
|
|
918
|
+
if (pendingWaitUntil) {
|
|
919
|
+
if (ctx.waitUntil) {
|
|
920
|
+
ctx.waitUntil(pendingWaitUntil);
|
|
921
|
+
pendingWaitUntil = undefined;
|
|
922
|
+
}
|
|
1081
923
|
}
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
924
|
+
const cacheTags = context.renderOpts.collectedTags;
|
|
925
|
+
// If the request is for a static response, we can cache it so long
|
|
926
|
+
// as it's not edge.
|
|
927
|
+
if (isIsr) {
|
|
928
|
+
const blob = await response.blob();
|
|
929
|
+
// Copy the headers from the response.
|
|
930
|
+
const headers = (0,next_dist_server_web_utils__WEBPACK_IMPORTED_MODULE_12__.toNodeOutgoingHttpHeaders)(response.headers);
|
|
931
|
+
if (cacheTags) {
|
|
932
|
+
headers[next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__.NEXT_CACHE_TAGS_HEADER] = cacheTags;
|
|
933
|
+
}
|
|
934
|
+
if (!headers['content-type'] && blob.type) {
|
|
935
|
+
headers['content-type'] = blob.type;
|
|
1087
936
|
}
|
|
937
|
+
const revalidate = typeof context.renderOpts.collectedRevalidate === 'undefined' || context.renderOpts.collectedRevalidate >= next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__.INFINITE_CACHE ? false : context.renderOpts.collectedRevalidate;
|
|
938
|
+
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
|
|
939
|
+
// explicit `expire` (e.g. via `cacheLife`). This mirrors the
|
|
940
|
+
// build-time fallback in `build/index.ts` so cache entries
|
|
941
|
+
// and the response Cache-Control header agree on the route's
|
|
942
|
+
// effective expire. Routes that opt out of revalidation
|
|
943
|
+
// (`revalidate: false`) or that are dynamic (`revalidate: 0`)
|
|
944
|
+
// keep `expire: undefined`.
|
|
945
|
+
revalidate !== false && revalidate > 0 ? nextConfig.expireTime : undefined : context.renderOpts.collectedExpire;
|
|
946
|
+
// Create the cache entry for the response.
|
|
947
|
+
const cacheEntry = {
|
|
948
|
+
value: {
|
|
949
|
+
kind: next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__.CachedRouteKind.APP_ROUTE,
|
|
950
|
+
status: response.status,
|
|
951
|
+
body: Buffer.from(await blob.arrayBuffer()),
|
|
952
|
+
headers
|
|
953
|
+
},
|
|
954
|
+
cacheControl: {
|
|
955
|
+
revalidate,
|
|
956
|
+
expire
|
|
957
|
+
}
|
|
958
|
+
};
|
|
959
|
+
return cacheEntry;
|
|
1088
960
|
} else {
|
|
1089
|
-
//
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
961
|
+
// send response without caching if not ISR
|
|
962
|
+
await (0,next_dist_server_send_response__WEBPACK_IMPORTED_MODULE_11__/* .sendResponse */ .I)(nodeNextReq, nodeNextRes, response, pendingWaitUntil);
|
|
963
|
+
return null;
|
|
964
|
+
}
|
|
965
|
+
} catch (err) {
|
|
966
|
+
// if this is a background revalidate we need to report
|
|
967
|
+
// the request error here as it won't be bubbled
|
|
968
|
+
if (previousCacheEntry == null ? void 0 : previousCacheEntry.isStale) {
|
|
969
|
+
const silenceLog = false;
|
|
970
|
+
await routeModule.onRequestError(req, err, {
|
|
971
|
+
routerKind: 'App Router',
|
|
972
|
+
routePath: srcPage,
|
|
973
|
+
routeType: 'route',
|
|
974
|
+
revalidateReason: (0,next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_10__.getRevalidateReason)({
|
|
975
|
+
isStaticGeneration: cacheKey !== null,
|
|
976
|
+
isOnDemandRevalidate
|
|
977
|
+
})
|
|
978
|
+
}, silenceLog, routerServerContext);
|
|
979
|
+
}
|
|
980
|
+
throw err;
|
|
981
|
+
}
|
|
982
|
+
};
|
|
983
|
+
const handleResponse = async (currentSpan, parentSpan)=>{
|
|
984
|
+
try {
|
|
985
|
+
var _cacheEntry_value;
|
|
986
|
+
const cacheEntry = await routeModule.handleResponse({
|
|
987
|
+
req,
|
|
988
|
+
nextConfig,
|
|
989
|
+
cacheKey,
|
|
990
|
+
routeKind: next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__.RouteKind.APP_ROUTE,
|
|
991
|
+
isFallback: false,
|
|
992
|
+
previewProps,
|
|
993
|
+
prerenderManifest,
|
|
994
|
+
isRoutePPREnabled: false,
|
|
995
|
+
isOnDemandRevalidate,
|
|
996
|
+
revalidateOnlyGenerated,
|
|
997
|
+
responseGenerator,
|
|
998
|
+
waitUntil: ctx.waitUntil,
|
|
999
|
+
isMinimalMode
|
|
1000
|
+
});
|
|
1001
|
+
if (cacheEntry !== null && 'error' in cacheEntry) {
|
|
1002
|
+
throw cacheEntry.error;
|
|
1003
|
+
}
|
|
1004
|
+
// we don't create a cacheEntry for ISR
|
|
1005
|
+
if (!isIsr) {
|
|
1006
|
+
return;
|
|
1007
|
+
}
|
|
1008
|
+
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) {
|
|
1009
|
+
var _cacheEntry_value1;
|
|
1010
|
+
throw new Error(`Invariant: app-route received invalid cache entry ${cacheEntry == null ? void 0 : (_cacheEntry_value1 = cacheEntry.value) == null ? void 0 : _cacheEntry_value1.kind}`);
|
|
1011
|
+
}
|
|
1012
|
+
if (!isMinimalMode) {
|
|
1013
|
+
res.setHeader('x-nextjs-cache', isOnDemandRevalidate ? 'REVALIDATED' : cacheEntry.isMiss ? 'MISS' : cacheEntry.isStale ? 'STALE' : 'HIT');
|
|
1014
|
+
}
|
|
1015
|
+
// Draft mode should never be cached
|
|
1016
|
+
if (isDraftMode) {
|
|
1017
|
+
res.setHeader('Cache-Control', 'private, no-cache, no-store, max-age=0, must-revalidate');
|
|
1018
|
+
}
|
|
1019
|
+
const headers = (0,next_dist_server_web_utils__WEBPACK_IMPORTED_MODULE_12__.fromNodeOutgoingHttpHeaders)(cacheEntry.value.headers);
|
|
1020
|
+
if (!(isMinimalMode && isIsr)) {
|
|
1021
|
+
headers.delete(next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__.NEXT_CACHE_TAGS_HEADER);
|
|
1022
|
+
}
|
|
1023
|
+
// If cache control is already set on the response we don't
|
|
1024
|
+
// override it to allow users to customize it via next.config
|
|
1025
|
+
if (cacheEntry.cacheControl && !res.getHeader('Cache-Control') && !headers.get('Cache-Control')) {
|
|
1026
|
+
headers.set('Cache-Control', (0,next_dist_server_lib_cache_control__WEBPACK_IMPORTED_MODULE_13__.getCacheControlHeader)(cacheEntry.cacheControl));
|
|
1027
|
+
}
|
|
1028
|
+
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'.
|
|
1029
|
+
new Response(cacheEntry.value.body, {
|
|
1030
|
+
headers,
|
|
1031
|
+
status: cacheEntry.value.status || 200
|
|
1032
|
+
}));
|
|
1033
|
+
return;
|
|
1034
|
+
} catch (err) {
|
|
1035
|
+
if (!(err instanceof next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_15__.NoFallbackError)) {
|
|
1036
|
+
const silenceLog = false;
|
|
1037
|
+
await routeModule.onRequestError(req, err, {
|
|
1038
|
+
routerKind: 'App Router',
|
|
1039
|
+
routePath: normalizedSrcPage,
|
|
1040
|
+
routeType: 'route',
|
|
1041
|
+
revalidateReason: (0,next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_10__.getRevalidateReason)({
|
|
1042
|
+
isStaticGeneration: cacheKey !== null,
|
|
1043
|
+
isOnDemandRevalidate
|
|
1044
|
+
})
|
|
1045
|
+
}, silenceLog, routerServerContext);
|
|
1046
|
+
}
|
|
1047
|
+
// rethrow so that we can handle serving error page
|
|
1048
|
+
// If this is during static generation, throw the error again.
|
|
1049
|
+
if (isIsr) throw err;
|
|
1050
|
+
// Otherwise, send a 500 response unless the original response has
|
|
1051
|
+
// already committed. In that case, preserve its status code for
|
|
1052
|
+
// telemetry while still recording the failure and terminating a response
|
|
1053
|
+
// that the failed pipeline left open.
|
|
1054
|
+
if (res.headersSent) {
|
|
1055
|
+
if (currentSpan) {
|
|
1056
|
+
const error = err instanceof Error ? err : new Error('Unknown app route error');
|
|
1057
|
+
currentSpan.recordException(error);
|
|
1058
|
+
currentSpan.setStatus({
|
|
1059
|
+
code: next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.SpanStatusCode.ERROR,
|
|
1060
|
+
message: error.message
|
|
1061
|
+
});
|
|
1062
|
+
currentSpan.setAttribute('error.type', error.name);
|
|
1063
|
+
}
|
|
1064
|
+
if (!res.writableEnded && !res.destroyed) {
|
|
1065
|
+
res.end();
|
|
1094
1066
|
}
|
|
1067
|
+
} else {
|
|
1068
|
+
await (0,next_dist_server_send_response__WEBPACK_IMPORTED_MODULE_11__/* .sendResponse */ .I)(nodeNextReq, nodeNextRes, new Response(null, {
|
|
1069
|
+
status: 500
|
|
1070
|
+
}));
|
|
1095
1071
|
}
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1072
|
+
return;
|
|
1073
|
+
} finally{
|
|
1074
|
+
;
|
|
1075
|
+
(()=>{
|
|
1076
|
+
if (!currentSpan) {
|
|
1077
|
+
return;
|
|
1078
|
+
}
|
|
1079
|
+
let statusCode = res.statusCode;
|
|
1080
|
+
currentSpan.setAttributes({
|
|
1081
|
+
'http.status_code': statusCode,
|
|
1082
|
+
'next.rsc': false
|
|
1083
|
+
});
|
|
1084
|
+
if (statusCode && statusCode >= 500) {
|
|
1085
|
+
// For 5xx status codes: SHOULD be set to 'Error' span status.
|
|
1086
|
+
// x-ref: https://opentelemetry.io/docs/specs/semconv/http/http-spans/#status
|
|
1087
|
+
currentSpan.setStatus({
|
|
1088
|
+
code: next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.SpanStatusCode.ERROR
|
|
1089
|
+
});
|
|
1090
|
+
// For span status 'Error', SHOULD set 'error.type' attribute.
|
|
1091
|
+
currentSpan.setAttribute('error.type', statusCode.toString());
|
|
1092
|
+
}
|
|
1093
|
+
const rootSpanAttributes = tracer.getRootSpanAttributes();
|
|
1094
|
+
// We were unable to get attributes, probably OTEL is not enabled
|
|
1095
|
+
if (!rootSpanAttributes) {
|
|
1096
|
+
return;
|
|
1097
|
+
}
|
|
1098
|
+
if (rootSpanAttributes.get('next.span_type') !== next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_9__.BaseServerSpan.handleRequest) {
|
|
1099
|
+
console.warn(`Unexpected root span type '${rootSpanAttributes.get('next.span_type')}'. Please report this Next.js issue https://github.com/vercel/next.js`);
|
|
1100
|
+
return;
|
|
1101
|
+
}
|
|
1102
|
+
const route = rootSpanAttributes.get('next.route') || normalizedSrcPage;
|
|
1103
|
+
const name = `${method} ${route}`;
|
|
1104
|
+
currentSpan.setAttributes({
|
|
1105
|
+
'next.route': route,
|
|
1106
|
+
'http.route': route,
|
|
1107
|
+
'next.span_name': name
|
|
1108
|
+
});
|
|
1109
|
+
currentSpan.updateName(name);
|
|
1110
|
+
// Propagate http.route to the parent span if one exists (e.g.
|
|
1111
|
+
// a platform-created HTTP span in adapter deployments).
|
|
1112
|
+
if (parentSpan && parentSpan !== currentSpan) {
|
|
1113
|
+
parentSpan.setAttribute('http.route', route);
|
|
1114
|
+
parentSpan.updateName(name);
|
|
1115
|
+
}
|
|
1116
|
+
})();
|
|
1108
1117
|
}
|
|
1118
|
+
};
|
|
1119
|
+
// TODO: activeSpan code path is for when wrapped by
|
|
1120
|
+
// next-server can be removed when this is no longer used
|
|
1121
|
+
if (isWrappedByNextServer && activeSpan) {
|
|
1122
|
+
await handleResponse(activeSpan, undefined);
|
|
1123
|
+
} else {
|
|
1124
|
+
let parentSpan = tracer.getActiveScopeSpan();
|
|
1125
|
+
await tracer.withPropagatedContext(req.headers, ()=>tracer.trace(next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_9__.BaseServerSpan.handleRequest, {
|
|
1126
|
+
spanName: `${method} ${srcPage}`,
|
|
1127
|
+
kind: next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.SpanKind.SERVER,
|
|
1128
|
+
attributes: {
|
|
1129
|
+
'http.method': method,
|
|
1130
|
+
'http.target': req.url
|
|
1131
|
+
}
|
|
1132
|
+
}, (span)=>handleResponse(span, parentSpan)), undefined, !isWrappedByNextServer);
|
|
1109
1133
|
}
|
|
1110
1134
|
}
|
|
1111
1135
|
|
|
1112
|
-
//# sourceMappingURL=
|
|
1113
|
-
|
|
1114
|
-
/***/ }),
|
|
1115
|
-
|
|
1116
|
-
/***/ 92632:
|
|
1117
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1118
|
-
|
|
1119
|
-
__webpack_require__.r(__webpack_exports__);
|
|
1120
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1121
|
-
/* harmony export */ POST: () => (/* binding */ POST)
|
|
1122
|
-
/* harmony export */ });
|
|
1123
|
-
/* harmony import */ var _lib_api_extension_turn__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(51903);
|
|
1124
|
-
|
|
1125
|
-
/**
|
|
1126
|
-
* @public-internal — browser-extension fill request.
|
|
1127
|
-
*/ async function POST(req) {
|
|
1128
|
-
return (0,_lib_api_extension_turn__WEBPACK_IMPORTED_MODULE_0__/* .handleExtensionTurn */ .dT)("fill", req);
|
|
1129
|
-
}
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
/***/ }),
|
|
1133
|
-
|
|
1134
|
-
/***/ 94735:
|
|
1135
|
-
/***/ ((module) => {
|
|
1136
|
+
//# sourceMappingURL=app-route.js.map
|
|
1136
1137
|
|
|
1137
|
-
module.exports = require("events");
|
|
1138
1138
|
|
|
1139
1139
|
/***/ }),
|
|
1140
1140
|
|
|
@@ -1152,7 +1152,7 @@ module.exports = import("@huggingface/transformers");;
|
|
|
1152
1152
|
var __webpack_require__ = require("../../../../../webpack-runtime.js");
|
|
1153
1153
|
__webpack_require__.C(exports);
|
|
1154
1154
|
var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
|
|
1155
|
-
var __webpack_exports__ = __webpack_require__.X(0, [2970,7377,7981,513,6299,563,8808,7547,4992,46,3042,3566,2068,4377,1638,5585,3524,
|
|
1155
|
+
var __webpack_exports__ = __webpack_require__.X(0, [2970,7377,7981,513,6299,563,8808,7547,4992,46,3042,3566,2068,4377,1638,5585,9304,3524,3175,6142,540,4189,4955,5908,5120,1388], () => (__webpack_exec__(98037)));
|
|
1156
1156
|
module.exports = __webpack_exports__;
|
|
1157
1157
|
|
|
1158
1158
|
})();
|