Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

chore(pi): bump pi-coding-agent 0.60.0 → 0.73.1

Louis Beaumonta3783c097999
diff --git a/apps/screenpipe-app-tauri/src-tauri/src/pi.rs b/apps/screenpipe-app-tauri/src-tauri/src/pi.rs
index a46c3c548..c0f1ced0f 100644
--- a/apps/screenpipe-app-tauri/src-tauri/src/pi.rs
+++ b/apps/screenpipe-app-tauri/src-tauri/src/pi.rs
@@ -257,7 +257,7 @@ fn check_package_bin(pkg_dir: std::path::PathBuf, bin_name: &str) -> Option<Stri
}
}
-const PI_PACKAGE: &str = "@mariozechner/[email protected]";
+const PI_PACKAGE: &str = "@mariozechner/[email protected]";
const SCREENPIPE_API_URL: &str = "https://api.screenpi.pe/v1";
/// Pool of Pi sessions — each session_id gets its own PiManager/process.
@@ -495,11 +495,14 @@ fn seed_pi_package_json(install_dir: &std::path::Path) {
);
changed = true;
}
- // Ensure @anthropic-ai/sdk is a direct dependency (Windows bun fix)
+ // Ensure @anthropic-ai/sdk is a direct dependency (Windows bun fix).
+ // Pin must track @mariozechner/pi-ai's required range — mismatched
+ // ranges leave bun unable to resolve a single version. pi-ai 0.73.1
+ // requires ^0.91.1.
if !contents.contains("@anthropic-ai/sdk") {
let deps = obj.entry("dependencies").or_insert_with(|| json!({}));
if let Some(deps_obj) = deps.as_object_mut() {
- deps_obj.insert("@anthropic-ai/sdk".to_string(), json!("^0.73.0"));
+ deps_obj.insert("@anthropic-ai/sdk".to_string(), json!("^0.91.1"));
}
changed = true;
}
@@ -516,7 +519,7 @@ fn seed_pi_package_json(install_dir: &std::path::Path) {
}
let pkg_json = json!({
"dependencies": {
- "@anthropic-ai/sdk": "^0.73.0"
+ "@anthropic-ai/sdk": "^0.91.1"
},
"overrides": {
"hosted-git-info": {
@@ -552,7 +555,7 @@ fn is_local_pi_version_current(install_dir: &std::path::Path) -> bool {
Some(v) => v,
None => return false,
};
- // PI_PACKAGE is "@mariozechner/[email protected]" — extract version after last '@'
+ // PI_PACKAGE is "@mariozechner/pi-coding-agent@<ver>" — extract version after last '@'
let expected = PI_PACKAGE.rsplit('@').next().unwrap_or("");
if installed != expected {
info!(
diff --git a/crates/screenpipe-core/src/agents/pi.rs b/crates/screenpipe-core/src/agents/pi.rs
index 6e06245b3..bbe2c6042 100644
--- a/crates/screenpipe-core/src/agents/pi.rs
+++ b/crates/screenpipe-core/src/agents/pi.rs
@@ -13,7 +13,7 @@ use serde_json::json;
use std::path::{Path, PathBuf};
use tracing::{debug, error, info, warn};
-const PI_PACKAGE: &str = "@mariozechner/[email protected]";
+const PI_PACKAGE: &str = "@mariozechner/[email protected]";
pub const SCREENPIPE_API_URL: &str = "https://api.screenpi.pe/v1";
/// Fetch the model catalog from the Cloudflare Worker gateway and convert
@@ -1367,7 +1367,7 @@ fn is_local_pi_version_current() -> bool {
Some(v) => v,
None => return false,
};
- // PI_PACKAGE is "@mariozechner/[email protected]" — extract version after last '@'
+ // PI_PACKAGE is "@mariozechner/pi-coding-agent@<ver>" — extract version after last '@'
let expected = PI_PACKAGE.rsplit('@').next().unwrap_or("");
if installed != expected {
info!(