@axiom-lattice/react-sdk 2.1.127 → 2.2.1

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';
@@ -2891,7 +2891,10 @@ 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
 
@@ -3052,11 +3055,31 @@ interface AgentGraphData {
3052
3055
  target: string;
3053
3056
  }>;
3054
3057
  }
3055
- 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
+ }>;
3056
3076
 
3057
3077
  interface AgentListProps {
3058
3078
  items: AgentListItem[];
3059
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;
3060
3083
  loading: boolean;
3061
3084
  onItemClick: (id: string) => void;
3062
3085
  onOpenPlayground: (id: string) => void;
@@ -3071,8 +3094,17 @@ interface AgentDetailViewProps {
3071
3094
  allAssistants: Assistant[];
3072
3095
  onBack: () => void;
3073
3096
  onDeleted: (id: string) => Promise<void> | void;
3097
+ /** Initial deep view opened over the canvas (graph = none). */
3074
3098
  initialTab?: DetailTab;
3075
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;
3076
3108
  }
3077
3109
  declare const AgentDetailView: React__default.FC<AgentDetailViewProps>;
3078
3110
 
@@ -3082,14 +3114,110 @@ interface AgentEvalPanelProps {
3082
3114
  /**
3083
3115
  * Agent-scoped evaluation panel.
3084
3116
  *
3085
- * Resolves the eval project for an agent via the naming convention
3086
- * `name === "eval-{assistantId}"`. When the project exists, renders the
3087
- * agent-scoped eval UI (suites list -> suite detail -> run results).
3088
- * Otherwise shows an empty state with a create-project flow that pre-fills
3089
- * 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.
3090
3122
  */
3091
3123
  declare const AgentEvalPanel: React__default.FC<AgentEvalPanelProps>;
3092
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
+
3093
3221
  interface AgentGraphViewProps {
3094
3222
  assistants: Assistant[];
3095
3223
  onNodeClick?: (assistantId: string) => void;
@@ -3965,4 +4093,4 @@ type IframeMessage = {
3965
4093
  };
3966
4094
  declare function generateIframeSrcdoc(): string;
3967
4095
 
3968
- 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';
@@ -2891,7 +2891,10 @@ 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
 
@@ -3052,11 +3055,31 @@ interface AgentGraphData {
3052
3055
  target: string;
3053
3056
  }>;
3054
3057
  }
3055
- 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
+ }>;
3056
3076
 
3057
3077
  interface AgentListProps {
3058
3078
  items: AgentListItem[];
3059
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;
3060
3083
  loading: boolean;
3061
3084
  onItemClick: (id: string) => void;
3062
3085
  onOpenPlayground: (id: string) => void;
@@ -3071,8 +3094,17 @@ interface AgentDetailViewProps {
3071
3094
  allAssistants: Assistant[];
3072
3095
  onBack: () => void;
3073
3096
  onDeleted: (id: string) => Promise<void> | void;
3097
+ /** Initial deep view opened over the canvas (graph = none). */
3074
3098
  initialTab?: DetailTab;
3075
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;
3076
3108
  }
3077
3109
  declare const AgentDetailView: React__default.FC<AgentDetailViewProps>;
3078
3110
 
@@ -3082,14 +3114,110 @@ interface AgentEvalPanelProps {
3082
3114
  /**
3083
3115
  * Agent-scoped evaluation panel.
3084
3116
  *
3085
- * Resolves the eval project for an agent via the naming convention
3086
- * `name === "eval-{assistantId}"`. When the project exists, renders the
3087
- * agent-scoped eval UI (suites list -> suite detail -> run results).
3088
- * Otherwise shows an empty state with a create-project flow that pre-fills
3089
- * 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.
3090
3122
  */
3091
3123
  declare const AgentEvalPanel: React__default.FC<AgentEvalPanelProps>;
3092
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
+
3093
3221
  interface AgentGraphViewProps {
3094
3222
  assistants: Assistant[];
3095
3223
  onNodeClick?: (assistantId: string) => void;
@@ -3965,4 +4093,4 @@ type IframeMessage = {
3965
4093
  };
3966
4094
  declare function generateIframeSrcdoc(): string;
3967
4095
 
3968
- 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 };