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:
@@ -64,7 +64,7 @@ def _live_session_context_source() -> str:
|
||||
Read as text rather than called: the function needs a database, and what
|
||||
this module checks is what the product SAYS, which is the literal strings.
|
||||
"""
|
||||
src = (ROOT / "src/scribe/services/plugin_context.py").read_text()
|
||||
src = (ROOT / "src/grimoire/services/plugin_context.py").read_text()
|
||||
start = src.index("async def build_session_context")
|
||||
nxt = re.search(r"\n(?:async def|def) ", src[start + 1:])
|
||||
return src[start:start + 1 + nxt.start()] if nxt else src[start:]
|
||||
@@ -73,7 +73,7 @@ def _live_session_context_source() -> str:
|
||||
def _delivered_shapes() -> str:
|
||||
"""Every reply shape as a session receives it in full. Rendered rather than
|
||||
read as source: the header a shape arrives under is guidance too."""
|
||||
from scribe.services import reply_shapes
|
||||
from grimoire.services import reply_shapes
|
||||
|
||||
return "\n\n".join(reply_shapes.render(s, full=True) for s in reply_shapes.SHAPES.values())
|
||||
|
||||
@@ -91,12 +91,12 @@ def delivered_surfaces() -> dict[str, str]:
|
||||
- `shapes` — the reply shapes the server delivers at their moments,
|
||||
in the full form a session first sees
|
||||
"""
|
||||
server = (ROOT / "src/scribe/mcp/server.py").read_text()
|
||||
server = (ROOT / "src/grimoire/mcp/server.py").read_text()
|
||||
match = re.search(r'_INSTRUCTIONS = """(.*?)"""', server, re.S)
|
||||
assert match, "server.py no longer defines _INSTRUCTIONS as a triple-quoted literal"
|
||||
surfaces = {
|
||||
"instructions": match.group(1),
|
||||
"docstrings": "".join(p.read_text() for p in sorted((ROOT / "src/scribe/mcp/tools").glob("*.py"))),
|
||||
"docstrings": "".join(p.read_text() for p in sorted((ROOT / "src/grimoire/mcp/tools").glob("*.py"))),
|
||||
"static": (ROOT / "plugin/hooks/scribe_static_context.md").read_text(),
|
||||
"commands": "".join(p.read_text() for p in sorted((ROOT / "plugin/commands").glob("*.md"))),
|
||||
"live": _live_session_context_source(),
|
||||
|
||||
Reference in New Issue
Block a user