@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
|
@@ -367,30 +367,21 @@ pub async fn handle_auto() -> Result<()> {
|
|
|
367
367
|
|
|
368
368
|
// Enable the browser tools if they are disabled
|
|
369
369
|
let mut config_mut = config.clone();
|
|
370
|
-
|
|
371
|
-
for tool in &[
|
|
372
|
-
"browser_open",
|
|
373
|
-
"browser_click",
|
|
374
|
-
"browser_type",
|
|
375
|
-
"browser_read",
|
|
376
|
-
"browser_mouse_move",
|
|
377
|
-
"browser_mouse_click",
|
|
378
|
-
"browser_key_press",
|
|
379
|
-
"browser_screenshot",
|
|
380
|
-
] {
|
|
381
|
-
if config_mut.disabled_tools.contains(&tool.to_string()) {
|
|
382
|
-
config_mut.disabled_tools.retain(|x| x != *tool);
|
|
383
|
-
changed = true;
|
|
384
|
-
}
|
|
385
|
-
}
|
|
386
|
-
if changed {
|
|
370
|
+
if mint_core::enable_browser_tools(&mut config_mut) {
|
|
387
371
|
mint_core::save_config(&config_mut)?;
|
|
388
372
|
println!(
|
|
389
|
-
"✅ Enabled browser automation tools in config: browser_open, browser_click, browser_type, browser_read, browser_mouse_move, browser_mouse_click, browser_key_press, browser_screenshot"
|
|
373
|
+
"✅ Enabled browser automation tools in config: browser_open, browser_click, browser_type, browser_read, browser_mouse_move, browser_mouse_click, browser_key_press, browser_screenshot, browser_tabs, browser_observe, browser_fill, browser_select, browser_scroll, browser_wait"
|
|
390
374
|
);
|
|
391
375
|
}
|
|
392
376
|
|
|
393
|
-
println!(
|
|
377
|
+
println!(
|
|
378
|
+
"🌐 Isolated browser running with remote debugging on {}",
|
|
379
|
+
config
|
|
380
|
+
.extra
|
|
381
|
+
.get("browserDebugUrl")
|
|
382
|
+
.and_then(serde_json::Value::as_str)
|
|
383
|
+
.unwrap_or("http://127.0.0.1:9222/json/list")
|
|
384
|
+
);
|
|
394
385
|
println!("💬 Keep this terminal open while you want Mint to automate browser tasks.");
|
|
395
386
|
println!("Press Ctrl+C to terminate the automation browser session.");
|
|
396
387
|
println!("----------------------------------------------------------------------");
|
|
@@ -458,7 +449,10 @@ pub async fn handle_auto() -> Result<()> {
|
|
|
458
449
|
Ok(())
|
|
459
450
|
}
|
|
460
451
|
|
|
461
|
-
pub async fn handle_web(dev: bool) -> Result<()> {
|
|
452
|
+
pub async fn handle_web(dev: bool, tailscale: bool) -> Result<()> {
|
|
453
|
+
if tailscale {
|
|
454
|
+
return super::tailnet_web::run().await;
|
|
455
|
+
}
|
|
462
456
|
launch_mint_target("web".into(), dev).await
|
|
463
457
|
}
|
|
464
458
|
|
|
@@ -607,10 +601,11 @@ pub async fn handle_chat(
|
|
|
607
601
|
messages: None,
|
|
608
602
|
tools: None,
|
|
609
603
|
temperature: config.temperature,
|
|
604
|
+
..Default::default()
|
|
610
605
|
},
|
|
611
606
|
)
|
|
612
607
|
.await?;
|
|
613
|
-
image::save_sent_image_after_send(image_data_uri.as_deref(), &message);
|
|
608
|
+
image::save_sent_image_after_send(image_data_uri.as_deref(), &message, None);
|
|
614
609
|
println!("{}", response.text);
|
|
615
610
|
}
|
|
616
611
|
Ok(())
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
const ANSI_BLUE_BOLD: &str = crate::terminal_theme::ANSI_BLUE_BOLD;
|
|
2
|
+
|
|
1
3
|
use anyhow::{Context, Result};
|
|
2
4
|
use mint_core::MintConfig;
|
|
3
5
|
use mint_core::eval::{aggregate_benchmark_report, evaluate_task_result, load_suite_from_file};
|
|
@@ -5,13 +7,15 @@ use std::path::PathBuf;
|
|
|
5
7
|
use std::time::Instant;
|
|
6
8
|
|
|
7
9
|
pub async fn handle_eval(suite_path: PathBuf, limit: usize, config: &MintConfig) -> Result<()> {
|
|
8
|
-
println!("
|
|
10
|
+
println!("{ANSI_BLUE_BOLD}┌─ Mint Benchmark Evaluation Harness ──────────────────────\x1b[0m");
|
|
9
11
|
if !suite_path.exists() {
|
|
10
12
|
println!(
|
|
11
13
|
"│ \x1b[31mBenchmark suite file not found: {}\x1b[0m",
|
|
12
14
|
suite_path.display()
|
|
13
15
|
);
|
|
14
|
-
println!(
|
|
16
|
+
println!(
|
|
17
|
+
"{ANSI_BLUE_BOLD}└─────────────────────────────────────────────────────────\x1b[0m"
|
|
18
|
+
);
|
|
15
19
|
anyhow::bail!("Suite file not found: {}", suite_path.display());
|
|
16
20
|
}
|
|
17
21
|
|
|
@@ -22,7 +26,7 @@ pub async fn handle_eval(suite_path: PathBuf, limit: usize, config: &MintConfig)
|
|
|
22
26
|
suite.name, suite.version
|
|
23
27
|
);
|
|
24
28
|
println!("│ Total Tasks: {}", suite.tasks.len());
|
|
25
|
-
println!("
|
|
29
|
+
println!("{ANSI_BLUE_BOLD}├─────────────────────────────────────────────────────────\x1b[0m");
|
|
26
30
|
|
|
27
31
|
let cwd = std::env::current_dir().context("failed to get current dir")?;
|
|
28
32
|
let mut results = Vec::new();
|
|
@@ -131,7 +135,7 @@ pub async fn handle_eval(suite_path: PathBuf, limit: usize, config: &MintConfig)
|
|
|
131
135
|
}
|
|
132
136
|
|
|
133
137
|
let report = aggregate_benchmark_report(&suite.name, results);
|
|
134
|
-
println!("
|
|
138
|
+
println!("{ANSI_BLUE_BOLD}├─ Final Evaluation Report ───────────────────────────────\x1b[0m");
|
|
135
139
|
println!("│ Suite: {}", report.suite_name);
|
|
136
140
|
println!(
|
|
137
141
|
"│ Tasks Completed: {}/{}",
|
|
@@ -146,7 +150,7 @@ pub async fn handle_eval(suite_path: PathBuf, limit: usize, config: &MintConfig)
|
|
|
146
150
|
println!("│ Avg Tokens: {}", report.avg_tokens);
|
|
147
151
|
println!("│ Avg Tool Calls: {:.1}", report.avg_tool_calls);
|
|
148
152
|
println!("│ Avg Retries: {:.1}", report.avg_retries);
|
|
149
|
-
println!("
|
|
153
|
+
println!("{ANSI_BLUE_BOLD}└─────────────────────────────────────────────────────────\x1b[0m");
|
|
150
154
|
|
|
151
155
|
let report_path = cwd.join("mint_eval_report.json");
|
|
152
156
|
if let Ok(json) = serde_json::to_string_pretty(&report) {
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
use std::path::Path;
|
|
2
|
+
|
|
3
|
+
use anyhow::{Result, bail};
|
|
4
|
+
use clap::Subcommand;
|
|
5
|
+
use crossterm::tty::IsTty;
|
|
6
|
+
use mint_core::{
|
|
7
|
+
BranchChange, BranchChangeOutcome, BranchInfo, change_branch, read_branch_info, read_graph,
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
use crate::{DIM, MINT, RESET, confirm};
|
|
11
|
+
|
|
12
|
+
#[derive(Debug, Subcommand)]
|
|
13
|
+
pub enum GitCommand {
|
|
14
|
+
/// Show the active branch, working tree state, and known refs.
|
|
15
|
+
Status {
|
|
16
|
+
/// Print the branch state as JSON.
|
|
17
|
+
#[arg(long)]
|
|
18
|
+
json: bool,
|
|
19
|
+
},
|
|
20
|
+
/// Print local and locally known remote branches.
|
|
21
|
+
List,
|
|
22
|
+
/// Switch to an existing local branch.
|
|
23
|
+
Switch {
|
|
24
|
+
branch: String,
|
|
25
|
+
/// Allow the change when the workspace has uncommitted changes.
|
|
26
|
+
#[arg(long)]
|
|
27
|
+
allow_dirty: bool,
|
|
28
|
+
},
|
|
29
|
+
/// Create a branch from the current HEAD and switch to it.
|
|
30
|
+
Create {
|
|
31
|
+
branch: String,
|
|
32
|
+
/// Allow the change when the workspace has uncommitted changes.
|
|
33
|
+
#[arg(long)]
|
|
34
|
+
allow_dirty: bool,
|
|
35
|
+
},
|
|
36
|
+
/// Create and switch to a local tracking branch from a known remote ref.
|
|
37
|
+
Track {
|
|
38
|
+
remote_branch: String,
|
|
39
|
+
/// Allow the change when the workspace has uncommitted changes.
|
|
40
|
+
#[arg(long)]
|
|
41
|
+
allow_dirty: bool,
|
|
42
|
+
},
|
|
43
|
+
/// Print decorated repository history as a graph.
|
|
44
|
+
Graph {
|
|
45
|
+
/// Number of commits to show, from 1 to 500.
|
|
46
|
+
#[arg(long, default_value_t = 120)]
|
|
47
|
+
limit: usize,
|
|
48
|
+
},
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
pub fn handle_git(command: GitCommand) -> Result<()> {
|
|
52
|
+
let root = std::env::current_dir()?;
|
|
53
|
+
match command {
|
|
54
|
+
GitCommand::Status { json } => print_status(&root, json),
|
|
55
|
+
GitCommand::List => print_list(&root),
|
|
56
|
+
GitCommand::Switch {
|
|
57
|
+
branch,
|
|
58
|
+
allow_dirty,
|
|
59
|
+
} => {
|
|
60
|
+
let info = apply_branch_change(
|
|
61
|
+
&root,
|
|
62
|
+
BranchChange::Switch {
|
|
63
|
+
branch: branch.clone(),
|
|
64
|
+
},
|
|
65
|
+
allow_dirty,
|
|
66
|
+
&format!("Switch to {branch}?"),
|
|
67
|
+
)?;
|
|
68
|
+
print_changed(&info)
|
|
69
|
+
}
|
|
70
|
+
GitCommand::Create {
|
|
71
|
+
branch,
|
|
72
|
+
allow_dirty,
|
|
73
|
+
} => {
|
|
74
|
+
let info = apply_branch_change(
|
|
75
|
+
&root,
|
|
76
|
+
BranchChange::Create {
|
|
77
|
+
branch: branch.clone(),
|
|
78
|
+
},
|
|
79
|
+
allow_dirty,
|
|
80
|
+
&format!("Create and switch to {branch}?"),
|
|
81
|
+
)?;
|
|
82
|
+
print_changed(&info)
|
|
83
|
+
}
|
|
84
|
+
GitCommand::Track {
|
|
85
|
+
remote_branch,
|
|
86
|
+
allow_dirty,
|
|
87
|
+
} => {
|
|
88
|
+
let info = apply_branch_change(
|
|
89
|
+
&root,
|
|
90
|
+
BranchChange::Track {
|
|
91
|
+
remote_branch: remote_branch.clone(),
|
|
92
|
+
},
|
|
93
|
+
allow_dirty,
|
|
94
|
+
&format!("Create a local tracking branch from {remote_branch}?"),
|
|
95
|
+
)?;
|
|
96
|
+
print_changed(&info)
|
|
97
|
+
}
|
|
98
|
+
GitCommand::Graph { limit } => {
|
|
99
|
+
let graph = read_graph(&root, limit).map_err(anyhow::Error::msg)?;
|
|
100
|
+
if graph.is_empty() {
|
|
101
|
+
println!("{DIM}No commits yet.{RESET}");
|
|
102
|
+
} else {
|
|
103
|
+
println!("{}", graph.join("\n"));
|
|
104
|
+
}
|
|
105
|
+
Ok(())
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
fn print_status(root: &Path, json: bool) -> Result<()> {
|
|
111
|
+
let info = read_branch_info(root).map_err(anyhow::Error::msg)?;
|
|
112
|
+
if json {
|
|
113
|
+
println!("{}", serde_json::to_string_pretty(&info)?);
|
|
114
|
+
return Ok(());
|
|
115
|
+
}
|
|
116
|
+
print_info(&info);
|
|
117
|
+
Ok(())
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
fn print_list(root: &Path) -> Result<()> {
|
|
121
|
+
let info = read_branch_info(root).map_err(anyhow::Error::msg)?;
|
|
122
|
+
ensure_repository(&info)?;
|
|
123
|
+
println!("Local branches");
|
|
124
|
+
for branch in &info.branches {
|
|
125
|
+
let marker = if info.current_branch.as_deref() == Some(branch) {
|
|
126
|
+
format!("{MINT}*{RESET}")
|
|
127
|
+
} else {
|
|
128
|
+
" ".to_string()
|
|
129
|
+
};
|
|
130
|
+
println!(" {marker} {branch}");
|
|
131
|
+
}
|
|
132
|
+
if !info.remote_branches.is_empty() {
|
|
133
|
+
println!("\nRemote branches {DIM}(locally known){RESET}");
|
|
134
|
+
for branch in &info.remote_branches {
|
|
135
|
+
println!(" {branch}");
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
Ok(())
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
fn print_changed(info: &BranchInfo) -> Result<()> {
|
|
142
|
+
ensure_repository(info)?;
|
|
143
|
+
let branch = info.current_branch.as_deref().unwrap_or("detached HEAD");
|
|
144
|
+
println!("{MINT}Switched to {branch}{RESET}");
|
|
145
|
+
Ok(())
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
fn print_info(info: &BranchInfo) {
|
|
149
|
+
if !info.is_repository {
|
|
150
|
+
println!("Not a Git repository.");
|
|
151
|
+
return;
|
|
152
|
+
}
|
|
153
|
+
let branch = info
|
|
154
|
+
.current_branch
|
|
155
|
+
.as_deref()
|
|
156
|
+
.or(info.detached_head.as_deref())
|
|
157
|
+
.unwrap_or("No branch");
|
|
158
|
+
let state = if info.is_dirty { "dirty" } else { "clean" };
|
|
159
|
+
println!("Branch: {branch}");
|
|
160
|
+
println!("Working tree: {state}");
|
|
161
|
+
println!("Local branches: {}", info.branches.len());
|
|
162
|
+
println!(
|
|
163
|
+
"Remote branches: {} {DIM}(locally known){RESET}",
|
|
164
|
+
info.remote_branches.len()
|
|
165
|
+
);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
fn apply_branch_change(
|
|
169
|
+
root: &Path,
|
|
170
|
+
change: BranchChange,
|
|
171
|
+
confirmed_dirty_workspace: bool,
|
|
172
|
+
action: &str,
|
|
173
|
+
) -> Result<BranchInfo> {
|
|
174
|
+
match change_branch(root, &change, confirmed_dirty_workspace).map_err(anyhow::Error::msg)? {
|
|
175
|
+
BranchChangeOutcome::Changed { info } => Ok(info),
|
|
176
|
+
BranchChangeOutcome::ConfirmationRequired { .. } => {
|
|
177
|
+
confirm_and_change(root, change, action)
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
fn confirm_and_change(root: &Path, change: BranchChange, action: &str) -> Result<BranchInfo> {
|
|
183
|
+
if !std::io::stdin().is_tty() || !std::io::stdout().is_tty() {
|
|
184
|
+
bail!("Workspace has uncommitted changes. Re-run with --allow-dirty to confirm.");
|
|
185
|
+
}
|
|
186
|
+
if confirm(&format!("Workspace has uncommitted changes. {action}"))? {
|
|
187
|
+
match change_branch(root, &change, true).map_err(anyhow::Error::msg)? {
|
|
188
|
+
BranchChangeOutcome::Changed { info } => Ok(info),
|
|
189
|
+
BranchChangeOutcome::ConfirmationRequired { .. } => {
|
|
190
|
+
bail!("Workspace still requires confirmation.")
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
} else {
|
|
194
|
+
bail!("Branch change cancelled.")
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
fn ensure_repository(info: &BranchInfo) -> Result<()> {
|
|
199
|
+
if info.is_repository {
|
|
200
|
+
Ok(())
|
|
201
|
+
} else {
|
|
202
|
+
bail!("The selected workspace is not a Git repository.")
|
|
203
|
+
}
|
|
204
|
+
}
|
|
@@ -114,6 +114,16 @@ pub enum LinkCommand {
|
|
|
114
114
|
Remove {
|
|
115
115
|
name: String,
|
|
116
116
|
},
|
|
117
|
+
Refresh {
|
|
118
|
+
name: String,
|
|
119
|
+
},
|
|
120
|
+
Notes {
|
|
121
|
+
name: String,
|
|
122
|
+
},
|
|
123
|
+
Save {
|
|
124
|
+
name: String,
|
|
125
|
+
text: String,
|
|
126
|
+
},
|
|
117
127
|
}
|
|
118
128
|
|
|
119
129
|
#[derive(Debug, Subcommand)]
|
|
@@ -338,6 +348,24 @@ pub fn handle_link(command: LinkCommand) -> Result<()> {
|
|
|
338
348
|
}
|
|
339
349
|
)
|
|
340
350
|
}
|
|
351
|
+
LinkCommand::Refresh { name } => {
|
|
352
|
+
println!(
|
|
353
|
+
"{}",
|
|
354
|
+
serde_json::to_string_pretty(&mint_core::refresh_linked_folder(&name)?)?
|
|
355
|
+
);
|
|
356
|
+
}
|
|
357
|
+
LinkCommand::Notes { name } => {
|
|
358
|
+
println!(
|
|
359
|
+
"{}",
|
|
360
|
+
serde_json::to_string_pretty(&mint_core::list_linked_folder_notes(&name)?)?
|
|
361
|
+
);
|
|
362
|
+
}
|
|
363
|
+
LinkCommand::Save { name, text } => {
|
|
364
|
+
println!(
|
|
365
|
+
"{}",
|
|
366
|
+
serde_json::to_string_pretty(&mint_core::save_linked_folder_note(&name, &text)?)?
|
|
367
|
+
);
|
|
368
|
+
}
|
|
341
369
|
}
|
|
342
370
|
Ok(())
|
|
343
371
|
}
|
|
@@ -7,14 +7,17 @@ use mint_core::MintConfig;
|
|
|
7
7
|
pub mod agent;
|
|
8
8
|
pub mod config;
|
|
9
9
|
pub mod eval;
|
|
10
|
+
pub mod git;
|
|
10
11
|
pub mod integrations;
|
|
11
12
|
pub mod knowledge;
|
|
12
13
|
pub mod system;
|
|
14
|
+
pub mod tailnet_web;
|
|
13
15
|
pub mod tasks;
|
|
14
16
|
|
|
15
17
|
pub use agent::*;
|
|
16
18
|
pub use config::*;
|
|
17
19
|
pub use eval::*;
|
|
20
|
+
pub use git::*;
|
|
18
21
|
pub use integrations::*;
|
|
19
22
|
pub use knowledge::*;
|
|
20
23
|
pub use system::*;
|
|
@@ -99,13 +102,26 @@ pub enum Command {
|
|
|
99
102
|
#[arg(long, default_value = "cli")]
|
|
100
103
|
chat_id: String,
|
|
101
104
|
},
|
|
105
|
+
/// Inspect and manage Git branches in the current workspace.
|
|
106
|
+
Git {
|
|
107
|
+
#[command(subcommand)]
|
|
108
|
+
command: GitCommand,
|
|
109
|
+
},
|
|
110
|
+
/// Resume a previous conversation session, or open the interactive session picker.
|
|
111
|
+
Resume {
|
|
112
|
+
/// Optional session ID to resume directly (omitting opens the interactive picker).
|
|
113
|
+
id: Option<String>,
|
|
114
|
+
},
|
|
102
115
|
/// Start the browser automation environment and enable browser actions.
|
|
103
116
|
Auto,
|
|
104
117
|
/// Launch the web UI and local API server.
|
|
105
118
|
Web {
|
|
106
119
|
/// Force development mode with Hot Module Replacement (HMR)
|
|
107
|
-
#[arg(long, default_value_t = false)]
|
|
120
|
+
#[arg(long, default_value_t = false, conflicts_with = "tailscale")]
|
|
108
121
|
dev: bool,
|
|
122
|
+
/// Share the production web UI privately over Tailscale HTTPS.
|
|
123
|
+
#[arg(long, default_value_t = false)]
|
|
124
|
+
tailscale: bool,
|
|
109
125
|
},
|
|
110
126
|
/// Start only the local API server.
|
|
111
127
|
Api {
|
|
@@ -273,8 +289,27 @@ pub async fn dispatch(cmd: Command, config: &mut MintConfig, cli: &crate::Cli) -
|
|
|
273
289
|
Command::Agent { task } => agent::handle_agent(task).await,
|
|
274
290
|
Command::Eval { suite, limit } => eval::handle_eval(suite, limit, config).await,
|
|
275
291
|
Command::Rewind { step, chat_id } => agent::handle_rewind(step, chat_id),
|
|
292
|
+
Command::Git { command } => git::handle_git(command),
|
|
293
|
+
Command::Resume { id } => {
|
|
294
|
+
mint_core::channels::start_channels();
|
|
295
|
+
mint_core::start_cron_scheduler();
|
|
296
|
+
let current_dir = std::env::current_dir()?;
|
|
297
|
+
let resume_id = match id {
|
|
298
|
+
Some(sid) => Some(sid),
|
|
299
|
+
None => crate::interactive::prompt_resume_session_picker(¤t_dir, "")?,
|
|
300
|
+
};
|
|
301
|
+
crate::interactive::run_interactive_chat_with_session(
|
|
302
|
+
cli.model.clone(),
|
|
303
|
+
cli.fast,
|
|
304
|
+
cli.plan,
|
|
305
|
+
resume_id,
|
|
306
|
+
!cli.classic,
|
|
307
|
+
)
|
|
308
|
+
.await?;
|
|
309
|
+
Ok(())
|
|
310
|
+
}
|
|
276
311
|
Command::Auto => agent::handle_auto().await,
|
|
277
|
-
Command::Web { dev } => agent::handle_web(dev).await,
|
|
312
|
+
Command::Web { dev, tailscale } => agent::handle_web(dev, tailscale).await,
|
|
278
313
|
Command::Api { port } => agent::handle_api(port).await,
|
|
279
314
|
Command::Gateway { command } => agent::handle_gateway(command).await,
|
|
280
315
|
Command::Chat {
|
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
//! Opt-in private HTTPS entry point for the existing Mint web UI.
|
|
2
|
+
|
|
3
|
+
use std::{
|
|
4
|
+
net::{IpAddr, Ipv4Addr, SocketAddr},
|
|
5
|
+
path::PathBuf,
|
|
6
|
+
process::{Child, Command, Stdio},
|
|
7
|
+
time::Duration,
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
use anyhow::{Context, Result, bail};
|
|
11
|
+
use serde_json::Value;
|
|
12
|
+
|
|
13
|
+
use crate::{BLUE, DIM, MINT, RESET, print_welcome_banner};
|
|
14
|
+
|
|
15
|
+
struct ChildGuard(Child);
|
|
16
|
+
|
|
17
|
+
impl Drop for ChildGuard {
|
|
18
|
+
fn drop(&mut self) {
|
|
19
|
+
let _ = self.0.kill();
|
|
20
|
+
let _ = self.0.wait();
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
fn project_root() -> Result<PathBuf> {
|
|
25
|
+
let cwd = std::env::current_dir()?;
|
|
26
|
+
let exe = std::env::current_exe()?;
|
|
27
|
+
exe.ancestors()
|
|
28
|
+
.chain(cwd.ancestors())
|
|
29
|
+
.find(|path| path.join("package.json").exists())
|
|
30
|
+
.map(PathBuf::from)
|
|
31
|
+
.context("Could not find the Mint project root (package.json)")
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
fn tailscale(args: &[&str]) -> Result<String> {
|
|
35
|
+
let output = Command::new("tailscale").args(args).output().context(
|
|
36
|
+
"Tailscale is not installed. Install it and sign in on this computer and your phone first",
|
|
37
|
+
)?;
|
|
38
|
+
if !output.status.success() {
|
|
39
|
+
bail!(
|
|
40
|
+
"tailscale {} failed: {}",
|
|
41
|
+
args.join(" "),
|
|
42
|
+
String::from_utf8_lossy(&output.stderr).trim()
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
Ok(String::from_utf8(output.stdout).context("Tailscale returned invalid UTF-8")?)
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
fn tailnet_url(status: &Value) -> Result<String> {
|
|
49
|
+
if status["BackendState"] != "Running" {
|
|
50
|
+
bail!("Tailscale is not connected. Sign in and connect this computer first");
|
|
51
|
+
}
|
|
52
|
+
let name = status["Self"]["DNSName"]
|
|
53
|
+
.as_str()
|
|
54
|
+
.map(|name| name.trim_end_matches('.'))
|
|
55
|
+
.filter(|name| !name.is_empty())
|
|
56
|
+
.context("Tailscale did not report a MagicDNS name; enable MagicDNS for this tailnet")?;
|
|
57
|
+
Ok(format!("https://{name}"))
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
fn https_443_in_use(status: &Value) -> bool {
|
|
61
|
+
let Some(config) = status.as_object() else {
|
|
62
|
+
return true; // unknown status format: never risk replacing a route
|
|
63
|
+
};
|
|
64
|
+
if config
|
|
65
|
+
.get("TCP")
|
|
66
|
+
.unwrap_or(&Value::Null)
|
|
67
|
+
.as_object()
|
|
68
|
+
.is_some_and(|ports| ports.contains_key("443"))
|
|
69
|
+
|| config
|
|
70
|
+
.get("Web")
|
|
71
|
+
.unwrap_or(&Value::Null)
|
|
72
|
+
.as_object()
|
|
73
|
+
.is_some_and(|hosts| hosts.keys().any(|host| host.ends_with(":443")))
|
|
74
|
+
{
|
|
75
|
+
return true;
|
|
76
|
+
}
|
|
77
|
+
config
|
|
78
|
+
.get("Foreground")
|
|
79
|
+
.unwrap_or(&Value::Null)
|
|
80
|
+
.as_object()
|
|
81
|
+
.is_some_and(|sessions| sessions.values().any(https_443_in_use))
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
async fn wait_for_port(port: u16) -> Result<()> {
|
|
85
|
+
let addr = SocketAddr::new(IpAddr::V4(Ipv4Addr::LOCALHOST), port);
|
|
86
|
+
for _ in 0..50 {
|
|
87
|
+
if tokio::net::TcpStream::connect(addr).await.is_ok() {
|
|
88
|
+
return Ok(());
|
|
89
|
+
}
|
|
90
|
+
tokio::time::sleep(Duration::from_millis(100)).await;
|
|
91
|
+
}
|
|
92
|
+
bail!("Local port {port} did not become ready; check whether it is already in use")
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
async fn shutdown_signal() {
|
|
96
|
+
#[cfg(unix)]
|
|
97
|
+
{
|
|
98
|
+
use tokio::signal::unix::{SignalKind, signal};
|
|
99
|
+
if let Ok(mut terminate) = signal(SignalKind::terminate()) {
|
|
100
|
+
tokio::select! {
|
|
101
|
+
_ = tokio::signal::ctrl_c() => {},
|
|
102
|
+
_ = terminate.recv() => {},
|
|
103
|
+
}
|
|
104
|
+
return;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
let _ = tokio::signal::ctrl_c().await;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
pub async fn run() -> Result<()> {
|
|
111
|
+
let root = project_root()?;
|
|
112
|
+
if !root.join("out/web/index-web.html").exists() {
|
|
113
|
+
bail!("Build the production Web UI first: npm run build:web");
|
|
114
|
+
}
|
|
115
|
+
let status: Value = serde_json::from_str(&tailscale(&["status", "--json"])?)
|
|
116
|
+
.context("Could not read Tailscale status")?;
|
|
117
|
+
let url = tailnet_url(&status)?;
|
|
118
|
+
let serve_status: Value = serde_json::from_str(&tailscale(&["serve", "status", "--json"])?)
|
|
119
|
+
.context("Could not read Tailscale Serve status")?;
|
|
120
|
+
if https_443_in_use(&serve_status) {
|
|
121
|
+
bail!("Tailscale Serve already uses HTTPS port 443; Mint will not replace it");
|
|
122
|
+
}
|
|
123
|
+
for port in [9000, 3000] {
|
|
124
|
+
let addr = SocketAddr::new(IpAddr::V4(Ipv4Addr::LOCALHOST), port);
|
|
125
|
+
if tokio::net::TcpStream::connect(addr).await.is_ok() {
|
|
126
|
+
bail!("Local port {port} is already in use; stop the existing service first");
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
let config = mint_core::load_config()?;
|
|
131
|
+
print_welcome_banner(&config);
|
|
132
|
+
|
|
133
|
+
let vite = root.join("node_modules/vite/bin/vite.js");
|
|
134
|
+
if !vite.exists() {
|
|
135
|
+
bail!("Vite is missing. Run npm install in the Mint project first");
|
|
136
|
+
}
|
|
137
|
+
let web = ChildGuard(
|
|
138
|
+
Command::new("node")
|
|
139
|
+
.current_dir(&root)
|
|
140
|
+
.env("MINT_TAILSCALE_HOST", url.trim_start_matches("https://"))
|
|
141
|
+
.arg(vite)
|
|
142
|
+
.args([
|
|
143
|
+
"preview",
|
|
144
|
+
"--config",
|
|
145
|
+
"vite.config.web.ts",
|
|
146
|
+
"--host",
|
|
147
|
+
"127.0.0.1",
|
|
148
|
+
])
|
|
149
|
+
.stdout(Stdio::null())
|
|
150
|
+
.stderr(Stdio::inherit())
|
|
151
|
+
.spawn()
|
|
152
|
+
.context("Could not start the production Web UI")?,
|
|
153
|
+
);
|
|
154
|
+
wait_for_port(9000).await?;
|
|
155
|
+
|
|
156
|
+
let api_addr = SocketAddr::new(IpAddr::V4(Ipv4Addr::LOCALHOST), 3000);
|
|
157
|
+
let mut api = tokio::spawn(mint_core::api_server::start_api_server_on(api_addr));
|
|
158
|
+
if let Err(error) = wait_for_port(3000).await {
|
|
159
|
+
api.abort();
|
|
160
|
+
return Err(error);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
let mut serve = match Command::new("tailscale")
|
|
164
|
+
.args(["serve", "--https=443", "http://127.0.0.1:9000"])
|
|
165
|
+
.stdout(Stdio::inherit())
|
|
166
|
+
.stderr(Stdio::inherit())
|
|
167
|
+
.spawn()
|
|
168
|
+
{
|
|
169
|
+
Ok(child) => ChildGuard(child),
|
|
170
|
+
Err(error) => {
|
|
171
|
+
api.abort();
|
|
172
|
+
return Err(error).context("Could not start Tailscale Serve");
|
|
173
|
+
}
|
|
174
|
+
};
|
|
175
|
+
|
|
176
|
+
println!("\n{MINT}Mint Web is starting in your tailnet{RESET}\n");
|
|
177
|
+
println!(" {BLUE}Mobile HTTPS:{RESET} {MINT}{url}{RESET}");
|
|
178
|
+
println!(" {BLUE}Local Web UI:{RESET} {MINT}http://127.0.0.1:9000{RESET}");
|
|
179
|
+
println!(" {DIM}Open the HTTPS URL after Tailscale Serve reports it is available.{RESET}");
|
|
180
|
+
println!(" {DIM}Press Ctrl+C to stop Mint Web and Tailscale Serve.{RESET}\n");
|
|
181
|
+
|
|
182
|
+
let result = loop {
|
|
183
|
+
tokio::select! {
|
|
184
|
+
_ = shutdown_signal() => break Ok(()),
|
|
185
|
+
outcome = &mut api => {
|
|
186
|
+
break match outcome {
|
|
187
|
+
Ok(Ok(())) => Ok(()),
|
|
188
|
+
Ok(Err(error)) => Err(error.into()),
|
|
189
|
+
Err(error) => Err(error.into()),
|
|
190
|
+
};
|
|
191
|
+
}
|
|
192
|
+
_ = tokio::time::sleep(Duration::from_secs(1)) => {
|
|
193
|
+
if let Some(status) = serve.0.try_wait()? {
|
|
194
|
+
break Err(anyhow::anyhow!("Tailscale Serve stopped ({status}). Check that HTTPS certificates and Serve are enabled for this tailnet"));
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
};
|
|
199
|
+
api.abort();
|
|
200
|
+
drop(serve);
|
|
201
|
+
drop(web);
|
|
202
|
+
result
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
#[cfg(test)]
|
|
206
|
+
mod tests {
|
|
207
|
+
use super::*;
|
|
208
|
+
use serde_json::json;
|
|
209
|
+
|
|
210
|
+
#[test]
|
|
211
|
+
fn requires_connected_tailnet_with_dns_name() {
|
|
212
|
+
assert_eq!(
|
|
213
|
+
tailnet_url(
|
|
214
|
+
&json!({"BackendState":"Running","Self":{"DNSName":"mint.example.ts.net."}})
|
|
215
|
+
)
|
|
216
|
+
.unwrap(),
|
|
217
|
+
"https://mint.example.ts.net"
|
|
218
|
+
);
|
|
219
|
+
assert!(tailnet_url(&json!({"BackendState":"Stopped"})).is_err());
|
|
220
|
+
assert!(tailnet_url(&json!({"BackendState":"Running"})).is_err());
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
#[test]
|
|
224
|
+
fn existing_serve_routes_are_never_overwritten() {
|
|
225
|
+
assert!(!https_443_in_use(&json!({})));
|
|
226
|
+
assert!(!https_443_in_use(&json!({"TCP":{"8443":{}}})));
|
|
227
|
+
assert!(https_443_in_use(
|
|
228
|
+
&json!({"Web":{"mint.example.ts.net:443":{}}})
|
|
229
|
+
));
|
|
230
|
+
assert!(https_443_in_use(&json!({"TCP":{"443":{"HTTPS":true}}})));
|
|
231
|
+
assert!(https_443_in_use(
|
|
232
|
+
&json!({"Foreground":{"session":{"Web":{"mint.example.ts.net:443":{}}}}})
|
|
233
|
+
));
|
|
234
|
+
}
|
|
235
|
+
}
|