@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.
Files changed (459) hide show
  1. package/dist-lib/{Icons-Dzl-AkD_.d.ts → Icons-BdXCxyw3.d.ts} +0 -4
  2. package/dist-lib/api/access-expiry.js +1 -2
  3. package/dist-lib/api/agents.js +1 -2
  4. package/dist-lib/api/audience.js +1 -2
  5. package/dist-lib/api/auth-redirect.js +1 -2
  6. package/dist-lib/api/auth.js +1 -2
  7. package/dist-lib/api/batch.js +1 -2
  8. package/dist-lib/api/client.js +27 -28
  9. package/dist-lib/api/data.js +23 -24
  10. package/dist-lib/api/entities.js +36 -37
  11. package/dist-lib/api/events.js +6 -7
  12. package/dist-lib/api/fileReferences.js +1 -2
  13. package/dist-lib/api/params.js +1 -2
  14. package/dist-lib/api/properties.js +1 -2
  15. package/dist-lib/api/request-bounds.js +1 -2
  16. package/dist-lib/api/schema.js +5 -6
  17. package/dist-lib/api/session-renewal.js +6 -7
  18. package/dist-lib/api/status.js +1 -2
  19. package/dist-lib/app.js +154 -155
  20. package/dist-lib/components/actions/ActionButton.js +32 -33
  21. package/dist-lib/components/actions/ActionDialog.js +85 -86
  22. package/dist-lib/components/actions/ActionResultDialog.impl.js +48 -49
  23. package/dist-lib/components/actions/ActionResultDialog.js +1 -2
  24. package/dist-lib/components/actions/ActionRunner.js +96 -97
  25. package/dist-lib/components/actions/ObjectActionBar.js +49 -50
  26. package/dist-lib/components/actions/PropertyGridEditor.js +50 -51
  27. package/dist-lib/components/actions/ResponsiveActionBar.js +127 -128
  28. package/dist-lib/components/actions/RowActionsKebab.js +27 -28
  29. package/dist-lib/components/agents/AgentChatPanel.impl.js +317 -318
  30. package/dist-lib/components/agents/AgentChatPanel.js +1 -2
  31. package/dist-lib/components/agents/AgentConversationDrawer.js +6 -7
  32. package/dist-lib/components/agents/AgentElicitForm.js +13 -14
  33. package/dist-lib/components/agents/AgentOpenFollower.impl.js +1 -2
  34. package/dist-lib/components/agents/AgentOpenFollower.js +1 -2
  35. package/dist-lib/components/agents/AgentPicker.js +1 -2
  36. package/dist-lib/components/agents/ChatAttachments.js +22 -23
  37. package/dist-lib/components/agents/transcript-runs.js +1 -2
  38. package/dist-lib/components/chrome/AssociationTabs.js +44 -45
  39. package/dist-lib/components/chrome/AuditMetaStrip.js +1 -2
  40. package/dist-lib/components/chrome/Breadcrumbs.js +1 -2
  41. package/dist-lib/components/chrome/HighlightsStrip.js +1 -2
  42. package/dist-lib/components/chrome/PageHeader.js +12 -13
  43. package/dist-lib/components/chrome/PageShell.js +1 -2
  44. package/dist-lib/components/chrome/RecordHeader.js +1 -2
  45. package/dist-lib/components/chrome/headerActionZone.js +0 -1
  46. package/dist-lib/components/detail-layout/AssociatedBlock.js +463 -464
  47. package/dist-lib/components/detail-layout/AssociatedToolbar.js +43 -44
  48. package/dist-lib/components/detail-layout/ChildrenBlock.js +24 -25
  49. package/dist-lib/components/detail-layout/ChildrenCards.js +29 -30
  50. package/dist-lib/components/detail-layout/ChildrenList.js +23 -24
  51. package/dist-lib/components/detail-layout/ChildrenTable.js +50 -51
  52. package/dist-lib/components/detail-layout/ChildrenTimeline.js +164 -165
  53. package/dist-lib/components/detail-layout/DetailAuditStrip.js +14 -15
  54. package/dist-lib/components/detail-layout/DetailHighlights.js +23 -24
  55. package/dist-lib/components/detail-layout/DraggableChildrenTable.js +76 -77
  56. package/dist-lib/components/detail-layout/EditableChildrenTable.js +90 -91
  57. package/dist-lib/components/detail-layout/ErrorSummary.js +7 -8
  58. package/dist-lib/components/detail-layout/EvidenceBlock.js +15 -16
  59. package/dist-lib/components/detail-layout/FieldRow.js +11 -12
  60. package/dist-lib/components/detail-layout/FieldsBlock.js +31 -32
  61. package/dist-lib/components/detail-layout/LayoutColumn.js +1 -2
  62. package/dist-lib/components/detail-layout/LayoutRenderer.js +11 -12
  63. package/dist-lib/components/detail-layout/LayoutRow.js +1 -2
  64. package/dist-lib/components/detail-layout/LayoutTabs.js +23 -24
  65. package/dist-lib/components/detail-layout/PropertiesBlock.js +38 -39
  66. package/dist-lib/components/detail-layout/QuickAddForm.js +28 -29
  67. package/dist-lib/components/detail-layout/SectionBlock.js +9 -10
  68. package/dist-lib/components/detail-layout/StatusesBlock.js +1 -2
  69. package/dist-lib/components/detail-layout/TimelineComposer.js +19 -20
  70. package/dist-lib/components/detail-layout/blockMeta.js +1 -2
  71. package/dist-lib/components/detail-layout/useManualColumnResize.js +1 -2
  72. package/dist-lib/components/detail-layout/useQuickAdd.js +21 -22
  73. package/dist-lib/components/detail-layout/visibility.js +1 -2
  74. package/dist-lib/components/detail-layout/widgets/EntityScorecardWidget.js +25 -26
  75. package/dist-lib/components/detail-layout/widgets/JsonDiffWidget.js +18 -19
  76. package/dist-lib/components/detail-layout/widgets/MonacoJson.js +1 -2
  77. package/dist-lib/components/detail-layout/widgets/WidgetHost.js +10 -11
  78. package/dist-lib/components/detail-layout/widgets/builtins.js +1 -2
  79. package/dist-lib/components/detail-layout/widgets/canonicalizeJson.js +1 -2
  80. package/dist-lib/components/detail-layout/widgets/monacoBootstrap.js +1 -2
  81. package/dist-lib/components/detail-layout/widgets/registry.js +1 -2
  82. package/dist-lib/components/fields/BoolField.js +1 -2
  83. package/dist-lib/components/fields/EmailField.js +5 -6
  84. package/dist-lib/components/fields/EnumField.js +7 -8
  85. package/dist-lib/components/fields/FileReferenceField.js +18 -19
  86. package/dist-lib/components/fields/IntArrayField.js +11 -12
  87. package/dist-lib/components/fields/JsonEditor.js +1 -2
  88. package/dist-lib/components/fields/JsonField.js +1 -2
  89. package/dist-lib/components/fields/MultilangArrayField.js +22 -23
  90. package/dist-lib/components/fields/MultilangField.js +13 -14
  91. package/dist-lib/components/fields/MultilangTextField.js +13 -14
  92. package/dist-lib/components/fields/NumberField.js +5 -6
  93. package/dist-lib/components/fields/PasswordField.js +1 -2
  94. package/dist-lib/components/fields/PhoneField.js +24 -25
  95. package/dist-lib/components/fields/RefCombobox.js +42 -43
  96. package/dist-lib/components/fields/RefField.js +14 -15
  97. package/dist-lib/components/fields/RichTextField.js +29 -30
  98. package/dist-lib/components/fields/SecretField.js +1 -2
  99. package/dist-lib/components/fields/StringArrayField.js +29 -30
  100. package/dist-lib/components/fields/StringField.js +12 -13
  101. package/dist-lib/components/fields/StructureField.js +60 -61
  102. package/dist-lib/components/fields/TextField.js +18 -19
  103. package/dist-lib/components/fields/TimestampField.js +17 -18
  104. package/dist-lib/components/fields/UrlField.js +5 -6
  105. package/dist-lib/components/fields/cells/factories/badge.js +5 -6
  106. package/dist-lib/components/fields/cells/factories/boolPill.js +1 -2
  107. package/dist-lib/components/fields/cells/factories/code.js +1 -2
  108. package/dist-lib/components/fields/cells/factories/date.js +1 -2
  109. package/dist-lib/components/fields/cells/factories/email.js +1 -2
  110. package/dist-lib/components/fields/cells/factories/emptyCell.js +0 -1
  111. package/dist-lib/components/fields/cells/factories/fileReference.js +1 -2
  112. package/dist-lib/components/fields/cells/factories/host-icons.js +1 -2
  113. package/dist-lib/components/fields/cells/factories/json.js +1 -2
  114. package/dist-lib/components/fields/cells/factories/link.js +10 -11
  115. package/dist-lib/components/fields/cells/factories/markdown.js +14 -15
  116. package/dist-lib/components/fields/cells/factories/markdownPreview.js +1 -2
  117. package/dist-lib/components/fields/cells/factories/money.js +1 -2
  118. package/dist-lib/components/fields/cells/factories/multilangInline.js +1 -2
  119. package/dist-lib/components/fields/cells/factories/nextRun.js +8 -9
  120. package/dist-lib/components/fields/cells/factories/number.js +1 -2
  121. package/dist-lib/components/fields/cells/factories/passwordMask.js +1 -2
  122. package/dist-lib/components/fields/cells/factories/phone.js +1 -2
  123. package/dist-lib/components/fields/cells/factories/refLink.js +13 -14
  124. package/dist-lib/components/fields/cells/factories/richTextPreview.js +16 -17
  125. package/dist-lib/components/fields/cells/factories/statusPill.js +5 -6
  126. package/dist-lib/components/fields/cells/factories/tagList.js +6 -7
  127. package/dist-lib/components/fields/cells/factories/text.js +1 -2
  128. package/dist-lib/components/fields/cells/factories/timestamp.js +1 -2
  129. package/dist-lib/components/fields/cells/factories/url-helpers.js +1 -2
  130. package/dist-lib/components/fields/cells/factories/url.js +13 -14
  131. package/dist-lib/components/fields/cells/registry.js +1 -2
  132. package/dist-lib/components/fields/index.js +19 -20
  133. package/dist-lib/components/fields/langMap.js +1 -2
  134. package/dist-lib/components/fields/secretValue.js +1 -2
  135. package/dist-lib/components/file-widgets/CircleImage.js +1 -2
  136. package/dist-lib/components/file-widgets/DocumentCard.js +101 -102
  137. package/dist-lib/components/file-widgets/FileList.js +35 -36
  138. package/dist-lib/components/file-widgets/Grid.js +119 -120
  139. package/dist-lib/components/file-widgets/GridLazy.js +1 -2
  140. package/dist-lib/components/file-widgets/ImageWidget.js +189 -190
  141. package/dist-lib/components/file-widgets/LabeledSlots.js +14 -15
  142. package/dist-lib/components/file-widgets/SquareImage.js +1 -2
  143. package/dist-lib/components/file-widgets/UnknownFileWidget.js +1 -2
  144. package/dist-lib/components/file-widgets/UploadFailureText.js +1 -2
  145. package/dist-lib/components/file-widgets/WideBanner.js +1 -2
  146. package/dist-lib/components/file-widgets/builtins.js +1 -2
  147. package/dist-lib/components/file-widgets/cropper.js +1 -2
  148. package/dist-lib/components/file-widgets/draft-scope.js +1 -2
  149. package/dist-lib/components/file-widgets/helpers.js +1 -2
  150. package/dist-lib/components/file-widgets/host.js +33 -34
  151. package/dist-lib/components/file-widgets/payload.js +1 -2
  152. package/dist-lib/components/file-widgets/registry.js +1 -2
  153. package/dist-lib/components/file-widgets/upload.js +41 -42
  154. package/dist-lib/components/file-widgets/useEmbedFileSrc.js +12 -13
  155. package/dist-lib/components/file-widgets/useFileSelection.js +1 -2
  156. package/dist-lib/components/file-widgets/value.js +1 -2
  157. package/dist-lib/components/filters/FilterChips.js +15 -16
  158. package/dist-lib/components/filters/FilterConditionValue.js +15 -16
  159. package/dist-lib/components/filters/FilterDrawer.js +141 -142
  160. package/dist-lib/components/filters/FilterOmittedNotice.js +1 -2
  161. package/dist-lib/components/filters/filter-op-label.js +1 -2
  162. package/dist-lib/components/layout/CommandPalette.impl.js +24 -25
  163. package/dist-lib/components/layout/CommandPalette.js +1 -2
  164. package/dist-lib/components/layout/DirtyTabsCloseDialog.impl.js +15 -16
  165. package/dist-lib/components/layout/DirtyTabsCloseDialog.js +1 -2
  166. package/dist-lib/components/layout/ImpersonationBanner.impl.js +6 -7
  167. package/dist-lib/components/layout/ImpersonationBanner.js +1 -2
  168. package/dist-lib/components/layout/ImpersonationFrame.js +4 -5
  169. package/dist-lib/components/layout/ImpersonationStartModal.impl.js +4 -5
  170. package/dist-lib/components/layout/ImpersonationStartModal.js +1 -2
  171. package/dist-lib/components/layout/Layout.js +132 -140
  172. package/dist-lib/components/layout/Rail.js +11 -12
  173. package/dist-lib/components/layout/Sidebar.js +60 -61
  174. package/dist-lib/components/layout/TabStrip.js +66 -67
  175. package/dist-lib/components/layout/TenantChip.js +21 -22
  176. package/dist-lib/components/layout/TopBar.js +89 -90
  177. package/dist-lib/components/layout/tab-close.js +1 -2
  178. package/dist-lib/components/list/ColumnPicker.js +35 -36
  179. package/dist-lib/components/list/InlineEditCell.js +22 -23
  180. package/dist-lib/components/list/PeekFieldCell.js +7 -8
  181. package/dist-lib/components/list/QuickPeek.js +29 -30
  182. package/dist-lib/components/list/ViewSwitcher.js +44 -45
  183. package/dist-lib/components/list/peekDraftStore.js +1 -2
  184. package/dist-lib/components/pages/AdminCatalogPage.impl.js +59 -60
  185. package/dist-lib/components/pages/AdminCatalogPage.js +1 -2
  186. package/dist-lib/components/pages/DocumentsMenu.js +53 -54
  187. package/dist-lib/components/pages/ExportMenu.js +37 -38
  188. package/dist-lib/components/pages/NoScreensPage.impl.js +5 -6
  189. package/dist-lib/components/pages/NoScreensPage.js +1 -2
  190. package/dist-lib/components/pages/NotFoundPage.impl.js +7 -8
  191. package/dist-lib/components/pages/NotFoundPage.js +1 -2
  192. package/dist-lib/components/pages/RecordDocumentsPanel.js +40 -41
  193. package/dist-lib/components/pages/RecordNotesPanel.js +43 -44
  194. package/dist-lib/components/pages/RecordPanels.js +1 -2
  195. package/dist-lib/components/pages/SSOCallbackPage.impl.js +6 -7
  196. package/dist-lib/components/pages/SSOCallbackPage.js +1 -2
  197. package/dist-lib/components/pages/SmartDetailPage.impl.js +501 -502
  198. package/dist-lib/components/pages/SmartDetailPage.js +1 -2
  199. package/dist-lib/components/pages/SmartListPage.impl.js +316 -317
  200. package/dist-lib/components/pages/SmartListPage.js +1 -2
  201. package/dist-lib/components/pages/SmartRecordListPage.impl.js +316 -317
  202. package/dist-lib/components/pages/SmartRecordListPage.js +1 -2
  203. package/dist-lib/components/pages/auth/AuthShell.js +14 -15
  204. package/dist-lib/components/pages/auth/CodeInput.js +0 -1
  205. package/dist-lib/components/pages/auth/Forgot.impl.js +12 -13
  206. package/dist-lib/components/pages/auth/Forgot.js +1 -2
  207. package/dist-lib/components/pages/auth/Reset.impl.js +20 -21
  208. package/dist-lib/components/pages/auth/Reset.js +1 -2
  209. package/dist-lib/components/pages/auth/SignIn.js +44 -45
  210. package/dist-lib/components/pages/auth/SignUp.impl.js +35 -36
  211. package/dist-lib/components/pages/auth/SignUp.js +1 -2
  212. package/dist-lib/components/pages/auth/SignUpCode.js +17 -18
  213. package/dist-lib/components/pages/auth/TwoFA.impl.js +9 -10
  214. package/dist-lib/components/pages/auth/TwoFA.js +1 -2
  215. package/dist-lib/components/pages/auth/icons.js +1 -2
  216. package/dist-lib/components/pages/exportRequest.js +1 -2
  217. package/dist-lib/components/pages/list/DataCell.js +1 -2
  218. package/dist-lib/components/pages/list/DeleteViewDialog.js +5 -6
  219. package/dist-lib/components/pages/list/ListCardRow.js +53 -54
  220. package/dist-lib/components/pages/list/ListCardsBody.js +1 -2
  221. package/dist-lib/components/pages/list/ListFloatbar.js +25 -26
  222. package/dist-lib/components/pages/list/ListFooter.js +17 -18
  223. package/dist-lib/components/pages/list/ListHeader.js +31 -32
  224. package/dist-lib/components/pages/list/ListNoRows.js +32 -33
  225. package/dist-lib/components/pages/list/ListTable.js +29 -30
  226. package/dist-lib/components/pages/list/ListTableRow.js +1 -2
  227. package/dist-lib/components/pages/list/ListToolbar.js +58 -59
  228. package/dist-lib/components/pages/list/ListUrlBanner.js +1 -2
  229. package/dist-lib/components/pages/list/RowActionsCell.js +6 -7
  230. package/dist-lib/components/pages/list/RowContextMenu.js +1 -2
  231. package/dist-lib/components/pages/list/SaveViewDialog.js +5 -6
  232. package/dist-lib/components/pages/list/SortHeaderMenu.js +25 -26
  233. package/dist-lib/components/pages/list/cardProjection.js +16 -17
  234. package/dist-lib/components/pages/list/column-sizing.js +1 -2
  235. package/dist-lib/components/pages/list/columns.js +74 -75
  236. package/dist-lib/components/pages/list/filter-meta.js +1 -2
  237. package/dist-lib/components/pages/list/page-size.js +1 -2
  238. package/dist-lib/components/pages/list/sortable-header.js +1 -2
  239. package/dist-lib/components/pages/list/table-features.js +1 -2
  240. package/dist-lib/components/pages/list/use-filter-value-labels.js +15 -16
  241. package/dist-lib/components/pages/list/useActiveView.js +1 -2
  242. package/dist-lib/components/pages/list/useHeaderReorder.js +1 -2
  243. package/dist-lib/components/pages/list/useListColumnLayout.js +6 -7
  244. package/dist-lib/components/pages/list/useListFilterPresentation.js +1 -2
  245. package/dist-lib/components/pages/list/useListQuery.js +1 -2
  246. package/dist-lib/components/pages/list/useListRowInteraction.js +37 -38
  247. package/dist-lib/components/pages/list/useListSelection.js +16 -17
  248. package/dist-lib/components/pages/list/useListSort.js +1 -2
  249. package/dist-lib/components/pages/list/useListViews.js +31 -32
  250. package/dist-lib/components/pages/list/useRowMenu.js +20 -21
  251. package/dist-lib/components/pages/list/visible-filters.js +1 -2
  252. package/dist-lib/components/pages/profile/Preferences.impl.js +44 -45
  253. package/dist-lib/components/pages/profile/Preferences.js +1 -2
  254. package/dist-lib/components/pages/profile/Profile.impl.js +223 -224
  255. package/dist-lib/components/pages/profile/Profile.js +1 -2
  256. package/dist-lib/components/pages/tenant-params/TenantParamsPage.impl.js +133 -134
  257. package/dist-lib/components/pages/tenant-params/TenantParamsPage.js +1 -2
  258. package/dist-lib/components/params/ParamsBlock.js +30 -31
  259. package/dist-lib/components/params/param-editors.js +58 -59
  260. package/dist-lib/components/primitives/Avatar.js +1 -2
  261. package/dist-lib/components/primitives/BoolToggle.js +1 -2
  262. package/dist-lib/components/primitives/BrandGlyph.js +1 -2
  263. package/dist-lib/components/primitives/BrandLogo.js +1 -2
  264. package/dist-lib/components/primitives/Btn.js +1 -2
  265. package/dist-lib/components/primitives/Check.js +1 -2
  266. package/dist-lib/components/primitives/Chip.js +1 -2
  267. package/dist-lib/components/primitives/ClassifiedFieldLocked.js +1 -2
  268. package/dist-lib/components/primitives/Dropdown.js +2 -3
  269. package/dist-lib/components/primitives/Fields.js +128 -129
  270. package/dist-lib/components/primitives/HoverCard.js +2 -3
  271. package/dist-lib/components/primitives/IconBtn.js +1 -2
  272. package/dist-lib/components/primitives/Icons.js +1 -2
  273. package/dist-lib/components/primitives/Kbd.js +1 -2
  274. package/dist-lib/components/primitives/MenuItem.js +1 -2
  275. package/dist-lib/components/primitives/Pill.js +1 -2
  276. package/dist-lib/components/primitives/RecordIdBadge.js +1 -2
  277. package/dist-lib/components/primitives/RetryButton.js +5 -6
  278. package/dist-lib/components/primitives/RowField.js +1 -2
  279. package/dist-lib/components/primitives/SectionCard.js +1 -2
  280. package/dist-lib/components/primitives/Spinner.js +1 -2
  281. package/dist-lib/components/primitives/StatTile.js +1 -2
  282. package/dist-lib/components/primitives/Tooltip.js +1 -2
  283. package/dist-lib/components/primitives/dataTableStyles.js +1 -2
  284. package/dist-lib/components/shared/BlankScreen.js +1 -2
  285. package/dist-lib/components/shared/ChangePasswordDialog.impl.js +20 -21
  286. package/dist-lib/components/shared/ChangePasswordDialog.js +1 -2
  287. package/dist-lib/components/shared/ConfirmDialog.js +7 -8
  288. package/dist-lib/components/shared/ConnectionNotice.js +1 -2
  289. package/dist-lib/components/shared/CopyButton.js +1 -2
  290. package/dist-lib/components/shared/DynamicIcon.js +1 -2
  291. package/dist-lib/components/shared/EmptyState.js +1 -2
  292. package/dist-lib/components/shared/ErrorBoundary.js +10 -11
  293. package/dist-lib/components/shared/LoadingSkeleton.js +1 -2
  294. package/dist-lib/components/shared/LucideIcon.js +1 -2
  295. package/dist-lib/components/shared/Markdown.js +1 -2
  296. package/dist-lib/components/shared/MarkdownRenderer.js +22 -23
  297. package/dist-lib/components/shared/ModalFrame.js +1 -2
  298. package/dist-lib/components/shared/RefreshControl.js +6 -7
  299. package/dist-lib/components/shared/StatusGroupsDisplay.js +16 -17
  300. package/dist-lib/components/shared/StatusStepper.js +1 -2
  301. package/dist-lib/components/shared/toast/DeclarionToast.js +1 -2
  302. package/dist-lib/components/shared/useOwnRefresh.js +1 -2
  303. package/dist-lib/embed/EmbedAuthBootstrap.js +30 -31
  304. package/dist-lib/embed/EmbedContext.js +1 -2
  305. package/dist-lib/embed/EmbedDirtyReporter.js +6 -7
  306. package/dist-lib/embed/EmbedHistoryTracker.js +1 -2
  307. package/dist-lib/embed/EmbedLocationReporter.js +11 -12
  308. package/dist-lib/embed/EmbedResizeReporter.js +9 -10
  309. package/dist-lib/embed/EmbedUnsavedGuard.js +5 -6
  310. package/dist-lib/embed/embed-dirty.js +1 -2
  311. package/dist-lib/embed/embed-history.js +1 -2
  312. package/dist-lib/embed/embed-nav-guard.js +1 -2
  313. package/dist-lib/embed/file-src.js +12 -13
  314. package/dist-lib/embed/handshake.js +1 -2
  315. package/dist-lib/embed/params.js +1 -2
  316. package/dist-lib/embed/protocol.js +1 -2
  317. package/dist-lib/embed/screen-location.js +1 -2
  318. package/dist-lib/embed/theme.js +1 -2
  319. package/dist-lib/embed/token.js +1 -2
  320. package/dist-lib/embed/useEmbedNavigate.js +25 -26
  321. package/dist-lib/embed/useGlobalLinkInterceptor.js +9 -10
  322. package/dist-lib/hooks/useActionData.js +1 -2
  323. package/dist-lib/hooks/useActiveTabFollowsRoute.js +7 -8
  324. package/dist-lib/hooks/useAgentConversation.js +122 -123
  325. package/dist-lib/hooks/useAggregate.js +1 -2
  326. package/dist-lib/hooks/useAllEntityData.js +9 -10
  327. package/dist-lib/hooks/useAssociatedData.js +1 -2
  328. package/dist-lib/hooks/useAuth.js +26 -27
  329. package/dist-lib/hooks/useBranding.js +1 -2
  330. package/dist-lib/hooks/useBrandingChrome.js +16 -17
  331. package/dist-lib/hooks/useChildrenData.js +4 -5
  332. package/dist-lib/hooks/useColumns.js +1 -2
  333. package/dist-lib/hooks/useConnectionNotice.js +16 -17
  334. package/dist-lib/hooks/useCurrentLocation.js +1 -2
  335. package/dist-lib/hooks/useCurrentScreen.js +1 -2
  336. package/dist-lib/hooks/useCursorEntityData.js +1 -2
  337. package/dist-lib/hooks/useDebounce.js +1 -2
  338. package/dist-lib/hooks/useDisplayTimeZone.js +4 -5
  339. package/dist-lib/hooks/useDocumentTitle.js +5 -6
  340. package/dist-lib/hooks/useEntity.js +1 -2
  341. package/dist-lib/hooks/useEntityData.js +1 -2
  342. package/dist-lib/hooks/useFileReferenceJSON.js +9 -10
  343. package/dist-lib/hooks/useFilters.js +5 -6
  344. package/dist-lib/hooks/useFollowAgentOpen.js +40 -41
  345. package/dist-lib/hooks/useImpersonation.js +15 -16
  346. package/dist-lib/hooks/useIntentPrefetch.js +6 -7
  347. package/dist-lib/hooks/useJsonSnapshot.js +1 -2
  348. package/dist-lib/hooks/useLanguage.js +11 -12
  349. package/dist-lib/hooks/useLiveObject.js +6 -7
  350. package/dist-lib/hooks/useLongPress.js +1 -2
  351. package/dist-lib/hooks/useMutations.js +31 -32
  352. package/dist-lib/hooks/useObject.js +1 -2
  353. package/dist-lib/hooks/useObjectStatus.js +4 -5
  354. package/dist-lib/hooks/usePageState.js +9 -10
  355. package/dist-lib/hooks/usePageStateRuntime.js +16 -17
  356. package/dist-lib/hooks/usePageStateTtl.js +1 -2
  357. package/dist-lib/hooks/useParams.js +58 -59
  358. package/dist-lib/hooks/useProperties.js +5 -6
  359. package/dist-lib/hooks/useRealtimeThresholds.js +4 -5
  360. package/dist-lib/hooks/useRefRecords.js +31 -32
  361. package/dist-lib/hooks/useRegisterScreenTab.js +12 -13
  362. package/dist-lib/hooks/useResponsiveMode.js +1 -2
  363. package/dist-lib/hooks/useRowTenant.js +1 -2
  364. package/dist-lib/hooks/useSSE.js +100 -101
  365. package/dist-lib/hooks/useSchema.js +16 -17
  366. package/dist-lib/hooks/useScreen.js +1 -2
  367. package/dist-lib/hooks/useScreenBack.js +17 -18
  368. package/dist-lib/hooks/useScreenTab.js +1 -2
  369. package/dist-lib/hooks/useTabNavigate.js +25 -26
  370. package/dist-lib/hooks/useTabSearchMirror.js +6 -7
  371. package/dist-lib/hooks/useTabTitle.js +10 -11
  372. package/dist-lib/hooks/useText.js +6 -7
  373. package/dist-lib/hooks/useTimelineData.js +5 -6
  374. package/dist-lib/hooks/useUiPreferences.js +31 -32
  375. package/dist-lib/hooks/useUnsavedInput.js +1 -2
  376. package/dist-lib/hooks/useVersionWatcher.js +16 -17
  377. package/dist-lib/hooks/useViews.js +16 -17
  378. package/dist-lib/hooks/useWindowConversation.js +1 -2
  379. package/dist-lib/{icon-registry-CUT4eF63.d.ts → icon-registry-BY2tt-GF.d.ts} +0 -2
  380. package/dist-lib/icons.d.ts +2 -4
  381. package/dist-lib/icons.js +5 -5
  382. package/dist-lib/index.d.ts +4 -272
  383. package/dist-lib/index.js +129 -129
  384. package/dist-lib/lib/action-dispatch.js +1 -2
  385. package/dist-lib/lib/actions.js +26 -27
  386. package/dist-lib/lib/anchor.js +1 -2
  387. package/dist-lib/lib/brand-tokens.js +1 -2
  388. package/dist-lib/lib/branding.js +1 -2
  389. package/dist-lib/lib/canonical-url.js +1 -2
  390. package/dist-lib/lib/capabilityPrefetch.js +1 -2
  391. package/dist-lib/lib/child-config.js +1 -2
  392. package/dist-lib/lib/children-validation.js +2 -3
  393. package/dist-lib/lib/date-text.js +1 -2
  394. package/dist-lib/lib/decimal-text.js +1 -2
  395. package/dist-lib/lib/display-value.js +1 -2
  396. package/dist-lib/lib/document-templates.js +1 -2
  397. package/dist-lib/lib/download.js +13 -14
  398. package/dist-lib/lib/evidence-verdict.js +1 -2
  399. package/dist-lib/lib/failure.js +4 -5
  400. package/dist-lib/lib/field-classification.js +1 -2
  401. package/dist-lib/lib/field-regions.js +1 -2
  402. package/dist-lib/lib/filter-evaluator.js +1 -2
  403. package/dist-lib/lib/filters.js +1 -2
  404. package/dist-lib/lib/format-count.js +1 -2
  405. package/dist-lib/lib/html-state.js +1 -2
  406. package/dist-lib/lib/language.js +1 -2
  407. package/dist-lib/lib/longPressGesture.js +0 -1
  408. package/dist-lib/lib/mass-edit.js +1 -2
  409. package/dist-lib/lib/money-text.js +1 -2
  410. package/dist-lib/lib/number-text.js +1 -2
  411. package/dist-lib/lib/page-inset.js +1 -2
  412. package/dist-lib/lib/phone.js +1 -2
  413. package/dist-lib/lib/profile.js +1 -2
  414. package/dist-lib/lib/query-retry.js +1 -2
  415. package/dist-lib/lib/quick-add.js +1 -2
  416. package/dist-lib/lib/read-display-state.js +1 -2
  417. package/dist-lib/lib/realtime-query-keys.js +2 -3
  418. package/dist-lib/lib/realtime-reconcile.js +32 -33
  419. package/dist-lib/lib/realtime-resync.js +40 -41
  420. package/dist-lib/lib/record-documents-key.js +1 -2
  421. package/dist-lib/lib/ref-choices.js +1 -2
  422. package/dist-lib/lib/refetch-when-idle.js +1 -2
  423. package/dist-lib/lib/rich-text.js +1 -2
  424. package/dist-lib/lib/role-label.js +1 -2
  425. package/dist-lib/lib/rowClickGesture.js +1 -2
  426. package/dist-lib/lib/safe-url.js +1 -2
  427. package/dist-lib/lib/schema-routing.js +1 -2
  428. package/dist-lib/lib/screen-back.js +1 -2
  429. package/dist-lib/lib/scroll-restoration.js +21 -22
  430. package/dist-lib/lib/shortcut.js +1 -2
  431. package/dist-lib/lib/size-value.js +1 -2
  432. package/dist-lib/lib/sort.js +1 -2
  433. package/dist-lib/lib/timestamp.js +1 -2
  434. package/dist-lib/lib/toast.js +1 -2
  435. package/dist-lib/lib/ui-actions.js +43 -44
  436. package/dist-lib/lib/utils.js +1 -2
  437. package/dist-lib/lib/variants.js +1 -2
  438. package/dist-lib/lib/versionTracker.js +26 -27
  439. package/dist-lib/lib/viewport-category.js +1 -2
  440. package/dist-lib/lib/window-election.js +1 -2
  441. package/dist-lib/stores/auth.js +32 -33
  442. package/dist-lib/stores/icon-registry.js +1 -2
  443. package/dist-lib/stores/list-layout.js +0 -1
  444. package/dist-lib/stores/page-state.js +1 -2
  445. package/dist-lib/stores/preferences.js +1 -2
  446. package/dist-lib/stores/realtime.js +1 -2
  447. package/dist-lib/stores/screen-registry.js +1 -2
  448. package/dist-lib/stores/tabs.js +1 -2
  449. package/dist-lib/test/seed-schema.js +4 -5
  450. package/dist-lib/testing.d.ts +2 -4
  451. package/dist-lib/testing.js +49 -50
  452. package/dist-lib/types/api.js +1 -2
  453. package/dist-lib/types/fieldType.js +1 -2
  454. package/dist-lib/types/ordmap.js +1 -2
  455. package/dist-lib/types/schema.js +1 -2
  456. package/dist-lib/{useResponsiveMode-C4MeAgoS.d.ts → useResponsiveMode-BElw02Gh.d.ts} +1 -19
  457. package/dist-lib/vite/index.d.ts +0 -2
  458. package/dist-lib/vite/index.js +1 -2
  459. package/package.json +11 -11
