plugin-catalog/mem0.yaml (#131267) points at mem0ai/mem0's own integrations/hermes-plugin-mem0 at a reviewed pin. The entry stays dormant while a bundled copy exists (bundled providers win in find_provider_dir), so deleting the in-tree copy is what lets hermes_cli/memory_provider_migration.py install it for every home whose memory.provider is "mem0". The vendor copy keeps the provider name, mem0.json, the MEM0_* keys and the setup wizard. Also dropped: the hermes-agent[mem0] extra, its win-arm64 platform row and exclude-newer row, the pm/extras.py anchor (uv lock removes only mem0ai, posthog, qdrant-client and sqlalchemy), the mem0-specific doctor check (the generic check now names `hermes plugins install mem0`), and the tests that imported plugins.memory.mem0. Prose that lists the bundled set now names mem0 as a catalog provider. MEM0_* env hints and redaction stay: the catalog copy still reads them.
35 lines
1.7 KiB
Python
35 lines
1.7 KiB
Python
"""``hermes memory`` subcommand parser."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from typing import Callable
|
|
|
|
from hermes_cli.subcommands._shared import add_yes_flag
|
|
|
|
|
|
def build_memory_parser(subparsers, *, cmd_memory: Callable) -> None:
|
|
"""Attach the ``memory`` subcommand to ``subparsers``."""
|
|
memory_parser = subparsers.add_parser(
|
|
"memory", help="Configure external memory provider",
|
|
description="Set up and manage external memory provider plugins.\n\n"
|
|
"Bundled providers: openviking, holographic, retaindb,\n"
|
|
"byterover. Catalog providers (e.g. honcho, hindsight,\n"
|
|
"supermemory, mem0): hermes plugins install <name>.\n\n"
|
|
"Only one external provider can be active at a time.\n"
|
|
"Built-in memory (MEMORY.md/USER.md) is always active.")
|
|
memory_sub = memory_parser.add_subparsers(dest="memory_command")
|
|
_setup_parser = memory_sub.add_parser(
|
|
"setup", help="Interactive provider selection and configuration")
|
|
_setup_parser.add_argument(
|
|
"provider", nargs="?", default=None,
|
|
help="Provider to configure directly (e.g. honcho), skipping the picker")
|
|
memory_sub.add_parser("status", help="Show current memory provider config")
|
|
memory_sub.add_parser("off", help="Disable external provider (built-in only)")
|
|
_reset_parser = memory_sub.add_parser(
|
|
"reset", help="Erase all built-in memory (MEMORY.md and USER.md)")
|
|
add_yes_flag(_reset_parser)
|
|
_reset_parser.add_argument(
|
|
"--target", choices=["all", "memory", "user"], default="all",
|
|
help="Which store to reset: 'all' (default), 'memory', or 'user'")
|
|
memory_parser.set_defaults(func=cmd_memory)
|