@axiom-lattice/react-sdk 2.1.86 → 2.1.88
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 +59 -29
- package/dist/index.d.ts +59 -29
- package/dist/index.js +21736 -21466
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +25508 -25247
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -3
package/dist/index.d.mts
CHANGED
|
@@ -722,10 +722,17 @@ interface UserTenantInfo {
|
|
|
722
722
|
role: string;
|
|
723
723
|
tenant?: Tenant;
|
|
724
724
|
}
|
|
725
|
+
interface PersonalAssistantInfo {
|
|
726
|
+
assistantId: string;
|
|
727
|
+
projectId: string;
|
|
728
|
+
workspaceId: string;
|
|
729
|
+
}
|
|
725
730
|
interface AuthContextValue {
|
|
726
731
|
user: User | null;
|
|
727
732
|
tenants: UserTenantInfo[];
|
|
728
733
|
currentTenant: Tenant | null;
|
|
734
|
+
personalAssistant: PersonalAssistantInfo | null;
|
|
735
|
+
setPersonalAssistant: (info: PersonalAssistantInfo | null) => void;
|
|
729
736
|
isAuthenticated: boolean;
|
|
730
737
|
isLoading: boolean;
|
|
731
738
|
error: string | null;
|
|
@@ -1025,8 +1032,12 @@ interface ChatingProps {
|
|
|
1025
1032
|
showEmptyState?: boolean;
|
|
1026
1033
|
/** Custom greeting element displayed in the empty state. */
|
|
1027
1034
|
emptyStateGreeting?: React__default.ReactNode;
|
|
1028
|
-
/**
|
|
1035
|
+
/** Empty state question line. Default: "Ready to turn..." */
|
|
1029
1036
|
emptyStateQuestion?: string;
|
|
1037
|
+
/** Show skill category prompts in empty state. Default: true. */
|
|
1038
|
+
showSkillPrompts?: boolean;
|
|
1039
|
+
/** Show business analysis prompts in empty state. Default: true. */
|
|
1040
|
+
showQuickAnalysis?: boolean;
|
|
1030
1041
|
/** Welcome prefix text (e.g., "Hey"). */
|
|
1031
1042
|
welcomePrefix?: string;
|
|
1032
1043
|
/** Context string injected before the first user message (e.g. workflow context). */
|
|
@@ -1090,6 +1101,12 @@ type AgentChatProps = {
|
|
|
1090
1101
|
menu?: React__default.ReactNode;
|
|
1091
1102
|
/** Optional header rendered above the main chat area. */
|
|
1092
1103
|
header?: React__default.ReactNode;
|
|
1104
|
+
/** Optional right-side header content. Replaces the default folder toggle button. Use {@link FilePanelToggle} to include it. */
|
|
1105
|
+
headerRight?: React__default.ReactNode;
|
|
1106
|
+
/** Show workspace project selector in header. Default true. */
|
|
1107
|
+
showProjectSelector?: boolean;
|
|
1108
|
+
/** Content shown when no thread is active. Default: "Please create a conversation first". */
|
|
1109
|
+
emptyPlaceholder?: React__default.ReactNode;
|
|
1093
1110
|
} & ChatingProps;
|
|
1094
1111
|
/**
|
|
1095
1112
|
* Top-level chat component for a single assistant thread.
|
|
@@ -1908,6 +1925,13 @@ interface LatticeChatShellConfig {
|
|
|
1908
1925
|
* Defaults to false
|
|
1909
1926
|
*/
|
|
1910
1927
|
enableWorkspace?: boolean;
|
|
1928
|
+
/**
|
|
1929
|
+
* Whether to load custom menu items from the database (API /api/menu-items).
|
|
1930
|
+
* When enabled, WorkspaceResourceManager fetches per-tenant custom menu items
|
|
1931
|
+
* and merges them with built-in defaults.
|
|
1932
|
+
* Defaults to true.
|
|
1933
|
+
*/
|
|
1934
|
+
enableCustomMenu?: boolean;
|
|
1911
1935
|
/**
|
|
1912
1936
|
* Resource folders configuration for workspace
|
|
1913
1937
|
* Each folder represents a section in the workspace assets panel
|
|
@@ -2248,10 +2272,10 @@ declare const MetricsConfigDrawerContent: React__default.FC;
|
|
|
2248
2272
|
/**
|
|
2249
2273
|
* Built-in default menu items for the workspace shell.
|
|
2250
2274
|
*
|
|
2251
|
-
* Contains
|
|
2275
|
+
* Contains 11 route/action items organized in groups:
|
|
2252
2276
|
* - Projects
|
|
2253
2277
|
* - DataSource: Metrics, Database
|
|
2254
|
-
* - Process:
|
|
2278
|
+
* - Process: Workflows, Runtime, Inbox, Eval
|
|
2255
2279
|
* - Settings: Assistants, Skills, MCP, Tools
|
|
2256
2280
|
* - Account: Switch tenant
|
|
2257
2281
|
*
|
|
@@ -2498,7 +2522,7 @@ declare const SkillNode: React__default.FC<NodeProps<Node<SkillNodeData>>>;
|
|
|
2498
2522
|
|
|
2499
2523
|
interface DSLNode {
|
|
2500
2524
|
id: string;
|
|
2501
|
-
type: "agent" | "
|
|
2525
|
+
type: "agent" | "map" | "terminal";
|
|
2502
2526
|
name: string;
|
|
2503
2527
|
description?: string;
|
|
2504
2528
|
ref?: string;
|
|
@@ -2518,26 +2542,16 @@ interface DSLNode {
|
|
|
2518
2542
|
template: string;
|
|
2519
2543
|
};
|
|
2520
2544
|
};
|
|
2521
|
-
reduce?: {
|
|
2522
|
-
ref: string;
|
|
2523
|
-
input?: {
|
|
2524
|
-
template: string;
|
|
2525
|
-
};
|
|
2526
|
-
};
|
|
2527
2545
|
status?: "success" | "failed" | "cancelled";
|
|
2528
2546
|
itemKey?: string;
|
|
2529
|
-
|
|
2547
|
+
ask?: boolean;
|
|
2548
|
+
condition?: string;
|
|
2549
|
+
/** When set, this node belongs to a parallel group. */
|
|
2550
|
+
parentGroup?: string;
|
|
2530
2551
|
}
|
|
2531
2552
|
interface DSLEdge {
|
|
2532
2553
|
from: string;
|
|
2533
2554
|
to?: string | string[];
|
|
2534
|
-
type?: "normal" | "conditional";
|
|
2535
|
-
rule?: {
|
|
2536
|
-
type: "state_field" | "expression";
|
|
2537
|
-
field?: string;
|
|
2538
|
-
code?: string;
|
|
2539
|
-
mapping: Record<string, string>;
|
|
2540
|
-
};
|
|
2541
2555
|
}
|
|
2542
2556
|
interface ExpandedDSL {
|
|
2543
2557
|
version: string;
|
|
@@ -2550,6 +2564,7 @@ interface RunStep {
|
|
|
2550
2564
|
id: string;
|
|
2551
2565
|
stepType: string;
|
|
2552
2566
|
stepName: string;
|
|
2567
|
+
threadId?: string | null;
|
|
2553
2568
|
edgeFrom?: string;
|
|
2554
2569
|
edgeTo?: string;
|
|
2555
2570
|
edgePurpose?: string;
|
|
@@ -2564,39 +2579,36 @@ interface RunStep {
|
|
|
2564
2579
|
interface WorkflowCanvasProps {
|
|
2565
2580
|
dsl: ExpandedDSL;
|
|
2566
2581
|
steps?: RunStep[];
|
|
2582
|
+
assistantId?: string;
|
|
2567
2583
|
onNodeClick?: (nodeId: string) => void;
|
|
2568
2584
|
height?: number | string;
|
|
2569
2585
|
}
|
|
2570
2586
|
declare const WorkflowCanvas: React__default.FC<WorkflowCanvasProps>;
|
|
2571
2587
|
|
|
2572
2588
|
interface RunState {
|
|
2573
|
-
status: "running" | "completed" | "failed" | "interrupted";
|
|
2589
|
+
status: "running" | "completed" | "failed" | "interrupted" | "skipped";
|
|
2574
2590
|
stepType?: string;
|
|
2575
2591
|
durationMs?: number;
|
|
2576
2592
|
selected?: boolean;
|
|
2577
2593
|
}
|
|
2578
2594
|
interface WorkflowNodeData extends Record<string, unknown> {
|
|
2579
|
-
nodeType: "agent" | "
|
|
2595
|
+
nodeType: "agent" | "map" | "terminal";
|
|
2580
2596
|
name: string;
|
|
2581
2597
|
description?: string;
|
|
2582
2598
|
ref?: string;
|
|
2583
2599
|
outputKey?: string;
|
|
2584
|
-
/** node JSON Schema definition */
|
|
2585
2600
|
nodeSchema?: unknown;
|
|
2586
2601
|
config?: Record<string, unknown>;
|
|
2587
|
-
/** terminal status */
|
|
2588
2602
|
status?: string;
|
|
2589
|
-
/** map: source array path */
|
|
2590
2603
|
source?: string;
|
|
2591
|
-
/** map: inner agent ref */
|
|
2592
2604
|
innerRef?: string;
|
|
2593
|
-
/** map: reduce agent ref */
|
|
2594
2605
|
reduceRef?: string;
|
|
2595
|
-
/** node's input template (prompt) */
|
|
2596
2606
|
inputTemplate?: string;
|
|
2597
|
-
/**
|
|
2607
|
+
/** true when node has ask_user_to_clarify middleware (needs+if DSL) */
|
|
2608
|
+
ask?: boolean;
|
|
2609
|
+
/** if condition expression (shown in design view) */
|
|
2610
|
+
condition?: string;
|
|
2598
2611
|
runState?: RunState;
|
|
2599
|
-
/** true when this is a runtime node that hasn't been executed yet */
|
|
2600
2612
|
pending?: boolean;
|
|
2601
2613
|
}
|
|
2602
2614
|
declare const WorkflowNode: React__default.FC<NodeProps<Node<WorkflowNodeData>>>;
|
|
@@ -2724,6 +2736,24 @@ interface EvalRunResultsProps {
|
|
|
2724
2736
|
*/
|
|
2725
2737
|
declare const EvalRunResults: React__default.FC<EvalRunResultsProps>;
|
|
2726
2738
|
|
|
2739
|
+
interface PersonalAssistantPageProps {
|
|
2740
|
+
}
|
|
2741
|
+
declare const PersonalAssistantPage: React__default.FC<PersonalAssistantPageProps>;
|
|
2742
|
+
|
|
2743
|
+
type LatticeAgentWorkspaceProps = AgentChatProps & {
|
|
2744
|
+
workspaceId?: string;
|
|
2745
|
+
projectId?: string;
|
|
2746
|
+
};
|
|
2747
|
+
declare const LatticeAgentWorkspace: React__default.FC<LatticeAgentWorkspaceProps>;
|
|
2748
|
+
|
|
2749
|
+
/**
|
|
2750
|
+
* Toggle button for the file/directory tool panel.
|
|
2751
|
+
*
|
|
2752
|
+
* Must be rendered within a {@link ChatUIContextProvider} (which
|
|
2753
|
+
* {@link LatticeChat} provides automatically).
|
|
2754
|
+
*/
|
|
2755
|
+
declare const FilePanelToggle: React__default.FC;
|
|
2756
|
+
|
|
2727
2757
|
interface SkillCategoryPromptsProps {
|
|
2728
2758
|
senderRef: React__default.RefObject<any>;
|
|
2729
2759
|
visible?: boolean;
|
|
@@ -3234,4 +3264,4 @@ type IframeMessage = {
|
|
|
3234
3264
|
};
|
|
3235
3265
|
declare function generateIframeSrcdoc(): string;
|
|
3236
3266
|
|
|
3237
|
-
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, type AuthContextValue, AuthProvider, AxiomLatticeProvider, type AxiomLatticeProviderProps, type BalanceResult, ChangePasswordModal, type ChangePasswordModalProps, ChannelInstallationsDrawerContent, type ChatResponse, ChatSidebar, type ChatSidebarProps, type ChatState, type ChatStateWithAgent, ChatUIContext, ChatUIContextProvider, Chating, type ChatingProps, type ClientConfig, ColumnLayout, type ColumnLayoutProps, ConversationContext, ConversationContextProvider, type ConversationContextProviderProps, type ConversationContextValue, type ConversationThread, CreateAssistantModal, DEFAULT_MENU_ITEMS, DEFAULT_MIDDLEWARE_TYPES, DEFAULT_WORKSPACE_MENU_ITEMS, type ElementMeta, type ElementProps, EvalPanel, EvalRunResults, EvalSuiteCardList, EvalSuiteDetail, type ExplorerFile, FileExplorer, type FileExplorerProps, type IframeMessage, LatticeChat, LatticeChatShell, type LatticeChatShellConfig, LatticeChatShellContext, LatticeChatShellContextProvider, type LatticeChatShellContextProviderProps, type LatticeChatShellContextValue, type LatticeChatShellProps, LoginForm, type LoginFormProps, LoginPage, MDResponse, MDViewFormItem, MetricsConfigDrawerContent, type MiddlewareConfigDefinition, type MiddlewareConfigSchema, type MiddlewareConfigSchemaProperty, type MiddlewareToolDefinition, type MiddlewareTypeDefinition, type ModelConfig, type ModelInfo, ModelSelector, type ModelSelectorProps, type PanelCard, type PendingMessage, ProtectedRoute, type ProtectedRouteProps, type QuickPromptCategory, type QuickPromptItem, RegisterForm, type RegisterFormProps, type ResourceFolderConfig, type SanitizerConfig, ScheduleButton, type ScheduleButtonProps, SideAppBrowserContext, type SideAppBrowserContextValue, SideAppViewBrowser, type SideMenuItemConfig, type SideMenuItemType, SkillCategoryPrompts, type SkillCategoryPromptsProps, SkillFlow, type SkillFlowProps, SkillNode, type SkillNodeData, type StreamEventHandlerOptions, type StreamingError, StreamingHTMLRenderer, type StreamingHTMLRendererProps, TenantSelector, type TenantSelectorProps, type ThreadState, type ToolCallData, type UIMessage, type UseAgentStateOptions, type UseAgentStateReturn, type UseApiOptions, type UseApiReturn, type UseAxiomLatticeOptions, type UseChatOptions, type UseTenantsOptions, type UseTenantsReturn, type UseUsersOptions, type UseUsersReturn, UserProfile, type UserProfileProps, type UserTenantInfo, WorkflowAutomationView, WorkflowCanvas, type WorkflowCanvasProps, WorkflowNode, type WorkflowNodeData, WorkspaceResourceManager, type WorkspaceResourceManagerProps, WorkspaceResourceUIContext, animation, axiomAntdTheme, axiomAntdThemeDark, axiomTokens, colors, generateIframeSrcdoc, generateLabelFromMessage, getAxiomAntdTheme, getElement, radius, regsiterElement, shadows, spacing, typography, useAgentChat, useAgentGraph, useAgentState, useAgentThreadContext, useApi, useAssistantContext, useAuth, useAuthOptional, useAxiomLattice, useAxiomTheme, useChat, useChatUIContext, useClient, useConversationContext, useEvalCases, useEvalProjects, useEvalRunStream, useEvalRuns, useEvalSuites, useLatticeChatShellContext, useSideAppBrowser, useSideAppOpener, useTenants, useUsers };
|
|
3267
|
+
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, type AuthContextValue, AuthProvider, AxiomLatticeProvider, type AxiomLatticeProviderProps, type BalanceResult, ChangePasswordModal, type ChangePasswordModalProps, ChannelInstallationsDrawerContent, type ChatResponse, ChatSidebar, type ChatSidebarProps, type ChatState, type ChatStateWithAgent, ChatUIContext, ChatUIContextProvider, Chating, type ChatingProps, type ClientConfig, ColumnLayout, type ColumnLayoutProps, ConversationContext, ConversationContextProvider, type ConversationContextProviderProps, type ConversationContextValue, type ConversationThread, CreateAssistantModal, DEFAULT_MENU_ITEMS, DEFAULT_MIDDLEWARE_TYPES, DEFAULT_WORKSPACE_MENU_ITEMS, type ElementMeta, type ElementProps, EvalPanel, EvalRunResults, EvalSuiteCardList, EvalSuiteDetail, type ExplorerFile, FileExplorer, type FileExplorerProps, FilePanelToggle, type IframeMessage, LatticeAgentWorkspace, LatticeChat, LatticeChatShell, type LatticeChatShellConfig, LatticeChatShellContext, LatticeChatShellContextProvider, type LatticeChatShellContextProviderProps, type LatticeChatShellContextValue, type LatticeChatShellProps, LoginForm, type LoginFormProps, LoginPage, MDResponse, MDViewFormItem, MetricsConfigDrawerContent, type MiddlewareConfigDefinition, type MiddlewareConfigSchema, type MiddlewareConfigSchemaProperty, type MiddlewareToolDefinition, type MiddlewareTypeDefinition, type ModelConfig, type ModelInfo, ModelSelector, type ModelSelectorProps, type PanelCard, type PendingMessage, PersonalAssistantPage, ProtectedRoute, type ProtectedRouteProps, type QuickPromptCategory, type QuickPromptItem, RegisterForm, type RegisterFormProps, type ResourceFolderConfig, type SanitizerConfig, ScheduleButton, type ScheduleButtonProps, SideAppBrowserContext, type SideAppBrowserContextValue, SideAppViewBrowser, type SideMenuItemConfig, type SideMenuItemType, SkillCategoryPrompts, type SkillCategoryPromptsProps, SkillFlow, type SkillFlowProps, SkillNode, type SkillNodeData, type StreamEventHandlerOptions, type StreamingError, StreamingHTMLRenderer, type StreamingHTMLRendererProps, TenantSelector, type TenantSelectorProps, type ThreadState, type ToolCallData, type UIMessage, type UseAgentStateOptions, type UseAgentStateReturn, type UseApiOptions, type UseApiReturn, type UseAxiomLatticeOptions, type UseChatOptions, type UseTenantsOptions, type UseTenantsReturn, type UseUsersOptions, type UseUsersReturn, UserProfile, type UserProfileProps, type UserTenantInfo, WorkflowAutomationView, WorkflowCanvas, type WorkflowCanvasProps, WorkflowNode, type WorkflowNodeData, WorkspaceResourceManager, type WorkspaceResourceManagerProps, WorkspaceResourceUIContext, animation, axiomAntdTheme, axiomAntdThemeDark, axiomTokens, colors, generateIframeSrcdoc, generateLabelFromMessage, getAxiomAntdTheme, getElement, radius, regsiterElement, shadows, spacing, typography, useAgentChat, useAgentGraph, useAgentState, useAgentThreadContext, useApi, useAssistantContext, useAuth, useAuthOptional, useAxiomLattice, useAxiomTheme, useChat, useChatUIContext, useClient, useConversationContext, useEvalCases, useEvalProjects, useEvalRunStream, useEvalRuns, useEvalSuites, useLatticeChatShellContext, useSideAppBrowser, useSideAppOpener, useTenants, useUsers };
|
package/dist/index.d.ts
CHANGED
|
@@ -722,10 +722,17 @@ interface UserTenantInfo {
|
|
|
722
722
|
role: string;
|
|
723
723
|
tenant?: Tenant;
|
|
724
724
|
}
|
|
725
|
+
interface PersonalAssistantInfo {
|
|
726
|
+
assistantId: string;
|
|
727
|
+
projectId: string;
|
|
728
|
+
workspaceId: string;
|
|
729
|
+
}
|
|
725
730
|
interface AuthContextValue {
|
|
726
731
|
user: User | null;
|
|
727
732
|
tenants: UserTenantInfo[];
|
|
728
733
|
currentTenant: Tenant | null;
|
|
734
|
+
personalAssistant: PersonalAssistantInfo | null;
|
|
735
|
+
setPersonalAssistant: (info: PersonalAssistantInfo | null) => void;
|
|
729
736
|
isAuthenticated: boolean;
|
|
730
737
|
isLoading: boolean;
|
|
731
738
|
error: string | null;
|
|
@@ -1025,8 +1032,12 @@ interface ChatingProps {
|
|
|
1025
1032
|
showEmptyState?: boolean;
|
|
1026
1033
|
/** Custom greeting element displayed in the empty state. */
|
|
1027
1034
|
emptyStateGreeting?: React__default.ReactNode;
|
|
1028
|
-
/**
|
|
1035
|
+
/** Empty state question line. Default: "Ready to turn..." */
|
|
1029
1036
|
emptyStateQuestion?: string;
|
|
1037
|
+
/** Show skill category prompts in empty state. Default: true. */
|
|
1038
|
+
showSkillPrompts?: boolean;
|
|
1039
|
+
/** Show business analysis prompts in empty state. Default: true. */
|
|
1040
|
+
showQuickAnalysis?: boolean;
|
|
1030
1041
|
/** Welcome prefix text (e.g., "Hey"). */
|
|
1031
1042
|
welcomePrefix?: string;
|
|
1032
1043
|
/** Context string injected before the first user message (e.g. workflow context). */
|
|
@@ -1090,6 +1101,12 @@ type AgentChatProps = {
|
|
|
1090
1101
|
menu?: React__default.ReactNode;
|
|
1091
1102
|
/** Optional header rendered above the main chat area. */
|
|
1092
1103
|
header?: React__default.ReactNode;
|
|
1104
|
+
/** Optional right-side header content. Replaces the default folder toggle button. Use {@link FilePanelToggle} to include it. */
|
|
1105
|
+
headerRight?: React__default.ReactNode;
|
|
1106
|
+
/** Show workspace project selector in header. Default true. */
|
|
1107
|
+
showProjectSelector?: boolean;
|
|
1108
|
+
/** Content shown when no thread is active. Default: "Please create a conversation first". */
|
|
1109
|
+
emptyPlaceholder?: React__default.ReactNode;
|
|
1093
1110
|
} & ChatingProps;
|
|
1094
1111
|
/**
|
|
1095
1112
|
* Top-level chat component for a single assistant thread.
|
|
@@ -1908,6 +1925,13 @@ interface LatticeChatShellConfig {
|
|
|
1908
1925
|
* Defaults to false
|
|
1909
1926
|
*/
|
|
1910
1927
|
enableWorkspace?: boolean;
|
|
1928
|
+
/**
|
|
1929
|
+
* Whether to load custom menu items from the database (API /api/menu-items).
|
|
1930
|
+
* When enabled, WorkspaceResourceManager fetches per-tenant custom menu items
|
|
1931
|
+
* and merges them with built-in defaults.
|
|
1932
|
+
* Defaults to true.
|
|
1933
|
+
*/
|
|
1934
|
+
enableCustomMenu?: boolean;
|
|
1911
1935
|
/**
|
|
1912
1936
|
* Resource folders configuration for workspace
|
|
1913
1937
|
* Each folder represents a section in the workspace assets panel
|
|
@@ -2248,10 +2272,10 @@ declare const MetricsConfigDrawerContent: React__default.FC;
|
|
|
2248
2272
|
/**
|
|
2249
2273
|
* Built-in default menu items for the workspace shell.
|
|
2250
2274
|
*
|
|
2251
|
-
* Contains
|
|
2275
|
+
* Contains 11 route/action items organized in groups:
|
|
2252
2276
|
* - Projects
|
|
2253
2277
|
* - DataSource: Metrics, Database
|
|
2254
|
-
* - Process:
|
|
2278
|
+
* - Process: Workflows, Runtime, Inbox, Eval
|
|
2255
2279
|
* - Settings: Assistants, Skills, MCP, Tools
|
|
2256
2280
|
* - Account: Switch tenant
|
|
2257
2281
|
*
|
|
@@ -2498,7 +2522,7 @@ declare const SkillNode: React__default.FC<NodeProps<Node<SkillNodeData>>>;
|
|
|
2498
2522
|
|
|
2499
2523
|
interface DSLNode {
|
|
2500
2524
|
id: string;
|
|
2501
|
-
type: "agent" | "
|
|
2525
|
+
type: "agent" | "map" | "terminal";
|
|
2502
2526
|
name: string;
|
|
2503
2527
|
description?: string;
|
|
2504
2528
|
ref?: string;
|
|
@@ -2518,26 +2542,16 @@ interface DSLNode {
|
|
|
2518
2542
|
template: string;
|
|
2519
2543
|
};
|
|
2520
2544
|
};
|
|
2521
|
-
reduce?: {
|
|
2522
|
-
ref: string;
|
|
2523
|
-
input?: {
|
|
2524
|
-
template: string;
|
|
2525
|
-
};
|
|
2526
|
-
};
|
|
2527
2545
|
status?: "success" | "failed" | "cancelled";
|
|
2528
2546
|
itemKey?: string;
|
|
2529
|
-
|
|
2547
|
+
ask?: boolean;
|
|
2548
|
+
condition?: string;
|
|
2549
|
+
/** When set, this node belongs to a parallel group. */
|
|
2550
|
+
parentGroup?: string;
|
|
2530
2551
|
}
|
|
2531
2552
|
interface DSLEdge {
|
|
2532
2553
|
from: string;
|
|
2533
2554
|
to?: string | string[];
|
|
2534
|
-
type?: "normal" | "conditional";
|
|
2535
|
-
rule?: {
|
|
2536
|
-
type: "state_field" | "expression";
|
|
2537
|
-
field?: string;
|
|
2538
|
-
code?: string;
|
|
2539
|
-
mapping: Record<string, string>;
|
|
2540
|
-
};
|
|
2541
2555
|
}
|
|
2542
2556
|
interface ExpandedDSL {
|
|
2543
2557
|
version: string;
|
|
@@ -2550,6 +2564,7 @@ interface RunStep {
|
|
|
2550
2564
|
id: string;
|
|
2551
2565
|
stepType: string;
|
|
2552
2566
|
stepName: string;
|
|
2567
|
+
threadId?: string | null;
|
|
2553
2568
|
edgeFrom?: string;
|
|
2554
2569
|
edgeTo?: string;
|
|
2555
2570
|
edgePurpose?: string;
|
|
@@ -2564,39 +2579,36 @@ interface RunStep {
|
|
|
2564
2579
|
interface WorkflowCanvasProps {
|
|
2565
2580
|
dsl: ExpandedDSL;
|
|
2566
2581
|
steps?: RunStep[];
|
|
2582
|
+
assistantId?: string;
|
|
2567
2583
|
onNodeClick?: (nodeId: string) => void;
|
|
2568
2584
|
height?: number | string;
|
|
2569
2585
|
}
|
|
2570
2586
|
declare const WorkflowCanvas: React__default.FC<WorkflowCanvasProps>;
|
|
2571
2587
|
|
|
2572
2588
|
interface RunState {
|
|
2573
|
-
status: "running" | "completed" | "failed" | "interrupted";
|
|
2589
|
+
status: "running" | "completed" | "failed" | "interrupted" | "skipped";
|
|
2574
2590
|
stepType?: string;
|
|
2575
2591
|
durationMs?: number;
|
|
2576
2592
|
selected?: boolean;
|
|
2577
2593
|
}
|
|
2578
2594
|
interface WorkflowNodeData extends Record<string, unknown> {
|
|
2579
|
-
nodeType: "agent" | "
|
|
2595
|
+
nodeType: "agent" | "map" | "terminal";
|
|
2580
2596
|
name: string;
|
|
2581
2597
|
description?: string;
|
|
2582
2598
|
ref?: string;
|
|
2583
2599
|
outputKey?: string;
|
|
2584
|
-
/** node JSON Schema definition */
|
|
2585
2600
|
nodeSchema?: unknown;
|
|
2586
2601
|
config?: Record<string, unknown>;
|
|
2587
|
-
/** terminal status */
|
|
2588
2602
|
status?: string;
|
|
2589
|
-
/** map: source array path */
|
|
2590
2603
|
source?: string;
|
|
2591
|
-
/** map: inner agent ref */
|
|
2592
2604
|
innerRef?: string;
|
|
2593
|
-
/** map: reduce agent ref */
|
|
2594
2605
|
reduceRef?: string;
|
|
2595
|
-
/** node's input template (prompt) */
|
|
2596
2606
|
inputTemplate?: string;
|
|
2597
|
-
/**
|
|
2607
|
+
/** true when node has ask_user_to_clarify middleware (needs+if DSL) */
|
|
2608
|
+
ask?: boolean;
|
|
2609
|
+
/** if condition expression (shown in design view) */
|
|
2610
|
+
condition?: string;
|
|
2598
2611
|
runState?: RunState;
|
|
2599
|
-
/** true when this is a runtime node that hasn't been executed yet */
|
|
2600
2612
|
pending?: boolean;
|
|
2601
2613
|
}
|
|
2602
2614
|
declare const WorkflowNode: React__default.FC<NodeProps<Node<WorkflowNodeData>>>;
|
|
@@ -2724,6 +2736,24 @@ interface EvalRunResultsProps {
|
|
|
2724
2736
|
*/
|
|
2725
2737
|
declare const EvalRunResults: React__default.FC<EvalRunResultsProps>;
|
|
2726
2738
|
|
|
2739
|
+
interface PersonalAssistantPageProps {
|
|
2740
|
+
}
|
|
2741
|
+
declare const PersonalAssistantPage: React__default.FC<PersonalAssistantPageProps>;
|
|
2742
|
+
|
|
2743
|
+
type LatticeAgentWorkspaceProps = AgentChatProps & {
|
|
2744
|
+
workspaceId?: string;
|
|
2745
|
+
projectId?: string;
|
|
2746
|
+
};
|
|
2747
|
+
declare const LatticeAgentWorkspace: React__default.FC<LatticeAgentWorkspaceProps>;
|
|
2748
|
+
|
|
2749
|
+
/**
|
|
2750
|
+
* Toggle button for the file/directory tool panel.
|
|
2751
|
+
*
|
|
2752
|
+
* Must be rendered within a {@link ChatUIContextProvider} (which
|
|
2753
|
+
* {@link LatticeChat} provides automatically).
|
|
2754
|
+
*/
|
|
2755
|
+
declare const FilePanelToggle: React__default.FC;
|
|
2756
|
+
|
|
2727
2757
|
interface SkillCategoryPromptsProps {
|
|
2728
2758
|
senderRef: React__default.RefObject<any>;
|
|
2729
2759
|
visible?: boolean;
|
|
@@ -3234,4 +3264,4 @@ type IframeMessage = {
|
|
|
3234
3264
|
};
|
|
3235
3265
|
declare function generateIframeSrcdoc(): string;
|
|
3236
3266
|
|
|
3237
|
-
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, type AuthContextValue, AuthProvider, AxiomLatticeProvider, type AxiomLatticeProviderProps, type BalanceResult, ChangePasswordModal, type ChangePasswordModalProps, ChannelInstallationsDrawerContent, type ChatResponse, ChatSidebar, type ChatSidebarProps, type ChatState, type ChatStateWithAgent, ChatUIContext, ChatUIContextProvider, Chating, type ChatingProps, type ClientConfig, ColumnLayout, type ColumnLayoutProps, ConversationContext, ConversationContextProvider, type ConversationContextProviderProps, type ConversationContextValue, type ConversationThread, CreateAssistantModal, DEFAULT_MENU_ITEMS, DEFAULT_MIDDLEWARE_TYPES, DEFAULT_WORKSPACE_MENU_ITEMS, type ElementMeta, type ElementProps, EvalPanel, EvalRunResults, EvalSuiteCardList, EvalSuiteDetail, type ExplorerFile, FileExplorer, type FileExplorerProps, type IframeMessage, LatticeChat, LatticeChatShell, type LatticeChatShellConfig, LatticeChatShellContext, LatticeChatShellContextProvider, type LatticeChatShellContextProviderProps, type LatticeChatShellContextValue, type LatticeChatShellProps, LoginForm, type LoginFormProps, LoginPage, MDResponse, MDViewFormItem, MetricsConfigDrawerContent, type MiddlewareConfigDefinition, type MiddlewareConfigSchema, type MiddlewareConfigSchemaProperty, type MiddlewareToolDefinition, type MiddlewareTypeDefinition, type ModelConfig, type ModelInfo, ModelSelector, type ModelSelectorProps, type PanelCard, type PendingMessage, ProtectedRoute, type ProtectedRouteProps, type QuickPromptCategory, type QuickPromptItem, RegisterForm, type RegisterFormProps, type ResourceFolderConfig, type SanitizerConfig, ScheduleButton, type ScheduleButtonProps, SideAppBrowserContext, type SideAppBrowserContextValue, SideAppViewBrowser, type SideMenuItemConfig, type SideMenuItemType, SkillCategoryPrompts, type SkillCategoryPromptsProps, SkillFlow, type SkillFlowProps, SkillNode, type SkillNodeData, type StreamEventHandlerOptions, type StreamingError, StreamingHTMLRenderer, type StreamingHTMLRendererProps, TenantSelector, type TenantSelectorProps, type ThreadState, type ToolCallData, type UIMessage, type UseAgentStateOptions, type UseAgentStateReturn, type UseApiOptions, type UseApiReturn, type UseAxiomLatticeOptions, type UseChatOptions, type UseTenantsOptions, type UseTenantsReturn, type UseUsersOptions, type UseUsersReturn, UserProfile, type UserProfileProps, type UserTenantInfo, WorkflowAutomationView, WorkflowCanvas, type WorkflowCanvasProps, WorkflowNode, type WorkflowNodeData, WorkspaceResourceManager, type WorkspaceResourceManagerProps, WorkspaceResourceUIContext, animation, axiomAntdTheme, axiomAntdThemeDark, axiomTokens, colors, generateIframeSrcdoc, generateLabelFromMessage, getAxiomAntdTheme, getElement, radius, regsiterElement, shadows, spacing, typography, useAgentChat, useAgentGraph, useAgentState, useAgentThreadContext, useApi, useAssistantContext, useAuth, useAuthOptional, useAxiomLattice, useAxiomTheme, useChat, useChatUIContext, useClient, useConversationContext, useEvalCases, useEvalProjects, useEvalRunStream, useEvalRuns, useEvalSuites, useLatticeChatShellContext, useSideAppBrowser, useSideAppOpener, useTenants, useUsers };
|
|
3267
|
+
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, type AuthContextValue, AuthProvider, AxiomLatticeProvider, type AxiomLatticeProviderProps, type BalanceResult, ChangePasswordModal, type ChangePasswordModalProps, ChannelInstallationsDrawerContent, type ChatResponse, ChatSidebar, type ChatSidebarProps, type ChatState, type ChatStateWithAgent, ChatUIContext, ChatUIContextProvider, Chating, type ChatingProps, type ClientConfig, ColumnLayout, type ColumnLayoutProps, ConversationContext, ConversationContextProvider, type ConversationContextProviderProps, type ConversationContextValue, type ConversationThread, CreateAssistantModal, DEFAULT_MENU_ITEMS, DEFAULT_MIDDLEWARE_TYPES, DEFAULT_WORKSPACE_MENU_ITEMS, type ElementMeta, type ElementProps, EvalPanel, EvalRunResults, EvalSuiteCardList, EvalSuiteDetail, type ExplorerFile, FileExplorer, type FileExplorerProps, FilePanelToggle, type IframeMessage, LatticeAgentWorkspace, LatticeChat, LatticeChatShell, type LatticeChatShellConfig, LatticeChatShellContext, LatticeChatShellContextProvider, type LatticeChatShellContextProviderProps, type LatticeChatShellContextValue, type LatticeChatShellProps, LoginForm, type LoginFormProps, LoginPage, MDResponse, MDViewFormItem, MetricsConfigDrawerContent, type MiddlewareConfigDefinition, type MiddlewareConfigSchema, type MiddlewareConfigSchemaProperty, type MiddlewareToolDefinition, type MiddlewareTypeDefinition, type ModelConfig, type ModelInfo, ModelSelector, type ModelSelectorProps, type PanelCard, type PendingMessage, PersonalAssistantPage, ProtectedRoute, type ProtectedRouteProps, type QuickPromptCategory, type QuickPromptItem, RegisterForm, type RegisterFormProps, type ResourceFolderConfig, type SanitizerConfig, ScheduleButton, type ScheduleButtonProps, SideAppBrowserContext, type SideAppBrowserContextValue, SideAppViewBrowser, type SideMenuItemConfig, type SideMenuItemType, SkillCategoryPrompts, type SkillCategoryPromptsProps, SkillFlow, type SkillFlowProps, SkillNode, type SkillNodeData, type StreamEventHandlerOptions, type StreamingError, StreamingHTMLRenderer, type StreamingHTMLRendererProps, TenantSelector, type TenantSelectorProps, type ThreadState, type ToolCallData, type UIMessage, type UseAgentStateOptions, type UseAgentStateReturn, type UseApiOptions, type UseApiReturn, type UseAxiomLatticeOptions, type UseChatOptions, type UseTenantsOptions, type UseTenantsReturn, type UseUsersOptions, type UseUsersReturn, UserProfile, type UserProfileProps, type UserTenantInfo, WorkflowAutomationView, WorkflowCanvas, type WorkflowCanvasProps, WorkflowNode, type WorkflowNodeData, WorkspaceResourceManager, type WorkspaceResourceManagerProps, WorkspaceResourceUIContext, animation, axiomAntdTheme, axiomAntdThemeDark, axiomTokens, colors, generateIframeSrcdoc, generateLabelFromMessage, getAxiomAntdTheme, getElement, radius, regsiterElement, shadows, spacing, typography, useAgentChat, useAgentGraph, useAgentState, useAgentThreadContext, useApi, useAssistantContext, useAuth, useAuthOptional, useAxiomLattice, useAxiomTheme, useChat, useChatUIContext, useClient, useConversationContext, useEvalCases, useEvalProjects, useEvalRunStream, useEvalRuns, useEvalSuites, useLatticeChatShellContext, useSideAppBrowser, useSideAppOpener, useTenants, useUsers };
|