rename(547): the server is grimoire — package, image, DB defaults, backups
CI & Build / Python lint (push) Successful in 3s
CI & Build / Plugin hooks (push) Successful in 12s
CI & Build / TypeScript typecheck (push) Successful in 56s
CI & Build / integration (push) Successful in 1m4s
CI & Build / Python tests (push) Successful in 1m55s
CI & Build / Build & push image (push) Successful in 44s
CI & Build / Python lint (push) Successful in 3s
CI & Build / Plugin hooks (push) Successful in 12s
CI & Build / TypeScript typecheck (push) Successful in 56s
CI & Build / integration (push) Successful in 1m4s
CI & Build / Python tests (push) Successful in 1m55s
CI & Build / Build & push image (push) Successful in 44s
Step 2 of the Scribe -> Grimoire rename. - src/scribe -> src/grimoire, and every import, patch target, module path, hypercorn entry point and `python -m grimoire.restore` with it; pyproject, uv.lock and the frontend package are named grimoire. - Image git.fabledsword.com/bvandeusen/fabledgrimoire; CI's Postgres service runs as grimoire / grimoire_test. - Compose files default the DB user, database and (prod) volume to grimoire, each overridable from .env, so an install created as Scribe keeps its data by setting POSTGRES_USER, POSTGRES_DB and PGDATA_VOLUME. - Backups are written as grimoire-<ts>.tar with format grimoire-backup-tar. Archives named scribe-* with the scribe-backup-tar manifest still restore and are still counted at the destination (folder and S3), with tests. - Exports, the MCP auth realm, the ASGI scope key and the persistent logger carry the new name. Kept on purpose: the secret-sealing key label stays "scribe.secrets.v1", because every stored secret was derived under it. Plugin identity (plugin name, hooks, env vars, .scribe marker, skills) is step 3. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -13,10 +13,10 @@ from unittest.mock import AsyncMock, patch
|
||||
|
||||
import pytest
|
||||
|
||||
from scribe.mcp.tools.notes import list_notes
|
||||
from scribe.mcp.tools.systems import list_system_records
|
||||
from scribe.mcp.tools.tasks import list_tasks
|
||||
from scribe.services.notes import brief_row
|
||||
from grimoire.mcp.tools.notes import list_notes
|
||||
from grimoire.mcp.tools.systems import list_system_records
|
||||
from grimoire.mcp.tools.tasks import list_tasks
|
||||
from grimoire.services.notes import brief_row
|
||||
|
||||
pytestmark = pytest.mark.usefixtures("_bind_user")
|
||||
|
||||
@@ -61,9 +61,9 @@ async def test_a_full_page_of_long_tasks_fits_inline():
|
||||
"""The ceiling. 100 rows (list_tasks' own limit cap) of ~5k-character step
|
||||
plans: as to_dict() rows this was over half a million characters."""
|
||||
rows = [_row(i) for i in range(100)]
|
||||
with patch("scribe.mcp.tools.tasks.notes_svc.list_notes",
|
||||
with patch("grimoire.mcp.tools.tasks.notes_svc.list_notes",
|
||||
AsyncMock(return_value=(rows, 100))), \
|
||||
patch("scribe.mcp.tools.tasks.milestones_svc.titles_for",
|
||||
patch("grimoire.mcp.tools.tasks.milestones_svc.titles_for",
|
||||
AsyncMock(return_value={415: "An existing plan is found"})) as titles:
|
||||
out = await list_tasks(project_id=2, limit=100)
|
||||
size = len(json.dumps(out))
|
||||
@@ -75,7 +75,7 @@ async def test_a_full_page_of_long_tasks_fits_inline():
|
||||
@pytest.mark.asyncio
|
||||
async def test_list_notes_rows_leave_the_body_to_get_note():
|
||||
rows = [_row(i, is_task=False) for i in range(3)]
|
||||
with patch("scribe.mcp.tools.notes.notes_svc.list_notes",
|
||||
with patch("grimoire.mcp.tools.notes.notes_svc.list_notes",
|
||||
AsyncMock(return_value=(rows, 3))):
|
||||
out = await list_notes(project_id=2)
|
||||
assert all("body" not in r for r in out["notes"])
|
||||
@@ -84,9 +84,9 @@ async def test_list_notes_rows_leave_the_body_to_get_note():
|
||||
@pytest.mark.asyncio
|
||||
async def test_list_system_records_rows_leave_the_body_to_the_getters():
|
||||
rows = [_row(1), _row(2, is_task=False)]
|
||||
with patch("scribe.mcp.tools.systems.systems_svc.list_records_for_system",
|
||||
with patch("grimoire.mcp.tools.systems.systems_svc.list_records_for_system",
|
||||
AsyncMock(return_value=rows)), \
|
||||
patch("scribe.mcp.tools.systems.milestones_svc.titles_for",
|
||||
patch("grimoire.mcp.tools.systems.milestones_svc.titles_for",
|
||||
AsyncMock(return_value={415: "Plan"})):
|
||||
out = await list_system_records(system_id=3)
|
||||
assert [r["id"] for r in out["records"]] == [1, 2]
|
||||
|
||||
Reference in New Issue
Block a user