(config, env = process.env)
| 325 | } |
| 326 | |
| 327 | function buildAutomationBackendEnv(config, env = process.env) { |
| 328 | // Both backends share the same session API key value. |
| 329 | return { |
| 330 | AUTOMATION_AGENT_SERVER_URL: `http://localhost:${config.agentServerPort}`, |
| 331 | AUTOMATION_AGENT_SERVER_API_KEY: config.sessionApiKey, |
| 332 | AUTOMATION_DB_URL: `sqlite+aiosqlite:///${join(config.stateDir, "automations.db")}`, |
| 333 | AUTOMATION_BASE_URL: `http://localhost:${config.ingressPort}`, |
| 334 | AUTOMATION_WORKSPACE_BASE: join(config.stateDir, "workspaces"), |
| 335 | AUTOMATION_LOCAL_API_KEY: config.sessionApiKey, |
| 336 | ...buildAutomationTelemetryEnv(env), |
| 337 | AUTOMATION_CORS_ORIGINS: `http://localhost:${config.ingressPort},http://127.0.0.1:${config.ingressPort},http://localhost:3001,http://127.0.0.1:3001`, |
| 338 | FILE_STORE: "local", |
| 339 | LOCAL_STORAGE_PATH: join(config.stateDir, "storage"), |
| 340 | OPENHANDS_SUPPRESS_BANNER: "1", |
| 341 | }; |
| 342 | } |
| 343 | |
| 344 | function startAutomationBackend(config) { |
| 345 | logService( |
no test coverage detected