- 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>
16 lines
667 B
Batchfile
16 lines
667 B
Batchfile
@echo off
|
|
:: ============================================================
|
|
:: env.bat — 将 tools\ 内工具加入 PATH
|
|
:: ============================================================
|
|
|
|
set "TOOLS=%~dp0"
|
|
|
|
if exist "%TOOLS%cmake\bin" set "PATH=%TOOLS%cmake\bin;%PATH%"
|
|
if exist "%TOOLS%ninja" set "PATH=%TOOLS%ninja;%PATH%"
|
|
if exist "%TOOLS%llvm\bin" set "PATH=%TOOLS%llvm\bin;%PATH%"
|
|
if exist "%TOOLS%llvm\bin\clang-cl.exe" set "CC=%TOOLS%llvm\bin\clang-cl.exe"
|
|
if exist "%TOOLS%llvm\bin\clang-cl.exe" set "CXX=%TOOLS%llvm\bin\clang-cl.exe"
|
|
if exist "%TOOLS%.venv\Scripts" set "PATH=%TOOLS%.venv\Scripts;%PATH%"
|
|
|
|
echo [dstalk] tools\ 工具链已加载
|