@chrryai/chrry 1.1.80 → 1.1.82

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/README.md CHANGED
@@ -96,10 +96,6 @@ import { locale } from "@chrryai/chrry/locales"
96
96
 
97
97
  We welcome contributions! Please see our [Contributing Guide](CONTRIBUTING.md) for details.
98
98
 
99
- ## 📄 License
100
-
101
- MIT © [AskVex](https://askvex.com)
102
-
103
99
  ## 🔗 Links
104
100
 
105
101
  - [Website](https://chrry.dev)
package/dist/index.d.mts CHANGED
@@ -418,6 +418,7 @@ type characterProfile = {
418
418
  };
419
419
  type app = {
420
420
  id: string;
421
+ image?: string;
421
422
  userId: string | null;
422
423
  guestId: string | null;
423
424
  mainThreadId: string | null;
@@ -1275,7 +1276,7 @@ declare const isFirefox: boolean;
1275
1276
  declare function getFlag({ code }: {
1276
1277
  code?: string;
1277
1278
  }): string;
1278
- declare const VERSION = "1.1.80";
1279
+ declare const VERSION = "1.1.82";
1279
1280
  type instructionBase = {
1280
1281
  id: string;
1281
1282
  title: string;
package/dist/index.d.ts CHANGED
@@ -418,6 +418,7 @@ type characterProfile = {
418
418
  };
419
419
  type app = {
420
420
  id: string;
421
+ image?: string;
421
422
  userId: string | null;
422
423
  guestId: string | null;
423
424
  mainThreadId: string | null;
@@ -1275,7 +1276,7 @@ declare const isFirefox: boolean;
1275
1276
  declare function getFlag({ code }: {
1276
1277
  code?: string;
1277
1278
  }): string;
1278
- declare const VERSION = "1.1.80";
1279
+ declare const VERSION = "1.1.82";
1279
1280
  type instructionBase = {
1280
1281
  id: string;
1281
1282
  title: string;
package/dist/index.js CHANGED
@@ -701,7 +701,7 @@ var init_utils = __esm({
701
701
  };
702
702
  FE_PORT = process.env.NEXT_PUBLIC_FE_PORT || "3000";
703
703
  API_PORT = process.env.API_PORT || "3001";
704
- API_URL = isTestingDevice ? `http://192.168.2.27:${API_PORT}/api` : isDevelopment ? `http://localhost:${API_PORT}/api` : "https://askvex.com/api";
704
+ API_URL = process.env.NEXT_PUBLIC_API_URL || isTestingDevice ? `http://192.168.2.27:${API_PORT}/api` : isDevelopment ? `http://localhost:${API_PORT}/api` : "https://askvex.com/api";
705
705
  PROD_FRONTEND_URL = "https://askvex.com";
706
706
  FRONTEND_URL = isTestingDevice ? `http://192.168.2.27:${FE_PORT}` : isDevelopment ? `http://localhost:${FE_PORT}` : PROD_FRONTEND_URL;
707
707
  PROMPT_LIMITS = {
@@ -830,7 +830,7 @@ var init_utils = __esm({
830
830
  }
831
831
  };
832
832
  isFirefox = typeof navigator !== "undefined" && navigator?.userAgent.includes("Firefox");
833
- VERSION = "1.1.80";
833
+ VERSION = "1.1.82";
834
834
  getInstructionConfig = ({
835
835
  city,
836
836
  country,
@@ -21911,7 +21911,7 @@ function AuthProvider({
21911
21911
  const isTestingDevice2 = false;
21912
21912
  const PROD_FRONTEND_URL2 = "https://askvex.com";
21913
21913
  const WS_URL2 = isTestingDevice2 ? "ws://192.168.2.27:5001" : env === "development" ? "ws://localhost:5001" : env === "staging" ? "wss://staging-ws.askvex.com" : "wss://ws.askvex.com";
21914
- const API_URL2 = isTestingDevice2 ? `http://192.168.2.27:${API_PORT2}/api` : env === "development" ? `http://localhost:${API_PORT2}/api` : env === "staging" ? "https://staging.askvex.com/api" : "https://askvex.com/api";
21914
+ const API_URL2 = process.env.NEXT_PUBLIC_API_URL || isTestingDevice2 ? `http://192.168.2.27:${API_PORT2}/api` : env === "development" ? `http://localhost:${API_PORT2}/api` : env === "staging" ? "https://staging.askvex.com/api" : "https://askvex.com/api";
21915
21915
  const FRONTEND_URL3 = isTestingDevice2 ? `http://192.168.2.27:${FE_PORT2}` : env === "development" ? `http://localhost:${FE_PORT2}` : env === "staging" ? "https://staging.askvex.com" : "https://askvex.com";
21916
21916
  const initialDeviceId = (0, import_react16.useRef)(v4_default());
21917
21917
  const [deviceIdFromStorage, setDeviceIdToStorage] = useLocalStorage2(
@@ -22695,7 +22695,7 @@ function DataProvider({
22695
22695
  const [instructions, setInstructions] = (0, import_react18.useState)([]);
22696
22696
  const [affiliateStats, setAffiliateStats] = (0, import_react18.useState)(null);
22697
22697
  const [loadingAffiliateStats, setLoadingAffiliateStats] = (0, import_react18.useState)(false);
22698
- const VERSION3 = "1.1.80";
22698
+ const VERSION3 = "1.1.82";
22699
22699
  const [weather, setWeather] = useLocalStorage2("weather", user?.weather || guest?.weather || void 0);
22700
22700
  const {
22701
22701
  API_URL: API_URL2,
@@ -33298,7 +33298,7 @@ function About2() {
33298
33298
  href: isStandalone2 ? void 0 : `${FRONTEND_URL3}/privacy`
33299
33299
  },
33300
33300
  t5("Privacy Policy")
33301
- ), ", ", /* @__PURE__ */ import_react85.default.createElement("a", { href: "https://x.com/askvexai" }, "@askvexAI"), ", ", /* @__PURE__ */ import_react85.default.createElement("a", { href: "mailto:contact@askvex.com" }, "contact@askvex.com"))),
33301
+ ), ", ", /* @__PURE__ */ import_react85.default.createElement("a", { href: "https://x.com/askvexai" }, "@askvexAI"), ", ", /* @__PURE__ */ import_react85.default.createElement("a", { href: "mailto:iliyan@chrry.ai" }, "iliyan@chrry.ai"))),
33302
33302
  /* @__PURE__ */ import_react85.default.createElement("section", null, /* @__PURE__ */ import_react85.default.createElement("p", null, "\u{1F970} ", t5("about.intro")), /* @__PURE__ */ import_react85.default.createElement("p", { style: { marginTop: "1rem" } }, t5("about.intro2"))),
33303
33303
  apps && apps.length > 0 && /* @__PURE__ */ import_react85.default.createElement("section", null, /* @__PURE__ */ import_react85.default.createElement("h2", null, config.logo, " ", t5("Available Apps")), /* @__PURE__ */ import_react85.default.createElement("p", null, t5("Discover AI-powered apps from our store")), /* @__PURE__ */ import_react85.default.createElement("div", { className: import_About_module3.default.apps }, apps.map((app) => /* @__PURE__ */ import_react85.default.createElement(
33304
33304
  "div",
@@ -34312,7 +34312,7 @@ function Chrry() {
34312
34312
  const config = getSiteConfig("chrryDev");
34313
34313
  const isChrry = config.mode === "chrryDev";
34314
34314
  const { FRONTEND_URL: FRONTEND_URL3, PROD_FRONTEND_URL: PROD_FRONTEND_URL2, isDevelopment: isDevelopment3 } = useData();
34315
- return /* @__PURE__ */ import_react90.default.createElement("div", { className: import_Chrry_module.default.container }, /* @__PURE__ */ import_react90.default.createElement("div", { className: import_Chrry_module.default.header }, /* @__PURE__ */ import_react90.default.createElement("div", { className: import_Chrry_module.default.vex }, /* @__PURE__ */ import_react90.default.createElement("span", null, "Built by "), /* @__PURE__ */ import_react90.default.createElement(Anchor, { href: "https://askvex.com" }, /* @__PURE__ */ import_react90.default.createElement(ImageComponent, { logo: "isVivid", size: 24 }), "Vex"), /* @__PURE__ */ import_react90.default.createElement("p", null, /* @__PURE__ */ import_react90.default.createElement("code", null, "npm install @chrryai/chrry"))), /* @__PURE__ */ import_react90.default.createElement("div", { className: import_Chrry_module.default.logo }, /* @__PURE__ */ import_react90.default.createElement(ImageComponent, { logo: "chrry", size: 250 }), /* @__PURE__ */ import_react90.default.createElement("h1", null, "Chrry")), /* @__PURE__ */ import_react90.default.createElement("p", { className: import_Chrry_module.default.description }, config.description), isChrry && config.links && /* @__PURE__ */ import_react90.default.createElement("div", { className: import_Chrry_module.default.links }, config.links.github && /* @__PURE__ */ import_react90.default.createElement(
34315
+ return /* @__PURE__ */ import_react90.default.createElement("div", { className: import_Chrry_module.default.container }, /* @__PURE__ */ import_react90.default.createElement("div", { className: import_Chrry_module.default.header }, /* @__PURE__ */ import_react90.default.createElement("div", { className: import_Chrry_module.default.vex }, /* @__PURE__ */ import_react90.default.createElement("span", null, "Built by "), /* @__PURE__ */ import_react90.default.createElement(Anchor, { href: "https://askvex.com", openInNewTab: true }, /* @__PURE__ */ import_react90.default.createElement(ImageComponent, { logo: "isVivid", size: 24 }), "Vex"), /* @__PURE__ */ import_react90.default.createElement("p", null, /* @__PURE__ */ import_react90.default.createElement("code", null, "npm install @chrryai/chrry"))), /* @__PURE__ */ import_react90.default.createElement("div", { className: import_Chrry_module.default.logo }, /* @__PURE__ */ import_react90.default.createElement(ImageComponent, { logo: "chrry", size: 250 }), /* @__PURE__ */ import_react90.default.createElement("h1", null, "Chrry")), /* @__PURE__ */ import_react90.default.createElement("p", { className: import_Chrry_module.default.description }, config.description), isChrry && config.links && /* @__PURE__ */ import_react90.default.createElement("div", { className: import_Chrry_module.default.links }, config.links.github && /* @__PURE__ */ import_react90.default.createElement(
34316
34316
  "a",
34317
34317
  {
34318
34318
  href: config.links.github,
@@ -44347,7 +44347,7 @@ var Hey = (0, import_react93.memo)(
44347
44347
  }) {
44348
44348
  const { isHome, userNameByUrl, pathname, isSplash, setIsSplash } = useNavigationContext();
44349
44349
  const { threadId } = useChat();
44350
- const { app, slug, allApps } = useAuth();
44350
+ const { slug, allApps, chrry, ...auth } = useAuth();
44351
44351
  const { isDevelopment: isDevelopment3 } = useData();
44352
44352
  (0, import_react93.useEffect)(() => {
44353
44353
  useExtensionIcon?.(slug);
@@ -44372,10 +44372,11 @@ var Hey = (0, import_react93.memo)(
44372
44372
  const handleImageLoad = (0, import_react93.useCallback)(() => {
44373
44373
  setIsImageLoaded(true);
44374
44374
  }, []);
44375
- const memoizedApp = (0, import_react93.useMemo)(() => app, [app?.id, app?.slug, app?.image]);
44376
44375
  const config = getSiteConfig();
44376
+ const app = config.mode === "chrryDev" ? chrry : auth.app;
44377
+ const memoizedApp = (0, import_react93.useMemo)(() => app, [app?.id, app?.slug, app?.image]);
44377
44378
  const splash = (0, import_react93.useMemo)(
44378
- () => /* @__PURE__ */ React.createElement("div", { className: (0, import_clsx46.default)(import_Sidebar_module.default.splash, !isSplash && import_Sidebar_module.default.hidden) }, /* @__PURE__ */ React.createElement(
44379
+ () => memoizedApp && /* @__PURE__ */ React.createElement("div", { className: (0, import_clsx46.default)(import_Sidebar_module.default.splash, !isSplash && import_Sidebar_module.default.hidden) }, /* @__PURE__ */ React.createElement(
44379
44380
  ImageComponent,
44380
44381
  {
44381
44382
  onLoad: handleImageLoad,