@chrryai/chrry 1.1.95 → 1.1.98

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/README.md CHANGED
@@ -107,7 +107,7 @@ import Chrry from "@chrryai/chrry/Chrry"
107
107
 
108
108
  export default function App({ children, session }) {
109
109
  return (
110
- <Chrry session={session} viewPortWidth="100vw" viewPortHeight="100vh">
110
+ <Chrry session={session}>
111
111
  {children}
112
112
  </Chrry>
113
113
  )
@@ -219,14 +219,14 @@ Chrry is built with:
219
219
 
220
220
  ## 🤝 Contributing
221
221
 
222
- We welcome contributions! Chrry is extracted from [Vex](https://github.com/ibsukru/vex), a production AI platform.
222
+ We welcome contributions! Chrry is extracted from [Vex](https://vex.chrry.ai), a production AI platform.
223
223
 
224
224
  ### Development
225
225
 
226
226
  ```bash
227
227
  # Clone the monorepo
228
- git clone https://github.com/ibsukru/vex.git
229
- cd vex
228
+ git clone https://github.com/chrryai/chrry.git
229
+ cd chrry
230
230
 
231
231
  # Install dependencies
232
232
  pnpm install
@@ -261,8 +261,10 @@ MIT License - see [LICENSE](LICENSE) for details.
261
261
  ✅ **i18n** - 10 languages out of the box
262
262
  ✅ **TypeScript** - Full type safety throughout
263
263
 
264
- **This is a $10M+ component library, open-sourced for free.** 🎁
264
+ **This is a $10M+ component library, open-sourced.** 🎁
265
265
 
266
266
  ---
267
267
 
268
268
  **Built with ❤️ by [@ibsukru](https://github.com/ibsukru)**
269
+
270
+ iliyan@chrry.ai
package/dist/index.d.mts CHANGED
@@ -1053,8 +1053,9 @@ declare function reorderApps({ token, apps, autoInstall, API_URL, }: {
1053
1053
  autoInstall?: boolean;
1054
1054
  API_URL?: string;
1055
1055
  }): Promise<any>;
1056
- declare const getSession: ({ deviceId, fingerprint, gift, isStandalone, appId, token, API_URL, VERSION, app, appSlug, agentName, chrryUrl, routeType, userAgent, screenWidth, screenHeight, }: {
1056
+ declare const getSession: ({ deviceId, fingerprint, gift, isStandalone, appId, token, API_URL, VERSION, app, appSlug, agentName, chrryUrl, routeType, userAgent, pathname, screenWidth, screenHeight, translate, locale, }: {
1057
1057
  appId?: string;
1058
+ pathname?: string;
1058
1059
  deviceId: string | undefined;
1059
1060
  fingerprint?: string;
1060
1061
  gift?: string;
@@ -1070,11 +1071,17 @@ declare const getSession: ({ deviceId, fingerprint, gift, isStandalone, appId, t
1070
1071
  userAgent?: string;
1071
1072
  screenWidth?: number;
1072
1073
  screenHeight?: number;
1074
+ translate?: boolean;
1075
+ locale?: string;
1073
1076
  }) => Promise<session | {
1074
1077
  error?: string;
1075
1078
  status?: number;
1076
1079
  } | undefined>;
1077
1080
  type ApiActions = ReturnType<typeof getActions>;
1081
+ declare const getApps: ({ API_URL, token, }?: {
1082
+ API_URL?: string;
1083
+ token?: string;
1084
+ }) => Promise<Paginated<appWithStore>>;
1078
1085
  declare const getActions: ({ API_URL, token, }: {
1079
1086
  API_URL: string;
1080
1087
  token: string;
@@ -1180,6 +1187,7 @@ declare const getActions: ({ API_URL, token, }: {
1180
1187
  updateApp: (id: string, data: appFormData) => Promise<any>;
1181
1188
  deleteApp: (id: string) => Promise<any>;
1182
1189
  reorderApps: (apps: app[], autoInstall?: boolean) => Promise<any>;
1190
+ getApps: () => Promise<Paginated<appWithStore>>;
1183
1191
  getSession: (params: {
1184
1192
  deviceId: string | undefined;
1185
1193
  fingerprint?: string;
@@ -1363,7 +1371,7 @@ declare const isFirefox: boolean;
1363
1371
  declare function getFlag({ code }: {
1364
1372
  code?: string;
1365
1373
  }): string;
1366
- declare const VERSION = "1.1.95";
1374
+ declare const VERSION = "1.1.98";
1367
1375
  type instructionBase = {
1368
1376
  id: string;
1369
1377
  title: string;
@@ -1377,6 +1385,10 @@ type instructionBase = {
1377
1385
  * Supports app-specific instructions with weather, location, and time context
1378
1386
  * Fully internationalized with proper parameterization
1379
1387
  */
1388
+ declare const getSlugFromPathname: (path: string) => {
1389
+ appSlug: string;
1390
+ storeSlug: string;
1391
+ };
1380
1392
  declare const getInstructionConfig: ({ city, country, weather, t, }: {
1381
1393
  city?: string | null;
1382
1394
  country?: string | null;
@@ -1500,4 +1512,4 @@ interface HistoryRouterProviderProps {
1500
1512
  */
1501
1513
  declare function HistoryRouterProvider({ children, }: HistoryRouterProviderProps): React.JSX.Element;
1502
1514
 
1503
- export { ADDITIONAL_CREDITS, API_URL, type ApiActions, BrowserInstance, CHRRY_URL, CREDITS_PRICE, type CalendarEventFormData, Chrry, FREE_DAYS, FRONTEND_URL, HistoryRouterProvider, MAX_FILE_SIZES, MAX_TOOL_CALLS_PER_MESSAGE, OWNER_CREDITS, PDF_LIMITS, PLUS_PRICE, PROD_FRONTEND_URL, PROMPT_LIMITS, PRO_PRICE, Sidebar, Store, VERSION, WS_URL, addParam, apiFetch, budgetCategory, capitalizeFirstLetter, checkIsExtension, checkThreadSummaryLimit, createApp, createCalendarEvent, deleteApp, deleteCalendarEvent, deleteMemories, deleteMessage, deleteSubscription, exampleInstructions, expenseCategory, type expenseCategoryType, exportToGoogleCalendar, extensionSuggestions, generateAppMetadata, getActions, getBrowserAPI, getBrowserIdentity, getCalendarEvents, getDailyImageLimit, getExampleInstructions, getExtensionUrl, getFlag, getGuest, getHourlyLimit, getImageSrc, getInstructionConfig, getLastMessage, getMetadata, getRedirectURL, getSession, getThread, getThreads, getUser, getUsers, getWeatherCacheTime, type instructionBase, isCI, isCollaborator, isDeepEqual, isDevelopment, isE2E, isFirefox, isOwner, isValidUsername, pageSizes, removeParam, removeUser, reorderApps, storage, syncGoogleCalendar, updateApp, updateCalendarEvent, updateCollaboration, updateGuest, updateMessage, updateThread, updateUser, uploadUserImage, useCountdown, useDeviceInfo, useHasHydrated, useLocalStorage, usePWAInstall };
1515
+ export { ADDITIONAL_CREDITS, API_URL, type ApiActions, BrowserInstance, CHRRY_URL, CREDITS_PRICE, type CalendarEventFormData, Chrry, FREE_DAYS, FRONTEND_URL, HistoryRouterProvider, MAX_FILE_SIZES, MAX_TOOL_CALLS_PER_MESSAGE, OWNER_CREDITS, PDF_LIMITS, PLUS_PRICE, PROD_FRONTEND_URL, PROMPT_LIMITS, PRO_PRICE, Sidebar, Store, VERSION, WS_URL, addParam, apiFetch, budgetCategory, capitalizeFirstLetter, checkIsExtension, checkThreadSummaryLimit, createApp, createCalendarEvent, deleteApp, deleteCalendarEvent, deleteMemories, deleteMessage, deleteSubscription, exampleInstructions, expenseCategory, type expenseCategoryType, exportToGoogleCalendar, extensionSuggestions, generateAppMetadata, getActions, getApps, getBrowserAPI, getBrowserIdentity, getCalendarEvents, getDailyImageLimit, getExampleInstructions, getExtensionUrl, getFlag, getGuest, getHourlyLimit, getImageSrc, getInstructionConfig, getLastMessage, getMetadata, getRedirectURL, getSession, getSlugFromPathname, getThread, getThreads, getUser, getUsers, getWeatherCacheTime, type instructionBase, isCI, isCollaborator, isDeepEqual, isDevelopment, isE2E, isFirefox, isOwner, isValidUsername, pageSizes, removeParam, removeUser, reorderApps, storage, syncGoogleCalendar, updateApp, updateCalendarEvent, updateCollaboration, updateGuest, updateMessage, updateThread, updateUser, uploadUserImage, useCountdown, useDeviceInfo, useHasHydrated, useLocalStorage, usePWAInstall };
package/dist/index.d.ts CHANGED
@@ -1053,8 +1053,9 @@ declare function reorderApps({ token, apps, autoInstall, API_URL, }: {
1053
1053
  autoInstall?: boolean;
1054
1054
  API_URL?: string;
1055
1055
  }): Promise<any>;
1056
- declare const getSession: ({ deviceId, fingerprint, gift, isStandalone, appId, token, API_URL, VERSION, app, appSlug, agentName, chrryUrl, routeType, userAgent, screenWidth, screenHeight, }: {
1056
+ declare const getSession: ({ deviceId, fingerprint, gift, isStandalone, appId, token, API_URL, VERSION, app, appSlug, agentName, chrryUrl, routeType, userAgent, pathname, screenWidth, screenHeight, translate, locale, }: {
1057
1057
  appId?: string;
1058
+ pathname?: string;
1058
1059
  deviceId: string | undefined;
1059
1060
  fingerprint?: string;
1060
1061
  gift?: string;
@@ -1070,11 +1071,17 @@ declare const getSession: ({ deviceId, fingerprint, gift, isStandalone, appId, t
1070
1071
  userAgent?: string;
1071
1072
  screenWidth?: number;
1072
1073
  screenHeight?: number;
1074
+ translate?: boolean;
1075
+ locale?: string;
1073
1076
  }) => Promise<session | {
1074
1077
  error?: string;
1075
1078
  status?: number;
1076
1079
  } | undefined>;
1077
1080
  type ApiActions = ReturnType<typeof getActions>;
1081
+ declare const getApps: ({ API_URL, token, }?: {
1082
+ API_URL?: string;
1083
+ token?: string;
1084
+ }) => Promise<Paginated<appWithStore>>;
1078
1085
  declare const getActions: ({ API_URL, token, }: {
1079
1086
  API_URL: string;
1080
1087
  token: string;
@@ -1180,6 +1187,7 @@ declare const getActions: ({ API_URL, token, }: {
1180
1187
  updateApp: (id: string, data: appFormData) => Promise<any>;
1181
1188
  deleteApp: (id: string) => Promise<any>;
1182
1189
  reorderApps: (apps: app[], autoInstall?: boolean) => Promise<any>;
1190
+ getApps: () => Promise<Paginated<appWithStore>>;
1183
1191
  getSession: (params: {
1184
1192
  deviceId: string | undefined;
1185
1193
  fingerprint?: string;
@@ -1363,7 +1371,7 @@ declare const isFirefox: boolean;
1363
1371
  declare function getFlag({ code }: {
1364
1372
  code?: string;
1365
1373
  }): string;
1366
- declare const VERSION = "1.1.95";
1374
+ declare const VERSION = "1.1.98";
1367
1375
  type instructionBase = {
1368
1376
  id: string;
1369
1377
  title: string;
@@ -1377,6 +1385,10 @@ type instructionBase = {
1377
1385
  * Supports app-specific instructions with weather, location, and time context
1378
1386
  * Fully internationalized with proper parameterization
1379
1387
  */
1388
+ declare const getSlugFromPathname: (path: string) => {
1389
+ appSlug: string;
1390
+ storeSlug: string;
1391
+ };
1380
1392
  declare const getInstructionConfig: ({ city, country, weather, t, }: {
1381
1393
  city?: string | null;
1382
1394
  country?: string | null;
@@ -1500,4 +1512,4 @@ interface HistoryRouterProviderProps {
1500
1512
  */
1501
1513
  declare function HistoryRouterProvider({ children, }: HistoryRouterProviderProps): React.JSX.Element;
1502
1514
 
1503
- export { ADDITIONAL_CREDITS, API_URL, type ApiActions, BrowserInstance, CHRRY_URL, CREDITS_PRICE, type CalendarEventFormData, Chrry, FREE_DAYS, FRONTEND_URL, HistoryRouterProvider, MAX_FILE_SIZES, MAX_TOOL_CALLS_PER_MESSAGE, OWNER_CREDITS, PDF_LIMITS, PLUS_PRICE, PROD_FRONTEND_URL, PROMPT_LIMITS, PRO_PRICE, Sidebar, Store, VERSION, WS_URL, addParam, apiFetch, budgetCategory, capitalizeFirstLetter, checkIsExtension, checkThreadSummaryLimit, createApp, createCalendarEvent, deleteApp, deleteCalendarEvent, deleteMemories, deleteMessage, deleteSubscription, exampleInstructions, expenseCategory, type expenseCategoryType, exportToGoogleCalendar, extensionSuggestions, generateAppMetadata, getActions, getBrowserAPI, getBrowserIdentity, getCalendarEvents, getDailyImageLimit, getExampleInstructions, getExtensionUrl, getFlag, getGuest, getHourlyLimit, getImageSrc, getInstructionConfig, getLastMessage, getMetadata, getRedirectURL, getSession, getThread, getThreads, getUser, getUsers, getWeatherCacheTime, type instructionBase, isCI, isCollaborator, isDeepEqual, isDevelopment, isE2E, isFirefox, isOwner, isValidUsername, pageSizes, removeParam, removeUser, reorderApps, storage, syncGoogleCalendar, updateApp, updateCalendarEvent, updateCollaboration, updateGuest, updateMessage, updateThread, updateUser, uploadUserImage, useCountdown, useDeviceInfo, useHasHydrated, useLocalStorage, usePWAInstall };
1515
+ export { ADDITIONAL_CREDITS, API_URL, type ApiActions, BrowserInstance, CHRRY_URL, CREDITS_PRICE, type CalendarEventFormData, Chrry, FREE_DAYS, FRONTEND_URL, HistoryRouterProvider, MAX_FILE_SIZES, MAX_TOOL_CALLS_PER_MESSAGE, OWNER_CREDITS, PDF_LIMITS, PLUS_PRICE, PROD_FRONTEND_URL, PROMPT_LIMITS, PRO_PRICE, Sidebar, Store, VERSION, WS_URL, addParam, apiFetch, budgetCategory, capitalizeFirstLetter, checkIsExtension, checkThreadSummaryLimit, createApp, createCalendarEvent, deleteApp, deleteCalendarEvent, deleteMemories, deleteMessage, deleteSubscription, exampleInstructions, expenseCategory, type expenseCategoryType, exportToGoogleCalendar, extensionSuggestions, generateAppMetadata, getActions, getApps, getBrowserAPI, getBrowserIdentity, getCalendarEvents, getDailyImageLimit, getExampleInstructions, getExtensionUrl, getFlag, getGuest, getHourlyLimit, getImageSrc, getInstructionConfig, getLastMessage, getMetadata, getRedirectURL, getSession, getSlugFromPathname, getThread, getThreads, getUser, getUsers, getWeatherCacheTime, type instructionBase, isCI, isCollaborator, isDeepEqual, isDevelopment, isE2E, isFirefox, isOwner, isValidUsername, pageSizes, removeParam, removeUser, reorderApps, storage, syncGoogleCalendar, updateApp, updateCalendarEvent, updateCollaboration, updateGuest, updateMessage, updateThread, updateUser, uploadUserImage, useCountdown, useDeviceInfo, useHasHydrated, useLocalStorage, usePWAInstall };