@chrryai/chrry 1.1.85 → 1.1.86

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
@@ -1278,7 +1278,7 @@ declare const isFirefox: boolean;
1278
1278
  declare function getFlag({ code }: {
1279
1279
  code?: string;
1280
1280
  }): string;
1281
- declare const VERSION = "1.1.85";
1281
+ declare const VERSION = "1.1.86";
1282
1282
  type instructionBase = {
1283
1283
  id: string;
1284
1284
  title: string;
package/dist/index.d.ts CHANGED
@@ -1278,7 +1278,7 @@ declare const isFirefox: boolean;
1278
1278
  declare function getFlag({ code }: {
1279
1279
  code?: string;
1280
1280
  }): string;
1281
- declare const VERSION = "1.1.85";
1281
+ declare const VERSION = "1.1.86";
1282
1282
  type instructionBase = {
1283
1283
  id: string;
1284
1284
  title: string;
package/dist/index.js CHANGED
@@ -729,7 +729,7 @@ var init_utils = __esm({
729
729
  }
730
730
  };
731
731
  isFirefox = typeof navigator !== "undefined" && navigator?.userAgent.includes("Firefox");
732
- VERSION = "1.1.85";
732
+ VERSION = "1.1.86";
733
733
  getInstructionConfig = ({
734
734
  city,
735
735
  country,
@@ -15753,7 +15753,7 @@ function DataProvider({
15753
15753
  const [instructions, setInstructions] = (0, import_react15.useState)([]);
15754
15754
  const [affiliateStats, setAffiliateStats] = (0, import_react15.useState)(null);
15755
15755
  const [loadingAffiliateStats, setLoadingAffiliateStats] = (0, import_react15.useState)(false);
15756
- const VERSION3 = "1.1.85";
15756
+ const VERSION3 = "1.1.86";
15757
15757
  const [weather, setWeather] = useLocalStorage2("weather", user?.weather || guest?.weather || void 0);
15758
15758
  const {
15759
15759
  API_URL: API_URL2,
@@ -16342,8 +16342,8 @@ function AppProvider({
16342
16342
  };
16343
16343
  const isManagingApp = !!appStatus?.part;
16344
16344
  (0, import_react18.useEffect)(() => {
16345
- !colorScheme && setColorScheme(app?.themeColor || void 0);
16346
- }, [app?.themeColor]);
16345
+ app?.themeColor && setColorScheme(app?.themeColor || colorScheme);
16346
+ }, [app?.themeColor, colorScheme]);
16347
16347
  (0, import_react18.useEffect)(() => {
16348
16348
  app?.backgroundColor && setAppTheme(app?.backgroundColor);
16349
16349
  }, [app?.backgroundColor]);
@@ -29675,7 +29675,7 @@ function Agent({
29675
29675
  const isChrry = app2.id === chrry?.id;
29676
29676
  const isBaseApp = app2.id === baseApp?.id;
29677
29677
  const checked = isBaseApp || isChrry || field.value?.includes(app2.name);
29678
- const isDisabled = checked;
29678
+ const isDisabled = isBaseApp || isChrry;
29679
29679
  return /* @__PURE__ */ import_react43.default.createElement("label", { key: app2.id || app2.name }, /* @__PURE__ */ import_react43.default.createElement(
29680
29680
  Checkbox_default,
29681
29681
  {
@@ -30308,6 +30308,7 @@ function Instructions({
30308
30308
  const [selectedInstruction, setSelectedInstructionInternal] = (0, import_react44.useState)(null);
30309
30309
  const setSelectedInstruction = (instruction) => {
30310
30310
  setSelectedInstructionInternal(instruction);
30311
+ instruction && setIsOpen(true);
30311
30312
  };
30312
30313
  const getMaxFileSize = (fileType) => {
30313
30314
  const limits = MAX_FILE_SIZES;
@@ -34645,6 +34646,7 @@ Return ONLY ONE WORD: ${apps.map((a) => a.name).join(", ")}, or "none"`;
34645
34646
  /* @__PURE__ */ React.createElement(
34646
34647
  "button",
34647
34648
  {
34649
+ disabled: isChrry || !!app?.onlyAgent,
34648
34650
  "data-testid": !debateAgent ? selectedAgent?.name !== "flux" ? "add-debate-agent-button" : void 0 : "agent-select-button",
34649
34651
  "data-agent-name": selectedAgent.name,
34650
34652
  title: t5("Add debate agent"),