@lincyaw/aegis-ui 0.3.0 → 0.6.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 (162) hide show
  1. package/README.md +82 -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/Alert.d.ts +14 -0
  13. package/dist/components/ui/AmbientBackground.d.ts +23 -0
  14. package/dist/components/ui/AuthLayout.d.ts +1 -1
  15. package/dist/components/ui/Avatar.d.ts +14 -14
  16. package/dist/components/ui/BlastRadiusBar.d.ts +6 -13
  17. package/dist/components/ui/Breadcrumb.d.ts +4 -14
  18. package/dist/components/ui/BucketCard.d.ts +1 -1
  19. package/dist/components/ui/Button.d.ts +26 -4
  20. package/dist/components/ui/Carousel.d.ts +28 -0
  21. package/dist/components/ui/ChatComposer.d.ts +1 -1
  22. package/dist/components/ui/ChatMessage.d.ts +7 -14
  23. package/dist/components/ui/ChatMessageList.d.ts +3 -10
  24. package/dist/components/ui/ChatSessionList.d.ts +0 -1
  25. package/dist/components/ui/CheckGrid.d.ts +47 -0
  26. package/dist/components/ui/Checkbox.d.ts +14 -0
  27. package/dist/components/ui/Chip.d.ts +17 -14
  28. package/dist/components/ui/CodeBlock.d.ts +11 -15
  29. package/dist/components/ui/CodeEditor.d.ts +6 -13
  30. package/dist/components/ui/Collapse.d.ts +16 -0
  31. package/dist/components/ui/ColumnLayout.d.ts +16 -0
  32. package/dist/components/ui/CommandInvocationCard.d.ts +7 -14
  33. package/dist/components/ui/CommandPalette.d.ts +0 -1
  34. package/dist/components/ui/ContentInspectorContent.d.ts +14 -0
  35. package/dist/components/ui/ContentInspectorDialog.d.ts +15 -0
  36. package/dist/components/ui/ControlListItem.d.ts +4 -2
  37. package/dist/components/ui/DangerZone.d.ts +1 -1
  38. package/dist/components/ui/DataList.d.ts +3 -11
  39. package/dist/components/ui/DataTable.d.ts +86 -10
  40. package/dist/components/ui/Dialog.d.ts +21 -0
  41. package/dist/components/ui/DiffViewer.d.ts +6 -13
  42. package/dist/components/ui/DropdownMenu.d.ts +6 -2
  43. package/dist/components/ui/EmptyState.d.ts +1 -1
  44. package/dist/components/ui/EnvironmentSwitcher.d.ts +0 -1
  45. package/dist/components/ui/ErrorState.d.ts +8 -2
  46. package/dist/components/ui/EventTable.d.ts +0 -1
  47. package/dist/components/ui/FileDropzone.d.ts +1 -1
  48. package/dist/components/ui/FilePreview.d.ts +8 -15
  49. package/dist/components/ui/FileTree.d.ts +27 -0
  50. package/dist/components/ui/FolderDropzone.d.ts +0 -1
  51. package/dist/components/ui/ForgotPasswordForm.d.ts +1 -1
  52. package/dist/components/ui/FormRow.d.ts +1 -1
  53. package/dist/components/ui/IdentityCell.d.ts +25 -0
  54. package/dist/components/ui/InboxPage.d.ts +3 -10
  55. package/dist/components/ui/KeyValueList.d.ts +3 -10
  56. package/dist/components/ui/LoginForm.d.ts +1 -1
  57. package/dist/components/ui/Markdown.d.ts +9 -3
  58. package/dist/components/ui/MdxDocument.d.ts +17 -0
  59. package/dist/components/ui/MetadataList.d.ts +0 -1
  60. package/dist/components/ui/MetricCard.d.ts +7 -14
  61. package/dist/components/ui/MetricLabel.d.ts +2 -1
  62. package/dist/components/ui/MonoValue.d.ts +6 -11
  63. package/dist/components/ui/NotificationBell.d.ts +1 -1
  64. package/dist/components/ui/ObjectBrowser.d.ts +1 -1
  65. package/dist/components/ui/ObjectInspector.d.ts +0 -1
  66. package/dist/components/ui/PageHeader.d.ts +8 -3
  67. package/dist/components/ui/PageSizeSelect.d.ts +9 -2
  68. package/dist/components/ui/Pagination.d.ts +13 -0
  69. package/dist/components/ui/Panel.d.ts +35 -14
  70. package/dist/components/ui/PanelTitle.d.ts +3 -3
  71. package/dist/components/ui/ParetoChart.d.ts +41 -0
  72. package/dist/components/ui/ParquetViewer.d.ts +8 -15
  73. package/dist/components/ui/PasswordField.d.ts +1 -1
  74. package/dist/components/ui/PickerField.d.ts +17 -0
  75. package/dist/components/ui/ProjectSelector.d.ts +8 -2
  76. package/dist/components/ui/QueryAutocomplete.d.ts +0 -1
  77. package/dist/components/ui/RankBar.d.ts +25 -0
  78. package/dist/components/ui/RegisterForm.d.ts +1 -1
  79. package/dist/components/ui/ResizableSidePanel.d.ts +17 -2
  80. package/dist/components/ui/Reveal.d.ts +17 -0
  81. package/dist/components/ui/RunPips.d.ts +25 -0
  82. package/dist/components/ui/SavedQueryBar.d.ts +0 -1
  83. package/dist/components/ui/ScoreBar.d.ts +21 -0
  84. package/dist/components/ui/SearchInput.d.ts +6 -2
  85. package/dist/components/ui/SectionDivider.d.ts +1 -1
  86. package/dist/components/ui/Select.d.ts +25 -0
  87. package/dist/components/ui/SessionRunView.d.ts +50 -0
  88. package/dist/components/ui/SettingsSection.d.ts +1 -1
  89. package/dist/components/ui/ShareLinkDialog.d.ts +22 -6
  90. package/dist/components/ui/SparkLine.d.ts +3 -10
  91. package/dist/components/ui/StackedBar.d.ts +47 -0
  92. package/dist/components/ui/StatBlock.d.ts +15 -16
  93. package/dist/components/ui/StatusDot.d.ts +2 -2
  94. package/dist/components/ui/TableOfContents.d.ts +20 -0
  95. package/dist/components/ui/Tabs.d.ts +12 -2
  96. package/dist/components/ui/Terminal.d.ts +3 -10
  97. package/dist/components/ui/TextField.d.ts +1 -1
  98. package/dist/components/ui/TimeDisplay.d.ts +3 -3
  99. package/dist/components/ui/TimeRangePicker.d.ts +0 -1
  100. package/dist/components/ui/Timeline.d.ts +23 -15
  101. package/dist/components/ui/ToolCallCard.d.ts +3 -10
  102. package/dist/components/ui/Toolbar.d.ts +0 -1
  103. package/dist/components/ui/TraceSpanInspector.d.ts +15 -0
  104. package/dist/components/ui/TraceTree.d.ts +16 -14
  105. package/dist/components/ui/TrajectoryStep.d.ts +16 -10
  106. package/dist/components/ui/TrajectoryTimeline.d.ts +5 -11
  107. package/dist/components/ui/UploadQueue.d.ts +1 -1
  108. package/dist/components/ui/codeFence.d.ts +5 -0
  109. package/dist/components/ui/index.d.ts +51 -5
  110. package/dist/components/ui/linkComponent.d.ts +12 -0
  111. package/dist/components/ui/mdxTableOfContents.d.ts +13 -0
  112. package/dist/components/ui/relativeTime.d.ts +1 -1
  113. package/dist/components/ui/tablistKeyboard.d.ts +6 -0
  114. package/dist/components/ui/traceFormat.d.ts +5 -0
  115. package/dist/hooks/index.d.ts +2 -0
  116. package/dist/hooks/useCopyToClipboard.d.ts +8 -0
  117. package/dist/hooks/useElementWidth.d.ts +3 -0
  118. package/dist/hooks/useMediaQuery.d.ts +2 -0
  119. package/dist/hooks/useMenuPopover.d.ts +27 -0
  120. package/dist/hooks/usePageHidden.d.ts +2 -0
  121. package/dist/hooks/useResizable.d.ts +9 -0
  122. package/dist/index.cjs +13 -1
  123. package/dist/index.cjs.map +1 -1
  124. package/dist/index.d.ts +8 -5
  125. package/dist/index.js +12123 -123
  126. package/dist/index.js.map +1 -1
  127. package/dist/layouts/shell/AegisShell.d.ts +1 -1
  128. package/dist/layouts/shell/AuthRequiredCard.d.ts +2 -2
  129. package/dist/layouts/shell/TopHeader.d.ts +9 -1
  130. package/dist/layouts/shell/paths.d.ts +11 -0
  131. package/dist/layouts/shell/types.d.ts +40 -13
  132. package/dist/lib/format.d.ts +2 -0
  133. package/dist/lib/id.d.ts +2 -0
  134. package/dist/lib/luceneQuery/lucene.d.ts +63 -0
  135. package/dist/lib/storage.d.ts +12 -0
  136. package/dist/locale/LocaleProvider.d.ts +9 -0
  137. package/dist/locale/index.d.ts +4 -0
  138. package/dist/locale/localeContext.d.ts +2 -0
  139. package/dist/locale/strings.d.ts +110 -0
  140. package/dist/locale/useStrings.d.ts +2 -0
  141. package/dist/mdx-modules.d.ts +22 -0
  142. package/dist/style.css +1 -1
  143. package/dist/theme/antdTheme.d.ts +2 -3
  144. package/dist/vite.cjs +2 -0
  145. package/dist/vite.cjs.map +1 -0
  146. package/dist/vite.d.ts +7 -0
  147. package/dist/vite.js +18 -0
  148. package/dist/vite.js.map +1 -0
  149. package/package.json +43 -18
  150. package/dist/index-6WZzHI2Z.cjs +0 -1151
  151. package/dist/index-6WZzHI2Z.cjs.map +0 -1
  152. package/dist/index-CZ_qegBG.js +0 -6736
  153. package/dist/index-CZ_qegBG.js.map +0 -1
  154. package/dist/index-DLXAAlfH.cjs +0 -15
  155. package/dist/index-DLXAAlfH.cjs.map +0 -1
  156. package/dist/index-DtgBxtmy.js +0 -56284
  157. package/dist/index-DtgBxtmy.js.map +0 -1
  158. package/dist/styles/fonts.d.ts +0 -0
  159. package/dist/workerBundle-D52AeOj1.js +0 -76
  160. package/dist/workerBundle-D52AeOj1.js.map +0 -1
  161. package/dist/workerBundle-FGNDqtbW.cjs +0 -73
  162. package/dist/workerBundle-FGNDqtbW.cjs.map +0 -1
