@chrryai/chrry 1.6.93 → 1.6.95
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 +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -849,6 +849,7 @@ declare const addParam: (key: string, value: string) => void;
|
|
|
849
849
|
declare const FRONTEND_URL: string;
|
|
850
850
|
declare const PROD_FRONTEND_URL: string;
|
|
851
851
|
declare const isE2E: boolean;
|
|
852
|
+
declare const API_INTERNAL_URL: any;
|
|
852
853
|
declare const API_URL: any;
|
|
853
854
|
declare const apiFetch: (url: string, options?: RequestInit) => Promise<Response>;
|
|
854
855
|
declare const PROMPT_LIMITS: {
|
|
@@ -1901,4 +1902,4 @@ interface HistoryRouterProviderProps {
|
|
|
1901
1902
|
*/
|
|
1902
1903
|
declare function HistoryRouterProvider({ children, }: HistoryRouterProviderProps): React.ReactElement;
|
|
1903
1904
|
|
|
1904
|
-
export { ADDITIONAL_CREDITS, API_URL, type AgentCapabilities, type AgentModel, type AiAgent, type AiAgentCapabilities, type ApiActions, BrowserInstance, CHRRY_URL, CREDITS_PRICE, type CalendarEventFormData, Chrry, type CreateCustomAiAgent, FREE_DAYS, FRONTEND_URL, type FileValidationResult, GUEST_TASKS_COUNT, HistoryRouterProvider, MAX_FILE_LIMITS, MAX_FILE_SIZES, MAX_TOOL_CALLS_PER_MESSAGE, MEMBER_TASKS_COUNT, OWNER_CREDITS, PDF_LIMITS, PLUS_PRICE, PLUS_TASKS_COUNT, PROD_FRONTEND_URL, PROMPT_LIMITS, PRO_PRICE, Sidebar, Store, VERSION, WS_SERVER_URL, WS_URL, addParam, aiAgentCapabilitiesSchema, aiAgentSchema, apiFetch, type appFormData, appSchema, budgetCategory, capitalizeFirstLetter, checkIsExtension, checkThreadSummaryLimit, createApp, createCalendarEvent, createCustomAiAgentSchema, Chrry as default, deleteApp, deleteCalendarEvent, deleteMemories, deleteMessage, deleteSubscription, exampleInstructions, expenseCategory, type expenseCategoryType, exportToGoogleCalendar, extensionSuggestions, formatFileSize, generateAppMetadata, generateStoreMetadata, generateThreadMetadata, getActions, getApp, getApps, getBrowserAPI, getBrowserIdentity, getCalendarEvents, getDailyImageLimit, getEnv, getExampleInstructions, getExtensionUrl, getExtensionUrls, getFlag, getGuest, getHourlyLimit, getImageSrc, getInstructionConfig, getLastMessage, getMaxFileSize, getMetadata, getRedirectURL, getSession, getSlugFromPathname, getThread, getThreadId, getThreads, getTranslations, getUser, getUsers, getWeatherCacheTime, type instructionBase, isCI, isCollaborator, isDeepEqual, isDevelopment, isE2E, isFirefox, isOwner, isProduction, isSameDay, isTestingDevice, isTextFile, isValidUsername, isValidUuidV4, pageSizes, removeParam, removeUser, reorderApps, replaceLinks, storage, syncGoogleCalendar, updateApp, updateCalendarEvent, updateCollaboration, updateGuest, updateMessage, updateThread, updateUser, uploadUserImage, useAppMetadata, useComputedValue, useCookieOrLocalStorage, useCountdown, useDeviceInfo, useHasHydrated, useLocalStorage, usePWAInstall, useStoreMetadata, useSyncedState, useThreadMetadata, utcToday, validateFile };
|
|
1905
|
+
export { ADDITIONAL_CREDITS, API_INTERNAL_URL, API_URL, type AgentCapabilities, type AgentModel, type AiAgent, type AiAgentCapabilities, type ApiActions, BrowserInstance, CHRRY_URL, CREDITS_PRICE, type CalendarEventFormData, Chrry, type CreateCustomAiAgent, FREE_DAYS, FRONTEND_URL, type FileValidationResult, GUEST_TASKS_COUNT, HistoryRouterProvider, MAX_FILE_LIMITS, MAX_FILE_SIZES, MAX_TOOL_CALLS_PER_MESSAGE, MEMBER_TASKS_COUNT, OWNER_CREDITS, PDF_LIMITS, PLUS_PRICE, PLUS_TASKS_COUNT, PROD_FRONTEND_URL, PROMPT_LIMITS, PRO_PRICE, Sidebar, Store, VERSION, WS_SERVER_URL, WS_URL, addParam, aiAgentCapabilitiesSchema, aiAgentSchema, apiFetch, type appFormData, appSchema, budgetCategory, capitalizeFirstLetter, checkIsExtension, checkThreadSummaryLimit, createApp, createCalendarEvent, createCustomAiAgentSchema, Chrry as default, deleteApp, deleteCalendarEvent, deleteMemories, deleteMessage, deleteSubscription, exampleInstructions, expenseCategory, type expenseCategoryType, exportToGoogleCalendar, extensionSuggestions, formatFileSize, generateAppMetadata, generateStoreMetadata, generateThreadMetadata, getActions, getApp, getApps, getBrowserAPI, getBrowserIdentity, getCalendarEvents, getDailyImageLimit, getEnv, getExampleInstructions, getExtensionUrl, getExtensionUrls, getFlag, getGuest, getHourlyLimit, getImageSrc, getInstructionConfig, getLastMessage, getMaxFileSize, getMetadata, getRedirectURL, getSession, getSlugFromPathname, getThread, getThreadId, getThreads, getTranslations, getUser, getUsers, getWeatherCacheTime, type instructionBase, isCI, isCollaborator, isDeepEqual, isDevelopment, isE2E, isFirefox, isOwner, isProduction, isSameDay, isTestingDevice, isTextFile, isValidUsername, isValidUuidV4, pageSizes, removeParam, removeUser, reorderApps, replaceLinks, storage, syncGoogleCalendar, updateApp, updateCalendarEvent, updateCollaboration, updateGuest, updateMessage, updateThread, updateUser, uploadUserImage, useAppMetadata, useComputedValue, useCookieOrLocalStorage, useCountdown, useDeviceInfo, useHasHydrated, useLocalStorage, usePWAInstall, useStoreMetadata, useSyncedState, useThreadMetadata, utcToday, validateFile };
|
package/dist/index.d.ts
CHANGED
|
@@ -849,6 +849,7 @@ declare const addParam: (key: string, value: string) => void;
|
|
|
849
849
|
declare const FRONTEND_URL: string;
|
|
850
850
|
declare const PROD_FRONTEND_URL: string;
|
|
851
851
|
declare const isE2E: boolean;
|
|
852
|
+
declare const API_INTERNAL_URL: any;
|
|
852
853
|
declare const API_URL: any;
|
|
853
854
|
declare const apiFetch: (url: string, options?: RequestInit) => Promise<Response>;
|
|
854
855
|
declare const PROMPT_LIMITS: {
|
|
@@ -1901,4 +1902,4 @@ interface HistoryRouterProviderProps {
|
|
|
1901
1902
|
*/
|
|
1902
1903
|
declare function HistoryRouterProvider({ children, }: HistoryRouterProviderProps): React.ReactElement;
|
|
1903
1904
|
|
|
1904
|
-
export { ADDITIONAL_CREDITS, API_URL, type AgentCapabilities, type AgentModel, type AiAgent, type AiAgentCapabilities, type ApiActions, BrowserInstance, CHRRY_URL, CREDITS_PRICE, type CalendarEventFormData, Chrry, type CreateCustomAiAgent, FREE_DAYS, FRONTEND_URL, type FileValidationResult, GUEST_TASKS_COUNT, HistoryRouterProvider, MAX_FILE_LIMITS, MAX_FILE_SIZES, MAX_TOOL_CALLS_PER_MESSAGE, MEMBER_TASKS_COUNT, OWNER_CREDITS, PDF_LIMITS, PLUS_PRICE, PLUS_TASKS_COUNT, PROD_FRONTEND_URL, PROMPT_LIMITS, PRO_PRICE, Sidebar, Store, VERSION, WS_SERVER_URL, WS_URL, addParam, aiAgentCapabilitiesSchema, aiAgentSchema, apiFetch, type appFormData, appSchema, budgetCategory, capitalizeFirstLetter, checkIsExtension, checkThreadSummaryLimit, createApp, createCalendarEvent, createCustomAiAgentSchema, Chrry as default, deleteApp, deleteCalendarEvent, deleteMemories, deleteMessage, deleteSubscription, exampleInstructions, expenseCategory, type expenseCategoryType, exportToGoogleCalendar, extensionSuggestions, formatFileSize, generateAppMetadata, generateStoreMetadata, generateThreadMetadata, getActions, getApp, getApps, getBrowserAPI, getBrowserIdentity, getCalendarEvents, getDailyImageLimit, getEnv, getExampleInstructions, getExtensionUrl, getExtensionUrls, getFlag, getGuest, getHourlyLimit, getImageSrc, getInstructionConfig, getLastMessage, getMaxFileSize, getMetadata, getRedirectURL, getSession, getSlugFromPathname, getThread, getThreadId, getThreads, getTranslations, getUser, getUsers, getWeatherCacheTime, type instructionBase, isCI, isCollaborator, isDeepEqual, isDevelopment, isE2E, isFirefox, isOwner, isProduction, isSameDay, isTestingDevice, isTextFile, isValidUsername, isValidUuidV4, pageSizes, removeParam, removeUser, reorderApps, replaceLinks, storage, syncGoogleCalendar, updateApp, updateCalendarEvent, updateCollaboration, updateGuest, updateMessage, updateThread, updateUser, uploadUserImage, useAppMetadata, useComputedValue, useCookieOrLocalStorage, useCountdown, useDeviceInfo, useHasHydrated, useLocalStorage, usePWAInstall, useStoreMetadata, useSyncedState, useThreadMetadata, utcToday, validateFile };
|
|
1905
|
+
export { ADDITIONAL_CREDITS, API_INTERNAL_URL, API_URL, type AgentCapabilities, type AgentModel, type AiAgent, type AiAgentCapabilities, type ApiActions, BrowserInstance, CHRRY_URL, CREDITS_PRICE, type CalendarEventFormData, Chrry, type CreateCustomAiAgent, FREE_DAYS, FRONTEND_URL, type FileValidationResult, GUEST_TASKS_COUNT, HistoryRouterProvider, MAX_FILE_LIMITS, MAX_FILE_SIZES, MAX_TOOL_CALLS_PER_MESSAGE, MEMBER_TASKS_COUNT, OWNER_CREDITS, PDF_LIMITS, PLUS_PRICE, PLUS_TASKS_COUNT, PROD_FRONTEND_URL, PROMPT_LIMITS, PRO_PRICE, Sidebar, Store, VERSION, WS_SERVER_URL, WS_URL, addParam, aiAgentCapabilitiesSchema, aiAgentSchema, apiFetch, type appFormData, appSchema, budgetCategory, capitalizeFirstLetter, checkIsExtension, checkThreadSummaryLimit, createApp, createCalendarEvent, createCustomAiAgentSchema, Chrry as default, deleteApp, deleteCalendarEvent, deleteMemories, deleteMessage, deleteSubscription, exampleInstructions, expenseCategory, type expenseCategoryType, exportToGoogleCalendar, extensionSuggestions, formatFileSize, generateAppMetadata, generateStoreMetadata, generateThreadMetadata, getActions, getApp, getApps, getBrowserAPI, getBrowserIdentity, getCalendarEvents, getDailyImageLimit, getEnv, getExampleInstructions, getExtensionUrl, getExtensionUrls, getFlag, getGuest, getHourlyLimit, getImageSrc, getInstructionConfig, getLastMessage, getMaxFileSize, getMetadata, getRedirectURL, getSession, getSlugFromPathname, getThread, getThreadId, getThreads, getTranslations, getUser, getUsers, getWeatherCacheTime, type instructionBase, isCI, isCollaborator, isDeepEqual, isDevelopment, isE2E, isFirefox, isOwner, isProduction, isSameDay, isTestingDevice, isTextFile, isValidUsername, isValidUuidV4, pageSizes, removeParam, removeUser, reorderApps, replaceLinks, storage, syncGoogleCalendar, updateApp, updateCalendarEvent, updateCollaboration, updateGuest, updateMessage, updateThread, updateUser, uploadUserImage, useAppMetadata, useComputedValue, useCookieOrLocalStorage, useCountdown, useDeviceInfo, useHasHydrated, useLocalStorage, usePWAInstall, useStoreMetadata, useSyncedState, useThreadMetadata, utcToday, validateFile };
|
package/dist/index.js
CHANGED
|
@@ -2907,7 +2907,7 @@ function checkThreadSummaryLimit({
|
|
|
2907
2907
|
function isValidUsername(username) {
|
|
2908
2908
|
return /^[a-zA-Z0-9]{3,20}$/.test(username);
|
|
2909
2909
|
}
|
|
2910
|
-
var import_i18n_iso_countries, isSameDay, GUEST_TASKS_COUNT, MEMBER_TASKS_COUNT, PLUS_TASKS_COUNT, getClientHostname, hostname, CHRRY_URL, FREE_DAYS, PLUS_PRICE, PRO_PRICE, CREDITS_PRICE, ADDITIONAL_CREDITS, MAX_TOOL_CALLS_PER_MESSAGE, WS_URL, WS_SERVER_URL, addParam, FE_PORT, API_PORT, FRONTEND_URL, PROD_FRONTEND_URL, isE2E, API_URL, apiFetch, PROMPT_LIMITS, expenseCategory, budgetCategory, extensionSuggestions, storage, pageSizes, now, utcToday, getExtensionUrls, getBrowserAPI, BrowserInstance, getMetadata, removeParam, isFirefox, config, VERSION, getSlugFromPathname, getInstructionConfig, getBrowserIdentity, THREAD_SUMMARY_LIMITS, getRedirectURL, getDailyImageLimit, isCollaborator, PDF_LIMITS, MAX_FILE_LIMITS, MAX_FILE_SIZES, OWNER_CREDITS, isDeepEqual;
|
|
2910
|
+
var import_i18n_iso_countries, isSameDay, GUEST_TASKS_COUNT, MEMBER_TASKS_COUNT, PLUS_TASKS_COUNT, getClientHostname, hostname, CHRRY_URL, FREE_DAYS, PLUS_PRICE, PRO_PRICE, CREDITS_PRICE, ADDITIONAL_CREDITS, MAX_TOOL_CALLS_PER_MESSAGE, WS_URL, WS_SERVER_URL, addParam, FE_PORT, API_PORT, FRONTEND_URL, PROD_FRONTEND_URL, isE2E, API_INTERNAL_URL, API_URL, apiFetch, PROMPT_LIMITS, expenseCategory, budgetCategory, extensionSuggestions, storage, pageSizes, now, utcToday, getExtensionUrls, getBrowserAPI, BrowserInstance, getMetadata, removeParam, isFirefox, config, VERSION, getSlugFromPathname, getInstructionConfig, getBrowserIdentity, THREAD_SUMMARY_LIMITS, getRedirectURL, getDailyImageLimit, isCollaborator, PDF_LIMITS, MAX_FILE_LIMITS, MAX_FILE_SIZES, OWNER_CREDITS, isDeepEqual;
|
|
2911
2911
|
var init_utils = __esm({
|
|
2912
2912
|
"utils/index.ts"() {
|
|
2913
2913
|
"use strict";
|
|
@@ -2961,6 +2961,7 @@ var init_utils = __esm({
|
|
|
2961
2961
|
FRONTEND_URL = isTestingDevice ? `http://192.168.2.27:${FE_PORT}` : isDevelopment ? `http://localhost:${FE_PORT}` : CHRRY_URL;
|
|
2962
2962
|
PROD_FRONTEND_URL = CHRRY_URL;
|
|
2963
2963
|
isE2E = getEnv().VITE_TESTING_ENV === "e2e" || getEnv().TESTING_ENV === "e2e";
|
|
2964
|
+
API_INTERNAL_URL = getEnv().VITE_API_INTERNAL_URL;
|
|
2964
2965
|
API_URL = getEnv().VITE_API_URL || (isTestingDevice ? `http://192.168.2.27:${API_PORT}/api` : isDevelopment ? `http://localhost:${API_PORT}/api` : isE2E ? "https://e2e.chrry.dev/api" : "https://chrry.dev/api");
|
|
2965
2966
|
apiFetch = (url, options) => {
|
|
2966
2967
|
return fetch(url, {
|
|
@@ -3141,7 +3142,7 @@ var init_utils = __esm({
|
|
|
3141
3142
|
};
|
|
3142
3143
|
isFirefox = typeof navigator !== "undefined" && navigator?.userAgent?.includes("Firefox");
|
|
3143
3144
|
config = getSiteConfig(getClientHostname());
|
|
3144
|
-
VERSION = config.version || "1.6.
|
|
3145
|
+
VERSION = config.version || "1.6.95";
|
|
3145
3146
|
getSlugFromPathname = (path) => {
|
|
3146
3147
|
return getAppAndStoreSlugs(path, {
|
|
3147
3148
|
defaultAppSlug: config.slug,
|
|
@@ -24690,7 +24691,7 @@ function DataProvider({ children, ...rest }) {
|
|
|
24690
24691
|
const [instructions, setInstructions] = (0, import_react21.useState)([]);
|
|
24691
24692
|
const [affiliateStats, setAffiliateStats] = (0, import_react21.useState)(null);
|
|
24692
24693
|
const [loadingAffiliateStats, setLoadingAffiliateStats] = (0, import_react21.useState)(false);
|
|
24693
|
-
const VERSION4 = "1.6.
|
|
24694
|
+
const VERSION4 = "1.6.95";
|
|
24694
24695
|
const [weather, setWeather] = useLocalStorage2("weather", user?.weather || guest?.weather || void 0);
|
|
24695
24696
|
const {
|
|
24696
24697
|
API_URL: API_URL2,
|
|
@@ -66686,6 +66687,7 @@ var init_hooks = __esm({
|
|
|
66686
66687
|
var index_exports = {};
|
|
66687
66688
|
__export(index_exports, {
|
|
66688
66689
|
ADDITIONAL_CREDITS: () => ADDITIONAL_CREDITS,
|
|
66690
|
+
API_INTERNAL_URL: () => API_INTERNAL_URL,
|
|
66689
66691
|
API_URL: () => API_URL,
|
|
66690
66692
|
BrowserInstance: () => BrowserInstance,
|
|
66691
66693
|
CHRRY_URL: () => CHRRY_URL,
|
|
@@ -66926,6 +66928,7 @@ function HistoryRouterProvider({
|
|
|
66926
66928
|
// Annotate the CommonJS export names for ESM import in node:
|
|
66927
66929
|
0 && (module.exports = {
|
|
66928
66930
|
ADDITIONAL_CREDITS,
|
|
66931
|
+
API_INTERNAL_URL,
|
|
66929
66932
|
API_URL,
|
|
66930
66933
|
BrowserInstance,
|
|
66931
66934
|
CHRRY_URL,
|