@declarion/react 0.61.1 → 0.63.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 (487) hide show
  1. package/dist-lib/ActionDialog-uiuse5W8.js +374 -0
  2. package/dist-lib/ActionResultDialog.impl-BUBm9Ck3.js +273 -0
  3. package/dist-lib/ActionRunner-DAxgnKB3.js +1440 -0
  4. package/dist-lib/AdminCatalogPage.impl-BJGn7EvA.js +441 -0
  5. package/dist-lib/{AgentChatPanel.impl-rgkewyMl.js → AgentChatPanel.impl-8bw8J-xV.js} +358 -319
  6. package/dist-lib/AgentOpenFollower.impl-Cga1q7_e.js +81 -0
  7. package/dist-lib/AssociatedBlock-D6qDYmRO.js +1515 -0
  8. package/dist-lib/AuthShell-DdiughRT.js +361 -0
  9. package/dist-lib/ChangePasswordDialog-DFe7lVQg.js +12 -0
  10. package/dist-lib/ChangePasswordDialog.impl-DtSIaP-A.js +194 -0
  11. package/dist-lib/CommandPalette.impl-Db3AFA5w.js +383 -0
  12. package/dist-lib/CopyButton-C0iEvaT1.js +119 -0
  13. package/dist-lib/DirtyTabsCloseDialog.impl-DWaFaWKn.js +191 -0
  14. package/dist-lib/{DraggableChildrenTable-DruYOxKm.js → DraggableChildrenTable-Cy8uevS_.js} +45 -44
  15. package/dist-lib/DynamicIcon-DuBSz6TZ.js +133 -0
  16. package/dist-lib/FieldRow-BXBBFOZh.js +157 -0
  17. package/dist-lib/FilterChips-8fMDBXHp.js +1031 -0
  18. package/dist-lib/Forgot.impl-CmT5A__V.js +105 -0
  19. package/dist-lib/{Grid-Dsf3I0xG.js → Grid-Cg29k0jv.js} +98 -99
  20. package/dist-lib/Icons-Dzl-AkD_.d.ts +159 -0
  21. package/dist-lib/Icons-lt-7lhYR.js +151 -0
  22. package/dist-lib/ImpersonationBanner.impl-CBJJx6an.js +76 -0
  23. package/dist-lib/ImpersonationStartModal.impl-RaZcsJpG.js +158 -0
  24. package/dist-lib/Kbd-CNttVu0z.js +23 -0
  25. package/dist-lib/{LayoutRenderer-QN7Wp2W6.js → LayoutRenderer-DEHtYtzV.js} +965 -942
  26. package/dist-lib/{ListCardsBody-CNaZ0xwz.js → ListCardsBody-BAwFR3yO.js} +46 -52
  27. package/dist-lib/{MarkdownRenderer-BuO5hYJh.js → MarkdownRenderer-kNEMr6K_.js} +15 -16
  28. package/dist-lib/MenuItem-CfkVXPvC.js +140 -0
  29. package/dist-lib/NotFoundPage.impl-ZSBn4WWb.js +68 -0
  30. package/dist-lib/PageHeader-tw4pX3lI.js +71 -0
  31. package/dist-lib/PageShell-tI-mm0C5.js +47 -0
  32. package/dist-lib/Pill-D-wsfRhx.js +42 -0
  33. package/dist-lib/Preferences.impl-BG9XBZDf.js +162 -0
  34. package/dist-lib/Profile.impl-CbzSzxyG.js +527 -0
  35. package/dist-lib/PropertyGridEditor-BTjscqfz.js +4378 -0
  36. package/dist-lib/RecordHeader-Bv9nJXnG.js +217 -0
  37. package/dist-lib/RecordIdBadge-C3MgoZvt.js +25 -0
  38. package/dist-lib/RefreshControl-Ce-T_wSQ.js +195 -0
  39. package/dist-lib/Reset.impl-Cesyqt5p.js +168 -0
  40. package/dist-lib/SSOCallbackPage.impl-BC_W9nQA.js +31 -0
  41. package/dist-lib/SectionCard-VonaiLrx.js +150 -0
  42. package/dist-lib/SignUp.impl-C1KCQbfZ.js +212 -0
  43. package/dist-lib/SmartDetailPage.impl-8iOAMYQh.js +1609 -0
  44. package/dist-lib/SmartListPage.impl-Cc4Zwz5f.js +2818 -0
  45. package/dist-lib/SmartRecordListPage.impl-xTSohkqG.js +795 -0
  46. package/dist-lib/{SortHeaderMenu-BV-aQbPy.js → SortHeaderMenu-BKTrq0Wb.js} +23 -23
  47. package/dist-lib/TenantParamsPage.impl-DMuSs3eP.js +306 -0
  48. package/dist-lib/TwoFA.impl-BClZ3ndk.js +125 -0
  49. package/dist-lib/{cardProjection-BnmWukxk.js → cardProjection-Cr7fG6wJ.js} +134 -133
  50. package/dist-lib/declarion-react.css +1 -1
  51. package/dist-lib/format-count-CSEFw2ht.js +943 -0
  52. package/dist-lib/headerActionZone-bef-tZZ7.js +14 -0
  53. package/dist-lib/{stores/icon-registry.d.ts → icon-registry-CUT4eF63.d.ts} +14 -11
  54. package/dist-lib/icons.d.ts +20 -4
  55. package/dist-lib/icons.js +3 -2
  56. package/dist-lib/index.d.ts +2516 -150
  57. package/dist-lib/index.js +1588 -5117
  58. package/dist-lib/page-inset-D_kkVwwN.js +9 -0
  59. package/dist-lib/page-state-eA6J_KIR.js +124 -0
  60. package/dist-lib/param-editors-9yJr7xmN.js +201 -0
  61. package/dist-lib/payload-B2wODLAX.js +86 -0
  62. package/dist-lib/{peekDraftStore-Dk1Ha5u3.js → peekDraftStore-D4GRsRKW.js} +44 -43
  63. package/dist-lib/registry-BpzE8-h8.js +119 -0
  64. package/dist-lib/screen-back-Cs4kzeqD.js +44 -0
  65. package/dist-lib/testing.d.ts +53 -56
  66. package/dist-lib/testing.js +54 -55
  67. package/dist-lib/use-filter-value-labels-DuqvAIVG.js +413 -0
  68. package/dist-lib/{useAgentConversation-nT5UypJX.js → useAgentConversation-D210VDCQ.js} +158 -169
  69. package/dist-lib/useAuth-CR2YKKXb.js +49 -0
  70. package/dist-lib/useBranding-Ckp_AuJb.js +41 -0
  71. package/dist-lib/useBrandingChrome-bKTXXDLy.js +170 -0
  72. package/dist-lib/useCurrentLocation-BdngVeQv.js +22 -0
  73. package/dist-lib/useCurrentScreen--UovgvRj.js +2511 -0
  74. package/dist-lib/useImpersonation-DNV23Ks1.js +35 -0
  75. package/dist-lib/useObject-1OCeV34A.js +26 -0
  76. package/dist-lib/useOwnRefresh-DkOuM4yo.js +435 -0
  77. package/dist-lib/useParams-ei6w4I7w.js +133 -0
  78. package/dist-lib/useProperties-CbdhlhZd.js +81 -0
  79. package/dist-lib/useResponsiveMode-DIR1bZfo.d.ts +1786 -0
  80. package/dist-lib/useScreenBack-J861tbwn.js +71 -0
  81. package/dist-lib/useTabNavigate-BZiW4q3M.js +78 -0
  82. package/dist-lib/useTabTitle-CZZnWIQi.js +22 -0
  83. package/dist-lib/utils-D_QDpB8_.js +11 -0
  84. package/dist-lib/{value-Dwfyghtj.js → value-CDCeHgOv.js} +8 -22
  85. package/dist-lib/{action-dispatch-gWmOYjOP.js → variants-CbAwl3Mn.js} +734 -740
  86. package/dist-lib/vite/index.d.ts +42 -16
  87. package/dist-lib/window-election-CHIvIZwx.js +45 -0
  88. package/package.json +16 -23
  89. package/dist-lib/DetailAuditStrip-CSXZoy7v.js +0 -288
  90. package/dist-lib/DynamicIcon-DW5krHuX.js +0 -280
  91. package/dist-lib/RefreshControl-DO9rYcdq.js +0 -399
  92. package/dist-lib/SmartDetailPage.impl-DFIIx80b.js +0 -1565
  93. package/dist-lib/SmartListPage.impl-D694R32H.js +0 -3051
  94. package/dist-lib/SmartRecordListPage.impl-CB5cuQJV.js +0 -780
  95. package/dist-lib/api/agents.d.ts +0 -140
  96. package/dist-lib/api/auth-redirect.d.ts +0 -3
  97. package/dist-lib/api/auth.d.ts +0 -26
  98. package/dist-lib/api/batch.d.ts +0 -25
  99. package/dist-lib/api/client.d.ts +0 -51
  100. package/dist-lib/api/data.d.ts +0 -153
  101. package/dist-lib/api/entities.d.ts +0 -149
  102. package/dist-lib/api/events.d.ts +0 -91
  103. package/dist-lib/api/params.d.ts +0 -28
  104. package/dist-lib/api/properties.d.ts +0 -3
  105. package/dist-lib/api/schema.d.ts +0 -2
  106. package/dist-lib/api/status.d.ts +0 -2
  107. package/dist-lib/app.d.ts +0 -1
  108. package/dist-lib/components/actions/ActionButton.d.ts +0 -18
  109. package/dist-lib/components/actions/ActionDialog.d.ts +0 -20
  110. package/dist-lib/components/actions/ActionResultDialog.d.ts +0 -22
  111. package/dist-lib/components/actions/ActionRunner.d.ts +0 -62
  112. package/dist-lib/components/actions/ObjectActionBar.d.ts +0 -29
  113. package/dist-lib/components/actions/PropertyGridEditor.d.ts +0 -20
  114. package/dist-lib/components/actions/ResponsiveActionBar.d.ts +0 -259
  115. package/dist-lib/components/actions/RowActionsKebab.d.ts +0 -20
  116. package/dist-lib/components/agents/AgentChatPanel.d.ts +0 -3
  117. package/dist-lib/components/agents/AgentChatPanel.impl.d.ts +0 -14
  118. package/dist-lib/components/agents/AgentConversationDrawer.d.ts +0 -11
  119. package/dist-lib/components/agents/AgentElicitForm.d.ts +0 -27
  120. package/dist-lib/components/agents/AgentPicker.d.ts +0 -8
  121. package/dist-lib/components/agents/transcript-runs.d.ts +0 -29
  122. package/dist-lib/components/chrome/AssociationTabs.d.ts +0 -9
  123. package/dist-lib/components/chrome/AuditMetaStrip.d.ts +0 -11
  124. package/dist-lib/components/chrome/Breadcrumbs.d.ts +0 -14
  125. package/dist-lib/components/chrome/HighlightsStrip.d.ts +0 -10
  126. package/dist-lib/components/chrome/PageHeader.d.ts +0 -16
  127. package/dist-lib/components/chrome/PageShell.d.ts +0 -7
  128. package/dist-lib/components/chrome/RecordHeader.d.ts +0 -17
  129. package/dist-lib/components/chrome/headerActionZone.d.ts +0 -27
  130. package/dist-lib/components/detail-layout/AssociatedBlock.d.ts +0 -20
  131. package/dist-lib/components/detail-layout/AssociatedToolbar.d.ts +0 -13
  132. package/dist-lib/components/detail-layout/ChildrenBlock.d.ts +0 -16
  133. package/dist-lib/components/detail-layout/ChildrenCards.d.ts +0 -2
  134. package/dist-lib/components/detail-layout/ChildrenList.d.ts +0 -2
  135. package/dist-lib/components/detail-layout/ChildrenTable.d.ts +0 -2
  136. package/dist-lib/components/detail-layout/ChildrenTimeline.d.ts +0 -2
  137. package/dist-lib/components/detail-layout/DetailAuditStrip.d.ts +0 -12
  138. package/dist-lib/components/detail-layout/DetailHighlights.d.ts +0 -14
  139. package/dist-lib/components/detail-layout/DraggableChildrenTable.d.ts +0 -16
  140. package/dist-lib/components/detail-layout/EditableChildrenTable.d.ts +0 -16
  141. package/dist-lib/components/detail-layout/ErrorSummary.d.ts +0 -11
  142. package/dist-lib/components/detail-layout/EvidenceBlock.d.ts +0 -6
  143. package/dist-lib/components/detail-layout/FieldRow.d.ts +0 -23
  144. package/dist-lib/components/detail-layout/FieldsBlock.d.ts +0 -8
  145. package/dist-lib/components/detail-layout/LayoutColumn.d.ts +0 -9
  146. package/dist-lib/components/detail-layout/LayoutRenderer.d.ts +0 -46
  147. package/dist-lib/components/detail-layout/LayoutRow.d.ts +0 -8
  148. package/dist-lib/components/detail-layout/LayoutTabs.d.ts +0 -8
  149. package/dist-lib/components/detail-layout/PropertiesBlock.d.ts +0 -8
  150. package/dist-lib/components/detail-layout/QuickAddForm.d.ts +0 -10
  151. package/dist-lib/components/detail-layout/SectionBlock.d.ts +0 -8
  152. package/dist-lib/components/detail-layout/StatusesBlock.d.ts +0 -8
  153. package/dist-lib/components/detail-layout/TimelineComposer.d.ts +0 -10
  154. package/dist-lib/components/detail-layout/blockMeta.d.ts +0 -5
  155. package/dist-lib/components/detail-layout/index.d.ts +0 -21
  156. package/dist-lib/components/detail-layout/useManualColumnResize.d.ts +0 -25
  157. package/dist-lib/components/detail-layout/useQuickAdd.d.ts +0 -16
  158. package/dist-lib/components/detail-layout/widgets/EntityScorecardWidget.d.ts +0 -2
  159. package/dist-lib/components/detail-layout/widgets/JsonDiffWidget.d.ts +0 -2
  160. package/dist-lib/components/detail-layout/widgets/MonacoJson.d.ts +0 -9
  161. package/dist-lib/components/detail-layout/widgets/WidgetHost.d.ts +0 -9
  162. package/dist-lib/components/detail-layout/widgets/builtins.d.ts +0 -1
  163. package/dist-lib/components/detail-layout/widgets/canonicalizeJson.d.ts +0 -1
  164. package/dist-lib/components/detail-layout/widgets/monacoBootstrap.d.ts +0 -1
  165. package/dist-lib/components/detail-layout/widgets/registry.d.ts +0 -14
  166. package/dist-lib/components/fields/BoolField.d.ts +0 -2
  167. package/dist-lib/components/fields/EmailField.d.ts +0 -2
  168. package/dist-lib/components/fields/EnumField.d.ts +0 -2
  169. package/dist-lib/components/fields/IntArrayField.d.ts +0 -2
  170. package/dist-lib/components/fields/JsonEditor.d.ts +0 -10
  171. package/dist-lib/components/fields/JsonField.d.ts +0 -3
  172. package/dist-lib/components/fields/MultilangArrayField.d.ts +0 -2
  173. package/dist-lib/components/fields/MultilangField.d.ts +0 -2
  174. package/dist-lib/components/fields/MultilangTextField.d.ts +0 -2
  175. package/dist-lib/components/fields/NumberField.d.ts +0 -2
  176. package/dist-lib/components/fields/PasswordField.d.ts +0 -2
  177. package/dist-lib/components/fields/PhoneField.d.ts +0 -2
  178. package/dist-lib/components/fields/RefCombobox.d.ts +0 -45
  179. package/dist-lib/components/fields/RefField.d.ts +0 -2
  180. package/dist-lib/components/fields/RichTextField.d.ts +0 -2
  181. package/dist-lib/components/fields/SecretField.d.ts +0 -2
  182. package/dist-lib/components/fields/StringArrayField.d.ts +0 -2
  183. package/dist-lib/components/fields/StringField.d.ts +0 -2
  184. package/dist-lib/components/fields/StructureField.d.ts +0 -2
  185. package/dist-lib/components/fields/TextField.d.ts +0 -2
  186. package/dist-lib/components/fields/TimestampField.d.ts +0 -2
  187. package/dist-lib/components/fields/UrlField.d.ts +0 -2
  188. package/dist-lib/components/fields/cells/factories/badge.d.ts +0 -2
  189. package/dist-lib/components/fields/cells/factories/boolPill.d.ts +0 -2
  190. package/dist-lib/components/fields/cells/factories/code.d.ts +0 -2
  191. package/dist-lib/components/fields/cells/factories/date.d.ts +0 -2
  192. package/dist-lib/components/fields/cells/factories/email.d.ts +0 -2
  193. package/dist-lib/components/fields/cells/factories/emptyCell.d.ts +0 -2
  194. package/dist-lib/components/fields/cells/factories/host-icons.d.ts +0 -17
  195. package/dist-lib/components/fields/cells/factories/json.d.ts +0 -2
  196. package/dist-lib/components/fields/cells/factories/link.d.ts +0 -2
  197. package/dist-lib/components/fields/cells/factories/markdown.d.ts +0 -2
  198. package/dist-lib/components/fields/cells/factories/markdownPreview.d.ts +0 -9
  199. package/dist-lib/components/fields/cells/factories/money.d.ts +0 -2
  200. package/dist-lib/components/fields/cells/factories/multilangInline.d.ts +0 -2
  201. package/dist-lib/components/fields/cells/factories/nextRun.d.ts +0 -2
  202. package/dist-lib/components/fields/cells/factories/number.d.ts +0 -2
  203. package/dist-lib/components/fields/cells/factories/passwordMask.d.ts +0 -2
  204. package/dist-lib/components/fields/cells/factories/phone.d.ts +0 -2
  205. package/dist-lib/components/fields/cells/factories/refLink.d.ts +0 -2
  206. package/dist-lib/components/fields/cells/factories/richTextPreview.d.ts +0 -2
  207. package/dist-lib/components/fields/cells/factories/statusPill.d.ts +0 -2
  208. package/dist-lib/components/fields/cells/factories/tagList.d.ts +0 -2
  209. package/dist-lib/components/fields/cells/factories/text.d.ts +0 -2
  210. package/dist-lib/components/fields/cells/factories/timestamp.d.ts +0 -3
  211. package/dist-lib/components/fields/cells/factories/url-helpers.d.ts +0 -12
  212. package/dist-lib/components/fields/cells/factories/url.d.ts +0 -2
  213. package/dist-lib/components/fields/cells/registry.d.ts +0 -21
  214. package/dist-lib/components/fields/index.d.ts +0 -28
  215. package/dist-lib/components/fields/langMap.d.ts +0 -2
  216. package/dist-lib/components/fields/secretValue.d.ts +0 -2
  217. package/dist-lib/components/file-widgets/CircleImage.d.ts +0 -2
  218. package/dist-lib/components/file-widgets/DocumentCard.d.ts +0 -2
  219. package/dist-lib/components/file-widgets/FileList.d.ts +0 -2
  220. package/dist-lib/components/file-widgets/Grid.d.ts +0 -2
  221. package/dist-lib/components/file-widgets/GridLazy.d.ts +0 -2
  222. package/dist-lib/components/file-widgets/ImageWidget.d.ts +0 -12
  223. package/dist-lib/components/file-widgets/LabeledSlots.d.ts +0 -2
  224. package/dist-lib/components/file-widgets/SquareImage.d.ts +0 -2
  225. package/dist-lib/components/file-widgets/UnknownFileWidget.d.ts +0 -3
  226. package/dist-lib/components/file-widgets/UploadFailureText.d.ts +0 -4
  227. package/dist-lib/components/file-widgets/WideBanner.d.ts +0 -2
  228. package/dist-lib/components/file-widgets/builtins.d.ts +0 -1
  229. package/dist-lib/components/file-widgets/cropper.d.ts +0 -14
  230. package/dist-lib/components/file-widgets/draft-scope.d.ts +0 -22
  231. package/dist-lib/components/file-widgets/helpers.d.ts +0 -15
  232. package/dist-lib/components/file-widgets/host.d.ts +0 -28
  233. package/dist-lib/components/file-widgets/index.d.ts +0 -16
  234. package/dist-lib/components/file-widgets/payload.d.ts +0 -21
  235. package/dist-lib/components/file-widgets/registry.d.ts +0 -5
  236. package/dist-lib/components/file-widgets/types.d.ts +0 -17
  237. package/dist-lib/components/file-widgets/upload.d.ts +0 -45
  238. package/dist-lib/components/file-widgets/useEmbedFileSrc.d.ts +0 -42
  239. package/dist-lib/components/file-widgets/value.d.ts +0 -4
  240. package/dist-lib/components/filters/FilterChips.d.ts +0 -14
  241. package/dist-lib/components/filters/FilterDrawer.d.ts +0 -32
  242. package/dist-lib/components/filters/filter-op-label.d.ts +0 -3
  243. package/dist-lib/components/layout/CommandPalette.d.ts +0 -21
  244. package/dist-lib/components/layout/DirtyTabsCloseDialog.d.ts +0 -9
  245. package/dist-lib/components/layout/ImpersonationBanner.d.ts +0 -11
  246. package/dist-lib/components/layout/ImpersonationFrame.d.ts +0 -11
  247. package/dist-lib/components/layout/ImpersonationStartModal.d.ts +0 -22
  248. package/dist-lib/components/layout/Layout.d.ts +0 -6
  249. package/dist-lib/components/layout/Rail.d.ts +0 -22
  250. package/dist-lib/components/layout/Sidebar.d.ts +0 -12
  251. package/dist-lib/components/layout/TabStrip.d.ts +0 -6
  252. package/dist-lib/components/layout/TenantChip.d.ts +0 -26
  253. package/dist-lib/components/layout/TopBar.d.ts +0 -22
  254. package/dist-lib/components/layout/tab-close.d.ts +0 -13
  255. package/dist-lib/components/list/ColumnPicker.d.ts +0 -20
  256. package/dist-lib/components/list/InlineEditCell.d.ts +0 -15
  257. package/dist-lib/components/list/PeekFieldCell.d.ts +0 -16
  258. package/dist-lib/components/list/QuickPeek.d.ts +0 -59
  259. package/dist-lib/components/list/ViewSwitcher.d.ts +0 -24
  260. package/dist-lib/components/list/peekDraftStore.d.ts +0 -6
  261. package/dist-lib/components/pages/AdminCatalogPage.d.ts +0 -1
  262. package/dist-lib/components/pages/DocumentsMenu.d.ts +0 -21
  263. package/dist-lib/components/pages/ExportMenu.d.ts +0 -30
  264. package/dist-lib/components/pages/NotFoundPage.d.ts +0 -1
  265. package/dist-lib/components/pages/RecordDocumentsPanel.d.ts +0 -41
  266. package/dist-lib/components/pages/SSOCallbackPage.d.ts +0 -1
  267. package/dist-lib/components/pages/SmartDetailPage.d.ts +0 -2
  268. package/dist-lib/components/pages/SmartDetailPage.impl.d.ts +0 -4
  269. package/dist-lib/components/pages/SmartListPage.d.ts +0 -2
  270. package/dist-lib/components/pages/SmartListPage.impl.d.ts +0 -4
  271. package/dist-lib/components/pages/SmartRecordListPage.d.ts +0 -2
  272. package/dist-lib/components/pages/SmartRecordListPage.impl.d.ts +0 -4
  273. package/dist-lib/components/pages/auth/AuthShell.d.ts +0 -18
  274. package/dist-lib/components/pages/auth/Forgot.d.ts +0 -1
  275. package/dist-lib/components/pages/auth/Reset.d.ts +0 -1
  276. package/dist-lib/components/pages/auth/SignIn.d.ts +0 -1
  277. package/dist-lib/components/pages/auth/SignUp.d.ts +0 -1
  278. package/dist-lib/components/pages/auth/TwoFA.d.ts +0 -1
  279. package/dist-lib/components/pages/auth/icons.d.ts +0 -6
  280. package/dist-lib/components/pages/exportRequest.d.ts +0 -69
  281. package/dist-lib/components/pages/list/DataCell.d.ts +0 -4
  282. package/dist-lib/components/pages/list/DeleteViewDialog.d.ts +0 -8
  283. package/dist-lib/components/pages/list/ListCardRow.d.ts +0 -39
  284. package/dist-lib/components/pages/list/ListCardsBody.d.ts +0 -33
  285. package/dist-lib/components/pages/list/ListFloatbar.d.ts +0 -29
  286. package/dist-lib/components/pages/list/ListFooter.d.ts +0 -26
  287. package/dist-lib/components/pages/list/ListHeader.d.ts +0 -26
  288. package/dist-lib/components/pages/list/ListNoRows.d.ts +0 -31
  289. package/dist-lib/components/pages/list/ListTable.d.ts +0 -33
  290. package/dist-lib/components/pages/list/ListTableRow.d.ts +0 -17
  291. package/dist-lib/components/pages/list/ListToolbar.d.ts +0 -46
  292. package/dist-lib/components/pages/list/ListUrlBanner.d.ts +0 -10
  293. package/dist-lib/components/pages/list/RowActionsCell.d.ts +0 -34
  294. package/dist-lib/components/pages/list/RowContextMenu.d.ts +0 -28
  295. package/dist-lib/components/pages/list/SaveViewDialog.d.ts +0 -10
  296. package/dist-lib/components/pages/list/SortHeaderMenu.d.ts +0 -14
  297. package/dist-lib/components/pages/list/cardProjection.d.ts +0 -67
  298. package/dist-lib/components/pages/list/column-sizing.d.ts +0 -14
  299. package/dist-lib/components/pages/list/columns.d.ts +0 -46
  300. package/dist-lib/components/pages/list/filter-meta.d.ts +0 -25
  301. package/dist-lib/components/pages/list/page-size.d.ts +0 -3
  302. package/dist-lib/components/pages/list/sortable-header.d.ts +0 -2
  303. package/dist-lib/components/pages/list/table-features.d.ts +0 -14
  304. package/dist-lib/components/pages/list/use-filter-value-labels.d.ts +0 -24
  305. package/dist-lib/components/pages/list/useActiveView.d.ts +0 -45
  306. package/dist-lib/components/pages/list/useHeaderReorder.d.ts +0 -26
  307. package/dist-lib/components/pages/list/useListColumnLayout.d.ts +0 -38
  308. package/dist-lib/components/pages/list/useListQuery.d.ts +0 -67
  309. package/dist-lib/components/pages/list/useListRowInteraction.d.ts +0 -61
  310. package/dist-lib/components/pages/list/useListSelection.d.ts +0 -31
  311. package/dist-lib/components/pages/list/useListSort.d.ts +0 -46
  312. package/dist-lib/components/pages/list/useListViews.d.ts +0 -57
  313. package/dist-lib/components/pages/list/useRowMenu.d.ts +0 -46
  314. package/dist-lib/components/pages/profile/Preferences.d.ts +0 -1
  315. package/dist-lib/components/pages/profile/Profile.d.ts +0 -7
  316. package/dist-lib/components/pages/tenant-params/TenantParamsPage.d.ts +0 -2
  317. package/dist-lib/components/params/ParamsBlock.d.ts +0 -13
  318. package/dist-lib/components/params/param-editors.d.ts +0 -20
  319. package/dist-lib/components/primitives/Avatar.d.ts +0 -6
  320. package/dist-lib/components/primitives/BoolToggle.d.ts +0 -7
  321. package/dist-lib/components/primitives/BrandGlyph.d.ts +0 -8
  322. package/dist-lib/components/primitives/BrandLogo.d.ts +0 -12
  323. package/dist-lib/components/primitives/Btn.d.ts +0 -19
  324. package/dist-lib/components/primitives/Check.d.ts +0 -7
  325. package/dist-lib/components/primitives/Chip.d.ts +0 -9
  326. package/dist-lib/components/primitives/ClassifiedFieldLocked.d.ts +0 -9
  327. package/dist-lib/components/primitives/Dropdown.d.ts +0 -20
  328. package/dist-lib/components/primitives/Fields.d.ts +0 -111
  329. package/dist-lib/components/primitives/HoverCard.d.ts +0 -15
  330. package/dist-lib/components/primitives/IconBtn.d.ts +0 -11
  331. package/dist-lib/components/primitives/Icons.d.ts +0 -136
  332. package/dist-lib/components/primitives/Kbd.d.ts +0 -4
  333. package/dist-lib/components/primitives/MenuItem.d.ts +0 -14
  334. package/dist-lib/components/primitives/Pill.d.ts +0 -11
  335. package/dist-lib/components/primitives/RecordIdBadge.d.ts +0 -8
  336. package/dist-lib/components/primitives/RowField.d.ts +0 -10
  337. package/dist-lib/components/primitives/SectionCard.d.ts +0 -24
  338. package/dist-lib/components/primitives/Spinner.d.ts +0 -3
  339. package/dist-lib/components/primitives/Tooltip.d.ts +0 -34
  340. package/dist-lib/components/primitives/dataTableStyles.d.ts +0 -4
  341. package/dist-lib/components/primitives/index.d.ts +0 -37
  342. package/dist-lib/components/shared/ChangePasswordDialog.d.ts +0 -9
  343. package/dist-lib/components/shared/ConfirmDialog.d.ts +0 -11
  344. package/dist-lib/components/shared/CopyButton.d.ts +0 -8
  345. package/dist-lib/components/shared/DynamicIcon.d.ts +0 -20
  346. package/dist-lib/components/shared/EmptyState.d.ts +0 -9
  347. package/dist-lib/components/shared/ErrorBoundary.d.ts +0 -17
  348. package/dist-lib/components/shared/LoadingSkeleton.d.ts +0 -6
  349. package/dist-lib/components/shared/LucideIcon.d.ts +0 -16
  350. package/dist-lib/components/shared/Markdown.d.ts +0 -3
  351. package/dist-lib/components/shared/MarkdownRenderer.d.ts +0 -11
  352. package/dist-lib/components/shared/RefreshControl.d.ts +0 -25
  353. package/dist-lib/components/shared/StatusGroupsDisplay.d.ts +0 -11
  354. package/dist-lib/components/shared/StatusStepper.d.ts +0 -13
  355. package/dist-lib/components/shared/toast/DeclarionToast.d.ts +0 -31
  356. package/dist-lib/components/shared/useOwnRefresh.d.ts +0 -9
  357. package/dist-lib/embed/EmbedAuthBootstrap.d.ts +0 -8
  358. package/dist-lib/embed/EmbedContext.d.ts +0 -50
  359. package/dist-lib/embed/EmbedDirtyReporter.d.ts +0 -10
  360. package/dist-lib/embed/EmbedHistoryTracker.d.ts +0 -1
  361. package/dist-lib/embed/EmbedLocationReporter.d.ts +0 -8
  362. package/dist-lib/embed/EmbedResizeReporter.d.ts +0 -6
  363. package/dist-lib/embed/EmbedUnsavedGuard.d.ts +0 -7
  364. package/dist-lib/embed/embed-dirty.d.ts +0 -24
  365. package/dist-lib/embed/embed-history.d.ts +0 -19
  366. package/dist-lib/embed/embed-nav-guard.d.ts +0 -20
  367. package/dist-lib/embed/file-src.d.ts +0 -63
  368. package/dist-lib/embed/handshake.d.ts +0 -57
  369. package/dist-lib/embed/index.d.ts +0 -19
  370. package/dist-lib/embed/params.d.ts +0 -75
  371. package/dist-lib/embed/protocol.d.ts +0 -165
  372. package/dist-lib/embed/screen-location.d.ts +0 -50
  373. package/dist-lib/embed/theme.d.ts +0 -34
  374. package/dist-lib/embed/token.d.ts +0 -57
  375. package/dist-lib/embed/useEmbedNavigate.d.ts +0 -48
  376. package/dist-lib/embed/useGlobalLinkInterceptor.d.ts +0 -66
  377. package/dist-lib/failure-BUxXuP4c.js +0 -158
  378. package/dist-lib/format-count-bXVfHzbI.js +0 -1771
  379. package/dist-lib/hooks/useActionData.d.ts +0 -61
  380. package/dist-lib/hooks/useAgentConversation.d.ts +0 -24
  381. package/dist-lib/hooks/useAllEntityData.d.ts +0 -16
  382. package/dist-lib/hooks/useAssociatedData.d.ts +0 -10
  383. package/dist-lib/hooks/useAuth.d.ts +0 -22
  384. package/dist-lib/hooks/useBranding.d.ts +0 -8
  385. package/dist-lib/hooks/useBrandingChrome.d.ts +0 -59
  386. package/dist-lib/hooks/useChildrenData.d.ts +0 -3
  387. package/dist-lib/hooks/useColumns.d.ts +0 -13
  388. package/dist-lib/hooks/useCurrentScreen.d.ts +0 -34
  389. package/dist-lib/hooks/useCursorEntityData.d.ts +0 -79
  390. package/dist-lib/hooks/useDebounce.d.ts +0 -1
  391. package/dist-lib/hooks/useEntity.d.ts +0 -2
  392. package/dist-lib/hooks/useEntityData.d.ts +0 -41
  393. package/dist-lib/hooks/useFilters.d.ts +0 -14
  394. package/dist-lib/hooks/useImpersonation.d.ts +0 -23
  395. package/dist-lib/hooks/useLanguage.d.ts +0 -4
  396. package/dist-lib/hooks/useLiveObject.d.ts +0 -9
  397. package/dist-lib/hooks/useLongPress.d.ts +0 -29
  398. package/dist-lib/hooks/useMutations.d.ts +0 -13
  399. package/dist-lib/hooks/useObject.d.ts +0 -11
  400. package/dist-lib/hooks/useObjectStatus.d.ts +0 -5
  401. package/dist-lib/hooks/usePageState.d.ts +0 -32
  402. package/dist-lib/hooks/usePageStateRuntime.d.ts +0 -27
  403. package/dist-lib/hooks/usePageStateTtl.d.ts +0 -11
  404. package/dist-lib/hooks/useParams.d.ts +0 -49
  405. package/dist-lib/hooks/useProperties.d.ts +0 -5
  406. package/dist-lib/hooks/useRealtimeThresholds.d.ts +0 -1
  407. package/dist-lib/hooks/useRegisterScreenTab.d.ts +0 -11
  408. package/dist-lib/hooks/useResponsiveMode.d.ts +0 -27
  409. package/dist-lib/hooks/useSSE.d.ts +0 -31
  410. package/dist-lib/hooks/useSchema.d.ts +0 -1
  411. package/dist-lib/hooks/useScreen.d.ts +0 -2
  412. package/dist-lib/hooks/useScreenBack.d.ts +0 -21
  413. package/dist-lib/hooks/useScreenTab.d.ts +0 -10
  414. package/dist-lib/hooks/useTabNavigate.d.ts +0 -34
  415. package/dist-lib/hooks/useTabSearchMirror.d.ts +0 -1
  416. package/dist-lib/hooks/useTabTitle.d.ts +0 -2
  417. package/dist-lib/hooks/useText.d.ts +0 -3
  418. package/dist-lib/hooks/useTimelineData.d.ts +0 -10
  419. package/dist-lib/hooks/useVersionWatcher.d.ts +0 -30
  420. package/dist-lib/hooks/useViews.d.ts +0 -26
  421. package/dist-lib/lib/action-dispatch.d.ts +0 -8
  422. package/dist-lib/lib/actions.d.ts +0 -254
  423. package/dist-lib/lib/anchor.d.ts +0 -36
  424. package/dist-lib/lib/brand-tokens.d.ts +0 -43
  425. package/dist-lib/lib/branding.d.ts +0 -20
  426. package/dist-lib/lib/canonical-url.d.ts +0 -27
  427. package/dist-lib/lib/capabilityPrefetch.d.ts +0 -6
  428. package/dist-lib/lib/child-config.d.ts +0 -24
  429. package/dist-lib/lib/children-validation.d.ts +0 -5
  430. package/dist-lib/lib/decimal-text.d.ts +0 -1
  431. package/dist-lib/lib/display-value.d.ts +0 -1
  432. package/dist-lib/lib/document-templates.d.ts +0 -11
  433. package/dist-lib/lib/download.d.ts +0 -21
  434. package/dist-lib/lib/evidence-verdict.d.ts +0 -11
  435. package/dist-lib/lib/failure.d.ts +0 -2
  436. package/dist-lib/lib/field-classification.d.ts +0 -61
  437. package/dist-lib/lib/field-regions.d.ts +0 -8
  438. package/dist-lib/lib/filter-evaluator.d.ts +0 -16
  439. package/dist-lib/lib/filters.d.ts +0 -93
  440. package/dist-lib/lib/format-count.d.ts +0 -41
  441. package/dist-lib/lib/html-state.d.ts +0 -11
  442. package/dist-lib/lib/language.d.ts +0 -19
  443. package/dist-lib/lib/longPressGesture.d.ts +0 -55
  444. package/dist-lib/lib/mass-edit.d.ts +0 -32
  445. package/dist-lib/lib/page-inset.d.ts +0 -3
  446. package/dist-lib/lib/quick-add.d.ts +0 -2
  447. package/dist-lib/lib/realtime-query-keys.d.ts +0 -22
  448. package/dist-lib/lib/realtime-reconcile.d.ts +0 -33
  449. package/dist-lib/lib/realtime-resync.d.ts +0 -23
  450. package/dist-lib/lib/record-documents-key.d.ts +0 -1
  451. package/dist-lib/lib/rich-text.d.ts +0 -14
  452. package/dist-lib/lib/rowClickGesture.d.ts +0 -26
  453. package/dist-lib/lib/safe-url.d.ts +0 -15
  454. package/dist-lib/lib/schema-routing.d.ts +0 -3
  455. package/dist-lib/lib/screen-back.d.ts +0 -70
  456. package/dist-lib/lib/scroll-restoration.d.ts +0 -90
  457. package/dist-lib/lib/size-value.d.ts +0 -16
  458. package/dist-lib/lib/sort.d.ts +0 -72
  459. package/dist-lib/lib/timestamp.d.ts +0 -53
  460. package/dist-lib/lib/toast.d.ts +0 -49
  461. package/dist-lib/lib/ui-actions.d.ts +0 -12
  462. package/dist-lib/lib/utils.d.ts +0 -9
  463. package/dist-lib/lib/variants.d.ts +0 -7
  464. package/dist-lib/lib/versionTracker.d.ts +0 -72
  465. package/dist-lib/lib/viewport-category.d.ts +0 -44
  466. package/dist-lib/main.d.ts +0 -1
  467. package/dist-lib/registry-nSeHd5si.js +0 -1956
  468. package/dist-lib/safe-url-oSJw5pzO.js +0 -34
  469. package/dist-lib/stores/auth.d.ts +0 -16
  470. package/dist-lib/stores/list-layout.d.ts +0 -85
  471. package/dist-lib/stores/page-state.d.ts +0 -61
  472. package/dist-lib/stores/preferences.d.ts +0 -37
  473. package/dist-lib/stores/realtime.d.ts +0 -96
  474. package/dist-lib/stores/screen-registry.d.ts +0 -17
  475. package/dist-lib/stores/tabs.d.ts +0 -73
  476. package/dist-lib/types/api.d.ts +0 -579
  477. package/dist-lib/types/fieldType.d.ts +0 -2
  478. package/dist-lib/types/files.d.ts +0 -79
  479. package/dist-lib/types/ordmap.d.ts +0 -39
  480. package/dist-lib/types/schema.d.ts +0 -1089
  481. package/dist-lib/useCurrentScreen-0WBj7wT6.js +0 -7860
  482. package/dist-lib/useListQuery-C7dq_sEo.js +0 -103
  483. package/dist-lib/useOwnRefresh-q80kCMMh.js +0 -1167
  484. package/dist-lib/useProperties-CeGKtq7Q.js +0 -83
  485. package/dist-lib/useTabSearchMirror-CzNAj82Q.js +0 -175
  486. package/dist-lib/useText-BsedsJ-J.js +0 -952
  487. package/dist-lib/vite/fingerprint-plugin.d.ts +0 -44