@@ -8,4 +8,4 @@ import { AegisShellProps } from './types';
8
8
  * the chrome around every app — apps themselves only render page content
9
9
  * inside a `<PageWrapper>` (the shell wraps the outlet automatically).
10
10
  */
11
- export declare function AegisShell({ brand, apps, rootRoutes, fallbackPath, notFoundElement, user, userMenu, headerCenter, headerActions, inboxPath, onAppSwitch, }: AegisShellProps): ReactElement;
11
+ export declare function AegisShell({ brand, apps, rootRoutes, fallbackPath, notFoundElement, user, userMenu, headerCenter, headerActions, appSwitcher, elevateHeaderOnScroll, ambient, inboxPath, onAppSwitch, enableCommandPalette, agentPanel, }: AegisShellProps): ReactElement;
@@ -1,9 +1,9 @@
1
1
  import { ReactElement } from 'react';
2
- import { AegisAuthUser } from '../../auth';
2
+ import { AegisAuthUser, AuthStatus } from '../../auth';
3
3
  import { AegisApp } from './types';
4
4
  interface AuthRequiredCardProps {
5
5
  app: AegisApp;
6
- status: 'loading' | 'authenticated' | 'unauthenticated';
6
+ status: AuthStatus;
7
7
  user: AegisAuthUser | null;
8
8
  onSignIn?: () => void;
9
9
  }
