korely-memory 0.1.1 → 0.1.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/dist/index.cjs CHANGED
@@ -119,7 +119,8 @@ var Korely = class {
119
119
  );
120
120
  }
121
121
  this.apiKey = key;
122
- this.baseUrl = (opts.baseUrl ?? REGIONS[opts.region ?? "eu"] ?? REGIONS.eu).replace(/\/+$/, "");
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.js CHANGED
@@ -85,7 +85,8 @@ var Korely = class {
85
85
  );
86
86
  }
87
87
  this.apiKey = key;
88
- this.baseUrl = (opts.baseUrl ?? REGIONS[opts.region ?? "eu"] ?? REGIONS.eu).replace(/\/+$/, "");
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) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "korely-memory",
3
- "version": "0.1.1",
4
- "description": "JavaScript / TypeScript SDK for Korely Agents — memory for AI agents with bi-temporal typed facts.",
3
+ "version": "0.1.3",
4
+ "description": "JavaScript / TypeScript SDK for Korely Agents \u2014 memory for AI agents with bi-temporal typed facts.",
5
5
  "keywords": [
6
6
  "ai",
7
7
  "agents",
@@ -12,6 +12,14 @@
12
12
  "typescript"
13
13
  ],
14
14
  "homepage": "https://korely.ai/agents",
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "git+https://github.com/verdana86/korely-memory.git",
18
+ "directory": "js"
19
+ },
20
+ "bugs": {
21
+ "url": "https://github.com/verdana86/korely-memory/issues"
22
+ },
15
23
  "license": "MIT",
16
24
  "author": "Korely <hello@korely.ai>",
17
25
  "type": "module",