Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins
TypeScript ai-agentcoding-agentdesktop-appelectronglobali18nlocal-firstmcppipi-agentpi-desktoppluginsreactrusttypescript
fix(plugins): keep manifest validation within the Rust budget
Linuxdazhao4590169c5301
diff --git a/crates/host-core/src/plugins/validation.rs b/crates/host-core/src/plugins/validation.rsindex d4797d8c6..6303d36de 100644--- a/crates/host-core/src/plugins/validation.rs+++ b/crates/host-core/src/plugins/validation.rs@@ -497,10 +497,8 @@ pub(crate) fn validate_contributions(root: &Path, manifest: &PluginManifest) ->if !has_title {bail!("PLUGIN_INVALID: view {id} requires a title");}- if obj- .get("acceptsTranscriptSelection")- .is_some_and(|value| !value.is_boolean())- {+ let accepts_selection = obj.get("acceptsTranscriptSelection");+ if accepts_selection.is_some_and(|value| !value.is_boolean()) {bail!("PLUGIN_INVALID: view {id} acceptsTranscriptSelection must be a boolean");}let entry_path = obj