Skip to content

refactor: restructure into core/desktop/cli workspace#3

Open
sujithatzackriya wants to merge 4 commits intomainfrom
refactor/workspace-restructure
Open

refactor: restructure into core/desktop/cli workspace#3
sujithatzackriya wants to merge 4 commits intomainfrom
refactor/workspace-restructure

Conversation

@sujithatzackriya
Copy link
Copy Markdown
Contributor

Summary

  • Extracts shared logic into core/ crate (notification manager, types, HTTP server, waiters, webhook, notifier trait)
  • Moves Tauri desktop app from root src-tauri/ into desktop/ workspace member, frontend from src/ to desktop/frontend/
  • Adds CLI auto-launch daemon — tries macOS app bundle first, falls back to headless server
  • Workspace: core, cli, desktop as members with shared syncfu-core dependency

Structure

core/          — syncfu-core shared library
cli/           — syncfu CLI (talks to server via HTTP)
desktop/       — Tauri desktop app (tray, overlay, HTTP server)

Test plan

  • cargo check passes for all 3 workspace members
  • cargo test -p syncfu-core — core unit tests
  • cd desktop && pnpm tauri build — desktop app builds
  • cargo build -p syncfu-cli — CLI builds
  • Desktop app starts (tray icon, server on :9868)
  • CLI auto-launches desktop app when server is down

🤖 Generated with Claude Code

Moves notification manager, types, HTTP server, waiters, webhook, and
notifier trait into a standalone core/ crate shared by desktop and CLI.
Restructured Tauri app with frontend in desktop/frontend/, Rust backend
in desktop/src-tauri/, and proper workspace integration via syncfu-core.
Tries macOS app bundle first, falls back to headless server. Enables
'syncfu send' to work without manually starting the server.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant