v0.0.8

moorcheh-ai/memantov0.0.8May 5, 2026by het0814

AI Summary

Hardens the REST API with input validation, cost guards, custom summary output paths, and updates agent pattern options.

Key Highlights

  • API input validation with min/max lengths and parameter bounds
  • CostGuard validators applied across read/write endpoints
  • Custom output path for daily summaries
  • Updated agent pattern options

New Features

  • Input validation: min_length=1 on query/content, max_length=500 on title, bounds [0.0, 1.0] for confidence/threshold/temperature
  • CostGuard validators: validate_text_length, validate_query_length, validate_k_limit
  • Daily summary custom output path support in generate_summary() and generate_daily_summary()
  • Agent pattern options updated to: project, support, tool

Full Release Notes

  # Release Notes for v0.0.8
                                                                                                                                                         
  This release hardens the REST API with input validation and cost guards, adds a custom output path for daily summaries, blocks invalid session extension values at both the CLI and API layers, removes unavailable agent patterns, and bumps the `moorcheh-sdk` minimum version.

  ## Improvements

  - **API input validation** (`memory_v2.py`)
    - `remember`, `recall`, `answer`, `recall/as-of`, `recall/current`, and `recall/changed-since` endpoints now enforce `min_length=1` on query/content 
  fields and `max_length=500` on `title`.
    - `confidence`, `min_similarity`, `threshold`, and `temperature` parameters are bounded `[0.0, 1.0]`.
    - `limit` parameters enforced `ge=1` and typed as `int | None` where applicable.
    - `CostGuard` validators (`validate_text_length`, `validate_query_length`, `validate_k_limit`) applied across all memory read/write endpoints.       

  - **Session extension guard** (`sessions.py`, `session.py`)
    - Extending a session with `additional_hours <= 0` now returns HTTP 422 at the API level.
    - CLI (`memanto session extend`) rejects non-positive `--hours` values before the request is sent.

  - **Daily summary custom output path** (`daily_summary_service.py`, `direct_client.py`, `sdk_client.py`, `memory.py`)
    - `generate_summary()` and `generate_daily_summary()` accept an optional `output_path` parameter.
    - When provided, the summary Markdown file is written to the specified path (parent directories are created automatically) instead of the default    
  `~/.memanto/summaries/`.

  - **Agent pattern options** (`agent.py`)
    - `memanto agent create --pattern` help text updated to list only available patterns: `project`, `support`, `tool` (removes unavailable `chat`,      
  `research`, `custom`).

  ## Dependencies

  - `moorcheh-sdk` minimum version bumped from `>=0.1.0` to `>=1.3.5`.

  ## Full Changelog

  Full Changelog: https://github.com/moorcheh-ai/memanto/compare/v0.0.7...v0.0.8