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

feat: README.md support, pipe status command, secret-safe publish

Louis Beaumont83dbaa8b7591
diff --git a/apps/screenpipe-app-tauri/components/pipe-store.tsx b/apps/screenpipe-app-tauri/components/pipe-store.tsx
index 93acf47bd..98ed356ae 100644
--- a/apps/screenpipe-app-tauri/components/pipe-store.tsx
+++ b/apps/screenpipe-app-tauri/components/pipe-store.tsx
@@ -77,6 +77,7 @@ interface StorePipe {
featured: boolean;
permissions: PipePermissions;
source?: string;
+ readme_md?: string;
}
interface PipePermissions {
@@ -104,6 +105,7 @@ interface PipeReview {
interface PipeDetail extends StorePipe {
full_description: string;
reviews: PipeReview[];
+ readme_md?: string;
}
interface LocalPipe {
@@ -839,7 +841,11 @@ function PipeDetailPanel({
const unrestricted = isUnrestricted(pipe.permissions);
const needsReview = unrestricted && !pipe.author_verified;
- const readmeContent = pipe.source ? getReadmeFromPipeMd(pipe.source) : (pipe.full_description || pipe.description);
+ const readmeContent = pipe.readme_md
+ ? pipe.readme_md
+ : pipe.source
+ ? getReadmeFromPipeMd(pipe.source)
+ : (pipe.full_description || pipe.description);
return (
<div className="space-y-8">
diff --git a/crates/screenpipe-engine/src/cli/mod.rs b/crates/screenpipe-engine/src/cli/mod.rs
index 9321f0699..f23ae231a 100644
--- a/crates/screenpipe-engine/src/cli/mod.rs
+++ b/crates/screenpipe-engine/src/cli/mod.rs
@@ -430,6 +430,11 @@ pub enum PipeCommand {
/// Pipe slug (registry identifier)
slug: String,
},
+ /// Check publish/review status of a pipe you own
+ Status {
+ /// Pipe slug (registry identifier)
+ slug: String,
+ },
}
#[derive(Subcommand)]
diff --git a/crates/screenpipe-engine/src/cli/pipe.rs b/crates/screenpipe-engine/src/cli/pipe.rs
index 7a20a99af..34cba9f5c 100644
--- a/crates/screenpipe-engine/src/cli/pipe.rs
+++ b/crates/screenpipe-engine/src/cli/pipe.rs
@@ -131,6 +131,9 @@ pub async fn handle_pipe_command(command: &PipeCommand) -> anyhow::Result<()> {
PipeCommand::Info { slug } => {
handle_info_command(slug).await?;
}
+ PipeCommand::Status { slug } => {
+ handle_status_command(slug).await?;
+ }
}
Ok(())
@@ -179,6 +182,17 @@ async fn handle_publish_command(
let source_md = std::fs::read_to_string(&pipe_md_path)?;
+ // Check for README.md alongside pipe.md
+ let readme_md_path = pipe_dir.join("README.md");
+ let readme_md = if readme_md_path.exists() {
+ let content = std::fs::read_to_string(&readme_md_path)?;
+ println!("including README.md");
+ Some(content)
+ } else {
+ println!("no README.md found, pipe.md body will be used as description");
+ None
+ };
+
// Parse YAML frontmatter if present (between --- delimiters)
let (title, description, icon, category) = parse_frontmatter(&source_md);
@@ -200,6 +214,7 @@ async fn handle_publish_command(
"description": description,
"icon": icon,
"category": category,
+ "readme_md": readme_md,
});
let url = format!("{}/api/pipes/store/publish", base);
@@ -403,6 +418,79 @@ async fn handle_info_command(slug: &str) -> anyhow::Result<()> {
Ok(())
}
+/// Check the publish/review status of a pipe you own.
+async fn handle_status_command(slug: &str) -> anyhow::Result<()> {
+ let token = get_auth_token().ok_or_else(|| {
+ anyhow::anyhow!(
+ "no auth token found. set SCREENPIPE_API_KEY env var or create ~/.screenpipe/auth.json"
+ )
+ })?;
+
+ let base = api_base_url();
+ let client = reqwest::Client::new();
+
+ let url = format!("{}/api/pipes/store/{}", base, slug);
+ let resp = client.get(&url).bearer_auth(&token).send().await?;
+
+ if !resp.status().is_success() {
+ anyhow::bail!("pipe '{}' not found in the registry", slug);
+ }
+
+ let body: Value = resp.json().await?;
+ let pipe = body.get("data").unwrap_or(&body);
+
+ let title = pipe.get("title").and_then(|v| v.as_str()).unwrap_or(slug);
+ let version = pipe
+ .get("version")
+ .and_then(|v| v.as_str())
+ .unwrap_or("-");
+ let review_status = pipe
+ .get("review_status")
+ .and_then(|v| v.as_str())
+ .unwrap_or("unknown");
+ let installs = pipe
+ .get("install_count")
+ .or_else(|| pipe.get("installs"))
+ .and_then(|v| v.as_u64())
+ .unwrap_or(0);
+ let rating = pipe
+ .get("average_rating")
+ .or_else(|| pipe.get("rating"))
+ .and_then(|v| v.as_f64());
+
+ println!("{}", title);
+ println!("{}", "=".repeat(title.len()));
+ println!();
+ println!("slug: {}", slug);
+ println!("version: {}", version);
+ println!("review_status: {}", review_status);
+ println!("install_count: {}", installs);
+ if let Some(r) = rating {
+ println!("avg_rating: {:.1}/5", r);
+ }
+
+ match review_status {
+ "rejected" => {
+ if let Some(note) = pipe.get("review_note").and_then(|v| v.as_str()) {
+ println!();
+ println!("rejection reason: {}", note);
+ }
+ }
+ "pending" => {
+ if let Some(flags) = pipe.get("ai_review_flags") {
+ println!();
+ println!("ai review flags: {}", flags);
+ }
+ if let Some(reason) = pipe.get("ai_review_reason").and_then(|v| v.as_str()) {
+ println!("ai review reason: {}", reason);
+ }
+ }
+ _ => {}
+ }
+
+ Ok(())
+}
+
/// Handle model subcommands — reads presets from store.bin.
pub fn handle_model_command(command: &ModelCommand) -> anyhow::Result<()> {
let store_path = dirs::home_dir()
diff --git a/crates/screenpipe-engine/src/pipe_store_api.rs b/crates/screenpipe-engine/src/pipe_store_api.rs
index 0c4af2a24..f2238939c 100644
--- a/crates/screenpipe-engine/src/pipe_store_api.rs
+++ b/crates/screenpipe-engine/src/pipe_store_api.rs
@@ -55,6 +55,7 @@ pub struct StorePublishRequest {
pub description: String,
pub icon: Option<String>,
pub category: Option<String>,
+ pub readme_md: Option<String>,
}
#[derive(Deserialize)]
@@ -140,6 +141,7 @@ pub async fn pipe_store_publish(
"description": body.description,
"icon": body.icon,
"category": body.category,
+ "readme_md": body.readme_md,
});
let url = format!("{}/api/pipes/store/publish", base);