Skip to content

feat: Major improvements for v1.1.0#14

Merged
victormartingil merged 3 commits intomainfrom
feat/v1.1.0-improvements
Jan 28, 2026
Merged

feat: Major improvements for v1.1.0#14
victormartingil merged 3 commits intomainfrom
feat/v1.1.0-improvements

Conversation

@victormartingil
Copy link
Member

Summary

Major release introducing new features, architecture improvements, expanded documentation, and significantly increased test coverage — fully backward compatible.


✨ New Features

  • init tool: Generates .corbat.json by analyzing project structure
  • Profile inheritance: Add an extends field to inherit from parent profiles
  • New profile templates (6):
    • Go
    • Rust
    • Next.js
    • Kotlin Spring
    • C#/.NET
    • Flutter
  • Example profiles (3):
    • strict-enterprise
    • startup-fast
    • microservice-kafka
  • Task-type guardrails: Specific rules for:
    • feature
    • bugfix
    • refactor
    • test
    • security
    • performance
    • documentation
    • infrastructure

🧱 Architecture Improvements

  • Modular tools structure: Refactored into src/tools/ with separated handlers, schemas, and definitions
  • Structured logging: JSON logs to stderr via src/logger.ts
  • Typed errors: Custom error classes with codes in src/errors.ts
  • Usage metrics: Track tool calls and profile usage via src/metrics.ts

📚 Documentation

  • CONTRIBUTING.md — Development setup and contribution guidelines
  • docs/api-reference.md — Complete API documentation
  • schemas/corbat-config.json — JSON Schema for .corbat.json validation
  • Additional docs:
    • docs/setup.md
    • docs/templates.md
    • docs/compatibility.md

✅ Testing

Coverage & Volume

Metric Before After
Total tests 100 174
Test files 8 12

New Test Suites

  • Task classification (52 cases)
  • Schema validation (14 cases)
  • Profile inheritance (8 cases)
  • MCP protocol compliance (22 cases)

⚠️ Breaking Changes

None — fully backward compatible.


Checklist

  • Build passes (npm run build)
  • All tests pass (npm test)
  • Documentation updated
  • No breaking changes

New Features:
- Add `init` tool to generate .corbat.json configuration
- Add profile inheritance with `extends` field
- Add 6 new profile templates (Go, Rust, Next.js, Kotlin, C#/.NET, Flutter)
- Add 3 example profiles (strict-enterprise, startup-fast, microservice-kafka)
- Add task-type guardrails (feature, bugfix, refactor, test, security, etc.)

Architecture:
- Refactor tools into modular structure (src/tools/)
- Add structured JSON logging (src/logger.ts)
- Add typed error classes (src/errors.ts)
- Add usage metrics collection (src/metrics.ts)

Documentation:
- Add CONTRIBUTING.md with development guidelines
- Add API Reference (docs/api-reference.md)
- Add JSON Schema for .corbat.json validation
- Add setup, templates, and compatibility docs

Testing:
- Add 74 new tests (100 → 174 total)
- Add unit tests for task classification (52 cases)
- Add unit tests for schema validation (14 cases)
- Add unit tests for profile inheritance (8 cases)
@victormartingil victormartingil merged commit 28907e4 into main Jan 28, 2026
7 checks passed
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.

1 participant