@retrivora-ai/rag-engine 2.5.1 → 2.5.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.
@@ -318,7 +318,7 @@ var init_package = __esm({
318
318
  "package.json"() {
319
319
  package_default = {
320
320
  name: "@retrivora-ai/rag-engine",
321
- version: "2.5.1",
321
+ version: "2.5.2",
322
322
  description: "Retrivora AI is a plug-and-play AI engine for RAG chat experiences \u2014 generic vector DB + LLM provider, embeddable or standalone.",
323
323
  author: "Abhinav Alkuchi",
324
324
  license: "UNLICENSED",
@@ -2811,18 +2811,34 @@ var _LicenseVerifier = class _LicenseVerifier {
2811
2811
  baseUrl = process.env.TELEMETRY_URL.replace(/\/api\/telemetry\/?$/, "");
2812
2812
  }
2813
2813
  const endpoint = `${baseUrl}/api/v1/license/validate`;
2814
- const response = await fetch(endpoint, {
2815
- method: "POST",
2816
- headers: {
2817
- "Content-Type": "application/json",
2818
- "x-license-key": licenseKey
2819
- },
2820
- body: JSON.stringify({
2821
- licenseKey,
2822
- projectId: currentProjectId,
2823
- provider
2824
- })
2825
- });
2814
+ let response;
2815
+ try {
2816
+ response = await fetch(endpoint, {
2817
+ method: "POST",
2818
+ headers: {
2819
+ "Content-Type": "application/json",
2820
+ "x-license-key": licenseKey
2821
+ },
2822
+ body: JSON.stringify({
2823
+ licenseKey,
2824
+ projectId: currentProjectId,
2825
+ provider
2826
+ })
2827
+ });
2828
+ } catch (fetchErr) {
2829
+ if (!isProduction) {
2830
+ console.warn(
2831
+ `[Retrivora SDK] WARNING: License validation via API failed due to network error (${fetchErr.message}). Falling back to local development license.`
2832
+ );
2833
+ return {
2834
+ projectId: currentProjectId,
2835
+ expiresAt: Math.floor(Date.now() / 1e3) + 86400 * 365 * 10,
2836
+ // 10 years
2837
+ tier: "hobby"
2838
+ };
2839
+ }
2840
+ throw fetchErr;
2841
+ }
2826
2842
  if (!response.ok) {
2827
2843
  let errMessage = `HTTP ${response.status}`;
2828
2844
  try {
@@ -312,7 +312,7 @@ var init_package = __esm({
312
312
  "package.json"() {
313
313
  package_default = {
314
314
  name: "@retrivora-ai/rag-engine",
315
- version: "2.5.1",
315
+ version: "2.5.2",
316
316
  description: "Retrivora AI is a plug-and-play AI engine for RAG chat experiences \u2014 generic vector DB + LLM provider, embeddable or standalone.",
317
317
  author: "Abhinav Alkuchi",
318
318
  license: "UNLICENSED",
@@ -2784,18 +2784,34 @@ var _LicenseVerifier = class _LicenseVerifier {
2784
2784
  baseUrl = process.env.TELEMETRY_URL.replace(/\/api\/telemetry\/?$/, "");
2785
2785
  }
2786
2786
  const endpoint = `${baseUrl}/api/v1/license/validate`;
2787
- const response = await fetch(endpoint, {
2788
- method: "POST",
2789
- headers: {
2790
- "Content-Type": "application/json",
2791
- "x-license-key": licenseKey
2792
- },
2793
- body: JSON.stringify({
2794
- licenseKey,
2795
- projectId: currentProjectId,
2796
- provider
2797
- })
2798
- });
2787
+ let response;
2788
+ try {
2789
+ response = await fetch(endpoint, {
2790
+ method: "POST",
2791
+ headers: {
2792
+ "Content-Type": "application/json",
2793
+ "x-license-key": licenseKey
2794
+ },
2795
+ body: JSON.stringify({
2796
+ licenseKey,
2797
+ projectId: currentProjectId,
2798
+ provider
2799
+ })
2800
+ });
2801
+ } catch (fetchErr) {
2802
+ if (!isProduction) {
2803
+ console.warn(
2804
+ `[Retrivora SDK] WARNING: License validation via API failed due to network error (${fetchErr.message}). Falling back to local development license.`
2805
+ );
2806
+ return {
2807
+ projectId: currentProjectId,
2808
+ expiresAt: Math.floor(Date.now() / 1e3) + 86400 * 365 * 10,
2809
+ // 10 years
2810
+ tier: "hobby"
2811
+ };
2812
+ }
2813
+ throw fetchErr;
2814
+ }
2799
2815
  if (!response.ok) {
2800
2816
  let errMessage = `HTTP ${response.status}`;
2801
2817
  try {
package/dist/index.js CHANGED
@@ -356,7 +356,7 @@ function projectSettingsToUiConfig(settings) {
356
356
  // package.json
357
357
  var package_default = {
358
358
  name: "@retrivora-ai/rag-engine",
359
- version: "2.5.1",
359
+ version: "2.5.2",
360
360
  description: "Retrivora AI is a plug-and-play AI engine for RAG chat experiences \u2014 generic vector DB + LLM provider, embeddable or standalone.",
361
361
  author: "Abhinav Alkuchi",
362
362
  license: "UNLICENSED",
@@ -3995,18 +3995,34 @@ var _LicenseVerifier = class _LicenseVerifier {
3995
3995
  baseUrl = process.env.TELEMETRY_URL.replace(/\/api\/telemetry\/?$/, "");
3996
3996
  }
3997
3997
  const endpoint = `${baseUrl}/api/v1/license/validate`;
3998
- const response = await fetch(endpoint, {
3999
- method: "POST",
4000
- headers: {
4001
- "Content-Type": "application/json",
4002
- "x-license-key": licenseKey
4003
- },
4004
- body: JSON.stringify({
4005
- licenseKey,
4006
- projectId: currentProjectId,
4007
- provider
4008
- })
4009
- });
3998
+ let response;
3999
+ try {
4000
+ response = await fetch(endpoint, {
4001
+ method: "POST",
4002
+ headers: {
4003
+ "Content-Type": "application/json",
4004
+ "x-license-key": licenseKey
4005
+ },
4006
+ body: JSON.stringify({
4007
+ licenseKey,
4008
+ projectId: currentProjectId,
4009
+ provider
4010
+ })
4011
+ });
4012
+ } catch (fetchErr) {
4013
+ if (!isProduction) {
4014
+ console.warn(
4015
+ `[Retrivora SDK] WARNING: License validation via API failed due to network error (${fetchErr.message}). Falling back to local development license.`
4016
+ );
4017
+ return {
4018
+ projectId: currentProjectId,
4019
+ expiresAt: Math.floor(Date.now() / 1e3) + 86400 * 365 * 10,
4020
+ // 10 years
4021
+ tier: "hobby"
4022
+ };
4023
+ }
4024
+ throw fetchErr;
4025
+ }
4010
4026
  if (!response.ok) {
4011
4027
  let errMessage = `HTTP ${response.status}`;
4012
4028
  try {
package/dist/index.mjs CHANGED
@@ -312,7 +312,7 @@ function projectSettingsToUiConfig(settings) {
312
312
  // package.json
313
313
  var package_default = {
314
314
  name: "@retrivora-ai/rag-engine",
315
- version: "2.5.1",
315
+ version: "2.5.2",
316
316
  description: "Retrivora AI is a plug-and-play AI engine for RAG chat experiences \u2014 generic vector DB + LLM provider, embeddable or standalone.",
317
317
  author: "Abhinav Alkuchi",
318
318
  license: "UNLICENSED",
@@ -3997,18 +3997,34 @@ var _LicenseVerifier = class _LicenseVerifier {
3997
3997
  baseUrl = process.env.TELEMETRY_URL.replace(/\/api\/telemetry\/?$/, "");
3998
3998
  }
3999
3999
  const endpoint = `${baseUrl}/api/v1/license/validate`;
4000
- const response = await fetch(endpoint, {
4001
- method: "POST",
4002
- headers: {
4003
- "Content-Type": "application/json",
4004
- "x-license-key": licenseKey
4005
- },
4006
- body: JSON.stringify({
4007
- licenseKey,
4008
- projectId: currentProjectId,
4009
- provider
4010
- })
4011
- });
4000
+ let response;
4001
+ try {
4002
+ response = await fetch(endpoint, {
4003
+ method: "POST",
4004
+ headers: {
4005
+ "Content-Type": "application/json",
4006
+ "x-license-key": licenseKey
4007
+ },
4008
+ body: JSON.stringify({
4009
+ licenseKey,
4010
+ projectId: currentProjectId,
4011
+ provider
4012
+ })
4013
+ });
4014
+ } catch (fetchErr) {
4015
+ if (!isProduction) {
4016
+ console.warn(
4017
+ `[Retrivora SDK] WARNING: License validation via API failed due to network error (${fetchErr.message}). Falling back to local development license.`
4018
+ );
4019
+ return {
4020
+ projectId: currentProjectId,
4021
+ expiresAt: Math.floor(Date.now() / 1e3) + 86400 * 365 * 10,
4022
+ // 10 years
4023
+ tier: "hobby"
4024
+ };
4025
+ }
4026
+ throw fetchErr;
4027
+ }
4012
4028
  if (!response.ok) {
4013
4029
  let errMessage = `HTTP ${response.status}`;
4014
4030
  try {
package/dist/server.js CHANGED
@@ -332,7 +332,7 @@ var init_package = __esm({
332
332
  "package.json"() {
333
333
  package_default = {
334
334
  name: "@retrivora-ai/rag-engine",
335
- version: "2.5.1",
335
+ version: "2.5.2",
336
336
  description: "Retrivora AI is a plug-and-play AI engine for RAG chat experiences \u2014 generic vector DB + LLM provider, embeddable or standalone.",
337
337
  author: "Abhinav Alkuchi",
338
338
  license: "UNLICENSED",
@@ -2910,18 +2910,34 @@ var _LicenseVerifier = class _LicenseVerifier {
2910
2910
  baseUrl = process.env.TELEMETRY_URL.replace(/\/api\/telemetry\/?$/, "");
2911
2911
  }
2912
2912
  const endpoint = `${baseUrl}/api/v1/license/validate`;
2913
- const response = await fetch(endpoint, {
2914
- method: "POST",
2915
- headers: {
2916
- "Content-Type": "application/json",
2917
- "x-license-key": licenseKey
2918
- },
2919
- body: JSON.stringify({
2920
- licenseKey,
2921
- projectId: currentProjectId,
2922
- provider
2923
- })
2924
- });
2913
+ let response;
2914
+ try {
2915
+ response = await fetch(endpoint, {
2916
+ method: "POST",
2917
+ headers: {
2918
+ "Content-Type": "application/json",
2919
+ "x-license-key": licenseKey
2920
+ },
2921
+ body: JSON.stringify({
2922
+ licenseKey,
2923
+ projectId: currentProjectId,
2924
+ provider
2925
+ })
2926
+ });
2927
+ } catch (fetchErr) {
2928
+ if (!isProduction) {
2929
+ console.warn(
2930
+ `[Retrivora SDK] WARNING: License validation via API failed due to network error (${fetchErr.message}). Falling back to local development license.`
2931
+ );
2932
+ return {
2933
+ projectId: currentProjectId,
2934
+ expiresAt: Math.floor(Date.now() / 1e3) + 86400 * 365 * 10,
2935
+ // 10 years
2936
+ tier: "hobby"
2937
+ };
2938
+ }
2939
+ throw fetchErr;
2940
+ }
2925
2941
  if (!response.ok) {
2926
2942
  let errMessage = `HTTP ${response.status}`;
2927
2943
  try {
package/dist/server.mjs CHANGED
@@ -326,7 +326,7 @@ var init_package = __esm({
326
326
  "package.json"() {
327
327
  package_default = {
328
328
  name: "@retrivora-ai/rag-engine",
329
- version: "2.5.1",
329
+ version: "2.5.2",
330
330
  description: "Retrivora AI is a plug-and-play AI engine for RAG chat experiences \u2014 generic vector DB + LLM provider, embeddable or standalone.",
331
331
  author: "Abhinav Alkuchi",
332
332
  license: "UNLICENSED",
@@ -2805,18 +2805,34 @@ var _LicenseVerifier = class _LicenseVerifier {
2805
2805
  baseUrl = process.env.TELEMETRY_URL.replace(/\/api\/telemetry\/?$/, "");
2806
2806
  }
2807
2807
  const endpoint = `${baseUrl}/api/v1/license/validate`;
2808
- const response = await fetch(endpoint, {
2809
- method: "POST",
2810
- headers: {
2811
- "Content-Type": "application/json",
2812
- "x-license-key": licenseKey
2813
- },
2814
- body: JSON.stringify({
2815
- licenseKey,
2816
- projectId: currentProjectId,
2817
- provider
2818
- })
2819
- });
2808
+ let response;
2809
+ try {
2810
+ response = await fetch(endpoint, {
2811
+ method: "POST",
2812
+ headers: {
2813
+ "Content-Type": "application/json",
2814
+ "x-license-key": licenseKey
2815
+ },
2816
+ body: JSON.stringify({
2817
+ licenseKey,
2818
+ projectId: currentProjectId,
2819
+ provider
2820
+ })
2821
+ });
2822
+ } catch (fetchErr) {
2823
+ if (!isProduction) {
2824
+ console.warn(
2825
+ `[Retrivora SDK] WARNING: License validation via API failed due to network error (${fetchErr.message}). Falling back to local development license.`
2826
+ );
2827
+ return {
2828
+ projectId: currentProjectId,
2829
+ expiresAt: Math.floor(Date.now() / 1e3) + 86400 * 365 * 10,
2830
+ // 10 years
2831
+ tier: "hobby"
2832
+ };
2833
+ }
2834
+ throw fetchErr;
2835
+ }
2820
2836
  if (!response.ok) {
2821
2837
  let errMessage = `HTTP ${response.status}`;
2822
2838
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@retrivora-ai/rag-engine",
3
- "version": "2.5.1",
3
+ "version": "2.5.2",
4
4
  "description": "Retrivora AI is a plug-and-play AI engine for RAG chat experiences — generic vector DB + LLM provider, embeddable or standalone.",
5
5
  "author": "Abhinav Alkuchi",
6
6
  "license": "UNLICENSED",