@pheem49/mint 1.17.0 → 1.18.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 +6 -6
- package/Cargo.toml +2 -2
- package/README.md +8 -2
- package/Release_Note.md +222 -71
- package/crates/mint-cli/src/agent/diff_render.rs +66 -44
- package/crates/mint-cli/src/agent/live_status.rs +21 -4
- package/crates/mint-cli/src/agent/markdown_render.rs +342 -5
- package/crates/mint-cli/src/agent.rs +25 -10
- package/crates/mint-cli/src/commands/agent.rs +4 -92
- package/crates/mint-cli/src/commands/browser.rs +2 -15
- package/crates/mint-cli/src/commands/integrations.rs +3 -3
- package/crates/mint-cli/src/commands/mod.rs +0 -3
- package/crates/mint-cli/src/commands/tailnet_web.rs +1 -0
- package/crates/mint-cli/src/interactive/chat_tui/dialog.rs +572 -0
- package/crates/mint-cli/src/interactive/chat_tui/mod.rs +1427 -0
- package/crates/mint-cli/src/interactive/chat_tui/render.rs +1524 -0
- package/crates/mint-cli/src/interactive/chat_tui/selection.rs +401 -0
- package/crates/mint-cli/src/interactive/chat_tui/state.rs +1833 -0
- package/crates/mint-cli/src/interactive/chat_tui/tests.rs +3414 -0
- package/crates/mint-cli/src/interactive/chat_tui/thought.rs +202 -0
- package/crates/mint-cli/src/interactive/chat_tui/transcript.rs +728 -0
- package/crates/mint-cli/src/interactive/chat_tui/watermark.rs +148 -0
- package/crates/mint-cli/src/interactive/command_ui.rs +53 -5
- package/crates/mint-cli/src/interactive/composer.rs +186 -0
- package/crates/mint-cli/src/interactive/format.rs +78 -3
- package/crates/mint-cli/src/interactive/input_box.rs +61 -1
- package/crates/mint-cli/src/interactive/resume_picker.rs +367 -25
- package/crates/mint-cli/src/interactive/slash_commands.rs +648 -371
- package/crates/mint-cli/src/interactive/tool_activity.rs +93 -20
- package/crates/mint-cli/src/interactive.rs +37 -0
- package/crates/mint-cli/src/main.rs +6 -3
- package/crates/mint-cli/src/markdown.rs +2 -37
- package/crates/mint-cli/src/onboard.rs +700 -282
- package/crates/mint-cli/src/setup.rs +1342 -624
- package/crates/mint-cli/src/terminal_theme.rs +159 -35
- package/crates/mint-cli/tests/library_intake.rs +1 -0
- package/crates/mint-core/src/agent/chat/anthropic.rs +318 -0
- package/crates/mint-core/src/agent/chat/custom.rs +149 -0
- package/crates/mint-core/src/agent/chat/gemini.rs +518 -0
- package/crates/mint-core/src/agent/chat/mod.rs +857 -0
- package/crates/mint-core/src/agent/chat/ollama.rs +321 -0
- package/crates/mint-core/src/agent/chat/openai.rs +582 -0
- package/crates/mint-core/src/agent/chat/streaming.rs +469 -0
- package/crates/mint-core/src/agent/chat/tests.rs +1479 -0
- package/crates/mint-core/src/agent/memory.rs +56 -2
- package/crates/mint-core/src/agent/tasks.rs +2 -2
- package/crates/mint-core/src/api_server/routes/chat.rs +24 -2
- package/crates/mint-core/src/api_server/routes/gemini_live.rs +14 -1
- package/crates/mint-core/src/api_server/routes/html_preview.rs +1 -8
- package/crates/mint-core/src/api_server/routes/sessions.rs +21 -0
- package/crates/mint-core/src/avatar_bridge.rs +0 -22
- package/crates/mint-core/src/browser/cdp.rs +10 -4
- package/crates/mint-core/src/browser/headless.rs +582 -0
- package/crates/mint-core/src/browser/input.rs +7 -62
- package/crates/mint-core/src/browser/interact.rs +0 -14
- package/crates/mint-core/src/browser/mod.rs +8 -29
- package/crates/mint-core/src/browser/navigate.rs +2 -36
- package/crates/mint-core/src/browser/runtime.rs +2 -4
- package/crates/mint-core/src/browser/session.rs +50 -466
- package/crates/mint-core/src/browser/workflow.rs +142 -32
- package/crates/mint-core/src/cron/store.rs +2 -2
- package/crates/mint-core/src/integrations/mcp.rs +6 -8
- package/crates/mint-core/src/lib.rs +0 -5
- package/crates/mint-core/src/media/gemini_live.rs +636 -86
- package/crates/mint-core/src/media/library/migration.rs +26 -0
- package/crates/mint-core/src/media/library/tests.rs +1 -1
- package/crates/mint-core/src/media/library/thumbnails.rs +8 -2
- package/crates/mint-core/src/media/pictures.rs +1 -1
- package/crates/mint-core/src/media/tool_images.rs +92 -1
- package/crates/mint-core/src/mods/manager.rs +101 -35
- package/crates/mint-core/src/orchestration/context_render.rs +441 -24
- package/crates/mint-core/src/orchestration/decision_parsing.rs +531 -16
- package/crates/mint-core/src/orchestration/full_skill_result_tests.rs +12 -0
- package/crates/mint-core/src/orchestration/loop_guard.rs +145 -0
- package/crates/mint-core/src/orchestration/mcp_outcome_tests.rs +864 -0
- package/crates/mint-core/src/orchestration/memory_skill.rs +88 -28
- package/crates/mint-core/src/orchestration/mod.rs +320 -4249
- package/crates/mint-core/src/orchestration/reliability.rs +67 -27
- package/crates/mint-core/src/orchestration/review_regressions.rs +5 -0
- package/crates/mint-core/src/orchestration/tests.rs +1665 -0
- package/crates/mint-core/src/orchestration/tools/dispatch.rs +967 -0
- package/crates/mint-core/src/orchestration/tools/files.rs +1 -0
- package/crates/mint-core/src/orchestration/tools/mod.rs +5 -1
- package/crates/mint-core/src/orchestration/tools/planning.rs +102 -42
- package/crates/mint-core/src/orchestration/tools/shell.rs +129 -58
- package/crates/mint-core/src/orchestration/truncation.rs +170 -13
- package/crates/mint-core/src/orchestration/types.rs +648 -0
- package/crates/mint-core/src/orchestration/verification.rs +0 -3
- package/crates/mint-core/src/orchestration/workspace_helpers.rs +24 -6
- package/crates/mint-core/src/prompts/agent.rs +52 -76
- package/crates/mint-core/src/prompts/tool_catalog.rs +8 -151
- package/crates/mint-core/src/search/files.rs +20 -0
- package/crates/mint-core/src/slash/mod.rs +228 -265
- package/crates/mint-core/src/slash/models.rs +6 -1
- package/crates/mint-core/src/system/bg_shell.rs +1 -0
- package/crates/mint-core/src/system/config.rs +176 -34
- package/crates/mint-mod-runtime/src/lib.rs +37 -23
- package/out/web/assets/ArtifactPreviewPanel-Cx6BVOOF.js +2 -0
- package/out/web/assets/CalculationCard-D2E74u5q.js +1 -0
- package/out/web/assets/CliSessionsView-ZbdtSjvK.css +1 -0
- package/out/web/assets/{CliSessionsView-MI8kXMAb.js → CliSessionsView-z5i6qGyb.js} +1 -1
- package/out/web/assets/CodeReviewPage-BK2bOScd.css +1 -0
- package/out/web/assets/CodeReviewPage-Dp6zHuHu.js +2 -0
- package/out/web/assets/{CommandPalette-BD8SlTE5.js → CommandPalette-DaKlzbKs.js} +1 -1
- package/out/web/assets/ImageGenCard-BMCJHP9O.js +1 -0
- package/out/web/assets/ImageSearchCard-Cld_SOUg.js +1 -0
- package/out/web/assets/{ImageStudioPanel-BP7N4rLr.js → ImageStudioPanel-B5N7TjeB.js} +1 -1
- package/out/web/assets/LibraryPage-CMB89rJ0.css +1 -0
- package/out/web/assets/LibraryPage-DbZEi4W_.js +2 -0
- package/out/web/assets/LinkedFoldersView-9B9DIPoZ.js +1 -0
- package/out/web/assets/{McpRegistryPicker-CoS83vtc.js → McpRegistryPicker-DnXPlzI7.js} +1 -1
- package/out/web/assets/McpServersView-CiNBNUl4.js +1 -0
- package/out/web/assets/MermaidCard-BBDNEXbY.js +2 -0
- package/out/web/assets/MintDashboard-C_UYPoNV.js +119 -0
- package/out/web/assets/MintDashboard-DTd8C_c8.css +1 -0
- package/out/web/assets/PlanCard-C2x5pajq.js +1 -0
- package/out/web/assets/{PluginsView-jBYmcKh4.js → PluginsView-DoTg9MVa.js} +1 -1
- package/out/web/assets/RewindModal-B5oowrR0.js +1 -0
- package/out/web/assets/{ScheduledTasksView-5uw9-V9H.js → ScheduledTasksView-BD5DVPkZ.js} +1 -1
- package/out/web/assets/{SelectField-DXBQtrUK.js → SelectField-Cy6CghrU.js} +1 -1
- package/out/web/assets/SettingsWindow-BYl_oCFh.js +4 -0
- package/out/web/assets/SettingsWindow-Ckcgnjt8.css +1 -0
- package/out/web/assets/{SkillsView-C-gp9J7m.js → SkillsView-CIeWwq5z.js} +1 -1
- package/out/web/assets/StockCard-DxUciKyp.js +1 -0
- package/out/web/assets/ToolSurfacePage-qBgs_VHq.css +1 -0
- package/out/web/assets/ToolSurfacePage-saVbVrkE.js +38 -0
- package/out/web/assets/{UiFeatureCard-6BwxTOCe.js → UiFeatureCard-CdY0hGWy.js} +1 -1
- package/out/web/assets/{UiGridCard-DvZcLNxb.js → UiGridCard-BBK3I5hC.js} +1 -1
- package/out/web/assets/UiMockupWidget-CpR9EDuc.js +1 -0
- package/out/web/assets/{VeoStudioPanel-DOj7_WR3.css → VeoStudioPanel-9kU9YLEN.css} +1 -1
- package/out/web/assets/{VeoStudioPanel-DfsOJKv0.js → VeoStudioPanel-Co6-wEWM.js} +2 -2
- package/out/web/assets/WeatherCard-Buzi7Vfu.js +1 -0
- package/out/web/assets/WorkspacePdfPreview-Bi8Zzyir.js +2 -0
- package/out/web/assets/{abnfDiagram-VCTEODGH-BOo3Ckng.js → abnfDiagram-VCTEODGH-CMfR95N2.js} +1 -1
- package/out/web/assets/{architecture-7GRP2DOG-ZOwheW3n.js → architecture-7GRP2DOG-DhAM4HyO.js} +1 -1
- package/out/web/assets/{architectureDiagram-5GKGNRK7-DC2FDzVd.js → architectureDiagram-5GKGNRK7-Yk3TUJ_F.js} +1 -1
- package/out/web/assets/{blockDiagram-I7D4REHJ-BrKFWdAH.js → blockDiagram-I7D4REHJ-X9fBgJik.js} +1 -1
- package/out/web/assets/{c4Diagram-7LVT6UL2-BHTHK1Yd.js → c4Diagram-7LVT6UL2-Bk9x7N-8.js} +1 -1
- package/out/web/assets/{chunk-4HAMMTFA-BYFkZwNj.js → chunk-4HAMMTFA-Dx5fk1_0.js} +1 -1
- package/out/web/assets/{chunk-75Z2AOVW-BSKfSKSA.js → chunk-75Z2AOVW-BszTQoM4.js} +1 -1
- package/out/web/assets/{chunk-DU6HZSFF-vIhsiW6n.js → chunk-DU6HZSFF-DK-As3rk.js} +1 -1
- package/out/web/assets/{chunk-F27PBJKO-BlYpW9xq.js → chunk-F27PBJKO-LmncZZIS.js} +1 -1
- package/out/web/assets/{chunk-GMAD6QVW-BIBz_Ug5.js → chunk-GMAD6QVW-DSQ_sDRJ.js} +1 -1
- package/out/web/assets/{chunk-GVQU2GXP-NPSHxeqC.js → chunk-GVQU2GXP-Cno3ulje.js} +1 -1
- package/out/web/assets/{chunk-IMKFNOWR-YlJK8_Fp.js → chunk-IMKFNOWR-bIzfY9Jc.js} +1 -1
- package/out/web/assets/{chunk-L3NEJ4N5-DMYi4-af.js → chunk-L3NEJ4N5-Dl6eOa0D.js} +1 -1
- package/out/web/assets/{chunk-OSK3NFVY-Begd3-jA.js → chunk-OSK3NFVY-BaUGJ-cM.js} +1 -1
- package/out/web/assets/{chunk-P2QGCYS3-D1I4xFHN.js → chunk-P2QGCYS3-_066ndhH.js} +1 -1
- package/out/web/assets/{chunk-POPQ4Y6H-CafZZzNE.js → chunk-POPQ4Y6H-YT1AKhTv.js} +1 -1
- package/out/web/assets/{chunk-PWAF6VOD-Dwh6_Lnt.js → chunk-PWAF6VOD-CrEgDsxh.js} +1 -1
- package/out/web/assets/{chunk-SHT3W25Y-B0XrCSEb.js → chunk-SHT3W25Y-_KwaRLOl.js} +1 -1
- package/out/web/assets/{chunk-SVP7TREG-CxLsddxC.js → chunk-SVP7TREG-BQ1qb32L.js} +1 -1
- package/out/web/assets/{chunk-TICWLB2K-y156QInb.js → chunk-TICWLB2K-BDyehCtg.js} +1 -1
- package/out/web/assets/classDiagram-ZZMXUADV-BoSpzRCJ.js +1 -0
- package/out/web/assets/classDiagram-v2-VYDZK3BY-BoSpzRCJ.js +1 -0
- package/out/web/assets/{config-DqXJXeZM.css → config-2suVFPZg.css} +1 -1
- package/out/web/assets/config-CkRCdkxn.js +2 -0
- package/out/web/assets/{cynefin-OW5HDTMX-SMVvrLf-.js → cynefin-OW5HDTMX-Dl_31aaN.js} +1 -1
- package/out/web/assets/{cynefinDiagram-5FMLGOSQ-rZznN24T.js → cynefinDiagram-5FMLGOSQ-Bpir8jha.js} +1 -1
- package/out/web/assets/{dagre-GXQ25YYZ-BOToydFu.js → dagre-GXQ25YYZ-D9xu3nsq.js} +1 -1
- package/out/web/assets/{diagram-S7CK7UJ4-TMVaGQEJ.js → diagram-S7CK7UJ4-DeveoEeB.js} +1 -1
- package/out/web/assets/{diagram-UQ7AKVKN-C2JK-GP2.js → diagram-UQ7AKVKN-p4xWRESV.js} +1 -1
- package/out/web/assets/{diagram-VSXAHHWV-Cw8VSi2K.js → diagram-VSXAHHWV-C7qz9NDF.js} +1 -1
- package/out/web/assets/{diagram-VX7I27RA-DXp4fKk9.js → diagram-VX7I27RA-DRiCa3Vd.js} +1 -1
- package/out/web/assets/{diagram-Z3DM3KII-CzSicYiW.js → diagram-Z3DM3KII-Bt7zduQX.js} +1 -1
- package/out/web/assets/{ebnfDiagram-PWID7BFC-Dqj-zqPu.js → ebnfDiagram-PWID7BFC-DV9WpwdR.js} +1 -1
- package/out/web/assets/{erDiagram-RLTQ6QDP-DZwFZAuD.js → erDiagram-RLTQ6QDP-BJ_nwG2m.js} +1 -1
- package/out/web/assets/{eventmodeling-NTZA5JFV-C0O-Lvgp.js → eventmodeling-NTZA5JFV-BTBMrfVa.js} +1 -1
- package/out/web/assets/flowDiagram-HODETNUW-Cdlq3cJL.js +1 -0
- package/out/web/assets/{ganttDiagram-EL5Y4UJY-Da4ULXTl.js → ganttDiagram-EL5Y4UJY-DQLdsXrC.js} +1 -1
- package/out/web/assets/{gitGraph-4MIJSDKK-B9wNFZIP.js → gitGraph-4MIJSDKK-CL1OEOQ_.js} +1 -1
- package/out/web/assets/{gitGraphDiagram-WWUBYQGX-RjrhB0MP.js → gitGraphDiagram-WWUBYQGX-8cSi42H7.js} +1 -1
- package/out/web/assets/index-BocxnrDG.js +168 -0
- package/out/web/assets/index-yeh_r55a.css +1 -0
- package/out/web/assets/{info-A6RAGUB7-B3dfCpeY.js → info-A6RAGUB7-C1zsX5sc.js} +1 -1
- package/out/web/assets/{infoDiagram-27XIBGKW-QVWkLVx7.js → infoDiagram-27XIBGKW-DsRYtIyI.js} +1 -1
- package/out/web/assets/{ishikawaDiagram-5VMMS53U-CLFNIRI9.js → ishikawaDiagram-5VMMS53U-B2crwIXj.js} +1 -1
- package/out/web/assets/{journeyDiagram-3NMN7TZE-fgOQadYF.js → journeyDiagram-3NMN7TZE-BTH-GyVR.js} +1 -1
- package/out/web/assets/{kanban-definition-UXKFOSKX-G3Q_9g9O.js → kanban-definition-UXKFOSKX-BeRfCnuA.js} +1 -1
- package/out/web/assets/{mermaid-parser.core-v3Jm7nco.js → mermaid-parser.core-BJwgCBBc.js} +3 -3
- package/out/web/assets/{mermaid.core-DTEjLUA1.js → mermaid.core-CsDDodN8.js} +4 -4
- package/out/web/assets/{mindmap-definition-YA3MSWOX-C_D42_fF.js → mindmap-definition-YA3MSWOX-B42efOQ1.js} +1 -1
- package/out/web/assets/{modelManager-BPLycQrN.js → modelManager-B3ZFMh8v.js} +2 -2
- package/out/web/assets/{oauthManager-BUK7ic7q.js → oauthManager-Ch5Du2fF.js} +1 -1
- package/out/web/assets/{packet-AYTQ26CC-B-R-SHlF.js → packet-AYTQ26CC-B6xUyE6r.js} +1 -1
- package/out/web/assets/{pegDiagram-XKGWAZYB-Da2q_giz.js → pegDiagram-XKGWAZYB-1LabVycL.js} +1 -1
- package/out/web/assets/{pie-WAS4IAKB-BC8F0N7-.js → pie-WAS4IAKB-DJwo-nf_.js} +1 -1
- package/out/web/assets/{pieDiagram-E7YTZNPT-Iy9REJNC.js → pieDiagram-E7YTZNPT-icmAqzy4.js} +1 -1
- package/out/web/assets/{quadrantDiagram-AXDQQJYC-ztsiYw7h.js → quadrantDiagram-AXDQQJYC-CZ-wEx41.js} +1 -1
- package/out/web/assets/{radar-RG4KPBEZ-B_1P8Z_z.js → radar-RG4KPBEZ-D7d-Xriw.js} +1 -1
- package/out/web/assets/{railroad-74A4TZTK-DuTqczSo.js → railroad-74A4TZTK-viuhdYbs.js} +1 -1
- package/out/web/assets/{railroad-abnf-HS5TGJTU-Df29WLmp.js → railroad-abnf-HS5TGJTU-DNXiCNea.js} +1 -1
- package/out/web/assets/{railroad-ebnf-LZEXJU2U-ePFMo-qp.js → railroad-ebnf-LZEXJU2U-nkSu1-0C.js} +1 -1
- package/out/web/assets/{railroad-peg-WCYAUIDC-DYXLW4_E.js → railroad-peg-WCYAUIDC-BhbMeQzz.js} +1 -1
- package/out/web/assets/{railroadDiagram-O6MQD6OU-LStnZf2S.js → railroadDiagram-O6MQD6OU-CLpG1jUX.js} +1 -1
- package/out/web/assets/{requirementDiagram-BXWQKSXE-DmzonMH-.js → requirementDiagram-BXWQKSXE-kRDrvWrc.js} +1 -1
- package/out/web/assets/{sankeyDiagram-P5KCCOFB-B8vjmUU1.js → sankeyDiagram-P5KCCOFB-DxAwmq4x.js} +1 -1
- package/out/web/assets/{sequenceDiagram-WJ2MYXX4-CTnplOAX.js → sequenceDiagram-WJ2MYXX4-aLgY-6Wz.js} +1 -1
- package/out/web/assets/{stateDiagram-D77RDMKH-BFrIaLdI.js → stateDiagram-D77RDMKH-D5QWfOhp.js} +1 -1
- package/out/web/assets/stateDiagram-v2-MP3YSRHH-D6OiZoAP.js +1 -0
- package/out/web/assets/{swimlanes-42K2YHIH-BXGngUNU.js → swimlanes-42K2YHIH-CRs5UyA-.js} +1 -1
- package/out/web/assets/swimlanesDiagram-VR7AAH4N-UgEXIsV0.js +8 -0
- package/out/web/assets/syntaxHighlight-C-wAGT84.js +3 -0
- package/out/web/assets/{timeline-definition-24CTP7MA-CegH7n43.js → timeline-definition-24CTP7MA-Denqd9qb.js} +1 -1
- package/out/web/assets/{treeView-Q6P3EWNA-DTpJv2Tw.js → treeView-Q6P3EWNA-0my3Z3s4.js} +1 -1
- package/out/web/assets/{treemap-WGGIJYW6-i8M9iJU6.js → treemap-WGGIJYW6-B_EjkLYq.js} +1 -1
- package/out/web/assets/{vennDiagram-4TSXK5OY-Dpzo1S8U.js → vennDiagram-4TSXK5OY-DxVg3Ewr.js} +1 -1
- package/out/web/assets/{wardley-WFR3VGLG-BrNsgtfw.js → wardley-WFR3VGLG-CGD-Tj4p.js} +1 -1
- package/out/web/assets/{wardleyDiagram-VM6X3IG4-lQ92LFE1.js → wardleyDiagram-VM6X3IG4-CmfS39Xm.js} +1 -1
- package/out/web/assets/{xychartDiagram-S5SC5T6Z-BaOaEoBd.js → xychartDiagram-S5SC5T6Z-BVM9bKis.js} +1 -1
- package/out/web/index-web.html +2 -2
- package/out/web/index.html +2 -2
- package/package.json +2 -2
- package/shared-modules/CODEOWNERS +3 -3
- package/shared-modules/SDL2/SDL2_mixer.json +27 -0
- package/shared-modules/appstream/README.md +13 -0
- package/shared-modules/appstream/appstream-compose.json +111 -0
- package/shared-modules/dbus-glib/dbus-glib.json +2 -2
- package/shared-modules/libportal/libportal.json +23 -0
- package/shared-modules/linux-audio/fluidsynth2-static.json +2 -2
- package/shared-modules/linux-audio/fluidsynth2.json +2 -2
- package/shared-modules/linux-audio/libinstpatch.json +2 -2
- package/shared-modules/linux-audio/liblo-static.json +3 -0
- package/shared-modules/luajit/luajit.json +2 -2
- package/shared-modules/squashfs-tools/squashfs-tools.json +0 -3
- package/slash-commands.json +7 -2
- package/src/renderer/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +1 -1
- package/src/renderer/shared/agentProgress.ts +51 -3
- package/src/renderer/shared/components/Settings/AutomationTab.tsx +2 -56
- package/src/renderer/shared/components/Settings/AvatarCropModal.tsx +15 -1
- package/src/renderer/shared/components/Settings/GeneralTab.tsx +25 -12
- package/src/renderer/shared/components/Settings/ThemeTab.test.tsx +45 -0
- package/src/renderer/shared/components/Settings/ThemeTab.tsx +106 -3
- package/src/renderer/shared/components/activity/AgentActivityDrawer.tsx +67 -17
- package/src/renderer/shared/components/activity/AgentActivityTable.tsx +376 -134
- package/src/renderer/shared/components/activity/AskUserActivityCard.test.tsx +122 -0
- package/src/renderer/shared/components/activity/AskUserActivityCard.tsx +70 -0
- package/src/renderer/shared/components/activity/McpToolResults.tsx +39 -2
- package/src/renderer/shared/components/activity/SubagentDagView.tsx +7 -7
- package/src/renderer/shared/components/activity/ViewedImages.tsx +41 -2
- package/src/renderer/shared/components/app/ChunkErrorBoundary.tsx +3 -3
- package/src/renderer/shared/components/app/CommandPalette.tsx +7 -7
- package/src/renderer/shared/components/app/DesktopTitlebar.tsx +2 -2
- package/src/renderer/shared/components/app/MintDashboard.tsx +27 -17
- package/src/renderer/shared/components/app/ModalErrorBoundary.tsx +3 -3
- package/src/renderer/shared/components/cards/CalculationCard.tsx +3 -3
- package/src/renderer/shared/components/cards/ImageGenCard.tsx +2 -2
- package/src/renderer/shared/components/cards/ImageSearchCard.tsx +2 -2
- package/src/renderer/shared/components/cards/MermaidCard.tsx +1 -1
- package/src/renderer/shared/components/cards/PlanCard.test.tsx +41 -0
- package/src/renderer/shared/components/cards/PlanCard.tsx +32 -0
- package/src/renderer/shared/components/cards/ReleaseNotesCard.test.tsx +29 -0
- package/src/renderer/shared/components/cards/ReleaseNotesCard.tsx +137 -0
- package/src/renderer/shared/components/cards/StockCard.tsx +7 -7
- package/src/renderer/shared/components/cards/ToolResultCards.tsx +11 -3
- package/src/renderer/shared/components/cards/UiMockupWidget.tsx +4 -4
- package/src/renderer/shared/components/cards/WeatherCard.tsx +5 -5
- package/src/renderer/shared/components/chat/ApprovalCard.test.tsx +11 -0
- package/src/renderer/shared/components/chat/ApprovalCard.tsx +21 -2
- package/src/renderer/shared/components/chat/ArtifactCards.test.tsx +69 -0
- package/src/renderer/shared/components/chat/ArtifactCards.tsx +238 -0
- package/src/renderer/shared/components/chat/AttachedDocumentCard.test.tsx +39 -0
- package/src/renderer/shared/components/chat/AttachedDocumentCard.tsx +220 -0
- package/src/renderer/shared/components/chat/ChatCodeBlock.test.tsx +33 -0
- package/src/renderer/shared/components/chat/ChatCodeBlock.tsx +15 -1
- package/src/renderer/shared/components/chat/ChatMessageItem.test.tsx +40 -2
- package/src/renderer/shared/components/chat/ChatMessageItem.tsx +180 -34
- package/src/renderer/shared/components/chat/ChatModeSelector.css +227 -0
- package/src/renderer/shared/components/chat/ChatModeSelector.test.tsx +45 -0
- package/src/renderer/shared/components/chat/ChatModeSelector.tsx +198 -0
- package/src/renderer/shared/components/chat/ChatPanel.test.tsx +22 -0
- package/src/renderer/shared/components/chat/ChatPanel.tsx +227 -53
- package/src/renderer/shared/components/chat/DiffReviewModal.tsx +6 -6
- package/src/renderer/shared/components/chat/GeminiLiveOverlay.test.tsx +142 -1
- package/src/renderer/shared/components/chat/GeminiLiveOverlay.tsx +45 -3
- package/src/renderer/shared/components/chat/ModelSelectorPopover.tsx +42 -14
- package/src/renderer/shared/components/chat/RewindModal.tsx +10 -10
- package/src/renderer/shared/components/chat/SlashSuggestions.test.tsx +14 -0
- package/src/renderer/shared/components/chat/SourcesBlock.test.tsx +53 -0
- package/src/renderer/shared/components/chat/SourcesBlock.tsx +236 -90
- package/src/renderer/shared/components/chat/TurnFileChanges.test.tsx +45 -1
- package/src/renderer/shared/components/chat/TurnFileChanges.tsx +202 -169
- package/src/renderer/shared/components/extensions/CliSessionsView.tsx +5 -4
- package/src/renderer/shared/components/extensions/McpRegistryPicker.tsx +3 -3
- package/src/renderer/shared/components/studio/LibraryPage.tsx +48 -5
- package/src/renderer/shared/components/workspace/ArtifactPreviewPanel.tsx +125 -13
- package/src/renderer/shared/components/workspace/CodeReviewPage.test.tsx +50 -0
- package/src/renderer/shared/components/workspace/CodeReviewPage.tsx +77 -16
- package/src/renderer/shared/components/workspace/GitBranchSelector.tsx +78 -22
- package/src/renderer/shared/components/workspace/ToolSurfacePage.test.tsx +13 -0
- package/src/renderer/shared/components/workspace/ToolSurfacePage.tsx +48 -28
- package/src/renderer/shared/components/workspace/WorkspacePdfPreview.tsx +266 -47
- package/src/renderer/shared/components/workspace/WorkspacePreviewActions.test.tsx +18 -6
- package/src/renderer/shared/components/workspace/background-terminals.css +11 -11
- package/src/renderer/shared/constants/config.ts +1 -5
- package/src/renderer/shared/constants/models.test.ts +51 -0
- package/src/renderer/shared/constants/models.ts +139 -32
- package/src/renderer/shared/conversation/lifecycle.test.ts +91 -3
- package/src/renderer/shared/conversation/lifecycle.ts +104 -5
- package/src/renderer/shared/conversation/progressiveStream.test.ts +83 -0
- package/src/renderer/shared/conversation/progressiveStream.ts +219 -0
- package/src/renderer/shared/css/agent-observability.css +133 -0
- package/src/renderer/shared/css/chat-ui-cards.css +13 -13
- package/src/renderer/shared/css/code-review.css +63 -34
- package/src/renderer/shared/css/code-sessions.css +47 -18
- package/src/renderer/shared/css/collapsed-paste.css +1 -1
- package/src/renderer/shared/css/error-notice.css +1 -1
- package/src/renderer/shared/css/file-changes.css +165 -80
- package/src/renderer/shared/css/library.css +105 -10
- package/src/renderer/shared/css/management-views.css +1 -1
- package/src/renderer/shared/css/mcp-results.css +5 -5
- package/src/renderer/shared/css/model-selector.css +18 -18
- package/src/renderer/shared/css/mods.css +7 -7
- package/src/renderer/shared/css/notification-notice.css +2 -2
- package/src/renderer/shared/css/queued-messages.css +5 -5
- package/src/renderer/shared/css/settings/general.css +18 -13
- package/src/renderer/shared/css/settings/profile.css +5 -5
- package/src/renderer/shared/css/settings/theme.css +5 -5
- package/src/renderer/shared/css/slash-choice.css +2 -2
- package/src/renderer/shared/css/slash-suggestions.css +3 -3
- package/src/renderer/shared/css/sources-block.css +41 -2
- package/src/renderer/shared/css/tools-panel.css +2 -2
- package/src/renderer/shared/css/ui-tailwind.css +8 -0
- package/src/renderer/shared/css/veo-studio.css +2 -2
- package/src/renderer/shared/css/viewed-images.css +7 -7
- package/src/renderer/shared/platform.ts +2 -1
- package/src/renderer/shared/theme/themeManager.test.ts +17 -0
- package/src/renderer/shared/theme/themeManager.ts +21 -4
- package/src/renderer/shared/theme/themes.ts +54 -0
- package/src/renderer/shared/theme/tokens.css +6 -4
- package/src/renderer/shared/types.ts +1 -1
- package/src/renderer/shared/utils/agentActivity.test.ts +468 -2
- package/src/renderer/shared/utils/agentActivity.ts +602 -35
- package/src/renderer/shared/utils/artifactBrowser.test.ts +37 -32
- package/src/renderer/shared/utils/artifactBrowser.ts +17 -19
- package/src/renderer/shared/utils/attachedDocument.test.ts +73 -0
- package/src/renderer/shared/utils/attachedDocument.ts +49 -0
- package/src/renderer/shared/utils/fileIcons.test.ts +59 -0
- package/src/renderer/shared/utils/fileIcons.ts +149 -16
- package/src/renderer/shared/utils/markdown.tsx +72 -19
- package/src/renderer/shared/utils/markdown.webImages.test.tsx +16 -0
- package/src/renderer/shared/utils/mcpResults.test.tsx +29 -0
- package/src/renderer/shared/utils/slashCommandProcessor.ts +4 -1
- package/src/renderer/shared/utils/syntaxHighlight.test.tsx +11 -1
- package/src/renderer/shared/utils/syntaxHighlight.tsx +51 -3
- package/src/renderer/shared/utils/useGeminiLiveVoice.ts +324 -51
- package/src/renderer/shared/utils/workspaceDrag.test.ts +153 -0
- package/src/renderer/shared/utils/workspaceDrag.ts +142 -0
- package/src/renderer/shared/utils/workspaceMedia.ts +10 -2
- package/src/renderer/src/App.tsx +14 -8
- package/src/renderer/src/agentProgress.ts +1 -0
- package/src/renderer/src/components/ScreenPicker.css +1 -1
- package/src/renderer/src/components/WorkspacePanel.tsx +6 -5
- package/src/renderer/src/css/app-shell.css +4 -4
- package/src/renderer/src/css/chat.css +1261 -241
- package/src/renderer/src/css/desktop-tools.css +11 -11
- package/src/renderer/src/css/sidebar-workspace.css +2 -2
- package/src/renderer/src/css/tool-surfaces.css +12 -12
- package/src/renderer/src/index.css +38 -20
- package/src/renderer/src/tauri.ts +22 -2
- package/src/renderer/src-web/App.tsx +14 -0
- package/src/renderer/src-web/agentProgress.ts +1 -0
- package/src/renderer/src-web/css/app-shell.css +4 -4
- package/src/renderer/src-web/css/chat.css +1278 -190
- package/src/renderer/src-web/css/mobile.css +29 -13
- package/src/renderer/src-web/css/settings/mobile.css +2 -2
- package/src/renderer/src-web/css/sidebar-workspace.css +1 -1
- package/src/renderer/src-web/index.css +38 -20
- package/src/renderer/src-web/tauri.ts +22 -2
- package/src/renderer/tests/browserArtifacts.browser.tsx +1 -1
- package/src/renderer/tests/library.browser.tsx +3 -0
- package/src/renderer/tests/liveVoice.browser.html +1 -0
- package/src/renderer/tests/workspaceDrop.browser.tsx +1 -1
- package/src-tauri/src/app/lifecycle.rs +1 -14
- package/src-tauri/src/background/headless.rs +14 -8
- package/src-tauri/src/commands/conversation.rs +38 -0
- package/src-tauri/src/native/mod.rs +0 -1
- package/src-tauri/src/native/system.rs +4 -47
- package/crates/mint-cli/src/interactive/chat_tui.rs +0 -8855
- package/crates/mint-core/src/agent/chat.rs +0 -4394
- package/crates/mint-core/src/browser/lifecycle.rs +0 -291
- package/crates/mint-core/src/browser/logging.rs +0 -20
- package/crates/mint-core/src/orchestration/tools/browser.rs +0 -31
- package/out/web/assets/ArtifactPreviewPanel-S0dPfYFx.js +0 -2
- package/out/web/assets/CalculationCard-CRjP3E1j.js +0 -1
- package/out/web/assets/CliSessionsView-C3Br2v5Y.css +0 -1
- package/out/web/assets/CodeReviewPage-CUJceQme.css +0 -1
- package/out/web/assets/CodeReviewPage-VCUgPla_.js +0 -2
- package/out/web/assets/ImageGenCard-BCXxkVJX.js +0 -1
- package/out/web/assets/ImageSearchCard-N3yQOr8Z.js +0 -1
- package/out/web/assets/LibraryPage-DAxUTAg7.css +0 -1
- package/out/web/assets/LibraryPage-WlviRdR8.js +0 -2
- package/out/web/assets/LinkedFoldersView-CKRgroWK.js +0 -1
- package/out/web/assets/McpServersView-D3wHnuHg.js +0 -1
- package/out/web/assets/MermaidCard-NqrHdyJW.js +0 -2
- package/out/web/assets/MintDashboard-B2DJsDDO.css +0 -1
- package/out/web/assets/MintDashboard-COw_xol7.js +0 -63
- package/out/web/assets/RewindModal-DempuDod.js +0 -1
- package/out/web/assets/SettingsWindow-2YP3yj7s.js +0 -4
- package/out/web/assets/SettingsWindow-Dz8LQVgD.css +0 -1
- package/out/web/assets/StockCard-BDMCe7mx.js +0 -1
- package/out/web/assets/ToolSurfacePage-B0J_q0Jl.js +0 -38
- package/out/web/assets/ToolSurfacePage-CRIQ1owD.css +0 -1
- package/out/web/assets/UiMockupWidget-DD73QWg1.js +0 -1
- package/out/web/assets/WeatherCard-CPucIfq8.js +0 -1
- package/out/web/assets/WorkspacePdfPreview-Dx_lkjNu.js +0 -2
- package/out/web/assets/classDiagram-ZZMXUADV-BgJ5WtSp.js +0 -1
- package/out/web/assets/classDiagram-v2-VYDZK3BY-BgJ5WtSp.js +0 -1
- package/out/web/assets/config-CvIO5hkn.js +0 -2
- package/out/web/assets/flowDiagram-HODETNUW-uqCHJond.js +0 -1
- package/out/web/assets/index-BmpulIkg.js +0 -168
- package/out/web/assets/index-CkvBwhX_.css +0 -1
- package/out/web/assets/stateDiagram-v2-MP3YSRHH-uf3kdNW4.js +0 -1
- package/out/web/assets/swimlanesDiagram-VR7AAH4N-Y8q5bQce.js +0 -8
- package/shared-modules/libsecret/libsecret.json +0 -23
- package/shared-modules/libusb/libusb.json +0 -27
- package/shared-modules/lzo/lzo.json +0 -27
- package/src/renderer/src/components/BrowserShell.tsx +0 -108
- package/src/renderer/src/components/BrowserSuggestionsPopup.tsx +0 -91
- package/src/renderer/src/components/browser-shell.css +0 -185
- package/src-tauri/src/native/browser.rs +0 -252
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* shared/conversation/progressiveStream.ts
|
|
3
|
+
* Deep module for structure-aware progressive AI response rendering (Line-by-Line + Block-Aware).
|
|
4
|
+
* Holds incomplete Markdown tables and unclosed UI Card / JSON / Mermaid fenced blocks until
|
|
5
|
+
* their block completes, while streaming normal paragraphs, lists, alerts, and regular code blocks
|
|
6
|
+
* smoothly line by line.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
const ATOMIC_FENCED_LANGS = new Set([
|
|
10
|
+
'ui-grid',
|
|
11
|
+
'ui_grid',
|
|
12
|
+
'ui-grid-json',
|
|
13
|
+
'ui_grid_json',
|
|
14
|
+
'ui-card',
|
|
15
|
+
'ui_card',
|
|
16
|
+
'ui-card-json',
|
|
17
|
+
'ui_card_json',
|
|
18
|
+
'ui-feature',
|
|
19
|
+
'ui_feature',
|
|
20
|
+
'ui-mockup',
|
|
21
|
+
'ui_mockup',
|
|
22
|
+
'ui-mockup-json',
|
|
23
|
+
'ui_mockup_json',
|
|
24
|
+
'weather_json',
|
|
25
|
+
'weather-json',
|
|
26
|
+
'stock_json',
|
|
27
|
+
'stock-json',
|
|
28
|
+
'calculation_json',
|
|
29
|
+
'calculation-json',
|
|
30
|
+
'image_search_json',
|
|
31
|
+
'image-search-json',
|
|
32
|
+
'image_gen_json',
|
|
33
|
+
'image-gen-json',
|
|
34
|
+
'mermaid',
|
|
35
|
+
])
|
|
36
|
+
|
|
37
|
+
function isTableLine(line: string): boolean {
|
|
38
|
+
const trimmed = line.trim()
|
|
39
|
+
return trimmed.startsWith('|') && trimmed.endsWith('|') && trimmed.length > 1
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
function isAtomicFencedLang(lang: string): boolean {
|
|
43
|
+
return ATOMIC_FENCED_LANGS.has(lang.trim().toLowerCase())
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Splits Markdown text into progressive units:
|
|
48
|
+
* - Standard lines & normal code block lines -> 1 line per unit
|
|
49
|
+
* - Consecutive Markdown table lines (`| ... |`) -> 1 atomic multi-line unit
|
|
50
|
+
* - Custom UI / JSON / Mermaid fenced blocks -> 1 atomic multi-line unit
|
|
51
|
+
* When `isComplete` is false, trailing incomplete lines, open tables, and unclosed atomic
|
|
52
|
+
* fenced blocks are held back so half-formed tables or raw JSON never flash in the UI.
|
|
53
|
+
*/
|
|
54
|
+
export function splitProgressiveStreamUnits(raw: string, isComplete: boolean): string[] {
|
|
55
|
+
if (!raw) return []
|
|
56
|
+
const normalized = raw.replace(/\r\n?/g, '\n')
|
|
57
|
+
let slice = normalized
|
|
58
|
+
if (!isComplete && !normalized.endsWith('\n')) {
|
|
59
|
+
const lastNewline = normalized.lastIndexOf('\n')
|
|
60
|
+
if (lastNewline === -1) return []
|
|
61
|
+
slice = normalized.slice(0, lastNewline + 1)
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
const rawLines = slice.endsWith('\n') ? slice.slice(0, -1).split('\n') : slice.split('\n')
|
|
65
|
+
const units: string[] = []
|
|
66
|
+
let inCodeBlock = false
|
|
67
|
+
let pendingCodeFence: { fence: string; canPromote: boolean } | null = null
|
|
68
|
+
let inAtomicFence = false
|
|
69
|
+
let atomicFenceBuffer: string[] = []
|
|
70
|
+
let tableBuffer: string[] = []
|
|
71
|
+
|
|
72
|
+
for (const line of rawLines) {
|
|
73
|
+
const trimmed = line.trimStart()
|
|
74
|
+
|
|
75
|
+
if (!inCodeBlock && !inAtomicFence && isTableLine(trimmed)) {
|
|
76
|
+
tableBuffer.push(line)
|
|
77
|
+
continue
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
if (tableBuffer.length > 0) {
|
|
81
|
+
units.push(tableBuffer.join('\n'))
|
|
82
|
+
tableBuffer = []
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
if (trimmed.startsWith('```')) {
|
|
86
|
+
if (!inCodeBlock && !inAtomicFence) {
|
|
87
|
+
const afterOpen = trimmed.replace(/^`+/, '').trim()
|
|
88
|
+
if (afterOpen.endsWith('```') && afterOpen.length > 3) {
|
|
89
|
+
units.push(line)
|
|
90
|
+
continue
|
|
91
|
+
}
|
|
92
|
+
const splitIdx = afterOpen.search(/[\s[{]/)
|
|
93
|
+
const lang = splitIdx > 0 ? afterOpen.slice(0, splitIdx) : afterOpen
|
|
94
|
+
if (isAtomicFencedLang(lang)) {
|
|
95
|
+
inAtomicFence = true
|
|
96
|
+
atomicFenceBuffer = [line]
|
|
97
|
+
} else {
|
|
98
|
+
inCodeBlock = true
|
|
99
|
+
const canPromote = !lang || lang.toLowerCase() === 'plaintext'
|
|
100
|
+
pendingCodeFence = { fence: line, canPromote }
|
|
101
|
+
}
|
|
102
|
+
} else if (inAtomicFence) {
|
|
103
|
+
atomicFenceBuffer.push(line)
|
|
104
|
+
units.push(atomicFenceBuffer.join('\n'))
|
|
105
|
+
atomicFenceBuffer = []
|
|
106
|
+
inAtomicFence = false
|
|
107
|
+
} else {
|
|
108
|
+
inCodeBlock = false
|
|
109
|
+
if (pendingCodeFence) {
|
|
110
|
+
units.push(`${pendingCodeFence.fence}\n${line}`)
|
|
111
|
+
pendingCodeFence = null
|
|
112
|
+
} else {
|
|
113
|
+
units.push(line)
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
continue
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
if (inAtomicFence) {
|
|
120
|
+
atomicFenceBuffer.push(line)
|
|
121
|
+
continue
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
if (pendingCodeFence) {
|
|
125
|
+
const { fence, canPromote } = pendingCodeFence
|
|
126
|
+
pendingCodeFence = null
|
|
127
|
+
const splitIdx = trimmed.search(/[\s[{]/)
|
|
128
|
+
const firstToken = splitIdx > 0 ? trimmed.slice(0, splitIdx) : trimmed
|
|
129
|
+
if (canPromote && isAtomicFencedLang(firstToken)) {
|
|
130
|
+
inCodeBlock = false
|
|
131
|
+
inAtomicFence = true
|
|
132
|
+
atomicFenceBuffer = [fence, line]
|
|
133
|
+
} else {
|
|
134
|
+
units.push(`${fence}\n${line}`)
|
|
135
|
+
}
|
|
136
|
+
continue
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
units.push(line)
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
if (isComplete) {
|
|
143
|
+
if (tableBuffer.length > 0) {
|
|
144
|
+
units.push(tableBuffer.join('\n'))
|
|
145
|
+
}
|
|
146
|
+
if (pendingCodeFence) {
|
|
147
|
+
units.push(pendingCodeFence.fence)
|
|
148
|
+
pendingCodeFence = null
|
|
149
|
+
}
|
|
150
|
+
if (atomicFenceBuffer.length > 0) {
|
|
151
|
+
units.push(atomicFenceBuffer.join('\n'))
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
return units
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* Returns the safe-to-render prefix of a streaming Markdown document.
|
|
160
|
+
*/
|
|
161
|
+
export function extractRenderableStreamPrefix(raw: string, isComplete: boolean): string {
|
|
162
|
+
const units = splitProgressiveStreamUnits(raw, isComplete)
|
|
163
|
+
return units.join('\n')
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
export interface ProgressiveStreamPacer {
|
|
167
|
+
pushDelta(delta: string): void
|
|
168
|
+
finish(authoritativeText?: string): void
|
|
169
|
+
step(): string | null
|
|
170
|
+
flushAll(): string
|
|
171
|
+
isDone(): boolean
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
export function createProgressiveStreamPacer(
|
|
175
|
+
onReveal?: (revealedText: string) => void,
|
|
176
|
+
): ProgressiveStreamPacer {
|
|
177
|
+
let rawBuffer = ''
|
|
178
|
+
let completed = false
|
|
179
|
+
let revealedUnits = 0
|
|
180
|
+
|
|
181
|
+
return {
|
|
182
|
+
pushDelta(delta: string) {
|
|
183
|
+
if (delta) {
|
|
184
|
+
rawBuffer += delta
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
finish(authoritativeText?: string) {
|
|
188
|
+
if (typeof authoritativeText === 'string') {
|
|
189
|
+
rawBuffer = authoritativeText
|
|
190
|
+
}
|
|
191
|
+
completed = true
|
|
192
|
+
},
|
|
193
|
+
step(): string | null {
|
|
194
|
+
const units = splitProgressiveStreamUnits(rawBuffer, completed)
|
|
195
|
+
if (revealedUnits >= units.length) {
|
|
196
|
+
return null
|
|
197
|
+
}
|
|
198
|
+
const remaining = units.length - revealedUnits
|
|
199
|
+
const advance = remaining <= 12 ? 1 : Math.min(4, Math.max(1, Math.floor(remaining / 10)))
|
|
200
|
+
revealedUnits = Math.min(units.length, revealedUnits + advance)
|
|
201
|
+
const revealed = units.slice(0, revealedUnits).join('\n')
|
|
202
|
+
onReveal?.(revealed)
|
|
203
|
+
return revealed
|
|
204
|
+
},
|
|
205
|
+
flushAll(): string {
|
|
206
|
+
completed = true
|
|
207
|
+
const units = splitProgressiveStreamUnits(rawBuffer, true)
|
|
208
|
+
revealedUnits = units.length
|
|
209
|
+
const revealed = units.join('\n')
|
|
210
|
+
onReveal?.(revealed)
|
|
211
|
+
return revealed
|
|
212
|
+
},
|
|
213
|
+
isDone(): boolean {
|
|
214
|
+
if (!completed) return false
|
|
215
|
+
const units = splitProgressiveStreamUnits(rawBuffer, true)
|
|
216
|
+
return revealedUnits >= units.length
|
|
217
|
+
},
|
|
218
|
+
}
|
|
219
|
+
}
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
color: var(--text-main, #e8e8ea);
|
|
16
16
|
min-width: 0;
|
|
17
17
|
max-width: 100%;
|
|
18
|
+
box-sizing: border-box;
|
|
18
19
|
overflow: hidden;
|
|
19
20
|
}
|
|
20
21
|
|
|
@@ -360,3 +361,135 @@
|
|
|
360
361
|
white-space: pre-wrap;
|
|
361
362
|
word-break: break-word;
|
|
362
363
|
}
|
|
364
|
+
|
|
365
|
+
/* --- Release Notes Card Widget --- */
|
|
366
|
+
.release-notes-card {
|
|
367
|
+
border-radius: var(--radius-lg, 10px);
|
|
368
|
+
border: none;
|
|
369
|
+
background: color-mix(in srgb, #404040 95%, transparent);
|
|
370
|
+
backdrop-filter: var(--glass-blur, blur(12px));
|
|
371
|
+
-webkit-backdrop-filter: var(--glass-blur, blur(12px));
|
|
372
|
+
padding: 16px 18px;
|
|
373
|
+
margin: 10px 0;
|
|
374
|
+
color: var(--text-main, #e8e8ea);
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
.release-notes-header {
|
|
378
|
+
display: flex;
|
|
379
|
+
align-items: center;
|
|
380
|
+
justify-content: space-between;
|
|
381
|
+
margin-bottom: 8px;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
.release-notes-title {
|
|
385
|
+
display: flex;
|
|
386
|
+
align-items: center;
|
|
387
|
+
gap: 8px;
|
|
388
|
+
font-size: 0.88rem;
|
|
389
|
+
font-weight: 650;
|
|
390
|
+
color: var(--text-main, #e8e8ea);
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
.release-notes-icon {
|
|
394
|
+
color: var(--accent, #10b981);
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
.release-notes-version-badge {
|
|
398
|
+
font-size: 0.72rem;
|
|
399
|
+
font-weight: 600;
|
|
400
|
+
padding: 1px 7px;
|
|
401
|
+
border-radius: var(--radius-full, 999px);
|
|
402
|
+
background: color-mix(in srgb, var(--accent, #10b981) 15%, transparent);
|
|
403
|
+
color: var(--accent, #10b981);
|
|
404
|
+
border: 1px solid color-mix(in srgb, var(--accent, #10b981) 30%, transparent);
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
.release-notes-count-badge {
|
|
408
|
+
font-size: 0.72rem;
|
|
409
|
+
color: var(--text-muted, #8f8f94);
|
|
410
|
+
font-weight: 500;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
.release-notes-track {
|
|
414
|
+
display: none;
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
.release-notes-bar {
|
|
418
|
+
height: 100%;
|
|
419
|
+
width: 100%;
|
|
420
|
+
background: linear-gradient(90deg, var(--accent, #10b981), var(--status-listening, #7dd3fc));
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
.release-notes-body {
|
|
424
|
+
display: flex;
|
|
425
|
+
flex-direction: column;
|
|
426
|
+
gap: 12px;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
.release-notes-section-title {
|
|
430
|
+
display: flex;
|
|
431
|
+
align-items: center;
|
|
432
|
+
gap: 6px;
|
|
433
|
+
font-size: 0.82rem;
|
|
434
|
+
font-weight: 600;
|
|
435
|
+
color: var(--text-main, #e8e8ea);
|
|
436
|
+
margin-bottom: 6px;
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
.release-notes-bullet {
|
|
440
|
+
color: var(--text-muted, #9ca3af);
|
|
441
|
+
font-size: 0.75rem;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
.release-notes-items {
|
|
445
|
+
display: flex;
|
|
446
|
+
flex-direction: column;
|
|
447
|
+
gap: 6px;
|
|
448
|
+
padding-left: 6px;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
.release-notes-item {
|
|
452
|
+
font-size: 0.76rem;
|
|
453
|
+
line-height: 1.55;
|
|
454
|
+
color: var(--text-main, #e8e8ea);
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
.release-notes-item-header {
|
|
458
|
+
display: inline;
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
.release-notes-item-bullet {
|
|
462
|
+
color: var(--accent, #10b981);
|
|
463
|
+
margin-right: 6px;
|
|
464
|
+
font-weight: bold;
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
.release-notes-item-title {
|
|
468
|
+
font-weight: 650;
|
|
469
|
+
color: var(--text-main, #fff);
|
|
470
|
+
margin-right: 5px;
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
.release-notes-item-desc {
|
|
474
|
+
color: var(--text-main, #d1d5db);
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
.release-notes-subitems {
|
|
478
|
+
margin-top: 4px;
|
|
479
|
+
margin-left: 16px;
|
|
480
|
+
display: flex;
|
|
481
|
+
flex-direction: column;
|
|
482
|
+
gap: 4px;
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
.release-notes-subitem {
|
|
486
|
+
display: flex;
|
|
487
|
+
align-items: baseline;
|
|
488
|
+
gap: 6px;
|
|
489
|
+
font-size: 0.73rem;
|
|
490
|
+
color: var(--text-muted, #9ca3af);
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
.release-notes-subitem-bullet {
|
|
494
|
+
color: var(--text-muted, #9ca3af);
|
|
495
|
+
}
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
.chat-ui-feature-item {
|
|
36
36
|
display: flex;
|
|
37
37
|
flex-direction: column;
|
|
38
|
-
border-radius:
|
|
38
|
+
border-radius: var(--radius-2xl, 22px);
|
|
39
39
|
border: 1px solid var(--border-default);
|
|
40
40
|
background: var(--bg-surface);
|
|
41
41
|
overflow: hidden;
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
.chat-ui-feature-thumb {
|
|
60
60
|
width: 90px;
|
|
61
61
|
height: 80px;
|
|
62
|
-
border-radius:
|
|
62
|
+
border-radius: var(--radius-lg, 14px);
|
|
63
63
|
overflow: hidden;
|
|
64
64
|
flex-shrink: 0;
|
|
65
65
|
background: var(--bg-surface-soft);
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
.chat-ui-feature-icon-box {
|
|
77
77
|
width: 36px;
|
|
78
78
|
height: 36px;
|
|
79
|
-
border-radius:
|
|
79
|
+
border-radius: var(--radius-lg, 14px);
|
|
80
80
|
display: flex;
|
|
81
81
|
align-items: center;
|
|
82
82
|
justify-content: center;
|
|
@@ -172,7 +172,7 @@
|
|
|
172
172
|
.chat-ui-feature-tag {
|
|
173
173
|
font-size: 0.7rem;
|
|
174
174
|
padding: 3px 9px;
|
|
175
|
-
border-radius: 8px;
|
|
175
|
+
border-radius: var(--radius-sm, 8px);
|
|
176
176
|
background: var(--bg-surface-soft);
|
|
177
177
|
color: var(--text-chat, var(--text-main, #94a3b8));
|
|
178
178
|
opacity: 0.8;
|
|
@@ -185,7 +185,7 @@
|
|
|
185
185
|
.chat-ui-grid-wrapper {
|
|
186
186
|
margin: 14px 0;
|
|
187
187
|
padding: 18px;
|
|
188
|
-
border-radius:
|
|
188
|
+
border-radius: var(--radius-xl, 18px);
|
|
189
189
|
border: 1px solid var(--border-default);
|
|
190
190
|
background: var(--bg-surface);
|
|
191
191
|
backdrop-filter: var(--glass-blur);
|
|
@@ -223,7 +223,7 @@
|
|
|
223
223
|
display: flex;
|
|
224
224
|
flex-direction: column;
|
|
225
225
|
padding: 14px;
|
|
226
|
-
border-radius: 14px;
|
|
226
|
+
border-radius: var(--radius-lg, 14px);
|
|
227
227
|
background: var(--bg-surface-soft);
|
|
228
228
|
border: 1px solid var(--border-subtle);
|
|
229
229
|
transition: all 0.2s ease;
|
|
@@ -246,7 +246,7 @@
|
|
|
246
246
|
.chat-ui-grid-item-icon {
|
|
247
247
|
width: 34px;
|
|
248
248
|
height: 34px;
|
|
249
|
-
border-radius: 10px;
|
|
249
|
+
border-radius: var(--radius-md, 10px);
|
|
250
250
|
display: flex;
|
|
251
251
|
align-items: center;
|
|
252
252
|
justify-content: center;
|
|
@@ -273,7 +273,7 @@
|
|
|
273
273
|
-------------------------------------------------------------------------- */
|
|
274
274
|
.chat-ui-mockup-container {
|
|
275
275
|
margin: 18px 0;
|
|
276
|
-
border-radius:
|
|
276
|
+
border-radius: var(--radius-xl, 18px);
|
|
277
277
|
border: 1px solid var(--border-default);
|
|
278
278
|
background: var(--bg-surface-raised);
|
|
279
279
|
box-shadow: var(--shadow-md);
|
|
@@ -338,7 +338,7 @@
|
|
|
338
338
|
|
|
339
339
|
.chat-ui-mockup-dropzone {
|
|
340
340
|
padding: 24px 16px;
|
|
341
|
-
border-radius:
|
|
341
|
+
border-radius: var(--radius-xl, 18px);
|
|
342
342
|
border: 2px dashed var(--border-strong);
|
|
343
343
|
background: var(--bg-surface-soft);
|
|
344
344
|
cursor: pointer;
|
|
@@ -387,7 +387,7 @@
|
|
|
387
387
|
padding: 7px 18px;
|
|
388
388
|
font-size: 0.8rem;
|
|
389
389
|
font-weight: 600;
|
|
390
|
-
border-radius: 10px;
|
|
390
|
+
border-radius: var(--radius-md, 10px);
|
|
391
391
|
border: 1px solid var(--border-strong);
|
|
392
392
|
background: var(--bg-surface-hover);
|
|
393
393
|
color: var(--text-chat, var(--text-main, #f8fafc));
|
|
@@ -412,7 +412,7 @@
|
|
|
412
412
|
justify-content: space-between;
|
|
413
413
|
align-items: center;
|
|
414
414
|
padding: 9px 14px;
|
|
415
|
-
border-radius:
|
|
415
|
+
border-radius: var(--radius-md, 10px);
|
|
416
416
|
background: var(--bg-surface-soft);
|
|
417
417
|
border: 1px solid var(--border-subtle);
|
|
418
418
|
font-size: 0.82rem;
|
|
@@ -428,7 +428,7 @@
|
|
|
428
428
|
color: var(--interactive-fg);
|
|
429
429
|
background: color-mix(in srgb, var(--accent, #38bdf8) 12%, transparent);
|
|
430
430
|
padding: 3px 10px;
|
|
431
|
-
border-radius: 8px;
|
|
431
|
+
border-radius: var(--radius-sm, 8px);
|
|
432
432
|
}
|
|
433
433
|
|
|
434
434
|
.chat-ui-mockup-options {
|
|
@@ -442,7 +442,7 @@
|
|
|
442
442
|
justify-content: space-between;
|
|
443
443
|
align-items: center;
|
|
444
444
|
padding: 10px 14px;
|
|
445
|
-
border-radius:
|
|
445
|
+
border-radius: var(--radius-md, 10px);
|
|
446
446
|
background: var(--bg-surface-soft);
|
|
447
447
|
border: 1px solid var(--border-subtle);
|
|
448
448
|
font-size: 0.82rem;
|