- New plugins_upper/ai_common/ static library: shared PluginConfig, ToolCallAccum, StreamContext, secure_zero, extract_host_port, serialize_tool_calls, free_chat_result - Refactored openai/anthropic plugins to use dstalk_ai:: namespace from ai_common - Fixed anthropic g_config raw pointer → std::atomic (data race) - Added SSE parse error counter with threshold abort (kMaxSseParseErrors=5) - Fixed missing closing brace in both plugins' error-body catch block - Updated test targets: ai_common include path + link, using namespace dstalk_ai - plugin_loader_test: added stub_unreg + service_registry.cpp for unregister_service - Includes pre-existing uncommitted changes from prior waves Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
9 lines
572 B
CMake
9 lines
572 B
CMake
# ============================================================
|
|
# 依赖其他插件的插件 / Plugins depending on non-base plugins
|
|
# ============================================================
|
|
|
|
add_subdirectory(ai_common) # 共享 AI 工具库(静态库)/ shared AI utility library (static)
|
|
add_subdirectory(context) # 依赖 session / depends on session
|
|
add_subdirectory(openai) # 依赖 http, config, ai_common / depends on http, config, ai_common
|
|
add_subdirectory(anthropic) # 依赖 http, config, ai_common / depends on http, config, ai_common
|