Skip to content

Commit 15c5d20

Browse files
committed
refactor: move event hook last
1 parent 57dc7d6 commit 15c5d20

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ const plugin: Plugin = (async (ctx) => {
5858
config,
5959
prompts,
6060
),
61-
6261
"experimental.chat.messages.transform": createChatMessageTransformHandler(
6362
ctx.client,
6463
state,
@@ -69,7 +68,6 @@ const plugin: Plugin = (async (ctx) => {
6968
) as any,
7069
"chat.message": createChatMessageHandler(state, logger, config, hostPermissions),
7170
"experimental.text.complete": createTextCompleteHandler(),
72-
event: createEventHandler(state, logger),
7371
"command.execute.before": createCommandExecuteHandler(
7472
ctx.client,
7573
state,
@@ -78,6 +76,7 @@ const plugin: Plugin = (async (ctx) => {
7876
ctx.directory,
7977
hostPermissions,
8078
),
79+
event: createEventHandler(state, logger),
8180
tool: {
8281
...(config.compress.permission !== "deny" && {
8382
compress:

0 commit comments

Comments
 (0)