@adecore/agents-react 0.53.3 → 0.54.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 (355) hide show
  1. package/dist/agents/AgentIcon.js +1 -1
  2. package/dist/agents/AgentModelLabel.js +1 -1
  3. package/dist/agents/accounts.js +1 -1
  4. package/dist/chat/attachments.js +1 -1
  5. package/dist/chat/forks.js +1 -1
  6. package/dist/chat/logic/limit.js +1 -1
  7. package/dist/chat/logic/scrubber.js +1 -1
  8. package/dist/chat/logic/selection-switch.d.ts +6 -0
  9. package/dist/chat/logic/selection-switch.js +42 -0
  10. package/dist/chat/logic/timeline-target.d.ts +1 -1
  11. package/dist/chat/logic/timeline.d.ts +6 -1
  12. package/dist/chat/logic/timeline.js +16 -2
  13. package/dist/chat/logic/tool-looks.js +1 -1
  14. package/dist/chat/logic/tools.js +1 -1
  15. package/dist/chat/logic/workflow.js +1 -1
  16. package/dist/chat/preferences.js +1 -1
  17. package/dist/chat/runtime-modes.js +1 -1
  18. package/dist/chat/send-key.js +1 -1
  19. package/dist/chat/stash.js +2 -2
  20. package/dist/chat/subagent-list.js +1 -1
  21. package/dist/chat/ui/AccountPill.js +3 -3
  22. package/dist/chat/ui/BookmarkMarker.js +6 -6
  23. package/dist/chat/ui/BookmarkSubmenu.js +5 -5
  24. package/dist/chat/ui/ChatActivity.js +15 -14
  25. package/dist/chat/ui/CodeBlock.js +9 -7
  26. package/dist/chat/ui/Composer.js +13 -13
  27. package/dist/chat/ui/ComposerInput.d.ts +1 -1
  28. package/dist/chat/ui/ComposerInput.js +35 -18
  29. package/dist/chat/ui/DiffPool.js +1 -1
  30. package/dist/chat/ui/EditDiff.js +2 -2
  31. package/dist/chat/ui/GoalDock.js +5 -5
  32. package/dist/chat/ui/ImageView.js +4 -4
  33. package/dist/chat/ui/LimitState.js +12 -12
  34. package/dist/chat/ui/Markdown.d.ts +1 -1
  35. package/dist/chat/ui/Markdown.js +11 -10
  36. package/dist/chat/ui/MermaidBlock.js +7 -6
  37. package/dist/chat/ui/MessageActions.js +7 -7
  38. package/dist/chat/ui/ModelMarks.js +2 -2
  39. package/dist/chat/ui/Pickers.d.ts +1 -1
  40. package/dist/chat/ui/Pickers.js +32 -27
  41. package/dist/chat/ui/PromptComposer.d.ts +1 -1
  42. package/dist/chat/ui/PromptComposer.js +5 -5
  43. package/dist/chat/ui/PromptEditor.js +3 -3
  44. package/dist/chat/ui/QuoteButton.js +2 -2
  45. package/dist/chat/ui/ReferenceChip.js +3 -3
  46. package/dist/chat/ui/ReferenceTrail.js +2 -2
  47. package/dist/chat/ui/ResumeCompactionDock.js +3 -3
  48. package/dist/chat/ui/RunSettings.js +11 -11
  49. package/dist/chat/ui/Scrubber.js +4 -4
  50. package/dist/chat/ui/SessionLine.js +2 -2
  51. package/dist/chat/ui/ShellCommand.d.ts +1 -1
  52. package/dist/chat/ui/ShellCommand.js +2 -2
  53. package/dist/chat/ui/SubagentControls.js +3 -3
  54. package/dist/chat/ui/SubagentInfo.js +5 -5
  55. package/dist/chat/ui/SubagentStopButton.js +2 -2
  56. package/dist/chat/ui/SubagentTimeline.js +18 -16
  57. package/dist/chat/ui/Timeline.js +231 -145
  58. package/dist/chat/ui/TimelineMenu.js +7 -7
  59. package/dist/chat/ui/UnifiedDiff.js +2 -2
  60. package/dist/chat/ui/VisualDialogs.js +1 -1
  61. package/dist/chat/ui/VisualFrame.js +4 -4
  62. package/dist/chat/ui/WorkflowAgentLine.d.ts +1 -1
  63. package/dist/chat/ui/WorkflowAgentLine.js +3 -3
  64. package/dist/chat/ui/chip-clipboard.d.ts +1 -1
  65. package/dist/chat/ui/composer/ComposerControls.d.ts +1 -1
  66. package/dist/chat/ui/composer/ComposerControls.js +4 -4
  67. package/dist/chat/ui/composer/ComposerMenu.js +5 -4
  68. package/dist/chat/ui/composer/DraftParts.js +2 -2
  69. package/dist/chat/ui/composer/QueuedMessages.js +2 -2
  70. package/dist/chat/ui/composer/chip-paste.d.ts +1 -1
  71. package/dist/chat/ui/composer/chips.d.ts +1 -1
  72. package/dist/chat/ui/composer/chips.js +2 -2
  73. package/dist/chat/ui/composer/key-handler.js +1 -1
  74. package/dist/chat/ui/composer/placeholder.js +1 -1
  75. package/dist/chat/ui/composer/use-composer-menus.d.ts +1 -1
  76. package/dist/chat/ui/composer/use-composer-menus.js +1 -1
  77. package/dist/chat/ui/composer/use-composer-submit.d.ts +1 -1
  78. package/dist/chat/ui/composer/use-draft-files.d.ts +2 -2
  79. package/dist/chat/ui/composer/use-draft-files.js +1 -1
  80. package/dist/chat/ui/composer/use-effort-stepper.js +1 -1
  81. package/dist/chat/ui/composer/use-prompt-menus.d.ts +2 -2
  82. package/dist/chat/ui/composer/use-prompt-menus.js +1 -1
  83. package/dist/chat/ui/diff/ApprovalReview.js +2 -2
  84. package/dist/chat/ui/diff/DiffOmitted.js +1 -1
  85. package/dist/chat/ui/diff/DiffStack.js +2 -2
  86. package/dist/chat/ui/diff/EditorEditDiff.d.ts +1 -1
  87. package/dist/chat/ui/diff/EditorEditDiff.js +5 -5
  88. package/dist/chat/ui/diff/EditorPatchDiff.d.ts +1 -1
  89. package/dist/chat/ui/diff/EditorPatchDiff.js +1 -1
  90. package/dist/chat/ui/diff/LegacyEditDiff.js +47 -31
  91. package/dist/chat/ui/diff/LegacyUnifiedDiff.js +93 -69
  92. package/dist/chat/ui/diff/RawDiff.js +54 -35
  93. package/dist/chat/ui/diff/syntax-runtime.d.ts +1 -1
  94. package/dist/chat/ui/highlighter.d.ts +1 -1
  95. package/dist/chat/ui/highlighter.js +1 -1
  96. package/dist/chat/ui/icons.js +1 -1
  97. package/dist/chat/ui/intelligent-ui/UiBlockFrame.d.ts +1 -1
  98. package/dist/chat/ui/intelligent-ui/UiBlockFrame.js +4 -4
  99. package/dist/chat/ui/intelligent-ui/UiFallbackPart.js +2 -2
  100. package/dist/chat/ui/intelligent-ui/UiReply.d.ts +2 -2
  101. package/dist/chat/ui/intelligent-ui/UiReply.js +8 -8
  102. package/dist/chat/ui/intelligent-ui/node-text.d.ts +1 -1
  103. package/dist/chat/ui/intelligent-ui/render-context.d.ts +1 -1
  104. package/dist/chat/ui/intelligent-ui/renderers/chart.js +28 -15
  105. package/dist/chat/ui/intelligent-ui/renderers/choices.js +4 -4
  106. package/dist/chat/ui/intelligent-ui/renderers/content.js +6 -6
  107. package/dist/chat/ui/intelligent-ui/renderers/data.js +104 -87
  108. package/dist/chat/ui/intelligent-ui/renderers/inputs.js +3 -3
  109. package/dist/chat/ui/intelligent-ui/renderers/links.js +2 -2
  110. package/dist/chat/ui/intelligent-ui/renderers/map-view.js +4 -4
  111. package/dist/chat/ui/intelligent-ui/renderers/map.js +3 -3
  112. package/dist/chat/ui/intelligent-ui/renderers/structure.js +2 -2
  113. package/dist/chat/ui/intelligent-ui/renderers/text.js +5 -5
  114. package/dist/chat/ui/intelligent-ui/tones.d.ts +1 -1
  115. package/dist/chat/ui/intelligent-ui/use-ui-links.d.ts +1 -1
  116. package/dist/chat/ui/intelligent-ui/use-ui-links.js +2 -2
  117. package/dist/chat/ui/intelligent-ui/use-ui-queries.js +1 -1
  118. package/dist/chat/ui/reference-icons.d.ts +1 -1
  119. package/dist/chat/ui/reference-icons.js +2 -2
  120. package/dist/chat/ui/reply-context.d.ts +1 -1
  121. package/dist/chat/ui/rows/ForksRow.js +3 -3
  122. package/dist/chat/ui/rows/GeneratedImageRow.js +5 -5
  123. package/dist/chat/ui/rows/MessageRows.d.ts +6 -1
  124. package/dist/chat/ui/rows/MessageRows.js +151 -22
  125. package/dist/chat/ui/rows/Rows.js +39 -21
  126. package/dist/chat/ui/rows/SubagentRow.js +16 -16
  127. package/dist/chat/ui/rows/TaskRow.js +3 -3
  128. package/dist/chat/ui/rows/VisualRow.js +2 -2
  129. package/dist/chat/ui/rows/WorkRows.d.ts +2 -2
  130. package/dist/chat/ui/rows/WorkRows.js +37 -25
  131. package/dist/chat/ui/rows/WorkflowRow.js +8 -8
  132. package/dist/chat/ui/use-diff-source-tokens.js +1 -1
  133. package/dist/chat/ui/visual-theme.d.ts +1 -1
  134. package/dist/chat/ui/visual-theme.js +2 -2
  135. package/dist/chat/workflow-list.js +1 -1
  136. package/dist/host.d.ts +4 -4
  137. package/dist/host.js +1 -1
  138. package/dist/lazy.js +1 -1
  139. package/dist/locales/en/agent-chat.d.ts +4 -0
  140. package/dist/locales/en/agent-chat.js +4 -0
  141. package/dist/locales/nl/agent-chat.d.ts +4 -0
  142. package/dist/locales/nl/agent-chat.js +4 -0
  143. package/dist/port-transport.js +1 -1
  144. package/dist/prompts/logic/subjects.d.ts +1 -1
  145. package/dist/prompts/ui/ApprovalBody.js +16 -7
  146. package/dist/prompts/ui/PromptActions.js +2 -2
  147. package/dist/prompts/ui/PromptCard.js +5 -4
  148. package/dist/prompts/ui/PromptView.js +1 -1
  149. package/dist/prompts/ui/QuestionBody.js +4 -4
  150. package/dist/providers/AccountDetail.js +4 -4
  151. package/dist/providers/AccountOrderList.js +2 -2
  152. package/dist/providers/AccountVariables.js +3 -3
  153. package/dist/providers/AddAccountForm.js +6 -6
  154. package/dist/providers/CliDetail.js +8 -8
  155. package/dist/providers/InstallPage.js +3 -3
  156. package/dist/providers/ProviderList.js +2 -2
  157. package/dist/providers/ProvidersPane.d.ts +1 -1
  158. package/dist/providers/ProvidersPane.js +5 -5
  159. package/dist/providers/install-steps.d.ts +1 -1
  160. package/dist/settings/sections.d.ts +2 -2
  161. package/dist/state/chats.js +1 -1
  162. package/dist/state/usage.js +2 -2
  163. package/dist/theme.css +4 -4
  164. package/dist/transport.d.ts +1 -1
  165. package/dist/usage/LimitsList.js +4 -4
  166. package/dist/usage/UsageBreakdown.js +5 -5
  167. package/dist/usage/UsageChart.js +1 -1
  168. package/dist/usage/UsageDialog.js +1 -1
  169. package/dist/usage/UsageLimits.js +6 -6
  170. package/dist/usage/UsageLimitsCard.js +2 -2
  171. package/dist/usage/UsagePage.js +200 -189
  172. package/dist/usage/UsagePane.js +2 -2
  173. package/dist/usage/UsageSummary.js +1 -1
  174. package/dist/usage/UsageTiles.js +1 -1
  175. package/dist/usage/limit-groups.js +2 -2
  176. package/dist/usage/summary.js +1 -1
  177. package/package.json +9 -8
  178. package/src/agents/AgentIcon.tsx +1 -1
  179. package/src/agents/AgentModelLabel.tsx +2 -2
  180. package/src/agents/ProviderLogo.tsx +1 -1
  181. package/src/agents/accounts.ts +1 -1
  182. package/src/agents/option-words.ts +1 -1
  183. package/src/chat/attachments.ts +1 -1
  184. package/src/chat/bookmarks.ts +1 -1
  185. package/src/chat/drafts.ts +1 -1
  186. package/src/chat/forks.ts +1 -1
  187. package/src/chat/logic/fork.ts +1 -1
  188. package/src/chat/logic/limit.ts +1 -1
  189. package/src/chat/logic/scrubber.ts +1 -1
  190. package/src/chat/logic/selection-switch.ts +47 -0
  191. package/src/chat/logic/timeline-copy.ts +1 -1
  192. package/src/chat/logic/timeline-target.ts +1 -1
  193. package/src/chat/logic/timeline.ts +28 -4
  194. package/src/chat/logic/tool-looks.ts +1 -1
  195. package/src/chat/logic/tools.ts +1 -1
  196. package/src/chat/logic/workflow.ts +1 -1
  197. package/src/chat/pending-prompts.ts +1 -1
  198. package/src/chat/preferences.ts +1 -1
  199. package/src/chat/reading-width.ts +1 -1
  200. package/src/chat/runtime-modes.ts +1 -1
  201. package/src/chat/send-key.ts +1 -1
  202. package/src/chat/stash.ts +2 -2
  203. package/src/chat/subagent-conversation.ts +1 -1
  204. package/src/chat/subagent-list.ts +1 -1
  205. package/src/chat/subagent-view.ts +1 -1
  206. package/src/chat/thumbnails.ts +1 -1
  207. package/src/chat/ui/AccountPill.tsx +4 -4
  208. package/src/chat/ui/BookmarkMarker.tsx +6 -6
  209. package/src/chat/ui/BookmarkSubmenu.tsx +5 -5
  210. package/src/chat/ui/ChatActivity.tsx +15 -15
  211. package/src/chat/ui/CodeBlock.tsx +10 -8
  212. package/src/chat/ui/Composer.tsx +13 -13
  213. package/src/chat/ui/ComposerInput.tsx +10 -2
  214. package/src/chat/ui/DiffPool.tsx +1 -1
  215. package/src/chat/ui/EditDiff.tsx +3 -4
  216. package/src/chat/ui/GoalDock.tsx +6 -6
  217. package/src/chat/ui/ImageView.tsx +4 -4
  218. package/src/chat/ui/LimitState.tsx +13 -13
  219. package/src/chat/ui/Markdown.tsx +12 -12
  220. package/src/chat/ui/MermaidBlock.tsx +6 -6
  221. package/src/chat/ui/MessageActions.tsx +7 -7
  222. package/src/chat/ui/ModelMarks.tsx +2 -2
  223. package/src/chat/ui/Pickers.tsx +10 -10
  224. package/src/chat/ui/PromptComposer.tsx +6 -6
  225. package/src/chat/ui/PromptEditor.tsx +4 -4
  226. package/src/chat/ui/QuoteButton.tsx +2 -2
  227. package/src/chat/ui/ReferenceChip.tsx +3 -3
  228. package/src/chat/ui/ReferenceTrail.tsx +2 -2
  229. package/src/chat/ui/ResumeCompactionDock.tsx +3 -3
  230. package/src/chat/ui/RunSettings.tsx +13 -13
  231. package/src/chat/ui/Scrubber.tsx +4 -4
  232. package/src/chat/ui/SessionLine.tsx +2 -2
  233. package/src/chat/ui/ShellCommand.tsx +2 -2
  234. package/src/chat/ui/SubagentControls.tsx +3 -3
  235. package/src/chat/ui/SubagentInfo.tsx +5 -5
  236. package/src/chat/ui/SubagentStopButton.tsx +3 -3
  237. package/src/chat/ui/SubagentTimeline.tsx +20 -17
  238. package/src/chat/ui/Timeline.tsx +232 -143
  239. package/src/chat/ui/TimelineMenu.tsx +7 -7
  240. package/src/chat/ui/UnifiedDiff.tsx +3 -3
  241. package/src/chat/ui/VisualDialogs.tsx +2 -2
  242. package/src/chat/ui/VisualFrame.tsx +4 -4
  243. package/src/chat/ui/WorkflowAgentLine.tsx +4 -4
  244. package/src/chat/ui/chip-clipboard.ts +1 -1
  245. package/src/chat/ui/composer/ComposerControls.tsx +4 -4
  246. package/src/chat/ui/composer/ComposerMenu.tsx +6 -6
  247. package/src/chat/ui/composer/DraftParts.tsx +2 -2
  248. package/src/chat/ui/composer/QueuedMessages.tsx +2 -2
  249. package/src/chat/ui/composer/chip-paste.ts +1 -1
  250. package/src/chat/ui/composer/chips.ts +2 -2
  251. package/src/chat/ui/composer/key-handler.ts +2 -2
  252. package/src/chat/ui/composer/placeholder.ts +1 -1
  253. package/src/chat/ui/composer/use-chat-controls.ts +1 -1
  254. package/src/chat/ui/composer/use-compaction-offer.ts +1 -1
  255. package/src/chat/ui/composer/use-composer-menus.ts +2 -2
  256. package/src/chat/ui/composer/use-composer-submit.ts +2 -2
  257. package/src/chat/ui/composer/use-draft-files.ts +3 -3
  258. package/src/chat/ui/composer/use-effort-stepper.ts +2 -2
  259. package/src/chat/ui/composer/use-pending-requests.ts +1 -1
  260. package/src/chat/ui/composer/use-prompt-menus.ts +3 -3
  261. package/src/chat/ui/composer/use-take-back.ts +1 -1
  262. package/src/chat/ui/diff/ApprovalReview.tsx +3 -3
  263. package/src/chat/ui/diff/DiffOmitted.tsx +1 -1
  264. package/src/chat/ui/diff/DiffStack.tsx +2 -2
  265. package/src/chat/ui/diff/EditorEditDiff.tsx +5 -5
  266. package/src/chat/ui/diff/EditorPatchDiff.tsx +1 -1
  267. package/src/chat/ui/diff/LegacyDiffPool.tsx +1 -1
  268. package/src/chat/ui/diff/LegacyEditDiff.tsx +18 -9
  269. package/src/chat/ui/diff/LegacyUnifiedDiff.tsx +24 -13
  270. package/src/chat/ui/diff/RawDiff.tsx +8 -5
  271. package/src/chat/ui/diff/syntax-runtime.ts +1 -1
  272. package/src/chat/ui/highlighter.ts +1 -1
  273. package/src/chat/ui/icons.tsx +2 -2
  274. package/src/chat/ui/intelligent-ui/UiBlockFrame.tsx +5 -5
  275. package/src/chat/ui/intelligent-ui/UiFallbackPart.tsx +2 -2
  276. package/src/chat/ui/intelligent-ui/UiReply.tsx +18 -18
  277. package/src/chat/ui/intelligent-ui/node-text.ts +1 -1
  278. package/src/chat/ui/intelligent-ui/render-context.ts +1 -1
  279. package/src/chat/ui/intelligent-ui/renderers/chart.tsx +15 -7
  280. package/src/chat/ui/intelligent-ui/renderers/choices.tsx +4 -4
  281. package/src/chat/ui/intelligent-ui/renderers/content.tsx +7 -7
  282. package/src/chat/ui/intelligent-ui/renderers/data.tsx +8 -7
  283. package/src/chat/ui/intelligent-ui/renderers/inputs.tsx +3 -3
  284. package/src/chat/ui/intelligent-ui/renderers/links.tsx +4 -4
  285. package/src/chat/ui/intelligent-ui/renderers/map-view.tsx +4 -4
  286. package/src/chat/ui/intelligent-ui/renderers/map.tsx +5 -5
  287. package/src/chat/ui/intelligent-ui/renderers/structure.tsx +3 -3
  288. package/src/chat/ui/intelligent-ui/renderers/text.tsx +5 -5
  289. package/src/chat/ui/intelligent-ui/tones.ts +1 -1
  290. package/src/chat/ui/intelligent-ui/use-ui-links.ts +2 -2
  291. package/src/chat/ui/intelligent-ui/use-ui-queries.ts +1 -1
  292. package/src/chat/ui/reference-icons.ts +2 -2
  293. package/src/chat/ui/reply-context.ts +1 -1
  294. package/src/chat/ui/rows/ForksRow.tsx +3 -3
  295. package/src/chat/ui/rows/GeneratedImageRow.tsx +7 -7
  296. package/src/chat/ui/rows/MessageRows.tsx +57 -33
  297. package/src/chat/ui/rows/RowContainer.tsx +1 -1
  298. package/src/chat/ui/rows/Rows.tsx +7 -4
  299. package/src/chat/ui/rows/SubagentRow.tsx +16 -16
  300. package/src/chat/ui/rows/TaskRow.tsx +4 -4
  301. package/src/chat/ui/rows/VisualRow.tsx +2 -2
  302. package/src/chat/ui/rows/WorkRows.tsx +44 -32
  303. package/src/chat/ui/rows/WorkflowRow.tsx +9 -9
  304. package/src/chat/ui/rows/row-rhythm.ts +1 -1
  305. package/src/chat/ui/use-diff-source-tokens.ts +1 -1
  306. package/src/chat/ui/visual-theme.ts +2 -2
  307. package/src/chat/workflow-list.ts +1 -1
  308. package/src/host.ts +6 -6
  309. package/src/lazy.tsx +1 -1
  310. package/src/locales/en/agent-chat.ts +4 -0
  311. package/src/locales/nl/agent-chat.ts +4 -0
  312. package/src/port-transport.ts +1 -1
  313. package/src/prompts/logic/subjects.ts +1 -1
  314. package/src/prompts/ui/ApprovalBody.tsx +19 -9
  315. package/src/prompts/ui/PromptActions.tsx +2 -2
  316. package/src/prompts/ui/PromptCard.tsx +4 -4
  317. package/src/prompts/ui/PromptView.tsx +1 -1
  318. package/src/prompts/ui/QuestionBody.tsx +5 -5
  319. package/src/providers/AccountDetail.tsx +5 -5
  320. package/src/providers/AccountOrderList.tsx +2 -2
  321. package/src/providers/AccountVariables.tsx +4 -4
  322. package/src/providers/AddAccountForm.tsx +7 -7
  323. package/src/providers/CliDetail.tsx +9 -9
  324. package/src/providers/InstallPage.tsx +4 -4
  325. package/src/providers/ProviderList.tsx +4 -4
  326. package/src/providers/ProvidersPane.tsx +7 -7
  327. package/src/providers/account-actions.ts +1 -1
  328. package/src/providers/install-steps.ts +1 -1
  329. package/src/providers/parts.tsx +1 -1
  330. package/src/providers/provider-abilities.ts +1 -1
  331. package/src/providers/provider-groups.ts +1 -1
  332. package/src/providers/variables.ts +1 -1
  333. package/src/settings/sections.ts +2 -2
  334. package/src/state/chats.ts +2 -2
  335. package/src/state/provider-accounts.ts +1 -1
  336. package/src/state/providers.ts +1 -1
  337. package/src/state/usage.ts +2 -2
  338. package/src/theme.css +4 -4
  339. package/src/transport.ts +1 -1
  340. package/src/usage/LimitsList.tsx +5 -5
  341. package/src/usage/UsageBreakdown.tsx +6 -6
  342. package/src/usage/UsageChart.tsx +2 -2
  343. package/src/usage/UsageDialog.tsx +2 -2
  344. package/src/usage/UsageLimits.tsx +7 -7
  345. package/src/usage/UsageLimitsCard.tsx +2 -2
  346. package/src/usage/UsagePage.tsx +5 -5
  347. package/src/usage/UsagePane.tsx +2 -2
  348. package/src/usage/UsageSummary.tsx +2 -2
  349. package/src/usage/UsageTiles.tsx +1 -1
  350. package/src/usage/limit-groups.ts +2 -2
  351. package/src/usage/limits.ts +1 -1
  352. package/src/usage/summary.ts +1 -1
  353. package/dist/chat/logic/json.d.ts +0 -1
  354. package/dist/chat/logic/json.js +0 -4
  355. package/src/chat/logic/json.ts +0 -4
