Befunde aus dem Testbetrieb auf der Linux-VM behoben (#572)
- #578: Abgebrochene Laeufe (Schrittgrenze, Zeitueberschreitung, Abbruch, Ausnahme) tragen ihre bezahlten Token - vorher 0 in RunUsage, fuer das Budget unsichtbar. - #580: WebFetch prueft die aufgeloeste Zieladresse beim Verbinden; ein erlaubter Name, der auf 127.0.0.1 aufloest, wird gesperrt. - #575: Dateien entstehen unter Unix mit 0600 (AtomicFile, Protokolle, FileRW-Anhaengen, state.db), Protokollverzeichnisse mit 0700. - #576: SIGTERM/SIGINT beenden auch mit Fenster geordnet. - #593: OpenRouter-Statusdienst wird gestartet. - #589: Auftragsnachricht nennt aktuelle Zeit, Zeitzone und Termin. - #581: Unvollstaendiges Argument-JSON erreicht das Werkzeug nicht mehr; das Modell bekommt eine verstaendliche Rueckmeldung statt Parsertext. - #591: Weboberflaeche liest die Felder, die API und Ereignisstrom liefern (Freigaben, Protokoll, Taskboard mit Termin, Werkzeug-Einstellungen, Tokennutzung); Ereignisstrom in camelCase. - #592: Chat zeigt Nachrichten nicht mehr doppelt. - #536 (teilweise): A2A-Antworten tragen Absender und Empfaenger, Parser wirft nicht mehr; Datums- und Volltextfilter in Agenten-Chats. - deploy/publish.py: Packager-Pfad net10.0, Schalter --agent-file. - Version 0.1.4. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
+17
-5
@@ -37,7 +37,7 @@ PROJECT = REPO / "src" / "ClawdDotNet.Desktop" / "ClawdDotNet.Desktop.csproj"
|
||||
CONFIG = REPO / "deploy" / "packager.config.json"
|
||||
PACKAGER = Path(
|
||||
"J:/Softwareprojekte/Deploymentcenter/client-dotnet/Deploymentcenter.Packager"
|
||||
"/bin/Release/net8.0/pack-and-deploy.exe"
|
||||
"/bin/Release/net10.0/win-x64/pack-and-deploy.exe"
|
||||
)
|
||||
INSTALLER_BASE = "https://dc.mhdf.de/installer"
|
||||
|
||||
@@ -69,13 +69,18 @@ def publish(rid: str, out_dir: Path) -> None:
|
||||
])
|
||||
|
||||
|
||||
def fetch_agent(rid: str, out_dir: Path) -> None:
|
||||
def fetch_agent(rid: str, out_dir: Path, agent_file: Path | None = None) -> None:
|
||||
"""Holt den update-agent und prueft die Pruefsumme.
|
||||
|
||||
Bewusst das ausgelieferte Binary statt eines selbst gebauten: Es ist
|
||||
dasselbe, das die Erstinstallation verwendet, und wird zentral gepflegt.
|
||||
Ohne Pruefsummenvergleich waere das ein Download, der spaeter fremden Code
|
||||
ausfuehrt - genau der Pfad, den eine Signatur schuetzen soll.
|
||||
|
||||
agent_file ersetzt nur den Download, nicht die Pruefung: Die Ablage liefert
|
||||
zeitweise um 100 KB/s, und urllib blieb dabei am 2026-09-14 ohne Meldung
|
||||
stehen. Eine vorhandene Kopie muss dieselbe Pruefsumme tragen wie das
|
||||
Manifest - sonst ist sie nicht das ausgelieferte Binary.
|
||||
"""
|
||||
with urllib.request.urlopen(f"{INSTALLER_BASE}/installer.json", timeout=30) as r:
|
||||
manifest = json.load(r)
|
||||
@@ -86,8 +91,12 @@ def fetch_agent(rid: str, out_dir: Path) -> None:
|
||||
|
||||
print(f" update-agent {manifest.get('version')} fuer {rid} ({entry['sizeBytes']} Bytes)")
|
||||
|
||||
with urllib.request.urlopen(f"{INSTALLER_BASE}/{entry['file']}", timeout=180) as r:
|
||||
payload = r.read()
|
||||
if agent_file is not None:
|
||||
print(f" aus Datei: {agent_file}")
|
||||
payload = agent_file.read_bytes()
|
||||
else:
|
||||
with urllib.request.urlopen(f"{INSTALLER_BASE}/{entry['file']}", timeout=180) as r:
|
||||
payload = r.read()
|
||||
|
||||
actual = hashlib.sha256(payload).hexdigest()
|
||||
if actual != entry["sha256"].lower():
|
||||
@@ -109,6 +118,9 @@ def main() -> None:
|
||||
parser.add_argument("--changelog", default="")
|
||||
parser.add_argument("--no-agent", action="store_true",
|
||||
help="update-agent nicht mitliefern")
|
||||
parser.add_argument("--agent-file", type=Path,
|
||||
help="vorhandene Kopie des update-agent statt Download; "
|
||||
"die Pruefsumme wird trotzdem gegen installer.json geprueft")
|
||||
parser.add_argument("--dry-run", action="store_true",
|
||||
help="nur bauen und pruefen, nicht hochladen")
|
||||
args = parser.parse_args()
|
||||
@@ -125,7 +137,7 @@ def main() -> None:
|
||||
if args.no_agent:
|
||||
print(" uebersprungen (--no-agent)")
|
||||
else:
|
||||
fetch_agent(args.rid, out_dir)
|
||||
fetch_agent(args.rid, out_dir, args.agent_file)
|
||||
|
||||
total = sum(f.stat().st_size for f in out_dir.rglob("*") if f.is_file())
|
||||
print(f"\n {len(list(out_dir.rglob('*')))} Eintraege, {total / 1_048_576:.1f} MB")
|
||||
|
||||
Reference in New Issue
Block a user