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:
Vivek R
2025-07-05 16:46:20 +05:30
parent 19be82047b
commit 8899defb97
4 changed files with 17 additions and 1 deletions

1
.gitignore vendored
View File

@@ -11,6 +11,7 @@ node_modules
dist
dist-ssr
*.local
*.bun-build
# Tauri binaries (built executables)
src-tauri/binaries/

View File

@@ -4,6 +4,7 @@
"version": "0.1.0",
"type": "module",
"scripts": {
"predev": "bun run build:executables:current",
"dev": "vite",
"build": "tsc && vite build",
"prebuild": "bun run build:executables:current",

View File

@@ -88,6 +88,7 @@ fn main() {
Ok(())
})
.invoke_handler(tauri::generate_handler![
// Claude & Project Management
list_projects,
get_project_sessions,
get_claude_settings,
@@ -108,6 +109,9 @@ fn main() {
get_claude_session_output,
list_directory_contents,
search_files,
get_recently_modified_files,
// Checkpoint Management
create_checkpoint,
restore_checkpoint,
list_checkpoints,
@@ -122,7 +126,8 @@ fn main() {
get_checkpoint_settings,
clear_checkpoint_manager,
get_checkpoint_state_stats,
get_recently_modified_files,
// Agent Management
list_agents,
create_agent,
update_agent,
@@ -151,10 +156,14 @@ fn main() {
fetch_github_agents,
fetch_github_agent_content,
import_agent_from_github,
// Usage & Analytics
get_usage_stats,
get_usage_by_date_range,
get_usage_details,
get_session_stats,
// MCP (Model Context Protocol)
mcp_add,
mcp_list,
mcp_get,
@@ -167,6 +176,8 @@ fn main() {
mcp_get_server_status,
mcp_read_project_config,
mcp_save_project_config,
// Storage Management
storage_list_tables,
storage_read_table,
storage_update_row,

View File

@@ -57,6 +57,9 @@
"icons/128x128@2x.png",
"icons/icon.icns",
"icons/icon.png"
],
"externalBin": [
"binaries/claude-code"
]
}
}