@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
|
@@ -62,6 +62,7 @@ pub struct AgentOptions {
|
|
|
62
62
|
pub pinned_mcp_server: Option<String>,
|
|
63
63
|
/// Chat ID / session ID for this turn. Defaults to `CHAT_CLI_ID` if omitted.
|
|
64
64
|
pub chat_id: Option<String>,
|
|
65
|
+
pub image_name: Option<String>,
|
|
65
66
|
/// Full-screen UI event sink. When present, agent output never writes
|
|
66
67
|
/// directly to stdout and stdin remains owned by the TUI controller.
|
|
67
68
|
pub tui: Option<crate::interactive::TuiHandle>,
|
|
@@ -387,6 +388,10 @@ fn tui_approval(
|
|
|
387
388
|
_ => ApprovalOutcome::Denied,
|
|
388
389
|
};
|
|
389
390
|
Ok(match approval {
|
|
391
|
+
AgentApproval::SkillWrite { path, diff, .. } => yes_no(
|
|
392
|
+
"Save skill?",
|
|
393
|
+
format!("Changes instructions used in future tasks.\nPath: {path}\n\n{diff}"),
|
|
394
|
+
),
|
|
390
395
|
AgentApproval::WriteFile { path, diff, .. } => tui_persistable_approval(
|
|
391
396
|
tui,
|
|
392
397
|
"write_file",
|
|
@@ -515,6 +520,141 @@ fn tui_approval(
|
|
|
515
520
|
})
|
|
516
521
|
}
|
|
517
522
|
|
|
523
|
+
pub(crate) fn mcp_progress_notes(event: &AgentProgress) -> Option<Vec<String>> {
|
|
524
|
+
Some(match event {
|
|
525
|
+
AgentProgress::ToolDiscovery {
|
|
526
|
+
server,
|
|
527
|
+
tool,
|
|
528
|
+
message,
|
|
529
|
+
} => vec![format!("[MCP discovery {server}/{tool}] {message}")],
|
|
530
|
+
AgentProgress::DeviceState {
|
|
531
|
+
server,
|
|
532
|
+
tool,
|
|
533
|
+
update,
|
|
534
|
+
..
|
|
535
|
+
} => vec![format!(
|
|
536
|
+
"[Device {server}/{tool}] {:?}: {} (target {}, actual {})",
|
|
537
|
+
update.state, update.message, update.target, update.actual
|
|
538
|
+
)],
|
|
539
|
+
AgentProgress::ToolProgress {
|
|
540
|
+
server,
|
|
541
|
+
tool,
|
|
542
|
+
update,
|
|
543
|
+
..
|
|
544
|
+
} => {
|
|
545
|
+
let detail = update
|
|
546
|
+
.total
|
|
547
|
+
.map(|total| format!("{:.0}%", update.progress / total * 100.0))
|
|
548
|
+
.unwrap_or_else(|| format!("{}s", update.elapsed_secs));
|
|
549
|
+
vec![format!(
|
|
550
|
+
"[MCP {server}/{tool}] {detail} {}",
|
|
551
|
+
update.message.as_deref().unwrap_or_default()
|
|
552
|
+
)]
|
|
553
|
+
}
|
|
554
|
+
AgentProgress::ToolArtifacts {
|
|
555
|
+
artifacts,
|
|
556
|
+
warnings,
|
|
557
|
+
..
|
|
558
|
+
} => {
|
|
559
|
+
let mut notes = artifacts
|
|
560
|
+
.iter()
|
|
561
|
+
.map(|artifact| {
|
|
562
|
+
let location = artifact.uri.clone().unwrap_or_else(|| {
|
|
563
|
+
mint_core::integrations::mcp_result::artifact_directory()
|
|
564
|
+
.unwrap_or_default()
|
|
565
|
+
.join(&artifact.id)
|
|
566
|
+
.display()
|
|
567
|
+
.to_string()
|
|
568
|
+
});
|
|
569
|
+
format!("[MCP {}] {}: {location}", artifact.kind, artifact.name)
|
|
570
|
+
})
|
|
571
|
+
.collect::<Vec<_>>();
|
|
572
|
+
notes.extend(
|
|
573
|
+
warnings
|
|
574
|
+
.iter()
|
|
575
|
+
.map(|warning| format!("[MCP warning] {warning}")),
|
|
576
|
+
);
|
|
577
|
+
notes
|
|
578
|
+
}
|
|
579
|
+
_ => return None,
|
|
580
|
+
})
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
pub(crate) fn publish_mcp_progress(
|
|
584
|
+
tui: Option<&crate::interactive::TuiHandle>,
|
|
585
|
+
event: &AgentProgress,
|
|
586
|
+
) -> bool {
|
|
587
|
+
let Some(notes) = mcp_progress_notes(event) else {
|
|
588
|
+
return false;
|
|
589
|
+
};
|
|
590
|
+
for note in notes {
|
|
591
|
+
if let Some(tui) = tui {
|
|
592
|
+
tui.push_notice(note);
|
|
593
|
+
} else {
|
|
594
|
+
println!("{note}");
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
true
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
pub(crate) fn run_summary_lines(
|
|
601
|
+
summary: &mint_core::orchestration::RunTelemetrySummary,
|
|
602
|
+
) -> Vec<String> {
|
|
603
|
+
let failed_tools: Vec<_> = summary
|
|
604
|
+
.tool_timeline
|
|
605
|
+
.iter()
|
|
606
|
+
.filter(|record| !record.success)
|
|
607
|
+
.collect();
|
|
608
|
+
let outcome = if !failed_tools.is_empty() {
|
|
609
|
+
format!(
|
|
610
|
+
"{YELLOW}⚠ Completed with {} failure{}{RESET}",
|
|
611
|
+
failed_tools.len(),
|
|
612
|
+
if failed_tools.len() == 1 { "" } else { "s" }
|
|
613
|
+
)
|
|
614
|
+
} else if summary.outcome == "ROLLED_BACK" {
|
|
615
|
+
format!("{YELLOW}↺ Rolled back{RESET}")
|
|
616
|
+
} else if summary.outcome == "FAILED" {
|
|
617
|
+
format!("{RED}✗ Failed{RESET}")
|
|
618
|
+
} else {
|
|
619
|
+
format!("{GREEN}✓ Completed{RESET}")
|
|
620
|
+
};
|
|
621
|
+
let file_count = summary.files_changed.len();
|
|
622
|
+
let mut lines = vec![format!(
|
|
623
|
+
" {outcome} {DIM}in {:.1}s · {} tool{} · {} file{} changed{RESET}",
|
|
624
|
+
summary.duration_secs,
|
|
625
|
+
summary.tool_calls_count,
|
|
626
|
+
if summary.tool_calls_count == 1 {
|
|
627
|
+
""
|
|
628
|
+
} else {
|
|
629
|
+
"s"
|
|
630
|
+
},
|
|
631
|
+
file_count,
|
|
632
|
+
if file_count == 1 { "" } else { "s" },
|
|
633
|
+
)];
|
|
634
|
+
|
|
635
|
+
if file_count > 0 {
|
|
636
|
+
let mut names: Vec<String> = summary
|
|
637
|
+
.files_changed
|
|
638
|
+
.iter()
|
|
639
|
+
.take(6)
|
|
640
|
+
.map(|path| display_tool_target(path))
|
|
641
|
+
.collect();
|
|
642
|
+
if file_count > names.len() {
|
|
643
|
+
names.push(format!("+{} more", file_count - names.len()));
|
|
644
|
+
}
|
|
645
|
+
lines.push(format!(" {DIM}└ {}{RESET}", names.join(", ")));
|
|
646
|
+
}
|
|
647
|
+
for record in failed_tools.into_iter().take(3) {
|
|
648
|
+
let target = if record.target.is_empty() {
|
|
649
|
+
record.action.clone()
|
|
650
|
+
} else {
|
|
651
|
+
format!("{} [{}]", record.action, truncate_line(&record.target, 72))
|
|
652
|
+
};
|
|
653
|
+
lines.push(format!(" {RED}└ {target} failed{RESET}"));
|
|
654
|
+
}
|
|
655
|
+
lines
|
|
656
|
+
}
|
|
657
|
+
|
|
518
658
|
pub async fn run_code_agent_with_options(
|
|
519
659
|
task: &str,
|
|
520
660
|
root: &Path,
|
|
@@ -525,8 +665,26 @@ pub async fn run_code_agent_with_options(
|
|
|
525
665
|
queued_out: Arc<Mutex<Vec<String>>>,
|
|
526
666
|
draft_out: Arc<Mutex<Option<String>>>,
|
|
527
667
|
) -> Result<AgentResult> {
|
|
668
|
+
let target_chat_id = options.chat_id.as_deref().unwrap_or(CHAT_CLI_ID);
|
|
669
|
+
let receipt = crate::image::prepare_attachments(
|
|
670
|
+
config,
|
|
671
|
+
target_chat_id,
|
|
672
|
+
task,
|
|
673
|
+
image_data_uri.as_deref(),
|
|
674
|
+
video_data_uri.as_deref(),
|
|
675
|
+
options.image_name.as_deref(),
|
|
676
|
+
)
|
|
677
|
+
.await?;
|
|
678
|
+
if receipt.is_some()
|
|
679
|
+
&& let Some(tui) = &options.tui
|
|
680
|
+
{
|
|
681
|
+
tui.set_notice("Attachments saved to Library");
|
|
682
|
+
}
|
|
528
683
|
let started_at = Instant::now();
|
|
529
684
|
crate::interactive::clear_last_thought();
|
|
685
|
+
if let Some(tui) = &options.tui {
|
|
686
|
+
tui.reset_thoughts();
|
|
687
|
+
}
|
|
530
688
|
let thinking_verb = random_thinking_verb();
|
|
531
689
|
let approval_active = Arc::new(AtomicBool::new(false));
|
|
532
690
|
let agent_done = Arc::new(AtomicBool::new(false));
|
|
@@ -590,6 +748,21 @@ pub async fn run_code_agent_with_options(
|
|
|
590
748
|
let _guard = ApprovalGuard(Arc::clone(&approve_approval_active));
|
|
591
749
|
|
|
592
750
|
match approval {
|
|
751
|
+
AgentApproval::SkillWrite { path, diff, .. } => {
|
|
752
|
+
let (additions, deletions) = diff_stats(diff);
|
|
753
|
+
print_diff_header("Save skill", path, additions, deletions);
|
|
754
|
+
print_colored_diff(diff);
|
|
755
|
+
Ok(
|
|
756
|
+
if confirm_pausing_interrupt(
|
|
757
|
+
"Save these instructions for future tasks?",
|
|
758
|
+
&approve_approval_active,
|
|
759
|
+
) {
|
|
760
|
+
ApprovalOutcome::Approved
|
|
761
|
+
} else {
|
|
762
|
+
ApprovalOutcome::Denied
|
|
763
|
+
},
|
|
764
|
+
)
|
|
765
|
+
}
|
|
593
766
|
AgentApproval::WriteFile { path, diff, .. } => confirm_with_persistence(
|
|
594
767
|
"write_file",
|
|
595
768
|
path,
|
|
@@ -798,18 +971,18 @@ pub async fn run_code_agent_with_options(
|
|
|
798
971
|
break;
|
|
799
972
|
}
|
|
800
973
|
if timer_tool_running.load(Ordering::Relaxed) == 0 {
|
|
801
|
-
status.thinking = Some(
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
)
|
|
811
|
-
|
|
812
|
-
);
|
|
974
|
+
status.thinking = Some(if let Some(started) = status.compaction_started {
|
|
975
|
+
compaction_label(started.elapsed())
|
|
976
|
+
} else if let Some((attempt, max_attempts)) = status.waiting_for_network {
|
|
977
|
+
waiting_for_network_label(attempt, max_attempts)
|
|
978
|
+
} else {
|
|
979
|
+
let context_suffix = context_pct_suffix(status.context_pct);
|
|
980
|
+
let tokens_suffix = live_tokens_suffix(&status);
|
|
981
|
+
format!(
|
|
982
|
+
"{thinking_verb} ({}{tokens_suffix}{context_suffix} • Esc to interrupt)",
|
|
983
|
+
format_elapsed(timer_started_at.elapsed())
|
|
984
|
+
)
|
|
985
|
+
});
|
|
813
986
|
}
|
|
814
987
|
render_live_status(&mut status);
|
|
815
988
|
}
|
|
@@ -831,7 +1004,15 @@ pub async fn run_code_agent_with_options(
|
|
|
831
1004
|
mint_core::avatar_bridge::AvatarBridgeConfig::from_mint_config(config),
|
|
832
1005
|
);
|
|
833
1006
|
let progress_cb = |progress: AgentProgress| {
|
|
1007
|
+
if !options.fast_mode
|
|
1008
|
+
&& let Some(tui) = &options.tui
|
|
1009
|
+
{
|
|
1010
|
+
tui.tool_progress(&progress);
|
|
1011
|
+
}
|
|
834
1012
|
avatar_bridge.on_agent_progress(&progress);
|
|
1013
|
+
if publish_mcp_progress(options.tui.as_ref(), &progress) {
|
|
1014
|
+
return;
|
|
1015
|
+
}
|
|
835
1016
|
match progress {
|
|
836
1017
|
AgentProgress::Thinking {
|
|
837
1018
|
elapsed_secs,
|
|
@@ -888,6 +1069,37 @@ pub async fn run_code_agent_with_options(
|
|
|
888
1069
|
render_live_status(&mut status);
|
|
889
1070
|
}
|
|
890
1071
|
}
|
|
1072
|
+
AgentProgress::ContextCompaction {
|
|
1073
|
+
subagent,
|
|
1074
|
+
status: phase,
|
|
1075
|
+
message,
|
|
1076
|
+
} => {
|
|
1077
|
+
if !options.fast_mode
|
|
1078
|
+
&& let Ok(mut status) = progress_live_status.lock()
|
|
1079
|
+
{
|
|
1080
|
+
update_context_compaction(
|
|
1081
|
+
&mut status,
|
|
1082
|
+
&phase,
|
|
1083
|
+
subagent.as_deref(),
|
|
1084
|
+
Instant::now(),
|
|
1085
|
+
);
|
|
1086
|
+
if phase == "started" {
|
|
1087
|
+
status.thinking = Some(compaction_label(Duration::ZERO));
|
|
1088
|
+
} else {
|
|
1089
|
+
print_timeline_note(&mut status, &message, started_at.elapsed(), None);
|
|
1090
|
+
status.context_pct = None;
|
|
1091
|
+
status.thinking = Some(if let Some(started) = status.compaction_started {
|
|
1092
|
+
compaction_label(started.elapsed())
|
|
1093
|
+
} else {
|
|
1094
|
+
format!(
|
|
1095
|
+
"{thinking_verb} ({} • Esc to interrupt)",
|
|
1096
|
+
format_elapsed(started_at.elapsed())
|
|
1097
|
+
)
|
|
1098
|
+
});
|
|
1099
|
+
}
|
|
1100
|
+
render_live_status(&mut status);
|
|
1101
|
+
}
|
|
1102
|
+
}
|
|
891
1103
|
AgentProgress::WaitingForNetwork {
|
|
892
1104
|
attempt,
|
|
893
1105
|
max_attempts,
|
|
@@ -927,6 +1139,9 @@ pub async fn run_code_agent_with_options(
|
|
|
927
1139
|
let elapsed = Duration::from_millis(elapsed_ms);
|
|
928
1140
|
let elapsed_str = crate::interactive::format_thought_elapsed(elapsed);
|
|
929
1141
|
crate::interactive::append_thought_delta(&id, &delta, &elapsed_str);
|
|
1142
|
+
if let Some(tui) = &options.tui {
|
|
1143
|
+
tui.append_thought_delta(&id, &delta, elapsed);
|
|
1144
|
+
}
|
|
930
1145
|
}
|
|
931
1146
|
}
|
|
932
1147
|
AgentProgress::ExtendedThinking {
|
|
@@ -945,11 +1160,7 @@ pub async fn run_code_agent_with_options(
|
|
|
945
1160
|
let elapsed = elapsed_ms
|
|
946
1161
|
.map(Duration::from_millis)
|
|
947
1162
|
.unwrap_or_else(|| started_at.elapsed());
|
|
948
|
-
|
|
949
|
-
// as regular Thought — `print_timeline_note` already
|
|
950
|
-
// distinguishes internal CoT (long) from short notes via
|
|
951
|
-
// `is_internal_cot` and renders accordingly.
|
|
952
|
-
print_timeline_note(&mut status, &thought, elapsed, id.as_deref());
|
|
1163
|
+
print_extended_thinking(&mut status, &thought, elapsed, id.as_deref());
|
|
953
1164
|
status.thinking = None;
|
|
954
1165
|
status.waiting_for_network = None;
|
|
955
1166
|
render_live_status(&mut status);
|
|
@@ -959,6 +1170,7 @@ pub async fn run_code_agent_with_options(
|
|
|
959
1170
|
action,
|
|
960
1171
|
input,
|
|
961
1172
|
subagent,
|
|
1173
|
+
..
|
|
962
1174
|
} => {
|
|
963
1175
|
progress_tool_running.fetch_add(1, Ordering::Relaxed);
|
|
964
1176
|
if !options.fast_mode
|
|
@@ -1001,13 +1213,26 @@ pub async fn run_code_agent_with_options(
|
|
|
1001
1213
|
return;
|
|
1002
1214
|
}
|
|
1003
1215
|
if action == "read_file"
|
|
1004
|
-
&& let Some(
|
|
1005
|
-
|
|
1216
|
+
&& let Some(skill_name) = input
|
|
1217
|
+
.get("skill_name")
|
|
1218
|
+
.and_then(|v| v.as_str())
|
|
1219
|
+
.map(str::to_owned)
|
|
1220
|
+
.or_else(|| {
|
|
1221
|
+
input
|
|
1222
|
+
.get("path")
|
|
1223
|
+
.and_then(|v| v.as_str())
|
|
1224
|
+
.and_then(skill_name_for_read_path)
|
|
1225
|
+
})
|
|
1006
1226
|
{
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1227
|
+
if let Ok(mut status) = progress_live_status.lock() {
|
|
1228
|
+
status.thinking = None;
|
|
1229
|
+
status.waiting_for_network = None;
|
|
1230
|
+
status.tasks.push(TaskEntry {
|
|
1231
|
+
label: format!("Reading skill: {skill_name}"),
|
|
1232
|
+
output: Vec::new(),
|
|
1233
|
+
});
|
|
1234
|
+
render_live_status(&mut status);
|
|
1235
|
+
}
|
|
1011
1236
|
return;
|
|
1012
1237
|
}
|
|
1013
1238
|
if let Some(label) = explored_action_label(&action, &input) {
|
|
@@ -1039,6 +1264,7 @@ pub async fn run_code_agent_with_options(
|
|
|
1039
1264
|
input,
|
|
1040
1265
|
result,
|
|
1041
1266
|
subagent,
|
|
1267
|
+
..
|
|
1042
1268
|
} => {
|
|
1043
1269
|
let remaining = progress_tool_running
|
|
1044
1270
|
.fetch_update(Ordering::Relaxed, Ordering::Relaxed, |running| {
|
|
@@ -1112,13 +1338,29 @@ pub async fn run_code_agent_with_options(
|
|
|
1112
1338
|
}
|
|
1113
1339
|
render_live_status(&mut status);
|
|
1114
1340
|
} else if action == "read_file"
|
|
1115
|
-
&& let Some(
|
|
1116
|
-
|
|
1341
|
+
&& let Some(skill_name) = input
|
|
1342
|
+
.get("skill_name")
|
|
1343
|
+
.and_then(|v| v.as_str())
|
|
1344
|
+
.map(str::to_owned)
|
|
1345
|
+
.or_else(|| {
|
|
1346
|
+
input
|
|
1347
|
+
.get("path")
|
|
1348
|
+
.and_then(|v| v.as_str())
|
|
1349
|
+
.and_then(skill_name_for_read_path)
|
|
1350
|
+
})
|
|
1117
1351
|
&& let Ok(mut status) = progress_live_status.lock()
|
|
1118
1352
|
{
|
|
1119
1353
|
status.thinking = None;
|
|
1120
1354
|
status.waiting_for_network = None;
|
|
1121
|
-
|
|
1355
|
+
if let Some(task) = status
|
|
1356
|
+
.tasks
|
|
1357
|
+
.iter_mut()
|
|
1358
|
+
.rev()
|
|
1359
|
+
.find(|task| task.label == format!("Reading skill: {skill_name}"))
|
|
1360
|
+
{
|
|
1361
|
+
task.label = skill_read_label(&skill_name, &result);
|
|
1362
|
+
task.output = command_output_preview(&result);
|
|
1363
|
+
}
|
|
1122
1364
|
render_live_status(&mut status);
|
|
1123
1365
|
} else if action == "memory_recall" {
|
|
1124
1366
|
let skill_names = skill_names_from_memory_recall(&result);
|
|
@@ -1128,7 +1370,10 @@ pub async fn run_code_agent_with_options(
|
|
|
1128
1370
|
status.thinking = None;
|
|
1129
1371
|
status.waiting_for_network = None;
|
|
1130
1372
|
for name in skill_names {
|
|
1131
|
-
status.tasks.push(
|
|
1373
|
+
status.tasks.push(TaskEntry {
|
|
1374
|
+
label: format!("Found skill: {name}"),
|
|
1375
|
+
output: Vec::new(),
|
|
1376
|
+
});
|
|
1132
1377
|
}
|
|
1133
1378
|
render_live_status(&mut status);
|
|
1134
1379
|
}
|
|
@@ -1144,6 +1389,10 @@ pub async fn run_code_agent_with_options(
|
|
|
1144
1389
|
status.web_sources.extend(sources);
|
|
1145
1390
|
}
|
|
1146
1391
|
}
|
|
1392
|
+
AgentProgress::ToolDiscovery { .. }
|
|
1393
|
+
| AgentProgress::DeviceState { .. }
|
|
1394
|
+
| AgentProgress::ToolProgress { .. }
|
|
1395
|
+
| AgentProgress::ToolArtifacts { .. } => {}
|
|
1147
1396
|
AgentProgress::PlanUpdated { plan } => {
|
|
1148
1397
|
if let Ok(mut status) = progress_live_status.lock() {
|
|
1149
1398
|
status.thinking = None;
|
|
@@ -1178,58 +1427,7 @@ pub async fn run_code_agent_with_options(
|
|
|
1178
1427
|
status.waiting_for_network = None;
|
|
1179
1428
|
commit_activity_snapshot(&mut status);
|
|
1180
1429
|
|
|
1181
|
-
let
|
|
1182
|
-
.tool_timeline
|
|
1183
|
-
.iter()
|
|
1184
|
-
.filter(|record| !record.success)
|
|
1185
|
-
.collect();
|
|
1186
|
-
let outcome = if !failed_tools.is_empty() {
|
|
1187
|
-
format!(
|
|
1188
|
-
"{YELLOW}⚠ Completed with {} failure{}{RESET}",
|
|
1189
|
-
failed_tools.len(),
|
|
1190
|
-
if failed_tools.len() == 1 { "" } else { "s" }
|
|
1191
|
-
)
|
|
1192
|
-
} else if summary.outcome == "ROLLED_BACK" {
|
|
1193
|
-
format!("{YELLOW}↺ Rolled back{RESET}")
|
|
1194
|
-
} else if summary.outcome == "FAILED" {
|
|
1195
|
-
format!("{RED}✗ Failed{RESET}")
|
|
1196
|
-
} else {
|
|
1197
|
-
format!("{GREEN}✓ Completed{RESET}")
|
|
1198
|
-
};
|
|
1199
|
-
let file_count = summary.files_changed.len();
|
|
1200
|
-
let mut lines = vec![format!(
|
|
1201
|
-
" {outcome} {DIM}in {:.1}s · {} tool{} · {} file{} changed{RESET}",
|
|
1202
|
-
summary.duration_secs,
|
|
1203
|
-
summary.tool_calls_count,
|
|
1204
|
-
if summary.tool_calls_count == 1 {
|
|
1205
|
-
""
|
|
1206
|
-
} else {
|
|
1207
|
-
"s"
|
|
1208
|
-
},
|
|
1209
|
-
file_count,
|
|
1210
|
-
if file_count == 1 { "" } else { "s" },
|
|
1211
|
-
)];
|
|
1212
|
-
|
|
1213
|
-
if file_count > 0 {
|
|
1214
|
-
let mut names: Vec<String> = summary
|
|
1215
|
-
.files_changed
|
|
1216
|
-
.iter()
|
|
1217
|
-
.take(6)
|
|
1218
|
-
.map(|path| display_tool_target(path))
|
|
1219
|
-
.collect();
|
|
1220
|
-
if file_count > names.len() {
|
|
1221
|
-
names.push(format!("+{} more", file_count - names.len()));
|
|
1222
|
-
}
|
|
1223
|
-
lines.push(format!(" {DIM}└ {}{RESET}", names.join(", ")));
|
|
1224
|
-
}
|
|
1225
|
-
for record in failed_tools.into_iter().take(3) {
|
|
1226
|
-
let target = if record.target.is_empty() {
|
|
1227
|
-
record.action.clone()
|
|
1228
|
-
} else {
|
|
1229
|
-
format!("{} [{}]", record.action, truncate_line(&record.target, 72))
|
|
1230
|
-
};
|
|
1231
|
-
lines.push(format!(" {RED}└ {target} failed{RESET}"));
|
|
1232
|
-
}
|
|
1430
|
+
let lines = run_summary_lines(&summary);
|
|
1233
1431
|
insert_permanent_lines(&mut status, &lines);
|
|
1234
1432
|
}
|
|
1235
1433
|
}
|
|
@@ -1246,22 +1444,32 @@ pub async fn run_code_agent_with_options(
|
|
|
1246
1444
|
|
|
1247
1445
|
let target_chat_id = options.chat_id.as_deref().unwrap_or(CHAT_CLI_ID);
|
|
1248
1446
|
|
|
1249
|
-
let agent_loop =
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1447
|
+
let agent_loop = mint_core::with_turn_start_listener(
|
|
1448
|
+
target_chat_id.to_owned(),
|
|
1449
|
+
move |id| {
|
|
1450
|
+
if let Some(receipt) = &receipt
|
|
1451
|
+
&& let Err(error) = receipt.bind(id)
|
|
1452
|
+
{
|
|
1453
|
+
eprintln!("Library reference: {error}")
|
|
1454
|
+
}
|
|
1455
|
+
},
|
|
1456
|
+
orchestrate_agent_loop(
|
|
1457
|
+
config,
|
|
1458
|
+
task,
|
|
1459
|
+
root,
|
|
1460
|
+
image_data_uri,
|
|
1461
|
+
None,
|
|
1462
|
+
video_data_uri,
|
|
1463
|
+
Some(target_chat_id),
|
|
1464
|
+
None,
|
|
1465
|
+
user_name.as_deref(),
|
|
1466
|
+
options.pinned_mcp_server.as_deref(),
|
|
1467
|
+
options.fast_mode,
|
|
1468
|
+
options.plan_mode,
|
|
1469
|
+
approve_cb,
|
|
1470
|
+
progress_cb,
|
|
1471
|
+
on_chunk,
|
|
1472
|
+
),
|
|
1265
1473
|
);
|
|
1266
1474
|
let res = tokio::select! {
|
|
1267
1475
|
res = agent_loop => res,
|
|
@@ -1601,6 +1809,26 @@ mod command_output_preview_tests {
|
|
|
1601
1809
|
mod skill_card_tests {
|
|
1602
1810
|
use super::*;
|
|
1603
1811
|
|
|
1812
|
+
#[test]
|
|
1813
|
+
fn skill_labels_distinguish_full_load_failure_and_preview() {
|
|
1814
|
+
assert_eq!(
|
|
1815
|
+
skill_read_label("review", "[Loaded skill: review]\nbody"),
|
|
1816
|
+
"Loaded skill: review"
|
|
1817
|
+
);
|
|
1818
|
+
assert_eq!(
|
|
1819
|
+
skill_read_label("review", "Error: denied"),
|
|
1820
|
+
"Failed to read skill: review"
|
|
1821
|
+
);
|
|
1822
|
+
assert_eq!(
|
|
1823
|
+
skill_read_label("review", "Blocked by hook: denied"),
|
|
1824
|
+
"Failed to read skill: review"
|
|
1825
|
+
);
|
|
1826
|
+
assert_eq!(
|
|
1827
|
+
skill_read_label("review", "1 | header"),
|
|
1828
|
+
"Read skill preview: review"
|
|
1829
|
+
);
|
|
1830
|
+
}
|
|
1831
|
+
|
|
1604
1832
|
#[test]
|
|
1605
1833
|
fn recognizes_workspace_skill_paths() {
|
|
1606
1834
|
assert_eq!(
|