Skip to content

v2.5.0

Latest

Choose a tag to compare

@leafo leafo released this 25 Apr 21:17
· 4 commits to master since this release
v2.5.0
luarocks install lapis-exceptions

Changes

  • Add lapis exceptions CLI for managing exceptions from the terminal. Subcommands: list, show, requests, update, delete, create. Supports filters (--status, --sort, --since, --search, --search-path), --full detailed view, --json machine-readable output, and --page / --limit pagination. See the README CLI section for details.
  • Bulk update and delete for exception groups, plus a requests-only mode for delete that drops requests without removing the group.
  • Add MCP (Model Context Protocol) server at lapis.exceptions.mcp_server for integrating exception management with AI tools. Run with lapis mcp lapis.exceptions.mcp_server. Exposes list_exception_groups, list_exceptions, show_exception_group, create_exception, update_exception_group, and delete_exception_group tools.
  • Add ON DELETE CASCADE foreign key from exception_requests.exception_type_id to exception_types.id so deleting a group also removes its requests at the database level.
  • lapis.exceptions.schema.run_migrations now accepts an optional version argument that asserts the expected migration timestamp is present, raising a clear error if the installed lapis-exceptions is out of date.
  • Lazy-require database-dependent imports so lapis exceptions (e.g. --help) works without a live DB connection.

Notes

A new migration (1755025174) is included in this release. To apply it, re-run your migration entry, e.g.:

[XXX] = require("lapis.exceptions.schema").run_migrations

If you want to assert that the installed lapis-exceptions includes this migration, pass the timestamp:

[XXX] = -> require("lapis.exceptions.schema").run_migrations 1755025174

Misc

  • README updated with CLI and MCP server documentation
  • Test fixes
  • Add ctags

Full Changelog: v2.4.0...v2.5.0