@axiom-lattice/react-sdk 2.1.126 → 2.2.0

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,5 +1,5 @@
1
1
  import * as _axiom_lattice_protocols from '@axiom-lattice/protocols';
2
- import { Message, InterruptMessage, Thread, MessageChunk, User, Tenant, Skill } from '@axiom-lattice/protocols';
2
+ import { Message, InterruptMessage, Thread, MessageChunk, User, Tenant, Skill, TaskItem, TaskFileRef } from '@axiom-lattice/protocols';
3
3
  export * from '@axiom-lattice/protocols';
4
4
  import * as React$1 from 'react';
5
5
  import React__default, { ReactNode, Component } from 'react';
@@ -1015,7 +1015,7 @@ declare function useEvalRuns(projectId?: string): {
1015
1015
  projectId?: string;
1016
1016
  }) => Promise<{
1017
1017
  run_id: string;
1018
- }>;
1018
+ } | undefined>;
1019
1019
  abort: (runId: string) => Promise<void>;
1020
1020
  remove: (runId: string) => Promise<void>;
1021
1021
  refresh: () => Promise<void>;
@@ -2891,10 +2891,26 @@ declare const WorkflowAutomationView: React__default.FC;
2891
2891
  interface CreateAssistantModalProps {
2892
2892
  open: boolean;
2893
2893
  onCancel: () => void;
2894
- onSuccess?: (assistant: Assistant) => void;
2894
+ onSuccess?: (assistant: Assistant, options?: {
2895
+ initialMessage?: string;
2896
+ projectId?: string;
2897
+ }) => void;
2895
2898
  }
2896
2899
  declare const CreateAssistantModal: React__default.FC<CreateAssistantModalProps>;
2897
2900
 
2901
+ type Page = "dashboard" | "suites" | "suite" | "run";
2902
+ interface EvalPanelProps {
2903
+ /**
2904
+ * Optional deep-link target applied on mount and when its fields change.
2905
+ * Overrides the default "select first project / dashboard" behavior.
2906
+ */
2907
+ initial?: {
2908
+ projectId?: string;
2909
+ page?: Page;
2910
+ suiteId?: string;
2911
+ runId?: string;
2912
+ };
2913
+ }
2898
2914
  /**
2899
2915
  * Top-level evaluation panel component.
2900
2916
  *
@@ -2920,7 +2936,7 @@ declare const CreateAssistantModal: React__default.FC<CreateAssistantModalProps>
2920
2936
  * }
2921
2937
  * ```
2922
2938
  */
2923
- declare const EvalPanel: React__default.FC;
2939
+ declare const EvalPanel: React__default.FC<EvalPanelProps>;
2924
2940
 
2925
2941
  /**
2926
2942
  * Props for {@link EvalSuiteCardList}.
@@ -3039,11 +3055,31 @@ interface AgentGraphData {
3039
3055
  target: string;
3040
3056
  }>;
3041
3057
  }
3042
- type DetailTab = "edit" | "playground" | "eval";
3058
+ type DetailTab = "graph" | "overview" | "configuration" | "playground" | "eval";
3059
+
3060
+ interface AgentCardStatsData {
3061
+ id: string;
3062
+ threadCount: number;
3063
+ last7d: number;
3064
+ last30d: number;
3065
+ lastActive: string | null;
3066
+ daily7d: number[];
3067
+ daily30d: number[];
3068
+ evalScore: number | null;
3069
+ evalPassRate: number | null;
3070
+ evalRuns: number;
3071
+ evalTrend: number[];
3072
+ }
3073
+ declare const AgentCardStats: React__default.FC<{
3074
+ stats?: AgentCardStatsData | null;
3075
+ }>;
3043
3076
 
3044
3077
  interface AgentListProps {
3045
3078
  items: AgentListItem[];
3046
3079
  assistants?: Assistant[];
3080
+ stats?: Record<string, AgentCardStatsData>;
3081
+ /** When the server-side stats cache expires (ISO) — shown as a refresh hint. */
3082
+ statsExpiresAt?: string | null;
3047
3083
  loading: boolean;
3048
3084
  onItemClick: (id: string) => void;
3049
3085
  onOpenPlayground: (id: string) => void;
@@ -3058,8 +3094,17 @@ interface AgentDetailViewProps {
3058
3094
  allAssistants: Assistant[];
3059
3095
  onBack: () => void;
3060
3096
  onDeleted: (id: string) => Promise<void> | void;
3097
+ /** Initial deep view opened over the canvas (graph = none). */
3061
3098
  initialTab?: DetailTab;
3062
3099
  onSave?: (assistant: Assistant, config: Record<string, unknown>) => Promise<void>;
3100
+ /** Called with the freshly fetched assistant after a config-changing copilot tool. */
3101
+ onAssistantUpdated?: (assistant: Assistant) => void;
3102
+ /** Called when the agent list itself changed (create/delete) or the viewed agent is gone. */
3103
+ onAgentListInvalidated?: () => void;
3104
+ /** Auto-sent architect message (learning kickoff after creation). */
3105
+ initialMessage?: string | null;
3106
+ /** Pre-selected canvas project (learn-to-build hands off the modal's choice). */
3107
+ initialProjectId?: string | null;
3063
3108
  }
