chore: sync latest Claude Code system prompt definitions

Add claudeOtherSystemPrompt5 for CLI billing header detection
This commit is contained in:
shaw
2026-01-22 15:07:10 +08:00
parent 0f5321b0ef
commit 645ab43675
2 changed files with 6 additions and 1 deletions

View File

@@ -79,6 +79,11 @@ const PROMPT_DEFINITIONS = {
title: 'Claude Code Compact System Prompt Agent SDK2', title: 'Claude Code Compact System Prompt Agent SDK2',
text: "You are Claude Code, Anthropic's official CLI for Claude, running within the Claude Agent SDK." text: "You are Claude Code, Anthropic's official CLI for Claude, running within the Claude Agent SDK."
}, },
claudeOtherSystemPrompt5: {
category: 'system',
title: 'Claude CLI Billing Header',
text: 'x-anthropic-billing-header: cc_version=2.1.15.c5a; cc_entrypoint=cli'
},
claudeOtherSystemPromptCompact: { claudeOtherSystemPromptCompact: {
category: 'system', category: 'system',
title: 'Claude Code Compact System Prompt', title: 'Claude Code Compact System Prompt',

View File

@@ -59,7 +59,7 @@ class ClaudeCodeValidator {
typeof customThreshold === 'number' && Number.isFinite(customThreshold) typeof customThreshold === 'number' && Number.isFinite(customThreshold)
? customThreshold ? customThreshold
: SYSTEM_PROMPT_THRESHOLD : SYSTEM_PROMPT_THRESHOLD
for (const entry of systemEntries) { for (const entry of systemEntries) {
const rawText = typeof entry?.text === 'string' ? entry.text : '' const rawText = typeof entry?.text === 'string' ? entry.text : ''
const { bestScore, templateId, maskedRaw } = bestSimilarityByTemplates(rawText) const { bestScore, templateId, maskedRaw } = bestSimilarityByTemplates(rawText)