@anuma/sdk 2.0.0 → 2.0.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.
@@ -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)
@@ -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.0.1",
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
- };