claude-memory-agent 2.2.0 → 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/lib/installer.js +1 -1
- package/install.py +6 -5
- package/package.json +1 -1
package/bin/lib/installer.js
CHANGED
|
@@ -104,7 +104,7 @@ function buildEnvContent(config, agentDir) {
|
|
|
104
104
|
* @returns {string[]} Arguments for install.py
|
|
105
105
|
*/
|
|
106
106
|
function buildInstallArgs(config) {
|
|
107
|
-
const args = ['--auto', '--skip-env'];
|
|
107
|
+
const args = ['--auto', '--skip-env', '--skip-deps', '--skip-claude-check'];
|
|
108
108
|
|
|
109
109
|
if (config.scope === 'project') {
|
|
110
110
|
args.push('--scope', 'project', '--project-path', config.projectPath);
|
package/install.py
CHANGED
|
@@ -563,7 +563,7 @@ def setup_hooks(config: Dict[str, str]) -> bool:
|
|
|
563
563
|
return True
|
|
564
564
|
|
|
565
565
|
|
|
566
|
-
def configure_hooks_json() -> bool:
|
|
566
|
+
def configure_hooks_json(auto: bool = False) -> bool:
|
|
567
567
|
"""Configure hooks.json to enable the hooks."""
|
|
568
568
|
hooks_file = get_claude_settings_dir() / "hooks.json"
|
|
569
569
|
|
|
@@ -596,8 +596,9 @@ def configure_hooks_json() -> bool:
|
|
|
596
596
|
if hooks_file.exists():
|
|
597
597
|
try:
|
|
598
598
|
existing = json.loads(hooks_file.read_text())
|
|
599
|
-
#
|
|
600
|
-
|
|
599
|
+
# In auto mode, always merge; otherwise ask
|
|
600
|
+
should_update = auto or prompt_yes_no("hooks.json exists. Update with memory agent hooks?", default=True)
|
|
601
|
+
if should_update:
|
|
601
602
|
if "hooks" not in existing:
|
|
602
603
|
existing["hooks"] = {}
|
|
603
604
|
existing["hooks"].update(hooks_config["hooks"])
|
|
@@ -861,7 +862,7 @@ def main():
|
|
|
861
862
|
if not install_claude_code():
|
|
862
863
|
print_error("Could not install Claude Code automatically.")
|
|
863
864
|
print("Please install manually: npm install -g @anthropic-ai/claude-code")
|
|
864
|
-
if not prompt_yes_no("Continue anyway (memory agent only)?", default=False):
|
|
865
|
+
if not args.auto and not prompt_yes_no("Continue anyway (memory agent only)?", default=False):
|
|
865
866
|
return 1
|
|
866
867
|
else:
|
|
867
868
|
claude_ok = True
|
|
@@ -937,7 +938,7 @@ def main():
|
|
|
937
938
|
|
|
938
939
|
if args.auto or prompt_yes_no("Install Claude Code hooks?"):
|
|
939
940
|
setup_hooks(config)
|
|
940
|
-
configure_hooks_json()
|
|
941
|
+
configure_hooks_json(auto=args.auto)
|
|
941
942
|
else:
|
|
942
943
|
print_warning("Skipping Claude Code configuration (Claude Code not installed)")
|
|
943
944
|
print(" Run 'python install.py' again after installing Claude Code")
|