@declarion/react 0.61.1 → 0.63.1
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/ActionDialog-uiuse5W8.js +374 -0
- package/dist-lib/ActionResultDialog.impl-BUBm9Ck3.js +273 -0
- package/dist-lib/ActionRunner-DAxgnKB3.js +1440 -0
- package/dist-lib/AdminCatalogPage.impl-BJGn7EvA.js +441 -0
- package/dist-lib/{AgentChatPanel.impl-rgkewyMl.js → AgentChatPanel.impl-8bw8J-xV.js} +358 -319
- package/dist-lib/AgentOpenFollower.impl-Cga1q7_e.js +81 -0
- package/dist-lib/AssociatedBlock-D6qDYmRO.js +1515 -0
- package/dist-lib/AuthShell-DdiughRT.js +361 -0
- package/dist-lib/ChangePasswordDialog-DFe7lVQg.js +12 -0
- package/dist-lib/ChangePasswordDialog.impl-DtSIaP-A.js +194 -0
- package/dist-lib/CommandPalette.impl-Db3AFA5w.js +383 -0
- package/dist-lib/CopyButton-C0iEvaT1.js +119 -0
- package/dist-lib/DirtyTabsCloseDialog.impl-DWaFaWKn.js +191 -0
- package/dist-lib/{DraggableChildrenTable-DruYOxKm.js → DraggableChildrenTable-Cy8uevS_.js} +45 -44
- package/dist-lib/DynamicIcon-DuBSz6TZ.js +133 -0
- package/dist-lib/FieldRow-BXBBFOZh.js +157 -0
- package/dist-lib/FilterChips-8fMDBXHp.js +1031 -0
- package/dist-lib/Forgot.impl-CmT5A__V.js +105 -0
- package/dist-lib/{Grid-Dsf3I0xG.js → Grid-Cg29k0jv.js} +98 -99
- package/dist-lib/Icons-Dzl-AkD_.d.ts +159 -0
- package/dist-lib/Icons-lt-7lhYR.js +151 -0
- package/dist-lib/ImpersonationBanner.impl-CBJJx6an.js +76 -0
- package/dist-lib/ImpersonationStartModal.impl-RaZcsJpG.js +158 -0
- package/dist-lib/Kbd-CNttVu0z.js +23 -0
- package/dist-lib/{LayoutRenderer-QN7Wp2W6.js → LayoutRenderer-DEHtYtzV.js} +965 -942
- package/dist-lib/{ListCardsBody-CNaZ0xwz.js → ListCardsBody-BAwFR3yO.js} +46 -52
- package/dist-lib/{MarkdownRenderer-BuO5hYJh.js → MarkdownRenderer-kNEMr6K_.js} +15 -16
- package/dist-lib/MenuItem-CfkVXPvC.js +140 -0
- package/dist-lib/NotFoundPage.impl-ZSBn4WWb.js +68 -0
- package/dist-lib/PageHeader-tw4pX3lI.js +71 -0
- package/dist-lib/PageShell-tI-mm0C5.js +47 -0
- package/dist-lib/Pill-D-wsfRhx.js +42 -0
- package/dist-lib/Preferences.impl-BG9XBZDf.js +162 -0
- package/dist-lib/Profile.impl-CbzSzxyG.js +527 -0
- package/dist-lib/PropertyGridEditor-BTjscqfz.js +4378 -0
- package/dist-lib/RecordHeader-Bv9nJXnG.js +217 -0
- package/dist-lib/RecordIdBadge-C3MgoZvt.js +25 -0
- package/dist-lib/RefreshControl-Ce-T_wSQ.js +195 -0
- package/dist-lib/Reset.impl-Cesyqt5p.js +168 -0
- package/dist-lib/SSOCallbackPage.impl-BC_W9nQA.js +31 -0
- package/dist-lib/SectionCard-VonaiLrx.js +150 -0
- package/dist-lib/SignUp.impl-C1KCQbfZ.js +212 -0
- package/dist-lib/SmartDetailPage.impl-8iOAMYQh.js +1609 -0
- package/dist-lib/SmartListPage.impl-Cc4Zwz5f.js +2818 -0
- package/dist-lib/SmartRecordListPage.impl-xTSohkqG.js +795 -0
- package/dist-lib/{SortHeaderMenu-BV-aQbPy.js → SortHeaderMenu-BKTrq0Wb.js} +23 -23
- package/dist-lib/TenantParamsPage.impl-DMuSs3eP.js +306 -0
- package/dist-lib/TwoFA.impl-BClZ3ndk.js +125 -0
- package/dist-lib/{cardProjection-BnmWukxk.js → cardProjection-Cr7fG6wJ.js} +134 -133
- package/dist-lib/declarion-react.css +1 -1
- package/dist-lib/format-count-CSEFw2ht.js +943 -0
- package/dist-lib/headerActionZone-bef-tZZ7.js +14 -0
- package/dist-lib/{stores/icon-registry.d.ts → icon-registry-CUT4eF63.d.ts} +14 -11
- package/dist-lib/icons.d.ts +20 -4
- package/dist-lib/icons.js +3 -2
- package/dist-lib/index.d.ts +2516 -150
- package/dist-lib/index.js +1588 -5117
- package/dist-lib/page-inset-D_kkVwwN.js +9 -0
- package/dist-lib/page-state-eA6J_KIR.js +124 -0
- package/dist-lib/param-editors-9yJr7xmN.js +201 -0
- package/dist-lib/payload-B2wODLAX.js +86 -0
- package/dist-lib/{peekDraftStore-Dk1Ha5u3.js → peekDraftStore-D4GRsRKW.js} +44 -43
- package/dist-lib/registry-BpzE8-h8.js +119 -0
- package/dist-lib/screen-back-Cs4kzeqD.js +44 -0
- package/dist-lib/testing.d.ts +53 -56
- package/dist-lib/testing.js +54 -55
- package/dist-lib/use-filter-value-labels-DuqvAIVG.js +413 -0
- package/dist-lib/{useAgentConversation-nT5UypJX.js → useAgentConversation-D210VDCQ.js} +158 -169
- package/dist-lib/useAuth-CR2YKKXb.js +49 -0
- package/dist-lib/useBranding-Ckp_AuJb.js +41 -0
- package/dist-lib/useBrandingChrome-bKTXXDLy.js +170 -0
- package/dist-lib/useCurrentLocation-BdngVeQv.js +22 -0
- package/dist-lib/useCurrentScreen--UovgvRj.js +2511 -0
- package/dist-lib/useImpersonation-DNV23Ks1.js +35 -0
- package/dist-lib/useObject-1OCeV34A.js +26 -0
- package/dist-lib/useOwnRefresh-DkOuM4yo.js +435 -0
- package/dist-lib/useParams-ei6w4I7w.js +133 -0
- package/dist-lib/useProperties-CbdhlhZd.js +81 -0
- package/dist-lib/useResponsiveMode-DIR1bZfo.d.ts +1786 -0
- package/dist-lib/useScreenBack-J861tbwn.js +71 -0
- package/dist-lib/useTabNavigate-BZiW4q3M.js +78 -0
- package/dist-lib/useTabTitle-CZZnWIQi.js +22 -0
- package/dist-lib/utils-D_QDpB8_.js +11 -0
- package/dist-lib/{value-Dwfyghtj.js → value-CDCeHgOv.js} +8 -22
- package/dist-lib/{action-dispatch-gWmOYjOP.js → variants-CbAwl3Mn.js} +734 -740
- package/dist-lib/vite/index.d.ts +42 -16
- package/dist-lib/window-election-CHIvIZwx.js +45 -0
- package/package.json +16 -23
- package/dist-lib/DetailAuditStrip-CSXZoy7v.js +0 -288
- package/dist-lib/DynamicIcon-DW5krHuX.js +0 -280
- package/dist-lib/RefreshControl-DO9rYcdq.js +0 -399
- package/dist-lib/SmartDetailPage.impl-DFIIx80b.js +0 -1565
- package/dist-lib/SmartListPage.impl-D694R32H.js +0 -3051
- package/dist-lib/SmartRecordListPage.impl-CB5cuQJV.js +0 -780
- package/dist-lib/api/agents.d.ts +0 -140
- package/dist-lib/api/auth-redirect.d.ts +0 -3
- package/dist-lib/api/auth.d.ts +0 -26
- package/dist-lib/api/batch.d.ts +0 -25
- package/dist-lib/api/client.d.ts +0 -51
- package/dist-lib/api/data.d.ts +0 -153
- package/dist-lib/api/entities.d.ts +0 -149
- package/dist-lib/api/events.d.ts +0 -91
- package/dist-lib/api/params.d.ts +0 -28
- package/dist-lib/api/properties.d.ts +0 -3
- package/dist-lib/api/schema.d.ts +0 -2
- package/dist-lib/api/status.d.ts +0 -2
- package/dist-lib/app.d.ts +0 -1
- package/dist-lib/components/actions/ActionButton.d.ts +0 -18
- package/dist-lib/components/actions/ActionDialog.d.ts +0 -20
- package/dist-lib/components/actions/ActionResultDialog.d.ts +0 -22
- package/dist-lib/components/actions/ActionRunner.d.ts +0 -62
- package/dist-lib/components/actions/ObjectActionBar.d.ts +0 -29
- package/dist-lib/components/actions/PropertyGridEditor.d.ts +0 -20
- package/dist-lib/components/actions/ResponsiveActionBar.d.ts +0 -259
- package/dist-lib/components/actions/RowActionsKebab.d.ts +0 -20
- package/dist-lib/components/agents/AgentChatPanel.d.ts +0 -3
- package/dist-lib/components/agents/AgentChatPanel.impl.d.ts +0 -14
- package/dist-lib/components/agents/AgentConversationDrawer.d.ts +0 -11
- package/dist-lib/components/agents/AgentElicitForm.d.ts +0 -27
- package/dist-lib/components/agents/AgentPicker.d.ts +0 -8
- package/dist-lib/components/agents/transcript-runs.d.ts +0 -29
- package/dist-lib/components/chrome/AssociationTabs.d.ts +0 -9
- package/dist-lib/components/chrome/AuditMetaStrip.d.ts +0 -11
- package/dist-lib/components/chrome/Breadcrumbs.d.ts +0 -14
- package/dist-lib/components/chrome/HighlightsStrip.d.ts +0 -10
- package/dist-lib/components/chrome/PageHeader.d.ts +0 -16
- package/dist-lib/components/chrome/PageShell.d.ts +0 -7
- package/dist-lib/components/chrome/RecordHeader.d.ts +0 -17
- package/dist-lib/components/chrome/headerActionZone.d.ts +0 -27
- package/dist-lib/components/detail-layout/AssociatedBlock.d.ts +0 -20
- package/dist-lib/components/detail-layout/AssociatedToolbar.d.ts +0 -13
- package/dist-lib/components/detail-layout/ChildrenBlock.d.ts +0 -16
- package/dist-lib/components/detail-layout/ChildrenCards.d.ts +0 -2
- package/dist-lib/components/detail-layout/ChildrenList.d.ts +0 -2
- package/dist-lib/components/detail-layout/ChildrenTable.d.ts +0 -2
- package/dist-lib/components/detail-layout/ChildrenTimeline.d.ts +0 -2
- package/dist-lib/components/detail-layout/DetailAuditStrip.d.ts +0 -12
- package/dist-lib/components/detail-layout/DetailHighlights.d.ts +0 -14
- package/dist-lib/components/detail-layout/DraggableChildrenTable.d.ts +0 -16
- package/dist-lib/components/detail-layout/EditableChildrenTable.d.ts +0 -16
- package/dist-lib/components/detail-layout/ErrorSummary.d.ts +0 -11
- package/dist-lib/components/detail-layout/EvidenceBlock.d.ts +0 -6
- package/dist-lib/components/detail-layout/FieldRow.d.ts +0 -23
- package/dist-lib/components/detail-layout/FieldsBlock.d.ts +0 -8
- package/dist-lib/components/detail-layout/LayoutColumn.d.ts +0 -9
- package/dist-lib/components/detail-layout/LayoutRenderer.d.ts +0 -46
- package/dist-lib/components/detail-layout/LayoutRow.d.ts +0 -8
- package/dist-lib/components/detail-layout/LayoutTabs.d.ts +0 -8
- package/dist-lib/components/detail-layout/PropertiesBlock.d.ts +0 -8
- package/dist-lib/components/detail-layout/QuickAddForm.d.ts +0 -10
- package/dist-lib/components/detail-layout/SectionBlock.d.ts +0 -8
- package/dist-lib/components/detail-layout/StatusesBlock.d.ts +0 -8
- package/dist-lib/components/detail-layout/TimelineComposer.d.ts +0 -10
- package/dist-lib/components/detail-layout/blockMeta.d.ts +0 -5
- package/dist-lib/components/detail-layout/index.d.ts +0 -21
- package/dist-lib/components/detail-layout/useManualColumnResize.d.ts +0 -25
- package/dist-lib/components/detail-layout/useQuickAdd.d.ts +0 -16
- package/dist-lib/components/detail-layout/widgets/EntityScorecardWidget.d.ts +0 -2
- package/dist-lib/components/detail-layout/widgets/JsonDiffWidget.d.ts +0 -2
- package/dist-lib/components/detail-layout/widgets/MonacoJson.d.ts +0 -9
- package/dist-lib/components/detail-layout/widgets/WidgetHost.d.ts +0 -9
- package/dist-lib/components/detail-layout/widgets/builtins.d.ts +0 -1
- package/dist-lib/components/detail-layout/widgets/canonicalizeJson.d.ts +0 -1
- package/dist-lib/components/detail-layout/widgets/monacoBootstrap.d.ts +0 -1
- package/dist-lib/components/detail-layout/widgets/registry.d.ts +0 -14
- package/dist-lib/components/fields/BoolField.d.ts +0 -2
- package/dist-lib/components/fields/EmailField.d.ts +0 -2
- package/dist-lib/components/fields/EnumField.d.ts +0 -2
- package/dist-lib/components/fields/IntArrayField.d.ts +0 -2
- package/dist-lib/components/fields/JsonEditor.d.ts +0 -10
- package/dist-lib/components/fields/JsonField.d.ts +0 -3
- package/dist-lib/components/fields/MultilangArrayField.d.ts +0 -2
- package/dist-lib/components/fields/MultilangField.d.ts +0 -2
- package/dist-lib/components/fields/MultilangTextField.d.ts +0 -2
- package/dist-lib/components/fields/NumberField.d.ts +0 -2
- package/dist-lib/components/fields/PasswordField.d.ts +0 -2
- package/dist-lib/components/fields/PhoneField.d.ts +0 -2
- package/dist-lib/components/fields/RefCombobox.d.ts +0 -45
- package/dist-lib/components/fields/RefField.d.ts +0 -2
- package/dist-lib/components/fields/RichTextField.d.ts +0 -2
- package/dist-lib/components/fields/SecretField.d.ts +0 -2
- package/dist-lib/components/fields/StringArrayField.d.ts +0 -2
- package/dist-lib/components/fields/StringField.d.ts +0 -2
- package/dist-lib/components/fields/StructureField.d.ts +0 -2
- package/dist-lib/components/fields/TextField.d.ts +0 -2
- package/dist-lib/components/fields/TimestampField.d.ts +0 -2
- package/dist-lib/components/fields/UrlField.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/badge.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/boolPill.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/code.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/date.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/email.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/emptyCell.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/host-icons.d.ts +0 -17
- package/dist-lib/components/fields/cells/factories/json.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/link.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/markdown.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/markdownPreview.d.ts +0 -9
- package/dist-lib/components/fields/cells/factories/money.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/multilangInline.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/nextRun.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/number.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/passwordMask.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/phone.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/refLink.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/richTextPreview.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/statusPill.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/tagList.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/text.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/timestamp.d.ts +0 -3
- package/dist-lib/components/fields/cells/factories/url-helpers.d.ts +0 -12
- package/dist-lib/components/fields/cells/factories/url.d.ts +0 -2
- package/dist-lib/components/fields/cells/registry.d.ts +0 -21
- package/dist-lib/components/fields/index.d.ts +0 -28
- package/dist-lib/components/fields/langMap.d.ts +0 -2
- package/dist-lib/components/fields/secretValue.d.ts +0 -2
- package/dist-lib/components/file-widgets/CircleImage.d.ts +0 -2
- package/dist-lib/components/file-widgets/DocumentCard.d.ts +0 -2
- package/dist-lib/components/file-widgets/FileList.d.ts +0 -2
- package/dist-lib/components/file-widgets/Grid.d.ts +0 -2
- package/dist-lib/components/file-widgets/GridLazy.d.ts +0 -2
- package/dist-lib/components/file-widgets/ImageWidget.d.ts +0 -12
- package/dist-lib/components/file-widgets/LabeledSlots.d.ts +0 -2
- package/dist-lib/components/file-widgets/SquareImage.d.ts +0 -2
- package/dist-lib/components/file-widgets/UnknownFileWidget.d.ts +0 -3
- package/dist-lib/components/file-widgets/UploadFailureText.d.ts +0 -4
- package/dist-lib/components/file-widgets/WideBanner.d.ts +0 -2
- package/dist-lib/components/file-widgets/builtins.d.ts +0 -1
- package/dist-lib/components/file-widgets/cropper.d.ts +0 -14
- package/dist-lib/components/file-widgets/draft-scope.d.ts +0 -22
- package/dist-lib/components/file-widgets/helpers.d.ts +0 -15
- package/dist-lib/components/file-widgets/host.d.ts +0 -28
- package/dist-lib/components/file-widgets/index.d.ts +0 -16
- package/dist-lib/components/file-widgets/payload.d.ts +0 -21
- package/dist-lib/components/file-widgets/registry.d.ts +0 -5
- package/dist-lib/components/file-widgets/types.d.ts +0 -17
- package/dist-lib/components/file-widgets/upload.d.ts +0 -45
- package/dist-lib/components/file-widgets/useEmbedFileSrc.d.ts +0 -42
- package/dist-lib/components/file-widgets/value.d.ts +0 -4
- package/dist-lib/components/filters/FilterChips.d.ts +0 -14
- package/dist-lib/components/filters/FilterDrawer.d.ts +0 -32
- package/dist-lib/components/filters/filter-op-label.d.ts +0 -3
- package/dist-lib/components/layout/CommandPalette.d.ts +0 -21
- package/dist-lib/components/layout/DirtyTabsCloseDialog.d.ts +0 -9
- package/dist-lib/components/layout/ImpersonationBanner.d.ts +0 -11
- package/dist-lib/components/layout/ImpersonationFrame.d.ts +0 -11
- package/dist-lib/components/layout/ImpersonationStartModal.d.ts +0 -22
- package/dist-lib/components/layout/Layout.d.ts +0 -6
- package/dist-lib/components/layout/Rail.d.ts +0 -22
- package/dist-lib/components/layout/Sidebar.d.ts +0 -12
- package/dist-lib/components/layout/TabStrip.d.ts +0 -6
- package/dist-lib/components/layout/TenantChip.d.ts +0 -26
- package/dist-lib/components/layout/TopBar.d.ts +0 -22
- package/dist-lib/components/layout/tab-close.d.ts +0 -13
- package/dist-lib/components/list/ColumnPicker.d.ts +0 -20
- package/dist-lib/components/list/InlineEditCell.d.ts +0 -15
- package/dist-lib/components/list/PeekFieldCell.d.ts +0 -16
- package/dist-lib/components/list/QuickPeek.d.ts +0 -59
- package/dist-lib/components/list/ViewSwitcher.d.ts +0 -24
- package/dist-lib/components/list/peekDraftStore.d.ts +0 -6
- package/dist-lib/components/pages/AdminCatalogPage.d.ts +0 -1
- package/dist-lib/components/pages/DocumentsMenu.d.ts +0 -21
- package/dist-lib/components/pages/ExportMenu.d.ts +0 -30
- package/dist-lib/components/pages/NotFoundPage.d.ts +0 -1
- package/dist-lib/components/pages/RecordDocumentsPanel.d.ts +0 -41
- package/dist-lib/components/pages/SSOCallbackPage.d.ts +0 -1
- package/dist-lib/components/pages/SmartDetailPage.d.ts +0 -2
- package/dist-lib/components/pages/SmartDetailPage.impl.d.ts +0 -4
- package/dist-lib/components/pages/SmartListPage.d.ts +0 -2
- package/dist-lib/components/pages/SmartListPage.impl.d.ts +0 -4
- package/dist-lib/components/pages/SmartRecordListPage.d.ts +0 -2
- package/dist-lib/components/pages/SmartRecordListPage.impl.d.ts +0 -4
- package/dist-lib/components/pages/auth/AuthShell.d.ts +0 -18
- package/dist-lib/components/pages/auth/Forgot.d.ts +0 -1
- package/dist-lib/components/pages/auth/Reset.d.ts +0 -1
- package/dist-lib/components/pages/auth/SignIn.d.ts +0 -1
- package/dist-lib/components/pages/auth/SignUp.d.ts +0 -1
- package/dist-lib/components/pages/auth/TwoFA.d.ts +0 -1
- package/dist-lib/components/pages/auth/icons.d.ts +0 -6
- package/dist-lib/components/pages/exportRequest.d.ts +0 -69
- package/dist-lib/components/pages/list/DataCell.d.ts +0 -4
- package/dist-lib/components/pages/list/DeleteViewDialog.d.ts +0 -8
- package/dist-lib/components/pages/list/ListCardRow.d.ts +0 -39
- package/dist-lib/components/pages/list/ListCardsBody.d.ts +0 -33
- package/dist-lib/components/pages/list/ListFloatbar.d.ts +0 -29
- package/dist-lib/components/pages/list/ListFooter.d.ts +0 -26
- package/dist-lib/components/pages/list/ListHeader.d.ts +0 -26
- package/dist-lib/components/pages/list/ListNoRows.d.ts +0 -31
- package/dist-lib/components/pages/list/ListTable.d.ts +0 -33
- package/dist-lib/components/pages/list/ListTableRow.d.ts +0 -17
- package/dist-lib/components/pages/list/ListToolbar.d.ts +0 -46
- package/dist-lib/components/pages/list/ListUrlBanner.d.ts +0 -10
- package/dist-lib/components/pages/list/RowActionsCell.d.ts +0 -34
- package/dist-lib/components/pages/list/RowContextMenu.d.ts +0 -28
- package/dist-lib/components/pages/list/SaveViewDialog.d.ts +0 -10
- package/dist-lib/components/pages/list/SortHeaderMenu.d.ts +0 -14
- package/dist-lib/components/pages/list/cardProjection.d.ts +0 -67
- package/dist-lib/components/pages/list/column-sizing.d.ts +0 -14
- package/dist-lib/components/pages/list/columns.d.ts +0 -46
- package/dist-lib/components/pages/list/filter-meta.d.ts +0 -25
- package/dist-lib/components/pages/list/page-size.d.ts +0 -3
- package/dist-lib/components/pages/list/sortable-header.d.ts +0 -2
- package/dist-lib/components/pages/list/table-features.d.ts +0 -14
- package/dist-lib/components/pages/list/use-filter-value-labels.d.ts +0 -24
- package/dist-lib/components/pages/list/useActiveView.d.ts +0 -45
- package/dist-lib/components/pages/list/useHeaderReorder.d.ts +0 -26
- package/dist-lib/components/pages/list/useListColumnLayout.d.ts +0 -38
- package/dist-lib/components/pages/list/useListQuery.d.ts +0 -67
- package/dist-lib/components/pages/list/useListRowInteraction.d.ts +0 -61
- package/dist-lib/components/pages/list/useListSelection.d.ts +0 -31
- package/dist-lib/components/pages/list/useListSort.d.ts +0 -46
- package/dist-lib/components/pages/list/useListViews.d.ts +0 -57
- package/dist-lib/components/pages/list/useRowMenu.d.ts +0 -46
- package/dist-lib/components/pages/profile/Preferences.d.ts +0 -1
- package/dist-lib/components/pages/profile/Profile.d.ts +0 -7
- package/dist-lib/components/pages/tenant-params/TenantParamsPage.d.ts +0 -2
- package/dist-lib/components/params/ParamsBlock.d.ts +0 -13
- package/dist-lib/components/params/param-editors.d.ts +0 -20
- package/dist-lib/components/primitives/Avatar.d.ts +0 -6
- package/dist-lib/components/primitives/BoolToggle.d.ts +0 -7
- package/dist-lib/components/primitives/BrandGlyph.d.ts +0 -8
- package/dist-lib/components/primitives/BrandLogo.d.ts +0 -12
- package/dist-lib/components/primitives/Btn.d.ts +0 -19
- package/dist-lib/components/primitives/Check.d.ts +0 -7
- package/dist-lib/components/primitives/Chip.d.ts +0 -9
- package/dist-lib/components/primitives/ClassifiedFieldLocked.d.ts +0 -9
- package/dist-lib/components/primitives/Dropdown.d.ts +0 -20
- package/dist-lib/components/primitives/Fields.d.ts +0 -111
- package/dist-lib/components/primitives/HoverCard.d.ts +0 -15
- package/dist-lib/components/primitives/IconBtn.d.ts +0 -11
- package/dist-lib/components/primitives/Icons.d.ts +0 -136
- package/dist-lib/components/primitives/Kbd.d.ts +0 -4
- package/dist-lib/components/primitives/MenuItem.d.ts +0 -14
- package/dist-lib/components/primitives/Pill.d.ts +0 -11
- package/dist-lib/components/primitives/RecordIdBadge.d.ts +0 -8
- package/dist-lib/components/primitives/RowField.d.ts +0 -10
- package/dist-lib/components/primitives/SectionCard.d.ts +0 -24
- package/dist-lib/components/primitives/Spinner.d.ts +0 -3
- package/dist-lib/components/primitives/Tooltip.d.ts +0 -34
- package/dist-lib/components/primitives/dataTableStyles.d.ts +0 -4
- package/dist-lib/components/primitives/index.d.ts +0 -37
- package/dist-lib/components/shared/ChangePasswordDialog.d.ts +0 -9
- package/dist-lib/components/shared/ConfirmDialog.d.ts +0 -11
- package/dist-lib/components/shared/CopyButton.d.ts +0 -8
- package/dist-lib/components/shared/DynamicIcon.d.ts +0 -20
- package/dist-lib/components/shared/EmptyState.d.ts +0 -9
- package/dist-lib/components/shared/ErrorBoundary.d.ts +0 -17
- package/dist-lib/components/shared/LoadingSkeleton.d.ts +0 -6
- package/dist-lib/components/shared/LucideIcon.d.ts +0 -16
- package/dist-lib/components/shared/Markdown.d.ts +0 -3
- package/dist-lib/components/shared/MarkdownRenderer.d.ts +0 -11
- package/dist-lib/components/shared/RefreshControl.d.ts +0 -25
- package/dist-lib/components/shared/StatusGroupsDisplay.d.ts +0 -11
- package/dist-lib/components/shared/StatusStepper.d.ts +0 -13
- package/dist-lib/components/shared/toast/DeclarionToast.d.ts +0 -31
- package/dist-lib/components/shared/useOwnRefresh.d.ts +0 -9
- package/dist-lib/embed/EmbedAuthBootstrap.d.ts +0 -8
- package/dist-lib/embed/EmbedContext.d.ts +0 -50
- package/dist-lib/embed/EmbedDirtyReporter.d.ts +0 -10
- package/dist-lib/embed/EmbedHistoryTracker.d.ts +0 -1
- package/dist-lib/embed/EmbedLocationReporter.d.ts +0 -8
- package/dist-lib/embed/EmbedResizeReporter.d.ts +0 -6
- package/dist-lib/embed/EmbedUnsavedGuard.d.ts +0 -7
- package/dist-lib/embed/embed-dirty.d.ts +0 -24
- package/dist-lib/embed/embed-history.d.ts +0 -19
- package/dist-lib/embed/embed-nav-guard.d.ts +0 -20
- package/dist-lib/embed/file-src.d.ts +0 -63
- package/dist-lib/embed/handshake.d.ts +0 -57
- package/dist-lib/embed/index.d.ts +0 -19
- package/dist-lib/embed/params.d.ts +0 -75
- package/dist-lib/embed/protocol.d.ts +0 -165
- package/dist-lib/embed/screen-location.d.ts +0 -50
- package/dist-lib/embed/theme.d.ts +0 -34
- package/dist-lib/embed/token.d.ts +0 -57
- package/dist-lib/embed/useEmbedNavigate.d.ts +0 -48
- package/dist-lib/embed/useGlobalLinkInterceptor.d.ts +0 -66
- package/dist-lib/failure-BUxXuP4c.js +0 -158
- package/dist-lib/format-count-bXVfHzbI.js +0 -1771
- package/dist-lib/hooks/useActionData.d.ts +0 -61
- package/dist-lib/hooks/useAgentConversation.d.ts +0 -24
- package/dist-lib/hooks/useAllEntityData.d.ts +0 -16
- package/dist-lib/hooks/useAssociatedData.d.ts +0 -10
- package/dist-lib/hooks/useAuth.d.ts +0 -22
- package/dist-lib/hooks/useBranding.d.ts +0 -8
- package/dist-lib/hooks/useBrandingChrome.d.ts +0 -59
- package/dist-lib/hooks/useChildrenData.d.ts +0 -3
- package/dist-lib/hooks/useColumns.d.ts +0 -13
- package/dist-lib/hooks/useCurrentScreen.d.ts +0 -34
- package/dist-lib/hooks/useCursorEntityData.d.ts +0 -79
- package/dist-lib/hooks/useDebounce.d.ts +0 -1
- package/dist-lib/hooks/useEntity.d.ts +0 -2
- package/dist-lib/hooks/useEntityData.d.ts +0 -41
- package/dist-lib/hooks/useFilters.d.ts +0 -14
- package/dist-lib/hooks/useImpersonation.d.ts +0 -23
- package/dist-lib/hooks/useLanguage.d.ts +0 -4
- package/dist-lib/hooks/useLiveObject.d.ts +0 -9
- package/dist-lib/hooks/useLongPress.d.ts +0 -29
- package/dist-lib/hooks/useMutations.d.ts +0 -13
- package/dist-lib/hooks/useObject.d.ts +0 -11
- package/dist-lib/hooks/useObjectStatus.d.ts +0 -5
- package/dist-lib/hooks/usePageState.d.ts +0 -32
- package/dist-lib/hooks/usePageStateRuntime.d.ts +0 -27
- package/dist-lib/hooks/usePageStateTtl.d.ts +0 -11
- package/dist-lib/hooks/useParams.d.ts +0 -49
- package/dist-lib/hooks/useProperties.d.ts +0 -5
- package/dist-lib/hooks/useRealtimeThresholds.d.ts +0 -1
- package/dist-lib/hooks/useRegisterScreenTab.d.ts +0 -11
- package/dist-lib/hooks/useResponsiveMode.d.ts +0 -27
- package/dist-lib/hooks/useSSE.d.ts +0 -31
- package/dist-lib/hooks/useSchema.d.ts +0 -1
- package/dist-lib/hooks/useScreen.d.ts +0 -2
- package/dist-lib/hooks/useScreenBack.d.ts +0 -21
- package/dist-lib/hooks/useScreenTab.d.ts +0 -10
- package/dist-lib/hooks/useTabNavigate.d.ts +0 -34
- package/dist-lib/hooks/useTabSearchMirror.d.ts +0 -1
- package/dist-lib/hooks/useTabTitle.d.ts +0 -2
- package/dist-lib/hooks/useText.d.ts +0 -3
- package/dist-lib/hooks/useTimelineData.d.ts +0 -10
- package/dist-lib/hooks/useVersionWatcher.d.ts +0 -30
- package/dist-lib/hooks/useViews.d.ts +0 -26
- package/dist-lib/lib/action-dispatch.d.ts +0 -8
- package/dist-lib/lib/actions.d.ts +0 -254
- package/dist-lib/lib/anchor.d.ts +0 -36
- package/dist-lib/lib/brand-tokens.d.ts +0 -43
- package/dist-lib/lib/branding.d.ts +0 -20
- package/dist-lib/lib/canonical-url.d.ts +0 -27
- package/dist-lib/lib/capabilityPrefetch.d.ts +0 -6
- package/dist-lib/lib/child-config.d.ts +0 -24
- package/dist-lib/lib/children-validation.d.ts +0 -5
- package/dist-lib/lib/decimal-text.d.ts +0 -1
- package/dist-lib/lib/display-value.d.ts +0 -1
- package/dist-lib/lib/document-templates.d.ts +0 -11
- package/dist-lib/lib/download.d.ts +0 -21
- package/dist-lib/lib/evidence-verdict.d.ts +0 -11
- package/dist-lib/lib/failure.d.ts +0 -2
- package/dist-lib/lib/field-classification.d.ts +0 -61
- package/dist-lib/lib/field-regions.d.ts +0 -8
- package/dist-lib/lib/filter-evaluator.d.ts +0 -16
- package/dist-lib/lib/filters.d.ts +0 -93
- package/dist-lib/lib/format-count.d.ts +0 -41
- package/dist-lib/lib/html-state.d.ts +0 -11
- package/dist-lib/lib/language.d.ts +0 -19
- package/dist-lib/lib/longPressGesture.d.ts +0 -55
- package/dist-lib/lib/mass-edit.d.ts +0 -32
- package/dist-lib/lib/page-inset.d.ts +0 -3
- package/dist-lib/lib/quick-add.d.ts +0 -2
- package/dist-lib/lib/realtime-query-keys.d.ts +0 -22
- package/dist-lib/lib/realtime-reconcile.d.ts +0 -33
- package/dist-lib/lib/realtime-resync.d.ts +0 -23
- package/dist-lib/lib/record-documents-key.d.ts +0 -1
- package/dist-lib/lib/rich-text.d.ts +0 -14
- package/dist-lib/lib/rowClickGesture.d.ts +0 -26
- package/dist-lib/lib/safe-url.d.ts +0 -15
- package/dist-lib/lib/schema-routing.d.ts +0 -3
- package/dist-lib/lib/screen-back.d.ts +0 -70
- package/dist-lib/lib/scroll-restoration.d.ts +0 -90
- package/dist-lib/lib/size-value.d.ts +0 -16
- package/dist-lib/lib/sort.d.ts +0 -72
- package/dist-lib/lib/timestamp.d.ts +0 -53
- package/dist-lib/lib/toast.d.ts +0 -49
- package/dist-lib/lib/ui-actions.d.ts +0 -12
- package/dist-lib/lib/utils.d.ts +0 -9
- package/dist-lib/lib/variants.d.ts +0 -7
- package/dist-lib/lib/versionTracker.d.ts +0 -72
- package/dist-lib/lib/viewport-category.d.ts +0 -44
- package/dist-lib/main.d.ts +0 -1
- package/dist-lib/registry-nSeHd5si.js +0 -1956
- package/dist-lib/safe-url-oSJw5pzO.js +0 -34
- package/dist-lib/stores/auth.d.ts +0 -16
- package/dist-lib/stores/list-layout.d.ts +0 -85
- package/dist-lib/stores/page-state.d.ts +0 -61
- package/dist-lib/stores/preferences.d.ts +0 -37
- package/dist-lib/stores/realtime.d.ts +0 -96
- package/dist-lib/stores/screen-registry.d.ts +0 -17
- package/dist-lib/stores/tabs.d.ts +0 -73
- package/dist-lib/types/api.d.ts +0 -579
- package/dist-lib/types/fieldType.d.ts +0 -2
- package/dist-lib/types/files.d.ts +0 -79
- package/dist-lib/types/ordmap.d.ts +0 -39
- package/dist-lib/types/schema.d.ts +0 -1089
- package/dist-lib/useCurrentScreen-0WBj7wT6.js +0 -7860
- package/dist-lib/useListQuery-C7dq_sEo.js +0 -103
- package/dist-lib/useOwnRefresh-q80kCMMh.js +0 -1167
- package/dist-lib/useProperties-CeGKtq7Q.js +0 -83
- package/dist-lib/useTabSearchMirror-CzNAj82Q.js +0 -175
- package/dist-lib/useText-BsedsJ-J.js +0 -952
- package/dist-lib/vite/fingerprint-plugin.d.ts +0 -44
|
@@ -1,37 +1,49 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
1
|
+
import { Ft as e, Nt as t, Pt as n, Q as r, s as i, vn as a, wn as o, wt as s } from "./useCurrentScreen--UovgvRj.js";
|
|
2
|
+
import { t as c } from "./Icons-lt-7lhYR.js";
|
|
3
|
+
import { n as l, r as u } from "./CopyButton-C0iEvaT1.js";
|
|
4
|
+
import { Q as d, j as f } from "./PropertyGridEditor-BTjscqfz.js";
|
|
5
|
+
import { i as p } from "./useParams-ei6w4I7w.js";
|
|
6
|
+
import { n as m } from "./useTabNavigate-BZiW4q3M.js";
|
|
7
|
+
import { g as ee, h, t as g } from "./useAgentConversation-D210VDCQ.js";
|
|
8
|
+
import { t as _ } from "./window-election-CHIvIZwx.js";
|
|
9
|
+
import { useEffect as v, useRef as y, useState as b } from "react";
|
|
10
|
+
import { jsx as x, jsxs as S } from "react/jsx-runtime";
|
|
11
|
+
import { useLocation as C } from "react-router";
|
|
12
|
+
import w from "react-textarea-autosize";
|
|
13
|
+
//#region src/hooks/useWindowConversation.ts
|
|
14
|
+
function te(e) {
|
|
15
|
+
v(() => {
|
|
16
|
+
let t = _();
|
|
17
|
+
return t.setConversation(e ?? null), () => t.setConversation(null);
|
|
18
|
+
}, [e]);
|
|
19
|
+
}
|
|
20
|
+
//#endregion
|
|
9
21
|
//#region src/components/agents/transcript-runs.ts
|
|
10
|
-
var
|
|
11
|
-
function
|
|
22
|
+
var T = /* @__PURE__ */ new Set(["operation.search"]);
|
|
23
|
+
function ne(e, t = []) {
|
|
12
24
|
let n = [], r = /* @__PURE__ */ new Map();
|
|
13
|
-
for (let e of t) e.assistant_message_id && e.provider_call_id && r.set(
|
|
25
|
+
for (let e of t) e.assistant_message_id && e.provider_call_id && r.set(D(e.assistant_message_id, e.provider_call_id), e);
|
|
14
26
|
for (let t of e) {
|
|
15
|
-
let e =
|
|
16
|
-
if (
|
|
27
|
+
let e = E(t, r);
|
|
28
|
+
if (k(t) && n.push({
|
|
17
29
|
kind: "message",
|
|
18
|
-
message:
|
|
30
|
+
message: O(t)
|
|
19
31
|
}), e.length === 0) continue;
|
|
20
32
|
let i = n[n.length - 1], a = i?.kind === "run" ? i : (n.push({
|
|
21
33
|
kind: "run",
|
|
22
34
|
id: t.id,
|
|
23
35
|
calls: []
|
|
24
36
|
}), n[n.length - 1]);
|
|
25
|
-
for (let t of e)
|
|
37
|
+
for (let t of e) T.has(t.name) || a.calls.push(t);
|
|
26
38
|
a.calls.length === 0 && n.pop();
|
|
27
39
|
}
|
|
28
40
|
return n;
|
|
29
41
|
}
|
|
30
|
-
function
|
|
42
|
+
function E(e, t) {
|
|
31
43
|
let n = [];
|
|
32
44
|
for (let r of e.content ?? []) {
|
|
33
45
|
if (r.type !== "tool_use") continue;
|
|
34
|
-
let i = r, a = i.id ?? "", o = t.get(
|
|
46
|
+
let i = r, a = i.id ?? "", o = t.get(D(e.id, a)), s = o?.status;
|
|
35
47
|
n.push({
|
|
36
48
|
id: o?.id ?? `${e.id}:${a || n.length}`,
|
|
37
49
|
name: i.name ?? "",
|
|
@@ -44,72 +56,80 @@ function w(e, t) {
|
|
|
44
56
|
}
|
|
45
57
|
return n;
|
|
46
58
|
}
|
|
47
|
-
function
|
|
59
|
+
function D(e, t) {
|
|
48
60
|
return `${e}\u0000${t}`;
|
|
49
61
|
}
|
|
50
|
-
function
|
|
62
|
+
function O(e) {
|
|
51
63
|
return {
|
|
52
64
|
...e,
|
|
53
65
|
content: (e.content ?? []).filter((e) => e.type !== "tool_use" && e.type !== "tool_result")
|
|
54
66
|
};
|
|
55
67
|
}
|
|
56
|
-
function
|
|
68
|
+
function k(e) {
|
|
57
69
|
return (e.content ?? []).some((e) => e.type !== "tool_use" && e.type !== "tool_result");
|
|
58
70
|
}
|
|
59
71
|
//#endregion
|
|
60
72
|
//#region src/components/agents/AgentChatPanel.impl.tsx
|
|
61
|
-
var
|
|
62
|
-
function
|
|
63
|
-
let
|
|
64
|
-
|
|
73
|
+
var re = 80;
|
|
74
|
+
function A({ open: t, onClose: i, context: o, title: u = "", askOnOpen: f, docked: p = !1 }) {
|
|
75
|
+
let m = g();
|
|
76
|
+
te(m.conversationId);
|
|
77
|
+
let _ = s(), { pathname: T } = C(), { data: E } = e(), D = o ? a(_, T, E?.screens, E?.entities)?.title : void 0, O = s("errors"), [k, A] = b(""), [j, N] = b(null), P = y(null), [F, I] = b(!1), L = y(null), R = y(null), z = y(!0), [B, V] = b(!1), H = () => {
|
|
78
|
+
let e = R.current;
|
|
65
79
|
if (!e) return;
|
|
66
|
-
let t = e.scrollHeight - e.scrollTop - e.clientHeight <=
|
|
67
|
-
|
|
80
|
+
let t = e.scrollHeight - e.scrollTop - e.clientHeight <= re;
|
|
81
|
+
z.current = t, t && B && V(!1);
|
|
68
82
|
}, U = (e = "smooth") => {
|
|
69
|
-
let t =
|
|
83
|
+
let t = R.current;
|
|
70
84
|
t && (t.scrollTo({
|
|
71
85
|
top: t.scrollHeight,
|
|
72
86
|
behavior: e
|
|
73
|
-
}),
|
|
87
|
+
}), z.current = !0, V(!1));
|
|
74
88
|
};
|
|
75
|
-
if (
|
|
76
|
-
|
|
77
|
-
}, [
|
|
89
|
+
if (v(() => {
|
|
90
|
+
z.current ? U("smooth") : V(!0);
|
|
91
|
+
}, [m.messages]), v(() => {
|
|
78
92
|
t && U("instant");
|
|
79
|
-
}, [t]),
|
|
80
|
-
let e =
|
|
81
|
-
t && e &&
|
|
82
|
-
}, [t,
|
|
93
|
+
}, [t]), v(() => {
|
|
94
|
+
let e = f?.trim();
|
|
95
|
+
t && e && P.current !== e && (P.current = e, L.current?.(e));
|
|
96
|
+
}, [t, f]), !t) return null;
|
|
83
97
|
let W = async (e) => {
|
|
84
98
|
if (e.trim()) {
|
|
85
|
-
|
|
99
|
+
N(null), A("");
|
|
86
100
|
try {
|
|
87
|
-
await
|
|
101
|
+
await m.send(e, o);
|
|
88
102
|
} catch (t) {
|
|
89
|
-
console.error("agent send failed", t),
|
|
103
|
+
console.error("agent send failed", t), N(r(O, t)), A(e);
|
|
90
104
|
}
|
|
91
105
|
}
|
|
92
106
|
};
|
|
93
|
-
|
|
107
|
+
L.current = W;
|
|
94
108
|
let G = (e) => {
|
|
95
|
-
e.key === "Enter" && !e.shiftKey && (e.preventDefault(), W(
|
|
96
|
-
}, K =
|
|
97
|
-
return /* @__PURE__ */
|
|
109
|
+
e.key === "Enter" && !e.shiftKey && (e.preventDefault(), W(k));
|
|
110
|
+
}, K = m.invocations.filter((e) => e.status === "pending_approval"), q = m.invocations.filter((e) => e.kind === "input_request" && e.status === "pending_input"), J = m.turns.filter((e) => e.status === "queued" || e.status === "running" || e.status === "waiting" || e.status === "failed"), Y = m.invocations.filter((e) => e.status === "outcome_unknown"), X = m.messages.length === 0 && !m.turn.streaming, Z = K.length > 0 || q.length > 0, Q = m.turn.streaming && !Z || m.turns.some((e) => e.status === "running"), fe = m.messages.some((e) => e.role === "assistant" && e.streaming && e.content.length > 0), $ = k.trim().length > 0;
|
|
111
|
+
return /* @__PURE__ */ S("aside", {
|
|
98
112
|
style: {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
113
|
+
...p ? {
|
|
114
|
+
gridArea: "assistant",
|
|
115
|
+
minWidth: 0,
|
|
116
|
+
minHeight: 0
|
|
117
|
+
} : {
|
|
118
|
+
position: "fixed",
|
|
119
|
+
top: "var(--topbar-h)",
|
|
120
|
+
right: 0,
|
|
121
|
+
bottom: "var(--safe-area-bottom, 0px)",
|
|
122
|
+
width: "min(var(--assistant-w), 100vw)",
|
|
123
|
+
zIndex: 30,
|
|
124
|
+
boxShadow: "var(--shadow-md)"
|
|
125
|
+
},
|
|
105
126
|
background: "var(--surface)",
|
|
106
127
|
borderLeft: "1px solid var(--border)",
|
|
107
128
|
display: "flex",
|
|
108
|
-
flexDirection: "column"
|
|
109
|
-
boxShadow: "var(--shadow-md)"
|
|
129
|
+
flexDirection: "column"
|
|
110
130
|
},
|
|
111
131
|
children: [
|
|
112
|
-
/* @__PURE__ */
|
|
132
|
+
/* @__PURE__ */ S("div", {
|
|
113
133
|
style: {
|
|
114
134
|
display: "flex",
|
|
115
135
|
alignItems: "center",
|
|
@@ -118,7 +138,7 @@ function k({ open: t, onClose: n, context: r, title: i = "", askOnOpen: o }) {
|
|
|
118
138
|
borderBottom: "1px solid var(--divider)"
|
|
119
139
|
},
|
|
120
140
|
children: [
|
|
121
|
-
/* @__PURE__ */
|
|
141
|
+
/* @__PURE__ */ x("span", {
|
|
122
142
|
style: {
|
|
123
143
|
width: 22,
|
|
124
144
|
height: 22,
|
|
@@ -128,21 +148,21 @@ function k({ open: t, onClose: n, context: r, title: i = "", askOnOpen: o }) {
|
|
|
128
148
|
alignItems: "center",
|
|
129
149
|
justifyContent: "center"
|
|
130
150
|
},
|
|
131
|
-
children: /* @__PURE__ */
|
|
151
|
+
children: /* @__PURE__ */ x(c.sparkle, {
|
|
132
152
|
size: 13,
|
|
133
153
|
style: { color: "var(--accent-foreground)" }
|
|
134
154
|
})
|
|
135
155
|
}),
|
|
136
|
-
/* @__PURE__ */
|
|
156
|
+
/* @__PURE__ */ S("div", {
|
|
137
157
|
style: { flex: 1 },
|
|
138
|
-
children: [/* @__PURE__ */
|
|
158
|
+
children: [/* @__PURE__ */ x("div", {
|
|
139
159
|
style: {
|
|
140
160
|
fontSize: 12.5,
|
|
141
161
|
fontWeight: 600,
|
|
142
162
|
color: "var(--text)"
|
|
143
163
|
},
|
|
144
|
-
children:
|
|
145
|
-
}), /* @__PURE__ */
|
|
164
|
+
children: u
|
|
165
|
+
}), /* @__PURE__ */ S("div", {
|
|
146
166
|
style: {
|
|
147
167
|
fontSize: 10.5,
|
|
148
168
|
color: "var(--text-3)",
|
|
@@ -150,65 +170,62 @@ function k({ open: t, onClose: n, context: r, title: i = "", askOnOpen: o }) {
|
|
|
150
170
|
alignItems: "center",
|
|
151
171
|
gap: 4
|
|
152
172
|
},
|
|
153
|
-
children: [/* @__PURE__ */
|
|
173
|
+
children: [/* @__PURE__ */ x("span", { style: {
|
|
154
174
|
width: 5,
|
|
155
175
|
height: 5,
|
|
156
176
|
background: "var(--success)",
|
|
157
177
|
borderRadius: 999
|
|
158
|
-
} }),
|
|
159
|
-
className: "mono",
|
|
160
|
-
children: r || d("agent.panel.context_platform", "Platform")
|
|
161
|
-
}) })]
|
|
178
|
+
} }), n(_("agent.panel.context", "context: {context}"), { context: /* @__PURE__ */ x("span", { children: D || _("agent.panel.context_platform", "Platform") }) })]
|
|
162
179
|
})]
|
|
163
180
|
}),
|
|
164
|
-
|
|
181
|
+
m.messages.length > 0 && /* @__PURE__ */ x(l, {
|
|
165
182
|
size: 24,
|
|
166
|
-
icon: /* @__PURE__ */
|
|
167
|
-
onClick: () => void
|
|
168
|
-
title:
|
|
183
|
+
icon: /* @__PURE__ */ x(c.copy, { size: 12 }),
|
|
184
|
+
onClick: () => void ue(_, m.messages),
|
|
185
|
+
title: _("agent.panel.copy_all", "Copy entire conversation")
|
|
169
186
|
}),
|
|
170
|
-
/* @__PURE__ */
|
|
187
|
+
/* @__PURE__ */ x(l, {
|
|
171
188
|
size: 24,
|
|
172
|
-
icon: /* @__PURE__ */
|
|
189
|
+
icon: /* @__PURE__ */ x(c.clock, { size: 12 }),
|
|
173
190
|
onClick: () => {
|
|
174
|
-
|
|
191
|
+
I((e) => !e), m.refreshConversations();
|
|
175
192
|
},
|
|
176
|
-
title:
|
|
193
|
+
title: _("agent.panel.earlier", "Earlier conversations")
|
|
177
194
|
}),
|
|
178
|
-
|
|
195
|
+
m.conversationId && /* @__PURE__ */ x(l, {
|
|
179
196
|
size: 24,
|
|
180
|
-
icon: /* @__PURE__ */
|
|
181
|
-
onClick:
|
|
182
|
-
title:
|
|
197
|
+
icon: /* @__PURE__ */ x(c.plus, { size: 12 }),
|
|
198
|
+
onClick: m.startNew,
|
|
199
|
+
title: _("agent.panel.new_conversation", "New conversation")
|
|
183
200
|
}),
|
|
184
|
-
/* @__PURE__ */
|
|
201
|
+
/* @__PURE__ */ x(l, {
|
|
185
202
|
size: 24,
|
|
186
|
-
icon: /* @__PURE__ */
|
|
187
|
-
title:
|
|
203
|
+
icon: /* @__PURE__ */ x(c.settings, { size: 12 }),
|
|
204
|
+
title: _("agent.panel.preferences", "Preferences")
|
|
188
205
|
}),
|
|
189
|
-
/* @__PURE__ */
|
|
206
|
+
/* @__PURE__ */ x(l, {
|
|
190
207
|
size: 24,
|
|
191
|
-
icon: /* @__PURE__ */
|
|
192
|
-
onClick:
|
|
193
|
-
title:
|
|
208
|
+
icon: /* @__PURE__ */ x(c.x, { size: 13 }),
|
|
209
|
+
onClick: i,
|
|
210
|
+
title: _("agent.panel.close", "Close")
|
|
194
211
|
})
|
|
195
212
|
]
|
|
196
213
|
}),
|
|
197
|
-
!
|
|
198
|
-
agents:
|
|
199
|
-
selectedId:
|
|
200
|
-
onSelect:
|
|
201
|
-
label:
|
|
214
|
+
!m.conversationId && /* @__PURE__ */ x(h, {
|
|
215
|
+
agents: m.agents,
|
|
216
|
+
selectedId: m.selectedAgentId,
|
|
217
|
+
onSelect: m.selectAgent,
|
|
218
|
+
label: _("agent.panel.agent", "Agent")
|
|
202
219
|
}),
|
|
203
|
-
|
|
204
|
-
conversations:
|
|
205
|
-
currentId:
|
|
220
|
+
F && /* @__PURE__ */ x(ce, {
|
|
221
|
+
conversations: m.conversations,
|
|
222
|
+
currentId: m.conversationId,
|
|
206
223
|
onPick: (e) => {
|
|
207
|
-
|
|
224
|
+
m.setConversationId(e), I(!1);
|
|
208
225
|
}
|
|
209
226
|
}),
|
|
210
|
-
/* @__PURE__ */
|
|
211
|
-
ref:
|
|
227
|
+
/* @__PURE__ */ S("div", {
|
|
228
|
+
ref: R,
|
|
212
229
|
onScroll: H,
|
|
213
230
|
style: {
|
|
214
231
|
flex: 1,
|
|
@@ -220,21 +237,21 @@ function k({ open: t, onClose: n, context: r, title: i = "", askOnOpen: o }) {
|
|
|
220
237
|
position: "relative"
|
|
221
238
|
},
|
|
222
239
|
children: [
|
|
223
|
-
X && /* @__PURE__ */
|
|
224
|
-
|
|
225
|
-
J.map((e) => /* @__PURE__ */
|
|
226
|
-
K.map((e) => /* @__PURE__ */
|
|
240
|
+
X && /* @__PURE__ */ x(M, { children: _("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?") }),
|
|
241
|
+
ne(m.messages, m.invocations).map((e) => e.kind === "message" ? /* @__PURE__ */ x(le, { message: e.message }, e.message.id) : /* @__PURE__ */ x(se, { run: e }, e.id)),
|
|
242
|
+
J.map((e) => /* @__PURE__ */ x(ie, { agentTurn: e }, e.id)),
|
|
243
|
+
K.map((e) => /* @__PURE__ */ x(de, {
|
|
227
244
|
tool: e,
|
|
228
|
-
onApprove: async (t) =>
|
|
229
|
-
onReject: async (t) =>
|
|
245
|
+
onApprove: async (t) => m.approve(e.id, t),
|
|
246
|
+
onReject: async (t) => m.reject(e.id, t)
|
|
230
247
|
}, e.id)),
|
|
231
|
-
q.map((e) => /* @__PURE__ */
|
|
232
|
-
...
|
|
233
|
-
onSubmit: (t) => void
|
|
234
|
-
onCancel: () => void
|
|
248
|
+
q.map((e) => /* @__PURE__ */ x(ee, {
|
|
249
|
+
...ae(_, e),
|
|
250
|
+
onSubmit: (t) => void m.submitInput(e.id, t),
|
|
251
|
+
onCancel: () => void m.cancelInput(e.id)
|
|
235
252
|
}, e.id)),
|
|
236
|
-
Y.map((e) => /* @__PURE__ */
|
|
237
|
-
Q && !
|
|
253
|
+
Y.map((e) => /* @__PURE__ */ x(oe, { invocation: e }, e.id)),
|
|
254
|
+
Q && !fe && /* @__PURE__ */ S("div", {
|
|
238
255
|
style: {
|
|
239
256
|
display: "flex",
|
|
240
257
|
gap: 6,
|
|
@@ -242,9 +259,9 @@ function k({ open: t, onClose: n, context: r, title: i = "", askOnOpen: o }) {
|
|
|
242
259
|
color: "var(--text-3)",
|
|
243
260
|
fontSize: 11.5
|
|
244
261
|
},
|
|
245
|
-
children: [/* @__PURE__ */
|
|
262
|
+
children: [/* @__PURE__ */ x(d, { size: 12 }), _("agent.panel.thinking", "Thinking…")]
|
|
246
263
|
}),
|
|
247
|
-
|
|
264
|
+
j && /* @__PURE__ */ x("div", {
|
|
248
265
|
style: {
|
|
249
266
|
padding: "8px 10px",
|
|
250
267
|
background: "var(--surface-2)",
|
|
@@ -253,11 +270,11 @@ function k({ open: t, onClose: n, context: r, title: i = "", askOnOpen: o }) {
|
|
|
253
270
|
fontSize: 11.5,
|
|
254
271
|
color: "var(--text-2)"
|
|
255
272
|
},
|
|
256
|
-
children: /* @__PURE__ */
|
|
273
|
+
children: /* @__PURE__ */ x("strong", { children: j })
|
|
257
274
|
})
|
|
258
275
|
]
|
|
259
276
|
}),
|
|
260
|
-
B && /* @__PURE__ */
|
|
277
|
+
B && /* @__PURE__ */ S("button", {
|
|
261
278
|
onClick: () => U("smooth"),
|
|
262
279
|
style: {
|
|
263
280
|
position: "absolute",
|
|
@@ -277,15 +294,15 @@ function k({ open: t, onClose: n, context: r, title: i = "", askOnOpen: o }) {
|
|
|
277
294
|
gap: 4,
|
|
278
295
|
zIndex: 1
|
|
279
296
|
},
|
|
280
|
-
children: [/* @__PURE__ */
|
|
297
|
+
children: [/* @__PURE__ */ x(c.arrowDown, { size: 11 }), _("agent.panel.jump_latest", "Jump to latest")]
|
|
281
298
|
}),
|
|
282
|
-
/* @__PURE__ */
|
|
299
|
+
/* @__PURE__ */ S("div", {
|
|
283
300
|
style: {
|
|
284
301
|
padding: 10,
|
|
285
302
|
borderTop: "1px solid var(--divider)",
|
|
286
303
|
background: "var(--surface-2)"
|
|
287
304
|
},
|
|
288
|
-
children: [/* @__PURE__ */
|
|
305
|
+
children: [/* @__PURE__ */ S("div", {
|
|
289
306
|
style: {
|
|
290
307
|
display: "flex",
|
|
291
308
|
alignItems: "flex-end",
|
|
@@ -296,11 +313,11 @@ function k({ open: t, onClose: n, context: r, title: i = "", askOnOpen: o }) {
|
|
|
296
313
|
borderRadius: 8
|
|
297
314
|
},
|
|
298
315
|
children: [
|
|
299
|
-
/* @__PURE__ */
|
|
300
|
-
value:
|
|
301
|
-
onChange: (e) =>
|
|
316
|
+
/* @__PURE__ */ x(w, {
|
|
317
|
+
value: k,
|
|
318
|
+
onChange: (e) => A(e.target.value),
|
|
302
319
|
onKeyDown: G,
|
|
303
|
-
placeholder:
|
|
320
|
+
placeholder: _("agent.panel.ask_placeholder", "Ask or describe what you want…"),
|
|
304
321
|
minRows: 1,
|
|
305
322
|
maxRows: 8,
|
|
306
323
|
style: {
|
|
@@ -316,15 +333,15 @@ function k({ open: t, onClose: n, context: r, title: i = "", askOnOpen: o }) {
|
|
|
316
333
|
fontFamily: "inherit"
|
|
317
334
|
}
|
|
318
335
|
}),
|
|
319
|
-
/* @__PURE__ */
|
|
336
|
+
/* @__PURE__ */ x(l, {
|
|
320
337
|
size: 26,
|
|
321
|
-
icon: /* @__PURE__ */
|
|
322
|
-
title:
|
|
338
|
+
icon: /* @__PURE__ */ x(c.paperclip, { size: 12 }),
|
|
339
|
+
title: _("agent.panel.attach_context", "Attach context")
|
|
323
340
|
}),
|
|
324
|
-
Q ? /* @__PURE__ */
|
|
325
|
-
onClick: () => void
|
|
326
|
-
"aria-label":
|
|
327
|
-
title:
|
|
341
|
+
Q ? /* @__PURE__ */ x("button", {
|
|
342
|
+
onClick: () => void m.cancel(),
|
|
343
|
+
"aria-label": _("agent.panel.stop", "Stop generating"),
|
|
344
|
+
title: _("agent.panel.stop", "Stop generating"),
|
|
328
345
|
style: {
|
|
329
346
|
width: 26,
|
|
330
347
|
height: 26,
|
|
@@ -337,11 +354,11 @@ function k({ open: t, onClose: n, context: r, title: i = "", askOnOpen: o }) {
|
|
|
337
354
|
alignItems: "center",
|
|
338
355
|
justifyContent: "center"
|
|
339
356
|
},
|
|
340
|
-
children: /* @__PURE__ */
|
|
341
|
-
}) : /* @__PURE__ */
|
|
342
|
-
onClick: () => void W(
|
|
357
|
+
children: /* @__PURE__ */ x(c.x, { size: 13 })
|
|
358
|
+
}) : /* @__PURE__ */ x("button", {
|
|
359
|
+
onClick: () => void W(k),
|
|
343
360
|
disabled: !$,
|
|
344
|
-
"aria-label":
|
|
361
|
+
"aria-label": _("agent.panel.send", "Send"),
|
|
345
362
|
style: {
|
|
346
363
|
width: 26,
|
|
347
364
|
height: 26,
|
|
@@ -354,10 +371,10 @@ function k({ open: t, onClose: n, context: r, title: i = "", askOnOpen: o }) {
|
|
|
354
371
|
alignItems: "center",
|
|
355
372
|
justifyContent: "center"
|
|
356
373
|
},
|
|
357
|
-
children: /* @__PURE__ */
|
|
374
|
+
children: /* @__PURE__ */ x(c.arrowUp, { size: 13 })
|
|
358
375
|
})
|
|
359
376
|
]
|
|
360
|
-
}), /* @__PURE__ */
|
|
377
|
+
}), /* @__PURE__ */ S("div", {
|
|
361
378
|
style: {
|
|
362
379
|
display: "flex",
|
|
363
380
|
alignItems: "center",
|
|
@@ -366,14 +383,14 @@ function k({ open: t, onClose: n, context: r, title: i = "", askOnOpen: o }) {
|
|
|
366
383
|
fontSize: 10.5,
|
|
367
384
|
color: "var(--text-4)"
|
|
368
385
|
},
|
|
369
|
-
children: [/* @__PURE__ */
|
|
386
|
+
children: [/* @__PURE__ */ x(c.shield, { size: 10 }), /* @__PURE__ */ x("span", { children: _("agent.panel.footer", "Runs within your permissions. All actions audit-logged.") })]
|
|
370
387
|
})]
|
|
371
388
|
})
|
|
372
389
|
]
|
|
373
390
|
});
|
|
374
391
|
}
|
|
375
|
-
function
|
|
376
|
-
return /* @__PURE__ */
|
|
392
|
+
function j() {
|
|
393
|
+
return /* @__PURE__ */ x("span", {
|
|
377
394
|
"aria-hidden": !0,
|
|
378
395
|
style: {
|
|
379
396
|
display: "inline-block",
|
|
@@ -386,16 +403,16 @@ function A() {
|
|
|
386
403
|
}
|
|
387
404
|
});
|
|
388
405
|
}
|
|
389
|
-
function
|
|
390
|
-
return /* @__PURE__ */
|
|
391
|
-
"data-message-id":
|
|
392
|
-
"data-streaming":
|
|
406
|
+
function M({ children: e, dataMessageId: t, dataStreaming: n }) {
|
|
407
|
+
return /* @__PURE__ */ S("div", {
|
|
408
|
+
"data-message-id": t,
|
|
409
|
+
"data-streaming": n ? "true" : void 0,
|
|
393
410
|
style: {
|
|
394
411
|
display: "flex",
|
|
395
412
|
gap: 8,
|
|
396
413
|
alignItems: "flex-start"
|
|
397
414
|
},
|
|
398
|
-
children: [/* @__PURE__ */
|
|
415
|
+
children: [/* @__PURE__ */ x("span", {
|
|
399
416
|
style: {
|
|
400
417
|
width: 20,
|
|
401
418
|
height: 20,
|
|
@@ -408,8 +425,8 @@ function j({ children: t, dataMessageId: n, dataStreaming: r }) {
|
|
|
408
425
|
flexShrink: 0,
|
|
409
426
|
marginTop: 2
|
|
410
427
|
},
|
|
411
|
-
children: /* @__PURE__ */
|
|
412
|
-
}), /* @__PURE__ */
|
|
428
|
+
children: /* @__PURE__ */ x(c.sparkle, { size: 11 })
|
|
429
|
+
}), /* @__PURE__ */ x("div", {
|
|
413
430
|
style: {
|
|
414
431
|
flex: 1,
|
|
415
432
|
minWidth: 0,
|
|
@@ -417,13 +434,13 @@ function j({ children: t, dataMessageId: n, dataStreaming: r }) {
|
|
|
417
434
|
lineHeight: 1.55,
|
|
418
435
|
color: "var(--text)"
|
|
419
436
|
},
|
|
420
|
-
children:
|
|
437
|
+
children: e
|
|
421
438
|
})]
|
|
422
439
|
});
|
|
423
440
|
}
|
|
424
|
-
function
|
|
425
|
-
let t =
|
|
426
|
-
return /* @__PURE__ */
|
|
441
|
+
function ie({ agentTurn: e }) {
|
|
442
|
+
let t = s(), n = s("errors"), r = i("agent_turn")?.fields.get("status"), a = e.status === "failed" ? n(e.error_code ?? "", o(e.error_details) || n("agents.turn_failed", "The assistant could not finish this turn.")) : void 0;
|
|
443
|
+
return /* @__PURE__ */ S("div", {
|
|
427
444
|
"data-agent-turn": e.id,
|
|
428
445
|
"data-turn-status": e.status,
|
|
429
446
|
style: {
|
|
@@ -431,28 +448,28 @@ function M({ agentTurn: e }) {
|
|
|
431
448
|
color: "var(--text-3)"
|
|
432
449
|
},
|
|
433
450
|
children: [
|
|
434
|
-
e.status === "queued" && (t(
|
|
451
|
+
e.status === "queued" && (t(r?.values?.find((e) => e.code === "queued")?.name) || e.status),
|
|
435
452
|
e.status === "running" && t("agent.panel.turn_working", "Working…"),
|
|
436
453
|
e.status === "waiting" && t("agent.panel.turn_waiting", "Waiting for your response"),
|
|
437
454
|
e.status === "failed" && t("agent.panel.turn_unfinished", "The agent couldn't finish: {reason}", { reason: a ?? "" })
|
|
438
455
|
]
|
|
439
456
|
});
|
|
440
457
|
}
|
|
441
|
-
function
|
|
458
|
+
function ae(e, t) {
|
|
442
459
|
let n = e("agent.panel.input_needed", "Your response is needed."), r = t.question;
|
|
443
460
|
if (r && (r.message || r.schema)) return {
|
|
444
461
|
message: r.message || t.reason || n,
|
|
445
|
-
schema:
|
|
462
|
+
schema: N(r.schema) ? r.schema : {}
|
|
446
463
|
};
|
|
447
464
|
let i = t.params ?? {};
|
|
448
465
|
return {
|
|
449
466
|
message: typeof i.message == "string" ? i.message : t.reason || n,
|
|
450
|
-
schema:
|
|
467
|
+
schema: N(i.schema) ? i.schema : {}
|
|
451
468
|
};
|
|
452
469
|
}
|
|
453
|
-
function
|
|
454
|
-
let t =
|
|
455
|
-
return /* @__PURE__ */
|
|
470
|
+
function oe({ invocation: e }) {
|
|
471
|
+
let t = s();
|
|
472
|
+
return /* @__PURE__ */ x("div", {
|
|
456
473
|
"data-agent-invocation": e.id,
|
|
457
474
|
"data-invocation-status": "outcome_unknown",
|
|
458
475
|
style: {
|
|
@@ -463,33 +480,33 @@ function ee({ invocation: e }) {
|
|
|
463
480
|
fontSize: 11.5,
|
|
464
481
|
color: "var(--text-2)"
|
|
465
482
|
},
|
|
466
|
-
children:
|
|
483
|
+
children: n(t("agent.panel.outcome_uncertain", "The outcome of {tool} is unknown. It was not retried automatically."), { tool: /* @__PURE__ */ x("span", {
|
|
467
484
|
className: "mono",
|
|
468
485
|
children: e.tool_code
|
|
469
486
|
}) })
|
|
470
487
|
});
|
|
471
488
|
}
|
|
472
|
-
function
|
|
489
|
+
function N(e) {
|
|
473
490
|
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
474
491
|
}
|
|
475
|
-
function
|
|
476
|
-
let [t, n] =
|
|
477
|
-
return /* @__PURE__ */
|
|
492
|
+
function se({ run: e }) {
|
|
493
|
+
let [t, n] = b(!1), r = P(), i = e.calls.filter((e) => e.isError).length, a = e.calls.filter((e) => !I(e.status)).length;
|
|
494
|
+
return /* @__PURE__ */ S("div", {
|
|
478
495
|
"data-activity-run": e.id,
|
|
479
496
|
style: {
|
|
480
497
|
display: "flex",
|
|
481
498
|
gap: 8,
|
|
482
499
|
alignItems: "flex-start"
|
|
483
500
|
},
|
|
484
|
-
children: [/* @__PURE__ */
|
|
501
|
+
children: [/* @__PURE__ */ x("span", { style: {
|
|
485
502
|
width: 20,
|
|
486
503
|
flexShrink: 0
|
|
487
|
-
} }), /* @__PURE__ */
|
|
504
|
+
} }), /* @__PURE__ */ S("div", {
|
|
488
505
|
style: {
|
|
489
506
|
flex: 1,
|
|
490
507
|
minWidth: 0
|
|
491
508
|
},
|
|
492
|
-
children: [/* @__PURE__ */
|
|
509
|
+
children: [/* @__PURE__ */ S("button", {
|
|
493
510
|
type: "button",
|
|
494
511
|
onClick: () => n((e) => !e),
|
|
495
512
|
"data-activity-toggle": !0,
|
|
@@ -507,41 +524,41 @@ function F({ run: e }) {
|
|
|
507
524
|
borderRadius: 999,
|
|
508
525
|
cursor: "pointer"
|
|
509
526
|
},
|
|
510
|
-
children: [/* @__PURE__ */
|
|
527
|
+
children: [/* @__PURE__ */ x("span", {
|
|
511
528
|
"aria-hidden": !0,
|
|
512
529
|
children: t ? "▾" : "▸"
|
|
513
|
-
}), /* @__PURE__ */
|
|
514
|
-
}), t && /* @__PURE__ */
|
|
530
|
+
}), /* @__PURE__ */ x("span", { children: r(e.calls.length, a, i) })]
|
|
531
|
+
}), t && /* @__PURE__ */ x("div", {
|
|
515
532
|
style: {
|
|
516
533
|
marginTop: 4,
|
|
517
534
|
display: "flex",
|
|
518
535
|
flexDirection: "column",
|
|
519
536
|
gap: 3
|
|
520
537
|
},
|
|
521
|
-
children: e.calls.map((e) => /* @__PURE__ */
|
|
538
|
+
children: e.calls.map((e) => /* @__PURE__ */ x(F, { call: e }, e.id))
|
|
522
539
|
})]
|
|
523
540
|
})]
|
|
524
541
|
});
|
|
525
542
|
}
|
|
526
|
-
function
|
|
527
|
-
let e =
|
|
528
|
-
return (
|
|
529
|
-
let
|
|
530
|
-
return
|
|
543
|
+
function P() {
|
|
544
|
+
let e = s();
|
|
545
|
+
return (n, r, i) => {
|
|
546
|
+
let a = [];
|
|
547
|
+
return n > 0 && a.push(t(e, "agent.panel.operations", n, {
|
|
531
548
|
one: "{count} operation",
|
|
532
549
|
other: "{count} operations"
|
|
533
|
-
})),
|
|
550
|
+
})), r > 0 && a.push(e("agent.panel.running", "running")), i > 0 && a.push(t(e, "agent.panel.failed_count", i, {
|
|
534
551
|
one: "{count} failed",
|
|
535
552
|
other: "{count} failed"
|
|
536
|
-
})),
|
|
553
|
+
})), a.join(" · ") || e("agent.panel.worked", "worked");
|
|
537
554
|
};
|
|
538
555
|
}
|
|
539
|
-
function
|
|
540
|
-
let [t, n] =
|
|
541
|
-
return /* @__PURE__ */
|
|
556
|
+
function F({ call: e }) {
|
|
557
|
+
let [t, n] = b(!1), r = s(), a = L(e.name), o = i("agent_tool_invocation")?.fields.get("status"), c = e.status ?? "running", l = r(o?.values?.find((e) => e.code === c)?.name) || c, u = e.status === "outcome_unknown" ? "outcome_unknown" : e.isError ? "failed" : I(e.status) ? "ok" : "running";
|
|
558
|
+
return /* @__PURE__ */ S("div", {
|
|
542
559
|
"data-activity-call": e.name,
|
|
543
|
-
"data-call-state":
|
|
544
|
-
children: [/* @__PURE__ */
|
|
560
|
+
"data-call-state": u,
|
|
561
|
+
children: [/* @__PURE__ */ S("button", {
|
|
545
562
|
type: "button",
|
|
546
563
|
onClick: () => n((e) => !e),
|
|
547
564
|
style: {
|
|
@@ -553,23 +570,23 @@ function L({ call: e }) {
|
|
|
553
570
|
background: "transparent",
|
|
554
571
|
border: "none",
|
|
555
572
|
cursor: "pointer",
|
|
556
|
-
color:
|
|
573
|
+
color: u === "failed" ? "var(--danger)" : "var(--text-2)"
|
|
557
574
|
},
|
|
558
575
|
children: [
|
|
559
|
-
/* @__PURE__ */
|
|
576
|
+
/* @__PURE__ */ x("span", {
|
|
560
577
|
"aria-hidden": !0,
|
|
561
578
|
children: t ? "▾" : "▸"
|
|
562
579
|
}),
|
|
563
|
-
/* @__PURE__ */
|
|
580
|
+
/* @__PURE__ */ x("span", {
|
|
564
581
|
className: "mono",
|
|
565
|
-
children:
|
|
582
|
+
children: a
|
|
566
583
|
}),
|
|
567
|
-
/* @__PURE__ */
|
|
584
|
+
/* @__PURE__ */ x("span", {
|
|
568
585
|
style: { color: "var(--text-3)" },
|
|
569
|
-
children:
|
|
586
|
+
children: l
|
|
570
587
|
})
|
|
571
588
|
]
|
|
572
|
-
}), t && /* @__PURE__ */
|
|
589
|
+
}), t && /* @__PURE__ */ x("pre", {
|
|
573
590
|
style: {
|
|
574
591
|
margin: "2px 0 0 18px",
|
|
575
592
|
padding: 6,
|
|
@@ -590,26 +607,26 @@ function L({ call: e }) {
|
|
|
590
607
|
})]
|
|
591
608
|
});
|
|
592
609
|
}
|
|
593
|
-
function
|
|
610
|
+
function I(e) {
|
|
594
611
|
return e === "succeeded" || e === "failed" || e === "rejected" || e === "canceled" || e === "outcome_unknown";
|
|
595
612
|
}
|
|
596
|
-
function
|
|
597
|
-
let r =
|
|
598
|
-
return e.length === 0 ? /* @__PURE__ */
|
|
613
|
+
function ce({ conversations: e, currentId: t, onPick: n }) {
|
|
614
|
+
let r = s();
|
|
615
|
+
return e.length === 0 ? /* @__PURE__ */ x("div", {
|
|
599
616
|
style: {
|
|
600
617
|
padding: "8px 12px",
|
|
601
618
|
fontSize: 11.5,
|
|
602
619
|
color: "var(--text-3)"
|
|
603
620
|
},
|
|
604
621
|
children: r("agent.panel.no_earlier", "No earlier conversations.")
|
|
605
|
-
}) : /* @__PURE__ */
|
|
622
|
+
}) : /* @__PURE__ */ x("div", {
|
|
606
623
|
"data-conversation-list": !0,
|
|
607
624
|
style: {
|
|
608
625
|
maxHeight: 200,
|
|
609
626
|
overflowY: "auto",
|
|
610
627
|
borderBottom: "1px solid var(--border)"
|
|
611
628
|
},
|
|
612
|
-
children: e.map((e) => /* @__PURE__ */
|
|
629
|
+
children: e.map((e) => /* @__PURE__ */ x("button", {
|
|
613
630
|
type: "button",
|
|
614
631
|
"data-conversation-id": e.id,
|
|
615
632
|
onClick: () => n(e.id),
|
|
@@ -628,18 +645,18 @@ function z({ conversations: e, currentId: t, onPick: n }) {
|
|
|
628
645
|
}, e.id))
|
|
629
646
|
});
|
|
630
647
|
}
|
|
631
|
-
function
|
|
632
|
-
let
|
|
633
|
-
return
|
|
648
|
+
function L(t) {
|
|
649
|
+
let n = s(), { value: r } = p("agents.transcript_names", "code"), { data: i } = e();
|
|
650
|
+
return r === "display" && n(i?.actions?.[t]?.display?.name ?? R(i, t)) || t;
|
|
634
651
|
}
|
|
635
|
-
function
|
|
652
|
+
function R(e, t) {
|
|
636
653
|
let n = t.indexOf(".");
|
|
637
654
|
if (!(n < 0)) return e?.entities?.[t.slice(0, n)]?.actions?.[t.slice(n + 1)]?.display?.name;
|
|
638
655
|
}
|
|
639
|
-
function
|
|
656
|
+
function le({ message: e }) {
|
|
640
657
|
if (e.role === "user") {
|
|
641
|
-
let t =
|
|
642
|
-
return t && !n ? /* @__PURE__ */
|
|
658
|
+
let t = G(e.content), n = e.content.some((e) => e.type !== "text" && e.type !== "location");
|
|
659
|
+
return t && !n ? /* @__PURE__ */ x("div", {
|
|
643
660
|
style: {
|
|
644
661
|
alignSelf: "flex-end",
|
|
645
662
|
maxWidth: "80%",
|
|
@@ -653,19 +670,19 @@ function te({ message: e }) {
|
|
|
653
670
|
"data-message-id": e.id,
|
|
654
671
|
"data-streaming": e.streaming ? "true" : void 0,
|
|
655
672
|
children: t
|
|
656
|
-
}) : /* @__PURE__ */
|
|
673
|
+
}) : /* @__PURE__ */ x(z, { message: e });
|
|
657
674
|
}
|
|
658
|
-
return e.role === "tool" ? /* @__PURE__ */
|
|
675
|
+
return e.role === "tool" ? /* @__PURE__ */ x(z, { message: e }) : e.role === "system" ? e.content.some((e) => e.type === "decision") ? /* @__PURE__ */ x(z, { message: e }) : /* @__PURE__ */ x(M, {
|
|
659
676
|
dataMessageId: e.id,
|
|
660
|
-
children: e.content.map((e, t) => /* @__PURE__ */
|
|
661
|
-
}) : e.content.length === 0 ? null : /* @__PURE__ */
|
|
677
|
+
children: e.content.map((e, t) => /* @__PURE__ */ x(U, { block: e }, t))
|
|
678
|
+
}) : e.content.length === 0 ? null : /* @__PURE__ */ S(M, {
|
|
662
679
|
dataMessageId: e.id,
|
|
663
680
|
dataStreaming: e.streaming,
|
|
664
|
-
children: [e.content.map((e, t) => /* @__PURE__ */
|
|
681
|
+
children: [e.content.map((e, t) => /* @__PURE__ */ x(U, { block: e }, t)), e.streaming && /* @__PURE__ */ x(j, {})]
|
|
665
682
|
});
|
|
666
683
|
}
|
|
667
|
-
function
|
|
668
|
-
return /* @__PURE__ */
|
|
684
|
+
function z({ message: e }) {
|
|
685
|
+
return /* @__PURE__ */ x("div", {
|
|
669
686
|
"data-message-id": e.id,
|
|
670
687
|
"data-streaming": e.streaming ? "true" : void 0,
|
|
671
688
|
style: {
|
|
@@ -675,12 +692,45 @@ function H({ message: e }) {
|
|
|
675
692
|
flexDirection: "column",
|
|
676
693
|
alignItems: "flex-end"
|
|
677
694
|
},
|
|
678
|
-
children: e.content.map((e, t) => /* @__PURE__ */
|
|
695
|
+
children: e.content.map((e, t) => /* @__PURE__ */ x(U, { block: e }, t))
|
|
696
|
+
});
|
|
697
|
+
}
|
|
698
|
+
function B({ href: e, children: t, ...n }) {
|
|
699
|
+
let r = m(), i = {
|
|
700
|
+
color: "var(--accent)",
|
|
701
|
+
textDecoration: "underline"
|
|
702
|
+
}, a = V(e);
|
|
703
|
+
return a ? /* @__PURE__ */ x("a", {
|
|
704
|
+
...n,
|
|
705
|
+
href: e,
|
|
706
|
+
style: i,
|
|
707
|
+
onClick: (e) => {
|
|
708
|
+
e.preventDefault(), r(a);
|
|
709
|
+
},
|
|
710
|
+
children: t
|
|
711
|
+
}) : /* @__PURE__ */ x("a", {
|
|
712
|
+
...n,
|
|
713
|
+
href: e,
|
|
714
|
+
target: "_blank",
|
|
715
|
+
rel: "noopener noreferrer",
|
|
716
|
+
style: i,
|
|
717
|
+
children: t
|
|
679
718
|
});
|
|
680
719
|
}
|
|
681
|
-
|
|
720
|
+
function V(e) {
|
|
721
|
+
if (typeof e != "string") return null;
|
|
722
|
+
let t;
|
|
723
|
+
try {
|
|
724
|
+
t = new URL(e, window.location.href);
|
|
725
|
+
} catch {
|
|
726
|
+
return null;
|
|
727
|
+
}
|
|
728
|
+
return t.origin === window.location.origin ? `${t.pathname}${t.search}${t.hash}` : null;
|
|
729
|
+
}
|
|
730
|
+
var H = {
|
|
731
|
+
a: B,
|
|
682
732
|
code({ node: e, inline: t, className: n, children: r, ...i }) {
|
|
683
|
-
return t ? /* @__PURE__ */
|
|
733
|
+
return t ? /* @__PURE__ */ x("code", {
|
|
684
734
|
...i,
|
|
685
735
|
style: {
|
|
686
736
|
background: "var(--surface-2)",
|
|
@@ -690,7 +740,7 @@ var U = {
|
|
|
690
740
|
fontSize: "0.92em"
|
|
691
741
|
},
|
|
692
742
|
children: r
|
|
693
|
-
}) : /* @__PURE__ */
|
|
743
|
+
}) : /* @__PURE__ */ x("pre", {
|
|
694
744
|
style: {
|
|
695
745
|
background: "var(--surface-2)",
|
|
696
746
|
border: "1px solid var(--border)",
|
|
@@ -701,27 +751,15 @@ var U = {
|
|
|
701
751
|
fontSize: 11.5,
|
|
702
752
|
lineHeight: 1.5
|
|
703
753
|
},
|
|
704
|
-
children: /* @__PURE__ */
|
|
754
|
+
children: /* @__PURE__ */ x("code", {
|
|
705
755
|
className: n,
|
|
706
756
|
...i,
|
|
707
757
|
children: r
|
|
708
758
|
})
|
|
709
759
|
});
|
|
710
760
|
},
|
|
711
|
-
a({ children: e, ...t }) {
|
|
712
|
-
return /* @__PURE__ */ y("a", {
|
|
713
|
-
...t,
|
|
714
|
-
target: "_blank",
|
|
715
|
-
rel: "noopener noreferrer",
|
|
716
|
-
style: {
|
|
717
|
-
color: "var(--accent)",
|
|
718
|
-
textDecoration: "underline"
|
|
719
|
-
},
|
|
720
|
-
children: e
|
|
721
|
-
});
|
|
722
|
-
},
|
|
723
761
|
ul({ children: e, ...t }) {
|
|
724
|
-
return /* @__PURE__ */
|
|
762
|
+
return /* @__PURE__ */ x("ul", {
|
|
725
763
|
...t,
|
|
726
764
|
style: {
|
|
727
765
|
paddingLeft: 18,
|
|
@@ -731,7 +769,7 @@ var U = {
|
|
|
731
769
|
});
|
|
732
770
|
},
|
|
733
771
|
ol({ children: e, ...t }) {
|
|
734
|
-
return /* @__PURE__ */
|
|
772
|
+
return /* @__PURE__ */ x("ol", {
|
|
735
773
|
...t,
|
|
736
774
|
style: {
|
|
737
775
|
paddingLeft: 20,
|
|
@@ -741,48 +779,49 @@ var U = {
|
|
|
741
779
|
});
|
|
742
780
|
},
|
|
743
781
|
p({ children: e, ...t }) {
|
|
744
|
-
return /* @__PURE__ */
|
|
782
|
+
return /* @__PURE__ */ x("p", {
|
|
745
783
|
...t,
|
|
746
784
|
style: { margin: "4px 0" },
|
|
747
785
|
children: e
|
|
748
786
|
});
|
|
749
787
|
}
|
|
750
788
|
};
|
|
751
|
-
function
|
|
752
|
-
let t =
|
|
789
|
+
function U({ block: e }) {
|
|
790
|
+
let t = s();
|
|
753
791
|
switch (e.type) {
|
|
754
|
-
case "text": return /* @__PURE__ */
|
|
792
|
+
case "text": return /* @__PURE__ */ x("div", {
|
|
755
793
|
className: "agent-md",
|
|
756
|
-
children: /* @__PURE__ */
|
|
794
|
+
children: /* @__PURE__ */ x(f, {
|
|
757
795
|
content: e.text,
|
|
758
796
|
plugins: "gfm",
|
|
759
797
|
prose: !1,
|
|
760
798
|
skipHtml: !1,
|
|
761
|
-
components:
|
|
799
|
+
components: H
|
|
762
800
|
})
|
|
763
801
|
});
|
|
764
802
|
case "tool_use": {
|
|
765
|
-
let n =
|
|
766
|
-
return /* @__PURE__ */
|
|
803
|
+
let n = K(t, e.name, e.input);
|
|
804
|
+
return /* @__PURE__ */ x(W, {
|
|
767
805
|
kind: "call",
|
|
768
806
|
label: n.label,
|
|
769
807
|
sub: n.sub,
|
|
770
808
|
body: e.input
|
|
771
809
|
});
|
|
772
810
|
}
|
|
773
|
-
case "tool_result": return /* @__PURE__ */
|
|
811
|
+
case "tool_result": return /* @__PURE__ */ x(W, {
|
|
774
812
|
kind: "result",
|
|
775
|
-
label:
|
|
813
|
+
label: q(t, e),
|
|
776
814
|
body: e.output,
|
|
777
815
|
isError: !!e.is_error
|
|
778
816
|
});
|
|
779
|
-
case "elicit_response": return /* @__PURE__ */
|
|
817
|
+
case "elicit_response": return /* @__PURE__ */ x(W, {
|
|
780
818
|
kind: "result",
|
|
781
819
|
label: t("agent.panel.chip.answer", "answer"),
|
|
782
820
|
body: e.data
|
|
783
821
|
});
|
|
784
|
-
case "decision": return /* @__PURE__ */
|
|
785
|
-
case "
|
|
822
|
+
case "decision": return /* @__PURE__ */ x(Y, { block: e });
|
|
823
|
+
case "location": return null;
|
|
824
|
+
case "system": return /* @__PURE__ */ S("div", {
|
|
786
825
|
style: {
|
|
787
826
|
fontSize: 10.5,
|
|
788
827
|
fontStyle: "italic",
|
|
@@ -790,7 +829,7 @@ function W({ block: e }) {
|
|
|
790
829
|
},
|
|
791
830
|
children: ["— ", e.reason]
|
|
792
831
|
});
|
|
793
|
-
case "summary": return /* @__PURE__ */
|
|
832
|
+
case "summary": return /* @__PURE__ */ x("div", {
|
|
794
833
|
style: {
|
|
795
834
|
fontSize: 10.5,
|
|
796
835
|
fontStyle: "italic",
|
|
@@ -798,7 +837,7 @@ function W({ block: e }) {
|
|
|
798
837
|
},
|
|
799
838
|
children: e.text
|
|
800
839
|
});
|
|
801
|
-
case "attachment": return /* @__PURE__ */
|
|
840
|
+
case "attachment": return /* @__PURE__ */ x("pre", {
|
|
802
841
|
className: "mono",
|
|
803
842
|
style: {
|
|
804
843
|
marginTop: 8,
|
|
@@ -814,8 +853,8 @@ function W({ block: e }) {
|
|
|
814
853
|
default: return null;
|
|
815
854
|
}
|
|
816
855
|
}
|
|
817
|
-
function
|
|
818
|
-
return /* @__PURE__ */
|
|
856
|
+
function W({ kind: e, label: t, sub: n, body: r, isError: i }) {
|
|
857
|
+
return /* @__PURE__ */ S("details", {
|
|
819
858
|
style: {
|
|
820
859
|
marginTop: 6,
|
|
821
860
|
background: "var(--surface-2)",
|
|
@@ -828,7 +867,7 @@ function G({ kind: e, label: t, sub: n, body: r, isError: i }) {
|
|
|
828
867
|
boxSizing: "border-box",
|
|
829
868
|
overflow: "hidden"
|
|
830
869
|
},
|
|
831
|
-
children: [/* @__PURE__ */
|
|
870
|
+
children: [/* @__PURE__ */ S("summary", {
|
|
832
871
|
style: {
|
|
833
872
|
padding: "5px 8px",
|
|
834
873
|
cursor: "pointer",
|
|
@@ -840,7 +879,7 @@ function G({ kind: e, label: t, sub: n, body: r, isError: i }) {
|
|
|
840
879
|
color: "var(--text-2)"
|
|
841
880
|
},
|
|
842
881
|
children: [
|
|
843
|
-
/* @__PURE__ */
|
|
882
|
+
/* @__PURE__ */ x("span", {
|
|
844
883
|
"aria-hidden": !0,
|
|
845
884
|
style: {
|
|
846
885
|
color: i ? "var(--destructive)" : "var(--text-3)",
|
|
@@ -849,7 +888,7 @@ function G({ kind: e, label: t, sub: n, body: r, isError: i }) {
|
|
|
849
888
|
},
|
|
850
889
|
children: e === "call" ? "→" : i ? "✗" : "✓"
|
|
851
890
|
}),
|
|
852
|
-
/* @__PURE__ */
|
|
891
|
+
/* @__PURE__ */ x("span", {
|
|
853
892
|
className: "mono",
|
|
854
893
|
style: {
|
|
855
894
|
color: "var(--text-2)",
|
|
@@ -861,7 +900,7 @@ function G({ kind: e, label: t, sub: n, body: r, isError: i }) {
|
|
|
861
900
|
},
|
|
862
901
|
children: t
|
|
863
902
|
}),
|
|
864
|
-
n && /* @__PURE__ */
|
|
903
|
+
n && /* @__PURE__ */ x("span", {
|
|
865
904
|
style: {
|
|
866
905
|
fontSize: 10,
|
|
867
906
|
color: "var(--text-4)",
|
|
@@ -873,8 +912,8 @@ function G({ kind: e, label: t, sub: n, body: r, isError: i }) {
|
|
|
873
912
|
},
|
|
874
913
|
children: n
|
|
875
914
|
}),
|
|
876
|
-
/* @__PURE__ */
|
|
877
|
-
/* @__PURE__ */
|
|
915
|
+
/* @__PURE__ */ x("span", { style: { flex: 1 } }),
|
|
916
|
+
/* @__PURE__ */ x("span", {
|
|
878
917
|
"aria-hidden": !0,
|
|
879
918
|
style: {
|
|
880
919
|
fontSize: 9,
|
|
@@ -883,7 +922,7 @@ function G({ kind: e, label: t, sub: n, body: r, isError: i }) {
|
|
|
883
922
|
children: "▾"
|
|
884
923
|
})
|
|
885
924
|
]
|
|
886
|
-
}), /* @__PURE__ */
|
|
925
|
+
}), /* @__PURE__ */ x("pre", {
|
|
887
926
|
className: "mono",
|
|
888
927
|
style: {
|
|
889
928
|
margin: 0,
|
|
@@ -899,10 +938,10 @@ function G({ kind: e, label: t, sub: n, body: r, isError: i }) {
|
|
|
899
938
|
})]
|
|
900
939
|
});
|
|
901
940
|
}
|
|
902
|
-
function
|
|
941
|
+
function G(e) {
|
|
903
942
|
return e.map((e) => e.type === "text" ? e.text : "").join("");
|
|
904
943
|
}
|
|
905
|
-
function
|
|
944
|
+
function K(e, t, n) {
|
|
906
945
|
if (t === "action.invoke") {
|
|
907
946
|
let r = typeof n?.code == "string" ? n.code : "";
|
|
908
947
|
if (r) return {
|
|
@@ -912,15 +951,15 @@ function q(e, t, n) {
|
|
|
912
951
|
}
|
|
913
952
|
return { label: t };
|
|
914
953
|
}
|
|
915
|
-
function
|
|
954
|
+
function q(e, t) {
|
|
916
955
|
return t.name ? t.name : t.is_error ? e("agent.panel.chip.error", "error") : e("agent.panel.chip.result", "result");
|
|
917
956
|
}
|
|
918
|
-
function
|
|
957
|
+
function J(e, t) {
|
|
919
958
|
return t === "approved" ? e("agent.panel.decision.approve", "Approved") : e("agent.panel.decision.reject", "Rejected");
|
|
920
959
|
}
|
|
921
|
-
function
|
|
922
|
-
let t =
|
|
923
|
-
return /* @__PURE__ */
|
|
960
|
+
function Y({ block: e }) {
|
|
961
|
+
let t = s(), n = e.decision === "approved", r = n ? "var(--success)" : "var(--destructive)";
|
|
962
|
+
return /* @__PURE__ */ S("div", {
|
|
924
963
|
style: {
|
|
925
964
|
marginTop: 6,
|
|
926
965
|
padding: "5px 10px",
|
|
@@ -936,7 +975,7 @@ function X({ block: e }) {
|
|
|
936
975
|
},
|
|
937
976
|
title: e.decided_at ? t("agent.panel.decided_at", "decided {time}", { time: e.decided_at }) : void 0,
|
|
938
977
|
children: [
|
|
939
|
-
/* @__PURE__ */
|
|
978
|
+
/* @__PURE__ */ x("span", {
|
|
940
979
|
"aria-hidden": !0,
|
|
941
980
|
style: {
|
|
942
981
|
color: r,
|
|
@@ -944,11 +983,11 @@ function X({ block: e }) {
|
|
|
944
983
|
},
|
|
945
984
|
children: n ? "✓" : "✗"
|
|
946
985
|
}),
|
|
947
|
-
/* @__PURE__ */
|
|
986
|
+
/* @__PURE__ */ x("span", {
|
|
948
987
|
style: { fontWeight: 600 },
|
|
949
|
-
children:
|
|
988
|
+
children: J(t, e.decision)
|
|
950
989
|
}),
|
|
951
|
-
/* @__PURE__ */
|
|
990
|
+
/* @__PURE__ */ x("span", {
|
|
952
991
|
className: "mono",
|
|
953
992
|
style: {
|
|
954
993
|
color: "var(--text-3)",
|
|
@@ -956,7 +995,7 @@ function X({ block: e }) {
|
|
|
956
995
|
},
|
|
957
996
|
children: e.tool_code
|
|
958
997
|
}),
|
|
959
|
-
e.note && /* @__PURE__ */
|
|
998
|
+
e.note && /* @__PURE__ */ S("span", {
|
|
960
999
|
style: {
|
|
961
1000
|
color: "var(--text-3)",
|
|
962
1001
|
fontStyle: "italic"
|
|
@@ -966,10 +1005,10 @@ function X({ block: e }) {
|
|
|
966
1005
|
]
|
|
967
1006
|
});
|
|
968
1007
|
}
|
|
969
|
-
async function
|
|
1008
|
+
async function ue(e, t) {
|
|
970
1009
|
let n = [];
|
|
971
1010
|
for (let r of t) {
|
|
972
|
-
let t = `[${r.role}]`, i = r.content.map((t) =>
|
|
1011
|
+
let t = `[${r.role}]`, i = r.content.map((t) => X(e, t)).filter((e) => e.length > 0).join("\n");
|
|
973
1012
|
i && n.push(`${t}\n${i}`);
|
|
974
1013
|
}
|
|
975
1014
|
let r = n.join("\n\n");
|
|
@@ -979,46 +1018,46 @@ async function ne(e, t) {
|
|
|
979
1018
|
console.error("agent: copyTranscript failed", e);
|
|
980
1019
|
}
|
|
981
1020
|
}
|
|
982
|
-
function
|
|
1021
|
+
function X(e, t) {
|
|
983
1022
|
switch (t.type) {
|
|
984
1023
|
case "text": return t.text;
|
|
985
1024
|
case "tool_use": {
|
|
986
|
-
let n =
|
|
1025
|
+
let n = K(e, t.name, t.input);
|
|
987
1026
|
return `${n.sub ? `→ ${n.label} (${n.sub})` : `→ ${n.label}`}\n${JSON.stringify(t.input, null, 2)}`;
|
|
988
1027
|
}
|
|
989
|
-
case "tool_result": return `${`${t.is_error ? "✗" : "✓"} ${
|
|
1028
|
+
case "tool_result": return `${`${t.is_error ? "✗" : "✓"} ${q(e, t)}`}\n${JSON.stringify(t.output, null, 2)}`;
|
|
990
1029
|
case "elicit_response": return `${e("agent.panel.chip.answer", "answer")}\n${JSON.stringify(t.data, null, 2)}`;
|
|
991
|
-
case "decision": return `${
|
|
1030
|
+
case "decision": return `${J(e, t.decision)} ${t.tool_code}${t.note ? ` — ${t.note}` : ""}`;
|
|
992
1031
|
case "system": return `— ${t.reason}`;
|
|
993
1032
|
case "summary": return t.text;
|
|
994
1033
|
case "attachment": return t.content;
|
|
995
1034
|
default: return "";
|
|
996
1035
|
}
|
|
997
1036
|
}
|
|
998
|
-
function
|
|
1037
|
+
function Z(e, t) {
|
|
999
1038
|
return e("agent.panel.proposal", "Run {code}.", { code: t });
|
|
1000
1039
|
}
|
|
1001
|
-
function
|
|
1002
|
-
let
|
|
1003
|
-
if (!
|
|
1004
|
-
|
|
1040
|
+
function de({ tool: e, onApprove: t, onReject: n }) {
|
|
1041
|
+
let i = s(), a = s("errors"), o = JSON.stringify(e.params ?? {}, null, 2), [l, d] = b(!1), [f, p] = b(!1), [m, ee] = b(""), [h, g] = b(null), [_, v] = b(!1), y = async (e) => {
|
|
1042
|
+
if (!_) {
|
|
1043
|
+
v(!0);
|
|
1005
1044
|
try {
|
|
1006
|
-
await
|
|
1045
|
+
await t(e);
|
|
1007
1046
|
} catch (e) {
|
|
1008
|
-
|
|
1047
|
+
g(r(a, e)), v(!1);
|
|
1009
1048
|
}
|
|
1010
1049
|
}
|
|
1011
|
-
},
|
|
1012
|
-
if (!
|
|
1013
|
-
|
|
1050
|
+
}, C = async () => {
|
|
1051
|
+
if (!_) {
|
|
1052
|
+
v(!0);
|
|
1014
1053
|
try {
|
|
1015
|
-
await
|
|
1054
|
+
await n(m.trim() || void 0);
|
|
1016
1055
|
} catch (e) {
|
|
1017
|
-
|
|
1056
|
+
g(r(a, e)), v(!1);
|
|
1018
1057
|
}
|
|
1019
1058
|
}
|
|
1020
|
-
},
|
|
1021
|
-
return /* @__PURE__ */
|
|
1059
|
+
}, w = typeof e.confidence == "number" ? Math.round(Math.max(0, Math.min(1, e.confidence)) * 100) : null;
|
|
1060
|
+
return /* @__PURE__ */ S("div", {
|
|
1022
1061
|
style: {
|
|
1023
1062
|
marginTop: 4,
|
|
1024
1063
|
padding: "10px 12px",
|
|
@@ -1027,7 +1066,7 @@ function re({ tool: n, onApprove: r, onReject: i }) {
|
|
|
1027
1066
|
borderRadius: 7
|
|
1028
1067
|
},
|
|
1029
1068
|
children: [
|
|
1030
|
-
/* @__PURE__ */
|
|
1069
|
+
/* @__PURE__ */ S("div", {
|
|
1031
1070
|
style: {
|
|
1032
1071
|
display: "flex",
|
|
1033
1072
|
alignItems: "center",
|
|
@@ -1035,28 +1074,28 @@ function re({ tool: n, onApprove: r, onReject: i }) {
|
|
|
1035
1074
|
marginBottom: 6
|
|
1036
1075
|
},
|
|
1037
1076
|
children: [
|
|
1038
|
-
/* @__PURE__ */
|
|
1077
|
+
/* @__PURE__ */ x(c.bolt, {
|
|
1039
1078
|
size: 11,
|
|
1040
1079
|
style: { color: "var(--accent)" }
|
|
1041
1080
|
}),
|
|
1042
|
-
/* @__PURE__ */
|
|
1081
|
+
/* @__PURE__ */ x("span", {
|
|
1043
1082
|
style: {
|
|
1044
1083
|
fontSize: 11.5,
|
|
1045
1084
|
fontWeight: 600,
|
|
1046
1085
|
color: "var(--text)"
|
|
1047
1086
|
},
|
|
1048
|
-
children:
|
|
1087
|
+
children: i("agent.panel.proposed", "AI proposed")
|
|
1049
1088
|
}),
|
|
1050
|
-
/* @__PURE__ */
|
|
1089
|
+
/* @__PURE__ */ x("span", {
|
|
1051
1090
|
className: "mono",
|
|
1052
1091
|
style: {
|
|
1053
1092
|
fontSize: 10.5,
|
|
1054
1093
|
color: "var(--text-3)"
|
|
1055
1094
|
},
|
|
1056
|
-
children:
|
|
1095
|
+
children: e.tool_code
|
|
1057
1096
|
}),
|
|
1058
|
-
|
|
1059
|
-
title:
|
|
1097
|
+
w !== null && /* @__PURE__ */ x("span", {
|
|
1098
|
+
title: i("agent.panel.confidence_title", "LLM confidence {percent}%", { percent: w }),
|
|
1060
1099
|
style: {
|
|
1061
1100
|
marginLeft: "auto",
|
|
1062
1101
|
fontSize: 10,
|
|
@@ -1065,36 +1104,36 @@ function re({ tool: n, onApprove: r, onReject: i }) {
|
|
|
1065
1104
|
border: "1px solid var(--border)",
|
|
1066
1105
|
borderRadius: 999
|
|
1067
1106
|
},
|
|
1068
|
-
children:
|
|
1107
|
+
children: i("agent.panel.confidence", "{percent}% confident", { percent: w })
|
|
1069
1108
|
})
|
|
1070
1109
|
]
|
|
1071
1110
|
}),
|
|
1072
|
-
/* @__PURE__ */
|
|
1111
|
+
/* @__PURE__ */ x("div", {
|
|
1073
1112
|
style: {
|
|
1074
1113
|
fontSize: 12,
|
|
1075
1114
|
lineHeight: 1.45,
|
|
1076
1115
|
color: "var(--text)",
|
|
1077
1116
|
marginBottom: 8
|
|
1078
1117
|
},
|
|
1079
|
-
children:
|
|
1118
|
+
children: e.question?.message?.trim() || Z(i, e.tool_code)
|
|
1080
1119
|
}),
|
|
1081
|
-
|
|
1120
|
+
e.reason?.trim() && /* @__PURE__ */ x("div", {
|
|
1082
1121
|
style: {
|
|
1083
1122
|
fontSize: 11.5,
|
|
1084
1123
|
lineHeight: 1.45,
|
|
1085
1124
|
color: "var(--text-2)",
|
|
1086
1125
|
marginBottom: 8
|
|
1087
1126
|
},
|
|
1088
|
-
children:
|
|
1127
|
+
children: e.reason.trim()
|
|
1089
1128
|
}),
|
|
1090
|
-
/* @__PURE__ */
|
|
1129
|
+
/* @__PURE__ */ S("button", {
|
|
1091
1130
|
type: "button",
|
|
1092
|
-
onClick: () =>
|
|
1131
|
+
onClick: () => d((e) => !e),
|
|
1093
1132
|
style: {
|
|
1094
1133
|
background: "transparent",
|
|
1095
1134
|
border: 0,
|
|
1096
1135
|
padding: 0,
|
|
1097
|
-
marginBottom:
|
|
1136
|
+
marginBottom: l ? 6 : 0,
|
|
1098
1137
|
fontSize: 10.5,
|
|
1099
1138
|
color: "var(--text-3)",
|
|
1100
1139
|
cursor: "pointer",
|
|
@@ -1102,18 +1141,18 @@ function re({ tool: n, onApprove: r, onReject: i }) {
|
|
|
1102
1141
|
alignItems: "center",
|
|
1103
1142
|
gap: 4
|
|
1104
1143
|
},
|
|
1105
|
-
children: [/* @__PURE__ */
|
|
1144
|
+
children: [/* @__PURE__ */ x("span", {
|
|
1106
1145
|
style: {
|
|
1107
1146
|
display: "inline-block",
|
|
1108
|
-
transform:
|
|
1147
|
+
transform: l ? "rotate(90deg)" : "none",
|
|
1109
1148
|
transition: "transform 0.15s",
|
|
1110
1149
|
fontSize: 9,
|
|
1111
1150
|
lineHeight: 1
|
|
1112
1151
|
},
|
|
1113
1152
|
children: "▶"
|
|
1114
|
-
}),
|
|
1153
|
+
}), l ? i("agent.panel.hide_params", "Hide parameters") : i("agent.panel.view_params", "View parameters")]
|
|
1115
1154
|
}),
|
|
1116
|
-
|
|
1155
|
+
l && /* @__PURE__ */ x("pre", {
|
|
1117
1156
|
className: "mono",
|
|
1118
1157
|
style: {
|
|
1119
1158
|
width: "100%",
|
|
@@ -1128,21 +1167,21 @@ function re({ tool: n, onApprove: r, onReject: i }) {
|
|
|
1128
1167
|
overflowX: "auto",
|
|
1129
1168
|
whiteSpace: "pre-wrap"
|
|
1130
1169
|
},
|
|
1131
|
-
children:
|
|
1170
|
+
children: o
|
|
1132
1171
|
}),
|
|
1133
|
-
|
|
1172
|
+
h && /* @__PURE__ */ x("div", {
|
|
1134
1173
|
style: {
|
|
1135
1174
|
marginTop: 4,
|
|
1136
1175
|
fontSize: 10.5,
|
|
1137
1176
|
color: "var(--text-2)"
|
|
1138
1177
|
},
|
|
1139
|
-
children:
|
|
1178
|
+
children: h
|
|
1140
1179
|
}),
|
|
1141
|
-
|
|
1180
|
+
f && /* @__PURE__ */ x("input", {
|
|
1142
1181
|
type: "text",
|
|
1143
1182
|
value: m,
|
|
1144
|
-
onChange: (e) =>
|
|
1145
|
-
placeholder:
|
|
1183
|
+
onChange: (e) => ee(e.target.value),
|
|
1184
|
+
placeholder: i("agent.panel.reject_note", "Why not? (optional) — then Send rejection"),
|
|
1146
1185
|
autoFocus: !0,
|
|
1147
1186
|
style: {
|
|
1148
1187
|
marginTop: 6,
|
|
@@ -1155,7 +1194,7 @@ function re({ tool: n, onApprove: r, onReject: i }) {
|
|
|
1155
1194
|
color: "var(--text)"
|
|
1156
1195
|
}
|
|
1157
1196
|
}),
|
|
1158
|
-
/* @__PURE__ */
|
|
1197
|
+
/* @__PURE__ */ S("div", {
|
|
1159
1198
|
style: {
|
|
1160
1199
|
display: "flex",
|
|
1161
1200
|
gap: 6,
|
|
@@ -1163,33 +1202,33 @@ function re({ tool: n, onApprove: r, onReject: i }) {
|
|
|
1163
1202
|
justifyContent: "flex-end"
|
|
1164
1203
|
},
|
|
1165
1204
|
children: [
|
|
1166
|
-
|
|
1205
|
+
f ? /* @__PURE__ */ x(u, {
|
|
1167
1206
|
size: "xs",
|
|
1168
1207
|
kind: "ghost",
|
|
1169
|
-
onClick:
|
|
1170
|
-
disabled:
|
|
1171
|
-
children:
|
|
1172
|
-
}) : /* @__PURE__ */
|
|
1208
|
+
onClick: C,
|
|
1209
|
+
disabled: _,
|
|
1210
|
+
children: i("agent.panel.reject_send", "Send rejection")
|
|
1211
|
+
}) : /* @__PURE__ */ x(u, {
|
|
1173
1212
|
size: "xs",
|
|
1174
1213
|
kind: "ghost",
|
|
1175
1214
|
onClick: () => p(!0),
|
|
1176
|
-
disabled:
|
|
1177
|
-
children:
|
|
1215
|
+
disabled: _,
|
|
1216
|
+
children: i("agent.panel.reject", "Reject…")
|
|
1178
1217
|
}),
|
|
1179
|
-
|
|
1218
|
+
e.confirmation_mode !== "always" && /* @__PURE__ */ x(u, {
|
|
1180
1219
|
size: "xs",
|
|
1181
1220
|
kind: "ghost",
|
|
1182
|
-
onClick: () =>
|
|
1183
|
-
disabled:
|
|
1184
|
-
children:
|
|
1221
|
+
onClick: () => y("conversation"),
|
|
1222
|
+
disabled: _,
|
|
1223
|
+
children: i("agent.panel.approve_chat", "Approve for this chat")
|
|
1185
1224
|
}),
|
|
1186
|
-
/* @__PURE__ */
|
|
1225
|
+
/* @__PURE__ */ x(u, {
|
|
1187
1226
|
size: "xs",
|
|
1188
1227
|
kind: "primary",
|
|
1189
|
-
icon: /* @__PURE__ */
|
|
1190
|
-
onClick: () =>
|
|
1191
|
-
disabled:
|
|
1192
|
-
children:
|
|
1228
|
+
icon: /* @__PURE__ */ x(c.check, { size: 11 }),
|
|
1229
|
+
onClick: () => y("call"),
|
|
1230
|
+
disabled: _,
|
|
1231
|
+
children: i("agent.panel.approve_once", "Approve once")
|
|
1193
1232
|
})
|
|
1194
1233
|
]
|
|
1195
1234
|
})
|
|
@@ -1197,4 +1236,4 @@ function re({ tool: n, onApprove: r, onReject: i }) {
|
|
|
1197
1236
|
});
|
|
1198
1237
|
}
|
|
1199
1238
|
//#endregion
|
|
1200
|
-
export {
|
|
1239
|
+
export { A as AgentChatPanel };
|