2d7f814a23
Slice 1: internal/service is the one capability layer both the HTTP API and the MCP server call (AGENT.md 1.7); /api/repos and /api/repo route through it. Slice 2: internal/mcp serves an MCP server over Streamable HTTP at /mcp (go-sdk v1.8.0) with read tools list_repos and get_repo as thin adapters over the service, plus a round-trip test. Enabled air polling so hot reload works across the Docker-on-Windows bind mount. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
26 lines
777 B
TOML
26 lines
777 B
TOML
# Hot reload for the dev container (AGENT.md §2). Static assets under web/static
|
|
# and components/ are served live from disk, so they need no rebuild; only Go
|
|
# and template (.html) changes trigger a rebuild + restart.
|
|
|
|
root = "."
|
|
tmp_dir = "tmp"
|
|
|
|
[build]
|
|
cmd = "go build -o ./tmp/gitmanager ./cmd/server"
|
|
bin = "./tmp/gitmanager"
|
|
include_ext = ["go", "html"]
|
|
exclude_dir = ["tmp", "bin", ".git", "repos"]
|
|
delay = 500
|
|
stop_on_error = true
|
|
# Poll for changes instead of relying on fsnotify: filesystem events do NOT
|
|
# cross the Windows host -> Linux container bind mount, so watch-based reload
|
|
# silently never fires. Polling is the reliable option in Docker on Windows.
|
|
poll = true
|
|
poll_interval = 500
|
|
|
|
[log]
|
|
time = true
|
|
|
|
[misc]
|
|
clean_on_exit = true
|