package/dist/theme.css CHANGED
@@ -245,9 +245,9 @@
245
245
  /* A checked box is the marker; prose would put a bullet next to it. */
246
246
  .chat-markdown li:has(> input[type="checkbox"]) { list-style: none; }
247
247
  .chat-markdown input[type="checkbox"] { margin-right: 6px; accent-color: var(--accent); }
248
- /* A wide table scrolls in its own wrapper instead of stretching the column it sits in. The
249
- wrapper is a scroll container, so the air around the table has to sit on it, not inside it. */
250
- .chat-table { overflow-x: auto; margin-block: 2em; }
248
+ /* A wide table scrolls in its own `ScrollArea` instead of stretching the column it sits in. The
249
+ air around the table sits on that frame, not inside the part that scrolls. */
250
+ .chat-table { margin-block: 2em; }
251
251
  .chat-markdown table { margin: 0; border-collapse: collapse; font-size: var(--text-xs); }
252
252
  .chat-markdown :is(th, td) { border: 1px solid var(--tw-prose-td-borders); padding: 4px 8px; text-align: left; }
253
253
 
@@ -262,7 +262,7 @@
262
262
  .chat-ui-section-body .chat-ui-flat { background-color: transparent; padding: 0; }
263
263
  .chat-ui-section-body .chat-ui-flat .chat-ui-flat-inner { padding-inline: 0; }
