mirror of
https://github.com/ArthurDanjou/artapi.git
synced 2026-01-14 17:44:22 +01:00
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:
@@ -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
|
||||
})
|
||||
@@ -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).',
|
||||
|
||||
@@ -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).',
|
||||
|
||||
@@ -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.',
|
||||
|
||||
@@ -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.',
|
||||
|
||||
Reference in New Issue
Block a user