@pentatonic-ai/ai-agent-sdk 0.7.12 → 0.7.13
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.7.
|
|
3
|
+
"version": "0.7.13",
|
|
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",
|
|
@@ -98,7 +98,7 @@ describe("openclaw-memory-plugin — hosted CHAT_TURN via afterTurn", () => {
|
|
|
98
98
|
});
|
|
99
99
|
|
|
100
100
|
const storeMemory = calls.filter(
|
|
101
|
-
(c) => c.body?.variables?.moduleId === "
|
|
101
|
+
(c) => c.body?.variables?.moduleId === "pentatonic-memory"
|
|
102
102
|
);
|
|
103
103
|
const chatTurn = calls.filter(
|
|
104
104
|
(c) => c.body?.variables?.moduleId === "conversation-analytics"
|
|
@@ -227,7 +227,7 @@ async function hostedStore(config, content, metadata = {}) {
|
|
|
227
227
|
createModuleEvent(moduleId: $moduleId, input: $input) { success eventId }
|
|
228
228
|
}`,
|
|
229
229
|
variables: {
|
|
230
|
-
moduleId: "
|
|
230
|
+
moduleId: "pentatonic-memory",
|
|
231
231
|
input: {
|
|
232
232
|
eventType: "STORE_MEMORY",
|
|
233
233
|
data: {
|
|
@@ -220,7 +220,7 @@ describe("hostedEmitChatTurn", () => {
|
|
|
220
220
|
// =============================================================================
|
|
221
221
|
|
|
222
222
|
describe("hostedStoreMemory", () => {
|
|
223
|
-
it("emits STORE_MEMORY against
|
|
223
|
+
it("emits STORE_MEMORY against pentatonic-memory", async () => {
|
|
224
224
|
stubFetch(() =>
|
|
225
225
|
new Response(
|
|
226
226
|
JSON.stringify({
|
|
@@ -236,7 +236,7 @@ describe("hostedStoreMemory", () => {
|
|
|
236
236
|
{ source: "my-app" }
|
|
237
237
|
);
|
|
238
238
|
expect(out.ok).toBe(true);
|
|
239
|
-
expect(lastCall.body.variables.moduleId).toBe("
|
|
239
|
+
expect(lastCall.body.variables.moduleId).toBe("pentatonic-memory");
|
|
240
240
|
expect(lastCall.body.variables.input.eventType).toBe("STORE_MEMORY");
|
|
241
241
|
expect(lastCall.body.variables.input.data.attributes.content).toBe(
|
|
242
242
|
"User owns a Subaru"
|
|
@@ -324,7 +324,7 @@ export async function hostedStoreMemory(
|
|
|
324
324
|
body: JSON.stringify({
|
|
325
325
|
query: CREATE_MODULE_EVENT_MUTATION,
|
|
326
326
|
variables: {
|
|
327
|
-
moduleId: "
|
|
327
|
+
moduleId: "pentatonic-memory",
|
|
328
328
|
input: { eventType: "STORE_MEMORY", data },
|
|
329
329
|
},
|
|
330
330
|
}),
|