feat(llm): add LLM integration instructions and handler

* Serve LLM instructions at `/llm`
* Include markdown content for memory instructions
* Update README with LLM integration details
* Add tests for LLM instructions handler
* Modify database migrations to use GUIDs for thoughts and projects
This commit is contained in:
Hein
2026-03-25 18:02:42 +02:00
parent cebef3a07c
commit 8d0a91a961
16 changed files with 600 additions and 41 deletions

22
internal/app/llm.go Normal file
View File

@@ -0,0 +1,22 @@
package app
import (
"net/http"
amcsllm "git.warky.dev/wdevs/amcs/llm"
)
func serveLLMInstructions(w http.ResponseWriter, r *http.Request) {
if r.URL.Path != "/llm" {
http.NotFound(w, r)
return
}
w.Header().Set("Content-Type", "text/markdown; charset=utf-8")
w.Header().Set("Cache-Control", "no-cache")
w.WriteHeader(http.StatusOK)
if r.Method == http.MethodHead {
return
}
_, _ = w.Write(amcsllm.MemoryInstructions)
}