@chrryai/chrry 1.5.86 → 1.5.91
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 +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -795,6 +795,7 @@ declare const WS_SERVER_URL: string;
|
|
|
795
795
|
declare const addParam: (key: string, value: string) => void;
|
|
796
796
|
declare const FRONTEND_URL: string;
|
|
797
797
|
declare const PROD_FRONTEND_URL: string;
|
|
798
|
+
declare const isE2E: boolean;
|
|
798
799
|
declare const API_URL: string;
|
|
799
800
|
declare const apiFetch: (url: string, options?: RequestInit) => Promise<Response>;
|
|
800
801
|
declare const PROMPT_LIMITS: {
|
|
@@ -807,7 +808,6 @@ declare const PROMPT_LIMITS: {
|
|
|
807
808
|
declare const expenseCategory: readonly ["food", "transport", "entertainment", "shopping", "bills", "health", "education", "travel", "other"];
|
|
808
809
|
type expenseCategoryType = (typeof expenseCategory)[number];
|
|
809
810
|
declare const budgetCategory: readonly ["food", "transport", "entertainment", "shopping", "bills", "health", "education", "travel", "other"];
|
|
810
|
-
declare const isE2E: boolean;
|
|
811
811
|
declare const extensionSuggestions: {
|
|
812
812
|
text: string;
|
|
813
813
|
emoji: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -795,6 +795,7 @@ declare const WS_SERVER_URL: string;
|
|
|
795
795
|
declare const addParam: (key: string, value: string) => void;
|
|
796
796
|
declare const FRONTEND_URL: string;
|
|
797
797
|
declare const PROD_FRONTEND_URL: string;
|
|
798
|
+
declare const isE2E: boolean;
|
|
798
799
|
declare const API_URL: string;
|
|
799
800
|
declare const apiFetch: (url: string, options?: RequestInit) => Promise<Response>;
|
|
800
801
|
declare const PROMPT_LIMITS: {
|
|
@@ -807,7 +808,6 @@ declare const PROMPT_LIMITS: {
|
|
|
807
808
|
declare const expenseCategory: readonly ["food", "transport", "entertainment", "shopping", "bills", "health", "education", "travel", "other"];
|
|
808
809
|
type expenseCategoryType = (typeof expenseCategory)[number];
|
|
809
810
|
declare const budgetCategory: readonly ["food", "transport", "entertainment", "shopping", "bills", "health", "education", "travel", "other"];
|
|
810
|
-
declare const isE2E: boolean;
|
|
811
811
|
declare const extensionSuggestions: {
|
|
812
812
|
text: string;
|
|
813
813
|
emoji: string;
|
package/dist/index.js
CHANGED
|
@@ -1493,7 +1493,7 @@ var init_env = __esm({
|
|
|
1493
1493
|
}
|
|
1494
1494
|
return `${window.location.origin}/index.html`;
|
|
1495
1495
|
};
|
|
1496
|
-
isProduction =
|
|
1496
|
+
isProduction = process.env.NODE_ENV === "production" || process.env.NEXT_PUBLIC_NODE_ENV === "production";
|
|
1497
1497
|
isDevelopment = checkIsExtension() ? ["bikahnjnakdnnccpnmcpmiojnehfooio"].some(
|
|
1498
1498
|
(id) => getExtensionUrl()?.includes(id)
|
|
1499
1499
|
) : !isProduction;
|
|
@@ -2875,7 +2875,7 @@ function checkThreadSummaryLimit({
|
|
|
2875
2875
|
function isValidUsername(username) {
|
|
2876
2876
|
return /^[a-zA-Z0-9]{3,20}$/.test(username);
|
|
2877
2877
|
}
|
|
2878
|
-
var import_i18n_iso_countries, isSameDay, GUEST_TASKS_COUNT, MEMBER_TASKS_COUNT, PLUS_TASKS_COUNT, getClientHostname, hostname, CHRRY_URL, FREE_DAYS, PLUS_PRICE, PRO_PRICE, CREDITS_PRICE, ADDITIONAL_CREDITS, MAX_TOOL_CALLS_PER_MESSAGE, WS_URL, WS_SERVER_URL, addParam, FE_PORT, API_PORT, FRONTEND_URL, PROD_FRONTEND_URL, API_URL, apiFetch, PROMPT_LIMITS, expenseCategory, budgetCategory,
|
|
2878
|
+
var import_i18n_iso_countries, isSameDay, GUEST_TASKS_COUNT, MEMBER_TASKS_COUNT, PLUS_TASKS_COUNT, getClientHostname, hostname, CHRRY_URL, FREE_DAYS, PLUS_PRICE, PRO_PRICE, CREDITS_PRICE, ADDITIONAL_CREDITS, MAX_TOOL_CALLS_PER_MESSAGE, WS_URL, WS_SERVER_URL, addParam, FE_PORT, API_PORT, FRONTEND_URL, PROD_FRONTEND_URL, isE2E, API_URL, apiFetch, PROMPT_LIMITS, expenseCategory, budgetCategory, extensionSuggestions, storage, pageSizes, now, utcToday, getExtensionUrls, getBrowserAPI, BrowserInstance, getMetadata, removeParam, isFirefox, config, VERSION, getSlugFromPathname, getInstructionConfig, getBrowserIdentity, THREAD_SUMMARY_LIMITS, getRedirectURL, getDailyImageLimit, isCollaborator, PDF_LIMITS, MAX_FILE_LIMITS, MAX_FILE_SIZES, OWNER_CREDITS, isDeepEqual;
|
|
2879
2879
|
var init_utils = __esm({
|
|
2880
2880
|
"utils/index.ts"() {
|
|
2881
2881
|
"use strict";
|
|
@@ -2927,7 +2927,8 @@ var init_utils = __esm({
|
|
|
2927
2927
|
API_PORT = typeof process !== "undefined" && process.env?.API_PORT || "3001";
|
|
2928
2928
|
FRONTEND_URL = isTestingDevice ? `http://192.168.2.27:${FE_PORT}` : isDevelopment ? `http://localhost:${FE_PORT}` : CHRRY_URL;
|
|
2929
2929
|
PROD_FRONTEND_URL = CHRRY_URL;
|
|
2930
|
-
|
|
2930
|
+
isE2E = process.env.NEXT_PUBLIC_TESTING_ENV === "e2e" || process.env.TESTING_ENV === "e2e";
|
|
2931
|
+
API_URL = process.env.NEXT_PUBLIC_API_URL || (isTestingDevice ? `http://192.168.2.27:${API_PORT}/api` : isDevelopment ? `http://localhost:${API_PORT}/api` : isE2E ? "https://e2e.chrry.dev/api" : "https://chrry.dev/api");
|
|
2931
2932
|
apiFetch = (url, options) => {
|
|
2932
2933
|
return fetch(url, {
|
|
2933
2934
|
...options,
|
|
@@ -2961,7 +2962,6 @@ var init_utils = __esm({
|
|
|
2961
2962
|
"other"
|
|
2962
2963
|
];
|
|
2963
2964
|
budgetCategory = expenseCategory;
|
|
2964
|
-
isE2E = process.env.NEXT_PUBLIC_TESTING_ENV === "e2e" || process.env.TESTING_ENV === "e2e";
|
|
2965
2965
|
extensionSuggestions = [
|
|
2966
2966
|
{
|
|
2967
2967
|
text: "Instantly magic up a quick page summary",
|
|
@@ -3108,7 +3108,7 @@ var init_utils = __esm({
|
|
|
3108
3108
|
};
|
|
3109
3109
|
isFirefox = typeof navigator !== "undefined" && navigator?.userAgent?.includes("Firefox");
|
|
3110
3110
|
config = getSiteConfig(getClientHostname());
|
|
3111
|
-
VERSION = config.version || "1.5.
|
|
3111
|
+
VERSION = config.version || "1.5.91";
|
|
3112
3112
|
getSlugFromPathname = (path) => {
|
|
3113
3113
|
return getAppAndStoreSlugs(path, {
|
|
3114
3114
|
defaultAppSlug: config.slug,
|
|
@@ -24616,7 +24616,7 @@ function DataProvider({ children, ...rest }) {
|
|
|
24616
24616
|
const [instructions, setInstructions] = (0, import_react21.useState)([]);
|
|
24617
24617
|
const [affiliateStats, setAffiliateStats] = (0, import_react21.useState)(null);
|
|
24618
24618
|
const [loadingAffiliateStats, setLoadingAffiliateStats] = (0, import_react21.useState)(false);
|
|
24619
|
-
const VERSION4 = "1.5.
|
|
24619
|
+
const VERSION4 = "1.5.91";
|
|
24620
24620
|
const [weather, setWeather] = useLocalStorage2("weather", user?.weather || guest?.weather || void 0);
|
|
24621
24621
|
const {
|
|
24622
24622
|
API_URL: API_URL2,
|