Skip to content

JSON output, output modules, tests, and CI#2

Merged
marcopesani merged 9 commits intomasterfrom
json-output
Mar 31, 2026
Merged

JSON output, output modules, tests, and CI#2
marcopesani merged 9 commits intomasterfrom
json-output

Conversation

@marcopesani
Copy link
Copy Markdown
Contributor

Summary

  • --json mode: Machine-readable stdout (TOON decoded to JSON); status on stderr via output formatters.
  • Modules: src/output.ts (human/JSON formatters, parseToonToJson), src/tools.ts (schema coercion and Commander option wiring).
  • Tests: Vitest unit tests for output and tools; tests excluded from dist via tsconfig.
  • CI: Run pnpm test on every push and before npm publish.

Commits

  1. chore: add vitest and test script
  2. chore: exclude unit tests from TypeScript dist output
  3. feat: add output formatters and TOON/JSON parsing
  4. feat: add tool schema helpers for dynamic CLI options
  5. refactor: wire CLI to output formatters and tool helpers
  6. test: add unit tests for output and tools
  7. ci: run unit tests before build and publish

Made with Cursor

@marcopesani marcopesani merged commit 9bf1cde into master Mar 31, 2026
1 check 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