mirror of
https://github.com/0xWheatyz/handler.git
synced 2026-08-30 18:26:25 +00:00
71a7550f48
Git servers (forge_hosts) become full credential owners: - an encrypted forge token (Fernet, HANDLER_SECRET_KEY) stored per server and never returned by the API (has_token flag only); used automatically by every project on that host and addressable as db:host:<hostname> — the reserved db: credential scheme is now live - a per-server ed25519 SSH deploy key: generated server-side, public half shown in the dashboard to paste into the forge, private half encrypted at rest and materialized 0600 only in the control container (GIT_SSH_COMMAND / core.sshCommand) Project registration gets a git-server mode: pick a registered server, type owner/name, and the API derives the remote (ssh when the server has a deploy key, https otherwise), computes root_dir under PROJECTS_ROOT, and enqueues a new 'sync' command the worker executes (clone, or ff-only pull). Spawn always pulls first, so runs start from the remote's latest state; POST /projects/:p/sync and 'handler sync' re-pull on demand. Schedules: recurring agent spawns (prefix, prompt, interval, role). The worker fires due schedules as ordinary queued spawn commands with timestamped agent names, so runs are fresh stateless agents and appear in the Activity audit trail; missed intervals collapse into one catch-up run. Dashboard: Git Servers pane shows the SSH public key (copy button) and takes a write-only token; Repositories gains the server-first add form and a Pull now button; new Schedules pane. Rebuilt static export. Also restores the missing frontend/lib (api client + format helpers) the components import. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XY1tEhQZXHZ5wci7dLc7rM
51 lines
1.2 KiB
TOML
51 lines
1.2 KiB
TOML
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[project]
|
|
name = "handler"
|
|
version = "0.1.0"
|
|
description = "Remote control wrapper for Claude Code agents across isolated projects"
|
|
readme = "README.md"
|
|
requires-python = ">=3.11"
|
|
license = { text = "MIT" }
|
|
dependencies = [
|
|
"fastapi>=0.115,<0.116",
|
|
"uvicorn[standard]>=0.34,<0.35",
|
|
"sqlalchemy>=2.0,<2.1",
|
|
"alembic>=1.14,<1.15",
|
|
"psycopg[binary]>=3.2,<3.3",
|
|
"pydantic>=2.10,<3.0",
|
|
"pydantic-settings>=2.7,<3.0",
|
|
"httpx>=0.28,<0.29",
|
|
"cryptography>=41,<46",
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
dev = [
|
|
"pytest>=8.3,<9.0",
|
|
"respx>=0.22,<0.23",
|
|
"ruff>=0.9,<0.10",
|
|
]
|
|
|
|
[project.scripts]
|
|
handler = "handler.control.cli:main"
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
# The bundled web UI (src/handler/api/static/*) ships automatically: it lives inside the
|
|
# packaged `src/handler` tree, and hatchling includes non-.py files there by default.
|
|
packages = ["src/handler"]
|
|
|
|
[tool.pytest.ini_options]
|
|
testpaths = ["tests"]
|
|
pythonpath = ["src"]
|
|
|
|
[tool.ruff]
|
|
src = ["src", "tests"]
|
|
line-length = 100
|
|
|
|
[tool.ruff.lint]
|
|
select = ["E", "F", "I", "W", "UP", "B"]
|
|
# B008: FastAPI's Depends()/Query() in argument defaults is the framework's idiom.
|
|
ignore = ["B008"]
|