@circuitwall/jarela 2.7.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.next/standalone/.next/BUILD_ID +1 -1
- package/.next/standalone/.next/app-path-routes-manifest.json +2 -1
- package/.next/standalone/.next/build-manifest.json +2 -2
- package/.next/standalone/.next/prerender-manifest.json +3 -3
- package/.next/standalone/.next/routes-manifest.json +6 -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 +58 -58
- 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 +127 -127
- package/.next/standalone/.next/server/app/api/v1/access/route.js +372 -372
- package/.next/standalone/.next/server/app/api/v1/agents/[id]/compact/route.js +79 -79
- package/.next/standalone/.next/server/app/api/v1/agents/[id]/display-filters/route.js +641 -641
- package/.next/standalone/.next/server/app/api/v1/agents/[id]/duplicate/route.js +723 -723
- 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 +65 -65
- package/.next/standalone/.next/server/app/api/v1/agents/recent-replies/route.js +227 -227
- package/.next/standalone/.next/server/app/api/v1/agents/route.js +16 -16
- package/.next/standalone/.next/server/app/api/v1/allowed-sites/[hostname]/route.js +384 -384
- package/.next/standalone/.next/server/app/api/v1/allowed-sites/route.js +9 -9
- package/.next/standalone/.next/server/app/api/v1/artifacts/lifecycle/route.js +23 -23
- package/.next/standalone/.next/server/app/api/v1/attachments/files/route.js +203 -203
- package/.next/standalone/.next/server/app/api/v1/attachments/images/route.js +17 -17
- package/.next/standalone/.next/server/app/api/v1/bridges/[id]/chats/route.js +2 -2
- 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 +760 -760
- package/.next/standalone/.next/server/app/api/v1/bridges/[id]/ignores/route.js +699 -699
- package/.next/standalone/.next/server/app/api/v1/bridges/[id]/lookup/route.js +30 -30
- 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 +37 -37
- 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 +480 -480
- 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 +675 -675
- package/.next/standalone/.next/server/app/api/v1/bridges/[id]/routes/route.js +559 -559
- package/.next/standalone/.next/server/app/api/v1/bridges/[id]/status/route.js +23 -23
- 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 +37 -37
- package/.next/standalone/.next/server/app/api/v1/bridges/route.js +1269 -1269
- package/.next/standalone/.next/server/app/api/v1/builtin-tools/route.js +199 -199
- 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 +99 -99
- package/.next/standalone/.next/server/app/api/v1/credentials/[id]/route.js +23 -23
- 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 +169 -169
- 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 +515 -515
- package/.next/standalone/.next/server/app/api/v1/dashboard/metrics/route.js +380 -380
- package/.next/standalone/.next/server/app/api/v1/dashboard/metrics/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/dashboard/pricing/route.js +256 -256
- package/.next/standalone/.next/server/app/api/v1/dashboard/pricing/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/dashboard/pricing-task/route.js +80 -97
- 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 +677 -677
- 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/recall-policy/route.js +856 -0
- package/.next/standalone/.next/server/app/api/v1/documents/recall-policy/route.js.nft.json +1 -0
- package/.next/standalone/.next/server/app/api/v1/documents/recall-policy/route_client-reference-manifest.js +1 -0
- package/.next/standalone/.next/server/app/api/v1/documents/search/route.js +299 -247
- package/.next/standalone/.next/server/app/api/v1/documents/settings/route.js +486 -486
- package/.next/standalone/.next/server/app/api/v1/documents/sources/[id]/reindex/route.js +18 -11
- 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 +666 -666
- 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 +128 -100
- 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 +207 -207
- package/.next/standalone/.next/server/app/api/v1/env-sync/allowlist/route.js +128 -128
- package/.next/standalone/.next/server/app/api/v1/env-sync/route.js +16 -16
- package/.next/standalone/.next/server/app/api/v1/events/route.js +154 -154
- 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 +16 -16
- package/.next/standalone/.next/server/app/api/v1/extension/agents/route.js +97 -97
- 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 +188 -188
- package/.next/standalone/.next/server/app/api/v1/extension/browser/foreground/route.js +93 -93
- package/.next/standalone/.next/server/app/api/v1/extension/browser/history/route.js +9 -9
- package/.next/standalone/.next/server/app/api/v1/extension/browser/poll/route.js +93 -93
- package/.next/standalone/.next/server/app/api/v1/extension/browser/progress/route.js +69 -69
- package/.next/standalone/.next/server/app/api/v1/extension/browser/result/route.js +69 -69
- package/.next/standalone/.next/server/app/api/v1/extension/browser/retry/route.js +65 -65
- package/.next/standalone/.next/server/app/api/v1/extension/browser/status/route.js +223 -223
- package/.next/standalone/.next/server/app/api/v1/extension/browser/tabs/route.js +44 -44
- package/.next/standalone/.next/server/app/api/v1/extension/fill/route.js +93 -93
- 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 +44 -44
- 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 +16 -16
- 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 +722 -722
- 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 +481 -481
- 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 +378 -378
- 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 +510 -510
- 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 +17 -17
- package/.next/standalone/.next/server/app/api/v1/fs/browse/route.js +33 -33
- package/.next/standalone/.next/server/app/api/v1/harnesses/[id]/route.js +397 -397
- package/.next/standalone/.next/server/app/api/v1/harnesses/default/route.js +129 -129
- package/.next/standalone/.next/server/app/api/v1/harnesses/route.js +9 -9
- package/.next/standalone/.next/server/app/api/v1/health/probes/route.js +757 -757
- 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 +228 -228
- package/.next/standalone/.next/server/app/api/v1/integrations/[name]/route.js +37 -37
- package/.next/standalone/.next/server/app/api/v1/integrations/[name]/test/route.js +198 -198
- 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 +9 -9
- package/.next/standalone/.next/server/app/api/v1/integrations/gmail/oauth/start/route.js +845 -845
- package/.next/standalone/.next/server/app/api/v1/integrations/gmail/oauth/status/route.js +23 -23
- package/.next/standalone/.next/server/app/api/v1/integrations/outlook/oauth/callback/route.js +106 -106
- package/.next/standalone/.next/server/app/api/v1/integrations/outlook/oauth/start/route.js +747 -747
- package/.next/standalone/.next/server/app/api/v1/integrations/outlook/oauth/status/route.js +37 -37
- package/.next/standalone/.next/server/app/api/v1/integrations/route.js +37 -37
- package/.next/standalone/.next/server/app/api/v1/lifecycle/adoption/route.js +420 -420
- package/.next/standalone/.next/server/app/api/v1/local-file/route.js +34 -34
- package/.next/standalone/.next/server/app/api/v1/logs/route.js +819 -819
- package/.next/standalone/.next/server/app/api/v1/maps/embed/route.js +217 -217
- package/.next/standalone/.next/server/app/api/v1/mcp-servers/[name]/route.js +1034 -1034
- package/.next/standalone/.next/server/app/api/v1/mcp-servers/registry/route.js +2 -2
- package/.next/standalone/.next/server/app/api/v1/mcp-servers/route.js +58 -58
- package/.next/standalone/.next/server/app/api/v1/memory/[namespace]/[key]/route.js +150 -150
- package/.next/standalone/.next/server/app/api/v1/memory/policy/route.js +72 -72
- package/.next/standalone/.next/server/app/api/v1/memory/route.js +9 -9
- package/.next/standalone/.next/server/app/api/v1/memory/search/route.js +16 -16
- package/.next/standalone/.next/server/app/api/v1/models/[name]/compact-threads/route.js +72 -72
- package/.next/standalone/.next/server/app/api/v1/models/[name]/route.js +87 -538
- package/.next/standalone/.next/server/app/api/v1/models/[name]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/models/route.js +273 -722
- package/.next/standalone/.next/server/app/api/v1/models/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/packages/catalog/route.js +73 -73
- package/.next/standalone/.next/server/app/api/v1/packages/defaults/[id]/route.js +248 -239
- 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 +128 -128
- 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 +44 -44
- 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 +72 -72
- 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 +37 -37
- 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 +81 -81
- 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 +34 -25
- 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 +48 -39
- 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 +51 -51
- 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 +863 -863
- 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 +230 -230
- 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 +44 -44
- 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 +138 -138
- package/.next/standalone/.next/server/app/api/v1/profile/route.js +51 -51
- package/.next/standalone/.next/server/app/api/v1/providers/[provider]/models/route.js +853 -680
- package/.next/standalone/.next/server/app/api/v1/providers/[provider]/probe/route.js +65 -65
- package/.next/standalone/.next/server/app/api/v1/providers/github-copilot/auth/route.js +171 -171
- package/.next/standalone/.next/server/app/api/v1/providers/route.js +96 -96
- package/.next/standalone/.next/server/app/api/v1/proxy-config/route.js +157 -157
- package/.next/standalone/.next/server/app/api/v1/redaction/init/route.js +47 -47
- package/.next/standalone/.next/server/app/api/v1/redaction/route.js +206 -206
- package/.next/standalone/.next/server/app/api/v1/scheduled-tasks/[id]/route.js +140 -140
- package/.next/standalone/.next/server/app/api/v1/scheduled-tasks/[id]/run/route.js +166 -166
- 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 +52 -52
- package/.next/standalone/.next/server/app/api/v1/security/idle-timeout/route.js +722 -722
- package/.next/standalone/.next/server/app/api/v1/security/pin/route.js +23 -23
- package/.next/standalone/.next/server/app/api/v1/security/state/route.js +243 -243
- package/.next/standalone/.next/server/app/api/v1/security/unlock/route.js +518 -518
- package/.next/standalone/.next/server/app/api/v1/security/verify-pin/route.js +9 -9
- package/.next/standalone/.next/server/app/api/v1/setup/test-key/route.js +25 -25
- package/.next/standalone/.next/server/app/api/v1/skills/[id]/route.js +9 -9
- package/.next/standalone/.next/server/app/api/v1/skills/repos/[id]/route.js +609 -609
- package/.next/standalone/.next/server/app/api/v1/skills/repos/route.js +129 -129
- package/.next/standalone/.next/server/app/api/v1/skills/route.js +9 -9
- package/.next/standalone/.next/server/app/api/v1/system/abort/route.js +112 -112
- package/.next/standalone/.next/server/app/api/v1/system/restart/route.js +86 -86
- 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 +9 -9
- package/.next/standalone/.next/server/app/api/v1/tasks/[agent_id]/route.js +83 -83
- 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 +121 -121
- package/.next/standalone/.next/server/app/api/v1/threads/[thread_id]/context-pin/route.js +139 -139
- package/.next/standalone/.next/server/app/api/v1/threads/[thread_id]/messages/[message_id]/route.js +51 -51
- package/.next/standalone/.next/server/app/api/v1/threads/[thread_id]/route.js +58 -58
- package/.next/standalone/.next/server/app/api/v1/threads/[thread_id]/run/route.js +1182 -1182
- 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 +158 -158
- package/.next/standalone/.next/server/app/api/v1/tools/route.js +137 -137
- 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 +73 -73
- 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 +72 -72
- package/.next/standalone/.next/server/app/api/v1/voice/transcribe/route.js +30 -30
- package/.next/standalone/.next/server/app/api/v1/voice/tts/route.js +79 -79
- package/.next/standalone/.next/server/app/api/v1/watchers/[id]/route.js +9 -9
- package/.next/standalone/.next/server/app/api/v1/watchers/[id]/run/route.js +45 -45
- 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 +2 -2
- package/.next/standalone/.next/server/app/api/v1/watchers/route.js +37 -37
- 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 +55 -55
- package/.next/standalone/.next/server/app/manifest.webmanifest/route.js +18 -18
- package/.next/standalone/.next/server/app/page.js +2112 -1235
- 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 +2 -1
- package/.next/standalone/.next/server/chunks/1244.js +136 -4
- package/.next/standalone/.next/server/chunks/1387.js +733 -57
- package/.next/standalone/.next/server/chunks/1433.js +1 -1
- package/.next/standalone/.next/server/chunks/210.js +3 -3
- package/.next/standalone/.next/server/chunks/2175.js +874 -0
- package/.next/standalone/.next/server/chunks/3042.js +34 -32
- package/.next/standalone/.next/server/chunks/309.js +21 -40
- package/.next/standalone/.next/server/chunks/3272.js +21 -40
- package/.next/standalone/.next/server/chunks/{540.js → 3326.js} +189 -61
- package/.next/standalone/.next/server/chunks/{6142.js → 3479.js} +170 -159
- package/.next/standalone/.next/server/chunks/3566.js +1 -1
- package/.next/standalone/.next/server/chunks/{5323.js → 3692.js} +31 -3
- package/.next/standalone/.next/server/chunks/4189.js +14 -2
- package/.next/standalone/.next/server/chunks/4377.js +2 -2
- package/.next/standalone/.next/server/chunks/4596.js +18 -9
- package/.next/standalone/.next/server/chunks/{639.js → 4728.js} +23676 -22755
- package/.next/standalone/.next/server/chunks/4955.js +81 -14
- package/.next/standalone/.next/server/chunks/5290.js +136 -5
- package/.next/standalone/.next/server/chunks/{2267.js → 6408.js} +990 -926
- package/.next/standalone/.next/server/chunks/{9667.js → 6911.js} +31 -3
- package/.next/standalone/.next/server/chunks/7033.js +7 -4
- package/.next/standalone/.next/server/chunks/7377.js +7 -4
- package/.next/standalone/.next/server/chunks/8461.js +31 -29
- package/.next/standalone/.next/server/chunks/9032.js +3 -3
- package/.next/standalone/.next/server/chunks/9174.js +18 -9
- package/.next/standalone/.next/server/chunks/9408.js +37 -15
- package/.next/standalone/.next/server/chunks/9824.js +2288 -2288
- package/.next/standalone/.next/server/middleware-build-manifest.js +2 -2
- package/.next/standalone/.next/server/middleware.js +104638 -104532
- 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/2BAUJZ7x8eXCYpuZ-Kp7h/_buildManifest.js +1 -0
- package/.next/standalone/.next/static/chunks/{877-145c9df8aa0aee63.js → 877-367eb49b20edd3d6.js} +38 -16
- package/.next/standalone/.next/static/chunks/app/_global-error/page-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/access/[identity]/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/access/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/agents/[id]/compact/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/agents/[id]/display-filters/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/agents/[id]/duplicate/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/agents/[id]/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/agents/[id]/thread/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/agents/recent-replies/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/agents/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/allowed-sites/[hostname]/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/allowed-sites/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/artifacts/lifecycle/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/attachments/files/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/attachments/images/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/[id]/chats/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/[id]/ignores/[remote_jid]/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/[id]/ignores/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/[id]/lookup/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/[id]/pair/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/[id]/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/[id]/routes/[route_id]/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/[id]/routes/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/[id]/status/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/kinds/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/builtin-tools/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/config/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/credentials/[id]/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/credentials/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/dashboard/currency/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/dashboard/metrics/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/dashboard/pricing/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/dashboard/pricing-task/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/delegations/codex/[job_id]/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/documents/recall-policy/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/documents/search/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/documents/settings/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/documents/sources/[id]/reindex/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/documents/sources/[id]/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/documents/sources/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/env/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/env-sync/allowlist/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/env-sync/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/events/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/events/test/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/agents/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/browser/activate/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/browser/foreground/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/browser/history/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/browser/poll/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/browser/progress/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/browser/result/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/browser/retry/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/browser/status/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/browser/tabs/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/fill/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/refine/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/turn/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/extensions/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/extensions/tools/[name]/config/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/extensions/tools/[name]/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/extensions/tools/[name]/secrets/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/files/[name]/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/fs/browse/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/harnesses/[id]/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/harnesses/default/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/harnesses/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/health/probes/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/health/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/integrations/[name]/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/integrations/[name]/test/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/integrations/gmail/oauth/callback/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/integrations/gmail/oauth/start/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/integrations/gmail/oauth/status/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/integrations/outlook/oauth/callback/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/integrations/outlook/oauth/start/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/integrations/outlook/oauth/status/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/integrations/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/lifecycle/adoption/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/local-file/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/logs/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/maps/embed/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/mcp-servers/[name]/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/mcp-servers/registry/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/mcp-servers/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/memory/[namespace]/[key]/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/memory/policy/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/memory/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/memory/search/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/models/[name]/compact-threads/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/models/[name]/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/models/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/packages/catalog/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/packages/defaults/[id]/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/packages/install/[id]/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/packages/install/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/packages/manifests/[name]/enabled/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/packages/manifests/[name]/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/packages/manifests/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/packages/reload/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/packages/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/page-capture/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/pending-actions/[id]/approve/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/pending-actions/[id]/deny/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/pending-actions/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/profile/location/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/profile/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/providers/[provider]/models/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/providers/[provider]/probe/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/providers/github-copilot/auth/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/providers/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/proxy-config/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/redaction/init/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/redaction/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/scheduled-tasks/[id]/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/scheduled-tasks/[id]/run/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/scheduled-tasks/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/security/idle-timeout/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/security/pin/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/security/state/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/security/unlock/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/security/verify-pin/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/setup/test-key/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/skills/[id]/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/skills/repos/[id]/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/skills/repos/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/skills/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/system/abort/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/system/restart/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/tailscale/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/tasks/[agent_id]/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/tasks/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/threads/[thread_id]/activity/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/threads/[thread_id]/context-pin/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/threads/[thread_id]/messages/[message_id]/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/threads/[thread_id]/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/threads/[thread_id]/run/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/threads/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/tools/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/update/apply/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/update/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/voice/transcribe/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/voice/tts/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/watchers/[id]/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/watchers/[id]/run/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/watchers/reaction-scripts/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/api/v1/watchers/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/manifest.webmanifest/route-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/app/{page-64585ef79400f17f.js → page-a584dfa806a1afdb.js} +1082 -205
- package/.next/standalone/.next/static/chunks/next/dist/client/components/builtin/app-error-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/next/dist/client/components/builtin/forbidden-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/next/dist/client/components/builtin/not-found-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/chunks/next/dist/client/components/builtin/unauthorized-6cda89771c3f8ea4.js +17 -0
- package/.next/standalone/.next/static/css/19e1cd815490b47c.css +5 -0
- package/.next/standalone/docs/adoption/changesets.json +148 -0
- package/.next/standalone/package.json +5 -4
- package/CHANGELOG.md +51 -0
- package/README.md +115 -1
- package/api/client.startup.test.ts +29 -0
- package/api/client.ts +9 -2
- package/api/types.ts +20 -1
- package/app/api/v1/dashboard/pricing-task/route.ts +3 -1
- package/app/api/v1/documents/recall-policy/route.test.ts +59 -0
- package/app/api/v1/documents/recall-policy/route.ts +20 -0
- package/app/api/v1/documents/search/route.test.ts +36 -0
- package/app/api/v1/documents/search/route.ts +17 -5
- package/app/api/v1/documents/sources/[id]/reindex/route.test.ts +44 -0
- package/app/api/v1/documents/sources/[id]/reindex/route.ts +4 -1
- package/app/api/v1/documents/sources/route.test.ts +67 -0
- package/app/api/v1/documents/sources/route.ts +20 -2
- package/app/api/v1/models/[name]/route.ts +2 -0
- package/app/api/v1/models/route.ts +4 -0
- package/app/api/v1/providers/[provider]/models/route.test.ts +28 -0
- package/app/api/v1/providers/[provider]/models/route.ts +16 -2
- package/app/globals.css +51 -4
- package/components/agents/AgentsPanel.tsx +2 -2
- package/components/agents/agent-editor/AdvancedSection.tsx +1 -1
- package/components/agents/agent-editor/ModelSection.tsx +2 -2
- package/components/bridges/BridgeEditor.tsx +1 -1
- package/components/bridges/BridgesPanel.tsx +1 -1
- package/components/chat/InputBar.tsx +1 -1
- package/components/chat/MessageList.tsx +3 -3
- package/components/chat/useUserProfileAndAgent.test.tsx +43 -1
- package/components/chat/useUserProfileAndAgent.ts +16 -5
- package/components/credentials/CredentialsPanel.tsx +1 -1
- package/components/dashboard/CostBreakdown.test.tsx +34 -0
- package/components/dashboard/CostBreakdown.tsx +21 -0
- package/components/dashboard/DashboardPanel.test.tsx +9 -0
- package/components/dashboard/DashboardPanel.tsx +3 -3
- package/components/dashboard/Donuts.tsx +5 -2
- package/components/dashboard/ModelPricingSection.test.tsx +42 -0
- package/components/dashboard/ModelPricingSection.tsx +23 -21
- package/components/dashboard/Series.test.tsx +1 -0
- package/components/dashboard/Series.tsx +5 -0
- package/components/dashboard/SummaryCards.tsx +39 -27
- package/components/dashboard/VendorModelReportSection.tsx +2 -0
- package/components/documents/AddSourceFields.tsx +52 -15
- package/components/documents/AddSourceForm.tsx +61 -19
- package/components/documents/DocumentsPanel.tsx +22 -2
- package/components/documents/RecallExclusions.tsx +73 -0
- package/components/documents/SearchProbe.tsx +42 -5
- package/components/documents/helpers.ts +17 -3
- package/components/documents/indexing-controls.test.tsx +137 -0
- package/components/documents/useDocumentsPanel.test.tsx +87 -0
- package/components/documents/useDocumentsPanel.ts +47 -6
- package/components/env/EnvVarsPanel.tsx +1 -1
- package/components/harness/HarnessPanel.tsx +2 -2
- package/components/integrations/NetworkPanel.tsx +1 -1
- package/components/layout/AgentCardControls.test.tsx +162 -0
- package/components/layout/AgentCardControls.tsx +126 -0
- package/components/layout/AgentSwitcher.test.tsx +37 -0
- package/components/layout/AgentSwitcher.tsx +28 -3
- package/components/layout/AppShell.tsx +16 -9
- package/components/layout/MenuPanel.test.tsx +125 -2
- package/components/layout/MenuPanel.tsx +96 -2
- package/components/logs/LogsPanel.tsx +1 -1
- package/components/mcp/MCPPanel.tsx +1 -1
- package/components/memory/UnifiedMemoryPanel.tsx +4 -4
- package/components/models/CapBadges.tsx +1 -1
- package/components/models/EmbeddingModelSection.test.tsx +41 -0
- package/components/models/EmbeddingModelSection.tsx +5 -0
- package/components/models/ModelFeatureGuide.tsx +16 -8
- package/components/models/ModelsPanel.tsx +8 -3
- package/components/models/model-editor/ModelEditorBody.tsx +1 -0
- package/components/models/model-editor/ModelIdSection.tsx +5 -0
- package/components/profile/ProfileEditor.test.tsx +70 -0
- package/components/profile/ProfileEditor.tsx +6 -2
- package/components/profile/ProfilePanel.test.tsx +6 -0
- package/components/profile/ProfilePanel.tsx +1 -1
- package/components/scheduled-tasks/ScheduledTasksPanel.tsx +1 -1
- package/components/settings/AppearancePanel.tsx +1 -1
- package/components/settings/SettingsPanel.test.tsx +23 -0
- package/components/settings/SettingsPanel.tsx +2 -2
- package/components/skills/SkillsPanel.tsx +1 -1
- package/components/tools/BrowserPanel.tsx +1 -1
- package/components/tools/PackagesPanel.tsx +1 -1
- package/components/tools/UnifiedPackageList.tsx +1 -1
- package/components/ui/PanelHeader.tsx +1 -1
- package/components/ui/SubTabBar.tsx +1 -1
- package/docs/INSTALL.md +7 -5
- package/hooks/useAgents.ts +2 -2
- package/lib/agents/prepare/system-prompt.test.ts +65 -0
- package/lib/agents/prepare/system-prompt.ts +27 -20
- package/lib/agents/prompt-registry.test.ts +42 -0
- package/lib/agents/prompt-registry.ts +21 -0
- package/lib/bridges/whatsapp.inbound.test.ts +38 -1
- package/lib/bridges/whatsapp.ts +10 -33
- package/lib/db/index.ts +2 -0
- package/lib/db/migrations.test.ts +10 -0
- package/lib/db/migrations.ts +10 -0
- package/lib/db/statement-cache.test.ts +77 -0
- package/lib/db/statement-cache.ts +31 -0
- package/lib/documents/indexer.test.ts +16 -1
- package/lib/documents/indexer.ts +8 -7
- package/lib/documents/mail-source-config.ts +31 -0
- package/lib/documents/recall-policy.ts +24 -0
- package/lib/documents/remote/icloud.ts +56 -0
- package/lib/documents/remote/index.ts +4 -1
- package/lib/documents/remote/mail.test.ts +232 -0
- package/lib/documents/remote/mail.ts +48 -40
- package/lib/documents/search.test.ts +81 -2
- package/lib/documents/search.ts +47 -7
- package/lib/embeddings/cache.test.ts +16 -2
- package/lib/embeddings/index.test.ts +7 -0
- package/lib/embeddings/index.ts +12 -1
- package/lib/integrations/deepseek-web/manifest.ts +68 -0
- package/lib/integrations/gmail/manifest.ts +2 -3
- package/lib/integrations/icloud/manifest.ts +19 -5
- package/lib/integrations/registry.test.ts +8 -0
- package/lib/integrations/registry.ts +2 -0
- package/lib/lifecycle/changeset-build.test.ts +3 -0
- package/lib/lifecycle/changeset-build.ts +6 -0
- package/lib/lifecycle/changesets.ts +9 -0
- package/lib/pricing/llm-extract.ts +1 -1
- package/lib/pricing/maintenance-task.ts +19 -3
- package/lib/pricing/model-updates.test.ts +192 -0
- package/lib/pricing/model-updates.ts +205 -0
- package/lib/stores/app-settings.ts +17 -1
- package/lib/stores/dashboard-metrics-cache.test.ts +44 -0
- package/lib/stores/dashboard-metrics.test.ts +47 -4
- package/lib/stores/dashboard-metrics.ts +73 -8
- package/lib/stores/document-sources.ts +1 -0
- package/lib/stores/integrations.test.ts +20 -0
- package/lib/stores/integrations.ts +15 -4
- package/lib/stores/langgraph-store.test.ts +53 -0
- package/lib/stores/langgraph-store.ts +9 -21
- package/lib/stores/model-metadata.ts +89 -0
- package/lib/stores/threads.test.ts +34 -0
- package/lib/stores/threads.ts +17 -20
- package/lib/stores/tool-stats.test.ts +31 -0
- package/lib/stores/tool-stats.ts +16 -0
- package/lib/stores/version-adoption.test.ts +8 -0
- package/lib/stores/version-adoption.ts +5 -2
- package/lib/tools/general/documents.test.ts +5 -0
- package/lib/tools/general/pricing-maintenance.test.ts +5 -0
- package/lib/tools/general/pricing-maintenance.ts +4 -1
- package/lib/tools/packages/default-packages/icloud.test.ts +49 -0
- package/lib/tools/packages/default-packages/icloud.ts +8 -6
- package/lib/tools/packages/default-packages.test.ts +16 -0
- package/lib/tools/packages/langchain-packages.ts +2 -2
- package/lib/tools/runtime/category-filter.test.ts +22 -0
- package/lib/tools/web/deepseek.test.ts +76 -0
- package/lib/tools/web/deepseek.ts +68 -0
- package/lib/tools/web/fetch.test.ts +130 -2
- package/lib/tools/web/fetch.ts +48 -1
- package/lib/tools/web/search.test.ts +139 -2
- package/lib/tools/web/search.ts +48 -1
- package/lib/triggers/handlers/scheduled-task.test.ts +18 -0
- package/lib/triggers/handlers/scheduled-task.ts +6 -0
- package/lib/ui/feature-readiness.test.ts +7 -0
- package/lib/ui/feature-readiness.ts +2 -1
- package/package.json +5 -4
- package/scripts/check-npm-package.mjs +1 -0
- package/scripts/jarela-bin.mjs +3 -0
- package/scripts/runtime-version.mjs +19 -0
- package/scripts/start-prod.mjs +3 -0
- package/.next/standalone/.next/static/6qLnqWdsfBTJOAJApUYXy/_buildManifest.js +0 -1
- package/.next/standalone/.next/static/chunks/app/_global-error/page-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/access/[identity]/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/access/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/agents/[id]/compact/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/agents/[id]/display-filters/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/agents/[id]/duplicate/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/agents/[id]/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/agents/[id]/thread/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/agents/recent-replies/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/agents/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/allowed-sites/[hostname]/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/allowed-sites/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/artifacts/lifecycle/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/attachments/files/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/attachments/images/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/[id]/chats/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/[id]/ignores/[remote_jid]/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/[id]/ignores/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/[id]/lookup/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/[id]/pair/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/[id]/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/[id]/routes/[route_id]/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/[id]/routes/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/[id]/status/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/kinds/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/bridges/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/builtin-tools/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/config/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/credentials/[id]/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/credentials/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/dashboard/currency/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/dashboard/metrics/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/dashboard/pricing/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/dashboard/pricing-task/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/delegations/codex/[job_id]/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/documents/search/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/documents/settings/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/documents/sources/[id]/reindex/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/documents/sources/[id]/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/documents/sources/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/env/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/env-sync/allowlist/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/env-sync/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/events/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/events/test/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/agents/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/browser/activate/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/browser/foreground/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/browser/history/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/browser/poll/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/browser/progress/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/browser/result/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/browser/retry/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/browser/status/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/browser/tabs/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/fill/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/refine/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/extension/turn/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/extensions/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/extensions/tools/[name]/config/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/extensions/tools/[name]/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/extensions/tools/[name]/secrets/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/files/[name]/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/fs/browse/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/harnesses/[id]/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/harnesses/default/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/harnesses/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/health/probes/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/health/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/integrations/[name]/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/integrations/[name]/test/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/integrations/gmail/oauth/callback/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/integrations/gmail/oauth/start/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/integrations/gmail/oauth/status/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/integrations/outlook/oauth/callback/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/integrations/outlook/oauth/start/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/integrations/outlook/oauth/status/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/integrations/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/lifecycle/adoption/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/local-file/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/logs/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/maps/embed/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/mcp-servers/[name]/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/mcp-servers/registry/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/mcp-servers/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/memory/[namespace]/[key]/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/memory/policy/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/memory/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/memory/search/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/models/[name]/compact-threads/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/models/[name]/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/models/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/packages/catalog/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/packages/defaults/[id]/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/packages/install/[id]/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/packages/install/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/packages/manifests/[name]/enabled/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/packages/manifests/[name]/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/packages/manifests/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/packages/reload/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/packages/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/page-capture/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/pending-actions/[id]/approve/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/pending-actions/[id]/deny/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/pending-actions/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/profile/location/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/profile/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/providers/[provider]/models/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/providers/[provider]/probe/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/providers/github-copilot/auth/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/providers/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/proxy-config/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/redaction/init/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/redaction/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/scheduled-tasks/[id]/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/scheduled-tasks/[id]/run/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/scheduled-tasks/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/security/idle-timeout/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/security/pin/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/security/state/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/security/unlock/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/security/verify-pin/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/setup/test-key/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/skills/[id]/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/skills/repos/[id]/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/skills/repos/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/skills/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/system/abort/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/system/restart/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/tailscale/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/tasks/[agent_id]/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/tasks/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/threads/[thread_id]/activity/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/threads/[thread_id]/context-pin/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/threads/[thread_id]/messages/[message_id]/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/threads/[thread_id]/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/threads/[thread_id]/run/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/threads/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/tools/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/update/apply/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/update/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/voice/transcribe/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/voice/tts/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/watchers/[id]/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/watchers/[id]/run/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/watchers/reaction-scripts/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/api/v1/watchers/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/app/manifest.webmanifest/route-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/next/dist/client/components/builtin/app-error-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/next/dist/client/components/builtin/forbidden-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/next/dist/client/components/builtin/not-found-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/chunks/next/dist/client/components/builtin/unauthorized-f6b126e5c5b11551.js +0 -17
- package/.next/standalone/.next/static/css/c4a8bed1da2c748f.css +0 -5
- /package/.next/standalone/.next/static/{6qLnqWdsfBTJOAJApUYXy → 2BAUJZ7x8eXCYpuZ-Kp7h}/_ssgManifest.js +0 -0
|
@@ -123,538 +123,149 @@ module.exports = require("node:path");
|
|
|
123
123
|
|
|
124
124
|
/***/ }),
|
|
125
125
|
|
|
126
|
-
/***/
|
|
127
|
-
/***/ ((
|
|
128
|
-
|
|
129
|
-
module.exports = require("next/dist/shared/lib/router/utils/app-paths");
|
|
130
|
-
|
|
131
|
-
/***/ }),
|
|
132
|
-
|
|
133
|
-
/***/ 257975:
|
|
134
|
-
/***/ ((module) => {
|
|
135
|
-
|
|
136
|
-
module.exports = require("node:util");
|
|
137
|
-
|
|
138
|
-
/***/ }),
|
|
139
|
-
|
|
140
|
-
/***/ 309956:
|
|
141
|
-
/***/ ((module) => {
|
|
142
|
-
|
|
143
|
-
module.exports = require("undici");
|
|
144
|
-
|
|
145
|
-
/***/ }),
|
|
146
|
-
|
|
147
|
-
/***/ 328354:
|
|
148
|
-
/***/ ((module) => {
|
|
149
|
-
|
|
150
|
-
module.exports = require("util");
|
|
151
|
-
|
|
152
|
-
/***/ }),
|
|
126
|
+
/***/ 197140:
|
|
127
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
153
128
|
|
|
154
|
-
|
|
155
|
-
|
|
129
|
+
__webpack_require__.r(__webpack_exports__);
|
|
130
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
131
|
+
/* harmony export */ handler: () => (/* binding */ handler),
|
|
132
|
+
/* harmony export */ patchFetch: () => (/* binding */ patchFetch),
|
|
133
|
+
/* harmony export */ routeModule: () => (/* binding */ routeModule),
|
|
134
|
+
/* harmony export */ serverHooks: () => (/* binding */ serverHooks),
|
|
135
|
+
/* harmony export */ workAsyncStorage: () => (/* binding */ workAsyncStorage),
|
|
136
|
+
/* harmony export */ workUnitAsyncStorage: () => (/* binding */ workUnitAsyncStorage)
|
|
137
|
+
/* harmony export */ });
|
|
138
|
+
/* harmony import */ var next_dist_server_route_modules_app_route_module_compiled__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(319225);
|
|
139
|
+
/* 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__);
|
|
140
|
+
/* harmony import */ var next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(684006);
|
|
141
|
+
/* harmony import */ var next_dist_server_lib_patch_fetch__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8317);
|
|
142
|
+
/* 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__);
|
|
143
|
+
/* harmony import */ var next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(799373);
|
|
144
|
+
/* 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__);
|
|
145
|
+
/* harmony import */ var next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(434775);
|
|
146
|
+
/* 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__);
|
|
147
|
+
/* harmony import */ var next_dist_server_app_render_manifests_singleton__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(524235);
|
|
148
|
+
/* 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__);
|
|
149
|
+
/* harmony import */ var next_dist_shared_lib_router_utils_app_paths__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(200261);
|
|
150
|
+
/* 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__);
|
|
151
|
+
/* harmony import */ var next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(754365);
|
|
152
|
+
/* 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__);
|
|
153
|
+
/* harmony import */ var next_dist_server_web_spec_extension_adapters_next_request__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(590771);
|
|
154
|
+
/* 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__);
|
|
155
|
+
/* harmony import */ var next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(473461);
|
|
156
|
+
/* 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__);
|
|
157
|
+
/* harmony import */ var next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(767798);
|
|
158
|
+
/* harmony import */ var next_dist_server_send_response__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(192280);
|
|
159
|
+
/* harmony import */ var next_dist_server_web_utils__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(662018);
|
|
160
|
+
/* 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__);
|
|
161
|
+
/* harmony import */ var next_dist_server_lib_cache_control__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(445696);
|
|
162
|
+
/* harmony import */ var next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(347929);
|
|
163
|
+
/* harmony import */ var next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__);
|
|
164
|
+
/* harmony import */ var next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(986439);
|
|
165
|
+
/* 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__);
|
|
166
|
+
/* harmony import */ var next_dist_server_lib_route_cache_key__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(710246);
|
|
167
|
+
/* 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__);
|
|
168
|
+
/* harmony import */ var next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(137527);
|
|
169
|
+
/* 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__);
|
|
156
170
|
|
|
157
|
-
module.exports = require("path");
|
|
158
171
|
|
|
159
|
-
/***/ }),
|
|
160
172
|
|
|
161
|
-
/***/ 344708:
|
|
162
|
-
/***/ ((module) => {
|
|
163
173
|
|
|
164
|
-
module.exports = require("node:https");
|
|
165
174
|
|
|
166
|
-
/***/ }),
|
|
167
175
|
|
|
168
|
-
/***/ 379551:
|
|
169
|
-
/***/ ((module) => {
|
|
170
176
|
|
|
171
|
-
module.exports = require("url");
|
|
172
177
|
|
|
173
|
-
/***/ }),
|
|
174
178
|
|
|
175
|
-
/***/ 380481:
|
|
176
|
-
/***/ ((module) => {
|
|
177
179
|
|
|
178
|
-
module.exports = require("node:readline");
|
|
179
180
|
|
|
180
|
-
/***/ }),
|
|
181
181
|
|
|
182
|
-
/***/ 391056:
|
|
183
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
184
182
|
|
|
185
|
-
__webpack_require__.r(__webpack_exports__);
|
|
186
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
187
|
-
/* harmony export */ POST: () => (/* binding */ POST)
|
|
188
|
-
/* harmony export */ });
|
|
189
|
-
/* harmony import */ var next_server__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(945592);
|
|
190
|
-
/* harmony import */ var zod__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(497377);
|
|
191
|
-
/* harmony import */ var _lib_db__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(251244);
|
|
192
|
-
/* harmony import */ var _lib_crypto_master_key__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(28226);
|
|
193
|
-
/* harmony import */ var _lib_auth_pin_rate_limit__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(67465);
|
|
194
|
-
/* harmony import */ var _lib_security_screen_lock__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(520971);
|
|
195
|
-
/**
|
|
196
|
-
* @public — `POST /api/v1/security/unlock`
|
|
197
|
-
*
|
|
198
|
-
* Decrypts the PIN-wrapped master key with the supplied 6-digit PIN.
|
|
199
|
-
* Rate-limited per remote (3 free attempts, then exponential backoff
|
|
200
|
-
* capped at 5 min). See ADR-0063.
|
|
201
|
-
*
|
|
202
|
-
* Reachable from any whitelisted caller (loopback OR a Tailscale
|
|
203
|
-
* identity already vetted by proxy.ts's requireAccess + locked
|
|
204
|
-
* allow-list). The PIN itself is still the security boundary and
|
|
205
|
-
* brute-forcing is bounded by the per-remote rate limit.
|
|
206
|
-
*
|
|
207
|
-
* Request body: `{ "pin": "123456" }`
|
|
208
|
-
* Responses:
|
|
209
|
-
* 200 `{ ok: true }` — unlocked successfully
|
|
210
|
-
* 400 `{ error: "bad-pin" }` — wrong shape (not 6 digits)
|
|
211
|
-
* 401 `{ error: "invalid-pin" }`— PIN didn't decrypt the blob
|
|
212
|
-
* 409 `{ error: "not-locked" }` — already unlocked or PIN not set
|
|
213
|
-
* 429 `{ error: "rate-limited", retry_after_ms }`
|
|
214
|
-
*/
|
|
215
183
|
|
|
216
184
|
|
|
217
185
|
|
|
218
186
|
|
|
219
187
|
|
|
220
|
-
|
|
221
|
-
|
|
188
|
+
// We inject the nextConfigOutput here so that we can use them in the route
|
|
189
|
+
// module.
|
|
190
|
+
const nextConfigOutput = "standalone"
|
|
191
|
+
const routeModule = new next_dist_server_route_modules_app_route_module_compiled__WEBPACK_IMPORTED_MODULE_0__.AppRouteRouteModule({
|
|
192
|
+
definition: {
|
|
193
|
+
kind: next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__.RouteKind.APP_ROUTE,
|
|
194
|
+
page: "/api/v1/security/unlock/route",
|
|
195
|
+
pathname: "/api/v1/security/unlock",
|
|
196
|
+
filename: "route",
|
|
197
|
+
bundlePath: "app/api/v1/security/unlock/route"
|
|
198
|
+
},
|
|
199
|
+
distDir: ".next" || 0,
|
|
200
|
+
relativeProjectDir: false || '',
|
|
201
|
+
resolvedPagePath: "/home/runner/work/jarela/jarela/app/api/v1/security/unlock/route.ts",
|
|
202
|
+
nextConfigOutput,
|
|
203
|
+
// The lazy require factory ensures that:
|
|
204
|
+
// - In dev: devRequestTimingInternalsEnd is set before userland executes,
|
|
205
|
+
// correctly attributing module load time to application-code rather than
|
|
206
|
+
// framework internals.
|
|
207
|
+
// - In all modes: async modules (route files with top-level await) are
|
|
208
|
+
// handled correctly — require() returns a Promise for such modules, which
|
|
209
|
+
// ensureUserland() awaits before the first request is handled.
|
|
210
|
+
userland: ()=>__webpack_require__(391056),
|
|
211
|
+
// In Turbopack dev mode, also provide a synchronous per-request getter so
|
|
212
|
+
// server HMR updates are picked up without re-executing the entry chunk.
|
|
213
|
+
// Using require() (synchronous) avoids adding async overhead that would be
|
|
214
|
+
// incorrectly attributed to application-code time in devRequestTiming.
|
|
215
|
+
... false ? 0 : {}
|
|
222
216
|
});
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
217
|
+
// Pull out the exports that we need to expose from the module. This should
|
|
218
|
+
// be eliminated when we've moved the other routes to the new format. These
|
|
219
|
+
// are used to hook into the route.
|
|
220
|
+
const { workAsyncStorage, workUnitAsyncStorage, serverHooks } = routeModule;
|
|
221
|
+
function patchFetch() {
|
|
222
|
+
return (0,next_dist_server_lib_patch_fetch__WEBPACK_IMPORTED_MODULE_2__.patchFetch)({
|
|
223
|
+
workAsyncStorage,
|
|
224
|
+
workUnitAsyncStorage
|
|
225
|
+
});
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
async function handler(req, res, ctx) {
|
|
229
|
+
if (ctx.requestMeta) {
|
|
230
|
+
(0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.setRequestMeta)(req, ctx.requestMeta);
|
|
232
231
|
}
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
if (!rl.allowed) {
|
|
236
|
-
return next_server__WEBPACK_IMPORTED_MODULE_0__.NextResponse.json({
|
|
237
|
-
error: "rate-limited",
|
|
238
|
-
retry_after_ms: rl.retryAfterMs
|
|
239
|
-
}, {
|
|
240
|
-
status: 429,
|
|
241
|
-
headers: {
|
|
242
|
-
"Retry-After": String(Math.ceil(rl.retryAfterMs / 1000))
|
|
243
|
-
}
|
|
244
|
-
});
|
|
232
|
+
if (routeModule.isDev) {
|
|
233
|
+
(0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.addRequestMeta)(req, 'devRequestTimingInternalsEnd', process.hrtime.bigint());
|
|
245
234
|
}
|
|
246
|
-
let
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
status: 400
|
|
254
|
-
});
|
|
235
|
+
let srcPage = "/api/v1/security/unlock/route";
|
|
236
|
+
// turbopack doesn't normalize `/index` in the page name
|
|
237
|
+
// so we need to to process dynamic routes properly
|
|
238
|
+
// TODO: fix turbopack providing differing value from webpack
|
|
239
|
+
if (false) {} else if (srcPage === '/index') {
|
|
240
|
+
// we always normalize /index specifically
|
|
241
|
+
srcPage = '/';
|
|
255
242
|
}
|
|
256
|
-
const
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
(0,
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
}
|
|
283
|
-
if (err instanceof Error && /6 digits/.test(err.message)) {
|
|
284
|
-
// pin-wrap's assertValidPin rejects wrong shape with a generic
|
|
285
|
-
// Error — surface as 400 not 500.
|
|
286
|
-
return next_server__WEBPACK_IMPORTED_MODULE_0__.NextResponse.json({
|
|
287
|
-
error: "bad-pin"
|
|
288
|
-
}, {
|
|
289
|
-
status: 400
|
|
290
|
-
});
|
|
291
|
-
}
|
|
292
|
-
if (err instanceof Error && /is not locked/.test(err.message)) {
|
|
293
|
-
// Parallel unlock won the race between our isMasterKeyLocked()
|
|
294
|
-
// check and unwrap. The goal state is achieved - treat as success.
|
|
295
|
-
(0,_lib_security_screen_lock__WEBPACK_IMPORTED_MODULE_4__/* .unlockScreen */ .LT)();
|
|
296
|
-
return next_server__WEBPACK_IMPORTED_MODULE_0__.NextResponse.json({
|
|
297
|
-
ok: true
|
|
298
|
-
});
|
|
299
|
-
}
|
|
300
|
-
console.error("[security/unlock] unexpected error:", err);
|
|
301
|
-
return next_server__WEBPACK_IMPORTED_MODULE_0__.NextResponse.json({
|
|
302
|
-
error: "internal"
|
|
303
|
-
}, {
|
|
304
|
-
status: 500
|
|
305
|
-
});
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
/***/ }),
|
|
311
|
-
|
|
312
|
-
/***/ 399253:
|
|
313
|
-
/***/ ((module) => {
|
|
314
|
-
|
|
315
|
-
module.exports = import("@huggingface/transformers");;
|
|
316
|
-
|
|
317
|
-
/***/ }),
|
|
318
|
-
|
|
319
|
-
/***/ 419121:
|
|
320
|
-
/***/ ((module) => {
|
|
321
|
-
|
|
322
|
-
module.exports = require("next/dist/server/app-render/action-async-storage.external.js");
|
|
323
|
-
|
|
324
|
-
/***/ }),
|
|
325
|
-
|
|
326
|
-
/***/ 455511:
|
|
327
|
-
/***/ ((module) => {
|
|
328
|
-
|
|
329
|
-
module.exports = require("crypto");
|
|
330
|
-
|
|
331
|
-
/***/ }),
|
|
332
|
-
|
|
333
|
-
/***/ 520971:
|
|
334
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
335
|
-
|
|
336
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
337
|
-
/* harmony export */ Gk: () => (/* binding */ getIdleTimeoutMs),
|
|
338
|
-
/* harmony export */ HI: () => (/* binding */ isScreenLocked),
|
|
339
|
-
/* harmony export */ LT: () => (/* binding */ unlockScreen),
|
|
340
|
-
/* harmony export */ yW: () => (/* binding */ setIdleTimeoutMs)
|
|
341
|
-
/* harmony export */ });
|
|
342
|
-
/* unused harmony exports recordUserActivity, lockScreen */
|
|
343
|
-
/* harmony import */ var _lib_stores_app_settings__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4400);
|
|
344
|
-
/**
|
|
345
|
-
* Screen-lock state for the running app process.
|
|
346
|
-
*
|
|
347
|
-
* Distinct from the master-key lock (lib/crypto/master-key.ts):
|
|
348
|
-
*
|
|
349
|
-
* - Master-key lock = crypto lock. Key wiped from memory; decryption
|
|
350
|
-
* throws; background work stalls until PIN unwraps the keyfile.
|
|
351
|
-
*
|
|
352
|
-
* - Screen lock = presence lock. The master key stays in memory so
|
|
353
|
-
* scheduled tasks, bridges, and streaming runs keep going. The UI
|
|
354
|
-
* is hidden behind a PIN re-prompt that just verifies the user
|
|
355
|
-
* entered the same PIN that wraps their keyfile — a "is the human
|
|
356
|
-
* still here?" check, not a re-derivation of the key.
|
|
357
|
-
*
|
|
358
|
-
* Triggered by inactivity: the proxy records every non-polling /api/v1/*
|
|
359
|
-
* request as user activity. After `idleTimeoutMs` of silence the next
|
|
360
|
-
* request flips the screen-locked flag and gets a 423.
|
|
361
|
-
*
|
|
362
|
-
* Pinned to globalThis to survive Next.js dev bundle isolation (each
|
|
363
|
-
* route handler / proxy file gets its own ESM instance — bare module-
|
|
364
|
-
* level `let`s wouldn't share state). Same pattern as master-key.ts.
|
|
365
|
-
*/
|
|
366
|
-
const DEFAULT_IDLE_TIMEOUT_MS = 60 * 60 * 1000; // 1 hour
|
|
367
|
-
const _host = globalThis;
|
|
368
|
-
const _g = _host.__jarelaScreenLock ?? (_host.__jarelaScreenLock = {
|
|
369
|
-
lastActivity: Date.now(),
|
|
370
|
-
idleTimeoutMs: DEFAULT_IDLE_TIMEOUT_MS,
|
|
371
|
-
locked: false,
|
|
372
|
-
hydrated: false
|
|
373
|
-
});
|
|
374
|
-
// Pull the user-configured timeout off disk the first time we're asked
|
|
375
|
-
// after a process start. Done lazily so importing this module doesn't
|
|
376
|
-
// force a DB open before initMasterKey() has run.
|
|
377
|
-
function hydrateOnce() {
|
|
378
|
-
if (_g.hydrated) return;
|
|
379
|
-
try {
|
|
380
|
-
const persisted = (0,_lib_stores_app_settings__WEBPACK_IMPORTED_MODULE_0__/* .getScreenLockIdleTimeoutMs */ .J2)();
|
|
381
|
-
if (persisted !== null) _g.idleTimeoutMs = persisted;
|
|
382
|
-
_g.hydrated = true;
|
|
383
|
-
} catch (err) {
|
|
384
|
-
// DB not ready yet (first request before initMasterKey ran). Leave
|
|
385
|
-
// the default and try again on the next call — don't flip hydrated.
|
|
386
|
-
console.warn("[screen-lock] could not hydrate idle timeout:", err);
|
|
387
|
-
}
|
|
388
|
-
}
|
|
389
|
-
/**
|
|
390
|
-
* Record a user-initiated HTTP request. Resets the idle timer and (if
|
|
391
|
-
* the screen was locked passively) does NOT unlock it — only an explicit
|
|
392
|
-
* verify-pin call may clear the lock.
|
|
393
|
-
*/ function recordUserActivity() {
|
|
394
|
-
if (!_g.locked) {
|
|
395
|
-
_g.lastActivity = Date.now();
|
|
396
|
-
}
|
|
397
|
-
}
|
|
398
|
-
/**
|
|
399
|
-
* Returns true if the screen should be considered locked right now.
|
|
400
|
-
* Lazily flips the flag when the idle timeout has elapsed so we don't
|
|
401
|
-
* need a background timer.
|
|
402
|
-
*/ function isScreenLocked() {
|
|
403
|
-
hydrateOnce();
|
|
404
|
-
if (_g.locked) return true;
|
|
405
|
-
if (_g.idleTimeoutMs <= 0) return false; // disabled
|
|
406
|
-
if (Date.now() - _g.lastActivity > _g.idleTimeoutMs) {
|
|
407
|
-
_g.locked = true;
|
|
408
|
-
return true;
|
|
409
|
-
}
|
|
410
|
-
return false;
|
|
411
|
-
}
|
|
412
|
-
/** Unlock — called after a successful verify-pin. */ function unlockScreen() {
|
|
413
|
-
_g.locked = false;
|
|
414
|
-
_g.lastActivity = Date.now();
|
|
415
|
-
}
|
|
416
|
-
/** Force-lock immediately. Used by manual "lock now" actions. */ function lockScreen() {
|
|
417
|
-
_g.locked = true;
|
|
418
|
-
}
|
|
419
|
-
function getIdleTimeoutMs() {
|
|
420
|
-
hydrateOnce();
|
|
421
|
-
return _g.idleTimeoutMs;
|
|
422
|
-
}
|
|
423
|
-
/** 0 disables the auto-lock entirely. */ function setIdleTimeoutMs(ms) {
|
|
424
|
-
if (!Number.isFinite(ms) || ms < 0) throw new Error("invalid timeout");
|
|
425
|
-
_g.idleTimeoutMs = Math.floor(ms);
|
|
426
|
-
_g.lastActivity = Date.now();
|
|
427
|
-
_g.hydrated = true; // we just set it; skip the load-from-disk path
|
|
428
|
-
try {
|
|
429
|
-
(0,_lib_stores_app_settings__WEBPACK_IMPORTED_MODULE_0__/* .setScreenLockIdleTimeoutMs */ .Z0)(_g.idleTimeoutMs);
|
|
430
|
-
} catch (err) {
|
|
431
|
-
console.warn("[screen-lock] could not persist idle timeout:", err);
|
|
432
|
-
}
|
|
433
|
-
}
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
/***/ }),
|
|
437
|
-
|
|
438
|
-
/***/ 529294:
|
|
439
|
-
/***/ ((module) => {
|
|
440
|
-
|
|
441
|
-
module.exports = require("next/dist/server/app-render/work-async-storage.external.js");
|
|
442
|
-
|
|
443
|
-
/***/ }),
|
|
444
|
-
|
|
445
|
-
/***/ 594735:
|
|
446
|
-
/***/ ((module) => {
|
|
447
|
-
|
|
448
|
-
module.exports = require("events");
|
|
449
|
-
|
|
450
|
-
/***/ }),
|
|
451
|
-
|
|
452
|
-
/***/ 629021:
|
|
453
|
-
/***/ ((module) => {
|
|
454
|
-
|
|
455
|
-
module.exports = require("fs");
|
|
456
|
-
|
|
457
|
-
/***/ }),
|
|
458
|
-
|
|
459
|
-
/***/ 638522:
|
|
460
|
-
/***/ ((module) => {
|
|
461
|
-
|
|
462
|
-
module.exports = require("node:zlib");
|
|
463
|
-
|
|
464
|
-
/***/ }),
|
|
465
|
-
|
|
466
|
-
/***/ 663033:
|
|
467
|
-
/***/ ((module) => {
|
|
468
|
-
|
|
469
|
-
module.exports = require("next/dist/server/app-render/work-unit-async-storage.external.js");
|
|
470
|
-
|
|
471
|
-
/***/ }),
|
|
472
|
-
|
|
473
|
-
/***/ 710846:
|
|
474
|
-
/***/ ((module) => {
|
|
475
|
-
|
|
476
|
-
module.exports = require("next/dist/compiled/next-server/app-page.runtime.prod.js");
|
|
477
|
-
|
|
478
|
-
/***/ }),
|
|
479
|
-
|
|
480
|
-
/***/ 731421:
|
|
481
|
-
/***/ ((module) => {
|
|
482
|
-
|
|
483
|
-
module.exports = require("node:child_process");
|
|
484
|
-
|
|
485
|
-
/***/ }),
|
|
486
|
-
|
|
487
|
-
/***/ 744870:
|
|
488
|
-
/***/ ((module) => {
|
|
489
|
-
|
|
490
|
-
module.exports = require("next/dist/compiled/next-server/app-route.runtime.prod.js");
|
|
491
|
-
|
|
492
|
-
/***/ }),
|
|
493
|
-
|
|
494
|
-
/***/ 775919:
|
|
495
|
-
/***/ ((module) => {
|
|
496
|
-
|
|
497
|
-
module.exports = require("node:worker_threads");
|
|
498
|
-
|
|
499
|
-
/***/ }),
|
|
500
|
-
|
|
501
|
-
/***/ 777030:
|
|
502
|
-
/***/ ((module) => {
|
|
503
|
-
|
|
504
|
-
module.exports = require("node:net");
|
|
505
|
-
|
|
506
|
-
/***/ }),
|
|
507
|
-
|
|
508
|
-
/***/ 781630:
|
|
509
|
-
/***/ ((module) => {
|
|
510
|
-
|
|
511
|
-
module.exports = require("http");
|
|
512
|
-
|
|
513
|
-
/***/ }),
|
|
514
|
-
|
|
515
|
-
/***/ 797911:
|
|
516
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
517
|
-
|
|
518
|
-
__webpack_require__.r(__webpack_exports__);
|
|
519
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
520
|
-
/* harmony export */ handler: () => (/* binding */ handler),
|
|
521
|
-
/* harmony export */ patchFetch: () => (/* binding */ patchFetch),
|
|
522
|
-
/* harmony export */ routeModule: () => (/* binding */ routeModule),
|
|
523
|
-
/* harmony export */ serverHooks: () => (/* binding */ serverHooks),
|
|
524
|
-
/* harmony export */ workAsyncStorage: () => (/* binding */ workAsyncStorage),
|
|
525
|
-
/* harmony export */ workUnitAsyncStorage: () => (/* binding */ workUnitAsyncStorage)
|
|
526
|
-
/* harmony export */ });
|
|
527
|
-
/* harmony import */ var next_dist_server_route_modules_app_route_module_compiled__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(319225);
|
|
528
|
-
/* 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__);
|
|
529
|
-
/* harmony import */ var next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(684006);
|
|
530
|
-
/* harmony import */ var next_dist_server_lib_patch_fetch__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8317);
|
|
531
|
-
/* 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__);
|
|
532
|
-
/* harmony import */ var next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(799373);
|
|
533
|
-
/* 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__);
|
|
534
|
-
/* harmony import */ var next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(434775);
|
|
535
|
-
/* 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__);
|
|
536
|
-
/* harmony import */ var next_dist_server_app_render_manifests_singleton__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(524235);
|
|
537
|
-
/* 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__);
|
|
538
|
-
/* harmony import */ var next_dist_shared_lib_router_utils_app_paths__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(200261);
|
|
539
|
-
/* 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__);
|
|
540
|
-
/* harmony import */ var next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(754365);
|
|
541
|
-
/* 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__);
|
|
542
|
-
/* harmony import */ var next_dist_server_web_spec_extension_adapters_next_request__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(590771);
|
|
543
|
-
/* 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__);
|
|
544
|
-
/* harmony import */ var next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(473461);
|
|
545
|
-
/* 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__);
|
|
546
|
-
/* harmony import */ var next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(767798);
|
|
547
|
-
/* harmony import */ var next_dist_server_send_response__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(192280);
|
|
548
|
-
/* harmony import */ var next_dist_server_web_utils__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(662018);
|
|
549
|
-
/* 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__);
|
|
550
|
-
/* harmony import */ var next_dist_server_lib_cache_control__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(445696);
|
|
551
|
-
/* harmony import */ var next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(347929);
|
|
552
|
-
/* harmony import */ var next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_14__);
|
|
553
|
-
/* harmony import */ var next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(986439);
|
|
554
|
-
/* 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__);
|
|
555
|
-
/* harmony import */ var next_dist_server_lib_route_cache_key__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(710246);
|
|
556
|
-
/* 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__);
|
|
557
|
-
/* harmony import */ var next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(137527);
|
|
558
|
-
/* 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__);
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
// We inject the nextConfigOutput here so that we can use them in the route
|
|
578
|
-
// module.
|
|
579
|
-
const nextConfigOutput = "standalone"
|
|
580
|
-
const routeModule = new next_dist_server_route_modules_app_route_module_compiled__WEBPACK_IMPORTED_MODULE_0__.AppRouteRouteModule({
|
|
581
|
-
definition: {
|
|
582
|
-
kind: next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__.RouteKind.APP_ROUTE,
|
|
583
|
-
page: "/api/v1/security/unlock/route",
|
|
584
|
-
pathname: "/api/v1/security/unlock",
|
|
585
|
-
filename: "route",
|
|
586
|
-
bundlePath: "app/api/v1/security/unlock/route"
|
|
587
|
-
},
|
|
588
|
-
distDir: ".next" || 0,
|
|
589
|
-
relativeProjectDir: false || '',
|
|
590
|
-
resolvedPagePath: "/home/runner/work/jarela/jarela/app/api/v1/security/unlock/route.ts",
|
|
591
|
-
nextConfigOutput,
|
|
592
|
-
// The lazy require factory ensures that:
|
|
593
|
-
// - In dev: devRequestTimingInternalsEnd is set before userland executes,
|
|
594
|
-
// correctly attributing module load time to application-code rather than
|
|
595
|
-
// framework internals.
|
|
596
|
-
// - In all modes: async modules (route files with top-level await) are
|
|
597
|
-
// handled correctly — require() returns a Promise for such modules, which
|
|
598
|
-
// ensureUserland() awaits before the first request is handled.
|
|
599
|
-
userland: ()=>__webpack_require__(391056),
|
|
600
|
-
// In Turbopack dev mode, also provide a synchronous per-request getter so
|
|
601
|
-
// server HMR updates are picked up without re-executing the entry chunk.
|
|
602
|
-
// Using require() (synchronous) avoids adding async overhead that would be
|
|
603
|
-
// incorrectly attributed to application-code time in devRequestTiming.
|
|
604
|
-
... false ? 0 : {}
|
|
605
|
-
});
|
|
606
|
-
// Pull out the exports that we need to expose from the module. This should
|
|
607
|
-
// be eliminated when we've moved the other routes to the new format. These
|
|
608
|
-
// are used to hook into the route.
|
|
609
|
-
const { workAsyncStorage, workUnitAsyncStorage, serverHooks } = routeModule;
|
|
610
|
-
function patchFetch() {
|
|
611
|
-
return (0,next_dist_server_lib_patch_fetch__WEBPACK_IMPORTED_MODULE_2__.patchFetch)({
|
|
612
|
-
workAsyncStorage,
|
|
613
|
-
workUnitAsyncStorage
|
|
614
|
-
});
|
|
615
|
-
}
|
|
616
|
-
|
|
617
|
-
async function handler(req, res, ctx) {
|
|
618
|
-
if (ctx.requestMeta) {
|
|
619
|
-
(0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.setRequestMeta)(req, ctx.requestMeta);
|
|
620
|
-
}
|
|
621
|
-
if (routeModule.isDev) {
|
|
622
|
-
(0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_3__.addRequestMeta)(req, 'devRequestTimingInternalsEnd', process.hrtime.bigint());
|
|
623
|
-
}
|
|
624
|
-
let srcPage = "/api/v1/security/unlock/route";
|
|
625
|
-
// turbopack doesn't normalize `/index` in the page name
|
|
626
|
-
// so we need to to process dynamic routes properly
|
|
627
|
-
// TODO: fix turbopack providing differing value from webpack
|
|
628
|
-
if (false) {} else if (srcPage === '/index') {
|
|
629
|
-
// we always normalize /index specifically
|
|
630
|
-
srcPage = '/';
|
|
631
|
-
}
|
|
632
|
-
const multiZoneDraftMode = false;
|
|
633
|
-
// Registering `instrumentation.ts` usually installs the tracer provider, so
|
|
634
|
-
// do it before starting the request span. The span is started before
|
|
635
|
-
// `prepare`, so route module preparation is part of the request's trace.
|
|
636
|
-
// When this request triggers registration, the lifecycle spans of
|
|
637
|
-
// `instrumentation.ts` are emitted inside the request span.
|
|
638
|
-
const { instrumentation } = await routeModule.ensureInstrumentation(req, {
|
|
639
|
-
deferSpans: true
|
|
640
|
-
});
|
|
641
|
-
return routeModule.traceRequest(req, {
|
|
642
|
-
tracer: (0,next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.getTracer)(),
|
|
643
|
-
spanName: `${req.method || 'GET'} ${srcPage}`,
|
|
644
|
-
httpTarget: req.url,
|
|
645
|
-
instrumentation
|
|
646
|
-
}, (requestSpan, requestRootSpan)=>handleRequest(req, res, ctx, srcPage, multiZoneDraftMode, requestSpan, requestRootSpan));
|
|
647
|
-
}
|
|
648
|
-
async function handleRequest(req, res, ctx, srcPage, multiZoneDraftMode, requestSpan, requestRootSpan) {
|
|
649
|
-
const prepareResult = await routeModule.prepare(req, res, {
|
|
650
|
-
srcPage,
|
|
651
|
-
multiZoneDraftMode
|
|
652
|
-
});
|
|
653
|
-
if (!prepareResult) {
|
|
654
|
-
res.statusCode = 400;
|
|
655
|
-
res.end('Bad Request');
|
|
656
|
-
ctx.waitUntil == null ? void 0 : ctx.waitUntil.call(ctx, Promise.resolve());
|
|
657
|
-
return null;
|
|
243
|
+
const multiZoneDraftMode = false;
|
|
244
|
+
// Registering `instrumentation.ts` usually installs the tracer provider, so
|
|
245
|
+
// do it before starting the request span. The span is started before
|
|
246
|
+
// `prepare`, so route module preparation is part of the request's trace.
|
|
247
|
+
// When this request triggers registration, the lifecycle spans of
|
|
248
|
+
// `instrumentation.ts` are emitted inside the request span.
|
|
249
|
+
const { instrumentation } = await routeModule.ensureInstrumentation(req, {
|
|
250
|
+
deferSpans: true
|
|
251
|
+
});
|
|
252
|
+
return routeModule.traceRequest(req, {
|
|
253
|
+
tracer: (0,next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_4__.getTracer)(),
|
|
254
|
+
spanName: `${req.method || 'GET'} ${srcPage}`,
|
|
255
|
+
httpTarget: req.url,
|
|
256
|
+
instrumentation
|
|
257
|
+
}, (requestSpan, requestRootSpan)=>handleRequest(req, res, ctx, srcPage, multiZoneDraftMode, requestSpan, requestRootSpan));
|
|
258
|
+
}
|
|
259
|
+
async function handleRequest(req, res, ctx, srcPage, multiZoneDraftMode, requestSpan, requestRootSpan) {
|
|
260
|
+
const prepareResult = await routeModule.prepare(req, res, {
|
|
261
|
+
srcPage,
|
|
262
|
+
multiZoneDraftMode
|
|
263
|
+
});
|
|
264
|
+
if (!prepareResult) {
|
|
265
|
+
res.statusCode = 400;
|
|
266
|
+
res.end('Bad Request');
|
|
267
|
+
ctx.waitUntil == null ? void 0 : ctx.waitUntil.call(ctx, Promise.resolve());
|
|
268
|
+
return null;
|
|
658
269
|
}
|
|
659
270
|
const { buildId, deploymentId, params, nextConfig, parsedUrl, isDraftMode, prerenderManifest, routerServerContext, isOnDemandRevalidate, revalidateOnlyGenerated, resolvedPathname, clientReferenceManifest, serverActionsManifest, previewProps } = prepareResult;
|
|
660
271
|
const normalizedSrcPage = (0,next_dist_shared_lib_router_utils_app_paths__WEBPACK_IMPORTED_MODULE_6__.normalizeAppPath)(srcPage);
|
|
@@ -949,18 +560,407 @@ async function handleRequest(req, res, ctx, srcPage, multiZoneDraftMode, request
|
|
|
949
560
|
}
|
|
950
561
|
})();
|
|
951
562
|
}
|
|
952
|
-
};
|
|
953
|
-
// When invoked directly, the request span was started before `prepare`;
|
|
954
|
-
// record the request target as normalized by it. next-server's request span
|
|
955
|
-
// already has it.
|
|
956
|
-
if (!isWrappedByNextServer && req.url !== undefined) {
|
|
957
|
-
requestSpan == null ? void 0 : requestSpan.setAttribute('http.target', req.url);
|
|
563
|
+
};
|
|
564
|
+
// When invoked directly, the request span was started before `prepare`;
|
|
565
|
+
// record the request target as normalized by it. next-server's request span
|
|
566
|
+
// already has it.
|
|
567
|
+
if (!isWrappedByNextServer && req.url !== undefined) {
|
|
568
|
+
requestSpan == null ? void 0 : requestSpan.setAttribute('http.target', req.url);
|
|
569
|
+
}
|
|
570
|
+
await handleResponse(requestSpan);
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
//# sourceMappingURL=app-route.js.map
|
|
574
|
+
|
|
575
|
+
|
|
576
|
+
/***/ }),
|
|
577
|
+
|
|
578
|
+
/***/ 200261:
|
|
579
|
+
/***/ ((module) => {
|
|
580
|
+
|
|
581
|
+
module.exports = require("next/dist/shared/lib/router/utils/app-paths");
|
|
582
|
+
|
|
583
|
+
/***/ }),
|
|
584
|
+
|
|
585
|
+
/***/ 257975:
|
|
586
|
+
/***/ ((module) => {
|
|
587
|
+
|
|
588
|
+
module.exports = require("node:util");
|
|
589
|
+
|
|
590
|
+
/***/ }),
|
|
591
|
+
|
|
592
|
+
/***/ 309956:
|
|
593
|
+
/***/ ((module) => {
|
|
594
|
+
|
|
595
|
+
module.exports = require("undici");
|
|
596
|
+
|
|
597
|
+
/***/ }),
|
|
598
|
+
|
|
599
|
+
/***/ 328354:
|
|
600
|
+
/***/ ((module) => {
|
|
601
|
+
|
|
602
|
+
module.exports = require("util");
|
|
603
|
+
|
|
604
|
+
/***/ }),
|
|
605
|
+
|
|
606
|
+
/***/ 333873:
|
|
607
|
+
/***/ ((module) => {
|
|
608
|
+
|
|
609
|
+
module.exports = require("path");
|
|
610
|
+
|
|
611
|
+
/***/ }),
|
|
612
|
+
|
|
613
|
+
/***/ 344708:
|
|
614
|
+
/***/ ((module) => {
|
|
615
|
+
|
|
616
|
+
module.exports = require("node:https");
|
|
617
|
+
|
|
618
|
+
/***/ }),
|
|
619
|
+
|
|
620
|
+
/***/ 379551:
|
|
621
|
+
/***/ ((module) => {
|
|
622
|
+
|
|
623
|
+
module.exports = require("url");
|
|
624
|
+
|
|
625
|
+
/***/ }),
|
|
626
|
+
|
|
627
|
+
/***/ 380481:
|
|
628
|
+
/***/ ((module) => {
|
|
629
|
+
|
|
630
|
+
module.exports = require("node:readline");
|
|
631
|
+
|
|
632
|
+
/***/ }),
|
|
633
|
+
|
|
634
|
+
/***/ 391056:
|
|
635
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
636
|
+
|
|
637
|
+
__webpack_require__.r(__webpack_exports__);
|
|
638
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
639
|
+
/* harmony export */ POST: () => (/* binding */ POST)
|
|
640
|
+
/* harmony export */ });
|
|
641
|
+
/* harmony import */ var next_server__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(945592);
|
|
642
|
+
/* harmony import */ var zod__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(497377);
|
|
643
|
+
/* harmony import */ var _lib_db__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(251244);
|
|
644
|
+
/* harmony import */ var _lib_crypto_master_key__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(28226);
|
|
645
|
+
/* harmony import */ var _lib_auth_pin_rate_limit__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(67465);
|
|
646
|
+
/* harmony import */ var _lib_security_screen_lock__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(520971);
|
|
647
|
+
/**
|
|
648
|
+
* @public — `POST /api/v1/security/unlock`
|
|
649
|
+
*
|
|
650
|
+
* Decrypts the PIN-wrapped master key with the supplied 6-digit PIN.
|
|
651
|
+
* Rate-limited per remote (3 free attempts, then exponential backoff
|
|
652
|
+
* capped at 5 min). See ADR-0063.
|
|
653
|
+
*
|
|
654
|
+
* Reachable from any whitelisted caller (loopback OR a Tailscale
|
|
655
|
+
* identity already vetted by proxy.ts's requireAccess + locked
|
|
656
|
+
* allow-list). The PIN itself is still the security boundary and
|
|
657
|
+
* brute-forcing is bounded by the per-remote rate limit.
|
|
658
|
+
*
|
|
659
|
+
* Request body: `{ "pin": "123456" }`
|
|
660
|
+
* Responses:
|
|
661
|
+
* 200 `{ ok: true }` — unlocked successfully
|
|
662
|
+
* 400 `{ error: "bad-pin" }` — wrong shape (not 6 digits)
|
|
663
|
+
* 401 `{ error: "invalid-pin" }`— PIN didn't decrypt the blob
|
|
664
|
+
* 409 `{ error: "not-locked" }` — already unlocked or PIN not set
|
|
665
|
+
* 429 `{ error: "rate-limited", retry_after_ms }`
|
|
666
|
+
*/
|
|
667
|
+
|
|
668
|
+
|
|
669
|
+
|
|
670
|
+
|
|
671
|
+
|
|
672
|
+
const Body = zod__WEBPACK_IMPORTED_MODULE_5__/* .object */ .Ikc({
|
|
673
|
+
pin: zod__WEBPACK_IMPORTED_MODULE_5__/* .string */ .YjP()
|
|
674
|
+
});
|
|
675
|
+
async function POST(req) {
|
|
676
|
+
// Touch the DB so master-key bootstrap has run.
|
|
677
|
+
(0,_lib_db__WEBPACK_IMPORTED_MODULE_1__/* .getDb */ .Lf)();
|
|
678
|
+
if (!(0,_lib_crypto_master_key__WEBPACK_IMPORTED_MODULE_2__/* .isMasterKeyLocked */ .wL)()) {
|
|
679
|
+
return next_server__WEBPACK_IMPORTED_MODULE_0__.NextResponse.json({
|
|
680
|
+
error: "not-locked"
|
|
681
|
+
}, {
|
|
682
|
+
status: 409
|
|
683
|
+
});
|
|
684
|
+
}
|
|
685
|
+
const remote = req.headers.get("x-forwarded-for") ?? "loopback";
|
|
686
|
+
const rl = (0,_lib_auth_pin_rate_limit__WEBPACK_IMPORTED_MODULE_3__/* .checkPinRateLimit */ .NP)(remote);
|
|
687
|
+
if (!rl.allowed) {
|
|
688
|
+
return next_server__WEBPACK_IMPORTED_MODULE_0__.NextResponse.json({
|
|
689
|
+
error: "rate-limited",
|
|
690
|
+
retry_after_ms: rl.retryAfterMs
|
|
691
|
+
}, {
|
|
692
|
+
status: 429,
|
|
693
|
+
headers: {
|
|
694
|
+
"Retry-After": String(Math.ceil(rl.retryAfterMs / 1000))
|
|
695
|
+
}
|
|
696
|
+
});
|
|
697
|
+
}
|
|
698
|
+
let body;
|
|
699
|
+
try {
|
|
700
|
+
body = await req.json();
|
|
701
|
+
} catch {
|
|
702
|
+
return next_server__WEBPACK_IMPORTED_MODULE_0__.NextResponse.json({
|
|
703
|
+
error: "bad-json"
|
|
704
|
+
}, {
|
|
705
|
+
status: 400
|
|
706
|
+
});
|
|
707
|
+
}
|
|
708
|
+
const parsed = Body.safeParse(body);
|
|
709
|
+
if (!parsed.success) {
|
|
710
|
+
return next_server__WEBPACK_IMPORTED_MODULE_0__.NextResponse.json({
|
|
711
|
+
error: "bad-pin"
|
|
712
|
+
}, {
|
|
713
|
+
status: 400
|
|
714
|
+
});
|
|
715
|
+
}
|
|
716
|
+
try {
|
|
717
|
+
(0,_lib_crypto_master_key__WEBPACK_IMPORTED_MODULE_2__/* .unlockMasterKey */ .AM)(parsed.data.pin);
|
|
718
|
+
(0,_lib_auth_pin_rate_limit__WEBPACK_IMPORTED_MODULE_3__/* .recordPinSuccess */ .Ms)(remote);
|
|
719
|
+
// Decrypting the master key proves the human is present, so also
|
|
720
|
+
// clear any pending screen-lock. Otherwise a user staring at both
|
|
721
|
+
// overlays at once would have to enter the same PIN twice.
|
|
722
|
+
(0,_lib_security_screen_lock__WEBPACK_IMPORTED_MODULE_4__/* .unlockScreen */ .LT)();
|
|
723
|
+
return next_server__WEBPACK_IMPORTED_MODULE_0__.NextResponse.json({
|
|
724
|
+
ok: true
|
|
725
|
+
});
|
|
726
|
+
} catch (err) {
|
|
727
|
+
if (err instanceof _lib_crypto_master_key__WEBPACK_IMPORTED_MODULE_2__/* .InvalidPinError */ .z_) {
|
|
728
|
+
(0,_lib_auth_pin_rate_limit__WEBPACK_IMPORTED_MODULE_3__/* .recordPinFailure */ .TU)(remote);
|
|
729
|
+
return next_server__WEBPACK_IMPORTED_MODULE_0__.NextResponse.json({
|
|
730
|
+
error: "invalid-pin"
|
|
731
|
+
}, {
|
|
732
|
+
status: 401
|
|
733
|
+
});
|
|
734
|
+
}
|
|
735
|
+
if (err instanceof Error && /6 digits/.test(err.message)) {
|
|
736
|
+
// pin-wrap's assertValidPin rejects wrong shape with a generic
|
|
737
|
+
// Error — surface as 400 not 500.
|
|
738
|
+
return next_server__WEBPACK_IMPORTED_MODULE_0__.NextResponse.json({
|
|
739
|
+
error: "bad-pin"
|
|
740
|
+
}, {
|
|
741
|
+
status: 400
|
|
742
|
+
});
|
|
743
|
+
}
|
|
744
|
+
if (err instanceof Error && /is not locked/.test(err.message)) {
|
|
745
|
+
// Parallel unlock won the race between our isMasterKeyLocked()
|
|
746
|
+
// check and unwrap. The goal state is achieved - treat as success.
|
|
747
|
+
(0,_lib_security_screen_lock__WEBPACK_IMPORTED_MODULE_4__/* .unlockScreen */ .LT)();
|
|
748
|
+
return next_server__WEBPACK_IMPORTED_MODULE_0__.NextResponse.json({
|
|
749
|
+
ok: true
|
|
750
|
+
});
|
|
751
|
+
}
|
|
752
|
+
console.error("[security/unlock] unexpected error:", err);
|
|
753
|
+
return next_server__WEBPACK_IMPORTED_MODULE_0__.NextResponse.json({
|
|
754
|
+
error: "internal"
|
|
755
|
+
}, {
|
|
756
|
+
status: 500
|
|
757
|
+
});
|
|
958
758
|
}
|
|
959
|
-
await handleResponse(requestSpan);
|
|
960
759
|
}
|
|
961
760
|
|
|
962
|
-
//# sourceMappingURL=app-route.js.map
|
|
963
761
|
|
|
762
|
+
/***/ }),
|
|
763
|
+
|
|
764
|
+
/***/ 399253:
|
|
765
|
+
/***/ ((module) => {
|
|
766
|
+
|
|
767
|
+
module.exports = import("@huggingface/transformers");;
|
|
768
|
+
|
|
769
|
+
/***/ }),
|
|
770
|
+
|
|
771
|
+
/***/ 419121:
|
|
772
|
+
/***/ ((module) => {
|
|
773
|
+
|
|
774
|
+
module.exports = require("next/dist/server/app-render/action-async-storage.external.js");
|
|
775
|
+
|
|
776
|
+
/***/ }),
|
|
777
|
+
|
|
778
|
+
/***/ 455511:
|
|
779
|
+
/***/ ((module) => {
|
|
780
|
+
|
|
781
|
+
module.exports = require("crypto");
|
|
782
|
+
|
|
783
|
+
/***/ }),
|
|
784
|
+
|
|
785
|
+
/***/ 520971:
|
|
786
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
787
|
+
|
|
788
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
789
|
+
/* harmony export */ Gk: () => (/* binding */ getIdleTimeoutMs),
|
|
790
|
+
/* harmony export */ HI: () => (/* binding */ isScreenLocked),
|
|
791
|
+
/* harmony export */ LT: () => (/* binding */ unlockScreen),
|
|
792
|
+
/* harmony export */ yW: () => (/* binding */ setIdleTimeoutMs)
|
|
793
|
+
/* harmony export */ });
|
|
794
|
+
/* unused harmony exports recordUserActivity, lockScreen */
|
|
795
|
+
/* harmony import */ var _lib_stores_app_settings__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4400);
|
|
796
|
+
/**
|
|
797
|
+
* Screen-lock state for the running app process.
|
|
798
|
+
*
|
|
799
|
+
* Distinct from the master-key lock (lib/crypto/master-key.ts):
|
|
800
|
+
*
|
|
801
|
+
* - Master-key lock = crypto lock. Key wiped from memory; decryption
|
|
802
|
+
* throws; background work stalls until PIN unwraps the keyfile.
|
|
803
|
+
*
|
|
804
|
+
* - Screen lock = presence lock. The master key stays in memory so
|
|
805
|
+
* scheduled tasks, bridges, and streaming runs keep going. The UI
|
|
806
|
+
* is hidden behind a PIN re-prompt that just verifies the user
|
|
807
|
+
* entered the same PIN that wraps their keyfile — a "is the human
|
|
808
|
+
* still here?" check, not a re-derivation of the key.
|
|
809
|
+
*
|
|
810
|
+
* Triggered by inactivity: the proxy records every non-polling /api/v1/*
|
|
811
|
+
* request as user activity. After `idleTimeoutMs` of silence the next
|
|
812
|
+
* request flips the screen-locked flag and gets a 423.
|
|
813
|
+
*
|
|
814
|
+
* Pinned to globalThis to survive Next.js dev bundle isolation (each
|
|
815
|
+
* route handler / proxy file gets its own ESM instance — bare module-
|
|
816
|
+
* level `let`s wouldn't share state). Same pattern as master-key.ts.
|
|
817
|
+
*/
|
|
818
|
+
const DEFAULT_IDLE_TIMEOUT_MS = 60 * 60 * 1000; // 1 hour
|
|
819
|
+
const _host = globalThis;
|
|
820
|
+
const _g = _host.__jarelaScreenLock ?? (_host.__jarelaScreenLock = {
|
|
821
|
+
lastActivity: Date.now(),
|
|
822
|
+
idleTimeoutMs: DEFAULT_IDLE_TIMEOUT_MS,
|
|
823
|
+
locked: false,
|
|
824
|
+
hydrated: false
|
|
825
|
+
});
|
|
826
|
+
// Pull the user-configured timeout off disk the first time we're asked
|
|
827
|
+
// after a process start. Done lazily so importing this module doesn't
|
|
828
|
+
// force a DB open before initMasterKey() has run.
|
|
829
|
+
function hydrateOnce() {
|
|
830
|
+
if (_g.hydrated) return;
|
|
831
|
+
try {
|
|
832
|
+
const persisted = (0,_lib_stores_app_settings__WEBPACK_IMPORTED_MODULE_0__/* .getScreenLockIdleTimeoutMs */ .J2)();
|
|
833
|
+
if (persisted !== null) _g.idleTimeoutMs = persisted;
|
|
834
|
+
_g.hydrated = true;
|
|
835
|
+
} catch (err) {
|
|
836
|
+
// DB not ready yet (first request before initMasterKey ran). Leave
|
|
837
|
+
// the default and try again on the next call — don't flip hydrated.
|
|
838
|
+
console.warn("[screen-lock] could not hydrate idle timeout:", err);
|
|
839
|
+
}
|
|
840
|
+
}
|
|
841
|
+
/**
|
|
842
|
+
* Record a user-initiated HTTP request. Resets the idle timer and (if
|
|
843
|
+
* the screen was locked passively) does NOT unlock it — only an explicit
|
|
844
|
+
* verify-pin call may clear the lock.
|
|
845
|
+
*/ function recordUserActivity() {
|
|
846
|
+
if (!_g.locked) {
|
|
847
|
+
_g.lastActivity = Date.now();
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
/**
|
|
851
|
+
* Returns true if the screen should be considered locked right now.
|
|
852
|
+
* Lazily flips the flag when the idle timeout has elapsed so we don't
|
|
853
|
+
* need a background timer.
|
|
854
|
+
*/ function isScreenLocked() {
|
|
855
|
+
hydrateOnce();
|
|
856
|
+
if (_g.locked) return true;
|
|
857
|
+
if (_g.idleTimeoutMs <= 0) return false; // disabled
|
|
858
|
+
if (Date.now() - _g.lastActivity > _g.idleTimeoutMs) {
|
|
859
|
+
_g.locked = true;
|
|
860
|
+
return true;
|
|
861
|
+
}
|
|
862
|
+
return false;
|
|
863
|
+
}
|
|
864
|
+
/** Unlock — called after a successful verify-pin. */ function unlockScreen() {
|
|
865
|
+
_g.locked = false;
|
|
866
|
+
_g.lastActivity = Date.now();
|
|
867
|
+
}
|
|
868
|
+
/** Force-lock immediately. Used by manual "lock now" actions. */ function lockScreen() {
|
|
869
|
+
_g.locked = true;
|
|
870
|
+
}
|
|
871
|
+
function getIdleTimeoutMs() {
|
|
872
|
+
hydrateOnce();
|
|
873
|
+
return _g.idleTimeoutMs;
|
|
874
|
+
}
|
|
875
|
+
/** 0 disables the auto-lock entirely. */ function setIdleTimeoutMs(ms) {
|
|
876
|
+
if (!Number.isFinite(ms) || ms < 0) throw new Error("invalid timeout");
|
|
877
|
+
_g.idleTimeoutMs = Math.floor(ms);
|
|
878
|
+
_g.lastActivity = Date.now();
|
|
879
|
+
_g.hydrated = true; // we just set it; skip the load-from-disk path
|
|
880
|
+
try {
|
|
881
|
+
(0,_lib_stores_app_settings__WEBPACK_IMPORTED_MODULE_0__/* .setScreenLockIdleTimeoutMs */ .Z0)(_g.idleTimeoutMs);
|
|
882
|
+
} catch (err) {
|
|
883
|
+
console.warn("[screen-lock] could not persist idle timeout:", err);
|
|
884
|
+
}
|
|
885
|
+
}
|
|
886
|
+
|
|
887
|
+
|
|
888
|
+
/***/ }),
|
|
889
|
+
|
|
890
|
+
/***/ 529294:
|
|
891
|
+
/***/ ((module) => {
|
|
892
|
+
|
|
893
|
+
module.exports = require("next/dist/server/app-render/work-async-storage.external.js");
|
|
894
|
+
|
|
895
|
+
/***/ }),
|
|
896
|
+
|
|
897
|
+
/***/ 594735:
|
|
898
|
+
/***/ ((module) => {
|
|
899
|
+
|
|
900
|
+
module.exports = require("events");
|
|
901
|
+
|
|
902
|
+
/***/ }),
|
|
903
|
+
|
|
904
|
+
/***/ 629021:
|
|
905
|
+
/***/ ((module) => {
|
|
906
|
+
|
|
907
|
+
module.exports = require("fs");
|
|
908
|
+
|
|
909
|
+
/***/ }),
|
|
910
|
+
|
|
911
|
+
/***/ 638522:
|
|
912
|
+
/***/ ((module) => {
|
|
913
|
+
|
|
914
|
+
module.exports = require("node:zlib");
|
|
915
|
+
|
|
916
|
+
/***/ }),
|
|
917
|
+
|
|
918
|
+
/***/ 663033:
|
|
919
|
+
/***/ ((module) => {
|
|
920
|
+
|
|
921
|
+
module.exports = require("next/dist/server/app-render/work-unit-async-storage.external.js");
|
|
922
|
+
|
|
923
|
+
/***/ }),
|
|
924
|
+
|
|
925
|
+
/***/ 710846:
|
|
926
|
+
/***/ ((module) => {
|
|
927
|
+
|
|
928
|
+
module.exports = require("next/dist/compiled/next-server/app-page.runtime.prod.js");
|
|
929
|
+
|
|
930
|
+
/***/ }),
|
|
931
|
+
|
|
932
|
+
/***/ 731421:
|
|
933
|
+
/***/ ((module) => {
|
|
934
|
+
|
|
935
|
+
module.exports = require("node:child_process");
|
|
936
|
+
|
|
937
|
+
/***/ }),
|
|
938
|
+
|
|
939
|
+
/***/ 744870:
|
|
940
|
+
/***/ ((module) => {
|
|
941
|
+
|
|
942
|
+
module.exports = require("next/dist/compiled/next-server/app-route.runtime.prod.js");
|
|
943
|
+
|
|
944
|
+
/***/ }),
|
|
945
|
+
|
|
946
|
+
/***/ 775919:
|
|
947
|
+
/***/ ((module) => {
|
|
948
|
+
|
|
949
|
+
module.exports = require("node:worker_threads");
|
|
950
|
+
|
|
951
|
+
/***/ }),
|
|
952
|
+
|
|
953
|
+
/***/ 777030:
|
|
954
|
+
/***/ ((module) => {
|
|
955
|
+
|
|
956
|
+
module.exports = require("node:net");
|
|
957
|
+
|
|
958
|
+
/***/ }),
|
|
959
|
+
|
|
960
|
+
/***/ 781630:
|
|
961
|
+
/***/ ((module) => {
|
|
962
|
+
|
|
963
|
+
module.exports = require("http");
|
|
964
964
|
|
|
965
965
|
/***/ }),
|
|
966
966
|
|
|
@@ -1027,7 +1027,7 @@ module.exports = require("next/dist/shared/lib/no-fallback-error.external");
|
|
|
1027
1027
|
var __webpack_require__ = require("../../../../../webpack-runtime.js");
|
|
1028
1028
|
__webpack_require__.C(exports);
|
|
1029
1029
|
var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
|
|
1030
|
-
var __webpack_exports__ = __webpack_require__.X(0, [2970,7377,1813,4891,4992,1244], () => (__webpack_exec__(
|
|
1030
|
+
var __webpack_exports__ = __webpack_require__.X(0, [2970,7377,1813,4891,4992,1244], () => (__webpack_exec__(197140)));
|
|
1031
1031
|
module.exports = __webpack_exports__;
|
|
1032
1032
|
|
|
1033
1033
|
})();
|