Suppression de l'ancienne API 'uses-by-category' et mise à jour des imports de 'zod' dans les fichiers de prompts et d'outils pour une meilleure cohérence.

This commit is contained in:
2025-11-30 15:08:34 +01:00
parent 20689076f8
commit cceafd4ce6
5 changed files with 4 additions and 22 deletions

View File

@@ -1,18 +0,0 @@
import { queryCollection } from '@nuxt/content/server'
import { z } from 'zod'
const querySchema = z.object({
categoryName: z.enum(['homelab', 'ide', 'hardware', 'software'])
})
export default defineCachedEventHandler(async (event) => {
const { categoryName } = await getValidatedQuery(event, querySchema.parse)
return await queryCollection(event, 'uses')
.where('extension', '=', 'md')
.where('category', '=', categoryName)
.all()
}, {
name: 'uses-list',
maxAge: 3600 // 1 hour
})

View File

@@ -1,4 +1,4 @@
import z from 'zod'
import { z } from 'zod'
export default defineMcpPrompt({
description: 'Generates a prompt to request and retrieve Arthur Danjou\'s professional resume in the specified language (English or French).',

View File

@@ -1,4 +1,4 @@
import z from 'zod'
import { z } from 'zod'
export default defineMcpPrompt({
description: 'Generates a prompt to retrieve tools, software, and hardware used by Arthur Danjou, filtered by a specific category (homelab, IDE, hardware, or software).',

View File

@@ -1,4 +1,4 @@
import z from 'zod'
import { z } from 'zod'
export default defineMcpTool({
description: 'Retrieves a direct download link to Arthur Danjou\'s professional resume in the specified language. Supports both English and French versions.',

View File

@@ -1,4 +1,4 @@
import z from 'zod'
import { z } from 'zod'
export default defineMcpTool({
description: 'Retrieves a filtered list of tools, software, and hardware used by Arthur Danjou based on a specific category. Available categories: homelab, IDE, hardware, and software.',