feat(sdk): add langwatch config to ScenarioConfig for race-condition-free multi-tenant runs#545
feat(sdk): add langwatch config to ScenarioConfig for race-condition-free multi-tenant runs#545drewdrewthis wants to merge 1 commit into
Conversation
…free multi-tenant runs (#203) [grinder] ScenarioConfig now accepts an optional `langwatch` field that takes precedence over env vars, eliminating the need to mutate process.env before each run when running scenarios concurrently for different projects. Priority chain: options.langwatch > cfg.langwatch > LANGWATCH_* env vars. Also moves LangwatchConfig type definition to the domain layer (no circular deps) and adds target: ES2022 to tsconfig to support top-level await in test files. Closes #203 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Automated low-risk assessment This PR was evaluated against the repository's Low-Risk Pull Requests procedure.
An approving review has been submitted by automation. The PR may merge once required CI checks pass. |
|
[grinder] READY for human review CI: green (zero failing, zero pending) Verified by: |
Summary
langwatchfield toScenarioConfigthat takes precedence over env varsprocess.envmutation pattern required for concurrent multi-tenant scenario executionoptions.langwatch>cfg.langwatch>LANGWATCH_*env varsLangwatchConfigtype to the domain layer (avoids circular import)target: ES2022to tsconfig to support top-levelawaitin test filesBefore:
After:
Test plan
pnpm typecheck— cleancfg.langwatchused when nooptionsprovidedoptions.langwatchtakes priority overcfg.langwatchCloses #203
🤖 Generated with Claude Code