refactor: complete config unification and split db helpers

This commit is contained in:
ejclaw
2026-04-08 19:05:19 +09:00
parent d996d5ff10
commit 8b9bebd29e
27 changed files with 4752 additions and 3652 deletions

View File

@@ -11,6 +11,7 @@ import {
AGENT_MAX_OUTPUT_SIZE,
AGENT_TIMEOUT,
IDLE_TIMEOUT,
LOG_LEVEL,
} from './config.js';
import {
prepareReadonlySessionEnvironment,
@@ -411,8 +412,7 @@ export async function runAgentProcess(
logsDir,
`agent-${input.runId || 'adhoc'}-${timestamp}.log`,
);
const isVerbose =
process.env.LOG_LEVEL === 'debug' || process.env.LOG_LEVEL === 'trace';
const isVerbose = LOG_LEVEL === 'debug' || LOG_LEVEL === 'trace';
const logLines = [
`=== Agent Run Log ===`,