Thank you for your interest in contributing to the AWS Bedrock AgentCore SDK TypeScript! Whether it's a bug report, new feature, correction, or additional documentation, we greatly value feedback and contributions from our community.
Please read through this document before submitting any issues or pull requests.
Note: For AI agent-specific development patterns and guidelines, see AGENTS.md.
- Node.js: Version 20.0.0 or higher
- npm: Version 9.0.0 or higher
-
Clone the repository and install dependencies:
git clone <repository-url> cd bedrock-agentcore-sdk-typescript npm install
-
Verify your setup by running the test suite:
npm test npm run lint npm run format:check npm run type-check -
Install git hooks for automatic quality checks:
npm run prepare
This will set up pre-commit hooks that automatically run tests, linting, formatting checks, and type checking before each commit.
# Run unit tests only (Node.js environment)
npm test
# Run tests with coverage (required: 80%+)
npm run test:coverage
# Run tests in watch mode during development
npm run test:watch
# Run only integration tests
npm run test:integ- 80%+ Coverage: All code should have at least 80% test coverage
- Unit Tests: Test individual functions in
src/**/__tests__/**directories - Integration Tests: Test complete workflows in
examples/directory - TSDoc Coverage: All exported functions must have complete documentation
For detailed testing patterns and examples, see AGENTS.md - Testing Patterns.
Important: When implementing changes that impact the following files, you must update them:
- AGENTS.md: Agent-specific development guidance (directory structure, coding patterns, testing patterns, things to do/not do)
- README.md: Project overview, getting started guide, usage examples, public API documentation
- CONTRIBUTING.md: Human contribution guidelines (development requirements, testing procedures, PR process)
We welcome you to use the GitHub issue tracker to report bugs or suggest features.
When filing an issue, please check existing open, or recently closed, issues to make sure somebody else hasn't already reported the issue. Please try to include as much information as you can. Details like these are incredibly useful:
- A reproducible test case or series of steps
- The version of our code being used
- Any modifications you've made relevant to the bug
- Anything unusual about your environment or deployment
Contributions via pull requests are much appreciated. Before sending us a pull request, please ensure that:
- You are working against the latest source on the main branch.
- You check existing open, and recently merged, pull requests to make sure someone else hasn't addressed the problem already.
- You open an issue to discuss any significant work - we would hate for your time to be wasted.
To send us a pull request, please:
- Fork the repository.
- Create a feature branch from
main. - Make your changes, ensuring code quality and test coverage.
- Quality checks will run automatically on commit via pre-commit hooks. You can also run them manually:
npm test # 80%+ test coverage required npm run lint # No linting errors allowed npm run format:check # Code must be properly formatted npm run type-check # TypeScript must compile without errors
- Update relevant documentation files (see Documentation Updates section above).
- Commit to your fork using clear, conventional commit messages.
- Send us a pull request, answering any default questions in the pull request interface.
- Pay attention to any automated CI failures reported in the pull request, and stay involved in the conversation.
- All tests pass: 80%+ test coverage maintained
- Code quality: ESLint passes with no errors
- Documentation: TSDoc comments for all exported functions
- Formatting: Prettier formatting applied consistently
- Type safety: No
anytypes allowed, explicit return types required - Conventional commits: Use conventional commit message format
GitHub provides additional documentation on forking a repository and creating a pull request.
Looking at the existing issues is a great way to find something to contribute on. As our projects, by default, use the default GitHub issue labels (enhancement/bug/duplicate/help wanted/invalid/question/wontfix), looking at any 'help wanted' issues is a great place to start.
This project has adopted the Amazon Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opensource-codeofconduct@amazon.com with any additional questions or comments.
If you discover a potential security issue in this project we ask that you notify AWS/Amazon Security via our vulnerability reporting page. Please do not create a public github issue.
See the LICENSE file for our project's licensing. We will ask you to confirm the licensing of your contribution.