refactor(agent): drop vestigial install_configured param, non_empty_env helper, explicit infallible expect in client

This commit is contained in:
müde 2026-07-05 22:49:45 +02:00
commit f2f104627d
4 changed files with 14 additions and 15 deletions

View file

@ -11,8 +11,6 @@
//! plugin specs resolve against current index data. Marketplace update
//! failures are non-fatal — stale index is better than no install attempt.
use std::path::Path;
use tokio::process::Command;
const PLUGINS_PATH: &str = "/etc/hyperhive/claude-plugins.json";
@ -103,8 +101,7 @@ async fn update_marketplaces() {
/// notification, see `Surface::send_to_parent`). Wire-agnostic: the
/// caller picks the recipient via the same `<parent>` sentinel that
/// failure-notify uses everywhere else.
pub async fn install_configured(socket: &Path) -> Vec<String> {
let _ = socket; // Reserved for future telemetry; currently unused.
pub async fn install_configured() -> Vec<String> {
let Ok(raw) = tokio::fs::read_to_string(PLUGINS_PATH).await else {
return Vec::new();
};