@pheem49/mint 1.14.0 → 1.15.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/CLAUDE.md +1 -1
- package/Cargo.lock +291 -11
- package/Cargo.toml +1 -1
- package/README.md +71 -9
- package/ROADMAP.md +30 -0
- package/Release_Note.md +579 -465
- package/crates/mint-cli/Cargo.toml +3 -1
- package/crates/mint-cli/src/agent/approval_prompts.rs +16 -3
- package/crates/mint-cli/src/agent/live_status.rs +367 -118
- package/crates/mint-cli/src/agent/markdown_render.rs +601 -61
- package/crates/mint-cli/src/agent.rs +452 -215
- package/crates/mint-cli/src/commands/agent.rs +16 -21
- package/crates/mint-cli/src/commands/eval.rs +9 -5
- package/crates/mint-cli/src/commands/git.rs +204 -0
- package/crates/mint-cli/src/commands/integrations.rs +28 -0
- package/crates/mint-cli/src/commands/knowledge.rs +1 -0
- package/crates/mint-cli/src/commands/mod.rs +37 -2
- package/crates/mint-cli/src/commands/tailnet_web.rs +235 -0
- package/crates/mint-cli/src/image.rs +26 -3
- package/crates/mint-cli/src/interactive/chat_tui.rs +4742 -0
- package/crates/mint-cli/src/interactive/command_ui.rs +477 -0
- package/crates/mint-cli/src/interactive/format.rs +8 -0
- package/crates/mint-cli/src/interactive/input_box.rs +38 -2
- package/crates/mint-cli/src/interactive/picker.rs +180 -37
- package/crates/mint-cli/src/interactive/resume_picker.rs +686 -0
- package/crates/mint-cli/src/interactive/slash_commands.rs +868 -450
- package/crates/mint-cli/src/interactive/thought_viewer.rs +286 -0
- package/crates/mint-cli/src/interactive.rs +400 -136
- package/crates/mint-cli/src/main.rs +84 -23
- package/crates/mint-cli/src/markdown.rs +12 -5
- package/crates/mint-cli/src/onboard.rs +32 -30
- package/crates/mint-cli/src/plugins_cli.rs +8 -5
- package/crates/mint-cli/src/setup.rs +10 -8
- package/crates/mint-cli/src/terminal_theme.rs +187 -0
- package/crates/mint-cli/src/updater.rs +56 -21
- package/crates/mint-core/src/agent/agent_loop.rs +1 -0
- package/crates/mint-core/src/agent/chat.rs +843 -177
- package/crates/mint-core/src/agent/code_tools.rs +83 -2
- package/crates/mint-core/src/agent/memory.rs +658 -20
- package/crates/mint-core/src/agent/skills.rs +1 -1
- package/crates/mint-core/src/api_server/routes/chat.rs +31 -5
- package/crates/mint-core/src/api_server/routes/linked_folders.rs +118 -3
- package/crates/mint-core/src/api_server/routes/misc.rs +10 -14
- package/crates/mint-core/src/api_server/routes/sessions.rs +44 -0
- package/crates/mint-core/src/api_server.rs +22 -3
- package/crates/mint-core/src/avatar_bridge.rs +2 -0
- package/crates/mint-core/src/browser/cdp.rs +74 -83
- package/crates/mint-core/src/browser/evidence.rs +260 -0
- package/crates/mint-core/src/browser/input.rs +1 -1
- package/crates/mint-core/src/browser/interact.rs +98 -124
- package/crates/mint-core/src/browser/lifecycle.rs +75 -4
- package/crates/mint-core/src/browser/mod.rs +16 -2
- package/crates/mint-core/src/browser/navigate.rs +27 -19
- package/crates/mint-core/src/browser/observe.js +40 -0
- package/crates/mint-core/src/browser/session.rs +1558 -0
- package/crates/mint-core/src/git/branches.rs +348 -0
- package/crates/mint-core/src/git/checkpoint.rs +40 -0
- package/crates/mint-core/src/git/diff.rs +206 -0
- package/crates/mint-core/src/git/mod.rs +10 -2
- package/crates/mint-core/src/integrations/channels.rs +1 -0
- package/crates/mint-core/src/lib.rs +22 -14
- package/crates/mint-core/src/live_sync.rs +28 -9
- package/crates/mint-core/src/media/auto_shorts.rs +1 -0
- package/crates/mint-core/src/media/gemini_live.rs +12 -1
- package/crates/mint-core/src/media/mic_transcribe.rs +1 -0
- package/crates/mint-core/src/media/subtitle.rs +1 -0
- package/crates/mint-core/src/orchestration/context_render.rs +1 -0
- package/crates/mint-core/src/orchestration/memory_skill.rs +6 -1
- package/crates/mint-core/src/orchestration/mod.rs +1024 -271
- package/crates/mint-core/src/orchestration/tools/browser.rs +16 -139
- package/crates/mint-core/src/orchestration/tools/misc.rs +2 -1
- package/crates/mint-core/src/orchestration/tools/web.rs +1 -1
- package/crates/mint-core/src/prompts/agent.rs +58 -29
- package/crates/mint-core/src/prompts/chat.rs +1 -1
- package/crates/mint-core/src/prompts/persona.rs +1 -1
- package/crates/mint-core/src/prompts/tool_catalog.rs +93 -25
- package/crates/mint-core/src/search/linked_folders/index.rs +732 -0
- package/crates/mint-core/src/search/linked_folders.rs +391 -130
- package/crates/mint-core/src/slash/mod.rs +470 -22
- package/crates/mint-core/src/slash/model_fetcher.rs +12 -3
- package/crates/mint-core/src/slash/models.rs +66 -10
- package/crates/mint-core/src/system/config.rs +230 -0
- package/crates/mint-core/src/system/workspace.rs +228 -0
- package/crates/mint-core/src/system.rs +1 -0
- package/crates/mint-core/tests/memory_persistence.rs +39 -0
- package/mint-presentation-demo.mp4 +0 -0
- package/out/web/assets/CliSessionsView-BxUVWEEL.js +1 -0
- package/out/web/assets/CliSessionsView-CBDTXuQv.css +1 -0
- package/out/web/assets/CodeReviewPage-DkMgfcos.css +1 -0
- package/out/web/assets/CodeReviewPage-jKlmLJwT.js +3 -0
- package/out/web/assets/CommandPalette-DnwPA5hy.js +1 -0
- package/out/web/assets/ImageStudioPanel-BR1XFwhR.js +1 -0
- package/out/web/assets/ImageStudioPanel-D0lnhQV5.css +1 -0
- package/out/web/assets/LinkedFoldersView-bi-CWQ-I.js +1 -0
- package/out/web/assets/McpRegistryPicker-D5tEFnyq.js +1 -0
- package/out/web/assets/McpServersView-BGG1dhFM.js +1 -0
- package/out/web/assets/MintDashboard-BIglDEWX.js +20 -0
- package/out/web/assets/MintDashboard-DSMywSgs.css +1 -0
- package/out/web/assets/ModelPanel-CbJ1PFoZ.js +1 -0
- package/out/web/assets/PicturesLibrary-CQP0fLP1.css +1 -0
- package/out/web/assets/PicturesLibrary-DoYN7T1p.js +1 -0
- package/out/web/assets/PluginsView-CU1HWXGk.js +1 -0
- package/out/web/assets/ScheduledTasksView-Bnl36y2N.js +1 -0
- package/out/web/assets/SettingsWindow-DhWLAn9T.css +1 -0
- package/out/web/assets/SettingsWindow-Dw8L01pw.js +2 -0
- package/out/web/assets/SkillsView-cnl8aY5p.js +2 -0
- package/out/web/assets/ToolSurfacePage-CgsQw6l5.css +1 -0
- package/out/web/assets/ToolSurfacePage-Cz2VJAPZ.js +37 -0
- package/out/web/assets/VeoStudioPanel-D4JnERWR.js +4 -0
- package/out/web/assets/VeoStudioPanel-DOj7_WR3.css +1 -0
- package/out/web/assets/WorkspacePanel-CbJ1PFoZ.js +1 -0
- package/out/web/assets/{abnfDiagram-VCTEODGH-DAOBA7ZG.js → abnfDiagram-VCTEODGH-ByMyfanq.js} +1 -1
- package/out/web/assets/{architecture-7GRP2DOG-CgSwQOPQ.js → architecture-7GRP2DOG-CLq2kEOB.js} +1 -1
- package/out/web/assets/{architectureDiagram-5GKGNRK7-CYp3yupP.js → architectureDiagram-5GKGNRK7-6PoVSmNG.js} +1 -1
- package/out/web/assets/{blockDiagram-NRAW4CY4-CyWybDWr.js → blockDiagram-NRAW4CY4-cKw9mAKi.js} +1 -1
- package/out/web/assets/{c4Diagram-UCG6FXSJ-BvY3U709.js → c4Diagram-UCG6FXSJ-Cqy8N5Ge.js} +1 -1
- package/out/web/assets/{chunk-75Z2AOVW-TLXCoZYv.js → chunk-75Z2AOVW-3qybijF5.js} +1 -1
- package/out/web/assets/chunk-CKBBP62Z-cIrXq6jN.js +2 -0
- package/out/web/assets/{chunk-CLGD4ZFX-xjsKtNS7.js → chunk-CLGD4ZFX-CndDQkww.js} +1 -1
- package/out/web/assets/chunk-DSNCTWBM-Cc4NxvgD.js +2 -0
- package/out/web/assets/chunk-DU6HZSFF-drzh6GsU.js +128 -0
- package/out/web/assets/{chunk-F27PBJKO-BFpgF55A.js → chunk-F27PBJKO-FiY35l4v.js} +1 -1
- package/out/web/assets/{chunk-G27WJ6UU-DfF7qW-C.js → chunk-G27WJ6UU-Bjt9Il4A.js} +1 -1
- package/out/web/assets/{chunk-GMAD6QVW-C-558kh_.js → chunk-GMAD6QVW-Bppi3Ctd.js} +1 -1
- package/out/web/assets/{chunk-JQ64N6SF-wJmeGKAw.js → chunk-JQ64N6SF-DGg5kcEV.js} +1 -1
- package/out/web/assets/{chunk-LCL6LL3I-C1wHD8Ie.js → chunk-LCL6LL3I-CCYcjd7p.js} +1 -1
- package/out/web/assets/{chunk-OBVCFTLP-BsRTPBqs.js → chunk-OBVCFTLP-DJeNil5M.js} +1 -1
- package/out/web/assets/{chunk-P2QGCYS3-HZIiM7Ni.js → chunk-P2QGCYS3-lRzkRjBB.js} +1 -1
- package/out/web/assets/{chunk-POPQ4Y6H-Dk9wvVb0.js → chunk-POPQ4Y6H-DouASMBW.js} +1 -1
- package/out/web/assets/{chunk-PWAF6VOD-BmjYLNbq.js → chunk-PWAF6VOD-DMmD1vVf.js} +1 -1
- package/out/web/assets/{chunk-R7TYR2AO-CaHIf-lK.js → chunk-R7TYR2AO-CYLA5UC5.js} +1 -1
- package/out/web/assets/{chunk-RHFEMEQ7-_T561hOU.js → chunk-RHFEMEQ7-BiXwEcUT.js} +1 -1
- package/out/web/assets/{chunk-SVP7TREG-CM-GGYoY.js → chunk-SVP7TREG-BV-zPslF.js} +1 -1
- package/out/web/assets/{chunk-TEH6E4GO-K2A8Vg2C.js → chunk-TEH6E4GO-B2RGEohZ.js} +1 -1
- package/out/web/assets/classDiagram-DTDB5LWJ-Dq0smRWk.js +1 -0
- package/out/web/assets/classDiagram-v2-JRS7N3AN-Dq0smRWk.js +1 -0
- package/out/web/assets/config-C-ZFtipU.css +1 -0
- package/out/web/assets/config-eEDngJXO.js +1 -0
- package/out/web/assets/core-hQ2VA9Ti.js +1 -0
- package/out/web/assets/{cynefin-OW5HDTMX-ClzaB6cc.js → cynefin-OW5HDTMX-Cas4csHM.js} +1 -1
- package/out/web/assets/{cynefinDiagram-5FMLGOSQ-D_JzZBzf.js → cynefinDiagram-5FMLGOSQ-Bbpj66Y3.js} +1 -1
- package/out/web/assets/{dagre-3AP2YEHR-BDuUeMHj.js → dagre-3AP2YEHR-B0-2RDEd.js} +1 -1
- package/out/web/assets/{diagram-S7CK7UJ4-DgtcfE8P.js → diagram-S7CK7UJ4-BdzEjUyH.js} +1 -1
- package/out/web/assets/{diagram-UQ7AKVKN-DTLoEYti.js → diagram-UQ7AKVKN-CJDwyPxF.js} +1 -1
- package/out/web/assets/{diagram-VSXAHHWV-ChGl9pXz.js → diagram-VSXAHHWV-BxaG1r_B.js} +1 -1
- package/out/web/assets/{diagram-VX7I27RA-Be8DWz0S.js → diagram-VX7I27RA-BMmUqm8f.js} +1 -1
- package/out/web/assets/{diagram-Z3DM3KII-BMXjRTOF.js → diagram-Z3DM3KII-CFtd03eE.js} +1 -1
- package/out/web/assets/dist-js-Bf2bhoku.js +1 -0
- package/out/web/assets/{ebnfDiagram-PWID7BFC-8Q9pl1CJ.js → ebnfDiagram-PWID7BFC-DwAen1hO.js} +1 -1
- package/out/web/assets/{erDiagram-SSCWMZ5O-DjH8Lnkn.js → erDiagram-SSCWMZ5O-BCZSHACj.js} +1 -1
- package/out/web/assets/event-ChBVpRy0.js +1 -0
- package/out/web/assets/{eventmodeling-NTZA5JFV-BKUH_DOp.js → eventmodeling-NTZA5JFV-XHStE4E_.js} +1 -1
- package/out/web/assets/fira-code-latin-600-normal-BmSSHshu.woff +0 -0
- package/out/web/assets/fira-code-latin-600-normal-CvYZpPHg.woff2 +0 -0
- package/out/web/assets/fira-code-symbols2-600-normal-Dvq6IQE5.woff +0 -0
- package/out/web/assets/flowDiagram-A5DVABFB-BLg7nEcd.js +1 -0
- package/out/web/assets/{ganttDiagram-EL5Y4UJY-D7fZKJNM.js → ganttDiagram-EL5Y4UJY-BAEu1Cql.js} +1 -1
- package/out/web/assets/{gitGraph-4MIJSDKK-BypWaaBU.js → gitGraph-4MIJSDKK-r32Vyper.js} +1 -1
- package/out/web/assets/{gitGraphDiagram-WWUBYQGX-DWiw_3bq.js → gitGraphDiagram-WWUBYQGX-z9o9qt6V.js} +1 -1
- package/out/web/assets/index-Btsf4L8M.css +1 -0
- package/out/web/assets/index-D8D9MeRA.js +11 -0
- package/out/web/assets/{info-A6RAGUB7-KkAUxT4j.js → info-A6RAGUB7-BvLaC2cw.js} +1 -1
- package/out/web/assets/{infoDiagram-RXCK75RN-BNb6E48y.js → infoDiagram-RXCK75RN-Be6WAXXw.js} +1 -1
- package/out/web/assets/{ishikawaDiagram-5VMMS53U-Caa-JoAK.js → ishikawaDiagram-5VMMS53U-DZjoHJHC.js} +1 -1
- package/out/web/assets/{journeyDiagram-EYS64GPL-DOrmFGz6.js → journeyDiagram-EYS64GPL-CtVkjkGm.js} +1 -1
- package/out/web/assets/{kanban-definition-3QL26DDD-BOWCYcK0.js → kanban-definition-3QL26DDD-CW5FMv1w.js} +1 -1
- package/out/web/assets/lucide-react-Ip3L6Jtn.js +1 -0
- package/out/web/assets/markdown-BSeeUbJH.js +38 -0
- package/out/web/assets/{mermaid-parser.core-BQqjCkS_.js → mermaid-parser.core-aUgCqsZ5.js} +3 -3
- package/out/web/assets/mermaid.core-D57sEiSL.js +11 -0
- package/out/web/assets/{mindmap-definition-FBJOCRG2-jTceWpr0.js → mindmap-definition-FBJOCRG2-DAmSpM3a.js} +1 -1
- package/out/web/assets/modelManager-tMVmJVAW.js +2 -0
- package/out/web/assets/oauthManager-9jxicDWJ.js +1 -0
- package/out/web/assets/{packet-AYTQ26CC-CJ5RXgol.js → packet-AYTQ26CC-DJ27iIoJ.js} +1 -1
- package/out/web/assets/{pegDiagram-XKGWAZYB-y8wMtd0y.js → pegDiagram-XKGWAZYB-Bj3ii-gS.js} +1 -1
- package/out/web/assets/{pie-WAS4IAKB-72fTBbl4.js → pie-WAS4IAKB-DG5mCUbc.js} +1 -1
- package/out/web/assets/{pieDiagram-E7YTZNPT-e0O02qWq.js → pieDiagram-E7YTZNPT-BrJLPnDA.js} +1 -1
- package/out/web/assets/prompt-latin-700-normal-BfbftDSq.woff +0 -0
- package/out/web/assets/prompt-latin-700-normal-I2gc831J.woff2 +0 -0
- package/out/web/assets/prompt-thai-700-normal-Cb5ilR-c.woff +0 -0
- package/out/web/assets/prompt-thai-700-normal-Cg4aQ0Nn.woff2 +0 -0
- package/out/web/assets/{quadrantDiagram-AXDQQJYC-C9phYLom.js → quadrantDiagram-AXDQQJYC-3x_TmF3j.js} +1 -1
- package/out/web/assets/{radar-RG4KPBEZ-BAU2hzUT.js → radar-RG4KPBEZ-CrXaTTuV.js} +1 -1
- package/out/web/assets/{railroad-74A4TZTK-B0bCAVHC.js → railroad-74A4TZTK-BpqMH9BE.js} +1 -1
- package/out/web/assets/{railroad-abnf-HS5TGJTU-WhxO7ndE.js → railroad-abnf-HS5TGJTU-DHI0uLlV.js} +1 -1
- package/out/web/assets/{railroad-ebnf-LZEXJU2U-BkA0m7-F.js → railroad-ebnf-LZEXJU2U-CQCb316y.js} +1 -1
- package/out/web/assets/{railroad-peg-WCYAUIDC-BsVpHIaj.js → railroad-peg-WCYAUIDC-Ph1giKkH.js} +1 -1
- package/out/web/assets/{railroadDiagram-O6MQD6OU-CyOLN65Q.js → railroadDiagram-O6MQD6OU-BRq6wIxx.js} +1 -1
- package/out/web/assets/{requirementDiagram-EFPCY7ZU-DQXJ7Dud.js → requirementDiagram-EFPCY7ZU-DIJj6G1g.js} +1 -1
- package/out/web/assets/{sankeyDiagram-P5KCCOFB-B2XLyIIc.js → sankeyDiagram-P5KCCOFB-DZajSryq.js} +1 -1
- package/out/web/assets/{sequenceDiagram-WJ2MYXX4-DGQY4wwm.js → sequenceDiagram-WJ2MYXX4-DxJCWyZS.js} +1 -1
- package/out/web/assets/{stateDiagram-HBIQ2CUA-DHZpDwNy.js → stateDiagram-HBIQ2CUA-k6voi8Vf.js} +1 -1
- package/out/web/assets/stateDiagram-v2-4QOOHH4V-DeEc0lGZ.js +1 -0
- package/out/web/assets/studio-B1mk40wD.js +1 -0
- package/out/web/assets/{swimlanes-XN3QIQJK-Bn_jcZz-.js → swimlanes-XN3QIQJK-igYhTjXB.js} +1 -1
- package/out/web/assets/swimlanesDiagram-VK2B7HYN-DpVik9v7.js +8 -0
- package/out/web/assets/{timeline-definition-24CTP7MA-CdTERuJZ.js → timeline-definition-24CTP7MA-Dke2p93p.js} +1 -1
- package/out/web/assets/{treeView-Q6P3EWNA-TKBKQG6R.js → treeView-Q6P3EWNA-hNELnXUs.js} +1 -1
- package/out/web/assets/{treemap-WGGIJYW6-BP7gQoiC.js → treemap-WGGIJYW6-D2B6wDsx.js} +1 -1
- package/out/web/assets/{vennDiagram-4TSXK5OY-BHUmxDuK.js → vennDiagram-4TSXK5OY-CDkW7rUP.js} +1 -1
- package/out/web/assets/{wardley-WFR3VGLG-9bct5AAN.js → wardley-WFR3VGLG-BECdXETi.js} +1 -1
- package/out/web/assets/{wardleyDiagram-VM6X3IG4-BfJwDDso.js → wardleyDiagram-VM6X3IG4-B5BycpQ4.js} +1 -1
- package/out/web/assets/window-5qYXKoW7.js +1 -0
- package/out/web/assets/{xychartDiagram-S5SC5T6Z-Dqd9Mvpo.js → xychartDiagram-S5SC5T6Z-CtJS3b--.js} +1 -1
- package/out/web/index-web.html +3 -4
- package/out/web/index.html +3 -4
- package/package.json +17 -6
- package/skills-lock.json +36 -0
- package/slash-commands.json +9 -0
- package/src/renderer/index-web.html +1 -0
- package/src/renderer/index.html +1 -0
- package/src/renderer/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +1 -0
- package/src/renderer/shared/agentProgress.ts +168 -3
- package/src/renderer/shared/components/AgentActivityDrawer.tsx +6 -6
- package/src/renderer/shared/components/AgentActivityTable.tsx +192 -132
- package/src/renderer/shared/components/ArtifactPreviewPanel.tsx +4 -4
- package/src/renderer/shared/components/AuthGate.tsx +4 -9
- package/src/renderer/shared/components/CalculationCard.tsx +41 -15
- package/src/renderer/shared/components/ChatMessageItem.tsx +20 -21
- package/src/renderer/shared/components/ChatPanel.tsx +432 -193
- package/src/renderer/shared/components/ChunkErrorBoundary.tsx +198 -49
- package/src/renderer/shared/components/CliSessionsView.tsx +495 -0
- package/src/renderer/shared/components/CodeReviewPage.tsx +565 -0
- package/src/renderer/shared/components/CommandPalette.tsx +8 -8
- package/src/renderer/shared/components/DashboardSidebar.tsx +862 -125
- package/src/renderer/shared/components/DesktopTitlebar.tsx +345 -0
- package/src/renderer/shared/components/DiffReviewModal.tsx +3 -3
- package/src/renderer/shared/components/GitBranchSelector.tsx +442 -0
- package/src/renderer/shared/components/ImageGenCard.tsx +31 -12
- package/src/renderer/shared/components/ImageSearchCard.tsx +59 -38
- package/src/renderer/shared/components/ImageStudioPanel.tsx +40 -41
- package/src/renderer/shared/components/InlineThoughtNote.tsx +27 -0
- package/src/renderer/shared/components/LinkedFoldersView.tsx +365 -46
- package/src/renderer/shared/components/McpRegistryPicker.tsx +1 -1
- package/src/renderer/shared/components/McpServersView.tsx +24 -22
- package/src/renderer/shared/components/MermaidCard.tsx +14 -8
- package/src/renderer/shared/components/MintDashboard.tsx +1141 -508
- package/src/renderer/shared/components/ModelSelectorPopover.tsx +535 -214
- package/src/renderer/shared/components/PlanChecklistWidget.tsx +1 -1
- package/src/renderer/shared/components/PluginsView.tsx +1 -1
- package/src/renderer/shared/components/RewindModal.tsx +6 -6
- package/src/renderer/shared/components/RunSummaryDashboard.tsx +3 -3
- package/src/renderer/shared/components/ScheduledTasksView.tsx +4 -4
- package/src/renderer/shared/components/ScreenCaptureDialog.css +221 -0
- package/src/renderer/shared/components/ScreenCaptureDialog.tsx +199 -0
- package/src/renderer/shared/components/Settings/AgentsTab.tsx +34 -39
- package/src/renderer/shared/components/Settings/AudioTab.tsx +8 -8
- package/src/renderer/shared/components/Settings/AutomationTab.tsx +8 -58
- package/src/renderer/shared/components/Settings/AvatarCropModal.tsx +368 -0
- package/src/renderer/shared/components/Settings/GeneralTab.tsx +335 -81
- package/src/renderer/shared/components/Settings/MemoryTab.tsx +3 -3
- package/src/renderer/shared/components/Settings/PluginsTab.tsx +20 -12
- package/src/renderer/shared/components/Settings/ProfileTab.tsx +29 -5
- package/src/renderer/shared/components/Settings/SearchableModelCombobox.tsx +411 -0
- package/src/renderer/shared/components/Settings/ThemeTab.tsx +401 -158
- package/src/renderer/shared/components/SkillsView.tsx +41 -16
- package/src/renderer/shared/components/SlashSuggestions.tsx +3 -2
- package/src/renderer/shared/components/SourcesBlock.tsx +44 -32
- package/src/renderer/shared/components/StockCard.tsx +58 -24
- package/src/renderer/shared/components/SubagentDagView.tsx +4 -4
- package/src/renderer/shared/components/TerminalDock.tsx +241 -0
- package/src/renderer/shared/components/ThinkingBlock.tsx +14 -8
- package/src/renderer/shared/components/ToolSurfacePage.tsx +520 -0
- package/src/renderer/shared/components/UiFeatureCard.tsx +267 -0
- package/src/renderer/shared/components/UiGridCard.tsx +188 -0
- package/src/renderer/shared/components/UiMockupWidget.tsx +149 -0
- package/src/renderer/shared/components/VeoStudioPanel.tsx +13 -29
- package/src/renderer/shared/components/WeatherCard.tsx +3 -3
- package/src/renderer/shared/components/WorkspaceContextPopover.tsx +133 -0
- package/src/renderer/shared/components/WorkspaceSelector.tsx +149 -0
- package/src/renderer/shared/constants/config.ts +28 -3
- package/src/renderer/shared/constants/models.ts +189 -2
- package/src/renderer/shared/conversation/coordinator.test.ts +27 -0
- package/src/renderer/shared/conversation/coordinator.ts +82 -0
- package/src/renderer/shared/conversation/syncView.test.ts +46 -0
- package/src/renderer/shared/conversation/syncView.ts +43 -0
- package/src/renderer/shared/conversation/useConversationCoordinator.ts +106 -0
- package/src/renderer/shared/css/agent-observability.css +35 -3
- package/src/renderer/shared/css/auth-gate.css +2 -2
- package/src/renderer/shared/css/chat-ui-cards.css +495 -0
- package/src/renderer/shared/css/code-review.css +823 -0
- package/src/renderer/shared/css/code-sessions.css +452 -0
- package/src/renderer/shared/css/file-changes.css +132 -0
- package/src/renderer/shared/css/image-studio.css +16 -16
- package/src/renderer/shared/css/management-views.css +277 -27
- package/src/renderer/shared/css/model-selector.css +442 -42
- package/src/renderer/shared/css/settings/agents.css +1 -1
- package/src/renderer/shared/css/settings/automation.css +13 -13
- package/src/renderer/shared/css/settings/general.css +526 -5
- package/src/renderer/shared/css/settings/plugins.css +5 -5
- package/src/renderer/shared/css/settings/profile.css +331 -1
- package/src/renderer/shared/css/settings/theme.css +651 -3
- package/src/renderer/shared/css/veo-studio.css +16 -15
- package/src/renderer/shared/fonts.ts +19 -37
- package/src/renderer/shared/platform.test.ts +34 -0
- package/src/renderer/shared/platform.ts +173 -6
- package/src/renderer/shared/theme/themeManager.ts +144 -0
- package/src/renderer/shared/theme/themes.ts +116 -0
- package/src/renderer/shared/theme/tokens.css +318 -0
- package/src/renderer/shared/types.ts +82 -1
- package/src/renderer/shared/utils/agentActivity.ts +126 -5
- package/src/renderer/shared/utils/cardJson.test.ts +35 -0
- package/src/renderer/shared/utils/cardJson.ts +30 -0
- package/src/renderer/shared/utils/fileIcons.ts +1 -1
- package/src/renderer/shared/utils/markdown.tsx +329 -80
- package/src/renderer/shared/utils/markdown.webImages.test.tsx +40 -0
- package/src/renderer/shared/utils/providers.ts +8 -3
- package/src/renderer/shared/utils/screenCapture.ts +43 -0
- package/src/renderer/shared/utils/slashCommandProcessor.ts +4 -1
- package/src/renderer/shared/utils/ui.ts +4 -64
- package/src/renderer/src/App.tsx +7 -0
- package/src/renderer/src/components/BrowserShell.tsx +108 -0
- package/src/renderer/src/components/BrowserSuggestionsPopup.tsx +91 -0
- package/src/renderer/src/components/Live2DStage.tsx +32 -9
- package/src/renderer/src/components/MintDashboard.tsx +4 -2
- package/src/renderer/src/components/ModelPanel.tsx +2 -1
- package/src/renderer/src/components/PicturesLibrary.tsx +3 -2
- package/src/renderer/src/components/ScreenPicker.css +190 -0
- package/src/renderer/src/components/ScreenPicker.tsx +185 -540
- package/src/renderer/src/components/SettingsWindow.tsx +40 -2
- package/src/renderer/src/components/SpotlightWindow.tsx +1 -0
- package/src/renderer/src/components/WidgetWindow.tsx +27 -3
- package/src/renderer/src/components/WorkspacePanel.tsx +61 -43
- package/src/renderer/src/components/browser-shell.css +185 -0
- package/src/renderer/src/components/browser-suggestions-popup.css +55 -0
- package/src/renderer/src/components/liveTranslateFrames.test.ts +23 -0
- package/src/renderer/src/components/liveTranslateFrames.ts +34 -0
- package/src/renderer/src/css/app-shell.css +394 -113
- package/src/renderer/src/css/chat.css +1926 -380
- package/src/renderer/src/css/dashboard.css +11 -0
- package/src/renderer/src/css/desktop-tools.css +730 -0
- package/src/renderer/src/css/misc.css +19 -22
- package/src/renderer/src/css/model.css +49 -48
- package/src/renderer/src/css/pictures.css +144 -136
- package/src/renderer/src/css/settings/base.css +357 -123
- package/src/renderer/src/css/sidebar-workspace.css +930 -291
- package/src/renderer/src/css/spotlight.css +15 -26
- package/src/renderer/src/css/tool-surfaces.css +728 -0
- package/src/renderer/src/css/widget.css +35 -7
- package/src/renderer/src/env.d.ts +3 -0
- package/src/renderer/src/hooks/useProviderModels.ts +2 -9
- package/src/renderer/src/index.css +53 -46
- package/src/renderer/src/main.tsx +11 -0
- package/src/renderer/src/tauri.ts +201 -30
- package/src/renderer/src-web/App.tsx +40 -0
- package/src/renderer/src-web/components/MintDashboard.tsx +4 -2
- package/src/renderer/src-web/components/PicturesLibrary.tsx +3 -2
- package/src/renderer/src-web/components/PullToRefresh.tsx +107 -0
- package/src/renderer/src-web/components/SettingsWindow.tsx +28 -2
- package/src/renderer/src-web/css/app-shell.css +174 -96
- package/src/renderer/src-web/css/chat.css +1519 -316
- package/src/renderer/src-web/css/dashboard.css +11 -0
- package/src/renderer/src-web/css/misc.css +17 -17
- package/src/renderer/src-web/css/mobile.css +678 -0
- package/src/renderer/src-web/css/model.css +46 -46
- package/src/renderer/src-web/css/pictures.css +81 -34
- package/src/renderer/src-web/css/pull-to-refresh.css +54 -0
- package/src/renderer/src-web/css/settings/base.css +316 -100
- package/src/renderer/src-web/css/settings/mobile.css +320 -0
- package/src/renderer/src-web/css/sidebar-workspace.css +545 -100
- package/src/renderer/src-web/css/spotlight.css +9 -26
- package/src/renderer/src-web/css/widget.css +0 -5
- package/src/renderer/src-web/env.d.ts +3 -0
- package/src/renderer/src-web/hooks/useProviderModels.ts +2 -9
- package/src/renderer/src-web/index.css +53 -96
- package/src/renderer/src-web/main.tsx +11 -0
- package/src/renderer/src-web/tauri.ts +200 -30
- package/vite.config.web.ts +1 -0
- package/out/web/assets/MintDashboard-DWSqucgb.js +0 -57
- package/out/web/assets/SettingsWindow-DFM2aj5B.js +0 -2
- package/out/web/assets/chunk-CKBBP62Z-nr1uKPj9.js +0 -2
- package/out/web/assets/chunk-DSNCTWBM-Dtj8Rqsd.js +0 -2
- package/out/web/assets/chunk-DU6HZSFF-2tv5K1wT.js +0 -128
- package/out/web/assets/classDiagram-DTDB5LWJ-BdSFArgw.js +0 -1
- package/out/web/assets/classDiagram-v2-JRS7N3AN-BdSFArgw.js +0 -1
- package/out/web/assets/core-DImejIUG.js +0 -1
- package/out/web/assets/dist-js-BxuKEVWM.js +0 -1
- package/out/web/assets/event-BNl8Zahw.js +0 -1
- package/out/web/assets/fira-code-cyrillic-400-normal-UC0NFL4U.woff2 +0 -0
- package/out/web/assets/fira-code-cyrillic-400-normal-dc1q3VD7.woff +0 -0
- package/out/web/assets/fira-code-cyrillic-500-normal-Bu7VCL72.woff +0 -0
- package/out/web/assets/fira-code-cyrillic-500-normal-CX35h3Mg.woff2 +0 -0
- package/out/web/assets/fira-code-cyrillic-ext-400-normal-Buh61xzB.woff +0 -0
- package/out/web/assets/fira-code-cyrillic-ext-400-normal-txZ9Fk_1.woff2 +0 -0
- package/out/web/assets/fira-code-cyrillic-ext-500-normal-CYRspHgm.woff2 +0 -0
- package/out/web/assets/fira-code-cyrillic-ext-500-normal-CwtLmSFD.woff +0 -0
- package/out/web/assets/fira-code-greek-400-normal-B2Gh_Y8s.woff2 +0 -0
- package/out/web/assets/fira-code-greek-400-normal-DobhaxvF.woff +0 -0
- package/out/web/assets/fira-code-greek-500-normal-CVO0IRNt.woff2 +0 -0
- package/out/web/assets/fira-code-greek-500-normal-DEXIWiey.woff +0 -0
- package/out/web/assets/fira-code-greek-ext-400-normal-DR7mBgIM.woff2 +0 -0
- package/out/web/assets/fira-code-greek-ext-400-normal-DSPUheWg.woff +0 -0
- package/out/web/assets/fira-code-greek-ext-500-normal-BO3iq16n.woff2 +0 -0
- package/out/web/assets/fira-code-greek-ext-500-normal-CMiNLXER.woff +0 -0
- package/out/web/assets/fira-code-latin-ext-400-normal-DG73JjOf.woff +0 -0
- package/out/web/assets/fira-code-latin-ext-400-normal-KSMg0QLl.woff2 +0 -0
- package/out/web/assets/fira-code-latin-ext-500-normal-CaANqXjI.woff +0 -0
- package/out/web/assets/fira-code-latin-ext-500-normal-Crd9e_oI.woff2 +0 -0
- package/out/web/assets/flowDiagram-A5DVABFB-BpnHUSU7.js +0 -1
- package/out/web/assets/index-CVRg270z.css +0 -1
- package/out/web/assets/index-DxZQr9yD.js +0 -10
- package/out/web/assets/inter-cyrillic-400-normal-HOLc17fK.woff +0 -0
- package/out/web/assets/inter-cyrillic-400-normal-obahsSVq.woff2 +0 -0
- package/out/web/assets/inter-cyrillic-500-normal-BasfLYem.woff2 +0 -0
- package/out/web/assets/inter-cyrillic-500-normal-CxZf_p3X.woff +0 -0
- package/out/web/assets/inter-cyrillic-600-normal-4D_pXhcN.woff +0 -0
- package/out/web/assets/inter-cyrillic-600-normal-CWCymEST.woff2 +0 -0
- package/out/web/assets/inter-cyrillic-ext-400-normal-BQZuk6qB.woff2 +0 -0
- package/out/web/assets/inter-cyrillic-ext-400-normal-DQukG94-.woff +0 -0
- package/out/web/assets/inter-cyrillic-ext-500-normal-B0yAr1jD.woff2 +0 -0
- package/out/web/assets/inter-cyrillic-ext-500-normal-BmqWE9Dz.woff +0 -0
- package/out/web/assets/inter-cyrillic-ext-600-normal-Bcila6Z-.woff +0 -0
- package/out/web/assets/inter-cyrillic-ext-600-normal-Dfes3d0z.woff2 +0 -0
- package/out/web/assets/inter-greek-400-normal-B4URO6DV.woff2 +0 -0
- package/out/web/assets/inter-greek-400-normal-q2sYcFCs.woff +0 -0
- package/out/web/assets/inter-greek-500-normal-BIZE56-Y.woff2 +0 -0
- package/out/web/assets/inter-greek-500-normal-Xzm54t5V.woff +0 -0
- package/out/web/assets/inter-greek-600-normal-BZpKdvQh.woff +0 -0
- package/out/web/assets/inter-greek-600-normal-plRanbMR.woff2 +0 -0
- package/out/web/assets/inter-greek-ext-400-normal-DGGRlc-M.woff2 +0 -0
- package/out/web/assets/inter-greek-ext-400-normal-KugGGMne.woff +0 -0
- package/out/web/assets/inter-greek-ext-500-normal-2j5mBUwD.woff +0 -0
- package/out/web/assets/inter-greek-ext-500-normal-C4iEst2y.woff2 +0 -0
- package/out/web/assets/inter-greek-ext-600-normal-B8X0CLgF.woff +0 -0
- package/out/web/assets/inter-greek-ext-600-normal-DRtmH8MT.woff2 +0 -0
- package/out/web/assets/inter-latin-400-normal-C38fXH4l.woff2 +0 -0
- package/out/web/assets/inter-latin-400-normal-CyCys3Eg.woff +0 -0
- package/out/web/assets/inter-latin-500-normal-BL9OpVg8.woff +0 -0
- package/out/web/assets/inter-latin-500-normal-Cerq10X2.woff2 +0 -0
- package/out/web/assets/inter-latin-600-normal-CiBQ2DWP.woff +0 -0
- package/out/web/assets/inter-latin-600-normal-LgqL8muc.woff2 +0 -0
- package/out/web/assets/inter-latin-ext-400-normal-77YHD8bZ.woff +0 -0
- package/out/web/assets/inter-latin-ext-400-normal-C1nco2VV.woff2 +0 -0
- package/out/web/assets/inter-latin-ext-500-normal-BxGbmqWO.woff +0 -0
- package/out/web/assets/inter-latin-ext-500-normal-CV4jyFjo.woff2 +0 -0
- package/out/web/assets/inter-latin-ext-600-normal-CIVaiw4L.woff +0 -0
- package/out/web/assets/inter-latin-ext-600-normal-D2bJ5OIk.woff2 +0 -0
- package/out/web/assets/inter-vietnamese-400-normal-Bbgyi5SW.woff +0 -0
- package/out/web/assets/inter-vietnamese-400-normal-DMkecbls.woff2 +0 -0
- package/out/web/assets/inter-vietnamese-500-normal-DOriooB6.woff2 +0 -0
- package/out/web/assets/inter-vietnamese-500-normal-mJboJaSs.woff +0 -0
- package/out/web/assets/inter-vietnamese-600-normal-BuLX-rYi.woff +0 -0
- package/out/web/assets/inter-vietnamese-600-normal-Cc8MFFhd.woff2 +0 -0
- package/out/web/assets/kanit-latin-400-normal-BUlsQXH3.woff2 +0 -0
- package/out/web/assets/kanit-latin-400-normal-HVZWrfev.woff +0 -0
- package/out/web/assets/kanit-latin-500-normal-CX_4XcKi.woff2 +0 -0
- package/out/web/assets/kanit-latin-500-normal-qBha86O4.woff +0 -0
- package/out/web/assets/kanit-latin-600-normal-0lS78yAd.woff2 +0 -0
- package/out/web/assets/kanit-latin-600-normal-DlacpeTg.woff +0 -0
- package/out/web/assets/kanit-latin-ext-400-normal-B2xPf58u.woff2 +0 -0
- package/out/web/assets/kanit-latin-ext-400-normal-CHvNKHHD.woff +0 -0
- package/out/web/assets/kanit-latin-ext-500-normal-BFdWrG22.woff +0 -0
- package/out/web/assets/kanit-latin-ext-500-normal-EHs3suD6.woff2 +0 -0
- package/out/web/assets/kanit-latin-ext-600-normal-BBDzoLaj.woff +0 -0
- package/out/web/assets/kanit-latin-ext-600-normal-DAX3wtuq.woff2 +0 -0
- package/out/web/assets/kanit-thai-400-normal-D2nliXKa.woff +0 -0
- package/out/web/assets/kanit-thai-400-normal-D80Pglro.woff2 +0 -0
- package/out/web/assets/kanit-thai-500-normal-BB8gri04.woff2 +0 -0
- package/out/web/assets/kanit-thai-500-normal-Iy_w0a80.woff +0 -0
- package/out/web/assets/kanit-thai-600-normal-Bj6oiaDc.woff2 +0 -0
- package/out/web/assets/kanit-thai-600-normal-wbTlPO7I.woff +0 -0
- package/out/web/assets/kanit-vietnamese-400-normal-DRI8YWyb.woff2 +0 -0
- package/out/web/assets/kanit-vietnamese-400-normal-dow6Bnto.woff +0 -0
- package/out/web/assets/kanit-vietnamese-500-normal-BzTrpCM3.woff2 +0 -0
- package/out/web/assets/kanit-vietnamese-500-normal-T1ndT7MF.woff +0 -0
- package/out/web/assets/kanit-vietnamese-600-normal-Bi7fw3I4.woff2 +0 -0
- package/out/web/assets/kanit-vietnamese-600-normal-DXCRAa_8.woff +0 -0
- package/out/web/assets/mali-latin-400-normal-ByPcZ8Gx.woff +0 -0
- package/out/web/assets/mali-latin-400-normal-Cuc6Ykl8.woff2 +0 -0
- package/out/web/assets/mali-latin-500-normal-B01M-LP6.woff2 +0 -0
- package/out/web/assets/mali-latin-500-normal-Thgqw_9f.woff +0 -0
- package/out/web/assets/mali-latin-600-normal-B9TiUNpT.woff2 +0 -0
- package/out/web/assets/mali-latin-600-normal-CycpQCwU.woff +0 -0
- package/out/web/assets/mali-latin-ext-400-normal-DUVdJQO4.woff +0 -0
- package/out/web/assets/mali-latin-ext-400-normal-iCG1ALuJ.woff2 +0 -0
- package/out/web/assets/mali-latin-ext-500-normal-BfJE4UMZ.woff2 +0 -0
- package/out/web/assets/mali-latin-ext-500-normal-FoLEyOKS.woff +0 -0
- package/out/web/assets/mali-latin-ext-600-normal-BTvIfiCp.woff2 +0 -0
- package/out/web/assets/mali-latin-ext-600-normal-DAQcLVmD.woff +0 -0
- package/out/web/assets/mali-thai-400-normal-BO7A3bLZ.woff2 +0 -0
- package/out/web/assets/mali-thai-400-normal-CX9VrjTn.woff +0 -0
- package/out/web/assets/mali-thai-500-normal-Cph2qha9.woff +0 -0
- package/out/web/assets/mali-thai-500-normal-D89rMT77.woff2 +0 -0
- package/out/web/assets/mali-thai-600-normal-DPgXT6rZ.woff +0 -0
- package/out/web/assets/mali-thai-600-normal-DlTx3OsB.woff2 +0 -0
- package/out/web/assets/mali-vietnamese-400-normal-DUKxzXaz.woff2 +0 -0
- package/out/web/assets/mali-vietnamese-400-normal-gFDLvsOK.woff +0 -0
- package/out/web/assets/mali-vietnamese-500-normal--OY07q2c.woff +0 -0
- package/out/web/assets/mali-vietnamese-500-normal-KDrNRwfW.woff2 +0 -0
- package/out/web/assets/mali-vietnamese-600-normal-CtTMUU7T.woff +0 -0
- package/out/web/assets/mali-vietnamese-600-normal-DFlJr66u.woff2 +0 -0
- package/out/web/assets/mermaid.core-DYGGlqOf.js +0 -11
- package/out/web/assets/mitr-latin-400-normal-Cb18vPmZ.woff +0 -0
- package/out/web/assets/mitr-latin-400-normal-CwbkLQ4a.woff2 +0 -0
- package/out/web/assets/mitr-latin-500-normal-B4JOhzAi.woff +0 -0
- package/out/web/assets/mitr-latin-500-normal-BmClOow2.woff2 +0 -0
- package/out/web/assets/mitr-latin-ext-400-normal-B3CPG7Yo.woff2 +0 -0
- package/out/web/assets/mitr-latin-ext-400-normal-DTx65hiC.woff +0 -0
- package/out/web/assets/mitr-latin-ext-500-normal-B_Diajz1.woff2 +0 -0
- package/out/web/assets/mitr-latin-ext-500-normal-DYOsVaVT.woff +0 -0
- package/out/web/assets/mitr-thai-400-normal-CS4Do6aM.woff +0 -0
- package/out/web/assets/mitr-thai-400-normal-CXWaAdVj.woff2 +0 -0
- package/out/web/assets/mitr-thai-500-normal-CVdBrEVH.woff2 +0 -0
- package/out/web/assets/mitr-thai-500-normal-CW_B5D-i.woff +0 -0
- package/out/web/assets/mitr-vietnamese-400-normal-CPMGWyoC.woff2 +0 -0
- package/out/web/assets/mitr-vietnamese-400-normal-Z6XhIpdY.woff +0 -0
- package/out/web/assets/mitr-vietnamese-500-normal-CDrv0585.woff2 +0 -0
- package/out/web/assets/mitr-vietnamese-500-normal-CMQWyq-Z.woff +0 -0
- package/out/web/assets/noto-sans-thai-latin-400-normal-BaWBrqFP.woff2 +0 -0
- package/out/web/assets/noto-sans-thai-latin-400-normal-Dh_FJjOB.woff +0 -0
- package/out/web/assets/noto-sans-thai-latin-500-normal-BC04jsmm.woff +0 -0
- package/out/web/assets/noto-sans-thai-latin-500-normal-fyBKClF1.woff2 +0 -0
- package/out/web/assets/noto-sans-thai-latin-600-normal-CemcjnVR.woff2 +0 -0
- package/out/web/assets/noto-sans-thai-latin-600-normal-Dbc-dNO6.woff +0 -0
- package/out/web/assets/noto-sans-thai-latin-ext-400-normal-B-1H0YkH.woff +0 -0
- package/out/web/assets/noto-sans-thai-latin-ext-400-normal-nBP59pVw.woff2 +0 -0
- package/out/web/assets/noto-sans-thai-latin-ext-500-normal-B-ZWb8SZ.woff2 +0 -0
- package/out/web/assets/noto-sans-thai-latin-ext-500-normal-CrEHO7C8.woff +0 -0
- package/out/web/assets/noto-sans-thai-latin-ext-600-normal-PkMZo0xa.woff +0 -0
- package/out/web/assets/noto-sans-thai-latin-ext-600-normal-maHHBsez.woff2 +0 -0
- package/out/web/assets/noto-sans-thai-thai-400-normal-BEOmKAI1.woff2 +0 -0
- package/out/web/assets/noto-sans-thai-thai-400-normal-Dxb_unuU.woff +0 -0
- package/out/web/assets/noto-sans-thai-thai-500-normal-BOGXO2tw.woff +0 -0
- package/out/web/assets/noto-sans-thai-thai-500-normal-CU_X86GQ.woff2 +0 -0
- package/out/web/assets/noto-sans-thai-thai-600-normal-CmgB8_JK.woff +0 -0
- package/out/web/assets/noto-sans-thai-thai-600-normal-Cs73sVjl.woff2 +0 -0
- package/out/web/assets/oauthManager-DNiwM8Rn.js +0 -2
- package/out/web/assets/oauthManager-DuamS1Av.css +0 -1
- package/out/web/assets/outfit-latin-300-normal-AWLfuCom.woff +0 -0
- package/out/web/assets/outfit-latin-300-normal-CRYTwY6m.woff2 +0 -0
- package/out/web/assets/outfit-latin-400-normal-BGsTXAXT.woff2 +0 -0
- package/out/web/assets/outfit-latin-400-normal-DMwTpYkH.woff +0 -0
- package/out/web/assets/outfit-latin-500-normal-ClnHRwRh.woff +0 -0
- package/out/web/assets/outfit-latin-500-normal-DKnIMDSk.woff2 +0 -0
- package/out/web/assets/outfit-latin-600-normal-B7SfZ07L.woff2 +0 -0
- package/out/web/assets/outfit-latin-600-normal-BEfTtDA7.woff +0 -0
- package/out/web/assets/outfit-latin-ext-300-normal-BYS6Dpvq.woff2 +0 -0
- package/out/web/assets/outfit-latin-ext-300-normal-CMIMshEd.woff +0 -0
- package/out/web/assets/outfit-latin-ext-400-normal-5tcqmc2S.woff2 +0 -0
- package/out/web/assets/outfit-latin-ext-400-normal-DHm7mdGe.woff +0 -0
- package/out/web/assets/outfit-latin-ext-500-normal-DrCvqoFD.woff +0 -0
- package/out/web/assets/outfit-latin-ext-500-normal-zeox_O30.woff2 +0 -0
- package/out/web/assets/outfit-latin-ext-600-normal-B85nYjL1.woff2 +0 -0
- package/out/web/assets/outfit-latin-ext-600-normal-CWJcPgd7.woff +0 -0
- package/out/web/assets/preload-helper-D0uHx7FM.js +0 -1
- package/out/web/assets/prompt-latin-ext-400-normal-1pHbN9uy.woff +0 -0
- package/out/web/assets/prompt-latin-ext-400-normal-DdSafGZ9.woff2 +0 -0
- package/out/web/assets/prompt-latin-ext-500-normal--EZ1um7s.woff2 +0 -0
- package/out/web/assets/prompt-latin-ext-500-normal-D-lI1EVT.woff +0 -0
- package/out/web/assets/prompt-latin-ext-600-normal-C8b50x67.woff +0 -0
- package/out/web/assets/prompt-latin-ext-600-normal-Cg9L7iJU.woff2 +0 -0
- package/out/web/assets/prompt-vietnamese-400-normal-BCPzsgPT.woff2 +0 -0
- package/out/web/assets/prompt-vietnamese-400-normal-D4pLyeNK.woff +0 -0
- package/out/web/assets/prompt-vietnamese-500-normal-DmzxmPwa.woff2 +0 -0
- package/out/web/assets/prompt-vietnamese-500-normal-w_sS_j2F.woff +0 -0
- package/out/web/assets/prompt-vietnamese-600-normal-1dyohtNh.woff +0 -0
- package/out/web/assets/prompt-vietnamese-600-normal-7QWjJBsF.woff2 +0 -0
- package/out/web/assets/sarabun-latin-400-normal-DmguIS-7.woff +0 -0
- package/out/web/assets/sarabun-latin-400-normal-URPBxl-K.woff2 +0 -0
- package/out/web/assets/sarabun-latin-500-normal-BjUTcdxu.woff2 +0 -0
- package/out/web/assets/sarabun-latin-500-normal-CJexTAnl.woff +0 -0
- package/out/web/assets/sarabun-latin-600-normal-9FonlkKx.woff +0 -0
- package/out/web/assets/sarabun-latin-600-normal-DMD3TROr.woff2 +0 -0
- package/out/web/assets/sarabun-latin-ext-400-normal-BbP7GpLL.woff2 +0 -0
- package/out/web/assets/sarabun-latin-ext-400-normal-BsmTn0SS.woff +0 -0
- package/out/web/assets/sarabun-latin-ext-500-normal-Cot16Bd2.woff +0 -0
- package/out/web/assets/sarabun-latin-ext-500-normal-DE1LysqI.woff2 +0 -0
- package/out/web/assets/sarabun-latin-ext-600-normal-0tXu9x_i.woff +0 -0
- package/out/web/assets/sarabun-latin-ext-600-normal-BRxjKUQ6.woff2 +0 -0
- package/out/web/assets/sarabun-thai-400-normal-C2DaJlKK.woff2 +0 -0
- package/out/web/assets/sarabun-thai-400-normal-CH-UbWgg.woff +0 -0
- package/out/web/assets/sarabun-thai-500-normal-BVssjame.woff2 +0 -0
- package/out/web/assets/sarabun-thai-500-normal-C3iDLEzi.woff +0 -0
- package/out/web/assets/sarabun-thai-600-normal-3dIAQ-_s.woff2 +0 -0
- package/out/web/assets/sarabun-thai-600-normal-DWKeTe6a.woff +0 -0
- package/out/web/assets/sarabun-vietnamese-400-normal-DPfkSCMy.woff +0 -0
- package/out/web/assets/sarabun-vietnamese-400-normal-igdrzAGY.woff2 +0 -0
- package/out/web/assets/sarabun-vietnamese-500-normal-CpRVvGRU.woff +0 -0
- package/out/web/assets/sarabun-vietnamese-500-normal-Dpe7Br9m.woff2 +0 -0
- package/out/web/assets/sarabun-vietnamese-600-normal-BMbOgAW-.woff +0 -0
- package/out/web/assets/sarabun-vietnamese-600-normal-DkxrOlLB.woff2 +0 -0
- package/out/web/assets/stateDiagram-v2-4QOOHH4V-s6P9g2_b.js +0 -1
- package/out/web/assets/swimlanesDiagram-VK2B7HYN-CV9fOLrV.js +0 -8
- package/out/web/assets/tauri-CNrHQ2Gb.js +0 -3
- package/out/web/assets/window-DkIhgI7B.js +0 -1
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
.veo-studio-header-title svg {
|
|
61
|
-
color: var(--
|
|
61
|
+
color: var(--interactive-fg);
|
|
62
62
|
flex-shrink: 0;
|
|
63
63
|
}
|
|
64
64
|
|
|
@@ -69,11 +69,11 @@
|
|
|
69
69
|
border-radius: var(--radius-full);
|
|
70
70
|
background: color-mix(in srgb, var(--accent) 15%, transparent);
|
|
71
71
|
border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
|
|
72
|
-
color: var(--
|
|
72
|
+
color: var(--interactive-fg-hover);
|
|
73
73
|
font-size: 0.68rem;
|
|
74
74
|
font-weight: 600;
|
|
75
75
|
letter-spacing: 0.03em;
|
|
76
|
-
text-transform:
|
|
76
|
+
text-transform: none;
|
|
77
77
|
margin-left: 4px;
|
|
78
78
|
}
|
|
79
79
|
|
|
@@ -141,7 +141,7 @@
|
|
|
141
141
|
font-size: 0.76rem;
|
|
142
142
|
font-weight: 500;
|
|
143
143
|
letter-spacing: 0.02em;
|
|
144
|
-
text-transform:
|
|
144
|
+
text-transform: none;
|
|
145
145
|
}
|
|
146
146
|
|
|
147
147
|
.veo-studio-label-hint {
|
|
@@ -309,7 +309,7 @@
|
|
|
309
309
|
border-radius: var(--radius-lg);
|
|
310
310
|
background: color-mix(in srgb, var(--accent) 15%, transparent);
|
|
311
311
|
border: 1px solid var(--accent);
|
|
312
|
-
color: var(--
|
|
312
|
+
color: var(--interactive-fg);
|
|
313
313
|
font-size: 0.78rem;
|
|
314
314
|
font-weight: 600;
|
|
315
315
|
cursor: pointer;
|
|
@@ -352,7 +352,7 @@
|
|
|
352
352
|
|
|
353
353
|
.veo-mode-btn.is-active {
|
|
354
354
|
background: var(--panel-raised, #343436);
|
|
355
|
-
color: var(--
|
|
355
|
+
color: var(--interactive-fg);
|
|
356
356
|
font-weight: 600;
|
|
357
357
|
box-shadow: 0 1px 4px rgba(0,0,0,0.4);
|
|
358
358
|
}
|
|
@@ -421,7 +421,7 @@
|
|
|
421
421
|
border-radius: var(--radius-lg);
|
|
422
422
|
background: var(--accent);
|
|
423
423
|
border: 1px solid var(--accent);
|
|
424
|
-
color:
|
|
424
|
+
color: var(--text-on-accent);
|
|
425
425
|
font-size: 0.90rem;
|
|
426
426
|
font-weight: 600;
|
|
427
427
|
cursor: pointer;
|
|
@@ -647,12 +647,13 @@
|
|
|
647
647
|
.veo-studio-action-btn--primary {
|
|
648
648
|
background: var(--accent);
|
|
649
649
|
border-color: var(--accent);
|
|
650
|
-
color:
|
|
650
|
+
color: var(--text-on-accent);
|
|
651
651
|
}
|
|
652
652
|
|
|
653
653
|
.veo-studio-action-btn--primary:hover {
|
|
654
654
|
background: var(--accent-hover);
|
|
655
655
|
border-color: var(--accent-hover);
|
|
656
|
+
color: var(--text-on-accent);
|
|
656
657
|
}
|
|
657
658
|
|
|
658
659
|
/* ── Meta info ───────────────────────────────────────────── */
|
|
@@ -701,7 +702,7 @@
|
|
|
701
702
|
color: var(--text-soft);
|
|
702
703
|
font-size: 0.78rem;
|
|
703
704
|
font-weight: 600;
|
|
704
|
-
text-transform:
|
|
705
|
+
text-transform: none;
|
|
705
706
|
letter-spacing: 0.04em;
|
|
706
707
|
}
|
|
707
708
|
|
|
@@ -714,7 +715,7 @@
|
|
|
714
715
|
padding: 0 5px;
|
|
715
716
|
border-radius: var(--radius-full);
|
|
716
717
|
background: color-mix(in srgb, var(--accent) 15%, transparent);
|
|
717
|
-
color: var(--
|
|
718
|
+
color: var(--interactive-fg-hover);
|
|
718
719
|
font-size: 0.72rem;
|
|
719
720
|
font-weight: 700;
|
|
720
721
|
}
|
|
@@ -784,7 +785,7 @@
|
|
|
784
785
|
|
|
785
786
|
.veo-studio-tab.is-active {
|
|
786
787
|
background: var(--accent-subtle, rgba(100,200,150,0.12));
|
|
787
|
-
color: var(--
|
|
788
|
+
color: var(--interactive-fg);
|
|
788
789
|
border-color: var(--accent-muted, rgba(100,200,150,0.25));
|
|
789
790
|
}
|
|
790
791
|
|
|
@@ -871,7 +872,7 @@
|
|
|
871
872
|
gap: 7px;
|
|
872
873
|
font-size: 0.82rem;
|
|
873
874
|
font-weight: 600;
|
|
874
|
-
color: var(--
|
|
875
|
+
color: var(--interactive-fg);
|
|
875
876
|
margin-bottom: 4px;
|
|
876
877
|
}
|
|
877
878
|
|
|
@@ -943,7 +944,7 @@
|
|
|
943
944
|
}
|
|
944
945
|
|
|
945
946
|
.veo-editor-log-entry.is-success {
|
|
946
|
-
color: var(--
|
|
947
|
+
color: var(--interactive-fg);
|
|
947
948
|
}
|
|
948
949
|
|
|
949
950
|
.veo-editor-log-entry.is-error {
|
|
@@ -994,7 +995,7 @@
|
|
|
994
995
|
}
|
|
995
996
|
|
|
996
997
|
.veo-studio-fablemint-notice p a {
|
|
997
|
-
color: var(--
|
|
998
|
+
color: var(--interactive-fg);
|
|
998
999
|
}
|
|
999
1000
|
|
|
1000
1001
|
.veo-studio-fablemint-notice p code,
|
|
@@ -1040,7 +1041,7 @@
|
|
|
1040
1041
|
height: 22px;
|
|
1041
1042
|
border-radius: 50%;
|
|
1042
1043
|
background: var(--accent);
|
|
1043
|
-
color:
|
|
1044
|
+
color: var(--text-on-accent);
|
|
1044
1045
|
font-size: 0.75rem;
|
|
1045
1046
|
font-weight: 700;
|
|
1046
1047
|
}
|
|
@@ -1,37 +1,19 @@
|
|
|
1
|
-
//
|
|
2
|
-
//
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import '@fontsource/
|
|
6
|
-
import '@fontsource/
|
|
7
|
-
import '@fontsource/
|
|
8
|
-
|
|
9
|
-
import '@fontsource/
|
|
10
|
-
import '@fontsource/
|
|
11
|
-
import '@fontsource/
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
import '@fontsource/
|
|
15
|
-
import '@fontsource/
|
|
16
|
-
|
|
17
|
-
import '@fontsource/
|
|
18
|
-
import '@fontsource/
|
|
19
|
-
import '@fontsource/
|
|
20
|
-
|
|
21
|
-
import '@fontsource/kanit/400.css';
|
|
22
|
-
import '@fontsource/kanit/500.css';
|
|
23
|
-
import '@fontsource/kanit/600.css';
|
|
24
|
-
|
|
25
|
-
import '@fontsource/mitr/400.css';
|
|
26
|
-
import '@fontsource/mitr/500.css';
|
|
27
|
-
|
|
28
|
-
import '@fontsource/noto-sans-thai/400.css';
|
|
29
|
-
import '@fontsource/noto-sans-thai/500.css';
|
|
30
|
-
import '@fontsource/noto-sans-thai/600.css';
|
|
31
|
-
|
|
32
|
-
import '@fontsource/inter/400.css';
|
|
33
|
-
import '@fontsource/inter/500.css';
|
|
34
|
-
import '@fontsource/inter/600.css';
|
|
35
|
-
|
|
36
|
-
import '@fontsource/fira-code/400.css';
|
|
37
|
-
import '@fontsource/fira-code/500.css';
|
|
1
|
+
// Keep the default UI and code faces self-hosted for offline desktop use.
|
|
2
|
+
// Import only the families and weights the initial UI uses; alternative font
|
|
3
|
+
// selections fall back to the operating system instead of inflating every
|
|
4
|
+
// launch with complete Unicode coverage we do not render by default.
|
|
5
|
+
import '@fontsource/prompt/latin-400.css';
|
|
6
|
+
import '@fontsource/prompt/thai-400.css';
|
|
7
|
+
import '@fontsource/prompt/latin-500.css';
|
|
8
|
+
import '@fontsource/prompt/thai-500.css';
|
|
9
|
+
import '@fontsource/prompt/latin-600.css';
|
|
10
|
+
import '@fontsource/prompt/thai-600.css';
|
|
11
|
+
import '@fontsource/prompt/latin-700.css';
|
|
12
|
+
import '@fontsource/prompt/thai-700.css';
|
|
13
|
+
|
|
14
|
+
import '@fontsource/fira-code/latin-400.css';
|
|
15
|
+
import '@fontsource/fira-code/symbols2-400.css';
|
|
16
|
+
import '@fontsource/fira-code/latin-500.css';
|
|
17
|
+
import '@fontsource/fira-code/symbols2-500.css';
|
|
18
|
+
import '@fontsource/fira-code/latin-600.css';
|
|
19
|
+
import '@fontsource/fira-code/symbols2-600.css';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { describe, expect, it, vi } from 'vitest'
|
|
2
|
+
import { authPlatform, installRendererPlatform, installWorkspacePlatform, workspacePlatform, type WorkspacePlatform } from './platform'
|
|
3
|
+
import * as desktopAdapter from '../src/tauri'
|
|
4
|
+
import * as webAdapter from '../src-web/tauri'
|
|
5
|
+
|
|
6
|
+
describe('renderer platform interfaces', () => {
|
|
7
|
+
it('accepts both complete runtime adapters', () => {
|
|
8
|
+
expect(() => installRendererPlatform(desktopAdapter)).not.toThrow()
|
|
9
|
+
expect(() => installRendererPlatform(webAdapter)).not.toThrow()
|
|
10
|
+
})
|
|
11
|
+
it('routes grouped capabilities through the installed runtime adapter', async () => {
|
|
12
|
+
const authGetCurrentUser = vi.fn(async () => ({ id: '1', name: 'Mint', email: null, image: null }))
|
|
13
|
+
installRendererPlatform(new Proxy({ APP_ICON_PATH: './icon.png', authGetCurrentUser }, {
|
|
14
|
+
get: (target, property) => property in target ? target[property as keyof typeof target] : vi.fn(),
|
|
15
|
+
}) as any)
|
|
16
|
+
await expect(authPlatform.authGetCurrentUser()).resolves.toMatchObject({ id: '1', name: 'Mint' })
|
|
17
|
+
expect(authGetCurrentUser).toHaveBeenCalledOnce()
|
|
18
|
+
})
|
|
19
|
+
|
|
20
|
+
it('routes workspace operations as one request and returns a snapshot', async () => {
|
|
21
|
+
const operation = { root: '/workspace', relativePath: 'src/main.ts', revision: 7 }
|
|
22
|
+
const snapshot = { path: '/workspace', revision: 8, tree: { name: 'workspace', path: '.', kind: 'directory', children: [] },
|
|
23
|
+
git: { isRepository: false, currentBranch: null, detachedHead: null, branches: [], remoteBranches: [], isDirty: false } }
|
|
24
|
+
const createWorkspaceFile = vi.fn(async () => snapshot)
|
|
25
|
+
const adapter = {
|
|
26
|
+
getWorkspaceSnapshot: vi.fn(), getWorkspaceGitDiff: vi.fn(), getGitBranchInfo: vi.fn(), switchGitBranch: vi.fn(),
|
|
27
|
+
createGitBranch: vi.fn(), checkoutRemoteGitBranch: vi.fn(), getGitGraph: vi.fn(),
|
|
28
|
+
createWorkspaceFile, createWorkspaceFolder: vi.fn(), deleteWorkspaceItem: vi.fn(),
|
|
29
|
+
} satisfies WorkspacePlatform
|
|
30
|
+
installWorkspacePlatform(adapter)
|
|
31
|
+
await expect(workspacePlatform.createWorkspaceFile(operation)).resolves.toEqual(snapshot)
|
|
32
|
+
expect(createWorkspaceFile).toHaveBeenCalledWith(operation)
|
|
33
|
+
})
|
|
34
|
+
})
|
|
@@ -8,12 +8,13 @@ import type {
|
|
|
8
8
|
ChatResponse,
|
|
9
9
|
TtsUrl,
|
|
10
10
|
InteractionMemory,
|
|
11
|
+
ConversationSnapshot,
|
|
12
|
+
ConversationChanges,
|
|
11
13
|
ChatSession,
|
|
12
14
|
PictureEntry,
|
|
13
15
|
ImageGenRequest,
|
|
14
16
|
ImageGenProviders,
|
|
15
17
|
ImageGenResponse,
|
|
16
|
-
WorkspaceTreeEntry,
|
|
17
18
|
CodeEdit,
|
|
18
19
|
CodeEditProposal,
|
|
19
20
|
DetectedTools,
|
|
@@ -23,6 +24,9 @@ import type {
|
|
|
23
24
|
AgentProgress,
|
|
24
25
|
AuthUser,
|
|
25
26
|
GitCheckpoint,
|
|
27
|
+
GitBranchInfo,
|
|
28
|
+
GitBranchChangeOutcome,
|
|
29
|
+
WorkspaceOperation,
|
|
26
30
|
} from './types'
|
|
27
31
|
|
|
28
32
|
export function getLocalApiBase(): string {
|
|
@@ -93,10 +97,16 @@ export interface MintPlatformApi {
|
|
|
93
97
|
workspacePath?: string | null,
|
|
94
98
|
chatId?: string | null,
|
|
95
99
|
agentId?: string | null,
|
|
100
|
+
planMode?: boolean,
|
|
101
|
+
pinnedMcpServer?: string | null,
|
|
102
|
+
onApprovalRequested?: (payload: { token: string; approval: any }) => void,
|
|
103
|
+
onTurnStarted?: (interactionId: number) => void,
|
|
96
104
|
): Promise<ChatResponse>
|
|
97
105
|
getTtsUrls(text: string): Promise<TtsUrl[]>
|
|
98
106
|
cancelChatMessage(chatId: string): Promise<void>
|
|
99
|
-
getRecentInteractions(limit?: number, chatId?: string | null): Promise<InteractionMemory[]>
|
|
107
|
+
getRecentInteractions(limit?: number, chatId?: string | null, workspacePath?: string | null): Promise<InteractionMemory[]>
|
|
108
|
+
getConversationSnapshot(chatId: string, beforeId?: number | null, limit?: number): Promise<ConversationSnapshot>
|
|
109
|
+
getConversationChanges(chatId: string, after: number, limit?: number): Promise<ConversationChanges>
|
|
100
110
|
saveSystemInteraction(
|
|
101
111
|
chatId: string,
|
|
102
112
|
userText: string,
|
|
@@ -107,6 +117,7 @@ export interface MintPlatformApi {
|
|
|
107
117
|
|
|
108
118
|
saveInteractionAgentActivity(interactionId: number, progress: any[]): Promise<void>
|
|
109
119
|
listChatSessions(): Promise<ChatSession[]>
|
|
120
|
+
updateChatSessionWorkspace(chatId: string, workspacePath: string | null): Promise<void>
|
|
110
121
|
deleteChatSession(chatId: string): Promise<number>
|
|
111
122
|
renameChatSession(chatId: string, newTitle: string): Promise<number>
|
|
112
123
|
getProfileValue(key: string): Promise<string>
|
|
@@ -123,10 +134,16 @@ export interface MintPlatformApi {
|
|
|
123
134
|
generateImages(req: ImageGenRequest): Promise<ImageGenResponse>
|
|
124
135
|
getImageGenProviders(): Promise<ImageGenProviders>
|
|
125
136
|
setDefaultImageProvider(provider: string): Promise<boolean>
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
137
|
+
getWorkspaceSnapshot(operation: WorkspaceOperation): Promise<import('./types').WorkspaceSnapshot>
|
|
138
|
+
getWorkspaceGitDiff(workspacePath: string): Promise<import('./types').FileChange[]>
|
|
139
|
+
getGitBranchInfo(workspacePath: string): Promise<GitBranchInfo>
|
|
140
|
+
switchGitBranch(workspacePath: string, branch: string, confirmedDirtyWorkspace?: boolean): Promise<GitBranchChangeOutcome>
|
|
141
|
+
createGitBranch(workspacePath: string, branch: string, confirmedDirtyWorkspace?: boolean): Promise<GitBranchChangeOutcome>
|
|
142
|
+
checkoutRemoteGitBranch(workspacePath: string, remoteBranch: string, confirmedDirtyWorkspace?: boolean): Promise<GitBranchChangeOutcome>
|
|
143
|
+
getGitGraph(workspacePath: string): Promise<string[]>
|
|
144
|
+
createWorkspaceFile(operation: WorkspaceOperation): Promise<import('./types').WorkspaceSnapshot>
|
|
145
|
+
createWorkspaceFolder(operation: WorkspaceOperation): Promise<import('./types').WorkspaceSnapshot>
|
|
146
|
+
deleteWorkspaceItem(operation: WorkspaceOperation): Promise<import('./types').WorkspaceSnapshot>
|
|
130
147
|
selectWorkspaceDirectory(): Promise<string | null>
|
|
131
148
|
selectLinkedFolderPath(): Promise<string | null>
|
|
132
149
|
submitToolApproval(token: string, approved: boolean, answer?: string): Promise<void>
|
|
@@ -143,3 +160,153 @@ export interface MintPlatformApi {
|
|
|
143
160
|
headers?: Record<string, string>,
|
|
144
161
|
): Promise<{ ok: boolean; error?: string; server_info?: any; tools_count?: number; tools?: any[] }>
|
|
145
162
|
}
|
|
163
|
+
|
|
164
|
+
/** The small workspace interface shared renderer modules cross. */
|
|
165
|
+
export type WorkspacePlatform = Pick<
|
|
166
|
+
MintPlatformApi,
|
|
167
|
+
| 'getWorkspaceSnapshot'
|
|
168
|
+
| 'getWorkspaceGitDiff'
|
|
169
|
+
| 'getGitBranchInfo'
|
|
170
|
+
| 'switchGitBranch'
|
|
171
|
+
| 'createGitBranch'
|
|
172
|
+
| 'checkoutRemoteGitBranch'
|
|
173
|
+
| 'getGitGraph'
|
|
174
|
+
| 'createWorkspaceFile'
|
|
175
|
+
| 'createWorkspaceFolder'
|
|
176
|
+
| 'deleteWorkspaceItem'
|
|
177
|
+
>
|
|
178
|
+
|
|
179
|
+
let workspaceAdapter: WorkspacePlatform | undefined
|
|
180
|
+
type RuntimeOperation = (...args: any[]) => any
|
|
181
|
+
export type RendererAdapter = MintPlatformApi & {
|
|
182
|
+
APP_ICON_PATH: string
|
|
183
|
+
resolveAvatarUrl: RuntimeOperation
|
|
184
|
+
fetchProviderModels: RuntimeOperation
|
|
185
|
+
fetchImageProviderModels: RuntimeOperation
|
|
186
|
+
fetchVideoProviderModels: RuntimeOperation
|
|
187
|
+
reauthMcpServer: RuntimeOperation
|
|
188
|
+
listMcpServerTools: RuntimeOperation
|
|
189
|
+
listCronJobs: RuntimeOperation
|
|
190
|
+
addCronJob: RuntimeOperation
|
|
191
|
+
removeCronJob: RuntimeOperation
|
|
192
|
+
setCronJobEnabled: RuntimeOperation
|
|
193
|
+
listLinkedFolders: RuntimeOperation
|
|
194
|
+
addLinkedFolder: RuntimeOperation
|
|
195
|
+
removeLinkedFolder: RuntimeOperation
|
|
196
|
+
linkedFolderStatus: RuntimeOperation
|
|
197
|
+
refreshLinkedFolder: RuntimeOperation
|
|
198
|
+
listLinkedFolderNotes: RuntimeOperation
|
|
199
|
+
readLinkedFolderNote: RuntimeOperation
|
|
200
|
+
openLinkedFolderNote: RuntimeOperation
|
|
201
|
+
startGeminiLiveSession: RuntimeOperation
|
|
202
|
+
sendGeminiLiveAudioChunk: RuntimeOperation
|
|
203
|
+
stopGeminiLiveSession: RuntimeOperation
|
|
204
|
+
generateVideo: RuntimeOperation
|
|
205
|
+
getVideoGenProviders: RuntimeOperation
|
|
206
|
+
convertFileSrc: RuntimeOperation
|
|
207
|
+
setActiveModel: RuntimeOperation
|
|
208
|
+
selectWorkspaceDirectory: RuntimeOperation
|
|
209
|
+
selectLinkedFolderPath: RuntimeOperation
|
|
210
|
+
isTauriRuntime: RuntimeOperation
|
|
211
|
+
}
|
|
212
|
+
let rendererAdapter: RendererAdapter | undefined
|
|
213
|
+
|
|
214
|
+
/** Install the runtime implementation used by shared renderer modules. */
|
|
215
|
+
export function installRendererPlatform(adapter: RendererAdapter): void {
|
|
216
|
+
rendererAdapter = adapter
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
function requireRendererPlatform(): RendererAdapter {
|
|
220
|
+
if (!rendererAdapter) throw new Error('Renderer platform adapter has not been installed.')
|
|
221
|
+
return rendererAdapter
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
function operation<Key extends keyof RendererAdapter>(name: Key): RendererAdapter[Key] {
|
|
225
|
+
return ((...args: any[]) => {
|
|
226
|
+
const implementation = requireRendererPlatform()[name]
|
|
227
|
+
if (typeof implementation !== 'function') throw new Error(`Platform operation is unavailable: ${name}`)
|
|
228
|
+
return (implementation as RuntimeOperation)(...args)
|
|
229
|
+
}) as RendererAdapter[Key]
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
/** Authentication and profile seam. */
|
|
233
|
+
export const authPlatform = {
|
|
234
|
+
authRegister: operation('authRegister'), authLogin: operation('authLogin'),
|
|
235
|
+
authLogout: operation('authLogout'), authGetCurrentUser: operation('authGetCurrentUser'),
|
|
236
|
+
authUploadAvatar: operation('authUploadAvatar'), resolveAvatarUrl: operation('resolveAvatarUrl'),
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
/** Conversation transport, persistence, live voice, and checkpoint seam. */
|
|
240
|
+
export const conversationPlatform = {
|
|
241
|
+
clearChatHistory: operation('clearChatHistory'), deleteChatSession: operation('deleteChatSession'),
|
|
242
|
+
renameChatSession: operation('renameChatSession'), getRecentInteractions: operation('getRecentInteractions'),
|
|
243
|
+
getConversationSnapshot: operation('getConversationSnapshot'), getConversationChanges: operation('getConversationChanges'),
|
|
244
|
+
saveSystemInteraction: operation('saveSystemInteraction'), listChatSessions: operation('listChatSessions'),
|
|
245
|
+
updateChatSessionWorkspace: operation('updateChatSessionWorkspace'),
|
|
246
|
+
saveInteractionAgentActivity: operation('saveInteractionAgentActivity'), streamChatMessage: operation('streamChatMessage'),
|
|
247
|
+
cancelChatMessage: operation('cancelChatMessage'), submitToolApproval: operation('submitToolApproval'),
|
|
248
|
+
listen: operation('listen'), readClipboardImage: operation('readClipboardImage'), getTtsUrls: operation('getTtsUrls'),
|
|
249
|
+
startGeminiLiveSession: operation('startGeminiLiveSession'), sendGeminiLiveAudioChunk: operation('sendGeminiLiveAudioChunk'),
|
|
250
|
+
stopGeminiLiveSession: operation('stopGeminiLiveSession'), listGitCheckpoints: operation('listGitCheckpoints'),
|
|
251
|
+
rollbackGitCheckpoint: operation('rollbackGitCheckpoint'), undoGitCheckpoint: operation('undoGitCheckpoint'),
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
/** Models, skills, agents, MCP, schedules, linked folders, and slash commands. */
|
|
255
|
+
export const catalogPlatform = {
|
|
256
|
+
fetchProviderModels: operation('fetchProviderModels'), listLearnedSkills: operation('listLearnedSkills'),
|
|
257
|
+
addLearnedSkill: operation('addLearnedSkill'), deleteLearnedSkill: operation('deleteLearnedSkill'),
|
|
258
|
+
detectSystemTools: operation('detectSystemTools'), listMcpServerTools: operation('listMcpServerTools'),
|
|
259
|
+
testMcpConnection: operation('testMcpConnection'), reauthMcpServer: operation('reauthMcpServer'),
|
|
260
|
+
listSubagents: operation('listSubagents'), saveSubagent: operation('saveSubagent'),
|
|
261
|
+
deleteSubagent: operation('deleteSubagent'), getProfileValue: operation('getProfileValue'),
|
|
262
|
+
setProfileValue: operation('setProfileValue'), listCronJobs: operation('listCronJobs'),
|
|
263
|
+
addCronJob: operation('addCronJob'), removeCronJob: operation('removeCronJob'),
|
|
264
|
+
setCronJobEnabled: operation('setCronJobEnabled'), listLinkedFolders: operation('listLinkedFolders'),
|
|
265
|
+
addLinkedFolder: operation('addLinkedFolder'), removeLinkedFolder: operation('removeLinkedFolder'),
|
|
266
|
+
linkedFolderStatus: operation('linkedFolderStatus'), refreshLinkedFolder: operation('refreshLinkedFolder'),
|
|
267
|
+
listLinkedFolderNotes: operation('listLinkedFolderNotes'), readLinkedFolderNote: operation('readLinkedFolderNote'),
|
|
268
|
+
openLinkedFolderNote: operation('openLinkedFolderNote'),
|
|
269
|
+
runSlashCommand: operation('runSlashCommand'),
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
/** Image and video generation and saved media seam. */
|
|
273
|
+
export const mediaPlatform = {
|
|
274
|
+
generateImages: operation('generateImages'), getImageGenProviders: operation('getImageGenProviders'),
|
|
275
|
+
fetchImageProviderModels: operation('fetchImageProviderModels'), listSavedPictures: operation('listSavedPictures'),
|
|
276
|
+
generateVideo: operation('generateVideo'), getVideoGenProviders: operation('getVideoGenProviders'),
|
|
277
|
+
fetchVideoProviderModels: operation('fetchVideoProviderModels'), convertFileSrc: operation('convertFileSrc'),
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
/** Runtime capabilities and native picker seam. */
|
|
281
|
+
export const runtimePlatform = {
|
|
282
|
+
appIconPath: () => String(requireRendererPlatform().APP_ICON_PATH ?? './assets/icon.png'),
|
|
283
|
+
getRuntimeStatus: operation('getRuntimeStatus'), setActiveModel: operation('setActiveModel'),
|
|
284
|
+
selectWorkspaceDirectory: operation('selectWorkspaceDirectory'), selectLinkedFolderPath: operation('selectLinkedFolderPath'),
|
|
285
|
+
isTauriRuntime: operation('isTauriRuntime'), readWorkspaceFile: operation('readWorkspaceFile'),
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
/** Install the Desktop or Web adapter before rendering the application. */
|
|
289
|
+
export function installWorkspacePlatform(adapter: WorkspacePlatform): void {
|
|
290
|
+
workspaceAdapter = adapter
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
function requireWorkspacePlatform(): WorkspacePlatform {
|
|
294
|
+
if (!workspaceAdapter) {
|
|
295
|
+
throw new Error('Workspace platform adapter has not been installed.')
|
|
296
|
+
}
|
|
297
|
+
return workspaceAdapter
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
/** One seam for workspace and Git behavior used by shared renderer modules. */
|
|
301
|
+
export const workspacePlatform: WorkspacePlatform = {
|
|
302
|
+
getWorkspaceSnapshot: (...args) => requireWorkspacePlatform().getWorkspaceSnapshot(...args),
|
|
303
|
+
getWorkspaceGitDiff: (...args) => requireWorkspacePlatform().getWorkspaceGitDiff(...args),
|
|
304
|
+
getGitBranchInfo: (...args) => requireWorkspacePlatform().getGitBranchInfo(...args),
|
|
305
|
+
switchGitBranch: (...args) => requireWorkspacePlatform().switchGitBranch(...args),
|
|
306
|
+
createGitBranch: (...args) => requireWorkspacePlatform().createGitBranch(...args),
|
|
307
|
+
checkoutRemoteGitBranch: (...args) => requireWorkspacePlatform().checkoutRemoteGitBranch(...args),
|
|
308
|
+
getGitGraph: (...args) => requireWorkspacePlatform().getGitGraph(...args),
|
|
309
|
+
createWorkspaceFile: (...args) => requireWorkspacePlatform().createWorkspaceFile(...args),
|
|
310
|
+
createWorkspaceFolder: (...args) => requireWorkspacePlatform().createWorkspaceFolder(...args),
|
|
311
|
+
deleteWorkspaceItem: (...args) => requireWorkspacePlatform().deleteWorkspaceItem(...args),
|
|
312
|
+
}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* shared/theme/themeManager.ts
|
|
3
|
+
* Centralized theme controller and runtime state manager.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { ACCENT_FLAVORS } from './themes'
|
|
7
|
+
|
|
8
|
+
export const hexToRgb = (hex: string): { r: number; g: number; b: number } => {
|
|
9
|
+
const clean = hex.replace('#', '')
|
|
10
|
+
if (clean.length === 3) {
|
|
11
|
+
const r = parseInt(clean[0] + clean[0], 16)
|
|
12
|
+
const g = parseInt(clean[1] + clean[1], 16)
|
|
13
|
+
const b = parseInt(clean[2] + clean[2], 16)
|
|
14
|
+
return { r, g, b }
|
|
15
|
+
}
|
|
16
|
+
const result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex)
|
|
17
|
+
return result
|
|
18
|
+
? {
|
|
19
|
+
r: parseInt(result[1], 16),
|
|
20
|
+
g: parseInt(result[2], 16),
|
|
21
|
+
b: parseInt(result[3], 16),
|
|
22
|
+
}
|
|
23
|
+
: { r: 16, g: 185, b: 129 }
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export const lightenColor = (hex: string, amount: number): string => {
|
|
27
|
+
const clean = hex.replace('#', '')
|
|
28
|
+
if (clean.length !== 6) return hex
|
|
29
|
+
const num = parseInt(clean, 16)
|
|
30
|
+
const r = Math.min(255, (num >> 16) + amount)
|
|
31
|
+
const g = Math.min(255, ((num >> 8) & 0x00ff) + amount)
|
|
32
|
+
const b = Math.min(255, (num & 0x0000ff) + amount)
|
|
33
|
+
return `#${((r << 16) | (g << 8) | b).toString(16).padStart(6, '0')}`
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export const getContrastText = (hex: string): string => {
|
|
37
|
+
const rgb = hexToRgb(hex)
|
|
38
|
+
// Perceived relative luminance formula (W3C standard)
|
|
39
|
+
const luminance = 0.299 * rgb.r + 0.587 * rgb.g + 0.114 * rgb.b
|
|
40
|
+
return luminance > 160 ? '#09090b' : '#ffffff'
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
let systemThemeMediaQuery: MediaQueryList | null = null
|
|
44
|
+
let systemThemeListener: ((e: MediaQueryListEvent) => void) | null = null
|
|
45
|
+
|
|
46
|
+
export const applyTheme = (cfg: any): void => {
|
|
47
|
+
if (typeof document === 'undefined') return
|
|
48
|
+
|
|
49
|
+
const rawTheme = cfg.theme || 'dark'
|
|
50
|
+
const surfaceStyle = cfg.surfaceStyle || (cfg.glassBlur === 'none' ? 'opaque' : 'glass')
|
|
51
|
+
const accentColor = cfg.accentColor || '#10b981'
|
|
52
|
+
const rgb = hexToRgb(accentColor)
|
|
53
|
+
const contrastText = getContrastText(accentColor)
|
|
54
|
+
|
|
55
|
+
// Resolve effective theme for 'system'
|
|
56
|
+
let effectiveTheme = rawTheme
|
|
57
|
+
if (rawTheme === 'system') {
|
|
58
|
+
const prefersDark = window.matchMedia('(prefers-color-scheme: dark)').matches
|
|
59
|
+
effectiveTheme = prefersDark ? 'dark' : 'light'
|
|
60
|
+
|
|
61
|
+
// Attach reactive OS preference listener once
|
|
62
|
+
if (!systemThemeListener) {
|
|
63
|
+
systemThemeMediaQuery = window.matchMedia('(prefers-color-scheme: dark)')
|
|
64
|
+
systemThemeListener = (e) => {
|
|
65
|
+
document.documentElement.setAttribute('data-theme', e.matches ? 'dark' : 'light')
|
|
66
|
+
}
|
|
67
|
+
systemThemeMediaQuery.addEventListener('change', systemThemeListener)
|
|
68
|
+
}
|
|
69
|
+
} else if (systemThemeListener && systemThemeMediaQuery) {
|
|
70
|
+
systemThemeMediaQuery.removeEventListener('change', systemThemeListener)
|
|
71
|
+
systemThemeListener = null
|
|
72
|
+
systemThemeMediaQuery = null
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
// Set DOM data attributes
|
|
76
|
+
document.documentElement.setAttribute('data-theme', effectiveTheme)
|
|
77
|
+
document.documentElement.setAttribute('data-surface', surfaceStyle)
|
|
78
|
+
const normalizedAccent = accentColor.trim().toLowerCase()
|
|
79
|
+
document.documentElement.setAttribute(
|
|
80
|
+
'data-accent-mode',
|
|
81
|
+
normalizedAccent === '#ffffff' || normalizedAccent === '#fff' ? 'monochrome' : 'color'
|
|
82
|
+
)
|
|
83
|
+
|
|
84
|
+
// Set Accent variables
|
|
85
|
+
document.documentElement.style.setProperty('--accent-default', accentColor)
|
|
86
|
+
document.documentElement.style.setProperty('--accent', accentColor)
|
|
87
|
+
document.documentElement.style.setProperty('--accent-hover', lightenColor(accentColor, 20))
|
|
88
|
+
document.documentElement.style.setProperty('--accent-glow', `rgba(${rgb.r}, ${rgb.g}, ${rgb.b}, 0.35)`)
|
|
89
|
+
document.documentElement.style.setProperty('--accent-subtle', `rgba(${rgb.r}, ${rgb.g}, ${rgb.b}, 0.14)`)
|
|
90
|
+
document.documentElement.style.setProperty('--accent-border', `rgba(${rgb.r}, ${rgb.g}, ${rgb.b}, 0.3)`)
|
|
91
|
+
document.documentElement.style.setProperty('--text-on-accent', contrastText)
|
|
92
|
+
document.documentElement.style.setProperty('--accent-contrast', contrastText)
|
|
93
|
+
|
|
94
|
+
// Surface and Blur
|
|
95
|
+
if (surfaceStyle === 'opaque') {
|
|
96
|
+
document.documentElement.style.setProperty('--glass-blur', 'none')
|
|
97
|
+
} else {
|
|
98
|
+
document.documentElement.style.setProperty('--glass-blur', cfg.glassBlur || 'blur(16px)')
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
// Typography
|
|
102
|
+
if (cfg.fontFamily) {
|
|
103
|
+
document.body.style.fontFamily = cfg.fontFamily
|
|
104
|
+
}
|
|
105
|
+
if (cfg.fontSize) {
|
|
106
|
+
document.documentElement.style.fontSize = cfg.fontSize
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
// Handle custom theme overrides if active
|
|
110
|
+
if (rawTheme === 'custom') {
|
|
111
|
+
if (cfg.customBgStart && cfg.customBgEnd) {
|
|
112
|
+
document.documentElement.style.setProperty('--bg-canvas', cfg.customBgStart)
|
|
113
|
+
document.documentElement.style.setProperty('--bg-color', cfg.customBgStart)
|
|
114
|
+
document.documentElement.style.setProperty(
|
|
115
|
+
'--bg-gradient',
|
|
116
|
+
`linear-gradient(135deg, ${cfg.customBgStart} 0%, ${cfg.customBgEnd} 100%)`
|
|
117
|
+
)
|
|
118
|
+
}
|
|
119
|
+
if (cfg.customPanelBg) {
|
|
120
|
+
const pRgb = hexToRgb(cfg.customPanelBg)
|
|
121
|
+
document.documentElement.style.setProperty('--bg-surface', `rgba(${pRgb.r}, ${pRgb.g}, ${pRgb.b}, 0.75)`)
|
|
122
|
+
document.documentElement.style.setProperty('--panel-bg', `rgba(${pRgb.r}, ${pRgb.g}, ${pRgb.b}, 0.75)`)
|
|
123
|
+
document.documentElement.style.setProperty('--surface-bg', `rgba(${pRgb.r}, ${pRgb.g}, ${pRgb.b}, 0.62)`)
|
|
124
|
+
}
|
|
125
|
+
return
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
// Clean up inline background and text overrides for standard themes
|
|
129
|
+
;[
|
|
130
|
+
'--bg-canvas',
|
|
131
|
+
'--bg-color',
|
|
132
|
+
'--bg-gradient',
|
|
133
|
+
'--panel-bg',
|
|
134
|
+
'--panel-raised',
|
|
135
|
+
'--panel-soft',
|
|
136
|
+
'--chrome-bg',
|
|
137
|
+
'--surface-bg',
|
|
138
|
+
'--surface-strong',
|
|
139
|
+
'--input-bg',
|
|
140
|
+
'--text-main',
|
|
141
|
+
'--text-chat',
|
|
142
|
+
'--text-soft',
|
|
143
|
+
].forEach((prop) => document.documentElement.style.removeProperty(prop))
|
|
144
|
+
}
|