Skip to content

Commit

Permalink
✨ feat: support markdown type plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx committed Dec 29, 2023
1 parent dc7eae7 commit ac370aa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/schema/manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
9 changes: 8 additions & 1 deletion src/types/manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ac370aa

Please sign in to comment.