264
264
  .chat-ui-section-body .chat-ui-flat thead { background-color: var(--chat-ui-tile); }
265
- .chat-code pre { margin: 0; padding: round(0.625rem, 1px) round(0.75rem, 1px); overflow: auto; user-select: text; background: transparent !important; font-family: var(--font-mono); font-size: var(--text-code); line-height: var(--text-code--line-height); }
265
+ .chat-code pre { margin: 0; padding: round(0.625rem, 1px) round(0.75rem, 1px); user-select: text; background: transparent !important; font-family: var(--font-mono); font-size: var(--text-code); line-height: var(--text-code--line-height); }
266
266
  .chat-code code { font-family: inherit; }
267
267
  .chat-code-actions { position: absolute; top: 4px; right: 4px; border-radius: 6px; background: var(--surface-raised); color: var(--text-muted); box-shadow: 0 0 0 1px var(--border); }
268
268
  .chat-code-error { margin: 0; padding: 0 12px 10px; color: var(--status-error); font-size: var(--text-sm); }
@@ -1,5 +1,5 @@
1
- import type { z } from 'zod';
2
1
  import type { AGENT_EVENT_SCHEMAS, AGENT_REQUEST_SCHEMAS, AgentEventType, AgentRequestType } from '@adecore/agent-contracts/protocol';
