@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
|
@@ -95,584 +95,140 @@ const DEFAULT_HOT_TURN_LIMIT = 12;
|
|
|
95
95
|
|
|
96
96
|
/***/ }),
|
|
97
97
|
|
|
98
|
-
/***/
|
|
99
|
-
/***/ ((
|
|
98
|
+
/***/ 27910:
|
|
99
|
+
/***/ ((module) => {
|
|
100
100
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
/* 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__);
|
|
117
|
-
/* harmony import */ var next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(34775);
|
|
118
|
-
/* 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__);
|
|
119
|
-
/* harmony import */ var next_dist_server_app_render_manifests_singleton__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(24235);
|
|
120
|
-
/* 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__);
|
|
121
|
-
/* harmony import */ var next_dist_shared_lib_router_utils_app_paths__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(261);
|
|
122
|
-
/* 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__);
|
|
123
|
-
/* harmony import */ var next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(54365);
|
|
124
|
-
/* 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__);
|
|
125
|
-
/* harmony import */ var next_dist_server_web_spec_extension_adapters_next_request__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(90771);
|
|
126
|
-
/* 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__);
|
|
127
|
-
/* harmony import */ var next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(73461);
|
|
128
|
-
/* 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__);
|
|
129
|
-
/* harmony import */ var next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(67798);
|
|
130
|
-
/* harmony import */ var next_dist_server_send_response__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(92280);
|
|
131
|
-
/* harmony import */ var next_dist_server_web_utils__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(62018);
|
|
132
|
-
/* 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__);
|
|
133
|
-
/* harmony import */ var next_dist_server_lib_cache_control__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(45696);
|
|
134
|
-
/* harmony import */ var next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(47929);
|
|
135
|
-
/* harmony import */ var next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__);
|
|
136
|
-
/* harmony import */ var next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(86439);
|
|
137
|
-
/* 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__);
|
|
138
|
-
/* harmony import */ var next_dist_server_lib_route_cache_key__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(10246);
|
|
139
|
-
/* 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__);
|
|
140
|
-
/* harmony import */ var next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(37527);
|
|
141
|
-
/* 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__);
|
|
101
|
+
module.exports = require("stream");
|
|
102
|
+
|
|
103
|
+
/***/ }),
|
|
104
|
+
|
|
105
|
+
/***/ 28354:
|
|
106
|
+
/***/ ((module) => {
|
|
107
|
+
|
|
108
|
+
module.exports = require("util");
|
|
109
|
+
|
|
110
|
+
/***/ }),
|
|
111
|
+
|
|
112
|
+
/***/ 29021:
|
|
113
|
+
/***/ ((module) => {
|
|
114
|
+
|
|
115
|
+
module.exports = require("fs");
|
|
142
116
|
|
|
117
|
+
/***/ }),
|
|
143
118
|
|
|
119
|
+
/***/ 29294:
|
|
120
|
+
/***/ ((module) => {
|
|
144
121
|
|
|
122
|
+
module.exports = require("next/dist/server/app-render/work-async-storage.external.js");
|
|
145
123
|
|
|
124
|
+
/***/ }),
|
|
146
125
|
|
|
126
|
+
/***/ 31421:
|
|
127
|
+
/***/ ((module) => {
|
|
147
128
|
|
|
129
|
+
module.exports = require("node:child_process");
|
|
148
130
|
|
|
131
|
+
/***/ }),
|
|
149
132
|
|
|
133
|
+
/***/ 33873:
|
|
134
|
+
/***/ ((module) => {
|
|
150
135
|
|
|
136
|
+
module.exports = require("path");
|
|
151
137
|
|
|
138
|
+
/***/ }),
|
|
152
139
|
|
|
140
|
+
/***/ 37067:
|
|
141
|
+
/***/ ((module) => {
|
|
153
142
|
|
|
143
|
+
module.exports = require("node:http");
|
|
154
144
|
|
|
145
|
+
/***/ }),
|
|
155
146
|
|
|
147
|
+
/***/ 38522:
|
|
148
|
+
/***/ ((module) => {
|
|
156
149
|
|
|
150
|
+
module.exports = require("node:zlib");
|
|
157
151
|
|
|
152
|
+
/***/ }),
|
|
158
153
|
|
|
154
|
+
/***/ 39947:
|
|
155
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
159
156
|
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
// ensureUserland() awaits before the first request is handled.
|
|
182
|
-
userland: ()=>__webpack_require__(65581),
|
|
183
|
-
// In Turbopack dev mode, also provide a synchronous per-request getter so
|
|
184
|
-
// server HMR updates are picked up without re-executing the entry chunk.
|
|
185
|
-
// Using require() (synchronous) avoids adding async overhead that would be
|
|
186
|
-
// incorrectly attributed to application-code time in devRequestTiming.
|
|
187
|
-
... false ? 0 : {}
|
|
188
|
-
});
|
|
189
|
-
// Pull out the exports that we need to expose from the module. This should
|
|
190
|
-
// be eliminated when we've moved the other routes to the new format. These
|
|
191
|
-
// are used to hook into the route.
|
|
192
|
-
const { workAsyncStorage, workUnitAsyncStorage, serverHooks } = routeModule;
|
|
193
|
-
function patchFetch() {
|
|
194
|
-
return (0,next_dist_server_lib_patch_fetch__WEBPACK_IMPORTED_MODULE_2__.patchFetch)({
|
|
195
|
-
workAsyncStorage,
|
|
196
|
-
workUnitAsyncStorage
|
|
157
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
158
|
+
/* harmony export */ Bm: () => (/* binding */ cachedJson),
|
|
159
|
+
/* harmony export */ HN: () => (/* binding */ notFoundResponse),
|
|
160
|
+
/* harmony export */ Jb: () => (/* binding */ validateBody),
|
|
161
|
+
/* harmony export */ K2: () => (/* binding */ createdResponse),
|
|
162
|
+
/* harmony export */ Ng: () => (/* binding */ noStoreJson),
|
|
163
|
+
/* harmony export */ yj: () => (/* binding */ errorResponse)
|
|
164
|
+
/* harmony export */ });
|
|
165
|
+
/* harmony import */ var next_server__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23211);
|
|
166
|
+
// Shared HTTP response builders for app/api/v1/** route handlers.
|
|
167
|
+
//
|
|
168
|
+
// Goal: every error/success payload across the v1 surface has the same
|
|
169
|
+
// shape. Before this lived inline, response bodies drifted —
|
|
170
|
+
// `{error: "x"}` vs `{message: "x"}`, 400 vs 422 for the same condition,
|
|
171
|
+
// some routes returned Zod's raw issue array, others stringified it.
|
|
172
|
+
|
|
173
|
+
function errorResponse(message, status = 400) {
|
|
174
|
+
return next_server__WEBPACK_IMPORTED_MODULE_0__.NextResponse.json({
|
|
175
|
+
error: message
|
|
176
|
+
}, {
|
|
177
|
+
status
|
|
197
178
|
});
|
|
198
179
|
}
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
(0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.addRequestMeta)(req, 'devRequestTimingInternalsEnd', process.hrtime.bigint());
|
|
206
|
-
}
|
|
207
|
-
let srcPage = "/api/v1/bridges/route";
|
|
208
|
-
// turbopack doesn't normalize `/index` in the page name
|
|
209
|
-
// so we need to to process dynamic routes properly
|
|
210
|
-
// TODO: fix turbopack providing differing value from webpack
|
|
211
|
-
if (false) {} else if (srcPage === '/index') {
|
|
212
|
-
// we always normalize /index specifically
|
|
213
|
-
srcPage = '/';
|
|
214
|
-
}
|
|
215
|
-
const multiZoneDraftMode = false;
|
|
216
|
-
const prepareResult = await routeModule.prepare(req, res, {
|
|
217
|
-
srcPage,
|
|
218
|
-
multiZoneDraftMode
|
|
180
|
+
function notFoundResponse(message = "Not found") {
|
|
181
|
+
return errorResponse(message, 404);
|
|
182
|
+
}
|
|
183
|
+
function createdResponse(data) {
|
|
184
|
+
return next_server__WEBPACK_IMPORTED_MODULE_0__.NextResponse.json(data, {
|
|
185
|
+
status: 201
|
|
219
186
|
});
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
187
|
+
}
|
|
188
|
+
// Wrap a 200 JSON response with a private Cache-Control header. Use on safe
|
|
189
|
+
// GET endpoints that serve user-scoped data the client refetches often (panel
|
|
190
|
+
// mounts, navigation back/forward) but mutates rarely. The TTL is short
|
|
191
|
+
// enough that explicit mutations — which patch the client-side ApiClient
|
|
192
|
+
// cache in place — stay observably consistent without an extra roundtrip.
|
|
193
|
+
//
|
|
194
|
+
// swrSeconds (optional): stale-while-revalidate window. When set, the browser
|
|
195
|
+
// serves the cached response immediately and refreshes in the background,
|
|
196
|
+
// making navigation feel instant. Use for data that can tolerate brief
|
|
197
|
+
// staleness (tool list, agent configs, model list). Omit for real-time data
|
|
198
|
+
// (dashboard metrics, credential state).
|
|
199
|
+
function cachedJson(data, maxAgeSeconds, swrSeconds) {
|
|
200
|
+
const swr = swrSeconds ? `, stale-while-revalidate=${swrSeconds}` : "";
|
|
201
|
+
return next_server__WEBPACK_IMPORTED_MODULE_0__.NextResponse.json(data, {
|
|
202
|
+
headers: {
|
|
203
|
+
"Cache-Control": `private, max-age=${maxAgeSeconds}${swr}`
|
|
237
204
|
}
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
}
|
|
247
|
-
throw new next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_15__.NoFallbackError();
|
|
248
|
-
}
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
// Use for endpoints whose response contains live state that must never be
|
|
208
|
+
// served from cache — credentials, connection status, live config values.
|
|
209
|
+
function noStoreJson(data) {
|
|
210
|
+
return next_server__WEBPACK_IMPORTED_MODULE_0__.NextResponse.json(data, {
|
|
211
|
+
headers: {
|
|
212
|
+
"Cache-Control": "no-store"
|
|
249
213
|
}
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
// Validate a JSON request body against a zod schema.
|
|
217
|
+
// Returns either the parsed data or a 400 NextResponse explaining the issue.
|
|
218
|
+
// Caller pattern:
|
|
219
|
+
// const parsed = await validateBody(req, Schema);
|
|
220
|
+
// if (parsed instanceof NextResponse) return parsed;
|
|
221
|
+
// // use parsed.field
|
|
222
|
+
async function validateBody(req, schema) {
|
|
223
|
+
let raw;
|
|
224
|
+
try {
|
|
225
|
+
raw = await req.json();
|
|
226
|
+
} catch {
|
|
227
|
+
return errorResponse("Request body must be valid JSON", 400);
|
|
250
228
|
}
|
|
251
|
-
|
|
252
|
-
if (
|
|
253
|
-
|
|
254
|
-
// ensure /index and / is normalized to one key
|
|
255
|
-
cacheKey = cacheKey === '/index' ? '/' : cacheKey;
|
|
256
|
-
}
|
|
257
|
-
// Before rendering (which initializes component tree modules), we have to
|
|
258
|
-
// set the reference manifests to our global store so Server Action's
|
|
259
|
-
// encryption util can access to them at the top level of the page module.
|
|
260
|
-
if (serverActionsManifest && clientReferenceManifest) {
|
|
261
|
-
(0,next_dist_server_app_render_manifests_singleton__WEBPACK_IMPORTED_MODULE_5__.setManifestsSingleton)({
|
|
262
|
-
page: srcPage,
|
|
263
|
-
clientReferenceManifest,
|
|
264
|
-
serverActionsManifest
|
|
265
|
-
});
|
|
266
|
-
}
|
|
267
|
-
const method = req.method || 'GET';
|
|
268
|
-
const tracer = (0,next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.getTracer)();
|
|
269
|
-
const activeSpan = tracer.getActiveScopeSpan();
|
|
270
|
-
const isWrappedByNextServer = Boolean(routerServerContext == null ? void 0 : routerServerContext.isWrappedByNextServer);
|
|
271
|
-
const isMinimalMode = Boolean((0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.getRequestMeta)(req, 'minimalMode'));
|
|
272
|
-
const incrementalCache = (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.getRequestMeta)(req, 'incrementalCache') || await routeModule.getIncrementalCache(req, nextConfig, previewProps, prerenderManifest, isMinimalMode);
|
|
273
|
-
incrementalCache == null ? void 0 : incrementalCache.resetRequestCache();
|
|
274
|
-
globalThis.__incrementalCache = incrementalCache;
|
|
275
|
-
const context = {
|
|
276
|
-
params,
|
|
277
|
-
previewProps,
|
|
278
|
-
renderOpts: {
|
|
279
|
-
experimental: {
|
|
280
|
-
authInterrupts: Boolean(nextConfig.experimental.authInterrupts),
|
|
281
|
-
useCacheTimeout: nextConfig.experimental.useCacheTimeout,
|
|
282
|
-
durableUseCacheEntries: Boolean(nextConfig.experimental.durableUseCacheEntries)
|
|
283
|
-
},
|
|
284
|
-
cacheComponents: Boolean(nextConfig.cacheComponents),
|
|
285
|
-
validationLevel: nextConfig.experimental.instantInsights.validationLevel,
|
|
286
|
-
isDraftMode,
|
|
287
|
-
incrementalCache,
|
|
288
|
-
hmrRefreshHash: (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.getRequestMeta)(req, 'hmrRefreshHash'),
|
|
289
|
-
cacheLifeProfiles: nextConfig.cacheLife,
|
|
290
|
-
staticPageGenerationTimeout: nextConfig.staticPageGenerationTimeout,
|
|
291
|
-
waitUntil: ctx.waitUntil,
|
|
292
|
-
onClose: (cb)=>{
|
|
293
|
-
res.on('close', cb);
|
|
294
|
-
},
|
|
295
|
-
onAfterTaskError: undefined
|
|
296
|
-
},
|
|
297
|
-
sharedContext: {
|
|
298
|
-
buildId,
|
|
299
|
-
deploymentId
|
|
300
|
-
}
|
|
301
|
-
};
|
|
302
|
-
const nodeNextReq = new next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_7__.NodeNextRequest(req);
|
|
303
|
-
const nodeNextRes = new next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_7__.NodeNextResponse(res);
|
|
304
|
-
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));
|
|
305
|
-
const responseGenerator = async ({ previousCacheEntry })=>{
|
|
306
|
-
try {
|
|
307
|
-
if (!isMinimalMode && isOnDemandRevalidate && revalidateOnlyGenerated && !previousCacheEntry) {
|
|
308
|
-
res.statusCode = 404;
|
|
309
|
-
// on-demand revalidate always sets this header
|
|
310
|
-
res.setHeader('x-nextjs-cache', 'REVALIDATED');
|
|
311
|
-
res.end('This page could not be found');
|
|
312
|
-
return null;
|
|
313
|
-
}
|
|
314
|
-
const response = cacheKey === null ? await routeModule.handle(nextReq, context) : await routeModule.prerender(nextReq, context);
|
|
315
|
-
req.fetchMetrics = context.renderOpts.fetchMetrics;
|
|
316
|
-
let pendingWaitUntil = context.renderOpts.pendingWaitUntil;
|
|
317
|
-
// Attempt using provided waitUntil if available
|
|
318
|
-
// if it's not we fallback to sendResponse's handling
|
|
319
|
-
if (pendingWaitUntil) {
|
|
320
|
-
if (ctx.waitUntil) {
|
|
321
|
-
ctx.waitUntil(pendingWaitUntil);
|
|
322
|
-
pendingWaitUntil = undefined;
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
const cacheTags = context.renderOpts.collectedTags;
|
|
326
|
-
// If the request is for a static response, we can cache it so long
|
|
327
|
-
// as it's not edge.
|
|
328
|
-
if (isIsr) {
|
|
329
|
-
const blob = await response.blob();
|
|
330
|
-
// Copy the headers from the response.
|
|
331
|
-
const headers = (0,next_dist_server_web_utils__WEBPACK_IMPORTED_MODULE_12__.toNodeOutgoingHttpHeaders)(response.headers);
|
|
332
|
-
if (cacheTags) {
|
|
333
|
-
headers[next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__.NEXT_CACHE_TAGS_HEADER] = cacheTags;
|
|
334
|
-
}
|
|
335
|
-
if (!headers['content-type'] && blob.type) {
|
|
336
|
-
headers['content-type'] = blob.type;
|
|
337
|
-
}
|
|
338
|
-
const revalidate = typeof context.renderOpts.collectedRevalidate === 'undefined' || context.renderOpts.collectedRevalidate >= next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__.INFINITE_CACHE ? false : context.renderOpts.collectedRevalidate;
|
|
339
|
-
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
|
|
340
|
-
// explicit `expire` (e.g. via `cacheLife`). This mirrors the
|
|
341
|
-
// build-time fallback in `build/index.ts` so cache entries
|
|
342
|
-
// and the response Cache-Control header agree on the route's
|
|
343
|
-
// effective expire. Routes that opt out of revalidation
|
|
344
|
-
// (`revalidate: false`) or that are dynamic (`revalidate: 0`)
|
|
345
|
-
// keep `expire: undefined`.
|
|
346
|
-
revalidate !== false && revalidate > 0 ? nextConfig.expireTime : undefined : context.renderOpts.collectedExpire;
|
|
347
|
-
// Create the cache entry for the response.
|
|
348
|
-
const cacheEntry = {
|
|
349
|
-
value: {
|
|
350
|
-
kind: next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__.CachedRouteKind.APP_ROUTE,
|
|
351
|
-
status: response.status,
|
|
352
|
-
body: Buffer.from(await blob.arrayBuffer()),
|
|
353
|
-
headers
|
|
354
|
-
},
|
|
355
|
-
cacheControl: {
|
|
356
|
-
revalidate,
|
|
357
|
-
expire
|
|
358
|
-
}
|
|
359
|
-
};
|
|
360
|
-
return cacheEntry;
|
|
361
|
-
} else {
|
|
362
|
-
// send response without caching if not ISR
|
|
363
|
-
await (0,next_dist_server_send_response__WEBPACK_IMPORTED_MODULE_11__/* .sendResponse */ .I)(nodeNextReq, nodeNextRes, response, pendingWaitUntil);
|
|
364
|
-
return null;
|
|
365
|
-
}
|
|
366
|
-
} catch (err) {
|
|
367
|
-
// if this is a background revalidate we need to report
|
|
368
|
-
// the request error here as it won't be bubbled
|
|
369
|
-
if (previousCacheEntry == null ? void 0 : previousCacheEntry.isStale) {
|
|
370
|
-
const silenceLog = false;
|
|
371
|
-
await routeModule.onRequestError(req, err, {
|
|
372
|
-
routerKind: 'App Router',
|
|
373
|
-
routePath: srcPage,
|
|
374
|
-
routeType: 'route',
|
|
375
|
-
revalidateReason: (0,next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_10__.getRevalidateReason)({
|
|
376
|
-
isStaticGeneration: cacheKey !== null,
|
|
377
|
-
isOnDemandRevalidate
|
|
378
|
-
})
|
|
379
|
-
}, silenceLog, routerServerContext);
|
|
380
|
-
}
|
|
381
|
-
throw err;
|
|
382
|
-
}
|
|
383
|
-
};
|
|
384
|
-
const handleResponse = async (currentSpan, parentSpan)=>{
|
|
385
|
-
try {
|
|
386
|
-
var _cacheEntry_value;
|
|
387
|
-
const cacheEntry = await routeModule.handleResponse({
|
|
388
|
-
req,
|
|
389
|
-
nextConfig,
|
|
390
|
-
cacheKey,
|
|
391
|
-
routeKind: next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__.RouteKind.APP_ROUTE,
|
|
392
|
-
isFallback: false,
|
|
393
|
-
previewProps,
|
|
394
|
-
prerenderManifest,
|
|
395
|
-
isRoutePPREnabled: false,
|
|
396
|
-
isOnDemandRevalidate,
|
|
397
|
-
revalidateOnlyGenerated,
|
|
398
|
-
responseGenerator,
|
|
399
|
-
waitUntil: ctx.waitUntil,
|
|
400
|
-
isMinimalMode
|
|
401
|
-
});
|
|
402
|
-
if (cacheEntry !== null && 'error' in cacheEntry) {
|
|
403
|
-
throw cacheEntry.error;
|
|
404
|
-
}
|
|
405
|
-
// we don't create a cacheEntry for ISR
|
|
406
|
-
if (!isIsr) {
|
|
407
|
-
return;
|
|
408
|
-
}
|
|
409
|
-
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) {
|
|
410
|
-
var _cacheEntry_value1;
|
|
411
|
-
throw new Error(`Invariant: app-route received invalid cache entry ${cacheEntry == null ? void 0 : (_cacheEntry_value1 = cacheEntry.value) == null ? void 0 : _cacheEntry_value1.kind}`);
|
|
412
|
-
}
|
|
413
|
-
if (!isMinimalMode) {
|
|
414
|
-
res.setHeader('x-nextjs-cache', isOnDemandRevalidate ? 'REVALIDATED' : cacheEntry.isMiss ? 'MISS' : cacheEntry.isStale ? 'STALE' : 'HIT');
|
|
415
|
-
}
|
|
416
|
-
// Draft mode should never be cached
|
|
417
|
-
if (isDraftMode) {
|
|
418
|
-
res.setHeader('Cache-Control', 'private, no-cache, no-store, max-age=0, must-revalidate');
|
|
419
|
-
}
|
|
420
|
-
const headers = (0,next_dist_server_web_utils__WEBPACK_IMPORTED_MODULE_12__.fromNodeOutgoingHttpHeaders)(cacheEntry.value.headers);
|
|
421
|
-
if (!(isMinimalMode && isIsr)) {
|
|
422
|
-
headers.delete(next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__.NEXT_CACHE_TAGS_HEADER);
|
|
423
|
-
}
|
|
424
|
-
// If cache control is already set on the response we don't
|
|
425
|
-
// override it to allow users to customize it via next.config
|
|
426
|
-
if (cacheEntry.cacheControl && !res.getHeader('Cache-Control') && !headers.get('Cache-Control')) {
|
|
427
|
-
headers.set('Cache-Control', (0,next_dist_server_lib_cache_control__WEBPACK_IMPORTED_MODULE_13__.getCacheControlHeader)(cacheEntry.cacheControl));
|
|
428
|
-
}
|
|
429
|
-
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'.
|
|
430
|
-
new Response(cacheEntry.value.body, {
|
|
431
|
-
headers,
|
|
432
|
-
status: cacheEntry.value.status || 200
|
|
433
|
-
}));
|
|
434
|
-
return;
|
|
435
|
-
} catch (err) {
|
|
436
|
-
if (!(err instanceof next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_15__.NoFallbackError)) {
|
|
437
|
-
const silenceLog = false;
|
|
438
|
-
await routeModule.onRequestError(req, err, {
|
|
439
|
-
routerKind: 'App Router',
|
|
440
|
-
routePath: normalizedSrcPage,
|
|
441
|
-
routeType: 'route',
|
|
442
|
-
revalidateReason: (0,next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_10__.getRevalidateReason)({
|
|
443
|
-
isStaticGeneration: cacheKey !== null,
|
|
444
|
-
isOnDemandRevalidate
|
|
445
|
-
})
|
|
446
|
-
}, silenceLog, routerServerContext);
|
|
447
|
-
}
|
|
448
|
-
// rethrow so that we can handle serving error page
|
|
449
|
-
// If this is during static generation, throw the error again.
|
|
450
|
-
if (isIsr) throw err;
|
|
451
|
-
// Otherwise, send a 500 response unless the original response has
|
|
452
|
-
// already committed. In that case, preserve its status code for
|
|
453
|
-
// telemetry while still recording the failure and terminating a response
|
|
454
|
-
// that the failed pipeline left open.
|
|
455
|
-
if (res.headersSent) {
|
|
456
|
-
if (currentSpan) {
|
|
457
|
-
const error = err instanceof Error ? err : new Error('Unknown app route error');
|
|
458
|
-
currentSpan.recordException(error);
|
|
459
|
-
currentSpan.setStatus({
|
|
460
|
-
code: next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.SpanStatusCode.ERROR,
|
|
461
|
-
message: error.message
|
|
462
|
-
});
|
|
463
|
-
currentSpan.setAttribute('error.type', error.name);
|
|
464
|
-
}
|
|
465
|
-
if (!res.writableEnded && !res.destroyed) {
|
|
466
|
-
res.end();
|
|
467
|
-
}
|
|
468
|
-
} else {
|
|
469
|
-
await (0,next_dist_server_send_response__WEBPACK_IMPORTED_MODULE_11__/* .sendResponse */ .I)(nodeNextReq, nodeNextRes, new Response(null, {
|
|
470
|
-
status: 500
|
|
471
|
-
}));
|
|
472
|
-
}
|
|
473
|
-
return;
|
|
474
|
-
} finally{
|
|
475
|
-
;
|
|
476
|
-
(()=>{
|
|
477
|
-
if (!currentSpan) {
|
|
478
|
-
return;
|
|
479
|
-
}
|
|
480
|
-
let statusCode = res.statusCode;
|
|
481
|
-
currentSpan.setAttributes({
|
|
482
|
-
'http.status_code': statusCode,
|
|
483
|
-
'next.rsc': false
|
|
484
|
-
});
|
|
485
|
-
if (statusCode && statusCode >= 500) {
|
|
486
|
-
// For 5xx status codes: SHOULD be set to 'Error' span status.
|
|
487
|
-
// x-ref: https://opentelemetry.io/docs/specs/semconv/http/http-spans/#status
|
|
488
|
-
currentSpan.setStatus({
|
|
489
|
-
code: next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.SpanStatusCode.ERROR
|
|
490
|
-
});
|
|
491
|
-
// For span status 'Error', SHOULD set 'error.type' attribute.
|
|
492
|
-
currentSpan.setAttribute('error.type', statusCode.toString());
|
|
493
|
-
}
|
|
494
|
-
const rootSpanAttributes = tracer.getRootSpanAttributes();
|
|
495
|
-
// We were unable to get attributes, probably OTEL is not enabled
|
|
496
|
-
if (!rootSpanAttributes) {
|
|
497
|
-
return;
|
|
498
|
-
}
|
|
499
|
-
if (rootSpanAttributes.get('next.span_type') !== next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_9__.BaseServerSpan.handleRequest) {
|
|
500
|
-
console.warn(`Unexpected root span type '${rootSpanAttributes.get('next.span_type')}'. Please report this Next.js issue https://github.com/vercel/next.js`);
|
|
501
|
-
return;
|
|
502
|
-
}
|
|
503
|
-
const route = rootSpanAttributes.get('next.route') || normalizedSrcPage;
|
|
504
|
-
const name = `${method} ${route}`;
|
|
505
|
-
currentSpan.setAttributes({
|
|
506
|
-
'next.route': route,
|
|
507
|
-
'http.route': route,
|
|
508
|
-
'next.span_name': name
|
|
509
|
-
});
|
|
510
|
-
currentSpan.updateName(name);
|
|
511
|
-
// Propagate http.route to the parent span if one exists (e.g.
|
|
512
|
-
// a platform-created HTTP span in adapter deployments).
|
|
513
|
-
if (parentSpan && parentSpan !== currentSpan) {
|
|
514
|
-
parentSpan.setAttribute('http.route', route);
|
|
515
|
-
parentSpan.updateName(name);
|
|
516
|
-
}
|
|
517
|
-
})();
|
|
518
|
-
}
|
|
519
|
-
};
|
|
520
|
-
// TODO: activeSpan code path is for when wrapped by
|
|
521
|
-
// next-server can be removed when this is no longer used
|
|
522
|
-
if (isWrappedByNextServer && activeSpan) {
|
|
523
|
-
await handleResponse(activeSpan, undefined);
|
|
524
|
-
} else {
|
|
525
|
-
let parentSpan = tracer.getActiveScopeSpan();
|
|
526
|
-
await tracer.withPropagatedContext(req.headers, ()=>tracer.trace(next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_9__.BaseServerSpan.handleRequest, {
|
|
527
|
-
spanName: `${method} ${srcPage}`,
|
|
528
|
-
kind: next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.SpanKind.SERVER,
|
|
529
|
-
attributes: {
|
|
530
|
-
'http.method': method,
|
|
531
|
-
'http.target': req.url
|
|
532
|
-
}
|
|
533
|
-
}, (span)=>handleResponse(span, parentSpan)), undefined, !isWrappedByNextServer);
|
|
534
|
-
}
|
|
535
|
-
}
|
|
536
|
-
|
|
537
|
-
//# sourceMappingURL=app-route.js.map
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
/***/ }),
|
|
541
|
-
|
|
542
|
-
/***/ 27910:
|
|
543
|
-
/***/ ((module) => {
|
|
544
|
-
|
|
545
|
-
module.exports = require("stream");
|
|
546
|
-
|
|
547
|
-
/***/ }),
|
|
548
|
-
|
|
549
|
-
/***/ 28354:
|
|
550
|
-
/***/ ((module) => {
|
|
551
|
-
|
|
552
|
-
module.exports = require("util");
|
|
553
|
-
|
|
554
|
-
/***/ }),
|
|
555
|
-
|
|
556
|
-
/***/ 29021:
|
|
557
|
-
/***/ ((module) => {
|
|
558
|
-
|
|
559
|
-
module.exports = require("fs");
|
|
560
|
-
|
|
561
|
-
/***/ }),
|
|
562
|
-
|
|
563
|
-
/***/ 29294:
|
|
564
|
-
/***/ ((module) => {
|
|
565
|
-
|
|
566
|
-
module.exports = require("next/dist/server/app-render/work-async-storage.external.js");
|
|
567
|
-
|
|
568
|
-
/***/ }),
|
|
569
|
-
|
|
570
|
-
/***/ 31421:
|
|
571
|
-
/***/ ((module) => {
|
|
572
|
-
|
|
573
|
-
module.exports = require("node:child_process");
|
|
574
|
-
|
|
575
|
-
/***/ }),
|
|
576
|
-
|
|
577
|
-
/***/ 33873:
|
|
578
|
-
/***/ ((module) => {
|
|
579
|
-
|
|
580
|
-
module.exports = require("path");
|
|
581
|
-
|
|
582
|
-
/***/ }),
|
|
583
|
-
|
|
584
|
-
/***/ 37067:
|
|
585
|
-
/***/ ((module) => {
|
|
586
|
-
|
|
587
|
-
module.exports = require("node:http");
|
|
588
|
-
|
|
589
|
-
/***/ }),
|
|
590
|
-
|
|
591
|
-
/***/ 38522:
|
|
592
|
-
/***/ ((module) => {
|
|
593
|
-
|
|
594
|
-
module.exports = require("node:zlib");
|
|
595
|
-
|
|
596
|
-
/***/ }),
|
|
597
|
-
|
|
598
|
-
/***/ 39947:
|
|
599
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
600
|
-
|
|
601
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
602
|
-
/* harmony export */ Bm: () => (/* binding */ cachedJson),
|
|
603
|
-
/* harmony export */ HN: () => (/* binding */ notFoundResponse),
|
|
604
|
-
/* harmony export */ Jb: () => (/* binding */ validateBody),
|
|
605
|
-
/* harmony export */ K2: () => (/* binding */ createdResponse),
|
|
606
|
-
/* harmony export */ Ng: () => (/* binding */ noStoreJson),
|
|
607
|
-
/* harmony export */ yj: () => (/* binding */ errorResponse)
|
|
608
|
-
/* harmony export */ });
|
|
609
|
-
/* harmony import */ var next_server__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23211);
|
|
610
|
-
// Shared HTTP response builders for app/api/v1/** route handlers.
|
|
611
|
-
//
|
|
612
|
-
// Goal: every error/success payload across the v1 surface has the same
|
|
613
|
-
// shape. Before this lived inline, response bodies drifted —
|
|
614
|
-
// `{error: "x"}` vs `{message: "x"}`, 400 vs 422 for the same condition,
|
|
615
|
-
// some routes returned Zod's raw issue array, others stringified it.
|
|
616
|
-
|
|
617
|
-
function errorResponse(message, status = 400) {
|
|
618
|
-
return next_server__WEBPACK_IMPORTED_MODULE_0__.NextResponse.json({
|
|
619
|
-
error: message
|
|
620
|
-
}, {
|
|
621
|
-
status
|
|
622
|
-
});
|
|
623
|
-
}
|
|
624
|
-
function notFoundResponse(message = "Not found") {
|
|
625
|
-
return errorResponse(message, 404);
|
|
626
|
-
}
|
|
627
|
-
function createdResponse(data) {
|
|
628
|
-
return next_server__WEBPACK_IMPORTED_MODULE_0__.NextResponse.json(data, {
|
|
629
|
-
status: 201
|
|
630
|
-
});
|
|
631
|
-
}
|
|
632
|
-
// Wrap a 200 JSON response with a private Cache-Control header. Use on safe
|
|
633
|
-
// GET endpoints that serve user-scoped data the client refetches often (panel
|
|
634
|
-
// mounts, navigation back/forward) but mutates rarely. The TTL is short
|
|
635
|
-
// enough that explicit mutations — which patch the client-side ApiClient
|
|
636
|
-
// cache in place — stay observably consistent without an extra roundtrip.
|
|
637
|
-
//
|
|
638
|
-
// swrSeconds (optional): stale-while-revalidate window. When set, the browser
|
|
639
|
-
// serves the cached response immediately and refreshes in the background,
|
|
640
|
-
// making navigation feel instant. Use for data that can tolerate brief
|
|
641
|
-
// staleness (tool list, agent configs, model list). Omit for real-time data
|
|
642
|
-
// (dashboard metrics, credential state).
|
|
643
|
-
function cachedJson(data, maxAgeSeconds, swrSeconds) {
|
|
644
|
-
const swr = swrSeconds ? `, stale-while-revalidate=${swrSeconds}` : "";
|
|
645
|
-
return next_server__WEBPACK_IMPORTED_MODULE_0__.NextResponse.json(data, {
|
|
646
|
-
headers: {
|
|
647
|
-
"Cache-Control": `private, max-age=${maxAgeSeconds}${swr}`
|
|
648
|
-
}
|
|
649
|
-
});
|
|
650
|
-
}
|
|
651
|
-
// Use for endpoints whose response contains live state that must never be
|
|
652
|
-
// served from cache — credentials, connection status, live config values.
|
|
653
|
-
function noStoreJson(data) {
|
|
654
|
-
return next_server__WEBPACK_IMPORTED_MODULE_0__.NextResponse.json(data, {
|
|
655
|
-
headers: {
|
|
656
|
-
"Cache-Control": "no-store"
|
|
657
|
-
}
|
|
658
|
-
});
|
|
659
|
-
}
|
|
660
|
-
// Validate a JSON request body against a zod schema.
|
|
661
|
-
// Returns either the parsed data or a 400 NextResponse explaining the issue.
|
|
662
|
-
// Caller pattern:
|
|
663
|
-
// const parsed = await validateBody(req, Schema);
|
|
664
|
-
// if (parsed instanceof NextResponse) return parsed;
|
|
665
|
-
// // use parsed.field
|
|
666
|
-
async function validateBody(req, schema) {
|
|
667
|
-
let raw;
|
|
668
|
-
try {
|
|
669
|
-
raw = await req.json();
|
|
670
|
-
} catch {
|
|
671
|
-
return errorResponse("Request body must be valid JSON", 400);
|
|
672
|
-
}
|
|
673
|
-
const parsed = schema.safeParse(raw);
|
|
674
|
-
if (!parsed.success) {
|
|
675
|
-
return errorResponse(parsed.error.issues[0]?.message ?? "invalid body", 400);
|
|
229
|
+
const parsed = schema.safeParse(raw);
|
|
230
|
+
if (!parsed.success) {
|
|
231
|
+
return errorResponse(parsed.error.issues[0]?.message ?? "invalid body", 400);
|
|
676
232
|
}
|
|
677
233
|
return parsed.data;
|
|
678
234
|
}
|
|
@@ -817,12 +373,17 @@ function upsertAgentConfigTransaction(input) {
|
|
|
817
373
|
const db = (0,_lib_db__WEBPACK_IMPORTED_MODULE_0__/* .getDb */ .Lf)();
|
|
818
374
|
const existing = getAgentConfig(input.id);
|
|
819
375
|
const created_at = existing?.created_at ?? t;
|
|
820
|
-
const
|
|
376
|
+
const existingMbti = toMbti(existing?.adaptive_mbti);
|
|
377
|
+
const mbti = input.adaptive_mbti ?? existingMbti ?? "INTJ";
|
|
821
378
|
const preset = _lib_agents_adaptive_persona_presets__WEBPACK_IMPORTED_MODULE_2__/* .MBTI_PRESETS */ .e[mbti];
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
const
|
|
379
|
+
// Omitted sliders keep their tuned values; they only fall back to the
|
|
380
|
+
// preset when the type changes or the agent is new. Otherwise every
|
|
381
|
+
// partial update (approved proposals, tool edits) reset them.
|
|
382
|
+
const keepTuned = existing !== null && existing !== undefined && mbti === existingMbti;
|
|
383
|
+
const strength = input.adaptive_persona_strength ?? (keepTuned ? existing.adaptive_persona_strength : preset.strength);
|
|
384
|
+
const empathy = input.adaptive_empathy ?? (keepTuned ? existing.adaptive_empathy : preset.empathy);
|
|
385
|
+
const expressiveness = input.adaptive_expressiveness ?? (keepTuned ? existing.adaptive_expressiveness : preset.expressiveness);
|
|
386
|
+
const verbosity = input.adaptive_verbosity ?? (keepTuned ? existing.adaptive_verbosity : preset.verbosity);
|
|
826
387
|
if (input.is_default) db.prepare("UPDATE agent_configs SET is_default=0").run();
|
|
827
388
|
// harness_id: explicit `undefined` means "keep existing"; explicit `null`
|
|
828
389
|
// means "use the global default". Empty string is normalised to null too,
|
|
@@ -1413,7 +974,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1413
974
|
/* harmony import */ var _lib_stores_bridges__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(78361);
|
|
1414
975
|
/* harmony import */ var _lib_api_serializers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(85678);
|
|
1415
976
|
/* harmony import */ var _lib_api_responses__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(39947);
|
|
1416
|
-
/* harmony import */ var _lib_bridges_registry__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
|
|
977
|
+
/* harmony import */ var _lib_bridges_registry__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(70309);
|
|
1417
978
|
|
|
1418
979
|
|
|
1419
980
|
|
|
@@ -1465,6 +1026,13 @@ module.exports = require("node:path");
|
|
|
1465
1026
|
|
|
1466
1027
|
/***/ }),
|
|
1467
1028
|
|
|
1029
|
+
/***/ 77030:
|
|
1030
|
+
/***/ ((module) => {
|
|
1031
|
+
|
|
1032
|
+
module.exports = require("node:net");
|
|
1033
|
+
|
|
1034
|
+
/***/ }),
|
|
1035
|
+
|
|
1468
1036
|
/***/ 77598:
|
|
1469
1037
|
/***/ ((module) => {
|
|
1470
1038
|
|
|
@@ -1577,158 +1145,602 @@ function bridgeToResponse(r) {
|
|
|
1577
1145
|
updated_at: r.updated_at
|
|
1578
1146
|
};
|
|
1579
1147
|
}
|
|
1580
|
-
function mcpServerToResponse(r) {
|
|
1581
|
-
return {
|
|
1582
|
-
name: r.name,
|
|
1583
|
-
transport: r.transport,
|
|
1584
|
-
spec: (0,_lib_utils_json__WEBPACK_IMPORTED_MODULE_2__/* .parseJsonSafe */ .p)(r.spec, null),
|
|
1585
|
-
enabled: r.enabled === 1,
|
|
1586
|
-
last_error: r.last_error,
|
|
1587
|
-
created_at: r.created_at,
|
|
1588
|
-
updated_at: r.updated_at
|
|
1148
|
+
function mcpServerToResponse(r) {
|
|
1149
|
+
return {
|
|
1150
|
+
name: r.name,
|
|
1151
|
+
transport: r.transport,
|
|
1152
|
+
spec: (0,_lib_utils_json__WEBPACK_IMPORTED_MODULE_2__/* .parseJsonSafe */ .p)(r.spec, null),
|
|
1153
|
+
enabled: r.enabled === 1,
|
|
1154
|
+
last_error: r.last_error,
|
|
1155
|
+
created_at: r.created_at,
|
|
1156
|
+
updated_at: r.updated_at
|
|
1157
|
+
};
|
|
1158
|
+
}
|
|
1159
|
+
/**
|
|
1160
|
+
* Shape a `message_usage` row into the over-the-wire `usage` object the
|
|
1161
|
+
* chat panel's `ContextUsageBar` consumes. Returns `null` for messages
|
|
1162
|
+
* that have no snapshot (user turns and legacy assistant rows recorded
|
|
1163
|
+
* before the per-turn snapshot landed in ADR-0041).
|
|
1164
|
+
*
|
|
1165
|
+
* Anthropic prompt-cache tokens (PR #181 + the cache-fidelity follow-up)
|
|
1166
|
+
* are surfaced as additive fields so future UI work can render a
|
|
1167
|
+
* "served from cache" badge without another wire change. Both are
|
|
1168
|
+
* `null` for rows that predate cache plumbing or for providers that
|
|
1169
|
+
* don't expose a cache breakdown.
|
|
1170
|
+
*/ function messageUsageToResponse(u) {
|
|
1171
|
+
if (!u) return null;
|
|
1172
|
+
return {
|
|
1173
|
+
input_tokens: u.input_tokens,
|
|
1174
|
+
output_tokens: u.output_tokens,
|
|
1175
|
+
hot_tokens: u.hot_tokens,
|
|
1176
|
+
warm_tokens: u.warm_tokens,
|
|
1177
|
+
facts_tokens: u.facts_tokens,
|
|
1178
|
+
overhead_tokens: u.overhead_tokens,
|
|
1179
|
+
hot_budget_tokens: u.hot_budget_tokens,
|
|
1180
|
+
warm_budget_tokens: u.warm_budget_tokens,
|
|
1181
|
+
facts_budget_tokens: u.facts_budget_tokens,
|
|
1182
|
+
context_window_tokens: u.context_window_tokens,
|
|
1183
|
+
cache_creation_input_tokens: u.cache_creation_input_tokens,
|
|
1184
|
+
cache_read_input_tokens: u.cache_read_input_tokens,
|
|
1185
|
+
thinking_tokens: u.thinking_tokens ?? null,
|
|
1186
|
+
cost_usd: u.cost_usd ?? null
|
|
1187
|
+
};
|
|
1188
|
+
}
|
|
1189
|
+
/**
|
|
1190
|
+
* Shape one message row into its over-the-wire form, attaching its
|
|
1191
|
+
* per-turn `usage` snapshot when one exists. Pure data-shaping helper
|
|
1192
|
+
* extracted from the threads GET route so the wire contract has unit
|
|
1193
|
+
* coverage.
|
|
1194
|
+
*/ function messageToResponse(m, usageById) {
|
|
1195
|
+
return {
|
|
1196
|
+
id: m.msg_id,
|
|
1197
|
+
seq: m.seq,
|
|
1198
|
+
role: m.role,
|
|
1199
|
+
content: m.content,
|
|
1200
|
+
created_at: m.created_at,
|
|
1201
|
+
transcript_status: m.transcript_status,
|
|
1202
|
+
status_reason: m.status_reason,
|
|
1203
|
+
tool_events: parseToolEventsForResponse(m.tool_events),
|
|
1204
|
+
category: m.category ?? null,
|
|
1205
|
+
usage: messageUsageToResponse(usageById.get(m.msg_id)),
|
|
1206
|
+
metadata: parseMessageMetadataForResponse(m.metadata)
|
|
1207
|
+
};
|
|
1208
|
+
}
|
|
1209
|
+
/** Tolerant `tool_events` JSON parser shared with the route. Bad JSON
|
|
1210
|
+
* and non-array payloads collapse to `undefined` so the wire shape
|
|
1211
|
+
* always matches the typed client expectation. */ function parseToolEventsForResponse(raw) {
|
|
1212
|
+
if (!raw) return undefined;
|
|
1213
|
+
try {
|
|
1214
|
+
const parsed = JSON.parse(raw);
|
|
1215
|
+
return Array.isArray(parsed) ? parsed : undefined;
|
|
1216
|
+
} catch {
|
|
1217
|
+
return undefined;
|
|
1218
|
+
}
|
|
1219
|
+
}
|
|
1220
|
+
/** Tolerant `metadata` JSON parser. Returns `null` for missing/blank/
|
|
1221
|
+
* malformed/non-object payloads so the wire shape stays a plain object
|
|
1222
|
+
* or null — readers can rely on `metadata?.citations?...` chaining. */ function parseMessageMetadataForResponse(raw) {
|
|
1223
|
+
if (!raw) return null;
|
|
1224
|
+
try {
|
|
1225
|
+
const parsed = JSON.parse(raw);
|
|
1226
|
+
if (!parsed || typeof parsed !== "object" || Array.isArray(parsed)) return null;
|
|
1227
|
+
return parsed;
|
|
1228
|
+
} catch {
|
|
1229
|
+
return null;
|
|
1230
|
+
}
|
|
1231
|
+
}
|
|
1232
|
+
/**
|
|
1233
|
+
* Resolve the bar's 100% baseline. Per-row `context_window_tokens`
|
|
1234
|
+
* (snapshotted at run time) wins so the bar matches the cap the agent
|
|
1235
|
+
* actually applied; legacy rows fall back to the model-config value;
|
|
1236
|
+
* unconfigured agents fall back to the default. Centralised so the
|
|
1237
|
+
* route and the UI share the same precedence rule.
|
|
1238
|
+
*/ function resolveContextWindowTokens(modelConfiguredTokens, defaultTokens) {
|
|
1239
|
+
if (typeof modelConfiguredTokens === "number" && modelConfiguredTokens > 0) {
|
|
1240
|
+
return modelConfiguredTokens;
|
|
1241
|
+
}
|
|
1242
|
+
return defaultTokens;
|
|
1243
|
+
}
|
|
1244
|
+
|
|
1245
|
+
|
|
1246
|
+
/***/ }),
|
|
1247
|
+
|
|
1248
|
+
/***/ 86439:
|
|
1249
|
+
/***/ ((module) => {
|
|
1250
|
+
|
|
1251
|
+
module.exports = require("next/dist/shared/lib/no-fallback-error.external");
|
|
1252
|
+
|
|
1253
|
+
/***/ }),
|
|
1254
|
+
|
|
1255
|
+
/***/ 89793:
|
|
1256
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1257
|
+
|
|
1258
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1259
|
+
/* harmony export */ RX: () => (/* binding */ DEFAULT_HARNESS_ID),
|
|
1260
|
+
/* harmony export */ YX: () => (/* binding */ CUSTOM_HARNESS_ID_PREFIX),
|
|
1261
|
+
/* harmony export */ cX: () => (/* binding */ HARNESS_SECTION_KEYS),
|
|
1262
|
+
/* harmony export */ vf: () => (/* binding */ isBuiltinHarnessId)
|
|
1263
|
+
/* harmony export */ });
|
|
1264
|
+
/* unused harmony exports BUILTIN_HARNESS_ID_PREFIX, SECTION_DISPLAY */
|
|
1265
|
+
const HARNESS_SECTION_KEYS = [
|
|
1266
|
+
"capabilities",
|
|
1267
|
+
"plan_first",
|
|
1268
|
+
"presentation",
|
|
1269
|
+
"citation",
|
|
1270
|
+
"self_config"
|
|
1271
|
+
];
|
|
1272
|
+
const BUILTIN_HARNESS_ID_PREFIX = "builtin:";
|
|
1273
|
+
const CUSTOM_HARNESS_ID_PREFIX = "custom:";
|
|
1274
|
+
const DEFAULT_HARNESS_ID = "builtin:default";
|
|
1275
|
+
function isBuiltinHarnessId(id) {
|
|
1276
|
+
return id.startsWith(BUILTIN_HARNESS_ID_PREFIX);
|
|
1277
|
+
}
|
|
1278
|
+
const SECTION_DISPLAY = {
|
|
1279
|
+
capabilities: {
|
|
1280
|
+
title: "Host capabilities",
|
|
1281
|
+
hint: "What the surrounding app can do — notifications, scheduling, watchers, document indexing."
|
|
1282
|
+
},
|
|
1283
|
+
plan_first: {
|
|
1284
|
+
title: "Plan-first acknowledgment",
|
|
1285
|
+
hint: "Acknowledge-before-acting rules, action principle, anti-fabrication, follow-through."
|
|
1286
|
+
},
|
|
1287
|
+
presentation: {
|
|
1288
|
+
title: "Output formatting",
|
|
1289
|
+
hint: "Markdown / HTML extras, code fences, images, maps, citation refs block."
|
|
1290
|
+
},
|
|
1291
|
+
citation: {
|
|
1292
|
+
title: "Source attribution",
|
|
1293
|
+
hint: "Anti-hallucination rules: every substantive claim must be tagged with its source."
|
|
1294
|
+
},
|
|
1295
|
+
self_config: {
|
|
1296
|
+
title: "Self-configuration proposals",
|
|
1297
|
+
hint: "Lets the agent propose config changes (install MCP, edit agent, set keys) for user approval."
|
|
1298
|
+
}
|
|
1299
|
+
};
|
|
1300
|
+
|
|
1301
|
+
|
|
1302
|
+
/***/ }),
|
|
1303
|
+
|
|
1304
|
+
/***/ 93167:
|
|
1305
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1306
|
+
|
|
1307
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1308
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1309
|
+
/* harmony export */ handler: () => (/* binding */ handler),
|
|
1310
|
+
/* harmony export */ patchFetch: () => (/* binding */ patchFetch),
|
|
1311
|
+
/* harmony export */ routeModule: () => (/* binding */ routeModule),
|
|
1312
|
+
/* harmony export */ serverHooks: () => (/* binding */ serverHooks),
|
|
1313
|
+
/* harmony export */ workAsyncStorage: () => (/* binding */ workAsyncStorage),
|
|
1314
|
+
/* harmony export */ workUnitAsyncStorage: () => (/* binding */ workUnitAsyncStorage)
|
|
1315
|
+
/* harmony export */ });
|
|
1316
|
+
/* harmony import */ var next_dist_server_route_modules_app_route_module_compiled__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(19225);
|
|
1317
|
+
/* 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__);
|
|
1318
|
+
/* harmony import */ var next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(84006);
|
|
1319
|
+
/* harmony import */ var next_dist_server_lib_patch_fetch__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8317);
|
|
1320
|
+
/* 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__);
|
|
1321
|
+
/* harmony import */ var next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(99373);
|
|
1322
|
+
/* 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__);
|
|
1323
|
+
/* harmony import */ var next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(34775);
|
|
1324
|
+
/* 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__);
|
|
1325
|
+
/* harmony import */ var next_dist_server_app_render_manifests_singleton__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(24235);
|
|
1326
|
+
/* 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__);
|
|
1327
|
+
/* harmony import */ var next_dist_shared_lib_router_utils_app_paths__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(261);
|
|
1328
|
+
/* 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__);
|
|
1329
|
+
/* harmony import */ var next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(54365);
|
|
1330
|
+
/* 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__);
|
|
1331
|
+
/* harmony import */ var next_dist_server_web_spec_extension_adapters_next_request__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(90771);
|
|
1332
|
+
/* 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__);
|
|
1333
|
+
/* harmony import */ var next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(73461);
|
|
1334
|
+
/* 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__);
|
|
1335
|
+
/* harmony import */ var next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(67798);
|
|
1336
|
+
/* harmony import */ var next_dist_server_send_response__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(92280);
|
|
1337
|
+
/* harmony import */ var next_dist_server_web_utils__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(62018);
|
|
1338
|
+
/* 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__);
|
|
1339
|
+
/* harmony import */ var next_dist_server_lib_cache_control__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(45696);
|
|
1340
|
+
/* harmony import */ var next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(47929);
|
|
1341
|
+
/* harmony import */ var next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__);
|
|
1342
|
+
/* harmony import */ var next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(86439);
|
|
1343
|
+
/* 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__);
|
|
1344
|
+
/* harmony import */ var next_dist_server_lib_route_cache_key__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(10246);
|
|
1345
|
+
/* 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__);
|
|
1346
|
+
/* harmony import */ var next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(37527);
|
|
1347
|
+
/* 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__);
|
|
1348
|
+
|
|
1349
|
+
|
|
1350
|
+
|
|
1351
|
+
|
|
1352
|
+
|
|
1353
|
+
|
|
1354
|
+
|
|
1355
|
+
|
|
1356
|
+
|
|
1357
|
+
|
|
1358
|
+
|
|
1359
|
+
|
|
1360
|
+
|
|
1361
|
+
|
|
1362
|
+
|
|
1363
|
+
|
|
1364
|
+
|
|
1365
|
+
|
|
1366
|
+
// We inject the nextConfigOutput here so that we can use them in the route
|
|
1367
|
+
// module.
|
|
1368
|
+
const nextConfigOutput = "standalone"
|
|
1369
|
+
const routeModule = new next_dist_server_route_modules_app_route_module_compiled__WEBPACK_IMPORTED_MODULE_0__.AppRouteRouteModule({
|
|
1370
|
+
definition: {
|
|
1371
|
+
kind: next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__.RouteKind.APP_ROUTE,
|
|
1372
|
+
page: "/api/v1/bridges/route",
|
|
1373
|
+
pathname: "/api/v1/bridges",
|
|
1374
|
+
filename: "route",
|
|
1375
|
+
bundlePath: "app/api/v1/bridges/route"
|
|
1376
|
+
},
|
|
1377
|
+
distDir: ".next" || 0,
|
|
1378
|
+
relativeProjectDir: false || '',
|
|
1379
|
+
resolvedPagePath: "/home/runner/work/jarela/jarela/app/api/v1/bridges/route.ts",
|
|
1380
|
+
nextConfigOutput,
|
|
1381
|
+
// The lazy require factory ensures that:
|
|
1382
|
+
// - In dev: devRequestTimingInternalsEnd is set before userland executes,
|
|
1383
|
+
// correctly attributing module load time to application-code rather than
|
|
1384
|
+
// framework internals.
|
|
1385
|
+
// - In all modes: async modules (route files with top-level await) are
|
|
1386
|
+
// handled correctly — require() returns a Promise for such modules, which
|
|
1387
|
+
// ensureUserland() awaits before the first request is handled.
|
|
1388
|
+
userland: ()=>__webpack_require__(65581),
|
|
1389
|
+
// In Turbopack dev mode, also provide a synchronous per-request getter so
|
|
1390
|
+
// server HMR updates are picked up without re-executing the entry chunk.
|
|
1391
|
+
// Using require() (synchronous) avoids adding async overhead that would be
|
|
1392
|
+
// incorrectly attributed to application-code time in devRequestTiming.
|
|
1393
|
+
... false ? 0 : {}
|
|
1394
|
+
});
|
|
1395
|
+
// Pull out the exports that we need to expose from the module. This should
|
|
1396
|
+
// be eliminated when we've moved the other routes to the new format. These
|
|
1397
|
+
// are used to hook into the route.
|
|
1398
|
+
const { workAsyncStorage, workUnitAsyncStorage, serverHooks } = routeModule;
|
|
1399
|
+
function patchFetch() {
|
|
1400
|
+
return (0,next_dist_server_lib_patch_fetch__WEBPACK_IMPORTED_MODULE_2__.patchFetch)({
|
|
1401
|
+
workAsyncStorage,
|
|
1402
|
+
workUnitAsyncStorage
|
|
1403
|
+
});
|
|
1404
|
+
}
|
|
1405
|
+
|
|
1406
|
+
async function handler(req, res, ctx) {
|
|
1407
|
+
if (ctx.requestMeta) {
|
|
1408
|
+
(0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.setRequestMeta)(req, ctx.requestMeta);
|
|
1409
|
+
}
|
|
1410
|
+
if (routeModule.isDev) {
|
|
1411
|
+
(0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.addRequestMeta)(req, 'devRequestTimingInternalsEnd', process.hrtime.bigint());
|
|
1412
|
+
}
|
|
1413
|
+
let srcPage = "/api/v1/bridges/route";
|
|
1414
|
+
// turbopack doesn't normalize `/index` in the page name
|
|
1415
|
+
// so we need to to process dynamic routes properly
|
|
1416
|
+
// TODO: fix turbopack providing differing value from webpack
|
|
1417
|
+
if (false) {} else if (srcPage === '/index') {
|
|
1418
|
+
// we always normalize /index specifically
|
|
1419
|
+
srcPage = '/';
|
|
1420
|
+
}
|
|
1421
|
+
const multiZoneDraftMode = false;
|
|
1422
|
+
const prepareResult = await routeModule.prepare(req, res, {
|
|
1423
|
+
srcPage,
|
|
1424
|
+
multiZoneDraftMode
|
|
1425
|
+
});
|
|
1426
|
+
if (!prepareResult) {
|
|
1427
|
+
res.statusCode = 400;
|
|
1428
|
+
res.end('Bad Request');
|
|
1429
|
+
ctx.waitUntil == null ? void 0 : ctx.waitUntil.call(ctx, Promise.resolve());
|
|
1430
|
+
return null;
|
|
1431
|
+
}
|
|
1432
|
+
const { buildId, deploymentId, params, nextConfig, parsedUrl, isDraftMode, prerenderManifest, routerServerContext, isOnDemandRevalidate, revalidateOnlyGenerated, resolvedPathname, clientReferenceManifest, serverActionsManifest, previewProps } = prepareResult;
|
|
1433
|
+
const normalizedSrcPage = (0,next_dist_shared_lib_router_utils_app_paths__WEBPACK_IMPORTED_MODULE_6__.normalizeAppPath)(srcPage);
|
|
1434
|
+
// Only this route's prerenders can establish ISR or admit generated params.
|
|
1435
|
+
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]));
|
|
1436
|
+
let isIsr = Boolean(prerenderManifest.dynamicRoutes[normalizedSrcPage] || isPrerendered);
|
|
1437
|
+
const render404 = async ()=>{
|
|
1438
|
+
// TODO: should route-module itself handle rendering the 404
|
|
1439
|
+
if (routerServerContext == null ? void 0 : routerServerContext.render404) {
|
|
1440
|
+
await routerServerContext.render404(req, res, parsedUrl, false);
|
|
1441
|
+
} else {
|
|
1442
|
+
res.end('This page could not be found');
|
|
1443
|
+
}
|
|
1444
|
+
return null;
|
|
1589
1445
|
};
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1446
|
+
if (isIsr && !isDraftMode) {
|
|
1447
|
+
const prerenderInfo = prerenderManifest.dynamicRoutes[normalizedSrcPage];
|
|
1448
|
+
if (prerenderInfo) {
|
|
1449
|
+
if (prerenderInfo.fallback === false && !isPrerendered) {
|
|
1450
|
+
if (nextConfig.adapterPath) {
|
|
1451
|
+
return await render404();
|
|
1452
|
+
}
|
|
1453
|
+
throw new next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_15__.NoFallbackError();
|
|
1454
|
+
}
|
|
1455
|
+
}
|
|
1456
|
+
}
|
|
1457
|
+
let cacheKey = null;
|
|
1458
|
+
if (isIsr && !routeModule.isDev && !isDraftMode) {
|
|
1459
|
+
cacheKey = resolvedPathname;
|
|
1460
|
+
// ensure /index and / is normalized to one key
|
|
1461
|
+
cacheKey = cacheKey === '/index' ? '/' : cacheKey;
|
|
1462
|
+
}
|
|
1463
|
+
// Before rendering (which initializes component tree modules), we have to
|
|
1464
|
+
// set the reference manifests to our global store so Server Action's
|
|
1465
|
+
// encryption util can access to them at the top level of the page module.
|
|
1466
|
+
if (serverActionsManifest && clientReferenceManifest) {
|
|
1467
|
+
(0,next_dist_server_app_render_manifests_singleton__WEBPACK_IMPORTED_MODULE_5__.setManifestsSingleton)({
|
|
1468
|
+
page: srcPage,
|
|
1469
|
+
clientReferenceManifest,
|
|
1470
|
+
serverActionsManifest
|
|
1471
|
+
});
|
|
1472
|
+
}
|
|
1473
|
+
const method = req.method || 'GET';
|
|
1474
|
+
const tracer = (0,next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.getTracer)();
|
|
1475
|
+
const activeSpan = tracer.getActiveScopeSpan();
|
|
1476
|
+
const isWrappedByNextServer = Boolean(routerServerContext == null ? void 0 : routerServerContext.isWrappedByNextServer);
|
|
1477
|
+
const isMinimalMode = Boolean((0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.getRequestMeta)(req, 'minimalMode'));
|
|
1478
|
+
const incrementalCache = (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.getRequestMeta)(req, 'incrementalCache') || await routeModule.getIncrementalCache(req, nextConfig, previewProps, prerenderManifest, isMinimalMode);
|
|
1479
|
+
incrementalCache == null ? void 0 : incrementalCache.resetRequestCache();
|
|
1480
|
+
globalThis.__incrementalCache = incrementalCache;
|
|
1481
|
+
const context = {
|
|
1482
|
+
params,
|
|
1483
|
+
previewProps,
|
|
1484
|
+
renderOpts: {
|
|
1485
|
+
experimental: {
|
|
1486
|
+
authInterrupts: Boolean(nextConfig.experimental.authInterrupts),
|
|
1487
|
+
useCacheTimeout: nextConfig.experimental.useCacheTimeout,
|
|
1488
|
+
durableUseCacheEntries: Boolean(nextConfig.experimental.durableUseCacheEntries)
|
|
1489
|
+
},
|
|
1490
|
+
cacheComponents: Boolean(nextConfig.cacheComponents),
|
|
1491
|
+
validationLevel: nextConfig.experimental.instantInsights.validationLevel,
|
|
1492
|
+
isDraftMode,
|
|
1493
|
+
incrementalCache,
|
|
1494
|
+
hmrRefreshHash: (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.getRequestMeta)(req, 'hmrRefreshHash'),
|
|
1495
|
+
cacheLifeProfiles: nextConfig.cacheLife,
|
|
1496
|
+
staticPageGenerationTimeout: nextConfig.staticPageGenerationTimeout,
|
|
1497
|
+
waitUntil: ctx.waitUntil,
|
|
1498
|
+
onClose: (cb)=>{
|
|
1499
|
+
res.on('close', cb);
|
|
1500
|
+
},
|
|
1501
|
+
onAfterTaskError: undefined
|
|
1502
|
+
},
|
|
1503
|
+
sharedContext: {
|
|
1504
|
+
buildId,
|
|
1505
|
+
deploymentId
|
|
1506
|
+
}
|
|
1619
1507
|
};
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1508
|
+
const nodeNextReq = new next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_7__.NodeNextRequest(req);
|
|
1509
|
+
const nodeNextRes = new next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_7__.NodeNextResponse(res);
|
|
1510
|
+
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));
|
|
1511
|
+
const responseGenerator = async ({ previousCacheEntry })=>{
|
|
1512
|
+
try {
|
|
1513
|
+
if (!isMinimalMode && isOnDemandRevalidate && revalidateOnlyGenerated && !previousCacheEntry) {
|
|
1514
|
+
res.statusCode = 404;
|
|
1515
|
+
// on-demand revalidate always sets this header
|
|
1516
|
+
res.setHeader('x-nextjs-cache', 'REVALIDATED');
|
|
1517
|
+
res.end('This page could not be found');
|
|
1518
|
+
return null;
|
|
1519
|
+
}
|
|
1520
|
+
const response = cacheKey === null ? await routeModule.handle(nextReq, context) : await routeModule.prerender(nextReq, context);
|
|
1521
|
+
req.fetchMetrics = context.renderOpts.fetchMetrics;
|
|
1522
|
+
let pendingWaitUntil = context.renderOpts.pendingWaitUntil;
|
|
1523
|
+
// Attempt using provided waitUntil if available
|
|
1524
|
+
// if it's not we fallback to sendResponse's handling
|
|
1525
|
+
if (pendingWaitUntil) {
|
|
1526
|
+
if (ctx.waitUntil) {
|
|
1527
|
+
ctx.waitUntil(pendingWaitUntil);
|
|
1528
|
+
pendingWaitUntil = undefined;
|
|
1529
|
+
}
|
|
1530
|
+
}
|
|
1531
|
+
const cacheTags = context.renderOpts.collectedTags;
|
|
1532
|
+
// If the request is for a static response, we can cache it so long
|
|
1533
|
+
// as it's not edge.
|
|
1534
|
+
if (isIsr) {
|
|
1535
|
+
const blob = await response.blob();
|
|
1536
|
+
// Copy the headers from the response.
|
|
1537
|
+
const headers = (0,next_dist_server_web_utils__WEBPACK_IMPORTED_MODULE_12__.toNodeOutgoingHttpHeaders)(response.headers);
|
|
1538
|
+
if (cacheTags) {
|
|
1539
|
+
headers[next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__.NEXT_CACHE_TAGS_HEADER] = cacheTags;
|
|
1540
|
+
}
|
|
1541
|
+
if (!headers['content-type'] && blob.type) {
|
|
1542
|
+
headers['content-type'] = blob.type;
|
|
1543
|
+
}
|
|
1544
|
+
const revalidate = typeof context.renderOpts.collectedRevalidate === 'undefined' || context.renderOpts.collectedRevalidate >= next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__.INFINITE_CACHE ? false : context.renderOpts.collectedRevalidate;
|
|
1545
|
+
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
|
|
1546
|
+
// explicit `expire` (e.g. via `cacheLife`). This mirrors the
|
|
1547
|
+
// build-time fallback in `build/index.ts` so cache entries
|
|
1548
|
+
// and the response Cache-Control header agree on the route's
|
|
1549
|
+
// effective expire. Routes that opt out of revalidation
|
|
1550
|
+
// (`revalidate: false`) or that are dynamic (`revalidate: 0`)
|
|
1551
|
+
// keep `expire: undefined`.
|
|
1552
|
+
revalidate !== false && revalidate > 0 ? nextConfig.expireTime : undefined : context.renderOpts.collectedExpire;
|
|
1553
|
+
// Create the cache entry for the response.
|
|
1554
|
+
const cacheEntry = {
|
|
1555
|
+
value: {
|
|
1556
|
+
kind: next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__.CachedRouteKind.APP_ROUTE,
|
|
1557
|
+
status: response.status,
|
|
1558
|
+
body: Buffer.from(await blob.arrayBuffer()),
|
|
1559
|
+
headers
|
|
1560
|
+
},
|
|
1561
|
+
cacheControl: {
|
|
1562
|
+
revalidate,
|
|
1563
|
+
expire
|
|
1564
|
+
}
|
|
1565
|
+
};
|
|
1566
|
+
return cacheEntry;
|
|
1567
|
+
} else {
|
|
1568
|
+
// send response without caching if not ISR
|
|
1569
|
+
await (0,next_dist_server_send_response__WEBPACK_IMPORTED_MODULE_11__/* .sendResponse */ .I)(nodeNextReq, nodeNextRes, response, pendingWaitUntil);
|
|
1570
|
+
return null;
|
|
1571
|
+
}
|
|
1572
|
+
} catch (err) {
|
|
1573
|
+
// if this is a background revalidate we need to report
|
|
1574
|
+
// the request error here as it won't be bubbled
|
|
1575
|
+
if (previousCacheEntry == null ? void 0 : previousCacheEntry.isStale) {
|
|
1576
|
+
const silenceLog = false;
|
|
1577
|
+
await routeModule.onRequestError(req, err, {
|
|
1578
|
+
routerKind: 'App Router',
|
|
1579
|
+
routePath: srcPage,
|
|
1580
|
+
routeType: 'route',
|
|
1581
|
+
revalidateReason: (0,next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_10__.getRevalidateReason)({
|
|
1582
|
+
isStaticGeneration: cacheKey !== null,
|
|
1583
|
+
isOnDemandRevalidate
|
|
1584
|
+
})
|
|
1585
|
+
}, silenceLog, routerServerContext);
|
|
1586
|
+
}
|
|
1587
|
+
throw err;
|
|
1588
|
+
}
|
|
1639
1589
|
};
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1590
|
+
const handleResponse = async (currentSpan, parentSpan)=>{
|
|
1591
|
+
try {
|
|
1592
|
+
var _cacheEntry_value;
|
|
1593
|
+
const cacheEntry = await routeModule.handleResponse({
|
|
1594
|
+
req,
|
|
1595
|
+
nextConfig,
|
|
1596
|
+
cacheKey,
|
|
1597
|
+
routeKind: next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__.RouteKind.APP_ROUTE,
|
|
1598
|
+
isFallback: false,
|
|
1599
|
+
previewProps,
|
|
1600
|
+
prerenderManifest,
|
|
1601
|
+
isRoutePPREnabled: false,
|
|
1602
|
+
isOnDemandRevalidate,
|
|
1603
|
+
revalidateOnlyGenerated,
|
|
1604
|
+
responseGenerator,
|
|
1605
|
+
waitUntil: ctx.waitUntil,
|
|
1606
|
+
isMinimalMode
|
|
1607
|
+
});
|
|
1608
|
+
if (cacheEntry !== null && 'error' in cacheEntry) {
|
|
1609
|
+
throw cacheEntry.error;
|
|
1610
|
+
}
|
|
1611
|
+
// we don't create a cacheEntry for ISR
|
|
1612
|
+
if (!isIsr) {
|
|
1613
|
+
return;
|
|
1614
|
+
}
|
|
1615
|
+
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) {
|
|
1616
|
+
var _cacheEntry_value1;
|
|
1617
|
+
throw new Error(`Invariant: app-route received invalid cache entry ${cacheEntry == null ? void 0 : (_cacheEntry_value1 = cacheEntry.value) == null ? void 0 : _cacheEntry_value1.kind}`);
|
|
1618
|
+
}
|
|
1619
|
+
if (!isMinimalMode) {
|
|
1620
|
+
res.setHeader('x-nextjs-cache', isOnDemandRevalidate ? 'REVALIDATED' : cacheEntry.isMiss ? 'MISS' : cacheEntry.isStale ? 'STALE' : 'HIT');
|
|
1621
|
+
}
|
|
1622
|
+
// Draft mode should never be cached
|
|
1623
|
+
if (isDraftMode) {
|
|
1624
|
+
res.setHeader('Cache-Control', 'private, no-cache, no-store, max-age=0, must-revalidate');
|
|
1625
|
+
}
|
|
1626
|
+
const headers = (0,next_dist_server_web_utils__WEBPACK_IMPORTED_MODULE_12__.fromNodeOutgoingHttpHeaders)(cacheEntry.value.headers);
|
|
1627
|
+
if (!(isMinimalMode && isIsr)) {
|
|
1628
|
+
headers.delete(next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__.NEXT_CACHE_TAGS_HEADER);
|
|
1629
|
+
}
|
|
1630
|
+
// If cache control is already set on the response we don't
|
|
1631
|
+
// override it to allow users to customize it via next.config
|
|
1632
|
+
if (cacheEntry.cacheControl && !res.getHeader('Cache-Control') && !headers.get('Cache-Control')) {
|
|
1633
|
+
headers.set('Cache-Control', (0,next_dist_server_lib_cache_control__WEBPACK_IMPORTED_MODULE_13__.getCacheControlHeader)(cacheEntry.cacheControl));
|
|
1634
|
+
}
|
|
1635
|
+
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'.
|
|
1636
|
+
new Response(cacheEntry.value.body, {
|
|
1637
|
+
headers,
|
|
1638
|
+
status: cacheEntry.value.status || 200
|
|
1639
|
+
}));
|
|
1640
|
+
return;
|
|
1641
|
+
} catch (err) {
|
|
1642
|
+
if (!(err instanceof next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_15__.NoFallbackError)) {
|
|
1643
|
+
const silenceLog = false;
|
|
1644
|
+
await routeModule.onRequestError(req, err, {
|
|
1645
|
+
routerKind: 'App Router',
|
|
1646
|
+
routePath: normalizedSrcPage,
|
|
1647
|
+
routeType: 'route',
|
|
1648
|
+
revalidateReason: (0,next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_10__.getRevalidateReason)({
|
|
1649
|
+
isStaticGeneration: cacheKey !== null,
|
|
1650
|
+
isOnDemandRevalidate
|
|
1651
|
+
})
|
|
1652
|
+
}, silenceLog, routerServerContext);
|
|
1653
|
+
}
|
|
1654
|
+
// rethrow so that we can handle serving error page
|
|
1655
|
+
// If this is during static generation, throw the error again.
|
|
1656
|
+
if (isIsr) throw err;
|
|
1657
|
+
// Otherwise, send a 500 response unless the original response has
|
|
1658
|
+
// already committed. In that case, preserve its status code for
|
|
1659
|
+
// telemetry while still recording the failure and terminating a response
|
|
1660
|
+
// that the failed pipeline left open.
|
|
1661
|
+
if (res.headersSent) {
|
|
1662
|
+
if (currentSpan) {
|
|
1663
|
+
const error = err instanceof Error ? err : new Error('Unknown app route error');
|
|
1664
|
+
currentSpan.recordException(error);
|
|
1665
|
+
currentSpan.setStatus({
|
|
1666
|
+
code: next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.SpanStatusCode.ERROR,
|
|
1667
|
+
message: error.message
|
|
1668
|
+
});
|
|
1669
|
+
currentSpan.setAttribute('error.type', error.name);
|
|
1670
|
+
}
|
|
1671
|
+
if (!res.writableEnded && !res.destroyed) {
|
|
1672
|
+
res.end();
|
|
1673
|
+
}
|
|
1674
|
+
} else {
|
|
1675
|
+
await (0,next_dist_server_send_response__WEBPACK_IMPORTED_MODULE_11__/* .sendResponse */ .I)(nodeNextReq, nodeNextRes, new Response(null, {
|
|
1676
|
+
status: 500
|
|
1677
|
+
}));
|
|
1678
|
+
}
|
|
1679
|
+
return;
|
|
1680
|
+
} finally{
|
|
1681
|
+
;
|
|
1682
|
+
(()=>{
|
|
1683
|
+
if (!currentSpan) {
|
|
1684
|
+
return;
|
|
1685
|
+
}
|
|
1686
|
+
let statusCode = res.statusCode;
|
|
1687
|
+
currentSpan.setAttributes({
|
|
1688
|
+
'http.status_code': statusCode,
|
|
1689
|
+
'next.rsc': false
|
|
1690
|
+
});
|
|
1691
|
+
if (statusCode && statusCode >= 500) {
|
|
1692
|
+
// For 5xx status codes: SHOULD be set to 'Error' span status.
|
|
1693
|
+
// x-ref: https://opentelemetry.io/docs/specs/semconv/http/http-spans/#status
|
|
1694
|
+
currentSpan.setStatus({
|
|
1695
|
+
code: next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.SpanStatusCode.ERROR
|
|
1696
|
+
});
|
|
1697
|
+
// For span status 'Error', SHOULD set 'error.type' attribute.
|
|
1698
|
+
currentSpan.setAttribute('error.type', statusCode.toString());
|
|
1699
|
+
}
|
|
1700
|
+
const rootSpanAttributes = tracer.getRootSpanAttributes();
|
|
1701
|
+
// We were unable to get attributes, probably OTEL is not enabled
|
|
1702
|
+
if (!rootSpanAttributes) {
|
|
1703
|
+
return;
|
|
1704
|
+
}
|
|
1705
|
+
if (rootSpanAttributes.get('next.span_type') !== next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_9__.BaseServerSpan.handleRequest) {
|
|
1706
|
+
console.warn(`Unexpected root span type '${rootSpanAttributes.get('next.span_type')}'. Please report this Next.js issue https://github.com/vercel/next.js`);
|
|
1707
|
+
return;
|
|
1708
|
+
}
|
|
1709
|
+
const route = rootSpanAttributes.get('next.route') || normalizedSrcPage;
|
|
1710
|
+
const name = `${method} ${route}`;
|
|
1711
|
+
currentSpan.setAttributes({
|
|
1712
|
+
'next.route': route,
|
|
1713
|
+
'http.route': route,
|
|
1714
|
+
'next.span_name': name
|
|
1715
|
+
});
|
|
1716
|
+
currentSpan.updateName(name);
|
|
1717
|
+
// Propagate http.route to the parent span if one exists (e.g.
|
|
1718
|
+
// a platform-created HTTP span in adapter deployments).
|
|
1719
|
+
if (parentSpan && parentSpan !== currentSpan) {
|
|
1720
|
+
parentSpan.setAttribute('http.route', route);
|
|
1721
|
+
parentSpan.updateName(name);
|
|
1722
|
+
}
|
|
1723
|
+
})();
|
|
1724
|
+
}
|
|
1725
|
+
};
|
|
1726
|
+
// TODO: activeSpan code path is for when wrapped by
|
|
1727
|
+
// next-server can be removed when this is no longer used
|
|
1728
|
+
if (isWrappedByNextServer && activeSpan) {
|
|
1729
|
+
await handleResponse(activeSpan, undefined);
|
|
1730
|
+
} else {
|
|
1731
|
+
let parentSpan = tracer.getActiveScopeSpan();
|
|
1732
|
+
await tracer.withPropagatedContext(req.headers, ()=>tracer.trace(next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_9__.BaseServerSpan.handleRequest, {
|
|
1733
|
+
spanName: `${method} ${srcPage}`,
|
|
1734
|
+
kind: next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.SpanKind.SERVER,
|
|
1735
|
+
attributes: {
|
|
1736
|
+
'http.method': method,
|
|
1737
|
+
'http.target': req.url
|
|
1738
|
+
}
|
|
1739
|
+
}, (span)=>handleResponse(span, parentSpan)), undefined, !isWrappedByNextServer);
|
|
1673
1740
|
}
|
|
1674
|
-
return defaultTokens;
|
|
1675
1741
|
}
|
|
1676
1742
|
|
|
1677
|
-
|
|
1678
|
-
/***/ }),
|
|
1679
|
-
|
|
1680
|
-
/***/ 86439:
|
|
1681
|
-
/***/ ((module) => {
|
|
1682
|
-
|
|
1683
|
-
module.exports = require("next/dist/shared/lib/no-fallback-error.external");
|
|
1684
|
-
|
|
1685
|
-
/***/ }),
|
|
1686
|
-
|
|
1687
|
-
/***/ 89793:
|
|
1688
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1689
|
-
|
|
1690
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1691
|
-
/* harmony export */ RX: () => (/* binding */ DEFAULT_HARNESS_ID),
|
|
1692
|
-
/* harmony export */ YX: () => (/* binding */ CUSTOM_HARNESS_ID_PREFIX),
|
|
1693
|
-
/* harmony export */ cX: () => (/* binding */ HARNESS_SECTION_KEYS),
|
|
1694
|
-
/* harmony export */ vf: () => (/* binding */ isBuiltinHarnessId)
|
|
1695
|
-
/* harmony export */ });
|
|
1696
|
-
/* unused harmony exports BUILTIN_HARNESS_ID_PREFIX, SECTION_DISPLAY */
|
|
1697
|
-
const HARNESS_SECTION_KEYS = [
|
|
1698
|
-
"capabilities",
|
|
1699
|
-
"plan_first",
|
|
1700
|
-
"presentation",
|
|
1701
|
-
"citation",
|
|
1702
|
-
"self_config"
|
|
1703
|
-
];
|
|
1704
|
-
const BUILTIN_HARNESS_ID_PREFIX = "builtin:";
|
|
1705
|
-
const CUSTOM_HARNESS_ID_PREFIX = "custom:";
|
|
1706
|
-
const DEFAULT_HARNESS_ID = "builtin:default";
|
|
1707
|
-
function isBuiltinHarnessId(id) {
|
|
1708
|
-
return id.startsWith(BUILTIN_HARNESS_ID_PREFIX);
|
|
1709
|
-
}
|
|
1710
|
-
const SECTION_DISPLAY = {
|
|
1711
|
-
capabilities: {
|
|
1712
|
-
title: "Host capabilities",
|
|
1713
|
-
hint: "What the surrounding app can do — notifications, scheduling, watchers, document indexing."
|
|
1714
|
-
},
|
|
1715
|
-
plan_first: {
|
|
1716
|
-
title: "Plan-first acknowledgment",
|
|
1717
|
-
hint: "Acknowledge-before-acting rules, action principle, anti-fabrication, follow-through."
|
|
1718
|
-
},
|
|
1719
|
-
presentation: {
|
|
1720
|
-
title: "Output formatting",
|
|
1721
|
-
hint: "Markdown / HTML extras, code fences, images, maps, citation refs block."
|
|
1722
|
-
},
|
|
1723
|
-
citation: {
|
|
1724
|
-
title: "Source attribution",
|
|
1725
|
-
hint: "Anti-hallucination rules: every substantive claim must be tagged with its source."
|
|
1726
|
-
},
|
|
1727
|
-
self_config: {
|
|
1728
|
-
title: "Self-configuration proposals",
|
|
1729
|
-
hint: "Lets the agent propose config changes (install MCP, edit agent, set keys) for user approval."
|
|
1730
|
-
}
|
|
1731
|
-
};
|
|
1743
|
+
//# sourceMappingURL=app-route.js.map
|
|
1732
1744
|
|
|
1733
1745
|
|
|
1734
1746
|
/***/ }),
|
|
@@ -1754,7 +1766,7 @@ module.exports = import("@huggingface/transformers");;
|
|
|
1754
1766
|
var __webpack_require__ = require("../../../../webpack-runtime.js");
|
|
1755
1767
|
__webpack_require__.C(exports);
|
|
1756
1768
|
var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
|
|
1757
|
-
var __webpack_exports__ = __webpack_require__.X(0, [2970,7377,1813,7981,4992,46,
|
|
1769
|
+
var __webpack_exports__ = __webpack_require__.X(0, [2970,7377,1813,7981,4992,46,309], () => (__webpack_exec__(93167)));
|
|
1758
1770
|
module.exports = __webpack_exports__;
|
|
1759
1771
|
|
|
1760
1772
|
})();
|