@chrryai/chrry 1.5.65 → 1.5.66
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.js +8 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2093,7 +2093,7 @@ var init_utils = __esm({
|
|
|
2093
2093
|
};
|
|
2094
2094
|
isFirefox = typeof navigator !== "undefined" && navigator?.userAgent?.includes("Firefox");
|
|
2095
2095
|
config = getSiteConfig(getClientHostname());
|
|
2096
|
-
VERSION = config.version || "1.5.
|
|
2096
|
+
VERSION = config.version || "1.5.66";
|
|
2097
2097
|
getSlugFromPathname = (path) => {
|
|
2098
2098
|
return getAppAndStoreSlugs(path, {
|
|
2099
2099
|
defaultAppSlug: config.slug,
|
|
@@ -24415,7 +24415,7 @@ function DataProvider({ children, ...rest }) {
|
|
|
24415
24415
|
const [instructions, setInstructions] = (0, import_react21.useState)([]);
|
|
24416
24416
|
const [affiliateStats, setAffiliateStats] = (0, import_react21.useState)(null);
|
|
24417
24417
|
const [loadingAffiliateStats, setLoadingAffiliateStats] = (0, import_react21.useState)(false);
|
|
24418
|
-
const VERSION4 = "1.5.
|
|
24418
|
+
const VERSION4 = "1.5.66";
|
|
24419
24419
|
const [weather, setWeather] = useLocalStorage2("weather", user?.weather || guest?.weather || void 0);
|
|
24420
24420
|
const {
|
|
24421
24421
|
API_URL: API_URL2,
|
|
@@ -38695,7 +38695,11 @@ Return ONLY ONE WORD: ${apps.map((a) => a.name).join(", ")}, or "none"`;
|
|
|
38695
38695
|
const threadId2 = threadIdRef.current;
|
|
38696
38696
|
if (!token) return;
|
|
38697
38697
|
const clientId = data?.clientId;
|
|
38698
|
-
|
|
38698
|
+
const chunk2 = data?.chunk;
|
|
38699
|
+
if (type === "stream_update" && chunk2 && clientId && data.message && (isOwner_default(data.message.message, {
|
|
38700
|
+
userId: user?.id,
|
|
38701
|
+
guestId: guest?.id
|
|
38702
|
+
}) ? data.deviceId === deviceId : true)) {
|
|
38699
38703
|
if (isSpeechActive && os !== "ios") {
|
|
38700
38704
|
return;
|
|
38701
38705
|
}
|
|
@@ -38710,10 +38714,7 @@ Return ONLY ONE WORD: ${apps.map((a) => a.name).join(", ")}, or "none"`;
|
|
|
38710
38714
|
if (shouldStopRef.current) return;
|
|
38711
38715
|
if (!shouldStopRef.current) {
|
|
38712
38716
|
streamContentRef.current += data.chunk;
|
|
38713
|
-
const cleanContent = stripActionText(
|
|
38714
|
-
streamContentRef.current,
|
|
38715
|
-
data.chunk
|
|
38716
|
-
);
|
|
38717
|
+
const cleanContent = stripActionText(streamContentRef.current, chunk2);
|
|
38717
38718
|
onStreamingUpdate?.({
|
|
38718
38719
|
content: cleanContent,
|
|
38719
38720
|
clientId,
|