chore: formatting cleanup for MCP and API files

Auto-formatting changes from Biome linter.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Thomas Hallock 2026-01-15 18:32:55 -06:00
parent 0bc55530ac
commit c9899eddb7
6 changed files with 20 additions and 30 deletions

View File

@ -26,20 +26,9 @@
},
"defaultResponseSet": "common",
"responseSets": {
"common": [
"400",
"500"
],
"auth": [
"400",
"401",
"403",
"500"
],
"public": [
"400",
"500"
]
"common": ["400", "500"],
"auth": ["400", "401", "403", "500"],
"public": ["400", "500"]
},
"errorConfig": {
"template": {

View File

@ -1,16 +1,16 @@
"use client";
'use client'
import { ApiReferenceReact } from "@scalar/api-reference-react";
import { ApiReferenceReact } from '@scalar/api-reference-react'
import "@scalar/api-reference-react/style.css";
import '@scalar/api-reference-react/style.css'
export default function ApiDocsPage() {
return (
<ApiReferenceReact
configuration={{
_integration: "nextjs",
url: "/openapi.json",
_integration: 'nextjs',
url: '/openapi.json',
}}
/>
);
)
}

View File

@ -219,7 +219,11 @@ async function executeTool(
args: Record<string, unknown>
): Promise<unknown> {
// Worksheet tools don't require player access
const worksheetToolNames = ['generate_worksheet', 'get_worksheet_info', 'list_difficulty_profiles']
const worksheetToolNames = [
'generate_worksheet',
'get_worksheet_info',
'list_difficulty_profiles',
]
if (worksheetToolNames.includes(toolName)) {
return executeWorksheetTool(toolName, args)
}

View File

@ -183,6 +183,8 @@ describe('Worksheet Download API', () => {
expect(response.status).toBe(200)
// Special characters should be replaced with hyphens
expect(response.headers.get('Content-Disposition')).toContain('worksheet-Test-Worksheet-With-Special-Chars.pdf')
expect(response.headers.get('Content-Disposition')).toContain(
'worksheet-Test-Worksheet-With-Special-Chars.pdf'
)
})
})

View File

@ -51,11 +51,7 @@ vi.mock('@/lib/generateShareId', () => {
import { db } from '@/db'
import { worksheetShares } from '@/db/schema'
import { generateShareId, isValidShareId } from '@/lib/generateShareId'
import {
generateWorksheet,
getWorksheetInfo,
listDifficultyProfiles,
} from '../tools'
import { generateWorksheet, getWorksheetInfo, listDifficultyProfiles } from '../tools'
import {
DIFFICULTY_PROFILES,
DIFFICULTY_PROGRESSION,

View File

@ -56,8 +56,7 @@ const RESOURCE_REGISTRY: McpResource[] = [
{
uri: 'docs://worksheet/operators',
name: 'Operators (Addition/Subtraction/Mixed)',
description:
'Difference between operators, pedagogical sequence, and scaffolding differences',
description: 'Difference between operators, pedagogical sequence, and scaffolding differences',
mimeType: 'text/markdown',
},
]