@@ -5,6 +5,10 @@ interface TopHeaderProps {
5
5
  apps: AegisApp[];
6
6
  activeAppId?: string;
7
7
  onAppSwitch?: (appId: string) => void;
8
+ /** Whether to render the app launcher. */
9
+ appSwitcher?: boolean;
10
+ /** The page has scrolled under the header; it gets a shadow. */
11
+ scrolled?: boolean;
8
12
  user?: AegisUser;
9
13
  headerCenter?: ReactNode;
10
14
  headerActions?: ReactNode;
@@ -28,6 +32,10 @@ interface TopHeaderProps {
28
32
  inlineSlotRef?: (node: HTMLDivElement | null) => void;
29
33
  /** When true, hide the global `headerCenter` (an app header took it over). */
30
34
  inlineSlotActive?: boolean;
35
+ /** Current agent panel state — drives aria-pressed on its toggle. */
36
+ agentPanelOpen?: boolean;
37
+ /** Fired by the agent panel toggle; the toggle renders only when set. */
38
+ onAgentPanelToggle?: () => void;
31
39
  }
32
- export declare function TopHeader({ brand, apps, activeAppId, onAppSwitch, user, headerCenter, headerActions, inboxPath, onMobileMenuToggle, showMobileMenu, sidebarCollapsible, sidebarCollapsed, onSidebarToggle, inlineSlotRef, inlineSlotActive, }: TopHeaderProps): ReactElement;
40
+ export declare function TopHeader({ brand, apps, activeAppId, onAppSwitch, appSwitcher, scrolled, user, headerCenter, headerActions, inboxPath, onMobileMenuToggle, showMobileMenu, sidebarCollapsible, sidebarCollapsed, onSidebarToggle, inlineSlotRef, inlineSlotActive, agentPanelOpen, onAgentPanelToggle, }: TopHeaderProps): ReactElement;
33
41
  export {};
@@ -0,0 +1,11 @@
1
+ /** Strips trailing slashes, so an app mounted at `/` has the basePath `''`. */
2
+ export declare function normalizeBasePath(basePath: string): string;
3
+ /**
4
+ * Resolves an app-relative path against a basePath. Leading slashes on
5
+ * `rel` are app-root-relative, and an empty `rel` is the app root (`/` for
6
+ * an app mounted at the root). A query string on `rel` is kept and appended
7
+ * after the joined path, so `?x=1` resolves to the app root with that query.
8
+ */
9
+ export declare function joinPath(basePath: string, rel: string): string;
10
+ /** The path part of an app-relative link, without its query string. */
11
+ export declare function pathOf(rel: string): string;
@@ -1,6 +1,7 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { RouteObject } from 'react-router-dom';
3
3
  import { Command } from '../../commands';
4
+ import { AmbientBackgroundVariant } from '../../components/ui/AmbientBackground';
4
5
  import { AegisAppEnvironmentsConfig } from './environments/types';
5
6
  /**
6
7
  * One entry in an app's internal left-nav. Sub-app authors only have to
@@ -40,9 +41,10 @@ export interface AegisApp {
40
41
  /** Optional inner sidebar shown when this app is active. */
41
42
  sidebar?: AegisAppNavGroup[];
42
43
  /**
43
- * Optional sub-header rendered between the shell's `TopHeader` and the
44
- * page content. Use for app-scoped toolbars, tab nav, filters, etc.
45
- * Sticky by default so it stays in view while the page scrolls.
44
+ * Optional app header rendered in the centre of the shell's sticky top
45
+ * header, in place of `headerCenter`. Use for app-scoped toolbars, tab
46
+ * nav, a project switcher, etc. At ≤768 px it wraps onto its own
47
+ * full-width row under the brand and actions.
46
48
  *
47
49
  * Rendered inside `wrap`, so it can read from the app's Context.
48
50
  */
@@ -57,6 +59,11 @@ export interface AegisApp {
57
59
  * shell render, blowing away its state.
58
60
  */
59
61
  wrap?: (children: ReactNode) => ReactNode;
62
+ /**
63
+ * Set false to drop the shell's breadcrumb bar while this app is active,
64
+ * for apps whose pages render their own `<Breadcrumb>`. Default true.
65
+ */
66
+ breadcrumbBar?: boolean;
60
67
  /** Optional one-line description shown in app pickers. */
61
68
  description?: string;
62
69
  /**
@@ -66,8 +73,12 @@ export interface AegisApp {
66
73
  */
67
74
  hidden?: boolean;
68
75
  /**
69
- * Commands exposed by this app. Registered by AegisShell when this
70
- * app becomes active. (Contract only — wiring is a separate task.)
76
+ * Commands this app contributes to the <CommandProvider/> registry.
77
+ * AegisShell registers them for every app the current user can see,
78
+ * with `scope` overwritten to this app's id: the palette and keyboard
79
+ * shortcuts surface them only while this app is active, agents see
80
+ * them all via `allCommands`. Register app-independent commands with
81
+ * `useRegisterCommands` above the shell instead.
71
82
  */
72
83
  commands?: Command[];
73
84
  /**
@@ -147,6 +158,19 @@ export interface AegisShellProps {
147
158
  headerCenter?: ReactNode;
148
159
  /** Slot rendered in the top header right side, before the user menu. */
149
160
  headerActions?: ReactNode;
161
+ /**
162
+ * Renders the app launcher in the top header. Default true; a single-app
163
+ * site sets false, since the launcher would only list that app.
164
+ */
165
+ appSwitcher?: boolean;
166
+ /** Gives the sticky top header a shadow once the page scrolls. */
167
+ elevateHeaderOnScroll?: boolean;
168
+ /**
169
+ * Draws an `AmbientBackground` of this variant across the top of the
170
+ * shell, beneath the glass header and the page content. Omit it for a
171
+ * plain page background.
172
+ */
173
+ ambient?: AmbientBackgroundVariant;
150
174
  /**
151
175
  * When set, a notification bell is rendered in the top header (between
152
176
  * `headerActions` and the user menu) and clicking "View all" routes to
@@ -157,17 +181,20 @@ export interface AegisShellProps {
157
181
  /** Fired when the user navigates between apps. */
158
182
  onAppSwitch?: (appId: string) => void;
159
183
  /**
160
- * When true, AegisShell mounts <CommandPalette/> and threads
161
- * active-app scope into the command registry. Requires
162
- * <CommandProvider/> above the shell. (Contract only — wiring is a
163
- * separate task.)
184
+ * When true, AegisShell mounts <CommandPalette/>, opened and closed by
185
+ * the provider's mod+k (⌘K / Ctrl+K) binding. It lists the active app's
186
+ * commands plus unscoped ones. Requires <CommandProvider/> above the
187
+ * shell; without one the palette is not mounted and a warning is logged.
188
+ * Don't also render <CommandPalette/> yourself.
164
189
  */
165
190
  enableCommandPalette?: boolean;
166
191
  /**
167
- * When provided, AegisShell renders the node as a collapsible right-side
168
- * panel (typically <AgentPanel/> filled with messages from useAgent()).
169
- * The open state is owned by the host (read via the agent context's
170
- * panelOpen field). Requires <AgentProvider/> above the shell.
192
+ * When provided, AegisShell renders the node (typically <AgentPanel/>
193
+ * filled from useAgent()) as a right-side column while the agent
194
+ * context's `panelOpen` is true — at ≤768 px as an overlay below the
195
+ * header. A header toggle flips it through `setPanelOpen`. Requires
196
+ * <AgentProvider/> above the shell; without one nothing renders and a
197
+ * warning is logged.
171
198
  */
172
199
  agentPanel?: ReactNode;
173
200
  }
@@ -0,0 +1,2 @@
1
+ /** Formats a byte count in binary units: `512 B`, `1.5 KB`, `12 MB`. */
2
+ export declare function formatBytes(n: number): string;
@@ -0,0 +1,2 @@
1
+ /** Returns `<prefix>-<time>-<random>`, unique enough for client-side ids. */
2
+ export declare function uniqueId(prefix: string): string;
@@ -0,0 +1,63 @@
1
+ // Minimal typing for @hyperdx/lucene (3.1.x). The upstream package ships no
2
+ // .d.ts; we model only the AST surface our compiler reads. Shape derived from
3
+ // lib/lucene.grammar in @hyperdx/lucene@3.1.1.
4
+ declare module '@hyperdx/lucene' {
5
+ export type Operator =
6
+ | 'AND'
7
+ | 'OR'
8
+ | 'NOT'
9
+ | 'AND NOT'
10
+ | 'OR NOT'
11
+ | '<implicit>';
12
+
13
+ export interface NodeTerm {
14
+ field: string;
15
+ term: string;
16
+ quoted?: boolean;
17
+ regex?: boolean;
18
+ prefix?: string;
19
+ boost?: number;
20
+ similarity?: number;
21
+ proximity?: number;
22
+ fieldLocation?: unknown;
23
+ termLocation?: unknown;
24
+ }
25
+
26
+ export interface NodeRangedTerm {
27
+ field: string;
28
+ term_min: string;
29
+ term_max: string;
30
+ inclusive: 'both' | 'left' | 'right' | 'none';
31
+ inclusive_min?: boolean;
32
+ inclusive_max?: boolean;
33
+ }
34
+
35
+ export type Node = NodeTerm | NodeRangedTerm | AST;
36
+
37
+ export interface LeftOnlyAST {
38
+ left: Node;
39
+ start?: Operator;
40
+ parenthesized?: boolean;
41
+ field?: string;
42
+ }
43
+
44
+ export interface BinaryAST {
45
+ left: Node;
46
+ operator: Operator;
47
+ right: Node;
48
+ start?: Operator;
49
+ parenthesized?: boolean;
50
+ field?: string;
51
+ }
52
+
53
+ export type AST = LeftOnlyAST | BinaryAST | EmptyAST;
54
+
55
+ export interface EmptyAST {
56
+ left?: undefined;
57
+ right?: undefined;
58
+ operator?: Operator;
59
+ }
60
+
61
+ export function parse(query: string): AST;
62
+ export function toString(ast: AST): string;
63
+ }
@@ -0,0 +1,12 @@
1
+ export type StorageArea = 'local' | 'session';
2
+ /** Reads a key, returning null when storage is missing, blocked or empty. */
3
+ export declare function readStorage(key: string, area?: StorageArea): string | null;
4
+ /** Writes a key; failures (private mode, quota) are ignored. */
5
+ export declare function writeStorage(key: string, value: string, area?: StorageArea): void;
6
+ export declare function removeStorage(key: string, area?: StorageArea): void;
7
+ /**
8
+ * Returns the value stored under `key`, creating and storing it with
9
+ * `create` on first use. Falls back to an unstored value when storage is
10
+ * unavailable.
11
+ */
12
+ export declare function getOrCreateStored(key: string, create: () => string, area?: StorageArea): string;
@@ -0,0 +1,9 @@
1
+ import { ReactNode } from 'react';
2
+ import { AegisStrings } from './strings';
3
+ interface LocaleProviderProps {
4
+ strings: AegisStrings;
5
+ children: ReactNode;
6
+ }
7
+ /** Supplies the strings primitives render; without it they render English. */
8
+ export declare function LocaleProvider({ strings, children }: LocaleProviderProps): import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -0,0 +1,4 @@
1
+ export { LocaleProvider } from './LocaleProvider';
2
+ export { enStrings, zhCNStrings } from './strings';
3
+ export type { AegisStrings } from './strings';
4
+ export { useStrings } from './useStrings';
@@ -0,0 +1,2 @@
1
+ import { AegisStrings } from './strings';
2
+ export declare const LocaleContext: import('react').Context<AegisStrings>;
@@ -0,0 +1,110 @@
1
+ /** Every user-visible string a primitive renders on its own. */
2
+ export interface AegisStrings {
3
+ copy: string;
4
+ copied: string;
5
+ copyToClipboard: string;
6
+ plainTextLanguage: string;
7
+ inspectorRendered: string;
8
+ inspectorRaw: string;
9
+ openInInspector: string;
10
+ openContent: (title: string) => string;
11
+ inputTokens: string;
12
+ outputTokens: string;
13
+ loadingTrajectory: string;
14
+ trajectoryLoadFailed: string;
15
+ noMessages: string;
16
+ noMessagesDescription: string;
17
+ clearSearch: string;
18
+ clearSelection: string;
19
+ remove: string;
20
+ close: string;
21
+ breadcrumb: string;
22
+ tableOfContents: string;
23
+ switchApp: string;
24
+ openNavigation: string;
25
+ closeNavigation: string;
26
+ /** The shell's first link, which moves keyboard focus past the header to the page. */
27
+ skipToContent: string;
28
+ showSidebar: string;
29
+ hideSidebar: string;
30
+ selectRow: string;
31
+ selectAllRows: string;
32
+ previousPage: string;
33
+ nextPage: string;
34
+ rowsPerPage: string;
35
+ /** Joins a row range to its total, e.g. "1–25 of 469". */
36
+ rangeOf: string;
37
+ totalCount: (total: number, unit: string) => string;
38
+ recordsUnit: string;
39
+ /** Accessible value of a bar, e.g. "0.75 of 1.00". */
40
+ barValue: (value: string, max: string) => string;
41
+ /** Accessible text for a missing value (shown as an em dash). */
42
+ noValue: string;
43
+ paretoChartLabel: (xLabel: string, yLabel: string) => string;
44
+ paretoEmptyTitle: string;
45
+ /** Accessible summary of RunPips, e.g. "3 of 5 runs passed, 1 failed, 1 errored". */
46
+ runPipsLabel: (counts: {
47
+ passed: number;
48
+ failed: number;
49
+ errored: number;
50
+ pending: number;
51
+ total: number;
52
+ }) => string;
53
+ shareLinkSharing: string;
54
+ shareLinkExpiresAfter: string;
55
+ /** A share link lifetime preset, e.g. "15 min" or "7 days". */
56
+ shareLinkTtl: (seconds: number) => string;
57
+ shareLinkDisposition: string;
58
+ shareLinkForceDownload: string;
59
+ /** Time left on a generated link, e.g. "expires in 59m 12s". */
60
+ shareLinkExpiresIn: (remaining: {
61
+ hours: number;
62
+ minutes: number;
63
+ seconds: number;
64
+ }) => string;
65
+ shareLinkExpired: string;
66
+ shareLinkCopy: string;
67
+ shareLinkGenerate: string;
68
+ shareLinkGenerating: string;
69
+ shareLinkGenerateFailed: string;
70
+ clipboardUnavailable: string;
71
+ /** The TrajectoryTimeline header when it names no agent. */
72
+ trajectoryHeading: string;
73
+ trajectoryStatus: (status: 'running' | 'completed' | 'failed') => string;
74
+ trajectoryActionType: (type: 'tool_call' | 'message' | 'internal') => string;
75
+ trajectoryThought: string;
76
+ trajectoryAction: string;
77
+ trajectoryTool: string;
78
+ trajectoryObservation: string;
79
+ toolCallArguments: string;
80
+ toolCallResult: string;
81
+ toolCallError: string;
82
+ toolCallStatus: (status: 'running' | 'ok' | 'error') => string;
83
+ expandRow: string;
84
+ collapseRow: string;
85
+ resizeNameColumn: string;
86
+ /** A TraceTree tooltip's timing, e.g. "start +1.2s · dur 300ms". */
87
+ traceSpanTiming: (start: string, duration: string) => string;
88
+ traceSpanStatus: (status: 'ok' | 'error' | 'unset') => string;
89
+ traceSpanField: (field: 'name' | 'status' | 'kind' | 'start' | 'duration' | 'parent' | 'id') => string;
90
+ inspectorOverview: string;
91
+ inspectorAttributes: string;
92
+ noAttributes: string;
93
+ noAttributesDescription: string;
94
+ inspectorTabs: string;
95
+ maximizeInspector: string;
96
+ restoreInspector: string;
97
+ closeInspector: string;
98
+ maximize: string;
99
+ restore: string;
100
+ timelineEmptyTitle: string;
101
+ timelineEmptyDescription: string;
102
+ /** Read before an Alert's content to name its tone, e.g. "Error:". */
103
+ alertTone: (tone: 'info' | 'success' | 'warning' | 'error') => string;
104
+ /** What assistive technology calls a Carousel region. */
105
+ carouselRoleDescription: string;
106
+ carouselPause: string;
107
+ carouselPlay: string;
108
+ }
109
+ export declare const enStrings: AegisStrings;
110
+ export declare const zhCNStrings: AegisStrings;
@@ -0,0 +1,2 @@
1
+ import { AegisStrings } from './strings';
2
+ export declare function useStrings(): AegisStrings;
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Types of the `.mdx` modules that `aegisMdx()` from `@lincyaw/aegis-ui/vite`
3
+ * compiles. A host references them with
4
+ * `/// <reference types="@lincyaw/aegis-ui/mdx-modules" />`.
5
+ */
6
+ declare module '*.mdx' {
7
+ import type { MDXContent } from 'mdx/types';
8
+
9
+ /** A heading, with the headings under it; `MdxTocEntry` in the library. */
10
+ interface TocEntry {
11
+ value: string;
12
+ depth: number;
13
+ id?: string;
14
+ children?: TocEntry[];
15
+ }
16
+
17
+ /** The document's headings, for `mdxTableOfContents`. */
18
+ export const tableOfContents: TocEntry[];
19
+
20
+ const Content: MDXContent;
21
+ export default Content;
22
+ }