@@ -1,37 +1,49 @@
1
- import { s as e } from "./DynamicIcon-DW5krHuX.js";
2
- import { Jn as t, Lt as n, Vn as r, Zt as i, fn as a, jt as o, qn as s } from "./useCurrentScreen-0WBj7wT6.js";
3
- import { d as c, f as l, t as u, u as d } from "./useText-BsedsJ-J.js";
4
- import { t as f } from "./failure-BUxXuP4c.js";
5
- import { g as p, h as m, t as h } from "./useAgentConversation-nT5UypJX.js";
6
- import { useEffect as g, useRef as _, useState as v } from "react";
7
- import { jsx as y, jsxs as b } from "react/jsx-runtime";
8
- import x from "react-textarea-autosize";
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 S = /* @__PURE__ */ new Set(["operation.search"]);
11
- function C(e, t = []) {
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(T(e.assistant_message_id, e.provider_call_id), e);
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 = w(t, r);
16
- if (D(t) && n.push({
27
+ let e = E(t, r);
28
+ if (k(t) && n.push({
17
29
  kind: "message",
18
- message: E(t)
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) S.has(t.name) || a.calls.push(t);
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 w(e, t) {
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(T(e.id, a)), s = o?.status;
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 T(e, t) {
59
+ function D(e, t) {
48
60
  return `${e}\u0000${t}`;
49
61
  }
50
- function E(e) {
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 D(e) {
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 O = 80;
62
- function k({ open: t, onClose: n, context: r, title: i = "", askOnOpen: o }) {
63
- let l = h(), d = u(), S = u("errors"), [w, T] = v(""), [E, D] = v(null), k = _(null), [A, P] = v(!1), I = _(null), L = _(null), R = _(!0), [B, V] = v(!1), H = () => {
64
- let e = L.current;
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 <= O;
67
- R.current = t, t && B && V(!1);
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 = L.current;
83
+ let t = R.current;
70
84
  t && (t.scrollTo({
71
85
  top: t.scrollHeight,
72
86
  behavior: e
73
- }), R.current = !0, V(!1));
87
+ }), z.current = !0, V(!1));
74
88
  };
75
- if (g(() => {
76
- R.current ? U("smooth") : V(!0);
77
- }, [l.messages]), g(() => {
89
+ if (v(() => {
90
+ z.current ? U("smooth") : V(!0);
91
+ }, [m.messages]), v(() => {
78
92
  t && U("instant");
79
- }, [t]), g(() => {
80
- let e = o?.trim();
81
- t && e && k.current !== e && (k.current = e, I.current?.(e));
82
- }, [t, o]), !t) return null;
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
- D(null), T("");
99
+ N(null), A("");
86
100
  try {
87
- await l.send(e);
101
+ await m.send(e, o);
88
102
  } catch (t) {
89
- console.error("agent send failed", t), D(f(S, t)), T(e);
103
+ console.error("agent send failed", t), N(r(O, t)), A(e);
90
104
  }
91
105
  }
92
106
  };
93
- I.current = W;
107
+ L.current = W;
94
108
  let G = (e) => {
95
- e.key === "Enter" && !e.shiftKey && (e.preventDefault(), W(w));
96
- }, K = l.invocations.filter((e) => e.status === "pending_approval"), q = l.invocations.filter((e) => e.kind === "input_request" && e.status === "pending_input"), J = l.turns.filter((e) => e.status === "queued" || e.status === "running" || e.status === "waiting" || e.status === "failed"), Y = l.invocations.filter((e) => e.status === "outcome_unknown"), X = l.messages.length === 0 && !l.turn.streaming, Z = K.length > 0 || q.length > 0, Q = l.turn.streaming && !Z || l.turns.some((e) => e.status === "running"), ie = l.messages.some((e) => e.role === "assistant" && e.streaming && e.content.length > 0), $ = w.trim().length > 0;
97
- return /* @__PURE__ */ b("aside", {
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
- position: "fixed",
100
- top: "var(--topbar-h)",
101
- right: 0,
102
- bottom: "var(--tabbar-h, 0px)",
103
- width: 400,
104
- zIndex: 30,
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__ */ b("div", {
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__ */ y("span", {
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__ */ y(e.sparkle, {
151
+ children: /* @__PURE__ */ x(c.sparkle, {
132
152
  size: 13,
133
153
  style: { color: "var(--accent-foreground)" }
134
154
  })
135
155
  }),
136
- /* @__PURE__ */ b("div", {
156
+ /* @__PURE__ */ S("div", {
137
157
  style: { flex: 1 },
138
- children: [/* @__PURE__ */ y("div", {
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: i
145
- }), /* @__PURE__ */ b("div", {
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__ */ y("span", { style: {
173
+ children: [/* @__PURE__ */ x("span", { style: {
154
174
  width: 5,
155
175
  height: 5,
156
176
  background: "var(--success)",
157
177
  borderRadius: 999
158
- } }), c(d("agent.panel.context", "context: {context}"), { context: /* @__PURE__ */ y("span", {
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
- l.messages.length > 0 && /* @__PURE__ */ y(s, {
181
+ m.messages.length > 0 && /* @__PURE__ */ x(l, {
165
182
  size: 24,
166
- icon: /* @__PURE__ */ y(e.copy, { size: 12 }),
167
- onClick: () => void ne(d, l.messages),
168
- title: d("agent.panel.copy_all", "Copy entire conversation")
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__ */ y(s, {
187
+ /* @__PURE__ */ x(l, {
171
188
  size: 24,
172
- icon: /* @__PURE__ */ y(e.clock, { size: 12 }),
189
+ icon: /* @__PURE__ */ x(c.clock, { size: 12 }),
173
190
  onClick: () => {
174
- P((e) => !e), l.refreshConversations();
191
+ I((e) => !e), m.refreshConversations();
175
192
  },
176
- title: d("agent.panel.earlier", "Earlier conversations")
193
+ title: _("agent.panel.earlier", "Earlier conversations")
177
194
  }),
178
- l.conversationId && /* @__PURE__ */ y(s, {
195
+ m.conversationId && /* @__PURE__ */ x(l, {
179
196
  size: 24,
180
- icon: /* @__PURE__ */ y(e.plus, { size: 12 }),
181
- onClick: l.startNew,
182
- title: d("agent.panel.new_conversation", "New conversation")
197
+ icon: /* @__PURE__ */ x(c.plus, { size: 12 }),
198
+ onClick: m.startNew,
199
+ title: _("agent.panel.new_conversation", "New conversation")
183
200
  }),
184
- /* @__PURE__ */ y(s, {
201
+ /* @__PURE__ */ x(l, {
185
202
  size: 24,
186
- icon: /* @__PURE__ */ y(e.settings, { size: 12 }),
187
- title: d("agent.panel.preferences", "Preferences")
203
+ icon: /* @__PURE__ */ x(c.settings, { size: 12 }),
204
+ title: _("agent.panel.preferences", "Preferences")
188
205
  }),
189
- /* @__PURE__ */ y(s, {
206
+ /* @__PURE__ */ x(l, {
190
207
  size: 24,
191
- icon: /* @__PURE__ */ y(e.x, { size: 13 }),
192
- onClick: n,
193
- title: d("agent.panel.close", "Close")
208
+ icon: /* @__PURE__ */ x(c.x, { size: 13 }),
209
+ onClick: i,
210
+ title: _("agent.panel.close", "Close")
194
211
  })
195
212
  ]
196
213
  }),
197
- !l.conversationId && /* @__PURE__ */ y(m, {
198
- agents: l.agents,
199
- selectedId: l.selectedAgentId,
200
- onSelect: l.selectAgent,
201
- label: d("agent.panel.agent", "Agent")
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
- A && /* @__PURE__ */ y(z, {
204
- conversations: l.conversations,
205
- currentId: l.conversationId,
220
+ F && /* @__PURE__ */ x(ce, {
221
+ conversations: m.conversations,
222
+ currentId: m.conversationId,
206
223
  onPick: (e) => {
207
- l.setConversationId(e), P(!1);
224
+ m.setConversationId(e), I(!1);
208
225
  }
209
226
  }),
210
- /* @__PURE__ */ b("div", {
211
- ref: L,
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__ */ y(j, { children: d("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?") }),
224
- C(l.messages, l.invocations).map((e) => e.kind === "message" ? /* @__PURE__ */ y(te, { message: e.message }, e.message.id) : /* @__PURE__ */ y(F, { run: e }, e.id)),
225
- J.map((e) => /* @__PURE__ */ y(M, { agentTurn: e }, e.id)),
226
- K.map((e) => /* @__PURE__ */ y(re, {
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) => l.approve(e.id, t),
229
- onReject: async (t) => l.reject(e.id, 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__ */ y(p, {
232
- ...N(d, e),
233
- onSubmit: (t) => void l.submitInput(e.id, t),
234
- onCancel: () => void l.cancelInput(e.id)
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__ */ y(ee, { invocation: e }, e.id)),
237
- Q && !ie && /* @__PURE__ */ b("div", {
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__ */ y(a, { size: 12 }), d("agent.panel.thinking", "Thinking…")]
262
+ children: [/* @__PURE__ */ x(d, { size: 12 }), _("agent.panel.thinking", "Thinking…")]
246
263
  }),
247
- E && /* @__PURE__ */ y("div", {
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__ */ y("strong", { children: E })
273
+ children: /* @__PURE__ */ x("strong", { children: j })
257
274
  })
258
275
  ]
259
276
  }),
260
- B && /* @__PURE__ */ b("button", {
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__ */ y(e.arrowDown, { size: 11 }), d("agent.panel.jump_latest", "Jump to latest")]
297
+ children: [/* @__PURE__ */ x(c.arrowDown, { size: 11 }), _("agent.panel.jump_latest", "Jump to latest")]
281
298
  }),
282
- /* @__PURE__ */ b("div", {
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__ */ b("div", {
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__ */ y(x, {
300
- value: w,
301
- onChange: (e) => T(e.target.value),
316
+ /* @__PURE__ */ x(w, {
317
+ value: k,
318
+ onChange: (e) => A(e.target.value),
302
319
  onKeyDown: G,
303
- placeholder: d("agent.panel.ask_placeholder", "Ask or describe what you want…"),
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__ */ y(s, {
336
+ /* @__PURE__ */ x(l, {
320
337
  size: 26,
321
- icon: /* @__PURE__ */ y(e.paperclip, { size: 12 }),
322
- title: d("agent.panel.attach_context", "Attach context")
338
+ icon: /* @__PURE__ */ x(c.paperclip, { size: 12 }),
339
+ title: _("agent.panel.attach_context", "Attach context")
323
340
  }),
324
- Q ? /* @__PURE__ */ y("button", {
325
- onClick: () => void l.cancel(),
326
- "aria-label": d("agent.panel.stop", "Stop generating"),
327
- title: d("agent.panel.stop", "Stop generating"),
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__ */ y(e.x, { size: 13 })
341
- }) : /* @__PURE__ */ y("button", {
342
- onClick: () => void W(w),
357
+ children: /* @__PURE__ */ x(c.x, { size: 13 })
358
+ }) : /* @__PURE__ */ x("button", {
359
+ onClick: () => void W(k),
343
360
  disabled: !$,
344
- "aria-label": d("agent.panel.send", "Send"),
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__ */ y(e.arrowUp, { size: 13 })
374
+ children: /* @__PURE__ */ x(c.arrowUp, { size: 13 })
358
375
  })
359
376
  ]
360
- }), /* @__PURE__ */ b("div", {
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__ */ y(e.shield, { size: 10 }), /* @__PURE__ */ y("span", { children: d("agent.panel.footer", "Runs within your permissions. All actions audit-logged.") })]
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 A() {
376
- return /* @__PURE__ */ y("span", {
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 j({ children: t, dataMessageId: n, dataStreaming: r }) {
390
- return /* @__PURE__ */ b("div", {
391
- "data-message-id": n,
392
- "data-streaming": r ? "true" : void 0,
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__ */ y("span", {
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__ */ y(e.sparkle, { size: 11 })
412
- }), /* @__PURE__ */ y("div", {
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: t
437
+ children: e
421
438
  })]
422
439
  });
423
440
  }
424
- function M({ agentTurn: e }) {
425
- let t = u(), n = u("errors"), i = o("agent_turn")?.fields.get("status"), a = e.status === "failed" ? n(e.error_code ?? "", r(e.error_details) || n("agents.turn_failed", "The assistant could not finish this turn.")) : void 0;
426
- return /* @__PURE__ */ b("div", {
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(i?.values?.find((e) => e.code === "queued")?.name) || e.status),
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 N(e, t) {
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: P(r.schema) ? r.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: P(i.schema) ? i.schema : {}
467
+ schema: N(i.schema) ? i.schema : {}
451
468
  };
452
469
  }
453
- function ee({ invocation: e }) {
454
- let t = u();
455
- return /* @__PURE__ */ y("div", {
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: c(t("agent.panel.outcome_uncertain", "The outcome of {tool} is unknown. It was not retried automatically."), { tool: /* @__PURE__ */ y("span", {
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 P(e) {
489
+ function N(e) {
473
490
  return typeof e == "object" && !!e && !Array.isArray(e);
474
491
  }
475
- function F({ run: e }) {
476
- let [t, n] = v(!1), r = I(), i = e.calls.filter((e) => e.isError).length, a = e.calls.filter((e) => !R(e.status)).length;
477
- return /* @__PURE__ */ b("div", {
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__ */ y("span", { style: {
501
+ children: [/* @__PURE__ */ x("span", { style: {
485
502
  width: 20,
486
503
  flexShrink: 0
487
- } }), /* @__PURE__ */ b("div", {
504
+ } }), /* @__PURE__ */ S("div", {
488
505
  style: {
489
506
  flex: 1,
490
507
  minWidth: 0
491
508
  },
492
- children: [/* @__PURE__ */ b("button", {
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__ */ y("span", {
527
+ children: [/* @__PURE__ */ x("span", {
511
528
  "aria-hidden": !0,
512
529
  children: t ? "▾" : "▸"
513
- }), /* @__PURE__ */ y("span", { children: r(e.calls.length, a, i) })]
514
- }), t && /* @__PURE__ */ y("div", {
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__ */ y(L, { call: e }, e.id))
538
+ children: e.calls.map((e) => /* @__PURE__ */ x(F, { call: e }, e.id))
522
539
  })]
523
540
  })]
524
541
  });
525
542
  }
526
- function I() {
527
- let e = u();
528
- return (t, n, r) => {
529
- let i = [];
530
- return t > 0 && i.push(d(e, "agent.panel.operations", t, {
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
- })), n > 0 && i.push(e("agent.panel.running", "running")), r > 0 && i.push(d(e, "agent.panel.failed_count", r, {
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
- })), i.join(" · ") || e("agent.panel.worked", "worked");
553
+ })), a.join(" · ") || e("agent.panel.worked", "worked");
537
554
  };
538
555
  }
539
- function L({ call: e }) {
540
- let [t, n] = v(!1), r = u(), i = B(e.name), a = o("agent_tool_invocation")?.fields.get("status"), s = e.status ?? "running", c = r(a?.values?.find((e) => e.code === s)?.name) || s, l = e.status === "outcome_unknown" ? "outcome_unknown" : e.isError ? "failed" : R(e.status) ? "ok" : "running";
541
- return /* @__PURE__ */ b("div", {
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": l,
544
- children: [/* @__PURE__ */ b("button", {
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: l === "failed" ? "var(--danger)" : "var(--text-2)"
573
+ color: u === "failed" ? "var(--danger)" : "var(--text-2)"
557
574
  },
558
575
  children: [
559
- /* @__PURE__ */ y("span", {
576
+ /* @__PURE__ */ x("span", {
560
577
  "aria-hidden": !0,
561
578
  children: t ? "▾" : "▸"
562
579
  }),
563
- /* @__PURE__ */ y("span", {
580
+ /* @__PURE__ */ x("span", {
564
581
  className: "mono",
565
- children: i
582
+ children: a
566
583
  }),
567
- /* @__PURE__ */ y("span", {
584
+ /* @__PURE__ */ x("span", {
568
585
  style: { color: "var(--text-3)" },
569
- children: c
586
+ children: l
570
587
  })
571
588
  ]
572
- }), t && /* @__PURE__ */ y("pre", {
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 R(e) {
610
+ function I(e) {
594
611
  return e === "succeeded" || e === "failed" || e === "rejected" || e === "canceled" || e === "outcome_unknown";
595
612
  }
596
- function z({ conversations: e, currentId: t, onPick: n }) {
597
- let r = u();
598
- return e.length === 0 ? /* @__PURE__ */ y("div", {
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__ */ y("div", {
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__ */ y("button", {
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 B(e) {
632
- let t = u(), { value: n } = i("agents.transcript_names", "code"), { data: r } = l();
633
- return n === "display" && t(r?.actions?.[e]?.display?.name ?? V(r, e)) || e;
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 V(e, t) {
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 te({ message: e }) {
656
+ function le({ message: e }) {
640
657
  if (e.role === "user") {
641
- let t = K(e.content), n = e.content.some((e) => e.type !== "text");
642
- return t && !n ? /* @__PURE__ */ y("div", {
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__ */ y(H, { message: e });
673
+ }) : /* @__PURE__ */ x(z, { message: e });
657
674
  }
658
- return e.role === "tool" ? /* @__PURE__ */ y(H, { message: e }) : e.role === "system" ? e.content.some((e) => e.type === "decision") ? /* @__PURE__ */ y(H, { message: e }) : /* @__PURE__ */ y(j, {
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__ */ y(W, { block: e }, t))
661
- }) : e.content.length === 0 ? null : /* @__PURE__ */ b(j, {
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__ */ y(W, { block: e }, t)), e.streaming && /* @__PURE__ */ y(A, {})]
681
+ children: [e.content.map((e, t) => /* @__PURE__ */ x(U, { block: e }, t)), e.streaming && /* @__PURE__ */ x(j, {})]
665
682
  });
666
683
  }
667
- function H({ message: e }) {
668
- return /* @__PURE__ */ y("div", {
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__ */ y(W, { block: e }, t))
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
- var U = {
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__ */ y("code", {
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__ */ y("pre", {
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__ */ y("code", {
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__ */ y("ul", {
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__ */ y("ol", {
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__ */ y("p", {
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 W({ block: e }) {
752
- let t = u();
789
+ function U({ block: e }) {
790
+ let t = s();
753
791
  switch (e.type) {
754
- case "text": return /* @__PURE__ */ y("div", {
792
+ case "text": return /* @__PURE__ */ x("div", {
755
793
  className: "agent-md",
756
- children: /* @__PURE__ */ y(n, {
794
+ children: /* @__PURE__ */ x(f, {
757
795
  content: e.text,
758
796
  plugins: "gfm",
759
797
  prose: !1,
760
798
  skipHtml: !1,
761
- components: U
799
+ components: H
762
800
  })
763
801
  });
764
802
  case "tool_use": {
765
- let n = q(t, e.name, e.input);
766
- return /* @__PURE__ */ y(G, {
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__ */ y(G, {
811
+ case "tool_result": return /* @__PURE__ */ x(W, {
774
812
  kind: "result",
775
- label: J(t, e),
813
+ label: q(t, e),
776
814
  body: e.output,
777
815
  isError: !!e.is_error
778
816
  });
779
- case "elicit_response": return /* @__PURE__ */ y(G, {
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__ */ y(X, { block: e });
785
- case "system": return /* @__PURE__ */ b("div", {
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__ */ y("div", {
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__ */ y("pre", {
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 G({ kind: e, label: t, sub: n, body: r, isError: i }) {
818
- return /* @__PURE__ */ b("details", {
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__ */ b("summary", {
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__ */ y("span", {
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__ */ y("span", {
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__ */ y("span", {
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__ */ y("span", { style: { flex: 1 } }),
877
- /* @__PURE__ */ y("span", {
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__ */ y("pre", {
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 K(e) {
941
+ function G(e) {
903
942
  return e.map((e) => e.type === "text" ? e.text : "").join("");
904
943
  }
905
- function q(e, t, n) {
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 J(e, t) {
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 Y(e, t) {
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 X({ block: e }) {
922
- let t = u(), n = e.decision === "approved", r = n ? "var(--success)" : "var(--destructive)";
923
- return /* @__PURE__ */ b("div", {
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__ */ y("span", {
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__ */ y("span", {
986
+ /* @__PURE__ */ x("span", {
948
987
  style: { fontWeight: 600 },
949
- children: Y(t, e.decision)
988
+ children: J(t, e.decision)
950
989
  }),
951
- /* @__PURE__ */ y("span", {
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__ */ b("span", {
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 ne(e, t) {
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) => Z(e, t)).filter((e) => e.length > 0).join("\n");
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 Z(e, t) {
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 = q(e, t.name, t.input);
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 ? "✗" : "✓"} ${J(e, t)}`}\n${JSON.stringify(t.output, null, 2)}`;
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 `${Y(e, t.decision)} ${t.tool_code}${t.note ? ` — ${t.note}` : ""}`;
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 Q(e, t) {
1037
+ function Z(e, t) {
999
1038
  return e("agent.panel.proposal", "Run {code}.", { code: t });
1000
1039
  }
1001
- function re({ tool: n, onApprove: r, onReject: i }) {
1002
- let a = u(), o = u("errors"), s = JSON.stringify(n.params ?? {}, null, 2), [c, l] = v(!1), [d, p] = v(!1), [m, h] = v(""), [g, _] = v(null), [x, S] = v(!1), C = async (e) => {
1003
- if (!x) {
1004
- S(!0);
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 r(e);
1045
+ await t(e);
1007
1046
  } catch (e) {
1008
- _(f(o, e)), S(!1);
1047
+ g(r(a, e)), v(!1);
1009
1048
  }
1010
1049
  }
1011
- }, w = async () => {
1012
- if (!x) {
1013
- S(!0);
1050
+ }, C = async () => {
1051
+ if (!_) {
1052
+ v(!0);
1014
1053
  try {
1015
- await i(m.trim() || void 0);
1054
+ await n(m.trim() || void 0);
1016
1055
  } catch (e) {
1017
- _(f(o, e)), S(!1);
1056
+ g(r(a, e)), v(!1);
1018
1057
  }
1019
1058
  }
1020
- }, T = typeof n.confidence == "number" ? Math.round(Math.max(0, Math.min(1, n.confidence)) * 100) : null;
1021
- return /* @__PURE__ */ b("div", {
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__ */ b("div", {
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__ */ y(e.bolt, {
1077
+ /* @__PURE__ */ x(c.bolt, {
1039
1078
  size: 11,
1040
1079
  style: { color: "var(--accent)" }
1041
1080
  }),
1042
- /* @__PURE__ */ y("span", {
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: a("agent.panel.proposed", "AI proposed")
1087
+ children: i("agent.panel.proposed", "AI proposed")
1049
1088
  }),
1050
- /* @__PURE__ */ y("span", {
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: n.tool_code
1095
+ children: e.tool_code
1057
1096
  }),
1058
- T !== null && /* @__PURE__ */ y("span", {
1059
- title: a("agent.panel.confidence_title", "LLM confidence {percent}%", { percent: T }),
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: a("agent.panel.confidence", "{percent}% confident", { percent: T })
1107
+ children: i("agent.panel.confidence", "{percent}% confident", { percent: w })
1069
1108
  })
1070
1109
  ]
1071
1110
  }),
1072
- /* @__PURE__ */ y("div", {
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: n.question?.message?.trim() || Q(a, n.tool_code)
1118
+ children: e.question?.message?.trim() || Z(i, e.tool_code)
1080
1119
  }),
1081
- n.reason?.trim() && /* @__PURE__ */ y("div", {
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: n.reason.trim()
1127
+ children: e.reason.trim()
1089
1128
  }),
1090
- /* @__PURE__ */ b("button", {
1129
+ /* @__PURE__ */ S("button", {
1091
1130
  type: "button",
1092
- onClick: () => l((e) => !e),
1131
+ onClick: () => d((e) => !e),
1093
1132
  style: {
1094
1133
  background: "transparent",
1095
1134
  border: 0,
1096
1135
  padding: 0,
1097
- marginBottom: c ? 6 : 0,
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__ */ y("span", {
1144
+ children: [/* @__PURE__ */ x("span", {
1106
1145
  style: {
1107
1146
  display: "inline-block",
1108
- transform: c ? "rotate(90deg)" : "none",
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
- }), c ? a("agent.panel.hide_params", "Hide parameters") : a("agent.panel.view_params", "View parameters")]
1153
+ }), l ? i("agent.panel.hide_params", "Hide parameters") : i("agent.panel.view_params", "View parameters")]
1115
1154
  }),
1116
- c && /* @__PURE__ */ y("pre", {
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: s
1170
+ children: o
1132
1171
  }),
1133
- g && /* @__PURE__ */ y("div", {
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: g
1178
+ children: h
1140
1179
  }),
1141
- d && /* @__PURE__ */ y("input", {
1180
+ f && /* @__PURE__ */ x("input", {
1142
1181
  type: "text",
1143
1182
  value: m,
1144
- onChange: (e) => h(e.target.value),
1145
- placeholder: a("agent.panel.reject_note", "Why not? (optional) — then Send rejection"),
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__ */ b("div", {
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
- d ? /* @__PURE__ */ y(t, {
1205
+ f ? /* @__PURE__ */ x(u, {
1167
1206
  size: "xs",
1168
1207
  kind: "ghost",
1169
- onClick: w,
1170
- disabled: x,
1171
- children: a("agent.panel.reject_send", "Send rejection")
1172
- }) : /* @__PURE__ */ y(t, {
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: x,
1177
- children: a("agent.panel.reject", "Reject…")
1215
+ disabled: _,
1216
+ children: i("agent.panel.reject", "Reject…")
1178
1217
  }),
1179
- n.confirmation_mode !== "always" && /* @__PURE__ */ y(t, {
1218
+ e.confirmation_mode !== "always" && /* @__PURE__ */ x(u, {
1180
1219
  size: "xs",
1181
1220
  kind: "ghost",
1182
- onClick: () => C("conversation"),
1183
- disabled: x,
1184
- children: a("agent.panel.approve_chat", "Approve for this chat")
1221
+ onClick: () => y("conversation"),
1222
+ disabled: _,
1223
+ children: i("agent.panel.approve_chat", "Approve for this chat")
1185
1224
  }),
1186
- /* @__PURE__ */ y(t, {
1225
+ /* @__PURE__ */ x(u, {
1187
1226
  size: "xs",
1188
1227
  kind: "primary",
1189
- icon: /* @__PURE__ */ y(e.check, { size: 11 }),
1190
- onClick: () => C("call"),
1191
- disabled: x,
1192
- children: a("agent.panel.approve_once", "Approve once")
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 { k as AgentChatPanel };
1239
+ export { A as AgentChatPanel };