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
+8 -8
View File
@@ -19,7 +19,7 @@ def _v(version_id: int, days_ago: int, pin_kind=None):
def test_promote_stable_versions_pins_versions_with_2_day_gap():
"""Versions followed by another version >= 2 days later get promoted."""
from fabledassistant.services.version_pinning import (
from scribe.services.version_pinning import (
_promote_stable_versions_for_note,
)
# 3 versions: v1 (10 days ago), v2 (5 days ago), v3 (1 day ago)
@@ -35,7 +35,7 @@ def test_promote_stable_versions_pins_versions_with_2_day_gap():
def test_promote_stable_versions_pins_latest_if_old_enough():
"""If the latest version is >= 2 days old with no successor, pin it."""
from fabledassistant.services.version_pinning import (
from scribe.services.version_pinning import (
_promote_stable_versions_for_note,
)
versions = [_v(1, 10), _v(2, 3)] # latest is 3 days old
@@ -44,7 +44,7 @@ def test_promote_stable_versions_pins_latest_if_old_enough():
def test_promote_stable_versions_skips_already_pinned():
from fabledassistant.services.version_pinning import (
from scribe.services.version_pinning import (
_promote_stable_versions_for_note,
)
versions = [_v(1, 10, pin_kind="manual"), _v(2, 5)]
@@ -67,7 +67,7 @@ def test_promote_stable_versions_skips_active_editing():
id=2, created_at=base - timedelta(hours=2),
pin_kind=None, pin_label=None,
)
from fabledassistant.services.version_pinning import (
from scribe.services.version_pinning import (
_promote_stable_versions_for_note,
)
pinned = _promote_stable_versions_for_note([v1, v2])
@@ -76,7 +76,7 @@ def test_promote_stable_versions_skips_active_editing():
def test_promote_stable_versions_writes_descriptive_label():
"""The auto-generated label references stability."""
from fabledassistant.services.version_pinning import (
from scribe.services.version_pinning import (
_promote_stable_versions_for_note,
)
versions = [_v(1, 10), _v(2, 5), _v(3, 1)]
@@ -94,7 +94,7 @@ def test_promote_stable_versions_naive_datetime_is_treated_as_utc():
SimpleNamespace(id=1, created_at=naive_old, pin_kind=None, pin_label=None),
SimpleNamespace(id=2, created_at=naive_recent, pin_kind=None, pin_label=None),
]
from fabledassistant.services.version_pinning import (
from scribe.services.version_pinning import (
_promote_stable_versions_for_note,
)
pinned = _promote_stable_versions_for_note(versions)
@@ -105,7 +105,7 @@ def test_promote_stable_versions_naive_datetime_is_treated_as_utc():
async def test_scan_user_for_auto_pins_iterates_all_notes(monkeypatch):
"""scan_user_for_auto_pins iterates every note for the user and calls
the per-note flow on each, summing returned counts."""
from fabledassistant.services import version_pinning
from scribe.services import version_pinning
note_ids = [10, 20, 30]
seen: list[int] = []
@@ -136,7 +136,7 @@ async def test_scan_user_for_auto_pins_iterates_all_notes(monkeypatch):
async def test_scan_user_for_auto_pins_swallows_per_note_errors(monkeypatch):
"""One bad note doesn't stop the scan; the error is logged and the
others continue."""
from fabledassistant.services import version_pinning
from scribe.services import version_pinning
async def fake_list_note_ids(uid):
return [10, 20, 30]