From 38cc0b646436e984c8030e724996ab081a6e2a0c Mon Sep 17 00:00:00 2001 From: gold-silver-copper <157451540+gold-silver-copper@users.noreply.github.com> Date: Sun, 25 Oct 2026 04:34:52 -0700 Subject: [PATCH 1/2] fix!: plan commands carry an argv, never a shell string PlannedCommand.cmd (a string the host ran through $SHELL -c) becomes PlannedCommand.argv: the program and its arguments, run as given. PluginRequest.command holds only the claimed command words. Implements [[tasks/harmony-2756]] --- src/lib.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index f9f1828..572b573 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -57,6 +57,8 @@ pub struct PluginHelp { /// A request from the meta CLI host to a plugin, sent as JSON on stdin. #[derive(Debug, Clone, Serialize, Deserialize)] pub struct PluginRequest { + /// The plugin command the user named, e.g. `git status`: the claimed + /// words only. Everything the user typed after them is in `args`. pub command: String, #[serde(default)] pub args: Vec, @@ -137,8 +139,9 @@ pub struct ExecutionPlan { pub struct PlannedCommand { /// Directory to execute in (relative to meta root or absolute) pub dir: String, - /// Command to execute - pub cmd: String, + /// The program and its arguments. The host runs them as given, with no + /// shell in between, so no quoting is needed. + pub argv: Vec, /// Environment variables to set for this command's subprocess #[serde(default, skip_serializing_if = "Option::is_none")] pub env: Option>, From 1a2d61659e883e8b89a9445791c865d065b081e4 Mon Sep 17 00:00:00 2001 From: t Date: Sun, 25 Oct 2026 04:55:43 -0700 Subject: [PATCH 2/2] docs: include/exclude are already applied to projects Implements [[tasks/harmony-2756]] --- src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 572b573..e48425e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -87,6 +87,9 @@ pub struct PluginRequestOptions { pub recursive: bool, #[serde(default)] pub depth: Option, + /// `--include` as the user typed it. The host has already applied it + /// (and `exclude_filters`) to `PluginRequest::projects`; a plugin that acts + /// on repos it finds itself must refuse filters it cannot honor. #[serde(default)] pub include_filters: Option>, #[serde(default)]