#!/usr/bin/env python3
"""Fügt Pets-Config in Hauptconfig ein"""

import json

with open("/home/arch_agent_system/natiris/config/pets_config.json") as f:
    pets = json.load(f)

with open("/home/arch_agent_system/natiris/config/character_genesis.json") as f:
    config = json.load(f)

# Update pets section
config["pets"] = pets

with open("/home/arch_agent_system/natiris/config/character_genesis.json", "w") as f:
    json.dump(config, f, indent=2, ensure_ascii=False)

print("✅ Config mit Pets aktualisiert")
print(json.dumps({"partner": config["pets"]["partner"], "katzen_count": len(config["pets"]["katzen"])}, indent=2))
