Skip to content

Commit

Permalink
🐛 fix: 修正 standalone 模式下的 manifest 类型问题
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx committed Oct 24, 2023
1 parent 2cd3c2c commit a1979db
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/schema/manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const pluginApiSchema = z.object({
description: z.string(),
name: z.string(),
parameters: JSONSchema,
url: z.string().url(),
url: z.string().url().optional(),
});

export const pluginManifestSchema = z.object({
Expand Down
6 changes: 3 additions & 3 deletions src/types/manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ export interface LobeChatPluginApi {
parameters: PluginSchema;
/**
* Endpoint URL
* @desc The endpoint URL of the plugin
* @desc The endpoint URL of the plugin, optional in standalone type
* @nameCN 服务端接口
* @descCN 插件服务端的接口地址 URL
* @descCN 插件服务端的接口地址 URL, 在 standalone 类型下是可选项
*/
url: string;
url?: string;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@
"types": ["vitest/globals"]
},
"exclude": ["client.ts"],
"include": ["src", "tests", ".dumi/**/*", "typings", "example/.dumirc.ts", "*.ts"]
"include": ["src", "tests", "typings", "example/.dumirc.ts", "*.ts"]
}

0 comments on commit a1979db

Please sign in to comment.