@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
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.2.0",
3
- "commit": "091a5fb31c13a8706120e95f8cc1161d21b1d842",
4
- "builtAt": "2026-02-22T10:47:37.538Z"
2
+ "version": "0.2.1",
3
+ "commit": "4fb691db7cce1151b7e7b56b76b337a9409ac009",
4
+ "builtAt": "2026-02-22T12:34:47.819Z"
5
5
  }
@@ -1 +1 @@
1
- 967c8f70a63d8d647a3581a86c59073c515011499b50fbd00081c56ea3263dfc
1
+ 8fcbb831164907bf1103be7d74c1e028f9d54dadb32f21942d50feb871d2fe18
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@heylemon/lemonade",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "AI gateway CLI for Lemon - local AI assistant with integrations",
5
5
  "publishConfig": {
6
6
  "access": "restricted"