@anuma/sdk 3.3.0 → 3.3.1

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.
@@ -125,7 +125,7 @@ import {
125
125
  updateVaultMemoryOp,
126
126
  useEncryption,
127
127
  vaultMemoryToStored
128
- } from "./chunk-GZRK43CA.mjs";
128
+ } from "./chunk-PWTWECXY.mjs";
129
129
  import {
130
130
  PiiRedactor,
131
131
  createStreamingDeAnonymizer,
@@ -150,7 +150,7 @@ import {
150
150
  } from "./chunk-GYKJOWEO.mjs";
151
151
 
152
152
  // src/client/core/serverSentEvents.gen.ts
153
- var createSseClient = ({
153
+ function createSseClient({
154
154
  onRequest,
155
155
  onSseError,
156
156
  onSseEvent,
@@ -162,7 +162,7 @@ var createSseClient = ({
162
162
  sseSleepFn,
163
163
  url,
164
164
  ...options
165
- }) => {
165
+ }) {
166
166
  let lastEventId;
167
167
  const sleep3 = sseSleepFn ?? ((ms) => new Promise((resolve) => setTimeout(resolve, ms)));
168
168
  const createStream = async function* () {
@@ -190,10 +190,7 @@ var createSseClient = ({
190
190
  }
191
191
  const _fetch = options.fetch ?? globalThis.fetch;
192
192
  const response = await _fetch(request);
193
- if (!response.ok)
194
- throw new Error(
195
- `SSE failed: ${response.status} ${response.statusText}`
196
- );
193
+ if (!response.ok) throw new Error(`SSE failed: ${response.status} ${response.statusText}`);
197
194
  if (!response.body) throw new Error("No body in SSE response");
198
195
  const reader = response.body.pipeThrough(new TextDecoderStream()).getReader();
199
196
  let buffer = "";
@@ -209,6 +206,7 @@ var createSseClient = ({
209
206
  const { done, value } = await reader.read();
210
207
  if (done) break;
211
208
  buffer += value;
209
+ buffer = buffer.replace(/\r\n?/g, "\n");
212
210
  const chunks = buffer.split("\n\n");
213
211
  buffer = chunks.pop() ?? "";
214
212
  for (const chunk of chunks) {
@@ -223,10 +221,7 @@ var createSseClient = ({
223
221
  } else if (line.startsWith("id:")) {
224
222
  lastEventId = line.replace(/^id:\s*/, "");
225
223
  } else if (line.startsWith("retry:")) {
226
- const parsed = Number.parseInt(
227
- line.replace(/^retry:\s*/, ""),
228
- 10
229
- );
224
+ const parsed = Number.parseInt(line.replace(/^retry:\s*/, ""), 10);
230
225
  if (!Number.isNaN(parsed)) {
231
226
  retryDelay = parsed;
232
227
  }
@@ -272,17 +267,14 @@ var createSseClient = ({
272
267
  if (sseMaxRetryAttempts !== void 0 && attempt >= sseMaxRetryAttempts) {
273
268
  break;
274
269
  }
275
- const backoff = Math.min(
276
- retryDelay * 2 ** (attempt - 1),
277
- sseMaxRetryDelay ?? 3e4
278
- );
270
+ const backoff = Math.min(retryDelay * 2 ** (attempt - 1), sseMaxRetryDelay ?? 3e4);
279
271
  await sleep3(backoff);
280
272
  }
281
273
  }
282
274
  };
283
275
  const stream = createStream();
284
276
  return { stream };
285
- };
277
+ }
286
278
 
287
279
  // src/lib/chat/runHooks.ts
288
280
  function composeHooks(hooks) {
@@ -17337,10 +17329,7 @@ import { useCallback as useCallback12, useEffect as useEffect6, useRef as useRef
17337
17329
 
17338
17330
  // src/client/core/bodySerializer.gen.ts
17339
17331
  var jsonBodySerializer = {
17340
- bodySerializer: (body) => JSON.stringify(
17341
- body,
17342
- (_key, value) => typeof value === "bigint" ? value.toString() : value
17343
- )
17332
+ bodySerializer: (body) => JSON.stringify(body, (_key, value) => typeof value === "bigint" ? value.toString() : value)
17344
17333
  };
17345
17334
 
17346
17335
  // src/client/core/pathSerializer.gen.ts
@@ -17442,11 +17431,7 @@ var serializeObjectParam = ({
17442
17431
  if (style !== "deepObject" && !explode) {
17443
17432
  let values = [];
17444
17433
  Object.entries(value).forEach(([key, v]) => {
17445
- values = [
17446
- ...values,
17447
- key,
17448
- allowReserved ? v : encodeURIComponent(v)
17449
- ];
17434
+ values = [...values, key, allowReserved ? v : encodeURIComponent(v)];
17450
17435
  });
17451
17436
  const joinedValues2 = values.join(",");
17452
17437
  switch (style) {
@@ -17529,10 +17514,7 @@ var defaultPathSerializer = ({ path, url: _url }) => {
17529
17514
  continue;
17530
17515
  }
17531
17516
  if (Array.isArray(value)) {
17532
- url = url.replace(
17533
- match,
17534
- serializeArrayParam({ explode, name, style, value })
17535
- );
17517
+ url = url.replace(match, serializeArrayParam({ explode, name, style, value }));
17536
17518
  continue;
17537
17519
  }
17538
17520
  if (typeof value === "object") {
@@ -17627,9 +17609,7 @@ var getParseAs = (contentType) => {
17627
17609
  if (cleanContent === "multipart/form-data") {
17628
17610
  return "formData";
17629
17611
  }
17630
- if (["application/", "audio/", "image/", "video/"].some(
17631
- (type) => cleanContent.startsWith(type)
17632
- )) {
17612
+ if (["application/", "audio/", "image/", "video/"].some((type) => cleanContent.startsWith(type))) {
17633
17613
  return "blob";
17634
17614
  }
17635
17615
  if (cleanContent.startsWith("text/")) {
@@ -17646,11 +17626,8 @@ var checkForExistence = (options, name) => {
17646
17626
  }
17647
17627
  return false;
17648
17628
  };
17649
- var setAuthParams = async ({
17650
- security,
17651
- ...options
17652
- }) => {
17653
- for (const auth of security) {
17629
+ async function setAuthParams(options) {
17630
+ for (const auth of options.security ?? []) {
17654
17631
  if (checkForExistence(options, auth.name)) {
17655
17632
  continue;
17656
17633
  }
@@ -17675,7 +17652,7 @@ var setAuthParams = async ({
17675
17652
  break;
17676
17653
  }
17677
17654
  }
17678
- };
17655
+ }
17679
17656
  var buildUrl = (options) => {
17680
17657
  const url = getUrl({
17681
17658
  baseUrl: options.baseUrl,
@@ -17827,10 +17804,7 @@ var createClient = (config = {}) => {
17827
17804
  serializedBody: void 0
17828
17805
  };
17829
17806
  if (opts.security) {
17830
- await setAuthParams({
17831
- ...opts,
17832
- security: opts.security
17833
- });
17807
+ await setAuthParams(opts);
17834
17808
  }
17835
17809
  if (opts.requestValidator) {
17836
17810
  await opts.requestValidator(opts);
@@ -17841,105 +17815,115 @@ var createClient = (config = {}) => {
17841
17815
  if (opts.body === void 0 || opts.serializedBody === "") {
17842
17816
  opts.headers.delete("Content-Type");
17843
17817
  }
17844
- const url = buildUrl(opts);
17845
- return { opts, url };
17818
+ const resolvedOpts = opts;
17819
+ const url = buildUrl(resolvedOpts);
17820
+ return { opts: resolvedOpts, url };
17846
17821
  };
17847
17822
  const request = async (options) => {
17848
- const { opts, url } = await beforeRequest(options);
17849
- for (const fn of interceptors.request.fns) {
17850
- if (fn) {
17851
- await fn(opts);
17823
+ const throwOnError = options.throwOnError ?? _config.throwOnError;
17824
+ let response;
17825
+ try {
17826
+ const { opts, url } = await beforeRequest(options);
17827
+ for (const fn of interceptors.request.fns) {
17828
+ if (fn) {
17829
+ await fn(opts);
17830
+ }
17852
17831
  }
17853
- }
17854
- const _fetch = opts.fetch;
17855
- const requestInit = {
17856
- ...opts,
17857
- body: getValidRequestBody(opts)
17858
- };
17859
- let response = await _fetch(url, requestInit);
17860
- for (const fn of interceptors.response.fns) {
17861
- if (fn) {
17862
- response = await fn(response, opts);
17832
+ const _fetch = opts.fetch;
17833
+ const requestInit = {
17834
+ ...opts,
17835
+ body: getValidRequestBody(opts)
17836
+ };
17837
+ response = await _fetch(url, requestInit);
17838
+ for (const fn of interceptors.response.fns) {
17839
+ if (fn) {
17840
+ response = await fn(response, opts);
17841
+ }
17863
17842
  }
17864
- }
17865
- const result = {
17866
- response
17867
- };
17868
- if (response.ok) {
17869
- const parseAs = (opts.parseAs === "auto" ? getParseAs(response.headers.get("Content-Type")) : opts.parseAs) ?? "json";
17870
- if (response.status === 204 || response.headers.get("Content-Length") === "0") {
17871
- let emptyData;
17843
+ const result = {
17844
+ response
17845
+ };
17846
+ if (response.ok) {
17847
+ const parseAs = (opts.parseAs === "auto" ? getParseAs(response.headers.get("Content-Type")) : opts.parseAs) ?? "json";
17848
+ if (response.status === 204 || response.headers.get("Content-Length") === "0") {
17849
+ let emptyData;
17850
+ switch (parseAs) {
17851
+ case "arrayBuffer":
17852
+ case "blob":
17853
+ case "text":
17854
+ emptyData = await response[parseAs]();
17855
+ break;
17856
+ case "formData":
17857
+ emptyData = new FormData();
17858
+ break;
17859
+ case "stream":
17860
+ emptyData = response.body;
17861
+ break;
17862
+ case "json":
17863
+ default:
17864
+ emptyData = {};
17865
+ break;
17866
+ }
17867
+ return {
17868
+ data: emptyData,
17869
+ ...result
17870
+ };
17871
+ }
17872
+ let data;
17872
17873
  switch (parseAs) {
17873
17874
  case "arrayBuffer":
17874
17875
  case "blob":
17876
+ case "formData":
17875
17877
  case "text":
17876
- emptyData = await response[parseAs]();
17878
+ data = await response[parseAs]();
17877
17879
  break;
17878
- case "formData":
17879
- emptyData = new FormData();
17880
+ case "json": {
17881
+ const text12 = await response.text();
17882
+ data = text12 ? JSON.parse(text12) : {};
17880
17883
  break;
17884
+ }
17881
17885
  case "stream":
17882
- emptyData = response.body;
17883
- break;
17884
- case "json":
17885
- default:
17886
- emptyData = {};
17887
- break;
17886
+ return {
17887
+ data: response.body,
17888
+ ...result
17889
+ };
17890
+ }
17891
+ if (parseAs === "json") {
17892
+ if (opts.responseValidator) {
17893
+ await opts.responseValidator(data);
17894
+ }
17895
+ if (opts.responseTransformer) {
17896
+ data = await opts.responseTransformer(data);
17897
+ }
17888
17898
  }
17889
17899
  return {
17890
- data: emptyData,
17900
+ data,
17891
17901
  ...result
17892
17902
  };
17893
17903
  }
17894
- let data;
17895
- switch (parseAs) {
17896
- case "arrayBuffer":
17897
- case "blob":
17898
- case "formData":
17899
- case "json":
17900
- case "text":
17901
- data = await response[parseAs]();
17902
- break;
17903
- case "stream":
17904
- return {
17905
- data: response.body,
17906
- ...result
17907
- };
17904
+ const textError = await response.text();
17905
+ let jsonError;
17906
+ try {
17907
+ jsonError = JSON.parse(textError);
17908
+ } catch {
17908
17909
  }
17909
- if (parseAs === "json") {
17910
- if (opts.responseValidator) {
17911
- await opts.responseValidator(data);
17912
- }
17913
- if (opts.responseTransformer) {
17914
- data = await opts.responseTransformer(data);
17910
+ throw jsonError ?? textError;
17911
+ } catch (error) {
17912
+ let finalError = error;
17913
+ for (const fn of interceptors.error.fns) {
17914
+ if (fn) {
17915
+ finalError = await fn(finalError, response, options);
17915
17916
  }
17916
17917
  }
17918
+ finalError = finalError || {};
17919
+ if (throwOnError) {
17920
+ throw finalError;
17921
+ }
17917
17922
  return {
17918
- data,
17919
- ...result
17923
+ error: finalError,
17924
+ response
17920
17925
  };
17921
17926
  }
17922
- const textError = await response.text();
17923
- let jsonError;
17924
- try {
17925
- jsonError = JSON.parse(textError);
17926
- } catch {
17927
- }
17928
- const error = jsonError ?? textError;
17929
- let finalError = error;
17930
- for (const fn of interceptors.error.fns) {
17931
- if (fn) {
17932
- finalError = await fn(error, response, opts);
17933
- }
17934
- }
17935
- finalError = finalError || {};
17936
- if (opts.throwOnError) {
17937
- throw finalError;
17938
- }
17939
- return {
17940
- error: finalError,
17941
- ...result
17942
- };
17943
17927
  };
17944
17928
  const makeMethodFn = (method) => (options) => request({ ...options, method });
17945
17929
  const makeSseFn = (method) => async (options) => {
@@ -17947,15 +17931,10 @@ var createClient = (config = {}) => {
17947
17931
  return createSseClient({
17948
17932
  ...opts,
17949
17933
  body: opts.body,
17950
- headers: opts.headers,
17951
17934
  method,
17952
17935
  onRequest: async (url2, init) => {
17953
17936
  let request2 = new Request(url2, init);
17954
- const requestInit = {
17955
- ...init,
17956
- method: init.method,
17957
- url: url2
17958
- };
17937
+ const requestInit = { ...init, url: url2 };
17959
17938
  for (const fn of interceptors.request.fns) {
17960
17939
  if (fn) {
17961
17940
  await fn(requestInit);
@@ -17964,11 +17943,13 @@ var createClient = (config = {}) => {
17964
17943
  }
17965
17944
  return request2;
17966
17945
  },
17946
+ serializedBody: getValidRequestBody(opts),
17967
17947
  url
17968
17948
  });
17969
17949
  };
17950
+ const _buildUrl = (options) => buildUrl({ ..._config, ...options });
17970
17951
  return {
17971
- buildUrl,
17952
+ buildUrl: _buildUrl,
17972
17953
  connect: makeMethodFn("CONNECT"),
17973
17954
  delete: makeMethodFn("DELETE"),
17974
17955
  get: makeMethodFn("GET"),
@@ -18000,156 +17981,88 @@ var createClient = (config = {}) => {
18000
17981
  var client = createClient(createClientConfig(createConfig()));
18001
17982
 
18002
17983
  // src/client/sdk.gen.ts
18003
- var getApiV1Config = (options) => {
18004
- return (options?.client ?? client).get({
18005
- url: "/api/v1/config",
18006
- ...options
18007
- });
18008
- };
18009
- var getApiV1CreditsBalance = (options) => {
18010
- return (options?.client ?? client).get({
18011
- url: "/api/v1/credits/balance",
18012
- ...options
18013
- });
18014
- };
18015
- var getApiV1CreditsPacks = (options) => {
18016
- return (options?.client ?? client).get({
18017
- url: "/api/v1/credits/packs",
18018
- ...options
18019
- });
18020
- };
18021
- var postApiV1CreditsPurchase = (options) => {
18022
- return (options.client ?? client).post({
18023
- url: "/api/v1/credits/purchase",
18024
- ...options,
18025
- headers: {
18026
- "Content-Type": "application/json",
18027
- ...options.headers
18028
- }
18029
- });
18030
- };
18031
- var getApiV1Models = (options) => {
18032
- return (options?.client ?? client).get({
18033
- url: "/api/v1/models",
18034
- ...options
18035
- });
18036
- };
18037
- var postApiV1PhoneCalls = (options) => {
18038
- return (options.client ?? client).post({
18039
- url: "/api/v1/phone-calls",
18040
- ...options,
18041
- headers: {
18042
- "Content-Type": "application/json",
18043
- ...options.headers
18044
- }
18045
- });
18046
- };
18047
- var getApiV1PhoneCallsByCallId = (options) => {
18048
- return (options.client ?? client).get({
18049
- url: "/api/v1/phone-calls/{call_id}",
18050
- ...options
18051
- });
18052
- };
18053
- var postApiV1SubscriptionsCancel = (options) => {
18054
- return (options?.client ?? client).post({
18055
- url: "/api/v1/subscriptions/cancel",
18056
- ...options,
18057
- headers: {
18058
- "Content-Type": "application/json",
18059
- ...options?.headers
18060
- }
18061
- });
18062
- };
18063
- var postApiV1SubscriptionsCreateCheckoutSession = (options) => {
18064
- return (options.client ?? client).post({
18065
- url: "/api/v1/subscriptions/create-checkout-session",
18066
- ...options,
18067
- headers: {
18068
- "Content-Type": "application/json",
18069
- ...options.headers
18070
- }
18071
- });
18072
- };
18073
- var postApiV1SubscriptionsCustomerPortal = (options) => {
18074
- return (options.client ?? client).post({
18075
- url: "/api/v1/subscriptions/customer-portal",
18076
- ...options,
18077
- headers: {
18078
- "Content-Type": "application/json",
18079
- ...options.headers
18080
- }
18081
- });
18082
- };
18083
- var postApiV1SubscriptionsRenew = (options) => {
18084
- return (options?.client ?? client).post({
18085
- url: "/api/v1/subscriptions/renew",
18086
- ...options
18087
- });
18088
- };
18089
- var getApiV1SubscriptionsStatus = (options) => {
18090
- return (options?.client ?? client).get({
18091
- url: "/api/v1/subscriptions/status",
18092
- ...options
18093
- });
18094
- };
18095
- var getApiV1WalletsBinding = (options) => {
18096
- return (options?.client ?? client).get({
18097
- url: "/api/v1/wallets/binding",
18098
- ...options
18099
- });
18100
- };
18101
- var postApiV1WalletsBinding = (options) => {
18102
- return (options.client ?? client).post({
18103
- url: "/api/v1/wallets/binding",
18104
- ...options,
18105
- headers: {
18106
- "Content-Type": "application/json",
18107
- ...options.headers
18108
- }
18109
- });
18110
- };
18111
- var postApiV1WalletsBindingNonce = (options) => {
18112
- return (options?.client ?? client).post({
18113
- url: "/api/v1/wallets/binding/nonce",
18114
- ...options
18115
- });
18116
- };
18117
- var deleteApiV1WalletsBindingByAddress = (options) => {
18118
- return (options.client ?? client).delete({
18119
- url: "/api/v1/wallets/binding/{address}",
18120
- ...options
18121
- });
18122
- };
18123
- var postAuthOauthByProviderExchange = (options) => {
18124
- return (options.client ?? client).post({
18125
- url: "/auth/oauth/{provider}/exchange",
18126
- ...options,
18127
- headers: {
18128
- "Content-Type": "application/json",
18129
- ...options.headers
18130
- }
18131
- });
18132
- };
18133
- var postAuthOauthByProviderRefresh = (options) => {
18134
- return (options.client ?? client).post({
18135
- url: "/auth/oauth/{provider}/refresh",
18136
- ...options,
18137
- headers: {
18138
- "Content-Type": "application/json",
18139
- ...options.headers
18140
- }
18141
- });
18142
- };
18143
- var postAuthOauthByProviderRevoke = (options) => {
18144
- return (options.client ?? client).post({
18145
- url: "/auth/oauth/{provider}/revoke",
18146
- ...options,
18147
- headers: {
18148
- "Content-Type": "application/json",
18149
- ...options.headers
18150
- }
18151
- });
18152
- };
17984
+ var getApiV1Config = (options) => (options?.client ?? client).get({ url: "/api/v1/config", ...options });
17985
+ var getApiV1CreditsBalance = (options) => (options?.client ?? client).get({ url: "/api/v1/credits/balance", ...options });
17986
+ var getApiV1CreditsPacks = (options) => (options?.client ?? client).get({ url: "/api/v1/credits/packs", ...options });
17987
+ var postApiV1CreditsPurchase = (options) => (options.client ?? client).post({
17988
+ url: "/api/v1/credits/purchase",
17989
+ ...options,
17990
+ headers: {
17991
+ "Content-Type": "application/json",
17992
+ ...options.headers
17993
+ }
17994
+ });
17995
+ var getApiV1Models = (options) => (options?.client ?? client).get({ url: "/api/v1/models", ...options });
17996
+ var postApiV1PhoneCalls = (options) => (options.client ?? client).post({
17997
+ url: "/api/v1/phone-calls",
17998
+ ...options,
17999
+ headers: {
18000
+ "Content-Type": "application/json",
18001
+ ...options.headers
18002
+ }
18003
+ });
18004
+ var getApiV1PhoneCallsByCallId = (options) => (options.client ?? client).get({ url: "/api/v1/phone-calls/{call_id}", ...options });
18005
+ var postApiV1SubscriptionsCancel = (options) => (options?.client ?? client).post({
18006
+ url: "/api/v1/subscriptions/cancel",
18007
+ ...options,
18008
+ headers: {
18009
+ "Content-Type": "application/json",
18010
+ ...options?.headers
18011
+ }
18012
+ });
18013
+ var postApiV1SubscriptionsCreateCheckoutSession = (options) => (options.client ?? client).post({
18014
+ url: "/api/v1/subscriptions/create-checkout-session",
18015
+ ...options,
18016
+ headers: {
18017
+ "Content-Type": "application/json",
18018
+ ...options.headers
18019
+ }
18020
+ });
18021
+ var postApiV1SubscriptionsCustomerPortal = (options) => (options.client ?? client).post({
18022
+ url: "/api/v1/subscriptions/customer-portal",
18023
+ ...options,
18024
+ headers: {
18025
+ "Content-Type": "application/json",
18026
+ ...options.headers
18027
+ }
18028
+ });
18029
+ var postApiV1SubscriptionsRenew = (options) => (options?.client ?? client).post({ url: "/api/v1/subscriptions/renew", ...options });
18030
+ var getApiV1SubscriptionsStatus = (options) => (options?.client ?? client).get({ url: "/api/v1/subscriptions/status", ...options });
18031
+ var getApiV1WalletsBinding = (options) => (options?.client ?? client).get({ url: "/api/v1/wallets/binding", ...options });
18032
+ var postApiV1WalletsBinding = (options) => (options.client ?? client).post({
18033
+ url: "/api/v1/wallets/binding",
18034
+ ...options,
18035
+ headers: {
18036
+ "Content-Type": "application/json",
18037
+ ...options.headers
18038
+ }
18039
+ });
18040
+ var postApiV1WalletsBindingNonce = (options) => (options?.client ?? client).post({ url: "/api/v1/wallets/binding/nonce", ...options });
18041
+ var deleteApiV1WalletsBindingByAddress = (options) => (options.client ?? client).delete({ url: "/api/v1/wallets/binding/{address}", ...options });
18042
+ var postAuthOauthByProviderExchange = (options) => (options.client ?? client).post({
18043
+ url: "/auth/oauth/{provider}/exchange",
18044
+ ...options,
18045
+ headers: {
18046
+ "Content-Type": "application/json",
18047
+ ...options.headers
18048
+ }
18049
+ });
18050
+ var postAuthOauthByProviderRefresh = (options) => (options.client ?? client).post({
18051
+ url: "/auth/oauth/{provider}/refresh",
18052
+ ...options,
18053
+ headers: {
18054
+ "Content-Type": "application/json",
18055
+ ...options.headers
18056
+ }
18057
+ });
18058
+ var postAuthOauthByProviderRevoke = (options) => (options.client ?? client).post({
18059
+ url: "/auth/oauth/{provider}/revoke",
18060
+ ...options,
18061
+ headers: {
18062
+ "Content-Type": "application/json",
18063
+ ...options.headers
18064
+ }
18065
+ });
18153
18066
 
18154
18067
  // src/react/useCredits.ts
18155
18068
  function useCredits(options = {}) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  recall
3
- } from "./chunk-GZRK43CA.mjs";
3
+ } from "./chunk-PWTWECXY.mjs";
4
4
  import "./chunk-DFVCS3QQ.mjs";
5
5
  import "./chunk-GYKJOWEO.mjs";
6
6
  export {
@@ -17114,6 +17114,9 @@ async function withEmbeddingRetry(call) {
17114
17114
  }
17115
17115
  }
17116
17116
  if (threw) throw lastThrown;
17117
+ if (last?.error instanceof Error && last.response?.status === void 0) {
17118
+ throw last.error;
17119
+ }
17117
17120
  return last;
17118
17121
  }
17119
17122
  var EmbeddingHttpError = class extends Error {
@@ -18709,7 +18712,7 @@ function createMemoryVaultSearchTool(vaultCtx, embeddingOptions, cache, searchOp
18709
18712
  legacy.map((r) => ({ id: r.uniqueId, content: r.content, score: r.similarity }))
18710
18713
  );
18711
18714
  }
18712
- const { recall: recall2 } = await import("./recall-76WPPKLR.mjs");
18715
+ const { recall: recall2 } = await import("./recall-NNBMWRLB.mjs");
18713
18716
  const result = await recall2(
18714
18717
  query,
18715
18718
  { vaultCtx, embeddingOptions, vaultCache: cache },