W23: close mailroom metadata and network validation tests
Some checks failed
Some checks failed
- Refresh agents STATUS to W22.6 and exclude mailroom from metadata scans - Add mailroom dispatch checklist and defensive rules - Register F-23.D-1 and tag network input validation defense-in-depth - Update network plugin tests for header length limits - Fix LSP test metadata and remove orphan anthropic_internal.hpp Verification: - cmake --build build --config Release: 0 error, 0 warning - ctest --test-dir build --output-on-failure: 10/10 passed - ctest --test-dir build -R dstalk_smoke_test --output-on-failure: passed - python scripts/check_agents_metadata.py --strict: passed Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -1,46 +0,0 @@
|
||||
// ============================================================================
|
||||
// anthropic_internal.hpp — 内部声明:供单元测试访问的函数与数据结构
|
||||
// ============================================================================
|
||||
// 仅在 tests 中使用;非 plugin 公共 API
|
||||
// ============================================================================
|
||||
|
||||
#ifndef ANTHROPIC_INTERNAL_HPP
|
||||
#define ANTHROPIC_INTERNAL_HPP
|
||||
|
||||
#include "dstalk/dstalk_host.h"
|
||||
#include "dstalk/dstalk_services.h"
|
||||
|
||||
#include "ai_common.hpp"
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
// ---- 从 dstalk_ai 命名空间导入共享类型与函数 ----
|
||||
using dstalk_ai::PluginConfig;
|
||||
using dstalk_ai::ToolCallAccum;
|
||||
using dstalk_ai::StreamContext;
|
||||
using dstalk_ai::secure_zero;
|
||||
using dstalk_ai::extract_host_port;
|
||||
|
||||
// ---- 全局变量 ----
|
||||
extern PluginConfig g_cfg;
|
||||
extern std::string g_tools_json;
|
||||
|
||||
// ---- 测试用函数声明 ----
|
||||
bool parse_sse_data(const std::string& data, std::string& token_out,
|
||||
StreamContext* ctx);
|
||||
|
||||
std::string build_request_json(const dstalk_message_t* history, int history_len,
|
||||
const std::string& user_input,
|
||||
const std::string& tools_json,
|
||||
bool stream);
|
||||
|
||||
std::string build_headers_json();
|
||||
|
||||
void my_free_result(dstalk_chat_result_t* result);
|
||||
|
||||
int my_configure(const char* provider, const char* base_url,
|
||||
const char* api_key, const char* model,
|
||||
int max_tokens, double temperature);
|
||||
|
||||
#endif // ANTHROPIC_INTERNAL_HPP
|
||||
Reference in New Issue
Block a user