@alexein/sdk 0.3.0 → 0.3.2
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/CHANGELOG.md +15 -0
- package/README.md +11 -10
- package/dist/{chunk-OVDZ3D4M.js → chunk-5Y43EWDD.js} +1 -1
- package/dist/{chunk-7KPDU3YV.cjs → chunk-AJGT53UZ.cjs} +26 -10
- package/dist/{chunk-UNVZ22EN.js → chunk-CKBVQNV5.js} +25 -9
- package/dist/{chunk-TLAHP2PB.cjs → chunk-VNLJZ26C.cjs} +4 -4
- package/dist/{client-YKZ4fkK-.d.cts → client-DJsIRKil.d.cts} +5 -1
- package/dist/{client-YKZ4fkK-.d.ts → client-DJsIRKil.d.ts} +5 -1
- package/dist/index.cjs +4 -2
- package/dist/index.d.cts +20 -4
- package/dist/index.d.ts +20 -4
- package/dist/index.js +3 -1
- package/dist/langgraph.cjs +15 -15
- package/dist/langgraph.d.cts +1 -1
- package/dist/langgraph.d.ts +1 -1
- package/dist/langgraph.js +2 -2
- package/dist/openai-agents.cjs +18 -18
- package/dist/openai-agents.d.cts +1 -1
- package/dist/openai-agents.d.ts +1 -1
- package/dist/openai-agents.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.3.2 - 2026-11-17
|
|
4
|
+
|
|
5
|
+
- `QuotaExceededError`: a 402, when the organisation has used this month's events (on an add) or retrievals
|
|
6
|
+
(on a search; every other read is free). Never retried, and not an outage, so a `failOpen` client throws
|
|
7
|
+
it too. Carries `limit`, `used`, `included`, `resetsAt` and `upgrade`. A 403 is also an organisation that is closed.
|
|
8
|
+
- A list line from `grep` or `latest` with no `type` is an excerpt, and one with no `roles` is `["other"]`:
|
|
9
|
+
the API sends `roles` only when the person or an assistant spoke. Before, such a line was skipped, so
|
|
10
|
+
both reads could come back empty.
|
|
11
|
+
|
|
12
|
+
## 0.3.1 - 2026-11-04
|
|
13
|
+
|
|
14
|
+
- Published through npm's trusted publishing from GitHub Actions, with no token: the provenance on npm is
|
|
15
|
+
GitHub's alone. The client is the same as 0.3.0. A patch release is the package's own; any 0.3.x speaks
|
|
16
|
+
the API's 0.3.
|
|
17
|
+
|
|
3
18
|
## 0.3.0 - 2026-11-04
|
|
4
19
|
|
|
5
20
|
Renamed from `twinmemory` to `@alexein/sdk`, rebuilt on the API's `/v2` surface, and numbered as
|
package/README.md
CHANGED
|
@@ -132,16 +132,17 @@ Every error is an `AlexeinError` with `status` (null when no answer came), `deta
|
|
|
132
132
|
words), `errors` (on a 422, each field as `{ field, message }`), `requestId` (the response's
|
|
133
133
|
`X-Request-Id`: quote it when you ask for help) and `outage`.
|
|
134
134
|
|
|
135
|
-
| Error | When
|
|
136
|
-
| ------------------------- |
|
|
137
|
-
| `AuthenticationError` | 401: no key, or one the service did not issue
|
|
138
|
-
| `
|
|
139
|
-
| `
|
|
140
|
-
| `
|
|
141
|
-
| `
|
|
142
|
-
| `
|
|
143
|
-
| `
|
|
144
|
-
| `
|
|
135
|
+
| Error | When |
|
|
136
|
+
| ------------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
|
|
137
|
+
| `AuthenticationError` | 401: no key, or one the service did not issue |
|
|
138
|
+
| `QuotaExceededError` | 402: the month's events (on an add) or retrievals (on a search) are used; `limit`, `used`, `included`, `resetsAt`, `upgrade` |
|
|
139
|
+
| `PermissionDeniedError` | 403: the key reads, and the call writes; or the organisation is closed |
|
|
140
|
+
| `NotFoundError` | 404: nothing added for this app user, or no such ref |
|
|
141
|
+
| `InvalidRequestError` | 400, 413, 422 and any other 4xx: the request is wrong |
|
|
142
|
+
| `RateLimitError` | 429, after retries |
|
|
143
|
+
| `ServiceUnavailableError` | 5xx, after retries |
|
|
144
|
+
| `APIConnectionError` | the service could not be reached, after retries |
|
|
145
|
+
| `APITimeoutError` | an `APIConnectionError`: no answer in time |
|
|
145
146
|
|
|
146
147
|
429 and 503, a timeout and a failed connection are tried up to `maxRetries` more times: after the
|
|
147
148
|
`Retry-After` header's seconds when it says 60 or fewer (more, and the error is thrown at once),
|
|
@@ -36,7 +36,7 @@ function parseExcerpt(value) {
|
|
|
36
36
|
date: maybe(raw.date),
|
|
37
37
|
addedAt: maybe(raw.added_at),
|
|
38
38
|
session: maybe(raw.session),
|
|
39
|
-
roles: strings(raw.roles),
|
|
39
|
+
roles: raw.roles === void 0 ? ["other"] : strings(raw.roles),
|
|
40
40
|
raw
|
|
41
41
|
};
|
|
42
42
|
}
|
|
@@ -44,7 +44,7 @@ function parseMemory(value) {
|
|
|
44
44
|
const raw = object(value);
|
|
45
45
|
if (raw.type === "known") return { type: "known", text: text(raw.text), raw };
|
|
46
46
|
if (raw.type === "fact") return parseFact(raw);
|
|
47
|
-
if (raw.type === "excerpt") return parseExcerpt(raw);
|
|
47
|
+
if (raw.type === "excerpt" || raw.type === void 0) return parseExcerpt(raw);
|
|
48
48
|
return void 0;
|
|
49
49
|
}
|
|
50
50
|
function parseMemories(value) {
|
|
@@ -168,6 +168,21 @@ var NotFoundError = class extends AlexeinError {
|
|
|
168
168
|
};
|
|
169
169
|
var InvalidRequestError = class extends AlexeinError {
|
|
170
170
|
};
|
|
171
|
+
var QuotaExceededError = class extends AlexeinError {
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
constructor(message, fields = {}, body = {}) {
|
|
178
|
+
super(message, fields);
|
|
179
|
+
this.limit = maybe(body.limit);
|
|
180
|
+
this.used = maybeCount(body.used);
|
|
181
|
+
this.included = maybeCount(body.included);
|
|
182
|
+
this.resetsAt = maybe(body.resets_at);
|
|
183
|
+
this.upgrade = maybe(body.upgrade);
|
|
184
|
+
}
|
|
185
|
+
};
|
|
171
186
|
var RateLimitError = class extends AlexeinError {
|
|
172
187
|
};
|
|
173
188
|
var ServiceUnavailableError = class extends AlexeinError {
|
|
@@ -181,6 +196,7 @@ var APITimeoutError = class extends APIConnectionError {
|
|
|
181
196
|
};
|
|
182
197
|
function kindOf(status2) {
|
|
183
198
|
if (status2 === 401) return AuthenticationError;
|
|
199
|
+
if (status2 === 402) return QuotaExceededError;
|
|
184
200
|
if (status2 === 403) return PermissionDeniedError;
|
|
185
201
|
if (status2 === 404) return NotFoundError;
|
|
186
202
|
if (status2 === 429) return RateLimitError;
|
|
@@ -202,12 +218,11 @@ function errorFor(status2, body, requestId2) {
|
|
|
202
218
|
const errors = fieldErrors(_nullishCoalesce(body.errors, () => ( (Array.isArray(body.detail) ? body.detail : []))));
|
|
203
219
|
const detail = typeof body.detail === "string" ? body.detail : errors.map((e) => e.field ? `${e.field}: ${e.message}` : e.message).join("; ");
|
|
204
220
|
const Kind = kindOf(status2);
|
|
205
|
-
return new Kind(
|
|
206
|
-
|
|
207
|
-
detail,
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
});
|
|
221
|
+
return new Kind(
|
|
222
|
+
detail ? `${status2}: ${detail}` : String(status2),
|
|
223
|
+
{ status: status2, detail, errors, requestId: requestId2 },
|
|
224
|
+
body
|
|
225
|
+
);
|
|
211
226
|
}
|
|
212
227
|
function unreached(error, requestId2 = null) {
|
|
213
228
|
const name = error instanceof Error ? error.name : "";
|
|
@@ -225,7 +240,7 @@ function unreached(error, requestId2 = null) {
|
|
|
225
240
|
}
|
|
226
241
|
|
|
227
242
|
// src/version.ts
|
|
228
|
-
var VERSION = "0.3.
|
|
243
|
+
var VERSION = "0.3.2";
|
|
229
244
|
|
|
230
245
|
// src/settings.ts
|
|
231
246
|
var DEFAULT_BASE_URL = "https://api.alexein.ai";
|
|
@@ -917,4 +932,5 @@ var Memory = class {
|
|
|
917
932
|
|
|
918
933
|
|
|
919
934
|
|
|
920
|
-
|
|
935
|
+
|
|
936
|
+
exports.SearchResult = SearchResult; exports.AlexeinError = AlexeinError; exports.AuthenticationError = AuthenticationError; exports.PermissionDeniedError = PermissionDeniedError; exports.NotFoundError = NotFoundError; exports.InvalidRequestError = InvalidRequestError; exports.QuotaExceededError = QuotaExceededError; exports.RateLimitError = RateLimitError; exports.ServiceUnavailableError = ServiceUnavailableError; exports.APIConnectionError = APIConnectionError; exports.APITimeoutError = APITimeoutError; exports.VERSION = VERSION; exports.DEFAULT_BASE_URL = DEFAULT_BASE_URL; exports.DEFAULT_TIMEOUT_MS = DEFAULT_TIMEOUT_MS; exports.DEFAULT_RETRIES = DEFAULT_RETRIES; exports.User = User; exports.Memory = Memory;
|
|
@@ -36,7 +36,7 @@ function parseExcerpt(value) {
|
|
|
36
36
|
date: maybe(raw.date),
|
|
37
37
|
addedAt: maybe(raw.added_at),
|
|
38
38
|
session: maybe(raw.session),
|
|
39
|
-
roles: strings(raw.roles),
|
|
39
|
+
roles: raw.roles === void 0 ? ["other"] : strings(raw.roles),
|
|
40
40
|
raw
|
|
41
41
|
};
|
|
42
42
|
}
|
|
@@ -44,7 +44,7 @@ function parseMemory(value) {
|
|
|
44
44
|
const raw = object(value);
|
|
45
45
|
if (raw.type === "known") return { type: "known", text: text(raw.text), raw };
|
|
46
46
|
if (raw.type === "fact") return parseFact(raw);
|
|
47
|
-
if (raw.type === "excerpt") return parseExcerpt(raw);
|
|
47
|
+
if (raw.type === "excerpt" || raw.type === void 0) return parseExcerpt(raw);
|
|
48
48
|
return void 0;
|
|
49
49
|
}
|
|
50
50
|
function parseMemories(value) {
|
|
@@ -168,6 +168,21 @@ var NotFoundError = class extends AlexeinError {
|
|
|
168
168
|
};
|
|
169
169
|
var InvalidRequestError = class extends AlexeinError {
|
|
170
170
|
};
|
|
171
|
+
var QuotaExceededError = class extends AlexeinError {
|
|
172
|
+
limit;
|
|
173
|
+
used;
|
|
174
|
+
included;
|
|
175
|
+
resetsAt;
|
|
176
|
+
upgrade;
|
|
177
|
+
constructor(message, fields = {}, body = {}) {
|
|
178
|
+
super(message, fields);
|
|
179
|
+
this.limit = maybe(body.limit);
|
|
180
|
+
this.used = maybeCount(body.used);
|
|
181
|
+
this.included = maybeCount(body.included);
|
|
182
|
+
this.resetsAt = maybe(body.resets_at);
|
|
183
|
+
this.upgrade = maybe(body.upgrade);
|
|
184
|
+
}
|
|
185
|
+
};
|
|
171
186
|
var RateLimitError = class extends AlexeinError {
|
|
172
187
|
};
|
|
173
188
|
var ServiceUnavailableError = class extends AlexeinError {
|
|
@@ -181,6 +196,7 @@ var APITimeoutError = class extends APIConnectionError {
|
|
|
181
196
|
};
|
|
182
197
|
function kindOf(status2) {
|
|
183
198
|
if (status2 === 401) return AuthenticationError;
|
|
199
|
+
if (status2 === 402) return QuotaExceededError;
|
|
184
200
|
if (status2 === 403) return PermissionDeniedError;
|
|
185
201
|
if (status2 === 404) return NotFoundError;
|
|
186
202
|
if (status2 === 429) return RateLimitError;
|
|
@@ -202,12 +218,11 @@ function errorFor(status2, body, requestId2) {
|
|
|
202
218
|
const errors = fieldErrors(body.errors ?? (Array.isArray(body.detail) ? body.detail : []));
|
|
203
219
|
const detail = typeof body.detail === "string" ? body.detail : errors.map((e) => e.field ? `${e.field}: ${e.message}` : e.message).join("; ");
|
|
204
220
|
const Kind = kindOf(status2);
|
|
205
|
-
return new Kind(
|
|
206
|
-
|
|
207
|
-
detail,
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
});
|
|
221
|
+
return new Kind(
|
|
222
|
+
detail ? `${status2}: ${detail}` : String(status2),
|
|
223
|
+
{ status: status2, detail, errors, requestId: requestId2 },
|
|
224
|
+
body
|
|
225
|
+
);
|
|
211
226
|
}
|
|
212
227
|
function unreached(error, requestId2 = null) {
|
|
213
228
|
const name = error instanceof Error ? error.name : "";
|
|
@@ -225,7 +240,7 @@ function unreached(error, requestId2 = null) {
|
|
|
225
240
|
}
|
|
226
241
|
|
|
227
242
|
// src/version.ts
|
|
228
|
-
var VERSION = "0.3.
|
|
243
|
+
var VERSION = "0.3.2";
|
|
229
244
|
|
|
230
245
|
// src/settings.ts
|
|
231
246
|
var DEFAULT_BASE_URL = "https://api.alexein.ai";
|
|
@@ -907,6 +922,7 @@ export {
|
|
|
907
922
|
PermissionDeniedError,
|
|
908
923
|
NotFoundError,
|
|
909
924
|
InvalidRequestError,
|
|
925
|
+
QuotaExceededError,
|
|
910
926
|
RateLimitError,
|
|
911
927
|
ServiceUnavailableError,
|
|
912
928
|
APIConnectionError,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkAJGT53UZcjs = require('./chunk-AJGT53UZ.cjs');
|
|
6
6
|
|
|
7
7
|
// src/integrations/shared.ts
|
|
8
8
|
var UNAVAILABLE = "Memory is unavailable right now; carry on without it.";
|
|
@@ -24,7 +24,7 @@ var LazyClient = class {
|
|
|
24
24
|
|
|
25
25
|
#client;
|
|
26
26
|
get client() {
|
|
27
|
-
this.#client ??= new (0,
|
|
27
|
+
this.#client ??= new (0, _chunkAJGT53UZcjs.Memory)({
|
|
28
28
|
failOpen: !this.strict,
|
|
29
29
|
integration: this.integration,
|
|
30
30
|
timeout: this.timeout
|
|
@@ -39,7 +39,7 @@ async function searchFor(user, query, fast) {
|
|
|
39
39
|
try {
|
|
40
40
|
return await user.search(query.slice(-MAX_QUERY), { fast });
|
|
41
41
|
} catch (error) {
|
|
42
|
-
if (error instanceof
|
|
42
|
+
if (error instanceof _chunkAJGT53UZcjs.NotFoundError) return void 0;
|
|
43
43
|
throw error;
|
|
44
44
|
}
|
|
45
45
|
}
|
|
@@ -69,7 +69,7 @@ function notFoundAnswer(error) {
|
|
|
69
69
|
return /\bref\b/.test(error.detail) ? "Memory holds nothing by that ref." : NOTHING_YET;
|
|
70
70
|
}
|
|
71
71
|
function outageAnswer(error, strict) {
|
|
72
|
-
if (strict || !(error instanceof
|
|
72
|
+
if (strict || !(error instanceof _chunkAJGT53UZcjs.AlexeinError) || !error.outage) throw error;
|
|
73
73
|
console.warn(`Alexein is unavailable: ${error.message}`);
|
|
74
74
|
return UNAVAILABLE;
|
|
75
75
|
}
|
|
@@ -38,7 +38,11 @@ interface Excerpt {
|
|
|
38
38
|
/** When memory took it. */
|
|
39
39
|
readonly addedAt: string | null;
|
|
40
40
|
readonly session: string | null;
|
|
41
|
-
/**
|
|
41
|
+
/**
|
|
42
|
+
* The roles of who spoke in it: `user`, `assistant`, `other` for someone else. A line from
|
|
43
|
+
* grep or latest carries roles only when the person or an assistant spoke, so one without is
|
|
44
|
+
* read as `["other"]`.
|
|
45
|
+
*/
|
|
42
46
|
readonly roles: string[];
|
|
43
47
|
readonly raw: Json;
|
|
44
48
|
}
|
|
@@ -38,7 +38,11 @@ interface Excerpt {
|
|
|
38
38
|
/** When memory took it. */
|
|
39
39
|
readonly addedAt: string | null;
|
|
40
40
|
readonly session: string | null;
|
|
41
|
-
/**
|
|
41
|
+
/**
|
|
42
|
+
* The roles of who spoke in it: `user`, `assistant`, `other` for someone else. A line from
|
|
43
|
+
* grep or latest carries roles only when the person or an assistant spoke, so one without is
|
|
44
|
+
* read as `["other"]`.
|
|
45
|
+
*/
|
|
42
46
|
readonly roles: string[];
|
|
43
47
|
readonly raw: Json;
|
|
44
48
|
}
|
package/dist/index.cjs
CHANGED
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var _chunk7KPDU3YVcjs = require('./chunk-7KPDU3YV.cjs');
|
|
19
18
|
|
|
19
|
+
var _chunkAJGT53UZcjs = require('./chunk-AJGT53UZ.cjs');
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
@@ -33,4 +33,6 @@ var _chunk7KPDU3YVcjs = require('./chunk-7KPDU3YV.cjs');
|
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
|
|
36
|
-
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
exports.APIConnectionError = _chunkAJGT53UZcjs.APIConnectionError; exports.APITimeoutError = _chunkAJGT53UZcjs.APITimeoutError; exports.AlexeinError = _chunkAJGT53UZcjs.AlexeinError; exports.AuthenticationError = _chunkAJGT53UZcjs.AuthenticationError; exports.DEFAULT_BASE_URL = _chunkAJGT53UZcjs.DEFAULT_BASE_URL; exports.DEFAULT_RETRIES = _chunkAJGT53UZcjs.DEFAULT_RETRIES; exports.DEFAULT_TIMEOUT_MS = _chunkAJGT53UZcjs.DEFAULT_TIMEOUT_MS; exports.InvalidRequestError = _chunkAJGT53UZcjs.InvalidRequestError; exports.Memory = _chunkAJGT53UZcjs.Memory; exports.NotFoundError = _chunkAJGT53UZcjs.NotFoundError; exports.PermissionDeniedError = _chunkAJGT53UZcjs.PermissionDeniedError; exports.QuotaExceededError = _chunkAJGT53UZcjs.QuotaExceededError; exports.RateLimitError = _chunkAJGT53UZcjs.RateLimitError; exports.SearchResult = _chunkAJGT53UZcjs.SearchResult; exports.ServiceUnavailableError = _chunkAJGT53UZcjs.ServiceUnavailableError; exports.User = _chunkAJGT53UZcjs.User; exports.VERSION = _chunkAJGT53UZcjs.VERSION;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import { J as Json } from './client-DJsIRKil.cjs';
|
|
2
|
+
export { A as AddOptions, a as AddResult, b as AddedItem, c as Adding, d as AppUser, e as Author, C as Correction, D as DEFAULT_BASE_URL, f as DEFAULT_RETRIES, g as DEFAULT_TIMEOUT_MS, h as Deleted, E as Erased, i as Excerpt, j as ExportPage, k as ExportRecord, F as Fact, l as FactsPage, m as Filters, n as FollowUp, o as ForgetOptions, p as Forgotten, G as GrepOptions, H as History, I as Item, q as ItemDefaults, r as ItemStatus, s as ItemsOptions, t as ItemsPage, K as Known, L as LatestOptions, M as Me, u as Memories, v as Memory, w as MemoryEntry, x as MemoryOptions, O as OpenItem, y as OpenItems, z as OpenItemsOptions, B as Opened, N as Origin, P as PageOptions, S as SearchOptions, Q as SearchResult, R as Source, T as Sources, U as Statuses, V as StoredItem, W as Summary, X as User, Y as UsersPage, Z as Value, _ as VersionEntry, $ as Versions } from './client-DJsIRKil.cjs';
|
|
2
3
|
|
|
3
|
-
declare const VERSION = "0.3.
|
|
4
|
+
declare const VERSION = "0.3.2";
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* What can go wrong, one class per thing a caller would handle differently: the same classes as
|
|
@@ -44,7 +45,7 @@ declare class AlexeinError extends Error {
|
|
|
44
45
|
/** 401: no key, or one the service did not issue. */
|
|
45
46
|
declare class AuthenticationError extends AlexeinError {
|
|
46
47
|
}
|
|
47
|
-
/** 403: the key reads, and the call writes. */
|
|
48
|
+
/** 403: the key reads, and the call writes; or the key's organisation is closed. */
|
|
48
49
|
declare class PermissionDeniedError extends AlexeinError {
|
|
49
50
|
}
|
|
50
51
|
/**
|
|
@@ -56,6 +57,21 @@ declare class NotFoundError extends AlexeinError {
|
|
|
56
57
|
/** 400, 413, 422 and any other 4xx: the request itself is wrong. Retrying will not help. */
|
|
57
58
|
declare class InvalidRequestError extends AlexeinError {
|
|
58
59
|
}
|
|
60
|
+
/**
|
|
61
|
+
* 402: the organisation has used this month's events or retrievals. Only an add (events) and a
|
|
62
|
+
* search (retrievals) throw it; every other read is free and never refused. Never retried, and not an
|
|
63
|
+
* outage, so a `failOpen` client throws it too: it lasts until `resetsAt`, the 1st of next month,
|
|
64
|
+
* or until the plan is upgraded. `limit` is which one ("events" or "retrievals"), `used` and
|
|
65
|
+
* `included` its figures, `upgrade` where to raise it.
|
|
66
|
+
*/
|
|
67
|
+
declare class QuotaExceededError extends AlexeinError {
|
|
68
|
+
readonly limit: string | null;
|
|
69
|
+
readonly used: number | null;
|
|
70
|
+
readonly included: number | null;
|
|
71
|
+
readonly resetsAt: string | null;
|
|
72
|
+
readonly upgrade: string | null;
|
|
73
|
+
constructor(message: string, fields?: ErrorFields, body?: Json);
|
|
74
|
+
}
|
|
59
75
|
/**
|
|
60
76
|
* 429, after retries: too many requests in flight, or reads too fast. Retried for you, after
|
|
61
77
|
* `Retry-After` seconds (when at most 60) or with backoff.
|
|
@@ -73,4 +89,4 @@ declare class APIConnectionError extends AlexeinError {
|
|
|
73
89
|
declare class APITimeoutError extends APIConnectionError {
|
|
74
90
|
}
|
|
75
91
|
|
|
76
|
-
export { APIConnectionError, APITimeoutError, AlexeinError, AuthenticationError, type FieldError, InvalidRequestError, NotFoundError, PermissionDeniedError, RateLimitError, ServiceUnavailableError, VERSION };
|
|
92
|
+
export { APIConnectionError, APITimeoutError, AlexeinError, AuthenticationError, type FieldError, InvalidRequestError, Json, NotFoundError, PermissionDeniedError, QuotaExceededError, RateLimitError, ServiceUnavailableError, VERSION };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import { J as Json } from './client-DJsIRKil.js';
|
|
2
|
+
export { A as AddOptions, a as AddResult, b as AddedItem, c as Adding, d as AppUser, e as Author, C as Correction, D as DEFAULT_BASE_URL, f as DEFAULT_RETRIES, g as DEFAULT_TIMEOUT_MS, h as Deleted, E as Erased, i as Excerpt, j as ExportPage, k as ExportRecord, F as Fact, l as FactsPage, m as Filters, n as FollowUp, o as ForgetOptions, p as Forgotten, G as GrepOptions, H as History, I as Item, q as ItemDefaults, r as ItemStatus, s as ItemsOptions, t as ItemsPage, K as Known, L as LatestOptions, M as Me, u as Memories, v as Memory, w as MemoryEntry, x as MemoryOptions, O as OpenItem, y as OpenItems, z as OpenItemsOptions, B as Opened, N as Origin, P as PageOptions, S as SearchOptions, Q as SearchResult, R as Source, T as Sources, U as Statuses, V as StoredItem, W as Summary, X as User, Y as UsersPage, Z as Value, _ as VersionEntry, $ as Versions } from './client-DJsIRKil.js';
|
|
2
3
|
|
|
3
|
-
declare const VERSION = "0.3.
|
|
4
|
+
declare const VERSION = "0.3.2";
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* What can go wrong, one class per thing a caller would handle differently: the same classes as
|
|
@@ -44,7 +45,7 @@ declare class AlexeinError extends Error {
|
|
|
44
45
|
/** 401: no key, or one the service did not issue. */
|
|
45
46
|
declare class AuthenticationError extends AlexeinError {
|
|
46
47
|
}
|
|
47
|
-
/** 403: the key reads, and the call writes. */
|
|
48
|
+
/** 403: the key reads, and the call writes; or the key's organisation is closed. */
|
|
48
49
|
declare class PermissionDeniedError extends AlexeinError {
|
|
49
50
|
}
|
|
50
51
|
/**
|
|
@@ -56,6 +57,21 @@ declare class NotFoundError extends AlexeinError {
|
|
|
56
57
|
/** 400, 413, 422 and any other 4xx: the request itself is wrong. Retrying will not help. */
|
|
57
58
|
declare class InvalidRequestError extends AlexeinError {
|
|
58
59
|
}
|
|
60
|
+
/**
|
|
61
|
+
* 402: the organisation has used this month's events or retrievals. Only an add (events) and a
|
|
62
|
+
* search (retrievals) throw it; every other read is free and never refused. Never retried, and not an
|
|
63
|
+
* outage, so a `failOpen` client throws it too: it lasts until `resetsAt`, the 1st of next month,
|
|
64
|
+
* or until the plan is upgraded. `limit` is which one ("events" or "retrievals"), `used` and
|
|
65
|
+
* `included` its figures, `upgrade` where to raise it.
|
|
66
|
+
*/
|
|
67
|
+
declare class QuotaExceededError extends AlexeinError {
|
|
68
|
+
readonly limit: string | null;
|
|
69
|
+
readonly used: number | null;
|
|
70
|
+
readonly included: number | null;
|
|
71
|
+
readonly resetsAt: string | null;
|
|
72
|
+
readonly upgrade: string | null;
|
|
73
|
+
constructor(message: string, fields?: ErrorFields, body?: Json);
|
|
74
|
+
}
|
|
59
75
|
/**
|
|
60
76
|
* 429, after retries: too many requests in flight, or reads too fast. Retried for you, after
|
|
61
77
|
* `Retry-After` seconds (when at most 60) or with backoff.
|
|
@@ -73,4 +89,4 @@ declare class APIConnectionError extends AlexeinError {
|
|
|
73
89
|
declare class APITimeoutError extends APIConnectionError {
|
|
74
90
|
}
|
|
75
91
|
|
|
76
|
-
export { APIConnectionError, APITimeoutError, AlexeinError, AuthenticationError, type FieldError, InvalidRequestError, NotFoundError, PermissionDeniedError, RateLimitError, ServiceUnavailableError, VERSION };
|
|
92
|
+
export { APIConnectionError, APITimeoutError, AlexeinError, AuthenticationError, type FieldError, InvalidRequestError, Json, NotFoundError, PermissionDeniedError, QuotaExceededError, RateLimitError, ServiceUnavailableError, VERSION };
|
package/dist/index.js
CHANGED
|
@@ -10,12 +10,13 @@ import {
|
|
|
10
10
|
Memory,
|
|
11
11
|
NotFoundError,
|
|
12
12
|
PermissionDeniedError,
|
|
13
|
+
QuotaExceededError,
|
|
13
14
|
RateLimitError,
|
|
14
15
|
SearchResult,
|
|
15
16
|
ServiceUnavailableError,
|
|
16
17
|
User,
|
|
17
18
|
VERSION
|
|
18
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-CKBVQNV5.js";
|
|
19
20
|
export {
|
|
20
21
|
APIConnectionError,
|
|
21
22
|
APITimeoutError,
|
|
@@ -28,6 +29,7 @@ export {
|
|
|
28
29
|
Memory,
|
|
29
30
|
NotFoundError,
|
|
30
31
|
PermissionDeniedError,
|
|
32
|
+
QuotaExceededError,
|
|
31
33
|
RateLimitError,
|
|
32
34
|
SearchResult,
|
|
33
35
|
ServiceUnavailableError,
|
package/dist/langgraph.cjs
CHANGED
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkVNLJZ26Ccjs = require('./chunk-VNLJZ26C.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkAJGT53UZcjs = require('./chunk-AJGT53UZ.cjs');
|
|
19
19
|
|
|
20
20
|
// src/langgraph/index.ts
|
|
21
21
|
var _messages = require('@langchain/core/messages');
|
|
@@ -58,12 +58,12 @@ var AlexeinMemory = (_class = class {
|
|
|
58
58
|
#client;
|
|
59
59
|
/** `client` defaults to one made on first use: fail-open unless strict, a 10 s timeout. */
|
|
60
60
|
constructor(client, options = {}) {;_class.prototype.__init.call(this);_class.prototype.__init2.call(this);_class.prototype.__init3.call(this);
|
|
61
|
-
const given =
|
|
62
|
-
const settings =
|
|
61
|
+
const given = _chunkVNLJZ26Ccjs.isClient.call(void 0, client) ? client : void 0;
|
|
62
|
+
const settings = _chunkVNLJZ26Ccjs.isClient.call(void 0, client) ? options : { ...client, ...options };
|
|
63
63
|
this.fast = _nullishCoalesce(settings.fast, () => ( false));
|
|
64
64
|
this.maxChars = _nullishCoalesce(settings.maxChars, () => ( 4e3));
|
|
65
65
|
this.strict = _nullishCoalesce(settings.strict, () => ( false));
|
|
66
|
-
this.#client = new (0,
|
|
66
|
+
this.#client = new (0, _chunkVNLJZ26Ccjs.LazyClient)(given, "langgraph", this.strict, settings.timeout);
|
|
67
67
|
}
|
|
68
68
|
get client() {
|
|
69
69
|
return this.#client.client;
|
|
@@ -76,7 +76,7 @@ var AlexeinMemory = (_class = class {
|
|
|
76
76
|
const asked = _optionalChain([lastHuman, 'call', _16 => _16(state.messages), 'optionalAccess', _17 => _17.text, 'access', _18 => _18.trim, 'call', _19 => _19()]);
|
|
77
77
|
const user = this.user(config);
|
|
78
78
|
if (!asked) return { memory: "" };
|
|
79
|
-
const found = await
|
|
79
|
+
const found = await _chunkVNLJZ26Ccjs.searchFor.call(void 0, user, asked, this.fast);
|
|
80
80
|
return { memory: _nullishCoalesce(_optionalChain([found, 'optionalAccess', _20 => _20.context, 'call', _21 => _21(this.maxChars)]), () => ( "")) };
|
|
81
81
|
}}
|
|
82
82
|
/**
|
|
@@ -96,7 +96,7 @@ var AlexeinMemory = (_class = class {
|
|
|
96
96
|
return {};
|
|
97
97
|
}}
|
|
98
98
|
/** What `recall` found, as a block for your system prompt; empty when it found nothing. */
|
|
99
|
-
__init3() {this.prompt = (state) =>
|
|
99
|
+
__init3() {this.prompt = (state) => _chunkVNLJZ26Ccjs.promptBlock.call(void 0, _nullishCoalesce(state.memory, () => ( "")))}
|
|
100
100
|
/**
|
|
101
101
|
* Tools the model calls when it decides to: `memory_search` and `memory_open`, and with
|
|
102
102
|
* `write`, `memory_add`. The user comes from the run, which a model never sees.
|
|
@@ -108,8 +108,8 @@ var AlexeinMemory = (_class = class {
|
|
|
108
108
|
searchTool() {
|
|
109
109
|
return _tools.tool.call(void 0,
|
|
110
110
|
async ({ query }, config) => {
|
|
111
|
-
const found = await
|
|
112
|
-
return
|
|
111
|
+
const found = await _chunkVNLJZ26Ccjs.searchFor.call(void 0, this.user(config), query, this.fast);
|
|
112
|
+
return _chunkVNLJZ26Ccjs.searchAnswer.call(void 0, found, this.maxChars);
|
|
113
113
|
},
|
|
114
114
|
{
|
|
115
115
|
name: "memory_search",
|
|
@@ -123,10 +123,10 @@ var AlexeinMemory = (_class = class {
|
|
|
123
123
|
async ({ ref }, config) => {
|
|
124
124
|
const user = this.user(config);
|
|
125
125
|
try {
|
|
126
|
-
return
|
|
126
|
+
return _chunkVNLJZ26Ccjs.openAnswer.call(void 0, await user.open(ref));
|
|
127
127
|
} catch (error) {
|
|
128
|
-
if (error instanceof
|
|
129
|
-
return
|
|
128
|
+
if (error instanceof _chunkAJGT53UZcjs.NotFoundError) return _chunkVNLJZ26Ccjs.notFoundAnswer.call(void 0, error);
|
|
129
|
+
return _chunkVNLJZ26Ccjs.outageAnswer.call(void 0, error, this.strict);
|
|
130
130
|
}
|
|
131
131
|
},
|
|
132
132
|
{
|
|
@@ -143,7 +143,7 @@ var AlexeinMemory = (_class = class {
|
|
|
143
143
|
kind: "note",
|
|
144
144
|
session: threadOf(config)
|
|
145
145
|
});
|
|
146
|
-
return saved.failed ?
|
|
146
|
+
return saved.failed ? _chunkVNLJZ26Ccjs.UNAVAILABLE : _chunkVNLJZ26Ccjs.SAVED;
|
|
147
147
|
},
|
|
148
148
|
{
|
|
149
149
|
name: "memory_add",
|
|
@@ -156,7 +156,7 @@ var AlexeinMemory = (_class = class {
|
|
|
156
156
|
async function item(message, role, thread) {
|
|
157
157
|
const text = _optionalChain([message, 'optionalAccess', _22 => _22.text]);
|
|
158
158
|
if (!_optionalChain([text, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()])) return void 0;
|
|
159
|
-
const id = await _asyncNullishCoalesce(await _asyncOptionalChain([message, 'optionalAccess', async _25 => _25.id]), async () => ( await
|
|
159
|
+
const id = await _asyncNullishCoalesce(await _asyncOptionalChain([message, 'optionalAccess', async _25 => _25.id]), async () => ( await _chunkVNLJZ26Ccjs.stableId.call(void 0, thread, role, text)));
|
|
160
160
|
return { id, role, text };
|
|
161
161
|
}
|
|
162
162
|
var fallback;
|
|
@@ -182,4 +182,4 @@ var memoryTools = (options = {}) => defaultMemory().tools(options);
|
|
|
182
182
|
|
|
183
183
|
|
|
184
184
|
|
|
185
|
-
exports.AlexeinMemory = AlexeinMemory; exports.MemoryAnnotation = MemoryAnnotation; exports.MemoryContext = MemoryContext; exports.MemoryState = MemoryState; exports.NOTHING_FOUND =
|
|
185
|
+
exports.AlexeinMemory = AlexeinMemory; exports.MemoryAnnotation = MemoryAnnotation; exports.MemoryContext = MemoryContext; exports.MemoryState = MemoryState; exports.NOTHING_FOUND = _chunkVNLJZ26Ccjs.NOTHING_FOUND; exports.NOTHING_YET = _chunkVNLJZ26Ccjs.NOTHING_YET; exports.UNAVAILABLE = _chunkVNLJZ26Ccjs.UNAVAILABLE; exports.defaultMemory = defaultMemory; exports.memoryPrompt = memoryPrompt; exports.memoryTools = memoryTools; exports.recall = recall; exports.remember = remember; exports.userIdOf = userIdOf;
|
package/dist/langgraph.d.cts
CHANGED
|
@@ -4,7 +4,7 @@ import * as _langchain_langgraph from '@langchain/langgraph';
|
|
|
4
4
|
import { StateSchema } from '@langchain/langgraph';
|
|
5
5
|
import { StructuredToolInterface } from '@langchain/core/tools';
|
|
6
6
|
import { z } from 'zod';
|
|
7
|
-
import { v as Memory } from './client-
|
|
7
|
+
import { v as Memory } from './client-DJsIRKil.cjs';
|
|
8
8
|
import { I as IntegrationOptions } from './shared-Btg8LbKC.cjs';
|
|
9
9
|
export { N as NOTHING_FOUND, a as NOTHING_YET, U as UNAVAILABLE } from './shared-Btg8LbKC.cjs';
|
|
10
10
|
|
package/dist/langgraph.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import * as _langchain_langgraph from '@langchain/langgraph';
|
|
|
4
4
|
import { StateSchema } from '@langchain/langgraph';
|
|
5
5
|
import { StructuredToolInterface } from '@langchain/core/tools';
|
|
6
6
|
import { z } from 'zod';
|
|
7
|
-
import { v as Memory } from './client-
|
|
7
|
+
import { v as Memory } from './client-DJsIRKil.js';
|
|
8
8
|
import { I as IntegrationOptions } from './shared-Btg8LbKC.js';
|
|
9
9
|
export { N as NOTHING_FOUND, a as NOTHING_YET, U as UNAVAILABLE } from './shared-Btg8LbKC.js';
|
|
10
10
|
|
package/dist/langgraph.js
CHANGED
|
@@ -12,10 +12,10 @@ import {
|
|
|
12
12
|
searchAnswer,
|
|
13
13
|
searchFor,
|
|
14
14
|
stableId
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-5Y43EWDD.js";
|
|
16
16
|
import {
|
|
17
17
|
NotFoundError
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-CKBVQNV5.js";
|
|
19
19
|
|
|
20
20
|
// src/langgraph/index.ts
|
|
21
21
|
import { AIMessage, HumanMessage } from "@langchain/core/messages";
|
package/dist/openai-agents.cjs
CHANGED
|
@@ -11,13 +11,13 @@
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkVNLJZ26Ccjs = require('./chunk-VNLJZ26C.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkAJGT53UZcjs = require('./chunk-AJGT53UZ.cjs');
|
|
21
21
|
|
|
22
22
|
// src/openai-agents/run.ts
|
|
23
23
|
function userIdOf(context) {
|
|
@@ -53,7 +53,7 @@ function answer(output) {
|
|
|
53
53
|
}
|
|
54
54
|
async function item(said, role, turn, author) {
|
|
55
55
|
if (!said.trim()) return void 0;
|
|
56
|
-
const id = await
|
|
56
|
+
const id = await _chunkVNLJZ26Ccjs.stableId.call(void 0, turn, role, said);
|
|
57
57
|
return { id, role, text: said, ...author ? { author } : {} };
|
|
58
58
|
}
|
|
59
59
|
async function turnItems(result, session) {
|
|
@@ -73,13 +73,13 @@ var _agents = require('@openai/agents');
|
|
|
73
73
|
var _zod = require('zod');
|
|
74
74
|
function failed(strict) {
|
|
75
75
|
return (run, error) => {
|
|
76
|
-
const yours = error instanceof
|
|
77
|
-
const outage = error instanceof
|
|
76
|
+
const yours = error instanceof _chunkAJGT53UZcjs.AuthenticationError || error instanceof _chunkAJGT53UZcjs.PermissionDeniedError;
|
|
77
|
+
const outage = error instanceof _chunkAJGT53UZcjs.AlexeinError && error.outage;
|
|
78
78
|
const noUser = !_optionalChain([run, 'access', _5 => _5.context, 'optionalAccess', _6 => _6.userId]);
|
|
79
79
|
if (yours || noUser || strict && outage) throw error;
|
|
80
80
|
if (outage) {
|
|
81
81
|
console.warn(`Alexein is unavailable: ${error.message}`);
|
|
82
|
-
return
|
|
82
|
+
return _chunkVNLJZ26Ccjs.UNAVAILABLE;
|
|
83
83
|
}
|
|
84
84
|
return `That did not work: ${error instanceof Error ? error.message : String(error)}`;
|
|
85
85
|
};
|
|
@@ -92,8 +92,8 @@ function buildTools(memory, write) {
|
|
|
92
92
|
parameters: _zod.z.object({ query: _zod.z.string().describe("What to look for") }),
|
|
93
93
|
errorFunction,
|
|
94
94
|
async execute({ query }, run) {
|
|
95
|
-
const found = await
|
|
96
|
-
return
|
|
95
|
+
const found = await _chunkVNLJZ26Ccjs.searchFor.call(void 0, memory.userOf(_optionalChain([run, 'optionalAccess', _7 => _7.context])), query, memory.fast);
|
|
96
|
+
return _chunkVNLJZ26Ccjs.searchAnswer.call(void 0, found, memory.maxChars);
|
|
97
97
|
}
|
|
98
98
|
});
|
|
99
99
|
const open = _agents.tool.call(void 0, {
|
|
@@ -103,10 +103,10 @@ function buildTools(memory, write) {
|
|
|
103
103
|
errorFunction,
|
|
104
104
|
async execute({ ref }, run) {
|
|
105
105
|
try {
|
|
106
|
-
return
|
|
106
|
+
return _chunkVNLJZ26Ccjs.openAnswer.call(void 0, await memory.userOf(_optionalChain([run, 'optionalAccess', _8 => _8.context])).open(ref));
|
|
107
107
|
} catch (error) {
|
|
108
|
-
if (!(error instanceof
|
|
109
|
-
return
|
|
108
|
+
if (!(error instanceof _chunkAJGT53UZcjs.NotFoundError)) throw error;
|
|
109
|
+
return _chunkVNLJZ26Ccjs.notFoundAnswer.call(void 0, error);
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
});
|
|
@@ -120,7 +120,7 @@ function buildTools(memory, write) {
|
|
|
120
120
|
kind: "note",
|
|
121
121
|
session: sessionIdOf(_optionalChain([run, 'optionalAccess', _10 => _10.context]))
|
|
122
122
|
});
|
|
123
|
-
return saved.failed ?
|
|
123
|
+
return saved.failed ? _chunkVNLJZ26Ccjs.UNAVAILABLE : _chunkVNLJZ26Ccjs.SAVED;
|
|
124
124
|
}
|
|
125
125
|
});
|
|
126
126
|
return write ? [search, open, add] : [search, open];
|
|
@@ -149,12 +149,12 @@ var AlexeinMemory = (_class = class {
|
|
|
149
149
|
#recalled = /* @__PURE__ */ new WeakMap();
|
|
150
150
|
/** `client` defaults to one made on first use: fail-open unless strict, a 10 s timeout. */
|
|
151
151
|
constructor(client, options = {}) {;_class.prototype.__init.call(this);_class.prototype.__init2.call(this);
|
|
152
|
-
const given =
|
|
153
|
-
const settings =
|
|
152
|
+
const given = _chunkVNLJZ26Ccjs.isClient.call(void 0, client) ? client : void 0;
|
|
153
|
+
const settings = _chunkVNLJZ26Ccjs.isClient.call(void 0, client) ? options : { ...client, ...options };
|
|
154
154
|
this.fast = _nullishCoalesce(settings.fast, () => ( false));
|
|
155
155
|
this.maxChars = _nullishCoalesce(settings.maxChars, () => ( 4e3));
|
|
156
156
|
this.strict = _nullishCoalesce(settings.strict, () => ( false));
|
|
157
|
-
this.#client = new (0,
|
|
157
|
+
this.#client = new (0, _chunkVNLJZ26Ccjs.LazyClient)(given, "openai-agents", this.strict, settings.timeout);
|
|
158
158
|
}
|
|
159
159
|
get client() {
|
|
160
160
|
return this.#client.client;
|
|
@@ -180,8 +180,8 @@ var AlexeinMemory = (_class = class {
|
|
|
180
180
|
question = said && textOf(said).trim();
|
|
181
181
|
}
|
|
182
182
|
if (question !== void 0) {
|
|
183
|
-
const found = question ? await
|
|
184
|
-
this.#recalled.set(run,
|
|
183
|
+
const found = question ? await _chunkVNLJZ26Ccjs.searchFor.call(void 0, user, question, this.fast) : void 0;
|
|
184
|
+
this.#recalled.set(run, _chunkVNLJZ26Ccjs.promptBlock.call(void 0, _nullishCoalesce(_optionalChain([found, 'optionalAccess', _17 => _17.context, 'call', _18 => _18(this.maxChars)]), () => ( ""))));
|
|
185
185
|
}
|
|
186
186
|
const block = this.#recalled.get(run);
|
|
187
187
|
if (!block) return modelData;
|
|
@@ -231,4 +231,4 @@ var memoryTools = (options = {}) => defaultMemory().tools(options);
|
|
|
231
231
|
|
|
232
232
|
|
|
233
233
|
|
|
234
|
-
exports.AlexeinMemory = AlexeinMemory; exports.NOTHING_FOUND =
|
|
234
|
+
exports.AlexeinMemory = AlexeinMemory; exports.NOTHING_FOUND = _chunkVNLJZ26Ccjs.NOTHING_FOUND; exports.NOTHING_YET = _chunkVNLJZ26Ccjs.NOTHING_YET; exports.UNAVAILABLE = _chunkVNLJZ26Ccjs.UNAVAILABLE; exports.defaultMemory = defaultMemory; exports.memoryTools = memoryTools; exports.recall = recall; exports.remember = remember; exports.sessionIdOf = sessionIdOf; exports.userIdOf = userIdOf;
|
package/dist/openai-agents.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AgentInputItem, CallModelInputFilterArgs, ModelInputData, FunctionTool } from '@openai/agents';
|
|
2
|
-
import { v as Memory, X as User } from './client-
|
|
2
|
+
import { v as Memory, X as User } from './client-DJsIRKil.cjs';
|
|
3
3
|
import { I as IntegrationOptions } from './shared-Btg8LbKC.cjs';
|
|
4
4
|
export { N as NOTHING_FOUND, a as NOTHING_YET, U as UNAVAILABLE } from './shared-Btg8LbKC.cjs';
|
|
5
5
|
|
package/dist/openai-agents.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AgentInputItem, CallModelInputFilterArgs, ModelInputData, FunctionTool } from '@openai/agents';
|
|
2
|
-
import { v as Memory, X as User } from './client-
|
|
2
|
+
import { v as Memory, X as User } from './client-DJsIRKil.js';
|
|
3
3
|
import { I as IntegrationOptions } from './shared-Btg8LbKC.js';
|
|
4
4
|
export { N as NOTHING_FOUND, a as NOTHING_YET, U as UNAVAILABLE } from './shared-Btg8LbKC.js';
|
|
5
5
|
|
package/dist/openai-agents.js
CHANGED
|
@@ -11,13 +11,13 @@ import {
|
|
|
11
11
|
searchAnswer,
|
|
12
12
|
searchFor,
|
|
13
13
|
stableId
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-5Y43EWDD.js";
|
|
15
15
|
import {
|
|
16
16
|
AlexeinError,
|
|
17
17
|
AuthenticationError,
|
|
18
18
|
NotFoundError,
|
|
19
19
|
PermissionDeniedError
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-CKBVQNV5.js";
|
|
21
21
|
|
|
22
22
|
// src/openai-agents/run.ts
|
|
23
23
|
function userIdOf(context) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alexein/sdk",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "JavaScript and TypeScript client for Alexein: long-term memory for your users and agents, with LangGraph.js and OpenAI Agents SDK integrations.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Alexein AI",
|