@chrryai/chrry 1.2.89 → 1.2.90
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/Instructions.module.scss +0 -4
- package/dist/{Instructions.module-JMFWEXAP.scss → Instructions.module-GYOAE4FX.scss} +0 -4
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +31 -23
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +31 -23
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/Instructions.module.scss
CHANGED
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -21252,7 +21252,7 @@ function DataProvider({
|
|
|
21252
21252
|
const [instructions, setInstructions] = (0, import_react14.useState)([]);
|
|
21253
21253
|
const [affiliateStats, setAffiliateStats] = (0, import_react14.useState)(null);
|
|
21254
21254
|
const [loadingAffiliateStats, setLoadingAffiliateStats] = (0, import_react14.useState)(false);
|
|
21255
|
-
const VERSION3 = "1.2.
|
|
21255
|
+
const VERSION3 = "1.2.90";
|
|
21256
21256
|
const [weather, setWeather] = useLocalStorage("weather", user?.weather || guest?.weather || void 0);
|
|
21257
21257
|
const {
|
|
21258
21258
|
API_URL: API_URL2,
|
|
@@ -22302,7 +22302,7 @@ var init_utils = __esm({
|
|
|
22302
22302
|
window.history.replaceState({}, "", newUrl);
|
|
22303
22303
|
};
|
|
22304
22304
|
isFirefox = typeof navigator !== "undefined" && navigator?.userAgent.includes("Firefox");
|
|
22305
|
-
VERSION = "1.2.
|
|
22305
|
+
VERSION = "1.2.90";
|
|
22306
22306
|
getSlugFromPathname = (path) => {
|
|
22307
22307
|
const siteConfig = getSiteConfig();
|
|
22308
22308
|
return getAppAndStoreSlugs(path, {
|
|
@@ -24092,7 +24092,7 @@ function NavigationProvider({
|
|
|
24092
24092
|
const [isAccountVisible, setIsAccountVisible] = (0, import_react25.useState)(
|
|
24093
24093
|
searchParams.get("account") === "true"
|
|
24094
24094
|
);
|
|
24095
|
-
const { isExtension: isExtension2, isMobile, viewPortWidth, os, device } = usePlatform();
|
|
24095
|
+
const { isExtension: isExtension2, isMobile, viewPortWidth, os, device, isStandalone: isStandalone2 } = usePlatform();
|
|
24096
24096
|
(0, import_react25.useEffect)(() => {
|
|
24097
24097
|
if (viewPortWidth) {
|
|
24098
24098
|
const width = viewPortWidth;
|
|
@@ -24149,6 +24149,10 @@ function NavigationProvider({
|
|
|
24149
24149
|
if (value && os === "ios" && app && session2?.app?.id !== app.id) {
|
|
24150
24150
|
const newUrl = new URL(window.location.href);
|
|
24151
24151
|
newUrl.searchParams.set("showInstall", "true");
|
|
24152
|
+
if (isStandalone2) {
|
|
24153
|
+
window.open(newUrl.toString(), "_blank", "noopener,noreferrer");
|
|
24154
|
+
return;
|
|
24155
|
+
}
|
|
24152
24156
|
window.location.href = newUrl.toString();
|
|
24153
24157
|
} else {
|
|
24154
24158
|
setShowAddToHomeScreenInternal(value);
|
|
@@ -27750,24 +27754,27 @@ function Agent({
|
|
|
27750
27754
|
const capabilities = appFormWatcher.capabilities;
|
|
27751
27755
|
const apiKeys = appFormWatcher.apiKeys || {};
|
|
27752
27756
|
const tools = appFormWatcher.tools || [];
|
|
27753
|
-
if (tier !== "free"
|
|
27754
|
-
|
|
27755
|
-
|
|
27756
|
-
|
|
27757
|
-
|
|
27758
|
-
|
|
27759
|
-
|
|
27760
|
-
|
|
27761
|
-
|
|
27762
|
-
|
|
27763
|
-
|
|
27764
|
-
|
|
27765
|
-
|
|
27766
|
-
|
|
27767
|
-
|
|
27768
|
-
|
|
27769
|
-
|
|
27770
|
-
|
|
27757
|
+
if (tier !== "free") {
|
|
27758
|
+
if (!apiKeys.deepseek?.trim()) {
|
|
27759
|
+
appForm.setValue("tier", "free");
|
|
27760
|
+
} else {
|
|
27761
|
+
if ((tier === "plus" || tier === "pro") && capabilities) {
|
|
27762
|
+
if (capabilities.imageGeneration === true && !apiKeys.openai?.trim()) {
|
|
27763
|
+
import_react_hot_toast6.default.error(t6("OpenAI API key required for image generation"));
|
|
27764
|
+
setTab("api");
|
|
27765
|
+
return;
|
|
27766
|
+
}
|
|
27767
|
+
if (capabilities.webSearch === true && !apiKeys.perplexity?.trim()) {
|
|
27768
|
+
import_react_hot_toast6.default.error(t6("Perplexity API key required for web search"));
|
|
27769
|
+
setTab("api");
|
|
27770
|
+
return;
|
|
27771
|
+
}
|
|
27772
|
+
if (capabilities.audio === true && !apiKeys.openai?.trim()) {
|
|
27773
|
+
import_react_hot_toast6.default.error(t6("OpenAI API key required for voice capabilities"));
|
|
27774
|
+
setTab("api");
|
|
27775
|
+
return;
|
|
27776
|
+
}
|
|
27777
|
+
}
|
|
27771
27778
|
}
|
|
27772
27779
|
}
|
|
27773
27780
|
if (unSupportedCapabilities) {
|
|
@@ -28971,7 +28978,8 @@ function Instructions({
|
|
|
28971
28978
|
isMemoryConsentManageVisible,
|
|
28972
28979
|
isMobileDevice,
|
|
28973
28980
|
setShowAddToHomeScreen,
|
|
28974
|
-
showAddToHomeScreen
|
|
28981
|
+
showAddToHomeScreen,
|
|
28982
|
+
pathname
|
|
28975
28983
|
} = useNavigationContext();
|
|
28976
28984
|
const {
|
|
28977
28985
|
slug,
|
|
@@ -29946,7 +29954,7 @@ var init_Instructions = __esm({
|
|
|
29946
29954
|
"use strict";
|
|
29947
29955
|
"use client";
|
|
29948
29956
|
import_react45 = __toESM(require("react"));
|
|
29949
|
-
import_Instructions_module = __toESM(require("./Instructions.module-
|
|
29957
|
+
import_Instructions_module = __toESM(require("./Instructions.module-GYOAE4FX.scss"));
|
|
29950
29958
|
import_clsx11 = __toESM(require("clsx"));
|
|
29951
29959
|
init_icons();
|
|
29952
29960
|
init_Modal();
|