From f67e430b099f8dfec80a2b86c679ffe80b5e320c Mon Sep 17 00:00:00 2001 From: flemming-it Date: Sun, 12 Jul 2026 13:35:14 +0200 Subject: [PATCH] feat: project override on runSavedFlow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Empty keeps the saved flow's own project:, then general (resolved hub-side) — the wire field existed, the wrapper now exposes it. Signed-off-by: flemming-it --- lib/src/hub_client.dart | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/src/hub_client.dart b/lib/src/hub_client.dart index 9b0b8ac..239e5b7 100644 --- a/lib/src/hub_client.dart +++ b/lib/src/hub_client.dart @@ -766,8 +766,13 @@ class HubClient { Map textInputs = const {}, Map fileInputs = const {}, Map fileMimeTypes = const {}, + String project = '', }) async { - final req = pb.RunSavedFlowRequest()..name = name; + // Project override for this run; empty keeps the saved flow's + // own `project:`, then `general` (resolved hub-side). + final req = pb.RunSavedFlowRequest() + ..name = name + ..project = project; for (final entry in textInputs.entries) { req.inputs[entry.key] = pb_common.Payload()..text = entry.value; }