Skip to content

Commit

Permalink
✨ feat: add basic plugin types
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx committed Aug 18, 2023
1 parent fc8d3fa commit b458dde
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 23 deletions.
25 changes: 2 additions & 23 deletions src/types/index.ts
Original file line number Diff line number Diff line change
@@ -1,23 +1,2 @@
export interface PluginItem {
createAt: string;
homepage: string;
meta: Meta;
name: string;
runtime: Runtime;
schema: any;
}

export interface Meta {
avatar: string;
tags: string[];
}

export interface Runtime {
endpoint: string;
render?: string;
}

export interface LobeChatPlugins {
version: 1;
plugins: PluginItem[];
}
export * from './manifest';
export * from './market';
8 changes: 8 additions & 0 deletions src/types/manifest.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export interface PluginManifest {
createAt: string;
endpoint: string;
name: string;
render?: string;

schema: any;
}
17 changes: 17 additions & 0 deletions src/types/market.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
export interface PluginItem {
createAt: string;
homepage: string;
manifest: string;
meta: Meta;
name: string;
}

export interface Meta {
avatar: string;
tags: string[];
}

export interface LobeChatPlugins {
plugins: PluginItem[];
version: 1;
}

0 comments on commit b458dde

Please sign in to comment.