@axiom-lattice/react-sdk 2.1.23 → 2.1.25

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 CHANGED
@@ -1,4 +1,4 @@
1
- import { Message, InterruptMessage, Thread } from '@axiom-lattice/protocols';
1
+ import { Message, InterruptMessage, Thread, Skill } from '@axiom-lattice/protocols';
2
2
  export * from '@axiom-lattice/protocols';
3
3
  import * as React$1 from 'react';
4
4
  import React__default, { ReactNode } from 'react';
@@ -6,6 +6,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
6
6
  import { Client, Assistant, CreateAssistantOptions, UpdateAssistantOptions } from '@axiom-lattice/client-sdk';
7
7
  import { Prompts } from '@ant-design/x';
8
8
  import { GetProp } from 'antd';
9
+ import { NodeProps, Node } from '@xyflow/react';
9
10
 
10
11
  /**
11
12
  * Types for the Axiom Lattice React SDK
@@ -868,4 +869,76 @@ interface ScheduleButtonProps {
868
869
  */
869
870
  declare const ScheduleButton: React__default.FC<ScheduleButtonProps>;
870
871
 
871
- export { type AgentChatProps, AgentConversations, type AgentState, AgentThreadProvider, type AgentThreadProviderProps, AssistantContext, AssistantContextProvider, type AssistantContextProviderProps, type AssistantContextValue, type AssistantState, type AttachFile, AxiomLatticeProvider, type AxiomLatticeProviderProps, type ChatResponse, type ChatState, type ChatStateWithAgent, ChatUIContext, ChatUIContextProvider, Chating, type ChatingProps, type ClientConfig, ColumnLayout, type ColumnLayoutProps, ConversationContext, ConversationContextProvider, type ConversationContextProviderProps, type ConversationContextValue, type ConversationThread, type ElementMeta, type ElementProps, type ExplorerFile, FileExplorer, type FileExplorerProps, LatticeChat, LatticeChatShell, type LatticeChatShellConfig, LatticeChatShellContext, LatticeChatShellContextProvider, type LatticeChatShellContextProviderProps, type LatticeChatShellContextValue, type LatticeChatShellProps, MDResponse, MDViewFormItem, ScheduleButton, type ScheduleButtonProps, SideAppViewBrowser, type StreamEventHandlerOptions, type ThreadState, type ToolCallData, type UIMessage, type UseAgentStateOptions, type UseAgentStateReturn, type UseAxiomLatticeOptions, type UseChatOptions, getElement, regsiterElement, useAgentChat, useAgentGraph, useAgentState, useAgentThreadContext, useAssistantContext, useAxiomLattice, useChat, useChatUIContext, useConversationContext, useLatticeChatShellContext };
872
+ /**
873
+ * Props for AssistantFlow component
874
+ */
875
+ interface AssistantFlowProps {
876
+ /**
877
+ * Callback when an assistant node is clicked
878
+ */
879
+ onNodeClick?: (assistant: Assistant) => void;
880
+ }
881
+ /**
882
+ * AssistantFlow component - Canvas for visualizing assistants
883
+ * Wraps the inner component with ReactFlowProvider
884
+ */
885
+ declare const AssistantFlow: React__default.FC<AssistantFlowProps>;
886
+
887
+ /**
888
+ * Props for AssistantNode component
889
+ */
890
+ interface AssistantNodeData extends Record<string, unknown> {
891
+ /**
892
+ * Assistant data
893
+ */
894
+ assistant: Assistant;
895
+ /**
896
+ * Click handler for the node
897
+ */
898
+ onClick?: (assistant: Assistant) => void;
899
+ }
900
+ /**
901
+ * Custom node component for displaying assistants in the flow
902
+ * Designed to look like a digital ID badge
903
+ */
904
+ declare const AssistantNode: React__default.FC<NodeProps<Node<AssistantNodeData>>>;
905
+
906
+ /**
907
+ * Props for SkillFlow component
908
+ */
909
+ interface SkillFlowProps {
910
+ /**
911
+ * Callback when a skill node is clicked
912
+ */
913
+ onNodeClick?: (skill: Skill) => void;
914
+ }
915
+ /**
916
+ * SkillFlow component - Canvas for visualizing skills
917
+ * Wraps the inner component with ReactFlowProvider
918
+ */
919
+ declare const SkillFlow: React__default.FC<SkillFlowProps>;
920
+
921
+ /**
922
+ * Props for SkillNode component
923
+ */
924
+ interface SkillNodeData extends Record<string, unknown> {
925
+ /**
926
+ * Skill data
927
+ */
928
+ skill: Skill;
929
+ /**
930
+ * Click handler for the node
931
+ */
932
+ onClick?: (skill: Skill) => void;
933
+ /**
934
+ * Callback when a skill is deleted
935
+ */
936
+ onDelete?: () => void | Promise<void>;
937
+ }
938
+ /**
939
+ * Custom node component for displaying skills in the flow
940
+ * Designed to show skill information with hierarchical relationships
941
+ */
942
+ declare const SkillNode: React__default.FC<NodeProps<Node<SkillNodeData>>>;
943
+
944
+ export { type AgentChatProps, AgentConversations, type AgentState, AgentThreadProvider, type AgentThreadProviderProps, AssistantContext, AssistantContextProvider, type AssistantContextProviderProps, type AssistantContextValue, AssistantFlow, type AssistantFlowProps, AssistantNode, type AssistantNodeData, type AssistantState, type AttachFile, AxiomLatticeProvider, type AxiomLatticeProviderProps, type ChatResponse, type ChatState, type ChatStateWithAgent, ChatUIContext, ChatUIContextProvider, Chating, type ChatingProps, type ClientConfig, ColumnLayout, type ColumnLayoutProps, ConversationContext, ConversationContextProvider, type ConversationContextProviderProps, type ConversationContextValue, type ConversationThread, type ElementMeta, type ElementProps, type ExplorerFile, FileExplorer, type FileExplorerProps, LatticeChat, LatticeChatShell, type LatticeChatShellConfig, LatticeChatShellContext, LatticeChatShellContextProvider, type LatticeChatShellContextProviderProps, type LatticeChatShellContextValue, type LatticeChatShellProps, MDResponse, MDViewFormItem, ScheduleButton, type ScheduleButtonProps, SideAppViewBrowser, SkillFlow, type SkillFlowProps, SkillNode, type SkillNodeData, type StreamEventHandlerOptions, type ThreadState, type ToolCallData, type UIMessage, type UseAgentStateOptions, type UseAgentStateReturn, type UseAxiomLatticeOptions, type UseChatOptions, getElement, regsiterElement, useAgentChat, useAgentGraph, useAgentState, useAgentThreadContext, useAssistantContext, useAxiomLattice, useChat, useChatUIContext, useConversationContext, useLatticeChatShellContext };
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Message, InterruptMessage, Thread } from '@axiom-lattice/protocols';
1
+ import { Message, InterruptMessage, Thread, Skill } from '@axiom-lattice/protocols';
2
2
  export * from '@axiom-lattice/protocols';
