Restore D14: bin/brain method shebangs, no kb or main.go #13

Closed
opened 2026-08-13 14:05:48 +01:00 by eSlider · 7 comments
Owner

Why

bin/kb vs bin/kbsearch/main.go vs bash builders violates bin/{subject}/{method}.go.

Do

  • Commands: bin/brain/{search,get,stats,eval,index,watch,serve}.go shebangs. Libs in internal/brain, internal/httpapi.
  • Same for chats/mail/markdown/web/postgres/git/facts. No main.go under bin. No nested modules.
  • import stays on origins. Brain write in v1 is index (rebuild). add is v2.

Test

  • Failing tests first for any moved package. ls bin/brain names methods. CI paths updated. No kb in new docs.
## Why `bin/kb` vs `bin/kbsearch/main.go` vs bash builders violates `bin/{subject}/{method}.go`. ## Do - Commands: `bin/brain/{search,get,stats,eval,index,watch,serve}.go` shebangs. Libs in `internal/brain`, `internal/httpapi`. - Same for chats/mail/markdown/web/postgres/git/facts. No `main.go` under bin. No nested modules. - `import` stays on origins. Brain write in v1 is `index` (rebuild). `add` is v2. ## Test - Failing tests first for any moved package. `ls bin/brain` names methods. CI paths updated. No `kb` in new docs.
Author
Owner

Partial via https://github.com/eSlider/2dph/pull/8: bin/brain/search.go + internal/brain (rank cgo-free). bin/kb/search is a deprecation wrapper.

Still open on this issue: bin/chats/main.go, bin/serve.go at bin root, bin/mail/import Python, bin/md → markdown, bin/db → postgres, no brain/index.go yet.

Partial via https://github.com/eSlider/2dph/pull/8: `bin/brain/search.go` + `internal/brain` (rank cgo-free). `bin/kb/search` is a deprecation wrapper. Still open on this issue: `bin/chats/main.go`, `bin/serve.go` at bin root, `bin/mail/import` Python, `bin/md` → markdown, `bin/db` → postgres, no `brain/index.go` yet.
Author
Owner

Also: bin/brain/serve.go + internal/httpapi in https://github.com/eSlider/2dph/pull/9. bin/serve.go is a deprecation shim.

Also: `bin/brain/serve.go` + `internal/httpapi` in https://github.com/eSlider/2dph/pull/9. `bin/serve.go` is a deprecation shim.
Author
Owner

Partial via https://github.com/eSlider/2dph/pull/11: bin/chats/{sync,import,facts,apply}.go + internal/chats. chats index removed.

Still open: bin/mail/import.go, bin/markdown/import.go, bin/brain/index.go, drop mail/index_mail.

Partial via https://github.com/eSlider/2dph/pull/11: `bin/chats/{sync,import,facts,apply}.go` + `internal/chats`. `chats index` removed. Still open: `bin/mail/import.go`, `bin/markdown/import.go`, `bin/brain/index.go`, drop `mail/index_mail`.
Author
Owner

Partial via https://github.com/eSlider/2dph/pull/12: bin/brain/{index,get,stats,eval,watch}.go, bin/mail/import.go, bin/markdown/import.go, bin/postgres/query.go. index_mail is a shim to --rebuild --with-mail.

Still open after this PR: Go Ladybug write path (add v2), facts/web/git shebangs.

Partial via https://github.com/eSlider/2dph/pull/12: `bin/brain/{index,get,stats,eval,watch}.go`, `bin/mail/import.go`, `bin/markdown/import.go`, `bin/postgres/query.go`. `index_mail` is a shim to `--rebuild --with-mail`. Still open after this PR: Go Ladybug write path (`add` v2), facts/web/git shebangs.
Author
Owner

Partial: git history is go-git (bin/git/import.go + internal/gitlog). No git binary. Conversion only; brain write remains bin/brain/index.go.

GitHub: https://github.com/eSlider/2dph/pull/15

Still open on #13: facts/web shebangs remainder.

Partial: git history is go-git (`bin/git/import.go` + `internal/gitlog`). No git binary. Conversion only; brain write remains `bin/brain/index.go`. GitHub: https://github.com/eSlider/2dph/pull/15 Still open on #13: facts/web shebangs remainder.
Author
Owner

Partial: web shebang is bin/web/search.go. Still open on #13: facts/ methods.

GitHub: https://github.com/eSlider/2dph/pull/16

Partial: web shebang is `bin/web/search.go`. Still open on #13: `facts/` methods. GitHub: https://github.com/eSlider/2dph/pull/16
Author
Owner

Done via GitHub https://github.com/eSlider/2dph/pull/19. bin/facts/{audit,extract,crm}.go shebangs wrap Python. Remaining Python write/import is #14.

Done via GitHub https://github.com/eSlider/2dph/pull/19. `bin/facts/{audit,extract,crm}.go` shebangs wrap Python. Remaining Python write/import is #14.
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: eSlider/2dph#13