@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
|
@@ -139,6 +139,10 @@ pub enum SlashEffect {
|
|
|
139
139
|
PlanModeChanged {
|
|
140
140
|
enabled: bool,
|
|
141
141
|
},
|
|
142
|
+
ThinkingChanged {
|
|
143
|
+
enabled: bool,
|
|
144
|
+
effort: String,
|
|
145
|
+
},
|
|
142
146
|
}
|
|
143
147
|
|
|
144
148
|
#[derive(serde::Serialize)]
|
|
@@ -207,6 +211,10 @@ pub fn execute(req: &SlashRequest, config: &mut MintConfig) -> SlashResponse {
|
|
|
207
211
|
markdown: "🧹 Conversation history cleared.".into(),
|
|
208
212
|
effects: vec![SlashEffect::HistoryCleared],
|
|
209
213
|
},
|
|
214
|
+
"/thought" => SlashResponse::Applied {
|
|
215
|
+
markdown: "Thought process can be viewed in the collapsible **Thinking** accordion on Desktop & Web, or by pressing `Ctrl+T` / running `/thought` in the CLI.".into(),
|
|
216
|
+
effects: vec![],
|
|
217
|
+
},
|
|
210
218
|
|
|
211
219
|
"/autoskill" => cmd_bool_toggle(
|
|
212
220
|
rest,
|
|
@@ -280,6 +288,7 @@ pub fn execute(req: &SlashRequest, config: &mut MintConfig) -> SlashResponse {
|
|
|
280
288
|
},
|
|
281
289
|
|
|
282
290
|
"/models" => cmd_models(rest, config),
|
|
291
|
+
"/thinking" | "/think" => cmd_thinking(rest, config),
|
|
283
292
|
"/temperature" | "/temp" => cmd_temperature(rest, config),
|
|
284
293
|
// `/searchProvider` is a documented camelCase alias (see UNDOCUMENTED_ALIASES).
|
|
285
294
|
"/search-provider" | "/searchprovider" => cmd_extra_provider(
|
|
@@ -641,16 +650,25 @@ fn cmd_models(rest: &str, config: &mut MintConfig) -> SlashResponse {
|
|
|
641
650
|
if model.is_none() {
|
|
642
651
|
let options = models::model_options_for_provider(config, provider);
|
|
643
652
|
if !options.is_empty() {
|
|
653
|
+
let mut choices: Vec<SlashChoice> = options
|
|
654
|
+
.into_iter()
|
|
655
|
+
.map(|m| {
|
|
656
|
+
let label = if models::is_free_model(&m) {
|
|
657
|
+
format!("{m} [FREE]")
|
|
658
|
+
} else {
|
|
659
|
+
m.clone()
|
|
660
|
+
};
|
|
661
|
+
SlashChoice { label, value: m }
|
|
662
|
+
})
|
|
663
|
+
.collect();
|
|
664
|
+
choices.push(SlashChoice {
|
|
665
|
+
label: "[Custom] Enter custom model ID...".into(),
|
|
666
|
+
value: "__action:custom".into(),
|
|
667
|
+
});
|
|
644
668
|
return SlashResponse::NeedsChoice {
|
|
645
669
|
command: format!("/models {provider}"),
|
|
646
670
|
title: format!("Select {provider} model"),
|
|
647
|
-
options:
|
|
648
|
-
.into_iter()
|
|
649
|
-
.map(|m| SlashChoice {
|
|
650
|
-
label: m.clone(),
|
|
651
|
-
value: m,
|
|
652
|
-
})
|
|
653
|
-
.collect(),
|
|
671
|
+
options: choices,
|
|
654
672
|
};
|
|
655
673
|
}
|
|
656
674
|
}
|
|
@@ -822,6 +840,139 @@ fn cmd_temperature_status(config: &MintConfig) -> SlashResponse {
|
|
|
822
840
|
message(md)
|
|
823
841
|
}
|
|
824
842
|
|
|
843
|
+
fn capitalize_effort(s: &str) -> String {
|
|
844
|
+
if s == "extra_high" {
|
|
845
|
+
return "Extra High".into();
|
|
846
|
+
}
|
|
847
|
+
let mut c = s.chars();
|
|
848
|
+
match c.next() {
|
|
849
|
+
None => String::new(),
|
|
850
|
+
Some(f) => f.to_uppercase().collect::<String>() + c.as_str(),
|
|
851
|
+
}
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
fn cmd_thinking(rest: &str, config: &mut MintConfig) -> SlashResponse {
|
|
855
|
+
let model = config.active_model().to_string();
|
|
856
|
+
let supported = config.is_thinking_supported();
|
|
857
|
+
let (current_enabled, current_effort) = config.resolved_thinking();
|
|
858
|
+
let raw = rest.trim().to_ascii_lowercase();
|
|
859
|
+
|
|
860
|
+
if raw.is_empty() {
|
|
861
|
+
let status_label = if !supported {
|
|
862
|
+
"Not supported by active model".to_string()
|
|
863
|
+
} else if current_enabled {
|
|
864
|
+
format!("ON (Effort: {})", capitalize_effort(current_effort))
|
|
865
|
+
} else {
|
|
866
|
+
"OFF".to_string()
|
|
867
|
+
};
|
|
868
|
+
|
|
869
|
+
let mut choices = Vec::new();
|
|
870
|
+
if current_enabled {
|
|
871
|
+
choices.push(SlashChoice {
|
|
872
|
+
label: "Turn Thinking OFF".into(),
|
|
873
|
+
value: "off".into(),
|
|
874
|
+
});
|
|
875
|
+
} else {
|
|
876
|
+
choices.push(SlashChoice {
|
|
877
|
+
label: "Turn Thinking ON".into(),
|
|
878
|
+
value: "on".into(),
|
|
879
|
+
});
|
|
880
|
+
}
|
|
881
|
+
for eff in &["Low", "Medium", "High", "Extra High"] {
|
|
882
|
+
let val = eff.to_ascii_lowercase().replace(' ', "_");
|
|
883
|
+
let is_sel = current_enabled && current_effort.to_ascii_lowercase() == val;
|
|
884
|
+
choices.push(SlashChoice {
|
|
885
|
+
label: if is_sel {
|
|
886
|
+
format!("Effort: {eff} ✓")
|
|
887
|
+
} else {
|
|
888
|
+
format!("Effort: {eff}")
|
|
889
|
+
},
|
|
890
|
+
value: val,
|
|
891
|
+
});
|
|
892
|
+
}
|
|
893
|
+
|
|
894
|
+
return SlashResponse::NeedsChoice {
|
|
895
|
+
command: "/thinking".into(),
|
|
896
|
+
title: format!("🧠 Thinking Configuration ({model}): {status_label}"),
|
|
897
|
+
options: choices,
|
|
898
|
+
};
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
if raw == "status" {
|
|
902
|
+
let status_label = if !supported {
|
|
903
|
+
"⚠️ Thinking is **not supported** by the current active model.".to_string()
|
|
904
|
+
} else if current_enabled {
|
|
905
|
+
format!(
|
|
906
|
+
"✅ Thinking is **ON** (Effort: **{}**)",
|
|
907
|
+
capitalize_effort(current_effort)
|
|
908
|
+
)
|
|
909
|
+
} else {
|
|
910
|
+
"⏸️ Thinking is **OFF**".to_string()
|
|
911
|
+
};
|
|
912
|
+
return message(format!(
|
|
913
|
+
"🧠 **Thinking Status**\n\n- Active Model: `{model}`\n- Supported: **{supported}**\n- State: {status_label}\n\nUsage: `/thinking [on|off|low|medium|high|extra_high]`"
|
|
914
|
+
));
|
|
915
|
+
}
|
|
916
|
+
|
|
917
|
+
let parts: Vec<&str> = raw.split_whitespace().collect();
|
|
918
|
+
let mut new_enabled = current_enabled;
|
|
919
|
+
let mut new_effort = current_effort.to_string();
|
|
920
|
+
|
|
921
|
+
for p in parts {
|
|
922
|
+
match p {
|
|
923
|
+
"on" | "enable" | "true" => new_enabled = true,
|
|
924
|
+
"off" | "disable" | "false" => new_enabled = false,
|
|
925
|
+
"low" => {
|
|
926
|
+
new_effort = "low".into();
|
|
927
|
+
new_enabled = true;
|
|
928
|
+
}
|
|
929
|
+
"medium" | "med" => {
|
|
930
|
+
new_effort = "medium".into();
|
|
931
|
+
new_enabled = true;
|
|
932
|
+
}
|
|
933
|
+
"high" => {
|
|
934
|
+
new_effort = "high".into();
|
|
935
|
+
new_enabled = true;
|
|
936
|
+
}
|
|
937
|
+
"extra_high" | "extra" | "extra-high" | "max" => {
|
|
938
|
+
new_effort = "extra_high".into();
|
|
939
|
+
new_enabled = true;
|
|
940
|
+
}
|
|
941
|
+
_ => {}
|
|
942
|
+
}
|
|
943
|
+
}
|
|
944
|
+
|
|
945
|
+
config.set_model_thinking(&model, new_enabled, &new_effort);
|
|
946
|
+
config.thinking_enabled = new_enabled;
|
|
947
|
+
config.thinking_effort = new_effort.clone();
|
|
948
|
+
|
|
949
|
+
let text = if !supported {
|
|
950
|
+
format!(
|
|
951
|
+
"🧠 Updated thinking preference for `{model}` to **{}** (Effort: **{}**).\n*Note: `{model}` may not natively emit reasoning tokens.*",
|
|
952
|
+
if new_enabled { "ON" } else { "OFF" },
|
|
953
|
+
capitalize_effort(&new_effort)
|
|
954
|
+
)
|
|
955
|
+
} else if new_enabled {
|
|
956
|
+
format!(
|
|
957
|
+
"🧠 Thinking **ON** for `{model}` (Effort: **{}**).",
|
|
958
|
+
capitalize_effort(&new_effort)
|
|
959
|
+
)
|
|
960
|
+
} else {
|
|
961
|
+
format!("🧠 Thinking **OFF** for `{model}`.")
|
|
962
|
+
};
|
|
963
|
+
|
|
964
|
+
SlashResponse::Applied {
|
|
965
|
+
markdown: text,
|
|
966
|
+
effects: vec![
|
|
967
|
+
SlashEffect::ConfigChanged,
|
|
968
|
+
SlashEffect::ThinkingChanged {
|
|
969
|
+
enabled: new_enabled,
|
|
970
|
+
effort: new_effort,
|
|
971
|
+
},
|
|
972
|
+
],
|
|
973
|
+
}
|
|
974
|
+
}
|
|
975
|
+
|
|
825
976
|
fn cmd_temperature(rest: &str, config: &mut MintConfig) -> SlashResponse {
|
|
826
977
|
let raw = rest.trim();
|
|
827
978
|
if raw.is_empty() {
|
|
@@ -1069,21 +1220,175 @@ async fn cmd_models_async(rest: &str, config: &mut MintConfig) -> SlashResponse
|
|
|
1069
1220
|
None => (rest.trim(), None),
|
|
1070
1221
|
};
|
|
1071
1222
|
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1223
|
+
let is_action_all = model == Some("__action:all");
|
|
1224
|
+
let is_action_free = model == Some("__action:free");
|
|
1225
|
+
let search_query = model.and_then(|m| m.strip_prefix("__action:search:"));
|
|
1226
|
+
|
|
1227
|
+
// Provider given but no model yet, or an action requested — offer model picker.
|
|
1228
|
+
if model.is_none() || is_action_all || is_action_free || search_query.is_some() {
|
|
1229
|
+
let all_options = models::model_options_for_provider_async(config, provider).await;
|
|
1230
|
+
if !all_options.is_empty() {
|
|
1231
|
+
if let Some(query) = search_query {
|
|
1232
|
+
let q_lower = query.trim().to_lowercase();
|
|
1233
|
+
let matched: Vec<String> = all_options
|
|
1080
1234
|
.into_iter()
|
|
1081
|
-
.
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1235
|
+
.filter(|m| m.to_lowercase().contains(&q_lower))
|
|
1236
|
+
.collect();
|
|
1237
|
+
if matched.is_empty() {
|
|
1238
|
+
return message(format!(
|
|
1239
|
+
"No models found matching \"{query}\" for provider {provider}."
|
|
1240
|
+
));
|
|
1241
|
+
}
|
|
1242
|
+
return SlashResponse::NeedsChoice {
|
|
1243
|
+
command: format!("/models {provider}"),
|
|
1244
|
+
title: format!(
|
|
1245
|
+
"Search results for \"{query}\" in {provider} ({})",
|
|
1246
|
+
matched.len()
|
|
1247
|
+
),
|
|
1248
|
+
options: matched
|
|
1249
|
+
.into_iter()
|
|
1250
|
+
.map(|m| {
|
|
1251
|
+
let label = if models::is_free_model(&m) {
|
|
1252
|
+
format!("{m} [FREE]")
|
|
1253
|
+
} else {
|
|
1254
|
+
m.clone()
|
|
1255
|
+
};
|
|
1256
|
+
SlashChoice { label, value: m }
|
|
1257
|
+
})
|
|
1258
|
+
.collect(),
|
|
1259
|
+
};
|
|
1260
|
+
}
|
|
1261
|
+
|
|
1262
|
+
if is_action_free {
|
|
1263
|
+
let free_models: Vec<String> = all_options
|
|
1264
|
+
.into_iter()
|
|
1265
|
+
.filter(|m| models::is_free_model(m))
|
|
1266
|
+
.collect();
|
|
1267
|
+
if free_models.is_empty() {
|
|
1268
|
+
return message(format!("No free models found for provider {provider}."));
|
|
1269
|
+
}
|
|
1270
|
+
return SlashResponse::NeedsChoice {
|
|
1271
|
+
command: format!("/models {provider}"),
|
|
1272
|
+
title: format!("Free {provider} models ({})", free_models.len()),
|
|
1273
|
+
options: free_models
|
|
1274
|
+
.into_iter()
|
|
1275
|
+
.map(|m| SlashChoice {
|
|
1276
|
+
label: format!("{m} [FREE]"),
|
|
1277
|
+
value: m,
|
|
1278
|
+
})
|
|
1279
|
+
.collect(),
|
|
1280
|
+
};
|
|
1281
|
+
}
|
|
1282
|
+
|
|
1283
|
+
if is_action_all {
|
|
1284
|
+
return SlashResponse::NeedsChoice {
|
|
1285
|
+
command: format!("/models {provider}"),
|
|
1286
|
+
title: format!("All {provider} models ({})", all_options.len()),
|
|
1287
|
+
options: all_options
|
|
1288
|
+
.into_iter()
|
|
1289
|
+
.map(|m| {
|
|
1290
|
+
let label = if models::is_free_model(&m) {
|
|
1291
|
+
format!("{m} [FREE]")
|
|
1292
|
+
} else {
|
|
1293
|
+
m.clone()
|
|
1294
|
+
};
|
|
1295
|
+
SlashChoice { label, value: m }
|
|
1296
|
+
})
|
|
1297
|
+
.collect(),
|
|
1298
|
+
};
|
|
1299
|
+
}
|
|
1300
|
+
|
|
1301
|
+
// Normal provider selection menu
|
|
1302
|
+
let has_free = all_options.iter().any(|m| models::is_free_model(m));
|
|
1303
|
+
let total_count = all_options.len();
|
|
1304
|
+
|
|
1305
|
+
let mut choices: Vec<SlashChoice> = Vec::new();
|
|
1306
|
+
|
|
1307
|
+
if total_count > 8 || provider == "openrouter" {
|
|
1308
|
+
let popular_presets = models::popular_models_for_provider(provider);
|
|
1309
|
+
let mut added_popular = 0;
|
|
1310
|
+
for pop in popular_presets {
|
|
1311
|
+
if all_options.iter().any(|m| m == pop) {
|
|
1312
|
+
let label = if models::is_free_model(pop) {
|
|
1313
|
+
format!("{pop} [FREE]")
|
|
1314
|
+
} else {
|
|
1315
|
+
pop.to_string()
|
|
1316
|
+
};
|
|
1317
|
+
choices.push(SlashChoice {
|
|
1318
|
+
label,
|
|
1319
|
+
value: pop.to_string(),
|
|
1320
|
+
});
|
|
1321
|
+
added_popular += 1;
|
|
1322
|
+
}
|
|
1323
|
+
}
|
|
1324
|
+
|
|
1325
|
+
if added_popular == 0 {
|
|
1326
|
+
for m in all_options.iter().take(6) {
|
|
1327
|
+
let label = if models::is_free_model(m) {
|
|
1328
|
+
format!("{m} [FREE]")
|
|
1329
|
+
} else {
|
|
1330
|
+
m.clone()
|
|
1331
|
+
};
|
|
1332
|
+
choices.push(SlashChoice {
|
|
1333
|
+
label,
|
|
1334
|
+
value: m.clone(),
|
|
1335
|
+
});
|
|
1336
|
+
}
|
|
1337
|
+
}
|
|
1338
|
+
|
|
1339
|
+
choices.push(SlashChoice {
|
|
1340
|
+
label: "[Search] Filter models by keyword...".into(),
|
|
1341
|
+
value: "__action:search".into(),
|
|
1342
|
+
});
|
|
1343
|
+
if has_free {
|
|
1344
|
+
choices.push(SlashChoice {
|
|
1345
|
+
label: "[Free] Browse free models only (:free)".into(),
|
|
1346
|
+
value: "__action:free".into(),
|
|
1347
|
+
});
|
|
1348
|
+
}
|
|
1349
|
+
choices.push(SlashChoice {
|
|
1350
|
+
label: format!("[All] Browse all {total_count} models..."),
|
|
1351
|
+
value: "__action:all".into(),
|
|
1352
|
+
});
|
|
1353
|
+
choices.push(SlashChoice {
|
|
1354
|
+
label: "[Custom] Enter custom model ID...".into(),
|
|
1355
|
+
value: "__action:custom".into(),
|
|
1356
|
+
});
|
|
1357
|
+
|
|
1358
|
+
return SlashResponse::NeedsChoice {
|
|
1359
|
+
command: format!("/models {provider}"),
|
|
1360
|
+
title: format!("Select {provider} model"),
|
|
1361
|
+
options: choices,
|
|
1362
|
+
};
|
|
1363
|
+
} else {
|
|
1364
|
+
for m in &all_options {
|
|
1365
|
+
let label = if models::is_free_model(m) {
|
|
1366
|
+
format!("{m} [FREE]")
|
|
1367
|
+
} else {
|
|
1368
|
+
m.clone()
|
|
1369
|
+
};
|
|
1370
|
+
choices.push(SlashChoice {
|
|
1371
|
+
label,
|
|
1372
|
+
value: m.clone(),
|
|
1373
|
+
});
|
|
1374
|
+
}
|
|
1375
|
+
choices.push(SlashChoice {
|
|
1376
|
+
label: "[Custom] Enter custom model ID...".into(),
|
|
1377
|
+
value: "__action:custom".into(),
|
|
1378
|
+
});
|
|
1379
|
+
|
|
1380
|
+
return SlashResponse::NeedsChoice {
|
|
1381
|
+
command: format!("/models {provider}"),
|
|
1382
|
+
title: format!("Select {provider} model"),
|
|
1383
|
+
options: choices,
|
|
1384
|
+
};
|
|
1385
|
+
}
|
|
1386
|
+
}
|
|
1387
|
+
}
|
|
1388
|
+
|
|
1389
|
+
if let Some(m) = model {
|
|
1390
|
+
if m.starts_with("__action:") {
|
|
1391
|
+
return SlashResponse::NotHandled;
|
|
1087
1392
|
}
|
|
1088
1393
|
}
|
|
1089
1394
|
|
|
@@ -1809,7 +2114,38 @@ fn cmd_link(rest: &str) -> SlashResponse {
|
|
|
1809
2114
|
Ok(false) => error(format!("No linked folder named `{args}`.")),
|
|
1810
2115
|
Err(e) => error(e),
|
|
1811
2116
|
},
|
|
1812
|
-
|
|
2117
|
+
"refresh" if !args.is_empty() => match crate::refresh_linked_folder(args) {
|
|
2118
|
+
Ok(status) => message(format!(
|
|
2119
|
+
"Indexed {} files in `{args}`.",
|
|
2120
|
+
status.indexed_files
|
|
2121
|
+
)),
|
|
2122
|
+
Err(e) => error(e),
|
|
2123
|
+
},
|
|
2124
|
+
"notes" if !args.is_empty() => match crate::list_linked_folder_notes(args) {
|
|
2125
|
+
Ok(notes) if notes.is_empty() => message(format!("No saved notes in `{args}`.")),
|
|
2126
|
+
Ok(notes) => message(md_list(
|
|
2127
|
+
¬es
|
|
2128
|
+
.iter()
|
|
2129
|
+
.map(|n| format!("`{}` — {} — {}", n.created_at, n.status, n.path))
|
|
2130
|
+
.collect::<Vec<_>>(),
|
|
2131
|
+
)),
|
|
2132
|
+
Err(e) => error(e),
|
|
2133
|
+
},
|
|
2134
|
+
"save" => {
|
|
2135
|
+
let Some((name, content)) = args.split_once('|') else {
|
|
2136
|
+
return error("Usage: /link save <name> | <text>");
|
|
2137
|
+
};
|
|
2138
|
+
match crate::save_linked_folder_note(name.trim(), content.trim()) {
|
|
2139
|
+
Ok(note) if note.status == "saved" => {
|
|
2140
|
+
message(format!("Saved note to `{}`: `{}`", name.trim(), note.path))
|
|
2141
|
+
}
|
|
2142
|
+
Ok(note) => error(note.error.unwrap_or_else(|| "note was not saved".into())),
|
|
2143
|
+
Err(e) => error(e),
|
|
2144
|
+
}
|
|
2145
|
+
}
|
|
2146
|
+
_ => error(
|
|
2147
|
+
"Usage: /link [list] | add <name> | <path> | <desc> | remove <name> | refresh <name> | notes <name> | save <name> | <text>",
|
|
2148
|
+
),
|
|
1813
2149
|
}
|
|
1814
2150
|
}
|
|
1815
2151
|
|
|
@@ -2562,4 +2898,116 @@ mod tests {
|
|
|
2562
2898
|
other => panic!("expected Message, got {:?}", serde_json::to_value(other)),
|
|
2563
2899
|
}
|
|
2564
2900
|
}
|
|
2901
|
+
|
|
2902
|
+
#[test]
|
|
2903
|
+
fn thinking_slash_command_inspection_override_and_reset() {
|
|
2904
|
+
let mut cfg = MintConfig::default();
|
|
2905
|
+
cfg.ai_provider = "anthropic".into();
|
|
2906
|
+
cfg.anthropic_model = "claude-3-7-sonnet".into();
|
|
2907
|
+
|
|
2908
|
+
// 1. Without args: interactive menu
|
|
2909
|
+
match execute(&req("/thinking"), &mut cfg) {
|
|
2910
|
+
SlashResponse::NeedsChoice { options, .. } => {
|
|
2911
|
+
assert!(!options.is_empty());
|
|
2912
|
+
}
|
|
2913
|
+
other => panic!(
|
|
2914
|
+
"expected NeedsChoice, got {:?}",
|
|
2915
|
+
serde_json::to_value(other)
|
|
2916
|
+
),
|
|
2917
|
+
}
|
|
2918
|
+
|
|
2919
|
+
// 2. Set effort to High
|
|
2920
|
+
match execute(&req("/thinking high"), &mut cfg) {
|
|
2921
|
+
SlashResponse::Applied { effects, markdown } => {
|
|
2922
|
+
assert!(effects.contains(&SlashEffect::ConfigChanged));
|
|
2923
|
+
assert!(effects.contains(&SlashEffect::ThinkingChanged {
|
|
2924
|
+
enabled: true,
|
|
2925
|
+
effort: "high".into()
|
|
2926
|
+
}));
|
|
2927
|
+
assert!(markdown.contains("High"));
|
|
2928
|
+
let (enabled, effort) = cfg.resolved_thinking();
|
|
2929
|
+
assert!(enabled);
|
|
2930
|
+
assert_eq!(effort, "high");
|
|
2931
|
+
}
|
|
2932
|
+
other => panic!("expected Applied, got {:?}", serde_json::to_value(other)),
|
|
2933
|
+
}
|
|
2934
|
+
|
|
2935
|
+
// 3. Turn thinking off
|
|
2936
|
+
match execute(&req("/thinking off"), &mut cfg) {
|
|
2937
|
+
SlashResponse::Applied { effects, .. } => {
|
|
2938
|
+
assert!(effects.contains(&SlashEffect::ThinkingChanged {
|
|
2939
|
+
enabled: false,
|
|
2940
|
+
effort: "high".into()
|
|
2941
|
+
}));
|
|
2942
|
+
let (enabled, _) = cfg.resolved_thinking();
|
|
2943
|
+
assert!(!enabled);
|
|
2944
|
+
}
|
|
2945
|
+
other => panic!("expected Applied, got {:?}", serde_json::to_value(other)),
|
|
2946
|
+
}
|
|
2947
|
+
|
|
2948
|
+
// 4. Status inspection
|
|
2949
|
+
match execute(&req("/thinking status"), &mut cfg) {
|
|
2950
|
+
SlashResponse::Message { markdown } => {
|
|
2951
|
+
assert!(markdown.to_ascii_uppercase().contains("OFF"));
|
|
2952
|
+
}
|
|
2953
|
+
other => panic!("expected Message, got {:?}", serde_json::to_value(other)),
|
|
2954
|
+
}
|
|
2955
|
+
|
|
2956
|
+
// 5. Non-reasoning model accepts preference with advisory note
|
|
2957
|
+
cfg.ai_provider = "openai".into();
|
|
2958
|
+
cfg.openai_model = "gpt-4o".into();
|
|
2959
|
+
match execute(&req("/thinking on"), &mut cfg) {
|
|
2960
|
+
SlashResponse::Applied { markdown, .. } => {
|
|
2961
|
+
assert!(markdown.contains("may not natively emit reasoning tokens"));
|
|
2962
|
+
}
|
|
2963
|
+
other => panic!("expected Applied, got {:?}", serde_json::to_value(other)),
|
|
2964
|
+
}
|
|
2965
|
+
}
|
|
2966
|
+
|
|
2967
|
+
#[tokio::test]
|
|
2968
|
+
async fn models_slash_command_actions_and_options() {
|
|
2969
|
+
let mut cfg = MintConfig::default();
|
|
2970
|
+
// 1. /models openrouter offers popular models and action shortcuts
|
|
2971
|
+
match execute_async(&req("/models openrouter"), &mut cfg).await {
|
|
2972
|
+
SlashResponse::NeedsChoice {
|
|
2973
|
+
command, options, ..
|
|
2974
|
+
} => {
|
|
2975
|
+
assert_eq!(command, "/models openrouter");
|
|
2976
|
+
assert!(options.iter().any(|o| o.value == "__action:search"));
|
|
2977
|
+
assert!(options.iter().any(|o| o.value == "__action:all"));
|
|
2978
|
+
assert!(options.iter().any(|o| o.value == "__action:custom"));
|
|
2979
|
+
}
|
|
2980
|
+
other => panic!(
|
|
2981
|
+
"expected NeedsChoice, got {:?}",
|
|
2982
|
+
serde_json::to_value(other)
|
|
2983
|
+
),
|
|
2984
|
+
}
|
|
2985
|
+
|
|
2986
|
+
// 2. /models openrouter __action:all returns all models
|
|
2987
|
+
match execute_async(&req("/models openrouter __action:all"), &mut cfg).await {
|
|
2988
|
+
SlashResponse::NeedsChoice { title, options, .. } => {
|
|
2989
|
+
assert!(title.contains("All openrouter models"));
|
|
2990
|
+
assert!(!options.is_empty());
|
|
2991
|
+
}
|
|
2992
|
+
other => panic!(
|
|
2993
|
+
"expected NeedsChoice, got {:?}",
|
|
2994
|
+
serde_json::to_value(other)
|
|
2995
|
+
),
|
|
2996
|
+
}
|
|
2997
|
+
|
|
2998
|
+
// 3. /models openrouter __action:search:gpt filters models
|
|
2999
|
+
match execute_async(&req("/models openrouter __action:search:gpt"), &mut cfg).await {
|
|
3000
|
+
SlashResponse::NeedsChoice { options, .. } => {
|
|
3001
|
+
assert!(
|
|
3002
|
+
options
|
|
3003
|
+
.iter()
|
|
3004
|
+
.all(|o| o.value.to_lowercase().contains("gpt"))
|
|
3005
|
+
);
|
|
3006
|
+
}
|
|
3007
|
+
other => panic!(
|
|
3008
|
+
"expected NeedsChoice, got {:?}",
|
|
3009
|
+
serde_json::to_value(other)
|
|
3010
|
+
),
|
|
3011
|
+
}
|
|
3012
|
+
}
|
|
2565
3013
|
}
|
|
@@ -363,9 +363,18 @@ async fn fetch_openrouter_models(api_key: &str) -> Result<Vec<String>, ()> {
|
|
|
363
363
|
let resp = reqwest_get(url, Some(&auth)).await?;
|
|
364
364
|
let parsed: OpenRouterModelsResponse = serde_json::from_str(&resp).map_err(|_| ())?;
|
|
365
365
|
|
|
366
|
-
let mut
|
|
367
|
-
|
|
368
|
-
|
|
366
|
+
let mut all_models: Vec<String> = parsed.data.into_iter().map(|m| m.id).collect();
|
|
367
|
+
all_models.sort();
|
|
368
|
+
|
|
369
|
+
// Prioritize popular / recommended models at the top
|
|
370
|
+
let mut prioritized = Vec::new();
|
|
371
|
+
for pop in super::models::OPENROUTER_POPULAR_MODELS {
|
|
372
|
+
if let Some(pos) = all_models.iter().position(|m| m == pop) {
|
|
373
|
+
prioritized.push(all_models.remove(pos));
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
prioritized.extend(all_models);
|
|
377
|
+
Ok(prioritized)
|
|
369
378
|
}
|
|
370
379
|
|
|
371
380
|
// ---------------------------------------------------------------------------
|
|
@@ -39,6 +39,36 @@ pub const OPENROUTER_MODEL_PRESETS: &[&str] = &[
|
|
|
39
39
|
"deepseek/deepseek-v4-pro",
|
|
40
40
|
];
|
|
41
41
|
|
|
42
|
+
pub const OPENROUTER_POPULAR_MODELS: &[&str] = &[
|
|
43
|
+
"anthropic/claude-3.7-sonnet",
|
|
44
|
+
"anthropic/claude-3.5-sonnet",
|
|
45
|
+
"openai/gpt-4o",
|
|
46
|
+
"openai/gpt-4o-mini",
|
|
47
|
+
"deepseek/deepseek-r1",
|
|
48
|
+
"deepseek/deepseek-chat",
|
|
49
|
+
"google/gemini-2.5-flash",
|
|
50
|
+
"google/gemini-2.5-pro",
|
|
51
|
+
"meta-llama/llama-3.3-70b-instruct",
|
|
52
|
+
"qwen/qwen-2.5-72b-instruct",
|
|
53
|
+
];
|
|
54
|
+
|
|
55
|
+
pub fn is_free_model(model_id: &str) -> bool {
|
|
56
|
+
let lower = model_id.to_ascii_lowercase();
|
|
57
|
+
lower.ends_with(":free") || lower.contains(":free")
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
pub fn popular_models_for_provider(provider: &str) -> &'static [&'static str] {
|
|
61
|
+
match provider {
|
|
62
|
+
"openrouter" => OPENROUTER_POPULAR_MODELS,
|
|
63
|
+
"gemini" => GEMINI_MODEL_PRESETS,
|
|
64
|
+
"anthropic" => ANTHROPIC_MODEL_PRESETS,
|
|
65
|
+
"openai" => OPENAI_MODEL_PRESETS,
|
|
66
|
+
"deepseek" => DEEPSEEK_MODEL_PRESETS,
|
|
67
|
+
"huggingface" => HUGGINGFACE_MODEL_PRESETS,
|
|
68
|
+
_ => &[],
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
42
72
|
pub const DEEPSEEK_MODEL_PRESETS: &[&str] = &["deepseek-chat", "deepseek-reasoner"];
|
|
43
73
|
|
|
44
74
|
pub const HUGGINGFACE_MODEL_PRESETS: &[&str] = &[
|
|
@@ -123,8 +153,6 @@ pub fn model_options_for_provider(config: &MintConfig, provider: &str) -> Vec<St
|
|
|
123
153
|
///
|
|
124
154
|
/// Results are cached for 1 hour inside [`super::model_fetcher`].
|
|
125
155
|
pub async fn model_options_for_provider_async(config: &MintConfig, provider: &str) -> Vec<String> {
|
|
126
|
-
use super::model_fetcher;
|
|
127
|
-
|
|
128
156
|
// Resolve the API key and optional base URL for this provider.
|
|
129
157
|
let (api_key, base_url): (&str, Option<&str>) = match provider {
|
|
130
158
|
"gemini" => (&config.api_key, None),
|
|
@@ -137,18 +165,46 @@ pub async fn model_options_for_provider_async(config: &MintConfig, provider: &st
|
|
|
137
165
|
_ => return model_options_for_provider(config, provider),
|
|
138
166
|
};
|
|
139
167
|
|
|
168
|
+
model_options_for_provider_with_credentials_async(config, provider, api_key, base_url).await
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/// Fetch using credentials supplied by a UI form, then apply the same preset
|
|
172
|
+
/// fallback policy used by the CLI picker.
|
|
173
|
+
pub async fn model_options_for_provider_with_credentials_async(
|
|
174
|
+
config: &MintConfig,
|
|
175
|
+
provider: &str,
|
|
176
|
+
api_key: &str,
|
|
177
|
+
base_url: Option<&str>,
|
|
178
|
+
) -> Vec<String> {
|
|
179
|
+
use super::model_fetcher;
|
|
180
|
+
|
|
140
181
|
let dynamic = model_fetcher::fetch_provider_models(provider, api_key, base_url).await;
|
|
141
182
|
if !dynamic.is_empty() {
|
|
142
|
-
|
|
143
|
-
let mut merged = dynamic;
|
|
144
|
-
for preset in model_options_for_provider(config, provider) {
|
|
145
|
-
if !merged.contains(&preset) {
|
|
146
|
-
merged.push(preset);
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
merged
|
|
183
|
+
dynamic
|
|
150
184
|
} else {
|
|
151
185
|
// Network/auth error → fall back to static presets.
|
|
152
186
|
model_options_for_provider(config, provider)
|
|
153
187
|
}
|
|
154
188
|
}
|
|
189
|
+
|
|
190
|
+
#[cfg(test)]
|
|
191
|
+
mod tests {
|
|
192
|
+
use super::*;
|
|
193
|
+
|
|
194
|
+
#[test]
|
|
195
|
+
fn test_is_free_model() {
|
|
196
|
+
assert!(is_free_model("deepseek/deepseek-v4-flash-0731:free"));
|
|
197
|
+
assert!(is_free_model("meta-llama/llama-3.3-70b-instruct:free"));
|
|
198
|
+
assert!(is_free_model("qwen/qwen3.8-27b:free"));
|
|
199
|
+
assert!(!is_free_model("anthropic/claude-3.7-sonnet"));
|
|
200
|
+
assert!(!is_free_model("openai/gpt-4o"));
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
#[test]
|
|
204
|
+
fn test_openrouter_popular_models_list() {
|
|
205
|
+
assert!(OPENROUTER_POPULAR_MODELS.contains(&"anthropic/claude-3.7-sonnet"));
|
|
206
|
+
assert!(OPENROUTER_POPULAR_MODELS.contains(&"openai/gpt-4o"));
|
|
207
|
+
assert!(OPENROUTER_POPULAR_MODELS.contains(&"deepseek/deepseek-r1"));
|
|
208
|
+
assert!(OPENROUTER_POPULAR_MODELS.contains(&"google/gemini-2.5-flash"));
|
|
209
|
+
}
|
|
210
|
+
}
|