feat(infra): auto-commit con 11 cambios

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-10 13:30:27 +02:00
parent 0c1727fef7
commit 231d5d87a6
10 changed files with 496 additions and 12 deletions
+15 -2
View File
@@ -15,7 +15,20 @@ set -euo pipefail
build_cpp_windows() {
local target="${1:-}"
local registry_root="${FN_REGISTRY_ROOT:-$(cd "$(dirname "${BASH_SOURCE[0]}")/../../.." && pwd)}"
local registry_root="${FN_REGISTRY_ROOT:-}"
if [ -z "$registry_root" ]; then
local d="$PWD"
while [ "$d" != "/" ]; do
if [ -f "$d/registry.db" ] && [ -d "$d/cpp" ]; then
registry_root="$d"; break
fi
d="$(dirname "$d")"
done
fi
if [ -z "$registry_root" ]; then
echo "[build_cpp_windows] No se localiza la raiz del registry. Exporta FN_REGISTRY_ROOT." >&2
return 2
fi
local cpp_root="$registry_root/cpp"
local build_dir="${BUILD_WIN:-$cpp_root/build/windows}"
local toolchain="$cpp_root/toolchains/mingw-w64.cmake"
@@ -46,6 +59,6 @@ build_cpp_windows() {
}
# Invocacion directa como script (compatibilidad).
if [ "${BASH_SOURCE[0]}" = "${0}" ]; then
if [ "${BASH_SOURCE[0]:-}" = "${0:-}" ] && [ -n "${BASH_SOURCE[0]:-}" ]; then
build_cpp_windows "$@"
fi
@@ -54,6 +54,14 @@ deploy_cpp_exe_to_windows() {
"$app_dir/enrichers/" "$assets/enrichers/"
fi
# --- 7b. collectors/ del app_dir -> assets/collectors/ (odr_console) ---
if [ -d "$app_dir/collectors" ]; then
rsync -a --delete \
--exclude '__pycache__' \
--exclude '*.pyc' \
"$app_dir/collectors/" "$assets/collectors/"
fi
# --- 8. runtime/ Python embebido -> assets/runtime/ ---
if grep -q '^python_runtime:[[:space:]]*true' "$app_dir/app.md" 2>/dev/null; then
if [ ! -d "$app_dir/runtime/python" ] || \