Skip to content

armgit / avibe

Public Imported from GitHub
0

Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.

438 B
Raw Blame
from __future__ import annotations

from pathlib import Path


APPLICATION_LOG_MAX_BYTES = 20 * 1024 * 1024
APPLICATION_LOG_BACKUP_COUNT = 5


def application_log_paths(current_path: Path) -> list[Path]:
    """Return application log generations from oldest to current."""

    return [
        *(current_path.with_name(f"{current_path.name}.{index}") for index in range(APPLICATION_LOG_BACKUP_COUNT, 0, -1)),
        current_path,
    ]