en un clic
context
// Add and evolve Counterfact context classes in _.context.ts files, including required unit test coverage for context behavior.
// Add and evolve Counterfact context classes in _.context.ts files, including required unit test coverage for context behavior.
Keep contributor changes aligned with repository test patterns, diagnostics, release/versioning workflow, documentation requirements, and compatibility.
Provide Counterfact repository orientation, high-level architecture, and the canonical command reference for install/build/test/lint workflows.
Update Counterfact CLI option behavior, config resolution, telemetry-safe startup handling, and bootstrap/runtime entrypoint flow.
Modify TypeScript generator internals, OpenAPI parsing/schema handling, and generated file writing behavior without regressing regeneration guarantees.
Safely change Counterfact runtime/server internals while preserving module boundaries, hot reload behavior, and backward compatibility guarantees.
Edit Counterfact route files to add endpoint behavior while keeping handlers thin and delegating business logic to context classes.
| name | context |
| description | Add and evolve Counterfact context classes in _.context.ts files, including required unit test coverage for context behavior. |
| applyTo | ["**/_.context.{ts,js}","**/routes/**/_.context.ts","**/*context.{ts,js}","test/**/*.test.ts"] |
Define and maintain stateful business logic in _.context.ts files.
_.context.ts is forA _.context.ts file owns state and business rules for a route subtree.
Handlers call methods on $.context; they should not implement core logic
inline.
scenarios/.routes/**/_.context.ts.$.context.