@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
|
@@ -2810,579 +2810,7 @@ module.exports = require("node:path");
|
|
|
2810
2810
|
|
|
2811
2811
|
/***/ }),
|
|
2812
2812
|
|
|
2813
|
-
/***/
|
|
2814
|
-
/***/ ((module) => {
|
|
2815
|
-
|
|
2816
|
-
"use strict";
|
|
2817
|
-
module.exports = require("node:util");
|
|
2818
|
-
|
|
2819
|
-
/***/ }),
|
|
2820
|
-
|
|
2821
|
-
/***/ 279925:
|
|
2822
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
2823
|
-
|
|
2824
|
-
"use strict";
|
|
2825
|
-
// Format function modified from nodejs
|
|
2826
|
-
// Copyright Joyent, Inc. and other Node contributors.
|
|
2827
|
-
//
|
|
2828
|
-
// Permission is hereby granted, free of charge, to any person obtaining a
|
|
2829
|
-
// copy of this software and associated documentation files (the
|
|
2830
|
-
// "Software"), to deal in the Software without restriction, including
|
|
2831
|
-
// without limitation the rights to use, copy, modify, merge, publish,
|
|
2832
|
-
// distribute, sublicense, and/or sell copies of the Software, and to permit
|
|
2833
|
-
// persons to whom the Software is furnished to do so, subject to the
|
|
2834
|
-
// following conditions:
|
|
2835
|
-
//
|
|
2836
|
-
// The above copyright notice and this permission notice shall be included
|
|
2837
|
-
// in all copies or substantial portions of the Software.
|
|
2838
|
-
//
|
|
2839
|
-
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
2840
|
-
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
2841
|
-
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
|
2842
|
-
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
2843
|
-
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
2844
|
-
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
|
2845
|
-
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
2846
|
-
|
|
2847
|
-
Object.defineProperty(exports, "__esModule", ({
|
|
2848
|
-
value: true
|
|
2849
|
-
}));
|
|
2850
|
-
0 && (0);
|
|
2851
|
-
function _export(target, all) {
|
|
2852
|
-
for(var name in all)Object.defineProperty(target, name, {
|
|
2853
|
-
enumerable: true,
|
|
2854
|
-
get: all[name]
|
|
2855
|
-
});
|
|
2856
|
-
}
|
|
2857
|
-
_export(exports, {
|
|
2858
|
-
formatUrl: function() {
|
|
2859
|
-
return formatUrl;
|
|
2860
|
-
},
|
|
2861
|
-
formatWithValidation: function() {
|
|
2862
|
-
return formatWithValidation;
|
|
2863
|
-
},
|
|
2864
|
-
urlObjectKeys: function() {
|
|
2865
|
-
return urlObjectKeys;
|
|
2866
|
-
}
|
|
2867
|
-
});
|
|
2868
|
-
const _interop_require_wildcard = __webpack_require__(124814);
|
|
2869
|
-
const _querystring = /*#__PURE__*/ _interop_require_wildcard._(__webpack_require__(690485));
|
|
2870
|
-
const slashedProtocols = /https?|ftp|gopher|file/;
|
|
2871
|
-
function formatUrl(urlObj) {
|
|
2872
|
-
let { auth, hostname } = urlObj;
|
|
2873
|
-
let protocol = urlObj.protocol || '';
|
|
2874
|
-
let pathname = urlObj.pathname || '';
|
|
2875
|
-
let hash = urlObj.hash || '';
|
|
2876
|
-
let query = urlObj.query || '';
|
|
2877
|
-
let host = false;
|
|
2878
|
-
auth = auth ? encodeURIComponent(auth).replace(/%3A/i, ':') + '@' : '';
|
|
2879
|
-
if (urlObj.host) {
|
|
2880
|
-
host = auth + urlObj.host;
|
|
2881
|
-
} else if (hostname) {
|
|
2882
|
-
host = auth + (~hostname.indexOf(':') ? `[${hostname}]` : hostname);
|
|
2883
|
-
if (urlObj.port) {
|
|
2884
|
-
host += ':' + urlObj.port;
|
|
2885
|
-
}
|
|
2886
|
-
}
|
|
2887
|
-
if (query && typeof query === 'object') {
|
|
2888
|
-
query = String(_querystring.urlQueryToSearchParams(query));
|
|
2889
|
-
}
|
|
2890
|
-
let search = urlObj.search || query && `?${query}` || '';
|
|
2891
|
-
if (protocol && !protocol.endsWith(':')) protocol += ':';
|
|
2892
|
-
if (urlObj.slashes || (!protocol || slashedProtocols.test(protocol)) && host !== false) {
|
|
2893
|
-
host = '//' + (host || '');
|
|
2894
|
-
if (pathname && pathname[0] !== '/') pathname = '/' + pathname;
|
|
2895
|
-
} else if (!host) {
|
|
2896
|
-
host = '';
|
|
2897
|
-
}
|
|
2898
|
-
if (hash && hash[0] !== '#') hash = '#' + hash;
|
|
2899
|
-
if (search && search[0] !== '?') search = '?' + search;
|
|
2900
|
-
pathname = pathname.replace(/[?#]/g, encodeURIComponent);
|
|
2901
|
-
search = search.replace('#', '%23');
|
|
2902
|
-
return `${protocol}${host}${pathname}${search}${hash}`;
|
|
2903
|
-
}
|
|
2904
|
-
const urlObjectKeys = [
|
|
2905
|
-
'auth',
|
|
2906
|
-
'hash',
|
|
2907
|
-
'host',
|
|
2908
|
-
'hostname',
|
|
2909
|
-
'href',
|
|
2910
|
-
'path',
|
|
2911
|
-
'pathname',
|
|
2912
|
-
'port',
|
|
2913
|
-
'protocol',
|
|
2914
|
-
'query',
|
|
2915
|
-
'search',
|
|
2916
|
-
'slashes'
|
|
2917
|
-
];
|
|
2918
|
-
function formatWithValidation(url) {
|
|
2919
|
-
if (false) {}
|
|
2920
|
-
return formatUrl(url);
|
|
2921
|
-
} //# sourceMappingURL=format-url.js.map
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
/***/ }),
|
|
2925
|
-
|
|
2926
|
-
/***/ 309956:
|
|
2927
|
-
/***/ ((module) => {
|
|
2928
|
-
|
|
2929
|
-
"use strict";
|
|
2930
|
-
module.exports = require("undici");
|
|
2931
|
-
|
|
2932
|
-
/***/ }),
|
|
2933
|
-
|
|
2934
|
-
/***/ 328354:
|
|
2935
|
-
/***/ ((module) => {
|
|
2936
|
-
|
|
2937
|
-
"use strict";
|
|
2938
|
-
module.exports = require("util");
|
|
2939
|
-
|
|
2940
|
-
/***/ }),
|
|
2941
|
-
|
|
2942
|
-
/***/ 333873:
|
|
2943
|
-
/***/ ((module) => {
|
|
2944
|
-
|
|
2945
|
-
"use strict";
|
|
2946
|
-
module.exports = require("path");
|
|
2947
|
-
|
|
2948
|
-
/***/ }),
|
|
2949
|
-
|
|
2950
|
-
/***/ 344708:
|
|
2951
|
-
/***/ ((module) => {
|
|
2952
|
-
|
|
2953
|
-
"use strict";
|
|
2954
|
-
module.exports = require("node:https");
|
|
2955
|
-
|
|
2956
|
-
/***/ }),
|
|
2957
|
-
|
|
2958
|
-
/***/ 371000:
|
|
2959
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
2960
|
-
|
|
2961
|
-
"use strict";
|
|
2962
|
-
|
|
2963
|
-
Object.defineProperty(exports, "__esModule", ({
|
|
2964
|
-
value: true
|
|
2965
|
-
}));
|
|
2966
|
-
Object.defineProperty(exports, "addPathPrefix", ({
|
|
2967
|
-
enumerable: true,
|
|
2968
|
-
get: function() {
|
|
2969
|
-
return addPathPrefix;
|
|
2970
|
-
}
|
|
2971
|
-
}));
|
|
2972
|
-
const _parsepath = __webpack_require__(910571);
|
|
2973
|
-
function addPathPrefix(path, prefix) {
|
|
2974
|
-
if (!path.startsWith('/') || !prefix) {
|
|
2975
|
-
return path;
|
|
2976
|
-
}
|
|
2977
|
-
const { pathname, query, hash } = (0, _parsepath.parsePath)(path);
|
|
2978
|
-
return `${prefix}${pathname}${query}${hash}`;
|
|
2979
|
-
} //# sourceMappingURL=add-path-prefix.js.map
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
/***/ }),
|
|
2983
|
-
|
|
2984
|
-
/***/ 379551:
|
|
2985
|
-
/***/ ((module) => {
|
|
2986
|
-
|
|
2987
|
-
"use strict";
|
|
2988
|
-
module.exports = require("url");
|
|
2989
|
-
|
|
2990
|
-
/***/ }),
|
|
2991
|
-
|
|
2992
|
-
/***/ 380481:
|
|
2993
|
-
/***/ ((module) => {
|
|
2994
|
-
|
|
2995
|
-
"use strict";
|
|
2996
|
-
module.exports = require("node:readline");
|
|
2997
|
-
|
|
2998
|
-
/***/ }),
|
|
2999
|
-
|
|
3000
|
-
/***/ 399253:
|
|
3001
|
-
/***/ ((module) => {
|
|
3002
|
-
|
|
3003
|
-
"use strict";
|
|
3004
|
-
module.exports = import("@huggingface/transformers");;
|
|
3005
|
-
|
|
3006
|
-
/***/ }),
|
|
3007
|
-
|
|
3008
|
-
/***/ 419121:
|
|
3009
|
-
/***/ ((module) => {
|
|
3010
|
-
|
|
3011
|
-
"use strict";
|
|
3012
|
-
module.exports = require("next/dist/server/app-render/action-async-storage.external.js");
|
|
3013
|
-
|
|
3014
|
-
/***/ }),
|
|
3015
|
-
|
|
3016
|
-
/***/ 455511:
|
|
3017
|
-
/***/ ((module) => {
|
|
3018
|
-
|
|
3019
|
-
"use strict";
|
|
3020
|
-
module.exports = require("crypto");
|
|
3021
|
-
|
|
3022
|
-
/***/ }),
|
|
3023
|
-
|
|
3024
|
-
/***/ 456761:
|
|
3025
|
-
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
|
|
3026
|
-
|
|
3027
|
-
Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 59255));
|
|
3028
|
-
;
|
|
3029
|
-
Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 756075));
|
|
3030
|
-
;
|
|
3031
|
-
Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 467181));
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
/***/ }),
|
|
3035
|
-
|
|
3036
|
-
/***/ 499647:
|
|
3037
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
3038
|
-
|
|
3039
|
-
"use strict";
|
|
3040
|
-
__webpack_require__.r(__webpack_exports__);
|
|
3041
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3042
|
-
/* harmony export */ "default": () => (/* binding */ Home),
|
|
3043
|
-
/* harmony export */ dynamic: () => (/* binding */ dynamic)
|
|
3044
|
-
/* harmony export */ });
|
|
3045
|
-
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(305735);
|
|
3046
|
-
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__);
|
|
3047
|
-
/* harmony import */ var _components_layout_AppShell__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(59255);
|
|
3048
|
-
/* harmony import */ var _components_setup_UnlockScreen__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(467181);
|
|
3049
|
-
/* harmony import */ var _components_setup_FirstKeySetup__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(756075);
|
|
3050
|
-
/* harmony import */ var _lib_stores_model_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(780937);
|
|
3051
|
-
/* harmony import */ var _lib_stores_agent_configs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(41720);
|
|
3052
|
-
/* harmony import */ var _lib_db__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(251244);
|
|
3053
|
-
/* harmony import */ var _lib_crypto_master_key__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(28226);
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
// Re-evaluate on every request: the master-key lock state changes at
|
|
3063
|
-
// runtime (PIN unlock) and is not an explicit dynamic dependency Next can
|
|
3064
|
-
// see, so without this the page would be statically prerendered at build
|
|
3065
|
-
// time (when the key is locked) and served forever from the route cache.
|
|
3066
|
-
const dynamic = "force-dynamic";
|
|
3067
|
-
function Home() {
|
|
3068
|
-
// Touch the DB so the master-key bootstrap runs (ADR-0005). If the
|
|
3069
|
-
// user enabled the PIN (ADR-0063), the master key is locked here and
|
|
3070
|
-
// any decrypt would throw — render the unlock splash instead.
|
|
3071
|
-
(0,_lib_db__WEBPACK_IMPORTED_MODULE_6__/* .getDb */ .Lf)();
|
|
3072
|
-
if ((0,_lib_crypto_master_key__WEBPACK_IMPORTED_MODULE_7__/* .isMasterKeyLocked */ .wL)()) {
|
|
3073
|
-
return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components_setup_UnlockScreen__WEBPACK_IMPORTED_MODULE_2__.UnlockScreen, {});
|
|
3074
|
-
}
|
|
3075
|
-
// Keep fresh and incomplete installations in the guided setup until both
|
|
3076
|
-
// a usable model and an assistant exist.
|
|
3077
|
-
if ((0,_lib_stores_model_config__WEBPACK_IMPORTED_MODULE_4__/* .listEnabledModelConfigs */ ["if"])().length === 0 || (0,_lib_stores_agent_configs__WEBPACK_IMPORTED_MODULE_5__/* .listAgentConfigs */ .zb)().length === 0) {
|
|
3078
|
-
return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components_setup_FirstKeySetup__WEBPACK_IMPORTED_MODULE_3__.FirstKeySetup, {});
|
|
3079
|
-
}
|
|
3080
|
-
return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components_layout_AppShell__WEBPACK_IMPORTED_MODULE_1__.AppShell, {});
|
|
3081
|
-
}
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
/***/ }),
|
|
3085
|
-
|
|
3086
|
-
/***/ 502116:
|
|
3087
|
-
/***/ ((module, exports, __webpack_require__) => {
|
|
3088
|
-
|
|
3089
|
-
"use strict";
|
|
3090
|
-
/* __next_internal_client_entry_do_not_use__ cjs */
|
|
3091
|
-
Object.defineProperty(exports, "__esModule", ({
|
|
3092
|
-
value: true
|
|
3093
|
-
}));
|
|
3094
|
-
0 && (0);
|
|
3095
|
-
function _export(target, all) {
|
|
3096
|
-
for(var name in all)Object.defineProperty(target, name, {
|
|
3097
|
-
enumerable: true,
|
|
3098
|
-
get: all[name]
|
|
3099
|
-
});
|
|
3100
|
-
}
|
|
3101
|
-
_export(exports, {
|
|
3102
|
-
/**
|
|
3103
|
-
* A React component that extends the HTML `<a>` element to provide
|
|
3104
|
-
* [prefetching](https://nextjs.org/docs/app/building-your-application/routing/linking-and-navigating#2-prefetching)
|
|
3105
|
-
* and client-side navigation. This is the primary way to navigate between routes in Next.js.
|
|
3106
|
-
*
|
|
3107
|
-
* @remarks
|
|
3108
|
-
* - Prefetching is only enabled in production.
|
|
3109
|
-
*
|
|
3110
|
-
* @see https://nextjs.org/docs/app/api-reference/components/link
|
|
3111
|
-
*/ default: function() {
|
|
3112
|
-
return LinkComponent;
|
|
3113
|
-
},
|
|
3114
|
-
useLinkStatus: function() {
|
|
3115
|
-
return useLinkStatus;
|
|
3116
|
-
}
|
|
3117
|
-
});
|
|
3118
|
-
const _interop_require_wildcard = __webpack_require__(124814);
|
|
3119
|
-
const _jsxruntime = __webpack_require__(548249);
|
|
3120
|
-
const _react = /*#__PURE__*/ _interop_require_wildcard._(__webpack_require__(367484));
|
|
3121
|
-
const _formaturl = __webpack_require__(279925);
|
|
3122
|
-
const _approutercontextsharedruntime = __webpack_require__(730836);
|
|
3123
|
-
const _usemergedref = __webpack_require__(57272);
|
|
3124
|
-
const _utils = __webpack_require__(830167);
|
|
3125
|
-
const _addbasepath = __webpack_require__(775729);
|
|
3126
|
-
const _routerreducertypes = __webpack_require__(52204);
|
|
3127
|
-
const _links = __webpack_require__(778756);
|
|
3128
|
-
const _islocalurl = __webpack_require__(152836);
|
|
3129
|
-
const _types = __webpack_require__(610881);
|
|
3130
|
-
function isModifiedEvent(event) {
|
|
3131
|
-
const eventTarget = event.currentTarget;
|
|
3132
|
-
const target = eventTarget.getAttribute('target');
|
|
3133
|
-
return target && target !== '_self' || event.metaKey || event.ctrlKey || event.shiftKey || event.altKey || // triggers resource download
|
|
3134
|
-
event.nativeEvent && event.nativeEvent.which === 2;
|
|
3135
|
-
}
|
|
3136
|
-
function linkClicked(e, href, linkInstanceRef, replace, scroll, onNavigate, transitionTypes, prefetchIntent = 'none') {
|
|
3137
|
-
if (false) {}
|
|
3138
|
-
}
|
|
3139
|
-
function formatStringOrUrl(urlObjOrString) {
|
|
3140
|
-
if (typeof urlObjOrString === 'string') {
|
|
3141
|
-
return urlObjOrString;
|
|
3142
|
-
}
|
|
3143
|
-
return (0, _formaturl.formatUrl)(urlObjOrString);
|
|
3144
|
-
}
|
|
3145
|
-
function LinkComponent(props) {
|
|
3146
|
-
const [linkStatus, setOptimisticLinkStatus] = (0, _react.useOptimistic)(_links.IDLE_LINK_STATUS);
|
|
3147
|
-
let children;
|
|
3148
|
-
const linkInstanceRef = (0, _react.useRef)(null);
|
|
3149
|
-
const { href: hrefProp, as: asProp, children: childrenProp, prefetch: prefetchProp = null, passHref, replace, shallow, scroll, onClick, onMouseEnter: onMouseEnterProp, onTouchStart: onTouchStartProp, legacyBehavior = false, onNavigate, transitionTypes, ref: forwardedRef, unstable_dynamicOnHover, ...restProps } = props;
|
|
3150
|
-
children = childrenProp;
|
|
3151
|
-
if (legacyBehavior && (typeof children === 'string' || typeof children === 'number')) {
|
|
3152
|
-
children = /*#__PURE__*/ (0, _jsxruntime.jsx)("a", {
|
|
3153
|
-
children: children
|
|
3154
|
-
});
|
|
3155
|
-
}
|
|
3156
|
-
const router = _react.default.useContext(_approutercontextsharedruntime.AppRouterContext);
|
|
3157
|
-
const prefetchEnabled = prefetchProp !== false;
|
|
3158
|
-
const prefetchIntent = prefetchProp === false ? 'none' : prefetchProp === true ? 'full' : 'auto';
|
|
3159
|
-
const fetchStrategy = prefetchIntent !== 'none' ? getFetchStrategyFromPrefetchIntent(prefetchIntent) : _types.FetchStrategy.PPR;
|
|
3160
|
-
if (false) {}
|
|
3161
|
-
const resolvedHref = asProp || hrefProp;
|
|
3162
|
-
const formattedHref = formatStringOrUrl(resolvedHref);
|
|
3163
|
-
if (false) {}
|
|
3164
|
-
// This will return the first child, if multiple are provided it will throw an error
|
|
3165
|
-
let child;
|
|
3166
|
-
if (legacyBehavior) {
|
|
3167
|
-
if (children?.$$typeof === Symbol.for('react.lazy')) {
|
|
3168
|
-
throw new Error(`\`<Link legacyBehavior>\` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's \`<a>\` tag.`);
|
|
3169
|
-
}
|
|
3170
|
-
if (false) {} else {
|
|
3171
|
-
child = _react.default.Children.only(children);
|
|
3172
|
-
}
|
|
3173
|
-
} else {
|
|
3174
|
-
if (false) {}
|
|
3175
|
-
}
|
|
3176
|
-
const childRef = legacyBehavior ? child && typeof child === 'object' && child.ref : forwardedRef;
|
|
3177
|
-
// Capture the Owner Stack during render so dev-only warnings emitted later
|
|
3178
|
-
// at navigation time can be associated with the JSX that created
|
|
3179
|
-
// this <Link>.
|
|
3180
|
-
const ownerStack = false ? 0 : undefined;
|
|
3181
|
-
// Use a callback ref to attach an IntersectionObserver to the anchor tag on
|
|
3182
|
-
// mount. In the future we will also use this to keep track of all the
|
|
3183
|
-
// currently mounted <Link> instances, e.g. so we can re-prefetch them after
|
|
3184
|
-
// a revalidation or refresh.
|
|
3185
|
-
const observeLinkVisibilityOnMount = _react.default.useCallback((element)=>{
|
|
3186
|
-
if (router !== null) {
|
|
3187
|
-
linkInstanceRef.current = (0, _links.mountLinkInstance)(element, formattedHref, router, fetchStrategy, prefetchEnabled, setOptimisticLinkStatus, ownerStack);
|
|
3188
|
-
}
|
|
3189
|
-
return ()=>{
|
|
3190
|
-
if (linkInstanceRef.current) {
|
|
3191
|
-
(0, _links.unmountLinkForCurrentNavigation)(linkInstanceRef.current);
|
|
3192
|
-
linkInstanceRef.current = null;
|
|
3193
|
-
}
|
|
3194
|
-
(0, _links.unmountPrefetchableInstance)(element);
|
|
3195
|
-
};
|
|
3196
|
-
}, [
|
|
3197
|
-
prefetchEnabled,
|
|
3198
|
-
formattedHref,
|
|
3199
|
-
router,
|
|
3200
|
-
fetchStrategy,
|
|
3201
|
-
setOptimisticLinkStatus,
|
|
3202
|
-
ownerStack
|
|
3203
|
-
]);
|
|
3204
|
-
const mergedRef = (0, _usemergedref.useMergedRef)(observeLinkVisibilityOnMount, childRef);
|
|
3205
|
-
const childProps = {
|
|
3206
|
-
ref: mergedRef,
|
|
3207
|
-
onClick (e) {
|
|
3208
|
-
if (false) {}
|
|
3209
|
-
if (!legacyBehavior && typeof onClick === 'function') {
|
|
3210
|
-
onClick(e);
|
|
3211
|
-
}
|
|
3212
|
-
if (legacyBehavior && child.props && typeof child.props.onClick === 'function') {
|
|
3213
|
-
child.props.onClick(e);
|
|
3214
|
-
}
|
|
3215
|
-
if (!router) {
|
|
3216
|
-
return;
|
|
3217
|
-
}
|
|
3218
|
-
if (e.defaultPrevented) {
|
|
3219
|
-
return;
|
|
3220
|
-
}
|
|
3221
|
-
linkClicked(e, formattedHref, linkInstanceRef, replace, scroll, onNavigate, transitionTypes, prefetchIntent);
|
|
3222
|
-
},
|
|
3223
|
-
onMouseEnter (e) {
|
|
3224
|
-
if (!legacyBehavior && typeof onMouseEnterProp === 'function') {
|
|
3225
|
-
onMouseEnterProp(e);
|
|
3226
|
-
}
|
|
3227
|
-
if (legacyBehavior && child.props && typeof child.props.onMouseEnter === 'function') {
|
|
3228
|
-
child.props.onMouseEnter(e);
|
|
3229
|
-
}
|
|
3230
|
-
if (!router) {
|
|
3231
|
-
return;
|
|
3232
|
-
}
|
|
3233
|
-
if (!prefetchEnabled || "production" === 'development') {
|
|
3234
|
-
return;
|
|
3235
|
-
}
|
|
3236
|
-
const upgradeToDynamicPrefetch = unstable_dynamicOnHover === true;
|
|
3237
|
-
(0, _links.onNavigationIntent)(e.currentTarget, upgradeToDynamicPrefetch);
|
|
3238
|
-
},
|
|
3239
|
-
onTouchStart: false ? 0 : function onTouchStart(e) {
|
|
3240
|
-
if (!legacyBehavior && typeof onTouchStartProp === 'function') {
|
|
3241
|
-
onTouchStartProp(e);
|
|
3242
|
-
}
|
|
3243
|
-
if (legacyBehavior && child.props && typeof child.props.onTouchStart === 'function') {
|
|
3244
|
-
child.props.onTouchStart(e);
|
|
3245
|
-
}
|
|
3246
|
-
if (!router) {
|
|
3247
|
-
return;
|
|
3248
|
-
}
|
|
3249
|
-
if (!prefetchEnabled) {
|
|
3250
|
-
return;
|
|
3251
|
-
}
|
|
3252
|
-
const upgradeToDynamicPrefetch = unstable_dynamicOnHover === true;
|
|
3253
|
-
(0, _links.onNavigationIntent)(e.currentTarget, upgradeToDynamicPrefetch);
|
|
3254
|
-
}
|
|
3255
|
-
};
|
|
3256
|
-
// If the url is absolute, we can bypass the logic to prepend the basePath.
|
|
3257
|
-
if ((0, _utils.isAbsoluteUrl)(formattedHref)) {
|
|
3258
|
-
childProps.href = formattedHref;
|
|
3259
|
-
} else if (!legacyBehavior || passHref || child.type === 'a' && !('href' in child.props)) {
|
|
3260
|
-
childProps.href = (0, _addbasepath.addBasePath)(formattedHref);
|
|
3261
|
-
}
|
|
3262
|
-
let link;
|
|
3263
|
-
if (legacyBehavior) {
|
|
3264
|
-
if (false) {}
|
|
3265
|
-
link = /*#__PURE__*/ _react.default.cloneElement(child, childProps);
|
|
3266
|
-
} else {
|
|
3267
|
-
link = /*#__PURE__*/ (0, _jsxruntime.jsx)("a", {
|
|
3268
|
-
...restProps,
|
|
3269
|
-
...childProps,
|
|
3270
|
-
children: children
|
|
3271
|
-
});
|
|
3272
|
-
}
|
|
3273
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsx)(LinkStatusContext.Provider, {
|
|
3274
|
-
value: linkStatus,
|
|
3275
|
-
children: link
|
|
3276
|
-
});
|
|
3277
|
-
}
|
|
3278
|
-
const LinkStatusContext = /*#__PURE__*/ (0, _react.createContext)(_links.IDLE_LINK_STATUS);
|
|
3279
|
-
const useLinkStatus = ()=>{
|
|
3280
|
-
return (0, _react.useContext)(LinkStatusContext);
|
|
3281
|
-
};
|
|
3282
|
-
function getFetchStrategyFromPrefetchIntent(prefetchIntent) {
|
|
3283
|
-
if (false) {} else {
|
|
3284
|
-
return prefetchIntent === 'auto' ? _types.FetchStrategy.PPR : _types.FetchStrategy.Full;
|
|
3285
|
-
}
|
|
3286
|
-
}
|
|
3287
|
-
if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
|
|
3288
|
-
Object.defineProperty(exports.default, '__esModule', {
|
|
3289
|
-
value: true
|
|
3290
|
-
});
|
|
3291
|
-
Object.assign(exports.default, exports);
|
|
3292
|
-
module.exports = exports.default;
|
|
3293
|
-
} //# sourceMappingURL=link.js.map
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
/***/ }),
|
|
3297
|
-
|
|
3298
|
-
/***/ 529294:
|
|
3299
|
-
/***/ ((module) => {
|
|
3300
|
-
|
|
3301
|
-
"use strict";
|
|
3302
|
-
module.exports = require("next/dist/server/app-render/work-async-storage.external.js");
|
|
3303
|
-
|
|
3304
|
-
/***/ }),
|
|
3305
|
-
|
|
3306
|
-
/***/ 553507:
|
|
3307
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
3308
|
-
|
|
3309
|
-
"use strict";
|
|
3310
|
-
__webpack_require__.r(__webpack_exports__);
|
|
3311
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3312
|
-
/* harmony export */ __next_app__: () => (/* binding */ __next_app__),
|
|
3313
|
-
/* harmony export */ handler: () => (/* binding */ handler),
|
|
3314
|
-
/* harmony export */ routeModule: () => (/* binding */ routeModule)
|
|
3315
|
-
/* harmony export */ });
|
|
3316
|
-
/* harmony import */ var next_dist_server_app_render_module_loading_instrument_module_getter__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(121635);
|
|
3317
|
-
/* harmony import */ var next_dist_build_templates_app_page_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(986315);
|
|
3318
|
-
/* harmony import */ var next_dist_server_app_render_interop_default__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(301020);
|
|
3319
|
-
/* harmony import */ var next_dist_server_app_render_entry_base__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(961287);
|
|
3320
|
-
/* harmony import */ var next_dist_server_app_render_entry_base__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_app_render_entry_base__WEBPACK_IMPORTED_MODULE_3__);
|
|
3321
|
-
/* harmony reexport (unknown) */ var __WEBPACK_REEXPORT_OBJECT__ = {};
|
|
3322
|
-
/* harmony reexport (unknown) */ for(const __WEBPACK_IMPORT_KEY__ in next_dist_server_app_render_entry_base__WEBPACK_IMPORTED_MODULE_3__) if(["default","__next_app__","routeModule","handler"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = () => next_dist_server_app_render_entry_base__WEBPACK_IMPORTED_MODULE_3__[__WEBPACK_IMPORT_KEY__]
|
|
3323
|
-
/* harmony reexport (unknown) */ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
|
|
3324
|
-
|
|
3325
|
-
const module0 = (0,next_dist_server_app_render_module_loading_instrument_module_getter__WEBPACK_IMPORTED_MODULE_0__/* .instrumentModuleGetter */ .p)(() => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 732056)));
|
|
3326
|
-
const module1 = (0,next_dist_server_app_render_module_loading_instrument_module_getter__WEBPACK_IMPORTED_MODULE_0__/* .instrumentModuleGetter */ .p)(() => Promise.resolve(/* import() eager */).then(__webpack_require__.t.bind(__webpack_require__, 895547, 23)));
|
|
3327
|
-
const module2 = (0,next_dist_server_app_render_module_loading_instrument_module_getter__WEBPACK_IMPORTED_MODULE_0__/* .instrumentModuleGetter */ .p)(() => Promise.resolve(/* import() eager */).then(__webpack_require__.t.bind(__webpack_require__, 355091, 23)));
|
|
3328
|
-
const module3 = (0,next_dist_server_app_render_module_loading_instrument_module_getter__WEBPACK_IMPORTED_MODULE_0__/* .instrumentModuleGetter */ .p)(() => Promise.resolve(/* import() eager */).then(__webpack_require__.t.bind(__webpack_require__, 145270, 23)));
|
|
3329
|
-
const module4 = (0,next_dist_server_app_render_module_loading_instrument_module_getter__WEBPACK_IMPORTED_MODULE_0__/* .instrumentModuleGetter */ .p)(() => Promise.resolve(/* import() eager */).then(__webpack_require__.t.bind(__webpack_require__, 628193, 23)));
|
|
3330
|
-
const page5 = (0,next_dist_server_app_render_module_loading_instrument_module_getter__WEBPACK_IMPORTED_MODULE_0__/* .instrumentModuleGetter */ .p)(() => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 499647)));
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
|
-
const tree = {
|
|
3334
|
-
children: [
|
|
3335
|
-
'',
|
|
3336
|
-
{
|
|
3337
|
-
children: ['__PAGE__', {}, {
|
|
3338
|
-
page: [page5, "/home/runner/work/jarela/jarela/app/page.tsx"],
|
|
3339
|
-
metadata: {
|
|
3340
|
-
icon: [(async (props) => (await (0,next_dist_server_app_render_module_loading_instrument_module_getter__WEBPACK_IMPORTED_MODULE_0__/* .instrumentModuleGetter */ .p)(() => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 586364)))()).default(props))],
|
|
3341
|
-
apple: [],
|
|
3342
|
-
openGraph: [],
|
|
3343
|
-
twitter: [],
|
|
3344
|
-
manifest: "/manifest.webmanifest"
|
|
3345
|
-
}
|
|
3346
|
-
}]
|
|
3347
|
-
},
|
|
3348
|
-
{
|
|
3349
|
-
'layout': [module0, "/home/runner/work/jarela/jarela/app/layout.tsx"],
|
|
3350
|
-
'global-error': [module1, "next/dist/client/components/builtin/global-error.js"],
|
|
3351
|
-
'not-found': [module2, "next/dist/client/components/builtin/not-found.js"],
|
|
3352
|
-
'forbidden': [module3, "next/dist/client/components/builtin/forbidden.js"],
|
|
3353
|
-
'unauthorized': [module4, "next/dist/client/components/builtin/unauthorized.js"],
|
|
3354
|
-
metadata: {
|
|
3355
|
-
icon: [(async (props) => (await (0,next_dist_server_app_render_module_loading_instrument_module_getter__WEBPACK_IMPORTED_MODULE_0__/* .instrumentModuleGetter */ .p)(() => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 586364)))()).default(props))],
|
|
3356
|
-
apple: [],
|
|
3357
|
-
openGraph: [],
|
|
3358
|
-
twitter: [],
|
|
3359
|
-
manifest: "/manifest.webmanifest"
|
|
3360
|
-
}
|
|
3361
|
-
},
|
|
3362
|
-
[]
|
|
3363
|
-
]
|
|
3364
|
-
}.children;
|
|
3365
|
-
const __next_app_require__ = __webpack_require__
|
|
3366
|
-
const __next_app_load_chunk__ = () => Promise.resolve()
|
|
3367
|
-
const entrypoint = (0,next_dist_build_templates_app_page_runtime__WEBPACK_IMPORTED_MODULE_1__/* .createAppPageEntrypoint */ .H)({
|
|
3368
|
-
tree,
|
|
3369
|
-
page: "/page",
|
|
3370
|
-
pathname: "/",
|
|
3371
|
-
require: __next_app_require__,
|
|
3372
|
-
loadChunk: __next_app_load_chunk__,
|
|
3373
|
-
interopDefault: next_dist_server_app_render_interop_default__WEBPACK_IMPORTED_MODULE_2__/* .interopDefault */ .T
|
|
3374
|
-
});
|
|
3375
|
-
const __next_app__ = entrypoint.__next_app__;
|
|
3376
|
-
const routeModule = entrypoint.routeModule;
|
|
3377
|
-
const handler = entrypoint.handler;
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
//# sourceMappingURL=app-page.js.map
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
/***/ }),
|
|
3384
|
-
|
|
3385
|
-
/***/ 582002:
|
|
2813
|
+
/***/ 199910:
|
|
3386
2814
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
3387
2815
|
|
|
3388
2816
|
"use strict";
|
|
@@ -6348,7 +5776,7 @@ function InputBar({ attachments, onAttachmentsChange, onSubmit, onQueue, onStop,
|
|
|
6348
5776
|
onAttachmentsChange(attachments.filter((_, i)=>i !== idx));
|
|
6349
5777
|
}
|
|
6350
5778
|
return /*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
6351
|
-
className: "chat-composer shrink-0 border-t border-border/30 bg-surface/60 backdrop-blur-md
|
|
5779
|
+
className: "workspace-gutter chat-composer shrink-0 border-t border-border/30 bg-surface/60 backdrop-blur-md pt-2",
|
|
6352
5780
|
children: [
|
|
6353
5781
|
attachments.length > 0 && /*#__PURE__*/ (0,react_jsx_runtime.jsx)("div", {
|
|
6354
5782
|
className: "flex flex-wrap gap-2 mb-2",
|
|
@@ -52275,7 +51703,7 @@ function MessageList({ bottomOverlayHeight = 0, threadId, messages, steeredSegme
|
|
|
52275
51703
|
onClick: ()=>setTopControlsOpen((v)=>!v),
|
|
52276
51704
|
"aria-expanded": topControlsOpen,
|
|
52277
51705
|
"aria-controls": topControlsOpen ? topControlsId : undefined,
|
|
52278
|
-
className: "min-h-11 sm:min-h-8 w-full flex flex-wrap items-center gap-x-2 gap-y-1
|
|
51706
|
+
className: "workspace-gutter min-h-11 sm:min-h-8 w-full flex flex-wrap items-center gap-x-2 gap-y-1 py-1.5 text-left text-xs text-fg-subtle hover:text-fg transition-colors",
|
|
52279
51707
|
children: [
|
|
52280
51708
|
/*#__PURE__*/ (0,react_jsx_runtime.jsx)(CollapseChevron, {
|
|
52281
51709
|
open: topControlsOpen,
|
|
@@ -52303,7 +51731,7 @@ function MessageList({ bottomOverlayHeight = 0, threadId, messages, steeredSegme
|
|
|
52303
51731
|
id: topControlsId,
|
|
52304
51732
|
role: "region",
|
|
52305
51733
|
"aria-label": "Message filters and focus",
|
|
52306
|
-
className: "grid grid-cols-2 sm:flex sm:flex-wrap items-center gap-2 max-h-[35dvh] overflow-y-auto overscroll-contain
|
|
51734
|
+
className: "workspace-gutter grid grid-cols-2 sm:flex sm:flex-wrap items-center gap-2 max-h-[35dvh] overflow-y-auto overscroll-contain pt-1 pb-2",
|
|
52307
51735
|
children: [
|
|
52308
51736
|
compactChat && /*#__PURE__*/ (0,react_jsx_runtime.jsxs)("button", {
|
|
52309
51737
|
type: "button",
|
|
@@ -52367,7 +51795,7 @@ function MessageList({ bottomOverlayHeight = 0, threadId, messages, steeredSegme
|
|
|
52367
51795
|
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
52368
51796
|
ref: scrollRef,
|
|
52369
51797
|
onScroll: handleScroll,
|
|
52370
|
-
className: "chat-message-scroll flex-1 h-full overflow-y-auto overflow-x-hidden
|
|
51798
|
+
className: "workspace-gutter chat-message-scroll flex-1 h-full overflow-y-auto overflow-x-hidden panel-scrollbar",
|
|
52371
51799
|
style: {
|
|
52372
51800
|
// Edge padding travels with the turns; the viewport itself extends
|
|
52373
51801
|
// behind both overlays so history remains visible through the frost.
|
|
@@ -53707,20 +53135,29 @@ function useUserProfileAndAgent(agentId) {
|
|
|
53707
53135
|
setAgentConfigLoading(false);
|
|
53708
53136
|
return;
|
|
53709
53137
|
}
|
|
53138
|
+
const id = agentId;
|
|
53710
53139
|
let cancelled = false;
|
|
53140
|
+
let requestSeq = 0;
|
|
53711
53141
|
setAgentConfig(null);
|
|
53712
53142
|
setAgentConfigLoading(true);
|
|
53713
|
-
|
|
53714
|
-
|
|
53715
|
-
|
|
53716
|
-
|
|
53717
|
-
|
|
53718
|
-
|
|
53719
|
-
|
|
53720
|
-
|
|
53721
|
-
|
|
53143
|
+
function refresh(startup = false) {
|
|
53144
|
+
const seq = ++requestSeq;
|
|
53145
|
+
client/* api */.FH.agents.get(id, startup ? {
|
|
53146
|
+
startup: true
|
|
53147
|
+
} : undefined).then((config)=>{
|
|
53148
|
+
if (!cancelled && seq === requestSeq) setAgentConfig(config);
|
|
53149
|
+
}).catch((error)=>{
|
|
53150
|
+
if (!cancelled && seq === requestSeq) console.error(error);
|
|
53151
|
+
}).finally(()=>{
|
|
53152
|
+
if (!cancelled && seq === requestSeq) setAgentConfigLoading(false);
|
|
53153
|
+
});
|
|
53154
|
+
}
|
|
53155
|
+
const onChanged = ()=>refresh();
|
|
53156
|
+
refresh(true);
|
|
53157
|
+
window.addEventListener("jarela:agents-changed", onChanged);
|
|
53722
53158
|
return ()=>{
|
|
53723
53159
|
cancelled = true;
|
|
53160
|
+
window.removeEventListener("jarela:agents-changed", onChanged);
|
|
53724
53161
|
};
|
|
53725
53162
|
}, [
|
|
53726
53163
|
agentId
|
|
@@ -54472,7 +53909,7 @@ var trash = __webpack_require__(239041);
|
|
|
54472
53909
|
// right-aligned actions.
|
|
54473
53910
|
function PanelHeader({ icon, title, children }) {
|
|
54474
53911
|
return /*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
54475
|
-
className: "border-b border-border
|
|
53912
|
+
className: "workspace-gutter border-b border-border py-3 flex flex-wrap items-center gap-x-2 gap-y-1",
|
|
54476
53913
|
children: [
|
|
54477
53914
|
/*#__PURE__*/ (0,react_jsx_runtime.jsx)("span", {
|
|
54478
53915
|
className: "text-fg-subtle flex items-center shrink-0",
|
|
@@ -54932,6 +54369,8 @@ function SettingsCard({ title, icon, description, actions, children, id }) {
|
|
|
54932
54369
|
|
|
54933
54370
|
// EXTERNAL MODULE: ./components/ui/Notice.tsx
|
|
54934
54371
|
var Notice = __webpack_require__(493460);
|
|
54372
|
+
// EXTERNAL MODULE: ./lib/ui/confirm.ts
|
|
54373
|
+
var ui_confirm = __webpack_require__(667033);
|
|
54935
54374
|
;// ./components/models/EmbeddingModelSection.tsx
|
|
54936
54375
|
/* __next_internal_client_entry_do_not_use__ EmbeddingModelSection auto */
|
|
54937
54376
|
|
|
@@ -54942,6 +54381,7 @@ var Notice = __webpack_require__(493460);
|
|
|
54942
54381
|
|
|
54943
54382
|
|
|
54944
54383
|
|
|
54384
|
+
|
|
54945
54385
|
// One embedding model serves documents, memory, and chat-history recall.
|
|
54946
54386
|
function EmbeddingModelSection({ models }) {
|
|
54947
54387
|
const [embeddingModel, setEmbeddingModel] = (0,react.useState)("__auto__");
|
|
@@ -54987,6 +54427,10 @@ function EmbeddingModelSection({ models }) {
|
|
|
54987
54427
|
probe?.downloading
|
|
54988
54428
|
]);
|
|
54989
54429
|
async function save(value) {
|
|
54430
|
+
if (value !== LOCAL_EMBEDDING_CONFIG_NAME && !await (0,ui_confirm/* confirmAction */.fN)({
|
|
54431
|
+
message: "This selection is not Jarela Local. Document, memory, and chat-history text may be sent to an external embedding provider. Recall exclusions do not prevent this processing. Continue?",
|
|
54432
|
+
confirmLabel: "Use provider embeddings"
|
|
54433
|
+
})) return;
|
|
54990
54434
|
setEmbeddingModel(value);
|
|
54991
54435
|
setSaving(true);
|
|
54992
54436
|
setProbe(null);
|
|
@@ -55101,8 +54545,6 @@ function PanelMessage({ children }) {
|
|
|
55101
54545
|
});
|
|
55102
54546
|
}
|
|
55103
54547
|
|
|
55104
|
-
// EXTERNAL MODULE: ./lib/ui/confirm.ts
|
|
55105
|
-
var ui_confirm = __webpack_require__(667033);
|
|
55106
54548
|
;// ./components/models/ModelsPanel.tsx
|
|
55107
54549
|
/* __next_internal_client_entry_do_not_use__ ModelsPanel auto */
|
|
55108
54550
|
|
|
@@ -55305,7 +54747,7 @@ function ModelsPanel() {
|
|
|
55305
54747
|
className: "flex-1 overflow-y-auto no-scrollbar",
|
|
55306
54748
|
children: [
|
|
55307
54749
|
/*#__PURE__*/ (0,react_jsx_runtime.jsx)("div", {
|
|
55308
|
-
className: "
|
|
54750
|
+
className: "workspace-gutter pt-3",
|
|
55309
54751
|
children: /*#__PURE__*/ (0,react_jsx_runtime.jsxs)(SettingsGroup, {
|
|
55310
54752
|
children: [
|
|
55311
54753
|
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)(SettingsCard, {
|
|
@@ -55449,7 +54891,7 @@ function ModelsPanel() {
|
|
|
55449
54891
|
})
|
|
55450
54892
|
}),
|
|
55451
54893
|
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
55452
|
-
className: "
|
|
54894
|
+
className: "workspace-gutter py-2",
|
|
55453
54895
|
children: [
|
|
55454
54896
|
loading && models.length === 0 && /*#__PURE__*/ (0,react_jsx_runtime.jsx)(PanelMessage, {
|
|
55455
54897
|
children: "Loading…"
|
|
@@ -55503,12 +54945,23 @@ function ModelsPanel() {
|
|
|
55503
54945
|
className: "text-xs text-fg-subtle truncate",
|
|
55504
54946
|
children: m.model_id
|
|
55505
54947
|
}),
|
|
55506
|
-
/*#__PURE__*/ (0,react_jsx_runtime.
|
|
54948
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
55507
54949
|
className: "mt-1",
|
|
55508
|
-
children:
|
|
55509
|
-
|
|
55510
|
-
|
|
55511
|
-
|
|
54950
|
+
children: [
|
|
54951
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsx)(CapBadges/* CapBadges */.b, {
|
|
54952
|
+
caps: m.capabilities,
|
|
54953
|
+
provider: m.provider,
|
|
54954
|
+
modelId: m.model_id
|
|
54955
|
+
}),
|
|
54956
|
+
m.model_metadata?.version && /*#__PURE__*/ (0,react_jsx_runtime.jsxs)("p", {
|
|
54957
|
+
className: "mt-1 text-[10px] text-fg-faint",
|
|
54958
|
+
title: `Source: ${m.model_metadata.version.source_url}`,
|
|
54959
|
+
children: [
|
|
54960
|
+
"Current release: ",
|
|
54961
|
+
m.model_metadata.version.value
|
|
54962
|
+
]
|
|
54963
|
+
})
|
|
54964
|
+
]
|
|
55512
54965
|
})
|
|
55513
54966
|
]
|
|
55514
54967
|
}),
|
|
@@ -57423,7 +56876,7 @@ function NetworkPanel() {
|
|
|
57423
56876
|
}),
|
|
57424
56877
|
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
57425
56878
|
ref: containerRef,
|
|
57426
|
-
className: "flex-1 overflow-y-auto no-scrollbar
|
|
56879
|
+
className: "workspace-gutter flex-1 overflow-y-auto no-scrollbar py-3 space-y-3",
|
|
57427
56880
|
children: [
|
|
57428
56881
|
/*#__PURE__*/ (0,react_jsx_runtime.jsx)(EnvSyncNotice, {
|
|
57429
56882
|
env: envSync
|
|
@@ -57538,7 +56991,7 @@ function SubTabBar({ tabs, active, onChange, ariaLabel }) {
|
|
|
57538
56991
|
role: "tablist",
|
|
57539
56992
|
"aria-label": ariaLabel,
|
|
57540
56993
|
onKeyDown: onKeyDown,
|
|
57541
|
-
className: "flex items-stretch gap-4
|
|
56994
|
+
className: "workspace-gutter flex items-stretch gap-4 border-b border-[var(--border)] overflow-x-auto overscroll-x-contain no-scrollbar select-none touch-pan-x",
|
|
57542
56995
|
children: tabs.map((t, i)=>{
|
|
57543
56996
|
const selected = t.id === active;
|
|
57544
56997
|
// Keep the strip reachable by keyboard even if `active` isn't listed.
|
|
@@ -57878,7 +57331,7 @@ function CredentialsListPanel() {
|
|
|
57878
57331
|
ref: containerRef,
|
|
57879
57332
|
className: "flex-1 overflow-y-auto no-scrollbar",
|
|
57880
57333
|
children: /*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
57881
|
-
className: "
|
|
57334
|
+
className: "workspace-gutter py-2 space-y-4",
|
|
57882
57335
|
children: [
|
|
57883
57336
|
/*#__PURE__*/ (0,react_jsx_runtime.jsx)(EnvSyncNotice, {
|
|
57884
57337
|
env: envSync
|
|
@@ -58274,7 +57727,7 @@ function AgentsPanel() {
|
|
|
58274
57727
|
}),
|
|
58275
57728
|
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
58276
57729
|
ref: containerRef,
|
|
58277
|
-
className: "flex-1 overflow-y-auto px-2 pb-2",
|
|
57730
|
+
className: "flex-1 overflow-y-auto px-[calc(var(--workspace-gutter)/2)] pb-2",
|
|
58278
57731
|
children: [
|
|
58279
57732
|
loading && /*#__PURE__*/ (0,react_jsx_runtime.jsx)("p", {
|
|
58280
57733
|
className: "text-fg-faint text-xs text-center py-4",
|
|
@@ -58287,7 +57740,7 @@ function AgentsPanel() {
|
|
|
58287
57740
|
agents.map((a)=>/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
58288
57741
|
"data-deep-link-id": a.id,
|
|
58289
57742
|
onClick: ()=>setEditing(a),
|
|
58290
|
-
className: "group flex items-center gap-2.5 px-2 py-2 rounded-lg hover:bg-surface-3 transition-colors cursor-pointer",
|
|
57743
|
+
className: "group flex items-center gap-2.5 px-[calc(var(--workspace-gutter)/2)] py-2 rounded-lg hover:bg-surface-3 transition-colors cursor-pointer",
|
|
58291
57744
|
children: [
|
|
58292
57745
|
/*#__PURE__*/ (0,react_jsx_runtime.jsx)(AgentsPanel_AgentAvatar, {
|
|
58293
57746
|
icon: a.icon,
|
|
@@ -58531,6 +57984,8 @@ function useLocationSharing(consent, opts) {
|
|
|
58531
57984
|
var MarkdownTextarea = __webpack_require__(962769);
|
|
58532
57985
|
// EXTERNAL MODULE: ./components/ui/TextField.tsx
|
|
58533
57986
|
var TextField = __webpack_require__(217501);
|
|
57987
|
+
// EXTERNAL MODULE: ./components/ui/DialogFooter.tsx
|
|
57988
|
+
var DialogFooter = __webpack_require__(776153);
|
|
58534
57989
|
;// ./components/profile/ProfileEditor.tsx
|
|
58535
57990
|
/* __next_internal_client_entry_do_not_use__ ProfileEditor auto */
|
|
58536
57991
|
|
|
@@ -58544,6 +57999,7 @@ var TextField = __webpack_require__(217501);
|
|
|
58544
57999
|
|
|
58545
58000
|
|
|
58546
58001
|
|
|
58002
|
+
|
|
58547
58003
|
function ProfileEditor() {
|
|
58548
58004
|
const { state, dispatch } = (0,AppContext/* useAppContext */.Us)();
|
|
58549
58005
|
const mode = state.experienceMode;
|
|
@@ -58554,6 +58010,7 @@ function ProfileEditor() {
|
|
|
58554
58010
|
const [about, setAbout] = (0,react.useState)("");
|
|
58555
58011
|
const [saving, setSaving] = (0,react.useState)(false);
|
|
58556
58012
|
const [saved, setSaved] = (0,react.useState)(false);
|
|
58013
|
+
const [saveError, setSaveError] = (0,react.useState)(null);
|
|
58557
58014
|
process.env.__NEXT_PRIVATE_MINIMIZE_MACRO_FALSE && (0,react.useEffect)(()=>{
|
|
58558
58015
|
client/* api */.FH.profile.get().then((p)=>{
|
|
58559
58016
|
setProfile(p);
|
|
@@ -58572,6 +58029,7 @@ function ProfileEditor() {
|
|
|
58572
58029
|
async function handleSave() {
|
|
58573
58030
|
setSaving(true);
|
|
58574
58031
|
setSaved(false);
|
|
58032
|
+
setSaveError(null);
|
|
58575
58033
|
try {
|
|
58576
58034
|
const updated = await client/* api */.FH.profile.update({
|
|
58577
58035
|
name,
|
|
@@ -58582,7 +58040,7 @@ function ProfileEditor() {
|
|
|
58582
58040
|
setSaved(true);
|
|
58583
58041
|
setTimeout(()=>setSaved(false), 2000);
|
|
58584
58042
|
} catch (err) {
|
|
58585
|
-
|
|
58043
|
+
setSaveError((0,utils_error/* errorMessage */.g)(err));
|
|
58586
58044
|
} finally{
|
|
58587
58045
|
setSaving(false);
|
|
58588
58046
|
}
|
|
@@ -58595,7 +58053,7 @@ function ProfileEditor() {
|
|
|
58595
58053
|
setAbout(profile.about);
|
|
58596
58054
|
}
|
|
58597
58055
|
return /*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
58598
|
-
className: "
|
|
58056
|
+
className: "workspace-gutter py-4 space-y-4",
|
|
58599
58057
|
children: [
|
|
58600
58058
|
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
58601
58059
|
className: "flex items-end gap-3",
|
|
@@ -58743,6 +58201,9 @@ function ProfileEditor() {
|
|
|
58743
58201
|
]
|
|
58744
58202
|
})
|
|
58745
58203
|
}),
|
|
58204
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsx)(DialogFooter/* DialogError */.J, {
|
|
58205
|
+
message: saveError
|
|
58206
|
+
}),
|
|
58746
58207
|
/*#__PURE__*/ (0,react_jsx_runtime.jsx)(StickyActionBar, {
|
|
58747
58208
|
dirty: isDirty,
|
|
58748
58209
|
saving: saving,
|
|
@@ -59248,7 +58709,7 @@ function ProfilePanel() {
|
|
|
59248
58709
|
});
|
|
59249
58710
|
}
|
|
59250
58711
|
return /*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
59251
|
-
className: "
|
|
58712
|
+
className: "workspace-panel flex h-full flex-col",
|
|
59252
58713
|
children: [
|
|
59253
58714
|
/*#__PURE__*/ (0,react_jsx_runtime.jsx)(PanelHeader, {
|
|
59254
58715
|
icon: /*#__PURE__*/ (0,react_jsx_runtime.jsx)(user/* default */.A, {
|
|
@@ -59273,8 +58734,6 @@ function ProfilePanel() {
|
|
|
59273
58734
|
});
|
|
59274
58735
|
}
|
|
59275
58736
|
|
|
59276
|
-
// EXTERNAL MODULE: ./components/ui/DialogFooter.tsx
|
|
59277
|
-
var DialogFooter = __webpack_require__(776153);
|
|
59278
58737
|
;// ./lib/mcp/environment.ts
|
|
59279
58738
|
function validateMcpEnvironment(entries) {
|
|
59280
58739
|
const seen = new Set();
|
|
@@ -59429,7 +58888,7 @@ function MCPPanel() {
|
|
|
59429
58888
|
ref: containerRef,
|
|
59430
58889
|
className: "flex-1 overflow-y-auto no-scrollbar",
|
|
59431
58890
|
children: /*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
59432
|
-
className: "
|
|
58891
|
+
className: "workspace-gutter py-2",
|
|
59433
58892
|
children: [
|
|
59434
58893
|
loading && servers.length === 0 && /*#__PURE__*/ (0,react_jsx_runtime.jsx)(PanelMessage, {
|
|
59435
58894
|
children: "Loading…"
|
|
@@ -61206,7 +60665,7 @@ function SkillsPanel() {
|
|
|
61206
60665
|
})
|
|
61207
60666
|
}),
|
|
61208
60667
|
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
61209
|
-
className: "flex-1 overflow-y-auto no-scrollbar
|
|
60668
|
+
className: "workspace-gutter flex-1 overflow-y-auto no-scrollbar py-3 space-y-5",
|
|
61210
60669
|
children: [
|
|
61211
60670
|
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("p", {
|
|
61212
60671
|
className: "text-xs text-fg-faint leading-relaxed",
|
|
@@ -62031,7 +61490,7 @@ function RouteTable({ bridge_id, module }) {
|
|
|
62031
61490
|
modelLabel: null
|
|
62032
61491
|
};
|
|
62033
61492
|
return {
|
|
62034
|
-
supported: (0,capabilities/* modelSupportsImages */.Q5)(cfg.provider, cfg.model_id),
|
|
61493
|
+
supported: cfg.capabilities?.vision ?? (0,capabilities/* modelSupportsImages */.Q5)(cfg.provider, cfg.model_id),
|
|
62035
61494
|
classified: (0,capabilities/* isProviderClassified */.tN)(cfg.provider),
|
|
62036
61495
|
modelLabel: `${cfg.provider} / ${cfg.model_id}`
|
|
62037
61496
|
};
|
|
@@ -63156,7 +62615,7 @@ function BridgeEditor_formatRelative(ms) {
|
|
|
63156
62615
|
}),
|
|
63157
62616
|
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
63158
62617
|
ref: containerRef,
|
|
63159
|
-
className: "flex-1 overflow-y-auto no-scrollbar
|
|
62618
|
+
className: "workspace-gutter flex-1 overflow-y-auto no-scrollbar py-3",
|
|
63160
62619
|
children: [
|
|
63161
62620
|
creating && /*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
63162
62621
|
className: "mb-3 rounded-lg border border-accent/30 bg-surface-2 p-3 space-y-2",
|
|
@@ -63602,7 +63061,7 @@ function BrowserPanel() {
|
|
|
63602
63061
|
]
|
|
63603
63062
|
}),
|
|
63604
63063
|
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
63605
|
-
className: "flex-1 overflow-y-auto no-scrollbar
|
|
63064
|
+
className: "workspace-gutter flex-1 overflow-y-auto no-scrollbar py-3 space-y-3",
|
|
63606
63065
|
children: [
|
|
63607
63066
|
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
63608
63067
|
className: "rounded-lg border border-border bg-surface-2 p-3",
|
|
@@ -65248,7 +64707,7 @@ const CATEGORY_BLURB = {
|
|
|
65248
64707
|
Atlassian: "Jira and Confluence read/write.",
|
|
65249
64708
|
JiraAlign: "Jira Align portfolio-level read/write.",
|
|
65250
64709
|
GitHub: "Issues, pull requests, code search via the GitHub API.",
|
|
65251
|
-
Mail: "Read and send
|
|
64710
|
+
Mail: "Read, manage, and send mail via Gmail / Outlook / iCloud.",
|
|
65252
64711
|
Calendar: "Read and write calendar events on Google / Outlook / iCloud.",
|
|
65253
64712
|
Tasks: "Manage tasks and reminders on Microsoft To Do / iCloud Reminders.",
|
|
65254
64713
|
Microsoft: "Microsoft Graph escape hatch + unified search + People resolver.",
|
|
@@ -66699,7 +66158,7 @@ function PackagesPanel() {
|
|
|
66699
66158
|
title: "Packages"
|
|
66700
66159
|
}),
|
|
66701
66160
|
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
66702
|
-
className: "
|
|
66161
|
+
className: "workspace-gutter py-4 space-y-4",
|
|
66703
66162
|
children: [
|
|
66704
66163
|
/*#__PURE__*/ (0,react_jsx_runtime.jsx)("p", {
|
|
66705
66164
|
className: "text-xs text-fg-faint",
|
|
@@ -68103,7 +67562,7 @@ function ScheduledTasksPanel() {
|
|
|
68103
67562
|
}),
|
|
68104
67563
|
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
68105
67564
|
ref: containerRef,
|
|
68106
|
-
className: "flex-1 overflow-y-auto no-scrollbar
|
|
67565
|
+
className: "workspace-gutter flex-1 overflow-y-auto no-scrollbar py-3",
|
|
68107
67566
|
children: [
|
|
68108
67567
|
loading && tasks.length === 0 && /*#__PURE__*/ (0,react_jsx_runtime.jsx)(PanelMessage, {
|
|
68109
67568
|
children: "Loading…"
|
|
@@ -68830,7 +68289,7 @@ const DEFAULT_LEVELS = new Set([
|
|
|
68830
68289
|
lastSeqRef.current = 0;
|
|
68831
68290
|
}
|
|
68832
68291
|
return /*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
68833
|
-
className: "flex flex-col h-full min-h-0
|
|
68292
|
+
className: "workspace-gutter flex flex-col h-full min-h-0 py-4",
|
|
68834
68293
|
children: [
|
|
68835
68294
|
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
68836
68295
|
className: "mb-2 flex items-center gap-2 flex-wrap",
|
|
@@ -69957,7 +69416,7 @@ const CATEGORY_LABEL = new Map(ENV_CATEGORIES.map(({ id, label })=>[
|
|
|
69957
69416
|
load
|
|
69958
69417
|
]);
|
|
69959
69418
|
return /*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
69960
|
-
className: "flex flex-col h-full min-h-0
|
|
69419
|
+
className: "workspace-gutter flex flex-col h-full min-h-0 py-4 gap-3",
|
|
69961
69420
|
children: [
|
|
69962
69421
|
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
69963
69422
|
className: "flex items-center gap-2 flex-wrap",
|
|
@@ -70671,11 +70130,11 @@ function HarnessPanel() {
|
|
|
70671
70130
|
})
|
|
70672
70131
|
}),
|
|
70673
70132
|
/*#__PURE__*/ (0,react_jsx_runtime.jsx)("div", {
|
|
70674
|
-
className: "
|
|
70133
|
+
className: "workspace-gutter py-2 border-b border-border bg-surface-2/50 text-xs text-fg-muted",
|
|
70675
70134
|
children: "Harnesses control the behavioral scaffolding (formatting rules, anti-fabrication, citation, self-config) wrapped around every agent's system prompt. Built-in presets are read-only — clone one to customize."
|
|
70676
70135
|
}),
|
|
70677
70136
|
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
70678
|
-
className: "flex-1 overflow-y-auto
|
|
70137
|
+
className: "workspace-gutter flex-1 overflow-y-auto py-2",
|
|
70679
70138
|
children: [
|
|
70680
70139
|
loading && harnesses.length === 0 && /*#__PURE__*/ (0,react_jsx_runtime.jsx)(PanelMessage, {
|
|
70681
70140
|
children: "Loading…"
|
|
@@ -71055,7 +70514,7 @@ function AppearancePanel() {
|
|
|
71055
70514
|
title: "Appearance"
|
|
71056
70515
|
}),
|
|
71057
70516
|
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
71058
|
-
className: "flex-1 overflow-y-auto no-scrollbar
|
|
70517
|
+
className: "workspace-gutter flex-1 overflow-y-auto no-scrollbar py-4 space-y-6",
|
|
71059
70518
|
children: [
|
|
71060
70519
|
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("section", {
|
|
71061
70520
|
children: [
|
|
@@ -72201,7 +71660,7 @@ function SettingsPanel() {
|
|
|
72201
71660
|
}) : undefined
|
|
72202
71661
|
}));
|
|
72203
71662
|
return /*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
72204
|
-
className: "
|
|
71663
|
+
className: "workspace-panel flex h-full min-h-0 flex-col",
|
|
72205
71664
|
children: [
|
|
72206
71665
|
/*#__PURE__*/ (0,react_jsx_runtime.jsx)(SubTabBar, {
|
|
72207
71666
|
ariaLabel: "Settings sub-section",
|
|
@@ -72232,7 +71691,7 @@ function SettingsPanel() {
|
|
|
72232
71691
|
// future change to either panel without touching this file.
|
|
72233
71692
|
function PrivacySecurityPanel() {
|
|
72234
71693
|
return /*#__PURE__*/ (0,react_jsx_runtime.jsx)("div", {
|
|
72235
|
-
className: "h-full w-full overflow-y-auto
|
|
71694
|
+
className: "workspace-gutter h-full w-full overflow-y-auto py-3 no-scrollbar",
|
|
72236
71695
|
children: /*#__PURE__*/ (0,react_jsx_runtime.jsxs)(SettingsGroup, {
|
|
72237
71696
|
defaultOpenId: "pin",
|
|
72238
71697
|
children: [
|
|
@@ -72943,13 +72402,23 @@ const KIND_OPTIONS = [
|
|
|
72943
72402
|
{
|
|
72944
72403
|
value: "outlook_mail",
|
|
72945
72404
|
label: "Outlook mail"
|
|
72405
|
+
},
|
|
72406
|
+
{
|
|
72407
|
+
value: "icloud_mail",
|
|
72408
|
+
label: "iCloud mail"
|
|
72946
72409
|
}
|
|
72947
72410
|
];
|
|
72948
72411
|
function isGithubKind(k) {
|
|
72949
72412
|
return k === "github_pulls" || k === "github_repo";
|
|
72950
72413
|
}
|
|
72951
72414
|
function isMailKind(k) {
|
|
72952
|
-
return k === "gmail_mail" || k === "outlook_mail";
|
|
72415
|
+
return k === "gmail_mail" || k === "outlook_mail" || k === "icloud_mail";
|
|
72416
|
+
}
|
|
72417
|
+
function integrationForSourceKind(kind) {
|
|
72418
|
+
if (isMailKind(kind)) return kind === "gmail_mail" ? "gmail" : kind === "outlook_mail" ? "outlook" : "icloud";
|
|
72419
|
+
if (isGithubKind(kind)) return "github";
|
|
72420
|
+
if (kind.startsWith("jira_") || kind.startsWith("confluence_")) return "atlassian";
|
|
72421
|
+
return null;
|
|
72953
72422
|
}
|
|
72954
72423
|
function summarizeRemote(s) {
|
|
72955
72424
|
const c = s.config ?? {};
|
|
@@ -72975,9 +72444,14 @@ function summarizeRemote(s) {
|
|
|
72975
72444
|
return `GitHub repo: ${slug}${ref}${prefix}`;
|
|
72976
72445
|
}
|
|
72977
72446
|
case "gmail_mail":
|
|
72978
|
-
return `Gmail: ${String(c.query ?? "?")}`;
|
|
72979
72447
|
case "outlook_mail":
|
|
72980
|
-
|
|
72448
|
+
case "icloud_mail":
|
|
72449
|
+
{
|
|
72450
|
+
const provider = s.kind === "gmail_mail" ? "Gmail" : s.kind === "outlook_mail" ? "Outlook" : "iCloud";
|
|
72451
|
+
if (!c.scope) return `${provider}: ${String(c.query ?? "?")}`;
|
|
72452
|
+
const scope = c.scope === "all" ? "Whole mailbox" : c.scope === "folder" ? String(c.folder) : "Inbox";
|
|
72453
|
+
return `${provider}: ${scope}${c.query ? ` · ${String(c.query)}` : ""} · ${c.retention === "mirror" ? "mirror" : "archive"}`;
|
|
72454
|
+
}
|
|
72981
72455
|
default:
|
|
72982
72456
|
return s.path;
|
|
72983
72457
|
}
|
|
@@ -73036,7 +72510,8 @@ function RemoteSourceFields(props) {
|
|
|
73036
72510
|
children: [
|
|
73037
72511
|
/*#__PURE__*/ (0,react_jsx_runtime.jsx)(RemoteKindInputs, {
|
|
73038
72512
|
state: props.state,
|
|
73039
|
-
set: props.set
|
|
72513
|
+
set: props.set,
|
|
72514
|
+
disabled: props.disabled
|
|
73040
72515
|
}),
|
|
73041
72516
|
/*#__PURE__*/ (0,react_jsx_runtime.jsx)(RemoteLabelRow, {
|
|
73042
72517
|
...props
|
|
@@ -73044,7 +72519,7 @@ function RemoteSourceFields(props) {
|
|
|
73044
72519
|
]
|
|
73045
72520
|
});
|
|
73046
72521
|
}
|
|
73047
|
-
function RemoteKindInputs({ state, set }) {
|
|
72522
|
+
function RemoteKindInputs({ state, set, disabled }) {
|
|
73048
72523
|
return /*#__PURE__*/ (0,react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, {
|
|
73049
72524
|
children: [
|
|
73050
72525
|
state.addKind === "jira_project" && /*#__PURE__*/ (0,react_jsx_runtime.jsx)("input", {
|
|
@@ -73068,12 +72543,10 @@ function RemoteKindInputs({ state, set }) {
|
|
|
73068
72543
|
rows: 2,
|
|
73069
72544
|
className: "w-full px-2.5 py-1.5 rounded-md bg-surface-2 border border-border text-sm text-fg font-mono resize-y"
|
|
73070
72545
|
}),
|
|
73071
|
-
isMailKind(state.addKind) && /*#__PURE__*/ (0,react_jsx_runtime.jsx)(
|
|
73072
|
-
|
|
73073
|
-
|
|
73074
|
-
|
|
73075
|
-
rows: 2,
|
|
73076
|
-
className: "w-full px-2.5 py-1.5 rounded-md bg-surface-2 border border-border text-sm text-fg font-mono resize-y"
|
|
72546
|
+
isMailKind(state.addKind) && /*#__PURE__*/ (0,react_jsx_runtime.jsx)(MailScopeInputs, {
|
|
72547
|
+
state: state,
|
|
72548
|
+
set: set,
|
|
72549
|
+
disabled: disabled
|
|
73077
72550
|
}),
|
|
73078
72551
|
isGithubKind(state.addKind) && /*#__PURE__*/ (0,react_jsx_runtime.jsx)(GithubOwnerRepoInputs, {
|
|
73079
72552
|
state: state,
|
|
@@ -73106,6 +72579,70 @@ function RemoteKindInputs({ state, set }) {
|
|
|
73106
72579
|
]
|
|
73107
72580
|
});
|
|
73108
72581
|
}
|
|
72582
|
+
function MailScopeInputs({ state, set, disabled }) {
|
|
72583
|
+
return /*#__PURE__*/ (0,react_jsx_runtime.jsxs)("fieldset", {
|
|
72584
|
+
disabled: disabled,
|
|
72585
|
+
className: "space-y-2",
|
|
72586
|
+
children: [
|
|
72587
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("label", {
|
|
72588
|
+
className: "block text-xs text-fg-muted",
|
|
72589
|
+
children: [
|
|
72590
|
+
"Mailbox scope",
|
|
72591
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("select", {
|
|
72592
|
+
"aria-label": "Mailbox scope",
|
|
72593
|
+
value: state.addMailScope,
|
|
72594
|
+
onChange: (e)=>set("addMailScope", e.target.value),
|
|
72595
|
+
className: "block w-full px-2 py-1.5 rounded-md bg-surface-2 border border-border text-sm text-fg",
|
|
72596
|
+
children: [
|
|
72597
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsx)("option", {
|
|
72598
|
+
value: "inbox",
|
|
72599
|
+
children: "Inbox"
|
|
72600
|
+
}),
|
|
72601
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsx)("option", {
|
|
72602
|
+
value: "folder",
|
|
72603
|
+
children: "Chosen folder or label"
|
|
72604
|
+
}),
|
|
72605
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsx)("option", {
|
|
72606
|
+
value: "all",
|
|
72607
|
+
children: "Whole mailbox (including spam and trash)"
|
|
72608
|
+
})
|
|
72609
|
+
]
|
|
72610
|
+
})
|
|
72611
|
+
]
|
|
72612
|
+
}),
|
|
72613
|
+
state.addMailScope === "folder" && /*#__PURE__*/ (0,react_jsx_runtime.jsxs)("label", {
|
|
72614
|
+
className: "block text-xs text-fg-muted",
|
|
72615
|
+
children: [
|
|
72616
|
+
"Folder or label",
|
|
72617
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsx)("input", {
|
|
72618
|
+
"aria-label": "Folder or label",
|
|
72619
|
+
value: state.addMailFolder,
|
|
72620
|
+
onChange: (e)=>set("addMailFolder", e.target.value),
|
|
72621
|
+
placeholder: state.addKind === "gmail_mail" ? "Gmail label name or ID" : state.addKind === "outlook_mail" ? "Outlook folder ID or well-known name (e.g. sentitems)" : "iCloud folder path",
|
|
72622
|
+
className: "block w-full px-2.5 py-1.5 rounded-md bg-surface-2 border border-border text-sm text-fg"
|
|
72623
|
+
})
|
|
72624
|
+
]
|
|
72625
|
+
}),
|
|
72626
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsx)("textarea", {
|
|
72627
|
+
"aria-label": "Optional mail search",
|
|
72628
|
+
value: state.addMailQuery,
|
|
72629
|
+
onChange: (e)=>set("addMailQuery", e.target.value),
|
|
72630
|
+
placeholder: state.addKind === "gmail_mail" ? "Optional Gmail query (e.g. newer_than:30d)" : state.addKind === "outlook_mail" ? "Optional Outlook search (e.g. subject:budget)" : "Optional text search in subject or body",
|
|
72631
|
+
rows: 2,
|
|
72632
|
+
className: "w-full px-2.5 py-1.5 rounded-md bg-surface-2 border border-border text-sm text-fg font-mono resize-y"
|
|
72633
|
+
}),
|
|
72634
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsx)("p", {
|
|
72635
|
+
className: "text-xs text-fg-faint",
|
|
72636
|
+
children: "No search is required. Leave Max results blank to index all messages in this scope. Refreshes automatically about every 10 minutes while Jarela is running and unlocked. Previously indexed emails are kept, even after they are moved or deleted from your mailbox. Remove this source to delete its local archive."
|
|
72637
|
+
}),
|
|
72638
|
+
state.addKind === "outlook_mail" && state.addMailQuery.trim() && /*#__PURE__*/ (0,react_jsx_runtime.jsx)("p", {
|
|
72639
|
+
role: "alert",
|
|
72640
|
+
className: "text-xs text-amber-600 dark:text-amber-400",
|
|
72641
|
+
children: "Outlook text search is limited to 1,000 results by Microsoft Graph. Leave search blank for complete folder or mailbox coverage."
|
|
72642
|
+
})
|
|
72643
|
+
]
|
|
72644
|
+
});
|
|
72645
|
+
}
|
|
73109
72646
|
function GithubOwnerRepoInputs({ state, set }) {
|
|
73110
72647
|
return /*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
73111
72648
|
className: "flex flex-col gap-2 sm:flex-row",
|
|
@@ -73228,6 +72765,8 @@ const INITIAL = {
|
|
|
73228
72765
|
addSpaceKey: "",
|
|
73229
72766
|
addQuery: "",
|
|
73230
72767
|
addMailQuery: "",
|
|
72768
|
+
addMailScope: "inbox",
|
|
72769
|
+
addMailFolder: "",
|
|
73231
72770
|
addMailMaxResults: "",
|
|
73232
72771
|
addMailPageSize: "",
|
|
73233
72772
|
addRecencyDays: "",
|
|
@@ -73275,13 +72814,30 @@ function buildPayload(s) {
|
|
|
73275
72814
|
if (prefix) config.path_prefix = prefix;
|
|
73276
72815
|
}
|
|
73277
72816
|
} else if (isMailKind(s.addKind)) {
|
|
73278
|
-
|
|
73279
|
-
|
|
73280
|
-
|
|
73281
|
-
|
|
73282
|
-
|
|
73283
|
-
|
|
73284
|
-
if (
|
|
72817
|
+
config.scope = s.addMailScope;
|
|
72818
|
+
config.retention = "archive";
|
|
72819
|
+
if (s.addMailScope === "folder") {
|
|
72820
|
+
if (!s.addMailFolder.trim()) return null;
|
|
72821
|
+
config.folder = s.addMailFolder.trim();
|
|
72822
|
+
}
|
|
72823
|
+
if (s.addMailQuery.trim()) config.query = s.addMailQuery.trim();
|
|
72824
|
+
for (const [raw, key, maximum] of [
|
|
72825
|
+
[
|
|
72826
|
+
s.addMailMaxResults,
|
|
72827
|
+
"max_results",
|
|
72828
|
+
Infinity
|
|
72829
|
+
],
|
|
72830
|
+
[
|
|
72831
|
+
s.addMailPageSize,
|
|
72832
|
+
"page_size",
|
|
72833
|
+
100
|
|
72834
|
+
]
|
|
72835
|
+
]){
|
|
72836
|
+
if (!raw.trim()) continue;
|
|
72837
|
+
const value = Number(raw);
|
|
72838
|
+
if (!Number.isInteger(value) || value < 1 || value > maximum) return null;
|
|
72839
|
+
config[key] = value;
|
|
72840
|
+
}
|
|
73285
72841
|
}
|
|
73286
72842
|
const recency = parseInt(s.addRecencyDays, 10);
|
|
73287
72843
|
if (Number.isFinite(recency) && recency > 0) config.recency_days = recency;
|
|
@@ -73296,31 +72852,38 @@ function kindHint(kind) {
|
|
|
73296
72852
|
if (kind === "local_folder") return "Pick a folder on this machine.";
|
|
73297
72853
|
if (kind === "gmail_mail") return "Requires Gmail credentials (Credentials → Gmail).";
|
|
73298
72854
|
if (kind === "outlook_mail") return "Requires Outlook credentials (Credentials → Outlook).";
|
|
72855
|
+
if (kind === "icloud_mail") return "Requires iCloud credentials (Credentials → iCloud).";
|
|
73299
72856
|
if (isGithubKind(kind)) return "Requires GitHub credentials (Credentials → GitHub).";
|
|
73300
72857
|
return "Requires Atlassian credentials (Credentials → Atlassian).";
|
|
73301
72858
|
}
|
|
73302
|
-
function AddSourceForm({ disabled, onSubmit }) {
|
|
72859
|
+
function AddSourceForm({ disabled, onSubmit, configuredIntegrations, localEmbeddings }) {
|
|
73303
72860
|
const [state, setState] = (0,react.useState)(INITIAL);
|
|
73304
72861
|
const [pickerOpen, setPickerOpen] = (0,react.useState)(false);
|
|
72862
|
+
const [consent, setConsent] = (0,react.useState)(false);
|
|
72863
|
+
const [submitting, setSubmitting] = (0,react.useState)(false);
|
|
73305
72864
|
const set = makeSetField(setState);
|
|
73306
72865
|
const payload = buildPayload(state);
|
|
73307
72866
|
async function handleSubmit() {
|
|
73308
|
-
if (!payload) return;
|
|
72867
|
+
if (!payload || !consent || submitting) return;
|
|
72868
|
+
setSubmitting(true);
|
|
73309
72869
|
try {
|
|
73310
|
-
await onSubmit(payload);
|
|
72870
|
+
if (!await onSubmit(payload)) return;
|
|
73311
72871
|
setState({
|
|
73312
72872
|
...INITIAL,
|
|
73313
72873
|
addKind: state.addKind
|
|
73314
72874
|
});
|
|
72875
|
+
setConsent(false);
|
|
73315
72876
|
} catch {
|
|
73316
72877
|
// parent surfaces the error; keep form state for retry.
|
|
72878
|
+
} finally{
|
|
72879
|
+
setSubmitting(false);
|
|
73317
72880
|
}
|
|
73318
72881
|
}
|
|
73319
72882
|
const fieldProps = {
|
|
73320
72883
|
state,
|
|
73321
72884
|
set,
|
|
73322
|
-
disabled,
|
|
73323
|
-
canSubmit: payload !== null,
|
|
72885
|
+
disabled: disabled || submitting,
|
|
72886
|
+
canSubmit: payload !== null && consent,
|
|
73324
72887
|
onSubmit: ()=>void handleSubmit()
|
|
73325
72888
|
};
|
|
73326
72889
|
return /*#__PURE__*/ (0,react_jsx_runtime.jsxs)("section", {
|
|
@@ -73328,22 +72891,38 @@ function AddSourceForm({ disabled, onSubmit }) {
|
|
|
73328
72891
|
children: [
|
|
73329
72892
|
/*#__PURE__*/ (0,react_jsx_runtime.jsx)("label", {
|
|
73330
72893
|
className: "text-xs font-semibold text-fg-muted uppercase tracking-wide",
|
|
73331
|
-
children: "
|
|
72894
|
+
children: "Opt in to indexing"
|
|
72895
|
+
}),
|
|
72896
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsx)("p", {
|
|
72897
|
+
className: "text-xs text-fg-faint",
|
|
72898
|
+
children: "Choose a folder or a supported connected integration, then select the mailbox scope, repository, or project to index. Connecting credentials alone does not enable indexing. Other tools without a document indexer are not listed."
|
|
73332
72899
|
}),
|
|
73333
72900
|
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
73334
72901
|
className: "flex items-center gap-2",
|
|
73335
72902
|
children: [
|
|
73336
72903
|
/*#__PURE__*/ (0,react_jsx_runtime.jsx)("select", {
|
|
73337
72904
|
value: state.addKind,
|
|
73338
|
-
|
|
72905
|
+
disabled: disabled || submitting,
|
|
72906
|
+
onChange: (e)=>{
|
|
72907
|
+
setState({
|
|
73339
72908
|
...INITIAL,
|
|
73340
72909
|
addKind: e.target.value
|
|
73341
|
-
})
|
|
72910
|
+
});
|
|
72911
|
+
setConsent(false);
|
|
72912
|
+
},
|
|
73342
72913
|
className: "px-2 py-1.5 rounded-md bg-surface-2 border border-border text-xs text-fg",
|
|
73343
|
-
children: KIND_OPTIONS.map((o)
|
|
72914
|
+
children: KIND_OPTIONS.map((o)=>{
|
|
72915
|
+
const integration = integrationForSourceKind(o.value);
|
|
72916
|
+
const unavailable = integration !== null && !configuredIntegrations.includes(integration);
|
|
72917
|
+
return /*#__PURE__*/ (0,react_jsx_runtime.jsxs)("option", {
|
|
73344
72918
|
value: o.value,
|
|
73345
|
-
|
|
73346
|
-
|
|
72919
|
+
disabled: unavailable,
|
|
72920
|
+
children: [
|
|
72921
|
+
o.label,
|
|
72922
|
+
unavailable ? " (connect credentials first)" : ""
|
|
72923
|
+
]
|
|
72924
|
+
}, o.value);
|
|
72925
|
+
})
|
|
73347
72926
|
}),
|
|
73348
72927
|
/*#__PURE__*/ (0,react_jsx_runtime.jsx)("span", {
|
|
73349
72928
|
className: "text-[11px] text-fg-faint",
|
|
@@ -73351,6 +72930,23 @@ function AddSourceForm({ disabled, onSubmit }) {
|
|
|
73351
72930
|
})
|
|
73352
72931
|
]
|
|
73353
72932
|
}),
|
|
72933
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("label", {
|
|
72934
|
+
className: "flex items-start gap-2 text-xs text-fg-muted",
|
|
72935
|
+
children: [
|
|
72936
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsx)("input", {
|
|
72937
|
+
type: "checkbox",
|
|
72938
|
+
checked: consent,
|
|
72939
|
+
disabled: disabled || submitting || localEmbeddings === null,
|
|
72940
|
+
onChange: (e)=>setConsent(e.target.checked)
|
|
72941
|
+
}),
|
|
72942
|
+
"Index this source and make its content available to assistant document search, subject to global exclusions. Retrieved excerpts may be sent to the configured chat provider."
|
|
72943
|
+
]
|
|
72944
|
+
}),
|
|
72945
|
+
localEmbeddings === false && /*#__PURE__*/ (0,react_jsx_runtime.jsx)("p", {
|
|
72946
|
+
role: "alert",
|
|
72947
|
+
className: "text-xs text-amber-600 dark:text-amber-400",
|
|
72948
|
+
children: "The embedding provider is not Jarela Local. Content may leave this device during indexing. Recall exclusions do not prevent embedding or storage."
|
|
72949
|
+
}),
|
|
73354
72950
|
state.addKind === "local_folder" ? /*#__PURE__*/ (0,react_jsx_runtime.jsx)(LocalFolderFields, {
|
|
73355
72951
|
...fieldProps,
|
|
73356
72952
|
onOpenPicker: ()=>setPickerOpen(true)
|
|
@@ -73391,10 +72987,12 @@ function groupPreviewHits(hits) {
|
|
|
73391
72987
|
}
|
|
73392
72988
|
return Array.from(groups.values());
|
|
73393
72989
|
}
|
|
73394
|
-
function SearchProbe({ onSearch }) {
|
|
72990
|
+
function SearchProbe({ onSearch, onExclude }) {
|
|
73395
72991
|
const [query, setQuery] = (0,react.useState)("");
|
|
73396
72992
|
const [hits, setHits] = (0,react.useState)([]);
|
|
73397
72993
|
const [searching, setSearching] = (0,react.useState)(false);
|
|
72994
|
+
const [includeExcluded, setIncludeExcluded] = (0,react.useState)(false);
|
|
72995
|
+
const [searched, setSearched] = (0,react.useState)(false);
|
|
73398
72996
|
const groups = groupPreviewHits(hits);
|
|
73399
72997
|
async function runSearch() {
|
|
73400
72998
|
const q = query.trim();
|
|
@@ -73403,8 +73001,13 @@ function SearchProbe({ onSearch }) {
|
|
|
73403
73001
|
return;
|
|
73404
73002
|
}
|
|
73405
73003
|
setSearching(true);
|
|
73004
|
+
setSearched(false);
|
|
73406
73005
|
try {
|
|
73407
|
-
setHits(await onSearch(q));
|
|
73006
|
+
setHits(await onSearch(q, includeExcluded));
|
|
73007
|
+
setSearched(true);
|
|
73008
|
+
} catch {
|
|
73009
|
+
setHits([]);
|
|
73010
|
+
// The panel surfaces search errors.
|
|
73408
73011
|
} finally{
|
|
73409
73012
|
setSearching(false);
|
|
73410
73013
|
}
|
|
@@ -73414,7 +73017,31 @@ function SearchProbe({ onSearch }) {
|
|
|
73414
73017
|
children: [
|
|
73415
73018
|
/*#__PURE__*/ (0,react_jsx_runtime.jsx)("label", {
|
|
73416
73019
|
className: "text-xs font-semibold text-fg-muted uppercase tracking-wide",
|
|
73417
|
-
children: "
|
|
73020
|
+
children: "Search and exclude documents"
|
|
73021
|
+
}),
|
|
73022
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsx)("p", {
|
|
73023
|
+
className: "text-xs text-fg-faint",
|
|
73024
|
+
children: "Search a topic, then exclude matching documents from assistant retrieval across all indexed sources. Results are ranked and limited, not an exhaustive topic audit."
|
|
73025
|
+
}),
|
|
73026
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("label", {
|
|
73027
|
+
className: "flex gap-2 items-start text-xs text-fg-muted",
|
|
73028
|
+
children: [
|
|
73029
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsx)("input", {
|
|
73030
|
+
type: "checkbox",
|
|
73031
|
+
checked: includeExcluded,
|
|
73032
|
+
disabled: searching,
|
|
73033
|
+
onChange: (e)=>{
|
|
73034
|
+
setIncludeExcluded(e.target.checked);
|
|
73035
|
+
setHits([]);
|
|
73036
|
+
setSearched(false);
|
|
73037
|
+
}
|
|
73038
|
+
}),
|
|
73039
|
+
"Include excluded content for this preview only. This does not authorize the assistant to retrieve it."
|
|
73040
|
+
]
|
|
73041
|
+
}),
|
|
73042
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsx)("p", {
|
|
73043
|
+
className: "text-xs text-fg-faint",
|
|
73044
|
+
children: "The search query uses your embedding provider; preview excerpts are displayed here, not sent to the chat model."
|
|
73418
73045
|
}),
|
|
73419
73046
|
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
73420
73047
|
className: "flex gap-2",
|
|
@@ -73447,15 +73074,37 @@ function SearchProbe({ onSearch }) {
|
|
|
73447
73074
|
children: groups.map((group)=>/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
73448
73075
|
className: "rounded-md border border-border bg-surface px-3 py-2 text-xs",
|
|
73449
73076
|
children: [
|
|
73450
|
-
/*#__PURE__*/ (0,react_jsx_runtime.
|
|
73077
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
73451
73078
|
className: "flex items-center mb-1",
|
|
73452
|
-
children:
|
|
73453
|
-
|
|
73454
|
-
|
|
73455
|
-
|
|
73456
|
-
|
|
73457
|
-
|
|
73458
|
-
|
|
73079
|
+
children: [
|
|
73080
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("span", {
|
|
73081
|
+
className: "font-mono text-fg-muted truncate flex-1",
|
|
73082
|
+
children: [
|
|
73083
|
+
group.sourceLabel ? `${group.sourceLabel} / ` : "",
|
|
73084
|
+
group.relPath
|
|
73085
|
+
]
|
|
73086
|
+
}),
|
|
73087
|
+
group.hits[0]?.excluded ? /*#__PURE__*/ (0,react_jsx_runtime.jsx)("span", {
|
|
73088
|
+
className: "text-fg-faint ml-2",
|
|
73089
|
+
children: "Document excluded"
|
|
73090
|
+
}) : /*#__PURE__*/ (0,react_jsx_runtime.jsx)("button", {
|
|
73091
|
+
type: "button",
|
|
73092
|
+
disabled: searching,
|
|
73093
|
+
className: "text-accent ml-2 shrink-0",
|
|
73094
|
+
onClick: async ()=>{
|
|
73095
|
+
setSearching(true);
|
|
73096
|
+
try {
|
|
73097
|
+
await onExclude(group.hits[0]);
|
|
73098
|
+
setHits((current)=>current.filter((hit)=>hit.document_id !== group.documentId));
|
|
73099
|
+
} catch {
|
|
73100
|
+
// The panel surfaces save errors.
|
|
73101
|
+
} finally{
|
|
73102
|
+
setSearching(false);
|
|
73103
|
+
}
|
|
73104
|
+
},
|
|
73105
|
+
children: "Exclude document"
|
|
73106
|
+
})
|
|
73107
|
+
]
|
|
73459
73108
|
}),
|
|
73460
73109
|
/*#__PURE__*/ (0,react_jsx_runtime.jsx)("div", {
|
|
73461
73110
|
className: "space-y-2",
|
|
@@ -73483,7 +73132,7 @@ function SearchProbe({ onSearch }) {
|
|
|
73483
73132
|
]
|
|
73484
73133
|
}, group.documentId))
|
|
73485
73134
|
}),
|
|
73486
|
-
!searching && query.trim() && hits.length === 0 && /*#__PURE__*/ (0,react_jsx_runtime.jsx)("p", {
|
|
73135
|
+
!searching && searched && query.trim() && hits.length === 0 && /*#__PURE__*/ (0,react_jsx_runtime.jsx)("p", {
|
|
73487
73136
|
className: "text-fg-faint text-xs italic",
|
|
73488
73137
|
children: "No hits — try different terms or add more folders above."
|
|
73489
73138
|
})
|
|
@@ -73664,11 +73313,22 @@ function useDocumentsPanel() {
|
|
|
73664
73313
|
const [loading, setLoading] = (0,react.useState)(true);
|
|
73665
73314
|
const [error, setError] = (0,react.useState)(null);
|
|
73666
73315
|
const [busy, setBusy] = (0,react.useState)({});
|
|
73316
|
+
const [recallPolicy, setRecallPolicy] = (0,react.useState)(null);
|
|
73317
|
+
const [localEmbeddings, setLocalEmbeddings] = (0,react.useState)(null);
|
|
73318
|
+
const [configuredIntegrations, setConfiguredIntegrations] = (0,react.useState)([]);
|
|
73667
73319
|
async function load() {
|
|
73668
73320
|
setLoading(true);
|
|
73669
73321
|
setError(null);
|
|
73670
73322
|
try {
|
|
73671
|
-
|
|
73323
|
+
const [sources, recall, integrations] = await Promise.all([
|
|
73324
|
+
client/* api */.FH.documents.listSources(),
|
|
73325
|
+
client/* api */.FH.documents.getRecallPolicy(),
|
|
73326
|
+
client/* api */.FH.integrations.list()
|
|
73327
|
+
]);
|
|
73328
|
+
setSources(sources);
|
|
73329
|
+
setRecallPolicy(recall.policy);
|
|
73330
|
+
setLocalEmbeddings(recall.local_embeddings);
|
|
73331
|
+
setConfiguredIntegrations(integrations.statuses.filter((s)=>s.configured).map((s)=>s.name));
|
|
73672
73332
|
} catch (e) {
|
|
73673
73333
|
setError((0,utils_error/* errorMessage */.g)(e));
|
|
73674
73334
|
} finally{
|
|
@@ -73678,11 +73338,32 @@ function useDocumentsPanel() {
|
|
|
73678
73338
|
process.env.__NEXT_PRIVATE_MINIMIZE_MACRO_FALSE && (0,react.useEffect)(()=>{
|
|
73679
73339
|
void load();
|
|
73680
73340
|
}, []);
|
|
73341
|
+
async function confirmEmbeddingDisclosure() {
|
|
73342
|
+
const current = await client/* api */.FH.documents.getRecallPolicy();
|
|
73343
|
+
setLocalEmbeddings(current.local_embeddings);
|
|
73344
|
+
return current.local_embeddings || (0,ui_confirm/* confirmAction */.fN)({
|
|
73345
|
+
message: "The embedding provider is not Jarela Local. Indexed document content may be sent to an external service, including content later excluded from recall. Continue?",
|
|
73346
|
+
confirmLabel: "Allow indexing"
|
|
73347
|
+
});
|
|
73348
|
+
}
|
|
73349
|
+
async function saveRecallPolicy(policy) {
|
|
73350
|
+
setError(null);
|
|
73351
|
+
try {
|
|
73352
|
+
const updated = await client/* api */.FH.documents.setRecallPolicy(policy);
|
|
73353
|
+
setRecallPolicy(updated.policy);
|
|
73354
|
+
setLocalEmbeddings(updated.local_embeddings);
|
|
73355
|
+
} catch (e) {
|
|
73356
|
+
setError((0,utils_error/* errorMessage */.g)(e));
|
|
73357
|
+
throw e;
|
|
73358
|
+
}
|
|
73359
|
+
}
|
|
73681
73360
|
async function addSource(payload) {
|
|
73682
73361
|
setError(null);
|
|
73683
73362
|
try {
|
|
73363
|
+
if (!await confirmEmbeddingDisclosure()) return false;
|
|
73684
73364
|
await client/* api */.FH.documents.createSource(payload);
|
|
73685
73365
|
await load();
|
|
73366
|
+
return true;
|
|
73686
73367
|
} catch (e) {
|
|
73687
73368
|
setError((0,utils_error/* errorMessage */.g)(e));
|
|
73688
73369
|
throw e;
|
|
@@ -73694,6 +73375,7 @@ function useDocumentsPanel() {
|
|
|
73694
73375
|
[id]: true
|
|
73695
73376
|
}));
|
|
73696
73377
|
try {
|
|
73378
|
+
if (!await confirmEmbeddingDisclosure()) return;
|
|
73697
73379
|
const result = await client/* api */.FH.documents.reindex(id);
|
|
73698
73380
|
if ((result.stats.embed_failed ?? 0) > 0) {
|
|
73699
73381
|
setError(`Embedding degraded: ${result.stats.embed_failed} chunk${result.stats.embed_failed === 1 ? "" : "s"} failed to embed` + (result.stats.embed_error ? ` (${result.stats.embed_error})` : ""));
|
|
@@ -73754,6 +73436,7 @@ function useDocumentsPanel() {
|
|
|
73754
73436
|
}
|
|
73755
73437
|
async function toggleSource(s) {
|
|
73756
73438
|
try {
|
|
73439
|
+
if (!s.enabled && !await confirmEmbeddingDisclosure()) return;
|
|
73757
73440
|
await client/* api */.FH.documents.updateSource(s.id, {
|
|
73758
73441
|
enabled: !s.enabled
|
|
73759
73442
|
});
|
|
@@ -73762,15 +73445,17 @@ function useDocumentsPanel() {
|
|
|
73762
73445
|
setError((0,utils_error/* errorMessage */.g)(e));
|
|
73763
73446
|
}
|
|
73764
73447
|
}
|
|
73765
|
-
async function search(q) {
|
|
73448
|
+
async function search(q, includeExcluded = false) {
|
|
73449
|
+
setError(null);
|
|
73766
73450
|
try {
|
|
73767
73451
|
const res = await client/* api */.FH.documents.search(q, {
|
|
73768
|
-
limit:
|
|
73452
|
+
limit: 25,
|
|
73453
|
+
include_excluded: includeExcluded
|
|
73769
73454
|
});
|
|
73770
73455
|
return res.hits;
|
|
73771
73456
|
} catch (e) {
|
|
73772
73457
|
setError((0,utils_error/* errorMessage */.g)(e));
|
|
73773
|
-
|
|
73458
|
+
throw e;
|
|
73774
73459
|
}
|
|
73775
73460
|
}
|
|
73776
73461
|
return {
|
|
@@ -73783,12 +73468,116 @@ function useDocumentsPanel() {
|
|
|
73783
73468
|
reindex,
|
|
73784
73469
|
removeSource,
|
|
73785
73470
|
toggleSource,
|
|
73786
|
-
search
|
|
73471
|
+
search,
|
|
73472
|
+
recallPolicy,
|
|
73473
|
+
localEmbeddings,
|
|
73474
|
+
configuredIntegrations,
|
|
73475
|
+
saveRecallPolicy
|
|
73787
73476
|
};
|
|
73788
73477
|
}
|
|
73789
73478
|
// Re-export so subcomponents can import in one place.
|
|
73790
73479
|
|
|
73791
73480
|
|
|
73481
|
+
;// ./components/documents/RecallExclusions.tsx
|
|
73482
|
+
/* __next_internal_client_entry_do_not_use__ RecallExclusions auto */
|
|
73483
|
+
|
|
73484
|
+
function RecallExclusions({ policy, onSave }) {
|
|
73485
|
+
const [topics, setTopics] = (0,react.useState)(policy.topics.join("\n"));
|
|
73486
|
+
const [similarity, setSimilarity] = (0,react.useState)(policy.topic_similarity);
|
|
73487
|
+
const [saving, setSaving] = (0,react.useState)(false);
|
|
73488
|
+
async function save(next) {
|
|
73489
|
+
setSaving(true);
|
|
73490
|
+
try {
|
|
73491
|
+
await onSave(next);
|
|
73492
|
+
} catch {
|
|
73493
|
+
// The panel surfaces save errors.
|
|
73494
|
+
} finally{
|
|
73495
|
+
setSaving(false);
|
|
73496
|
+
}
|
|
73497
|
+
}
|
|
73498
|
+
return /*#__PURE__*/ (0,react_jsx_runtime.jsxs)("section", {
|
|
73499
|
+
className: "space-y-2",
|
|
73500
|
+
children: [
|
|
73501
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsx)("h3", {
|
|
73502
|
+
className: "text-xs font-semibold text-fg-muted uppercase tracking-wide",
|
|
73503
|
+
children: "Global recall exclusions"
|
|
73504
|
+
}),
|
|
73505
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsx)("p", {
|
|
73506
|
+
className: "text-xs text-fg-faint",
|
|
73507
|
+
children: "Applies to all indexed sources and assistant document searches, including existing content. Topic matching is best-effort; exclude individual documents below for exact control. This does not delete content, prevent external embedding, remove prior chat excerpts, or block live tools."
|
|
73508
|
+
}),
|
|
73509
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("label", {
|
|
73510
|
+
className: "block text-xs text-fg-muted",
|
|
73511
|
+
children: [
|
|
73512
|
+
"Excluded topics (one per line, up to 25)",
|
|
73513
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsx)("textarea", {
|
|
73514
|
+
"aria-label": "Excluded topics",
|
|
73515
|
+
value: topics,
|
|
73516
|
+
disabled: saving,
|
|
73517
|
+
onChange: (e)=>setTopics(e.target.value),
|
|
73518
|
+
placeholder: "Personal medical treatment\nProject Atlas",
|
|
73519
|
+
rows: 3,
|
|
73520
|
+
className: "mt-1 w-full rounded-md bg-surface-2 border border-border p-2 text-sm text-fg"
|
|
73521
|
+
})
|
|
73522
|
+
]
|
|
73523
|
+
}),
|
|
73524
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("label", {
|
|
73525
|
+
className: "flex items-center gap-2 text-xs text-fg-muted",
|
|
73526
|
+
children: [
|
|
73527
|
+
"Topic similarity threshold",
|
|
73528
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsx)("input", {
|
|
73529
|
+
"aria-label": "Topic similarity threshold",
|
|
73530
|
+
type: "number",
|
|
73531
|
+
min: 0.1,
|
|
73532
|
+
max: 1,
|
|
73533
|
+
step: 0.05,
|
|
73534
|
+
value: similarity,
|
|
73535
|
+
disabled: saving,
|
|
73536
|
+
onChange: (e)=>setSimilarity(e.target.valueAsNumber),
|
|
73537
|
+
className: "w-20 rounded-md bg-surface-2 border border-border p-1"
|
|
73538
|
+
})
|
|
73539
|
+
]
|
|
73540
|
+
}),
|
|
73541
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsx)("p", {
|
|
73542
|
+
className: "text-xs text-fg-faint",
|
|
73543
|
+
children: "Lower thresholds exclude more. Preview results to tune this; similarity cannot guarantee topic detection. When topic filtering cannot run, assistant document search is blocked instead of returning unchecked content. Topic descriptions use your selected embedding provider."
|
|
73544
|
+
}),
|
|
73545
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsx)("button", {
|
|
73546
|
+
type: "button",
|
|
73547
|
+
disabled: saving || !Number.isFinite(similarity) || similarity < 0.1 || similarity > 1,
|
|
73548
|
+
onClick: ()=>void save({
|
|
73549
|
+
...policy,
|
|
73550
|
+
topics: [
|
|
73551
|
+
...new Set(topics.split("\n").map((t)=>t.trim()).filter(Boolean))
|
|
73552
|
+
],
|
|
73553
|
+
topic_similarity: similarity
|
|
73554
|
+
}),
|
|
73555
|
+
className: "text-xs text-accent disabled:opacity-50",
|
|
73556
|
+
children: saving ? "Saving..." : "Save topic exclusions"
|
|
73557
|
+
}),
|
|
73558
|
+
policy.excluded_documents.map((doc)=>/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
73559
|
+
className: "flex gap-2 items-center text-xs text-fg-muted",
|
|
73560
|
+
children: [
|
|
73561
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsx)("span", {
|
|
73562
|
+
className: "truncate flex-1",
|
|
73563
|
+
children: doc.label
|
|
73564
|
+
}),
|
|
73565
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsx)("button", {
|
|
73566
|
+
type: "button",
|
|
73567
|
+
disabled: saving,
|
|
73568
|
+
className: "text-accent",
|
|
73569
|
+
onClick: ()=>void save({
|
|
73570
|
+
...policy,
|
|
73571
|
+
excluded_documents: policy.excluded_documents.filter((d)=>d.source_id !== doc.source_id || d.path !== doc.path)
|
|
73572
|
+
}),
|
|
73573
|
+
children: "Allow again"
|
|
73574
|
+
})
|
|
73575
|
+
]
|
|
73576
|
+
}, `${doc.source_id}:${doc.path}`))
|
|
73577
|
+
]
|
|
73578
|
+
});
|
|
73579
|
+
}
|
|
73580
|
+
|
|
73792
73581
|
;// ./components/documents/DocumentsPanel.tsx
|
|
73793
73582
|
/* __next_internal_client_entry_do_not_use__ DocumentsPanel auto */
|
|
73794
73583
|
|
|
@@ -73799,6 +73588,7 @@ function useDocumentsPanel() {
|
|
|
73799
73588
|
|
|
73800
73589
|
|
|
73801
73590
|
|
|
73591
|
+
|
|
73802
73592
|
function DocumentsPanel({ embedded = false } = {}) {
|
|
73803
73593
|
const { dispatch } = (0,AppContext/* useAppContext */.Us)();
|
|
73804
73594
|
const containerRef = (0,react.useRef)(null);
|
|
@@ -73832,7 +73622,7 @@ function DocumentsPanel({ embedded = false } = {}) {
|
|
|
73832
73622
|
}),
|
|
73833
73623
|
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
73834
73624
|
ref: containerRef,
|
|
73835
|
-
className: embedded ? "
|
|
73625
|
+
className: embedded ? "workspace-gutter py-3 space-y-5" : "workspace-gutter flex-1 overflow-y-auto no-scrollbar py-3 space-y-5",
|
|
73836
73626
|
children: [
|
|
73837
73627
|
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("p", {
|
|
73838
73628
|
className: "text-xs text-fg-faint leading-relaxed",
|
|
@@ -73881,7 +73671,9 @@ function DocumentsPanel({ embedded = false } = {}) {
|
|
|
73881
73671
|
}),
|
|
73882
73672
|
/*#__PURE__*/ (0,react_jsx_runtime.jsx)(AddSourceForm, {
|
|
73883
73673
|
disabled: panel.loading,
|
|
73884
|
-
onSubmit: panel.addSource
|
|
73674
|
+
onSubmit: panel.addSource,
|
|
73675
|
+
configuredIntegrations: panel.configuredIntegrations,
|
|
73676
|
+
localEmbeddings: panel.localEmbeddings
|
|
73885
73677
|
}),
|
|
73886
73678
|
embedded && /*#__PURE__*/ (0,react_jsx_runtime.jsx)("button", {
|
|
73887
73679
|
type: "button",
|
|
@@ -73924,8 +73716,30 @@ function DocumentsPanel({ embedded = false } = {}) {
|
|
|
73924
73716
|
void panel.toggleSource(s);
|
|
73925
73717
|
}
|
|
73926
73718
|
}),
|
|
73927
|
-
|
|
73928
|
-
|
|
73719
|
+
panel.recallPolicy && /*#__PURE__*/ (0,react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, {
|
|
73720
|
+
children: [
|
|
73721
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsx)(RecallExclusions, {
|
|
73722
|
+
policy: panel.recallPolicy,
|
|
73723
|
+
onSave: panel.saveRecallPolicy
|
|
73724
|
+
}, JSON.stringify(panel.recallPolicy)),
|
|
73725
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsx)(SearchProbe, {
|
|
73726
|
+
onSearch: panel.search,
|
|
73727
|
+
onExclude: async (hit)=>{
|
|
73728
|
+
if (!panel.recallPolicy) return;
|
|
73729
|
+
await panel.saveRecallPolicy({
|
|
73730
|
+
...panel.recallPolicy,
|
|
73731
|
+
excluded_documents: [
|
|
73732
|
+
...panel.recallPolicy.excluded_documents.filter((d)=>d.source_id !== hit.source_id || d.path !== hit.abs_path),
|
|
73733
|
+
{
|
|
73734
|
+
source_id: hit.source_id,
|
|
73735
|
+
path: hit.abs_path,
|
|
73736
|
+
label: hit.rel_path
|
|
73737
|
+
}
|
|
73738
|
+
]
|
|
73739
|
+
});
|
|
73740
|
+
}
|
|
73741
|
+
}, `search-${JSON.stringify(panel.recallPolicy)}`)
|
|
73742
|
+
]
|
|
73929
73743
|
})
|
|
73930
73744
|
]
|
|
73931
73745
|
})
|
|
@@ -74046,7 +73860,7 @@ function UnifiedMemoryPanel() {
|
|
|
74046
73860
|
title: "Memory"
|
|
74047
73861
|
}),
|
|
74048
73862
|
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
74049
|
-
className: "
|
|
73863
|
+
className: "workspace-gutter py-3 border-b border-border space-y-2",
|
|
74050
73864
|
children: [
|
|
74051
73865
|
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
74052
73866
|
className: "flex gap-2",
|
|
@@ -74118,7 +73932,7 @@ function UnifiedMemoryPanel() {
|
|
|
74118
73932
|
children: [
|
|
74119
73933
|
results.length > 0 && /*#__PURE__*/ (0,react_jsx_runtime.jsx)("section", {
|
|
74120
73934
|
"aria-label": "Search results",
|
|
74121
|
-
className: "
|
|
73935
|
+
className: "workspace-gutter py-3 space-y-2",
|
|
74122
73936
|
children: results.map((result, index)=>/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("article", {
|
|
74123
73937
|
className: "border-b border-border/60 py-2.5 last:border-b-0",
|
|
74124
73938
|
children: [
|
|
@@ -74185,7 +73999,7 @@ function UnifiedMemoryPanel() {
|
|
|
74185
73999
|
className: "group border-t border-border",
|
|
74186
74000
|
children: [
|
|
74187
74001
|
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("summary", {
|
|
74188
|
-
className: "flex items-center gap-2
|
|
74002
|
+
className: "workspace-gutter flex items-center gap-2 py-3 cursor-pointer select-none text-sm font-medium text-fg hover:bg-surface-3/30",
|
|
74189
74003
|
children: [
|
|
74190
74004
|
/*#__PURE__*/ (0,react_jsx_runtime.jsx)(chevron_right/* default */.A, {
|
|
74191
74005
|
size: 14,
|
|
@@ -74207,7 +74021,7 @@ function UnifiedMemoryPanel() {
|
|
|
74207
74021
|
className: "group border-t border-border",
|
|
74208
74022
|
children: [
|
|
74209
74023
|
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("summary", {
|
|
74210
|
-
className: "flex items-center gap-2
|
|
74024
|
+
className: "workspace-gutter flex items-center gap-2 py-3 cursor-pointer select-none text-sm font-medium text-fg hover:bg-surface-3/30",
|
|
74211
74025
|
children: [
|
|
74212
74026
|
/*#__PURE__*/ (0,react_jsx_runtime.jsx)(chevron_right/* default */.A, {
|
|
74213
74027
|
size: 14,
|
|
@@ -76141,12 +75955,242 @@ chart_column_iconData.node;
|
|
|
76141
75955
|
const ChartColumn = (0,createLucideIcon/* default */.A)(chart_column_iconData);
|
|
76142
75956
|
//# sourceMappingURL=chart-column.mjs.map
|
|
76143
75957
|
|
|
75958
|
+
;// ./components/layout/AgentCardControls.tsx
|
|
75959
|
+
/* __next_internal_client_entry_do_not_use__ AgentCardControls auto */
|
|
75960
|
+
|
|
75961
|
+
|
|
75962
|
+
|
|
75963
|
+
|
|
75964
|
+
|
|
75965
|
+
|
|
75966
|
+
|
|
75967
|
+
const STRATEGIES = [
|
|
75968
|
+
{
|
|
75969
|
+
value: "cost_saving",
|
|
75970
|
+
label: "Economical"
|
|
75971
|
+
},
|
|
75972
|
+
{
|
|
75973
|
+
value: "fast",
|
|
75974
|
+
label: "Fast"
|
|
75975
|
+
},
|
|
75976
|
+
{
|
|
75977
|
+
value: "balanced",
|
|
75978
|
+
label: "Balanced"
|
|
75979
|
+
},
|
|
75980
|
+
{
|
|
75981
|
+
value: "high_reasoning",
|
|
75982
|
+
label: "High reasoning"
|
|
75983
|
+
}
|
|
75984
|
+
];
|
|
75985
|
+
function AgentCardControls({ agent, isFullMode, onUpdate }) {
|
|
75986
|
+
const { items: models, loading, error: modelsError, refresh } = (0,useListState/* useListState */.p)({
|
|
75987
|
+
loader: ()=>client/* api */.FH.models.list(),
|
|
75988
|
+
eventName: "jarela:models-changed",
|
|
75989
|
+
initialLoading: true
|
|
75990
|
+
});
|
|
75991
|
+
const [saving, setSaving] = (0,react.useState)(false);
|
|
75992
|
+
const [pending, setPending] = (0,react.useState)(null);
|
|
75993
|
+
const savingRef = (0,react.useRef)(false);
|
|
75994
|
+
const [error, setError] = (0,react.useState)(null);
|
|
75995
|
+
const [saved, setSaved] = (0,react.useState)(false);
|
|
75996
|
+
const displayedAgent = {
|
|
75997
|
+
...agent,
|
|
75998
|
+
...pending
|
|
75999
|
+
};
|
|
76000
|
+
const selectedModel = models.find((model)=>model.name === displayedAgent.model_config_name);
|
|
76001
|
+
const unavailableOverride = !!displayedAgent.model_config_name && (!selectedModel || !(0,effective_model/* isModelEnabled */.b_)(selectedModel));
|
|
76002
|
+
const enabledModels = models.filter(effective_model/* isModelEnabled */.b_);
|
|
76003
|
+
async function save(patch) {
|
|
76004
|
+
if (savingRef.current) return;
|
|
76005
|
+
savingRef.current = true;
|
|
76006
|
+
setSaving(true);
|
|
76007
|
+
setPending(patch);
|
|
76008
|
+
setError(null);
|
|
76009
|
+
setSaved(false);
|
|
76010
|
+
try {
|
|
76011
|
+
await onUpdate(agent.id, patch);
|
|
76012
|
+
setSaved(true);
|
|
76013
|
+
} catch (cause) {
|
|
76014
|
+
setError((0,utils_error/* errorMessage */.g)(cause));
|
|
76015
|
+
(0,error_report/* pushErrorToast */.uS)({
|
|
76016
|
+
title: "Could not update agent settings",
|
|
76017
|
+
error: cause,
|
|
76018
|
+
context: {
|
|
76019
|
+
panel: "agent-card",
|
|
76020
|
+
action: "agent.update",
|
|
76021
|
+
agent_id: agent.id
|
|
76022
|
+
}
|
|
76023
|
+
});
|
|
76024
|
+
} finally{
|
|
76025
|
+
savingRef.current = false;
|
|
76026
|
+
setPending(null);
|
|
76027
|
+
setSaving(false);
|
|
76028
|
+
}
|
|
76029
|
+
}
|
|
76030
|
+
return /*#__PURE__*/ (0,react_jsx_runtime.jsxs)("fieldset", {
|
|
76031
|
+
"aria-label": "Quick agent settings",
|
|
76032
|
+
disabled: saving,
|
|
76033
|
+
className: "min-w-0 space-y-3 border-t border-border/60 pt-3",
|
|
76034
|
+
children: [
|
|
76035
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("label", {
|
|
76036
|
+
className: "block space-y-1 text-xs text-fg-muted",
|
|
76037
|
+
children: [
|
|
76038
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsx)("span", {
|
|
76039
|
+
children: "Model"
|
|
76040
|
+
}),
|
|
76041
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)(Select/* Select */.l, {
|
|
76042
|
+
size: "sm",
|
|
76043
|
+
className: "min-h-11 min-w-0",
|
|
76044
|
+
value: displayedAgent.model_config_name ?? "",
|
|
76045
|
+
disabled: loading || !!modelsError,
|
|
76046
|
+
onChange: (event)=>void save({
|
|
76047
|
+
model_config_name: event.target.value || null
|
|
76048
|
+
}),
|
|
76049
|
+
children: [
|
|
76050
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsx)("option", {
|
|
76051
|
+
value: "",
|
|
76052
|
+
children: "Automatic routing"
|
|
76053
|
+
}),
|
|
76054
|
+
unavailableOverride && /*#__PURE__*/ (0,react_jsx_runtime.jsxs)("option", {
|
|
76055
|
+
value: displayedAgent.model_config_name ?? "",
|
|
76056
|
+
disabled: true,
|
|
76057
|
+
children: [
|
|
76058
|
+
displayedAgent.model_config_name,
|
|
76059
|
+
" (",
|
|
76060
|
+
selectedModel ? "disabled" : "unavailable",
|
|
76061
|
+
")"
|
|
76062
|
+
]
|
|
76063
|
+
}),
|
|
76064
|
+
enabledModels.map((model)=>/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("option", {
|
|
76065
|
+
value: model.name,
|
|
76066
|
+
children: [
|
|
76067
|
+
model.name,
|
|
76068
|
+
" - ",
|
|
76069
|
+
model.provider,
|
|
76070
|
+
" / ",
|
|
76071
|
+
model.model_id
|
|
76072
|
+
]
|
|
76073
|
+
}, model.name))
|
|
76074
|
+
]
|
|
76075
|
+
})
|
|
76076
|
+
]
|
|
76077
|
+
}),
|
|
76078
|
+
loading ? /*#__PURE__*/ (0,react_jsx_runtime.jsx)("p", {
|
|
76079
|
+
role: "status",
|
|
76080
|
+
className: "text-[11px] text-fg-faint",
|
|
76081
|
+
children: "Loading models..."
|
|
76082
|
+
}) : modelsError ? /*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
76083
|
+
className: "space-y-1 text-xs text-fg-muted",
|
|
76084
|
+
children: [
|
|
76085
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("p", {
|
|
76086
|
+
role: "alert",
|
|
76087
|
+
children: [
|
|
76088
|
+
"Could not load models: ",
|
|
76089
|
+
modelsError
|
|
76090
|
+
]
|
|
76091
|
+
}),
|
|
76092
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsx)("button", {
|
|
76093
|
+
type: "button",
|
|
76094
|
+
onClick: ()=>void refresh(),
|
|
76095
|
+
className: "control-tap min-h-11 underline",
|
|
76096
|
+
children: "Retry loading models"
|
|
76097
|
+
})
|
|
76098
|
+
]
|
|
76099
|
+
}) : /*#__PURE__*/ (0,react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, {
|
|
76100
|
+
children: [
|
|
76101
|
+
unavailableOverride && /*#__PURE__*/ (0,react_jsx_runtime.jsx)("p", {
|
|
76102
|
+
className: "text-[11px] text-amber-700 dark:text-amber-300",
|
|
76103
|
+
children: "The saved model override is unavailable. Automatic routing is used until it is available again."
|
|
76104
|
+
}),
|
|
76105
|
+
enabledModels.length === 0 && /*#__PURE__*/ (0,react_jsx_runtime.jsx)("p", {
|
|
76106
|
+
className: "text-[11px] text-amber-700 dark:text-amber-300",
|
|
76107
|
+
children: "No enabled models. Configure one in Settings before chatting."
|
|
76108
|
+
})
|
|
76109
|
+
]
|
|
76110
|
+
}),
|
|
76111
|
+
isFullMode && /*#__PURE__*/ (0,react_jsx_runtime.jsxs)("label", {
|
|
76112
|
+
className: "block space-y-1 text-xs text-fg-muted",
|
|
76113
|
+
children: [
|
|
76114
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsx)("span", {
|
|
76115
|
+
children: "Usage strategy"
|
|
76116
|
+
}),
|
|
76117
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)(Select/* Select */.l, {
|
|
76118
|
+
size: "sm",
|
|
76119
|
+
className: "min-h-11 min-w-0",
|
|
76120
|
+
value: displayedAgent.usage_strategy ?? "",
|
|
76121
|
+
onChange: (event)=>{
|
|
76122
|
+
const strategy = STRATEGIES.find((item)=>item.value === event.target.value);
|
|
76123
|
+
void save({
|
|
76124
|
+
usage_strategy: strategy?.value ?? null
|
|
76125
|
+
});
|
|
76126
|
+
},
|
|
76127
|
+
children: [
|
|
76128
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsx)("option", {
|
|
76129
|
+
value: "",
|
|
76130
|
+
children: "Inherit global strategy"
|
|
76131
|
+
}),
|
|
76132
|
+
STRATEGIES.map((strategy)=>/*#__PURE__*/ (0,react_jsx_runtime.jsx)("option", {
|
|
76133
|
+
value: strategy.value,
|
|
76134
|
+
children: strategy.label
|
|
76135
|
+
}, strategy.value))
|
|
76136
|
+
]
|
|
76137
|
+
})
|
|
76138
|
+
]
|
|
76139
|
+
}),
|
|
76140
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("label", {
|
|
76141
|
+
className: "control-tap flex min-h-11 cursor-pointer items-center gap-2 text-xs text-fg-muted",
|
|
76142
|
+
children: [
|
|
76143
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsx)("input", {
|
|
76144
|
+
type: "checkbox",
|
|
76145
|
+
className: "rounded border-border",
|
|
76146
|
+
checked: displayedAgent.voice_enabled,
|
|
76147
|
+
onChange: (event)=>void save({
|
|
76148
|
+
voice_enabled: event.target.checked
|
|
76149
|
+
})
|
|
76150
|
+
}),
|
|
76151
|
+
"Enable voice"
|
|
76152
|
+
]
|
|
76153
|
+
}),
|
|
76154
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsx)("p", {
|
|
76155
|
+
className: "text-[11px] leading-relaxed text-fg-faint",
|
|
76156
|
+
children: "Voice requires a configured Google AI integration for Gemini speech services."
|
|
76157
|
+
}),
|
|
76158
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsx)("p", {
|
|
76159
|
+
className: "text-[11px] leading-relaxed text-fg-faint",
|
|
76160
|
+
children: "Saves for this agent across conversations. Model and strategy changes apply to new runs; they do not restart a running reply."
|
|
76161
|
+
}),
|
|
76162
|
+
saving && /*#__PURE__*/ (0,react_jsx_runtime.jsx)("p", {
|
|
76163
|
+
role: "status",
|
|
76164
|
+
className: "text-xs text-fg-muted",
|
|
76165
|
+
children: "Saving agent settings..."
|
|
76166
|
+
}),
|
|
76167
|
+
error && /*#__PURE__*/ (0,react_jsx_runtime.jsxs)("p", {
|
|
76168
|
+
role: "alert",
|
|
76169
|
+
className: "break-words text-xs text-fg-muted",
|
|
76170
|
+
children: [
|
|
76171
|
+
"Could not save settings: ",
|
|
76172
|
+
error
|
|
76173
|
+
]
|
|
76174
|
+
}),
|
|
76175
|
+
!saving && saved && /*#__PURE__*/ (0,react_jsx_runtime.jsx)("p", {
|
|
76176
|
+
role: "status",
|
|
76177
|
+
className: "text-xs text-fg-muted",
|
|
76178
|
+
children: "Agent settings saved."
|
|
76179
|
+
})
|
|
76180
|
+
]
|
|
76181
|
+
});
|
|
76182
|
+
}
|
|
76183
|
+
|
|
76144
76184
|
;// ./components/layout/MenuPanel.tsx
|
|
76145
76185
|
/* __next_internal_client_entry_do_not_use__ MenuPanel auto */
|
|
76146
76186
|
|
|
76147
76187
|
|
|
76148
76188
|
|
|
76149
76189
|
|
|
76190
|
+
|
|
76191
|
+
|
|
76192
|
+
|
|
76193
|
+
|
|
76150
76194
|
const WORKSPACE = [
|
|
76151
76195
|
{
|
|
76152
76196
|
tab: "agents",
|
|
@@ -76198,10 +76242,49 @@ const ADVANCED = [
|
|
|
76198
76242
|
icon: wrench/* default */.A
|
|
76199
76243
|
}
|
|
76200
76244
|
];
|
|
76201
|
-
|
|
76245
|
+
const MenuPanel_MD_REMARK_PLUGINS = [
|
|
76246
|
+
remark_gfm_lib/* default */.A
|
|
76247
|
+
];
|
|
76248
|
+
const DESKTOP_QUERY = "(min-width: 80rem)";
|
|
76249
|
+
function subscribeDesktop(onChange) {
|
|
76250
|
+
const media = window.matchMedia(DESKTOP_QUERY);
|
|
76251
|
+
media.addEventListener("change", onChange);
|
|
76252
|
+
return ()=>media.removeEventListener("change", onChange);
|
|
76253
|
+
}
|
|
76254
|
+
function desktopSnapshot() {
|
|
76255
|
+
return window.matchMedia(DESKTOP_QUERY).matches;
|
|
76256
|
+
}
|
|
76257
|
+
function serverDesktopSnapshot() {
|
|
76258
|
+
return false;
|
|
76259
|
+
}
|
|
76260
|
+
function AgentMarkdown({ children }) {
|
|
76261
|
+
return /*#__PURE__*/ (0,react_jsx_runtime.jsx)("div", {
|
|
76262
|
+
className: "jarela-rich prose-invert min-w-0 break-words text-xs leading-relaxed text-fg-muted [&_ul]:list-disc [&_ul]:pl-4 [&_ol]:list-decimal [&_ol]:pl-4 [&_pre]:p-2 [&_blockquote]:border-l-2 [&_blockquote]:border-border [&_blockquote]:pl-3 [&_th]:px-2 [&_td]:px-2",
|
|
76263
|
+
children: /*#__PURE__*/ (0,react_jsx_runtime.jsx)(lib/* Markdown */.oz, {
|
|
76264
|
+
remarkPlugins: MenuPanel_MD_REMARK_PLUGINS,
|
|
76265
|
+
skipHtml: true,
|
|
76266
|
+
components: {
|
|
76267
|
+
a: ({ href, children })=>/*#__PURE__*/ (0,react_jsx_runtime.jsx)("a", {
|
|
76268
|
+
href: href,
|
|
76269
|
+
target: "_blank",
|
|
76270
|
+
rel: "noopener noreferrer",
|
|
76271
|
+
children: children
|
|
76272
|
+
}),
|
|
76273
|
+
// Descriptions must not load remote images, including in the hidden mobile card.
|
|
76274
|
+
img: ({ alt })=>/*#__PURE__*/ (0,react_jsx_runtime.jsx)("span", {
|
|
76275
|
+
className: "italic text-fg-faint",
|
|
76276
|
+
children: alt
|
|
76277
|
+
})
|
|
76278
|
+
},
|
|
76279
|
+
children: children
|
|
76280
|
+
})
|
|
76281
|
+
});
|
|
76282
|
+
}
|
|
76283
|
+
function MenuPanel({ activeTab, open = true, onClose, onSetTab, activeAgent, agentsLoading = false, agentsError, onUpdateAgent }) {
|
|
76202
76284
|
const { state } = (0,AppContext/* useAppContext */.Us)();
|
|
76203
76285
|
const isFullMode = state.experienceMode === "full";
|
|
76204
76286
|
const attention = useSettingsAttention();
|
|
76287
|
+
const isDesktop = (0,react.useSyncExternalStore)(subscribeDesktop, desktopSnapshot, serverDesktopSnapshot);
|
|
76205
76288
|
const renderItem = ({ tab, label, description, icon: Icon })=>{
|
|
76206
76289
|
const needsAttention = tab === "settings" && attention.any;
|
|
76207
76290
|
const reasons = [
|
|
@@ -76256,13 +76339,112 @@ function MenuPanel({ activeTab, open = true, onClose, onSetTab }) {
|
|
|
76256
76339
|
return /*#__PURE__*/ (0,react_jsx_runtime.jsx)("nav", {
|
|
76257
76340
|
id: "main-navigation",
|
|
76258
76341
|
"aria-label": "Main navigation",
|
|
76259
|
-
className: `glass-elevated fixed right-0 bottom-0 w-full sm:w-[26rem] xl:w-
|
|
76342
|
+
className: `glass-elevated fixed right-0 bottom-0 w-full sm:w-[26rem] xl:w-[var(--workspace-navigation-width)] max-w-full border-l border-border/60 z-[60] ${open ? "flex" : "hidden xl:flex"} flex-col pb-safe`,
|
|
76260
76343
|
style: {
|
|
76261
76344
|
top: "calc(3rem + var(--app-safe-top))"
|
|
76262
76345
|
},
|
|
76263
76346
|
children: /*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
76264
76347
|
className: "min-h-0 flex-1 overflow-y-auto overscroll-contain panel-scrollbar px-3 py-3 space-y-4",
|
|
76265
76348
|
children: [
|
|
76349
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("section", {
|
|
76350
|
+
"aria-labelledby": "menu-selected-agent",
|
|
76351
|
+
className: "hidden rounded-2xl border border-border/60 bg-surface-2/50 p-3 xl:block",
|
|
76352
|
+
children: [
|
|
76353
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsx)("h2", {
|
|
76354
|
+
id: "menu-selected-agent",
|
|
76355
|
+
className: "pb-3 text-[11px] font-semibold uppercase tracking-wide text-fg-faint",
|
|
76356
|
+
children: "Selected agent"
|
|
76357
|
+
}),
|
|
76358
|
+
agentsError ? /*#__PURE__*/ (0,react_jsx_runtime.jsxs)("p", {
|
|
76359
|
+
className: "text-xs text-fg-muted",
|
|
76360
|
+
role: "status",
|
|
76361
|
+
children: [
|
|
76362
|
+
"Could not load agent details: ",
|
|
76363
|
+
agentsError
|
|
76364
|
+
]
|
|
76365
|
+
}) : agentsLoading && !activeAgent ? /*#__PURE__*/ (0,react_jsx_runtime.jsx)("p", {
|
|
76366
|
+
className: "text-xs text-fg-faint",
|
|
76367
|
+
role: "status",
|
|
76368
|
+
children: "Loading agent details..."
|
|
76369
|
+
}) : activeAgent ? /*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
76370
|
+
className: "min-w-0 space-y-3",
|
|
76371
|
+
children: [
|
|
76372
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
76373
|
+
className: "flex min-w-0 items-center gap-3",
|
|
76374
|
+
children: [
|
|
76375
|
+
activeAgent.icon ? // eslint-disable-next-line @next/next/no-img-element
|
|
76376
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsx)("img", {
|
|
76377
|
+
src: activeAgent.icon,
|
|
76378
|
+
alt: "",
|
|
76379
|
+
className: "h-12 w-12 shrink-0 rounded-xl object-cover"
|
|
76380
|
+
}) : /*#__PURE__*/ (0,react_jsx_runtime.jsx)("span", {
|
|
76381
|
+
"aria-hidden": "true",
|
|
76382
|
+
className: "flex h-12 w-12 shrink-0 items-center justify-center rounded-xl bg-accent/15 text-lg font-semibold text-accent",
|
|
76383
|
+
children: activeAgent.name.charAt(0).toUpperCase()
|
|
76384
|
+
}),
|
|
76385
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsx)("h3", {
|
|
76386
|
+
className: "min-w-0 break-words text-sm font-semibold",
|
|
76387
|
+
children: activeAgent.name
|
|
76388
|
+
})
|
|
76389
|
+
]
|
|
76390
|
+
}),
|
|
76391
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
76392
|
+
role: "region",
|
|
76393
|
+
"aria-label": "Agent description",
|
|
76394
|
+
tabIndex: 0,
|
|
76395
|
+
className: "panel-scrollbar max-h-64 min-w-0 space-y-4 overflow-y-auto overscroll-contain rounded-lg focus-visible:outline-2 focus-visible:outline-accent",
|
|
76396
|
+
children: [
|
|
76397
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
76398
|
+
children: [
|
|
76399
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsx)("h4", {
|
|
76400
|
+
className: "mb-1 text-[11px] font-semibold text-fg-faint",
|
|
76401
|
+
children: "Identity"
|
|
76402
|
+
}),
|
|
76403
|
+
activeAgent.identity.trim() ? /*#__PURE__*/ (0,react_jsx_runtime.jsx)(AgentMarkdown, {
|
|
76404
|
+
children: activeAgent.identity
|
|
76405
|
+
}) : /*#__PURE__*/ (0,react_jsx_runtime.jsx)("p", {
|
|
76406
|
+
className: "text-xs text-fg-faint",
|
|
76407
|
+
children: "No identity set."
|
|
76408
|
+
})
|
|
76409
|
+
]
|
|
76410
|
+
}),
|
|
76411
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
76412
|
+
children: [
|
|
76413
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsx)("h4", {
|
|
76414
|
+
className: "mb-1 text-[11px] font-semibold text-fg-faint",
|
|
76415
|
+
children: "Instructions"
|
|
76416
|
+
}),
|
|
76417
|
+
activeAgent.instructions.trim() ? /*#__PURE__*/ (0,react_jsx_runtime.jsx)(AgentMarkdown, {
|
|
76418
|
+
children: activeAgent.instructions
|
|
76419
|
+
}) : /*#__PURE__*/ (0,react_jsx_runtime.jsx)("p", {
|
|
76420
|
+
className: "text-xs text-fg-faint",
|
|
76421
|
+
children: "No instructions set."
|
|
76422
|
+
})
|
|
76423
|
+
]
|
|
76424
|
+
})
|
|
76425
|
+
]
|
|
76426
|
+
}),
|
|
76427
|
+
isDesktop && onUpdateAgent && /*#__PURE__*/ (0,react_jsx_runtime.jsx)(AgentCardControls, {
|
|
76428
|
+
agent: activeAgent,
|
|
76429
|
+
isFullMode: isFullMode,
|
|
76430
|
+
onUpdate: onUpdateAgent
|
|
76431
|
+
}),
|
|
76432
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsx)("button", {
|
|
76433
|
+
type: "button",
|
|
76434
|
+
onClick: ()=>{
|
|
76435
|
+
onSetTab("agents");
|
|
76436
|
+
onClose();
|
|
76437
|
+
},
|
|
76438
|
+
className: "control-tap min-h-11 w-full rounded-xl border border-border/60 px-3 py-2 text-left text-xs text-fg-muted hover:bg-surface-3/60 focus-visible:outline-2 focus-visible:outline-accent",
|
|
76439
|
+
children: "Manage agents"
|
|
76440
|
+
})
|
|
76441
|
+
]
|
|
76442
|
+
}) : /*#__PURE__*/ (0,react_jsx_runtime.jsx)("p", {
|
|
76443
|
+
className: "text-xs text-fg-faint",
|
|
76444
|
+
children: "Select an agent to see its details."
|
|
76445
|
+
})
|
|
76446
|
+
]
|
|
76447
|
+
}, activeAgent?.id),
|
|
76266
76448
|
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("section", {
|
|
76267
76449
|
"aria-labelledby": "menu-workspace",
|
|
76268
76450
|
children: [
|
|
@@ -76885,11 +77067,43 @@ function InsightChip({ label, value, hint, icon }) {
|
|
|
76885
77067
|
});
|
|
76886
77068
|
}
|
|
76887
77069
|
|
|
77070
|
+
;// ./components/dashboard/CostBreakdown.tsx
|
|
77071
|
+
|
|
77072
|
+
|
|
77073
|
+
function CostBreakdown({ costs, currencyInfo }) {
|
|
77074
|
+
return /*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
77075
|
+
className: "flex flex-wrap gap-x-3 gap-y-1 text-[11px] tabular-nums text-[var(--text-secondary)]",
|
|
77076
|
+
children: [
|
|
77077
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("span", {
|
|
77078
|
+
title: "Input cost includes prompt-cache read and write charges.",
|
|
77079
|
+
children: [
|
|
77080
|
+
"Input cost: ",
|
|
77081
|
+
formatMoney(costs.input_cost_usd, currencyInfo)
|
|
77082
|
+
]
|
|
77083
|
+
}),
|
|
77084
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("span", {
|
|
77085
|
+
children: [
|
|
77086
|
+
"Output cost: ",
|
|
77087
|
+
formatMoney(costs.output_cost_usd, currencyInfo)
|
|
77088
|
+
]
|
|
77089
|
+
}),
|
|
77090
|
+
costs.unattributed_cost_usd !== 0 ? /*#__PURE__*/ (0,react_jsx_runtime.jsxs)("span", {
|
|
77091
|
+
title: "Recorded cost retained because matching rates are unavailable; the input/output split is unknown.",
|
|
77092
|
+
children: [
|
|
77093
|
+
"Unattributed cost: ",
|
|
77094
|
+
formatMoney(costs.unattributed_cost_usd, currencyInfo)
|
|
77095
|
+
]
|
|
77096
|
+
}) : null
|
|
77097
|
+
]
|
|
77098
|
+
});
|
|
77099
|
+
}
|
|
77100
|
+
|
|
76888
77101
|
;// ./components/dashboard/SummaryCards.tsx
|
|
76889
77102
|
/* __next_internal_client_entry_do_not_use__ SummaryStrip,MetricCardsGrid auto */
|
|
76890
77103
|
|
|
76891
77104
|
|
|
76892
77105
|
|
|
77106
|
+
|
|
76893
77107
|
function SummaryStrip({ data, currencyInfo, windowTokenTotal, activeDays, avgDailyTokens, avgDailyCostUsd }) {
|
|
76894
77108
|
const cacheHitPct = (data.summary.cache_hit_rate * 100).toFixed(1);
|
|
76895
77109
|
const hasCacheStats = data.summary.cache_read_tokens > 0;
|
|
@@ -76929,43 +77143,61 @@ function SummaryStrip({ data, currencyInfo, windowTokenTotal, activeDays, avgDai
|
|
|
76929
77143
|
}
|
|
76930
77144
|
function MetricCardsGrid({ effectiveSummary, currencyInfo, selectedDay }) {
|
|
76931
77145
|
return /*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
76932
|
-
className: "
|
|
77146
|
+
className: "space-y-2",
|
|
76933
77147
|
children: [
|
|
76934
|
-
/*#__PURE__*/ (0,react_jsx_runtime.
|
|
76935
|
-
|
|
76936
|
-
|
|
76937
|
-
|
|
76938
|
-
|
|
76939
|
-
|
|
76940
|
-
|
|
76941
|
-
|
|
76942
|
-
|
|
76943
|
-
|
|
76944
|
-
|
|
76945
|
-
|
|
76946
|
-
|
|
76947
|
-
|
|
76948
|
-
|
|
76949
|
-
|
|
76950
|
-
|
|
76951
|
-
|
|
76952
|
-
|
|
76953
|
-
|
|
76954
|
-
|
|
76955
|
-
|
|
76956
|
-
|
|
76957
|
-
|
|
76958
|
-
|
|
76959
|
-
|
|
76960
|
-
|
|
77148
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
77149
|
+
className: "grid grid-cols-2 lg:grid-cols-5 gap-3",
|
|
77150
|
+
children: [
|
|
77151
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsx)(MetricCard, {
|
|
77152
|
+
label: selectedDay ? `Input tokens on ${selectedDay}` : "Input tokens (est)",
|
|
77153
|
+
value: formatInt(effectiveSummary?.input_tokens_est ?? 0),
|
|
77154
|
+
icon: /*#__PURE__*/ (0,react_jsx_runtime.jsx)(ChartColumn, {
|
|
77155
|
+
size: 15
|
|
77156
|
+
})
|
|
77157
|
+
}),
|
|
77158
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsx)(MetricCard, {
|
|
77159
|
+
label: selectedDay ? `Output tokens on ${selectedDay}` : "Output tokens (est)",
|
|
77160
|
+
value: formatInt(effectiveSummary?.output_tokens_est ?? 0),
|
|
77161
|
+
icon: /*#__PURE__*/ (0,react_jsx_runtime.jsx)(TrendingUp, {
|
|
77162
|
+
size: 15
|
|
77163
|
+
})
|
|
77164
|
+
}),
|
|
77165
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsx)(MetricCard, {
|
|
77166
|
+
label: selectedDay ? `Cost on ${selectedDay} (${currencyInfo.currency})` : `Estimated cost (${currencyInfo.currency})`,
|
|
77167
|
+
value: formatMoney(effectiveSummary?.estimated_cost_usd ?? 0, currencyInfo),
|
|
77168
|
+
icon: /*#__PURE__*/ (0,react_jsx_runtime.jsx)(Coins, {
|
|
77169
|
+
size: 15
|
|
77170
|
+
})
|
|
77171
|
+
}),
|
|
77172
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsx)(MetricCard, {
|
|
77173
|
+
label: "Tool success rate",
|
|
77174
|
+
value: `${((effectiveSummary?.success_rate ?? 1) * 100).toFixed(1)}%`,
|
|
77175
|
+
icon: /*#__PURE__*/ (0,react_jsx_runtime.jsx)(shield_check/* default */.A, {
|
|
77176
|
+
size: 15
|
|
77177
|
+
})
|
|
77178
|
+
}),
|
|
77179
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsx)(MetricCard, {
|
|
77180
|
+
label: "Tool error rate",
|
|
77181
|
+
value: `${((effectiveSummary?.error_rate ?? 0) * 100).toFixed(1)}%`,
|
|
77182
|
+
icon: /*#__PURE__*/ (0,react_jsx_runtime.jsx)(Activity, {
|
|
77183
|
+
size: 15
|
|
77184
|
+
})
|
|
77185
|
+
})
|
|
77186
|
+
]
|
|
76961
77187
|
}),
|
|
76962
|
-
/*#__PURE__*/ (0,react_jsx_runtime.
|
|
76963
|
-
|
|
76964
|
-
|
|
76965
|
-
|
|
76966
|
-
|
|
76967
|
-
|
|
76968
|
-
|
|
77188
|
+
effectiveSummary ? /*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
77189
|
+
className: "rounded-xl bg-[var(--bg-secondary)]/70 px-3 py-2",
|
|
77190
|
+
children: [
|
|
77191
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsx)(CostBreakdown, {
|
|
77192
|
+
costs: effectiveSummary.cost_breakdown,
|
|
77193
|
+
currencyInfo: currencyInfo
|
|
77194
|
+
}),
|
|
77195
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsx)("p", {
|
|
77196
|
+
className: "mt-1 text-[10px] text-[var(--text-secondary)]",
|
|
77197
|
+
children: "Input includes prompt-cache charges. Costs use each model's separate input and output rates."
|
|
77198
|
+
})
|
|
77199
|
+
]
|
|
77200
|
+
}) : null
|
|
76969
77201
|
]
|
|
76970
77202
|
});
|
|
76971
77203
|
}
|
|
@@ -76994,6 +77226,7 @@ function useReducedMotion() {
|
|
|
76994
77226
|
|
|
76995
77227
|
|
|
76996
77228
|
|
|
77229
|
+
|
|
76997
77230
|
function InteractiveTokenChart({ series, selectedDay, onSelectDay }) {
|
|
76998
77231
|
const [hovered, setHovered] = (0,react.useState)(null);
|
|
76999
77232
|
const [barsReady, setBarsReady] = (0,react.useState)(false);
|
|
@@ -77273,6 +77506,7 @@ function InteractiveCostChart({ series, currencyInfo, selectedDay, onSelectDay }
|
|
|
77273
77506
|
const active = hovered != null ? points[hovered] : null;
|
|
77274
77507
|
const selectedIdx = selectedDay ? points.findIndex((pt)=>pt.p.day === selectedDay) : -1;
|
|
77275
77508
|
const selected = selectedIdx >= 0 ? points[selectedIdx] : null;
|
|
77509
|
+
const detailPoint = active ?? selected;
|
|
77276
77510
|
const animationSignature = series.map((s)=>`${s.day}:${s.estimated_cost_usd}`).join("|");
|
|
77277
77511
|
process.env.__NEXT_PRIVATE_MINIMIZE_MACRO_FALSE && (0,react.useEffect)(()=>{
|
|
77278
77512
|
setLineAnimCycle((v)=>v + 1);
|
|
@@ -77401,7 +77635,11 @@ function InteractiveCostChart({ series, currencyInfo, selectedDay, onSelectDay }
|
|
|
77401
77635
|
]
|
|
77402
77636
|
})
|
|
77403
77637
|
]
|
|
77404
|
-
})
|
|
77638
|
+
}),
|
|
77639
|
+
detailPoint ? /*#__PURE__*/ (0,react_jsx_runtime.jsx)(CostBreakdown, {
|
|
77640
|
+
costs: detailPoint.p.cost_breakdown,
|
|
77641
|
+
currencyInfo: currencyInfo
|
|
77642
|
+
}) : null
|
|
77405
77643
|
]
|
|
77406
77644
|
});
|
|
77407
77645
|
}
|
|
@@ -77655,6 +77893,7 @@ function arcPath(cx, cy, r, startAngle, endAngle) {
|
|
|
77655
77893
|
|
|
77656
77894
|
|
|
77657
77895
|
|
|
77896
|
+
|
|
77658
77897
|
function SharedDonutChart({ ariaLabel, size, centerAmount, slices, hovered, onHoverChange }) {
|
|
77659
77898
|
const uid = (0,react.useId)().replace(/:/g, "");
|
|
77660
77899
|
const reducedMotion = useReducedMotion();
|
|
@@ -77905,6 +78144,10 @@ function AgentCostPie({ agents, currencyInfo }) {
|
|
|
77905
78144
|
formatInt(slice.agent.input_tokens_est + slice.agent.output_tokens_est),
|
|
77906
78145
|
" tokens"
|
|
77907
78146
|
]
|
|
78147
|
+
}),
|
|
78148
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsx)(CostBreakdown, {
|
|
78149
|
+
costs: slice.agent.cost_breakdown,
|
|
78150
|
+
currencyInfo: currencyInfo
|
|
77908
78151
|
})
|
|
77909
78152
|
]
|
|
77910
78153
|
}, slice.agent.agent_id))
|
|
@@ -78012,6 +78255,10 @@ function BreakdownPiePanel({ title, items, currencyInfo, emptyLabel }) {
|
|
|
78012
78255
|
"% \xb7 ",
|
|
78013
78256
|
slice.detail
|
|
78014
78257
|
]
|
|
78258
|
+
}),
|
|
78259
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsx)(CostBreakdown, {
|
|
78260
|
+
costs: slice.costs,
|
|
78261
|
+
currencyInfo: currencyInfo
|
|
78015
78262
|
})
|
|
78016
78263
|
]
|
|
78017
78264
|
}, slice.id))
|
|
@@ -78170,6 +78417,7 @@ function VendorModelReportSection({ effectiveByProvider, effectiveByModel, selec
|
|
|
78170
78417
|
id: row.provider,
|
|
78171
78418
|
label: row.provider,
|
|
78172
78419
|
cost: row.estimated_cost_usd,
|
|
78420
|
+
costs: row.cost_breakdown,
|
|
78173
78421
|
detail: `${formatInt(row.message_count)} msgs · ${formatInt(row.input_tokens_est + row.output_tokens_est)} tokens`
|
|
78174
78422
|
})),
|
|
78175
78423
|
currencyInfo: currencyInfo
|
|
@@ -78181,6 +78429,7 @@ function VendorModelReportSection({ effectiveByProvider, effectiveByModel, selec
|
|
|
78181
78429
|
id: `${row.provider}:${row.model_config_name}:${row.model_id}`,
|
|
78182
78430
|
label: row.model_config_name,
|
|
78183
78431
|
cost: row.estimated_cost_usd,
|
|
78432
|
+
costs: row.cost_breakdown,
|
|
78184
78433
|
detail: `${row.provider}/${row.model_id} · ${formatInt(row.message_count)} msgs`
|
|
78185
78434
|
})),
|
|
78186
78435
|
currencyInfo: currencyInfo
|
|
@@ -78198,20 +78447,20 @@ function VendorModelReportSection({ effectiveByProvider, effectiveByModel, selec
|
|
|
78198
78447
|
|
|
78199
78448
|
|
|
78200
78449
|
|
|
78201
|
-
function ModelPricingSection({
|
|
78202
|
-
const filtered = sortModelRates(filterModelRates(
|
|
78450
|
+
function ModelPricingSection({ pricing, modelVendorFilter, onVendorFilterChange, modelFunctionFilter, onFunctionFilterChange, modelSearch, onSearchChange, modelSort, onSortChange, currencyInfo }) {
|
|
78451
|
+
const filtered = sortModelRates(filterModelRates(pricing.model_rates, {
|
|
78203
78452
|
vendor: modelVendorFilter,
|
|
78204
78453
|
functionality: modelFunctionFilter,
|
|
78205
78454
|
search: modelSearch
|
|
78206
78455
|
}), modelSort);
|
|
78207
78456
|
const grouped = groupModelRatesByVendor(filtered);
|
|
78208
78457
|
const vendors = [
|
|
78209
|
-
...new Set(
|
|
78458
|
+
...new Set(pricing.model_rates.map((r)=>r.provider))
|
|
78210
78459
|
].sort();
|
|
78211
78460
|
const functionalities = [
|
|
78212
|
-
...new Set(
|
|
78461
|
+
...new Set(pricing.model_rates.map((r)=>detectModelFunctionality(r.model_id)))
|
|
78213
78462
|
].sort();
|
|
78214
|
-
const aggregatorRates =
|
|
78463
|
+
const aggregatorRates = pricing.aggregator_model_rates.filter((row)=>modelVendorFilter === "all" || row.provider === modelVendorFilter).filter((row)=>modelFunctionFilter === "all" || detectModelFunctionality(row.model_id) === modelFunctionFilter).filter((row)=>!modelSearch.trim() || `${row.provider} ${row.model_id} ${row.aggregator_model_id}`.toLowerCase().includes(modelSearch.trim().toLowerCase()));
|
|
78215
78464
|
return /*#__PURE__*/ (0,react_jsx_runtime.jsxs)("section", {
|
|
78216
78465
|
className: "rounded-2xl border border-[var(--border)] bg-[var(--bg-secondary)]/90 p-4 space-y-2 shadow-sm",
|
|
78217
78466
|
children: [
|
|
@@ -78223,7 +78472,7 @@ function ModelPricingSection({ data, modelVendorFilter, onVendorFilterChange, mo
|
|
|
78223
78472
|
className: "text-xs text-[var(--text-secondary)]",
|
|
78224
78473
|
children: [
|
|
78225
78474
|
"Snapshot: ",
|
|
78226
|
-
|
|
78475
|
+
pricing.snapshot_generated_at ?? "not found"
|
|
78227
78476
|
]
|
|
78228
78477
|
}),
|
|
78229
78478
|
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
@@ -78233,6 +78482,14 @@ function ModelPricingSection({ data, modelVendorFilter, onVendorFilterChange, mo
|
|
|
78233
78482
|
className: "px-3 py-2 text-xs font-medium text-[var(--text-primary)]",
|
|
78234
78483
|
children: "Model pricing (detected)"
|
|
78235
78484
|
}),
|
|
78485
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("p", {
|
|
78486
|
+
className: "px-3 pb-2 text-[11px] text-[var(--text-secondary)]",
|
|
78487
|
+
children: [
|
|
78488
|
+
"Separate input and output prices per 1 million tokens (",
|
|
78489
|
+
currencyInfo.currency,
|
|
78490
|
+
"). Usage costs apply each rate separately."
|
|
78491
|
+
]
|
|
78492
|
+
}),
|
|
78236
78493
|
/*#__PURE__*/ (0,react_jsx_runtime.jsx)("div", {
|
|
78237
78494
|
className: "px-3 pb-2",
|
|
78238
78495
|
children: /*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
@@ -78344,7 +78601,7 @@ function ModelPricingSection({ data, modelVendorFilter, onVendorFilterChange, mo
|
|
|
78344
78601
|
}),
|
|
78345
78602
|
/*#__PURE__*/ (0,react_jsx_runtime.jsx)("div", {
|
|
78346
78603
|
className: "flex flex-wrap gap-1.5 px-3 py-2",
|
|
78347
|
-
children:
|
|
78604
|
+
children: pricing.aggregator_sources.map((source)=>/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("span", {
|
|
78348
78605
|
title: source.error ?? (source.ok ? `Last checked ${source.fetched_at}` : `Last successful fetch ${source.last_successful_at ?? "never"}`),
|
|
78349
78606
|
className: `rounded-full px-2 py-0.5 text-[10px] ${source.ok ? "bg-emerald-500/15 text-emerald-700 dark:text-emerald-300" : "bg-amber-500/15 text-amber-700 dark:text-amber-300"}`,
|
|
78350
78607
|
children: [
|
|
@@ -78361,7 +78618,7 @@ function ModelPricingSection({ data, modelVendorFilter, onVendorFilterChange, mo
|
|
|
78361
78618
|
className: "px-3 pb-3 text-xs text-[var(--text-secondary)]",
|
|
78362
78619
|
children: "No comparable aggregator rates for these filters."
|
|
78363
78620
|
}) : aggregatorRates.slice(0, 100).map((row)=>{
|
|
78364
|
-
const direct =
|
|
78621
|
+
const direct = pricing.model_rates.find((rate)=>rate.provider === row.provider && rate.model_id === row.model_id);
|
|
78365
78622
|
const inputDelta = priceDelta(row.input_per_1m_usd, direct?.input_per_1m_usd ?? null);
|
|
78366
78623
|
const outputDelta = priceDelta(row.output_per_1m_usd, direct?.output_per_1m_usd ?? null);
|
|
78367
78624
|
return /*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
@@ -78379,14 +78636,22 @@ function ModelPricingSection({ data, modelVendorFilter, onVendorFilterChange, mo
|
|
|
78379
78636
|
]
|
|
78380
78637
|
}),
|
|
78381
78638
|
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("span", {
|
|
78382
|
-
className: "text-[
|
|
78639
|
+
className: "flex flex-wrap gap-x-3 text-[11px] tabular-nums text-[var(--text-secondary)]",
|
|
78383
78640
|
children: [
|
|
78384
|
-
|
|
78385
|
-
|
|
78386
|
-
|
|
78387
|
-
|
|
78388
|
-
|
|
78389
|
-
|
|
78641
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("span", {
|
|
78642
|
+
children: [
|
|
78643
|
+
"Input: ",
|
|
78644
|
+
row.input_per_1m_usd == null ? "n/a" : formatMoney(row.input_per_1m_usd, currencyInfo),
|
|
78645
|
+
" / 1M tokens"
|
|
78646
|
+
]
|
|
78647
|
+
}),
|
|
78648
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("span", {
|
|
78649
|
+
children: [
|
|
78650
|
+
"Output: ",
|
|
78651
|
+
row.output_per_1m_usd == null ? "n/a" : formatMoney(row.output_per_1m_usd, currencyInfo),
|
|
78652
|
+
" / 1M tokens"
|
|
78653
|
+
]
|
|
78654
|
+
})
|
|
78390
78655
|
]
|
|
78391
78656
|
})
|
|
78392
78657
|
]
|
|
@@ -78403,9 +78668,9 @@ function ModelPricingSection({ data, modelVendorFilter, onVendorFilterChange, mo
|
|
|
78403
78668
|
}),
|
|
78404
78669
|
inputDelta || outputDelta ? /*#__PURE__*/ (0,react_jsx_runtime.jsxs)("span", {
|
|
78405
78670
|
children: [
|
|
78406
|
-
"vs direct:
|
|
78671
|
+
"vs direct: input ",
|
|
78407
78672
|
inputDelta ?? "n/a",
|
|
78408
|
-
",
|
|
78673
|
+
", output ",
|
|
78409
78674
|
outputDelta ?? "n/a"
|
|
78410
78675
|
]
|
|
78411
78676
|
}) : null,
|
|
@@ -78442,7 +78707,7 @@ function ModelPricingSection({ data, modelVendorFilter, onVendorFilterChange, mo
|
|
|
78442
78707
|
}),
|
|
78443
78708
|
/*#__PURE__*/ (0,react_jsx_runtime.jsx)("p", {
|
|
78444
78709
|
className: "text-[11px] text-[var(--text-secondary)]",
|
|
78445
|
-
children:
|
|
78710
|
+
children: pricing.notes
|
|
78446
78711
|
})
|
|
78447
78712
|
]
|
|
78448
78713
|
});
|
|
@@ -78496,30 +78761,34 @@ function ModelPricingRow({ row, currencyInfo }) {
|
|
|
78496
78761
|
className: "px-3 py-2 border-t border-[var(--border)]/40 hover:bg-[var(--bg-primary)]/35 transition-colors",
|
|
78497
78762
|
children: [
|
|
78498
78763
|
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
78499
|
-
className: "flex items-center justify-between gap-2",
|
|
78764
|
+
className: "flex flex-wrap items-center justify-between gap-2",
|
|
78500
78765
|
children: [
|
|
78501
78766
|
/*#__PURE__*/ (0,react_jsx_runtime.jsx)("span", {
|
|
78502
|
-
className: "text-sm text-[var(--text-primary)]
|
|
78767
|
+
className: "min-w-0 break-all text-sm text-[var(--text-primary)]",
|
|
78503
78768
|
children: row.model_id
|
|
78504
78769
|
}),
|
|
78505
|
-
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("
|
|
78506
|
-
className: "text-
|
|
78507
|
-
title: "Per 1M tokens",
|
|
78770
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
78771
|
+
className: "flex flex-wrap gap-x-3 gap-y-1 text-xs tabular-nums text-[var(--text-secondary)]",
|
|
78508
78772
|
children: [
|
|
78509
|
-
|
|
78510
|
-
|
|
78511
|
-
|
|
78512
|
-
|
|
78513
|
-
|
|
78514
|
-
|
|
78515
|
-
|
|
78516
|
-
|
|
78517
|
-
|
|
78518
|
-
children: outputLabel
|
|
78773
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("span", {
|
|
78774
|
+
children: [
|
|
78775
|
+
"Input: ",
|
|
78776
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsx)("span", {
|
|
78777
|
+
className: "text-[var(--text-primary)]",
|
|
78778
|
+
children: inputLabel
|
|
78779
|
+
}),
|
|
78780
|
+
" / 1M tokens"
|
|
78781
|
+
]
|
|
78519
78782
|
}),
|
|
78520
|
-
/*#__PURE__*/ (0,react_jsx_runtime.
|
|
78521
|
-
|
|
78522
|
-
|
|
78783
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("span", {
|
|
78784
|
+
children: [
|
|
78785
|
+
"Output: ",
|
|
78786
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsx)("span", {
|
|
78787
|
+
className: "text-[var(--text-primary)]",
|
|
78788
|
+
children: outputLabel
|
|
78789
|
+
}),
|
|
78790
|
+
" / 1M tokens"
|
|
78791
|
+
]
|
|
78523
78792
|
})
|
|
78524
78793
|
]
|
|
78525
78794
|
})
|
|
@@ -78814,9 +79083,9 @@ function DashboardPanel() {
|
|
|
78814
79083
|
const avgDailyCostUsd = data ? data.summary.estimated_cost_usd / Math.max(data.days, 1) : 0;
|
|
78815
79084
|
const toggleDay = (day)=>setSelectedDay((prev)=>prev === day ? null : day);
|
|
78816
79085
|
return /*#__PURE__*/ (0,react_jsx_runtime.jsx)("div", {
|
|
78817
|
-
className: "relative h-full overflow-y-auto
|
|
79086
|
+
className: "workspace-gutter relative h-full overflow-y-auto py-4 md:py-6 space-y-4 [--bg-primary:var(--color-surface)] [--bg-secondary:var(--color-surface-2)] [--text-primary:var(--color-fg)] [--text-secondary:var(--color-fg-muted)] [--border:var(--color-border)] [--accent:var(--color-accent)]",
|
|
78818
79087
|
children: /*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
78819
|
-
className: "
|
|
79088
|
+
className: "workspace-panel space-y-4",
|
|
78820
79089
|
children: [
|
|
78821
79090
|
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
78822
79091
|
className: "dashboard-atmosphere pointer-events-none absolute inset-0 overflow-hidden",
|
|
@@ -78899,7 +79168,7 @@ function DashboardPanel() {
|
|
|
78899
79168
|
currencyInfo: currencyInfo
|
|
78900
79169
|
}),
|
|
78901
79170
|
/*#__PURE__*/ (0,react_jsx_runtime.jsx)(ModelPricingSection, {
|
|
78902
|
-
|
|
79171
|
+
pricing: data.pricing,
|
|
78903
79172
|
modelVendorFilter: modelVendorFilter,
|
|
78904
79173
|
onVendorFilterChange: setModelVendorFilter,
|
|
78905
79174
|
modelFunctionFilter: modelFunctionFilter,
|
|
@@ -78923,6 +79192,7 @@ function DashboardPanel() {
|
|
|
78923
79192
|
|
|
78924
79193
|
|
|
78925
79194
|
|
|
79195
|
+
|
|
78926
79196
|
const FADE_CLASSES = [
|
|
78927
79197
|
"opacity-65",
|
|
78928
79198
|
"opacity-50",
|
|
@@ -79059,9 +79329,40 @@ function AgentSwitcher({ agents, activeAgentId, loading = false, layout = "heade
|
|
|
79059
79329
|
className: `inline-flex h-6 w-6 shrink-0 items-center justify-center rounded-lg text-xs font-semibold ${selected ? "bg-accent/15 text-accent" : "bg-surface-3 text-fg-subtle"}`,
|
|
79060
79330
|
children: agent.name.charAt(0).toUpperCase()
|
|
79061
79331
|
}),
|
|
79062
|
-
(selected || sidebar) && /*#__PURE__*/ (0,react_jsx_runtime.
|
|
79063
|
-
className: sidebar ? "
|
|
79064
|
-
children:
|
|
79332
|
+
(selected || sidebar) && /*#__PURE__*/ (0,react_jsx_runtime.jsxs)("span", {
|
|
79333
|
+
className: sidebar ? "min-w-0 flex-1 py-2" : "max-w-[7rem] truncate pr-1 text-sm font-semibold tracking-tight sm:max-w-[12rem]",
|
|
79334
|
+
children: [
|
|
79335
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsx)("span", {
|
|
79336
|
+
className: sidebar ? "block truncate text-sm font-semibold tracking-tight" : undefined,
|
|
79337
|
+
children: agent.name
|
|
79338
|
+
}),
|
|
79339
|
+
sidebar && /*#__PURE__*/ (0,react_jsx_runtime.jsxs)("span", {
|
|
79340
|
+
className: "mt-1 block space-y-1 text-[11px] leading-snug text-fg-faint",
|
|
79341
|
+
children: [
|
|
79342
|
+
(agent.usage_profile || agent.tools || agent.is_default) && /*#__PURE__*/ (0,react_jsx_runtime.jsx)("span", {
|
|
79343
|
+
className: "block break-words",
|
|
79344
|
+
children: [
|
|
79345
|
+
agent.usage_profile ? usage_profile/* USAGE_PROFILES */.R3[agent.usage_profile].label : null,
|
|
79346
|
+
agent.tools ? `${agent.tools.length} selected tool${agent.tools.length === 1 ? "" : "s"}` : null,
|
|
79347
|
+
agent.is_default ? "Default agent" : null
|
|
79348
|
+
].filter(Boolean).join(" / ")
|
|
79349
|
+
}),
|
|
79350
|
+
agent.model_config_name !== undefined && /*#__PURE__*/ (0,react_jsx_runtime.jsx)("span", {
|
|
79351
|
+
className: "block truncate",
|
|
79352
|
+
title: agent.model_config_name ? `Model override: ${agent.model_config_name}` : "Automatic routing",
|
|
79353
|
+
children: agent.model_config_name ? `Model: ${agent.model_config_name}` : "Automatic routing"
|
|
79354
|
+
}),
|
|
79355
|
+
unreadCount > 0 && /*#__PURE__*/ (0,react_jsx_runtime.jsxs)("span", {
|
|
79356
|
+
className: "block text-fg-muted",
|
|
79357
|
+
children: [
|
|
79358
|
+
unreadCount,
|
|
79359
|
+
" unread ",
|
|
79360
|
+
unreadCount === 1 ? "notification" : "notifications"
|
|
79361
|
+
]
|
|
79362
|
+
})
|
|
79363
|
+
]
|
|
79364
|
+
})
|
|
79365
|
+
]
|
|
79065
79366
|
})
|
|
79066
79367
|
]
|
|
79067
79368
|
}),
|
|
@@ -79073,543 +79374,1040 @@ function AgentSwitcher({ agents, activeAgentId, loading = false, layout = "heade
|
|
|
79073
79374
|
]
|
|
79074
79375
|
}, agent.id);
|
|
79075
79376
|
})
|
|
79076
|
-
})
|
|
79377
|
+
})
|
|
79378
|
+
}),
|
|
79379
|
+
loading && agents.length === 0 && /*#__PURE__*/ (0,react_jsx_runtime.jsx)("span", {
|
|
79380
|
+
role: "status",
|
|
79381
|
+
className: "sr-only",
|
|
79382
|
+
children: "Loading agents"
|
|
79383
|
+
})
|
|
79384
|
+
]
|
|
79385
|
+
});
|
|
79386
|
+
}
|
|
79387
|
+
|
|
79388
|
+
;// ./components/layout/AppShell.tsx
|
|
79389
|
+
/* __next_internal_client_entry_do_not_use__ AppShell auto */
|
|
79390
|
+
|
|
79391
|
+
|
|
79392
|
+
|
|
79393
|
+
|
|
79394
|
+
|
|
79395
|
+
|
|
79396
|
+
|
|
79397
|
+
|
|
79398
|
+
|
|
79399
|
+
|
|
79400
|
+
|
|
79401
|
+
|
|
79402
|
+
|
|
79403
|
+
|
|
79404
|
+
|
|
79405
|
+
|
|
79406
|
+
|
|
79407
|
+
|
|
79408
|
+
|
|
79409
|
+
|
|
79410
|
+
|
|
79411
|
+
|
|
79412
|
+
|
|
79413
|
+
|
|
79414
|
+
|
|
79415
|
+
|
|
79416
|
+
|
|
79417
|
+
|
|
79418
|
+
|
|
79419
|
+
|
|
79420
|
+
|
|
79421
|
+
|
|
79422
|
+
|
|
79423
|
+
|
|
79424
|
+
|
|
79425
|
+
const ADVANCED_TABS = new Set([
|
|
79426
|
+
"dashboard",
|
|
79427
|
+
"tasks",
|
|
79428
|
+
"tools",
|
|
79429
|
+
"memory",
|
|
79430
|
+
"bridges",
|
|
79431
|
+
"logs",
|
|
79432
|
+
"env"
|
|
79433
|
+
]);
|
|
79434
|
+
function AppShell() {
|
|
79435
|
+
const { state, dispatch } = (0,AppContext/* useAppContext */.Us)();
|
|
79436
|
+
const isFullMode = state.experienceMode === "full";
|
|
79437
|
+
useUrlSync();
|
|
79438
|
+
useConfigurationIssues();
|
|
79439
|
+
const { threadId, loading: sessionLoading, error: sessionError } = useAgentSession(state.activeAgentId, state.activeThreadId);
|
|
79440
|
+
const [showMenu, setShowMenu] = (0,react.useState)(false);
|
|
79441
|
+
// Lazy-mount tabs on first visit, then keep them mounted via <Activity> so
|
|
79442
|
+
// state survives subsequent switches. Without this, opening the app forces
|
|
79443
|
+
// React to render and commit all 8 panel trees up front — Safari (esp. iOS
|
|
79444
|
+
// PWA) takes long enough on that synchronous commit that the initial
|
|
79445
|
+
// agents fetch in this very component visibly stalls.
|
|
79446
|
+
const [mountedTabs, setMountedTabs] = (0,react.useState)(()=>new Set([
|
|
79447
|
+
state.activeTab
|
|
79448
|
+
]));
|
|
79449
|
+
process.env.__NEXT_PRIVATE_MINIMIZE_MACRO_FALSE && (0,react.useEffect)(()=>{
|
|
79450
|
+
setMountedTabs((prev)=>prev.has(state.activeTab) ? prev : new Set(prev).add(state.activeTab));
|
|
79451
|
+
}, [
|
|
79452
|
+
state.activeTab
|
|
79453
|
+
]);
|
|
79454
|
+
process.env.__NEXT_PRIVATE_MINIMIZE_MACRO_FALSE && (0,react.useEffect)(()=>{
|
|
79455
|
+
if (!isFullMode && ADVANCED_TABS.has(state.activeTab)) {
|
|
79456
|
+
dispatch({
|
|
79457
|
+
type: "SET_TAB",
|
|
79458
|
+
tab: "profile"
|
|
79459
|
+
});
|
|
79460
|
+
}
|
|
79461
|
+
}, [
|
|
79462
|
+
dispatch,
|
|
79463
|
+
isFullMode,
|
|
79464
|
+
state.activeTab
|
|
79465
|
+
]);
|
|
79466
|
+
// Redirect legacy deep link ?tab=harness → settings (harnesses now live under Settings).
|
|
79467
|
+
process.env.__NEXT_PRIVATE_MINIMIZE_MACRO_FALSE && (0,react.useEffect)(()=>{
|
|
79468
|
+
if (state.activeTab === "harness") {
|
|
79469
|
+
dispatch({
|
|
79470
|
+
type: "SET_TAB",
|
|
79471
|
+
tab: "settings"
|
|
79472
|
+
});
|
|
79473
|
+
dispatch({
|
|
79474
|
+
type: "SET_SELECTION",
|
|
79475
|
+
tab: "settings",
|
|
79476
|
+
itemId: "harness"
|
|
79477
|
+
});
|
|
79478
|
+
}
|
|
79479
|
+
}, [
|
|
79480
|
+
dispatch,
|
|
79481
|
+
state.activeTab
|
|
79482
|
+
]);
|
|
79483
|
+
const unreadCount = (0,ui_toasts/* useUnreadCount */.U4)();
|
|
79484
|
+
// Shared agent list for boot picker, menu, and notification titles.
|
|
79485
|
+
const { agents, loading: agentsLoading, error: agentsError, refresh: refreshAgents, update: updateAgent } = useAgents();
|
|
79486
|
+
const agentsLoaded = !agentsLoading;
|
|
79487
|
+
const agentsRef = (0,react.useRef)([]);
|
|
79488
|
+
agentsRef.current = agents;
|
|
79489
|
+
// Track current view so we can suppress notifications for the agent in focus.
|
|
79490
|
+
const stateRef = (0,react.useRef)(state);
|
|
79491
|
+
stateRef.current = state;
|
|
79492
|
+
// Stable callback references — without these, AppShell re-renders (e.g. on
|
|
79493
|
+
// menu toggle, unread counter clearing) hand ChatView fresh function
|
|
79494
|
+
// identities. ChatView's hooks re-derive cascading useCallbacks (handleDone
|
|
79495
|
+
// → useSSE.consume → useSSE.attach), and effects keyed on `attach` re-fire,
|
|
79496
|
+
// forcing a message refetch + chat-window scroll. Stable refs break the cascade.
|
|
79497
|
+
const onMessageSent = (0,react.useCallback)(()=>{}, []);
|
|
79498
|
+
const onSelectAgent = (0,react.useCallback)((agentId)=>{
|
|
79499
|
+
setShowMenu(false);
|
|
79500
|
+
dispatch({
|
|
79501
|
+
type: "SET_AGENT",
|
|
79502
|
+
agentId
|
|
79503
|
+
});
|
|
79504
|
+
dispatch({
|
|
79505
|
+
type: "SET_TAB",
|
|
79506
|
+
tab: "chat"
|
|
79507
|
+
});
|
|
79508
|
+
}, [
|
|
79509
|
+
dispatch
|
|
79510
|
+
]);
|
|
79511
|
+
// Click on an OS Web Notification → useEventNotifications fires a custom
|
|
79512
|
+
// event; handle it here to switch to the relevant agent's chat. Prefers
|
|
79513
|
+
// landing on the exact thread the event happened in (run reply, scheduled
|
|
79514
|
+
// task, bridge message) so the user sees the originating message, not just
|
|
79515
|
+
// the agent's last-active thread.
|
|
79516
|
+
process.env.__NEXT_PRIVATE_MINIMIZE_MACRO_FALSE && (0,react.useEffect)(()=>{
|
|
79517
|
+
function handler(e) {
|
|
79518
|
+
const detail = e.detail;
|
|
79519
|
+
if (!detail?.agentId) return;
|
|
79520
|
+
if (detail.threadId) {
|
|
79521
|
+
dispatch({
|
|
79522
|
+
type: "SELECT_THREAD",
|
|
79523
|
+
threadId: detail.threadId,
|
|
79524
|
+
agentId: detail.agentId
|
|
79525
|
+
});
|
|
79526
|
+
} else {
|
|
79527
|
+
dispatch({
|
|
79528
|
+
type: "SET_AGENT",
|
|
79529
|
+
agentId: detail.agentId
|
|
79530
|
+
});
|
|
79531
|
+
dispatch({
|
|
79532
|
+
type: "SET_TAB",
|
|
79533
|
+
tab: "chat"
|
|
79534
|
+
});
|
|
79535
|
+
}
|
|
79536
|
+
}
|
|
79537
|
+
window.addEventListener("jarela:focus-agent", handler);
|
|
79538
|
+
return ()=>window.removeEventListener("jarela:focus-agent", handler);
|
|
79539
|
+
}, [
|
|
79540
|
+
dispatch
|
|
79541
|
+
]);
|
|
79542
|
+
// When the user is actively viewing an agent's chat, drain that agent's
|
|
79543
|
+
// unread bucket. This keeps the per-agent breakdown honest: badges only
|
|
79544
|
+
// count notifications the user hasn't yet seen in context.
|
|
79545
|
+
process.env.__NEXT_PRIVATE_MINIMIZE_MACRO_FALSE && (0,react.useEffect)(()=>{
|
|
79546
|
+
if (state.activeTab === "chat") {
|
|
79547
|
+
(0,ui_toasts/* clearUnreadForAgent */.d_)(state.activeAgentId ?? null);
|
|
79548
|
+
}
|
|
79549
|
+
}, [
|
|
79550
|
+
state.activeTab,
|
|
79551
|
+
state.activeAgentId,
|
|
79552
|
+
unreadCount
|
|
79553
|
+
]);
|
|
79554
|
+
// Opening the menu is the only place where global/system alerts are
|
|
79555
|
+
// visible when they aren't tied to a specific agent. Consume the null
|
|
79556
|
+
// bucket here so the header badge doesn't stay sticky.
|
|
79557
|
+
process.env.__NEXT_PRIVATE_MINIMIZE_MACRO_FALSE && (0,react.useEffect)(()=>{
|
|
79558
|
+
if (!showMenu) return;
|
|
79559
|
+
(0,ui_toasts/* clearUnreadForAgent */.d_)(null);
|
|
79560
|
+
}, [
|
|
79561
|
+
showMenu
|
|
79562
|
+
]);
|
|
79563
|
+
useEventNotifications({
|
|
79564
|
+
shouldNotify: (ev)=>{
|
|
79565
|
+
// Scheduled task firings ALWAYS notify. The user explicitly set them up
|
|
79566
|
+
// out-of-band — "remind me at 3pm", "every weekday morning". Even if
|
|
79567
|
+
// they happen to be on that agent's chat, they may not be actively
|
|
79568
|
+
// reading right when the task fires; the whole point is the ping.
|
|
79569
|
+
if (ev.type === "task_completed") return true;
|
|
79570
|
+
// For ordinary run completions (the agent finished a turn the user
|
|
79571
|
+
// just sent), suppress only when the user is actively reading that
|
|
79572
|
+
// exact chat — the new message is already on screen.
|
|
79573
|
+
//
|
|
79574
|
+
// Otherwise notify in either of two cases:
|
|
79575
|
+
// 1. The PWA isn't focused (background tab, minimized, focused on
|
|
79576
|
+
// another app). Detected via document.hidden + !hasFocus().
|
|
79577
|
+
// 2. The PWA IS focused but the user is on a different agent / a
|
|
79578
|
+
// different tab inside the app (Memory, Tasks, Models, …).
|
|
79579
|
+
const pwaUnfocused = typeof document !== "undefined" && (document.hidden || !document.hasFocus());
|
|
79580
|
+
const evAgentId = ev.agent_id;
|
|
79581
|
+
const onSameAgentChat = stateRef.current.activeTab === "chat" && evAgentId !== null && evAgentId === stateRef.current.activeAgentId;
|
|
79582
|
+
return pwaUnfocused || !onSameAgentChat;
|
|
79583
|
+
},
|
|
79584
|
+
resolveAgentName: (agentId)=>{
|
|
79585
|
+
if (!agentId) return (0,app_config/* getAppName */.fj)();
|
|
79586
|
+
const a = agentsRef.current.find((x)=>x.id === agentId);
|
|
79587
|
+
return a?.name ?? (0,app_config/* getAppName */.fj)();
|
|
79588
|
+
},
|
|
79589
|
+
resolveAgentIcon: (agentId)=>{
|
|
79590
|
+
if (!agentId) return null;
|
|
79591
|
+
const a = agentsRef.current.find((x)=>x.id === agentId);
|
|
79592
|
+
return a?.icon ?? null;
|
|
79593
|
+
}
|
|
79594
|
+
});
|
|
79595
|
+
// Screen-lock overlay (presence check) AND master-key-locked overlay
|
|
79596
|
+
// (decrypt). Distinct from the boot-time gate in `app/page.tsx`:
|
|
79597
|
+
// those mounts are triggered mid-session — either by an idle timer
|
|
79598
|
+
// (screen-lock) or by the master key being re-locked by an external
|
|
79599
|
+
// process (decrypt). Both are signalled by the API client when it
|
|
79600
|
+
// sees the matching 423 response.
|
|
79601
|
+
const [screenLocked, setScreenLocked] = (0,react.useState)(false);
|
|
79602
|
+
const [masterKeyLocked, setMasterKeyLocked] = (0,react.useState)(false);
|
|
79603
|
+
const [postUnlockPreferredAgentId, setPostUnlockPreferredAgentId] = (0,react.useState)(undefined);
|
|
79604
|
+
// Bumped after each unlock so BootScreen remounts with fresh state
|
|
79605
|
+
// (its `done` / `pickedId` / `prefetchStartedRef` would otherwise
|
|
79606
|
+
// suppress the picker on the second appearance). Both unlock paths
|
|
79607
|
+
// bump this — the agent selector is always the post-unlock landing.
|
|
79608
|
+
const [bootSeq, setBootSeq] = (0,react.useState)(0);
|
|
79609
|
+
process.env.__NEXT_PRIVATE_MINIMIZE_MACRO_FALSE && (0,react.useEffect)(()=>{
|
|
79610
|
+
let cancelled = false;
|
|
79611
|
+
let timer = null;
|
|
79612
|
+
function onScreenLocked() {
|
|
79613
|
+
if (!cancelled) setScreenLocked(true);
|
|
79614
|
+
}
|
|
79615
|
+
function onMasterKeyLocked() {
|
|
79616
|
+
if (!cancelled) setMasterKeyLocked(true);
|
|
79617
|
+
}
|
|
79618
|
+
window.addEventListener("jarela:screen-locked", onScreenLocked);
|
|
79619
|
+
window.addEventListener("jarela:master-key-locked", onMasterKeyLocked);
|
|
79620
|
+
// Soft poll every 30s so the overlay still appears if no user
|
|
79621
|
+
// action triggered a request after the idle timer elapsed.
|
|
79622
|
+
async function probe() {
|
|
79623
|
+
try {
|
|
79624
|
+
const res = await fetch("/api/v1/security/state");
|
|
79625
|
+
if (!res.ok) return;
|
|
79626
|
+
const body = await res.json();
|
|
79627
|
+
if (cancelled) return;
|
|
79628
|
+
if (body.state === "locked") setMasterKeyLocked(true);
|
|
79629
|
+
if (body.screen_locked === true) setScreenLocked(true);
|
|
79630
|
+
} catch (err) {
|
|
79631
|
+
// Network blip; try again next tick. Logged at debug-level so
|
|
79632
|
+
// a sustained outage is at least findable in devtools.
|
|
79633
|
+
if (false) {}
|
|
79634
|
+
}
|
|
79635
|
+
}
|
|
79636
|
+
void probe();
|
|
79637
|
+
timer = setInterval(probe, 30000);
|
|
79638
|
+
return ()=>{
|
|
79639
|
+
cancelled = true;
|
|
79640
|
+
if (timer) clearInterval(timer);
|
|
79641
|
+
window.removeEventListener("jarela:screen-locked", onScreenLocked);
|
|
79642
|
+
window.removeEventListener("jarela:master-key-locked", onMasterKeyLocked);
|
|
79643
|
+
};
|
|
79644
|
+
}, []);
|
|
79645
|
+
// After unlocking, the app may have temporarily lost in-memory list state
|
|
79646
|
+
// due to 423 responses. Rehydrate a usable active agent automatically so
|
|
79647
|
+
// mobile PWA users are not stranded on a "no agent configured" state.
|
|
79648
|
+
process.env.__NEXT_PRIVATE_MINIMIZE_MACRO_FALSE && (0,react.useEffect)(()=>{
|
|
79649
|
+
if (postUnlockPreferredAgentId === undefined) return;
|
|
79650
|
+
if (!agentsLoaded) return;
|
|
79651
|
+
const preferred = postUnlockPreferredAgentId ? agents.find((a)=>a.id === postUnlockPreferredAgentId) ?? null : null;
|
|
79652
|
+
const fallback = agents.find((a)=>a.is_default) ?? agents[0] ?? null;
|
|
79653
|
+
const nextAgent = preferred ?? fallback;
|
|
79654
|
+
if (nextAgent && state.activeAgentId !== nextAgent.id) {
|
|
79655
|
+
dispatch({
|
|
79656
|
+
type: "SET_AGENT",
|
|
79657
|
+
agentId: nextAgent.id
|
|
79658
|
+
});
|
|
79659
|
+
}
|
|
79660
|
+
setPostUnlockPreferredAgentId(undefined);
|
|
79661
|
+
}, [
|
|
79662
|
+
agents,
|
|
79663
|
+
agentsLoaded,
|
|
79664
|
+
dispatch,
|
|
79665
|
+
postUnlockPreferredAgentId,
|
|
79666
|
+
state.activeAgentId
|
|
79667
|
+
]);
|
|
79668
|
+
// Shared post-unlock landing: clear the current chat and force the
|
|
79669
|
+
// BootScreen to remount so the user lands on the agent picker. Used
|
|
79670
|
+
// by BOTH the screen-unlock and the master-key decrypt paths so the
|
|
79671
|
+
// two transitions feel identical from the user's side.
|
|
79672
|
+
const landOnAgentPicker = (0,react.useCallback)(()=>{
|
|
79673
|
+
const preferredAgentId = stateRef.current.activeAgentId;
|
|
79674
|
+
dispatch({
|
|
79675
|
+
type: "NEW_CHAT"
|
|
79676
|
+
});
|
|
79677
|
+
setBootSeq((n)=>n + 1);
|
|
79678
|
+
setPostUnlockPreferredAgentId(preferredAgentId ?? null);
|
|
79679
|
+
void refreshAgents();
|
|
79680
|
+
}, [
|
|
79681
|
+
dispatch,
|
|
79682
|
+
refreshAgents
|
|
79683
|
+
]);
|
|
79684
|
+
return(// `dvh` natively tracks the visible viewport on iOS 16.4+ / modern
|
|
79685
|
+
// Chromium, including the on-screen keyboard. The `--actual-vh`
|
|
79686
|
+
// override (set by the iOS-standalone-PWA shim in layout.tsx) covers
|
|
79687
|
+
// the separate WebKit bug where 100dvh under-reports the physical
|
|
79688
|
+
// screen by ~safe-area-inset-top, which leaves a white strip above
|
|
79689
|
+
// the home indicator. Inline style instead of `h-[...]` because
|
|
79690
|
+
// Tailwind arbitrary values choke on commas inside `var(...)`.
|
|
79691
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
79692
|
+
className: "app-shell flex flex-col text-fg overflow-hidden",
|
|
79693
|
+
style: {
|
|
79694
|
+
height: "var(--actual-vh, 100dvh)"
|
|
79695
|
+
},
|
|
79696
|
+
children: [
|
|
79697
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsx)(BootScreen, {
|
|
79698
|
+
agents: agents,
|
|
79699
|
+
agentsLoaded: agentsLoaded,
|
|
79700
|
+
activeAgentId: state.activeAgentId,
|
|
79701
|
+
preferredThreadId: state.activeThreadId,
|
|
79702
|
+
onPickAgent: (id)=>{
|
|
79703
|
+
dispatch({
|
|
79704
|
+
type: "SET_AGENT",
|
|
79705
|
+
agentId: id
|
|
79706
|
+
});
|
|
79707
|
+
dispatch({
|
|
79708
|
+
type: "SET_TAB",
|
|
79709
|
+
tab: "chat"
|
|
79710
|
+
});
|
|
79711
|
+
},
|
|
79712
|
+
onCreateAgent: ()=>dispatch({
|
|
79713
|
+
type: "SET_TAB",
|
|
79714
|
+
tab: "agents"
|
|
79715
|
+
}),
|
|
79716
|
+
suppressed: state.activeTab !== "chat"
|
|
79717
|
+
}, bootSeq),
|
|
79718
|
+
screenLocked && !masterKeyLocked && /*#__PURE__*/ (0,react_jsx_runtime.jsx)(ScreenLock, {
|
|
79719
|
+
onUnlock: ()=>{
|
|
79720
|
+
// Drop the user back on the picker so they consciously
|
|
79721
|
+
// re-enter their workspace rather than landing mid-chat.
|
|
79722
|
+
landOnAgentPicker();
|
|
79723
|
+
setScreenLocked(false);
|
|
79724
|
+
}
|
|
79725
|
+
}),
|
|
79726
|
+
masterKeyLocked && // Master key got re-locked mid-session (e.g. external lock
|
|
79727
|
+
// command). Mount the decrypt splash — same shared keypad as
|
|
79728
|
+
// boot — and on success drop back to the agent picker. The
|
|
79729
|
+
// existing components below stay mounted underneath; once
|
|
79730
|
+
// unlocked they resume against the now-unlocked DB.
|
|
79731
|
+
//
|
|
79732
|
+
// If the screen-lock flag is also up (idle overlap), the
|
|
79733
|
+
// decrypt route clears it server-side, so we also drop the
|
|
79734
|
+
// screen-lock flag here. One PIN entry covers both.
|
|
79735
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsx)(UnlockScreen.UnlockScreen, {
|
|
79736
|
+
onUnlock: ()=>{
|
|
79737
|
+
landOnAgentPicker();
|
|
79738
|
+
setMasterKeyLocked(false);
|
|
79739
|
+
if (screenLocked) setScreenLocked(false);
|
|
79740
|
+
}
|
|
79741
|
+
}),
|
|
79742
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsx)(NotificationStatus, {}),
|
|
79743
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsx)(Toaster, {}),
|
|
79744
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsx)(ServerStatus, {}),
|
|
79745
|
+
state.activeTab !== "chat" && /*#__PURE__*/ (0,react_jsx_runtime.jsx)("div", {
|
|
79746
|
+
className: "shrink-0",
|
|
79747
|
+
"aria-hidden": true,
|
|
79748
|
+
style: {
|
|
79749
|
+
height: "calc(3rem + var(--app-safe-top))"
|
|
79750
|
+
}
|
|
79751
|
+
}),
|
|
79752
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsx)(CryptoFallbackBanner, {}),
|
|
79753
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsx)(UpdateAvailableBanner, {}),
|
|
79754
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("header", {
|
|
79755
|
+
className: "glass app-header fixed top-0 left-0 right-0 z-40 flex items-center px-4 border-b border-border/60",
|
|
79756
|
+
style: {
|
|
79757
|
+
// Top safe-area is mobile-scoped via --app-safe-top so desktop
|
|
79758
|
+
// windows stay flush to the edge.
|
|
79759
|
+
paddingTop: "var(--app-safe-top)",
|
|
79760
|
+
paddingLeft: "calc(env(safe-area-inset-left) + var(--workspace-gutter))",
|
|
79761
|
+
paddingRight: "calc(env(safe-area-inset-right) + var(--workspace-gutter))",
|
|
79762
|
+
height: "calc(3rem + var(--app-safe-top))"
|
|
79763
|
+
},
|
|
79764
|
+
children: [
|
|
79765
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsx)(AgentSwitcher, {
|
|
79766
|
+
agents: agents,
|
|
79767
|
+
activeAgentId: state.activeAgentId,
|
|
79768
|
+
loading: agentsLoading,
|
|
79769
|
+
onSelect: onSelectAgent
|
|
79770
|
+
}),
|
|
79771
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsx)(HeaderActivity, {}),
|
|
79772
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("button", {
|
|
79773
|
+
"aria-label": "Menu",
|
|
79774
|
+
"aria-expanded": showMenu,
|
|
79775
|
+
"aria-controls": "main-navigation",
|
|
79776
|
+
onClick: ()=>{
|
|
79777
|
+
setShowMenu((v)=>!v);
|
|
79778
|
+
},
|
|
79779
|
+
className: `control-tap ml-auto relative shrink-0 p-2.5 rounded transition-colors xl:hidden ${showMenu ? "text-fg bg-surface-3" : "text-fg-faint hover:text-fg-muted hover:bg-surface-3/50"}`,
|
|
79780
|
+
title: unreadCount > 0 ? `${unreadCount} new ${unreadCount === 1 ? "alert" : "alerts"}` : "Menu",
|
|
79781
|
+
children: [
|
|
79782
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsx)(Menu, {
|
|
79783
|
+
size: 21
|
|
79784
|
+
}),
|
|
79785
|
+
unreadCount > 0 && /*#__PURE__*/ (0,react_jsx_runtime.jsx)("span", {
|
|
79786
|
+
className: "absolute top-1 right-1 min-w-[14px] h-[14px] px-1 rounded-full bg-rose-500 border border-surface-2 text-[9px] font-bold text-white flex items-center justify-center leading-none animate-pulse",
|
|
79787
|
+
children: unreadCount > 9 ? "9+" : unreadCount
|
|
79788
|
+
})
|
|
79789
|
+
]
|
|
79790
|
+
})
|
|
79791
|
+
]
|
|
79792
|
+
}),
|
|
79793
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsx)("aside", {
|
|
79794
|
+
"aria-label": "Agents",
|
|
79795
|
+
className: "glass fixed bottom-0 left-0 z-40 hidden w-[var(--workspace-agents-width)] border-r border-border/60 pb-safe 2xl:block",
|
|
79796
|
+
style: {
|
|
79797
|
+
top: "calc(3rem + var(--app-safe-top))"
|
|
79798
|
+
},
|
|
79799
|
+
children: /*#__PURE__*/ (0,react_jsx_runtime.jsx)(AgentSwitcher, {
|
|
79800
|
+
layout: "sidebar",
|
|
79801
|
+
agents: agents,
|
|
79802
|
+
activeAgentId: state.activeAgentId,
|
|
79803
|
+
loading: agentsLoading,
|
|
79804
|
+
onSelect: onSelectAgent
|
|
79805
|
+
})
|
|
79806
|
+
}),
|
|
79807
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
79808
|
+
"data-testid": "workspace-content",
|
|
79809
|
+
className: "workspace-content mx-auto min-h-0 flex-1 relative w-full overflow-hidden",
|
|
79810
|
+
children: [
|
|
79811
|
+
mountedTabs.has("chat") && /*#__PURE__*/ (0,react_jsx_runtime.jsx)(react.Activity, {
|
|
79812
|
+
mode: state.activeTab === "chat" ? "visible" : "hidden",
|
|
79813
|
+
children: /*#__PURE__*/ (0,react_jsx_runtime.jsx)(ChatView, {
|
|
79814
|
+
threadId: threadId,
|
|
79815
|
+
agentId: state.activeAgentId,
|
|
79816
|
+
sessionLoading: sessionLoading,
|
|
79817
|
+
sessionError: sessionError,
|
|
79818
|
+
onMessageSent: onMessageSent
|
|
79819
|
+
}, state.activeAgentId ?? "no-agent")
|
|
79820
|
+
}),
|
|
79821
|
+
mountedTabs.has("dashboard") && /*#__PURE__*/ (0,react_jsx_runtime.jsx)(react.Activity, {
|
|
79822
|
+
mode: state.activeTab === "dashboard" ? "visible" : "hidden",
|
|
79823
|
+
children: /*#__PURE__*/ (0,react_jsx_runtime.jsx)(DashboardPanel, {})
|
|
79824
|
+
}),
|
|
79825
|
+
mountedTabs.has("agents") && /*#__PURE__*/ (0,react_jsx_runtime.jsx)(react.Activity, {
|
|
79826
|
+
mode: state.activeTab === "agents" ? "visible" : "hidden",
|
|
79827
|
+
children: /*#__PURE__*/ (0,react_jsx_runtime.jsx)(AgentsPanel, {})
|
|
79828
|
+
}),
|
|
79829
|
+
isFullMode && mountedTabs.has("memory") && /*#__PURE__*/ (0,react_jsx_runtime.jsx)(react.Activity, {
|
|
79830
|
+
mode: state.activeTab === "memory" ? "visible" : "hidden",
|
|
79831
|
+
children: /*#__PURE__*/ (0,react_jsx_runtime.jsx)(UnifiedMemoryPanel, {})
|
|
79832
|
+
}),
|
|
79833
|
+
mountedTabs.has("models") && /*#__PURE__*/ (0,react_jsx_runtime.jsx)(react.Activity, {
|
|
79834
|
+
mode: state.activeTab === "models" ? "visible" : "hidden",
|
|
79835
|
+
children: /*#__PURE__*/ (0,react_jsx_runtime.jsx)("div", {
|
|
79836
|
+
className: "workspace-panel h-full",
|
|
79837
|
+
children: /*#__PURE__*/ (0,react_jsx_runtime.jsx)(ModelsPanel, {})
|
|
79838
|
+
})
|
|
79839
|
+
}),
|
|
79840
|
+
mountedTabs.has("credentials") && /*#__PURE__*/ (0,react_jsx_runtime.jsx)(react.Activity, {
|
|
79841
|
+
mode: state.activeTab === "credentials" ? "visible" : "hidden",
|
|
79842
|
+
children: /*#__PURE__*/ (0,react_jsx_runtime.jsx)("div", {
|
|
79843
|
+
className: "workspace-panel h-full",
|
|
79844
|
+
children: /*#__PURE__*/ (0,react_jsx_runtime.jsx)(CredentialsPanel, {})
|
|
79845
|
+
})
|
|
79846
|
+
}),
|
|
79847
|
+
mountedTabs.has("mcp") && /*#__PURE__*/ (0,react_jsx_runtime.jsx)(react.Activity, {
|
|
79848
|
+
mode: state.activeTab === "mcp" ? "visible" : "hidden",
|
|
79849
|
+
children: /*#__PURE__*/ (0,react_jsx_runtime.jsx)(MCPPanel, {})
|
|
79850
|
+
}),
|
|
79851
|
+
mountedTabs.has("tools") && /*#__PURE__*/ (0,react_jsx_runtime.jsx)(react.Activity, {
|
|
79852
|
+
mode: state.activeTab === "tools" ? "visible" : "hidden",
|
|
79853
|
+
children: /*#__PURE__*/ (0,react_jsx_runtime.jsx)(ToolsPanel, {})
|
|
79854
|
+
}),
|
|
79855
|
+
mountedTabs.has("tasks") && /*#__PURE__*/ (0,react_jsx_runtime.jsx)(react.Activity, {
|
|
79856
|
+
mode: state.activeTab === "tasks" ? "visible" : "hidden",
|
|
79857
|
+
children: /*#__PURE__*/ (0,react_jsx_runtime.jsx)(ScheduledTasksPanel, {})
|
|
79858
|
+
}),
|
|
79859
|
+
isFullMode && mountedTabs.has("bridges") && /*#__PURE__*/ (0,react_jsx_runtime.jsx)(react.Activity, {
|
|
79860
|
+
mode: state.activeTab === "bridges" ? "visible" : "hidden",
|
|
79861
|
+
children: /*#__PURE__*/ (0,react_jsx_runtime.jsx)(BridgesPanel, {})
|
|
79862
|
+
}),
|
|
79863
|
+
mountedTabs.has("profile") && /*#__PURE__*/ (0,react_jsx_runtime.jsx)(react.Activity, {
|
|
79864
|
+
mode: state.activeTab === "profile" ? "visible" : "hidden",
|
|
79865
|
+
children: /*#__PURE__*/ (0,react_jsx_runtime.jsx)(ProfilePanel, {})
|
|
79866
|
+
}),
|
|
79867
|
+
isFullMode && mountedTabs.has("logs") && /*#__PURE__*/ (0,react_jsx_runtime.jsx)(react.Activity, {
|
|
79868
|
+
mode: state.activeTab === "logs" ? "visible" : "hidden",
|
|
79869
|
+
children: /*#__PURE__*/ (0,react_jsx_runtime.jsx)("div", {
|
|
79870
|
+
className: "workspace-panel h-full",
|
|
79871
|
+
children: /*#__PURE__*/ (0,react_jsx_runtime.jsx)(LogsPanel, {})
|
|
79872
|
+
})
|
|
79873
|
+
}),
|
|
79874
|
+
isFullMode && mountedTabs.has("env") && /*#__PURE__*/ (0,react_jsx_runtime.jsx)(react.Activity, {
|
|
79875
|
+
mode: state.activeTab === "env" ? "visible" : "hidden",
|
|
79876
|
+
children: /*#__PURE__*/ (0,react_jsx_runtime.jsx)("div", {
|
|
79877
|
+
className: "workspace-panel h-full",
|
|
79878
|
+
children: /*#__PURE__*/ (0,react_jsx_runtime.jsx)(EnvVarsPanel, {})
|
|
79879
|
+
})
|
|
79880
|
+
}),
|
|
79881
|
+
mountedTabs.has("settings") && /*#__PURE__*/ (0,react_jsx_runtime.jsx)(react.Activity, {
|
|
79882
|
+
mode: state.activeTab === "settings" ? "visible" : "hidden",
|
|
79883
|
+
children: /*#__PURE__*/ (0,react_jsx_runtime.jsx)(SettingsPanel, {})
|
|
79884
|
+
}),
|
|
79885
|
+
showMenu && /*#__PURE__*/ (0,react_jsx_runtime.jsx)("div", {
|
|
79886
|
+
className: "fixed left-0 right-0 bottom-0 bg-black/20 z-30 xl:hidden",
|
|
79887
|
+
style: {
|
|
79888
|
+
top: "calc(3rem + var(--app-safe-top))"
|
|
79889
|
+
},
|
|
79890
|
+
onClick: ()=>setShowMenu(false)
|
|
79891
|
+
})
|
|
79892
|
+
]
|
|
79077
79893
|
}),
|
|
79078
|
-
|
|
79079
|
-
|
|
79080
|
-
|
|
79081
|
-
|
|
79894
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsx)(MenuPanel, {
|
|
79895
|
+
open: showMenu,
|
|
79896
|
+
activeTab: state.activeTab,
|
|
79897
|
+
activeAgent: agents.find((agent)=>agent.id === state.activeAgentId),
|
|
79898
|
+
agentsLoading: agentsLoading,
|
|
79899
|
+
agentsError: agentsError,
|
|
79900
|
+
onUpdateAgent: updateAgent,
|
|
79901
|
+
onClose: ()=>setShowMenu(false),
|
|
79902
|
+
onSetTab: (tab)=>dispatch({
|
|
79903
|
+
type: "SET_TAB",
|
|
79904
|
+
tab
|
|
79905
|
+
})
|
|
79082
79906
|
})
|
|
79083
79907
|
]
|
|
79908
|
+
}));
|
|
79909
|
+
}
|
|
79910
|
+
|
|
79911
|
+
|
|
79912
|
+
/***/ }),
|
|
79913
|
+
|
|
79914
|
+
/***/ 257975:
|
|
79915
|
+
/***/ ((module) => {
|
|
79916
|
+
|
|
79917
|
+
"use strict";
|
|
79918
|
+
module.exports = require("node:util");
|
|
79919
|
+
|
|
79920
|
+
/***/ }),
|
|
79921
|
+
|
|
79922
|
+
/***/ 279925:
|
|
79923
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
79924
|
+
|
|
79925
|
+
"use strict";
|
|
79926
|
+
// Format function modified from nodejs
|
|
79927
|
+
// Copyright Joyent, Inc. and other Node contributors.
|
|
79928
|
+
//
|
|
79929
|
+
// Permission is hereby granted, free of charge, to any person obtaining a
|
|
79930
|
+
// copy of this software and associated documentation files (the
|
|
79931
|
+
// "Software"), to deal in the Software without restriction, including
|
|
79932
|
+
// without limitation the rights to use, copy, modify, merge, publish,
|
|
79933
|
+
// distribute, sublicense, and/or sell copies of the Software, and to permit
|
|
79934
|
+
// persons to whom the Software is furnished to do so, subject to the
|
|
79935
|
+
// following conditions:
|
|
79936
|
+
//
|
|
79937
|
+
// The above copyright notice and this permission notice shall be included
|
|
79938
|
+
// in all copies or substantial portions of the Software.
|
|
79939
|
+
//
|
|
79940
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
79941
|
+
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
79942
|
+
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
|
79943
|
+
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
79944
|
+
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
79945
|
+
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
|
79946
|
+
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
79947
|
+
|
|
79948
|
+
Object.defineProperty(exports, "__esModule", ({
|
|
79949
|
+
value: true
|
|
79950
|
+
}));
|
|
79951
|
+
0 && (0);
|
|
79952
|
+
function _export(target, all) {
|
|
79953
|
+
for(var name in all)Object.defineProperty(target, name, {
|
|
79954
|
+
enumerable: true,
|
|
79955
|
+
get: all[name]
|
|
79084
79956
|
});
|
|
79085
79957
|
}
|
|
79958
|
+
_export(exports, {
|
|
79959
|
+
formatUrl: function() {
|
|
79960
|
+
return formatUrl;
|
|
79961
|
+
},
|
|
79962
|
+
formatWithValidation: function() {
|
|
79963
|
+
return formatWithValidation;
|
|
79964
|
+
},
|
|
79965
|
+
urlObjectKeys: function() {
|
|
79966
|
+
return urlObjectKeys;
|
|
79967
|
+
}
|
|
79968
|
+
});
|
|
79969
|
+
const _interop_require_wildcard = __webpack_require__(124814);
|
|
79970
|
+
const _querystring = /*#__PURE__*/ _interop_require_wildcard._(__webpack_require__(690485));
|
|
79971
|
+
const slashedProtocols = /https?|ftp|gopher|file/;
|
|
79972
|
+
function formatUrl(urlObj) {
|
|
79973
|
+
let { auth, hostname } = urlObj;
|
|
79974
|
+
let protocol = urlObj.protocol || '';
|
|
79975
|
+
let pathname = urlObj.pathname || '';
|
|
79976
|
+
let hash = urlObj.hash || '';
|
|
79977
|
+
let query = urlObj.query || '';
|
|
79978
|
+
let host = false;
|
|
79979
|
+
auth = auth ? encodeURIComponent(auth).replace(/%3A/i, ':') + '@' : '';
|
|
79980
|
+
if (urlObj.host) {
|
|
79981
|
+
host = auth + urlObj.host;
|
|
79982
|
+
} else if (hostname) {
|
|
79983
|
+
host = auth + (~hostname.indexOf(':') ? `[${hostname}]` : hostname);
|
|
79984
|
+
if (urlObj.port) {
|
|
79985
|
+
host += ':' + urlObj.port;
|
|
79986
|
+
}
|
|
79987
|
+
}
|
|
79988
|
+
if (query && typeof query === 'object') {
|
|
79989
|
+
query = String(_querystring.urlQueryToSearchParams(query));
|
|
79990
|
+
}
|
|
79991
|
+
let search = urlObj.search || query && `?${query}` || '';
|
|
79992
|
+
if (protocol && !protocol.endsWith(':')) protocol += ':';
|
|
79993
|
+
if (urlObj.slashes || (!protocol || slashedProtocols.test(protocol)) && host !== false) {
|
|
79994
|
+
host = '//' + (host || '');
|
|
79995
|
+
if (pathname && pathname[0] !== '/') pathname = '/' + pathname;
|
|
79996
|
+
} else if (!host) {
|
|
79997
|
+
host = '';
|
|
79998
|
+
}
|
|
79999
|
+
if (hash && hash[0] !== '#') hash = '#' + hash;
|
|
80000
|
+
if (search && search[0] !== '?') search = '?' + search;
|
|
80001
|
+
pathname = pathname.replace(/[?#]/g, encodeURIComponent);
|
|
80002
|
+
search = search.replace('#', '%23');
|
|
80003
|
+
return `${protocol}${host}${pathname}${search}${hash}`;
|
|
80004
|
+
}
|
|
80005
|
+
const urlObjectKeys = [
|
|
80006
|
+
'auth',
|
|
80007
|
+
'hash',
|
|
80008
|
+
'host',
|
|
80009
|
+
'hostname',
|
|
80010
|
+
'href',
|
|
80011
|
+
'path',
|
|
80012
|
+
'pathname',
|
|
80013
|
+
'port',
|
|
80014
|
+
'protocol',
|
|
80015
|
+
'query',
|
|
80016
|
+
'search',
|
|
80017
|
+
'slashes'
|
|
80018
|
+
];
|
|
80019
|
+
function formatWithValidation(url) {
|
|
80020
|
+
if (false) {}
|
|
80021
|
+
return formatUrl(url);
|
|
80022
|
+
} //# sourceMappingURL=format-url.js.map
|
|
79086
80023
|
|
|
79087
|
-
;// ./components/layout/AppShell.tsx
|
|
79088
|
-
/* __next_internal_client_entry_do_not_use__ AppShell auto */
|
|
79089
80024
|
|
|
80025
|
+
/***/ }),
|
|
79090
80026
|
|
|
80027
|
+
/***/ 309956:
|
|
80028
|
+
/***/ ((module) => {
|
|
79091
80029
|
|
|
80030
|
+
"use strict";
|
|
80031
|
+
module.exports = require("undici");
|
|
79092
80032
|
|
|
80033
|
+
/***/ }),
|
|
79093
80034
|
|
|
80035
|
+
/***/ 328354:
|
|
80036
|
+
/***/ ((module) => {
|
|
79094
80037
|
|
|
80038
|
+
"use strict";
|
|
80039
|
+
module.exports = require("util");
|
|
79095
80040
|
|
|
80041
|
+
/***/ }),
|
|
79096
80042
|
|
|
80043
|
+
/***/ 333873:
|
|
80044
|
+
/***/ ((module) => {
|
|
79097
80045
|
|
|
80046
|
+
"use strict";
|
|
80047
|
+
module.exports = require("path");
|
|
79098
80048
|
|
|
80049
|
+
/***/ }),
|
|
79099
80050
|
|
|
80051
|
+
/***/ 344708:
|
|
80052
|
+
/***/ ((module) => {
|
|
79100
80053
|
|
|
80054
|
+
"use strict";
|
|
80055
|
+
module.exports = require("node:https");
|
|
79101
80056
|
|
|
80057
|
+
/***/ }),
|
|
79102
80058
|
|
|
80059
|
+
/***/ 371000:
|
|
80060
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
79103
80061
|
|
|
80062
|
+
"use strict";
|
|
79104
80063
|
|
|
80064
|
+
Object.defineProperty(exports, "__esModule", ({
|
|
80065
|
+
value: true
|
|
80066
|
+
}));
|
|
80067
|
+
Object.defineProperty(exports, "addPathPrefix", ({
|
|
80068
|
+
enumerable: true,
|
|
80069
|
+
get: function() {
|
|
80070
|
+
return addPathPrefix;
|
|
80071
|
+
}
|
|
80072
|
+
}));
|
|
80073
|
+
const _parsepath = __webpack_require__(910571);
|
|
80074
|
+
function addPathPrefix(path, prefix) {
|
|
80075
|
+
if (!path.startsWith('/') || !prefix) {
|
|
80076
|
+
return path;
|
|
80077
|
+
}
|
|
80078
|
+
const { pathname, query, hash } = (0, _parsepath.parsePath)(path);
|
|
80079
|
+
return `${prefix}${pathname}${query}${hash}`;
|
|
80080
|
+
} //# sourceMappingURL=add-path-prefix.js.map
|
|
79105
80081
|
|
|
79106
80082
|
|
|
80083
|
+
/***/ }),
|
|
79107
80084
|
|
|
80085
|
+
/***/ 379551:
|
|
80086
|
+
/***/ ((module) => {
|
|
79108
80087
|
|
|
80088
|
+
"use strict";
|
|
80089
|
+
module.exports = require("url");
|
|
79109
80090
|
|
|
80091
|
+
/***/ }),
|
|
79110
80092
|
|
|
80093
|
+
/***/ 380481:
|
|
80094
|
+
/***/ ((module) => {
|
|
79111
80095
|
|
|
80096
|
+
"use strict";
|
|
80097
|
+
module.exports = require("node:readline");
|
|
79112
80098
|
|
|
80099
|
+
/***/ }),
|
|
79113
80100
|
|
|
80101
|
+
/***/ 399253:
|
|
80102
|
+
/***/ ((module) => {
|
|
79114
80103
|
|
|
80104
|
+
"use strict";
|
|
80105
|
+
module.exports = import("@huggingface/transformers");;
|
|
79115
80106
|
|
|
80107
|
+
/***/ }),
|
|
79116
80108
|
|
|
80109
|
+
/***/ 419121:
|
|
80110
|
+
/***/ ((module) => {
|
|
79117
80111
|
|
|
80112
|
+
"use strict";
|
|
80113
|
+
module.exports = require("next/dist/server/app-render/action-async-storage.external.js");
|
|
79118
80114
|
|
|
80115
|
+
/***/ }),
|
|
79119
80116
|
|
|
80117
|
+
/***/ 455511:
|
|
80118
|
+
/***/ ((module) => {
|
|
79120
80119
|
|
|
80120
|
+
"use strict";
|
|
80121
|
+
module.exports = require("crypto");
|
|
79121
80122
|
|
|
80123
|
+
/***/ }),
|
|
79122
80124
|
|
|
80125
|
+
/***/ 456761:
|
|
80126
|
+
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
|
|
79123
80127
|
|
|
79124
|
-
|
|
79125
|
-
|
|
79126
|
-
|
|
79127
|
-
|
|
79128
|
-
|
|
79129
|
-
|
|
79130
|
-
|
|
79131
|
-
|
|
79132
|
-
|
|
79133
|
-
|
|
79134
|
-
|
|
79135
|
-
|
|
79136
|
-
|
|
79137
|
-
|
|
79138
|
-
|
|
79139
|
-
|
|
79140
|
-
|
|
79141
|
-
|
|
79142
|
-
|
|
79143
|
-
|
|
79144
|
-
|
|
79145
|
-
|
|
79146
|
-
|
|
79147
|
-
|
|
79148
|
-
|
|
79149
|
-
|
|
79150
|
-
|
|
79151
|
-
|
|
79152
|
-
|
|
79153
|
-
|
|
79154
|
-
|
|
79155
|
-
|
|
79156
|
-
|
|
79157
|
-
|
|
79158
|
-
|
|
79159
|
-
|
|
79160
|
-
|
|
79161
|
-
|
|
79162
|
-
|
|
79163
|
-
|
|
79164
|
-
|
|
79165
|
-
//
|
|
79166
|
-
|
|
79167
|
-
|
|
79168
|
-
|
|
79169
|
-
|
|
79170
|
-
|
|
79171
|
-
|
|
79172
|
-
|
|
79173
|
-
|
|
79174
|
-
|
|
79175
|
-
|
|
79176
|
-
|
|
79177
|
-
|
|
79178
|
-
|
|
79179
|
-
|
|
79180
|
-
|
|
79181
|
-
|
|
79182
|
-
|
|
79183
|
-
|
|
79184
|
-
|
|
79185
|
-
|
|
79186
|
-
|
|
79187
|
-
|
|
79188
|
-
|
|
79189
|
-
|
|
79190
|
-
|
|
79191
|
-
|
|
79192
|
-
|
|
79193
|
-
|
|
79194
|
-
|
|
79195
|
-
|
|
79196
|
-
const onMessageSent = (0,react.useCallback)(()=>{}, []);
|
|
79197
|
-
const onSelectAgent = (0,react.useCallback)((agentId)=>{
|
|
79198
|
-
setShowMenu(false);
|
|
79199
|
-
dispatch({
|
|
79200
|
-
type: "SET_AGENT",
|
|
79201
|
-
agentId
|
|
79202
|
-
});
|
|
79203
|
-
dispatch({
|
|
79204
|
-
type: "SET_TAB",
|
|
79205
|
-
tab: "chat"
|
|
79206
|
-
});
|
|
79207
|
-
}, [
|
|
79208
|
-
dispatch
|
|
79209
|
-
]);
|
|
79210
|
-
// Click on an OS Web Notification → useEventNotifications fires a custom
|
|
79211
|
-
// event; handle it here to switch to the relevant agent's chat. Prefers
|
|
79212
|
-
// landing on the exact thread the event happened in (run reply, scheduled
|
|
79213
|
-
// task, bridge message) so the user sees the originating message, not just
|
|
79214
|
-
// the agent's last-active thread.
|
|
79215
|
-
process.env.__NEXT_PRIVATE_MINIMIZE_MACRO_FALSE && (0,react.useEffect)(()=>{
|
|
79216
|
-
function handler(e) {
|
|
79217
|
-
const detail = e.detail;
|
|
79218
|
-
if (!detail?.agentId) return;
|
|
79219
|
-
if (detail.threadId) {
|
|
79220
|
-
dispatch({
|
|
79221
|
-
type: "SELECT_THREAD",
|
|
79222
|
-
threadId: detail.threadId,
|
|
79223
|
-
agentId: detail.agentId
|
|
79224
|
-
});
|
|
79225
|
-
} else {
|
|
79226
|
-
dispatch({
|
|
79227
|
-
type: "SET_AGENT",
|
|
79228
|
-
agentId: detail.agentId
|
|
79229
|
-
});
|
|
79230
|
-
dispatch({
|
|
79231
|
-
type: "SET_TAB",
|
|
79232
|
-
tab: "chat"
|
|
79233
|
-
});
|
|
79234
|
-
}
|
|
79235
|
-
}
|
|
79236
|
-
window.addEventListener("jarela:focus-agent", handler);
|
|
79237
|
-
return ()=>window.removeEventListener("jarela:focus-agent", handler);
|
|
79238
|
-
}, [
|
|
79239
|
-
dispatch
|
|
79240
|
-
]);
|
|
79241
|
-
// When the user is actively viewing an agent's chat, drain that agent's
|
|
79242
|
-
// unread bucket. This keeps the per-agent breakdown honest: badges only
|
|
79243
|
-
// count notifications the user hasn't yet seen in context.
|
|
79244
|
-
process.env.__NEXT_PRIVATE_MINIMIZE_MACRO_FALSE && (0,react.useEffect)(()=>{
|
|
79245
|
-
if (state.activeTab === "chat") {
|
|
79246
|
-
(0,ui_toasts/* clearUnreadForAgent */.d_)(state.activeAgentId ?? null);
|
|
79247
|
-
}
|
|
79248
|
-
}, [
|
|
79249
|
-
state.activeTab,
|
|
79250
|
-
state.activeAgentId,
|
|
79251
|
-
unreadCount
|
|
79252
|
-
]);
|
|
79253
|
-
// Opening the menu is the only place where global/system alerts are
|
|
79254
|
-
// visible when they aren't tied to a specific agent. Consume the null
|
|
79255
|
-
// bucket here so the header badge doesn't stay sticky.
|
|
79256
|
-
process.env.__NEXT_PRIVATE_MINIMIZE_MACRO_FALSE && (0,react.useEffect)(()=>{
|
|
79257
|
-
if (!showMenu) return;
|
|
79258
|
-
(0,ui_toasts/* clearUnreadForAgent */.d_)(null);
|
|
79259
|
-
}, [
|
|
79260
|
-
showMenu
|
|
79261
|
-
]);
|
|
79262
|
-
useEventNotifications({
|
|
79263
|
-
shouldNotify: (ev)=>{
|
|
79264
|
-
// Scheduled task firings ALWAYS notify. The user explicitly set them up
|
|
79265
|
-
// out-of-band — "remind me at 3pm", "every weekday morning". Even if
|
|
79266
|
-
// they happen to be on that agent's chat, they may not be actively
|
|
79267
|
-
// reading right when the task fires; the whole point is the ping.
|
|
79268
|
-
if (ev.type === "task_completed") return true;
|
|
79269
|
-
// For ordinary run completions (the agent finished a turn the user
|
|
79270
|
-
// just sent), suppress only when the user is actively reading that
|
|
79271
|
-
// exact chat — the new message is already on screen.
|
|
79272
|
-
//
|
|
79273
|
-
// Otherwise notify in either of two cases:
|
|
79274
|
-
// 1. The PWA isn't focused (background tab, minimized, focused on
|
|
79275
|
-
// another app). Detected via document.hidden + !hasFocus().
|
|
79276
|
-
// 2. The PWA IS focused but the user is on a different agent / a
|
|
79277
|
-
// different tab inside the app (Memory, Tasks, Models, …).
|
|
79278
|
-
const pwaUnfocused = typeof document !== "undefined" && (document.hidden || !document.hasFocus());
|
|
79279
|
-
const evAgentId = ev.agent_id;
|
|
79280
|
-
const onSameAgentChat = stateRef.current.activeTab === "chat" && evAgentId !== null && evAgentId === stateRef.current.activeAgentId;
|
|
79281
|
-
return pwaUnfocused || !onSameAgentChat;
|
|
79282
|
-
},
|
|
79283
|
-
resolveAgentName: (agentId)=>{
|
|
79284
|
-
if (!agentId) return (0,app_config/* getAppName */.fj)();
|
|
79285
|
-
const a = agentsRef.current.find((x)=>x.id === agentId);
|
|
79286
|
-
return a?.name ?? (0,app_config/* getAppName */.fj)();
|
|
79287
|
-
},
|
|
79288
|
-
resolveAgentIcon: (agentId)=>{
|
|
79289
|
-
if (!agentId) return null;
|
|
79290
|
-
const a = agentsRef.current.find((x)=>x.id === agentId);
|
|
79291
|
-
return a?.icon ?? null;
|
|
79292
|
-
}
|
|
80128
|
+
Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 59255));
|
|
80129
|
+
;
|
|
80130
|
+
Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 756075));
|
|
80131
|
+
;
|
|
80132
|
+
Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 467181));
|
|
80133
|
+
|
|
80134
|
+
|
|
80135
|
+
/***/ }),
|
|
80136
|
+
|
|
80137
|
+
/***/ 499647:
|
|
80138
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
80139
|
+
|
|
80140
|
+
"use strict";
|
|
80141
|
+
__webpack_require__.r(__webpack_exports__);
|
|
80142
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
80143
|
+
/* harmony export */ "default": () => (/* binding */ Home),
|
|
80144
|
+
/* harmony export */ dynamic: () => (/* binding */ dynamic)
|
|
80145
|
+
/* harmony export */ });
|
|
80146
|
+
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(305735);
|
|
80147
|
+
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__);
|
|
80148
|
+
/* harmony import */ var _components_layout_AppShell__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(59255);
|
|
80149
|
+
/* harmony import */ var _components_setup_UnlockScreen__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(467181);
|
|
80150
|
+
/* harmony import */ var _components_setup_FirstKeySetup__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(756075);
|
|
80151
|
+
/* harmony import */ var _lib_stores_model_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(780937);
|
|
80152
|
+
/* harmony import */ var _lib_stores_agent_configs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(41720);
|
|
80153
|
+
/* harmony import */ var _lib_db__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(251244);
|
|
80154
|
+
/* harmony import */ var _lib_crypto_master_key__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(28226);
|
|
80155
|
+
|
|
80156
|
+
|
|
80157
|
+
|
|
80158
|
+
|
|
80159
|
+
|
|
80160
|
+
|
|
80161
|
+
|
|
80162
|
+
|
|
80163
|
+
// Re-evaluate on every request: the master-key lock state changes at
|
|
80164
|
+
// runtime (PIN unlock) and is not an explicit dynamic dependency Next can
|
|
80165
|
+
// see, so without this the page would be statically prerendered at build
|
|
80166
|
+
// time (when the key is locked) and served forever from the route cache.
|
|
80167
|
+
const dynamic = "force-dynamic";
|
|
80168
|
+
function Home() {
|
|
80169
|
+
// Touch the DB so the master-key bootstrap runs (ADR-0005). If the
|
|
80170
|
+
// user enabled the PIN (ADR-0063), the master key is locked here and
|
|
80171
|
+
// any decrypt would throw — render the unlock splash instead.
|
|
80172
|
+
(0,_lib_db__WEBPACK_IMPORTED_MODULE_6__/* .getDb */ .Lf)();
|
|
80173
|
+
if ((0,_lib_crypto_master_key__WEBPACK_IMPORTED_MODULE_7__/* .isMasterKeyLocked */ .wL)()) {
|
|
80174
|
+
return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components_setup_UnlockScreen__WEBPACK_IMPORTED_MODULE_2__.UnlockScreen, {});
|
|
80175
|
+
}
|
|
80176
|
+
// Keep fresh and incomplete installations in the guided setup until both
|
|
80177
|
+
// a usable model and an assistant exist.
|
|
80178
|
+
if ((0,_lib_stores_model_config__WEBPACK_IMPORTED_MODULE_4__/* .listEnabledModelConfigs */ ["if"])().length === 0 || (0,_lib_stores_agent_configs__WEBPACK_IMPORTED_MODULE_5__/* .listAgentConfigs */ .zb)().length === 0) {
|
|
80179
|
+
return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components_setup_FirstKeySetup__WEBPACK_IMPORTED_MODULE_3__.FirstKeySetup, {});
|
|
80180
|
+
}
|
|
80181
|
+
return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components_layout_AppShell__WEBPACK_IMPORTED_MODULE_1__.AppShell, {});
|
|
80182
|
+
}
|
|
80183
|
+
|
|
80184
|
+
|
|
80185
|
+
/***/ }),
|
|
80186
|
+
|
|
80187
|
+
/***/ 502116:
|
|
80188
|
+
/***/ ((module, exports, __webpack_require__) => {
|
|
80189
|
+
|
|
80190
|
+
"use strict";
|
|
80191
|
+
/* __next_internal_client_entry_do_not_use__ cjs */
|
|
80192
|
+
Object.defineProperty(exports, "__esModule", ({
|
|
80193
|
+
value: true
|
|
80194
|
+
}));
|
|
80195
|
+
0 && (0);
|
|
80196
|
+
function _export(target, all) {
|
|
80197
|
+
for(var name in all)Object.defineProperty(target, name, {
|
|
80198
|
+
enumerable: true,
|
|
80199
|
+
get: all[name]
|
|
79293
80200
|
});
|
|
79294
|
-
|
|
79295
|
-
|
|
79296
|
-
|
|
79297
|
-
|
|
79298
|
-
|
|
79299
|
-
|
|
79300
|
-
|
|
79301
|
-
|
|
79302
|
-
|
|
79303
|
-
|
|
79304
|
-
|
|
79305
|
-
|
|
79306
|
-
|
|
79307
|
-
|
|
79308
|
-
|
|
79309
|
-
|
|
79310
|
-
|
|
79311
|
-
|
|
79312
|
-
|
|
80201
|
+
}
|
|
80202
|
+
_export(exports, {
|
|
80203
|
+
/**
|
|
80204
|
+
* A React component that extends the HTML `<a>` element to provide
|
|
80205
|
+
* [prefetching](https://nextjs.org/docs/app/building-your-application/routing/linking-and-navigating#2-prefetching)
|
|
80206
|
+
* and client-side navigation. This is the primary way to navigate between routes in Next.js.
|
|
80207
|
+
*
|
|
80208
|
+
* @remarks
|
|
80209
|
+
* - Prefetching is only enabled in production.
|
|
80210
|
+
*
|
|
80211
|
+
* @see https://nextjs.org/docs/app/api-reference/components/link
|
|
80212
|
+
*/ default: function() {
|
|
80213
|
+
return LinkComponent;
|
|
80214
|
+
},
|
|
80215
|
+
useLinkStatus: function() {
|
|
80216
|
+
return useLinkStatus;
|
|
80217
|
+
}
|
|
80218
|
+
});
|
|
80219
|
+
const _interop_require_wildcard = __webpack_require__(124814);
|
|
80220
|
+
const _jsxruntime = __webpack_require__(548249);
|
|
80221
|
+
const _react = /*#__PURE__*/ _interop_require_wildcard._(__webpack_require__(367484));
|
|
80222
|
+
const _formaturl = __webpack_require__(279925);
|
|
80223
|
+
const _approutercontextsharedruntime = __webpack_require__(730836);
|
|
80224
|
+
const _usemergedref = __webpack_require__(57272);
|
|
80225
|
+
const _utils = __webpack_require__(830167);
|
|
80226
|
+
const _addbasepath = __webpack_require__(775729);
|
|
80227
|
+
const _routerreducertypes = __webpack_require__(52204);
|
|
80228
|
+
const _links = __webpack_require__(778756);
|
|
80229
|
+
const _islocalurl = __webpack_require__(152836);
|
|
80230
|
+
const _types = __webpack_require__(610881);
|
|
80231
|
+
function isModifiedEvent(event) {
|
|
80232
|
+
const eventTarget = event.currentTarget;
|
|
80233
|
+
const target = eventTarget.getAttribute('target');
|
|
80234
|
+
return target && target !== '_self' || event.metaKey || event.ctrlKey || event.shiftKey || event.altKey || // triggers resource download
|
|
80235
|
+
event.nativeEvent && event.nativeEvent.which === 2;
|
|
80236
|
+
}
|
|
80237
|
+
function linkClicked(e, href, linkInstanceRef, replace, scroll, onNavigate, transitionTypes, prefetchIntent = 'none') {
|
|
80238
|
+
if (false) {}
|
|
80239
|
+
}
|
|
80240
|
+
function formatStringOrUrl(urlObjOrString) {
|
|
80241
|
+
if (typeof urlObjOrString === 'string') {
|
|
80242
|
+
return urlObjOrString;
|
|
80243
|
+
}
|
|
80244
|
+
return (0, _formaturl.formatUrl)(urlObjOrString);
|
|
80245
|
+
}
|
|
80246
|
+
function LinkComponent(props) {
|
|
80247
|
+
const [linkStatus, setOptimisticLinkStatus] = (0, _react.useOptimistic)(_links.IDLE_LINK_STATUS);
|
|
80248
|
+
let children;
|
|
80249
|
+
const linkInstanceRef = (0, _react.useRef)(null);
|
|
80250
|
+
const { href: hrefProp, as: asProp, children: childrenProp, prefetch: prefetchProp = null, passHref, replace, shallow, scroll, onClick, onMouseEnter: onMouseEnterProp, onTouchStart: onTouchStartProp, legacyBehavior = false, onNavigate, transitionTypes, ref: forwardedRef, unstable_dynamicOnHover, ...restProps } = props;
|
|
80251
|
+
children = childrenProp;
|
|
80252
|
+
if (legacyBehavior && (typeof children === 'string' || typeof children === 'number')) {
|
|
80253
|
+
children = /*#__PURE__*/ (0, _jsxruntime.jsx)("a", {
|
|
80254
|
+
children: children
|
|
80255
|
+
});
|
|
80256
|
+
}
|
|
80257
|
+
const router = _react.default.useContext(_approutercontextsharedruntime.AppRouterContext);
|
|
80258
|
+
const prefetchEnabled = prefetchProp !== false;
|
|
80259
|
+
const prefetchIntent = prefetchProp === false ? 'none' : prefetchProp === true ? 'full' : 'auto';
|
|
80260
|
+
const fetchStrategy = prefetchIntent !== 'none' ? getFetchStrategyFromPrefetchIntent(prefetchIntent) : _types.FetchStrategy.PPR;
|
|
80261
|
+
if (false) {}
|
|
80262
|
+
const resolvedHref = asProp || hrefProp;
|
|
80263
|
+
const formattedHref = formatStringOrUrl(resolvedHref);
|
|
80264
|
+
if (false) {}
|
|
80265
|
+
// This will return the first child, if multiple are provided it will throw an error
|
|
80266
|
+
let child;
|
|
80267
|
+
if (legacyBehavior) {
|
|
80268
|
+
if (children?.$$typeof === Symbol.for('react.lazy')) {
|
|
80269
|
+
throw new Error(`\`<Link legacyBehavior>\` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's \`<a>\` tag.`);
|
|
79313
80270
|
}
|
|
79314
|
-
|
|
79315
|
-
|
|
80271
|
+
if (false) {} else {
|
|
80272
|
+
child = _react.default.Children.only(children);
|
|
79316
80273
|
}
|
|
79317
|
-
|
|
79318
|
-
|
|
79319
|
-
|
|
79320
|
-
|
|
79321
|
-
|
|
79322
|
-
|
|
79323
|
-
|
|
79324
|
-
|
|
79325
|
-
|
|
79326
|
-
|
|
79327
|
-
|
|
79328
|
-
|
|
79329
|
-
|
|
79330
|
-
|
|
79331
|
-
|
|
79332
|
-
if (false) {}
|
|
79333
|
-
}
|
|
80274
|
+
} else {
|
|
80275
|
+
if (false) {}
|
|
80276
|
+
}
|
|
80277
|
+
const childRef = legacyBehavior ? child && typeof child === 'object' && child.ref : forwardedRef;
|
|
80278
|
+
// Capture the Owner Stack during render so dev-only warnings emitted later
|
|
80279
|
+
// at navigation time can be associated with the JSX that created
|
|
80280
|
+
// this <Link>.
|
|
80281
|
+
const ownerStack = false ? 0 : undefined;
|
|
80282
|
+
// Use a callback ref to attach an IntersectionObserver to the anchor tag on
|
|
80283
|
+
// mount. In the future we will also use this to keep track of all the
|
|
80284
|
+
// currently mounted <Link> instances, e.g. so we can re-prefetch them after
|
|
80285
|
+
// a revalidation or refresh.
|
|
80286
|
+
const observeLinkVisibilityOnMount = _react.default.useCallback((element)=>{
|
|
80287
|
+
if (router !== null) {
|
|
80288
|
+
linkInstanceRef.current = (0, _links.mountLinkInstance)(element, formattedHref, router, fetchStrategy, prefetchEnabled, setOptimisticLinkStatus, ownerStack);
|
|
79334
80289
|
}
|
|
79335
|
-
void probe();
|
|
79336
|
-
timer = setInterval(probe, 30000);
|
|
79337
80290
|
return ()=>{
|
|
79338
|
-
|
|
79339
|
-
|
|
79340
|
-
|
|
79341
|
-
|
|
80291
|
+
if (linkInstanceRef.current) {
|
|
80292
|
+
(0, _links.unmountLinkForCurrentNavigation)(linkInstanceRef.current);
|
|
80293
|
+
linkInstanceRef.current = null;
|
|
80294
|
+
}
|
|
80295
|
+
(0, _links.unmountPrefetchableInstance)(element);
|
|
79342
80296
|
};
|
|
79343
|
-
}, []);
|
|
79344
|
-
// After unlocking, the app may have temporarily lost in-memory list state
|
|
79345
|
-
// due to 423 responses. Rehydrate a usable active agent automatically so
|
|
79346
|
-
// mobile PWA users are not stranded on a "no agent configured" state.
|
|
79347
|
-
process.env.__NEXT_PRIVATE_MINIMIZE_MACRO_FALSE && (0,react.useEffect)(()=>{
|
|
79348
|
-
if (postUnlockPreferredAgentId === undefined) return;
|
|
79349
|
-
if (!agentsLoaded) return;
|
|
79350
|
-
const preferred = postUnlockPreferredAgentId ? agents.find((a)=>a.id === postUnlockPreferredAgentId) ?? null : null;
|
|
79351
|
-
const fallback = agents.find((a)=>a.is_default) ?? agents[0] ?? null;
|
|
79352
|
-
const nextAgent = preferred ?? fallback;
|
|
79353
|
-
if (nextAgent && state.activeAgentId !== nextAgent.id) {
|
|
79354
|
-
dispatch({
|
|
79355
|
-
type: "SET_AGENT",
|
|
79356
|
-
agentId: nextAgent.id
|
|
79357
|
-
});
|
|
79358
|
-
}
|
|
79359
|
-
setPostUnlockPreferredAgentId(undefined);
|
|
79360
|
-
}, [
|
|
79361
|
-
agents,
|
|
79362
|
-
agentsLoaded,
|
|
79363
|
-
dispatch,
|
|
79364
|
-
postUnlockPreferredAgentId,
|
|
79365
|
-
state.activeAgentId
|
|
79366
|
-
]);
|
|
79367
|
-
// Shared post-unlock landing: clear the current chat and force the
|
|
79368
|
-
// BootScreen to remount so the user lands on the agent picker. Used
|
|
79369
|
-
// by BOTH the screen-unlock and the master-key decrypt paths so the
|
|
79370
|
-
// two transitions feel identical from the user's side.
|
|
79371
|
-
const landOnAgentPicker = (0,react.useCallback)(()=>{
|
|
79372
|
-
const preferredAgentId = stateRef.current.activeAgentId;
|
|
79373
|
-
dispatch({
|
|
79374
|
-
type: "NEW_CHAT"
|
|
79375
|
-
});
|
|
79376
|
-
setBootSeq((n)=>n + 1);
|
|
79377
|
-
setPostUnlockPreferredAgentId(preferredAgentId ?? null);
|
|
79378
|
-
void refreshAgents();
|
|
79379
80297
|
}, [
|
|
79380
|
-
|
|
79381
|
-
|
|
80298
|
+
prefetchEnabled,
|
|
80299
|
+
formattedHref,
|
|
80300
|
+
router,
|
|
80301
|
+
fetchStrategy,
|
|
80302
|
+
setOptimisticLinkStatus,
|
|
80303
|
+
ownerStack
|
|
79382
80304
|
]);
|
|
79383
|
-
|
|
79384
|
-
|
|
79385
|
-
|
|
79386
|
-
|
|
79387
|
-
|
|
79388
|
-
|
|
79389
|
-
|
|
79390
|
-
|
|
79391
|
-
|
|
79392
|
-
|
|
79393
|
-
|
|
80305
|
+
const mergedRef = (0, _usemergedref.useMergedRef)(observeLinkVisibilityOnMount, childRef);
|
|
80306
|
+
const childProps = {
|
|
80307
|
+
ref: mergedRef,
|
|
80308
|
+
onClick (e) {
|
|
80309
|
+
if (false) {}
|
|
80310
|
+
if (!legacyBehavior && typeof onClick === 'function') {
|
|
80311
|
+
onClick(e);
|
|
80312
|
+
}
|
|
80313
|
+
if (legacyBehavior && child.props && typeof child.props.onClick === 'function') {
|
|
80314
|
+
child.props.onClick(e);
|
|
80315
|
+
}
|
|
80316
|
+
if (!router) {
|
|
80317
|
+
return;
|
|
80318
|
+
}
|
|
80319
|
+
if (e.defaultPrevented) {
|
|
80320
|
+
return;
|
|
80321
|
+
}
|
|
80322
|
+
linkClicked(e, formattedHref, linkInstanceRef, replace, scroll, onNavigate, transitionTypes, prefetchIntent);
|
|
79394
80323
|
},
|
|
79395
|
-
|
|
79396
|
-
|
|
79397
|
-
|
|
79398
|
-
|
|
79399
|
-
|
|
79400
|
-
|
|
79401
|
-
|
|
79402
|
-
|
|
79403
|
-
|
|
79404
|
-
|
|
79405
|
-
|
|
79406
|
-
|
|
79407
|
-
|
|
79408
|
-
|
|
79409
|
-
|
|
79410
|
-
|
|
79411
|
-
|
|
79412
|
-
|
|
79413
|
-
|
|
79414
|
-
|
|
79415
|
-
|
|
79416
|
-
|
|
79417
|
-
|
|
79418
|
-
|
|
79419
|
-
|
|
79420
|
-
|
|
79421
|
-
|
|
79422
|
-
|
|
79423
|
-
|
|
79424
|
-
|
|
79425
|
-
|
|
79426
|
-
|
|
79427
|
-
|
|
79428
|
-
|
|
79429
|
-
|
|
79430
|
-
|
|
79431
|
-
|
|
79432
|
-
|
|
79433
|
-
|
|
79434
|
-
|
|
79435
|
-
|
|
79436
|
-
|
|
79437
|
-
|
|
79438
|
-
|
|
79439
|
-
|
|
79440
|
-
|
|
79441
|
-
|
|
79442
|
-
|
|
79443
|
-
|
|
79444
|
-
|
|
79445
|
-
|
|
79446
|
-
|
|
79447
|
-
|
|
79448
|
-
|
|
79449
|
-
|
|
79450
|
-
|
|
79451
|
-
|
|
79452
|
-
|
|
79453
|
-
|
|
79454
|
-
|
|
79455
|
-
|
|
79456
|
-
|
|
79457
|
-
|
|
79458
|
-
paddingTop: "var(--app-safe-top)",
|
|
79459
|
-
paddingLeft: "calc(env(safe-area-inset-left) + 1rem)",
|
|
79460
|
-
paddingRight: "calc(env(safe-area-inset-right) + 1rem)",
|
|
79461
|
-
height: "calc(3rem + var(--app-safe-top))"
|
|
79462
|
-
},
|
|
79463
|
-
children: [
|
|
79464
|
-
/*#__PURE__*/ (0,react_jsx_runtime.jsx)(AgentSwitcher, {
|
|
79465
|
-
agents: agents,
|
|
79466
|
-
activeAgentId: state.activeAgentId,
|
|
79467
|
-
loading: agentsLoading,
|
|
79468
|
-
onSelect: onSelectAgent
|
|
79469
|
-
}),
|
|
79470
|
-
/*#__PURE__*/ (0,react_jsx_runtime.jsx)(HeaderActivity, {}),
|
|
79471
|
-
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("button", {
|
|
79472
|
-
"aria-label": "Menu",
|
|
79473
|
-
"aria-expanded": showMenu,
|
|
79474
|
-
"aria-controls": "main-navigation",
|
|
79475
|
-
onClick: ()=>{
|
|
79476
|
-
setShowMenu((v)=>!v);
|
|
79477
|
-
},
|
|
79478
|
-
className: `control-tap ml-auto relative shrink-0 p-2.5 rounded transition-colors xl:hidden ${showMenu ? "text-fg bg-surface-3" : "text-fg-faint hover:text-fg-muted hover:bg-surface-3/50"}`,
|
|
79479
|
-
title: unreadCount > 0 ? `${unreadCount} new ${unreadCount === 1 ? "alert" : "alerts"}` : "Menu",
|
|
79480
|
-
children: [
|
|
79481
|
-
/*#__PURE__*/ (0,react_jsx_runtime.jsx)(Menu, {
|
|
79482
|
-
size: 21
|
|
79483
|
-
}),
|
|
79484
|
-
unreadCount > 0 && /*#__PURE__*/ (0,react_jsx_runtime.jsx)("span", {
|
|
79485
|
-
className: "absolute top-1 right-1 min-w-[14px] h-[14px] px-1 rounded-full bg-rose-500 border border-surface-2 text-[9px] font-bold text-white flex items-center justify-center leading-none animate-pulse",
|
|
79486
|
-
children: unreadCount > 9 ? "9+" : unreadCount
|
|
79487
|
-
})
|
|
79488
|
-
]
|
|
79489
|
-
})
|
|
79490
|
-
]
|
|
79491
|
-
}),
|
|
79492
|
-
/*#__PURE__*/ (0,react_jsx_runtime.jsx)("aside", {
|
|
79493
|
-
"aria-label": "Agents",
|
|
79494
|
-
className: "glass fixed bottom-0 left-0 z-40 hidden w-64 border-r border-border/60 pb-safe 2xl:block",
|
|
79495
|
-
style: {
|
|
79496
|
-
top: "calc(3rem + var(--app-safe-top))"
|
|
79497
|
-
},
|
|
79498
|
-
children: /*#__PURE__*/ (0,react_jsx_runtime.jsx)(AgentSwitcher, {
|
|
79499
|
-
layout: "sidebar",
|
|
79500
|
-
agents: agents,
|
|
79501
|
-
activeAgentId: state.activeAgentId,
|
|
79502
|
-
loading: agentsLoading,
|
|
79503
|
-
onSelect: onSelectAgent
|
|
79504
|
-
})
|
|
79505
|
-
}),
|
|
79506
|
-
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
79507
|
-
"data-testid": "workspace-content",
|
|
79508
|
-
className: `mx-auto min-h-0 flex-1 relative w-full overflow-hidden ${state.activeTab === "chat" ? "" : "max-w-7xl"}`,
|
|
79509
|
-
children: [
|
|
79510
|
-
mountedTabs.has("chat") && /*#__PURE__*/ (0,react_jsx_runtime.jsx)(react.Activity, {
|
|
79511
|
-
mode: state.activeTab === "chat" ? "visible" : "hidden",
|
|
79512
|
-
children: /*#__PURE__*/ (0,react_jsx_runtime.jsx)(ChatView, {
|
|
79513
|
-
threadId: threadId,
|
|
79514
|
-
agentId: state.activeAgentId,
|
|
79515
|
-
sessionLoading: sessionLoading,
|
|
79516
|
-
sessionError: sessionError,
|
|
79517
|
-
onMessageSent: onMessageSent
|
|
79518
|
-
}, state.activeAgentId ?? "no-agent")
|
|
79519
|
-
}),
|
|
79520
|
-
mountedTabs.has("dashboard") && /*#__PURE__*/ (0,react_jsx_runtime.jsx)(react.Activity, {
|
|
79521
|
-
mode: state.activeTab === "dashboard" ? "visible" : "hidden",
|
|
79522
|
-
children: /*#__PURE__*/ (0,react_jsx_runtime.jsx)(DashboardPanel, {})
|
|
79523
|
-
}),
|
|
79524
|
-
mountedTabs.has("agents") && /*#__PURE__*/ (0,react_jsx_runtime.jsx)(react.Activity, {
|
|
79525
|
-
mode: state.activeTab === "agents" ? "visible" : "hidden",
|
|
79526
|
-
children: /*#__PURE__*/ (0,react_jsx_runtime.jsx)(AgentsPanel, {})
|
|
79527
|
-
}),
|
|
79528
|
-
isFullMode && mountedTabs.has("memory") && /*#__PURE__*/ (0,react_jsx_runtime.jsx)(react.Activity, {
|
|
79529
|
-
mode: state.activeTab === "memory" ? "visible" : "hidden",
|
|
79530
|
-
children: /*#__PURE__*/ (0,react_jsx_runtime.jsx)(UnifiedMemoryPanel, {})
|
|
79531
|
-
}),
|
|
79532
|
-
mountedTabs.has("models") && /*#__PURE__*/ (0,react_jsx_runtime.jsx)(react.Activity, {
|
|
79533
|
-
mode: state.activeTab === "models" ? "visible" : "hidden",
|
|
79534
|
-
children: /*#__PURE__*/ (0,react_jsx_runtime.jsx)("div", {
|
|
79535
|
-
className: "mx-auto h-full w-full max-w-5xl min-w-0",
|
|
79536
|
-
children: /*#__PURE__*/ (0,react_jsx_runtime.jsx)(ModelsPanel, {})
|
|
79537
|
-
})
|
|
79538
|
-
}),
|
|
79539
|
-
mountedTabs.has("credentials") && /*#__PURE__*/ (0,react_jsx_runtime.jsx)(react.Activity, {
|
|
79540
|
-
mode: state.activeTab === "credentials" ? "visible" : "hidden",
|
|
79541
|
-
children: /*#__PURE__*/ (0,react_jsx_runtime.jsx)("div", {
|
|
79542
|
-
className: "mx-auto h-full w-full max-w-5xl min-w-0",
|
|
79543
|
-
children: /*#__PURE__*/ (0,react_jsx_runtime.jsx)(CredentialsPanel, {})
|
|
79544
|
-
})
|
|
79545
|
-
}),
|
|
79546
|
-
mountedTabs.has("mcp") && /*#__PURE__*/ (0,react_jsx_runtime.jsx)(react.Activity, {
|
|
79547
|
-
mode: state.activeTab === "mcp" ? "visible" : "hidden",
|
|
79548
|
-
children: /*#__PURE__*/ (0,react_jsx_runtime.jsx)(MCPPanel, {})
|
|
79549
|
-
}),
|
|
79550
|
-
mountedTabs.has("tools") && /*#__PURE__*/ (0,react_jsx_runtime.jsx)(react.Activity, {
|
|
79551
|
-
mode: state.activeTab === "tools" ? "visible" : "hidden",
|
|
79552
|
-
children: /*#__PURE__*/ (0,react_jsx_runtime.jsx)(ToolsPanel, {})
|
|
79553
|
-
}),
|
|
79554
|
-
mountedTabs.has("tasks") && /*#__PURE__*/ (0,react_jsx_runtime.jsx)(react.Activity, {
|
|
79555
|
-
mode: state.activeTab === "tasks" ? "visible" : "hidden",
|
|
79556
|
-
children: /*#__PURE__*/ (0,react_jsx_runtime.jsx)(ScheduledTasksPanel, {})
|
|
79557
|
-
}),
|
|
79558
|
-
isFullMode && mountedTabs.has("bridges") && /*#__PURE__*/ (0,react_jsx_runtime.jsx)(react.Activity, {
|
|
79559
|
-
mode: state.activeTab === "bridges" ? "visible" : "hidden",
|
|
79560
|
-
children: /*#__PURE__*/ (0,react_jsx_runtime.jsx)(BridgesPanel, {})
|
|
79561
|
-
}),
|
|
79562
|
-
mountedTabs.has("profile") && /*#__PURE__*/ (0,react_jsx_runtime.jsx)(react.Activity, {
|
|
79563
|
-
mode: state.activeTab === "profile" ? "visible" : "hidden",
|
|
79564
|
-
children: /*#__PURE__*/ (0,react_jsx_runtime.jsx)(ProfilePanel, {})
|
|
79565
|
-
}),
|
|
79566
|
-
isFullMode && mountedTabs.has("logs") && /*#__PURE__*/ (0,react_jsx_runtime.jsx)(react.Activity, {
|
|
79567
|
-
mode: state.activeTab === "logs" ? "visible" : "hidden",
|
|
79568
|
-
children: /*#__PURE__*/ (0,react_jsx_runtime.jsx)("div", {
|
|
79569
|
-
className: "mx-auto h-full w-full max-w-5xl min-w-0",
|
|
79570
|
-
children: /*#__PURE__*/ (0,react_jsx_runtime.jsx)(LogsPanel, {})
|
|
79571
|
-
})
|
|
79572
|
-
}),
|
|
79573
|
-
isFullMode && mountedTabs.has("env") && /*#__PURE__*/ (0,react_jsx_runtime.jsx)(react.Activity, {
|
|
79574
|
-
mode: state.activeTab === "env" ? "visible" : "hidden",
|
|
79575
|
-
children: /*#__PURE__*/ (0,react_jsx_runtime.jsx)("div", {
|
|
79576
|
-
className: "mx-auto h-full w-full max-w-5xl min-w-0",
|
|
79577
|
-
children: /*#__PURE__*/ (0,react_jsx_runtime.jsx)(EnvVarsPanel, {})
|
|
79578
|
-
})
|
|
79579
|
-
}),
|
|
79580
|
-
mountedTabs.has("settings") && /*#__PURE__*/ (0,react_jsx_runtime.jsx)(react.Activity, {
|
|
79581
|
-
mode: state.activeTab === "settings" ? "visible" : "hidden",
|
|
79582
|
-
children: /*#__PURE__*/ (0,react_jsx_runtime.jsx)(SettingsPanel, {})
|
|
79583
|
-
}),
|
|
79584
|
-
showMenu && /*#__PURE__*/ (0,react_jsx_runtime.jsx)("div", {
|
|
79585
|
-
className: "fixed left-0 right-0 bottom-0 bg-black/20 z-30 xl:hidden",
|
|
79586
|
-
style: {
|
|
79587
|
-
top: "calc(3rem + var(--app-safe-top))"
|
|
79588
|
-
},
|
|
79589
|
-
onClick: ()=>setShowMenu(false)
|
|
79590
|
-
})
|
|
79591
|
-
]
|
|
79592
|
-
}),
|
|
79593
|
-
/*#__PURE__*/ (0,react_jsx_runtime.jsx)(MenuPanel, {
|
|
79594
|
-
open: showMenu,
|
|
79595
|
-
activeTab: state.activeTab,
|
|
79596
|
-
onClose: ()=>setShowMenu(false),
|
|
79597
|
-
onSetTab: (tab)=>dispatch({
|
|
79598
|
-
type: "SET_TAB",
|
|
79599
|
-
tab
|
|
79600
|
-
})
|
|
79601
|
-
})
|
|
79602
|
-
]
|
|
79603
|
-
}));
|
|
80324
|
+
onMouseEnter (e) {
|
|
80325
|
+
if (!legacyBehavior && typeof onMouseEnterProp === 'function') {
|
|
80326
|
+
onMouseEnterProp(e);
|
|
80327
|
+
}
|
|
80328
|
+
if (legacyBehavior && child.props && typeof child.props.onMouseEnter === 'function') {
|
|
80329
|
+
child.props.onMouseEnter(e);
|
|
80330
|
+
}
|
|
80331
|
+
if (!router) {
|
|
80332
|
+
return;
|
|
80333
|
+
}
|
|
80334
|
+
if (!prefetchEnabled || "production" === 'development') {
|
|
80335
|
+
return;
|
|
80336
|
+
}
|
|
80337
|
+
const upgradeToDynamicPrefetch = unstable_dynamicOnHover === true;
|
|
80338
|
+
(0, _links.onNavigationIntent)(e.currentTarget, upgradeToDynamicPrefetch);
|
|
80339
|
+
},
|
|
80340
|
+
onTouchStart: false ? 0 : function onTouchStart(e) {
|
|
80341
|
+
if (!legacyBehavior && typeof onTouchStartProp === 'function') {
|
|
80342
|
+
onTouchStartProp(e);
|
|
80343
|
+
}
|
|
80344
|
+
if (legacyBehavior && child.props && typeof child.props.onTouchStart === 'function') {
|
|
80345
|
+
child.props.onTouchStart(e);
|
|
80346
|
+
}
|
|
80347
|
+
if (!router) {
|
|
80348
|
+
return;
|
|
80349
|
+
}
|
|
80350
|
+
if (!prefetchEnabled) {
|
|
80351
|
+
return;
|
|
80352
|
+
}
|
|
80353
|
+
const upgradeToDynamicPrefetch = unstable_dynamicOnHover === true;
|
|
80354
|
+
(0, _links.onNavigationIntent)(e.currentTarget, upgradeToDynamicPrefetch);
|
|
80355
|
+
}
|
|
80356
|
+
};
|
|
80357
|
+
// If the url is absolute, we can bypass the logic to prepend the basePath.
|
|
80358
|
+
if ((0, _utils.isAbsoluteUrl)(formattedHref)) {
|
|
80359
|
+
childProps.href = formattedHref;
|
|
80360
|
+
} else if (!legacyBehavior || passHref || child.type === 'a' && !('href' in child.props)) {
|
|
80361
|
+
childProps.href = (0, _addbasepath.addBasePath)(formattedHref);
|
|
80362
|
+
}
|
|
80363
|
+
let link;
|
|
80364
|
+
if (legacyBehavior) {
|
|
80365
|
+
if (false) {}
|
|
80366
|
+
link = /*#__PURE__*/ _react.default.cloneElement(child, childProps);
|
|
80367
|
+
} else {
|
|
80368
|
+
link = /*#__PURE__*/ (0, _jsxruntime.jsx)("a", {
|
|
80369
|
+
...restProps,
|
|
80370
|
+
...childProps,
|
|
80371
|
+
children: children
|
|
80372
|
+
});
|
|
80373
|
+
}
|
|
80374
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsx)(LinkStatusContext.Provider, {
|
|
80375
|
+
value: linkStatus,
|
|
80376
|
+
children: link
|
|
80377
|
+
});
|
|
80378
|
+
}
|
|
80379
|
+
const LinkStatusContext = /*#__PURE__*/ (0, _react.createContext)(_links.IDLE_LINK_STATUS);
|
|
80380
|
+
const useLinkStatus = ()=>{
|
|
80381
|
+
return (0, _react.useContext)(LinkStatusContext);
|
|
80382
|
+
};
|
|
80383
|
+
function getFetchStrategyFromPrefetchIntent(prefetchIntent) {
|
|
80384
|
+
if (false) {} else {
|
|
80385
|
+
return prefetchIntent === 'auto' ? _types.FetchStrategy.PPR : _types.FetchStrategy.Full;
|
|
80386
|
+
}
|
|
79604
80387
|
}
|
|
80388
|
+
if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
|
|
80389
|
+
Object.defineProperty(exports.default, '__esModule', {
|
|
80390
|
+
value: true
|
|
80391
|
+
});
|
|
80392
|
+
Object.assign(exports.default, exports);
|
|
80393
|
+
module.exports = exports.default;
|
|
80394
|
+
} //# sourceMappingURL=link.js.map
|
|
80395
|
+
|
|
80396
|
+
|
|
80397
|
+
/***/ }),
|
|
80398
|
+
|
|
80399
|
+
/***/ 529294:
|
|
80400
|
+
/***/ ((module) => {
|
|
79605
80401
|
|
|
80402
|
+
"use strict";
|
|
80403
|
+
module.exports = require("next/dist/server/app-render/work-async-storage.external.js");
|
|
79606
80404
|
|
|
79607
80405
|
/***/ }),
|
|
79608
80406
|
|
|
79609
80407
|
/***/ 593209:
|
|
79610
80408
|
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
|
|
79611
80409
|
|
|
79612
|
-
Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
80410
|
+
Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 199910));
|
|
79613
80411
|
;
|
|
79614
80412
|
Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 748557));
|
|
79615
80413
|
;
|
|
@@ -79648,6 +80446,85 @@ module.exports = require("node:zlib");
|
|
|
79648
80446
|
"use strict";
|
|
79649
80447
|
module.exports = require("next/dist/shared/lib/no-fallback-error.external.js");
|
|
79650
80448
|
|
|
80449
|
+
/***/ }),
|
|
80450
|
+
|
|
80451
|
+
/***/ 652296:
|
|
80452
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
80453
|
+
|
|
80454
|
+
"use strict";
|
|
80455
|
+
__webpack_require__.r(__webpack_exports__);
|
|
80456
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
80457
|
+
/* harmony export */ __next_app__: () => (/* binding */ __next_app__),
|
|
80458
|
+
/* harmony export */ handler: () => (/* binding */ handler),
|
|
80459
|
+
/* harmony export */ routeModule: () => (/* binding */ routeModule)
|
|
80460
|
+
/* harmony export */ });
|
|
80461
|
+
/* harmony import */ var next_dist_server_app_render_module_loading_instrument_module_getter__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(121635);
|
|
80462
|
+
/* harmony import */ var next_dist_build_templates_app_page_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(986315);
|
|
80463
|
+
/* harmony import */ var next_dist_server_app_render_interop_default__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(301020);
|
|
80464
|
+
/* harmony import */ var next_dist_server_app_render_entry_base__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(961287);
|
|
80465
|
+
/* harmony import */ var next_dist_server_app_render_entry_base__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_app_render_entry_base__WEBPACK_IMPORTED_MODULE_3__);
|
|
80466
|
+
/* harmony reexport (unknown) */ var __WEBPACK_REEXPORT_OBJECT__ = {};
|
|
80467
|
+
/* harmony reexport (unknown) */ for(const __WEBPACK_IMPORT_KEY__ in next_dist_server_app_render_entry_base__WEBPACK_IMPORTED_MODULE_3__) if(["default","__next_app__","routeModule","handler"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = () => next_dist_server_app_render_entry_base__WEBPACK_IMPORTED_MODULE_3__[__WEBPACK_IMPORT_KEY__]
|
|
80468
|
+
/* harmony reexport (unknown) */ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
|
|
80469
|
+
|
|
80470
|
+
const module0 = (0,next_dist_server_app_render_module_loading_instrument_module_getter__WEBPACK_IMPORTED_MODULE_0__/* .instrumentModuleGetter */ .p)(() => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 732056)));
|
|
80471
|
+
const module1 = (0,next_dist_server_app_render_module_loading_instrument_module_getter__WEBPACK_IMPORTED_MODULE_0__/* .instrumentModuleGetter */ .p)(() => Promise.resolve(/* import() eager */).then(__webpack_require__.t.bind(__webpack_require__, 895547, 23)));
|
|
80472
|
+
const module2 = (0,next_dist_server_app_render_module_loading_instrument_module_getter__WEBPACK_IMPORTED_MODULE_0__/* .instrumentModuleGetter */ .p)(() => Promise.resolve(/* import() eager */).then(__webpack_require__.t.bind(__webpack_require__, 355091, 23)));
|
|
80473
|
+
const module3 = (0,next_dist_server_app_render_module_loading_instrument_module_getter__WEBPACK_IMPORTED_MODULE_0__/* .instrumentModuleGetter */ .p)(() => Promise.resolve(/* import() eager */).then(__webpack_require__.t.bind(__webpack_require__, 145270, 23)));
|
|
80474
|
+
const module4 = (0,next_dist_server_app_render_module_loading_instrument_module_getter__WEBPACK_IMPORTED_MODULE_0__/* .instrumentModuleGetter */ .p)(() => Promise.resolve(/* import() eager */).then(__webpack_require__.t.bind(__webpack_require__, 628193, 23)));
|
|
80475
|
+
const page5 = (0,next_dist_server_app_render_module_loading_instrument_module_getter__WEBPACK_IMPORTED_MODULE_0__/* .instrumentModuleGetter */ .p)(() => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 499647)));
|
|
80476
|
+
|
|
80477
|
+
|
|
80478
|
+
const tree = {
|
|
80479
|
+
children: [
|
|
80480
|
+
'',
|
|
80481
|
+
{
|
|
80482
|
+
children: ['__PAGE__', {}, {
|
|
80483
|
+
page: [page5, "/home/runner/work/jarela/jarela/app/page.tsx"],
|
|
80484
|
+
metadata: {
|
|
80485
|
+
icon: [(async (props) => (await (0,next_dist_server_app_render_module_loading_instrument_module_getter__WEBPACK_IMPORTED_MODULE_0__/* .instrumentModuleGetter */ .p)(() => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 586364)))()).default(props))],
|
|
80486
|
+
apple: [],
|
|
80487
|
+
openGraph: [],
|
|
80488
|
+
twitter: [],
|
|
80489
|
+
manifest: "/manifest.webmanifest"
|
|
80490
|
+
}
|
|
80491
|
+
}]
|
|
80492
|
+
},
|
|
80493
|
+
{
|
|
80494
|
+
'layout': [module0, "/home/runner/work/jarela/jarela/app/layout.tsx"],
|
|
80495
|
+
'global-error': [module1, "next/dist/client/components/builtin/global-error.js"],
|
|
80496
|
+
'not-found': [module2, "next/dist/client/components/builtin/not-found.js"],
|
|
80497
|
+
'forbidden': [module3, "next/dist/client/components/builtin/forbidden.js"],
|
|
80498
|
+
'unauthorized': [module4, "next/dist/client/components/builtin/unauthorized.js"],
|
|
80499
|
+
metadata: {
|
|
80500
|
+
icon: [(async (props) => (await (0,next_dist_server_app_render_module_loading_instrument_module_getter__WEBPACK_IMPORTED_MODULE_0__/* .instrumentModuleGetter */ .p)(() => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 586364)))()).default(props))],
|
|
80501
|
+
apple: [],
|
|
80502
|
+
openGraph: [],
|
|
80503
|
+
twitter: [],
|
|
80504
|
+
manifest: "/manifest.webmanifest"
|
|
80505
|
+
}
|
|
80506
|
+
},
|
|
80507
|
+
[]
|
|
80508
|
+
]
|
|
80509
|
+
}.children;
|
|
80510
|
+
const __next_app_require__ = __webpack_require__
|
|
80511
|
+
const __next_app_load_chunk__ = () => Promise.resolve()
|
|
80512
|
+
const entrypoint = (0,next_dist_build_templates_app_page_runtime__WEBPACK_IMPORTED_MODULE_1__/* .createAppPageEntrypoint */ .H)({
|
|
80513
|
+
tree,
|
|
80514
|
+
page: "/page",
|
|
80515
|
+
pathname: "/",
|
|
80516
|
+
require: __next_app_require__,
|
|
80517
|
+
loadChunk: __next_app_load_chunk__,
|
|
80518
|
+
interopDefault: next_dist_server_app_render_interop_default__WEBPACK_IMPORTED_MODULE_2__/* .interopDefault */ .T
|
|
80519
|
+
});
|
|
80520
|
+
const __next_app__ = entrypoint.__next_app__;
|
|
80521
|
+
const routeModule = entrypoint.routeModule;
|
|
80522
|
+
const handler = entrypoint.handler;
|
|
80523
|
+
|
|
80524
|
+
|
|
80525
|
+
//# sourceMappingURL=app-page.js.map
|
|
80526
|
+
|
|
80527
|
+
|
|
79651
80528
|
/***/ }),
|
|
79652
80529
|
|
|
79653
80530
|
/***/ 663033:
|
|
@@ -79807,7 +80684,7 @@ module.exports = require("buffer");
|
|
|
79807
80684
|
var __webpack_require__ = require("../webpack-runtime.js");
|
|
79808
80685
|
__webpack_require__.C(exports);
|
|
79809
80686
|
var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
|
|
79810
|
-
var __webpack_exports__ = __webpack_require__.X(0, [2970,7377,4891,2430,1875,4992,1244,2653,9408], () => (__webpack_exec__(
|
|
80687
|
+
var __webpack_exports__ = __webpack_require__.X(0, [2970,7377,4891,2430,1875,4992,1244,2653,9408], () => (__webpack_exec__(652296)));
|
|
79811
80688
|
module.exports = __webpack_exports__;
|
|
79812
80689
|
|
|
79813
80690
|
})();
|