INNER CODE UNIT · Python
print_inventory
yohey-w/multi-agent-shogun · scripts/slim_yaml.py:102
def print_inventory(message):
print(f"[INVENTORY] {message}", file=sys.stderr)
def get_active_cmd_ids():
"""Return command IDs in shogun_to_karo that are not terminal."""
queue_dir = get_queue_dir()
shogun_file = queue_dir / 'shogun_to_karo.yaml'
data = load_yaml(shogun_file)
key = 'commands' if 'commands' in data else 'queue'
commands = data.get(key, []) if isinstance(data, dict) else []
if not isinstance(commands, list):
return set()
active = set()
for cmd in commands:
if not isinstance(cmd, dict):