style: apply prettier formatting

This commit is contained in:
ejclaw
2026-04-08 19:20:22 +09:00
parent 8b9bebd29e
commit 1fedd36ec7
11 changed files with 65 additions and 50 deletions

View File

@@ -121,7 +121,9 @@ export function loadConfig(): AppConfig {
const rawMaxRoundTrips = readText('PAIRED_MAX_ROUND_TRIPS');
const maxRoundTrips =
rawMaxRoundTrips === '0' ? Infinity : readInteger('PAIRED_MAX_ROUND_TRIPS', 1000);
rawMaxRoundTrips === '0'
? Infinity
: readInteger('PAIRED_MAX_ROUND_TRIPS', 1000);
return {
assistant: {
@@ -157,8 +159,7 @@ export function loadConfig(): AppConfig {
readNonEmptyText('EJCLAW_DATA_DIR') ?? path.join(projectRoot, 'data'),
),
cacheDir: path.resolve(
readNonEmptyText('EJCLAW_CACHE_DIR') ??
path.join(projectRoot, 'cache'),
readNonEmptyText('EJCLAW_CACHE_DIR') ?? path.join(projectRoot, 'cache'),
),
},
runtime: {
@@ -216,9 +217,11 @@ export function loadConfig(): AppConfig {
},
sessionCommands: {
allowedSenders: new Set(
((readText('SESSION_COMMAND_ALLOWED_SENDERS') ??
readText('SESSION_COMMAND_USER_IDS')) ??
'')
(
readText('SESSION_COMMAND_ALLOWED_SENDERS') ??
readText('SESSION_COMMAND_USER_IDS') ??
''
)
.split(',')
.map((value) => value.trim())
.filter(Boolean),