@pheem49/mint 1.15.0 → 1.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Cargo.lock +1012 -69
- package/Cargo.toml +5 -2
- package/LICENSE +21 -654
- package/README.md +92 -817
- package/Release_Note.md +53 -560
- package/apps/mint-companion/src-tauri/Cargo.toml +20 -0
- package/apps/mint-companion/src-tauri/build.rs +3 -0
- package/apps/mint-companion/src-tauri/src/main.rs +468 -0
- package/apps/mint-companion/tsconfig.json +20 -0
- package/apps/mint-companion/vite.config.ts +3 -0
- package/components.json +19 -0
- package/crates/mint-cli/Cargo.toml +6 -0
- package/crates/mint-cli/src/agent/live_status.rs +187 -39
- package/crates/mint-cli/src/agent.rs +323 -95
- package/crates/mint-cli/src/commands/agent.rs +69 -55
- package/crates/mint-cli/src/commands/integrations.rs +7 -0
- package/crates/mint-cli/src/commands/knowledge.rs +12 -32
- package/crates/mint-cli/src/commands/mod.rs +44 -0
- package/crates/mint-cli/src/image.rs +31 -33
- package/crates/mint-cli/src/interactive/chat_tui.rs +3594 -483
- package/crates/mint-cli/src/interactive/input_box.rs +56 -6
- package/crates/mint-cli/src/interactive/slash_commands.rs +208 -56
- package/crates/mint-cli/src/interactive/tool_activity.rs +328 -0
- package/crates/mint-cli/src/interactive.rs +64 -40
- package/crates/mint-cli/src/main.rs +13 -7
- package/crates/mint-cli/src/mcp.rs +5 -0
- package/crates/mint-cli/src/mod_host.rs +6 -0
- package/crates/mint-cli/src/mods_cli.rs +62 -0
- package/crates/mint-cli/src/mods_ui.rs +187 -0
- package/crates/mint-cli/src/onboard.rs +5 -31
- package/crates/mint-cli/src/terminal_theme.rs +3 -1
- package/crates/mint-cli/src/updater.rs +56 -2
- package/crates/mint-cli/tests/library_intake.rs +77 -0
- package/crates/mint-cli/tests/mods_testing.rs +133 -0
- package/crates/mint-companion-protocol/Cargo.toml +10 -0
- package/crates/mint-companion-protocol/src/lib.rs +163 -0
- package/crates/mint-core/Cargo.toml +6 -3
- package/crates/mint-core/build.rs +26 -0
- package/crates/mint-core/src/agent/chat.rs +167 -39
- package/crates/mint-core/src/agent/code_tools.rs +15 -0
- package/crates/mint-core/src/agent/memory/sources.rs +240 -0
- package/crates/mint-core/src/agent/memory.rs +147 -13
- package/crates/mint-core/src/agent/skill_inventory.rs +325 -0
- package/crates/mint-core/src/agent/skills.rs +437 -90
- package/crates/mint-core/src/agent.rs +1 -0
- package/crates/mint-core/src/api_server/routes/background_jobs.rs +310 -0
- package/crates/mint-core/src/api_server/routes/chat.rs +216 -199
- package/crates/mint-core/src/api_server/routes/html_preview.rs +77 -0
- package/crates/mint-core/src/api_server/routes/library.rs +97 -0
- package/crates/mint-core/src/api_server/routes/media_gen.rs +10 -57
- package/crates/mint-core/src/api_server/routes/misc.rs +104 -107
- package/crates/mint-core/src/api_server/routes/mod.rs +6 -0
- package/crates/mint-core/src/api_server/routes/mods.rs +31 -0
- package/crates/mint-core/src/api_server/routes/sessions.rs +41 -0
- package/crates/mint-core/src/api_server/routes/skills_subagents.rs +12 -42
- package/crates/mint-core/src/api_server/routes/slash.rs +50 -1
- package/crates/mint-core/src/api_server/routes/sources.rs +101 -0
- package/crates/mint-core/src/api_server.rs +118 -9
- package/crates/mint-core/src/avatar_bridge.rs +11 -2
- package/crates/mint-core/src/browser/session.rs +52 -0
- package/crates/mint-core/src/companion.rs +716 -0
- package/crates/mint-core/src/cron/scheduler.rs +34 -2
- package/crates/mint-core/src/integrations/channels.rs +87 -345
- package/crates/mint-core/src/integrations/mcp.rs +397 -50
- package/crates/mint-core/src/integrations/mcp_calls.rs +823 -0
- package/crates/mint-core/src/integrations/mcp_catalog.rs +267 -0
- package/crates/mint-core/src/integrations/mcp_device.rs +319 -0
- package/crates/mint-core/src/integrations/mcp_result.rs +356 -0
- package/crates/mint-core/src/integrations/webhooks.rs +539 -0
- package/crates/mint-core/src/integrations.rs +2 -0
- package/crates/mint-core/src/lib.rs +85 -26
- package/crates/mint-core/src/media/gemini_live.rs +134 -14
- package/crates/mint-core/src/media/image_models.rs +3 -27
- package/crates/mint-core/src/media/image_workflow.rs +216 -0
- package/crates/mint-core/src/media/library/intake.rs +144 -0
- package/crates/mint-core/src/media/library/migration.rs +56 -0
- package/crates/mint-core/src/media/library/removal.rs +55 -0
- package/crates/mint-core/src/media/library/tests.rs +730 -0
- package/crates/mint-core/src/media/library/thumbnails.rs +72 -0
- package/crates/mint-core/src/media/library.rs +545 -0
- package/crates/mint-core/src/media/model_catalog.rs +375 -0
- package/crates/mint-core/src/media/pictures.rs +79 -222
- package/crates/mint-core/src/media/video_models.rs +3 -22
- package/crates/mint-core/src/media.rs +3 -0
- package/crates/mint-core/src/mods/manager.rs +1124 -0
- package/crates/mint-core/src/mods/mod.rs +569 -0
- package/crates/mint-core/src/mods/operations.rs +204 -0
- package/crates/mint-core/src/mods/session.rs +146 -0
- package/crates/mint-core/src/mods/slash.rs +59 -0
- package/crates/mint-core/src/mods/telemetry.rs +306 -0
- package/crates/mint-core/src/orchestration/approvals.rs +344 -0
- package/crates/mint-core/src/orchestration/context_render.rs +104 -0
- package/crates/mint-core/src/orchestration/mcp_review.rs +153 -0
- package/crates/mint-core/src/orchestration/memory_skill.rs +104 -32
- package/crates/mint-core/src/orchestration/mod.rs +2139 -244
- package/crates/mint-core/src/orchestration/mod_authoring_regressions.rs +209 -0
- package/crates/mint-core/src/orchestration/progress_clock.rs +80 -0
- package/crates/mint-core/src/orchestration/repeated_failures.rs +116 -0
- package/crates/mint-core/src/orchestration/review_regressions.rs +449 -0
- package/crates/mint-core/src/orchestration/run_control.rs +196 -0
- package/crates/mint-core/src/orchestration/tools/files.rs +161 -14
- package/crates/mint-core/src/orchestration/tools/media.rs +37 -41
- package/crates/mint-core/src/orchestration/tools/misc.rs +3 -2
- package/crates/mint-core/src/orchestration/tools/mod.rs +2 -0
- package/crates/mint-core/src/orchestration/tools/mods.rs +161 -0
- package/crates/mint-core/src/orchestration/tools/plugins_mcp.rs +303 -71
- package/crates/mint-core/src/orchestration/tools/shell.rs +95 -2
- package/crates/mint-core/src/orchestration/workspace_helpers.rs +4 -1
- package/crates/mint-core/src/prompts/agent.rs +17 -2
- package/crates/mint-core/src/prompts/tool_catalog.rs +28 -2
- package/crates/mint-core/src/search/knowledge.rs +7 -1
- package/crates/mint-core/src/search/linked_folders/index.rs +177 -13
- package/crates/mint-core/src/search/linked_folders.rs +83 -2
- package/crates/mint-core/src/slash/catalog.rs +1 -1
- package/crates/mint-core/src/slash/mod.rs +174 -11
- package/crates/mint-core/src/slash/mods.rs +155 -0
- package/crates/mint-core/src/system/bg_shell.rs +1129 -95
- package/crates/mint-core/src/system/config.rs +5 -10
- package/crates/mint-core/src/system/html_preview.rs +398 -0
- package/crates/mint-core/src/system/mint_web.rs +164 -0
- package/crates/mint-core/src/system/release_notes.rs +18 -0
- package/crates/mint-core/src/system/shell.rs +21 -6
- package/crates/mint-core/src/system/workspace.rs +72 -8
- package/crates/mint-core/src/system/workspace_history.rs +604 -0
- package/crates/mint-core/src/system.rs +4 -0
- package/crates/mint-core/tests/background_retention.rs +34 -0
- package/crates/mint-core/tests/background_shutdown.rs +24 -0
- package/crates/mint-core/tests/library_http.rs +209 -0
- package/crates/mint-core/tests/mcp_contract.rs +283 -0
- package/crates/mint-core/tests/mcp_stdio.rs +11 -10
- package/crates/mint-core/tests/media_model_catalog_http.rs +403 -0
- package/crates/mint-core/tests/mods_http.rs +215 -0
- package/crates/mint-core/tests/terminal_shutdown.rs +109 -0
- package/crates/mint-mod-runtime/Cargo.toml +18 -0
- package/crates/mint-mod-runtime/src/lib.rs +507 -0
- package/crates/mint-mod-runtime/src/sdk.js +56 -0
- package/crates/mint-mod-runtime/src/test_sdk.js +32 -0
- package/crates/mint-mod-runtime/src/testing.rs +94 -0
- package/crates/mint-mod-runtime/tests/runtime.rs +156 -0
- package/docs/mods/AUTHORING.md +61 -0
- package/docs/mods/README.md +139 -0
- package/docs/mods/TESTING.md +56 -0
- package/docs/mods/mint-mods.d.ts +66 -0
- package/examples/device-mcp/README.md +22 -0
- package/examples/device-mcp/contract.md +49 -0
- package/examples/device-mcp/mock-device.mjs +66 -0
- package/examples/device-mcp/server.mjs +48 -0
- package/examples/device-mcp/server.test.mjs +78 -0
- package/examples/mods/task-checklist/README.md +1 -0
- package/examples/mods/task-checklist/main.ts +17 -0
- package/examples/mods/task-checklist/manifest.json +1 -0
- package/examples/mods/task-checklist/tests/checklist.test.ts +15 -0
- package/examples/mods/token-meter/README.md +1 -0
- package/examples/mods/token-meter/main.ts +8 -0
- package/examples/mods/token-meter/manifest.json +1 -0
- package/examples/mods/tool-guard/README.md +1 -0
- package/examples/mods/tool-guard/main.ts +9 -0
- package/examples/mods/tool-guard/manifest.json +1 -0
- package/out/web/assets/CliSessionsView-CtzUJpK_.css +1 -0
- package/out/web/assets/CliSessionsView-D7hw0Mgj.js +1 -0
- package/out/web/assets/CodeReviewPage-C7bEOJfd.js +4 -0
- package/out/web/assets/CodeReviewPage-Dte9uLiL.css +1 -0
- package/out/web/assets/CommandPalette-0RrF-AOT.js +1 -0
- package/out/web/assets/ImageStudioPanel-CdxkAf_r.js +1 -0
- package/out/web/assets/LibraryPage--Qfisp6D.js +2 -0
- package/out/web/assets/LibraryPage-DAxUTAg7.css +1 -0
- package/out/web/assets/LinkedFoldersView-2nfZbDgN.js +1 -0
- package/out/web/assets/McpRegistryPicker-h9uS8_wT.js +1 -0
- package/out/web/assets/McpServersView-slfQJzNB.js +1 -0
- package/out/web/assets/MintDashboard-BSR5XpXh.js +25 -0
- package/out/web/assets/MintDashboard-CWUcCGhd.css +1 -0
- package/out/web/assets/PluginsView-l7LSm503.js +1 -0
- package/out/web/assets/ScheduledTasksView-CttmLbq1.js +1 -0
- package/out/web/assets/SettingsWindow-BCMLYvEV.js +4 -0
- package/out/web/assets/SettingsWindow-DcMVmU9u.css +1 -0
- package/out/web/assets/SkillsView-rNs1qr_U.js +2 -0
- package/out/web/assets/ToolSurfacePage-B9DzEPWN.js +37 -0
- package/out/web/assets/ToolSurfacePage-CTfgggF2.css +1 -0
- package/out/web/assets/VeoStudioPanel-DiJs_Cg2.js +4 -0
- package/out/web/assets/WorkspaceSelector-B2xIp04D.js +1 -0
- package/out/web/assets/WorkspaceSelector-Ca8uJOsS.css +1 -0
- package/out/web/assets/{abnfDiagram-VCTEODGH-ByMyfanq.js → abnfDiagram-VCTEODGH-CD0CjoGl.js} +1 -1
- package/out/web/assets/{architecture-7GRP2DOG-CLq2kEOB.js → architecture-7GRP2DOG-RKV83OeZ.js} +1 -1
- package/out/web/assets/{architectureDiagram-5GKGNRK7-6PoVSmNG.js → architectureDiagram-5GKGNRK7-nN_HAFct.js} +1 -1
- package/out/web/assets/{blockDiagram-NRAW4CY4-cKw9mAKi.js → blockDiagram-NRAW4CY4-BrrqzHW5.js} +1 -1
- package/out/web/assets/{c4Diagram-UCG6FXSJ-Cqy8N5Ge.js → c4Diagram-UCG6FXSJ-DTdV8_zE.js} +1 -1
- package/out/web/assets/{chunk-75Z2AOVW-3qybijF5.js → chunk-75Z2AOVW-_M0z5olV.js} +1 -1
- package/out/web/assets/chunk-CKBBP62Z-BpQEgeHF.js +2 -0
- package/out/web/assets/{chunk-CLGD4ZFX-CndDQkww.js → chunk-CLGD4ZFX-D54yGvGS.js} +1 -1
- package/out/web/assets/{chunk-DSNCTWBM-Cc4NxvgD.js → chunk-DSNCTWBM-C-gvT2ru.js} +1 -1
- package/out/web/assets/{chunk-DU6HZSFF-drzh6GsU.js → chunk-DU6HZSFF-CnFngIhW.js} +1 -1
- package/out/web/assets/{chunk-F27PBJKO-FiY35l4v.js → chunk-F27PBJKO-BqtWrnEO.js} +1 -1
- package/out/web/assets/{chunk-G27WJ6UU-Bjt9Il4A.js → chunk-G27WJ6UU-Ckoq5mi2.js} +1 -1
- package/out/web/assets/{chunk-GMAD6QVW-Bppi3Ctd.js → chunk-GMAD6QVW-BuhEcgHq.js} +1 -1
- package/out/web/assets/{chunk-JQ64N6SF-DGg5kcEV.js → chunk-JQ64N6SF-CF8T7GiZ.js} +1 -1
- package/out/web/assets/{chunk-LCL6LL3I-CCYcjd7p.js → chunk-LCL6LL3I-BhXV9zyH.js} +1 -1
- package/out/web/assets/{chunk-OBVCFTLP-DJeNil5M.js → chunk-OBVCFTLP-CRIkunUB.js} +1 -1
- package/out/web/assets/{chunk-P2QGCYS3-lRzkRjBB.js → chunk-P2QGCYS3-UFEU6BxZ.js} +1 -1
- package/out/web/assets/{chunk-POPQ4Y6H-DouASMBW.js → chunk-POPQ4Y6H-CQcrNbjr.js} +1 -1
- package/out/web/assets/{chunk-PWAF6VOD-DMmD1vVf.js → chunk-PWAF6VOD-Cc2uVDsG.js} +1 -1
- package/out/web/assets/{chunk-R7TYR2AO-CYLA5UC5.js → chunk-R7TYR2AO-DiCxzdAY.js} +1 -1
- package/out/web/assets/{chunk-RHFEMEQ7-BiXwEcUT.js → chunk-RHFEMEQ7-b7hnPmrR.js} +1 -1
- package/out/web/assets/{chunk-SVP7TREG-BV-zPslF.js → chunk-SVP7TREG-Bu_yYb-V.js} +1 -1
- package/out/web/assets/{chunk-TEH6E4GO-B2RGEohZ.js → chunk-TEH6E4GO-G4Cdlyrt.js} +1 -1
- package/out/web/assets/classDiagram-DTDB5LWJ-RnC2mYO4.js +1 -0
- package/out/web/assets/classDiagram-v2-JRS7N3AN-RnC2mYO4.js +1 -0
- package/out/web/assets/config-CnvCChUM.js +2 -0
- package/out/web/assets/config-DM6oIVO3.css +1 -0
- package/out/web/assets/core-DsKkQ7ig.js +1 -0
- package/out/web/assets/{cynefin-OW5HDTMX-Cas4csHM.js → cynefin-OW5HDTMX-CnzQfOGp.js} +1 -1
- package/out/web/assets/{cynefinDiagram-5FMLGOSQ-Bbpj66Y3.js → cynefinDiagram-5FMLGOSQ-DVtQnfpm.js} +1 -1
- package/out/web/assets/{dagre-3AP2YEHR-B0-2RDEd.js → dagre-3AP2YEHR-DG76_k5_.js} +1 -1
- package/out/web/assets/{diagram-S7CK7UJ4-BdzEjUyH.js → diagram-S7CK7UJ4-CaouUoze.js} +1 -1
- package/out/web/assets/{diagram-UQ7AKVKN-CJDwyPxF.js → diagram-UQ7AKVKN-B4bEc26B.js} +1 -1
- package/out/web/assets/{diagram-VSXAHHWV-BxaG1r_B.js → diagram-VSXAHHWV-BJ86Ov2Y.js} +1 -1
- package/out/web/assets/{diagram-VX7I27RA-BMmUqm8f.js → diagram-VX7I27RA-7hH5IPYf.js} +1 -1
- package/out/web/assets/{diagram-Z3DM3KII-CFtd03eE.js → diagram-Z3DM3KII-CCM4clo8.js} +1 -1
- package/out/web/assets/dist-js-BkYNznHX.js +1 -0
- package/out/web/assets/{ebnfDiagram-PWID7BFC-DwAen1hO.js → ebnfDiagram-PWID7BFC-Da7WAM3k.js} +1 -1
- package/out/web/assets/{erDiagram-SSCWMZ5O-BCZSHACj.js → erDiagram-SSCWMZ5O-CzzmnZWT.js} +1 -1
- package/out/web/assets/{event-ChBVpRy0.js → event-Cdt7Byyj.js} +1 -1
- package/out/web/assets/{eventmodeling-NTZA5JFV-XHStE4E_.js → eventmodeling-NTZA5JFV-xcfsA0XD.js} +1 -1
- package/out/web/assets/flowDiagram-A5DVABFB-JdtH1673.js +1 -0
- package/out/web/assets/{ganttDiagram-EL5Y4UJY-BAEu1Cql.js → ganttDiagram-EL5Y4UJY-B3ClFGmL.js} +1 -1
- package/out/web/assets/{gitGraph-4MIJSDKK-r32Vyper.js → gitGraph-4MIJSDKK-BZ_y_cDU.js} +1 -1
- package/out/web/assets/{gitGraphDiagram-WWUBYQGX-z9o9qt6V.js → gitGraphDiagram-WWUBYQGX-drhRSYm3.js} +1 -1
- package/out/web/assets/index-BZ9xgmMP.css +1 -0
- package/out/web/assets/index-Ca8cCS4h.js +168 -0
- package/out/web/assets/{info-A6RAGUB7-BvLaC2cw.js → info-A6RAGUB7-B7I3K0F1.js} +1 -1
- package/out/web/assets/{infoDiagram-RXCK75RN-Be6WAXXw.js → infoDiagram-RXCK75RN-deX_1MPh.js} +1 -1
- package/out/web/assets/{ishikawaDiagram-5VMMS53U-DZjoHJHC.js → ishikawaDiagram-5VMMS53U-s38yo28y.js} +1 -1
- package/out/web/assets/{journeyDiagram-EYS64GPL-CtVkjkGm.js → journeyDiagram-EYS64GPL-CZn2kB8b.js} +1 -1
- package/out/web/assets/jsx-runtime-DN4NhQUK.js +1 -0
- package/out/web/assets/{kanban-definition-3QL26DDD-CW5FMv1w.js → kanban-definition-3QL26DDD-DodjgySL.js} +1 -1
- package/out/web/assets/markdown-CMhYIcWB.js +39 -0
- package/out/web/assets/{mermaid-parser.core-aUgCqsZ5.js → mermaid-parser.core-Whu2rlJC.js} +3 -3
- package/out/web/assets/{mermaid.core-D57sEiSL.js → mermaid.core-CKyPo8VH.js} +4 -4
- package/out/web/assets/{mindmap-definition-FBJOCRG2-DAmSpM3a.js → mindmap-definition-FBJOCRG2-260WBDxZ.js} +1 -1
- package/out/web/assets/modelManager-CUaGWMWu.js +2 -0
- package/out/web/assets/{oauthManager-9jxicDWJ.js → oauthManager-DlNhXJr6.js} +1 -1
- package/out/web/assets/{packet-AYTQ26CC-DJ27iIoJ.js → packet-AYTQ26CC-CEeIRKRG.js} +1 -1
- package/out/web/assets/{pegDiagram-XKGWAZYB-Bj3ii-gS.js → pegDiagram-XKGWAZYB-BYadI-KO.js} +1 -1
- package/out/web/assets/{pie-WAS4IAKB-DG5mCUbc.js → pie-WAS4IAKB-D8uf4dh5.js} +1 -1
- package/out/web/assets/{pieDiagram-E7YTZNPT-BrJLPnDA.js → pieDiagram-E7YTZNPT-CjSDy4hO.js} +1 -1
- package/out/web/assets/{quadrantDiagram-AXDQQJYC-3x_TmF3j.js → quadrantDiagram-AXDQQJYC-B8D3gU5d.js} +1 -1
- package/out/web/assets/{radar-RG4KPBEZ-CrXaTTuV.js → radar-RG4KPBEZ-DZJxnokY.js} +1 -1
- package/out/web/assets/{railroad-74A4TZTK-BpqMH9BE.js → railroad-74A4TZTK-DBysUiUi.js} +1 -1
- package/out/web/assets/{railroad-abnf-HS5TGJTU-DHI0uLlV.js → railroad-abnf-HS5TGJTU-CHWxoJYg.js} +1 -1
- package/out/web/assets/{railroad-ebnf-LZEXJU2U-CQCb316y.js → railroad-ebnf-LZEXJU2U-DDv7X6bY.js} +1 -1
- package/out/web/assets/{railroad-peg-WCYAUIDC-Ph1giKkH.js → railroad-peg-WCYAUIDC-DpfcYYNJ.js} +1 -1
- package/out/web/assets/{railroadDiagram-O6MQD6OU-BRq6wIxx.js → railroadDiagram-O6MQD6OU-CYtyv0t3.js} +1 -1
- package/out/web/assets/{requirementDiagram-EFPCY7ZU-DIJj6G1g.js → requirementDiagram-EFPCY7ZU-D2X-Ewik.js} +1 -1
- package/out/web/assets/{sankeyDiagram-P5KCCOFB-DZajSryq.js → sankeyDiagram-P5KCCOFB-Bn2x6C4Y.js} +1 -1
- package/out/web/assets/{sequenceDiagram-WJ2MYXX4-DxJCWyZS.js → sequenceDiagram-WJ2MYXX4-BvFLKtPd.js} +1 -1
- package/out/web/assets/{stateDiagram-HBIQ2CUA-k6voi8Vf.js → stateDiagram-HBIQ2CUA-Bx0GWeaY.js} +1 -1
- package/out/web/assets/stateDiagram-v2-4QOOHH4V--hol1yg_.js +1 -0
- package/out/web/assets/{swimlanes-XN3QIQJK-igYhTjXB.js → swimlanes-XN3QIQJK-CCma0T7L.js} +1 -1
- package/out/web/assets/swimlanesDiagram-VK2B7HYN-BkohoVsU.js +8 -0
- package/out/web/assets/{timeline-definition-24CTP7MA-Dke2p93p.js → timeline-definition-24CTP7MA-iCRhhJ7C.js} +1 -1
- package/out/web/assets/{treeView-Q6P3EWNA-hNELnXUs.js → treeView-Q6P3EWNA-DZ-y08qp.js} +1 -1
- package/out/web/assets/{treemap-WGGIJYW6-D2B6wDsx.js → treemap-WGGIJYW6-De0CxzMx.js} +1 -1
- package/out/web/assets/{vennDiagram-4TSXK5OY-CDkW7rUP.js → vennDiagram-4TSXK5OY-w_7aZ6xe.js} +1 -1
- package/out/web/assets/{wardley-WFR3VGLG-BECdXETi.js → wardley-WFR3VGLG-DT0y0xJ4.js} +1 -1
- package/out/web/assets/{wardleyDiagram-VM6X3IG4-B5BycpQ4.js → wardleyDiagram-VM6X3IG4-DAdXELbQ.js} +1 -1
- package/out/web/assets/window-BJCVtyET.js +1 -0
- package/out/web/assets/{xychartDiagram-S5SC5T6Z-CtJS3b--.js → xychartDiagram-S5SC5T6Z-IZIXf3Vo.js} +1 -1
- package/out/web/index-web.html +3 -2
- package/out/web/index.html +3 -2
- package/package.json +71 -22
- package/shared-modules/.github/workflows/ci.yml +120 -0
- package/shared-modules/.github/workflows/update.yaml +28 -0
- package/slash-commands.json +7 -2
- package/src/bin/auto-build.js +66 -0
- package/src/bin/desktop.js +113 -0
- package/src/bin/desktop.test.js +113 -0
- package/src/bin/index.js +18 -25
- package/src/bin/index.test.js +89 -0
- package/src/bin/measure-effects.mjs +53 -0
- package/src/bin/package.test.js +28 -0
- package/src/bin/release-notes.test.js +84 -0
- package/src/bin/styles.test.js +20 -0
- package/src/bin/web.js +5 -0
- package/src/bin/web.test.js +39 -0
- package/src/renderer/index.html +0 -2
- package/src/renderer/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +1 -1
- package/src/renderer/shared/agentProgress.ts +33 -0
- package/src/renderer/shared/components/AgentActivityDrawer.tsx +3 -2
- package/src/renderer/shared/components/AgentActivityTable.tsx +1 -1
- package/src/renderer/shared/components/ApprovalCard.test.tsx +24 -0
- package/src/renderer/shared/components/ApprovalCard.tsx +10 -3
- package/src/renderer/shared/components/ArtifactPreviewPanel.tsx +88 -37
- package/src/renderer/shared/components/AuthGate.tsx +75 -39
- package/src/renderer/shared/components/BackgroundTerminals.tsx +181 -0
- package/src/renderer/shared/components/ChatCodeBlock.tsx +8 -4
- package/src/renderer/shared/components/ChatMessageItem.test.tsx +68 -0
- package/src/renderer/shared/components/ChatMessageItem.tsx +36 -16
- package/src/renderer/shared/components/ChatPanel.test.tsx +21 -0
- package/src/renderer/shared/components/ChatPanel.tsx +294 -272
- package/src/renderer/shared/components/ChunkErrorBoundary.tsx +4 -102
- package/src/renderer/shared/components/CliSessionsView.test.tsx +125 -0
- package/src/renderer/shared/components/CliSessionsView.tsx +61 -13
- package/src/renderer/shared/components/CodeReviewPage.tsx +111 -8
- package/src/renderer/shared/components/CollapsiblePasteInput.tsx +90 -0
- package/src/renderer/shared/components/ContextCompactionStatus.tsx +17 -0
- package/src/renderer/shared/components/DashboardSidebar.tsx +15 -128
- package/src/renderer/shared/components/DesktopTitlebar.tsx +45 -19
- package/src/renderer/shared/components/ErrorNotice.tsx +29 -0
- package/src/renderer/shared/components/FormattedMessage.tsx +11 -0
- package/src/renderer/shared/components/GeminiLiveOverlay.css +86 -0
- package/src/renderer/shared/components/GeminiLiveOverlay.test.tsx +24 -0
- package/src/renderer/shared/components/GeminiLiveOverlay.tsx +85 -101
- package/src/renderer/shared/components/GlideSelect.css +138 -0
- package/src/renderer/shared/components/GlideSelect.d.ts +31 -0
- package/src/renderer/shared/components/GlideSelect.jsx +266 -0
- package/src/renderer/shared/components/ImageSearchCard.tsx +46 -56
- package/src/renderer/shared/components/ImageStudioPanel.tsx +9 -8
- package/src/renderer/shared/components/LibraryItemCard.tsx +72 -0
- package/src/renderer/shared/components/LibraryPage.tsx +165 -0
- package/src/renderer/shared/components/LibraryPreview.tsx +59 -0
- package/src/renderer/shared/components/McpServersView.tsx +27 -8
- package/src/renderer/shared/components/McpToolAllowlist.tsx +2 -4
- package/src/renderer/shared/components/McpToolResults.tsx +99 -0
- package/src/renderer/shared/components/MintDashboard.tsx +308 -770
- package/src/renderer/shared/components/ModSessionControls.tsx +8 -0
- package/src/renderer/shared/components/ModUi.test.tsx +65 -0
- package/src/renderer/shared/components/ModUi.tsx +26 -0
- package/src/renderer/shared/components/ModelSelectorPopover.tsx +14 -7
- package/src/renderer/shared/components/ModsPanel.tsx +156 -0
- package/src/renderer/shared/components/ProgressActivity.tsx +17 -0
- package/src/renderer/shared/components/ReviewHistory.tsx +42 -0
- package/src/renderer/shared/components/RewindModal.tsx +5 -12
- package/src/renderer/shared/components/RunSummaryDashboard.tsx +6 -12
- package/src/renderer/shared/components/ScheduledTasksView.tsx +7 -6
- package/src/renderer/shared/components/SelectField.test.tsx +27 -0
- package/src/renderer/shared/components/SelectField.tsx +38 -0
- package/src/renderer/shared/components/SessionSources.tsx +48 -0
- package/src/renderer/shared/components/SessionSourcesPopover.tsx +61 -0
- package/src/renderer/shared/components/Settings/AgentsTab.tsx +7 -6
- package/src/renderer/shared/components/Settings/AudioTab.tsx +8 -7
- package/src/renderer/shared/components/Settings/AutomationTab.tsx +2 -2
- package/src/renderer/shared/components/Settings/GeneralTab.tsx +33 -32
- package/src/renderer/shared/components/Settings/MemoryTab.test.tsx +37 -0
- package/src/renderer/shared/components/Settings/MemoryTab.tsx +71 -31
- package/src/renderer/shared/components/Settings/NotificationsTab.test.tsx +15 -0
- package/src/renderer/shared/components/Settings/NotificationsTab.tsx +84 -0
- package/src/renderer/shared/components/Settings/ThemeTab.tsx +19 -11
- package/src/renderer/shared/components/SlashChoicePanel.tsx +88 -0
- package/src/renderer/shared/components/SlashSuggestions.test.tsx +33 -0
- package/src/renderer/shared/components/SlashSuggestions.tsx +38 -10
- package/src/renderer/shared/components/SourcesBlock.tsx +12 -20
- package/src/renderer/shared/components/ToolSurfacePage.test.tsx +32 -0
- package/src/renderer/shared/components/ToolSurfacePage.tsx +59 -11
- package/src/renderer/shared/components/ToolsPanelToggle.tsx +13 -0
- package/src/renderer/shared/components/VeoStudioPanel.tsx +9 -8
- package/src/renderer/shared/components/ViewedImages.tsx +36 -0
- package/src/renderer/shared/components/VirtualChatHistory.tsx +82 -0
- package/src/renderer/shared/components/VoicePill.css +85 -0
- package/src/renderer/shared/components/VoicePill.d.ts +12 -0
- package/src/renderer/shared/components/VoicePill.jsx +190 -0
- package/src/renderer/shared/components/VoicePill.test.tsx +22 -0
- package/src/renderer/shared/components/WorkspaceContextPopover.tsx +20 -15
- package/src/renderer/shared/components/WorkspacePaneResizer.tsx +92 -0
- package/src/renderer/shared/components/WorkspacePreviewActions.test.tsx +44 -0
- package/src/renderer/shared/components/WorkspacePreviewActions.tsx +19 -0
- package/src/renderer/shared/components/WorkspaceSelector.tsx +13 -8
- package/src/renderer/shared/components/background-terminals.css +292 -0
- package/src/renderer/shared/components/ui/README.md +52 -0
- package/src/renderer/shared/components/ui/button.tsx +37 -0
- package/src/renderer/shared/components/ui/demo.tsx +26 -0
- package/src/renderer/shared/components/ui/error-recovery.css +35 -0
- package/src/renderer/shared/components/ui/error-recovery.tsx +35 -0
- package/src/renderer/shared/components/ui/voice-powered-orb.css +6 -0
- package/src/renderer/shared/components/ui/voice-powered-orb.tsx +374 -0
- package/src/renderer/shared/components/workspace-selector.css +248 -0
- package/src/renderer/shared/constants/config.ts +30 -1
- package/src/renderer/shared/constants/slashCommands.ts +1 -1
- package/src/renderer/shared/conversation/lifecycle.test.ts +362 -0
- package/src/renderer/shared/conversation/lifecycle.ts +418 -0
- package/src/renderer/shared/conversation/projectNavigation.test.ts +105 -0
- package/src/renderer/shared/conversation/projectNavigation.ts +39 -0
- package/src/renderer/shared/conversation/sourcesTransport.ts +27 -0
- package/src/renderer/shared/conversation/syncView.test.ts +1 -34
- package/src/renderer/shared/conversation/syncView.ts +0 -37
- package/src/renderer/shared/conversation/transport.test.ts +163 -0
- package/src/renderer/shared/conversation/transport.ts +159 -0
- package/src/renderer/shared/conversation/useConversationCoordinator.ts +30 -72
- package/src/renderer/shared/css/agent-observability.css +20 -21
- package/src/renderer/shared/css/auth-gate.css +112 -13
- package/src/renderer/shared/css/code-review.css +33 -0
- package/src/renderer/shared/css/code-sessions.css +27 -0
- package/src/renderer/shared/css/collapsed-paste.css +35 -0
- package/src/renderer/shared/css/effects.css +15 -0
- package/src/renderer/shared/css/error-notice.css +60 -0
- package/src/renderer/shared/css/library.css +476 -0
- package/src/renderer/shared/css/management-views.css +138 -0
- package/src/renderer/shared/css/mcp-results.css +11 -0
- package/src/renderer/shared/css/model-selector.css +163 -105
- package/src/renderer/shared/css/mods.css +77 -0
- package/src/renderer/shared/css/notification-notice.css +28 -0
- package/src/renderer/shared/css/session-sources-popover.css +9 -0
- package/src/renderer/shared/css/session-sources.css +23 -0
- package/src/renderer/shared/css/settings/memory.css +154 -0
- package/src/renderer/shared/css/settings/notifications.css +11 -0
- package/src/renderer/shared/css/settings/theme.css +5 -0
- package/src/renderer/shared/css/slash-choice.css +95 -0
- package/src/renderer/shared/css/slash-suggestions.css +68 -0
- package/src/renderer/shared/css/sources-block.css +91 -0
- package/src/renderer/shared/css/thinking-status.css +46 -0
- package/src/renderer/shared/css/tools-panel.css +7 -0
- package/src/renderer/shared/css/ui-tailwind.css +19 -0
- package/src/renderer/shared/css/viewed-images.css +15 -0
- package/src/renderer/shared/fonts.css +46 -0
- package/src/renderer/shared/fonts.ts +3 -12
- package/src/renderer/shared/lib/utils.ts +6 -0
- package/src/renderer/shared/library/controller.test.ts +61 -0
- package/src/renderer/shared/library/controller.ts +57 -0
- package/src/renderer/shared/library/transport.test.ts +26 -0
- package/src/renderer/shared/library/transport.ts +60 -0
- package/src/renderer/shared/library/useLibraryFile.ts +38 -0
- package/src/renderer/shared/mods.ts +58 -0
- package/src/renderer/shared/platform.test.ts +57 -1
- package/src/renderer/shared/platform.ts +46 -1
- package/src/renderer/shared/theme/themeManager.test.ts +43 -0
- package/src/renderer/shared/theme/themeManager.ts +17 -4
- package/src/renderer/shared/types.ts +56 -2
- package/src/renderer/shared/utils/agentActivity.test.ts +75 -0
- package/src/renderer/shared/utils/agentActivity.ts +42 -3
- package/src/renderer/shared/utils/approval.tsx +7 -0
- package/src/renderer/shared/utils/artifactBrowser.test.ts +80 -0
- package/src/renderer/shared/utils/artifactBrowser.ts +41 -0
- package/src/renderer/shared/utils/contextCompaction.test.tsx +48 -0
- package/src/renderer/shared/utils/contextCompaction.ts +21 -0
- package/src/renderer/shared/utils/effectVisibility.ts +9 -0
- package/src/renderer/shared/utils/markdown.tsx +3 -3
- package/src/renderer/shared/utils/mcpResults.test.tsx +91 -0
- package/src/renderer/shared/utils/modViewport.ts +7 -0
- package/src/renderer/shared/utils/nativeRecordingSession.test.ts +61 -0
- package/src/renderer/shared/utils/nativeRecordingSession.ts +46 -0
- package/src/renderer/shared/utils/notificationSettings.test.ts +14 -0
- package/src/renderer/shared/utils/notificationSettings.ts +23 -0
- package/src/renderer/shared/utils/notifications.test.ts +51 -0
- package/src/renderer/shared/utils/notifications.ts +54 -0
- package/src/renderer/shared/utils/pastedText.test.ts +20 -0
- package/src/renderer/shared/utils/pastedText.ts +13 -0
- package/src/renderer/shared/utils/progressCache.test.ts +32 -0
- package/src/renderer/shared/utils/sessionSources.test.ts +31 -0
- package/src/renderer/shared/utils/sessionSources.ts +34 -0
- package/src/renderer/shared/utils/slashCommandProcessor.ts +1 -1
- package/src/renderer/shared/utils/sourceAttachments.ts +28 -0
- package/src/renderer/shared/utils/speech.ts +51 -9
- package/src/renderer/shared/utils/syntaxHighlight.test.tsx +22 -0
- package/src/renderer/shared/utils/syntaxHighlight.tsx +26 -0
- package/src/renderer/shared/utils/useGeminiLiveVoice.ts +49 -5
- package/src/renderer/shared/utils/useLatestCallback.ts +9 -0
- package/src/renderer/shared/utils/useNativeVoiceInput.ts +80 -72
- package/src/renderer/shared/utils/useSessionSources.ts +33 -0
- package/src/renderer/shared/utils/viewedImages.ts +26 -0
- package/src/renderer/shared/utils/workspacePane.test.ts +33 -0
- package/src/renderer/shared/utils/workspacePane.ts +20 -0
- package/src/renderer/shared/utils/workspacePreview.test.ts +24 -0
- package/src/renderer/shared/utils/workspacePreview.ts +16 -0
- package/src/renderer/shared/utils/workspaceSnapshot.test.ts +49 -0
- package/src/renderer/shared/utils/workspaceSnapshot.ts +26 -0
- package/src/renderer/shared/utils/workspaces.ts +10 -0
- package/src/renderer/shared/workspaceUndo.ts +88 -0
- package/src/renderer/src/App.tsx +9 -1
- package/src/renderer/src/components/LiveTranslateControls.tsx +65 -0
- package/src/renderer/src/components/PicturesLibrary.tsx +2 -288
- package/src/renderer/src/components/ScreenPicker.css +67 -30
- package/src/renderer/src/components/ScreenPicker.tsx +201 -60
- package/src/renderer/src/components/SettingsWindow.tsx +10 -5
- package/src/renderer/src/components/WorkspacePanel.tsx +222 -32
- package/src/renderer/src/components/browser-shell.css +1 -1
- package/src/renderer/src/components/browser-suggestions-popup.css +1 -1
- package/src/renderer/src/components/liveTranslateFrames.test.ts +26 -5
- package/src/renderer/src/components/liveTranslateFrames.ts +18 -7
- package/src/renderer/src/components/liveTranslateLanguage.ts +6 -0
- package/src/renderer/src/css/app-shell.css +52 -137
- package/src/renderer/src/css/chat.css +21 -495
- package/src/renderer/src/css/desktop-tools.css +199 -1
- package/src/renderer/src/css/misc.css +0 -52
- package/src/renderer/src/css/pictures.css +2 -415
- package/src/renderer/src/css/settings/base.css +50 -47
- package/src/renderer/src/css/sidebar-workspace.css +151 -94
- package/src/renderer/src/css/tool-surfaces.css +65 -9
- package/src/renderer/src/css/widget.css +1 -1
- package/src/renderer/src/env.d.ts +1 -9
- package/src/renderer/src/index.css +1 -1
- package/src/renderer/src/main.tsx +2 -1
- package/src/renderer/src/proactiveSuggestions.ts +29 -0
- package/src/renderer/src/tauri.ts +122 -330
- package/src/renderer/src/voiceInput.ts +2 -1
- package/src/renderer/src-web/components/PicturesLibrary.tsx +2 -285
- package/src/renderer/src-web/components/PullToRefresh.tsx +1 -1
- package/src/renderer/src-web/components/SettingsWindow.tsx +10 -5
- package/src/renderer/src-web/css/app-shell.css +24 -121
- package/src/renderer/src-web/css/chat.css +21 -495
- package/src/renderer/src-web/css/misc.css +0 -52
- package/src/renderer/src-web/css/mobile.css +15 -14
- package/src/renderer/src-web/css/pictures.css +2 -462
- package/src/renderer/src-web/css/settings/base.css +50 -47
- package/src/renderer/src-web/css/sidebar-workspace.css +9 -95
- package/src/renderer/src-web/css/widget.css +1 -1
- package/src/renderer/src-web/env.d.ts +1 -12
- package/src/renderer/src-web/index.css +1 -1
- package/src/renderer/src-web/main.tsx +2 -1
- package/src/renderer/src-web/proactiveSuggestions.ts +3 -0
- package/src/renderer/src-web/tauri.ts +129 -354
- package/src/renderer/tests/backgroundTerminals.browser.html +81 -0
- package/src/renderer/tests/chatPanelFixture.ts +23 -0
- package/src/renderer/tests/chatPerformance.browser.html +71 -0
- package/src/renderer/tests/cliSessions.browser.html +82 -0
- package/src/renderer/tests/collapsedPaste.browser.html +70 -0
- package/src/renderer/tests/composerMenus.browser.html +116 -0
- package/src/renderer/tests/contextCompaction.browser.html +17 -0
- package/src/renderer/tests/conversationLifecycle.browser.html +70 -0
- package/src/renderer/tests/effectsPerformance.browser.html +13 -0
- package/src/renderer/tests/errorRecovery.browser.html +21 -0
- package/src/renderer/tests/glideSelect.browser.html +71 -0
- package/src/renderer/tests/glideSelect.preview.html +27 -0
- package/src/renderer/tests/library.browser.html +1 -0
- package/src/renderer/tests/library.browser.tsx +78 -0
- package/src/renderer/tests/liveOrb.browser.html +49 -0
- package/src/renderer/tests/liveVoice.browser.html +29 -0
- package/src/renderer/tests/modInput.browser.html +22 -0
- package/src/renderer/tests/sessionSources.browser.html +1 -0
- package/src/renderer/tests/sessionSources.browser.tsx +107 -0
- package/src/renderer/tests/skills.browser.html +24 -0
- package/src/renderer/tests/toolsPanel.browser.html +1 -0
- package/src/renderer/tests/toolsPanel.browser.tsx +113 -0
- package/src/renderer/tests/viewedImages.browser.html +1 -0
- package/src/renderer/tests/viewedImages.browser.tsx +93 -0
- package/src/renderer/tests/voicePill.browser.html +80 -0
- package/src/renderer/tests/voicePill.preview.html +34 -0
- package/src/renderer/tests/webSources.browser.html +1 -0
- package/src/renderer/tests/webSources.browser.tsx +98 -0
- package/src/renderer/tests/workspaceUndo.browser.html +92 -0
- package/src-tauri/Cargo.toml +40 -0
- package/src-tauri/build.rs +3 -0
- package/src-tauri/src/app/lifecycle.rs +277 -0
- package/src-tauri/src/app/mod.rs +4 -0
- package/src-tauri/src/app/shortcuts.rs +40 -0
- package/src-tauri/src/app/tray.rs +52 -0
- package/src-tauri/src/background/events.rs +70 -0
- package/src-tauri/src/background/headless.rs +230 -0
- package/src-tauri/src/background/mod.rs +4 -0
- package/src-tauri/src/background/proactive.rs +262 -0
- package/src-tauri/src/commands/approvals.rs +20 -0
- package/src-tauri/src/commands/auth.rs +127 -0
- package/src-tauri/src/commands/conversation.rs +642 -0
- package/src-tauri/src/commands/integrations.rs +157 -0
- package/src-tauri/src/commands/media.rs +179 -0
- package/src-tauri/src/commands/mod.rs +11 -0
- package/src-tauri/src/commands/mods.rs +6 -0
- package/src-tauri/src/commands/settings.rs +141 -0
- package/src-tauri/src/commands/voice.rs +153 -0
- package/src-tauri/src/commands/workspace.rs +501 -0
- package/src-tauri/src/lib.rs +10 -0
- package/src-tauri/src/main.rs +3 -0
- package/src-tauri/src/native/actions.rs +206 -0
- package/src-tauri/src/native/browser.rs +252 -0
- package/src-tauri/src/native/capture.rs +695 -0
- package/src-tauri/src/native/discord_rpc.rs +99 -0
- package/src-tauri/src/native/integrations.rs +126 -0
- package/src-tauri/src/native/mod.rs +12 -0
- package/src-tauri/src/native/notifications.rs +51 -0
- package/src-tauri/src/native/plugins.rs +14 -0
- package/src-tauri/src/native/system.rs +250 -0
- package/src-tauri/src/native/terminal.rs +201 -0
- package/src-tauri/src/native/updater.rs +148 -0
- package/src-tauri/src/native/windows.rs +143 -0
- package/tsconfig.json +2 -0
- package/vite.config.ts +4 -1
- package/vite.config.web.ts +4 -0
- package/.cargo/config.toml +0 -13
- package/.claude/settings.local.json +0 -182
- package/.codex +0 -0
- package/CLAUDE.md +0 -102
- package/ROADMAP.md +0 -30
- package/mint-presentation-demo.mp4 +0 -0
- package/out/web/Live2DCubismCore.js +0 -9
- package/out/web/assets/CliSessionsView-BxUVWEEL.js +0 -1
- package/out/web/assets/CliSessionsView-CBDTXuQv.css +0 -1
- package/out/web/assets/CodeReviewPage-DkMgfcos.css +0 -1
- package/out/web/assets/CodeReviewPage-jKlmLJwT.js +0 -3
- package/out/web/assets/CommandPalette-DnwPA5hy.js +0 -1
- package/out/web/assets/ImageStudioPanel-BR1XFwhR.js +0 -1
- package/out/web/assets/LinkedFoldersView-bi-CWQ-I.js +0 -1
- package/out/web/assets/McpRegistryPicker-D5tEFnyq.js +0 -1
- package/out/web/assets/McpServersView-BGG1dhFM.js +0 -1
- package/out/web/assets/MintDashboard-BIglDEWX.js +0 -20
- package/out/web/assets/MintDashboard-DSMywSgs.css +0 -1
- package/out/web/assets/ModelPanel-CbJ1PFoZ.js +0 -1
- package/out/web/assets/PicturesLibrary-CQP0fLP1.css +0 -1
- package/out/web/assets/PicturesLibrary-DoYN7T1p.js +0 -1
- package/out/web/assets/PluginsView-CU1HWXGk.js +0 -1
- package/out/web/assets/ScheduledTasksView-Bnl36y2N.js +0 -1
- package/out/web/assets/SettingsWindow-DhWLAn9T.css +0 -1
- package/out/web/assets/SettingsWindow-Dw8L01pw.js +0 -2
- package/out/web/assets/SkillsView-cnl8aY5p.js +0 -2
- package/out/web/assets/ToolSurfacePage-CgsQw6l5.css +0 -1
- package/out/web/assets/ToolSurfacePage-Cz2VJAPZ.js +0 -37
- package/out/web/assets/VeoStudioPanel-D4JnERWR.js +0 -4
- package/out/web/assets/chunk-CKBBP62Z-cIrXq6jN.js +0 -2
- package/out/web/assets/classDiagram-DTDB5LWJ-Dq0smRWk.js +0 -1
- package/out/web/assets/classDiagram-v2-JRS7N3AN-Dq0smRWk.js +0 -1
- package/out/web/assets/config-C-ZFtipU.css +0 -1
- package/out/web/assets/config-eEDngJXO.js +0 -1
- package/out/web/assets/core-hQ2VA9Ti.js +0 -1
- package/out/web/assets/dist-js-Bf2bhoku.js +0 -1
- package/out/web/assets/flowDiagram-A5DVABFB-BLg7nEcd.js +0 -1
- package/out/web/assets/index-Btsf4L8M.css +0 -1
- package/out/web/assets/index-D8D9MeRA.js +0 -11
- package/out/web/assets/lucide-react-Ip3L6Jtn.js +0 -1
- package/out/web/assets/markdown-BSeeUbJH.js +0 -38
- package/out/web/assets/modelManager-tMVmJVAW.js +0 -2
- package/out/web/assets/prompt-latin-400-normal-BQ9zjSN8.woff2 +0 -0
- package/out/web/assets/prompt-latin-400-normal-CxU4ec_r.woff +0 -0
- package/out/web/assets/prompt-latin-500-normal-B1edBDQ9.woff +0 -0
- package/out/web/assets/prompt-latin-500-normal-CxzxEHZc.woff2 +0 -0
- package/out/web/assets/prompt-latin-600-normal-CSDDLorv.woff +0 -0
- package/out/web/assets/prompt-latin-600-normal-hKZWXsc1.woff2 +0 -0
- 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-400-normal-BrkKv8cO.woff2 +0 -0
- package/out/web/assets/prompt-thai-400-normal-DJypnfr3.woff +0 -0
- package/out/web/assets/prompt-thai-500-normal-C18pDUoL.woff2 +0 -0
- package/out/web/assets/prompt-thai-500-normal-D7YNqUJD.woff +0 -0
- package/out/web/assets/prompt-thai-600-normal-CYPViXds.woff +0 -0
- package/out/web/assets/prompt-thai-600-normal-MrdfU7zR.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/stateDiagram-v2-4QOOHH4V-DeEc0lGZ.js +0 -1
- package/out/web/assets/swimlanesDiagram-VK2B7HYN-DpVik9v7.js +0 -8
- package/out/web/assets/window-5qYXKoW7.js +0 -1
- package/skills-lock.json +0 -77
- package/src/renderer/public/Live2DCubismCore.js +0 -9
- package/src/renderer/src/companionWidget.ts +0 -95
- package/src/renderer/src/components/Live2DStage.tsx +0 -412
- package/src/renderer/src/components/ModelPanel.tsx +0 -155
- package/src/renderer/src/css/model.css +0 -628
- package/src/renderer/src-web/companionWidget.ts +0 -37
- package/src/renderer/src-web/components/ModelPanel.tsx +0 -12
- package/src/renderer/src-web/css/model.css +0 -628
|
@@ -276,10 +276,10 @@ pub(crate) fn compose_input_box(
|
|
|
276
276
|
let agent_str = format!(" {DIM}{mode_label}{RESET} {MINT}{}{RESET}", model);
|
|
277
277
|
// Background shell jobs (run_shell(background: true)) still running —
|
|
278
278
|
// shown so they're never invisible between the start and finish notice.
|
|
279
|
-
let bg_running = mint_core::bg_shell::
|
|
279
|
+
let bg_running = mint_core::bg_shell::running_count_for(current_dir);
|
|
280
280
|
let jobs_prefix = if bg_running > 0 {
|
|
281
281
|
format!(
|
|
282
|
-
"{bg_running}
|
|
282
|
+
"{bg_running} background terminal{} · /shells · ",
|
|
283
283
|
if bg_running == 1 { "" } else { "s" }
|
|
284
284
|
)
|
|
285
285
|
} else {
|
|
@@ -307,10 +307,17 @@ pub(crate) fn compose_input_box(
|
|
|
307
307
|
String::new()
|
|
308
308
|
};
|
|
309
309
|
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
310
|
+
if bg_running > 0 && agent_visible_len + path_visible_len >= width {
|
|
311
|
+
lines.push(format!(
|
|
312
|
+
"{BLUE}{bg_running} terminal{} · /shells{RESET} {DIM}{mode_label}{RESET}",
|
|
313
|
+
if bg_running == 1 { "" } else { "s" }
|
|
314
|
+
));
|
|
315
|
+
} else {
|
|
316
|
+
lines.push(format!(
|
|
317
|
+
"{}{}{}{}{}{}",
|
|
318
|
+
agent_str, status_padding, colored_jobs_prefix, DIM, path_rest, RESET
|
|
319
|
+
));
|
|
320
|
+
}
|
|
314
321
|
|
|
315
322
|
// Compute and append suggestions
|
|
316
323
|
let raw_input: String = input_chars.iter().collect();
|
|
@@ -1603,6 +1610,49 @@ mod tests {
|
|
|
1603
1610
|
assert_eq!(cursor, "ask [Image #1]".chars().count());
|
|
1604
1611
|
}
|
|
1605
1612
|
|
|
1613
|
+
#[test]
|
|
1614
|
+
fn classic_status_keeps_background_count_visible_during_history_browsing() {
|
|
1615
|
+
let root = std::env::temp_dir().join(format!(
|
|
1616
|
+
"mint-classic-bg-{}-{}",
|
|
1617
|
+
std::process::id(),
|
|
1618
|
+
std::time::SystemTime::now()
|
|
1619
|
+
.duration_since(std::time::UNIX_EPOCH)
|
|
1620
|
+
.unwrap()
|
|
1621
|
+
.as_nanos()
|
|
1622
|
+
));
|
|
1623
|
+
std::fs::create_dir(&root).unwrap();
|
|
1624
|
+
let config = mint_core::MintConfig {
|
|
1625
|
+
safety_enabled: false,
|
|
1626
|
+
sandbox_mode: "off".into(),
|
|
1627
|
+
..Default::default()
|
|
1628
|
+
};
|
|
1629
|
+
let job = mint_core::bg_shell::start_background(&root, &config, "sleep 30").unwrap();
|
|
1630
|
+
struct Cleanup(String, std::path::PathBuf);
|
|
1631
|
+
impl Drop for Cleanup {
|
|
1632
|
+
fn drop(&mut self) {
|
|
1633
|
+
let _ = mint_core::bg_shell::kill_job(&self.0);
|
|
1634
|
+
let _ = std::fs::remove_dir(&self.1);
|
|
1635
|
+
}
|
|
1636
|
+
}
|
|
1637
|
+
let _cleanup = Cleanup(job.id, root.clone());
|
|
1638
|
+
let (lines, _, _) = compose_input_box(
|
|
1639
|
+
&[],
|
|
1640
|
+
0,
|
|
1641
|
+
"",
|
|
1642
|
+
&"model".repeat(100),
|
|
1643
|
+
"\0history browsing",
|
|
1644
|
+
None,
|
|
1645
|
+
None,
|
|
1646
|
+
&root,
|
|
1647
|
+
false,
|
|
1648
|
+
);
|
|
1649
|
+
assert!(
|
|
1650
|
+
lines
|
|
1651
|
+
.iter()
|
|
1652
|
+
.any(|line| line.contains("1 terminal · /shells"))
|
|
1653
|
+
);
|
|
1654
|
+
}
|
|
1655
|
+
|
|
1606
1656
|
#[test]
|
|
1607
1657
|
fn empty_input_wraps_to_a_single_empty_row() {
|
|
1608
1658
|
let (rows, row, col) = wrap_input_into_rows(&[], 10, 0);
|
|
@@ -184,6 +184,7 @@ async fn execute_core_slash(
|
|
|
184
184
|
input: trimmed.to_string(),
|
|
185
185
|
cwd: Some(session.current_dir.to_string_lossy().to_string()),
|
|
186
186
|
surface: Some("cli".to_string()),
|
|
187
|
+
chat_id: Some(session.chat_id.clone()),
|
|
187
188
|
};
|
|
188
189
|
|
|
189
190
|
if matches!(
|
|
@@ -237,6 +238,7 @@ async fn execute_core_slash(
|
|
|
237
238
|
session.history.clear();
|
|
238
239
|
ui.clear_transcript();
|
|
239
240
|
}
|
|
241
|
+
SlashEffect::WorkspaceFilesChanged => {}
|
|
240
242
|
SlashEffect::ThinkingChanged { .. } => {
|
|
241
243
|
save_needed = true;
|
|
242
244
|
}
|
|
@@ -259,7 +261,8 @@ async fn execute_core_slash(
|
|
|
259
261
|
.iter()
|
|
260
262
|
.map(|opt| ChoiceItem::new(opt.label.clone(), opt.value.clone()))
|
|
261
263
|
.collect();
|
|
262
|
-
|
|
264
|
+
let (heading, body) = title.split_once('\n').unwrap_or((&title, ""));
|
|
265
|
+
match ui.prompt_choice(heading, body, &choice_items) {
|
|
263
266
|
Ok(Some(idx)) => {
|
|
264
267
|
let opt = &options[idx];
|
|
265
268
|
if opt.value == "__action:search" {
|
|
@@ -338,6 +341,33 @@ pub async fn handle_slash_command(
|
|
|
338
341
|
.map(|(c, r)| (c, r.trim()))
|
|
339
342
|
.unwrap_or((trimmed, ""));
|
|
340
343
|
|
|
344
|
+
if cmd == "/mods" && rest == "run-tools" {
|
|
345
|
+
let chat = mint_core::scoped_chat_id(
|
|
346
|
+
&session.chat_id,
|
|
347
|
+
Some(&session.current_dir.to_string_lossy()),
|
|
348
|
+
);
|
|
349
|
+
match mint_core::mods::pending_requests(&session.current_dir, &chat) {
|
|
350
|
+
Ok(requests) => {
|
|
351
|
+
for request in requests {
|
|
352
|
+
let body = format!(
|
|
353
|
+
"{} requests {}\n{}",
|
|
354
|
+
request["modId"],
|
|
355
|
+
request["action"],
|
|
356
|
+
serde_json::to_string_pretty(&request["input"]).unwrap_or_default()
|
|
357
|
+
);
|
|
358
|
+
if ui.prompt_confirm(&body, false).unwrap_or(false) {
|
|
359
|
+
let operation=serde_json::from_value(serde_json::json!({"workspacePath":session.current_dir,"chatId":chat,"action":"run_request","command":request["id"],"grantPermissions":true})).unwrap();
|
|
360
|
+
if let Err(error) = mint_core::mods::operate_async(operation).await {
|
|
361
|
+
ui.push_command_output(error);
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
Err(error) => ui.push_command_output(error),
|
|
367
|
+
}
|
|
368
|
+
return Some(SlashResult::Handled);
|
|
369
|
+
}
|
|
370
|
+
|
|
341
371
|
// Check CLI-specific commands and interactive bare wizards first:
|
|
342
372
|
let is_cli_only_or_wizard = matches!(
|
|
343
373
|
cmd,
|
|
@@ -1044,7 +1074,7 @@ pub async fn handle_slash_command(
|
|
|
1044
1074
|
session.config.auto_skill_writing = rest == "on";
|
|
1045
1075
|
match mint_core::save_config(&session.config) {
|
|
1046
1076
|
Ok(()) => println!(
|
|
1047
|
-
"{DIM}
|
|
1077
|
+
"{DIM}Skill suggestions (approval required to save) set to: {}{RESET}\n",
|
|
1048
1078
|
if session.config.auto_skill_writing {
|
|
1049
1079
|
"Enabled"
|
|
1050
1080
|
} else {
|
|
@@ -1057,7 +1087,7 @@ pub async fn handle_slash_command(
|
|
|
1057
1087
|
println!("{WARN}Usage: /autoskill [on|off]{RESET}\n");
|
|
1058
1088
|
} else {
|
|
1059
1089
|
println!(
|
|
1060
|
-
"{DIM}When enabled, the agent
|
|
1090
|
+
"{DIM}When enabled, the agent proposes a skill after a reusable task. Each proposed diff needs your approval before saving.{RESET}"
|
|
1061
1091
|
);
|
|
1062
1092
|
let options = vec!["on (enable)".to_string(), "off (disable)".to_string()];
|
|
1063
1093
|
let current = if session.config.auto_skill_writing {
|
|
@@ -1065,12 +1095,12 @@ pub async fn handle_slash_command(
|
|
|
1065
1095
|
} else {
|
|
1066
1096
|
&options[1]
|
|
1067
1097
|
};
|
|
1068
|
-
match prompt_interactive_select("
|
|
1098
|
+
match prompt_interactive_select("Skill Suggestions", &options, current) {
|
|
1069
1099
|
Ok(Some(sel)) => {
|
|
1070
1100
|
session.config.auto_skill_writing = sel.starts_with("on");
|
|
1071
1101
|
match mint_core::save_config(&session.config) {
|
|
1072
1102
|
Ok(()) => println!(
|
|
1073
|
-
"{DIM}
|
|
1103
|
+
"{DIM}Skill suggestions (approval required to save) set to: {}{RESET}\n",
|
|
1074
1104
|
if session.config.auto_skill_writing {
|
|
1075
1105
|
"Enabled"
|
|
1076
1106
|
} else {
|
|
@@ -1625,8 +1655,11 @@ pub async fn handle_slash_command(
|
|
|
1625
1655
|
}
|
|
1626
1656
|
|
|
1627
1657
|
"/shells" => {
|
|
1628
|
-
if rest.is_empty() {
|
|
1629
|
-
let jobs = mint_core::bg_shell::list_jobs()
|
|
1658
|
+
if rest.is_empty() || rest == "all" {
|
|
1659
|
+
let jobs: Vec<_> = mint_core::bg_shell::list_jobs()
|
|
1660
|
+
.into_iter()
|
|
1661
|
+
.filter(|job| rest == "all" || job.workspace == session.current_dir)
|
|
1662
|
+
.collect();
|
|
1630
1663
|
if jobs.is_empty() {
|
|
1631
1664
|
ui.push_notice(
|
|
1632
1665
|
"No background shell jobs. The agent starts one when it calls run_shell with background: true."
|
|
@@ -1638,6 +1671,7 @@ pub async fn handle_slash_command(
|
|
|
1638
1671
|
mint_core::bg_shell::JobStatus::Running => {
|
|
1639
1672
|
format!("{MINT}running{RESET}")
|
|
1640
1673
|
}
|
|
1674
|
+
mint_core::bg_shell::JobStatus::Stopping => "stopping".to_string(),
|
|
1641
1675
|
mint_core::bg_shell::JobStatus::Exited(0) => "exited(0)".to_string(),
|
|
1642
1676
|
mint_core::bg_shell::JobStatus::Exited(code) => {
|
|
1643
1677
|
format!("{ERROR}exited({code}){RESET}")
|
|
@@ -1656,9 +1690,14 @@ pub async fn handle_slash_command(
|
|
|
1656
1690
|
""
|
|
1657
1691
|
};
|
|
1658
1692
|
lines.push(format!(
|
|
1659
|
-
" {:<6} [{status_str}] {DIM}{:>4}s{RESET} {preview}{suffix}",
|
|
1660
|
-
job.id,
|
|
1693
|
+
" {:<6} [{status_str}] {DIM}{:>4}s{RESET} {preview}{suffix} · {}",
|
|
1694
|
+
job.id,
|
|
1695
|
+
job.elapsed_secs,
|
|
1696
|
+
job.workspace.display(),
|
|
1661
1697
|
));
|
|
1698
|
+
if let Some(url) = &job.server_url {
|
|
1699
|
+
lines.push(format!(" Ready URL: {url}"));
|
|
1700
|
+
}
|
|
1662
1701
|
}
|
|
1663
1702
|
ui.push_command_output(lines.join("\n"));
|
|
1664
1703
|
}
|
|
@@ -1675,6 +1714,10 @@ pub async fn handle_slash_command(
|
|
|
1675
1714
|
Ok(job) => {
|
|
1676
1715
|
let mut lines =
|
|
1677
1716
|
vec![format!("{BLUE}Job {} — {}{RESET}", job.id, job.command)];
|
|
1717
|
+
lines.push(format!("Status: {:?} · {}s", job.status, job.elapsed_secs));
|
|
1718
|
+
if let Some(url) = &job.server_url {
|
|
1719
|
+
lines.push(format!("Ready URL: {url}"));
|
|
1720
|
+
}
|
|
1678
1721
|
if let Some(pid) = job.pid {
|
|
1679
1722
|
lines.push(format!(
|
|
1680
1723
|
"{DIM}pid: {pid} cwd: {}{RESET}",
|
|
@@ -1683,15 +1726,18 @@ pub async fn handle_slash_command(
|
|
|
1683
1726
|
}
|
|
1684
1727
|
lines.push(format!("{DIM}stdout:{RESET}\n{}", job.stdout));
|
|
1685
1728
|
lines.push(format!("{DIM}stderr:{RESET}\n{}", job.stderr));
|
|
1729
|
+
if job.truncated {
|
|
1730
|
+
lines.push("[Older output truncated]".into());
|
|
1731
|
+
}
|
|
1686
1732
|
ui.push_command_output(lines.join("\n"));
|
|
1687
1733
|
}
|
|
1688
1734
|
Err(_) => ui.push_notice("No such job."),
|
|
1689
1735
|
},
|
|
1690
|
-
"kill" if !arg.is_empty() => match mint_core::bg_shell::kill_job(arg) {
|
|
1736
|
+
"kill" | "stop" if !arg.is_empty() => match mint_core::bg_shell::kill_job(arg) {
|
|
1691
1737
|
Ok(msg) => ui.push_notice(msg),
|
|
1692
1738
|
Err(_) => ui.push_notice("No such job."),
|
|
1693
1739
|
},
|
|
1694
|
-
_ => ui.push_notice("Usage: /shells [show <id>|kill <id>]"),
|
|
1740
|
+
_ => ui.push_notice("Usage: /shells [all|show <id>|stop <id>|kill <id>]"),
|
|
1695
1741
|
}
|
|
1696
1742
|
Some(SlashResult::Handled)
|
|
1697
1743
|
}
|
|
@@ -1860,17 +1906,16 @@ pub async fn handle_slash_command(
|
|
|
1860
1906
|
mask_data_uri: None,
|
|
1861
1907
|
mode: Some("edit".to_owned()),
|
|
1862
1908
|
};
|
|
1863
|
-
match mint_core::
|
|
1909
|
+
match mint_core::image_workflow::generate_and_save_images(&session.config, &req)
|
|
1910
|
+
.await
|
|
1911
|
+
{
|
|
1864
1912
|
Ok(resp) => {
|
|
1865
1913
|
if let Some(first) = resp.images.first() {
|
|
1866
1914
|
println!(
|
|
1867
1915
|
"{DIM}Image edited successfully using {} ({}){RESET}\n",
|
|
1868
1916
|
resp.provider, resp.model
|
|
1869
1917
|
);
|
|
1870
|
-
println!(
|
|
1871
|
-
"{DIM}Image data URI prefix: {}{RESET}\n",
|
|
1872
|
-
&first.data_uri[..first.data_uri.len().min(60)]
|
|
1873
|
-
);
|
|
1918
|
+
println!("{DIM}Saved image: {}{RESET}\n", first.path.display());
|
|
1874
1919
|
}
|
|
1875
1920
|
}
|
|
1876
1921
|
Err(e) => {
|
|
@@ -1927,49 +1972,34 @@ pub async fn handle_slash_command(
|
|
|
1927
1972
|
|
|
1928
1973
|
"/learn" => {
|
|
1929
1974
|
if rest.is_empty() {
|
|
1930
|
-
let
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1975
|
+
let unique_skills = match MemoryStore::open_default()
|
|
1976
|
+
.map_err(|e| e.to_string())
|
|
1977
|
+
.and_then(|memory| {
|
|
1978
|
+
mint_core::skill_inventory::list_available_skills(
|
|
1979
|
+
&memory,
|
|
1980
|
+
Some(&session.current_dir),
|
|
1981
|
+
)
|
|
1982
|
+
.map_err(|e| e.to_string())
|
|
1983
|
+
}) {
|
|
1984
|
+
Ok(skills) => skills,
|
|
1985
|
+
Err(error) => {
|
|
1986
|
+
println!("{ERROR}Error loading skills: {error}{RESET}\n");
|
|
1940
1987
|
return Some(SlashResult::Handled);
|
|
1941
1988
|
}
|
|
1942
1989
|
};
|
|
1943
|
-
|
|
1944
|
-
if let Some(home) = dirs::home_dir() {
|
|
1945
|
-
let global_skills_path = home.join(".config").join("mint").join("mint-skills");
|
|
1946
|
-
mint_core::skills::load_skills_from_dir(&global_skills_path, &mut skills);
|
|
1947
|
-
}
|
|
1948
|
-
let workspace_skills_path1 = session.current_dir.join(".agents").join("skills");
|
|
1949
|
-
mint_core::skills::load_skills_from_dir(&workspace_skills_path1, &mut skills);
|
|
1950
|
-
let workspace_skills_path2 = session.current_dir.join("skills");
|
|
1951
|
-
mint_core::skills::load_skills_from_dir(&workspace_skills_path2, &mut skills);
|
|
1952
|
-
|
|
1953
|
-
let mut unique_skills = std::collections::BTreeMap::new();
|
|
1954
|
-
for skill in skills {
|
|
1955
|
-
let loc = if skill.source_path.contains("/.config/mint/mint-skills") {
|
|
1956
|
-
"Global"
|
|
1957
|
-
} else if skill.source_path.contains("/skills")
|
|
1958
|
-
|| skill.source_path.contains("/.agents/skills")
|
|
1959
|
-
{
|
|
1960
|
-
"Workspace"
|
|
1961
|
-
} else {
|
|
1962
|
-
"Taught"
|
|
1963
|
-
};
|
|
1964
|
-
unique_skills.insert(skill.name.clone(), (skill, loc));
|
|
1965
|
-
}
|
|
1966
|
-
|
|
1967
1990
|
if unique_skills.is_empty() {
|
|
1968
1991
|
println!("No learned skills found. Use '/learn <path>' to add one.\n");
|
|
1969
1992
|
} else {
|
|
1970
1993
|
println!("Learned AI Skills:");
|
|
1971
|
-
for
|
|
1972
|
-
|
|
1994
|
+
for entry in &unique_skills {
|
|
1995
|
+
let skill = &entry.skill;
|
|
1996
|
+
let name = &skill.name;
|
|
1997
|
+
let loc = match entry.location {
|
|
1998
|
+
mint_core::skill_inventory::SkillLocation::Database => "Taught",
|
|
1999
|
+
mint_core::skill_inventory::SkillLocation::Global => "Global",
|
|
2000
|
+
mint_core::skill_inventory::SkillLocation::Workspace => "Workspace",
|
|
2001
|
+
};
|
|
2002
|
+
if loc == "Taught" {
|
|
1973
2003
|
println!(" ● [{}] {}", loc, name);
|
|
1974
2004
|
} else {
|
|
1975
2005
|
println!(" ● [{}] {} (Source: {})", loc, name, skill.source_path);
|
|
@@ -2528,10 +2558,9 @@ pub async fn handle_slash_command(
|
|
|
2528
2558
|
}
|
|
2529
2559
|
|
|
2530
2560
|
"/release-notes" => {
|
|
2531
|
-
const RELEASE_NOTES: &str = include_str!("../../../../Release_Note.md");
|
|
2532
2561
|
ui.push_command_output(format!(
|
|
2533
2562
|
"\n{BLUE}────────────────────────────────────────────{RESET}\n{}\n{BLUE}────────────────────────────────────────────{RESET}",
|
|
2534
|
-
|
|
2563
|
+
mint_core::release_notes::text()
|
|
2535
2564
|
));
|
|
2536
2565
|
Some(SlashResult::Handled)
|
|
2537
2566
|
}
|
|
@@ -3215,8 +3244,11 @@ fn handle_mcp_slash(
|
|
|
3215
3244
|
None,
|
|
3216
3245
|
Some((!value.is_empty()).then(|| value.to_string())),
|
|
3217
3246
|
),
|
|
3247
|
+
"timeout" | "timeoutsecs" | "timeout-secs" => {
|
|
3248
|
+
crate::mcp::set_timeout(name, value)
|
|
3249
|
+
}
|
|
3218
3250
|
_ => {
|
|
3219
|
-
ui.push_notice("Editable fields: command | args | icon");
|
|
3251
|
+
ui.push_notice("Editable fields: command | args | icon | timeout");
|
|
3220
3252
|
return;
|
|
3221
3253
|
}
|
|
3222
3254
|
};
|
|
@@ -3229,7 +3261,7 @@ fn handle_mcp_slash(
|
|
|
3229
3261
|
Err(e) => ui.push_notice(format!("MCP error: {e}")),
|
|
3230
3262
|
}
|
|
3231
3263
|
}
|
|
3232
|
-
_ => ui.push_notice("/mcp edit usage: <name> command|args|icon <value>"),
|
|
3264
|
+
_ => ui.push_notice("/mcp edit usage: <name> command|args|icon|timeout <value>"),
|
|
3233
3265
|
}
|
|
3234
3266
|
}
|
|
3235
3267
|
|
|
@@ -3838,6 +3870,11 @@ fn mcp_edit_flow(session: &mut InteractiveSession, ui: &mut dyn CommandUi, name:
|
|
|
3838
3870
|
ChoiceItem::with_description("command", &srv.command, "command"),
|
|
3839
3871
|
ChoiceItem::with_description("args", srv.args.join(" "), "args"),
|
|
3840
3872
|
ChoiceItem::with_description("icon", srv.icon.as_deref().unwrap_or("(none)"), "icon"),
|
|
3873
|
+
ChoiceItem::with_description(
|
|
3874
|
+
"Tool timeout",
|
|
3875
|
+
format!("{} seconds", srv.timeout_secs.unwrap_or(300)),
|
|
3876
|
+
"timeout",
|
|
3877
|
+
),
|
|
3841
3878
|
ChoiceItem::with_description("Back", "Cancel edit", "back"),
|
|
3842
3879
|
];
|
|
3843
3880
|
let Ok(Some(idx)) = ui.prompt_choice(&format!("Edit {name}"), "Select field to edit", &fields)
|
|
@@ -3845,6 +3882,17 @@ fn mcp_edit_flow(session: &mut InteractiveSession, ui: &mut dyn CommandUi, name:
|
|
|
3845
3882
|
return;
|
|
3846
3883
|
};
|
|
3847
3884
|
let result = match fields[idx].value.as_str() {
|
|
3885
|
+
"timeout" => {
|
|
3886
|
+
let current = srv.timeout_secs.unwrap_or(300).to_string();
|
|
3887
|
+
let Ok(Some(value)) = ui.prompt_text(
|
|
3888
|
+
&format!("Edit {name}"),
|
|
3889
|
+
"Tool timeout (seconds, 1–3600)",
|
|
3890
|
+
Some(¤t),
|
|
3891
|
+
) else {
|
|
3892
|
+
return;
|
|
3893
|
+
};
|
|
3894
|
+
crate::mcp::set_timeout(name, &value)
|
|
3895
|
+
}
|
|
3848
3896
|
"command" => {
|
|
3849
3897
|
let value = ui
|
|
3850
3898
|
.prompt_text(&format!("Edit {name}"), "Command", Some(&srv.command))
|
|
@@ -3911,6 +3959,110 @@ fn mcp_edit_flow(session: &mut InteractiveSession, ui: &mut dyn CommandUi, name:
|
|
|
3911
3959
|
mod tests {
|
|
3912
3960
|
use super::*;
|
|
3913
3961
|
|
|
3962
|
+
#[test]
|
|
3963
|
+
fn review_tui_timeout_edit_persists_and_invalid_or_cancel_preserves_it() {
|
|
3964
|
+
if std::env::var_os("MINT_TIMEOUT_REVIEW_CHILD").is_none() {
|
|
3965
|
+
let dir = std::env::temp_dir().join(format!("mint-tui-timeout-{}", std::process::id()));
|
|
3966
|
+
std::fs::create_dir_all(&dir).unwrap();
|
|
3967
|
+
let path = dir.join("config.json");
|
|
3968
|
+
let mut cfg = MintConfig::default();
|
|
3969
|
+
cfg.extra.insert(
|
|
3970
|
+
"mcpServers".into(),
|
|
3971
|
+
serde_json::json!({"timer":{"command":"cat"}}),
|
|
3972
|
+
);
|
|
3973
|
+
std::fs::write(&path, serde_json::to_vec(&cfg).unwrap()).unwrap();
|
|
3974
|
+
let output=std::process::Command::new(std::env::current_exe().unwrap())
|
|
3975
|
+
.args(["--exact","interactive::slash_commands::tests::review_tui_timeout_edit_persists_and_invalid_or_cancel_preserves_it","--nocapture"])
|
|
3976
|
+
.env("MINT_TIMEOUT_REVIEW_CHILD","1").env("MINT_CONFIG_PATH",&path).output().unwrap();
|
|
3977
|
+
std::fs::remove_dir_all(dir).unwrap();
|
|
3978
|
+
assert!(
|
|
3979
|
+
output.status.success(),
|
|
3980
|
+
"{}\n{}",
|
|
3981
|
+
String::from_utf8_lossy(&output.stdout),
|
|
3982
|
+
String::from_utf8_lossy(&output.stderr)
|
|
3983
|
+
);
|
|
3984
|
+
return;
|
|
3985
|
+
}
|
|
3986
|
+
struct TimeoutUi {
|
|
3987
|
+
answer: Option<String>,
|
|
3988
|
+
}
|
|
3989
|
+
impl CommandUi for TimeoutUi {
|
|
3990
|
+
fn push_notice_str(&mut self, _: &str) {}
|
|
3991
|
+
fn push_command_output_str(&mut self, _: &str) {}
|
|
3992
|
+
fn set_status(&mut self, _: Vec<String>) {}
|
|
3993
|
+
fn clear_status(&mut self) {}
|
|
3994
|
+
fn prompt_choice(
|
|
3995
|
+
&mut self,
|
|
3996
|
+
_: &str,
|
|
3997
|
+
_: &str,
|
|
3998
|
+
options: &[ChoiceItem],
|
|
3999
|
+
) -> anyhow::Result<Option<usize>> {
|
|
4000
|
+
Ok(options.iter().position(|o| o.value == "timeout"))
|
|
4001
|
+
}
|
|
4002
|
+
fn prompt_text(
|
|
4003
|
+
&mut self,
|
|
4004
|
+
_: &str,
|
|
4005
|
+
_: &str,
|
|
4006
|
+
_: Option<&str>,
|
|
4007
|
+
) -> anyhow::Result<Option<String>> {
|
|
4008
|
+
Ok(self.answer.take())
|
|
4009
|
+
}
|
|
4010
|
+
fn prompt_confirm(&mut self, _: &str, _: bool) -> anyhow::Result<bool> {
|
|
4011
|
+
Ok(false)
|
|
4012
|
+
}
|
|
4013
|
+
fn prompt_multi_choice(
|
|
4014
|
+
&mut self,
|
|
4015
|
+
_: &str,
|
|
4016
|
+
_: &str,
|
|
4017
|
+
_: &[ChoiceItem],
|
|
4018
|
+
) -> anyhow::Result<Option<Vec<usize>>> {
|
|
4019
|
+
Ok(None)
|
|
4020
|
+
}
|
|
4021
|
+
fn report_error(&mut self, _: &anyhow::Error) {}
|
|
4022
|
+
}
|
|
4023
|
+
let mut session = InteractiveSession {
|
|
4024
|
+
chat_id: mint_core::CHAT_CLI_ID.into(),
|
|
4025
|
+
config: mint_core::load_config().unwrap(),
|
|
4026
|
+
current_dir: std::env::current_dir().unwrap(),
|
|
4027
|
+
fast_mode: false,
|
|
4028
|
+
plan_mode: false,
|
|
4029
|
+
pending_image: None,
|
|
4030
|
+
history: Vec::new(),
|
|
4031
|
+
jobs: BackgroundJobs::new(),
|
|
4032
|
+
};
|
|
4033
|
+
for value in [1, 300, 3600] {
|
|
4034
|
+
mcp_edit_flow(
|
|
4035
|
+
&mut session,
|
|
4036
|
+
&mut TimeoutUi {
|
|
4037
|
+
answer: Some(value.to_string()),
|
|
4038
|
+
},
|
|
4039
|
+
"timer",
|
|
4040
|
+
);
|
|
4041
|
+
assert_eq!(
|
|
4042
|
+
session.config.extra["mcpServers"]["timer"]["timeoutSecs"],
|
|
4043
|
+
value
|
|
4044
|
+
);
|
|
4045
|
+
assert_eq!(
|
|
4046
|
+
mint_core::load_config().unwrap().extra["mcpServers"]["timer"]["timeoutSecs"],
|
|
4047
|
+
value
|
|
4048
|
+
);
|
|
4049
|
+
}
|
|
4050
|
+
let before = std::fs::read(mint_core::config_path().unwrap()).unwrap();
|
|
4051
|
+
for answer in [Some("0"), Some("3601"), Some("1.5"), Some("nope"), None] {
|
|
4052
|
+
mcp_edit_flow(
|
|
4053
|
+
&mut session,
|
|
4054
|
+
&mut TimeoutUi {
|
|
4055
|
+
answer: answer.map(str::to_string),
|
|
4056
|
+
},
|
|
4057
|
+
"timer",
|
|
4058
|
+
);
|
|
4059
|
+
assert_eq!(
|
|
4060
|
+
std::fs::read(mint_core::config_path().unwrap()).unwrap(),
|
|
4061
|
+
before
|
|
4062
|
+
);
|
|
4063
|
+
}
|
|
4064
|
+
}
|
|
4065
|
+
|
|
3914
4066
|
/// Commands that are dispatched but deliberately left undocumented —
|
|
3915
4067
|
/// shortcuts for another command's own token, not gaps in `SLASH_COMMANDS`.
|
|
3916
4068
|
const UNDOCUMENTED_ALIASES: &[&str] =
|