LoreonLabsPlatform
DocsHome
  • Overview

Intelligence

  • Markets
  • Builders
  • Research
  • Ecosystems
  • Launchpads
  • Search
Ecosystems

Python

langmigrate

Declarative schema migrations for LangGraph state persistence — Alembic for your checkpointers and stores

PythonEmergingagent-memorycheckpointerlangchainlanggraph
GitHubWebsite
Stars
4
Forks
—
Contributors
1
Last push
2d ago

Recent commits

Latest commits.

  • Release 1.3.0, updating version numbers in `pyproject.toml` and `__init__.py`, and adding a new entry in CHANGELOG.md. The batch runners now correctly count migrated items only after successful writes, preventing inflated success counts when writes fail under `--continue-on-error`. Added tests to verify this behavior and ensure dry-run counts are unaffected.
    cb42410Nabil Chatbi2d ago
  • Implement structured error handling for malformed `langmigrate.toml` files by introducing a `ConfigError` exception. This change ensures that users receive clear error messages instead of raw tracebacks when configuration issues arise. Update CLI commands to utilize the new error handling, and add tests to verify the correct behavior for various TOML parsing errors.
    7108ef3Nabil Chatbi2d ago
  • Escape user messages in `langmigrate revision` and `merge` commands to prevent SyntaxErrors in generated docstrings. This change ensures that messages containing triple quotes or backslashes are safely inserted, avoiding issues that could break the entire migrations directory. Added tests to verify the new behavior and prevent future regressions.
    37eae95Nabil Chatbi2d ago
  • Fix `revision --autogenerate` to retain inherited fields in dataclass and plain-class schemas by using MRO-aware `get_type_hints`. Update documentation to clarify TTL handling in `MigrationStore` during lazy heal and batch upgrades, emphasizing the loss of custom per-item TTLs. Add tests to ensure inherited fields are correctly included in introspection for dataclasses, plain classes, and TypedDicts.
6f63e04Nabil Chatbi2d ago
  • Enhance `NodeRemap` to validate fallback nodes against `known_nodes`, raising `TopologyMismatchError` for stale fallbacks. Updated tests to cover new validation behavior and ensure correct error handling for missing nodes.
    2a96a17Nabil Chatbi2d ago
  • Release 1.2.1, updating version numbers in `pyproject.toml` and `__init__.py`, and adding a new entry in CHANGELOG.md for the Redis adapter's handling of bytes metadata. This version includes a fix for the revision tag reading issue.
    ed5f791Nabil Chatbi2d ago
  • Refactor configuration and engine logic for improved clarity and defensive programming. Updated `config.py` to clarify tomllib import handling for Python versions, enhanced comments in `engine.py` for downgrade path logic, and added defensive checks in `registry.py` to ensure robustness against unreachable code paths. Expanded unit tests to cover new async adapter functionality and context manager behavior in Postgres adapters.
    fc86b68Nabil Chatbi3d ago
  • Implement tests for batch upgrade and downgrade scenarios, enhancing error handling for missing or unknown revisions. New tests ensure that operations skip missing tuples and handle already current states gracefully, while also validating behavior under various policies for unknown revisions. Updated existing tests to cover these changes.
    e2ecc5dNabil Chatbi3d ago
  • Top contributors

    Builders behind this project.

    scinfu
    40 commits