@sciol/xyzen 0.3.5 → 0.3.7

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.
Files changed (83) hide show
  1. package/dist/app/App.d.ts +1 -1
  2. package/dist/app/AppFullscreen.d.ts +1 -1
  3. package/dist/app/AppSide.d.ts +6 -0
  4. package/dist/app/explore/AgentExploreContent.d.ts +3 -0
  5. package/dist/app/explore/AgentExploreTab.d.ts +2 -0
  6. package/dist/app/explore/McpExploreContent.d.ts +3 -0
  7. package/dist/app/explore/McpExploreTab.d.ts +2 -0
  8. package/dist/app/explore/page.d.ts +1 -0
  9. package/dist/components/animate-ui/components/buttons/button.d.ts +9 -0
  10. package/dist/components/animate-ui/components/buttons/github-stars.d.ts +10 -0
  11. package/dist/components/animate-ui/components/headless/checkbox.d.ts +11 -0
  12. package/dist/components/animate-ui/components/radix/dropdown-menu.d.ts +37 -0
  13. package/dist/components/animate-ui/components/radix/tooltip.d.ts +10 -0
  14. package/dist/components/animate-ui/primitives/animate/github-stars.d.ts +40 -0
  15. package/dist/components/animate-ui/primitives/animate/slot.d.ts +17 -0
  16. package/dist/components/animate-ui/primitives/buttons/button.d.ts +8 -0
  17. package/dist/components/animate-ui/primitives/buttons/liquid.d.ts +10 -0
  18. package/dist/components/animate-ui/primitives/effects/auto-height.d.ts +11 -0
  19. package/dist/components/animate-ui/primitives/effects/highlight.d.ts +92 -0
  20. package/dist/components/animate-ui/primitives/effects/particles.d.ts +25 -0
  21. package/dist/components/animate-ui/primitives/headless/checkbox.d.ts +16 -0
  22. package/dist/components/animate-ui/primitives/headless/dialog.d.ts +42 -0
  23. package/dist/components/{base/Modal.d.ts → animate-ui/primitives/headless/modal.d.ts} +1 -1
  24. package/dist/components/animate-ui/primitives/radix/dropdown-menu.d.ts +57 -0
  25. package/dist/components/animate-ui/primitives/radix/tabs.d.ts +32 -0
  26. package/dist/components/animate-ui/primitives/radix/tooltip.d.ts +21 -0
  27. package/dist/components/animate-ui/primitives/texts/sliding-number.d.ts +16 -0
  28. package/dist/components/base/Badge.d.ts +1 -1
  29. package/dist/components/charts/index.d.ts +2 -2
  30. package/dist/components/features/ExploreMcpCard.d.ts +6 -0
  31. package/dist/components/features/ExploreMcpListItem.d.ts +6 -0
  32. package/dist/components/layouts/ActivityBar.d.ts +8 -0
  33. package/dist/components/layouts/AgentExplorer.d.ts +1 -0
  34. package/dist/components/layouts/McpListModal.d.ts +1 -0
  35. package/dist/components/layouts/Workshop.d.ts +1 -0
  36. package/dist/components/layouts/WorkshopChat.d.ts +1 -0
  37. package/dist/components/layouts/XyzenAgent.d.ts +9 -3
  38. package/dist/components/shared/JsonDisplay.d.ts +1 -1
  39. package/dist/components/ui/3d-card.d.ts +23 -0
  40. package/dist/components/ui/3d-pin.d.ts +12 -0
  41. package/dist/components/ui/background-boxes.d.ts +7 -0
  42. package/dist/components/ui/background-gradient-animation.d.ts +16 -0
  43. package/dist/components/ui/bento-grid.d.ts +11 -0
  44. package/dist/components/ui/button.d.ts +10 -0
  45. package/dist/components/ui/layout-text-flip.d.ts +5 -0
  46. package/dist/components/ui/pagination.d.ts +13 -0
  47. package/dist/components/ui/shooting-stars.d.ts +14 -0
  48. package/dist/components/ui/spotlight-new.d.ts +13 -0
  49. package/dist/configs/chatThemes.d.ts +9 -0
  50. package/dist/hooks/use-auto-height.d.ts +10 -0
  51. package/dist/hooks/use-controlled-state.d.ts +8 -0
  52. package/dist/hooks/use-data-state.d.ts +4 -0
  53. package/dist/hooks/use-is-in-view.d.ts +12 -0
  54. package/dist/hooks/useWorkShopChat.d.ts +69 -0
  55. package/dist/hooks/useXyzenChat.d.ts +69 -0
  56. package/dist/lib/animations.d.ts +48 -0
  57. package/dist/lib/get-strict-context.d.ts +9 -0
  58. package/dist/lib/utils.d.ts +2 -0
  59. package/dist/marketplace/components/McpActivationProgress.d.ts +10 -0
  60. package/dist/marketplace/components/McpServerCard.d.ts +9 -0
  61. package/dist/marketplace/components/McpServerDetail.d.ts +7 -0
  62. package/dist/marketplace/components/UnifiedMcpMarketList.d.ts +8 -0
  63. package/dist/marketplace/hooks/useBohriumMcp.d.ts +61 -0
  64. package/dist/marketplace/index.d.ts +12 -0
  65. package/dist/marketplace/services/bohriumService.d.ts +34 -0
  66. package/dist/marketplace/types/bohrium.d.ts +129 -0
  67. package/dist/marketplace/utils/starredApps.d.ts +37 -0
  68. package/dist/service/mcpService.d.ts +2 -2
  69. package/dist/store/slices/agentSlice.d.ts +16 -1
  70. package/dist/store/slices/mcpSlice.d.ts +3 -3
  71. package/dist/store/slices/uiSlice.d.ts +9 -0
  72. package/dist/types/chartTypes.d.ts +7 -7
  73. package/dist/types/mcp.d.ts +42 -2
  74. package/dist/utils/chartDetection.d.ts +1 -1
  75. package/dist/utils/chartThemes.d.ts +4 -4
  76. package/dist/utils/mcpConverters.d.ts +32 -0
  77. package/dist/xyzen.css +1 -1
  78. package/dist/xyzen.es.js +104127 -87034
  79. package/dist/xyzen.umd.js +223 -128
  80. package/package.json +18 -5
  81. package/dist/app/LlmProviders.d.ts +0 -1
  82. package/dist/app/Mcp.d.ts +0 -1
  83. package/dist/test-charts.d.ts +0 -6
