feat: 完成 ApiState Temporal native 开发链

This commit is contained in:
root
2026-07-17 03:41:59 +02:00
parent d203b22183
commit 02b21ad891
17 changed files with 214 additions and 81 deletions
+2 -2
View File
@@ -18,7 +18,7 @@ export interface AppContext {
export function createEmbeddedContext(config: AppConfig, target: EmbeddedCliTarget): AppContext {
const store = new LotteryStore(config, resolveDataPath(config, target.databasePath));
const client = new Sub2ApiClient(config, readSub2ApiCredentials(config));
const monitor = new AccountScoreService(config, resolveDataPath(config, target.scoreCachePath));
const monitor = new AccountScoreService(config, resolveDataPath(config, target.scoreCachePath), target.monitorWorkDir);
return {
service: new LotteryService(config, store, client),
store,
@@ -39,7 +39,7 @@ export function createServerContext(config: AppConfig, target: ServerTarget): Ap
}
const store = new LotteryStore(config, resolveDataPath(config, target.databasePath));
const client = new Sub2ApiClient(config, { email, password });
const monitor = new AccountScoreService(config, resolveDataPath(config, target.scoreCachePath));
const monitor = new AccountScoreService(config, resolveDataPath(config, target.scoreCachePath), target.monitorWorkDir);
return {
service: new LotteryService(config, store, client),
store,