@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
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import React, { useEffect, useLayoutEffect, useRef, useState } from 'react'
|
|
2
|
+
import { readWorkspacePaneWidth, workspacePaneKeyWidth, workspacePaneLayout, WORKSPACE_PANE_STORAGE_KEY } from '../utils/workspacePane'
|
|
3
|
+
|
|
4
|
+
export default function WorkspacePaneResizer() {
|
|
5
|
+
const handle = useRef<HTMLDivElement>(null)
|
|
6
|
+
const [preferred, setPreferred] = useState(() => readWorkspacePaneWidth(() => localStorage.getItem(WORKSPACE_PANE_STORAGE_KEY)))
|
|
7
|
+
const preferredRef = useRef(preferred)
|
|
8
|
+
const [available, setAvailable] = useState(1500)
|
|
9
|
+
const [dragging, setDragging] = useState(false)
|
|
10
|
+
const drag = useRef<{ x: number; width: number; preferred: number; pointer: number; element: HTMLDivElement; cursor: string; select: string } | null>(null)
|
|
11
|
+
const layout = workspacePaneLayout(preferred, available)
|
|
12
|
+
|
|
13
|
+
const change = (width: number, persist = false) => {
|
|
14
|
+
preferredRef.current = width
|
|
15
|
+
setPreferred(width)
|
|
16
|
+
if (persist) {
|
|
17
|
+
try { localStorage.setItem(WORKSPACE_PANE_STORAGE_KEY, String(width)) } catch { /* Storage may be disabled. */ }
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
const finish = (cancel = false, unmount = false) => {
|
|
21
|
+
const current = drag.current
|
|
22
|
+
if (!current) return
|
|
23
|
+
drag.current = null
|
|
24
|
+
document.body.style.cursor = current.cursor
|
|
25
|
+
document.body.style.userSelect = current.select
|
|
26
|
+
if (current.element.hasPointerCapture(current.pointer)) current.element.releasePointerCapture(current.pointer)
|
|
27
|
+
if (!unmount) {
|
|
28
|
+
setDragging(false)
|
|
29
|
+
change(cancel ? current.preferred : preferredRef.current, !cancel)
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
useLayoutEffect(() => {
|
|
34
|
+
const main = handle.current?.closest<HTMLElement>('.assistant-workspace')
|
|
35
|
+
if (!main) return
|
|
36
|
+
const measure = () => setAvailable(main.getBoundingClientRect().width)
|
|
37
|
+
measure()
|
|
38
|
+
const observer = new ResizeObserver(measure)
|
|
39
|
+
observer.observe(main)
|
|
40
|
+
return () => {
|
|
41
|
+
observer.disconnect()
|
|
42
|
+
main.style.removeProperty('--workspace-panel-width')
|
|
43
|
+
delete main.dataset.workspaceStacked
|
|
44
|
+
main.classList.remove('is-workspace-resizing')
|
|
45
|
+
}
|
|
46
|
+
}, [])
|
|
47
|
+
|
|
48
|
+
useLayoutEffect(() => {
|
|
49
|
+
const main = handle.current?.closest<HTMLElement>('.assistant-workspace')
|
|
50
|
+
if (!main) return
|
|
51
|
+
main.style.setProperty('--workspace-panel-width', `${layout.width}px`)
|
|
52
|
+
main.dataset.workspaceStacked = String(layout.stacked)
|
|
53
|
+
main.classList.toggle('is-workspace-resizing', dragging)
|
|
54
|
+
if (layout.stacked) finish(true)
|
|
55
|
+
}, [layout.width, layout.stacked, dragging])
|
|
56
|
+
|
|
57
|
+
useEffect(() => {
|
|
58
|
+
const blur = () => finish(true)
|
|
59
|
+
window.addEventListener('blur', blur)
|
|
60
|
+
return () => { window.removeEventListener('blur', blur); finish(true, true) }
|
|
61
|
+
}, [])
|
|
62
|
+
|
|
63
|
+
return <div ref={handle} className="workspace-pane-resizer" role="separator" aria-label="Resize Workspace"
|
|
64
|
+
aria-orientation="vertical" aria-valuemin={layout.min} aria-valuemax={layout.max} aria-valuenow={layout.width}
|
|
65
|
+
aria-controls="workspace-file-panel" tabIndex={layout.stacked ? -1 : 0} hidden={layout.stacked}
|
|
66
|
+
title="Drag to resize Workspace. Double-click or press Enter to reset."
|
|
67
|
+
onPointerDown={event => {
|
|
68
|
+
if (event.button !== 0 || drag.current || layout.stacked) return
|
|
69
|
+
event.preventDefault()
|
|
70
|
+
event.currentTarget.focus()
|
|
71
|
+
event.currentTarget.setPointerCapture(event.pointerId)
|
|
72
|
+
drag.current = { x: event.clientX, width: layout.width, preferred: preferredRef.current, pointer: event.pointerId,
|
|
73
|
+
element: event.currentTarget, cursor: document.body.style.cursor, select: document.body.style.userSelect }
|
|
74
|
+
document.body.style.cursor = 'col-resize'
|
|
75
|
+
document.body.style.userSelect = 'none'
|
|
76
|
+
setDragging(true)
|
|
77
|
+
}}
|
|
78
|
+
onPointerMove={event => {
|
|
79
|
+
const current = drag.current
|
|
80
|
+
if (current?.pointer === event.pointerId) change(workspacePaneLayout(current.width + event.clientX - current.x, available).width)
|
|
81
|
+
}}
|
|
82
|
+
onPointerUp={event => { if (drag.current?.pointer === event.pointerId) finish() }}
|
|
83
|
+
onPointerCancel={event => { if (drag.current?.pointer === event.pointerId) finish(true) }}
|
|
84
|
+
onLostPointerCapture={() => finish(true)}
|
|
85
|
+
onDoubleClick={() => change(workspacePaneLayout(400, available).width, true)}
|
|
86
|
+
onKeyDown={event => {
|
|
87
|
+
if (event.key === 'Escape' && drag.current) { event.preventDefault(); finish(true); return }
|
|
88
|
+
if (drag.current) return
|
|
89
|
+
const width = workspacePaneKeyWidth(event.key, layout)
|
|
90
|
+
if (width !== null) { event.preventDefault(); change(width, true) }
|
|
91
|
+
}} />
|
|
92
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import { renderToStaticMarkup } from 'react-dom/server'
|
|
3
|
+
import { describe, expect, it } from 'vitest'
|
|
4
|
+
import WorkspacePreviewActions from './WorkspacePreviewActions'
|
|
5
|
+
import { ArtifactPreviewPanel, detectArtifactType } from './ArtifactPreviewPanel'
|
|
6
|
+
|
|
7
|
+
function renderActions(name: string, kind: 'file' | 'directory' = 'file', pending = false) {
|
|
8
|
+
return renderToStaticMarkup(<WorkspacePreviewActions entry={{ name, path: `nested/${name}`, kind, children: [] }} pending={pending} onPreview={() => {}} onOpenHtml={() => {}} />)
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
describe('workspace preview menu', () => {
|
|
12
|
+
for (const name of ['README.md', 'notes.MARKDOWN', 'index.html', 'page.HTM', 'photo.PNG', 'cat.jpeg', 'animation.gif', 'icon.svg', 'photo.webp', 'icon.ico', 'photo.jpg']) {
|
|
13
|
+
it(`offers an in-app preview for ${name}`, () => { expect(renderActions(name)).toContain('Preview in Mint') })
|
|
14
|
+
}
|
|
15
|
+
it('offers browser launch only for HTML files', () => {
|
|
16
|
+
expect(renderActions('index.html')).toContain('Open in Browser')
|
|
17
|
+
for (const name of ['README.md', 'photo.png']) expect(renderActions(name)).not.toContain('Open in Browser')
|
|
18
|
+
})
|
|
19
|
+
it('does not offer previews for directories or unsupported files', () => {
|
|
20
|
+
expect(renderActions('guide.md', 'directory')).toBe('')
|
|
21
|
+
expect(renderActions('script.rs')).toBe('')
|
|
22
|
+
})
|
|
23
|
+
it('disables preview actions while another operation is pending', () => { expect(renderActions('README.md', 'file', true)).toContain('disabled=""') })
|
|
24
|
+
})
|
|
25
|
+
|
|
26
|
+
it('uses a served HTML URL in the Preview iframe so relative CSS and scripts can load', () => {
|
|
27
|
+
const html = renderToStaticMarkup(<ArtifactPreviewPanel artifact={{ path: 'site/index.html', content: '<h1>Hello</h1>', url: 'http://127.0.0.1:12345/site/index.html' }} onClose={() => {}} />)
|
|
28
|
+
expect(html).toContain('src="http://127.0.0.1:12345/site/index.html"')
|
|
29
|
+
expect(html).not.toContain('srcDoc=')
|
|
30
|
+
expect(html).toContain('allow-same-origin')
|
|
31
|
+
})
|
|
32
|
+
|
|
33
|
+
it('renders images fitted inside Preview without a binary code tab', () => {
|
|
34
|
+
expect(detectArtifactType('assets/PHOTO.PNG')).toBe('image')
|
|
35
|
+
const html = renderToStaticMarkup(<ArtifactPreviewPanel artifact={{ path: 'assets/PHOTO.PNG', url: 'http://127.0.0.1:12345/assets/PHOTO.PNG' }} onClose={() => {}} />)
|
|
36
|
+
expect(html).toContain('src="http://127.0.0.1:12345/assets/PHOTO.PNG"')
|
|
37
|
+
expect(html).toContain('object-fit:contain')
|
|
38
|
+
expect(html).not.toMatch(/>Code<\/button>/)
|
|
39
|
+
})
|
|
40
|
+
|
|
41
|
+
it('identifies the browser action as Mint Browser instead of a generic popup', () => {
|
|
42
|
+
const html = renderToStaticMarkup(<ArtifactPreviewPanel artifact={{ path: 'site/index.html', url: 'http://127.0.0.1:12345/site/index.html' }} onClose={() => {}} />)
|
|
43
|
+
expect(html).toContain('aria-label="Open in Mint Browser (Mint Auto)"')
|
|
44
|
+
})
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import { detectArtifactType } from './ArtifactPreviewPanel'
|
|
3
|
+
import type { WorkspaceTreeEntry } from '../types'
|
|
4
|
+
|
|
5
|
+
interface Props {
|
|
6
|
+
entry: WorkspaceTreeEntry
|
|
7
|
+
pending: boolean
|
|
8
|
+
onPreview?: () => void
|
|
9
|
+
onOpenHtml?: () => void
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export default function WorkspacePreviewActions({ entry, pending, onPreview, onOpenHtml }: Props) {
|
|
13
|
+
const type = detectArtifactType(entry.name)
|
|
14
|
+
if (entry.kind !== 'file' || type === 'code') return null
|
|
15
|
+
return <>
|
|
16
|
+
{type === 'html' && onOpenHtml && <button type="button" role="menuitem" disabled={pending} onClick={onOpenHtml}>Open in Browser</button>}
|
|
17
|
+
{onPreview && <button type="button" role="menuitem" disabled={pending} onClick={onPreview}>Preview in Mint</button>}
|
|
18
|
+
</>
|
|
19
|
+
}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
import { useEffect, useMemo, useRef, useState } from 'react'
|
|
1
|
+
import { useEffect, useId, useMemo, useRef, useState } from 'react'
|
|
2
|
+
|
|
3
|
+
import { normalizeWorkspacePath, workspacePaths } from '../utils/workspaces'
|
|
4
|
+
import './workspace-selector.css'
|
|
2
5
|
|
|
3
6
|
interface WorkspaceSelectorProps {
|
|
7
|
+
placement?: 'above' | 'below'
|
|
4
8
|
currentPath: string
|
|
5
9
|
recentPaths: string[]
|
|
6
10
|
onSelectWorkspace: (path?: string) => void
|
|
@@ -10,7 +14,8 @@ function workspaceLabel(path: string): string {
|
|
|
10
14
|
return path.split(/[\\/]/).filter(Boolean).pop() || path
|
|
11
15
|
}
|
|
12
16
|
|
|
13
|
-
export default function WorkspaceSelector({ currentPath, recentPaths, onSelectWorkspace }: WorkspaceSelectorProps) {
|
|
17
|
+
export default function WorkspaceSelector({ currentPath, recentPaths, onSelectWorkspace, placement = 'above' }: WorkspaceSelectorProps) {
|
|
18
|
+
const menuId = useId()
|
|
14
19
|
const [open, setOpen] = useState(false)
|
|
15
20
|
const [query, setQuery] = useState('')
|
|
16
21
|
const rootRef = useRef<HTMLDivElement>(null)
|
|
@@ -19,12 +24,12 @@ export default function WorkspaceSelector({ currentPath, recentPaths, onSelectWo
|
|
|
19
24
|
|
|
20
25
|
const visiblePaths = useMemo(() => {
|
|
21
26
|
const normalizedQuery = query.trim().toLocaleLowerCase()
|
|
22
|
-
return recentPaths.filter((path) => {
|
|
27
|
+
return workspacePaths(recentPaths, currentPath).filter((path) => {
|
|
23
28
|
if (!normalizedQuery) return true
|
|
24
29
|
return path.toLocaleLowerCase().includes(normalizedQuery)
|
|
25
30
|
|| workspaceLabel(path).toLocaleLowerCase().includes(normalizedQuery)
|
|
26
31
|
})
|
|
27
|
-
}, [query, recentPaths])
|
|
32
|
+
}, [query, recentPaths, currentPath])
|
|
28
33
|
|
|
29
34
|
useEffect(() => {
|
|
30
35
|
if (!open) return
|
|
@@ -55,7 +60,7 @@ export default function WorkspaceSelector({ currentPath, recentPaths, onSelectWo
|
|
|
55
60
|
}
|
|
56
61
|
|
|
57
62
|
return (
|
|
58
|
-
<div className={`workspace-selector ${currentPath ? 'has-workspace' : 'needs-workspace'}`} ref={rootRef}>
|
|
63
|
+
<div className={`workspace-selector ${currentPath ? 'has-workspace' : 'needs-workspace'} opens-${placement}`} ref={rootRef}>
|
|
59
64
|
<button
|
|
60
65
|
ref={triggerRef}
|
|
61
66
|
type="button"
|
|
@@ -67,7 +72,7 @@ export default function WorkspaceSelector({ currentPath, recentPaths, onSelectWo
|
|
|
67
72
|
aria-label={`${currentPath ? 'Change' : 'Choose'} workspace: ${currentPath ? workspaceLabel(currentPath) : 'Select Project'}`}
|
|
68
73
|
aria-haspopup="dialog"
|
|
69
74
|
aria-expanded={open}
|
|
70
|
-
aria-controls=
|
|
75
|
+
aria-controls={menuId}
|
|
71
76
|
title={currentPath || 'Choose a workspace folder'}
|
|
72
77
|
>
|
|
73
78
|
<span className="workspace-select-icon" aria-hidden="true">
|
|
@@ -84,7 +89,7 @@ export default function WorkspaceSelector({ currentPath, recentPaths, onSelectWo
|
|
|
84
89
|
</button>
|
|
85
90
|
|
|
86
91
|
{open && (
|
|
87
|
-
<div className="workspace-select-menu" id=
|
|
92
|
+
<div className="workspace-select-menu" id={menuId} role="dialog" aria-label="Choose workspace">
|
|
88
93
|
<label className="workspace-select-search">
|
|
89
94
|
<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" aria-hidden="true">
|
|
90
95
|
<circle cx="11" cy="11" r="7" />
|
|
@@ -102,7 +107,7 @@ export default function WorkspaceSelector({ currentPath, recentPaths, onSelectWo
|
|
|
102
107
|
|
|
103
108
|
<div className="workspace-select-list" role="group" aria-label="Recent workspaces">
|
|
104
109
|
{visiblePaths.length > 0 ? visiblePaths.map((path) => {
|
|
105
|
-
const isCurrent = path === currentPath
|
|
110
|
+
const isCurrent = path === normalizeWorkspacePath(currentPath)
|
|
106
111
|
return (
|
|
107
112
|
<button
|
|
108
113
|
key={path}
|
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
.background-terminals {
|
|
2
|
+
position: relative;
|
|
3
|
+
min-width: 0;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.background-terminals button,
|
|
7
|
+
.background-terminals a {
|
|
8
|
+
color: inherit;
|
|
9
|
+
font: inherit;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.background-terminals button:focus-visible,
|
|
13
|
+
.background-terminals a:focus-visible,
|
|
14
|
+
.background-terminal-log:focus-visible {
|
|
15
|
+
outline: 2px solid var(--accent, #10b981);
|
|
16
|
+
outline-offset: 2px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.background-terminal-panel {
|
|
20
|
+
display: flex;
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
gap: 12px;
|
|
23
|
+
width: 100%;
|
|
24
|
+
height: 100%;
|
|
25
|
+
min-height: 0;
|
|
26
|
+
box-sizing: border-box;
|
|
27
|
+
overflow: auto;
|
|
28
|
+
padding: 14px;
|
|
29
|
+
background: var(--panel-bg, #171719);
|
|
30
|
+
color: var(--text-main, #eeeeef);
|
|
31
|
+
font-size: 12px;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.background-task-announcement { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
|
|
35
|
+
|
|
36
|
+
.background-terminal-panel-header {
|
|
37
|
+
display: flex;
|
|
38
|
+
align-items: center;
|
|
39
|
+
gap: 10px;
|
|
40
|
+
padding-bottom: 12px;
|
|
41
|
+
border-bottom: 1px solid var(--border, #343438);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.background-terminal-heading-icon {
|
|
45
|
+
display: grid;
|
|
46
|
+
flex: 0 0 36px;
|
|
47
|
+
width: 36px;
|
|
48
|
+
height: 36px;
|
|
49
|
+
place-items: center;
|
|
50
|
+
border: 1px solid color-mix(in srgb, var(--accent, #10b981) 28%, transparent);
|
|
51
|
+
border-radius: 11px;
|
|
52
|
+
background: color-mix(in srgb, var(--accent, #10b981) 10%, transparent);
|
|
53
|
+
color: var(--accent, #10b981);
|
|
54
|
+
font-weight: 700;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.background-terminal-panel-title {
|
|
58
|
+
display: grid;
|
|
59
|
+
flex: 1;
|
|
60
|
+
min-width: 0;
|
|
61
|
+
gap: 3px;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.background-terminal-panel-title strong {
|
|
65
|
+
font-size: 13px;
|
|
66
|
+
font-weight: 650;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.background-terminal-panel-title small {
|
|
70
|
+
overflow: hidden;
|
|
71
|
+
color: var(--text-muted, #94a3b8);
|
|
72
|
+
text-overflow: ellipsis;
|
|
73
|
+
white-space: nowrap;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.background-terminal-filter {
|
|
77
|
+
display: flex;
|
|
78
|
+
align-items: center;
|
|
79
|
+
gap: 9px;
|
|
80
|
+
min-height: 38px;
|
|
81
|
+
padding: 0 10px;
|
|
82
|
+
border: 1px solid var(--border, #343438);
|
|
83
|
+
border-radius: 10px;
|
|
84
|
+
background: var(--bg-surface-soft, rgba(255, 255, 255, 0.03));
|
|
85
|
+
color: var(--text-main, #eeeeef);
|
|
86
|
+
cursor: pointer;
|
|
87
|
+
user-select: none;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.background-terminal-filter input,
|
|
91
|
+
.background-terminal-output header input {
|
|
92
|
+
accent-color: var(--accent, #10b981);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.background-terminal-panel > p {
|
|
96
|
+
margin: 0;
|
|
97
|
+
padding: 9px 10px;
|
|
98
|
+
border-radius: 9px;
|
|
99
|
+
background: color-mix(in srgb, var(--status-error, #f18585) 9%, transparent);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.background-terminal-error {
|
|
103
|
+
color: var(--status-error, #f18585) !important;
|
|
104
|
+
overflow-wrap: anywhere;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.background-terminal-list {
|
|
108
|
+
display: grid;
|
|
109
|
+
gap: 8px;
|
|
110
|
+
min-height: 0;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.background-terminal-empty {
|
|
114
|
+
display: grid;
|
|
115
|
+
justify-items: center;
|
|
116
|
+
gap: 7px;
|
|
117
|
+
padding: 22px 14px;
|
|
118
|
+
border: 1px dashed var(--border, #343438);
|
|
119
|
+
border-radius: 12px;
|
|
120
|
+
color: var(--text-muted, #94a3b8);
|
|
121
|
+
text-align: center;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.background-terminal-empty > span {
|
|
125
|
+
display: grid;
|
|
126
|
+
width: 34px;
|
|
127
|
+
height: 34px;
|
|
128
|
+
place-items: center;
|
|
129
|
+
border-radius: 10px;
|
|
130
|
+
background: var(--bg-surface-soft, rgba(255, 255, 255, 0.05));
|
|
131
|
+
color: var(--accent, #10b981);
|
|
132
|
+
font-weight: 700;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.background-terminal-empty strong {
|
|
136
|
+
color: var(--text-main, #eeeeef);
|
|
137
|
+
font-size: 12px;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.background-terminal-empty small {
|
|
141
|
+
max-width: 260px;
|
|
142
|
+
font-size: 11px;
|
|
143
|
+
line-height: 1.45;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.background-terminal-job {
|
|
147
|
+
min-width: 0;
|
|
148
|
+
padding: 11px;
|
|
149
|
+
border: 1px solid var(--border, #343438);
|
|
150
|
+
border-radius: 12px;
|
|
151
|
+
background: var(--bg-surface-soft, rgba(255, 255, 255, 0.025));
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.background-terminal-job-heading,
|
|
155
|
+
.background-terminal-actions {
|
|
156
|
+
display: flex;
|
|
157
|
+
align-items: center;
|
|
158
|
+
gap: 8px;
|
|
159
|
+
flex-wrap: wrap;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.background-terminal-job-heading strong {
|
|
163
|
+
min-width: 0;
|
|
164
|
+
overflow-wrap: anywhere;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.background-terminal-job-heading > span:last-child {
|
|
168
|
+
margin-left: auto;
|
|
169
|
+
color: var(--text-muted, #94a3b8);
|
|
170
|
+
font-variant-numeric: tabular-nums;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.background-terminal-state {
|
|
174
|
+
padding: 2px 7px;
|
|
175
|
+
border-radius: 999px;
|
|
176
|
+
background: var(--bg-surface-hover, rgba(255, 255, 255, 0.06));
|
|
177
|
+
font-size: 10px;
|
|
178
|
+
text-transform: capitalize;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.background-terminal-state.running { color: var(--accent, #10b981); }
|
|
182
|
+
.background-terminal-state.stopping { color: var(--status-warning, #e4b95b); }
|
|
183
|
+
.background-terminal-state.failed { color: var(--status-error, #f18585); }
|
|
184
|
+
|
|
185
|
+
.background-terminal-job code {
|
|
186
|
+
display: block;
|
|
187
|
+
margin: 9px 0 7px;
|
|
188
|
+
padding: 8px 9px;
|
|
189
|
+
border: 1px solid var(--border, #343438);
|
|
190
|
+
border-radius: 8px;
|
|
191
|
+
background: var(--input-bg, #101012);
|
|
192
|
+
color: var(--text-main, #eeeeef);
|
|
193
|
+
white-space: pre-wrap;
|
|
194
|
+
overflow-wrap: anywhere;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.background-terminal-job small {
|
|
198
|
+
display: block;
|
|
199
|
+
color: var(--text-muted, #94a3b8);
|
|
200
|
+
font-size: 10px;
|
|
201
|
+
overflow-wrap: anywhere;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.background-terminal-actions { margin-top: 9px; }
|
|
205
|
+
|
|
206
|
+
.background-terminal-actions button,
|
|
207
|
+
.background-terminal-actions a {
|
|
208
|
+
display: inline-flex;
|
|
209
|
+
align-items: center;
|
|
210
|
+
justify-content: center;
|
|
211
|
+
min-height: 30px;
|
|
212
|
+
padding: 5px 9px;
|
|
213
|
+
border: 1px solid var(--border, #343438);
|
|
214
|
+
border-radius: 8px;
|
|
215
|
+
background: var(--bg-surface-soft, rgba(255, 255, 255, 0.04));
|
|
216
|
+
cursor: pointer;
|
|
217
|
+
text-decoration: none;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.background-terminal-actions button:hover,
|
|
221
|
+
.background-terminal-actions a:hover {
|
|
222
|
+
border-color: var(--accent, #10b981);
|
|
223
|
+
background: color-mix(in srgb, var(--accent, #10b981) 9%, transparent);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.background-terminal-actions button:disabled { opacity: 0.5; cursor: not-allowed; }
|
|
227
|
+
.background-terminal-actions .background-terminal-stop { color: var(--status-error, #f18585); }
|
|
228
|
+
|
|
229
|
+
.background-terminal-output {
|
|
230
|
+
display: grid;
|
|
231
|
+
gap: 8px;
|
|
232
|
+
padding-top: 12px;
|
|
233
|
+
border-top: 1px solid var(--border, #343438);
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.background-terminal-output header {
|
|
237
|
+
display: flex;
|
|
238
|
+
align-items: center;
|
|
239
|
+
justify-content: space-between;
|
|
240
|
+
gap: 10px;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.background-terminal-output header label {
|
|
244
|
+
display: inline-flex;
|
|
245
|
+
align-items: center;
|
|
246
|
+
gap: 6px;
|
|
247
|
+
color: var(--text-muted, #94a3b8);
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.background-terminal-output > small { color: var(--text-muted, #94a3b8); }
|
|
251
|
+
|
|
252
|
+
.background-terminal-log {
|
|
253
|
+
max-height: 22vh;
|
|
254
|
+
overflow: auto;
|
|
255
|
+
padding: 10px;
|
|
256
|
+
border: 1px solid var(--border, #343438);
|
|
257
|
+
border-radius: 9px;
|
|
258
|
+
background: var(--input-bg, #101012);
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
.background-terminal-log pre {
|
|
262
|
+
margin: 5px 0 12px;
|
|
263
|
+
color: var(--text-main, #eeeeef);
|
|
264
|
+
font-size: 11px;
|
|
265
|
+
white-space: pre-wrap;
|
|
266
|
+
overflow-wrap: anywhere;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
.smart-context-bar { flex-wrap: wrap; }
|
|
272
|
+
|
|
273
|
+
@media (max-width: 640px) {
|
|
274
|
+
.background-terminals { margin-left: 0; flex-basis: 100%; }
|
|
275
|
+
.background-terminal-panel-header { gap: 8px; }
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
@media (forced-colors: active) {
|
|
279
|
+
.background-terminal-panel { background: Canvas; color: CanvasText; border-color: CanvasText; }
|
|
280
|
+
.background-terminal-job, .background-terminal-filter { border-color: CanvasText; }
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
.background-terminal-actions .background-terminal-delete { color: var(--status-error, #f18585); padding-inline: 8px; }
|
|
284
|
+
.background-terminal-actions .background-terminal-delete:hover { border-color: var(--status-error, #f18585); background: color-mix(in srgb, var(--status-error, #f18585) 10%, transparent); }
|
|
285
|
+
.background-terminal-output > header > button {
|
|
286
|
+
display: inline-flex; align-items: center; justify-content: center;
|
|
287
|
+
width: 26px; height: 26px; margin-left: auto; padding: 0;
|
|
288
|
+
border: 1px solid var(--border, #343438); border-radius: 7px;
|
|
289
|
+
background: var(--bg-surface-soft, rgba(255,255,255,.04)); color: var(--text-muted, #94a3b8);
|
|
290
|
+
cursor: pointer;
|
|
291
|
+
}
|
|
292
|
+
.background-terminal-output > header > button:hover { border-color: var(--accent, #10b981); color: var(--text-main, #eeeeef); }
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# Shared UI components
|
|
2
|
+
|
|
3
|
+
Mint already uses React and TypeScript. Its two Vite applications previously used
|
|
4
|
+
plain CSS and separate `@/` roots. Reusable UI lives in
|
|
5
|
+
`src/renderer/shared/components/ui`, rather than a new top-level application root.
|
|
6
|
+
Keeping this `components/ui` folder gives the shadcn CLI a stable destination and
|
|
7
|
+
prevents Desktop and Web from acquiring different copies of the same primitive.
|
|
8
|
+
|
|
9
|
+
`components.json` points the CLI at this directory. Both Vite configurations and
|
|
10
|
+
TypeScript resolve `@/components/ui/*` here and `@/lib/utils` to the shared `cn`
|
|
11
|
+
helper. Existing application-specific aliases still work.
|
|
12
|
+
|
|
13
|
+
Tailwind is installed through `@tailwindcss/vite` in both builds. Styles are in
|
|
14
|
+
`shared/css/ui-tailwind.css`: theme and utility layers, explicit shared UI source
|
|
15
|
+
scanning, and semantic colors mapped to Mint's tokens. Preflight is omitted to
|
|
16
|
+
preserve the application's base styles. New shared primitives belong in this
|
|
17
|
+
folder so their utility classes are included automatically. To add one:
|
|
18
|
+
|
|
19
|
+
```sh
|
|
20
|
+
npx shadcn@latest add <component-name>
|
|
21
|
+
npm run typecheck
|
|
22
|
+
npm run build:ui
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
No project reinitialization is needed. Setup references:
|
|
26
|
+
[Tailwind with Vite](https://tailwindcss.com/docs/installation/using-vite) and
|
|
27
|
+
[shadcn manual installation](https://ui.shadcn.com/docs/installation/manual).
|
|
28
|
+
|
|
29
|
+
## VoicePoweredOrb
|
|
30
|
+
|
|
31
|
+
The supplied shader and audio-to-motion mapping are retained in
|
|
32
|
+
`voice-powered-orb.tsx`; sizing and graphics fallback are in its CSS.
|
|
33
|
+
`GeminiLiveOverlay` integrates it with Mint's live status, transcripts, voice
|
|
34
|
+
selection, microphone pause/resume and end-call callbacks.
|
|
35
|
+
|
|
36
|
+
The call supplies `analyserRef` from `useGeminiLiveVoice`. It mixes the existing
|
|
37
|
+
microphone and playback nodes for visualization without acquiring another mic.
|
|
38
|
+
Without this prop, the standalone `demo.tsx` requests its own mic only after Start.
|
|
39
|
+
That mode owns and releases its stream and AudioContext; the live component owns
|
|
40
|
+
neither. No external images or assets are required.
|
|
41
|
+
|
|
42
|
+
ResizeObserver handles the container, DPR is capped at two and applied once, and
|
|
43
|
+
reduced motion freezes shader time, rotation and distortion. If WebGL is unavailable,
|
|
44
|
+
the CSS ring and all textual call states/controls remain available. Ending a call
|
|
45
|
+
releases capture, playback, the analyser, audio context, WebGL resources and RAF.
|
|
46
|
+
|
|
47
|
+
Browser regressions can be served with `npm run dev:desktop:ui` and opened at
|
|
48
|
+
`/tests/liveOrb.browser.html` and `/tests/liveVoice.browser.html`. The first checks
|
|
49
|
+
the real shader and call UI; the second injects the external audio/session boundary
|
|
50
|
+
to verify cancellation of pending permission/connection and late events. They do
|
|
51
|
+
not make a real Gemini call. `/tests/liveOrb.browser.html?preview=1` shows a fixture
|
|
52
|
+
conversation with an injected audio level for layout review.
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import * as React from 'react'
|
|
2
|
+
import { Slot } from '@radix-ui/react-slot'
|
|
3
|
+
import { cva, type VariantProps } from 'class-variance-authority'
|
|
4
|
+
import { cn } from '../../lib/utils'
|
|
5
|
+
import '../../css/ui-tailwind.css'
|
|
6
|
+
|
|
7
|
+
const buttonVariants = cva(
|
|
8
|
+
'inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50',
|
|
9
|
+
{
|
|
10
|
+
variants: {
|
|
11
|
+
variant: {
|
|
12
|
+
default: 'bg-primary text-primary-foreground hover:bg-primary/90',
|
|
13
|
+
destructive: 'bg-destructive text-destructive-foreground hover:bg-destructive/90',
|
|
14
|
+
outline: 'border border-input bg-background hover:bg-accent hover:text-accent-foreground',
|
|
15
|
+
secondary: 'bg-secondary text-secondary-foreground hover:bg-secondary/80',
|
|
16
|
+
ghost: 'hover:bg-accent hover:text-accent-foreground',
|
|
17
|
+
link: 'text-primary underline-offset-4 hover:underline',
|
|
18
|
+
},
|
|
19
|
+
size: {
|
|
20
|
+
default: 'h-10 px-4 py-2', sm: 'h-9 rounded-md px-3',
|
|
21
|
+
lg: 'h-11 rounded-md px-8', icon: 'h-10 w-10',
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
defaultVariants: { variant: 'default', size: 'default' },
|
|
25
|
+
},
|
|
26
|
+
)
|
|
27
|
+
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
28
|
+
asChild?: boolean
|
|
29
|
+
}
|
|
30
|
+
const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
|
|
31
|
+
({ className, variant, size, asChild = false, ...props }, ref) => {
|
|
32
|
+
const Comp = asChild ? Slot : 'button'
|
|
33
|
+
return <Comp className={cn(buttonVariants({ variant, size, className }))} ref={ref} {...props} />
|
|
34
|
+
},
|
|
35
|
+
)
|
|
36
|
+
Button.displayName = 'Button'
|
|
37
|
+
export { Button, buttonVariants }
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { useState } from 'react'
|
|
4
|
+
import { VoicePoweredOrb } from './voice-powered-orb'
|
|
5
|
+
import { Button } from './button'
|
|
6
|
+
import { Mic, MicOff } from 'lucide-react'
|
|
7
|
+
|
|
8
|
+
/** Standalone example from the supplied component. The app uses GeminiLiveOverlay. */
|
|
9
|
+
export default function VoicePoweredOrbPage() {
|
|
10
|
+
const [isRecording, setIsRecording] = useState(false)
|
|
11
|
+
const [voiceDetected, setVoiceDetected] = useState(false)
|
|
12
|
+
return (
|
|
13
|
+
<div className="min-h-screen flex items-center justify-center p-8">
|
|
14
|
+
<div className="flex flex-col items-center space-y-8">
|
|
15
|
+
<div className="w-96 h-96 relative" style={{ width: 'min(384px, 80vw)', height: 'min(384px, 80vw)' }}>
|
|
16
|
+
<VoicePoweredOrb enableVoiceControl={isRecording} className="rounded-xl overflow-hidden shadow-2xl" onVoiceDetected={setVoiceDetected} />
|
|
17
|
+
</div>
|
|
18
|
+
<Button onClick={() => setIsRecording(current => !current)} variant={isRecording ? 'destructive' : 'default'} size="lg" className="px-8 py-3">
|
|
19
|
+
{isRecording ? <><MicOff className="w-5 h-5 mr-3" />Stop Recording</> : <><Mic className="w-5 h-5 mr-3" />Start Recording</>}
|
|
20
|
+
</Button>
|
|
21
|
+
<p className="text-muted-foreground text-center max-w-md">Click the button to enable voice control. Speak to see the orb respond to your voice with subtle movements.</p>
|
|
22
|
+
<span role="status" className="text-muted-foreground">{voiceDetected ? 'Voice detected' : 'No voice detected'}</span>
|
|
23
|
+
</div>
|
|
24
|
+
</div>
|
|
25
|
+
)
|
|
26
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/* Fixed fallback colors remain readable when the route's theme fails to load. */
|
|
2
|
+
.error-recovery {
|
|
3
|
+
--flavor-indigo: #6366f1;
|
|
4
|
+
--flavor-cyan: #06b6d4;
|
|
5
|
+
display: grid; place-items: center; padding: 28px 24px; box-sizing: border-box;
|
|
6
|
+
background: #09090b; font-family: var(--font-ui, 'Inter', 'Noto Sans Thai', ui-sans-serif, system-ui, sans-serif);
|
|
7
|
+
}
|
|
8
|
+
.error-recovery-content { width: min(100%, 460px); display: flex; flex-direction: column; align-items: center; gap: 24px; }
|
|
9
|
+
.error-recovery-orb { flex-shrink: 0; }
|
|
10
|
+
.error-recovery-copy { text-align: center; }
|
|
11
|
+
.error-recovery-copy .error-recovery-label { margin: 0 0 12px; font-size: 11px; font-weight: 600; letter-spacing: .12em; color: #a1a1aa; }
|
|
12
|
+
.error-recovery-copy h1 { margin: 0 0 12px; color: #f4f4f5; font-size: clamp(24px, 4vw, 32px); font-weight: 500; letter-spacing: -.035em; line-height: 1.2; }
|
|
13
|
+
.error-recovery-copy p { margin: 0; color: #a1a1aa; font-size: 14px; line-height: 1.7; }
|
|
14
|
+
.error-recovery-actions { display: flex; justify-content: center; gap: 12px; width: 100%; }
|
|
15
|
+
.error-recovery-actions button {
|
|
16
|
+
display: inline-flex; align-items: center; justify-content: center; gap: 8px;
|
|
17
|
+
min-height: 44px; padding: 10px 16px; border: 1px solid #3f3f46;
|
|
18
|
+
border-radius: 10px; background: #18181b; color: #f4f4f5;
|
|
19
|
+
font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; box-shadow: none;
|
|
20
|
+
}
|
|
21
|
+
.error-recovery-actions button:last-child { background: #f4f4f5; border-color: #f4f4f5; color: #18181b; }
|
|
22
|
+
.error-recovery-actions button:hover { background: #27272a; }
|
|
23
|
+
.error-recovery-actions button:last-child:hover { background: #d4d4d8; }
|
|
24
|
+
.error-recovery-actions button:focus-visible { outline: 2px solid #a5b4fc; outline-offset: 4px; }
|
|
25
|
+
@media (max-width: 420px) {
|
|
26
|
+
.error-recovery { padding-inline: 20px; }
|
|
27
|
+
.error-recovery-actions { flex-direction: column-reverse; }
|
|
28
|
+
}
|
|
29
|
+
@media (max-height: 540px) {
|
|
30
|
+
.error-recovery { padding-block: 16px; }
|
|
31
|
+
.error-recovery-content { gap: 16px; }
|
|
32
|
+
}
|
|
33
|
+
@media (forced-colors: active) {
|
|
34
|
+
.error-recovery-actions button { border: 1px solid ButtonText; }
|
|
35
|
+
}
|