mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-07-16 13:03:31 +08:00
- Add Tauri sidecar architecture: Rust shell spawns claude-server binary, dynamic port allocation, health-check wait loop, graceful shutdown - Fix CORS middleware to accept `tauri://localhost` and `https://tauri.localhost` origins from Tauri WebView, and add CORS headers to /health endpoint - Enable native macOS window decorations (traffic lights) with Overlay title bar, add data-tauri-drag-region on sidebar for window dragging - Conditionally apply desktop-only padding (44px for traffic lights) vs web (12px) - Generate brand identity: light-background app icon, horizontal logo, full icon set (icns/ico/png) for Tauri bundle - Add brand mark + GitHub link in sidebar, replace mascot SVG with app icon in EmptySession page - Update README (zh/en) and docs hero image with new branding - Add sidecar build scripts and launcher entry points - Gitignore Rust target/, Tauri gen/, and brand-assets candidates Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
35 lines
798 B
JSON
35 lines
798 B
JSON
{
|
|
"$schema": "https://raw.githubusercontent.com/nicegui/nicegui/main/nicegui/static/tauri-capabilities-schema-v2.json",
|
|
"identifier": "default",
|
|
"description": "Default capabilities for Claude Code Desktop",
|
|
"windows": ["main"],
|
|
"permissions": [
|
|
"core:default",
|
|
"shell:allow-open",
|
|
{
|
|
"identifier": "shell:allow-execute",
|
|
"allow": [
|
|
{
|
|
"args": true,
|
|
"name": "binaries/claude-server",
|
|
"sidecar": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"identifier": "shell:allow-spawn",
|
|
"allow": [
|
|
{
|
|
"args": true,
|
|
"name": "binaries/claude-server",
|
|
"sidecar": true
|
|
}
|
|
]
|
|
},
|
|
"dialog:allow-open",
|
|
"dialog:allow-save",
|
|
"process:allow-exit",
|
|
"process:allow-restart"
|
|
]
|
|
}
|