diff --git a/src/public/shells/chat/decl/chatLog.ts b/src/public/shells/chat/decl/chatLog.ts index d4c0f80..6caf2ee 100644 --- a/src/public/shells/chat/decl/chatLog.ts +++ b/src/public/shells/chat/decl/chatLog.ts @@ -3,6 +3,7 @@ import { charAPI_t } from '../../../../decl/charAPI.ts'; import { WorldAPI_t } from '../../../../decl/WorldAPI.ts'; import { UserAPI_t } from '../../../../decl/UserAPI.ts'; import { pluginAPI_t } from '../../../../decl/PluginAPI.ts'; +import { Buffer } from "node:buffer"; export class chatReply_t { name?: string; @@ -39,6 +40,7 @@ export class chatReplyRequest_t { plugins: pluginAPI_t[] chat_summary: string chat_scoped_char_memory: {} + extension: {} } export class chatLogEntry_t { diff --git a/src/public/shells/chat/src/server/chat.mjs b/src/public/shells/chat/src/server/chat.mjs index abbbba5..259f139 100644 --- a/src/public/shells/chat/src/server/chat.mjs +++ b/src/public/shells/chat/src/server/chat.mjs @@ -235,6 +235,7 @@ async function getChatRequest(chatid, charname) { const other_chars = { ...timeSlice.chars } delete other_chars[charname] + /** @type {import('../../decl/chatLog.ts').chatReplyRequest_t} */ const result = { chat_id: chatid, char_id: charname, @@ -260,7 +261,8 @@ async function getChatRequest(chatid, charname) { other_chars, chat_summary: timeSlice.summary, chat_scoped_char_memory: timeSlice.chars_memories[charname] ??= {}, - plugins: [] + plugins: [], + extension: {} } if (timeSlice.world?.interfaces?.chat?.GetChatLogForCharname)