style: 完成所有文件的lint

This commit is contained in:
claude-code-best
2026-05-01 21:39:30 +08:00
parent d136872cc9
commit 6182015005
1333 changed files with 68255 additions and 77882 deletions

View File

@@ -16,7 +16,9 @@ const inputSchema = lazySchema(() =>
query: z
.string()
.optional()
.describe('Optional query to filter context entries. If omitted, returns a summary of all context.'),
.describe(
'Optional query to filter context entries. If omitted, returns a summary of all context.',
),
}),
)
type InputSchema = ReturnType<typeof inputSchema>
@@ -89,7 +91,8 @@ Use this to understand your context budget before deciding whether to snip old m
// Prompt caching is an API-level feature controlled by the provider, not
// a user-facing toggle. Report as enabled only for providers known to
// support Anthropic-style prompt caching (first-party, Bedrock, Vertex).
const promptCachingEnabled = !model.startsWith('openai/') &&
const promptCachingEnabled =
!model.startsWith('openai/') &&
!model.startsWith('grok/') &&
!model.startsWith('gemini/')

View File

@@ -152,7 +152,9 @@ describe('CtxInspectTool', () => {
'total_tokens',
])
expect(result.data.message_count).toBe(messages.length)
expect(result.data.total_tokens).toBe(tokenCountWithEstimation(messages as any))
expect(result.data.total_tokens).toBe(
tokenCountWithEstimation(messages as any),
)
expect(result.data.context_window_model).toBe('claude-sonnet-4-6')
expect(result.data.prompt_caching_enabled).toBe(true)
expect(result.data.session_memory_enabled).toBe(false)