988e901066
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.
1.5 KiB
1.5 KiB
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 | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| win_firewall_remove_rule | function | ps | infra | 1.0.0 | impure | win_firewall_remove_rule -Name <string> | Elimina una regla del firewall de Windows por nombre. Si la regla no existe, termina con éxito sin hacer nada (idempotente). Requiere privilegios de Administrador. |
|
false | error_go_core |
|
Void - elimina regla del firewall de Windows, idempotente (no falla si no existe) | false | powershell/functions/infra/win_firewall_remove_rule.ps1 |
Uso
# Desde PowerShell (como Administrador)
.\win_firewall_remove_rule.ps1 -Name "CDP-9222"
# Desde WSL2
powershell.exe -ExecutionPolicy Bypass -File win_firewall_remove_rule.ps1 -Name "CDP-9222"
Parametros
| Parametro | Tipo | Obligatorio | Descripcion |
|---|---|---|---|
-Name |
string | si | Nombre exacto de la regla a eliminar |
Notas
- Requiere ejecutarse como Administrador en Windows.
- Idempotente: si la regla no existe, sale con exit code 0 y mensaje informativo.
- Complementa
win_firewall_add_rulepara teardown limpio de reglas temporales. - Retorna exit code 0 si tuvo éxito (o la regla no existía), 1 si hubo error.