Directories
¶
| Path | Synopsis |
|---|---|
|
bin
|
|
|
brain
command
Commands in this directory are shebang mains (search.go, serve.go, index.go, get.go, stats.go, eval.go, watch.go), each behind an exclusive build tag.
|
Commands in this directory are shebang mains (search.go, serve.go, index.go, get.go, stats.go, eval.go, watch.go), each behind an exclusive build tag. |
|
chat
command
Commands in this directory are shebang mains (sync.go, import.go, facts.go, apply.go), each behind an exclusive build tag so `go build ./bin/chat` does not see two mains.
|
Commands in this directory are shebang mains (sync.go, import.go, facts.go, apply.go), each behind an exclusive build tag so `go build ./bin/chat` does not see two mains. |
|
cron
command
usr/bin/env go run "$0" "$@"; exit
|
usr/bin/env go run "$0" "$@"; exit |
|
facts
command
usr/bin/env bash -c 'exec go run "$0" "$@"' "$0" "$@"; exit
|
usr/bin/env bash -c 'exec go run "$0" "$@"' "$0" "$@"; exit |
|
mail
command
usr/bin/env go run "$0" "$@"; exit bin/mail/sync.go - async download of OnlyOffice, Gmail and M365 mail to var/corpus/mail/.
|
usr/bin/env go run "$0" "$@"; exit bin/mail/sync.go - async download of OnlyOffice, Gmail and M365 mail to var/corpus/mail/. |
|
mail/watch
command
usr/bin/env go run "$0" "$@"; exit
|
usr/bin/env go run "$0" "$@"; exit |
|
markdown
command
Commands in this directory are shebang mains (import.go), tagged so `go build ./bin/markdown` does not see two mains.
|
Commands in this directory are shebang mains (import.go), tagged so `go build ./bin/markdown` does not see two mains. |
|
onlyoffice
command
Commands in this directory are shebang mains (import-contact.go, reconcile-contact.go, …), each behind an exclusive build tag so `go build ./bin/onlyoffice` does not see two mains.
|
Commands in this directory are shebang mains (import-contact.go, reconcile-contact.go, …), each behind an exclusive build tag so `go build ./bin/onlyoffice` does not see two mains. |
|
postgres
command
Commands in this directory are shebang mains (query.go).
|
Commands in this directory are shebang mains (query.go). |
|
reasoner
command
Commands in this directory are shebang mains (bakeoff.go).
|
Commands in this directory are shebang mains (bakeoff.go). |
|
runner
command
usr/bin/env go run "$0" "$@"; exit
|
usr/bin/env go run "$0" "$@"; exit |
|
semver
command
usr/bin/env go run "$0" "$@"; exit
|
usr/bin/env go run "$0" "$@"; exit |
|
shell
command
usr/bin/env go run "$0" "$@"; exit
|
usr/bin/env go run "$0" "$@"; exit |
|
stack
command
usr/bin/env go run "$0" "$@"; exit
|
usr/bin/env go run "$0" "$@"; exit |
|
web
command
usr/bin/env go run "$0" "$@"; exit
|
usr/bin/env go run "$0" "$@"; exit |
|
internal
|
|
|
address
Package address implements canonical content URL addressing for the ETL layer (AGENTS #100).
|
Package address implements canonical content URL addressing for the ETL layer (AGENTS #100). |
|
brain
Потоковая/чанкованная запись корпуса (issue #237): корпус не накапливается в одном срезе — CountCorpus считает leafs, WriteCorpusChunked стримит источники и пишет чанками по size.
|
Потоковая/чанкованная запись корпуса (issue #237): корпус не накапливается в одном срезе — CountCorpus считает leafs, WriteCorpusChunked стримит источники и пишет чанками по size. |
|
brain/bench
Package bench implements the A/B search benchmark harness (issue #202): a fixed golden-set of queries is run through a search implementation and scored on latency (p50/p95/mean), recall@5/@10 and CPU/RSS.
|
Package bench implements the A/B search benchmark harness (issue #202): a fixed golden-set of queries is run through a search implementation and scored on latency (p50/p95/mean), recall@5/@10 and CPU/RSS. |
|
brain/rank
Package rank is the cgo-free ranking and CLI parsing for brain search.
|
Package rank is the cgo-free ranking and CLI parsing for brain search. |
|
canon
Package canon is the conversation-canon evidence layer for the sync-ETL pipeline (epic #88, issue #99).
|
Package canon is the conversation-canon evidence layer for the sync-ETL pipeline (epic #88, issue #99). |
|
config
Package config loads the typed 2dph configuration.
|
Package config loads the typed 2dph configuration. |
|
contract
Package contract — единый контракт записи leaf в Ladybug (2dph).
|
Package contract — единый контракт записи leaf в Ladybug (2dph). |
|
corpus
Package corpus — адаптеры источников корпуса (P-9.3), cgo-free.
|
Package corpus — адаптеры источников корпуса (P-9.3), cgo-free. |
|
corpuswatch
Package watch polls corpus directories for changes and re-runs brain/index.
|
Package watch polls corpus directories for changes and re-runs brain/index. |
|
cron
Package cron implements periodic extraction → brain ingest daemons.
|
Package cron implements periodic extraction → brain ingest daemons. |
|
docbody
Package docbody enriches gator kind=document Leafs with the text of the PDF body (T12, #310).
|
Package docbody enriches gator kind=document Leafs with the text of the PDF body (T12, #310). |
|
docgraph
Package docgraph — коннектор gator kind=document → searchable Leaf (C1 #117, ADR-0013).
|
Package docgraph — коннектор gator kind=document → searchable Leaf (C1 #117, ADR-0013). |
|
dockerctl
Package dockerctl is a minimal Docker Engine API client over the local unix socket, enough for the index-sync cycle to quiesce and restart the compose brain service: find one container by compose labels, stop it, start it, inspect its running/health state.
|
Package dockerctl is a minimal Docker Engine API client over the local unix socket, enough for the index-sync cycle to quiesce and restart the compose brain service: find one container by compose labels, stop it, start it, inspect its running/health state. |
|
docpipe
Package docpipe implements the hybrid PDF handler PoC (epic #219, issue #223): a pdftotext -layout fast path for text-layer PDFs plus the warm liteparse JSON path (docker compose exec via internal/research.Runner) for scans/complex documents, with table reconstruction from text_items geometry (y-buckets → rows, x-sort → cells).
|
Package docpipe implements the hybrid PDF handler PoC (epic #219, issue #223): a pdftotext -layout fast path for text-layer PDFs plus the warm liteparse JSON path (docker compose exec via internal/research.Runner) for scans/complex documents, with table reconstruction from text_items geometry (y-buckets → rows, x-sort → cells). |
|
etl
Registry maps stable handler keys ("mail", "git", "markdown", "facts", …) to a Handler.
|
Registry maps stable handler keys ("mail", "git", "markdown", "facts", …) to a Handler. |
|
facts
Package facts is cgo-free evidence rules: D16 contradictions (Adjudicate/CheckFactRow) and L-9.3 formal URL checks (CheckFormal/CanonicalURL, identity/contradiction/excluded_middle).
|
Package facts is cgo-free evidence rules: D16 contradictions (Adjudicate/CheckFactRow) and L-9.3 formal URL checks (CheckFormal/CanonicalURL, identity/contradiction/excluded_middle). |
|
gitgraph
Package gitgraph — коннектор git-истории → граф 2dph (L-9.4 #233).
|
Package gitgraph — коннектор git-истории → граф 2dph (L-9.4 #233). |
|
gitlog
Package gitlog reads commit history with go-git (no git binary).
|
Package gitlog reads commit history with go-git (no git binary). |
|
incubator
Package incubator imports legacy mail corpora (Thunderbird profile dumps, .eml trees) into a docker-mailserver incubator mailbox via doveadm save (issue #252 / epic #250).
|
Package incubator imports legacy mail corpora (Thunderbird profile dumps, .eml trees) into a docker-mailserver incubator mailbox via doveadm save (issue #252 / epic #250). |
|
indexsync
Corpus flag/env plumbing for the index-loop CLI (#317): the skills tree is indexed by brain-index --corpus as part of the periodic cycle.
|
Corpus flag/env plumbing for the index-loop CLI (#317): the skills tree is indexed by brain-index --corpus as part of the periodic cycle. |
|
items
Package items implements granular content splitting (AGENTS #100): an html/markdown body is decomposed BEFORE insertion into a typed tree of Items (paragraph / heading / table / row / cell / image / link / page).
|
Package items implements granular content splitting (AGENTS #100): an html/markdown body is decomposed BEFORE insertion into a typed tree of Items (paragraph / heading / table / row / cell / image / link / page). |
|
mailconv
Type-handler registry for mail attachments, keyed by MIME type + extension.
|
Type-handler registry for mail attachments, keyed by MIME type + extension. |
|
mailgraph
Package mailgraph — коннектор gator kind=mail → граф 2dph (D-1.3 #260).
|
Package mailgraph — коннектор gator kind=mail → граф 2dph (D-1.3 #260). |
|
mailsync
Package synccmd wires the sync library to a CLI: reads .env, parses flags, picks sources, prints stats.
|
Package synccmd wires the sync library to a CLI: reads .env, parses flags, picks sources, prints stats. |
|
network
Package network — сеть связей L-9.5 (#234): «с кем и через кого» из mail+commits поверх готового графа (D-1 #257: Message/Person/рёбра; L-9.4 #233: Commit/Person/AUTHORED).
|
Package network — сеть связей L-9.5 (#234): «с кем и через кого» из mail+commits поверх готового графа (D-1 #257: Message/Person/рёбра; L-9.4 #233: Commit/Person/AUTHORED). |
|
ocr
Package ocr runs Tesseract (eng+deu) on images and scanned PDFs.
|
Package ocr runs Tesseract (eng+deu) on images and scanned PDFs. |
|
oohtml
Package oohtml builds the branded produktor.io HTML mail template and runs the render-check gate that blocks sending until the draft round-trips with paragraphs, the cid-embedded logo and the signature intact.
|
Package oohtml builds the branded produktor.io HTML mail template and runs the render-check gate that blocks sending until the draft round-trips with paragraphs, the cid-embedded logo and the signature intact. |
|
ooimport
Package ooimport — коннектор сети связей → OnlyOffice CRM (N-1.2 #269, epic #267).
|
Package ooimport — коннектор сети связей → OnlyOffice CRM (N-1.2 #269, epic #267). |
|
research
Package research holds the liteparse integration primitives shared by the A/B harness (bin/research/ab.go) and the struct-data ETL tool (bin/research/convert.go).
|
Package research holds the liteparse integration primitives shared by the A/B harness (bin/research/ab.go) and the struct-data ETL tool (bin/research/convert.go). |
|
rules
Package rules — типизированный каталог правил вывода (epic #324).
|
Package rules — типизированный каталог правил вывода (epic #324). |
|
runner
Package runner wires the bounded sync-ETL pipeline (#98):
|
Package runner wires the bounded sync-ETL pipeline (#98): |
|
selector
Package selector implements the point-retrieval selector mini-language (AGENTS #100): a DOM/jQuery-like structural selector over a typed Item tree.
|
Package selector implements the point-retrieval selector mini-language (AGENTS #100): a DOM/jQuery-like structural selector over a typed Item tree. |
|
skills
Package skills validates that in-repo skills only reference tools that exist.
|
Package skills validates that in-repo skills only reference tools that exist. |
|
source
Package source implements the unified sync-ETL Source adapter layer (#97).
|
Package source implements the unified sync-ETL Source adapter layer (#97). |
|
websearch
Package websearch is the SearXNG client used as the second independent source.
|
Package websearch is the SearXNG client used as the second independent source. |
|
pkg
|
|
|
brainclient
Package brainclient — сервисный клиент read-контракта brain (P-9.5, docs/brain/read-contract.md): тонкая HTTP-обёртка над search/get/stats/ audit с typed-ответами internal/contract (JSON-схема P-9.4) и «гейтом facts» (gate.go) — клиент никогда не выдаёт не подтверждённый ответ как подтверждённый факт.
|
Package brainclient — сервисный клиент read-контракта brain (P-9.5, docs/brain/read-contract.md): тонкая HTTP-обёртка над search/get/stats/ audit с typed-ответами internal/contract (JSON-схема P-9.4) и «гейтом facts» (gate.go) — клиент никогда не выдаёт не подтверждённый ответ как подтверждённый факт. |
|
brainclient/cli
Package cli — CLI bin/brain/client.go: сервисный клиент read-контракта brain (P-9.5).
|
Package cli — CLI bin/brain/client.go: сервисный клиент read-контракта brain (P-9.5). |
|
cli
Package cli is the shared flaggy wrapper (D23).
|
Package cli is the shared flaggy wrapper (D23). |
|
duckdb
Package duckdb runs in-process DuckDB for columnar aggregates.
|
Package duckdb runs in-process DuckDB for columnar aggregates. |
|
httpapi
Package httpapi serves the 2dph brain over HTTP.
|
Package httpapi serves the 2dph brain over HTTP. |
|
utils
Package utils holds small, dependency-free helpers shared across pkg/ and internal/.
|
Package utils holds small, dependency-free helpers shared across pkg/ and internal/. |
|
test
|
|
|
stress
command
usr/bin/env go run "$0" "$@"; exit
|
usr/bin/env go run "$0" "$@"; exit |
|
system
command
usr/bin/env go run "$0" "$@"; exit
|
usr/bin/env go run "$0" "$@"; exit |
Click to show internal directories.
Click to hide internal directories.