Add account browsing simulation

This commit is contained in:
jjbrunton committed 2026-08-11 21:40:31 +01:00
1 parent e2d7dc4b82
commit 27012399ec
31 files changed
+1476 -28

No files matched your search

+5
View File
@@ -59,6 +59,7 @@ import { RecipientDeduplicator } from './services/recipient-deduplicator.js';
import { createConfigBackedSubredditPollingControl } from './services/subreddit-polling-control.js';
import { CandidateQueueRepository, RuntimeStateRepository } from './database/candidate-queue-repository.js';
import { AccountGrowthRepository } from './database/growth-repository.js';
import { AccountBrowsingSimulationRepository } from './database/browsing-simulation-repository.js';
import { MediaLibraryRepository } from './database/media-library-repository.js';
import { MediaLibraryService } from './services/media-library.js';
@@ -83,6 +84,7 @@ export interface AppContainer {
candidateQueueRepo: CandidateQueueRepository;
runtimeStateRepo: RuntimeStateRepository;
growthRepo: AccountGrowthRepository;
browsingRepo: AccountBrowsingSimulationRepository;
redditApi: RedditApiClient;
aiClient: OpenRouterClient;
@@ -151,6 +153,7 @@ export async function bootstrap(
const candidateQueueRepo = new CandidateQueueRepository(db);
const runtimeStateRepo = new RuntimeStateRepository(db);
const growthRepo = new AccountGrowthRepository(db);
const browsingRepo = new AccountBrowsingSimulationRepository(db);
const redditAccountsRepo = bootstrapAccountsRepo;
const accountContentRepo = new AccountContentRepository(db);
const aiUsageRepo = new AiUsageRepository(db);
@@ -473,6 +476,7 @@ export async function bootstrap(
webServer.setConversationReadStateRepository(conversationReadStateRepo);
webServer.setCandidateQueueRepository(candidateQueueRepo);
webServer.setGrowthRepository(growthRepo);
webServer.setBrowsingRepository(browsingRepo);
webServer.setConfigStore(new ConfigStore(db));
webServer.setPushNotifier(pushNotifier);
webServer.setOnConfigChange(() => logger.info('Runtime config updated via dashboard'));
@@ -512,6 +516,7 @@ export async function bootstrap(
candidateQueueRepo,
runtimeStateRepo,
growthRepo,
browsingRepo,
redditApi,
aiClient,
monitorService,