refactor(tools): bin/{subject}/{method} layout; Go serve+watch modules

Move serve/ (module) -> bin/server, tools/ -> bin/tools, replace bin/kb-watch
bash with bin/watch Go package; self-executing Go shebangs bin/serve.go and
bin/kb/watch.go; Docker + CI + git/import + docs repointed. Multi-stage image
builds static serve+watch binaries (no Go runtime in container).
This commit is contained in:
2026-08-11 09:52:20 +01:00
parent e2eff3b9c7
commit 9f22380e82
44 changed files with 707 additions and 89 deletions
+2 -4
View File
@@ -31,18 +31,16 @@ jobs:
run: |
bash -n bin/db/psql-yq
bash -n bin/db/ssh-tunnel
bash -n bin/kb-watch
bash -n bin/docker-entrypoint
- name: Python unit tests (offline, vendored tools)
run: |
uv run python -m unittest discover -s tools -t .
uv run python -m unittest discover -s bin/tools -t .
- name: Go serve tests (async, goroutine-bounded)
- name: Go tests (server + watch packages)
run: |
go vet ./...
go test ./... -count=1
working-directory: serve
- name: facts/audit self (lexicon consistency, no network)
run: |