@chrryai/chrry 1.2.46 → 1.2.47
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 +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +19 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +19 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1407,7 +1407,7 @@ declare const isFirefox: boolean;
|
|
|
1407
1407
|
declare function getFlag({ code }: {
|
|
1408
1408
|
code?: string;
|
|
1409
1409
|
}): string;
|
|
1410
|
-
declare const VERSION = "1.2.
|
|
1410
|
+
declare const VERSION = "1.2.47";
|
|
1411
1411
|
type instructionBase = {
|
|
1412
1412
|
id: string;
|
|
1413
1413
|
title: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1407,7 +1407,7 @@ declare const isFirefox: boolean;
|
|
|
1407
1407
|
declare function getFlag({ code }: {
|
|
1408
1408
|
code?: string;
|
|
1409
1409
|
}): string;
|
|
1410
|
-
declare const VERSION = "1.2.
|
|
1410
|
+
declare const VERSION = "1.2.47";
|
|
1411
1411
|
type instructionBase = {
|
|
1412
1412
|
id: string;
|
|
1413
1413
|
title: string;
|
package/dist/index.js
CHANGED
|
@@ -3680,7 +3680,9 @@ var init_lib = __esm({
|
|
|
3680
3680
|
files.forEach((file, index) => {
|
|
3681
3681
|
formData.append(`artifact_${index}`, file);
|
|
3682
3682
|
});
|
|
3683
|
-
appId !== void 0 &&
|
|
3683
|
+
if (appId !== void 0 && appId !== null) {
|
|
3684
|
+
formData.append("appId", appId);
|
|
3685
|
+
}
|
|
3684
3686
|
pinCharacterProfile !== void 0 && formData.append("pinCharacterProfile", pinCharacterProfile.toString());
|
|
3685
3687
|
characterProfileVisibility && formData.append("characterProfileVisibility", characterProfileVisibility);
|
|
3686
3688
|
postRequestBody = formData;
|
|
@@ -3696,7 +3698,7 @@ var init_lib = __esm({
|
|
|
3696
3698
|
bookmarked,
|
|
3697
3699
|
pinCharacterProfile: pinCharacterProfile !== void 0 ? pinCharacterProfile : void 0,
|
|
3698
3700
|
characterProfileVisibility,
|
|
3699
|
-
appId: appId !== void 0 ? appId :
|
|
3701
|
+
appId: appId !== void 0 ? appId : void 0
|
|
3700
3702
|
});
|
|
3701
3703
|
}
|
|
3702
3704
|
const response = await fetch(`${API_URL2}/threads/${id}`, {
|
|
@@ -20606,7 +20608,7 @@ function DataProvider({
|
|
|
20606
20608
|
const [instructions, setInstructions] = (0, import_react14.useState)([]);
|
|
20607
20609
|
const [affiliateStats, setAffiliateStats] = (0, import_react14.useState)(null);
|
|
20608
20610
|
const [loadingAffiliateStats, setLoadingAffiliateStats] = (0, import_react14.useState)(false);
|
|
20609
|
-
const VERSION3 = "1.2.
|
|
20611
|
+
const VERSION3 = "1.2.47";
|
|
20610
20612
|
const [weather, setWeather] = useLocalStorage("weather", user?.weather || guest?.weather || void 0);
|
|
20611
20613
|
const {
|
|
20612
20614
|
API_URL: API_URL2,
|
|
@@ -21647,7 +21649,7 @@ var init_utils = __esm({
|
|
|
21647
21649
|
window.history.replaceState({}, "", newUrl);
|
|
21648
21650
|
};
|
|
21649
21651
|
isFirefox = typeof navigator !== "undefined" && navigator?.userAgent.includes("Firefox");
|
|
21650
|
-
VERSION = "1.2.
|
|
21652
|
+
VERSION = "1.2.47";
|
|
21651
21653
|
getSlugFromPathname = (path) => {
|
|
21652
21654
|
const siteConfig = getSiteConfig();
|
|
21653
21655
|
return getAppAndStoreSlugs(path, {
|
|
@@ -28357,6 +28359,10 @@ function Instructions({
|
|
|
28357
28359
|
if (!isAllowed) return;
|
|
28358
28360
|
regenerateInstructions ? setIsGeneratingInstructions(true) : setIsSaving(true);
|
|
28359
28361
|
const newInstruction = deleteInstruction ? "" : content;
|
|
28362
|
+
console.log(
|
|
28363
|
+
`\u{1F680} ~ file: Instructions.tsx:758 ~ newInstruction:`,
|
|
28364
|
+
newInstruction
|
|
28365
|
+
);
|
|
28360
28366
|
if (selectedAgent?.name === "flux") setSelectedAgent(void 0);
|
|
28361
28367
|
if (thread2) {
|
|
28362
28368
|
try {
|
|
@@ -30119,7 +30125,13 @@ function App({
|
|
|
30119
30125
|
showButton: false,
|
|
30120
30126
|
dataTestId: "instruction",
|
|
30121
30127
|
isAgentBuilder: true,
|
|
30122
|
-
opacity: 0
|
|
30128
|
+
opacity: 0,
|
|
30129
|
+
onSave: ({ content, artifacts }) => {
|
|
30130
|
+
onSave?.({
|
|
30131
|
+
content,
|
|
30132
|
+
artifacts
|
|
30133
|
+
});
|
|
30134
|
+
}
|
|
30123
30135
|
}
|
|
30124
30136
|
))));
|
|
30125
30137
|
}
|
|
@@ -31150,6 +31162,7 @@ Return ONLY ONE WORD: ${apps.map((a) => a.name).join(", ")}, or "none"`;
|
|
|
31150
31162
|
};
|
|
31151
31163
|
const { push } = router;
|
|
31152
31164
|
const [instruction, setInstruction] = (0, import_react50.useState)("");
|
|
31165
|
+
console.log(`\u{1F680} ~ file: Chat.tsx:1606 ~ instruction:`, instruction);
|
|
31153
31166
|
const collaborationSteps = [
|
|
31154
31167
|
{
|
|
31155
31168
|
title: t6("Start Your Conversation"),
|
|
@@ -32233,6 +32246,7 @@ Return ONLY ONE WORD: ${apps.map((a) => a.name).join(", ")}, or "none"`;
|
|
|
32233
32246
|
App,
|
|
32234
32247
|
{
|
|
32235
32248
|
onSave: (instruction2) => {
|
|
32249
|
+
console.log(`\u{1F680} ~ file: Chat.tsx:3183 ~ instruction:`, instruction2);
|
|
32236
32250
|
setInstructionsIndex(instructionsIndex + 1);
|
|
32237
32251
|
setArtifacts(instruction2.artifacts);
|
|
32238
32252
|
setInstruction(instruction2.content);
|