korely-memory 0.1.2 → 0.1.4
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/dist/index.cjs +2 -1
- package/dist/index.d.cts +7 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +2 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -119,7 +119,8 @@ var Korely = class {
|
|
|
119
119
|
);
|
|
120
120
|
}
|
|
121
121
|
this.apiKey = key;
|
|
122
|
-
|
|
122
|
+
const envBase = typeof process !== "undefined" ? process.env?.KORELY_BASE_URL : void 0;
|
|
123
|
+
this.baseUrl = (opts.baseUrl ?? envBase ?? REGIONS[opts.region ?? "eu"] ?? REGIONS.eu).replace(/\/+$/, "");
|
|
123
124
|
this.timeoutMs = opts.timeoutMs ?? 3e4;
|
|
124
125
|
const f = opts.fetch ?? globalThis.fetch;
|
|
125
126
|
if (!f) {
|
package/dist/index.d.cts
CHANGED
|
@@ -32,6 +32,13 @@ interface Fact {
|
|
|
32
32
|
interface Memory {
|
|
33
33
|
id?: string;
|
|
34
34
|
content?: string;
|
|
35
|
+
/**
|
|
36
|
+
* "processing" while the worker is still mining facts from this memory,
|
|
37
|
+
* which is a few seconds after the write. It is on the wire and was missing
|
|
38
|
+
* here, so the only way to tell an empty `facts` from a not-yet `facts` was
|
|
39
|
+
* to guess or to poll blindly.
|
|
40
|
+
*/
|
|
41
|
+
status?: string;
|
|
35
42
|
user_id?: string;
|
|
36
43
|
agent_id?: string;
|
|
37
44
|
run_id?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -32,6 +32,13 @@ interface Fact {
|
|
|
32
32
|
interface Memory {
|
|
33
33
|
id?: string;
|
|
34
34
|
content?: string;
|
|
35
|
+
/**
|
|
36
|
+
* "processing" while the worker is still mining facts from this memory,
|
|
37
|
+
* which is a few seconds after the write. It is on the wire and was missing
|
|
38
|
+
* here, so the only way to tell an empty `facts` from a not-yet `facts` was
|
|
39
|
+
* to guess or to poll blindly.
|
|
40
|
+
*/
|
|
41
|
+
status?: string;
|
|
35
42
|
user_id?: string;
|
|
36
43
|
agent_id?: string;
|
|
37
44
|
run_id?: string;
|
package/dist/index.js
CHANGED
|
@@ -85,7 +85,8 @@ var Korely = class {
|
|
|
85
85
|
);
|
|
86
86
|
}
|
|
87
87
|
this.apiKey = key;
|
|
88
|
-
|
|
88
|
+
const envBase = typeof process !== "undefined" ? process.env?.KORELY_BASE_URL : void 0;
|
|
89
|
+
this.baseUrl = (opts.baseUrl ?? envBase ?? REGIONS[opts.region ?? "eu"] ?? REGIONS.eu).replace(/\/+$/, "");
|
|
89
90
|
this.timeoutMs = opts.timeoutMs ?? 3e4;
|
|
90
91
|
const f = opts.fetch ?? globalThis.fetch;
|
|
91
92
|
if (!f) {
|