5f4f1f7508
Añade campos params y output al frontmatter YAML de las 506 funciones del registry. Cada parámetro tiene descripción semántica (qué representa, unidades, rango típico) y cada función describe qué produce su output. Permite a agentes razonar sobre cadenas de composición (ej: prices → log_return → sharpe_ratio) sin leer código.
882 B
882 B
name, kind, lang, domain, version, purity, signature, description, tags, uses_functions, uses_types, returns, returns_optional, error_type, imports, params, output, tested, tests, test_file_path, file_path
| name | kind | lang | domain | version | purity | signature | description | tags | uses_functions | uses_types | returns | returns_optional | error_type | imports | params | output | tested | tests | test_file_path | file_path | |||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| run_shell_timeout | function | go | shell | 1.0.0 | impure | func RunShellTimeout(command string, timeout time.Duration) core.Result[CmdResult] | Ejecuta un comando shell con timeout configurable. |
|
|
|
false | error_go_core |
|
|
Result[CmdResult] con stdout, stderr, exit code | false | functions/shell/run_shell_timeout.go |
Ejemplo
result := RunShellTimeout("long-running-cmd", 30*time.Second)
Notas
Implementacion en devfactory/shell.