diff --git a/integrations/mem0-agent/README.md b/integrations/mem0-agent/README.md index bdeb4c3d5..a16ef7c05 100644 --- a/integrations/mem0-agent/README.md +++ b/integrations/mem0-agent/README.md @@ -25,7 +25,7 @@ To wire the hooks into Claude Code, point your plugin/settings config at the gen manifest: ``` -hooks/generated/claude-code.hooks.json +hooks/hooks.json ``` Non-interactive install (CI, dotfiles, provisioning): @@ -100,7 +100,7 @@ matcher, command, timeout, background/blocking flags, local-only contract, and o of *why*. ```bash -python3 hooks/generate.py # write hooks/generated/claude-code.hooks.json +python3 hooks/generate.py # write hooks/hooks.json python3 hooks/generate.py --check # exit 1 if the committed manifest drifted (run in CI) ``` diff --git a/integrations/mem0-agent/hooks/generated/claude-code.hooks.json b/integrations/mem0-agent/hooks/hooks.json similarity index 100% rename from integrations/mem0-agent/hooks/generated/claude-code.hooks.json rename to integrations/mem0-agent/hooks/hooks.json diff --git a/integrations/mem0-agent/hooks/hooks.spec.yaml b/integrations/mem0-agent/hooks/hooks.spec.yaml index 6c63790fb..3ac2f574a 100644 --- a/integrations/mem0-agent/hooks/hooks.spec.yaml +++ b/integrations/mem0-agent/hooks/hooks.spec.yaml @@ -29,7 +29,7 @@ defaults: editors: - id: claude-code supported: true - output: "generated/claude-code.hooks.json" + output: "hooks.json" # Claude Code auto-discovers /hooks/hooks.json dialect: "claude-code" env: MEM0_EDITOR: "claude-code" diff --git a/integrations/mem0-agent/tests/test_cli.py b/integrations/mem0-agent/tests/test_cli.py index 2ec389f20..30220534d 100644 --- a/integrations/mem0-agent/tests/test_cli.py +++ b/integrations/mem0-agent/tests/test_cli.py @@ -125,7 +125,7 @@ def test_hook_manifest_commands_all_exist(): """Guards against the manifest and the CLI drifting apart.""" import pathlib - manifest = pathlib.Path(__file__).resolve().parents[1] / "hooks/generated/claude-code.hooks.json" + manifest = pathlib.Path(__file__).resolve().parents[1] / "hooks/hooks.json" data = json.loads(manifest.read_text()) known = {"setup", "onboard", "context", "observe", "flush", "assist-error", "remember", "forget", "maintain", "health", "stats", "config"}