Skip to content

Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.

695 B
Raw Blame
"""Doc layer for the Dodaios desktop app.

Reads Markdown files from the documentation roots returned by
``dodaios.core.paths.default_doc_roots()`` (canonically ``docs/``). Parses YAML
front matter (see ``dodaios/skills/builtin/dodaios-doc-author/`` for the schema),
indexes full text via SQLite FTS5, and provides a REST API for the ``DocsView``
of the UI.

Scope (Tier-1):
- ``schema.py``   — Pydantic ``DocFrontmatter`` + frozen ``Doc`` dataclass.
- ``loader.py``   — ``parse_doc(path)`` tolerant, never raises.
- ``registry.py`` — ``DocRegistry`` with watchdog hot-reload.
- ``search.py``   — SQLite FTS5 wrapper with BM25 ranking + Snippet().
"""
from __future__ import annotations