@ctxlyr/typecheck
v0.1.254
Published
Token-efficient TypeScript error output for AI agents
Downloads
2,274
Maintainers
Readme
@ctxlyr/typecheck
Token-efficient TypeScript error reporter for AI agents.
Wraps tsgo (native TypeScript compiler) and compresses verbose error output into symbolic shorthand. Groups identical errors with counts. Designed to minimize tokens when feeding diagnostics to AI coding agents.
Usage
bunx @ctxlyr/typecheckOutput
Passing:
<typecheck:passing />Errors:
<typecheck:summary>
- TS2339:'foo'@'Bar' (x2)
- TS2339:'baz'@'Qux'
</typecheck:summary>Before/After
Raw tsc output:
src/foo.ts(15,22): error TS2339: Property 'foo' does not exist on type 'Bar'.
src/foo.ts(16,28): error TS2339: Property 'foo' does not exist on type 'Bar'.
src/baz.ts(8,15): error TS2339: Property 'baz' does not exist on type 'Qux'.Compressed output:
<typecheck:summary>
- TS2339:'foo'@'Bar' (x2)
- TS2339:'baz'@'Qux'
</typecheck:summary>Documentation
See the monorepo docs for more details on the compression format and usage examples.
License
MIT
