Servers and the agent, backend (2.1.0): join, jobs, schedules, port list, stats, alerts

- Agent API /api/agent/v1: join with a one-time token, then poll, stats,
  report and export upload, all signed with the server's Ed25519 key.
- Jobs signed with a separate job key (HUB_JOB_SIGNING_KEY_FILE) when
  delivered, config sealed to the server; one at a time per server;
  missed when not picked up in their window.
- New install (licence, ports, preflight against the release's env
  template), Proxy done with public URL checks, scheduled / emergency
  (2FA, reason) / batch updates with email and banner, uninstall with
  an encrypted export first (the key is never stored), adopt and
  linking existing installs, purge after 30 days.
- Port list, install defaults, server configuration (encrypted), stats
  per minute / hour with roll-up, server alerts. contracts 1.3.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-17 13:12:28 +02:00
co-authored by Claude Opus 5.5
parent 9aa06ae894
commit 041461f2b5
20 changed files with 2237 additions and 47 deletions
+4 -4
View File
@@ -10,7 +10,7 @@
"hasInstallScript": true,
"dependencies": {
"@anthropic-ai/sdk": "^1.3.0",
"@crosscode/contracts": "file:vendor/crosscode-contracts-1.1.0.tgz",
"@crosscode/contracts": "file:vendor/crosscode-contracts-1.3.0.tgz",
"@prisma/adapter-pg": "^7.10.1",
"@prisma/client": "^7.10.1",
"bcryptjs": "^2.4.3",
@@ -609,9 +609,9 @@
"license": "MIT"
},
"node_modules/@crosscode/contracts": {
"version": "1.1.0",
"resolved": "file:vendor/crosscode-contracts-1.1.0.tgz",
"integrity": "sha512-k/7fFcjNh79B4la+GUxzh/buFtnM6G+5JPxxKvhXNdlIXvon/45VErzEKYsnDnL8pF3fQHldJcfeFtLm52Q47A==",
"version": "1.3.0",
"resolved": "file:vendor/crosscode-contracts-1.3.0.tgz",
"integrity": "sha512-T9RVPg3WDhqvEldqToPfp/6HSce0K26BGNvbM0Ksz8uvteXk/OfdARF3mwlDMcmsrp32pQ4w5D62GMTziuSX8A==",
"license": "UNLICENSED",
"dependencies": {
"zod": "^4.6.7"