@anuma/sdk 2.0.0 → 2.1.0

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.
@@ -5,8 +5,13 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __getProtoOf = Object.getPrototypeOf;
7
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __esm = (fn, res) => function __init() {
9
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
8
+ var __esm = (fn, res, err) => function __init() {
9
+ if (err) throw err[0];
10
+ try {
11
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
12
+ } catch (e) {
13
+ throw err = [e], e;
14
+ }
10
15
  };
11
16
  var __export = (target, all) => {
12
17
  for (var name in all)
package/dist/index.cjs CHANGED
@@ -3,8 +3,13 @@ var __defProp = Object.defineProperty;
3
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __esm = (fn, res) => function __init() {
7
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
6
+ var __esm = (fn, res, err) => function __init() {
7
+ if (err) throw err[0];
8
+ try {
9
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
10
+ } catch (e) {
11
+ throw err = [e], e;
12
+ }
8
13
  };
9
14
  var __export = (target, all) => {
10
15
  for (var name in all)
@@ -5,8 +5,13 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __getProtoOf = Object.getPrototypeOf;
7
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __esm = (fn, res) => function __init() {
9
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
8
+ var __esm = (fn, res, err) => function __init() {
9
+ if (err) throw err[0];
10
+ try {
11
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
12
+ } catch (e) {
13
+ throw err = [e], e;
14
+ }
10
15
  };
11
16
  var __export = (target, all) => {
12
17
  for (var name in all)
@@ -21442,7 +21447,7 @@ function startObserve(entry, walletAddress) {
21442
21447
  isInitialEmission = false;
21443
21448
  }
21444
21449
  function subscribeUserSettings(database, walletAddress, listener) {
21445
- if (!walletAddress) return () => void 0;
21450
+ if (!database || !walletAddress) return () => void 0;
21446
21451
  const perDb = getOrCreatePerDb(database);
21447
21452
  let entry = perDb.get(walletAddress);
21448
21453
  if (!entry) {
@@ -21472,17 +21477,18 @@ function subscribeUserSettings(database, walletAddress, listener) {
21472
21477
  };
21473
21478
  }
21474
21479
  function getUserSettingsSnapshot(database, walletAddress) {
21475
- if (!walletAddress) return EMPTY_SNAPSHOT;
21480
+ if (!database || !walletAddress) return EMPTY_SNAPSHOT;
21476
21481
  return pool.get(database)?.get(walletAddress)?.snapshot ?? EMPTY_SNAPSHOT;
21477
21482
  }
21478
21483
  function patchUserSettingsSnapshot(database, walletAddress, patch) {
21479
- if (!walletAddress) return;
21484
+ if (!database || !walletAddress) return;
21480
21485
  const entry = pool.get(database)?.get(walletAddress);
21481
21486
  if (!entry) return;
21482
21487
  patchSnapshot(entry, patch);
21483
21488
  }
21484
21489
 
21485
21490
  // src/react/useSettings.ts
21491
+ var DB_NOT_READY = "Database not ready";
21486
21492
  function useSettings(options) {
21487
21493
  const { database, walletAddress } = options;
21488
21494
  const subscribe = (0, import_react9.useCallback)(
@@ -21495,24 +21501,25 @@ function useSettings(options) {
21495
21501
  );
21496
21502
  const snapshot = (0, import_react9.useSyncExternalStore)(subscribe, getSnapshot, getSnapshot);
21497
21503
  const storageCtx = (0, import_react9.useMemo)(
21498
- () => ({
21504
+ () => database ? {
21499
21505
  database,
21500
21506
  userPreferencesCollection: database.get("userPreferences"),
21501
21507
  modelPreferencesCollection: database.get("modelPreferences")
21502
- }),
21508
+ } : null,
21503
21509
  [database]
21504
21510
  );
21505
21511
  const legacyStorageCtx = (0, import_react9.useMemo)(
21506
- () => ({
21512
+ () => database ? {
21507
21513
  database,
21508
21514
  modelPreferencesCollection: database.get("modelPreferences")
21509
- }),
21515
+ } : null,
21510
21516
  [database]
21511
21517
  );
21512
21518
  const getModelPreference = (0, import_react9.useCallback)(
21513
21519
  async (address) => {
21514
21520
  try {
21515
21521
  if (!address) throw new Error("Wallet address is required");
21522
+ if (!legacyStorageCtx) throw new Error(DB_NOT_READY);
21516
21523
  const result = await getModelPreferenceOp(legacyStorageCtx, address);
21517
21524
  return result;
21518
21525
  } catch (error) {
@@ -21525,6 +21532,7 @@ function useSettings(options) {
21525
21532
  async (address, models) => {
21526
21533
  try {
21527
21534
  if (!address) throw new Error("Wallet address is required");
21535
+ if (!legacyStorageCtx) throw new Error(DB_NOT_READY);
21528
21536
  const result = await setModelPreferenceOp(legacyStorageCtx, address, models);
21529
21537
  if (walletAddress && address === walletAddress) {
21530
21538
  patchUserSettingsSnapshot(database, walletAddress, { modelPreference: result });
@@ -21540,6 +21548,7 @@ function useSettings(options) {
21540
21548
  async (address) => {
21541
21549
  try {
21542
21550
  if (!address) throw new Error("Wallet address is required");
21551
+ if (!legacyStorageCtx) throw new Error(DB_NOT_READY);
21543
21552
  const deleted = await deleteModelPreferenceOp(legacyStorageCtx, address);
21544
21553
  if (deleted && walletAddress && address === walletAddress) {
21545
21554
  patchUserSettingsSnapshot(database, walletAddress, { modelPreference: null });
@@ -21555,6 +21564,7 @@ function useSettings(options) {
21555
21564
  async (address) => {
21556
21565
  try {
21557
21566
  if (!address) throw new Error("Wallet address is required");
21567
+ if (!storageCtx) throw new Error(DB_NOT_READY);
21558
21568
  const result = await getUserPreferenceOp(storageCtx, address);
21559
21569
  return result;
21560
21570
  } catch (error) {
@@ -21567,6 +21577,7 @@ function useSettings(options) {
21567
21577
  async (address, opts) => {
21568
21578
  try {
21569
21579
  if (!address) throw new Error("Wallet address is required");
21580
+ if (!storageCtx) throw new Error(DB_NOT_READY);
21570
21581
  const result = await setUserPreferenceOp(storageCtx, address, opts);
21571
21582
  if (walletAddress && address === walletAddress) {
21572
21583
  patchUserSettingsSnapshot(database, walletAddress, { userPreference: result });
@@ -21582,6 +21593,7 @@ function useSettings(options) {
21582
21593
  async (address, profile) => {
21583
21594
  try {
21584
21595
  if (!address) throw new Error("Wallet address is required");
21596
+ if (!storageCtx) throw new Error(DB_NOT_READY);
21585
21597
  const result = await updateProfileOp(storageCtx, address, profile);
21586
21598
  if (result && walletAddress && address === walletAddress) {
21587
21599
  patchUserSettingsSnapshot(database, walletAddress, { userPreference: result });
@@ -21597,6 +21609,7 @@ function useSettings(options) {
21597
21609
  async (address, personality) => {
21598
21610
  try {
21599
21611
  if (!address) throw new Error("Wallet address is required");
21612
+ if (!storageCtx) throw new Error(DB_NOT_READY);
21600
21613
  const result = await updatePersonalityOp(storageCtx, address, personality);
21601
21614
  if (result && walletAddress && address === walletAddress) {
21602
21615
  patchUserSettingsSnapshot(database, walletAddress, { userPreference: result });
@@ -21612,6 +21625,7 @@ function useSettings(options) {
21612
21625
  async (address, models) => {
21613
21626
  try {
21614
21627
  if (!address) throw new Error("Wallet address is required");
21628
+ if (!storageCtx) throw new Error(DB_NOT_READY);
21615
21629
  const result = await updateModelsOp(storageCtx, address, models);
21616
21630
  if (result && walletAddress && address === walletAddress) {
21617
21631
  patchUserSettingsSnapshot(database, walletAddress, { userPreference: result });
@@ -21627,6 +21641,7 @@ function useSettings(options) {
21627
21641
  async (address) => {
21628
21642
  try {
21629
21643
  if (!address) throw new Error("Wallet address is required");
21644
+ if (!storageCtx) throw new Error(DB_NOT_READY);
21630
21645
  const deleted = await deleteUserPreferenceOp(storageCtx, address);
21631
21646
  if (deleted && walletAddress && address === walletAddress) {
21632
21647
  patchUserSettingsSnapshot(database, walletAddress, { userPreference: null });
@@ -8855,7 +8855,14 @@ interface UpdateModelPreferenceOptions {
8855
8855
  * @inline
8856
8856
  */
8857
8857
  interface BaseUseSettingsOptions {
8858
- database: Database;
8858
+ /**
8859
+ * The WatermelonDB instance. May be `null` while the database is not yet
8860
+ * bound (e.g. during cold start / logged-out renders on mobile, where the
8861
+ * wrapper holds `null` until the wallet resolves). When `null`, the hook is
8862
+ * inert: `userPreference`/`modelPreference` are `null`, `isLoading` is
8863
+ * `false`, and mutation callbacks reject with a clear error.
8864
+ */
8865
+ database: Database | null;
8859
8866
  walletAddress?: string;
8860
8867
  }
8861
8868
  interface BaseUseSettingsResult {
@@ -8855,7 +8855,14 @@ interface UpdateModelPreferenceOptions {
8855
8855
  * @inline
8856
8856
  */
8857
8857
  interface BaseUseSettingsOptions {
8858
- database: Database;
8858
+ /**
8859
+ * The WatermelonDB instance. May be `null` while the database is not yet
8860
+ * bound (e.g. during cold start / logged-out renders on mobile, where the
8861
+ * wrapper holds `null` until the wallet resolves). When `null`, the hook is
8862
+ * inert: `userPreference`/`modelPreference` are `null`, `isLoading` is
8863
+ * `false`, and mutation callbacks reject with a clear error.
8864
+ */
8865
+ database: Database | null;
8859
8866
  walletAddress?: string;
8860
8867
  }
8861
8868
  interface BaseUseSettingsResult {
@@ -14142,7 +14142,7 @@ function startObserve(entry, walletAddress) {
14142
14142
  isInitialEmission = false;
14143
14143
  }
14144
14144
  function subscribeUserSettings(database, walletAddress, listener) {
14145
- if (!walletAddress) return () => void 0;
14145
+ if (!database || !walletAddress) return () => void 0;
14146
14146
  const perDb = getOrCreatePerDb(database);
14147
14147
  let entry = perDb.get(walletAddress);
14148
14148
  if (!entry) {
@@ -14172,17 +14172,18 @@ function subscribeUserSettings(database, walletAddress, listener) {
14172
14172
  };
14173
14173
  }
14174
14174
  function getUserSettingsSnapshot(database, walletAddress) {
14175
- if (!walletAddress) return EMPTY_SNAPSHOT;
14175
+ if (!database || !walletAddress) return EMPTY_SNAPSHOT;
14176
14176
  return pool.get(database)?.get(walletAddress)?.snapshot ?? EMPTY_SNAPSHOT;
14177
14177
  }
14178
14178
  function patchUserSettingsSnapshot(database, walletAddress, patch) {
14179
- if (!walletAddress) return;
14179
+ if (!database || !walletAddress) return;
14180
14180
  const entry = pool.get(database)?.get(walletAddress);
14181
14181
  if (!entry) return;
14182
14182
  patchSnapshot(entry, patch);
14183
14183
  }
14184
14184
 
14185
14185
  // src/react/useSettings.ts
14186
+ var DB_NOT_READY = "Database not ready";
14186
14187
  function useSettings(options) {
14187
14188
  const { database, walletAddress } = options;
14188
14189
  const subscribe = useCallback7(
@@ -14195,24 +14196,25 @@ function useSettings(options) {
14195
14196
  );
14196
14197
  const snapshot = useSyncExternalStore(subscribe, getSnapshot, getSnapshot);
14197
14198
  const storageCtx = useMemo7(
14198
- () => ({
14199
+ () => database ? {
14199
14200
  database,
14200
14201
  userPreferencesCollection: database.get("userPreferences"),
14201
14202
  modelPreferencesCollection: database.get("modelPreferences")
14202
- }),
14203
+ } : null,
14203
14204
  [database]
14204
14205
  );
14205
14206
  const legacyStorageCtx = useMemo7(
14206
- () => ({
14207
+ () => database ? {
14207
14208
  database,
14208
14209
  modelPreferencesCollection: database.get("modelPreferences")
14209
- }),
14210
+ } : null,
14210
14211
  [database]
14211
14212
  );
14212
14213
  const getModelPreference = useCallback7(
14213
14214
  async (address) => {
14214
14215
  try {
14215
14216
  if (!address) throw new Error("Wallet address is required");
14217
+ if (!legacyStorageCtx) throw new Error(DB_NOT_READY);
14216
14218
  const result = await getModelPreferenceOp(legacyStorageCtx, address);
14217
14219
  return result;
14218
14220
  } catch (error) {
@@ -14225,6 +14227,7 @@ function useSettings(options) {
14225
14227
  async (address, models) => {
14226
14228
  try {
14227
14229
  if (!address) throw new Error("Wallet address is required");
14230
+ if (!legacyStorageCtx) throw new Error(DB_NOT_READY);
14228
14231
  const result = await setModelPreferenceOp(legacyStorageCtx, address, models);
14229
14232
  if (walletAddress && address === walletAddress) {
14230
14233
  patchUserSettingsSnapshot(database, walletAddress, { modelPreference: result });
@@ -14240,6 +14243,7 @@ function useSettings(options) {
14240
14243
  async (address) => {
14241
14244
  try {
14242
14245
  if (!address) throw new Error("Wallet address is required");
14246
+ if (!legacyStorageCtx) throw new Error(DB_NOT_READY);
14243
14247
  const deleted = await deleteModelPreferenceOp(legacyStorageCtx, address);
14244
14248
  if (deleted && walletAddress && address === walletAddress) {
14245
14249
  patchUserSettingsSnapshot(database, walletAddress, { modelPreference: null });
@@ -14255,6 +14259,7 @@ function useSettings(options) {
14255
14259
  async (address) => {
14256
14260
  try {
14257
14261
  if (!address) throw new Error("Wallet address is required");
14262
+ if (!storageCtx) throw new Error(DB_NOT_READY);
14258
14263
  const result = await getUserPreferenceOp(storageCtx, address);
14259
14264
  return result;
14260
14265
  } catch (error) {
@@ -14267,6 +14272,7 @@ function useSettings(options) {
14267
14272
  async (address, opts) => {
14268
14273
  try {
14269
14274
  if (!address) throw new Error("Wallet address is required");
14275
+ if (!storageCtx) throw new Error(DB_NOT_READY);
14270
14276
  const result = await setUserPreferenceOp(storageCtx, address, opts);
14271
14277
  if (walletAddress && address === walletAddress) {
14272
14278
  patchUserSettingsSnapshot(database, walletAddress, { userPreference: result });
@@ -14282,6 +14288,7 @@ function useSettings(options) {
14282
14288
  async (address, profile) => {
14283
14289
  try {
14284
14290
  if (!address) throw new Error("Wallet address is required");
14291
+ if (!storageCtx) throw new Error(DB_NOT_READY);
14285
14292
  const result = await updateProfileOp(storageCtx, address, profile);
14286
14293
  if (result && walletAddress && address === walletAddress) {
14287
14294
  patchUserSettingsSnapshot(database, walletAddress, { userPreference: result });
@@ -14297,6 +14304,7 @@ function useSettings(options) {
14297
14304
  async (address, personality) => {
14298
14305
  try {
14299
14306
  if (!address) throw new Error("Wallet address is required");
14307
+ if (!storageCtx) throw new Error(DB_NOT_READY);
14300
14308
  const result = await updatePersonalityOp(storageCtx, address, personality);
14301
14309
  if (result && walletAddress && address === walletAddress) {
14302
14310
  patchUserSettingsSnapshot(database, walletAddress, { userPreference: result });
@@ -14312,6 +14320,7 @@ function useSettings(options) {
14312
14320
  async (address, models) => {
14313
14321
  try {
14314
14322
  if (!address) throw new Error("Wallet address is required");
14323
+ if (!storageCtx) throw new Error(DB_NOT_READY);
14315
14324
  const result = await updateModelsOp(storageCtx, address, models);
14316
14325
  if (result && walletAddress && address === walletAddress) {
14317
14326
  patchUserSettingsSnapshot(database, walletAddress, { userPreference: result });
@@ -14327,6 +14336,7 @@ function useSettings(options) {
14327
14336
  async (address) => {
14328
14337
  try {
14329
14338
  if (!address) throw new Error("Wallet address is required");
14339
+ if (!storageCtx) throw new Error(DB_NOT_READY);
14330
14340
  const deleted = await deleteUserPreferenceOp(storageCtx, address);
14331
14341
  if (deleted && walletAddress && address === walletAddress) {
14332
14342
  patchUserSettingsSnapshot(database, walletAddress, { userPreference: null });
@@ -5,7 +5,11 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __getProtoOf = Object.getPrototypeOf;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
7
  var __commonJS = (cb, mod) => function __require() {
8
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
8
+ try {
9
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
10
+ } catch (e) {
11
+ throw mod = 0, e;
12
+ }
9
13
  };
10
14
  var __copyProps = (to, from, except, desc) => {
11
15
  if (from && typeof from === "object" || typeof from === "function") {
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  callPortalJsonCompletion,
3
3
  getLogger
4
- } from "./chunk-RCCKRTBI.mjs";
4
+ } from "./chunk-AHJT66EO.mjs";
5
5
  import {
6
6
  BASE_URL,
7
7
  __commonJS,
8
8
  __toESM,
9
9
  createClientConfig
10
- } from "./chunk-FMGZTVXQ.mjs";
10
+ } from "./chunk-3RPGXXPZ.mjs";
11
11
 
12
12
  // node_modules/.pnpm/@babel+runtime@7.26.0/node_modules/@babel/runtime/helpers/interopRequireDefault.js
13
13
  var require_interopRequireDefault = __commonJS({
@@ -18848,7 +18848,7 @@ function createMemoryVaultSearchTool(vaultCtx, embeddingOptions, cache, searchOp
18848
18848
  legacy.map((r) => ({ id: r.uniqueId, content: r.content, score: r.similarity }))
18849
18849
  );
18850
18850
  }
18851
- const { recall: recall2 } = await import("./recall-JJ3E74XY.mjs");
18851
+ const { recall: recall2 } = await import("./recall-RMBNCEG6.mjs");
18852
18852
  const result = await recall2(
18853
18853
  query,
18854
18854
  { vaultCtx, embeddingOptions, vaultCache: cache },
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  BASE_URL
3
- } from "./chunk-FMGZTVXQ.mjs";
3
+ } from "./chunk-3RPGXXPZ.mjs";
4
4
 
5
5
  // src/lib/logger.ts
6
6
  var consoleLogger = {
@@ -3,7 +3,7 @@ import {
3
3
  MCP_R2_DOMAIN,
4
4
  createClientConfig,
5
5
  resolveBaseUrl
6
- } from "./chunk-FMGZTVXQ.mjs";
6
+ } from "./chunk-3RPGXXPZ.mjs";
7
7
  export {
8
8
  BASE_URL,
9
9
  MCP_R2_DOMAIN,
@@ -4,8 +4,8 @@ import {
4
4
  import {
5
5
  callPortalJsonCompletion,
6
6
  getLogger
7
- } from "./chunk-RCCKRTBI.mjs";
8
- import "./chunk-FMGZTVXQ.mjs";
7
+ } from "./chunk-AHJT66EO.mjs";
8
+ import "./chunk-3RPGXXPZ.mjs";
9
9
 
10
10
  // src/lib/memory/consolidate.ts
11
11
  var DEFAULT_MODEL = "inclusionai/ling-2.6-flash";
@@ -5,11 +5,20 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __getProtoOf = Object.getPrototypeOf;
7
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __esm = (fn, res) => function __init() {
9
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
8
+ var __esm = (fn, res, err) => function __init() {
9
+ if (err) throw err[0];
10
+ try {
11
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
12
+ } catch (e) {
13
+ throw err = [e], e;
14
+ }
10
15
  };
11
16
  var __commonJS = (cb, mod) => function __require() {
12
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
17
+ try {
18
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
19
+ } catch (e) {
20
+ throw mod = 0, e;
21
+ }
13
22
  };
14
23
  var __export = (target, all) => {
15
24
  for (var name in all)
@@ -95,7 +95,7 @@ import {
95
95
  updateVaultMemoryEmbeddingOp,
96
96
  updateVaultMemoryOp,
97
97
  upsertMessageOp
98
- } from "./chunk-P7KA2HAM.mjs";
98
+ } from "./chunk-45GOZ3AB.mjs";
99
99
  import {
100
100
  createStreamingDeAnonymizer,
101
101
  resolvePiiRedactor
@@ -106,13 +106,13 @@ import {
106
106
  getLogger,
107
107
  resolvePortalAuthHeaders,
108
108
  supportsResponseFormat
109
- } from "./chunk-RCCKRTBI.mjs";
109
+ } from "./chunk-AHJT66EO.mjs";
110
110
  import {
111
111
  BASE_URL,
112
112
  __commonJS,
113
113
  __decorateClass,
114
114
  __toESM
115
- } from "./chunk-FMGZTVXQ.mjs";
115
+ } from "./chunk-3RPGXXPZ.mjs";
116
116
 
117
117
  // node_modules/.pnpm/@nozbe+watermelondb@0.28.0/node_modules/@nozbe/watermelondb/utils/fp/sortBy/index.js
118
118
  var require_sortBy = __commonJS({
@@ -4757,7 +4757,7 @@ async function tryConsolidate(trimmed, ctx, options) {
4757
4757
  content: m.content,
4758
4758
  similarity: m.similarity
4759
4759
  }));
4760
- const { consolidateMemory: doConsolidate } = await import("./consolidate-A2ZIX5WF.mjs");
4760
+ const { consolidateMemory: doConsolidate } = await import("./consolidate-TDT4HRHG.mjs");
4761
4761
  const decision = await doConsolidate(trimmed, candidates, consolidateOptions);
4762
4762
  if (decision.action === "create") return null;
4763
4763
  if (decision.action === "noop" && decision.targetId) {
@@ -5766,7 +5766,7 @@ async function getServerTools(options) {
5766
5766
  return cached.tools;
5767
5767
  }
5768
5768
  try {
5769
- const { BASE_URL: BASE_URL2 } = await import("./clientConfig-GMADOBPK.mjs");
5769
+ const { BASE_URL: BASE_URL2 } = await import("./clientConfig-VIMT6Q32.mjs");
5770
5770
  const effectiveBaseUrl = baseUrl ?? BASE_URL2;
5771
5771
  if (apiKey) {
5772
5772
  const response = await fetch(`${effectiveBaseUrl}/api/v1/tools`, {
@@ -0,0 +1,8 @@
1
+ import {
2
+ recall
3
+ } from "./chunk-45GOZ3AB.mjs";
4
+ import "./chunk-AHJT66EO.mjs";
5
+ import "./chunk-3RPGXXPZ.mjs";
6
+ export {
7
+ recall
8
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anuma/sdk",
3
- "version": "2.0.0",
3
+ "version": "2.1.0",
4
4
  "description": "",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",
@@ -200,6 +200,7 @@
200
200
  "typescript": "^5.9.3",
201
201
  "typescript-eslint": "^8.56.0",
202
202
  "unist-util-visit": "^5.0.0",
203
+ "vite": ">=7.3.5 <8.0.0",
203
204
  "vitest": "^4.1.8"
204
205
  },
205
206
  "peerDependencies": {
@@ -235,22 +236,30 @@
235
236
  "overrides": {
236
237
  "react": ">=19.0.1 <19.1.0 || >=19.1.2 <19.2.0 || >=19.2.1",
237
238
  "react-dom": ">=19.0.1 <19.1.0 || >=19.1.2 <19.2.0 || >=19.2.1",
238
- "tar": ">=7.5.11",
239
+ "tar": ">=7.5.16",
239
240
  "picomatch": ">=2.3.2 <3.0.0 || >=4.0.4",
240
241
  "@xmldom/xmldom": ">=0.8.13 <0.9.0",
241
242
  "protobufjs": ">=7.6.1 <8.0.0",
242
243
  "tmp": ">=0.2.7",
243
244
  "ws@6": ">=6.2.4 <7.0.0",
244
245
  "ws@7": ">=7.5.11 <8.0.0",
246
+ "ws@8": ">=8.21.0 <9.0.0",
245
247
  "shell-quote": ">=1.8.4",
246
248
  "axios": ">=1.16.0 <2.0.0",
247
249
  "hono": ">=4.12.21 <5.0.0",
248
250
  "js-cookie": ">=3.0.7 <4.0.0",
249
251
  "postcss": ">=8.5.10 <9.0.0",
250
- "dompurify": ">=3.4.0 <4.0.0",
252
+ "dompurify": ">=3.4.11 <4.0.0",
251
253
  "lodash": ">=4.18.0 <5.0.0",
252
254
  "minimatch@10": ">=10.2.3 <11.0.0",
253
- "uuid@<11.1.1": ">=11.1.1 <12.0.0"
255
+ "uuid@<11.1.1": ">=11.1.1 <12.0.0",
256
+ "form-data@>=4 <4.0.6": ">=4.0.6",
257
+ "undici@>=7 <7.28.0": ">=7.28.0 <8.0.0",
258
+ "vite@>=7 <7.3.5": ">=7.3.5",
259
+ "esbuild@>=0.27.3 <0.28.1": ">=0.28.1",
260
+ "js-yaml@>=4 <4.2.0": ">=4.2.0 <5.0.0",
261
+ "js-yaml@>=3 <3.15.0": ">=3.15.0 <4.0.0",
262
+ "markdown-it@<14.2.0": ">=14.2.0"
254
263
  },
255
264
  "patchedDependencies": {
256
265
  "tesseract.js@6.0.1": "patches/tesseract.js@6.0.1.patch",
@@ -1,8 +0,0 @@
1
- import {
2
- recall
3
- } from "./chunk-P7KA2HAM.mjs";
4
- import "./chunk-RCCKRTBI.mjs";
5
- import "./chunk-FMGZTVXQ.mjs";
6
- export {
7
- recall
8
- };