We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54f25a3 commit 1d029c9Copy full SHA for 1d029c9
1 file changed
index.ts
@@ -4,7 +4,6 @@ import { Logger } from "./lib/logger"
4
import { createSessionState } from "./lib/state"
5
import { createCompressTool } from "./lib/tools"
6
import { PromptStore } from "./lib/prompts/store"
7
-import tuiPlugin from "./tui/index"
8
import {
9
createChatMessageTransformHandler,
10
createCommandExecuteHandler,
@@ -13,6 +12,11 @@ import {
13
12
} from "./lib/hooks"
14
import { configureClientAuth, isSecureMode } from "./lib/auth"
15
+let tuiPlugin: Record<string, unknown> = {}
16
+try {
17
+ tuiPlugin = (await import("./tui/index")).default
18
+} catch {}
19
+
20
const server: Plugin = (async (ctx) => {
21
const config = getConfig(ctx)
22
0 commit comments