refactor: rename package fabledassistant -> scribe (code-only)
CI & Build / Python lint (push) Successful in 3s
CI & Build / TypeScript typecheck (push) Successful in 35s
CI & Build / Python tests (push) Successful in 54s
CI & Build / Build & push image (push) Successful in 1m14s

Renames src/fabledassistant -> src/scribe and all imports, plus the
default DB name and DB user/password (fabled -> scribe) in config +
compose. 952 refs / 154 files. Reverses the old 'internal name stays
fabledassistant' convention.

Code-only: live databases are still physically named 'fabledassistant'.
Deployed environments must set POSTGRES_DB / POSTGRES_USER (or rename the
DB) since the defaults now resolve to 'scribe'. Repo (FabledScribe), git
host (fabledsword), MCP (fabled-git) and the image name (fabledscribe)
are intentionally unchanged.

ruff check src/ clean locally; CI (typecheck + pytest) is the gate.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-03 15:48:35 -04:00
parent 1d4c206563
commit b255a0f90e
167 changed files with 1183 additions and 2368 deletions
+5 -5
View File
@@ -23,10 +23,10 @@ async def test_create_note_passes_task_kind_to_model():
captured["task_kind"] = getattr(obj, "task_kind", "MISSING")
mock_session.add = MagicMock(side_effect=_capture_add)
with patch("fabledassistant.services.notes.async_session") as mock_cls, \
patch("fabledassistant.services.notes._maybe_reactivate_project", AsyncMock()):
with patch("scribe.services.notes.async_session") as mock_cls, \
patch("scribe.services.notes._maybe_reactivate_project", AsyncMock()):
mock_cls.return_value = mock_session
from fabledassistant.services.notes import create_note
from scribe.services.notes import create_note
await create_note(user_id=1, title="P", status="todo", task_kind="plan")
assert captured["task_kind"] == "plan"
@@ -38,9 +38,9 @@ async def test_list_notes_filters_by_task_kind():
exec_result = MagicMock()
exec_result.scalars.return_value.all.return_value = []
mock_session.execute = AsyncMock(return_value=exec_result)
with patch("fabledassistant.services.notes.async_session") as mock_cls:
with patch("scribe.services.notes.async_session") as mock_cls:
mock_cls.return_value = mock_session
from fabledassistant.services.notes import list_notes
from scribe.services.notes import list_notes
# Should not raise; task_kind is a recognized kwarg.
rows, total = await list_notes(user_id=1, is_task=True, task_kind="plan")
assert rows == []