@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,33 @@
1
+ import { CSSProperties } from 'react';
2
+ import { SurfaceKind, SurfaceSnapshot } from '../../agent/types';
3
+ export interface DiffViewerSurface {
4
+ id: string;
5
+ kind?: SurfaceKind;
6
+ label?: string;
7
+ project: (data: {
8
+ oldValue: string;
9
+ newValue: string;
10
+ }) => Pick<SurfaceSnapshot, 'entities' | 'fields'>;
11
+ askSuggestions?: string[];
12
+ ask?: boolean;
13
+ }
14
+ interface DiffViewerProps {
15
+ oldValue: string;
16
+ newValue: string;
17
+ /** Split (two panes) vs unified (single column). */
18
+ splitView?: boolean;
19
+ /** Granularity. `chars` is expensive for large diffs. */
20
+ compareMethod?: 'chars' | 'words' | 'lines';
21
+ /** Hide unchanged regions and replace with a "show more" affordance. */
22
+ showDiffOnly?: boolean;
23
+ /** Show line numbers. */
24
+ hideLineNumbers?: boolean;
25
+ /** Labels for the two columns (only in split view). */
26
+ leftTitle?: string;
27
+ rightTitle?: string;
28
+ className?: string;
29
+ style?: CSSProperties;
30
+ surface?: DiffViewerSurface;
31
+ }
32
+ export declare function DiffViewer({ oldValue, newValue, splitView, compareMethod, showDiffOnly, hideLineNumbers, leftTitle, rightTitle, className, style, surface, }: DiffViewerProps): import("react/jsx-runtime").JSX.Element;
33
+ export default DiffViewer;
@@ -0,0 +1,20 @@
1
+ import { ReactNode } from 'react';
2
+ import { AegisAction } from '../../agent/types';
3
+ export interface DropdownItem {
4
+ key: string;
5
+ label: ReactNode;
6
+ onClick?: () => void;
7
+ icon?: ReactNode;
8
+ danger?: boolean;
9
+ disabled?: boolean;
10
+ /** Optional aegis-ui agent action — fired after onClick if not disabled. */
11
+ action?: AegisAction<void, unknown>;
12
+ }
13
+ interface DropdownMenuProps {
14
+ trigger: ReactNode;
15
+ items: DropdownItem[];
16
+ className?: string;
17
+ align?: 'left' | 'right';
18
+ }
19
+ export declare function DropdownMenu({ trigger, items, className, align, }: DropdownMenuProps): import("react/jsx-runtime").JSX.Element;
20
+ export default DropdownMenu;
@@ -0,0 +1,10 @@
1
+ import { ReactNode } from 'react';
2
+ interface EmptyStateProps {
3
+ icon?: ReactNode;
4
+ title: string;
5
+ description?: string;
6
+ action?: ReactNode;
7
+ className?: string;
8
+ }
9
+ export declare function EmptyState({ icon, title, description, action, className, }: EmptyStateProps): import("react/jsx-runtime").JSX.Element;
10
+ export default EmptyState;
@@ -0,0 +1,29 @@
1
+ import { ReactElement } from 'react';
2
+ import { AegisAction } from '../../agent/types';
3
+ export type EnvironmentSwitcherBadge = 'default' | 'info' | 'warning' | 'danger';
4
+ export interface EnvironmentSwitcherOption {
5
+ id: string;
6
+ label: string;
7
+ badge?: EnvironmentSwitcherBadge;
8
+ /** Optional secondary line (e.g. baseUrl) shown in the dropdown. */
9
+ hint?: string;
10
+ /** Optional aegis-ui agent action — fired when the env is selected. */
11
+ action?: AegisAction<void, unknown>;
12
+ }
13
+ export interface EnvironmentSwitcherProps {
14
+ options: EnvironmentSwitcherOption[];
15
+ currentId: string;
16
+ onChange: (id: string) => void;
17
+ /** Hidden when there is ≤1 option. Default true. */
18
+ hideWhenSingle?: boolean;
19
+ className?: string;
20
+ /** Accessible label for the trigger button. */
21
+ ariaLabel?: string;
22
+ }
23
+ /**
24
+ * Compact environment dropdown shipped for the AegisShell top header.
25
+ * Presentational + controlled — the shell wires it to the active app's
26
+ * manifest state. Hidden when there is only one environment.
27
+ */
28
+ export declare function EnvironmentSwitcher({ options, currentId, onChange, hideWhenSingle, className, ariaLabel, }: EnvironmentSwitcherProps): ReactElement | null;
29
+ export default EnvironmentSwitcher;
@@ -0,0 +1,11 @@
1
+ import { ReactNode } from 'react';
2
+ interface ErrorStateProps {
3
+ code?: string | number;
4
+ title: string;
5
+ description?: ReactNode;
6
+ action?: ReactNode;
7
+ illustration?: ReactNode;
8
+ className?: string;
9
+ }
10
+ export declare function ErrorState({ code, title, description, action, illustration, className, }: ErrorStateProps): import("react/jsx-runtime").JSX.Element;
11
+ export default ErrorState;
@@ -0,0 +1,39 @@
1
+ import { ReactNode } from 'react';
2
+ export interface EventTableColumn<T> {
3
+ key: string;
4
+ header: ReactNode;
5
+ /** Column width in px. Use 'flex' to take remaining space. Default 'flex'. */
6
+ width?: number | 'flex';
7
+ /** Align cell content. Default 'left'. */
8
+ align?: 'left' | 'right' | 'center';
9
+ /** Cell renderer. */
10
+ render: (row: T) => ReactNode;
11
+ /** When true, do not ellipsize overflowing text. */
12
+ truncate?: boolean;
13
+ }
14
+ export interface EventTableProps<T> {
15
+ columns: Array<EventTableColumn<T>>;
16
+ data: T[];
17
+ /** Stable row key. */
18
+ rowKey: (row: T) => string;
19
+ /** Optional row-click handler — caller mounts a side panel. */
20
+ onRowClick?: (row: T) => void;
21
+ /** Visually mark a row as selected/highlighted. */
22
+ selectedKey?: string;
23
+ /** Loading skeleton above the (possibly empty) body. */
24
+ loading?: boolean;
25
+ emptyTitle?: string;
26
+ emptyDescription?: string;
27
+ /** Approximate row height in px — used by the virtualizer. Default 32. */
28
+ estimatedRowHeight?: number;
29
+ /** Max visible rows before vertical scroll kicks in. Default 20. */
30
+ maxVisibleRows?: number;
31
+ /** When provided, append-on-bottom: invoked when the user scrolls within `loadMoreThresholdPx` of the bottom. */
32
+ onLoadMore?: () => void;
33
+ /** Distance from bottom that triggers onLoadMore. Default 200. */
34
+ loadMoreThresholdPx?: number;
35
+ /** ClassName appended to the root. */
36
+ className?: string;
37
+ }
38
+ export declare function EventTable<T>({ columns, data, rowKey, onRowClick, selectedKey, loading, emptyTitle, emptyDescription, estimatedRowHeight, maxVisibleRows, onLoadMore, loadMoreThresholdPx, className, }: EventTableProps<T>): import("react/jsx-runtime").JSX.Element;
39
+ export default EventTable;
@@ -0,0 +1,47 @@
1
+ import { CSSProperties, ReactNode } from 'react';
2
+ import { Accept } from 'react-dropzone';
3
+ export interface FileDropzoneItem {
4
+ /** Stable id so progress / errors can update in place. */
5
+ id: string;
6
+ file: File;
7
+ /** 0–100; omit for indeterminate. */
8
+ progress?: number;
9
+ status: 'queued' | 'uploading' | 'done' | 'error';
10
+ error?: string;
11
+ /** Bytes transferred so far. */
12
+ bytesUploaded?: number;
13
+ /** Transfer speed in bytes per second. */
14
+ speedBps?: number;
15
+ /** Estimated seconds remaining. */
16
+ etaSeconds?: number;
17
+ /** Called when the user cancels an in-progress upload. */
18
+ onCancel?: () => void;
19
+ }
20
+ interface FileDropzoneProps {
21
+ onDrop: (files: File[]) => void;
22
+ /** Accept map per react-dropzone, e.g. `{ 'image/*': ['.png'] }`. */
23
+ accept?: Accept;
24
+ multiple?: boolean;
25
+ disabled?: boolean;
26
+ /** Reject files bigger than this many bytes (forwarded to react-dropzone). */
27
+ maxSize?: number;
28
+ /**
29
+ * When true, the `<input>` gets `webkitdirectory` so the user can select
30
+ * an entire folder. Each `File` carries its `webkitRelativePath`.
31
+ */
32
+ directory?: boolean;
33
+ /**
34
+ * `'inline'` (default) — standard dashed-border dropzone block.
35
+ * `'overlay'` — fixed/absolute fullscreen overlay with a dashed border and
36
+ * centred hint; use inside a `position: relative` container.
37
+ */
38
+ variant?: 'inline' | 'overlay';
39
+ /** Optional in-flight queue rendered under the drop area. */
40
+ items?: FileDropzoneItem[];
41
+ /** Override the body text in the drop area. */
42
+ hint?: ReactNode;
43
+ className?: string;
44
+ style?: CSSProperties;
45
+ }
46
+ export declare function FileDropzone({ onDrop, accept, multiple, disabled, maxSize, directory, variant, items, hint, className, style, }: FileDropzoneProps): import("react/jsx-runtime").JSX.Element;
47
+ export default FileDropzone;
@@ -0,0 +1,34 @@
1
+ import { CSSProperties, ReactNode } from 'react';
2
+ import { SurfaceKind, SurfaceSnapshot } from '../../agent/types';
3
+ export interface FilePreviewSurface {
4
+ id: string;
5
+ kind?: SurfaceKind;
6
+ label?: string;
7
+ project: (data: {
8
+ src: string;
9
+ mimeType?: string;
10
+ name?: string;
11
+ size?: number;
12
+ }) => Pick<SurfaceSnapshot, 'entities' | 'fields'>;
13
+ askSuggestions?: string[];
14
+ ask?: boolean;
15
+ }
16
+ interface FilePreviewProps {
17
+ /** Public URL or signed `/blob/raw/:token` link. */
18
+ src: string;
19
+ /** MIME type; chooses the renderer. Unknown ⇒ binary fallback. */
20
+ mimeType?: string;
21
+ /** File display name (download fallback + tooltip). */
22
+ name?: string;
23
+ /** Optional byte size (binary fallback uses this). */
24
+ size?: number;
25
+ /** Render slot when binary fallback fires (overrides default). */
26
+ fallback?: ReactNode;
27
+ /** Max height of preview viewport. */
28
+ maxHeight?: number | string;
29
+ className?: string;
30
+ style?: CSSProperties;
31
+ surface?: FilePreviewSurface;
32
+ }
33
+ export declare function FilePreview({ src, mimeType, name, size, fallback, maxHeight, className, style, surface, }: FilePreviewProps): import("react/jsx-runtime").JSX.Element;
34
+ export default FilePreview;
@@ -0,0 +1,24 @@
1
+ import { ReactNode } from 'react';
2
+ export interface FolderDropzoneProps {
3
+ /** Currently-selected files; the component is controlled. */
4
+ value: File[];
5
+ onFilesChange: (files: File[]) => void;
6
+ /** Per-file ceiling (bytes). Files larger than this are rejected. */
7
+ maxFileBytes?: number;
8
+ /** Aggregate ceiling (bytes). Selections totalling more are rejected. */
9
+ maxTotalBytes?: number;
10
+ /** Hard cap on file count. */
11
+ maxFiles?: number;
12
+ /** `accept` attribute forwarded to the underlying `<input>`. */
13
+ accept?: string;
14
+ disabled?: boolean;
15
+ /** Text shown beneath the drop area. */
16
+ helperText?: ReactNode;
17
+ /** External validation message; rendered in error tone when present. */
18
+ validationError?: string;
19
+ /** Slot rendered below the drop area, e.g. a per-file summary list. */
20
+ summary?: ReactNode;
21
+ className?: string;
22
+ }
23
+ export declare function FolderDropzone({ value, onFilesChange, maxFileBytes, maxTotalBytes, maxFiles, accept, disabled, helperText, validationError, summary, className, }: FolderDropzoneProps): import("react/jsx-runtime").JSX.Element;
24
+ export default FolderDropzone;
@@ -0,0 +1,12 @@
1
+ import { ReactElement } from 'react';
2
+ interface ForgotPasswordFormValues {
3
+ email: string;
4
+ }
5
+ interface ForgotPasswordFormProps {
6
+ onSubmit: (values: ForgotPasswordFormValues) => void | Promise<void>;
7
+ submitting?: boolean;
8
+ error?: string;
9
+ success?: string;
10
+ }
11
+ export declare function ForgotPasswordForm({ onSubmit, submitting, error, success, }: ForgotPasswordFormProps): ReactElement;
12
+ export default ForgotPasswordForm;
@@ -0,0 +1,9 @@
1
+ import { ReactNode } from 'react';
2
+ interface FormRowProps {
3
+ label: string;
4
+ description?: string;
5
+ children: ReactNode;
6
+ className?: string;
7
+ }
8
+ export declare function FormRow({ label, description, children, className, }: FormRowProps): import("react/jsx-runtime").JSX.Element;
9
+ export default FormRow;
@@ -0,0 +1,18 @@
1
+ import { ReactElement } from 'react';
2
+ import { SurfaceKind, SurfaceSnapshot } from '../../agent/types';
3
+ import { AegisNotification } from '../../notifications';
4
+ type Filter = 'all' | 'unread';
5
+ export interface InboxPageSurface {
6
+ id: string;
7
+ kind?: SurfaceKind;
8
+ label?: string;
9
+ project: (items: AegisNotification[]) => Pick<SurfaceSnapshot, 'entities' | 'fields'>;
10
+ askSuggestions?: string[];
11
+ ask?: boolean;
12
+ }
13
+ interface InboxPageProps {
14
+ defaultFilter?: Filter;
15
+ surface?: InboxPageSurface;
16
+ }
17
+ export declare function InboxPage({ defaultFilter, surface, }: InboxPageProps): ReactElement;
18
+ export default InboxPage;
@@ -0,0 +1,27 @@
1
+ import { ReactNode } from 'react';
2
+ import { SurfaceKind, SurfaceSnapshot } from '../../agent/types';
3
+ export interface KeyValueItem {
4
+ /** Left key (mono — IDs, fields). */
5
+ k: ReactNode;
6
+ /** Right value (mono number / string). */
7
+ v: ReactNode;
8
+ }
9
+ export interface KeyValueListSurface {
10
+ id: string;
11
+ kind?: SurfaceKind;
12
+ label?: string;
13
+ project: (items: KeyValueItem[]) => Pick<SurfaceSnapshot, 'entities' | 'fields'>;
14
+ askSuggestions?: string[];
15
+ ask?: boolean;
16
+ }
17
+ interface KeyValueListProps {
18
+ items: KeyValueItem[];
19
+ /** Render keys as uppercase tracked labels instead of mono. */
20
+ uppercaseKeys?: boolean;
21
+ /** Top hairline above the first row. */
22
+ ruled?: boolean;
23
+ className?: string;
24
+ surface?: KeyValueListSurface;
25
+ }
26
+ export declare function KeyValueList({ items, uppercaseKeys, ruled, className, surface, }: KeyValueListProps): import("react/jsx-runtime").JSX.Element;
27
+ export default KeyValueList;
@@ -0,0 +1,18 @@
1
+ import { ReactElement } from 'react';
2
+ interface LoginFormValues {
3
+ email: string;
4
+ password: string;
5
+ remember: boolean;
6
+ }
7
+ interface LoginFormProps {
8
+ onSubmit?: (values: LoginFormValues) => void | Promise<void>;
9
+ submitting?: boolean;
10
+ error?: string;
11
+ onForgotPassword?: () => void;
12
+ showRememberMe?: boolean;
13
+ action?: string;
14
+ method?: 'GET' | 'POST';
15
+ hiddenFields?: Record<string, string>;
16
+ }
17
+ export declare function LoginForm({ onSubmit, submitting, error, onForgotPassword, showRememberMe, action, method, hiddenFields, }: LoginFormProps): ReactElement;
18
+ export default LoginForm;
@@ -0,0 +1,6 @@
1
+ interface MarkdownProps {
2
+ children: string;
3
+ className?: string;
4
+ }
5
+ export declare function Markdown({ children, className }: MarkdownProps): import("react/jsx-runtime").JSX.Element;
6
+ export default Markdown;
@@ -0,0 +1,15 @@
1
+ import { ReactNode } from 'react';
2
+ export interface MetadataEntry {
3
+ label: string;
4
+ value: ReactNode;
5
+ /** Render value in MonoValue instead of default text. */
6
+ mono?: boolean;
7
+ /** Show a hover copy-to-clipboard button on the value. */
8
+ copyable?: boolean;
9
+ }
10
+ export interface MetadataListProps {
11
+ entries: MetadataEntry[];
12
+ className?: string;
13
+ }
14
+ export declare function MetadataList({ entries, className }: MetadataListProps): import("react/jsx-runtime").JSX.Element;
15
+ export default MetadataList;
@@ -0,0 +1,30 @@
1
+ import { ReactNode } from 'react';
2
+ import { SurfaceKind, SurfaceSnapshot } from '../../agent/types';
3
+ export interface MetricCardSurface {
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 MetricCardProps {
16
+ label: ReactNode;
17
+ value: ReactNode;
18
+ /** Optional small unit appended after the main value. */
19
+ unit?: ReactNode;
20
+ /** Optional sparkline samples — drawn beneath the value. */
21
+ sparkline?: number[];
22
+ /** Sparkline-only height in px. */
23
+ sparklineHeight?: number;
24
+ inverted?: boolean;
25
+ className?: string;
26
+ onClick?: () => void;
27
+ surface?: MetricCardSurface;
28
+ }
29
+ export declare function MetricCard({ label, value, unit, sparkline, sparklineHeight, inverted, className, onClick, surface, }: MetricCardProps): import("react/jsx-runtime").JSX.Element;
30
+ export default MetricCard;
@@ -0,0 +1,11 @@
1
+ import { CSSProperties, ReactNode } from 'react';
2
+ interface MetricLabelProps {
3
+ children: ReactNode;
4
+ as?: 'span' | 'div' | 'label';
5
+ inverted?: boolean;
6
+ size?: 'xs' | 'sm';
7
+ className?: string;
8
+ style?: CSSProperties;
9
+ }
10
+ export declare function MetricLabel({ children, as: Tag, inverted, size, className, style, }: MetricLabelProps): import("react/jsx-runtime").JSX.Element;
11
+ export default MetricLabel;
@@ -0,0 +1,22 @@
1
+ import { CSSProperties, ReactNode } from 'react';
2
+ import { SurfaceKind, SurfaceSnapshot } from '../../agent/types';
3
+ export interface MonoValueSurface {
4
+ id: string;
5
+ kind?: SurfaceKind;
6
+ label?: string;
7
+ project: (children: ReactNode) => Pick<SurfaceSnapshot, 'entities' | 'fields'>;
8
+ askSuggestions?: string[];
9
+ ask?: boolean;
10
+ }
11
+ interface MonoValueProps {
12
+ children: ReactNode;
13
+ size?: 'sm' | 'base' | 'lg';
14
+ weight?: 'regular' | 'medium';
15
+ inverted?: boolean;
16
+ as?: 'span' | 'div';
17
+ className?: string;
18
+ style?: CSSProperties;
19
+ surface?: MonoValueSurface;
20
+ }
21
+ export declare function MonoValue({ children, size, weight, inverted, as: Tag, className, style, surface, }: MonoValueProps): import("react/jsx-runtime").JSX.Element;
22
+ export default MonoValue;
@@ -0,0 +1,12 @@
1
+ import { ReactElement } from 'react';
2
+ import { AegisAction } from '../../agent/types';
3
+ interface NotificationBellProps {
4
+ /** Path to the full inbox page, e.g. '/inbox'. */
5
+ inboxPath: string;
6
+ /** Override popover width in px. Defaults to 360. */
7
+ width?: number;
8
+ /** Optional aegis-ui agent action — fired when the bell is clicked. */
9
+ action?: AegisAction<void, unknown>;
10
+ }
11
+ export declare function NotificationBell({ inboxPath, width, action, }: NotificationBellProps): ReactElement;
12
+ export default NotificationBell;
@@ -0,0 +1,40 @@
1
+ import { ReactNode } from 'react';
2
+ interface ObjectBrowserProps {
3
+ /** Sub-prefixes at the current level (driver list with delimiter='/'). */
4
+ prefixes: string[];
5
+ /** Currently-selected prefix path, e.g. `"a/b/"` or `""` for root. */
6
+ currentPrefix: string;
7
+ onPrefixChange: (next: string) => void;
8
+ /** Right-pane content — typically a DataTable of objects at this level. */
9
+ children: ReactNode;
10
+ /** Optional toolbar rendered above the right pane. */
11
+ toolbar?: ReactNode;
12
+ /** Rendered in the toolbar row, before the `toolbar` slot. */
13
+ searchSlot?: ReactNode;
14
+ /** Rendered in the toolbar row after searchSlot — for a view-mode switch. */
15
+ viewModeSlot?: ReactNode;
16
+ /** Rendered below the body — pagination or "Load more". */
17
+ footer?: ReactNode;
18
+ /**
19
+ * Absolutely positioned above the body — caller controls visibility based
20
+ * on its own drag state.
21
+ */
22
+ dragOverlay?: ReactNode;
23
+ /** When >0, surfaces a "n selected" pill in the toolbar bar. */
24
+ selectionCount?: number;
25
+ /** Hide the left tree pane entirely (flat listing mode). */
26
+ hideTree?: boolean;
27
+ /**
28
+ * When true, collapses the prefix tree by default. An internal toggle
29
+ * button allows the user to expand/collapse it.
30
+ */
31
+ defaultTreeCollapsed?: boolean;
32
+ /**
33
+ * When true, shows 3 shimmer skeleton rows in the body instead of
34
+ * `children`.
35
+ */
36
+ loading?: boolean;
37
+ className?: string;
38
+ }
39
+ export declare function ObjectBrowser({ prefixes, currentPrefix, onPrefixChange, children, toolbar, searchSlot, viewModeSlot, footer, dragOverlay, selectionCount, hideTree, defaultTreeCollapsed, loading, className, }: ObjectBrowserProps): import("react/jsx-runtime").JSX.Element;
40
+ export default ObjectBrowser;
@@ -0,0 +1,27 @@
1
+ import { ReactNode } from 'react';
2
+ export interface ObjectInspectorTab {
3
+ id: string;
4
+ label: string;
5
+ content: ReactNode;
6
+ disabled?: boolean;
7
+ /** Shown when tab is disabled. */
8
+ hint?: string;
9
+ }
10
+ export interface ObjectInspectorProps {
11
+ open: boolean;
12
+ onClose: () => void;
13
+ title: string;
14
+ subtitle?: string;
15
+ tabs: ObjectInspectorTab[];
16
+ defaultTabId?: string;
17
+ /** Row of action buttons (Download / Copy URL / Share / Delete). */
18
+ actions?: ReactNode;
19
+ /** Default: 720 */
20
+ width?: number | string;
21
+ /** Width when the inspector is maximized. Default: '100vw' */
22
+ maximizedWidth?: number | string;
23
+ /** Start maximized. Default: false */
24
+ defaultMaximized?: boolean;
25
+ }
26
+ export declare function ObjectInspector({ open, onClose, title, subtitle, tabs, defaultTabId, actions, width, maximizedWidth, defaultMaximized, }: ObjectInspectorProps): import("react/jsx-runtime").JSX.Element;
27
+ export default ObjectInspector;
@@ -0,0 +1,9 @@
1
+ import { ReactNode } from 'react';
2
+ interface PageHeaderProps {
3
+ title: string;
4
+ description?: string;
5
+ action?: ReactNode;
6
+ className?: string;
7
+ }
8
+ export declare function PageHeader({ title, description, action, className, }: PageHeaderProps): import("react/jsx-runtime").JSX.Element;
9
+ export default PageHeader;
@@ -0,0 +1,11 @@
1
+ import { ReactElement } from 'react';
2
+ export interface PageSizeSelectProps {
3
+ value: number;
4
+ onChange: (next: number) => void;
5
+ options?: number[];
6
+ disabled?: boolean;
7
+ label?: string;
8
+ className?: string;
9
+ }
10
+ export declare function PageSizeSelect({ value, onChange, options, disabled, label, className, }: PageSizeSelectProps): ReactElement;
11
+ export default PageSizeSelect;
@@ -0,0 +1,22 @@
1
+ import { CSSProperties, ReactNode } from 'react';
2
+ import { SurfaceKind, SurfaceSnapshot } from '../../agent/types';
3
+ export interface PanelSurface {
4
+ id: string;
5
+ kind?: SurfaceKind;
6
+ label?: string;
7
+ project?: () => Pick<SurfaceSnapshot, 'entities' | 'fields'>;
8
+ askSuggestions?: string[];
9
+ ask?: boolean;
10
+ }
11
+ interface PanelProps {
12
+ title?: ReactNode;
13
+ extra?: ReactNode;
14
+ inverted?: boolean;
15
+ padded?: boolean;
16
+ className?: string;
17
+ style?: CSSProperties;
18
+ children?: ReactNode;
19
+ surface?: PanelSurface;
20
+ }
21
+ export declare function Panel({ title, extra, inverted, padded, className, style, children, surface, }: PanelProps): import("react/jsx-runtime").JSX.Element;
22
+ export default Panel;
@@ -0,0 +1,10 @@
1
+ import { ReactNode } from 'react';
2
+ interface PanelTitleProps {
3
+ children: ReactNode;
4
+ as?: 'span' | 'h1' | 'h2' | 'h3' | 'h4';
5
+ italic?: boolean;
6
+ size?: 'sm' | 'base' | 'lg' | 'hero';
7
+ className?: string;
8
+ }
9
+ export declare function PanelTitle({ children, as: Tag, italic, size, className, }: PanelTitleProps): import("react/jsx-runtime").JSX.Element;
10
+ export default PanelTitle;
@@ -0,0 +1,30 @@
1
+ import { CSSProperties } from 'react';
2
+ import { SurfaceKind, SurfaceSnapshot } from '../../agent/types';
3
+ export interface ParquetViewerSurface {
4
+ id: string;
5
+ kind?: SurfaceKind;
6
+ label?: string;
7
+ project: (data: {
8
+ src?: string;
9
+ file?: File | Blob;
10
+ totalRows: number;
11
+ columns: string[];
12
+ }) => Pick<SurfaceSnapshot, 'entities' | 'fields'>;
13
+ askSuggestions?: string[];
14
+ ask?: boolean;
15
+ }
16
+ interface ParquetViewerProps {
17
+ /** Local file (e.g. from FileDropzone). Takes precedence over `src`. */
18
+ file?: File | Blob;
19
+ /** Remote URL — must support range requests. */
20
+ src?: string;
21
+ /** Rows per page. */
22
+ pageSize?: number;
23
+ /** Header above the table. */
24
+ title?: string;
25
+ className?: string;
26
+ style?: CSSProperties;
27
+ surface?: ParquetViewerSurface;
28
+ }
29
+ export declare function ParquetViewer({ file, src, pageSize, title, className, style, surface, }: ParquetViewerProps): import("react/jsx-runtime").JSX.Element;
30
+ export default ParquetViewer;
@@ -0,0 +1,9 @@
1
+ import { InputHTMLAttributes, ReactNode } from 'react';
2
+ interface PasswordFieldProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'type'> {
3
+ label?: string;
4
+ helperText?: ReactNode;
5
+ error?: string;
6
+ leadingIcon?: ReactNode;
7
+ }
8
+ export declare const PasswordField: import('react').ForwardRefExoticComponent<PasswordFieldProps & import('react').RefAttributes<HTMLInputElement>>;
9
+ export default PasswordField;
@@ -0,0 +1,17 @@
1
+ import { AegisAction } from '../../agent/types';
2
+ export interface ProjectOption {
3
+ id: string;
4
+ name: string;
5
+ /** Optional aegis-ui agent action — fired when the option is selected. */
6
+ action?: AegisAction<void, unknown>;
7
+ }
8
+ interface ProjectSelectorProps {
9
+ projects: ProjectOption[];
10
+ selectedId?: string;
11
+ onSelect: (id: string) => void;
12
+ placeholder?: string;
13
+ className?: string;
14
+ align?: 'left' | 'right';
15
+ }
16
+ export declare function ProjectSelector({ projects, selectedId, onSelect, placeholder, className, align, }: ProjectSelectorProps): import("react/jsx-runtime").JSX.Element;
17
+ export default ProjectSelector;