@heylemon/lemonade 0.2.0 → 0.2.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.
|
@@ -29,6 +29,23 @@ function buildMemorySection(params) {
|
|
|
29
29
|
"",
|
|
30
30
|
];
|
|
31
31
|
}
|
|
32
|
+
function buildUserLearningSection(params) {
|
|
33
|
+
if (params.isMinimal)
|
|
34
|
+
return [];
|
|
35
|
+
return [
|
|
36
|
+
"## User Learning",
|
|
37
|
+
"When the user shares personal facts about themselves — routines, commute details, dietary preferences, family info, work schedule, hobbies, or anything that could help you assist them better in the future — **proactively save it**.",
|
|
38
|
+
'Update the "## Learned Facts" section in USER.md using the write tool. Group facts by category (routine, preference, personal, work, general).',
|
|
39
|
+
"Format: `- fact text` under the appropriate `### Category` heading.",
|
|
40
|
+
"Only store facts the user explicitly shares or clearly implies. Never invent or assume facts.",
|
|
41
|
+
"Examples of facts worth remembering:",
|
|
42
|
+
'- "I leave for work at 7:30 AM" → routine',
|
|
43
|
+
'- "I\'m vegetarian" → preference',
|
|
44
|
+
'- "My daughter\'s name is Mia" → personal',
|
|
45
|
+
'- "I work at Acme Corp as a PM" → work',
|
|
46
|
+
"",
|
|
47
|
+
];
|
|
48
|
+
}
|
|
32
49
|
function buildUserIdentitySection(ownerLine, isMinimal) {
|
|
33
50
|
if (!ownerLine || isMinimal)
|
|
34
51
|
return [];
|
|
@@ -268,6 +285,7 @@ export function buildAgentSystemPrompt(params) {
|
|
|
268
285
|
readToolName,
|
|
269
286
|
});
|
|
270
287
|
const memorySection = buildMemorySection({ isMinimal, availableTools });
|
|
288
|
+
const userLearningSection = buildUserLearningSection({ isMinimal, availableTools });
|
|
271
289
|
const docsSection = buildDocsSection({
|
|
272
290
|
docsPath: params.docsPath,
|
|
273
291
|
isMinimal,
|
|
@@ -432,6 +450,7 @@ export function buildAgentSystemPrompt(params) {
|
|
|
432
450
|
"",
|
|
433
451
|
...skillsSection,
|
|
434
452
|
...memorySection,
|
|
453
|
+
...userLearningSection,
|
|
435
454
|
// Skip self-update for subagent/none modes
|
|
436
455
|
hasGateway && !isMinimal ? "## Lemonade Self-Update" : "",
|
|
437
456
|
hasGateway && !isMinimal
|
package/dist/build-info.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
8fcbb831164907bf1103be7d74c1e028f9d54dadb32f21942d50feb871d2fe18
|