claude-self-reflect 2.4.10 → 2.4.11

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.
@@ -1,7 +1,10 @@
1
- FROM python:3.11-slim
1
+ FROM python:3.12-slim
2
2
 
3
3
  WORKDIR /app
4
4
 
5
+ # Update system packages for security
6
+ RUN apt-get update && apt-get upgrade -y && rm -rf /var/lib/apt/lists/*
7
+
5
8
  # Install dependencies
6
9
  COPY scripts/requirements.txt .
7
10
  RUN pip install --no-cache-dir -r requirements.txt
@@ -1,6 +1,7 @@
1
- FROM python:3.11-slim
1
+ FROM python:3.12-slim
2
2
 
3
- RUN apt-get update && apt-get install -y --no-install-recommends \
3
+ # Update system packages for security and install curl
4
+ RUN apt-get update && apt-get upgrade -y && apt-get install -y --no-install-recommends \
4
5
  curl \
5
6
  && rm -rf /var/lib/apt/lists/*
6
7
 
@@ -11,7 +12,7 @@ RUN pip install --no-cache-dir \
11
12
  numpy
12
13
 
13
14
  # Copy the import script with proper permissions
14
- COPY scripts/import-conversations-isolated.py /app/import.py
15
+ COPY scripts/import-conversations-unified.py /app/import.py
15
16
  RUN chmod +x /app/import.py
16
17
 
17
18
  WORKDIR /app
@@ -1,7 +1,10 @@
1
- FROM python:3.11-slim
1
+ FROM python:3.12-slim
2
2
 
3
3
  WORKDIR /app
4
4
 
5
+ # Update system packages for security
6
+ RUN apt-get update && apt-get upgrade -y && rm -rf /var/lib/apt/lists/*
7
+
5
8
  # Copy the MCP server package files
6
9
  COPY mcp-server/pyproject.toml ./
7
10
  COPY mcp-server/src ./src
@@ -1,14 +1,14 @@
1
- FROM python:3.11-slim
1
+ FROM python:3.12-slim
2
2
 
3
- # Install system dependencies
4
- RUN apt-get update && apt-get install -y --no-install-recommends \
3
+ # Update system packages for security and install build dependencies
4
+ RUN apt-get update && apt-get upgrade -y && apt-get install -y --no-install-recommends \
5
5
  gcc \
6
6
  g++ \
7
7
  && rm -rf /var/lib/apt/lists/*
8
8
 
9
9
  # Install Python dependencies with specific versions for stability
10
10
  # Install torch first from PyTorch index
11
- RUN pip install --no-cache-dir torch==2.0.1 --index-url https://download.pytorch.org/whl/cpu
11
+ RUN pip install --no-cache-dir torch==2.3.0 --index-url https://download.pytorch.org/whl/cpu
12
12
 
13
13
  # Install other dependencies from default PyPI
14
14
  RUN pip install --no-cache-dir \
@@ -1,7 +1,7 @@
1
- FROM python:3.11-slim
1
+ FROM python:3.12-slim
2
2
 
3
- # Install build dependencies for psutil
4
- RUN apt-get update && apt-get install -y \
3
+ # Update system packages for security and install build dependencies for psutil
4
+ RUN apt-get update && apt-get upgrade -y && apt-get install -y \
5
5
  gcc \
6
6
  python3-dev \
7
7
  && rm -rf /var/lib/apt/lists/*
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "claude-self-reflect-mcp"
3
- version = "0.1.0"
3
+ version = "2.4.11"
4
4
  description = "MCP server for Claude self-reflection with memory decay"
5
5
  # readme = "README.md"
6
6
  requires-python = ">=3.10"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-self-reflect",
3
- "version": "2.4.10",
3
+ "version": "2.4.11",
4
4
  "description": "Give Claude perfect memory of all your conversations - Installation wizard for Python MCP server",
5
5
  "keywords": [
6
6
  "claude",
@@ -0,0 +1,33 @@
1
+ #!/usr/bin/env python3
2
+ """Simple watcher that runs import periodically."""
3
+
4
+ import time
5
+ import subprocess
6
+ import os
7
+ import sys
8
+ from datetime import datetime
9
+
10
+ WATCH_INTERVAL = int(os.getenv('WATCH_INTERVAL', '60'))
11
+
12
+ print(f"[Watcher] Starting import watcher with {WATCH_INTERVAL}s interval", flush=True)
13
+
14
+ while True:
15
+ try:
16
+ print(f"[Watcher] Running import at {datetime.now().isoformat()}", flush=True)
17
+ result = subprocess.run([
18
+ sys.executable,
19
+ "/scripts/import-conversations-unified.py"
20
+ ], capture_output=True, text=True)
21
+
22
+ if result.returncode == 0:
23
+ print(f"[Watcher] Import completed successfully", flush=True)
24
+ else:
25
+ print(f"[Watcher] Import failed with code {result.returncode}", flush=True)
26
+ if result.stderr:
27
+ print(f"[Watcher] Error: {result.stderr}", flush=True)
28
+
29
+ except Exception as e:
30
+ print(f"[Watcher] Error: {e}", flush=True)
31
+
32
+ print(f"[Watcher] Sleeping for {WATCH_INTERVAL} seconds...", flush=True)
33
+ time.sleep(WATCH_INTERVAL)