fix: dashboard null crash, chat layout, markdown escaping, gzip, gateway banner delay

feat: hosted agent with auto-stop, context compression, visual sliders
feat: auto-reload gateway after config save (debounced 3s)
style: toast solid bg, chat input enlargement, hosted agent panel CSS
chore: fix dev.ps1 encoding, engagement share text
This commit is contained in:
晴天
2026-03-18 15:02:04 +08:00
parent 08031b9dca
commit 7764a32799
11 changed files with 757 additions and 41 deletions

34
dev.ps1
View File

@@ -1,30 +1,12 @@
#!/usr/bin/env pwsh
# ClawPanel 开发服务器启动脚本
#!/usr/bin/env pwsh
[Console]::OutputEncoding = [System.Text.Encoding]::UTF8
Write-Host "🚀 启动 ClawPanel 开发服务器..." -ForegroundColor Cyan
Write-Host '[*] Starting ClawPanel dev server...' -ForegroundColor Cyan
# 检查 Node.js
if (-not (Get-Command node -ErrorAction SilentlyContinue)) {
Write-Host "❌ 未找到 Node.js请先安装" -ForegroundColor Red
exit 1
}
if (-not (Get-Command node -ErrorAction SilentlyContinue)) { Write-Host '[ERR] Node.js not found' -ForegroundColor Red; exit 1 }
if (-not (Get-Command cargo -ErrorAction SilentlyContinue)) { Write-Host '[ERR] Rust not found' -ForegroundColor Red; exit 1 }
if (-not (Test-Path 'node_modules')) { Write-Host '[*] Installing deps...' -ForegroundColor Yellow; npm install }
if (-not (Test-Path 'src-tauri\target')) { Write-Host '[*] First Rust build (may take minutes)...' -ForegroundColor Yellow }
# 检查 Rust
if (-not (Get-Command cargo -ErrorAction SilentlyContinue)) {
Write-Host "❌ 未找到 Rust请先安装" -ForegroundColor Red
exit 1
}
# 检查依赖
if (-not (Test-Path "node_modules")) {
Write-Host "📦 安装前端依赖..." -ForegroundColor Yellow
npm install
}
if (-not (Test-Path "src-tauri/target")) {
Write-Host "🦀 首次编译 Rust可能需要几分钟..." -ForegroundColor Yellow
}
# 启动开发服务器
Write-Host "✨ 启动中..." -ForegroundColor Green
Write-Host '[*] Launching...' -ForegroundColor Green
npm run tauri dev