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:
@@ -19,9 +19,9 @@ from unittest.mock import AsyncMock, patch
|
||||
|
||||
import httpx
|
||||
|
||||
from scribe.services import background
|
||||
from scribe.services import snippets as svc
|
||||
from scribe.services.forge import GiteaForge
|
||||
from grimoire.services import background
|
||||
from grimoire.services import snippets as svc
|
||||
from grimoire.services.forge import GiteaForge
|
||||
|
||||
BASE = "https://git.example.com"
|
||||
CODE = "def helper(x):\n return x + 1\n"
|
||||
@@ -59,11 +59,11 @@ def _file_response(content: str, commit_sha: str = SHA) -> httpx.Response:
|
||||
def _patched(forge):
|
||||
"""Stub the owner-keyring lookup: None → an empty selector, i.e. the
|
||||
owner has no connections — no forge configured."""
|
||||
from scribe.services.forge import ForgeSelector
|
||||
from grimoire.services.forge import ForgeSelector
|
||||
|
||||
selector = ForgeSelector(() if forge is None else (forge,))
|
||||
return patch(
|
||||
"scribe.services.forge.get_forges", AsyncMock(return_value=selector)
|
||||
"grimoire.services.forge.get_forges", AsyncMock(return_value=selector)
|
||||
)
|
||||
|
||||
|
||||
@@ -258,7 +258,7 @@ def test_both_pull_surfaces_attach_freshness():
|
||||
is a surface whose readers silently lose freshness."""
|
||||
import pathlib
|
||||
|
||||
root = pathlib.Path(__file__).resolve().parents[1] / "src" / "scribe"
|
||||
root = pathlib.Path(__file__).resolve().parents[1] / "src" / "grimoire"
|
||||
mcp_src = (root / "mcp" / "tools" / "snippets.py").read_text()
|
||||
rest_src = (root / "routes" / "snippets.py").read_text()
|
||||
assert "attach_live_body" in mcp_src
|
||||
@@ -267,7 +267,7 @@ def test_both_pull_surfaces_attach_freshness():
|
||||
|
||||
async def test_forge_failure_inside_lookup_never_breaks_the_pull():
|
||||
with patch(
|
||||
"scribe.services.forge.get_forges", AsyncMock(side_effect=RuntimeError("cfg"))
|
||||
"grimoire.services.forge.get_forges", AsyncMock(side_effect=RuntimeError("cfg"))
|
||||
):
|
||||
data = _data()
|
||||
await svc.attach_live_body(_note(), data)
|
||||
|
||||
Reference in New Issue
Block a user