Skip to content

Commit abdea86

Browse files
Copilot0xrinegade
andcommitted
Replace base58 stubs with real implementation, fix URL validation, add missing newlines
Co-authored-by: 0xrinegade <[email protected]>
1 parent c676ef7 commit abdea86

24 files changed

+241
-109
lines changed

cpp_sdk/CMakeLists.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@ endif()
1616

1717
# Compiler-specific options
1818
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
19-
add_compile_options(-Wall -Wextra -Wpedantic -Werror)
19+
add_compile_options(-Wall -Wextra -Wpedantic)
20+
# Only enable -Werror in CI/Release builds
21+
if(DEFINED ENV{CI} OR CMAKE_BUILD_TYPE STREQUAL "Release")
22+
add_compile_options(-Werror)
23+
endif()
2024
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
2125
add_compile_options(-g -O0 --coverage)
2226
endif()
@@ -79,7 +83,7 @@ add_custom_target(docs
7983
)
8084

8185
# Install configuration
82-
install(TARGETS aireg++ EXPORT aireg++Targets)
86+
install(TARGETS aireg++ aireg++_impl EXPORT aireg++Targets)
8387
install(DIRECTORY include/ DESTINATION include)
8488
install(EXPORT aireg++Targets
8589
FILE aireg++Targets.cmake

cpp_sdk/examples/agent_operations.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,4 +156,4 @@ int main() {
156156

157157
cleanup();
158158
return 0;
159-
}
159+
}

cpp_sdk/examples/basic_usage.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,4 +164,4 @@ int main() {
164164
std::cout << "SDK cleanup completed." << std::endl;
165165

166166
return 0;
167-
}
167+
}

cpp_sdk/examples/idl_generation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,4 @@ int main() {
6767

6868
cleanup();
6969
return 0;
70-
}
70+
}

cpp_sdk/examples/mcp_operations.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@ int main() {
4545

4646
cleanup();
4747
return 0;
48-
}
48+
}

cpp_sdk/examples/payment_flows.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@ int main() {
4646

4747
cleanup();
4848
return 0;
49-
}
49+
}

cpp_sdk/include/aireg++/agent.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,4 +276,4 @@ class Agent {
276276
std::unique_ptr<Impl> pimpl_;
277277
};
278278

279-
} // namespace SolanaAiRegistries
279+
} // namespace SolanaAiRegistries

cpp_sdk/include/aireg++/aireg++.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,4 @@ void initialize();
6666
*/
6767
void cleanup() noexcept;
6868

69-
} // namespace SolanaAiRegistries
69+
} // namespace SolanaAiRegistries

cpp_sdk/include/aireg++/client.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,4 +268,4 @@ class TransactionBuilder {
268268
std::unique_ptr<Impl> pimpl_;
269269
};
270270

271-
} // namespace SolanaAiRegistries
271+
} // namespace SolanaAiRegistries

cpp_sdk/include/aireg++/common.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#include <memory>
1717
#include <optional>
1818
#include <cstdint>
19+
#include <array>
1920

2021
namespace SolanaAiRegistries {
2122

@@ -283,4 +284,4 @@ class Resource {
283284
Deleter deleter_;
284285
};
285286

286-
} // namespace SolanaAiRegistries
287+
} // namespace SolanaAiRegistries

0 commit comments

Comments
 (0)