Skip to content

Commit

Permalink
🐛 fix: fix manifest types
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx committed Aug 19, 2023
1 parent 807c946 commit 0f32526
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
10 changes: 8 additions & 2 deletions src/manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,15 @@ import { z } from 'zod';
export const pluginManifestSchema = z.object({
name: z.string(),
schema: z.object({
properties: z.object({}),
type: z.enum(['object']),
description: z.string(),
name: z.string(),

parameters: z.object({
properties: z.object({}),
type: z.enum(['object']),
}),
}),

server: z.object({
url: z.string(),
}),
Expand Down
6 changes: 5 additions & 1 deletion src/types/manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ export interface LobeChatPlugin {
* @nameCN 插件模式
* @descCN 插件的模式
*/
schema: PluginSchema;
schema: {
description: string;
name: string;
parameters: PluginSchema;
};
server: {
/**
* Endpoint URL
Expand Down

0 comments on commit 0f32526

Please sign in to comment.