listBuilds method

Future<List<BuildInfo>> listBuilds()

Fetch the in‑memory list of builds tracked by the server.

Each BuildInfo entry reports current status (running, finished, errored) together with any error / result payload.

Implementation

Future<List<BuildInfo>> listBuilds() async {
  final res = await room.sendRequest('containers.list_builds', {}) as JsonResponse;

  return (res.json['builds'] as List).map((b) => BuildInfo.fromJson(b as Map<String, dynamic>)).toList();
}