mcp-agents-memory 0.9.5 → 0.9.10

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/.env.example CHANGED
@@ -110,3 +110,32 @@ FORGETTING_ENABLED=false
110
110
  FORGETTING_WARMUP_MIN=30
111
111
  FORGETTING_INTERVAL_MIN=1440
112
112
  FORGET_THRESHOLD=0.5
113
+
114
+ # Project Alias Promoter (Stage 2) — cold path alias suggestions; default OFF, auto-apply requires explicit opt-in.
115
+ PROJECT_ALIAS_PROMOTER_ENABLED=false
116
+ PROJECT_ALIAS_PROMOTER_INTERVAL_HOURS=24
117
+ PROJECT_ALIAS_AUTO_APPLY=false
118
+
119
+ # ─────────────────────────────────────────────────────────────
120
+ # Local LLM (ollama) — API 비용 없이 추론 가능한 역할에 적용
121
+ # 대상: AMD RX 6800 XT (gfx1030, 16GB VRAM) + ROCm 7.1
122
+ #
123
+ # 설치: bash scripts/setup_local_llm.sh
124
+ # 벤치: npx tsx scripts/bench_local_tagger.ts
125
+ # ─────────────────────────────────────────────────────────────
126
+
127
+ # ollama 서버 주소 (기본: localhost:11434)
128
+ # LOCAL_LLM_BASE_URL=http://localhost:11434/v1
129
+
130
+ # 태거를 로컬 모델로 교체 (기본: xai/grok)
131
+ # 벤치 PASS 모델: qwen2.5:7b (100% JSON 성공, avg 754ms)
132
+ # qwen3.x 계열은 ollama에서 thinking 비활성화 불가 → content 빈 버그 있음
133
+ # TAGGER_PROVIDER=local
134
+ # TAGGER_MODEL=qwen2.5:7b
135
+
136
+ # 라이브러리언을 로컬 모델로 교체 (Librarian v2 구현 후 활성화)
137
+ # LIBRARIAN_PROVIDER=local
138
+ # LIBRARIAN_MODEL=qwen3.6:35b-a3b
139
+
140
+ # 로컬 모델 실패 시 grok으로 자동 fallback (기본: true)
141
+ # LOCAL_GROK_FALLBACK=true
package/README.md CHANGED
@@ -109,7 +109,11 @@ search_memory({
109
109
  query?: string, // 의미 검색 (vector + ILIKE fallback)
110
110
  p_tag?: string, // 특정 프로젝트로 한정
111
111
  date_range?: string, // 기간 한정 (예: "2026-04-29..", "last_week")
112
- role?: 'user' | 'assistant', // form 발화만 / assistant 발화만 (기본 둘 다)
112
+ role?: 'user' | 'assistant', // user 발화만 / assistant 발화만 (기본 둘 다)
113
+ agent_platform?: string, // 플랫폼 한정 (예: 'claude-code'). 생략 또는 '*' = 전 플랫폼
114
+ device_scope?: 'local' | 'global', // 'global'(기본)=전 기기 / 'local'=현재 기기(pinned은 기기 무관)
115
+ limit?: number, // 최대 결과 수 (기본 10, 최대 50)
116
+ include_archived?: boolean, // archived 메모리 포함 (기본 false)
113
117
  })
114
118
  ```
115
119
 
@@ -139,7 +143,7 @@ manage_knowledge({
139
143
  | **Tagger (Cold Path)** | Google `gemini-2.5-flash` (predefined + dynamic) |
140
144
  | **검색 fallback** | PostgreSQL `ILIKE` (cosine 임계값 미만 시) |
141
145
  | **DB** | PostgreSQL + pgvector |
142
- | **Librarian (memory → user)** | TBD (form vision 결정 후) |
146
+ | **Librarian (memory → user)** | local `qwen3.6:35b-a3b` (Q4_K_M, ollama) 30 메시지 + 24h 게이트 |
143
147
  | **Skill 시스템** | TBD (다음 라운드) |
144
148
 
145
149
  ---
@@ -192,7 +196,7 @@ AGENT_KEY=... # 옵션, multi-persona 구분용
192
196
  | Librarian 구현 (memory → user.core/sub_profile promote) | ✅ Done |
193
197
  | MCP Tools (`search_memory` + `manage_knowledge`) | ✅ Done |
194
198
  | Migration (legacy ~3582 row → archive 보존 + 재임베딩) | ✅ Done |
195
- | 핵심 정체성 promote (user.core_profile / sub_profile) | ✅ Done — Librarian draft + form review |
199
+ | 핵심 정체성 promote (user.core_profile / sub_profile) | ✅ Done — Librarian v2 (gate + null guard + JSON-in-string guard, qwen3.6:35b-a3b) |
196
200
  | Skill 트랙 정리 | ⏳ form 결정 보류, 차후 |
197
201
 
198
202
  ---
@@ -201,7 +205,7 @@ AGENT_KEY=... # 옵션, multi-persona 구분용
201
205
 
202
206
  - [`RESPEC.md`](./RESPEC.md) — 현재 vision + 회의 결정사항 + 구현 detail (단일 진실 원천)
203
207
  - [`SPEC.md`](./SPEC.md) — 구 SPEC (v0.x 역사 보존, 일부 §3.4 Memory Tier가 본 vision의 원형)
204
- - [`PROBLEMS.md`](./PROBLEMS.md) — 현재 진행 cleanup 단계 / 진단 결과
208
+ - [`DEVLOG.md`](./DEVLOG.md) — 운영 이슈, 관찰 로그, 아이디어 적립
205
209
 
206
210
  ---
207
211
 
package/RESPEC.md CHANGED
@@ -128,9 +128,13 @@ Tokens $0.50/ 1M tokens
128
128
 
129
129
 
130
130
 
131
- **Librarian**
131
+ **Librarian** ✅ v2 완성 (2026-05-22)
132
132
 
133
133
  - memory table 에서 필요한 user 테이블용 정보를 선별해서 user 테이블에 저장
134
+ - 모델: `qwen3.6:35b-a3b` (local/ollama, Q4_K_M) — thinking 허용, max_tokens=32768
135
+ - 게이트: `LIBRARIAN_ENABLED=true` + 30 새 메시지 + 24h 쿨다운
136
+ - 실패 방어: attempt 시 `last_run_at` 즉시 기록 (hammer 방지), null guard, JSON-in-string guard
137
+ - Cold Path worker tick마다 `maybeRunLibrarian()` 호출 (migration 023)
134
138
 
135
139
 
136
140