feat: listInvocations() for the detached-runs monitor
Some checks failed
Security / Security check (push) Failing after 1s

Returns every tracked detached invocation (newest-first) with id,
phase, current step, timestamps, error, flow name and project.
Regenerated stubs from the platform hub.proto.

Signed-off-by: flemming-it <stefan.a.flemming@googlemail.com>
This commit is contained in:
flemming-it 2026-07-12 14:34:24 +02:00
parent f67e430b09
commit 3fe96c9487
5 changed files with 233 additions and 0 deletions

View file

@ -90,6 +90,16 @@ class HubClient extends $grpc.Client {
return $createUnaryCall(_$cancelInvocation, request, options: options);
}
/// List every tracked detached invocation (newest-first) for a
/// monitor surface Studio's detached-runs list. Returns an empty
/// list (not an error) when detached invocations are disabled.
$grpc.ResponseFuture<$0.InvocationList> listInvocations(
$1.Empty request, {
$grpc.CallOptions? options,
}) {
return $createUnaryCall(_$listInvocations, request, options: options);
}
/// Liveness / readiness probe.
$grpc.ResponseFuture<$0.HealthStatus> health(
$1.Empty request, {
@ -129,6 +139,11 @@ class HubClient extends $grpc.Client {
'/chain.v1.Hub/CancelInvocation',
($2.InvocationId value) => value.writeToBuffer(),
$0.CancelInvocationResponse.fromBuffer);
static final _$listInvocations =
$grpc.ClientMethod<$1.Empty, $0.InvocationList>(
'/chain.v1.Hub/ListInvocations',
($1.Empty value) => value.writeToBuffer(),
$0.InvocationList.fromBuffer);
static final _$health = $grpc.ClientMethod<$1.Empty, $0.HealthStatus>(
'/chain.v1.Hub/Health',
($1.Empty value) => value.writeToBuffer(),
@ -183,6 +198,13 @@ abstract class HubServiceBase extends $grpc.Service {
false,
($core.List<$core.int> value) => $2.InvocationId.fromBuffer(value),
($0.CancelInvocationResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$1.Empty, $0.InvocationList>(
'ListInvocations',
listInvocations_Pre,
false,
false,
($core.List<$core.int> value) => $1.Empty.fromBuffer(value),
($0.InvocationList value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$1.Empty, $0.HealthStatus>(
'Health',
health_Pre,
@ -240,6 +262,14 @@ abstract class HubServiceBase extends $grpc.Service {
$async.Future<$0.CancelInvocationResponse> cancelInvocation(
$grpc.ServiceCall call, $2.InvocationId request);
$async.Future<$0.InvocationList> listInvocations_Pre(
$grpc.ServiceCall $call, $async.Future<$1.Empty> $request) async {
return listInvocations($call, await $request);
}
$async.Future<$0.InvocationList> listInvocations(
$grpc.ServiceCall call, $1.Empty request);
$async.Future<$0.HealthStatus> health_Pre(
$grpc.ServiceCall $call, $async.Future<$1.Empty> $request) async {
return health($call, await $request);