status method
Implementation
Future<PatchbayInvocation> status({required String requestId}) async {
if (_unavailableNow case final PatchbayInspectUnavailableWire unavailable) {
return _unavailable(requestId, unavailable);
}
// Read-only, so only the non-optional base gate applies; the consumer gates
// belong to the write.
final PatchbayGateRejection? gate = await _gates.evaluate(const <String>{});
if (gate != null) return _gateRejected(requestId, gate);
if (_unavailableNow case final PatchbayInspectUnavailableWire after) {
return _unavailable(requestId, after);
}
return PatchbayInvocation.accepted(
requestId: requestId,
payload: _state(outcome: 'observed').toJson(),
);
}