Ladybug 0.19 stays FTS/HNSW queryable on MERGE of new ids; DROP INDEX was the fatal path. bin/brain/add.go and POST /ingest land facts+info in one transaction so watch/mail/git can become leafs now (Gitea #14).
22 lines
523 B
Go
Executable File
22 lines
523 B
Go
Executable File
//usr/bin/env go run -tags=brain_add "$0" "$@"; exit
|
|
//go:build brain_add
|
|
//
|
|
// bin/brain/add.go - incremental leaf write (Python kblib, no rebuild).
|
|
//
|
|
// ./bin/brain/add.go --text T --root facts --source "a.md x b.md"
|
|
// ./bin/brain/add.go --json
|
|
//
|
|
// D6: write stays Python. Does not delete var/kb.lbug.
|
|
// NOTE: never run `gofmt -w` on this file — it breaks the shebang.
|
|
package main
|
|
|
|
import (
|
|
"os"
|
|
|
|
"github.com/eSlider/2dph/internal/cmdbin"
|
|
)
|
|
|
|
func main() {
|
|
os.Exit(cmdbin.ExecFile("bin/kb/add", os.Args[1:]))
|
|
}
|