Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
steve02081504 committed Feb 4, 2025
1 parent b815424 commit 0848234
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/public/shells/chat/decl/chatLog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -39,6 +40,7 @@ export class chatReplyRequest_t {
plugins: pluginAPI_t[]
chat_summary: string
chat_scoped_char_memory: {}
extension: {}
}

export class chatLogEntry_t {
Expand Down
4 changes: 3 additions & 1 deletion src/public/shells/chat/src/server/chat.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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)
Expand Down

0 comments on commit 0848234

Please sign in to comment.