@lincyaw/aegis-ui 0.3.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.
Files changed (157) hide show
  1. package/README.md +17 -0
  2. package/dist/agent/AegisAgentProvider.d.ts +35 -0
  3. package/dist/agent/AgentProvider.d.ts +13 -0
  4. package/dist/agent/AgentmChannelProvider.d.ts +43 -0
  5. package/dist/agent/AskOverlay.d.ts +3 -0
  6. package/dist/agent/AskPanel.d.ts +19 -0
  7. package/dist/agent/aegisAgentContext.d.ts +6 -0
  8. package/dist/agent/agentContext.d.ts +52 -0
  9. package/dist/agent/agentmChannelClient.d.ts +76 -0
  10. package/dist/agent/buildAskContext.d.ts +9 -0
  11. package/dist/agent/hooks.d.ts +24 -0
  12. package/dist/agent/index.d.ts +17 -0
  13. package/dist/agent/mcpToolCatalogue.d.ts +2 -0
  14. package/dist/agent/runtime.d.ts +65 -0
  15. package/dist/agent/types.d.ts +261 -0
  16. package/dist/agent/useAgent.d.ts +7 -0
  17. package/dist/auth/AuthProvider.d.ts +13 -0
  18. package/dist/auth/RequireAuth.d.ts +13 -0
  19. package/dist/auth/authContext.d.ts +33 -0
  20. package/dist/auth/index.d.ts +4 -0
  21. package/dist/auth/useAuth.d.ts +7 -0
  22. package/dist/commands/CommandProvider.d.ts +12 -0
  23. package/dist/commands/commandContext.d.ts +57 -0
  24. package/dist/commands/index.d.ts +5 -0
  25. package/dist/commands/shortcut.d.ts +9 -0
  26. package/dist/commands/useCommands.d.ts +6 -0
  27. package/dist/commands/useRegisterCommands.d.ts +7 -0
  28. package/dist/components/ui/AgentPanel.d.ts +23 -0
  29. package/dist/components/ui/AuthLayout.d.ts +11 -0
  30. package/dist/components/ui/Avatar.d.ts +26 -0
  31. package/dist/components/ui/BlastRadiusBar.d.ts +24 -0
  32. package/dist/components/ui/Breadcrumb.d.ts +29 -0
  33. package/dist/components/ui/BucketCard.d.ts +24 -0
  34. package/dist/components/ui/Button.d.ts +14 -0
  35. package/dist/components/ui/ChatComposer.d.ts +10 -0
  36. package/dist/components/ui/ChatMessage.d.ts +31 -0
  37. package/dist/components/ui/ChatMessageList.d.ts +23 -0
  38. package/dist/components/ui/ChatSessionList.d.ts +22 -0
  39. package/dist/components/ui/Chip.d.ts +22 -0
  40. package/dist/components/ui/CodeBlock.d.ts +21 -0
  41. package/dist/components/ui/CodeEditor.d.ts +42 -0
  42. package/dist/components/ui/CommandInvocationCard.d.ts +24 -0
  43. package/dist/components/ui/CommandPalette.d.ts +3 -0
  44. package/dist/components/ui/ControlListItem.d.ts +18 -0
  45. package/dist/components/ui/DangerZone.d.ts +9 -0
  46. package/dist/components/ui/DataList.d.ts +30 -0
  47. package/dist/components/ui/DataTable.d.ts +48 -0
  48. package/dist/components/ui/DiffViewer.d.ts +33 -0
  49. package/dist/components/ui/DropdownMenu.d.ts +20 -0
  50. package/dist/components/ui/EmptyState.d.ts +10 -0
  51. package/dist/components/ui/EnvironmentSwitcher.d.ts +29 -0
  52. package/dist/components/ui/ErrorState.d.ts +11 -0
  53. package/dist/components/ui/EventTable.d.ts +39 -0
  54. package/dist/components/ui/FileDropzone.d.ts +47 -0
  55. package/dist/components/ui/FilePreview.d.ts +34 -0
  56. package/dist/components/ui/FolderDropzone.d.ts +24 -0
  57. package/dist/components/ui/ForgotPasswordForm.d.ts +12 -0
  58. package/dist/components/ui/FormRow.d.ts +9 -0
  59. package/dist/components/ui/InboxPage.d.ts +18 -0
  60. package/dist/components/ui/KeyValueList.d.ts +27 -0
  61. package/dist/components/ui/LoginForm.d.ts +18 -0
  62. package/dist/components/ui/Markdown.d.ts +6 -0
  63. package/dist/components/ui/MetadataList.d.ts +15 -0
  64. package/dist/components/ui/MetricCard.d.ts +30 -0
  65. package/dist/components/ui/MetricLabel.d.ts +11 -0
  66. package/dist/components/ui/MonoValue.d.ts +22 -0
  67. package/dist/components/ui/NotificationBell.d.ts +12 -0
  68. package/dist/components/ui/ObjectBrowser.d.ts +40 -0
  69. package/dist/components/ui/ObjectInspector.d.ts +27 -0
  70. package/dist/components/ui/PageHeader.d.ts +9 -0
  71. package/dist/components/ui/PageSizeSelect.d.ts +11 -0
  72. package/dist/components/ui/Panel.d.ts +22 -0
  73. package/dist/components/ui/PanelTitle.d.ts +10 -0
  74. package/dist/components/ui/ParquetViewer.d.ts +30 -0
  75. package/dist/components/ui/PasswordField.d.ts +9 -0
  76. package/dist/components/ui/ProjectSelector.d.ts +17 -0
  77. package/dist/components/ui/QueryAutocomplete.d.ts +26 -0
  78. package/dist/components/ui/RegisterForm.d.ts +14 -0
  79. package/dist/components/ui/ResizableSidePanel.d.ts +21 -0
  80. package/dist/components/ui/SavedQueryBar.d.ts +16 -0
  81. package/dist/components/ui/SearchInput.d.ts +12 -0
  82. package/dist/components/ui/SectionDivider.d.ts +12 -0
  83. package/dist/components/ui/ServiceMap.d.ts +28 -0
  84. package/dist/components/ui/SettingsSection.d.ts +9 -0
  85. package/dist/components/ui/ShareLinkDialog.d.ts +25 -0
  86. package/dist/components/ui/Skeleton.d.ts +16 -0
  87. package/dist/components/ui/SparkLine.d.ts +27 -0
  88. package/dist/components/ui/StatBlock.d.ts +29 -0
  89. package/dist/components/ui/StatusDot.d.ts +8 -0
  90. package/dist/components/ui/Tabs.d.ts +18 -0
  91. package/dist/components/ui/Terminal.d.ts +25 -0
  92. package/dist/components/ui/TextField.d.ts +10 -0
  93. package/dist/components/ui/ThemeToggle.d.ts +13 -0
  94. package/dist/components/ui/TimeDisplay.d.ts +11 -0
  95. package/dist/components/ui/TimeRangePicker.d.ts +18 -0
  96. package/dist/components/ui/Timeline.d.ts +32 -0
  97. package/dist/components/ui/TimelineChart.d.ts +23 -0
  98. package/dist/components/ui/ToolCallCard.d.ts +24 -0
  99. package/dist/components/ui/Toolbar.d.ts +24 -0
  100. package/dist/components/ui/TraceTree.d.ts +35 -0
  101. package/dist/components/ui/TrajectoryStep.d.ts +28 -0
  102. package/dist/components/ui/TrajectoryTimeline.d.ts +22 -0
  103. package/dist/components/ui/UploadQueue.d.ts +13 -0
  104. package/dist/components/ui/index.d.ts +130 -0
  105. package/dist/components/ui/relativeTime.d.ts +5 -0
  106. package/dist/hooks/index.d.ts +4 -0
  107. package/dist/hooks/useResizable.d.ts +15 -0
  108. package/dist/hooks/useSavedQueries.d.ts +23 -0
  109. package/dist/index-6WZzHI2Z.cjs +1151 -0
  110. package/dist/index-6WZzHI2Z.cjs.map +1 -0
  111. package/dist/index-CZ_qegBG.js +6736 -0
  112. package/dist/index-CZ_qegBG.js.map +1 -0
  113. package/dist/index-DLXAAlfH.cjs +15 -0
  114. package/dist/index-DLXAAlfH.cjs.map +1 -0
  115. package/dist/index-DtgBxtmy.js +56284 -0
  116. package/dist/index-DtgBxtmy.js.map +1 -0
  117. package/dist/index.cjs +2 -0
  118. package/dist/index.cjs.map +1 -0
  119. package/dist/index.d.ts +26 -0
  120. package/dist/index.js +127 -0
  121. package/dist/index.js.map +1 -0
  122. package/dist/layouts/PageWrapper.d.ts +10 -0
  123. package/dist/layouts/shell/AegisShell.d.ts +11 -0
  124. package/dist/layouts/shell/AppSwitcher.d.ts +14 -0
  125. package/dist/layouts/shell/AuthRequiredCard.d.ts +16 -0
  126. package/dist/layouts/shell/BreadcrumbBar.d.ts +13 -0
  127. package/dist/layouts/shell/Sidebar.d.ts +11 -0
  128. package/dist/layouts/shell/TopHeader.d.ts +33 -0
  129. package/dist/layouts/shell/activeAppContext.d.ts +15 -0
  130. package/dist/layouts/shell/environments/EnvironmentContext.d.ts +12 -0
  131. package/dist/layouts/shell/environments/context.d.ts +6 -0
  132. package/dist/layouts/shell/environments/hooks.d.ts +8 -0
  133. package/dist/layouts/shell/environments/index.d.ts +4 -0
  134. package/dist/layouts/shell/environments/manifest.d.ts +26 -0
  135. package/dist/layouts/shell/environments/types.d.ts +55 -0
  136. package/dist/layouts/shell/index.d.ts +7 -0
  137. package/dist/layouts/shell/types.d.ts +173 -0
  138. package/dist/layouts/shell/useAppNavigate.d.ts +21 -0
  139. package/dist/lib/luceneQuery/compile.d.ts +29 -0
  140. package/dist/lib/luceneQuery/index.d.ts +4 -0
  141. package/dist/lib/luceneQuery/tokenizeAtCursor.d.ts +21 -0
  142. package/dist/lib/timeRange.d.ts +25 -0
  143. package/dist/notifications/NotificationProvider.d.ts +13 -0
  144. package/dist/notifications/index.d.ts +3 -0
  145. package/dist/notifications/notificationContext.d.ts +38 -0
  146. package/dist/notifications/useNotifications.d.ts +7 -0
  147. package/dist/style.css +1 -0
  148. package/dist/styles/fonts.d.ts +0 -0
  149. package/dist/theme/ThemeProvider.d.ts +14 -0
  150. package/dist/theme/antdTheme.d.ts +9 -0
  151. package/dist/theme/themeContext.d.ts +12 -0
  152. package/dist/theme/useTheme.d.ts +2 -0
  153. package/dist/workerBundle-D52AeOj1.js +76 -0
  154. package/dist/workerBundle-D52AeOj1.js.map +1 -0
  155. package/dist/workerBundle-FGNDqtbW.cjs +73 -0
  156. package/dist/workerBundle-FGNDqtbW.cjs.map +1 -0
  157. package/package.json +89 -0
