pi-agent-memory 0.3.0 → 0.3.2

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.
@@ -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,9 +1,11 @@
1
1
  {
2
2
  "name": "pi-agent-memory",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
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",
7
+ "pi-extension",
8
+ "pi-skill",
7
9
  "claude-mem",
8
10
  "pi-agent",
9
11
  "pi-coding-agent",
@@ -26,7 +28,8 @@
26
28
  "type": "module",
27
29
  "pi": {
28
30
  "extensions": ["./extensions"],
29
- "skills": ["./skills"]
31
+ "skills": ["./skills"],
32
+ "image": "https://raw.githubusercontent.com/ArtemisAI/pi-mem/main/pi-agent/banner.png"
30
33
  },
31
34
  "publishConfig": {
32
35
  "access": "public"