chore(release): cli 0.2.7 + docs + Mintlify auto-deploy workflow
Wraps up the AGENTRUSH CLI release across both clients. Lint: - Node Biome: collapse multi-line printError() in whoami.ts - Python ruff: drop unused BRAND_COLOR import; replace EN DASH with HYPHEN-MINUS in app.py docstring Release: - Bump @mem0/cli and mem0-cli from 0.2.6 → 0.2.7 (patch) - Add CHANGELOG.md (Keep a Changelog format) to both CLIs, seeded with the 0.2.7 entry covering whoami, agent-rush <add|search>, the PII safety prompt, and the new agent_rush.acknowledged_at config field Docs: - docs/platform/cli.mdx: new sections for `mem0 whoami` and `mem0 agent-rush <add|search>` with rule table, error-code hints, the launch copy-paste block, and the public-memory warning - llms.txt coverage already in sync (no new .mdx files) Mintlify auto-deploy: - New .github/workflows/mintlify-deploy.yml — pings the deploy hook on every push to main, bypassing the GitHub App's path-detection bug that caused docs.mem0.ai drift (the recurring "trigger redeploy" commits). Workflow is a clean no-op until MINTLIFY_DEPLOY_HOOK_URL repo secret is configured in dashboard.
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
# Changelog
|
||||
|
||||
All notable changes to `mem0-cli` (Python) are documented here.
|
||||
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## [0.2.7] — 2026-05-20
|
||||
|
||||
### Added
|
||||
|
||||
- `mem0 whoami` — print the active agent's `default_user_id` (the AGENTRUSH
|
||||
leaderboard identifier). Reads from local config, no network call.
|
||||
- `mem0 agent-rush <add | search>` — subcommand group that wraps the new
|
||||
`/v1/agent-rush/` platform endpoints for the 7-day AGENTRUSH game. Project
|
||||
routing is implicit (resolved server-side); no flags exposed. Pretty-prints
|
||||
platform error codes into actionable hints (e.g. `agentrush_search_first`
|
||||
→ "Run 3 'mem0 agent-rush search' commands before adding.").
|
||||
- PII safety prompt on first `mem0 agent-rush add`. Interactive runs require
|
||||
explicit `y` to acknowledge that AGENTRUSH memories are public; the
|
||||
acknowledgement is persisted in `~/.mem0/config.json` under
|
||||
`agent_rush.acknowledged_at` so the prompt only appears once per machine.
|
||||
Non-interactive (agent) invocations surface the warning to stderr without
|
||||
blocking.
|
||||
- New config schema field: `agent_rush.acknowledged_at` (ISO timestamp,
|
||||
empty until first interactive acknowledgement).
|
||||
|
||||
### Changed
|
||||
|
||||
- HTTP requests from the new agent-rush commands send `X-Mem0-Mode: agent-rush`
|
||||
in addition to the existing source headers, so platform telemetry can split
|
||||
game traffic from regular CLI usage.
|
||||
|
||||
## [0.2.6] and earlier
|
||||
|
||||
Unlogged historical releases. See git history under `cli/python/`.
|
||||
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
||||
|
||||
[project]
|
||||
name = "mem0-cli"
|
||||
version = "0.2.6"
|
||||
version = "0.2.7"
|
||||
description = "The official CLI for mem0 — the memory layer for AI agents"
|
||||
readme = "README.md"
|
||||
license = "Apache-2.0"
|
||||
|
||||
@@ -944,7 +944,7 @@ def _agent_rush_callback(ctx: typer.Context) -> None:
|
||||
|
||||
@agent_rush_app.command(name="add")
|
||||
def agent_rush_add(
|
||||
content: str = typer.Argument(..., help="Memory content (50–1000 characters, no URLs)."),
|
||||
content: str = typer.Argument(..., help="Memory content (50-1000 characters, no URLs)."),
|
||||
) -> None:
|
||||
"""Submit a memory to AGENTRUSH.
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ import httpx
|
||||
import typer
|
||||
from rich.console import Console
|
||||
|
||||
from mem0_cli.branding import BRAND_COLOR, print_error, print_success
|
||||
from mem0_cli.branding import print_error, print_success
|
||||
from mem0_cli.config import load_config, save_config
|
||||
|
||||
console = Console()
|
||||
|
||||
Reference in New Issue
Block a user