claude-memory-agent 2.2.1 → 2.2.2

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/install.py CHANGED
@@ -91,10 +91,15 @@ def print_error(text: str):
91
91
 
92
92
 
93
93
  def prompt_yes_no(question: str, default: bool = True) -> bool:
94
- """Prompt for yes/no answer."""
94
+ """Prompt for yes/no answer. Returns default if stdin is not a TTY or EOF."""
95
+ if not sys.stdin.isatty():
96
+ return default
95
97
  suffix = " [Y/n]: " if default else " [y/N]: "
96
98
  while True:
97
- answer = input(question + suffix).strip().lower()
99
+ try:
100
+ answer = input(question + suffix).strip().lower()
101
+ except EOFError:
102
+ return default
98
103
  if not answer:
99
104
  return default
100
105
  if answer in ("y", "yes"):
@@ -105,8 +110,13 @@ def prompt_yes_no(question: str, default: bool = True) -> bool:
105
110
 
106
111
 
107
112
  def prompt_value(question: str, default: str) -> str:
108
- """Prompt for a value with a default."""
109
- answer = input(f"{question} [{default}]: ").strip()
113
+ """Prompt for a value with a default. Returns default if stdin is not a TTY or EOF."""
114
+ if not sys.stdin.isatty():
115
+ return default
116
+ try:
117
+ answer = input(f"{question} [{default}]: ").strip()
118
+ except EOFError:
119
+ return default
110
120
  return answer if answer else default
111
121
 
112
122
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-memory-agent",
3
- "version": "2.2.1",
3
+ "version": "2.2.2",
4
4
  "description": "Persistent semantic memory system for Claude Code sessions with anti-hallucination grounding",
5
5
  "keywords": [
6
6
  "claude",
package/requirements.txt CHANGED
@@ -9,4 +9,4 @@ torch>=2.0.0
9
9
  sentence-transformers>=3.0.0,<4.0.0
10
10
  faiss-cpu>=1.7.4,<2.0.0
11
11
  rich>=13.0.0,<14.0.0
12
- mcp>=1.0.0
12
+ mcp>=1.0.0; python_version>="3.10"