Rebrand the Rust client crate (coven/ → hh/, package+binary "hack-house"), README, CLI strings, and branch (coven → hack-house). Gitea repo renamed cmd-chat → hack-house to match. Crypto/server logic unchanged; selftest + golden-vector test still green, binary is now `hack-house`. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
14 lines
342 B
Python
14 lines
342 B
Python
from sanic import Request
|
|
from sanic.exceptions import SanicException
|
|
|
|
|
|
def extract_request(*args) -> Request:
|
|
request: Request
|
|
if args and isinstance(args[0], Request):
|
|
request = args[0]
|
|
elif len(args) > 1:
|
|
request = args[1]
|
|
else:
|
|
raise SanicException("Request could not be found")
|
|
return request
|