shabti 2.10.0 → 2.10.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/package.json +1 -1
- package/src/a2a/server.js +3 -2
package/package.json
CHANGED
package/src/a2a/server.js
CHANGED
|
@@ -3,6 +3,7 @@ import { randomUUID } from "crypto";
|
|
|
3
3
|
import { buildAgentCard } from "./agentCard.js";
|
|
4
4
|
import { createEngine } from "../core/engine.js";
|
|
5
5
|
import { logger } from "../utils/logger.js";
|
|
6
|
+
import { normalizeText } from "../utils/normalize.js";
|
|
6
7
|
|
|
7
8
|
// ============================================================
|
|
8
9
|
// Task Store (in-memory)
|
|
@@ -62,7 +63,7 @@ async function handleMemoryStore(engine, parts) {
|
|
|
62
63
|
throw Object.assign(new Error("Missing content in message parts"), { code: -32602 });
|
|
63
64
|
}
|
|
64
65
|
|
|
65
|
-
const result = await engine.store(content, opts);
|
|
66
|
+
const result = await engine.store(normalizeText(content), opts);
|
|
66
67
|
return {
|
|
67
68
|
artifactId: randomUUID(),
|
|
68
69
|
name: "store_result",
|
|
@@ -87,7 +88,7 @@ async function handleMemorySearch(engine, parts) {
|
|
|
87
88
|
throw Object.assign(new Error("Missing query in message parts"), { code: -32602 });
|
|
88
89
|
}
|
|
89
90
|
|
|
90
|
-
const results = await engine.executeQuery({ text: query, limit });
|
|
91
|
+
const results = await engine.executeQuery({ text: normalizeText(query), limit });
|
|
91
92
|
const formatted = results.map((r) => ({
|
|
92
93
|
id: r.id,
|
|
93
94
|
content: r.content,
|