@pheem49/mint 1.17.0 → 1.18.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/Cargo.lock +6 -6
- package/Cargo.toml +2 -2
- package/README.md +8 -2
- package/Release_Note.md +222 -71
- package/crates/mint-cli/src/agent/diff_render.rs +66 -44
- package/crates/mint-cli/src/agent/live_status.rs +21 -4
- package/crates/mint-cli/src/agent/markdown_render.rs +342 -5
- package/crates/mint-cli/src/agent.rs +25 -10
- package/crates/mint-cli/src/commands/agent.rs +4 -92
- package/crates/mint-cli/src/commands/browser.rs +2 -15
- package/crates/mint-cli/src/commands/integrations.rs +3 -3
- package/crates/mint-cli/src/commands/mod.rs +0 -3
- package/crates/mint-cli/src/commands/tailnet_web.rs +1 -0
- package/crates/mint-cli/src/interactive/chat_tui/dialog.rs +572 -0
- package/crates/mint-cli/src/interactive/chat_tui/mod.rs +1427 -0
- package/crates/mint-cli/src/interactive/chat_tui/render.rs +1524 -0
- package/crates/mint-cli/src/interactive/chat_tui/selection.rs +401 -0
- package/crates/mint-cli/src/interactive/chat_tui/state.rs +1833 -0
- package/crates/mint-cli/src/interactive/chat_tui/tests.rs +3414 -0
- package/crates/mint-cli/src/interactive/chat_tui/thought.rs +202 -0
- package/crates/mint-cli/src/interactive/chat_tui/transcript.rs +728 -0
- package/crates/mint-cli/src/interactive/chat_tui/watermark.rs +148 -0
- package/crates/mint-cli/src/interactive/command_ui.rs +53 -5
- package/crates/mint-cli/src/interactive/composer.rs +186 -0
- package/crates/mint-cli/src/interactive/format.rs +78 -3
- package/crates/mint-cli/src/interactive/input_box.rs +61 -1
- package/crates/mint-cli/src/interactive/resume_picker.rs +367 -25
- package/crates/mint-cli/src/interactive/slash_commands.rs +648 -371
- package/crates/mint-cli/src/interactive/tool_activity.rs +93 -20
- package/crates/mint-cli/src/interactive.rs +37 -0
- package/crates/mint-cli/src/main.rs +6 -3
- package/crates/mint-cli/src/markdown.rs +2 -37
- package/crates/mint-cli/src/onboard.rs +700 -282
- package/crates/mint-cli/src/setup.rs +1342 -624
- package/crates/mint-cli/src/terminal_theme.rs +159 -35
- package/crates/mint-cli/tests/library_intake.rs +1 -0
- package/crates/mint-core/src/agent/chat/anthropic.rs +318 -0
- package/crates/mint-core/src/agent/chat/custom.rs +149 -0
- package/crates/mint-core/src/agent/chat/gemini.rs +518 -0
- package/crates/mint-core/src/agent/chat/mod.rs +857 -0
- package/crates/mint-core/src/agent/chat/ollama.rs +321 -0
- package/crates/mint-core/src/agent/chat/openai.rs +582 -0
- package/crates/mint-core/src/agent/chat/streaming.rs +469 -0
- package/crates/mint-core/src/agent/chat/tests.rs +1479 -0
- package/crates/mint-core/src/agent/memory.rs +56 -2
- package/crates/mint-core/src/agent/tasks.rs +2 -2
- package/crates/mint-core/src/api_server/routes/chat.rs +24 -2
- package/crates/mint-core/src/api_server/routes/gemini_live.rs +14 -1
- package/crates/mint-core/src/api_server/routes/html_preview.rs +1 -8
- package/crates/mint-core/src/api_server/routes/sessions.rs +21 -0
- package/crates/mint-core/src/avatar_bridge.rs +0 -22
- package/crates/mint-core/src/browser/cdp.rs +10 -4
- package/crates/mint-core/src/browser/headless.rs +582 -0
- package/crates/mint-core/src/browser/input.rs +7 -62
- package/crates/mint-core/src/browser/interact.rs +0 -14
- package/crates/mint-core/src/browser/mod.rs +8 -29
- package/crates/mint-core/src/browser/navigate.rs +2 -36
- package/crates/mint-core/src/browser/runtime.rs +2 -4
- package/crates/mint-core/src/browser/session.rs +50 -466
- package/crates/mint-core/src/browser/workflow.rs +142 -32
- package/crates/mint-core/src/cron/store.rs +2 -2
- package/crates/mint-core/src/integrations/mcp.rs +6 -8
- package/crates/mint-core/src/lib.rs +0 -5
- package/crates/mint-core/src/media/gemini_live.rs +636 -86
- package/crates/mint-core/src/media/library/migration.rs +26 -0
- package/crates/mint-core/src/media/library/tests.rs +1 -1
- package/crates/mint-core/src/media/library/thumbnails.rs +8 -2
- package/crates/mint-core/src/media/pictures.rs +1 -1
- package/crates/mint-core/src/media/tool_images.rs +92 -1
- package/crates/mint-core/src/mods/manager.rs +101 -35
- package/crates/mint-core/src/orchestration/context_render.rs +441 -24
- package/crates/mint-core/src/orchestration/decision_parsing.rs +531 -16
- package/crates/mint-core/src/orchestration/full_skill_result_tests.rs +12 -0
- package/crates/mint-core/src/orchestration/loop_guard.rs +145 -0
- package/crates/mint-core/src/orchestration/mcp_outcome_tests.rs +864 -0
- package/crates/mint-core/src/orchestration/memory_skill.rs +88 -28
- package/crates/mint-core/src/orchestration/mod.rs +320 -4249
- package/crates/mint-core/src/orchestration/reliability.rs +67 -27
- package/crates/mint-core/src/orchestration/review_regressions.rs +5 -0
- package/crates/mint-core/src/orchestration/tests.rs +1665 -0
- package/crates/mint-core/src/orchestration/tools/dispatch.rs +967 -0
- package/crates/mint-core/src/orchestration/tools/files.rs +1 -0
- package/crates/mint-core/src/orchestration/tools/mod.rs +5 -1
- package/crates/mint-core/src/orchestration/tools/planning.rs +102 -42
- package/crates/mint-core/src/orchestration/tools/shell.rs +129 -58
- package/crates/mint-core/src/orchestration/truncation.rs +170 -13
- package/crates/mint-core/src/orchestration/types.rs +648 -0
- package/crates/mint-core/src/orchestration/verification.rs +0 -3
- package/crates/mint-core/src/orchestration/workspace_helpers.rs +24 -6
- package/crates/mint-core/src/prompts/agent.rs +52 -76
- package/crates/mint-core/src/prompts/tool_catalog.rs +8 -151
- package/crates/mint-core/src/search/files.rs +20 -0
- package/crates/mint-core/src/slash/mod.rs +228 -265
- package/crates/mint-core/src/slash/models.rs +6 -1
- package/crates/mint-core/src/system/bg_shell.rs +1 -0
- package/crates/mint-core/src/system/config.rs +176 -34
- package/crates/mint-mod-runtime/src/lib.rs +37 -23
- package/out/web/assets/ArtifactPreviewPanel-Cx6BVOOF.js +2 -0
- package/out/web/assets/CalculationCard-D2E74u5q.js +1 -0
- package/out/web/assets/CliSessionsView-ZbdtSjvK.css +1 -0
- package/out/web/assets/{CliSessionsView-MI8kXMAb.js → CliSessionsView-z5i6qGyb.js} +1 -1
- package/out/web/assets/CodeReviewPage-BK2bOScd.css +1 -0
- package/out/web/assets/CodeReviewPage-Dp6zHuHu.js +2 -0
- package/out/web/assets/{CommandPalette-BD8SlTE5.js → CommandPalette-DaKlzbKs.js} +1 -1
- package/out/web/assets/ImageGenCard-BMCJHP9O.js +1 -0
- package/out/web/assets/ImageSearchCard-Cld_SOUg.js +1 -0
- package/out/web/assets/{ImageStudioPanel-BP7N4rLr.js → ImageStudioPanel-B5N7TjeB.js} +1 -1
- package/out/web/assets/LibraryPage-CMB89rJ0.css +1 -0
- package/out/web/assets/LibraryPage-DbZEi4W_.js +2 -0
- package/out/web/assets/LinkedFoldersView-9B9DIPoZ.js +1 -0
- package/out/web/assets/{McpRegistryPicker-CoS83vtc.js → McpRegistryPicker-DnXPlzI7.js} +1 -1
- package/out/web/assets/McpServersView-CiNBNUl4.js +1 -0
- package/out/web/assets/MermaidCard-BBDNEXbY.js +2 -0
- package/out/web/assets/MintDashboard-C_UYPoNV.js +119 -0
- package/out/web/assets/MintDashboard-DTd8C_c8.css +1 -0
- package/out/web/assets/PlanCard-C2x5pajq.js +1 -0
- package/out/web/assets/{PluginsView-jBYmcKh4.js → PluginsView-DoTg9MVa.js} +1 -1
- package/out/web/assets/RewindModal-B5oowrR0.js +1 -0
- package/out/web/assets/{ScheduledTasksView-5uw9-V9H.js → ScheduledTasksView-BD5DVPkZ.js} +1 -1
- package/out/web/assets/{SelectField-DXBQtrUK.js → SelectField-Cy6CghrU.js} +1 -1
- package/out/web/assets/SettingsWindow-BYl_oCFh.js +4 -0
- package/out/web/assets/SettingsWindow-Ckcgnjt8.css +1 -0
- package/out/web/assets/{SkillsView-C-gp9J7m.js → SkillsView-CIeWwq5z.js} +1 -1
- package/out/web/assets/StockCard-DxUciKyp.js +1 -0
- package/out/web/assets/ToolSurfacePage-qBgs_VHq.css +1 -0
- package/out/web/assets/ToolSurfacePage-saVbVrkE.js +38 -0
- package/out/web/assets/{UiFeatureCard-6BwxTOCe.js → UiFeatureCard-CdY0hGWy.js} +1 -1
- package/out/web/assets/{UiGridCard-DvZcLNxb.js → UiGridCard-BBK3I5hC.js} +1 -1
- package/out/web/assets/UiMockupWidget-CpR9EDuc.js +1 -0
- package/out/web/assets/{VeoStudioPanel-DOj7_WR3.css → VeoStudioPanel-9kU9YLEN.css} +1 -1
- package/out/web/assets/{VeoStudioPanel-DfsOJKv0.js → VeoStudioPanel-Co6-wEWM.js} +2 -2
- package/out/web/assets/WeatherCard-Buzi7Vfu.js +1 -0
- package/out/web/assets/WorkspacePdfPreview-Bi8Zzyir.js +2 -0
- package/out/web/assets/{abnfDiagram-VCTEODGH-BOo3Ckng.js → abnfDiagram-VCTEODGH-CMfR95N2.js} +1 -1
- package/out/web/assets/{architecture-7GRP2DOG-ZOwheW3n.js → architecture-7GRP2DOG-DhAM4HyO.js} +1 -1
- package/out/web/assets/{architectureDiagram-5GKGNRK7-DC2FDzVd.js → architectureDiagram-5GKGNRK7-Yk3TUJ_F.js} +1 -1
- package/out/web/assets/{blockDiagram-I7D4REHJ-BrKFWdAH.js → blockDiagram-I7D4REHJ-X9fBgJik.js} +1 -1
- package/out/web/assets/{c4Diagram-7LVT6UL2-BHTHK1Yd.js → c4Diagram-7LVT6UL2-Bk9x7N-8.js} +1 -1
- package/out/web/assets/{chunk-4HAMMTFA-BYFkZwNj.js → chunk-4HAMMTFA-Dx5fk1_0.js} +1 -1
- package/out/web/assets/{chunk-75Z2AOVW-BSKfSKSA.js → chunk-75Z2AOVW-BszTQoM4.js} +1 -1
- package/out/web/assets/{chunk-DU6HZSFF-vIhsiW6n.js → chunk-DU6HZSFF-DK-As3rk.js} +1 -1
- package/out/web/assets/{chunk-F27PBJKO-BlYpW9xq.js → chunk-F27PBJKO-LmncZZIS.js} +1 -1
- package/out/web/assets/{chunk-GMAD6QVW-BIBz_Ug5.js → chunk-GMAD6QVW-DSQ_sDRJ.js} +1 -1
- package/out/web/assets/{chunk-GVQU2GXP-NPSHxeqC.js → chunk-GVQU2GXP-Cno3ulje.js} +1 -1
- package/out/web/assets/{chunk-IMKFNOWR-YlJK8_Fp.js → chunk-IMKFNOWR-bIzfY9Jc.js} +1 -1
- package/out/web/assets/{chunk-L3NEJ4N5-DMYi4-af.js → chunk-L3NEJ4N5-Dl6eOa0D.js} +1 -1
- package/out/web/assets/{chunk-OSK3NFVY-Begd3-jA.js → chunk-OSK3NFVY-BaUGJ-cM.js} +1 -1
- package/out/web/assets/{chunk-P2QGCYS3-D1I4xFHN.js → chunk-P2QGCYS3-_066ndhH.js} +1 -1
- package/out/web/assets/{chunk-POPQ4Y6H-CafZZzNE.js → chunk-POPQ4Y6H-YT1AKhTv.js} +1 -1
- package/out/web/assets/{chunk-PWAF6VOD-Dwh6_Lnt.js → chunk-PWAF6VOD-CrEgDsxh.js} +1 -1
- package/out/web/assets/{chunk-SHT3W25Y-B0XrCSEb.js → chunk-SHT3W25Y-_KwaRLOl.js} +1 -1
- package/out/web/assets/{chunk-SVP7TREG-CxLsddxC.js → chunk-SVP7TREG-BQ1qb32L.js} +1 -1
- package/out/web/assets/{chunk-TICWLB2K-y156QInb.js → chunk-TICWLB2K-BDyehCtg.js} +1 -1
- package/out/web/assets/classDiagram-ZZMXUADV-BoSpzRCJ.js +1 -0
- package/out/web/assets/classDiagram-v2-VYDZK3BY-BoSpzRCJ.js +1 -0
- package/out/web/assets/{config-DqXJXeZM.css → config-2suVFPZg.css} +1 -1
- package/out/web/assets/config-CkRCdkxn.js +2 -0
- package/out/web/assets/{cynefin-OW5HDTMX-SMVvrLf-.js → cynefin-OW5HDTMX-Dl_31aaN.js} +1 -1
- package/out/web/assets/{cynefinDiagram-5FMLGOSQ-rZznN24T.js → cynefinDiagram-5FMLGOSQ-Bpir8jha.js} +1 -1
- package/out/web/assets/{dagre-GXQ25YYZ-BOToydFu.js → dagre-GXQ25YYZ-D9xu3nsq.js} +1 -1
- package/out/web/assets/{diagram-S7CK7UJ4-TMVaGQEJ.js → diagram-S7CK7UJ4-DeveoEeB.js} +1 -1
- package/out/web/assets/{diagram-UQ7AKVKN-C2JK-GP2.js → diagram-UQ7AKVKN-p4xWRESV.js} +1 -1
- package/out/web/assets/{diagram-VSXAHHWV-Cw8VSi2K.js → diagram-VSXAHHWV-C7qz9NDF.js} +1 -1
- package/out/web/assets/{diagram-VX7I27RA-DXp4fKk9.js → diagram-VX7I27RA-DRiCa3Vd.js} +1 -1
- package/out/web/assets/{diagram-Z3DM3KII-CzSicYiW.js → diagram-Z3DM3KII-Bt7zduQX.js} +1 -1
- package/out/web/assets/{ebnfDiagram-PWID7BFC-Dqj-zqPu.js → ebnfDiagram-PWID7BFC-DV9WpwdR.js} +1 -1
- package/out/web/assets/{erDiagram-RLTQ6QDP-DZwFZAuD.js → erDiagram-RLTQ6QDP-BJ_nwG2m.js} +1 -1
- package/out/web/assets/{eventmodeling-NTZA5JFV-C0O-Lvgp.js → eventmodeling-NTZA5JFV-BTBMrfVa.js} +1 -1
- package/out/web/assets/flowDiagram-HODETNUW-Cdlq3cJL.js +1 -0
- package/out/web/assets/{ganttDiagram-EL5Y4UJY-Da4ULXTl.js → ganttDiagram-EL5Y4UJY-DQLdsXrC.js} +1 -1
- package/out/web/assets/{gitGraph-4MIJSDKK-B9wNFZIP.js → gitGraph-4MIJSDKK-CL1OEOQ_.js} +1 -1
- package/out/web/assets/{gitGraphDiagram-WWUBYQGX-RjrhB0MP.js → gitGraphDiagram-WWUBYQGX-8cSi42H7.js} +1 -1
- package/out/web/assets/index-BocxnrDG.js +168 -0
- package/out/web/assets/index-yeh_r55a.css +1 -0
- package/out/web/assets/{info-A6RAGUB7-B3dfCpeY.js → info-A6RAGUB7-C1zsX5sc.js} +1 -1
- package/out/web/assets/{infoDiagram-27XIBGKW-QVWkLVx7.js → infoDiagram-27XIBGKW-DsRYtIyI.js} +1 -1
- package/out/web/assets/{ishikawaDiagram-5VMMS53U-CLFNIRI9.js → ishikawaDiagram-5VMMS53U-B2crwIXj.js} +1 -1
- package/out/web/assets/{journeyDiagram-3NMN7TZE-fgOQadYF.js → journeyDiagram-3NMN7TZE-BTH-GyVR.js} +1 -1
- package/out/web/assets/{kanban-definition-UXKFOSKX-G3Q_9g9O.js → kanban-definition-UXKFOSKX-BeRfCnuA.js} +1 -1
- package/out/web/assets/{mermaid-parser.core-v3Jm7nco.js → mermaid-parser.core-BJwgCBBc.js} +3 -3
- package/out/web/assets/{mermaid.core-DTEjLUA1.js → mermaid.core-CsDDodN8.js} +4 -4
- package/out/web/assets/{mindmap-definition-YA3MSWOX-C_D42_fF.js → mindmap-definition-YA3MSWOX-B42efOQ1.js} +1 -1
- package/out/web/assets/{modelManager-BPLycQrN.js → modelManager-B3ZFMh8v.js} +2 -2
- package/out/web/assets/{oauthManager-BUK7ic7q.js → oauthManager-Ch5Du2fF.js} +1 -1
- package/out/web/assets/{packet-AYTQ26CC-B-R-SHlF.js → packet-AYTQ26CC-B6xUyE6r.js} +1 -1
- package/out/web/assets/{pegDiagram-XKGWAZYB-Da2q_giz.js → pegDiagram-XKGWAZYB-1LabVycL.js} +1 -1
- package/out/web/assets/{pie-WAS4IAKB-BC8F0N7-.js → pie-WAS4IAKB-DJwo-nf_.js} +1 -1
- package/out/web/assets/{pieDiagram-E7YTZNPT-Iy9REJNC.js → pieDiagram-E7YTZNPT-icmAqzy4.js} +1 -1
- package/out/web/assets/{quadrantDiagram-AXDQQJYC-ztsiYw7h.js → quadrantDiagram-AXDQQJYC-CZ-wEx41.js} +1 -1
- package/out/web/assets/{radar-RG4KPBEZ-B_1P8Z_z.js → radar-RG4KPBEZ-D7d-Xriw.js} +1 -1
- package/out/web/assets/{railroad-74A4TZTK-DuTqczSo.js → railroad-74A4TZTK-viuhdYbs.js} +1 -1
- package/out/web/assets/{railroad-abnf-HS5TGJTU-Df29WLmp.js → railroad-abnf-HS5TGJTU-DNXiCNea.js} +1 -1
- package/out/web/assets/{railroad-ebnf-LZEXJU2U-ePFMo-qp.js → railroad-ebnf-LZEXJU2U-nkSu1-0C.js} +1 -1
- package/out/web/assets/{railroad-peg-WCYAUIDC-DYXLW4_E.js → railroad-peg-WCYAUIDC-BhbMeQzz.js} +1 -1
- package/out/web/assets/{railroadDiagram-O6MQD6OU-LStnZf2S.js → railroadDiagram-O6MQD6OU-CLpG1jUX.js} +1 -1
- package/out/web/assets/{requirementDiagram-BXWQKSXE-DmzonMH-.js → requirementDiagram-BXWQKSXE-kRDrvWrc.js} +1 -1
- package/out/web/assets/{sankeyDiagram-P5KCCOFB-B8vjmUU1.js → sankeyDiagram-P5KCCOFB-DxAwmq4x.js} +1 -1
- package/out/web/assets/{sequenceDiagram-WJ2MYXX4-CTnplOAX.js → sequenceDiagram-WJ2MYXX4-aLgY-6Wz.js} +1 -1
- package/out/web/assets/{stateDiagram-D77RDMKH-BFrIaLdI.js → stateDiagram-D77RDMKH-D5QWfOhp.js} +1 -1
- package/out/web/assets/stateDiagram-v2-MP3YSRHH-D6OiZoAP.js +1 -0
- package/out/web/assets/{swimlanes-42K2YHIH-BXGngUNU.js → swimlanes-42K2YHIH-CRs5UyA-.js} +1 -1
- package/out/web/assets/swimlanesDiagram-VR7AAH4N-UgEXIsV0.js +8 -0
- package/out/web/assets/syntaxHighlight-C-wAGT84.js +3 -0
- package/out/web/assets/{timeline-definition-24CTP7MA-CegH7n43.js → timeline-definition-24CTP7MA-Denqd9qb.js} +1 -1
- package/out/web/assets/{treeView-Q6P3EWNA-DTpJv2Tw.js → treeView-Q6P3EWNA-0my3Z3s4.js} +1 -1
- package/out/web/assets/{treemap-WGGIJYW6-i8M9iJU6.js → treemap-WGGIJYW6-B_EjkLYq.js} +1 -1
- package/out/web/assets/{vennDiagram-4TSXK5OY-Dpzo1S8U.js → vennDiagram-4TSXK5OY-DxVg3Ewr.js} +1 -1
- package/out/web/assets/{wardley-WFR3VGLG-BrNsgtfw.js → wardley-WFR3VGLG-CGD-Tj4p.js} +1 -1
- package/out/web/assets/{wardleyDiagram-VM6X3IG4-lQ92LFE1.js → wardleyDiagram-VM6X3IG4-CmfS39Xm.js} +1 -1
- package/out/web/assets/{xychartDiagram-S5SC5T6Z-BaOaEoBd.js → xychartDiagram-S5SC5T6Z-BVM9bKis.js} +1 -1
- package/out/web/index-web.html +2 -2
- package/out/web/index.html +2 -2
- package/package.json +2 -2
- package/shared-modules/CODEOWNERS +3 -3
- package/shared-modules/SDL2/SDL2_mixer.json +27 -0
- package/shared-modules/appstream/README.md +13 -0
- package/shared-modules/appstream/appstream-compose.json +111 -0
- package/shared-modules/dbus-glib/dbus-glib.json +2 -2
- package/shared-modules/libportal/libportal.json +23 -0
- package/shared-modules/linux-audio/fluidsynth2-static.json +2 -2
- package/shared-modules/linux-audio/fluidsynth2.json +2 -2
- package/shared-modules/linux-audio/libinstpatch.json +2 -2
- package/shared-modules/linux-audio/liblo-static.json +3 -0
- package/shared-modules/luajit/luajit.json +2 -2
- package/shared-modules/squashfs-tools/squashfs-tools.json +0 -3
- package/slash-commands.json +7 -2
- package/src/renderer/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +1 -1
- package/src/renderer/shared/agentProgress.ts +51 -3
- package/src/renderer/shared/components/Settings/AutomationTab.tsx +2 -56
- package/src/renderer/shared/components/Settings/AvatarCropModal.tsx +15 -1
- package/src/renderer/shared/components/Settings/GeneralTab.tsx +25 -12
- package/src/renderer/shared/components/Settings/ThemeTab.test.tsx +45 -0
- package/src/renderer/shared/components/Settings/ThemeTab.tsx +106 -3
- package/src/renderer/shared/components/activity/AgentActivityDrawer.tsx +67 -17
- package/src/renderer/shared/components/activity/AgentActivityTable.tsx +376 -134
- package/src/renderer/shared/components/activity/AskUserActivityCard.test.tsx +122 -0
- package/src/renderer/shared/components/activity/AskUserActivityCard.tsx +70 -0
- package/src/renderer/shared/components/activity/McpToolResults.tsx +39 -2
- package/src/renderer/shared/components/activity/SubagentDagView.tsx +7 -7
- package/src/renderer/shared/components/activity/ViewedImages.tsx +41 -2
- package/src/renderer/shared/components/app/ChunkErrorBoundary.tsx +3 -3
- package/src/renderer/shared/components/app/CommandPalette.tsx +7 -7
- package/src/renderer/shared/components/app/DesktopTitlebar.tsx +2 -2
- package/src/renderer/shared/components/app/MintDashboard.tsx +27 -17
- package/src/renderer/shared/components/app/ModalErrorBoundary.tsx +3 -3
- package/src/renderer/shared/components/cards/CalculationCard.tsx +3 -3
- package/src/renderer/shared/components/cards/ImageGenCard.tsx +2 -2
- package/src/renderer/shared/components/cards/ImageSearchCard.tsx +2 -2
- package/src/renderer/shared/components/cards/MermaidCard.tsx +1 -1
- package/src/renderer/shared/components/cards/PlanCard.test.tsx +41 -0
- package/src/renderer/shared/components/cards/PlanCard.tsx +32 -0
- package/src/renderer/shared/components/cards/ReleaseNotesCard.test.tsx +29 -0
- package/src/renderer/shared/components/cards/ReleaseNotesCard.tsx +137 -0
- package/src/renderer/shared/components/cards/StockCard.tsx +7 -7
- package/src/renderer/shared/components/cards/ToolResultCards.tsx +11 -3
- package/src/renderer/shared/components/cards/UiMockupWidget.tsx +4 -4
- package/src/renderer/shared/components/cards/WeatherCard.tsx +5 -5
- package/src/renderer/shared/components/chat/ApprovalCard.test.tsx +11 -0
- package/src/renderer/shared/components/chat/ApprovalCard.tsx +21 -2
- package/src/renderer/shared/components/chat/ArtifactCards.test.tsx +69 -0
- package/src/renderer/shared/components/chat/ArtifactCards.tsx +238 -0
- package/src/renderer/shared/components/chat/AttachedDocumentCard.test.tsx +39 -0
- package/src/renderer/shared/components/chat/AttachedDocumentCard.tsx +220 -0
- package/src/renderer/shared/components/chat/ChatCodeBlock.test.tsx +33 -0
- package/src/renderer/shared/components/chat/ChatCodeBlock.tsx +15 -1
- package/src/renderer/shared/components/chat/ChatMessageItem.test.tsx +40 -2
- package/src/renderer/shared/components/chat/ChatMessageItem.tsx +180 -34
- package/src/renderer/shared/components/chat/ChatModeSelector.css +227 -0
- package/src/renderer/shared/components/chat/ChatModeSelector.test.tsx +45 -0
- package/src/renderer/shared/components/chat/ChatModeSelector.tsx +198 -0
- package/src/renderer/shared/components/chat/ChatPanel.test.tsx +22 -0
- package/src/renderer/shared/components/chat/ChatPanel.tsx +227 -53
- package/src/renderer/shared/components/chat/DiffReviewModal.tsx +6 -6
- package/src/renderer/shared/components/chat/GeminiLiveOverlay.test.tsx +142 -1
- package/src/renderer/shared/components/chat/GeminiLiveOverlay.tsx +45 -3
- package/src/renderer/shared/components/chat/ModelSelectorPopover.tsx +42 -14
- package/src/renderer/shared/components/chat/RewindModal.tsx +10 -10
- package/src/renderer/shared/components/chat/SlashSuggestions.test.tsx +14 -0
- package/src/renderer/shared/components/chat/SourcesBlock.test.tsx +53 -0
- package/src/renderer/shared/components/chat/SourcesBlock.tsx +236 -90
- package/src/renderer/shared/components/chat/TurnFileChanges.test.tsx +45 -1
- package/src/renderer/shared/components/chat/TurnFileChanges.tsx +202 -169
- package/src/renderer/shared/components/extensions/CliSessionsView.tsx +5 -4
- package/src/renderer/shared/components/extensions/McpRegistryPicker.tsx +3 -3
- package/src/renderer/shared/components/studio/LibraryPage.tsx +48 -5
- package/src/renderer/shared/components/workspace/ArtifactPreviewPanel.tsx +125 -13
- package/src/renderer/shared/components/workspace/CodeReviewPage.test.tsx +50 -0
- package/src/renderer/shared/components/workspace/CodeReviewPage.tsx +77 -16
- package/src/renderer/shared/components/workspace/GitBranchSelector.tsx +78 -22
- package/src/renderer/shared/components/workspace/ToolSurfacePage.test.tsx +13 -0
- package/src/renderer/shared/components/workspace/ToolSurfacePage.tsx +48 -28
- package/src/renderer/shared/components/workspace/WorkspacePdfPreview.tsx +266 -47
- package/src/renderer/shared/components/workspace/WorkspacePreviewActions.test.tsx +18 -6
- package/src/renderer/shared/components/workspace/background-terminals.css +11 -11
- package/src/renderer/shared/constants/config.ts +1 -5
- package/src/renderer/shared/constants/models.test.ts +51 -0
- package/src/renderer/shared/constants/models.ts +139 -32
- package/src/renderer/shared/conversation/lifecycle.test.ts +91 -3
- package/src/renderer/shared/conversation/lifecycle.ts +104 -5
- package/src/renderer/shared/conversation/progressiveStream.test.ts +83 -0
- package/src/renderer/shared/conversation/progressiveStream.ts +219 -0
- package/src/renderer/shared/css/agent-observability.css +133 -0
- package/src/renderer/shared/css/chat-ui-cards.css +13 -13
- package/src/renderer/shared/css/code-review.css +63 -34
- package/src/renderer/shared/css/code-sessions.css +47 -18
- package/src/renderer/shared/css/collapsed-paste.css +1 -1
- package/src/renderer/shared/css/error-notice.css +1 -1
- package/src/renderer/shared/css/file-changes.css +165 -80
- package/src/renderer/shared/css/library.css +105 -10
- package/src/renderer/shared/css/management-views.css +1 -1
- package/src/renderer/shared/css/mcp-results.css +5 -5
- package/src/renderer/shared/css/model-selector.css +18 -18
- package/src/renderer/shared/css/mods.css +7 -7
- package/src/renderer/shared/css/notification-notice.css +2 -2
- package/src/renderer/shared/css/queued-messages.css +5 -5
- package/src/renderer/shared/css/settings/general.css +18 -13
- package/src/renderer/shared/css/settings/profile.css +5 -5
- package/src/renderer/shared/css/settings/theme.css +5 -5
- package/src/renderer/shared/css/slash-choice.css +2 -2
- package/src/renderer/shared/css/slash-suggestions.css +3 -3
- package/src/renderer/shared/css/sources-block.css +41 -2
- package/src/renderer/shared/css/tools-panel.css +2 -2
- package/src/renderer/shared/css/ui-tailwind.css +8 -0
- package/src/renderer/shared/css/veo-studio.css +2 -2
- package/src/renderer/shared/css/viewed-images.css +7 -7
- package/src/renderer/shared/platform.ts +2 -1
- package/src/renderer/shared/theme/themeManager.test.ts +17 -0
- package/src/renderer/shared/theme/themeManager.ts +21 -4
- package/src/renderer/shared/theme/themes.ts +54 -0
- package/src/renderer/shared/theme/tokens.css +6 -4
- package/src/renderer/shared/types.ts +1 -1
- package/src/renderer/shared/utils/agentActivity.test.ts +468 -2
- package/src/renderer/shared/utils/agentActivity.ts +602 -35
- package/src/renderer/shared/utils/artifactBrowser.test.ts +37 -32
- package/src/renderer/shared/utils/artifactBrowser.ts +17 -19
- package/src/renderer/shared/utils/attachedDocument.test.ts +73 -0
- package/src/renderer/shared/utils/attachedDocument.ts +49 -0
- package/src/renderer/shared/utils/fileIcons.test.ts +59 -0
- package/src/renderer/shared/utils/fileIcons.ts +149 -16
- package/src/renderer/shared/utils/markdown.tsx +72 -19
- package/src/renderer/shared/utils/markdown.webImages.test.tsx +16 -0
- package/src/renderer/shared/utils/mcpResults.test.tsx +29 -0
- package/src/renderer/shared/utils/slashCommandProcessor.ts +4 -1
- package/src/renderer/shared/utils/syntaxHighlight.test.tsx +11 -1
- package/src/renderer/shared/utils/syntaxHighlight.tsx +51 -3
- package/src/renderer/shared/utils/useGeminiLiveVoice.ts +324 -51
- package/src/renderer/shared/utils/workspaceDrag.test.ts +153 -0
- package/src/renderer/shared/utils/workspaceDrag.ts +142 -0
- package/src/renderer/shared/utils/workspaceMedia.ts +10 -2
- package/src/renderer/src/App.tsx +14 -8
- package/src/renderer/src/agentProgress.ts +1 -0
- package/src/renderer/src/components/ScreenPicker.css +1 -1
- package/src/renderer/src/components/WorkspacePanel.tsx +6 -5
- package/src/renderer/src/css/app-shell.css +4 -4
- package/src/renderer/src/css/chat.css +1261 -241
- package/src/renderer/src/css/desktop-tools.css +11 -11
- package/src/renderer/src/css/sidebar-workspace.css +2 -2
- package/src/renderer/src/css/tool-surfaces.css +12 -12
- package/src/renderer/src/index.css +38 -20
- package/src/renderer/src/tauri.ts +22 -2
- package/src/renderer/src-web/App.tsx +14 -0
- package/src/renderer/src-web/agentProgress.ts +1 -0
- package/src/renderer/src-web/css/app-shell.css +4 -4
- package/src/renderer/src-web/css/chat.css +1278 -190
- package/src/renderer/src-web/css/mobile.css +29 -13
- package/src/renderer/src-web/css/settings/mobile.css +2 -2
- package/src/renderer/src-web/css/sidebar-workspace.css +1 -1
- package/src/renderer/src-web/index.css +38 -20
- package/src/renderer/src-web/tauri.ts +22 -2
- package/src/renderer/tests/browserArtifacts.browser.tsx +1 -1
- package/src/renderer/tests/library.browser.tsx +3 -0
- package/src/renderer/tests/liveVoice.browser.html +1 -0
- package/src/renderer/tests/workspaceDrop.browser.tsx +1 -1
- package/src-tauri/src/app/lifecycle.rs +1 -14
- package/src-tauri/src/background/headless.rs +14 -8
- package/src-tauri/src/commands/conversation.rs +38 -0
- package/src-tauri/src/native/mod.rs +0 -1
- package/src-tauri/src/native/system.rs +4 -47
- package/crates/mint-cli/src/interactive/chat_tui.rs +0 -8855
- package/crates/mint-core/src/agent/chat.rs +0 -4394
- package/crates/mint-core/src/browser/lifecycle.rs +0 -291
- package/crates/mint-core/src/browser/logging.rs +0 -20
- package/crates/mint-core/src/orchestration/tools/browser.rs +0 -31
- package/out/web/assets/ArtifactPreviewPanel-S0dPfYFx.js +0 -2
- package/out/web/assets/CalculationCard-CRjP3E1j.js +0 -1
- package/out/web/assets/CliSessionsView-C3Br2v5Y.css +0 -1
- package/out/web/assets/CodeReviewPage-CUJceQme.css +0 -1
- package/out/web/assets/CodeReviewPage-VCUgPla_.js +0 -2
- package/out/web/assets/ImageGenCard-BCXxkVJX.js +0 -1
- package/out/web/assets/ImageSearchCard-N3yQOr8Z.js +0 -1
- package/out/web/assets/LibraryPage-DAxUTAg7.css +0 -1
- package/out/web/assets/LibraryPage-WlviRdR8.js +0 -2
- package/out/web/assets/LinkedFoldersView-CKRgroWK.js +0 -1
- package/out/web/assets/McpServersView-D3wHnuHg.js +0 -1
- package/out/web/assets/MermaidCard-NqrHdyJW.js +0 -2
- package/out/web/assets/MintDashboard-B2DJsDDO.css +0 -1
- package/out/web/assets/MintDashboard-COw_xol7.js +0 -63
- package/out/web/assets/RewindModal-DempuDod.js +0 -1
- package/out/web/assets/SettingsWindow-2YP3yj7s.js +0 -4
- package/out/web/assets/SettingsWindow-Dz8LQVgD.css +0 -1
- package/out/web/assets/StockCard-BDMCe7mx.js +0 -1
- package/out/web/assets/ToolSurfacePage-B0J_q0Jl.js +0 -38
- package/out/web/assets/ToolSurfacePage-CRIQ1owD.css +0 -1
- package/out/web/assets/UiMockupWidget-DD73QWg1.js +0 -1
- package/out/web/assets/WeatherCard-CPucIfq8.js +0 -1
- package/out/web/assets/WorkspacePdfPreview-Dx_lkjNu.js +0 -2
- package/out/web/assets/classDiagram-ZZMXUADV-BgJ5WtSp.js +0 -1
- package/out/web/assets/classDiagram-v2-VYDZK3BY-BgJ5WtSp.js +0 -1
- package/out/web/assets/config-CvIO5hkn.js +0 -2
- package/out/web/assets/flowDiagram-HODETNUW-uqCHJond.js +0 -1
- package/out/web/assets/index-BmpulIkg.js +0 -168
- package/out/web/assets/index-CkvBwhX_.css +0 -1
- package/out/web/assets/stateDiagram-v2-MP3YSRHH-uf3kdNW4.js +0 -1
- package/out/web/assets/swimlanesDiagram-VR7AAH4N-Y8q5bQce.js +0 -8
- package/shared-modules/libsecret/libsecret.json +0 -23
- package/shared-modules/libusb/libusb.json +0 -27
- package/shared-modules/lzo/lzo.json +0 -27
- package/src/renderer/src/components/BrowserShell.tsx +0 -108
- package/src/renderer/src/components/BrowserSuggestionsPopup.tsx +0 -91
- package/src/renderer/src/components/browser-shell.css +0 -185
- package/src-tauri/src/native/browser.rs +0 -252
|
@@ -3,26 +3,26 @@
|
|
|
3
3
|
.mods-panel button, .mod-band button { font: inherit; cursor: pointer; }
|
|
4
4
|
.mods-panel { display: flex; flex-direction: column; width: 100%; height: 100%; min-height: 0; overflow: hidden; background: var(--panel-bg, #171719); font-size: 12px; }
|
|
5
5
|
.mods-panel-header { display: flex; align-items: center; gap: 10px; padding: 14px 16px 13px; border-bottom: 1px solid var(--border); }
|
|
6
|
-
.mods-panel-icon { display: grid; flex: 0 0 36px; width: 36px; height: 36px; place-items: center; border: 1px solid var(--accent-border, var(--border)); border-radius:
|
|
6
|
+
.mods-panel-icon { display: grid; flex: 0 0 36px; width: 36px; height: 36px; place-items: center; border: 1px solid var(--accent-border, var(--border)); border-radius: var(--radius-lg, 14px); background: var(--accent-subtle, var(--surface-strong)); color: var(--accent); }
|
|
7
7
|
.mods-panel-title { flex: 1; min-width: 0; }
|
|
8
8
|
.mods-panel-title strong { font-size: 14px; font-weight: 650; }
|
|
9
9
|
.mods-panel-title p { margin: 3px 0 0; color: var(--text-muted); font-size: 11px; }
|
|
10
10
|
.mods-panel nav { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 16px; border-bottom: 1px solid var(--border); }
|
|
11
|
-
.mods-panel nav button { padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px; background: transparent; color: var(--text-muted); }
|
|
11
|
+
.mods-panel nav button { padding: 6px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm, 8px); background: transparent; color: var(--text-muted); }
|
|
12
12
|
.mods-panel nav button[aria-pressed=true] { border-color: var(--accent-border, var(--accent)); background: var(--accent-subtle, var(--surface-strong)); color: var(--text-main); font-weight: 600; }
|
|
13
13
|
.mod-content { flex: 1; min-height: 0; overflow: auto; padding: 14px 16px 16px; }
|
|
14
14
|
.mods-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 14px; }
|
|
15
15
|
.mods-toolbar label { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--text-muted); white-space: nowrap; }
|
|
16
|
-
.mods-panel select, .mod-input input { min-height: 34px; max-width: 100%; padding: 5px 9px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-strong); color: var(--text-main); font: inherit; }
|
|
16
|
+
.mods-panel select, .mod-input input { min-height: 34px; max-width: 100%; padding: 5px 9px; border: 1px solid var(--border); border-radius: var(--radius-sm, 8px); background: var(--surface-strong); color: var(--text-main); font: inherit; }
|
|
17
17
|
.mods-toolbar select { min-width: 126px; color: var(--text-main); }
|
|
18
|
-
.mods-panel button, .mod-band button { min-height: 32px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-bg); color: var(--text-main); }
|
|
18
|
+
.mods-panel button, .mod-band button { min-height: 32px; padding: 6px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm, 8px); background: var(--surface-bg); color: var(--text-main); }
|
|
19
19
|
.mods-panel button:hover:not(:disabled) { border-color: var(--border-strong, var(--accent)); background: var(--bg-surface-hover, var(--surface-strong)); }
|
|
20
20
|
.mods-panel .mods-import { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 34px; padding: 6px 10px; white-space: nowrap; }
|
|
21
|
-
.mods-empty { display: grid; justify-items: center; gap: 7px; padding: 28px 18px; border: 1px dashed var(--border); border-radius:
|
|
21
|
+
.mods-empty { display: grid; justify-items: center; gap: 7px; padding: 28px 18px; border: 1px dashed var(--border); border-radius: var(--radius-lg, 14px); background: var(--bg-surface-soft, transparent); color: var(--text-muted); text-align: center; }
|
|
22
22
|
.mods-empty svg { color: var(--accent); }
|
|
23
23
|
.mods-empty strong { color: var(--text-main); font-size: 13px; }
|
|
24
24
|
.mods-empty p { max-width: 30ch; margin: 0; line-height: 1.5; }
|
|
25
|
-
.mod-entry { display: grid; gap: 9px; min-width: 0; margin-bottom: 10px; padding: 14px; border: 1px solid var(--border); border-radius:
|
|
25
|
+
.mod-entry { display: grid; gap: 9px; min-width: 0; margin-bottom: 10px; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-lg, 14px); background: var(--bg-surface-soft, var(--surface-bg)); }
|
|
26
26
|
.mod-entry-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
|
|
27
27
|
.mod-entry-heading > div { display: grid; gap: 3px; min-width: 0; }
|
|
28
28
|
.mod-entry-heading strong { overflow-wrap: anywhere; font-size: 13px; font-weight: 650; }
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
.mod-session-controls button[aria-pressed=true] { border-color: var(--accent-border, var(--accent)); background: var(--accent-subtle, var(--surface-strong)); }
|
|
53
53
|
.mods-panel details details { margin-top: 9px; }
|
|
54
54
|
.mods-panel pre { max-height: 240px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 11px; line-height: 1.5; }
|
|
55
|
-
.mod-error { margin: 0; padding: 8px 10px; border: 1px solid var(--status-error, var(--danger)); border-radius: 8px; color: var(--status-error, var(--danger)); font-size: 11px; overflow-wrap: anywhere; }
|
|
55
|
+
.mod-error { margin: 0; padding: 8px 10px; border: 1px solid var(--status-error, var(--danger)); border-radius: var(--radius-sm, 8px); color: var(--status-error, var(--danger)); font-size: 11px; overflow-wrap: anywhere; }
|
|
56
56
|
.mods-panel button:disabled { opacity: .5; cursor: not-allowed; }
|
|
57
57
|
.mods-panel button:focus-visible, .mods-panel summary:focus-visible, .mods-panel select:focus-visible { outline: 2px solid var(--border-focus, var(--accent)); outline-offset: 2px; }
|
|
58
58
|
@media (max-width: 360px) { .mods-toolbar { align-items: stretch; flex-direction: column; } .mods-toolbar label { justify-content: space-between; } }
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
margin: 8px 12px;
|
|
7
7
|
padding: 12px 14px;
|
|
8
8
|
border: 1px solid var(--border, #303036);
|
|
9
|
-
border-radius:
|
|
9
|
+
border-radius: var(--radius-xl, 18px);
|
|
10
10
|
background: var(--bg-overlay, #18181b);
|
|
11
11
|
color: var(--text-main, #f4f4f5);
|
|
12
12
|
overflow-wrap: anywhere;
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
min-height: 32px;
|
|
20
20
|
padding: 4px 10px;
|
|
21
21
|
border: 1px solid var(--border, #303036);
|
|
22
|
-
border-radius: 8px;
|
|
22
|
+
border-radius: var(--radius-sm, 8px);
|
|
23
23
|
background: transparent;
|
|
24
24
|
color: inherit;
|
|
25
25
|
cursor: pointer;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.queued-messages-tray {
|
|
2
2
|
margin: 0 0 10px 0;
|
|
3
|
-
border-radius:
|
|
3
|
+
border-radius: var(--radius-xl, 18px);
|
|
4
4
|
background: var(--bg-surface-soft, rgba(255, 255, 255, 0.04));
|
|
5
5
|
border: 1px solid var(--border-default, rgba(255, 255, 255, 0.1));
|
|
6
6
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
padding: 1px 7px;
|
|
55
55
|
font-size: 0.72rem;
|
|
56
56
|
font-weight: 700;
|
|
57
|
-
border-radius:
|
|
57
|
+
border-radius: var(--radius-full, 9999px);
|
|
58
58
|
background: var(--accent-color, #10b981);
|
|
59
59
|
color: #ffffff;
|
|
60
60
|
}
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
gap: 4px;
|
|
86
86
|
padding: 4px 8px;
|
|
87
87
|
font-size: 0.72rem;
|
|
88
|
-
border-radius: 6px;
|
|
88
|
+
border-radius: var(--radius-xs, 6px);
|
|
89
89
|
border: 1px solid transparent;
|
|
90
90
|
background: transparent;
|
|
91
91
|
color: var(--text-muted, #94a3b8);
|
|
@@ -175,7 +175,7 @@
|
|
|
175
175
|
gap: 4px;
|
|
176
176
|
padding: 2px 6px;
|
|
177
177
|
font-size: 0.68rem;
|
|
178
|
-
border-radius: 4px;
|
|
178
|
+
border-radius: var(--radius-2xs, 4px);
|
|
179
179
|
background: rgba(255, 255, 255, 0.08);
|
|
180
180
|
color: var(--text-soft, #94a3b8);
|
|
181
181
|
}
|
|
@@ -193,7 +193,7 @@
|
|
|
193
193
|
justify-content: center;
|
|
194
194
|
width: 26px;
|
|
195
195
|
height: 26px;
|
|
196
|
-
border-radius: 6px;
|
|
196
|
+
border-radius: var(--radius-xs, 6px);
|
|
197
197
|
border: 1px solid transparent;
|
|
198
198
|
background: transparent;
|
|
199
199
|
color: var(--text-muted, #94a3b8);
|
|
@@ -104,8 +104,8 @@
|
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
.custom-provider-logo {
|
|
107
|
-
border-radius:
|
|
108
|
-
object-fit:
|
|
107
|
+
border-radius: 50%;
|
|
108
|
+
object-fit: cover;
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
/* ── Modern Custom Provider Logo Picker ────────────────────────────── */
|
|
@@ -181,7 +181,7 @@
|
|
|
181
181
|
justify-content: center;
|
|
182
182
|
overflow: hidden;
|
|
183
183
|
border: 1px solid var(--border);
|
|
184
|
-
border-radius:
|
|
184
|
+
border-radius: 50%;
|
|
185
185
|
background: var(--bg-surface-raised, #18181b);
|
|
186
186
|
color: var(--text-muted);
|
|
187
187
|
flex-shrink: 0;
|
|
@@ -190,8 +190,13 @@
|
|
|
190
190
|
.custom-provider-logo-avatar img {
|
|
191
191
|
width: 100%;
|
|
192
192
|
height: 100%;
|
|
193
|
+
object-fit: cover;
|
|
194
|
+
border-radius: 50%;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.custom-provider-logo-avatar img[src*="svg"] {
|
|
193
198
|
object-fit: contain;
|
|
194
|
-
padding:
|
|
199
|
+
padding: 6px;
|
|
195
200
|
}
|
|
196
201
|
|
|
197
202
|
.custom-provider-logo-fallback {
|
|
@@ -241,7 +246,7 @@
|
|
|
241
246
|
padding: 6px 10px;
|
|
242
247
|
font-size: 0.78rem;
|
|
243
248
|
font-weight: 500;
|
|
244
|
-
border-radius: 6px;
|
|
249
|
+
border-radius: var(--radius-xs, 6px);
|
|
245
250
|
border: none;
|
|
246
251
|
background: transparent;
|
|
247
252
|
color: var(--text-muted);
|
|
@@ -422,7 +427,7 @@
|
|
|
422
427
|
.custom-provider-emoji-btn {
|
|
423
428
|
width: 34px;
|
|
424
429
|
height: 34px;
|
|
425
|
-
border-radius: 8px;
|
|
430
|
+
border-radius: var(--radius-sm, 8px);
|
|
426
431
|
border: 1px solid var(--border);
|
|
427
432
|
background: var(--bg-surface, var(--input-bg));
|
|
428
433
|
font-size: 1.2rem;
|
|
@@ -444,7 +449,7 @@
|
|
|
444
449
|
align-items: center;
|
|
445
450
|
gap: 6px;
|
|
446
451
|
padding: 6px 10px;
|
|
447
|
-
border-radius: 6px;
|
|
452
|
+
border-radius: var(--radius-xs, 6px);
|
|
448
453
|
background: rgba(239, 68, 68, 0.12);
|
|
449
454
|
border: 1px solid rgba(239, 68, 68, 0.3);
|
|
450
455
|
color: var(--danger, #ef4444);
|
|
@@ -640,7 +645,7 @@
|
|
|
640
645
|
z-index: 120;
|
|
641
646
|
background: var(--bg-overlay);
|
|
642
647
|
border: 1px solid var(--border-default);
|
|
643
|
-
border-radius: 10px;
|
|
648
|
+
border-radius: var(--radius-md, 10px);
|
|
644
649
|
box-shadow: var(--shadow-lg);
|
|
645
650
|
max-height: 380px;
|
|
646
651
|
display: flex;
|
|
@@ -701,7 +706,7 @@
|
|
|
701
706
|
display: flex;
|
|
702
707
|
align-items: center;
|
|
703
708
|
justify-content: center;
|
|
704
|
-
border-radius: 4px;
|
|
709
|
+
border-radius: var(--radius-2xs, 4px);
|
|
705
710
|
}
|
|
706
711
|
|
|
707
712
|
.combobox-clear-btn:hover {
|
|
@@ -722,7 +727,7 @@
|
|
|
722
727
|
|
|
723
728
|
.model-combobox-list::-webkit-scrollbar-thumb {
|
|
724
729
|
background: var(--border-strong);
|
|
725
|
-
border-radius: 4px;
|
|
730
|
+
border-radius: var(--radius-2xs, 4px);
|
|
726
731
|
}
|
|
727
732
|
|
|
728
733
|
.model-combobox-group {
|
|
@@ -743,7 +748,7 @@
|
|
|
743
748
|
align-items: center;
|
|
744
749
|
justify-content: space-between;
|
|
745
750
|
padding: 7px 10px;
|
|
746
|
-
border-radius: 6px;
|
|
751
|
+
border-radius: var(--radius-xs, 6px);
|
|
747
752
|
cursor: pointer;
|
|
748
753
|
transition: background 0.12s ease;
|
|
749
754
|
gap: 8px;
|
|
@@ -802,7 +807,7 @@
|
|
|
802
807
|
.combobox-custom-badge {
|
|
803
808
|
font-size: 0.65rem;
|
|
804
809
|
padding: 1px 5px;
|
|
805
|
-
border-radius: 4px;
|
|
810
|
+
border-radius: var(--radius-2xs, 4px);
|
|
806
811
|
background: var(--bg-surface-raised);
|
|
807
812
|
color: var(--text-muted, #a1a1aa);
|
|
808
813
|
}
|
|
@@ -834,7 +839,7 @@
|
|
|
834
839
|
padding: 7px 12px;
|
|
835
840
|
background: var(--bg-surface-soft);
|
|
836
841
|
border: 1px dashed var(--border-default);
|
|
837
|
-
border-radius: 6px;
|
|
842
|
+
border-radius: var(--radius-xs, 6px);
|
|
838
843
|
color: var(--text-muted, #a1a1aa);
|
|
839
844
|
font-family: inherit;
|
|
840
845
|
font-size: 0.76rem;
|
|
@@ -197,7 +197,7 @@
|
|
|
197
197
|
|
|
198
198
|
.crop-viewport {
|
|
199
199
|
position: relative;
|
|
200
|
-
border-radius: 4px;
|
|
200
|
+
border-radius: var(--radius-2xs, 4px);
|
|
201
201
|
overflow: hidden;
|
|
202
202
|
cursor: grab;
|
|
203
203
|
user-select: none;
|
|
@@ -245,28 +245,28 @@
|
|
|
245
245
|
top: 4px;
|
|
246
246
|
left: 4px;
|
|
247
247
|
border-width: 3px 0 0 3px;
|
|
248
|
-
border-top-left-radius:
|
|
248
|
+
border-top-left-radius: var(--radius-2xs, 4px);
|
|
249
249
|
}
|
|
250
250
|
|
|
251
251
|
.crop-bracket-tr {
|
|
252
252
|
top: 4px;
|
|
253
253
|
right: 4px;
|
|
254
254
|
border-width: 3px 3px 0 0;
|
|
255
|
-
border-top-right-radius:
|
|
255
|
+
border-top-right-radius: var(--radius-2xs, 4px);
|
|
256
256
|
}
|
|
257
257
|
|
|
258
258
|
.crop-bracket-bl {
|
|
259
259
|
bottom: 4px;
|
|
260
260
|
left: 4px;
|
|
261
261
|
border-width: 0 0 3px 3px;
|
|
262
|
-
border-bottom-left-radius:
|
|
262
|
+
border-bottom-left-radius: var(--radius-2xs, 4px);
|
|
263
263
|
}
|
|
264
264
|
|
|
265
265
|
.crop-bracket-br {
|
|
266
266
|
bottom: 4px;
|
|
267
267
|
right: 4px;
|
|
268
268
|
border-width: 0 3px 3px 0;
|
|
269
|
-
border-bottom-right-radius:
|
|
269
|
+
border-bottom-right-radius: var(--radius-2xs, 4px);
|
|
270
270
|
}
|
|
271
271
|
|
|
272
272
|
.crop-hint-drag {
|
|
@@ -154,7 +154,7 @@
|
|
|
154
154
|
.theme-segmented-swatch {
|
|
155
155
|
width: 18px;
|
|
156
156
|
height: 5px;
|
|
157
|
-
border-radius:
|
|
157
|
+
border-radius: var(--radius-2xs, 4px);
|
|
158
158
|
}
|
|
159
159
|
|
|
160
160
|
.theme-segmented-btn:hover {
|
|
@@ -362,7 +362,7 @@
|
|
|
362
362
|
.preset-mini-window {
|
|
363
363
|
width: 100%;
|
|
364
364
|
height: 100%;
|
|
365
|
-
border-radius: 6px;
|
|
365
|
+
border-radius: var(--radius-xs, 6px);
|
|
366
366
|
padding: 6px 8px;
|
|
367
367
|
box-sizing: border-box;
|
|
368
368
|
display: flex;
|
|
@@ -403,7 +403,7 @@
|
|
|
403
403
|
font-weight: 700;
|
|
404
404
|
line-height: 1;
|
|
405
405
|
padding: 2px 6px;
|
|
406
|
-
border-radius: 4px;
|
|
406
|
+
border-radius: var(--radius-2xs, 4px);
|
|
407
407
|
}
|
|
408
408
|
|
|
409
409
|
.preset-mini-body {
|
|
@@ -430,13 +430,13 @@
|
|
|
430
430
|
.preset-mini-line-main {
|
|
431
431
|
height: 4px;
|
|
432
432
|
width: 80%;
|
|
433
|
-
border-radius:
|
|
433
|
+
border-radius: var(--radius-2xs, 4px);
|
|
434
434
|
}
|
|
435
435
|
|
|
436
436
|
.preset-mini-line-accent {
|
|
437
437
|
height: 3px;
|
|
438
438
|
width: 45%;
|
|
439
|
-
border-radius:
|
|
439
|
+
border-radius: var(--radius-2xs, 4px);
|
|
440
440
|
}
|
|
441
441
|
|
|
442
442
|
.theme-preset-meta {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
color: var(--text-main, #e8e8e8);
|
|
17
17
|
background: var(--panel-bg, #252525);
|
|
18
18
|
border: 1px solid var(--border, #343434);
|
|
19
|
-
border-radius: 18px;
|
|
19
|
+
border-radius: var(--radius-xl, 18px);
|
|
20
20
|
font-family: var(--font-sans, Inter, system-ui, sans-serif);
|
|
21
21
|
box-shadow: none;
|
|
22
22
|
}
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
text-align: left;
|
|
59
59
|
background: transparent;
|
|
60
60
|
border: 0;
|
|
61
|
-
border-radius: 4px;
|
|
61
|
+
border-radius: var(--radius-2xs, 4px);
|
|
62
62
|
cursor: pointer;
|
|
63
63
|
font: inherit;
|
|
64
64
|
font-size: 13px;
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
color: var(--text-main);
|
|
13
13
|
background: var(--panel-bg);
|
|
14
14
|
border: 1px solid var(--border-default, var(--border));
|
|
15
|
-
border-radius:
|
|
15
|
+
border-radius: var(--radius-xl);
|
|
16
16
|
box-shadow: var(--shadow-lg);
|
|
17
17
|
font-family: var(--font-sans, Inter, system-ui, sans-serif);
|
|
18
18
|
}
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
min-height: 32px;
|
|
46
46
|
padding: 6px 8px;
|
|
47
47
|
border: 0;
|
|
48
|
-
border-radius:
|
|
48
|
+
border-radius: var(--radius-sm);
|
|
49
49
|
background: transparent;
|
|
50
50
|
text-align: start;
|
|
51
51
|
font: inherit;
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
.slash-suggestions-empty { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; color: var(--text-muted); font-size: 13px; }
|
|
63
63
|
.slash-suggestions-hint { padding: 7px 12px; border-top: 1px solid var(--border-default, var(--border)); color: var(--text-muted); font-size: 10px; }
|
|
64
64
|
@media (max-width: 760px) {
|
|
65
|
-
#chat-form > .slash-suggestions-popup { max-height: min(34dvh, 280px); border-radius:
|
|
65
|
+
#chat-form > .slash-suggestions-popup { max-height: min(34dvh, 280px); border-radius: var(--radius-xl); }
|
|
66
66
|
.slash-suggestion-item { min-height: 40px; }
|
|
67
67
|
.slash-cmd-name { max-width: 48%; overflow: hidden; text-overflow: ellipsis; }
|
|
68
68
|
}
|
|
@@ -3,6 +3,11 @@
|
|
|
3
3
|
max-width: 100%;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
+
.sources-block:has(.source-links-popover) {
|
|
7
|
+
position: relative;
|
|
8
|
+
z-index: 50;
|
|
9
|
+
}
|
|
10
|
+
|
|
6
11
|
.source-card-group {
|
|
7
12
|
position: relative;
|
|
8
13
|
display: flex;
|
|
@@ -13,6 +18,11 @@
|
|
|
13
18
|
box-sizing: border-box;
|
|
14
19
|
}
|
|
15
20
|
|
|
21
|
+
.source-card-group.is-open,
|
|
22
|
+
.source-card-group:has(.source-links-popover) {
|
|
23
|
+
z-index: 50;
|
|
24
|
+
}
|
|
25
|
+
|
|
16
26
|
.source-card {
|
|
17
27
|
display: flex;
|
|
18
28
|
flex-direction: column;
|
|
@@ -28,9 +38,36 @@
|
|
|
28
38
|
min-width: 0;
|
|
29
39
|
}
|
|
30
40
|
|
|
41
|
+
.source-links-popover,
|
|
31
42
|
.source-card-group > .source-links-popover {
|
|
32
|
-
width:
|
|
43
|
+
width: 280px;
|
|
44
|
+
max-width: min(320px, calc(100vw - 32px));
|
|
45
|
+
max-height: 320px;
|
|
33
46
|
box-sizing: border-box;
|
|
47
|
+
overflow: hidden;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.source-links-popover-list {
|
|
51
|
+
max-height: 260px;
|
|
52
|
+
overflow-y: auto;
|
|
53
|
+
overscroll-behavior: contain;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.source-links-popover-list::-webkit-scrollbar {
|
|
57
|
+
width: 5px;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.source-links-popover-list::-webkit-scrollbar-track {
|
|
61
|
+
background: transparent;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.source-links-popover-list::-webkit-scrollbar-thumb {
|
|
65
|
+
background: var(--border-default, rgba(255, 255, 255, 0.15));
|
|
66
|
+
border-radius: 9999px;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.source-links-popover-list::-webkit-scrollbar-thumb:hover {
|
|
70
|
+
background: var(--border-strong, rgba(255, 255, 255, 0.3));
|
|
34
71
|
}
|
|
35
72
|
|
|
36
73
|
.sources-more-button {
|
|
@@ -78,8 +115,10 @@
|
|
|
78
115
|
inset: 0;
|
|
79
116
|
}
|
|
80
117
|
|
|
118
|
+
.source-links-popover,
|
|
81
119
|
.source-card-group > .source-links-popover {
|
|
82
|
-
width:
|
|
120
|
+
width: 280px;
|
|
121
|
+
max-width: calc(100vw - 24px);
|
|
83
122
|
}
|
|
84
123
|
|
|
85
124
|
.sources-more-button {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
.tools-panel-toggle { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex-shrink: 0; min-height: 32px; padding: 5px
|
|
1
|
+
.tools-panel-toggle { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex-shrink: 0; min-height: 32px; padding: 5px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm, 8px); background: var(--surface-bg); color: var(--text-main); font: inherit; font-size: 12px; cursor: pointer; }
|
|
2
2
|
.tools-panel-toggle > svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }
|
|
3
|
-
.tools-panel-toggle:hover, .tools-panel-toggle.is-open { background: var(--surface-strong); color: var(--
|
|
3
|
+
.tools-panel-toggle:hover, .tools-panel-toggle.is-open { background: var(--surface-strong); color: var(--text-main); border-color: var(--border-strong, var(--border)); }
|
|
4
4
|
.tools-panel-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
|
|
5
5
|
.tools-task-count { display: inline-grid; place-items: center; flex-shrink: 0; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--accent-subtle, var(--surface-strong)); color: var(--accent); font-size: 10px; font-weight: 650; line-height: 1; font-variant-numeric: tabular-nums; }
|
|
6
6
|
.mint-titlebar-icon-button.tools-panel-toggle { width: auto; min-width: 32px; }
|
|
@@ -16,4 +16,12 @@
|
|
|
16
16
|
--color-secondary-foreground: var(--btn-gray-fg, var(--text-main));
|
|
17
17
|
--color-muted-foreground: var(--text-muted);
|
|
18
18
|
--color-ring: var(--accent);
|
|
19
|
+
--radius-2xs: var(--radius-2xs);
|
|
20
|
+
--radius-xs: var(--radius-xs);
|
|
21
|
+
--radius-sm: var(--radius-sm);
|
|
22
|
+
--radius-md: var(--radius-md);
|
|
23
|
+
--radius-lg: var(--radius-lg);
|
|
24
|
+
--radius-xl: var(--radius-xl);
|
|
25
|
+
--radius-2xl: var(--radius-2xl);
|
|
26
|
+
--radius-3xl: var(--radius-3xl);
|
|
19
27
|
}
|
|
@@ -1002,7 +1002,7 @@
|
|
|
1002
1002
|
.veo-studio-fablemint-notice span code {
|
|
1003
1003
|
font-size: 0.85em;
|
|
1004
1004
|
padding: 1px 5px;
|
|
1005
|
-
border-radius: 4px;
|
|
1005
|
+
border-radius: var(--radius-2xs, 4px);
|
|
1006
1006
|
background: var(--input-bg, rgba(255, 255, 255, 0.06));
|
|
1007
1007
|
border: 1px solid var(--border-subtle);
|
|
1008
1008
|
}
|
|
@@ -1018,7 +1018,7 @@
|
|
|
1018
1018
|
.veo-studio-fablemint-notice pre {
|
|
1019
1019
|
margin: 6px 0 0;
|
|
1020
1020
|
padding: 10px 12px;
|
|
1021
|
-
border-radius: 8px;
|
|
1021
|
+
border-radius: var(--radius-sm, 8px);
|
|
1022
1022
|
background: var(--input-bg, rgba(255, 255, 255, 0.04));
|
|
1023
1023
|
border: 1px solid var(--border-subtle);
|
|
1024
1024
|
font-size: 0.78rem;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
.viewed-images { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px; max-width: 680px; margin: 12px 0; }
|
|
2
2
|
.viewed-image { min-width: 0; margin: 0; }
|
|
3
3
|
.viewed-image:only-child { max-width: 420px; }
|
|
4
|
-
.viewed-image-button { display: block; width: 100%; padding: 0; border: 1px solid var(--border); border-radius:
|
|
4
|
+
.viewed-image-button { display: block; width: 100%; padding: 0; border: 1px solid var(--border); border-radius: var(--radius-lg, 14px); overflow: hidden; background: var(--bg-surface-soft); cursor: zoom-in; }
|
|
5
5
|
.viewed-image-button img { display: block; width: 100%; height: 260px; object-fit: contain; }
|
|
6
6
|
.viewed-image figcaption { margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-muted); font-size: 12px; }
|
|
7
|
-
.viewed-image-error { margin: 0; padding: 16px; border: 1px solid var(--border); border-radius: 10px; color: var(--text-muted); font-size: 13px; }
|
|
8
|
-
.viewed-image-dialog { box-sizing: border-box; width: fit-content; max-width: 96vw; max-height: 94dvh; padding: 12px; overflow: auto; border: 1px solid var(--border); border-radius:
|
|
7
|
+
.viewed-image-error { margin: 0; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-md, 10px); color: var(--text-muted); font-size: 13px; }
|
|
8
|
+
.viewed-image-dialog { box-sizing: border-box; width: fit-content; max-width: 96vw; max-height: 94dvh; padding: 12px; overflow: auto; border: 1px solid var(--border); border-radius: var(--radius-2xl, 22px); background: var(--bg-overlay); color: var(--text-main); }
|
|
9
9
|
.viewed-image-dialog::backdrop { background: rgba(0, 0, 0, .75); }
|
|
10
10
|
.viewed-image-dialog header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 13px; }
|
|
11
11
|
.viewed-image-dialog header span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
|
|
12
|
-
.viewed-image-dialog button { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; padding: 0; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-surface-soft); color: var(--text-main); cursor: pointer; }
|
|
12
|
+
.viewed-image-dialog button { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; padding: 0; border: 1px solid var(--border); border-radius: var(--radius-sm, 8px); background: var(--bg-surface-soft); color: var(--text-main); cursor: pointer; }
|
|
13
13
|
.viewed-image-dialog > img { display: block; max-width: 100%; max-height: calc(94dvh - 86px); object-fit: contain; }
|
|
14
14
|
.viewed-image-button:focus-visible, .viewed-image-dialog button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
|
|
15
15
|
@media (max-width: 480px) { .viewed-image-button img { height: 220px; } }
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
padding: 0;
|
|
37
37
|
margin: 0;
|
|
38
38
|
border: 1px solid var(--border, rgba(255, 255, 255, 0.12));
|
|
39
|
-
border-radius:
|
|
39
|
+
border-radius: var(--radius-lg, 14px);
|
|
40
40
|
overflow: hidden;
|
|
41
41
|
background: color-mix(in srgb, var(--panel-soft, #1e293b) 60%, black);
|
|
42
42
|
cursor: zoom-in;
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
background: rgba(0, 0, 0, 0.65);
|
|
91
91
|
backdrop-filter: blur(4px);
|
|
92
92
|
padding: 2px 7px;
|
|
93
|
-
border-radius: 6px;
|
|
93
|
+
border-radius: var(--radius-xs, 6px);
|
|
94
94
|
border: 1px solid rgba(255, 255, 255, 0.15);
|
|
95
95
|
}
|
|
96
96
|
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
margin: 0;
|
|
99
99
|
padding: 8px 12px;
|
|
100
100
|
border: 1px dashed var(--border);
|
|
101
|
-
border-radius: 8px;
|
|
101
|
+
border-radius: var(--radius-sm, 8px);
|
|
102
102
|
font-size: 12px;
|
|
103
103
|
color: var(--text-muted);
|
|
104
104
|
}
|
|
@@ -143,6 +143,7 @@ export interface MintPlatformApi {
|
|
|
143
143
|
saveSubagent(draft: SubagentDraft, workspacePath?: string): Promise<SubagentDefinition>
|
|
144
144
|
deleteSubagent(sourcePath: string): Promise<void>
|
|
145
145
|
clearChatHistory(chatId?: string | null): Promise<number>
|
|
146
|
+
truncateInteractionsFrom(chatId: string | null | undefined, fromId: number): Promise<number>
|
|
146
147
|
listLibrary(query: import('./types').LibraryQuery): Promise<import('./types').LibraryPage>
|
|
147
148
|
getLibraryItem(id: string): Promise<import('./types').LibraryItem>
|
|
148
149
|
removeLibraryItem(id: string): Promise<void>
|
|
@@ -269,7 +270,7 @@ export const authPlatform = {
|
|
|
269
270
|
/** Conversation transport, persistence, live voice, and checkpoint seam. */
|
|
270
271
|
export const conversationPlatform = {
|
|
271
272
|
getConversationSources: operation('getConversationSources'), saveSourceAttachments: operation('saveSourceAttachments'),
|
|
272
|
-
clearChatHistory: operation('clearChatHistory'), deleteChatSession: operation('deleteChatSession'),
|
|
273
|
+
clearChatHistory: operation('clearChatHistory'), truncateInteractionsFrom: operation('truncateInteractionsFrom'), deleteChatSession: operation('deleteChatSession'),
|
|
273
274
|
renameChatSession: operation('renameChatSession'), getRecentInteractions: operation('getRecentInteractions'),
|
|
274
275
|
getConversationSnapshot: operation('getConversationSnapshot'), getConversationChanges: operation('getConversationChanges'),
|
|
275
276
|
saveSystemInteraction: operation('saveSystemInteraction'), listChatSessions: operation('listChatSessions'), pendingCompanionChat: operation('pendingCompanionChat'),
|
|
@@ -60,4 +60,21 @@ describe('theme surface settings', () => {
|
|
|
60
60
|
applyTheme({ theme: 'studio' })
|
|
61
61
|
expect(attributes.get('data-theme')).toBe('studio')
|
|
62
62
|
})
|
|
63
|
+
|
|
64
|
+
it('sets centralized text color and derived tokens when textColor is provided', () => {
|
|
65
|
+
applyTheme({ theme: 'dark', textColor: '#f8fafc' })
|
|
66
|
+
expect(properties.get('--text-main')).toBe('#f8fafc')
|
|
67
|
+
expect(properties.get('--text-chat')).toBe('#f8fafc')
|
|
68
|
+
expect(properties.get('--text-primary')).toBe('#f8fafc')
|
|
69
|
+
expect(properties.get('--text-soft')).toBe('color-mix(in srgb, #f8fafc 82%, transparent)')
|
|
70
|
+
expect(properties.get('--text-secondary')).toBe('color-mix(in srgb, #f8fafc 82%, transparent)')
|
|
71
|
+
expect(properties.get('--text-muted')).toBe('color-mix(in srgb, #f8fafc 58%, transparent)')
|
|
72
|
+
})
|
|
73
|
+
|
|
74
|
+
it('sets custom text color when another color is chosen', () => {
|
|
75
|
+
applyTheme({ theme: 'dark', textColor: '#f5f5f4' })
|
|
76
|
+
expect(properties.get('--text-main')).toBe('#f5f5f4')
|
|
77
|
+
expect(properties.get('--text-chat')).toBe('#f5f5f4')
|
|
78
|
+
expect(properties.get('--text-primary')).toBe('#f5f5f4')
|
|
79
|
+
})
|
|
63
80
|
})
|
|
@@ -100,6 +100,26 @@ export const applyTheme = (cfg: any): void => {
|
|
|
100
100
|
document.documentElement.style.setProperty('--text-on-accent', contrastText)
|
|
101
101
|
document.documentElement.style.setProperty('--accent-contrast', contrastText)
|
|
102
102
|
|
|
103
|
+
// Centralized Text Color Tokens
|
|
104
|
+
const textColor = cfg.textColor || cfg.systemTextColor || cfg.chatTextColor
|
|
105
|
+
if (textColor) {
|
|
106
|
+
document.documentElement.style.setProperty('--text-main', textColor)
|
|
107
|
+
document.documentElement.style.setProperty('--text-chat', textColor)
|
|
108
|
+
document.documentElement.style.setProperty('--text-primary', textColor)
|
|
109
|
+
document.documentElement.style.setProperty('--text-soft', `color-mix(in srgb, ${textColor} 82%, transparent)`)
|
|
110
|
+
document.documentElement.style.setProperty('--text-secondary', `color-mix(in srgb, ${textColor} 82%, transparent)`)
|
|
111
|
+
document.documentElement.style.setProperty('--text-muted', `color-mix(in srgb, ${textColor} 58%, transparent)`)
|
|
112
|
+
} else {
|
|
113
|
+
;[
|
|
114
|
+
'--text-main',
|
|
115
|
+
'--text-chat',
|
|
116
|
+
'--text-primary',
|
|
117
|
+
'--text-soft',
|
|
118
|
+
'--text-secondary',
|
|
119
|
+
'--text-muted',
|
|
120
|
+
].forEach((prop) => document.documentElement.style.removeProperty(prop))
|
|
121
|
+
}
|
|
122
|
+
|
|
103
123
|
// Surface and Blur
|
|
104
124
|
if (surfaceStyle === 'opaque') {
|
|
105
125
|
document.documentElement.style.setProperty('--glass-blur', 'none')
|
|
@@ -140,7 +160,7 @@ export const applyTheme = (cfg: any): void => {
|
|
|
140
160
|
return
|
|
141
161
|
}
|
|
142
162
|
|
|
143
|
-
// Clean up inline background
|
|
163
|
+
// Clean up inline background overrides for standard themes
|
|
144
164
|
;[
|
|
145
165
|
'--bg-canvas',
|
|
146
166
|
'--bg-color',
|
|
@@ -152,8 +172,5 @@ export const applyTheme = (cfg: any): void => {
|
|
|
152
172
|
'--surface-bg',
|
|
153
173
|
'--surface-strong',
|
|
154
174
|
'--input-bg',
|
|
155
|
-
'--text-main',
|
|
156
|
-
'--text-chat',
|
|
157
|
-
'--text-soft',
|
|
158
175
|
].forEach((prop) => document.documentElement.style.removeProperty(prop))
|
|
159
176
|
}
|
|
@@ -59,12 +59,66 @@ export const ACCENT_FLAVORS: AccentFlavor[] = [
|
|
|
59
59
|
},
|
|
60
60
|
]
|
|
61
61
|
|
|
62
|
+
export interface TextColorFlavor {
|
|
63
|
+
id: string
|
|
64
|
+
name: string
|
|
65
|
+
color: string
|
|
66
|
+
contrastText: string
|
|
67
|
+
description: string
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export const TEXT_COLOR_FLAVORS: TextColorFlavor[] = [
|
|
71
|
+
{
|
|
72
|
+
id: 'white',
|
|
73
|
+
name: 'Pure White',
|
|
74
|
+
color: '#ffffff',
|
|
75
|
+
contrastText: '#09090b',
|
|
76
|
+
description: 'Crisp classic bright white',
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
id: 'green',
|
|
80
|
+
name: 'Cyber Green',
|
|
81
|
+
color: '#86efac',
|
|
82
|
+
contrastText: '#09090b',
|
|
83
|
+
description: 'Phosphor terminal matrix green',
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
id: 'cyan',
|
|
87
|
+
name: 'Electric Cyan',
|
|
88
|
+
color: '#67e8f9',
|
|
89
|
+
contrastText: '#09090b',
|
|
90
|
+
description: 'Sci-fi holographic ice cyan',
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
id: 'amber',
|
|
94
|
+
name: 'Retro Amber',
|
|
95
|
+
color: '#fde047',
|
|
96
|
+
contrastText: '#09090b',
|
|
97
|
+
description: 'Warm CRT phosphor amber gold',
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
id: 'lavender',
|
|
101
|
+
name: 'Pastel Lilac',
|
|
102
|
+
color: '#d8b4fe',
|
|
103
|
+
contrastText: '#09090b',
|
|
104
|
+
description: 'Soft dreamy violet lavender',
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
id: 'coral',
|
|
108
|
+
name: 'Soft Coral',
|
|
109
|
+
color: '#fda4af',
|
|
110
|
+
contrastText: '#09090b',
|
|
111
|
+
description: 'Warm energetic pastel rose coral',
|
|
112
|
+
},
|
|
113
|
+
]
|
|
114
|
+
|
|
62
115
|
export interface ThemePreset {
|
|
63
116
|
id: string
|
|
64
117
|
name: string
|
|
65
118
|
description: string
|
|
66
119
|
theme: 'dark' | 'light' | 'midnight' | 'studio'
|
|
67
120
|
accentColor: string
|
|
121
|
+
textColor?: string
|
|
68
122
|
systemTextColor: string
|
|
69
123
|
chatTextColor: string
|
|
70
124
|
bgPreview: string
|