| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- id: multi-language-validation
- name: Multi-Language Support & Validation
- description: |
- Tests that opencoder adapts to different languages and uses proper tools.
- For TypeScript: should mention tsc, eslint
- For Python: should mention mypy, pylint, pytest
-
- Agent should recognize language and use appropriate validation tools.
- category: developer
- agent: opencoder
- model: anthropic/claude-sonnet-4-5
- prompt: |
- Create a simple TypeScript function in src/utils/math.ts that adds two numbers.
- Make sure to use proper type checking and validation.
- # Expected behavior
- behavior:
- mustUseTools: [read, write]
- minToolCalls: 2
- # Should mention TypeScript-specific tools
- mustContainAnyOf:
- - ["tsc", "TypeScript"]
- - ["type check", "type-check"]
- - ["eslint"]
- # Should follow approval workflow
- expectedViolations:
- - rule: approval-gate
- shouldViolate: false
- severity: error
- approvalStrategy:
- type: auto-approve
- timeout: 120000
- tags:
- - multi-language
- - typescript
- - validation
- - type-checking
|