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:
2026-06-11 23:58:46 +00:00
parent fd64a6f1a7
commit 7fc9b0f715
127 changed files with 267 additions and 25 deletions
+2
View File
@@ -1,3 +1,5 @@
# retoor <retoor@molodetz.nl>
from devplacepy.services.bot.service import BotsService
__all__ = ["BotsService"]
+2
View File
@@ -1,3 +1,5 @@
# retoor <retoor@molodetz.nl>
import asyncio
import hashlib
import logging
+2
View File
@@ -1,3 +1,5 @@
# retoor <retoor@molodetz.nl>
import asyncio
import logging
import random
+2
View File
@@ -1,3 +1,5 @@
# retoor <retoor@molodetz.nl>
import random
from pathlib import Path
+2
View File
@@ -1,3 +1,5 @@
# retoor <retoor@molodetz.nl>
import json
import logging
import random
+2
View File
@@ -1,3 +1,5 @@
# retoor <retoor@molodetz.nl>
import json
import logging
import time
+3 -1
View File
@@ -1,3 +1,5 @@
# retoor <retoor@molodetz.nl>
import fcntl
import json
import logging
@@ -44,7 +46,7 @@ class ArticleRegistry:
fd = os.open(str(self.path), os.O_RDWR | os.O_CREAT)
fcntl.flock(fd, fcntl.LOCK_EX)
data = {}
if os.path.getsize(str(self.path)) > 0:
if self.path.stat().st_size > 0:
chunks = []
while True:
chunk = os.read(fd, 65536)
+2
View File
@@ -1,3 +1,5 @@
# retoor <retoor@molodetz.nl>
from dataclasses import dataclass
from pathlib import Path
+2
View File
@@ -1,3 +1,5 @@
# retoor <retoor@molodetz.nl>
import asyncio
import importlib
import logging
+2
View File
@@ -1,3 +1,5 @@
# retoor <retoor@molodetz.nl>
import json
import logging
import os