feat: listInvocationsFull — monitor payload incl. detachedEnabled
Some checks failed
Security / Security check (push) Failing after 1s

Signed-off-by: flemming-it <stefan.a.flemming@googlemail.com>
This commit is contained in:
flemming-it 2026-07-18 00:17:20 +02:00
parent ca9d8f2879
commit d9ef3ecdb6

View file

@ -117,6 +117,7 @@ typedef SubmitResponse = pb.SubmitResponse;
typedef SubmitStreamEvent = pb.SubmitStreamEvent;
typedef InvocationStatus = pb.InvocationStatus;
typedef InvocationEntry = pb.InvocationEntry;
typedef InvocationList = pb.InvocationList;
/// Typed client for the FI Hub gRPC surface. Construct once,
/// reuse for the process lifetime, call [close] on shutdown.
@ -958,6 +959,12 @@ class HubClient {
return r.invocations;
}
/// The full detached-runs monitor payload: tracked invocations
/// plus [InvocationList.detachedEnabled], so a UI can distinguish
/// "feature off" from "on, but no runs yet".
Future<InvocationList> listInvocationsFull() =>
_hub.listInvocations(Empty());
pb.SubmitRequest _buildSubmitRequest({
required String flowYaml,
required Map<String, String> textInputs,