koishi-plugin-satori-ai 1.4.2 → 1.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/emoji.d.ts ADDED
@@ -0,0 +1,14 @@
1
+ import { Context, Session } from 'koishi';
2
+ import { Sat, User } from './types';
3
+ export declare class EmojiManager {
4
+ private ctx;
5
+ private config;
6
+ private categories;
7
+ private emojiDir;
8
+ constructor(ctx: Context, config: Sat.Config);
9
+ private loadEmojis;
10
+ shouldSendEmoji(): boolean;
11
+ getEmoji(session: Session, user: User, recentMessages: Sat.Msg[]): Promise<string | null>;
12
+ private getAPIConfig;
13
+ private callLLM;
14
+ }
package/lib/index.d.ts CHANGED
@@ -19,6 +19,7 @@ export declare class SAT extends Sat {
19
19
  private puppeteer;
20
20
  private game;
21
21
  private galgame;
22
+ private emojiManager;
22
23
  setPuppeteer(puppeteer: Puppeteer): void;
23
24
  private waitForPuppeteer;
24
25
  puppeteerReady(): boolean;