@lincyaw/aegis-ui 0.3.0 → 0.5.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 (120) hide show
  1. package/README.md +81 -5
  2. package/dist/agent/AgentProvider.d.ts +4 -0
  3. package/dist/agent/AskOverlay.d.ts +0 -1
  4. package/dist/agent/AskPanel.d.ts +0 -1
  5. package/dist/agent/agentContext.d.ts +6 -2
  6. package/dist/agent/agentmChannelClient.d.ts +1 -0
  7. package/dist/agent/runtime.d.ts +6 -1
  8. package/dist/agent/usePrimitiveSurface.d.ts +30 -0
  9. package/dist/commands/CommandProvider.d.ts +3 -3
  10. package/dist/commands/commandContext.d.ts +2 -2
  11. package/dist/components/ui/AgentPanel.d.ts +3 -10
  12. package/dist/components/ui/AuthLayout.d.ts +1 -1
  13. package/dist/components/ui/Avatar.d.ts +6 -13
  14. package/dist/components/ui/BlastRadiusBar.d.ts +6 -13
  15. package/dist/components/ui/Breadcrumb.d.ts +1 -1
  16. package/dist/components/ui/BucketCard.d.ts +1 -1
  17. package/dist/components/ui/ChatComposer.d.ts +1 -1
  18. package/dist/components/ui/ChatMessage.d.ts +7 -14
  19. package/dist/components/ui/ChatMessageList.d.ts +3 -10
  20. package/dist/components/ui/ChatSessionList.d.ts +0 -1
  21. package/dist/components/ui/Chip.d.ts +3 -10
  22. package/dist/components/ui/CodeBlock.d.ts +8 -14
  23. package/dist/components/ui/CodeEditor.d.ts +6 -13
  24. package/dist/components/ui/CommandInvocationCard.d.ts +7 -14
  25. package/dist/components/ui/CommandPalette.d.ts +0 -1
  26. package/dist/components/ui/ContentInspectorContent.d.ts +14 -0
  27. package/dist/components/ui/ContentInspectorDialog.d.ts +15 -0
  28. package/dist/components/ui/ControlListItem.d.ts +1 -1
  29. package/dist/components/ui/DangerZone.d.ts +1 -1
  30. package/dist/components/ui/DataList.d.ts +3 -11
  31. package/dist/components/ui/DataTable.d.ts +27 -11
  32. package/dist/components/ui/DiffViewer.d.ts +6 -13
  33. package/dist/components/ui/DropdownMenu.d.ts +6 -2
  34. package/dist/components/ui/EmptyState.d.ts +1 -1
  35. package/dist/components/ui/EnvironmentSwitcher.d.ts +0 -1
  36. package/dist/components/ui/ErrorState.d.ts +8 -2
  37. package/dist/components/ui/EventTable.d.ts +0 -1
  38. package/dist/components/ui/FileDropzone.d.ts +1 -1
  39. package/dist/components/ui/FilePreview.d.ts +8 -15
  40. package/dist/components/ui/FolderDropzone.d.ts +0 -1
  41. package/dist/components/ui/ForgotPasswordForm.d.ts +1 -1
  42. package/dist/components/ui/FormRow.d.ts +1 -1
  43. package/dist/components/ui/InboxPage.d.ts +3 -10
  44. package/dist/components/ui/KeyValueList.d.ts +3 -10
  45. package/dist/components/ui/LoginForm.d.ts +1 -1
  46. package/dist/components/ui/Markdown.d.ts +9 -3
  47. package/dist/components/ui/MetadataList.d.ts +0 -1
  48. package/dist/components/ui/MetricCard.d.ts +7 -14
  49. package/dist/components/ui/MetricLabel.d.ts +1 -1
  50. package/dist/components/ui/MonoValue.d.ts +3 -10
  51. package/dist/components/ui/NotificationBell.d.ts +1 -1
  52. package/dist/components/ui/ObjectBrowser.d.ts +1 -1
  53. package/dist/components/ui/ObjectInspector.d.ts +0 -1
  54. package/dist/components/ui/PageHeader.d.ts +1 -1
  55. package/dist/components/ui/PageSizeSelect.d.ts +8 -2
  56. package/dist/components/ui/Panel.d.ts +3 -10
  57. package/dist/components/ui/PanelTitle.d.ts +1 -1
  58. package/dist/components/ui/ParquetViewer.d.ts +8 -15
  59. package/dist/components/ui/PasswordField.d.ts +1 -1
  60. package/dist/components/ui/ProjectSelector.d.ts +8 -2
  61. package/dist/components/ui/QueryAutocomplete.d.ts +0 -1
  62. package/dist/components/ui/RegisterForm.d.ts +1 -1
  63. package/dist/components/ui/ResizableSidePanel.d.ts +17 -2
  64. package/dist/components/ui/SavedQueryBar.d.ts +0 -1
  65. package/dist/components/ui/SearchInput.d.ts +0 -1
  66. package/dist/components/ui/SectionDivider.d.ts +1 -1
  67. package/dist/components/ui/SessionRunView.d.ts +50 -0
  68. package/dist/components/ui/SettingsSection.d.ts +1 -1
  69. package/dist/components/ui/ShareLinkDialog.d.ts +1 -1
  70. package/dist/components/ui/SparkLine.d.ts +3 -10
  71. package/dist/components/ui/StatBlock.d.ts +7 -14
  72. package/dist/components/ui/StatusDot.d.ts +1 -1
  73. package/dist/components/ui/Tabs.d.ts +1 -1
  74. package/dist/components/ui/Terminal.d.ts +3 -10
  75. package/dist/components/ui/TextField.d.ts +1 -1
  76. package/dist/components/ui/TimeDisplay.d.ts +3 -3
  77. package/dist/components/ui/TimeRangePicker.d.ts +0 -1
  78. package/dist/components/ui/Timeline.d.ts +3 -10
  79. package/dist/components/ui/ToolCallCard.d.ts +3 -10
  80. package/dist/components/ui/Toolbar.d.ts +0 -1
  81. package/dist/components/ui/TraceSpanInspector.d.ts +12 -0
  82. package/dist/components/ui/TraceTree.d.ts +9 -11
  83. package/dist/components/ui/TrajectoryStep.d.ts +3 -10
  84. package/dist/components/ui/TrajectoryTimeline.d.ts +2 -10
  85. package/dist/components/ui/UploadQueue.d.ts +1 -1
  86. package/dist/components/ui/index.d.ts +10 -1
  87. package/dist/components/ui/relativeTime.d.ts +1 -1
  88. package/dist/components/ui/traceFormat.d.ts +5 -0
  89. package/dist/hooks/useCopyToClipboard.d.ts +8 -0
  90. package/dist/hooks/useMenuPopover.d.ts +27 -0
  91. package/dist/hooks/useResizable.d.ts +9 -0
  92. package/dist/index.cjs +12 -1
  93. package/dist/index.cjs.map +1 -1
  94. package/dist/index.d.ts +4 -3
  95. package/dist/index.js +9848 -124
  96. package/dist/index.js.map +1 -1
  97. package/dist/layouts/shell/AegisShell.d.ts +1 -1
  98. package/dist/layouts/shell/AuthRequiredCard.d.ts +2 -2
  99. package/dist/layouts/shell/TopHeader.d.ts +5 -1
  100. package/dist/layouts/shell/paths.d.ts +8 -0
  101. package/dist/layouts/shell/types.d.ts +21 -13
  102. package/dist/lib/format.d.ts +2 -0
  103. package/dist/lib/id.d.ts +2 -0
  104. package/dist/lib/storage.d.ts +12 -0
  105. package/dist/style.css +1 -1
  106. package/dist/theme/antdTheme.d.ts +2 -3
  107. package/package.json +24 -17
  108. package/dist/index-6WZzHI2Z.cjs +0 -1151
  109. package/dist/index-6WZzHI2Z.cjs.map +0 -1
  110. package/dist/index-CZ_qegBG.js +0 -6736
  111. package/dist/index-CZ_qegBG.js.map +0 -1
  112. package/dist/index-DLXAAlfH.cjs +0 -15
  113. package/dist/index-DLXAAlfH.cjs.map +0 -1
  114. package/dist/index-DtgBxtmy.js +0 -56284
  115. package/dist/index-DtgBxtmy.js.map +0 -1
  116. package/dist/styles/fonts.d.ts +0 -0
  117. package/dist/workerBundle-D52AeOj1.js +0 -76
  118. package/dist/workerBundle-D52AeOj1.js.map +0 -1
  119. package/dist/workerBundle-FGNDqtbW.cjs +0 -73
  120. package/dist/workerBundle-FGNDqtbW.cjs.map +0 -1
