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

fix(app): update app-server caller of list_artifact_declarations + rustfmt

Louis Beaumont1a99c64aa980
diff --git a/apps/screenpipe-app-tauri/src-tauri/src/server_core.rs b/apps/screenpipe-app-tauri/src-tauri/src/server_core.rs
index cfc957087..8c4bb5d33 100644
--- a/apps/screenpipe-app-tauri/src-tauri/src/server_core.rs
+++ b/apps/screenpipe-app-tauri/src-tauri/src/server_core.rs
@@ -498,7 +498,11 @@ impl ServerCore {
// Hold the lock only to collect declarations, then drop it
let items = {
let mgr = pm.lock().await;
- let all = mgr.list_artifact_declarations().await;
+ let all = mgr
+ .list_artifact_declarations(
+ screenpipe_engine::pipes_api::ARTIFACT_FALLBACK_CAP,
+ )
+ .await;
all.into_iter()
.find(|(n, _)| n == &name)
.map(|(_, items)| items)
diff --git a/crates/screenpipe-core/src/pipes/mod.rs b/crates/screenpipe-core/src/pipes/mod.rs
index aac00c1d6..961961e7a 100644
--- a/crates/screenpipe-core/src/pipes/mod.rs
+++ b/crates/screenpipe-core/src/pipes/mod.rs
@@ -4967,7 +4967,12 @@ mod tests {
UNIX_EPOCH + Duration::from_secs(secs),
)
};
- let files = vec![f("a.md", 100), f("b.md", 300), f("c.md", 200), f("d.md", 400)];
+ let files = vec![
+ f("a.md", 100),
+ f("b.md", 300),
+ f("c.md", 200),
+ f("d.md", 400),
+ ];
let kept = select_newest_files(files, 2);
let names: Vec<_> = kept
.iter()