@@ -10,7 +10,7 @@ export type Agent = {
10
10
  user_id: string;
11
11
  require_tool_confirmation?: boolean;
12
12
  provider_id?: string | null;
13
- agent_type: 'regular' | 'graph';
13
+ agent_type: "regular" | "graph" | "builtin" | "system";
14
14
  avatar?: string | null;
15
15
  tags?: string[] | null;
16
16
  model?: string | null;
@@ -18,8 +18,14 @@ export type Agent = {
18
18
  is_active?: boolean;
19
19
  created_at: string;
20
20
  updated_at: string;
21
- state_schema?: any;
21
+ state_schema?: Record<string, unknown>;
22
22
  node_count?: number;
23
23
  edge_count?: number;
24
+ is_published?: boolean;
25
+ is_official?: boolean;
24
26
  };
25
- export default function XyzenAgent(): import("react/jsx-runtime").JSX.Element;
27
+ interface XyzenAgentProps {
28
+ systemAgentType?: "chat" | "workshop" | "all";
29
+ }
30
+ export default function XyzenAgent({ systemAgentType, }: XyzenAgentProps): import("react/jsx-runtime").JSX.Element;
31
+ export {};
@@ -3,7 +3,7 @@ interface JsonDisplayProps {
3
3
  data: unknown;
4
4
  className?: string;
5
5
  compact?: boolean;
6
- variant?: 'default' | 'success' | 'error';
6
+ variant?: "default" | "success" | "error";
7
7
  hideHeader?: boolean;
8
8
  enableCharts?: boolean;
9
9
  }
@@ -0,0 +1,23 @@
1
+ import { default as React } from 'react';
2
+ export declare const CardContainer: ({ children, className, containerClassName, }: {
3
+ children?: React.ReactNode;
4
+ className?: string;
5
+ containerClassName?: string;
6
+ }) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const CardBody: ({ children, className, }: {
8
+ children: React.ReactNode;
9
+ className?: string;
10
+ }) => import("react/jsx-runtime").JSX.Element;
11
+ export declare const CardItem: ({ as: Tag, children, className, translateX, translateY, translateZ, rotateX, rotateY, rotateZ, ...rest }: {
12
+ as?: React.ElementType;
13
+ children: React.ReactNode;
14
+ className?: string;
15
+ translateX?: number | string;
16
+ translateY?: number | string;
17
+ translateZ?: number | string;
18
+ rotateX?: number | string;
19
+ rotateY?: number | string;
20
+ rotateZ?: number | string;
21
+ [key: string]: any;
22
+ }) => import("react/jsx-runtime").JSX.Element;
23
+ export declare const useMouseEnter: () => [boolean, React.Dispatch<React.SetStateAction<boolean>>];
@@ -0,0 +1,12 @@
1
+ import { default as React } from 'react';
2
+ export declare const PinContainer: ({ children, title, href, className, containerClassName, }: {
3
+ children: React.ReactNode;
4
+ title?: string;
5
+ href?: string;
6
+ className?: string;
7
+ containerClassName?: string;
8
+ }) => import("react/jsx-runtime").JSX.Element;
9
+ export declare const PinPerspective: ({ title, href, }: {
10
+ title?: string;
11
+ href?: string;
12
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ export declare const BoxesCore: ({ className, ...rest }: {
3
+ className?: string;
4
+ }) => import("react/jsx-runtime").JSX.Element;
5
+ export declare const Boxes: React.MemoExoticComponent<({ className, ...rest }: {
6
+ className?: string;
7
+ }) => import("react/jsx-runtime").JSX.Element>;
@@ -0,0 +1,16 @@
1
+ export declare const BackgroundGradientAnimation: ({ gradientBackgroundStart, gradientBackgroundEnd, firstColor, secondColor, thirdColor, fourthColor, fifthColor, pointerColor, size, blendingValue, children, className, interactive, containerClassName, }: {
2
+ gradientBackgroundStart?: string;
3
+ gradientBackgroundEnd?: string;
4
+ firstColor?: string;
5
+ secondColor?: string;
6
+ thirdColor?: string;
7
+ fourthColor?: string;
8
+ fifthColor?: string;
9
+ pointerColor?: string;
10
+ size?: string;
11
+ blendingValue?: string;
12
+ children?: React.ReactNode;
13
+ className?: string;
14
+ interactive?: boolean;
15
+ containerClassName?: string;
16
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,11 @@
1
+ export declare const BentoGrid: ({ className, children, }: {
2
+ className?: string;
3
+ children?: React.ReactNode;
4
+ }) => import("react/jsx-runtime").JSX.Element;
5
+ export declare const BentoGridItem: ({ className, title, description, header, icon, }: {
6
+ className?: string;
7
+ title?: string | React.ReactNode;
8
+ description?: string | React.ReactNode;
9
+ header?: React.ReactNode;
10
+ icon?: React.ReactNode;
11
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,10 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import * as React from "react";
3
+ declare const buttonVariants: (props?: ({
4
+ variant?: "link" | "default" | "outline" | "destructive" | "secondary" | "ghost" | null | undefined;
5
+ size?: "default" | "sm" | "lg" | "icon" | "icon-sm" | "icon-lg" | null | undefined;
6
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
+ declare function Button({ className, variant, size, asChild, ...props }: React.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
8
+ asChild?: boolean;
9
+ }): import("react/jsx-runtime").JSX.Element;
10
+ export { Button, buttonVariants };
@@ -0,0 +1,5 @@
1
+ export declare const LayoutTextFlip: ({ text, words, duration, }: {
2
+ text: string;
3
+ words: string[];
4
+ duration?: number;
5
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,13 @@
1
+ import { Button } from './button';
2
+ import * as React from "react";
3
+ declare function Pagination({ className, ...props }: React.ComponentProps<"nav">): import("react/jsx-runtime").JSX.Element;
4
+ declare function PaginationContent({ className, ...props }: React.ComponentProps<"ul">): import("react/jsx-runtime").JSX.Element;
5
+ declare function PaginationItem({ ...props }: React.ComponentProps<"li">): import("react/jsx-runtime").JSX.Element;
6
+ type PaginationLinkProps = {
7
+ isActive?: boolean;
8
+ } & Pick<React.ComponentProps<typeof Button>, "size"> & React.ComponentProps<"a">;
9
+ declare function PaginationLink({ className, isActive, size, ...props }: PaginationLinkProps): import("react/jsx-runtime").JSX.Element;
10
+ declare function PaginationPrevious({ className, ...props }: React.ComponentProps<typeof PaginationLink>): import("react/jsx-runtime").JSX.Element;
11
+ declare function PaginationNext({ className, ...props }: React.ComponentProps<typeof PaginationLink>): import("react/jsx-runtime").JSX.Element;
12
+ declare function PaginationEllipsis({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
13
+ export { Pagination, PaginationContent, PaginationLink, PaginationItem, PaginationPrevious, PaginationNext, PaginationEllipsis, };
@@ -0,0 +1,14 @@
1
+ import { default as React } from 'react';
2
+ interface ShootingStarsProps {
3
+ minSpeed?: number;
4
+ maxSpeed?: number;
5
+ minDelay?: number;
6
+ maxDelay?: number;
7
+ starColor?: string;
8
+ trailColor?: string;
9
+ starWidth?: number;
10
+ starHeight?: number;
11
+ className?: string;
12
+ }
13
+ export declare const ShootingStars: React.FC<ShootingStarsProps>;
14
+ export {};
@@ -0,0 +1,13 @@
1
+ type SpotlightProps = {
2
+ gradientFirst?: string;
3
+ gradientSecond?: string;
4
+ gradientThird?: string;
5
+ translateY?: number;
6
+ width?: number;
7
+ height?: number;
8
+ smallWidth?: number;
9
+ duration?: number;
10
+ xOffset?: number;
11
+ };
12
+ export declare const Spotlight: ({ gradientFirst, gradientSecond, gradientThird, translateY, width, height, smallWidth, duration, xOffset, }?: SpotlightProps) => import("react/jsx-runtime").JSX.Element;
13
+ export {};
@@ -0,0 +1,9 @@
1
+ import { XyzenChatConfig } from '../hooks/useXyzenChat';
2
+ import { WorkShopChatConfig } from '../hooks/useWorkShopChat';
3
+ export declare const XYZEN_CHAT_CONFIG: XyzenChatConfig;
4
+ export declare const WORKSHOP_CHAT_CONFIG: WorkShopChatConfig;
5
+ export declare const CHAT_THEMES: {
6
+ readonly xyzen: XyzenChatConfig;
7
+ readonly workshop: WorkShopChatConfig;
8
+ };
9
+ export type ChatThemeKey = keyof typeof CHAT_THEMES;
@@ -0,0 +1,10 @@
1
+ import * as React from "react";
2
+ type AutoHeightOptions = {
3
+ includeParentBox?: boolean;
4
+ includeSelfBox?: boolean;
5
+ };
6
+ export declare function useAutoHeight<T extends HTMLElement = HTMLDivElement>(deps?: React.DependencyList, options?: AutoHeightOptions): {
7
+ readonly ref: React.RefObject<T | null>;
8
+ readonly height: number;
9
+ };
10
+ export {};
@@ -0,0 +1,8 @@
1
+ interface CommonControlledStateProps<T> {
2
+ value?: T;
3
+ defaultValue?: T;
4
+ }
5
+ export declare function useControlledState<T, Rest extends any[] = []>(props: CommonControlledStateProps<T> & {
6
+ onChange?: (value: T, ...args: Rest) => void;
7
+ }): readonly [T, (next: T, ...args: Rest) => void];
8
+ export {};
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ type DataStateValue = string | boolean | null;
3
+ declare function useDataState<T extends HTMLElement = HTMLElement>(key: string, forwardedRef?: React.Ref<T | null>, onChange?: (value: DataStateValue) => void): [DataStateValue, React.RefObject<T | null>];
4
+ export { useDataState, type DataStateValue };
@@ -0,0 +1,12 @@
1
+ import { UseInViewOptions } from 'motion/react';
2
+ import * as React from "react";
3
+ interface UseIsInViewOptions {
4
+ inView?: boolean;
5
+ inViewOnce?: boolean;
6
+ inViewMargin?: UseInViewOptions["margin"];
7
+ }
8
+ declare function useIsInView<T extends HTMLElement = HTMLElement>(ref: React.Ref<T>, options?: UseIsInViewOptions): {
9
+ ref: React.RefObject<T | null>;
10
+ isInView: boolean;
11
+ };
12
+ export { useIsInView, type UseIsInViewOptions };
@@ -0,0 +1,69 @@
1
+ import { Message } from '../store/types';
2
+ export interface WorkShopChatConfig {
3
+ theme: "indigo" | "purple";
4
+ systemAgentId: string;
5
+ storageKeys: {
6
+ inputHeight: string;
7
+ historyPinned?: string;
8
+ };
9
+ defaultTitle: string;
10
+ placeholders: {
11
+ responding: string;
12
+ default: string;
13
+ };
14
+ connectionMessages: {
15
+ connecting: string;
16
+ retrying: string;
17
+ };
18
+ responseMessages: {
19
+ generating: string;
20
+ creating: string;
21
+ };
22
+ emptyState: {
23
+ title: string;
24
+ description: string;
25
+ icon: string;
26
+ features?: string[];
27
+ };
28
+ welcomeMessage?: {
29
+ title: string;
30
+ description: string;
31
+ icon: string;
32
+ tags?: string[];
33
+ };
34
+ }
35
+ export declare function useWorkShopChat(config: WorkShopChatConfig): {
36
+ autoScroll: boolean;
37
+ isRetrying: boolean;
38
+ showHistory: boolean;
39
+ inputHeight: number;
40
+ sendBlocked: boolean;
41
+ currentChannel: import('../store/types').ChatChannel | null;
42
+ currentAgent: import('../components/layouts/XyzenAgent').Agent | null | undefined;
43
+ messages: Message[];
44
+ connected: boolean;
45
+ error: string | null;
46
+ responding: boolean;
47
+ messagesEndRef: import('react').RefObject<HTMLDivElement | null>;
48
+ messagesContainerRef: import('react').RefObject<HTMLDivElement | null>;
49
+ handleSendMessage: (inputMessage: string) => void;
50
+ handleToggleHistory: () => void;
51
+ handleCloseHistory: () => void;
52
+ handleSelectTopic: (_topicId: string) => void;
53
+ handleInputHeightChange: (height: number) => void;
54
+ handleRetryConnection: () => void;
55
+ handleScrollToBottom: () => void;
56
+ handleScroll: () => void;
57
+ activeChatChannel: string | null;
58
+ notification: {
59
+ isOpen: boolean;
60
+ title: string;
61
+ message: string;
62
+ type: "info" | "warning" | "error" | "success";
63
+ actionLabel?: string;
64
+ onAction?: () => void;
65
+ } | null;
66
+ closeNotification: () => void;
67
+ pendingInput: string;
68
+ updateTopicName: (topicId: string, newName: string) => Promise<void>;
69
+ };
@@ -0,0 +1,69 @@
1
+ import { Message } from '../store/types';
2
+ export interface XyzenChatConfig {
3
+ theme: "indigo" | "purple";
4
+ systemAgentId: string;
5
+ storageKeys: {
6
+ inputHeight: string;
7
+ historyPinned?: string;
8
+ };
9
+ defaultTitle: string;
10
+ placeholders: {
11
+ responding: string;
12
+ default: string;
13
+ };
14
+ connectionMessages: {
15
+ connecting: string;
16
+ retrying: string;
17
+ };
18
+ responseMessages: {
19
+ generating: string;
20
+ creating: string;
21
+ };
22
+ emptyState: {
23
+ title: string;
24
+ description: string;
25
+ icon: string;
26
+ features?: string[];
27
+ };
28
+ welcomeMessage?: {
29
+ title: string;
30
+ description: string;
31
+ icon: string;
32
+ tags?: string[];
33
+ };
34
+ }
35
+ export declare function useXyzenChat(config: XyzenChatConfig): {
36
+ autoScroll: boolean;
37
+ isRetrying: boolean;
38
+ showHistory: boolean;
39
+ inputHeight: number;
40
+ sendBlocked: boolean;
41
+ currentChannel: import('../store/types').ChatChannel | null;
42
+ currentAgent: import('../components/layouts/XyzenAgent').Agent | null | undefined;
43
+ messages: Message[];
44
+ connected: boolean;
45
+ error: string | null;
46
+ responding: boolean;
47
+ messagesEndRef: import('react').RefObject<HTMLDivElement | null>;
48
+ messagesContainerRef: import('react').RefObject<HTMLDivElement | null>;
49
+ handleSendMessage: (inputMessage: string) => void;
50
+ handleToggleHistory: () => void;
51
+ handleCloseHistory: () => void;
52
+ handleSelectTopic: (_topicId: string) => void;
53
+ handleInputHeightChange: (height: number) => void;
54
+ handleRetryConnection: () => void;
55
+ handleScrollToBottom: () => void;
56
+ handleScroll: () => void;
57
+ activeChatChannel: string | null;
58
+ notification: {
59
+ isOpen: boolean;
60
+ title: string;
61
+ message: string;
62
+ type: "info" | "warning" | "error" | "success";
63
+ actionLabel?: string;
64
+ onAction?: () => void;
65
+ } | null;
66
+ closeNotification: () => void;
67
+ pendingInput: string;
68
+ updateTopicName: (topicId: string, newName: string) => Promise<void>;
69
+ };
@@ -0,0 +1,48 @@
1
+ import { Variants } from 'framer-motion';
2
+ /**
3
+ * Common animation variants for Framer Motion
4
+ * @module animations
5
+ */
6
+ export declare const fadeIn: Variants;
7
+ export declare const fadeOut: Variants;
8
+ export declare const itemVariants: Variants;
9
+ export declare const itemSlideLeft: Variants;
10
+ export declare const itemSlideRight: Variants;
11
+ export declare const containerVariants: Variants;
12
+ export declare const containerFast: Variants;
13
+ export declare const containerSlow: Variants;
14
+ export declare const scaleIn: Variants;
15
+ export declare const scaleOut: Variants;
16
+ export declare const cardHover: {
17
+ scale: number;
18
+ transition: {
19
+ duration: number;
20
+ };
21
+ };
22
+ export declare const cardTap: {
23
+ scale: number;
24
+ transition: {
25
+ duration: number;
26
+ };
27
+ };
28
+ export declare const modalBackdrop: Variants;
29
+ export declare const modalContent: Variants;
30
+ export declare const slideInFromTop: Variants;
31
+ export declare const slideInFromBottom: Variants;
32
+ export declare const slideInFromLeft: Variants;
33
+ export declare const slideInFromRight: Variants;
34
+ export declare const pageTransition: Variants;
35
+ /**
36
+ * Create a custom stagger container with specific timing
37
+ */
38
+ export declare const createStaggerContainer: (staggerChildren?: number, delayChildren?: number) => Variants;
39
+ /**
40
+ * Create a custom item variant with specific offset
41
+ */
42
+ export declare const createItemVariant: (offset?: {
43
+ x?: number;
44
+ y?: number;
45
+ }, springConfig?: {
46
+ stiffness?: number;
47
+ damping?: number;
48
+ }) => Variants;
@@ -0,0 +1,9 @@
1
+ import * as React from "react";
2
+ declare function getStrictContext<T>(name?: string): readonly [
3
+ ({ value, children, }: {
4
+ value: T;
5
+ children?: React.ReactNode;
6
+ }) => React.JSX.Element,
7
+ () => T
8
+ ];
9
+ export { getStrictContext };
@@ -0,0 +1,2 @@
1
+ import { ClassValue } from 'clsx';
2
+ export declare function cn(...inputs: ClassValue[]): string;
@@ -0,0 +1,10 @@
1
+ import { default as React } from 'react';
2
+ import { McpActivationProgress } from '../types/bohrium';
3
+ interface McpActivationProgressProps {
4
+ progress: McpActivationProgress;
5
+ onRetry?: () => void;
6
+ onClose?: () => void;
7
+ className?: string;
8
+ }
9
+ declare const McpActivationProgressComponent: React.FC<McpActivationProgressProps>;
10
+ export default McpActivationProgressComponent;
@@ -0,0 +1,9 @@
1
+ import { ExplorableMcpServer } from '../../types/mcp';
2
+ import { default as React } from 'react';
3
+ interface McpServerCardProps {
4
+ server: ExplorableMcpServer;
5
+ isStarred?: boolean;
6
+ onClick?: () => void;
7
+ }
8
+ declare const McpServerCard: React.FC<McpServerCardProps>;
9
+ export default McpServerCard;
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ interface McpServerDetailProps {
3
+ appKey: string;
4
+ onBack?: () => void;
5
+ }
6
+ declare const McpServerDetail: React.FC<McpServerDetailProps>;
7
+ export default McpServerDetail;
@@ -0,0 +1,8 @@
1
+ import { ExplorableMcpServer } from '../../types/mcp';
2
+ import { default as React } from 'react';
3
+ interface UnifiedMcpMarketListProps {
4
+ builtinServers: ExplorableMcpServer[];
5
+ onSelectServer?: (server: ExplorableMcpServer) => void;
6
+ }
7
+ declare const UnifiedMcpMarketList: React.FC<UnifiedMcpMarketListProps>;
8
+ export default UnifiedMcpMarketList;
@@ -0,0 +1,61 @@
1
+ import { McpActivationProgress } from '../types/bohrium';
2
+ /**
3
+ * 使用 Bohrium 应用列表 (with React Query)
4
+ */
5
+ export declare const useBohriumAppList: (page?: number, pageSize?: number, searchQuery?: string) => {
6
+ apps: import('..').BohriumApp[];
7
+ totalCount: number;
8
+ totalPages: number;
9
+ currentPage: number;
10
+ loading: boolean;
11
+ error: string | null;
12
+ isError: boolean;
13
+ refetch: (options?: import('@tanstack/query-core').RefetchOptions) => Promise<import('@tanstack/query-core').QueryObserverResult<import('..').BohriumAppListResponse, Error>>;
14
+ prefetchNextPage: () => void;
15
+ };
16
+ /**
17
+ * 使用 Bohrium 应用列表(无限加载版)
18
+ */
19
+ export declare const useBohriumInfiniteAppList: (pageSize?: number, searchQuery?: string) => {
20
+ apps: import('..').BohriumApp[];
21
+ totalCount: number;
22
+ totalPages: number;
23
+ pageCount: number;
24
+ loading: boolean;
25
+ isFetchingNextPage: boolean;
26
+ hasNextPage: boolean;
27
+ fetchNextPage: (options?: import('@tanstack/query-core').FetchNextPageOptions) => Promise<import('@tanstack/query-core').InfiniteQueryObserverResult<import('@tanstack/query-core').InfiniteData<import('..').BohriumAppListResponse, unknown>, Error>>;
28
+ refetch: (options?: import('@tanstack/query-core').RefetchOptions) => Promise<import('@tanstack/query-core').QueryObserverResult<import('@tanstack/query-core').InfiniteData<import('..').BohriumAppListResponse, unknown>, Error>>;
29
+ error: string | null;
30
+ isError: boolean;
31
+ };
32
+ /**
33
+ * 使用 Bohrium 应用详情 (with React Query)
34
+ */
35
+ export declare const useBohriumAppDetail: (appKey?: string) => {
36
+ detail: import('..').BohriumAppDetail | null;
37
+ loading: boolean;
38
+ error: string | null;
39
+ isError: boolean;
40
+ refetch: (options?: import('@tanstack/query-core').RefetchOptions) => Promise<import('@tanstack/query-core').QueryObserverResult<import('..').BohriumAppDetail, Error>>;
41
+ };
42
+ /**
43
+ * 使用 MCP 激活流程
44
+ */
45
+ export declare const useMcpActivation: () => {
46
+ progress: McpActivationProgress;
47
+ activateMcp: (appKey: string) => Promise<{
48
+ detail: import('..').BohriumAppDetail;
49
+ endpoint: {
50
+ url: string;
51
+ token: string;
52
+ };
53
+ }>;
54
+ reset: () => void;
55
+ };
56
+ /**
57
+ * 检查 Bohrium 认证状态
58
+ */
59
+ export declare const useBohriumAuth: () => {
60
+ isAuthenticated: boolean;
61
+ };
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Marketplace Module Entry
3
+ * 统一导出 marketplace 模块的所有功能
4
+ */
5
+ export * from './types/bohrium';
6
+ export { bohriumService } from './services/bohriumService';
7
+ export { useBohriumAppDetail, useBohriumAppList, useBohriumAuth, useMcpActivation, } from './hooks/useBohriumMcp';
8
+ export { default as McpActivationProgress } from './components/McpActivationProgress';
9
+ export { default as McpServerCard } from './components/McpServerCard';
10
+ export { default as McpServerDetail } from './components/McpServerDetail';
11
+ export { default as UnifiedMcpMarketList } from './components/UnifiedMcpMarketList';
12
+ export * from './utils/starredApps';
@@ -0,0 +1,34 @@
1
+ import { BohriumAppDetail, BohriumAppListResponse } from '../types/bohrium';
2
+ /**
3
+ * Bohrium Service 类
4
+ */
5
+ declare class BohriumService {
6
+ /**
7
+ * 获取 MCP 应用列表
8
+ */
9
+ getAppList(page?: number, pageSize?: number, search?: string): Promise<BohriumAppListResponse>;
10
+ /**
11
+ * 获取应用详情(包含 latestDeploymentId)
12
+ */
13
+ getAppDetail(appKey: string): Promise<BohriumAppDetail>;
14
+ /**
15
+ * 获取 MCP 服务端点配置
16
+ */
17
+ getMcpEndpoint(deploymentId: number): Promise<{
18
+ url: string;
19
+ token: string;
20
+ }>;
21
+ /**
22
+ * 轮询获取 MCP 端点(处理沙盒启动延迟)
23
+ */
24
+ waitForMcpEndpoint(deploymentId: number, maxRetries?: number, retryInterval?: number, onProgress?: (retryCount: number, maxRetries: number) => void): Promise<{
25
+ url: string;
26
+ token: string;
27
+ }>;
28
+ /**
29
+ * 检查是否已认证
30
+ */
31
+ isAuthenticated(): boolean;
32
+ }
33
+ export declare const bohriumService: BohriumService;
34
+ export {};