Skip to content

Commit

Permalink
feat:tui
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Dec 30, 2024
1 parent 28ebdd8 commit e9ead7d
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions hivemind_plugin_manager/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,24 +37,17 @@ class Client:
api_key: str
name: str = ""
description: str = ""
is_admin: bool = False # allowed to send ADMIN type messages
is_admin: bool = False
last_seen: float = -1

intent_blacklist: List[str] = field(default_factory=list)
skill_blacklist: List[str] = field(default_factory=list)
message_blacklist: List[str] = field(default_factory=list)
allowed_types: List[str] = field(default_factory=list)

crypto_key: Optional[str] = None
password: Optional[str] = None

# TODO - expose all below to cli utils
can_broadcast: bool = True # allowed to send BROADCAST type messages
can_escalate: bool = True # allowed to send ESCALATE type messages
can_propagate: bool = True # allowed to send PROPAGATE type messages

locked: bool = False # it's on database, but server wont allow to connect
can_send_binary: bool = True # if False all incoming binary payloads will be dropped
can_broadcast: bool = True
can_escalate: bool = True
can_propagate: bool = True

def __post_init__(self):
"""
Expand Down

0 comments on commit e9ead7d

Please sign in to comment.