feat: integrate Claude binary and improve build workflow
- Add predev script to build executables before starting dev server - Configure Tauri to include claude-code as external binary - Reorganize Tauri command handlers with clear section comments for better maintainability - Add bun build temporary files to .gitignore These changes enable proper Claude binary integration and ensure executables are built before development. Fixes #136
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -11,6 +11,7 @@ node_modules
|
|||||||
dist
|
dist
|
||||||
dist-ssr
|
dist-ssr
|
||||||
*.local
|
*.local
|
||||||
|
*.bun-build
|
||||||
|
|
||||||
# Tauri binaries (built executables)
|
# Tauri binaries (built executables)
|
||||||
src-tauri/binaries/
|
src-tauri/binaries/
|
||||||
|
@@ -4,6 +4,7 @@
|
|||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"predev": "bun run build:executables:current",
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"build": "tsc && vite build",
|
"build": "tsc && vite build",
|
||||||
"prebuild": "bun run build:executables:current",
|
"prebuild": "bun run build:executables:current",
|
||||||
|
@@ -88,6 +88,7 @@ fn main() {
|
|||||||
Ok(())
|
Ok(())
|
||||||
})
|
})
|
||||||
.invoke_handler(tauri::generate_handler![
|
.invoke_handler(tauri::generate_handler![
|
||||||
|
// Claude & Project Management
|
||||||
list_projects,
|
list_projects,
|
||||||
get_project_sessions,
|
get_project_sessions,
|
||||||
get_claude_settings,
|
get_claude_settings,
|
||||||
@@ -108,6 +109,9 @@ fn main() {
|
|||||||
get_claude_session_output,
|
get_claude_session_output,
|
||||||
list_directory_contents,
|
list_directory_contents,
|
||||||
search_files,
|
search_files,
|
||||||
|
get_recently_modified_files,
|
||||||
|
|
||||||
|
// Checkpoint Management
|
||||||
create_checkpoint,
|
create_checkpoint,
|
||||||
restore_checkpoint,
|
restore_checkpoint,
|
||||||
list_checkpoints,
|
list_checkpoints,
|
||||||
@@ -122,7 +126,8 @@ fn main() {
|
|||||||
get_checkpoint_settings,
|
get_checkpoint_settings,
|
||||||
clear_checkpoint_manager,
|
clear_checkpoint_manager,
|
||||||
get_checkpoint_state_stats,
|
get_checkpoint_state_stats,
|
||||||
get_recently_modified_files,
|
|
||||||
|
// Agent Management
|
||||||
list_agents,
|
list_agents,
|
||||||
create_agent,
|
create_agent,
|
||||||
update_agent,
|
update_agent,
|
||||||
@@ -151,10 +156,14 @@ fn main() {
|
|||||||
fetch_github_agents,
|
fetch_github_agents,
|
||||||
fetch_github_agent_content,
|
fetch_github_agent_content,
|
||||||
import_agent_from_github,
|
import_agent_from_github,
|
||||||
|
|
||||||
|
// Usage & Analytics
|
||||||
get_usage_stats,
|
get_usage_stats,
|
||||||
get_usage_by_date_range,
|
get_usage_by_date_range,
|
||||||
get_usage_details,
|
get_usage_details,
|
||||||
get_session_stats,
|
get_session_stats,
|
||||||
|
|
||||||
|
// MCP (Model Context Protocol)
|
||||||
mcp_add,
|
mcp_add,
|
||||||
mcp_list,
|
mcp_list,
|
||||||
mcp_get,
|
mcp_get,
|
||||||
@@ -167,6 +176,8 @@ fn main() {
|
|||||||
mcp_get_server_status,
|
mcp_get_server_status,
|
||||||
mcp_read_project_config,
|
mcp_read_project_config,
|
||||||
mcp_save_project_config,
|
mcp_save_project_config,
|
||||||
|
|
||||||
|
// Storage Management
|
||||||
storage_list_tables,
|
storage_list_tables,
|
||||||
storage_read_table,
|
storage_read_table,
|
||||||
storage_update_row,
|
storage_update_row,
|
||||||
|
@@ -57,6 +57,9 @@
|
|||||||
"icons/128x128@2x.png",
|
"icons/128x128@2x.png",
|
||||||
"icons/icon.icns",
|
"icons/icon.icns",
|
||||||
"icons/icon.png"
|
"icons/icon.png"
|
||||||
|
],
|
||||||
|
"externalBin": [
|
||||||
|
"binaries/claude-code"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user