@lobu/core 11.2.0 → 11.3.0
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lobu-guidance.d.ts","sourceRoot":"","sources":["../src/lobu-guidance.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"lobu-guidance.d.ts","sourceRoot":"","sources":["../src/lobu-guidance.ts"],"names":[],"mappings":"AA+BA,wBAAgB,2BAA2B,CAAC,OAAO,CAAC,EAAE;IACpD,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,GAAG,MAAM,CAkBT;AAED,wBAAgB,wBAAwB,IAAI,MAAM,CAYjD"}
|
package/dist/lobu-guidance.js
CHANGED
|
@@ -9,6 +9,7 @@ const MEMORY_RULE_TEMPLATES = [
|
|
|
9
9
|
"To search, call {{searchTool}}. Results include view_url links to the web interface.",
|
|
10
10
|
"NEVER construct Lobu URLs yourself. When the user asks for a link, call {{searchTool}} to get the correct view_url.",
|
|
11
11
|
'When the user says "remember this", save it to Lobu immediately.',
|
|
12
|
+
"When a message changes a fact you already stored (an updated preference, status, count, location, or plan), first {{searchTool}} for the prior memory to get its id, then {{saveTool}} the new value with supersedes_event_id set to that id. This replaces the stale value so future recalls return the current one; the old value stays in history but is hidden from normal search.",
|
|
12
13
|
];
|
|
13
14
|
function renderTemplate(template, tools) {
|
|
14
15
|
// Use regex /g instead of String.prototype.replaceAll so this file compiles
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lobu-guidance.js","sourceRoot":"","sources":["../src/lobu-guidance.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"lobu-guidance.js","sourceRoot":"","sources":["../src/lobu-guidance.ts"],"names":[],"mappings":";;AA+BA,kEAoBC;AAED,4DAYC;AA5DD,MAAM,YAAY,GAChB,mGAAmG,CAAC;AAEtG,MAAM,qBAAqB,GAAG;IAC5B,0EAA0E;IAC1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