@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
|
@@ -156,7 +156,19 @@ function useTheme() {
|
|
|
156
156
|
|
|
157
157
|
/***/ }),
|
|
158
158
|
|
|
159
|
-
/***/
|
|
159
|
+
/***/ 49319:
|
|
160
|
+
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
|
|
161
|
+
|
|
162
|
+
Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 63446));
|
|
163
|
+
;
|
|
164
|
+
Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 85047));
|
|
165
|
+
;
|
|
166
|
+
Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 12283));
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
/***/ }),
|
|
170
|
+
|
|
171
|
+
/***/ 63446:
|
|
160
172
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
161
173
|
|
|
162
174
|
"use strict";
|
|
@@ -2942,7 +2954,7 @@ function InputBar({ attachments, onAttachmentsChange, onSubmit, onQueue, onStop,
|
|
|
2942
2954
|
onAttachmentsChange(attachments.filter((_, i)=>i !== idx));
|
|
2943
2955
|
}
|
|
2944
2956
|
return /*#__PURE__*/ (0,jsx_runtime.jsxs)("div", {
|
|
2945
|
-
className: "chat-composer shrink-0 border-t border-border/30 bg-surface/60 backdrop-blur-md
|
|
2957
|
+
className: "workspace-gutter chat-composer shrink-0 border-t border-border/30 bg-surface/60 backdrop-blur-md pt-2",
|
|
2946
2958
|
children: [
|
|
2947
2959
|
attachments.length > 0 && /*#__PURE__*/ (0,jsx_runtime.jsx)("div", {
|
|
2948
2960
|
className: "flex flex-wrap gap-2 mb-2",
|
|
@@ -10072,7 +10084,7 @@ function MessageList({ bottomOverlayHeight = 0, threadId, messages, steeredSegme
|
|
|
10072
10084
|
onClick: ()=>setTopControlsOpen((v)=>!v),
|
|
10073
10085
|
"aria-expanded": topControlsOpen,
|
|
10074
10086
|
"aria-controls": topControlsOpen ? topControlsId : undefined,
|
|
10075
|
-
className: "min-h-11 sm:min-h-8 w-full flex flex-wrap items-center gap-x-2 gap-y-1
|
|
10087
|
+
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",
|
|
10076
10088
|
children: [
|
|
10077
10089
|
/*#__PURE__*/ (0,jsx_runtime.jsx)(CollapseChevron, {
|
|
10078
10090
|
open: topControlsOpen,
|
|
@@ -10100,7 +10112,7 @@ function MessageList({ bottomOverlayHeight = 0, threadId, messages, steeredSegme
|
|
|
10100
10112
|
id: topControlsId,
|
|
10101
10113
|
role: "region",
|
|
10102
10114
|
"aria-label": "Message filters and focus",
|
|
10103
|
-
className: "grid grid-cols-2 sm:flex sm:flex-wrap items-center gap-2 max-h-[35dvh] overflow-y-auto overscroll-contain
|
|
10115
|
+
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",
|
|
10104
10116
|
children: [
|
|
10105
10117
|
compactChat && /*#__PURE__*/ (0,jsx_runtime.jsxs)("button", {
|
|
10106
10118
|
type: "button",
|
|
@@ -10164,7 +10176,7 @@ function MessageList({ bottomOverlayHeight = 0, threadId, messages, steeredSegme
|
|
|
10164
10176
|
/*#__PURE__*/ (0,jsx_runtime.jsxs)("div", {
|
|
10165
10177
|
ref: scrollRef,
|
|
10166
10178
|
onScroll: handleScroll,
|
|
10167
|
-
className: "chat-message-scroll flex-1 h-full overflow-y-auto overflow-x-hidden
|
|
10179
|
+
className: "workspace-gutter chat-message-scroll flex-1 h-full overflow-y-auto overflow-x-hidden panel-scrollbar",
|
|
10168
10180
|
style: {
|
|
10169
10181
|
// Edge padding travels with the turns; the viewport itself extends
|
|
10170
10182
|
// behind both overlays so history remains visible through the frost.
|
|
@@ -11504,20 +11516,29 @@ function useUserProfileAndAgent(agentId) {
|
|
|
11504
11516
|
setAgentConfigLoading(false);
|
|
11505
11517
|
return;
|
|
11506
11518
|
}
|
|
11519
|
+
const id = agentId;
|
|
11507
11520
|
let cancelled = false;
|
|
11521
|
+
let requestSeq = 0;
|
|
11508
11522
|
setAgentConfig(null);
|
|
11509
11523
|
setAgentConfigLoading(true);
|
|
11510
|
-
|
|
11511
|
-
|
|
11512
|
-
|
|
11513
|
-
|
|
11514
|
-
|
|
11515
|
-
|
|
11516
|
-
|
|
11517
|
-
|
|
11518
|
-
|
|
11524
|
+
function refresh(startup = false) {
|
|
11525
|
+
const seq = ++requestSeq;
|
|
11526
|
+
client/* api */.FH.agents.get(id, startup ? {
|
|
11527
|
+
startup: true
|
|
11528
|
+
} : undefined).then((config)=>{
|
|
11529
|
+
if (!cancelled && seq === requestSeq) setAgentConfig(config);
|
|
11530
|
+
}).catch((error)=>{
|
|
11531
|
+
if (!cancelled && seq === requestSeq) console.error(error);
|
|
11532
|
+
}).finally(()=>{
|
|
11533
|
+
if (!cancelled && seq === requestSeq) setAgentConfigLoading(false);
|
|
11534
|
+
});
|
|
11535
|
+
}
|
|
11536
|
+
const onChanged = ()=>refresh();
|
|
11537
|
+
refresh(true);
|
|
11538
|
+
window.addEventListener("jarela:agents-changed", onChanged);
|
|
11519
11539
|
return ()=>{
|
|
11520
11540
|
cancelled = true;
|
|
11541
|
+
window.removeEventListener("jarela:agents-changed", onChanged);
|
|
11521
11542
|
};
|
|
11522
11543
|
}, [
|
|
11523
11544
|
agentId
|
|
@@ -12205,7 +12226,7 @@ var trash = __webpack_require__(25879);
|
|
|
12205
12226
|
// right-aligned actions.
|
|
12206
12227
|
function PanelHeader({ icon, title, children }) {
|
|
12207
12228
|
return /*#__PURE__*/ (0,jsx_runtime.jsxs)("div", {
|
|
12208
|
-
className: "border-b border-border
|
|
12229
|
+
className: "workspace-gutter border-b border-border py-3 flex flex-wrap items-center gap-x-2 gap-y-1",
|
|
12209
12230
|
children: [
|
|
12210
12231
|
/*#__PURE__*/ (0,jsx_runtime.jsx)("span", {
|
|
12211
12232
|
className: "text-fg-subtle flex items-center shrink-0",
|
|
@@ -12665,6 +12686,8 @@ function SettingsCard({ title, icon, description, actions, children, id }) {
|
|
|
12665
12686
|
|
|
12666
12687
|
// EXTERNAL MODULE: ./components/ui/Notice.tsx
|
|
12667
12688
|
var Notice = __webpack_require__(25074);
|
|
12689
|
+
// EXTERNAL MODULE: ./lib/ui/confirm.ts
|
|
12690
|
+
var ui_confirm = __webpack_require__(98637);
|
|
12668
12691
|
;// ./components/models/EmbeddingModelSection.tsx
|
|
12669
12692
|
/* __next_internal_client_entry_do_not_use__ EmbeddingModelSection auto */
|
|
12670
12693
|
|
|
@@ -12675,6 +12698,7 @@ var Notice = __webpack_require__(25074);
|
|
|
12675
12698
|
|
|
12676
12699
|
|
|
12677
12700
|
|
|
12701
|
+
|
|
12678
12702
|
// One embedding model serves documents, memory, and chat-history recall.
|
|
12679
12703
|
function EmbeddingModelSection({ models }) {
|
|
12680
12704
|
const [embeddingModel, setEmbeddingModel] = (0,react.useState)("__auto__");
|
|
@@ -12720,6 +12744,10 @@ function EmbeddingModelSection({ models }) {
|
|
|
12720
12744
|
probe?.downloading
|
|
12721
12745
|
]);
|
|
12722
12746
|
async function save(value) {
|
|
12747
|
+
if (value !== LOCAL_EMBEDDING_CONFIG_NAME && !await (0,ui_confirm/* confirmAction */.fN)({
|
|
12748
|
+
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?",
|
|
12749
|
+
confirmLabel: "Use provider embeddings"
|
|
12750
|
+
})) return;
|
|
12723
12751
|
setEmbeddingModel(value);
|
|
12724
12752
|
setSaving(true);
|
|
12725
12753
|
setProbe(null);
|
|
@@ -12834,8 +12862,6 @@ function PanelMessage({ children }) {
|
|
|
12834
12862
|
});
|
|
12835
12863
|
}
|
|
12836
12864
|
|
|
12837
|
-
// EXTERNAL MODULE: ./lib/ui/confirm.ts
|
|
12838
|
-
var ui_confirm = __webpack_require__(98637);
|
|
12839
12865
|
;// ./components/models/ModelsPanel.tsx
|
|
12840
12866
|
/* __next_internal_client_entry_do_not_use__ ModelsPanel auto */
|
|
12841
12867
|
|
|
@@ -13038,7 +13064,7 @@ function ModelsPanel() {
|
|
|
13038
13064
|
className: "flex-1 overflow-y-auto no-scrollbar",
|
|
13039
13065
|
children: [
|
|
13040
13066
|
/*#__PURE__*/ (0,jsx_runtime.jsx)("div", {
|
|
13041
|
-
className: "
|
|
13067
|
+
className: "workspace-gutter pt-3",
|
|
13042
13068
|
children: /*#__PURE__*/ (0,jsx_runtime.jsxs)(SettingsGroup, {
|
|
13043
13069
|
children: [
|
|
13044
13070
|
/*#__PURE__*/ (0,jsx_runtime.jsxs)(SettingsCard, {
|
|
@@ -13182,7 +13208,7 @@ function ModelsPanel() {
|
|
|
13182
13208
|
})
|
|
13183
13209
|
}),
|
|
13184
13210
|
/*#__PURE__*/ (0,jsx_runtime.jsxs)("div", {
|
|
13185
|
-
className: "
|
|
13211
|
+
className: "workspace-gutter py-2",
|
|
13186
13212
|
children: [
|
|
13187
13213
|
loading && models.length === 0 && /*#__PURE__*/ (0,jsx_runtime.jsx)(PanelMessage, {
|
|
13188
13214
|
children: "Loading…"
|
|
@@ -13236,12 +13262,23 @@ function ModelsPanel() {
|
|
|
13236
13262
|
className: "text-xs text-fg-subtle truncate",
|
|
13237
13263
|
children: m.model_id
|
|
13238
13264
|
}),
|
|
13239
|
-
/*#__PURE__*/ (0,jsx_runtime.
|
|
13265
|
+
/*#__PURE__*/ (0,jsx_runtime.jsxs)("div", {
|
|
13240
13266
|
className: "mt-1",
|
|
13241
|
-
children:
|
|
13242
|
-
|
|
13243
|
-
|
|
13244
|
-
|
|
13267
|
+
children: [
|
|
13268
|
+
/*#__PURE__*/ (0,jsx_runtime.jsx)(CapBadges/* CapBadges */.b, {
|
|
13269
|
+
caps: m.capabilities,
|
|
13270
|
+
provider: m.provider,
|
|
13271
|
+
modelId: m.model_id
|
|
13272
|
+
}),
|
|
13273
|
+
m.model_metadata?.version && /*#__PURE__*/ (0,jsx_runtime.jsxs)("p", {
|
|
13274
|
+
className: "mt-1 text-[10px] text-fg-faint",
|
|
13275
|
+
title: `Source: ${m.model_metadata.version.source_url}`,
|
|
13276
|
+
children: [
|
|
13277
|
+
"Current release: ",
|
|
13278
|
+
m.model_metadata.version.value
|
|
13279
|
+
]
|
|
13280
|
+
})
|
|
13281
|
+
]
|
|
13245
13282
|
})
|
|
13246
13283
|
]
|
|
13247
13284
|
}),
|
|
@@ -14821,7 +14858,7 @@ function NetworkPanel() {
|
|
|
14821
14858
|
}),
|
|
14822
14859
|
/*#__PURE__*/ (0,jsx_runtime.jsxs)("div", {
|
|
14823
14860
|
ref: containerRef,
|
|
14824
|
-
className: "flex-1 overflow-y-auto no-scrollbar
|
|
14861
|
+
className: "workspace-gutter flex-1 overflow-y-auto no-scrollbar py-3 space-y-3",
|
|
14825
14862
|
children: [
|
|
14826
14863
|
/*#__PURE__*/ (0,jsx_runtime.jsx)(EnvSyncNotice, {
|
|
14827
14864
|
env: envSync
|
|
@@ -14936,7 +14973,7 @@ function SubTabBar({ tabs, active, onChange, ariaLabel }) {
|
|
|
14936
14973
|
role: "tablist",
|
|
14937
14974
|
"aria-label": ariaLabel,
|
|
14938
14975
|
onKeyDown: onKeyDown,
|
|
14939
|
-
className: "flex items-stretch gap-4
|
|
14976
|
+
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",
|
|
14940
14977
|
children: tabs.map((t, i)=>{
|
|
14941
14978
|
const selected = t.id === active;
|
|
14942
14979
|
// Keep the strip reachable by keyboard even if `active` isn't listed.
|
|
@@ -15276,7 +15313,7 @@ function CredentialsListPanel() {
|
|
|
15276
15313
|
ref: containerRef,
|
|
15277
15314
|
className: "flex-1 overflow-y-auto no-scrollbar",
|
|
15278
15315
|
children: /*#__PURE__*/ (0,jsx_runtime.jsxs)("div", {
|
|
15279
|
-
className: "
|
|
15316
|
+
className: "workspace-gutter py-2 space-y-4",
|
|
15280
15317
|
children: [
|
|
15281
15318
|
/*#__PURE__*/ (0,jsx_runtime.jsx)(EnvSyncNotice, {
|
|
15282
15319
|
env: envSync
|
|
@@ -15672,7 +15709,7 @@ function AgentsPanel() {
|
|
|
15672
15709
|
}),
|
|
15673
15710
|
/*#__PURE__*/ (0,jsx_runtime.jsxs)("div", {
|
|
15674
15711
|
ref: containerRef,
|
|
15675
|
-
className: "flex-1 overflow-y-auto px-2 pb-2",
|
|
15712
|
+
className: "flex-1 overflow-y-auto px-[calc(var(--workspace-gutter)/2)] pb-2",
|
|
15676
15713
|
children: [
|
|
15677
15714
|
loading && /*#__PURE__*/ (0,jsx_runtime.jsx)("p", {
|
|
15678
15715
|
className: "text-fg-faint text-xs text-center py-4",
|
|
@@ -15685,7 +15722,7 @@ function AgentsPanel() {
|
|
|
15685
15722
|
agents.map((a)=>/*#__PURE__*/ (0,jsx_runtime.jsxs)("div", {
|
|
15686
15723
|
"data-deep-link-id": a.id,
|
|
15687
15724
|
onClick: ()=>setEditing(a),
|
|
15688
|
-
className: "group flex items-center gap-2.5 px-2 py-2 rounded-lg hover:bg-surface-3 transition-colors cursor-pointer",
|
|
15725
|
+
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",
|
|
15689
15726
|
children: [
|
|
15690
15727
|
/*#__PURE__*/ (0,jsx_runtime.jsx)(AgentsPanel_AgentAvatar, {
|
|
15691
15728
|
icon: a.icon,
|
|
@@ -15907,6 +15944,8 @@ function useLocationSharing(consent, opts) {
|
|
|
15907
15944
|
var MarkdownTextarea = __webpack_require__(30567);
|
|
15908
15945
|
// EXTERNAL MODULE: ./components/ui/TextField.tsx
|
|
15909
15946
|
var TextField = __webpack_require__(85085);
|
|
15947
|
+
// EXTERNAL MODULE: ./components/ui/DialogFooter.tsx
|
|
15948
|
+
var DialogFooter = __webpack_require__(20779);
|
|
15910
15949
|
;// ./components/profile/ProfileEditor.tsx
|
|
15911
15950
|
/* __next_internal_client_entry_do_not_use__ ProfileEditor auto */
|
|
15912
15951
|
|
|
@@ -15920,6 +15959,7 @@ var TextField = __webpack_require__(85085);
|
|
|
15920
15959
|
|
|
15921
15960
|
|
|
15922
15961
|
|
|
15962
|
+
|
|
15923
15963
|
function ProfileEditor() {
|
|
15924
15964
|
const { state, dispatch } = (0,AppContext/* useAppContext */.Us)();
|
|
15925
15965
|
const mode = state.experienceMode;
|
|
@@ -15930,6 +15970,7 @@ function ProfileEditor() {
|
|
|
15930
15970
|
const [about, setAbout] = (0,react.useState)("");
|
|
15931
15971
|
const [saving, setSaving] = (0,react.useState)(false);
|
|
15932
15972
|
const [saved, setSaved] = (0,react.useState)(false);
|
|
15973
|
+
const [saveError, setSaveError] = (0,react.useState)(null);
|
|
15933
15974
|
(0,react.useEffect)(()=>{
|
|
15934
15975
|
client/* api */.FH.profile.get().then((p)=>{
|
|
15935
15976
|
setProfile(p);
|
|
@@ -15948,6 +15989,7 @@ function ProfileEditor() {
|
|
|
15948
15989
|
async function handleSave() {
|
|
15949
15990
|
setSaving(true);
|
|
15950
15991
|
setSaved(false);
|
|
15992
|
+
setSaveError(null);
|
|
15951
15993
|
try {
|
|
15952
15994
|
const updated = await client/* api */.FH.profile.update({
|
|
15953
15995
|
name,
|
|
@@ -15958,7 +16000,7 @@ function ProfileEditor() {
|
|
|
15958
16000
|
setSaved(true);
|
|
15959
16001
|
setTimeout(()=>setSaved(false), 2000);
|
|
15960
16002
|
} catch (err) {
|
|
15961
|
-
|
|
16003
|
+
setSaveError((0,utils_error/* errorMessage */.g)(err));
|
|
15962
16004
|
} finally{
|
|
15963
16005
|
setSaving(false);
|
|
15964
16006
|
}
|
|
@@ -15971,7 +16013,7 @@ function ProfileEditor() {
|
|
|
15971
16013
|
setAbout(profile.about);
|
|
15972
16014
|
}
|
|
15973
16015
|
return /*#__PURE__*/ (0,jsx_runtime.jsxs)("div", {
|
|
15974
|
-
className: "
|
|
16016
|
+
className: "workspace-gutter py-4 space-y-4",
|
|
15975
16017
|
children: [
|
|
15976
16018
|
/*#__PURE__*/ (0,jsx_runtime.jsxs)("div", {
|
|
15977
16019
|
className: "flex items-end gap-3",
|
|
@@ -16119,6 +16161,9 @@ function ProfileEditor() {
|
|
|
16119
16161
|
]
|
|
16120
16162
|
})
|
|
16121
16163
|
}),
|
|
16164
|
+
/*#__PURE__*/ (0,jsx_runtime.jsx)(DialogFooter/* DialogError */.J, {
|
|
16165
|
+
message: saveError
|
|
16166
|
+
}),
|
|
16122
16167
|
/*#__PURE__*/ (0,jsx_runtime.jsx)(StickyActionBar, {
|
|
16123
16168
|
dirty: isDirty,
|
|
16124
16169
|
saving: saving,
|
|
@@ -16624,7 +16669,7 @@ function ProfilePanel() {
|
|
|
16624
16669
|
});
|
|
16625
16670
|
}
|
|
16626
16671
|
return /*#__PURE__*/ (0,jsx_runtime.jsxs)("div", {
|
|
16627
|
-
className: "
|
|
16672
|
+
className: "workspace-panel flex h-full flex-col",
|
|
16628
16673
|
children: [
|
|
16629
16674
|
/*#__PURE__*/ (0,jsx_runtime.jsx)(PanelHeader, {
|
|
16630
16675
|
icon: /*#__PURE__*/ (0,jsx_runtime.jsx)(user/* default */.A, {
|
|
@@ -16649,8 +16694,6 @@ function ProfilePanel() {
|
|
|
16649
16694
|
});
|
|
16650
16695
|
}
|
|
16651
16696
|
|
|
16652
|
-
// EXTERNAL MODULE: ./components/ui/DialogFooter.tsx
|
|
16653
|
-
var DialogFooter = __webpack_require__(20779);
|
|
16654
16697
|
;// ./lib/mcp/environment.ts
|
|
16655
16698
|
function validateMcpEnvironment(entries) {
|
|
16656
16699
|
const seen = new Set();
|
|
@@ -16805,7 +16848,7 @@ function MCPPanel() {
|
|
|
16805
16848
|
ref: containerRef,
|
|
16806
16849
|
className: "flex-1 overflow-y-auto no-scrollbar",
|
|
16807
16850
|
children: /*#__PURE__*/ (0,jsx_runtime.jsxs)("div", {
|
|
16808
|
-
className: "
|
|
16851
|
+
className: "workspace-gutter py-2",
|
|
16809
16852
|
children: [
|
|
16810
16853
|
loading && servers.length === 0 && /*#__PURE__*/ (0,jsx_runtime.jsx)(PanelMessage, {
|
|
16811
16854
|
children: "Loading…"
|
|
@@ -18405,7 +18448,7 @@ function SkillsPanel() {
|
|
|
18405
18448
|
})
|
|
18406
18449
|
}),
|
|
18407
18450
|
/*#__PURE__*/ (0,jsx_runtime.jsxs)("div", {
|
|
18408
|
-
className: "flex-1 overflow-y-auto no-scrollbar
|
|
18451
|
+
className: "workspace-gutter flex-1 overflow-y-auto no-scrollbar py-3 space-y-5",
|
|
18409
18452
|
children: [
|
|
18410
18453
|
/*#__PURE__*/ (0,jsx_runtime.jsxs)("p", {
|
|
18411
18454
|
className: "text-xs text-fg-faint leading-relaxed",
|
|
@@ -19018,7 +19061,7 @@ function RouteTable({ bridge_id, module }) {
|
|
|
19018
19061
|
modelLabel: null
|
|
19019
19062
|
};
|
|
19020
19063
|
return {
|
|
19021
|
-
supported: (0,capabilities/* modelSupportsImages */.Q5)(cfg.provider, cfg.model_id),
|
|
19064
|
+
supported: cfg.capabilities?.vision ?? (0,capabilities/* modelSupportsImages */.Q5)(cfg.provider, cfg.model_id),
|
|
19022
19065
|
classified: (0,capabilities/* isProviderClassified */.tN)(cfg.provider),
|
|
19023
19066
|
modelLabel: `${cfg.provider} / ${cfg.model_id}`
|
|
19024
19067
|
};
|
|
@@ -20143,7 +20186,7 @@ function BridgeEditor_formatRelative(ms) {
|
|
|
20143
20186
|
}),
|
|
20144
20187
|
/*#__PURE__*/ (0,jsx_runtime.jsxs)("div", {
|
|
20145
20188
|
ref: containerRef,
|
|
20146
|
-
className: "flex-1 overflow-y-auto no-scrollbar
|
|
20189
|
+
className: "workspace-gutter flex-1 overflow-y-auto no-scrollbar py-3",
|
|
20147
20190
|
children: [
|
|
20148
20191
|
creating && /*#__PURE__*/ (0,jsx_runtime.jsxs)("div", {
|
|
20149
20192
|
className: "mb-3 rounded-lg border border-accent/30 bg-surface-2 p-3 space-y-2",
|
|
@@ -20567,7 +20610,7 @@ function BrowserPanel() {
|
|
|
20567
20610
|
]
|
|
20568
20611
|
}),
|
|
20569
20612
|
/*#__PURE__*/ (0,jsx_runtime.jsxs)("div", {
|
|
20570
|
-
className: "flex-1 overflow-y-auto no-scrollbar
|
|
20613
|
+
className: "workspace-gutter flex-1 overflow-y-auto no-scrollbar py-3 space-y-3",
|
|
20571
20614
|
children: [
|
|
20572
20615
|
/*#__PURE__*/ (0,jsx_runtime.jsxs)("div", {
|
|
20573
20616
|
className: "rounded-lg border border-border bg-surface-2 p-3",
|
|
@@ -22040,7 +22083,7 @@ const CATEGORY_BLURB = {
|
|
|
22040
22083
|
Atlassian: "Jira and Confluence read/write.",
|
|
22041
22084
|
JiraAlign: "Jira Align portfolio-level read/write.",
|
|
22042
22085
|
GitHub: "Issues, pull requests, code search via the GitHub API.",
|
|
22043
|
-
Mail: "Read and send
|
|
22086
|
+
Mail: "Read, manage, and send mail via Gmail / Outlook / iCloud.",
|
|
22044
22087
|
Calendar: "Read and write calendar events on Google / Outlook / iCloud.",
|
|
22045
22088
|
Tasks: "Manage tasks and reminders on Microsoft To Do / iCloud Reminders.",
|
|
22046
22089
|
Microsoft: "Microsoft Graph escape hatch + unified search + People resolver.",
|
|
@@ -23502,7 +23545,7 @@ function PackagesPanel() {
|
|
|
23502
23545
|
title: "Packages"
|
|
23503
23546
|
}),
|
|
23504
23547
|
/*#__PURE__*/ (0,jsx_runtime.jsxs)("div", {
|
|
23505
|
-
className: "
|
|
23548
|
+
className: "workspace-gutter py-4 space-y-4",
|
|
23506
23549
|
children: [
|
|
23507
23550
|
/*#__PURE__*/ (0,jsx_runtime.jsx)("p", {
|
|
23508
23551
|
className: "text-xs text-fg-faint",
|
|
@@ -24787,7 +24830,7 @@ function ScheduledTasksPanel() {
|
|
|
24787
24830
|
}),
|
|
24788
24831
|
/*#__PURE__*/ (0,jsx_runtime.jsxs)("div", {
|
|
24789
24832
|
ref: containerRef,
|
|
24790
|
-
className: "flex-1 overflow-y-auto no-scrollbar
|
|
24833
|
+
className: "workspace-gutter flex-1 overflow-y-auto no-scrollbar py-3",
|
|
24791
24834
|
children: [
|
|
24792
24835
|
loading && tasks.length === 0 && /*#__PURE__*/ (0,jsx_runtime.jsx)(PanelMessage, {
|
|
24793
24836
|
children: "Loading…"
|
|
@@ -25514,7 +25557,7 @@ const DEFAULT_LEVELS = new Set([
|
|
|
25514
25557
|
lastSeqRef.current = 0;
|
|
25515
25558
|
}
|
|
25516
25559
|
return /*#__PURE__*/ (0,jsx_runtime.jsxs)("div", {
|
|
25517
|
-
className: "flex flex-col h-full min-h-0
|
|
25560
|
+
className: "workspace-gutter flex flex-col h-full min-h-0 py-4",
|
|
25518
25561
|
children: [
|
|
25519
25562
|
/*#__PURE__*/ (0,jsx_runtime.jsxs)("div", {
|
|
25520
25563
|
className: "mb-2 flex items-center gap-2 flex-wrap",
|
|
@@ -26641,7 +26684,7 @@ const CATEGORY_LABEL = new Map(ENV_CATEGORIES.map(({ id, label })=>[
|
|
|
26641
26684
|
load
|
|
26642
26685
|
]);
|
|
26643
26686
|
return /*#__PURE__*/ (0,jsx_runtime.jsxs)("div", {
|
|
26644
|
-
className: "flex flex-col h-full min-h-0
|
|
26687
|
+
className: "workspace-gutter flex flex-col h-full min-h-0 py-4 gap-3",
|
|
26645
26688
|
children: [
|
|
26646
26689
|
/*#__PURE__*/ (0,jsx_runtime.jsxs)("div", {
|
|
26647
26690
|
className: "flex items-center gap-2 flex-wrap",
|
|
@@ -27250,11 +27293,11 @@ function HarnessPanel() {
|
|
|
27250
27293
|
})
|
|
27251
27294
|
}),
|
|
27252
27295
|
/*#__PURE__*/ (0,jsx_runtime.jsx)("div", {
|
|
27253
|
-
className: "
|
|
27296
|
+
className: "workspace-gutter py-2 border-b border-border bg-surface-2/50 text-xs text-fg-muted",
|
|
27254
27297
|
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."
|
|
27255
27298
|
}),
|
|
27256
27299
|
/*#__PURE__*/ (0,jsx_runtime.jsxs)("div", {
|
|
27257
|
-
className: "flex-1 overflow-y-auto
|
|
27300
|
+
className: "workspace-gutter flex-1 overflow-y-auto py-2",
|
|
27258
27301
|
children: [
|
|
27259
27302
|
loading && harnesses.length === 0 && /*#__PURE__*/ (0,jsx_runtime.jsx)(PanelMessage, {
|
|
27260
27303
|
children: "Loading…"
|
|
@@ -27486,7 +27529,7 @@ function AppearancePanel() {
|
|
|
27486
27529
|
title: "Appearance"
|
|
27487
27530
|
}),
|
|
27488
27531
|
/*#__PURE__*/ (0,jsx_runtime.jsxs)("div", {
|
|
27489
|
-
className: "flex-1 overflow-y-auto no-scrollbar
|
|
27532
|
+
className: "workspace-gutter flex-1 overflow-y-auto no-scrollbar py-4 space-y-6",
|
|
27490
27533
|
children: [
|
|
27491
27534
|
/*#__PURE__*/ (0,jsx_runtime.jsxs)("section", {
|
|
27492
27535
|
children: [
|
|
@@ -28632,7 +28675,7 @@ function SettingsPanel() {
|
|
|
28632
28675
|
}) : undefined
|
|
28633
28676
|
}));
|
|
28634
28677
|
return /*#__PURE__*/ (0,jsx_runtime.jsxs)("div", {
|
|
28635
|
-
className: "
|
|
28678
|
+
className: "workspace-panel flex h-full min-h-0 flex-col",
|
|
28636
28679
|
children: [
|
|
28637
28680
|
/*#__PURE__*/ (0,jsx_runtime.jsx)(SubTabBar, {
|
|
28638
28681
|
ariaLabel: "Settings sub-section",
|
|
@@ -28663,7 +28706,7 @@ function SettingsPanel() {
|
|
|
28663
28706
|
// future change to either panel without touching this file.
|
|
28664
28707
|
function PrivacySecurityPanel() {
|
|
28665
28708
|
return /*#__PURE__*/ (0,jsx_runtime.jsx)("div", {
|
|
28666
|
-
className: "h-full w-full overflow-y-auto
|
|
28709
|
+
className: "workspace-gutter h-full w-full overflow-y-auto py-3 no-scrollbar",
|
|
28667
28710
|
children: /*#__PURE__*/ (0,jsx_runtime.jsxs)(SettingsGroup, {
|
|
28668
28711
|
defaultOpenId: "pin",
|
|
28669
28712
|
children: [
|
|
@@ -29374,13 +29417,23 @@ const KIND_OPTIONS = [
|
|
|
29374
29417
|
{
|
|
29375
29418
|
value: "outlook_mail",
|
|
29376
29419
|
label: "Outlook mail"
|
|
29420
|
+
},
|
|
29421
|
+
{
|
|
29422
|
+
value: "icloud_mail",
|
|
29423
|
+
label: "iCloud mail"
|
|
29377
29424
|
}
|
|
29378
29425
|
];
|
|
29379
29426
|
function isGithubKind(k) {
|
|
29380
29427
|
return k === "github_pulls" || k === "github_repo";
|
|
29381
29428
|
}
|
|
29382
29429
|
function isMailKind(k) {
|
|
29383
|
-
return k === "gmail_mail" || k === "outlook_mail";
|
|
29430
|
+
return k === "gmail_mail" || k === "outlook_mail" || k === "icloud_mail";
|
|
29431
|
+
}
|
|
29432
|
+
function integrationForSourceKind(kind) {
|
|
29433
|
+
if (isMailKind(kind)) return kind === "gmail_mail" ? "gmail" : kind === "outlook_mail" ? "outlook" : "icloud";
|
|
29434
|
+
if (isGithubKind(kind)) return "github";
|
|
29435
|
+
if (kind.startsWith("jira_") || kind.startsWith("confluence_")) return "atlassian";
|
|
29436
|
+
return null;
|
|
29384
29437
|
}
|
|
29385
29438
|
function summarizeRemote(s) {
|
|
29386
29439
|
const c = s.config ?? {};
|
|
@@ -29406,9 +29459,14 @@ function summarizeRemote(s) {
|
|
|
29406
29459
|
return `GitHub repo: ${slug}${ref}${prefix}`;
|
|
29407
29460
|
}
|
|
29408
29461
|
case "gmail_mail":
|
|
29409
|
-
return `Gmail: ${String(c.query ?? "?")}`;
|
|
29410
29462
|
case "outlook_mail":
|
|
29411
|
-
|
|
29463
|
+
case "icloud_mail":
|
|
29464
|
+
{
|
|
29465
|
+
const provider = s.kind === "gmail_mail" ? "Gmail" : s.kind === "outlook_mail" ? "Outlook" : "iCloud";
|
|
29466
|
+
if (!c.scope) return `${provider}: ${String(c.query ?? "?")}`;
|
|
29467
|
+
const scope = c.scope === "all" ? "Whole mailbox" : c.scope === "folder" ? String(c.folder) : "Inbox";
|
|
29468
|
+
return `${provider}: ${scope}${c.query ? ` · ${String(c.query)}` : ""} · ${c.retention === "mirror" ? "mirror" : "archive"}`;
|
|
29469
|
+
}
|
|
29412
29470
|
default:
|
|
29413
29471
|
return s.path;
|
|
29414
29472
|
}
|
|
@@ -29467,7 +29525,8 @@ function RemoteSourceFields(props) {
|
|
|
29467
29525
|
children: [
|
|
29468
29526
|
/*#__PURE__*/ (0,jsx_runtime.jsx)(RemoteKindInputs, {
|
|
29469
29527
|
state: props.state,
|
|
29470
|
-
set: props.set
|
|
29528
|
+
set: props.set,
|
|
29529
|
+
disabled: props.disabled
|
|
29471
29530
|
}),
|
|
29472
29531
|
/*#__PURE__*/ (0,jsx_runtime.jsx)(RemoteLabelRow, {
|
|
29473
29532
|
...props
|
|
@@ -29475,7 +29534,7 @@ function RemoteSourceFields(props) {
|
|
|
29475
29534
|
]
|
|
29476
29535
|
});
|
|
29477
29536
|
}
|
|
29478
|
-
function RemoteKindInputs({ state, set }) {
|
|
29537
|
+
function RemoteKindInputs({ state, set, disabled }) {
|
|
29479
29538
|
return /*#__PURE__*/ (0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
29480
29539
|
children: [
|
|
29481
29540
|
state.addKind === "jira_project" && /*#__PURE__*/ (0,jsx_runtime.jsx)("input", {
|
|
@@ -29499,12 +29558,10 @@ function RemoteKindInputs({ state, set }) {
|
|
|
29499
29558
|
rows: 2,
|
|
29500
29559
|
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"
|
|
29501
29560
|
}),
|
|
29502
|
-
isMailKind(state.addKind) && /*#__PURE__*/ (0,jsx_runtime.jsx)(
|
|
29503
|
-
|
|
29504
|
-
|
|
29505
|
-
|
|
29506
|
-
rows: 2,
|
|
29507
|
-
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"
|
|
29561
|
+
isMailKind(state.addKind) && /*#__PURE__*/ (0,jsx_runtime.jsx)(MailScopeInputs, {
|
|
29562
|
+
state: state,
|
|
29563
|
+
set: set,
|
|
29564
|
+
disabled: disabled
|
|
29508
29565
|
}),
|
|
29509
29566
|
isGithubKind(state.addKind) && /*#__PURE__*/ (0,jsx_runtime.jsx)(GithubOwnerRepoInputs, {
|
|
29510
29567
|
state: state,
|
|
@@ -29537,6 +29594,70 @@ function RemoteKindInputs({ state, set }) {
|
|
|
29537
29594
|
]
|
|
29538
29595
|
});
|
|
29539
29596
|
}
|
|
29597
|
+
function MailScopeInputs({ state, set, disabled }) {
|
|
29598
|
+
return /*#__PURE__*/ (0,jsx_runtime.jsxs)("fieldset", {
|
|
29599
|
+
disabled: disabled,
|
|
29600
|
+
className: "space-y-2",
|
|
29601
|
+
children: [
|
|
29602
|
+
/*#__PURE__*/ (0,jsx_runtime.jsxs)("label", {
|
|
29603
|
+
className: "block text-xs text-fg-muted",
|
|
29604
|
+
children: [
|
|
29605
|
+
"Mailbox scope",
|
|
29606
|
+
/*#__PURE__*/ (0,jsx_runtime.jsxs)("select", {
|
|
29607
|
+
"aria-label": "Mailbox scope",
|
|
29608
|
+
value: state.addMailScope,
|
|
29609
|
+
onChange: (e)=>set("addMailScope", e.target.value),
|
|
29610
|
+
className: "block w-full px-2 py-1.5 rounded-md bg-surface-2 border border-border text-sm text-fg",
|
|
29611
|
+
children: [
|
|
29612
|
+
/*#__PURE__*/ (0,jsx_runtime.jsx)("option", {
|
|
29613
|
+
value: "inbox",
|
|
29614
|
+
children: "Inbox"
|
|
29615
|
+
}),
|
|
29616
|
+
/*#__PURE__*/ (0,jsx_runtime.jsx)("option", {
|
|
29617
|
+
value: "folder",
|
|
29618
|
+
children: "Chosen folder or label"
|
|
29619
|
+
}),
|
|
29620
|
+
/*#__PURE__*/ (0,jsx_runtime.jsx)("option", {
|
|
29621
|
+
value: "all",
|
|
29622
|
+
children: "Whole mailbox (including spam and trash)"
|
|
29623
|
+
})
|
|
29624
|
+
]
|
|
29625
|
+
})
|
|
29626
|
+
]
|
|
29627
|
+
}),
|
|
29628
|
+
state.addMailScope === "folder" && /*#__PURE__*/ (0,jsx_runtime.jsxs)("label", {
|
|
29629
|
+
className: "block text-xs text-fg-muted",
|
|
29630
|
+
children: [
|
|
29631
|
+
"Folder or label",
|
|
29632
|
+
/*#__PURE__*/ (0,jsx_runtime.jsx)("input", {
|
|
29633
|
+
"aria-label": "Folder or label",
|
|
29634
|
+
value: state.addMailFolder,
|
|
29635
|
+
onChange: (e)=>set("addMailFolder", e.target.value),
|
|
29636
|
+
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",
|
|
29637
|
+
className: "block w-full px-2.5 py-1.5 rounded-md bg-surface-2 border border-border text-sm text-fg"
|
|
29638
|
+
})
|
|
29639
|
+
]
|
|
29640
|
+
}),
|
|
29641
|
+
/*#__PURE__*/ (0,jsx_runtime.jsx)("textarea", {
|
|
29642
|
+
"aria-label": "Optional mail search",
|
|
29643
|
+
value: state.addMailQuery,
|
|
29644
|
+
onChange: (e)=>set("addMailQuery", e.target.value),
|
|
29645
|
+
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",
|
|
29646
|
+
rows: 2,
|
|
29647
|
+
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"
|
|
29648
|
+
}),
|
|
29649
|
+
/*#__PURE__*/ (0,jsx_runtime.jsx)("p", {
|
|
29650
|
+
className: "text-xs text-fg-faint",
|
|
29651
|
+
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."
|
|
29652
|
+
}),
|
|
29653
|
+
state.addKind === "outlook_mail" && state.addMailQuery.trim() && /*#__PURE__*/ (0,jsx_runtime.jsx)("p", {
|
|
29654
|
+
role: "alert",
|
|
29655
|
+
className: "text-xs text-amber-600 dark:text-amber-400",
|
|
29656
|
+
children: "Outlook text search is limited to 1,000 results by Microsoft Graph. Leave search blank for complete folder or mailbox coverage."
|
|
29657
|
+
})
|
|
29658
|
+
]
|
|
29659
|
+
});
|
|
29660
|
+
}
|
|
29540
29661
|
function GithubOwnerRepoInputs({ state, set }) {
|
|
29541
29662
|
return /*#__PURE__*/ (0,jsx_runtime.jsxs)("div", {
|
|
29542
29663
|
className: "flex flex-col gap-2 sm:flex-row",
|
|
@@ -29659,6 +29780,8 @@ const INITIAL = {
|
|
|
29659
29780
|
addSpaceKey: "",
|
|
29660
29781
|
addQuery: "",
|
|
29661
29782
|
addMailQuery: "",
|
|
29783
|
+
addMailScope: "inbox",
|
|
29784
|
+
addMailFolder: "",
|
|
29662
29785
|
addMailMaxResults: "",
|
|
29663
29786
|
addMailPageSize: "",
|
|
29664
29787
|
addRecencyDays: "",
|
|
@@ -29706,13 +29829,30 @@ function buildPayload(s) {
|
|
|
29706
29829
|
if (prefix) config.path_prefix = prefix;
|
|
29707
29830
|
}
|
|
29708
29831
|
} else if (isMailKind(s.addKind)) {
|
|
29709
|
-
|
|
29710
|
-
|
|
29711
|
-
|
|
29712
|
-
|
|
29713
|
-
|
|
29714
|
-
|
|
29715
|
-
if (
|
|
29832
|
+
config.scope = s.addMailScope;
|
|
29833
|
+
config.retention = "archive";
|
|
29834
|
+
if (s.addMailScope === "folder") {
|
|
29835
|
+
if (!s.addMailFolder.trim()) return null;
|
|
29836
|
+
config.folder = s.addMailFolder.trim();
|
|
29837
|
+
}
|
|
29838
|
+
if (s.addMailQuery.trim()) config.query = s.addMailQuery.trim();
|
|
29839
|
+
for (const [raw, key, maximum] of [
|
|
29840
|
+
[
|
|
29841
|
+
s.addMailMaxResults,
|
|
29842
|
+
"max_results",
|
|
29843
|
+
Infinity
|
|
29844
|
+
],
|
|
29845
|
+
[
|
|
29846
|
+
s.addMailPageSize,
|
|
29847
|
+
"page_size",
|
|
29848
|
+
100
|
|
29849
|
+
]
|
|
29850
|
+
]){
|
|
29851
|
+
if (!raw.trim()) continue;
|
|
29852
|
+
const value = Number(raw);
|
|
29853
|
+
if (!Number.isInteger(value) || value < 1 || value > maximum) return null;
|
|
29854
|
+
config[key] = value;
|
|
29855
|
+
}
|
|
29716
29856
|
}
|
|
29717
29857
|
const recency = parseInt(s.addRecencyDays, 10);
|
|
29718
29858
|
if (Number.isFinite(recency) && recency > 0) config.recency_days = recency;
|
|
@@ -29727,31 +29867,38 @@ function kindHint(kind) {
|
|
|
29727
29867
|
if (kind === "local_folder") return "Pick a folder on this machine.";
|
|
29728
29868
|
if (kind === "gmail_mail") return "Requires Gmail credentials (Credentials → Gmail).";
|
|
29729
29869
|
if (kind === "outlook_mail") return "Requires Outlook credentials (Credentials → Outlook).";
|
|
29870
|
+
if (kind === "icloud_mail") return "Requires iCloud credentials (Credentials → iCloud).";
|
|
29730
29871
|
if (isGithubKind(kind)) return "Requires GitHub credentials (Credentials → GitHub).";
|
|
29731
29872
|
return "Requires Atlassian credentials (Credentials → Atlassian).";
|
|
29732
29873
|
}
|
|
29733
|
-
function AddSourceForm({ disabled, onSubmit }) {
|
|
29874
|
+
function AddSourceForm({ disabled, onSubmit, configuredIntegrations, localEmbeddings }) {
|
|
29734
29875
|
const [state, setState] = (0,react.useState)(INITIAL);
|
|
29735
29876
|
const [pickerOpen, setPickerOpen] = (0,react.useState)(false);
|
|
29877
|
+
const [consent, setConsent] = (0,react.useState)(false);
|
|
29878
|
+
const [submitting, setSubmitting] = (0,react.useState)(false);
|
|
29736
29879
|
const set = makeSetField(setState);
|
|
29737
29880
|
const payload = buildPayload(state);
|
|
29738
29881
|
async function handleSubmit() {
|
|
29739
|
-
if (!payload) return;
|
|
29882
|
+
if (!payload || !consent || submitting) return;
|
|
29883
|
+
setSubmitting(true);
|
|
29740
29884
|
try {
|
|
29741
|
-
await onSubmit(payload);
|
|
29885
|
+
if (!await onSubmit(payload)) return;
|
|
29742
29886
|
setState({
|
|
29743
29887
|
...INITIAL,
|
|
29744
29888
|
addKind: state.addKind
|
|
29745
29889
|
});
|
|
29890
|
+
setConsent(false);
|
|
29746
29891
|
} catch {
|
|
29747
29892
|
// parent surfaces the error; keep form state for retry.
|
|
29893
|
+
} finally{
|
|
29894
|
+
setSubmitting(false);
|
|
29748
29895
|
}
|
|
29749
29896
|
}
|
|
29750
29897
|
const fieldProps = {
|
|
29751
29898
|
state,
|
|
29752
29899
|
set,
|
|
29753
|
-
disabled,
|
|
29754
|
-
canSubmit: payload !== null,
|
|
29900
|
+
disabled: disabled || submitting,
|
|
29901
|
+
canSubmit: payload !== null && consent,
|
|
29755
29902
|
onSubmit: ()=>void handleSubmit()
|
|
29756
29903
|
};
|
|
29757
29904
|
return /*#__PURE__*/ (0,jsx_runtime.jsxs)("section", {
|
|
@@ -29759,22 +29906,38 @@ function AddSourceForm({ disabled, onSubmit }) {
|
|
|
29759
29906
|
children: [
|
|
29760
29907
|
/*#__PURE__*/ (0,jsx_runtime.jsx)("label", {
|
|
29761
29908
|
className: "text-xs font-semibold text-fg-muted uppercase tracking-wide",
|
|
29762
|
-
children: "
|
|
29909
|
+
children: "Opt in to indexing"
|
|
29910
|
+
}),
|
|
29911
|
+
/*#__PURE__*/ (0,jsx_runtime.jsx)("p", {
|
|
29912
|
+
className: "text-xs text-fg-faint",
|
|
29913
|
+
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."
|
|
29763
29914
|
}),
|
|
29764
29915
|
/*#__PURE__*/ (0,jsx_runtime.jsxs)("div", {
|
|
29765
29916
|
className: "flex items-center gap-2",
|
|
29766
29917
|
children: [
|
|
29767
29918
|
/*#__PURE__*/ (0,jsx_runtime.jsx)("select", {
|
|
29768
29919
|
value: state.addKind,
|
|
29769
|
-
|
|
29920
|
+
disabled: disabled || submitting,
|
|
29921
|
+
onChange: (e)=>{
|
|
29922
|
+
setState({
|
|
29770
29923
|
...INITIAL,
|
|
29771
29924
|
addKind: e.target.value
|
|
29772
|
-
})
|
|
29925
|
+
});
|
|
29926
|
+
setConsent(false);
|
|
29927
|
+
},
|
|
29773
29928
|
className: "px-2 py-1.5 rounded-md bg-surface-2 border border-border text-xs text-fg",
|
|
29774
|
-
children: KIND_OPTIONS.map((o)
|
|
29929
|
+
children: KIND_OPTIONS.map((o)=>{
|
|
29930
|
+
const integration = integrationForSourceKind(o.value);
|
|
29931
|
+
const unavailable = integration !== null && !configuredIntegrations.includes(integration);
|
|
29932
|
+
return /*#__PURE__*/ (0,jsx_runtime.jsxs)("option", {
|
|
29775
29933
|
value: o.value,
|
|
29776
|
-
|
|
29777
|
-
|
|
29934
|
+
disabled: unavailable,
|
|
29935
|
+
children: [
|
|
29936
|
+
o.label,
|
|
29937
|
+
unavailable ? " (connect credentials first)" : ""
|
|
29938
|
+
]
|
|
29939
|
+
}, o.value);
|
|
29940
|
+
})
|
|
29778
29941
|
}),
|
|
29779
29942
|
/*#__PURE__*/ (0,jsx_runtime.jsx)("span", {
|
|
29780
29943
|
className: "text-[11px] text-fg-faint",
|
|
@@ -29782,6 +29945,23 @@ function AddSourceForm({ disabled, onSubmit }) {
|
|
|
29782
29945
|
})
|
|
29783
29946
|
]
|
|
29784
29947
|
}),
|
|
29948
|
+
/*#__PURE__*/ (0,jsx_runtime.jsxs)("label", {
|
|
29949
|
+
className: "flex items-start gap-2 text-xs text-fg-muted",
|
|
29950
|
+
children: [
|
|
29951
|
+
/*#__PURE__*/ (0,jsx_runtime.jsx)("input", {
|
|
29952
|
+
type: "checkbox",
|
|
29953
|
+
checked: consent,
|
|
29954
|
+
disabled: disabled || submitting || localEmbeddings === null,
|
|
29955
|
+
onChange: (e)=>setConsent(e.target.checked)
|
|
29956
|
+
}),
|
|
29957
|
+
"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."
|
|
29958
|
+
]
|
|
29959
|
+
}),
|
|
29960
|
+
localEmbeddings === false && /*#__PURE__*/ (0,jsx_runtime.jsx)("p", {
|
|
29961
|
+
role: "alert",
|
|
29962
|
+
className: "text-xs text-amber-600 dark:text-amber-400",
|
|
29963
|
+
children: "The embedding provider is not Jarela Local. Content may leave this device during indexing. Recall exclusions do not prevent embedding or storage."
|
|
29964
|
+
}),
|
|
29785
29965
|
state.addKind === "local_folder" ? /*#__PURE__*/ (0,jsx_runtime.jsx)(LocalFolderFields, {
|
|
29786
29966
|
...fieldProps,
|
|
29787
29967
|
onOpenPicker: ()=>setPickerOpen(true)
|
|
@@ -29822,10 +30002,12 @@ function groupPreviewHits(hits) {
|
|
|
29822
30002
|
}
|
|
29823
30003
|
return Array.from(groups.values());
|
|
29824
30004
|
}
|
|
29825
|
-
function SearchProbe({ onSearch }) {
|
|
30005
|
+
function SearchProbe({ onSearch, onExclude }) {
|
|
29826
30006
|
const [query, setQuery] = (0,react.useState)("");
|
|
29827
30007
|
const [hits, setHits] = (0,react.useState)([]);
|
|
29828
30008
|
const [searching, setSearching] = (0,react.useState)(false);
|
|
30009
|
+
const [includeExcluded, setIncludeExcluded] = (0,react.useState)(false);
|
|
30010
|
+
const [searched, setSearched] = (0,react.useState)(false);
|
|
29829
30011
|
const groups = groupPreviewHits(hits);
|
|
29830
30012
|
async function runSearch() {
|
|
29831
30013
|
const q = query.trim();
|
|
@@ -29834,8 +30016,13 @@ function SearchProbe({ onSearch }) {
|
|
|
29834
30016
|
return;
|
|
29835
30017
|
}
|
|
29836
30018
|
setSearching(true);
|
|
30019
|
+
setSearched(false);
|
|
29837
30020
|
try {
|
|
29838
|
-
setHits(await onSearch(q));
|
|
30021
|
+
setHits(await onSearch(q, includeExcluded));
|
|
30022
|
+
setSearched(true);
|
|
30023
|
+
} catch {
|
|
30024
|
+
setHits([]);
|
|
30025
|
+
// The panel surfaces search errors.
|
|
29839
30026
|
} finally{
|
|
29840
30027
|
setSearching(false);
|
|
29841
30028
|
}
|
|
@@ -29845,7 +30032,31 @@ function SearchProbe({ onSearch }) {
|
|
|
29845
30032
|
children: [
|
|
29846
30033
|
/*#__PURE__*/ (0,jsx_runtime.jsx)("label", {
|
|
29847
30034
|
className: "text-xs font-semibold text-fg-muted uppercase tracking-wide",
|
|
29848
|
-
children: "
|
|
30035
|
+
children: "Search and exclude documents"
|
|
30036
|
+
}),
|
|
30037
|
+
/*#__PURE__*/ (0,jsx_runtime.jsx)("p", {
|
|
30038
|
+
className: "text-xs text-fg-faint",
|
|
30039
|
+
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."
|
|
30040
|
+
}),
|
|
30041
|
+
/*#__PURE__*/ (0,jsx_runtime.jsxs)("label", {
|
|
30042
|
+
className: "flex gap-2 items-start text-xs text-fg-muted",
|
|
30043
|
+
children: [
|
|
30044
|
+
/*#__PURE__*/ (0,jsx_runtime.jsx)("input", {
|
|
30045
|
+
type: "checkbox",
|
|
30046
|
+
checked: includeExcluded,
|
|
30047
|
+
disabled: searching,
|
|
30048
|
+
onChange: (e)=>{
|
|
30049
|
+
setIncludeExcluded(e.target.checked);
|
|
30050
|
+
setHits([]);
|
|
30051
|
+
setSearched(false);
|
|
30052
|
+
}
|
|
30053
|
+
}),
|
|
30054
|
+
"Include excluded content for this preview only. This does not authorize the assistant to retrieve it."
|
|
30055
|
+
]
|
|
30056
|
+
}),
|
|
30057
|
+
/*#__PURE__*/ (0,jsx_runtime.jsx)("p", {
|
|
30058
|
+
className: "text-xs text-fg-faint",
|
|
30059
|
+
children: "The search query uses your embedding provider; preview excerpts are displayed here, not sent to the chat model."
|
|
29849
30060
|
}),
|
|
29850
30061
|
/*#__PURE__*/ (0,jsx_runtime.jsxs)("div", {
|
|
29851
30062
|
className: "flex gap-2",
|
|
@@ -29878,15 +30089,37 @@ function SearchProbe({ onSearch }) {
|
|
|
29878
30089
|
children: groups.map((group)=>/*#__PURE__*/ (0,jsx_runtime.jsxs)("div", {
|
|
29879
30090
|
className: "rounded-md border border-border bg-surface px-3 py-2 text-xs",
|
|
29880
30091
|
children: [
|
|
29881
|
-
/*#__PURE__*/ (0,jsx_runtime.
|
|
30092
|
+
/*#__PURE__*/ (0,jsx_runtime.jsxs)("div", {
|
|
29882
30093
|
className: "flex items-center mb-1",
|
|
29883
|
-
children:
|
|
29884
|
-
|
|
29885
|
-
|
|
29886
|
-
|
|
29887
|
-
|
|
29888
|
-
|
|
29889
|
-
|
|
30094
|
+
children: [
|
|
30095
|
+
/*#__PURE__*/ (0,jsx_runtime.jsxs)("span", {
|
|
30096
|
+
className: "font-mono text-fg-muted truncate flex-1",
|
|
30097
|
+
children: [
|
|
30098
|
+
group.sourceLabel ? `${group.sourceLabel} / ` : "",
|
|
30099
|
+
group.relPath
|
|
30100
|
+
]
|
|
30101
|
+
}),
|
|
30102
|
+
group.hits[0]?.excluded ? /*#__PURE__*/ (0,jsx_runtime.jsx)("span", {
|
|
30103
|
+
className: "text-fg-faint ml-2",
|
|
30104
|
+
children: "Document excluded"
|
|
30105
|
+
}) : /*#__PURE__*/ (0,jsx_runtime.jsx)("button", {
|
|
30106
|
+
type: "button",
|
|
30107
|
+
disabled: searching,
|
|
30108
|
+
className: "text-accent ml-2 shrink-0",
|
|
30109
|
+
onClick: async ()=>{
|
|
30110
|
+
setSearching(true);
|
|
30111
|
+
try {
|
|
30112
|
+
await onExclude(group.hits[0]);
|
|
30113
|
+
setHits((current)=>current.filter((hit)=>hit.document_id !== group.documentId));
|
|
30114
|
+
} catch {
|
|
30115
|
+
// The panel surfaces save errors.
|
|
30116
|
+
} finally{
|
|
30117
|
+
setSearching(false);
|
|
30118
|
+
}
|
|
30119
|
+
},
|
|
30120
|
+
children: "Exclude document"
|
|
30121
|
+
})
|
|
30122
|
+
]
|
|
29890
30123
|
}),
|
|
29891
30124
|
/*#__PURE__*/ (0,jsx_runtime.jsx)("div", {
|
|
29892
30125
|
className: "space-y-2",
|
|
@@ -29914,7 +30147,7 @@ function SearchProbe({ onSearch }) {
|
|
|
29914
30147
|
]
|
|
29915
30148
|
}, group.documentId))
|
|
29916
30149
|
}),
|
|
29917
|
-
!searching && query.trim() && hits.length === 0 && /*#__PURE__*/ (0,jsx_runtime.jsx)("p", {
|
|
30150
|
+
!searching && searched && query.trim() && hits.length === 0 && /*#__PURE__*/ (0,jsx_runtime.jsx)("p", {
|
|
29918
30151
|
className: "text-fg-faint text-xs italic",
|
|
29919
30152
|
children: "No hits — try different terms or add more folders above."
|
|
29920
30153
|
})
|
|
@@ -30073,11 +30306,22 @@ function useDocumentsPanel() {
|
|
|
30073
30306
|
const [loading, setLoading] = (0,react.useState)(true);
|
|
30074
30307
|
const [error, setError] = (0,react.useState)(null);
|
|
30075
30308
|
const [busy, setBusy] = (0,react.useState)({});
|
|
30309
|
+
const [recallPolicy, setRecallPolicy] = (0,react.useState)(null);
|
|
30310
|
+
const [localEmbeddings, setLocalEmbeddings] = (0,react.useState)(null);
|
|
30311
|
+
const [configuredIntegrations, setConfiguredIntegrations] = (0,react.useState)([]);
|
|
30076
30312
|
async function load() {
|
|
30077
30313
|
setLoading(true);
|
|
30078
30314
|
setError(null);
|
|
30079
30315
|
try {
|
|
30080
|
-
|
|
30316
|
+
const [sources, recall, integrations] = await Promise.all([
|
|
30317
|
+
client/* api */.FH.documents.listSources(),
|
|
30318
|
+
client/* api */.FH.documents.getRecallPolicy(),
|
|
30319
|
+
client/* api */.FH.integrations.list()
|
|
30320
|
+
]);
|
|
30321
|
+
setSources(sources);
|
|
30322
|
+
setRecallPolicy(recall.policy);
|
|
30323
|
+
setLocalEmbeddings(recall.local_embeddings);
|
|
30324
|
+
setConfiguredIntegrations(integrations.statuses.filter((s)=>s.configured).map((s)=>s.name));
|
|
30081
30325
|
} catch (e) {
|
|
30082
30326
|
setError((0,utils_error/* errorMessage */.g)(e));
|
|
30083
30327
|
} finally{
|
|
@@ -30087,11 +30331,32 @@ function useDocumentsPanel() {
|
|
|
30087
30331
|
(0,react.useEffect)(()=>{
|
|
30088
30332
|
void load();
|
|
30089
30333
|
}, []);
|
|
30334
|
+
async function confirmEmbeddingDisclosure() {
|
|
30335
|
+
const current = await client/* api */.FH.documents.getRecallPolicy();
|
|
30336
|
+
setLocalEmbeddings(current.local_embeddings);
|
|
30337
|
+
return current.local_embeddings || (0,ui_confirm/* confirmAction */.fN)({
|
|
30338
|
+
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?",
|
|
30339
|
+
confirmLabel: "Allow indexing"
|
|
30340
|
+
});
|
|
30341
|
+
}
|
|
30342
|
+
async function saveRecallPolicy(policy) {
|
|
30343
|
+
setError(null);
|
|
30344
|
+
try {
|
|
30345
|
+
const updated = await client/* api */.FH.documents.setRecallPolicy(policy);
|
|
30346
|
+
setRecallPolicy(updated.policy);
|
|
30347
|
+
setLocalEmbeddings(updated.local_embeddings);
|
|
30348
|
+
} catch (e) {
|
|
30349
|
+
setError((0,utils_error/* errorMessage */.g)(e));
|
|
30350
|
+
throw e;
|
|
30351
|
+
}
|
|
30352
|
+
}
|
|
30090
30353
|
async function addSource(payload) {
|
|
30091
30354
|
setError(null);
|
|
30092
30355
|
try {
|
|
30356
|
+
if (!await confirmEmbeddingDisclosure()) return false;
|
|
30093
30357
|
await client/* api */.FH.documents.createSource(payload);
|
|
30094
30358
|
await load();
|
|
30359
|
+
return true;
|
|
30095
30360
|
} catch (e) {
|
|
30096
30361
|
setError((0,utils_error/* errorMessage */.g)(e));
|
|
30097
30362
|
throw e;
|
|
@@ -30103,6 +30368,7 @@ function useDocumentsPanel() {
|
|
|
30103
30368
|
[id]: true
|
|
30104
30369
|
}));
|
|
30105
30370
|
try {
|
|
30371
|
+
if (!await confirmEmbeddingDisclosure()) return;
|
|
30106
30372
|
const result = await client/* api */.FH.documents.reindex(id);
|
|
30107
30373
|
if ((result.stats.embed_failed ?? 0) > 0) {
|
|
30108
30374
|
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})` : ""));
|
|
@@ -30163,6 +30429,7 @@ function useDocumentsPanel() {
|
|
|
30163
30429
|
}
|
|
30164
30430
|
async function toggleSource(s) {
|
|
30165
30431
|
try {
|
|
30432
|
+
if (!s.enabled && !await confirmEmbeddingDisclosure()) return;
|
|
30166
30433
|
await client/* api */.FH.documents.updateSource(s.id, {
|
|
30167
30434
|
enabled: !s.enabled
|
|
30168
30435
|
});
|
|
@@ -30171,15 +30438,17 @@ function useDocumentsPanel() {
|
|
|
30171
30438
|
setError((0,utils_error/* errorMessage */.g)(e));
|
|
30172
30439
|
}
|
|
30173
30440
|
}
|
|
30174
|
-
async function search(q) {
|
|
30441
|
+
async function search(q, includeExcluded = false) {
|
|
30442
|
+
setError(null);
|
|
30175
30443
|
try {
|
|
30176
30444
|
const res = await client/* api */.FH.documents.search(q, {
|
|
30177
|
-
limit:
|
|
30445
|
+
limit: 25,
|
|
30446
|
+
include_excluded: includeExcluded
|
|
30178
30447
|
});
|
|
30179
30448
|
return res.hits;
|
|
30180
30449
|
} catch (e) {
|
|
30181
30450
|
setError((0,utils_error/* errorMessage */.g)(e));
|
|
30182
|
-
|
|
30451
|
+
throw e;
|
|
30183
30452
|
}
|
|
30184
30453
|
}
|
|
30185
30454
|
return {
|
|
@@ -30192,12 +30461,116 @@ function useDocumentsPanel() {
|
|
|
30192
30461
|
reindex,
|
|
30193
30462
|
removeSource,
|
|
30194
30463
|
toggleSource,
|
|
30195
|
-
search
|
|
30464
|
+
search,
|
|
30465
|
+
recallPolicy,
|
|
30466
|
+
localEmbeddings,
|
|
30467
|
+
configuredIntegrations,
|
|
30468
|
+
saveRecallPolicy
|
|
30196
30469
|
};
|
|
30197
30470
|
}
|
|
30198
30471
|
// Re-export so subcomponents can import in one place.
|
|
30199
30472
|
|
|
30200
30473
|
|
|
30474
|
+
;// ./components/documents/RecallExclusions.tsx
|
|
30475
|
+
/* __next_internal_client_entry_do_not_use__ RecallExclusions auto */
|
|
30476
|
+
|
|
30477
|
+
function RecallExclusions({ policy, onSave }) {
|
|
30478
|
+
const [topics, setTopics] = (0,react.useState)(policy.topics.join("\n"));
|
|
30479
|
+
const [similarity, setSimilarity] = (0,react.useState)(policy.topic_similarity);
|
|
30480
|
+
const [saving, setSaving] = (0,react.useState)(false);
|
|
30481
|
+
async function save(next) {
|
|
30482
|
+
setSaving(true);
|
|
30483
|
+
try {
|
|
30484
|
+
await onSave(next);
|
|
30485
|
+
} catch {
|
|
30486
|
+
// The panel surfaces save errors.
|
|
30487
|
+
} finally{
|
|
30488
|
+
setSaving(false);
|
|
30489
|
+
}
|
|
30490
|
+
}
|
|
30491
|
+
return /*#__PURE__*/ (0,jsx_runtime.jsxs)("section", {
|
|
30492
|
+
className: "space-y-2",
|
|
30493
|
+
children: [
|
|
30494
|
+
/*#__PURE__*/ (0,jsx_runtime.jsx)("h3", {
|
|
30495
|
+
className: "text-xs font-semibold text-fg-muted uppercase tracking-wide",
|
|
30496
|
+
children: "Global recall exclusions"
|
|
30497
|
+
}),
|
|
30498
|
+
/*#__PURE__*/ (0,jsx_runtime.jsx)("p", {
|
|
30499
|
+
className: "text-xs text-fg-faint",
|
|
30500
|
+
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."
|
|
30501
|
+
}),
|
|
30502
|
+
/*#__PURE__*/ (0,jsx_runtime.jsxs)("label", {
|
|
30503
|
+
className: "block text-xs text-fg-muted",
|
|
30504
|
+
children: [
|
|
30505
|
+
"Excluded topics (one per line, up to 25)",
|
|
30506
|
+
/*#__PURE__*/ (0,jsx_runtime.jsx)("textarea", {
|
|
30507
|
+
"aria-label": "Excluded topics",
|
|
30508
|
+
value: topics,
|
|
30509
|
+
disabled: saving,
|
|
30510
|
+
onChange: (e)=>setTopics(e.target.value),
|
|
30511
|
+
placeholder: "Personal medical treatment\nProject Atlas",
|
|
30512
|
+
rows: 3,
|
|
30513
|
+
className: "mt-1 w-full rounded-md bg-surface-2 border border-border p-2 text-sm text-fg"
|
|
30514
|
+
})
|
|
30515
|
+
]
|
|
30516
|
+
}),
|
|
30517
|
+
/*#__PURE__*/ (0,jsx_runtime.jsxs)("label", {
|
|
30518
|
+
className: "flex items-center gap-2 text-xs text-fg-muted",
|
|
30519
|
+
children: [
|
|
30520
|
+
"Topic similarity threshold",
|
|
30521
|
+
/*#__PURE__*/ (0,jsx_runtime.jsx)("input", {
|
|
30522
|
+
"aria-label": "Topic similarity threshold",
|
|
30523
|
+
type: "number",
|
|
30524
|
+
min: 0.1,
|
|
30525
|
+
max: 1,
|
|
30526
|
+
step: 0.05,
|
|
30527
|
+
value: similarity,
|
|
30528
|
+
disabled: saving,
|
|
30529
|
+
onChange: (e)=>setSimilarity(e.target.valueAsNumber),
|
|
30530
|
+
className: "w-20 rounded-md bg-surface-2 border border-border p-1"
|
|
30531
|
+
})
|
|
30532
|
+
]
|
|
30533
|
+
}),
|
|
30534
|
+
/*#__PURE__*/ (0,jsx_runtime.jsx)("p", {
|
|
30535
|
+
className: "text-xs text-fg-faint",
|
|
30536
|
+
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."
|
|
30537
|
+
}),
|
|
30538
|
+
/*#__PURE__*/ (0,jsx_runtime.jsx)("button", {
|
|
30539
|
+
type: "button",
|
|
30540
|
+
disabled: saving || !Number.isFinite(similarity) || similarity < 0.1 || similarity > 1,
|
|
30541
|
+
onClick: ()=>void save({
|
|
30542
|
+
...policy,
|
|
30543
|
+
topics: [
|
|
30544
|
+
...new Set(topics.split("\n").map((t)=>t.trim()).filter(Boolean))
|
|
30545
|
+
],
|
|
30546
|
+
topic_similarity: similarity
|
|
30547
|
+
}),
|
|
30548
|
+
className: "text-xs text-accent disabled:opacity-50",
|
|
30549
|
+
children: saving ? "Saving..." : "Save topic exclusions"
|
|
30550
|
+
}),
|
|
30551
|
+
policy.excluded_documents.map((doc)=>/*#__PURE__*/ (0,jsx_runtime.jsxs)("div", {
|
|
30552
|
+
className: "flex gap-2 items-center text-xs text-fg-muted",
|
|
30553
|
+
children: [
|
|
30554
|
+
/*#__PURE__*/ (0,jsx_runtime.jsx)("span", {
|
|
30555
|
+
className: "truncate flex-1",
|
|
30556
|
+
children: doc.label
|
|
30557
|
+
}),
|
|
30558
|
+
/*#__PURE__*/ (0,jsx_runtime.jsx)("button", {
|
|
30559
|
+
type: "button",
|
|
30560
|
+
disabled: saving,
|
|
30561
|
+
className: "text-accent",
|
|
30562
|
+
onClick: ()=>void save({
|
|
30563
|
+
...policy,
|
|
30564
|
+
excluded_documents: policy.excluded_documents.filter((d)=>d.source_id !== doc.source_id || d.path !== doc.path)
|
|
30565
|
+
}),
|
|
30566
|
+
children: "Allow again"
|
|
30567
|
+
})
|
|
30568
|
+
]
|
|
30569
|
+
}, `${doc.source_id}:${doc.path}`))
|
|
30570
|
+
]
|
|
30571
|
+
});
|
|
30572
|
+
}
|
|
30573
|
+
|
|
30201
30574
|
;// ./components/documents/DocumentsPanel.tsx
|
|
30202
30575
|
/* __next_internal_client_entry_do_not_use__ DocumentsPanel auto */
|
|
30203
30576
|
|
|
@@ -30208,6 +30581,7 @@ function useDocumentsPanel() {
|
|
|
30208
30581
|
|
|
30209
30582
|
|
|
30210
30583
|
|
|
30584
|
+
|
|
30211
30585
|
function DocumentsPanel({ embedded = false } = {}) {
|
|
30212
30586
|
const { dispatch } = (0,AppContext/* useAppContext */.Us)();
|
|
30213
30587
|
const containerRef = (0,react.useRef)(null);
|
|
@@ -30241,7 +30615,7 @@ function DocumentsPanel({ embedded = false } = {}) {
|
|
|
30241
30615
|
}),
|
|
30242
30616
|
/*#__PURE__*/ (0,jsx_runtime.jsxs)("div", {
|
|
30243
30617
|
ref: containerRef,
|
|
30244
|
-
className: embedded ? "
|
|
30618
|
+
className: embedded ? "workspace-gutter py-3 space-y-5" : "workspace-gutter flex-1 overflow-y-auto no-scrollbar py-3 space-y-5",
|
|
30245
30619
|
children: [
|
|
30246
30620
|
/*#__PURE__*/ (0,jsx_runtime.jsxs)("p", {
|
|
30247
30621
|
className: "text-xs text-fg-faint leading-relaxed",
|
|
@@ -30290,7 +30664,9 @@ function DocumentsPanel({ embedded = false } = {}) {
|
|
|
30290
30664
|
}),
|
|
30291
30665
|
/*#__PURE__*/ (0,jsx_runtime.jsx)(AddSourceForm, {
|
|
30292
30666
|
disabled: panel.loading,
|
|
30293
|
-
onSubmit: panel.addSource
|
|
30667
|
+
onSubmit: panel.addSource,
|
|
30668
|
+
configuredIntegrations: panel.configuredIntegrations,
|
|
30669
|
+
localEmbeddings: panel.localEmbeddings
|
|
30294
30670
|
}),
|
|
30295
30671
|
embedded && /*#__PURE__*/ (0,jsx_runtime.jsx)("button", {
|
|
30296
30672
|
type: "button",
|
|
@@ -30333,8 +30709,30 @@ function DocumentsPanel({ embedded = false } = {}) {
|
|
|
30333
30709
|
void panel.toggleSource(s);
|
|
30334
30710
|
}
|
|
30335
30711
|
}),
|
|
30336
|
-
|
|
30337
|
-
|
|
30712
|
+
panel.recallPolicy && /*#__PURE__*/ (0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
30713
|
+
children: [
|
|
30714
|
+
/*#__PURE__*/ (0,jsx_runtime.jsx)(RecallExclusions, {
|
|
30715
|
+
policy: panel.recallPolicy,
|
|
30716
|
+
onSave: panel.saveRecallPolicy
|
|
30717
|
+
}, JSON.stringify(panel.recallPolicy)),
|
|
30718
|
+
/*#__PURE__*/ (0,jsx_runtime.jsx)(SearchProbe, {
|
|
30719
|
+
onSearch: panel.search,
|
|
30720
|
+
onExclude: async (hit)=>{
|
|
30721
|
+
if (!panel.recallPolicy) return;
|
|
30722
|
+
await panel.saveRecallPolicy({
|
|
30723
|
+
...panel.recallPolicy,
|
|
30724
|
+
excluded_documents: [
|
|
30725
|
+
...panel.recallPolicy.excluded_documents.filter((d)=>d.source_id !== hit.source_id || d.path !== hit.abs_path),
|
|
30726
|
+
{
|
|
30727
|
+
source_id: hit.source_id,
|
|
30728
|
+
path: hit.abs_path,
|
|
30729
|
+
label: hit.rel_path
|
|
30730
|
+
}
|
|
30731
|
+
]
|
|
30732
|
+
});
|
|
30733
|
+
}
|
|
30734
|
+
}, `search-${JSON.stringify(panel.recallPolicy)}`)
|
|
30735
|
+
]
|
|
30338
30736
|
})
|
|
30339
30737
|
]
|
|
30340
30738
|
})
|
|
@@ -30455,7 +30853,7 @@ function UnifiedMemoryPanel() {
|
|
|
30455
30853
|
title: "Memory"
|
|
30456
30854
|
}),
|
|
30457
30855
|
/*#__PURE__*/ (0,jsx_runtime.jsxs)("div", {
|
|
30458
|
-
className: "
|
|
30856
|
+
className: "workspace-gutter py-3 border-b border-border space-y-2",
|
|
30459
30857
|
children: [
|
|
30460
30858
|
/*#__PURE__*/ (0,jsx_runtime.jsxs)("div", {
|
|
30461
30859
|
className: "flex gap-2",
|
|
@@ -30527,7 +30925,7 @@ function UnifiedMemoryPanel() {
|
|
|
30527
30925
|
children: [
|
|
30528
30926
|
results.length > 0 && /*#__PURE__*/ (0,jsx_runtime.jsx)("section", {
|
|
30529
30927
|
"aria-label": "Search results",
|
|
30530
|
-
className: "
|
|
30928
|
+
className: "workspace-gutter py-3 space-y-2",
|
|
30531
30929
|
children: results.map((result, index)=>/*#__PURE__*/ (0,jsx_runtime.jsxs)("article", {
|
|
30532
30930
|
className: "border-b border-border/60 py-2.5 last:border-b-0",
|
|
30533
30931
|
children: [
|
|
@@ -30594,7 +30992,7 @@ function UnifiedMemoryPanel() {
|
|
|
30594
30992
|
className: "group border-t border-border",
|
|
30595
30993
|
children: [
|
|
30596
30994
|
/*#__PURE__*/ (0,jsx_runtime.jsxs)("summary", {
|
|
30597
|
-
className: "flex items-center gap-2
|
|
30995
|
+
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",
|
|
30598
30996
|
children: [
|
|
30599
30997
|
/*#__PURE__*/ (0,jsx_runtime.jsx)(chevron_right/* default */.A, {
|
|
30600
30998
|
size: 14,
|
|
@@ -30616,7 +31014,7 @@ function UnifiedMemoryPanel() {
|
|
|
30616
31014
|
className: "group border-t border-border",
|
|
30617
31015
|
children: [
|
|
30618
31016
|
/*#__PURE__*/ (0,jsx_runtime.jsxs)("summary", {
|
|
30619
|
-
className: "flex items-center gap-2
|
|
31017
|
+
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",
|
|
30620
31018
|
children: [
|
|
30621
31019
|
/*#__PURE__*/ (0,jsx_runtime.jsx)(chevron_right/* default */.A, {
|
|
30622
31020
|
size: 14,
|
|
@@ -32385,12 +32783,242 @@ function ScreenLock({ onUnlock }) {
|
|
|
32385
32783
|
var UnlockScreen = __webpack_require__(12283);
|
|
32386
32784
|
// EXTERNAL MODULE: ./node_modules/lucide-react/dist/esm/icons/chart-column.mjs
|
|
32387
32785
|
var chart_column = __webpack_require__(94774);
|
|
32786
|
+
;// ./components/layout/AgentCardControls.tsx
|
|
32787
|
+
/* __next_internal_client_entry_do_not_use__ AgentCardControls auto */
|
|
32788
|
+
|
|
32789
|
+
|
|
32790
|
+
|
|
32791
|
+
|
|
32792
|
+
|
|
32793
|
+
|
|
32794
|
+
|
|
32795
|
+
const STRATEGIES = [
|
|
32796
|
+
{
|
|
32797
|
+
value: "cost_saving",
|
|
32798
|
+
label: "Economical"
|
|
32799
|
+
},
|
|
32800
|
+
{
|
|
32801
|
+
value: "fast",
|
|
32802
|
+
label: "Fast"
|
|
32803
|
+
},
|
|
32804
|
+
{
|
|
32805
|
+
value: "balanced",
|
|
32806
|
+
label: "Balanced"
|
|
32807
|
+
},
|
|
32808
|
+
{
|
|
32809
|
+
value: "high_reasoning",
|
|
32810
|
+
label: "High reasoning"
|
|
32811
|
+
}
|
|
32812
|
+
];
|
|
32813
|
+
function AgentCardControls({ agent, isFullMode, onUpdate }) {
|
|
32814
|
+
const { items: models, loading, error: modelsError, refresh } = (0,useListState/* useListState */.p)({
|
|
32815
|
+
loader: ()=>client/* api */.FH.models.list(),
|
|
32816
|
+
eventName: "jarela:models-changed",
|
|
32817
|
+
initialLoading: true
|
|
32818
|
+
});
|
|
32819
|
+
const [saving, setSaving] = (0,react.useState)(false);
|
|
32820
|
+
const [pending, setPending] = (0,react.useState)(null);
|
|
32821
|
+
const savingRef = (0,react.useRef)(false);
|
|
32822
|
+
const [error, setError] = (0,react.useState)(null);
|
|
32823
|
+
const [saved, setSaved] = (0,react.useState)(false);
|
|
32824
|
+
const displayedAgent = {
|
|
32825
|
+
...agent,
|
|
32826
|
+
...pending
|
|
32827
|
+
};
|
|
32828
|
+
const selectedModel = models.find((model)=>model.name === displayedAgent.model_config_name);
|
|
32829
|
+
const unavailableOverride = !!displayedAgent.model_config_name && (!selectedModel || !(0,effective_model/* isModelEnabled */.b_)(selectedModel));
|
|
32830
|
+
const enabledModels = models.filter(effective_model/* isModelEnabled */.b_);
|
|
32831
|
+
async function save(patch) {
|
|
32832
|
+
if (savingRef.current) return;
|
|
32833
|
+
savingRef.current = true;
|
|
32834
|
+
setSaving(true);
|
|
32835
|
+
setPending(patch);
|
|
32836
|
+
setError(null);
|
|
32837
|
+
setSaved(false);
|
|
32838
|
+
try {
|
|
32839
|
+
await onUpdate(agent.id, patch);
|
|
32840
|
+
setSaved(true);
|
|
32841
|
+
} catch (cause) {
|
|
32842
|
+
setError((0,utils_error/* errorMessage */.g)(cause));
|
|
32843
|
+
(0,error_report/* pushErrorToast */.uS)({
|
|
32844
|
+
title: "Could not update agent settings",
|
|
32845
|
+
error: cause,
|
|
32846
|
+
context: {
|
|
32847
|
+
panel: "agent-card",
|
|
32848
|
+
action: "agent.update",
|
|
32849
|
+
agent_id: agent.id
|
|
32850
|
+
}
|
|
32851
|
+
});
|
|
32852
|
+
} finally{
|
|
32853
|
+
savingRef.current = false;
|
|
32854
|
+
setPending(null);
|
|
32855
|
+
setSaving(false);
|
|
32856
|
+
}
|
|
32857
|
+
}
|
|
32858
|
+
return /*#__PURE__*/ (0,jsx_runtime.jsxs)("fieldset", {
|
|
32859
|
+
"aria-label": "Quick agent settings",
|
|
32860
|
+
disabled: saving,
|
|
32861
|
+
className: "min-w-0 space-y-3 border-t border-border/60 pt-3",
|
|
32862
|
+
children: [
|
|
32863
|
+
/*#__PURE__*/ (0,jsx_runtime.jsxs)("label", {
|
|
32864
|
+
className: "block space-y-1 text-xs text-fg-muted",
|
|
32865
|
+
children: [
|
|
32866
|
+
/*#__PURE__*/ (0,jsx_runtime.jsx)("span", {
|
|
32867
|
+
children: "Model"
|
|
32868
|
+
}),
|
|
32869
|
+
/*#__PURE__*/ (0,jsx_runtime.jsxs)(Select/* Select */.l, {
|
|
32870
|
+
size: "sm",
|
|
32871
|
+
className: "min-h-11 min-w-0",
|
|
32872
|
+
value: displayedAgent.model_config_name ?? "",
|
|
32873
|
+
disabled: loading || !!modelsError,
|
|
32874
|
+
onChange: (event)=>void save({
|
|
32875
|
+
model_config_name: event.target.value || null
|
|
32876
|
+
}),
|
|
32877
|
+
children: [
|
|
32878
|
+
/*#__PURE__*/ (0,jsx_runtime.jsx)("option", {
|
|
32879
|
+
value: "",
|
|
32880
|
+
children: "Automatic routing"
|
|
32881
|
+
}),
|
|
32882
|
+
unavailableOverride && /*#__PURE__*/ (0,jsx_runtime.jsxs)("option", {
|
|
32883
|
+
value: displayedAgent.model_config_name ?? "",
|
|
32884
|
+
disabled: true,
|
|
32885
|
+
children: [
|
|
32886
|
+
displayedAgent.model_config_name,
|
|
32887
|
+
" (",
|
|
32888
|
+
selectedModel ? "disabled" : "unavailable",
|
|
32889
|
+
")"
|
|
32890
|
+
]
|
|
32891
|
+
}),
|
|
32892
|
+
enabledModels.map((model)=>/*#__PURE__*/ (0,jsx_runtime.jsxs)("option", {
|
|
32893
|
+
value: model.name,
|
|
32894
|
+
children: [
|
|
32895
|
+
model.name,
|
|
32896
|
+
" - ",
|
|
32897
|
+
model.provider,
|
|
32898
|
+
" / ",
|
|
32899
|
+
model.model_id
|
|
32900
|
+
]
|
|
32901
|
+
}, model.name))
|
|
32902
|
+
]
|
|
32903
|
+
})
|
|
32904
|
+
]
|
|
32905
|
+
}),
|
|
32906
|
+
loading ? /*#__PURE__*/ (0,jsx_runtime.jsx)("p", {
|
|
32907
|
+
role: "status",
|
|
32908
|
+
className: "text-[11px] text-fg-faint",
|
|
32909
|
+
children: "Loading models..."
|
|
32910
|
+
}) : modelsError ? /*#__PURE__*/ (0,jsx_runtime.jsxs)("div", {
|
|
32911
|
+
className: "space-y-1 text-xs text-fg-muted",
|
|
32912
|
+
children: [
|
|
32913
|
+
/*#__PURE__*/ (0,jsx_runtime.jsxs)("p", {
|
|
32914
|
+
role: "alert",
|
|
32915
|
+
children: [
|
|
32916
|
+
"Could not load models: ",
|
|
32917
|
+
modelsError
|
|
32918
|
+
]
|
|
32919
|
+
}),
|
|
32920
|
+
/*#__PURE__*/ (0,jsx_runtime.jsx)("button", {
|
|
32921
|
+
type: "button",
|
|
32922
|
+
onClick: ()=>void refresh(),
|
|
32923
|
+
className: "control-tap min-h-11 underline",
|
|
32924
|
+
children: "Retry loading models"
|
|
32925
|
+
})
|
|
32926
|
+
]
|
|
32927
|
+
}) : /*#__PURE__*/ (0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
32928
|
+
children: [
|
|
32929
|
+
unavailableOverride && /*#__PURE__*/ (0,jsx_runtime.jsx)("p", {
|
|
32930
|
+
className: "text-[11px] text-amber-700 dark:text-amber-300",
|
|
32931
|
+
children: "The saved model override is unavailable. Automatic routing is used until it is available again."
|
|
32932
|
+
}),
|
|
32933
|
+
enabledModels.length === 0 && /*#__PURE__*/ (0,jsx_runtime.jsx)("p", {
|
|
32934
|
+
className: "text-[11px] text-amber-700 dark:text-amber-300",
|
|
32935
|
+
children: "No enabled models. Configure one in Settings before chatting."
|
|
32936
|
+
})
|
|
32937
|
+
]
|
|
32938
|
+
}),
|
|
32939
|
+
isFullMode && /*#__PURE__*/ (0,jsx_runtime.jsxs)("label", {
|
|
32940
|
+
className: "block space-y-1 text-xs text-fg-muted",
|
|
32941
|
+
children: [
|
|
32942
|
+
/*#__PURE__*/ (0,jsx_runtime.jsx)("span", {
|
|
32943
|
+
children: "Usage strategy"
|
|
32944
|
+
}),
|
|
32945
|
+
/*#__PURE__*/ (0,jsx_runtime.jsxs)(Select/* Select */.l, {
|
|
32946
|
+
size: "sm",
|
|
32947
|
+
className: "min-h-11 min-w-0",
|
|
32948
|
+
value: displayedAgent.usage_strategy ?? "",
|
|
32949
|
+
onChange: (event)=>{
|
|
32950
|
+
const strategy = STRATEGIES.find((item)=>item.value === event.target.value);
|
|
32951
|
+
void save({
|
|
32952
|
+
usage_strategy: strategy?.value ?? null
|
|
32953
|
+
});
|
|
32954
|
+
},
|
|
32955
|
+
children: [
|
|
32956
|
+
/*#__PURE__*/ (0,jsx_runtime.jsx)("option", {
|
|
32957
|
+
value: "",
|
|
32958
|
+
children: "Inherit global strategy"
|
|
32959
|
+
}),
|
|
32960
|
+
STRATEGIES.map((strategy)=>/*#__PURE__*/ (0,jsx_runtime.jsx)("option", {
|
|
32961
|
+
value: strategy.value,
|
|
32962
|
+
children: strategy.label
|
|
32963
|
+
}, strategy.value))
|
|
32964
|
+
]
|
|
32965
|
+
})
|
|
32966
|
+
]
|
|
32967
|
+
}),
|
|
32968
|
+
/*#__PURE__*/ (0,jsx_runtime.jsxs)("label", {
|
|
32969
|
+
className: "control-tap flex min-h-11 cursor-pointer items-center gap-2 text-xs text-fg-muted",
|
|
32970
|
+
children: [
|
|
32971
|
+
/*#__PURE__*/ (0,jsx_runtime.jsx)("input", {
|
|
32972
|
+
type: "checkbox",
|
|
32973
|
+
className: "rounded border-border",
|
|
32974
|
+
checked: displayedAgent.voice_enabled,
|
|
32975
|
+
onChange: (event)=>void save({
|
|
32976
|
+
voice_enabled: event.target.checked
|
|
32977
|
+
})
|
|
32978
|
+
}),
|
|
32979
|
+
"Enable voice"
|
|
32980
|
+
]
|
|
32981
|
+
}),
|
|
32982
|
+
/*#__PURE__*/ (0,jsx_runtime.jsx)("p", {
|
|
32983
|
+
className: "text-[11px] leading-relaxed text-fg-faint",
|
|
32984
|
+
children: "Voice requires a configured Google AI integration for Gemini speech services."
|
|
32985
|
+
}),
|
|
32986
|
+
/*#__PURE__*/ (0,jsx_runtime.jsx)("p", {
|
|
32987
|
+
className: "text-[11px] leading-relaxed text-fg-faint",
|
|
32988
|
+
children: "Saves for this agent across conversations. Model and strategy changes apply to new runs; they do not restart a running reply."
|
|
32989
|
+
}),
|
|
32990
|
+
saving && /*#__PURE__*/ (0,jsx_runtime.jsx)("p", {
|
|
32991
|
+
role: "status",
|
|
32992
|
+
className: "text-xs text-fg-muted",
|
|
32993
|
+
children: "Saving agent settings..."
|
|
32994
|
+
}),
|
|
32995
|
+
error && /*#__PURE__*/ (0,jsx_runtime.jsxs)("p", {
|
|
32996
|
+
role: "alert",
|
|
32997
|
+
className: "break-words text-xs text-fg-muted",
|
|
32998
|
+
children: [
|
|
32999
|
+
"Could not save settings: ",
|
|
33000
|
+
error
|
|
33001
|
+
]
|
|
33002
|
+
}),
|
|
33003
|
+
!saving && saved && /*#__PURE__*/ (0,jsx_runtime.jsx)("p", {
|
|
33004
|
+
role: "status",
|
|
33005
|
+
className: "text-xs text-fg-muted",
|
|
33006
|
+
children: "Agent settings saved."
|
|
33007
|
+
})
|
|
33008
|
+
]
|
|
33009
|
+
});
|
|
33010
|
+
}
|
|
33011
|
+
|
|
32388
33012
|
;// ./components/layout/MenuPanel.tsx
|
|
32389
33013
|
/* __next_internal_client_entry_do_not_use__ MenuPanel auto */
|
|
32390
33014
|
|
|
32391
33015
|
|
|
32392
33016
|
|
|
32393
33017
|
|
|
33018
|
+
|
|
33019
|
+
|
|
33020
|
+
|
|
33021
|
+
|
|
32394
33022
|
const WORKSPACE = [
|
|
32395
33023
|
{
|
|
32396
33024
|
tab: "agents",
|
|
@@ -32442,10 +33070,49 @@ const ADVANCED = [
|
|
|
32442
33070
|
icon: wrench/* default */.A
|
|
32443
33071
|
}
|
|
32444
33072
|
];
|
|
32445
|
-
|
|
33073
|
+
const MenuPanel_MD_REMARK_PLUGINS = [
|
|
33074
|
+
remark_gfm_lib/* default */.A
|
|
33075
|
+
];
|
|
33076
|
+
const DESKTOP_QUERY = "(min-width: 80rem)";
|
|
33077
|
+
function subscribeDesktop(onChange) {
|
|
33078
|
+
const media = window.matchMedia(DESKTOP_QUERY);
|
|
33079
|
+
media.addEventListener("change", onChange);
|
|
33080
|
+
return ()=>media.removeEventListener("change", onChange);
|
|
33081
|
+
}
|
|
33082
|
+
function desktopSnapshot() {
|
|
33083
|
+
return window.matchMedia(DESKTOP_QUERY).matches;
|
|
33084
|
+
}
|
|
33085
|
+
function serverDesktopSnapshot() {
|
|
33086
|
+
return false;
|
|
33087
|
+
}
|
|
33088
|
+
function AgentMarkdown({ children }) {
|
|
33089
|
+
return /*#__PURE__*/ (0,jsx_runtime.jsx)("div", {
|
|
33090
|
+
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",
|
|
33091
|
+
children: /*#__PURE__*/ (0,jsx_runtime.jsx)(lib/* Markdown */.oz, {
|
|
33092
|
+
remarkPlugins: MenuPanel_MD_REMARK_PLUGINS,
|
|
33093
|
+
skipHtml: true,
|
|
33094
|
+
components: {
|
|
33095
|
+
a: ({ href, children })=>/*#__PURE__*/ (0,jsx_runtime.jsx)("a", {
|
|
33096
|
+
href: href,
|
|
33097
|
+
target: "_blank",
|
|
33098
|
+
rel: "noopener noreferrer",
|
|
33099
|
+
children: children
|
|
33100
|
+
}),
|
|
33101
|
+
// Descriptions must not load remote images, including in the hidden mobile card.
|
|
33102
|
+
img: ({ alt })=>/*#__PURE__*/ (0,jsx_runtime.jsx)("span", {
|
|
33103
|
+
className: "italic text-fg-faint",
|
|
33104
|
+
children: alt
|
|
33105
|
+
})
|
|
33106
|
+
},
|
|
33107
|
+
children: children
|
|
33108
|
+
})
|
|
33109
|
+
});
|
|
33110
|
+
}
|
|
33111
|
+
function MenuPanel({ activeTab, open = true, onClose, onSetTab, activeAgent, agentsLoading = false, agentsError, onUpdateAgent }) {
|
|
32446
33112
|
const { state } = (0,AppContext/* useAppContext */.Us)();
|
|
32447
33113
|
const isFullMode = state.experienceMode === "full";
|
|
32448
33114
|
const attention = useSettingsAttention();
|
|
33115
|
+
const isDesktop = (0,react.useSyncExternalStore)(subscribeDesktop, desktopSnapshot, serverDesktopSnapshot);
|
|
32449
33116
|
const renderItem = ({ tab, label, description, icon: Icon })=>{
|
|
32450
33117
|
const needsAttention = tab === "settings" && attention.any;
|
|
32451
33118
|
const reasons = [
|
|
@@ -32500,13 +33167,112 @@ function MenuPanel({ activeTab, open = true, onClose, onSetTab }) {
|
|
|
32500
33167
|
return /*#__PURE__*/ (0,jsx_runtime.jsx)("nav", {
|
|
32501
33168
|
id: "main-navigation",
|
|
32502
33169
|
"aria-label": "Main navigation",
|
|
32503
|
-
className: `glass-elevated fixed right-0 bottom-0 w-full sm:w-[26rem] xl:w-
|
|
33170
|
+
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`,
|
|
32504
33171
|
style: {
|
|
32505
33172
|
top: "calc(3rem + var(--app-safe-top))"
|
|
32506
33173
|
},
|
|
32507
33174
|
children: /*#__PURE__*/ (0,jsx_runtime.jsxs)("div", {
|
|
32508
33175
|
className: "min-h-0 flex-1 overflow-y-auto overscroll-contain panel-scrollbar px-3 py-3 space-y-4",
|
|
32509
33176
|
children: [
|
|
33177
|
+
/*#__PURE__*/ (0,jsx_runtime.jsxs)("section", {
|
|
33178
|
+
"aria-labelledby": "menu-selected-agent",
|
|
33179
|
+
className: "hidden rounded-2xl border border-border/60 bg-surface-2/50 p-3 xl:block",
|
|
33180
|
+
children: [
|
|
33181
|
+
/*#__PURE__*/ (0,jsx_runtime.jsx)("h2", {
|
|
33182
|
+
id: "menu-selected-agent",
|
|
33183
|
+
className: "pb-3 text-[11px] font-semibold uppercase tracking-wide text-fg-faint",
|
|
33184
|
+
children: "Selected agent"
|
|
33185
|
+
}),
|
|
33186
|
+
agentsError ? /*#__PURE__*/ (0,jsx_runtime.jsxs)("p", {
|
|
33187
|
+
className: "text-xs text-fg-muted",
|
|
33188
|
+
role: "status",
|
|
33189
|
+
children: [
|
|
33190
|
+
"Could not load agent details: ",
|
|
33191
|
+
agentsError
|
|
33192
|
+
]
|
|
33193
|
+
}) : agentsLoading && !activeAgent ? /*#__PURE__*/ (0,jsx_runtime.jsx)("p", {
|
|
33194
|
+
className: "text-xs text-fg-faint",
|
|
33195
|
+
role: "status",
|
|
33196
|
+
children: "Loading agent details..."
|
|
33197
|
+
}) : activeAgent ? /*#__PURE__*/ (0,jsx_runtime.jsxs)("div", {
|
|
33198
|
+
className: "min-w-0 space-y-3",
|
|
33199
|
+
children: [
|
|
33200
|
+
/*#__PURE__*/ (0,jsx_runtime.jsxs)("div", {
|
|
33201
|
+
className: "flex min-w-0 items-center gap-3",
|
|
33202
|
+
children: [
|
|
33203
|
+
activeAgent.icon ? // eslint-disable-next-line @next/next/no-img-element
|
|
33204
|
+
/*#__PURE__*/ (0,jsx_runtime.jsx)("img", {
|
|
33205
|
+
src: activeAgent.icon,
|
|
33206
|
+
alt: "",
|
|
33207
|
+
className: "h-12 w-12 shrink-0 rounded-xl object-cover"
|
|
33208
|
+
}) : /*#__PURE__*/ (0,jsx_runtime.jsx)("span", {
|
|
33209
|
+
"aria-hidden": "true",
|
|
33210
|
+
className: "flex h-12 w-12 shrink-0 items-center justify-center rounded-xl bg-accent/15 text-lg font-semibold text-accent",
|
|
33211
|
+
children: activeAgent.name.charAt(0).toUpperCase()
|
|
33212
|
+
}),
|
|
33213
|
+
/*#__PURE__*/ (0,jsx_runtime.jsx)("h3", {
|
|
33214
|
+
className: "min-w-0 break-words text-sm font-semibold",
|
|
33215
|
+
children: activeAgent.name
|
|
33216
|
+
})
|
|
33217
|
+
]
|
|
33218
|
+
}),
|
|
33219
|
+
/*#__PURE__*/ (0,jsx_runtime.jsxs)("div", {
|
|
33220
|
+
role: "region",
|
|
33221
|
+
"aria-label": "Agent description",
|
|
33222
|
+
tabIndex: 0,
|
|
33223
|
+
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",
|
|
33224
|
+
children: [
|
|
33225
|
+
/*#__PURE__*/ (0,jsx_runtime.jsxs)("div", {
|
|
33226
|
+
children: [
|
|
33227
|
+
/*#__PURE__*/ (0,jsx_runtime.jsx)("h4", {
|
|
33228
|
+
className: "mb-1 text-[11px] font-semibold text-fg-faint",
|
|
33229
|
+
children: "Identity"
|
|
33230
|
+
}),
|
|
33231
|
+
activeAgent.identity.trim() ? /*#__PURE__*/ (0,jsx_runtime.jsx)(AgentMarkdown, {
|
|
33232
|
+
children: activeAgent.identity
|
|
33233
|
+
}) : /*#__PURE__*/ (0,jsx_runtime.jsx)("p", {
|
|
33234
|
+
className: "text-xs text-fg-faint",
|
|
33235
|
+
children: "No identity set."
|
|
33236
|
+
})
|
|
33237
|
+
]
|
|
33238
|
+
}),
|
|
33239
|
+
/*#__PURE__*/ (0,jsx_runtime.jsxs)("div", {
|
|
33240
|
+
children: [
|
|
33241
|
+
/*#__PURE__*/ (0,jsx_runtime.jsx)("h4", {
|
|
33242
|
+
className: "mb-1 text-[11px] font-semibold text-fg-faint",
|
|
33243
|
+
children: "Instructions"
|
|
33244
|
+
}),
|
|
33245
|
+
activeAgent.instructions.trim() ? /*#__PURE__*/ (0,jsx_runtime.jsx)(AgentMarkdown, {
|
|
33246
|
+
children: activeAgent.instructions
|
|
33247
|
+
}) : /*#__PURE__*/ (0,jsx_runtime.jsx)("p", {
|
|
33248
|
+
className: "text-xs text-fg-faint",
|
|
33249
|
+
children: "No instructions set."
|
|
33250
|
+
})
|
|
33251
|
+
]
|
|
33252
|
+
})
|
|
33253
|
+
]
|
|
33254
|
+
}),
|
|
33255
|
+
isDesktop && onUpdateAgent && /*#__PURE__*/ (0,jsx_runtime.jsx)(AgentCardControls, {
|
|
33256
|
+
agent: activeAgent,
|
|
33257
|
+
isFullMode: isFullMode,
|
|
33258
|
+
onUpdate: onUpdateAgent
|
|
33259
|
+
}),
|
|
33260
|
+
/*#__PURE__*/ (0,jsx_runtime.jsx)("button", {
|
|
33261
|
+
type: "button",
|
|
33262
|
+
onClick: ()=>{
|
|
33263
|
+
onSetTab("agents");
|
|
33264
|
+
onClose();
|
|
33265
|
+
},
|
|
33266
|
+
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",
|
|
33267
|
+
children: "Manage agents"
|
|
33268
|
+
})
|
|
33269
|
+
]
|
|
33270
|
+
}) : /*#__PURE__*/ (0,jsx_runtime.jsx)("p", {
|
|
33271
|
+
className: "text-xs text-fg-faint",
|
|
33272
|
+
children: "Select an agent to see its details."
|
|
33273
|
+
})
|
|
33274
|
+
]
|
|
33275
|
+
}, activeAgent?.id),
|
|
32510
33276
|
/*#__PURE__*/ (0,jsx_runtime.jsxs)("section", {
|
|
32511
33277
|
"aria-labelledby": "menu-workspace",
|
|
32512
33278
|
children: [
|
|
@@ -32945,11 +33711,43 @@ function InsightChip({ label, value, hint, icon }) {
|
|
|
32945
33711
|
});
|
|
32946
33712
|
}
|
|
32947
33713
|
|
|
33714
|
+
;// ./components/dashboard/CostBreakdown.tsx
|
|
33715
|
+
|
|
33716
|
+
|
|
33717
|
+
function CostBreakdown({ costs, currencyInfo }) {
|
|
33718
|
+
return /*#__PURE__*/ (0,jsx_runtime.jsxs)("div", {
|
|
33719
|
+
className: "flex flex-wrap gap-x-3 gap-y-1 text-[11px] tabular-nums text-[var(--text-secondary)]",
|
|
33720
|
+
children: [
|
|
33721
|
+
/*#__PURE__*/ (0,jsx_runtime.jsxs)("span", {
|
|
33722
|
+
title: "Input cost includes prompt-cache read and write charges.",
|
|
33723
|
+
children: [
|
|
33724
|
+
"Input cost: ",
|
|
33725
|
+
formatMoney(costs.input_cost_usd, currencyInfo)
|
|
33726
|
+
]
|
|
33727
|
+
}),
|
|
33728
|
+
/*#__PURE__*/ (0,jsx_runtime.jsxs)("span", {
|
|
33729
|
+
children: [
|
|
33730
|
+
"Output cost: ",
|
|
33731
|
+
formatMoney(costs.output_cost_usd, currencyInfo)
|
|
33732
|
+
]
|
|
33733
|
+
}),
|
|
33734
|
+
costs.unattributed_cost_usd !== 0 ? /*#__PURE__*/ (0,jsx_runtime.jsxs)("span", {
|
|
33735
|
+
title: "Recorded cost retained because matching rates are unavailable; the input/output split is unknown.",
|
|
33736
|
+
children: [
|
|
33737
|
+
"Unattributed cost: ",
|
|
33738
|
+
formatMoney(costs.unattributed_cost_usd, currencyInfo)
|
|
33739
|
+
]
|
|
33740
|
+
}) : null
|
|
33741
|
+
]
|
|
33742
|
+
});
|
|
33743
|
+
}
|
|
33744
|
+
|
|
32948
33745
|
;// ./components/dashboard/SummaryCards.tsx
|
|
32949
33746
|
/* __next_internal_client_entry_do_not_use__ SummaryStrip,MetricCardsGrid auto */
|
|
32950
33747
|
|
|
32951
33748
|
|
|
32952
33749
|
|
|
33750
|
+
|
|
32953
33751
|
function SummaryStrip({ data, currencyInfo, windowTokenTotal, activeDays, avgDailyTokens, avgDailyCostUsd }) {
|
|
32954
33752
|
const cacheHitPct = (data.summary.cache_hit_rate * 100).toFixed(1);
|
|
32955
33753
|
const hasCacheStats = data.summary.cache_read_tokens > 0;
|
|
@@ -32989,43 +33787,61 @@ function SummaryStrip({ data, currencyInfo, windowTokenTotal, activeDays, avgDai
|
|
|
32989
33787
|
}
|
|
32990
33788
|
function MetricCardsGrid({ effectiveSummary, currencyInfo, selectedDay }) {
|
|
32991
33789
|
return /*#__PURE__*/ (0,jsx_runtime.jsxs)("div", {
|
|
32992
|
-
className: "
|
|
33790
|
+
className: "space-y-2",
|
|
32993
33791
|
children: [
|
|
32994
|
-
/*#__PURE__*/ (0,jsx_runtime.
|
|
32995
|
-
|
|
32996
|
-
|
|
32997
|
-
|
|
32998
|
-
|
|
32999
|
-
|
|
33000
|
-
|
|
33001
|
-
|
|
33002
|
-
|
|
33003
|
-
|
|
33004
|
-
|
|
33005
|
-
|
|
33006
|
-
|
|
33007
|
-
|
|
33008
|
-
|
|
33009
|
-
|
|
33010
|
-
|
|
33011
|
-
|
|
33012
|
-
|
|
33013
|
-
|
|
33014
|
-
|
|
33015
|
-
|
|
33016
|
-
|
|
33017
|
-
|
|
33018
|
-
|
|
33019
|
-
|
|
33020
|
-
|
|
33792
|
+
/*#__PURE__*/ (0,jsx_runtime.jsxs)("div", {
|
|
33793
|
+
className: "grid grid-cols-2 lg:grid-cols-5 gap-3",
|
|
33794
|
+
children: [
|
|
33795
|
+
/*#__PURE__*/ (0,jsx_runtime.jsx)(MetricCard, {
|
|
33796
|
+
label: selectedDay ? `Input tokens on ${selectedDay}` : "Input tokens (est)",
|
|
33797
|
+
value: formatInt(effectiveSummary?.input_tokens_est ?? 0),
|
|
33798
|
+
icon: /*#__PURE__*/ (0,jsx_runtime.jsx)(chart_column/* default */.A, {
|
|
33799
|
+
size: 15
|
|
33800
|
+
})
|
|
33801
|
+
}),
|
|
33802
|
+
/*#__PURE__*/ (0,jsx_runtime.jsx)(MetricCard, {
|
|
33803
|
+
label: selectedDay ? `Output tokens on ${selectedDay}` : "Output tokens (est)",
|
|
33804
|
+
value: formatInt(effectiveSummary?.output_tokens_est ?? 0),
|
|
33805
|
+
icon: /*#__PURE__*/ (0,jsx_runtime.jsx)(trending_up/* default */.A, {
|
|
33806
|
+
size: 15
|
|
33807
|
+
})
|
|
33808
|
+
}),
|
|
33809
|
+
/*#__PURE__*/ (0,jsx_runtime.jsx)(MetricCard, {
|
|
33810
|
+
label: selectedDay ? `Cost on ${selectedDay} (${currencyInfo.currency})` : `Estimated cost (${currencyInfo.currency})`,
|
|
33811
|
+
value: formatMoney(effectiveSummary?.estimated_cost_usd ?? 0, currencyInfo),
|
|
33812
|
+
icon: /*#__PURE__*/ (0,jsx_runtime.jsx)(coins/* default */.A, {
|
|
33813
|
+
size: 15
|
|
33814
|
+
})
|
|
33815
|
+
}),
|
|
33816
|
+
/*#__PURE__*/ (0,jsx_runtime.jsx)(MetricCard, {
|
|
33817
|
+
label: "Tool success rate",
|
|
33818
|
+
value: `${((effectiveSummary?.success_rate ?? 1) * 100).toFixed(1)}%`,
|
|
33819
|
+
icon: /*#__PURE__*/ (0,jsx_runtime.jsx)(shield_check/* default */.A, {
|
|
33820
|
+
size: 15
|
|
33821
|
+
})
|
|
33822
|
+
}),
|
|
33823
|
+
/*#__PURE__*/ (0,jsx_runtime.jsx)(MetricCard, {
|
|
33824
|
+
label: "Tool error rate",
|
|
33825
|
+
value: `${((effectiveSummary?.error_rate ?? 0) * 100).toFixed(1)}%`,
|
|
33826
|
+
icon: /*#__PURE__*/ (0,jsx_runtime.jsx)(activity/* default */.A, {
|
|
33827
|
+
size: 15
|
|
33828
|
+
})
|
|
33829
|
+
})
|
|
33830
|
+
]
|
|
33021
33831
|
}),
|
|
33022
|
-
/*#__PURE__*/ (0,jsx_runtime.
|
|
33023
|
-
|
|
33024
|
-
|
|
33025
|
-
|
|
33026
|
-
|
|
33027
|
-
|
|
33028
|
-
|
|
33832
|
+
effectiveSummary ? /*#__PURE__*/ (0,jsx_runtime.jsxs)("div", {
|
|
33833
|
+
className: "rounded-xl bg-[var(--bg-secondary)]/70 px-3 py-2",
|
|
33834
|
+
children: [
|
|
33835
|
+
/*#__PURE__*/ (0,jsx_runtime.jsx)(CostBreakdown, {
|
|
33836
|
+
costs: effectiveSummary.cost_breakdown,
|
|
33837
|
+
currencyInfo: currencyInfo
|
|
33838
|
+
}),
|
|
33839
|
+
/*#__PURE__*/ (0,jsx_runtime.jsx)("p", {
|
|
33840
|
+
className: "mt-1 text-[10px] text-[var(--text-secondary)]",
|
|
33841
|
+
children: "Input includes prompt-cache charges. Costs use each model's separate input and output rates."
|
|
33842
|
+
})
|
|
33843
|
+
]
|
|
33844
|
+
}) : null
|
|
33029
33845
|
]
|
|
33030
33846
|
});
|
|
33031
33847
|
}
|
|
@@ -33054,6 +33870,7 @@ function useReducedMotion() {
|
|
|
33054
33870
|
|
|
33055
33871
|
|
|
33056
33872
|
|
|
33873
|
+
|
|
33057
33874
|
function InteractiveTokenChart({ series, selectedDay, onSelectDay }) {
|
|
33058
33875
|
const [hovered, setHovered] = (0,react.useState)(null);
|
|
33059
33876
|
const [barsReady, setBarsReady] = (0,react.useState)(false);
|
|
@@ -33333,6 +34150,7 @@ function InteractiveCostChart({ series, currencyInfo, selectedDay, onSelectDay }
|
|
|
33333
34150
|
const active = hovered != null ? points[hovered] : null;
|
|
33334
34151
|
const selectedIdx = selectedDay ? points.findIndex((pt)=>pt.p.day === selectedDay) : -1;
|
|
33335
34152
|
const selected = selectedIdx >= 0 ? points[selectedIdx] : null;
|
|
34153
|
+
const detailPoint = active ?? selected;
|
|
33336
34154
|
const animationSignature = series.map((s)=>`${s.day}:${s.estimated_cost_usd}`).join("|");
|
|
33337
34155
|
(0,react.useEffect)(()=>{
|
|
33338
34156
|
setLineAnimCycle((v)=>v + 1);
|
|
@@ -33461,7 +34279,11 @@ function InteractiveCostChart({ series, currencyInfo, selectedDay, onSelectDay }
|
|
|
33461
34279
|
]
|
|
33462
34280
|
})
|
|
33463
34281
|
]
|
|
33464
|
-
})
|
|
34282
|
+
}),
|
|
34283
|
+
detailPoint ? /*#__PURE__*/ (0,jsx_runtime.jsx)(CostBreakdown, {
|
|
34284
|
+
costs: detailPoint.p.cost_breakdown,
|
|
34285
|
+
currencyInfo: currencyInfo
|
|
34286
|
+
}) : null
|
|
33465
34287
|
]
|
|
33466
34288
|
});
|
|
33467
34289
|
}
|
|
@@ -33715,6 +34537,7 @@ function arcPath(cx, cy, r, startAngle, endAngle) {
|
|
|
33715
34537
|
|
|
33716
34538
|
|
|
33717
34539
|
|
|
34540
|
+
|
|
33718
34541
|
function SharedDonutChart({ ariaLabel, size, centerAmount, slices, hovered, onHoverChange }) {
|
|
33719
34542
|
const uid = (0,react.useId)().replace(/:/g, "");
|
|
33720
34543
|
const reducedMotion = useReducedMotion();
|
|
@@ -33965,6 +34788,10 @@ function AgentCostPie({ agents, currencyInfo }) {
|
|
|
33965
34788
|
formatInt(slice.agent.input_tokens_est + slice.agent.output_tokens_est),
|
|
33966
34789
|
" tokens"
|
|
33967
34790
|
]
|
|
34791
|
+
}),
|
|
34792
|
+
/*#__PURE__*/ (0,jsx_runtime.jsx)(CostBreakdown, {
|
|
34793
|
+
costs: slice.agent.cost_breakdown,
|
|
34794
|
+
currencyInfo: currencyInfo
|
|
33968
34795
|
})
|
|
33969
34796
|
]
|
|
33970
34797
|
}, slice.agent.agent_id))
|
|
@@ -34072,6 +34899,10 @@ function BreakdownPiePanel({ title, items, currencyInfo, emptyLabel }) {
|
|
|
34072
34899
|
"% \xb7 ",
|
|
34073
34900
|
slice.detail
|
|
34074
34901
|
]
|
|
34902
|
+
}),
|
|
34903
|
+
/*#__PURE__*/ (0,jsx_runtime.jsx)(CostBreakdown, {
|
|
34904
|
+
costs: slice.costs,
|
|
34905
|
+
currencyInfo: currencyInfo
|
|
34075
34906
|
})
|
|
34076
34907
|
]
|
|
34077
34908
|
}, slice.id))
|
|
@@ -34230,6 +35061,7 @@ function VendorModelReportSection({ effectiveByProvider, effectiveByModel, selec
|
|
|
34230
35061
|
id: row.provider,
|
|
34231
35062
|
label: row.provider,
|
|
34232
35063
|
cost: row.estimated_cost_usd,
|
|
35064
|
+
costs: row.cost_breakdown,
|
|
34233
35065
|
detail: `${formatInt(row.message_count)} msgs · ${formatInt(row.input_tokens_est + row.output_tokens_est)} tokens`
|
|
34234
35066
|
})),
|
|
34235
35067
|
currencyInfo: currencyInfo
|
|
@@ -34241,6 +35073,7 @@ function VendorModelReportSection({ effectiveByProvider, effectiveByModel, selec
|
|
|
34241
35073
|
id: `${row.provider}:${row.model_config_name}:${row.model_id}`,
|
|
34242
35074
|
label: row.model_config_name,
|
|
34243
35075
|
cost: row.estimated_cost_usd,
|
|
35076
|
+
costs: row.cost_breakdown,
|
|
34244
35077
|
detail: `${row.provider}/${row.model_id} · ${formatInt(row.message_count)} msgs`
|
|
34245
35078
|
})),
|
|
34246
35079
|
currencyInfo: currencyInfo
|
|
@@ -34258,20 +35091,20 @@ function VendorModelReportSection({ effectiveByProvider, effectiveByModel, selec
|
|
|
34258
35091
|
|
|
34259
35092
|
|
|
34260
35093
|
|
|
34261
|
-
function ModelPricingSection({
|
|
34262
|
-
const filtered = sortModelRates(filterModelRates(
|
|
35094
|
+
function ModelPricingSection({ pricing, modelVendorFilter, onVendorFilterChange, modelFunctionFilter, onFunctionFilterChange, modelSearch, onSearchChange, modelSort, onSortChange, currencyInfo }) {
|
|
35095
|
+
const filtered = sortModelRates(filterModelRates(pricing.model_rates, {
|
|
34263
35096
|
vendor: modelVendorFilter,
|
|
34264
35097
|
functionality: modelFunctionFilter,
|
|
34265
35098
|
search: modelSearch
|
|
34266
35099
|
}), modelSort);
|
|
34267
35100
|
const grouped = groupModelRatesByVendor(filtered);
|
|
34268
35101
|
const vendors = [
|
|
34269
|
-
...new Set(
|
|
35102
|
+
...new Set(pricing.model_rates.map((r)=>r.provider))
|
|
34270
35103
|
].sort();
|
|
34271
35104
|
const functionalities = [
|
|
34272
|
-
...new Set(
|
|
35105
|
+
...new Set(pricing.model_rates.map((r)=>detectModelFunctionality(r.model_id)))
|
|
34273
35106
|
].sort();
|
|
34274
|
-
const aggregatorRates =
|
|
35107
|
+
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()));
|
|
34275
35108
|
return /*#__PURE__*/ (0,jsx_runtime.jsxs)("section", {
|
|
34276
35109
|
className: "rounded-2xl border border-[var(--border)] bg-[var(--bg-secondary)]/90 p-4 space-y-2 shadow-sm",
|
|
34277
35110
|
children: [
|
|
@@ -34283,7 +35116,7 @@ function ModelPricingSection({ data, modelVendorFilter, onVendorFilterChange, mo
|
|
|
34283
35116
|
className: "text-xs text-[var(--text-secondary)]",
|
|
34284
35117
|
children: [
|
|
34285
35118
|
"Snapshot: ",
|
|
34286
|
-
|
|
35119
|
+
pricing.snapshot_generated_at ?? "not found"
|
|
34287
35120
|
]
|
|
34288
35121
|
}),
|
|
34289
35122
|
/*#__PURE__*/ (0,jsx_runtime.jsxs)("div", {
|
|
@@ -34293,6 +35126,14 @@ function ModelPricingSection({ data, modelVendorFilter, onVendorFilterChange, mo
|
|
|
34293
35126
|
className: "px-3 py-2 text-xs font-medium text-[var(--text-primary)]",
|
|
34294
35127
|
children: "Model pricing (detected)"
|
|
34295
35128
|
}),
|
|
35129
|
+
/*#__PURE__*/ (0,jsx_runtime.jsxs)("p", {
|
|
35130
|
+
className: "px-3 pb-2 text-[11px] text-[var(--text-secondary)]",
|
|
35131
|
+
children: [
|
|
35132
|
+
"Separate input and output prices per 1 million tokens (",
|
|
35133
|
+
currencyInfo.currency,
|
|
35134
|
+
"). Usage costs apply each rate separately."
|
|
35135
|
+
]
|
|
35136
|
+
}),
|
|
34296
35137
|
/*#__PURE__*/ (0,jsx_runtime.jsx)("div", {
|
|
34297
35138
|
className: "px-3 pb-2",
|
|
34298
35139
|
children: /*#__PURE__*/ (0,jsx_runtime.jsxs)("div", {
|
|
@@ -34404,7 +35245,7 @@ function ModelPricingSection({ data, modelVendorFilter, onVendorFilterChange, mo
|
|
|
34404
35245
|
}),
|
|
34405
35246
|
/*#__PURE__*/ (0,jsx_runtime.jsx)("div", {
|
|
34406
35247
|
className: "flex flex-wrap gap-1.5 px-3 py-2",
|
|
34407
|
-
children:
|
|
35248
|
+
children: pricing.aggregator_sources.map((source)=>/*#__PURE__*/ (0,jsx_runtime.jsxs)("span", {
|
|
34408
35249
|
title: source.error ?? (source.ok ? `Last checked ${source.fetched_at}` : `Last successful fetch ${source.last_successful_at ?? "never"}`),
|
|
34409
35250
|
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"}`,
|
|
34410
35251
|
children: [
|
|
@@ -34421,7 +35262,7 @@ function ModelPricingSection({ data, modelVendorFilter, onVendorFilterChange, mo
|
|
|
34421
35262
|
className: "px-3 pb-3 text-xs text-[var(--text-secondary)]",
|
|
34422
35263
|
children: "No comparable aggregator rates for these filters."
|
|
34423
35264
|
}) : aggregatorRates.slice(0, 100).map((row)=>{
|
|
34424
|
-
const direct =
|
|
35265
|
+
const direct = pricing.model_rates.find((rate)=>rate.provider === row.provider && rate.model_id === row.model_id);
|
|
34425
35266
|
const inputDelta = priceDelta(row.input_per_1m_usd, direct?.input_per_1m_usd ?? null);
|
|
34426
35267
|
const outputDelta = priceDelta(row.output_per_1m_usd, direct?.output_per_1m_usd ?? null);
|
|
34427
35268
|
return /*#__PURE__*/ (0,jsx_runtime.jsxs)("div", {
|
|
@@ -34439,14 +35280,22 @@ function ModelPricingSection({ data, modelVendorFilter, onVendorFilterChange, mo
|
|
|
34439
35280
|
]
|
|
34440
35281
|
}),
|
|
34441
35282
|
/*#__PURE__*/ (0,jsx_runtime.jsxs)("span", {
|
|
34442
|
-
className: "text-[
|
|
35283
|
+
className: "flex flex-wrap gap-x-3 text-[11px] tabular-nums text-[var(--text-secondary)]",
|
|
34443
35284
|
children: [
|
|
34444
|
-
|
|
34445
|
-
|
|
34446
|
-
|
|
34447
|
-
|
|
34448
|
-
|
|
34449
|
-
|
|
35285
|
+
/*#__PURE__*/ (0,jsx_runtime.jsxs)("span", {
|
|
35286
|
+
children: [
|
|
35287
|
+
"Input: ",
|
|
35288
|
+
row.input_per_1m_usd == null ? "n/a" : formatMoney(row.input_per_1m_usd, currencyInfo),
|
|
35289
|
+
" / 1M tokens"
|
|
35290
|
+
]
|
|
35291
|
+
}),
|
|
35292
|
+
/*#__PURE__*/ (0,jsx_runtime.jsxs)("span", {
|
|
35293
|
+
children: [
|
|
35294
|
+
"Output: ",
|
|
35295
|
+
row.output_per_1m_usd == null ? "n/a" : formatMoney(row.output_per_1m_usd, currencyInfo),
|
|
35296
|
+
" / 1M tokens"
|
|
35297
|
+
]
|
|
35298
|
+
})
|
|
34450
35299
|
]
|
|
34451
35300
|
})
|
|
34452
35301
|
]
|
|
@@ -34463,9 +35312,9 @@ function ModelPricingSection({ data, modelVendorFilter, onVendorFilterChange, mo
|
|
|
34463
35312
|
}),
|
|
34464
35313
|
inputDelta || outputDelta ? /*#__PURE__*/ (0,jsx_runtime.jsxs)("span", {
|
|
34465
35314
|
children: [
|
|
34466
|
-
"vs direct:
|
|
35315
|
+
"vs direct: input ",
|
|
34467
35316
|
inputDelta ?? "n/a",
|
|
34468
|
-
",
|
|
35317
|
+
", output ",
|
|
34469
35318
|
outputDelta ?? "n/a"
|
|
34470
35319
|
]
|
|
34471
35320
|
}) : null,
|
|
@@ -34502,7 +35351,7 @@ function ModelPricingSection({ data, modelVendorFilter, onVendorFilterChange, mo
|
|
|
34502
35351
|
}),
|
|
34503
35352
|
/*#__PURE__*/ (0,jsx_runtime.jsx)("p", {
|
|
34504
35353
|
className: "text-[11px] text-[var(--text-secondary)]",
|
|
34505
|
-
children:
|
|
35354
|
+
children: pricing.notes
|
|
34506
35355
|
})
|
|
34507
35356
|
]
|
|
34508
35357
|
});
|
|
@@ -34556,30 +35405,34 @@ function ModelPricingRow({ row, currencyInfo }) {
|
|
|
34556
35405
|
className: "px-3 py-2 border-t border-[var(--border)]/40 hover:bg-[var(--bg-primary)]/35 transition-colors",
|
|
34557
35406
|
children: [
|
|
34558
35407
|
/*#__PURE__*/ (0,jsx_runtime.jsxs)("div", {
|
|
34559
|
-
className: "flex items-center justify-between gap-2",
|
|
35408
|
+
className: "flex flex-wrap items-center justify-between gap-2",
|
|
34560
35409
|
children: [
|
|
34561
35410
|
/*#__PURE__*/ (0,jsx_runtime.jsx)("span", {
|
|
34562
|
-
className: "text-sm text-[var(--text-primary)]
|
|
35411
|
+
className: "min-w-0 break-all text-sm text-[var(--text-primary)]",
|
|
34563
35412
|
children: row.model_id
|
|
34564
35413
|
}),
|
|
34565
|
-
/*#__PURE__*/ (0,jsx_runtime.jsxs)("
|
|
34566
|
-
className: "text-
|
|
34567
|
-
title: "Per 1M tokens",
|
|
35414
|
+
/*#__PURE__*/ (0,jsx_runtime.jsxs)("div", {
|
|
35415
|
+
className: "flex flex-wrap gap-x-3 gap-y-1 text-xs tabular-nums text-[var(--text-secondary)]",
|
|
34568
35416
|
children: [
|
|
34569
|
-
|
|
34570
|
-
|
|
34571
|
-
|
|
34572
|
-
|
|
34573
|
-
|
|
34574
|
-
|
|
34575
|
-
|
|
34576
|
-
|
|
34577
|
-
|
|
34578
|
-
children: outputLabel
|
|
35417
|
+
/*#__PURE__*/ (0,jsx_runtime.jsxs)("span", {
|
|
35418
|
+
children: [
|
|
35419
|
+
"Input: ",
|
|
35420
|
+
/*#__PURE__*/ (0,jsx_runtime.jsx)("span", {
|
|
35421
|
+
className: "text-[var(--text-primary)]",
|
|
35422
|
+
children: inputLabel
|
|
35423
|
+
}),
|
|
35424
|
+
" / 1M tokens"
|
|
35425
|
+
]
|
|
34579
35426
|
}),
|
|
34580
|
-
/*#__PURE__*/ (0,jsx_runtime.
|
|
34581
|
-
|
|
34582
|
-
|
|
35427
|
+
/*#__PURE__*/ (0,jsx_runtime.jsxs)("span", {
|
|
35428
|
+
children: [
|
|
35429
|
+
"Output: ",
|
|
35430
|
+
/*#__PURE__*/ (0,jsx_runtime.jsx)("span", {
|
|
35431
|
+
className: "text-[var(--text-primary)]",
|
|
35432
|
+
children: outputLabel
|
|
35433
|
+
}),
|
|
35434
|
+
" / 1M tokens"
|
|
35435
|
+
]
|
|
34583
35436
|
})
|
|
34584
35437
|
]
|
|
34585
35438
|
})
|
|
@@ -34874,9 +35727,9 @@ function DashboardPanel() {
|
|
|
34874
35727
|
const avgDailyCostUsd = data ? data.summary.estimated_cost_usd / Math.max(data.days, 1) : 0;
|
|
34875
35728
|
const toggleDay = (day)=>setSelectedDay((prev)=>prev === day ? null : day);
|
|
34876
35729
|
return /*#__PURE__*/ (0,jsx_runtime.jsx)("div", {
|
|
34877
|
-
className: "relative h-full overflow-y-auto
|
|
35730
|
+
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)]",
|
|
34878
35731
|
children: /*#__PURE__*/ (0,jsx_runtime.jsxs)("div", {
|
|
34879
|
-
className: "
|
|
35732
|
+
className: "workspace-panel space-y-4",
|
|
34880
35733
|
children: [
|
|
34881
35734
|
/*#__PURE__*/ (0,jsx_runtime.jsxs)("div", {
|
|
34882
35735
|
className: "dashboard-atmosphere pointer-events-none absolute inset-0 overflow-hidden",
|
|
@@ -34959,7 +35812,7 @@ function DashboardPanel() {
|
|
|
34959
35812
|
currencyInfo: currencyInfo
|
|
34960
35813
|
}),
|
|
34961
35814
|
/*#__PURE__*/ (0,jsx_runtime.jsx)(ModelPricingSection, {
|
|
34962
|
-
|
|
35815
|
+
pricing: data.pricing,
|
|
34963
35816
|
modelVendorFilter: modelVendorFilter,
|
|
34964
35817
|
onVendorFilterChange: setModelVendorFilter,
|
|
34965
35818
|
modelFunctionFilter: modelFunctionFilter,
|
|
@@ -34983,6 +35836,7 @@ function DashboardPanel() {
|
|
|
34983
35836
|
|
|
34984
35837
|
|
|
34985
35838
|
|
|
35839
|
+
|
|
34986
35840
|
const FADE_CLASSES = [
|
|
34987
35841
|
"opacity-65",
|
|
34988
35842
|
"opacity-50",
|
|
@@ -35119,9 +35973,40 @@ function AgentSwitcher({ agents, activeAgentId, loading = false, layout = "heade
|
|
|
35119
35973
|
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"}`,
|
|
35120
35974
|
children: agent.name.charAt(0).toUpperCase()
|
|
35121
35975
|
}),
|
|
35122
|
-
(selected || sidebar) && /*#__PURE__*/ (0,jsx_runtime.
|
|
35123
|
-
className: sidebar ? "
|
|
35124
|
-
children:
|
|
35976
|
+
(selected || sidebar) && /*#__PURE__*/ (0,jsx_runtime.jsxs)("span", {
|
|
35977
|
+
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]",
|
|
35978
|
+
children: [
|
|
35979
|
+
/*#__PURE__*/ (0,jsx_runtime.jsx)("span", {
|
|
35980
|
+
className: sidebar ? "block truncate text-sm font-semibold tracking-tight" : undefined,
|
|
35981
|
+
children: agent.name
|
|
35982
|
+
}),
|
|
35983
|
+
sidebar && /*#__PURE__*/ (0,jsx_runtime.jsxs)("span", {
|
|
35984
|
+
className: "mt-1 block space-y-1 text-[11px] leading-snug text-fg-faint",
|
|
35985
|
+
children: [
|
|
35986
|
+
(agent.usage_profile || agent.tools || agent.is_default) && /*#__PURE__*/ (0,jsx_runtime.jsx)("span", {
|
|
35987
|
+
className: "block break-words",
|
|
35988
|
+
children: [
|
|
35989
|
+
agent.usage_profile ? usage_profile/* USAGE_PROFILES */.R3[agent.usage_profile].label : null,
|
|
35990
|
+
agent.tools ? `${agent.tools.length} selected tool${agent.tools.length === 1 ? "" : "s"}` : null,
|
|
35991
|
+
agent.is_default ? "Default agent" : null
|
|
35992
|
+
].filter(Boolean).join(" / ")
|
|
35993
|
+
}),
|
|
35994
|
+
agent.model_config_name !== undefined && /*#__PURE__*/ (0,jsx_runtime.jsx)("span", {
|
|
35995
|
+
className: "block truncate",
|
|
35996
|
+
title: agent.model_config_name ? `Model override: ${agent.model_config_name}` : "Automatic routing",
|
|
35997
|
+
children: agent.model_config_name ? `Model: ${agent.model_config_name}` : "Automatic routing"
|
|
35998
|
+
}),
|
|
35999
|
+
unreadCount > 0 && /*#__PURE__*/ (0,jsx_runtime.jsxs)("span", {
|
|
36000
|
+
className: "block text-fg-muted",
|
|
36001
|
+
children: [
|
|
36002
|
+
unreadCount,
|
|
36003
|
+
" unread ",
|
|
36004
|
+
unreadCount === 1 ? "notification" : "notifications"
|
|
36005
|
+
]
|
|
36006
|
+
})
|
|
36007
|
+
]
|
|
36008
|
+
})
|
|
36009
|
+
]
|
|
35125
36010
|
})
|
|
35126
36011
|
]
|
|
35127
36012
|
}),
|
|
@@ -35241,7 +36126,7 @@ function AppShell() {
|
|
|
35241
36126
|
]);
|
|
35242
36127
|
const unreadCount = (0,ui_toasts/* useUnreadCount */.U4)();
|
|
35243
36128
|
// Shared agent list for boot picker, menu, and notification titles.
|
|
35244
|
-
const { agents, loading: agentsLoading, refresh: refreshAgents } = useAgents();
|
|
36129
|
+
const { agents, loading: agentsLoading, error: agentsError, refresh: refreshAgents, update: updateAgent } = useAgents();
|
|
35245
36130
|
const agentsLoaded = !agentsLoading;
|
|
35246
36131
|
const agentsRef = (0,react.useRef)([]);
|
|
35247
36132
|
agentsRef.current = agents;
|
|
@@ -35516,8 +36401,8 @@ function AppShell() {
|
|
|
35516
36401
|
// Top safe-area is mobile-scoped via --app-safe-top so desktop
|
|
35517
36402
|
// windows stay flush to the edge.
|
|
35518
36403
|
paddingTop: "var(--app-safe-top)",
|
|
35519
|
-
paddingLeft: "calc(env(safe-area-inset-left) +
|
|
35520
|
-
paddingRight: "calc(env(safe-area-inset-right) +
|
|
36404
|
+
paddingLeft: "calc(env(safe-area-inset-left) + var(--workspace-gutter))",
|
|
36405
|
+
paddingRight: "calc(env(safe-area-inset-right) + var(--workspace-gutter))",
|
|
35521
36406
|
height: "calc(3rem + var(--app-safe-top))"
|
|
35522
36407
|
},
|
|
35523
36408
|
children: [
|
|
@@ -35551,7 +36436,7 @@ function AppShell() {
|
|
|
35551
36436
|
}),
|
|
35552
36437
|
/*#__PURE__*/ (0,jsx_runtime.jsx)("aside", {
|
|
35553
36438
|
"aria-label": "Agents",
|
|
35554
|
-
className: "glass fixed bottom-0 left-0 z-40 hidden w-
|
|
36439
|
+
className: "glass fixed bottom-0 left-0 z-40 hidden w-[var(--workspace-agents-width)] border-r border-border/60 pb-safe 2xl:block",
|
|
35555
36440
|
style: {
|
|
35556
36441
|
top: "calc(3rem + var(--app-safe-top))"
|
|
35557
36442
|
},
|
|
@@ -35565,7 +36450,7 @@ function AppShell() {
|
|
|
35565
36450
|
}),
|
|
35566
36451
|
/*#__PURE__*/ (0,jsx_runtime.jsxs)("div", {
|
|
35567
36452
|
"data-testid": "workspace-content",
|
|
35568
|
-
className:
|
|
36453
|
+
className: "workspace-content mx-auto min-h-0 flex-1 relative w-full overflow-hidden",
|
|
35569
36454
|
children: [
|
|
35570
36455
|
mountedTabs.has("chat") && /*#__PURE__*/ (0,jsx_runtime.jsx)(react.Activity, {
|
|
35571
36456
|
mode: state.activeTab === "chat" ? "visible" : "hidden",
|
|
@@ -35592,14 +36477,14 @@ function AppShell() {
|
|
|
35592
36477
|
mountedTabs.has("models") && /*#__PURE__*/ (0,jsx_runtime.jsx)(react.Activity, {
|
|
35593
36478
|
mode: state.activeTab === "models" ? "visible" : "hidden",
|
|
35594
36479
|
children: /*#__PURE__*/ (0,jsx_runtime.jsx)("div", {
|
|
35595
|
-
className: "
|
|
36480
|
+
className: "workspace-panel h-full",
|
|
35596
36481
|
children: /*#__PURE__*/ (0,jsx_runtime.jsx)(ModelsPanel, {})
|
|
35597
36482
|
})
|
|
35598
36483
|
}),
|
|
35599
36484
|
mountedTabs.has("credentials") && /*#__PURE__*/ (0,jsx_runtime.jsx)(react.Activity, {
|
|
35600
36485
|
mode: state.activeTab === "credentials" ? "visible" : "hidden",
|
|
35601
36486
|
children: /*#__PURE__*/ (0,jsx_runtime.jsx)("div", {
|
|
35602
|
-
className: "
|
|
36487
|
+
className: "workspace-panel h-full",
|
|
35603
36488
|
children: /*#__PURE__*/ (0,jsx_runtime.jsx)(CredentialsPanel, {})
|
|
35604
36489
|
})
|
|
35605
36490
|
}),
|
|
@@ -35626,14 +36511,14 @@ function AppShell() {
|
|
|
35626
36511
|
isFullMode && mountedTabs.has("logs") && /*#__PURE__*/ (0,jsx_runtime.jsx)(react.Activity, {
|
|
35627
36512
|
mode: state.activeTab === "logs" ? "visible" : "hidden",
|
|
35628
36513
|
children: /*#__PURE__*/ (0,jsx_runtime.jsx)("div", {
|
|
35629
|
-
className: "
|
|
36514
|
+
className: "workspace-panel h-full",
|
|
35630
36515
|
children: /*#__PURE__*/ (0,jsx_runtime.jsx)(LogsPanel, {})
|
|
35631
36516
|
})
|
|
35632
36517
|
}),
|
|
35633
36518
|
isFullMode && mountedTabs.has("env") && /*#__PURE__*/ (0,jsx_runtime.jsx)(react.Activity, {
|
|
35634
36519
|
mode: state.activeTab === "env" ? "visible" : "hidden",
|
|
35635
36520
|
children: /*#__PURE__*/ (0,jsx_runtime.jsx)("div", {
|
|
35636
|
-
className: "
|
|
36521
|
+
className: "workspace-panel h-full",
|
|
35637
36522
|
children: /*#__PURE__*/ (0,jsx_runtime.jsx)(EnvVarsPanel, {})
|
|
35638
36523
|
})
|
|
35639
36524
|
}),
|
|
@@ -35653,6 +36538,10 @@ function AppShell() {
|
|
|
35653
36538
|
/*#__PURE__*/ (0,jsx_runtime.jsx)(MenuPanel, {
|
|
35654
36539
|
open: showMenu,
|
|
35655
36540
|
activeTab: state.activeTab,
|
|
36541
|
+
activeAgent: agents.find((agent)=>agent.id === state.activeAgentId),
|
|
36542
|
+
agentsLoading: agentsLoading,
|
|
36543
|
+
agentsError: agentsError,
|
|
36544
|
+
onUpdateAgent: updateAgent,
|
|
35656
36545
|
onClose: ()=>setShowMenu(false),
|
|
35657
36546
|
onSetTab: (tab)=>dispatch({
|
|
35658
36547
|
type: "SET_TAB",
|
|
@@ -35664,18 +36553,6 @@ function AppShell() {
|
|
|
35664
36553
|
}
|
|
35665
36554
|
|
|
35666
36555
|
|
|
35667
|
-
/***/ }),
|
|
35668
|
-
|
|
35669
|
-
/***/ 49319:
|
|
35670
|
-
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
|
|
35671
|
-
|
|
35672
|
-
Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 33360));
|
|
35673
|
-
;
|
|
35674
|
-
Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 85047));
|
|
35675
|
-
;
|
|
35676
|
-
Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 12283));
|
|
35677
|
-
|
|
35678
|
-
|
|
35679
36556
|
/***/ })
|
|
35680
36557
|
|
|
35681
36558
|
},
|
|
@@ -35686,4 +36563,4 @@ Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_re
|
|
|
35686
36563
|
/******/ _N_E = __webpack_exports__;
|
|
35687
36564
|
/******/ }
|
|
35688
36565
|
]);
|
|
35689
|
-
//# sourceMappingURL=page-
|
|
36566
|
+
//# sourceMappingURL=page-a584dfa806a1afdb.js.map
|