Skip to content

Commit ac370aa

Browse files
committed
✨ feat: support markdown type plugin
1 parent dc7eae7 commit ac370aa

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/schema/manifest.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ export const pluginManifestSchema = z.object({
2828
openapi: z.string().optional(),
2929
settings: JSONSchema.optional(),
3030
systemRole: z.string().optional(),
31+
type: z.enum(['default', 'markdown', 'standalone']).optional(),
3132
ui: z
3233
.object({
3334
height: z.number().optional(),

src/types/manifest.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import { JSONSchema7 } from 'json-schema';
22

33
import { Meta } from './market';
44

5-
export type LobePluginType = 'default' | 'standalone';
5+
export type LobePluginType = 'default' | 'standalone' | 'markdown';
6+
67
/**
78
* Plugin Schema
89
* @desc the schema of plugin, de´scribe the api input of the function
@@ -71,6 +72,12 @@ export interface LobeChatPluginManifest {
7172
meta: Meta;
7273
openapi?: string;
7374
settings?: PluginSchema;
75+
/**
76+
* the plugin system role
77+
* @desc The system role of the plugin
78+
* @nameCN 系统角色
79+
* @descCN 插件的系统角色,将会注入到会话消息中
80+
*/
7481
systemRole?: string;
7582
/**
7683
* plugin runtime type

0 commit comments

Comments
 (0)