Skip to content

Commit 3336b7a

Browse files
Create registry.ts
1 parent da165cc commit 3336b7a

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

Core/registry.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { kernel } from "./kernel";
2+
import { AIPlugin } from "@/plugins/ai";
3+
import { NewsPlugin } from "@/plugins/news";
4+
5+
export function loadPlugins() {
6+
kernel.registerPlugin("ai", AIPlugin);
7+
kernel.registerPlugin("news", NewsPlugin);
8+
}

0 commit comments

Comments
 (0)