fix: add biome-ignore comments and config overrides for lint issues

- Add ToolSearchResult interface with biome-ignore for dynamic tool types
- Add biome-ignore comments for UIMessage.parts type casting
- Add biome config overrides for complexity warnings in MessageBubble.tsx
- Add biome config override for MobileMenu.tsx a11y rule
- Add biome config override for railway-executor complexity
- Fix unused template literal in railway-executor
- All lint tasks now pass with 0 errors

🤖 Generated with [Claude Code](https://claude.ai/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Ajax Davis 2026-01-02 01:51:46 +10:00
parent e4b84fb1cd
commit f8740fb7ff
7 changed files with 83 additions and 21 deletions

View file

@ -203,6 +203,7 @@ function sanitizeJsonSchema(schema: any): any {
// Sanitize anyOf/oneOf/allOf
for (const key of ['anyOf', 'oneOf', 'allOf']) {
if (Array.isArray(sanitized[key])) {
// biome-ignore lint/suspicious/noExplicitAny: JSON Schema types are dynamic
sanitized[key] = sanitized[key].map((s: any) => sanitizeJsonSchema(s));
}
}
@ -414,12 +415,16 @@ async function loadAndDescribe(req: Request): Promise<Response> {
const zod = await import('https://esm.sh/zod@4');
if (zod.toJSONSchema) {
rawJsonSchema = zod.toJSONSchema(toolModule.inputSchema);
console.log(`✅ Successfully converted Zod v4 schema using z.toJSONSchema for ${cacheKey}`);
console.log(
`✅ Successfully converted Zod v4 schema using z.toJSONSchema for ${cacheKey}`
);
} else if (zod.default?.toJSONSchema) {
rawJsonSchema = zod.default.toJSONSchema(toolModule.inputSchema);
console.log(`✅ Successfully converted Zod v4 schema using z.default.toJSONSchema for ${cacheKey}`);
console.log(
`✅ Successfully converted Zod v4 schema using z.default.toJSONSchema for ${cacheKey}`
);
} else {
console.warn(`⚠️ Zod v4 toJSONSchema not found. Available exports:`, Object.keys(zod));
console.warn('⚠️ Zod v4 toJSONSchema not found. Available exports:', Object.keys(zod));
}
} catch (error) {
console.warn(`⚠️ Zod v4 toJSONSchema conversion failed for ${cacheKey}:`, error);