3
3
  import * as React$1 from 'react';
4
4
  import React__default, { ReactNode } from 'react';
@@ -6,6 +6,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
6
6
  import { Client, Assistant, CreateAssistantOptions, UpdateAssistantOptions } from '@axiom-lattice/client-sdk';
7
7
  import { Prompts } from '@ant-design/x';
8
8
  import { GetProp } from 'antd';
9
+ import { NodeProps, Node } from '@xyflow/react';
9
10
 
10
11
  /**
11
12
  * Types for the Axiom Lattice React SDK
@@ -868,4 +869,76 @@ interface ScheduleButtonProps {
868
869
  */
869
870
  declare const ScheduleButton: React__default.FC<ScheduleButtonProps>;
870
871
 
871
- export { type AgentChatProps, AgentConversations, type AgentState, AgentThreadProvider, type AgentThreadProviderProps, AssistantContext, AssistantContextProvider, type AssistantContextProviderProps, type AssistantContextValue, type AssistantState, type AttachFile, AxiomLatticeProvider, type AxiomLatticeProviderProps, type ChatResponse, type ChatState, type ChatStateWithAgent, ChatUIContext, ChatUIContextProvider, Chating, type ChatingProps, type ClientConfig, ColumnLayout, type ColumnLayoutProps, ConversationContext, ConversationContextProvider, type ConversationContextProviderProps, type ConversationContextValue, type ConversationThread, type ElementMeta, type ElementProps, type ExplorerFile, FileExplorer, type FileExplorerProps, LatticeChat, LatticeChatShell, type LatticeChatShellConfig, LatticeChatShellContext, LatticeChatShellContextProvider, type LatticeChatShellContextProviderProps, type LatticeChatShellContextValue, type LatticeChatShellProps, MDResponse, MDViewFormItem, ScheduleButton, type ScheduleButtonProps, SideAppViewBrowser, type StreamEventHandlerOptions, type ThreadState, type ToolCallData, type UIMessage, type UseAgentStateOptions, type UseAgentStateReturn, type UseAxiomLatticeOptions, type UseChatOptions, getElement, regsiterElement, useAgentChat, useAgentGraph, useAgentState, useAgentThreadContext, useAssistantContext, useAxiomLattice, useChat, useChatUIContext, useConversationContext, useLatticeChatShellContext };
872
+ /**
873
+ * Props for AssistantFlow component
874
+ */
875
+ interface AssistantFlowProps {
876
+ /**
877
+ * Callback when an assistant node is clicked
878
+ */
879
+ onNodeClick?: (assistant: Assistant) => void;
880
+ }
881
+ /**
882
+ * AssistantFlow component - Canvas for visualizing assistants
883
+ * Wraps the inner component with ReactFlowProvider
884
+ */
885
+ declare const AssistantFlow: React__default.FC<AssistantFlowProps>;
886
+
887
+ /**
888
+ * Props for AssistantNode component
889
+ */
890
+ interface AssistantNodeData extends Record<string, unknown> {
891
+ /**
892
+ * Assistant data
893
+ */
894
+ assistant: Assistant;
895
+ /**
896
+ * Click handler for the node
897
+ */
898
+ onClick?: (assistant: Assistant) => void;
899
+ }
900
+ /**
901
+ * Custom node component for displaying assistants in the flow
902
+ * Designed to look like a digital ID badge
903
+ */
904
+ declare const AssistantNode: React__default.FC<NodeProps<Node<AssistantNodeData>>>;
905
+
906
+ /**
907
+ * Props for SkillFlow component
908
+ */
909
+ interface SkillFlowProps {
910
+ /**
911
+ * Callback when a skill node is clicked
912
+ */
913
+ onNodeClick?: (skill: Skill) => void;
914
+ }
915
+ /**
916
+ * SkillFlow component - Canvas for visualizing skills
917
+ * Wraps the inner component with ReactFlowProvider
918
+ */
919
+ declare const SkillFlow: React__default.FC<SkillFlowProps>;
920
+
921
+ /**
922
+ * Props for SkillNode component
923
+ */
924
+ interface SkillNodeData extends Record<string, unknown> {
925
+ /**
926
+ * Skill data
927
+ */
928
+ skill: Skill;
929
+ /**
930
+ * Click handler for the node
931
+ */
932
+ onClick?: (skill: Skill) => void;
933
+ /**
934
+ * Callback when a skill is deleted
935
+ */
936
+ onDelete?: () => void | Promise<void>;
937
+ }
938
+ /**
939
+ * Custom node component for displaying skills in the flow
940
+ * Designed to show skill information with hierarchical relationships
941
+ */
942
+ declare const SkillNode: React__default.FC<NodeProps<Node<SkillNodeData>>>;
943
+
944
+ export { type AgentChatProps, AgentConversations, type AgentState, AgentThreadProvider, type AgentThreadProviderProps, AssistantContext, AssistantContextProvider, type AssistantContextProviderProps, type AssistantContextValue, AssistantFlow, type AssistantFlowProps, AssistantNode, type AssistantNodeData, type AssistantState, type AttachFile, AxiomLatticeProvider, type AxiomLatticeProviderProps, type ChatResponse, type ChatState, type ChatStateWithAgent, ChatUIContext, ChatUIContextProvider, Chating, type ChatingProps, type ClientConfig, ColumnLayout, type ColumnLayoutProps, ConversationContext, ConversationContextProvider, type ConversationContextProviderProps, type ConversationContextValue, type ConversationThread, type ElementMeta, type ElementProps, type ExplorerFile, FileExplorer, type FileExplorerProps, LatticeChat, LatticeChatShell, type LatticeChatShellConfig, LatticeChatShellContext, LatticeChatShellContextProvider, type LatticeChatShellContextProviderProps, type LatticeChatShellContextValue, type LatticeChatShellProps, MDResponse, MDViewFormItem, ScheduleButton, type ScheduleButtonProps, SideAppViewBrowser, SkillFlow, type SkillFlowProps, SkillNode, type SkillNodeData, type StreamEventHandlerOptions, type ThreadState, type ToolCallData, type UIMessage, type UseAgentStateOptions, type UseAgentStateReturn, type UseAxiomLatticeOptions, type UseChatOptions, getElement, regsiterElement, useAgentChat, useAgentGraph, useAgentState, useAgentThreadContext, useAssistantContext, useAxiomLattice, useChat, useChatUIContext, useConversationContext, useLatticeChatShellContext };