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.

527 B
Raw Blame
"""Lightweight message authorship and input-turn semantics."""

from __future__ import annotations

from typing import Optional

from vibe.message_types import input_author_type_pairs

HARNESS_TYPE = "harness"
NOTIFY_TYPE = "notify"
VAULT_TYPE = "vault"
INPUT_TURN_AUTHOR_TYPES = input_author_type_pairs()


def is_input_turn(author: Optional[str], message_type: Optional[str]) -> bool:
    """Return whether a transcript row starts human or harness agent work."""

    return (author, message_type) in INPUT_TURN_AUTHOR_TYPES