@axiom-lattice/react-sdk 2.1.30 → 2.1.32
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 +106 -8
- package/dist/index.d.ts +106 -8
- package/dist/index.js +4505 -2433
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3974 -1857
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -4
package/dist/index.d.mts
CHANGED
|
@@ -713,6 +713,68 @@ declare const AssistantContextProvider: ({ children, autoLoad, initialAssistantI
|
|
|
713
713
|
*/
|
|
714
714
|
declare const useAssistantContext: () => AssistantContextValue;
|
|
715
715
|
|
|
716
|
+
/**
|
|
717
|
+
* Middleware tool definition
|
|
718
|
+
*/
|
|
719
|
+
interface MiddlewareToolDefinition {
|
|
720
|
+
id: string;
|
|
721
|
+
name: string;
|
|
722
|
+
description: string;
|
|
723
|
+
}
|
|
724
|
+
/**
|
|
725
|
+
* JSON Schema property definition for middleware config
|
|
726
|
+
*/
|
|
727
|
+
interface MiddlewareConfigSchemaProperty {
|
|
728
|
+
type: "string" | "number" | "integer" | "boolean" | "object" | "array";
|
|
729
|
+
title?: string;
|
|
730
|
+
description?: string;
|
|
731
|
+
default?: any;
|
|
732
|
+
enum?: string[];
|
|
733
|
+
minimum?: number;
|
|
734
|
+
maximum?: number;
|
|
735
|
+
minLength?: number;
|
|
736
|
+
maxLength?: number;
|
|
737
|
+
pattern?: string;
|
|
738
|
+
format?: string;
|
|
739
|
+
widget?: "input" | "textarea" | "select" | "segmented" | "switch" | "numberInput" | "skillSelect";
|
|
740
|
+
items?: {
|
|
741
|
+
type: string;
|
|
742
|
+
};
|
|
743
|
+
}
|
|
744
|
+
/**
|
|
745
|
+
* JSON Schema for middleware configuration
|
|
746
|
+
*/
|
|
747
|
+
interface MiddlewareConfigSchema {
|
|
748
|
+
type: "object";
|
|
749
|
+
title?: string;
|
|
750
|
+
description?: string;
|
|
751
|
+
required?: string[];
|
|
752
|
+
properties: Record<string, MiddlewareConfigSchemaProperty>;
|
|
753
|
+
}
|
|
754
|
+
/**
|
|
755
|
+
* Middleware type definition
|
|
756
|
+
*/
|
|
757
|
+
interface MiddlewareTypeDefinition {
|
|
758
|
+
type: string;
|
|
759
|
+
name: string;
|
|
760
|
+
description: string;
|
|
761
|
+
icon?: ReactNode;
|
|
762
|
+
schema?: MiddlewareConfigSchema;
|
|
763
|
+
defaultConfig?: Record<string, any>;
|
|
764
|
+
tools?: MiddlewareToolDefinition[];
|
|
765
|
+
}
|
|
766
|
+
/**
|
|
767
|
+
* Middleware type for configuration
|
|
768
|
+
*/
|
|
769
|
+
interface MiddlewareConfigDefinition {
|
|
770
|
+
id: string;
|
|
771
|
+
type: string;
|
|
772
|
+
name: string;
|
|
773
|
+
description: string;
|
|
774
|
+
enabled: boolean;
|
|
775
|
+
config: Record<string, any>;
|
|
776
|
+
tools?: MiddlewareToolDefinition[];
|
|
777
|
+
}
|
|
716
778
|
/**
|
|
717
779
|
* Lattice Chat Shell configuration interface
|
|
718
780
|
*/
|
|
@@ -752,8 +814,24 @@ interface LatticeChatShellConfig {
|
|
|
752
814
|
/**
|
|
753
815
|
* URL of the global shared sandbox, this is used to access the global shared sandbox
|
|
754
816
|
* if not provided, sandbox will be created in the agent's sandbox
|
|
755
|
-
|
|
817
|
+
*/
|
|
756
818
|
globalSharedSandboxURL?: string;
|
|
819
|
+
/**
|
|
820
|
+
* Available middleware types that can be configured for agents
|
|
821
|
+
* Each middleware type defines its name, description, and default configuration
|
|
822
|
+
* If not provided, default middleware types will be used
|
|
823
|
+
*/
|
|
824
|
+
availableMiddlewareTypes?: MiddlewareTypeDefinition[];
|
|
825
|
+
/**
|
|
826
|
+
* Whether users can create new assistants
|
|
827
|
+
* Defaults to true
|
|
828
|
+
*/
|
|
829
|
+
enableAssistantCreation?: boolean;
|
|
830
|
+
/**
|
|
831
|
+
* Whether users can edit existing assistants
|
|
832
|
+
* Defaults to true
|
|
833
|
+
*/
|
|
834
|
+
enableAssistantEditing?: boolean;
|
|
757
835
|
}
|
|
758
836
|
/**
|
|
759
837
|
* Lattice Chat Shell context value interface
|
|
@@ -877,7 +955,16 @@ interface AgentConversationsProps {
|
|
|
877
955
|
}
|
|
878
956
|
declare const AgentConversations: React__default.FC<AgentConversationsProps>;
|
|
879
957
|
|
|
880
|
-
type LatticeChatShellProps = Omit<LatticeChatShellContextProviderProps, "children"
|
|
958
|
+
type LatticeChatShellProps = Omit<LatticeChatShellContextProviderProps, "children"> & {
|
|
959
|
+
/**
|
|
960
|
+
* Whether users can create new assistants (default: true)
|
|
961
|
+
*/
|
|
962
|
+
enableAssistantCreation?: boolean;
|
|
963
|
+
/**
|
|
964
|
+
* Whether users can edit existing assistants (default: true)
|
|
965
|
+
*/
|
|
966
|
+
enableAssistantEditing?: boolean;
|
|
967
|
+
};
|
|
881
968
|
/**
|
|
882
969
|
* Lattice Chat Shell component
|
|
883
970
|
* Provides a complete chat interface with conversation management
|
|
@@ -903,12 +990,12 @@ declare const ScheduleButton: React__default.FC<ScheduleButtonProps>;
|
|
|
903
990
|
*/
|
|
904
991
|
interface AssistantFlowProps {
|
|
905
992
|
/**
|
|
906
|
-
* Callback when
|
|
993
|
+
* Callback when chat button is clicked
|
|
907
994
|
*/
|
|
908
|
-
|
|
995
|
+
onChat?: (assistant: Assistant) => void;
|
|
909
996
|
}
|
|
910
997
|
/**
|
|
911
|
-
* AssistantFlow component - Canvas for visualizing assistants
|
|
998
|
+
* AssistantFlow component - Canvas for visualizing assistants with side panel
|
|
912
999
|
* Wraps the inner component with ReactFlowProvider
|
|
913
1000
|
*/
|
|
914
1001
|
declare const AssistantFlow: React__default.FC<AssistantFlowProps>;
|
|
@@ -922,9 +1009,13 @@ interface AssistantNodeData extends Record<string, unknown> {
|
|
|
922
1009
|
*/
|
|
923
1010
|
assistant: Assistant;
|
|
924
1011
|
/**
|
|
925
|
-
* Click handler for
|
|
1012
|
+
* Click handler for configure button
|
|
1013
|
+
*/
|
|
1014
|
+
onConfigure?: (assistant: Assistant) => void;
|
|
1015
|
+
/**
|
|
1016
|
+
* Click handler for chat button
|
|
926
1017
|
*/
|
|
927
|
-
|
|
1018
|
+
onChat?: (assistant: Assistant) => void;
|
|
928
1019
|
}
|
|
929
1020
|
/**
|
|
930
1021
|
* Custom node component for displaying assistants in the flow
|
|
@@ -970,4 +1061,11 @@ interface SkillNodeData extends Record<string, unknown> {
|
|
|
970
1061
|
*/
|
|
971
1062
|
declare const SkillNode: React__default.FC<NodeProps<Node<SkillNodeData>>>;
|
|
972
1063
|
|
|
973
|
-
|
|
1064
|
+
interface CreateAssistantModalProps {
|
|
1065
|
+
open: boolean;
|
|
1066
|
+
onCancel: () => void;
|
|
1067
|
+
onSuccess?: (assistant: Assistant) => void;
|
|
1068
|
+
}
|
|
1069
|
+
declare const CreateAssistantModal: React__default.FC<CreateAssistantModalProps>;
|
|
1070
|
+
|
|
1071
|
+
export { type AgentChatProps, AgentConversations, type AgentConversationsProps, 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, CreateAssistantModal, type ElementMeta, type ElementProps, type ExplorerFile, FileExplorer, type FileExplorerProps, LatticeChat, LatticeChatShell, type LatticeChatShellConfig, LatticeChatShellContext, LatticeChatShellContextProvider, type LatticeChatShellContextProviderProps, type LatticeChatShellContextValue, type LatticeChatShellProps, MDResponse, MDViewFormItem, type MiddlewareConfigDefinition, type MiddlewareConfigSchema, type MiddlewareConfigSchemaProperty, type MiddlewareToolDefinition, type MiddlewareTypeDefinition, 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
|
@@ -713,6 +713,68 @@ declare const AssistantContextProvider: ({ children, autoLoad, initialAssistantI
|
|
|
713
713
|
*/
|
|
714
714
|
declare const useAssistantContext: () => AssistantContextValue;
|
|
715
715
|
|
|
716
|
+
/**
|
|
717
|
+
* Middleware tool definition
|
|
718
|
+
*/
|
|
719
|
+
interface MiddlewareToolDefinition {
|
|
720
|
+
id: string;
|
|
721
|
+
name: string;
|
|
722
|
+
description: string;
|
|
723
|
+
}
|
|
724
|
+
/**
|
|
725
|
+
* JSON Schema property definition for middleware config
|
|
726
|
+
*/
|
|
727
|
+
interface MiddlewareConfigSchemaProperty {
|
|
728
|
+
type: "string" | "number" | "integer" | "boolean" | "object" | "array";
|
|
729
|
+
title?: string;
|
|
730
|
+
description?: string;
|
|
731
|
+
default?: any;
|
|
732
|
+
enum?: string[];
|
|
733
|
+
minimum?: number;
|
|
734
|
+
maximum?: number;
|
|
735
|
+
minLength?: number;
|
|
736
|
+
maxLength?: number;
|
|
737
|
+
pattern?: string;
|
|
738
|
+
format?: string;
|
|
739
|
+
widget?: "input" | "textarea" | "select" | "segmented" | "switch" | "numberInput" | "skillSelect";
|
|
740
|
+
items?: {
|
|
741
|
+
type: string;
|
|
742
|
+
};
|
|
743
|
+
}
|
|
744
|
+
/**
|
|
745
|
+
* JSON Schema for middleware configuration
|
|
746
|
+
*/
|
|
747
|
+
interface MiddlewareConfigSchema {
|
|
748
|
+
type: "object";
|
|
749
|
+
title?: string;
|
|
750
|
+
description?: string;
|
|
751
|
+
required?: string[];
|
|
752
|
+
properties: Record<string, MiddlewareConfigSchemaProperty>;
|
|
753
|
+
}
|
|
754
|
+
/**
|
|
755
|
+
* Middleware type definition
|
|
756
|
+
*/
|
|
757
|
+
interface MiddlewareTypeDefinition {
|
|
758
|
+
type: string;
|
|
759
|
+
name: string;
|
|
760
|
+
description: string;
|
|
761
|
+
icon?: ReactNode;
|
|
762
|
+
schema?: MiddlewareConfigSchema;
|
|
763
|
+
defaultConfig?: Record<string, any>;
|
|
764
|
+
tools?: MiddlewareToolDefinition[];
|
|
765
|
+
}
|
|
766
|
+
/**
|
|
767
|
+
* Middleware type for configuration
|
|
768
|
+
*/
|
|
769
|
+
interface MiddlewareConfigDefinition {
|
|
770
|
+
id: string;
|
|
771
|
+
type: string;
|
|
772
|
+
name: string;
|
|
773
|
+
description: string;
|
|
774
|
+
enabled: boolean;
|
|
775
|
+
config: Record<string, any>;
|
|
776
|
+
tools?: MiddlewareToolDefinition[];
|
|
777
|
+
}
|
|
716
778
|
/**
|
|
717
779
|
* Lattice Chat Shell configuration interface
|
|
718
780
|
*/
|
|
@@ -752,8 +814,24 @@ interface LatticeChatShellConfig {
|
|
|
752
814
|
/**
|
|
753
815
|
* URL of the global shared sandbox, this is used to access the global shared sandbox
|
|
754
816
|
* if not provided, sandbox will be created in the agent's sandbox
|
|
755
|
-
|
|
817
|
+
*/
|
|
756
818
|
globalSharedSandboxURL?: string;
|
|
819
|
+
/**
|
|
820
|
+
* Available middleware types that can be configured for agents
|
|
821
|
+
* Each middleware type defines its name, description, and default configuration
|
|
822
|
+
* If not provided, default middleware types will be used
|
|
823
|
+
*/
|
|
824
|
+
availableMiddlewareTypes?: MiddlewareTypeDefinition[];
|
|
825
|
+
/**
|
|
826
|
+
* Whether users can create new assistants
|
|
827
|
+
* Defaults to true
|
|
828
|
+
*/
|
|
829
|
+
enableAssistantCreation?: boolean;
|
|
830
|
+
/**
|
|
831
|
+
* Whether users can edit existing assistants
|
|
832
|
+
* Defaults to true
|
|
833
|
+
*/
|
|
834
|
+
enableAssistantEditing?: boolean;
|
|
757
835
|
}
|
|
758
836
|
/**
|
|
759
837
|
* Lattice Chat Shell context value interface
|
|
@@ -877,7 +955,16 @@ interface AgentConversationsProps {
|
|
|
877
955
|
}
|
|
878
956
|
declare const AgentConversations: React__default.FC<AgentConversationsProps>;
|
|
879
957
|
|
|
880
|
-
type LatticeChatShellProps = Omit<LatticeChatShellContextProviderProps, "children"
|
|
958
|
+
type LatticeChatShellProps = Omit<LatticeChatShellContextProviderProps, "children"> & {
|
|
959
|
+
/**
|
|
960
|
+
* Whether users can create new assistants (default: true)
|
|
961
|
+
*/
|
|
962
|
+
enableAssistantCreation?: boolean;
|
|
963
|
+
/**
|
|
964
|
+
* Whether users can edit existing assistants (default: true)
|
|
965
|
+
*/
|
|
966
|
+
enableAssistantEditing?: boolean;
|
|
967
|
+
};
|
|
881
968
|
/**
|
|
882
969
|
* Lattice Chat Shell component
|
|
883
970
|
* Provides a complete chat interface with conversation management
|
|
@@ -903,12 +990,12 @@ declare const ScheduleButton: React__default.FC<ScheduleButtonProps>;
|
|
|
903
990
|
*/
|
|
904
991
|
interface AssistantFlowProps {
|
|
905
992
|
/**
|
|
906
|
-
* Callback when
|
|
993
|
+
* Callback when chat button is clicked
|
|
907
994
|
*/
|
|
908
|
-
|
|
995
|
+
onChat?: (assistant: Assistant) => void;
|
|
909
996
|
}
|
|
910
997
|
/**
|
|
911
|
-
* AssistantFlow component - Canvas for visualizing assistants
|
|
998
|
+
* AssistantFlow component - Canvas for visualizing assistants with side panel
|
|
912
999
|
* Wraps the inner component with ReactFlowProvider
|
|
913
1000
|
*/
|
|
914
1001
|
declare const AssistantFlow: React__default.FC<AssistantFlowProps>;
|
|
@@ -922,9 +1009,13 @@ interface AssistantNodeData extends Record<string, unknown> {
|
|
|
922
1009
|
*/
|
|
923
1010
|
assistant: Assistant;
|
|
924
1011
|
/**
|
|
925
|
-
* Click handler for
|
|
1012
|
+
* Click handler for configure button
|
|
1013
|
+
*/
|
|
1014
|
+
onConfigure?: (assistant: Assistant) => void;
|
|
1015
|
+
/**
|
|
1016
|
+
* Click handler for chat button
|
|
926
1017
|
*/
|
|
927
|
-
|
|
1018
|
+
onChat?: (assistant: Assistant) => void;
|
|
928
1019
|
}
|
|
929
1020
|
/**
|
|
930
1021
|
* Custom node component for displaying assistants in the flow
|
|
@@ -970,4 +1061,11 @@ interface SkillNodeData extends Record<string, unknown> {
|
|
|
970
1061
|
*/
|
|
971
1062
|
declare const SkillNode: React__default.FC<NodeProps<Node<SkillNodeData>>>;
|
|
972
1063
|
|
|
973
|
-
|
|
1064
|
+
interface CreateAssistantModalProps {
|
|
1065
|
+
open: boolean;
|
|
1066
|
+
onCancel: () => void;
|
|
1067
|
+
onSuccess?: (assistant: Assistant) => void;
|
|
1068
|
+
}
|
|
1069
|
+
declare const CreateAssistantModal: React__default.FC<CreateAssistantModalProps>;
|
|
1070
|
+
|
|
1071
|
+
export { type AgentChatProps, AgentConversations, type AgentConversationsProps, 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, CreateAssistantModal, type ElementMeta, type ElementProps, type ExplorerFile, FileExplorer, type FileExplorerProps, LatticeChat, LatticeChatShell, type LatticeChatShellConfig, LatticeChatShellContext, LatticeChatShellContextProvider, type LatticeChatShellContextProviderProps, type LatticeChatShellContextValue, type LatticeChatShellProps, MDResponse, MDViewFormItem, type MiddlewareConfigDefinition, type MiddlewareConfigSchema, type MiddlewareConfigSchemaProperty, type MiddlewareToolDefinition, type MiddlewareTypeDefinition, 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 };
|