mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-22 16:25:51 +00:00
feat: 添加 Provider Registry、StatusLine、Cache Stats 和其他增强
- providerRegistry: OpenAI 兼容 provider 切换(Cerebras/Groq/DeepSeek/Qwen) - StatusLine: 增强状态栏(缓存命中率、TTL 倒计时、自定义 shell 命令) - cacheStats: 缓存命中率和 token 签名追踪 - ultrareviewPreflight: 代码审查预检服务 - SkillsMenu/filterSkills: 技能菜单过滤增强 - MagicDocs/langfuse prompts: 提示词更新 - claude.ts: API 客户端更新 Co-Authored-By: glm-5-turbo <zai-org@claude-code-best.win>
This commit is contained in:
@@ -7,7 +7,16 @@ const REDACTED_FILE_TOOLS = new Set([
|
||||
'FileEditTool',
|
||||
])
|
||||
const REDACTED_SHELL_TOOLS = new Set(['BashTool', 'PowerShellTool'])
|
||||
const SENSITIVE_OUTPUT_TOOLS = new Set(['ConfigTool', 'MCPTool'])
|
||||
// Vault-class tools and tools that intentionally surface user secrets must
|
||||
// have their tool_result redacted in Langfuse traces. PR-2 ships VaultHttpFetch;
|
||||
// LocalVaultFetch is reserved for a future PR. Adding both here proactively
|
||||
// keeps Langfuse export safe even before the tools land.
|
||||
const SENSITIVE_OUTPUT_TOOLS = new Set([
|
||||
'ConfigTool',
|
||||
'MCPTool',
|
||||
'VaultHttpFetch',
|
||||
'LocalVaultFetch',
|
||||
])
|
||||
|
||||
function escapeRegExp(value: string): string {
|
||||
return value.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')
|
||||
|
||||
Reference in New Issue
Block a user