3064
3109
  declare const AgentDetailView: React__default.FC<AgentDetailViewProps>;
3065
3110
 
@@ -3069,14 +3114,110 @@ interface AgentEvalPanelProps {
3069
3114
  /**
3070
3115
  * Agent-scoped evaluation panel.
3071
3116
  *
3072
- * Resolves the eval project for an agent via the naming convention
3073
- * `name === "eval-{assistantId}"`. When the project exists, renders the
3074
- * agent-scoped eval UI (suites list -> suite detail -> run results).
3075
- * Otherwise shows an empty state with a create-project flow that pre-fills
3076
- * the convention name and asks for a judge model.
3117
+ * Resolves the agent's eval project via findAgentEvalProject
3118
+ * (targetAgentId pointer → naming convention → description fallback).
3119
+ * When the project exists, renders the agent-scoped eval UI (suites list
3120
+ * -> suite detail -> run results). Otherwise shows an empty state with a
3121
+ * create-project flow that records the targetAgentId pointer.
3077
3122
  */
3078
3123
  declare const AgentEvalPanel: React__default.FC<AgentEvalPanelProps>;
3079
3124
 
3125
+ /** True when a task is a training round (top-level training task). */
3126
+ declare function isTrainingRound(task: TaskItem): boolean;
3127
+ /** A minimal eval-run shape used for round scoring. */
3128
+ type ScoreRun = {
3129
+ avgScore: number;
3130
+ envProjectId?: string;
3131
+ createdAt?: string | Date;
3132
+ };
3133
+ /** The representative score of a round: validation-env run first, else the newest run. */
3134
+ declare function getRoundRepresentativeScore(runs: ScoreRun[], validationProjectId: string | null | undefined): number | null;
3135
+ /** The file-item shape `AttachmentsCard` consumes. */
3136
+ interface AttachmentItemLike {
3137
+ id: string;
3138
+ name: string;
3139
+ }
3140
+ /** Map task file references to the shape AttachmentsCard consumes. */
3141
+ declare function toAttachmentItems(files: TaskFileRef[]): AttachmentItemLike[];
3142
+
3143
+ interface AgentOverviewProps {
3144
+ assistantId: string;
3145
+ assistant: Assistant;
3146
+ }
3147
+ declare const AgentOverview: React__default.FC<AgentOverviewProps>;
3148
+
3149
+ type ConfigNodeType = "agent" | "tool" | "capability" | "subagent" | "skill" | "model" | "eval";
3150
+ interface ConfigGraphNode {
3151
+ id: string;
3152
+ type: ConfigNodeType;
3153
+ label: string;
3154
+ description?: string;
3155
+ /** Raw config payload (e.g. middleware config, tool schema). */
3156
+ config?: unknown;
3157
+ /** Agent-side key to jump to in the config panel (section). */
3158
+ section?: string;
3159
+ }
3160
+ /** A category container node: holds capability items, one edge from the agent. */
3161
+ interface ConfigGroup {
3162
+ id: string;
3163
+ type: ConfigNodeType;
3164
+ label: string;
3165
+ items: ConfigGraphNode[];
3166
+ }
3167
+ interface ConfigGraphData {
3168
+ agent: ConfigGraphNode;
3169
+ /** Only groups that have at least one item. */
3170
+ groups: ConfigGroup[];
3171
+ }
3172
+ /**
3173
+ * Build a configuration graph from an agent's graphDefinition:
3174
+ * one center agent node + one container node per capability category
3175
+ * (tools / middleware / subagents / skills / model). The agent only
3176
+ * connects to category containers, not to every single item — keeps
3177
+ * the graph readable when an agent has many capabilities.
3178
+ */
3179
+ declare function buildAgentConfigGraphData(def: unknown): ConfigGraphData;
3180
+
3181
+ interface LearningTasksData {
3182
+ /** The latest training round, regardless of status (null = none yet). */
3183
+ round: TaskItem | null;
3184
+ /** Full subtask tree under the round (all statuses — results matter). */
3185
+ subTasks: TaskItem[];
3186
+ loading: boolean;
3187
+ }
3188
+
3189
+ interface AgentConfigGraphProps {
3190
+ graphDefinition: unknown;
3191
+ /** Node selected on the canvas (null = pane click cleared the selection). */
3192
+ onSelectNode?: (node: ConfigGraphNode | null) => void;
3193
+ /** When provided, an Agent Architect copilot panel is shown on the canvas. */
3194
+ assistantId?: string;
3195
+ assistantName?: string;
3196
+ /** Called when the user removes a capability node from the graph (updates config). */
3197
+ onRemoveNode?: (node: ConfigGraphNode) => void;
3198
+ /** Auto-send message in the architect copilot (learning kickoff). */
3199
+ initialMessage?: string | null;
3200
+ /** Called after the initial message has been sent. */
3201
+ onInitialMessageSent?: () => void;
3202
+ /** Selected project filter for the learning progress card. */
3203
+ projectId?: string | null;
3204
+ /** Called when the canvas project selector changes. */
3205
+ onProjectChange?: (projectId: string | null) => void;
3206
+ /** Called after a learning round is started from the canvas learning card. */
3207
+ onLearningStarted?: (goal: string, roundTaskId: string, files?: TaskFileRef[]) => void;
3208
+ /** Called with every architect tool name (event-driven UI refresh). */
3209
+ onToolActivity?: (toolName: string) => void;
3210
+ /** Learning rounds + subtree, forwarded to the canvas overlay. */
3211
+ learningTasks?: LearningTasksData;
3212
+ /** Refetch learning tasks (after a round is created). */
3213
+ onLearningRefresh?: () => Promise<void>;
3214
+ /** Bumped (debounced) on run_eval tool activity. */
3215
+ evalTick?: number;
3216
+ /** HUD column top offset (56 on detail pages — leaves the pill strip exposed). */
3217
+ hudTopOffset?: number;
3218
+ }
3219
+ declare const AgentConfigGraph: React__default.FC<AgentConfigGraphProps>;
3220
+
3080
3221
  interface AgentGraphViewProps {
3081
3222
  assistants: Assistant[];
3082
3223
  onNodeClick?: (assistantId: string) => void;
@@ -3254,6 +3395,8 @@ interface ViewModeExtension {
3254
3395
  interface EntityCardProps<T> {
3255
3396
  item: T;
3256
3397
  onClick?: (item: T) => void;
3398
+ /** Compact layout: smaller padding and element gaps. */
3399
+ dense?: boolean;
3257
3400
  renderIcon?: (item: T) => React__default.ReactNode;
3258
3401
  renderPrimary: (item: T) => React__default.ReactNode;
3259
3402
  renderSecondary?: (item: T) => React__default.ReactNode;
@@ -3265,7 +3408,7 @@ interface EntityCardProps<T> {
3265
3408
  actionsStyle?: ActionsStyle;
3266
3409
  className?: string;
3267
3410
  }
3268
- declare const EntityCard: <T>({ item, onClick, renderIcon, renderPrimary, renderSecondary, renderFooter, renderHeaderActions, renderDetails, actions, actionsPosition, actionsStyle, className, }: EntityCardProps<T>) => React__default.ReactElement;
3411
+ declare const EntityCard: <T>({ item, onClick, dense, renderIcon, renderPrimary, renderSecondary, renderHeaderActions, renderDetails, renderFooter, actions, actionsPosition, actionsStyle, className, }: EntityCardProps<T>) => React__default.ReactElement;
3269
3412
 
3270
3413
  interface EntityRowProps<T> {
3271
3414
  item: T;
@@ -3950,4 +4093,4 @@ type IframeMessage = {
3950
4093
  };
3951
4094
  declare function generateIframeSrcdoc(): string;
3952
4095
 
3953
- export { type AgentChatProps, AgentConversations, type AgentConversationsProps, AgentDetailView, AgentEvalPanel, AgentGovernanceWorkbench, AgentGraphView, AgentList, 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, ChatErrorBoundary, type ChatErrorBoundaryProps, type ChatResponse, ChatSidebar, type ChatSidebarProps, type ChatState, type ChatStateWithAgent, ChatUIContext, ChatUIContextProvider, Chating, type ChatingProps, type ClientConfig, ColumnLayout, type ColumnLayoutProps, ConflictResolver, ConnectionConfigDrawerContent, ConnectionListField, ConnectionsHub, ConversationContext, ConversationContextProvider, type ConversationContextProviderProps, type ConversationContextValue, type ConversationThread, CreateAssistantModal, DEFAULT_MENU_ITEMS, DEFAULT_MIDDLEWARE_TYPES, DEFAULT_WORKSPACE_MENU_ITEMS, type ElementMeta, type ElementProps, type EntityAction, EntityCard, EntityCreateTrigger, EntityListShell, EntityListView, EntityRow, EvalPanel, EvalRunResults, EvalSuiteCardList, EvalSuiteDetail, type ExplorerFile, ExportStep, FileExplorer, type FileExplorerProps, FilePanelToggle, FilterSelect, type FilterSelectProps, type IframeMessage, ImportStep, 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, MigrationPage, MigrationPageWrapper, type ModelConfig, type ModelInfo, ModelSelector, type ModelSelectorProps, type PanelCard, type PendingMessage, PersonalAssistantChannelModal, PersonalAssistantPage, ProjectScopeProvider, type ProjectScopeProviderProps, ProjectScopedChating, type ProjectScopedChatingProps, ProjectSelector, type ProjectSelectorProps, ProtectedRoute, type ProtectedRouteProps, type QuickPromptCategory, type QuickPromptItem, type RecorderError, type RecorderMode, type RecorderStatus, RegisterForm, type RegisterFormProps, type ResourceFolderConfig, RunEnvModal, type RunEnvModalProps, 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, TenantBranding, type TenantBrandingData, TenantLogo, TenantSelector, type TenantSelectorProps, TenantSettingsModal, 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, type UseVoiceRecorderOptions, UserProfile, type UserProfileProps, type UserTenantInfo, type ViewMode, type ViewModeExtension, ViewToggle, VoiceInputButton, type VoiceInputButtonProps, type VoiceRecorderState, WorkflowAutomationView, WorkflowCanvas, type WorkflowCanvasProps, WorkflowNode, type WorkflowNodeData, WorkspaceResourceManager, type WorkspaceResourceManagerProps, WorkspaceResourceUIContext, animation, axiomAntdTheme, axiomAntdThemeDark, axiomTokens, buildAgentGraphData, buildAgentListItems, 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, useMiddlewareTypes, useOptionalAgentThreadContext, useSideAppBrowser, useSideAppOpener, useTenantBranding, useTenants, useUsers, useVoiceRecorder };
4096
+ export { AgentCardStats, type AgentCardStatsData, type AgentChatProps, AgentConfigGraph, AgentConversations, type AgentConversationsProps, AgentDetailView, AgentEvalPanel, AgentGovernanceWorkbench, AgentGraphView, AgentList, AgentOverview, 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, ChatErrorBoundary, type ChatErrorBoundaryProps, type ChatResponse, ChatSidebar, type ChatSidebarProps, type ChatState, type ChatStateWithAgent, ChatUIContext, ChatUIContextProvider, Chating, type ChatingProps, type ClientConfig, ColumnLayout, type ColumnLayoutProps, type ConfigGraphNode, type ConfigNodeType, ConflictResolver, ConnectionConfigDrawerContent, ConnectionListField, ConnectionsHub, ConversationContext, ConversationContextProvider, type ConversationContextProviderProps, type ConversationContextValue, type ConversationThread, CreateAssistantModal, DEFAULT_MENU_ITEMS, DEFAULT_MIDDLEWARE_TYPES, DEFAULT_WORKSPACE_MENU_ITEMS, type ElementMeta, type ElementProps, type EntityAction, EntityCard, EntityCreateTrigger, EntityListShell, EntityListView, EntityRow, EvalPanel, EvalRunResults, EvalSuiteCardList, EvalSuiteDetail, type ExplorerFile, ExportStep, FileExplorer, type FileExplorerProps, FilePanelToggle, FilterSelect, type FilterSelectProps, type IframeMessage, ImportStep, 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, MigrationPage, MigrationPageWrapper, type ModelConfig, type ModelInfo, ModelSelector, type ModelSelectorProps, type PanelCard, type PendingMessage, PersonalAssistantChannelModal, PersonalAssistantPage, ProjectScopeProvider, type ProjectScopeProviderProps, ProjectScopedChating, type ProjectScopedChatingProps, ProjectSelector, type ProjectSelectorProps, ProtectedRoute, type ProtectedRouteProps, type QuickPromptCategory, type QuickPromptItem, type RecorderError, type RecorderMode, type RecorderStatus, RegisterForm, type RegisterFormProps, type ResourceFolderConfig, RunEnvModal, type RunEnvModalProps, 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, TenantBranding, type TenantBrandingData, TenantLogo, TenantSelector, type TenantSelectorProps, TenantSettingsModal, 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, type UseVoiceRecorderOptions, UserProfile, type UserProfileProps, type UserTenantInfo, type ViewMode, type ViewModeExtension, ViewToggle, VoiceInputButton, type VoiceInputButtonProps, type VoiceRecorderState, WorkflowAutomationView, WorkflowCanvas, type WorkflowCanvasProps, WorkflowNode, type WorkflowNodeData, WorkspaceResourceManager, type WorkspaceResourceManagerProps, WorkspaceResourceUIContext, animation, axiomAntdTheme, axiomAntdThemeDark, axiomTokens, buildAgentConfigGraphData, buildAgentGraphData, buildAgentListItems, colors, generateIframeSrcdoc, generateLabelFromMessage, getAxiomAntdTheme, getElement, getRoundRepresentativeScore, isTrainingRound, radius, regsiterElement, shadows, spacing, toAttachmentItems, typography, useAgentChat, useAgentGraph, useAgentState, useAgentThreadContext, useApi, useAssistantContext, useAuth, useAuthOptional, useAxiomLattice, useAxiomTheme, useChat, useChatUIContext, useClient, useConversationContext, useEvalCases, useEvalProjects, useEvalRunStream, useEvalRuns, useEvalSuites, useLatticeChatShellContext, useMiddlewareTypes, useOptionalAgentThreadContext, useSideAppBrowser, useSideAppOpener, useTenantBranding, useTenants, useUsers, useVoiceRecorder };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as _axiom_lattice_protocols from '@axiom-lattice/protocols';
2
- import { Message, InterruptMessage, Thread, MessageChunk, User, Tenant, Skill } from '@axiom-lattice/protocols';
2
+ import { Message, InterruptMessage, Thread, MessageChunk, User, Tenant, Skill, TaskItem, TaskFileRef } from '@axiom-lattice/protocols';
3
3
  export * from '@axiom-lattice/protocols';
4
4
  import * as React$1 from 'react';
5
5
  import React__default, { ReactNode, Component } from 'react';
@@ -1015,7 +1015,7 @@ declare function useEvalRuns(projectId?: string): {
1015
1015
  projectId?: string;
1016
1016
  }) => Promise<{
1017
1017
  run_id: string;
1018
- }>;
1018
+ } | undefined>;
1019
1019
  abort: (runId: string) => Promise<void>;
1020
1020
  remove: (runId: string) => Promise<void>;
1021
1021
  refresh: () => Promise<void>;
@@ -2891,10 +2891,26 @@ declare const WorkflowAutomationView: React__default.FC;
2891
2891
  interface CreateAssistantModalProps {
2892
2892
  open: boolean;
2893
2893
  onCancel: () => void;
2894
- onSuccess?: (assistant: Assistant) => void;
2894
+ onSuccess?: (assistant: Assistant, options?: {
2895
+ initialMessage?: string;
2896
+ projectId?: string;
2897
+ }) => void;
2895
2898
  }
2896
2899
  declare const CreateAssistantModal: React__default.FC<CreateAssistantModalProps>;
2897
2900
 
2901
+ type Page = "dashboard" | "suites" | "suite" | "run";
2902
+ interface EvalPanelProps {
2903
+ /**
2904
+ * Optional deep-link target applied on mount and when its fields change.
2905
+ * Overrides the default "select first project / dashboard" behavior.
2906
+ */
2907
+ initial?: {
2908
+ projectId?: string;
2909
+ page?: Page;
2910
+ suiteId?: string;
2911
+ runId?: string;
2912
+ };
2913
+ }
2898
2914
  /**
2899
2915
  * Top-level evaluation panel component.
2900
2916
  *
@@ -2920,7 +2936,7 @@ declare const CreateAssistantModal: React__default.FC<CreateAssistantModalProps>
2920
2936
  * }
2921
2937
  * ```
2922
2938
  */
2923
- declare const EvalPanel: React__default.FC;
2939
+ declare const EvalPanel: React__default.FC<EvalPanelProps>;
2924
2940
 
2925
2941
  /**
2926
2942
  * Props for {@link EvalSuiteCardList}.
@@ -3039,11 +3055,31 @@ interface AgentGraphData {
3039
3055
  target: string;
3040
3056
  }>;
3041
3057
  }
3042
- type DetailTab = "edit" | "playground" | "eval";
3058
+ type DetailTab = "graph" | "overview" | "configuration" | "playground" | "eval";
3059
+
3060
+ interface AgentCardStatsData {
3061
+ id: string;
3062
+ threadCount: number;
3063
+ last7d: number;
3064
+ last30d: number;
3065
+ lastActive: string | null;
3066
+ daily7d: number[];
3067
+ daily30d: number[];
3068
+ evalScore: number | null;
3069
+ evalPassRate: number | null;
3070
+ evalRuns: number;
3071
+ evalTrend: number[];
3072
+ }
3073
+ declare const AgentCardStats: React__default.FC<{
3074
+ stats?: AgentCardStatsData | null;
3075
+ }>;
3043
3076
 
3044
3077
  interface AgentListProps {
3045
3078
  items: AgentListItem[];
3046
3079
  assistants?: Assistant[];
3080
+ stats?: Record<string, AgentCardStatsData>;
3081
+ /** When the server-side stats cache expires (ISO) — shown as a refresh hint. */
3082
+ statsExpiresAt?: string | null;
3047
3083
  loading: boolean;
3048
3084
  onItemClick: (id: string) => void;
3049
3085
  onOpenPlayground: (id: string) => void;
@@ -3058,8 +3094,17 @@ interface AgentDetailViewProps {
3058
3094
  allAssistants: Assistant[];
3059
3095
  onBack: () => void;
3060
3096
  onDeleted: (id: string) => Promise<void> | void;
3097
+ /** Initial deep view opened over the canvas (graph = none). */
3061
3098
  initialTab?: DetailTab;
3062
3099
  onSave?: (assistant: Assistant, config: Record<string, unknown>) => Promise<void>;
3100
+ /** Called with the freshly fetched assistant after a config-changing copilot tool. */
3101
+ onAssistantUpdated?: (assistant: Assistant) => void;
3102
+ /** Called when the agent list itself changed (create/delete) or the viewed agent is gone. */
3103
+ onAgentListInvalidated?: () => void;
3104
+ /** Auto-sent architect message (learning kickoff after creation). */
3105
+ initialMessage?: string | null;
3106
+ /** Pre-selected canvas project (learn-to-build hands off the modal's choice). */
3107
+ initialProjectId?: string | null;
3063
3108
  }
3064
3109
  declare const AgentDetailView: React__default.FC<AgentDetailViewProps>;
3065
3110
 
@@ -3069,14 +3114,110 @@ interface AgentEvalPanelProps {
3069
3114
  /**
3070
3115
  * Agent-scoped evaluation panel.
3071
3116
  *
3072
- * Resolves the eval project for an agent via the naming convention
3073
- * `name === "eval-{assistantId}"`. When the project exists, renders the
3074
- * agent-scoped eval UI (suites list -> suite detail -> run results).
3075
- * Otherwise shows an empty state with a create-project flow that pre-fills
3076
- * the convention name and asks for a judge model.
3117
+ * Resolves the agent's eval project via findAgentEvalProject
3118
+ * (targetAgentId pointer → naming convention → description fallback).
3119
+ * When the project exists, renders the agent-scoped eval UI (suites list
3120
+ * -> suite detail -> run results). Otherwise shows an empty state with a
3121
+ * create-project flow that records the targetAgentId pointer.
3077
3122
  */
3078
3123
  declare const AgentEvalPanel: React__default.FC<AgentEvalPanelProps>;
3079
3124
 
3125
+ /** True when a task is a training round (top-level training task). */
3126
+ declare function isTrainingRound(task: TaskItem): boolean;
3127
+ /** A minimal eval-run shape used for round scoring. */
3128
+ type ScoreRun = {
3129
+ avgScore: number;
3130
+ envProjectId?: string;
3131
+ createdAt?: string | Date;
3132
+ };
3133
+ /** The representative score of a round: validation-env run first, else the newest run. */
3134
+ declare function getRoundRepresentativeScore(runs: ScoreRun[], validationProjectId: string | null | undefined): number | null;
3135
+ /** The file-item shape `AttachmentsCard` consumes. */
3136
+ interface AttachmentItemLike {
3137
+ id: string;
3138
+ name: string;
3139
+ }
3140
+ /** Map task file references to the shape AttachmentsCard consumes. */
3141
+ declare function toAttachmentItems(files: TaskFileRef[]): AttachmentItemLike[];
3142
+
3143
+ interface AgentOverviewProps {
3144
+ assistantId: string;
3145
+ assistant: Assistant;
3146
+ }
3147
+ declare const AgentOverview: React__default.FC<AgentOverviewProps>;
3148
+
3149
+ type ConfigNodeType = "agent" | "tool" | "capability" | "subagent" | "skill" | "model" | "eval";
3150
+ interface ConfigGraphNode {
3151
+ id: string;
3152
+ type: ConfigNodeType;
3153
+ label: string;
3154
+ description?: string;
3155
+ /** Raw config payload (e.g. middleware config, tool schema). */
3156
+ config?: unknown;
3157
+ /** Agent-side key to jump to in the config panel (section). */
3158
+ section?: string;
3159
+ }
3160
+ /** A category container node: holds capability items, one edge from the agent. */
3161
+ interface ConfigGroup {
3162
+ id: string;
3163
+ type: ConfigNodeType;
3164
+ label: string;
3165
+ items: ConfigGraphNode[];
3166
+ }
3167
+ interface ConfigGraphData {
3168
+ agent: ConfigGraphNode;
3169
+ /** Only groups that have at least one item. */
3170
+ groups: ConfigGroup[];
3171
+ }
3172
+ /**
3173
+ * Build a configuration graph from an agent's graphDefinition:
3174
+ * one center agent node + one container node per capability category
3175
+ * (tools / middleware / subagents / skills / model). The agent only
3176
+ * connects to category containers, not to every single item — keeps
3177
+ * the graph readable when an agent has many capabilities.
3178
+ */
3179
+ declare function buildAgentConfigGraphData(def: unknown): ConfigGraphData;
3180
+
3181
+ interface LearningTasksData {
3182
+ /** The latest training round, regardless of status (null = none yet). */
3183
+ round: TaskItem | null;
3184
+ /** Full subtask tree under the round (all statuses — results matter). */
3185
+ subTasks: TaskItem[];
3186
+ loading: boolean;
3187
+ }
3188
+
3189
+ interface AgentConfigGraphProps {
3190
+ graphDefinition: unknown;
3191
+ /** Node selected on the canvas (null = pane click cleared the selection). */
3192
+ onSelectNode?: (node: ConfigGraphNode | null) => void;
3193
+ /** When provided, an Agent Architect copilot panel is shown on the canvas. */
3194
+ assistantId?: string;
3195
+ assistantName?: string;
3196
+ /** Called when the user removes a capability node from the graph (updates config). */
3197
+ onRemoveNode?: (node: ConfigGraphNode) => void;
3198
+ /** Auto-send message in the architect copilot (learning kickoff). */
3199
+ initialMessage?: string | null;
3200
+ /** Called after the initial message has been sent. */
3201
+ onInitialMessageSent?: () => void;
3202
+ /** Selected project filter for the learning progress card. */
3203
+ projectId?: string | null;
3204
+ /** Called when the canvas project selector changes. */
3205
+ onProjectChange?: (projectId: string | null) => void;
3206
+ /** Called after a learning round is started from the canvas learning card. */
3207
+ onLearningStarted?: (goal: string, roundTaskId: string, files?: TaskFileRef[]) => void;
3208
+ /** Called with every architect tool name (event-driven UI refresh). */
3209
+ onToolActivity?: (toolName: string) => void;
3210
+ /** Learning rounds + subtree, forwarded to the canvas overlay. */
3211
+ learningTasks?: LearningTasksData;
3212
+ /** Refetch learning tasks (after a round is created). */
3213
+ onLearningRefresh?: () => Promise<void>;
3214
+ /** Bumped (debounced) on run_eval tool activity. */
3215
+ evalTick?: number;
3216
+ /** HUD column top offset (56 on detail pages — leaves the pill strip exposed). */
3217
+ hudTopOffset?: number;
3218
+ }
3219
+ declare const AgentConfigGraph: React__default.FC<AgentConfigGraphProps>;
3220
+
3080
3221
  interface AgentGraphViewProps {
3081
3222
  assistants: Assistant[];
3082
3223
  onNodeClick?: (assistantId: string) => void;
@@ -3254,6 +3395,8 @@ interface ViewModeExtension {
3254
3395
  interface EntityCardProps<T> {
3255
3396
  item: T;
3256
3397
  onClick?: (item: T) => void;
3398
+ /** Compact layout: smaller padding and element gaps. */
3399
+ dense?: boolean;
3257
3400
  renderIcon?: (item: T) => React__default.ReactNode;
3258
3401
  renderPrimary: (item: T) => React__default.ReactNode;
3259
3402
  renderSecondary?: (item: T) => React__default.ReactNode;
@@ -3265,7 +3408,7 @@ interface EntityCardProps<T> {
3265
3408
  actionsStyle?: ActionsStyle;
3266
3409
  className?: string;
3267
3410
  }
3268
- declare const EntityCard: <T>({ item, onClick, renderIcon, renderPrimary, renderSecondary, renderFooter, renderHeaderActions, renderDetails, actions, actionsPosition, actionsStyle, className, }: EntityCardProps<T>) => React__default.ReactElement;
3411
+ declare const EntityCard: <T>({ item, onClick, dense, renderIcon, renderPrimary, renderSecondary, renderHeaderActions, renderDetails, renderFooter, actions, actionsPosition, actionsStyle, className, }: EntityCardProps<T>) => React__default.ReactElement;
3269
3412
 
3270
3413
  interface EntityRowProps<T> {
3271
3414
  item: T;
@@ -3950,4 +4093,4 @@ type IframeMessage = {
3950
4093
  };
3951
4094
  declare function generateIframeSrcdoc(): string;
3952
4095
 
3953
- export { type AgentChatProps, AgentConversations, type AgentConversationsProps, AgentDetailView, AgentEvalPanel, AgentGovernanceWorkbench, AgentGraphView, AgentList, 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, ChatErrorBoundary, type ChatErrorBoundaryProps, type ChatResponse, ChatSidebar, type ChatSidebarProps, type ChatState, type ChatStateWithAgent, ChatUIContext, ChatUIContextProvider, Chating, type ChatingProps, type ClientConfig, ColumnLayout, type ColumnLayoutProps, ConflictResolver, ConnectionConfigDrawerContent, ConnectionListField, ConnectionsHub, ConversationContext, ConversationContextProvider, type ConversationContextProviderProps, type ConversationContextValue, type ConversationThread, CreateAssistantModal, DEFAULT_MENU_ITEMS, DEFAULT_MIDDLEWARE_TYPES, DEFAULT_WORKSPACE_MENU_ITEMS, type ElementMeta, type ElementProps, type EntityAction, EntityCard, EntityCreateTrigger, EntityListShell, EntityListView, EntityRow, EvalPanel, EvalRunResults, EvalSuiteCardList, EvalSuiteDetail, type ExplorerFile, ExportStep, FileExplorer, type FileExplorerProps, FilePanelToggle, FilterSelect, type FilterSelectProps, type IframeMessage, ImportStep, 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, MigrationPage, MigrationPageWrapper, type ModelConfig, type ModelInfo, ModelSelector, type ModelSelectorProps, type PanelCard, type PendingMessage, PersonalAssistantChannelModal, PersonalAssistantPage, ProjectScopeProvider, type ProjectScopeProviderProps, ProjectScopedChating, type ProjectScopedChatingProps, ProjectSelector, type ProjectSelectorProps, ProtectedRoute, type ProtectedRouteProps, type QuickPromptCategory, type QuickPromptItem, type RecorderError, type RecorderMode, type RecorderStatus, RegisterForm, type RegisterFormProps, type ResourceFolderConfig, RunEnvModal, type RunEnvModalProps, 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, TenantBranding, type TenantBrandingData, TenantLogo, TenantSelector, type TenantSelectorProps, TenantSettingsModal, 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, type UseVoiceRecorderOptions, UserProfile, type UserProfileProps, type UserTenantInfo, type ViewMode, type ViewModeExtension, ViewToggle, VoiceInputButton, type VoiceInputButtonProps, type VoiceRecorderState, WorkflowAutomationView, WorkflowCanvas, type WorkflowCanvasProps, WorkflowNode, type WorkflowNodeData, WorkspaceResourceManager, type WorkspaceResourceManagerProps, WorkspaceResourceUIContext, animation, axiomAntdTheme, axiomAntdThemeDark, axiomTokens, buildAgentGraphData, buildAgentListItems, 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, useMiddlewareTypes, useOptionalAgentThreadContext, useSideAppBrowser, useSideAppOpener, useTenantBranding, useTenants, useUsers, useVoiceRecorder };
4096
+ export { AgentCardStats, type AgentCardStatsData, type AgentChatProps, AgentConfigGraph, AgentConversations, type AgentConversationsProps, AgentDetailView, AgentEvalPanel, AgentGovernanceWorkbench, AgentGraphView, AgentList, AgentOverview, 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, ChatErrorBoundary, type ChatErrorBoundaryProps, type ChatResponse, ChatSidebar, type ChatSidebarProps, type ChatState, type ChatStateWithAgent, ChatUIContext, ChatUIContextProvider, Chating, type ChatingProps, type ClientConfig, ColumnLayout, type ColumnLayoutProps, type ConfigGraphNode, type ConfigNodeType, ConflictResolver, ConnectionConfigDrawerContent, ConnectionListField, ConnectionsHub, ConversationContext, ConversationContextProvider, type ConversationContextProviderProps, type ConversationContextValue, type ConversationThread, CreateAssistantModal, DEFAULT_MENU_ITEMS, DEFAULT_MIDDLEWARE_TYPES, DEFAULT_WORKSPACE_MENU_ITEMS, type ElementMeta, type ElementProps, type EntityAction, EntityCard, EntityCreateTrigger, EntityListShell, EntityListView, EntityRow, EvalPanel, EvalRunResults, EvalSuiteCardList, EvalSuiteDetail, type ExplorerFile, ExportStep, FileExplorer, type FileExplorerProps, FilePanelToggle, FilterSelect, type FilterSelectProps, type IframeMessage, ImportStep, 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, MigrationPage, MigrationPageWrapper, type ModelConfig, type ModelInfo, ModelSelector, type ModelSelectorProps, type PanelCard, type PendingMessage, PersonalAssistantChannelModal, PersonalAssistantPage, ProjectScopeProvider, type ProjectScopeProviderProps, ProjectScopedChating, type ProjectScopedChatingProps, ProjectSelector, type ProjectSelectorProps, ProtectedRoute, type ProtectedRouteProps, type QuickPromptCategory, type QuickPromptItem, type RecorderError, type RecorderMode, type RecorderStatus, RegisterForm, type RegisterFormProps, type ResourceFolderConfig, RunEnvModal, type RunEnvModalProps, 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, TenantBranding, type TenantBrandingData, TenantLogo, TenantSelector, type TenantSelectorProps, TenantSettingsModal, 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, type UseVoiceRecorderOptions, UserProfile, type UserProfileProps, type UserTenantInfo, type ViewMode, type ViewModeExtension, ViewToggle, VoiceInputButton, type VoiceInputButtonProps, type VoiceRecorderState, WorkflowAutomationView, WorkflowCanvas, type WorkflowCanvasProps, WorkflowNode, type WorkflowNodeData, WorkspaceResourceManager, type WorkspaceResourceManagerProps, WorkspaceResourceUIContext, animation, axiomAntdTheme, axiomAntdThemeDark, axiomTokens, buildAgentConfigGraphData, buildAgentGraphData, buildAgentListItems, colors, generateIframeSrcdoc, generateLabelFromMessage, getAxiomAntdTheme, getElement, getRoundRepresentativeScore, isTrainingRound, radius, regsiterElement, shadows, spacing, toAttachmentItems, typography, useAgentChat, useAgentGraph, useAgentState, useAgentThreadContext, useApi, useAssistantContext, useAuth, useAuthOptional, useAxiomLattice, useAxiomTheme, useChat, useChatUIContext, useClient, useConversationContext, useEvalCases, useEvalProjects, useEvalRunStream, useEvalRuns, useEvalSuites, useLatticeChatShellContext, useMiddlewareTypes, useOptionalAgentThreadContext, useSideAppBrowser, useSideAppOpener, useTenantBranding, useTenants, useUsers, useVoiceRecorder };