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>
31 lines
907 B
Python
31 lines
907 B
Python
from inspect import getmembers, getmodule
|
|
|
|
from .schemes import BaseScheme
|
|
|
|
|
|
class TouchUp:
|
|
_registry: set[tuple[type, str]] = set()
|
|
|
|
@classmethod
|
|
def run(cls, app):
|
|
for target, method_name in cls._registry:
|
|
method = getattr(target, method_name)
|
|
|
|
if app.test_mode:
|
|
placeholder = f"_{method_name}"
|
|
if hasattr(target, placeholder):
|
|
method = getattr(target, placeholder)
|
|
else:
|
|
setattr(target, placeholder, method)
|
|
|
|
module = getmodule(target)
|
|
module_globals = dict(getmembers(module))
|
|
modified = BaseScheme.build(method, module_globals, app)
|
|
setattr(target, method_name, modified)
|
|
|
|
target.__touched__ = True
|
|
|
|
@classmethod
|
|
def register(cls, target, method_name):
|
|
cls._registry.add((target, method_name))
|