@chrryai/chrry 1.7.6 → 1.7.10

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 CHANGED
@@ -558,6 +558,7 @@ type app = {
558
558
  apiMonthlyPrice: number | null;
559
559
  apiRateLimit: number | null;
560
560
  apiKey: string | null;
561
+ chromeWebStoreUrl: string | null;
561
562
  apiRequestCount: number;
562
563
  apiRevenue: number;
563
564
  usageCount: number;
package/dist/index.d.ts CHANGED
@@ -558,6 +558,7 @@ type app = {
558
558
  apiMonthlyPrice: number | null;
559
559
  apiRateLimit: number | null;
560
560
  apiKey: string | null;
561
+ chromeWebStoreUrl: string | null;
561
562
  apiRequestCount: number;
562
563
  apiRevenue: number;
563
564
  usageCount: number;
package/dist/index.js CHANGED
@@ -1530,7 +1530,7 @@ function decodeHtmlEntities(text) {
1530
1530
  textarea.innerHTML = text;
1531
1531
  return textarea.value;
1532
1532
  }
1533
- return text.replace(/&amp;/g, "&").replace(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&quot;/g, '"').replace(/&#39;/g, "'").replace(/&#x27;/g, "'").replace(/&#x2F;/g, "/");
1533
+ return text.replace(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&quot;/g, '"').replace(/&#39;/g, "'").replace(/&#x27;/g, "'").replace(/&#x2F;/g, "/").replace(/&amp;/g, "&");
1534
1534
  }
1535
1535
  var init_decodeHtmlEntities = __esm({
1536
1536
  "utils/decodeHtmlEntities.ts"() {
@@ -2980,8 +2980,8 @@ var init_utils = __esm({
2980
2980
  CREDITS_PRICE = 5;
2981
2981
  ADDITIONAL_CREDITS = 500;
2982
2982
  MAX_TOOL_CALLS_PER_MESSAGE = 7;
2983
- WS_URL = getEnv().VITE_WS_URL || (isTestingDevice ? "ws://192.168.2.27:5001" : isDevelopment ? "ws://localhost:5001" : "wss://ws.chrry.dev");
2984
- WS_SERVER_URL = getEnv().VITE_WS_SERVER_URL || getEnv().WS_SERVER_URL || "http://127.0.0.1:5001";
2983
+ WS_URL = getEnv().VITE_WS_URL || (isTestingDevice ? "ws://192.168.2.27:3001" : isDevelopment ? "ws://localhost:3001" : "wss://chrry.dev");
2984
+ WS_SERVER_URL = getEnv().VITE_WS_SERVER_URL || getEnv().WS_SERVER_URL || "http://127.0.0.1:3001";
2985
2985
  addParam = (key, value) => {
2986
2986
  if (typeof window === "undefined") return;
2987
2987
  const searchParams = new URLSearchParams(window.location.search);
@@ -3175,7 +3175,7 @@ var init_utils = __esm({
3175
3175
  };
3176
3176
  isFirefox = typeof navigator !== "undefined" && navigator?.userAgent?.includes("Firefox");
3177
3177
  config = getSiteConfig(getClientHostname2());
3178
- VERSION = config.version || "1.7.6";
3178
+ VERSION = config.version || "1.7.10";
3179
3179
  getSlugFromPathname = (path) => {
3180
3180
  return getAppAndStoreSlugs(path, {
3181
3181
  defaultAppSlug: config.slug,
@@ -24107,9 +24107,12 @@ function AuthProvider({
24107
24107
  const storeAppIternal = storeApps?.find(
24108
24108
  (item) => app?.store?.appId && item.id === app?.store?.appId && item.store?.id && item.store?.id === app?.store?.id
24109
24109
  );
24110
- const [storeApp, setStoreApp] = (0, import_react20.useState)(
24110
+ const [storeApp, setStoreAppInternal] = (0, import_react20.useState)(
24111
24111
  storeAppIternal
24112
24112
  );
24113
+ const setStoreApp = (appWithStore) => {
24114
+ appWithStore?.id !== storeApp?.id && setStoreAppInternal(appWithStore);
24115
+ };
24113
24116
  (0, import_react20.useEffect)(() => {
24114
24117
  hasStoreApps(app) && setStoreApp(storeAppIternal);
24115
24118
  }, [storeAppIternal]);
@@ -24688,7 +24691,7 @@ function DataProvider({ children, ...rest }) {
24688
24691
  const [instructions, setInstructions] = (0, import_react21.useState)([]);
24689
24692
  const [affiliateStats, setAffiliateStats] = (0, import_react21.useState)(null);
24690
24693
  const [loadingAffiliateStats, setLoadingAffiliateStats] = (0, import_react21.useState)(false);
24691
- const VERSION4 = "1.7.6";
24694
+ const VERSION4 = "1.7.10";
24692
24695
  const [weather, setWeather] = useLocalStorage2("weather", user?.weather || guest?.weather || void 0);
24693
24696
  const {
24694
24697
  API_URL: API_URL2,
@@ -27209,11 +27212,8 @@ function NavigationProvider({ children }) {
27209
27212
  };
27210
27213
  const { slug, setSlug, getAppSlug: getAppSlug2, language, setShowFocus } = useAuth();
27211
27214
  const goToThreads = (params) => {
27212
- const appSlug = app ? getAppSlug2(app, "") : void 0;
27213
27215
  const url = new URLSearchParams(params);
27214
- router.push(
27215
- appSlug ? `/${appSlug}/threads${params ? "?" + url : ""}` : `/threads${params ? "?" + url : ""}`
27216
- );
27216
+ router.push(`/threads${params ? "?" + url : ""}`);
27217
27217
  };
27218
27218
  const getStoreSlug = (slug2) => {
27219
27219
  if (language === defaultLocale) {
@@ -31770,7 +31770,6 @@ function EnableNotifications({
31770
31770
  const result = await response.json();
31771
31771
  return result;
31772
31772
  }
31773
- console.log(`\u{1F680} ~ guestBaseApp:`, guestBaseApp);
31774
31773
  const storeApp = userBaseApp || guestBaseApp;
31775
31774
  const { utilities } = useStyles();
31776
31775
  const StoreApp = (0, import_react43.useCallback)(
@@ -34485,7 +34484,7 @@ function Instructions({
34485
34484
  const styles4 = useInstructionsStyles();
34486
34485
  const { utilities } = useStyles();
34487
34486
  const { defaultInstructions, isAppInstructions } = useApp();
34488
- const { token, language, user, guest, app, focus: focus2 } = useAuth();
34487
+ const { token, language, user, guest, app, storeApp } = useAuth();
34489
34488
  const {
34490
34489
  selectedAgent,
34491
34490
  setSelectedAgent,
@@ -34623,7 +34622,7 @@ function Instructions({
34623
34622
  img.src = URL.createObjectURL(file);
34624
34623
  });
34625
34624
  };
34626
- const extensionUrl = app?.id === focus2?.id ? "https://chromewebstore.google.com/detail/focus-%F0%9F%8D%92/nkomoiomfaeodakglkihapminhpgnibl" : "https://chromewebstore.google.com/detail/chrry-%F0%9F%8D%92/odgdgbbddopmblglebfngmaebmnhegfc";
34625
+ const extensionUrl = app?.chromeWebStoreUrl || storeApp?.chromeWebStoreUrl || "https://chromewebstore.google.com/detail/chrry-%F0%9F%8D%92/odgdgbbddopmblglebfngmaebmnhegfc";
34627
34626
  const extensionId2 = getExtensionId();
34628
34627
  const handleFileSelect = async (selectedFiles) => {
34629
34628
  if (!selectedFiles) return;
@@ -35622,7 +35621,6 @@ function App({
35622
35621
  const zarathustra2 = apps.find((app2) => app2.slug === "zarathustra");
35623
35622
  const isBlossom = app?.store?.id === chrry?.store?.id;
35624
35623
  const totalApps = guestBaseApp?.store?.apps.length || userBaseApp?.store?.apps.length || 0;
35625
- console.log(`\u{1F680} ~ totalApps:`, totalApps);
35626
35624
  const getApps2 = () => {
35627
35625
  return apps.filter(
35628
35626
  (item) => (item.id !== store?.appId || (totalApps <= 3 ? item.id === guestBaseApp?.id || item.id === userBaseApp?.id : false)) && item.id !== chrry?.id && item.id !== grape?.id && (isBlossom ? item.id !== atlas2?.id && item.id !== zarathustra2?.id && item.id !== popcorn2?.id : true)
@@ -63304,12 +63302,7 @@ var init_Calendar_web = __esm({
63304
63302
  init_platform();
63305
63303
  init_hooks();
63306
63304
  init_useWebSocket();
63307
- console.log("DnDModule:", DnDModule);
63308
- console.log("DnDModule.default:", DnDModule.default);
63309
- console.log("DnDModule keys:", Object.keys(DnDModule));
63310
63305
  withDragAndDrop = DnDModule.default || DnDModule;
63311
- console.log("withDragAndDrop:", withDragAndDrop);
63312
- console.log("typeof withDragAndDrop:", typeof withDragAndDrop);
63313
63306
  locales2 = {
63314
63307
  en: enUS,
63315
63308
  de: de2,