@circuitwall/jarela 2.2.1 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.next/standalone/.next/BUILD_ID +1 -1
- package/.next/standalone/.next/app-path-routes-manifest.json +6 -5
- package/.next/standalone/.next/build-manifest.json +2 -2
- package/.next/standalone/.next/prerender-manifest.json +3 -3
- package/.next/standalone/.next/routes-manifest.json +8 -0
- package/.next/standalone/.next/server/app/_global-error/page.js +68 -68
- package/.next/standalone/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/_global-error.html +1 -1
- package/.next/standalone/.next/server/app/_global-error.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found/page.js +76 -76
- package/.next/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/_not-found.html +2 -2
- package/.next/standalone/.next/server/app/_not-found.rsc +2 -2
- package/.next/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/api/v1/access/[identity]/route.js +93 -93
- package/.next/standalone/.next/server/app/api/v1/access/route.js +169 -169
- package/.next/standalone/.next/server/app/api/v1/agents/[id]/compact/route.js +82 -56
- package/.next/standalone/.next/server/app/api/v1/agents/[id]/compact/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/agents/[id]/display-filters/route.js +122 -122
- package/.next/standalone/.next/server/app/api/v1/agents/[id]/route.js +100 -100
- package/.next/standalone/.next/server/app/api/v1/agents/[id]/thread/route.js +753 -753
- package/.next/standalone/.next/server/app/api/v1/agents/route.js +65 -65
- package/.next/standalone/.next/server/app/api/v1/allowed-sites/[hostname]/route.js +364 -364
- package/.next/standalone/.next/server/app/api/v1/allowed-sites/route.js +802 -802
- package/.next/standalone/.next/server/app/api/v1/artifacts/lifecycle/route.js +2 -2
- package/.next/standalone/.next/server/app/api/v1/attachments/files/route.js +49 -49
- package/.next/standalone/.next/server/app/api/v1/attachments/images/route.js +910 -910
- package/.next/standalone/.next/server/app/api/v1/bridges/[id]/chats/route.js +589 -16
- package/.next/standalone/.next/server/app/api/v1/bridges/[id]/chats/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/bridges/[id]/ignores/[remote_jid]/route.js +23 -23
- package/.next/standalone/.next/server/app/api/v1/bridges/[id]/ignores/route.js +30 -30
- package/.next/standalone/.next/server/app/api/v1/bridges/[id]/lookup/route.js +703 -130
- package/.next/standalone/.next/server/app/api/v1/bridges/[id]/lookup/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/bridges/[id]/pair/route.js +708 -135
- package/.next/standalone/.next/server/app/api/v1/bridges/[id]/pair/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/bridges/[id]/route.js +802 -229
- package/.next/standalone/.next/server/app/api/v1/bridges/[id]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/bridges/[id]/routes/[route_id]/route.js +739 -739
- package/.next/standalone/.next/server/app/api/v1/bridges/[id]/routes/route.js +1035 -1035
- package/.next/standalone/.next/server/app/api/v1/bridges/[id]/status/route.js +679 -106
- package/.next/standalone/.next/server/app/api/v1/bridges/[id]/status/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/bridges/kinds/route.js +804 -804
- package/.next/standalone/.next/server/app/api/v1/bridges/route.js +700 -700
- package/.next/standalone/.next/server/app/api/v1/builtin-tools/route.js +9 -9
- package/.next/standalone/.next/server/app/api/v1/builtin-tools/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/config/route.js +85 -85
- package/.next/standalone/.next/server/app/api/v1/credentials/[id]/route.js +709 -709
- package/.next/standalone/.next/server/app/api/v1/credentials/[id]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/credentials/route.js +2 -2
- package/.next/standalone/.next/server/app/api/v1/credentials/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/dashboard/currency/route.js +10 -10
- package/.next/standalone/.next/server/app/api/v1/dashboard/metrics/route.js +784 -784
- package/.next/standalone/.next/server/app/api/v1/dashboard/pricing/route.js +23 -23
- package/.next/standalone/.next/server/app/api/v1/dashboard/pricing-task/route.js +86 -86
- package/.next/standalone/.next/server/app/api/v1/dashboard/pricing-task/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/delegations/codex/[job_id]/route.js +57 -57
- package/.next/standalone/.next/server/app/api/v1/delegations/codex/[job_id]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/documents/search/route.js +523 -523
- package/.next/standalone/.next/server/app/api/v1/documents/settings/route.js +44 -44
- package/.next/standalone/.next/server/app/api/v1/documents/sources/[id]/reindex/route.js +65 -65
- package/.next/standalone/.next/server/app/api/v1/documents/sources/[id]/reindex/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/documents/sources/[id]/route.js +122 -122
- package/.next/standalone/.next/server/app/api/v1/documents/sources/[id]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/documents/sources/route.js +37 -37
- package/.next/standalone/.next/server/app/api/v1/documents/sources/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/env/route.js +9 -9
- package/.next/standalone/.next/server/app/api/v1/env-sync/allowlist/route.js +368 -368
- package/.next/standalone/.next/server/app/api/v1/env-sync/route.js +44 -44
- package/.next/standalone/.next/server/app/api/v1/events/route.js +751 -178
- package/.next/standalone/.next/server/app/api/v1/events/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/events/test/route.js +77 -77
- package/.next/standalone/.next/server/app/api/v1/extension/agents/route.js +763 -763
- package/.next/standalone/.next/server/app/api/v1/extension/agents/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/extension/browser/activate/route.js +44 -44
- package/.next/standalone/.next/server/app/api/v1/extension/browser/foreground/route.js +9 -9
- package/.next/standalone/.next/server/app/api/v1/extension/browser/history/route.js +65 -65
- package/.next/standalone/.next/server/app/api/v1/extension/browser/poll/route.js +34 -34
- package/.next/standalone/.next/server/app/api/v1/extension/browser/progress/route.js +204 -204
- package/.next/standalone/.next/server/app/api/v1/extension/browser/result/route.js +133 -133
- package/.next/standalone/.next/server/app/api/v1/extension/browser/retry/route.js +106 -106
- package/.next/standalone/.next/server/app/api/v1/extension/browser/status/route.js +114 -114
- package/.next/standalone/.next/server/app/api/v1/extension/browser/tabs/route.js +134 -134
- package/.next/standalone/.next/server/app/api/v1/extension/fill/route.js +690 -690
- package/.next/standalone/.next/server/app/api/v1/extension/fill/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/extension/refine/route.js +93 -93
- package/.next/standalone/.next/server/app/api/v1/extension/refine/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/extension/turn/route.js +9 -9
- package/.next/standalone/.next/server/app/api/v1/extension/turn/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/extensions/route.js +185 -185
- package/.next/standalone/.next/server/app/api/v1/extensions/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/extensions/tools/[name]/config/route.js +171 -171
- package/.next/standalone/.next/server/app/api/v1/extensions/tools/[name]/config/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/extensions/tools/[name]/route.js +396 -396
- package/.next/standalone/.next/server/app/api/v1/extensions/tools/[name]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/extensions/tools/[name]/secrets/route.js +212 -212
- package/.next/standalone/.next/server/app/api/v1/extensions/tools/[name]/secrets/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/files/[name]/route.js +235 -235
- package/.next/standalone/.next/server/app/api/v1/fs/browse/route.js +26 -26
- package/.next/standalone/.next/server/app/api/v1/harnesses/[id]/route.js +221 -221
- package/.next/standalone/.next/server/app/api/v1/harnesses/default/route.js +58 -58
- package/.next/standalone/.next/server/app/api/v1/harnesses/route.js +72 -72
- package/.next/standalone/.next/server/app/api/v1/health/probes/route.js +9 -9
- package/.next/standalone/.next/server/app/api/v1/health/probes/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/health/route.js +772 -772
- package/.next/standalone/.next/server/app/api/v1/integrations/[name]/route.js +133 -133
- package/.next/standalone/.next/server/app/api/v1/integrations/[name]/test/route.js +9 -9
- package/.next/standalone/.next/server/app/api/v1/integrations/[name]/test/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/integrations/gmail/oauth/callback/route.js +363 -363
- package/.next/standalone/.next/server/app/api/v1/integrations/gmail/oauth/start/route.js +233 -233
- package/.next/standalone/.next/server/app/api/v1/integrations/gmail/oauth/status/route.js +682 -682
- package/.next/standalone/.next/server/app/api/v1/integrations/outlook/oauth/callback/route.js +879 -879
- package/.next/standalone/.next/server/app/api/v1/integrations/outlook/oauth/start/route.js +108 -108
- package/.next/standalone/.next/server/app/api/v1/integrations/outlook/oauth/status/route.js +952 -952
- package/.next/standalone/.next/server/app/api/v1/integrations/route.js +216 -216
- package/.next/standalone/.next/server/app/api/v1/lifecycle/adoption/route.js +864 -847
- package/.next/standalone/.next/server/app/api/v1/lifecycle/adoption/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/local-file/route.js +26 -26
- package/.next/standalone/.next/server/app/api/v1/logs/route.js +70 -70
- package/.next/standalone/.next/server/app/api/v1/maps/embed/route.js +72 -72
- package/.next/standalone/.next/server/app/api/v1/mcp-servers/[name]/route.js +979 -979
- package/.next/standalone/.next/server/app/api/v1/mcp-servers/registry/route.js +196 -196
- package/.next/standalone/.next/server/app/api/v1/mcp-servers/route.js +2 -2
- package/.next/standalone/.next/server/app/api/v1/memory/[namespace]/[key]/route.js +381 -381
- package/.next/standalone/.next/server/app/api/v1/memory/policy/route.js +79 -79
- package/.next/standalone/.next/server/app/api/v1/memory/route.js +51 -51
- package/.next/standalone/.next/server/app/api/v1/memory/search/route.js +131 -131
- package/.next/standalone/.next/server/app/api/v1/models/[name]/compact-threads/route.js +374 -369
- package/.next/standalone/.next/server/app/api/v1/models/[name]/compact-threads/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/models/[name]/route.js +143 -143
- package/.next/standalone/.next/server/app/api/v1/models/route.js +543 -543
- package/.next/standalone/.next/server/app/api/v1/packages/catalog/route.js +445 -445
- package/.next/standalone/.next/server/app/api/v1/packages/defaults/[id]/route.js +120 -120
- package/.next/standalone/.next/server/app/api/v1/packages/defaults/[id]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/packages/install/[id]/route.js +234 -234
- package/.next/standalone/.next/server/app/api/v1/packages/install/[id]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/packages/install/route.js +407 -407
- package/.next/standalone/.next/server/app/api/v1/packages/install/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/packages/manifests/[name]/enabled/route.js +37 -37
- package/.next/standalone/.next/server/app/api/v1/packages/manifests/[name]/enabled/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/packages/manifests/[name]/route.js +107 -107
- package/.next/standalone/.next/server/app/api/v1/packages/manifests/[name]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/packages/manifests/route.js +228 -228
- package/.next/standalone/.next/server/app/api/v1/packages/manifests/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/packages/reload/route.js +9 -9
- package/.next/standalone/.next/server/app/api/v1/packages/reload/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/packages/route.js +148 -148
- package/.next/standalone/.next/server/app/api/v1/packages/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/page-capture/route.js +787 -787
- package/.next/standalone/.next/server/app/api/v1/page-capture/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/pending-actions/[id]/approve/route.js +507 -507
- package/.next/standalone/.next/server/app/api/v1/pending-actions/[id]/approve/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/pending-actions/[id]/deny/route.js +181 -181
- package/.next/standalone/.next/server/app/api/v1/pending-actions/[id]/deny/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/pending-actions/route.js +258 -258
- package/.next/standalone/.next/server/app/api/v1/pending-actions/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/profile/location/route.js +30 -30
- package/.next/standalone/.next/server/app/api/v1/profile/route.js +164 -164
- package/.next/standalone/.next/server/app/api/v1/providers/[provider]/models/route.js +44 -44
- package/.next/standalone/.next/server/app/api/v1/providers/[provider]/probe/route.js +9 -9
- package/.next/standalone/.next/server/app/api/v1/providers/github-copilot/auth/route.js +164 -164
- package/.next/standalone/.next/server/app/api/v1/providers/route.js +94 -94
- package/.next/standalone/.next/server/app/api/v1/proxy-config/route.js +450 -450
- package/.next/standalone/.next/server/app/api/v1/redaction/init/route.js +37 -37
- package/.next/standalone/.next/server/app/api/v1/redaction/route.js +58 -58
- package/.next/standalone/.next/server/app/api/v1/scheduled-tasks/[id]/route.js +600 -600
- package/.next/standalone/.next/server/app/api/v1/scheduled-tasks/[id]/run/route.js +44 -44
- package/.next/standalone/.next/server/app/api/v1/scheduled-tasks/[id]/run/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/scheduled-tasks/route.js +732 -732
- package/.next/standalone/.next/server/app/api/v1/security/idle-timeout/route.js +359 -359
- package/.next/standalone/.next/server/app/api/v1/security/pin/route.js +197 -197
- package/.next/standalone/.next/server/app/api/v1/security/state/route.js +51 -51
- package/.next/standalone/.next/server/app/api/v1/security/unlock/route.js +176 -176
- package/.next/standalone/.next/server/app/api/v1/security/verify-pin/route.js +190 -190
- package/.next/standalone/.next/server/app/api/v1/setup/test-key/route.js +26 -26
- package/.next/standalone/.next/server/app/api/v1/skills/[id]/route.js +770 -770
- package/.next/standalone/.next/server/app/api/v1/skills/repos/[id]/route.js +115 -115
- package/.next/standalone/.next/server/app/api/v1/skills/repos/route.js +327 -327
- package/.next/standalone/.next/server/app/api/v1/skills/route.js +870 -870
- package/.next/standalone/.next/server/app/api/v1/system/abort/route.js +838 -808
- package/.next/standalone/.next/server/app/api/v1/system/restart/route.js +177 -177
- package/.next/standalone/.next/server/app/api/v1/system/restart/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/tailscale/route.js +164 -164
- package/.next/standalone/.next/server/app/api/v1/tasks/[agent_id]/route.js +115 -115
- package/.next/standalone/.next/server/app/api/v1/tasks/route.js +23 -23
- package/.next/standalone/.next/server/app/api/v1/threads/[thread_id]/activity/route.js +1429 -0
- package/.next/standalone/.next/server/app/api/v1/threads/[thread_id]/activity/route.js.nft.json +1 -0
- package/.next/standalone/.next/server/app/api/v1/threads/[thread_id]/activity/route_client-reference-manifest.js +1 -0
- package/.next/standalone/.next/server/app/api/v1/threads/[thread_id]/context-pin/route.js +635 -634
- package/.next/standalone/.next/server/app/api/v1/threads/[thread_id]/context-pin/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/threads/[thread_id]/route.js +53 -439
- package/.next/standalone/.next/server/app/api/v1/threads/[thread_id]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/threads/[thread_id]/run/route.js +172 -172
- package/.next/standalone/.next/server/app/api/v1/threads/[thread_id]/run/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/threads/route.js +908 -908
- package/.next/standalone/.next/server/app/api/v1/tools/route.js +2 -2
- package/.next/standalone/.next/server/app/api/v1/tools/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/update/apply/route.js +17 -17
- package/.next/standalone/.next/server/app/api/v1/update/apply/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/update/route.js +570 -570
- package/.next/standalone/.next/server/app/api/v1/voice/transcribe/route.js +224 -224
- package/.next/standalone/.next/server/app/api/v1/voice/tts/route.js +975 -975
- package/.next/standalone/.next/server/app/api/v1/watchers/[id]/route.js +23 -23
- package/.next/standalone/.next/server/app/api/v1/watchers/[id]/run/route.js +72 -72
- package/.next/standalone/.next/server/app/api/v1/watchers/[id]/run/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/watchers/reaction-scripts/route.js +128 -128
- package/.next/standalone/.next/server/app/api/v1/watchers/route.js +164 -164
- package/.next/standalone/.next/server/app/api/v1/watchers/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/icon.svg/route.js +62 -62
- package/.next/standalone/.next/server/app/manifest.webmanifest/route.js +436 -436
- package/.next/standalone/.next/server/app/page.js +1243 -854
- package/.next/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/setup/page.js +91 -91
- package/.next/standalone/.next/server/app/setup/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app-paths-manifest.json +6 -5
- package/.next/standalone/.next/server/chunks/{424.js → 1388.js} +335 -986
- package/.next/standalone/.next/server/chunks/1433.js +1 -1
- package/.next/standalone/.next/server/chunks/1638.js +1 -2
- package/.next/standalone/.next/server/chunks/1738.js +1 -1
- package/.next/standalone/.next/server/chunks/210.js +6 -6
- package/.next/standalone/.next/server/chunks/2151.js +31 -1
- package/.next/standalone/.next/server/chunks/2207.js +1 -0
- package/.next/standalone/.next/server/chunks/2471.js +28 -28
- package/.next/standalone/.next/server/chunks/2504.js +1 -1
- package/.next/standalone/.next/server/chunks/2695.js +17 -17
- package/.next/standalone/.next/server/chunks/3042.js +14 -8
- package/.next/standalone/.next/server/chunks/3399.js +1 -1
- package/.next/standalone/.next/server/chunks/3566.js +1 -1
- package/.next/standalone/.next/server/chunks/4189.js +946 -0
- package/.next/standalone/.next/server/chunks/{9590.js → 423.js} +8 -3
- package/.next/standalone/.next/server/chunks/4433.js +146 -146
- package/.next/standalone/.next/server/chunks/4508.js +1 -1
- package/.next/standalone/.next/server/chunks/4588.js +1 -0
- package/.next/standalone/.next/server/chunks/46.js +5 -0
- package/.next/standalone/.next/server/chunks/466.js +12 -0
- package/.next/standalone/.next/server/chunks/4868.js +206 -206
- package/.next/standalone/.next/server/chunks/4992.js +13 -0
- package/.next/standalone/.next/server/chunks/5120.js +963 -0
- package/.next/standalone/.next/server/chunks/5701.js +1 -1
- package/.next/standalone/.next/server/chunks/5900.js +1 -1
- package/.next/standalone/.next/server/chunks/6210.js +1 -0
- package/.next/standalone/.next/server/chunks/6213.js +1 -1
- package/.next/standalone/.next/server/chunks/6649.js +2 -2
- package/.next/standalone/.next/server/chunks/6703.js +3 -3
- package/.next/standalone/.next/server/chunks/7445.js +1 -0
- package/.next/standalone/.next/server/chunks/8067.js +12 -0
- package/.next/standalone/.next/server/chunks/8461.js +14 -9
- package/.next/standalone/.next/server/chunks/8558.js +1 -1
- package/.next/standalone/.next/server/chunks/8724.js +1 -1
- package/.next/standalone/.next/server/chunks/8849.js +91 -91
- package/.next/standalone/.next/server/chunks/9032.js +6 -5
- package/.next/standalone/.next/server/chunks/{2563.js → 9164.js} +33173 -31461
- package/.next/standalone/.next/server/chunks/9237.js +396 -396
- package/.next/standalone/.next/server/chunks/{9640.js → 9304.js} +1628 -570
- package/.next/standalone/.next/server/chunks/9406.js +1 -1
- package/.next/standalone/.next/server/chunks/9824.js +98 -98
- package/.next/standalone/.next/server/chunks/9826.js +1 -0
- package/.next/standalone/.next/server/middleware-build-manifest.js +2 -2
- package/.next/standalone/.next/server/middleware.js +415 -397
- package/.next/standalone/.next/server/pages/404.html +2 -2
- package/.next/standalone/.next/server/pages/500.html +1 -1
- package/.next/standalone/.next/server/preview-props.json +3 -3
- package/.next/standalone/.next/server/server-reference-manifest.json +1 -1
- package/.next/standalone/.next/static/chunks/{1395-a340fb0a345382a4.js → 1395-e4a99912b8f83044.js} +13 -1
- package/.next/standalone/.next/static/chunks/app/_global-error/{page-36cb8b428b38b26a.js → page-6fc5f8e744c81802.js} +1 -1
- package/.next/standalone/.next/static/chunks/app/api/v1/access/[identity]/{route-36cb8b428b38b26a.js → route-6fc5f8e744c81802.js} +1 -1
- package/.next/standalone/.next/static/chunks/app/api/v1/access/{route-36cb8b428b38b26a.js → route-6fc5f8e744c81802.js} +1 -1
- package/.next/standalone/.next/static/chunks/app/api/v1/agents/[id]/compact/{route-36cb8b428b38b26a.js → route-6fc5f8e744c81802.js} +1 -1
- package/.next/standalone/.next/static/chunks/app/api/v1/agents/[id]/display-filters/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/agents/[id]/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/agents/[id]/thread/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/agents/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/allowed-sites/[hostname]/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/allowed-sites/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/artifacts/lifecycle/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/attachments/files/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/attachments/images/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/[id]/chats/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/[id]/ignores/[remote_jid]/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/[id]/ignores/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/[id]/lookup/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/[id]/pair/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/[id]/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/[id]/routes/[route_id]/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/[id]/routes/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/[id]/status/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/kinds/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/builtin-tools/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/config/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/credentials/[id]/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/credentials/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/dashboard/currency/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/dashboard/metrics/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/dashboard/pricing/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/dashboard/pricing-task/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/delegations/codex/[job_id]/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/documents/search/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/documents/settings/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/documents/sources/[id]/reindex/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/documents/sources/[id]/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/documents/sources/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/env/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/env-sync/allowlist/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/env-sync/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/events/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/events/test/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/agents/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/browser/activate/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/browser/foreground/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/browser/history/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/browser/poll/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/browser/progress/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/browser/result/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/browser/retry/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/browser/status/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/browser/tabs/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/fill/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/refine/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/turn/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/extensions/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/extensions/tools/[name]/config/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/extensions/tools/[name]/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/extensions/tools/[name]/secrets/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/files/[name]/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/fs/browse/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/harnesses/[id]/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/harnesses/default/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/harnesses/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/health/probes/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/health/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/integrations/[name]/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/integrations/[name]/test/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/integrations/gmail/oauth/callback/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/integrations/gmail/oauth/start/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/integrations/gmail/oauth/status/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/integrations/outlook/oauth/callback/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/integrations/outlook/oauth/start/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/integrations/outlook/oauth/status/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/integrations/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/lifecycle/adoption/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/local-file/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/logs/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/maps/embed/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/mcp-servers/[name]/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/mcp-servers/registry/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/mcp-servers/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/memory/[namespace]/[key]/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/memory/policy/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/memory/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/memory/search/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/models/[name]/compact-threads/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/models/[name]/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/models/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/packages/catalog/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/packages/defaults/[id]/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/packages/install/[id]/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/packages/install/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/packages/manifests/[name]/enabled/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/packages/manifests/[name]/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/packages/manifests/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/packages/reload/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/packages/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/page-capture/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/pending-actions/[id]/approve/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/pending-actions/[id]/deny/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/pending-actions/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/profile/location/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/profile/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/providers/[provider]/models/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/providers/[provider]/probe/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/providers/github-copilot/auth/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/providers/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/proxy-config/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/redaction/init/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/redaction/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/scheduled-tasks/[id]/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/scheduled-tasks/[id]/run/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/scheduled-tasks/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/security/idle-timeout/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/security/pin/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/security/state/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/security/unlock/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/security/verify-pin/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/setup/test-key/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/skills/[id]/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/skills/repos/[id]/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/skills/repos/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/skills/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/system/abort/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/system/restart/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/tailscale/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/tasks/[agent_id]/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/tasks/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/threads/[thread_id]/activity/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/threads/[thread_id]/context-pin/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/threads/[thread_id]/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/threads/[thread_id]/run/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/threads/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/tools/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/update/apply/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/update/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/voice/transcribe/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/voice/tts/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/watchers/[id]/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/watchers/[id]/run/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/watchers/reaction-scripts/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/watchers/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/manifest.webmanifest/route-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/app/{page-7017f07f8a7a083c.js → page-213a623b37226452.js} +1041 -652
- package/.next/standalone/.next/static/chunks/next/dist/client/components/builtin/app-error-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/next/dist/client/components/builtin/forbidden-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/next/dist/client/components/builtin/not-found-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/chunks/next/dist/client/components/builtin/unauthorized-6fc5f8e744c81802.js +17 -0
- package/.next/standalone/.next/static/css/{d80058f0b9b41c09.css → 312542a5725ba0d5.css} +2 -2
- package/.next/standalone/docs/adoption/changesets.json +309 -0
- package/.next/standalone/lib/skills/builtins/memory-organization/SKILL.md +16 -0
- package/.next/standalone/package.json +3 -3
- package/CHANGELOG.md +25 -0
- package/api/client.ts +9 -0
- package/api/types.ts +29 -0
- package/app/api/v1/lifecycle/adoption/route.ts +14 -2
- package/app/api/v1/models/[name]/compact-threads/route.ts +14 -11
- package/app/api/v1/threads/[thread_id]/activity/route.ts +19 -0
- package/app/api/v1/threads/[thread_id]/context-pin/route.test.ts +1 -0
- package/app/api/v1/threads/[thread_id]/context-pin/route.ts +2 -1
- package/app/api/v1/threads/[thread_id]/route.ts +5 -1
- package/components/chat/ChatView.tsx +52 -11
- package/components/chat/ContextBoundary.test.tsx +68 -1
- package/components/chat/ContextBoundary.tsx +92 -13
- package/components/chat/MessageList.test.tsx +31 -0
- package/components/chat/MessageList.tsx +49 -28
- package/components/chat/ToolList.test.tsx +92 -16
- package/components/chat/ToolList.tsx +59 -4
- package/components/chat/chat-helpers.test.tsx +24 -1
- package/components/chat/chat-helpers.ts +47 -4
- package/components/chat/useThreadActivity.test.tsx +113 -0
- package/components/chat/useThreadActivity.ts +94 -0
- package/components/chat/useThreadData.ts +16 -16
- package/components/chat/workflow-step-retry.ts +25 -0
- package/components/ui/BootScreen.tsx +17 -0
- package/components/ui/WorkflowChecklist.tsx +71 -33
- package/hooks/useSSE.ts +28 -3
- package/lib/agents/compaction-pipeline.test.ts +202 -0
- package/lib/agents/compaction-pipeline.ts +483 -0
- package/lib/agents/conversation-summary.ts +37 -21
- package/lib/agents/prepare/history-window.test.ts +18 -0
- package/lib/agents/prepare/history-window.ts +11 -2
- package/lib/agents/prepare/request.ts +4 -0
- package/lib/agents/prepare/system-prompt.test.ts +39 -0
- package/lib/agents/prepare/system-prompt.ts +8 -3
- package/lib/agents/prompt-registry.test.ts +5 -140
- package/lib/agents/prompt-registry.ts +45 -1
- package/lib/agents/prompt-variants.ts +146 -0
- package/lib/agents/run-registry.test.ts +22 -0
- package/lib/agents/run-registry.ts +29 -0
- package/lib/agents/run-thread.retry.test.ts +67 -1
- package/lib/agents/run-thread.ts +86 -1
- package/lib/agents/thread-activity.test.ts +31 -0
- package/lib/agents/thread-activity.ts +27 -0
- package/lib/agents/thread-compaction-state.test.ts +82 -0
- package/lib/agents/thread-compaction-state.ts +121 -0
- package/lib/agents/thread-compaction.test.ts +83 -4
- package/lib/agents/thread-compaction.ts +34 -11
- package/lib/agents/warm-summary-background.test.ts +219 -5
- package/lib/agents/warm-summary-background.ts +325 -142
- package/lib/agents/warm-topics.test.ts +37 -0
- package/lib/agents/warm-topics.ts +297 -0
- package/lib/agents/workflow-step-retry.test.ts +96 -0
- package/lib/agents/workflow-step-retry.ts +216 -0
- package/lib/api/browser-control.ts +0 -3
- package/lib/db/migrations.ts +5 -0
- package/lib/env/config.ts +2 -0
- package/lib/env/schema.ts +12 -0
- package/lib/lifecycle/changeset-build.test.ts +93 -0
- package/lib/lifecycle/changeset-build.ts +210 -0
- package/lib/lifecycle/changesets.test.ts +101 -0
- package/lib/lifecycle/changesets.ts +166 -0
- package/lib/lifecycle/surface-collect.test.ts +88 -0
- package/lib/lifecycle/surface-collect.ts +64 -0
- package/lib/lifecycle/surface-snapshot.test.ts +104 -0
- package/lib/lifecycle/surface-snapshot.ts +210 -0
- package/lib/memory/record.ts +0 -2
- package/lib/providers/external.ts +0 -2
- package/lib/skills/builtins/memory-organization/SKILL.md +16 -0
- package/lib/stores/threads.test.ts +9 -0
- package/lib/stores/threads.ts +21 -11
- package/lib/stores/version-adoption.test.ts +96 -0
- package/lib/stores/version-adoption.ts +239 -26
- package/lib/stores/workflow-progress.ts +3 -0
- package/lib/tools/communications/ms-todo.ts +0 -7
- package/lib/tools/general/memory.ts +1 -1
- package/lib/tools/general/workflow-progress.ts +2 -0
- package/lib/tools/runtime/catalog.ts +1 -25
- package/lib/triggers/registry.ts +0 -4
- package/package.json +3 -3
- package/scripts/install-to-system.ps1 +39 -11
- package/scripts/install-to-system.sh +37 -3
- package/.next/standalone/.next/server/chunks/3979.js +0 -581
- package/.next/standalone/.next/server/chunks/5936.js +0 -594
- package/.next/standalone/.next/static/chunks/app/api/v1/agents/[id]/display-filters/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/agents/[id]/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/agents/[id]/thread/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/agents/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/allowed-sites/[hostname]/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/allowed-sites/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/artifacts/lifecycle/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/attachments/files/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/attachments/images/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/[id]/chats/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/[id]/ignores/[remote_jid]/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/[id]/ignores/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/[id]/lookup/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/[id]/pair/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/[id]/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/[id]/routes/[route_id]/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/[id]/routes/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/[id]/status/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/kinds/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/builtin-tools/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/config/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/credentials/[id]/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/credentials/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/dashboard/currency/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/dashboard/metrics/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/dashboard/pricing/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/dashboard/pricing-task/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/delegations/codex/[job_id]/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/documents/search/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/documents/settings/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/documents/sources/[id]/reindex/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/documents/sources/[id]/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/documents/sources/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/env/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/env-sync/allowlist/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/env-sync/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/events/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/events/test/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/agents/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/browser/activate/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/browser/foreground/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/browser/history/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/browser/poll/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/browser/progress/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/browser/result/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/browser/retry/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/browser/status/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/browser/tabs/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/fill/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/refine/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/turn/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/extensions/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/extensions/tools/[name]/config/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/extensions/tools/[name]/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/extensions/tools/[name]/secrets/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/files/[name]/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/fs/browse/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/harnesses/[id]/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/harnesses/default/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/harnesses/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/health/probes/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/health/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/integrations/[name]/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/integrations/[name]/test/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/integrations/gmail/oauth/callback/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/integrations/gmail/oauth/start/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/integrations/gmail/oauth/status/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/integrations/outlook/oauth/callback/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/integrations/outlook/oauth/start/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/integrations/outlook/oauth/status/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/integrations/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/lifecycle/adoption/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/local-file/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/logs/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/maps/embed/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/mcp-servers/[name]/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/mcp-servers/registry/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/mcp-servers/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/memory/[namespace]/[key]/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/memory/policy/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/memory/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/memory/search/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/models/[name]/compact-threads/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/models/[name]/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/models/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/packages/catalog/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/packages/defaults/[id]/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/packages/install/[id]/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/packages/install/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/packages/manifests/[name]/enabled/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/packages/manifests/[name]/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/packages/manifests/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/packages/reload/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/packages/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/page-capture/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/pending-actions/[id]/approve/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/pending-actions/[id]/deny/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/pending-actions/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/profile/location/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/profile/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/providers/[provider]/models/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/providers/[provider]/probe/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/providers/github-copilot/auth/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/providers/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/proxy-config/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/redaction/init/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/redaction/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/scheduled-tasks/[id]/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/scheduled-tasks/[id]/run/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/scheduled-tasks/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/security/idle-timeout/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/security/pin/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/security/state/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/security/unlock/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/security/verify-pin/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/setup/test-key/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/skills/[id]/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/skills/repos/[id]/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/skills/repos/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/skills/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/system/abort/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/system/restart/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/tailscale/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/tasks/[agent_id]/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/tasks/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/threads/[thread_id]/context-pin/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/threads/[thread_id]/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/threads/[thread_id]/run/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/threads/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/tools/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/update/apply/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/update/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/voice/transcribe/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/voice/tts/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/watchers/[id]/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/watchers/[id]/run/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/watchers/reaction-scripts/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/watchers/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/app/manifest.webmanifest/route-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/next/dist/client/components/builtin/app-error-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/next/dist/client/components/builtin/forbidden-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/next/dist/client/components/builtin/not-found-36cb8b428b38b26a.js +0 -17
- package/.next/standalone/.next/static/chunks/next/dist/client/components/builtin/unauthorized-36cb8b428b38b26a.js +0 -17
- /package/.next/standalone/.next/static/{NUrC9xax1sp1Q70nlFqS6 → bMRK5y3ruT7c3WtBfCQOG}/_buildManifest.js +0 -0
- /package/.next/standalone/.next/static/{NUrC9xax1sp1Q70nlFqS6 → bMRK5y3ruT7c3WtBfCQOG}/_ssgManifest.js +0 -0
|
@@ -54,770 +54,771 @@ module.exports = require("next/dist/compiled/next-server/app-page.runtime.prod.j
|
|
|
54
54
|
|
|
55
55
|
/***/ }),
|
|
56
56
|
|
|
57
|
-
/***/
|
|
57
|
+
/***/ 16698:
|
|
58
|
+
/***/ ((module) => {
|
|
59
|
+
|
|
60
|
+
module.exports = require("node:async_hooks");
|
|
61
|
+
|
|
62
|
+
/***/ }),
|
|
63
|
+
|
|
64
|
+
/***/ 19121:
|
|
65
|
+
/***/ ((module) => {
|
|
66
|
+
|
|
67
|
+
module.exports = require("next/dist/server/app-render/action-async-storage.external.js");
|
|
68
|
+
|
|
69
|
+
/***/ }),
|
|
70
|
+
|
|
71
|
+
/***/ 27910:
|
|
72
|
+
/***/ ((module) => {
|
|
73
|
+
|
|
74
|
+
module.exports = require("stream");
|
|
75
|
+
|
|
76
|
+
/***/ }),
|
|
77
|
+
|
|
78
|
+
/***/ 28354:
|
|
79
|
+
/***/ ((module) => {
|
|
80
|
+
|
|
81
|
+
module.exports = require("util");
|
|
82
|
+
|
|
83
|
+
/***/ }),
|
|
84
|
+
|
|
85
|
+
/***/ 29021:
|
|
86
|
+
/***/ ((module) => {
|
|
87
|
+
|
|
88
|
+
module.exports = require("fs");
|
|
89
|
+
|
|
90
|
+
/***/ }),
|
|
91
|
+
|
|
92
|
+
/***/ 29294:
|
|
93
|
+
/***/ ((module) => {
|
|
94
|
+
|
|
95
|
+
module.exports = require("next/dist/server/app-render/work-async-storage.external.js");
|
|
96
|
+
|
|
97
|
+
/***/ }),
|
|
98
|
+
|
|
99
|
+
/***/ 31421:
|
|
100
|
+
/***/ ((module) => {
|
|
101
|
+
|
|
102
|
+
module.exports = require("node:child_process");
|
|
103
|
+
|
|
104
|
+
/***/ }),
|
|
105
|
+
|
|
106
|
+
/***/ 33873:
|
|
107
|
+
/***/ ((module) => {
|
|
108
|
+
|
|
109
|
+
module.exports = require("path");
|
|
110
|
+
|
|
111
|
+
/***/ }),
|
|
112
|
+
|
|
113
|
+
/***/ 37067:
|
|
114
|
+
/***/ ((module) => {
|
|
115
|
+
|
|
116
|
+
module.exports = require("node:http");
|
|
117
|
+
|
|
118
|
+
/***/ }),
|
|
119
|
+
|
|
120
|
+
/***/ 38522:
|
|
121
|
+
/***/ ((module) => {
|
|
122
|
+
|
|
123
|
+
module.exports = require("node:zlib");
|
|
124
|
+
|
|
125
|
+
/***/ }),
|
|
126
|
+
|
|
127
|
+
/***/ 39583:
|
|
58
128
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
59
129
|
|
|
60
|
-
__webpack_require__.r(__webpack_exports__);
|
|
61
130
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
62
|
-
/* harmony export */
|
|
63
|
-
/* harmony export */ patchFetch: () => (/* binding */ patchFetch),
|
|
64
|
-
/* harmony export */ routeModule: () => (/* binding */ routeModule),
|
|
65
|
-
/* harmony export */ serverHooks: () => (/* binding */ serverHooks),
|
|
66
|
-
/* harmony export */ workAsyncStorage: () => (/* binding */ workAsyncStorage),
|
|
67
|
-
/* harmony export */ workUnitAsyncStorage: () => (/* binding */ workUnitAsyncStorage)
|
|
131
|
+
/* harmony export */ $: () => (/* binding */ moveThreadContextBoundary)
|
|
68
132
|
/* harmony export */ });
|
|
69
|
-
/* harmony import */ var
|
|
70
|
-
/* harmony import */ var
|
|
71
|
-
/* harmony import */ var next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(84006);
|
|
72
|
-
/* harmony import */ var next_dist_server_lib_patch_fetch__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8317);
|
|
73
|
-
/* 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__);
|
|
74
|
-
/* harmony import */ var next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(99373);
|
|
75
|
-
/* 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__);
|
|
76
|
-
/* harmony import */ var next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(34775);
|
|
77
|
-
/* 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__);
|
|
78
|
-
/* harmony import */ var next_dist_server_app_render_manifests_singleton__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(24235);
|
|
79
|
-
/* 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__);
|
|
80
|
-
/* harmony import */ var next_dist_shared_lib_router_utils_app_paths__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(261);
|
|
81
|
-
/* 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__);
|
|
82
|
-
/* harmony import */ var next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(54365);
|
|
83
|
-
/* 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__);
|
|
84
|
-
/* harmony import */ var next_dist_server_web_spec_extension_adapters_next_request__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(90771);
|
|
85
|
-
/* 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__);
|
|
86
|
-
/* harmony import */ var next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(73461);
|
|
87
|
-
/* 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__);
|
|
88
|
-
/* harmony import */ var next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(67798);
|
|
89
|
-
/* harmony import */ var next_dist_server_send_response__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(92280);
|
|
90
|
-
/* harmony import */ var next_dist_server_web_utils__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(62018);
|
|
91
|
-
/* 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__);
|
|
92
|
-
/* harmony import */ var next_dist_server_lib_cache_control__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(45696);
|
|
93
|
-
/* harmony import */ var next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(47929);
|
|
94
|
-
/* harmony import */ var next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__);
|
|
95
|
-
/* harmony import */ var next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(86439);
|
|
96
|
-
/* 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__);
|
|
97
|
-
/* harmony import */ var next_dist_server_lib_route_cache_key__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(10246);
|
|
98
|
-
/* 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__);
|
|
99
|
-
/* harmony import */ var next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(37527);
|
|
100
|
-
/* 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__);
|
|
133
|
+
/* harmony import */ var _lib_stores_threads__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(83042);
|
|
134
|
+
/* harmony import */ var _lib_agents_warm_summary_background__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(36923);
|
|
101
135
|
|
|
102
136
|
|
|
137
|
+
// Every caller of moveThreadContextBoundary represents a user-initiated
|
|
138
|
+
// boundary change (drag the line, the manual /compact command, or the agent's
|
|
139
|
+
// compact_context tool acting on the user's say-so) — the
|
|
140
|
+
// auto-detector's own commit (lib/agents/warm-summary-background.ts
|
|
141
|
+
// commitBoundaryCompaction) calls setThreadContextPin directly instead, so
|
|
142
|
+
// it never re-arms this lock. Suppresses the hot-turn-limit compaction in
|
|
143
|
+
// lib/agents/run-thread.ts for the next N eligible turns so a manual
|
|
144
|
+
// choice doesn't get silently re-moved on the very next turn.
|
|
145
|
+
// Counted in messages (~2 per turn: one user + one assistant row) since
|
|
146
|
+
// that's what's already on the thread row — no extra query or per-turn
|
|
147
|
+
// write needed to check it.
|
|
148
|
+
const MANUAL_PIN_COOLDOWN_TURNS = 5;
|
|
149
|
+
const MESSAGES_PER_TURN = 2;
|
|
150
|
+
function moveThreadContextBoundary(threadId, boundarySeq, options = {}) {
|
|
151
|
+
// Do not expose a narrower hot query before its replacement warm context
|
|
152
|
+
// exists. The background coordinator publishes both in one transaction.
|
|
153
|
+
if (boundarySeq !== null && options.refreshWarmSummary) {
|
|
154
|
+
const currentCount = (0,_lib_stores_threads__WEBPACK_IMPORTED_MODULE_0__/* .getThread */ .fG)(threadId)?.message_count ?? 0;
|
|
155
|
+
(0,_lib_agents_warm_summary_background__WEBPACK_IMPORTED_MODULE_1__/* .kickBoundaryCompaction */ .Wg)(threadId, boundarySeq, {
|
|
156
|
+
autoBoundaryLockedUntilMessageCount: currentCount + MANUAL_PIN_COOLDOWN_TURNS * MESSAGES_PER_TURN
|
|
157
|
+
});
|
|
158
|
+
return (0,_lib_stores_threads__WEBPACK_IMPORTED_MODULE_0__/* .getThread */ .fG)(threadId);
|
|
159
|
+
}
|
|
160
|
+
const source = boundarySeq === null ? null : (0,_lib_stores_threads__WEBPACK_IMPORTED_MODULE_0__/* .getThreadMessageBySeq */ .wc)(threadId, boundarySeq);
|
|
161
|
+
if (boundarySeq !== null && !source) throw new Error("Boundary seq does not belong to this thread");
|
|
162
|
+
(0,_lib_stores_threads__WEBPACK_IMPORTED_MODULE_0__/* .setThreadContextPin */ .T1)(threadId, source?.created_at ?? null, boundarySeq);
|
|
163
|
+
// Clearing the pin (hotSince=null) means the user wants auto-detection
|
|
164
|
+
// back in full control right away — clear the lock instead of arming it.
|
|
165
|
+
// Only an actual manual placement earns a cooldown.
|
|
166
|
+
const currentCount = (0,_lib_stores_threads__WEBPACK_IMPORTED_MODULE_0__/* .getThread */ .fG)(threadId)?.message_count ?? 0;
|
|
167
|
+
(0,_lib_stores_threads__WEBPACK_IMPORTED_MODULE_0__/* .setAutoBoundaryLock */ .NU)(threadId, boundarySeq !== null ? currentCount + MANUAL_PIN_COOLDOWN_TURNS * MESSAGES_PER_TURN : 0);
|
|
168
|
+
return (0,_lib_stores_threads__WEBPACK_IMPORTED_MODULE_0__/* .getThread */ .fG)(threadId);
|
|
169
|
+
}
|
|
103
170
|
|
|
104
171
|
|
|
172
|
+
/***/ }),
|
|
105
173
|
|
|
174
|
+
/***/ 44708:
|
|
175
|
+
/***/ ((module) => {
|
|
106
176
|
|
|
177
|
+
module.exports = require("node:https");
|
|
107
178
|
|
|
179
|
+
/***/ }),
|
|
108
180
|
|
|
181
|
+
/***/ 44870:
|
|
182
|
+
/***/ ((module) => {
|
|
109
183
|
|
|
184
|
+
module.exports = require("next/dist/compiled/next-server/app-route.runtime.prod.js");
|
|
110
185
|
|
|
186
|
+
/***/ }),
|
|
111
187
|
|
|
188
|
+
/***/ 48161:
|
|
189
|
+
/***/ ((module) => {
|
|
112
190
|
|
|
191
|
+
module.exports = require("node:os");
|
|
113
192
|
|
|
193
|
+
/***/ }),
|
|
114
194
|
|
|
195
|
+
/***/ 51455:
|
|
196
|
+
/***/ ((module) => {
|
|
115
197
|
|
|
198
|
+
module.exports = require("node:fs/promises");
|
|
116
199
|
|
|
200
|
+
/***/ }),
|
|
117
201
|
|
|
202
|
+
/***/ 55511:
|
|
203
|
+
/***/ ((module) => {
|
|
118
204
|
|
|
119
|
-
|
|
120
|
-
// module.
|
|
121
|
-
const nextConfigOutput = "standalone"
|
|
122
|
-
const routeModule = new next_dist_server_route_modules_app_route_module_compiled__WEBPACK_IMPORTED_MODULE_0__.AppRouteRouteModule({
|
|
123
|
-
definition: {
|
|
124
|
-
kind: next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__.RouteKind.APP_ROUTE,
|
|
125
|
-
page: "/api/v1/threads/[thread_id]/context-pin/route",
|
|
126
|
-
pathname: "/api/v1/threads/[thread_id]/context-pin",
|
|
127
|
-
filename: "route",
|
|
128
|
-
bundlePath: "app/api/v1/threads/[thread_id]/context-pin/route"
|
|
129
|
-
},
|
|
130
|
-
distDir: ".next" || 0,
|
|
131
|
-
relativeProjectDir: false || '',
|
|
132
|
-
resolvedPagePath: "/home/runner/work/jarela/jarela/app/api/v1/threads/[thread_id]/context-pin/route.ts",
|
|
133
|
-
nextConfigOutput,
|
|
134
|
-
// The lazy require factory ensures that:
|
|
135
|
-
// - In dev: devRequestTimingInternalsEnd is set before userland executes,
|
|
136
|
-
// correctly attributing module load time to application-code rather than
|
|
137
|
-
// framework internals.
|
|
138
|
-
// - In all modes: async modules (route files with top-level await) are
|
|
139
|
-
// handled correctly — require() returns a Promise for such modules, which
|
|
140
|
-
// ensureUserland() awaits before the first request is handled.
|
|
141
|
-
userland: ()=>__webpack_require__(74809),
|
|
142
|
-
// In Turbopack dev mode, also provide a synchronous per-request getter so
|
|
143
|
-
// server HMR updates are picked up without re-executing the entry chunk.
|
|
144
|
-
// Using require() (synchronous) avoids adding async overhead that would be
|
|
145
|
-
// incorrectly attributed to application-code time in devRequestTiming.
|
|
146
|
-
... false ? 0 : {}
|
|
147
|
-
});
|
|
148
|
-
// Pull out the exports that we need to expose from the module. This should
|
|
149
|
-
// be eliminated when we've moved the other routes to the new format. These
|
|
150
|
-
// are used to hook into the route.
|
|
151
|
-
const { workAsyncStorage, workUnitAsyncStorage, serverHooks } = routeModule;
|
|
152
|
-
function patchFetch() {
|
|
153
|
-
return (0,next_dist_server_lib_patch_fetch__WEBPACK_IMPORTED_MODULE_2__.patchFetch)({
|
|
154
|
-
workAsyncStorage,
|
|
155
|
-
workUnitAsyncStorage
|
|
156
|
-
});
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
async function handler(req, res, ctx) {
|
|
160
|
-
if (ctx.requestMeta) {
|
|
161
|
-
(0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.setRequestMeta)(req, ctx.requestMeta);
|
|
162
|
-
}
|
|
163
|
-
if (routeModule.isDev) {
|
|
164
|
-
(0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.addRequestMeta)(req, 'devRequestTimingInternalsEnd', process.hrtime.bigint());
|
|
165
|
-
}
|
|
166
|
-
let srcPage = "/api/v1/threads/[thread_id]/context-pin/route";
|
|
167
|
-
// turbopack doesn't normalize `/index` in the page name
|
|
168
|
-
// so we need to to process dynamic routes properly
|
|
169
|
-
// TODO: fix turbopack providing differing value from webpack
|
|
170
|
-
if (false) {} else if (srcPage === '/index') {
|
|
171
|
-
// we always normalize /index specifically
|
|
172
|
-
srcPage = '/';
|
|
173
|
-
}
|
|
174
|
-
const multiZoneDraftMode = false;
|
|
175
|
-
const prepareResult = await routeModule.prepare(req, res, {
|
|
176
|
-
srcPage,
|
|
177
|
-
multiZoneDraftMode
|
|
178
|
-
});
|
|
179
|
-
if (!prepareResult) {
|
|
180
|
-
res.statusCode = 400;
|
|
181
|
-
res.end('Bad Request');
|
|
182
|
-
ctx.waitUntil == null ? void 0 : ctx.waitUntil.call(ctx, Promise.resolve());
|
|
183
|
-
return null;
|
|
184
|
-
}
|
|
185
|
-
const { buildId, deploymentId, params, nextConfig, parsedUrl, isDraftMode, prerenderManifest, routerServerContext, isOnDemandRevalidate, revalidateOnlyGenerated, resolvedPathname, clientReferenceManifest, serverActionsManifest, previewProps } = prepareResult;
|
|
186
|
-
const normalizedSrcPage = (0,next_dist_shared_lib_router_utils_app_paths__WEBPACK_IMPORTED_MODULE_6__.normalizeAppPath)(srcPage);
|
|
187
|
-
// Only this route's prerenders can establish ISR or admit generated params.
|
|
188
|
-
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]));
|
|
189
|
-
let isIsr = Boolean(prerenderManifest.dynamicRoutes[normalizedSrcPage] || isPrerendered);
|
|
190
|
-
const render404 = async ()=>{
|
|
191
|
-
// TODO: should route-module itself handle rendering the 404
|
|
192
|
-
if (routerServerContext == null ? void 0 : routerServerContext.render404) {
|
|
193
|
-
await routerServerContext.render404(req, res, parsedUrl, false);
|
|
194
|
-
} else {
|
|
195
|
-
res.end('This page could not be found');
|
|
196
|
-
}
|
|
197
|
-
return null;
|
|
198
|
-
};
|
|
199
|
-
if (isIsr && !isDraftMode) {
|
|
200
|
-
const prerenderInfo = prerenderManifest.dynamicRoutes[normalizedSrcPage];
|
|
201
|
-
if (prerenderInfo) {
|
|
202
|
-
if (prerenderInfo.fallback === false && !isPrerendered) {
|
|
203
|
-
if (nextConfig.adapterPath) {
|
|
204
|
-
return await render404();
|
|
205
|
-
}
|
|
206
|
-
throw new next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_15__.NoFallbackError();
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
let cacheKey = null;
|
|
211
|
-
if (isIsr && !routeModule.isDev && !isDraftMode) {
|
|
212
|
-
cacheKey = resolvedPathname;
|
|
213
|
-
// ensure /index and / is normalized to one key
|
|
214
|
-
cacheKey = cacheKey === '/index' ? '/' : cacheKey;
|
|
215
|
-
}
|
|
216
|
-
// Before rendering (which initializes component tree modules), we have to
|
|
217
|
-
// set the reference manifests to our global store so Server Action's
|
|
218
|
-
// encryption util can access to them at the top level of the page module.
|
|
219
|
-
if (serverActionsManifest && clientReferenceManifest) {
|
|
220
|
-
(0,next_dist_server_app_render_manifests_singleton__WEBPACK_IMPORTED_MODULE_5__.setManifestsSingleton)({
|
|
221
|
-
page: srcPage,
|
|
222
|
-
clientReferenceManifest,
|
|
223
|
-
serverActionsManifest
|
|
224
|
-
});
|
|
225
|
-
}
|
|
226
|
-
const method = req.method || 'GET';
|
|
227
|
-
const tracer = (0,next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.getTracer)();
|
|
228
|
-
const activeSpan = tracer.getActiveScopeSpan();
|
|
229
|
-
const isWrappedByNextServer = Boolean(routerServerContext == null ? void 0 : routerServerContext.isWrappedByNextServer);
|
|
230
|
-
const isMinimalMode = Boolean((0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.getRequestMeta)(req, 'minimalMode'));
|
|
231
|
-
const incrementalCache = (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.getRequestMeta)(req, 'incrementalCache') || await routeModule.getIncrementalCache(req, nextConfig, previewProps, prerenderManifest, isMinimalMode);
|
|
232
|
-
incrementalCache == null ? void 0 : incrementalCache.resetRequestCache();
|
|
233
|
-
globalThis.__incrementalCache = incrementalCache;
|
|
234
|
-
const context = {
|
|
235
|
-
params,
|
|
236
|
-
previewProps,
|
|
237
|
-
renderOpts: {
|
|
238
|
-
experimental: {
|
|
239
|
-
authInterrupts: Boolean(nextConfig.experimental.authInterrupts),
|
|
240
|
-
useCacheTimeout: nextConfig.experimental.useCacheTimeout,
|
|
241
|
-
durableUseCacheEntries: Boolean(nextConfig.experimental.durableUseCacheEntries)
|
|
242
|
-
},
|
|
243
|
-
cacheComponents: Boolean(nextConfig.cacheComponents),
|
|
244
|
-
validationLevel: nextConfig.experimental.instantInsights.validationLevel,
|
|
245
|
-
isDraftMode,
|
|
246
|
-
incrementalCache,
|
|
247
|
-
hmrRefreshHash: (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.getRequestMeta)(req, 'hmrRefreshHash'),
|
|
248
|
-
cacheLifeProfiles: nextConfig.cacheLife,
|
|
249
|
-
staticPageGenerationTimeout: nextConfig.staticPageGenerationTimeout,
|
|
250
|
-
waitUntil: ctx.waitUntil,
|
|
251
|
-
onClose: (cb)=>{
|
|
252
|
-
res.on('close', cb);
|
|
253
|
-
},
|
|
254
|
-
onAfterTaskError: undefined
|
|
255
|
-
},
|
|
256
|
-
sharedContext: {
|
|
257
|
-
buildId,
|
|
258
|
-
deploymentId
|
|
259
|
-
}
|
|
260
|
-
};
|
|
261
|
-
const nodeNextReq = new next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_7__.NodeNextRequest(req);
|
|
262
|
-
const nodeNextRes = new next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_7__.NodeNextResponse(res);
|
|
263
|
-
const nextReq = next_dist_server_web_spec_extension_adapters_next_request__WEBPACK_IMPORTED_MODULE_8__.NextRequestAdapter.fromNodeNextRequest(nodeNextReq, (0,next_dist_server_web_spec_extension_adapters_next_request__WEBPACK_IMPORTED_MODULE_8__.signalFromNodeResponse)(res));
|
|
264
|
-
const responseGenerator = async ({ previousCacheEntry })=>{
|
|
265
|
-
try {
|
|
266
|
-
if (!isMinimalMode && isOnDemandRevalidate && revalidateOnlyGenerated && !previousCacheEntry) {
|
|
267
|
-
res.statusCode = 404;
|
|
268
|
-
// on-demand revalidate always sets this header
|
|
269
|
-
res.setHeader('x-nextjs-cache', 'REVALIDATED');
|
|
270
|
-
res.end('This page could not be found');
|
|
271
|
-
return null;
|
|
272
|
-
}
|
|
273
|
-
const response = cacheKey === null ? await routeModule.handle(nextReq, context) : await routeModule.prerender(nextReq, context);
|
|
274
|
-
req.fetchMetrics = context.renderOpts.fetchMetrics;
|
|
275
|
-
let pendingWaitUntil = context.renderOpts.pendingWaitUntil;
|
|
276
|
-
// Attempt using provided waitUntil if available
|
|
277
|
-
// if it's not we fallback to sendResponse's handling
|
|
278
|
-
if (pendingWaitUntil) {
|
|
279
|
-
if (ctx.waitUntil) {
|
|
280
|
-
ctx.waitUntil(pendingWaitUntil);
|
|
281
|
-
pendingWaitUntil = undefined;
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
const cacheTags = context.renderOpts.collectedTags;
|
|
285
|
-
// If the request is for a static response, we can cache it so long
|
|
286
|
-
// as it's not edge.
|
|
287
|
-
if (isIsr) {
|
|
288
|
-
const blob = await response.blob();
|
|
289
|
-
// Copy the headers from the response.
|
|
290
|
-
const headers = (0,next_dist_server_web_utils__WEBPACK_IMPORTED_MODULE_12__.toNodeOutgoingHttpHeaders)(response.headers);
|
|
291
|
-
if (cacheTags) {
|
|
292
|
-
headers[next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__.NEXT_CACHE_TAGS_HEADER] = cacheTags;
|
|
293
|
-
}
|
|
294
|
-
if (!headers['content-type'] && blob.type) {
|
|
295
|
-
headers['content-type'] = blob.type;
|
|
296
|
-
}
|
|
297
|
-
const revalidate = typeof context.renderOpts.collectedRevalidate === 'undefined' || context.renderOpts.collectedRevalidate >= next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__.INFINITE_CACHE ? false : context.renderOpts.collectedRevalidate;
|
|
298
|
-
const expire = typeof context.renderOpts.collectedExpire === 'undefined' || context.renderOpts.collectedExpire >= next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__.INFINITE_CACHE ? // route has a numeric `revalidate` but didn't declare an
|
|
299
|
-
// explicit `expire` (e.g. via `cacheLife`). This mirrors the
|
|
300
|
-
// build-time fallback in `build/index.ts` so cache entries
|
|
301
|
-
// and the response Cache-Control header agree on the route's
|
|
302
|
-
// effective expire. Routes that opt out of revalidation
|
|
303
|
-
// (`revalidate: false`) or that are dynamic (`revalidate: 0`)
|
|
304
|
-
// keep `expire: undefined`.
|
|
305
|
-
revalidate !== false && revalidate > 0 ? nextConfig.expireTime : undefined : context.renderOpts.collectedExpire;
|
|
306
|
-
// Create the cache entry for the response.
|
|
307
|
-
const cacheEntry = {
|
|
308
|
-
value: {
|
|
309
|
-
kind: next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__.CachedRouteKind.APP_ROUTE,
|
|
310
|
-
status: response.status,
|
|
311
|
-
body: Buffer.from(await blob.arrayBuffer()),
|
|
312
|
-
headers
|
|
313
|
-
},
|
|
314
|
-
cacheControl: {
|
|
315
|
-
revalidate,
|
|
316
|
-
expire
|
|
317
|
-
}
|
|
318
|
-
};
|
|
319
|
-
return cacheEntry;
|
|
320
|
-
} else {
|
|
321
|
-
// send response without caching if not ISR
|
|
322
|
-
await (0,next_dist_server_send_response__WEBPACK_IMPORTED_MODULE_11__/* .sendResponse */ .I)(nodeNextReq, nodeNextRes, response, pendingWaitUntil);
|
|
323
|
-
return null;
|
|
324
|
-
}
|
|
325
|
-
} catch (err) {
|
|
326
|
-
// if this is a background revalidate we need to report
|
|
327
|
-
// the request error here as it won't be bubbled
|
|
328
|
-
if (previousCacheEntry == null ? void 0 : previousCacheEntry.isStale) {
|
|
329
|
-
const silenceLog = false;
|
|
330
|
-
await routeModule.onRequestError(req, err, {
|
|
331
|
-
routerKind: 'App Router',
|
|
332
|
-
routePath: srcPage,
|
|
333
|
-
routeType: 'route',
|
|
334
|
-
revalidateReason: (0,next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_10__.getRevalidateReason)({
|
|
335
|
-
isStaticGeneration: cacheKey !== null,
|
|
336
|
-
isOnDemandRevalidate
|
|
337
|
-
})
|
|
338
|
-
}, silenceLog, routerServerContext);
|
|
339
|
-
}
|
|
340
|
-
throw err;
|
|
341
|
-
}
|
|
342
|
-
};
|
|
343
|
-
const handleResponse = async (currentSpan, parentSpan)=>{
|
|
344
|
-
try {
|
|
345
|
-
var _cacheEntry_value;
|
|
346
|
-
const cacheEntry = await routeModule.handleResponse({
|
|
347
|
-
req,
|
|
348
|
-
nextConfig,
|
|
349
|
-
cacheKey,
|
|
350
|
-
routeKind: next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__.RouteKind.APP_ROUTE,
|
|
351
|
-
isFallback: false,
|
|
352
|
-
previewProps,
|
|
353
|
-
prerenderManifest,
|
|
354
|
-
isRoutePPREnabled: false,
|
|
355
|
-
isOnDemandRevalidate,
|
|
356
|
-
revalidateOnlyGenerated,
|
|
357
|
-
responseGenerator,
|
|
358
|
-
waitUntil: ctx.waitUntil,
|
|
359
|
-
isMinimalMode
|
|
360
|
-
});
|
|
361
|
-
if (cacheEntry !== null && 'error' in cacheEntry) {
|
|
362
|
-
throw cacheEntry.error;
|
|
363
|
-
}
|
|
364
|
-
// we don't create a cacheEntry for ISR
|
|
365
|
-
if (!isIsr) {
|
|
366
|
-
return;
|
|
367
|
-
}
|
|
368
|
-
if ((cacheEntry == null ? void 0 : (_cacheEntry_value = cacheEntry.value) == null ? void 0 : _cacheEntry_value.kind) !== next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__.CachedRouteKind.APP_ROUTE) {
|
|
369
|
-
var _cacheEntry_value1;
|
|
370
|
-
throw new Error(`Invariant: app-route received invalid cache entry ${cacheEntry == null ? void 0 : (_cacheEntry_value1 = cacheEntry.value) == null ? void 0 : _cacheEntry_value1.kind}`);
|
|
371
|
-
}
|
|
372
|
-
if (!isMinimalMode) {
|
|
373
|
-
res.setHeader('x-nextjs-cache', isOnDemandRevalidate ? 'REVALIDATED' : cacheEntry.isMiss ? 'MISS' : cacheEntry.isStale ? 'STALE' : 'HIT');
|
|
374
|
-
}
|
|
375
|
-
// Draft mode should never be cached
|
|
376
|
-
if (isDraftMode) {
|
|
377
|
-
res.setHeader('Cache-Control', 'private, no-cache, no-store, max-age=0, must-revalidate');
|
|
378
|
-
}
|
|
379
|
-
const headers = (0,next_dist_server_web_utils__WEBPACK_IMPORTED_MODULE_12__.fromNodeOutgoingHttpHeaders)(cacheEntry.value.headers);
|
|
380
|
-
if (!(isMinimalMode && isIsr)) {
|
|
381
|
-
headers.delete(next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__.NEXT_CACHE_TAGS_HEADER);
|
|
382
|
-
}
|
|
383
|
-
// If cache control is already set on the response we don't
|
|
384
|
-
// override it to allow users to customize it via next.config
|
|
385
|
-
if (cacheEntry.cacheControl && !res.getHeader('Cache-Control') && !headers.get('Cache-Control')) {
|
|
386
|
-
headers.set('Cache-Control', (0,next_dist_server_lib_cache_control__WEBPACK_IMPORTED_MODULE_13__.getCacheControlHeader)(cacheEntry.cacheControl));
|
|
387
|
-
}
|
|
388
|
-
await (0,next_dist_server_send_response__WEBPACK_IMPORTED_MODULE_11__/* .sendResponse */ .I)(nodeNextReq, nodeNextRes, // @ts-expect-error - Argument of type 'Buffer<ArrayBufferLike>' is not assignable to parameter of type 'BodyInit | null | undefined'.
|
|
389
|
-
new Response(cacheEntry.value.body, {
|
|
390
|
-
headers,
|
|
391
|
-
status: cacheEntry.value.status || 200
|
|
392
|
-
}));
|
|
393
|
-
return;
|
|
394
|
-
} catch (err) {
|
|
395
|
-
if (!(err instanceof next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_15__.NoFallbackError)) {
|
|
396
|
-
const silenceLog = false;
|
|
397
|
-
await routeModule.onRequestError(req, err, {
|
|
398
|
-
routerKind: 'App Router',
|
|
399
|
-
routePath: normalizedSrcPage,
|
|
400
|
-
routeType: 'route',
|
|
401
|
-
revalidateReason: (0,next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_10__.getRevalidateReason)({
|
|
402
|
-
isStaticGeneration: cacheKey !== null,
|
|
403
|
-
isOnDemandRevalidate
|
|
404
|
-
})
|
|
405
|
-
}, silenceLog, routerServerContext);
|
|
406
|
-
}
|
|
407
|
-
// rethrow so that we can handle serving error page
|
|
408
|
-
// If this is during static generation, throw the error again.
|
|
409
|
-
if (isIsr) throw err;
|
|
410
|
-
// Otherwise, send a 500 response unless the original response has
|
|
411
|
-
// already committed. In that case, preserve its status code for
|
|
412
|
-
// telemetry while still recording the failure and terminating a response
|
|
413
|
-
// that the failed pipeline left open.
|
|
414
|
-
if (res.headersSent) {
|
|
415
|
-
if (currentSpan) {
|
|
416
|
-
const error = err instanceof Error ? err : new Error('Unknown app route error');
|
|
417
|
-
currentSpan.recordException(error);
|
|
418
|
-
currentSpan.setStatus({
|
|
419
|
-
code: next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.SpanStatusCode.ERROR,
|
|
420
|
-
message: error.message
|
|
421
|
-
});
|
|
422
|
-
currentSpan.setAttribute('error.type', error.name);
|
|
423
|
-
}
|
|
424
|
-
if (!res.writableEnded && !res.destroyed) {
|
|
425
|
-
res.end();
|
|
426
|
-
}
|
|
427
|
-
} else {
|
|
428
|
-
await (0,next_dist_server_send_response__WEBPACK_IMPORTED_MODULE_11__/* .sendResponse */ .I)(nodeNextReq, nodeNextRes, new Response(null, {
|
|
429
|
-
status: 500
|
|
430
|
-
}));
|
|
431
|
-
}
|
|
432
|
-
return;
|
|
433
|
-
} finally{
|
|
434
|
-
;
|
|
435
|
-
(()=>{
|
|
436
|
-
if (!currentSpan) {
|
|
437
|
-
return;
|
|
438
|
-
}
|
|
439
|
-
let statusCode = res.statusCode;
|
|
440
|
-
currentSpan.setAttributes({
|
|
441
|
-
'http.status_code': statusCode,
|
|
442
|
-
'next.rsc': false
|
|
443
|
-
});
|
|
444
|
-
if (statusCode && statusCode >= 500) {
|
|
445
|
-
// For 5xx status codes: SHOULD be set to 'Error' span status.
|
|
446
|
-
// x-ref: https://opentelemetry.io/docs/specs/semconv/http/http-spans/#status
|
|
447
|
-
currentSpan.setStatus({
|
|
448
|
-
code: next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.SpanStatusCode.ERROR
|
|
449
|
-
});
|
|
450
|
-
// For span status 'Error', SHOULD set 'error.type' attribute.
|
|
451
|
-
currentSpan.setAttribute('error.type', statusCode.toString());
|
|
452
|
-
}
|
|
453
|
-
const rootSpanAttributes = tracer.getRootSpanAttributes();
|
|
454
|
-
// We were unable to get attributes, probably OTEL is not enabled
|
|
455
|
-
if (!rootSpanAttributes) {
|
|
456
|
-
return;
|
|
457
|
-
}
|
|
458
|
-
if (rootSpanAttributes.get('next.span_type') !== next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_9__.BaseServerSpan.handleRequest) {
|
|
459
|
-
console.warn(`Unexpected root span type '${rootSpanAttributes.get('next.span_type')}'. Please report this Next.js issue https://github.com/vercel/next.js`);
|
|
460
|
-
return;
|
|
461
|
-
}
|
|
462
|
-
const route = rootSpanAttributes.get('next.route') || normalizedSrcPage;
|
|
463
|
-
const name = `${method} ${route}`;
|
|
464
|
-
currentSpan.setAttributes({
|
|
465
|
-
'next.route': route,
|
|
466
|
-
'http.route': route,
|
|
467
|
-
'next.span_name': name
|
|
468
|
-
});
|
|
469
|
-
currentSpan.updateName(name);
|
|
470
|
-
// Propagate http.route to the parent span if one exists (e.g.
|
|
471
|
-
// a platform-created HTTP span in adapter deployments).
|
|
472
|
-
if (parentSpan && parentSpan !== currentSpan) {
|
|
473
|
-
parentSpan.setAttribute('http.route', route);
|
|
474
|
-
parentSpan.updateName(name);
|
|
475
|
-
}
|
|
476
|
-
})();
|
|
477
|
-
}
|
|
478
|
-
};
|
|
479
|
-
// TODO: activeSpan code path is for when wrapped by
|
|
480
|
-
// next-server can be removed when this is no longer used
|
|
481
|
-
if (isWrappedByNextServer && activeSpan) {
|
|
482
|
-
await handleResponse(activeSpan, undefined);
|
|
483
|
-
} else {
|
|
484
|
-
let parentSpan = tracer.getActiveScopeSpan();
|
|
485
|
-
await tracer.withPropagatedContext(req.headers, ()=>tracer.trace(next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_9__.BaseServerSpan.handleRequest, {
|
|
486
|
-
spanName: `${method} ${srcPage}`,
|
|
487
|
-
kind: next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.SpanKind.SERVER,
|
|
488
|
-
attributes: {
|
|
489
|
-
'http.method': method,
|
|
490
|
-
'http.target': req.url
|
|
491
|
-
}
|
|
492
|
-
}, (span)=>handleResponse(span, parentSpan)), undefined, !isWrappedByNextServer);
|
|
493
|
-
}
|
|
494
|
-
}
|
|
495
|
-
|
|
496
|
-
//# sourceMappingURL=app-route.js.map
|
|
497
|
-
|
|
205
|
+
module.exports = require("crypto");
|
|
498
206
|
|
|
499
207
|
/***/ }),
|
|
500
208
|
|
|
501
|
-
/***/
|
|
209
|
+
/***/ 55591:
|
|
502
210
|
/***/ ((module) => {
|
|
503
211
|
|
|
504
|
-
module.exports = require("
|
|
212
|
+
module.exports = require("https");
|
|
505
213
|
|
|
506
214
|
/***/ }),
|
|
507
215
|
|
|
508
|
-
/***/
|
|
216
|
+
/***/ 57075:
|
|
509
217
|
/***/ ((module) => {
|
|
510
218
|
|
|
511
|
-
module.exports = require("
|
|
219
|
+
module.exports = require("node:stream");
|
|
512
220
|
|
|
513
221
|
/***/ }),
|
|
514
222
|
|
|
515
|
-
/***/
|
|
223
|
+
/***/ 57975:
|
|
516
224
|
/***/ ((module) => {
|
|
517
225
|
|
|
518
|
-
module.exports = require("
|
|
226
|
+
module.exports = require("node:util");
|
|
519
227
|
|
|
520
228
|
/***/ }),
|
|
521
229
|
|
|
522
|
-
/***/
|
|
230
|
+
/***/ 63033:
|
|
523
231
|
/***/ ((module) => {
|
|
524
232
|
|
|
525
|
-
module.exports = require("
|
|
233
|
+
module.exports = require("next/dist/server/app-render/work-unit-async-storage.external.js");
|
|
526
234
|
|
|
527
235
|
/***/ }),
|
|
528
236
|
|
|
529
|
-
/***/
|
|
237
|
+
/***/ 73024:
|
|
530
238
|
/***/ ((module) => {
|
|
531
239
|
|
|
532
|
-
module.exports = require("fs");
|
|
240
|
+
module.exports = require("node:fs");
|
|
533
241
|
|
|
534
242
|
/***/ }),
|
|
535
243
|
|
|
536
|
-
/***/
|
|
537
|
-
/***/ ((
|
|
244
|
+
/***/ 74809:
|
|
245
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
538
246
|
|
|
539
|
-
|
|
247
|
+
__webpack_require__.r(__webpack_exports__);
|
|
248
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
249
|
+
/* harmony export */ PATCH: () => (/* binding */ PATCH)
|
|
250
|
+
/* harmony export */ });
|
|
251
|
+
/* harmony import */ var next_server__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23211);
|
|
252
|
+
/* harmony import */ var zod__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(97377);
|
|
253
|
+
/* harmony import */ var _lib_stores_threads__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(83042);
|
|
254
|
+
/* harmony import */ var _lib_agents_context_boundary__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(39583);
|
|
255
|
+
/* harmony import */ var _lib_agents_warm_summary_background__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36923);
|
|
256
|
+
/* harmony import */ var _lib_agents_conversation_summary__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(15393);
|
|
540
257
|
|
|
541
|
-
/***/ }),
|
|
542
258
|
|
|
543
|
-
/***/ 31421:
|
|
544
|
-
/***/ ((module) => {
|
|
545
259
|
|
|
546
|
-
module.exports = require("node:child_process");
|
|
547
260
|
|
|
548
|
-
/***/ }),
|
|
549
261
|
|
|
550
|
-
/***/ 33873:
|
|
551
|
-
/***/ ((module) => {
|
|
552
262
|
|
|
553
|
-
|
|
263
|
+
// ADR-0042. Move the user's hot/warm boundary without sending a turn. The
|
|
264
|
+
// summary refresh is kicked off asynchronously in background so the drag stays
|
|
265
|
+
// snappy and the updated warm recap appears shortly after commit.
|
|
266
|
+
const Body = zod__WEBPACK_IMPORTED_MODULE_4__/* .object */ .Ikc({
|
|
267
|
+
hot_since_seq: zod__WEBPACK_IMPORTED_MODULE_4__/* .number */ .aig().int().positive().nullable()
|
|
268
|
+
});
|
|
269
|
+
async function PATCH(req, { params }) {
|
|
270
|
+
const { thread_id } = await params;
|
|
271
|
+
const thread = (0,_lib_stores_threads__WEBPACK_IMPORTED_MODULE_1__/* .getThread */ .fG)(thread_id);
|
|
272
|
+
if (!thread) return next_server__WEBPACK_IMPORTED_MODULE_0__.NextResponse.json({
|
|
273
|
+
error: "Thread not found"
|
|
274
|
+
}, {
|
|
275
|
+
status: 404
|
|
276
|
+
});
|
|
277
|
+
const parsed = Body.safeParse(await req.json().catch(()=>null));
|
|
278
|
+
if (!parsed.success) {
|
|
279
|
+
return next_server__WEBPACK_IMPORTED_MODULE_0__.NextResponse.json({
|
|
280
|
+
error: "Body must be { hot_since_seq: number | null }",
|
|
281
|
+
code: "invalid_body"
|
|
282
|
+
}, {
|
|
283
|
+
status: 400
|
|
284
|
+
});
|
|
285
|
+
}
|
|
286
|
+
const requestedSeq = parsed.data.hot_since_seq;
|
|
287
|
+
const source = typeof requestedSeq === "number" ? (0,_lib_stores_threads__WEBPACK_IMPORTED_MODULE_1__/* .getThreadMessageBySeq */ .wc)(thread_id, requestedSeq) : null;
|
|
288
|
+
if (typeof requestedSeq === "number" && !source) {
|
|
289
|
+
return next_server__WEBPACK_IMPORTED_MODULE_0__.NextResponse.json({
|
|
290
|
+
error: "Boundary seq does not belong to this thread",
|
|
291
|
+
code: "invalid_boundary"
|
|
292
|
+
}, {
|
|
293
|
+
status: 400
|
|
294
|
+
});
|
|
295
|
+
}
|
|
296
|
+
const updated = (0,_lib_agents_context_boundary__WEBPACK_IMPORTED_MODULE_2__/* .moveThreadContextBoundary */ .$)(thread_id, requestedSeq, {
|
|
297
|
+
refreshWarmSummary: true
|
|
298
|
+
});
|
|
299
|
+
return next_server__WEBPACK_IMPORTED_MODULE_0__.NextResponse.json({
|
|
300
|
+
hot_since: updated?.hot_since ?? null,
|
|
301
|
+
hot_since_seq: updated?.hot_since_seq ?? null,
|
|
302
|
+
warm_summary: updated?.warm_summary ?? null,
|
|
303
|
+
warm_summary_before: updated?.warm_summary_before ?? null,
|
|
304
|
+
warm_summary_before_seq: updated?.warm_summary_before_seq ?? null,
|
|
305
|
+
warm_summary_computed_at: updated?.warm_summary_computed_at ?? null,
|
|
306
|
+
warm_summary_source_messages: updated?.warm_summary_source_messages ?? null,
|
|
307
|
+
warm_summary_source_chars: updated?.warm_summary_source_chars ?? null,
|
|
308
|
+
warm_summary_topics: (0,_lib_agents_conversation_summary__WEBPACK_IMPORTED_MODULE_5__/* .parseStoredTopics */ .hP)(updated?.warm_summary_topics),
|
|
309
|
+
warm_channel_summaries: (0,_lib_agents_warm_summary_background__WEBPACK_IMPORTED_MODULE_3__/* .currentChannelSummaries */ .XG)(thread_id, updated?.hot_since_seq),
|
|
310
|
+
pending_hot_since: (0,_lib_agents_warm_summary_background__WEBPACK_IMPORTED_MODULE_3__/* .pendingCompactionBoundary */ .Xm)(thread_id),
|
|
311
|
+
pending_hot_since_seq: (0,_lib_agents_warm_summary_background__WEBPACK_IMPORTED_MODULE_3__/* .pendingCompactionBoundarySeq */ .Wn)(thread_id)
|
|
312
|
+
});
|
|
313
|
+
}
|
|
314
|
+
|
|
554
315
|
|
|
555
316
|
/***/ }),
|
|
556
317
|
|
|
557
|
-
/***/
|
|
318
|
+
/***/ 75919:
|
|
558
319
|
/***/ ((module) => {
|
|
559
320
|
|
|
560
|
-
module.exports = require("node:
|
|
321
|
+
module.exports = require("node:worker_threads");
|
|
561
322
|
|
|
562
323
|
/***/ }),
|
|
563
324
|
|
|
564
|
-
/***/
|
|
325
|
+
/***/ 76760:
|
|
565
326
|
/***/ ((module) => {
|
|
566
327
|
|
|
567
|
-
module.exports = require("node:
|
|
328
|
+
module.exports = require("node:path");
|
|
568
329
|
|
|
569
330
|
/***/ }),
|
|
570
331
|
|
|
571
|
-
/***/
|
|
572
|
-
/***/ ((
|
|
573
|
-
|
|
574
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
575
|
-
/* harmony export */ $: () => (/* binding */ moveThreadContextBoundary)
|
|
576
|
-
/* harmony export */ });
|
|
577
|
-
/* harmony import */ var _lib_stores_threads__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(83042);
|
|
578
|
-
/* harmony import */ var _lib_agents_warm_summary_background__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(79640);
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
// Every caller of moveThreadContextBoundary represents a user-initiated
|
|
582
|
-
// boundary change (drag the line, the manual /compact command, or the agent's
|
|
583
|
-
// compact_context tool acting on the user's say-so) — the
|
|
584
|
-
// auto-detector's own commit (lib/agents/warm-summary-background.ts
|
|
585
|
-
// commitBoundaryCompaction) calls setThreadContextPin directly instead, so
|
|
586
|
-
// it never re-arms this lock. Suppresses the hot-turn-limit compaction in
|
|
587
|
-
// lib/agents/run-thread.ts for the next N eligible turns so a manual
|
|
588
|
-
// choice doesn't get silently re-moved on the very next turn.
|
|
589
|
-
// Counted in messages (~2 per turn: one user + one assistant row) since
|
|
590
|
-
// that's what's already on the thread row — no extra query or per-turn
|
|
591
|
-
// write needed to check it.
|
|
592
|
-
const MANUAL_PIN_COOLDOWN_TURNS = 5;
|
|
593
|
-
const MESSAGES_PER_TURN = 2;
|
|
594
|
-
function moveThreadContextBoundary(threadId, boundarySeq, options = {}) {
|
|
595
|
-
// Do not expose a narrower hot query before its replacement warm context
|
|
596
|
-
// exists. The background coordinator publishes both in one transaction.
|
|
597
|
-
if (boundarySeq !== null && options.refreshWarmSummary) {
|
|
598
|
-
const currentCount = (0,_lib_stores_threads__WEBPACK_IMPORTED_MODULE_0__/* .getThread */ .fG)(threadId)?.message_count ?? 0;
|
|
599
|
-
(0,_lib_agents_warm_summary_background__WEBPACK_IMPORTED_MODULE_1__/* .kickBoundaryCompaction */ .Wg)(threadId, boundarySeq, {
|
|
600
|
-
autoBoundaryLockedUntilMessageCount: currentCount + MANUAL_PIN_COOLDOWN_TURNS * MESSAGES_PER_TURN
|
|
601
|
-
});
|
|
602
|
-
return (0,_lib_stores_threads__WEBPACK_IMPORTED_MODULE_0__/* .getThread */ .fG)(threadId);
|
|
603
|
-
}
|
|
604
|
-
const source = boundarySeq === null ? null : (0,_lib_stores_threads__WEBPACK_IMPORTED_MODULE_0__/* .getThreadMessageBySeq */ .wc)(threadId, boundarySeq);
|
|
605
|
-
if (boundarySeq !== null && !source) throw new Error("Boundary seq does not belong to this thread");
|
|
606
|
-
(0,_lib_stores_threads__WEBPACK_IMPORTED_MODULE_0__/* .setThreadContextPin */ .T1)(threadId, source?.created_at ?? null, boundarySeq);
|
|
607
|
-
// Clearing the pin (hotSince=null) means the user wants auto-detection
|
|
608
|
-
// back in full control right away — clear the lock instead of arming it.
|
|
609
|
-
// Only an actual manual placement earns a cooldown.
|
|
610
|
-
const currentCount = (0,_lib_stores_threads__WEBPACK_IMPORTED_MODULE_0__/* .getThread */ .fG)(threadId)?.message_count ?? 0;
|
|
611
|
-
(0,_lib_stores_threads__WEBPACK_IMPORTED_MODULE_0__/* .setAutoBoundaryLock */ .NU)(threadId, boundarySeq !== null ? currentCount + MANUAL_PIN_COOLDOWN_TURNS * MESSAGES_PER_TURN : 0);
|
|
612
|
-
return (0,_lib_stores_threads__WEBPACK_IMPORTED_MODULE_0__/* .getThread */ .fG)(threadId);
|
|
613
|
-
}
|
|
332
|
+
/***/ 77598:
|
|
333
|
+
/***/ ((module) => {
|
|
614
334
|
|
|
335
|
+
module.exports = require("node:crypto");
|
|
615
336
|
|
|
616
337
|
/***/ }),
|
|
617
338
|
|
|
618
|
-
/***/
|
|
339
|
+
/***/ 79428:
|
|
619
340
|
/***/ ((module) => {
|
|
620
341
|
|
|
621
|
-
module.exports = require("
|
|
342
|
+
module.exports = require("buffer");
|
|
622
343
|
|
|
623
344
|
/***/ }),
|
|
624
345
|
|
|
625
|
-
/***/
|
|
346
|
+
/***/ 80099:
|
|
626
347
|
/***/ ((module) => {
|
|
627
348
|
|
|
628
|
-
module.exports = require("
|
|
349
|
+
module.exports = require("node:sqlite");
|
|
629
350
|
|
|
630
351
|
/***/ }),
|
|
631
352
|
|
|
632
|
-
/***/
|
|
353
|
+
/***/ 80481:
|
|
633
354
|
/***/ ((module) => {
|
|
634
355
|
|
|
635
|
-
module.exports = require("node:
|
|
356
|
+
module.exports = require("node:readline");
|
|
636
357
|
|
|
637
358
|
/***/ }),
|
|
638
359
|
|
|
639
|
-
/***/
|
|
360
|
+
/***/ 81630:
|
|
640
361
|
/***/ ((module) => {
|
|
641
362
|
|
|
642
|
-
module.exports = require("
|
|
363
|
+
module.exports = require("http");
|
|
643
364
|
|
|
644
365
|
/***/ }),
|
|
645
366
|
|
|
646
|
-
/***/
|
|
367
|
+
/***/ 86439:
|
|
647
368
|
/***/ ((module) => {
|
|
648
369
|
|
|
649
|
-
module.exports = require("
|
|
370
|
+
module.exports = require("next/dist/shared/lib/no-fallback-error.external");
|
|
650
371
|
|
|
651
372
|
/***/ }),
|
|
652
373
|
|
|
653
|
-
/***/
|
|
374
|
+
/***/ 94735:
|
|
654
375
|
/***/ ((module) => {
|
|
655
376
|
|
|
656
|
-
module.exports = require("
|
|
377
|
+
module.exports = require("events");
|
|
657
378
|
|
|
658
379
|
/***/ }),
|
|
659
380
|
|
|
660
|
-
/***/
|
|
661
|
-
/***/ ((
|
|
381
|
+
/***/ 96915:
|
|
382
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
662
383
|
|
|
663
|
-
|
|
384
|
+
__webpack_require__.r(__webpack_exports__);
|
|
385
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
386
|
+
/* harmony export */ handler: () => (/* binding */ handler),
|
|
387
|
+
/* harmony export */ patchFetch: () => (/* binding */ patchFetch),
|
|
388
|
+
/* harmony export */ routeModule: () => (/* binding */ routeModule),
|
|
389
|
+
/* harmony export */ serverHooks: () => (/* binding */ serverHooks),
|
|
390
|
+
/* harmony export */ workAsyncStorage: () => (/* binding */ workAsyncStorage),
|
|
391
|
+
/* harmony export */ workUnitAsyncStorage: () => (/* binding */ workUnitAsyncStorage)
|
|
392
|
+
/* harmony export */ });
|
|
393
|
+
/* harmony import */ var next_dist_server_route_modules_app_route_module_compiled__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(19225);
|
|
394
|
+
/* 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__);
|
|
395
|
+
/* harmony import */ var next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(84006);
|
|
396
|
+
/* harmony import */ var next_dist_server_lib_patch_fetch__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8317);
|
|
397
|
+
/* 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__);
|
|
398
|
+
/* harmony import */ var next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(99373);
|
|
399
|
+
/* 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__);
|
|
400
|
+
/* harmony import */ var next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(34775);
|
|
401
|
+
/* 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__);
|
|
402
|
+
/* harmony import */ var next_dist_server_app_render_manifests_singleton__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(24235);
|
|
403
|
+
/* 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__);
|
|
404
|
+
/* harmony import */ var next_dist_shared_lib_router_utils_app_paths__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(261);
|
|
405
|
+
/* 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__);
|
|
406
|
+
/* harmony import */ var next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(54365);
|
|
407
|
+
/* 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__);
|
|
408
|
+
/* harmony import */ var next_dist_server_web_spec_extension_adapters_next_request__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(90771);
|
|
409
|
+
/* 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__);
|
|
410
|
+
/* harmony import */ var next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(73461);
|
|
411
|
+
/* 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__);
|
|
412
|
+
/* harmony import */ var next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(67798);
|
|
413
|
+
/* harmony import */ var next_dist_server_send_response__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(92280);
|
|
414
|
+
/* harmony import */ var next_dist_server_web_utils__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(62018);
|
|
415
|
+
/* 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__);
|
|
416
|
+
/* harmony import */ var next_dist_server_lib_cache_control__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(45696);
|
|
417
|
+
/* harmony import */ var next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(47929);
|
|
418
|
+
/* harmony import */ var next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__);
|
|
419
|
+
/* harmony import */ var next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(86439);
|
|
420
|
+
/* 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__);
|
|
421
|
+
/* harmony import */ var next_dist_server_lib_route_cache_key__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(10246);
|
|
422
|
+
/* 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__);
|
|
423
|
+
/* harmony import */ var next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(37527);
|
|
424
|
+
/* 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__);
|
|
664
425
|
|
|
665
|
-
/***/ }),
|
|
666
426
|
|
|
667
|
-
/***/ 57975:
|
|
668
|
-
/***/ ((module) => {
|
|
669
427
|
|
|
670
|
-
module.exports = require("node:util");
|
|
671
428
|
|
|
672
|
-
/***/ }),
|
|
673
429
|
|
|
674
|
-
/***/ 63033:
|
|
675
|
-
/***/ ((module) => {
|
|
676
430
|
|
|
677
|
-
module.exports = require("next/dist/server/app-render/work-unit-async-storage.external.js");
|
|
678
431
|
|
|
679
|
-
/***/ }),
|
|
680
432
|
|
|
681
|
-
/***/ 73024:
|
|
682
|
-
/***/ ((module) => {
|
|
683
433
|
|
|
684
|
-
module.exports = require("node:fs");
|
|
685
434
|
|
|
686
|
-
/***/ }),
|
|
687
435
|
|
|
688
|
-
/***/ 74809:
|
|
689
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
690
436
|
|
|
691
|
-
__webpack_require__.r(__webpack_exports__);
|
|
692
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
693
|
-
/* harmony export */ PATCH: () => (/* binding */ PATCH)
|
|
694
|
-
/* harmony export */ });
|
|
695
|
-
/* harmony import */ var next_server__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23211);
|
|
696
|
-
/* harmony import */ var zod__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(97377);
|
|
697
|
-
/* harmony import */ var _lib_stores_threads__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(83042);
|
|
698
|
-
/* harmony import */ var _lib_agents_context_boundary__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(39583);
|
|
699
|
-
/* harmony import */ var _lib_agents_warm_summary_background__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(79640);
|
|
700
|
-
/* harmony import */ var _lib_agents_conversation_summary__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(15393);
|
|
701
437
|
|
|
702
438
|
|
|
703
439
|
|
|
704
440
|
|
|
705
441
|
|
|
706
442
|
|
|
707
|
-
//
|
|
708
|
-
//
|
|
709
|
-
|
|
710
|
-
const
|
|
711
|
-
|
|
443
|
+
// We inject the nextConfigOutput here so that we can use them in the route
|
|
444
|
+
// module.
|
|
445
|
+
const nextConfigOutput = "standalone"
|
|
446
|
+
const routeModule = new next_dist_server_route_modules_app_route_module_compiled__WEBPACK_IMPORTED_MODULE_0__.AppRouteRouteModule({
|
|
447
|
+
definition: {
|
|
448
|
+
kind: next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__.RouteKind.APP_ROUTE,
|
|
449
|
+
page: "/api/v1/threads/[thread_id]/context-pin/route",
|
|
450
|
+
pathname: "/api/v1/threads/[thread_id]/context-pin",
|
|
451
|
+
filename: "route",
|
|
452
|
+
bundlePath: "app/api/v1/threads/[thread_id]/context-pin/route"
|
|
453
|
+
},
|
|
454
|
+
distDir: ".next" || 0,
|
|
455
|
+
relativeProjectDir: false || '',
|
|
456
|
+
resolvedPagePath: "/home/runner/work/jarela/jarela/app/api/v1/threads/[thread_id]/context-pin/route.ts",
|
|
457
|
+
nextConfigOutput,
|
|
458
|
+
// The lazy require factory ensures that:
|
|
459
|
+
// - In dev: devRequestTimingInternalsEnd is set before userland executes,
|
|
460
|
+
// correctly attributing module load time to application-code rather than
|
|
461
|
+
// framework internals.
|
|
462
|
+
// - In all modes: async modules (route files with top-level await) are
|
|
463
|
+
// handled correctly — require() returns a Promise for such modules, which
|
|
464
|
+
// ensureUserland() awaits before the first request is handled.
|
|
465
|
+
userland: ()=>__webpack_require__(74809),
|
|
466
|
+
// In Turbopack dev mode, also provide a synchronous per-request getter so
|
|
467
|
+
// server HMR updates are picked up without re-executing the entry chunk.
|
|
468
|
+
// Using require() (synchronous) avoids adding async overhead that would be
|
|
469
|
+
// incorrectly attributed to application-code time in devRequestTiming.
|
|
470
|
+
... false ? 0 : {}
|
|
712
471
|
});
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
472
|
+
// Pull out the exports that we need to expose from the module. This should
|
|
473
|
+
// be eliminated when we've moved the other routes to the new format. These
|
|
474
|
+
// are used to hook into the route.
|
|
475
|
+
const { workAsyncStorage, workUnitAsyncStorage, serverHooks } = routeModule;
|
|
476
|
+
function patchFetch() {
|
|
477
|
+
return (0,next_dist_server_lib_patch_fetch__WEBPACK_IMPORTED_MODULE_2__.patchFetch)({
|
|
478
|
+
workAsyncStorage,
|
|
479
|
+
workUnitAsyncStorage
|
|
720
480
|
});
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
}, {
|
|
727
|
-
status: 400
|
|
728
|
-
});
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
async function handler(req, res, ctx) {
|
|
484
|
+
if (ctx.requestMeta) {
|
|
485
|
+
(0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.setRequestMeta)(req, ctx.requestMeta);
|
|
729
486
|
}
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
487
|
+
if (routeModule.isDev) {
|
|
488
|
+
(0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.addRequestMeta)(req, 'devRequestTimingInternalsEnd', process.hrtime.bigint());
|
|
489
|
+
}
|
|
490
|
+
let srcPage = "/api/v1/threads/[thread_id]/context-pin/route";
|
|
491
|
+
// turbopack doesn't normalize `/index` in the page name
|
|
492
|
+
// so we need to to process dynamic routes properly
|
|
493
|
+
// TODO: fix turbopack providing differing value from webpack
|
|
494
|
+
if (false) {} else if (srcPage === '/index') {
|
|
495
|
+
// we always normalize /index specifically
|
|
496
|
+
srcPage = '/';
|
|
497
|
+
}
|
|
498
|
+
const multiZoneDraftMode = false;
|
|
499
|
+
const prepareResult = await routeModule.prepare(req, res, {
|
|
500
|
+
srcPage,
|
|
501
|
+
multiZoneDraftMode
|
|
502
|
+
});
|
|
503
|
+
if (!prepareResult) {
|
|
504
|
+
res.statusCode = 400;
|
|
505
|
+
res.end('Bad Request');
|
|
506
|
+
ctx.waitUntil == null ? void 0 : ctx.waitUntil.call(ctx, Promise.resolve());
|
|
507
|
+
return null;
|
|
508
|
+
}
|
|
509
|
+
const { buildId, deploymentId, params, nextConfig, parsedUrl, isDraftMode, prerenderManifest, routerServerContext, isOnDemandRevalidate, revalidateOnlyGenerated, resolvedPathname, clientReferenceManifest, serverActionsManifest, previewProps } = prepareResult;
|
|
510
|
+
const normalizedSrcPage = (0,next_dist_shared_lib_router_utils_app_paths__WEBPACK_IMPORTED_MODULE_6__.normalizeAppPath)(srcPage);
|
|
511
|
+
// Only this route's prerenders can establish ISR or admit generated params.
|
|
512
|
+
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]));
|
|
513
|
+
let isIsr = Boolean(prerenderManifest.dynamicRoutes[normalizedSrcPage] || isPrerendered);
|
|
514
|
+
const render404 = async ()=>{
|
|
515
|
+
// TODO: should route-module itself handle rendering the 404
|
|
516
|
+
if (routerServerContext == null ? void 0 : routerServerContext.render404) {
|
|
517
|
+
await routerServerContext.render404(req, res, parsedUrl, false);
|
|
518
|
+
} else {
|
|
519
|
+
res.end('This page could not be found');
|
|
520
|
+
}
|
|
521
|
+
return null;
|
|
522
|
+
};
|
|
523
|
+
if (isIsr && !isDraftMode) {
|
|
524
|
+
const prerenderInfo = prerenderManifest.dynamicRoutes[normalizedSrcPage];
|
|
525
|
+
if (prerenderInfo) {
|
|
526
|
+
if (prerenderInfo.fallback === false && !isPrerendered) {
|
|
527
|
+
if (nextConfig.adapterPath) {
|
|
528
|
+
return await render404();
|
|
529
|
+
}
|
|
530
|
+
throw new next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_15__.NoFallbackError();
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
let cacheKey = null;
|
|
535
|
+
if (isIsr && !routeModule.isDev && !isDraftMode) {
|
|
536
|
+
cacheKey = resolvedPathname;
|
|
537
|
+
// ensure /index and / is normalized to one key
|
|
538
|
+
cacheKey = cacheKey === '/index' ? '/' : cacheKey;
|
|
539
|
+
}
|
|
540
|
+
// Before rendering (which initializes component tree modules), we have to
|
|
541
|
+
// set the reference manifests to our global store so Server Action's
|
|
542
|
+
// encryption util can access to them at the top level of the page module.
|
|
543
|
+
if (serverActionsManifest && clientReferenceManifest) {
|
|
544
|
+
(0,next_dist_server_app_render_manifests_singleton__WEBPACK_IMPORTED_MODULE_5__.setManifestsSingleton)({
|
|
545
|
+
page: srcPage,
|
|
546
|
+
clientReferenceManifest,
|
|
547
|
+
serverActionsManifest
|
|
738
548
|
});
|
|
739
549
|
}
|
|
740
|
-
const
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
550
|
+
const method = req.method || 'GET';
|
|
551
|
+
const tracer = (0,next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.getTracer)();
|
|
552
|
+
const activeSpan = tracer.getActiveScopeSpan();
|
|
553
|
+
const isWrappedByNextServer = Boolean(routerServerContext == null ? void 0 : routerServerContext.isWrappedByNextServer);
|
|
554
|
+
const isMinimalMode = Boolean((0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.getRequestMeta)(req, 'minimalMode'));
|
|
555
|
+
const incrementalCache = (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.getRequestMeta)(req, 'incrementalCache') || await routeModule.getIncrementalCache(req, nextConfig, previewProps, prerenderManifest, isMinimalMode);
|
|
556
|
+
incrementalCache == null ? void 0 : incrementalCache.resetRequestCache();
|
|
557
|
+
globalThis.__incrementalCache = incrementalCache;
|
|
558
|
+
const context = {
|
|
559
|
+
params,
|
|
560
|
+
previewProps,
|
|
561
|
+
renderOpts: {
|
|
562
|
+
experimental: {
|
|
563
|
+
authInterrupts: Boolean(nextConfig.experimental.authInterrupts),
|
|
564
|
+
useCacheTimeout: nextConfig.experimental.useCacheTimeout,
|
|
565
|
+
durableUseCacheEntries: Boolean(nextConfig.experimental.durableUseCacheEntries)
|
|
566
|
+
},
|
|
567
|
+
cacheComponents: Boolean(nextConfig.cacheComponents),
|
|
568
|
+
validationLevel: nextConfig.experimental.instantInsights.validationLevel,
|
|
569
|
+
isDraftMode,
|
|
570
|
+
incrementalCache,
|
|
571
|
+
hmrRefreshHash: (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.getRequestMeta)(req, 'hmrRefreshHash'),
|
|
572
|
+
cacheLifeProfiles: nextConfig.cacheLife,
|
|
573
|
+
staticPageGenerationTimeout: nextConfig.staticPageGenerationTimeout,
|
|
574
|
+
waitUntil: ctx.waitUntil,
|
|
575
|
+
onClose: (cb)=>{
|
|
576
|
+
res.on('close', cb);
|
|
577
|
+
},
|
|
578
|
+
onAfterTaskError: undefined
|
|
579
|
+
},
|
|
580
|
+
sharedContext: {
|
|
581
|
+
buildId,
|
|
582
|
+
deploymentId
|
|
583
|
+
}
|
|
584
|
+
};
|
|
585
|
+
const nodeNextReq = new next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_7__.NodeNextRequest(req);
|
|
586
|
+
const nodeNextRes = new next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_7__.NodeNextResponse(res);
|
|
587
|
+
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));
|
|
588
|
+
const responseGenerator = async ({ previousCacheEntry })=>{
|
|
589
|
+
try {
|
|
590
|
+
if (!isMinimalMode && isOnDemandRevalidate && revalidateOnlyGenerated && !previousCacheEntry) {
|
|
591
|
+
res.statusCode = 404;
|
|
592
|
+
// on-demand revalidate always sets this header
|
|
593
|
+
res.setHeader('x-nextjs-cache', 'REVALIDATED');
|
|
594
|
+
res.end('This page could not be found');
|
|
595
|
+
return null;
|
|
596
|
+
}
|
|
597
|
+
const response = cacheKey === null ? await routeModule.handle(nextReq, context) : await routeModule.prerender(nextReq, context);
|
|
598
|
+
req.fetchMetrics = context.renderOpts.fetchMetrics;
|
|
599
|
+
let pendingWaitUntil = context.renderOpts.pendingWaitUntil;
|
|
600
|
+
// Attempt using provided waitUntil if available
|
|
601
|
+
// if it's not we fallback to sendResponse's handling
|
|
602
|
+
if (pendingWaitUntil) {
|
|
603
|
+
if (ctx.waitUntil) {
|
|
604
|
+
ctx.waitUntil(pendingWaitUntil);
|
|
605
|
+
pendingWaitUntil = undefined;
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
const cacheTags = context.renderOpts.collectedTags;
|
|
609
|
+
// If the request is for a static response, we can cache it so long
|
|
610
|
+
// as it's not edge.
|
|
611
|
+
if (isIsr) {
|
|
612
|
+
const blob = await response.blob();
|
|
613
|
+
// Copy the headers from the response.
|
|
614
|
+
const headers = (0,next_dist_server_web_utils__WEBPACK_IMPORTED_MODULE_12__.toNodeOutgoingHttpHeaders)(response.headers);
|
|
615
|
+
if (cacheTags) {
|
|
616
|
+
headers[next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__.NEXT_CACHE_TAGS_HEADER] = cacheTags;
|
|
617
|
+
}
|
|
618
|
+
if (!headers['content-type'] && blob.type) {
|
|
619
|
+
headers['content-type'] = blob.type;
|
|
620
|
+
}
|
|
621
|
+
const revalidate = typeof context.renderOpts.collectedRevalidate === 'undefined' || context.renderOpts.collectedRevalidate >= next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__.INFINITE_CACHE ? false : context.renderOpts.collectedRevalidate;
|
|
622
|
+
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
|
|
623
|
+
// explicit `expire` (e.g. via `cacheLife`). This mirrors the
|
|
624
|
+
// build-time fallback in `build/index.ts` so cache entries
|
|
625
|
+
// and the response Cache-Control header agree on the route's
|
|
626
|
+
// effective expire. Routes that opt out of revalidation
|
|
627
|
+
// (`revalidate: false`) or that are dynamic (`revalidate: 0`)
|
|
628
|
+
// keep `expire: undefined`.
|
|
629
|
+
revalidate !== false && revalidate > 0 ? nextConfig.expireTime : undefined : context.renderOpts.collectedExpire;
|
|
630
|
+
// Create the cache entry for the response.
|
|
631
|
+
const cacheEntry = {
|
|
632
|
+
value: {
|
|
633
|
+
kind: next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__.CachedRouteKind.APP_ROUTE,
|
|
634
|
+
status: response.status,
|
|
635
|
+
body: Buffer.from(await blob.arrayBuffer()),
|
|
636
|
+
headers
|
|
637
|
+
},
|
|
638
|
+
cacheControl: {
|
|
639
|
+
revalidate,
|
|
640
|
+
expire
|
|
641
|
+
}
|
|
642
|
+
};
|
|
643
|
+
return cacheEntry;
|
|
644
|
+
} else {
|
|
645
|
+
// send response without caching if not ISR
|
|
646
|
+
await (0,next_dist_server_send_response__WEBPACK_IMPORTED_MODULE_11__/* .sendResponse */ .I)(nodeNextReq, nodeNextRes, response, pendingWaitUntil);
|
|
647
|
+
return null;
|
|
648
|
+
}
|
|
649
|
+
} catch (err) {
|
|
650
|
+
// if this is a background revalidate we need to report
|
|
651
|
+
// the request error here as it won't be bubbled
|
|
652
|
+
if (previousCacheEntry == null ? void 0 : previousCacheEntry.isStale) {
|
|
653
|
+
const silenceLog = false;
|
|
654
|
+
await routeModule.onRequestError(req, err, {
|
|
655
|
+
routerKind: 'App Router',
|
|
656
|
+
routePath: srcPage,
|
|
657
|
+
routeType: 'route',
|
|
658
|
+
revalidateReason: (0,next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_10__.getRevalidateReason)({
|
|
659
|
+
isStaticGeneration: cacheKey !== null,
|
|
660
|
+
isOnDemandRevalidate
|
|
661
|
+
})
|
|
662
|
+
}, silenceLog, routerServerContext);
|
|
663
|
+
}
|
|
664
|
+
throw err;
|
|
665
|
+
}
|
|
666
|
+
};
|
|
667
|
+
const handleResponse = async (currentSpan, parentSpan)=>{
|
|
668
|
+
try {
|
|
669
|
+
var _cacheEntry_value;
|
|
670
|
+
const cacheEntry = await routeModule.handleResponse({
|
|
671
|
+
req,
|
|
672
|
+
nextConfig,
|
|
673
|
+
cacheKey,
|
|
674
|
+
routeKind: next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__.RouteKind.APP_ROUTE,
|
|
675
|
+
isFallback: false,
|
|
676
|
+
previewProps,
|
|
677
|
+
prerenderManifest,
|
|
678
|
+
isRoutePPREnabled: false,
|
|
679
|
+
isOnDemandRevalidate,
|
|
680
|
+
revalidateOnlyGenerated,
|
|
681
|
+
responseGenerator,
|
|
682
|
+
waitUntil: ctx.waitUntil,
|
|
683
|
+
isMinimalMode
|
|
684
|
+
});
|
|
685
|
+
if (cacheEntry !== null && 'error' in cacheEntry) {
|
|
686
|
+
throw cacheEntry.error;
|
|
687
|
+
}
|
|
688
|
+
// we don't create a cacheEntry for ISR
|
|
689
|
+
if (!isIsr) {
|
|
690
|
+
return;
|
|
691
|
+
}
|
|
692
|
+
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) {
|
|
693
|
+
var _cacheEntry_value1;
|
|
694
|
+
throw new Error(`Invariant: app-route received invalid cache entry ${cacheEntry == null ? void 0 : (_cacheEntry_value1 = cacheEntry.value) == null ? void 0 : _cacheEntry_value1.kind}`);
|
|
695
|
+
}
|
|
696
|
+
if (!isMinimalMode) {
|
|
697
|
+
res.setHeader('x-nextjs-cache', isOnDemandRevalidate ? 'REVALIDATED' : cacheEntry.isMiss ? 'MISS' : cacheEntry.isStale ? 'STALE' : 'HIT');
|
|
698
|
+
}
|
|
699
|
+
// Draft mode should never be cached
|
|
700
|
+
if (isDraftMode) {
|
|
701
|
+
res.setHeader('Cache-Control', 'private, no-cache, no-store, max-age=0, must-revalidate');
|
|
702
|
+
}
|
|
703
|
+
const headers = (0,next_dist_server_web_utils__WEBPACK_IMPORTED_MODULE_12__.fromNodeOutgoingHttpHeaders)(cacheEntry.value.headers);
|
|
704
|
+
if (!(isMinimalMode && isIsr)) {
|
|
705
|
+
headers.delete(next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__.NEXT_CACHE_TAGS_HEADER);
|
|
706
|
+
}
|
|
707
|
+
// If cache control is already set on the response we don't
|
|
708
|
+
// override it to allow users to customize it via next.config
|
|
709
|
+
if (cacheEntry.cacheControl && !res.getHeader('Cache-Control') && !headers.get('Cache-Control')) {
|
|
710
|
+
headers.set('Cache-Control', (0,next_dist_server_lib_cache_control__WEBPACK_IMPORTED_MODULE_13__.getCacheControlHeader)(cacheEntry.cacheControl));
|
|
711
|
+
}
|
|
712
|
+
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'.
|
|
713
|
+
new Response(cacheEntry.value.body, {
|
|
714
|
+
headers,
|
|
715
|
+
status: cacheEntry.value.status || 200
|
|
716
|
+
}));
|
|
717
|
+
return;
|
|
718
|
+
} catch (err) {
|
|
719
|
+
if (!(err instanceof next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_15__.NoFallbackError)) {
|
|
720
|
+
const silenceLog = false;
|
|
721
|
+
await routeModule.onRequestError(req, err, {
|
|
722
|
+
routerKind: 'App Router',
|
|
723
|
+
routePath: normalizedSrcPage,
|
|
724
|
+
routeType: 'route',
|
|
725
|
+
revalidateReason: (0,next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_10__.getRevalidateReason)({
|
|
726
|
+
isStaticGeneration: cacheKey !== null,
|
|
727
|
+
isOnDemandRevalidate
|
|
728
|
+
})
|
|
729
|
+
}, silenceLog, routerServerContext);
|
|
730
|
+
}
|
|
731
|
+
// rethrow so that we can handle serving error page
|
|
732
|
+
// If this is during static generation, throw the error again.
|
|
733
|
+
if (isIsr) throw err;
|
|
734
|
+
// Otherwise, send a 500 response unless the original response has
|
|
735
|
+
// already committed. In that case, preserve its status code for
|
|
736
|
+
// telemetry while still recording the failure and terminating a response
|
|
737
|
+
// that the failed pipeline left open.
|
|
738
|
+
if (res.headersSent) {
|
|
739
|
+
if (currentSpan) {
|
|
740
|
+
const error = err instanceof Error ? err : new Error('Unknown app route error');
|
|
741
|
+
currentSpan.recordException(error);
|
|
742
|
+
currentSpan.setStatus({
|
|
743
|
+
code: next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.SpanStatusCode.ERROR,
|
|
744
|
+
message: error.message
|
|
745
|
+
});
|
|
746
|
+
currentSpan.setAttribute('error.type', error.name);
|
|
747
|
+
}
|
|
748
|
+
if (!res.writableEnded && !res.destroyed) {
|
|
749
|
+
res.end();
|
|
750
|
+
}
|
|
751
|
+
} else {
|
|
752
|
+
await (0,next_dist_server_send_response__WEBPACK_IMPORTED_MODULE_11__/* .sendResponse */ .I)(nodeNextReq, nodeNextRes, new Response(null, {
|
|
753
|
+
status: 500
|
|
754
|
+
}));
|
|
755
|
+
}
|
|
756
|
+
return;
|
|
757
|
+
} finally{
|
|
758
|
+
;
|
|
759
|
+
(()=>{
|
|
760
|
+
if (!currentSpan) {
|
|
761
|
+
return;
|
|
762
|
+
}
|
|
763
|
+
let statusCode = res.statusCode;
|
|
764
|
+
currentSpan.setAttributes({
|
|
765
|
+
'http.status_code': statusCode,
|
|
766
|
+
'next.rsc': false
|
|
767
|
+
});
|
|
768
|
+
if (statusCode && statusCode >= 500) {
|
|
769
|
+
// For 5xx status codes: SHOULD be set to 'Error' span status.
|
|
770
|
+
// x-ref: https://opentelemetry.io/docs/specs/semconv/http/http-spans/#status
|
|
771
|
+
currentSpan.setStatus({
|
|
772
|
+
code: next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.SpanStatusCode.ERROR
|
|
773
|
+
});
|
|
774
|
+
// For span status 'Error', SHOULD set 'error.type' attribute.
|
|
775
|
+
currentSpan.setAttribute('error.type', statusCode.toString());
|
|
776
|
+
}
|
|
777
|
+
const rootSpanAttributes = tracer.getRootSpanAttributes();
|
|
778
|
+
// We were unable to get attributes, probably OTEL is not enabled
|
|
779
|
+
if (!rootSpanAttributes) {
|
|
780
|
+
return;
|
|
781
|
+
}
|
|
782
|
+
if (rootSpanAttributes.get('next.span_type') !== next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_9__.BaseServerSpan.handleRequest) {
|
|
783
|
+
console.warn(`Unexpected root span type '${rootSpanAttributes.get('next.span_type')}'. Please report this Next.js issue https://github.com/vercel/next.js`);
|
|
784
|
+
return;
|
|
785
|
+
}
|
|
786
|
+
const route = rootSpanAttributes.get('next.route') || normalizedSrcPage;
|
|
787
|
+
const name = `${method} ${route}`;
|
|
788
|
+
currentSpan.setAttributes({
|
|
789
|
+
'next.route': route,
|
|
790
|
+
'http.route': route,
|
|
791
|
+
'next.span_name': name
|
|
792
|
+
});
|
|
793
|
+
currentSpan.updateName(name);
|
|
794
|
+
// Propagate http.route to the parent span if one exists (e.g.
|
|
795
|
+
// a platform-created HTTP span in adapter deployments).
|
|
796
|
+
if (parentSpan && parentSpan !== currentSpan) {
|
|
797
|
+
parentSpan.setAttribute('http.route', route);
|
|
798
|
+
parentSpan.updateName(name);
|
|
799
|
+
}
|
|
800
|
+
})();
|
|
801
|
+
}
|
|
802
|
+
};
|
|
803
|
+
// TODO: activeSpan code path is for when wrapped by
|
|
804
|
+
// next-server can be removed when this is no longer used
|
|
805
|
+
if (isWrappedByNextServer && activeSpan) {
|
|
806
|
+
await handleResponse(activeSpan, undefined);
|
|
807
|
+
} else {
|
|
808
|
+
let parentSpan = tracer.getActiveScopeSpan();
|
|
809
|
+
await tracer.withPropagatedContext(req.headers, ()=>tracer.trace(next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_9__.BaseServerSpan.handleRequest, {
|
|
810
|
+
spanName: `${method} ${srcPage}`,
|
|
811
|
+
kind: next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.SpanKind.SERVER,
|
|
812
|
+
attributes: {
|
|
813
|
+
'http.method': method,
|
|
814
|
+
'http.target': req.url
|
|
815
|
+
}
|
|
816
|
+
}, (span)=>handleResponse(span, parentSpan)), undefined, !isWrappedByNextServer);
|
|
817
|
+
}
|
|
756
818
|
}
|
|
757
819
|
|
|
820
|
+
//# sourceMappingURL=app-route.js.map
|
|
758
821
|
|
|
759
|
-
/***/ }),
|
|
760
|
-
|
|
761
|
-
/***/ 75919:
|
|
762
|
-
/***/ ((module) => {
|
|
763
|
-
|
|
764
|
-
module.exports = require("node:worker_threads");
|
|
765
|
-
|
|
766
|
-
/***/ }),
|
|
767
|
-
|
|
768
|
-
/***/ 76760:
|
|
769
|
-
/***/ ((module) => {
|
|
770
|
-
|
|
771
|
-
module.exports = require("node:path");
|
|
772
|
-
|
|
773
|
-
/***/ }),
|
|
774
|
-
|
|
775
|
-
/***/ 77598:
|
|
776
|
-
/***/ ((module) => {
|
|
777
|
-
|
|
778
|
-
module.exports = require("node:crypto");
|
|
779
|
-
|
|
780
|
-
/***/ }),
|
|
781
|
-
|
|
782
|
-
/***/ 79428:
|
|
783
|
-
/***/ ((module) => {
|
|
784
|
-
|
|
785
|
-
module.exports = require("buffer");
|
|
786
|
-
|
|
787
|
-
/***/ }),
|
|
788
|
-
|
|
789
|
-
/***/ 80099:
|
|
790
|
-
/***/ ((module) => {
|
|
791
|
-
|
|
792
|
-
module.exports = require("node:sqlite");
|
|
793
|
-
|
|
794
|
-
/***/ }),
|
|
795
|
-
|
|
796
|
-
/***/ 80481:
|
|
797
|
-
/***/ ((module) => {
|
|
798
|
-
|
|
799
|
-
module.exports = require("node:readline");
|
|
800
|
-
|
|
801
|
-
/***/ }),
|
|
802
|
-
|
|
803
|
-
/***/ 81630:
|
|
804
|
-
/***/ ((module) => {
|
|
805
|
-
|
|
806
|
-
module.exports = require("http");
|
|
807
|
-
|
|
808
|
-
/***/ }),
|
|
809
|
-
|
|
810
|
-
/***/ 86439:
|
|
811
|
-
/***/ ((module) => {
|
|
812
|
-
|
|
813
|
-
module.exports = require("next/dist/shared/lib/no-fallback-error.external");
|
|
814
|
-
|
|
815
|
-
/***/ }),
|
|
816
|
-
|
|
817
|
-
/***/ 94735:
|
|
818
|
-
/***/ ((module) => {
|
|
819
|
-
|
|
820
|
-
module.exports = require("events");
|
|
821
822
|
|
|
822
823
|
/***/ }),
|
|
823
824
|
|
|
@@ -835,7 +836,7 @@ module.exports = import("@huggingface/transformers");;
|
|
|
835
836
|
var __webpack_require__ = require("../../../../../../webpack-runtime.js");
|
|
836
837
|
__webpack_require__.C(exports);
|
|
837
838
|
var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
|
|
838
|
-
var __webpack_exports__ = __webpack_require__.X(0, [2970,7377,1813,7981,4992,46,3042,
|
|
839
|
+
var __webpack_exports__ = __webpack_require__.X(0, [2970,7377,1813,7981,4992,46,3042,9304], () => (__webpack_exec__(96915)));
|
|
839
840
|
module.exports = __webpack_exports__;
|
|
840
841
|
|
|
841
842
|
})();
|