@@ -1,16 +1,9 @@
1
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
- }
2
+ import { PrimitiveSurface } from '../../agent/usePrimitiveSurface';
3
+ export type DiffViewerSurface = PrimitiveSurface<{
4
+ oldValue: string;
5
+ newValue: string;
6
+ }>;
14
7
  interface DiffViewerProps {
15
8
  oldValue: string;
16
9
  newValue: string;
@@ -30,4 +23,4 @@ interface DiffViewerProps {
30
23
  surface?: DiffViewerSurface;
31
24
  }
32
25
  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;
26
+ export {};
@@ -13,8 +13,12 @@ export interface DropdownItem {
13
13
  interface DropdownMenuProps {
14
14
  trigger: ReactNode;
15
15
  items: DropdownItem[];
16
+ /** Non-clickable content above `items`, before a divider — e.g. a search field. */
17
+ header?: ReactNode;
18
+ /** Rendered below `items`, after a divider — e.g. "View all" / "Create". */
19
+ footerItems?: DropdownItem[];
16
20
  className?: string;
17
21
  align?: 'left' | 'right';
18
22
  }
19
- export declare function DropdownMenu({ trigger, items, className, align, }: DropdownMenuProps): import("react/jsx-runtime").JSX.Element;
20
- export default DropdownMenu;
23
+ export declare function DropdownMenu({ trigger, items, header, footerItems, className, align, }: DropdownMenuProps): import("react/jsx-runtime").JSX.Element;
24
+ export {};
@@ -7,4 +7,4 @@ interface EmptyStateProps {
7
7
  className?: string;
8
8
  }
9
9
  export declare function EmptyState({ icon, title, description, action, className, }: EmptyStateProps): import("react/jsx-runtime").JSX.Element;
10
- export default EmptyState;
10
+ export {};
@@ -26,4 +26,3 @@ export interface EnvironmentSwitcherProps {
26
26
  * manifest state. Hidden when there is only one environment.
27
27
  */
28
28
  export declare function EnvironmentSwitcher({ options, currentId, onChange, hideWhenSingle, className, ariaLabel, }: EnvironmentSwitcherProps): ReactElement | null;
29
- export default EnvironmentSwitcher;
@@ -5,7 +5,13 @@ interface ErrorStateProps {
5
5
  description?: ReactNode;
6
6
  action?: ReactNode;
7
7
  illustration?: ReactNode;
8
+ /**
9
+ * `page` (default) fills most of the viewport for full-page errors.
10
+ * `compact` drops the minimum height and uses a smaller title for errors
11
+ * inside a panel, pane or sidebar.
12
+ */
13
+ size?: 'page' | 'compact';
8
14
  className?: string;
9
15
  }
10
- export declare function ErrorState({ code, title, description, action, illustration, className, }: ErrorStateProps): import("react/jsx-runtime").JSX.Element;
11
- export default ErrorState;
16
+ export declare function ErrorState({ code, title, description, action, illustration, size, className, }: ErrorStateProps): import("react/jsx-runtime").JSX.Element;
17
+ export {};
@@ -36,4 +36,3 @@ export interface EventTableProps<T> {
36
36
  className?: string;
37
37
  }
38
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;
@@ -44,4 +44,4 @@ interface FileDropzoneProps {
44
44
  style?: CSSProperties;
45
45
  }
46
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;
47
+ export {};
@@ -1,18 +1,11 @@
1
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
- }
2
+ import { PrimitiveSurface } from '../../agent/usePrimitiveSurface';
3
+ export type FilePreviewSurface = PrimitiveSurface<{
4
+ src: string;
5
+ mimeType?: string;
6
+ name?: string;
7
+ size?: number;
8
+ }>;
16
9
  interface FilePreviewProps {
17
10
  /** Public URL or signed `/blob/raw/:token` link. */
18
11
  src: string;
@@ -31,4 +24,4 @@ interface FilePreviewProps {
31
24
  surface?: FilePreviewSurface;
32
25
  }
33
26
  export declare function FilePreview({ src, mimeType, name, size, fallback, maxHeight, className, style, surface, }: FilePreviewProps): import("react/jsx-runtime").JSX.Element;
34
- export default FilePreview;
27
+ export {};
@@ -21,4 +21,3 @@ export interface FolderDropzoneProps {
21
21
  className?: string;
22
22
  }
23
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;
@@ -9,4 +9,4 @@ interface ForgotPasswordFormProps {
9
9
  success?: string;
10
10
  }
11
11
  export declare function ForgotPasswordForm({ onSubmit, submitting, error, success, }: ForgotPasswordFormProps): ReactElement;
12
- export default ForgotPasswordForm;
12
+ export {};
@@ -6,4 +6,4 @@ interface FormRowProps {
6
6
  className?: string;
7
7
  }
8
8
  export declare function FormRow({ label, description, children, className, }: FormRowProps): import("react/jsx-runtime").JSX.Element;
9
- export default FormRow;
9
+ export {};
@@ -1,18 +1,11 @@
1
1
  import { ReactElement } from 'react';
2
- import { SurfaceKind, SurfaceSnapshot } from '../../agent/types';
2
+ import { PrimitiveSurface } from '../../agent/usePrimitiveSurface';
3
3
  import { AegisNotification } from '../../notifications';
4
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
- }
5
+ export type InboxPageSurface = PrimitiveSurface<AegisNotification[]>;
13
6
  interface InboxPageProps {
14
7
  defaultFilter?: Filter;
15
8
  surface?: InboxPageSurface;
16
9
  }
17
10
  export declare function InboxPage({ defaultFilter, surface, }: InboxPageProps): ReactElement;
18
- export default InboxPage;
11
+ export {};
@@ -1,19 +1,12 @@
1
1
  import { ReactNode } from 'react';
2
- import { SurfaceKind, SurfaceSnapshot } from '../../agent/types';
2
+ import { PrimitiveSurface } from '../../agent/usePrimitiveSurface';
3
3
  export interface KeyValueItem {
4
4
  /** Left key (mono — IDs, fields). */
5
5
  k: ReactNode;
6
6
  /** Right value (mono number / string). */
7
7
  v: ReactNode;
8
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
- }
9
+ export type KeyValueListSurface = PrimitiveSurface<KeyValueItem[]>;
17
10
  interface KeyValueListProps {
18
11
  items: KeyValueItem[];
19
12
  /** Render keys as uppercase tracked labels instead of mono. */
@@ -24,4 +17,4 @@ interface KeyValueListProps {
24
17
  surface?: KeyValueListSurface;
25
18
  }
26
19
  export declare function KeyValueList({ items, uppercaseKeys, ruled, className, surface, }: KeyValueListProps): import("react/jsx-runtime").JSX.Element;
27
- export default KeyValueList;
20
+ export {};
@@ -15,4 +15,4 @@ interface LoginFormProps {
15
15
  hiddenFields?: Record<string, string>;
16
16
  }
17
17
  export declare function LoginForm({ onSubmit, submitting, error, onForgotPassword, showRememberMe, action, method, hiddenFields, }: LoginFormProps): ReactElement;
18
- export default LoginForm;
18
+ export {};
@@ -1,6 +1,12 @@
1
- interface MarkdownProps {
1
+ import { Options } from 'react-markdown';
2
+ export interface MarkdownProps extends Pick<Options, 'remarkPlugins' | 'rehypePlugins' | 'components' | 'urlTransform'> {
2
3
  children: string;
3
4
  className?: string;
5
+ /**
6
+ * `compact` (default) keeps every heading at body size for chat turns,
7
+ * tooltips and cards. `document` uses a heading scale and roomier
8
+ * spacing for long-form pages.
9
+ */
10
+ variant?: 'compact' | 'document';
4
11
  }
5
- export declare function Markdown({ children, className }: MarkdownProps): import("react/jsx-runtime").JSX.Element;
6
- export default Markdown;
12
+ export declare function Markdown({ children, className, variant, remarkPlugins, rehypePlugins, components, urlTransform, }: MarkdownProps): import("react/jsx-runtime").JSX.Element;
@@ -12,4 +12,3 @@ export interface MetadataListProps {
12
12
  className?: string;
13
13
  }
14
14
  export declare function MetadataList({ entries, className }: MetadataListProps): import("react/jsx-runtime").JSX.Element;
15
- export default MetadataList;
@@ -1,17 +1,10 @@
1
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
- }
2
+ import { PrimitiveSurface } from '../../agent/usePrimitiveSurface';
3
+ export type MetricCardSurface = PrimitiveSurface<{
4
+ label: ReactNode;
5
+ value: ReactNode;
6
+ unit?: ReactNode;
7
+ }>;
15
8
  interface MetricCardProps {
16
9
  label: ReactNode;
17
10
  value: ReactNode;
@@ -27,4 +20,4 @@ interface MetricCardProps {
27
20
  surface?: MetricCardSurface;
28
21
  }
29
22
  export declare function MetricCard({ label, value, unit, sparkline, sparklineHeight, inverted, className, onClick, surface, }: MetricCardProps): import("react/jsx-runtime").JSX.Element;
30
- export default MetricCard;
23
+ export {};
@@ -8,4 +8,4 @@ interface MetricLabelProps {
8
8
  style?: CSSProperties;
9
9
  }
10
10
  export declare function MetricLabel({ children, as: Tag, inverted, size, className, style, }: MetricLabelProps): import("react/jsx-runtime").JSX.Element;
11
- export default MetricLabel;
11
+ export {};
@@ -1,13 +1,6 @@
1
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
- }
2
+ import { PrimitiveSurface } from '../../agent/usePrimitiveSurface';
3
+ export type MonoValueSurface = PrimitiveSurface<ReactNode>;
11
4
  interface MonoValueProps {
12
5
  children: ReactNode;
13
6
  size?: 'sm' | 'base' | 'lg';
@@ -19,4 +12,4 @@ interface MonoValueProps {
19
12
  surface?: MonoValueSurface;
20
13
  }
21
14
  export declare function MonoValue({ children, size, weight, inverted, as: Tag, className, style, surface, }: MonoValueProps): import("react/jsx-runtime").JSX.Element;
22
- export default MonoValue;
15
+ export {};
@@ -9,4 +9,4 @@ interface NotificationBellProps {
9
9
  action?: AegisAction<void, unknown>;
10
10
  }
11
11
  export declare function NotificationBell({ inboxPath, width, action, }: NotificationBellProps): ReactElement;
12
- export default NotificationBell;
12
+ export {};
@@ -37,4 +37,4 @@ interface ObjectBrowserProps {
37
37
  className?: string;
38
38
  }
39
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;
40
+ export {};
@@ -24,4 +24,3 @@ export interface ObjectInspectorProps {
24
24
  defaultMaximized?: boolean;
25
25
  }
26
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;
@@ -6,4 +6,4 @@ interface PageHeaderProps {
6
6
  className?: string;
7
7
  }
8
8
  export declare function PageHeader({ title, description, action, className, }: PageHeaderProps): import("react/jsx-runtime").JSX.Element;
9
- export default PageHeader;
9
+ export {};
@@ -6,6 +6,12 @@ export interface PageSizeSelectProps {
6
6
  disabled?: boolean;
7
7
  label?: string;
8
8
  className?: string;
9
+ /**
10
+ * Preferred side for the options panel. Default is 'top' because the
11
+ * primitive was originally used as a pagination footer where the table
12
+ * content is above; use 'bottom' when the trigger sits at the top of a
13
+ * section. The panel flips when the preferred side has no room.
14
+ */
15
+ placement?: 'top' | 'bottom';
9
16
  }
10
- export declare function PageSizeSelect({ value, onChange, options, disabled, label, className, }: PageSizeSelectProps): ReactElement;
11
- export default PageSizeSelect;
17
+ export declare function PageSizeSelect({ value, onChange, options, disabled, label, className, placement, }: PageSizeSelectProps): ReactElement;
@@ -1,13 +1,6 @@
1
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
- }
2
+ import { ContainerSurface } from '../../agent/usePrimitiveSurface';
3
+ export type PanelSurface = ContainerSurface;
11
4
  interface PanelProps {
12
5
  title?: ReactNode;
13
6
  extra?: ReactNode;
@@ -19,4 +12,4 @@ interface PanelProps {
19
12
  surface?: PanelSurface;
20
13
  }
21
14
  export declare function Panel({ title, extra, inverted, padded, className, style, children, surface, }: PanelProps): import("react/jsx-runtime").JSX.Element;
22
- export default Panel;
15
+ export {};
@@ -7,4 +7,4 @@ interface PanelTitleProps {
7
7
  className?: string;
8
8
  }
9
9
  export declare function PanelTitle({ children, as: Tag, italic, size, className, }: PanelTitleProps): import("react/jsx-runtime").JSX.Element;
10
- export default PanelTitle;
10
+ export {};
@@ -1,18 +1,11 @@
1
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
- }
2
+ import { PrimitiveSurface } from '../../agent/usePrimitiveSurface';
3
+ export type ParquetViewerSurface = PrimitiveSurface<{
4
+ src?: string;
5
+ file?: File | Blob;
6
+ totalRows: number;
7
+ columns: string[];
8
+ }>;
16
9
  interface ParquetViewerProps {
17
10
  /** Local file (e.g. from FileDropzone). Takes precedence over `src`. */
18
11
  file?: File | Blob;
@@ -27,4 +20,4 @@ interface ParquetViewerProps {
27
20
  surface?: ParquetViewerSurface;
28
21
  }
29
22
  export declare function ParquetViewer({ file, src, pageSize, title, className, style, surface, }: ParquetViewerProps): import("react/jsx-runtime").JSX.Element;
30
- export default ParquetViewer;
23
+ export {};
@@ -6,4 +6,4 @@ interface PasswordFieldProps extends Omit<InputHTMLAttributes<HTMLInputElement>,
6
6
  leadingIcon?: ReactNode;
7
7
  }
8
8
  export declare const PasswordField: import('react').ForwardRefExoticComponent<PasswordFieldProps & import('react').RefAttributes<HTMLInputElement>>;
9
- export default PasswordField;
9
+ export {};
@@ -1,7 +1,11 @@
1
+ import { ReactNode } from 'react';
1
2
  import { AegisAction } from '../../agent/types';
3
+ import { DropdownItem } from './DropdownMenu';
2
4
  export interface ProjectOption {
3
5
  id: string;
4
6
  name: string;
7
+ /** Trailing content on the option row, e.g. a status chip or a count. */
8
+ meta?: ReactNode;
5
9
  /** Optional aegis-ui agent action — fired when the option is selected. */
6
10
  action?: AegisAction<void, unknown>;
7
11
  }
@@ -9,9 +13,11 @@ interface ProjectSelectorProps {
9
13
  projects: ProjectOption[];
10
14
  selectedId?: string;
11
15
  onSelect: (id: string) => void;
16
+ /** Actions below the project list, e.g. "View all projects" / "New project". */
17
+ footerItems?: DropdownItem[];
12
18
  placeholder?: string;
13
19
  className?: string;
14
20
  align?: 'left' | 'right';
15
21
  }
16
- export declare function ProjectSelector({ projects, selectedId, onSelect, placeholder, className, align, }: ProjectSelectorProps): import("react/jsx-runtime").JSX.Element;
17
- export default ProjectSelector;
22
+ export declare function ProjectSelector({ projects, selectedId, onSelect, footerItems, placeholder, className, align, }: ProjectSelectorProps): import("react/jsx-runtime").JSX.Element;
23
+ export {};
@@ -23,4 +23,3 @@ export interface QueryAutocompleteProps {
23
23
  disabled?: boolean;
24
24
  }
25
25
  export declare function QueryAutocomplete({ value, onChange, onSubmit, fieldSuggestions, valueSuggestions, placeholder, showHelp, className, popoverClassName, disabled, }: QueryAutocompleteProps): JSX.Element;
26
- export default QueryAutocomplete;
@@ -11,4 +11,4 @@ interface RegisterFormProps {
11
11
  minPasswordLength?: number;
12
12
  }
13
13
  export declare function RegisterForm({ onSubmit, submitting, error, minPasswordLength, }: RegisterFormProps): ReactElement;
14
- export default RegisterForm;
14
+ export {};
@@ -9,13 +9,28 @@ export interface ResizableSidePanelProps {
9
9
  maxWidth?: number;
10
10
  /** localStorage key to persist width across reloads. */
11
11
  persistKey?: string;
12
+ /** Width change per arrow-key press on the handle, in px. */
13
+ keyboardStep?: number;
14
+ /**
15
+ * Narrows a proposed width after the min/max clamp, e.g. to keep the
16
+ * neighbouring content above its own minimum width.
17
+ */
18
+ constrainWidth?: (width: number) => number;
19
+ /** Double-clicking the handle restores `defaultWidth`. */
20
+ resetOnDoubleClick?: boolean;
12
21
  /** Whether the panel can be fully collapsed (rendered as a thin handle bar). */
13
22
  collapsible?: boolean;
14
23
  /** Controlled collapsed state. If omitted, internal state is used. */
15
24
  collapsed?: boolean;
16
25
  onCollapsedChange?: (collapsed: boolean) => void;
26
+ /**
27
+ * At ≤768 px, fill the parent's width with a bounded height and hide the
28
+ * resize handle — for layouts that stack the panel above or below its
29
+ * neighbour on narrow screens. The parent still owns the stacking
30
+ * (e.g. `flex-direction: column`).
31
+ */
32
+ stackOnMobile?: boolean;
17
33
  /** Optional className appended to the root. */
18
34
  className?: string;
19
35
  }
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;
36
+ export declare function ResizableSidePanel({ children, side, defaultWidth, minWidth, maxWidth, persistKey, keyboardStep, constrainWidth, resetOnDoubleClick, collapsible, collapsed: collapsedProp, onCollapsedChange, stackOnMobile, className, }: ResizableSidePanelProps): import("react/jsx-runtime").JSX.Element;
@@ -13,4 +13,3 @@ export interface SavedQueryBarProps {
13
13
  maxInlineUnpinned?: number;
14
14
  }
15
15
  export declare function SavedQueryBar({ namespace, currentValue, onApply, allowEmptySave, className, maxInlineUnpinned, }: SavedQueryBarProps): import("react/jsx-runtime").JSX.Element;
16
- export default SavedQueryBar;
@@ -9,4 +9,3 @@ export interface SearchInputProps {
9
9
  className?: string;
10
10
  }
11
11
  export declare function SearchInput({ value, onChange, placeholder, kbd, onClear, className, }: SearchInputProps): import("react/jsx-runtime").JSX.Element;
12
- export default SearchInput;
@@ -9,4 +9,4 @@ interface SectionDividerProps {
9
9
  className?: string;
10
10
  }
11
11
  export declare function SectionDivider({ children, extra, rule, className, }: SectionDividerProps): import("react/jsx-runtime").JSX.Element;
12
- export default SectionDivider;
12
+ export {};
@@ -0,0 +1,50 @@
1
+ import { ReactElement, ReactNode } from 'react';
2
+ import { InspectableContent } from './ContentInspectorContent';
3
+ export interface SessionRunMessage {
4
+ id?: string;
5
+ role: string;
6
+ content: unknown[];
7
+ highlighted?: boolean;
8
+ }
9
+ export interface SessionRunSummary {
10
+ lineage: string;
11
+ startedAt: string;
12
+ inputTokens: string;
13
+ outputTokens: string;
14
+ }
15
+ export interface SessionRunFact {
16
+ key: string;
17
+ label: string;
18
+ value: ReactNode;
19
+ }
20
+ export interface SessionRunToolCall {
21
+ id: string;
22
+ tool: string;
23
+ duration: string;
24
+ args: unknown;
25
+ result: unknown;
26
+ errored?: boolean;
27
+ }
28
+ export interface SessionRunSubmission {
29
+ tool: string;
30
+ payload: unknown;
31
+ result: unknown;
32
+ summary: string;
33
+ }
34
+ export interface SessionRunTrajectoryViewProps {
35
+ summary: SessionRunSummary;
36
+ messages: SessionRunMessage[];
37
+ loading?: boolean;
38
+ error?: string;
39
+ onInspectContent: (content: InspectableContent) => void;
40
+ }
41
+ export interface SessionRunOutputViewProps {
42
+ facts: SessionRunFact[];
43
+ acceptedSubmission?: SessionRunSubmission | null;
44
+ tools: SessionRunToolCall[];
45
+ loading?: boolean;
46
+ error?: string;
47
+ onInspectContent: (content: InspectableContent) => void;
48
+ }
49
+ export declare function SessionRunTrajectoryView({ summary, messages, loading, error, onInspectContent, }: SessionRunTrajectoryViewProps): ReactElement;
50
+ export declare function SessionRunOutputView({ facts, acceptedSubmission, tools, loading, error, onInspectContent, }: SessionRunOutputViewProps): ReactElement;
@@ -6,4 +6,4 @@ interface SettingsSectionProps {
6
6
  className?: string;
7
7
  }
8
8
  export declare function SettingsSection({ title, description, children, className, }: SettingsSectionProps): import("react/jsx-runtime").JSX.Element;
9
- export default SettingsSection;
9
+ export {};
@@ -22,4 +22,4 @@ interface ShareLinkDialogProps {
22
22
  className?: string;
23
23
  }
24
24
  export declare function ShareLinkDialog({ objectKey, ttlPresets, onGenerate, onClose, className, }: ShareLinkDialogProps): import("react/jsx-runtime").JSX.Element;
25
- export default ShareLinkDialog;
25
+ export {};
@@ -1,12 +1,5 @@
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
- }
1
+ import { PrimitiveSurface } from '../../agent/usePrimitiveSurface';
2
+ export type SparkLineSurface = PrimitiveSurface<number[]>;
10
3
  interface SparkLineProps {
11
4
  /** Sample values; rendered evenly on the X axis. */
12
5
  points: number[];
@@ -24,4 +17,4 @@ interface SparkLineProps {
24
17
  surface?: SparkLineSurface;
25
18
  }
26
19
  export declare function SparkLine({ points, width, height, strokeWidth, withBackdrop, inverted, className, ariaLabel, surface, }: SparkLineProps): import("react/jsx-runtime").JSX.Element;
27
- export default SparkLine;
20
+ export {};
@@ -1,17 +1,10 @@
1
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
- }
2
+ import { PrimitiveSurface } from '../../agent/usePrimitiveSurface';
3
+ export type StatBlockSurface = PrimitiveSurface<{
4
+ label: ReactNode;
5
+ value: ReactNode;
6
+ unit?: ReactNode;
7
+ }>;
15
8
  interface StatBlockProps {
16
9
  label: ReactNode;
17
10
  value: ReactNode;
@@ -26,4 +19,4 @@ interface StatBlockProps {
26
19
  surface?: StatBlockSurface;
27
20
  }
28
21
  export declare function StatBlock({ label, value, unit, direction, emphasized, inverted, className, surface, }: StatBlockProps): import("react/jsx-runtime").JSX.Element;
29
- export default StatBlock;
22
+ export {};
@@ -5,4 +5,4 @@ interface StatusDotProps {
5
5
  className?: string;
6
6
  }
7
7
  export declare function StatusDot({ pulse, tone, size, className, }: StatusDotProps): import("react/jsx-runtime").JSX.Element;
8
- export default StatusDot;
8
+ export {};
@@ -15,4 +15,4 @@ interface TabsProps {
15
15
  className?: string;
16
16
  }
17
17
  export declare function Tabs({ items, activeKey: controlledKey, defaultActiveKey, onChange, children, className, }: TabsProps): import("react/jsx-runtime").JSX.Element;
18
- export default Tabs;
18
+ export {};