@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,49 @@
|
|
|
1
|
+
# Mint Device v1 contract
|
|
2
|
+
|
|
3
|
+
## Discovery and arguments
|
|
4
|
+
|
|
5
|
+
Every MCP tool must publish a usable `inputSchema` declaring an object. Mint loads all `tools/list` pages before selecting a tool and validates arguments locally for raw CLI/API and agent calls. Unknown names, missing/unusable schemas, and invalid arguments are rejected before `tools/call`. Values are never coerced and defaults are never inserted. Extra properties are accepted only as allowed by the schema. JSON Schema local references work; unresolved network and file references are blocked.
|
|
6
|
+
|
|
7
|
+
The catalog is scoped to the live server session and its connection configuration. Reconnects, configuration changes, `notifications/tools/list_changed`, and a 60-second TTL invalidate it. Discovery has a 30-second deadline and bounds of 100 pages, 1,000 tools, and 256 KiB per definition. Oversized or partial schemas are rejected. Agent preparation supplies the full description/schema to the next model request, preserves it after context compaction, and requests a new command proposal. Reading definitions grants no command permission. Preparation events do not count as tool executions or argument retries.
|
|
8
|
+
|
|
9
|
+
All discovery pages, validation, command dispatch, and subsequent status polls remain bound to that session and catalog generation. Mint never reconnects within an invocation. Session loss before dispatch rejects the command; loss after dispatch stops verification with completion unconfirmed, preserving the receipt and latest observation. A replacement connector cannot verify the old operation. A later explicit invocation can establish a new session and read its schemas.
|
|
10
|
+
|
|
11
|
+
## Opting into verification
|
|
12
|
+
|
|
13
|
+
A command opts in by publishing this metadata in its tool definition:
|
|
14
|
+
|
|
15
|
+
```json
|
|
16
|
+
{"_meta":{"mint/device":{"version":1,"statusTool":"get_status"}}}
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Names such as `set_speed` or `stop` alone do not activate the contract. Command and status tools must both provide usable `inputSchema` and `outputSchema`. `statusTool` is a read-only tool accepting `deviceId` and the opaque `operationId` returned by the command. It must accept a string operation identifier, including UUIDs. It cannot itself carry command metadata. Mint validates the command, verifies the status definition, and obtains command and status-read permissions before dispatching any command. A single-call status grant is held only in that command's cloned configuration for its poll sequence. The approval describes status access scoped to the operation ID returned by this command; the actual ID is not known before dispatch.
|
|
20
|
+
|
|
21
|
+
Both results expose `structuredContent` with:
|
|
22
|
+
|
|
23
|
+
```json
|
|
24
|
+
{
|
|
25
|
+
"deviceId":"mock-device",
|
|
26
|
+
"operationId":"opaque-id",
|
|
27
|
+
"state":"accepted",
|
|
28
|
+
"target":{"rpm":100},
|
|
29
|
+
"actual":{"rpm":0},
|
|
30
|
+
"observationSeq":1
|
|
31
|
+
}
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
`deviceId` and `operationId` are nonempty strings; `target` and `actual` are objects. `observationSeq` is a nonnegative integer increasing with each fresh physical observation. `state` is `accepted`, `running`, `completed`, or `failed`; `error` may describe a failure. Keep the target stable throughout an operation. Attach images using standard MCP image content alongside the structured receipt; Mint preserves them through verification.
|
|
35
|
+
|
|
36
|
+
- `accepted`: the adapter received the command. This does not prove physical action or completion.
|
|
37
|
+
- `running`: the operation is active. `actual` comes from a current device reading.
|
|
38
|
+
- `completed`: the adapter has verified the target using a fresh physical observation. A successful write to USB/Serial or a published MQTT message is insufficient. Account for tolerances, encoder position, motor speed, or camera capture in the adapter's completion rule.
|
|
39
|
+
- `failed`: the operation has failed. Preserve its identity, target, latest observation, and diagnostic.
|
|
40
|
+
|
|
41
|
+
Mint polls approximately once per second. It accepts completion only for the same device, operation ID, and target, with a sequence newer than both the command receipt and the previous accepted observation. Repeated/stale samples cannot confirm completion. Identity/target mismatch, malformed observations, or an `isError` response stop verification without reporting success. A changed status definition also stops verification. The adapter remains responsible for the truth of sensor readings and the meaning of `completed`; MCP cannot independently inspect the hardware.
|
|
42
|
+
|
|
43
|
+
The existing server `timeoutSecs` is one overall deadline for command dispatch and verification (default 300 seconds). Each status request waits at most 10 seconds or the remaining deadline. Mint emits `accepted`, `running`, `verified`, `failed`, and `unconfirmed` DeviceState events. Only a fresh completed observation produces successful ToolEnd. A failure to verify preserves the receipt and attachments and explains that the command must not be repeated automatically. The agent blocks an identical Device command with unconfirmed completion for the rest of that user turn (argument key order does not change its identity). Status reads and a distinct explicit stop remain available; a new user instruction starts a new turn.
|
|
44
|
+
|
|
45
|
+
## Adapter responsibilities
|
|
46
|
+
|
|
47
|
+
Keep transport details in the adapter: USB/Serial framing, MQTT topics, reconnects, authentication, command queueing, units, numeric limits, sensor sampling, and completion rules. Expose only real capabilities, with clear descriptions and bounded input schemas. Use a unique operation ID per command; never silently turn a status request into a command. The mock rejects a second speed command while busy and an explicit `stop` supersedes its current operation with a failed state.
|
|
48
|
+
|
|
49
|
+
Chat cancellation stops waiting and polling and requests MCP cancellation where possible. It does not physically stop the device. Stopping hardware requires an explicit, separately authorized stop command, followed by fresh status verification. Connector/device restarts do not resume Mint's active jobs; if an operation becomes unknown, report an error instead of manufacturing completion. Completed activity and attachments remain in chat history.
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { randomUUID } from 'node:crypto'
|
|
2
|
+
import { deflateSync } from 'node:zlib'
|
|
3
|
+
|
|
4
|
+
/** Replace this adapter with hardware I/O. Observations must come from sensors. */
|
|
5
|
+
export class MockDevice {
|
|
6
|
+
#rpm = 0; #sequence = 0; #active; #operations = new Map()
|
|
7
|
+
|
|
8
|
+
#observe(operation) {
|
|
9
|
+
if (operation === this.#active && Date.now() >= operation.finishesAt) {
|
|
10
|
+
this.#rpm = operation.target.rpm; operation.state = 'completed'; this.#active = undefined
|
|
11
|
+
}
|
|
12
|
+
return { deviceId: 'mock-device', operationId: operation?.id ?? 'status', state: operation?.state === 'accepted' ? 'running' : operation?.state ?? 'completed', target: operation?.target ?? {}, actual: { rpm: this.#rpm }, observationSeq: ++this.#sequence, ...(operation?.error ? { error: operation.error } : {}) }
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
getStatus(operationId) {
|
|
16
|
+
// Read the physical state even when asking about an older operation.
|
|
17
|
+
if (this.#active) this.#observe(this.#active)
|
|
18
|
+
const operation = operationId ? this.#operations.get(operationId) : this.#active
|
|
19
|
+
if (operationId && !operation) throw new Error('Unknown operationId')
|
|
20
|
+
return this.#observe(operation)
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
#command(target, duration) {
|
|
24
|
+
const operation = { id: randomUUID(), target, state: 'accepted', finishesAt: Date.now() + duration }
|
|
25
|
+
this.#operations.set(operation.id, operation); this.#active = operation
|
|
26
|
+
if (this.#operations.size > 256) this.#operations.delete(this.#operations.keys().next().value)
|
|
27
|
+
return { deviceId: 'mock-device', operationId: operation.id, state: 'accepted', target, actual: { rpm: this.#rpm }, observationSeq: ++this.#sequence }
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
setSpeed(rpm) {
|
|
31
|
+
if (this.#active) this.#observe(this.#active)
|
|
32
|
+
if (this.#active) throw new Error('Device busy; explicitly stop the current operation first')
|
|
33
|
+
return this.#command({ rpm }, 2000)
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
stop() {
|
|
37
|
+
if (this.#active) { this.#active.state = 'failed'; this.#active.error = 'Superseded by explicit stop' }
|
|
38
|
+
this.#rpm = 0
|
|
39
|
+
return this.#command({ rpm: 0 }, 0)
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
capturePhoto() {
|
|
43
|
+
const operation = { id: randomUUID(), state: 'completed', target: { captured: true } }
|
|
44
|
+
this.#operations.set(operation.id, operation)
|
|
45
|
+
if (this.#operations.size > 256) this.#operations.delete(this.#operations.keys().next().value)
|
|
46
|
+
return { state: this.#observe(operation), image: samplePng() }
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
function samplePng() {
|
|
51
|
+
const crc = bytes => {
|
|
52
|
+
let c = 0xffffffff
|
|
53
|
+
for (const byte of bytes) { c ^= byte; for (let i = 0; i < 8; i++) c = c & 1 ? 0xedb88320 ^ (c >>> 1) : c >>> 1 }
|
|
54
|
+
return (c ^ 0xffffffff) >>> 0
|
|
55
|
+
}
|
|
56
|
+
const chunk = (type, payload) => {
|
|
57
|
+
const data = Buffer.concat([Buffer.from(type), payload]); const header = Buffer.alloc(4); header.writeUInt32BE(payload.length)
|
|
58
|
+
const checksum = Buffer.alloc(4); checksum.writeUInt32BE(crc(data)); return Buffer.concat([header, data, checksum])
|
|
59
|
+
}
|
|
60
|
+
const header = Buffer.alloc(13); header.writeUInt32BE(32); header.writeUInt32BE(32, 4); header[8] = 8; header[9] = 2
|
|
61
|
+
const pixels = Buffer.alloc(32 * (1 + 32 * 3))
|
|
62
|
+
for (let y = 0; y < 32; y++) for (let x = 0; x < 32; x++) {
|
|
63
|
+
const i = y * 97 + 1 + x * 3; pixels[i] = 50; pixels[i + 1] = 120 + x * 3; pixels[i + 2] = 80 + y * 3
|
|
64
|
+
}
|
|
65
|
+
return Buffer.concat([Buffer.from('89504e470d0a1a0a', 'hex'), chunk('IHDR', header), chunk('IDAT', deflateSync(pixels)), chunk('IEND', Buffer.alloc(0))]).toString('base64')
|
|
66
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { createInterface } from 'node:readline'
|
|
2
|
+
import { MockDevice } from './mock-device.mjs'
|
|
3
|
+
|
|
4
|
+
const device = new MockDevice()
|
|
5
|
+
const deviceId = { type: 'string', const: 'mock-device', description: 'ID of this simulated motor and camera' }
|
|
6
|
+
const inputSchema = properties => ({ type: 'object', properties: { deviceId, ...properties }, required: ['deviceId', ...('rpm' in properties ? ['rpm'] : [])], additionalProperties: false })
|
|
7
|
+
const outputSchema = { type: 'object', properties: {
|
|
8
|
+
deviceId: { type: 'string' }, operationId: { type: 'string' }, state: { enum: ['accepted', 'running', 'completed', 'failed'] },
|
|
9
|
+
target: { type: 'object' }, actual: { type: 'object' }, observationSeq: { type: 'integer', minimum: 0 }, error: { type: 'string' },
|
|
10
|
+
}, required: ['deviceId', 'operationId', 'state', 'target', 'actual', 'observationSeq'], additionalProperties: false }
|
|
11
|
+
const commandMeta = { 'mint/device': { version: 1, statusTool: 'get_status' } }
|
|
12
|
+
const tools = [
|
|
13
|
+
{ name: 'get_status', description: 'Read a fresh device observation, optionally for an operationId; RPM readings are simulated.', inputSchema: inputSchema({ operationId: { type: 'string', minLength: 1 } }), outputSchema, annotations: { readOnlyHint: true } },
|
|
14
|
+
{ name: 'set_speed', description: 'Request a simulated motor speed, in integer RPM (0–3000). A receipt is not completion; use get_status to confirm.', inputSchema: inputSchema({ rpm: { type: 'integer', minimum: 0, maximum: 3000, description: 'Target speed in RPM' } }), outputSchema, _meta: commandMeta },
|
|
15
|
+
{ name: 'stop', description: 'Explicitly stop the simulated motor. Supersedes its running operation; verify zero RPM with get_status.', inputSchema: inputSchema({}), outputSchema, _meta: commandMeta },
|
|
16
|
+
{ name: 'capture_photo', description: 'Capture a generated PNG sample from the simulated camera; this is not a real photograph.', inputSchema: inputSchema({}), outputSchema, _meta: commandMeta },
|
|
17
|
+
]
|
|
18
|
+
|
|
19
|
+
function invoke(name, args) {
|
|
20
|
+
const tool = tools.find(tool => tool.name === name)
|
|
21
|
+
if (!tool) throw new Error('Unknown tool')
|
|
22
|
+
if (!args || typeof args !== 'object' || Array.isArray(args) || args.deviceId !== 'mock-device') throw new Error('deviceId must be mock-device')
|
|
23
|
+
if (Object.keys(args).some(key => !(key in tool.inputSchema.properties))) throw new Error('Unknown argument')
|
|
24
|
+
if (name === 'set_speed' && (!Number.isInteger(args.rpm) || args.rpm < 0 || args.rpm > 3000)) throw new Error('rpm must be an integer from 0 to 3000')
|
|
25
|
+
if ('operationId' in args && (typeof args.operationId !== 'string' || !args.operationId)) throw new Error('Invalid operationId')
|
|
26
|
+
let state; let image
|
|
27
|
+
if (name === 'get_status') state = device.getStatus(args.operationId)
|
|
28
|
+
else if (name === 'set_speed') state = device.setSpeed(args.rpm)
|
|
29
|
+
else if (name === 'stop') state = device.stop()
|
|
30
|
+
else ({ state, image } = device.capturePhoto())
|
|
31
|
+
return { content: [{ type: 'text', text: JSON.stringify(state) }, ...(image ? [{ type: 'image', mimeType: 'image/png', data: image }] : [])], structuredContent: state }
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
createInterface({ input: process.stdin }).on('line', line => {
|
|
35
|
+
let request
|
|
36
|
+
try { request = JSON.parse(line) } catch { process.stderr.write('Invalid MCP JSON\n'); return }
|
|
37
|
+
// Cancel means stop waiting, never an implicit hardware stop command.
|
|
38
|
+
if (request.id === undefined) return
|
|
39
|
+
let result
|
|
40
|
+
if (request.method === 'initialize') result = { protocolVersion: '2025-06-18', capabilities: { tools: {} }, serverInfo: { name: 'mint-device-mock', version: '1.0.0' } }
|
|
41
|
+
else if (request.method === 'ping') result = {}
|
|
42
|
+
else if (request.method === 'tools/list') result = { tools }
|
|
43
|
+
else if (request.method === 'tools/call') {
|
|
44
|
+
try { result = invoke(request.params?.name, request.params?.arguments) }
|
|
45
|
+
catch (error) { result = { isError: true, content: [{ type: 'text', text: error.message }] } }
|
|
46
|
+
} else { process.stdout.write(JSON.stringify({ jsonrpc: '2.0', id: request.id, error: { code: -32601, message: 'Unknown method' } }) + '\n'); return }
|
|
47
|
+
process.stdout.write(JSON.stringify({ jsonrpc: '2.0', id: request.id, result }) + '\n')
|
|
48
|
+
})
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { test } from 'node:test'
|
|
2
|
+
import assert from 'node:assert/strict'
|
|
3
|
+
import { spawn } from 'node:child_process'
|
|
4
|
+
import { createInterface } from 'node:readline'
|
|
5
|
+
import { fileURLToPath } from 'node:url'
|
|
6
|
+
|
|
7
|
+
function connect(t) {
|
|
8
|
+
const child = spawn(process.execPath, [fileURLToPath(new URL('./server.mjs', import.meta.url))], { stdio: ['pipe', 'pipe', 'pipe'] })
|
|
9
|
+
const pending = new Map(); let id = 0
|
|
10
|
+
createInterface({ input: child.stdout }).on('line', line => {
|
|
11
|
+
const message = JSON.parse(line); const waiter = pending.get(message.id)
|
|
12
|
+
if (waiter) { pending.delete(message.id); message.error ? waiter.reject(new Error(message.error.message)) : waiter.resolve(message.result) }
|
|
13
|
+
})
|
|
14
|
+
child.on('exit', () => { for (const waiter of pending.values()) waiter.reject(new Error('Device MCP exited')); pending.clear() })
|
|
15
|
+
t.after(() => child.kill())
|
|
16
|
+
const rpc = (method, params = {}) => new Promise((resolve, reject) => {
|
|
17
|
+
pending.set(++id, { resolve, reject }); child.stdin.write(JSON.stringify({ jsonrpc: '2.0', id, method, params }) + '\n')
|
|
18
|
+
})
|
|
19
|
+
rpc.notify = (method,params) => child.stdin.write(JSON.stringify({jsonrpc:'2.0',method,params})+'\n')
|
|
20
|
+
return rpc
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
test('publishes only the supported capabilities with units and strict schemas', async t => {
|
|
24
|
+
const rpc = connect(t); await rpc('initialize')
|
|
25
|
+
const result = await rpc('tools/list')
|
|
26
|
+
assert.deepEqual(result.tools.map(t => t.name).sort(), ['capture_photo', 'get_status', 'set_speed', 'stop'])
|
|
27
|
+
const speed = result.tools.find(t => t.name === 'set_speed')
|
|
28
|
+
assert.equal(speed.inputSchema.properties.rpm.maximum, 3000)
|
|
29
|
+
assert.match(speed.description, /RPM/)
|
|
30
|
+
})
|
|
31
|
+
|
|
32
|
+
test('acknowledges speed separately from a fresh completed observation', async t => {
|
|
33
|
+
const rpc = connect(t); await rpc('initialize')
|
|
34
|
+
const receipt = await rpc('tools/call', { name: 'set_speed', arguments: { deviceId: 'mock-device', rpm: 100 } })
|
|
35
|
+
assert.equal(receipt.structuredContent.state, 'accepted')
|
|
36
|
+
assert.equal(receipt.structuredContent.actual.rpm, 0)
|
|
37
|
+
const operationId = receipt.structuredContent.operationId
|
|
38
|
+
let status
|
|
39
|
+
const until = Date.now() + 5000
|
|
40
|
+
do {
|
|
41
|
+
await new Promise(resolve => setTimeout(resolve, 100))
|
|
42
|
+
status = await rpc('tools/call', { name: 'get_status', arguments: { deviceId: 'mock-device', operationId } })
|
|
43
|
+
} while (status.structuredContent.state !== 'completed' && Date.now() < until)
|
|
44
|
+
assert.equal(status.structuredContent.state, 'completed')
|
|
45
|
+
assert.equal(status.structuredContent.actual.rpm, 100)
|
|
46
|
+
assert.ok(status.structuredContent.observationSeq > receipt.structuredContent.observationSeq)
|
|
47
|
+
})
|
|
48
|
+
|
|
49
|
+
test('stop supersedes a running command', async t => {
|
|
50
|
+
const rpc = connect(t); await rpc('initialize')
|
|
51
|
+
const call = await rpc('tools/call', { name: 'set_speed', arguments: { deviceId: 'mock-device', rpm: 1000 } })
|
|
52
|
+
const stopped = await rpc('tools/call', { name: 'stop', arguments: { deviceId: 'mock-device' } })
|
|
53
|
+
const old = await rpc('tools/call', { name: 'get_status', arguments: { deviceId: 'mock-device', operationId: call.structuredContent.operationId } })
|
|
54
|
+
assert.equal(old.structuredContent.state, 'failed')
|
|
55
|
+
const current = await rpc('tools/call', { name: 'get_status', arguments: { deviceId: 'mock-device', operationId: stopped.structuredContent.operationId } })
|
|
56
|
+
assert.equal(current.structuredContent.actual.rpm, 0)
|
|
57
|
+
assert.equal(current.structuredContent.state, 'completed')
|
|
58
|
+
})
|
|
59
|
+
|
|
60
|
+
test('rejects invalid commands and returns an image through capture_photo', async t => {
|
|
61
|
+
const rpc = connect(t); await rpc('initialize')
|
|
62
|
+
const bad = await rpc('tools/call', { name: 'set_speed', arguments: { deviceId: 'mock-device', rpm: 'fast' } })
|
|
63
|
+
assert.equal(bad.isError, true)
|
|
64
|
+
const image = await rpc('tools/call', { name: 'capture_photo', arguments: { deviceId: 'mock-device' } })
|
|
65
|
+
assert.equal(image.content.find(c => c.type === 'image').mimeType, 'image/png')
|
|
66
|
+
assert.equal(image.structuredContent.state, 'completed')
|
|
67
|
+
})
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
test('cancel notification stops no physical operation', async t => {
|
|
71
|
+
const rpc=connect(t);await rpc('initialize')
|
|
72
|
+
const receipt=await rpc('tools/call',{name:'set_speed',arguments:{deviceId:'mock-device',rpm:1000}})
|
|
73
|
+
rpc.notify('notifications/cancelled',{requestId:2,reason:'Stopped waiting'})
|
|
74
|
+
await new Promise(resolve=>setTimeout(resolve,2100))
|
|
75
|
+
const status=await rpc('tools/call',{name:'get_status',arguments:{deviceId:'mock-device',operationId:receipt.structuredContent.operationId}})
|
|
76
|
+
assert.equal(status.structuredContent.state,'completed')
|
|
77
|
+
assert.equal(status.structuredContent.actual.rpm,1000)
|
|
78
|
+
})
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Copy this folder into your workspace/.mint-mods/, then enable it from Mods or mint mods enable <id>.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export function register(mint: any) {
|
|
2
|
+
const render = () => {
|
|
3
|
+
const tasks: string[] = mint.state.get('tasks') || [];
|
|
4
|
+
mint.ui.set('side_panel', {type:'stack', children:[
|
|
5
|
+
{type:'text', text:`${tasks.length} tasks`},
|
|
6
|
+
{type:'table', columns:['Task'], rows:tasks.map(task => [task])},
|
|
7
|
+
{type:'input', label:'New task', action:'add'},
|
|
8
|
+
{type:'button', label:'Clear tasks', action:'clear'}
|
|
9
|
+
]});
|
|
10
|
+
};
|
|
11
|
+
mint.commands.register('add', (value: string) => {
|
|
12
|
+
if (value?.trim()) mint.state.set('tasks', [...(mint.state.get('tasks') || []), value.trim()]);
|
|
13
|
+
render();
|
|
14
|
+
}, 'Add a task');
|
|
15
|
+
mint.commands.register('clear', () => {mint.state.set('tasks', []); render();}, 'Clear the checklist');
|
|
16
|
+
render();
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"id":"task-checklist","name":"Task Checklist","version":"1.0.0","sdkVersion":1,"entry":"main.ts","permissions":[]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { TestRegistrar } from '@mint/mods'
|
|
2
|
+
|
|
3
|
+
export function registerTests(test: TestRegistrar) {
|
|
4
|
+
test('adds a trimmed task and redraws the count', async ({ command, state, ui, equal }) => {
|
|
5
|
+
await command('add', ' Review changes ')
|
|
6
|
+
equal(state('tasks'), ['Review changes'])
|
|
7
|
+
equal(ui('side_panel')?.children?.[0].text, '1 tasks')
|
|
8
|
+
})
|
|
9
|
+
test('clear removes tasks from state and the table', async ({ command, state, ui, equal }) => {
|
|
10
|
+
await command('add', 'Review changes')
|
|
11
|
+
await command('clear')
|
|
12
|
+
equal(state('tasks'), [])
|
|
13
|
+
equal(ui('side_panel')?.children?.[1].rows, [])
|
|
14
|
+
})
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Copy this folder into your workspace/.mint-mods/, then enable it from Mods or mint mods enable <id>.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export function register(mint: any) {
|
|
2
|
+
const render = (value: number | null) => mint.ui.set('above_composer', {
|
|
3
|
+
type: 'text', text: value == null ? 'Usage unavailable' : `${value.toLocaleString()} tokens this turn`
|
|
4
|
+
});
|
|
5
|
+
render(null);
|
|
6
|
+
mint.on('turn_start', () => render(null));
|
|
7
|
+
mint.on('usage_update', (event: any) => render(event.totalTokens));
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"id":"token-meter","name":"Token Meter","version":"1.0.0","sdkVersion":1,"entry":"main.ts","permissions":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Copy this folder into your workspace/.mint-mods/, then enable it from Mods or mint mods enable <id>.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export function register(mint: any) {
|
|
2
|
+
mint.ui.set('above_composer', {type:'badge', text:'Tool Guard · recursive deletion blocked'});
|
|
3
|
+
mint.on('pre_tool_use', (event: any) => {
|
|
4
|
+
if (event.action === 'run_shell' && /\brm\s+(-[^\s]*r[^\s]*\s+|--recursive\b)/.test(event.input.command || '')) {
|
|
5
|
+
mint.log(`Blocked call ${event.callId}`);
|
|
6
|
+
return {block:'Recursive deletion requires disabling Tool Guard first.'};
|
|
7
|
+
}
|
|
8
|
+
});
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"id":"tool-guard","name":"Tool Guard","version":"1.0.0","sdkVersion":1,"entry":"main.ts","permissions":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.code-sessions-container{max-width:960px;color:var(--text-main,#ececec);margin:0 auto;padding:32px 24px 64px;font-family:inherit;animation:.2s ease-out codeFadeIn}@keyframes codeFadeIn{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}.code-sessions-header{border-bottom:1px solid var(--border,#ffffff14);flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:24px;padding-bottom:16px;display:flex}.code-header-main{flex-direction:column;gap:4px;display:flex}.code-header-title-row{align-items:center;gap:10px;display:flex}.code-header-title{letter-spacing:-.02em;color:var(--text-main,#fff);align-items:center;gap:8px;margin:0;font-size:1.35rem;font-weight:600;display:flex}.code-header-count{border-radius:var(--radius-xs,6px);background:var(--surface-bg,#ffffff0f);color:var(--text-muted,#8e8e8e);border:1px solid var(--border,#ffffff0f);padding:2px 7px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.76rem;font-weight:500}.code-header-subtitle{color:var(--text-muted,#8e8e8e);margin:0;font-size:.86rem}.code-controls-bar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px;display:flex}.code-search-box{flex:280px;position:relative}.code-search-input{background:var(--panel-soft,#121214);border:1px solid var(--border,#ffffff14);border-radius:var(--radius-sm,8px);width:100%;color:var(--text-main,#ececec);outline:none;padding:8px 12px 8px 34px;font-size:.86rem;transition:border-color .15s}.code-search-input:focus{border-color:var(--border-light,#fff3);background:var(--surface-bg,#1a1a1c)}.code-search-input::placeholder{color:var(--placeholder,#71717a)}.code-search-icon{color:var(--placeholder,#71717a);pointer-events:none;position:absolute;top:50%;left:11px;transform:translateY(-50%)}.code-segmented-toggle{background:var(--panel-soft,#121214);border:1px solid var(--border,#ffffff14);border-radius:var(--radius-sm,8px);gap:2px;padding:3px;display:inline-flex}.code-segmented-btn{border-radius:calc(var(--radius-sm,8px) - 2px);color:var(--text-muted,#8e8e8e);cursor:pointer;white-space:nowrap;background:0 0;border:none;padding:5px 12px;font-size:.8rem;font-weight:500;transition:all .15s}.code-segmented-btn:hover{color:var(--text-main,#ececec)}.code-segmented-btn.active{background:var(--surface-strong,#2c2c2e);color:var(--text-main,#fff);box-shadow:0 1px 3px #0000004d}.code-sort-select{background:var(--panel-soft,#121214);color:var(--text-muted,#8e8e8e);border:1px solid var(--border,#ffffff14);border-radius:var(--radius-sm,8px);cursor:pointer;outline:none;padding:6px 10px;font-size:.8rem}.code-sort-select:hover,.code-sort-select:focus{color:var(--text-main,#ececec);border-color:var(--border-light,#ffffff29)}.code-header-controls{flex-wrap:wrap;flex:100%;align-items:center;gap:8px;min-width:0;display:flex}.code-header-controls .workspace-selector{max-width:100%}.code-header-controls .workspace-select-btn{min-height:36px}.code-show-all-btn{min-height:36px;margin-bottom:16px}.code-show-all-btn:focus-visible{outline:2px solid var(--interactive-fg,#a1a1aa);outline-offset:2px}.code-sessions-list{border:1px solid var(--border,#ffffff14);border-radius:var(--radius-md,12px);background:var(--panel-soft,#121214);flex-direction:column;display:flex;overflow:hidden}.code-session-row{border-bottom:1px solid var(--border,#ffffff0f);cursor:pointer;grid-template-columns:minmax(140px,200px) 1fr auto;align-items:center;gap:16px;padding:13px 18px;text-decoration:none;transition:background .15s;display:grid}.code-session-row:last-child{border-bottom:none}.code-session-row:hover{background:var(--surface-bg,#ffffff09)}.code-session-row.is-active{background:color-mix(in srgb, var(--accent,#10b981) 6%, transparent)}.code-row-meta{flex-direction:column;gap:4px;min-width:0;display:flex}.code-row-meta-top{align-items:center;gap:7px;display:flex}.code-active-badge{text-transform:none;letter-spacing:.04em;color:var(--interactive-fg);background:color-mix(in srgb, var(--accent,#10b981) 12%, transparent);border:1px solid color-mix(in srgb, var(--accent,#10b981) 25%, transparent);border-radius:4px;padding:1px 5px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.65rem;font-weight:600;line-height:1}.code-session-id{color:var(--text-muted,#a1a1aa);letter-spacing:-.01em;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.75rem;font-weight:500}.code-row-meta-sub{color:var(--text-muted,#71717a);white-space:nowrap;text-overflow:ellipsis;align-items:center;gap:6px;font-size:.74rem;display:flex;overflow:hidden}.code-branch-tag{color:#34d399;align-items:center;gap:3px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.72rem;font-weight:500;display:inline-flex}.code-folder-name{color:var(--text-muted,#a1a1aa);text-overflow:ellipsis;overflow:hidden}.code-row-content{flex-direction:column;gap:3px;min-width:0;display:flex}.code-session-title{color:var(--text-main,#fff);white-space:nowrap;text-overflow:ellipsis;margin:0;font-size:.92rem;font-weight:500;overflow:hidden}.code-session-snippet{color:var(--text-muted,#71717a);white-space:nowrap;text-overflow:ellipsis;font-family:inherit;font-size:.78rem;overflow:hidden}.code-row-actions{flex-shrink:0;align-items:center;gap:12px;display:flex}.code-metric-turns{color:var(--text-muted,#71717a);white-space:nowrap;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.75rem}.code-metric-time{color:var(--text-muted,#71717a);white-space:nowrap;text-align:right;min-width:65px;font-size:.76rem}.code-resume-chip{border:1px solid var(--border,#ffffff14);border-radius:var(--radius-xs,6px);color:var(--text-muted,#a1a1aa);cursor:pointer;background:#ffffff0a;align-items:center;gap:5px;padding:3px 8px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.72rem;transition:all .15s;display:inline-flex}.code-resume-chip:hover{border-color:var(--border-light,#ffffff2e);color:var(--text-main,#fff);background:#ffffff14}.code-icon-btn{color:var(--text-muted,#71717a);border-radius:var(--radius-xs,6px);cursor:pointer;background:0 0;border:none;justify-content:center;align-items:center;padding:4px;transition:all .15s;display:inline-flex}.code-icon-btn:hover{color:var(--text-main,#fff);background:#ffffff0f}.code-icon-btn.destructive:hover{color:#f87171;background:#ef44441a}.code-open-arrow{color:var(--text-muted,#52525b);align-items:center;transition:transform .15s,color .15s;display:inline-flex}.code-session-row:hover .code-open-arrow{color:var(--text-main,#fff);transform:translate(2px)}.code-empty-terminal{border:1px solid var(--border,#ffffff14);border-radius:var(--radius-md,12px);background:var(--panel-soft,#121214);max-width:520px;margin:32px auto;overflow:hidden}.code-terminal-header{border-bottom:1px solid var(--border,#ffffff0f);background:#0000004d;align-items:center;gap:6px;padding:10px 14px;display:flex}.code-terminal-dot{background:#ffffff26;border-radius:50%;width:10px;height:10px}.code-terminal-title{color:var(--text-muted,#71717a);margin-left:6px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.74rem}.code-terminal-body{text-align:left;padding:24px}.code-terminal-text{color:var(--text-muted,#a1a1aa);margin-bottom:16px;font-size:.86rem;line-height:1.5}.code-terminal-codeblock{border:1px solid var(--border,#ffffff14);border-radius:var(--radius-sm,8px);color:var(--interactive-fg);background:#00000073;justify-content:space-between;align-items:center;padding:12px 14px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.84rem;display:flex}@media (width<=720px){.code-session-row{grid-template-columns:1fr;gap:10px;padding:14px}.code-row-actions{border-top:1px solid var(--border,#ffffff0a);justify-content:space-between;width:100%;padding-top:6px}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as e,n as t}from"./chunk-CacB07dV.js";import{n,t as r}from"./jsx-runtime-DN4NhQUK.js";import{_t as i,dt as a,pt as o,vt as s}from"./config-CnvCChUM.js";import{a as c,i as l,n as u,r as d,t as f}from"./WorkspaceSelector-B2xIp04D.js";var p=t((()=>{}));function m(e){let t=o(e),n=Math.floor((new Date().getTime()-t.getTime())/1e3);return n<60?`Just now`:n<3600?`${Math.floor(n/60)}m ago`:n<86400?`${Math.floor(n/3600)}h ago`:n<86400*7?`${Math.floor(n/86400)}d ago`:t.toLocaleDateString([],{month:`short`,day:`numeric`})}function h(e){return!e||e<=0?`0 B`:e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}function g(e){if(!e)return`Global`;let t=e.replace(/[/\\]+$/,``).split(/[/\\]/);return t[t.length-1]||e}var _,v,y;t((()=>{s(),_=e(n()),a(),d(),u(),p(),v=r(),y=_.memo(function({chatSessions:e,activeConversationId:t,workspacePath:n,recentWorkspacePaths:r,onSelectSession:a,onDeleteSession:s,onRenameSession:u,onSelectFolder:d,onRefreshSessions:p,onShowToast:y}){let[b,x]=(0,_.useState)(``),[S,C]=(0,_.useState)(`workspace`),[w,T]=(0,_.useState)(`recent`),[E,D]=(0,_.useState)(null),[O,k]=(0,_.useState)(``),[A,j]=(0,_.useState)(()=>l(n));(0,_.useEffect)(()=>{j(l(n))},[n]);let M=A,N=g(M),P=(0,_.useMemo)(()=>c(r||[],A),[r,A]),F=(0,_.useRef)(p);(0,_.useEffect)(()=>{F.current=p},[p]),(0,_.useEffect)(()=>{F.current?.();let e=()=>{F.current?.()};return window.addEventListener(`focus`,e),()=>window.removeEventListener(`focus`,e)},[]);let I=(0,_.useMemo)(()=>e.filter(e=>e.kind===`cli`||e.id.startsWith(`cli`)),[e]),L=I.filter(e=>M&&l(e.workspacePath)===M).length,R=I.length-L,z=S===`workspace`&&!b.trim()&&L===0&&R>0,B=(0,_.useMemo)(()=>I.filter(e=>{if(S===`workspace`&&(!M||l(e.workspacePath)!==M))return!1;if(!b.trim())return!0;let t=b.toLowerCase();return e.title.toLowerCase().includes(t)||e.id.toLowerCase().includes(t)||e.workspacePath&&e.workspacePath.toLowerCase().includes(t)||e.gitBranch&&e.gitBranch.toLowerCase().includes(t)||e.mainLanguage&&e.mainLanguage.toLowerCase().includes(t)}).sort((e,t)=>{if(w===`messages`)return(t.messageCount||0)-(e.messageCount||0);let n=o(e.updatedAt||e.createdAt).getTime(),r=o(t.updatedAt||t.createdAt).getTime();return w===`oldest`?n-r:r-n}),[I,S,M,b,w]),V=(e,t)=>{e.stopPropagation();let n=`mint --resume ${t}`;navigator?.clipboard?.writeText?(navigator.clipboard.writeText(n),y?.(`Copied: ${n}`)):y?.(`Resume command: ${n}`)},H=(e,t)=>{e.stopPropagation(),D(t.id),k(t.title)},U=e=>{if(e&&e.preventDefault(),!E)return;let t=O.trim();t&&(u(E,t),y?.(`Session renamed`)),D(null)},W=(e,t)=>{e.stopPropagation(),s(t.id)};return(0,v.jsxs)(`div`,{className:`code-sessions-container`,children:[(0,v.jsxs)(`div`,{className:`code-sessions-header`,children:[(0,v.jsxs)(`div`,{className:`code-header-main`,children:[(0,v.jsxs)(`div`,{className:`code-header-title-row`,children:[(0,v.jsxs)(`h1`,{className:`code-header-title`,children:[(0,v.jsxs)(`svg`,{width:`18`,height:`18`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2.2`,strokeLinecap:`round`,strokeLinejoin:`round`,style:{color:`var(--interactive-fg)`},children:[(0,v.jsx)(`polyline`,{points:`4 17 10 11 4 5`}),(0,v.jsx)(`line`,{x1:`12`,y1:`19`,x2:`20`,y2:`19`})]}),(0,v.jsx)(`span`,{children:`Code sessions`})]}),(0,v.jsxs)(`span`,{className:`code-header-count`,children:[B.length,` `,B.length===1?`session`:`sessions`]})]}),(0,v.jsx)(`p`,{className:`code-header-subtitle`,children:S===`workspace`?M?(0,v.jsxs)(v.Fragment,{children:[`CLI sessions in `,(0,v.jsx)(`strong`,{title:M,children:N}),`.`]}):`Select a project above to view its CLI sessions.`:`CLI sessions across all repositories.`})]}),(0,v.jsxs)(`div`,{className:`code-header-controls`,children:[(0,v.jsx)(f,{currentPath:M,recentPaths:P,placement:`below`,onSelectWorkspace:async e=>{try{let t=e||await d?.();t&&(j(l(t)),C(`workspace`))}catch(e){y?.(`Could not open folder: ${e instanceof Error?e.message:String(e)}`)}}}),(0,v.jsxs)(`div`,{className:`code-segmented-toggle`,children:[(0,v.jsx)(`button`,{type:`button`,className:`code-segmented-btn ${S===`workspace`?`active`:``}`,onClick:()=>C(`workspace`),title:`Show sessions from the selected project`,children:`Current Project`}),(0,v.jsx)(`button`,{type:`button`,className:`code-segmented-btn ${S===`all`?`active`:``}`,onClick:()=>C(`all`),title:`Show all sessions across all repositories`,children:`All Repositories`})]}),(0,v.jsxs)(i,{fullWidth:!1,"aria-label":`Sort sessions`,className:`code-sort-select`,value:w,onValueChange:e=>T(e),title:`Sort sessions`,children:[(0,v.jsx)(`option`,{value:`recent`,children:`Recently active`}),(0,v.jsx)(`option`,{value:`messages`,children:`Most turns`}),(0,v.jsx)(`option`,{value:`oldest`,children:`Oldest first`})]}),p&&(0,v.jsx)(`button`,{type:`button`,className:`code-icon-btn`,onClick:p,title:`Refresh sessions list`,style:{width:`32px`,height:`32px`},children:(0,v.jsx)(`svg`,{width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,v.jsx)(`path`,{d:`M21.5 2v6h-6M21.34 15.57a10 10 0 1 1-.57-8.38l5.67-5.67`})})})]})]}),(0,v.jsx)(`div`,{className:`code-controls-bar`,children:(0,v.jsxs)(`div`,{className:`code-search-box`,children:[(0,v.jsxs)(`svg`,{className:`code-search-icon`,width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,v.jsx)(`circle`,{cx:`11`,cy:`11`,r:`8`}),(0,v.jsx)(`line`,{x1:`21`,y1:`21`,x2:`16.65`,y2:`16.65`})]}),(0,v.jsx)(`input`,{type:`text`,className:`code-search-input`,placeholder:`Filter sessions by branch, prompt, repository...`,value:b,onChange:e=>x(e.target.value)})]})}),B.length===0?(0,v.jsxs)(`div`,{className:`code-empty-terminal`,children:[(0,v.jsxs)(`div`,{className:`code-terminal-header`,children:[(0,v.jsx)(`span`,{className:`code-terminal-dot`}),(0,v.jsx)(`span`,{className:`code-terminal-dot`}),(0,v.jsx)(`span`,{className:`code-terminal-dot`}),(0,v.jsx)(`span`,{className:`code-terminal-title`,children:`mint-cli ~ interactive sessions`})]}),(0,v.jsxs)(`div`,{className:`code-terminal-body`,children:[(0,v.jsx)(`p`,{className:`code-terminal-text`,children:b.trim()?`No terminal sessions match your query.`:S===`workspace`?M?`No CLI sessions found in ${N}.${R>0?` ${R} CLI ${R===1?`session`:`sessions`} outside this project.`:` Run Mint in this project directory to begin:`}`:`Select a project above, or switch to "All Repositories" to view your CLI sessions.`:`No terminal sessions recorded yet. Launch Mint in any repository to begin:`}),z&&(0,v.jsx)(`button`,{type:`button`,className:`code-segmented-btn active code-show-all-btn`,onClick:()=>{x(``),C(`all`)},children:`Show all sessions`}),(0,v.jsxs)(`div`,{className:`code-terminal-codeblock`,children:[(0,v.jsx)(`span`,{children:`$ mint`}),(0,v.jsx)(`button`,{type:`button`,className:`code-resume-chip`,onClick:()=>{navigator?.clipboard?.writeText(`mint`),y?.(`Copied: mint`)},children:`Copy`})]})]})]}):(0,v.jsx)(`div`,{className:`code-sessions-list`,children:B.map(e=>{let n=e.id===t,r=g(e.workspacePath),i=E===e.id,o=e.id.replace(/^cli::/,``),s=o===`cli`?`cli`:`cli::${o.slice(0,7)}`;return(0,v.jsxs)(`div`,{className:`code-session-row ${n?`is-active`:``}`,onClick:()=>a(e.id),children:[(0,v.jsxs)(`div`,{className:`code-row-meta`,children:[(0,v.jsxs)(`div`,{className:`code-row-meta-top`,children:[(0,v.jsx)(`span`,{className:`code-session-id`,title:e.id,children:s}),n&&(0,v.jsx)(`span`,{className:`code-active-badge`,children:`active`})]}),(0,v.jsxs)(`div`,{className:`code-row-meta-sub`,children:[e.gitBranch&&(0,v.jsxs)(`span`,{className:`code-branch-tag`,title:`Branch: ${e.gitBranch}`,children:[(0,v.jsxs)(`svg`,{width:`11`,height:`11`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2.4`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,v.jsx)(`line`,{x1:`6`,y1:`3`,x2:`6`,y2:`15`}),(0,v.jsx)(`circle`,{cx:`18`,cy:`6`,r:`3`}),(0,v.jsx)(`circle`,{cx:`6`,cy:`18`,r:`3`}),(0,v.jsx)(`path`,{d:`M18 9a9 9 0 0 1-9 9`})]}),(0,v.jsx)(`span`,{children:e.gitBranch})]}),(0,v.jsx)(`span`,{className:`code-folder-name`,title:e.workspacePath||`Global`,children:r}),e.mainLanguage&&(0,v.jsxs)(`span`,{style:{opacity:.6,fontSize:`0.7rem`},children:[`· `,e.mainLanguage]})]})]}),(0,v.jsx)(`div`,{className:`code-row-content`,children:i?(0,v.jsxs)(`div`,{onClick:e=>e.stopPropagation(),style:{display:`flex`,gap:`6px`},children:[(0,v.jsx)(`input`,{type:`text`,autoFocus:!0,value:O,onChange:e=>k(e.target.value),onKeyDown:e=>{e.key===`Enter`&&U(),e.key===`Escape`&&D(null)},style:{flex:1,background:`rgba(0, 0, 0, 0.4)`,border:`1px solid var(--border-light, rgba(255, 255, 255, 0.2))`,borderRadius:`var(--radius-xs, 6px)`,color:`#fff`,padding:`4px 8px`,fontSize:`0.88rem`,outline:`none`}}),(0,v.jsx)(`button`,{type:`button`,onClick:U,style:{background:`var(--surface-strong, #3f3f46)`,color:`#fff`,border:`none`,borderRadius:`var(--radius-xs, 6px)`,padding:`4px 10px`,fontSize:`0.78rem`,cursor:`pointer`},children:`Save`})]}):(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(`div`,{className:`code-session-title`,title:e.title,children:e.title||`Untitled Session`}),(0,v.jsxs)(`div`,{className:`code-session-snippet`,children:[(0,v.jsx)(`span`,{style:{color:`var(--interactive-fg)`,opacity:.8,marginRight:`4px`},children:`>`}),(0,v.jsx)(`span`,{children:e.title||`Interactive shell`})]})]})}),(0,v.jsxs)(`div`,{className:`code-row-actions`,children:[(0,v.jsxs)(`span`,{className:`code-metric-turns`,children:[e.messageCount??0,`t · `,h(e.totalBytes)]}),(0,v.jsx)(`span`,{className:`code-metric-time`,children:m(e.updatedAt||e.createdAt)}),(0,v.jsxs)(`button`,{type:`button`,className:`code-resume-chip`,onClick:t=>V(t,e.id),title:`Copy command: mint --resume ${e.id}`,children:[(0,v.jsx)(`span`,{children:`$`}),(0,v.jsx)(`span`,{children:`resume`})]}),(0,v.jsx)(`button`,{type:`button`,className:`code-icon-btn`,onClick:t=>H(t,e),title:`Rename session`,children:(0,v.jsxs)(`svg`,{width:`13`,height:`13`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,v.jsx)(`path`,{d:`M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7`}),(0,v.jsx)(`path`,{d:`M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z`})]})}),(0,v.jsx)(`button`,{type:`button`,className:`code-icon-btn destructive`,onClick:t=>W(t,e),title:`Delete session`,children:(0,v.jsxs)(`svg`,{width:`13`,height:`13`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,v.jsx)(`polyline`,{points:`3 6 5 6 21 6`}),(0,v.jsx)(`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`})]})}),(0,v.jsx)(`span`,{className:`code-open-arrow`,children:(0,v.jsx)(`svg`,{width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2.2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,v.jsx)(`polyline`,{points:`9 18 15 12 9 6`})})})]})]},e.id)})})]})})}))();export{y as CliSessionsView,y as default};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/core-DsKkQ7ig.js","assets/chunk-CacB07dV.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{i as e,n as t}from"./chunk-CacB07dV.js";import{n,t as r}from"./jsx-runtime-DN4NhQUK.js";import{I as i,L as a,M as o,_ as s,g as c}from"./index-Ca8cCS4h.js";import{_t as l,vt as u}from"./config-CnvCChUM.js";import{a as d,n as f,v as p,y as m}from"./markdown-CMhYIcWB.js";async function h(e,t,n={desktop:i.isTauriRuntime(),startPreview:(e,t,n)=>a.startHtmlPreview(e,t,n),openMintBrowser:async e=>{let{invoke:t}=await c(async()=>{let{invoke:e}=await import(`./core-DsKkQ7ig.js`).then(e=>(e.a(),e.i));return{invoke:e}},__vite__mapDeps([0,1]));await t(`open_mint_browser`,{url:e})}}){if(n.desktop&&e.url){await n.openMintBrowser(e.url);return}let r=(e.workspacePath??t)?.trim();if(!r)throw Error(`Select a project before opening its preview in Mint Browser`);let o=e.path.replace(/\\/g,`/`);if(/^(\/|[a-z]:\/)/i.test(o)){let e=r.replace(/\\/g,`/`).replace(/\/+$/,``),t=`${e}/`;if(!(/^[a-z]:\//i.test(e)||e.startsWith(`//`)?o.toLowerCase().startsWith(t.toLowerCase()):o.startsWith(t)))throw Error(`This file is outside its source project`);o=o.slice(t.length)}let s=await n.startPreview(r,o,!n.desktop);n.desktop&&await n.openMintBrowser(s.url)}var g=t((()=>{o(),s()}));function _(e){let t=e.toLowerCase();return t.endsWith(`.html`)||t.endsWith(`.htm`)?`html`:/\.(png|jpe?g|gif|webp|ico)$/.test(t)?`image`:t.endsWith(`.svg`)?`svg`:t.endsWith(`.md`)||t.endsWith(`.markdown`)?`markdown`:`code`}function v(e){let t=e.split(`.`).pop()?.toLowerCase()||``;return{js:`javascript`,jsx:`javascript`,ts:`typescript`,tsx:`typescript`,html:`html`,htm:`html`,css:`css`,json:`json`,rs:`rust`,py:`python`,svg:`xml`,md:`markdown`}[t]||t||`plaintext`}function y({artifact:e,onClose:t,workspacePath:n}){let[r,a]=(0,b.useState)(`preview`),[o,s]=(0,b.useState)(`desktop`),[c,l]=(0,b.useState)(e?.content||``),[u,f]=(0,b.useState)(!1),[m,g]=(0,b.useState)(null),[y,S]=(0,b.useState)(!1),[C,w]=(0,b.useState)(null),T=(0,b.useRef)(!1),E=(0,b.useRef)(e);E.current=e;let[D,O]=(0,b.useState)(!1),[k,ee]=(0,b.useState)(0),A=(0,b.useRef)(0),j=e?.workspacePath??n,M=e?.path||``,N=(0,b.useMemo)(()=>{if(!M)return``;let e=M.replace(/\\/g,`/`).split(`/`);return e[e.length-1]||M},[M]),P=(0,b.useMemo)(()=>e?.type?e.type:_(M),[e,M]),te=(0,b.useMemo)(()=>v(M),[M]),F=(0,b.useCallback)(async()=>{let t=++A.current;if(g(null),ee(e=>e+1),M){if(P===`image`||e?.url&&r===`preview`){f(!1),P===`image`&&!e?.url&&g(`No image preview URL is available`);return}f(!0);try{let e=await i.readWorkspaceFile(M,j);A.current===t&&l(e)}catch(n){if(A.current!==t)return;e?.content===void 0?g(n instanceof Error?n.message:`Unable to read file content`):l(e.content)}finally{A.current===t&&f(!1)}}},[M,j,e,P,r]);(0,b.useEffect)(()=>{a(`preview`),w(null),l(e?.content??``),g(null)},[e]),(0,b.useEffect)(()=>(e?.content!==void 0&&r===`preview`?(f(!1),g(null)):F(),()=>{A.current+=1}),[e,r,F]);let I=async()=>{if(M)try{await navigator.clipboard.writeText(M),O(!0),setTimeout(()=>O(!1),1800)}catch{}},L=async()=>{if(!(!e||T.current)){T.current=!0,S(!0),w(null);try{await h(e,j)}catch(t){E.current===e&&w(t instanceof Error?t.message:String(t))}finally{T.current=!1,S(!1)}}};return e?(0,x.jsxs)(`aside`,{className:`artifact-preview-panel`,style:{display:`flex`,flexDirection:`column`,width:`var(--preview-width, 50%)`,minWidth:`280px`,maxWidth:`none`,height:`100%`,background:`var(--panel-bg, #1e1e20)`,color:`var(--text-main, #e8e8ea)`,position:`relative`,zIndex:10,overflow:`hidden`},children:[(0,x.jsxs)(`header`,{style:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,padding:`10px 14px`,borderBottom:`1px solid var(--border)`,background:`var(--surface-bg, #252527)`,gap:`8px`,flexShrink:0},children:[(0,x.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`8px`,minWidth:0},children:[(0,x.jsx)(`span`,{style:{display:`inline-flex`,alignItems:`center`,justifyContent:`center`,width:`24px`,height:`24px`,borderRadius:`var(--radius-xs, 4px)`,background:`color-mix(in srgb, var(--accent) 15%, transparent)`,color:`var(--interactive-fg)`,fontSize:`0.68rem`,fontWeight:700,flexShrink:0},children:P.toUpperCase().slice(0,3)}),(0,x.jsxs)(`div`,{style:{minWidth:0,display:`flex`,flexDirection:`column`},children:[(0,x.jsx)(`span`,{style:{fontWeight:600,fontSize:`0.86rem`,color:`var(--text-main)`,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},title:M,children:N}),(0,x.jsx)(`button`,{type:`button`,onClick:I,style:{background:`none`,border:`none`,color:D?`var(--accent)`:`var(--text-muted)`,fontSize:`0.7rem`,padding:0,cursor:`pointer`,textAlign:`left`,display:`inline-flex`,alignItems:`center`,gap:`4px`},children:D?`Path Copied`:`Copy path`})]})]}),(0,x.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`6px`},children:[(0,x.jsxs)(`div`,{style:{display:`inline-flex`,padding:`2px`,background:`color-mix(in srgb, var(--text-main) 6%, transparent)`,borderRadius:`var(--radius-sm, 6px)`,border:`1px solid var(--border)`},children:[(0,x.jsx)(`button`,{type:`button`,onClick:()=>a(`preview`),style:{background:r===`preview`?`var(--accent)`:`transparent`,color:r===`preview`?`#ffffff`:`var(--text-muted)`,border:`none`,borderRadius:`var(--radius-xs, 4px)`,padding:`3px 9px`,fontSize:`0.75rem`,fontWeight:500,cursor:`pointer`,transition:`all 0.15s ease`},children:`Preview`}),P!==`image`&&(0,x.jsx)(`button`,{type:`button`,onClick:()=>a(`code`),style:{background:r===`code`?`var(--accent)`:`transparent`,color:r===`code`?`#ffffff`:`var(--text-muted)`,border:`none`,borderRadius:`var(--radius-xs, 4px)`,padding:`3px 9px`,fontSize:`0.75rem`,fontWeight:500,cursor:`pointer`,transition:`all 0.15s ease`},children:`Code`})]}),r===`preview`&&P===`html`&&(0,x.jsxs)(`div`,{style:{display:`inline-flex`,padding:`2px`,background:`color-mix(in srgb, var(--text-main) 6%, transparent)`,borderRadius:`var(--radius-sm, 6px)`,border:`1px solid var(--border)`},children:[(0,x.jsx)(`button`,{type:`button`,onClick:()=>s(`desktop`),title:`Desktop 100%`,style:{background:o===`desktop`?`color-mix(in srgb, var(--text-main) 12%, transparent)`:`transparent`,color:o===`desktop`?`var(--text-main)`:`var(--text-muted)`,border:`none`,borderRadius:`var(--radius-xs, 4px)`,padding:`3px 7px`,cursor:`pointer`,fontSize:`0.72rem`},children:`Desktop`}),(0,x.jsx)(`button`,{type:`button`,onClick:()=>s(`tablet`),title:`Tablet (768px)`,style:{background:o===`tablet`?`color-mix(in srgb, var(--text-main) 12%, transparent)`:`transparent`,color:o===`tablet`?`var(--text-main)`:`var(--text-muted)`,border:`none`,borderRadius:`var(--radius-xs, 4px)`,padding:`3px 7px`,cursor:`pointer`,fontSize:`0.72rem`},children:`Tablet`}),(0,x.jsx)(`button`,{type:`button`,onClick:()=>s(`mobile`),title:`Mobile (375px)`,style:{background:o===`mobile`?`color-mix(in srgb, var(--text-main) 12%, transparent)`:`transparent`,color:o===`mobile`?`var(--text-main)`:`var(--text-muted)`,border:`none`,borderRadius:`var(--radius-xs, 4px)`,padding:`3px 7px`,cursor:`pointer`,fontSize:`0.72rem`},children:`Mobile`})]})]}),(0,x.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`4px`},children:[(0,x.jsx)(`button`,{type:`button`,onClick:F,disabled:u,title:`Reload content from file`,style:{background:`none`,border:`none`,color:`var(--text-muted)`,padding:`5px`,borderRadius:`var(--radius-xs, 4px)`,cursor:`pointer`,display:`inline-flex`,alignItems:`center`},children:(0,x.jsxs)(`svg`,{width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,style:{animation:u?`spin 1s linear infinite`:`none`},children:[(0,x.jsx)(`polyline`,{points:`23 4 23 10 17 10`}),(0,x.jsx)(`polyline`,{points:`1 20 1 14 7 14`}),(0,x.jsx)(`path`,{d:`M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15`})]})}),(0,x.jsx)(`button`,{type:`button`,onClick:()=>{L()},disabled:y,"aria-label":`Open in Mint Browser (Mint Auto)`,"aria-busy":y,title:y?`Opening Mint Browser…`:`Open in Mint Browser (Mint Auto)`,style:{background:`none`,border:`none`,color:`var(--text-muted)`,padding:`5px`,borderRadius:`var(--radius-xs, 4px)`,cursor:`pointer`,display:`inline-flex`,alignItems:`center`},children:(0,x.jsxs)(`svg`,{width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,x.jsx)(`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`}),(0,x.jsx)(`polyline`,{points:`15 3 21 3 21 9`}),(0,x.jsx)(`line`,{x1:`10`,y1:`14`,x2:`21`,y2:`3`})]})}),(0,x.jsx)(`button`,{type:`button`,onClick:t,title:`Close preview Panel`,style:{background:`none`,border:`none`,color:`var(--text-muted)`,padding:`5px`,borderRadius:`var(--radius-xs, 4px)`,cursor:`pointer`,display:`inline-flex`,alignItems:`center`},children:(0,x.jsxs)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,x.jsx)(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),(0,x.jsx)(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})]})})]})]}),C&&(0,x.jsxs)(`div`,{role:`alert`,style:{padding:`8px 14px`,fontSize:`0.8rem`,color:`var(--status-error, #f87171)`,flexShrink:0},children:[`Could not open Mint Browser: `,C]}),(0,x.jsx)(`div`,{style:{flex:1,overflow:`auto`,display:`flex`,flexDirection:`column`,alignItems:`center`,justifyContent:`flex-start`,background:r===`preview`&&P===`html`?`var(--input-bg, #0a0a0b)`:`transparent`,padding:r===`preview`&&P===`html`?`16px`:`0`},children:m?(0,x.jsxs)(`div`,{style:{padding:`24px`,textAlign:`center`,color:`var(--status-error, #f87171)`},children:[(0,x.jsx)(`p`,{style:{fontWeight:600,marginBottom:`8px`},children:`Error loading preview`}),(0,x.jsx)(`p`,{style:{fontSize:`0.8rem`,opacity:.8},children:m}),(0,x.jsx)(`button`,{type:`button`,onClick:F,style:{marginTop:`12px`,padding:`4px 12px`,borderRadius:`var(--radius-xs, 4px)`,background:`var(--hover-delete-bg, rgba(239, 68, 68, 0.15))`,color:`var(--status-error, #f87171)`,border:`1px solid color-mix(in srgb, var(--status-error, #ef4444) 30%, transparent)`,cursor:`pointer`,fontSize:`0.78rem`},children:`Retry`})]}):r===`code`?(0,x.jsx)(`div`,{style:{width:`100%`,height:`100%`,overflow:`auto`,padding:`12px`},children:(0,x.jsx)(p,{code:c,language:te})}):P===`html`?(0,x.jsx)(`div`,{style:{width:o===`mobile`?`375px`:o===`tablet`?`768px`:`100%`,maxWidth:`100%`,height:`100%`,background:`#ffffff`,borderRadius:o===`desktop`?`0px`:`var(--radius-md, 8px)`,overflow:`hidden`,boxShadow:o===`desktop`?`none`:`var(--shadow-md, 0 10px 25px rgba(0,0,0,0.5))`,border:o===`desktop`?`none`:`1px solid var(--border)`,transition:`width 0.25s cubic-bezier(0.4, 0, 0.2, 1)`},children:(0,x.jsx)(`iframe`,{title:N,src:e.url,srcDoc:e.url?void 0:c,sandbox:e.url?`allow-scripts allow-forms allow-modals allow-same-origin`:`allow-scripts allow-forms allow-modals`,style:{width:`100%`,height:`100%`,border:`none`,background:`#ffffff`}},k)}):P===`image`||P===`svg`&&e.url?(0,x.jsx)(`div`,{style:{width:`100%`,height:`100%`,padding:`24px`,display:`flex`,alignItems:`center`,justifyContent:`center`,overflow:`hidden`},children:(0,x.jsx)(`img`,{src:e.url,alt:N,style:{width:`100%`,height:`100%`,objectFit:`contain`},onError:()=>g(`Unable to load image. Check that the preview server is still running.`)},k)}):P===`svg`?(0,x.jsx)(`div`,{style:{width:`100%`,height:`100%`,display:`flex`,alignItems:`center`,justifyContent:`center`,padding:`24px`,backgroundImage:`linear-gradient(45deg, color-mix(in srgb, var(--text-main) 4%, transparent) 25%, transparent 25%), linear-gradient(-45deg, color-mix(in srgb, var(--text-main) 4%, transparent) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, color-mix(in srgb, var(--text-main) 4%, transparent) 75%), linear-gradient(-45deg, transparent 75%, color-mix(in srgb, var(--text-main) 4%, transparent) 75%)`,backgroundSize:`20px 20px`,backgroundPosition:`0 0, 0 10px, 10px -10px, -10px 0px`,overflow:`auto`},children:(0,x.jsx)(`div`,{style:{maxWidth:`90%`,maxHeight:`90%`,display:`flex`,alignItems:`center`,justifyContent:`center`},dangerouslySetInnerHTML:{__html:c}})}):P===`markdown`?(0,x.jsx)(`div`,{style:{width:`100%`,height:`100%`,overflow:`auto`,padding:`20px 24px`,lineHeight:1.6,color:`var(--text-chat, var(--text-main))`},children:d(c)}):(0,x.jsx)(`div`,{style:{width:`100%`,height:`100%`,overflow:`auto`,padding:`12px`},children:(0,x.jsx)(p,{code:c,language:te})})})]}):null}var b,x,S=t((()=>{b=e(n()),g(),o(),f(),m(),x=r()}));function C(e){window.dispatchEvent(new CustomEvent(D,{detail:e}))}function w(e,t=0,n){let[r,i]=(0,T.useState)([]),[o,s]=(0,T.useState)(!1),c=(0,T.useRef)(e),[l,u]=(0,T.useState)(!1),[d,f]=(0,T.useState)(``),p=(0,T.useRef)(e);p.current=e;let m=(0,T.useRef)(n);return m.current=n,(0,T.useEffect)(()=>{let t=!0,n=0;c.current!==e&&(c.current=e,i([]),f(``),u(!1));let r=async()=>{let r=++n;if(!e.trim()){s(!1);return}s(!0);try{let o=await a.listWorkspaceHistory(e);t&&r===n&&i(o)}catch(e){t&&r===n&&f(e instanceof Error?e.message:String(e))}finally{t&&r===n&&s(!1)}},o=t=>{let n=t.detail;n?.path===e&&(m.current?.(n),r())};return r(),window.addEventListener(`focus`,r),window.addEventListener(D,o),()=>{t=!1,window.removeEventListener(`focus`,r),window.removeEventListener(D,o)}},[e,t]),{entries:r,busy:l,loading:o,error:d,undo:(0,T.useCallback)(async n=>{if(!r.length||E.has(e))return!1;if(n&&r[0].id!==n)return f(`Workspace history changed; review the latest action before undoing`),!1;E.add(e),u(!0),f(``);try{C(await a.undoWorkspaceAction(e,t,n||r[0].id));let o=await a.listWorkspaceHistory(e);return p.current===e&&i(o),!0}catch(t){return p.current===e&&f(t instanceof Error?t.message:String(t)),!1}finally{E.delete(e),p.current===e&&u(!1)}},[r,e,t])}}var T,E,D,O=t((()=>{T=e(n()),o(),E=new Set,D=`mint:workspace-history-changed`}));function k(e){switch(e.kind){case`edit`:return e.backup?`Restore the saved content from before this edit.`:`Move the file created by this edit to Trash.`;case`create`:return`Move this created file or folder to Trash.`;case`trash`:return`Restore this file or folder to its original location.`;case`move`:return`Move ${e.destination||e.path} back to ${e.path}.`;default:return e.label}}function ee({entry:e}){return(0,M.jsxs)(`dl`,{className:`review-history-details`,children:[(0,M.jsx)(`dt`,{children:`File`}),(0,M.jsx)(`dd`,{children:e.path}),(0,M.jsx)(`dt`,{children:`Action`}),(0,M.jsx)(`dd`,{children:e.label.replace(/^Undo /,``)}),e.destination&&(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(`dt`,{children:`Destination`}),(0,M.jsx)(`dd`,{children:e.destination})]}),(0,M.jsx)(`dt`,{children:`Undo will`}),(0,M.jsx)(`dd`,{children:k(e)})]})}function A({entry:e,busy:t,error:n,onCancel:r,onConfirm:i}){let a=(0,j.useRef)(null);return(0,j.useEffect)(()=>{let e=a.current;return e?.showModal(),()=>e?.close()},[]),(0,M.jsxs)(`dialog`,{ref:a,className:`review-undo-dialog`,"aria-labelledby":`review-undo-title`,onCancel:e=>{e.preventDefault(),t||r()},children:[(0,M.jsx)(`h3`,{id:`review-undo-title`,children:`Confirm Undo`}),(0,M.jsx)(ee,{entry:e}),(0,M.jsx)(`p`,{children:`Undo is refused if the file has changed since this action or the destination is occupied.`}),n&&(0,M.jsx)(`p`,{role:`alert`,children:n}),(0,M.jsxs)(`div`,{className:`review-undo-actions`,children:[(0,M.jsx)(`button`,{type:`button`,autoFocus:!0,disabled:t,onClick:r,children:`Cancel`}),(0,M.jsx)(`button`,{type:`button`,disabled:t,onClick:i,children:t?`Undoing…`:`Confirm Undo`})]})]})}var j,M,N=t((()=>{j=e(n()),M=r()}));function P(e){return e instanceof Error?e.message:typeof e==`string`?e:`Git could not complete that action.`}function te({workspacePath:e,disabled:t=!1,onBranchChanged:n}){let[r,i]=(0,F.useState)(null),[o,s]=(0,F.useState)(!1),[c,l]=(0,F.useState)(``),[u,d]=(0,F.useState)(``),[f,p]=(0,F.useState)(``),[m,h]=(0,F.useState)(`branches`),[g,_]=(0,F.useState)(``),[v,y]=(0,F.useState)([]),[b,x]=(0,F.useState)(!1),[S,C]=(0,F.useState)(`up`),[w,T]=(0,F.useState)(`left`),[E,D]=(0,F.useState)(480),O=(0,F.useRef)(null),k=(0,F.useRef)(null),ee=(0,F.useRef)(t),A=(0,F.useCallback)(async()=>{if(!e.trim()){i(null);return}try{i(await a.getGitBranchInfo(e)),d(``)}catch(e){i(null),d(P(e))}},[e]);(0,F.useEffect)(()=>{let t=!1;if(!e.trim()){i(null),s(!1);return}return a.getGitBranchInfo(e).then(e=>{t||(i(e),d(``))}).catch(e=>{t||(i(null),d(P(e)))}),()=>{t=!0}},[e]),(0,F.useEffect)(()=>{if(!o)return;let e=e=>{O.current?.contains(e.target)||s(!1)},t=e=>{e.key===`Escape`&&(s(!1),k.current?.focus())};return document.addEventListener(`mousedown`,e),window.addEventListener(`keydown`,t),()=>{document.removeEventListener(`mousedown`,e),window.removeEventListener(`keydown`,t)}},[o]),(0,F.useEffect)(()=>{let e=()=>A();return window.addEventListener(`focus`,e),()=>window.removeEventListener(`focus`,e)},[A]),(0,F.useEffect)(()=>{t?s(!1):ee.current&&A(),ee.current=t},[t,A]);let j=(0,F.useMemo)(()=>{if(!r)return[];let e=c.trim().toLocaleLowerCase();return[...e?r.branches.filter(t=>t.toLocaleLowerCase().includes(e)):r.branches].sort((e,t)=>e===r.currentBranch?-1:t===r.currentBranch?1:e.localeCompare(t))},[r,c]),M=(0,F.useMemo)(()=>{if(!r)return[];let e=c.trim().toLocaleLowerCase();return r.remoteBranches.filter(t=>{let n=t.split(`/`).slice(1).join(`/`);return r.branches.includes(n)?!1:!e||t.toLocaleLowerCase().includes(e)})},[r,c]);if(!r?.isRepository)return u?(0,I.jsx)(`div`,{className:`git-branch-selector is-error`,children:(0,I.jsx)(`button`,{type:`button`,className:`git-branch-trigger`,onClick:A,title:`${u} Select to retry.`,"aria-label":`Git branch unavailable. Retry`,children:(0,I.jsx)(`span`,{className:`git-branch-name`,children:`Git unavailable`})})}):null;let N=r.currentBranch||(r.detachedHead?`Detached ${r.detachedHead}`:`No branch`),te=e=>{i(e),s(!1),l(``),h(`branches`)},L=async(e,t)=>{let r=await t(!1);if(r.status===`confirmation_required`){if(!window.confirm(`This workspace has uncommitted changes. ${e} Git will stop if the changes conflict.`))return;r=await t(!0)}if(r.status===`confirmation_required`)throw Error(`Workspace confirmation was not accepted.`);te(r.info),n?.()},ne=async t=>{if(t===r.currentBranch||f){s(!1);return}try{d(``),p(t),await L(`Switch from ${N} to ${t}?`,n=>a.switchGitBranch(e,t,n))}catch(e){d(P(e))}finally{p(``)}},R=async t=>{if(!f)try{d(``),p(t),await L(`Check out ${t}?`,n=>a.checkoutRemoteGitBranch(e,t,n))}catch(e){d(P(e))}finally{p(``)}},z=async t=>{t.preventDefault();let n=g.trim();if(!(!n||f))try{d(``),p(n),await L(`Create and switch to ${n}?`,t=>a.createGitBranch(e,n,t)),_(``)}catch(e){d(P(e))}finally{p(``)}},B=async()=>{try{d(``),x(!0),y(await a.getGitGraph(e))}catch(e){y([]),d(P(e))}finally{x(!1)}},V=(e,t=320)=>{let n=k.current?.getBoundingClientRect();if(!n)return;let r=O.current?.closest(`.conversation-panel`)?.getBoundingClientRect(),i=Math.max(16,r?.left??16),a=Math.min(window.innerWidth-16,r?.right??window.innerWidth-16),o=Math.max(0,a-n.left),s=Math.max(0,n.right-i);T(o>=Math.min(t,window.innerWidth-32)||o>=s?`left`:`right`);let c=Math.max(0,n.top-16),l=Math.max(0,window.innerHeight-n.bottom-16),u=c>=e||c>=l?`up`:`down`;C(u),D(Math.max(180,u===`up`?c:l))};return(0,I.jsxs)(`div`,{className:`git-branch-selector`,ref:O,children:[(0,I.jsxs)(`button`,{ref:k,type:`button`,className:`git-branch-trigger`,onClick:()=>{s(e=>(e||V(360),!e)),l(``),d(``),h(`branches`)},disabled:t||!!f,"aria-haspopup":`dialog`,"aria-expanded":o,"aria-controls":`workspace-branch-menu`,title:`${N}${r.isDirty?` — uncommitted changes`:``}`,children:[(0,I.jsxs)(`svg`,{className:`git-branch-icon`,width:`15`,height:`15`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.8`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,I.jsx)(`circle`,{cx:`6`,cy:`5`,r:`2`}),(0,I.jsx)(`circle`,{cx:`18`,cy:`6`,r:`2`}),(0,I.jsx)(`circle`,{cx:`6`,cy:`19`,r:`2`}),(0,I.jsx)(`path`,{d:`M6 7v10M8 7c2 4 8 1 8-1`})]}),(0,I.jsx)(`span`,{className:`git-branch-name`,children:f||N}),r.isDirty&&(0,I.jsx)(`span`,{className:`git-branch-dirty`,"aria-label":`Uncommitted changes`}),(0,I.jsx)(`svg`,{className:`git-branch-chevron`,width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:(0,I.jsx)(`path`,{d:`m6 9 6 6 6-6`})})]}),o&&(0,I.jsxs)(`div`,{className:`git-branch-menu ${m===`graph`?`is-graph`:``} ${S===`down`?`opens-down`:``} ${w===`right`?`align-right`:``}`,id:`workspace-branch-menu`,role:`dialog`,style:{maxHeight:`${E}px`},"aria-label":m===`graph`?`Git graph`:m===`create`?`Create branch`:`Choose branch`,children:[m===`branches`&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)(`label`,{className:`git-branch-search`,children:[(0,I.jsxs)(`svg`,{width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,"aria-hidden":`true`,children:[(0,I.jsx)(`circle`,{cx:`11`,cy:`11`,r:`7`}),(0,I.jsx)(`path`,{d:`m20 20-4-4`})]}),(0,I.jsx)(`input`,{autoFocus:!0,"aria-label":`Search branches`,value:c,onChange:e=>l(e.target.value),placeholder:`Search branches`})]}),(0,I.jsx)(`div`,{className:`git-branch-menu-heading`,children:`Local branches`}),(0,I.jsx)(`div`,{className:`git-branch-list`,role:`listbox`,"aria-label":`Local branches`,children:j.map(e=>{let t=e===r.currentBranch;return(0,I.jsxs)(`button`,{type:`button`,className:`git-branch-option`,role:`option`,"aria-selected":t,disabled:!!f,onClick:()=>ne(e),children:[(0,I.jsx)(`span`,{className:`git-branch-option-icon`,"aria-hidden":`true`,children:`⑂`}),(0,I.jsx)(`span`,{children:e}),t&&(0,I.jsx)(`svg`,{width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:(0,I.jsx)(`path`,{d:`m5 12 4 4L19 6`})})]},e)})}),M.length>0&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(`div`,{className:`git-branch-menu-heading`,children:`Remote branches`}),(0,I.jsx)(`div`,{className:`git-branch-list is-remote`,role:`listbox`,"aria-label":`Remote branches`,children:M.map(e=>(0,I.jsxs)(`button`,{type:`button`,className:`git-branch-option`,role:`option`,"aria-selected":`false`,disabled:!!f,onClick:()=>R(e),title:`Create a local tracking branch from ${e}`,children:[(0,I.jsx)(`span`,{className:`git-branch-option-icon`,"aria-hidden":`true`,children:`⇄`}),(0,I.jsx)(`span`,{children:e}),(0,I.jsx)(`span`,{className:`git-branch-track-label`,children:`Track`})]},e))})]}),j.length===0&&M.length===0&&(0,I.jsx)(`div`,{className:`git-branch-empty`,children:`No matching branches`}),(0,I.jsxs)(`div`,{className:`git-branch-actions`,children:[(0,I.jsxs)(`button`,{type:`button`,onClick:()=>{h(`create`),d(``)},children:[(0,I.jsx)(`span`,{"aria-hidden":`true`,children:`+`}),`Create branch`]}),(0,I.jsxs)(`button`,{type:`button`,onClick:()=>{V(420,window.innerWidth<=1100?320:540),h(`graph`),B()},children:[(0,I.jsx)(`span`,{"aria-hidden":`true`,children:`⑂`}),`Git graph`]})]})]}),m===`create`&&(0,I.jsxs)(`form`,{className:`git-branch-create`,onSubmit:z,children:[(0,I.jsxs)(`div`,{className:`git-branch-view-header`,children:[(0,I.jsx)(`button`,{type:`button`,onClick:()=>{h(`branches`),d(``)},"aria-label":`Back to branches`,children:`←`}),(0,I.jsx)(`strong`,{children:`Create branch`})]}),(0,I.jsx)(`label`,{htmlFor:`new-git-branch-name`,children:`Branch name`}),(0,I.jsx)(`input`,{id:`new-git-branch-name`,autoFocus:!0,value:g,onChange:e=>_(e.target.value),placeholder:`feature/branch-name`,spellCheck:`false`,autoComplete:`off`}),(0,I.jsxs)(`p`,{children:[`Creates the branch from `,(0,I.jsx)(`strong`,{children:N}),` and switches to it.`]}),(0,I.jsx)(`button`,{className:`git-branch-create-submit`,type:`submit`,disabled:!g.trim()||!!f,children:f?`Creating…`:`Create and switch`})]}),m===`graph`&&(0,I.jsxs)(`div`,{className:`git-graph-view`,children:[(0,I.jsxs)(`div`,{className:`git-branch-view-header`,children:[(0,I.jsx)(`button`,{type:`button`,onClick:()=>{h(`branches`),d(``)},"aria-label":`Back to branches`,children:`←`}),(0,I.jsx)(`strong`,{children:`Git graph`}),(0,I.jsx)(`button`,{type:`button`,className:`git-graph-refresh`,onClick:B,disabled:b,children:`Refresh`})]}),b?(0,I.jsx)(`div`,{className:`git-graph-state`,children:`Reading repository history…`}):u?null:v.length>0?(0,I.jsx)(`pre`,{className:`git-graph-output`,tabIndex:0,children:v.join(`
|
|
3
|
+
`)}):(0,I.jsx)(`div`,{className:`git-graph-state`,children:`No commits yet`})]}),u&&(0,I.jsxs)(`div`,{className:`git-branch-error`,role:`alert`,children:[(0,I.jsx)(`span`,{children:u}),m===`graph`&&(0,I.jsx)(`button`,{type:`button`,onClick:B,children:`Retry`})]})]})]})}var F,I,L=t((()=>{F=e(n()),o(),I=r()})),ne,R=t((()=>{ne=`data:image/svg+xml,%3csvg%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='m6.922%203.768-.644-.536A1%201%200%200%200%205.638%203H2a1%201%200%200%200-1%201v8a1%201%200%200%200%201%201h12a1%201%200%200%200%201-1V5a1%201%200%200%200-1-1H7.562a1%201%200%200%201-.64-.232'%20fill='%2390a4ae'%20/%3e%3c/svg%3e`})),z,B=t((()=>{z=`data:image/svg+xml,%3csvg%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M14.483%206H4.721a1%201%200%200%200-.949.684L2%2012V5h12a1%201%200%200%200-1-1H7.562a1%201%200%200%201-.64-.232l-.644-.536A1%201%200%200%200%205.638%203H2a1%201%200%200%200-1%201v8a1%201%200%200%200%201%201h11l2.403-5.606A1%201%200%200%200%2014.483%206'%20fill='%2390a4ae'%20/%3e%3c/svg%3e`})),V,H=t((()=>{V=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%23c0ca33'%20d='m13.844%207.536-1.288-1.072A2%202%200%200%200%2011.276%206H4a2%202%200%200%200-2%202v16a2%202%200%200%200%202%202h24a2%202%200%200%200%202-2V10a2%202%200%200%200-2-2H15.124a2%202%200%200%201-1.28-.464'/%3e%3cpath%20fill='%23f0f4c3'%20d='M12%2020h8v8h-8zm10%200h8v8h-8zM12%2010h8v8h-8zm8.343%204L26%208.343%2031.657%2014%2026%2019.657z'/%3e%3c/svg%3e`})),U,W=t((()=>{U=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%23c0ca33'%20d='M28.967%2012H9.442a2%202%200%200%200-1.898%201.368L4%2024V10h24a2%202%200%200%200-2-2H15.124a2%202%200%200%201-1.28-.464l-1.288-1.072A2%202%200%200%200%2011.276%206H4a2%202%200%200%200-2%202v16a2%202%200%200%200%202%202h22l4.805-11.212A2%202%200%200%200%2028.967%2012'/%3e%3cpath%20fill='%23f0f4c3'%20d='M12%2020h8v8h-8zm10%200h8v8h-8zM12%2010h8v8h-8zm8.343%204L26%208.343%2031.657%2014%2026%2019.657z'/%3e%3c/svg%3e`})),G,re=t((()=>{G=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%23e57373'%20d='m13.844%207.536-1.288-1.072A2%202%200%200%200%2011.276%206H4a2%202%200%200%200-2%202v16a2%202%200%200%200%202%202h24a2%202%200%200%200%202-2V10a2%202%200%200%200-2-2H15.124a2%202%200%200%201-1.28-.464'/%3e%3cpath%20fill='%23ffcdd2'%20d='M30%2014h-4v-2l-2-2h-4l-2%202v2h-4a2%202%200%200%200-2%202v10a2%202%200%200%200%202%202h16a2%202%200%200%200%202-2V16a2%202%200%200%200-2-2m-10%200v-2h4v2Z'/%3e%3c/svg%3e`})),ie,ae=t((()=>{ie=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%23e57373'%20d='M28.967%2012H9.442a2%202%200%200%200-1.898%201.368L4%2024V10h24a2%202%200%200%200-2-2H15.124a2%202%200%200%201-1.28-.464l-1.288-1.072A2%202%200%200%200%2011.276%206H4a2%202%200%200%200-2%202v16a2%202%200%200%200%202%202h22l4.805-11.212A2%202%200%200%200%2028.967%2012'/%3e%3cpath%20fill='%23ffcdd2'%20d='M30%2014h-4v-2l-2-2h-4l-2%202v2h-4a2%202%200%200%200-2%202v10a2%202%200%200%200%202%202h16a2%202%200%200%200%202-2V16a2%202%200%200%200-2-2m-10%200v-2h4v2Z'/%3e%3c/svg%3e`})),oe,se=t((()=>{oe=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%230277bd'%20d='m13.844%207.536-1.288-1.072A2%202%200%200%200%2011.276%206H4a2%202%200%200%200-2%202v16a2%202%200%200%200%202%202h24a2%202%200%200%200%202-2V10a2%202%200%200%200-2-2H15.124a2%202%200%200%201-1.28-.464'/%3e%3cpath%20fill='%23b3e5fc'%20d='M24%2010h-7a1%201%200%200%200-1%201v16a1%201%200%200%200%201%201h12a1%201%200%200%200%201-1V16Zm0%2016h-6v-2h6Zm4-4H18v-2h10Zm-4.828-5.172V12L28%2016.828Z'/%3e%3c/svg%3e`})),ce,le=t((()=>{ce=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%230277bd'%20d='M28.967%2012H9.442a2%202%200%200%200-1.898%201.368L4%2024V10h24a2%202%200%200%200-2-2H15.124a2%202%200%200%201-1.28-.464l-1.288-1.072A2%202%200%200%200%2011.276%206H4a2%202%200%200%200-2%202v16a2%202%200%200%200%202%202h22l4.805-11.212A2%202%200%200%200%2028.967%2012'/%3e%3cpath%20fill='%23b3e5fc'%20d='M24%2010h-7a1%201%200%200%200-1%201v16a1%201%200%200%200%201%201h12a1%201%200%200%200%201-1V16Zm0%2016h-6v-2h6Zm4-4H18v-2h10Zm-4.828-5.172V12L28%2016.828Z'/%3e%3c/svg%3e`})),K,ue=t((()=>{K=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%23ff7043'%20d='m13.844%207.536-1.288-1.072A2%202%200%200%200%2011.276%206H4a2%202%200%200%200-2%202v16a2%202%200%200%200%202%202h24a2%202%200%200%200%202-2V10a2%202%200%200%200-2-2H15.124a2%202%200%200%201-1.28-.464'/%3e%3cpath%20fill='%23ffccbc'%20d='m12.593%2018.589%205.784-5.794%201.692%201.7a1.98%201.98%200%200%200%20.93%202.233v5.544a1.99%201.99%200%200%200-1%201.731%202.002%202.002%200%200%200%204.003%200A1.99%201.99%200%200%200%2023%2022.272v-4.864l2.071%202.092a1.2%201.2%200%200%200-.07.5%202.002%202.002%200%201%200%202.002-2.002%201.2%201.2%200%200%200-.5.07l-2.573-2.571a1.98%201.98%200%200%200-1.15-2.342%202.1%202.1%200%200%200-1.281-.09l-1.702-1.692.791-.78a1.975%201.975%200%200%201%202.822%200l7.996%207.996a1.975%201.975%200%200%201%200%202.822l-7.996%207.996a1.975%201.975%200%200%201-2.822%200l-7.996-7.996a1.975%201.975%200%200%201%200-2.822Z'/%3e%3c/svg%3e`})),de,q=t((()=>{de=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%23ff7043'%20d='M28.967%2012H9.442a2%202%200%200%200-1.898%201.368L4%2024V10h24a2%202%200%200%200-2-2H15.124a2%202%200%200%201-1.28-.464l-1.288-1.072A2%202%200%200%200%2011.276%206H4a2%202%200%200%200-2%202v16a2%202%200%200%200%202%202h22l4.805-11.212A2%202%200%200%200%2028.967%2012'/%3e%3cpath%20fill='%23ffccbc'%20d='m12.593%2018.589%205.784-5.794%201.692%201.7a1.98%201.98%200%200%200%20.93%202.233v5.544a1.99%201.99%200%200%200-1%201.731%202.002%202.002%200%200%200%204.003%200A1.99%201.99%200%200%200%2023%2022.272v-4.864l2.071%202.092a1.2%201.2%200%200%200-.07.5%202.002%202.002%200%201%200%202.002-2.002%201.2%201.2%200%200%200-.5.07l-2.573-2.571a1.98%201.98%200%200%200-1.15-2.342%202.1%202.1%200%200%200-1.281-.09l-1.702-1.692.791-.78a1.975%201.975%200%200%201%202.822%200l7.996%207.996a1.975%201.975%200%200%201%200%202.822l-7.996%207.996a1.975%201.975%200%200%201-2.822%200l-7.996-7.996a1.975%201.975%200%200%201%200-2.822Z'/%3e%3c/svg%3e`})),J,fe=t((()=>{J=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%23546e7a'%20d='m13.844%207.536-1.288-1.072A2%202%200%200%200%2011.276%206H4a2%202%200%200%200-2%202v16a2%202%200%200%200%202%202h24a2%202%200%200%200%202-2V10a2%202%200%200%200-2-2H15.124a2%202%200%200%201-1.28-.464'/%3e%3cpath%20fill='%23eceff1'%20d='M23%2010a9.03%209.03%200%200%200-9%209.063%209.08%209.08%200%200%200%206.157%208.609c.45.072.593-.21.593-.453v-1.532c-2.493.544-3.024-1.214-3.024-1.214a2.42%202.42%200%200%200-.998-1.333c-.82-.561.062-.544.062-.544a1.9%201.9%200%200%201%201.377.933%201.925%201.925%200%200%200%202.62.754%201.96%201.96%200%200%201%20.566-1.215c-1.998-.227-4.094-1.007-4.094-4.459a3.52%203.52%200%200%201%20.927-2.456%203.26%203.26%200%200%201%20.09-2.392s.754-.245%202.474.924a8.6%208.6%200%200%201%204.5%200c1.718-1.169%202.476-.924%202.476-.924a3.26%203.26%200%200%201%20.088%202.392%203.52%203.52%200%200%201%20.927%202.456c0%203.462-2.105%204.223-4.112%204.45a2.17%202.17%200%200%201%20.622%201.676v2.484c0%20.244.143.533.602.453A9.08%209.08%200%200%200%2023%2010'/%3e%3c/svg%3e`})),pe,me=t((()=>{pe=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%23546e7a'%20d='M28.967%2012H9.442a2%202%200%200%200-1.898%201.368L4%2024V10h24a2%202%200%200%200-2-2H15.124a2%202%200%200%201-1.28-.464l-1.288-1.072A2%202%200%200%200%2011.276%206H4a2%202%200%200%200-2%202v16a2%202%200%200%200%202%202h22l4.805-11.212A2%202%200%200%200%2028.967%2012'/%3e%3cpath%20fill='%23eceff1'%20d='M23%2010a9.03%209.03%200%200%200-9%209.063%209.08%209.08%200%200%200%206.157%208.609c.45.072.593-.21.593-.453v-1.532c-2.493.544-3.024-1.214-3.024-1.214a2.42%202.42%200%200%200-.998-1.333c-.82-.561.062-.544.062-.544a1.9%201.9%200%200%201%201.377.933%201.925%201.925%200%200%200%202.62.754%201.96%201.96%200%200%201%20.566-1.215c-1.998-.227-4.094-1.007-4.094-4.459a3.52%203.52%200%200%201%20.927-2.456%203.26%203.26%200%200%201%20.09-2.392s.754-.245%202.474.924a8.6%208.6%200%200%201%204.5%200c1.718-1.169%202.476-.924%202.476-.924a3.26%203.26%200%200%201%20.088%202.392%203.52%203.52%200%200%201%20.927%202.456c0%203.462-2.105%204.223-4.112%204.45a2.17%202.17%200%200%201%20.622%201.676v2.484c0%20.244.143.533.602.453A9.08%209.08%200%200%200%2023%2010'/%3e%3c/svg%3e`})),he,ge=t((()=>{he=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%23009688'%20d='m13.844%207.536-1.288-1.072A2%202%200%200%200%2011.276%206H4a2%202%200%200%200-2%202v16a2%202%200%200%200%202%202h24a2%202%200%200%200%202-2V10a2%202%200%200%200-2-2H15.124a2%202%200%200%201-1.28-.464'/%3e%3cpath%20fill='%23b2dfdb'%20d='M24%2010h-7a1%201%200%200%200-1%201v16a1%201%200%200%200%201%201h12a1%201%200%200%200%201-1V16Zm-4%206a2%202%200%201%201-2%202%202.01%202.01%200%200%201%202-2m8%2010H18l4-4%202%202%204-4Zm-4.828-9.172V12L28%2016.828Z'/%3e%3c/svg%3e`})),_e,ve=t((()=>{_e=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%23009688'%20d='M28.967%2012H9.442a2%202%200%200%200-1.898%201.368L4%2024V10h24a2%202%200%200%200-2-2H15.124a2%202%200%200%201-1.28-.464l-1.288-1.072A2%202%200%200%200%2011.276%206H4a2%202%200%200%200-2%202v16a2%202%200%200%200%202%202h22l4.805-11.212A2%202%200%200%200%2028.967%2012'/%3e%3cpath%20fill='%23b2dfdb'%20d='M24%2010h-7a1%201%200%200%200-1%201v16a1%201%200%200%200%201%201h12a1%201%200%200%200%201-1V16Zm-4%206a2%202%200%201%201-2%202%202.01%202.01%200%200%201%202-2m8%2010H18l4-4%202%202%204-4Zm-4.828-9.172V12L28%2016.828Z'/%3e%3c/svg%3e`})),ye,be=t((()=>{ye=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%23afb42b'%20d='m13.844%207.536-1.288-1.072A2%202%200%200%200%2011.276%206H4a2%202%200%200%200-2%202v16a2%202%200%200%200%202%202h24a2%202%200%200%200%202-2V10a2%202%200%200%200-2-2H15.124a2%202%200%200%201-1.28-.464'/%3e%3cpath%20fill='%23afb42b'%20d='M20%2014h8v2h-8zm0%204h8v2h-8zm0%204h6v2h-6z'/%3e%3cpath%20fill='%23f0f4c3'%20d='M30.337%2014H17.663A1.663%201.663%200%200%200%2016%2015.663v10.674A1.663%201.663%200%200%200%2017.663%2028h12.674A1.663%201.663%200%200%200%2032%2026.337V15.663A1.663%201.663%200%200%200%2030.337%2014M26%2026h-6v-2h6Zm2-4h-8v-2h8Zm0-4h-8v-2h8Z'/%3e%3c/svg%3e`})),xe,Se=t((()=>{xe=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%23afb42b'%20d='M28.967%2012H9.442a2%202%200%200%200-1.898%201.368L4%2024V10h24a2%202%200%200%200-2-2H15.124a2%202%200%200%201-1.28-.464l-1.288-1.072A2%202%200%200%200%2011.276%206H4a2%202%200%200%200-2%202v16a2%202%200%200%200%202%202h22l4.805-11.212A2%202%200%200%200%2028.967%2012'/%3e%3cpath%20fill='%23f0f4c3'%20d='M30.337%2014H17.663A1.663%201.663%200%200%200%2016%2015.663v10.674A1.663%201.663%200%200%200%2017.663%2028h12.674A1.663%201.663%200%200%200%2032%2026.337V15.663A1.663%201.663%200%200%200%2030.337%2014M26%2026h-6v-2h6Zm2-4h-8v-2h8Zm0-4h-8v-2h8Z'/%3e%3c/svg%3e`})),Ce,we=t((()=>{Ce=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%238bc34a'%20d='m13.844%207.536-1.288-1.072A2%202%200%200%200%2011.276%206H4a2%202%200%200%200-2%202v16a2%202%200%200%200%202%202h24a2%202%200%200%200%202-2V10a2%202%200%200%200-2-2H15.124a2%202%200%200%201-1.28-.464'/%3e%3cpath%20fill='%23dcedc8'%20d='m25%2012-7%204.072v7.854L25%2028l7-4.074v-7.854Z'/%3e%3c/svg%3e`})),Te,Ee=t((()=>{Te=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%238bc34a'%20d='M28.967%2012H9.442a2%202%200%200%200-1.898%201.368L4%2024V10h24a2%202%200%200%200-2-2H15.124a2%202%200%200%201-1.28-.464l-1.288-1.072A2%202%200%200%200%2011.276%206H4a2%202%200%200%200-2%202v16a2%202%200%200%200%202%202h22l4.805-11.212A2%202%200%200%200%2028.967%2012'/%3e%3cpath%20fill='%23dcedc8'%20d='m25%2012-7%204.072v7.854L25%2028l7-4.074v-7.854Z'/%3e%3c/svg%3e`})),De,Oe=t((()=>{De=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%23039be5'%20d='m13.844%207.536-1.288-1.072A2%202%200%200%200%2011.276%206H4a2%202%200%200%200-2%202v16a2%202%200%200%200%202%202h24a2%202%200%200%200%202-2V10a2%202%200%200%200-2-2H15.124a2%202%200%200%201-1.28-.464'/%3e%3cpath%20fill='%23b3e5fc'%20d='M22%2010a10%2010%200%201%200%2010%2010%2010%2010%200%200%200-10-10m6.918%206H25.96a15.8%2015.8%200%200%200-1.342-3.54%208.04%208.04%200%200%201%204.3%203.54M22%2012a14.1%2014.1%200%200%201%201.89%204h-3.78A14.1%2014.1%200%200%201%2022%2012m-2.618.46A15.8%2015.8%200%200%200%2018.04%2016h-2.958a8.04%208.04%200%200%201%204.3-3.54M14.263%2022a7.7%207.7%200%200%201%200-4h3.407a15.5%2015.5%200%200%200%200%204Zm.82%202h2.957a15.8%2015.8%200%200%200%201.342%203.54%208.04%208.04%200%200%201-4.3-3.54ZM22%2028a14.1%2014.1%200%200%201-1.89-4h3.78A14.1%2014.1%200%200%201%2022%2028m2.31-6h-4.62a13.4%2013.4%200%200%201%200-4h4.62a13.4%2013.4%200%200%201%200%204m.308%205.54A15.8%2015.8%200%200%200%2025.96%2024h2.958a8.04%208.04%200%200%201-4.3%203.54M29.737%2022H26.33a15.5%2015.5%200%200%200%200-4h3.407a7.7%207.7%200%200%201%200%204'/%3e%3c/svg%3e`})),ke,Ae=t((()=>{ke=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%23039be5'%20d='M28.967%2012H9.442a2%202%200%200%200-1.898%201.368L4%2024V10h24a2%202%200%200%200-2-2H15.124a2%202%200%200%201-1.28-.464l-1.288-1.072A2%202%200%200%200%2011.276%206H4a2%202%200%200%200-2%202v16a2%202%200%200%200%202%202h22l4.805-11.212A2%202%200%200%200%2028.967%2012'/%3e%3cpath%20fill='%23b3e5fc'%20d='M22%2010a10%2010%200%201%200%2010%2010%2010%2010%200%200%200-10-10m6.918%206H25.96a15.8%2015.8%200%200%200-1.342-3.54%208.04%208.04%200%200%201%204.3%203.54M22%2012a14.1%2014.1%200%200%201%201.89%204h-3.78A14.1%2014.1%200%200%201%2022%2012m-2.618.46A15.8%2015.8%200%200%200%2018.04%2016h-2.958a8.04%208.04%200%200%201%204.3-3.54M14.263%2022a7.7%207.7%200%200%201%200-4h3.407a15.5%2015.5%200%200%200%200%204Zm.82%202h2.957a15.8%2015.8%200%200%200%201.342%203.54%208.04%208.04%200%200%201-4.3-3.54ZM22%2028a14.1%2014.1%200%200%201-1.89-4h3.78A14.1%2014.1%200%200%201%2022%2028m2.31-6h-4.62a13.4%2013.4%200%200%201%200-4h4.62a13.4%2013.4%200%200%201%200%204m.308%205.54A15.8%2015.8%200%200%200%2025.96%2024h2.958a8.04%208.04%200%200%201-4.3%203.54M29.737%2022H26.33a15.5%2015.5%200%200%200%200-4h3.407a7.7%207.7%200%200%201%200%204'/%3e%3c/svg%3e`})),Y,je=t((()=>{Y=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%23ff7043'%20d='m13.844%207.536-1.288-1.072A2%202%200%200%200%2011.276%206H4a2%202%200%200%200-2%202v16a2%202%200%200%200%202%202h24a2%202%200%200%200%202-2V10a2%202%200%200%200-2-2H15.124a2%202%200%200%201-1.28-.464'/%3e%3cpath%20fill='%23ffccbc'%20d='M30%2024v1a1%201%200%200%201-2%200v-1a2%202%200%200%200-2-2%203%203%200%200%200%202.996-3.16A3.115%203.114%200%200%200%2025.83%2016H14v2h2v8h-2v2h8v-2h-2v-2h4c.82.819.297%202.308%201.179%203.37a1.89%201.89%200%200%200%201.46.63H32v-4zm-6-4h-4v-2h4a1%201%200%200%201%200%202'/%3e%3c/svg%3e`})),X,Me=t((()=>{X=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%23ff7043'%20d='M28.967%2012H9.442a2%202%200%200%200-1.898%201.368L4%2024V10h24a2%202%200%200%200-2-2H15.124a2%202%200%200%201-1.28-.464l-1.288-1.072A2%202%200%200%200%2011.276%206H4a2%202%200%200%200-2%202v16a2%202%200%200%200%202%202h22l4.805-11.212A2%202%200%200%200%2028.967%2012'/%3e%3cpath%20fill='%23ffccbc'%20d='M30%2024v1a1%201%200%200%201-2%200v-1a2%202%200%200%200-2-2%203%203%200%200%200%202.996-3.16A3.115%203.114%200%200%200%2025.83%2016H14v2h2v8h-2v2h8v-2h-2v-2h4c.82.819.297%202.308%201.179%203.37a1.89%201.89%200%200%200%201.46.63H32v-4zm-6-4h-4v-2h4a1%201%200%200%201%200%202'/%3e%3c/svg%3e`})),Ne,Pe=t((()=>{Ne=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%23546e7a'%20d='m13.844%207.536-1.288-1.072A2%202%200%200%200%2011.276%206H4a2%202%200%200%200-2%202v16a2%202%200%200%200%202%202h24a2%202%200%200%200%202-2V10a2%202%200%200%200-2-2H15.124a2%202%200%200%201-1.28-.464'/%3e%3cpath%20fill='%23cfd8dc'%20d='M28%2012h-6a4%204%200%200%200-4%204v8h2v-8h8v9.893a2.074%202.074%200%200%201-1.664%202.08A2%202%200%200%201%2024%2026h-8a4%204%200%200%200%204%204h6a4%204%200%200%200%204-4V16h2a4%204%200%200%200-4-4'/%3e%3c/svg%3e`})),Fe,Ie=t((()=>{Fe=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%23546e7a'%20d='M28.967%2012H9.442a2%202%200%200%200-1.898%201.368L4%2024V10h24a2%202%200%200%200-2-2H15.124a2%202%200%200%201-1.28-.464l-1.288-1.072A2%202%200%200%200%2011.276%206H4a2%202%200%200%200-2%202v16a2%202%200%200%200%202%202h22l4.805-11.212A2%202%200%200%200%2028.967%2012'/%3e%3cpath%20fill='%23cfd8dc'%20d='M28%2012h-6a4%204%200%200%200-4%204v8h2v-8h8v9.893a2.074%202.074%200%200%201-1.664%202.08A2%202%200%200%201%2024%2026h-8a4%204%200%200%200%204%204h6a4%204%200%200%200%204-4V16h2a4%204%200%200%200-4-4'/%3e%3c/svg%3e`})),Le,Re=t((()=>{Le=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%234caf50'%20d='m13.844%207.536-1.288-1.072A2%202%200%200%200%2011.276%206H4a2%202%200%200%200-2%202v16a2%202%200%200%200%202%202h24a2%202%200%200%200%202-2V10a2%202%200%200%200-2-2H15.124a2%202%200%200%201-1.28-.464'/%3e%3cpath%20fill='%23c8e6c9'%20d='M18.435%2030a1%201%200%200%201-.238-.028%201.137%201.137%200%200%201-.828-1.323l3.093-15.744a1.13%201.13%200%200%201%20.507-.744%201.06%201.06%200%200%201%20.8-.134%201.14%201.14%200%200%201%20.828%201.324l-3.1%2015.744a1.12%201.12%200%200%201-.505.743%201.06%201.06%200%200%201-.557.162m6.2-2h-.077a1.08%201.08%200%200%201-.762-.412%201.164%201.164%200%200%201%20.113-1.548l5.32-4.967-5.297-4.623a1.165%201.165%200%200%201-.162-1.544%201.08%201.08%200%200%201%20.754-.437%201.06%201.06%200%200%201%20.81.258l6.244%205.455a1.156%201.156%200%200%201%20.004%201.723l-6.22%205.808a1.07%201.07%200%200%201-.728.289Zm-9.31%200a1.07%201.07%200%200%201-.728-.292l-6.225-5.811a1.16%201.16%200%200%201-.01-1.692l.02-.018%206.246-5.454a1.03%201.03%200%200%201%20.8-.26%201.08%201.08%200%200%201%20.758.436%201.165%201.165%200%200%201-.16%201.547l-5.293%204.62%205.32%204.964a1.156%201.156%200%200%201%20.112%201.548%201.07%201.07%200%200%201-.762.412Z'/%3e%3c/svg%3e`})),ze,Be=t((()=>{ze=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%234caf50'%20d='M28.967%2012H9.442a2%202%200%200%200-1.898%201.368L4%2024V10h24a2%202%200%200%200-2-2H15.124a2%202%200%200%201-1.28-.464l-1.288-1.072A2%202%200%200%200%2011.276%206H4a2%202%200%200%200-2%202v16a2%202%200%200%200%202%202h22l4.805-11.212A2%202%200%200%200%2028.967%2012'/%3e%3cpath%20fill='%23c8e6c9'%20d='M18.473%2030a1%201%200%200%201-.238-.028%201.137%201.137%200%200%201-.828-1.323L20.5%2012.905a1.13%201.13%200%200%201%20.507-.744%201.06%201.06%200%200%201%20.8-.134%201.14%201.14%200%200%201%20.828%201.324l-3.101%2015.744a1.12%201.12%200%200%201-.504.743%201.06%201.06%200%200%201-.557.162m6.2-2h-.077a1.08%201.08%200%200%201-.762-.412%201.164%201.164%200%200%201%20.113-1.548l5.319-4.967-5.296-4.623a1.165%201.165%200%200%201-.162-1.544%201.08%201.08%200%200%201%20.754-.437%201.06%201.06%200%200%201%20.81.258l6.244%205.455a1.156%201.156%200%200%201%20.003%201.723l-6.218%205.808a1.07%201.07%200%200%201-.729.289Zm-9.31%200a1.07%201.07%200%200%201-.728-.292l-6.226-5.811a1.16%201.16%200%200%201-.01-1.692l.02-.018%206.246-5.454a1.03%201.03%200%200%201%20.8-.26%201.08%201.08%200%200%201%20.76.436%201.165%201.165%200%200%201-.16%201.547l-5.294%204.62%205.32%204.964a1.156%201.156%200%200%201%20.112%201.548%201.07%201.07%200%200%201-.762.412Z'/%3e%3c/svg%3e`})),Ve,He=t((()=>{Ve=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%23455a64'%20d='m13.843%207.536-1.288-1.072A2%202%200%200%200%2011.275%206H3.999a2%202%200%200%200-2%202v16a2%202%200%200%200%202%202h24a2%202%200%200%200%202-2V10a2%202%200%200%200-2-2H15.123a2%202%200%200%201-1.28-.464'/%3e%3cpath%20fill='%23ffca28'%20d='M27.157%2016.551c0%201.319-1.43%202.143-2.573%201.483a1.7%201.7%200%200%201-.355-.271c-.934-.933-.506-2.525.768-2.867a1.716%201.716%200%200%201%202.16%201.655'/%3e%3cpath%20fill='%2326c6da'%20d='M22.556%2019.744c-.947%200-1.715.767-1.715%201.712%200%20.946.768%201.713%201.715%201.713.949%200%201.717-.767%201.717-1.713%200-.945-.768-1.712-1.717-1.712'/%3e%3cpath%20fill='%23ffca28'%20d='M28.996%2022.041a6.6%206.6%200%200%201-2.261.918%204.6%204.6%200%200%200%20.226-2.07%204.593%204.593%200%200%200%20.521-8.455%204.6%204.6%200%200%200-5.775%201.44%207.6%207.6%200%200%200-2.51.731%206.55%206.55%200%200%201%2012.798%202.191%206.54%206.54%200%200%201-2.999%205.245m-9.722-6.245%201.607.195a4.6%204.6%200%200%201%20.203-.911%206.6%206.6%200%200%200-1.81.716'%20clip-rule='evenodd'/%3e%3cpath%20fill='%2326c6da'%20d='M18.995%2015.967a6.6%206.6%200%200%201%202.276-.926%204.6%204.6%200%200%200-.257%202.079%204.6%204.6%200%200%200-2.863%203.005c-.893%202.969%201.352%205.951%204.454%205.916a4.6%204.6%200%200%200%203.687-1.914%207.7%207.7%200%200%200%202.509-.724%206.553%206.553%200%200%201-10.212%203.266c-3.617-2.742-3.41-8.24.406-10.702m9.72%206.245-.03.016z'%20clip-rule='evenodd'/%3e%3c/svg%3e`})),Ue,We=t((()=>{Ue=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%23455a64'%20d='M28.967%2012H9.442a2%202%200%200%200-1.898%201.368L4%2024V10h24a2%202%200%200%200-2-2H15.124c-.468%200-.921-.164-1.28-.464l-1.288-1.072A2%202%200%200%200%2011.276%206H4a2%202%200%200%200-2%202v16a2%202%200%200%200%202%202h22l4.805-11.212A2%202%200%200%200%2028.967%2012'/%3e%3cpath%20fill='%23ffca28'%20d='M27.163%2016.551c0%201.319-1.428%202.143-2.57%201.483a1.6%201.6%200%200%201-.354-.271%201.714%201.714%200%201%201%202.924-1.212'/%3e%3cpath%20fill='%2326c6da'%20d='M22.568%2019.744a1.713%201.713%200%201%200%200%203.426%201.713%201.713%200%200%200%200-3.426'/%3e%3cpath%20fill='%23ffca28'%20d='M29%2022.041a6.6%206.6%200%200%201-2.259.918%204.6%204.6%200%200%200%20.226-2.07%204.596%204.596%200%200%200%20.521-8.455%204.594%204.594%200%200%200-5.768%201.44%207.6%207.6%200%200%200-2.507.731%206.54%206.54%200%200%201%207.351-4.511A6.542%206.542%200%200%201%2029%2022.041m-9.71-6.245%201.605.195a4.7%204.7%200%200%201%20.202-.911%206.5%206.5%200%200%200-1.807.716'%20clip-rule='evenodd'/%3e%3cpath%20fill='%2326c6da'%20d='M19.011%2015.967a6.5%206.5%200%200%201%202.273-.926%204.6%204.6%200%200%200-.257%202.079%204.6%204.6%200%200%200-2.859%203.005c-.892%202.969%201.35%205.951%204.449%205.916a4.6%204.6%200%200%200%203.682-1.914%207.7%207.7%200%200%200%202.506-.724%206.54%206.54%200%200%201-10.2%203.266c-3.612-2.742-3.405-8.24.406-10.702m9.708%206.245-.03.016z'%20clip-rule='evenodd'/%3e%3c/svg%3e`})),Ge,Ke=t((()=>{Ge=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%2300bfa5'%20d='m13.844%207.536-1.288-1.072A2%202%200%200%200%2011.276%206H4a2%202%200%200%200-2%202v16a2%202%200%200%200%202%202h24a2%202%200%200%200%202-2V10a2%202%200%200%200-2-2H15.124a2%202%200%200%201-1.28-.464'/%3e%3cpath%20fill='%23a7ffeb'%20d='M16%2012v2h2v12a4%204%200%200%200%208%200V14h2v-2Zm5%2014a1%201%200%201%201%201-1%201%201%200%200%201-1%201m2-4a1%201%200%201%201%201-1%201%201%200%200%201-1%201m1-4h-4v-4h4Z'/%3e%3c/svg%3e`})),qe,Je=t((()=>{qe=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%2300bfa5'%20d='M28.967%2012H9.442a2%202%200%200%200-1.898%201.368L4%2024V10h24a2%202%200%200%200-2-2H15.124a2%202%200%200%201-1.28-.464l-1.288-1.072A2%202%200%200%200%2011.276%206H4a2%202%200%200%200-2%202v16a2%202%200%200%200%202%202h22l4.805-11.212A2%202%200%200%200%2028.967%2012'/%3e%3cpath%20fill='%23a7ffeb'%20d='M16%2012v2h2v12a4%204%200%200%200%208%200V14h2v-2Zm5%2014a1%201%200%201%201%201-1%201%201%200%200%201-1%201m2-4a1%201%200%201%201%201-1%201%201%200%200%201-1%201m1-4h-4v-4h4Z'/%3e%3c/svg%3e`})),Ye,Xe=t((()=>{Ye=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%23ab47bc'%20d='m13.844%207.536-1.288-1.072A2%202%200%200%200%2011.276%206H4a2%202%200%200%200-2%202v16a2%202%200%200%200%202%202h24a2%202%200%200%200%202-2V10a2%202%200%200%200-2-2H15.124a2%202%200%200%201-1.28-.464'/%3e%3cpath%20fill='%23e1bee7'%20d='M16%2014h16v6H16zm0%208h6v6h-6zm8%200h8v6h-8z'/%3e%3c/svg%3e`})),Ze,Qe=t((()=>{Ze=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%23ab47bc'%20d='M28.967%2012H9.442a2%202%200%200%200-1.898%201.368L4%2024V10h24a2%202%200%200%200-2-2H15.124a2%202%200%200%201-1.28-.464l-1.288-1.072A2%202%200%200%200%2011.276%206H4a2%202%200%200%200-2%202v16a2%202%200%200%200%202%202h22l4.805-11.212A2%202%200%200%200%2028.967%2012'/%3e%3cpath%20fill='%23e1bee7'%20d='M16%2014h16v6H16zm0%208h6v6h-6zm8%200h8v6h-8z'/%3e%3c/svg%3e`})),$e,et=t((()=>{$e=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%237cb342'%20d='m13.844%207.536-1.288-1.072A2%202%200%200%200%2011.276%206H4a2%202%200%200%200-2%202v16a2%202%200%200%200%202%202h24a2%202%200%200%200%202-2V10a2%202%200%200%200-2-2H15.124a2%202%200%200%201-1.28-.464'/%3e%3cpath%20fill='%23dcedc8'%20d='M31%2012H19a1%201%200%200%200-1%201v12a1%201%200%200%200%201%201h12a1%201%200%200%200%201-1V13a1%201%200%200%200-1-1m-1%208h-4v4h-2v-4h-4v-2h4v-4h2v4h4Z'/%3e%3cpath%20fill='%23dcedc8'%20d='M16%2028V16h-2v13a1%201%200%200%200%201%201h13v-2Z'/%3e%3c/svg%3e`})),tt,nt=t((()=>{tt=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%237cb342'%20d='M28.967%2012H9.442a2%202%200%200%200-1.898%201.368L4%2024V10h24a2%202%200%200%200-2-2H15.124a2%202%200%200%201-1.28-.464l-1.288-1.072A2%202%200%200%200%2011.276%206H4a2%202%200%200%200-2%202v16a2%202%200%200%200%202%202h22l4.805-11.212A2%202%200%200%200%2028.967%2012'/%3e%3cpath%20fill='%23dcedc8'%20d='M31%2012H19a1%201%200%200%200-1%201v12a1%201%200%200%200%201%201h12a1%201%200%200%200%201-1V13a1%201%200%200%200-1-1m-1%208h-4v4h-2v-4h-4v-2h4v-4h2v4h4Z'/%3e%3cpath%20fill='%23dcedc8'%20d='M16%2028V16h-2v13a1%201%200%200%200%201%201h13v-2Z'/%3e%3c/svg%3e`})),rt,it=t((()=>{rt=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%237e57c2'%20d='M20%2018h-2v-2h-2v2c0%20.193%200%20.703%201.254%201.033A3.345%203.345%200%200%201%2020%2022h2v2h2v-2c0-.388-.562-.851-1.254-1.034C20.356%2020.34%2020%2018.84%2020%2018m-3.254%202.966C14.356%2020.34%2014%2018.84%2014%2018h-2v-2h-2v8h2v-2h4v2h2v-2c0-.388-.562-.851-1.254-1.034'/%3e%3cpath%20fill='%237e57c2'%20d='M24%204H4v20a4%204%200%200%200%204%204h16.16A3.84%203.84%200%200%200%2028%2024.16V8a4%204%200%200%200-4-4m2%2014h-2v-2h-2v2c0%20.193%200%20.703%201.254%201.033A3.345%203.345%200%200%201%2026%2022v2a2%202%200%200%201-2%202h-2a2%202%200%200%201-2-2%202%202%200%200%201-2%202h-2a2%202%200%200%201-2-2%202%202%200%200%201-2%202h-2a2%202%200%200%201-2-2v-8a2%202%200%200%201%202-2h2a2%202%200%200%201%202%202%202%202%200%200%201%202-2h2a2%202%200%200%201%202%202%202%202%200%200%201%202-2h2a2%202%200%200%201%202%202Z'/%3e%3c/svg%3e`})),at=t((()=>{})),ot,st=t((()=>{ot=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%23e65100'%20d='m4%204%202%2022%2010%202%2010-2%202-22Zm19.72%207H11.28l.29%203h11.86l-.802%209.335L15.99%2025l-6.635-1.646L8.93%2019h3.02l.19%202%203.86.77%203.84-.77.29-4H8.84L8%208h16Z'/%3e%3c/svg%3e`})),ct,lt=t((()=>{ct=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3e%3cpath%20fill='%2326a69a'%20d='M8.5%206h4l-4-4zM3.875%201H9.5l4%204v8.6c0%20.773-.616%201.4-1.375%201.4h-8.25c-.76%200-1.375-.627-1.375-1.4V2.4c0-.777.612-1.4%201.375-1.4M4%2013.6h8V8l-2.625%202.8L8%209.4zm1.25-7.7c-.76%200-1.375.627-1.375%201.4s.616%201.4%201.375%201.4c.76%200%201.375-.627%201.375-1.4S6.009%205.9%205.25%205.9'/%3e%3c/svg%3e`})),ut,dt=t((()=>{ut=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3e%3cpath%20fill='%23ffca28'%20d='M2%202v12h12V2zm6%206h1v4a1.003%201.003%200%200%201-1%201H7a1.003%201.003%200%200%201-1-1v-1h1v1h1zm3%200h2v1h-2v1h1a1.003%201.003%200%200%201%201%201v1a1.003%201.003%200%200%201-1%201h-2v-1h2v-1h-1a1.003%201.003%200%200%201-1-1V9a1.003%201.003%200%200%201%201-1'/%3e%3c/svg%3e`})),ft,pt=t((()=>{ft=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%20-960%20960%20960'%3e%3cpath%20fill='%23f9a825'%20d='M560-160v-80h120q17%200%2028.5-11.5T720-280v-80q0-38%2022-69t58-44v-14q-36-13-58-44t-22-69v-80q0-17-11.5-28.5T680-720H560v-80h120q50%200%2085%2035t35%2085v80q0%2017%2011.5%2028.5T840-560h40v160h-40q-17%200-28.5%2011.5T800-360v80q0%2050-35%2085t-85%2035zm-280%200q-50%200-85-35t-35-85v-80q0-17-11.5-28.5T120-400H80v-160h40q17%200%2028.5-11.5T160-600v-80q0-50%2035-85t85-35h120v80H280q-17%200-28.5%2011.5T240-680v80q0%2038-22%2069t-58%2044v14q36%2013%2058%2044t22%2069v80q0%2017%2011.5%2028.5T280-240h120v80z'/%3e%3c/svg%3e`})),mt,ht=t((()=>{mt=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%23ffd54f'%20d='M25%2012h-3V8a6%206%200%200%200-12%200v4H7a1%201%200%200%200-1%201v16a1%201%200%200%200%201%201h18a1%201%200%200%200%201-1V13a1%201%200%200%200-1-1M14%208a2%202%200%200%201%204%200v4h-4Zm2%2017a4%204%200%201%201%204-4%204%204%200%200%201-4%204'/%3e%3c/svg%3e`})),gt,_t=t((()=>{gt=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='none'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M0%200h24v24H0z'/%3e%3cpath%20fill='%23afb42b'%20d='M19%205v9h-5v5H5V5zm0-2H5c-1.1%200-2%20.9-2%202v14c0%201.1.9%202%202%202h10l6-6V5c0-1.1-.9-2-2-2m-7%2011H7v-2h5zm5-4H7V8h10z'/%3e%3c/svg%3e`})),vt,yt=t((()=>{vt=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%2342a5f5'%20d='m14%2010-4%203.5L6%2010H4v12h4v-6l2%202%202-2v6h4V10zm12%206v-6h-4v6h-4l6%208%206-8z'/%3e%3c/svg%3e`})),bt,xt=t((()=>{bt=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%23e53935'%20d='M4%204v24h24V4Zm20%2020h-4V12h-4v12H8V8h16Z'/%3e%3c/svg%3e`})),St,Ct=t((()=>{St=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%2300bcd4'%20d='M16%2012c7.444%200%2012%202.59%2012%204s-4.556%204-12%204-12-2.59-12-4%204.556-4%2012-4m0-2c-7.732%200-14%202.686-14%206s6.268%206%2014%206%2014-2.686%2014-6-6.268-6-14-6'/%3e%3cpath%20fill='%2300bcd4'%20d='M16%2014a2%202%200%201%200%202%202%202%202%200%200%200-2-2'/%3e%3cpath%20fill='%2300bcd4'%20d='M10.458%205.507c2.017%200%205.937%203.177%209.006%208.493%203.722%206.447%203.757%2011.687%202.536%2012.392a.9.9%200%200%201-.457.1c-2.017%200-5.938-3.176-9.007-8.492C8.814%2011.553%208.779%206.313%2010%205.608a.9.9%200%200%201%20.458-.1m-.001-2A2.87%202.87%200%200%200%209%203.875C6.13%205.532%206.938%2012.304%2010.804%2019c3.284%205.69%207.72%209.493%2010.74%209.493A2.87%202.87%200%200%200%2023%2028.124c2.87-1.656%202.062-8.428-1.804-15.124-3.284-5.69-7.72-9.493-10.74-9.493Z'/%3e%3cpath%20fill='%2300bcd4'%20d='M21.543%205.507a.9.9%200%200%201%20.457.1c1.221.706%201.186%205.946-2.536%2012.393-3.07%205.316-6.99%208.493-9.007%208.493a.9.9%200%200%201-.457-.1C8.779%2025.686%208.814%2020.446%2012.536%2014c3.07-5.316%206.99-8.493%209.007-8.493m0-2c-3.02%200-7.455%203.804-10.74%209.493C6.939%2019.696%206.13%2026.468%209%2028.124a2.87%202.87%200%200%200%201.457.369c3.02%200%207.455-3.804%2010.74-9.493C25.061%2012.304%2025.87%205.532%2023%203.876a2.87%202.87%200%200%200-1.457-.369'/%3e%3c/svg%3e`})),wt,Tt=t((()=>{wt=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%230288d1'%20d='M16%2012c7.444%200%2012%202.59%2012%204s-4.556%204-12%204-12-2.59-12-4%204.556-4%2012-4m0-2c-7.732%200-14%202.686-14%206s6.268%206%2014%206%2014-2.686%2014-6-6.268-6-14-6'/%3e%3cpath%20fill='%230288d1'%20d='M16%2014a2%202%200%201%200%202%202%202%202%200%200%200-2-2'/%3e%3cpath%20fill='%230288d1'%20d='M10.458%205.507c2.017%200%205.937%203.177%209.006%208.493%203.722%206.447%203.757%2011.687%202.536%2012.392a.9.9%200%200%201-.457.1c-2.017%200-5.938-3.176-9.007-8.492C8.814%2011.553%208.779%206.313%2010%205.608a.9.9%200%200%201%20.458-.1m-.001-2A2.87%202.87%200%200%200%209%203.875C6.13%205.532%206.938%2012.304%2010.804%2019c3.284%205.69%207.72%209.493%2010.74%209.493A2.87%202.87%200%200%200%2023%2028.124c2.87-1.656%202.062-8.428-1.804-15.124-3.284-5.69-7.72-9.493-10.74-9.493Z'/%3e%3cpath%20fill='%230288d1'%20d='M21.543%205.507a.9.9%200%200%201%20.457.1c1.221.706%201.186%205.946-2.536%2012.393-3.07%205.316-6.99%208.493-9.007%208.493a.9.9%200%200%201-.457-.1C8.779%2025.686%208.814%2020.446%2012.536%2014c3.07-5.316%206.99-8.493%209.007-8.493m0-2c-3.02%200-7.455%203.804-10.74%209.493C6.939%2019.696%206.13%2026.468%209%2028.124a2.87%202.87%200%200%200%201.457.369c3.02%200%207.455-3.804%2010.74-9.493C25.061%2012.304%2025.87%205.532%2023%203.876a2.87%202.87%200%200%200-1.457-.369'/%3e%3c/svg%3e`})),Et,Dt=t((()=>{Et=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%23ff7043'%20d='m30%2012-4-2V6h-4l-2-4-4%202-4-2-2%204H6v4l-4%202%202%204-2%204%204%202v4h4l2%204%204-2%204%202%202-4h4v-4l4-2-2-4ZM6%2016a9.9%209.9%200%200%201%20.842-4H10v8H6.842A9.9%209.9%200%200%201%206%2016m10%2010a9.98%209.98%200%200%201-7.978-4H16v-2h-2v-2h4c.819.819.297%202.308%201.179%203.37a1.89%201.89%200%200%200%201.46.63h3.34A9.98%209.98%200%200%201%2016%2026m-2-12v-2h4a1%201%200%200%201%200%202Zm11.158%206H24a2.006%202.006%200%200%201-2-2%202%202%200%200%200-2-2%203%203%200%200%200%203-3q0-.08-.004-.161A3.115%203.115%200%200%200%2019.83%2010H8.022a9.986%209.986%200%200%201%2017.136%2010'/%3e%3c/svg%3e`})),Ot,kt=t((()=>{Ot=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='none'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M0%200h24v24H0z'/%3e%3cpath%20fill='%2342a5f5'%20d='M19.43%2012.98c.04-.32.07-.64.07-.98s-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46a.5.5%200%200%200-.61-.22l-2.49%201c-.52-.4-1.08-.73-1.69-.98l-.38-2.65A.49.49%200%200%200%2014%202h-4c-.25%200-.46.18-.49.42l-.38%202.65c-.61.25-1.17.59-1.69.98l-2.49-1a.6.6%200%200%200-.18-.03c-.17%200-.34.09-.43.25l-2%203.46c-.13.22-.07.49.12.64l2.11%201.65c-.04.32-.07.65-.07.98s.03.66.07.98l-2.11%201.65c-.19.15-.24.42-.12.64l2%203.46a.5.5%200%200%200%20.61.22l2.49-1c.52.4%201.08.73%201.69.98l.38%202.65c.03.24.24.42.49.42h4c.25%200%20.46-.18.49-.42l.38-2.65c.61-.25%201.17-.59%201.69-.98l2.49%201q.09.03.18.03c.17%200%20.34-.09.43-.25l2-3.46c.12-.22.07-.49-.12-.64zm-1.98-1.71c.04.31.05.52.05.73s-.02.43-.05.73l-.14%201.13.89.7%201.08.84-.7%201.21-1.27-.51-1.04-.42-.9.68c-.43.32-.84.56-1.25.73l-1.06.43-.16%201.13-.2%201.35h-1.4l-.19-1.35-.16-1.13-1.06-.43c-.43-.18-.83-.41-1.23-.71l-.91-.7-1.06.43-1.27.51-.7-1.21%201.08-.84.89-.7-.14-1.13c-.03-.31-.05-.54-.05-.74s.02-.43.05-.73l.14-1.13-.89-.7-1.08-.84.7-1.21%201.27.51%201.04.42.9-.68c.43-.32.84-.56%201.25-.73l1.06-.43.16-1.13.2-1.35h1.39l.19%201.35.16%201.13%201.06.43c.43.18.83.41%201.23.71l.91.7%201.06-.43%201.27-.51.7%201.21-1.07.85-.89.7zM12%208c-2.21%200-4%201.79-4%204s1.79%204%204%204%204-1.79%204-4-1.79-4-4-4m0%206c-1.1%200-2-.9-2-2s.9-2%202-2%202%20.9%202%202-.9%202-2%202'/%3e%3c/svg%3e`})),At,jt=t((()=>{At=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20256%20256'%3e%3cpath%20fill='%23ffca28'%20d='M165.09%2099.183a20.153%2020.153%200%200%201-34.401%2014.25%2020.152%2020.152%200%201%201%2034.4-14.25z'/%3e%3cpath%20fill='%2326c6da'%20d='M111.04%20136.74c-11.13%200-20.152%209.022-20.152%2020.151%200%2011.13%209.022%2020.152%2020.152%2020.152%2011.129%200%2020.152-9.022%2020.152-20.152%200-11.129-9.023-20.15-20.152-20.15z'/%3e%3cpath%20fill='%23ffca28'%20d='M186.7%20163.76a77%2077%200%200%201-26.564%2010.81%2054.04%2054.04%200%200%200%202.657-24.366%2054.05%2054.05%200%200%200%2033.856-35.246%2054.04%2054.04%200%200%200-27.73-64.21%2054.044%2054.044%200%200%200-67.863%2016.927%2089.8%2089.8%200%200%200-29.495%208.61%2076.94%2076.94%200%200%201%2086.49-53.058%2076.94%2076.94%200%200%201%2063.888%2078.829%2076.94%2076.94%200%200%201-35.24%2061.706zM72.48%2090.298l18.869%202.29a54%2054%200%200%201%202.381-10.717%2077%2077%200%200%200-21.25%208.427'%20clip-rule='evenodd'/%3e%3cpath%20fill='%2326c6da'%20d='M69.182%2092.314a76.9%2076.9%200%200%201%2026.747-10.9%2053.95%2053.95%200%200%200-3.023%2024.457%2054.05%2054.05%200%200%200-33.64%2035.358%2054.04%2054.04%200%200%200%2052.354%2069.6%2054.04%2054.04%200%200%200%2043.298-22.52%2089.8%2089.8%200%200%200%2029.495-8.518%2076.94%2076.94%200%200%201-50.002%2050.423%2076.94%2076.94%200%200%201-69.992-11.992A76.944%2076.944%200%200%201%2069.18%2092.315zm114.22%2073.462-.366.183z'%20clip-rule='evenodd'/%3e%3c/svg%3e`})),Mt,Nt=t((()=>{Mt=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3e%3cpath%20fill='%23cfd8dc'%20d='M4%206V4h8v2H9v7H7V6z'/%3e%3cpath%20fill='%23ef5350'%20d='M4%201v1H2v12h2v1H1V1zm8%200v1h2v12h-2v1h3V1z'/%3e%3c/svg%3e`})),Pt,Ft=t((()=>{Pt=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml:space='preserve'%20viewBox='0%200%2016%2016'%3e%3cpath%20fill='%230288d1'%20d='M2%202v12h12V2zm4%206h3v1H8v4H7V9H6zm5%200h2v1h-2v1h1a1.003%201.003%200%200%201%201%201v1a1.003%201.003%200%200%201-1%201h-2v-1h2v-1h-1a1.003%201.003%200%200%201-1-1V9a1.003%201.003%200%200%201%201-1'/%3e%3c/svg%3e`})),It,Lt=t((()=>{It=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%23a0f'%20d='M29.313%2012h-6.664a1.427%201.427%200%200%201-1.1-2.24l4.398-6.676A.703.703%200%200%200%2025.397%202H8.428a.62.62%200%200%200-.55.289l-5.77%208.627A.703.703%200%200%200%202.658%2012h8.175a1.427%201.427%200%200%201%201.099%202.24l-4.48%206.676A.702.702%200%200%200%208%2022l6.695.002A1.34%201.34%200%200%201%2016%2023.375v5.934a.652.652%200%200%200%201.168.433l12.694-16.586a.725.725%200%200%200-.55-1.156'/%3e%3c/svg%3e`})),Rt,zt=t((()=>{Rt=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23ff5252'%20d='M13%209h5.5L13%203.5zM6%202h8l6%206v12c0%201.1-.9%202-2%202H6c-1.1%200-2-.9-2-2V4c0-1.1.9-2%202-2m12%2016v-2H9v2zm-4-4v-2H6v2z'/%3e%3c/svg%3e`}));function Bt(e){let t=e.lastIndexOf(`.`);return t===-1?``:e.slice(t+1).toLowerCase()}function Vt(e,t){let n=Ut[e]||Ut[e.toLowerCase()];return n?t?n.open:n.closed:t?z:ne}function Ht(e,t){return e.endsWith(`.config.ts`)||e.endsWith(`.config.js`)?Ot:e.endsWith(`.tsx`)?wt:e.endsWith(`.jsx`)?St:Gt[e.toLowerCase()]||Wt[t]||`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='none'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M0%200h24v24H0z'/%3e%3cpath%20fill='%2342a5f5'%20d='M8%2016h8v2H8zm0-4h8v2H8zm6-10H6c-1.1%200-2%20.9-2%202v16c0%201.1.89%202%201.99%202H18c1.1%200%202-.9%202-2V8zm4%2018H6V4h7v5h5z'/%3e%3c/svg%3e`}var Ut,Wt,Gt,Kt=t((()=>{R(),B(),H(),W(),re(),ae(),se(),le(),ue(),q(),fe(),me(),ge(),ve(),be(),Se(),we(),Ee(),Oe(),Ae(),je(),Me(),Pe(),Ie(),Re(),Be(),He(),We(),Ke(),Je(),Xe(),Qe(),et(),nt(),it(),at(),st(),lt(),dt(),pt(),ht(),_t(),yt(),xt(),Ct(),Tt(),Dt(),kt(),jt(),Nt(),Ft(),Lt(),zt(),Ut={".cargo_home":{closed:Y,open:X},".github":{closed:J,open:pe},".git":{closed:K,open:de},".rustup":{closed:Y,open:X},".rustup_copy":{closed:Y,open:X},".rustup_home":{closed:Y,open:X},assets:{closed:he,open:_e},components:{closed:V,open:U},crates:{closed:Y,open:X},css:{closed:Ye,open:Ze},dist:{closed:G,open:ie},docs:{closed:oe,open:ce},logs:{closed:ye,open:xe},node_modules:{closed:Ce,open:Te},out:{closed:G,open:ie},public:{closed:De,open:ke},renderer:{closed:Ye,open:Ze},scripts:{closed:Ne,open:Fe},src:{closed:Le,open:ze},"src-tauri":{closed:Ve,open:Ue},tests:{closed:Ge,open:qe},utils:{closed:$e,open:tt}},Wt={css:rt,html:ot,jpeg:ct,jpg:ct,js:ut,json:ft,lock:mt,log:gt,md:vt,png:ct,rs:Et,svg:ct,toml:Mt,ts:Pt,tsx:wt,yaml:Rt,yml:Rt},Gt={"package-lock.json":bt,"package.json":bt,"tauri.conf.json":At,"vite.config.ts":It,"vite.config.web.ts":It}})),qt=t((()=>{}));function Jt(e){return e?e.replace(/\n$/,``).split(`
|
|
4
|
+
`):[]}function Z(e,t){let n=e.replace(/\\/g,`/`),r=t?.replace(/\\/g,`/`).replace(/\/+$/,``),i=/^(\/|[a-z]:\/)/i.test(n),a=n;if(r&&i){let e=/^[a-z]:\//i.test(r)||r.startsWith(`//`),t=`${r}/`;if(!(e?n.toLowerCase().startsWith(t.toLowerCase()):n.startsWith(t)))return null;a=n.slice(t.length)}else if(!r&&i)return n;let o=[];for(let e of a.split(`/`))if(!(!e||e===`.`))if(e===`..`){if(!o.length)return null;o.pop()}else o.push(e);return o.length?o.join(`/`):null}function Yt(e){let t={};for(let n of e){let e=n.path.split(`/`).filter(Boolean),r=t,i=``;for(let t=0;t<e.length;t++){let a=e[t];i=i?`${i}/${a}`:a;let o=t===e.length-1;r[a]||(r[a]={name:a,path:i,isDir:!o,children:o?void 0:{},change:o?n:void 0}),o||(r=r[a].children)}}function n(e){return Object.values(e).map(e=>e.isDir&&e.children?{...e,children:n(e.children)}:e)}return n(t)}function Xt({changes:e,workspacePath:t,onBack:n,onOpenFiles:r}){let i=(0,Q.useRef)(t);i.current=t;let o=(0,Q.useRef)(0),[s,c]=(0,Q.useState)(`changes`),[u,d]=(0,Q.useState)(0),[f,p]=(0,Q.useState)(``),[m,h]=(0,Q.useState)(null),[g,_]=(0,Q.useState)(``),[v,y]=(0,Q.useState)(new Set),[b,x]=(0,Q.useState)([]),[S,C]=(0,Q.useState)(!1),[T,E]=(0,Q.useState)(null),D=(0,Q.useMemo)(()=>(e||[]).flatMap(e=>{let n=Z(e.path,t);return n?[{...e,path:n}]:[]}),[e,t]),O=D.length>0,[k,j]=(0,Q.useState)(O?`agent`:`workspace`),[M,N]=(0,Q.useState)(``),[P,F]=(0,Q.useState)({}),I=(0,Q.useCallback)(async()=>{if(!t)return;let e=++o.current;d(e=>e+1),C(!0);try{let[n,r]=await Promise.all([a.getWorkspaceGitDiff(t),a.getGitBranchInfo(t).catch(()=>null)]);if(i.current!==t||e!==o.current)return;x((n||[]).flatMap(e=>{let n=Z(e.path,t);return n?[{...e,path:n}]:[]})),r&&E(r)}catch(e){console.error(`Failed to load workspace git diff:`,e)}finally{i.current===t&&e===o.current&&C(!1)}},[t]);(0,Q.useEffect)(()=>{I()},[I]);let L=w(t||``,u,()=>{I()});(0,Q.useEffect)(()=>{h(null),p(``),_(``),y(new Set),x([])},[t]);let ne=async()=>{if(!(!m||m.root!==t)&&await L.undo(m.entry.id)){if(i.current!==m.root)return;y(e=>new Set([...e,Z(m.entry.path,m.root)||``,Z(m.entry.destination||``,m.root)||``])),j(`workspace`),_(`Undone: ${m.entry.label.replace(/^Undo /,``)}`),h(null),I()}},R=(0,Q.useMemo)(()=>k===`agent`&&O?D.filter(e=>!v.has(e.path)):b.length>0?b:O?D.filter(e=>!v.has(e.path)):[],[k,O,D,b,v]),z=(0,Q.useMemo)(()=>{if(!M.trim())return R;let e=M.toLowerCase();return R.filter(t=>t.path.toLowerCase().includes(e))},[R,M]),[B,V]=(0,Q.useState)(z[0]?.path??``);(0,Q.useEffect)(()=>{z.length>0&&!z.some(e=>e.path===B)&&V(z[0].path)},[z,B]);let H=Math.max(0,z.findIndex(e=>e.path===B)),U=z[H]||z[0],W=L.entries.find(e=>e.id===f)||L.entries[0],G=U&&L.entries.find(e=>Z(e.path,t)===U.path||Z(e.destination||``,t)===U.path),re=!!(G&&G.id===L.entries[0]?.id),ie=e=>{t&&h({root:t,entry:e})},ae=R.reduce((e,t)=>e+t.additions,0),oe=R.reduce((e,t)=>e+t.deletions,0),se=(0,Q.useMemo)(()=>Yt(z),[z]),ce=(0,Q.useRef)(null),[le,K]=(0,Q.useState)(250),[ue,de]=(0,Q.useState)(!1),[q,J]=(0,Q.useState)(!1),fe=e=>{if(e.pointerType===`mouse`&&e.button!==0)return;e.preventDefault(),de(!0);let t=e.clientX,n=q?0:le,r=ce.current?.getBoundingClientRect().width??600,i=e=>{let i=n+(t-e.clientX);if(i<70)J(!0);else{J(!1);let e=Math.max(100,r-100);K(Math.round(Math.max(100,Math.min(e,i))))}},a=()=>{de(!1),window.removeEventListener(`pointermove`,i),window.removeEventListener(`pointerup`,a)};window.addEventListener(`pointermove`,i),window.addEventListener(`pointerup`,a,{once:!0})},pe=()=>{q?(J(!1),K(250)):K(le===250?320:250)},me=e=>{e.key===`ArrowLeft`?(J(!1),K(e=>Math.min(500,e+20))):e.key===`ArrowRight`?K(e=>e<=110?(J(!0),100):Math.max(100,e-20)):(e.key===`Enter`||e.key===` `)&&pe()},he=e=>{F(t=>({...t,[e]:!t[e]}))},ge=()=>{H>0&&V(z[H-1].path)},_e=()=>{H<z.length-1&&V(z[H+1].path)},ve=(e,t=0)=>e.map(e=>{if(e.isDir){let n=!!P[e.path],r=Vt(e.name,!n)||(n?`data:image/svg+xml,%3csvg%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='m6.922%203.768-.644-.536A1%201%200%200%200%205.638%203H2a1%201%200%200%200-1%201v8a1%201%200%200%200%201%201h12a1%201%200%200%200%201-1V5a1%201%200%200%200-1-1H7.562a1%201%200%200%201-.64-.232'%20fill='%2390a4ae'%20/%3e%3c/svg%3e`:`data:image/svg+xml,%3csvg%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M14.483%206H4.721a1%201%200%200%200-.949.684L2%2012V5h12a1%201%200%200%200-1-1H7.562a1%201%200%200%201-.64-.232l-.644-.536A1%201%200%200%200%205.638%203H2a1%201%200%200%200-1%201v8a1%201%200%200%200%201%201h11l2.403-5.606A1%201%200%200%200%2014.483%206'%20fill='%2390a4ae'%20/%3e%3c/svg%3e`);return(0,$.jsxs)(`div`,{className:`code-review-tree-folder`,children:[(0,$.jsxs)(`button`,{type:`button`,className:`code-review-tree-folder-btn`,style:{paddingLeft:`${t*14+10}px`},onClick:()=>he(e.path),"aria-expanded":!n,children:[(0,$.jsx)(`span`,{className:`code-review-chevron`,children:n?`›`:`⌄`}),(0,$.jsx)(`span`,{className:`code-review-tree-icon material-icon folder`,"aria-hidden":`true`,children:r&&(0,$.jsx)(`img`,{src:r,alt:``,draggable:!1})}),(0,$.jsx)(`span`,{className:`code-review-folder-name`,children:e.name}),(0,$.jsx)(`span`,{className:`code-review-mod-dot`,title:`Modified in this folder`,"aria-hidden":`true`,children:`•`})]}),!n&&e.children&&(0,$.jsx)(`div`,{className:`code-review-tree-sub`,children:ve(e.children,t+1)})]},e.path)}let n=e.path===B,r=Bt(e.name),i=Ht(e.name,r)||`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='none'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M0%200h24v24H0z'/%3e%3cpath%20fill='%2342a5f5'%20d='M8%2016h8v2H8zm0-4h8v2H8zm6-10H6c-1.1%200-2%20.9-2%202v16c0%201.1.89%202%201.99%202H18c1.1%200%202-.9%202-2V8zm4%2018H6V4h7v5h5z'/%3e%3c/svg%3e`,a=!!e.change?.created;return(0,$.jsxs)(`button`,{type:`button`,className:`code-review-tree-file${n?` is-selected`:``}`,style:{paddingLeft:`${t*14+12}px`},onClick:()=>V(e.path),title:e.path,children:[(0,$.jsx)(`span`,{className:`code-review-tree-icon material-icon file`,"aria-hidden":`true`,children:i&&(0,$.jsx)(`img`,{src:i,alt:``,draggable:!1})}),(0,$.jsx)(`span`,{className:`code-review-tree-file-name`,children:e.name}),(0,$.jsx)(`span`,{className:`code-review-file-status-icon ${a?`is-created`:`is-modified`}`,"aria-hidden":`true`,children:a?`A`:`M`})]},e.path)});return(0,$.jsxs)(`main`,{className:`code-review-page`,children:[(0,$.jsxs)(`header`,{className:`code-review-top-bar`,children:[(0,$.jsxs)(`div`,{className:`code-review-branch-group`,children:[t?(0,$.jsx)(te,{workspacePath:t,onBranchChanged:I}):(0,$.jsx)(`span`,{className:`code-review-branch-static`,children:T?.currentBranch||`Review`}),(0,$.jsxs)(`span`,{className:`code-review-branch-stat-add`,children:[`+`,ae.toLocaleString()]}),(0,$.jsxs)(`span`,{className:`code-review-branch-stat-del`,children:[`-`,oe.toLocaleString()]})]}),(0,$.jsxs)(`div`,{className:`code-review-top-actions`,children:[(0,$.jsx)(`button`,{type:`button`,className:`code-review-icon-btn`,onClick:I,disabled:S,title:`Refresh changes`,"aria-label":`Refresh changes`,children:(0,$.jsx)(`svg`,{className:S?`code-review-spin`:``,width:`15`,height:`15`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,$.jsx)(`path`,{d:`M21.5 2v6h-6M21.34 15.57a10 10 0 1 1-.57-8.38l5.67-5.67`})})}),r&&(0,$.jsx)(`button`,{type:`button`,className:`code-review-icon-btn`,onClick:r,title:`Open workspace files (Ctrl+P)`,"aria-label":`Open workspace files`,children:(0,$.jsxs)(`svg`,{width:`15`,height:`15`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2.2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,$.jsx)(`path`,{d:`M3 6h7l2 2h9v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2Z`}),(0,$.jsx)(`path`,{d:`M3 6v12`})]})}),(0,$.jsx)(`button`,{type:`button`,className:`code-review-icon-btn ${q?``:`is-active`}`,onClick:()=>J(e=>!e),"aria-label":q?`Show file tree`:`Hide file tree`,title:q?`Show file tree`:`Hide file tree`,children:(0,$.jsxs)(`svg`,{width:`15`,height:`15`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.8`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,$.jsx)(`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`}),(0,$.jsx)(`path`,{d:`M15 3v18`})]})}),(0,$.jsx)(`button`,{type:`button`,className:`code-review-close-btn`,onClick:n,"aria-label":`Close review`,title:`Close review`,children:`×`})]})]}),(0,$.jsxs)(`div`,{className:`review-tabs`,role:`tablist`,"aria-label":`Review views`,children:[(0,$.jsx)(`button`,{type:`button`,role:`tab`,id:`review-changes-tab`,"aria-selected":s===`changes`,"aria-controls":`review-changes`,onClick:()=>c(`changes`),children:`Changes`}),(0,$.jsxs)(`button`,{type:`button`,role:`tab`,id:`review-history-tab`,"aria-selected":s===`history`,"aria-controls":`review-history`,onClick:()=>c(`history`),children:[`File history (`,L.entries.length,`)`]})]}),L.error&&(0,$.jsx)(`p`,{className:`review-feedback`,role:`alert`,children:L.error}),g&&(0,$.jsx)(`p`,{className:`review-feedback`,role:`status`,children:g}),s===`history`&&(0,$.jsx)(`section`,{id:`review-history`,role:`tabpanel`,"aria-labelledby":`review-history-tab`,className:`review-history-panel`,children:t?L.loading&&L.entries.length===0?(0,$.jsx)(`p`,{children:`Loading file history…`}):L.entries.length===0?(0,$.jsx)(`p`,{children:`No saved file history in this workspace.`}):(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(`label`,{className:`review-history-picker`,children:[`Saved action`,(0,$.jsx)(l,{"aria-label":`Saved action`,value:W?.id||``,onValueChange:e=>p(e),children:L.entries.map((e,t)=>(0,$.jsxs)(`option`,{value:e.id,children:[t===0?`Latest · `:``,e.label.replace(/^Undo /,``)]},e.id))})]}),W&&(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(ee,{entry:W}),(0,$.jsx)(`button`,{type:`button`,className:`review-undo-button`,disabled:L.busy||W.id!==L.entries[0]?.id,onClick:()=>ie(W),children:`Undo action…`}),W.id!==L.entries[0]?.id&&(0,$.jsx)(`p`,{children:`Undo newer actions first. History is restored in reverse order.`})]})]}):(0,$.jsx)(`p`,{children:`Select a workspace to view file history.`})}),s===`changes`&&(0,$.jsxs)(`div`,{id:`review-changes`,role:`tabpanel`,"aria-labelledby":`review-changes-tab`,className:`review-changes-panel`,children:[(0,$.jsxs)(`div`,{className:`code-review-banner`,children:[(0,$.jsxs)(`div`,{className:`code-review-banner-left`,children:[(0,$.jsxs)(`svg`,{className:`code-review-banner-info-icon`,width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,$.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,$.jsx)(`path`,{d:`M12 16v-4M12 8h.01`})]}),O&&b.length>0?(0,$.jsxs)(`div`,{className:`code-review-scope-group`,children:[(0,$.jsxs)(`button`,{type:`button`,className:`code-review-scope-btn ${k===`workspace`?`is-active`:``}`,onClick:()=>j(`workspace`),children:[`Workspace Git (`,b.length,`)`]}),(0,$.jsxs)(`button`,{type:`button`,className:`code-review-scope-btn ${k===`agent`?`is-active`:``}`,onClick:()=>j(`agent`),children:[`AI Edits (`,D.length,`)`]})]}):(0,$.jsx)(`span`,{children:S?`Scanning workspace Git changes...`:z.length>0?`${z.length} changed file${z.length===1?``:`s`} in workspace`:`Working tree is clean · No uncommitted changes`})]}),z.length>1&&(0,$.jsxs)(`div`,{className:`code-review-pagination`,children:[(0,$.jsx)(`button`,{type:`button`,className:`code-review-page-arrow`,onClick:ge,disabled:H<=0,"aria-label":`Previous file`,title:`Previous file`,children:`‹`}),(0,$.jsx)(`button`,{type:`button`,className:`code-review-page-arrow`,onClick:_e,disabled:H>=z.length-1,"aria-label":`Next file`,title:`Next file`,children:`›`})]})]}),(0,$.jsxs)(`div`,{className:`code-review-split ${ue?`is-resizing`:``}`,ref:ce,children:[(0,$.jsx)(`section`,{className:`code-review-diff-pane`,"aria-label":`Diff viewer`,children:U?(0,$.jsxs)(`article`,{className:`code-review-file-view`,children:[(0,$.jsxs)(`div`,{className:`code-review-file-bar`,children:[(0,$.jsx)(`span`,{className:`code-review-tree-icon material-icon file`,"aria-hidden":`true`,children:(0,$.jsx)(`img`,{src:Ht(U.path.split(`/`).pop()||``,Bt(U.path))||`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='none'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M0%200h24v24H0z'/%3e%3cpath%20fill='%2342a5f5'%20d='M8%2016h8v2H8zm0-4h8v2H8zm6-10H6c-1.1%200-2%20.9-2%202v16c0%201.1.89%202%201.99%202H18c1.1%200%202-.9%202-2V8zm4%2018H6V4h7v5h5z'/%3e%3c/svg%3e`,alt:``,draggable:!1})}),(0,$.jsx)(`span`,{className:`code-review-file-bar-status ${U.created?`is-created`:`is-modified`}`,children:U.created?`A`:`M`}),(0,$.jsx)(`span`,{className:`code-review-file-bar-path`,title:U.path,children:U.path}),(0,$.jsx)(`button`,{type:`button`,className:`review-undo-button`,disabled:!re||L.busy,title:re?G?.label:G?`Undo newer workspace actions first in File history.`:`No saved undo action for this file.`,onClick:()=>G&&ie(G),children:`Undo edit…`}),(0,$.jsxs)(`span`,{className:`code-review-file-bar-stat-add`,children:[`+`,U.additions]}),(0,$.jsxs)(`span`,{className:`code-review-file-bar-stat-del`,children:[`-`,U.deletions]})]}),(0,$.jsx)(`div`,{className:`code-review-code-container`,children:U.hunks&&U.hunks.length>0?U.hunks.map((e,t)=>{let n=Jt(e.oldText),r=Jt(e.newText),i=1;return(0,$.jsxs)(`div`,{className:`code-review-hunk-block`,children:[n.map((e,t)=>(0,$.jsxs)(`div`,{className:`code-review-line is-del`,children:[(0,$.jsx)(`span`,{className:`code-review-gutter`,children:i++}),(0,$.jsx)(`span`,{className:`code-review-sign`,children:`−`}),(0,$.jsx)(`code`,{className:`code-review-code-text`,children:e||` `})]},`del-${t}`)),r.map((e,t)=>(0,$.jsxs)(`div`,{className:`code-review-line is-add`,children:[(0,$.jsx)(`span`,{className:`code-review-gutter`,children:i++}),(0,$.jsx)(`span`,{className:`code-review-sign`,children:`+`}),(0,$.jsx)(`code`,{className:`code-review-code-text`,children:e||` `})]},`add-${t}`))]},`${U.path}-hunk-${t}`)}):(0,$.jsx)(`div`,{className:`code-review-empty-diff`,children:`No diff hunks available for this file.`})})]},U.path):(0,$.jsxs)(`div`,{className:`code-review-clean-state`,children:[(0,$.jsxs)(`svg`,{width:`44`,height:`44`,viewBox:`0 0 24 24`,fill:`none`,stroke:`#22c55e`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,$.jsx)(`path`,{d:`M22 11.08V12a10 10 0 1 1-5.93-9.14`}),(0,$.jsx)(`polyline`,{points:`22 4 12 14.01 9 11.01`})]}),(0,$.jsx)(`h3`,{children:`Working tree is clean`}),(0,$.jsx)(`p`,{children:`No uncommitted changes found in this workspace.`}),(0,$.jsx)(`button`,{type:`button`,className:`code-review-clean-refresh-btn`,onClick:I,children:`↻ Refresh Git status`})]})}),z.length>0&&(0,$.jsxs)(`div`,{className:`code-review-resizer ${ue?`is-dragging`:``} ${q?`is-collapsed`:``}`,onPointerDown:fe,onDoubleClick:pe,onKeyDown:me,role:`separator`,tabIndex:0,"aria-orientation":`vertical`,"aria-valuenow":q?0:le,"aria-label":`Resize panel divider`,title:q?`Drag or double-click to expand file list`:`Drag to resize file list / Double click to reset`,children:[(0,$.jsx)(`div`,{className:`code-review-resizer-line`}),(0,$.jsx)(`div`,{className:`code-review-resizer-handle`})]}),z.length>0&&!q&&(0,$.jsxs)(`aside`,{className:`code-review-tree-pane`,style:{width:`${le}px`},"aria-label":`Changed files tree`,children:[(0,$.jsxs)(`div`,{className:`code-review-search-wrap`,children:[(0,$.jsxs)(`svg`,{className:`code-review-search-icon`,width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,$.jsx)(`circle`,{cx:`11`,cy:`11`,r:`8`}),(0,$.jsx)(`path`,{d:`m21 21-4.3-4.3`})]}),(0,$.jsx)(`input`,{type:`text`,className:`code-review-search-input`,placeholder:`Filter files...`,value:M,onChange:e=>N(e.target.value),spellCheck:!1}),(0,$.jsx)(`button`,{type:`button`,className:`code-review-tree-collapse-btn`,onClick:()=>J(!0),title:`Collapse file list`,"aria-label":`Collapse file list`,children:`›`})]}),(0,$.jsx)(`div`,{className:`code-review-tree-list`,role:`tree`,children:ve(se)})]})]})]}),m&&m.root===t&&(0,$.jsx)(A,{entry:m.entry,busy:L.busy,error:L.error,onCancel:()=>h(null),onConfirm:()=>{ne()}})]})}var Q,$,Zt=t((()=>{u(),Q=e(n()),o(),O(),N(),L(),Kt(),qt(),$=r()}));export{Ht as a,L as c,y as d,_ as f,Kt as i,O as l,Zt as n,Vt as o,S as p,Bt as r,te as s,Xt as t,w as u};
|