pi-agent-memory 0.3.0 → 0.3.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.
- package/extensions/pi-mem.ts +2 -2
- package/package.json +3 -2
package/extensions/pi-mem.ts
CHANGED
|
@@ -251,7 +251,7 @@ export default function piMemExtension(pi: ExtensionAPI) {
|
|
|
251
251
|
|
|
252
252
|
// Truncate to prevent oversized payloads
|
|
253
253
|
if (toolResponseText.length > MAX_TOOL_RESPONSE_LENGTH) {
|
|
254
|
-
toolResponseText = toolResponseText.slice(0, MAX_TOOL_RESPONSE_LENGTH);
|
|
254
|
+
toolResponseText = toolResponseText.slice(0, MAX_TOOL_RESPONSE_LENGTH - 12) + " [truncated]";
|
|
255
255
|
}
|
|
256
256
|
|
|
257
257
|
workerPostFireAndForget("/api/sessions/observations", {
|
|
@@ -289,7 +289,7 @@ export default function piMemExtension(pi: ExtensionAPI) {
|
|
|
289
289
|
lastAssistantMessage = msg.content;
|
|
290
290
|
} else if (Array.isArray(msg.content)) {
|
|
291
291
|
lastAssistantMessage = msg.content
|
|
292
|
-
.filter((block): block is { type: "text"; text: string } => block.type === "text")
|
|
292
|
+
.filter((block): block is { type: "text"; text: string } => block.type === "text" && "text" in block)
|
|
293
293
|
.map((block) => block.text)
|
|
294
294
|
.join("\n");
|
|
295
295
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-agent-memory",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "Persistent memory for pi-agents, powered by claude-mem (55k+ stars). Cross-session, cross-engine memory with hybrid search.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package",
|
|
@@ -26,7 +26,8 @@
|
|
|
26
26
|
"type": "module",
|
|
27
27
|
"pi": {
|
|
28
28
|
"extensions": ["./extensions"],
|
|
29
|
-
"skills": ["./skills"]
|
|
29
|
+
"skills": ["./skills"],
|
|
30
|
+
"image": "https://raw.githubusercontent.com/ArtemisAI/pi-mem/main/pi-agent/banner.png"
|
|
30
31
|
},
|
|
31
32
|
"publishConfig": {
|
|
32
33
|
"access": "public"
|