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:
parent
0bc55530ac
commit
c9899eddb7
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
}}
|
||||
/>
|
||||
);
|
||||
)
|
||||
}
|
||||
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
)
|
||||
})
|
||||
})
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
},
|
||||
]
|
||||
|
|
|
|||
Loading…
Reference in New Issue