chore: auto-commit (6 archivos)

- CMakeLists.txt
- main.cpp
- data_collectors.cpp
- data_collectors.h
- runner.cpp
- runner.h

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 f7923de9ff
commit d3af7d54ff
6 changed files with 431 additions and 6 deletions
+18
View File
@@ -0,0 +1,18 @@
#pragma once
#include <string>
#include <vector>
struct Collector {
std::string id; // basename del directorio (ej. "api_hn_top")
std::string name; // del manifest (fallback id)
std::string description; // del manifest
std::string dir; // path absoluto al directorio del collector
std::string run_py; // path absoluto al run.py
bool has_run = false;
};
// Enumera <collectors_root>/*/manifest.yaml + run.py.
// Parsing manifest minimo: solo lee `id`, `name:`, `description:` por linea (sin yaml-cpp).
bool collectors_discover(const std::string& collectors_root,
std::vector<Collector>& out);