@declarion/react 0.142.0 → 0.147.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-lib/{Icons-Dzl-AkD_.d.ts → Icons-BdXCxyw3.d.ts} +0 -4
- package/dist-lib/api/access-expiry.js +1 -2
- package/dist-lib/api/agents.js +1 -2
- package/dist-lib/api/audience.js +1 -2
- package/dist-lib/api/auth-redirect.js +1 -2
- package/dist-lib/api/auth.js +1 -2
- package/dist-lib/api/batch.js +1 -2
- package/dist-lib/api/client.js +27 -28
- package/dist-lib/api/data.js +23 -24
- package/dist-lib/api/entities.js +36 -37
- package/dist-lib/api/events.js +6 -7
- package/dist-lib/api/fileReferences.js +1 -2
- package/dist-lib/api/params.js +1 -2
- package/dist-lib/api/properties.js +1 -2
- package/dist-lib/api/request-bounds.js +1 -2
- package/dist-lib/api/schema.js +5 -6
- package/dist-lib/api/session-renewal.js +6 -7
- package/dist-lib/api/status.js +1 -2
- package/dist-lib/app.js +154 -155
- package/dist-lib/components/actions/ActionButton.js +32 -33
- package/dist-lib/components/actions/ActionDialog.js +85 -86
- package/dist-lib/components/actions/ActionResultDialog.impl.js +48 -49
- package/dist-lib/components/actions/ActionResultDialog.js +1 -2
- package/dist-lib/components/actions/ActionRunner.js +96 -97
- package/dist-lib/components/actions/ObjectActionBar.js +49 -50
- package/dist-lib/components/actions/PropertyGridEditor.js +50 -51
- package/dist-lib/components/actions/ResponsiveActionBar.js +127 -128
- package/dist-lib/components/actions/RowActionsKebab.js +27 -28
- package/dist-lib/components/agents/AgentChatPanel.impl.js +317 -318
- package/dist-lib/components/agents/AgentChatPanel.js +1 -2
- package/dist-lib/components/agents/AgentConversationDrawer.js +6 -7
- package/dist-lib/components/agents/AgentElicitForm.js +13 -14
- package/dist-lib/components/agents/AgentOpenFollower.impl.js +1 -2
- package/dist-lib/components/agents/AgentOpenFollower.js +1 -2
- package/dist-lib/components/agents/AgentPicker.js +1 -2
- package/dist-lib/components/agents/ChatAttachments.js +22 -23
- package/dist-lib/components/agents/transcript-runs.js +1 -2
- package/dist-lib/components/chrome/AssociationTabs.js +44 -45
- package/dist-lib/components/chrome/AuditMetaStrip.js +1 -2
- package/dist-lib/components/chrome/Breadcrumbs.js +1 -2
- package/dist-lib/components/chrome/HighlightsStrip.js +1 -2
- package/dist-lib/components/chrome/PageHeader.js +12 -13
- package/dist-lib/components/chrome/PageShell.js +1 -2
- package/dist-lib/components/chrome/RecordHeader.js +1 -2
- package/dist-lib/components/chrome/headerActionZone.js +0 -1
- package/dist-lib/components/detail-layout/AssociatedBlock.js +463 -464
- package/dist-lib/components/detail-layout/AssociatedToolbar.js +43 -44
- package/dist-lib/components/detail-layout/ChildrenBlock.js +24 -25
- package/dist-lib/components/detail-layout/ChildrenCards.js +29 -30
- package/dist-lib/components/detail-layout/ChildrenList.js +23 -24
- package/dist-lib/components/detail-layout/ChildrenTable.js +50 -51
- package/dist-lib/components/detail-layout/ChildrenTimeline.js +164 -165
- package/dist-lib/components/detail-layout/DetailAuditStrip.js +14 -15
- package/dist-lib/components/detail-layout/DetailHighlights.js +23 -24
- package/dist-lib/components/detail-layout/DraggableChildrenTable.js +76 -77
- package/dist-lib/components/detail-layout/EditableChildrenTable.js +90 -91
- package/dist-lib/components/detail-layout/ErrorSummary.js +7 -8
- package/dist-lib/components/detail-layout/EvidenceBlock.js +15 -16
- package/dist-lib/components/detail-layout/FieldRow.js +11 -12
- package/dist-lib/components/detail-layout/FieldsBlock.js +31 -32
- package/dist-lib/components/detail-layout/LayoutColumn.js +1 -2
- package/dist-lib/components/detail-layout/LayoutRenderer.js +11 -12
- package/dist-lib/components/detail-layout/LayoutRow.js +1 -2
- package/dist-lib/components/detail-layout/LayoutTabs.js +23 -24
- package/dist-lib/components/detail-layout/PropertiesBlock.js +38 -39
- package/dist-lib/components/detail-layout/QuickAddForm.js +28 -29
- package/dist-lib/components/detail-layout/SectionBlock.js +9 -10
- package/dist-lib/components/detail-layout/StatusesBlock.js +1 -2
- package/dist-lib/components/detail-layout/TimelineComposer.js +19 -20
- package/dist-lib/components/detail-layout/blockMeta.js +1 -2
- package/dist-lib/components/detail-layout/useManualColumnResize.js +1 -2
- package/dist-lib/components/detail-layout/useQuickAdd.js +21 -22
- package/dist-lib/components/detail-layout/visibility.js +1 -2
- package/dist-lib/components/detail-layout/widgets/EntityScorecardWidget.js +25 -26
- package/dist-lib/components/detail-layout/widgets/JsonDiffWidget.js +18 -19
- package/dist-lib/components/detail-layout/widgets/MonacoJson.js +1 -2
- package/dist-lib/components/detail-layout/widgets/WidgetHost.js +10 -11
- package/dist-lib/components/detail-layout/widgets/builtins.js +1 -2
- package/dist-lib/components/detail-layout/widgets/canonicalizeJson.js +1 -2
- package/dist-lib/components/detail-layout/widgets/monacoBootstrap.js +1 -2
- package/dist-lib/components/detail-layout/widgets/registry.js +1 -2
- package/dist-lib/components/fields/BoolField.js +1 -2
- package/dist-lib/components/fields/EmailField.js +5 -6
- package/dist-lib/components/fields/EnumField.js +7 -8
- package/dist-lib/components/fields/FileReferenceField.js +18 -19
- package/dist-lib/components/fields/IntArrayField.js +11 -12
- package/dist-lib/components/fields/JsonEditor.js +1 -2
- package/dist-lib/components/fields/JsonField.js +1 -2
- package/dist-lib/components/fields/MultilangArrayField.js +22 -23
- package/dist-lib/components/fields/MultilangField.js +13 -14
- package/dist-lib/components/fields/MultilangTextField.js +13 -14
- package/dist-lib/components/fields/NumberField.js +5 -6
- package/dist-lib/components/fields/PasswordField.js +1 -2
- package/dist-lib/components/fields/PhoneField.js +24 -25
- package/dist-lib/components/fields/RefCombobox.js +42 -43
- package/dist-lib/components/fields/RefField.js +14 -15
- package/dist-lib/components/fields/RichTextField.js +29 -30
- package/dist-lib/components/fields/SecretField.js +1 -2
- package/dist-lib/components/fields/StringArrayField.js +29 -30
- package/dist-lib/components/fields/StringField.js +12 -13
- package/dist-lib/components/fields/StructureField.js +60 -61
- package/dist-lib/components/fields/TextField.js +18 -19
- package/dist-lib/components/fields/TimestampField.js +17 -18
- package/dist-lib/components/fields/UrlField.js +5 -6
- package/dist-lib/components/fields/cells/factories/badge.js +5 -6
- package/dist-lib/components/fields/cells/factories/boolPill.js +1 -2
- package/dist-lib/components/fields/cells/factories/code.js +1 -2
- package/dist-lib/components/fields/cells/factories/date.js +1 -2
- package/dist-lib/components/fields/cells/factories/email.js +1 -2
- package/dist-lib/components/fields/cells/factories/emptyCell.js +0 -1
- package/dist-lib/components/fields/cells/factories/fileReference.js +1 -2
- package/dist-lib/components/fields/cells/factories/host-icons.js +1 -2
- package/dist-lib/components/fields/cells/factories/json.js +1 -2
- package/dist-lib/components/fields/cells/factories/link.js +10 -11
- package/dist-lib/components/fields/cells/factories/markdown.js +14 -15
- package/dist-lib/components/fields/cells/factories/markdownPreview.js +1 -2
- package/dist-lib/components/fields/cells/factories/money.js +1 -2
- package/dist-lib/components/fields/cells/factories/multilangInline.js +1 -2
- package/dist-lib/components/fields/cells/factories/nextRun.js +8 -9
- package/dist-lib/components/fields/cells/factories/number.js +1 -2
- package/dist-lib/components/fields/cells/factories/passwordMask.js +1 -2
- package/dist-lib/components/fields/cells/factories/phone.js +1 -2
- package/dist-lib/components/fields/cells/factories/refLink.js +13 -14
- package/dist-lib/components/fields/cells/factories/richTextPreview.js +16 -17
- package/dist-lib/components/fields/cells/factories/statusPill.js +5 -6
- package/dist-lib/components/fields/cells/factories/tagList.js +6 -7
- package/dist-lib/components/fields/cells/factories/text.js +1 -2
- package/dist-lib/components/fields/cells/factories/timestamp.js +1 -2
- package/dist-lib/components/fields/cells/factories/url-helpers.js +1 -2
- package/dist-lib/components/fields/cells/factories/url.js +13 -14
- package/dist-lib/components/fields/cells/registry.js +1 -2
- package/dist-lib/components/fields/index.js +19 -20
- package/dist-lib/components/fields/langMap.js +1 -2
- package/dist-lib/components/fields/secretValue.js +1 -2
- package/dist-lib/components/file-widgets/CircleImage.js +1 -2
- package/dist-lib/components/file-widgets/DocumentCard.js +101 -102
- package/dist-lib/components/file-widgets/FileList.js +35 -36
- package/dist-lib/components/file-widgets/Grid.js +119 -120
- package/dist-lib/components/file-widgets/GridLazy.js +1 -2
- package/dist-lib/components/file-widgets/ImageWidget.js +189 -190
- package/dist-lib/components/file-widgets/LabeledSlots.js +14 -15
- package/dist-lib/components/file-widgets/SquareImage.js +1 -2
- package/dist-lib/components/file-widgets/UnknownFileWidget.js +1 -2
- package/dist-lib/components/file-widgets/UploadFailureText.js +1 -2
- package/dist-lib/components/file-widgets/WideBanner.js +1 -2
- package/dist-lib/components/file-widgets/builtins.js +1 -2
- package/dist-lib/components/file-widgets/cropper.js +1 -2
- package/dist-lib/components/file-widgets/draft-scope.js +1 -2
- package/dist-lib/components/file-widgets/helpers.js +1 -2
- package/dist-lib/components/file-widgets/host.js +33 -34
- package/dist-lib/components/file-widgets/payload.js +1 -2
- package/dist-lib/components/file-widgets/registry.js +1 -2
- package/dist-lib/components/file-widgets/upload.js +41 -42
- package/dist-lib/components/file-widgets/useEmbedFileSrc.js +12 -13
- package/dist-lib/components/file-widgets/useFileSelection.js +1 -2
- package/dist-lib/components/file-widgets/value.js +1 -2
- package/dist-lib/components/filters/FilterChips.js +15 -16
- package/dist-lib/components/filters/FilterConditionValue.js +15 -16
- package/dist-lib/components/filters/FilterDrawer.js +141 -142
- package/dist-lib/components/filters/FilterOmittedNotice.js +1 -2
- package/dist-lib/components/filters/filter-op-label.js +1 -2
- package/dist-lib/components/layout/CommandPalette.impl.js +24 -25
- package/dist-lib/components/layout/CommandPalette.js +1 -2
- package/dist-lib/components/layout/DirtyTabsCloseDialog.impl.js +15 -16
- package/dist-lib/components/layout/DirtyTabsCloseDialog.js +1 -2
- package/dist-lib/components/layout/ImpersonationBanner.impl.js +6 -7
- package/dist-lib/components/layout/ImpersonationBanner.js +1 -2
- package/dist-lib/components/layout/ImpersonationFrame.js +4 -5
- package/dist-lib/components/layout/ImpersonationStartModal.impl.js +4 -5
- package/dist-lib/components/layout/ImpersonationStartModal.js +1 -2
- package/dist-lib/components/layout/Layout.js +132 -140
- package/dist-lib/components/layout/Rail.js +11 -12
- package/dist-lib/components/layout/Sidebar.js +60 -61
- package/dist-lib/components/layout/TabStrip.js +66 -67
- package/dist-lib/components/layout/TenantChip.js +21 -22
- package/dist-lib/components/layout/TopBar.js +89 -90
- package/dist-lib/components/layout/tab-close.js +1 -2
- package/dist-lib/components/list/ColumnPicker.js +35 -36
- package/dist-lib/components/list/InlineEditCell.js +22 -23
- package/dist-lib/components/list/PeekFieldCell.js +7 -8
- package/dist-lib/components/list/QuickPeek.js +29 -30
- package/dist-lib/components/list/ViewSwitcher.js +44 -45
- package/dist-lib/components/list/peekDraftStore.js +1 -2
- package/dist-lib/components/pages/AdminCatalogPage.impl.js +59 -60
- package/dist-lib/components/pages/AdminCatalogPage.js +1 -2
- package/dist-lib/components/pages/DocumentsMenu.js +53 -54
- package/dist-lib/components/pages/ExportMenu.js +37 -38
- package/dist-lib/components/pages/NoScreensPage.impl.js +5 -6
- package/dist-lib/components/pages/NoScreensPage.js +1 -2
- package/dist-lib/components/pages/NotFoundPage.impl.js +7 -8
- package/dist-lib/components/pages/NotFoundPage.js +1 -2
- package/dist-lib/components/pages/RecordDocumentsPanel.js +40 -41
- package/dist-lib/components/pages/RecordNotesPanel.js +43 -44
- package/dist-lib/components/pages/RecordPanels.js +1 -2
- package/dist-lib/components/pages/SSOCallbackPage.impl.js +6 -7
- package/dist-lib/components/pages/SSOCallbackPage.js +1 -2
- package/dist-lib/components/pages/SmartDetailPage.impl.js +501 -502
- package/dist-lib/components/pages/SmartDetailPage.js +1 -2
- package/dist-lib/components/pages/SmartListPage.impl.js +316 -317
- package/dist-lib/components/pages/SmartListPage.js +1 -2
- package/dist-lib/components/pages/SmartRecordListPage.impl.js +316 -317
- package/dist-lib/components/pages/SmartRecordListPage.js +1 -2
- package/dist-lib/components/pages/auth/AuthShell.js +14 -15
- package/dist-lib/components/pages/auth/CodeInput.js +0 -1
- package/dist-lib/components/pages/auth/Forgot.impl.js +12 -13
- package/dist-lib/components/pages/auth/Forgot.js +1 -2
- package/dist-lib/components/pages/auth/Reset.impl.js +20 -21
- package/dist-lib/components/pages/auth/Reset.js +1 -2
- package/dist-lib/components/pages/auth/SignIn.js +44 -45
- package/dist-lib/components/pages/auth/SignUp.impl.js +35 -36
- package/dist-lib/components/pages/auth/SignUp.js +1 -2
- package/dist-lib/components/pages/auth/SignUpCode.js +17 -18
- package/dist-lib/components/pages/auth/TwoFA.impl.js +9 -10
- package/dist-lib/components/pages/auth/TwoFA.js +1 -2
- package/dist-lib/components/pages/auth/icons.js +1 -2
- package/dist-lib/components/pages/exportRequest.js +1 -2
- package/dist-lib/components/pages/list/DataCell.js +1 -2
- package/dist-lib/components/pages/list/DeleteViewDialog.js +5 -6
- package/dist-lib/components/pages/list/ListCardRow.js +53 -54
- package/dist-lib/components/pages/list/ListCardsBody.js +1 -2
- package/dist-lib/components/pages/list/ListFloatbar.js +25 -26
- package/dist-lib/components/pages/list/ListFooter.js +17 -18
- package/dist-lib/components/pages/list/ListHeader.js +31 -32
- package/dist-lib/components/pages/list/ListNoRows.js +32 -33
- package/dist-lib/components/pages/list/ListTable.js +29 -30
- package/dist-lib/components/pages/list/ListTableRow.js +1 -2
- package/dist-lib/components/pages/list/ListToolbar.js +58 -59
- package/dist-lib/components/pages/list/ListUrlBanner.js +1 -2
- package/dist-lib/components/pages/list/RowActionsCell.js +6 -7
- package/dist-lib/components/pages/list/RowContextMenu.js +1 -2
- package/dist-lib/components/pages/list/SaveViewDialog.js +5 -6
- package/dist-lib/components/pages/list/SortHeaderMenu.js +25 -26
- package/dist-lib/components/pages/list/cardProjection.js +16 -17
- package/dist-lib/components/pages/list/column-sizing.js +1 -2
- package/dist-lib/components/pages/list/columns.js +74 -75
- package/dist-lib/components/pages/list/filter-meta.js +1 -2
- package/dist-lib/components/pages/list/page-size.js +1 -2
- package/dist-lib/components/pages/list/sortable-header.js +1 -2
- package/dist-lib/components/pages/list/table-features.js +1 -2
- package/dist-lib/components/pages/list/use-filter-value-labels.js +15 -16
- package/dist-lib/components/pages/list/useActiveView.js +1 -2
- package/dist-lib/components/pages/list/useHeaderReorder.js +1 -2
- package/dist-lib/components/pages/list/useListColumnLayout.js +6 -7
- package/dist-lib/components/pages/list/useListFilterPresentation.js +1 -2
- package/dist-lib/components/pages/list/useListQuery.js +1 -2
- package/dist-lib/components/pages/list/useListRowInteraction.js +37 -38
- package/dist-lib/components/pages/list/useListSelection.js +16 -17
- package/dist-lib/components/pages/list/useListSort.js +1 -2
- package/dist-lib/components/pages/list/useListViews.js +31 -32
- package/dist-lib/components/pages/list/useRowMenu.js +20 -21
- package/dist-lib/components/pages/list/visible-filters.js +1 -2
- package/dist-lib/components/pages/profile/Preferences.impl.js +44 -45
- package/dist-lib/components/pages/profile/Preferences.js +1 -2
- package/dist-lib/components/pages/profile/Profile.impl.js +223 -224
- package/dist-lib/components/pages/profile/Profile.js +1 -2
- package/dist-lib/components/pages/tenant-params/TenantParamsPage.impl.js +133 -134
- package/dist-lib/components/pages/tenant-params/TenantParamsPage.js +1 -2
- package/dist-lib/components/params/ParamsBlock.js +30 -31
- package/dist-lib/components/params/param-editors.js +58 -59
- package/dist-lib/components/primitives/Avatar.js +1 -2
- package/dist-lib/components/primitives/BoolToggle.js +1 -2
- package/dist-lib/components/primitives/BrandGlyph.js +1 -2
- package/dist-lib/components/primitives/BrandLogo.js +1 -2
- package/dist-lib/components/primitives/Btn.js +1 -2
- package/dist-lib/components/primitives/Check.js +1 -2
- package/dist-lib/components/primitives/Chip.js +1 -2
- package/dist-lib/components/primitives/ClassifiedFieldLocked.js +1 -2
- package/dist-lib/components/primitives/Dropdown.js +2 -3
- package/dist-lib/components/primitives/Fields.js +128 -129
- package/dist-lib/components/primitives/HoverCard.js +2 -3
- package/dist-lib/components/primitives/IconBtn.js +1 -2
- package/dist-lib/components/primitives/Icons.js +1 -2
- package/dist-lib/components/primitives/Kbd.js +1 -2
- package/dist-lib/components/primitives/MenuItem.js +1 -2
- package/dist-lib/components/primitives/Pill.js +1 -2
- package/dist-lib/components/primitives/RecordIdBadge.js +1 -2
- package/dist-lib/components/primitives/RetryButton.js +5 -6
- package/dist-lib/components/primitives/RowField.js +1 -2
- package/dist-lib/components/primitives/SectionCard.js +1 -2
- package/dist-lib/components/primitives/Spinner.js +1 -2
- package/dist-lib/components/primitives/StatTile.js +1 -2
- package/dist-lib/components/primitives/Tooltip.js +1 -2
- package/dist-lib/components/primitives/dataTableStyles.js +1 -2
- package/dist-lib/components/shared/BlankScreen.js +1 -2
- package/dist-lib/components/shared/ChangePasswordDialog.impl.js +20 -21
- package/dist-lib/components/shared/ChangePasswordDialog.js +1 -2
- package/dist-lib/components/shared/ConfirmDialog.js +7 -8
- package/dist-lib/components/shared/ConnectionNotice.js +1 -2
- package/dist-lib/components/shared/CopyButton.js +1 -2
- package/dist-lib/components/shared/DynamicIcon.js +1 -2
- package/dist-lib/components/shared/EmptyState.js +1 -2
- package/dist-lib/components/shared/ErrorBoundary.js +10 -11
- package/dist-lib/components/shared/LoadingSkeleton.js +1 -2
- package/dist-lib/components/shared/LucideIcon.js +1 -2
- package/dist-lib/components/shared/Markdown.js +1 -2
- package/dist-lib/components/shared/MarkdownRenderer.js +22 -23
- package/dist-lib/components/shared/ModalFrame.js +1 -2
- package/dist-lib/components/shared/RefreshControl.js +6 -7
- package/dist-lib/components/shared/StatusGroupsDisplay.js +16 -17
- package/dist-lib/components/shared/StatusStepper.js +1 -2
- package/dist-lib/components/shared/toast/DeclarionToast.js +1 -2
- package/dist-lib/components/shared/useOwnRefresh.js +1 -2
- package/dist-lib/embed/EmbedAuthBootstrap.js +30 -31
- package/dist-lib/embed/EmbedContext.js +1 -2
- package/dist-lib/embed/EmbedDirtyReporter.js +6 -7
- package/dist-lib/embed/EmbedHistoryTracker.js +1 -2
- package/dist-lib/embed/EmbedLocationReporter.js +11 -12
- package/dist-lib/embed/EmbedResizeReporter.js +9 -10
- package/dist-lib/embed/EmbedUnsavedGuard.js +5 -6
- package/dist-lib/embed/embed-dirty.js +1 -2
- package/dist-lib/embed/embed-history.js +1 -2
- package/dist-lib/embed/embed-nav-guard.js +1 -2
- package/dist-lib/embed/file-src.js +12 -13
- package/dist-lib/embed/handshake.js +1 -2
- package/dist-lib/embed/params.js +1 -2
- package/dist-lib/embed/protocol.js +1 -2
- package/dist-lib/embed/screen-location.js +1 -2
- package/dist-lib/embed/theme.js +1 -2
- package/dist-lib/embed/token.js +1 -2
- package/dist-lib/embed/useEmbedNavigate.js +25 -26
- package/dist-lib/embed/useGlobalLinkInterceptor.js +9 -10
- package/dist-lib/hooks/useActionData.js +1 -2
- package/dist-lib/hooks/useActiveTabFollowsRoute.js +7 -8
- package/dist-lib/hooks/useAgentConversation.js +122 -123
- package/dist-lib/hooks/useAggregate.js +1 -2
- package/dist-lib/hooks/useAllEntityData.js +9 -10
- package/dist-lib/hooks/useAssociatedData.js +1 -2
- package/dist-lib/hooks/useAuth.js +26 -27
- package/dist-lib/hooks/useBranding.js +1 -2
- package/dist-lib/hooks/useBrandingChrome.js +16 -17
- package/dist-lib/hooks/useChildrenData.js +4 -5
- package/dist-lib/hooks/useColumns.js +1 -2
- package/dist-lib/hooks/useConnectionNotice.js +16 -17
- package/dist-lib/hooks/useCurrentLocation.js +1 -2
- package/dist-lib/hooks/useCurrentScreen.js +1 -2
- package/dist-lib/hooks/useCursorEntityData.js +1 -2
- package/dist-lib/hooks/useDebounce.js +1 -2
- package/dist-lib/hooks/useDisplayTimeZone.js +4 -5
- package/dist-lib/hooks/useDocumentTitle.js +5 -6
- package/dist-lib/hooks/useEntity.js +1 -2
- package/dist-lib/hooks/useEntityData.js +1 -2
- package/dist-lib/hooks/useFileReferenceJSON.js +9 -10
- package/dist-lib/hooks/useFilters.js +5 -6
- package/dist-lib/hooks/useFollowAgentOpen.js +40 -41
- package/dist-lib/hooks/useImpersonation.js +15 -16
- package/dist-lib/hooks/useIntentPrefetch.js +6 -7
- package/dist-lib/hooks/useJsonSnapshot.js +1 -2
- package/dist-lib/hooks/useLanguage.js +11 -12
- package/dist-lib/hooks/useLiveObject.js +6 -7
- package/dist-lib/hooks/useLongPress.js +1 -2
- package/dist-lib/hooks/useMutations.js +31 -32
- package/dist-lib/hooks/useObject.js +1 -2
- package/dist-lib/hooks/useObjectStatus.js +4 -5
- package/dist-lib/hooks/usePageState.js +9 -10
- package/dist-lib/hooks/usePageStateRuntime.js +16 -17
- package/dist-lib/hooks/usePageStateTtl.js +1 -2
- package/dist-lib/hooks/useParams.js +58 -59
- package/dist-lib/hooks/useProperties.js +5 -6
- package/dist-lib/hooks/useRealtimeThresholds.js +4 -5
- package/dist-lib/hooks/useRefRecords.js +31 -32
- package/dist-lib/hooks/useRegisterScreenTab.js +12 -13
- package/dist-lib/hooks/useResponsiveMode.js +1 -2
- package/dist-lib/hooks/useRowTenant.js +1 -2
- package/dist-lib/hooks/useSSE.js +100 -101
- package/dist-lib/hooks/useSchema.js +16 -17
- package/dist-lib/hooks/useScreen.js +1 -2
- package/dist-lib/hooks/useScreenBack.js +17 -18
- package/dist-lib/hooks/useScreenTab.js +1 -2
- package/dist-lib/hooks/useTabNavigate.js +25 -26
- package/dist-lib/hooks/useTabSearchMirror.js +6 -7
- package/dist-lib/hooks/useTabTitle.js +10 -11
- package/dist-lib/hooks/useText.js +6 -7
- package/dist-lib/hooks/useTimelineData.js +5 -6
- package/dist-lib/hooks/useUiPreferences.js +31 -32
- package/dist-lib/hooks/useUnsavedInput.js +1 -2
- package/dist-lib/hooks/useVersionWatcher.js +16 -17
- package/dist-lib/hooks/useViews.js +16 -17
- package/dist-lib/hooks/useWindowConversation.js +1 -2
- package/dist-lib/{icon-registry-CUT4eF63.d.ts → icon-registry-BY2tt-GF.d.ts} +0 -2
- package/dist-lib/icons.d.ts +2 -4
- package/dist-lib/icons.js +5 -5
- package/dist-lib/index.d.ts +4 -272
- package/dist-lib/index.js +129 -129
- package/dist-lib/lib/action-dispatch.js +1 -2
- package/dist-lib/lib/actions.js +26 -27
- package/dist-lib/lib/anchor.js +1 -2
- package/dist-lib/lib/brand-tokens.js +1 -2
- package/dist-lib/lib/branding.js +1 -2
- package/dist-lib/lib/canonical-url.js +1 -2
- package/dist-lib/lib/capabilityPrefetch.js +1 -2
- package/dist-lib/lib/child-config.js +1 -2
- package/dist-lib/lib/children-validation.js +2 -3
- package/dist-lib/lib/date-text.js +1 -2
- package/dist-lib/lib/decimal-text.js +1 -2
- package/dist-lib/lib/display-value.js +1 -2
- package/dist-lib/lib/document-templates.js +1 -2
- package/dist-lib/lib/download.js +13 -14
- package/dist-lib/lib/evidence-verdict.js +1 -2
- package/dist-lib/lib/failure.js +4 -5
- package/dist-lib/lib/field-classification.js +1 -2
- package/dist-lib/lib/field-regions.js +1 -2
- package/dist-lib/lib/filter-evaluator.js +1 -2
- package/dist-lib/lib/filters.js +1 -2
- package/dist-lib/lib/format-count.js +1 -2
- package/dist-lib/lib/html-state.js +1 -2
- package/dist-lib/lib/language.js +1 -2
- package/dist-lib/lib/longPressGesture.js +0 -1
- package/dist-lib/lib/mass-edit.js +1 -2
- package/dist-lib/lib/money-text.js +1 -2
- package/dist-lib/lib/number-text.js +1 -2
- package/dist-lib/lib/page-inset.js +1 -2
- package/dist-lib/lib/phone.js +1 -2
- package/dist-lib/lib/profile.js +1 -2
- package/dist-lib/lib/query-retry.js +1 -2
- package/dist-lib/lib/quick-add.js +1 -2
- package/dist-lib/lib/read-display-state.js +1 -2
- package/dist-lib/lib/realtime-query-keys.js +2 -3
- package/dist-lib/lib/realtime-reconcile.js +32 -33
- package/dist-lib/lib/realtime-resync.js +40 -41
- package/dist-lib/lib/record-documents-key.js +1 -2
- package/dist-lib/lib/ref-choices.js +1 -2
- package/dist-lib/lib/refetch-when-idle.js +1 -2
- package/dist-lib/lib/rich-text.js +1 -2
- package/dist-lib/lib/role-label.js +1 -2
- package/dist-lib/lib/rowClickGesture.js +1 -2
- package/dist-lib/lib/safe-url.js +1 -2
- package/dist-lib/lib/schema-routing.js +1 -2
- package/dist-lib/lib/screen-back.js +1 -2
- package/dist-lib/lib/scroll-restoration.js +21 -22
- package/dist-lib/lib/shortcut.js +1 -2
- package/dist-lib/lib/size-value.js +1 -2
- package/dist-lib/lib/sort.js +1 -2
- package/dist-lib/lib/timestamp.js +1 -2
- package/dist-lib/lib/toast.js +1 -2
- package/dist-lib/lib/ui-actions.js +43 -44
- package/dist-lib/lib/utils.js +1 -2
- package/dist-lib/lib/variants.js +1 -2
- package/dist-lib/lib/versionTracker.js +26 -27
- package/dist-lib/lib/viewport-category.js +1 -2
- package/dist-lib/lib/window-election.js +1 -2
- package/dist-lib/stores/auth.js +32 -33
- package/dist-lib/stores/icon-registry.js +1 -2
- package/dist-lib/stores/list-layout.js +0 -1
- package/dist-lib/stores/page-state.js +1 -2
- package/dist-lib/stores/preferences.js +1 -2
- package/dist-lib/stores/realtime.js +1 -2
- package/dist-lib/stores/screen-registry.js +1 -2
- package/dist-lib/stores/tabs.js +1 -2
- package/dist-lib/test/seed-schema.js +4 -5
- package/dist-lib/testing.d.ts +2 -4
- package/dist-lib/testing.js +49 -50
- package/dist-lib/types/api.js +1 -2
- package/dist-lib/types/fieldType.js +1 -2
- package/dist-lib/types/ordmap.js +1 -2
- package/dist-lib/types/schema.js +1 -2
- package/dist-lib/{useResponsiveMode-C4MeAgoS.d.ts → useResponsiveMode-BElw02Gh.d.ts} +1 -19
- package/dist-lib/vite/index.d.ts +0 -2
- package/dist-lib/vite/index.js +1 -2
- package/package.json +11 -11
|
@@ -1,74 +1,74 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
1
|
+
import { Icon as e } from "../primitives/Icons.js";
|
|
2
|
+
import { IconBtn as t } from "../primitives/IconBtn.js";
|
|
3
|
+
import { Btn as n } from "../primitives/Btn.js";
|
|
4
|
+
import { Spinner as r } from "../primitives/Spinner.js";
|
|
5
|
+
import { Markdown as i } from "../shared/Markdown.js";
|
|
6
|
+
import { useAgentConversation as a } from "../../hooks/useAgentConversation.js";
|
|
7
|
+
import { useWindowConversation as o } from "../../hooks/useWindowConversation.js";
|
|
8
|
+
import { AgentElicitForm as s } from "./AgentElicitForm.js";
|
|
9
|
+
import { AgentPicker as c } from "./AgentPicker.js";
|
|
10
|
+
import { fold as l } from "./transcript-runs.js";
|
|
11
|
+
import { useSchema as u } from "../../hooks/useSchema.js";
|
|
11
12
|
import { useParam as d } from "../../hooks/useParams.js";
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
let S = l(), { pathname: C } = ee(), { data: k } = n(), A = s ? t(S, C, k?.screens, k?.entities)?.title : void 0, M = l("errors"), [N, P] = E(""), [F, I] = E(null), L = T(null), [R, z] = E(!1), B = T(null), V = h({
|
|
13
|
+
import { coerceDisplayString as f } from "../../lib/display-value.js";
|
|
14
|
+
import { useText as p } from "../../hooks/useText.js";
|
|
15
|
+
import { useTabNavigate as m } from "../../hooks/useTabNavigate.js";
|
|
16
|
+
import { screenTitleForPath as h } from "../../types/schema.js";
|
|
17
|
+
import { useEntity as g } from "../../hooks/useEntity.js";
|
|
18
|
+
import { failureTitle as _ } from "../../lib/failure.js";
|
|
19
|
+
import { pluralText as v, textWithNodes as y } from "../../lib/language.js";
|
|
20
|
+
import { useFileSelection as b } from "../file-widgets/useFileSelection.js";
|
|
21
|
+
import { ComposerAttachments as x, MessageAttachments as S, replyFilesVisible as ee } from "./ChatAttachments.js";
|
|
22
|
+
import { useEffect as C, useRef as w, useState as T } from "react";
|
|
23
|
+
import { jsx as E, jsxs as D } from "react/jsx-runtime";
|
|
24
|
+
import { useLocation as te } from "react-router";
|
|
25
|
+
import ne from "react-textarea-autosize";
|
|
26
|
+
// src/components/agents/AgentChatPanel.impl.tsx
|
|
27
|
+
var re = 80;
|
|
28
|
+
function O({ open: n, onClose: i, context: d, title: f = "", askOnOpen: m, docked: g = !1 }) {
|
|
29
|
+
let v = a();
|
|
30
|
+
o(v.conversationId);
|
|
31
|
+
let S = p(), { pathname: ee } = te(), { data: O } = u(), k = d ? h(S, ee, O?.screens, O?.entities)?.title : void 0, j = p("errors"), [M, N] = T(""), [P, F] = T(null), I = w(null), [L, R] = T(!1), z = w(null), B = b({
|
|
32
32
|
entityCode: "agent_message",
|
|
33
33
|
fieldCode: "attachments"
|
|
34
|
-
}),
|
|
35
|
-
let e =
|
|
34
|
+
}), V = w(null), H = w(null), U = w(!0), [W, G] = T(!1), K = () => {
|
|
35
|
+
let e = H.current;
|
|
36
36
|
if (!e) return;
|
|
37
|
-
let t = e.scrollHeight - e.scrollTop - e.clientHeight <=
|
|
38
|
-
|
|
39
|
-
},
|
|
40
|
-
let t =
|
|
37
|
+
let t = e.scrollHeight - e.scrollTop - e.clientHeight <= re;
|
|
38
|
+
U.current = t, t && W && G(!1);
|
|
39
|
+
}, q = (e = "smooth") => {
|
|
40
|
+
let t = H.current;
|
|
41
41
|
t && (t.scrollTo({
|
|
42
42
|
top: t.scrollHeight,
|
|
43
43
|
behavior: e
|
|
44
|
-
}),
|
|
44
|
+
}), U.current = !0, G(!1));
|
|
45
45
|
};
|
|
46
|
-
if (
|
|
47
|
-
|
|
48
|
-
}, [
|
|
49
|
-
|
|
50
|
-
}, [
|
|
51
|
-
let
|
|
52
|
-
|
|
53
|
-
}, [
|
|
54
|
-
let
|
|
55
|
-
let t =
|
|
56
|
-
if ((e.trim() || t.length !== 0) &&
|
|
57
|
-
|
|
46
|
+
if (C(() => {
|
|
47
|
+
U.current ? q("smooth") : G(!0);
|
|
48
|
+
}, [v.messages]), C(() => {
|
|
49
|
+
n && q("instant");
|
|
50
|
+
}, [n]), C(() => {
|
|
51
|
+
let e = m?.trim();
|
|
52
|
+
n && e && I.current !== e && (I.current = e, z.current?.(e));
|
|
53
|
+
}, [n, m]), !n) return null;
|
|
54
|
+
let J = async (e) => {
|
|
55
|
+
let t = B.readyFiles, n = B.selections.filter((e) => e.state === "ready").map((e) => e.localId);
|
|
56
|
+
if ((e.trim() || t.length !== 0) && B.settled) {
|
|
57
|
+
F(null), N("");
|
|
58
58
|
try {
|
|
59
|
-
await
|
|
59
|
+
await v.send(e, d, t), B.release(n);
|
|
60
60
|
} catch (t) {
|
|
61
|
-
console.error("agent send failed", t),
|
|
61
|
+
console.error("agent send failed", t), F(_(j, t)), N(e);
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
};
|
|
65
|
-
|
|
66
|
-
let
|
|
67
|
-
e.key === "Enter" && !e.shiftKey && (e.preventDefault(),
|
|
68
|
-
},
|
|
69
|
-
return /* @__PURE__ */
|
|
65
|
+
z.current = J;
|
|
66
|
+
let Y = (e) => {
|
|
67
|
+
e.key === "Enter" && !e.shiftKey && (e.preventDefault(), J(M));
|
|
68
|
+
}, X = v.invocations.filter((e) => e.status === "pending_approval"), Z = v.invocations.filter((e) => e.kind === "input_request" && e.status === "pending_input"), fe = v.turns.filter((e) => e.status === "queued" || e.status === "running" || e.status === "waiting" || e.status === "failed"), pe = v.invocations.filter((e) => e.status === "outcome_unknown"), me = v.messages.length === 0 && !v.turn.streaming, he = X.length > 0 || Z.length > 0, Q = v.turn.streaming && !he || v.turns.some((e) => e.status === "running"), ge = v.messages.some((e) => e.role === "assistant" && e.streaming && e.content.length > 0), $ = (M.trim().length > 0 || B.readyFiles.length > 0) && B.settled;
|
|
69
|
+
return /* @__PURE__ */ D("aside", {
|
|
70
70
|
style: {
|
|
71
|
-
...
|
|
71
|
+
...g ? {
|
|
72
72
|
gridArea: "assistant",
|
|
73
73
|
minWidth: 0,
|
|
74
74
|
minHeight: 0
|
|
@@ -87,7 +87,7 @@ function k({ open: e, onClose: r, context: s, title: d = "", askOnOpen: f, docke
|
|
|
87
87
|
flexDirection: "column"
|
|
88
88
|
},
|
|
89
89
|
children: [
|
|
90
|
-
/* @__PURE__ */
|
|
90
|
+
/* @__PURE__ */ D("div", {
|
|
91
91
|
style: {
|
|
92
92
|
display: "flex",
|
|
93
93
|
alignItems: "center",
|
|
@@ -96,7 +96,7 @@ function k({ open: e, onClose: r, context: s, title: d = "", askOnOpen: f, docke
|
|
|
96
96
|
borderBottom: "1px solid var(--divider)"
|
|
97
97
|
},
|
|
98
98
|
children: [
|
|
99
|
-
/* @__PURE__ */
|
|
99
|
+
/* @__PURE__ */ E("span", {
|
|
100
100
|
style: {
|
|
101
101
|
width: 22,
|
|
102
102
|
height: 22,
|
|
@@ -106,21 +106,21 @@ function k({ open: e, onClose: r, context: s, title: d = "", askOnOpen: f, docke
|
|
|
106
106
|
alignItems: "center",
|
|
107
107
|
justifyContent: "center"
|
|
108
108
|
},
|
|
109
|
-
children: /* @__PURE__ */
|
|
109
|
+
children: /* @__PURE__ */ E(e.sparkle, {
|
|
110
110
|
size: 13,
|
|
111
111
|
style: { color: "var(--accent-foreground)" }
|
|
112
112
|
})
|
|
113
113
|
}),
|
|
114
|
-
/* @__PURE__ */
|
|
114
|
+
/* @__PURE__ */ D("div", {
|
|
115
115
|
style: { flex: 1 },
|
|
116
|
-
children: [/* @__PURE__ */
|
|
116
|
+
children: [/* @__PURE__ */ E("div", {
|
|
117
117
|
style: {
|
|
118
118
|
fontSize: 12.5,
|
|
119
119
|
fontWeight: 600,
|
|
120
120
|
color: "var(--text)"
|
|
121
121
|
},
|
|
122
|
-
children:
|
|
123
|
-
}), /* @__PURE__ */
|
|
122
|
+
children: f
|
|
123
|
+
}), /* @__PURE__ */ D("div", {
|
|
124
124
|
style: {
|
|
125
125
|
fontSize: 10.5,
|
|
126
126
|
color: "var(--text-3)",
|
|
@@ -128,63 +128,63 @@ function k({ open: e, onClose: r, context: s, title: d = "", askOnOpen: f, docke
|
|
|
128
128
|
alignItems: "center",
|
|
129
129
|
gap: 4
|
|
130
130
|
},
|
|
131
|
-
children: [/* @__PURE__ */
|
|
131
|
+
children: [/* @__PURE__ */ E("span", { style: {
|
|
132
132
|
width: 5,
|
|
133
133
|
height: 5,
|
|
134
134
|
background: "var(--success)",
|
|
135
135
|
borderRadius: 999
|
|
136
|
-
} }),
|
|
136
|
+
} }), y(S("agent.panel.context", "context: {context}"), { context: /* @__PURE__ */ E("span", { children: k || S("agent.panel.context_platform", "Platform") }) })]
|
|
137
137
|
})]
|
|
138
138
|
}),
|
|
139
|
-
|
|
139
|
+
v.messages.length > 0 && /* @__PURE__ */ E(t, {
|
|
140
140
|
size: 24,
|
|
141
|
-
icon: /* @__PURE__ */
|
|
142
|
-
onClick: () => void
|
|
141
|
+
icon: /* @__PURE__ */ E(e.copy, { size: 12 }),
|
|
142
|
+
onClick: () => void ue(S, v.messages),
|
|
143
143
|
title: S("agent.panel.copy_all", "Copy entire conversation")
|
|
144
144
|
}),
|
|
145
|
-
/* @__PURE__ */
|
|
145
|
+
/* @__PURE__ */ E(t, {
|
|
146
146
|
size: 24,
|
|
147
|
-
icon: /* @__PURE__ */
|
|
147
|
+
icon: /* @__PURE__ */ E(e.clock, { size: 12 }),
|
|
148
148
|
onClick: () => {
|
|
149
|
-
|
|
149
|
+
R((e) => !e), v.refreshConversations();
|
|
150
150
|
},
|
|
151
151
|
title: S("agent.panel.earlier", "Earlier conversations")
|
|
152
152
|
}),
|
|
153
|
-
|
|
153
|
+
v.conversationId && /* @__PURE__ */ E(t, {
|
|
154
154
|
size: 24,
|
|
155
|
-
icon: /* @__PURE__ */
|
|
156
|
-
onClick:
|
|
155
|
+
icon: /* @__PURE__ */ E(e.plus, { size: 12 }),
|
|
156
|
+
onClick: v.startNew,
|
|
157
157
|
title: S("agent.panel.new_conversation", "New conversation")
|
|
158
158
|
}),
|
|
159
|
-
/* @__PURE__ */
|
|
159
|
+
/* @__PURE__ */ E(t, {
|
|
160
160
|
size: 24,
|
|
161
|
-
icon: /* @__PURE__ */
|
|
161
|
+
icon: /* @__PURE__ */ E(e.settings, { size: 12 }),
|
|
162
162
|
title: S("agent.panel.preferences", "Preferences")
|
|
163
163
|
}),
|
|
164
|
-
/* @__PURE__ */
|
|
164
|
+
/* @__PURE__ */ E(t, {
|
|
165
165
|
size: 24,
|
|
166
|
-
icon: /* @__PURE__ */
|
|
167
|
-
onClick:
|
|
166
|
+
icon: /* @__PURE__ */ E(e.x, { size: 13 }),
|
|
167
|
+
onClick: i,
|
|
168
168
|
title: S("agent.panel.close", "Close")
|
|
169
169
|
})
|
|
170
170
|
]
|
|
171
171
|
}),
|
|
172
|
-
!
|
|
173
|
-
agents:
|
|
174
|
-
selectedId:
|
|
175
|
-
onSelect:
|
|
172
|
+
!v.conversationId && /* @__PURE__ */ E(c, {
|
|
173
|
+
agents: v.agents,
|
|
174
|
+
selectedId: v.selectedAgentId,
|
|
175
|
+
onSelect: v.selectAgent,
|
|
176
176
|
label: S("agent.panel.agent", "Agent")
|
|
177
177
|
}),
|
|
178
|
-
|
|
179
|
-
conversations:
|
|
180
|
-
currentId:
|
|
178
|
+
L && /* @__PURE__ */ E(ce, {
|
|
179
|
+
conversations: v.conversations,
|
|
180
|
+
currentId: v.conversationId,
|
|
181
181
|
onPick: (e) => {
|
|
182
|
-
|
|
182
|
+
v.setConversationId(e), R(!1);
|
|
183
183
|
}
|
|
184
184
|
}),
|
|
185
|
-
/* @__PURE__ */
|
|
186
|
-
ref:
|
|
187
|
-
onScroll:
|
|
185
|
+
/* @__PURE__ */ D("div", {
|
|
186
|
+
ref: H,
|
|
187
|
+
onScroll: K,
|
|
188
188
|
style: {
|
|
189
189
|
flex: 1,
|
|
190
190
|
overflowY: "auto",
|
|
@@ -195,24 +195,24 @@ function k({ open: e, onClose: r, context: s, title: d = "", askOnOpen: f, docke
|
|
|
195
195
|
position: "relative"
|
|
196
196
|
},
|
|
197
197
|
children: [
|
|
198
|
-
|
|
199
|
-
|
|
198
|
+
me && /* @__PURE__ */ E(A, { children: S("agent.panel.intro", "Hi — I can answer questions about your data, suggest actions, draft YAML definitions, and run allowed tools within your permissions. What would you like to do?") }),
|
|
199
|
+
l(v.messages, v.invocations).map((e) => e.kind === "message" ? /* @__PURE__ */ E(le, {
|
|
200
200
|
message: e.message,
|
|
201
|
-
turns:
|
|
202
|
-
}, e.message.id) : /* @__PURE__ */
|
|
203
|
-
|
|
204
|
-
|
|
201
|
+
turns: v.turns
|
|
202
|
+
}, e.message.id) : /* @__PURE__ */ E(se, { run: e }, e.id)),
|
|
203
|
+
fe.map((e) => /* @__PURE__ */ E(ie, { agentTurn: e }, e.id)),
|
|
204
|
+
X.map((e) => /* @__PURE__ */ E(de, {
|
|
205
205
|
tool: e,
|
|
206
|
-
onApprove: async (t) =>
|
|
207
|
-
onReject: async (t) =>
|
|
206
|
+
onApprove: async (t) => v.approve(e.id, t),
|
|
207
|
+
onReject: async (t) => v.reject(e.id, t)
|
|
208
208
|
}, e.id)),
|
|
209
|
-
|
|
210
|
-
...
|
|
211
|
-
onSubmit: (t) => void
|
|
212
|
-
onCancel: () => void
|
|
209
|
+
Z.map((e) => /* @__PURE__ */ E(s, {
|
|
210
|
+
...ae(S, e),
|
|
211
|
+
onSubmit: (t) => void v.submitInput(e.id, t),
|
|
212
|
+
onCancel: () => void v.cancelInput(e.id)
|
|
213
213
|
}, e.id)),
|
|
214
|
-
|
|
215
|
-
|
|
214
|
+
pe.map((e) => /* @__PURE__ */ E(oe, { invocation: e }, e.id)),
|
|
215
|
+
Q && !ge && /* @__PURE__ */ D("div", {
|
|
216
216
|
style: {
|
|
217
217
|
display: "flex",
|
|
218
218
|
gap: 6,
|
|
@@ -220,9 +220,9 @@ function k({ open: e, onClose: r, context: s, title: d = "", askOnOpen: f, docke
|
|
|
220
220
|
color: "var(--text-3)",
|
|
221
221
|
fontSize: 11.5
|
|
222
222
|
},
|
|
223
|
-
children: [/* @__PURE__ */
|
|
223
|
+
children: [/* @__PURE__ */ E(r, { size: 12 }), S("agent.panel.thinking", "Thinking…")]
|
|
224
224
|
}),
|
|
225
|
-
|
|
225
|
+
P && /* @__PURE__ */ E("div", {
|
|
226
226
|
style: {
|
|
227
227
|
padding: "8px 10px",
|
|
228
228
|
background: "var(--surface-2)",
|
|
@@ -231,12 +231,12 @@ function k({ open: e, onClose: r, context: s, title: d = "", askOnOpen: f, docke
|
|
|
231
231
|
fontSize: 11.5,
|
|
232
232
|
color: "var(--text-2)"
|
|
233
233
|
},
|
|
234
|
-
children: /* @__PURE__ */
|
|
234
|
+
children: /* @__PURE__ */ E("strong", { children: P })
|
|
235
235
|
})
|
|
236
236
|
]
|
|
237
237
|
}),
|
|
238
|
-
|
|
239
|
-
onClick: () =>
|
|
238
|
+
W && /* @__PURE__ */ D("button", {
|
|
239
|
+
onClick: () => q("smooth"),
|
|
240
240
|
style: {
|
|
241
241
|
position: "absolute",
|
|
242
242
|
right: 16,
|
|
@@ -255,21 +255,21 @@ function k({ open: e, onClose: r, context: s, title: d = "", askOnOpen: f, docke
|
|
|
255
255
|
gap: 4,
|
|
256
256
|
zIndex: 1
|
|
257
257
|
},
|
|
258
|
-
children: [/* @__PURE__ */
|
|
258
|
+
children: [/* @__PURE__ */ E(e.arrowDown, { size: 11 }), S("agent.panel.jump_latest", "Jump to latest")]
|
|
259
259
|
}),
|
|
260
|
-
/* @__PURE__ */
|
|
260
|
+
/* @__PURE__ */ D("div", {
|
|
261
261
|
style: {
|
|
262
262
|
padding: 10,
|
|
263
263
|
borderTop: "1px solid var(--divider)",
|
|
264
264
|
background: "var(--surface-2)"
|
|
265
265
|
},
|
|
266
266
|
children: [
|
|
267
|
-
/* @__PURE__ */
|
|
268
|
-
selections:
|
|
269
|
-
onCancel:
|
|
270
|
-
onRemove:
|
|
267
|
+
/* @__PURE__ */ E(x, {
|
|
268
|
+
selections: B.selections,
|
|
269
|
+
onCancel: B.cancel,
|
|
270
|
+
onRemove: B.remove
|
|
271
271
|
}),
|
|
272
|
-
|
|
272
|
+
B.failed && /* @__PURE__ */ E("div", {
|
|
273
273
|
role: "status",
|
|
274
274
|
style: {
|
|
275
275
|
fontSize: 11,
|
|
@@ -278,7 +278,7 @@ function k({ open: e, onClose: r, context: s, title: d = "", askOnOpen: f, docke
|
|
|
278
278
|
},
|
|
279
279
|
children: S("agent.panel.remove_failed_files", "Remove the files that failed to upload to send the message.")
|
|
280
280
|
}),
|
|
281
|
-
/* @__PURE__ */
|
|
281
|
+
/* @__PURE__ */ D("div", {
|
|
282
282
|
style: {
|
|
283
283
|
display: "flex",
|
|
284
284
|
alignItems: "flex-end",
|
|
@@ -289,10 +289,10 @@ function k({ open: e, onClose: r, context: s, title: d = "", askOnOpen: f, docke
|
|
|
289
289
|
borderRadius: "var(--radius-md)"
|
|
290
290
|
},
|
|
291
291
|
children: [
|
|
292
|
-
/* @__PURE__ */
|
|
293
|
-
value:
|
|
294
|
-
onChange: (e) =>
|
|
295
|
-
onKeyDown:
|
|
292
|
+
/* @__PURE__ */ E(ne, {
|
|
293
|
+
value: M,
|
|
294
|
+
onChange: (e) => N(e.target.value),
|
|
295
|
+
onKeyDown: Y,
|
|
296
296
|
placeholder: S("agent.panel.ask_placeholder", "Ask or describe what you want…"),
|
|
297
297
|
minRows: 1,
|
|
298
298
|
maxRows: 8,
|
|
@@ -309,24 +309,24 @@ function k({ open: e, onClose: r, context: s, title: d = "", askOnOpen: f, docke
|
|
|
309
309
|
fontFamily: "inherit"
|
|
310
310
|
}
|
|
311
311
|
}),
|
|
312
|
-
/* @__PURE__ */
|
|
313
|
-
ref:
|
|
312
|
+
/* @__PURE__ */ E("input", {
|
|
313
|
+
ref: V,
|
|
314
314
|
type: "file",
|
|
315
315
|
multiple: !0,
|
|
316
316
|
hidden: !0,
|
|
317
317
|
"data-testid": "agent-chat-file-input",
|
|
318
318
|
onChange: (e) => {
|
|
319
|
-
e.target.files &&
|
|
319
|
+
e.target.files && B.add(e.target.files), e.target.value = "";
|
|
320
320
|
}
|
|
321
321
|
}),
|
|
322
|
-
/* @__PURE__ */
|
|
322
|
+
/* @__PURE__ */ E(t, {
|
|
323
323
|
size: 26,
|
|
324
|
-
icon: /* @__PURE__ */
|
|
325
|
-
onClick: () =>
|
|
324
|
+
icon: /* @__PURE__ */ E(e.paperclip, { size: 12 }),
|
|
325
|
+
onClick: () => V.current?.click(),
|
|
326
326
|
title: S("agent.panel.attach_files", "Attach files")
|
|
327
327
|
}),
|
|
328
|
-
|
|
329
|
-
onClick: () => void
|
|
328
|
+
Q ? /* @__PURE__ */ E("button", {
|
|
329
|
+
onClick: () => void v.cancel(),
|
|
330
330
|
"aria-label": S("agent.panel.stop", "Stop generating"),
|
|
331
331
|
title: S("agent.panel.stop", "Stop generating"),
|
|
332
332
|
style: {
|
|
@@ -341,9 +341,9 @@ function k({ open: e, onClose: r, context: s, title: d = "", askOnOpen: f, docke
|
|
|
341
341
|
alignItems: "center",
|
|
342
342
|
justifyContent: "center"
|
|
343
343
|
},
|
|
344
|
-
children: /* @__PURE__ */
|
|
345
|
-
}) : /* @__PURE__ */
|
|
346
|
-
onClick: () => void
|
|
344
|
+
children: /* @__PURE__ */ E(e.x, { size: 13 })
|
|
345
|
+
}) : /* @__PURE__ */ E("button", {
|
|
346
|
+
onClick: () => void J(M),
|
|
347
347
|
disabled: !$,
|
|
348
348
|
"aria-label": S("agent.panel.send", "Send"),
|
|
349
349
|
style: {
|
|
@@ -358,11 +358,11 @@ function k({ open: e, onClose: r, context: s, title: d = "", askOnOpen: f, docke
|
|
|
358
358
|
alignItems: "center",
|
|
359
359
|
justifyContent: "center"
|
|
360
360
|
},
|
|
361
|
-
children: /* @__PURE__ */
|
|
361
|
+
children: /* @__PURE__ */ E(e.arrowUp, { size: 13 })
|
|
362
362
|
})
|
|
363
363
|
]
|
|
364
364
|
}),
|
|
365
|
-
/* @__PURE__ */
|
|
365
|
+
/* @__PURE__ */ D("div", {
|
|
366
366
|
style: {
|
|
367
367
|
display: "flex",
|
|
368
368
|
alignItems: "center",
|
|
@@ -371,15 +371,15 @@ function k({ open: e, onClose: r, context: s, title: d = "", askOnOpen: f, docke
|
|
|
371
371
|
fontSize: 10.5,
|
|
372
372
|
color: "var(--text-4)"
|
|
373
373
|
},
|
|
374
|
-
children: [/* @__PURE__ */
|
|
374
|
+
children: [/* @__PURE__ */ E(e.shield, { size: 10 }), /* @__PURE__ */ E("span", { children: S("agent.panel.footer", "Runs within your permissions. All actions audit-logged.") })]
|
|
375
375
|
})
|
|
376
376
|
]
|
|
377
377
|
})
|
|
378
378
|
]
|
|
379
379
|
});
|
|
380
380
|
}
|
|
381
|
-
function
|
|
382
|
-
return /* @__PURE__ */
|
|
381
|
+
function k() {
|
|
382
|
+
return /* @__PURE__ */ E("span", {
|
|
383
383
|
"aria-hidden": !0,
|
|
384
384
|
style: {
|
|
385
385
|
display: "inline-block",
|
|
@@ -392,16 +392,16 @@ function A() {
|
|
|
392
392
|
}
|
|
393
393
|
});
|
|
394
394
|
}
|
|
395
|
-
function
|
|
396
|
-
return /* @__PURE__ */
|
|
397
|
-
"data-message-id":
|
|
398
|
-
"data-streaming":
|
|
395
|
+
function A({ children: t, dataMessageId: n, dataStreaming: r }) {
|
|
396
|
+
return /* @__PURE__ */ D("div", {
|
|
397
|
+
"data-message-id": n,
|
|
398
|
+
"data-streaming": r ? "true" : void 0,
|
|
399
399
|
style: {
|
|
400
400
|
display: "flex",
|
|
401
401
|
gap: 8,
|
|
402
402
|
alignItems: "flex-start"
|
|
403
403
|
},
|
|
404
|
-
children: [/* @__PURE__ */
|
|
404
|
+
children: [/* @__PURE__ */ E("span", {
|
|
405
405
|
style: {
|
|
406
406
|
width: 20,
|
|
407
407
|
height: 20,
|
|
@@ -414,8 +414,8 @@ function j({ children: e, dataMessageId: t, dataStreaming: n }) {
|
|
|
414
414
|
flexShrink: 0,
|
|
415
415
|
marginTop: 2
|
|
416
416
|
},
|
|
417
|
-
children: /* @__PURE__ */
|
|
418
|
-
}), /* @__PURE__ */
|
|
417
|
+
children: /* @__PURE__ */ E(e.sparkle, { size: 11 })
|
|
418
|
+
}), /* @__PURE__ */ E("div", {
|
|
419
419
|
style: {
|
|
420
420
|
flex: 1,
|
|
421
421
|
minWidth: 0,
|
|
@@ -423,42 +423,42 @@ function j({ children: e, dataMessageId: t, dataStreaming: n }) {
|
|
|
423
423
|
lineHeight: 1.55,
|
|
424
424
|
color: "var(--text)"
|
|
425
425
|
},
|
|
426
|
-
children:
|
|
426
|
+
children: t
|
|
427
427
|
})]
|
|
428
428
|
});
|
|
429
429
|
}
|
|
430
|
-
function
|
|
431
|
-
let
|
|
432
|
-
return /* @__PURE__ */
|
|
433
|
-
"data-agent-turn":
|
|
434
|
-
"data-turn-status":
|
|
430
|
+
function ie({ agentTurn: e }) {
|
|
431
|
+
let t = p(), n = p("errors"), r = g("agent_turn")?.fields.get("status"), i = e.status === "failed" ? n(e.error_code ?? "", f(e.error_details) || n("agents.turn_failed", "The assistant could not finish this turn.")) : void 0;
|
|
432
|
+
return /* @__PURE__ */ D("div", {
|
|
433
|
+
"data-agent-turn": e.id,
|
|
434
|
+
"data-turn-status": e.status,
|
|
435
435
|
style: {
|
|
436
436
|
fontSize: 11.5,
|
|
437
437
|
color: "var(--text-3)"
|
|
438
438
|
},
|
|
439
439
|
children: [
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
440
|
+
e.status === "queued" && (t(r?.values?.find((e) => e.code === "queued")?.name) || e.status),
|
|
441
|
+
e.status === "running" && t("agent.panel.turn_working", "Working…"),
|
|
442
|
+
e.status === "waiting" && t("agent.panel.turn_waiting", "Waiting for your response"),
|
|
443
|
+
e.status === "failed" && t("agent.panel.turn_unfinished", "The agent couldn't finish: {reason}", { reason: i ?? "" })
|
|
444
444
|
]
|
|
445
445
|
});
|
|
446
446
|
}
|
|
447
|
-
function
|
|
447
|
+
function ae(e, t) {
|
|
448
448
|
let n = e("agent.panel.input_needed", "Your response is needed."), r = t.question;
|
|
449
449
|
if (r && (r.message || r.schema)) return {
|
|
450
450
|
message: r.message || t.reason || n,
|
|
451
|
-
schema:
|
|
451
|
+
schema: j(r.schema) ? r.schema : {}
|
|
452
452
|
};
|
|
453
453
|
let i = t.params ?? {};
|
|
454
454
|
return {
|
|
455
455
|
message: typeof i.message == "string" ? i.message : t.reason || n,
|
|
456
|
-
schema:
|
|
456
|
+
schema: j(i.schema) ? i.schema : {}
|
|
457
457
|
};
|
|
458
458
|
}
|
|
459
|
-
function
|
|
460
|
-
let t =
|
|
461
|
-
return /* @__PURE__ */
|
|
459
|
+
function oe({ invocation: e }) {
|
|
460
|
+
let t = p();
|
|
461
|
+
return /* @__PURE__ */ E("div", {
|
|
462
462
|
"data-agent-invocation": e.id,
|
|
463
463
|
"data-invocation-status": "outcome_unknown",
|
|
464
464
|
style: {
|
|
@@ -469,33 +469,33 @@ function ae({ invocation: e }) {
|
|
|
469
469
|
fontSize: 11.5,
|
|
470
470
|
color: "var(--text-2)"
|
|
471
471
|
},
|
|
472
|
-
children:
|
|
472
|
+
children: y(t("agent.panel.outcome_uncertain", "The outcome of {tool} is unknown. It was not retried automatically."), { tool: /* @__PURE__ */ E("span", {
|
|
473
473
|
className: "mono",
|
|
474
474
|
children: e.tool_code
|
|
475
475
|
}) })
|
|
476
476
|
});
|
|
477
477
|
}
|
|
478
|
-
function
|
|
478
|
+
function j(e) {
|
|
479
479
|
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
480
480
|
}
|
|
481
|
-
function
|
|
482
|
-
let [t, n] =
|
|
483
|
-
return /* @__PURE__ */
|
|
481
|
+
function se({ run: e }) {
|
|
482
|
+
let [t, n] = T(!1), r = M(), i = e.calls.filter((e) => e.isError).length, a = e.calls.filter((e) => !P(e.status)).length;
|
|
483
|
+
return /* @__PURE__ */ D("div", {
|
|
484
484
|
"data-activity-run": e.id,
|
|
485
485
|
style: {
|
|
486
486
|
display: "flex",
|
|
487
487
|
gap: 8,
|
|
488
488
|
alignItems: "flex-start"
|
|
489
489
|
},
|
|
490
|
-
children: [/* @__PURE__ */
|
|
490
|
+
children: [/* @__PURE__ */ E("span", { style: {
|
|
491
491
|
width: 20,
|
|
492
492
|
flexShrink: 0
|
|
493
|
-
} }), /* @__PURE__ */
|
|
493
|
+
} }), /* @__PURE__ */ D("div", {
|
|
494
494
|
style: {
|
|
495
495
|
flex: 1,
|
|
496
496
|
minWidth: 0
|
|
497
497
|
},
|
|
498
|
-
children: [/* @__PURE__ */
|
|
498
|
+
children: [/* @__PURE__ */ D("button", {
|
|
499
499
|
type: "button",
|
|
500
500
|
onClick: () => n((e) => !e),
|
|
501
501
|
"data-activity-toggle": !0,
|
|
@@ -513,41 +513,41 @@ function oe({ run: e }) {
|
|
|
513
513
|
borderRadius: 999,
|
|
514
514
|
cursor: "pointer"
|
|
515
515
|
},
|
|
516
|
-
children: [/* @__PURE__ */
|
|
516
|
+
children: [/* @__PURE__ */ E("span", {
|
|
517
517
|
"aria-hidden": !0,
|
|
518
518
|
children: t ? "▾" : "▸"
|
|
519
|
-
}), /* @__PURE__ */
|
|
520
|
-
}), t && /* @__PURE__ */
|
|
519
|
+
}), /* @__PURE__ */ E("span", { children: r(e.calls.length, a, i) })]
|
|
520
|
+
}), t && /* @__PURE__ */ E("div", {
|
|
521
521
|
style: {
|
|
522
522
|
marginTop: 4,
|
|
523
523
|
display: "flex",
|
|
524
524
|
flexDirection: "column",
|
|
525
525
|
gap: 3
|
|
526
526
|
},
|
|
527
|
-
children: e.calls.map((e) => /* @__PURE__ */
|
|
527
|
+
children: e.calls.map((e) => /* @__PURE__ */ E(N, { call: e }, e.id))
|
|
528
528
|
})]
|
|
529
529
|
})]
|
|
530
530
|
});
|
|
531
531
|
}
|
|
532
|
-
function
|
|
533
|
-
let e =
|
|
534
|
-
return (t, n,
|
|
535
|
-
let
|
|
536
|
-
return t > 0 &&
|
|
532
|
+
function M() {
|
|
533
|
+
let e = p();
|
|
534
|
+
return (t, n, r) => {
|
|
535
|
+
let i = [];
|
|
536
|
+
return t > 0 && i.push(v(e, "agent.panel.operations", t, {
|
|
537
537
|
one: "{count} operation",
|
|
538
538
|
other: "{count} operations"
|
|
539
|
-
})), n > 0 &&
|
|
539
|
+
})), n > 0 && i.push(e("agent.panel.running", "running")), r > 0 && i.push(v(e, "agent.panel.failed_count", r, {
|
|
540
540
|
one: "{count} failed",
|
|
541
541
|
other: "{count} failed"
|
|
542
|
-
})),
|
|
542
|
+
})), i.join(" · ") || e("agent.panel.worked", "worked");
|
|
543
543
|
};
|
|
544
544
|
}
|
|
545
|
-
function
|
|
546
|
-
let [t, n] =
|
|
547
|
-
return /* @__PURE__ */
|
|
545
|
+
function N({ call: e }) {
|
|
546
|
+
let [t, n] = T(!1), r = p(), i = F(e.name), a = g("agent_tool_invocation")?.fields.get("status"), o = e.status ?? "running", s = r(a?.values?.find((e) => e.code === o)?.name) || o, c = e.status === "outcome_unknown" ? "outcome_unknown" : e.isError ? "failed" : P(e.status) ? "ok" : "running";
|
|
547
|
+
return /* @__PURE__ */ D("div", {
|
|
548
548
|
"data-activity-call": e.name,
|
|
549
549
|
"data-call-state": c,
|
|
550
|
-
children: [/* @__PURE__ */
|
|
550
|
+
children: [/* @__PURE__ */ D("button", {
|
|
551
551
|
type: "button",
|
|
552
552
|
onClick: () => n((e) => !e),
|
|
553
553
|
style: {
|
|
@@ -562,20 +562,20 @@ function P({ call: e }) {
|
|
|
562
562
|
color: c === "failed" ? "var(--danger)" : "var(--text-2)"
|
|
563
563
|
},
|
|
564
564
|
children: [
|
|
565
|
-
/* @__PURE__ */
|
|
565
|
+
/* @__PURE__ */ E("span", {
|
|
566
566
|
"aria-hidden": !0,
|
|
567
567
|
children: t ? "▾" : "▸"
|
|
568
568
|
}),
|
|
569
|
-
/* @__PURE__ */
|
|
569
|
+
/* @__PURE__ */ E("span", {
|
|
570
570
|
className: "mono",
|
|
571
571
|
children: i
|
|
572
572
|
}),
|
|
573
|
-
/* @__PURE__ */
|
|
573
|
+
/* @__PURE__ */ E("span", {
|
|
574
574
|
style: { color: "var(--text-3)" },
|
|
575
575
|
children: s
|
|
576
576
|
})
|
|
577
577
|
]
|
|
578
|
-
}), t && /* @__PURE__ */
|
|
578
|
+
}), t && /* @__PURE__ */ E("pre", {
|
|
579
579
|
style: {
|
|
580
580
|
margin: "2px 0 0 18px",
|
|
581
581
|
padding: 6,
|
|
@@ -596,26 +596,26 @@ function P({ call: e }) {
|
|
|
596
596
|
})]
|
|
597
597
|
});
|
|
598
598
|
}
|
|
599
|
-
function
|
|
599
|
+
function P(e) {
|
|
600
600
|
return e === "succeeded" || e === "failed" || e === "rejected" || e === "canceled" || e === "outcome_unknown";
|
|
601
601
|
}
|
|
602
|
-
function
|
|
603
|
-
let r =
|
|
604
|
-
return e.length === 0 ? /* @__PURE__ */
|
|
602
|
+
function ce({ conversations: e, currentId: t, onPick: n }) {
|
|
603
|
+
let r = p();
|
|
604
|
+
return e.length === 0 ? /* @__PURE__ */ E("div", {
|
|
605
605
|
style: {
|
|
606
606
|
padding: "8px 12px",
|
|
607
607
|
fontSize: 11.5,
|
|
608
608
|
color: "var(--text-3)"
|
|
609
609
|
},
|
|
610
610
|
children: r("agent.panel.no_earlier", "No earlier conversations.")
|
|
611
|
-
}) : /* @__PURE__ */
|
|
611
|
+
}) : /* @__PURE__ */ E("div", {
|
|
612
612
|
"data-conversation-list": !0,
|
|
613
613
|
style: {
|
|
614
614
|
maxHeight: 200,
|
|
615
615
|
overflowY: "auto",
|
|
616
616
|
borderBottom: "1px solid var(--border)"
|
|
617
617
|
},
|
|
618
|
-
children: e.map((e) => /* @__PURE__ */
|
|
618
|
+
children: e.map((e) => /* @__PURE__ */ E("button", {
|
|
619
619
|
type: "button",
|
|
620
620
|
"data-conversation-id": e.id,
|
|
621
621
|
onClick: () => n(e.id),
|
|
@@ -634,22 +634,22 @@ function se({ conversations: e, currentId: t, onPick: n }) {
|
|
|
634
634
|
}, e.id))
|
|
635
635
|
});
|
|
636
636
|
}
|
|
637
|
-
function
|
|
638
|
-
let t =
|
|
639
|
-
return
|
|
637
|
+
function F(e) {
|
|
638
|
+
let t = p(), { value: n } = d("agents.transcript_names", "code"), { data: r } = u();
|
|
639
|
+
return n === "display" && t(r?.actions?.[e]?.display?.name ?? I(r, e)) || e;
|
|
640
640
|
}
|
|
641
|
-
function
|
|
641
|
+
function I(e, t) {
|
|
642
642
|
let n = t.indexOf(".");
|
|
643
643
|
if (!(n < 0)) return e?.entities?.[t.slice(0, n)]?.actions?.[t.slice(n + 1)]?.display?.name;
|
|
644
644
|
}
|
|
645
|
-
function
|
|
646
|
-
let n =
|
|
645
|
+
function le({ message: e, turns: t }) {
|
|
646
|
+
let n = ee(e, t) ? e.attachments : void 0;
|
|
647
647
|
if (e.role === "user") {
|
|
648
|
-
let t =
|
|
649
|
-
return e.content.some((e) => e.type !== "text" && e.type !== "location") ? /* @__PURE__ */
|
|
648
|
+
let t = U(e.content);
|
|
649
|
+
return e.content.some((e) => e.type !== "text" && e.type !== "location") ? /* @__PURE__ */ E(L, {
|
|
650
650
|
message: e,
|
|
651
651
|
files: n
|
|
652
|
-
}) : /* @__PURE__ */
|
|
652
|
+
}) : /* @__PURE__ */ D("div", {
|
|
653
653
|
style: {
|
|
654
654
|
alignSelf: "flex-end",
|
|
655
655
|
maxWidth: "80%",
|
|
@@ -659,7 +659,7 @@ function ce({ message: e, turns: t }) {
|
|
|
659
659
|
},
|
|
660
660
|
"data-message-id": e.id,
|
|
661
661
|
"data-streaming": e.streaming ? "true" : void 0,
|
|
662
|
-
children: [t && /* @__PURE__ */
|
|
662
|
+
children: [t && /* @__PURE__ */ E("div", {
|
|
663
663
|
style: {
|
|
664
664
|
padding: "8px 12px",
|
|
665
665
|
background: "var(--inverted-surface)",
|
|
@@ -669,30 +669,30 @@ function ce({ message: e, turns: t }) {
|
|
|
669
669
|
lineHeight: 1.5
|
|
670
670
|
},
|
|
671
671
|
children: t
|
|
672
|
-
}), /* @__PURE__ */
|
|
672
|
+
}), /* @__PURE__ */ E(S, {
|
|
673
673
|
files: n,
|
|
674
674
|
align: "end"
|
|
675
675
|
})]
|
|
676
676
|
});
|
|
677
677
|
}
|
|
678
|
-
return e.role === "tool" ? /* @__PURE__ */
|
|
678
|
+
return e.role === "tool" ? /* @__PURE__ */ E(L, { message: e }) : e.role === "system" ? e.content.some((e) => e.type === "decision") ? /* @__PURE__ */ E(L, { message: e }) : /* @__PURE__ */ E(A, {
|
|
679
679
|
dataMessageId: e.id,
|
|
680
|
-
children: e.content.map((e, t) => /* @__PURE__ */
|
|
681
|
-
}) : e.content.length === 0 && !n?.length ? null : /* @__PURE__ */
|
|
680
|
+
children: e.content.map((e, t) => /* @__PURE__ */ E(V, { block: e }, t))
|
|
681
|
+
}) : e.content.length === 0 && !n?.length ? null : /* @__PURE__ */ D(A, {
|
|
682
682
|
dataMessageId: e.id,
|
|
683
683
|
dataStreaming: e.streaming,
|
|
684
684
|
children: [
|
|
685
|
-
e.content.map((e, t) => /* @__PURE__ */
|
|
686
|
-
e.streaming && /* @__PURE__ */
|
|
687
|
-
/* @__PURE__ */
|
|
685
|
+
e.content.map((e, t) => /* @__PURE__ */ E(V, { block: e }, t)),
|
|
686
|
+
e.streaming && /* @__PURE__ */ E(k, {}),
|
|
687
|
+
/* @__PURE__ */ E(S, {
|
|
688
688
|
files: n,
|
|
689
689
|
align: "start"
|
|
690
690
|
})
|
|
691
691
|
]
|
|
692
692
|
});
|
|
693
693
|
}
|
|
694
|
-
function
|
|
695
|
-
return /* @__PURE__ */
|
|
694
|
+
function L({ message: e, files: t }) {
|
|
695
|
+
return /* @__PURE__ */ D("div", {
|
|
696
696
|
"data-message-id": e.id,
|
|
697
697
|
"data-streaming": e.streaming ? "true" : void 0,
|
|
698
698
|
style: {
|
|
@@ -702,18 +702,18 @@ function R({ message: e, files: t }) {
|
|
|
702
702
|
flexDirection: "column",
|
|
703
703
|
alignItems: "flex-end"
|
|
704
704
|
},
|
|
705
|
-
children: [e.content.map((e, t) => /* @__PURE__ */
|
|
705
|
+
children: [e.content.map((e, t) => /* @__PURE__ */ E(V, { block: e }, t)), /* @__PURE__ */ E(S, {
|
|
706
706
|
files: t,
|
|
707
707
|
align: "end"
|
|
708
708
|
})]
|
|
709
709
|
});
|
|
710
710
|
}
|
|
711
|
-
function
|
|
712
|
-
let r =
|
|
711
|
+
function R({ href: e, children: t, ...n }) {
|
|
712
|
+
let r = m(), i = {
|
|
713
713
|
color: "var(--accent-text)",
|
|
714
714
|
textDecoration: "underline"
|
|
715
|
-
}, a =
|
|
716
|
-
return a ? /* @__PURE__ */
|
|
715
|
+
}, a = z(e);
|
|
716
|
+
return a ? /* @__PURE__ */ E("a", {
|
|
717
717
|
...n,
|
|
718
718
|
href: e,
|
|
719
719
|
style: i,
|
|
@@ -721,7 +721,7 @@ function z({ href: e, children: t, ...n }) {
|
|
|
721
721
|
e.preventDefault(), r(a);
|
|
722
722
|
},
|
|
723
723
|
children: t
|
|
724
|
-
}) : /* @__PURE__ */
|
|
724
|
+
}) : /* @__PURE__ */ E("a", {
|
|
725
725
|
...n,
|
|
726
726
|
href: e,
|
|
727
727
|
target: "_blank",
|
|
@@ -730,7 +730,7 @@ function z({ href: e, children: t, ...n }) {
|
|
|
730
730
|
children: t
|
|
731
731
|
});
|
|
732
732
|
}
|
|
733
|
-
function
|
|
733
|
+
function z(e) {
|
|
734
734
|
if (typeof e != "string") return null;
|
|
735
735
|
let t;
|
|
736
736
|
try {
|
|
@@ -740,10 +740,10 @@ function B(e) {
|
|
|
740
740
|
}
|
|
741
741
|
return t.origin === window.location.origin ? `${t.pathname}${t.search}${t.hash}` : null;
|
|
742
742
|
}
|
|
743
|
-
var
|
|
744
|
-
a:
|
|
743
|
+
var B = {
|
|
744
|
+
a: R,
|
|
745
745
|
code({ node: e, inline: t, className: n, children: r, ...i }) {
|
|
746
|
-
return t ? /* @__PURE__ */
|
|
746
|
+
return t ? /* @__PURE__ */ E("code", {
|
|
747
747
|
...i,
|
|
748
748
|
style: {
|
|
749
749
|
background: "var(--surface-2)",
|
|
@@ -753,7 +753,7 @@ var V = {
|
|
|
753
753
|
fontSize: "0.92em"
|
|
754
754
|
},
|
|
755
755
|
children: r
|
|
756
|
-
}) : /* @__PURE__ */
|
|
756
|
+
}) : /* @__PURE__ */ E("pre", {
|
|
757
757
|
style: {
|
|
758
758
|
background: "var(--surface-2)",
|
|
759
759
|
border: "1px solid var(--border)",
|
|
@@ -764,7 +764,7 @@ var V = {
|
|
|
764
764
|
fontSize: 11.5,
|
|
765
765
|
lineHeight: 1.5
|
|
766
766
|
},
|
|
767
|
-
children: /* @__PURE__ */
|
|
767
|
+
children: /* @__PURE__ */ E("code", {
|
|
768
768
|
className: n,
|
|
769
769
|
...i,
|
|
770
770
|
children: r
|
|
@@ -772,7 +772,7 @@ var V = {
|
|
|
772
772
|
});
|
|
773
773
|
},
|
|
774
774
|
ul({ children: e, ...t }) {
|
|
775
|
-
return /* @__PURE__ */
|
|
775
|
+
return /* @__PURE__ */ E("ul", {
|
|
776
776
|
...t,
|
|
777
777
|
style: {
|
|
778
778
|
paddingLeft: 18,
|
|
@@ -782,7 +782,7 @@ var V = {
|
|
|
782
782
|
});
|
|
783
783
|
},
|
|
784
784
|
ol({ children: e, ...t }) {
|
|
785
|
-
return /* @__PURE__ */
|
|
785
|
+
return /* @__PURE__ */ E("ol", {
|
|
786
786
|
...t,
|
|
787
787
|
style: {
|
|
788
788
|
paddingLeft: 20,
|
|
@@ -792,51 +792,51 @@ var V = {
|
|
|
792
792
|
});
|
|
793
793
|
},
|
|
794
794
|
p({ children: e, ...t }) {
|
|
795
|
-
return /* @__PURE__ */
|
|
795
|
+
return /* @__PURE__ */ E("p", {
|
|
796
796
|
...t,
|
|
797
797
|
style: { margin: "4px 0" },
|
|
798
798
|
children: e
|
|
799
799
|
});
|
|
800
800
|
}
|
|
801
801
|
};
|
|
802
|
-
function
|
|
803
|
-
let t =
|
|
802
|
+
function V({ block: e }) {
|
|
803
|
+
let t = p();
|
|
804
804
|
switch (e.type) {
|
|
805
|
-
case "text": return /* @__PURE__ */
|
|
805
|
+
case "text": return /* @__PURE__ */ E("div", {
|
|
806
806
|
className: "agent-md",
|
|
807
|
-
children: /* @__PURE__ */
|
|
807
|
+
children: /* @__PURE__ */ E(i, {
|
|
808
808
|
content: e.text,
|
|
809
809
|
plugins: "gfm",
|
|
810
810
|
prose: !1,
|
|
811
811
|
skipHtml: !1,
|
|
812
|
-
components:
|
|
812
|
+
components: B
|
|
813
813
|
})
|
|
814
814
|
});
|
|
815
815
|
case "tool_use": {
|
|
816
|
-
let n =
|
|
817
|
-
return /* @__PURE__ */
|
|
816
|
+
let n = W(t, e.name, e.input);
|
|
817
|
+
return /* @__PURE__ */ E(H, {
|
|
818
818
|
kind: "call",
|
|
819
819
|
label: n.label,
|
|
820
820
|
sub: n.sub,
|
|
821
821
|
body: e.input
|
|
822
822
|
});
|
|
823
823
|
}
|
|
824
|
-
case "tool_result": return /* @__PURE__ */
|
|
824
|
+
case "tool_result": return /* @__PURE__ */ E(H, {
|
|
825
825
|
kind: "result",
|
|
826
|
-
label:
|
|
826
|
+
label: G(t, e),
|
|
827
827
|
body: e.output,
|
|
828
828
|
isError: !!e.is_error
|
|
829
829
|
});
|
|
830
|
-
case "elicit_response": return /* @__PURE__ */
|
|
830
|
+
case "elicit_response": return /* @__PURE__ */ E(H, {
|
|
831
831
|
kind: "result",
|
|
832
832
|
label: t("agent.panel.chip.answer", "answer"),
|
|
833
833
|
body: e.data
|
|
834
834
|
});
|
|
835
|
-
case "decision": return /* @__PURE__ */
|
|
835
|
+
case "decision": return /* @__PURE__ */ E(q, { block: e });
|
|
836
836
|
case "location":
|
|
837
837
|
case "thinking":
|
|
838
838
|
case "redacted_thinking": return null;
|
|
839
|
-
case "system": return /* @__PURE__ */
|
|
839
|
+
case "system": return /* @__PURE__ */ D("div", {
|
|
840
840
|
style: {
|
|
841
841
|
fontSize: 10.5,
|
|
842
842
|
fontStyle: "italic",
|
|
@@ -844,7 +844,7 @@ function H({ block: e }) {
|
|
|
844
844
|
},
|
|
845
845
|
children: ["— ", e.reason]
|
|
846
846
|
});
|
|
847
|
-
case "summary": return /* @__PURE__ */
|
|
847
|
+
case "summary": return /* @__PURE__ */ E("div", {
|
|
848
848
|
style: {
|
|
849
849
|
fontSize: 10.5,
|
|
850
850
|
fontStyle: "italic",
|
|
@@ -852,7 +852,7 @@ function H({ block: e }) {
|
|
|
852
852
|
},
|
|
853
853
|
children: e.text
|
|
854
854
|
});
|
|
855
|
-
case "attachment": return /* @__PURE__ */
|
|
855
|
+
case "attachment": return /* @__PURE__ */ E("pre", {
|
|
856
856
|
className: "mono",
|
|
857
857
|
style: {
|
|
858
858
|
marginTop: 8,
|
|
@@ -868,8 +868,8 @@ function H({ block: e }) {
|
|
|
868
868
|
default: return null;
|
|
869
869
|
}
|
|
870
870
|
}
|
|
871
|
-
function
|
|
872
|
-
return /* @__PURE__ */
|
|
871
|
+
function H({ kind: e, label: t, sub: n, body: r, isError: i }) {
|
|
872
|
+
return /* @__PURE__ */ D("details", {
|
|
873
873
|
style: {
|
|
874
874
|
marginTop: 6,
|
|
875
875
|
background: "var(--surface-2)",
|
|
@@ -882,7 +882,7 @@ function U({ kind: e, label: t, sub: n, body: r, isError: i }) {
|
|
|
882
882
|
boxSizing: "border-box",
|
|
883
883
|
overflow: "hidden"
|
|
884
884
|
},
|
|
885
|
-
children: [/* @__PURE__ */
|
|
885
|
+
children: [/* @__PURE__ */ D("summary", {
|
|
886
886
|
style: {
|
|
887
887
|
padding: "5px 8px",
|
|
888
888
|
cursor: "pointer",
|
|
@@ -894,7 +894,7 @@ function U({ kind: e, label: t, sub: n, body: r, isError: i }) {
|
|
|
894
894
|
color: "var(--text-2)"
|
|
895
895
|
},
|
|
896
896
|
children: [
|
|
897
|
-
/* @__PURE__ */
|
|
897
|
+
/* @__PURE__ */ E("span", {
|
|
898
898
|
"aria-hidden": !0,
|
|
899
899
|
style: {
|
|
900
900
|
color: i ? "var(--destructive)" : "var(--text-3)",
|
|
@@ -903,7 +903,7 @@ function U({ kind: e, label: t, sub: n, body: r, isError: i }) {
|
|
|
903
903
|
},
|
|
904
904
|
children: e === "call" ? "→" : i ? "✗" : "✓"
|
|
905
905
|
}),
|
|
906
|
-
/* @__PURE__ */
|
|
906
|
+
/* @__PURE__ */ E("span", {
|
|
907
907
|
className: "mono",
|
|
908
908
|
style: {
|
|
909
909
|
color: "var(--text-2)",
|
|
@@ -915,7 +915,7 @@ function U({ kind: e, label: t, sub: n, body: r, isError: i }) {
|
|
|
915
915
|
},
|
|
916
916
|
children: t
|
|
917
917
|
}),
|
|
918
|
-
n && /* @__PURE__ */
|
|
918
|
+
n && /* @__PURE__ */ E("span", {
|
|
919
919
|
style: {
|
|
920
920
|
fontSize: 10,
|
|
921
921
|
color: "var(--text-4)",
|
|
@@ -927,8 +927,8 @@ function U({ kind: e, label: t, sub: n, body: r, isError: i }) {
|
|
|
927
927
|
},
|
|
928
928
|
children: n
|
|
929
929
|
}),
|
|
930
|
-
/* @__PURE__ */
|
|
931
|
-
/* @__PURE__ */
|
|
930
|
+
/* @__PURE__ */ E("span", { style: { flex: 1 } }),
|
|
931
|
+
/* @__PURE__ */ E("span", {
|
|
932
932
|
"aria-hidden": !0,
|
|
933
933
|
style: {
|
|
934
934
|
fontSize: 9,
|
|
@@ -937,7 +937,7 @@ function U({ kind: e, label: t, sub: n, body: r, isError: i }) {
|
|
|
937
937
|
children: "▾"
|
|
938
938
|
})
|
|
939
939
|
]
|
|
940
|
-
}), /* @__PURE__ */
|
|
940
|
+
}), /* @__PURE__ */ E("pre", {
|
|
941
941
|
className: "mono",
|
|
942
942
|
style: {
|
|
943
943
|
margin: 0,
|
|
@@ -953,10 +953,10 @@ function U({ kind: e, label: t, sub: n, body: r, isError: i }) {
|
|
|
953
953
|
})]
|
|
954
954
|
});
|
|
955
955
|
}
|
|
956
|
-
function
|
|
956
|
+
function U(e) {
|
|
957
957
|
return e.map((e) => e.type === "text" ? e.text : "").join("");
|
|
958
958
|
}
|
|
959
|
-
function
|
|
959
|
+
function W(e, t, n) {
|
|
960
960
|
if (t === "action.invoke") {
|
|
961
961
|
let r = typeof n?.code == "string" ? n.code : "";
|
|
962
962
|
if (r) return {
|
|
@@ -966,15 +966,15 @@ function G(e, t, n) {
|
|
|
966
966
|
}
|
|
967
967
|
return { label: t };
|
|
968
968
|
}
|
|
969
|
-
function
|
|
969
|
+
function G(e, t) {
|
|
970
970
|
return t.name ? t.name : t.is_error ? e("agent.panel.chip.error", "error") : e("agent.panel.chip.result", "result");
|
|
971
971
|
}
|
|
972
|
-
function
|
|
972
|
+
function K(e, t) {
|
|
973
973
|
return t === "approved" ? e("agent.panel.decision.approve", "Approved") : e("agent.panel.decision.reject", "Rejected");
|
|
974
974
|
}
|
|
975
|
-
function
|
|
976
|
-
let t =
|
|
977
|
-
return /* @__PURE__ */
|
|
975
|
+
function q({ block: e }) {
|
|
976
|
+
let t = p(), n = e.decision === "approved", r = n ? "var(--success)" : "var(--destructive)";
|
|
977
|
+
return /* @__PURE__ */ D("div", {
|
|
978
978
|
style: {
|
|
979
979
|
marginTop: 6,
|
|
980
980
|
padding: "5px 10px",
|
|
@@ -990,7 +990,7 @@ function J({ block: e }) {
|
|
|
990
990
|
},
|
|
991
991
|
title: e.decided_at ? t("agent.panel.decided_at", "decided {time}", { time: e.decided_at }) : void 0,
|
|
992
992
|
children: [
|
|
993
|
-
/* @__PURE__ */
|
|
993
|
+
/* @__PURE__ */ E("span", {
|
|
994
994
|
"aria-hidden": !0,
|
|
995
995
|
style: {
|
|
996
996
|
color: r,
|
|
@@ -998,11 +998,11 @@ function J({ block: e }) {
|
|
|
998
998
|
},
|
|
999
999
|
children: n ? "✓" : "✗"
|
|
1000
1000
|
}),
|
|
1001
|
-
/* @__PURE__ */
|
|
1001
|
+
/* @__PURE__ */ E("span", {
|
|
1002
1002
|
style: { fontWeight: 600 },
|
|
1003
|
-
children:
|
|
1003
|
+
children: K(t, e.decision)
|
|
1004
1004
|
}),
|
|
1005
|
-
/* @__PURE__ */
|
|
1005
|
+
/* @__PURE__ */ E("span", {
|
|
1006
1006
|
className: "mono",
|
|
1007
1007
|
style: {
|
|
1008
1008
|
color: "var(--text-3)",
|
|
@@ -1010,7 +1010,7 @@ function J({ block: e }) {
|
|
|
1010
1010
|
},
|
|
1011
1011
|
children: e.tool_code
|
|
1012
1012
|
}),
|
|
1013
|
-
e.note && /* @__PURE__ */
|
|
1013
|
+
e.note && /* @__PURE__ */ D("span", {
|
|
1014
1014
|
style: {
|
|
1015
1015
|
color: "var(--text-3)",
|
|
1016
1016
|
fontStyle: "italic"
|
|
@@ -1020,10 +1020,10 @@ function J({ block: e }) {
|
|
|
1020
1020
|
]
|
|
1021
1021
|
});
|
|
1022
1022
|
}
|
|
1023
|
-
async function
|
|
1023
|
+
async function ue(e, t) {
|
|
1024
1024
|
let n = [];
|
|
1025
1025
|
for (let r of t) {
|
|
1026
|
-
let t = `[${r.role}]`, i = r.content.map((t) =>
|
|
1026
|
+
let t = `[${r.role}]`, i = r.content.map((t) => J(e, t)).filter((e) => e.length > 0).join("\n");
|
|
1027
1027
|
i && n.push(`${t}\n${i}`);
|
|
1028
1028
|
}
|
|
1029
1029
|
let r = n.join("\n\n");
|
|
@@ -1033,46 +1033,46 @@ async function le(e, t) {
|
|
|
1033
1033
|
console.error("agent: copyTranscript failed", e);
|
|
1034
1034
|
}
|
|
1035
1035
|
}
|
|
1036
|
-
function
|
|
1036
|
+
function J(e, t) {
|
|
1037
1037
|
switch (t.type) {
|
|
1038
1038
|
case "text": return t.text;
|
|
1039
1039
|
case "tool_use": {
|
|
1040
|
-
let n =
|
|
1040
|
+
let n = W(e, t.name, t.input);
|
|
1041
1041
|
return `${n.sub ? `→ ${n.label} (${n.sub})` : `→ ${n.label}`}\n${JSON.stringify(t.input, null, 2)}`;
|
|
1042
1042
|
}
|
|
1043
|
-
case "tool_result": return `${`${t.is_error ? "✗" : "✓"} ${
|
|
1043
|
+
case "tool_result": return `${`${t.is_error ? "✗" : "✓"} ${G(e, t)}`}\n${JSON.stringify(t.output, null, 2)}`;
|
|
1044
1044
|
case "elicit_response": return `${e("agent.panel.chip.answer", "answer")}\n${JSON.stringify(t.data, null, 2)}`;
|
|
1045
|
-
case "decision": return `${
|
|
1045
|
+
case "decision": return `${K(e, t.decision)} ${t.tool_code}${t.note ? ` — ${t.note}` : ""}`;
|
|
1046
1046
|
case "system": return `— ${t.reason}`;
|
|
1047
1047
|
case "summary": return t.text;
|
|
1048
1048
|
case "attachment": return t.content;
|
|
1049
1049
|
default: return "";
|
|
1050
1050
|
}
|
|
1051
1051
|
}
|
|
1052
|
-
function
|
|
1052
|
+
function Y(e, t) {
|
|
1053
1053
|
return e("agent.panel.proposal", "Run {code}.", { code: t });
|
|
1054
1054
|
}
|
|
1055
|
-
function
|
|
1056
|
-
let
|
|
1055
|
+
function de({ tool: t, onApprove: r, onReject: i }) {
|
|
1056
|
+
let a = p(), o = p("errors"), s = JSON.stringify(t.params ?? {}, null, 2), [c, l] = T(!1), [u, d] = T(!1), [f, m] = T(""), [h, g] = T(null), [v, y] = T(!1), b = async (e) => {
|
|
1057
1057
|
if (!v) {
|
|
1058
1058
|
y(!0);
|
|
1059
1059
|
try {
|
|
1060
|
-
await
|
|
1060
|
+
await r(e);
|
|
1061
1061
|
} catch (e) {
|
|
1062
|
-
_(
|
|
1062
|
+
g(_(o, e)), y(!1);
|
|
1063
1063
|
}
|
|
1064
1064
|
}
|
|
1065
1065
|
}, x = async () => {
|
|
1066
1066
|
if (!v) {
|
|
1067
1067
|
y(!0);
|
|
1068
1068
|
try {
|
|
1069
|
-
await
|
|
1069
|
+
await i(f.trim() || void 0);
|
|
1070
1070
|
} catch (e) {
|
|
1071
|
-
_(
|
|
1071
|
+
g(_(o, e)), y(!1);
|
|
1072
1072
|
}
|
|
1073
1073
|
}
|
|
1074
|
-
}, S = typeof
|
|
1075
|
-
return /* @__PURE__ */
|
|
1074
|
+
}, S = typeof t.confidence == "number" ? Math.round(Math.max(0, Math.min(1, t.confidence)) * 100) : null;
|
|
1075
|
+
return /* @__PURE__ */ D("div", {
|
|
1076
1076
|
style: {
|
|
1077
1077
|
marginTop: 4,
|
|
1078
1078
|
padding: "10px 12px",
|
|
@@ -1081,7 +1081,7 @@ function ue({ tool: e, onApprove: t, onReject: n }) {
|
|
|
1081
1081
|
borderRadius: "var(--radius-md)"
|
|
1082
1082
|
},
|
|
1083
1083
|
children: [
|
|
1084
|
-
/* @__PURE__ */
|
|
1084
|
+
/* @__PURE__ */ D("div", {
|
|
1085
1085
|
style: {
|
|
1086
1086
|
display: "flex",
|
|
1087
1087
|
alignItems: "center",
|
|
@@ -1089,28 +1089,28 @@ function ue({ tool: e, onApprove: t, onReject: n }) {
|
|
|
1089
1089
|
marginBottom: 6
|
|
1090
1090
|
},
|
|
1091
1091
|
children: [
|
|
1092
|
-
/* @__PURE__ */
|
|
1092
|
+
/* @__PURE__ */ E(e.bolt, {
|
|
1093
1093
|
size: 11,
|
|
1094
1094
|
style: { color: "var(--accent)" }
|
|
1095
1095
|
}),
|
|
1096
|
-
/* @__PURE__ */
|
|
1096
|
+
/* @__PURE__ */ E("span", {
|
|
1097
1097
|
style: {
|
|
1098
1098
|
fontSize: 11.5,
|
|
1099
1099
|
fontWeight: 600,
|
|
1100
1100
|
color: "var(--text)"
|
|
1101
1101
|
},
|
|
1102
|
-
children:
|
|
1102
|
+
children: a("agent.panel.proposed", "AI proposed")
|
|
1103
1103
|
}),
|
|
1104
|
-
/* @__PURE__ */
|
|
1104
|
+
/* @__PURE__ */ E("span", {
|
|
1105
1105
|
className: "mono",
|
|
1106
1106
|
style: {
|
|
1107
1107
|
fontSize: 10.5,
|
|
1108
1108
|
color: "var(--text-3)"
|
|
1109
1109
|
},
|
|
1110
|
-
children:
|
|
1110
|
+
children: t.tool_code
|
|
1111
1111
|
}),
|
|
1112
|
-
S !== null && /* @__PURE__ */
|
|
1113
|
-
title:
|
|
1112
|
+
S !== null && /* @__PURE__ */ E("span", {
|
|
1113
|
+
title: a("agent.panel.confidence_title", "LLM confidence {percent}%", { percent: S }),
|
|
1114
1114
|
style: {
|
|
1115
1115
|
marginLeft: "auto",
|
|
1116
1116
|
fontSize: 10,
|
|
@@ -1119,36 +1119,36 @@ function ue({ tool: e, onApprove: t, onReject: n }) {
|
|
|
1119
1119
|
border: "1px solid var(--border)",
|
|
1120
1120
|
borderRadius: 999
|
|
1121
1121
|
},
|
|
1122
|
-
children:
|
|
1122
|
+
children: a("agent.panel.confidence", "{percent}% confident", { percent: S })
|
|
1123
1123
|
})
|
|
1124
1124
|
]
|
|
1125
1125
|
}),
|
|
1126
|
-
/* @__PURE__ */
|
|
1126
|
+
/* @__PURE__ */ E("div", {
|
|
1127
1127
|
style: {
|
|
1128
1128
|
fontSize: 12,
|
|
1129
1129
|
lineHeight: 1.45,
|
|
1130
1130
|
color: "var(--text)",
|
|
1131
1131
|
marginBottom: 8
|
|
1132
1132
|
},
|
|
1133
|
-
children:
|
|
1133
|
+
children: t.question?.message?.trim() || Y(a, t.tool_code)
|
|
1134
1134
|
}),
|
|
1135
|
-
|
|
1135
|
+
t.reason?.trim() && /* @__PURE__ */ E("div", {
|
|
1136
1136
|
style: {
|
|
1137
1137
|
fontSize: 11.5,
|
|
1138
1138
|
lineHeight: 1.45,
|
|
1139
1139
|
color: "var(--text-2)",
|
|
1140
1140
|
marginBottom: 8
|
|
1141
1141
|
},
|
|
1142
|
-
children:
|
|
1142
|
+
children: t.reason.trim()
|
|
1143
1143
|
}),
|
|
1144
|
-
/* @__PURE__ */
|
|
1144
|
+
/* @__PURE__ */ D("button", {
|
|
1145
1145
|
type: "button",
|
|
1146
|
-
onClick: () =>
|
|
1146
|
+
onClick: () => l((e) => !e),
|
|
1147
1147
|
style: {
|
|
1148
1148
|
background: "transparent",
|
|
1149
1149
|
border: 0,
|
|
1150
1150
|
padding: 0,
|
|
1151
|
-
marginBottom:
|
|
1151
|
+
marginBottom: c ? 6 : 0,
|
|
1152
1152
|
fontSize: 10.5,
|
|
1153
1153
|
color: "var(--text-3)",
|
|
1154
1154
|
cursor: "pointer",
|
|
@@ -1156,18 +1156,18 @@ function ue({ tool: e, onApprove: t, onReject: n }) {
|
|
|
1156
1156
|
alignItems: "center",
|
|
1157
1157
|
gap: 4
|
|
1158
1158
|
},
|
|
1159
|
-
children: [/* @__PURE__ */
|
|
1159
|
+
children: [/* @__PURE__ */ E("span", {
|
|
1160
1160
|
style: {
|
|
1161
1161
|
display: "inline-block",
|
|
1162
|
-
transform:
|
|
1162
|
+
transform: c ? "rotate(90deg)" : "none",
|
|
1163
1163
|
transition: "transform 0.15s",
|
|
1164
1164
|
fontSize: 9,
|
|
1165
1165
|
lineHeight: 1
|
|
1166
1166
|
},
|
|
1167
1167
|
children: "▶"
|
|
1168
|
-
}),
|
|
1168
|
+
}), c ? a("agent.panel.hide_params", "Hide parameters") : a("agent.panel.view_params", "View parameters")]
|
|
1169
1169
|
}),
|
|
1170
|
-
|
|
1170
|
+
c && /* @__PURE__ */ E("pre", {
|
|
1171
1171
|
className: "mono",
|
|
1172
1172
|
style: {
|
|
1173
1173
|
width: "100%",
|
|
@@ -1182,21 +1182,21 @@ function ue({ tool: e, onApprove: t, onReject: n }) {
|
|
|
1182
1182
|
overflowX: "auto",
|
|
1183
1183
|
whiteSpace: "pre-wrap"
|
|
1184
1184
|
},
|
|
1185
|
-
children:
|
|
1185
|
+
children: s
|
|
1186
1186
|
}),
|
|
1187
|
-
|
|
1187
|
+
h && /* @__PURE__ */ E("div", {
|
|
1188
1188
|
style: {
|
|
1189
1189
|
marginTop: 4,
|
|
1190
1190
|
fontSize: 10.5,
|
|
1191
1191
|
color: "var(--text-2)"
|
|
1192
1192
|
},
|
|
1193
|
-
children:
|
|
1193
|
+
children: h
|
|
1194
1194
|
}),
|
|
1195
|
-
|
|
1195
|
+
u && /* @__PURE__ */ E("input", {
|
|
1196
1196
|
type: "text",
|
|
1197
|
-
value:
|
|
1198
|
-
onChange: (e) =>
|
|
1199
|
-
placeholder:
|
|
1197
|
+
value: f,
|
|
1198
|
+
onChange: (e) => m(e.target.value),
|
|
1199
|
+
placeholder: a("agent.panel.reject_note", "Why not? (optional) — then Send rejection"),
|
|
1200
1200
|
autoFocus: !0,
|
|
1201
1201
|
style: {
|
|
1202
1202
|
marginTop: 6,
|
|
@@ -1209,7 +1209,7 @@ function ue({ tool: e, onApprove: t, onReject: n }) {
|
|
|
1209
1209
|
color: "var(--text)"
|
|
1210
1210
|
}
|
|
1211
1211
|
}),
|
|
1212
|
-
/* @__PURE__ */
|
|
1212
|
+
/* @__PURE__ */ D("div", {
|
|
1213
1213
|
style: {
|
|
1214
1214
|
display: "flex",
|
|
1215
1215
|
gap: 6,
|
|
@@ -1217,38 +1217,37 @@ function ue({ tool: e, onApprove: t, onReject: n }) {
|
|
|
1217
1217
|
justifyContent: "flex-end"
|
|
1218
1218
|
},
|
|
1219
1219
|
children: [
|
|
1220
|
-
|
|
1220
|
+
u ? /* @__PURE__ */ E(n, {
|
|
1221
1221
|
size: "xs",
|
|
1222
1222
|
kind: "ghost",
|
|
1223
1223
|
onClick: x,
|
|
1224
1224
|
disabled: v,
|
|
1225
|
-
children:
|
|
1226
|
-
}) : /* @__PURE__ */
|
|
1225
|
+
children: a("agent.panel.reject_send", "Send rejection")
|
|
1226
|
+
}) : /* @__PURE__ */ E(n, {
|
|
1227
1227
|
size: "xs",
|
|
1228
1228
|
kind: "ghost",
|
|
1229
|
-
onClick: () =>
|
|
1229
|
+
onClick: () => d(!0),
|
|
1230
1230
|
disabled: v,
|
|
1231
|
-
children:
|
|
1231
|
+
children: a("agent.panel.reject", "Reject…")
|
|
1232
1232
|
}),
|
|
1233
|
-
|
|
1233
|
+
t.confirmation_mode !== "always" && /* @__PURE__ */ E(n, {
|
|
1234
1234
|
size: "xs",
|
|
1235
1235
|
kind: "ghost",
|
|
1236
1236
|
onClick: () => b("conversation"),
|
|
1237
1237
|
disabled: v,
|
|
1238
|
-
children:
|
|
1238
|
+
children: a("agent.panel.approve_chat", "Approve for this chat")
|
|
1239
1239
|
}),
|
|
1240
|
-
/* @__PURE__ */
|
|
1240
|
+
/* @__PURE__ */ E(n, {
|
|
1241
1241
|
size: "xs",
|
|
1242
1242
|
kind: "primary",
|
|
1243
|
-
icon: /* @__PURE__ */
|
|
1243
|
+
icon: /* @__PURE__ */ E(e.check, { size: 11 }),
|
|
1244
1244
|
onClick: () => b("call"),
|
|
1245
1245
|
disabled: v,
|
|
1246
|
-
children:
|
|
1246
|
+
children: a("agent.panel.approve_once", "Approve once")
|
|
1247
1247
|
})
|
|
1248
1248
|
]
|
|
1249
1249
|
})
|
|
1250
1250
|
]
|
|
1251
1251
|
});
|
|
1252
1252
|
}
|
|
1253
|
-
|
|
1254
|
-
export { k as AgentChatPanel, X as proposalFallback };
|
|
1253
|
+
export { O as AgentChatPanel, Y as proposalFallback };
|