INNER CODE UNIT · Python
_print_config
christopherkarani/Wax · Resources/hermes/wax-memory-plugin/cli.py:232
def _print_config(args: Any) -> None:
hermes_home = getattr(args, "hermes_home", None) or os.environ.get("HERMES_HOME")
config = load_plugin_config(hermes_home)
payload = {
"endpoint": resolve_endpoint(config),
"auto_start": config.get("auto_start", False),
"structured_memory": config.get("structured_memory", True),
"default_endpoint": DEFAULT_ENDPOINT,
}
print(json.dumps(payload, indent=2))
def register_cli(subparser) -> None:
"""Build the `hermes wax-memory` argparse tree."""
subs = subparser.add_subparsers(dest="wax_memory_command")
subs.add_parser("status", help="Show Wax provider and broker status")
subs.add_parser("doctor", help="Diagnose Wax MCP connectivity and vector search")
subs.add_parser("config", help="Show resolved Wax provider config")