chore: initialize EverOS 1.0.0
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.
This commit is contained in:
@ -0,0 +1,31 @@
|
||||
"""AtomicFact daily-log reader — symmetric with :class:`AtomicFactWriter`."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import datetime as _dt
|
||||
from pathlib import Path
|
||||
|
||||
from everos.core.persistence import MemoryRoot
|
||||
|
||||
from ..mds import AtomicFactDailyFrontmatter
|
||||
from .base import BaseDailyReader
|
||||
|
||||
|
||||
class AtomicFactReader(BaseDailyReader):
|
||||
"""Read atomic-fact daily-log files."""
|
||||
|
||||
schema = AtomicFactDailyFrontmatter
|
||||
|
||||
def __init__(self, root: MemoryRoot) -> None:
|
||||
super().__init__(root)
|
||||
|
||||
def path_for(
|
||||
self,
|
||||
owner_id: str,
|
||||
date: _dt.date | None = None,
|
||||
*,
|
||||
app_id: str = "default",
|
||||
project_id: str = "default",
|
||||
) -> Path:
|
||||
"""Resolve the atomic-fact daily-log path under the <app>/<project> prefix."""
|
||||
return super().path_for(owner_id, date, app_id=app_id, project_id=project_id)
|
||||
Reference in New Issue
Block a user