@@ -1,74 +1,74 @@
1
- import { coerceDisplayString as e } from "../../lib/display-value.js";
2
- import { screenTitleForPath as t } from "../../types/schema.js";
3
- import { useSchema as n } from "../../hooks/useSchema.js";
4
- import { pluralText as r, textWithNodes as i } from "../../lib/language.js";
5
- import { failureTitle as a } from "../../lib/failure.js";
6
- import { Icon as o } from "../primitives/Icons.js";
7
- import { Btn as s } from "../primitives/Btn.js";
8
- import { IconBtn as c } from "../primitives/IconBtn.js";
9
- import { useText as l } from "../../hooks/useText.js";
10
- import { Spinner as u } from "../primitives/Spinner.js";
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 { useTabNavigate as f } from "../../hooks/useTabNavigate.js";
13
- import { useEntity as p } from "../../hooks/useEntity.js";
14
- import { Markdown as m } from "../shared/Markdown.js";
15
- import { useFileSelection as h } from "../file-widgets/useFileSelection.js";
16
- import { AgentElicitForm as g } from "./AgentElicitForm.js";
17
- import { AgentPicker as _ } from "./AgentPicker.js";
18
- import { useAgentConversation as v } from "../../hooks/useAgentConversation.js";
19
- import { useWindowConversation as y } from "../../hooks/useWindowConversation.js";
20
- import { fold as b } from "./transcript-runs.js";
21
- import { ComposerAttachments as x, MessageAttachments as S, replyFilesVisible as C } from "./ChatAttachments.js";
22
- import { useEffect as w, useRef as T, useState as E } from "react";
23
- import { jsx as D, jsxs as O } from "react/jsx-runtime";
24
- import { useLocation as ee } from "react-router";
25
- import te from "react-textarea-autosize";
26
- //#region src/components/agents/AgentChatPanel.impl.tsx
27
- var ne = 80;
28
- function k({ open: e, onClose: r, context: s, title: d = "", askOnOpen: f, docked: p = !1 }) {
29
- let m = v();
30
- y(m.conversationId);
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
- }), H = T(null), U = T(null), W = T(!0), [G, K] = E(!1), q = () => {
35
- let e = U.current;
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 <= ne;
38
- W.current = t, t && G && K(!1);
39
- }, J = (e = "smooth") => {
40
- let t = U.current;
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
- }), W.current = !0, K(!1));
44
+ }), U.current = !0, G(!1));
45
45
  };
