@anuma/sdk 3.0.0 → 3.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.
@@ -0,0 +1,25 @@
1
+ // src/clientConfig.ts
2
+ var DEFAULT_BASE_URL = "https://portal.anuma-dev.ai";
3
+ function readGlobal(key) {
4
+ if (typeof globalThis === "undefined") return void 0;
5
+ const value = globalThis[key];
6
+ return typeof value === "string" && value.length > 0 ? value : void 0;
7
+ }
8
+ function resolveBaseUrl() {
9
+ const fromProcess = typeof process !== "undefined" ? process.env.API_URL || process.env.NEXT_PUBLIC_API_URL || process.env.EXPO_PUBLIC_API_URL : void 0;
10
+ const fromGlobal = readGlobal("API_URL") ?? readGlobal("NEXT_PUBLIC_API_URL") ?? readGlobal("EXPO_PUBLIC_API_URL");
11
+ return (fromProcess || fromGlobal || DEFAULT_BASE_URL).replace(/\/+$/, "");
12
+ }
13
+ var BASE_URL = resolveBaseUrl();
14
+ var MCP_R2_DOMAIN = "4cf0e0ea50b97e72386fcf2f92a2d4e8.r2.cloudflarestorage.com";
15
+ var createClientConfig = (config) => ({
16
+ ...config,
17
+ baseUrl: BASE_URL
18
+ });
19
+
20
+ export {
21
+ resolveBaseUrl,
22
+ BASE_URL,
23
+ MCP_R2_DOMAIN,
24
+ createClientConfig
25
+ };
@@ -0,0 +1,12 @@
1
+ import {
2
+ BASE_URL,
3
+ MCP_R2_DOMAIN,
4
+ createClientConfig,
5
+ resolveBaseUrl
6
+ } from "./chunk-4ETHWSXJ.mjs";
7
+ export {
8
+ BASE_URL,
9
+ MCP_R2_DOMAIN,
10
+ createClientConfig,
11
+ resolveBaseUrl
12
+ };