feat: Add agent folder structure verification and improve CMake cache cleaning

- Introduced Test-AgentFolderStructure function to verify the presence of required agent files and check for old structure indicators.
- Enhanced Clean-CMakeCache function to provide better error handling and clean additional CMake-generated files.
- Updated build process to include agent folder structure checks before CMake configuration.
This commit is contained in:
scawful
2025-10-04 19:16:26 -04:00
parent 5fe73657c3
commit 226bcf8686
2 changed files with 120 additions and 7 deletions

View File

@@ -103,6 +103,9 @@ absl::StatusOr<AgentEditor::SessionInfo> AgentEditor::HostSession(
// Get username from system (could be made configurable)
const char* username = std::getenv("USER");
if (!username) {
username = std::getenv("USERNAME"); // Windows fallback
}
if (!username) {
username = "unknown";
}
@@ -172,6 +175,9 @@ absl::StatusOr<AgentEditor::SessionInfo> AgentEditor::JoinSession(
}
const char* username = std::getenv("USER");
if (!username) {
username = std::getenv("USERNAME"); // Windows fallback
}
if (!username) {
username = "unknown";
}