feat(app): scaffold isolated Flutter client and parallel work contracts
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
/// A complete JSON protocol envelope, shared by all client features.
|
||||
typedef JsonMap = Map<String, dynamic>;
|
||||
|
||||
/// One shared request/reply transport. Feature code never owns a socket.
|
||||
abstract interface class ApiGateway {
|
||||
Future<JsonMap> call(String type, [JsonMap fields = const {}]);
|
||||
|
||||
/// Unsolicited server envelopes (run_event, chat_event, permissions, etc.).
|
||||
Stream<JsonMap> get frames;
|
||||
}
|
||||
Reference in New Issue
Block a user