46
- if (w(() => {
47
- W.current ? J("smooth") : K(!0);
48
- }, [m.messages]), w(() => {
49
- e && J("instant");
50
- }, [e]), w(() => {
51
- let t = f?.trim();
52
- e && t && L.current !== t && (L.current = t, B.current?.(t));
53
- }, [e, f]), !e) return null;
54
- let Y = async (e) => {
55
- let t = V.readyFiles, n = V.selections.filter((e) => e.state === "ready").map((e) => e.localId);
56
- if ((e.trim() || t.length !== 0) && V.settled) {
57
- I(null), P("");
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 m.send(e, s, t), V.release(n);
59
+ await v.send(e, d, t), B.release(n);
60
60
  } catch (t) {
61
- console.error("agent send failed", t), I(a(M, t)), P(e);
61
+ console.error("agent send failed", t), F(_(j, t)), N(e);
62
62
  }
63
63
  }
64
64
  };
65
- B.current = Y;
66
- let X = (e) => {
67
- e.key === "Enter" && !e.shiftKey && (e.preventDefault(), Y(N));
68
- }, Z = m.invocations.filter((e) => e.status === "pending_approval"), Q = m.invocations.filter((e) => e.kind === "input_request" && e.status === "pending_input"), de = m.turns.filter((e) => e.status === "queued" || e.status === "running" || e.status === "waiting" || e.status === "failed"), fe = m.invocations.filter((e) => e.status === "outcome_unknown"), pe = m.messages.length === 0 && !m.turn.streaming, me = Z.length > 0 || Q.length > 0, he = m.turn.streaming && !me || m.turns.some((e) => e.status === "running"), ge = m.messages.some((e) => e.role === "assistant" && e.streaming && e.content.length > 0), $ = (N.trim().length > 0 || V.readyFiles.length > 0) && V.settled;
69
- return /* @__PURE__ */ O("aside", {
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
- ...p ? {
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__ */ O("div", {
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__ */ D("span", {
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__ */ D(o.sparkle, {
109
+ children: /* @__PURE__ */ E(e.sparkle, {
110
110
  size: 13,
111
111
  style: { color: "var(--accent-foreground)" }
112
112
  })
113
113
  }),
114
- /* @__PURE__ */ O("div", {
114
+ /* @__PURE__ */ D("div", {
115
115
  style: { flex: 1 },
116
- children: [/* @__PURE__ */ D("div", {
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: d
123
- }), /* @__PURE__ */ O("div", {
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__ */ D("span", { style: {
131
+ children: [/* @__PURE__ */ E("span", { style: {
132
132
  width: 5,
133
133
  height: 5,
134
134
  background: "var(--success)",
135
135
  borderRadius: 999
136
- } }), i(S("agent.panel.context", "context: {context}"), { context: /* @__PURE__ */ D("span", { children: A || S("agent.panel.context_platform", "Platform") }) })]
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
- m.messages.length > 0 && /* @__PURE__ */ D(c, {
139
+ v.messages.length > 0 && /* @__PURE__ */ E(t, {
140
140
  size: 24,
141
- icon: /* @__PURE__ */ D(o.copy, { size: 12 }),
142
- onClick: () => void le(S, m.messages),
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__ */ D(c, {
145
+ /* @__PURE__ */ E(t, {
146
146
  size: 24,
147
- icon: /* @__PURE__ */ D(o.clock, { size: 12 }),
147
+ icon: /* @__PURE__ */ E(e.clock, { size: 12 }),
148
148
  onClick: () => {
149
- z((e) => !e), m.refreshConversations();
149
+ R((e) => !e), v.refreshConversations();
150
150
  },
151
151
  title: S("agent.panel.earlier", "Earlier conversations")
152
152
  }),
153
- m.conversationId && /* @__PURE__ */ D(c, {
153
+ v.conversationId && /* @__PURE__ */ E(t, {
154
154
  size: 24,
155
- icon: /* @__PURE__ */ D(o.plus, { size: 12 }),
156
- onClick: m.startNew,
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__ */ D(c, {
159
+ /* @__PURE__ */ E(t, {
160
160
  size: 24,
161
- icon: /* @__PURE__ */ D(o.settings, { size: 12 }),
161
+ icon: /* @__PURE__ */ E(e.settings, { size: 12 }),
162
162
  title: S("agent.panel.preferences", "Preferences")
163
163
  }),
164
- /* @__PURE__ */ D(c, {
164
+ /* @__PURE__ */ E(t, {
165
165
  size: 24,
166
- icon: /* @__PURE__ */ D(o.x, { size: 13 }),
167
- onClick: r,
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
- !m.conversationId && /* @__PURE__ */ D(_, {
173
- agents: m.agents,
174
- selectedId: m.selectedAgentId,
175
- onSelect: m.selectAgent,
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
- R && /* @__PURE__ */ D(se, {
179
- conversations: m.conversations,
180
- currentId: m.conversationId,
178
+ L && /* @__PURE__ */ E(ce, {
179
+ conversations: v.conversations,
180
+ currentId: v.conversationId,
181
181
  onPick: (e) => {
182
- m.setConversationId(e), z(!1);
182
+ v.setConversationId(e), R(!1);
183
183
  }
184
184
  }),
185
- /* @__PURE__ */ O("div", {
186
- ref: U,
187
- onScroll: q,
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
- pe && /* @__PURE__ */ D(j, { 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
- b(m.messages, m.invocations).map((e) => e.kind === "message" ? /* @__PURE__ */ D(ce, {
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: m.turns
202
- }, e.message.id) : /* @__PURE__ */ D(oe, { run: e }, e.id)),
203
- de.map((e) => /* @__PURE__ */ D(re, { agentTurn: e }, e.id)),
204
- Z.map((e) => /* @__PURE__ */ D(ue, {
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) => m.approve(e.id, t),
207
- onReject: async (t) => m.reject(e.id, t)
206
+ onApprove: async (t) => v.approve(e.id, t),
207
+ onReject: async (t) => v.reject(e.id, t)
208
208
  }, e.id)),
209
- Q.map((e) => /* @__PURE__ */ D(g, {
210
- ...ie(S, e),
211
- onSubmit: (t) => void m.submitInput(e.id, t),
212
- onCancel: () => void m.cancelInput(e.id)
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
- fe.map((e) => /* @__PURE__ */ D(ae, { invocation: e }, e.id)),
215
- he && !ge && /* @__PURE__ */ O("div", {
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__ */ D(u, { size: 12 }), S("agent.panel.thinking", "Thinking…")]
223
+ children: [/* @__PURE__ */ E(r, { size: 12 }), S("agent.panel.thinking", "Thinking…")]
224
224
  }),
225
- F && /* @__PURE__ */ D("div", {
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__ */ D("strong", { children: F })
234
+ children: /* @__PURE__ */ E("strong", { children: P })
235
235
  })
236
236
  ]
237
237
  }),
238
- G && /* @__PURE__ */ O("button", {
239
- onClick: () => J("smooth"),
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__ */ D(o.arrowDown, { size: 11 }), S("agent.panel.jump_latest", "Jump to latest")]
258
+ children: [/* @__PURE__ */ E(e.arrowDown, { size: 11 }), S("agent.panel.jump_latest", "Jump to latest")]
259
259
  }),
260
- /* @__PURE__ */ O("div", {
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__ */ D(x, {
268
- selections: V.selections,
269
- onCancel: V.cancel,
270
- onRemove: V.remove
267
+ /* @__PURE__ */ E(x, {
268
+ selections: B.selections,
269
+ onCancel: B.cancel,
270
+ onRemove: B.remove
271
271
  }),
272
- V.failed && /* @__PURE__ */ D("div", {
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__ */ O("div", {
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__ */ D(te, {
293
- value: N,
294
- onChange: (e) => P(e.target.value),
295
- onKeyDown: X,
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__ */ D("input", {
313
- ref: H,
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 && V.add(e.target.files), e.target.value = "";
319
+ e.target.files && B.add(e.target.files), e.target.value = "";
320
320
  }
321
321
  }),
322
- /* @__PURE__ */ D(c, {
322
+ /* @__PURE__ */ E(t, {
323
323
  size: 26,
324
- icon: /* @__PURE__ */ D(o.paperclip, { size: 12 }),
325
- onClick: () => H.current?.click(),
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
- he ? /* @__PURE__ */ D("button", {
329
- onClick: () => void m.cancel(),
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__ */ D(o.x, { size: 13 })
345
- }) : /* @__PURE__ */ D("button", {
346
- onClick: () => void Y(N),
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__ */ D(o.arrowUp, { size: 13 })
361
+ children: /* @__PURE__ */ E(e.arrowUp, { size: 13 })
362
362
  })
363
363
  ]
364
364
  }),
365
- /* @__PURE__ */ O("div", {
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__ */ D(o.shield, { size: 10 }), /* @__PURE__ */ D("span", { children: S("agent.panel.footer", "Runs within your permissions. All actions audit-logged.") })]
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 A() {
382
- return /* @__PURE__ */ D("span", {
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 j({ children: e, dataMessageId: t, dataStreaming: n }) {
396
- return /* @__PURE__ */ O("div", {
397
- "data-message-id": t,
398
- "data-streaming": n ? "true" : void 0,
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__ */ D("span", {
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__ */ D(o.sparkle, { size: 11 })
418
- }), /* @__PURE__ */ D("div", {
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: e
426
+ children: t
427
427
  })]
428
428
  });
429
429
  }
430
- function re({ agentTurn: t }) {
431
- let n = l(), r = l("errors"), i = p("agent_turn")?.fields.get("status"), a = t.status === "failed" ? r(t.error_code ?? "", e(t.error_details) || r("agents.turn_failed", "The assistant could not finish this turn.")) : void 0;
432
- return /* @__PURE__ */ O("div", {
433
- "data-agent-turn": t.id,
434
- "data-turn-status": t.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
- t.status === "queued" && (n(i?.values?.find((e) => e.code === "queued")?.name) || t.status),
441
- t.status === "running" && n("agent.panel.turn_working", "Working…"),
442
- t.status === "waiting" && n("agent.panel.turn_waiting", "Waiting for your response"),
443
- t.status === "failed" && n("agent.panel.turn_unfinished", "The agent couldn't finish: {reason}", { reason: a ?? "" })
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 ie(e, t) {
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: M(r.schema) ? r.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: M(i.schema) ? i.schema : {}
456
+ schema: j(i.schema) ? i.schema : {}
457
457
  };
458
458
  }
459
- function ae({ invocation: e }) {
460
- let t = l();
461
- return /* @__PURE__ */ D("div", {
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: i(t("agent.panel.outcome_uncertain", "The outcome of {tool} is unknown. It was not retried automatically."), { tool: /* @__PURE__ */ D("span", {
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 M(e) {
478
+ function j(e) {
479
479
  return typeof e == "object" && !!e && !Array.isArray(e);
480
480
  }
481
- function oe({ run: e }) {
482
- let [t, n] = E(!1), r = N(), i = e.calls.filter((e) => e.isError).length, a = e.calls.filter((e) => !F(e.status)).length;
483
- return /* @__PURE__ */ O("div", {
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__ */ D("span", { style: {
490
+ children: [/* @__PURE__ */ E("span", { style: {
491
491
  width: 20,
492
492
  flexShrink: 0
493
- } }), /* @__PURE__ */ O("div", {
493
+ } }), /* @__PURE__ */ D("div", {
494
494
  style: {
495
495
  flex: 1,
496
496
  minWidth: 0
497
497
  },
498
- children: [/* @__PURE__ */ O("button", {
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__ */ D("span", {
516
+ children: [/* @__PURE__ */ E("span", {
517
517
  "aria-hidden": !0,
518
518
  children: t ? "▾" : "▸"
519
- }), /* @__PURE__ */ D("span", { children: r(e.calls.length, a, i) })]
520
- }), t && /* @__PURE__ */ D("div", {
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__ */ D(P, { call: e }, e.id))
527
+ children: e.calls.map((e) => /* @__PURE__ */ E(N, { call: e }, e.id))
528
528
  })]
529
529
  })]
530
530
  });
531
531
  }
532
- function N() {
533
- let e = l();
534
- return (t, n, i) => {
535
- let a = [];
536
- return t > 0 && a.push(r(e, "agent.panel.operations", t, {
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 && a.push(e("agent.panel.running", "running")), i > 0 && a.push(r(e, "agent.panel.failed_count", i, {
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
- })), a.join(" · ") || e("agent.panel.worked", "worked");
542
+ })), i.join(" · ") || e("agent.panel.worked", "worked");
543
543
  };
544
544
  }
545
- function P({ call: e }) {
546
- let [t, n] = E(!1), r = l(), i = I(e.name), a = p("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" : F(e.status) ? "ok" : "running";
547
- return /* @__PURE__ */ O("div", {
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__ */ O("button", {
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__ */ D("span", {
565
+ /* @__PURE__ */ E("span", {
566
566
  "aria-hidden": !0,
567
567
  children: t ? "▾" : "▸"
568
568
  }),
569
- /* @__PURE__ */ D("span", {
569
+ /* @__PURE__ */ E("span", {
570
570
  className: "mono",
571
571
  children: i
572
572
  }),
573
- /* @__PURE__ */ D("span", {
573
+ /* @__PURE__ */ E("span", {
574
574
  style: { color: "var(--text-3)" },
575
575
  children: s
576
576
  })
577
577
  ]
578
- }), t && /* @__PURE__ */ D("pre", {
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 F(e) {
599
+ function P(e) {
600
600
  return e === "succeeded" || e === "failed" || e === "rejected" || e === "canceled" || e === "outcome_unknown";
601
601
  }
602
- function se({ conversations: e, currentId: t, onPick: n }) {
603
- let r = l();
604
- return e.length === 0 ? /* @__PURE__ */ D("div", {
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__ */ D("div", {
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__ */ D("button", {
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 I(e) {
638
- let t = l(), { value: r } = d("agents.transcript_names", "code"), { data: i } = n();
639
- return r === "display" && t(i?.actions?.[e]?.display?.name ?? L(i, e)) || e;
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 L(e, t) {
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 ce({ message: e, turns: t }) {
646
- let n = C(e, t) ? e.attachments : void 0;
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 = W(e.content);
649
- return e.content.some((e) => e.type !== "text" && e.type !== "location") ? /* @__PURE__ */ D(R, {
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__ */ O("div", {
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__ */ D("div", {
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__ */ D(S, {
672
+ }), /* @__PURE__ */ E(S, {
673
673
  files: n,
674
674
  align: "end"
675
675
  })]
676
676
  });
677
677
  }
678
- return e.role === "tool" ? /* @__PURE__ */ D(R, { message: e }) : e.role === "system" ? e.content.some((e) => e.type === "decision") ? /* @__PURE__ */ D(R, { message: e }) : /* @__PURE__ */ D(j, {
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__ */ D(H, { block: e }, t))
681
- }) : e.content.length === 0 && !n?.length ? null : /* @__PURE__ */ O(j, {
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__ */ D(H, { block: e }, t)),
686
- e.streaming && /* @__PURE__ */ D(A, {}),
687
- /* @__PURE__ */ D(S, {
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 R({ message: e, files: t }) {
695
- return /* @__PURE__ */ O("div", {
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__ */ D(H, { block: e }, t)), /* @__PURE__ */ D(S, {
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 z({ href: e, children: t, ...n }) {
712
- let r = f(), i = {
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 = B(e);
716
- return a ? /* @__PURE__ */ D("a", {
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__ */ D("a", {
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 B(e) {
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 V = {
744
- a: z,
743
+ var B = {
744
+ a: R,
745
745
  code({ node: e, inline: t, className: n, children: r, ...i }) {
746
- return t ? /* @__PURE__ */ D("code", {
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__ */ D("pre", {
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__ */ D("code", {
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__ */ D("ul", {
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__ */ D("ol", {
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__ */ D("p", {
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 H({ block: e }) {
803
- let t = l();
802
+ function V({ block: e }) {
803
+ let t = p();
804
804
  switch (e.type) {
805
- case "text": return /* @__PURE__ */ D("div", {
805
+ case "text": return /* @__PURE__ */ E("div", {
806
806
  className: "agent-md",
807
- children: /* @__PURE__ */ D(m, {
807
+ children: /* @__PURE__ */ E(i, {
808
808
  content: e.text,
809
809
  plugins: "gfm",
810
810
  prose: !1,
811
811
  skipHtml: !1,
812
- components: V
812
+ components: B
813
813
  })
814
814
  });
815
815
  case "tool_use": {
816
- let n = G(t, e.name, e.input);
817
- return /* @__PURE__ */ D(U, {
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__ */ D(U, {
824
+ case "tool_result": return /* @__PURE__ */ E(H, {
825
825
  kind: "result",
826
- label: K(t, e),
826
+ label: G(t, e),
827
827
  body: e.output,
828
828
  isError: !!e.is_error
829
829
  });
830
- case "elicit_response": return /* @__PURE__ */ D(U, {
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__ */ D(J, { block: e });
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__ */ O("div", {
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__ */ D("div", {
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__ */ D("pre", {
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 U({ kind: e, label: t, sub: n, body: r, isError: i }) {
872
- return /* @__PURE__ */ O("details", {
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__ */ O("summary", {
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__ */ D("span", {
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__ */ D("span", {
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__ */ D("span", {
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__ */ D("span", { style: { flex: 1 } }),
931
- /* @__PURE__ */ D("span", {
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__ */ D("pre", {
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 W(e) {
956
+ function U(e) {
957
957
  return e.map((e) => e.type === "text" ? e.text : "").join("");
958
958
  }
959
- function G(e, t, n) {
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 K(e, t) {
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 q(e, t) {
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 J({ block: e }) {
976
- let t = l(), n = e.decision === "approved", r = n ? "var(--success)" : "var(--destructive)";
977
- return /* @__PURE__ */ O("div", {
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__ */ D("span", {
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__ */ D("span", {
1001
+ /* @__PURE__ */ E("span", {
1002
1002
  style: { fontWeight: 600 },
1003
- children: q(t, e.decision)
1003
+ children: K(t, e.decision)
1004
1004
  }),
1005
- /* @__PURE__ */ D("span", {
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__ */ O("span", {
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 le(e, t) {
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) => Y(e, t)).filter((e) => e.length > 0).join("\n");
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 Y(e, t) {
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 = G(e, t.name, t.input);
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 ? "✗" : "✓"} ${K(e, t)}`}\n${JSON.stringify(t.output, null, 2)}`;
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 `${q(e, t.decision)} ${t.tool_code}${t.note ? ` — ${t.note}` : ""}`;
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 X(e, t) {
1052
+ function Y(e, t) {
1053
1053
  return e("agent.panel.proposal", "Run {code}.", { code: t });
1054
1054
  }
1055
- function ue({ tool: e, onApprove: t, onReject: n }) {
1056
- let r = l(), i = l("errors"), c = JSON.stringify(e.params ?? {}, null, 2), [u, d] = E(!1), [f, p] = E(!1), [m, h] = E(""), [g, _] = E(null), [v, y] = E(!1), b = async (e) => {
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 t(e);
1060
+ await r(e);
1061
1061
  } catch (e) {
1062
- _(a(i, e)), y(!1);
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 n(m.trim() || void 0);
1069
+ await i(f.trim() || void 0);
1070
1070
  } catch (e) {
1071
- _(a(i, e)), y(!1);
1071
+ g(_(o, e)), y(!1);
1072
1072
  }
1073
1073
  }
1074
- }, S = typeof e.confidence == "number" ? Math.round(Math.max(0, Math.min(1, e.confidence)) * 100) : null;
1075
- return /* @__PURE__ */ O("div", {
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__ */ O("div", {
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__ */ D(o.bolt, {
1092
+ /* @__PURE__ */ E(e.bolt, {
1093
1093
  size: 11,
1094
1094
  style: { color: "var(--accent)" }
1095
1095
  }),
1096
- /* @__PURE__ */ D("span", {
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: r("agent.panel.proposed", "AI proposed")
1102
+ children: a("agent.panel.proposed", "AI proposed")
1103
1103
  }),
1104
- /* @__PURE__ */ D("span", {
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: e.tool_code
1110
+ children: t.tool_code
1111
1111
  }),
1112
- S !== null && /* @__PURE__ */ D("span", {
1113
- title: r("agent.panel.confidence_title", "LLM confidence {percent}%", { percent: S }),
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: r("agent.panel.confidence", "{percent}% confident", { percent: S })
1122
+ children: a("agent.panel.confidence", "{percent}% confident", { percent: S })
1123
1123
  })
1124
1124
  ]
1125
1125
  }),
1126
- /* @__PURE__ */ D("div", {
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: e.question?.message?.trim() || X(r, e.tool_code)
1133
+ children: t.question?.message?.trim() || Y(a, t.tool_code)
1134
1134
  }),
1135
- e.reason?.trim() && /* @__PURE__ */ D("div", {
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: e.reason.trim()
1142
+ children: t.reason.trim()
1143
1143
  }),
1144
- /* @__PURE__ */ O("button", {
1144
+ /* @__PURE__ */ D("button", {
1145
1145
  type: "button",
1146
- onClick: () => d((e) => !e),
1146
+ onClick: () => l((e) => !e),
1147
1147
  style: {
1148
1148
  background: "transparent",
1149
1149
  border: 0,
1150
1150
  padding: 0,
1151
- marginBottom: u ? 6 : 0,
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__ */ D("span", {
1159
+ children: [/* @__PURE__ */ E("span", {
1160
1160
  style: {
1161
1161
  display: "inline-block",
1162
- transform: u ? "rotate(90deg)" : "none",
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
- }), u ? r("agent.panel.hide_params", "Hide parameters") : r("agent.panel.view_params", "View parameters")]
1168
+ }), c ? a("agent.panel.hide_params", "Hide parameters") : a("agent.panel.view_params", "View parameters")]
1169
1169
  }),
1170
- u && /* @__PURE__ */ D("pre", {
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: c
1185
+ children: s
1186
1186
  }),
1187
- g && /* @__PURE__ */ D("div", {
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: g
1193
+ children: h
1194
1194
  }),
1195
- f && /* @__PURE__ */ D("input", {
1195
+ u && /* @__PURE__ */ E("input", {
1196
1196
  type: "text",
1197
- value: m,
1198
- onChange: (e) => h(e.target.value),
1199
- placeholder: r("agent.panel.reject_note", "Why not? (optional) — then Send rejection"),
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__ */ O("div", {
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
- f ? /* @__PURE__ */ D(s, {
1220
+ u ? /* @__PURE__ */ E(n, {
1221
1221
  size: "xs",
1222
1222
  kind: "ghost",
1223
1223
  onClick: x,
1224
1224
  disabled: v,
1225
- children: r("agent.panel.reject_send", "Send rejection")
1226
- }) : /* @__PURE__ */ D(s, {
1225
+ children: a("agent.panel.reject_send", "Send rejection")
1226
+ }) : /* @__PURE__ */ E(n, {
1227
1227
  size: "xs",
1228
1228
  kind: "ghost",
1229
- onClick: () => p(!0),
1229
+ onClick: () => d(!0),
1230
1230
  disabled: v,
1231
- children: r("agent.panel.reject", "Reject…")
1231
+ children: a("agent.panel.reject", "Reject…")
1232
1232
  }),
1233
- e.confirmation_mode !== "always" && /* @__PURE__ */ D(s, {
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: r("agent.panel.approve_chat", "Approve for this chat")
1238
+ children: a("agent.panel.approve_chat", "Approve for this chat")
1239
1239
  }),
1240
- /* @__PURE__ */ D(s, {
1240
+ /* @__PURE__ */ E(n, {
1241
1241
  size: "xs",
1242
1242
  kind: "primary",
1243
- icon: /* @__PURE__ */ D(o.check, { size: 11 }),
1243
+ icon: /* @__PURE__ */ E(e.check, { size: 11 }),
1244
1244
  onClick: () => b("call"),
1245
1245
  disabled: v,
1246
- children: r("agent.panel.approve_once", "Approve once")
1246
+ children: a("agent.panel.approve_once", "Approve once")
1247
1247
  })
1248
1248
  ]
1249
1249
  })
1250
1250
  ]
1251
1251
  });
1252
1252
  }
1253
- //#endregion
1254
- export { k as AgentChatPanel, X as proposalFallback };
1253
+ export { O as AgentChatPanel, Y as proposalFallback };