korely-memory 0.1.16 → 0.1.17
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 +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -100,7 +100,7 @@ Every method maps to one REST endpoint.
|
|
|
100
100
|
| `get(id)` | `GET /v1/memories/:id` | One memory, with its facts. |
|
|
101
101
|
| `update(id, { content })` | `PATCH /v1/memories/:id` | Re-runs extraction. |
|
|
102
102
|
| `delete(id)` | `DELETE /v1/memories/:id` | Forget one (audited). |
|
|
103
|
-
| `deleteAll({ user_id })` | `DELETE /v1/users/:user_id/memories` | Erase everything
|
|
103
|
+
| `deleteAll({ user_id })` | `DELETE /v1/users/:user_id/memories` | Erase everything about one end user in one call. The receipt counts `memories_deleted` and `facts_deleted`. |
|
|
104
104
|
| `history(id)` | `GET /v1/memories/:id/history` | A memory's timeline + the facts it produced. |
|
|
105
105
|
| `users(opts?)` | `GET /v1/users` | Your end users, with counts. |
|
|
106
106
|
| `listAgents(opts?)` | `GET /v1/agents` | This project's agent namespaces, with counts. `total` counts this project's names, `used` the cap slots taken across the account. Call after `agent_cap_exceeded` to reuse an id. |
|
package/dist/index.cjs
CHANGED
|
@@ -126,7 +126,7 @@ function unknownOption(method, opts, known) {
|
|
|
126
126
|
}
|
|
127
127
|
|
|
128
128
|
// src/client.ts
|
|
129
|
-
var VERSION = "0.1.
|
|
129
|
+
var VERSION = "0.1.17";
|
|
130
130
|
var REGIONS = { eu: "https://api.korely.ai" };
|
|
131
131
|
var CLIENT_KEYS = keysOf()("apiKey", "region", "baseUrl", "timeoutMs", "fetch", "client");
|
|
132
132
|
var INIT_KEYS = keysOf()("region", "baseUrl", "timeoutMs", "fetch", "processingRegion");
|
package/dist/index.d.cts
CHANGED
|
@@ -75,6 +75,8 @@ interface Memory {
|
|
|
75
75
|
updated_at?: string;
|
|
76
76
|
/** Facts extracted from this memory on the write path. */
|
|
77
77
|
facts?: Fact[];
|
|
78
|
+
/** "note" or "session" (Korely Agent 0.1.42); absent from an older server. */
|
|
79
|
+
kind?: "note" | "session";
|
|
78
80
|
}
|
|
79
81
|
interface SearchHit {
|
|
80
82
|
id?: string;
|
|
@@ -164,6 +166,8 @@ interface BatchMemory {
|
|
|
164
166
|
* queued.
|
|
165
167
|
*/
|
|
166
168
|
timestamp?: string;
|
|
169
|
+
/** "note" (default) or "session", as on `add()` (Korely Agent 0.1.42). */
|
|
170
|
+
kind?: "note" | "session";
|
|
167
171
|
}
|
|
168
172
|
interface BatchJob {
|
|
169
173
|
id?: string;
|
|
@@ -534,7 +538,7 @@ interface ForgetReceipt {
|
|
|
534
538
|
|
|
535
539
|
/** Must equal `version` in package.json (a test checks). It goes out in the
|
|
536
540
|
* X-Korely-Client header, and said 0.1.1 from 0.1.1 to 0.1.6. */
|
|
537
|
-
declare const VERSION = "0.1.
|
|
541
|
+
declare const VERSION = "0.1.17";
|
|
538
542
|
interface KorelyOptions {
|
|
539
543
|
/** Your `kor_live_...` key. Falls back to the KORELY_API_KEY env var. */
|
|
540
544
|
apiKey?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -75,6 +75,8 @@ interface Memory {
|
|
|
75
75
|
updated_at?: string;
|
|
76
76
|
/** Facts extracted from this memory on the write path. */
|
|
77
77
|
facts?: Fact[];
|
|
78
|
+
/** "note" or "session" (Korely Agent 0.1.42); absent from an older server. */
|
|
79
|
+
kind?: "note" | "session";
|
|
78
80
|
}
|
|
79
81
|
interface SearchHit {
|
|
80
82
|
id?: string;
|
|
@@ -164,6 +166,8 @@ interface BatchMemory {
|
|
|
164
166
|
* queued.
|
|
165
167
|
*/
|
|
166
168
|
timestamp?: string;
|
|
169
|
+
/** "note" (default) or "session", as on `add()` (Korely Agent 0.1.42). */
|
|
170
|
+
kind?: "note" | "session";
|
|
167
171
|
}
|
|
168
172
|
interface BatchJob {
|
|
169
173
|
id?: string;
|
|
@@ -534,7 +538,7 @@ interface ForgetReceipt {
|
|
|
534
538
|
|
|
535
539
|
/** Must equal `version` in package.json (a test checks). It goes out in the
|
|
536
540
|
* X-Korely-Client header, and said 0.1.1 from 0.1.1 to 0.1.6. */
|
|
537
|
-
declare const VERSION = "0.1.
|
|
541
|
+
declare const VERSION = "0.1.17";
|
|
538
542
|
interface KorelyOptions {
|
|
539
543
|
/** Your `kor_live_...` key. Falls back to the KORELY_API_KEY env var. */
|
|
540
544
|
apiKey?: string;
|
package/dist/index.js
CHANGED
|
@@ -77,7 +77,7 @@ var TooManyBatchesError = class _TooManyBatchesError extends QuotaExceededError
|
|
|
77
77
|
};
|
|
78
78
|
|
|
79
79
|
// src/client.ts
|
|
80
|
-
var VERSION = "0.1.
|
|
80
|
+
var VERSION = "0.1.17";
|
|
81
81
|
var REGIONS = { eu: "https://api.korely.ai" };
|
|
82
82
|
var CLIENT_KEYS = keysOf()("apiKey", "region", "baseUrl", "timeoutMs", "fetch", "client");
|
|
83
83
|
var INIT_KEYS = keysOf()("region", "baseUrl", "timeoutMs", "fetch", "processingRegion");
|