- shared/ = portable Android-origin sources vendored from deferred/desktop-server (app/build.gradle.kts srcDir repointed; PlaybackController.kt excluded as Android-only) - backend/ = bundled-lite engine (SQLite + inline queue); .venv symlinked from the old checkout, PYTHONPATH pins THIS backend's code over any editable install - repoRoot() resolves this project dir (env SHONAR_REPO still wins); desktop-dev.sh watches shared/ + backend/ - Verified: :app:compileKotlin + :app:test green (23 tests); engine boots on :8010, self-migrates, /healthz ok
23 lines
397 B
Python
23 lines
397 B
Python
"""Search + export schemas (M9)."""
|
|
|
|
from __future__ import annotations
|
|
|
|
import uuid
|
|
|
|
from pydantic import BaseModel
|
|
|
|
|
|
class SearchHitOut(BaseModel):
|
|
id: uuid.UUID
|
|
title: str
|
|
field: str # title | tag | notes | summary | transcript
|
|
snippet: str
|
|
|
|
|
|
class SearchOut(BaseModel):
|
|
query: str
|
|
scope: str
|
|
items: list[SearchHitOut]
|
|
total: int
|
|
limit: int
|
|
offset: int
|