@chrryai/chrry 1.2.68 → 1.2.70

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/Chrry.module.scss CHANGED
@@ -54,10 +54,6 @@
54
54
  align-items: center;
55
55
  gap: toRem.toRem(10);
56
56
  margin-top: toRem.toRem(10);
57
- align-items: center;
58
- justify-content: center;
59
- position: absolute;
60
- top: toRem.toRem(10);
61
57
  width: 100%;
62
58
  }
63
59
 
@@ -54,10 +54,6 @@
54
54
  align-items: center;
55
55
  gap: toRem.toRem(10);
56
56
  margin-top: toRem.toRem(10);
57
- align-items: center;
58
- justify-content: center;
59
- position: absolute;
60
- top: toRem.toRem(10);
61
57
  width: 100%;
62
58
  }
63
59
 
package/dist/index.d.mts CHANGED
@@ -782,7 +782,7 @@ declare const isFirefox: boolean;
782
782
  declare function getFlag({ code }: {
783
783
  code?: string;
784
784
  }): string;
785
- declare const VERSION = "1.2.68";
785
+ declare const VERSION = "1.2.70";
786
786
  type instructionBase = {
787
787
  id: string;
788
788
  title: string;
@@ -843,12 +843,7 @@ declare const getDailyImageLimit: ({ member, guest, }: {
843
843
  }) => number;
844
844
  declare function isValidUsername(username: string): boolean;
845
845
 
846
- declare const isCollaborator: (thread: thread | {
847
- collaborations?: {
848
- user: user;
849
- collaboration: collaboration;
850
- }[] | null;
851
- }, userId?: string, status?: "active" | "pending") => boolean;
846
+ declare const isCollaborator: (thread: thread, userId?: string, status?: "active" | "pending") => boolean;
852
847
  declare const PDF_LIMITS: {
853
848
  initial: number;
854
849
  increment: number;
@@ -1526,6 +1521,72 @@ declare const getActions: ({ API_URL, token, }: {
1526
1521
  } | undefined>;
1527
1522
  };
1528
1523
 
1524
+ declare const aiAgentCapabilitiesSchema: z.ZodObject<{
1525
+ text: z.ZodDefault<z.ZodBoolean>;
1526
+ image: z.ZodDefault<z.ZodBoolean>;
1527
+ audio: z.ZodDefault<z.ZodBoolean>;
1528
+ video: z.ZodDefault<z.ZodBoolean>;
1529
+ webSearch: z.ZodDefault<z.ZodBoolean>;
1530
+ imageGeneration: z.ZodDefault<z.ZodBoolean>;
1531
+ codeExecution: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1532
+ pdf: z.ZodDefault<z.ZodBoolean>;
1533
+ }, z.core.$strip>;
1534
+ declare const aiAgentSchema: z.ZodObject<{
1535
+ id: z.ZodOptional<z.ZodString>;
1536
+ name: z.ZodString;
1537
+ displayName: z.ZodString;
1538
+ version: z.ZodDefault<z.ZodString>;
1539
+ apiURL: z.ZodUnion<[z.ZodString, z.ZodString]>;
1540
+ description: z.ZodOptional<z.ZodString>;
1541
+ state: z.ZodDefault<z.ZodEnum<{
1542
+ active: "active";
1543
+ testing: "testing";
1544
+ inactive: "inactive";
1545
+ }>>;
1546
+ creditCost: z.ZodDefault<z.ZodNumber>;
1547
+ modelId: z.ZodString;
1548
+ userId: z.ZodOptional<z.ZodString>;
1549
+ guestId: z.ZodOptional<z.ZodString>;
1550
+ order: z.ZodDefault<z.ZodNumber>;
1551
+ maxPromptSize: z.ZodOptional<z.ZodNumber>;
1552
+ capabilities: z.ZodDefault<z.ZodObject<{
1553
+ text: z.ZodDefault<z.ZodBoolean>;
1554
+ image: z.ZodDefault<z.ZodBoolean>;
1555
+ audio: z.ZodDefault<z.ZodBoolean>;
1556
+ video: z.ZodDefault<z.ZodBoolean>;
1557
+ webSearch: z.ZodDefault<z.ZodBoolean>;
1558
+ imageGeneration: z.ZodDefault<z.ZodBoolean>;
1559
+ codeExecution: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1560
+ pdf: z.ZodDefault<z.ZodBoolean>;
1561
+ }, z.core.$strip>>;
1562
+ authorization: z.ZodDefault<z.ZodEnum<{
1563
+ user: "user";
1564
+ subscriber: "subscriber";
1565
+ guest: "guest";
1566
+ all: "all";
1567
+ }>>;
1568
+ }, z.core.$strip>;
1569
+ declare const createCustomAiAgentSchema: z.ZodObject<{
1570
+ name: z.ZodString;
1571
+ apiKey: z.ZodString;
1572
+ displayName: z.ZodOptional<z.ZodString>;
1573
+ modelId: z.ZodOptional<z.ZodString>;
1574
+ apiURL: z.ZodOptional<z.ZodString>;
1575
+ capabilities: z.ZodOptional<z.ZodObject<{
1576
+ text: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1577
+ image: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1578
+ audio: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1579
+ video: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1580
+ webSearch: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1581
+ imageGeneration: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1582
+ codeExecution: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
1583
+ pdf: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1584
+ }, z.core.$strip>>;
1585
+ }, z.core.$strip>;
1586
+ type AiAgent = z.infer<typeof aiAgentSchema>;
1587
+ type AiAgentCapabilities = z.infer<typeof aiAgentCapabilitiesSchema>;
1588
+ type CreateCustomAiAgent = z.infer<typeof createCustomAiAgentSchema>;
1589
+
1529
1590
  declare function Sidebar({ useExtensionIcon, }: {
1530
1591
  useExtensionIcon?: (slug?: string) => void;
1531
1592
  }): React.JSX.Element;
@@ -1555,4 +1616,4 @@ interface HistoryRouterProviderProps {
1555
1616
  */
1556
1617
  declare function HistoryRouterProvider({ children, }: HistoryRouterProviderProps): React.JSX.Element;
1557
1618
 
1558
- 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, getThreadId, getThreads, getUser, getUsers, getWeatherCacheTime, type instructionBase, isCI, isCollaborator, isDeepEqual, isDevelopment, isE2E, isFirefox, isOwner, isValidUsername, isValidUuidV4, pageSizes, removeParam, removeUser, reorderApps, storage, syncGoogleCalendar, updateApp, updateCalendarEvent, updateCollaboration, updateGuest, updateMessage, updateThread, updateUser, uploadUserImage, useCountdown, useDeviceInfo, useHasHydrated, useLocalStorage, usePWAInstall };
1619
+ export { ADDITIONAL_CREDITS, API_URL, type AiAgent, type AiAgentCapabilities, type ApiActions, BrowserInstance, CHRRY_URL, CREDITS_PRICE, type CalendarEventFormData, Chrry, type CreateCustomAiAgent, 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, aiAgentCapabilitiesSchema, aiAgentSchema, apiFetch, type appFormData, appSchema, budgetCategory, capitalizeFirstLetter, checkIsExtension, checkThreadSummaryLimit, createApp, createCalendarEvent, createCustomAiAgentSchema, 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, getThreadId, getThreads, getUser, getUsers, getWeatherCacheTime, type instructionBase, isCI, isCollaborator, isDeepEqual, isDevelopment, isE2E, isFirefox, isOwner, isValidUsername, isValidUuidV4, 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
@@ -782,7 +782,7 @@ declare const isFirefox: boolean;
782
782
  declare function getFlag({ code }: {
783
783
  code?: string;
784
784
  }): string;
785
- declare const VERSION = "1.2.68";
785
+ declare const VERSION = "1.2.70";
786
786
  type instructionBase = {
787
787
  id: string;
788
788
  title: string;
@@ -843,12 +843,7 @@ declare const getDailyImageLimit: ({ member, guest, }: {
843
843
  }) => number;
844
844
  declare function isValidUsername(username: string): boolean;
845
845
 
846
- declare const isCollaborator: (thread: thread | {
847
- collaborations?: {
848
- user: user;
849
- collaboration: collaboration;
850
- }[] | null;
851
- }, userId?: string, status?: "active" | "pending") => boolean;
846
+ declare const isCollaborator: (thread: thread, userId?: string, status?: "active" | "pending") => boolean;
852
847
  declare const PDF_LIMITS: {
853
848
  initial: number;
854
849
  increment: number;
@@ -1526,6 +1521,72 @@ declare const getActions: ({ API_URL, token, }: {
1526
1521
  } | undefined>;
1527
1522
  };
1528
1523
 
1524
+ declare const aiAgentCapabilitiesSchema: z.ZodObject<{
1525
+ text: z.ZodDefault<z.ZodBoolean>;
1526
+ image: z.ZodDefault<z.ZodBoolean>;
1527
+ audio: z.ZodDefault<z.ZodBoolean>;
1528
+ video: z.ZodDefault<z.ZodBoolean>;
1529
+ webSearch: z.ZodDefault<z.ZodBoolean>;
1530
+ imageGeneration: z.ZodDefault<z.ZodBoolean>;
1531
+ codeExecution: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1532
+ pdf: z.ZodDefault<z.ZodBoolean>;
1533
+ }, z.core.$strip>;
1534
+ declare const aiAgentSchema: z.ZodObject<{
1535
+ id: z.ZodOptional<z.ZodString>;
1536
+ name: z.ZodString;
1537
+ displayName: z.ZodString;
1538
+ version: z.ZodDefault<z.ZodString>;
1539
+ apiURL: z.ZodUnion<[z.ZodString, z.ZodString]>;
1540
+ description: z.ZodOptional<z.ZodString>;
1541
+ state: z.ZodDefault<z.ZodEnum<{
1542
+ active: "active";
1543
+ testing: "testing";
1544
+ inactive: "inactive";
1545
+ }>>;
1546
+ creditCost: z.ZodDefault<z.ZodNumber>;
1547
+ modelId: z.ZodString;
1548
+ userId: z.ZodOptional<z.ZodString>;
1549
+ guestId: z.ZodOptional<z.ZodString>;
1550
+ order: z.ZodDefault<z.ZodNumber>;
1551
+ maxPromptSize: z.ZodOptional<z.ZodNumber>;
1552
+ capabilities: z.ZodDefault<z.ZodObject<{
1553
+ text: z.ZodDefault<z.ZodBoolean>;
1554
+ image: z.ZodDefault<z.ZodBoolean>;
1555
+ audio: z.ZodDefault<z.ZodBoolean>;
1556
+ video: z.ZodDefault<z.ZodBoolean>;
1557
+ webSearch: z.ZodDefault<z.ZodBoolean>;
1558
+ imageGeneration: z.ZodDefault<z.ZodBoolean>;
1559
+ codeExecution: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1560
+ pdf: z.ZodDefault<z.ZodBoolean>;
1561
+ }, z.core.$strip>>;
1562
+ authorization: z.ZodDefault<z.ZodEnum<{
1563
+ user: "user";
1564
+ subscriber: "subscriber";
1565
+ guest: "guest";
1566
+ all: "all";
1567
+ }>>;
1568
+ }, z.core.$strip>;
1569
+ declare const createCustomAiAgentSchema: z.ZodObject<{
1570
+ name: z.ZodString;
1571
+ apiKey: z.ZodString;
1572
+ displayName: z.ZodOptional<z.ZodString>;
1573
+ modelId: z.ZodOptional<z.ZodString>;
1574
+ apiURL: z.ZodOptional<z.ZodString>;
1575
+ capabilities: z.ZodOptional<z.ZodObject<{
1576
+ text: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1577
+ image: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1578
+ audio: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1579
+ video: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1580
+ webSearch: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1581
+ imageGeneration: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1582
+ codeExecution: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
1583
+ pdf: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1584
+ }, z.core.$strip>>;
1585
+ }, z.core.$strip>;
1586
+ type AiAgent = z.infer<typeof aiAgentSchema>;
1587
+ type AiAgentCapabilities = z.infer<typeof aiAgentCapabilitiesSchema>;
1588
+ type CreateCustomAiAgent = z.infer<typeof createCustomAiAgentSchema>;
1589
+
1529
1590
  declare function Sidebar({ useExtensionIcon, }: {
1530
1591
  useExtensionIcon?: (slug?: string) => void;
1531
1592
  }): React.JSX.Element;
@@ -1555,4 +1616,4 @@ interface HistoryRouterProviderProps {
1555
1616
  */
1556
1617
  declare function HistoryRouterProvider({ children, }: HistoryRouterProviderProps): React.JSX.Element;
1557
1618
 
1558
- 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, getThreadId, getThreads, getUser, getUsers, getWeatherCacheTime, type instructionBase, isCI, isCollaborator, isDeepEqual, isDevelopment, isE2E, isFirefox, isOwner, isValidUsername, isValidUuidV4, pageSizes, removeParam, removeUser, reorderApps, storage, syncGoogleCalendar, updateApp, updateCalendarEvent, updateCollaboration, updateGuest, updateMessage, updateThread, updateUser, uploadUserImage, useCountdown, useDeviceInfo, useHasHydrated, useLocalStorage, usePWAInstall };
1619
+ export { ADDITIONAL_CREDITS, API_URL, type AiAgent, type AiAgentCapabilities, type ApiActions, BrowserInstance, CHRRY_URL, CREDITS_PRICE, type CalendarEventFormData, Chrry, type CreateCustomAiAgent, 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, aiAgentCapabilitiesSchema, aiAgentSchema, apiFetch, type appFormData, appSchema, budgetCategory, capitalizeFirstLetter, checkIsExtension, checkThreadSummaryLimit, createApp, createCalendarEvent, createCustomAiAgentSchema, 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, getThreadId, getThreads, getUser, getUsers, getWeatherCacheTime, type instructionBase, isCI, isCollaborator, isDeepEqual, isDevelopment, isE2E, isFirefox, isOwner, isValidUsername, isValidUuidV4, pageSizes, removeParam, removeUser, reorderApps, storage, syncGoogleCalendar, updateApp, updateCalendarEvent, updateCollaboration, updateGuest, updateMessage, updateThread, updateUser, uploadUserImage, useCountdown, useDeviceInfo, useHasHydrated, useLocalStorage, usePWAInstall };