@lincyaw/aegis-ui 0.9.4 → 0.11.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/dist/agent/ask/AskOverlay.cjs +3 -1
- package/dist/agent/ask/AskOverlay.cjs.map +1 -1
- package/dist/agent/ask/AskOverlay.d.ts +17 -1
- package/dist/agent/ask/AskOverlay.js +115 -58
- package/dist/agent/ask/AskOverlay.js.map +1 -1
- package/dist/agent/ask/AskPanel.cjs +1 -1
- package/dist/agent/ask/AskPanel.cjs.map +1 -1
- package/dist/agent/ask/AskPanel.d.ts +18 -3
- package/dist/agent/ask/AskPanel.js +147 -119
- package/dist/agent/ask/AskPanel.js.map +1 -1
- package/dist/agent/chat/chat.cjs +1 -1
- package/dist/agent/chat/chat.cjs.map +1 -1
- package/dist/agent/chat/chat.d.ts +1 -1
- package/dist/agent/chat/chat.js +3 -5
- package/dist/agent/chat/chat.js.map +1 -1
- package/dist/agent/chat/useAgentChat.cjs +1 -1
- package/dist/agent/chat/useAgentChat.cjs.map +1 -1
- package/dist/agent/chat/useAgentChat.d.ts +2 -0
- package/dist/agent/chat/useAgentChat.js +8 -4
- package/dist/agent/chat/useAgentChat.js.map +1 -1
- package/dist/agent/core/AegisRuntimeProvider.cjs.map +1 -1
- package/dist/agent/core/AegisRuntimeProvider.d.ts +2 -2
- package/dist/agent/core/AegisRuntimeProvider.js.map +1 -1
- package/dist/agent/core/hooks.cjs +1 -1
- package/dist/agent/core/hooks.cjs.map +1 -1
- package/dist/agent/core/hooks.js +21 -20
- package/dist/agent/core/hooks.js.map +1 -1
- package/dist/agent/core/runtime.cjs +1 -1
- package/dist/agent/core/runtime.cjs.map +1 -1
- package/dist/agent/core/runtime.d.ts +28 -9
- package/dist/agent/core/runtime.js +435 -268
- package/dist/agent/core/runtime.js.map +1 -1
- package/dist/agent/core/types.d.ts +65 -10
- package/dist/agent/index.d.ts +4 -3
- package/dist/commands/CommandProvider.cjs +1 -1
- package/dist/commands/CommandProvider.cjs.map +1 -1
- package/dist/commands/CommandProvider.js +33 -37
- package/dist/commands/CommandProvider.js.map +1 -1
- package/dist/commands/commandContext.cjs +1 -1
- package/dist/commands/commandContext.cjs.map +1 -1
- package/dist/commands/commandContext.d.ts +6 -6
- package/dist/commands/commandContext.js +3 -17
- package/dist/commands/commandContext.js.map +1 -1
- package/dist/commands/index.d.ts +1 -1
- package/dist/commands/useCommands.cjs +1 -1
- package/dist/commands/useCommands.cjs.map +1 -1
- package/dist/commands/useCommands.d.ts +4 -2
- package/dist/commands/useCommands.js +21 -5
- package/dist/commands/useCommands.js.map +1 -1
- package/dist/commands/useRegisterCommands.cjs +2 -1
- package/dist/commands/useRegisterCommands.cjs.map +1 -1
- package/dist/commands/useRegisterCommands.d.ts +3 -2
- package/dist/commands/useRegisterCommands.js +35 -8
- package/dist/commands/useRegisterCommands.js.map +1 -1
- package/dist/components/ui/AgentPanel.cjs +1 -1
- package/dist/components/ui/AgentPanel.cjs.map +1 -1
- package/dist/components/ui/AgentPanel.js +15 -14
- package/dist/components/ui/AgentPanel.js.map +1 -1
- package/dist/components/ui/Alert.cjs +1 -1
- package/dist/components/ui/Alert.cjs.map +1 -1
- package/dist/components/ui/Alert.js +11 -11
- package/dist/components/ui/Alert.js.map +1 -1
- package/dist/components/ui/Avatar.cjs +1 -1
- package/dist/components/ui/Avatar.cjs.map +1 -1
- package/dist/components/ui/Avatar.js +21 -19
- package/dist/components/ui/Avatar.js.map +1 -1
- package/dist/components/ui/BlastRadiusBar.cjs +1 -1
- package/dist/components/ui/BlastRadiusBar.cjs.map +1 -1
- package/dist/components/ui/BlastRadiusBar.d.ts +16 -2
- package/dist/components/ui/BlastRadiusBar.js +27 -20
- package/dist/components/ui/BlastRadiusBar.js.map +1 -1
- package/dist/components/ui/Button.cjs.map +1 -1
- package/dist/components/ui/Button.d.ts +1 -1
- package/dist/components/ui/Button.js.map +1 -1
- package/dist/components/ui/ChatComposer.cjs +1 -1
- package/dist/components/ui/ChatComposer.cjs.map +1 -1
- package/dist/components/ui/ChatComposer.js +30 -29
- package/dist/components/ui/ChatComposer.js.map +1 -1
- package/dist/components/ui/ChatSessionList.cjs +1 -1
- package/dist/components/ui/ChatSessionList.cjs.map +1 -1
- package/dist/components/ui/ChatSessionList.js +136 -157
- package/dist/components/ui/ChatSessionList.js.map +1 -1
- package/dist/components/ui/Checkbox.cjs +1 -1
- package/dist/components/ui/Checkbox.cjs.map +1 -1
- package/dist/components/ui/Checkbox.d.ts +7 -1
- package/dist/components/ui/Checkbox.js +26 -20
- package/dist/components/ui/Checkbox.js.map +1 -1
- package/dist/components/ui/Chip.cjs +1 -1
- package/dist/components/ui/Chip.cjs.map +1 -1
- package/dist/components/ui/Chip.d.ts +6 -1
- package/dist/components/ui/Chip.js +20 -18
- package/dist/components/ui/Chip.js.map +1 -1
- package/dist/components/ui/ChoiceCardGroup.cjs +2 -0
- package/dist/components/ui/ChoiceCardGroup.cjs.map +1 -0
- package/dist/components/ui/ChoiceCardGroup.d.ts +34 -0
- package/dist/components/ui/ChoiceCardGroup.js +56 -0
- package/dist/components/ui/ChoiceCardGroup.js.map +1 -0
- package/dist/components/ui/CodeBlock.cjs +2 -2
- package/dist/components/ui/CodeBlock.cjs.map +1 -1
- package/dist/components/ui/CodeBlock.js +31 -27
- package/dist/components/ui/CodeBlock.js.map +1 -1
- package/dist/components/ui/CodeEditor.cjs +1 -1
- package/dist/components/ui/CodeEditor.cjs.map +1 -1
- package/dist/components/ui/CodeEditor.d.ts +15 -4
- package/dist/components/ui/CodeEditor.js +243 -70
- package/dist/components/ui/CodeEditor.js.map +1 -1
- package/dist/components/ui/Collapse.cjs +1 -1
- package/dist/components/ui/Collapse.cjs.map +1 -1
- package/dist/components/ui/Collapse.js +23 -23
- package/dist/components/ui/Collapse.js.map +1 -1
- package/dist/components/ui/ColumnChart.cjs +1 -1
- package/dist/components/ui/ColumnChart.cjs.map +1 -1
- package/dist/components/ui/ColumnChart.js +21 -20
- package/dist/components/ui/ColumnChart.js.map +1 -1
- package/dist/components/ui/CommandInvocationCard.cjs +1 -1
- package/dist/components/ui/CommandInvocationCard.cjs.map +1 -1
- package/dist/components/ui/CommandInvocationCard.js +28 -31
- package/dist/components/ui/CommandInvocationCard.js.map +1 -1
- package/dist/components/ui/CommandPalette.cjs +1 -1
- package/dist/components/ui/CommandPalette.cjs.map +1 -1
- package/dist/components/ui/CommandPalette.d.ts +23 -1
- package/dist/components/ui/CommandPalette.js +146 -121
- package/dist/components/ui/CommandPalette.js.map +1 -1
- package/dist/components/ui/CommitGraph.cjs +2 -0
- package/dist/components/ui/CommitGraph.cjs.map +1 -0
- package/dist/components/ui/CommitGraph.d.ts +79 -0
- package/dist/components/ui/CommitGraph.js +383 -0
- package/dist/components/ui/CommitGraph.js.map +1 -0
- package/dist/components/ui/ContentInspectorDialog.cjs +1 -3
- package/dist/components/ui/ContentInspectorDialog.cjs.map +1 -1
- package/dist/components/ui/ContentInspectorDialog.d.ts +4 -10
- package/dist/components/ui/ContentInspectorDialog.js +42 -201
- package/dist/components/ui/ContentInspectorDialog.js.map +1 -1
- package/dist/components/ui/ContentPreview.cjs +3 -0
- package/dist/components/ui/ContentPreview.cjs.map +1 -0
- package/dist/components/ui/ContentPreview.d.ts +13 -0
- package/dist/components/ui/ContentPreview.js +133 -0
- package/dist/components/ui/ContentPreview.js.map +1 -0
- package/dist/components/ui/CopyGlyph.cjs +2 -0
- package/dist/components/ui/CopyGlyph.cjs.map +1 -0
- package/dist/components/ui/CopyGlyph.d.ts +7 -0
- package/dist/components/ui/CopyGlyph.js +48 -0
- package/dist/components/ui/CopyGlyph.js.map +1 -0
- package/dist/components/ui/DangerZone.cjs +1 -1
- package/dist/components/ui/DangerZone.cjs.map +1 -1
- package/dist/components/ui/DangerZone.js +13 -12
- package/dist/components/ui/DangerZone.js.map +1 -1
- package/dist/components/ui/DataList.cjs +1 -1
- package/dist/components/ui/DataList.cjs.map +1 -1
- package/dist/components/ui/DataList.d.ts +7 -1
- package/dist/components/ui/DataList.js +89 -33
- package/dist/components/ui/DataList.js.map +1 -1
- package/dist/components/ui/DataTable.cjs +1 -1
- package/dist/components/ui/DataTable.cjs.map +1 -1
- package/dist/components/ui/DataTable.d.ts +22 -18
- package/dist/components/ui/DataTable.js +279 -341
- package/dist/components/ui/DataTable.js.map +1 -1
- package/dist/components/ui/DropdownMenu.cjs +1 -1
- package/dist/components/ui/DropdownMenu.cjs.map +1 -1
- package/dist/components/ui/DropdownMenu.d.ts +8 -1
- package/dist/components/ui/DropdownMenu.js +63 -46
- package/dist/components/ui/DropdownMenu.js.map +1 -1
- package/dist/components/ui/EnvironmentSwitcher.cjs +1 -1
- package/dist/components/ui/EnvironmentSwitcher.cjs.map +1 -1
- package/dist/components/ui/EnvironmentSwitcher.js +26 -24
- package/dist/components/ui/EnvironmentSwitcher.js.map +1 -1
- package/dist/components/ui/ErrorState.cjs +1 -1
- package/dist/components/ui/ErrorState.cjs.map +1 -1
- package/dist/components/ui/ErrorState.d.ts +1 -0
- package/dist/components/ui/ErrorState.js +1 -1
- package/dist/components/ui/ErrorState.js.map +1 -1
- package/dist/components/ui/EventTable.cjs +1 -1
- package/dist/components/ui/EventTable.cjs.map +1 -1
- package/dist/components/ui/EventTable.d.ts +16 -2
- package/dist/components/ui/EventTable.js +198 -165
- package/dist/components/ui/EventTable.js.map +1 -1
- package/dist/components/ui/FileDropzone.cjs +1 -1
- package/dist/components/ui/FileDropzone.cjs.map +1 -1
- package/dist/components/ui/FileDropzone.d.ts +3 -21
- package/dist/components/ui/FileDropzone.js +42 -67
- package/dist/components/ui/FileDropzone.js.map +1 -1
- package/dist/components/ui/FilePreview.cjs +1 -1
- package/dist/components/ui/FilePreview.cjs.map +1 -1
- package/dist/components/ui/FilePreview.d.ts +4 -1
- package/dist/components/ui/FilePreview.js +62 -60
- package/dist/components/ui/FilePreview.js.map +1 -1
- package/dist/components/ui/FileTree.cjs +1 -1
- package/dist/components/ui/FileTree.cjs.map +1 -1
- package/dist/components/ui/FileTree.d.ts +18 -2
- package/dist/components/ui/FileTree.js +141 -110
- package/dist/components/ui/FileTree.js.map +1 -1
- package/dist/components/ui/FolderDropzone.cjs +1 -1
- package/dist/components/ui/FolderDropzone.cjs.map +1 -1
- package/dist/components/ui/FolderDropzone.d.ts +10 -1
- package/dist/components/ui/FolderDropzone.js +140 -130
- package/dist/components/ui/FolderDropzone.js.map +1 -1
- package/dist/components/ui/ForgotPasswordForm.cjs +1 -1
- package/dist/components/ui/ForgotPasswordForm.cjs.map +1 -1
- package/dist/components/ui/ForgotPasswordForm.d.ts +1 -0
- package/dist/components/ui/ForgotPasswordForm.js +23 -20
- package/dist/components/ui/ForgotPasswordForm.js.map +1 -1
- package/dist/components/ui/FormRow.cjs +1 -1
- package/dist/components/ui/FormRow.cjs.map +1 -1
- package/dist/components/ui/FormRow.d.ts +32 -2
- package/dist/components/ui/FormRow.js +33 -13
- package/dist/components/ui/FormRow.js.map +1 -1
- package/dist/components/ui/HeadlineStat.cjs +1 -1
- package/dist/components/ui/HeadlineStat.cjs.map +1 -1
- package/dist/components/ui/HeadlineStat.js +6 -5
- package/dist/components/ui/HeadlineStat.js.map +1 -1
- package/dist/components/ui/InboxPage.cjs +1 -1
- package/dist/components/ui/InboxPage.cjs.map +1 -1
- package/dist/components/ui/InboxPage.d.ts +25 -2
- package/dist/components/ui/InboxPage.js +93 -77
- package/dist/components/ui/InboxPage.js.map +1 -1
- package/dist/components/ui/KeyValueList.cjs +1 -1
- package/dist/components/ui/KeyValueList.cjs.map +1 -1
- package/dist/components/ui/KeyValueList.d.ts +6 -5
- package/dist/components/ui/KeyValueList.js +14 -17
- package/dist/components/ui/KeyValueList.js.map +1 -1
- package/dist/components/ui/LoginForm.cjs +1 -1
- package/dist/components/ui/LoginForm.cjs.map +1 -1
- package/dist/components/ui/LoginForm.d.ts +1 -0
- package/dist/components/ui/LoginForm.js +63 -55
- package/dist/components/ui/LoginForm.js.map +1 -1
- package/dist/components/ui/Markdown.cjs +1 -1
- package/dist/components/ui/Markdown.cjs.map +1 -1
- package/dist/components/ui/Markdown.d.ts +3 -2
- package/dist/components/ui/Markdown.js +57 -49
- package/dist/components/ui/Markdown.js.map +1 -1
- package/dist/components/ui/MdxDocument.cjs +1 -1
- package/dist/components/ui/MdxDocument.cjs.map +1 -1
- package/dist/components/ui/MdxDocument.d.ts +7 -2
- package/dist/components/ui/MdxDocument.js +34 -49
- package/dist/components/ui/MdxDocument.js.map +1 -1
- package/dist/components/ui/MetadataList.cjs +1 -1
- package/dist/components/ui/MetadataList.cjs.map +1 -1
- package/dist/components/ui/MetadataList.d.ts +7 -1
- package/dist/components/ui/MetadataList.js +29 -20
- package/dist/components/ui/MetadataList.js.map +1 -1
- package/dist/components/ui/MetricCard.cjs +1 -1
- package/dist/components/ui/MetricCard.cjs.map +1 -1
- package/dist/components/ui/MetricCard.js +16 -16
- package/dist/components/ui/MetricCard.js.map +1 -1
- package/dist/components/ui/MonoValue.cjs +1 -1
- package/dist/components/ui/MonoValue.cjs.map +1 -1
- package/dist/components/ui/MonoValue.d.ts +12 -1
- package/dist/components/ui/MonoValue.js +19 -17
- package/dist/components/ui/MonoValue.js.map +1 -1
- package/dist/components/ui/NotificationBell.cjs +1 -1
- package/dist/components/ui/NotificationBell.cjs.map +1 -1
- package/dist/components/ui/NotificationBell.d.ts +31 -3
- package/dist/components/ui/NotificationBell.js +127 -71
- package/dist/components/ui/NotificationBell.js.map +1 -1
- package/dist/components/ui/NumberField.cjs +2 -0
- package/dist/components/ui/NumberField.cjs.map +1 -0
- package/dist/components/ui/NumberField.d.ts +34 -0
- package/dist/components/ui/NumberField.js +80 -0
- package/dist/components/ui/NumberField.js.map +1 -0
- package/dist/components/ui/ObjectBrowser.cjs +1 -1
- package/dist/components/ui/ObjectBrowser.cjs.map +1 -1
- package/dist/components/ui/ObjectBrowser.js +107 -94
- package/dist/components/ui/ObjectBrowser.js.map +1 -1
- package/dist/components/ui/ObjectInspector.cjs +1 -1
- package/dist/components/ui/ObjectInspector.cjs.map +1 -1
- package/dist/components/ui/ObjectInspector.d.ts +5 -0
- package/dist/components/ui/ObjectInspector.js +61 -69
- package/dist/components/ui/ObjectInspector.js.map +1 -1
- package/dist/components/ui/PageSizeSelect.cjs +1 -1
- package/dist/components/ui/PageSizeSelect.cjs.map +1 -1
- package/dist/components/ui/PageSizeSelect.d.ts +3 -4
- package/dist/components/ui/PageSizeSelect.js +30 -29
- package/dist/components/ui/PageSizeSelect.js.map +1 -1
- package/dist/components/ui/Pagination.cjs +1 -1
- package/dist/components/ui/Pagination.cjs.map +1 -1
- package/dist/components/ui/Pagination.d.ts +16 -6
- package/dist/components/ui/Pagination.js +58 -45
- package/dist/components/ui/Pagination.js.map +1 -1
- package/dist/components/ui/Panel.cjs +1 -1
- package/dist/components/ui/Panel.cjs.map +1 -1
- package/dist/components/ui/Panel.d.ts +17 -4
- package/dist/components/ui/Panel.js +53 -40
- package/dist/components/ui/Panel.js.map +1 -1
- package/dist/components/ui/ParquetViewer.cjs +1 -1
- package/dist/components/ui/ParquetViewer.cjs.map +1 -1
- package/dist/components/ui/ParquetViewer.d.ts +1 -1
- package/dist/components/ui/ParquetViewer.js +121 -120
- package/dist/components/ui/ParquetViewer.js.map +1 -1
- package/dist/components/ui/PasswordField.cjs +1 -1
- package/dist/components/ui/PasswordField.cjs.map +1 -1
- package/dist/components/ui/PasswordField.js +28 -27
- package/dist/components/ui/PasswordField.js.map +1 -1
- package/dist/components/ui/PickerField.cjs +1 -1
- package/dist/components/ui/PickerField.cjs.map +1 -1
- package/dist/components/ui/PickerField.d.ts +25 -6
- package/dist/components/ui/PickerField.js +20 -17
- package/dist/components/ui/PickerField.js.map +1 -1
- package/dist/components/ui/ProjectSelector.cjs +1 -1
- package/dist/components/ui/ProjectSelector.cjs.map +1 -1
- package/dist/components/ui/ProjectSelector.js +39 -36
- package/dist/components/ui/ProjectSelector.js.map +1 -1
- package/dist/components/ui/QueryAutocomplete.cjs +1 -1
- package/dist/components/ui/QueryAutocomplete.cjs.map +1 -1
- package/dist/components/ui/QueryAutocomplete.d.ts +7 -1
- package/dist/components/ui/QueryAutocomplete.js +150 -127
- package/dist/components/ui/QueryAutocomplete.js.map +1 -1
- package/dist/components/ui/RegisterForm.cjs +1 -1
- package/dist/components/ui/RegisterForm.cjs.map +1 -1
- package/dist/components/ui/RegisterForm.d.ts +1 -0
- package/dist/components/ui/RegisterForm.js +52 -43
- package/dist/components/ui/RegisterForm.js.map +1 -1
- package/dist/components/ui/ResizableSidePanel.cjs +1 -1
- package/dist/components/ui/ResizableSidePanel.cjs.map +1 -1
- package/dist/components/ui/ResizableSidePanel.js +41 -40
- package/dist/components/ui/ResizableSidePanel.js.map +1 -1
- package/dist/components/ui/RollingValue.cjs +2 -0
- package/dist/components/ui/RollingValue.cjs.map +1 -0
- package/dist/components/ui/RollingValue.d.ts +14 -0
- package/dist/components/ui/RollingValue.js +39 -0
- package/dist/components/ui/RollingValue.js.map +1 -0
- package/dist/components/ui/SavedQueryBar.cjs +1 -1
- package/dist/components/ui/SavedQueryBar.cjs.map +1 -1
- package/dist/components/ui/SavedQueryBar.d.ts +9 -3
- package/dist/components/ui/SavedQueryBar.js +390 -291
- package/dist/components/ui/SavedQueryBar.js.map +1 -1
- package/dist/components/ui/ScrollStory.cjs +1 -2
- package/dist/components/ui/ScrollStory.cjs.map +1 -1
- package/dist/components/ui/ScrollStory.js +57 -75
- package/dist/components/ui/ScrollStory.js.map +1 -1
- package/dist/components/ui/SearchInput.cjs +1 -1
- package/dist/components/ui/SearchInput.cjs.map +1 -1
- package/dist/components/ui/SearchInput.d.ts +5 -1
- package/dist/components/ui/SearchInput.js +28 -24
- package/dist/components/ui/SearchInput.js.map +1 -1
- package/dist/components/ui/Select.cjs +1 -1
- package/dist/components/ui/Select.cjs.map +1 -1
- package/dist/components/ui/Select.d.ts +4 -2
- package/dist/components/ui/Select.js +34 -31
- package/dist/components/ui/Select.js.map +1 -1
- package/dist/components/ui/ServiceMap.cjs +1 -1
- package/dist/components/ui/ServiceMap.cjs.map +1 -1
- package/dist/components/ui/ServiceMap.d.ts +57 -2
- package/dist/components/ui/ServiceMap.js +374 -117
- package/dist/components/ui/ServiceMap.js.map +1 -1
- package/dist/components/ui/ShareLinkDialog.cjs +1 -1
- package/dist/components/ui/ShareLinkDialog.cjs.map +1 -1
- package/dist/components/ui/ShareLinkDialog.d.ts +5 -3
- package/dist/components/ui/ShareLinkDialog.js +107 -98
- package/dist/components/ui/ShareLinkDialog.js.map +1 -1
- package/dist/components/ui/Slider.cjs +2 -0
- package/dist/components/ui/Slider.cjs.map +1 -0
- package/dist/components/ui/Slider.d.ts +24 -0
- package/dist/components/ui/Slider.js +55 -0
- package/dist/components/ui/Slider.js.map +1 -0
- package/dist/components/ui/SparkLine.cjs +1 -1
- package/dist/components/ui/SparkLine.cjs.map +1 -1
- package/dist/components/ui/SparkLine.d.ts +4 -1
- package/dist/components/ui/SparkLine.js +29 -23
- package/dist/components/ui/SparkLine.js.map +1 -1
- package/dist/components/ui/StatBlock.cjs +1 -1
- package/dist/components/ui/StatBlock.cjs.map +1 -1
- package/dist/components/ui/StatBlock.js +17 -16
- package/dist/components/ui/StatBlock.js.map +1 -1
- package/dist/components/ui/StatusDot.cjs.map +1 -1
- package/dist/components/ui/StatusDot.d.ts +5 -1
- package/dist/components/ui/StatusDot.js.map +1 -1
- package/dist/components/ui/Steps.cjs +2 -0
- package/dist/components/ui/Steps.cjs.map +1 -0
- package/dist/components/ui/Steps.d.ts +19 -0
- package/dist/components/ui/Steps.js +53 -0
- package/dist/components/ui/Steps.js.map +1 -0
- package/dist/components/ui/TableOfContents.cjs +1 -1
- package/dist/components/ui/TableOfContents.cjs.map +1 -1
- package/dist/components/ui/TableOfContents.d.ts +3 -3
- package/dist/components/ui/TableOfContents.js +47 -28
- package/dist/components/ui/TableOfContents.js.map +1 -1
- package/dist/components/ui/Tabs.cjs +2 -2
- package/dist/components/ui/Tabs.cjs.map +1 -1
- package/dist/components/ui/Tabs.d.ts +37 -3
- package/dist/components/ui/Tabs.js +169 -109
- package/dist/components/ui/Tabs.js.map +1 -1
- package/dist/components/ui/Terminal.cjs +1 -1
- package/dist/components/ui/Terminal.cjs.map +1 -1
- package/dist/components/ui/Terminal.js +18 -17
- package/dist/components/ui/Terminal.js.map +1 -1
- package/dist/components/ui/TextField.cjs +1 -1
- package/dist/components/ui/TextField.cjs.map +1 -1
- package/dist/components/ui/TextField.js +19 -18
- package/dist/components/ui/TextField.js.map +1 -1
- package/dist/components/ui/ThemeToggle.cjs +1 -1
- package/dist/components/ui/ThemeToggle.cjs.map +1 -1
- package/dist/components/ui/ThemeToggle.js +15 -18
- package/dist/components/ui/ThemeToggle.js.map +1 -1
- package/dist/components/ui/TimeDisplay.cjs +1 -1
- package/dist/components/ui/TimeDisplay.cjs.map +1 -1
- package/dist/components/ui/TimeDisplay.d.ts +14 -4
- package/dist/components/ui/TimeDisplay.js +43 -44
- package/dist/components/ui/TimeDisplay.js.map +1 -1
- package/dist/components/ui/TimeRangePicker.cjs +1 -1
- package/dist/components/ui/TimeRangePicker.cjs.map +1 -1
- package/dist/components/ui/TimeRangePicker.js +128 -111
- package/dist/components/ui/TimeRangePicker.js.map +1 -1
- package/dist/components/ui/TimelineChart.cjs +2 -1
- package/dist/components/ui/TimelineChart.cjs.map +1 -1
- package/dist/components/ui/TimelineChart.d.ts +1 -0
- package/dist/components/ui/TimelineChart.js +221 -169
- package/dist/components/ui/TimelineChart.js.map +1 -1
- package/dist/components/ui/ToolCallCard.cjs +1 -1
- package/dist/components/ui/ToolCallCard.cjs.map +1 -1
- package/dist/components/ui/ToolCallCard.js +22 -22
- package/dist/components/ui/ToolCallCard.js.map +1 -1
- package/dist/components/ui/Toolbar.cjs +1 -1
- package/dist/components/ui/Toolbar.cjs.map +1 -1
- package/dist/components/ui/Toolbar.d.ts +4 -16
- package/dist/components/ui/Toolbar.js +8 -62
- package/dist/components/ui/Toolbar.js.map +1 -1
- package/dist/components/ui/TraceSpanInspector.cjs +1 -1
- package/dist/components/ui/TraceSpanInspector.cjs.map +1 -1
- package/dist/components/ui/TraceSpanInspector.js +94 -76
- package/dist/components/ui/TraceSpanInspector.js.map +1 -1
- package/dist/components/ui/TraceTree.cjs +1 -1
- package/dist/components/ui/TraceTree.cjs.map +1 -1
- package/dist/components/ui/TraceTree.d.ts +36 -2
- package/dist/components/ui/TraceTree.js +278 -170
- package/dist/components/ui/TraceTree.js.map +1 -1
- package/dist/components/ui/TrajectoryStep.cjs +1 -1
- package/dist/components/ui/TrajectoryStep.cjs.map +1 -1
- package/dist/components/ui/TrajectoryStep.js +39 -43
- package/dist/components/ui/TrajectoryStep.js.map +1 -1
- package/dist/components/ui/TrajectoryTimeline.cjs +1 -1
- package/dist/components/ui/TrajectoryTimeline.cjs.map +1 -1
- package/dist/components/ui/TrajectoryTimeline.js +31 -28
- package/dist/components/ui/TrajectoryTimeline.js.map +1 -1
- package/dist/components/ui/UploadQueue.cjs +1 -1
- package/dist/components/ui/UploadQueue.cjs.map +1 -1
- package/dist/components/ui/UploadQueue.d.ts +18 -2
- package/dist/components/ui/UploadQueue.js +53 -71
- package/dist/components/ui/UploadQueue.js.map +1 -1
- package/dist/components/ui/authValidation.cjs +2 -0
- package/dist/components/ui/authValidation.cjs.map +1 -0
- package/dist/components/ui/authValidation.d.ts +3 -0
- package/dist/components/ui/authValidation.js +8 -0
- package/dist/components/ui/authValidation.js.map +1 -0
- package/dist/components/ui/classifyContent.cjs +6 -0
- package/dist/components/ui/classifyContent.cjs.map +1 -0
- package/dist/components/ui/classifyContent.d.ts +40 -0
- package/dist/components/ui/classifyContent.js +167 -0
- package/dist/components/ui/classifyContent.js.map +1 -0
- package/dist/components/ui/dropFiles.cjs +2 -0
- package/dist/components/ui/dropFiles.cjs.map +1 -0
- package/dist/components/ui/dropFiles.d.ts +7 -0
- package/dist/components/ui/dropFiles.js +16 -0
- package/dist/components/ui/dropFiles.js.map +1 -0
- package/dist/components/ui/index.d.ts +23 -10
- package/dist/components/ui/linkComponent.cjs +1 -1
- package/dist/components/ui/linkComponent.cjs.map +1 -1
- package/dist/components/ui/linkComponent.d.ts +4 -2
- package/dist/components/ui/linkComponent.js +15 -5
- package/dist/components/ui/linkComponent.js.map +1 -1
- package/dist/components/ui/markdownDocument.cjs +2 -0
- package/dist/components/ui/markdownDocument.cjs.map +1 -0
- package/dist/components/ui/markdownDocument.d.ts +40 -0
- package/dist/components/ui/markdownDocument.js +39 -0
- package/dist/components/ui/markdownDocument.js.map +1 -0
- package/dist/components/ui/relativeTime.cjs +1 -1
- package/dist/components/ui/relativeTime.cjs.map +1 -1
- package/dist/components/ui/relativeTime.d.ts +5 -3
- package/dist/components/ui/relativeTime.js +15 -6
- package/dist/components/ui/relativeTime.js.map +1 -1
- package/dist/components/ui/traceStatus.cjs +2 -0
- package/dist/components/ui/traceStatus.cjs.map +1 -0
- package/dist/components/ui/{traceFormat.d.ts → traceStatus.d.ts} +0 -1
- package/dist/components/ui/traceStatus.js +7 -0
- package/dist/components/ui/traceStatus.js.map +1 -0
- package/dist/components/ui/useColumnWidths.cjs +2 -0
- package/dist/components/ui/useColumnWidths.cjs.map +1 -0
- package/dist/components/ui/useColumnWidths.d.ts +60 -0
- package/dist/components/ui/useColumnWidths.js +196 -0
- package/dist/components/ui/useColumnWidths.js.map +1 -0
- package/dist/hooks/popoverOverflow.cjs +2 -0
- package/dist/hooks/popoverOverflow.cjs.map +1 -0
- package/dist/hooks/popoverOverflow.d.ts +8 -0
- package/dist/hooks/popoverOverflow.js +9 -0
- package/dist/hooks/popoverOverflow.js.map +1 -0
- package/dist/hooks/useDevelopAfterLoad.cjs +2 -0
- package/dist/hooks/useDevelopAfterLoad.cjs.map +1 -0
- package/dist/hooks/useDevelopAfterLoad.d.ts +8 -0
- package/dist/hooks/useDevelopAfterLoad.js +9 -0
- package/dist/hooks/useDevelopAfterLoad.js.map +1 -0
- package/dist/hooks/useDialogPopover.cjs +2 -0
- package/dist/hooks/useDialogPopover.cjs.map +1 -0
- package/dist/hooks/useDialogPopover.d.ts +23 -0
- package/dist/hooks/useDialogPopover.js +48 -0
- package/dist/hooks/useDialogPopover.js.map +1 -0
- package/dist/hooks/useMenuPopover.cjs +1 -1
- package/dist/hooks/useMenuPopover.cjs.map +1 -1
- package/dist/hooks/useMenuPopover.d.ts +0 -8
- package/dist/hooks/useMenuPopover.js +17 -22
- package/dist/hooks/useMenuPopover.js.map +1 -1
- package/dist/hooks/useResizable.cjs +1 -1
- package/dist/hooks/useResizable.cjs.map +1 -1
- package/dist/hooks/useResizable.js +87 -78
- package/dist/hooks/useResizable.js.map +1 -1
- package/dist/hooks/useSavedQueries.cjs +1 -1
- package/dist/hooks/useSavedQueries.cjs.map +1 -1
- package/dist/hooks/useSavedQueries.d.ts +6 -0
- package/dist/hooks/useSavedQueries.js +52 -60
- package/dist/hooks/useSavedQueries.js.map +1 -1
- package/dist/hooks/useSectionSpy.cjs +1 -1
- package/dist/hooks/useSectionSpy.cjs.map +1 -1
- package/dist/hooks/useSectionSpy.d.ts +6 -1
- package/dist/hooks/useSectionSpy.js +87 -57
- package/dist/hooks/useSectionSpy.js.map +1 -1
- package/dist/hooks/useStorageItem.cjs +2 -0
- package/dist/hooks/useStorageItem.cjs.map +1 -0
- package/dist/hooks/useStorageItem.d.ts +6 -0
- package/dist/hooks/useStorageItem.js +36 -0
- package/dist/hooks/useStorageItem.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.js +321 -313
- package/dist/index.js.map +1 -1
- package/dist/layouts/shell/AegisShell.cjs +1 -1
- package/dist/layouts/shell/AegisShell.cjs.map +1 -1
- package/dist/layouts/shell/AegisShell.d.ts +4 -2
- package/dist/layouts/shell/AegisShell.js +150 -243
- package/dist/layouts/shell/AegisShell.js.map +1 -1
- package/dist/layouts/shell/AppRoutes.cjs +2 -0
- package/dist/layouts/shell/AppRoutes.cjs.map +1 -0
- package/dist/layouts/shell/AppRoutes.d.ts +5 -0
- package/dist/layouts/shell/AppRoutes.js +8 -0
- package/dist/layouts/shell/AppRoutes.js.map +1 -0
- package/dist/layouts/shell/AppSwitcher.cjs +1 -1
- package/dist/layouts/shell/AppSwitcher.cjs.map +1 -1
- package/dist/layouts/shell/AppSwitcher.js +53 -36
- package/dist/layouts/shell/AppSwitcher.js.map +1 -1
- package/dist/layouts/shell/AuthRequiredCard.cjs +1 -1
- package/dist/layouts/shell/AuthRequiredCard.cjs.map +1 -1
- package/dist/layouts/shell/AuthRequiredCard.js +24 -22
- package/dist/layouts/shell/AuthRequiredCard.js.map +1 -1
- package/dist/layouts/shell/BreadcrumbBar.cjs +1 -1
- package/dist/layouts/shell/BreadcrumbBar.cjs.map +1 -1
- package/dist/layouts/shell/BreadcrumbBar.d.ts +1 -2
- package/dist/layouts/shell/BreadcrumbBar.js +19 -26
- package/dist/layouts/shell/BreadcrumbBar.js.map +1 -1
- package/dist/layouts/shell/RouteErrorBoundary.cjs +2 -0
- package/dist/layouts/shell/RouteErrorBoundary.cjs.map +1 -0
- package/dist/layouts/shell/RouteErrorBoundary.d.ts +26 -0
- package/dist/layouts/shell/RouteErrorBoundary.js +40 -0
- package/dist/layouts/shell/RouteErrorBoundary.js.map +1 -0
- package/dist/layouts/shell/RouterLink.cjs +2 -0
- package/dist/layouts/shell/RouterLink.cjs.map +1 -0
- package/dist/layouts/shell/RouterLink.d.ts +3 -0
- package/dist/layouts/shell/RouterLink.js +22 -0
- package/dist/layouts/shell/RouterLink.js.map +1 -0
- package/dist/layouts/shell/ShellCommandPalette.cjs +2 -0
- package/dist/layouts/shell/ShellCommandPalette.cjs.map +1 -0
- package/dist/layouts/shell/ShellCommandPalette.d.ts +7 -0
- package/dist/layouts/shell/ShellCommandPalette.js +32 -0
- package/dist/layouts/shell/ShellCommandPalette.js.map +1 -0
- package/dist/layouts/shell/ShellInboxPage.cjs +2 -0
- package/dist/layouts/shell/ShellInboxPage.cjs.map +1 -0
- package/dist/layouts/shell/ShellInboxPage.d.ts +12 -0
- package/dist/layouts/shell/ShellInboxPage.js +33 -0
- package/dist/layouts/shell/ShellInboxPage.js.map +1 -0
- package/dist/layouts/shell/ShellNotificationBell.cjs +2 -0
- package/dist/layouts/shell/ShellNotificationBell.cjs.map +1 -0
- package/dist/layouts/shell/ShellNotificationBell.d.ts +5 -0
- package/dist/layouts/shell/ShellNotificationBell.js +30 -0
- package/dist/layouts/shell/ShellNotificationBell.js.map +1 -0
- package/dist/layouts/shell/Sidebar.cjs +1 -1
- package/dist/layouts/shell/Sidebar.cjs.map +1 -1
- package/dist/layouts/shell/Sidebar.d.ts +4 -2
- package/dist/layouts/shell/Sidebar.js +14 -11
- package/dist/layouts/shell/Sidebar.js.map +1 -1
- package/dist/layouts/shell/TopHeader.cjs +1 -1
- package/dist/layouts/shell/TopHeader.cjs.map +1 -1
- package/dist/layouts/shell/TopHeader.d.ts +6 -2
- package/dist/layouts/shell/TopHeader.js +87 -75
- package/dist/layouts/shell/TopHeader.js.map +1 -1
- package/dist/layouts/shell/apps.cjs +2 -0
- package/dist/layouts/shell/apps.cjs.map +1 -0
- package/dist/layouts/shell/apps.d.ts +12 -0
- package/dist/layouts/shell/apps.js +34 -0
- package/dist/layouts/shell/apps.js.map +1 -0
- package/dist/layouts/shell/buildRouteTree.cjs +2 -0
- package/dist/layouts/shell/buildRouteTree.cjs.map +1 -0
- package/dist/layouts/shell/buildRouteTree.d.ts +22 -0
- package/dist/layouts/shell/buildRouteTree.js +49 -0
- package/dist/layouts/shell/buildRouteTree.js.map +1 -0
- package/dist/layouts/shell/environments/EnvironmentProvider.cjs +2 -0
- package/dist/layouts/shell/environments/EnvironmentProvider.cjs.map +1 -0
- package/dist/layouts/shell/environments/EnvironmentProvider.d.ts +13 -0
- package/dist/layouts/shell/environments/EnvironmentProvider.js +90 -0
- package/dist/layouts/shell/environments/EnvironmentProvider.js.map +1 -0
- package/dist/layouts/shell/environments/{context.cjs → environmentContext.cjs} +2 -2
- package/dist/layouts/shell/environments/environmentContext.cjs.map +1 -0
- package/dist/layouts/shell/environments/environmentContext.d.ts +6 -0
- package/dist/layouts/shell/environments/environmentContext.js +8 -0
- package/dist/layouts/shell/environments/environmentContext.js.map +1 -0
- package/dist/layouts/shell/environments/index.d.ts +2 -3
- package/dist/layouts/shell/environments/types.cjs.map +1 -1
- package/dist/layouts/shell/environments/types.d.ts +23 -15
- package/dist/layouts/shell/environments/types.js.map +1 -1
- package/dist/layouts/shell/environments/useEnvironment.cjs +2 -0
- package/dist/layouts/shell/environments/useEnvironment.cjs.map +1 -0
- package/dist/layouts/shell/environments/{hooks.d.ts → useEnvironment.d.ts} +3 -2
- package/dist/layouts/shell/environments/useEnvironment.js +25 -0
- package/dist/layouts/shell/environments/useEnvironment.js.map +1 -0
- package/dist/layouts/shell/index.d.ts +3 -1
- package/dist/layouts/shell/types.d.ts +14 -14
- package/dist/layouts/shell/useAgentPanel.cjs +2 -0
- package/dist/layouts/shell/useAgentPanel.cjs.map +1 -0
- package/dist/layouts/shell/useAgentPanel.d.ts +13 -0
- package/dist/layouts/shell/useAgentPanel.js +21 -0
- package/dist/layouts/shell/useAgentPanel.js.map +1 -0
- package/dist/layouts/shell/useAppCommands.cjs +2 -0
- package/dist/layouts/shell/useAppCommands.cjs.map +1 -0
- package/dist/layouts/shell/useAppCommands.d.ts +6 -0
- package/dist/layouts/shell/useAppCommands.js +19 -0
- package/dist/layouts/shell/useAppCommands.js.map +1 -0
- package/dist/layouts/shell/useMobileNav.cjs +2 -0
- package/dist/layouts/shell/useMobileNav.cjs.map +1 -0
- package/dist/layouts/shell/useMobileNav.d.ts +20 -0
- package/dist/layouts/shell/useMobileNav.js +54 -0
- package/dist/layouts/shell/useMobileNav.js.map +1 -0
- package/dist/layouts/shell/useOpenNotification.cjs +2 -0
- package/dist/layouts/shell/useOpenNotification.cjs.map +1 -0
- package/dist/layouts/shell/useOpenNotification.d.ts +3 -0
- package/dist/layouts/shell/useOpenNotification.js +16 -0
- package/dist/layouts/shell/useOpenNotification.js.map +1 -0
- package/dist/layouts/shell/useShellUser.cjs +2 -0
- package/dist/layouts/shell/useShellUser.cjs.map +1 -0
- package/dist/layouts/shell/useShellUser.d.ts +7 -0
- package/dist/layouts/shell/useShellUser.js +23 -0
- package/dist/layouts/shell/useShellUser.js.map +1 -0
- package/dist/layouts/shell/useWarnOnce.cjs +2 -0
- package/dist/layouts/shell/useWarnOnce.cjs.map +1 -0
- package/dist/layouts/shell/useWarnOnce.d.ts +1 -0
- package/dist/layouts/shell/useWarnOnce.js +11 -0
- package/dist/layouts/shell/useWarnOnce.js.map +1 -0
- package/dist/lib/chart.cjs +1 -1
- package/dist/lib/chart.cjs.map +1 -1
- package/dist/lib/chart.d.ts +5 -7
- package/dist/lib/chart.js +49 -34
- package/dist/lib/chart.js.map +1 -1
- package/dist/lib/format.cjs +1 -1
- package/dist/lib/format.cjs.map +1 -1
- package/dist/lib/format.d.ts +34 -0
- package/dist/lib/format.js +98 -9
- package/dist/lib/format.js.map +1 -1
- package/dist/lib/luceneQuery/tokenizeAtCursor.cjs +1 -1
- package/dist/lib/luceneQuery/tokenizeAtCursor.cjs.map +1 -1
- package/dist/lib/luceneQuery/tokenizeAtCursor.js +29 -29
- package/dist/lib/luceneQuery/tokenizeAtCursor.js.map +1 -1
- package/dist/lib/storage.cjs +1 -1
- package/dist/lib/storage.cjs.map +1 -1
- package/dist/lib/storage.js +19 -12
- package/dist/lib/storage.js.map +1 -1
- package/dist/lib/timeRange.cjs +1 -1
- package/dist/lib/timeRange.cjs.map +1 -1
- package/dist/lib/timeRange.d.ts +14 -4
- package/dist/lib/timeRange.js +43 -39
- package/dist/lib/timeRange.js.map +1 -1
- package/dist/locale/strings.cjs +1 -1
- package/dist/locale/strings.cjs.map +1 -1
- package/dist/locale/strings.d.ts +243 -2
- package/dist/locale/strings.js +545 -26
- package/dist/locale/strings.js.map +1 -1
- package/dist/notifications/notificationContext.cjs.map +1 -1
- package/dist/notifications/notificationContext.d.ts +15 -0
- package/dist/notifications/notificationContext.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/theme/ThemeProvider.cjs +1 -1
- package/dist/theme/ThemeProvider.cjs.map +1 -1
- package/dist/theme/ThemeProvider.d.ts +2 -1
- package/dist/theme/ThemeProvider.js +47 -33
- package/dist/theme/ThemeProvider.js.map +1 -1
- package/dist/theme/antdTheme.cjs +1 -1
- package/dist/theme/antdTheme.cjs.map +1 -1
- package/dist/theme/antdTheme.d.ts +0 -2
- package/dist/theme/antdTheme.js +28 -20
- package/dist/theme/antdTheme.js.map +1 -1
- package/dist/transports/agentm/AgentmChannelProvider.cjs +1 -1
- package/dist/transports/agentm/AgentmChannelProvider.cjs.map +1 -1
- package/dist/transports/agentm/AgentmChannelProvider.d.ts +1 -0
- package/dist/transports/agentm/AgentmChannelProvider.js +119 -131
- package/dist/transports/agentm/AgentmChannelProvider.js.map +1 -1
- package/dist/transports/agentm/agentmChannelClient.cjs +1 -1
- package/dist/transports/agentm/agentmChannelClient.cjs.map +1 -1
- package/dist/transports/agentm/agentmChannelClient.d.ts +8 -3
- package/dist/transports/agentm/agentmChannelClient.js +133 -89
- package/dist/transports/agentm/agentmChannelClient.js.map +1 -1
- package/dist/transports/index.d.ts +2 -2
- package/dist/transports/mcpBridge.cjs +2 -0
- package/dist/transports/mcpBridge.cjs.map +1 -0
- package/dist/transports/{bridge.d.ts → mcpBridge.d.ts} +2 -1
- package/dist/transports/mcpBridge.js +144 -0
- package/dist/transports/mcpBridge.js.map +1 -0
- package/dist/transports/mcpTools.cjs +2 -0
- package/dist/transports/mcpTools.cjs.map +1 -0
- package/dist/transports/mcpTools.d.ts +15 -0
- package/dist/transports/mcpTools.js +283 -0
- package/dist/transports/mcpTools.js.map +1 -0
- package/dist/transports.cjs +1 -1
- package/dist/transports.js +1 -1
- package/package.json +5 -4
- package/dist/agent/core/mcpToolCatalogue.cjs +0 -2
- package/dist/agent/core/mcpToolCatalogue.cjs.map +0 -1
- package/dist/agent/core/mcpToolCatalogue.d.ts +0 -2
- package/dist/agent/core/mcpToolCatalogue.js +0 -101
- package/dist/agent/core/mcpToolCatalogue.js.map +0 -1
- package/dist/components/ui/BucketCard.cjs +0 -2
- package/dist/components/ui/BucketCard.cjs.map +0 -1
- package/dist/components/ui/BucketCard.d.ts +0 -24
- package/dist/components/ui/BucketCard.js +0 -73
- package/dist/components/ui/BucketCard.js.map +0 -1
- package/dist/components/ui/ContentInspectorContent.cjs +0 -5
- package/dist/components/ui/ContentInspectorContent.cjs.map +0 -1
- package/dist/components/ui/ContentInspectorContent.d.ts +0 -14
- package/dist/components/ui/ContentInspectorContent.js +0 -101
- package/dist/components/ui/ContentInspectorContent.js.map +0 -1
- package/dist/components/ui/traceFormat.cjs +0 -2
- package/dist/components/ui/traceFormat.cjs.map +0 -1
- package/dist/components/ui/traceFormat.js +0 -11
- package/dist/components/ui/traceFormat.js.map +0 -1
- package/dist/layouts/shell/environments/EnvironmentContext.cjs +0 -2
- package/dist/layouts/shell/environments/EnvironmentContext.cjs.map +0 -1
- package/dist/layouts/shell/environments/EnvironmentContext.d.ts +0 -12
- package/dist/layouts/shell/environments/EnvironmentContext.js +0 -94
- package/dist/layouts/shell/environments/EnvironmentContext.js.map +0 -1
- package/dist/layouts/shell/environments/context.cjs.map +0 -1
- package/dist/layouts/shell/environments/context.d.ts +0 -6
- package/dist/layouts/shell/environments/context.js +0 -6
- package/dist/layouts/shell/environments/context.js.map +0 -1
- package/dist/layouts/shell/environments/hooks.cjs +0 -2
- package/dist/layouts/shell/environments/hooks.cjs.map +0 -1
- package/dist/layouts/shell/environments/hooks.js +0 -24
- package/dist/layouts/shell/environments/hooks.js.map +0 -1
- package/dist/layouts/shell/environments/manifest.cjs +0 -2
- package/dist/layouts/shell/environments/manifest.cjs.map +0 -1
- package/dist/layouts/shell/environments/manifest.d.ts +0 -26
- package/dist/layouts/shell/environments/manifest.js +0 -82
- package/dist/layouts/shell/environments/manifest.js.map +0 -1
- package/dist/transports/bridge.cjs +0 -2
- package/dist/transports/bridge.cjs.map +0 -1
- package/dist/transports/bridge.js +0 -143
- package/dist/transports/bridge.js.map +0 -1
|
@@ -1,61 +1,155 @@
|
|
|
1
|
-
import { uniqueId as
|
|
2
|
-
|
|
3
|
-
function
|
|
1
|
+
import { uniqueId as N } from "../../lib/id.js";
|
|
2
|
+
const le = 5e3, fe = 2e4, ge = 250, pe = 1200, G = 50, he = 3e3;
|
|
3
|
+
function me(a = null) {
|
|
4
4
|
return {
|
|
5
|
-
currentAppId:
|
|
5
|
+
currentAppId: a,
|
|
6
6
|
route: { pathname: "/", search: "", params: {} },
|
|
7
7
|
breadcrumbs: [],
|
|
8
8
|
theme: "light",
|
|
9
9
|
viewport: { width: 0, height: 0 }
|
|
10
10
|
};
|
|
11
11
|
}
|
|
12
|
-
function
|
|
13
|
-
for (const
|
|
14
|
-
const
|
|
15
|
-
if (
|
|
16
|
-
return { surface:
|
|
12
|
+
function we(a, r) {
|
|
13
|
+
for (const d of a) {
|
|
14
|
+
const l = d.entities?.find((h) => h.id === r);
|
|
15
|
+
if (l)
|
|
16
|
+
return { surface: d, entity: l };
|
|
17
17
|
}
|
|
18
18
|
return null;
|
|
19
19
|
}
|
|
20
|
-
function
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
20
|
+
function K(a, r) {
|
|
21
|
+
return a === "both" || r === "system" || a === r;
|
|
22
|
+
}
|
|
23
|
+
function E(a, r) {
|
|
24
|
+
return r.some(
|
|
25
|
+
(d) => (typeof d == "string" || typeof d == "number" || typeof d == "boolean") && String(d).toLowerCase().includes(a)
|
|
26
|
+
);
|
|
27
|
+
}
|
|
28
|
+
class S extends Error {
|
|
29
|
+
}
|
|
30
|
+
function C(a) {
|
|
31
|
+
return {
|
|
32
|
+
code: a instanceof S ? "invalid_params" : "thrown",
|
|
33
|
+
message: a instanceof Error ? a.message : String(a),
|
|
34
|
+
reason: a
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
function V(a) {
|
|
38
|
+
const r = a?.to;
|
|
39
|
+
if (typeof r != "string" || r === "")
|
|
40
|
+
throw new S("aegis.navigate requires { to: string }");
|
|
41
|
+
return r;
|
|
42
|
+
}
|
|
43
|
+
function be(a) {
|
|
44
|
+
const r = window.location.pathname.replace(/\/+$/, ""), d = a.replace(/\/+$/, "");
|
|
45
|
+
return d === "" ? r === "" ? "" : null : r.endsWith(d) ? r.slice(0, r.length - d.length) : null;
|
|
46
|
+
}
|
|
47
|
+
function X(a, r) {
|
|
48
|
+
const d = window.location;
|
|
49
|
+
let l;
|
|
50
|
+
try {
|
|
51
|
+
l = new URL(a, `${d.origin}${r.pathname}${r.search}`);
|
|
52
|
+
} catch {
|
|
53
|
+
throw new S(`aegis.navigate: "${a}" is not a URL`);
|
|
54
|
+
}
|
|
55
|
+
if (l.protocol !== d.protocol || l.origin !== d.origin)
|
|
56
|
+
throw new S(
|
|
57
|
+
`aegis.navigate: "${a}" leaves ${d.origin}; only paths on this site are allowed`
|
|
58
|
+
);
|
|
59
|
+
let h = l.pathname;
|
|
60
|
+
if (new URL(a, `${d.protocol}//aegis.invalid/`).host !== "aegis.invalid") {
|
|
61
|
+
const m = r.basename ?? be(r.pathname);
|
|
62
|
+
if (m === null)
|
|
63
|
+
throw new S(
|
|
64
|
+
`aegis.navigate: "${a}" is a full URL, but the app's base path is unknown (route ${r.pathname} on page ${d.pathname}); pass a path in the app instead`
|
|
65
|
+
);
|
|
66
|
+
if (h !== m && !h.startsWith(`${m}/`))
|
|
67
|
+
throw new S(
|
|
68
|
+
`aegis.navigate: "${a}" is outside this app, whose paths start with ${m}/`
|
|
69
|
+
);
|
|
70
|
+
h = h.slice(m.length);
|
|
71
|
+
}
|
|
72
|
+
return `${h.replace(/^\/*/, "/")}${l.search}${l.hash}`;
|
|
73
|
+
}
|
|
74
|
+
function q(a) {
|
|
75
|
+
return {
|
|
76
|
+
code: "unknown_action",
|
|
77
|
+
message: `No action registered with id "${a}"`
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
function x(a, r) {
|
|
81
|
+
return `[${a}="${CSS.escape(r)}"]`;
|
|
82
|
+
}
|
|
83
|
+
function ve(a) {
|
|
84
|
+
switch (a.kind) {
|
|
85
|
+
case "surface":
|
|
86
|
+
return x("data-agent-surface-id", a.surfaceId);
|
|
87
|
+
case "entity":
|
|
88
|
+
return x("data-agent-entity-id", a.entityId);
|
|
89
|
+
case "action":
|
|
90
|
+
return x("data-agent-action-id", a.actionId);
|
|
91
|
+
case "route":
|
|
92
|
+
return null;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
function ye(a) {
|
|
96
|
+
return new Promise((r) => {
|
|
97
|
+
const d = Date.now();
|
|
98
|
+
let l = a.getBoundingClientRect(), h = 0;
|
|
99
|
+
const y = () => {
|
|
100
|
+
const m = a.getBoundingClientRect();
|
|
101
|
+
if (h = m.top === l.top && m.left === l.left ? h + 1 : 0, l = m, h >= 2 || Date.now() - d >= he) {
|
|
102
|
+
r(m);
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
window.setTimeout(y, G);
|
|
106
|
+
};
|
|
107
|
+
window.setTimeout(y, G);
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
function Te(a = {}) {
|
|
111
|
+
const r = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map(), h = /* @__PURE__ */ new Set();
|
|
112
|
+
let y = null, m = a.navigate ?? null, P = [];
|
|
113
|
+
const v = (e) => {
|
|
114
|
+
for (const t of h)
|
|
25
115
|
try {
|
|
26
116
|
t(e);
|
|
27
117
|
} catch (n) {
|
|
28
118
|
console.error("aegis runtime listener threw", n);
|
|
29
119
|
}
|
|
30
|
-
},
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
-
const
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
120
|
+
}, _ = () => y ? y() : me(), z = (e) => {
|
|
121
|
+
const t = /* @__PURE__ */ new Set(), n = e.getElement?.();
|
|
122
|
+
if (n)
|
|
123
|
+
for (const i of n.querySelectorAll("[data-agent-action-id]")) {
|
|
124
|
+
const c = i.getAttribute("data-agent-action-id");
|
|
125
|
+
c && t.add(c);
|
|
126
|
+
}
|
|
127
|
+
const s = [];
|
|
128
|
+
for (const { action: i, source: c } of r.values())
|
|
129
|
+
(t.has(i.id) || i.appliesTo?.surfaceKind === e.kind || c.kind === "component" && c.surfaceId === e.id) && s.push(i.id);
|
|
130
|
+
return s;
|
|
131
|
+
}, B = (e) => {
|
|
132
|
+
const { entities: t, fields: n } = e.getProjection();
|
|
133
|
+
return {
|
|
134
|
+
id: e.id,
|
|
135
|
+
kind: e.kind,
|
|
136
|
+
appId: e.appId,
|
|
137
|
+
label: e.label,
|
|
138
|
+
entities: t,
|
|
139
|
+
fields: n,
|
|
140
|
+
actionIds: z(e),
|
|
141
|
+
bbox: e.getBBox?.(),
|
|
142
|
+
inViewport: e.getInViewport?.() ?? !0,
|
|
143
|
+
askSuggestions: e.askSuggestions
|
|
144
|
+
};
|
|
145
|
+
}, A = () => [...d.values()].map(B), M = () => ({
|
|
52
146
|
timestamp: Date.now(),
|
|
53
|
-
shell:
|
|
54
|
-
surfaces:
|
|
55
|
-
selection: [...
|
|
147
|
+
shell: _(),
|
|
148
|
+
surfaces: A(),
|
|
149
|
+
selection: [...P],
|
|
56
150
|
focus: { surfaceId: null, entityId: null },
|
|
57
151
|
appData: {}
|
|
58
|
-
}),
|
|
152
|
+
}), I = (e) => {
|
|
59
153
|
const { action: t, source: n } = e;
|
|
60
154
|
return {
|
|
61
155
|
id: t.id,
|
|
@@ -66,281 +160,353 @@ function ne(m = {}) {
|
|
|
66
160
|
resultSchema: t.resultSchema,
|
|
67
161
|
available: !0,
|
|
68
162
|
invocableBy: t.invocableBy ?? "both",
|
|
163
|
+
confirm: t.confirm,
|
|
69
164
|
source: n
|
|
70
165
|
};
|
|
71
|
-
},
|
|
166
|
+
}, O = (e) => {
|
|
72
167
|
const t = [];
|
|
73
|
-
for (const n of
|
|
74
|
-
const s =
|
|
75
|
-
|
|
168
|
+
for (const n of e) {
|
|
169
|
+
const s = r.get(n);
|
|
170
|
+
s && t.push(I(s));
|
|
76
171
|
}
|
|
77
172
|
return t;
|
|
78
|
-
},
|
|
79
|
-
const t =
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
if (!c) {
|
|
84
|
-
const a = {
|
|
85
|
-
code: "unknown_action",
|
|
86
|
-
message: `No action registered with id "${e}"`
|
|
87
|
-
};
|
|
88
|
-
return h({ type: "action.failed", correlationId: s, error: a }), { ok: !1, error: a, correlationId: s };
|
|
173
|
+
}, J = (e) => {
|
|
174
|
+
const t = [];
|
|
175
|
+
for (const n of r.values()) {
|
|
176
|
+
const s = I(n);
|
|
177
|
+
e?.available !== void 0 && s.available !== e.available || e?.invocableBy && !K(s.invocableBy, e.invocableBy) || e?.appId && s.source.appId !== e.appId || t.push(s);
|
|
89
178
|
}
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
179
|
+
return t;
|
|
180
|
+
}, Q = (e) => {
|
|
181
|
+
const t = r.get(e);
|
|
182
|
+
return t ? I(t) : null;
|
|
183
|
+
}, U = (e, t, n) => {
|
|
184
|
+
const { id: s, invocableBy: i = "both", confirm: c } = e.action;
|
|
185
|
+
return K(i, t) ? n === "run" && t === "agent" && c?.danger ? {
|
|
186
|
+
code: "needs_confirm",
|
|
187
|
+
message: `Action "${s}" is marked dangerous; only the user can run it.`
|
|
188
|
+
} : null : {
|
|
189
|
+
code: "unavailable",
|
|
190
|
+
message: `Action "${s}" can only be invoked by the ${i}.`
|
|
100
191
|
};
|
|
101
|
-
|
|
102
|
-
|
|
192
|
+
}, D = (e, t, n, s = {}) => ({
|
|
193
|
+
appId: e.source.appId,
|
|
194
|
+
navigate: s.navigate ?? m ?? ((i) => {
|
|
195
|
+
}),
|
|
196
|
+
snapshot: M,
|
|
197
|
+
toast: a.toast ?? ((i) => {
|
|
198
|
+
}),
|
|
199
|
+
correlationId: n,
|
|
200
|
+
invokedBy: t,
|
|
201
|
+
signal: s.signal ?? new AbortController().signal
|
|
202
|
+
}), Y = async (e, t = void 0, n = {}) => {
|
|
203
|
+
const s = n.correlationId ?? N("aegis"), i = n.by ?? "user", c = (w) => (v({ type: "action.failed", correlationId: s, error: w }), { ok: !1, error: w, correlationId: s }), f = r.get(e);
|
|
204
|
+
if (!f)
|
|
205
|
+
return c(q(e));
|
|
206
|
+
const g = U(f, i, "run");
|
|
207
|
+
if (g)
|
|
208
|
+
return c(g);
|
|
209
|
+
v({ type: "action.invoked", id: e, params: t, by: i, correlationId: s });
|
|
210
|
+
const b = Date.now();
|
|
103
211
|
try {
|
|
104
|
-
const
|
|
105
|
-
|
|
212
|
+
const w = await f.action.run(
|
|
213
|
+
t,
|
|
214
|
+
D(f, i, s, { signal: n.signal })
|
|
215
|
+
);
|
|
216
|
+
return v({
|
|
106
217
|
type: "action.completed",
|
|
107
218
|
correlationId: s,
|
|
108
|
-
result:
|
|
109
|
-
durationMs: Date.now() -
|
|
110
|
-
}), { ok: !0, result:
|
|
111
|
-
} catch (
|
|
112
|
-
|
|
113
|
-
code: "thrown",
|
|
114
|
-
message: a instanceof Error ? a.message : String(a),
|
|
115
|
-
reason: a
|
|
116
|
-
};
|
|
117
|
-
return h({ type: "action.failed", correlationId: s, error: v }), { ok: !1, error: v, correlationId: s };
|
|
219
|
+
result: w,
|
|
220
|
+
durationMs: Date.now() - b
|
|
221
|
+
}), { ok: !0, result: w, correlationId: s };
|
|
222
|
+
} catch (w) {
|
|
223
|
+
return c(C(w));
|
|
118
224
|
}
|
|
119
|
-
},
|
|
120
|
-
|
|
121
|
-
|
|
225
|
+
}, Z = async (e, t = void 0, n = {}) => {
|
|
226
|
+
const s = n.by ?? "user", i = r.get(e);
|
|
227
|
+
if (!i)
|
|
228
|
+
return { ok: !1, error: q(e) };
|
|
229
|
+
const c = U(i, s, "preview");
|
|
230
|
+
if (c)
|
|
231
|
+
return { ok: !1, error: c };
|
|
232
|
+
const f = I(i);
|
|
233
|
+
if (!i.action.dryRun)
|
|
234
|
+
return { ok: !0, action: f, params: t };
|
|
235
|
+
try {
|
|
236
|
+
const g = await i.action.dryRun(
|
|
237
|
+
t,
|
|
238
|
+
D(i, s, N("aegis"), {
|
|
239
|
+
navigate: (b) => {
|
|
240
|
+
},
|
|
241
|
+
signal: n.signal
|
|
242
|
+
})
|
|
243
|
+
);
|
|
244
|
+
return { ok: !0, action: f, params: t, preview: g };
|
|
245
|
+
} catch (g) {
|
|
246
|
+
return { ok: !1, error: C(g) };
|
|
247
|
+
}
|
|
248
|
+
}, R = (e) => (h.add(e), () => {
|
|
249
|
+
h.delete(e);
|
|
250
|
+
}), ee = (e) => {
|
|
122
251
|
const { id: t } = e.action;
|
|
123
|
-
return
|
|
252
|
+
return r.has(t) && console.warn(
|
|
124
253
|
`[aegis] action id collision: "${t}" is being re-registered. Most-recent registration wins.`
|
|
125
|
-
),
|
|
126
|
-
|
|
254
|
+
), r.set(t, e), v({ type: "registry.changed", added: [t], removed: [] }), () => {
|
|
255
|
+
r.get(t) === e && (r.delete(t), v({ type: "registry.changed", added: [], removed: [t] }));
|
|
127
256
|
};
|
|
128
|
-
},
|
|
129
|
-
|
|
130
|
-
},
|
|
257
|
+
}, te = (e) => {
|
|
258
|
+
y = e;
|
|
259
|
+
}, ne = (e) => (d.has(e.id) && console.warn(
|
|
131
260
|
`[aegis] surface id collision: "${e.id}" is being re-registered. Most-recent registration wins.`
|
|
132
|
-
),
|
|
133
|
-
|
|
134
|
-
}),
|
|
135
|
-
|
|
136
|
-
},
|
|
137
|
-
|
|
138
|
-
},
|
|
261
|
+
), d.set(e.id, e), v({ type: "snapshot.changed", diff: { added: [e.id] } }), () => {
|
|
262
|
+
d.get(e.id) === e && (d.delete(e.id), v({ type: "snapshot.changed", diff: { removed: [e.id] } }));
|
|
263
|
+
}), se = (e) => {
|
|
264
|
+
P = [...e];
|
|
265
|
+
}, oe = (e) => {
|
|
266
|
+
m = e;
|
|
267
|
+
}, ie = (e) => (l.has(e.id) && console.warn(
|
|
139
268
|
`[aegis] search provider id collision: "${e.id}" is being re-registered. Most-recent registration wins.`
|
|
140
|
-
),
|
|
141
|
-
|
|
142
|
-
}),
|
|
269
|
+
), l.set(e.id, e), () => {
|
|
270
|
+
l.get(e.id) === e && l.delete(e.id);
|
|
271
|
+
}), re = (e) => {
|
|
143
272
|
if (e.kind === "surface") {
|
|
144
|
-
const n =
|
|
273
|
+
const n = d.get(e.surfaceId);
|
|
145
274
|
if (!n)
|
|
146
275
|
return null;
|
|
147
|
-
const s =
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
r.action.appliesTo?.surfaceKind === n.kind && s.push(c);
|
|
155
|
-
}
|
|
156
|
-
return { ref: e, surface: n, entities: n.entities, actions: s };
|
|
276
|
+
const s = B(n);
|
|
277
|
+
return {
|
|
278
|
+
ref: e,
|
|
279
|
+
surface: s,
|
|
280
|
+
entities: s.entities,
|
|
281
|
+
actions: O(s.actionIds)
|
|
282
|
+
};
|
|
157
283
|
}
|
|
158
284
|
if (e.kind === "entity") {
|
|
159
|
-
const n =
|
|
160
|
-
|
|
285
|
+
const n = A().filter(
|
|
286
|
+
(g) => e.surfaceId === void 0 || g.id === e.surfaceId
|
|
287
|
+
), s = we(n, e.entityId);
|
|
288
|
+
if (!s)
|
|
161
289
|
return null;
|
|
162
|
-
const { surface:
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
if (a.source.kind === "component" && a.source.surfaceId === s.id) {
|
|
167
|
-
f(a);
|
|
168
|
-
continue;
|
|
169
|
-
}
|
|
170
|
-
if (a.action.appliesTo?.surfaceKind === s.kind) {
|
|
171
|
-
f(a);
|
|
172
|
-
continue;
|
|
173
|
-
}
|
|
174
|
-
a.action.appliesTo?.entityType === r.type && f(a);
|
|
175
|
-
}
|
|
176
|
-
return { ref: e, surface: s, entity: r, actions: c };
|
|
290
|
+
const { surface: i, entity: c } = s, f = new Set(i.actionIds);
|
|
291
|
+
for (const { action: g } of r.values())
|
|
292
|
+
g.appliesTo?.entityType === c.type && f.add(g.id);
|
|
293
|
+
return { ref: e, surface: i, entity: c, actions: O(f) };
|
|
177
294
|
}
|
|
178
295
|
if (e.kind === "action") {
|
|
179
|
-
const n =
|
|
296
|
+
const n = r.get(e.actionId);
|
|
180
297
|
if (!n)
|
|
181
298
|
return null;
|
|
182
|
-
const s =
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
r = I().find((u) => u.id === c);
|
|
187
|
-
}
|
|
188
|
-
return { ref: e, action: s, surface: r, actions: [] };
|
|
299
|
+
const s = A().find(
|
|
300
|
+
(i) => i.actionIds.includes(e.actionId)
|
|
301
|
+
);
|
|
302
|
+
return { ref: e, action: I(n), surface: s, actions: [] };
|
|
189
303
|
}
|
|
190
304
|
const t = [];
|
|
191
|
-
for (const n of
|
|
192
|
-
n.source.kind === "app" && n.source.appId === e.appId && t.push(
|
|
305
|
+
for (const n of r.values())
|
|
306
|
+
n.source.kind === "app" && n.source.appId === e.appId && t.push(I(n));
|
|
193
307
|
return { ref: e, actions: t };
|
|
194
|
-
},
|
|
195
|
-
const
|
|
196
|
-
return c && c ===
|
|
197
|
-
},
|
|
308
|
+
}, $ = (e, t, n, s) => {
|
|
309
|
+
const i = e.toLowerCase(), c = (t ?? "").toLowerCase(), f = n.toLowerCase(), g = (s ?? "").toLowerCase();
|
|
310
|
+
return c && c === i ? 1 : c.startsWith(i) ? 0.8 : c.includes(i) ? 0.6 : f.includes(i) ? 0.4 : g.includes(i) ? 0.2 : 0;
|
|
311
|
+
}, ae = async (e, t = {}) => {
|
|
198
312
|
const n = t.limit ?? 20, s = new Set(
|
|
199
313
|
t.kinds ?? ["surface", "entity", "action", "route"]
|
|
200
|
-
),
|
|
314
|
+
), i = [];
|
|
201
315
|
if (e.length > 0) {
|
|
202
|
-
for (const
|
|
203
|
-
if (!(t.appId &&
|
|
316
|
+
for (const u of A())
|
|
317
|
+
if (!(t.appId && u.appId !== t.appId)) {
|
|
204
318
|
if (s.has("surface")) {
|
|
205
|
-
const
|
|
206
|
-
|
|
207
|
-
ref: { kind: "surface", surfaceId:
|
|
319
|
+
const o = $(e, u.label, u.id, void 0);
|
|
320
|
+
o > 0 && i.push({
|
|
321
|
+
ref: { kind: "surface", surfaceId: u.id },
|
|
208
322
|
kind: "surface",
|
|
209
|
-
label:
|
|
210
|
-
appId:
|
|
323
|
+
label: u.label ?? u.id,
|
|
324
|
+
appId: u.appId,
|
|
211
325
|
source: "snapshot",
|
|
212
|
-
score:
|
|
326
|
+
score: o
|
|
213
327
|
});
|
|
214
328
|
}
|
|
215
|
-
if (s.has("entity") &&
|
|
216
|
-
for (const
|
|
217
|
-
let
|
|
218
|
-
const
|
|
219
|
-
|
|
220
|
-
ref: { kind: "entity", entityId:
|
|
329
|
+
if (s.has("entity") && u.entities)
|
|
330
|
+
for (const o of u.entities) {
|
|
331
|
+
let p = $(e, o.label, o.id, void 0);
|
|
332
|
+
const T = $(e, o.type, o.type, void 0);
|
|
333
|
+
T > p && (p = T), p > 0 && i.push({
|
|
334
|
+
ref: { kind: "entity", entityId: o.id, surfaceId: u.id },
|
|
221
335
|
kind: "entity",
|
|
222
|
-
label:
|
|
223
|
-
appId:
|
|
336
|
+
label: o.label ?? o.id,
|
|
337
|
+
appId: u.appId,
|
|
224
338
|
source: "snapshot",
|
|
225
|
-
score:
|
|
339
|
+
score: p
|
|
226
340
|
});
|
|
227
341
|
}
|
|
228
342
|
}
|
|
229
343
|
if (s.has("action"))
|
|
230
|
-
for (const
|
|
231
|
-
const
|
|
232
|
-
let
|
|
233
|
-
if (
|
|
234
|
-
for (const
|
|
235
|
-
const
|
|
236
|
-
|
|
344
|
+
for (const u of r.values()) {
|
|
345
|
+
const o = u.action;
|
|
346
|
+
let p = $(e, o.label, o.id, o.description);
|
|
347
|
+
if (o.keywords)
|
|
348
|
+
for (const T of o.keywords) {
|
|
349
|
+
const H = $(e, T, T, void 0);
|
|
350
|
+
H > p && (p = H);
|
|
237
351
|
}
|
|
238
|
-
|
|
239
|
-
ref: { kind: "action", actionId:
|
|
352
|
+
p > 0 && i.push({
|
|
353
|
+
ref: { kind: "action", actionId: o.id },
|
|
240
354
|
kind: "action",
|
|
241
|
-
label:
|
|
355
|
+
label: o.label,
|
|
242
356
|
source: "snapshot",
|
|
243
|
-
score:
|
|
357
|
+
score: p
|
|
244
358
|
});
|
|
245
359
|
}
|
|
246
360
|
}
|
|
247
|
-
const c = new AbortController(),
|
|
361
|
+
const c = new AbortController(), f = () => {
|
|
248
362
|
c.abort();
|
|
249
363
|
};
|
|
250
|
-
t.signal && (t.signal.aborted ? c.abort() : t.signal.addEventListener("abort",
|
|
251
|
-
const
|
|
252
|
-
|
|
364
|
+
t.signal && (t.signal.aborted ? c.abort() : t.signal.addEventListener("abort", f));
|
|
365
|
+
const g = [...l.values()].filter((u) => !(t.appId && u.appId !== t.appId || !u.kinds.some((o) => s.has(o)) || u.matches && !u.matches(e))), b = [], w = await Promise.all(
|
|
366
|
+
g.map(async (u) => {
|
|
253
367
|
try {
|
|
254
|
-
return (await
|
|
368
|
+
return (await u.search(e, {
|
|
255
369
|
limit: n,
|
|
256
370
|
signal: c.signal
|
|
257
|
-
})).map((
|
|
258
|
-
} catch {
|
|
259
|
-
return
|
|
371
|
+
})).map((p) => ({ ...p, source: "provider" }));
|
|
372
|
+
} catch (o) {
|
|
373
|
+
return c.signal.aborted || b.push({
|
|
374
|
+
providerId: u.id,
|
|
375
|
+
message: o instanceof Error ? o.message : String(o)
|
|
376
|
+
}), [];
|
|
260
377
|
}
|
|
261
378
|
})
|
|
262
379
|
);
|
|
263
|
-
t.signal && t.signal.removeEventListener("abort",
|
|
264
|
-
for (const
|
|
265
|
-
for (const
|
|
266
|
-
|
|
267
|
-
const
|
|
268
|
-
switch (
|
|
380
|
+
t.signal && t.signal.removeEventListener("abort", f);
|
|
381
|
+
for (const u of w)
|
|
382
|
+
for (const o of u)
|
|
383
|
+
i.push(o);
|
|
384
|
+
const L = (u) => {
|
|
385
|
+
switch (u.kind) {
|
|
269
386
|
case "surface":
|
|
270
|
-
return `s:${
|
|
387
|
+
return `s:${u.surfaceId}`;
|
|
271
388
|
case "entity":
|
|
272
|
-
return `e:${
|
|
389
|
+
return `e:${u.entityId}`;
|
|
273
390
|
case "action":
|
|
274
|
-
return `a:${
|
|
391
|
+
return `a:${u.actionId}`;
|
|
275
392
|
case "route":
|
|
276
|
-
return `r:${
|
|
393
|
+
return `r:${u.appId}:${u.pathname}`;
|
|
277
394
|
}
|
|
278
|
-
},
|
|
279
|
-
for (const
|
|
280
|
-
const
|
|
281
|
-
|
|
395
|
+
}, k = /* @__PURE__ */ new Map();
|
|
396
|
+
for (const u of i) {
|
|
397
|
+
const o = L(u.ref), p = k.get(o);
|
|
398
|
+
p ? p.source === "provider" && u.source === "snapshot" && k.set(o, u) : k.set(o, u);
|
|
282
399
|
}
|
|
283
|
-
return [...
|
|
284
|
-
},
|
|
400
|
+
return { results: [...k.values()].sort((u, o) => o.score - u.score).slice(0, n), failedProviders: b };
|
|
401
|
+
}, ce = async (e) => {
|
|
402
|
+
if (typeof document > "u")
|
|
403
|
+
return { found: !1 };
|
|
404
|
+
const t = ve(e), n = t ? document.querySelector(t) : null;
|
|
405
|
+
if (!(n instanceof HTMLElement))
|
|
406
|
+
return { found: !1 };
|
|
407
|
+
const s = document.visibilityState === "hidden" || window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
408
|
+
return n.scrollIntoView({
|
|
409
|
+
block: "center",
|
|
410
|
+
behavior: s ? "auto" : "smooth"
|
|
411
|
+
}), n.setAttribute("data-aegis-highlight", "true"), window.setTimeout(() => {
|
|
412
|
+
n.removeAttribute("data-aegis-highlight");
|
|
413
|
+
}, pe), { found: !0, bbox: s ? n.getBoundingClientRect() : await ye(n) };
|
|
414
|
+
}, F = (e) => {
|
|
415
|
+
if (e === void 0)
|
|
416
|
+
return [...d.values()];
|
|
417
|
+
const t = d.get(e);
|
|
418
|
+
return t ? [t] : [];
|
|
419
|
+
}, W = (e) => {
|
|
285
420
|
switch (e.kind) {
|
|
286
421
|
case "surface":
|
|
287
|
-
return
|
|
288
|
-
case "entity":
|
|
289
|
-
return `[data-agent-entity-id="${e.entityId}"]`;
|
|
422
|
+
return d.has(e.surfaceId);
|
|
290
423
|
case "action":
|
|
291
|
-
return
|
|
424
|
+
return r.has(e.actionId);
|
|
425
|
+
case "entity":
|
|
426
|
+
return F(e.surfaceId).some(
|
|
427
|
+
(t) => t.getProjection().entities?.some((n) => n.id === e.entityId) ?? !1
|
|
428
|
+
);
|
|
429
|
+
}
|
|
430
|
+
}, ue = (e) => {
|
|
431
|
+
switch (e.kind) {
|
|
432
|
+
case "present":
|
|
433
|
+
return W(e.ref);
|
|
434
|
+
case "absent":
|
|
435
|
+
return !W(e.ref);
|
|
292
436
|
case "route":
|
|
293
|
-
return
|
|
437
|
+
return _().route.pathname === e.pathname;
|
|
438
|
+
case "text": {
|
|
439
|
+
const t = e.text.toLowerCase();
|
|
440
|
+
return F(e.surfaceId).some((n) => {
|
|
441
|
+
const { entities: s = [], fields: i = [] } = n.getProjection();
|
|
442
|
+
return E(t, [n.label]) || s.some(
|
|
443
|
+
(c) => E(t, [
|
|
444
|
+
c.id,
|
|
445
|
+
c.label,
|
|
446
|
+
...Object.values(c.data ?? {})
|
|
447
|
+
])
|
|
448
|
+
) || i.some((c) => E(t, [c.label, c.value]));
|
|
449
|
+
});
|
|
450
|
+
}
|
|
451
|
+
case "field":
|
|
452
|
+
return d.get(e.surfaceId)?.getProjection().fields?.some(
|
|
453
|
+
(t) => t.name === e.name && t.value === e.value
|
|
454
|
+
) ?? !1;
|
|
294
455
|
}
|
|
295
|
-
},
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
}, R), Promise.resolve({ found: !0, bbox: n.getBoundingClientRect() })) : Promise.resolve({ found: !1 });
|
|
305
|
-
}, U = (e, t = {}) => {
|
|
306
|
-
const n = t.timeoutMs ?? 5e3, s = new Function("snap", `return (${e});`);
|
|
307
|
-
return new Promise((r, c) => {
|
|
308
|
-
const u = (i) => {
|
|
309
|
-
o(), c({ code: "aborted", message: i });
|
|
310
|
-
}, f = () => {
|
|
311
|
-
const i = $();
|
|
312
|
-
try {
|
|
313
|
-
if (s(i))
|
|
314
|
-
return o(), r(i), !0;
|
|
315
|
-
} catch (d) {
|
|
316
|
-
return u(`waitFor predicate threw: ${String(d)}`), !0;
|
|
317
|
-
}
|
|
318
|
-
return !1;
|
|
319
|
-
}, a = M((i) => {
|
|
320
|
-
(i.type === "snapshot.changed" || i.type === "registry.changed") && f();
|
|
321
|
-
}), v = window.setInterval(f, 100), w = window.setTimeout(() => {
|
|
322
|
-
u(`waitFor timed out after ${String(n)}ms: ${e}`);
|
|
323
|
-
}, n), A = () => {
|
|
324
|
-
u(`waitFor aborted: ${e}`);
|
|
456
|
+
}, de = (e, t = {}) => {
|
|
457
|
+
const n = Math.min(
|
|
458
|
+
Math.max(t.timeoutMs ?? le, 0),
|
|
459
|
+
fe
|
|
460
|
+
), { signal: s } = t;
|
|
461
|
+
return new Promise((i, c) => {
|
|
462
|
+
const f = {
|
|
463
|
+
code: "aborted",
|
|
464
|
+
message: "waitFor was aborted"
|
|
325
465
|
};
|
|
326
|
-
if (
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
return;
|
|
330
|
-
}
|
|
331
|
-
t.signal.addEventListener("abort", A);
|
|
332
|
-
}
|
|
333
|
-
function o() {
|
|
334
|
-
a(), window.clearInterval(v), window.clearTimeout(w), t.signal && t.signal.removeEventListener("abort", A);
|
|
466
|
+
if (s?.aborted) {
|
|
467
|
+
c(f);
|
|
468
|
+
return;
|
|
335
469
|
}
|
|
336
|
-
|
|
470
|
+
let g = !1;
|
|
471
|
+
const b = (o) => {
|
|
472
|
+
g || (g = !0, k(), window.clearInterval(j), window.clearTimeout(u), s?.removeEventListener("abort", L), o());
|
|
473
|
+
}, w = () => {
|
|
474
|
+
try {
|
|
475
|
+
if (ue(e)) {
|
|
476
|
+
const o = M();
|
|
477
|
+
b(() => {
|
|
478
|
+
i(o);
|
|
479
|
+
});
|
|
480
|
+
}
|
|
481
|
+
} catch (o) {
|
|
482
|
+
const p = C(o);
|
|
483
|
+
b(() => {
|
|
484
|
+
c(p);
|
|
485
|
+
});
|
|
486
|
+
}
|
|
487
|
+
}, L = () => {
|
|
488
|
+
b(() => {
|
|
489
|
+
c(f);
|
|
490
|
+
});
|
|
491
|
+
}, k = R((o) => {
|
|
492
|
+
(o.type === "snapshot.changed" || o.type === "registry.changed") && w();
|
|
493
|
+
}), j = window.setInterval(w, ge), u = window.setTimeout(() => {
|
|
494
|
+
const o = {
|
|
495
|
+
code: "timeout",
|
|
496
|
+
message: `waitFor: condition not met within ${String(n)} ms`
|
|
497
|
+
};
|
|
498
|
+
b(() => {
|
|
499
|
+
c(o);
|
|
500
|
+
});
|
|
501
|
+
}, n);
|
|
502
|
+
s?.addEventListener("abort", L), w();
|
|
337
503
|
});
|
|
338
|
-
}
|
|
339
|
-
return
|
|
504
|
+
};
|
|
505
|
+
return r.set("aegis.navigate", {
|
|
340
506
|
action: {
|
|
341
507
|
id: "aegis.navigate",
|
|
342
508
|
label: "Navigate",
|
|
343
|
-
description: "Navigate to a
|
|
509
|
+
description: "Navigate to a path in this app. `to` resolves from the current route as a URL path does (x from /gallery goes to /x); other origins are refused.",
|
|
344
510
|
paramsSchema: {
|
|
345
511
|
type: "object",
|
|
346
512
|
properties: { to: { type: "string" } },
|
|
@@ -348,44 +514,45 @@ function ne(m = {}) {
|
|
|
348
514
|
},
|
|
349
515
|
invocableBy: "both",
|
|
350
516
|
run: (e, t) => {
|
|
351
|
-
const n = e,
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
517
|
+
const n = X(V(e), _().route);
|
|
518
|
+
return t.navigate(n), { to: n };
|
|
519
|
+
},
|
|
520
|
+
dryRun: (e) => ({
|
|
521
|
+
summary: `would navigate to ${X(V(e), _().route)}`
|
|
522
|
+
})
|
|
356
523
|
},
|
|
357
524
|
source: { kind: "app", appId: "aegis" }
|
|
358
525
|
}), {
|
|
359
|
-
snapshot:
|
|
360
|
-
listActions:
|
|
361
|
-
getAction:
|
|
362
|
-
inspect:
|
|
363
|
-
search:
|
|
364
|
-
highlight:
|
|
365
|
-
waitFor:
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
subscribe:
|
|
369
|
-
onAskTriggered: (e) =>
|
|
526
|
+
snapshot: M,
|
|
527
|
+
listActions: J,
|
|
528
|
+
getAction: Q,
|
|
529
|
+
inspect: re,
|
|
530
|
+
search: ae,
|
|
531
|
+
highlight: ce,
|
|
532
|
+
waitFor: de,
|
|
533
|
+
dispatch: Y,
|
|
534
|
+
preview: Z,
|
|
535
|
+
subscribe: R,
|
|
536
|
+
onAskTriggered: (e) => R((t) => {
|
|
370
537
|
t.type === "ask.triggered" && e(t.context);
|
|
371
538
|
}),
|
|
372
539
|
emitAskTriggered: (e) => {
|
|
373
|
-
|
|
540
|
+
v({ type: "ask.triggered", context: e });
|
|
374
541
|
},
|
|
375
542
|
emitAskSubmit: (e) => {
|
|
376
|
-
|
|
543
|
+
v({ type: "ask.submit", request: e });
|
|
377
544
|
},
|
|
378
|
-
_register:
|
|
379
|
-
_registerSurface:
|
|
380
|
-
_registerSearchProvider:
|
|
381
|
-
setSelection:
|
|
382
|
-
_setShellSnapshot:
|
|
383
|
-
_setNavigate:
|
|
545
|
+
_register: ee,
|
|
546
|
+
_registerSurface: ne,
|
|
547
|
+
_registerSearchProvider: ie,
|
|
548
|
+
setSelection: se,
|
|
549
|
+
_setShellSnapshot: te,
|
|
550
|
+
_setNavigate: oe
|
|
384
551
|
};
|
|
385
552
|
}
|
|
386
553
|
export {
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
554
|
+
Te as createAegisRuntime,
|
|
555
|
+
me as defaultShellSnapshot,
|
|
556
|
+
we as findSurfaceContaining
|
|
390
557
|
};
|
|
391
558
|
//# sourceMappingURL=runtime.js.map
|