@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.
- package/README.md +82 -5
- package/dist/agent/AgentProvider.d.ts +4 -0
- package/dist/agent/AskOverlay.d.ts +0 -1
- package/dist/agent/AskPanel.d.ts +0 -1
- package/dist/agent/agentContext.d.ts +6 -2
- package/dist/agent/agentmChannelClient.d.ts +1 -0
- package/dist/agent/runtime.d.ts +6 -1
- package/dist/agent/usePrimitiveSurface.d.ts +30 -0
- package/dist/commands/CommandProvider.d.ts +3 -3
- package/dist/commands/commandContext.d.ts +2 -2
- package/dist/components/ui/AgentPanel.d.ts +3 -10
- package/dist/components/ui/Alert.d.ts +14 -0
- package/dist/components/ui/AmbientBackground.d.ts +23 -0
- package/dist/components/ui/AuthLayout.d.ts +1 -1
- package/dist/components/ui/Avatar.d.ts +14 -14
- package/dist/components/ui/BlastRadiusBar.d.ts +6 -13
- package/dist/components/ui/Breadcrumb.d.ts +4 -14
- package/dist/components/ui/BucketCard.d.ts +1 -1
- package/dist/components/ui/Button.d.ts +26 -4
- package/dist/components/ui/Carousel.d.ts +28 -0
- package/dist/components/ui/ChatComposer.d.ts +1 -1
- package/dist/components/ui/ChatMessage.d.ts +7 -14
- package/dist/components/ui/ChatMessageList.d.ts +3 -10
- package/dist/components/ui/ChatSessionList.d.ts +0 -1
- package/dist/components/ui/CheckGrid.d.ts +47 -0
- package/dist/components/ui/Checkbox.d.ts +14 -0
- package/dist/components/ui/Chip.d.ts +17 -14
- package/dist/components/ui/CodeBlock.d.ts +11 -15
- package/dist/components/ui/CodeEditor.d.ts +6 -13
- package/dist/components/ui/Collapse.d.ts +16 -0
- package/dist/components/ui/ColumnLayout.d.ts +16 -0
- package/dist/components/ui/CommandInvocationCard.d.ts +7 -14
- package/dist/components/ui/CommandPalette.d.ts +0 -1
- package/dist/components/ui/ContentInspectorContent.d.ts +14 -0
- package/dist/components/ui/ContentInspectorDialog.d.ts +15 -0
- package/dist/components/ui/ControlListItem.d.ts +4 -2
- package/dist/components/ui/DangerZone.d.ts +1 -1
- package/dist/components/ui/DataList.d.ts +3 -11
- package/dist/components/ui/DataTable.d.ts +86 -10
- package/dist/components/ui/Dialog.d.ts +21 -0
- package/dist/components/ui/DiffViewer.d.ts +6 -13
- package/dist/components/ui/DropdownMenu.d.ts +6 -2
- package/dist/components/ui/EmptyState.d.ts +1 -1
- package/dist/components/ui/EnvironmentSwitcher.d.ts +0 -1
- package/dist/components/ui/ErrorState.d.ts +8 -2
- package/dist/components/ui/EventTable.d.ts +0 -1
- package/dist/components/ui/FileDropzone.d.ts +1 -1
- package/dist/components/ui/FilePreview.d.ts +8 -15
- package/dist/components/ui/FileTree.d.ts +27 -0
- package/dist/components/ui/FolderDropzone.d.ts +0 -1
- package/dist/components/ui/ForgotPasswordForm.d.ts +1 -1
- package/dist/components/ui/FormRow.d.ts +1 -1
- package/dist/components/ui/IdentityCell.d.ts +25 -0
- package/dist/components/ui/InboxPage.d.ts +3 -10
- package/dist/components/ui/KeyValueList.d.ts +3 -10
- package/dist/components/ui/LoginForm.d.ts +1 -1
- package/dist/components/ui/Markdown.d.ts +9 -3
- package/dist/components/ui/MdxDocument.d.ts +17 -0
- package/dist/components/ui/MetadataList.d.ts +0 -1
- package/dist/components/ui/MetricCard.d.ts +7 -14
- package/dist/components/ui/MetricLabel.d.ts +2 -1
- package/dist/components/ui/MonoValue.d.ts +6 -11
- package/dist/components/ui/NotificationBell.d.ts +1 -1
- package/dist/components/ui/ObjectBrowser.d.ts +1 -1
- package/dist/components/ui/ObjectInspector.d.ts +0 -1
- package/dist/components/ui/PageHeader.d.ts +8 -3
- package/dist/components/ui/PageSizeSelect.d.ts +9 -2
- package/dist/components/ui/Pagination.d.ts +13 -0
- package/dist/components/ui/Panel.d.ts +35 -14
- package/dist/components/ui/PanelTitle.d.ts +3 -3
- package/dist/components/ui/ParetoChart.d.ts +41 -0
- package/dist/components/ui/ParquetViewer.d.ts +8 -15
- package/dist/components/ui/PasswordField.d.ts +1 -1
- package/dist/components/ui/PickerField.d.ts +17 -0
- package/dist/components/ui/ProjectSelector.d.ts +8 -2
- package/dist/components/ui/QueryAutocomplete.d.ts +0 -1
- package/dist/components/ui/RankBar.d.ts +25 -0
- package/dist/components/ui/RegisterForm.d.ts +1 -1
- package/dist/components/ui/ResizableSidePanel.d.ts +17 -2
- package/dist/components/ui/Reveal.d.ts +17 -0
- package/dist/components/ui/RunPips.d.ts +25 -0
- package/dist/components/ui/SavedQueryBar.d.ts +0 -1
- package/dist/components/ui/ScoreBar.d.ts +21 -0
- package/dist/components/ui/SearchInput.d.ts +6 -2
- package/dist/components/ui/SectionDivider.d.ts +1 -1
- package/dist/components/ui/Select.d.ts +25 -0
- package/dist/components/ui/SessionRunView.d.ts +50 -0
- package/dist/components/ui/SettingsSection.d.ts +1 -1
- package/dist/components/ui/ShareLinkDialog.d.ts +22 -6
- package/dist/components/ui/SparkLine.d.ts +3 -10
- package/dist/components/ui/StackedBar.d.ts +47 -0
- package/dist/components/ui/StatBlock.d.ts +15 -16
- package/dist/components/ui/StatusDot.d.ts +2 -2
- package/dist/components/ui/TableOfContents.d.ts +20 -0
- package/dist/components/ui/Tabs.d.ts +12 -2
- package/dist/components/ui/Terminal.d.ts +3 -10
- package/dist/components/ui/TextField.d.ts +1 -1
- package/dist/components/ui/TimeDisplay.d.ts +3 -3
- package/dist/components/ui/TimeRangePicker.d.ts +0 -1
- package/dist/components/ui/Timeline.d.ts +23 -15
- package/dist/components/ui/ToolCallCard.d.ts +3 -10
- package/dist/components/ui/Toolbar.d.ts +0 -1
- package/dist/components/ui/TraceSpanInspector.d.ts +15 -0
- package/dist/components/ui/TraceTree.d.ts +16 -14
- package/dist/components/ui/TrajectoryStep.d.ts +16 -10
- package/dist/components/ui/TrajectoryTimeline.d.ts +5 -11
- package/dist/components/ui/UploadQueue.d.ts +1 -1
- package/dist/components/ui/codeFence.d.ts +5 -0
- package/dist/components/ui/index.d.ts +51 -5
- package/dist/components/ui/linkComponent.d.ts +12 -0
- package/dist/components/ui/mdxTableOfContents.d.ts +13 -0
- package/dist/components/ui/relativeTime.d.ts +1 -1
- package/dist/components/ui/tablistKeyboard.d.ts +6 -0
- package/dist/components/ui/traceFormat.d.ts +5 -0
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/useCopyToClipboard.d.ts +8 -0
- package/dist/hooks/useElementWidth.d.ts +3 -0
- package/dist/hooks/useMediaQuery.d.ts +2 -0
- package/dist/hooks/useMenuPopover.d.ts +27 -0
- package/dist/hooks/usePageHidden.d.ts +2 -0
- package/dist/hooks/useResizable.d.ts +9 -0
- package/dist/index.cjs +13 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +8 -5
- package/dist/index.js +12123 -123
- package/dist/index.js.map +1 -1
- package/dist/layouts/shell/AegisShell.d.ts +1 -1
- package/dist/layouts/shell/AuthRequiredCard.d.ts +2 -2
- package/dist/layouts/shell/TopHeader.d.ts +9 -1
- package/dist/layouts/shell/paths.d.ts +11 -0
- package/dist/layouts/shell/types.d.ts +40 -13
- package/dist/lib/format.d.ts +2 -0
- package/dist/lib/id.d.ts +2 -0
- package/dist/lib/luceneQuery/lucene.d.ts +63 -0
- package/dist/lib/storage.d.ts +12 -0
- package/dist/locale/LocaleProvider.d.ts +9 -0
- package/dist/locale/index.d.ts +4 -0
- package/dist/locale/localeContext.d.ts +2 -0
- package/dist/locale/strings.d.ts +110 -0
- package/dist/locale/useStrings.d.ts +2 -0
- package/dist/mdx-modules.d.ts +22 -0
- package/dist/style.css +1 -1
- package/dist/theme/antdTheme.d.ts +2 -3
- package/dist/vite.cjs +2 -0
- package/dist/vite.cjs.map +1 -0
- package/dist/vite.d.ts +7 -0
- package/dist/vite.js +18 -0
- package/dist/vite.js.map +1 -0
- package/package.json +43 -18
- package/dist/index-6WZzHI2Z.cjs +0 -1151
- package/dist/index-6WZzHI2Z.cjs.map +0 -1
- package/dist/index-CZ_qegBG.js +0 -6736
- package/dist/index-CZ_qegBG.js.map +0 -1
- package/dist/index-DLXAAlfH.cjs +0 -15
- package/dist/index-DLXAAlfH.cjs.map +0 -1
- package/dist/index-DtgBxtmy.js +0 -56284
- package/dist/index-DtgBxtmy.js.map +0 -1
- package/dist/styles/fonts.d.ts +0 -0
- package/dist/workerBundle-D52AeOj1.js +0 -76
- package/dist/workerBundle-D52AeOj1.js.map +0 -1
- package/dist/workerBundle-FGNDqtbW.cjs +0 -73
- 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:
|
|
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
|
|
44
|
-
*
|
|
45
|
-
*
|
|
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
|
|
70
|
-
*
|
|
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
|
|
161
|
-
*
|
|
162
|
-
*
|
|
163
|
-
*
|
|
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
|
|
168
|
-
*
|
|
169
|
-
*
|
|
170
|
-
*
|
|
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
|
}
|
package/dist/lib/id.d.ts
ADDED
|
@@ -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,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,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
|
+
}
|