2
+ import type { z } from 'zod';
3
3
  export type ChatRequestMap = {
4
4
  [T in AgentRequestType]: {
5
5
  payload: z.infer<(typeof AGENT_REQUEST_SCHEMAS)[T]['payload']>;
@@ -1,13 +1,13 @@
1
1
  import { c as _c } from "react/compiler-runtime";
2
- import { Fragment } from 'react';
2
+ import { Icon, Tooltip } from '@adecore/ui';
3
+ import { formatClock, formatWeekdayClock, isSameDay, formatCountdown, formatPercent } from '@adecore/ui/format';
3
4
  import clsx from 'clsx';
4
- import { useTranslation } from 'react-i18next';
5
5
  import { ChevronRight } from 'lucide-react';
6
+ import { Fragment } from 'react';
7
+ import { useTranslation } from 'react-i18next';
6
8
  import { limitsAccountId } from '../agents/account-limits.js';
7
9
  import { accountColor } from '../agents/accounts.js';
8
10
  import { ProviderLogo } from '../agents/ProviderLogo.js';
9
- import { Icon, Tooltip } from '@adecore/ui';
10
- import { formatClock, formatWeekdayClock, isSameDay, formatCountdown, formatPercent } from '@adecore/ui/format';
11
11
  import { useChatHost } from '../host.js';
12
12
  import { ChartLogo } from './ChartLogo.js';
13
13
  import { PROVIDER_COLORS, PROVIDER_LABELS } from './format.js';
@@ -1,17 +1,17 @@
1
1
  import { c as _c } from "react/compiler-runtime";
2
- import { useState } from 'react';
2
+ import { USAGE_PROVIDERS, totalTokensOf } from '@adecore/agent-contracts';
3
+ import { EmptyState, Icon, SectionLabel, Segmented, Tooltip } from '@adecore/ui';
3
4
  import clsx from 'clsx';
4
5
  import { CircleHelp, Folder, Info } from 'lucide-react';
6
+ import { useState } from 'react';
5
7
  import { useTranslation } from 'react-i18next';
6
- import { EmptyState, Icon, SectionLabel, Segmented, Tooltip } from '@adecore/ui';
8
+ import { useModelName } from '../agents/model-name.js';
9
+ import { useHostProjectLook } from '../host-hooks.js';
7
10
  import { useChatScope } from '../scope.js';
8
- import { USAGE_PROVIDERS, totalTokensOf } from '@adecore/agent-contracts';
9
11
  import { ChartLogo } from './ChartLogo.js';
10
- import { useModelName } from '../agents/model-name.js';
11
12
  import { formatCount, formatTokens, PROVIDER_COLORS, PROVIDER_LABELS, shortPath, slotLabel } from './format.js';
12
13
  import { useMoney } from './money.js';
13
14
  import { deriveDays } from './summary.js';
14
- import { useHostProjectLook } from '../host-hooks.js';
15
15
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
16
16
  const ROW = 'flex h-8 items-center gap-2 rounded-md px-2 text-xs hover:bg-surface-hover';
17
17
  const HEAD = 'flex h-6 items-center gap-2 px-2 text-xs text-text-faint';
@@ -1,7 +1,7 @@
1
1
  import { c as _c } from "react/compiler-runtime";
2
+ import { Surface, useMeasuredWidth } from '@adecore/ui';
2
3
  import { useState } from 'react';
3
4
  import { useTranslation } from 'react-i18next';
4
- import { Surface, useMeasuredWidth } from '@adecore/ui';
5
5
  import { PROVIDER_COLORS, PROVIDER_LABELS, slotAxisLabel, slotLabel } from './format.js';
6
6
  import { niceScale } from './summary.js';
7
7
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
@@ -1,6 +1,6 @@
1
1
  import { c as _c } from "react/compiler-runtime";
2
- import i18next from 'i18next';
3
2
  import { Dialog } from '@adecore/ui';
3
+ import i18next from 'i18next';
4
4
  /*
5
5
  * The frame of the usage page, wider than the settings for the chart and the breakdown. What goes in
6
6
  * it mounts only while it is open, so nothing is scanned behind a closed dialog.
@@ -1,18 +1,18 @@
1
1
  import { c as _c } from "react/compiler-runtime";
2
+ import { Button, Icon, SectionLabel, Segmented, Tooltip, useNow } from '@adecore/ui';
3
+ import { LogIn } from 'lucide-react';
2
4
  import { useState } from 'react';
3
5
  import { useTranslation } from 'react-i18next';
4
- import { LogIn } from 'lucide-react';
5
6
  import { AccountDot } from '../agents/AccountDot.js';
6
- import { Button, Icon, SectionLabel, Segmented, Tooltip, useNow } from '@adecore/ui';
7
7
  import { useChatHost } from '../host.js';
8
+ import { useHostLoginBlocked } from '../host-hooks.js';
9
+ import { useChatScope } from '../scope.js';
10
+ import { useProviderAccounts } from '../state/provider-accounts.js';
8
11
  import { ChartLogo } from './ChartLogo.js';
9
12
  import { PROVIDER_LABELS } from './format.js';
10
13
  import { accountNote, checkedLabel, hasSeveralAccounts, isSignedOut } from './limit-groups.js';
11
- import { WindowBar } from './LimitsList.js';
12
14
  import { useLimitGroups, useUsageLimits } from './limits.js';
13
- import { useProviderAccounts } from '../state/provider-accounts.js';
14
- import { useChatScope } from '../scope.js';
15
- import { useHostLoginBlocked } from '../host-hooks.js';
15
+ import { WindowBar } from './LimitsList.js';
16
16
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
17
17
  const MINUTE_MS = 60_000;
18
18
  function LoginButton(t0) {
@@ -1,9 +1,9 @@
1
1
  import { c as _c } from "react/compiler-runtime";
2
+ import { useNow, PreviewCard } from '@adecore/ui';
2
3
  import i18next from 'i18next';
3
4
  import { useState } from 'react';
4
- import { AccountLimitsList } from './LimitsList.js';
5
5
  import { useLimitGroups, useUsageLimits } from './limits.js';
6
- import { useNow, PreviewCard } from '@adecore/ui';
6
+ import { AccountLimitsList } from './LimitsList.js';
7
7
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
8
8
  const MINUTE_MS = 60_000;
9
9
  /* Asking the CLIs starts a process each, so the question waits until the card is actually opened. */
@@ -1,9 +1,9 @@
1
1
  import { c as _c } from "react/compiler-runtime";
2
+ import { USAGE_PROVIDERS } from '@adecore/agent-contracts';
3
+ import { Button, CloseButton, Dialog, EmptyState, FormError, IconButton, ScrollArea, Segmented, Select, Skeleton } from '@adecore/ui';
4
+ import { ChartNoAxesColumn, RefreshCw } from 'lucide-react';
2
5
  import { useCallback, useEffect, useState, useSyncExternalStore } from 'react';
3
6
  import { useTranslation } from 'react-i18next';
4
- import { ChartNoAxesColumn, RefreshCw } from 'lucide-react';
5
- import { USAGE_PROVIDERS } from '@adecore/agent-contracts';
6
- import { Button, CloseButton, Dialog, EmptyState, FormError, IconButton, Segmented, Select, Skeleton } from '@adecore/ui';
7
7
  import { AccountDot } from '../agents/AccountDot.js';
8
8
  import { useChatHost } from '../host.js';
9
9
  import { useChatScope } from '../scope.js';
@@ -470,7 +470,7 @@ function _temp9(account_0) {
470
470
  };
471
471
  }
472
472
  export function UsagePage(t0) {
473
- const $ = _c(98);
473
+ const $ = _c(102);
474
474
  const {
475
475
  pickers,
476
476
  notice
@@ -500,6 +500,8 @@ export function UsagePage(t0) {
500
500
  t1 = $[4];
501
501
  }
502
502
  const shown = t1;
503
+ let T0;
504
+ let t10;
503
505
  let t2;
504
506
  let t3;
505
507
  let t4;
@@ -511,240 +513,242 @@ export function UsagePage(t0) {
511
513
  if ($[5] !== account || $[6] !== answering || $[7] !== loading || $[8] !== metric || $[9] !== money || $[10] !== notice || $[11] !== period || $[12] !== pickers || $[13] !== reload || $[14] !== shown || $[15] !== summary?.accounts || $[16] !== t) {
512
514
  const derived = shown === null ? null : deriveUsage(shown, metric);
513
515
  const value = metric === "cost" ? money : formatTokens;
514
- let t10;
515
- if ($[25] !== shown) {
516
- t10 = shown !== null && shown.roots.every(_temp13);
517
- $[25] = shown;
518
- $[26] = t10;
519
- } else {
520
- t10 = $[26];
521
- }
522
- const noRoots = t10;
523
- t8 = "flex min-h-0 grow flex-col";
524
516
  let t11;
525
- if ($[27] !== t) {
526
- t11 = t("dialog.title");
527
- $[27] = t;
517
+ if ($[27] !== shown) {
518
+ t11 = shown !== null && shown.roots.every(_temp13);
519
+ $[27] = shown;
528
520
  $[28] = t11;
529
521
  } else {
530
522
  t11 = $[28];
531
523
  }
524
+ const noRoots = t11;
525
+ t9 = "flex min-h-0 grow flex-col";
532
526
  let t12;
533
- if ($[29] !== t11) {
534
- t12 = /*#__PURE__*/_jsx(Dialog.Title, {
535
- children: t11
536
- });
537
- $[29] = t11;
527
+ if ($[29] !== t) {
528
+ t12 = t("dialog.title");
529
+ $[29] = t;
538
530
  $[30] = t12;
539
531
  } else {
540
532
  t12 = $[30];
541
533
  }
542
534
  let t13;
543
- if ($[31] !== summary?.accounts) {
544
- t13 = summary?.accounts ?? [];
545
- $[31] = summary?.accounts;
535
+ if ($[31] !== t12) {
536
+ t13 = /*#__PURE__*/_jsx(Dialog.Title, {
537
+ children: t12
538
+ });
539
+ $[31] = t12;
546
540
  $[32] = t13;
547
541
  } else {
548
542
  t13 = $[32];
549
543
  }
550
544
  let t14;
551
- if ($[33] !== account || $[34] !== t13) {
552
- t14 = /*#__PURE__*/_jsx(AccountPicker, {
553
- accounts: t13,
554
- value: account,
555
- onChange: setAccount
556
- });
557
- $[33] = account;
558
- $[34] = t13;
559
- $[35] = t14;
545
+ if ($[33] !== summary?.accounts) {
546
+ t14 = summary?.accounts ?? [];
547
+ $[33] = summary?.accounts;
548
+ $[34] = t14;
560
549
  } else {
561
- t14 = $[35];
550
+ t14 = $[34];
562
551
  }
563
552
  let t15;
564
- if ($[36] !== t) {
565
- t15 = USAGE_PERIODS.map(entry => ({
566
- id: entry.id,
567
- label: t(`dialog.periods.${entry.id}`)
568
- }));
569
- $[36] = t;
553
+ if ($[35] !== account || $[36] !== t14) {
554
+ t15 = /*#__PURE__*/_jsx(AccountPicker, {
555
+ accounts: t14,
556
+ value: account,
557
+ onChange: setAccount
558
+ });
559
+ $[35] = account;
560
+ $[36] = t14;
570
561
  $[37] = t15;
571
562
  } else {
572
563
  t15 = $[37];
573
564
  }
574
565
  let t16;
575
566
  if ($[38] !== t) {
576
- t16 = t("dialog.period");
567
+ t16 = USAGE_PERIODS.map(entry => ({
568
+ id: entry.id,
569
+ label: t(`dialog.periods.${entry.id}`)
570
+ }));
577
571
  $[38] = t;
578
572
  $[39] = t16;
579
573
  } else {
580
574
  t16 = $[39];
581
575
  }
582
576
  let t17;
583
- if ($[40] !== period || $[41] !== t15 || $[42] !== t16) {
584
- t17 = /*#__PURE__*/_jsx(Segmented, {
585
- value: period,
586
- options: t15,
587
- onValueChange: _temp14,
588
- label: t16
589
- });
590
- $[40] = period;
591
- $[41] = t15;
592
- $[42] = t16;
593
- $[43] = t17;
577
+ if ($[40] !== t) {
578
+ t17 = t("dialog.period");
579
+ $[40] = t;
580
+ $[41] = t17;
594
581
  } else {
595
- t17 = $[43];
582
+ t17 = $[41];
596
583
  }
597
584
  let t18;
598
- if ($[44] !== t) {
599
- t18 = METRICS.map(id_0 => ({
600
- id: id_0,
601
- label: t(`dialog.metrics.${id_0}`)
602
- }));
603
- $[44] = t;
585
+ if ($[42] !== period || $[43] !== t16 || $[44] !== t17) {
586
+ t18 = /*#__PURE__*/_jsx(Segmented, {
587
+ value: period,
588
+ options: t16,
589
+ onValueChange: _temp14,
590
+ label: t17
591
+ });
592
+ $[42] = period;
593
+ $[43] = t16;
594
+ $[44] = t17;
604
595
  $[45] = t18;
605
596
  } else {
606
597
  t18 = $[45];
607
598
  }
608
599
  let t19;
609
600
  if ($[46] !== t) {
610
- t19 = t("dialog.metric");
601
+ t19 = METRICS.map(id_0 => ({
602
+ id: id_0,
603
+ label: t(`dialog.metrics.${id_0}`)
604
+ }));
611
605
  $[46] = t;
612
606
  $[47] = t19;
613
607
  } else {
614
608
  t19 = $[47];
615
609
  }
616
610
  let t20;
617
- if ($[48] !== metric || $[49] !== t18 || $[50] !== t19) {
618
- t20 = /*#__PURE__*/_jsx(Segmented, {
619
- value: metric,
620
- options: t18,
621
- onValueChange: _temp15,
622
- label: t19
623
- });
624
- $[48] = metric;
625
- $[49] = t18;
626
- $[50] = t19;
627
- $[51] = t20;
611
+ if ($[48] !== t) {
612
+ t20 = t("dialog.metric");
613
+ $[48] = t;
614
+ $[49] = t20;
628
615
  } else {
629
- t20 = $[51];
616
+ t20 = $[49];
630
617
  }
631
618
  let t21;
632
- if ($[52] !== t) {
633
- t21 = t("dialog.rescan");
634
- $[52] = t;
619
+ if ($[50] !== metric || $[51] !== t19 || $[52] !== t20) {
620
+ t21 = /*#__PURE__*/_jsx(Segmented, {
621
+ value: metric,
622
+ options: t19,
623
+ onValueChange: _temp15,
624
+ label: t20
625
+ });
626
+ $[50] = metric;
627
+ $[51] = t19;
628
+ $[52] = t20;
635
629
  $[53] = t21;
636
630
  } else {
637
631
  t21 = $[53];
638
632
  }
639
- const t22 = loading || !answering;
640
- let t23;
641
- if ($[54] !== loading || $[55] !== reload || $[56] !== t21 || $[57] !== t22) {
642
- t23 = /*#__PURE__*/_jsx(IconButton, {
633
+ let t22;
634
+ if ($[54] !== t) {
635
+ t22 = t("dialog.rescan");
636
+ $[54] = t;
637
+ $[55] = t22;
638
+ } else {
639
+ t22 = $[55];
640
+ }
641
+ const t23 = loading || !answering;
642
+ let t24;
643
+ if ($[56] !== loading || $[57] !== reload || $[58] !== t22 || $[59] !== t23) {
644
+ t24 = /*#__PURE__*/_jsx(IconButton, {
643
645
  icon: RefreshCw,
644
- label: t21,
646
+ label: t22,
645
647
  busy: loading,
646
648
  onClick: reload,
647
- disabled: t22
649
+ disabled: t23
648
650
  });
649
- $[54] = loading;
650
- $[55] = reload;
651
- $[56] = t21;
652
- $[57] = t22;
653
- $[58] = t23;
654
- } else {
655
- t23 = $[58];
656
- }
657
- let t24;
658
- if ($[59] !== t) {
659
- t24 = t("dialog.close");
660
- $[59] = t;
651
+ $[56] = loading;
652
+ $[57] = reload;
653
+ $[58] = t22;
654
+ $[59] = t23;
661
655
  $[60] = t24;
662
656
  } else {
663
657
  t24 = $[60];
664
658
  }
665
659
  let t25;
666
- if ($[61] !== t24) {
667
- t25 = /*#__PURE__*/_jsx(CloseButton, {
668
- label: t24,
669
- dialog: true
670
- });
671
- $[61] = t24;
660
+ if ($[61] !== t) {
661
+ t25 = t("dialog.close");
662
+ $[61] = t;
672
663
  $[62] = t25;
673
664
  } else {
674
665
  t25 = $[62];
675
666
  }
676
667
  let t26;
677
- if ($[63] !== pickers || $[64] !== t14 || $[65] !== t17 || $[66] !== t20 || $[67] !== t23 || $[68] !== t25) {
678
- t26 = /*#__PURE__*/_jsxs("div", {
668
+ if ($[63] !== t25) {
669
+ t26 = /*#__PURE__*/_jsx(CloseButton, {
670
+ label: t25,
671
+ dialog: true
672
+ });
673
+ $[63] = t25;
674
+ $[64] = t26;
675
+ } else {
676
+ t26 = $[64];
677
+ }
678
+ let t27;
679
+ if ($[65] !== pickers || $[66] !== t15 || $[67] !== t18 || $[68] !== t21 || $[69] !== t24 || $[70] !== t26) {
680
+ t27 = /*#__PURE__*/_jsxs("div", {
679
681
  className: "ml-auto flex flex-wrap items-center gap-2",
680
- children: [pickers, t14, t17, t20, t23, t25]
682
+ children: [pickers, t15, t18, t21, t24, t26]
681
683
  });
682
- $[63] = pickers;
683
- $[64] = t14;
684
- $[65] = t17;
685
- $[66] = t20;
686
- $[67] = t23;
687
- $[68] = t25;
688
- $[69] = t26;
684
+ $[65] = pickers;
685
+ $[66] = t15;
686
+ $[67] = t18;
687
+ $[68] = t21;
688
+ $[69] = t24;
689
+ $[70] = t26;
690
+ $[71] = t27;
689
691
  } else {
690
- t26 = $[69];
692
+ t27 = $[71];
691
693
  }
692
- if ($[70] !== t12 || $[71] !== t26) {
693
- t9 = /*#__PURE__*/_jsxs("header", {
694
+ if ($[72] !== t13 || $[73] !== t27) {
695
+ t10 = /*#__PURE__*/_jsxs("header", {
694
696
  className: "flex shrink-0 flex-wrap items-center gap-3 border-b border-border py-3 pr-3 pl-6 max-[960px]:pl-4",
695
- children: [t12, t26]
697
+ children: [t13, t27]
696
698
  });
697
- $[70] = t12;
698
- $[71] = t26;
699
- $[72] = t9;
699
+ $[72] = t13;
700
+ $[73] = t27;
701
+ $[74] = t10;
700
702
  } else {
701
- t9 = $[72];
703
+ t10 = $[74];
702
704
  }
703
- t2 = "flex min-h-0 grow flex-col gap-6 overflow-y-auto px-6 pt-4 pb-6 max-[960px]:px-4";
704
- if ($[73] !== notice || $[74] !== shown) {
705
- t3 = notice?.(shown !== null);
706
- $[73] = notice;
707
- $[74] = shown;
708
- $[75] = t3;
705
+ T0 = ScrollArea;
706
+ t2 = "grow";
707
+ t3 = "flex flex-col gap-6 px-6 pt-4 pb-6 max-[960px]:px-4";
708
+ if ($[75] !== notice || $[76] !== shown) {
709
+ t4 = notice?.(shown !== null);
710
+ $[75] = notice;
711
+ $[76] = shown;
712
+ $[77] = t4;
709
713
  } else {
710
- t3 = $[75];
714
+ t4 = $[77];
711
715
  }
712
- if ($[76] !== noRoots || $[77] !== t) {
713
- t4 = noRoots && /*#__PURE__*/_jsx(EmptyState, {
716
+ if ($[78] !== noRoots || $[79] !== t) {
717
+ t5 = noRoots && /*#__PURE__*/_jsx(EmptyState, {
714
718
  className: DIALOG_CENTER,
715
719
  icon: ChartNoAxesColumn,
716
720
  action: /*#__PURE__*/_jsx(HostAgents, {}),
717
721
  children: t("empty.noTranscripts")
718
722
  });
719
- $[76] = noRoots;
720
- $[77] = t;
721
- $[78] = t4;
723
+ $[78] = noRoots;
724
+ $[79] = t;
725
+ $[80] = t5;
722
726
  } else {
723
- t4 = $[78];
727
+ t5 = $[80];
724
728
  }
725
- if ($[79] !== answering || $[80] !== shown) {
726
- t5 = shown === null && answering && /*#__PURE__*/_jsx(LoadingBody, {});
727
- $[79] = answering;
728
- $[80] = shown;
729
- $[81] = t5;
729
+ if ($[81] !== answering || $[82] !== shown) {
730
+ t6 = shown === null && answering && /*#__PURE__*/_jsx(LoadingBody, {});
731
+ $[81] = answering;
732
+ $[82] = shown;
733
+ $[83] = t6;
730
734
  } else {
731
- t5 = $[81];
735
+ t6 = $[83];
732
736
  }
733
- if ($[82] !== answering || $[83] !== shown || $[84] !== t) {
734
- t6 = shown === null && !answering && /*#__PURE__*/_jsx(EmptyState, {
737
+ if ($[84] !== answering || $[85] !== shown || $[86] !== t) {
738
+ t7 = shown === null && !answering && /*#__PURE__*/_jsx(EmptyState, {
735
739
  className: DIALOG_CENTER,
736
740
  icon: ChartNoAxesColumn,
737
741
  action: /*#__PURE__*/_jsx(HostAgents, {}),
738
742
  children: t("empty.noUsage")
739
743
  });
740
- $[82] = answering;
741
- $[83] = shown;
742
- $[84] = t;
743
- $[85] = t6;
744
+ $[84] = answering;
745
+ $[85] = shown;
746
+ $[86] = t;
747
+ $[87] = t7;
744
748
  } else {
745
- t6 = $[85];
749
+ t7 = $[87];
746
750
  }
747
- t7 = shown !== null && derived !== null && !noRoots && /*#__PURE__*/_jsxs(_Fragment, {
751
+ t8 = shown !== null && derived !== null && !noRoots && /*#__PURE__*/_jsxs(_Fragment, {
748
752
  children: [/*#__PURE__*/_jsxs("div", {
749
753
  className: "grid gap-6 lg:grid-cols-[18rem_1fr]",
750
754
  children: [/*#__PURE__*/_jsx(UsageSummary, {
@@ -780,61 +784,68 @@ export function UsagePage(t0) {
780
784
  $[14] = shown;
781
785
  $[15] = summary?.accounts;
782
786
  $[16] = t;
783
- $[17] = t2;
784
- $[18] = t3;
785
- $[19] = t4;
786
- $[20] = t5;
787
- $[21] = t6;
788
- $[22] = t7;
789
- $[23] = t8;
790
- $[24] = t9;
787
+ $[17] = T0;
788
+ $[18] = t10;
789
+ $[19] = t2;
790
+ $[20] = t3;
791
+ $[21] = t4;
792
+ $[22] = t5;
793
+ $[23] = t6;
794
+ $[24] = t7;
795
+ $[25] = t8;
796
+ $[26] = t9;
791
797
  } else {
792
- t2 = $[17];
793
- t3 = $[18];
794
- t4 = $[19];
795
- t5 = $[20];
796
- t6 = $[21];
797
- t7 = $[22];
798
- t8 = $[23];
799
- t9 = $[24];
800
- }
801
- let t10;
802
- if ($[86] === Symbol.for("react.memo_cache_sentinel")) {
803
- t10 = /*#__PURE__*/_jsx(Provenance, {});
804
- $[86] = t10;
805
- } else {
806
- t10 = $[86];
798
+ T0 = $[17];
799
+ t10 = $[18];
800
+ t2 = $[19];
801
+ t3 = $[20];
802
+ t4 = $[21];
803
+ t5 = $[22];
804
+ t6 = $[23];
805
+ t7 = $[24];
806
+ t8 = $[25];
807
+ t9 = $[26];
807
808
  }
808
809
  let t11;
809
- if ($[87] !== t2 || $[88] !== t3 || $[89] !== t4 || $[90] !== t5 || $[91] !== t6 || $[92] !== t7) {
810
- t11 = /*#__PURE__*/_jsxs("div", {
811
- className: t2,
812
- children: [t3, t4, t5, t6, t7, t10]
813
- });
814
- $[87] = t2;
815
- $[88] = t3;
816
- $[89] = t4;
817
- $[90] = t5;
818
- $[91] = t6;
819
- $[92] = t7;
820
- $[93] = t11;
810
+ if ($[88] === Symbol.for("react.memo_cache_sentinel")) {
811
+ t11 = /*#__PURE__*/_jsx(Provenance, {});
812
+ $[88] = t11;
821
813
  } else {
822
- t11 = $[93];
814
+ t11 = $[88];
823
815
  }
824
816
  let t12;
825
- if ($[94] !== t11 || $[95] !== t8 || $[96] !== t9) {
826
- t12 = /*#__PURE__*/_jsxs("div", {
827
- className: t8,
828
- children: [t9, t11]
817
+ if ($[89] !== T0 || $[90] !== t2 || $[91] !== t3 || $[92] !== t4 || $[93] !== t5 || $[94] !== t6 || $[95] !== t7 || $[96] !== t8) {
818
+ t12 = /*#__PURE__*/_jsxs(T0, {
819
+ className: t2,
820
+ viewportClassName: t3,
821
+ children: [t4, t5, t6, t7, t8, t11]
829
822
  });
830
- $[94] = t11;
831
- $[95] = t8;
832
- $[96] = t9;
823
+ $[89] = T0;
824
+ $[90] = t2;
825
+ $[91] = t3;
826
+ $[92] = t4;
827
+ $[93] = t5;
828
+ $[94] = t6;
829
+ $[95] = t7;
830
+ $[96] = t8;
833
831
  $[97] = t12;
834
832
  } else {
835
833
  t12 = $[97];
836
834
  }
837
- return t12;
835
+ let t13;
836
+ if ($[98] !== t10 || $[99] !== t12 || $[100] !== t9) {
837
+ t13 = /*#__PURE__*/_jsxs("div", {
838
+ className: t9,
839
+ children: [t10, t12]
840
+ });
841
+ $[98] = t10;
842
+ $[99] = t12;
843
+ $[100] = t9;
844
+ $[101] = t13;
845
+ } else {
846
+ t13 = $[101];
847
+ }
848
+ return t13;
838
849
  }
839
850
  function _temp15(id_1) {
840
851
  return useUsageStore.getState().setMetric(id_1);
@@ -1,8 +1,8 @@
1
1
  import { c as _c } from "react/compiler-runtime";
2
+ import { Segmented, Button, Icon } from '@adecore/ui';
3
+ import { SettingsRow, SettingsSection } from '@adecore/ui/settings';
2
4
  import { ChartNoAxesColumn } from 'lucide-react';
3
5
  import { useTranslation } from 'react-i18next';
4
- import { SettingsRow, SettingsSection } from '@adecore/ui/settings';
5
- import { Segmented, Button, Icon } from '@adecore/ui';
6
6
  import { useUsage, useUsageStore } from '../state/usage.js';
7
7
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
8
8
  const CURRENCIES = ['USD', 'EUR'];