Adds the core sync engine that maps GitLab events (from lore CLI) to beads tasks. This is the foundational data layer for Mission Control's unified task view. Bridge architecture: - GitLabBeadMap: JSON file storing event -> bead_id mappings - MappingKey: Type-safe keys for MR reviews, issues, and authored MRs - Cursor: Tracks last sync and reconciliation timestamps Crash-safety features: - Write-ahead pattern: pending=true written before bead creation - Atomic file writes via temp file + rename - Recovery on startup: retries pending entries with bead_id=None - flock(2) based single-instance locking (prevents concurrent MC) Two-strike orphan detection: - First miss sets suspect_orphan=true (items may temporarily vanish) - Second miss closes the bead (confirmed deleted/merged) - Reappearance clears the flag (healed) Sync operations: - incremental_sync(): Process since_last_check events - full_reconciliation(): Cross-check all open items - recover_pending(): Handle interrupted syncs Dependencies added: - libc: For flock(2) system call - thiserror: For ergonomic error types Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
44 lines
933 B
TOML
44 lines
933 B
TOML
[package]
|
|
name = "mission-control"
|
|
version = "0.1.0"
|
|
description = "ADHD-centric personal productivity hub"
|
|
authors = ["Taylor Eernisse"]
|
|
edition = "2021"
|
|
|
|
[lib]
|
|
name = "mission_control_lib"
|
|
crate-type = ["lib", "cdylib", "staticlib"]
|
|
|
|
[[bin]]
|
|
name = "mission-control"
|
|
path = "src/main.rs"
|
|
|
|
[build-dependencies]
|
|
tauri-build = { version = "2", features = [] }
|
|
|
|
[dependencies]
|
|
tauri = { version = "2", features = ["tray-icon"] }
|
|
tauri-plugin-shell = "2"
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
tokio = { version = "1", features = ["full"] }
|
|
thiserror = "2"
|
|
tracing = "0.1"
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
|
chrono = { version = "0.4", features = ["serde"] }
|
|
dirs = "5"
|
|
notify = "7"
|
|
tauri-plugin-global-shortcut = "2"
|
|
libc = "0.2"
|
|
|
|
[dev-dependencies]
|
|
tempfile = "3"
|
|
mockall = "0.13"
|
|
|
|
[profile.release]
|
|
panic = "abort"
|
|
codegen-units = 1
|
|
lto = true
|
|
opt-level = "z"
|
|
strip = true
|