Skip to content

feat: introduce toolpact CLI and schema management#1

Merged
waitasecant merged 5 commits into
mainfrom
dev
Jul 17, 2026
Merged

feat: introduce toolpact CLI and schema management#1
waitasecant merged 5 commits into
mainfrom
dev

Conversation

@waitasecant

Copy link
Copy Markdown
Owner
  • Add CLI commands for checking, diffing, accepting, listing, and showing function schemas.
  • Implement schema generation and hashing for functions.
  • Create a lockfile mechanism to track function schemas and changes.
  • Add diff computation to identify breaking and non-breaking changes in schemas.
  • Implement decorators to enforce schema validation at import time.
  • Include tests for CLI functionality, schema generation, and lockfile operations.

- Add CLI commands for checking, diffing, accepting, listing, and showing function schemas.
- Implement schema generation and hashing for functions.
- Create a lockfile mechanism to track function schemas and changes.
- Add diff computation to identify breaking and non-breaking changes in schemas.
- Implement decorators to enforce schema validation at import time.
- Include tests for CLI functionality, schema generation, and lockfile operations.
- Refactor `compute_diff` function for better clarity.
- Update `pact` decorator for consistent formatting.
- Enhance `_to_schema` and test functions with improved structure.
Bump Poetry version from 2.2.1 to 2.4.1 in the generated lock file.
Update content hash to reflect changes in dependencies.
@codecov-commenter

Copy link
Copy Markdown

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

Include detailed explanations of toolpact's functionality,
installation instructions, quick start guide, CI integration,
and change classification. Enhance user understanding of
schema management and breaking changes.
- Implement tests for handling no subcommand and empty lockfile in CLI.
- Add tests for function acceptance and listing in CLI.
- Enhance schema tests with mixed literals and optional complex types.
- Include tests for unknown types in schema generation.
@waitasecant
waitasecant merged commit 9a9a314 into main Jul 17, 2026
6 checks passed
@waitasecant
waitasecant deleted the dev branch July 17, 2026 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants