feat: campos documentation, notes y code en registry

Añade campos documentation, notes y code a functions y types.
El parser extrae el contenido del .md y el código fuente del archivo
referenciado en file_path. El indexer los almacena en SQLite y los
incluye en FTS5 para búsqueda sobre código y documentación.
Nueva migración 003_documentation.sql para añadir las columnas.
This commit is contained in:
2026-03-28 20:32:15 +01:00
parent 476696dd10
commit 49eecd0c87
7 changed files with 290 additions and 68 deletions
+10 -3
View File
@@ -47,6 +47,9 @@ type Function struct {
ErrorType string `json:"error_type"`
Imports []string `json:"imports"`
Example string `json:"example"`
Notes string `json:"notes"`
Documentation string `json:"documentation"`
Code string `json:"code"`
Tested bool `json:"tested"`
Tests []string `json:"tests"`
TestFilePath string `json:"test_file_path"`
@@ -82,9 +85,13 @@ type Type struct {
Description string `json:"description"`
Tags []string `json:"tags"`
UsesTypes []string `json:"uses_types"`
FilePath string `json:"file_path"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
Examples string `json:"examples"`
Notes string `json:"notes"`
Documentation string `json:"documentation"`
Code string `json:"code"`
FilePath string `json:"file_path"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
// ProposalKind classifies a proposal.