chore: add retoor header to all devplacepy source files and update style agent header rule
The diff adds the mandatory `retoor <retoor@molodetz.nl>` header comment to every `.py` file under `devplacepy/` (including `__init__.py` and `routers/__init__.py`), and updates the `StyleAgent` in `agents/style.py` to instruct agents to only add the header on created or already-edited files rather than sweeping the entire repo. The `agents/base.py` operating protocol is also revised to reorder and clarify tool discipline rules.
This commit is contained in:
@@ -123,8 +123,6 @@ async def _bootstrap_auth(client: PlatformClient, settings: Settings) -> str:
|
||||
|
||||
|
||||
def _resolve_owner(settings: Settings) -> tuple[str, str]:
|
||||
"""Resolve the local DevPlace user behind the CLI's credentials so the CLI shares the
|
||||
same per-user memory, tasks, and admin analytics as the web session for that account."""
|
||||
try:
|
||||
from devplacepy.database import db, get_table
|
||||
|
||||
|
||||
@@ -56,8 +56,6 @@ NAT64_PREFIXES = (
|
||||
|
||||
|
||||
def _effective_address(address: Any) -> Any:
|
||||
"""Resolve NAT64 / IPv4-mapped IPv6 to the embedded IPv4 so DNS64 networks
|
||||
don't make public sites look like reserved addresses."""
|
||||
if isinstance(address, ipaddress.IPv6Address):
|
||||
if address.ipv4_mapped is not None:
|
||||
return address.ipv4_mapped
|
||||
|
||||
Reference in New Issue
Block a user