Endpoints: /health, /search, get leaf, stats, audit, ingest status.
Test
HTTP tests against a fake searcher; no Python in the serve path.
## Why
`bin/server` execs `bin/kb/search` (Python). Portable API must be Go in-process.
## Do
- `bin/brain/serve.go` + `internal/httpapi` call `internal/brain` search.
- Endpoints: `/health`, `/search`, get leaf, stats, audit, ingest status.
## Test
- HTTP tests against a fake searcher; no Python in the serve path.
Still open: true in-process call into internal/brain (needs cgo in the API binary / tagged build), extra HTTP endpoints (get/stats/audit).
Partial via https://github.com/eSlider/2dph/pull/9: `bin/brain/serve.go` + `internal/httpapi`. Default backend is `var/bin/brain-search` (Go), not Python.
Still open: true in-process call into `internal/brain` (needs cgo in the API binary / tagged build), extra HTTP endpoints (get/stats/audit).
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Why
bin/serverexecsbin/kb/search(Python). Portable API must be Go in-process.Do
bin/brain/serve.go+internal/httpapicallinternal/brainsearch./health,/search, get leaf, stats, audit, ingest status.Test
Partial via https://github.com/eSlider/2dph/pull/9:
bin/brain/serve.go+internal/httpapi. Default backend isvar/bin/brain-search(Go), not Python.Still open: true in-process call into
internal/brain(needs cgo in the API binary / tagged build), extra HTTP endpoints (get/stats/audit).Merged https://github.com/eSlider/2dph/pull/13 — in-process search. Closing.