Skip to content
Open
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
2 changes: 1 addition & 1 deletion cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ agentfs-sdk = { path = "../sdk/rust" }
tokio = { version = "1", features = ["full"] }
clap = { version = "4", features = ["derive"] }
anyhow = "1.0"
turso = { version = "0.4.0", features = ["sync"] }
turso = { version = "0.4.3", features = ["sync"] }
serde = { version = "1.0", features = ["derive"] }
parking_lot = "0.12.5"
clap_complete = { version = "=4.5.61", features = ["unstable-dynamic"] }
Expand Down
6 changes: 6 additions & 0 deletions cli/src/cmd/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ pub async fn open_agentfs(
if let Ok(auth_token) = std::env::var("TURSO_DB_AUTH_TOKEN") {
builder = builder.with_auth_token(auth_token);
}
if let Ok(encryption_key) = std::env::var("TURSO_REMOTE_ENCRYPTION_KEY") {
builder = builder.with_remote_encryption_key(encryption_key);
}
let db = builder.build().await?;
let conn = db.connect().await?;
let agent = AgentFS::open_with(conn)
Expand All @@ -42,6 +45,9 @@ pub async fn create_agentfs(
if let Ok(auth_token) = std::env::var("TURSO_DB_AUTH_TOKEN") {
builder = builder.with_auth_token(auth_token);
}
if let Ok(encryption_key) = std::env::var("TURSO_REMOTE_ENCRYPTION_KEY") {
builder = builder.with_remote_encryption_key(encryption_key);
}
let mut partial_sync = PartialSyncOpts {
bootstrap_strategy: Some(PartialBootstrapStrategy::Prefix { length: 128 * 1024 }),
prefetch: false,
Expand Down
2 changes: 1 addition & 1 deletion sdk/rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ description = "AgentFS SDK for Rust"
license = "MIT"

[dependencies]
turso = { version = "0.4.0", features = ["sync"] }
turso = { version = "0.4.3", features = ["sync"] }
tokio = { version = "1", features = ["full"] }
async-trait = "0.1"
serde = { version = "1.0", features = ["derive"] }
Expand Down
Loading