feat(browser): add environment, credentials, and script logger to POST /exec

- ExecDto gains optional `environment` and `credentials` fields
- BrowserService.exec forwards both to CodeExecutorService.execute so
  helpers.env, helpers.getEnvUrl(), and helpers.getCredential() work
  identically to scenario-scheduler steps
- script console.log/warn/error now routed through TraceLogger with
  session label prefix
- integration tests cover env/creds injection and missing-alias error
This commit is contained in:
ars9 committed 2026-04-14 16:57:06 +03:00
1 parent d34ea9e943
commit 1a2e786ca8
4 files changed
+104 -9

No files matched your search

+1 -1
View File
@@ -56,6 +56,6 @@ export class BrowserController {
@ApiResponse({ status: 500, description: "Execution failed" })
exec(@Body() dto: ExecDto): Promise<ExecResult> {
this.codeExecutor.validate(dto.code);
return this.browserService.exec(dto.sessionName, dto.code, dto.url);
return this.browserService.exec(dto.sessionName, dto.code, dto.url, dto.environment, dto.credentials);
}
}