opencode-mem 2.0.0 → 2.0.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.
|
@@ -113,7 +113,9 @@ async function analyzeUserPatterns(ctx, context) {
|
|
|
113
113
|
|
|
114
114
|
Your task is to analyze user prompts fy patterns, preferences, and workflows.
|
|
115
115
|
|
|
116
|
-
Use the save_user_memories tool to save identified patterns. Only save patterns that are clearly evident from the prompts
|
|
116
|
+
Use the save_user_memories tool to save identified patterns. Only save patterns that are clearly evident from the prompts.
|
|
117
|
+
|
|
118
|
+
IMPORTANT: All memories must have scope set to "user".`;
|
|
117
119
|
const toolSchema = {
|
|
118
120
|
type: "function",
|
|
119
121
|
function: {
|
|
@@ -132,6 +134,11 @@ Use the save_user_memories tool to save identified patterns. Only save patterns
|
|
|
132
134
|
type: "string",
|
|
133
135
|
description: "Clear description of the pattern or preference",
|
|
134
136
|
},
|
|
137
|
+
scope: {
|
|
138
|
+
type: "string",
|
|
139
|
+
enum: ["user"],
|
|
140
|
+
description: "Memory scope (must be 'user' for user learning)",
|
|
141
|
+
},
|
|
135
142
|
type: {
|
|
136
143
|
type: "string",
|
|
137
144
|
description: "Type of insight (e.g., preference, pattern, workflow, skill-level, communication-style)",
|
|
@@ -141,7 +148,7 @@ Use the save_user_memories tool to save identified patterns. Only save patterns
|
|
|
141
148
|
description: "Why this pattern is significant (optial)",
|
|
142
149
|
},
|
|
143
150
|
},
|
|
144
|
-
required: ["summary", "type"],
|
|
151
|
+
required: ["summary", "scope", "type"],
|
|
145
152
|
},
|
|
146
153
|
},
|
|
147
154
|
},
|