feat: fn run — ejecución multi-lenguaje de funciones y pipelines desde CLI

Nuevo comando que despacha automáticamente según lenguaje: Go pipelines con
go run, Go functions con go test/vet, Python con venv y -m para imports
relativos, Bash directo, TypeScript con tsx del frontend. Resolución por
nombre con desambiguación. Añadido GetFunctionsByName al store y tsx al frontend.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-28 23:23:12 +01:00
parent 4808e16629
commit ebbc3bfdab
5 changed files with 527 additions and 8 deletions
+10
View File
@@ -239,6 +239,16 @@ func (db *DB) GetType(id string) (*Type, error) {
return &ts[0], nil
}
// GetFunctionsByName returns all functions matching a given name (across langs/domains).
func (db *DB) GetFunctionsByName(name string) ([]Function, error) {
rows, err := db.conn.Query("SELECT * FROM functions WHERE name = ? ORDER BY lang, domain", name)
if err != nil {
return nil, err
}
defer rows.Close()
return scanFunctions(rows)
}
// DeleteFunction removes a function by ID.
func (db *DB) DeleteFunction(id string) error {
_, err := db.conn.Exec("DELETE FROM functions WHERE id = ?", id)