@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.
- package/README.md +81 -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/AuthLayout.d.ts +1 -1
- package/dist/components/ui/Avatar.d.ts +6 -13
- package/dist/components/ui/BlastRadiusBar.d.ts +6 -13
- package/dist/components/ui/Breadcrumb.d.ts +1 -1
- package/dist/components/ui/BucketCard.d.ts +1 -1
- 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/Chip.d.ts +3 -10
- package/dist/components/ui/CodeBlock.d.ts +8 -14
- package/dist/components/ui/CodeEditor.d.ts +6 -13
- 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 +1 -1
- 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 +27 -11
- 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/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/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/MetadataList.d.ts +0 -1
- package/dist/components/ui/MetricCard.d.ts +7 -14
- package/dist/components/ui/MetricLabel.d.ts +1 -1
- package/dist/components/ui/MonoValue.d.ts +3 -10
- 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 +1 -1
- package/dist/components/ui/PageSizeSelect.d.ts +8 -2
- package/dist/components/ui/Panel.d.ts +3 -10
- package/dist/components/ui/PanelTitle.d.ts +1 -1
- package/dist/components/ui/ParquetViewer.d.ts +8 -15
- package/dist/components/ui/PasswordField.d.ts +1 -1
- package/dist/components/ui/ProjectSelector.d.ts +8 -2
- package/dist/components/ui/QueryAutocomplete.d.ts +0 -1
- package/dist/components/ui/RegisterForm.d.ts +1 -1
- package/dist/components/ui/ResizableSidePanel.d.ts +17 -2
- package/dist/components/ui/SavedQueryBar.d.ts +0 -1
- package/dist/components/ui/SearchInput.d.ts +0 -1
- package/dist/components/ui/SectionDivider.d.ts +1 -1
- 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 +1 -1
- package/dist/components/ui/SparkLine.d.ts +3 -10
- package/dist/components/ui/StatBlock.d.ts +7 -14
- package/dist/components/ui/StatusDot.d.ts +1 -1
- package/dist/components/ui/Tabs.d.ts +1 -1
- 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 +3 -10
- 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 +12 -0
- package/dist/components/ui/TraceTree.d.ts +9 -11
- package/dist/components/ui/TrajectoryStep.d.ts +3 -10
- package/dist/components/ui/TrajectoryTimeline.d.ts +2 -10
- package/dist/components/ui/UploadQueue.d.ts +1 -1
- package/dist/components/ui/index.d.ts +10 -1
- package/dist/components/ui/relativeTime.d.ts +1 -1
- package/dist/components/ui/traceFormat.d.ts +5 -0
- package/dist/hooks/useCopyToClipboard.d.ts +8 -0
- package/dist/hooks/useMenuPopover.d.ts +27 -0
- package/dist/hooks/useResizable.d.ts +9 -0
- package/dist/index.cjs +12 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +4 -3
- package/dist/index.js +9848 -124
- 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 +5 -1
- package/dist/layouts/shell/paths.d.ts +8 -0
- package/dist/layouts/shell/types.d.ts +21 -13
- package/dist/lib/format.d.ts +2 -0
- package/dist/lib/id.d.ts +2 -0
- package/dist/lib/storage.d.ts +12 -0
- package/dist/style.css +1 -1
- package/dist/theme/antdTheme.d.ts +2 -3
- package/package.json +24 -17
- 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, 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
|
}
|
|
@@ -28,6 +28,10 @@ interface TopHeaderProps {
|
|
|
28
28
|
inlineSlotRef?: (node: HTMLDivElement | null) => void;
|
|
29
29
|
/** When true, hide the global `headerCenter` (an app header took it over). */
|
|
30
30
|
inlineSlotActive?: boolean;
|
|
31
|
+
/** Current agent panel state — drives aria-pressed on its toggle. */
|
|
32
|
+
agentPanelOpen?: boolean;
|
|
33
|
+
/** Fired by the agent panel toggle; the toggle renders only when set. */
|
|
34
|
+
onAgentPanelToggle?: () => void;
|
|
31
35
|
}
|
|
32
|
-
export declare function TopHeader({ brand, apps, activeAppId, onAppSwitch, user, headerCenter, headerActions, inboxPath, onMobileMenuToggle, showMobileMenu, sidebarCollapsible, sidebarCollapsed, onSidebarToggle, inlineSlotRef, inlineSlotActive, }: TopHeaderProps): ReactElement;
|
|
36
|
+
export declare function TopHeader({ brand, apps, activeAppId, onAppSwitch, user, headerCenter, headerActions, inboxPath, onMobileMenuToggle, showMobileMenu, sidebarCollapsible, sidebarCollapsed, onSidebarToggle, inlineSlotRef, inlineSlotActive, agentPanelOpen, onAgentPanelToggle, }: TopHeaderProps): ReactElement;
|
|
33
37
|
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
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).
|
|
7
|
+
*/
|
|
8
|
+
export declare function joinPath(basePath: string, rel: string): string;
|
|
@@ -40,9 +40,10 @@ export interface AegisApp {
|
|
|
40
40
|
/** Optional inner sidebar shown when this app is active. */
|
|
41
41
|
sidebar?: AegisAppNavGroup[];
|
|
42
42
|
/**
|
|
43
|
-
* Optional
|
|
44
|
-
*
|
|
45
|
-
*
|
|
43
|
+
* Optional app header rendered in the centre of the shell's sticky top
|
|
44
|
+
* header, in place of `headerCenter`. Use for app-scoped toolbars, tab
|
|
45
|
+
* nav, a project switcher, etc. At ≤768 px it wraps onto its own
|
|
46
|
+
* full-width row under the brand and actions.
|
|
46
47
|
*
|
|
47
48
|
* Rendered inside `wrap`, so it can read from the app's Context.
|
|
48
49
|
*/
|
|
@@ -66,8 +67,12 @@ export interface AegisApp {
|
|
|
66
67
|
*/
|
|
67
68
|
hidden?: boolean;
|
|
68
69
|
/**
|
|
69
|
-
* Commands
|
|
70
|
-
*
|
|
70
|
+
* Commands this app contributes to the <CommandProvider/> registry.
|
|
71
|
+
* AegisShell registers them for every app the current user can see,
|
|
72
|
+
* with `scope` overwritten to this app's id: the palette and keyboard
|
|
73
|
+
* shortcuts surface them only while this app is active, agents see
|
|
74
|
+
* them all via `allCommands`. Register app-independent commands with
|
|
75
|
+
* `useRegisterCommands` above the shell instead.
|
|
71
76
|
*/
|
|
72
77
|
commands?: Command[];
|
|
73
78
|
/**
|
|
@@ -157,17 +162,20 @@ export interface AegisShellProps {
|
|
|
157
162
|
/** Fired when the user navigates between apps. */
|
|
158
163
|
onAppSwitch?: (appId: string) => void;
|
|
159
164
|
/**
|
|
160
|
-
* When true, AegisShell mounts <CommandPalette
|
|
161
|
-
*
|
|
162
|
-
*
|
|
163
|
-
*
|
|
165
|
+
* When true, AegisShell mounts <CommandPalette/>, opened and closed by
|
|
166
|
+
* the provider's mod+k (⌘K / Ctrl+K) binding. It lists the active app's
|
|
167
|
+
* commands plus unscoped ones. Requires <CommandProvider/> above the
|
|
168
|
+
* shell; without one the palette is not mounted and a warning is logged.
|
|
169
|
+
* Don't also render <CommandPalette/> yourself.
|
|
164
170
|
*/
|
|
165
171
|
enableCommandPalette?: boolean;
|
|
166
172
|
/**
|
|
167
|
-
* When provided, AegisShell renders the node
|
|
168
|
-
*
|
|
169
|
-
*
|
|
170
|
-
*
|
|
173
|
+
* When provided, AegisShell renders the node (typically <AgentPanel/>
|
|
174
|
+
* filled from useAgent()) as a right-side column while the agent
|
|
175
|
+
* context's `panelOpen` is true — at ≤768 px as an overlay below the
|
|
176
|
+
* header. A header toggle flips it through `setPanelOpen`. Requires
|
|
177
|
+
* <AgentProvider/> above the shell; without one nothing renders and a
|
|
178
|
+
* warning is logged.
|
|
171
179
|
*/
|
|
172
180
|
agentPanel?: ReactNode;
|
|
173
181
|
}
|
package/dist/lib/id.d.ts
ADDED
|
@@ -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;
|