Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ const searchResult = z.object({
id: z.string().describe('The id of the repository'),
name: z.string().describe('The name of the repository in the format of namespace/repository'),
slug: z.string().describe('The slug of the repository'),
type: z.string().describe('The type of the repository'),
type: z
.enum(['image', 'plugin', 'extension'])
.describe('The type of the repository. Can be "image", "plugin" or "extension"'),
publisher: z.object({
id: z.string().describe('The id of the publisher'),
name: z.string().describe('The name of the publisher'),
Expand Down
3 changes: 2 additions & 1 deletion tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -3564,7 +3564,8 @@
},
"type": {
"type": "string",
"description": "The type of the repository"
"enum": ["image", "plugin", "extension"],
"description": "The type of the repository. Can be \"image\", \"plugin\" or \"extension\""
},
"publisher": {
"type": "object",
Expand Down