@dakera-ai/dakera 0.8.1 → 0.8.3
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/README.md +2 -2
- package/dist/index.d.mts +7 -3
- package/dist/index.d.ts +7 -3
- package/dist/index.js +8 -1
- package/dist/index.mjs +8 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
[](LICENSE)
|
|
6
6
|
[](https://www.typescriptlang.org/)
|
|
7
7
|
|
|
8
|
-
Official TypeScript/JavaScript client for [Dakera](https://dakera.ai) —
|
|
8
|
+
Official TypeScript/JavaScript client for [Dakera](https://dakera.ai) — an AI agent memory platform.
|
|
9
9
|
|
|
10
10
|
## Installation
|
|
11
11
|
|
|
@@ -322,7 +322,7 @@ npm run lint
|
|
|
322
322
|
|
|
323
323
|
| Repository | Description |
|
|
324
324
|
|------------|-------------|
|
|
325
|
-
| [dakera](https://github.com/dakera-ai/dakera) | Core
|
|
325
|
+
| [dakera](https://github.com/dakera-ai/dakera) | Core AI agent memory engine (Rust) |
|
|
326
326
|
| [dakera-py](https://github.com/dakera-ai/dakera-py) | Python SDK |
|
|
327
327
|
| [dakera-go](https://github.com/dakera-ai/dakera-go) | Go SDK |
|
|
328
328
|
| [dakera-rs](https://github.com/dakera-ai/dakera-rs) | Rust SDK |
|
package/dist/index.d.mts
CHANGED
|
@@ -930,13 +930,17 @@ type DakeraEvent = NamespaceCreatedEvent | NamespaceDeletedEvent | OperationProg
|
|
|
930
930
|
* A memory lifecycle event emitted on the agent memory SSE stream.
|
|
931
931
|
*
|
|
932
932
|
* event_type values:
|
|
933
|
-
* stored | recalled | forgotten | consolidated |
|
|
934
|
-
* importance_updated | session_started | session_ended
|
|
933
|
+
* connected | stored | recalled | forgotten | consolidated |
|
|
934
|
+
* importance_updated | session_started | session_ended | stream_lagged
|
|
935
|
+
*
|
|
936
|
+
* The `connected` event is emitted immediately on stream subscription to
|
|
937
|
+
* signal the connection is live. `agent_id` will be an empty string for
|
|
938
|
+
* `connected` events.
|
|
935
939
|
*/
|
|
936
940
|
interface MemoryEvent {
|
|
937
941
|
/** Memory lifecycle event type */
|
|
938
942
|
event_type: string;
|
|
939
|
-
/** Agent that owns the memory */
|
|
943
|
+
/** Agent that owns the memory (empty string for the `connected` handshake) */
|
|
940
944
|
agent_id: string;
|
|
941
945
|
/** Unix milliseconds */
|
|
942
946
|
timestamp: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -930,13 +930,17 @@ type DakeraEvent = NamespaceCreatedEvent | NamespaceDeletedEvent | OperationProg
|
|
|
930
930
|
* A memory lifecycle event emitted on the agent memory SSE stream.
|
|
931
931
|
*
|
|
932
932
|
* event_type values:
|
|
933
|
-
* stored | recalled | forgotten | consolidated |
|
|
934
|
-
* importance_updated | session_started | session_ended
|
|
933
|
+
* connected | stored | recalled | forgotten | consolidated |
|
|
934
|
+
* importance_updated | session_started | session_ended | stream_lagged
|
|
935
|
+
*
|
|
936
|
+
* The `connected` event is emitted immediately on stream subscription to
|
|
937
|
+
* signal the connection is live. `agent_id` will be an empty string for
|
|
938
|
+
* `connected` events.
|
|
935
939
|
*/
|
|
936
940
|
interface MemoryEvent {
|
|
937
941
|
/** Memory lifecycle event type */
|
|
938
942
|
event_type: string;
|
|
939
|
-
/** Agent that owns the memory */
|
|
943
|
+
/** Agent that owns the memory (empty string for the `connected` handshake) */
|
|
940
944
|
agent_id: string;
|
|
941
945
|
/** Unix milliseconds */
|
|
942
946
|
timestamp: number;
|
package/dist/index.js
CHANGED
|
@@ -1580,10 +1580,17 @@ var DakeraClient = class {
|
|
|
1580
1580
|
}
|
|
1581
1581
|
if (dataLines.length === 0) return null;
|
|
1582
1582
|
try {
|
|
1583
|
-
const
|
|
1583
|
+
const raw = JSON.parse(dataLines.join("\n"));
|
|
1584
|
+
const parsed = raw;
|
|
1584
1585
|
if (eventType && !parsed.event_type) {
|
|
1585
1586
|
parsed.event_type = eventType;
|
|
1586
1587
|
}
|
|
1588
|
+
if (!parsed.event_type && typeof raw["type"] === "string") {
|
|
1589
|
+
parsed.event_type = raw["type"];
|
|
1590
|
+
}
|
|
1591
|
+
if (parsed.agent_id === void 0) {
|
|
1592
|
+
parsed.agent_id = "";
|
|
1593
|
+
}
|
|
1587
1594
|
return parsed;
|
|
1588
1595
|
} catch {
|
|
1589
1596
|
return null;
|
package/dist/index.mjs
CHANGED
|
@@ -1540,10 +1540,17 @@ var DakeraClient = class {
|
|
|
1540
1540
|
}
|
|
1541
1541
|
if (dataLines.length === 0) return null;
|
|
1542
1542
|
try {
|
|
1543
|
-
const
|
|
1543
|
+
const raw = JSON.parse(dataLines.join("\n"));
|
|
1544
|
+
const parsed = raw;
|
|
1544
1545
|
if (eventType && !parsed.event_type) {
|
|
1545
1546
|
parsed.event_type = eventType;
|
|
1546
1547
|
}
|
|
1548
|
+
if (!parsed.event_type && typeof raw["type"] === "string") {
|
|
1549
|
+
parsed.event_type = raw["type"];
|
|
1550
|
+
}
|
|
1551
|
+
if (parsed.agent_id === void 0) {
|
|
1552
|
+
parsed.agent_id = "";
|
|
1553
|
+
}
|
|
1547
1554
|
return parsed;
|
|
1548
1555
|
} catch {
|
|
1549
1556
|
return null;
|