连接器客户端

This commit is contained in:
tianmo
2026-09-05 23:35:45 +08:00
parent d10807d877
commit 41151b7f8b
28 changed files with 2195 additions and 12 deletions
+23
View File
@@ -0,0 +1,23 @@
#pragma once
#include <filesystem>
#include <string>
#include <vector>
namespace connector {
struct ProcessResult {
int exit_code = -1;
bool timed_out = false;
std::string output;
};
std::string platform_name();
std::string find_spine_executable();
bool valid_spine_executable(const std::string& path);
ProcessResult run_process(const std::string& executable,
const std::vector<std::string>& arguments,
const std::filesystem::path& working_directory,
int timeout_seconds);
} // namespace connector