@pentatonic-ai/ai-agent-sdk 0.5.4 → 0.5.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pentatonic-ai/ai-agent-sdk",
3
- "version": "0.5.4",
3
+ "version": "0.5.5",
4
4
  "description": "TES SDK — LLM observability and lifecycle tracking via Pentatonic Thing Event System. Track token usage, tool calls, and conversations. Manage things through event-sourced lifecycle stages with AI enrichment and vector search.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -77,7 +77,7 @@ describe("memory-used indicator — hosted mode", () => {
77
77
  });
78
78
 
79
79
  expect(result.systemPromptAddition).toMatch(/🧠/);
80
- expect(result.systemPromptAddition).toMatch(/Used 2 memories from Pentatonic Memory/);
80
+ expect(result.systemPromptAddition).toMatch(/Matched 2 memories from Pentatonic Memory/);
81
81
  expect(result.systemPromptAddition).toMatch(/append exactly this footer/);
82
82
  });
83
83
 
@@ -90,8 +90,8 @@ describe("memory-used indicator — hosted mode", () => {
90
90
  messages: [{ role: "user", content: "query" }],
91
91
  });
92
92
 
93
- expect(result.systemPromptAddition).toMatch(/Used 1 memory from Pentatonic Memory/);
94
- expect(result.systemPromptAddition).not.toMatch(/Used 1 memories/);
93
+ expect(result.systemPromptAddition).toMatch(/Matched 1 memory from Pentatonic Memory/);
94
+ expect(result.systemPromptAddition).not.toMatch(/Matched 1 memories/);
95
95
  });
96
96
 
97
97
  it("omits the indicator instruction when show_memory_indicator is false", async () => {
@@ -123,10 +123,10 @@ describe("memory-used indicator — hosted mode", () => {
123
123
  expect(result.systemPromptAddition).toBeUndefined();
124
124
  });
125
125
 
126
- it("instructs the LLM to omit the footer if memories weren't relevant", async () => {
127
- // The prompt tells the model to skip the footer when the memories
128
- // didn't influence the reply, so unrelated questions don't get a
129
- // spurious "used 3 memories" footer.
126
+ it("always instructs the LLM to append the footer when memories were retrieved", async () => {
127
+ // Removed the "omit if irrelevant" escape hatch so users always get
128
+ // a visible signal when memory was consulted even when retrieval
129
+ // was poor. Surfaces retrieval quality instead of hiding it.
130
130
  mockFetch([{ id: "m1", content: "Phil likes cheese", similarity: 0.4 }]);
131
131
  const engine = makeEngine();
132
132
 
@@ -135,8 +135,7 @@ describe("memory-used indicator — hosted mode", () => {
135
135
  messages: [{ role: "user", content: "query" }],
136
136
  });
137
137
 
138
- expect(result.systemPromptAddition).toMatch(
139
- /If the memories above were not relevant to your reply, omit the footer/
140
- );
138
+ expect(result.systemPromptAddition).not.toMatch(/omit the footer/);
139
+ expect(result.systemPromptAddition).toMatch(/append exactly this footer/);
141
140
  });
142
141
  });
@@ -656,9 +656,7 @@ export default {
656
656
  "",
657
657
  `After your reply, on a new line, append exactly this footer (no other prefix, no trailing content):`,
658
658
  `—`,
659
- `🧠 _Used ${results.length} memor${results.length === 1 ? "y" : "ies"} from Pentatonic Memory_`,
660
- "",
661
- `If the memories above were not relevant to your reply, omit the footer.`,
659
+ `🧠 _Matched ${results.length} memor${results.length === 1 ? "y" : "ies"} from Pentatonic Memory_`,
662
660
  ]
663
661
  : [];
664
662
 
@@ -2,7 +2,7 @@
2
2
  "id": "pentatonic-memory",
3
3
  "name": "Pentatonic Memory",
4
4
  "description": "Persistent, searchable memory with multi-signal retrieval and HyDE query expansion. Local (Docker + Ollama) or hosted (Pentatonic TES).",
5
- "version": "0.5.1",
5
+ "version": "0.5.2",
6
6
  "kind": "context-engine",
7
7
  "configSchema": {
8
8
  "type": "object",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pentatonic-ai/openclaw-memory-plugin",
3
- "version": "0.8.1",
3
+ "version": "0.8.2",
4
4
  "description": "Pentatonic Memory plugin for OpenClaw — persistent, searchable memory with multi-signal retrieval and HyDE query expansion",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -452,9 +452,7 @@ function createHostedContextEngine(config, opts = {}) {
452
452
  "",
453
453
  `After your reply, on a new line, append exactly this footer (no other prefix, no trailing content):`,
454
454
  `—`,
455
- `🧠 _Used ${results.length} memor${results.length === 1 ? "y" : "ies"} from Pentatonic Memory_`,
456
- "",
457
- `If the memories above were not relevant to your reply, omit the footer.`,
455
+ `🧠 _Matched ${results.length} memor${results.length === 1 ? "y" : "ies"} from Pentatonic Memory_`,
458
456
  ].join("\n")
459
457
  : "";
460
458
 
@@ -347,7 +347,7 @@ async function main() {
347
347
  const health = {
348
348
  status: "ok",
349
349
  client: CLIENT_ID,
350
- version: "0.5.4",
350
+ version: "0.5.5",
351
351
  search: "text",
352
352
  db: false,
353
353
  ollama: false,