@@ -0,0 +1,26 @@
1
+ export interface QueryAutocompleteFieldSuggestion {
2
+ value: string;
3
+ hint?: string;
4
+ }
5
+ export interface QueryAutocompleteValueSuggestion {
6
+ value: string;
7
+ hint?: string;
8
+ }
9
+ export interface QueryAutocompleteProps {
10
+ value: string;
11
+ onChange: (next: string) => void;
12
+ /** Called when user presses Enter and no popover is open. */
13
+ onSubmit?: (value: string) => void;
14
+ /** Field-name completions; rendered when cursor is in a field-start token. */
15
+ fieldSuggestions: QueryAutocompleteFieldSuggestion[];
16
+ /** Value completions for `field:` tokens. Return [] to opt out. */
17
+ valueSuggestions?: (field: string, prefix: string) => Promise<QueryAutocompleteValueSuggestion[]> | QueryAutocompleteValueSuggestion[];
18
+ placeholder?: string;
19
+ /** Show a "?" tooltip with the LuceneQL cheat sheet. Default true. */
20
+ showHelp?: boolean;
21
+ className?: string;
22
+ popoverClassName?: string;
23
+ disabled?: boolean;
24
+ }
25
+ export declare function QueryAutocomplete({ value, onChange, onSubmit, fieldSuggestions, valueSuggestions, placeholder, showHelp, className, popoverClassName, disabled, }: QueryAutocompleteProps): JSX.Element;
26
+ export default QueryAutocomplete;
@@ -0,0 +1,14 @@
1
+ import { ReactElement } from 'react';
2
+ interface RegisterFormValues {
3
+ name: string;
4
+ email: string;
5
+ password: string;
6
+ }
7
+ interface RegisterFormProps {
8
+ onSubmit: (values: RegisterFormValues) => void | Promise<void>;
9
+ submitting?: boolean;
10
+ error?: string;
11
+ minPasswordLength?: number;
12
+ }
13
+ export declare function RegisterForm({ onSubmit, submitting, error, minPasswordLength, }: RegisterFormProps): ReactElement;
14
+ export default RegisterForm;
@@ -0,0 +1,21 @@
1
+ import { ReactNode } from 'react';
2
+ export interface ResizableSidePanelProps {
3
+ children: ReactNode;
4
+ /** Which edge of the parent the panel attaches to. */
5
+ side: 'left' | 'right';
6
+ /** Initial width in px. */
7
+ defaultWidth?: number;
8
+ minWidth?: number;
9
+ maxWidth?: number;
10
+ /** localStorage key to persist width across reloads. */
11
+ persistKey?: string;
12
+ /** Whether the panel can be fully collapsed (rendered as a thin handle bar). */
13
+ collapsible?: boolean;
14
+ /** Controlled collapsed state. If omitted, internal state is used. */
15
+ collapsed?: boolean;
16
+ onCollapsedChange?: (collapsed: boolean) => void;
17
+ /** Optional className appended to the root. */
18
+ className?: string;
19
+ }
20
+ export declare function ResizableSidePanel({ children, side, defaultWidth, minWidth, maxWidth, persistKey, collapsible, collapsed: collapsedProp, onCollapsedChange, className, }: ResizableSidePanelProps): import("react/jsx-runtime").JSX.Element;
21
+ export default ResizableSidePanel;
@@ -0,0 +1,16 @@
1
+ import { SavedQuery } from '../../hooks/useSavedQueries';
2
+ export interface SavedQueryBarProps {
3
+ namespace: string;
4
+ /** The current "live" query value to save when the user clicks Save. */
5
+ currentValue: string;
6
+ /** Called when the user picks a saved query — consumer applies it. */
7
+ onApply: (q: SavedQuery) => void;
8
+ /** When true, render a "Save current" affordance even if currentValue is empty (default false). */
9
+ allowEmptySave?: boolean;
10
+ /** Optional className. */
11
+ className?: string;
12
+ /** Max number of unpinned queries shown inline (default 6). The rest live in an overflow menu. */
13
+ maxInlineUnpinned?: number;
14
+ }
15
+ export declare function SavedQueryBar({ namespace, currentValue, onApply, allowEmptySave, className, maxInlineUnpinned, }: SavedQueryBarProps): import("react/jsx-runtime").JSX.Element;
16
+ export default SavedQueryBar;
@@ -0,0 +1,12 @@
1
+ import { ReactNode } from 'react';
2
+ export interface SearchInputProps {
3
+ value: string;
4
+ onChange: (value: string) => void;
5
+ placeholder?: string;
6
+ /** Optional keyboard shortcut hint, e.g. `⌘K`. */
7
+ kbd?: ReactNode;
8
+ onClear?: () => void;
9
+ className?: string;
10
+ }
11
+ export declare function SearchInput({ value, onChange, placeholder, kbd, onClear, className, }: SearchInputProps): import("react/jsx-runtime").JSX.Element;
12
+ export default SearchInput;
@@ -0,0 +1,12 @@
1
+ import { ReactNode } from 'react';
2
+ interface SectionDividerProps {
3
+ /** Uppercase tracked label. */
4
+ children: ReactNode;
5
+ /** Right-aligned content (chip / link / mono value). */
6
+ extra?: ReactNode;
7
+ /** Render the hairline rule below the label. */
8
+ rule?: boolean;
9
+ className?: string;
10
+ }
11
+ export declare function SectionDivider({ children, extra, rule, className, }: SectionDividerProps): import("react/jsx-runtime").JSX.Element;
12
+ export default SectionDivider;
@@ -0,0 +1,28 @@
1
+ export type ServiceMapStatus = 'ok' | 'warn' | 'error' | 'muted';
2
+ export type ServiceMapDirection = 'LR' | 'TB';
3
+ export interface ServiceMapNode {
4
+ id: string;
5
+ label: string;
6
+ sublabel?: string;
7
+ status?: ServiceMapStatus;
8
+ badge?: number | string;
9
+ data?: Record<string, unknown>;
10
+ }
11
+ export interface ServiceMapEdge {
12
+ id: string;
13
+ source: string;
14
+ target: string;
15
+ label?: string;
16
+ status?: ServiceMapStatus;
17
+ }
18
+ export interface ServiceMapProps {
19
+ nodes: ServiceMapNode[];
20
+ edges: ServiceMapEdge[];
21
+ direction?: ServiceMapDirection;
22
+ height?: number;
23
+ onNodeClick?: (node: ServiceMapNode) => void;
24
+ onEdgeClick?: (edge: ServiceMapEdge) => void;
25
+ selectedNodeId?: string;
26
+ className?: string;
27
+ }
28
+ export declare function ServiceMap(props: ServiceMapProps): JSX.Element;
@@ -0,0 +1,9 @@
1
+ import { ReactNode } from 'react';
2
+ interface SettingsSectionProps {
3
+ title: string;
4
+ description?: string;
5
+ children: ReactNode;
6
+ className?: string;
7
+ }
8
+ export declare function SettingsSection({ title, description, children, className, }: SettingsSectionProps): import("react/jsx-runtime").JSX.Element;
9
+ export default SettingsSection;
@@ -0,0 +1,25 @@
1
+ export interface ShareLinkOptions {
2
+ ttlSeconds: number;
3
+ /** When true, response forces attachment download instead of inline render. */
4
+ asAttachment: boolean;
5
+ }
6
+ export interface ShareLinkResult {
7
+ url: string;
8
+ expiresAt: string;
9
+ }
10
+ interface ShareLinkDialogProps {
11
+ /** Object key being shared — displayed at the top for context. */
12
+ objectKey: string;
13
+ /** Available TTL presets shown as chips. */
14
+ ttlPresets?: Array<{
15
+ label: string;
16
+ seconds: number;
17
+ }>;
18
+ /** Asked when user clicks "Generate". Resolves to URL + expires. */
19
+ onGenerate: (opts: ShareLinkOptions) => Promise<ShareLinkResult>;
20
+ /** Optional cancel/close handler — renders a secondary button. */
21
+ onClose?: () => void;
22
+ className?: string;
23
+ }
24
+ export declare function ShareLinkDialog({ objectKey, ttlPresets, onGenerate, onClose, className, }: ShareLinkDialogProps): import("react/jsx-runtime").JSX.Element;
25
+ export default ShareLinkDialog;
@@ -0,0 +1,16 @@
1
+ import { CSSProperties, ReactElement } from 'react';
2
+ interface SkeletonProps {
3
+ width?: number | string;
4
+ height?: number | string;
5
+ radius?: 'sm' | 'md' | 'pill' | 'circle';
6
+ block?: boolean;
7
+ className?: string;
8
+ style?: CSSProperties;
9
+ }
10
+ export declare function Skeleton({ width, height, radius, block, className, style, }: SkeletonProps): ReactElement;
11
+ interface SkeletonTextProps {
12
+ lines?: number;
13
+ className?: string;
14
+ }
15
+ export declare function SkeletonText({ lines, className, }: SkeletonTextProps): ReactElement;
16
+ export {};
@@ -0,0 +1,27 @@
1
+ import { SurfaceKind, SurfaceSnapshot } from '../../agent/types';
2
+ export interface SparkLineSurface {
3
+ id: string;
4
+ kind?: SurfaceKind;
5
+ label?: string;
6
+ project: (points: number[]) => Pick<SurfaceSnapshot, 'entities' | 'fields'>;
7
+ askSuggestions?: string[];
8
+ ask?: boolean;
9
+ }
10
+ interface SparkLineProps {
11
+ /** Sample values; rendered evenly on the X axis. */
12
+ points: number[];
13
+ /** Display dimensions (defaults give a strip-style sparkline). */
14
+ width?: number;
15
+ height?: number;
16
+ /** Stroke thickness. */
17
+ strokeWidth?: number;
18
+ /** Gradient backdrop (panel → page). */
19
+ withBackdrop?: boolean;
20
+ /** Use white stroke for inverted panels. */
21
+ inverted?: boolean;
22
+ className?: string;
23
+ ariaLabel?: string;
24
+ surface?: SparkLineSurface;
25
+ }
26
+ export declare function SparkLine({ points, width, height, strokeWidth, withBackdrop, inverted, className, ariaLabel, surface, }: SparkLineProps): import("react/jsx-runtime").JSX.Element;
27
+ export default SparkLine;
@@ -0,0 +1,29 @@
1
+ import { ReactNode } from 'react';
2
+ import { SurfaceKind, SurfaceSnapshot } from '../../agent/types';
3
+ export interface StatBlockSurface {
4
+ id: string;
5
+ kind?: SurfaceKind;
6
+ label?: string;
7
+ project: (data: {
8
+ label: ReactNode;
9
+ value: ReactNode;
10
+ unit?: ReactNode;
11
+ }) => Pick<SurfaceSnapshot, 'entities' | 'fields'>;
12
+ askSuggestions?: string[];
13
+ ask?: boolean;
14
+ }
15
+ interface StatBlockProps {
16
+ label: ReactNode;
17
+ value: ReactNode;
18
+ /** Optional unit displayed after the value. */
19
+ unit?: ReactNode;
20
+ /** Layout direction. Default: horizontal (label · value, baseline). */
21
+ direction?: 'horizontal' | 'vertical';
22
+ /** Use the larger 18 px mono variant. */
23
+ emphasized?: boolean;
24
+ inverted?: boolean;
25
+ className?: string;
26
+ surface?: StatBlockSurface;
27
+ }
28
+ export declare function StatBlock({ label, value, unit, direction, emphasized, inverted, className, surface, }: StatBlockProps): import("react/jsx-runtime").JSX.Element;
29
+ export default StatBlock;
@@ -0,0 +1,8 @@
1
+ interface StatusDotProps {
2
+ pulse?: boolean;
3
+ tone?: 'ink' | 'inverted' | 'warning' | 'muted';
4
+ size?: number;
5
+ className?: string;
6
+ }
7
+ export declare function StatusDot({ pulse, tone, size, className, }: StatusDotProps): import("react/jsx-runtime").JSX.Element;
8
+ export default StatusDot;
@@ -0,0 +1,18 @@
1
+ import { ReactNode } from 'react';
2
+ import { AegisAction } from '../../agent/types';
3
+ export interface TabItem {
4
+ key: string;
5
+ label: ReactNode;
6
+ /** Optional aegis-ui agent action — fired after the tab activates. */
7
+ action?: AegisAction<void, unknown>;
8
+ }
9
+ interface TabsProps {
10
+ items: TabItem[];
11
+ activeKey?: string;
12
+ defaultActiveKey?: string;
13
+ onChange?: (key: string) => void;
14
+ children?: ReactNode;
15
+ className?: string;
16
+ }
17
+ export declare function Tabs({ items, activeKey: controlledKey, defaultActiveKey, onChange, children, className, }: TabsProps): import("react/jsx-runtime").JSX.Element;
18
+ export default Tabs;
@@ -0,0 +1,25 @@
1
+ import { ReactNode } from 'react';
2
+ import { SurfaceKind, SurfaceSnapshot } from '../../agent/types';
3
+ export type LogLevel = 'debug' | 'info' | 'warn' | 'error';
4
+ export interface TerminalLine {
5
+ ts?: string;
6
+ prefix?: string;
7
+ level?: LogLevel;
8
+ body: ReactNode;
9
+ }
10
+ export interface TerminalSurface {
11
+ id: string;
12
+ kind?: SurfaceKind;
13
+ label?: string;
14
+ project: (lines: TerminalLine[]) => Pick<SurfaceSnapshot, 'entities' | 'fields'>;
15
+ askSuggestions?: string[];
16
+ ask?: boolean;
17
+ }
18
+ interface TerminalProps {
19
+ lines: TerminalLine[];
20
+ ariaLabel?: string;
21
+ className?: string;
22
+ surface?: TerminalSurface;
23
+ }
24
+ export declare function Terminal({ lines, ariaLabel, className, surface, }: TerminalProps): import("react/jsx-runtime").JSX.Element;
25
+ export default Terminal;
@@ -0,0 +1,10 @@
1
+ import { InputHTMLAttributes, ReactNode } from 'react';
2
+ interface TextFieldProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size'> {
3
+ label?: string;
4
+ helperText?: ReactNode;
5
+ error?: string;
6
+ leadingIcon?: ReactNode;
7
+ trailingIcon?: ReactNode;
8
+ }
9
+ export declare const TextField: import('react').ForwardRefExoticComponent<TextFieldProps & import('react').RefAttributes<HTMLInputElement>>;
10
+ export default TextField;
@@ -0,0 +1,13 @@
1
+ import { ReactElement } from 'react';
2
+ import { AegisAction } from '../../agent/types';
3
+ interface ThemeToggleProps {
4
+ className?: string;
5
+ /** Optional aegis-ui agent action — fired after the toggle runs. */
6
+ action?: AegisAction<void, unknown>;
7
+ }
8
+ /**
9
+ * One-click theme cycler — light → dark → system → light. Lives in the
10
+ * shell's header. Reads/writes via the ThemeProvider context.
11
+ */
12
+ export declare function ThemeToggle({ className, action, }: ThemeToggleProps): ReactElement;
13
+ export {};
@@ -0,0 +1,11 @@
1
+ interface TimeDisplayProps {
2
+ /** ISO string, timestamp ms, or Date object. */
3
+ value: string | number | Date;
4
+ /** 'absolute' = full timestamp, 'relative' = "2 m ago", 'duration' = elapsed time. */
5
+ mode?: 'absolute' | 'relative' | 'duration';
6
+ /** For relative mode: refresh interval in ms (default 60 000). */
7
+ refreshMs?: number;
8
+ className?: string;
9
+ }
10
+ export declare function TimeDisplay({ value, mode, className, }: TimeDisplayProps): import("react/jsx-runtime").JSX.Element;
11
+ export default TimeDisplay;
@@ -0,0 +1,18 @@
1
+ import { RelativeTimePreset } from '../../lib/timeRange';
2
+ export interface TimeRangePickerProps {
3
+ /** Canonical value — `now-15m` for relative, free-form chrono string otherwise. */
4
+ value: string;
5
+ onChange: (next: string) => void;
6
+ /** Custom preset list. Defaults to `RELATIVE_TIME_PRESETS`. */
7
+ presets?: RelativeTimePreset[];
8
+ /** Custom 'now' for deterministic testing — defaults to `() => new Date()`. */
9
+ now?: () => Date;
10
+ /** Trigger placeholder when `value` is empty / unparseable. */
11
+ placeholder?: string;
12
+ /** Disabled state. */
13
+ disabled?: boolean;
14
+ /** Optional className passed to the trigger button. */
15
+ className?: string;
16
+ }
17
+ export declare function TimeRangePicker({ value, onChange, presets, now, placeholder, disabled, className, }: TimeRangePickerProps): import("react/jsx-runtime").JSX.Element;
18
+ export default TimeRangePicker;
@@ -0,0 +1,32 @@
1
+ import { CSSProperties, ReactNode } from 'react';
2
+ import { SurfaceKind, SurfaceSnapshot } from '../../agent/types';
3
+ export interface TimelineItem {
4
+ id: string;
5
+ /** Headline — actor / event / verb, e.g. "alice@aegis updated `db.dsn`". */
6
+ title: ReactNode;
7
+ /** Body — optional secondary line. */
8
+ description?: ReactNode;
9
+ /** Absolute timestamp; rendered with `var(--font-mono)`. */
10
+ timestamp?: ReactNode;
11
+ /** Slot at the end of the row (e.g. revision chip). */
12
+ meta?: ReactNode;
13
+ /** Override dot colour with a CSS custom property name or raw token. */
14
+ dotColor?: string;
15
+ }
16
+ export interface TimelineSurface {
17
+ id: string;
18
+ kind?: SurfaceKind;
19
+ label?: string;
20
+ project: (items: TimelineItem[]) => Pick<SurfaceSnapshot, 'entities' | 'fields'>;
21
+ askSuggestions?: string[];
22
+ ask?: boolean;
23
+ }
24
+ interface TimelineProps {
25
+ items: TimelineItem[];
26
+ /** Reverse visual order (newest first vs oldest first). Doesn't sort. */
27
+ className?: string;
28
+ style?: CSSProperties;
29
+ surface?: TimelineSurface;
30
+ }
31
+ export declare function Timeline({ items, className, style, surface }: TimelineProps): import("react/jsx-runtime").JSX.Element;
32
+ export default Timeline;
@@ -0,0 +1,23 @@
1
+ import { ReactNode } from 'react';
2
+ export interface TimelineSpan {
3
+ id: string;
4
+ label: string;
5
+ startNs: number;
6
+ durationNs: number;
7
+ depth?: number;
8
+ kind?: string;
9
+ badge?: ReactNode;
10
+ status?: 'ok' | 'error' | 'warn';
11
+ }
12
+ export interface TimelineChartProps {
13
+ spans: TimelineSpan[];
14
+ minNs?: number;
15
+ maxNs?: number;
16
+ rowHeight?: number;
17
+ maxVisibleRows?: number;
18
+ onSpanClick?: (span: TimelineSpan) => void;
19
+ selectedId?: string;
20
+ loading?: boolean;
21
+ className?: string;
22
+ }
23
+ export declare function TimelineChart({ spans, minNs: minNsProp, maxNs: maxNsProp, rowHeight, maxVisibleRows, onSpanClick, selectedId, loading, className, }: TimelineChartProps): ReactNode;
@@ -0,0 +1,24 @@
1
+ import { SurfaceKind, SurfaceSnapshot } from '../../agent/types';
2
+ export type ToolCallStatus = 'running' | 'ok' | 'error';
3
+ export interface ToolCallData {
4
+ name: string;
5
+ arguments: string;
6
+ result?: string;
7
+ status?: ToolCallStatus;
8
+ isError?: boolean;
9
+ }
10
+ export interface ToolCallCardSurface {
11
+ id: string;
12
+ kind?: SurfaceKind;
13
+ label?: string;
14
+ project: (data: ToolCallData) => Pick<SurfaceSnapshot, 'entities' | 'fields'>;
15
+ askSuggestions?: string[];
16
+ ask?: boolean;
17
+ }
18
+ interface ToolCallCardProps {
19
+ data: ToolCallData;
20
+ className?: string;
21
+ surface?: ToolCallCardSurface;
22
+ }
23
+ export declare function ToolCallCard({ data, className, surface }: ToolCallCardProps): import("react/jsx-runtime").JSX.Element;
24
+ export default ToolCallCard;
@@ -0,0 +1,24 @@
1
+ import { ReactNode } from 'react';
2
+ export interface FilterChip {
3
+ key: string;
4
+ label: string;
5
+ }
6
+ export interface ToolbarProps {
7
+ /** Generic left slot — when provided, replaces the baked-in search row. */
8
+ left?: ReactNode;
9
+ /** Optional center slot. */
10
+ center?: ReactNode;
11
+ /** Generic right slot — when provided, replaces the `action` prop. */
12
+ right?: ReactNode;
13
+ searchPlaceholder?: string;
14
+ searchValue?: string;
15
+ onSearchChange?: (value: string) => void;
16
+ filters?: FilterChip[];
17
+ onFilterRemove?: (key: string) => void;
18
+ onClearFilters?: () => void;
19
+ /** @deprecated Use `right` instead. */
20
+ action?: ReactNode;
21
+ className?: string;
22
+ }
23
+ export declare function Toolbar({ left, center, right, searchPlaceholder, searchValue, onSearchChange, filters, onFilterRemove, onClearFilters, action, className, }: ToolbarProps): import("react/jsx-runtime").JSX.Element;
24
+ export default Toolbar;
@@ -0,0 +1,35 @@
1
+ import { CSSProperties, ReactNode } from 'react';
2
+ import { SurfaceKind, SurfaceSnapshot } from '../../agent/types';
3
+ export interface TraceTreeSurface {
4
+ id: string;
5
+ kind?: SurfaceKind;
6
+ label?: string;
7
+ project: (spans: TraceSpan[]) => Pick<SurfaceSnapshot, 'entities' | 'fields'>;
8
+ askSuggestions?: string[];
9
+ ask?: boolean;
10
+ }
11
+ export interface TraceSpan {
12
+ id: string;
13
+ parentId?: string | null;
14
+ name: string;
15
+ /** Milliseconds since trace start. */
16
+ startMs: number;
17
+ durationMs: number;
18
+ status?: 'ok' | 'error' | 'unset';
19
+ /** Short label rendered as a chip on the left of the row. */
20
+ kind?: ReactNode;
21
+ /** Free-form attributes — only used by the inspector pane, not by the row itself. */
22
+ attrs?: Record<string, unknown>;
23
+ }
24
+ interface TraceTreeProps {
25
+ spans: TraceSpan[];
26
+ selectedId?: string;
27
+ onSelect?: (span: TraceSpan) => void;
28
+ /** Collapse rows with this many descendants or more by default. */
29
+ defaultCollapsedDepth?: number;
30
+ className?: string;
31
+ style?: CSSProperties;
32
+ surface?: TraceTreeSurface;
33
+ }
34
+ export declare function TraceTree({ spans, selectedId, onSelect, defaultCollapsedDepth, className, style, surface, }: TraceTreeProps): import("react/jsx-runtime").JSX.Element;
35
+ export default TraceTree;
@@ -0,0 +1,28 @@
1
+ import { SurfaceKind, SurfaceSnapshot } from '../../agent/types';
2
+ import { ToolCallData } from './ToolCallCard';
3
+ export interface TrajectoryStepData {
4
+ step: number;
5
+ timestamp?: string;
6
+ durationMs?: number;
7
+ thought?: string;
8
+ action?: string;
9
+ actionType?: 'tool_call' | 'message' | 'internal';
10
+ toolCall?: ToolCallData;
11
+ observation?: string;
12
+ }
13
+ export interface TrajectoryStepSurface {
14
+ id: string;
15
+ kind?: SurfaceKind;
16
+ label?: string;
17
+ project: (data: TrajectoryStepData) => Pick<SurfaceSnapshot, 'entities' | 'fields'>;
18
+ askSuggestions?: string[];
19
+ ask?: boolean;
20
+ }
21
+ interface TrajectoryStepProps {
22
+ data: TrajectoryStepData;
23
+ defaultExpanded?: boolean;
24
+ className?: string;
25
+ surface?: TrajectoryStepSurface;
26
+ }
27
+ export declare function TrajectoryStep({ data, defaultExpanded, className, surface, }: TrajectoryStepProps): import("react/jsx-runtime").JSX.Element;
28
+ export default TrajectoryStep;
@@ -0,0 +1,22 @@
1
+ import { ReactNode } from 'react';
2
+ import { SurfaceKind, SurfaceSnapshot } from '../../agent/types';
3
+ import { TrajectoryStepData } from './TrajectoryStep';
4
+ export interface TrajectoryTimelineSurface {
5
+ id: string;
6
+ kind?: SurfaceKind;
7
+ label?: string;
8
+ project: (steps: TrajectoryStepData[]) => Pick<SurfaceSnapshot, 'entities' | 'fields'>;
9
+ askSuggestions?: string[];
10
+ ask?: boolean;
11
+ }
12
+ export interface TrajectoryTimelineProps {
13
+ steps: TrajectoryStepData[];
14
+ agentName?: string;
15
+ status?: 'running' | 'completed' | 'failed';
16
+ totalDurationMs?: number;
17
+ extra?: ReactNode;
18
+ className?: string;
19
+ surface?: TrajectoryTimelineSurface;
20
+ }
21
+ export declare function TrajectoryTimeline({ steps, agentName, status, totalDurationMs, extra, className, surface, }: TrajectoryTimelineProps): import("react/jsx-runtime").JSX.Element;
22
+ export default TrajectoryTimeline;
@@ -0,0 +1,13 @@
1
+ import { FileDropzoneItem } from './FileDropzone';
2
+ interface UploadQueueProps {
3
+ items: FileDropzoneItem[];
4
+ /** Retry one failed item. */
5
+ onRetry?: (id: string) => void;
6
+ /** Drop a finished/failed item from the queue. */
7
+ onDismiss?: (id: string) => void;
8
+ /** Clear every done/error row at once. */
9
+ onClearCompleted?: () => void;
10
+ className?: string;
11
+ }
12
+ export declare function UploadQueue({ items, onRetry, onDismiss, onClearCompleted, className, }: UploadQueueProps): import("react/jsx-runtime").JSX.Element;
13
+ export default UploadQueue;