diff --git a/src/schema/manifest.ts b/src/schema/manifest.ts index cfa4ef0..2058dee 100644 --- a/src/schema/manifest.ts +++ b/src/schema/manifest.ts @@ -28,6 +28,7 @@ export const pluginManifestSchema = z.object({ openapi: z.string().optional(), settings: JSONSchema.optional(), systemRole: z.string().optional(), + type: z.enum(['default', 'markdown', 'standalone']).optional(), ui: z .object({ height: z.number().optional(), diff --git a/src/types/manifest.ts b/src/types/manifest.ts index 1cbbfd3..75c8330 100644 --- a/src/types/manifest.ts +++ b/src/types/manifest.ts @@ -2,7 +2,8 @@ import { JSONSchema7 } from 'json-schema'; import { Meta } from './market'; -export type LobePluginType = 'default' | 'standalone'; +export type LobePluginType = 'default' | 'standalone' | 'markdown'; + /** * Plugin Schema * @desc the schema of plugin, de´scribe the api input of the function @@ -71,6 +72,12 @@ export interface LobeChatPluginManifest { meta: Meta; openapi?: string; settings?: PluginSchema; + /** + * the plugin system role + * @desc The system role of the plugin + * @nameCN 系统角色 + * @descCN 插件的系统角色,将会注入到会话消息中 + */ systemRole?: string; /** * plugin runtime type