@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,35 @@
|
|
|
1
|
+
import { ArrowLeft, RefreshCw } from 'lucide-react'
|
|
2
|
+
import { Button } from './button'
|
|
3
|
+
import { VoicePoweredOrb } from './voice-powered-orb'
|
|
4
|
+
import './error-recovery.css'
|
|
5
|
+
|
|
6
|
+
export interface ErrorRecoveryProps {
|
|
7
|
+
onBackToChat: () => void
|
|
8
|
+
onRefresh: () => void
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/** The application fallback must work independently of the loaded app's theme. */
|
|
12
|
+
export function ErrorRecovery({ onBackToChat, onRefresh }: ErrorRecoveryProps) {
|
|
13
|
+
return (
|
|
14
|
+
<main className="error-recovery" style={{ flex: 1, minHeight: 0, overflowY: 'auto', color: '#f4f4f5' }}>
|
|
15
|
+
<div className="error-recovery-content">
|
|
16
|
+
<div className="error-recovery-orb" style={{ width: 'min(280px, 60vw, 34vh)', aspectRatio: '1' }}>
|
|
17
|
+
<VoicePoweredOrb animate={false} enableVoiceControl={false} hue={0} />
|
|
18
|
+
</div>
|
|
19
|
+
<div className="error-recovery-copy" role="alert">
|
|
20
|
+
<p className="error-recovery-label">APPLICATION ERROR</p>
|
|
21
|
+
<h1>Mint needs to refresh</h1>
|
|
22
|
+
<p>An asset failed to load or a new version was deployed. Refreshing will load the latest version.</p>
|
|
23
|
+
</div>
|
|
24
|
+
<div className="error-recovery-actions">
|
|
25
|
+
<Button type="button" variant="outline" size="lg" onClick={onBackToChat}>
|
|
26
|
+
<ArrowLeft size={16} aria-hidden="true" />Back to Chat
|
|
27
|
+
</Button>
|
|
28
|
+
<Button type="button" size="lg" onClick={onRefresh}>
|
|
29
|
+
<RefreshCw size={16} aria-hidden="true" />Refresh & Update
|
|
30
|
+
</Button>
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
</main>
|
|
34
|
+
)
|
|
35
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
.voice-powered-orb { position: relative; width: 100%; height: 100%; }
|
|
2
|
+
.voice-powered-orb canvas { display: block; width: 100%; height: 100%; }
|
|
3
|
+
.voice-powered-orb__fallback {
|
|
4
|
+
position: absolute; inset: 12%; border-radius: 50%;
|
|
5
|
+
border: 2px solid var(--flavor-indigo); box-shadow: inset 0 0 30px var(--flavor-indigo), 0 0 24px color-mix(in srgb, var(--flavor-cyan) 35%, transparent);
|
|
6
|
+
}
|
|
@@ -0,0 +1,374 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { useEffect, useRef, useState, type FC, type RefObject } from 'react'
|
|
4
|
+
import { Renderer, Program, Mesh, Triangle, Vec3 } from 'ogl'
|
|
5
|
+
import { cn } from '../../lib/utils'
|
|
6
|
+
import './voice-powered-orb.css'
|
|
7
|
+
import '../../css/effects.css'
|
|
8
|
+
import { initializeEffectVisibility } from '../../utils/effectVisibility'
|
|
9
|
+
|
|
10
|
+
export interface VoicePoweredOrbProps {
|
|
11
|
+
className?: string
|
|
12
|
+
hue?: number
|
|
13
|
+
/** Pause decorative motion when the call is paused or unavailable. */
|
|
14
|
+
animate?: boolean
|
|
15
|
+
enableVoiceControl?: boolean
|
|
16
|
+
voiceSensitivity?: number
|
|
17
|
+
maxRotationSpeed?: number
|
|
18
|
+
maxHoverIntensity?: number
|
|
19
|
+
onVoiceDetected?: (detected: boolean) => void
|
|
20
|
+
/** Reuse an existing call's analyser instead of requesting a second microphone. */
|
|
21
|
+
analyserRef?: RefObject<AnalyserNode | null>
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// Authored vertex and fragment shaders from the supplied VoicePoweredOrb source.
|
|
25
|
+
const vert = /* glsl */ `
|
|
26
|
+
precision highp float;
|
|
27
|
+
attribute vec2 position;
|
|
28
|
+
attribute vec2 uv;
|
|
29
|
+
varying vec2 vUv;
|
|
30
|
+
void main() {
|
|
31
|
+
vUv = uv;
|
|
32
|
+
gl_Position = vec4(position, 0.0, 1.0);
|
|
33
|
+
}
|
|
34
|
+
`;
|
|
35
|
+
const frag = /* glsl */ `
|
|
36
|
+
precision highp float;
|
|
37
|
+
|
|
38
|
+
uniform float iTime;
|
|
39
|
+
uniform vec3 iResolution;
|
|
40
|
+
uniform float hue;
|
|
41
|
+
uniform float hover;
|
|
42
|
+
uniform float rot;
|
|
43
|
+
uniform float hoverIntensity;
|
|
44
|
+
varying vec2 vUv;
|
|
45
|
+
|
|
46
|
+
vec3 rgb2yiq(vec3 c) {
|
|
47
|
+
float y = dot(c, vec3(0.299, 0.587, 0.114));
|
|
48
|
+
float i = dot(c, vec3(0.596, -0.274, -0.322));
|
|
49
|
+
float q = dot(c, vec3(0.211, -0.523, 0.312));
|
|
50
|
+
return vec3(y, i, q);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
vec3 yiq2rgb(vec3 c) {
|
|
54
|
+
float r = c.x + 0.956 * c.y + 0.621 * c.z;
|
|
55
|
+
float g = c.x - 0.272 * c.y - 0.647 * c.z;
|
|
56
|
+
float b = c.x - 1.106 * c.y + 1.703 * c.z;
|
|
57
|
+
return vec3(r, g, b);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
vec3 adjustHue(vec3 color, float hueDeg) {
|
|
61
|
+
float hueRad = hueDeg * 3.14159265 / 180.0;
|
|
62
|
+
vec3 yiq = rgb2yiq(color);
|
|
63
|
+
float cosA = cos(hueRad);
|
|
64
|
+
float sinA = sin(hueRad);
|
|
65
|
+
float i = yiq.y * cosA - yiq.z * sinA;
|
|
66
|
+
float q = yiq.y * sinA + yiq.z * cosA;
|
|
67
|
+
yiq.y = i;
|
|
68
|
+
yiq.z = q;
|
|
69
|
+
return yiq2rgb(yiq);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
vec3 hash33(vec3 p3) {
|
|
73
|
+
p3 = fract(p3 * vec3(0.1031, 0.11369, 0.13787));
|
|
74
|
+
p3 += dot(p3, p3.yxz + 19.19);
|
|
75
|
+
return -1.0 + 2.0 * fract(vec3(
|
|
76
|
+
p3.x + p3.y,
|
|
77
|
+
p3.x + p3.z,
|
|
78
|
+
p3.y + p3.z
|
|
79
|
+
) * p3.zyx);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
float snoise3(vec3 p) {
|
|
83
|
+
const float K1 = 0.333333333;
|
|
84
|
+
const float K2 = 0.166666667;
|
|
85
|
+
vec3 i = floor(p + (p.x + p.y + p.z) * K1);
|
|
86
|
+
vec3 d0 = p - (i - (i.x + i.y + i.z) * K2);
|
|
87
|
+
vec3 e = step(vec3(0.0), d0 - d0.yzx);
|
|
88
|
+
vec3 i1 = e * (1.0 - e.zxy);
|
|
89
|
+
vec3 i2 = 1.0 - e.zxy * (1.0 - e);
|
|
90
|
+
vec3 d1 = d0 - (i1 - K2);
|
|
91
|
+
vec3 d2 = d0 - (i2 - K1);
|
|
92
|
+
vec3 d3 = d0 - 0.5;
|
|
93
|
+
vec4 h = max(0.6 - vec4(
|
|
94
|
+
dot(d0, d0),
|
|
95
|
+
dot(d1, d1),
|
|
96
|
+
dot(d2, d2),
|
|
97
|
+
dot(d3, d3)
|
|
98
|
+
), 0.0);
|
|
99
|
+
vec4 n = h * h * h * h * vec4(
|
|
100
|
+
dot(d0, hash33(i)),
|
|
101
|
+
dot(d1, hash33(i + i1)),
|
|
102
|
+
dot(d2, hash33(i + i2)),
|
|
103
|
+
dot(d3, hash33(i + 1.0))
|
|
104
|
+
);
|
|
105
|
+
return dot(vec4(31.316), n);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
vec4 extractAlpha(vec3 colorIn) {
|
|
109
|
+
float a = max(max(colorIn.r, colorIn.g), colorIn.b);
|
|
110
|
+
return vec4(colorIn.rgb / (a + 1e-5), a);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
const vec3 baseColor1 = vec3(0.611765, 0.262745, 0.996078);
|
|
114
|
+
const vec3 baseColor2 = vec3(0.298039, 0.760784, 0.913725);
|
|
115
|
+
const vec3 baseColor3 = vec3(0.062745, 0.078431, 0.600000);
|
|
116
|
+
const float innerRadius = 0.6;
|
|
117
|
+
const float noiseScale = 0.65;
|
|
118
|
+
|
|
119
|
+
float light1(float intensity, float attenuation, float dist) {
|
|
120
|
+
return intensity / (1.0 + dist * attenuation);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
float light2(float intensity, float attenuation, float dist) {
|
|
124
|
+
return intensity / (1.0 + dist * dist * attenuation);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
vec4 draw(vec2 uv) {
|
|
128
|
+
vec3 color1 = adjustHue(baseColor1, hue);
|
|
129
|
+
vec3 color2 = adjustHue(baseColor2, hue);
|
|
130
|
+
vec3 color3 = adjustHue(baseColor3, hue);
|
|
131
|
+
|
|
132
|
+
float ang = atan(uv.y, uv.x);
|
|
133
|
+
float len = length(uv);
|
|
134
|
+
float invLen = len > 0.0 ? 1.0 / len : 0.0;
|
|
135
|
+
|
|
136
|
+
float n0 = snoise3(vec3(uv * noiseScale, iTime * 0.5)) * 0.5 + 0.5;
|
|
137
|
+
float r0 = mix(mix(innerRadius, 1.0, 0.4), mix(innerRadius, 1.0, 0.6), n0);
|
|
138
|
+
float d0 = distance(uv, (r0 * invLen) * uv);
|
|
139
|
+
float v0 = light1(1.0, 10.0, d0);
|
|
140
|
+
v0 *= smoothstep(r0 * 1.05, r0, len);
|
|
141
|
+
float cl = cos(ang + iTime * 2.0) * 0.5 + 0.5;
|
|
142
|
+
|
|
143
|
+
float a = iTime * -1.0;
|
|
144
|
+
vec2 pos = vec2(cos(a), sin(a)) * r0;
|
|
145
|
+
float d = distance(uv, pos);
|
|
146
|
+
float v1 = light2(1.5, 5.0, d);
|
|
147
|
+
v1 *= light1(1.0, 50.0, d0);
|
|
148
|
+
|
|
149
|
+
float v2 = smoothstep(1.0, mix(innerRadius, 1.0, n0 * 0.5), len);
|
|
150
|
+
float v3 = smoothstep(innerRadius, mix(innerRadius, 1.0, 0.5), len);
|
|
151
|
+
|
|
152
|
+
vec3 col = mix(color1, color2, cl);
|
|
153
|
+
col = mix(color3, col, v0);
|
|
154
|
+
col = (col + v1) * v2 * v3;
|
|
155
|
+
col = clamp(col, 0.0, 1.0);
|
|
156
|
+
|
|
157
|
+
return extractAlpha(col);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
vec4 mainImage(vec2 fragCoord) {
|
|
161
|
+
vec2 center = iResolution.xy * 0.5;
|
|
162
|
+
float size = min(iResolution.x, iResolution.y);
|
|
163
|
+
vec2 uv = (fragCoord - center) / size * 2.0;
|
|
164
|
+
|
|
165
|
+
float angle = rot;
|
|
166
|
+
float s = sin(angle);
|
|
167
|
+
float c = cos(angle);
|
|
168
|
+
uv = vec2(c * uv.x - s * uv.y, s * uv.x + c * uv.y);
|
|
169
|
+
|
|
170
|
+
uv.x += hover * hoverIntensity * 0.1 * sin(uv.y * 10.0 + iTime);
|
|
171
|
+
uv.y += hover * hoverIntensity * 0.1 * sin(uv.x * 10.0 + iTime);
|
|
172
|
+
|
|
173
|
+
return draw(uv);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
void main() {
|
|
177
|
+
vec2 fragCoord = vUv * iResolution.xy;
|
|
178
|
+
vec4 col = mainImage(fragCoord);
|
|
179
|
+
gl_FragColor = vec4(col.rgb * col.a, col.a);
|
|
180
|
+
}
|
|
181
|
+
`;
|
|
182
|
+
|
|
183
|
+
export const VoicePoweredOrb: FC<VoicePoweredOrbProps> = ({
|
|
184
|
+
className, hue = 0, animate = true, enableVoiceControl = true, voiceSensitivity = 1.5,
|
|
185
|
+
maxRotationSpeed = 1.2, maxHoverIntensity = 0.8, onVoiceDetected, analyserRef,
|
|
186
|
+
}) => {
|
|
187
|
+
const containerRef = useRef<HTMLDivElement>(null)
|
|
188
|
+
const ownAnalyser = useRef<AnalyserNode | null>(null)
|
|
189
|
+
const config = useRef({ hue, animate, enableVoiceControl, voiceSensitivity, maxRotationSpeed, maxHoverIntensity, onVoiceDetected, analyserRef })
|
|
190
|
+
config.current = { hue, animate, enableVoiceControl, voiceSensitivity, maxRotationSpeed, maxHoverIntensity, onVoiceDetected, analyserRef }
|
|
191
|
+
const [fallback, setFallback] = useState(false)
|
|
192
|
+
const wakeRef = useRef<(() => void) | null>(null)
|
|
193
|
+
useEffect(() => { wakeRef.current?.() }, [hue, animate, enableVoiceControl, voiceSensitivity, maxRotationSpeed, maxHoverIntensity, onVoiceDetected, analyserRef])
|
|
194
|
+
|
|
195
|
+
// Standalone mode retains the supplied microphone behavior. Live calls supply
|
|
196
|
+
// their existing analyser, so this effect owns no call microphone resources.
|
|
197
|
+
useEffect(() => {
|
|
198
|
+
if (!enableVoiceControl || analyserRef) return
|
|
199
|
+
let disposed = false
|
|
200
|
+
let stream: MediaStream | null = null
|
|
201
|
+
let context: AudioContext | null = null
|
|
202
|
+
let source: MediaStreamAudioSourceNode | null = null
|
|
203
|
+
let analyser: AnalyserNode | null = null
|
|
204
|
+
const cleanup = () => {
|
|
205
|
+
source?.disconnect()
|
|
206
|
+
analyser?.disconnect()
|
|
207
|
+
if (ownAnalyser.current === analyser) ownAnalyser.current = null
|
|
208
|
+
stream?.getTracks().forEach(track => track.stop())
|
|
209
|
+
if (context && context.state !== 'closed') void context.close().catch(() => {})
|
|
210
|
+
}
|
|
211
|
+
void (async () => {
|
|
212
|
+
try {
|
|
213
|
+
stream = await navigator.mediaDevices.getUserMedia({ audio: {
|
|
214
|
+
echoCancellation: false, noiseSuppression: false, autoGainControl: false, sampleRate: 44100,
|
|
215
|
+
} })
|
|
216
|
+
if (disposed) { stream.getTracks().forEach(track => track.stop()); return }
|
|
217
|
+
const Ctx = window.AudioContext || (window as any).webkitAudioContext
|
|
218
|
+
context = new Ctx()
|
|
219
|
+
if (context.state === 'suspended') await context.resume()
|
|
220
|
+
if (disposed) { cleanup(); return }
|
|
221
|
+
analyser = context.createAnalyser()
|
|
222
|
+
analyser.fftSize = 512
|
|
223
|
+
analyser.smoothingTimeConstant = 0.3
|
|
224
|
+
analyser.minDecibels = -90
|
|
225
|
+
analyser.maxDecibels = -10
|
|
226
|
+
source = context.createMediaStreamSource(stream)
|
|
227
|
+
source.connect(analyser)
|
|
228
|
+
ownAnalyser.current = analyser
|
|
229
|
+
} catch {
|
|
230
|
+
cleanup()
|
|
231
|
+
if (!disposed) config.current.onVoiceDetected?.(false)
|
|
232
|
+
}
|
|
233
|
+
})()
|
|
234
|
+
return () => { disposed = true; cleanup() }
|
|
235
|
+
}, [enableVoiceControl, analyserRef])
|
|
236
|
+
|
|
237
|
+
useEffect(() => {
|
|
238
|
+
const container = containerRef.current
|
|
239
|
+
if (!container) return
|
|
240
|
+
let renderer: Renderer | undefined
|
|
241
|
+
let program: Program | undefined
|
|
242
|
+
let geometry: Triangle | undefined
|
|
243
|
+
let observer: ResizeObserver | undefined
|
|
244
|
+
let raf = 0
|
|
245
|
+
let disposed = false
|
|
246
|
+
let visible = true
|
|
247
|
+
let contextLost = false
|
|
248
|
+
let timer: ReturnType<typeof setTimeout> | undefined
|
|
249
|
+
let intersection: IntersectionObserver | undefined
|
|
250
|
+
let preferenceObserver: MutationObserver | undefined
|
|
251
|
+
let wake = () => {}
|
|
252
|
+
const onVisibility = () => wake()
|
|
253
|
+
initializeEffectVisibility()
|
|
254
|
+
const reduced = window.matchMedia('(prefers-reduced-motion: reduce)')
|
|
255
|
+
const cleanup = () => {
|
|
256
|
+
disposed = true
|
|
257
|
+
cancelAnimationFrame(raf)
|
|
258
|
+
clearTimeout(timer)
|
|
259
|
+
wakeRef.current = null
|
|
260
|
+
document.removeEventListener('visibilitychange', onVisibility)
|
|
261
|
+
reduced.removeEventListener('change', onVisibility)
|
|
262
|
+
intersection?.disconnect()
|
|
263
|
+
preferenceObserver?.disconnect()
|
|
264
|
+
observer?.disconnect()
|
|
265
|
+
if (renderer) {
|
|
266
|
+
geometry?.remove()
|
|
267
|
+
program?.remove()
|
|
268
|
+
renderer.gl.canvas.remove()
|
|
269
|
+
renderer.gl.getExtension('WEBGL_lose_context')?.loseContext()
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
try {
|
|
273
|
+
renderer = new Renderer({ alpha: true, premultipliedAlpha: false, antialias: true, dpr: Math.min(2, window.devicePixelRatio || 1) })
|
|
274
|
+
const gl = renderer.gl
|
|
275
|
+
gl.clearColor(0, 0, 0, 0)
|
|
276
|
+
gl.enable(gl.BLEND)
|
|
277
|
+
gl.blendFunc(gl.SRC_ALPHA, gl.ONE_MINUS_SRC_ALPHA)
|
|
278
|
+
container.appendChild(gl.canvas)
|
|
279
|
+
geometry = new Triangle(gl)
|
|
280
|
+
program = new Program(gl, {
|
|
281
|
+
vertex: vert, fragment: frag,
|
|
282
|
+
uniforms: {
|
|
283
|
+
iTime: { value: 0 }, iResolution: { value: new Vec3() },
|
|
284
|
+
hue: { value: config.current.hue }, hover: { value: 0 },
|
|
285
|
+
rot: { value: 0 }, hoverIntensity: { value: 0 },
|
|
286
|
+
},
|
|
287
|
+
})
|
|
288
|
+
if (!gl.getProgramParameter(program.program, gl.LINK_STATUS)) throw Error('Orb shader unavailable')
|
|
289
|
+
const mesh = new Mesh(gl, { geometry, program })
|
|
290
|
+
let lastImage = ''
|
|
291
|
+
const resize = () => {
|
|
292
|
+
if (contextLost || disposed || !container.clientWidth || !container.clientHeight) return
|
|
293
|
+
const dpr = Math.min(2, window.devicePixelRatio || 1)
|
|
294
|
+
if (gl.canvas.width === Math.floor(container.clientWidth * dpr) && gl.canvas.height === Math.floor(container.clientHeight * dpr)) return
|
|
295
|
+
lastImage = ''
|
|
296
|
+
renderer!.dpr = dpr
|
|
297
|
+
// OGL applies dpr internally; passing scaled sizes applies it twice.
|
|
298
|
+
renderer!.setSize(container.clientWidth, container.clientHeight)
|
|
299
|
+
program!.uniforms.iResolution.value.set(gl.canvas.width, gl.canvas.height, gl.canvas.width / gl.canvas.height)
|
|
300
|
+
// Resizing clears the buffer; repaint visible graphics and invalidate
|
|
301
|
+
// hidden graphics so the next visibility wake paints them again.
|
|
302
|
+
if (!document.hidden && visible && !contextLost) renderer!.render({ scene: mesh })
|
|
303
|
+
wake()
|
|
304
|
+
}
|
|
305
|
+
observer = new ResizeObserver(resize)
|
|
306
|
+
observer.observe(container)
|
|
307
|
+
resize()
|
|
308
|
+
let lastTime = 0, currentRot = 0, detected = false, animationTime = 0
|
|
309
|
+
let buffer: Uint8Array<ArrayBuffer> | null = null
|
|
310
|
+
const update = (time: number) => {
|
|
311
|
+
raf = 0
|
|
312
|
+
timer = undefined
|
|
313
|
+
if (disposed || contextLost || document.hidden || !visible) { lastTime = 0; return }
|
|
314
|
+
const still = !config.current.animate || reduced.matches || document.documentElement.getAttribute('data-reduced-effects') === 'true'
|
|
315
|
+
const c = config.current
|
|
316
|
+
const dt = lastTime ? Math.min(0.05, Math.max(0, (time - lastTime) * 0.001)) : 0
|
|
317
|
+
lastTime = time
|
|
318
|
+
let voiceLevel = 0
|
|
319
|
+
const analyser = c.analyserRef?.current ?? ownAnalyser.current
|
|
320
|
+
if (c.enableVoiceControl && analyser) {
|
|
321
|
+
if (buffer?.length !== analyser.frequencyBinCount) buffer = new Uint8Array(analyser.frequencyBinCount)
|
|
322
|
+
analyser.getByteFrequencyData(buffer!)
|
|
323
|
+
let sum = 0
|
|
324
|
+
for (let i = 0; i < buffer!.length; i++) sum += (buffer![i] / 255) ** 2
|
|
325
|
+
voiceLevel = Math.min(Math.sqrt(sum / (buffer!.length || 1)) * c.voiceSensitivity * 3.0, 1)
|
|
326
|
+
}
|
|
327
|
+
const nextDetected = voiceLevel > 0.1
|
|
328
|
+
if (nextDetected !== detected) { detected = nextDetected; c.onVoiceDetected?.(detected) }
|
|
329
|
+
if (!still && voiceLevel > 0.05) currentRot += dt * (0.3 + voiceLevel * c.maxRotationSpeed * 2.0)
|
|
330
|
+
if (!still) animationTime += dt
|
|
331
|
+
program!.uniforms.iTime.value = still ? 0 : animationTime
|
|
332
|
+
program!.uniforms.hue.value = c.hue
|
|
333
|
+
program!.uniforms.rot.value = still ? 0 : currentRot
|
|
334
|
+
program!.uniforms.hover.value = still ? 0 : Math.min(voiceLevel * 2.0, 1)
|
|
335
|
+
program!.uniforms.hoverIntensity.value = still ? 0 : Math.min(voiceLevel * c.maxHoverIntensity * 0.8, c.maxHoverIntensity)
|
|
336
|
+
const image = [animationTime && !still ? animationTime : 0, c.hue, program!.uniforms.rot.value,
|
|
337
|
+
program!.uniforms.hover.value, program!.uniforms.hoverIntensity.value, gl.canvas.width, gl.canvas.height].join(':')
|
|
338
|
+
if (image !== lastImage) { renderer!.render({ scene: mesh }); lastImage = image }
|
|
339
|
+
if (!still) raf = requestAnimationFrame(update)
|
|
340
|
+
// Preserve voice callbacks without submitting identical GPU frames.
|
|
341
|
+
else if (c.enableVoiceControl && c.onVoiceDetected) timer = setTimeout(() => update(performance.now()), 100)
|
|
342
|
+
}
|
|
343
|
+
wake = () => {
|
|
344
|
+
cancelAnimationFrame(raf)
|
|
345
|
+
clearTimeout(timer)
|
|
346
|
+
raf = 0
|
|
347
|
+
timer = undefined
|
|
348
|
+
lastTime = 0
|
|
349
|
+
if (!disposed && !contextLost && visible && !document.hidden) raf = requestAnimationFrame(update)
|
|
350
|
+
}
|
|
351
|
+
wakeRef.current = wake
|
|
352
|
+
document.addEventListener('visibilitychange', onVisibility)
|
|
353
|
+
reduced.addEventListener('change', onVisibility)
|
|
354
|
+
preferenceObserver = new MutationObserver(wake)
|
|
355
|
+
preferenceObserver.observe(document.documentElement, { attributes: true, attributeFilter: ['data-reduced-effects'] })
|
|
356
|
+
intersection = new IntersectionObserver(entries => { visible = entries[0]?.isIntersecting ?? false; wake() })
|
|
357
|
+
intersection.observe(container)
|
|
358
|
+
wake()
|
|
359
|
+
gl.canvas.addEventListener('webglcontextlost', () => {
|
|
360
|
+
if (!disposed) { contextLost = true; cancelAnimationFrame(raf); clearTimeout(timer); setFallback(true) }
|
|
361
|
+
}, { once: true })
|
|
362
|
+
return cleanup
|
|
363
|
+
} catch (error) {
|
|
364
|
+
cleanup()
|
|
365
|
+
setFallback(true)
|
|
366
|
+
console.warn('Voice orb graphics unavailable', error)
|
|
367
|
+
return cleanup
|
|
368
|
+
}
|
|
369
|
+
}, [])
|
|
370
|
+
|
|
371
|
+
return <div ref={containerRef} className={cn('w-full h-full relative voice-powered-orb', className)} data-fallback={fallback || undefined} aria-hidden="true">
|
|
372
|
+
{fallback && <span className="voice-powered-orb__fallback" />}
|
|
373
|
+
</div>
|
|
374
|
+
}
|
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
.workspace-selector {
|
|
2
|
+
position: relative;
|
|
3
|
+
display: flex;
|
|
4
|
+
min-width: 0;
|
|
5
|
+
max-width: 56%;
|
|
6
|
+
flex: 0 1 auto;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.workspace-selector.needs-workspace {
|
|
10
|
+
max-width: 100%;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.workspace-select-btn {
|
|
14
|
+
min-width: 0;
|
|
15
|
+
min-height: 32px;
|
|
16
|
+
margin: 0;
|
|
17
|
+
padding: 0 10px;
|
|
18
|
+
display: flex;
|
|
19
|
+
align-items: center;
|
|
20
|
+
gap: 7px;
|
|
21
|
+
color: var(--text-primary);
|
|
22
|
+
background: var(--surface-strong);
|
|
23
|
+
border: 1px solid var(--border-subtle);
|
|
24
|
+
border-radius: var(--radius-md);
|
|
25
|
+
text-align: left;
|
|
26
|
+
cursor: pointer;
|
|
27
|
+
transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.workspace-select-btn:hover {
|
|
31
|
+
background: var(--bg-surface-hover);
|
|
32
|
+
border-color: var(--border);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.workspace-select-btn:focus-visible {
|
|
36
|
+
position: relative;
|
|
37
|
+
z-index: 2;
|
|
38
|
+
outline: 2px solid var(--border-focus, var(--accent));
|
|
39
|
+
outline-offset: -2px;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.workspace-select-btn.needs-workspace {
|
|
43
|
+
max-width: 100%;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.workspace-select-icon {
|
|
47
|
+
width: 16px;
|
|
48
|
+
height: 16px;
|
|
49
|
+
display: inline-flex;
|
|
50
|
+
align-items: center;
|
|
51
|
+
justify-content: center;
|
|
52
|
+
flex: 0 0 16px;
|
|
53
|
+
color: var(--interactive-fg);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.workspace-select-copy {
|
|
57
|
+
min-width: 0;
|
|
58
|
+
display: flex;
|
|
59
|
+
flex: 0 1 auto;
|
|
60
|
+
align-items: baseline;
|
|
61
|
+
gap: 6px;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.workspace-select-name {
|
|
65
|
+
overflow: hidden;
|
|
66
|
+
color: var(--text-primary);
|
|
67
|
+
font-size: 0.78rem;
|
|
68
|
+
font-weight: 500;
|
|
69
|
+
line-height: 1.2;
|
|
70
|
+
text-overflow: ellipsis;
|
|
71
|
+
white-space: nowrap;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.workspace-select-chevron {
|
|
75
|
+
flex: 0 0 auto;
|
|
76
|
+
color: var(--text-muted);
|
|
77
|
+
transition: transform 120ms ease;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.workspace-select-btn:hover .workspace-select-chevron {
|
|
81
|
+
color: var(--text-primary);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.workspace-select-menu {
|
|
85
|
+
position: absolute;
|
|
86
|
+
z-index: 80;
|
|
87
|
+
left: 0;
|
|
88
|
+
bottom: calc(100% + 6px);
|
|
89
|
+
width: min(360px, calc(100vw - 32px));
|
|
90
|
+
max-height: min(420px, 65vh);
|
|
91
|
+
display: flex;
|
|
92
|
+
flex-direction: column;
|
|
93
|
+
overflow: hidden;
|
|
94
|
+
color: var(--text-primary);
|
|
95
|
+
background: var(--bg-overlay);
|
|
96
|
+
border: 1px solid var(--border);
|
|
97
|
+
border-radius: var(--radius-lg);
|
|
98
|
+
box-shadow: var(--shadow-md);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.workspace-select-search {
|
|
102
|
+
min-height: 40px;
|
|
103
|
+
padding: 0 12px;
|
|
104
|
+
display: flex;
|
|
105
|
+
align-items: center;
|
|
106
|
+
gap: 9px;
|
|
107
|
+
color: var(--text-muted);
|
|
108
|
+
border-bottom: 1px solid var(--border-subtle);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.workspace-select-search:focus-within {
|
|
112
|
+
color: var(--interactive-fg);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.workspace-select-search input {
|
|
116
|
+
min-width: 0;
|
|
117
|
+
width: 100%;
|
|
118
|
+
padding: 0;
|
|
119
|
+
color: var(--text-primary);
|
|
120
|
+
background: transparent;
|
|
121
|
+
border: 0;
|
|
122
|
+
outline: none;
|
|
123
|
+
font: inherit;
|
|
124
|
+
font-size: 0.8rem;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.workspace-select-search input::placeholder {
|
|
128
|
+
color: var(--text-muted);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.workspace-select-list {
|
|
132
|
+
min-height: 0;
|
|
133
|
+
padding: 4px;
|
|
134
|
+
overflow-y: auto;
|
|
135
|
+
scrollbar-width: thin;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.workspace-select-option {
|
|
139
|
+
width: 100%;
|
|
140
|
+
min-width: 0;
|
|
141
|
+
padding: 8px 9px;
|
|
142
|
+
display: grid;
|
|
143
|
+
grid-template-columns: 16px minmax(0, 1fr) 16px;
|
|
144
|
+
align-items: center;
|
|
145
|
+
gap: 9px;
|
|
146
|
+
color: var(--text-secondary);
|
|
147
|
+
text-align: left;
|
|
148
|
+
background: transparent;
|
|
149
|
+
border: 0;
|
|
150
|
+
border-radius: var(--radius-sm);
|
|
151
|
+
cursor: pointer;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.workspace-select-option:hover,
|
|
155
|
+
.workspace-select-option:focus-visible,
|
|
156
|
+
.workspace-select-option[aria-current="true"] {
|
|
157
|
+
color: var(--text-primary);
|
|
158
|
+
background: var(--bg-surface-hover);
|
|
159
|
+
outline: none;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.workspace-select-option-icon {
|
|
163
|
+
color: var(--text-muted);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.workspace-select-option-copy {
|
|
167
|
+
min-width: 0;
|
|
168
|
+
display: flex;
|
|
169
|
+
flex-direction: column;
|
|
170
|
+
gap: 2px;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.workspace-select-option-name,
|
|
174
|
+
.workspace-select-option-path {
|
|
175
|
+
overflow: hidden;
|
|
176
|
+
text-overflow: ellipsis;
|
|
177
|
+
white-space: nowrap;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.workspace-select-option-name {
|
|
181
|
+
color: inherit;
|
|
182
|
+
font-size: 0.8rem;
|
|
183
|
+
line-height: 1.25;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.workspace-select-option-path {
|
|
187
|
+
color: var(--text-muted);
|
|
188
|
+
font-size: 0.66rem;
|
|
189
|
+
line-height: 1.2;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.workspace-select-current {
|
|
193
|
+
color: var(--interactive-fg);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.workspace-select-empty {
|
|
197
|
+
padding: 18px 12px;
|
|
198
|
+
color: var(--text-muted);
|
|
199
|
+
font-size: 0.76rem;
|
|
200
|
+
text-align: center;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.workspace-select-menu-footer {
|
|
204
|
+
padding: 4px;
|
|
205
|
+
border-top: 1px solid var(--border-subtle);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.workspace-select-open-folder {
|
|
209
|
+
width: 100%;
|
|
210
|
+
min-height: 34px;
|
|
211
|
+
padding: 0 9px;
|
|
212
|
+
display: flex;
|
|
213
|
+
align-items: center;
|
|
214
|
+
gap: 9px;
|
|
215
|
+
color: var(--text-secondary);
|
|
216
|
+
text-align: left;
|
|
217
|
+
background: transparent;
|
|
218
|
+
border: 0;
|
|
219
|
+
border-radius: var(--radius-sm);
|
|
220
|
+
cursor: pointer;
|
|
221
|
+
font: inherit;
|
|
222
|
+
font-size: 0.78rem;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.workspace-select-open-folder:hover,
|
|
226
|
+
.workspace-select-open-folder:focus-visible {
|
|
227
|
+
color: var(--text-primary);
|
|
228
|
+
background: var(--bg-surface-hover);
|
|
229
|
+
outline: none;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
.workspace-selector.opens-below .workspace-select-menu {
|
|
234
|
+
top: calc(100% + 6px);
|
|
235
|
+
bottom: auto;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
@media (max-width: 640px) {
|
|
239
|
+
.workspace-selector { max-width: 54%; }
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
@media (prefers-reduced-motion: reduce) {
|
|
243
|
+
.workspace-select-btn, .workspace-select-chevron { transition: none; }
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
@media (forced-colors: active) {
|
|
247
|
+
.workspace-select-btn, .workspace-select-menu, .workspace-select-search { border-color: CanvasText; }
|
|
248
|
+
}
|