import click
from security.audit import SecureAudit
from cli_commands import (
    add_task,
    get_next_task,
    process_task,
    validate_permissions
)

# Initialize audit logger
audit_logger = SecureAudit('cli_audit.db')

@click.group()
def cli():
    """Symphony Orchestration CLI"""
    pass

# Pass audit logger to commands
cli.add_command(add_task(audit_logger))
cli.add_command(get_next_task(audit_logger))
cli.add_command(process_task(audit_logger))
cli.add_command(validate_permissions(audit_logger))

if __name__ == '__main__':
    cli()