mcp-agents-memory 0.9.12 → 0.9.13
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 +3 -0
- package/build/index.js +5 -2
- package/package.json +1 -1
package/.env.example
CHANGED
|
@@ -115,6 +115,9 @@ FORGET_THRESHOLD=0.5
|
|
|
115
115
|
PROJECT_ALIAS_PROMOTER_ENABLED=false
|
|
116
116
|
PROJECT_ALIAS_PROMOTER_INTERVAL_HOURS=24
|
|
117
117
|
PROJECT_ALIAS_AUTO_APPLY=false
|
|
118
|
+
# Cap explicit user statements fed to the alias-judge prompt (most-recent N). Uncapped
|
|
119
|
+
# accumulation + double-serialization overflowed the 8192 ctx on local llama.cpp (Qwen3-14B).
|
|
120
|
+
PROJECT_ALIAS_EXPLICIT_PROMPT_CAP=5
|
|
118
121
|
|
|
119
122
|
# ─────────────────────────────────────────────────────────────
|
|
120
123
|
# Local LLM (ollama) — API 비용 없이 추론 가능한 역할에 적용
|
package/build/index.js
CHANGED
|
@@ -56800,16 +56800,19 @@ async function judgePair(pair, tagsById, memoriesByTag) {
|
|
|
56800
56800
|
const sourceMemories = memoriesByTag.get(source.id) ?? [];
|
|
56801
56801
|
const targetMemories = memoriesByTag.get(target.id) ?? [];
|
|
56802
56802
|
const allowedIds = collectAllowedMemoryIds(pair, sourceMemories, targetMemories);
|
|
56803
|
+
const promptSignals = { ...pair.signals };
|
|
56804
|
+
delete promptSignals.explicit_statement_previews;
|
|
56805
|
+
const explicitPromptCap = envInt("PROJECT_ALIAS_EXPLICIT_PROMPT_CAP", 5);
|
|
56803
56806
|
const userPrompt = JSON.stringify(
|
|
56804
56807
|
{
|
|
56805
56808
|
task: "Judge whether Tag A and Tag B are the same project identity.",
|
|
56806
56809
|
candidate_sources: Array.from(pair.sources),
|
|
56807
|
-
signals:
|
|
56810
|
+
signals: promptSignals,
|
|
56808
56811
|
tag_a_source_candidate: tagPayload(source),
|
|
56809
56812
|
tag_b_target_candidate: tagPayload(target),
|
|
56810
56813
|
tag_a_representative_memories: sourceMemories.map(formatMemoryForPrompt),
|
|
56811
56814
|
tag_b_representative_memories: targetMemories.map(formatMemoryForPrompt),
|
|
56812
|
-
explicit_user_statements: pair.explicitStatements.map(formatMemoryForPrompt)
|
|
56815
|
+
explicit_user_statements: pair.explicitStatements.slice(0, explicitPromptCap).map(formatMemoryForPrompt)
|
|
56813
56816
|
},
|
|
56814
56817
|
null,
|
|
56815
56818
|
2
|