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` 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/node/`.
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@mem0/cli",
|
||||
"version": "0.2.6",
|
||||
"version": "0.2.7",
|
||||
"description": "The official CLI for mem0 — the memory layer for AI agents",
|
||||
"type": "module",
|
||||
"bin": {
|
||||
|
||||
@@ -10,9 +10,7 @@ export async function cmdWhoami(): Promise<void> {
|
||||
const config = loadConfig();
|
||||
const sessionId = config.platform?.defaultUserId;
|
||||
if (!sessionId) {
|
||||
printError(
|
||||
"No default_user_id found. Run `mem0 init --agent` first.",
|
||||
);
|
||||
printError("No default_user_id found. Run `mem0 init --agent` first.");
|
||||
process.exit(1);
|
||||
}
|
||||
console.log(`Your AGENTRUSH identifier: ${colors.brand(sessionId)}`);
|
||||
|
||||
Reference in New Issue
Block a user