feat: persist settings and enrich conversation context
This commit is contained in:
1 parent
a36723a325
commit
2c100d72b6
84 files changed
+2248
-644
No files matched your search
+13
-2
@@ -21,6 +21,7 @@ import type { StrategySelector } from '../services/strategy-selector.js';
|
||||
import type { BrowserClient } from '../browser/client.js';
|
||||
import type { RedditSessionImporter } from '../services/reddit-session-importer.js';
|
||||
import type { AccountAuthContext } from '../services/account-auth-context.js';
|
||||
import type { ConfigStore } from '../config/persistence.js';
|
||||
import { ActivityLog } from './activity-log.js';
|
||||
import { LogBroadcaster } from './log-broadcaster.js';
|
||||
import type { WebContext } from './context.js';
|
||||
@@ -214,8 +215,18 @@ export class WebServer {
|
||||
this.services.conversationState = conversationState;
|
||||
}
|
||||
|
||||
logActivity(type: ActivityItem['type'], message: string, recipient?: string, imageUrl?: string): void {
|
||||
this.activity.push(type, message, recipient, imageUrl);
|
||||
setConfigStore(configStore: ConfigStore): void {
|
||||
this.services.configStore = configStore;
|
||||
}
|
||||
|
||||
logActivity(
|
||||
type: ActivityItem['type'],
|
||||
message: string,
|
||||
recipient?: string,
|
||||
imageUrl?: string,
|
||||
origin?: { postTitle: string; postUrl: string },
|
||||
): void {
|
||||
this.activity.push(type, message, recipient, imageUrl, origin);
|
||||
}
|
||||
|
||||
pushLog(level: LogEntry['level'], message: string, data?: unknown): void {
|
||||
|
||||
Reference in new issue
Block a user