@chrryai/chrry 1.6.95 → 1.6.97
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.
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +9 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -834,7 +834,7 @@ declare const GUEST_TASKS_COUNT = 4;
|
|
|
834
834
|
declare const MEMBER_TASKS_COUNT = 8;
|
|
835
835
|
declare const PLUS_TASKS_COUNT = 30;
|
|
836
836
|
|
|
837
|
-
declare const CHRRY_URL:
|
|
837
|
+
declare const CHRRY_URL: any;
|
|
838
838
|
declare const FREE_DAYS = 5;
|
|
839
839
|
declare const PLUS_PRICE = 9.99;
|
|
840
840
|
declare const PRO_PRICE = 19.99;
|
|
@@ -846,8 +846,8 @@ declare const MAX_TOOL_CALLS_PER_MESSAGE = 7;
|
|
|
846
846
|
declare const WS_URL: any;
|
|
847
847
|
declare const WS_SERVER_URL: any;
|
|
848
848
|
declare const addParam: (key: string, value: string) => void;
|
|
849
|
-
declare const FRONTEND_URL:
|
|
850
|
-
declare const PROD_FRONTEND_URL:
|
|
849
|
+
declare const FRONTEND_URL: any;
|
|
850
|
+
declare const PROD_FRONTEND_URL: any;
|
|
851
851
|
declare const isE2E: boolean;
|
|
852
852
|
declare const API_INTERNAL_URL: any;
|
|
853
853
|
declare const API_URL: any;
|
package/dist/index.d.ts
CHANGED
|
@@ -834,7 +834,7 @@ declare const GUEST_TASKS_COUNT = 4;
|
|
|
834
834
|
declare const MEMBER_TASKS_COUNT = 8;
|
|
835
835
|
declare const PLUS_TASKS_COUNT = 30;
|
|
836
836
|
|
|
837
|
-
declare const CHRRY_URL:
|
|
837
|
+
declare const CHRRY_URL: any;
|
|
838
838
|
declare const FREE_DAYS = 5;
|
|
839
839
|
declare const PLUS_PRICE = 9.99;
|
|
840
840
|
declare const PRO_PRICE = 19.99;
|
|
@@ -846,8 +846,8 @@ declare const MAX_TOOL_CALLS_PER_MESSAGE = 7;
|
|
|
846
846
|
declare const WS_URL: any;
|
|
847
847
|
declare const WS_SERVER_URL: any;
|
|
848
848
|
declare const addParam: (key: string, value: string) => void;
|
|
849
|
-
declare const FRONTEND_URL:
|
|
850
|
-
declare const PROD_FRONTEND_URL:
|
|
849
|
+
declare const FRONTEND_URL: any;
|
|
850
|
+
declare const PROD_FRONTEND_URL: any;
|
|
851
851
|
declare const isE2E: boolean;
|
|
852
852
|
declare const API_INTERNAL_URL: any;
|
|
853
853
|
declare const API_URL: any;
|
package/dist/index.js
CHANGED
|
@@ -46,7 +46,7 @@ var init_env = __esm({
|
|
|
46
46
|
}
|
|
47
47
|
return process.env;
|
|
48
48
|
};
|
|
49
|
-
isCI = getEnv().
|
|
49
|
+
isCI = getEnv().VITE_CI === "true" || getEnv().CI === "true";
|
|
50
50
|
checkIsExtension = () => {
|
|
51
51
|
if (typeof chrome !== "undefined" && chrome.runtime?.id) {
|
|
52
52
|
return true;
|
|
@@ -66,7 +66,7 @@ var init_env = __esm({
|
|
|
66
66
|
}
|
|
67
67
|
return `${window.location.origin}/index.html`;
|
|
68
68
|
};
|
|
69
|
-
isProduction = getEnv().NODE_ENV === "production" || getEnv().
|
|
69
|
+
isProduction = getEnv().NODE_ENV === "production" || getEnv().VITE_NODE_ENV === "production";
|
|
70
70
|
isDevelopment = checkIsExtension() ? ["bikahnjnakdnnccpnmcpmiojnehfooio"].some(
|
|
71
71
|
(id) => getExtensionUrl()?.includes(id)
|
|
72
72
|
) : !isProduction;
|
|
@@ -529,7 +529,8 @@ var init_locales = __esm({
|
|
|
529
529
|
|
|
530
530
|
// utils/siteConfig.ts
|
|
531
531
|
function detectSiteModeDomain(hostname2, mode) {
|
|
532
|
-
const defaultMode =
|
|
532
|
+
const defaultMode = import_meta2.env?.VITE_SITE_MODE || mode || "vex";
|
|
533
|
+
console.log(`\u{1F680} ~ defaultMode:`, defaultMode);
|
|
533
534
|
const rawHost = hostname2 || (typeof window !== "undefined" ? window?.location?.hostname : "") || "";
|
|
534
535
|
let host = rawHost?.trim().toLowerCase();
|
|
535
536
|
if (host?.includes("://")) {
|
|
@@ -605,6 +606,7 @@ function detectSiteMode(hostname2) {
|
|
|
605
606
|
return detectSiteModeDomain(hostname2);
|
|
606
607
|
}
|
|
607
608
|
function getSiteConfig(hostnameOrMode) {
|
|
609
|
+
console.log(`\u{1F680} ~ getSiteConfig ~ hostnameOrMode:`, hostnameOrMode);
|
|
608
610
|
let hostname2 = hostnameOrMode;
|
|
609
611
|
if (hostnameOrMode && hostnameOrMode.includes("://")) {
|
|
610
612
|
try {
|
|
@@ -2940,7 +2942,7 @@ var init_utils = __esm({
|
|
|
2940
2942
|
return void 0;
|
|
2941
2943
|
};
|
|
2942
2944
|
hostname = getClientHostname();
|
|
2943
|
-
CHRRY_URL = hostname ? getSiteConfig(hostname).url : "https://vex.chrry.ai";
|
|
2945
|
+
CHRRY_URL = getEnv().VITE_CHRRY_URL || (hostname ? getSiteConfig(hostname).url : "https://vex.chrry.ai");
|
|
2944
2946
|
FREE_DAYS = 5;
|
|
2945
2947
|
PLUS_PRICE = 9.99;
|
|
2946
2948
|
PRO_PRICE = 19.99;
|
|
@@ -3142,7 +3144,7 @@ var init_utils = __esm({
|
|
|
3142
3144
|
};
|
|
3143
3145
|
isFirefox = typeof navigator !== "undefined" && navigator?.userAgent?.includes("Firefox");
|
|
3144
3146
|
config = getSiteConfig(getClientHostname());
|
|
3145
|
-
VERSION = config.version || "1.6.
|
|
3147
|
+
VERSION = config.version || "1.6.97";
|
|
3146
3148
|
getSlugFromPathname = (path) => {
|
|
3147
3149
|
return getAppAndStoreSlugs(path, {
|
|
3148
3150
|
defaultAppSlug: config.slug,
|
|
@@ -24691,7 +24693,7 @@ function DataProvider({ children, ...rest }) {
|
|
|
24691
24693
|
const [instructions, setInstructions] = (0, import_react21.useState)([]);
|
|
24692
24694
|
const [affiliateStats, setAffiliateStats] = (0, import_react21.useState)(null);
|
|
24693
24695
|
const [loadingAffiliateStats, setLoadingAffiliateStats] = (0, import_react21.useState)(false);
|
|
24694
|
-
const VERSION4 = "1.6.
|
|
24696
|
+
const VERSION4 = "1.6.97";
|
|
24695
24697
|
const [weather, setWeather] = useLocalStorage2("weather", user?.weather || guest?.weather || void 0);
|
|
24696
24698
|
const {
|
|
24697
24699
|
API_URL: API_URL2,
|
|
@@ -31793,7 +31795,7 @@ function EnableNotifications({
|
|
|
31793
31795
|
return;
|
|
31794
31796
|
}
|
|
31795
31797
|
if (swRegistration && !pushSubscription) {
|
|
31796
|
-
const publicVapidKey = getEnv().
|
|
31798
|
+
const publicVapidKey = getEnv().VITE_VAPID_PUBLIC_KEY;
|
|
31797
31799
|
const subscription = await subscribeToPushNotifications(
|
|
31798
31800
|
swRegistration,
|
|
31799
31801
|
publicVapidKey
|