Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
91 changes: 81 additions & 10 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ hypr-buffer = { path = "crates/buffer", package = "buffer" }
hypr-bundle = { path = "crates/bundle", package = "bundle" }
hypr-cactus = { path = "crates/cactus", package = "cactus" }
hypr-cactus-model = { path = "crates/cactus-model", package = "cactus-model" }
hypr-calendar = { path = "crates/calendar", package = "calendar" }
hypr-calendar-interface = { path = "crates/calendar-interface", package = "calendar-interface" }
hypr-chatwoot = { path = "crates/chatwoot", package = "chatwoot" }
hypr-cli-tui = { path = "crates/cli-tui", package = "cli-tui" }
Expand Down
7 changes: 6 additions & 1 deletion apps/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,18 +60,23 @@ tui-textarea = { workspace = true }

open = { workspace = true }
ractor = { workspace = true, features = ["async-trait"] }
rig = { package = "rig-core", version = "0.32" }
serde = { workspace = true }
serde_json = { workspace = true }
strsim = "0.11"
strum = { workspace = true, features = ["derive"] }
thiserror = { workspace = true }
tokio = { workspace = true, features = ["rt-multi-thread", "macros", "signal", "sync", "time"] }
tokio-stream = { workspace = true }
url = { workspace = true }
uuid = { workspace = true, features = ["v4"] }
strum = { workspace = true, features = ["derive"] }

[dev-dependencies]
cli-docs = { path = "../../crates/cli-docs" }
clap_complete = { workspace = true }
clio = { version = "0.3", features = ["clap-parse"] }
strum = { workspace = true, features = ["derive"] }
url = { workspace = true }

[features]
mock-audio = ["dep:hypr-audio-mock"]
22 changes: 22 additions & 0 deletions crates/calendar/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[package]
name = "calendar"
version = "0.1.0"
edition = "2024"

[features]
specta = ["dep:specta"]

[dependencies]
hypr-api-client = { workspace = true }
hypr-apple-calendar = { workspace = true, features = ["specta"] }
hypr-calendar-interface = { workspace = true }
hypr-google-calendar = { workspace = true, features = ["specta"] }
hypr-outlook-calendar = { workspace = true, features = ["specta"] }

chrono = { workspace = true, features = ["serde"] }
chrono-tz = { workspace = true }
reqwest = { workspace = true, features = ["json"] }
serde = { workspace = true, features = ["derive"] }
serde_json = { workspace = true }
specta = { workspace = true, features = ["chrono"], optional = true }
thiserror = { workspace = true }
File renamed without changes.
24 changes: 24 additions & 0 deletions crates/calendar/src/error.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
use hypr_calendar_interface::CalendarProviderType;

#[derive(Debug, thiserror::Error)]
pub enum Error {
#[error("not authenticated")]
NotAuthenticated,
#[error("provider {provider:?} is not available on this platform")]
ProviderUnavailable { provider: CalendarProviderType },
#[error("operation '{operation}' is not supported for provider {provider:?}")]
UnsupportedOperation {
operation: &'static str,
provider: CalendarProviderType,
},
#[error("invalid datetime for field '{field}': {value}")]
InvalidDateTime { field: &'static str, value: String },
#[error("invalid auth header: {0}")]
InvalidAuthHeader(#[from] reqwest::header::InvalidHeaderValue),
#[error("http client error: {0}")]
HttpClient(#[from] reqwest::Error),
#[error("api error: {0}")]
Api(String),
#[error("apple calendar error: {0}")]
Apple(String),
}
File renamed without changes.
Loading
Loading