Skip to content

fix: Improve plugin logging and add test/coverage CI#11

Merged
lan17 merged 9 commits intomainfrom
codex/logging-debug-cleanup
Mar 20, 2026
Merged

fix: Improve plugin logging and add test/coverage CI#11
lan17 merged 9 commits intomainfrom
codex/logging-debug-cleanup

Conversation

@lan17
Copy link
Contributor

@lan17 lan17 commented Mar 20, 2026

Summary

  • replace the original debug-toggle plan with a real logLevel model supporting warn, info, and debug
  • keep default warn mode quiet so normal operation only logs warnings and explicit block events
  • use info for one-line lifecycle visibility such as client init, gateway warmup, and agent syncs
  • keep verbose per-tool diagnostics, timing, args, and evaluation context behind debug
  • keep config.debug as a deprecated compatibility alias for logLevel=debug
  • document the new logging configuration in the plugin schema and README

Validation

  • add TypeScript typechecking with tsc --noEmit
  • add behavioral Vitest coverage for logging, plugin hooks, session context, session store, tool catalog, runtime helpers, and shared utilities
  • add CI steps for lint, typecheck, tests, and coverage generation
  • generate coverage/lcov.info, upload coverage artifacts in CI, and upload to Codecov when CODECOV_TOKEN is configured

Testing

  • npm run lint
  • npm run typecheck
  • npm test
  • npm run coverage

@lan17 lan17 changed the title Add debug logging mode for plugin feat: Add debug logging mode for plugin Mar 20, 2026
@lan17 lan17 changed the title feat: Add debug logging mode for plugin Clean up plugin logging with log levels Mar 20, 2026
@lan17 lan17 changed the title Clean up plugin logging with log levels Improve plugin logging and add test/coverage CI Mar 20, 2026
@lan17 lan17 changed the title Improve plugin logging and add test/coverage CI fix: Improve plugin logging and add test/coverage CI Mar 20, 2026
@lan17 lan17 merged commit 0899dc1 into main Mar 20, 2026
3 checks passed
@lan17 lan17 deleted the codex/logging-debug-cleanup branch March 20, 2026 19:30
galileo-automation pushed a commit that referenced this pull request Mar 20, 2026
## [1.3.3](v1.3.2...v1.3.3) (2026-03-20)

### Bug Fixes

* Improve plugin logging and add test/coverage CI ([#11](#11)) ([0899dc1](0899dc1))
* Remove deprecated config.debug support ([#12](#12)) ([d6e381c](d6e381c))
@galileo-automation
Copy link

🎉 This PR is included in version 1.3.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants