md-first memory extraction framework for AI agents. Markdown is the single source of truth; SQLite holds state and LanceDB provides the rebuildable vector + BM25 + scalar index. The codebase follows a single-direction DDD layering (entrypoints -> service -> memory -> infra, with component / core / config cross-cutting) enforced by import-linter. Engineering surface: - Coding conventions in .claude/rules/ (path-scoped) and workflows in .claude/skills/ (/commit, /new-branch, /pr). - GitHub Actions CI runs make lint + test + integration; pre-commit mirrors the gates locally (ruff, hygiene hooks, gitlint commit-msg). - Commit messages follow Conventional Commits, enforced by gitlint. - make lint also enforces datetime two-zone discipline and OpenAPI drift.
23 lines
701 B
Python
23 lines
701 B
Python
"""CLI root app — verifies sub-typer wiring + ``--help`` exit code."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from typer.testing import CliRunner
|
|
|
|
from everos.entrypoints.cli.main import app
|
|
|
|
|
|
def test_help_exits_zero() -> None:
|
|
result = CliRunner().invoke(app, ["--help"])
|
|
assert result.exit_code == 0
|
|
assert "everos" in result.stdout
|
|
assert "server" in result.stdout
|
|
assert "cascade" in result.stdout
|
|
|
|
|
|
def test_no_args_shows_help_and_exits_nonzero() -> None:
|
|
# ``no_args_is_help=True`` triggers a help exit with code 2 (typer default).
|
|
result = CliRunner().invoke(app, [])
|
|
assert result.exit_code != 0
|
|
assert "Usage" in result.stdout or "Usage" in result.stderr
|